@26lights/orcha 0.42.172 → 0.42.174
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/locales/en/translation.json +1 -0
- package/dist/orcha.cjs.js +24 -24
- package/dist/orcha.css +1 -1
- package/dist/orcha.es.js +68 -27
- package/dist/orcha.umd.js +2 -2
- package/dist/src/components/AoProjectPhases.vue.d.ts +3 -1
- package/dist/src/views/AoProjectOverviewMilestoneDetails.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/orcha.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var Qg=Object.defineProperty;var e0=(t,e,n)=>e in t?Qg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var H=(t,e,n)=>(e0(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),$r=require("vue-router"),ko=require("vuedraggable");const t0=r.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(r.openBlock(),r.createBlock(r.unref($r.RouterView),r.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),te=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n},n0={},o0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r0(t,e){return r.openBlock(),r.createElementBlock("svg",o0,[...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 i0=te(n0,[["render",r0]]),s0={},a0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l0(t,e){return r.openBlock(),r.createElementBlock("svg",a0,[...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 c0=te(s0,[["render",l0]]),u0={},d0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f0(t,e){return r.openBlock(),r.createElementBlock("svg",d0,[...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 p0=te(u0,[["render",f0]]),m0={},h0={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",h0,[...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 v0=te(m0,[["render",g0]]),_0={},y0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C0(t,e){return r.openBlock(),r.createElementBlock("svg",y0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const b0=te(_0,[["render",C0]]),k0={},w0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E0(t,e){return r.openBlock(),r.createElementBlock("svg",w0,[...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 S0=te(k0,[["render",E0]]),x0={},T0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A0(t,e){return r.openBlock(),r.createElementBlock("svg",T0,[...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 N0=te(x0,[["render",A0]]),D0={},$0={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",$0,[...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 M0=te(D0,[["render",B0]]),L0={},O0={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",O0,[...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 I0=te(L0,[["render",V0]]),P0={},F0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R0(t,e){return r.openBlock(),r.createElementBlock("svg",F0,[...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 z0=te(P0,[["render",R0]]),U0={},q0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H0(t,e){return r.openBlock(),r.createElementBlock("svg",q0,[...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 j0=te(U0,[["render",H0]]),W0={},Z0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K0(t,e){return r.openBlock(),r.createElementBlock("svg",Z0,[...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 G0=te(W0,[["render",K0]]),Y0={},J0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X0(t,e){return r.openBlock(),r.createElementBlock("svg",J0,[...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 Q0=te(Y0,[["render",X0]]),ev={},tv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nv(t,e){return r.openBlock(),r.createElementBlock("svg",tv,[...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 ov=te(ev,[["render",nv]]),rv={},iv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sv(t,e){return r.openBlock(),r.createElementBlock("svg",iv,[...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 av=te(rv,[["render",sv]]),lv={},cv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uv(t,e){return r.openBlock(),r.createElementBlock("svg",cv,[...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 dv=te(lv,[["render",uv]]),fv={},pv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mv(t,e){return r.openBlock(),r.createElementBlock("svg",pv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const hv=te(fv,[["render",mv]]),gv={},vv={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",vv,[...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 yv=te(gv,[["render",_v]]),Cv={},bv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function kv(t,e){return r.openBlock(),r.createElementBlock("svg",bv,[...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 wv=te(Cv,[["render",kv]]),Ev={},Sv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xv(t,e){return r.openBlock(),r.createElementBlock("svg",Sv,[...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 Tv=te(Ev,[["render",xv]]),Av={},Nv={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",Nv,[...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 $v=te(Av,[["render",Dv]]),Bv={},Mv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lv(t,e){return r.openBlock(),r.createElementBlock("svg",Mv,[...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 Ov=te(Bv,[["render",Lv]]),Vv={},Iv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Pv(t,e){return r.openBlock(),r.createElementBlock("svg",Iv,[...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 Fv=te(Vv,[["render",Pv]]),Rv={},zv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Uv(t,e){return r.openBlock(),r.createElementBlock("svg",zv,[...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 qv=te(Rv,[["render",Uv]]),Hv={},jv={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",jv,[...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 Zv=te(Hv,[["render",Wv]]),Kv={},Gv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yv(t,e){return r.openBlock(),r.createElementBlock("svg",Gv,[...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 Jv=te(Kv,[["render",Yv]]),Xv={},Qv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e2(t,e){return r.openBlock(),r.createElementBlock("svg",Qv,[...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 t2=te(Xv,[["render",e2]]),n2={},o2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r2(t,e){return r.openBlock(),r.createElementBlock("svg",o2,[...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 i2=te(n2,[["render",r2]]),s2={},a2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l2(t,e){return r.openBlock(),r.createElementBlock("svg",a2,[...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 c2=te(s2,[["render",l2]]),u2={},d2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f2(t,e){return r.openBlock(),r.createElementBlock("svg",d2,[...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 p2=te(u2,[["render",f2]]),m2={},h2={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",h2,[...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 v2=te(m2,[["render",g2]]),_2={},y2={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",y2,[...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 b2=te(_2,[["render",C2]]),k2={},w2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E2(t,e){return r.openBlock(),r.createElementBlock("svg",w2,[...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 S2=te(k2,[["render",E2]]),x2={},T2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A2(t,e){return r.openBlock(),r.createElementBlock("svg",T2,[...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 N2=te(x2,[["render",A2]]),D2={},$2={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",$2,[...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 M2=te(D2,[["render",B2]]),L2={},O2={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",O2,[...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 I2=te(L2,[["render",V2]]),P2={},F2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R2(t,e){return r.openBlock(),r.createElementBlock("svg",F2,[...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 z2=te(P2,[["render",R2]]),U2={},q2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H2(t,e){return r.openBlock(),r.createElementBlock("svg",q2,[...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 j2=te(U2,[["render",H2]]),W2={},Z2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K2(t,e){return r.openBlock(),r.createElementBlock("svg",Z2,[...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 G2=te(W2,[["render",K2]]),Y2={},J2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X2(t,e){return r.openBlock(),r.createElementBlock("svg",J2,[...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 Q2=te(Y2,[["render",X2]]),e3={},t3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n3(t,e){return r.openBlock(),r.createElementBlock("svg",t3,[...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 o3=te(e3,[["render",n3]]),r3=r.defineComponent({name:"LoadingIcon"});const i3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function s3(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("svg",i3,[...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 a3=te(r3,[["render",s3],["__scopeId","data-v-ad6da4a9"]]),l3={},c3={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function u3(t,e){return r.openBlock(),r.createElementBlock("svg",c3,[...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 d3=te(l3,[["render",u3]]),f3={},p3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function m3(t,e){return r.openBlock(),r.createElementBlock("svg",p3,[...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 h3=te(f3,[["render",m3]]),g3={},v3={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",v3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const y3=te(g3,[["render",_3]]),C3={},b3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k3(t,e){return r.openBlock(),r.createElementBlock("svg",b3,[...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 w3=te(C3,[["render",k3]]),E3={},S3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function x3(t,e){return r.openBlock(),r.createElementBlock("svg",S3,[...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 T3=te(E3,[["render",x3]]),A3={},N3={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",N3,[...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 $3=te(A3,[["render",D3]]),B3={},M3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function L3(t,e){return r.openBlock(),r.createElementBlock("svg",M3,[...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 O3=te(B3,[["render",L3]]),V3={},I3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function P3(t,e){return r.openBlock(),r.createElementBlock("svg",I3,[...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 F3=te(V3,[["render",P3]]),R3={},z3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function U3(t,e){return r.openBlock(),r.createElementBlock("svg",z3,[...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 q3=te(R3,[["render",U3]]),H3={},j3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function W3(t,e){return r.openBlock(),r.createElementBlock("svg",j3,[...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 Z3=te(H3,[["render",W3]]),K3={},G3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Y3(t,e){return r.openBlock(),r.createElementBlock("svg",G3,[...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 J3=te(K3,[["render",Y3]]),X3={},Q3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e_(t,e){return r.openBlock(),r.createElementBlock("svg",Q3,[...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 t_=te(X3,[["render",e_]]),n_={},o_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r_(t,e){return r.openBlock(),r.createElementBlock("svg",o_,[...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 i_=te(n_,[["render",r_]]),s_={},a_={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l_(t,e){return r.openBlock(),r.createElementBlock("svg",a_,[...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 c_=te(s_,[["render",l_]]),u_={},d_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f_(t,e){return r.openBlock(),r.createElementBlock("svg",d_,[...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 p_=te(u_,[["render",f_]]),m_={},h_={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",h_,[...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 v_=te(m_,[["render",g_]]),__={},y_={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",y_,[...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 b_=te(__,[["render",C_]]),k_={},w_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E_(t,e){return r.openBlock(),r.createElementBlock("svg",w_,[...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 S_=te(k_,[["render",E_]]),x_={},T_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A_(t,e){return r.openBlock(),r.createElementBlock("svg",T_,[...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 N_=te(x_,[["render",A_]]),D_={},$_={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",$_,[...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 M_=te(D_,[["render",B_]]),L_={},O_={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",O_,[...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 I_=te(L_,[["render",V_]]),P_={},F_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R_(t,e){return r.openBlock(),r.createElementBlock("svg",F_,[...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 z_=te(P_,[["render",R_]]),U_={},q_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H_(t,e){return r.openBlock(),r.createElementBlock("svg",q_,[...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 j_=te(U_,[["render",H_]]),W_={},Z_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K_(t,e){return r.openBlock(),r.createElementBlock("svg",Z_,[...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 G_=te(W_,[["render",K_]]),Y_={},J_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X_(t,e){return r.openBlock(),r.createElementBlock("svg",J_,[...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 Q_=te(Y_,[["render",X_]]),ey={},ty={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ny(t,e){return r.openBlock(),r.createElementBlock("svg",ty,[...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 oy=te(ey,[["render",ny]]),ry={},iy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sy(t,e){return r.openBlock(),r.createElementBlock("svg",iy,[...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 ay=te(ry,[["render",sy]]),ly={},cy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uy(t,e){return r.openBlock(),r.createElementBlock("svg",cy,[...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 dy=te(ly,[["render",uy]]),fy=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:i0,AccountCircle:c0,AccountTreeOutlineRounded:p0,AccountTreeRounded:v0,Add:b0,AddBoxOutlineRounded:S0,ArchiveOutlineRounded:N0,ArrowBackRounded:M0,ArrowDropDownRounded:I0,ArrowForwardRounded:z0,AssignmentOutlineRounded:j0,AttachFileRounded:G0,CalendarTodayOutlineRounded:Q0,CancelRounded:ov,ChatOutline:av,CheckBoxOutlineBlank:dv,CheckBoxOutlineBlankSharp:hv,CheckBoxOutlineRounded:yv,CheckSmallRounded:wv,ChecklistRounded:Tv,ChevronLeft:$v,ChevronRight:Ov,CloseRounded:Fv,ContactsOutlineRounded:qv,ContentCopyOutline:Zv,DeleteOutlineRounded:Jv,DownloadRounded:t2,DragIndicator:i2,EditDocumentRounded:c2,EditOutline:p2,ErrorOutlineRounded:v2,FilterListRounded:b2,FlagRounded:S2,FlowsheetOutlineRounded:N2,GifBox:M2,GroupsOutline:I2,HomeOutlineRounded:z2,ImageRounded:j2,Info:G2,KeyboardArrowDown:Q2,KeyboardArrowUp:o3,Loading:a3,Lock:d3,LogoutRounded:h3,Menu:y3,MoreHoriz:w3,MoreTimeRounded:T3,MoreVert:$3,MountainFlagOutlineRounded:O3,PersonAddOutlineRounded:F3,PictureAsPdfRounded:q3,RadioButtonChecked:Z3,RadioButtonCheckedOutline:J3,RadioButtonUnchecked:t_,RemoveRounded:i_,SearchRounded:c_,SelectCheckBox:p_,SendRounded:v_,Settings:b_,SlideshowRounded:S_,Target:N_,TaskOutlineRounded:M_,TextSnippetRounded:I_,TimerOutline:z_,ViewComfyAltRounded:j_,ViewCompactAltRounded:G_,ViewTimelineRounded:Q_,WarningOutlineRounded:oy,WarningRounded:ay,WaterfallChartRounded:dy},Symbol.toStringTag,{value:"Module"})),py={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},Ta={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Jc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},my={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Jc,...my});const _p={ROUND:"round",ROUNDED:"rounded"},hy={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},ke=r.defineComponent({__name:"AoIcon",props:{name:{},size:{default:Ta.MD}},setup(t){const e=t,n=r.computed(()=>fy[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 gy=["type"],vy={key:0,class:"ao-button__label"},ue=r.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>py.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>Ta.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>_p.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",vy,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,gy))}});function _y(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}=_y(n),u=r.computed(()=>s.value?"input":o.tag||`h${o.level}`),d=r.computed(()=>o.isEditable?s.value?{change:f,click:y=>y.stopPropagation(),blur:m}:{click:g,focus:g}:{}),f=l((y,C)=>{const _=C.target.value;i("update:title",_)}),p=c(),m=async()=>{s.value&&a(!1)},h=()=>{i("toggle-is-editing",!1)},g=y=>{y.stopPropagation(),s.value||a(!0)};return r.watch(()=>o.isEditable,y=>{y||p()}),(y,C)=>(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(p),["esc"])}),{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}});const yy={key:0,class:"ao-card-horiz__drag ao-card__drag"},Cy={class:"ao-card-horiz__header"},by={key:0,class:"ao-card-horiz__avatar"},ky={class:"ao-card-horiz__title-group"},wy={key:0,class:"ao-card-horiz__subtitle"},Ey={key:1,class:"ao-card-horiz__header"},Sy={key:1,class:"ao-card-horiz__body"},xy={key:2,class:"ao-card-horiz__footer"},Ty={key:3,class:"ao-card-horiz__secondary"},yp=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",yy,[r.createVNode(ke,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):r.createCommentVNode("",!0),r.createElementVNode("div",Cy,[t.icon?(r.openBlock(),r.createElementBlock("div",by,[r.createVNode(ke,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):r.createCommentVNode("",!0),r.createElementVNode("div",ky,[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",wy,r.toDisplayString(t.subtitle),1)):r.createCommentVNode("",!0)])]),i.$slots.header?(r.openBlock(),r.createElementBlock("div",Ey,[r.renderSlot(i.$slots,"header")])):r.createCommentVNode("",!0)]),i.$slots.default?(r.openBlock(),r.createElementBlock("div",Sy,[r.renderSlot(i.$slots,"default")])):r.createCommentVNode("",!0),i.$slots.footer?(r.openBlock(),r.createElementBlock("div",xy,[r.renderSlot(i.$slots,"footer")])):r.createCommentVNode("",!0),i.$slots.secondary?(r.openBlock(),r.createElementBlock("div",Ty,[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(hy).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"},Ay={months:"months",weeks:"weeks",days:"days"},Ny={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},Cp={BEFORE:"before",AFTER:"after"},bp={START:"start",end:"end"},kp={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},Ze={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var wp=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(wp||{});const Dy={add:"add",remove:"remove",moved:"moved"};var Ep=(t=>(t.HOURS="hours",t.DAYS="days",t))(Ep||{});const so={project:"projectId",assignee:"assigneeId",sprint:"sprintId"};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 Zn(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 xt(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 $y(t,e){nt(2,arguments);var n=xt(t).getTime(),o=Zn(e);return new Date(n+o)}var By={};function Qi(){return By}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 wd(t){nt(1,arguments);var e=xt(t);return e.setHours(0,0,0,0),e}var My=864e5;function Ly(t,e){nt(2,arguments);var n=wd(t),o=wd(e),i=n.getTime()-Fi(n),s=o.getTime()-Fi(o);return Math.round((i-s)/My)}function Oy(t,e){nt(2,arguments);var n=xt(t),o=xt(e),i=n.getTime()-o.getTime();return i<0?-1:i>0?1:i}var Sp=6e4,xp=36e5;function Vy(t){return nt(1,arguments),t instanceof Date||Js(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Tp(t){if(nt(1,arguments),!Vy(t)&&typeof t!="number")return!1;var e=xt(t);return!isNaN(Number(e))}function cc(t,e){nt(2,arguments);var n=Zn(e);return $y(t,-n)}var Iy=864e5;function Py(t){nt(1,arguments);var e=xt(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/Iy)+1}function Xs(t){nt(1,arguments);var e=1,n=xt(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 Ap(t){nt(1,arguments);var e=xt(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 Fy(t){nt(1,arguments);var e=Ap(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Xs(n);return o}var Ry=6048e5;function zy(t){nt(1,arguments);var e=xt(t),n=Xs(e).getTime()-Fy(e).getTime();return Math.round(n/Ry)+1}function Qs(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=Qi(),f=Zn((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(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=xt(t),m=p.getUTCDay(),h=(m<f?7:0)+m-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function Np(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=xt(t),f=d.getUTCFullYear(),p=Qi(),m=Zn((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:p.firstWeekContainsDate)!==null&&o!==void 0?o:(c=p.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(f+1,0,m),h.setUTCHours(0,0,0,0);var g=Qs(h,e),y=new Date(0);y.setUTCFullYear(f,0,m),y.setUTCHours(0,0,0,0);var C=Qs(y,e);return d.getTime()>=g.getTime()?f+1:d.getTime()>=C.getTime()?f:f-1}function Uy(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=Qi(),f=Zn((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),p=Np(t,e),m=new Date(0);m.setUTCFullYear(p,0,f),m.setUTCHours(0,0,0,0);var h=Qs(m,e);return h}var qy=6048e5;function Hy(t,e){nt(1,arguments);var n=xt(t),o=Qs(n,e).getTime()-Uy(n,e).getTime();return Math.round(o/qy)+1}function Le(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var jy={y:function(e,n){var o=e.getUTCFullYear(),i=o>0?o:1-o;return Le(n==="yy"?i%100:i,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):Le(o+1,2)},d:function(e,n){return Le(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 Le(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Le(e.getUTCHours(),n.length)},m:function(e,n){return Le(e.getUTCMinutes(),n.length)},s:function(e,n){return Le(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 Le(s,n.length)}};const ro=jy;var mr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Wy={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 ro.y(e,n)},Y:function(e,n,o,i){var s=Np(e,i),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return Le(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):Le(a,n.length)},R:function(e,n){var o=Ap(e);return Le(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return Le(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 Le(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 Le(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 ro.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 Le(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=Hy(e,i);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):Le(s,n.length)},I:function(e,n,o){var i=zy(e);return n==="Io"?o.ordinalNumber(i,{unit:"week"}):Le(i,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):ro.d(e,n)},D:function(e,n,o){var i=Py(e);return n==="Do"?o.ordinalNumber(i,{unit:"dayOfYear"}):Le(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 Le(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 Le(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 Le(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=mr.noon:i===0?s=mr.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=mr.evening:i>=12?s=mr.afternoon:i>=4?s=mr.morning:s=mr.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 ro.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ro.H(e,n)},K:function(e,n,o){var i=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(i,{unit:"hour"}):Le(i,n.length)},k:function(e,n,o){var i=e.getUTCHours();return i===0&&(i=24),n==="ko"?o.ordinalNumber(i,{unit:"hour"}):Le(i,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ro.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ro.s(e,n)},S:function(e,n){return ro.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 Sd(a);case"XXXX":case"XX":return Lo(a);case"XXXXX":case"XXX":default:return Lo(a,":")}},x:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return Sd(a);case"xxxx":case"xx":return Lo(a);case"xxxxx":case"xxx":default:return Lo(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"+Ed(a,":");case"OOOO":default:return"GMT"+Lo(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"+Ed(a,":");case"zzzz":default:return"GMT"+Lo(a,":")}},t:function(e,n,o,i){var s=i._originalDate||e,a=Math.floor(s.getTime()/1e3);return Le(a,n.length)},T:function(e,n,o,i){var s=i._originalDate||e,a=s.getTime();return Le(a,n.length)}};function Ed(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+Le(s,2)}function Sd(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Le(Math.abs(t)/60,2)}return Lo(t,e)}function Lo(t,e){var n=e||"",o=t>0?"-":"+",i=Math.abs(t),s=Le(Math.floor(i/60),2),a=Le(i%60,2);return o+s+n+a}const Zy=Wy;var xd=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"})}},Dp=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"})}},Ky=function(e,n){var o=e.match(/(P+)(p+)?/)||[],i=o[1],s=o[2];if(!s)return xd(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}}",xd(i,n)).replace("{{time}}",Dp(s,n))},Gy={p:Dp,P:Ky};const Yy=Gy;var Jy=["D","DD"],Xy=["YY","YYYY"];function Qy(t){return Jy.indexOf(t)!==-1}function e5(t){return Xy.indexOf(t)!==-1}function Td(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 t5={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"}},n5=function(e,n,o){var i,s=t5[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 o5=n5;function Cl(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 r5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},s5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a5={date:Cl({formats:r5,defaultWidth:"full"}),time:Cl({formats:i5,defaultWidth:"full"}),dateTime:Cl({formats:s5,defaultWidth:"full"})};const l5=a5;var c5={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u5=function(e,n,o,i){return c5[e]};const d5=u5;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 f5={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},p5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},m5={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"]},h5={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"]},g5={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"}},v5={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"}},_5=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"},y5={ordinalNumber:_5,era:fi({values:f5,defaultWidth:"wide"}),quarter:fi({values:p5,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:fi({values:m5,defaultWidth:"wide"}),day:fi({values:h5,defaultWidth:"wide"}),dayPeriod:fi({values:g5,defaultWidth:"wide",formattingValues:v5,defaultFormattingWidth:"wide"})};const C5=y5;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)?k5(l,function(f){return f.test(a)}):b5(l,function(f){return f.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 b5(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function k5(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function w5(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 E5=/^(\d+)(th|st|nd|rd)?/i,S5=/\d+/i,x5={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},T5={any:[/^b/i,/^(a|c)/i]},A5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},N5={any:[/1/i,/2/i,/3/i,/4/i]},D5={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},$5={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]},B5={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},M5={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]},L5={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},O5={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}},V5={ordinalNumber:w5({matchPattern:E5,parsePattern:S5,valueCallback:function(e){return parseInt(e,10)}}),era:pi({matchPatterns:x5,defaultMatchWidth:"wide",parsePatterns:T5,defaultParseWidth:"any"}),quarter:pi({matchPatterns:A5,defaultMatchWidth:"wide",parsePatterns:N5,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:pi({matchPatterns:D5,defaultMatchWidth:"wide",parsePatterns:$5,defaultParseWidth:"any"}),day:pi({matchPatterns:B5,defaultMatchWidth:"wide",parsePatterns:M5,defaultParseWidth:"any"}),dayPeriod:pi({matchPatterns:L5,defaultMatchWidth:"any",parsePatterns:O5,defaultParseWidth:"any"})};const I5=V5;var P5={code:"en-US",formatDistance:o5,formatLong:l5,formatRelative:d5,localize:C5,match:I5,options:{weekStartsOn:0,firstWeekContainsDate:1}};const $p=P5;var F5=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,R5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,z5=/^'([^]*?)'?$/,U5=/''/g,q5=/[a-zA-Z]/;function Xc(t,e,n){var o,i,s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,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:$p,T=Zn((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:(f=k.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=Zn((m=(h=(g=(y=n==null?void 0:n.weekStartsOn)!==null&&y!==void 0?y:n==null||(C=n.locale)===null||C===void 0||(v=C.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&g!==void 0?g: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(!(S>=0&&S<=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 E=xt(t);if(!Tp(E))throw new RangeError("Invalid time value");var D=Fi(E),x=cc(E,D),$={firstWeekContainsDate:T,weekStartsOn:S,locale:A,_originalDate:E},B=w.match(R5).map(function(V){var I=V[0];if(I==="p"||I==="P"){var j=Yy[I];return j(V,A.formatLong)}return V}).join("").match(F5).map(function(V){if(V==="''")return"'";var I=V[0];if(I==="'")return H5(V);var j=Zy[I];if(j)return!(n!=null&&n.useAdditionalWeekYearTokens)&&e5(V)&&Td(V,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Qy(V)&&Td(V,e,String(t)),j(x,V,A.localize,$);if(I.match(q5))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return V}).join("");return B}function H5(t){var e=t.match(z5);return e?e[1].replace(U5,"'"):t}function j5(t,e,n){var o,i,s,a,l,c,u,d,f,p;nt(2,arguments);var m=xt(t),h=xt(e),g=Qi(),y=(o=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:g.locale)!==null&&o!==void 0?o:$p,C=Zn((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:g.weekStartsOn)!==null&&a!==void 0?a:(f=g.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&s!==void 0?s:0);if(!y.localize)throw new RangeError("locale must contain localize property");if(!y.formatLong)throw new RangeError("locale must contain formatLong property");if(!y.formatRelative)throw new RangeError("locale must contain formatRelative property");var v=Ly(m,h);if(isNaN(v))throw new RangeError("Invalid time value");var _;v<-6?_="other":v<-1?_="lastWeek":v<0?_="yesterday":v<1?_="today":v<2?_="tomorrow":v<7?_="nextWeek":_="other";var b=cc(m,Fi(m)),w=cc(h,Fi(h)),k=y.formatRelative(_,b,w,{locale:y,weekStartsOn:C});return Xc(m,k,{locale:y,weekStartsOn:C})}function Br(t,e){var n;nt(1,arguments);var o=Zn((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=G5(t),s;if(i.date){var a=Y5(i.date,o);s=J5(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(i.time&&(c=X5(i.time),isNaN(c)))return new Date(NaN);if(i.timezone){if(u=Q5(i.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(l+c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}return new Date(l+c+u)}var xs={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},W5=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Z5=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,K5=/^([+-])(\d{2})(?::?(\d{2}))?$/;function G5(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 Y5(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 J5(t,e){if(e===null)return new Date(NaN);var n=t.match(W5);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 r7(e,l,c)?e7(e,l,c):new Date(NaN);var u=new Date(0);return!n7(e,s,a)||!o7(e,i)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(i,a)),u)}function mi(t){return t?parseInt(t):1}function X5(t){var e=t.match(Z5);if(!e)return NaN;var n=bl(e[1]),o=bl(e[2]),i=bl(e[3]);return i7(n,o,i)?n*xp+o*Sp+i*1e3:NaN}function bl(t){return t&&parseFloat(t.replace(",","."))||0}function Q5(t){if(t==="Z")return 0;var e=t.match(K5);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return s7(o,i)?n*(o*xp+i*Sp):NaN}function e7(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 t7=[31,null,31,30,31,30,31,31,30,31,30,31];function Bp(t){return t%400===0||t%4===0&&t%100!==0}function n7(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(t7[e]||(Bp(t)?29:28))}function o7(t,e){return e>=1&&e<=(Bp(t)?366:365)}function r7(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function i7(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function s7(t,e){return e>=0&&e<=59}var Nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function a7(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function l7(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={},Mp={},hi={},es={},Wr={},Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.lexoHelper=void 0;Aa.lexoHelper={arrayCopy:c7};function c7(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 u7{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=u7;Object.defineProperty(Wr,"__esModule",{value:!0});Wr.LexoInteger=void 0;const Ts=Aa,d7=ts;class ve{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 ve.make(n,i,s)}static zero(e){return new ve(e,0,ve.ZERO_MAG)}static one(e){return ve.make(e,1,ve.ONE_MAG)}static make(e,n,o){let i;for(i=o.length;i>0&&o[i-1]===0;--i);if(i===0)return ve.zero(e);if(i===o.length)return new ve(e,n,o);const s=new Array(i).fill(0);return Ts.lexoHelper.arrayCopy(o,0,s,0,i),new ve(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 ve.extendWithCarry(s,a)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return Ts.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const i=ve.complement(e,o,n.length),s=ve.add(e,n,i);return s[s.length-1]=0,ve.add(e,s,ve.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=ve.add(this.sys,this.mag,e.mag);return ve.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=ve.compare(this.mag,e.mag);return n===0?ve.zero(this.sys):n<0?ve.make(this.sys,this.sign===-1?1:-1,ve.subtract(this.sys,e.mag,this.mag)):ve.make(this.sys,this.sign===-1?-1:1,ve.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?ve.make(this.sys,1,e.mag):ve.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?ve.make(this.sys,1,this.mag):ve.make(this.sys,-1,this.mag);const n=ve.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?ve.make(this.sys,1,n):ve.make(this.sys,-1,n)}negate(){return this.isZero()?this:ve.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 Ts.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),ve.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return ve.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return Ts.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),ve.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return ve.make(this.sys,this.sign,ve.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=ve.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?ve.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 d7.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")}}Wr.LexoInteger=ve;ve.ZERO_MAG=[0];ve.ONE_MAG=[1];ve.NEGATIVE_SIGN=-1;ve.ZERO_SIGN=0;ve.POSITIVE_SIGN=1;Object.defineProperty(es,"__esModule",{value:!0});es.LexoDecimal=void 0;const gi=Wr,f7=ts;class Kt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Kt.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 Kt.make(gi.LexoInteger.parse(e,n),0);const i=e.substring(0,o)+e.substring(o+1);return Kt.make(gi.LexoInteger.parse(i,n),e.length-1-o)}static from(e){return Kt.make(e,0)}static make(e,n){if(e.isZero())return new Kt(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 Kt(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 Kt.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 Kt.make(n.subtract(i),o)}multiply(e){return Kt.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()))),Kt.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 f7.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=Kt;var As={},Ad;function Lp(){if(Ad)return As;Ad=1,Object.defineProperty(As,"__esModule",{value:!0});const t=Wr,e=Vp();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 As.default=n,As}var Qc={},Op={};Object.defineProperty(Op,"__esModule",{value:!0});var Na={};Object.defineProperty(Na,"__esModule",{value:!0});Na.LexoNumeralSystem10=void 0;class p7{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)}}Na.LexoNumeralSystem10=p7;var Da={};Object.defineProperty(Da,"__esModule",{value:!0});Da.LexoNumeralSystem36=void 0;class m7{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]}}Da.LexoNumeralSystem36=m7;var $a={};Object.defineProperty($a,"__esModule",{value:!0});$a.LexoNumeralSystem64=void 0;class h7{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]}}$a.LexoNumeralSystem64=h7;(function(t){var e=Nt&&Nt.__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=Nt&&Nt.__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(Op,t),n(Na,t),n(Da,t),n($a,t)})(Qc);var Nd;function Vp(){if(Nd)return hi;Nd=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.LexoRank=void 0;const t=es,e=Lp(),n=ts,o=Qc;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 f;for(let h=c.getScale();h>0;u=f){const g=h-1,y=c.setScale(g,!0);if(f=u.setScale(g,!1),y.compareTo(f)===0)return i.checkMid(a,l,y);if(y.compareTo(f)>0)break;h=g,c=y}let p=i.middleInternal(a,l,c,u),m;for(let h=p.getScale();h>0;h=m){m=h-1;const g=p.setScale(m);if(a.compareTo(g)>=0||g.compareTo(l)>=0)break;p=g}return p}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 f=u.setScale(d,!1);if(f.compareTo(a)>0)return f;const p=u.setScale(d,!0);if(p.compareTo(l)<0)return p}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=Nt&&Nt.__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=Nt&&Nt.__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(Vp(),t),n(Lp(),t),n(es,t),n(Wr,t)})(Mp);(function(t){var e=Nt&&Nt.__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=Nt&&Nt.__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(Mp,t),n(Qc,t)})(Xe);const Ei=60,g7=8,Dd=Ei*g7;function Ba(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/Dd),i=Math.floor(t%Dd/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 Ip(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 v7(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 _7(t){return(t==null?void 0:t.reduce((e,n)=>{var i;const o=(i=n.milestones)!=null&&i.length?Ip(n.milestones):0;return e+o},0))??0}function y7(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function ns(t,e){if(t.moved)return Mr(e,t.moved.newIndex)}function Mr(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 eu(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 Ma(t,e="dd/MM/yyyy"){if(!t)return"";const n=Br(t);return Tp(n)?Xc(n,e):""}function tu(t,e){return t.status.id===e.id}function C7(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!tu(n,e))}function b7(t,e){return{...t,status:C7(t,e)?Pi.done:Pi.todo}}const Pp=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function k7(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 w7(t,e=.15){var n;if(t.startsWith("#"))return k7(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 Fp(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function $d(t,e){const n=e.filter(i=>i.firstName||i.lastName).map(i=>({id:i.id,name:Fp(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 E7=["title"],S7={key:0,className:"ao-avatar__initials"},x7=["src"],Xn=r.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:Ta.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=y7(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",S7,r.toDisplayString(r.unref(s)),1)),t.avatarUrl?(r.openBlock(),r.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,x7)):r.createCommentVNode("",!0),t.isClosable?(r.openBlock(),r.createBlock(ue,{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,E7))}});const T7={class:"ao-card-template__subitems"},A7={class:"ao-card-template__subitem"},N7={class:"ao-card-template__subitem-number"},D7={class:"ao-card-template__subitem"},$7={class:"ao-card-template__subitem"},B7={class:"ao-card-template__body"},M7={class:"ao-card-template__col ao-card-template__col--phases"},L7={class:"ao-card-template__col-title"},O7={class:"ao-card-template__col-label"},V7={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},I7={class:"ao-card-template__footer"},P7={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},F7={class:"ao-card-template__col-title"},R7={class:"ao-card-template__col-label"},z7={class:"ao-card-template__col-body"},U7={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},q7={class:"ao-card-template__col-title"},H7={class:"ao-card-template__col-label"},j7={class:"ao-card-template__col-body"},W7={class:"ao-card-template-item__secondary"},kl=5,Z7=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,kl))??[]}),l=r.computed(()=>n.phases&&n.phases.length>kl?n.phases.length-kl:0);return(c,u)=>(r.openBlock(),r.createBlock(yp,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":i},r.createSlots({subtitle:r.withCtx(()=>[r.createElementVNode("ul",T7,[r.createElementVNode("li",A7,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",N7,r.toDisplayString(t.milestones),1)]),r.createElementVNode("li",D7,[r.createVNode(ke,{name:"TaskOutlineRounded",size:"sm"}),r.createElementVNode("span",$7,r.toDisplayString(t.activities),1)])])]),default:r.withCtx(()=>[r.createElementVNode("div",B7,[r.createElementVNode("div",M7,[r.createElementVNode("div",L7,[r.createVNode(ke,{name:"WaterfallChartRounded",size:"sm"}),r.createElementVNode("span",O7,r.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(r.openBlock(),r.createElementBlock("ul",V7,[(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",W7,[r.createVNode(ue,{"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",I7,[t.updatedAt?(r.openBlock(),r.createElementBlock("div",P7,[r.createElementVNode("div",F7,[r.createElementVNode("span",R7,r.toDisplayString(c.$t("template.updatedAt.label")),1)]),r.createElementVNode("div",z7,[r.createElementVNode("span",null,r.toDisplayString(t.updatedAt),1)])])):r.createCommentVNode("",!0),t.updatedBy?(r.openBlock(),r.createElementBlock("div",U7,[r.createElementVNode("div",q7,[r.createElementVNode("span",H7,r.toDisplayString(c.$t("template.updatedBy.label")),1)]),r.createElementVNode("div",j7,[r.createVNode(Xn,{"user-name":t.updatedBy},null,8,["user-name"])])])):r.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const K7={class:"ao-page-header"},G7={class:"ao-page-header-main"},Y7={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",K7,[r.createElementVNode("div",G7,[t.canGoBack?(r.openBlock(),r.createBlock(ue,{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",Y7,[r.renderSlot(e.$slots,"secondary")])):r.createCommentVNode("",!0)]))}});const J7=["type"],X7={key:0,class:"ao-button-card__label"},wo=r.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Jc.BLACK},size:{default:()=>Ta.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>_p.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",X7,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,J7))}});const Q7={class:"ao-card-template-item__footer"},eC={key:0,class:"ao-card-template-item__subitem"},tC={class:"ao-card-template-item__subitem-number"},nC={class:"ao-card-template-item__secondary"},nu=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(yp,{"onUpdate:title":o},{footer:r.withCtx(()=>[r.createElementVNode("ul",Q7,[(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",eC,[r.createVNode(ke,{name:s[u],size:"sm"},null,8,["name"]),r.createElementVNode("span",tC,r.toDisplayString(l.$props[u]),1)])):r.createCommentVNode("",!0)],64))),64))])]),secondary:r.withCtx(()=>[r.createElementVNode("div",nC,[r.createVNode(ue,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:r.withModifiers(a,["stop"])})])]),_:1}))}});const oC=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?Ip(e.milestones):0);return(i,s)=>(r.openBlock(),r.createBlock(nu,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"]))}}),rC=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(nu,{activities:n.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),iC={class:"ao-list__footer"},sC=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(ko),{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(rC,{id:d.id,key:d.id,title:d.name,activities:d.activities,"is-active":t.milestoneId===d.id,"is-draggable":!0,"onUpdate:title":f=>a({id:d.id,name:f}),onClick:f=>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",iC,[r.createVNode(wo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:i},null,8,["label"])])]),_:1},8,["model-value","title"])):r.createCommentVNode("",!0)}}),aC=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(nu,{tasks:n.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),lC={class:"ao-list__footer"},cC=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(ko),{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(aC,{id:d.id,key:d.id,title:d.name,tasks:d.tasks,"is-active":t.activityId===d.id,"is-draggable":!0,"onUpdate:title":f=>s({id:d.id,name:f}),onClick:f=>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",lC,[r.createVNode(wo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:i},null,8,["label"])])]),_:1},8,["model-value","title"])):r.createCommentVNode("",!0)}}),uC={class:"ao-modal"},dC={key:0,class:"ao-modal__header"},fC={class:"ao-modal__header-meta"},pC={class:"ao-modal__title-group"},mC={class:"ao-modal__body"},hC={key:1,class:"ao-modal__footer"},La=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",uC,[e.$slots.header?(r.openBlock(),r.createElementBlock("div",dC,[r.createElementVNode("div",fC,[r.createVNode(ue,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),r.createElementVNode("header",pC,[r.renderSlot(e.$slots,"header")])])):r.createCommentVNode("",!0),r.createElementVNode("div",mC,[r.renderSlot(e.$slots,"default")]),e.$slots.footer?(r.openBlock(),r.createElementBlock("footer",hC,[r.renderSlot(e.$slots,"footer")])):r.createCommentVNode("",!0)])],2))}});const Ri=Math.min,Gt=Math.max,ea=Math.round,Ns=Math.floor,vo=t=>({x:t,y:t}),gC={left:"right",right:"left",bottom:"top",top:"bottom"},vC={start:"end",end:"start"};function ou(t,e){return typeof t=="function"?t(e):t}function Lr(t){return t.split("-")[0]}function Oa(t){return t.split("-")[1]}function _C(t){return t==="x"?"y":"x"}function Rp(t){return t==="y"?"height":"width"}function ru(t){return["top","bottom"].includes(Lr(t))?"y":"x"}function zp(t){return _C(ru(t))}function yC(t,e,n){n===void 0&&(n=!1);const o=Oa(t),i=zp(t),s=Rp(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 CC(t){const e=ta(t);return[uc(t),e,uc(e)]}function uc(t){return t.replace(/start|end/g,e=>vC[e])}function bC(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 kC(t,e,n,o){const i=Oa(t);let s=bC(Lr(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(uc)))),s}function ta(t){return t.replace(/left|right|bottom|top/g,e=>gC[e])}function wC(t){return{top:0,right:0,bottom:0,left:0,...t}}function EC(t){return typeof t!="number"?wC(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 Bd(t,e,n){let{reference:o,floating:i}=t;const s=ru(e),a=zp(e),l=Rp(a),c=Lr(e),u=s==="y",d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=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:f};break;case"left":m={x:o.x-i.width,y:f};break;default:m={x:o.x,y:o.y}}switch(Oa(e)){case"start":m[a]-=p*(n&&u?-1:1);break;case"end":m[a]+=p*(n&&u?-1:1);break}return m}const SC=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:f}=Bd(u,o,c),p=o,m={},h=0;for(let g=0;g<l.length;g++){const{name:y,fn:C}=l[g],{x:v,y:_,data:b,reset:w}=await C({x:d,y:f,initialPlacement:o,placement:p,strategy:i,middlewareData:m,rects:u,platform:a,elements:{reference:t,floating:e}});if(d=v??d,f=_??f,m={...m,[y]:{...m[y],...b}},w&&h<=50){h++,typeof w=="object"&&(w.placement&&(p=w.placement),w.rects&&(u=w.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):w.rects),{x:d,y:f}=Bd(u,p,c)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:i,middlewareData:m}};async function Up(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:f="floating",altBoundary:p=!1,padding:m=0}=ou(e,t),h=EC(m),y=l[p?f==="floating"?"reference":"floating":f],C=na(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),v=f==="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:v,offsetParent:_,strategy:c}):v);return{top:(C.top-w.top+h.top)/b.y,bottom:(w.bottom-C.bottom+h.bottom)/b.y,left:(C.left-w.left+h.left)/b.x,right:(w.right-C.right+h.right)/b.x}}const xC=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:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...y}=ou(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Lr(i),v=Lr(l)===l,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),b=p||(v||!g?[ta(l)]:CC(l));!p&&h!=="none"&&b.push(...kC(l,g,h,_));const w=[l,...b],k=await Up(e,y),A=[];let T=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&A.push(k[C]),f){const x=yC(i,a,_);A.push(k[x[0]],k[x[1]])}if(T=[...T,{placement:i,overflows:A}],!A.every(x=>x<=0)){var S,E;const x=(((S=s.flip)==null?void 0:S.index)||0)+1,$=w[x];if($)return{data:{index:x,overflows:T},reset:{placement:$}};let B=(E=T.filter(V=>V.overflows[0]<=0).sort((V,I)=>V.overflows[1]-I.overflows[1])[0])==null?void 0:E.placement;if(!B)switch(m){case"bestFit":{var D;const V=(D=T.map(I=>[I.placement,I.overflows.filter(j=>j>0).reduce((j,F)=>j+F,0)]).sort((I,j)=>I[1]-j[1])[0])==null?void 0:D[0];V&&(B=V);break}case"initialPlacement":B=l;break}if(i!==B)return{reset:{placement:B}}}return{}}}},TC=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}=ou(t,e),c=await Up(e,l),u=Lr(n),d=Oa(n),f=ru(n)==="y",{width:p,height:m}=o.floating;let h,g;u==="top"||u==="bottom"?(h=u,g=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,h=d==="end"?"top":"bottom");const y=m-c[h],C=p-c[g],v=!e.middlewareData.shift;let _=y,b=C;if(f){const k=p-c.left-c.right;b=d||v?Ri(C,k):k}else{const k=m-c.top-c.bottom;_=d||v?Ri(y,k):k}if(v&&!d){const k=Gt(c.left,0),A=Gt(c.right,0),T=Gt(c.top,0),S=Gt(c.bottom,0);f?b=p-2*(k!==0||A!==0?k+A:Gt(c.left,c.right)):_=m-2*(T!==0||S!==0?T+S:Gt(c.top,c.bottom))}await a({...e,availableWidth:b,availableHeight:_});const w=await i.getDimensions(s.floating);return p!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function _o(t){return qp(t)?(t.nodeName||"").toLowerCase():"#document"}function zt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Qn(t){var e;return(e=(qp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qp(t){return t instanceof Node||t instanceof zt(t).Node}function Kn(t){return t instanceof Element||t instanceof zt(t).Element}function An(t){return t instanceof HTMLElement||t instanceof zt(t).HTMLElement}function Md(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof zt(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 AC(t){return["table","td","th"].includes(_o(t))}function iu(t){const e=su(),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 NC(t){let e=Or(t);for(;An(e)&&!Va(e);){if(iu(e))return e;e=Or(e)}return null}function su(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Va(t){return["html","body","#document"].includes(_o(t))}function tn(t){return zt(t).getComputedStyle(t)}function Ia(t){return Kn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Or(t){if(_o(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Md(t)&&t.host||Qn(t);return Md(e)?e.host:e}function Hp(t){const e=Or(t);return Va(e)?t.ownerDocument?t.ownerDocument.body:t.body:An(e)&&is(e)?e:Hp(e)}function zi(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Hp(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=zt(i);return s?e.concat(a,a.visualViewport||[],is(i)?i:[],a.frameElement&&n?zi(a.frameElement):[]):e.concat(i,zi(i))}function jp(t){const e=tn(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=An(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 au(t){return Kn(t)?t:t.contextElement}function Er(t){const e=au(t);if(!An(e))return vo(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=jp(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 DC=vo(0);function Wp(t){const e=zt(t);return!su()||!e.visualViewport?DC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function $C(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==zt(t)?!1:e}function Ko(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=au(t);let a=vo(1);e&&(o?Kn(o)&&(a=Er(o)):a=Er(t));const l=$C(s,n,o)?Wp(s):vo(0);let c=(i.left+l.x)/a.x,u=(i.top+l.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(s){const p=zt(s),m=o&&Kn(o)?zt(o):o;let h=p.frameElement;for(;h&&o&&m!==p;){const g=Er(h),y=h.getBoundingClientRect(),C=tn(h),v=y.left+(h.clientLeft+parseFloat(C.paddingLeft))*g.x,_=y.top+(h.clientTop+parseFloat(C.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,f*=g.y,c+=v,u+=_,h=zt(h).frameElement}}return na({width:d,height:f,x:c,y:u})}function BC(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=An(n),s=Qn(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=vo(1);const c=vo(0);if((i||!i&&o!=="fixed")&&((_o(n)!=="body"||is(s))&&(a=Ia(n)),An(n))){const u=Ko(n);l=Er(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 MC(t){return Array.from(t.getClientRects())}function Zp(t){return Ko(Qn(t)).left+Ia(t).scrollLeft}function LC(t){const e=Qn(t),n=Ia(t),o=t.ownerDocument.body,i=Gt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Gt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Zp(t);const l=-n.scrollTop;return tn(o).direction==="rtl"&&(a+=Gt(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:l}}function OC(t,e){const n=zt(t),o=Qn(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=su();(!u||u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l,y:c}}function VC(t,e){const n=Ko(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=An(t)?Er(t):vo(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 Ld(t,e,n){let o;if(e==="viewport")o=OC(t,n);else if(e==="document")o=LC(Qn(t));else if(Kn(e))o=VC(e,n);else{const i=Wp(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return na(o)}function Kp(t,e){const n=Or(t);return n===e||!Kn(n)||Va(n)?!1:tn(n).position==="fixed"||Kp(n,e)}function IC(t,e){const n=e.get(t);if(n)return n;let o=zi(t,[],!1).filter(l=>Kn(l)&&_o(l)!=="body"),i=null;const s=tn(t).position==="fixed";let a=s?Or(t):t;for(;Kn(a)&&!Va(a);){const l=tn(a),c=iu(a);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||is(a)&&!c&&Kp(t,a))?o=o.filter(d=>d!==a):i=l,a=Or(a)}return e.set(t,o),o}function PC(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?IC(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((u,d)=>{const f=Ld(e,d,i);return u.top=Gt(f.top,u.top),u.right=Ri(f.right,u.right),u.bottom=Ri(f.bottom,u.bottom),u.left=Gt(f.left,u.left),u},Ld(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function FC(t){return jp(t)}function RC(t,e,n){const o=An(e),i=Qn(e),s=n==="fixed",a=Ko(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=vo(0);if(o||!o&&!s)if((_o(e)!=="body"||is(i))&&(l=Ia(e)),o){const u=Ko(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else i&&(c.x=Zp(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Od(t,e){return!An(t)||tn(t).position==="fixed"?null:e?e(t):t.offsetParent}function Gp(t,e){const n=zt(t);if(!An(t))return n;let o=Od(t,e);for(;o&&AC(o)&&tn(o).position==="static";)o=Od(o,e);return o&&(_o(o)==="html"||_o(o)==="body"&&tn(o).position==="static"&&!iu(o))?n:o||NC(t)||n}const zC=async function(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||Gp,s=this.getDimensions;return{reference:RC(e,await i(n),o),floating:{x:0,y:0,...await s(n)}}};function UC(t){return tn(t).direction==="rtl"}const qC={convertOffsetParentRelativeRectToViewportRelativeRect:BC,getDocumentElement:Qn,getClippingRect:PC,getOffsetParent:Gp,getElementRects:zC,getClientRects:MC,getDimensions:FC,getScale:Er,isElement:Kn,isRTL:UC};function HC(t,e){let n=null,o;const i=Qn(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:f,height:p}=t.getBoundingClientRect();if(l||e(),!f||!p)return;const m=Ns(d),h=Ns(i.clientWidth-(u+f)),g=Ns(i.clientHeight-(d+p)),y=Ns(u),v={rootMargin:-m+"px "+-h+"px "+-g+"px "+-y+"px",threshold:Gt(0,Ri(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,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(t)}return a(!0),s}function jC(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=au(t),d=i||s?[...u?zi(u):[],...zi(e)]:[];d.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const f=u&&l?HC(u,n):null;let p=-1,m=null;a&&(m=new ResizeObserver(C=>{let[v]=C;v&&v.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{m&&m.observe(e)})),n()}),u&&!c&&m.observe(u),m.observe(e));let h,g=c?Ko(t):null;c&&y();function y(){const C=Ko(t);g&&(C.x!==g.x||C.y!==g.y||C.width!==g.width||C.height!==g.height)&&n(),g=C,h=requestAnimationFrame(y)}return n(),()=>{d.forEach(C=>{i&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),f&&f(),m&&m.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const WC=(t,e,n)=>{const o=new Map,i={platform:qC,...n},s={...i.platform,_c:o};return SC(t,e,{...i,platform:s})},ZC=t=>{const e=r.ref(!1),n=r.ref(),o=r.ref(),i=r.ref(0);function s(){const f=r.unref(t.appendTo);return f?typeof f=="string"?document.getElementById(f)??document.body:f:document.getElementById("floatingElements")??document.body}const a=s(),l=r.ref(()=>{});function c(f){f.relatedTarget&&o.value&&o.value.contains(f.relatedTarget)||t.multiselect.value.deactivate()}function u(){const f=t.multiselect.value.$el,p=f.querySelector(".multiselect-dropdown");if(!p||!f||e.value===!0)return;o.value=p,n.value=f,getComputedStyle(p).getPropertyValue("display")==="none"&&(p.style.display="flex"),i.value=p.offsetHeight,p.style.removeProperty("display"),Object.assign(p.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),a.appendChild(p),t.multiselect.value.handleFocusOut=c;const h=jC(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),h()}}function d(){!o.value||!n.value||WC(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[xC({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),TC({apply({availableWidth:f,availableHeight:p,elements:m,rects:h}){Object.assign(m.floating.style,{minHeight:`${i.value}px`,width:`${h.reference.width}px`,maxWidth:`${f}px`,maxHeight:`${p}px`})}})]}).then(({x:f,y:p})=>{Object.assign(o.value.style,{left:`${f}px`,top:`${p}px`})})}r.onMounted(()=>{u()}),r.onBeforeUnmount(()=>{l.value()}),r.onUnmounted(()=>{l.value()})};function Cn(t){return[null,void 0].indexOf(t)!==-1}function KC(t,e,n){const{object:o,valueProp:i,mode:s}=r.toRefs(t),a=r.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=d(f);const m=u(f);e.emit("change",m,a),p&&(e.emit("input",m),e.emit("update:modelValue",m))},u=f=>o.value||Cn(f)?f:Array.isArray(f)?f.map(p=>p[i.value]):f[i.value],d=f=>Cn(f)?s.value==="single"?{}:[]:f;return{update:c}}function GC(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 YC(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=p=>{l.value=p.target.value},d=p=>{if(o&&o.value){let m=o.value;typeof m=="string"&&(m=new RegExp(m)),p.key.match(m)||p.preventDefault()}},f=p=>{if(o&&o.value){let h=(p.clipboardData||window.clipboardData).getData("Text"),g=o.value;typeof g=="string"&&(g=new RegExp(g)),h.split("").every(y=>!!y.match(g))||p.preventDefault()}e.emit("paste",p,i)};return r.watch(l,p=>{!s.value&&p&&a(),e.emit("search-change",p,i)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function JC(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 wl(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 XC(t){return Object.prototype.toString.call(t)==="[object Object]"}function QC(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,i){return o===n[i]})}function eb(t,e,n){const{options:o,mode:i,trackBy:s,limit:a,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:f,appendNewOption:p,multipleLabel:m,object:h,loading:g,delay:y,resolveOnLoad:C,minChars:v,filterResults:_,clearOnSearch:b,clearOnSelect:w,valueProp:k,allowAbsent:A,groupLabel:T,canDeselect:S,max:E,strict:D,closeOnSelect:x,closeOnDeselect:$,groups:B,reverse:V,infinite:I,groupOptions:j,groupHideEmpty:F,groupSelect:q,onCreate:Q,disabledProp:ae,searchStart:ne,searchFilter:ye}=r.toRefs(t),re=r.getCurrentInstance().proxy,ie=n.iv,U=n.ev,P=n.search,se=n.clearSearch,we=n.update,Re=n.pointer,Ce=n.setPointer,R=n.clearPointer,le=n.focus,ge=n.deactivate,me=n.close,Ee=n.localize,ze=r.ref([]),Be=r.ref([]),Ae=r.ref(!1),Ie=r.ref(null),Pe=r.ref(I.value&&a.value===-1?10:a.value),dt=r.computed(()=>c.value||u.value||!1),Ln=r.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),He=r.computed(()=>{if(B.value){let M=Bt.value||[],Y=[];return M.forEach(be=>{si(be[j.value]).forEach(je=>{Y.push(Object.assign({},je,be[ae.value]?{[ae.value]:!0}:{}))})}),Y}else{let M=si(Be.value||[]);return ze.value.length&&(M=M.concat(ze.value)),M}}),_t=r.computed(()=>{let M=He.value;return V.value&&(M=M.reverse()),Ue.value.length&&(M=Ue.value.concat(M)),ii(M)}),it=r.computed(()=>{let M=_t.value;return Pe.value>0&&(M=M.slice(0,Pe.value)),M}),Bt=r.computed(()=>{if(!B.value)return[];let M=[],Y=Be.value||[];return ze.value.length&&M.push({[T.value]:" ",[j.value]:[...ze.value],__CREATE__:!0}),M.concat(Y)}),Zt=r.computed(()=>{let M=[...Bt.value].map(Y=>({...Y}));return Ue.value.length&&(M[0]&&M[0].__CREATE__?M[0][j.value]=[...Ue.value,...M[0][j.value]]:M=[{[T.value]:" ",[j.value]:[...Ue.value],__CREATE__:!0}].concat(M)),M}),_n=r.computed(()=>{if(!B.value)return[];let M=Zt.value;return No((M||[]).map((Y,be)=>{const je=si(Y[j.value]);return{...Y,index:be,group:!0,[j.value]:ii(je,!1).map(In=>Object.assign({},In,Y[ae.value]?{[ae.value]:!0}:{})),__VISIBLE__:ii(je).map(In=>Object.assign({},In,Y[ae.value]?{[ae.value]:!0}:{}))}}))}),On=r.computed(()=>{switch(i.value){case"single":return!Cn(ie.value[k.value]);case"multiple":case"tags":return!Cn(ie.value)&&ie.value.length>0}}),L=r.computed(()=>m!==void 0&&m.value!==void 0?m.value(ie.value,re):ie.value&&ie.value.length>1?`${ie.value.length} options selected`:"1 option selected"),K=r.computed(()=>!He.value.length&&!Ae.value&&!Ue.value.length),fe=r.computed(()=>He.value.length>0&&it.value.length==0&&(P.value&&B.value||!B.value)),Ue=r.computed(()=>dt.value===!1||!P.value?[]:Cs(P.value)!==-1?[]:[{[k.value]:P.value,[Je.value[0]]:P.value,[d.value]:P.value,__CREATE__:!0}]),Je=r.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),Vn=r.computed(()=>{switch(i.value){case"single":return null;case"multiple":case"tags":return[]}}),Se=r.computed(()=>g.value||Ae.value),Mt=M=>{switch(typeof M!="object"&&(M=It(M)),i.value){case"single":we(M);break;case"multiple":case"tags":we(ie.value.concat(M));break}e.emit("select",Lt(M),M,re)},kt=M=>{switch(typeof M!="object"&&(M=It(M)),i.value){case"single":ni();break;case"tags":case"multiple":we(Array.isArray(M)?ie.value.filter(Y=>M.map(be=>be[k.value]).indexOf(Y[k.value])===-1):ie.value.filter(Y=>Y[k.value]!=M[k.value]));break}e.emit("deselect",Lt(M),M,re)},Lt=M=>h.value?M:M[k.value],ur=M=>{kt(M)},_s=(M,Y)=>{if(Y.button!==0){Y.preventDefault();return}ur(M)},ni=()=>{we(Vn.value),e.emit("clear",re)},Ot=M=>{if(M.group!==void 0)return i.value==="single"?!1:ys(M[j.value])&&M[j.value].length;switch(i.value){case"single":return!Cn(ie.value)&&ie.value[k.value]==M[k.value];case"tags":case"multiple":return!Cn(ie.value)&&ie.value.map(Y=>Y[k.value]).indexOf(M[k.value])!==-1}},dr=M=>M[ae.value]===!0,to=()=>E===void 0||E.value===-1||!On.value&&E.value>0?!1:ie.value.length>=E.value,fr=M=>{if(!dr(M)){if(Q&&Q.value&&!Ot(M)&&M.__CREATE__&&(M={...M},delete M.__CREATE__,M=Q.value(M,re),M instanceof Promise)){Ae.value=!0,M.then(Y=>{Ae.value=!1,Vt(Y)});return}Vt(M)}},Vt=M=>{switch(M.__CREATE__&&(M={...M},delete M.__CREATE__),i.value){case"single":if(M&&Ot(M)){S.value&&kt(M),$.value&&(R(),me());return}M&&Ao(M),w.value&&se(),x.value&&(R(),me()),M&&Mt(M);break;case"multiple":if(M&&Ot(M)){kt(M),$.value&&(R(),me());return}if(to()){e.emit("max",re);return}M&&(Ao(M),Mt(M)),w.value&&se(),l.value&&R(),x.value&&me();break;case"tags":if(M&&Ot(M)){kt(M),$.value&&(R(),me());return}if(to()){e.emit("max",re);return}M&&Ao(M),w.value&&se(),M&&Mt(M),l.value&&R(),x.value&&me();break}x.value||le()},no=M=>{if(!(dr(M)||i.value==="single"||!q.value)){switch(i.value){case"multiple":case"tags":hl(M[j.value])?kt(M[j.value]):Mt(M[j.value].filter(Y=>ie.value.map(be=>be[k.value]).indexOf(Y[k.value])===-1).filter(Y=>!Y[ae.value]).filter((Y,be)=>ie.value.length+1+be<=E.value||E.value===-1)),l.value&&Re.value&&Ce(_n.value.filter(Y=>!Y[ae.value])[Re.value.index]);break}x.value&&ge()}},Ao=M=>{It(M[k.value])===void 0&&dt.value&&(e.emit("tag",M[k.value],re),e.emit("option",M[k.value],re),e.emit("create",M[k.value],re),Ln.value&&gl(M),se())},oi=()=>{i.value!=="single"&&Mt(it.value.filter(M=>!M.disabled&&!Ot(M)))},hl=M=>M.find(Y=>!Ot(Y)&&!Y[ae.value])===void 0,ys=M=>M.find(Y=>!Ot(Y))===void 0,It=M=>He.value[He.value.map(Y=>String(Y[k.value])).indexOf(String(M))],Cs=M=>He.value.findIndex(Y=>Je.value.some(be=>(parseInt(Y[be])==Y[be]?parseInt(Y[be]):Y[be])===(parseInt(M)==M?parseInt(M):M))),ri=M=>["tags","multiple"].indexOf(i.value)!==-1&&l.value&&Ot(M),gl=M=>{ze.value.push(M)},No=M=>F.value?M.filter(Y=>P.value?Y.__VISIBLE__.length:Y[j.value].length):M.filter(Y=>P.value?Y.__VISIBLE__.length:!0),ii=(M,Y=!0)=>{let be=M;if(P.value&&_.value){let je=ye.value;je||(je=(In,sn,ci)=>Je.value.some(Pn=>{let ks=wl(Ee(In[Pn]),D.value);return ne.value?ks.startsWith(wl(sn,D.value)):ks.indexOf(wl(sn,D.value))!==-1})),be=be.filter(In=>je(In,P.value,re))}return l.value&&Y&&(be=be.filter(je=>!ri(je))),be},si=M=>{let Y=M;return XC(Y)&&(Y=Object.keys(Y).map(be=>{let je=Y[be];return{[k.value]:be,[Je.value[0]]:je,[d.value]:je}})),Y=Y.map(be=>typeof be=="object"?be:{[k.value]:be,[Je.value[0]]:be,[d.value]:be}),Y},Oe=()=>{Cn(U.value)||(ie.value=oo(U.value))},rn=M=>(Ae.value=!0,new Promise((Y,be)=>{o.value(P.value,re).then(je=>{Be.value=je||[],typeof M=="function"&&M(je),Ae.value=!1}).catch(je=>{console.error(je),Be.value=[],Ae.value=!1}).finally(()=>{Y()})})),ai=()=>{if(On.value)if(i.value==="single"){let M=It(ie.value[k.value]);if(M!==void 0){let Y=M[d.value];ie.value[d.value]=Y,h.value&&(U.value[d.value]=Y)}}else ie.value.forEach((M,Y)=>{let be=It(ie.value[Y][k.value]);if(be!==void 0){let je=be[d.value];ie.value[Y][d.value]=je,h.value&&(U.value[Y][d.value]=je)}})},bs=M=>{rn(M)},oo=M=>Cn(M)?i.value==="single"?{}:[]:h.value?M:i.value==="single"?It(M)||(A.value?{[d.value]:M,[k.value]:M,[Je.value[0]]:M}:{}):M.filter(Y=>!!It(Y)||A.value).map(Y=>It(Y)||{[d.value]:Y,[k.value]:Y,[Je.value[0]]:Y}),li=()=>{Ie.value=r.watch(P,M=>{M.length<v.value||!M&&v.value!==0||(Ae.value=!0,b.value&&(Be.value=[]),setTimeout(()=>{M==P.value&&o.value(P.value,re).then(Y=>{(M==P.value||!P.value)&&(Be.value=Y,Re.value=it.value.filter(be=>be[ae.value]!==!0)[0]||null,Ae.value=!1)}).catch(Y=>{console.error(Y)})},y.value))},{flush:"sync"})};if(i.value!=="single"&&!Cn(U.value)&&!Array.isArray(U.value))throw new Error(`v-model must be an array when using "${i.value}" mode`);return o&&typeof o.value=="function"?C.value?rn(Oe):h.value==!0&&Oe():(Be.value=o.value,Oe()),y.value>-1&&li(),r.watch(y,(M,Y)=>{Ie.value&&Ie.value(),M>=0&&li()}),r.watch(U,M=>{if(Cn(M)){we(oo(M),!1);return}switch(i.value){case"single":(h.value?M[k.value]!=ie.value[k.value]:M!=ie.value[k.value])&&we(oo(M),!1);break;case"multiple":case"tags":QC(h.value?M.map(Y=>Y[k.value]):M,ie.value.map(Y=>Y[k.value]))||we(oo(M),!1);break}},{deep:!0}),r.watch(o,(M,Y)=>{typeof t.options=="function"?C.value&&(!Y||M&&M.toString()!==Y.toString())&&rn():(Be.value=t.options,Object.keys(ie.value).length||Oe(),ai())}),r.watch(d,ai),r.watch(a,(M,Y)=>{Pe.value=I.value&&M===-1?10:M}),{pfo:_t,fo:it,filteredOptions:it,hasSelected:On,multipleLabelText:L,eo:He,extendedOptions:He,eg:Bt,extendedGroups:Bt,fg:_n,filteredGroups:_n,noOptions:K,noResults:fe,resolving:Ae,busy:Se,offset:Pe,select:Mt,deselect:kt,remove:ur,selectAll:oi,clear:ni,isSelected:Ot,isDisabled:dr,isMax:to,getOption:It,handleOptionClick:fr,handleGroupClick:no,handleTagRemove:_s,refreshOptions:bs,resolveOptions:rn,refreshLabels:ai}}function tb(t,e,n){const{valueProp:o,showOptions:i,searchable:s,groupLabel:a,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=r.toRefs(t),p=n.fo,m=n.fg,h=n.handleOptionClick,g=n.handleGroupClick,y=n.search,C=n.pointer,v=n.setPointer,_=n.clearPointer,b=n.multiselect,w=n.isOpen,k=r.computed(()=>p.value.filter(U=>!U[d.value])),A=r.computed(()=>m.value.filter(U=>!U[d.value])),T=r.computed(()=>c.value!=="single"&&u.value),S=r.computed(()=>C.value&&C.value.group),E=r.computed(()=>re(C.value)),D=r.computed(()=>{const U=S.value?C.value:re(C.value),P=A.value.map(we=>we[a.value]).indexOf(U[a.value]);let se=A.value[P-1];return se===void 0&&(se=$.value),se}),x=r.computed(()=>{let U=A.value.map(P=>P.label).indexOf(S.value?C.value[a.value]:re(C.value)[a.value])+1;return A.value.length<=U&&(U=0),A.value[U]}),$=r.computed(()=>[...A.value].slice(-1)[0]),B=r.computed(()=>C.value.__VISIBLE__.filter(U=>!U[d.value])[0]),V=r.computed(()=>{const U=E.value.__VISIBLE__.filter(P=>!P[d.value]);return U[U.map(P=>P[o.value]).indexOf(C.value[o.value])-1]}),I=r.computed(()=>{const U=re(C.value).__VISIBLE__.filter(P=>!P[d.value]);return U[U.map(P=>P[o.value]).indexOf(C.value[o.value])+1]}),j=r.computed(()=>[...D.value.__VISIBLE__.filter(U=>!U[d.value])].slice(-1)[0]),F=r.computed(()=>[...$.value.__VISIBLE__.filter(U=>!U[d.value])].slice(-1)[0]),q=U=>C.value&&(!U.group&&C.value[o.value]===U[o.value]||U.group!==void 0&&C.value[a.value]===U[a.value])?!0:void 0,Q=()=>{v(k.value[0]||null)},ae=()=>{!C.value||C.value[d.value]===!0||(S.value?g(C.value):h(C.value))},ne=()=>{if(C.value===null)v((l.value&&T.value?A.value[0].__CREATE__?k.value[0]:A.value[0]:k.value[0])||null);else if(l.value&&T.value){let U=S.value?B.value:I.value;U===void 0&&(U=x.value,U.__CREATE__&&(U=U[f.value][0])),v(U||null)}else{let U=k.value.map(P=>P[o.value]).indexOf(C.value[o.value])+1;k.value.length<=U&&(U=0),v(k.value[U]||null)}r.nextTick(()=>{ie()})},ye=()=>{if(C.value===null){let U=k.value[k.value.length-1];l.value&&T.value&&(U=F.value,U===void 0&&(U=$.value)),v(U||null)}else if(l.value&&T.value){let U=S.value?j.value:V.value;U===void 0&&(U=S.value?D.value:E.value,U.__CREATE__&&(U=j.value,U===void 0&&(U=D.value))),v(U||null)}else{let U=k.value.map(P=>P[o.value]).indexOf(C.value[o.value])-1;U<0&&(U=k.value.length-1),v(k.value[U]||null)}r.nextTick(()=>{ie()})},re=U=>A.value.find(P=>P.__VISIBLE__.map(se=>se[o.value]).indexOf(U[o.value])!==-1),ie=()=>{let U=b.value.querySelector("[data-pointed]");if(!U)return;let P=U.parentElement.parentElement;l.value&&(P=S.value?U.parentElement.parentElement.parentElement:U.parentElement.parentElement.parentElement.parentElement),U.offsetTop+U.offsetHeight>P.clientHeight+P.scrollTop&&(P.scrollTop=U.offsetTop+U.offsetHeight-P.clientHeight),U.offsetTop<P.scrollTop&&(P.scrollTop=U.offsetTop)};return r.watch(y,U=>{s.value&&(U.length&&i.value?Q():_())}),r.watch(w,U=>{if(U){let P=b.value.querySelectorAll("[data-selected]")[0];if(!P)return;let se=P.parentElement.parentElement;r.nextTick(()=>{se.scrollTop>0||(se.scrollTop=P.offsetTop)})}}),{pointer:C,canPointGroups:T,isPointed:q,setPointerFirst:Q,selectPointer:ae,forwardPointer:ne,backwardPointer:ye}}function Ut(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Go(t){var e=Ut(t).Element;return t instanceof e||t instanceof Element}function Qt(t){var e=Ut(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function lu(t){if(typeof ShadowRoot>"u")return!1;var e=Ut(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var qo=Math.max,oa=Math.min,Vr=Math.round;function dc(){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 Yp(){return!/^((?!chrome|android).)*safari/i.test(dc())}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=Go(t)?Ut(t):window,l=a.visualViewport,c=!Yp()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/i,d=(o.top+(c&&l?l.offsetTop:0))/s,f=o.width/i,p=o.height/s;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function cu(t){var e=Ut(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function nb(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ob(t){return t===Ut(t)||!Qt(t)?cu(t):nb(t)}function Nn(t){return t?(t.nodeName||"").toLowerCase():null}function Eo(t){return((Go(t)?t.ownerDocument:t.document)||window.document).documentElement}function uu(t){return Ir(Eo(t)).left+cu(t).scrollLeft}function Gn(t){return Ut(t).getComputedStyle(t)}function du(t){var e=Gn(t),n=e.overflow,o=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function rb(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 ib(t,e,n){n===void 0&&(n=!1);var o=Qt(e),i=Qt(e)&&rb(e),s=Eo(e),a=Ir(t,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Nn(e)!=="body"||du(s))&&(l=ob(e)),Qt(e)?(c=Ir(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=uu(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Jp(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 Pa(t){return Nn(t)==="html"?t:t.assignedSlot||t.parentNode||(lu(t)?t.host:null)||Eo(t)}function Xp(t){return["html","body","#document"].indexOf(Nn(t))>=0?t.ownerDocument.body:Qt(t)&&du(t)?t:Xp(Pa(t))}function Ni(t,e){var n;e===void 0&&(e=[]);var o=Xp(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=Ut(o),a=i?[s].concat(s.visualViewport||[],du(o)?o:[]):o,l=e.concat(a);return i?l:l.concat(Ni(Pa(a)))}function sb(t){return["table","td","th"].indexOf(Nn(t))>=0}function Vd(t){return!Qt(t)||Gn(t).position==="fixed"?null:t.offsetParent}function ab(t){var e=/firefox/i.test(dc()),n=/Trident/i.test(dc());if(n&&Qt(t)){var o=Gn(t);if(o.position==="fixed")return null}var i=Pa(t);for(lu(i)&&(i=i.host);Qt(i)&&["html","body"].indexOf(Nn(i))<0;){var s=Gn(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 Fa(t){for(var e=Ut(t),n=Vd(t);n&&sb(n)&&Gn(n).position==="static";)n=Vd(n);return n&&(Nn(n)==="html"||Nn(n)==="body"&&Gn(n).position==="static")?e:n||ab(t)||e}var cn="top",Dn="bottom",yo="right",jn="left",fu="auto",Ra=[cn,Dn,yo,jn],Pr="start",Ui="end",lb="clippingParents",Qp="viewport",vi="popper",cb="reference",Id=Ra.reduce(function(t,e){return t.concat([e+"-"+Pr,e+"-"+Ui])},[]),ub=[].concat(Ra,[fu]).reduce(function(t,e){return t.concat([e,e+"-"+Pr,e+"-"+Ui])},[]),db="beforeRead",fb="read",pb="afterRead",mb="beforeMain",hb="main",gb="afterMain",vb="beforeWrite",_b="write",yb="afterWrite",Cb=[db,fb,pb,mb,hb,gb,vb,_b,yb];function bb(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 kb(t){var e=bb(t);return Cb.reduce(function(n,o){return n.concat(e.filter(function(i){return i.phase===o}))},[])}function wb(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Eb(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 Sb(t,e){var n=Ut(t),o=Eo(t),i=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(i){s=i.width,a=i.height;var u=Yp();(u||!u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l+uu(t),y:c}}function xb(t){var e,n=Eo(t),o=cu(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+uu(t),c=-o.scrollTop;return Gn(i||n).direction==="rtl"&&(l+=qo(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function Tb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&lu(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function fc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ab(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 Pd(t,e,n){return e===Qp?fc(Sb(t,n)):Go(e)?Ab(e,n):fc(xb(Eo(t)))}function Nb(t){var e=Ni(Pa(t)),n=["absolute","fixed"].indexOf(Gn(t).position)>=0,o=n&&Qt(t)?Fa(t):t;return Go(o)?e.filter(function(i){return Go(i)&&Tb(i,o)&&Nn(i)!=="body"}):[]}function Db(t,e,n,o){var i=e==="clippingParents"?Nb(t):[].concat(e),s=[].concat(i,[n]),a=s[0],l=s.reduce(function(c,u){var d=Pd(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},Pd(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 po(t){return t.split("-")[0]}function Fr(t){return t.split("-")[1]}function em(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function tm(t){var e=t.reference,n=t.element,o=t.placement,i=o?po(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 cn:c={x:a,y:e.y-n.height};break;case Dn:c={x:a,y:e.y+e.height};break;case yo:c={x:e.x+e.width,y:l};break;case jn:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=i?em(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 Ui:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function nm(){return{top:0,right:0,bottom:0,left:0}}function $b(t){return Object.assign({},nm(),t)}function Bb(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function pu(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?lb:l,u=n.rootBoundary,d=u===void 0?Qp:u,f=n.elementContext,p=f===void 0?vi:f,m=n.altBoundary,h=m===void 0?!1:m,g=n.padding,y=g===void 0?0:g,C=$b(typeof y!="number"?y:Bb(y,Ra)),v=p===vi?cb:vi,_=t.rects.popper,b=t.elements[h?v:p],w=Db(Go(b)?b:b.contextElement||Eo(t.elements.popper),c,d,a),k=Ir(t.elements.reference),A=tm({reference:k,element:_,strategy:"absolute",placement:i}),T=fc(Object.assign({},_,A)),S=p===vi?T:k,E={top:w.top-S.top+C.top,bottom:S.bottom-w.bottom+C.bottom,left:w.left-S.left+C.left,right:S.right-w.right+C.right},D=t.modifiersData.offset;if(p===vi&&D){var x=D[i];Object.keys(E).forEach(function($){var B=[yo,Dn].indexOf($)>=0?1:-1,V=[cn,Dn].indexOf($)>=0?"y":"x";E[$]+=x[V]*B})}return E}var Fd={placement:"bottom",modifiers:[],strategy:"absolute"};function Rd(){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 Mb(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,i=e.defaultOptions,s=i===void 0?Fd:i;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Fd,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,m={state:d,setOptions:function(C){var v=typeof C=="function"?C(d.options):C;g(),d.options=Object.assign({},s,d.options,v),d.scrollParents={reference:Go(l)?Ni(l):l.contextElement?Ni(l.contextElement):[],popper:Ni(c)};var _=kb(Eb([].concat(o,d.options.modifiers)));return d.orderedModifiers=_.filter(function(b){return b.enabled}),h(),m.update()},forceUpdate:function(){if(!p){var C=d.elements,v=C.reference,_=C.popper;if(Rd(v,_)){d.rects={reference:ib(v,Fa(_),d.options.strategy==="fixed"),popper:Jp(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(E){return d.modifiersData[E.name]=Object.assign({},E.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,T=A===void 0?{}:A,S=w.name;typeof k=="function"&&(d=k({state:d,options:T,name:S,instance:m})||d)}}}},update:wb(function(){return new Promise(function(y){m.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!Rd(l,c))return m;m.setOptions(u).then(function(y){!p&&u.onFirstUpdate&&u.onFirstUpdate(y)});function h(){d.orderedModifiers.forEach(function(y){var C=y.name,v=y.options,_=v===void 0?{}:v,b=y.effect;if(typeof b=="function"){var w=b({state:d,name:C,instance:m,options:_}),k=function(){};f.push(w||k)}})}function g(){f.forEach(function(y){return y()}),f=[]}return m}}var Ds={passive:!0};function Lb(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=Ut(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 Ob={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Lb,data:{}};function Vb(t){var e=t.state,n=t.name;e.modifiersData[n]=tm({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Ib={name:"popperOffsets",enabled:!0,phase:"read",fn:Vb,data:{}},Pb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fb(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 zd(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,f=t.isFixed,p=a.x,m=p===void 0?0:p,h=a.y,g=h===void 0?0:h,y=typeof d=="function"?d({x:m,y:g}):{x:m,y:g};m=y.x,g=y.y;var C=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),_=jn,b=cn,w=window;if(u){var k=Fa(n),A="clientHeight",T="clientWidth";if(k===Ut(n)&&(k=Eo(n),Gn(k).position!=="static"&&l==="absolute"&&(A="scrollHeight",T="scrollWidth")),k=k,i===cn||(i===jn||i===yo)&&s===Ui){b=Dn;var S=f&&k===w&&w.visualViewport?w.visualViewport.height:k[A];g-=S-o.height,g*=c?1:-1}if(i===jn||(i===cn||i===Dn)&&s===Ui){_=yo;var E=f&&k===w&&w.visualViewport?w.visualViewport.width:k[T];m-=E-o.width,m*=c?1:-1}}var D=Object.assign({position:l},u&&Pb),x=d===!0?Fb({x:m,y:g},Ut(n)):{x:m,y:g};if(m=x.x,g=x.y,c){var $;return Object.assign({},D,($={},$[b]=v?"0":"",$[_]=C?"0":"",$.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",$))}return Object.assign({},D,(e={},e[b]=v?g+"px":"",e[_]=C?m+"px":"",e.transform="",e))}function Rb(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:po(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,zd(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,zd(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 zb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rb,data:{}};function Ub(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)||!Nn(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 qb(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)||!Nn(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(c){i.removeAttribute(c)}))})}}var Hb={name:"applyStyles",enabled:!0,phase:"write",fn:Ub,effect:qb,requires:["computeStyles"]},jb=[Ob,Ib,zb,Hb],Wb=Mb({defaultModifiers:jb});function Zb(t){return t==="x"?"y":"x"}function js(t,e,n){return qo(t,oa(e,n))}function Kb(t,e,n){var o=js(t,e,n);return o>n?n:o}function Gb(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,f=n.padding,p=n.tether,m=p===void 0?!0:p,h=n.tetherOffset,g=h===void 0?0:h,y=pu(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),C=po(e.placement),v=Fr(e.placement),_=!v,b=em(C),w=Zb(b),k=e.modifiersData.popperOffsets,A=e.rects.reference,T=e.rects.popper,S=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,E=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,x={x:0,y:0};if(k){if(s){var $,B=b==="y"?cn:jn,V=b==="y"?Dn:yo,I=b==="y"?"height":"width",j=k[b],F=j+y[B],q=j-y[V],Q=m?-T[I]/2:0,ae=v===Pr?A[I]:T[I],ne=v===Pr?-T[I]:-A[I],ye=e.elements.arrow,re=m&&ye?Jp(ye):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:nm(),U=ie[B],P=ie[V],se=js(0,A[I],re[I]),we=_?A[I]/2-Q-se-U-E.mainAxis:ae-se-U-E.mainAxis,Re=_?-A[I]/2+Q+se+P+E.mainAxis:ne+se+P+E.mainAxis,Ce=e.elements.arrow&&Fa(e.elements.arrow),R=Ce?b==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,le=($=D==null?void 0:D[b])!=null?$:0,ge=j+we-le-R,me=j+Re-le,Ee=js(m?oa(F,ge):F,j,m?qo(q,me):q);k[b]=Ee,x[b]=Ee-j}if(l){var ze,Be=b==="x"?cn:jn,Ae=b==="x"?Dn:yo,Ie=k[w],Pe=w==="y"?"height":"width",dt=Ie+y[Be],Ln=Ie-y[Ae],He=[cn,jn].indexOf(C)!==-1,_t=(ze=D==null?void 0:D[w])!=null?ze:0,it=He?dt:Ie-A[Pe]-T[Pe]-_t+E.altAxis,Bt=He?Ie+A[Pe]+T[Pe]-_t-E.altAxis:Ln,Zt=m&&He?Kb(it,Ie,Bt):js(m?it:dt,Ie,m?Bt:Ln);k[w]=Zt,x[w]=Zt-Ie}e.modifiersData[o]=x}}var Yb={name:"preventOverflow",enabled:!0,phase:"main",fn:Gb,requiresIfExists:["offset"]},Jb={left:"right",right:"left",bottom:"top",top:"bottom"};function Ws(t){return t.replace(/left|right|bottom|top/g,function(e){return Jb[e]})}var Xb={start:"end",end:"start"};function Ud(t){return t.replace(/start|end/g,function(e){return Xb[e]})}function Qb(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?ub:c,d=Fr(o),f=d?l?Id:Id.filter(function(h){return Fr(h)===d}):Ra,p=f.filter(function(h){return u.indexOf(h)>=0});p.length===0&&(p=f);var m=p.reduce(function(h,g){return h[g]=pu(t,{placement:g,boundary:i,rootBoundary:s,padding:a})[po(g)],h},{});return Object.keys(m).sort(function(h,g){return m[h]-m[g]})}function ek(t){if(po(t)===fu)return[];var e=Ws(t);return[Ud(t),e,Ud(e)]}function tk(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,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,h=m===void 0?!0:m,g=n.allowedAutoPlacements,y=e.options.placement,C=po(y),v=C===y,_=c||(v||!h?[Ws(y)]:ek(y)),b=[y].concat(_).reduce(function(re,ie){return re.concat(po(ie)===fu?Qb(e,{placement:ie,boundary:d,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:g}):ie)},[]),w=e.rects.reference,k=e.rects.popper,A=new Map,T=!0,S=b[0],E=0;E<b.length;E++){var D=b[E],x=po(D),$=Fr(D)===Pr,B=[cn,Dn].indexOf(x)>=0,V=B?"width":"height",I=pu(e,{placement:D,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),j=B?$?yo:jn:$?Dn:cn;w[V]>k[V]&&(j=Ws(j));var F=Ws(j),q=[];if(s&&q.push(I[x]<=0),l&&q.push(I[j]<=0,I[F]<=0),q.every(function(re){return re})){S=D,T=!1;break}A.set(D,q)}if(T)for(var Q=h?3:1,ae=function(ie){var U=b.find(function(P){var se=A.get(P);if(se)return se.slice(0,ie).every(function(we){return we})});if(U)return S=U,"break"},ne=Q;ne>0;ne--){var ye=ae(ne);if(ye==="break")break}e.placement!==S&&(e.modifiersData[o]._skip=!0,e.placement=S,e.reset=!0)}}var nk={name:"flip",enabled:!0,phase:"main",fn:tk,requiresIfExists:["offset"],data:{_skip:!1}};function ok(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),f=r.ref(null),p=r.ref(null),m=r.computed(()=>i.value||s.value),h=r.computed(()=>a.value==="top"&&p.value==="bottom"||a.value==="bottom"&&p.value!=="top"?"bottom":"top"),g=()=>{d.value||o.value||(d.value=!0,e.emit("open",l),m.value&&r.nextTick(()=>{C()}))},y=()=>{d.value&&(d.value=!1,e.emit("close",l))},C=()=>{if(!f.value)return;let _=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),b=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(w=>({...w,modifiers:[...w.modifiers,{name:"offset",options:{offset:[0,(h.value==="top"?_:b)*-1]}}]})),f.value.update()},v=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return r.onMounted(()=>{m.value&&(f.value=Wb(c.value,u.value,{strategy:v(c.value)?"fixed":void 0,placement:a.value,modifiers:[Yb,nk,{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:_}){p.value=_.placement}}]}))}),r.onBeforeUnmount(()=>{!m.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:g,close:y,placement:h,updatePopper:C}}function rk(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,f=n.wrapper,p=n.tags,m=r.ref(!1),h=r.ref(!1),g=r.computed(()=>o.value||i.value?-1:0),y=()=>{o.value&&a.value.blur(),f.value.blur()},C=()=>{o.value&&!i.value&&a.value.focus()},v=(T=!0)=>{i.value||(m.value=!0,T&&l())},_=()=>{m.value=!1,setTimeout(()=>{m.value||(c(),s.value&&u())},1)};return{tabindex:g,isActive:m,mouseClicked:h,blur:y,focus:C,activate:v,deactivate:_,handleFocusIn:T=>{T.target.closest("[data-tags]")&&T.target.nodeName!=="INPUT"||T.target.closest("[data-clear]")||v(h.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),y()},handleMousedown:T=>{h.value=!0,d.value&&(T.target.isEqualNode(f.value)||T.target.isEqualNode(p.value))?setTimeout(()=>{_()},0):!d.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(a.value))&&v(),setTimeout(()=>{h.value=!1},0)}}}function ik(t,e,n){const{mode:o,addTagOn:i,openDirection:s,searchable:a,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:m}=r.toRefs(t),h=r.getCurrentInstance().proxy,g=n.iv,y=n.update,C=n.deselect,v=n.search,_=n.setPointer,b=n.selectPointer,w=n.backwardPointer,k=n.forwardPointer,A=n.multiselect,T=n.wrapper,S=n.tags,E=n.isOpen,D=n.open,x=n.blur,$=n.fo,B=r.computed(()=>f.value||p.value||!1),V=r.computed(()=>i.value!==void 0?i.value:d.value!==void 0?d.value:["enter"]),I=()=>{o.value==="tags"&&!l.value&&B.value&&a.value&&!u.value&&_($.value[$.value.map(q=>q[c.value]).indexOf(v.value)])};return{handleKeydown:q=>{e.emit("keydown",q,h);let Q,ae;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(q.key)!==-1&&o.value==="tags"&&(Q=[...A.value.querySelectorAll("[data-tags] > *")].filter(ne=>ne!==S.value),ae=Q.findIndex(ne=>ne===document.activeElement)),q.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(v.value)===-1||g.value.length===0)return;let ne=g.value.filter(ye=>!ye.disabled&&ye.remove!==!1);ne.length&&C(ne[ne.length-1]);break;case"Enter":if(q.preventDefault(),q.keyCode===229)return;if(ae!==-1&&ae!==void 0){y([...g.value].filter((ye,re)=>re!==ae)),ae===Q.length-1&&(Q.length-1?Q[Q.length-2].focus():a.value?S.value.querySelector("input").focus():T.value.focus());return}if(V.value.indexOf("enter")===-1&&B.value)return;I(),b();break;case" ":if(!B.value&&!a.value){q.preventDefault(),I(),b();return}if(!B.value)return!1;if(V.value.indexOf("space")===-1&&B.value)return;q.preventDefault(),I(),b();break;case"Tab":case";":case",":if(V.value.indexOf(q.key.toLowerCase())===-1||!B.value)return;I(),b(),q.preventDefault();break;case"Escape":x();break;case"ArrowUp":if(q.preventDefault(),!l.value)return;E.value||D(),w();break;case"ArrowDown":if(q.preventDefault(),!l.value)return;E.value||D(),k();break;case"ArrowLeft":if(a.value&&S.value&&S.value.querySelector("input").selectionStart||q.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;q.preventDefault(),ae===-1?Q[Q.length-1].focus():ae>0&&Q[ae-1].focus();break;case"ArrowRight":if(ae===-1||q.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;q.preventDefault(),Q.length>ae+1?Q[ae+1].focus():a.value?S.value.querySelector("input").focus():a.value||T.value.focus();break}},handleKeyup:q=>{e.emit("keyup",q,h)},preparePointer:I}}function sk(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,f=n.isActive,p=n.canPointGroups,m=n.resolving,h=n.fo,g=n.placement,y=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})),C=r.computed(()=>!!(l.value&&s.value&&(!m.value||m.value&&h.value.length)));return{classList:r.computed(()=>{const _=y.value;return{container:[_.container].concat(i.value?_.containerDisabled:[]).concat(C.value&&g.value==="top"?_.containerOpenTop:[]).concat(C.value&&g.value!=="top"?_.containerOpen:[]).concat(f.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(g.value==="top"?_.dropdownTop:[]).concat(!l.value||!s.value||!C.value?_.dropdownHidden:[]),options:[_.options].concat(g.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:b=>{let w=[_.groupLabel];return c(b)?w.push(u(b)?_.groupLabelSelectedPointed:_.groupLabelPointed):u(b)&&p.value?w.push(d(b)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(b)&&w.push(_.groupLabelDisabled),p.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:C}}function ak(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),f=r.ref(null),p=r.computed(()=>a.value<c.value.length),m=g=>{const{isIntersecting:y,target:C}=g[0];if(y){const v=C.offsetParent,_=v.scrollTop;a.value+=o.value==-1?10:o.value,r.nextTick(()=>{v.scrollTop=_})}},h=()=>{s.value&&a.value<c.value.length?d.value.observe(f.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:p,infiniteLoader:f}}function lk(t,e,n){const{placeholder:o,id:i,valueProp:s,label:a,mode:l,groupLabel:c,aria:u,searchable:d}=r.toRefs(t),f=n.pointer,p=n.iv,m=n.hasSelected,h=n.multipleLabelText,g=r.ref(null),y=r.computed(()=>{let x=[];return i&&i.value&&x.push(i.value),x.push("assist"),x.join("-")}),C=r.computed(()=>{let x=[];return i&&i.value&&x.push(i.value),x.push("multiselect-options"),x.join("-")}),v=r.computed(()=>{let x=[];if(i&&i.value&&x.push(i.value),f.value)return x.push(f.value.group?"multiselect-group":"multiselect-option"),x.push(f.value.group?f.value.index:f.value[s.value]),x.join("-")}),_=r.computed(()=>o.value),b=r.computed(()=>l.value!=="single"),w=r.computed(()=>{let x="";return l.value==="single"&&m.value&&(x+=p.value[a.value]),l.value==="multiple"&&m.value&&(x+=h.value),l.value==="tags"&&m.value&&(x+=p.value.map($=>$[a.value]).join(", ")),x}),k=r.computed(()=>{let x={...u.value};return d.value&&(x["aria-labelledby"]=x["aria-labelledby"]?`${y.value} ${x["aria-labelledby"]}`:y.value,w.value&&x["aria-label"]&&(x["aria-label"]=`${w.value}, ${x["aria-label"]}`)),x}),A=x=>{let $=[];return i&&i.value&&$.push(i.value),$.push("multiselect-option"),$.push(x[s.value]),$.join("-")},T=x=>{let $=[];return i&&i.value&&$.push(i.value),$.push("multiselect-group"),$.push(x.index),$.join("-")},S=x=>{let $=[];return $.push(x),$.join(" ")},E=x=>{let $=[];return $.push(x),$.join(" ")},D=x=>`${x} ❎`;return r.onMounted(()=>{if(i&&i.value&&document&&document.querySelector){let x=document.querySelector(`[for="${i.value}"]`);g.value=x?x.innerText:null}}),{arias:k,ariaLabel:w,ariaAssist:y,ariaControls:C,ariaPlaceholder:_,ariaMultiselectable:b,ariaActiveDescendant:v,ariaOptionId:A,ariaOptionLabel:S,ariaGroupId:T,ariaGroupLabel:E,ariaTagLabel:D}}function ck(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 uk(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 dk(t,e,n,o={}){return n.forEach(i=>{i&&(o={...o,...i(t,e,o)})}),o}var lo={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 dk(t,e,[uk,ck,GC,JC,ok,YC,KC,rk,eb,ak,tb,ik,sk,lk])},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 fk=["id","dir"],pk=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],mk=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],hk=["onKeyup","aria-label"],gk=["onClick"],vk=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],_k=["innerHTML"],yk=["id"],Ck=["id"],bk=["id","aria-label","aria-selected"],kk=["data-pointed","onMouseenter","onMousedown"],wk=["innerHTML"],Ek=["aria-label"],Sk=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],xk=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],Tk=["innerHTML"],Ak=["innerHTML"],Nk=["value"],Dk=["name","value"],$k=["name","value"],Bk=["id"];function Mk(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,mk)):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,gk)):r.createCommentVNode("v-if",!0)],42,hk))])),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,vk)):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,_k)]):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,pk),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,wk)])],42,kk)),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,f)=>(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:f,onMouseenter:p=>t.setPointer(u),onMousedown:r.withModifiers(p=>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,Sk))),128))],10,Ek)],10,bk))),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,xk))),128))],10,Ck),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,Tk)]):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,Ak)]):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,yk)],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,Nk)):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,Dk)):(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,$k))),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,Bk)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Create height for empty input "),r.createElementVNode("div",{class:r.normalizeClass(t.classList.spacer)},null,2)],42,fk)}lo.render=Mk;lo.__file="src/Multiselect.vue";const Ct=r.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(t){const e=t,n=r.toRef(()=>e.appendTo),o=r.ref();return e.detached&&ZC({multiselect:o,appendTo:n.value}),(i,s)=>(r.openBlock(),r.createBlock(r.unref(lo),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect"},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??{})))])}))]),1536))}});var qd;function Wt(){const t=Lk(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function Lk(){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=qd.exec(n))!==null;){o.push(n.substring(s,i.index));const a=e[i[1]];a?o.push(...a()):o.push(i[0]),s=qd.lastIndex}return o.push(n.substring(s)),o}}});async function Wn(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 Ok={class:"ao-tasks__list"},Vk=["id","value","readonly","onChange","onKeydown"],Ik={class:"ao-tasks__list-footer"},Pk=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}=Wt(),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)},f=()=>{l!==null&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{d(),l=null})};r.watch(()=>o.tasks,(_,b)=>{Wn(_,b),f()},{deep:!0}),r.onMounted(()=>{f(),s.value&&(a=new ResizeObserver(()=>{f()}),a.observe(s.value))}),r.onBeforeUnmount(()=>{a==null||a.disconnect(),l!==null&&cancelAnimationFrame(l)});const p=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})},g=(_,b)=>{o.isEditable&&i("update",{id:_,isDone:b})},y=_=>{i("delete",{id:_})},C=(_,b)=>{i("update",{id:b,assigneeId:_[0]??null})},v=_=>{_.target.blur()};return(_,b)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tasksRoot",ref:s,class:"ao-tasks"},[r.createElementVNode("ul",Ok,[(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(ue,{key:0,class:"ao-subtask__check","icon-name":w.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>g(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:T=>h(T,w.id),onKeydown:r.withKeys(r.withModifiers(v,["prevent"]),["enter"])},null,42,Vk),!t.isTemplate&&t.users?(r.openBlock(),r.createBlock(Ct,{key:1,value:(A=w.assignee)!=null&&A.id?[w.assignee.id]:[],options:p.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:T=>C(T,w.id)},{tag:r.withCtx(({option:T,handleTagRemove:S})=>[r.createVNode(Xn,{"user-name":T.label,"avatar-url":T.avatar,"is-closable":!0,onClose:E=>S(T,E)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):r.createCommentVNode("",!0),t.isEditable?(r.openBlock(),r.createBlock(ue,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>y(w.id)},null,8,["onClick"])):r.createCommentVNode("",!0)])}),128))]),r.createElementVNode("div",Ik,[t.isEditable?(r.openBlock(),r.createBlock(ue,{key:0,label:_.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:m},null,8,["label"])):r.createCommentVNode("",!0)])],512))}});const Fk={class:"ao-files__placeholder"},Rk={key:0,class:"ao-files__list"},zk=["onClick"],Uk={class:"ao-file__title"},qk={class:"ao-file__actions"},Hk={key:0},jk={class:"ao-files__input"},Wk={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},Zk={class:"ao-button__label"},Kk={class:"ao-files__dropzone"},Gk={class:"ao-files__dropzone-label"},Yk=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,g=Array.from(h.files??[]);g.length&&n("add",g),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 f(){i.value=!1}r.watch(i,m=>{n("toggleIsDropActive",m)});function p(m){var g;if(f(),!o.isEditable)return;const h=Array.from(((g=m.dataTransfer)==null?void 0:g.files)??[]);h.length&&n("add",h)}return(m,h)=>{var g;return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":i.value}]),onDrop:r.withModifiers(p,["prevent"]),onDragenter:r.withModifiers(d,["prevent"]),onDragover:r.withModifiers(d,["prevent"]),onDragleave:r.withModifiers(f,["prevent"])},[r.renderSlot(m.$slots,"default",{},()=>[r.createElementVNode("span",Fk,r.toDisplayString(m.$t("activity.attachment.placeholder.resting")),1)]),(g=t.attachments)!=null&&g.length||t.isEditable?(r.openBlock(),r.createElementBlock("ul",Rk,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.attachments,(y,C)=>(r.openBlock(),r.createElementBlock("li",{key:y.id,class:"ao-file"},[r.createElementVNode("button",{type:"button",class:"ao-file__link",onClick:v=>n("preview",C)},[r.createVNode(ke,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),r.createElementVNode("span",Uk,r.toDisplayString(y.name),1)],8,zk),r.createElementVNode("div",qk,[r.createVNode(ue,{"icon-name":"DownloadRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Download",title:"Download",onClick:r.withModifiers(v=>l(y),["stop"])},null,8,["onClick"]),t.isEditable?(r.openBlock(),r.createBlock(ue,{key:0,"icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Delete",title:"Delete",onClick:r.withModifiers(v=>a(y),["stop"])},null,8,["onClick"])):r.createCommentVNode("",!0)])]))),128)),t.isEditable?(r.openBlock(),r.createElementBlock("li",Hk,[r.createElementVNode("label",jk,[r.createElementVNode("div",Wk,[r.createVNode(ke,{name:"Add",size:"sm"}),r.createElementVNode("span",Zk,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",Kk,[r.createElementVNode("span",Gk,r.toDisplayString(m.$t("activity.attachment.placeholder.active")),1)],512),[[r.vShow,i.value]])],34)}}});var $e={};const Jk="Á",Xk="á",Qk="Ă",e9="ă",t9="∾",n9="∿",o9="∾̳",r9="Â",i9="â",s9="´",a9="А",l9="а",c9="Æ",u9="æ",d9="",f9="𝔄",p9="𝔞",m9="À",h9="à",g9="ℵ",v9="ℵ",_9="Α",y9="α",C9="Ā",b9="ā",k9="⨿",w9="&",E9="&",S9="⩕",x9="⩓",T9="∧",A9="⩜",N9="⩘",D9="⩚",$9="∠",B9="⦤",M9="∠",L9="⦨",O9="⦩",V9="⦪",I9="⦫",P9="⦬",F9="⦭",R9="⦮",z9="⦯",U9="∡",q9="∟",H9="⊾",j9="⦝",W9="∢",Z9="Å",K9="⍼",G9="Ą",Y9="ą",J9="𝔸",X9="𝕒",Q9="⩯",e4="≈",t4="⩰",n4="≊",o4="≋",r4="'",i4="",s4="≈",a4="≊",l4="Å",c4="å",u4="𝒜",d4="𝒶",f4="≔",p4="*",m4="≈",h4="≍",g4="Ã",v4="ã",_4="Ä",y4="ä",C4="∳",b4="⨑",k4="≌",w4="϶",E4="‵",S4="∽",x4="⋍",T4="∖",A4="⫧",N4="⊽",D4="⌅",$4="⌆",B4="⌅",M4="⎵",L4="⎶",O4="≌",V4="Б",I4="б",P4="„",F4="∵",R4="∵",z4="∵",U4="⦰",q4="϶",H4="ℬ",j4="ℬ",W4="Β",Z4="β",K4="ℶ",G4="≬",Y4="𝔅",J4="𝔟",X4="⋂",Q4="◯",e8="⋃",t8="⨀",n8="⨁",o8="⨂",r8="⨆",i8="★",s8="▽",a8="△",l8="⨄",c8="⋁",u8="⋀",d8="⤍",f8="⧫",p8="▪",m8="▴",h8="▾",g8="◂",v8="▸",_8="␣",y8="▒",C8="░",b8="▓",k8="█",w8="=⃥",E8="≡⃥",S8="⫭",x8="⌐",T8="𝔹",A8="𝕓",N8="⊥",D8="⊥",$8="⋈",B8="⧉",M8="┐",L8="╕",O8="╖",V8="╗",I8="┌",P8="╒",F8="╓",R8="╔",z8="─",U8="═",q8="┬",H8="╤",j8="╥",W8="╦",Z8="┴",K8="╧",G8="╨",Y8="╩",J8="⊟",X8="⊞",Q8="⊠",e6="┘",t6="╛",n6="╜",o6="╝",r6="└",i6="╘",s6="╙",a6="╚",l6="│",c6="║",u6="┼",d6="╪",f6="╫",p6="╬",m6="┤",h6="╡",g6="╢",v6="╣",_6="├",y6="╞",C6="╟",b6="╠",k6="‵",w6="˘",E6="˘",S6="¦",x6="𝒷",T6="ℬ",A6="⁏",N6="∽",D6="⋍",$6="⧅",B6="\\",M6="⟈",L6="•",O6="•",V6="≎",I6="⪮",P6="≏",F6="≎",R6="≏",z6="Ć",U6="ć",q6="⩄",H6="⩉",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="·",_w="·",yw="𝔠",Cw="ℭ",bw="Ч",kw="ч",ww="✓",Ew="✓",Sw="Χ",xw="χ",Tw="ˆ",Aw="≗",Nw="↺",Dw="↻",$w="⊛",Bw="⊚",Mw="⊝",Lw="⊙",Ow="®",Vw="Ⓢ",Iw="⊖",Pw="⊕",Fw="⊗",Rw="○",zw="⧃",Uw="≗",qw="⨐",Hw="⫯",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="∐",_E="©",yE="©",CE="℗",bE="∳",kE="↵",wE="✗",EE="⨯",SE="𝒞",xE="𝒸",TE="⫏",AE="⫑",NE="⫐",DE="⫒",$E="⋯",BE="⤸",ME="⤵",LE="⋞",OE="⋟",VE="↶",IE="⤽",PE="⩈",FE="⩆",RE="≍",zE="∪",UE="⋓",qE="⩊",HE="⊍",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="˝",_S="Ď",yS="ď",CS="Д",bS="д",kS="‡",wS="⇊",ES="ⅅ",SS="ⅆ",xS="⤑",TS="⩷",AS="°",NS="∇",DS="Δ",$S="δ",BS="⦱",MS="⥿",LS="𝔇",OS="𝔡",VS="⥥",IS="⇃",PS="⇂",FS="´",RS="˙",zS="˝",US="`",qS="˜",HS="⋄",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="∔",_x="⊡",yx="⌆",Cx="∯",bx="¨",kx="⇓",wx="⇐",Ex="⇔",Sx="⫤",xx="⟸",Tx="⟺",Ax="⟹",Nx="⇒",Dx="⊨",$x="⇑",Bx="⇕",Mx="∥",Lx="⤓",Ox="↓",Vx="↓",Ix="⇓",Px="⇵",Fx="̑",Rx="⇊",zx="⇃",Ux="⇂",qx="⥐",Hx="⥞",jx="⥖",Wx="↽",Zx="⥟",Kx="⥗",Gx="⇁",Yx="↧",Jx="⊤",Xx="⤐",Qx="⌟",eT="⌌",tT="𝒟",nT="𝒹",oT="Ѕ",rT="ѕ",iT="⧶",sT="Đ",aT="đ",lT="⋱",cT="▿",uT="▾",dT="⇵",fT="⥯",pT="⦦",mT="Џ",hT="џ",gT="⟿",vT="É",_T="é",yT="⩮",CT="Ě",bT="ě",kT="Ê",wT="ê",ET="≖",ST="≕",xT="Э",TT="э",AT="⩷",NT="Ė",DT="ė",$T="≑",BT="ⅇ",MT="≒",LT="𝔈",OT="𝔢",VT="⪚",IT="È",PT="è",FT="⪖",RT="⪘",zT="⪙",UT="∈",qT="⏧",HT="ℓ",jT="⪕",WT="⪗",ZT="Ē",KT="ē",GT="∅",YT="∅",JT="◻",XT="∅",QT="▫",eA=" ",tA=" ",nA=" ",oA="Ŋ",rA="ŋ",iA=" ",sA="Ę",aA="ę",lA="𝔼",cA="𝕖",uA="⋕",dA="⧣",fA="⩱",pA="ε",mA="Ε",hA="ε",gA="ϵ",vA="≖",_A="≕",yA="≂",CA="⪖",bA="⪕",kA="⩵",wA="=",EA="≂",SA="≟",xA="⇌",TA="≡",AA="⩸",NA="⧥",DA="⥱",$A="≓",BA="ℯ",MA="ℰ",LA="≐",OA="⩳",VA="≂",IA="Η",PA="η",FA="Ð",RA="ð",zA="Ë",UA="ë",qA="€",HA="!",jA="∃",WA="∃",ZA="ℰ",KA="ⅇ",GA="ⅇ",YA="≒",JA="Ф",XA="ф",QA="♀",eN="ffi",tN="ff",nN="ffl",oN="𝔉",rN="𝔣",iN="fi",sN="◼",aN="▪",lN="fj",cN="♭",uN="fl",dN="▱",fN="ƒ",pN="𝔽",mN="𝕗",hN="∀",gN="∀",vN="⋔",_N="⫙",yN="ℱ",CN="⨍",bN="½",kN="⅓",wN="¼",EN="⅕",SN="⅙",xN="⅛",TN="⅔",AN="⅖",NN="¾",DN="⅗",$N="⅜",BN="⅘",MN="⅚",LN="⅝",ON="⅞",VN="⁄",IN="⌢",PN="𝒻",FN="ℱ",RN="ǵ",zN="Γ",UN="γ",qN="Ϝ",HN="ϝ",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="≫",_D="⋙",yD="⋙",CD="ℷ",bD="Ѓ",kD="ѓ",wD="⪥",ED="≷",SD="⪒",xD="⪤",TD="⪊",AD="⪊",ND="⪈",DD="≩",$D="⪈",BD="≩",MD="⋧",LD="𝔾",OD="𝕘",VD="`",ID="≥",PD="⋛",FD="≧",RD="⪢",zD="≷",UD="⩾",qD="≳",HD="𝒢",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$="♥",T$="♥",A$="…",N$="⊹",D$="𝔥",$$="ℌ",B$="ℋ",M$="⤥",L$="⤦",O$="⇿",V$="∻",I$="↩",P$="↪",F$="𝕙",R$="ℍ",z$="―",U$="─",q$="𝒽",H$="ℋ",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="⧜",_B="℩",yB="IJ",CB="ij",bB="Ī",kB="ī",wB="ℑ",EB="ⅈ",SB="ℐ",xB="ℑ",TB="ı",AB="ℑ",NB="⊷",DB="Ƶ",$B="⇒",BB="℅",MB="∞",LB="⧝",OB="ı",VB="⊺",IB="∫",PB="∬",FB="ℤ",RB="∫",zB="⊺",UB="⋂",qB="⨗",HB="⨼",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="ï",_M="Ĵ",yM="ĵ",CM="Й",bM="й",kM="𝔍",wM="𝔧",EM="ȷ",SM="𝕁",xM="𝕛",TM="𝒥",AM="𝒿",NM="Ј",DM="ј",$M="Є",BM="є",MM="Κ",LM="κ",OM="ϰ",VM="Ķ",IM="ķ",PM="К",FM="к",RM="𝔎",zM="𝔨",UM="ĸ",qM="Х",HM="х",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="↩",_L="↫",yL="⤹",CL="⥳",bL="↢",kL="⤙",wL="⤛",EL="⪫",SL="⪭",xL="⪭︀",TL="⤌",AL="⤎",NL="❲",DL="{",$L="[",BL="⦋",ML="⦏",LL="⦍",OL="Ľ",VL="ľ",IL="Ļ",PL="ļ",FL="⌈",RL="{",zL="Л",UL="л",qL="⤶",HL="“",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="⇋",_O="↭",yO="⥎",CO="↤",bO="⊣",kO="⥚",wO="⋋",EO="⧏",SO="⊲",xO="⊴",TO="⥑",AO="⥠",NO="⥘",DO="↿",$O="⥒",BO="↼",MO="⪋",LO="⋚",OO="≤",VO="≦",IO="⩽",PO="⪨",FO="⩽",RO="⩿",zO="⪁",UO="⪃",qO="⋚︀",HO="⪓",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="≪",_V="⋘",yV="⌞",CV="⇚",bV="⥫",kV="◺",wV="Ŀ",EV="ŀ",SV="⎰",xV="⎰",TV="⪉",AV="⪉",NV="⪇",DV="≨",$V="⪇",BV="≨",MV="⋦",LV="⟬",OV="⇽",VV="⟦",IV="⟵",PV="⟵",FV="⟸",RV="⟷",zV="⟷",UV="⟺",qV="⟼",HV="⟶",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="ℒ",_I="↰",yI="↰",CI="≲",bI="⪍",kI="⪏",wI="[",EI="‘",SI="‚",xI="Ł",TI="ł",AI="⪦",NI="⩹",DI="<",$I="<",BI="≪",MI="⋖",LI="⋋",OI="⋉",VI="⥶",II="⩻",PI="◃",FI="⊴",RI="◂",zI="⦖",UI="⥊",qI="⥦",HI="≨︀",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="·",_P="⊟",yP="−",CP="∸",bP="⨪",kP="∓",wP="⫛",EP="…",SP="∓",xP="⊧",TP="𝕄",AP="𝕞",NP="∓",DP="𝓂",$P="ℳ",BP="∾",MP="Μ",LP="μ",OP="⊸",VP="⊸",IP="∇",PP="Ń",FP="ń",RP="∠⃒",zP="≉",UP="⩰̸",qP="≋̸",HP="ʼn",jP="≉",WP="♮",ZP="ℕ",KP="♮",GP=" ",YP="≎̸",JP="≏̸",XP="⩃",QP="Ň",eF="ň",tF="Ņ",nF="ņ",oF="≇",rF="⩭̸",iF="⩂",sF="Н",aF="н",lF="–",cF="⤤",uF="↗",dF="⇗",fF="↗",pF="≠",mF="≐̸",hF="",gF="",vF="",_F="",yF="≢",CF="⤨",bF="≂̸",kF="≫",wF="≪",EF=`
|
|
2
|
-
`,SF="∄",xF="∄",TF="𝔑",AF="𝔫",NF="≧̸",DF="≱",$F="≱",BF="≧̸",MF="⩾̸",LF="⩾̸",OF="⋙̸",VF="≵",IF="≫⃒",PF="≯",FF="≯",RF="≫̸",zF="↮",UF="⇎",qF="⫲",HF="∋",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="∤",_R="",yR=" ",CR="𝕟",bR="ℕ",kR="⫬",wR="¬",ER="≢",SR="≭",xR="∦",TR="∉",AR="≠",NR="≂̸",DR="∄",$R="≯",BR="≱",MR="≧̸",LR="≫̸",OR="≹",VR="⩾̸",IR="≵",PR="≎̸",FR="≏̸",RR="∉",zR="⋵̸",UR="⋹̸",qR="∉",HR="⋷",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="⋣",_z="⊂⃒",yz="⊈",Cz="⊁",bz="⪰̸",kz="⋡",wz="≿̸",Ez="⊃⃒",Sz="⊉",xz="≁",Tz="≄",Az="≇",Nz="≉",Dz="∤",$z="∦",Bz="∦",Mz="⫽⃥",Lz="∂̸",Oz="⨔",Vz="⊀",Iz="⋠",Pz="⊀",Fz="⪯̸",Rz="⪯̸",zz="⤳̸",Uz="↛",qz="⇏",Hz="↝̸",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="⊅",_U="⫆̸",yU="⊉",CU="⊃⃒",bU="⊉",kU="⫆̸",wU="≹",EU="Ñ",SU="ñ",xU="≸",TU="⋪",AU="⋬",NU="⋫",DU="⋭",$U="Ν",BU="ν",MU="#",LU="№",OU=" ",VU="≍⃒",IU="⊬",PU="⊭",FU="⊮",RU="⊯",zU="≥⃒",UU=">⃒",qU="⤄",HU="⧞",jU="⤂",WU="≤⃒",ZU="<⃒",KU="⊴⃒",GU="⤃",YU="⊵⃒",JU="∼⃒",XU="⤣",QU="↖",eq="⇖",tq="↖",nq="⤧",oq="Ó",rq="ó",iq="⊛",sq="Ô",aq="ô",lq="⊚",cq="О",uq="о",dq="⊝",fq="Ő",pq="ő",mq="⨸",hq="⊙",gq="⦼",vq="Œ",_q="œ",yq="⦿",Cq="𝔒",bq="𝔬",kq="˛",wq="Ò",Eq="ò",Sq="⧁",xq="⦵",Tq="Ω",Aq="∮",Nq="↺",Dq="⦾",$q="⦻",Bq="‾",Mq="⧀",Lq="Ō",Oq="ō",Vq="Ω",Iq="ω",Pq="Ο",Fq="ο",Rq="⦶",zq="⊖",Uq="𝕆",qq="𝕠",Hq="⦷",jq="“",Wq="‘",Zq="⦹",Kq="⊕",Gq="↻",Yq="⩔",Jq="∨",Xq="⩝",Qq="ℴ",eH="ℴ",tH="ª",nH="º",oH="⊶",rH="⩖",iH="⩗",sH="⩛",aH="Ⓢ",lH="𝒪",cH="ℴ",uH="Ø",dH="ø",fH="⊘",pH="Õ",mH="õ",hH="⨶",gH="⨷",vH="⊗",_H="Ö",yH="ö",CH="⌽",bH="‾",kH="⏞",wH="⎴",EH="⏜",SH="¶",xH="∥",TH="∥",AH="⫳",NH="⫽",DH="∂",$H="∂",BH="П",MH="п",LH="%",OH=".",VH="‰",IH="⊥",PH="‱",FH="𝔓",RH="𝔭",zH="Φ",UH="φ",qH="ϕ",HH="ℳ",jH="☎",WH="Π",ZH="π",KH="⋔",GH="ϖ",YH="ℏ",JH="ℎ",XH="ℏ",QH="⨣",ej="⊞",tj="⨢",nj="+",oj="∔",rj="⨥",ij="⩲",sj="±",aj="±",lj="⨦",cj="⨧",uj="±",dj="ℌ",fj="⨕",pj="𝕡",mj="ℙ",hj="£",gj="⪷",vj="⪻",_j="≺",yj="≼",Cj="⪷",bj="≺",kj="≼",wj="≺",Ej="⪯",Sj="≼",xj="≾",Tj="⪯",Aj="⪹",Nj="⪵",Dj="⋨",$j="⪯",Bj="⪳",Mj="≾",Lj="′",Oj="″",Vj="ℙ",Ij="⪹",Pj="⪵",Fj="⋨",Rj="∏",zj="∏",Uj="⌮",qj="⌒",Hj="⌓",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="∽̱",_W="Ŕ",yW="ŕ",CW="√",bW="⦳",kW="⟩",wW="⟫",EW="⦒",SW="⦥",xW="⟩",TW="»",AW="⥵",NW="⇥",DW="⤠",$W="⤳",BW="→",MW="↠",LW="⇒",OW="⤞",VW="↪",IW="↬",PW="⥅",FW="⥴",RW="⤖",zW="↣",UW="↝",qW="⤚",HW="⤜",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="ℜ",_Z="ℝ",yZ="ℜ",CZ="▭",bZ="®",kZ="®",wZ="∋",EZ="⇋",SZ="⥯",xZ="⥽",TZ="⌋",AZ="𝔯",NZ="ℜ",DZ="⥤",$Z="⇁",BZ="⇀",MZ="⥬",LZ="Ρ",OZ="ρ",VZ="ϱ",IZ="⟩",PZ="⇥",FZ="→",RZ="→",zZ="⇒",UZ="⇄",qZ="↣",HZ="⌉",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="⇄",_K="⇌",yK="",CK="⎱",bK="⎱",kK="⫮",wK="⟭",EK="⇾",SK="⟧",xK="⦆",TK="𝕣",AK="ℝ",NK="⨮",DK="⨵",$K="⥰",BK=")",MK="⦔",LK="⨒",OK="⇉",VK="⇛",IK="›",PK="𝓇",FK="ℛ",RK="↱",zK="↱",UK="]",qK="’",HK="’",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="⋩",_G="⨓",yG="≿",CG="С",bG="с",kG="⊡",wG="⋅",EG="⩦",SG="⤥",xG="↘",TG="⇘",AG="↘",NG="§",DG=";",$G="⤩",BG="∖",MG="∖",LG="✶",OG="𝔖",VG="𝔰",IG="⌢",PG="♯",FG="Щ",RG="щ",zG="Ш",UG="ш",qG="↓",HG="←",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="⌣",_Y="⪪",yY="⪬",CY="⪬︀",bY="Ь",kY="ь",wY="⌿",EY="⧄",SY="/",xY="𝕊",TY="𝕤",AY="♠",NY="♠",DY="∥",$Y="⊓",BY="⊓︀",MY="⊔",LY="⊔︀",OY="√",VY="⊏",IY="⊑",PY="⊏",FY="⊑",RY="⊐",zY="⊒",UY="⊐",qY="⊒",HY="□",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="⊆",_J="⫃",yJ="⫁",CJ="⫋",bJ="⊊",kJ="⪿",wJ="⥹",EJ="⊂",SJ="⋐",xJ="⊆",TJ="⫅",AJ="⊆",NJ="⊊",DJ="⫋",$J="⫇",BJ="⫕",MJ="⫓",LJ="⪸",OJ="≻",VJ="≽",IJ="≻",PJ="⪰",FJ="≽",RJ="≿",zJ="⪰",UJ="⪺",qJ="⪶",HJ="⋩",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="⊇",_X="⫆",yX="⊋",CX="⫌",bX="⫈",kX="⫔",wX="⫖",EX="⤦",SX="↙",xX="⇙",TX="↙",AX="⤪",NX="ß",DX=" ",$X="⌖",BX="Τ",MX="τ",LX="⎴",OX="Ť",VX="ť",IX="Ţ",PX="ţ",FX="Т",RX="т",zX="⃛",UX="⌕",qX="𝔗",HX="𝔱",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="⤨",_Q="⌶",yQ="⫱",CQ="⊤",bQ="𝕋",kQ="𝕥",wQ="⫚",EQ="⤩",SQ="‴",xQ="™",TQ="™",AQ="▵",NQ="▿",DQ="◃",$Q="⊴",BQ="≜",MQ="▹",LQ="⊵",OQ="◬",VQ="≜",IQ="⨺",PQ="⃛",FQ="⨹",RQ="⧍",zQ="⨻",UQ="⏢",qQ="𝒯",HQ="𝓉",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="⥮",_ee="⥾",yee="𝔘",Cee="𝔲",bee="Ù",kee="ù",wee="⥣",Eee="↿",See="↾",xee="▀",Tee="⌜",Aee="⌜",Nee="⌏",Dee="◸",$ee="Ū",Bee="ū",Mee="¨",Lee="_",Oee="⏟",Vee="⎵",Iee="⏝",Pee="⋃",Fee="⊎",Ree="Ų",zee="ų",Uee="𝕌",qee="𝕦",Hee="⤒",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="◹",_te="𝒰",yte="𝓊",Cte="⋰",bte="Ũ",kte="ũ",wte="▵",Ete="▴",Ste="⇈",xte="Ü",Tte="ü",Ate="⦧",Nte="⦜",Dte="ϵ",$te="ϰ",Bte="∅",Mte="ϕ",Lte="ϖ",Ote="∝",Vte="↕",Ite="⇕",Pte="ϱ",Fte="ς",Rte="⊊︀",zte="⫋︀",Ute="⊋︀",qte="⫌︀",Hte="ϑ",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="𝔙",_ne="𝔳",yne="⊲",Cne="⊂⃒",bne="⊃⃒",kne="𝕍",wne="𝕧",Ene="∝",Sne="⊳",xne="𝒱",Tne="𝓋",Ane="⫋︀",Nne="⊊︀",Dne="⫌︀",$ne="⊋︀",Bne="⊪",Mne="⦚",Lne="Ŵ",One="ŵ",Vne="⩟",Ine="∧",Pne="⋀",Fne="≙",Rne="℘",zne="𝔚",Une="𝔴",qne="𝕎",Hne="𝕨",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="𝒳",_oe="𝓍",yoe="⨆",Coe="⨄",boe="△",koe="⋁",woe="⋀",Eoe="Ý",Soe="ý",xoe="Я",Toe="я",Aoe="Ŷ",Noe="ŷ",Doe="Ы",$oe="ы",Boe="¥",Moe="𝔜",Loe="𝔶",Ooe="Ї",Voe="ї",Ioe="𝕐",Poe="𝕪",Foe="𝒴",Roe="𝓎",zoe="Ю",Uoe="ю",qoe="ÿ",Hoe="Ÿ",joe="Ź",Woe="ź",Zoe="Ž",Koe="ž",Goe="З",Yoe="з",Joe="Ż",Xoe="ż",Qoe="ℨ",ere="",tre="Ζ",nre="ζ",ore="𝔷",rre="ℨ",ire="Ж",sre="ж",are="⇝",lre="𝕫",cre="ℤ",ure="𝒵",dre="𝓏",fre="",pre="",mre={Aacute:Jk,aacute:Xk,Abreve:Qk,abreve:e9,ac:t9,acd:n9,acE:o9,Acirc:r9,acirc:i9,acute:s9,Acy:a9,acy:l9,AElig:c9,aelig:u9,af:d9,Afr:f9,afr:p9,Agrave:m9,agrave:h9,alefsym:g9,aleph:v9,Alpha:_9,alpha:y9,Amacr:C9,amacr:b9,amalg:k9,amp:w9,AMP:E9,andand:S9,And:x9,and:T9,andd:A9,andslope:N9,andv:D9,ang:$9,ange:B9,angle:M9,angmsdaa:L9,angmsdab:O9,angmsdac:V9,angmsdad:I9,angmsdae:P9,angmsdaf:F9,angmsdag:R9,angmsdah:z9,angmsd:U9,angrt:q9,angrtvb:H9,angrtvbd:j9,angsph:W9,angst:Z9,angzarr:K9,Aogon:G9,aogon:Y9,Aopf:J9,aopf:X9,apacir:Q9,ap:e4,apE:t4,ape:n4,apid:o4,apos:r4,ApplyFunction:i4,approx:s4,approxeq:a4,Aring:l4,aring:c4,Ascr:u4,ascr:d4,Assign:f4,ast:p4,asymp:m4,asympeq:h4,Atilde:g4,atilde:v4,Auml:_4,auml:y4,awconint:C4,awint:b4,backcong:k4,backepsilon:w4,backprime:E4,backsim:S4,backsimeq:x4,Backslash:T4,Barv:A4,barvee:N4,barwed:D4,Barwed:$4,barwedge:B4,bbrk:M4,bbrktbrk:L4,bcong:O4,Bcy:V4,bcy:I4,bdquo:P4,becaus:F4,because:R4,Because:z4,bemptyv:U4,bepsi:q4,bernou:H4,Bernoullis:j4,Beta:W4,beta:Z4,beth:K4,between:G4,Bfr:Y4,bfr:J4,bigcap:X4,bigcirc:Q4,bigcup:e8,bigodot:t8,bigoplus:n8,bigotimes:o8,bigsqcup:r8,bigstar:i8,bigtriangledown:s8,bigtriangleup:a8,biguplus:l8,bigvee:c8,bigwedge:u8,bkarow:d8,blacklozenge:f8,blacksquare:p8,blacktriangle:m8,blacktriangledown:h8,blacktriangleleft:g8,blacktriangleright:v8,blank:_8,blk12:y8,blk14:C8,blk34:b8,block:k8,bne:w8,bnequiv:E8,bNot:S8,bnot:x8,Bopf:T8,bopf:A8,bot:N8,bottom:D8,bowtie:$8,boxbox:B8,boxdl:M8,boxdL:L8,boxDl:O8,boxDL:V8,boxdr:I8,boxdR:P8,boxDr:F8,boxDR:R8,boxh:z8,boxH:U8,boxhd:q8,boxHd:H8,boxhD:j8,boxHD:W8,boxhu:Z8,boxHu:K8,boxhU:G8,boxHU:Y8,boxminus:J8,boxplus:X8,boxtimes:Q8,boxul:e6,boxuL:t6,boxUl:n6,boxUL:o6,boxur:r6,boxuR:i6,boxUr:s6,boxUR:a6,boxv:l6,boxV:c6,boxvh:u6,boxvH:d6,boxVh:f6,boxVH:p6,boxvl:m6,boxvL:h6,boxVl:g6,boxVL:v6,boxvr:_6,boxvR:y6,boxVr:C6,boxVR:b6,bprime:k6,breve:w6,Breve:E6,brvbar:S6,bscr:x6,Bscr:T6,bsemi:A6,bsim:N6,bsime:D6,bsolb:$6,bsol:B6,bsolhsub:M6,bull:L6,bullet:O6,bump:V6,bumpE:I6,bumpe:P6,Bumpeq:F6,bumpeq:R6,Cacute:z6,cacute:U6,capand:q6,capbrcup:H6,capcap:j6,cap:W6,Cap:Z6,capcup:K6,capdot:G6,CapitalDifferentialD:Y6,caps:J6,caret:X6,caron:Q6,Cayleys:ew,ccaps:tw,Ccaron:nw,ccaron:ow,Ccedil:rw,ccedil:iw,Ccirc:sw,ccirc:aw,Cconint:lw,ccups:cw,ccupssm:uw,Cdot:dw,cdot:fw,cedil:pw,Cedilla:mw,cemptyv:hw,cent:gw,centerdot:vw,CenterDot:_w,cfr:yw,Cfr:Cw,CHcy:bw,chcy:kw,check:ww,checkmark:Ew,Chi:Sw,chi:xw,circ:Tw,circeq:Aw,circlearrowleft:Nw,circlearrowright:Dw,circledast:$w,circledcirc:Bw,circleddash:Mw,CircleDot:Lw,circledR:Ow,circledS:Vw,CircleMinus:Iw,CirclePlus:Pw,CircleTimes:Fw,cir:Rw,cirE:zw,cire:Uw,cirfnint:qw,cirmid:Hw,cirscir:jw,ClockwiseContourIntegral:Ww,CloseCurlyDoubleQuote:Zw,CloseCurlyQuote:Kw,clubs:Gw,clubsuit:Yw,colon:Jw,Colon:Xw,Colone:Qw,colone:eE,coloneq:tE,comma:nE,commat:oE,comp:rE,compfn:iE,complement:sE,complexes:aE,cong:lE,congdot:cE,Congruent:uE,conint:dE,Conint:fE,ContourIntegral:pE,copf:mE,Copf:hE,coprod:gE,Coproduct:vE,copy:_E,COPY:yE,copysr:CE,CounterClockwiseContourIntegral:bE,crarr:kE,cross:wE,Cross:EE,Cscr:SE,cscr:xE,csub:TE,csube:AE,csup:NE,csupe:DE,ctdot:$E,cudarrl:BE,cudarrr:ME,cuepr:LE,cuesc:OE,cularr:VE,cularrp:IE,cupbrcap:PE,cupcap:FE,CupCap:RE,cup:zE,Cup:UE,cupcup:qE,cupdot:HE,cupor:jE,cups:WE,curarr:ZE,curarrm:KE,curlyeqprec:GE,curlyeqsucc:YE,curlyvee:JE,curlywedge:XE,curren:QE,curvearrowleft:eS,curvearrowright:tS,cuvee:nS,cuwed:oS,cwconint:rS,cwint:iS,cylcty:sS,dagger:aS,Dagger:lS,daleth:cS,darr:uS,Darr:dS,dArr:fS,dash:pS,Dashv:mS,dashv:hS,dbkarow:gS,dblac:vS,Dcaron:_S,dcaron:yS,Dcy:CS,dcy:bS,ddagger:kS,ddarr:wS,DD:ES,dd:SS,DDotrahd:xS,ddotseq:TS,deg:AS,Del:NS,Delta:DS,delta:$S,demptyv:BS,dfisht:MS,Dfr:LS,dfr:OS,dHar:VS,dharl:IS,dharr:PS,DiacriticalAcute:FS,DiacriticalDot:RS,DiacriticalDoubleAcute:zS,DiacriticalGrave:US,DiacriticalTilde:qS,diam:HS,diamond:jS,Diamond:WS,diamondsuit:ZS,diams:KS,die:GS,DifferentialD:YS,digamma:JS,disin:XS,div:QS,divide:ex,divideontimes:tx,divonx:nx,DJcy:ox,djcy:rx,dlcorn:ix,dlcrop:sx,dollar:ax,Dopf:lx,dopf:cx,Dot:ux,dot:dx,DotDot:fx,doteq:px,doteqdot:mx,DotEqual:hx,dotminus:gx,dotplus:vx,dotsquare:_x,doublebarwedge:yx,DoubleContourIntegral:Cx,DoubleDot:bx,DoubleDownArrow:kx,DoubleLeftArrow:wx,DoubleLeftRightArrow:Ex,DoubleLeftTee:Sx,DoubleLongLeftArrow:xx,DoubleLongLeftRightArrow:Tx,DoubleLongRightArrow:Ax,DoubleRightArrow:Nx,DoubleRightTee:Dx,DoubleUpArrow:$x,DoubleUpDownArrow:Bx,DoubleVerticalBar:Mx,DownArrowBar:Lx,downarrow:Ox,DownArrow:Vx,Downarrow:Ix,DownArrowUpArrow:Px,DownBreve:Fx,downdownarrows:Rx,downharpoonleft:zx,downharpoonright:Ux,DownLeftRightVector:qx,DownLeftTeeVector:Hx,DownLeftVectorBar:jx,DownLeftVector:Wx,DownRightTeeVector:Zx,DownRightVectorBar:Kx,DownRightVector:Gx,DownTeeArrow:Yx,DownTee:Jx,drbkarow:Xx,drcorn:Qx,drcrop:eT,Dscr:tT,dscr:nT,DScy:oT,dscy:rT,dsol:iT,Dstrok:sT,dstrok:aT,dtdot:lT,dtri:cT,dtrif:uT,duarr:dT,duhar:fT,dwangle:pT,DZcy:mT,dzcy:hT,dzigrarr:gT,Eacute:vT,eacute:_T,easter:yT,Ecaron:CT,ecaron:bT,Ecirc:kT,ecirc:wT,ecir:ET,ecolon:ST,Ecy:xT,ecy:TT,eDDot:AT,Edot:NT,edot:DT,eDot:$T,ee:BT,efDot:MT,Efr:LT,efr:OT,eg:VT,Egrave:IT,egrave:PT,egs:FT,egsdot:RT,el:zT,Element:UT,elinters:qT,ell:HT,els:jT,elsdot:WT,Emacr:ZT,emacr:KT,empty:GT,emptyset:YT,EmptySmallSquare:JT,emptyv:XT,EmptyVerySmallSquare:QT,emsp13:eA,emsp14:tA,emsp:nA,ENG:oA,eng:rA,ensp:iA,Eogon:sA,eogon:aA,Eopf:lA,eopf:cA,epar:uA,eparsl:dA,eplus:fA,epsi:pA,Epsilon:mA,epsilon:hA,epsiv:gA,eqcirc:vA,eqcolon:_A,eqsim:yA,eqslantgtr:CA,eqslantless:bA,Equal:kA,equals:wA,EqualTilde:EA,equest:SA,Equilibrium:xA,equiv:TA,equivDD:AA,eqvparsl:NA,erarr:DA,erDot:$A,escr:BA,Escr:MA,esdot:LA,Esim:OA,esim:VA,Eta:IA,eta:PA,ETH:FA,eth:RA,Euml:zA,euml:UA,euro:qA,excl:HA,exist:jA,Exists:WA,expectation:ZA,exponentiale:KA,ExponentialE:GA,fallingdotseq:YA,Fcy:JA,fcy:XA,female:QA,ffilig:eN,fflig:tN,ffllig:nN,Ffr:oN,ffr:rN,filig:iN,FilledSmallSquare:sN,FilledVerySmallSquare:aN,fjlig:lN,flat:cN,fllig:uN,fltns:dN,fnof:fN,Fopf:pN,fopf:mN,forall:hN,ForAll:gN,fork:vN,forkv:_N,Fouriertrf:yN,fpartint:CN,frac12:bN,frac13:kN,frac14:wN,frac15:EN,frac16:SN,frac18:xN,frac23:TN,frac25:AN,frac34:NN,frac35:DN,frac38:$N,frac45:BN,frac56:MN,frac58:LN,frac78:ON,frasl:VN,frown:IN,fscr:PN,Fscr:FN,gacute:RN,Gamma:zN,gamma:UN,Gammad:qN,gammad:HN,gap:jN,Gbreve:WN,gbreve:ZN,Gcedil:KN,Gcirc:GN,gcirc:YN,Gcy:JN,gcy:XN,Gdot:QN,gdot:eD,ge:tD,gE:nD,gEl:oD,gel:rD,geq:iD,geqq:sD,geqslant:aD,gescc:lD,ges:cD,gesdot:uD,gesdoto:dD,gesdotol:fD,gesl:pD,gesles:mD,Gfr:hD,gfr:gD,gg:vD,Gg:_D,ggg:yD,gimel:CD,GJcy:bD,gjcy:kD,gla:wD,gl:ED,glE:SD,glj:xD,gnap:TD,gnapprox:AD,gne:ND,gnE:DD,gneq:$D,gneqq:BD,gnsim:MD,Gopf:LD,gopf:OD,grave:VD,GreaterEqual:ID,GreaterEqualLess:PD,GreaterFullEqual:FD,GreaterGreater:RD,GreaterLess:zD,GreaterSlantEqual:UD,GreaterTilde:qD,Gscr:HD,gscr:jD,gsim:WD,gsime:ZD,gsiml:KD,gtcc:GD,gtcir:YD,gt:JD,GT:XD,Gt:QD,gtdot:e$,gtlPar:t$,gtquest:n$,gtrapprox:o$,gtrarr:r$,gtrdot:i$,gtreqless:s$,gtreqqless:a$,gtrless:l$,gtrsim:c$,gvertneqq:u$,gvnE:d$,Hacek:f$,hairsp:p$,half:m$,hamilt:h$,HARDcy:g$,hardcy:v$,harrcir:_$,harr:y$,hArr:C$,harrw:b$,Hat:k$,hbar:w$,Hcirc:E$,hcirc:S$,hearts:x$,heartsuit:T$,hellip:A$,hercon:N$,hfr:D$,Hfr:$$,HilbertSpace:B$,hksearow:M$,hkswarow:L$,hoarr:O$,homtht:V$,hookleftarrow:I$,hookrightarrow:P$,hopf:F$,Hopf:R$,horbar:z$,HorizontalLine:U$,hscr:q$,Hscr:H$,hslash:j$,Hstrok:W$,hstrok:Z$,HumpDownHump:K$,HumpEqual:G$,hybull:Y$,hyphen:J$,Iacute:X$,iacute:Q$,ic:eB,Icirc:tB,icirc:nB,Icy:oB,icy:rB,Idot:iB,IEcy:sB,iecy:aB,iexcl:lB,iff:cB,ifr:uB,Ifr:dB,Igrave:fB,igrave:pB,ii:mB,iiiint:hB,iiint:gB,iinfin:vB,iiota:_B,IJlig:yB,ijlig:CB,Imacr:bB,imacr:kB,image:wB,ImaginaryI:EB,imagline:SB,imagpart:xB,imath:TB,Im:AB,imof:NB,imped:DB,Implies:$B,incare:BB,in:"∈",infin:MB,infintie:LB,inodot:OB,intcal:VB,int:IB,Int:PB,integers:FB,Integral:RB,intercal:zB,Intersection:UB,intlarhk:qB,intprod:HB,InvisibleComma:jB,InvisibleTimes:WB,IOcy:ZB,iocy:KB,Iogon:GB,iogon:YB,Iopf:JB,iopf:XB,Iota:QB,iota:eM,iprod:tM,iquest:nM,iscr:oM,Iscr:rM,isin:iM,isindot:sM,isinE:aM,isins:lM,isinsv:cM,isinv:uM,it:dM,Itilde:fM,itilde:pM,Iukcy:mM,iukcy:hM,Iuml:gM,iuml:vM,Jcirc:_M,jcirc:yM,Jcy:CM,jcy:bM,Jfr:kM,jfr:wM,jmath:EM,Jopf:SM,jopf:xM,Jscr:TM,jscr:AM,Jsercy:NM,jsercy:DM,Jukcy:$M,jukcy:BM,Kappa:MM,kappa:LM,kappav:OM,Kcedil:VM,kcedil:IM,Kcy:PM,kcy:FM,Kfr:RM,kfr:zM,kgreen:UM,KHcy:qM,khcy:HM,KJcy:jM,kjcy:WM,Kopf:ZM,kopf:KM,Kscr:GM,kscr:YM,lAarr:JM,Lacute:XM,lacute:QM,laemptyv:eL,lagran:tL,Lambda:nL,lambda:oL,lang:rL,Lang:iL,langd:sL,langle:aL,lap:lL,Laplacetrf:cL,laquo:uL,larrb:dL,larrbfs:fL,larr:pL,Larr:mL,lArr:hL,larrfs:gL,larrhk:vL,larrlp:_L,larrpl:yL,larrsim:CL,larrtl:bL,latail:kL,lAtail:wL,lat:EL,late:SL,lates:xL,lbarr:TL,lBarr:AL,lbbrk:NL,lbrace:DL,lbrack:$L,lbrke:BL,lbrksld:ML,lbrkslu:LL,Lcaron:OL,lcaron:VL,Lcedil:IL,lcedil:PL,lceil:FL,lcub:RL,Lcy:zL,lcy:UL,ldca:qL,ldquo:HL,ldquor:jL,ldrdhar:WL,ldrushar:ZL,ldsh:KL,le:GL,lE:YL,LeftAngleBracket:JL,LeftArrowBar:XL,leftarrow:QL,LeftArrow:eO,Leftarrow:tO,LeftArrowRightArrow:nO,leftarrowtail:oO,LeftCeiling:rO,LeftDoubleBracket:iO,LeftDownTeeVector:sO,LeftDownVectorBar:aO,LeftDownVector:lO,LeftFloor:cO,leftharpoondown:uO,leftharpoonup:dO,leftleftarrows:fO,leftrightarrow:pO,LeftRightArrow:mO,Leftrightarrow:hO,leftrightarrows:gO,leftrightharpoons:vO,leftrightsquigarrow:_O,LeftRightVector:yO,LeftTeeArrow:CO,LeftTee:bO,LeftTeeVector:kO,leftthreetimes:wO,LeftTriangleBar:EO,LeftTriangle:SO,LeftTriangleEqual:xO,LeftUpDownVector:TO,LeftUpTeeVector:AO,LeftUpVectorBar:NO,LeftUpVector:DO,LeftVectorBar:$O,LeftVector:BO,lEg:MO,leg:LO,leq:OO,leqq:VO,leqslant:IO,lescc:PO,les:FO,lesdot:RO,lesdoto:zO,lesdotor:UO,lesg:qO,lesges:HO,lessapprox:jO,lessdot:WO,lesseqgtr:ZO,lesseqqgtr:KO,LessEqualGreater:GO,LessFullEqual:YO,LessGreater:JO,lessgtr:XO,LessLess:QO,lesssim:eV,LessSlantEqual:tV,LessTilde:nV,lfisht:oV,lfloor:rV,Lfr:iV,lfr:sV,lg:aV,lgE:lV,lHar:cV,lhard:uV,lharu:dV,lharul:fV,lhblk:pV,LJcy:mV,ljcy:hV,llarr:gV,ll:vV,Ll:_V,llcorner:yV,Lleftarrow:CV,llhard:bV,lltri:kV,Lmidot:wV,lmidot:EV,lmoustache:SV,lmoust:xV,lnap:TV,lnapprox:AV,lne:NV,lnE:DV,lneq:$V,lneqq:BV,lnsim:MV,loang:LV,loarr:OV,lobrk:VV,longleftarrow:IV,LongLeftArrow:PV,Longleftarrow:FV,longleftrightarrow:RV,LongLeftRightArrow:zV,Longleftrightarrow:UV,longmapsto:qV,longrightarrow:HV,LongRightArrow:jV,Longrightarrow:WV,looparrowleft:ZV,looparrowright:KV,lopar:GV,Lopf:YV,lopf:JV,loplus:XV,lotimes:QV,lowast:eI,lowbar:tI,LowerLeftArrow:nI,LowerRightArrow:oI,loz:rI,lozenge:iI,lozf:sI,lpar:aI,lparlt:lI,lrarr:cI,lrcorner:uI,lrhar:dI,lrhard:fI,lrm:pI,lrtri:mI,lsaquo:hI,lscr:gI,Lscr:vI,lsh:_I,Lsh:yI,lsim:CI,lsime:bI,lsimg:kI,lsqb:wI,lsquo:EI,lsquor:SI,Lstrok:xI,lstrok:TI,ltcc:AI,ltcir:NI,lt:DI,LT:$I,Lt:BI,ltdot:MI,lthree:LI,ltimes:OI,ltlarr:VI,ltquest:II,ltri:PI,ltrie:FI,ltrif:RI,ltrPar:zI,lurdshar:UI,luruhar:qI,lvertneqq:HI,lvnE:jI,macr:WI,male:ZI,malt:KI,maltese:GI,Map:"⤅",map:YI,mapsto:JI,mapstodown:XI,mapstoleft:QI,mapstoup:eP,marker:tP,mcomma:nP,Mcy:oP,mcy:rP,mdash:iP,mDDot:sP,measuredangle:aP,MediumSpace:lP,Mellintrf:cP,Mfr:uP,mfr:dP,mho:fP,micro:pP,midast:mP,midcir:hP,mid:gP,middot:vP,minusb:_P,minus:yP,minusd:CP,minusdu:bP,MinusPlus:kP,mlcp:wP,mldr:EP,mnplus:SP,models:xP,Mopf:TP,mopf:AP,mp:NP,mscr:DP,Mscr:$P,mstpos:BP,Mu:MP,mu:LP,multimap:OP,mumap:VP,nabla:IP,Nacute:PP,nacute:FP,nang:RP,nap:zP,napE:UP,napid:qP,napos:HP,napprox:jP,natural:WP,naturals:ZP,natur:KP,nbsp:GP,nbump:YP,nbumpe:JP,ncap:XP,Ncaron:QP,ncaron:eF,Ncedil:tF,ncedil:nF,ncong:oF,ncongdot:rF,ncup:iF,Ncy:sF,ncy:aF,ndash:lF,nearhk:cF,nearr:uF,neArr:dF,nearrow:fF,ne:pF,nedot:mF,NegativeMediumSpace:hF,NegativeThickSpace:gF,NegativeThinSpace:vF,NegativeVeryThinSpace:_F,nequiv:yF,nesear:CF,nesim:bF,NestedGreaterGreater:kF,NestedLessLess:wF,NewLine:EF,nexist:SF,nexists:xF,Nfr:TF,nfr:AF,ngE:NF,nge:DF,ngeq:$F,ngeqq:BF,ngeqslant:MF,nges:LF,nGg:OF,ngsim:VF,nGt:IF,ngt:PF,ngtr:FF,nGtv:RF,nharr:zF,nhArr:UF,nhpar:qF,ni:HF,nis:jF,nisd:WF,niv:ZF,NJcy:KF,njcy:GF,nlarr:YF,nlArr:JF,nldr:XF,nlE:QF,nle:eR,nleftarrow:tR,nLeftarrow:nR,nleftrightarrow:oR,nLeftrightarrow:rR,nleq:iR,nleqq:sR,nleqslant:aR,nles:lR,nless:cR,nLl:uR,nlsim:dR,nLt:fR,nlt:pR,nltri:mR,nltrie:hR,nLtv:gR,nmid:vR,NoBreak:_R,NonBreakingSpace:yR,nopf:CR,Nopf:bR,Not:kR,not:wR,NotCongruent:ER,NotCupCap:SR,NotDoubleVerticalBar:xR,NotElement:TR,NotEqual:AR,NotEqualTilde:NR,NotExists:DR,NotGreater:$R,NotGreaterEqual:BR,NotGreaterFullEqual:MR,NotGreaterGreater:LR,NotGreaterLess:OR,NotGreaterSlantEqual:VR,NotGreaterTilde:IR,NotHumpDownHump:PR,NotHumpEqual:FR,notin:RR,notindot:zR,notinE:UR,notinva:qR,notinvb:HR,notinvc:jR,NotLeftTriangleBar:WR,NotLeftTriangle:ZR,NotLeftTriangleEqual:KR,NotLess:GR,NotLessEqual:YR,NotLessGreater:JR,NotLessLess:XR,NotLessSlantEqual:QR,NotLessTilde:ez,NotNestedGreaterGreater:tz,NotNestedLessLess:nz,notni:oz,notniva:rz,notnivb:iz,notnivc:sz,NotPrecedes:az,NotPrecedesEqual:lz,NotPrecedesSlantEqual:cz,NotReverseElement:uz,NotRightTriangleBar:dz,NotRightTriangle:fz,NotRightTriangleEqual:pz,NotSquareSubset:mz,NotSquareSubsetEqual:hz,NotSquareSuperset:gz,NotSquareSupersetEqual:vz,NotSubset:_z,NotSubsetEqual:yz,NotSucceeds:Cz,NotSucceedsEqual:bz,NotSucceedsSlantEqual:kz,NotSucceedsTilde:wz,NotSuperset:Ez,NotSupersetEqual:Sz,NotTilde:xz,NotTildeEqual:Tz,NotTildeFullEqual:Az,NotTildeTilde:Nz,NotVerticalBar:Dz,nparallel:$z,npar:Bz,nparsl:Mz,npart:Lz,npolint:Oz,npr:Vz,nprcue:Iz,nprec:Pz,npreceq:Fz,npre:Rz,nrarrc:zz,nrarr:Uz,nrArr:qz,nrarrw:Hz,nrightarrow:jz,nRightarrow:Wz,nrtri:Zz,nrtrie:Kz,nsc:Gz,nsccue:Yz,nsce:Jz,Nscr:Xz,nscr:Qz,nshortmid:eU,nshortparallel:tU,nsim:nU,nsime:oU,nsimeq:rU,nsmid:iU,nspar:sU,nsqsube:aU,nsqsupe:lU,nsub:cU,nsubE:uU,nsube:dU,nsubset:fU,nsubseteq:pU,nsubseteqq:mU,nsucc:hU,nsucceq:gU,nsup:vU,nsupE:_U,nsupe:yU,nsupset:CU,nsupseteq:bU,nsupseteqq:kU,ntgl:wU,Ntilde:EU,ntilde:SU,ntlg:xU,ntriangleleft:TU,ntrianglelefteq:AU,ntriangleright:NU,ntrianglerighteq:DU,Nu:$U,nu:BU,num:MU,numero:LU,numsp:OU,nvap:VU,nvdash:IU,nvDash:PU,nVdash:FU,nVDash:RU,nvge:zU,nvgt:UU,nvHarr:qU,nvinfin:HU,nvlArr:jU,nvle:WU,nvlt:ZU,nvltrie:KU,nvrArr:GU,nvrtrie:YU,nvsim:JU,nwarhk:XU,nwarr:QU,nwArr:eq,nwarrow:tq,nwnear:nq,Oacute:oq,oacute:rq,oast:iq,Ocirc:sq,ocirc:aq,ocir:lq,Ocy:cq,ocy:uq,odash:dq,Odblac:fq,odblac:pq,odiv:mq,odot:hq,odsold:gq,OElig:vq,oelig:_q,ofcir:yq,Ofr:Cq,ofr:bq,ogon:kq,Ograve:wq,ograve:Eq,ogt:Sq,ohbar:xq,ohm:Tq,oint:Aq,olarr:Nq,olcir:Dq,olcross:$q,oline:Bq,olt:Mq,Omacr:Lq,omacr:Oq,Omega:Vq,omega:Iq,Omicron:Pq,omicron:Fq,omid:Rq,ominus:zq,Oopf:Uq,oopf:qq,opar:Hq,OpenCurlyDoubleQuote:jq,OpenCurlyQuote:Wq,operp:Zq,oplus:Kq,orarr:Gq,Or:Yq,or:Jq,ord:Xq,order:Qq,orderof:eH,ordf:tH,ordm:nH,origof:oH,oror:rH,orslope:iH,orv:sH,oS:aH,Oscr:lH,oscr:cH,Oslash:uH,oslash:dH,osol:fH,Otilde:pH,otilde:mH,otimesas:hH,Otimes:gH,otimes:vH,Ouml:_H,ouml:yH,ovbar:CH,OverBar:bH,OverBrace:kH,OverBracket:wH,OverParenthesis:EH,para:SH,parallel:xH,par:TH,parsim:AH,parsl:NH,part:DH,PartialD:$H,Pcy:BH,pcy:MH,percnt:LH,period:OH,permil:VH,perp:IH,pertenk:PH,Pfr:FH,pfr:RH,Phi:zH,phi:UH,phiv:qH,phmmat:HH,phone:jH,Pi:WH,pi:ZH,pitchfork:KH,piv:GH,planck:YH,planckh:JH,plankv:XH,plusacir:QH,plusb:ej,pluscir:tj,plus:nj,plusdo:oj,plusdu:rj,pluse:ij,PlusMinus:sj,plusmn:aj,plussim:lj,plustwo:cj,pm:uj,Poincareplane:dj,pointint:fj,popf:pj,Popf:mj,pound:hj,prap:gj,Pr:vj,pr:_j,prcue:yj,precapprox:Cj,prec:bj,preccurlyeq:kj,Precedes:wj,PrecedesEqual:Ej,PrecedesSlantEqual:Sj,PrecedesTilde:xj,preceq:Tj,precnapprox:Aj,precneqq:Nj,precnsim:Dj,pre:$j,prE:Bj,precsim:Mj,prime:Lj,Prime:Oj,primes:Vj,prnap:Ij,prnE:Pj,prnsim:Fj,prod:Rj,Product:zj,profalar:Uj,profline:qj,profsurf:Hj,prop:jj,Proportional:Wj,Proportion:Zj,propto:Kj,prsim:Gj,prurel:Yj,Pscr:Jj,pscr:Xj,Psi:Qj,psi:eW,puncsp:tW,Qfr:nW,qfr:oW,qint:rW,qopf:iW,Qopf:sW,qprime:aW,Qscr:lW,qscr:cW,quaternions:uW,quatint:dW,quest:fW,questeq:pW,quot:mW,QUOT:hW,rAarr:gW,race:vW,Racute:_W,racute:yW,radic:CW,raemptyv:bW,rang:kW,Rang:wW,rangd:EW,range:SW,rangle:xW,raquo:TW,rarrap:AW,rarrb:NW,rarrbfs:DW,rarrc:$W,rarr:BW,Rarr:MW,rArr:LW,rarrfs:OW,rarrhk:VW,rarrlp:IW,rarrpl:PW,rarrsim:FW,Rarrtl:RW,rarrtl:zW,rarrw:UW,ratail:qW,rAtail:HW,ratio:jW,rationals:WW,rbarr:ZW,rBarr:KW,RBarr:GW,rbbrk:YW,rbrace:JW,rbrack:XW,rbrke:QW,rbrksld:eZ,rbrkslu:tZ,Rcaron:nZ,rcaron:oZ,Rcedil:rZ,rcedil:iZ,rceil:sZ,rcub:aZ,Rcy:lZ,rcy:cZ,rdca:uZ,rdldhar:dZ,rdquo:fZ,rdquor:pZ,rdsh:mZ,real:hZ,realine:gZ,realpart:vZ,reals:_Z,Re:yZ,rect:CZ,reg:bZ,REG:kZ,ReverseElement:wZ,ReverseEquilibrium:EZ,ReverseUpEquilibrium:SZ,rfisht:xZ,rfloor:TZ,rfr:AZ,Rfr:NZ,rHar:DZ,rhard:$Z,rharu:BZ,rharul:MZ,Rho:LZ,rho:OZ,rhov:VZ,RightAngleBracket:IZ,RightArrowBar:PZ,rightarrow:FZ,RightArrow:RZ,Rightarrow:zZ,RightArrowLeftArrow:UZ,rightarrowtail:qZ,RightCeiling:HZ,RightDoubleBracket:jZ,RightDownTeeVector:WZ,RightDownVectorBar:ZZ,RightDownVector:KZ,RightFloor:GZ,rightharpoondown:YZ,rightharpoonup:JZ,rightleftarrows:XZ,rightleftharpoons:QZ,rightrightarrows:eK,rightsquigarrow:tK,RightTeeArrow:nK,RightTee:oK,RightTeeVector:rK,rightthreetimes:iK,RightTriangleBar:sK,RightTriangle:aK,RightTriangleEqual:lK,RightUpDownVector:cK,RightUpTeeVector:uK,RightUpVectorBar:dK,RightUpVector:fK,RightVectorBar:pK,RightVector:mK,ring:hK,risingdotseq:gK,rlarr:vK,rlhar:_K,rlm:yK,rmoustache:CK,rmoust:bK,rnmid:kK,roang:wK,roarr:EK,robrk:SK,ropar:xK,ropf:TK,Ropf:AK,roplus:NK,rotimes:DK,RoundImplies:$K,rpar:BK,rpargt:MK,rppolint:LK,rrarr:OK,Rrightarrow:VK,rsaquo:IK,rscr:PK,Rscr:FK,rsh:RK,Rsh:zK,rsqb:UK,rsquo:qK,rsquor:HK,rthree:jK,rtimes:WK,rtri:ZK,rtrie:KK,rtrif:GK,rtriltri:YK,RuleDelayed:JK,ruluhar:XK,rx:QK,Sacute:eG,sacute:tG,sbquo:nG,scap:oG,Scaron:rG,scaron:iG,Sc:sG,sc:aG,sccue:lG,sce:cG,scE:uG,Scedil:dG,scedil:fG,Scirc:pG,scirc:mG,scnap:hG,scnE:gG,scnsim:vG,scpolint:_G,scsim:yG,Scy:CG,scy:bG,sdotb:kG,sdot:wG,sdote:EG,searhk:SG,searr:xG,seArr:TG,searrow:AG,sect:NG,semi:DG,seswar:$G,setminus:BG,setmn:MG,sext:LG,Sfr:OG,sfr:VG,sfrown:IG,sharp:PG,SHCHcy:FG,shchcy:RG,SHcy:zG,shcy:UG,ShortDownArrow:qG,ShortLeftArrow:HG,shortmid:jG,shortparallel:WG,ShortRightArrow:ZG,ShortUpArrow:KG,shy:GG,Sigma:YG,sigma:JG,sigmaf:XG,sigmav:QG,sim:eY,simdot:tY,sime:nY,simeq:oY,simg:rY,simgE:iY,siml:sY,simlE:aY,simne:lY,simplus:cY,simrarr:uY,slarr:dY,SmallCircle:fY,smallsetminus:pY,smashp:mY,smeparsl:hY,smid:gY,smile:vY,smt:_Y,smte:yY,smtes:CY,SOFTcy:bY,softcy:kY,solbar:wY,solb:EY,sol:SY,Sopf:xY,sopf:TY,spades:AY,spadesuit:NY,spar:DY,sqcap:$Y,sqcaps:BY,sqcup:MY,sqcups:LY,Sqrt:OY,sqsub:VY,sqsube:IY,sqsubset:PY,sqsubseteq:FY,sqsup:RY,sqsupe:zY,sqsupset:UY,sqsupseteq:qY,square:HY,Square:jY,SquareIntersection:WY,SquareSubset:ZY,SquareSubsetEqual:KY,SquareSuperset:GY,SquareSupersetEqual:YY,SquareUnion:JY,squarf:XY,squ:QY,squf:eJ,srarr:tJ,Sscr:nJ,sscr:oJ,ssetmn:rJ,ssmile:iJ,sstarf:sJ,Star:aJ,star:lJ,starf:cJ,straightepsilon:uJ,straightphi:dJ,strns:fJ,sub:pJ,Sub:mJ,subdot:hJ,subE:gJ,sube:vJ,subedot:_J,submult:yJ,subnE:CJ,subne:bJ,subplus:kJ,subrarr:wJ,subset:EJ,Subset:SJ,subseteq:xJ,subseteqq:TJ,SubsetEqual:AJ,subsetneq:NJ,subsetneqq:DJ,subsim:$J,subsub:BJ,subsup:MJ,succapprox:LJ,succ:OJ,succcurlyeq:VJ,Succeeds:IJ,SucceedsEqual:PJ,SucceedsSlantEqual:FJ,SucceedsTilde:RJ,succeq:zJ,succnapprox:UJ,succneqq:qJ,succnsim:HJ,succsim:jJ,SuchThat:WJ,sum:ZJ,Sum:KJ,sung:GJ,sup1:YJ,sup2:JJ,sup3:XJ,sup:QJ,Sup:eX,supdot:tX,supdsub:nX,supE:oX,supe:rX,supedot:iX,Superset:sX,SupersetEqual:aX,suphsol:lX,suphsub:cX,suplarr:uX,supmult:dX,supnE:fX,supne:pX,supplus:mX,supset:hX,Supset:gX,supseteq:vX,supseteqq:_X,supsetneq:yX,supsetneqq:CX,supsim:bX,supsub:kX,supsup:wX,swarhk:EX,swarr:SX,swArr:xX,swarrow:TX,swnwar:AX,szlig:NX,Tab:DX,target:$X,Tau:BX,tau:MX,tbrk:LX,Tcaron:OX,tcaron:VX,Tcedil:IX,tcedil:PX,Tcy:FX,tcy:RX,tdot:zX,telrec:UX,Tfr:qX,tfr:HX,there4:jX,therefore:WX,Therefore:ZX,Theta:KX,theta:GX,thetasym:YX,thetav:JX,thickapprox:XX,thicksim:QX,ThickSpace:eQ,ThinSpace:tQ,thinsp:nQ,thkap:oQ,thksim:rQ,THORN:iQ,thorn:sQ,tilde:aQ,Tilde:lQ,TildeEqual:cQ,TildeFullEqual:uQ,TildeTilde:dQ,timesbar:fQ,timesb:pQ,times:mQ,timesd:hQ,tint:gQ,toea:vQ,topbot:_Q,topcir:yQ,top:CQ,Topf:bQ,topf:kQ,topfork:wQ,tosa:EQ,tprime:SQ,trade:xQ,TRADE:TQ,triangle:AQ,triangledown:NQ,triangleleft:DQ,trianglelefteq:$Q,triangleq:BQ,triangleright:MQ,trianglerighteq:LQ,tridot:OQ,trie:VQ,triminus:IQ,TripleDot:PQ,triplus:FQ,trisb:RQ,tritime:zQ,trpezium:UQ,Tscr:qQ,tscr:HQ,TScy:jQ,tscy:WQ,TSHcy:ZQ,tshcy:KQ,Tstrok:GQ,tstrok:YQ,twixt:JQ,twoheadleftarrow:XQ,twoheadrightarrow:QQ,Uacute:eee,uacute:tee,uarr:nee,Uarr:oee,uArr:ree,Uarrocir:iee,Ubrcy:see,ubrcy:aee,Ubreve:lee,ubreve:cee,Ucirc:uee,ucirc:dee,Ucy:fee,ucy:pee,udarr:mee,Udblac:hee,udblac:gee,udhar:vee,ufisht:_ee,Ufr:yee,ufr:Cee,Ugrave:bee,ugrave:kee,uHar:wee,uharl:Eee,uharr:See,uhblk:xee,ulcorn:Tee,ulcorner:Aee,ulcrop:Nee,ultri:Dee,Umacr:$ee,umacr:Bee,uml:Mee,UnderBar:Lee,UnderBrace:Oee,UnderBracket:Vee,UnderParenthesis:Iee,Union:Pee,UnionPlus:Fee,Uogon:Ree,uogon:zee,Uopf:Uee,uopf:qee,UpArrowBar:Hee,uparrow:jee,UpArrow:Wee,Uparrow:Zee,UpArrowDownArrow:Kee,updownarrow:Gee,UpDownArrow:Yee,Updownarrow:Jee,UpEquilibrium:Xee,upharpoonleft:Qee,upharpoonright:ete,uplus:tte,UpperLeftArrow:nte,UpperRightArrow:ote,upsi:rte,Upsi:ite,upsih:ste,Upsilon:ate,upsilon:lte,UpTeeArrow:cte,UpTee:ute,upuparrows:dte,urcorn:fte,urcorner:pte,urcrop:mte,Uring:hte,uring:gte,urtri:vte,Uscr:_te,uscr:yte,utdot:Cte,Utilde:bte,utilde:kte,utri:wte,utrif:Ete,uuarr:Ste,Uuml:xte,uuml:Tte,uwangle:Ate,vangrt:Nte,varepsilon:Dte,varkappa:$te,varnothing:Bte,varphi:Mte,varpi:Lte,varpropto:Ote,varr:Vte,vArr:Ite,varrho:Pte,varsigma:Fte,varsubsetneq:Rte,varsubsetneqq:zte,varsupsetneq:Ute,varsupsetneqq:qte,vartheta:Hte,vartriangleleft:jte,vartriangleright:Wte,vBar:Zte,Vbar:Kte,vBarv:Gte,Vcy:Yte,vcy:Jte,vdash:Xte,vDash:Qte,Vdash:ene,VDash:tne,Vdashl:nne,veebar:one,vee:rne,Vee:ine,veeeq:sne,vellip:ane,verbar:lne,Verbar:cne,vert:une,Vert:dne,VerticalBar:fne,VerticalLine:pne,VerticalSeparator:mne,VerticalTilde:hne,VeryThinSpace:gne,Vfr:vne,vfr:_ne,vltri:yne,vnsub:Cne,vnsup:bne,Vopf:kne,vopf:wne,vprop:Ene,vrtri:Sne,Vscr:xne,vscr:Tne,vsubnE:Ane,vsubne:Nne,vsupnE:Dne,vsupne:$ne,Vvdash:Bne,vzigzag:Mne,Wcirc:Lne,wcirc:One,wedbar:Vne,wedge:Ine,Wedge:Pne,wedgeq:Fne,weierp:Rne,Wfr:zne,wfr:Une,Wopf:qne,wopf:Hne,wp:jne,wr:Wne,wreath:Zne,Wscr:Kne,wscr:Gne,xcap:Yne,xcirc:Jne,xcup:Xne,xdtri:Qne,Xfr:eoe,xfr:toe,xharr:noe,xhArr:ooe,Xi:roe,xi:ioe,xlarr:soe,xlArr:aoe,xmap:loe,xnis:coe,xodot:uoe,Xopf:doe,xopf:foe,xoplus:poe,xotime:moe,xrarr:hoe,xrArr:goe,Xscr:voe,xscr:_oe,xsqcup:yoe,xuplus:Coe,xutri:boe,xvee:koe,xwedge:woe,Yacute:Eoe,yacute:Soe,YAcy:xoe,yacy:Toe,Ycirc:Aoe,ycirc:Noe,Ycy:Doe,ycy:$oe,yen:Boe,Yfr:Moe,yfr:Loe,YIcy:Ooe,yicy:Voe,Yopf:Ioe,yopf:Poe,Yscr:Foe,yscr:Roe,YUcy:zoe,yucy:Uoe,yuml:qoe,Yuml:Hoe,Zacute:joe,zacute:Woe,Zcaron:Zoe,zcaron:Koe,Zcy:Goe,zcy:Yoe,Zdot:Joe,zdot:Xoe,zeetrf:Qoe,ZeroWidthSpace:ere,Zeta:tre,zeta:nre,zfr:ore,Zfr:rre,ZHcy:ire,zhcy:sre,zigrarr:are,zopf:lre,Zopf:cre,Zscr:ure,zscr:dre,zwj:fre,zwnj:pre};var om=mre,mu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Zr={},Hd={};function hre(t){var e,n,o=Hd[t];if(o)return o;for(o=Hd[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 za(t,e,n){var o,i,s,a,l,c="";for(typeof e!="string"&&(n=e,e=za.defaultChars),typeof n>"u"&&(n=!0),l=hre(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}za.defaultChars=";/?:@&=+$,-_.!~*'()#";za.componentChars="-_.!~*'()";var gre=za,jd={};function vre(t){var e,n,o=jd[t];if(o)return o;for(o=jd[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 Ua(t,e){var n;return typeof e!="string"&&(e=Ua.defaultChars),n=vre(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var i,s,a,l,c,u,d,f="";for(i=0,s=o.length;i<s;i+=3){if(a=parseInt(o.slice(i+1,i+3),16),a<128){f+=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?f+="��":f+=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?f+="���":f+=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?f+="����":(d-=65536,f+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}f+="�"}return f})}Ua.defaultChars=";/?:@&=+$,#";Ua.componentChars="";var _re=Ua,yre=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 Cre=/^([a-z0-9.+-]+:)/i,bre=/:[0-9]*$/,kre=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,wre=["<",">",'"',"`"," ","\r",`
|
|
3
|
-
`," "],Ere=["{","}","|","\\","^","`"].concat(wre),Sre=["'"].concat(Ere),Wd=["%","/","?",";","#"].concat(Sre),Zd=["/","?","#"],xre=255,Kd=/^[+a-z0-9A-Z_-]{0,63}$/,
|
|
1
|
+
"use strict";var Qg=Object.defineProperty;var e0=(t,e,n)=>e in t?Qg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var H=(t,e,n)=>(e0(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),$r=require("vue-router"),ko=require("vuedraggable");const t0=r.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(r.openBlock(),r.createBlock(r.unref($r.RouterView),r.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),te=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n},n0={},o0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r0(t,e){return r.openBlock(),r.createElementBlock("svg",o0,[...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 i0=te(n0,[["render",r0]]),s0={},a0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l0(t,e){return r.openBlock(),r.createElementBlock("svg",a0,[...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 c0=te(s0,[["render",l0]]),u0={},d0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f0(t,e){return r.openBlock(),r.createElementBlock("svg",d0,[...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 p0=te(u0,[["render",f0]]),m0={},h0={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",h0,[...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 v0=te(m0,[["render",g0]]),_0={},y0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C0(t,e){return r.openBlock(),r.createElementBlock("svg",y0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const b0=te(_0,[["render",C0]]),k0={},w0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E0(t,e){return r.openBlock(),r.createElementBlock("svg",w0,[...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 S0=te(k0,[["render",E0]]),x0={},A0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T0(t,e){return r.openBlock(),r.createElementBlock("svg",A0,[...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 N0=te(x0,[["render",T0]]),D0={},$0={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",$0,[...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 M0=te(D0,[["render",B0]]),L0={},O0={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",O0,[...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 I0=te(L0,[["render",V0]]),P0={},F0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R0(t,e){return r.openBlock(),r.createElementBlock("svg",F0,[...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 z0=te(P0,[["render",R0]]),U0={},q0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H0(t,e){return r.openBlock(),r.createElementBlock("svg",q0,[...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 j0=te(U0,[["render",H0]]),W0={},Z0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K0(t,e){return r.openBlock(),r.createElementBlock("svg",Z0,[...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 G0=te(W0,[["render",K0]]),Y0={},J0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X0(t,e){return r.openBlock(),r.createElementBlock("svg",J0,[...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 Q0=te(Y0,[["render",X0]]),ev={},tv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nv(t,e){return r.openBlock(),r.createElementBlock("svg",tv,[...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 ov=te(ev,[["render",nv]]),rv={},iv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sv(t,e){return r.openBlock(),r.createElementBlock("svg",iv,[...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 av=te(rv,[["render",sv]]),lv={},cv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uv(t,e){return r.openBlock(),r.createElementBlock("svg",cv,[...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 dv=te(lv,[["render",uv]]),fv={},pv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mv(t,e){return r.openBlock(),r.createElementBlock("svg",pv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const hv=te(fv,[["render",mv]]),gv={},vv={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",vv,[...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 yv=te(gv,[["render",_v]]),Cv={},bv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function kv(t,e){return r.openBlock(),r.createElementBlock("svg",bv,[...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 wv=te(Cv,[["render",kv]]),Ev={},Sv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xv(t,e){return r.openBlock(),r.createElementBlock("svg",Sv,[...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 Av=te(Ev,[["render",xv]]),Tv={},Nv={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",Nv,[...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 $v=te(Tv,[["render",Dv]]),Bv={},Mv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lv(t,e){return r.openBlock(),r.createElementBlock("svg",Mv,[...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 Ov=te(Bv,[["render",Lv]]),Vv={},Iv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Pv(t,e){return r.openBlock(),r.createElementBlock("svg",Iv,[...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 Fv=te(Vv,[["render",Pv]]),Rv={},zv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Uv(t,e){return r.openBlock(),r.createElementBlock("svg",zv,[...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 qv=te(Rv,[["render",Uv]]),Hv={},jv={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",jv,[...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 Zv=te(Hv,[["render",Wv]]),Kv={},Gv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yv(t,e){return r.openBlock(),r.createElementBlock("svg",Gv,[...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 Jv=te(Kv,[["render",Yv]]),Xv={},Qv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e2(t,e){return r.openBlock(),r.createElementBlock("svg",Qv,[...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 t2=te(Xv,[["render",e2]]),n2={},o2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r2(t,e){return r.openBlock(),r.createElementBlock("svg",o2,[...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 i2=te(n2,[["render",r2]]),s2={},a2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l2(t,e){return r.openBlock(),r.createElementBlock("svg",a2,[...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 c2=te(s2,[["render",l2]]),u2={},d2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f2(t,e){return r.openBlock(),r.createElementBlock("svg",d2,[...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 p2=te(u2,[["render",f2]]),m2={},h2={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",h2,[...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 v2=te(m2,[["render",g2]]),_2={},y2={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",y2,[...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 b2=te(_2,[["render",C2]]),k2={},w2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E2(t,e){return r.openBlock(),r.createElementBlock("svg",w2,[...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 S2=te(k2,[["render",E2]]),x2={},A2={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",A2,[...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 N2=te(x2,[["render",T2]]),D2={},$2={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",$2,[...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 M2=te(D2,[["render",B2]]),L2={},O2={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",O2,[...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 I2=te(L2,[["render",V2]]),P2={},F2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R2(t,e){return r.openBlock(),r.createElementBlock("svg",F2,[...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 z2=te(P2,[["render",R2]]),U2={},q2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H2(t,e){return r.openBlock(),r.createElementBlock("svg",q2,[...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 j2=te(U2,[["render",H2]]),W2={},Z2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K2(t,e){return r.openBlock(),r.createElementBlock("svg",Z2,[...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 G2=te(W2,[["render",K2]]),Y2={},J2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X2(t,e){return r.openBlock(),r.createElementBlock("svg",J2,[...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 Q2=te(Y2,[["render",X2]]),e3={},t3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n3(t,e){return r.openBlock(),r.createElementBlock("svg",t3,[...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 o3=te(e3,[["render",n3]]),r3=r.defineComponent({name:"LoadingIcon"});const i3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function s3(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("svg",i3,[...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 a3=te(r3,[["render",s3],["__scopeId","data-v-ad6da4a9"]]),l3={},c3={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function u3(t,e){return r.openBlock(),r.createElementBlock("svg",c3,[...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 d3=te(l3,[["render",u3]]),f3={},p3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function m3(t,e){return r.openBlock(),r.createElementBlock("svg",p3,[...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 h3=te(f3,[["render",m3]]),g3={},v3={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",v3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const y3=te(g3,[["render",_3]]),C3={},b3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k3(t,e){return r.openBlock(),r.createElementBlock("svg",b3,[...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 w3=te(C3,[["render",k3]]),E3={},S3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function x3(t,e){return r.openBlock(),r.createElementBlock("svg",S3,[...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 A3=te(E3,[["render",x3]]),T3={},N3={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",N3,[...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 $3=te(T3,[["render",D3]]),B3={},M3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function L3(t,e){return r.openBlock(),r.createElementBlock("svg",M3,[...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 O3=te(B3,[["render",L3]]),V3={},I3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function P3(t,e){return r.openBlock(),r.createElementBlock("svg",I3,[...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 F3=te(V3,[["render",P3]]),R3={},z3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function U3(t,e){return r.openBlock(),r.createElementBlock("svg",z3,[...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 q3=te(R3,[["render",U3]]),H3={},j3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function W3(t,e){return r.openBlock(),r.createElementBlock("svg",j3,[...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 Z3=te(H3,[["render",W3]]),K3={},G3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Y3(t,e){return r.openBlock(),r.createElementBlock("svg",G3,[...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 J3=te(K3,[["render",Y3]]),X3={},Q3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e_(t,e){return r.openBlock(),r.createElementBlock("svg",Q3,[...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 t_=te(X3,[["render",e_]]),n_={},o_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r_(t,e){return r.openBlock(),r.createElementBlock("svg",o_,[...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 i_=te(n_,[["render",r_]]),s_={},a_={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l_(t,e){return r.openBlock(),r.createElementBlock("svg",a_,[...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 c_=te(s_,[["render",l_]]),u_={},d_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f_(t,e){return r.openBlock(),r.createElementBlock("svg",d_,[...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 p_=te(u_,[["render",f_]]),m_={},h_={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",h_,[...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 v_=te(m_,[["render",g_]]),__={},y_={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",y_,[...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 b_=te(__,[["render",C_]]),k_={},w_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function E_(t,e){return r.openBlock(),r.createElementBlock("svg",w_,[...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 S_=te(k_,[["render",E_]]),x_={},A_={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",A_,[...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 N_=te(x_,[["render",T_]]),D_={},$_={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",$_,[...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 M_=te(D_,[["render",B_]]),L_={},O_={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",O_,[...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 I_=te(L_,[["render",V_]]),P_={},F_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R_(t,e){return r.openBlock(),r.createElementBlock("svg",F_,[...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 z_=te(P_,[["render",R_]]),U_={},q_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H_(t,e){return r.openBlock(),r.createElementBlock("svg",q_,[...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 j_=te(U_,[["render",H_]]),W_={},Z_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K_(t,e){return r.openBlock(),r.createElementBlock("svg",Z_,[...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 G_=te(W_,[["render",K_]]),Y_={},J_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X_(t,e){return r.openBlock(),r.createElementBlock("svg",J_,[...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 Q_=te(Y_,[["render",X_]]),ey={},ty={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ny(t,e){return r.openBlock(),r.createElementBlock("svg",ty,[...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 oy=te(ey,[["render",ny]]),ry={},iy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sy(t,e){return r.openBlock(),r.createElementBlock("svg",iy,[...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 ay=te(ry,[["render",sy]]),ly={},cy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uy(t,e){return r.openBlock(),r.createElementBlock("svg",cy,[...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 dy=te(ly,[["render",uy]]),fy=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:i0,AccountCircle:c0,AccountTreeOutlineRounded:p0,AccountTreeRounded:v0,Add:b0,AddBoxOutlineRounded:S0,ArchiveOutlineRounded:N0,ArrowBackRounded:M0,ArrowDropDownRounded:I0,ArrowForwardRounded:z0,AssignmentOutlineRounded:j0,AttachFileRounded:G0,CalendarTodayOutlineRounded:Q0,CancelRounded:ov,ChatOutline:av,CheckBoxOutlineBlank:dv,CheckBoxOutlineBlankSharp:hv,CheckBoxOutlineRounded:yv,CheckSmallRounded:wv,ChecklistRounded:Av,ChevronLeft:$v,ChevronRight:Ov,CloseRounded:Fv,ContactsOutlineRounded:qv,ContentCopyOutline:Zv,DeleteOutlineRounded:Jv,DownloadRounded:t2,DragIndicator:i2,EditDocumentRounded:c2,EditOutline:p2,ErrorOutlineRounded:v2,FilterListRounded:b2,FlagRounded:S2,FlowsheetOutlineRounded:N2,GifBox:M2,GroupsOutline:I2,HomeOutlineRounded:z2,ImageRounded:j2,Info:G2,KeyboardArrowDown:Q2,KeyboardArrowUp:o3,Loading:a3,Lock:d3,LogoutRounded:h3,Menu:y3,MoreHoriz:w3,MoreTimeRounded:A3,MoreVert:$3,MountainFlagOutlineRounded:O3,PersonAddOutlineRounded:F3,PictureAsPdfRounded:q3,RadioButtonChecked:Z3,RadioButtonCheckedOutline:J3,RadioButtonUnchecked:t_,RemoveRounded:i_,SearchRounded:c_,SelectCheckBox:p_,SendRounded:v_,Settings:b_,SlideshowRounded:S_,Target:N_,TaskOutlineRounded:M_,TextSnippetRounded:I_,TimerOutline:z_,ViewComfyAltRounded:j_,ViewCompactAltRounded:G_,ViewTimelineRounded:Q_,WarningOutlineRounded:oy,WarningRounded:ay,WaterfallChartRounded:dy},Symbol.toStringTag,{value:"Module"})),py={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},Aa={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Jc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},my={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Jc,...my});const _p={ROUND:"round",ROUNDED:"rounded"},hy={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},ke=r.defineComponent({__name:"AoIcon",props:{name:{},size:{default:Aa.MD}},setup(t){const e=t,n=r.computed(()=>fy[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 gy=["type"],vy={key:0,class:"ao-button__label"},ue=r.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>py.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>Aa.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>_p.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",vy,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,gy))}});function _y(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}=_y(n),u=r.computed(()=>s.value?"input":o.tag||`h${o.level}`),d=r.computed(()=>o.isEditable?s.value?{change:f,click:y=>y.stopPropagation(),blur:m}:{click:g,focus:g}:{}),f=l((y,C)=>{const _=C.target.value;i("update:title",_)}),p=c(),m=async()=>{s.value&&a(!1)},h=()=>{i("toggle-is-editing",!1)},g=y=>{y.stopPropagation(),s.value||a(!0)};return r.watch(()=>o.isEditable,y=>{y||p()}),(y,C)=>(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(p),["esc"])}),{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}});const yy={key:0,class:"ao-card-horiz__drag ao-card__drag"},Cy={class:"ao-card-horiz__header"},by={key:0,class:"ao-card-horiz__avatar"},ky={class:"ao-card-horiz__title-group"},wy={key:0,class:"ao-card-horiz__subtitle"},Ey={key:1,class:"ao-card-horiz__header"},Sy={key:1,class:"ao-card-horiz__body"},xy={key:2,class:"ao-card-horiz__footer"},Ay={key:3,class:"ao-card-horiz__secondary"},yp=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",yy,[r.createVNode(ke,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):r.createCommentVNode("",!0),r.createElementVNode("div",Cy,[t.icon?(r.openBlock(),r.createElementBlock("div",by,[r.createVNode(ke,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):r.createCommentVNode("",!0),r.createElementVNode("div",ky,[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",wy,r.toDisplayString(t.subtitle),1)):r.createCommentVNode("",!0)])]),i.$slots.header?(r.openBlock(),r.createElementBlock("div",Ey,[r.renderSlot(i.$slots,"header")])):r.createCommentVNode("",!0)]),i.$slots.default?(r.openBlock(),r.createElementBlock("div",Sy,[r.renderSlot(i.$slots,"default")])):r.createCommentVNode("",!0),i.$slots.footer?(r.openBlock(),r.createElementBlock("div",xy,[r.renderSlot(i.$slots,"footer")])):r.createCommentVNode("",!0),i.$slots.secondary?(r.openBlock(),r.createElementBlock("div",Ay,[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(hy).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"},Ty={months:"months",weeks:"weeks",days:"days"},Ny={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},Cp={BEFORE:"before",AFTER:"after"},bp={START:"start",end:"end"},kp={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},Ze={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var wp=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(wp||{});const Dy={add:"add",remove:"remove",moved:"moved"};var Ep=(t=>(t.HOURS="hours",t.DAYS="days",t))(Ep||{});const so={project:"projectId",assignee:"assigneeId",sprint:"sprintId"};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 Zn(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 xt(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 $y(t,e){nt(2,arguments);var n=xt(t).getTime(),o=Zn(e);return new Date(n+o)}var By={};function Qi(){return By}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 wd(t){nt(1,arguments);var e=xt(t);return e.setHours(0,0,0,0),e}var My=864e5;function Ly(t,e){nt(2,arguments);var n=wd(t),o=wd(e),i=n.getTime()-Fi(n),s=o.getTime()-Fi(o);return Math.round((i-s)/My)}function Oy(t,e){nt(2,arguments);var n=xt(t),o=xt(e),i=n.getTime()-o.getTime();return i<0?-1:i>0?1:i}var Sp=6e4,xp=36e5;function Vy(t){return nt(1,arguments),t instanceof Date||Js(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Ap(t){if(nt(1,arguments),!Vy(t)&&typeof t!="number")return!1;var e=xt(t);return!isNaN(Number(e))}function cc(t,e){nt(2,arguments);var n=Zn(e);return $y(t,-n)}var Iy=864e5;function Py(t){nt(1,arguments);var e=xt(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/Iy)+1}function Xs(t){nt(1,arguments);var e=1,n=xt(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 Tp(t){nt(1,arguments);var e=xt(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 Fy(t){nt(1,arguments);var e=Tp(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Xs(n);return o}var Ry=6048e5;function zy(t){nt(1,arguments);var e=xt(t),n=Xs(e).getTime()-Fy(e).getTime();return Math.round(n/Ry)+1}function Qs(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=Qi(),f=Zn((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(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=xt(t),m=p.getUTCDay(),h=(m<f?7:0)+m-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function Np(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=xt(t),f=d.getUTCFullYear(),p=Qi(),m=Zn((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:p.firstWeekContainsDate)!==null&&o!==void 0?o:(c=p.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(f+1,0,m),h.setUTCHours(0,0,0,0);var g=Qs(h,e),y=new Date(0);y.setUTCFullYear(f,0,m),y.setUTCHours(0,0,0,0);var C=Qs(y,e);return d.getTime()>=g.getTime()?f+1:d.getTime()>=C.getTime()?f:f-1}function Uy(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=Qi(),f=Zn((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),p=Np(t,e),m=new Date(0);m.setUTCFullYear(p,0,f),m.setUTCHours(0,0,0,0);var h=Qs(m,e);return h}var qy=6048e5;function Hy(t,e){nt(1,arguments);var n=xt(t),o=Qs(n,e).getTime()-Uy(n,e).getTime();return Math.round(o/qy)+1}function Le(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var jy={y:function(e,n){var o=e.getUTCFullYear(),i=o>0?o:1-o;return Le(n==="yy"?i%100:i,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):Le(o+1,2)},d:function(e,n){return Le(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 Le(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Le(e.getUTCHours(),n.length)},m:function(e,n){return Le(e.getUTCMinutes(),n.length)},s:function(e,n){return Le(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 Le(s,n.length)}};const ro=jy;var mr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Wy={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 ro.y(e,n)},Y:function(e,n,o,i){var s=Np(e,i),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return Le(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):Le(a,n.length)},R:function(e,n){var o=Tp(e);return Le(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return Le(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 Le(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 Le(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 ro.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 Le(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=Hy(e,i);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):Le(s,n.length)},I:function(e,n,o){var i=zy(e);return n==="Io"?o.ordinalNumber(i,{unit:"week"}):Le(i,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):ro.d(e,n)},D:function(e,n,o){var i=Py(e);return n==="Do"?o.ordinalNumber(i,{unit:"dayOfYear"}):Le(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 Le(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 Le(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 Le(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=mr.noon:i===0?s=mr.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=mr.evening:i>=12?s=mr.afternoon:i>=4?s=mr.morning:s=mr.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 ro.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ro.H(e,n)},K:function(e,n,o){var i=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(i,{unit:"hour"}):Le(i,n.length)},k:function(e,n,o){var i=e.getUTCHours();return i===0&&(i=24),n==="ko"?o.ordinalNumber(i,{unit:"hour"}):Le(i,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ro.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ro.s(e,n)},S:function(e,n){return ro.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 Sd(a);case"XXXX":case"XX":return Lo(a);case"XXXXX":case"XXX":default:return Lo(a,":")}},x:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return Sd(a);case"xxxx":case"xx":return Lo(a);case"xxxxx":case"xxx":default:return Lo(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"+Ed(a,":");case"OOOO":default:return"GMT"+Lo(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"+Ed(a,":");case"zzzz":default:return"GMT"+Lo(a,":")}},t:function(e,n,o,i){var s=i._originalDate||e,a=Math.floor(s.getTime()/1e3);return Le(a,n.length)},T:function(e,n,o,i){var s=i._originalDate||e,a=s.getTime();return Le(a,n.length)}};function Ed(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+Le(s,2)}function Sd(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Le(Math.abs(t)/60,2)}return Lo(t,e)}function Lo(t,e){var n=e||"",o=t>0?"-":"+",i=Math.abs(t),s=Le(Math.floor(i/60),2),a=Le(i%60,2);return o+s+n+a}const Zy=Wy;var xd=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"})}},Dp=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"})}},Ky=function(e,n){var o=e.match(/(P+)(p+)?/)||[],i=o[1],s=o[2];if(!s)return xd(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}}",xd(i,n)).replace("{{time}}",Dp(s,n))},Gy={p:Dp,P:Ky};const Yy=Gy;var Jy=["D","DD"],Xy=["YY","YYYY"];function Qy(t){return Jy.indexOf(t)!==-1}function e5(t){return Xy.indexOf(t)!==-1}function Ad(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 t5={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"}},n5=function(e,n,o){var i,s=t5[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 o5=n5;function Cl(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 r5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},s5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a5={date:Cl({formats:r5,defaultWidth:"full"}),time:Cl({formats:i5,defaultWidth:"full"}),dateTime:Cl({formats:s5,defaultWidth:"full"})};const l5=a5;var c5={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u5=function(e,n,o,i){return c5[e]};const d5=u5;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 f5={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},p5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},m5={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"]},h5={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"]},g5={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"}},v5={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"}},_5=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"},y5={ordinalNumber:_5,era:fi({values:f5,defaultWidth:"wide"}),quarter:fi({values:p5,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:fi({values:m5,defaultWidth:"wide"}),day:fi({values:h5,defaultWidth:"wide"}),dayPeriod:fi({values:g5,defaultWidth:"wide",formattingValues:v5,defaultFormattingWidth:"wide"})};const C5=y5;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)?k5(l,function(f){return f.test(a)}):b5(l,function(f){return f.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 b5(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function k5(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function w5(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 E5=/^(\d+)(th|st|nd|rd)?/i,S5=/\d+/i,x5={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},A5={any:[/^b/i,/^(a|c)/i]},T5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},N5={any:[/1/i,/2/i,/3/i,/4/i]},D5={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},$5={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]},B5={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},M5={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]},L5={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},O5={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}},V5={ordinalNumber:w5({matchPattern:E5,parsePattern:S5,valueCallback:function(e){return parseInt(e,10)}}),era:pi({matchPatterns:x5,defaultMatchWidth:"wide",parsePatterns:A5,defaultParseWidth:"any"}),quarter:pi({matchPatterns:T5,defaultMatchWidth:"wide",parsePatterns:N5,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:pi({matchPatterns:D5,defaultMatchWidth:"wide",parsePatterns:$5,defaultParseWidth:"any"}),day:pi({matchPatterns:B5,defaultMatchWidth:"wide",parsePatterns:M5,defaultParseWidth:"any"}),dayPeriod:pi({matchPatterns:L5,defaultMatchWidth:"any",parsePatterns:O5,defaultParseWidth:"any"})};const I5=V5;var P5={code:"en-US",formatDistance:o5,formatLong:l5,formatRelative:d5,localize:C5,match:I5,options:{weekStartsOn:0,firstWeekContainsDate:1}};const $p=P5;var F5=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,R5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,z5=/^'([^]*?)'?$/,U5=/''/g,q5=/[a-zA-Z]/;function Xc(t,e,n){var o,i,s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,b;nt(2,arguments);var w=String(e),k=Qi(),T=(o=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:k.locale)!==null&&o!==void 0?o:$p,A=Zn((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:(f=k.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=Zn((m=(h=(g=(y=n==null?void 0:n.weekStartsOn)!==null&&y!==void 0?y:n==null||(C=n.locale)===null||C===void 0||(v=C.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&g!==void 0?g: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(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var E=xt(t);if(!Ap(E))throw new RangeError("Invalid time value");var D=Fi(E),x=cc(E,D),$={firstWeekContainsDate:A,weekStartsOn:S,locale:T,_originalDate:E},B=w.match(R5).map(function(V){var I=V[0];if(I==="p"||I==="P"){var j=Yy[I];return j(V,T.formatLong)}return V}).join("").match(F5).map(function(V){if(V==="''")return"'";var I=V[0];if(I==="'")return H5(V);var j=Zy[I];if(j)return!(n!=null&&n.useAdditionalWeekYearTokens)&&e5(V)&&Ad(V,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Qy(V)&&Ad(V,e,String(t)),j(x,V,T.localize,$);if(I.match(q5))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return V}).join("");return B}function H5(t){var e=t.match(z5);return e?e[1].replace(U5,"'"):t}function j5(t,e,n){var o,i,s,a,l,c,u,d,f,p;nt(2,arguments);var m=xt(t),h=xt(e),g=Qi(),y=(o=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:g.locale)!==null&&o!==void 0?o:$p,C=Zn((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:g.weekStartsOn)!==null&&a!==void 0?a:(f=g.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&s!==void 0?s:0);if(!y.localize)throw new RangeError("locale must contain localize property");if(!y.formatLong)throw new RangeError("locale must contain formatLong property");if(!y.formatRelative)throw new RangeError("locale must contain formatRelative property");var v=Ly(m,h);if(isNaN(v))throw new RangeError("Invalid time value");var _;v<-6?_="other":v<-1?_="lastWeek":v<0?_="yesterday":v<1?_="today":v<2?_="tomorrow":v<7?_="nextWeek":_="other";var b=cc(m,Fi(m)),w=cc(h,Fi(h)),k=y.formatRelative(_,b,w,{locale:y,weekStartsOn:C});return Xc(m,k,{locale:y,weekStartsOn:C})}function Br(t,e){var n;nt(1,arguments);var o=Zn((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=G5(t),s;if(i.date){var a=Y5(i.date,o);s=J5(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(i.time&&(c=X5(i.time),isNaN(c)))return new Date(NaN);if(i.timezone){if(u=Q5(i.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(l+c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}return new Date(l+c+u)}var xs={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},W5=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Z5=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,K5=/^([+-])(\d{2})(?::?(\d{2}))?$/;function G5(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 Y5(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 J5(t,e){if(e===null)return new Date(NaN);var n=t.match(W5);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 r7(e,l,c)?e7(e,l,c):new Date(NaN);var u=new Date(0);return!n7(e,s,a)||!o7(e,i)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(i,a)),u)}function mi(t){return t?parseInt(t):1}function X5(t){var e=t.match(Z5);if(!e)return NaN;var n=bl(e[1]),o=bl(e[2]),i=bl(e[3]);return i7(n,o,i)?n*xp+o*Sp+i*1e3:NaN}function bl(t){return t&&parseFloat(t.replace(",","."))||0}function Q5(t){if(t==="Z")return 0;var e=t.match(K5);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return s7(o,i)?n*(o*xp+i*Sp):NaN}function e7(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 t7=[31,null,31,30,31,30,31,31,30,31,30,31];function Bp(t){return t%400===0||t%4===0&&t%100!==0}function n7(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(t7[e]||(Bp(t)?29:28))}function o7(t,e){return e>=1&&e<=(Bp(t)?366:365)}function r7(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function i7(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function s7(t,e){return e>=0&&e<=59}var Nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function a7(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function l7(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={},Mp={},hi={},es={},Wr={},Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.lexoHelper=void 0;Ta.lexoHelper={arrayCopy:c7};function c7(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 u7{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=u7;Object.defineProperty(Wr,"__esModule",{value:!0});Wr.LexoInteger=void 0;const As=Ta,d7=ts;class ve{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 ve.make(n,i,s)}static zero(e){return new ve(e,0,ve.ZERO_MAG)}static one(e){return ve.make(e,1,ve.ONE_MAG)}static make(e,n,o){let i;for(i=o.length;i>0&&o[i-1]===0;--i);if(i===0)return ve.zero(e);if(i===o.length)return new ve(e,n,o);const s=new Array(i).fill(0);return As.lexoHelper.arrayCopy(o,0,s,0,i),new ve(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 ve.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=ve.complement(e,o,n.length),s=ve.add(e,n,i);return s[s.length-1]=0,ve.add(e,s,ve.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=ve.add(this.sys,this.mag,e.mag);return ve.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=ve.compare(this.mag,e.mag);return n===0?ve.zero(this.sys):n<0?ve.make(this.sys,this.sign===-1?1:-1,ve.subtract(this.sys,e.mag,this.mag)):ve.make(this.sys,this.sign===-1?-1:1,ve.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?ve.make(this.sys,1,e.mag):ve.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?ve.make(this.sys,1,this.mag):ve.make(this.sys,-1,this.mag);const n=ve.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?ve.make(this.sys,1,n):ve.make(this.sys,-1,n)}negate(){return this.isZero()?this:ve.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),ve.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return ve.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return As.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),ve.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return ve.make(this.sys,this.sign,ve.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=ve.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?ve.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 d7.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")}}Wr.LexoInteger=ve;ve.ZERO_MAG=[0];ve.ONE_MAG=[1];ve.NEGATIVE_SIGN=-1;ve.ZERO_SIGN=0;ve.POSITIVE_SIGN=1;Object.defineProperty(es,"__esModule",{value:!0});es.LexoDecimal=void 0;const gi=Wr,f7=ts;class Kt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Kt.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 Kt.make(gi.LexoInteger.parse(e,n),0);const i=e.substring(0,o)+e.substring(o+1);return Kt.make(gi.LexoInteger.parse(i,n),e.length-1-o)}static from(e){return Kt.make(e,0)}static make(e,n){if(e.isZero())return new Kt(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 Kt(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 Kt.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 Kt.make(n.subtract(i),o)}multiply(e){return Kt.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()))),Kt.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 f7.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=Kt;var Ts={},Td;function Lp(){if(Td)return Ts;Td=1,Object.defineProperty(Ts,"__esModule",{value:!0});const t=Wr,e=Vp();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 Qc={},Op={};Object.defineProperty(Op,"__esModule",{value:!0});var Na={};Object.defineProperty(Na,"__esModule",{value:!0});Na.LexoNumeralSystem10=void 0;class p7{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)}}Na.LexoNumeralSystem10=p7;var Da={};Object.defineProperty(Da,"__esModule",{value:!0});Da.LexoNumeralSystem36=void 0;class m7{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]}}Da.LexoNumeralSystem36=m7;var $a={};Object.defineProperty($a,"__esModule",{value:!0});$a.LexoNumeralSystem64=void 0;class h7{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]}}$a.LexoNumeralSystem64=h7;(function(t){var e=Nt&&Nt.__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=Nt&&Nt.__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(Op,t),n(Na,t),n(Da,t),n($a,t)})(Qc);var Nd;function Vp(){if(Nd)return hi;Nd=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.LexoRank=void 0;const t=es,e=Lp(),n=ts,o=Qc;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 f;for(let h=c.getScale();h>0;u=f){const g=h-1,y=c.setScale(g,!0);if(f=u.setScale(g,!1),y.compareTo(f)===0)return i.checkMid(a,l,y);if(y.compareTo(f)>0)break;h=g,c=y}let p=i.middleInternal(a,l,c,u),m;for(let h=p.getScale();h>0;h=m){m=h-1;const g=p.setScale(m);if(a.compareTo(g)>=0||g.compareTo(l)>=0)break;p=g}return p}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 f=u.setScale(d,!1);if(f.compareTo(a)>0)return f;const p=u.setScale(d,!0);if(p.compareTo(l)<0)return p}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=Nt&&Nt.__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=Nt&&Nt.__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(Vp(),t),n(Lp(),t),n(es,t),n(Wr,t)})(Mp);(function(t){var e=Nt&&Nt.__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=Nt&&Nt.__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(Mp,t),n(Qc,t)})(Xe);const Ei=60,g7=8,Dd=Ei*g7;function Ba(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/Dd),i=Math.floor(t%Dd/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 Ip(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 v7(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 _7(t){return(t==null?void 0:t.reduce((e,n)=>{var i;const o=(i=n.milestones)!=null&&i.length?Ip(n.milestones):0;return e+o},0))??0}function y7(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function ns(t,e){if(t.moved)return Mr(e,t.moved.newIndex)}function Mr(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 eu(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 Ma(t,e="dd/MM/yyyy"){if(!t)return"";const n=Br(t);return Ap(n)?Xc(n,e):""}function tu(t,e){return t.status.id===e.id}function C7(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!tu(n,e))}function b7(t,e){return{...t,status:C7(t,e)?Pi.done:Pi.todo}}const Pp=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function k7(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 w7(t,e=.15){var n;if(t.startsWith("#"))return k7(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 Fp(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function $d(t,e){const n=e.filter(i=>i.firstName||i.lastName).map(i=>({id:i.id,name:Fp(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 E7=["title"],S7={key:0,className:"ao-avatar__initials"},x7=["src"],Xn=r.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:Aa.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=y7(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",S7,r.toDisplayString(r.unref(s)),1)),t.avatarUrl?(r.openBlock(),r.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,x7)):r.createCommentVNode("",!0),t.isClosable?(r.openBlock(),r.createBlock(ue,{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,E7))}});const A7={class:"ao-card-template__subitems"},T7={class:"ao-card-template__subitem"},N7={class:"ao-card-template__subitem-number"},D7={class:"ao-card-template__subitem"},$7={class:"ao-card-template__subitem"},B7={class:"ao-card-template__body"},M7={class:"ao-card-template__col ao-card-template__col--phases"},L7={class:"ao-card-template__col-title"},O7={class:"ao-card-template__col-label"},V7={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},I7={class:"ao-card-template__footer"},P7={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},F7={class:"ao-card-template__col-title"},R7={class:"ao-card-template__col-label"},z7={class:"ao-card-template__col-body"},U7={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},q7={class:"ao-card-template__col-title"},H7={class:"ao-card-template__col-label"},j7={class:"ao-card-template__col-body"},W7={class:"ao-card-template-item__secondary"},kl=5,Z7=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,kl))??[]}),l=r.computed(()=>n.phases&&n.phases.length>kl?n.phases.length-kl:0);return(c,u)=>(r.openBlock(),r.createBlock(yp,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":i},r.createSlots({subtitle:r.withCtx(()=>[r.createElementVNode("ul",A7,[r.createElementVNode("li",T7,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",N7,r.toDisplayString(t.milestones),1)]),r.createElementVNode("li",D7,[r.createVNode(ke,{name:"TaskOutlineRounded",size:"sm"}),r.createElementVNode("span",$7,r.toDisplayString(t.activities),1)])])]),default:r.withCtx(()=>[r.createElementVNode("div",B7,[r.createElementVNode("div",M7,[r.createElementVNode("div",L7,[r.createVNode(ke,{name:"WaterfallChartRounded",size:"sm"}),r.createElementVNode("span",O7,r.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(r.openBlock(),r.createElementBlock("ul",V7,[(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",W7,[r.createVNode(ue,{"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",I7,[t.updatedAt?(r.openBlock(),r.createElementBlock("div",P7,[r.createElementVNode("div",F7,[r.createElementVNode("span",R7,r.toDisplayString(c.$t("template.updatedAt.label")),1)]),r.createElementVNode("div",z7,[r.createElementVNode("span",null,r.toDisplayString(t.updatedAt),1)])])):r.createCommentVNode("",!0),t.updatedBy?(r.openBlock(),r.createElementBlock("div",U7,[r.createElementVNode("div",q7,[r.createElementVNode("span",H7,r.toDisplayString(c.$t("template.updatedBy.label")),1)]),r.createElementVNode("div",j7,[r.createVNode(Xn,{"user-name":t.updatedBy},null,8,["user-name"])])])):r.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const K7={class:"ao-page-header"},G7={class:"ao-page-header-main"},Y7={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",K7,[r.createElementVNode("div",G7,[t.canGoBack?(r.openBlock(),r.createBlock(ue,{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",Y7,[r.renderSlot(e.$slots,"secondary")])):r.createCommentVNode("",!0)]))}});const J7=["type"],X7={key:0,class:"ao-button-card__label"},wo=r.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Jc.BLACK},size:{default:()=>Aa.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>_p.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",X7,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,J7))}});const Q7={class:"ao-card-template-item__footer"},eC={key:0,class:"ao-card-template-item__subitem"},tC={class:"ao-card-template-item__subitem-number"},nC={class:"ao-card-template-item__secondary"},nu=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(yp,{"onUpdate:title":o},{footer:r.withCtx(()=>[r.createElementVNode("ul",Q7,[(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",eC,[r.createVNode(ke,{name:s[u],size:"sm"},null,8,["name"]),r.createElementVNode("span",tC,r.toDisplayString(l.$props[u]),1)])):r.createCommentVNode("",!0)],64))),64))])]),secondary:r.withCtx(()=>[r.createElementVNode("div",nC,[r.createVNode(ue,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:r.withModifiers(a,["stop"])})])]),_:1}))}});const oC=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?Ip(e.milestones):0);return(i,s)=>(r.openBlock(),r.createBlock(nu,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"]))}}),rC=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(nu,{activities:n.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),iC={class:"ao-list__footer"},sC=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(ko),{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(rC,{id:d.id,key:d.id,title:d.name,activities:d.activities,"is-active":t.milestoneId===d.id,"is-draggable":!0,"onUpdate:title":f=>a({id:d.id,name:f}),onClick:f=>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",iC,[r.createVNode(wo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:i},null,8,["label"])])]),_:1},8,["model-value","title"])):r.createCommentVNode("",!0)}}),aC=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(nu,{tasks:n.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),lC={class:"ao-list__footer"},cC=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(ko),{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(aC,{id:d.id,key:d.id,title:d.name,tasks:d.tasks,"is-active":t.activityId===d.id,"is-draggable":!0,"onUpdate:title":f=>s({id:d.id,name:f}),onClick:f=>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",lC,[r.createVNode(wo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:i},null,8,["label"])])]),_:1},8,["model-value","title"])):r.createCommentVNode("",!0)}}),uC={class:"ao-modal"},dC={key:0,class:"ao-modal__header"},fC={class:"ao-modal__header-meta"},pC={class:"ao-modal__title-group"},mC={class:"ao-modal__body"},hC={key:1,class:"ao-modal__footer"},La=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",uC,[e.$slots.header?(r.openBlock(),r.createElementBlock("div",dC,[r.createElementVNode("div",fC,[r.createVNode(ue,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),r.createElementVNode("header",pC,[r.renderSlot(e.$slots,"header")])])):r.createCommentVNode("",!0),r.createElementVNode("div",mC,[r.renderSlot(e.$slots,"default")]),e.$slots.footer?(r.openBlock(),r.createElementBlock("footer",hC,[r.renderSlot(e.$slots,"footer")])):r.createCommentVNode("",!0)])],2))}});const Ri=Math.min,Gt=Math.max,ea=Math.round,Ns=Math.floor,vo=t=>({x:t,y:t}),gC={left:"right",right:"left",bottom:"top",top:"bottom"},vC={start:"end",end:"start"};function ou(t,e){return typeof t=="function"?t(e):t}function Lr(t){return t.split("-")[0]}function Oa(t){return t.split("-")[1]}function _C(t){return t==="x"?"y":"x"}function Rp(t){return t==="y"?"height":"width"}function ru(t){return["top","bottom"].includes(Lr(t))?"y":"x"}function zp(t){return _C(ru(t))}function yC(t,e,n){n===void 0&&(n=!1);const o=Oa(t),i=zp(t),s=Rp(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 CC(t){const e=ta(t);return[uc(t),e,uc(e)]}function uc(t){return t.replace(/start|end/g,e=>vC[e])}function bC(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 kC(t,e,n,o){const i=Oa(t);let s=bC(Lr(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(uc)))),s}function ta(t){return t.replace(/left|right|bottom|top/g,e=>gC[e])}function wC(t){return{top:0,right:0,bottom:0,left:0,...t}}function EC(t){return typeof t!="number"?wC(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 Bd(t,e,n){let{reference:o,floating:i}=t;const s=ru(e),a=zp(e),l=Rp(a),c=Lr(e),u=s==="y",d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=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:f};break;case"left":m={x:o.x-i.width,y:f};break;default:m={x:o.x,y:o.y}}switch(Oa(e)){case"start":m[a]-=p*(n&&u?-1:1);break;case"end":m[a]+=p*(n&&u?-1:1);break}return m}const SC=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:f}=Bd(u,o,c),p=o,m={},h=0;for(let g=0;g<l.length;g++){const{name:y,fn:C}=l[g],{x:v,y:_,data:b,reset:w}=await C({x:d,y:f,initialPlacement:o,placement:p,strategy:i,middlewareData:m,rects:u,platform:a,elements:{reference:t,floating:e}});if(d=v??d,f=_??f,m={...m,[y]:{...m[y],...b}},w&&h<=50){h++,typeof w=="object"&&(w.placement&&(p=w.placement),w.rects&&(u=w.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):w.rects),{x:d,y:f}=Bd(u,p,c)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:i,middlewareData:m}};async function Up(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:f="floating",altBoundary:p=!1,padding:m=0}=ou(e,t),h=EC(m),y=l[p?f==="floating"?"reference":"floating":f],C=na(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),v=f==="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:v,offsetParent:_,strategy:c}):v);return{top:(C.top-w.top+h.top)/b.y,bottom:(w.bottom-C.bottom+h.bottom)/b.y,left:(C.left-w.left+h.left)/b.x,right:(w.right-C.right+h.right)/b.x}}const xC=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:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...y}=ou(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Lr(i),v=Lr(l)===l,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),b=p||(v||!g?[ta(l)]:CC(l));!p&&h!=="none"&&b.push(...kC(l,g,h,_));const w=[l,...b],k=await Up(e,y),T=[];let A=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&T.push(k[C]),f){const x=yC(i,a,_);T.push(k[x[0]],k[x[1]])}if(A=[...A,{placement:i,overflows:T}],!T.every(x=>x<=0)){var S,E;const x=(((S=s.flip)==null?void 0:S.index)||0)+1,$=w[x];if($)return{data:{index:x,overflows:A},reset:{placement:$}};let B=(E=A.filter(V=>V.overflows[0]<=0).sort((V,I)=>V.overflows[1]-I.overflows[1])[0])==null?void 0:E.placement;if(!B)switch(m){case"bestFit":{var D;const V=(D=A.map(I=>[I.placement,I.overflows.filter(j=>j>0).reduce((j,F)=>j+F,0)]).sort((I,j)=>I[1]-j[1])[0])==null?void 0:D[0];V&&(B=V);break}case"initialPlacement":B=l;break}if(i!==B)return{reset:{placement:B}}}return{}}}},AC=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}=ou(t,e),c=await Up(e,l),u=Lr(n),d=Oa(n),f=ru(n)==="y",{width:p,height:m}=o.floating;let h,g;u==="top"||u==="bottom"?(h=u,g=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,h=d==="end"?"top":"bottom");const y=m-c[h],C=p-c[g],v=!e.middlewareData.shift;let _=y,b=C;if(f){const k=p-c.left-c.right;b=d||v?Ri(C,k):k}else{const k=m-c.top-c.bottom;_=d||v?Ri(y,k):k}if(v&&!d){const k=Gt(c.left,0),T=Gt(c.right,0),A=Gt(c.top,0),S=Gt(c.bottom,0);f?b=p-2*(k!==0||T!==0?k+T:Gt(c.left,c.right)):_=m-2*(A!==0||S!==0?A+S:Gt(c.top,c.bottom))}await a({...e,availableWidth:b,availableHeight:_});const w=await i.getDimensions(s.floating);return p!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function _o(t){return qp(t)?(t.nodeName||"").toLowerCase():"#document"}function zt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Qn(t){var e;return(e=(qp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qp(t){return t instanceof Node||t instanceof zt(t).Node}function Kn(t){return t instanceof Element||t instanceof zt(t).Element}function Tn(t){return t instanceof HTMLElement||t instanceof zt(t).HTMLElement}function Md(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof zt(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 TC(t){return["table","td","th"].includes(_o(t))}function iu(t){const e=su(),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 NC(t){let e=Or(t);for(;Tn(e)&&!Va(e);){if(iu(e))return e;e=Or(e)}return null}function su(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Va(t){return["html","body","#document"].includes(_o(t))}function tn(t){return zt(t).getComputedStyle(t)}function Ia(t){return Kn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Or(t){if(_o(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Md(t)&&t.host||Qn(t);return Md(e)?e.host:e}function Hp(t){const e=Or(t);return Va(e)?t.ownerDocument?t.ownerDocument.body:t.body:Tn(e)&&is(e)?e:Hp(e)}function zi(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Hp(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=zt(i);return s?e.concat(a,a.visualViewport||[],is(i)?i:[],a.frameElement&&n?zi(a.frameElement):[]):e.concat(i,zi(i))}function jp(t){const e=tn(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=Tn(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 au(t){return Kn(t)?t:t.contextElement}function Er(t){const e=au(t);if(!Tn(e))return vo(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=jp(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 DC=vo(0);function Wp(t){const e=zt(t);return!su()||!e.visualViewport?DC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function $C(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==zt(t)?!1:e}function Ko(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=au(t);let a=vo(1);e&&(o?Kn(o)&&(a=Er(o)):a=Er(t));const l=$C(s,n,o)?Wp(s):vo(0);let c=(i.left+l.x)/a.x,u=(i.top+l.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(s){const p=zt(s),m=o&&Kn(o)?zt(o):o;let h=p.frameElement;for(;h&&o&&m!==p;){const g=Er(h),y=h.getBoundingClientRect(),C=tn(h),v=y.left+(h.clientLeft+parseFloat(C.paddingLeft))*g.x,_=y.top+(h.clientTop+parseFloat(C.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,f*=g.y,c+=v,u+=_,h=zt(h).frameElement}}return na({width:d,height:f,x:c,y:u})}function BC(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=Tn(n),s=Qn(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=vo(1);const c=vo(0);if((i||!i&&o!=="fixed")&&((_o(n)!=="body"||is(s))&&(a=Ia(n)),Tn(n))){const u=Ko(n);l=Er(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 MC(t){return Array.from(t.getClientRects())}function Zp(t){return Ko(Qn(t)).left+Ia(t).scrollLeft}function LC(t){const e=Qn(t),n=Ia(t),o=t.ownerDocument.body,i=Gt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Gt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Zp(t);const l=-n.scrollTop;return tn(o).direction==="rtl"&&(a+=Gt(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:l}}function OC(t,e){const n=zt(t),o=Qn(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=su();(!u||u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l,y:c}}function VC(t,e){const n=Ko(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=Tn(t)?Er(t):vo(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 Ld(t,e,n){let o;if(e==="viewport")o=OC(t,n);else if(e==="document")o=LC(Qn(t));else if(Kn(e))o=VC(e,n);else{const i=Wp(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return na(o)}function Kp(t,e){const n=Or(t);return n===e||!Kn(n)||Va(n)?!1:tn(n).position==="fixed"||Kp(n,e)}function IC(t,e){const n=e.get(t);if(n)return n;let o=zi(t,[],!1).filter(l=>Kn(l)&&_o(l)!=="body"),i=null;const s=tn(t).position==="fixed";let a=s?Or(t):t;for(;Kn(a)&&!Va(a);){const l=tn(a),c=iu(a);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||is(a)&&!c&&Kp(t,a))?o=o.filter(d=>d!==a):i=l,a=Or(a)}return e.set(t,o),o}function PC(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?IC(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((u,d)=>{const f=Ld(e,d,i);return u.top=Gt(f.top,u.top),u.right=Ri(f.right,u.right),u.bottom=Ri(f.bottom,u.bottom),u.left=Gt(f.left,u.left),u},Ld(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function FC(t){return jp(t)}function RC(t,e,n){const o=Tn(e),i=Qn(e),s=n==="fixed",a=Ko(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=vo(0);if(o||!o&&!s)if((_o(e)!=="body"||is(i))&&(l=Ia(e)),o){const u=Ko(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else i&&(c.x=Zp(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Od(t,e){return!Tn(t)||tn(t).position==="fixed"?null:e?e(t):t.offsetParent}function Gp(t,e){const n=zt(t);if(!Tn(t))return n;let o=Od(t,e);for(;o&&TC(o)&&tn(o).position==="static";)o=Od(o,e);return o&&(_o(o)==="html"||_o(o)==="body"&&tn(o).position==="static"&&!iu(o))?n:o||NC(t)||n}const zC=async function(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||Gp,s=this.getDimensions;return{reference:RC(e,await i(n),o),floating:{x:0,y:0,...await s(n)}}};function UC(t){return tn(t).direction==="rtl"}const qC={convertOffsetParentRelativeRectToViewportRelativeRect:BC,getDocumentElement:Qn,getClippingRect:PC,getOffsetParent:Gp,getElementRects:zC,getClientRects:MC,getDimensions:FC,getScale:Er,isElement:Kn,isRTL:UC};function HC(t,e){let n=null,o;const i=Qn(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:f,height:p}=t.getBoundingClientRect();if(l||e(),!f||!p)return;const m=Ns(d),h=Ns(i.clientWidth-(u+f)),g=Ns(i.clientHeight-(d+p)),y=Ns(u),v={rootMargin:-m+"px "+-h+"px "+-g+"px "+-y+"px",threshold:Gt(0,Ri(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,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(t)}return a(!0),s}function jC(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=au(t),d=i||s?[...u?zi(u):[],...zi(e)]:[];d.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const f=u&&l?HC(u,n):null;let p=-1,m=null;a&&(m=new ResizeObserver(C=>{let[v]=C;v&&v.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{m&&m.observe(e)})),n()}),u&&!c&&m.observe(u),m.observe(e));let h,g=c?Ko(t):null;c&&y();function y(){const C=Ko(t);g&&(C.x!==g.x||C.y!==g.y||C.width!==g.width||C.height!==g.height)&&n(),g=C,h=requestAnimationFrame(y)}return n(),()=>{d.forEach(C=>{i&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),f&&f(),m&&m.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const WC=(t,e,n)=>{const o=new Map,i={platform:qC,...n},s={...i.platform,_c:o};return SC(t,e,{...i,platform:s})},ZC=t=>{const e=r.ref(!1),n=r.ref(),o=r.ref(),i=r.ref(0);function s(){const f=r.unref(t.appendTo);return f?typeof f=="string"?document.getElementById(f)??document.body:f:document.getElementById("floatingElements")??document.body}const a=s(),l=r.ref(()=>{});function c(f){f.relatedTarget&&o.value&&o.value.contains(f.relatedTarget)||t.multiselect.value.deactivate()}function u(){const f=t.multiselect.value.$el,p=f.querySelector(".multiselect-dropdown");if(!p||!f||e.value===!0)return;o.value=p,n.value=f,getComputedStyle(p).getPropertyValue("display")==="none"&&(p.style.display="flex"),i.value=p.offsetHeight,p.style.removeProperty("display"),Object.assign(p.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),a.appendChild(p),t.multiselect.value.handleFocusOut=c;const h=jC(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),h()}}function d(){!o.value||!n.value||WC(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[xC({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),AC({apply({availableWidth:f,availableHeight:p,elements:m,rects:h}){Object.assign(m.floating.style,{minHeight:`${i.value}px`,width:`${h.reference.width}px`,maxWidth:`${f}px`,maxHeight:`${p}px`})}})]}).then(({x:f,y:p})=>{Object.assign(o.value.style,{left:`${f}px`,top:`${p}px`})})}r.onMounted(()=>{u()}),r.onBeforeUnmount(()=>{l.value()}),r.onUnmounted(()=>{l.value()})};function Cn(t){return[null,void 0].indexOf(t)!==-1}function KC(t,e,n){const{object:o,valueProp:i,mode:s}=r.toRefs(t),a=r.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=d(f);const m=u(f);e.emit("change",m,a),p&&(e.emit("input",m),e.emit("update:modelValue",m))},u=f=>o.value||Cn(f)?f:Array.isArray(f)?f.map(p=>p[i.value]):f[i.value],d=f=>Cn(f)?s.value==="single"?{}:[]:f;return{update:c}}function GC(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 YC(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=p=>{l.value=p.target.value},d=p=>{if(o&&o.value){let m=o.value;typeof m=="string"&&(m=new RegExp(m)),p.key.match(m)||p.preventDefault()}},f=p=>{if(o&&o.value){let h=(p.clipboardData||window.clipboardData).getData("Text"),g=o.value;typeof g=="string"&&(g=new RegExp(g)),h.split("").every(y=>!!y.match(g))||p.preventDefault()}e.emit("paste",p,i)};return r.watch(l,p=>{!s.value&&p&&a(),e.emit("search-change",p,i)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function JC(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 wl(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 XC(t){return Object.prototype.toString.call(t)==="[object Object]"}function QC(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,i){return o===n[i]})}function eb(t,e,n){const{options:o,mode:i,trackBy:s,limit:a,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:f,appendNewOption:p,multipleLabel:m,object:h,loading:g,delay:y,resolveOnLoad:C,minChars:v,filterResults:_,clearOnSearch:b,clearOnSelect:w,valueProp:k,allowAbsent:T,groupLabel:A,canDeselect:S,max:E,strict:D,closeOnSelect:x,closeOnDeselect:$,groups:B,reverse:V,infinite:I,groupOptions:j,groupHideEmpty:F,groupSelect:q,onCreate:Q,disabledProp:ae,searchStart:ne,searchFilter:ye}=r.toRefs(t),re=r.getCurrentInstance().proxy,ie=n.iv,U=n.ev,P=n.search,se=n.clearSearch,we=n.update,Re=n.pointer,Ce=n.setPointer,R=n.clearPointer,le=n.focus,ge=n.deactivate,me=n.close,Ee=n.localize,ze=r.ref([]),Be=r.ref([]),Te=r.ref(!1),Ie=r.ref(null),Pe=r.ref(I.value&&a.value===-1?10:a.value),dt=r.computed(()=>c.value||u.value||!1),Ln=r.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),He=r.computed(()=>{if(B.value){let M=Bt.value||[],Y=[];return M.forEach(be=>{si(be[j.value]).forEach(je=>{Y.push(Object.assign({},je,be[ae.value]?{[ae.value]:!0}:{}))})}),Y}else{let M=si(Be.value||[]);return ze.value.length&&(M=M.concat(ze.value)),M}}),_t=r.computed(()=>{let M=He.value;return V.value&&(M=M.reverse()),Ue.value.length&&(M=Ue.value.concat(M)),ii(M)}),it=r.computed(()=>{let M=_t.value;return Pe.value>0&&(M=M.slice(0,Pe.value)),M}),Bt=r.computed(()=>{if(!B.value)return[];let M=[],Y=Be.value||[];return ze.value.length&&M.push({[A.value]:" ",[j.value]:[...ze.value],__CREATE__:!0}),M.concat(Y)}),Zt=r.computed(()=>{let M=[...Bt.value].map(Y=>({...Y}));return Ue.value.length&&(M[0]&&M[0].__CREATE__?M[0][j.value]=[...Ue.value,...M[0][j.value]]:M=[{[A.value]:" ",[j.value]:[...Ue.value],__CREATE__:!0}].concat(M)),M}),_n=r.computed(()=>{if(!B.value)return[];let M=Zt.value;return No((M||[]).map((Y,be)=>{const je=si(Y[j.value]);return{...Y,index:be,group:!0,[j.value]:ii(je,!1).map(In=>Object.assign({},In,Y[ae.value]?{[ae.value]:!0}:{})),__VISIBLE__:ii(je).map(In=>Object.assign({},In,Y[ae.value]?{[ae.value]:!0}:{}))}}))}),On=r.computed(()=>{switch(i.value){case"single":return!Cn(ie.value[k.value]);case"multiple":case"tags":return!Cn(ie.value)&&ie.value.length>0}}),L=r.computed(()=>m!==void 0&&m.value!==void 0?m.value(ie.value,re):ie.value&&ie.value.length>1?`${ie.value.length} options selected`:"1 option selected"),K=r.computed(()=>!He.value.length&&!Te.value&&!Ue.value.length),fe=r.computed(()=>He.value.length>0&&it.value.length==0&&(P.value&&B.value||!B.value)),Ue=r.computed(()=>dt.value===!1||!P.value?[]:Cs(P.value)!==-1?[]:[{[k.value]:P.value,[Je.value[0]]:P.value,[d.value]:P.value,__CREATE__:!0}]),Je=r.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),Vn=r.computed(()=>{switch(i.value){case"single":return null;case"multiple":case"tags":return[]}}),Se=r.computed(()=>g.value||Te.value),Mt=M=>{switch(typeof M!="object"&&(M=It(M)),i.value){case"single":we(M);break;case"multiple":case"tags":we(ie.value.concat(M));break}e.emit("select",Lt(M),M,re)},kt=M=>{switch(typeof M!="object"&&(M=It(M)),i.value){case"single":ni();break;case"tags":case"multiple":we(Array.isArray(M)?ie.value.filter(Y=>M.map(be=>be[k.value]).indexOf(Y[k.value])===-1):ie.value.filter(Y=>Y[k.value]!=M[k.value]));break}e.emit("deselect",Lt(M),M,re)},Lt=M=>h.value?M:M[k.value],ur=M=>{kt(M)},_s=(M,Y)=>{if(Y.button!==0){Y.preventDefault();return}ur(M)},ni=()=>{we(Vn.value),e.emit("clear",re)},Ot=M=>{if(M.group!==void 0)return i.value==="single"?!1:ys(M[j.value])&&M[j.value].length;switch(i.value){case"single":return!Cn(ie.value)&&ie.value[k.value]==M[k.value];case"tags":case"multiple":return!Cn(ie.value)&&ie.value.map(Y=>Y[k.value]).indexOf(M[k.value])!==-1}},dr=M=>M[ae.value]===!0,to=()=>E===void 0||E.value===-1||!On.value&&E.value>0?!1:ie.value.length>=E.value,fr=M=>{if(!dr(M)){if(Q&&Q.value&&!Ot(M)&&M.__CREATE__&&(M={...M},delete M.__CREATE__,M=Q.value(M,re),M instanceof Promise)){Te.value=!0,M.then(Y=>{Te.value=!1,Vt(Y)});return}Vt(M)}},Vt=M=>{switch(M.__CREATE__&&(M={...M},delete M.__CREATE__),i.value){case"single":if(M&&Ot(M)){S.value&&kt(M),$.value&&(R(),me());return}M&&To(M),w.value&&se(),x.value&&(R(),me()),M&&Mt(M);break;case"multiple":if(M&&Ot(M)){kt(M),$.value&&(R(),me());return}if(to()){e.emit("max",re);return}M&&(To(M),Mt(M)),w.value&&se(),l.value&&R(),x.value&&me();break;case"tags":if(M&&Ot(M)){kt(M),$.value&&(R(),me());return}if(to()){e.emit("max",re);return}M&&To(M),w.value&&se(),M&&Mt(M),l.value&&R(),x.value&&me();break}x.value||le()},no=M=>{if(!(dr(M)||i.value==="single"||!q.value)){switch(i.value){case"multiple":case"tags":hl(M[j.value])?kt(M[j.value]):Mt(M[j.value].filter(Y=>ie.value.map(be=>be[k.value]).indexOf(Y[k.value])===-1).filter(Y=>!Y[ae.value]).filter((Y,be)=>ie.value.length+1+be<=E.value||E.value===-1)),l.value&&Re.value&&Ce(_n.value.filter(Y=>!Y[ae.value])[Re.value.index]);break}x.value&&ge()}},To=M=>{It(M[k.value])===void 0&&dt.value&&(e.emit("tag",M[k.value],re),e.emit("option",M[k.value],re),e.emit("create",M[k.value],re),Ln.value&&gl(M),se())},oi=()=>{i.value!=="single"&&Mt(it.value.filter(M=>!M.disabled&&!Ot(M)))},hl=M=>M.find(Y=>!Ot(Y)&&!Y[ae.value])===void 0,ys=M=>M.find(Y=>!Ot(Y))===void 0,It=M=>He.value[He.value.map(Y=>String(Y[k.value])).indexOf(String(M))],Cs=M=>He.value.findIndex(Y=>Je.value.some(be=>(parseInt(Y[be])==Y[be]?parseInt(Y[be]):Y[be])===(parseInt(M)==M?parseInt(M):M))),ri=M=>["tags","multiple"].indexOf(i.value)!==-1&&l.value&&Ot(M),gl=M=>{ze.value.push(M)},No=M=>F.value?M.filter(Y=>P.value?Y.__VISIBLE__.length:Y[j.value].length):M.filter(Y=>P.value?Y.__VISIBLE__.length:!0),ii=(M,Y=!0)=>{let be=M;if(P.value&&_.value){let je=ye.value;je||(je=(In,sn,ci)=>Je.value.some(Pn=>{let ks=wl(Ee(In[Pn]),D.value);return ne.value?ks.startsWith(wl(sn,D.value)):ks.indexOf(wl(sn,D.value))!==-1})),be=be.filter(In=>je(In,P.value,re))}return l.value&&Y&&(be=be.filter(je=>!ri(je))),be},si=M=>{let Y=M;return XC(Y)&&(Y=Object.keys(Y).map(be=>{let je=Y[be];return{[k.value]:be,[Je.value[0]]:je,[d.value]:je}})),Y=Y.map(be=>typeof be=="object"?be:{[k.value]:be,[Je.value[0]]:be,[d.value]:be}),Y},Oe=()=>{Cn(U.value)||(ie.value=oo(U.value))},rn=M=>(Te.value=!0,new Promise((Y,be)=>{o.value(P.value,re).then(je=>{Be.value=je||[],typeof M=="function"&&M(je),Te.value=!1}).catch(je=>{console.error(je),Be.value=[],Te.value=!1}).finally(()=>{Y()})})),ai=()=>{if(On.value)if(i.value==="single"){let M=It(ie.value[k.value]);if(M!==void 0){let Y=M[d.value];ie.value[d.value]=Y,h.value&&(U.value[d.value]=Y)}}else ie.value.forEach((M,Y)=>{let be=It(ie.value[Y][k.value]);if(be!==void 0){let je=be[d.value];ie.value[Y][d.value]=je,h.value&&(U.value[Y][d.value]=je)}})},bs=M=>{rn(M)},oo=M=>Cn(M)?i.value==="single"?{}:[]:h.value?M:i.value==="single"?It(M)||(T.value?{[d.value]:M,[k.value]:M,[Je.value[0]]:M}:{}):M.filter(Y=>!!It(Y)||T.value).map(Y=>It(Y)||{[d.value]:Y,[k.value]:Y,[Je.value[0]]:Y}),li=()=>{Ie.value=r.watch(P,M=>{M.length<v.value||!M&&v.value!==0||(Te.value=!0,b.value&&(Be.value=[]),setTimeout(()=>{M==P.value&&o.value(P.value,re).then(Y=>{(M==P.value||!P.value)&&(Be.value=Y,Re.value=it.value.filter(be=>be[ae.value]!==!0)[0]||null,Te.value=!1)}).catch(Y=>{console.error(Y)})},y.value))},{flush:"sync"})};if(i.value!=="single"&&!Cn(U.value)&&!Array.isArray(U.value))throw new Error(`v-model must be an array when using "${i.value}" mode`);return o&&typeof o.value=="function"?C.value?rn(Oe):h.value==!0&&Oe():(Be.value=o.value,Oe()),y.value>-1&&li(),r.watch(y,(M,Y)=>{Ie.value&&Ie.value(),M>=0&&li()}),r.watch(U,M=>{if(Cn(M)){we(oo(M),!1);return}switch(i.value){case"single":(h.value?M[k.value]!=ie.value[k.value]:M!=ie.value[k.value])&&we(oo(M),!1);break;case"multiple":case"tags":QC(h.value?M.map(Y=>Y[k.value]):M,ie.value.map(Y=>Y[k.value]))||we(oo(M),!1);break}},{deep:!0}),r.watch(o,(M,Y)=>{typeof t.options=="function"?C.value&&(!Y||M&&M.toString()!==Y.toString())&&rn():(Be.value=t.options,Object.keys(ie.value).length||Oe(),ai())}),r.watch(d,ai),r.watch(a,(M,Y)=>{Pe.value=I.value&&M===-1?10:M}),{pfo:_t,fo:it,filteredOptions:it,hasSelected:On,multipleLabelText:L,eo:He,extendedOptions:He,eg:Bt,extendedGroups:Bt,fg:_n,filteredGroups:_n,noOptions:K,noResults:fe,resolving:Te,busy:Se,offset:Pe,select:Mt,deselect:kt,remove:ur,selectAll:oi,clear:ni,isSelected:Ot,isDisabled:dr,isMax:to,getOption:It,handleOptionClick:fr,handleGroupClick:no,handleTagRemove:_s,refreshOptions:bs,resolveOptions:rn,refreshLabels:ai}}function tb(t,e,n){const{valueProp:o,showOptions:i,searchable:s,groupLabel:a,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=r.toRefs(t),p=n.fo,m=n.fg,h=n.handleOptionClick,g=n.handleGroupClick,y=n.search,C=n.pointer,v=n.setPointer,_=n.clearPointer,b=n.multiselect,w=n.isOpen,k=r.computed(()=>p.value.filter(U=>!U[d.value])),T=r.computed(()=>m.value.filter(U=>!U[d.value])),A=r.computed(()=>c.value!=="single"&&u.value),S=r.computed(()=>C.value&&C.value.group),E=r.computed(()=>re(C.value)),D=r.computed(()=>{const U=S.value?C.value:re(C.value),P=T.value.map(we=>we[a.value]).indexOf(U[a.value]);let se=T.value[P-1];return se===void 0&&(se=$.value),se}),x=r.computed(()=>{let U=T.value.map(P=>P.label).indexOf(S.value?C.value[a.value]:re(C.value)[a.value])+1;return T.value.length<=U&&(U=0),T.value[U]}),$=r.computed(()=>[...T.value].slice(-1)[0]),B=r.computed(()=>C.value.__VISIBLE__.filter(U=>!U[d.value])[0]),V=r.computed(()=>{const U=E.value.__VISIBLE__.filter(P=>!P[d.value]);return U[U.map(P=>P[o.value]).indexOf(C.value[o.value])-1]}),I=r.computed(()=>{const U=re(C.value).__VISIBLE__.filter(P=>!P[d.value]);return U[U.map(P=>P[o.value]).indexOf(C.value[o.value])+1]}),j=r.computed(()=>[...D.value.__VISIBLE__.filter(U=>!U[d.value])].slice(-1)[0]),F=r.computed(()=>[...$.value.__VISIBLE__.filter(U=>!U[d.value])].slice(-1)[0]),q=U=>C.value&&(!U.group&&C.value[o.value]===U[o.value]||U.group!==void 0&&C.value[a.value]===U[a.value])?!0:void 0,Q=()=>{v(k.value[0]||null)},ae=()=>{!C.value||C.value[d.value]===!0||(S.value?g(C.value):h(C.value))},ne=()=>{if(C.value===null)v((l.value&&A.value?T.value[0].__CREATE__?k.value[0]:T.value[0]:k.value[0])||null);else if(l.value&&A.value){let U=S.value?B.value:I.value;U===void 0&&(U=x.value,U.__CREATE__&&(U=U[f.value][0])),v(U||null)}else{let U=k.value.map(P=>P[o.value]).indexOf(C.value[o.value])+1;k.value.length<=U&&(U=0),v(k.value[U]||null)}r.nextTick(()=>{ie()})},ye=()=>{if(C.value===null){let U=k.value[k.value.length-1];l.value&&A.value&&(U=F.value,U===void 0&&(U=$.value)),v(U||null)}else if(l.value&&A.value){let U=S.value?j.value:V.value;U===void 0&&(U=S.value?D.value:E.value,U.__CREATE__&&(U=j.value,U===void 0&&(U=D.value))),v(U||null)}else{let U=k.value.map(P=>P[o.value]).indexOf(C.value[o.value])-1;U<0&&(U=k.value.length-1),v(k.value[U]||null)}r.nextTick(()=>{ie()})},re=U=>T.value.find(P=>P.__VISIBLE__.map(se=>se[o.value]).indexOf(U[o.value])!==-1),ie=()=>{let U=b.value.querySelector("[data-pointed]");if(!U)return;let P=U.parentElement.parentElement;l.value&&(P=S.value?U.parentElement.parentElement.parentElement:U.parentElement.parentElement.parentElement.parentElement),U.offsetTop+U.offsetHeight>P.clientHeight+P.scrollTop&&(P.scrollTop=U.offsetTop+U.offsetHeight-P.clientHeight),U.offsetTop<P.scrollTop&&(P.scrollTop=U.offsetTop)};return r.watch(y,U=>{s.value&&(U.length&&i.value?Q():_())}),r.watch(w,U=>{if(U){let P=b.value.querySelectorAll("[data-selected]")[0];if(!P)return;let se=P.parentElement.parentElement;r.nextTick(()=>{se.scrollTop>0||(se.scrollTop=P.offsetTop)})}}),{pointer:C,canPointGroups:A,isPointed:q,setPointerFirst:Q,selectPointer:ae,forwardPointer:ne,backwardPointer:ye}}function Ut(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Go(t){var e=Ut(t).Element;return t instanceof e||t instanceof Element}function Qt(t){var e=Ut(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function lu(t){if(typeof ShadowRoot>"u")return!1;var e=Ut(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var qo=Math.max,oa=Math.min,Vr=Math.round;function dc(){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 Yp(){return!/^((?!chrome|android).)*safari/i.test(dc())}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=Go(t)?Ut(t):window,l=a.visualViewport,c=!Yp()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/i,d=(o.top+(c&&l?l.offsetTop:0))/s,f=o.width/i,p=o.height/s;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function cu(t){var e=Ut(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function nb(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ob(t){return t===Ut(t)||!Qt(t)?cu(t):nb(t)}function Nn(t){return t?(t.nodeName||"").toLowerCase():null}function Eo(t){return((Go(t)?t.ownerDocument:t.document)||window.document).documentElement}function uu(t){return Ir(Eo(t)).left+cu(t).scrollLeft}function Gn(t){return Ut(t).getComputedStyle(t)}function du(t){var e=Gn(t),n=e.overflow,o=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function rb(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 ib(t,e,n){n===void 0&&(n=!1);var o=Qt(e),i=Qt(e)&&rb(e),s=Eo(e),a=Ir(t,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Nn(e)!=="body"||du(s))&&(l=ob(e)),Qt(e)?(c=Ir(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=uu(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Jp(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 Pa(t){return Nn(t)==="html"?t:t.assignedSlot||t.parentNode||(lu(t)?t.host:null)||Eo(t)}function Xp(t){return["html","body","#document"].indexOf(Nn(t))>=0?t.ownerDocument.body:Qt(t)&&du(t)?t:Xp(Pa(t))}function Ni(t,e){var n;e===void 0&&(e=[]);var o=Xp(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=Ut(o),a=i?[s].concat(s.visualViewport||[],du(o)?o:[]):o,l=e.concat(a);return i?l:l.concat(Ni(Pa(a)))}function sb(t){return["table","td","th"].indexOf(Nn(t))>=0}function Vd(t){return!Qt(t)||Gn(t).position==="fixed"?null:t.offsetParent}function ab(t){var e=/firefox/i.test(dc()),n=/Trident/i.test(dc());if(n&&Qt(t)){var o=Gn(t);if(o.position==="fixed")return null}var i=Pa(t);for(lu(i)&&(i=i.host);Qt(i)&&["html","body"].indexOf(Nn(i))<0;){var s=Gn(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 Fa(t){for(var e=Ut(t),n=Vd(t);n&&sb(n)&&Gn(n).position==="static";)n=Vd(n);return n&&(Nn(n)==="html"||Nn(n)==="body"&&Gn(n).position==="static")?e:n||ab(t)||e}var cn="top",Dn="bottom",yo="right",jn="left",fu="auto",Ra=[cn,Dn,yo,jn],Pr="start",Ui="end",lb="clippingParents",Qp="viewport",vi="popper",cb="reference",Id=Ra.reduce(function(t,e){return t.concat([e+"-"+Pr,e+"-"+Ui])},[]),ub=[].concat(Ra,[fu]).reduce(function(t,e){return t.concat([e,e+"-"+Pr,e+"-"+Ui])},[]),db="beforeRead",fb="read",pb="afterRead",mb="beforeMain",hb="main",gb="afterMain",vb="beforeWrite",_b="write",yb="afterWrite",Cb=[db,fb,pb,mb,hb,gb,vb,_b,yb];function bb(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 kb(t){var e=bb(t);return Cb.reduce(function(n,o){return n.concat(e.filter(function(i){return i.phase===o}))},[])}function wb(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Eb(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 Sb(t,e){var n=Ut(t),o=Eo(t),i=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(i){s=i.width,a=i.height;var u=Yp();(u||!u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l+uu(t),y:c}}function xb(t){var e,n=Eo(t),o=cu(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+uu(t),c=-o.scrollTop;return Gn(i||n).direction==="rtl"&&(l+=qo(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function Ab(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&lu(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function fc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Tb(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 Pd(t,e,n){return e===Qp?fc(Sb(t,n)):Go(e)?Tb(e,n):fc(xb(Eo(t)))}function Nb(t){var e=Ni(Pa(t)),n=["absolute","fixed"].indexOf(Gn(t).position)>=0,o=n&&Qt(t)?Fa(t):t;return Go(o)?e.filter(function(i){return Go(i)&&Ab(i,o)&&Nn(i)!=="body"}):[]}function Db(t,e,n,o){var i=e==="clippingParents"?Nb(t):[].concat(e),s=[].concat(i,[n]),a=s[0],l=s.reduce(function(c,u){var d=Pd(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},Pd(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 po(t){return t.split("-")[0]}function Fr(t){return t.split("-")[1]}function em(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function tm(t){var e=t.reference,n=t.element,o=t.placement,i=o?po(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 cn:c={x:a,y:e.y-n.height};break;case Dn:c={x:a,y:e.y+e.height};break;case yo:c={x:e.x+e.width,y:l};break;case jn:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=i?em(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 Ui:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function nm(){return{top:0,right:0,bottom:0,left:0}}function $b(t){return Object.assign({},nm(),t)}function Bb(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function pu(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?lb:l,u=n.rootBoundary,d=u===void 0?Qp:u,f=n.elementContext,p=f===void 0?vi:f,m=n.altBoundary,h=m===void 0?!1:m,g=n.padding,y=g===void 0?0:g,C=$b(typeof y!="number"?y:Bb(y,Ra)),v=p===vi?cb:vi,_=t.rects.popper,b=t.elements[h?v:p],w=Db(Go(b)?b:b.contextElement||Eo(t.elements.popper),c,d,a),k=Ir(t.elements.reference),T=tm({reference:k,element:_,strategy:"absolute",placement:i}),A=fc(Object.assign({},_,T)),S=p===vi?A:k,E={top:w.top-S.top+C.top,bottom:S.bottom-w.bottom+C.bottom,left:w.left-S.left+C.left,right:S.right-w.right+C.right},D=t.modifiersData.offset;if(p===vi&&D){var x=D[i];Object.keys(E).forEach(function($){var B=[yo,Dn].indexOf($)>=0?1:-1,V=[cn,Dn].indexOf($)>=0?"y":"x";E[$]+=x[V]*B})}return E}var Fd={placement:"bottom",modifiers:[],strategy:"absolute"};function Rd(){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 Mb(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,i=e.defaultOptions,s=i===void 0?Fd:i;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Fd,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,m={state:d,setOptions:function(C){var v=typeof C=="function"?C(d.options):C;g(),d.options=Object.assign({},s,d.options,v),d.scrollParents={reference:Go(l)?Ni(l):l.contextElement?Ni(l.contextElement):[],popper:Ni(c)};var _=kb(Eb([].concat(o,d.options.modifiers)));return d.orderedModifiers=_.filter(function(b){return b.enabled}),h(),m.update()},forceUpdate:function(){if(!p){var C=d.elements,v=C.reference,_=C.popper;if(Rd(v,_)){d.rects={reference:ib(v,Fa(_),d.options.strategy==="fixed"),popper:Jp(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(E){return d.modifiersData[E.name]=Object.assign({},E.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,T=w.options,A=T===void 0?{}:T,S=w.name;typeof k=="function"&&(d=k({state:d,options:A,name:S,instance:m})||d)}}}},update:wb(function(){return new Promise(function(y){m.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!Rd(l,c))return m;m.setOptions(u).then(function(y){!p&&u.onFirstUpdate&&u.onFirstUpdate(y)});function h(){d.orderedModifiers.forEach(function(y){var C=y.name,v=y.options,_=v===void 0?{}:v,b=y.effect;if(typeof b=="function"){var w=b({state:d,name:C,instance:m,options:_}),k=function(){};f.push(w||k)}})}function g(){f.forEach(function(y){return y()}),f=[]}return m}}var Ds={passive:!0};function Lb(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=Ut(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 Ob={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Lb,data:{}};function Vb(t){var e=t.state,n=t.name;e.modifiersData[n]=tm({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Ib={name:"popperOffsets",enabled:!0,phase:"read",fn:Vb,data:{}},Pb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fb(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 zd(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,f=t.isFixed,p=a.x,m=p===void 0?0:p,h=a.y,g=h===void 0?0:h,y=typeof d=="function"?d({x:m,y:g}):{x:m,y:g};m=y.x,g=y.y;var C=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),_=jn,b=cn,w=window;if(u){var k=Fa(n),T="clientHeight",A="clientWidth";if(k===Ut(n)&&(k=Eo(n),Gn(k).position!=="static"&&l==="absolute"&&(T="scrollHeight",A="scrollWidth")),k=k,i===cn||(i===jn||i===yo)&&s===Ui){b=Dn;var S=f&&k===w&&w.visualViewport?w.visualViewport.height:k[T];g-=S-o.height,g*=c?1:-1}if(i===jn||(i===cn||i===Dn)&&s===Ui){_=yo;var E=f&&k===w&&w.visualViewport?w.visualViewport.width:k[A];m-=E-o.width,m*=c?1:-1}}var D=Object.assign({position:l},u&&Pb),x=d===!0?Fb({x:m,y:g},Ut(n)):{x:m,y:g};if(m=x.x,g=x.y,c){var $;return Object.assign({},D,($={},$[b]=v?"0":"",$[_]=C?"0":"",$.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",$))}return Object.assign({},D,(e={},e[b]=v?g+"px":"",e[_]=C?m+"px":"",e.transform="",e))}function Rb(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:po(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,zd(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,zd(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 zb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rb,data:{}};function Ub(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)||!Nn(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 qb(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)||!Nn(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(c){i.removeAttribute(c)}))})}}var Hb={name:"applyStyles",enabled:!0,phase:"write",fn:Ub,effect:qb,requires:["computeStyles"]},jb=[Ob,Ib,zb,Hb],Wb=Mb({defaultModifiers:jb});function Zb(t){return t==="x"?"y":"x"}function js(t,e,n){return qo(t,oa(e,n))}function Kb(t,e,n){var o=js(t,e,n);return o>n?n:o}function Gb(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,f=n.padding,p=n.tether,m=p===void 0?!0:p,h=n.tetherOffset,g=h===void 0?0:h,y=pu(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),C=po(e.placement),v=Fr(e.placement),_=!v,b=em(C),w=Zb(b),k=e.modifiersData.popperOffsets,T=e.rects.reference,A=e.rects.popper,S=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,E=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,x={x:0,y:0};if(k){if(s){var $,B=b==="y"?cn:jn,V=b==="y"?Dn:yo,I=b==="y"?"height":"width",j=k[b],F=j+y[B],q=j-y[V],Q=m?-A[I]/2:0,ae=v===Pr?T[I]:A[I],ne=v===Pr?-A[I]:-T[I],ye=e.elements.arrow,re=m&&ye?Jp(ye):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:nm(),U=ie[B],P=ie[V],se=js(0,T[I],re[I]),we=_?T[I]/2-Q-se-U-E.mainAxis:ae-se-U-E.mainAxis,Re=_?-T[I]/2+Q+se+P+E.mainAxis:ne+se+P+E.mainAxis,Ce=e.elements.arrow&&Fa(e.elements.arrow),R=Ce?b==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,le=($=D==null?void 0:D[b])!=null?$:0,ge=j+we-le-R,me=j+Re-le,Ee=js(m?oa(F,ge):F,j,m?qo(q,me):q);k[b]=Ee,x[b]=Ee-j}if(l){var ze,Be=b==="x"?cn:jn,Te=b==="x"?Dn:yo,Ie=k[w],Pe=w==="y"?"height":"width",dt=Ie+y[Be],Ln=Ie-y[Te],He=[cn,jn].indexOf(C)!==-1,_t=(ze=D==null?void 0:D[w])!=null?ze:0,it=He?dt:Ie-T[Pe]-A[Pe]-_t+E.altAxis,Bt=He?Ie+T[Pe]+A[Pe]-_t-E.altAxis:Ln,Zt=m&&He?Kb(it,Ie,Bt):js(m?it:dt,Ie,m?Bt:Ln);k[w]=Zt,x[w]=Zt-Ie}e.modifiersData[o]=x}}var Yb={name:"preventOverflow",enabled:!0,phase:"main",fn:Gb,requiresIfExists:["offset"]},Jb={left:"right",right:"left",bottom:"top",top:"bottom"};function Ws(t){return t.replace(/left|right|bottom|top/g,function(e){return Jb[e]})}var Xb={start:"end",end:"start"};function Ud(t){return t.replace(/start|end/g,function(e){return Xb[e]})}function Qb(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?ub:c,d=Fr(o),f=d?l?Id:Id.filter(function(h){return Fr(h)===d}):Ra,p=f.filter(function(h){return u.indexOf(h)>=0});p.length===0&&(p=f);var m=p.reduce(function(h,g){return h[g]=pu(t,{placement:g,boundary:i,rootBoundary:s,padding:a})[po(g)],h},{});return Object.keys(m).sort(function(h,g){return m[h]-m[g]})}function ek(t){if(po(t)===fu)return[];var e=Ws(t);return[Ud(t),e,Ud(e)]}function tk(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,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,h=m===void 0?!0:m,g=n.allowedAutoPlacements,y=e.options.placement,C=po(y),v=C===y,_=c||(v||!h?[Ws(y)]:ek(y)),b=[y].concat(_).reduce(function(re,ie){return re.concat(po(ie)===fu?Qb(e,{placement:ie,boundary:d,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:g}):ie)},[]),w=e.rects.reference,k=e.rects.popper,T=new Map,A=!0,S=b[0],E=0;E<b.length;E++){var D=b[E],x=po(D),$=Fr(D)===Pr,B=[cn,Dn].indexOf(x)>=0,V=B?"width":"height",I=pu(e,{placement:D,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),j=B?$?yo:jn:$?Dn:cn;w[V]>k[V]&&(j=Ws(j));var F=Ws(j),q=[];if(s&&q.push(I[x]<=0),l&&q.push(I[j]<=0,I[F]<=0),q.every(function(re){return re})){S=D,A=!1;break}T.set(D,q)}if(A)for(var Q=h?3:1,ae=function(ie){var U=b.find(function(P){var se=T.get(P);if(se)return se.slice(0,ie).every(function(we){return we})});if(U)return S=U,"break"},ne=Q;ne>0;ne--){var ye=ae(ne);if(ye==="break")break}e.placement!==S&&(e.modifiersData[o]._skip=!0,e.placement=S,e.reset=!0)}}var nk={name:"flip",enabled:!0,phase:"main",fn:tk,requiresIfExists:["offset"],data:{_skip:!1}};function ok(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),f=r.ref(null),p=r.ref(null),m=r.computed(()=>i.value||s.value),h=r.computed(()=>a.value==="top"&&p.value==="bottom"||a.value==="bottom"&&p.value!=="top"?"bottom":"top"),g=()=>{d.value||o.value||(d.value=!0,e.emit("open",l),m.value&&r.nextTick(()=>{C()}))},y=()=>{d.value&&(d.value=!1,e.emit("close",l))},C=()=>{if(!f.value)return;let _=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),b=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(w=>({...w,modifiers:[...w.modifiers,{name:"offset",options:{offset:[0,(h.value==="top"?_:b)*-1]}}]})),f.value.update()},v=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return r.onMounted(()=>{m.value&&(f.value=Wb(c.value,u.value,{strategy:v(c.value)?"fixed":void 0,placement:a.value,modifiers:[Yb,nk,{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:_}){p.value=_.placement}}]}))}),r.onBeforeUnmount(()=>{!m.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:g,close:y,placement:h,updatePopper:C}}function rk(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,f=n.wrapper,p=n.tags,m=r.ref(!1),h=r.ref(!1),g=r.computed(()=>o.value||i.value?-1:0),y=()=>{o.value&&a.value.blur(),f.value.blur()},C=()=>{o.value&&!i.value&&a.value.focus()},v=(A=!0)=>{i.value||(m.value=!0,A&&l())},_=()=>{m.value=!1,setTimeout(()=>{m.value||(c(),s.value&&u())},1)};return{tabindex:g,isActive:m,mouseClicked:h,blur:y,focus:C,activate:v,deactivate:_,handleFocusIn:A=>{A.target.closest("[data-tags]")&&A.target.nodeName!=="INPUT"||A.target.closest("[data-clear]")||v(h.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),y()},handleMousedown:A=>{h.value=!0,d.value&&(A.target.isEqualNode(f.value)||A.target.isEqualNode(p.value))?setTimeout(()=>{_()},0):!d.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(a.value))&&v(),setTimeout(()=>{h.value=!1},0)}}}function ik(t,e,n){const{mode:o,addTagOn:i,openDirection:s,searchable:a,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:m}=r.toRefs(t),h=r.getCurrentInstance().proxy,g=n.iv,y=n.update,C=n.deselect,v=n.search,_=n.setPointer,b=n.selectPointer,w=n.backwardPointer,k=n.forwardPointer,T=n.multiselect,A=n.wrapper,S=n.tags,E=n.isOpen,D=n.open,x=n.blur,$=n.fo,B=r.computed(()=>f.value||p.value||!1),V=r.computed(()=>i.value!==void 0?i.value:d.value!==void 0?d.value:["enter"]),I=()=>{o.value==="tags"&&!l.value&&B.value&&a.value&&!u.value&&_($.value[$.value.map(q=>q[c.value]).indexOf(v.value)])};return{handleKeydown:q=>{e.emit("keydown",q,h);let Q,ae;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(q.key)!==-1&&o.value==="tags"&&(Q=[...T.value.querySelectorAll("[data-tags] > *")].filter(ne=>ne!==S.value),ae=Q.findIndex(ne=>ne===document.activeElement)),q.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(v.value)===-1||g.value.length===0)return;let ne=g.value.filter(ye=>!ye.disabled&&ye.remove!==!1);ne.length&&C(ne[ne.length-1]);break;case"Enter":if(q.preventDefault(),q.keyCode===229)return;if(ae!==-1&&ae!==void 0){y([...g.value].filter((ye,re)=>re!==ae)),ae===Q.length-1&&(Q.length-1?Q[Q.length-2].focus():a.value?S.value.querySelector("input").focus():A.value.focus());return}if(V.value.indexOf("enter")===-1&&B.value)return;I(),b();break;case" ":if(!B.value&&!a.value){q.preventDefault(),I(),b();return}if(!B.value)return!1;if(V.value.indexOf("space")===-1&&B.value)return;q.preventDefault(),I(),b();break;case"Tab":case";":case",":if(V.value.indexOf(q.key.toLowerCase())===-1||!B.value)return;I(),b(),q.preventDefault();break;case"Escape":x();break;case"ArrowUp":if(q.preventDefault(),!l.value)return;E.value||D(),w();break;case"ArrowDown":if(q.preventDefault(),!l.value)return;E.value||D(),k();break;case"ArrowLeft":if(a.value&&S.value&&S.value.querySelector("input").selectionStart||q.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;q.preventDefault(),ae===-1?Q[Q.length-1].focus():ae>0&&Q[ae-1].focus();break;case"ArrowRight":if(ae===-1||q.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;q.preventDefault(),Q.length>ae+1?Q[ae+1].focus():a.value?S.value.querySelector("input").focus():a.value||A.value.focus();break}},handleKeyup:q=>{e.emit("keyup",q,h)},preparePointer:I}}function sk(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,f=n.isActive,p=n.canPointGroups,m=n.resolving,h=n.fo,g=n.placement,y=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})),C=r.computed(()=>!!(l.value&&s.value&&(!m.value||m.value&&h.value.length)));return{classList:r.computed(()=>{const _=y.value;return{container:[_.container].concat(i.value?_.containerDisabled:[]).concat(C.value&&g.value==="top"?_.containerOpenTop:[]).concat(C.value&&g.value!=="top"?_.containerOpen:[]).concat(f.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(g.value==="top"?_.dropdownTop:[]).concat(!l.value||!s.value||!C.value?_.dropdownHidden:[]),options:[_.options].concat(g.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:b=>{let w=[_.groupLabel];return c(b)?w.push(u(b)?_.groupLabelSelectedPointed:_.groupLabelPointed):u(b)&&p.value?w.push(d(b)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(b)&&w.push(_.groupLabelDisabled),p.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:C}}function ak(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),f=r.ref(null),p=r.computed(()=>a.value<c.value.length),m=g=>{const{isIntersecting:y,target:C}=g[0];if(y){const v=C.offsetParent,_=v.scrollTop;a.value+=o.value==-1?10:o.value,r.nextTick(()=>{v.scrollTop=_})}},h=()=>{s.value&&a.value<c.value.length?d.value.observe(f.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:p,infiniteLoader:f}}function lk(t,e,n){const{placeholder:o,id:i,valueProp:s,label:a,mode:l,groupLabel:c,aria:u,searchable:d}=r.toRefs(t),f=n.pointer,p=n.iv,m=n.hasSelected,h=n.multipleLabelText,g=r.ref(null),y=r.computed(()=>{let x=[];return i&&i.value&&x.push(i.value),x.push("assist"),x.join("-")}),C=r.computed(()=>{let x=[];return i&&i.value&&x.push(i.value),x.push("multiselect-options"),x.join("-")}),v=r.computed(()=>{let x=[];if(i&&i.value&&x.push(i.value),f.value)return x.push(f.value.group?"multiselect-group":"multiselect-option"),x.push(f.value.group?f.value.index:f.value[s.value]),x.join("-")}),_=r.computed(()=>o.value),b=r.computed(()=>l.value!=="single"),w=r.computed(()=>{let x="";return l.value==="single"&&m.value&&(x+=p.value[a.value]),l.value==="multiple"&&m.value&&(x+=h.value),l.value==="tags"&&m.value&&(x+=p.value.map($=>$[a.value]).join(", ")),x}),k=r.computed(()=>{let x={...u.value};return d.value&&(x["aria-labelledby"]=x["aria-labelledby"]?`${y.value} ${x["aria-labelledby"]}`:y.value,w.value&&x["aria-label"]&&(x["aria-label"]=`${w.value}, ${x["aria-label"]}`)),x}),T=x=>{let $=[];return i&&i.value&&$.push(i.value),$.push("multiselect-option"),$.push(x[s.value]),$.join("-")},A=x=>{let $=[];return i&&i.value&&$.push(i.value),$.push("multiselect-group"),$.push(x.index),$.join("-")},S=x=>{let $=[];return $.push(x),$.join(" ")},E=x=>{let $=[];return $.push(x),$.join(" ")},D=x=>`${x} ❎`;return r.onMounted(()=>{if(i&&i.value&&document&&document.querySelector){let x=document.querySelector(`[for="${i.value}"]`);g.value=x?x.innerText:null}}),{arias:k,ariaLabel:w,ariaAssist:y,ariaControls:C,ariaPlaceholder:_,ariaMultiselectable:b,ariaActiveDescendant:v,ariaOptionId:T,ariaOptionLabel:S,ariaGroupId:A,ariaGroupLabel:E,ariaTagLabel:D}}function ck(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 uk(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 dk(t,e,n,o={}){return n.forEach(i=>{i&&(o={...o,...i(t,e,o)})}),o}var lo={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 dk(t,e,[uk,ck,GC,JC,ok,YC,KC,rk,eb,ak,tb,ik,sk,lk])},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 fk=["id","dir"],pk=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],mk=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],hk=["onKeyup","aria-label"],gk=["onClick"],vk=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],_k=["innerHTML"],yk=["id"],Ck=["id"],bk=["id","aria-label","aria-selected"],kk=["data-pointed","onMouseenter","onMousedown"],wk=["innerHTML"],Ek=["aria-label"],Sk=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],xk=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],Ak=["innerHTML"],Tk=["innerHTML"],Nk=["value"],Dk=["name","value"],$k=["name","value"],Bk=["id"];function Mk(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,mk)):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,gk)):r.createCommentVNode("v-if",!0)],42,hk))])),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,vk)):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,_k)]):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,pk),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,wk)])],42,kk)),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,f)=>(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:f,onMouseenter:p=>t.setPointer(u),onMousedown:r.withModifiers(p=>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,Sk))),128))],10,Ek)],10,bk))),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,xk))),128))],10,Ck),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,Ak)]):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,Tk)]):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,yk)],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,Nk)):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,Dk)):(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,$k))),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,Bk)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Create height for empty input "),r.createElementVNode("div",{class:r.normalizeClass(t.classList.spacer)},null,2)],42,fk)}lo.render=Mk;lo.__file="src/Multiselect.vue";const Ct=r.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(t){const e=t,n=r.toRef(()=>e.appendTo),o=r.ref();return e.detached&&ZC({multiselect:o,appendTo:n.value}),(i,s)=>(r.openBlock(),r.createBlock(r.unref(lo),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect"},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??{})))])}))]),1536))}});var qd;function Wt(){const t=Lk(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function Lk(){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=qd.exec(n))!==null;){o.push(n.substring(s,i.index));const a=e[i[1]];a?o.push(...a()):o.push(i[0]),s=qd.lastIndex}return o.push(n.substring(s)),o}}});async function Wn(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 Ok={class:"ao-tasks__list"},Vk=["id","value","readonly","onChange","onKeydown"],Ik={class:"ao-tasks__list-footer"},Pk=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}=Wt(),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)},f=()=>{l!==null&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{d(),l=null})};r.watch(()=>o.tasks,(_,b)=>{Wn(_,b),f()},{deep:!0}),r.onMounted(()=>{f(),s.value&&(a=new ResizeObserver(()=>{f()}),a.observe(s.value))}),r.onBeforeUnmount(()=>{a==null||a.disconnect(),l!==null&&cancelAnimationFrame(l)});const p=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})},g=(_,b)=>{o.isEditable&&i("update",{id:_,isDone:b})},y=_=>{i("delete",{id:_})},C=(_,b)=>{i("update",{id:b,assigneeId:_[0]??null})},v=_=>{_.target.blur()};return(_,b)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tasksRoot",ref:s,class:"ao-tasks"},[r.createElementVNode("ul",Ok,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.tasks,w=>{var k,T;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(ue,{key:0,class:"ao-subtask__check","icon-name":w.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>g(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:A=>h(A,w.id),onKeydown:r.withKeys(r.withModifiers(v,["prevent"]),["enter"])},null,42,Vk),!t.isTemplate&&t.users?(r.openBlock(),r.createBlock(Ct,{key:1,value:(T=w.assignee)!=null&&T.id?[w.assignee.id]:[],options:p.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:A=>C(A,w.id)},{tag:r.withCtx(({option:A,handleTagRemove:S})=>[r.createVNode(Xn,{"user-name":A.label,"avatar-url":A.avatar,"is-closable":!0,onClose:E=>S(A,E)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):r.createCommentVNode("",!0),t.isEditable?(r.openBlock(),r.createBlock(ue,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>y(w.id)},null,8,["onClick"])):r.createCommentVNode("",!0)])}),128))]),r.createElementVNode("div",Ik,[t.isEditable?(r.openBlock(),r.createBlock(ue,{key:0,label:_.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:m},null,8,["label"])):r.createCommentVNode("",!0)])],512))}});const Fk={class:"ao-files__placeholder"},Rk={key:0,class:"ao-files__list"},zk=["onClick"],Uk={class:"ao-file__title"},qk={class:"ao-file__actions"},Hk={key:0},jk={class:"ao-files__input"},Wk={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},Zk={class:"ao-button__label"},Kk={class:"ao-files__dropzone"},Gk={class:"ao-files__dropzone-label"},Yk=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,g=Array.from(h.files??[]);g.length&&n("add",g),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 f(){i.value=!1}r.watch(i,m=>{n("toggleIsDropActive",m)});function p(m){var g;if(f(),!o.isEditable)return;const h=Array.from(((g=m.dataTransfer)==null?void 0:g.files)??[]);h.length&&n("add",h)}return(m,h)=>{var g;return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":i.value}]),onDrop:r.withModifiers(p,["prevent"]),onDragenter:r.withModifiers(d,["prevent"]),onDragover:r.withModifiers(d,["prevent"]),onDragleave:r.withModifiers(f,["prevent"])},[r.renderSlot(m.$slots,"default",{},()=>[r.createElementVNode("span",Fk,r.toDisplayString(m.$t("activity.attachment.placeholder.resting")),1)]),(g=t.attachments)!=null&&g.length||t.isEditable?(r.openBlock(),r.createElementBlock("ul",Rk,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.attachments,(y,C)=>(r.openBlock(),r.createElementBlock("li",{key:y.id,class:"ao-file"},[r.createElementVNode("button",{type:"button",class:"ao-file__link",onClick:v=>n("preview",C)},[r.createVNode(ke,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),r.createElementVNode("span",Uk,r.toDisplayString(y.name),1)],8,zk),r.createElementVNode("div",qk,[r.createVNode(ue,{"icon-name":"DownloadRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Download",title:"Download",onClick:r.withModifiers(v=>l(y),["stop"])},null,8,["onClick"]),t.isEditable?(r.openBlock(),r.createBlock(ue,{key:0,"icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Delete",title:"Delete",onClick:r.withModifiers(v=>a(y),["stop"])},null,8,["onClick"])):r.createCommentVNode("",!0)])]))),128)),t.isEditable?(r.openBlock(),r.createElementBlock("li",Hk,[r.createElementVNode("label",jk,[r.createElementVNode("div",Wk,[r.createVNode(ke,{name:"Add",size:"sm"}),r.createElementVNode("span",Zk,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",Kk,[r.createElementVNode("span",Gk,r.toDisplayString(m.$t("activity.attachment.placeholder.active")),1)],512),[[r.vShow,i.value]])],34)}}});var $e={};const Jk="Á",Xk="á",Qk="Ă",e9="ă",t9="∾",n9="∿",o9="∾̳",r9="Â",i9="â",s9="´",a9="А",l9="а",c9="Æ",u9="æ",d9="",f9="𝔄",p9="𝔞",m9="À",h9="à",g9="ℵ",v9="ℵ",_9="Α",y9="α",C9="Ā",b9="ā",k9="⨿",w9="&",E9="&",S9="⩕",x9="⩓",A9="∧",T9="⩜",N9="⩘",D9="⩚",$9="∠",B9="⦤",M9="∠",L9="⦨",O9="⦩",V9="⦪",I9="⦫",P9="⦬",F9="⦭",R9="⦮",z9="⦯",U9="∡",q9="∟",H9="⊾",j9="⦝",W9="∢",Z9="Å",K9="⍼",G9="Ą",Y9="ą",J9="𝔸",X9="𝕒",Q9="⩯",e4="≈",t4="⩰",n4="≊",o4="≋",r4="'",i4="",s4="≈",a4="≊",l4="Å",c4="å",u4="𝒜",d4="𝒶",f4="≔",p4="*",m4="≈",h4="≍",g4="Ã",v4="ã",_4="Ä",y4="ä",C4="∳",b4="⨑",k4="≌",w4="϶",E4="‵",S4="∽",x4="⋍",A4="∖",T4="⫧",N4="⊽",D4="⌅",$4="⌆",B4="⌅",M4="⎵",L4="⎶",O4="≌",V4="Б",I4="б",P4="„",F4="∵",R4="∵",z4="∵",U4="⦰",q4="϶",H4="ℬ",j4="ℬ",W4="Β",Z4="β",K4="ℶ",G4="≬",Y4="𝔅",J4="𝔟",X4="⋂",Q4="◯",e8="⋃",t8="⨀",n8="⨁",o8="⨂",r8="⨆",i8="★",s8="▽",a8="△",l8="⨄",c8="⋁",u8="⋀",d8="⤍",f8="⧫",p8="▪",m8="▴",h8="▾",g8="◂",v8="▸",_8="␣",y8="▒",C8="░",b8="▓",k8="█",w8="=⃥",E8="≡⃥",S8="⫭",x8="⌐",A8="𝔹",T8="𝕓",N8="⊥",D8="⊥",$8="⋈",B8="⧉",M8="┐",L8="╕",O8="╖",V8="╗",I8="┌",P8="╒",F8="╓",R8="╔",z8="─",U8="═",q8="┬",H8="╤",j8="╥",W8="╦",Z8="┴",K8="╧",G8="╨",Y8="╩",J8="⊟",X8="⊞",Q8="⊠",e6="┘",t6="╛",n6="╜",o6="╝",r6="└",i6="╘",s6="╙",a6="╚",l6="│",c6="║",u6="┼",d6="╪",f6="╫",p6="╬",m6="┤",h6="╡",g6="╢",v6="╣",_6="├",y6="╞",C6="╟",b6="╠",k6="‵",w6="˘",E6="˘",S6="¦",x6="𝒷",A6="ℬ",T6="⁏",N6="∽",D6="⋍",$6="⧅",B6="\\",M6="⟈",L6="•",O6="•",V6="≎",I6="⪮",P6="≏",F6="≎",R6="≏",z6="Ć",U6="ć",q6="⩄",H6="⩉",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="·",_w="·",yw="𝔠",Cw="ℭ",bw="Ч",kw="ч",ww="✓",Ew="✓",Sw="Χ",xw="χ",Aw="ˆ",Tw="≗",Nw="↺",Dw="↻",$w="⊛",Bw="⊚",Mw="⊝",Lw="⊙",Ow="®",Vw="Ⓢ",Iw="⊖",Pw="⊕",Fw="⊗",Rw="○",zw="⧃",Uw="≗",qw="⨐",Hw="⫯",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="∐",_E="©",yE="©",CE="℗",bE="∳",kE="↵",wE="✗",EE="⨯",SE="𝒞",xE="𝒸",AE="⫏",TE="⫑",NE="⫐",DE="⫒",$E="⋯",BE="⤸",ME="⤵",LE="⋞",OE="⋟",VE="↶",IE="⤽",PE="⩈",FE="⩆",RE="≍",zE="∪",UE="⋓",qE="⩊",HE="⊍",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="˝",_S="Ď",yS="ď",CS="Д",bS="д",kS="‡",wS="⇊",ES="ⅅ",SS="ⅆ",xS="⤑",AS="⩷",TS="°",NS="∇",DS="Δ",$S="δ",BS="⦱",MS="⥿",LS="𝔇",OS="𝔡",VS="⥥",IS="⇃",PS="⇂",FS="´",RS="˙",zS="˝",US="`",qS="˜",HS="⋄",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="∔",_x="⊡",yx="⌆",Cx="∯",bx="¨",kx="⇓",wx="⇐",Ex="⇔",Sx="⫤",xx="⟸",Ax="⟺",Tx="⟹",Nx="⇒",Dx="⊨",$x="⇑",Bx="⇕",Mx="∥",Lx="⤓",Ox="↓",Vx="↓",Ix="⇓",Px="⇵",Fx="̑",Rx="⇊",zx="⇃",Ux="⇂",qx="⥐",Hx="⥞",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="É",_A="é",yA="⩮",CA="Ě",bA="ě",kA="Ê",wA="ê",EA="≖",SA="≕",xA="Э",AA="э",TA="⩷",NA="Ė",DA="ė",$A="≑",BA="ⅇ",MA="≒",LA="𝔈",OA="𝔢",VA="⪚",IA="È",PA="è",FA="⪖",RA="⪘",zA="⪙",UA="∈",qA="⏧",HA="ℓ",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="≖",_T="≕",yT="≂",CT="⪖",bT="⪕",kT="⩵",wT="=",ET="≂",ST="≟",xT="⇌",AT="≡",TT="⩸",NT="⧥",DT="⥱",$T="≓",BT="ℯ",MT="ℰ",LT="≐",OT="⩳",VT="≂",IT="Η",PT="η",FT="Ð",RT="ð",zT="Ë",UT="ë",qT="€",HT="!",jT="∃",WT="∃",ZT="ℰ",KT="ⅇ",GT="ⅇ",YT="≒",JT="Ф",XT="ф",QT="♀",eN="ffi",tN="ff",nN="ffl",oN="𝔉",rN="𝔣",iN="fi",sN="◼",aN="▪",lN="fj",cN="♭",uN="fl",dN="▱",fN="ƒ",pN="𝔽",mN="𝕗",hN="∀",gN="∀",vN="⋔",_N="⫙",yN="ℱ",CN="⨍",bN="½",kN="⅓",wN="¼",EN="⅕",SN="⅙",xN="⅛",AN="⅔",TN="⅖",NN="¾",DN="⅗",$N="⅜",BN="⅘",MN="⅚",LN="⅝",ON="⅞",VN="⁄",IN="⌢",PN="𝒻",FN="ℱ",RN="ǵ",zN="Γ",UN="γ",qN="Ϝ",HN="ϝ",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="≫",_D="⋙",yD="⋙",CD="ℷ",bD="Ѓ",kD="ѓ",wD="⪥",ED="≷",SD="⪒",xD="⪤",AD="⪊",TD="⪊",ND="⪈",DD="≩",$D="⪈",BD="≩",MD="⋧",LD="𝔾",OD="𝕘",VD="`",ID="≥",PD="⋛",FD="≧",RD="⪢",zD="≷",UD="⩾",qD="≳",HD="𝒢",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$="─",q$="𝒽",H$="ℋ",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="⧜",_B="℩",yB="IJ",CB="ij",bB="Ī",kB="ī",wB="ℑ",EB="ⅈ",SB="ℐ",xB="ℑ",AB="ı",TB="ℑ",NB="⊷",DB="Ƶ",$B="⇒",BB="℅",MB="∞",LB="⧝",OB="ı",VB="⊺",IB="∫",PB="∬",FB="ℤ",RB="∫",zB="⊺",UB="⋂",qB="⨗",HB="⨼",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="ï",_M="Ĵ",yM="ĵ",CM="Й",bM="й",kM="𝔍",wM="𝔧",EM="ȷ",SM="𝕁",xM="𝕛",AM="𝒥",TM="𝒿",NM="Ј",DM="ј",$M="Є",BM="є",MM="Κ",LM="κ",OM="ϰ",VM="Ķ",IM="ķ",PM="К",FM="к",RM="𝔎",zM="𝔨",UM="ĸ",qM="Х",HM="х",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="↩",_L="↫",yL="⤹",CL="⥳",bL="↢",kL="⤙",wL="⤛",EL="⪫",SL="⪭",xL="⪭︀",AL="⤌",TL="⤎",NL="❲",DL="{",$L="[",BL="⦋",ML="⦏",LL="⦍",OL="Ľ",VL="ľ",IL="Ļ",PL="ļ",FL="⌈",RL="{",zL="Л",UL="л",qL="⤶",HL="“",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="⇋",_O="↭",yO="⥎",CO="↤",bO="⊣",kO="⥚",wO="⋋",EO="⧏",SO="⊲",xO="⊴",AO="⥑",TO="⥠",NO="⥘",DO="↿",$O="⥒",BO="↼",MO="⪋",LO="⋚",OO="≤",VO="≦",IO="⩽",PO="⪨",FO="⩽",RO="⩿",zO="⪁",UO="⪃",qO="⋚︀",HO="⪓",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="≪",_V="⋘",yV="⌞",CV="⇚",bV="⥫",kV="◺",wV="Ŀ",EV="ŀ",SV="⎰",xV="⎰",AV="⪉",TV="⪉",NV="⪇",DV="≨",$V="⪇",BV="≨",MV="⋦",LV="⟬",OV="⇽",VV="⟦",IV="⟵",PV="⟵",FV="⟸",RV="⟷",zV="⟷",UV="⟺",qV="⟼",HV="⟶",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="ℒ",_I="↰",yI="↰",CI="≲",bI="⪍",kI="⪏",wI="[",EI="‘",SI="‚",xI="Ł",AI="ł",TI="⪦",NI="⩹",DI="<",$I="<",BI="≪",MI="⋖",LI="⋋",OI="⋉",VI="⥶",II="⩻",PI="◃",FI="⊴",RI="◂",zI="⦖",UI="⥊",qI="⥦",HI="≨︀",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="·",_P="⊟",yP="−",CP="∸",bP="⨪",kP="∓",wP="⫛",EP="…",SP="∓",xP="⊧",AP="𝕄",TP="𝕞",NP="∓",DP="𝓂",$P="ℳ",BP="∾",MP="Μ",LP="μ",OP="⊸",VP="⊸",IP="∇",PP="Ń",FP="ń",RP="∠⃒",zP="≉",UP="⩰̸",qP="≋̸",HP="ʼn",jP="≉",WP="♮",ZP="ℕ",KP="♮",GP=" ",YP="≎̸",JP="≏̸",XP="⩃",QP="Ň",eF="ň",tF="Ņ",nF="ņ",oF="≇",rF="⩭̸",iF="⩂",sF="Н",aF="н",lF="–",cF="⤤",uF="↗",dF="⇗",fF="↗",pF="≠",mF="≐̸",hF="",gF="",vF="",_F="",yF="≢",CF="⤨",bF="≂̸",kF="≫",wF="≪",EF=`
|
|
2
|
+
`,SF="∄",xF="∄",AF="𝔑",TF="𝔫",NF="≧̸",DF="≱",$F="≱",BF="≧̸",MF="⩾̸",LF="⩾̸",OF="⋙̸",VF="≵",IF="≫⃒",PF="≯",FF="≯",RF="≫̸",zF="↮",UF="⇎",qF="⫲",HF="∋",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="∤",_R="",yR=" ",CR="𝕟",bR="ℕ",kR="⫬",wR="¬",ER="≢",SR="≭",xR="∦",AR="∉",TR="≠",NR="≂̸",DR="∄",$R="≯",BR="≱",MR="≧̸",LR="≫̸",OR="≹",VR="⩾̸",IR="≵",PR="≎̸",FR="≏̸",RR="∉",zR="⋵̸",UR="⋹̸",qR="∉",HR="⋷",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="⋣",_z="⊂⃒",yz="⊈",Cz="⊁",bz="⪰̸",kz="⋡",wz="≿̸",Ez="⊃⃒",Sz="⊉",xz="≁",Az="≄",Tz="≇",Nz="≉",Dz="∤",$z="∦",Bz="∦",Mz="⫽⃥",Lz="∂̸",Oz="⨔",Vz="⊀",Iz="⋠",Pz="⊀",Fz="⪯̸",Rz="⪯̸",zz="⤳̸",Uz="↛",qz="⇏",Hz="↝̸",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="⊅",_U="⫆̸",yU="⊉",CU="⊃⃒",bU="⊉",kU="⫆̸",wU="≹",EU="Ñ",SU="ñ",xU="≸",AU="⋪",TU="⋬",NU="⋫",DU="⋭",$U="Ν",BU="ν",MU="#",LU="№",OU=" ",VU="≍⃒",IU="⊬",PU="⊭",FU="⊮",RU="⊯",zU="≥⃒",UU=">⃒",qU="⤄",HU="⧞",jU="⤂",WU="≤⃒",ZU="<⃒",KU="⊴⃒",GU="⤃",YU="⊵⃒",JU="∼⃒",XU="⤣",QU="↖",eq="⇖",tq="↖",nq="⤧",oq="Ó",rq="ó",iq="⊛",sq="Ô",aq="ô",lq="⊚",cq="О",uq="о",dq="⊝",fq="Ő",pq="ő",mq="⨸",hq="⊙",gq="⦼",vq="Œ",_q="œ",yq="⦿",Cq="𝔒",bq="𝔬",kq="˛",wq="Ò",Eq="ò",Sq="⧁",xq="⦵",Aq="Ω",Tq="∮",Nq="↺",Dq="⦾",$q="⦻",Bq="‾",Mq="⧀",Lq="Ō",Oq="ō",Vq="Ω",Iq="ω",Pq="Ο",Fq="ο",Rq="⦶",zq="⊖",Uq="𝕆",qq="𝕠",Hq="⦷",jq="“",Wq="‘",Zq="⦹",Kq="⊕",Gq="↻",Yq="⩔",Jq="∨",Xq="⩝",Qq="ℴ",eH="ℴ",tH="ª",nH="º",oH="⊶",rH="⩖",iH="⩗",sH="⩛",aH="Ⓢ",lH="𝒪",cH="ℴ",uH="Ø",dH="ø",fH="⊘",pH="Õ",mH="õ",hH="⨶",gH="⨷",vH="⊗",_H="Ö",yH="ö",CH="⌽",bH="‾",kH="⏞",wH="⎴",EH="⏜",SH="¶",xH="∥",AH="∥",TH="⫳",NH="⫽",DH="∂",$H="∂",BH="П",MH="п",LH="%",OH=".",VH="‰",IH="⊥",PH="‱",FH="𝔓",RH="𝔭",zH="Φ",UH="φ",qH="ϕ",HH="ℳ",jH="☎",WH="Π",ZH="π",KH="⋔",GH="ϖ",YH="ℏ",JH="ℎ",XH="ℏ",QH="⨣",ej="⊞",tj="⨢",nj="+",oj="∔",rj="⨥",ij="⩲",sj="±",aj="±",lj="⨦",cj="⨧",uj="±",dj="ℌ",fj="⨕",pj="𝕡",mj="ℙ",hj="£",gj="⪷",vj="⪻",_j="≺",yj="≼",Cj="⪷",bj="≺",kj="≼",wj="≺",Ej="⪯",Sj="≼",xj="≾",Aj="⪯",Tj="⪹",Nj="⪵",Dj="⋨",$j="⪯",Bj="⪳",Mj="≾",Lj="′",Oj="″",Vj="ℙ",Ij="⪹",Pj="⪵",Fj="⋨",Rj="∏",zj="∏",Uj="⌮",qj="⌒",Hj="⌓",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="∽̱",_W="Ŕ",yW="ŕ",CW="√",bW="⦳",kW="⟩",wW="⟫",EW="⦒",SW="⦥",xW="⟩",AW="»",TW="⥵",NW="⇥",DW="⤠",$W="⤳",BW="→",MW="↠",LW="⇒",OW="⤞",VW="↪",IW="↬",PW="⥅",FW="⥴",RW="⤖",zW="↣",UW="↝",qW="⤚",HW="⤜",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="ℜ",_Z="ℝ",yZ="ℜ",CZ="▭",bZ="®",kZ="®",wZ="∋",EZ="⇋",SZ="⥯",xZ="⥽",AZ="⌋",TZ="𝔯",NZ="ℜ",DZ="⥤",$Z="⇁",BZ="⇀",MZ="⥬",LZ="Ρ",OZ="ρ",VZ="ϱ",IZ="⟩",PZ="⇥",FZ="→",RZ="→",zZ="⇒",UZ="⇄",qZ="↣",HZ="⌉",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="⇄",_K="⇌",yK="",CK="⎱",bK="⎱",kK="⫮",wK="⟭",EK="⇾",SK="⟧",xK="⦆",AK="𝕣",TK="ℝ",NK="⨮",DK="⨵",$K="⥰",BK=")",MK="⦔",LK="⨒",OK="⇉",VK="⇛",IK="›",PK="𝓇",FK="ℛ",RK="↱",zK="↱",UK="]",qK="’",HK="’",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="⋩",_G="⨓",yG="≿",CG="С",bG="с",kG="⊡",wG="⋅",EG="⩦",SG="⤥",xG="↘",AG="⇘",TG="↘",NG="§",DG=";",$G="⤩",BG="∖",MG="∖",LG="✶",OG="𝔖",VG="𝔰",IG="⌢",PG="♯",FG="Щ",RG="щ",zG="Ш",UG="ш",qG="↓",HG="←",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="⌣",_Y="⪪",yY="⪬",CY="⪬︀",bY="Ь",kY="ь",wY="⌿",EY="⧄",SY="/",xY="𝕊",AY="𝕤",TY="♠",NY="♠",DY="∥",$Y="⊓",BY="⊓︀",MY="⊔",LY="⊔︀",OY="√",VY="⊏",IY="⊑",PY="⊏",FY="⊑",RY="⊐",zY="⊒",UY="⊐",qY="⊒",HY="□",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="⊆",_J="⫃",yJ="⫁",CJ="⫋",bJ="⊊",kJ="⪿",wJ="⥹",EJ="⊂",SJ="⋐",xJ="⊆",AJ="⫅",TJ="⊆",NJ="⊊",DJ="⫋",$J="⫇",BJ="⫕",MJ="⫓",LJ="⪸",OJ="≻",VJ="≽",IJ="≻",PJ="⪰",FJ="≽",RJ="≿",zJ="⪰",UJ="⪺",qJ="⪶",HJ="⋩",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="⊇",_X="⫆",yX="⊋",CX="⫌",bX="⫈",kX="⫔",wX="⫖",EX="⤦",SX="↙",xX="⇙",AX="↙",TX="⤪",NX="ß",DX=" ",$X="⌖",BX="Τ",MX="τ",LX="⎴",OX="Ť",VX="ť",IX="Ţ",PX="ţ",FX="Т",RX="т",zX="⃛",UX="⌕",qX="𝔗",HX="𝔱",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="⤨",_Q="⌶",yQ="⫱",CQ="⊤",bQ="𝕋",kQ="𝕥",wQ="⫚",EQ="⤩",SQ="‴",xQ="™",AQ="™",TQ="▵",NQ="▿",DQ="◃",$Q="⊴",BQ="≜",MQ="▹",LQ="⊵",OQ="◬",VQ="≜",IQ="⨺",PQ="⃛",FQ="⨹",RQ="⧍",zQ="⨻",UQ="⏢",qQ="𝒯",HQ="𝓉",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="⥮",_ee="⥾",yee="𝔘",Cee="𝔲",bee="Ù",kee="ù",wee="⥣",Eee="↿",See="↾",xee="▀",Aee="⌜",Tee="⌜",Nee="⌏",Dee="◸",$ee="Ū",Bee="ū",Mee="¨",Lee="_",Oee="⏟",Vee="⎵",Iee="⏝",Pee="⋃",Fee="⊎",Ree="Ų",zee="ų",Uee="𝕌",qee="𝕦",Hee="⤒",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="◹",_te="𝒰",yte="𝓊",Cte="⋰",bte="Ũ",kte="ũ",wte="▵",Ete="▴",Ste="⇈",xte="Ü",Ate="ü",Tte="⦧",Nte="⦜",Dte="ϵ",$te="ϰ",Bte="∅",Mte="ϕ",Lte="ϖ",Ote="∝",Vte="↕",Ite="⇕",Pte="ϱ",Fte="ς",Rte="⊊︀",zte="⫋︀",Ute="⊋︀",qte="⫌︀",Hte="ϑ",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="𝔙",_ne="𝔳",yne="⊲",Cne="⊂⃒",bne="⊃⃒",kne="𝕍",wne="𝕧",Ene="∝",Sne="⊳",xne="𝒱",Ane="𝓋",Tne="⫋︀",Nne="⊊︀",Dne="⫌︀",$ne="⊋︀",Bne="⊪",Mne="⦚",Lne="Ŵ",One="ŵ",Vne="⩟",Ine="∧",Pne="⋀",Fne="≙",Rne="℘",zne="𝔚",Une="𝔴",qne="𝕎",Hne="𝕨",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="𝒳",_oe="𝓍",yoe="⨆",Coe="⨄",boe="△",koe="⋁",woe="⋀",Eoe="Ý",Soe="ý",xoe="Я",Aoe="я",Toe="Ŷ",Noe="ŷ",Doe="Ы",$oe="ы",Boe="¥",Moe="𝔜",Loe="𝔶",Ooe="Ї",Voe="ї",Ioe="𝕐",Poe="𝕪",Foe="𝒴",Roe="𝓎",zoe="Ю",Uoe="ю",qoe="ÿ",Hoe="Ÿ",joe="Ź",Woe="ź",Zoe="Ž",Koe="ž",Goe="З",Yoe="з",Joe="Ż",Xoe="ż",Qoe="ℨ",ere="",tre="Ζ",nre="ζ",ore="𝔷",rre="ℨ",ire="Ж",sre="ж",are="⇝",lre="𝕫",cre="ℤ",ure="𝒵",dre="𝓏",fre="",pre="",mre={Aacute:Jk,aacute:Xk,Abreve:Qk,abreve:e9,ac:t9,acd:n9,acE:o9,Acirc:r9,acirc:i9,acute:s9,Acy:a9,acy:l9,AElig:c9,aelig:u9,af:d9,Afr:f9,afr:p9,Agrave:m9,agrave:h9,alefsym:g9,aleph:v9,Alpha:_9,alpha:y9,Amacr:C9,amacr:b9,amalg:k9,amp:w9,AMP:E9,andand:S9,And:x9,and:A9,andd:T9,andslope:N9,andv:D9,ang:$9,ange:B9,angle:M9,angmsdaa:L9,angmsdab:O9,angmsdac:V9,angmsdad:I9,angmsdae:P9,angmsdaf:F9,angmsdag:R9,angmsdah:z9,angmsd:U9,angrt:q9,angrtvb:H9,angrtvbd:j9,angsph:W9,angst:Z9,angzarr:K9,Aogon:G9,aogon:Y9,Aopf:J9,aopf:X9,apacir:Q9,ap:e4,apE:t4,ape:n4,apid:o4,apos:r4,ApplyFunction:i4,approx:s4,approxeq:a4,Aring:l4,aring:c4,Ascr:u4,ascr:d4,Assign:f4,ast:p4,asymp:m4,asympeq:h4,Atilde:g4,atilde:v4,Auml:_4,auml:y4,awconint:C4,awint:b4,backcong:k4,backepsilon:w4,backprime:E4,backsim:S4,backsimeq:x4,Backslash:A4,Barv:T4,barvee:N4,barwed:D4,Barwed:$4,barwedge:B4,bbrk:M4,bbrktbrk:L4,bcong:O4,Bcy:V4,bcy:I4,bdquo:P4,becaus:F4,because:R4,Because:z4,bemptyv:U4,bepsi:q4,bernou:H4,Bernoullis:j4,Beta:W4,beta:Z4,beth:K4,between:G4,Bfr:Y4,bfr:J4,bigcap:X4,bigcirc:Q4,bigcup:e8,bigodot:t8,bigoplus:n8,bigotimes:o8,bigsqcup:r8,bigstar:i8,bigtriangledown:s8,bigtriangleup:a8,biguplus:l8,bigvee:c8,bigwedge:u8,bkarow:d8,blacklozenge:f8,blacksquare:p8,blacktriangle:m8,blacktriangledown:h8,blacktriangleleft:g8,blacktriangleright:v8,blank:_8,blk12:y8,blk14:C8,blk34:b8,block:k8,bne:w8,bnequiv:E8,bNot:S8,bnot:x8,Bopf:A8,bopf:T8,bot:N8,bottom:D8,bowtie:$8,boxbox:B8,boxdl:M8,boxdL:L8,boxDl:O8,boxDL:V8,boxdr:I8,boxdR:P8,boxDr:F8,boxDR:R8,boxh:z8,boxH:U8,boxhd:q8,boxHd:H8,boxhD:j8,boxHD:W8,boxhu:Z8,boxHu:K8,boxhU:G8,boxHU:Y8,boxminus:J8,boxplus:X8,boxtimes:Q8,boxul:e6,boxuL:t6,boxUl:n6,boxUL:o6,boxur:r6,boxuR:i6,boxUr:s6,boxUR:a6,boxv:l6,boxV:c6,boxvh:u6,boxvH:d6,boxVh:f6,boxVH:p6,boxvl:m6,boxvL:h6,boxVl:g6,boxVL:v6,boxvr:_6,boxvR:y6,boxVr:C6,boxVR:b6,bprime:k6,breve:w6,Breve:E6,brvbar:S6,bscr:x6,Bscr:A6,bsemi:T6,bsim:N6,bsime:D6,bsolb:$6,bsol:B6,bsolhsub:M6,bull:L6,bullet:O6,bump:V6,bumpE:I6,bumpe:P6,Bumpeq:F6,bumpeq:R6,Cacute:z6,cacute:U6,capand:q6,capbrcup:H6,capcap:j6,cap:W6,Cap:Z6,capcup:K6,capdot:G6,CapitalDifferentialD:Y6,caps:J6,caret:X6,caron:Q6,Cayleys:ew,ccaps:tw,Ccaron:nw,ccaron:ow,Ccedil:rw,ccedil:iw,Ccirc:sw,ccirc:aw,Cconint:lw,ccups:cw,ccupssm:uw,Cdot:dw,cdot:fw,cedil:pw,Cedilla:mw,cemptyv:hw,cent:gw,centerdot:vw,CenterDot:_w,cfr:yw,Cfr:Cw,CHcy:bw,chcy:kw,check:ww,checkmark:Ew,Chi:Sw,chi:xw,circ:Aw,circeq:Tw,circlearrowleft:Nw,circlearrowright:Dw,circledast:$w,circledcirc:Bw,circleddash:Mw,CircleDot:Lw,circledR:Ow,circledS:Vw,CircleMinus:Iw,CirclePlus:Pw,CircleTimes:Fw,cir:Rw,cirE:zw,cire:Uw,cirfnint:qw,cirmid:Hw,cirscir:jw,ClockwiseContourIntegral:Ww,CloseCurlyDoubleQuote:Zw,CloseCurlyQuote:Kw,clubs:Gw,clubsuit:Yw,colon:Jw,Colon:Xw,Colone:Qw,colone:eE,coloneq:tE,comma:nE,commat:oE,comp:rE,compfn:iE,complement:sE,complexes:aE,cong:lE,congdot:cE,Congruent:uE,conint:dE,Conint:fE,ContourIntegral:pE,copf:mE,Copf:hE,coprod:gE,Coproduct:vE,copy:_E,COPY:yE,copysr:CE,CounterClockwiseContourIntegral:bE,crarr:kE,cross:wE,Cross:EE,Cscr:SE,cscr:xE,csub:AE,csube:TE,csup:NE,csupe:DE,ctdot:$E,cudarrl:BE,cudarrr:ME,cuepr:LE,cuesc:OE,cularr:VE,cularrp:IE,cupbrcap:PE,cupcap:FE,CupCap:RE,cup:zE,Cup:UE,cupcup:qE,cupdot:HE,cupor:jE,cups:WE,curarr:ZE,curarrm:KE,curlyeqprec:GE,curlyeqsucc:YE,curlyvee:JE,curlywedge:XE,curren:QE,curvearrowleft:eS,curvearrowright:tS,cuvee:nS,cuwed:oS,cwconint:rS,cwint:iS,cylcty:sS,dagger:aS,Dagger:lS,daleth:cS,darr:uS,Darr:dS,dArr:fS,dash:pS,Dashv:mS,dashv:hS,dbkarow:gS,dblac:vS,Dcaron:_S,dcaron:yS,Dcy:CS,dcy:bS,ddagger:kS,ddarr:wS,DD:ES,dd:SS,DDotrahd:xS,ddotseq:AS,deg:TS,Del:NS,Delta:DS,delta:$S,demptyv:BS,dfisht:MS,Dfr:LS,dfr:OS,dHar:VS,dharl:IS,dharr:PS,DiacriticalAcute:FS,DiacriticalDot:RS,DiacriticalDoubleAcute:zS,DiacriticalGrave:US,DiacriticalTilde:qS,diam:HS,diamond:jS,Diamond:WS,diamondsuit:ZS,diams:KS,die:GS,DifferentialD:YS,digamma:JS,disin:XS,div:QS,divide:ex,divideontimes:tx,divonx:nx,DJcy:ox,djcy:rx,dlcorn:ix,dlcrop:sx,dollar:ax,Dopf:lx,dopf:cx,Dot:ux,dot:dx,DotDot:fx,doteq:px,doteqdot:mx,DotEqual:hx,dotminus:gx,dotplus:vx,dotsquare:_x,doublebarwedge:yx,DoubleContourIntegral:Cx,DoubleDot:bx,DoubleDownArrow:kx,DoubleLeftArrow:wx,DoubleLeftRightArrow:Ex,DoubleLeftTee:Sx,DoubleLongLeftArrow:xx,DoubleLongLeftRightArrow:Ax,DoubleLongRightArrow:Tx,DoubleRightArrow:Nx,DoubleRightTee:Dx,DoubleUpArrow:$x,DoubleUpDownArrow:Bx,DoubleVerticalBar:Mx,DownArrowBar:Lx,downarrow:Ox,DownArrow:Vx,Downarrow:Ix,DownArrowUpArrow:Px,DownBreve:Fx,downdownarrows:Rx,downharpoonleft:zx,downharpoonright:Ux,DownLeftRightVector:qx,DownLeftTeeVector:Hx,DownLeftVectorBar:jx,DownLeftVector:Wx,DownRightTeeVector:Zx,DownRightVectorBar:Kx,DownRightVector:Gx,DownTeeArrow:Yx,DownTee:Jx,drbkarow:Xx,drcorn:Qx,drcrop:eA,Dscr:tA,dscr:nA,DScy:oA,dscy:rA,dsol:iA,Dstrok:sA,dstrok:aA,dtdot:lA,dtri:cA,dtrif:uA,duarr:dA,duhar:fA,dwangle:pA,DZcy:mA,dzcy:hA,dzigrarr:gA,Eacute:vA,eacute:_A,easter:yA,Ecaron:CA,ecaron:bA,Ecirc:kA,ecirc:wA,ecir:EA,ecolon:SA,Ecy:xA,ecy:AA,eDDot:TA,Edot:NA,edot:DA,eDot:$A,ee:BA,efDot:MA,Efr:LA,efr:OA,eg:VA,Egrave:IA,egrave:PA,egs:FA,egsdot:RA,el:zA,Element:UA,elinters:qA,ell:HA,els:jA,elsdot:WA,Emacr:ZA,emacr:KA,empty:GA,emptyset:YA,EmptySmallSquare:JA,emptyv:XA,EmptyVerySmallSquare:QA,emsp13:eT,emsp14:tT,emsp:nT,ENG:oT,eng:rT,ensp:iT,Eogon:sT,eogon:aT,Eopf:lT,eopf:cT,epar:uT,eparsl:dT,eplus:fT,epsi:pT,Epsilon:mT,epsilon:hT,epsiv:gT,eqcirc:vT,eqcolon:_T,eqsim:yT,eqslantgtr:CT,eqslantless:bT,Equal:kT,equals:wT,EqualTilde:ET,equest:ST,Equilibrium:xT,equiv:AT,equivDD:TT,eqvparsl:NT,erarr:DT,erDot:$T,escr:BT,Escr:MT,esdot:LT,Esim:OT,esim:VT,Eta:IT,eta:PT,ETH:FT,eth:RT,Euml:zT,euml:UT,euro:qT,excl:HT,exist:jT,Exists:WT,expectation:ZT,exponentiale:KT,ExponentialE:GT,fallingdotseq:YT,Fcy:JT,fcy:XT,female:QT,ffilig:eN,fflig:tN,ffllig:nN,Ffr:oN,ffr:rN,filig:iN,FilledSmallSquare:sN,FilledVerySmallSquare:aN,fjlig:lN,flat:cN,fllig:uN,fltns:dN,fnof:fN,Fopf:pN,fopf:mN,forall:hN,ForAll:gN,fork:vN,forkv:_N,Fouriertrf:yN,fpartint:CN,frac12:bN,frac13:kN,frac14:wN,frac15:EN,frac16:SN,frac18:xN,frac23:AN,frac25:TN,frac34:NN,frac35:DN,frac38:$N,frac45:BN,frac56:MN,frac58:LN,frac78:ON,frasl:VN,frown:IN,fscr:PN,Fscr:FN,gacute:RN,Gamma:zN,gamma:UN,Gammad:qN,gammad:HN,gap:jN,Gbreve:WN,gbreve:ZN,Gcedil:KN,Gcirc:GN,gcirc:YN,Gcy:JN,gcy:XN,Gdot:QN,gdot:eD,ge:tD,gE:nD,gEl:oD,gel:rD,geq:iD,geqq:sD,geqslant:aD,gescc:lD,ges:cD,gesdot:uD,gesdoto:dD,gesdotol:fD,gesl:pD,gesles:mD,Gfr:hD,gfr:gD,gg:vD,Gg:_D,ggg:yD,gimel:CD,GJcy:bD,gjcy:kD,gla:wD,gl:ED,glE:SD,glj:xD,gnap:AD,gnapprox:TD,gne:ND,gnE:DD,gneq:$D,gneqq:BD,gnsim:MD,Gopf:LD,gopf:OD,grave:VD,GreaterEqual:ID,GreaterEqualLess:PD,GreaterFullEqual:FD,GreaterGreater:RD,GreaterLess:zD,GreaterSlantEqual:UD,GreaterTilde:qD,Gscr:HD,gscr:jD,gsim:WD,gsime:ZD,gsiml:KD,gtcc:GD,gtcir:YD,gt:JD,GT:XD,Gt:QD,gtdot:e$,gtlPar:t$,gtquest:n$,gtrapprox:o$,gtrarr:r$,gtrdot:i$,gtreqless:s$,gtreqqless:a$,gtrless:l$,gtrsim:c$,gvertneqq:u$,gvnE:d$,Hacek:f$,hairsp:p$,half:m$,hamilt:h$,HARDcy:g$,hardcy:v$,harrcir:_$,harr:y$,hArr:C$,harrw:b$,Hat:k$,hbar:w$,Hcirc:E$,hcirc:S$,hearts:x$,heartsuit:A$,hellip:T$,hercon:N$,hfr:D$,Hfr:$$,HilbertSpace:B$,hksearow:M$,hkswarow:L$,hoarr:O$,homtht:V$,hookleftarrow:I$,hookrightarrow:P$,hopf:F$,Hopf:R$,horbar:z$,HorizontalLine:U$,hscr:q$,Hscr:H$,hslash:j$,Hstrok:W$,hstrok:Z$,HumpDownHump:K$,HumpEqual:G$,hybull:Y$,hyphen:J$,Iacute:X$,iacute:Q$,ic:eB,Icirc:tB,icirc:nB,Icy:oB,icy:rB,Idot:iB,IEcy:sB,iecy:aB,iexcl:lB,iff:cB,ifr:uB,Ifr:dB,Igrave:fB,igrave:pB,ii:mB,iiiint:hB,iiint:gB,iinfin:vB,iiota:_B,IJlig:yB,ijlig:CB,Imacr:bB,imacr:kB,image:wB,ImaginaryI:EB,imagline:SB,imagpart:xB,imath:AB,Im:TB,imof:NB,imped:DB,Implies:$B,incare:BB,in:"∈",infin:MB,infintie:LB,inodot:OB,intcal:VB,int:IB,Int:PB,integers:FB,Integral:RB,intercal:zB,Intersection:UB,intlarhk:qB,intprod:HB,InvisibleComma:jB,InvisibleTimes:WB,IOcy:ZB,iocy:KB,Iogon:GB,iogon:YB,Iopf:JB,iopf:XB,Iota:QB,iota:eM,iprod:tM,iquest:nM,iscr:oM,Iscr:rM,isin:iM,isindot:sM,isinE:aM,isins:lM,isinsv:cM,isinv:uM,it:dM,Itilde:fM,itilde:pM,Iukcy:mM,iukcy:hM,Iuml:gM,iuml:vM,Jcirc:_M,jcirc:yM,Jcy:CM,jcy:bM,Jfr:kM,jfr:wM,jmath:EM,Jopf:SM,jopf:xM,Jscr:AM,jscr:TM,Jsercy:NM,jsercy:DM,Jukcy:$M,jukcy:BM,Kappa:MM,kappa:LM,kappav:OM,Kcedil:VM,kcedil:IM,Kcy:PM,kcy:FM,Kfr:RM,kfr:zM,kgreen:UM,KHcy:qM,khcy:HM,KJcy:jM,kjcy:WM,Kopf:ZM,kopf:KM,Kscr:GM,kscr:YM,lAarr:JM,Lacute:XM,lacute:QM,laemptyv:eL,lagran:tL,Lambda:nL,lambda:oL,lang:rL,Lang:iL,langd:sL,langle:aL,lap:lL,Laplacetrf:cL,laquo:uL,larrb:dL,larrbfs:fL,larr:pL,Larr:mL,lArr:hL,larrfs:gL,larrhk:vL,larrlp:_L,larrpl:yL,larrsim:CL,larrtl:bL,latail:kL,lAtail:wL,lat:EL,late:SL,lates:xL,lbarr:AL,lBarr:TL,lbbrk:NL,lbrace:DL,lbrack:$L,lbrke:BL,lbrksld:ML,lbrkslu:LL,Lcaron:OL,lcaron:VL,Lcedil:IL,lcedil:PL,lceil:FL,lcub:RL,Lcy:zL,lcy:UL,ldca:qL,ldquo:HL,ldquor:jL,ldrdhar:WL,ldrushar:ZL,ldsh:KL,le:GL,lE:YL,LeftAngleBracket:JL,LeftArrowBar:XL,leftarrow:QL,LeftArrow:eO,Leftarrow:tO,LeftArrowRightArrow:nO,leftarrowtail:oO,LeftCeiling:rO,LeftDoubleBracket:iO,LeftDownTeeVector:sO,LeftDownVectorBar:aO,LeftDownVector:lO,LeftFloor:cO,leftharpoondown:uO,leftharpoonup:dO,leftleftarrows:fO,leftrightarrow:pO,LeftRightArrow:mO,Leftrightarrow:hO,leftrightarrows:gO,leftrightharpoons:vO,leftrightsquigarrow:_O,LeftRightVector:yO,LeftTeeArrow:CO,LeftTee:bO,LeftTeeVector:kO,leftthreetimes:wO,LeftTriangleBar:EO,LeftTriangle:SO,LeftTriangleEqual:xO,LeftUpDownVector:AO,LeftUpTeeVector:TO,LeftUpVectorBar:NO,LeftUpVector:DO,LeftVectorBar:$O,LeftVector:BO,lEg:MO,leg:LO,leq:OO,leqq:VO,leqslant:IO,lescc:PO,les:FO,lesdot:RO,lesdoto:zO,lesdotor:UO,lesg:qO,lesges:HO,lessapprox:jO,lessdot:WO,lesseqgtr:ZO,lesseqqgtr:KO,LessEqualGreater:GO,LessFullEqual:YO,LessGreater:JO,lessgtr:XO,LessLess:QO,lesssim:eV,LessSlantEqual:tV,LessTilde:nV,lfisht:oV,lfloor:rV,Lfr:iV,lfr:sV,lg:aV,lgE:lV,lHar:cV,lhard:uV,lharu:dV,lharul:fV,lhblk:pV,LJcy:mV,ljcy:hV,llarr:gV,ll:vV,Ll:_V,llcorner:yV,Lleftarrow:CV,llhard:bV,lltri:kV,Lmidot:wV,lmidot:EV,lmoustache:SV,lmoust:xV,lnap:AV,lnapprox:TV,lne:NV,lnE:DV,lneq:$V,lneqq:BV,lnsim:MV,loang:LV,loarr:OV,lobrk:VV,longleftarrow:IV,LongLeftArrow:PV,Longleftarrow:FV,longleftrightarrow:RV,LongLeftRightArrow:zV,Longleftrightarrow:UV,longmapsto:qV,longrightarrow:HV,LongRightArrow:jV,Longrightarrow:WV,looparrowleft:ZV,looparrowright:KV,lopar:GV,Lopf:YV,lopf:JV,loplus:XV,lotimes:QV,lowast:eI,lowbar:tI,LowerLeftArrow:nI,LowerRightArrow:oI,loz:rI,lozenge:iI,lozf:sI,lpar:aI,lparlt:lI,lrarr:cI,lrcorner:uI,lrhar:dI,lrhard:fI,lrm:pI,lrtri:mI,lsaquo:hI,lscr:gI,Lscr:vI,lsh:_I,Lsh:yI,lsim:CI,lsime:bI,lsimg:kI,lsqb:wI,lsquo:EI,lsquor:SI,Lstrok:xI,lstrok:AI,ltcc:TI,ltcir:NI,lt:DI,LT:$I,Lt:BI,ltdot:MI,lthree:LI,ltimes:OI,ltlarr:VI,ltquest:II,ltri:PI,ltrie:FI,ltrif:RI,ltrPar:zI,lurdshar:UI,luruhar:qI,lvertneqq:HI,lvnE:jI,macr:WI,male:ZI,malt:KI,maltese:GI,Map:"⤅",map:YI,mapsto:JI,mapstodown:XI,mapstoleft:QI,mapstoup:eP,marker:tP,mcomma:nP,Mcy:oP,mcy:rP,mdash:iP,mDDot:sP,measuredangle:aP,MediumSpace:lP,Mellintrf:cP,Mfr:uP,mfr:dP,mho:fP,micro:pP,midast:mP,midcir:hP,mid:gP,middot:vP,minusb:_P,minus:yP,minusd:CP,minusdu:bP,MinusPlus:kP,mlcp:wP,mldr:EP,mnplus:SP,models:xP,Mopf:AP,mopf:TP,mp:NP,mscr:DP,Mscr:$P,mstpos:BP,Mu:MP,mu:LP,multimap:OP,mumap:VP,nabla:IP,Nacute:PP,nacute:FP,nang:RP,nap:zP,napE:UP,napid:qP,napos:HP,napprox:jP,natural:WP,naturals:ZP,natur:KP,nbsp:GP,nbump:YP,nbumpe:JP,ncap:XP,Ncaron:QP,ncaron:eF,Ncedil:tF,ncedil:nF,ncong:oF,ncongdot:rF,ncup:iF,Ncy:sF,ncy:aF,ndash:lF,nearhk:cF,nearr:uF,neArr:dF,nearrow:fF,ne:pF,nedot:mF,NegativeMediumSpace:hF,NegativeThickSpace:gF,NegativeThinSpace:vF,NegativeVeryThinSpace:_F,nequiv:yF,nesear:CF,nesim:bF,NestedGreaterGreater:kF,NestedLessLess:wF,NewLine:EF,nexist:SF,nexists:xF,Nfr:AF,nfr:TF,ngE:NF,nge:DF,ngeq:$F,ngeqq:BF,ngeqslant:MF,nges:LF,nGg:OF,ngsim:VF,nGt:IF,ngt:PF,ngtr:FF,nGtv:RF,nharr:zF,nhArr:UF,nhpar:qF,ni:HF,nis:jF,nisd:WF,niv:ZF,NJcy:KF,njcy:GF,nlarr:YF,nlArr:JF,nldr:XF,nlE:QF,nle:eR,nleftarrow:tR,nLeftarrow:nR,nleftrightarrow:oR,nLeftrightarrow:rR,nleq:iR,nleqq:sR,nleqslant:aR,nles:lR,nless:cR,nLl:uR,nlsim:dR,nLt:fR,nlt:pR,nltri:mR,nltrie:hR,nLtv:gR,nmid:vR,NoBreak:_R,NonBreakingSpace:yR,nopf:CR,Nopf:bR,Not:kR,not:wR,NotCongruent:ER,NotCupCap:SR,NotDoubleVerticalBar:xR,NotElement:AR,NotEqual:TR,NotEqualTilde:NR,NotExists:DR,NotGreater:$R,NotGreaterEqual:BR,NotGreaterFullEqual:MR,NotGreaterGreater:LR,NotGreaterLess:OR,NotGreaterSlantEqual:VR,NotGreaterTilde:IR,NotHumpDownHump:PR,NotHumpEqual:FR,notin:RR,notindot:zR,notinE:UR,notinva:qR,notinvb:HR,notinvc:jR,NotLeftTriangleBar:WR,NotLeftTriangle:ZR,NotLeftTriangleEqual:KR,NotLess:GR,NotLessEqual:YR,NotLessGreater:JR,NotLessLess:XR,NotLessSlantEqual:QR,NotLessTilde:ez,NotNestedGreaterGreater:tz,NotNestedLessLess:nz,notni:oz,notniva:rz,notnivb:iz,notnivc:sz,NotPrecedes:az,NotPrecedesEqual:lz,NotPrecedesSlantEqual:cz,NotReverseElement:uz,NotRightTriangleBar:dz,NotRightTriangle:fz,NotRightTriangleEqual:pz,NotSquareSubset:mz,NotSquareSubsetEqual:hz,NotSquareSuperset:gz,NotSquareSupersetEqual:vz,NotSubset:_z,NotSubsetEqual:yz,NotSucceeds:Cz,NotSucceedsEqual:bz,NotSucceedsSlantEqual:kz,NotSucceedsTilde:wz,NotSuperset:Ez,NotSupersetEqual:Sz,NotTilde:xz,NotTildeEqual:Az,NotTildeFullEqual:Tz,NotTildeTilde:Nz,NotVerticalBar:Dz,nparallel:$z,npar:Bz,nparsl:Mz,npart:Lz,npolint:Oz,npr:Vz,nprcue:Iz,nprec:Pz,npreceq:Fz,npre:Rz,nrarrc:zz,nrarr:Uz,nrArr:qz,nrarrw:Hz,nrightarrow:jz,nRightarrow:Wz,nrtri:Zz,nrtrie:Kz,nsc:Gz,nsccue:Yz,nsce:Jz,Nscr:Xz,nscr:Qz,nshortmid:eU,nshortparallel:tU,nsim:nU,nsime:oU,nsimeq:rU,nsmid:iU,nspar:sU,nsqsube:aU,nsqsupe:lU,nsub:cU,nsubE:uU,nsube:dU,nsubset:fU,nsubseteq:pU,nsubseteqq:mU,nsucc:hU,nsucceq:gU,nsup:vU,nsupE:_U,nsupe:yU,nsupset:CU,nsupseteq:bU,nsupseteqq:kU,ntgl:wU,Ntilde:EU,ntilde:SU,ntlg:xU,ntriangleleft:AU,ntrianglelefteq:TU,ntriangleright:NU,ntrianglerighteq:DU,Nu:$U,nu:BU,num:MU,numero:LU,numsp:OU,nvap:VU,nvdash:IU,nvDash:PU,nVdash:FU,nVDash:RU,nvge:zU,nvgt:UU,nvHarr:qU,nvinfin:HU,nvlArr:jU,nvle:WU,nvlt:ZU,nvltrie:KU,nvrArr:GU,nvrtrie:YU,nvsim:JU,nwarhk:XU,nwarr:QU,nwArr:eq,nwarrow:tq,nwnear:nq,Oacute:oq,oacute:rq,oast:iq,Ocirc:sq,ocirc:aq,ocir:lq,Ocy:cq,ocy:uq,odash:dq,Odblac:fq,odblac:pq,odiv:mq,odot:hq,odsold:gq,OElig:vq,oelig:_q,ofcir:yq,Ofr:Cq,ofr:bq,ogon:kq,Ograve:wq,ograve:Eq,ogt:Sq,ohbar:xq,ohm:Aq,oint:Tq,olarr:Nq,olcir:Dq,olcross:$q,oline:Bq,olt:Mq,Omacr:Lq,omacr:Oq,Omega:Vq,omega:Iq,Omicron:Pq,omicron:Fq,omid:Rq,ominus:zq,Oopf:Uq,oopf:qq,opar:Hq,OpenCurlyDoubleQuote:jq,OpenCurlyQuote:Wq,operp:Zq,oplus:Kq,orarr:Gq,Or:Yq,or:Jq,ord:Xq,order:Qq,orderof:eH,ordf:tH,ordm:nH,origof:oH,oror:rH,orslope:iH,orv:sH,oS:aH,Oscr:lH,oscr:cH,Oslash:uH,oslash:dH,osol:fH,Otilde:pH,otilde:mH,otimesas:hH,Otimes:gH,otimes:vH,Ouml:_H,ouml:yH,ovbar:CH,OverBar:bH,OverBrace:kH,OverBracket:wH,OverParenthesis:EH,para:SH,parallel:xH,par:AH,parsim:TH,parsl:NH,part:DH,PartialD:$H,Pcy:BH,pcy:MH,percnt:LH,period:OH,permil:VH,perp:IH,pertenk:PH,Pfr:FH,pfr:RH,Phi:zH,phi:UH,phiv:qH,phmmat:HH,phone:jH,Pi:WH,pi:ZH,pitchfork:KH,piv:GH,planck:YH,planckh:JH,plankv:XH,plusacir:QH,plusb:ej,pluscir:tj,plus:nj,plusdo:oj,plusdu:rj,pluse:ij,PlusMinus:sj,plusmn:aj,plussim:lj,plustwo:cj,pm:uj,Poincareplane:dj,pointint:fj,popf:pj,Popf:mj,pound:hj,prap:gj,Pr:vj,pr:_j,prcue:yj,precapprox:Cj,prec:bj,preccurlyeq:kj,Precedes:wj,PrecedesEqual:Ej,PrecedesSlantEqual:Sj,PrecedesTilde:xj,preceq:Aj,precnapprox:Tj,precneqq:Nj,precnsim:Dj,pre:$j,prE:Bj,precsim:Mj,prime:Lj,Prime:Oj,primes:Vj,prnap:Ij,prnE:Pj,prnsim:Fj,prod:Rj,Product:zj,profalar:Uj,profline:qj,profsurf:Hj,prop:jj,Proportional:Wj,Proportion:Zj,propto:Kj,prsim:Gj,prurel:Yj,Pscr:Jj,pscr:Xj,Psi:Qj,psi:eW,puncsp:tW,Qfr:nW,qfr:oW,qint:rW,qopf:iW,Qopf:sW,qprime:aW,Qscr:lW,qscr:cW,quaternions:uW,quatint:dW,quest:fW,questeq:pW,quot:mW,QUOT:hW,rAarr:gW,race:vW,Racute:_W,racute:yW,radic:CW,raemptyv:bW,rang:kW,Rang:wW,rangd:EW,range:SW,rangle:xW,raquo:AW,rarrap:TW,rarrb:NW,rarrbfs:DW,rarrc:$W,rarr:BW,Rarr:MW,rArr:LW,rarrfs:OW,rarrhk:VW,rarrlp:IW,rarrpl:PW,rarrsim:FW,Rarrtl:RW,rarrtl:zW,rarrw:UW,ratail:qW,rAtail:HW,ratio:jW,rationals:WW,rbarr:ZW,rBarr:KW,RBarr:GW,rbbrk:YW,rbrace:JW,rbrack:XW,rbrke:QW,rbrksld:eZ,rbrkslu:tZ,Rcaron:nZ,rcaron:oZ,Rcedil:rZ,rcedil:iZ,rceil:sZ,rcub:aZ,Rcy:lZ,rcy:cZ,rdca:uZ,rdldhar:dZ,rdquo:fZ,rdquor:pZ,rdsh:mZ,real:hZ,realine:gZ,realpart:vZ,reals:_Z,Re:yZ,rect:CZ,reg:bZ,REG:kZ,ReverseElement:wZ,ReverseEquilibrium:EZ,ReverseUpEquilibrium:SZ,rfisht:xZ,rfloor:AZ,rfr:TZ,Rfr:NZ,rHar:DZ,rhard:$Z,rharu:BZ,rharul:MZ,Rho:LZ,rho:OZ,rhov:VZ,RightAngleBracket:IZ,RightArrowBar:PZ,rightarrow:FZ,RightArrow:RZ,Rightarrow:zZ,RightArrowLeftArrow:UZ,rightarrowtail:qZ,RightCeiling:HZ,RightDoubleBracket:jZ,RightDownTeeVector:WZ,RightDownVectorBar:ZZ,RightDownVector:KZ,RightFloor:GZ,rightharpoondown:YZ,rightharpoonup:JZ,rightleftarrows:XZ,rightleftharpoons:QZ,rightrightarrows:eK,rightsquigarrow:tK,RightTeeArrow:nK,RightTee:oK,RightTeeVector:rK,rightthreetimes:iK,RightTriangleBar:sK,RightTriangle:aK,RightTriangleEqual:lK,RightUpDownVector:cK,RightUpTeeVector:uK,RightUpVectorBar:dK,RightUpVector:fK,RightVectorBar:pK,RightVector:mK,ring:hK,risingdotseq:gK,rlarr:vK,rlhar:_K,rlm:yK,rmoustache:CK,rmoust:bK,rnmid:kK,roang:wK,roarr:EK,robrk:SK,ropar:xK,ropf:AK,Ropf:TK,roplus:NK,rotimes:DK,RoundImplies:$K,rpar:BK,rpargt:MK,rppolint:LK,rrarr:OK,Rrightarrow:VK,rsaquo:IK,rscr:PK,Rscr:FK,rsh:RK,Rsh:zK,rsqb:UK,rsquo:qK,rsquor:HK,rthree:jK,rtimes:WK,rtri:ZK,rtrie:KK,rtrif:GK,rtriltri:YK,RuleDelayed:JK,ruluhar:XK,rx:QK,Sacute:eG,sacute:tG,sbquo:nG,scap:oG,Scaron:rG,scaron:iG,Sc:sG,sc:aG,sccue:lG,sce:cG,scE:uG,Scedil:dG,scedil:fG,Scirc:pG,scirc:mG,scnap:hG,scnE:gG,scnsim:vG,scpolint:_G,scsim:yG,Scy:CG,scy:bG,sdotb:kG,sdot:wG,sdote:EG,searhk:SG,searr:xG,seArr:AG,searrow:TG,sect:NG,semi:DG,seswar:$G,setminus:BG,setmn:MG,sext:LG,Sfr:OG,sfr:VG,sfrown:IG,sharp:PG,SHCHcy:FG,shchcy:RG,SHcy:zG,shcy:UG,ShortDownArrow:qG,ShortLeftArrow:HG,shortmid:jG,shortparallel:WG,ShortRightArrow:ZG,ShortUpArrow:KG,shy:GG,Sigma:YG,sigma:JG,sigmaf:XG,sigmav:QG,sim:eY,simdot:tY,sime:nY,simeq:oY,simg:rY,simgE:iY,siml:sY,simlE:aY,simne:lY,simplus:cY,simrarr:uY,slarr:dY,SmallCircle:fY,smallsetminus:pY,smashp:mY,smeparsl:hY,smid:gY,smile:vY,smt:_Y,smte:yY,smtes:CY,SOFTcy:bY,softcy:kY,solbar:wY,solb:EY,sol:SY,Sopf:xY,sopf:AY,spades:TY,spadesuit:NY,spar:DY,sqcap:$Y,sqcaps:BY,sqcup:MY,sqcups:LY,Sqrt:OY,sqsub:VY,sqsube:IY,sqsubset:PY,sqsubseteq:FY,sqsup:RY,sqsupe:zY,sqsupset:UY,sqsupseteq:qY,square:HY,Square:jY,SquareIntersection:WY,SquareSubset:ZY,SquareSubsetEqual:KY,SquareSuperset:GY,SquareSupersetEqual:YY,SquareUnion:JY,squarf:XY,squ:QY,squf:eJ,srarr:tJ,Sscr:nJ,sscr:oJ,ssetmn:rJ,ssmile:iJ,sstarf:sJ,Star:aJ,star:lJ,starf:cJ,straightepsilon:uJ,straightphi:dJ,strns:fJ,sub:pJ,Sub:mJ,subdot:hJ,subE:gJ,sube:vJ,subedot:_J,submult:yJ,subnE:CJ,subne:bJ,subplus:kJ,subrarr:wJ,subset:EJ,Subset:SJ,subseteq:xJ,subseteqq:AJ,SubsetEqual:TJ,subsetneq:NJ,subsetneqq:DJ,subsim:$J,subsub:BJ,subsup:MJ,succapprox:LJ,succ:OJ,succcurlyeq:VJ,Succeeds:IJ,SucceedsEqual:PJ,SucceedsSlantEqual:FJ,SucceedsTilde:RJ,succeq:zJ,succnapprox:UJ,succneqq:qJ,succnsim:HJ,succsim:jJ,SuchThat:WJ,sum:ZJ,Sum:KJ,sung:GJ,sup1:YJ,sup2:JJ,sup3:XJ,sup:QJ,Sup:eX,supdot:tX,supdsub:nX,supE:oX,supe:rX,supedot:iX,Superset:sX,SupersetEqual:aX,suphsol:lX,suphsub:cX,suplarr:uX,supmult:dX,supnE:fX,supne:pX,supplus:mX,supset:hX,Supset:gX,supseteq:vX,supseteqq:_X,supsetneq:yX,supsetneqq:CX,supsim:bX,supsub:kX,supsup:wX,swarhk:EX,swarr:SX,swArr:xX,swarrow:AX,swnwar:TX,szlig:NX,Tab:DX,target:$X,Tau:BX,tau:MX,tbrk:LX,Tcaron:OX,tcaron:VX,Tcedil:IX,tcedil:PX,Tcy:FX,tcy:RX,tdot:zX,telrec:UX,Tfr:qX,tfr:HX,there4:jX,therefore:WX,Therefore:ZX,Theta:KX,theta:GX,thetasym:YX,thetav:JX,thickapprox:XX,thicksim:QX,ThickSpace:eQ,ThinSpace:tQ,thinsp:nQ,thkap:oQ,thksim:rQ,THORN:iQ,thorn:sQ,tilde:aQ,Tilde:lQ,TildeEqual:cQ,TildeFullEqual:uQ,TildeTilde:dQ,timesbar:fQ,timesb:pQ,times:mQ,timesd:hQ,tint:gQ,toea:vQ,topbot:_Q,topcir:yQ,top:CQ,Topf:bQ,topf:kQ,topfork:wQ,tosa:EQ,tprime:SQ,trade:xQ,TRADE:AQ,triangle:TQ,triangledown:NQ,triangleleft:DQ,trianglelefteq:$Q,triangleq:BQ,triangleright:MQ,trianglerighteq:LQ,tridot:OQ,trie:VQ,triminus:IQ,TripleDot:PQ,triplus:FQ,trisb:RQ,tritime:zQ,trpezium:UQ,Tscr:qQ,tscr:HQ,TScy:jQ,tscy:WQ,TSHcy:ZQ,tshcy:KQ,Tstrok:GQ,tstrok:YQ,twixt:JQ,twoheadleftarrow:XQ,twoheadrightarrow:QQ,Uacute:eee,uacute:tee,uarr:nee,Uarr:oee,uArr:ree,Uarrocir:iee,Ubrcy:see,ubrcy:aee,Ubreve:lee,ubreve:cee,Ucirc:uee,ucirc:dee,Ucy:fee,ucy:pee,udarr:mee,Udblac:hee,udblac:gee,udhar:vee,ufisht:_ee,Ufr:yee,ufr:Cee,Ugrave:bee,ugrave:kee,uHar:wee,uharl:Eee,uharr:See,uhblk:xee,ulcorn:Aee,ulcorner:Tee,ulcrop:Nee,ultri:Dee,Umacr:$ee,umacr:Bee,uml:Mee,UnderBar:Lee,UnderBrace:Oee,UnderBracket:Vee,UnderParenthesis:Iee,Union:Pee,UnionPlus:Fee,Uogon:Ree,uogon:zee,Uopf:Uee,uopf:qee,UpArrowBar:Hee,uparrow:jee,UpArrow:Wee,Uparrow:Zee,UpArrowDownArrow:Kee,updownarrow:Gee,UpDownArrow:Yee,Updownarrow:Jee,UpEquilibrium:Xee,upharpoonleft:Qee,upharpoonright:ete,uplus:tte,UpperLeftArrow:nte,UpperRightArrow:ote,upsi:rte,Upsi:ite,upsih:ste,Upsilon:ate,upsilon:lte,UpTeeArrow:cte,UpTee:ute,upuparrows:dte,urcorn:fte,urcorner:pte,urcrop:mte,Uring:hte,uring:gte,urtri:vte,Uscr:_te,uscr:yte,utdot:Cte,Utilde:bte,utilde:kte,utri:wte,utrif:Ete,uuarr:Ste,Uuml:xte,uuml:Ate,uwangle:Tte,vangrt:Nte,varepsilon:Dte,varkappa:$te,varnothing:Bte,varphi:Mte,varpi:Lte,varpropto:Ote,varr:Vte,vArr:Ite,varrho:Pte,varsigma:Fte,varsubsetneq:Rte,varsubsetneqq:zte,varsupsetneq:Ute,varsupsetneqq:qte,vartheta:Hte,vartriangleleft:jte,vartriangleright:Wte,vBar:Zte,Vbar:Kte,vBarv:Gte,Vcy:Yte,vcy:Jte,vdash:Xte,vDash:Qte,Vdash:ene,VDash:tne,Vdashl:nne,veebar:one,vee:rne,Vee:ine,veeeq:sne,vellip:ane,verbar:lne,Verbar:cne,vert:une,Vert:dne,VerticalBar:fne,VerticalLine:pne,VerticalSeparator:mne,VerticalTilde:hne,VeryThinSpace:gne,Vfr:vne,vfr:_ne,vltri:yne,vnsub:Cne,vnsup:bne,Vopf:kne,vopf:wne,vprop:Ene,vrtri:Sne,Vscr:xne,vscr:Ane,vsubnE:Tne,vsubne:Nne,vsupnE:Dne,vsupne:$ne,Vvdash:Bne,vzigzag:Mne,Wcirc:Lne,wcirc:One,wedbar:Vne,wedge:Ine,Wedge:Pne,wedgeq:Fne,weierp:Rne,Wfr:zne,wfr:Une,Wopf:qne,wopf:Hne,wp:jne,wr:Wne,wreath:Zne,Wscr:Kne,wscr:Gne,xcap:Yne,xcirc:Jne,xcup:Xne,xdtri:Qne,Xfr:eoe,xfr:toe,xharr:noe,xhArr:ooe,Xi:roe,xi:ioe,xlarr:soe,xlArr:aoe,xmap:loe,xnis:coe,xodot:uoe,Xopf:doe,xopf:foe,xoplus:poe,xotime:moe,xrarr:hoe,xrArr:goe,Xscr:voe,xscr:_oe,xsqcup:yoe,xuplus:Coe,xutri:boe,xvee:koe,xwedge:woe,Yacute:Eoe,yacute:Soe,YAcy:xoe,yacy:Aoe,Ycirc:Toe,ycirc:Noe,Ycy:Doe,ycy:$oe,yen:Boe,Yfr:Moe,yfr:Loe,YIcy:Ooe,yicy:Voe,Yopf:Ioe,yopf:Poe,Yscr:Foe,yscr:Roe,YUcy:zoe,yucy:Uoe,yuml:qoe,Yuml:Hoe,Zacute:joe,zacute:Woe,Zcaron:Zoe,zcaron:Koe,Zcy:Goe,zcy:Yoe,Zdot:Joe,zdot:Xoe,zeetrf:Qoe,ZeroWidthSpace:ere,Zeta:tre,zeta:nre,zfr:ore,Zfr:rre,ZHcy:ire,zhcy:sre,zigrarr:are,zopf:lre,Zopf:cre,Zscr:ure,zscr:dre,zwj:fre,zwnj:pre};var om=mre,mu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Zr={},Hd={};function hre(t){var e,n,o=Hd[t];if(o)return o;for(o=Hd[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 za(t,e,n){var o,i,s,a,l,c="";for(typeof e!="string"&&(n=e,e=za.defaultChars),typeof n>"u"&&(n=!0),l=hre(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}za.defaultChars=";/?:@&=+$,-_.!~*'()#";za.componentChars="-_.!~*'()";var gre=za,jd={};function vre(t){var e,n,o=jd[t];if(o)return o;for(o=jd[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 Ua(t,e){var n;return typeof e!="string"&&(e=Ua.defaultChars),n=vre(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var i,s,a,l,c,u,d,f="";for(i=0,s=o.length;i<s;i+=3){if(a=parseInt(o.slice(i+1,i+3),16),a<128){f+=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?f+="��":f+=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?f+="���":f+=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?f+="����":(d-=65536,f+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}f+="�"}return f})}Ua.defaultChars=";/?:@&=+$,#";Ua.componentChars="";var _re=Ua,yre=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 Cre=/^([a-z0-9.+-]+:)/i,bre=/:[0-9]*$/,kre=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,wre=["<",">",'"',"`"," ","\r",`
|
|
3
|
+
`," "],Ere=["{","}","|","\\","^","`"].concat(wre),Sre=["'"].concat(Ere),Wd=["%","/","?",";","#"].concat(Sre),Zd=["/","?","#"],xre=255,Kd=/^[+a-z0-9A-Z_-]{0,63}$/,Are=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Gd={javascript:!0,"javascript:":!0},Yd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Tre(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=kre.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=Cre.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&&Gd[u])&&(l=l.substr(2),this.slashes=!0)),!Gd[u]&&(a||u&&!Yd[u])){var d=-1;for(n=0;n<Zd.length;n++)s=l.indexOf(Zd[n]),s!==-1&&(d===-1||s<d)&&(d=s);var f,p;for(d===-1?p=l.lastIndexOf("@"):p=l.lastIndexOf("@",d),p!==-1&&(f=l.slice(0,p),l=l.slice(p+1),this.auth=f),d=-1,n=0;n<Wd.length;n++)s=l.indexOf(Wd[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 g=this.hostname.split(/\./);for(n=0,o=g.length;n<o;n++){var y=g[n];if(y&&!y.match(Kd)){for(var C="",v=0,_=y.length;v<_;v++)y.charCodeAt(v)>127?C+="x":C+=y[v];if(!C.match(Kd)){var b=g.slice(0,n),w=g.slice(n+1),k=y.match(Are);k&&(b.push(k[1]),w.unshift(k[2])),w.length&&(l=w.join(".")+l),this.hostname=b.join(".");break}}}}this.hostname.length>xre&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var T=l.indexOf("#");T!==-1&&(this.hash=l.substr(T),l=l.slice(0,T));var A=l.indexOf("?");return A!==-1&&(this.search=l.substr(A),l=l.slice(0,A)),l&&(this.pathname=l),Yd[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};ra.prototype.parseHost=function(t){var e=bre.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 Nre=Tre;Zr.encode=gre;Zr.decode=_re;Zr.format=yre;Zr.parse=Nre;var Do={},El,Jd;function rm(){return Jd||(Jd=1,El=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),El}var Sl,Xd;function im(){return Xd||(Xd=1,Sl=/[\0-\x1F\x7F-\x9F]/),Sl}var xl,Qd;function Dre(){return Qd||(Qd=1,xl=/[\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]/),xl}var Al,e1;function sm(){return e1||(e1=1,Al=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Al}var t1;function $re(){return t1||(t1=1,Do.Any=rm(),Do.Cc=im(),Do.Cf=Dre(),Do.P=mu,Do.Z=sm()),Do}(function(t){function e(B){return Object.prototype.toString.call(B)}function n(B){return e(B)==="[object String]"}var o=Object.prototype.hasOwnProperty;function i(B,V){return o.call(B,V)}function s(B){var V=Array.prototype.slice.call(arguments,1);return V.forEach(function(I){if(I){if(typeof I!="object")throw new TypeError(I+"must be object");Object.keys(I).forEach(function(j){B[j]=I[j]})}}),B}function a(B,V,I){return[].concat(B.slice(0,V),I,B.slice(V+1))}function l(B){return!(B>=55296&&B<=57343||B>=64976&&B<=65007||(B&65535)===65535||(B&65535)===65534||B>=0&&B<=8||B===11||B>=14&&B<=31||B>=127&&B<=159||B>1114111)}function c(B){if(B>65535){B-=65536;var V=55296+(B>>10),I=56320+(B&1023);return String.fromCharCode(V,I)}return String.fromCharCode(B)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(u.source+"|"+d.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,m=om;function h(B,V){var I;return i(m,V)?m[V]:V.charCodeAt(0)===35&&p.test(V)&&(I=V[1].toLowerCase()==="x"?parseInt(V.slice(2),16):parseInt(V.slice(1),10),l(I))?c(I):B}function g(B){return B.indexOf("\\")<0?B:B.replace(u,"$1")}function y(B){return B.indexOf("\\")<0&&B.indexOf("&")<0?B:B.replace(f,function(V,I,j){return I||h(V,j)})}var C=/[&<>"]/,v=/[&<>"]/g,_={"&":"&","<":"<",">":">",'"':"""};function b(B){return _[B]}function w(B){return C.test(B)?B.replace(v,b):B}var k=/[.?*+^$[\]\\(){}|-]/g;function T(B){return B.replace(k,"\\$&")}function A(B){switch(B){case 9:case 32:return!0}return!1}function S(B){if(B>=8192&&B<=8202)return!0;switch(B){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 E=mu;function D(B){return E.test(B)}function x(B){switch(B){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 $(B){return B=B.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(B=B.replace(/ẞ/g,"ß")),B.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=Zr,t.lib.ucmicro=$re(),t.assign=s,t.isString=n,t.has=i,t.unescapeMd=g,t.unescapeAll=y,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=w,t.arrayReplaceAt=a,t.isSpace=A,t.isWhiteSpace=S,t.isMdAsciiPunct=x,t.isPunctChar=D,t.escapeRE=T,t.normalizeReference=$})($e);var qa={},Bre=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},n1=$e.unescapeAll,Mre=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=n1(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=n1(e.slice(n,a)),l.pos=a,l.ok=!0),l},Lre=$e.unescapeAll,Ore=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=Lre(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=Bre;qa.parseLinkDestination=Mre;qa.parseLinkTitle=Ore;var Vre=$e.assign,Ire=$e.unescapeAll,Yo=$e.escapeHtml,Bn={};Bn.code_inline=function(t,e,n,o,i){var s=t[e];return"<code"+i.renderAttrs(s)+">"+Yo(s.content)+"</code>"};Bn.code_block=function(t,e,n,o,i){var s=t[e];return"<pre"+i.renderAttrs(s)+"><code>"+Yo(t[e].content)+`</code></pre>
|
|
4
4
|
`};Bn.fence=function(t,e,n,o,i){var s=t[e],a=s.info?Ire(s.info).trim():"",l="",c="",u,d,f,p,m;return a&&(f=a.split(/(\s+)/g),l=f[0],c=f.slice(2).join("")),n.highlight?u=n.highlight(s.content,l,c)||Yo(s.content):u=Yo(s.content),u.indexOf("<pre")===0?u+`
|
|
5
5
|
`:a?(d=s.attrIndex("class"),p=s.attrs?s.attrs.slice():[],d<0?p.push(["class",n.langPrefix+l]):(p[d]=p[d].slice(),p[d][1]+=" "+n.langPrefix+l),m={attrs:p},"<pre><code"+i.renderAttrs(m)+">"+u+`</code></pre>
|
|
6
6
|
`):"<pre><code"+i.renderAttrs(s)+">"+u+`</code></pre>
|
|
@@ -13,47 +13,47 @@
|
|
|
13
13
|
`),s+=(l.nesting===-1?"</":"<")+l.tag,s+=this.renderAttrs(l),l.nesting===0&&o.xhtmlOut&&(s+=" /"),l.block&&(a=!0,l.nesting===1&&n+1<e.length&&(i=e[n+1],(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===l.tag)&&(a=!1))),s+=a?`>
|
|
14
14
|
`:">",s)};Kr.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};Kr.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};Kr.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 Pre=Kr;function hn(){this.__rules__=[],this.__cache__=null}hn.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};hn.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))})})};hn.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};hn.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};hn.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};hn.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};hn.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};hn.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};hn.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};hn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var hu=hn,Fre=/\r\n?|\n/g,Rre=/\0/g,zre=function(e){var n;n=e.src.replace(Fre,`
|
|
16
|
-
`),n=n.replace(Rre,"�"),e.src=n},Ure=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)},qre=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)},Hre=$e.arrayReplaceAt;function jre(t){return/^<a[>\s]/i.test(t)}function Wre(t){return/^<\/a\s*>/i.test(t)}var Zre=function(e){var n,o,i,s,a,l,c,u,d,f,p,m,h,g,y,C,v=e.tokens,_;if(e.md.options.linkify){for(o=0,i=v.length;o<i;o++)if(!(v[o].type!=="inline"||!e.md.linkify.pretest(v[o].content)))for(s=v[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"&&(jre(l.content)&&h>0&&h--,Wre(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,p=0,_.length>0&&_[0].index===0&&n>0&&s[n-1].type==="text_special"&&(_=_.slice(1)),u=0;u<_.length;u++)g=_[u].url,y=e.md.normalizeLink(g),e.md.validateLink(y)&&(C=_[u].text,_[u].schema?_[u].schema==="mailto:"&&!/^mailto:/i.test(C)?C=e.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=e.md.normalizeLinkText(C):C=e.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,""),f=_[u].index,f>p&&(a=new e.Token("text","",0),a.content=d.slice(p,f),a.level=m,c.push(a)),a=new e.Token("link_open","a",1),a.attrs=[["href",y]],a.level=m++,a.markup="linkify",a.info="auto",c.push(a),a=new e.Token("text","",0),a.content=C,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),p=_[u].lastIndex);p<d.length&&(a=new e.Token("text","",0),a.content=d.slice(p),a.level=m,c.push(a)),v[o].children=s=Hre(s,n,c)}}}},am=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Kre=/\((c|tm|r)\)/i,Gre=/\((c|tm|r)\)/ig,Yre={c:"©",r:"®",tm:"™"};function Jre(t,e){return Yre[e.toLowerCase()]}function Xre(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(Gre,Jre)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function Qre(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&am.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 eie=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(Kre.test(e.tokens[n].content)&&Xre(e.tokens[n].children),am.test(e.tokens[n].content)&&Qre(e.tokens[n].children))},o1=$e.isWhiteSpace,r1=$e.isPunctChar,i1=$e.isMdAsciiPunct,tie=/['"]/,s1=/['"]/g,a1="’";function $s(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function nie(t,e){var n,o,i,s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,b,w,k;for(b=[],n=0;n<t.length;n++){for(o=t[n],c=t[n].level,v=b.length-1;v>=0&&!(b[v].level<=c);v--);if(b.length=v+1,o.type==="text"){i=o.content,a=0,l=i.length;e:for(;a<l&&(s1.lastIndex=a,s=s1.exec(i),!!s);){if(y=C=!0,a=s.index+1,_=s[0]==="'",d=32,s.index-1>=0)d=i.charCodeAt(s.index-1);else for(v=n-1;v>=0&&!(t[v].type==="softbreak"||t[v].type==="hardbreak");v--)if(t[v].content){d=t[v].content.charCodeAt(t[v].content.length-1);break}if(f=32,a<l)f=i.charCodeAt(a);else for(v=n+1;v<t.length&&!(t[v].type==="softbreak"||t[v].type==="hardbreak");v++)if(t[v].content){f=t[v].content.charCodeAt(0);break}if(p=i1(d)||r1(String.fromCharCode(d)),m=i1(f)||r1(String.fromCharCode(f)),h=o1(d),g=o1(f),g?y=!1:m&&(h||p||(y=!1)),h?C=!1:p&&(g||m||(C=!1)),f===34&&s[0]==='"'&&d>=48&&d<=57&&(C=y=!1),y&&C&&(y=p,C=m),!y&&!C){_&&(o.content=$s(o.content,s.index,a1));continue}if(C){for(v=b.length-1;v>=0&&(u=b[v],!(b[v].level<c));v--)if(u.single===_&&b[v].level===c){u=b[v],_?(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=v;continue e}}y?b.push({token:n,pos:s.index,single:_,level:c}):C&&_&&(o.content=$s(o.content,s.index,a1))}}}}var oie=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!tie.test(e.tokens[n].content)||nie(e.tokens[n].children,e)},rie=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 Gr(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}Gr.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};Gr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Gr.prototype.attrSet=function(e,n){var o=this.attrIndex(e),i=[e,n];o<0?this.attrPush(i):this.attrs[o]=i};Gr.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o};Gr.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 gu=Gr,iie=gu;function lm(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}lm.prototype.Token=iie;var sie=lm,aie=hu,
|
|
17
|
-
`,a.map=[n,e.line],!0},die=function(e,n,o,i){var s,a,l,c,u,d,f,p=!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)||(f=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)))){p=!0;break}return a=e.sCount[n],e.line=c+(p?1:0),d=e.push("fence","code",0),d.info=l,d.content=e.getLines(n+1,c,a,!0),d.markup=f,d.map=[n,e.line],!0},fie=$e.isSpace,pie=function(e,n,o,i){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,b,w,k,A,T,S=e.lineMax,E=e.bMarks[n]+e.tShift[n],D=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(E)!==62)return!1;if(i)return!0;for(h=[],g=[],v=[],_=[],k=e.md.block.ruler.getRules("blockquote"),C=e.parentType,e.parentType="blockquote",p=n;p<o&&(T=e.sCount[p]<e.blkIndent,E=e.bMarks[p]+e.tShift[p],D=e.eMarks[p],!(E>=D));p++){if(e.src.charCodeAt(E++)===62&&!T){for(c=e.sCount[p]+1,e.src.charCodeAt(E)===32?(E++,c++,s=!1,b=!0):e.src.charCodeAt(E)===9?(b=!0,(e.bsCount[p]+c)%4===3?(E++,c++,s=!1):s=!0):b=!1,m=c,h.push(e.bMarks[p]),e.bMarks[p]=E;E<D&&(a=e.src.charCodeAt(E),fie(a));){a===9?m+=4-(m+e.bsCount[p]+(s?1:0))%4:m++;E++}d=E>=D,g.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(b?1:0),v.push(e.sCount[p]),e.sCount[p]=m-c,_.push(e.tShift[p]),e.tShift[p]=E-e.bMarks[p];continue}if(d)break;for(w=!1,l=0,u=k.length;l<u;l++)if(k[l](e,p,o,!0)){w=!0;break}if(w){e.lineMax=p,e.blkIndent!==0&&(h.push(e.bMarks[p]),g.push(e.bsCount[p]),_.push(e.tShift[p]),v.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}h.push(e.bMarks[p]),g.push(e.bsCount[p]),_.push(e.tShift[p]),v.push(e.sCount[p]),e.sCount[p]=-1}for(y=e.blkIndent,e.blkIndent=0,A=e.push("blockquote_open","blockquote",1),A.markup=">",A.map=f=[n,0],e.md.block.tokenize(e,n,p),A=e.push("blockquote_close","blockquote",-1),A.markup=">",e.lineMax=S,e.parentType=C,f[1]=e.line,l=0;l<_.length;l++)e.bMarks[l+n]=h[l],e.tShift[l+n]=_[l],e.sCount[l+n]=v[l],e.bsCount[l+n]=g[l];return e.blkIndent=y,!0},mie=$e.isSpace,hie=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&&!mie(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)},cm=$e.isSpace;function c1(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),!cm(s))?-1:o}function u1(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),!cm(n))?-1:i}function gie(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 vie=function(e,n,o,i){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,b,w,k,A,T,S,E,D,x,$,B,V,I=n,j=!1,F=!0;if(e.sCount[I]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[I]-e.listIndent>=4&&e.sCount[I]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.sCount[I]>=e.blkIndent&&(j=!0),(E=u1(e,I))>=0){if(f=!0,x=e.bMarks[I]+e.tShift[I],C=Number(e.src.slice(x,E-1)),j&&C!==1)return!1}else if((E=c1(e,I))>=0)f=!1;else return!1;if(j&&e.skipSpaces(E)>=e.eMarks[I])return!1;if(i)return!0;for(y=e.src.charCodeAt(E-1),g=e.tokens.length,f?(V=e.push("ordered_list_open","ol",1),C!==1&&(V.attrs=[["start",C]])):V=e.push("bullet_list_open","ul",1),V.map=h=[I,0],V.markup=String.fromCharCode(y),D=!1,B=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";I<o;){for(S=E,v=e.eMarks[I],d=_=e.sCount[I]+E-(e.bMarks[I]+e.tShift[I]);S<v;){if(s=e.src.charCodeAt(S),s===9)_+=4-(_+e.bsCount[I])%4;else if(s===32)_++;else break;S++}if(a=S,a>=v?u=1:u=_-d,u>4&&(u=1),c=d+u,V=e.push("list_item_open","li",1),V.markup=String.fromCharCode(y),V.map=p=[I,0],f&&(V.info=e.src.slice(x,E-1)),T=e.tight,A=e.tShift[I],k=e.sCount[I],b=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[I]=a-e.bMarks[I],e.sCount[I]=_,a>=v&&e.isEmpty(I+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,I,o,!0),(!e.tight||D)&&(F=!1),D=e.line-I>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=b,e.tShift[I]=A,e.sCount[I]=k,e.tight=T,V=e.push("list_item_close","li",-1),V.markup=String.fromCharCode(y),I=e.line,p[1]=I,I>=o||e.sCount[I]<e.blkIndent||e.sCount[I]-e.blkIndent>=4)break;for($=!1,l=0,m=B.length;l<m;l++)if(B[l](e,I,o,!0)){$=!0;break}if($)break;if(f){if(E=u1(e,I),E<0)break;x=e.bMarks[I]+e.tShift[I]}else if(E=c1(e,I),E<0)break;if(y!==e.src.charCodeAt(E-1))break}return f?V=e.push("ordered_list_close","ol",-1):V=e.push("bullet_list_close","ul",-1),V.markup=String.fromCharCode(y),h[1]=I,e.line=I,e.parentType=w,F&&gie(e,g),!0},_ie=$e.normalizeReference,Bs=$e.isSpace,yie=function(e,n,o,i){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,b,w=0,k=e.bMarks[n]+e.tShift[n],A=e.eMarks[n],T=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";T<c&&!e.isEmpty(T);T++)if(!(e.sCount[T]-e.blkIndent>3)&&!(e.sCount[T]<0)){for(v=!1,d=0,f=_.length;d<f;d++)if(_[d](e,T,c,!0)){v=!0;break}if(v)break}for(C=e.getLines(n,T,e.blkIndent,!1).trim(),A=C.length,k=1;k<A;k++){if(s=C.charCodeAt(k),s===91)return!1;if(s===93){m=k;break}else s===10?w++:s===92&&(k++,k<A&&C.charCodeAt(k)===10&&w++)}if(m<0||C.charCodeAt(m+1)!==58)return!1;for(k=m+2;k<A;k++)if(s=C.charCodeAt(k),s===10)w++;else if(!Bs(s))break;if(g=e.md.helpers.parseLinkDestination(C,k,A),!g.ok||(u=e.md.normalizeLink(g.str),!e.md.validateLink(u)))return!1;for(k=g.pos,w+=g.lines,a=k,l=w,y=k;k<A;k++)if(s=C.charCodeAt(k),s===10)w++;else if(!Bs(s))break;for(g=e.md.helpers.parseLinkTitle(C,k,A),k<A&&y!==k&&g.ok?(b=g.str,k=g.pos,w+=g.lines):(b="",k=a,w=l);k<A&&(s=C.charCodeAt(k),!!Bs(s));)k++;if(k<A&&C.charCodeAt(k)!==10&&b)for(b="",k=a,w=l;k<A&&(s=C.charCodeAt(k),!!Bs(s));)k++;return k<A&&C.charCodeAt(k)!==10||(p=_ie(C.slice(1,m)),!p)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:b,href:u}),e.parentType=h,e.line=n+w+1),!0)},Cie=["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"],Ha={},bie="[a-zA-Z_:][a-zA-Z0-9:._-]*",kie="[^\"'=<>`\\x00-\\x20]+",wie="'[^']*'",Eie='"[^"]*"',Sie="(?:"+kie+"|"+wie+"|"+Eie+")",xie="(?:\\s+"+bie+"(?:\\s*=\\s*"+Sie+")?)",um="<[A-Za-z][A-Za-z0-9\\-]*"+xie+"*\\s*\\/?>",dm="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Tie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Aie="<[?][\\s\\S]*?[?]>",Nie="<![A-Z]+\\s+[^>]*>",Die="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",$ie=new RegExp("^(?:"+um+"|"+dm+"|"+Tie+"|"+Aie+"|"+Nie+"|"+Die+")"),Bie=new RegExp("^(?:"+um+"|"+dm+")");Ha.HTML_TAG_RE=$ie;Ha.HTML_OPEN_CLOSE_TAG_RE=Bie;var Mie=Cie,Lie=Ha.HTML_OPEN_CLOSE_TAG_RE,hr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Mie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Lie.source+"\\s*$"),/^$/,!1]],Oie=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<hr.length&&!hr[s][0].test(c);s++);if(s===hr.length)return!1;if(i)return hr[s][2];if(a=n+1,!hr[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),hr[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},d1=$e.isSpace,Vie=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&&!d1(s)?!1:(i||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&d1(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)},Iie=function(e,n,o){var i,s,a,l,c,u,d,f,p,m=n+1,h,g=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&&(p=e.src.charCodeAt(u),(p===45||p===61)&&(u=e.skipChars(u,p),u=e.skipSpaces(u),u>=d)))){f=p===61?1:2;break}if(!(e.sCount[m]<0)){for(s=!1,a=0,l=g.length;a<l;a++)if(g[a](e,m,o,!0)){s=!0;break}if(s)break}}return f?(i=e.getLines(n,m,e.blkIndent,!1).trim(),e.line=m+1,c=e.push("heading_open","h"+String(f),1),c.markup=String.fromCharCode(p),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(f),-1),c.markup=String.fromCharCode(p),e.parentType=h,!0):!1},Pie=function(e,n,o){var i,s,a,l,c,u,d=n+1,f=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=f.length;a<l;a++)if(f[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},fm=gu,ja=$e.isSpace;function Mn(t,e,n,o){var i,s,a,l,c,u,d,f;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,f=!1,a=l=u=d=0,c=s.length;l<c;l++){if(i=s.charCodeAt(l),!f)if(ja(i)){u++,i===9?d+=4-d%4:d++;continue}else f=!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),f=!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}Mn.prototype.push=function(t,e,n){var o=new fm(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Mn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Mn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Mn.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!ja(n));e++);return e};Mn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!ja(this.src.charCodeAt(--e)))return e+1;return e};Mn.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};Mn.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};Mn.prototype.getLines=function(e,n,o,i){var s,a,l,c,u,d,f,p=e;if(e>=n)return"";for(d=new Array(n-e),s=0;p<n;p++,s++){for(a=0,f=c=this.bMarks[p],p+1<n||i?u=this.eMarks[p]+1:u=this.eMarks[p];c<u&&a<o;){if(l=this.src.charCodeAt(c),ja(l))l===9?a+=4-(a+this.bsCount[p])%4:a++;else if(c-f<this.tShift[p])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("")};Mn.prototype.Token=fm;var Fie=Mn,Rie=hu,Ms=[["table",cie,["paragraph","reference"]],["code",uie],["fence",die,["paragraph","reference","blockquote","list"]],["blockquote",pie,["paragraph","reference","blockquote","list"]],["hr",hie,["paragraph","reference","blockquote","list"]],["list",vie,["paragraph","reference","blockquote"]],["reference",yie],["html_block",Oie,["paragraph","reference","blockquote"]],["heading",Vie,["paragraph","reference","blockquote"]],["lheading",Iie],["paragraph",Pie]];function Wa(){this.ruler=new Rie;for(var t=0;t<Ms.length;t++)this.ruler.push(Ms[t][0],Ms[t][1],{alt:(Ms[t][2]||[]).slice()})}Wa.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)}};Wa.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))};Wa.prototype.State=Fie;var zie=Wa;function Uie(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 qie=function(e,n){for(var o=e.pos;o<e.posMax&&!Uie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},Hie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,jie=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(Hie),!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)},Wie=$e.isSpace,Zie=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&&Wie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},Kie=$e.isSpace,_u=[];for(var f1=0;f1<256;f1++)_u.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){_u[t.charCodeAt(0)]=1});var Gie=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),!!Kie(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},Yie=function(e,n){var o,i,s,a,l,c,u,d,f=e.pos,p=e.src.charCodeAt(f);if(p!==96)return!1;for(o=f,f++,i=e.posMax;f<i&&e.src.charCodeAt(f)===96;)f++;if(s=e.src.slice(o,f),u=s.length,e.backticksScanned&&(e.backticks[u]||0)<=o)return n||(e.pending+=s),e.pos+=u,!0;for(c=f;(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(f,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},Za={};Za.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 p1(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)}}Za.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(p1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&p1(e,o[n].delimiters)};var Ka={};Ka.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 m1(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--))}Ka.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(m1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&m1(e,o[n].delimiters)};var Jie=$e.normalizeReference,$l=$e.isSpace,Xie=function(e,n){var o,i,s,a,l,c,u,d,f,p="",m="",h=e.pos,g=e.posMax,y=e.pos,C=!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<g&&e.src.charCodeAt(c)===40){for(C=!1,c++;c<g&&(i=e.src.charCodeAt(c),!(!$l(i)&&i!==10));c++);if(c>=g)return!1;if(y=c,u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),u.ok){for(p=e.md.normalizeLink(u.str),e.md.validateLink(p)?c=u.pos:p="",y=c;c<g&&(i=e.src.charCodeAt(c),!(!$l(i)&&i!==10));c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<g&&y!==c&&u.ok)for(m=u.str,c=u.pos;c<g&&(i=e.src.charCodeAt(c),!(!$l(i)&&i!==10));c++);}(c>=g||e.src.charCodeAt(c)!==41)&&(C=!0),c++}if(C){if(typeof e.env.references>"u")return!1;if(c<g&&e.src.charCodeAt(c)===91?(y=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?s=e.src.slice(y,c++):c=a+1):c=a+1,s||(s=e.src.slice(l,a)),d=e.env.references[Jie(s)],!d)return e.pos=h,!1;p=d.href,m=d.title}return n||(e.pos=l,e.posMax=a,f=e.push("link_open","a",1),f.attrs=o=[["href",p]],m&&o.push(["title",m]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,f=e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0},Qie=$e.normalizeReference,Bl=$e.isSpace,ese=function(e,n){var o,i,s,a,l,c,u,d,f,p,m,h,g,y="",C=e.pos,v=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<v&&e.src.charCodeAt(u)===40){for(u++;u<v&&(i=e.src.charCodeAt(u),!(!Bl(i)&&i!==10));u++);if(u>=v)return!1;for(g=u,f=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),f.ok&&(y=e.md.normalizeLink(f.str),e.md.validateLink(y)?u=f.pos:y=""),g=u;u<v&&(i=e.src.charCodeAt(u),!(!Bl(i)&&i!==10));u++);if(f=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<v&&g!==u&&f.ok)for(p=f.str,u=f.pos;u<v&&(i=e.src.charCodeAt(u),!(!Bl(i)&&i!==10));u++);else p="";if(u>=v||e.src.charCodeAt(u)!==41)return e.pos=C,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<v&&e.src.charCodeAt(u)===91?(g=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?a=e.src.slice(g,u++):u=l+1):u=l+1,a||(a=e.src.slice(c,l)),d=e.env.references[Qie(a)],!d)return e.pos=C,!1;y=d.href,p=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",y],["alt",""]],m.children=h,m.content=s,p&&o.push(["title",p])),e.pos=u,e.posMax=v,!0},tse=/^([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])?)*)$/,nse=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,ose=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),nse.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):tse.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},rse=Ha.HTML_TAG_RE;function ise(t){return/^<a[>\s]/i.test(t)}function sse(t){return/^<\/a\s*>/i.test(t)}function ase(t){var e=t|32;return e>=97&&e<=122}var lse=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&&!ase(o))||(i=e.src.slice(l).match(rse),!i)?!1:(n||(a=e.push("html_inline","",0),a.content=i[0],ise(a.content)&&e.linkLevel++,sse(a.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},h1=om,cse=$e.has,use=$e.isValidEntityCode,g1=$e.fromCodePoint,dse=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,fse=/^&([a-z][a-z0-9]{1,31});/i,pse=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(dse),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=use(i)?g1(i):g1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(fse),s&&cse(h1,s[1]))return n||(a=e.push("text_special","",0),a.content=h1[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function v1(t){var e,n,o,i,s,a,l,c,u={},d=t.length;if(d){var f=0,p=-2,m=[];for(e=0;e<d;e++)if(o=t[e],m.push(0),(t[f].marker!==o.marker||p!==o.token-1)&&(f=e),p=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=f-m[f]-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,p=-2;break}a!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var mse=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(v1(e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&v1(o[n].delimiters)},hse=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)},yu=gu,_1=$e.isWhiteSpace,y1=$e.isPunctChar,C1=$e.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 yu("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 yu(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,f,p=!0,m=!0,h=this.posMax,g=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<h&&this.src.charCodeAt(n)===g;)n++;return s=n-t,i=n<h?this.src.charCodeAt(n):32,u=C1(o)||y1(String.fromCharCode(o)),f=C1(i)||y1(String.fromCharCode(i)),c=_1(o),d=_1(i),d?p=!1:f&&(c||u||(p=!1)),c?m=!1:u&&(d||f||(m=!1)),e?(a=p,l=m):(a=p&&(!m||u),l=m&&(!p||f)),{can_open:a,can_close:l,length:s}};ss.prototype.Token=yu;var gse=ss,b1=hu,Ml=[["text",qie],["linkify",jie],["newline",Zie],["escape",Gie],["backticks",Yie],["strikethrough",Za.tokenize],["emphasis",Ka.tokenize],["link",Xie],["image",ese],["autolink",ose],["html_inline",lse],["entity",pse]],Ll=[["balance_pairs",mse],["strikethrough",Za.postProcess],["emphasis",Ka.postProcess],["fragments_join",hse]];function as(){var t;for(this.ruler=new b1,t=0;t<Ml.length;t++)this.ruler.push(Ml[t][0],Ml[t][1]);for(this.ruler2=new b1,t=0;t<Ll.length;t++)this.ruler2.push(Ll[t][0],Ll[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=gse;var vse=as,Ol,k1;function _se(){return k1||(k1=1,Ol=function(t){var e={};t=t||{},e.src_Any=rm().source,e.src_Cc=im().source,e.src_Z=sm().source,e.src_P=mu.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}),Ol}function pc(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 Ga(t){return Object.prototype.toString.call(t)}function yse(t){return Ga(t)==="[object String]"}function Cse(t){return Ga(t)==="[object Object]"}function bse(t){return Ga(t)==="[object RegExp]"}function w1(t){return Ga(t)==="[object Function]"}function kse(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var pm={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function wse(t){return Object.keys(t||{}).reduce(function(e,n){return e||pm.hasOwnProperty(n)},!1)}var Ese={"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}}},Sse="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]",xse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Tse(t){t.__index__=-1,t.__text_cache__=""}function Ase(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function E1(){return function(t,e){e.normalize(t)}}function ia(t){var e=t.re=_se()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Sse),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,Cse(c)){bse(c.validate)?u.validate=Ase(c.validate):w1(c.validate)?u.validate=c.validate:s(l,c),w1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=E1();return}if(yse(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:E1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(kse).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"),Tse(t)}function Nse(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 mc(t,e){var n=new Nse(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||wse(t)&&(e=t,t={}),this.__opts__=pc({},pm,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=pc({},Ese,t),this.__compiled__={},this.__tlds__=xse,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__=pc(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(mc(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)o.push(mc(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,mc(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 Dse=qt;const Sr=2147483647,En=36,Cu=1,qi=26,$se=38,Bse=700,mm=72,hm=128,gm="-",Mse=/^xn--/,Lse=/[^\0-\x7F]/,Ose=/[\x2E\u3002\uFF0E\uFF61]/g,Vse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Vl=En-Cu,Sn=Math.floor,Il=String.fromCharCode;function ao(t){throw new RangeError(Vse[t])}function Ise(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function vm(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(Ose,".");const i=t.split("."),s=Ise(i,e).join(".");return o+s}function bu(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 _m=t=>String.fromCodePoint(...t),Pse=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:En},S1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},ym=function(t,e,n){let o=0;for(t=n?Sn(t/Bse):t>>1,t+=Sn(t/e);t>Vl*qi>>1;o+=En)t=Sn(t/Vl);return Sn(o+(Vl+1)*t/(t+$se))},ku=function(t){const e=[],n=t.length;let o=0,i=hm,s=mm,a=t.lastIndexOf(gm);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&ao("not-basic"),e.push(t.charCodeAt(l));for(let l=a>0?a+1:0;l<n;){const c=o;for(let d=1,f=En;;f+=En){l>=n&&ao("invalid-input");const p=Pse(t.charCodeAt(l++));p>=En&&ao("invalid-input"),p>Sn((Sr-o)/d)&&ao("overflow"),o+=p*d;const m=f<=s?Cu:f>=s+qi?qi:f-s;if(p<m)break;const h=En-m;d>Sn(Sr/h)&&ao("overflow"),d*=h}const u=e.length+1;s=ym(o-c,u,c==0),Sn(o/u)>Sr-i&&ao("overflow"),i+=Sn(o/u),o%=u,e.splice(o++,0,i)}return String.fromCodePoint(...e)},wu=function(t){const e=[];t=bu(t);const n=t.length;let o=hm,i=0,s=mm;for(const c of t)c<128&&e.push(Il(c));const a=e.length;let l=a;for(a&&e.push(gm);l<n;){let c=Sr;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>Sn((Sr-i)/u)&&ao("overflow"),i+=(c-o)*u,o=c;for(const d of t)if(d<o&&++i>Sr&&ao("overflow"),d===o){let f=i;for(let p=En;;p+=En){const m=p<=s?Cu:p>=s+qi?qi:p-s;if(f<m)break;const h=f-m,g=En-m;e.push(Il(S1(m+h%g,0))),f=Sn(h/g)}e.push(Il(S1(f,0))),s=ym(i,u,l===a),i=0,++l}++i,++o}return e.join("")},Cm=function(t){return vm(t,function(e){return Mse.test(e)?ku(e.slice(4).toLowerCase()):e})},bm=function(t){return vm(t,function(e){return Lse.test(e)?"xn--"+wu(e):e})},Fse={version:"2.1.0",ucs2:{decode:bu,encode:_m},decode:ku,encode:wu,toASCII:bm,toUnicode:Cm},Rse=Object.freeze(Object.defineProperty({__proto__:null,decode:ku,default:Fse,encode:wu,toASCII:bm,toUnicode:Cm,ucs2decode:bu,ucs2encode:_m},Symbol.toStringTag,{value:"Module"})),zse=l7(Rse);var Use={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},qse={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"]}}},Hse={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=$e,jse=qa,Wse=Pre,Zse=lie,Kse=zie,Gse=vse,Yse=Dse,Fo=Zr,km=zse,Jse={default:Use,zero:qse,commonmark:Hse},Xse=/^(vbscript|javascript|file|data):/,Qse=/^data:image\/(gif|png|jpeg|webp);/;function eae(t){var e=t.trim().toLowerCase();return Xse.test(e)?!!Qse.test(e):!0}var wm=["http:","https:","mailto:"];function tae(t){var e=Fo.parse(t,!0);if(e.hostname&&(!e.protocol||wm.indexOf(e.protocol)>=0))try{e.hostname=km.toASCII(e.hostname)}catch{}return Fo.encode(Fo.format(e))}function nae(t){var e=Fo.parse(t,!0);if(e.hostname&&(!e.protocol||wm.indexOf(e.protocol)>=0))try{e.hostname=km.toUnicode(e.hostname)}catch{}return Fo.decode(Fo.format(e),Fo.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 Gse,this.block=new Kse,this.core=new Zse,this.renderer=new Wse,this.linkify=new Yse,this.validateLink=eae,this.normalizeLink=tae,this.normalizeLinkText=nae,this.utils=Di,this.helpers=Di.assign({},jse),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=Jse[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 oae=nn,rae=oae;const iae=a7(rae);/*! @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 x1(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 sae(t){if(Array.isArray(t))return t}function aae(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 lae(){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 cae(t,e){return sae(t)||aae(t,e)||uae(t,e)||lae()}function uae(t,e){if(t){if(typeof t=="string")return x1(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)?x1(t,e):void 0}}const Em=Object.entries,T1=Object.setPrototypeOf,dae=Object.isFrozen,fae=Object.getPrototypeOf,pae=Object.getOwnPropertyDescriptor;let pt=Object.freeze,gt=Object.seal,Cr=Object.create,Sm=typeof Reflect<"u"&&Reflect,hc=Sm.apply,gc=Sm.construct;pt||(pt=function(e){return e});gt||(gt=function(e){return e});hc||(hc=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)});gc||(gc=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 gr=et(Array.prototype.forEach),mae=et(Array.prototype.lastIndexOf),A1=et(Array.prototype.pop),vr=et(Array.prototype.push),hae=et(Array.prototype.splice),co=Array.isArray,Si=et(String.prototype.toLowerCase),Pl=et(String.prototype.toString),N1=et(String.prototype.match),_i=et(String.prototype.replace),D1=et(String.prototype.indexOf),gae=et(String.prototype.trim),vae=et(Number.prototype.toString),_ae=et(Boolean.prototype.toString),$1=typeof BigInt>"u"?null:et(BigInt.prototype.toString),B1=typeof Symbol>"u"?null:et(Symbol.prototype.toString),at=et(Object.prototype.hasOwnProperty),yi=et(Object.prototype.toString),st=et(RegExp.prototype.test),$o=yae(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 hc(t,e,o)}}function yae(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return gc(t,n)}}function xe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Si;if(T1&&T1(t,null),!co(e))return t;let o=e.length;for(;o--;){let i=e[o];if(typeof i=="string"){const s=n(i);s!==i&&(dae(e)||(e[o]=s),i=s)}t[i]=!0}return t}function Cae(t){for(let e=0;e<t.length;e++)at(t,e)||(t[e]=null);return t}function yt(t){const e=Cr(null);for(const o of Em(t)){var n=cae(o,2);const i=n[0],s=n[1];at(t,i)&&(co(s)?e[i]=Cae(s):s&&typeof s=="object"&&s.constructor===Object?e[i]=yt(s):e[i]=s)}return e}function bae(t){switch(typeof t){case"string":return t;case"number":return vae(t);case"boolean":return _ae(t);case"bigint":return $1?$1(t):"0";case"symbol":return B1?B1(t):"Symbol()";case"undefined":return yi(t);case"function":case"object":{if(t===null)return yi(t);const e=t,n=an(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:yi(o)}return yi(t)}default:return yi(t)}}function an(t,e){for(;t!==null;){const o=pae(t,e);if(o){if(o.get)return et(o.get);if(typeof o.value=="function")return et(o.value)}t=fae(t)}function n(){return null}return n}function kae(t){try{return st(t,""),!0}catch{return!1}}const M1=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"]),Fl=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"]),Rl=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"]),wae=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"]),zl=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"]),Eae=pt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),L1=pt(["#text"]),O1=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"]),Ul=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"]),V1=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"]),Sae=gt(/{{[\w\W]*|^[\w\W]*}}/g),xae=gt(/<%[\w\W]*|^[\w\W]*%>/g),Tae=gt(/\${[\w\W]*/g),Aae=gt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Nae=gt(/^aria-[\-\w]+$/),I1=gt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Dae=gt(/^(?:\w+script|data):/i),$ae=gt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bae=gt(/^html$/i),Mae=gt(/^[a-z][.\w]*(-[.\w]+)+$/i),P1=gt(/<[/\w!]/g),F1=gt(/<[/\w]/g),Lae=gt(/<\/no(script|embed|frames)/i),Oae=gt(/\/>/i),Pt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Vae=function(){return typeof window>"u"?null:window},Iae=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}},R1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},io=function(e,n,o,i){return at(e,n)&&co(e[n])?xe(i.base?yt(i.base):{},e[n],i.transform):o};function xm(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vae();const e=J=>xm(J);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==Pt.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,f=t.trustedTypes,p=l.prototype,m=an(p,"cloneNode"),h=an(p,"remove"),g=an(p,"nextSibling"),y=an(p,"childNodes"),C=an(p,"parentNode"),v=an(p,"shadowRoot"),_=an(p,"attributes"),b=a&&a.prototype?an(a.prototype,"nodeType"):null,w=a&&a.prototype?an(a.prototype,"nodeName"):null,k=a&&a.prototype?an(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const J=n.createElement("template");J.content&&J.content.ownerDocument&&(n=J.content.ownerDocument)}let A,T="",S,E=!1,D=0;const x=function(){if(D>0)throw $o('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.')},$=function(N){x(),D++;try{return A.createHTML(N)}finally{D--}},B=function(N){x(),D++;try{return A.createScriptURL(N)}finally{D--}},V=function(){return E||(S=Iae(f,i),E=!0),S},I=n,j=I.implementation,F=I.createNodeIterator,q=I.createDocumentFragment,Q=I.getElementsByTagName,ae=o.importNode;let ne=R1();e.isSupported=typeof Em=="function"&&typeof C=="function"&&j&&j.createHTMLDocument!==void 0;const ye=Sae,re=xae,ie=Tae,U=Aae,P=Nae,se=Dae,we=$ae,Re=Mae;let Ce=I1,R=null;const le=xe({},[...M1,...Fl,...Rl,...zl,...L1]);let ge=null;const me=xe({},[...O1,...Ul,...V1,...Ls]);let Ee=Object.seal(Cr(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}})),ze=null,Be=null;const Ae=Object.seal(Cr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ie=!0,Pe=!0,dt=!1,Ln=!0,He=!1,_t=!0,it=!1,Bt=!1,Zt=null,_n=null,On=!1,L=!1,K=!1,fe=!1,Ue=!0,Je=!1;const Vn="user-content-";let Se=!0,Mt=!1,kt={},Lt=null;const ur=xe({},["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 _s=null;const ni=xe({},["audio","video","img","source","image","track"]);let Ot=null;const dr=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),to="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",Vt="http://www.w3.org/1999/xhtml";let no=Vt,Ao=!1,oi=null;const hl=xe({},[to,fr,Vt],Pl),ys=pt(["mi","mo","mn","ms","mtext"]);let It=xe({},ys);const Cs=pt(["annotation-xml"]);let ri=xe({},Cs);const gl=xe({},["title","style","font","a","script"]);let No=null;const ii=["application/xhtml+xml","text/html"],si="text/html";let Oe=null,rn=null;const ai=n.createElement("form"),bs=function(N){return N instanceof RegExp||N instanceof Function},oo=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(rn&&rn===N)return;(!N||typeof N!="object")&&(N={}),N=yt(N),No=ii.indexOf(N.PARSER_MEDIA_TYPE)===-1?si:N.PARSER_MEDIA_TYPE,Oe=No==="application/xhtml+xml"?Pl:Si,R=io(N,"ALLOWED_TAGS",le,{transform:Oe}),ge=io(N,"ALLOWED_ATTR",me,{transform:Oe}),oi=io(N,"ALLOWED_NAMESPACES",hl,{transform:Pl}),Ot=io(N,"ADD_URI_SAFE_ATTR",dr,{transform:Oe,base:dr}),_s=io(N,"ADD_DATA_URI_TAGS",ni,{transform:Oe,base:ni}),Lt=io(N,"FORBID_CONTENTS",ur,{transform:Oe}),ze=io(N,"FORBID_TAGS",yt({}),{transform:Oe}),Be=io(N,"FORBID_ATTR",yt({}),{transform:Oe}),kt=at(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?yt(N.USE_PROFILES):N.USE_PROFILES:!1,Ie=N.ALLOW_ARIA_ATTR!==!1,Pe=N.ALLOW_DATA_ATTR!==!1,dt=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Ln=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,He=N.SAFE_FOR_TEMPLATES||!1,_t=N.SAFE_FOR_XML!==!1,it=N.WHOLE_DOCUMENT||!1,L=N.RETURN_DOM||!1,K=N.RETURN_DOM_FRAGMENT||!1,fe=N.RETURN_TRUSTED_TYPE||!1,On=N.FORCE_BODY||!1,Ue=N.SANITIZE_DOM!==!1,Je=N.SANITIZE_NAMED_PROPS||!1,Se=N.KEEP_CONTENT!==!1,Mt=N.IN_PLACE||!1,Ce=kae(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:I1,no=typeof N.NAMESPACE=="string"?N.NAMESPACE:Vt,It=at(N,"MATHML_TEXT_INTEGRATION_POINTS")&&N.MATHML_TEXT_INTEGRATION_POINTS&&typeof N.MATHML_TEXT_INTEGRATION_POINTS=="object"?yt(N.MATHML_TEXT_INTEGRATION_POINTS):xe({},ys),ri=at(N,"HTML_INTEGRATION_POINTS")&&N.HTML_INTEGRATION_POINTS&&typeof N.HTML_INTEGRATION_POINTS=="object"?yt(N.HTML_INTEGRATION_POINTS):xe({},Cs);const O=at(N,"CUSTOM_ELEMENT_HANDLING")&&N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING=="object"?yt(N.CUSTOM_ELEMENT_HANDLING):Cr(null);if(Ee=Cr(null),at(O,"tagNameCheck")&&bs(O.tagNameCheck)&&(Ee.tagNameCheck=O.tagNameCheck),at(O,"attributeNameCheck")&&bs(O.attributeNameCheck)&&(Ee.attributeNameCheck=O.attributeNameCheck),at(O,"allowCustomizedBuiltInElements")&&typeof O.allowCustomizedBuiltInElements=="boolean"&&(Ee.allowCustomizedBuiltInElements=O.allowCustomizedBuiltInElements),gt(Ee),He&&(Pe=!1),K&&(L=!0),kt&&(R=xe({},L1),ge=Cr(null),kt.html===!0&&(xe(R,M1),xe(ge,O1)),kt.svg===!0&&(xe(R,Fl),xe(ge,Ul),xe(ge,Ls)),kt.svgFilters===!0&&(xe(R,Rl),xe(ge,Ul),xe(ge,Ls)),kt.mathMl===!0&&(xe(R,zl),xe(ge,V1),xe(ge,Ls))),Ae.tagCheck=null,Ae.attributeCheck=null,at(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?Ae.tagCheck=N.ADD_TAGS:co(N.ADD_TAGS)&&(R===le&&(R=yt(R)),xe(R,N.ADD_TAGS,Oe))),at(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?Ae.attributeCheck=N.ADD_ATTR:co(N.ADD_ATTR)&&(ge===me&&(ge=yt(ge)),xe(ge,N.ADD_ATTR,Oe))),at(N,"ADD_URI_SAFE_ATTR")&&co(N.ADD_URI_SAFE_ATTR)&&xe(Ot,N.ADD_URI_SAFE_ATTR,Oe),at(N,"FORBID_CONTENTS")&&co(N.FORBID_CONTENTS)&&(Lt===ur&&(Lt=yt(Lt)),xe(Lt,N.FORBID_CONTENTS,Oe)),at(N,"ADD_FORBID_CONTENTS")&&co(N.ADD_FORBID_CONTENTS)&&(Lt===ur&&(Lt=yt(Lt)),xe(Lt,N.ADD_FORBID_CONTENTS,Oe)),Se&&(R["#text"]=!0),it&&xe(R,["html","head","body"]),R.table&&(xe(R,["tbody"]),delete ze.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw $o('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $o('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const W=A;A=N.TRUSTED_TYPES_POLICY;try{T=$("")}catch(ce){throw A=W,ce}}else N.TRUSTED_TYPES_POLICY===null?(A=void 0,T=""):(A===void 0&&(A=V()),A&&typeof T=="string"&&(T=$("")));pt&&pt(N),rn=N},li=xe({},[...Fl,...Rl,...wae]),M=xe({},[...zl,...Eae]),Y=function(N,O,W){return O.namespaceURI===Vt?N==="svg":O.namespaceURI===to?N==="svg"&&(W==="annotation-xml"||It[W]):!!li[N]},be=function(N,O,W){return O.namespaceURI===Vt?N==="math":O.namespaceURI===fr?N==="math"&&ri[W]:!!M[N]},je=function(N,O,W){return O.namespaceURI===fr&&!ri[W]||O.namespaceURI===to&&!It[W]?!1:!M[N]&&(gl[N]||!li[N])},In=function(N){let O=C(N);(!O||!O.tagName)&&(O={namespaceURI:no,tagName:"template"});const W=Si(N.tagName),ce=Si(O.tagName);return oi[N.namespaceURI]?N.namespaceURI===fr?Y(W,O,ce):N.namespaceURI===to?be(W,O,ce):N.namespaceURI===Vt?je(W,O,ce):!!(No==="application/xhtml+xml"&&oi[N.namespaceURI]):!1},sn=function(N){vr(e.removed,{element:N});try{C(N).removeChild(N)}catch{if(h(N),!C(N))throw $o("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 O=y(N);if(O){const ce=[];gr(O,de=>{vr(ce,de)}),gr(ce,de=>{try{h(de)}catch{}})}const W=_(N);if(W)for(let ce=W.length-1;ce>=0;--ce){const de=W[ce],_e=de&&de.name;if(typeof _e=="string")try{N.removeAttribute(_e)}catch{}}},Pn=function(N,O){try{vr(e.removed,{attribute:O.getAttributeNode(N),from:O})}catch{vr(e.removed,{attribute:null,from:O})}if(O.removeAttribute(N),N==="is")if(L||K)try{sn(O)}catch{}else try{O.setAttribute(N,"")}catch{}},ks=function(N){const O=_(N);if(O)for(let W=O.length-1;W>=0;--W){const ce=O[W],de=ce&&ce.name;if(!(typeof de!="string"||ge[Oe(de)]))try{N.removeAttribute(de)}catch{}}},ui=function(N){const O=[N];for(;O.length>0;){const W=O.pop();(b?b(W):W.nodeType)===Pt.element&&ks(W);const de=y(W);if(de)for(let _e=de.length-1;_e>=0;--_e)O.push(de[_e])}},Zg=function(N){if(!_t)return;const O=[N];for(;O.length>0;){const W=O.pop(),ce=b?b(W):W.nodeType;if(ce===Pt.processingInstruction||ce===Pt.comment&&st(F1,W.data)){try{h(W)}catch{}continue}if(ce===Pt.element){const _e=W,Ve=Oe(w?w(W):W.nodeName);try{_e.hasAttribute&&_e.hasAttribute("patchsrc")&&_e.removeAttribute("patchsrc"),_e.hasAttribute&&_e.hasAttribute("for")&&Ve!=="label"&&Ve!=="output"&&_e.removeAttribute("for")}catch{}}const de=y(W);if(de)for(let _e=de.length-1;_e>=0;--_e)O.push(de[_e])}},gd=function(N){let O=null,W=null;if(On)N="<remove></remove>"+N;else{const _e=N1(N,/^[\r\n\t ]+/);W=_e&&_e[0]}No==="application/xhtml+xml"&&no===Vt&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const ce=A?$(N):N;if(no===Vt)try{O=new d().parseFromString(ce,No)}catch{}if(!O||!O.documentElement){O=j.createDocument(no,"template",null);try{O.documentElement.innerHTML=Ao?T:ce}catch{}}const de=O.body||O.documentElement;return N&&W&&de.insertBefore(n.createTextNode(W),de.childNodes[0]||null),no===Vt?Q.call(O,it?"html":"body")[0]:it?O.documentElement:de},vd=function(N){const O=k?k(N):N.ownerDocument;return F.call(O||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=_i(N,ye," "),N=_i(N,re," "),N=_i(N,ie," "),N},vl=function(N){var O;N.normalize();const W=k?k(N):N.ownerDocument,ce=F.call(W||N,N,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let de=ce.nextNode();for(;de;)de.data=ws(de.data),de=ce.nextNode();const _e=(O=N.querySelectorAll)===null||O===void 0?void 0:O.call(N,"template");_e&&gr(_e,Ve=>{pr(Ve.content)&&vl(Ve.content)})},Es=function(N){const O=w?w(N):null;return typeof O!="string"||Oe(O)!=="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!==y(N)},pr=function(N){if(!b||typeof N!="object"||N===null)return!1;try{return b(N)===Pt.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 yn(J,N,O){J.length!==0&&gr(J,W=>{W.call(e,N,O,rn)})}const Kg=function(N,O){return!!(_t&&N.hasChildNodes()&&!di(N.firstElementChild)&&st(P1,N.textContent)&&st(P1,N.innerHTML)||_t&&N.namespaceURI===Vt&&O==="style"&&di(N.firstElementChild)||N.nodeType===Pt.processingInstruction||_t&&N.nodeType===Pt.comment&&st(F1,N.data))},Gg=function(N,O,W){if(!ze[O]&&bd(O)&&(Ee.tagNameCheck instanceof RegExp&&st(Ee.tagNameCheck,O)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(O)))return!1;if(Se&&!Lt[O]){const ce=C(N),de=y(N);if(de&&ce){const _e=de.length;for(let Ve=_e-1;Ve>=0;--Ve){const We=N===W?m(de[Ve],!0):de[Ve];ce.insertBefore(We,g(N))}}}return sn(N),!0},_d=function(N,O,W,ce){return N.length===0?O:O===W||O===ce?yt(O):O},yd=function(N,O){if(yn(ne.beforeSanitizeElements,N,null),N!==O&&C(N)===null)return Mt&&ui(N),!0;if(Es(N))return sn(N),!0;const W=Oe(w?w(N):N.nodeName);if(R=_d(ne.uponSanitizeElement,R,le,Zt),yn(ne.uponSanitizeElement,N,{tagName:W,allowedTags:R}),N!==O&&C(N)===null)return Mt&&ui(N),!0;if(Kg(N,W))return sn(N),!0;if(ze[W]||!(Ae.tagCheck instanceof Function&&Ae.tagCheck(W))&&!R[W]){const de=Gg(N,W,O);return de===!1&&yn(ne.afterSanitizeElements,N,null),de}if((b?b(N):N.nodeType)===Pt.element&&!In(N)||(W==="noscript"||W==="noembed"||W==="noframes")&&st(Lae,N.innerHTML))return sn(N),!0;if(He&&N.nodeType===Pt.text){const de=ws(N.textContent);N.textContent!==de&&(vr(e.removed,{element:N.cloneNode()}),N.textContent=de)}return yn(ne.afterSanitizeElements,N,null),!1},Cd=function(N,O,W){if(Be[O]||_t&&O==="patchsrc"||_t&&O==="for"&&N!=="label"&&N!=="output"||Ue&&(O==="id"||O==="name")&&(W in n||W in ai))return!1;const ce=ge[O]||Ae.attributeCheck instanceof Function&&Ae.attributeCheck(O,N);if(!(Pe&&st(U,O))){if(!(Ie&&st(P,O))){if(ce){if(!Ot[O]){if(!st(Ce,_i(W,we,""))){if(!((O==="src"||O==="xlink:href"||O==="href")&&N!=="script"&&D1(W,"data:")===0&&_s[N])){if(!(dt&&!st(se,_i(W,we,"")))){if(W)return!1}}}}}else if(!(bd(N)&&(Ee.tagNameCheck instanceof RegExp&&st(Ee.tagNameCheck,N)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(N))&&(Ee.attributeNameCheck instanceof RegExp&&st(Ee.attributeNameCheck,O)||Ee.attributeNameCheck instanceof Function&&Ee.attributeNameCheck(O,N))||O==="is"&&Ee.allowCustomizedBuiltInElements&&(Ee.tagNameCheck instanceof RegExp&&st(Ee.tagNameCheck,W)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(W))))return!1}}return!0},Yg=xe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),bd=function(N){return!Yg[Si(N)]&&st(Re,N)},Jg=function(N,O,W,ce){if(A&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!W)switch(f.getAttributeType(N,O)){case"TrustedHTML":return $(ce);case"TrustedScriptURL":return B(ce)}return ce},Xg=function(N,O,W,ce){try{W?N.setAttributeNS(W,O,ce):N.setAttribute(O,ce),Es(N)?sn(N):A1(e.removed)}catch{Pn(O,N)}},kd=function(N){yn(ne.beforeSanitizeAttributes,N,null);const O=N.attributes;if(!O||Es(N))return;ge=_d(ne.uponSanitizeAttribute,ge,me,_n);const W={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ge,forceKeepAttr:void 0};let ce=O.length;const de=Oe(N.nodeName);for(;ce--;){const _e=O[ce],Ve=_e.name,We=_e.namespaceURI,Tt=_e.value,At=Oe(Ve),yl=Tt;let wt=Ve==="value"?yl:gae(yl);if(W.attrName=At,W.attrValue=wt,W.keepAttr=!0,W.forceKeepAttr=void 0,yn(ne.uponSanitizeAttribute,N,W),wt=W.attrValue,Je&&(At==="id"||At==="name")&&D1(wt,Vn)!==0&&(Pn(Ve,N),wt=Vn+wt),_t&&st(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,wt)){Pn(Ve,N);continue}if(At==="attributename"&&N1(wt,"href")){Pn(Ve,N);continue}if(!W.forceKeepAttr){if(!W.keepAttr){Pn(Ve,N);continue}if(!Ln&&st(Oae,wt)){Pn(Ve,N);continue}if(He&&(wt=ws(wt)),!Cd(de,At,wt)){Pn(Ve,N);continue}wt=Jg(de,At,We,wt),wt!==yl&&Xg(N,Ve,We,wt)}}yn(ne.afterSanitizeAttributes,N,null)},Ss=function(N){let O=null;const W=vd(N);for(yn(ne.beforeSanitizeShadowDOM,N,null);O=W.nextNode();)if(yn(ne.uponSanitizeShadowNode,O,null),yd(O,N),kd(O),pr(O.content)&&Ss(O.content),(b?b(O):O.nodeType)===Pt.element){const de=v(O);pr(de)&&(_l(de),Ss(de))}yn(ne.afterSanitizeShadowDOM,N,null)},_l=function(N){const O=[{node:N,shadow:null}];for(;O.length>0;){const W=O.pop();if(W.shadow){Ss(W.shadow);continue}const ce=W.node,_e=(b?b(ce):ce.nodeType)===Pt.element,Ve=y(ce);if(Ve)for(let We=Ve.length-1;We>=0;--We)O.push({node:Ve[We],shadow:null});if(_e){const We=w?w(ce):null;if(typeof We=="string"&&Oe(We)==="template"){const Tt=ce.content;pr(Tt)&&O.push({node:Tt,shadow:null})}}if(_e){const We=v(ce);pr(We)&&O.push({node:null,shadow:We},{node:We,shadow:null})}}};return e.sanitize=function(J){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=null,W=null,ce=null,de=null;if(Ao=!J,Ao&&(J="<!-->"),typeof J!="string"&&!di(J)&&(J=bae(J),typeof J!="string"))throw $o("dirty is not a string, aborting");if(!e.isSupported)return J;Bt?(R=Zt,ge=_n):oo(N),(ne.uponSanitizeElement.length>0||ne.uponSanitizeAttribute.length>0)&&(R=yt(R)),ne.uponSanitizeAttribute.length>0&&(ge=yt(ge)),e.removed=[];const _e=Mt&&typeof J!="string"&&di(J);if(_e){Zg(J);const Tt=w?w(J):J.nodeName;if(typeof Tt=="string"){const At=Oe(Tt);if(!R[At]||ze[At])throw ci(J),$o("root node is forbidden and cannot be sanitized in-place")}if(Es(J))throw ci(J),$o("root node is clobbered and cannot be sanitized in-place");try{_l(J)}catch(At){throw ci(J),At}}else if(di(J))O=gd("<!---->"),W=O.ownerDocument.importNode(J,!0),W.nodeType===Pt.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?O=W:O.appendChild(W),_l(W);else{if(!L&&!He&&!it&&J.indexOf("<")===-1)return A&&fe?$(J):J;if(O=gd(J),!O)return L?null:fe?T:""}O&&On&&sn(O.firstChild);const Ve=_e?J:O;try{const Tt=vd(Ve);for(;ce=Tt.nextNode();)yd(ce,Ve),kd(ce),pr(ce.content)&&Ss(ce.content)}catch(Tt){throw _e&&(ci(J),gr(e.removed,At=>{At.element&&ui(At.element)})),Tt}if(_e)return gr(e.removed,Tt=>{Tt.element&&ui(Tt.element)}),He&&vl(J),J;if(L){if(He&&vl(O),K)for(de=q.call(O.ownerDocument);O.firstChild;)de.appendChild(O.firstChild);else de=O;return(ge.shadowroot||ge.shadowrootmode)&&(de=ae.call(o,de,!0)),de}let We=it?O.outerHTML:O.innerHTML;return it&&R["!doctype"]&&O.ownerDocument&&O.ownerDocument.doctype&&O.ownerDocument.doctype.name&&st(Bae,O.ownerDocument.doctype.name)&&(We="<!DOCTYPE "+O.ownerDocument.doctype.name+`>
|
|
19
|
-
`+We),He&&(We=ws(We)),
|
|
16
|
+
`),n=n.replace(Rre,"�"),e.src=n},Ure=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)},qre=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)},Hre=$e.arrayReplaceAt;function jre(t){return/^<a[>\s]/i.test(t)}function Wre(t){return/^<\/a\s*>/i.test(t)}var Zre=function(e){var n,o,i,s,a,l,c,u,d,f,p,m,h,g,y,C,v=e.tokens,_;if(e.md.options.linkify){for(o=0,i=v.length;o<i;o++)if(!(v[o].type!=="inline"||!e.md.linkify.pretest(v[o].content)))for(s=v[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"&&(jre(l.content)&&h>0&&h--,Wre(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,p=0,_.length>0&&_[0].index===0&&n>0&&s[n-1].type==="text_special"&&(_=_.slice(1)),u=0;u<_.length;u++)g=_[u].url,y=e.md.normalizeLink(g),e.md.validateLink(y)&&(C=_[u].text,_[u].schema?_[u].schema==="mailto:"&&!/^mailto:/i.test(C)?C=e.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=e.md.normalizeLinkText(C):C=e.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,""),f=_[u].index,f>p&&(a=new e.Token("text","",0),a.content=d.slice(p,f),a.level=m,c.push(a)),a=new e.Token("link_open","a",1),a.attrs=[["href",y]],a.level=m++,a.markup="linkify",a.info="auto",c.push(a),a=new e.Token("text","",0),a.content=C,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),p=_[u].lastIndex);p<d.length&&(a=new e.Token("text","",0),a.content=d.slice(p),a.level=m,c.push(a)),v[o].children=s=Hre(s,n,c)}}}},am=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Kre=/\((c|tm|r)\)/i,Gre=/\((c|tm|r)\)/ig,Yre={c:"©",r:"®",tm:"™"};function Jre(t,e){return Yre[e.toLowerCase()]}function Xre(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(Gre,Jre)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function Qre(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&am.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 eie=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(Kre.test(e.tokens[n].content)&&Xre(e.tokens[n].children),am.test(e.tokens[n].content)&&Qre(e.tokens[n].children))},o1=$e.isWhiteSpace,r1=$e.isPunctChar,i1=$e.isMdAsciiPunct,tie=/['"]/,s1=/['"]/g,a1="’";function $s(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function nie(t,e){var n,o,i,s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,b,w,k;for(b=[],n=0;n<t.length;n++){for(o=t[n],c=t[n].level,v=b.length-1;v>=0&&!(b[v].level<=c);v--);if(b.length=v+1,o.type==="text"){i=o.content,a=0,l=i.length;e:for(;a<l&&(s1.lastIndex=a,s=s1.exec(i),!!s);){if(y=C=!0,a=s.index+1,_=s[0]==="'",d=32,s.index-1>=0)d=i.charCodeAt(s.index-1);else for(v=n-1;v>=0&&!(t[v].type==="softbreak"||t[v].type==="hardbreak");v--)if(t[v].content){d=t[v].content.charCodeAt(t[v].content.length-1);break}if(f=32,a<l)f=i.charCodeAt(a);else for(v=n+1;v<t.length&&!(t[v].type==="softbreak"||t[v].type==="hardbreak");v++)if(t[v].content){f=t[v].content.charCodeAt(0);break}if(p=i1(d)||r1(String.fromCharCode(d)),m=i1(f)||r1(String.fromCharCode(f)),h=o1(d),g=o1(f),g?y=!1:m&&(h||p||(y=!1)),h?C=!1:p&&(g||m||(C=!1)),f===34&&s[0]==='"'&&d>=48&&d<=57&&(C=y=!1),y&&C&&(y=p,C=m),!y&&!C){_&&(o.content=$s(o.content,s.index,a1));continue}if(C){for(v=b.length-1;v>=0&&(u=b[v],!(b[v].level<c));v--)if(u.single===_&&b[v].level===c){u=b[v],_?(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=v;continue e}}y?b.push({token:n,pos:s.index,single:_,level:c}):C&&_&&(o.content=$s(o.content,s.index,a1))}}}}var oie=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!tie.test(e.tokens[n].content)||nie(e.tokens[n].children,e)},rie=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 Gr(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}Gr.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};Gr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Gr.prototype.attrSet=function(e,n){var o=this.attrIndex(e),i=[e,n];o<0?this.attrPush(i):this.attrs[o]=i};Gr.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o};Gr.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 gu=Gr,iie=gu;function lm(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}lm.prototype.Token=iie;var sie=lm,aie=hu,Tl=[["normalize",zre],["block",Ure],["inline",qre],["linkify",Zre],["replacements",eie],["smartquotes",oie],["text_join",rie]];function vu(){this.ruler=new aie;for(var t=0;t<Tl.length;t++)this.ruler.push(Tl[t][0],Tl[t][1])}vu.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)};vu.prototype.State=sie;var lie=vu,Nl=$e.isSpace;function Dl(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(n,o)}function l1(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 cie=function(e,n,o,i){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,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&&!Nl(k))||w===45&&Nl(k))return!1;for(;l<e.eMarks[d];){if(s=e.src.charCodeAt(l),s!==124&&s!==45&&s!==58&&!Nl(s))return!1;l++}for(a=Dl(e,n+1),f=a.split("|"),h=[],c=0;c<f.length;c++){if(g=f[c].trim(),!g){if(c===0||c===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;g.charCodeAt(g.length-1)===58?h.push(g.charCodeAt(0)===58?"center":"right"):g.charCodeAt(0)===58?h.push("left"):h.push("")}if(a=Dl(e,n).trim(),a.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(f=l1(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),p=f.length,p===0||p!==h.length))return!1;if(i)return!0;for(v=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),m.map=y=[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<f.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=f[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=Dl(e,d).trim(),!a)||e.sCount[d]-e.blkIndent>=4)break;for(f=l1(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),d===n+2&&(m=e.push("tbody_open","tbody",1),m.map=C=[n+2,0]),m=e.push("tr_open","tr",1),m.map=[d,d+1],c=0;c<p;c++)m=e.push("td_open","td",1),h[c]&&(m.attrs=[["style","text-align:"+h[c]]]),m=e.push("inline","",0),m.content=f[c]?f[c].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return C&&(m=e.push("tbody_close","tbody",-1),C[1]=d),m=e.push("table_close","table",-1),y[1]=d,e.parentType=v,e.line=d,!0},uie=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},die=function(e,n,o,i){var s,a,l,c,u,d,f,p=!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)||(f=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)))){p=!0;break}return a=e.sCount[n],e.line=c+(p?1:0),d=e.push("fence","code",0),d.info=l,d.content=e.getLines(n+1,c,a,!0),d.markup=f,d.map=[n,e.line],!0},fie=$e.isSpace,pie=function(e,n,o,i){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,b,w,k,T,A,S=e.lineMax,E=e.bMarks[n]+e.tShift[n],D=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(E)!==62)return!1;if(i)return!0;for(h=[],g=[],v=[],_=[],k=e.md.block.ruler.getRules("blockquote"),C=e.parentType,e.parentType="blockquote",p=n;p<o&&(A=e.sCount[p]<e.blkIndent,E=e.bMarks[p]+e.tShift[p],D=e.eMarks[p],!(E>=D));p++){if(e.src.charCodeAt(E++)===62&&!A){for(c=e.sCount[p]+1,e.src.charCodeAt(E)===32?(E++,c++,s=!1,b=!0):e.src.charCodeAt(E)===9?(b=!0,(e.bsCount[p]+c)%4===3?(E++,c++,s=!1):s=!0):b=!1,m=c,h.push(e.bMarks[p]),e.bMarks[p]=E;E<D&&(a=e.src.charCodeAt(E),fie(a));){a===9?m+=4-(m+e.bsCount[p]+(s?1:0))%4:m++;E++}d=E>=D,g.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(b?1:0),v.push(e.sCount[p]),e.sCount[p]=m-c,_.push(e.tShift[p]),e.tShift[p]=E-e.bMarks[p];continue}if(d)break;for(w=!1,l=0,u=k.length;l<u;l++)if(k[l](e,p,o,!0)){w=!0;break}if(w){e.lineMax=p,e.blkIndent!==0&&(h.push(e.bMarks[p]),g.push(e.bsCount[p]),_.push(e.tShift[p]),v.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}h.push(e.bMarks[p]),g.push(e.bsCount[p]),_.push(e.tShift[p]),v.push(e.sCount[p]),e.sCount[p]=-1}for(y=e.blkIndent,e.blkIndent=0,T=e.push("blockquote_open","blockquote",1),T.markup=">",T.map=f=[n,0],e.md.block.tokenize(e,n,p),T=e.push("blockquote_close","blockquote",-1),T.markup=">",e.lineMax=S,e.parentType=C,f[1]=e.line,l=0;l<_.length;l++)e.bMarks[l+n]=h[l],e.tShift[l+n]=_[l],e.sCount[l+n]=v[l],e.bsCount[l+n]=g[l];return e.blkIndent=y,!0},mie=$e.isSpace,hie=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&&!mie(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)},cm=$e.isSpace;function c1(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),!cm(s))?-1:o}function u1(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),!cm(n))?-1:i}function gie(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 vie=function(e,n,o,i){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,b,w,k,T,A,S,E,D,x,$,B,V,I=n,j=!1,F=!0;if(e.sCount[I]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[I]-e.listIndent>=4&&e.sCount[I]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.sCount[I]>=e.blkIndent&&(j=!0),(E=u1(e,I))>=0){if(f=!0,x=e.bMarks[I]+e.tShift[I],C=Number(e.src.slice(x,E-1)),j&&C!==1)return!1}else if((E=c1(e,I))>=0)f=!1;else return!1;if(j&&e.skipSpaces(E)>=e.eMarks[I])return!1;if(i)return!0;for(y=e.src.charCodeAt(E-1),g=e.tokens.length,f?(V=e.push("ordered_list_open","ol",1),C!==1&&(V.attrs=[["start",C]])):V=e.push("bullet_list_open","ul",1),V.map=h=[I,0],V.markup=String.fromCharCode(y),D=!1,B=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";I<o;){for(S=E,v=e.eMarks[I],d=_=e.sCount[I]+E-(e.bMarks[I]+e.tShift[I]);S<v;){if(s=e.src.charCodeAt(S),s===9)_+=4-(_+e.bsCount[I])%4;else if(s===32)_++;else break;S++}if(a=S,a>=v?u=1:u=_-d,u>4&&(u=1),c=d+u,V=e.push("list_item_open","li",1),V.markup=String.fromCharCode(y),V.map=p=[I,0],f&&(V.info=e.src.slice(x,E-1)),A=e.tight,T=e.tShift[I],k=e.sCount[I],b=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[I]=a-e.bMarks[I],e.sCount[I]=_,a>=v&&e.isEmpty(I+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,I,o,!0),(!e.tight||D)&&(F=!1),D=e.line-I>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=b,e.tShift[I]=T,e.sCount[I]=k,e.tight=A,V=e.push("list_item_close","li",-1),V.markup=String.fromCharCode(y),I=e.line,p[1]=I,I>=o||e.sCount[I]<e.blkIndent||e.sCount[I]-e.blkIndent>=4)break;for($=!1,l=0,m=B.length;l<m;l++)if(B[l](e,I,o,!0)){$=!0;break}if($)break;if(f){if(E=u1(e,I),E<0)break;x=e.bMarks[I]+e.tShift[I]}else if(E=c1(e,I),E<0)break;if(y!==e.src.charCodeAt(E-1))break}return f?V=e.push("ordered_list_close","ol",-1):V=e.push("bullet_list_close","ul",-1),V.markup=String.fromCharCode(y),h[1]=I,e.line=I,e.parentType=w,F&&gie(e,g),!0},_ie=$e.normalizeReference,Bs=$e.isSpace,yie=function(e,n,o,i){var s,a,l,c,u,d,f,p,m,h,g,y,C,v,_,b,w=0,k=e.bMarks[n]+e.tShift[n],T=e.eMarks[n],A=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(k)!==91)return!1;for(;++k<T;)if(e.src.charCodeAt(k)===93&&e.src.charCodeAt(k-1)!==92){if(k+1===T||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";A<c&&!e.isEmpty(A);A++)if(!(e.sCount[A]-e.blkIndent>3)&&!(e.sCount[A]<0)){for(v=!1,d=0,f=_.length;d<f;d++)if(_[d](e,A,c,!0)){v=!0;break}if(v)break}for(C=e.getLines(n,A,e.blkIndent,!1).trim(),T=C.length,k=1;k<T;k++){if(s=C.charCodeAt(k),s===91)return!1;if(s===93){m=k;break}else s===10?w++:s===92&&(k++,k<T&&C.charCodeAt(k)===10&&w++)}if(m<0||C.charCodeAt(m+1)!==58)return!1;for(k=m+2;k<T;k++)if(s=C.charCodeAt(k),s===10)w++;else if(!Bs(s))break;if(g=e.md.helpers.parseLinkDestination(C,k,T),!g.ok||(u=e.md.normalizeLink(g.str),!e.md.validateLink(u)))return!1;for(k=g.pos,w+=g.lines,a=k,l=w,y=k;k<T;k++)if(s=C.charCodeAt(k),s===10)w++;else if(!Bs(s))break;for(g=e.md.helpers.parseLinkTitle(C,k,T),k<T&&y!==k&&g.ok?(b=g.str,k=g.pos,w+=g.lines):(b="",k=a,w=l);k<T&&(s=C.charCodeAt(k),!!Bs(s));)k++;if(k<T&&C.charCodeAt(k)!==10&&b)for(b="",k=a,w=l;k<T&&(s=C.charCodeAt(k),!!Bs(s));)k++;return k<T&&C.charCodeAt(k)!==10||(p=_ie(C.slice(1,m)),!p)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:b,href:u}),e.parentType=h,e.line=n+w+1),!0)},Cie=["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"],Ha={},bie="[a-zA-Z_:][a-zA-Z0-9:._-]*",kie="[^\"'=<>`\\x00-\\x20]+",wie="'[^']*'",Eie='"[^"]*"',Sie="(?:"+kie+"|"+wie+"|"+Eie+")",xie="(?:\\s+"+bie+"(?:\\s*=\\s*"+Sie+")?)",um="<[A-Za-z][A-Za-z0-9\\-]*"+xie+"*\\s*\\/?>",dm="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Aie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Tie="<[?][\\s\\S]*?[?]>",Nie="<![A-Z]+\\s+[^>]*>",Die="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",$ie=new RegExp("^(?:"+um+"|"+dm+"|"+Aie+"|"+Tie+"|"+Nie+"|"+Die+")"),Bie=new RegExp("^(?:"+um+"|"+dm+")");Ha.HTML_TAG_RE=$ie;Ha.HTML_OPEN_CLOSE_TAG_RE=Bie;var Mie=Cie,Lie=Ha.HTML_OPEN_CLOSE_TAG_RE,hr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Mie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Lie.source+"\\s*$"),/^$/,!1]],Oie=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<hr.length&&!hr[s][0].test(c);s++);if(s===hr.length)return!1;if(i)return hr[s][2];if(a=n+1,!hr[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),hr[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},d1=$e.isSpace,Vie=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&&!d1(s)?!1:(i||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&d1(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)},Iie=function(e,n,o){var i,s,a,l,c,u,d,f,p,m=n+1,h,g=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&&(p=e.src.charCodeAt(u),(p===45||p===61)&&(u=e.skipChars(u,p),u=e.skipSpaces(u),u>=d)))){f=p===61?1:2;break}if(!(e.sCount[m]<0)){for(s=!1,a=0,l=g.length;a<l;a++)if(g[a](e,m,o,!0)){s=!0;break}if(s)break}}return f?(i=e.getLines(n,m,e.blkIndent,!1).trim(),e.line=m+1,c=e.push("heading_open","h"+String(f),1),c.markup=String.fromCharCode(p),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(f),-1),c.markup=String.fromCharCode(p),e.parentType=h,!0):!1},Pie=function(e,n,o){var i,s,a,l,c,u,d=n+1,f=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=f.length;a<l;a++)if(f[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},fm=gu,ja=$e.isSpace;function Mn(t,e,n,o){var i,s,a,l,c,u,d,f;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,f=!1,a=l=u=d=0,c=s.length;l<c;l++){if(i=s.charCodeAt(l),!f)if(ja(i)){u++,i===9?d+=4-d%4:d++;continue}else f=!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),f=!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}Mn.prototype.push=function(t,e,n){var o=new fm(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Mn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Mn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Mn.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!ja(n));e++);return e};Mn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!ja(this.src.charCodeAt(--e)))return e+1;return e};Mn.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};Mn.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};Mn.prototype.getLines=function(e,n,o,i){var s,a,l,c,u,d,f,p=e;if(e>=n)return"";for(d=new Array(n-e),s=0;p<n;p++,s++){for(a=0,f=c=this.bMarks[p],p+1<n||i?u=this.eMarks[p]+1:u=this.eMarks[p];c<u&&a<o;){if(l=this.src.charCodeAt(c),ja(l))l===9?a+=4-(a+this.bsCount[p])%4:a++;else if(c-f<this.tShift[p])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("")};Mn.prototype.Token=fm;var Fie=Mn,Rie=hu,Ms=[["table",cie,["paragraph","reference"]],["code",uie],["fence",die,["paragraph","reference","blockquote","list"]],["blockquote",pie,["paragraph","reference","blockquote","list"]],["hr",hie,["paragraph","reference","blockquote","list"]],["list",vie,["paragraph","reference","blockquote"]],["reference",yie],["html_block",Oie,["paragraph","reference","blockquote"]],["heading",Vie,["paragraph","reference","blockquote"]],["lheading",Iie],["paragraph",Pie]];function Wa(){this.ruler=new Rie;for(var t=0;t<Ms.length;t++)this.ruler.push(Ms[t][0],Ms[t][1],{alt:(Ms[t][2]||[]).slice()})}Wa.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)}};Wa.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))};Wa.prototype.State=Fie;var zie=Wa;function Uie(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 qie=function(e,n){for(var o=e.pos;o<e.posMax&&!Uie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},Hie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,jie=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(Hie),!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)},Wie=$e.isSpace,Zie=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&&Wie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},Kie=$e.isSpace,_u=[];for(var f1=0;f1<256;f1++)_u.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){_u[t.charCodeAt(0)]=1});var Gie=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),!!Kie(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},Yie=function(e,n){var o,i,s,a,l,c,u,d,f=e.pos,p=e.src.charCodeAt(f);if(p!==96)return!1;for(o=f,f++,i=e.posMax;f<i&&e.src.charCodeAt(f)===96;)f++;if(s=e.src.slice(o,f),u=s.length,e.backticksScanned&&(e.backticks[u]||0)<=o)return n||(e.pending+=s),e.pos+=u,!0;for(c=f;(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(f,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},Za={};Za.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 p1(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)}}Za.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(p1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&p1(e,o[n].delimiters)};var Ka={};Ka.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 m1(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--))}Ka.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(m1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&m1(e,o[n].delimiters)};var Jie=$e.normalizeReference,$l=$e.isSpace,Xie=function(e,n){var o,i,s,a,l,c,u,d,f,p="",m="",h=e.pos,g=e.posMax,y=e.pos,C=!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<g&&e.src.charCodeAt(c)===40){for(C=!1,c++;c<g&&(i=e.src.charCodeAt(c),!(!$l(i)&&i!==10));c++);if(c>=g)return!1;if(y=c,u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),u.ok){for(p=e.md.normalizeLink(u.str),e.md.validateLink(p)?c=u.pos:p="",y=c;c<g&&(i=e.src.charCodeAt(c),!(!$l(i)&&i!==10));c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<g&&y!==c&&u.ok)for(m=u.str,c=u.pos;c<g&&(i=e.src.charCodeAt(c),!(!$l(i)&&i!==10));c++);}(c>=g||e.src.charCodeAt(c)!==41)&&(C=!0),c++}if(C){if(typeof e.env.references>"u")return!1;if(c<g&&e.src.charCodeAt(c)===91?(y=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?s=e.src.slice(y,c++):c=a+1):c=a+1,s||(s=e.src.slice(l,a)),d=e.env.references[Jie(s)],!d)return e.pos=h,!1;p=d.href,m=d.title}return n||(e.pos=l,e.posMax=a,f=e.push("link_open","a",1),f.attrs=o=[["href",p]],m&&o.push(["title",m]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,f=e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0},Qie=$e.normalizeReference,Bl=$e.isSpace,ese=function(e,n){var o,i,s,a,l,c,u,d,f,p,m,h,g,y="",C=e.pos,v=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<v&&e.src.charCodeAt(u)===40){for(u++;u<v&&(i=e.src.charCodeAt(u),!(!Bl(i)&&i!==10));u++);if(u>=v)return!1;for(g=u,f=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),f.ok&&(y=e.md.normalizeLink(f.str),e.md.validateLink(y)?u=f.pos:y=""),g=u;u<v&&(i=e.src.charCodeAt(u),!(!Bl(i)&&i!==10));u++);if(f=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<v&&g!==u&&f.ok)for(p=f.str,u=f.pos;u<v&&(i=e.src.charCodeAt(u),!(!Bl(i)&&i!==10));u++);else p="";if(u>=v||e.src.charCodeAt(u)!==41)return e.pos=C,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<v&&e.src.charCodeAt(u)===91?(g=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?a=e.src.slice(g,u++):u=l+1):u=l+1,a||(a=e.src.slice(c,l)),d=e.env.references[Qie(a)],!d)return e.pos=C,!1;y=d.href,p=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",y],["alt",""]],m.children=h,m.content=s,p&&o.push(["title",p])),e.pos=u,e.posMax=v,!0},tse=/^([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])?)*)$/,nse=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,ose=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),nse.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):tse.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},rse=Ha.HTML_TAG_RE;function ise(t){return/^<a[>\s]/i.test(t)}function sse(t){return/^<\/a\s*>/i.test(t)}function ase(t){var e=t|32;return e>=97&&e<=122}var lse=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&&!ase(o))||(i=e.src.slice(l).match(rse),!i)?!1:(n||(a=e.push("html_inline","",0),a.content=i[0],ise(a.content)&&e.linkLevel++,sse(a.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},h1=om,cse=$e.has,use=$e.isValidEntityCode,g1=$e.fromCodePoint,dse=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,fse=/^&([a-z][a-z0-9]{1,31});/i,pse=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(dse),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=use(i)?g1(i):g1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(fse),s&&cse(h1,s[1]))return n||(a=e.push("text_special","",0),a.content=h1[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function v1(t){var e,n,o,i,s,a,l,c,u={},d=t.length;if(d){var f=0,p=-2,m=[];for(e=0;e<d;e++)if(o=t[e],m.push(0),(t[f].marker!==o.marker||p!==o.token-1)&&(f=e),p=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=f-m[f]-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,p=-2;break}a!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var mse=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(v1(e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&v1(o[n].delimiters)},hse=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)},yu=gu,_1=$e.isWhiteSpace,y1=$e.isPunctChar,C1=$e.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 yu("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 yu(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,f,p=!0,m=!0,h=this.posMax,g=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<h&&this.src.charCodeAt(n)===g;)n++;return s=n-t,i=n<h?this.src.charCodeAt(n):32,u=C1(o)||y1(String.fromCharCode(o)),f=C1(i)||y1(String.fromCharCode(i)),c=_1(o),d=_1(i),d?p=!1:f&&(c||u||(p=!1)),c?m=!1:u&&(d||f||(m=!1)),e?(a=p,l=m):(a=p&&(!m||u),l=m&&(!p||f)),{can_open:a,can_close:l,length:s}};ss.prototype.Token=yu;var gse=ss,b1=hu,Ml=[["text",qie],["linkify",jie],["newline",Zie],["escape",Gie],["backticks",Yie],["strikethrough",Za.tokenize],["emphasis",Ka.tokenize],["link",Xie],["image",ese],["autolink",ose],["html_inline",lse],["entity",pse]],Ll=[["balance_pairs",mse],["strikethrough",Za.postProcess],["emphasis",Ka.postProcess],["fragments_join",hse]];function as(){var t;for(this.ruler=new b1,t=0;t<Ml.length;t++)this.ruler.push(Ml[t][0],Ml[t][1]);for(this.ruler2=new b1,t=0;t<Ll.length;t++)this.ruler2.push(Ll[t][0],Ll[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=gse;var vse=as,Ol,k1;function _se(){return k1||(k1=1,Ol=function(t){var e={};t=t||{},e.src_Any=rm().source,e.src_Cc=im().source,e.src_Z=sm().source,e.src_P=mu.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}),Ol}function pc(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 Ga(t){return Object.prototype.toString.call(t)}function yse(t){return Ga(t)==="[object String]"}function Cse(t){return Ga(t)==="[object Object]"}function bse(t){return Ga(t)==="[object RegExp]"}function w1(t){return Ga(t)==="[object Function]"}function kse(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var pm={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function wse(t){return Object.keys(t||{}).reduce(function(e,n){return e||pm.hasOwnProperty(n)},!1)}var Ese={"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}}},Sse="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]",xse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Ase(t){t.__index__=-1,t.__text_cache__=""}function Tse(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function E1(){return function(t,e){e.normalize(t)}}function ia(t){var e=t.re=_se()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Sse),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,Cse(c)){bse(c.validate)?u.validate=Tse(c.validate):w1(c.validate)?u.validate=c.validate:s(l,c),w1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=E1();return}if(yse(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:E1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(kse).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"),Ase(t)}function Nse(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 mc(t,e){var n=new Nse(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||wse(t)&&(e=t,t={}),this.__opts__=pc({},pm,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=pc({},Ese,t),this.__compiled__={},this.__tlds__=xse,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__=pc(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(mc(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)o.push(mc(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,mc(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 Dse=qt;const Sr=2147483647,En=36,Cu=1,qi=26,$se=38,Bse=700,mm=72,hm=128,gm="-",Mse=/^xn--/,Lse=/[^\0-\x7F]/,Ose=/[\x2E\u3002\uFF0E\uFF61]/g,Vse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Vl=En-Cu,Sn=Math.floor,Il=String.fromCharCode;function ao(t){throw new RangeError(Vse[t])}function Ise(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function vm(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(Ose,".");const i=t.split("."),s=Ise(i,e).join(".");return o+s}function bu(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 _m=t=>String.fromCodePoint(...t),Pse=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:En},S1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},ym=function(t,e,n){let o=0;for(t=n?Sn(t/Bse):t>>1,t+=Sn(t/e);t>Vl*qi>>1;o+=En)t=Sn(t/Vl);return Sn(o+(Vl+1)*t/(t+$se))},ku=function(t){const e=[],n=t.length;let o=0,i=hm,s=mm,a=t.lastIndexOf(gm);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&ao("not-basic"),e.push(t.charCodeAt(l));for(let l=a>0?a+1:0;l<n;){const c=o;for(let d=1,f=En;;f+=En){l>=n&&ao("invalid-input");const p=Pse(t.charCodeAt(l++));p>=En&&ao("invalid-input"),p>Sn((Sr-o)/d)&&ao("overflow"),o+=p*d;const m=f<=s?Cu:f>=s+qi?qi:f-s;if(p<m)break;const h=En-m;d>Sn(Sr/h)&&ao("overflow"),d*=h}const u=e.length+1;s=ym(o-c,u,c==0),Sn(o/u)>Sr-i&&ao("overflow"),i+=Sn(o/u),o%=u,e.splice(o++,0,i)}return String.fromCodePoint(...e)},wu=function(t){const e=[];t=bu(t);const n=t.length;let o=hm,i=0,s=mm;for(const c of t)c<128&&e.push(Il(c));const a=e.length;let l=a;for(a&&e.push(gm);l<n;){let c=Sr;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>Sn((Sr-i)/u)&&ao("overflow"),i+=(c-o)*u,o=c;for(const d of t)if(d<o&&++i>Sr&&ao("overflow"),d===o){let f=i;for(let p=En;;p+=En){const m=p<=s?Cu:p>=s+qi?qi:p-s;if(f<m)break;const h=f-m,g=En-m;e.push(Il(S1(m+h%g,0))),f=Sn(h/g)}e.push(Il(S1(f,0))),s=ym(i,u,l===a),i=0,++l}++i,++o}return e.join("")},Cm=function(t){return vm(t,function(e){return Mse.test(e)?ku(e.slice(4).toLowerCase()):e})},bm=function(t){return vm(t,function(e){return Lse.test(e)?"xn--"+wu(e):e})},Fse={version:"2.1.0",ucs2:{decode:bu,encode:_m},decode:ku,encode:wu,toASCII:bm,toUnicode:Cm},Rse=Object.freeze(Object.defineProperty({__proto__:null,decode:ku,default:Fse,encode:wu,toASCII:bm,toUnicode:Cm,ucs2decode:bu,ucs2encode:_m},Symbol.toStringTag,{value:"Module"})),zse=l7(Rse);var Use={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},qse={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"]}}},Hse={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=$e,jse=qa,Wse=Pre,Zse=lie,Kse=zie,Gse=vse,Yse=Dse,Fo=Zr,km=zse,Jse={default:Use,zero:qse,commonmark:Hse},Xse=/^(vbscript|javascript|file|data):/,Qse=/^data:image\/(gif|png|jpeg|webp);/;function eae(t){var e=t.trim().toLowerCase();return Xse.test(e)?!!Qse.test(e):!0}var wm=["http:","https:","mailto:"];function tae(t){var e=Fo.parse(t,!0);if(e.hostname&&(!e.protocol||wm.indexOf(e.protocol)>=0))try{e.hostname=km.toASCII(e.hostname)}catch{}return Fo.encode(Fo.format(e))}function nae(t){var e=Fo.parse(t,!0);if(e.hostname&&(!e.protocol||wm.indexOf(e.protocol)>=0))try{e.hostname=km.toUnicode(e.hostname)}catch{}return Fo.decode(Fo.format(e),Fo.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 Gse,this.block=new Kse,this.core=new Zse,this.renderer=new Wse,this.linkify=new Yse,this.validateLink=eae,this.normalizeLink=tae,this.normalizeLinkText=nae,this.utils=Di,this.helpers=Di.assign({},jse),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=Jse[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 oae=nn,rae=oae;const iae=a7(rae);/*! @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 x1(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 sae(t){if(Array.isArray(t))return t}function aae(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 lae(){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 cae(t,e){return sae(t)||aae(t,e)||uae(t,e)||lae()}function uae(t,e){if(t){if(typeof t=="string")return x1(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)?x1(t,e):void 0}}const Em=Object.entries,A1=Object.setPrototypeOf,dae=Object.isFrozen,fae=Object.getPrototypeOf,pae=Object.getOwnPropertyDescriptor;let pt=Object.freeze,gt=Object.seal,Cr=Object.create,Sm=typeof Reflect<"u"&&Reflect,hc=Sm.apply,gc=Sm.construct;pt||(pt=function(e){return e});gt||(gt=function(e){return e});hc||(hc=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)});gc||(gc=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 gr=et(Array.prototype.forEach),mae=et(Array.prototype.lastIndexOf),T1=et(Array.prototype.pop),vr=et(Array.prototype.push),hae=et(Array.prototype.splice),co=Array.isArray,Si=et(String.prototype.toLowerCase),Pl=et(String.prototype.toString),N1=et(String.prototype.match),_i=et(String.prototype.replace),D1=et(String.prototype.indexOf),gae=et(String.prototype.trim),vae=et(Number.prototype.toString),_ae=et(Boolean.prototype.toString),$1=typeof BigInt>"u"?null:et(BigInt.prototype.toString),B1=typeof Symbol>"u"?null:et(Symbol.prototype.toString),at=et(Object.prototype.hasOwnProperty),yi=et(Object.prototype.toString),st=et(RegExp.prototype.test),$o=yae(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 hc(t,e,o)}}function yae(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return gc(t,n)}}function xe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Si;if(A1&&A1(t,null),!co(e))return t;let o=e.length;for(;o--;){let i=e[o];if(typeof i=="string"){const s=n(i);s!==i&&(dae(e)||(e[o]=s),i=s)}t[i]=!0}return t}function Cae(t){for(let e=0;e<t.length;e++)at(t,e)||(t[e]=null);return t}function yt(t){const e=Cr(null);for(const o of Em(t)){var n=cae(o,2);const i=n[0],s=n[1];at(t,i)&&(co(s)?e[i]=Cae(s):s&&typeof s=="object"&&s.constructor===Object?e[i]=yt(s):e[i]=s)}return e}function bae(t){switch(typeof t){case"string":return t;case"number":return vae(t);case"boolean":return _ae(t);case"bigint":return $1?$1(t):"0";case"symbol":return B1?B1(t):"Symbol()";case"undefined":return yi(t);case"function":case"object":{if(t===null)return yi(t);const e=t,n=an(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:yi(o)}return yi(t)}default:return yi(t)}}function an(t,e){for(;t!==null;){const o=pae(t,e);if(o){if(o.get)return et(o.get);if(typeof o.value=="function")return et(o.value)}t=fae(t)}function n(){return null}return n}function kae(t){try{return st(t,""),!0}catch{return!1}}const M1=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"]),Fl=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"]),Rl=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"]),wae=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"]),zl=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"]),Eae=pt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),L1=pt(["#text"]),O1=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"]),Ul=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"]),V1=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"]),Sae=gt(/{{[\w\W]*|^[\w\W]*}}/g),xae=gt(/<%[\w\W]*|^[\w\W]*%>/g),Aae=gt(/\${[\w\W]*/g),Tae=gt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Nae=gt(/^aria-[\-\w]+$/),I1=gt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Dae=gt(/^(?:\w+script|data):/i),$ae=gt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bae=gt(/^html$/i),Mae=gt(/^[a-z][.\w]*(-[.\w]+)+$/i),P1=gt(/<[/\w!]/g),F1=gt(/<[/\w]/g),Lae=gt(/<\/no(script|embed|frames)/i),Oae=gt(/\/>/i),Pt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Vae=function(){return typeof window>"u"?null:window},Iae=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}},R1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},io=function(e,n,o,i){return at(e,n)&&co(e[n])?xe(i.base?yt(i.base):{},e[n],i.transform):o};function xm(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vae();const e=J=>xm(J);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==Pt.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,f=t.trustedTypes,p=l.prototype,m=an(p,"cloneNode"),h=an(p,"remove"),g=an(p,"nextSibling"),y=an(p,"childNodes"),C=an(p,"parentNode"),v=an(p,"shadowRoot"),_=an(p,"attributes"),b=a&&a.prototype?an(a.prototype,"nodeType"):null,w=a&&a.prototype?an(a.prototype,"nodeName"):null,k=a&&a.prototype?an(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const J=n.createElement("template");J.content&&J.content.ownerDocument&&(n=J.content.ownerDocument)}let T,A="",S,E=!1,D=0;const x=function(){if(D>0)throw $o('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.')},$=function(N){x(),D++;try{return T.createHTML(N)}finally{D--}},B=function(N){x(),D++;try{return T.createScriptURL(N)}finally{D--}},V=function(){return E||(S=Iae(f,i),E=!0),S},I=n,j=I.implementation,F=I.createNodeIterator,q=I.createDocumentFragment,Q=I.getElementsByTagName,ae=o.importNode;let ne=R1();e.isSupported=typeof Em=="function"&&typeof C=="function"&&j&&j.createHTMLDocument!==void 0;const ye=Sae,re=xae,ie=Aae,U=Tae,P=Nae,se=Dae,we=$ae,Re=Mae;let Ce=I1,R=null;const le=xe({},[...M1,...Fl,...Rl,...zl,...L1]);let ge=null;const me=xe({},[...O1,...Ul,...V1,...Ls]);let Ee=Object.seal(Cr(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}})),ze=null,Be=null;const Te=Object.seal(Cr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ie=!0,Pe=!0,dt=!1,Ln=!0,He=!1,_t=!0,it=!1,Bt=!1,Zt=null,_n=null,On=!1,L=!1,K=!1,fe=!1,Ue=!0,Je=!1;const Vn="user-content-";let Se=!0,Mt=!1,kt={},Lt=null;const ur=xe({},["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 _s=null;const ni=xe({},["audio","video","img","source","image","track"]);let Ot=null;const dr=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),to="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",Vt="http://www.w3.org/1999/xhtml";let no=Vt,To=!1,oi=null;const hl=xe({},[to,fr,Vt],Pl),ys=pt(["mi","mo","mn","ms","mtext"]);let It=xe({},ys);const Cs=pt(["annotation-xml"]);let ri=xe({},Cs);const gl=xe({},["title","style","font","a","script"]);let No=null;const ii=["application/xhtml+xml","text/html"],si="text/html";let Oe=null,rn=null;const ai=n.createElement("form"),bs=function(N){return N instanceof RegExp||N instanceof Function},oo=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(rn&&rn===N)return;(!N||typeof N!="object")&&(N={}),N=yt(N),No=ii.indexOf(N.PARSER_MEDIA_TYPE)===-1?si:N.PARSER_MEDIA_TYPE,Oe=No==="application/xhtml+xml"?Pl:Si,R=io(N,"ALLOWED_TAGS",le,{transform:Oe}),ge=io(N,"ALLOWED_ATTR",me,{transform:Oe}),oi=io(N,"ALLOWED_NAMESPACES",hl,{transform:Pl}),Ot=io(N,"ADD_URI_SAFE_ATTR",dr,{transform:Oe,base:dr}),_s=io(N,"ADD_DATA_URI_TAGS",ni,{transform:Oe,base:ni}),Lt=io(N,"FORBID_CONTENTS",ur,{transform:Oe}),ze=io(N,"FORBID_TAGS",yt({}),{transform:Oe}),Be=io(N,"FORBID_ATTR",yt({}),{transform:Oe}),kt=at(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?yt(N.USE_PROFILES):N.USE_PROFILES:!1,Ie=N.ALLOW_ARIA_ATTR!==!1,Pe=N.ALLOW_DATA_ATTR!==!1,dt=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Ln=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,He=N.SAFE_FOR_TEMPLATES||!1,_t=N.SAFE_FOR_XML!==!1,it=N.WHOLE_DOCUMENT||!1,L=N.RETURN_DOM||!1,K=N.RETURN_DOM_FRAGMENT||!1,fe=N.RETURN_TRUSTED_TYPE||!1,On=N.FORCE_BODY||!1,Ue=N.SANITIZE_DOM!==!1,Je=N.SANITIZE_NAMED_PROPS||!1,Se=N.KEEP_CONTENT!==!1,Mt=N.IN_PLACE||!1,Ce=kae(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:I1,no=typeof N.NAMESPACE=="string"?N.NAMESPACE:Vt,It=at(N,"MATHML_TEXT_INTEGRATION_POINTS")&&N.MATHML_TEXT_INTEGRATION_POINTS&&typeof N.MATHML_TEXT_INTEGRATION_POINTS=="object"?yt(N.MATHML_TEXT_INTEGRATION_POINTS):xe({},ys),ri=at(N,"HTML_INTEGRATION_POINTS")&&N.HTML_INTEGRATION_POINTS&&typeof N.HTML_INTEGRATION_POINTS=="object"?yt(N.HTML_INTEGRATION_POINTS):xe({},Cs);const O=at(N,"CUSTOM_ELEMENT_HANDLING")&&N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING=="object"?yt(N.CUSTOM_ELEMENT_HANDLING):Cr(null);if(Ee=Cr(null),at(O,"tagNameCheck")&&bs(O.tagNameCheck)&&(Ee.tagNameCheck=O.tagNameCheck),at(O,"attributeNameCheck")&&bs(O.attributeNameCheck)&&(Ee.attributeNameCheck=O.attributeNameCheck),at(O,"allowCustomizedBuiltInElements")&&typeof O.allowCustomizedBuiltInElements=="boolean"&&(Ee.allowCustomizedBuiltInElements=O.allowCustomizedBuiltInElements),gt(Ee),He&&(Pe=!1),K&&(L=!0),kt&&(R=xe({},L1),ge=Cr(null),kt.html===!0&&(xe(R,M1),xe(ge,O1)),kt.svg===!0&&(xe(R,Fl),xe(ge,Ul),xe(ge,Ls)),kt.svgFilters===!0&&(xe(R,Rl),xe(ge,Ul),xe(ge,Ls)),kt.mathMl===!0&&(xe(R,zl),xe(ge,V1),xe(ge,Ls))),Te.tagCheck=null,Te.attributeCheck=null,at(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?Te.tagCheck=N.ADD_TAGS:co(N.ADD_TAGS)&&(R===le&&(R=yt(R)),xe(R,N.ADD_TAGS,Oe))),at(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?Te.attributeCheck=N.ADD_ATTR:co(N.ADD_ATTR)&&(ge===me&&(ge=yt(ge)),xe(ge,N.ADD_ATTR,Oe))),at(N,"ADD_URI_SAFE_ATTR")&&co(N.ADD_URI_SAFE_ATTR)&&xe(Ot,N.ADD_URI_SAFE_ATTR,Oe),at(N,"FORBID_CONTENTS")&&co(N.FORBID_CONTENTS)&&(Lt===ur&&(Lt=yt(Lt)),xe(Lt,N.FORBID_CONTENTS,Oe)),at(N,"ADD_FORBID_CONTENTS")&&co(N.ADD_FORBID_CONTENTS)&&(Lt===ur&&(Lt=yt(Lt)),xe(Lt,N.ADD_FORBID_CONTENTS,Oe)),Se&&(R["#text"]=!0),it&&xe(R,["html","head","body"]),R.table&&(xe(R,["tbody"]),delete ze.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw $o('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $o('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const W=T;T=N.TRUSTED_TYPES_POLICY;try{A=$("")}catch(ce){throw T=W,ce}}else N.TRUSTED_TYPES_POLICY===null?(T=void 0,A=""):(T===void 0&&(T=V()),T&&typeof A=="string"&&(A=$("")));pt&&pt(N),rn=N},li=xe({},[...Fl,...Rl,...wae]),M=xe({},[...zl,...Eae]),Y=function(N,O,W){return O.namespaceURI===Vt?N==="svg":O.namespaceURI===to?N==="svg"&&(W==="annotation-xml"||It[W]):!!li[N]},be=function(N,O,W){return O.namespaceURI===Vt?N==="math":O.namespaceURI===fr?N==="math"&&ri[W]:!!M[N]},je=function(N,O,W){return O.namespaceURI===fr&&!ri[W]||O.namespaceURI===to&&!It[W]?!1:!M[N]&&(gl[N]||!li[N])},In=function(N){let O=C(N);(!O||!O.tagName)&&(O={namespaceURI:no,tagName:"template"});const W=Si(N.tagName),ce=Si(O.tagName);return oi[N.namespaceURI]?N.namespaceURI===fr?Y(W,O,ce):N.namespaceURI===to?be(W,O,ce):N.namespaceURI===Vt?je(W,O,ce):!!(No==="application/xhtml+xml"&&oi[N.namespaceURI]):!1},sn=function(N){vr(e.removed,{element:N});try{C(N).removeChild(N)}catch{if(h(N),!C(N))throw $o("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 O=y(N);if(O){const ce=[];gr(O,de=>{vr(ce,de)}),gr(ce,de=>{try{h(de)}catch{}})}const W=_(N);if(W)for(let ce=W.length-1;ce>=0;--ce){const de=W[ce],_e=de&&de.name;if(typeof _e=="string")try{N.removeAttribute(_e)}catch{}}},Pn=function(N,O){try{vr(e.removed,{attribute:O.getAttributeNode(N),from:O})}catch{vr(e.removed,{attribute:null,from:O})}if(O.removeAttribute(N),N==="is")if(L||K)try{sn(O)}catch{}else try{O.setAttribute(N,"")}catch{}},ks=function(N){const O=_(N);if(O)for(let W=O.length-1;W>=0;--W){const ce=O[W],de=ce&&ce.name;if(!(typeof de!="string"||ge[Oe(de)]))try{N.removeAttribute(de)}catch{}}},ui=function(N){const O=[N];for(;O.length>0;){const W=O.pop();(b?b(W):W.nodeType)===Pt.element&&ks(W);const de=y(W);if(de)for(let _e=de.length-1;_e>=0;--_e)O.push(de[_e])}},Zg=function(N){if(!_t)return;const O=[N];for(;O.length>0;){const W=O.pop(),ce=b?b(W):W.nodeType;if(ce===Pt.processingInstruction||ce===Pt.comment&&st(F1,W.data)){try{h(W)}catch{}continue}if(ce===Pt.element){const _e=W,Ve=Oe(w?w(W):W.nodeName);try{_e.hasAttribute&&_e.hasAttribute("patchsrc")&&_e.removeAttribute("patchsrc"),_e.hasAttribute&&_e.hasAttribute("for")&&Ve!=="label"&&Ve!=="output"&&_e.removeAttribute("for")}catch{}}const de=y(W);if(de)for(let _e=de.length-1;_e>=0;--_e)O.push(de[_e])}},gd=function(N){let O=null,W=null;if(On)N="<remove></remove>"+N;else{const _e=N1(N,/^[\r\n\t ]+/);W=_e&&_e[0]}No==="application/xhtml+xml"&&no===Vt&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const ce=T?$(N):N;if(no===Vt)try{O=new d().parseFromString(ce,No)}catch{}if(!O||!O.documentElement){O=j.createDocument(no,"template",null);try{O.documentElement.innerHTML=To?A:ce}catch{}}const de=O.body||O.documentElement;return N&&W&&de.insertBefore(n.createTextNode(W),de.childNodes[0]||null),no===Vt?Q.call(O,it?"html":"body")[0]:it?O.documentElement:de},vd=function(N){const O=k?k(N):N.ownerDocument;return F.call(O||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=_i(N,ye," "),N=_i(N,re," "),N=_i(N,ie," "),N},vl=function(N){var O;N.normalize();const W=k?k(N):N.ownerDocument,ce=F.call(W||N,N,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let de=ce.nextNode();for(;de;)de.data=ws(de.data),de=ce.nextNode();const _e=(O=N.querySelectorAll)===null||O===void 0?void 0:O.call(N,"template");_e&&gr(_e,Ve=>{pr(Ve.content)&&vl(Ve.content)})},Es=function(N){const O=w?w(N):null;return typeof O!="string"||Oe(O)!=="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!==y(N)},pr=function(N){if(!b||typeof N!="object"||N===null)return!1;try{return b(N)===Pt.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 yn(J,N,O){J.length!==0&&gr(J,W=>{W.call(e,N,O,rn)})}const Kg=function(N,O){return!!(_t&&N.hasChildNodes()&&!di(N.firstElementChild)&&st(P1,N.textContent)&&st(P1,N.innerHTML)||_t&&N.namespaceURI===Vt&&O==="style"&&di(N.firstElementChild)||N.nodeType===Pt.processingInstruction||_t&&N.nodeType===Pt.comment&&st(F1,N.data))},Gg=function(N,O,W){if(!ze[O]&&bd(O)&&(Ee.tagNameCheck instanceof RegExp&&st(Ee.tagNameCheck,O)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(O)))return!1;if(Se&&!Lt[O]){const ce=C(N),de=y(N);if(de&&ce){const _e=de.length;for(let Ve=_e-1;Ve>=0;--Ve){const We=N===W?m(de[Ve],!0):de[Ve];ce.insertBefore(We,g(N))}}}return sn(N),!0},_d=function(N,O,W,ce){return N.length===0?O:O===W||O===ce?yt(O):O},yd=function(N,O){if(yn(ne.beforeSanitizeElements,N,null),N!==O&&C(N)===null)return Mt&&ui(N),!0;if(Es(N))return sn(N),!0;const W=Oe(w?w(N):N.nodeName);if(R=_d(ne.uponSanitizeElement,R,le,Zt),yn(ne.uponSanitizeElement,N,{tagName:W,allowedTags:R}),N!==O&&C(N)===null)return Mt&&ui(N),!0;if(Kg(N,W))return sn(N),!0;if(ze[W]||!(Te.tagCheck instanceof Function&&Te.tagCheck(W))&&!R[W]){const de=Gg(N,W,O);return de===!1&&yn(ne.afterSanitizeElements,N,null),de}if((b?b(N):N.nodeType)===Pt.element&&!In(N)||(W==="noscript"||W==="noembed"||W==="noframes")&&st(Lae,N.innerHTML))return sn(N),!0;if(He&&N.nodeType===Pt.text){const de=ws(N.textContent);N.textContent!==de&&(vr(e.removed,{element:N.cloneNode()}),N.textContent=de)}return yn(ne.afterSanitizeElements,N,null),!1},Cd=function(N,O,W){if(Be[O]||_t&&O==="patchsrc"||_t&&O==="for"&&N!=="label"&&N!=="output"||Ue&&(O==="id"||O==="name")&&(W in n||W in ai))return!1;const ce=ge[O]||Te.attributeCheck instanceof Function&&Te.attributeCheck(O,N);if(!(Pe&&st(U,O))){if(!(Ie&&st(P,O))){if(ce){if(!Ot[O]){if(!st(Ce,_i(W,we,""))){if(!((O==="src"||O==="xlink:href"||O==="href")&&N!=="script"&&D1(W,"data:")===0&&_s[N])){if(!(dt&&!st(se,_i(W,we,"")))){if(W)return!1}}}}}else if(!(bd(N)&&(Ee.tagNameCheck instanceof RegExp&&st(Ee.tagNameCheck,N)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(N))&&(Ee.attributeNameCheck instanceof RegExp&&st(Ee.attributeNameCheck,O)||Ee.attributeNameCheck instanceof Function&&Ee.attributeNameCheck(O,N))||O==="is"&&Ee.allowCustomizedBuiltInElements&&(Ee.tagNameCheck instanceof RegExp&&st(Ee.tagNameCheck,W)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(W))))return!1}}return!0},Yg=xe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),bd=function(N){return!Yg[Si(N)]&&st(Re,N)},Jg=function(N,O,W,ce){if(T&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!W)switch(f.getAttributeType(N,O)){case"TrustedHTML":return $(ce);case"TrustedScriptURL":return B(ce)}return ce},Xg=function(N,O,W,ce){try{W?N.setAttributeNS(W,O,ce):N.setAttribute(O,ce),Es(N)?sn(N):T1(e.removed)}catch{Pn(O,N)}},kd=function(N){yn(ne.beforeSanitizeAttributes,N,null);const O=N.attributes;if(!O||Es(N))return;ge=_d(ne.uponSanitizeAttribute,ge,me,_n);const W={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ge,forceKeepAttr:void 0};let ce=O.length;const de=Oe(N.nodeName);for(;ce--;){const _e=O[ce],Ve=_e.name,We=_e.namespaceURI,At=_e.value,Tt=Oe(Ve),yl=At;let wt=Ve==="value"?yl:gae(yl);if(W.attrName=Tt,W.attrValue=wt,W.keepAttr=!0,W.forceKeepAttr=void 0,yn(ne.uponSanitizeAttribute,N,W),wt=W.attrValue,Je&&(Tt==="id"||Tt==="name")&&D1(wt,Vn)!==0&&(Pn(Ve,N),wt=Vn+wt),_t&&st(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,wt)){Pn(Ve,N);continue}if(Tt==="attributename"&&N1(wt,"href")){Pn(Ve,N);continue}if(!W.forceKeepAttr){if(!W.keepAttr){Pn(Ve,N);continue}if(!Ln&&st(Oae,wt)){Pn(Ve,N);continue}if(He&&(wt=ws(wt)),!Cd(de,Tt,wt)){Pn(Ve,N);continue}wt=Jg(de,Tt,We,wt),wt!==yl&&Xg(N,Ve,We,wt)}}yn(ne.afterSanitizeAttributes,N,null)},Ss=function(N){let O=null;const W=vd(N);for(yn(ne.beforeSanitizeShadowDOM,N,null);O=W.nextNode();)if(yn(ne.uponSanitizeShadowNode,O,null),yd(O,N),kd(O),pr(O.content)&&Ss(O.content),(b?b(O):O.nodeType)===Pt.element){const de=v(O);pr(de)&&(_l(de),Ss(de))}yn(ne.afterSanitizeShadowDOM,N,null)},_l=function(N){const O=[{node:N,shadow:null}];for(;O.length>0;){const W=O.pop();if(W.shadow){Ss(W.shadow);continue}const ce=W.node,_e=(b?b(ce):ce.nodeType)===Pt.element,Ve=y(ce);if(Ve)for(let We=Ve.length-1;We>=0;--We)O.push({node:Ve[We],shadow:null});if(_e){const We=w?w(ce):null;if(typeof We=="string"&&Oe(We)==="template"){const At=ce.content;pr(At)&&O.push({node:At,shadow:null})}}if(_e){const We=v(ce);pr(We)&&O.push({node:null,shadow:We},{node:We,shadow:null})}}};return e.sanitize=function(J){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=null,W=null,ce=null,de=null;if(To=!J,To&&(J="<!-->"),typeof J!="string"&&!di(J)&&(J=bae(J),typeof J!="string"))throw $o("dirty is not a string, aborting");if(!e.isSupported)return J;Bt?(R=Zt,ge=_n):oo(N),(ne.uponSanitizeElement.length>0||ne.uponSanitizeAttribute.length>0)&&(R=yt(R)),ne.uponSanitizeAttribute.length>0&&(ge=yt(ge)),e.removed=[];const _e=Mt&&typeof J!="string"&&di(J);if(_e){Zg(J);const At=w?w(J):J.nodeName;if(typeof At=="string"){const Tt=Oe(At);if(!R[Tt]||ze[Tt])throw ci(J),$o("root node is forbidden and cannot be sanitized in-place")}if(Es(J))throw ci(J),$o("root node is clobbered and cannot be sanitized in-place");try{_l(J)}catch(Tt){throw ci(J),Tt}}else if(di(J))O=gd("<!---->"),W=O.ownerDocument.importNode(J,!0),W.nodeType===Pt.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?O=W:O.appendChild(W),_l(W);else{if(!L&&!He&&!it&&J.indexOf("<")===-1)return T&&fe?$(J):J;if(O=gd(J),!O)return L?null:fe?A:""}O&&On&&sn(O.firstChild);const Ve=_e?J:O;try{const At=vd(Ve);for(;ce=At.nextNode();)yd(ce,Ve),kd(ce),pr(ce.content)&&Ss(ce.content)}catch(At){throw _e&&(ci(J),gr(e.removed,Tt=>{Tt.element&&ui(Tt.element)})),At}if(_e)return gr(e.removed,At=>{At.element&&ui(At.element)}),He&&vl(J),J;if(L){if(He&&vl(O),K)for(de=q.call(O.ownerDocument);O.firstChild;)de.appendChild(O.firstChild);else de=O;return(ge.shadowroot||ge.shadowrootmode)&&(de=ae.call(o,de,!0)),de}let We=it?O.outerHTML:O.innerHTML;return it&&R["!doctype"]&&O.ownerDocument&&O.ownerDocument.doctype&&O.ownerDocument.doctype.name&&st(Bae,O.ownerDocument.doctype.name)&&(We="<!DOCTYPE "+O.ownerDocument.doctype.name+`>
|
|
19
|
+
`+We),He&&(We=ws(We)),T&&fe?$(We):We},e.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};oo(J),Bt=!0,Zt=R,_n=ge},e.clearConfig=function(){rn=null,Bt=!1,Zt=null,_n=null,T=S,A=""},e.isValidAttribute=function(J,N,O){rn||oo({});const W=Oe(J),ce=Oe(N);return Cd(W,ce,O)},e.addHook=function(J,N){typeof N=="function"&&at(ne,J)&&vr(ne[J],N)},e.removeHook=function(J,N){if(at(ne,J)){if(N!==void 0){const O=mae(ne[J],N);return O===-1?void 0:hae(ne[J],O,1)[0]}return T1(ne[J])}},e.removeHooks=function(J){at(ne,J)&&(ne[J]=[])},e.removeAllHooks=function(){ne=R1()},e}var Pae=xm();const Fae=["innerHTML"],Rae={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},Am=r.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(t){const e=t,n=new iae({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=r.computed(()=>e.content?Pae.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,Fae)):(r.openBlock(),r.createElementBlock("div",Rae,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 Tm(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 gn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,zae=gn&&"documentMode"in document?document.documentMode:null,ln=gn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Jo=gn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),sa=!(!gn||!("InputEvent"in window)||zae)&&"getTargetRanges"in new window.InputEvent("input"),Hi=gn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Rr=gn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Uae=gn&&/Android/.test(navigator.userAgent),Nm=gn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),z1=gn&&Uae&&Nm,ji=gn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&ln&&!Nm;function Dm(...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 qae=0,Hae=1,jae=2,$m=128,Wae=1,Zae=2,Kae=3,Gae=4,Yae=5,Jae=6,Ya=Hi||Rr||ji?" ":"",Co=`
|
|
20
20
|
|
|
21
|
-
`,Xae=Jo?" ":Ya,Et={bold:1,capitalize:1024,code:16,highlight:$m,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Qae={directionless:1,unmergeable:2},U1={center:2,end:6,justify:4,left:1,right:3,start:5},ele={[Zae]:"center",[Jae]:"end",[Gae]:"justify",[Wae]:"left",[Kae]:"right",[Yae]:"start"},tle={normal:0,segmented:2,token:1},nle={[qae]:"normal",[jae]:"segmented",[Hae]:"token"},q1="$config";function Bm(t,e,n,o,i,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(z(a)&&Bm(a,l,n,o,i,s),n.has(l)||s.delete(l),i.push(l)),a=a.getNextSibling()}}let vc=!1,Eu=0;function ole(t){Eu=t.timeStamp}function ql(t,e,n){const o=t.nodeName==="BR",i=e.__lexicalLineBreak;return i&&(t===i||o&&t.previousSibling===i)||o&&il(t,n)!==void 0}function rle(t,e,n){const o=pn(on(n));let i=null,s=null;o!==null&&o.anchorNode===t&&(i=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&Ru(e,a,i,s,!1)}function ile(t,e,n){if(Z(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return eo(e)&&n.isAttached()}function sle(t,e,n,o){for(let i=t;i&&!cce(i);i=hs(i)){const s=il(i,e);if(s!==void 0){const a=rt(s,n);if(a)return Ne(a)||!tt(i)?void 0:[i,a]}else if(i===o)return[o,Lh(n)]}}function Mm(t,e,n){vc=!0;const o=performance.now()-Eu>100;try{Rt(t,()=>{const i=ee()||function(p){return p.getEditorState().read(()=>{const m=ee();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 p=0;p<e.length;p++){const m=e[p],h=m.type,g=m.target,y=sle(g,t,l,a);if(!y)continue;const[C,v]=y;if(h==="characterData")o&&X(v)&&eo(g)&&ile(i,g,v)&&rle(g,v,t);else if(h==="childList"){u=!0;const _=m.addedNodes;for(let k=0;k<_.length;k++){const A=_[k],T=Bh(A),S=A.parentNode;if(S!=null&&A!==c&&T===null&&!ql(A,S,t)){if(Jo){const E=(tt(A)?A.innerText:null)||A.nodeValue;E&&(d+=E)}S.removeChild(A)}}const b=m.removedNodes,w=b.length;if(w>0){let k=0;for(let A=0;A<w;A++){const T=b[A];(ql(T,g,t)||c===T)&&(g.appendChild(T),k++)}w!==k&&s.set(C,v)}}}if(s.size>0)for(const[p,m]of s)m.reconcileObservedMutation(p,t);const f=n.takeRecords();if(f.length>0){for(let p=0;p<f.length;p++){const m=f[p],h=m.addedNodes,g=m.target;for(let y=0;y<h.length;y++){const C=h[y],v=C.parentNode;v==null||C.nodeName!=="BR"||ql(C,g,t)||v.removeChild(C)}}n.takeRecords()}i!==null&&(u&&vt(i),Jo&&Ph(t)&&i.insertRawText(d))})}finally{vc=!1}}function Lm(t){const e=t._observer;e!==null&&Mm(t,e.takeRecords(),e)}function Om(t){(function(e){Eu===0&&on(e).addEventListener("textInput",ole,!0)})(t),t._observer=new MutationObserver((e,n)=>{Mm(t,e,n)})}let ale=class{constructor(e,n){H(this,"key");H(this,"parse");H(this,"unparse");H(this,"isEqual");H(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||dle).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function lle(t,e){return new ale(t,e)}function Vm(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function Hl(t,e,n){let o;if(lt(),typeof n=="function"){const s=t.getLatest(),a=Vm(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const i=t.getWritable();return Pm(i).updateFromKnown(e,o),i}function cle(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}=ll(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 ule=class Im{constructor(e,n,o=void 0,i=new Map,s=void 0){H(this,"node");H(this,"knownState");H(this,"unknownState");H(this,"sharedNodeState");H(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 f=d.size;if(u)for(const p in u){const m=c.get(p);m&&d.has(m)||f++}return f}(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 H1(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 Im(e,n,function(s,a,l){let c;if(l)for(const[u,d]of Object.entries(l)){const f=s.get(u);f?a.has(f)||a.set(f,f.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=H1(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 Pm(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new ule(e,Fm(e));return e.__state=n,n}function Fm(t){return t.__state?t.__state.sharedNodeState:Ah(al(),t.getType()).sharedNodeState}function H1(t){if(t)for(const e in t)return t}function dle(t){return t}function j1(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 W1(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 Z1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function K1(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,f){if(d===f)return!0;if(d&&f&&d.size!==f.size)return!1;const p=new Set;return!(d&&j1(p,d,f)||f&&j1(p,f,d)||d&&W1(p,d,f)||f&&W1(p,f,d))}(c,u))}function G1(t,e){const n=t.mergeWithSibling(e),o=Ke()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function Y1(t){let e,n,o=t;if(o.__text!==""||!o.isSimpleText()||o.isUnmergeable()){for(;(e=o.getPreviousSibling())!==null&&X(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(K1(e,o)){o=G1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(K1(o,n)){o=G1(o,n);break}break}n.remove()}}else o.remove()}function aa(t){return J1(t.anchor),J1(t.focus),t}function J1(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),X(o)){t.set(o.__key,i?o.getTextContentSize():0,"text",!0);break}if(!z(o))break;t.set(o.__key,i?o.getChildrenSize():0,"element",!0)}}let Xo,bt,Wi,Ja,_c,yc,Qo,un,Cc,Zi,ot="",bn=null,kn="",qn="",br=!1,la=!1;function ca(t,e){const n=Qo.get(t);if(e!==null){const o=Ec(t);o.parentNode===e&&e.removeChild(o)}if(un.has(t)||bt._keyToDOMMap.delete(t),z(n)){const o=da(n,Qo);bc(o,0,o.length-1,null)}n!==void 0&&zu(Zi,Wi,Ja,n,"destroyed")}function bc(t,e,n,o){let i=e;for(;i<=n;++i){const s=t[i];s!==void 0&&ca(s,o)}}function Bo(t,e){t.setProperty("text-align",e)}const fle="40px";function Rm(t,e){const n=Xo.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")||fle;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function zm(t,e){const n=t.style;e===0?Bo(n,""):e===1?Bo(n,"left"):e===2?Bo(n,"center"):e===3?Bo(n,"right"):e===4?Bo(n,"justify"):e===5?Bo(n,"start"):e===6&&Bo(n,"end")}function kc(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=un.get(t);n===void 0&&G(60);const o=n.createDOM(Xo,bt);if(function(i,s,a){const l=a._keyToDOMMap;(function(c,u,d){const f=`__lexicalKey_${u._key}`;c[f]=d})(s,a,i),l.set(i,s)}(t,o,bt),X(n)?o.setAttribute("data-lexical-text","true"):Ne(n)&&o.setAttribute("data-lexical-decorator","true"),z(n)){const i=n.__indent,s=n.__size;if(kc(o,n),i!==0&&Rm(o,i),s!==0){const l=s-1;wc(da(n,un),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&zm(o,a),n.isInline()||Um(null,n,o),sl(n)&&(ot+=Co,qn+=Co)}else{const i=n.getTextContent();if(Ne(n)){const s=n.decorate(bt,Xo);s!==null&&qm(t,s),o.contentEditable="false"}ot+=i,qn+=i}return e!==null&&e.insertChild(o),zu(Zi,Wi,Ja,n,"created"),o}function wc(t,e,n,o,i){const s=ot;ot="";let a=n;for(;a<=o;++a){ua(t[a],i);const l=un.get(t[a]);l!==null&&X(l)&&(bn===null&&(bn=l.getFormat()),kn===""&&(kn=l.getStyle()))}sl(e)&&(ot+=Co),i.element.__lexicalTextContent=ot,ot=s+ot}function X1(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return mo(o)?"line-break":Ne(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Um(t,e,n){const o=X1(t,Qo),i=X1(e,un);o!==i&&e.getDOMSlot(n).setManagedLineBreak(i)}function ple(t,e,n){var o;bn=null,kn="",function(i,s,a){const l=ot,c=i.__size,u=s.__size;ot="";const d=a.element;if(c===1&&u===1){const f=i.__first,p=s.__first;if(f===p)xi(f,d);else{const h=Ec(f),g=ua(p,null);try{d.replaceChild(g,h)}catch(y){if(typeof y=="object"&&y!=null){const C=`${y.toString()} Parent: ${d.tagName}, new child: {tag: ${g.tagName} key: ${p}}, old child: {tag: ${h.tagName}, key: ${f}}.`;throw new Error(C)}throw y}ca(f,null)}const m=un.get(p);X(m)&&(bn===null&&(bn=m.getFormat()),kn===""&&(kn=m.getStyle()))}else{const f=da(i,Qo),p=da(s,un);if(f.length!==c&&G(227),p.length!==u&&G(228),c===0)u!==0&&wc(p,s,0,u-1,a);else if(u===0){if(c!==0){const m=a.after==null&&a.before==null&&a.element.__lexicalLineBreak==null;bc(f,0,c-1,m?null:d),m&&(d.textContent="")}}else(function(m,h,g,y,C,v){const _=y-1,b=C-1;let w,k,A=v.getFirstChild(),T=0,S=0;for(;T<=_&&S<=b;){const x=h[T],$=g[S];if(x===$)A=jl(xi($,v.element)),T++,S++;else{w===void 0&&(w=new Set(h)),k===void 0&&(k=new Set(g));const V=k.has(x),I=w.has($);if(V)if(I){const j=tr(bt,$);j===A?A=jl(xi($,v.element)):(v.withBefore(A).insertChild(j),xi($,v.element)),T++,S++}else ua($,v.withBefore(A)),S++;else A=jl(Ec(x)),ca(x,v.element),T++}const B=un.get($);B!==null&&X(B)&&(bn===null&&(bn=B.getFormat()),kn===""&&(kn=B.getStyle()))}const E=T>_,D=S>b;if(E&&!D){const x=g[b+1],$=x===void 0?null:bt.getElementByKey(x);wc(g,m,S,b,v.withBefore($))}else D&&!E&&bc(h,T,_,v.element)})(s,f,p,c,u,a)}sl(s)&&(ot+=Co),d.__lexicalTextContent=ot,ot=l+ot}(t,e,e.getDOMSlot(n)),o=e,bn==null||bn===o.__textFormat||la||o.setTextFormat(bn),function(i){kn===""||kn===i.__textStyle||la||i.setTextStyle(kn)}(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=Qo.get(t);let o=un.get(t);n!==void 0&&o!==void 0||G(61);const i=br||yc.has(t)||_c.has(t),s=tr(bt,t);if(n===o&&!i){if(z(n)){const a=s.__lexicalTextContent;a!==void 0&&(ot+=a,qn+=a)}else{const a=n.getTextContent();qn+=a,ot+=a}return s}if(n!==o&&i&&zu(Zi,Wi,Ja,o,"updated"),o.updateDOM(n,s,Xo)){const a=ua(t,null);return e===null&&G(62),e.replaceChild(a,s),ca(t,null),a}if(z(n)&&z(o)){const a=o.__indent;(br||a!==n.__indent)&&Rm(s,a);const l=o.__format;if((br||l!==n.__format)&&zm(s,l),i&&(ple(n,o,s),Qe(o)||o.isInline()||Um(n,o,s)),sl(o)&&(ot+=Co,qn+=Co),(br||o.__dir!==n.__dir)&&(kc(s,o),Qe(o)&&!br))for(const c of o.getChildren())z(c)&&kc(tr(bt,c.getKey()),c)}else{const a=o.getTextContent();if(Ne(o)){const l=o.decorate(bt,Xo);l!==null&&qm(t,l)}ot+=a,qn+=a}if(!la&&Qe(o)&&o.__cachedText!==qn){const a=o.getWritable();a.__cachedText=qn,o=a}return s}function qm(t,e){let n=bt._pendingDecorators;const o=bt._decorators;if(n===null){if(o[t]===e)return;n=Mh(bt)}n[t]=e}function jl(t){let e=t.nextSibling;return e!==null&&e===bt._blockCursorElement&&(e=e.nextSibling),e}function mle(t,e,n,o,i,s){ot="",qn="",br=o===2,bt=n,Xo=n._config,Wi=n._nodes,Ja=bt._listeners.mutation,_c=i,yc=s,Qo=t._nodeMap,un=e._nodeMap,la=e._readOnly,Cc=new Map(n._keyToDOMMap);const a=new Map;return Zi=a,xi("root",null),bt=void 0,Wi=void 0,_c=void 0,yc=void 0,Qo=void 0,un=void 0,Xo=void 0,Cc=void 0,Zi=void 0,a}function Ec(t){const e=Cc.get(t);return e===void 0&&G(75,t),e}function pe(t){return{type:t}}const Hm=pe("SELECTION_CHANGE_COMMAND"),hle=pe("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),jm=pe("CLICK_COMMAND"),Ho=pe("DELETE_CHARACTER_COMMAND"),xr=pe("INSERT_LINE_BREAK_COMMAND"),Ki=pe("INSERT_PARAGRAPH_COMMAND"),Tr=pe("CONTROLLED_TEXT_INSERTION_COMMAND"),Su=pe("PASTE_COMMAND"),Sc=pe("REMOVE_TEXT_COMMAND"),Gi=pe("DELETE_WORD_COMMAND"),Yi=pe("DELETE_LINE_COMMAND"),Jt=pe("FORMAT_TEXT_COMMAND"),xu=pe("UNDO_COMMAND"),Tu=pe("REDO_COMMAND"),gle=pe("KEYDOWN_COMMAND"),Wm=pe("KEY_ARROW_RIGHT_COMMAND"),vle=pe("MOVE_TO_END"),Zm=pe("KEY_ARROW_LEFT_COMMAND"),_le=pe("MOVE_TO_START"),Km=pe("KEY_ARROW_UP_COMMAND"),Gm=pe("KEY_ARROW_DOWN_COMMAND"),fa=pe("KEY_ENTER_COMMAND"),Ym=pe("KEY_SPACE_COMMAND"),Jm=pe("KEY_BACKSPACE_COMMAND"),Xm=pe("KEY_ESCAPE_COMMAND"),Qm=pe("KEY_DELETE_COMMAND"),eh=pe("KEY_TAB_COMMAND"),yle=pe("INSERT_TAB_COMMAND"),Cle=pe("INDENT_CONTENT_COMMAND"),Q1=pe("OUTDENT_CONTENT_COMMAND"),th=pe("DROP_COMMAND"),ble=pe("FORMAT_ELEMENT_COMMAND"),nh=pe("DRAGSTART_COMMAND"),oh=pe("DRAGOVER_COMMAND"),kle=pe("DRAGEND_COMMAND"),Xa=pe("COPY_COMMAND"),Au=pe("CUT_COMMAND"),xc=pe("SELECT_ALL_COMMAND"),wle=pe("CLEAR_EDITOR_COMMAND"),Ele=pe("CLEAR_HISTORY_COMMAND"),Os=pe("CAN_REDO_COMMAND"),Vs=pe("CAN_UNDO_COMMAND"),Sle=pe("FOCUS_COMMAND"),xle=pe("BLUR_COMMAND"),Tle=pe("KEY_MODIFIER_COMMAND"),Fn=Object.freeze({}),Tc=[["keydown",function(t,e){if($i=t.timeStamp,rh=t.key,!e.isComposing()&&!oe(e,gle,t)&&t.key!=null){if(Wl&&Nf(t))return Rt(e,()=>{Is(e,Zl)}),Wl=!1,void(Zl="");if(function(n){return Me(n,"ArrowRight",{shiftKey:"any"})}(t))oe(e,Wm,t);else if(function(n){return Me(n,"ArrowRight",zn)}(t))oe(e,vle,t);else if(function(n){return Me(n,"ArrowLeft",{shiftKey:"any"})}(t))oe(e,Zm,t);else if(function(n){return Me(n,"ArrowLeft",zn)}(t))oe(e,_le,t);else if(function(n){return Me(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))oe(e,Km,t);else if(function(n){return Me(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))oe(e,Gm,t);else if(function(n){return Me(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Bi=!0,oe(e,fa,t);else if(function(n){return n.key===" "}(t))oe(e,Ym,t);else if(function(n){return ln&&Me(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Bi=!0,oe(e,xr,!0);else if(function(n){return Me(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Bi=!1,oe(e,fa,t);else if(function(n){return Me(n,"Backspace",{shiftKey:"any"})||ln&&Me(n,"h",{ctrlKey:!0})}(t))Nf(t)?oe(e,Jm,t):(t.preventDefault(),oe(e,Ho,!0));else if(function(n){return n.key==="Escape"}(t))oe(e,Xm,t);else if(function(n){return Me(n,"Delete",{})||ln&&Me(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?oe(e,Qm,t):(t.preventDefault(),oe(e,Ho,!1));else if(function(n){return Me(n,"Backspace",Af)}(t))t.preventDefault(),oe(e,Gi,!0);else if(function(n){return Me(n,"Delete",Af)}(t))t.preventDefault(),oe(e,Gi,!1);else if(function(n){return ln&&Me(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),oe(e,Yi,!0);else if(function(n){return ln&&(Me(n,"Delete",{metaKey:!0})||Me(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),oe(e,Yi,!1);else if(function(n){return Me(n,"b",zn)}(t))t.preventDefault(),oe(e,Jt,"bold");else if(function(n){return Me(n,"u",zn)}(t))t.preventDefault(),oe(e,Jt,"underline");else if(function(n){return Me(n,"i",zn)}(t))t.preventDefault(),oe(e,Jt,"italic");else if(function(n){return Me(n,"Tab",{shiftKey:"any"})}(t))oe(e,eh,t);else if(function(n){return Me(n,"z",zn)}(t))t.preventDefault(),oe(e,xu,void 0);else if(function(n){return ln?Me(n,"z",{metaKey:!0,shiftKey:!0}):Me(n,"y",{ctrlKey:!0})||Me(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),oe(e,Tu,void 0);else{const n=e._editorState._selection;n===null||Z(n)?Df(t)&&(t.preventDefault(),oe(e,xc,t)):function(o){return Me(o,"c",zn)}(t)?(t.preventDefault(),oe(e,Xa,t)):function(o){return Me(o,"x",zn)}(t)?(t.preventDefault(),oe(e,Au,t)):Df(t)&&(t.preventDefault(),oe(e,xc,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&oe(e,Tle,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Xr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&Rt(e,()=>{Sf(n)||(Dc=!0)})}],["compositionstart",function(t,e){Rt(e,()=>{const n=ee();if(Z(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||X(i)&&i.getStyle()!==n.style)&&oe(e,Tr,Xae)}})}],["compositionend",function(t,e){Jo?Ci=!0:Rr||!Hi&&!ji?Rt(e,()=>{Is(e,t.data)}):(Wl=!0,Zl=t.data)}],["input",function(t,e){t.stopPropagation(),Rt(e,()=>{if(tt(t.target)&&Sf(t.target))return;const n=ee(),o=t.data,i=ch(t);if(o!=null&&Z(n)&&ah(n,i,o,t.timeStamp,!1)){Ci&&(Is(e,o),Ci=!1);const s=n.anchor.getNode(),a=pn(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()&&X(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===Ih(a.anchorNode)||oe(e,Tr,o);const d=o.length;Jo&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),Hi||Rr||ji||!e.isComposing()||($i=0,ft(null))}else Fu(!1,e,o!==null?o:void 0),Ci&&(Is(e,o||void 0),Ci=!1);(function(){lt();const s=Ke();Lm(s)})()},{event:t}),kr=null}],["click",function(t,e){Rt(e,()=>{const n=ee(),o=pn(on(e)),i=Jr();if(o){if(Z(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!Qe(a)&&Ge().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=>z(c)&&!c.isInline());z(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(tt(s)||eo(s))&&vt(Du(i,o,e,t))}}oe(e,jm,t)})}],["cut",Fn],["copy",Fn],["dragstart",Fn],["dragover",Fn],["dragend",Fn],["paste",Fn],["focus",Fn],["blur",Fn],["drop",Fn]];sa&&Tc.push(["beforeinput",(t,e)=>function(n,o){const i=n.inputType,s=ch(n);i==="deleteCompositionText"||Jo&&Ph(o)||i!=="insertCompositionText"&&Rt(o,()=>{const a=ee();if(i==="deleteContentBackward"){if(a===null){const m=Jr();if(!Z(m))return;vt(m.clone())}if(Z(a)){const m=a.anchor.key===a.focus.key;if(l=n.timeStamp,rh==="MediaLast"&&l<$i+30&&o.isComposing()&&m){if(ft(null),$i=0,setTimeout(()=>{Rt(o,()=>{ft(null)})},30),Z(a)){const h=a.anchor.getNode();h.markDirty(),X(h)||G(142),lh(a,h)}}else{ft(null),n.preventDefault();const h=a.anchor.getNode(),g=h.getTextContent(),y=h.canInsertTextAfter(),C=a.anchor.offset===0&&a.focus.offset===g.length;let v=z1&&m&&!C&&y;if(v&&a.isCollapsed()&&(v=!Ne(Oc(a.anchor,!0))),!v){oe(o,Ho,!0);const _=ee();z1&&Z(_)&&_.isCollapsed()&&(Po=_,setTimeout(()=>Po=null))}}return}}var l;if(!Z(a))return;const c=n.data;kr!==null&&Fu(!1,o,kr),a.dirty&&kr===null||!a.isCollapsed()||Qe(a.anchor.getNode())||s===null||a.applyDOMRange(s),kr=null;const u=a.anchor,d=a.focus,f=u.getNode(),p=d.getNode();if(i!=="insertText"&&i!=="insertTranspose")switch(n.preventDefault(),i){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":oe(o,Tr,n);break;case"insertFromComposition":ft(null),oe(o,Tr,n);break;case"insertLineBreak":ft(null),oe(o,xr,!1);break;case"insertParagraph":ft(null),Bi&&!Rr?(Bi=!1,oe(o,xr,!1)):oe(o,Ki,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":oe(o,Su,n);break;case"deleteByComposition":(function(m,h){return m!==h||z(m)||z(h)||!jo(m)||!jo(h)})(f,p)&&oe(o,Sc,n);break;case"deleteByDrag":case"deleteByCut":oe(o,Sc,n);break;case"deleteContent":oe(o,Ho,!1);break;case"deleteWordBackward":oe(o,Gi,!0);break;case"deleteWordForward":oe(o,Gi,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":oe(o,Yi,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":oe(o,Yi,!1);break;case"formatStrikeThrough":oe(o,Jt,"strikethrough");break;case"formatBold":oe(o,Jt,"bold");break;case"formatItalic":oe(o,Jt,"italic");break;case"formatUnderline":oe(o,Jt,"underline");break;case"historyUndo":oe(o,xu,void 0);break;case"historyRedo":oe(o,Tu,void 0)}else{if(c===`
|
|
22
|
-
`)n.preventDefault(),oe(o,xr,!1);else if(c===Co)n.preventDefault(),oe(o,Ki,void 0);else if(c==null&&n.dataTransfer){const m=n.dataTransfer.getData("text/plain");n.preventDefault(),a.insertRawText(m)}else c!=null&&ah(a,s,c,n.timeStamp,!0)?(n.preventDefault(),oe(o,
|
|
23
|
-
`){const o=ee();if(Z(o)){const i=o.focus;return o.anchor.set(i.key,i.offset,i.type),void oe(t,fa,null)}}}Fu(!0,t,e)}function uh(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const
|
|
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:Lle,priority:0}}}static importJSON(e){return fn().updateFromJSON(e)}}function Lle(t){return{node:fn()}}function fn(){return vn(new ls)}function mo(t){return t instanceof ls}function Ps(t){return eo(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Kl(t,e){return 16&e?"code":e&$m?"mark":32&e?"sub":64&e?"sup":null}function Gl(t,e){return 1&e?"strong":2&e?"em":"span"}function mh(t,e,n,o,i){const s=o.classList;let a=Nr(i,"base");a!==void 0&&s.add(...a),a=Nr(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 Et){const d=Et[u];if(a=Nr(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 hh(t,e,n){const o=e.firstChild,i=n.isComposing(),s=t+(i?Ya:"");if(o==null)e.textContent=s;else{const a=o.nodeValue;if(a!==s)if(i||Jo){const[l,c,u]=function(d,f){const p=d.length,m=f.length;let h=0,g=0;for(;h<p&&h<m&&d[h]===f[h];)h++;for(;g+h<p&&g+h<m&&d[p-g-1]===f[m-g-1];)g++;return[h,p-h-g,f.slice(h,m-g)]}(a,s);c!==0&&o.deleteData(l,c),o.insertData(l,u)}else o.nodeValue=s}}function sf(t,e,n,o,i,s){hh(i,t,e);const a=s.theme.text;a!==void 0&&mh(0,0,o,t,a)}function Fs(t,e){const n=document.createElement(e);return n.appendChild(t),n}class So extends dn{constructor(n="",o){super(o);H(this,"__text");H(this,"__format");H(this,"__style");H(this,"__mode");H(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 So(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 nle[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===uo()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=Et[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return _a(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const i=this.__format,s=Kl(0,i),a=Gl(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)),sf(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=Kl(0,a),u=Kl(0,l),d=Gl(0,a),f=Gl(0,l);if((c===null?d:c)!==(u===null?f:u))return!0;if(c===u&&d!==f){const y=o.firstChild;y==null&&G(48);const C=document.createElement(f);return sf(C,this,0,l,s,i),o.replaceChild(C,y),!1}let p=o;u!==null&&c!==null&&(p=o.firstChild,p==null&&G(49)),hh(s,p,this);const m=i.theme.text;m!==void 0&&a!==l&&mh(0,a,l,p,m);const h=n.__style,g=this.__style;return h!==g&&(o.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:Ple,priority:0}),b:()=>({conversion:Vle,priority:0}),code:()=>({conversion:Rn,priority:0}),em:()=>({conversion:Rn,priority:0}),i:()=>({conversion:Rn,priority:0}),mark:()=>({conversion:Rn,priority:0}),s:()=>({conversion:Rn,priority:0}),span:()=>({conversion:Ole,priority:0}),strong:()=>({conversion:Rn,priority:0}),sub:()=>({conversion:Rn,priority:0}),sup:()=>({conversion:Rn,priority:0}),u:()=>({conversion:Rn,priority:0})}}static importJSON(n){return Ye().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"?Et[n]:n,o}setDetail(n){const o=this.getWritable();return o.__detail=typeof n=="string"?Qae[n]:n,o}setStyle(n){const o=this.getWritable();return o.__style=n,o}toggleFormat(n){const o=_a(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=tle[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=ee(),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(!Z(a))return _h(c,i,c,s,"text","text");{const u=uo();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=ee();if(s&&Z(d)){const p=n+c;d.setTextNodeRange(a,p,a,p)}const f=l.slice(0,u)+i+l.slice(u+o);return a.__text=f,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=uo(),l=i.length;n.sort((S,E)=>S-E),n.push(l);const c=[],u=n.length;for(let S=0,E=0;S<l&&E<=u;E++){const D=n[E];D>S&&(c.push(i.slice(S,D)),S=D)}const d=c.length;if(d===1)return[o];const f=c[0],p=o.getParent();let m;const h=o.getFormat(),g=o.getStyle(),y=o.__detail;let C=!1,v=null,_=null;const b=ee();if(Z(b)){const[S,E]=b.isBackward()?[b.focus,b.anchor]:[b.anchor,b.focus];S.type==="text"&&S.key===s&&(v=S),E.type==="text"&&E.key===s&&(_=E)}o.isSegmented()?(m=Ye(f),m.__format=h,m.__style=g,m.__detail=y,m.__state=Z1(o,m),C=!0):m=o.setTextContent(f);const w=[m];for(let S=1;S<d;S++){const E=Ye(c[S]);E.__format=h,E.__style=g,E.__detail=y,E.__state=Z1(o,E);const D=E.__key;a===s&&ft(D),w.push(E)}const k=v?v.offset:null,
|
|
21
|
+
`,Xae=Jo?" ":Ya,Et={bold:1,capitalize:1024,code:16,highlight:$m,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Qae={directionless:1,unmergeable:2},U1={center:2,end:6,justify:4,left:1,right:3,start:5},ele={[Zae]:"center",[Jae]:"end",[Gae]:"justify",[Wae]:"left",[Kae]:"right",[Yae]:"start"},tle={normal:0,segmented:2,token:1},nle={[qae]:"normal",[jae]:"segmented",[Hae]:"token"},q1="$config";function Bm(t,e,n,o,i,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(z(a)&&Bm(a,l,n,o,i,s),n.has(l)||s.delete(l),i.push(l)),a=a.getNextSibling()}}let vc=!1,Eu=0;function ole(t){Eu=t.timeStamp}function ql(t,e,n){const o=t.nodeName==="BR",i=e.__lexicalLineBreak;return i&&(t===i||o&&t.previousSibling===i)||o&&il(t,n)!==void 0}function rle(t,e,n){const o=pn(on(n));let i=null,s=null;o!==null&&o.anchorNode===t&&(i=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&Ru(e,a,i,s,!1)}function ile(t,e,n){if(Z(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return eo(e)&&n.isAttached()}function sle(t,e,n,o){for(let i=t;i&&!cce(i);i=hs(i)){const s=il(i,e);if(s!==void 0){const a=rt(s,n);if(a)return Ne(a)||!tt(i)?void 0:[i,a]}else if(i===o)return[o,Lh(n)]}}function Mm(t,e,n){vc=!0;const o=performance.now()-Eu>100;try{Rt(t,()=>{const i=ee()||function(p){return p.getEditorState().read(()=>{const m=ee();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 p=0;p<e.length;p++){const m=e[p],h=m.type,g=m.target,y=sle(g,t,l,a);if(!y)continue;const[C,v]=y;if(h==="characterData")o&&X(v)&&eo(g)&&ile(i,g,v)&&rle(g,v,t);else if(h==="childList"){u=!0;const _=m.addedNodes;for(let k=0;k<_.length;k++){const T=_[k],A=Bh(T),S=T.parentNode;if(S!=null&&T!==c&&A===null&&!ql(T,S,t)){if(Jo){const E=(tt(T)?T.innerText:null)||T.nodeValue;E&&(d+=E)}S.removeChild(T)}}const b=m.removedNodes,w=b.length;if(w>0){let k=0;for(let T=0;T<w;T++){const A=b[T];(ql(A,g,t)||c===A)&&(g.appendChild(A),k++)}w!==k&&s.set(C,v)}}}if(s.size>0)for(const[p,m]of s)m.reconcileObservedMutation(p,t);const f=n.takeRecords();if(f.length>0){for(let p=0;p<f.length;p++){const m=f[p],h=m.addedNodes,g=m.target;for(let y=0;y<h.length;y++){const C=h[y],v=C.parentNode;v==null||C.nodeName!=="BR"||ql(C,g,t)||v.removeChild(C)}}n.takeRecords()}i!==null&&(u&&vt(i),Jo&&Ph(t)&&i.insertRawText(d))})}finally{vc=!1}}function Lm(t){const e=t._observer;e!==null&&Mm(t,e.takeRecords(),e)}function Om(t){(function(e){Eu===0&&on(e).addEventListener("textInput",ole,!0)})(t),t._observer=new MutationObserver((e,n)=>{Mm(t,e,n)})}let ale=class{constructor(e,n){H(this,"key");H(this,"parse");H(this,"unparse");H(this,"isEqual");H(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||dle).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function lle(t,e){return new ale(t,e)}function Vm(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function Hl(t,e,n){let o;if(lt(),typeof n=="function"){const s=t.getLatest(),a=Vm(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const i=t.getWritable();return Pm(i).updateFromKnown(e,o),i}function cle(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}=ll(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 ule=class Im{constructor(e,n,o=void 0,i=new Map,s=void 0){H(this,"node");H(this,"knownState");H(this,"unknownState");H(this,"sharedNodeState");H(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 f=d.size;if(u)for(const p in u){const m=c.get(p);m&&d.has(m)||f++}return f}(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 H1(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 Im(e,n,function(s,a,l){let c;if(l)for(const[u,d]of Object.entries(l)){const f=s.get(u);f?a.has(f)||a.set(f,f.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=H1(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 Pm(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new ule(e,Fm(e));return e.__state=n,n}function Fm(t){return t.__state?t.__state.sharedNodeState:Th(al(),t.getType()).sharedNodeState}function H1(t){if(t)for(const e in t)return t}function dle(t){return t}function j1(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 W1(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 Z1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function K1(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,f){if(d===f)return!0;if(d&&f&&d.size!==f.size)return!1;const p=new Set;return!(d&&j1(p,d,f)||f&&j1(p,f,d)||d&&W1(p,d,f)||f&&W1(p,f,d))}(c,u))}function G1(t,e){const n=t.mergeWithSibling(e),o=Ke()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function Y1(t){let e,n,o=t;if(o.__text!==""||!o.isSimpleText()||o.isUnmergeable()){for(;(e=o.getPreviousSibling())!==null&&X(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(K1(e,o)){o=G1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(K1(o,n)){o=G1(o,n);break}break}n.remove()}}else o.remove()}function aa(t){return J1(t.anchor),J1(t.focus),t}function J1(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),X(o)){t.set(o.__key,i?o.getTextContentSize():0,"text",!0);break}if(!z(o))break;t.set(o.__key,i?o.getChildrenSize():0,"element",!0)}}let Xo,bt,Wi,Ja,_c,yc,Qo,un,Cc,Zi,ot="",bn=null,kn="",qn="",br=!1,la=!1;function ca(t,e){const n=Qo.get(t);if(e!==null){const o=Ec(t);o.parentNode===e&&e.removeChild(o)}if(un.has(t)||bt._keyToDOMMap.delete(t),z(n)){const o=da(n,Qo);bc(o,0,o.length-1,null)}n!==void 0&&zu(Zi,Wi,Ja,n,"destroyed")}function bc(t,e,n,o){let i=e;for(;i<=n;++i){const s=t[i];s!==void 0&&ca(s,o)}}function Bo(t,e){t.setProperty("text-align",e)}const fle="40px";function Rm(t,e){const n=Xo.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")||fle;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function zm(t,e){const n=t.style;e===0?Bo(n,""):e===1?Bo(n,"left"):e===2?Bo(n,"center"):e===3?Bo(n,"right"):e===4?Bo(n,"justify"):e===5?Bo(n,"start"):e===6&&Bo(n,"end")}function kc(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=un.get(t);n===void 0&&G(60);const o=n.createDOM(Xo,bt);if(function(i,s,a){const l=a._keyToDOMMap;(function(c,u,d){const f=`__lexicalKey_${u._key}`;c[f]=d})(s,a,i),l.set(i,s)}(t,o,bt),X(n)?o.setAttribute("data-lexical-text","true"):Ne(n)&&o.setAttribute("data-lexical-decorator","true"),z(n)){const i=n.__indent,s=n.__size;if(kc(o,n),i!==0&&Rm(o,i),s!==0){const l=s-1;wc(da(n,un),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&zm(o,a),n.isInline()||Um(null,n,o),sl(n)&&(ot+=Co,qn+=Co)}else{const i=n.getTextContent();if(Ne(n)){const s=n.decorate(bt,Xo);s!==null&&qm(t,s),o.contentEditable="false"}ot+=i,qn+=i}return e!==null&&e.insertChild(o),zu(Zi,Wi,Ja,n,"created"),o}function wc(t,e,n,o,i){const s=ot;ot="";let a=n;for(;a<=o;++a){ua(t[a],i);const l=un.get(t[a]);l!==null&&X(l)&&(bn===null&&(bn=l.getFormat()),kn===""&&(kn=l.getStyle()))}sl(e)&&(ot+=Co),i.element.__lexicalTextContent=ot,ot=s+ot}function X1(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return mo(o)?"line-break":Ne(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Um(t,e,n){const o=X1(t,Qo),i=X1(e,un);o!==i&&e.getDOMSlot(n).setManagedLineBreak(i)}function ple(t,e,n){var o;bn=null,kn="",function(i,s,a){const l=ot,c=i.__size,u=s.__size;ot="";const d=a.element;if(c===1&&u===1){const f=i.__first,p=s.__first;if(f===p)xi(f,d);else{const h=Ec(f),g=ua(p,null);try{d.replaceChild(g,h)}catch(y){if(typeof y=="object"&&y!=null){const C=`${y.toString()} Parent: ${d.tagName}, new child: {tag: ${g.tagName} key: ${p}}, old child: {tag: ${h.tagName}, key: ${f}}.`;throw new Error(C)}throw y}ca(f,null)}const m=un.get(p);X(m)&&(bn===null&&(bn=m.getFormat()),kn===""&&(kn=m.getStyle()))}else{const f=da(i,Qo),p=da(s,un);if(f.length!==c&&G(227),p.length!==u&&G(228),c===0)u!==0&&wc(p,s,0,u-1,a);else if(u===0){if(c!==0){const m=a.after==null&&a.before==null&&a.element.__lexicalLineBreak==null;bc(f,0,c-1,m?null:d),m&&(d.textContent="")}}else(function(m,h,g,y,C,v){const _=y-1,b=C-1;let w,k,T=v.getFirstChild(),A=0,S=0;for(;A<=_&&S<=b;){const x=h[A],$=g[S];if(x===$)T=jl(xi($,v.element)),A++,S++;else{w===void 0&&(w=new Set(h)),k===void 0&&(k=new Set(g));const V=k.has(x),I=w.has($);if(V)if(I){const j=tr(bt,$);j===T?T=jl(xi($,v.element)):(v.withBefore(T).insertChild(j),xi($,v.element)),A++,S++}else ua($,v.withBefore(T)),S++;else T=jl(Ec(x)),ca(x,v.element),A++}const B=un.get($);B!==null&&X(B)&&(bn===null&&(bn=B.getFormat()),kn===""&&(kn=B.getStyle()))}const E=A>_,D=S>b;if(E&&!D){const x=g[b+1],$=x===void 0?null:bt.getElementByKey(x);wc(g,m,S,b,v.withBefore($))}else D&&!E&&bc(h,A,_,v.element)})(s,f,p,c,u,a)}sl(s)&&(ot+=Co),d.__lexicalTextContent=ot,ot=l+ot}(t,e,e.getDOMSlot(n)),o=e,bn==null||bn===o.__textFormat||la||o.setTextFormat(bn),function(i){kn===""||kn===i.__textStyle||la||i.setTextStyle(kn)}(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=Qo.get(t);let o=un.get(t);n!==void 0&&o!==void 0||G(61);const i=br||yc.has(t)||_c.has(t),s=tr(bt,t);if(n===o&&!i){if(z(n)){const a=s.__lexicalTextContent;a!==void 0&&(ot+=a,qn+=a)}else{const a=n.getTextContent();qn+=a,ot+=a}return s}if(n!==o&&i&&zu(Zi,Wi,Ja,o,"updated"),o.updateDOM(n,s,Xo)){const a=ua(t,null);return e===null&&G(62),e.replaceChild(a,s),ca(t,null),a}if(z(n)&&z(o)){const a=o.__indent;(br||a!==n.__indent)&&Rm(s,a);const l=o.__format;if((br||l!==n.__format)&&zm(s,l),i&&(ple(n,o,s),Qe(o)||o.isInline()||Um(n,o,s)),sl(o)&&(ot+=Co,qn+=Co),(br||o.__dir!==n.__dir)&&(kc(s,o),Qe(o)&&!br))for(const c of o.getChildren())z(c)&&kc(tr(bt,c.getKey()),c)}else{const a=o.getTextContent();if(Ne(o)){const l=o.decorate(bt,Xo);l!==null&&qm(t,l)}ot+=a,qn+=a}if(!la&&Qe(o)&&o.__cachedText!==qn){const a=o.getWritable();a.__cachedText=qn,o=a}return s}function qm(t,e){let n=bt._pendingDecorators;const o=bt._decorators;if(n===null){if(o[t]===e)return;n=Mh(bt)}n[t]=e}function jl(t){let e=t.nextSibling;return e!==null&&e===bt._blockCursorElement&&(e=e.nextSibling),e}function mle(t,e,n,o,i,s){ot="",qn="",br=o===2,bt=n,Xo=n._config,Wi=n._nodes,Ja=bt._listeners.mutation,_c=i,yc=s,Qo=t._nodeMap,un=e._nodeMap,la=e._readOnly,Cc=new Map(n._keyToDOMMap);const a=new Map;return Zi=a,xi("root",null),bt=void 0,Wi=void 0,_c=void 0,yc=void 0,Qo=void 0,un=void 0,Xo=void 0,Cc=void 0,Zi=void 0,a}function Ec(t){const e=Cc.get(t);return e===void 0&&G(75,t),e}function pe(t){return{type:t}}const Hm=pe("SELECTION_CHANGE_COMMAND"),hle=pe("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),jm=pe("CLICK_COMMAND"),Ho=pe("DELETE_CHARACTER_COMMAND"),xr=pe("INSERT_LINE_BREAK_COMMAND"),Ki=pe("INSERT_PARAGRAPH_COMMAND"),Ar=pe("CONTROLLED_TEXT_INSERTION_COMMAND"),Su=pe("PASTE_COMMAND"),Sc=pe("REMOVE_TEXT_COMMAND"),Gi=pe("DELETE_WORD_COMMAND"),Yi=pe("DELETE_LINE_COMMAND"),Jt=pe("FORMAT_TEXT_COMMAND"),xu=pe("UNDO_COMMAND"),Au=pe("REDO_COMMAND"),gle=pe("KEYDOWN_COMMAND"),Wm=pe("KEY_ARROW_RIGHT_COMMAND"),vle=pe("MOVE_TO_END"),Zm=pe("KEY_ARROW_LEFT_COMMAND"),_le=pe("MOVE_TO_START"),Km=pe("KEY_ARROW_UP_COMMAND"),Gm=pe("KEY_ARROW_DOWN_COMMAND"),fa=pe("KEY_ENTER_COMMAND"),Ym=pe("KEY_SPACE_COMMAND"),Jm=pe("KEY_BACKSPACE_COMMAND"),Xm=pe("KEY_ESCAPE_COMMAND"),Qm=pe("KEY_DELETE_COMMAND"),eh=pe("KEY_TAB_COMMAND"),yle=pe("INSERT_TAB_COMMAND"),Cle=pe("INDENT_CONTENT_COMMAND"),Q1=pe("OUTDENT_CONTENT_COMMAND"),th=pe("DROP_COMMAND"),ble=pe("FORMAT_ELEMENT_COMMAND"),nh=pe("DRAGSTART_COMMAND"),oh=pe("DRAGOVER_COMMAND"),kle=pe("DRAGEND_COMMAND"),Xa=pe("COPY_COMMAND"),Tu=pe("CUT_COMMAND"),xc=pe("SELECT_ALL_COMMAND"),wle=pe("CLEAR_EDITOR_COMMAND"),Ele=pe("CLEAR_HISTORY_COMMAND"),Os=pe("CAN_REDO_COMMAND"),Vs=pe("CAN_UNDO_COMMAND"),Sle=pe("FOCUS_COMMAND"),xle=pe("BLUR_COMMAND"),Ale=pe("KEY_MODIFIER_COMMAND"),Fn=Object.freeze({}),Ac=[["keydown",function(t,e){if($i=t.timeStamp,rh=t.key,!e.isComposing()&&!oe(e,gle,t)&&t.key!=null){if(Wl&&Nf(t))return Rt(e,()=>{Is(e,Zl)}),Wl=!1,void(Zl="");if(function(n){return Me(n,"ArrowRight",{shiftKey:"any"})}(t))oe(e,Wm,t);else if(function(n){return Me(n,"ArrowRight",zn)}(t))oe(e,vle,t);else if(function(n){return Me(n,"ArrowLeft",{shiftKey:"any"})}(t))oe(e,Zm,t);else if(function(n){return Me(n,"ArrowLeft",zn)}(t))oe(e,_le,t);else if(function(n){return Me(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))oe(e,Km,t);else if(function(n){return Me(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))oe(e,Gm,t);else if(function(n){return Me(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Bi=!0,oe(e,fa,t);else if(function(n){return n.key===" "}(t))oe(e,Ym,t);else if(function(n){return ln&&Me(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Bi=!0,oe(e,xr,!0);else if(function(n){return Me(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Bi=!1,oe(e,fa,t);else if(function(n){return Me(n,"Backspace",{shiftKey:"any"})||ln&&Me(n,"h",{ctrlKey:!0})}(t))Nf(t)?oe(e,Jm,t):(t.preventDefault(),oe(e,Ho,!0));else if(function(n){return n.key==="Escape"}(t))oe(e,Xm,t);else if(function(n){return Me(n,"Delete",{})||ln&&Me(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?oe(e,Qm,t):(t.preventDefault(),oe(e,Ho,!1));else if(function(n){return Me(n,"Backspace",Tf)}(t))t.preventDefault(),oe(e,Gi,!0);else if(function(n){return Me(n,"Delete",Tf)}(t))t.preventDefault(),oe(e,Gi,!1);else if(function(n){return ln&&Me(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),oe(e,Yi,!0);else if(function(n){return ln&&(Me(n,"Delete",{metaKey:!0})||Me(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),oe(e,Yi,!1);else if(function(n){return Me(n,"b",zn)}(t))t.preventDefault(),oe(e,Jt,"bold");else if(function(n){return Me(n,"u",zn)}(t))t.preventDefault(),oe(e,Jt,"underline");else if(function(n){return Me(n,"i",zn)}(t))t.preventDefault(),oe(e,Jt,"italic");else if(function(n){return Me(n,"Tab",{shiftKey:"any"})}(t))oe(e,eh,t);else if(function(n){return Me(n,"z",zn)}(t))t.preventDefault(),oe(e,xu,void 0);else if(function(n){return ln?Me(n,"z",{metaKey:!0,shiftKey:!0}):Me(n,"y",{ctrlKey:!0})||Me(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),oe(e,Au,void 0);else{const n=e._editorState._selection;n===null||Z(n)?Df(t)&&(t.preventDefault(),oe(e,xc,t)):function(o){return Me(o,"c",zn)}(t)?(t.preventDefault(),oe(e,Xa,t)):function(o){return Me(o,"x",zn)}(t)?(t.preventDefault(),oe(e,Tu,t)):Df(t)&&(t.preventDefault(),oe(e,xc,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&oe(e,Ale,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Xr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&Rt(e,()=>{Sf(n)||(Dc=!0)})}],["compositionstart",function(t,e){Rt(e,()=>{const n=ee();if(Z(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||X(i)&&i.getStyle()!==n.style)&&oe(e,Ar,Xae)}})}],["compositionend",function(t,e){Jo?Ci=!0:Rr||!Hi&&!ji?Rt(e,()=>{Is(e,t.data)}):(Wl=!0,Zl=t.data)}],["input",function(t,e){t.stopPropagation(),Rt(e,()=>{if(tt(t.target)&&Sf(t.target))return;const n=ee(),o=t.data,i=ch(t);if(o!=null&&Z(n)&&ah(n,i,o,t.timeStamp,!1)){Ci&&(Is(e,o),Ci=!1);const s=n.anchor.getNode(),a=pn(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()&&X(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===Ih(a.anchorNode)||oe(e,Ar,o);const d=o.length;Jo&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),Hi||Rr||ji||!e.isComposing()||($i=0,ft(null))}else Fu(!1,e,o!==null?o:void 0),Ci&&(Is(e,o||void 0),Ci=!1);(function(){lt();const s=Ke();Lm(s)})()},{event:t}),kr=null}],["click",function(t,e){Rt(e,()=>{const n=ee(),o=pn(on(e)),i=Jr();if(o){if(Z(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!Qe(a)&&Ge().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=>z(c)&&!c.isInline());z(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(tt(s)||eo(s))&&vt(Du(i,o,e,t))}}oe(e,jm,t)})}],["cut",Fn],["copy",Fn],["dragstart",Fn],["dragover",Fn],["dragend",Fn],["paste",Fn],["focus",Fn],["blur",Fn],["drop",Fn]];sa&&Ac.push(["beforeinput",(t,e)=>function(n,o){const i=n.inputType,s=ch(n);i==="deleteCompositionText"||Jo&&Ph(o)||i!=="insertCompositionText"&&Rt(o,()=>{const a=ee();if(i==="deleteContentBackward"){if(a===null){const m=Jr();if(!Z(m))return;vt(m.clone())}if(Z(a)){const m=a.anchor.key===a.focus.key;if(l=n.timeStamp,rh==="MediaLast"&&l<$i+30&&o.isComposing()&&m){if(ft(null),$i=0,setTimeout(()=>{Rt(o,()=>{ft(null)})},30),Z(a)){const h=a.anchor.getNode();h.markDirty(),X(h)||G(142),lh(a,h)}}else{ft(null),n.preventDefault();const h=a.anchor.getNode(),g=h.getTextContent(),y=h.canInsertTextAfter(),C=a.anchor.offset===0&&a.focus.offset===g.length;let v=z1&&m&&!C&&y;if(v&&a.isCollapsed()&&(v=!Ne(Oc(a.anchor,!0))),!v){oe(o,Ho,!0);const _=ee();z1&&Z(_)&&_.isCollapsed()&&(Po=_,setTimeout(()=>Po=null))}}return}}var l;if(!Z(a))return;const c=n.data;kr!==null&&Fu(!1,o,kr),a.dirty&&kr===null||!a.isCollapsed()||Qe(a.anchor.getNode())||s===null||a.applyDOMRange(s),kr=null;const u=a.anchor,d=a.focus,f=u.getNode(),p=d.getNode();if(i!=="insertText"&&i!=="insertTranspose")switch(n.preventDefault(),i){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":oe(o,Ar,n);break;case"insertFromComposition":ft(null),oe(o,Ar,n);break;case"insertLineBreak":ft(null),oe(o,xr,!1);break;case"insertParagraph":ft(null),Bi&&!Rr?(Bi=!1,oe(o,xr,!1)):oe(o,Ki,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":oe(o,Su,n);break;case"deleteByComposition":(function(m,h){return m!==h||z(m)||z(h)||!jo(m)||!jo(h)})(f,p)&&oe(o,Sc,n);break;case"deleteByDrag":case"deleteByCut":oe(o,Sc,n);break;case"deleteContent":oe(o,Ho,!1);break;case"deleteWordBackward":oe(o,Gi,!0);break;case"deleteWordForward":oe(o,Gi,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":oe(o,Yi,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":oe(o,Yi,!1);break;case"formatStrikeThrough":oe(o,Jt,"strikethrough");break;case"formatBold":oe(o,Jt,"bold");break;case"formatItalic":oe(o,Jt,"italic");break;case"formatUnderline":oe(o,Jt,"underline");break;case"historyUndo":oe(o,xu,void 0);break;case"historyRedo":oe(o,Au,void 0)}else{if(c===`
|
|
22
|
+
`)n.preventDefault(),oe(o,xr,!1);else if(c===Co)n.preventDefault(),oe(o,Ki,void 0);else if(c==null&&n.dataTransfer){const m=n.dataTransfer.getData("text/plain");n.preventDefault(),a.insertRawText(m)}else c!=null&&ah(a,s,c,n.timeStamp,!0)?(n.preventDefault(),oe(o,Ar,c)):kr=c;ih=n.timeStamp}})}(t,e)]);let $i=0,rh=null,ih=0,kr=null;const Tc=new WeakMap,pa=new WeakMap;let Nc=!1,Dc=!1,Bi=!1,Ci=!1,Wl=!1,Zl="",Po=null,sh=[0,"",0,"root",0];function ah(t,e,n,o,i){const s=t.anchor,a=t.focus,l=s.getNode(),c=Ke(),u=pn(on(c)),d=u!==null?u.anchorNode:null,f=s.key,p=c.getElementByKey(f),m=n.length;return f!==a.key||!X(l)||(!i&&(!sa||ih<o+50)||l.isDirty()&&m<2||Oh(n))&&s.offset!==a.offset&&!l.isComposing()||Un(l)||l.isDirty()&&m>1||(i||!sa)&&p!==null&&!l.isComposing()&&d!==zr(p)||u!==null&&e!==null&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||l.getFormat()!==t.format||l.getStyle()!==t.style||function(h,g){if(g.isSegmented())return!0;if(!h.isCollapsed())return!1;const y=h.anchor.offset,C=g.getParentOrThrow(),v=jo(g);return y===0?!g.canInsertTextBefore()||!C.canInsertTextBefore()&&!g.isComposing()||v||function(_){const b=_.getPreviousSibling();return(X(b)||z(b)&&b.isInline())&&!b.canInsertTextAfter()}(g):y===g.getTextContentSize()&&(!g.canInsertTextAfter()||!C.canInsertTextAfter()&&!g.isComposing()||v)}(t,l)}function ef(t,e){return eo(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function tf(t,e,n){const{anchorNode:o,anchorOffset:i,focusNode:s,focusOffset:a}=t;Nc&&(Nc=!1,ef(o,i)&&ef(s,a)&&!Po)||Rt(e,()=>{if(!n)return void vt(null);if(!ms(e,o,s))return;let l=ee();if(Po&&Z(l)&&l.isCollapsed()){const c=l.anchor,u=Po.anchor;(c.key===u.key&&c.offset===u.offset+1||c.offset===1&&u.getNode().is(c.getNode().getPreviousSibling()))&&(l=Po.clone(),vt(l))}if(Po=null,Z(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,f=d?d.timeStamp:performance.now(),[p,m,h,g,y]=sh,C=Ge(),v=e.isComposing()===!1&&C.getTextContent()==="";if(f<y+200&&c.offset===h&&c.key===g)Zs(l,p,m);else if(c.type==="text")X(u)||G(141),lh(l,u);else if(c.type==="element"&&!v){z(u)||G(259);const _=c.getNode();_.isEmpty()?function(b,w){const k=w.getTextFormat(),T=w.getTextStyle();Zs(b,k,T)}(l,_):Zs(l,0,"")}}else{const d=c.key,f=l.focus.key,p=l.getNodes(),m=p.length,h=l.isBackward(),g=h?a:i,y=h?i:a,C=h?f:d,v=h?d:f;let _=2047,b=!1;for(let w=0;w<m;w++){const k=p[w],T=k.getTextContentSize();if(X(k)&&T!==0&&!(w===0&&k.__key===C&&g===T||w===m-1&&k.__key===v&&y===0)&&(b=!0,_&=k.getFormat(),_===0))break}l.format=b?_:0}}oe(e,Hm,void 0)})}function Zs(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function lh(t,e){Zs(t,e.getFormat(),e.getStyle())}function ch(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&&X(o)&&Ru(o,i.nodeValue,null,null,!0))}if(e[e.length-1]===`
|
|
23
|
+
`){const o=ee();if(Z(o)){const i=o.focus;return o.anchor.set(i.key,i.offset,i.type),void oe(t,fa,null)}}}Fu(!0,t,e)}function uh(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const Tr=new Map;function dh(t){const e=sce(t.target);if(e===null)return;const n=Nh(e.anchorNode);if(n===null)return;Dc&&(Dc=!1,Rt(n,()=>{const c=Jr(),u=e.anchorNode;(tt(u)||eo(u))&&vt(Du(c,e,n,t))}));const o=Pu(n),i=o[o.length-1],s=i._key,a=Tr.get(s),l=a||i;l!==n&&tf(e,l,!1),tf(e,n,!0),n!==i?Tr.set(s,n):a&&Tr.delete(s)}function nf(t){t._lexicalHandled=!0}function of(t){return t._lexicalHandled===!0}const rf=()=>{};function Tle(t){const e=Tc.get(t);if(e===void 0)return void rf();const n=pa.get(e);if(n===void 0)return void rf();const o=n-1;o>=0||G(164),Tc.delete(t),pa.set(e,o),o===0&&e.removeEventListener("selectionchange",dh);const i=rl(t);Iu(i)?(function(a){if(a._parentEditor!==null){const l=Pu(a),c=l[l.length-1]._key;Tr.get(c)===a&&Tr.delete(c)}else Tr.delete(a._key)}(i),t.__lexicalEditor=null):i&&G(198);const s=uh(t);for(let a=0;a<s.length;a++)s[a]();t.__lexicalEventHandles=[]}function $c(t,e,n){lt();const o=t.__key,i=t.getParent();if(i===null)return;const s=function(l){const c=ee();if(!Z(c)||!z(l))return c;const{anchor:u,focus:d}=c,f=u.getNode(),p=d.getNode();return Vc(f,l)&&u.set(l.__key,0,"element"),Vc(p,l)&&d.set(l.__key,0,"element"),c}(t);let a=!1;if(Z(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 Ft(s)&&e&&t.isSelected()&&t.selectPrevious();if(Z(s)&&e&&!a){const l=t.getIndexWithinParent();Wo(t),ga(s,i,l,-1)}else Wo(t);n||St(i)||i.canBeEmpty()||!i.isEmpty()||$c(i,e),e&&s&&Qe(i)&&i.isEmpty()&&i.selectEnd()}const fh=Symbol.for("ephemeral");function ma(t){return t[fh]||!1}class dn{constructor(e){H(this,"__type");H(this,"__key");H(this,"__parent");H(this,"__prev");H(this,"__next");H(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}),Qle(this,e)}static getType(){const{ownNodeType:e}=ll(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||ee();if(n==null)return!1;const o=n.getNodes().some(i=>i.__key===this.__key);if(X(this))return o;if(Z(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const i=this.getParent();if(Ne(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(St(n))return z(e)||e===this&&Ne(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=z(this)?this:this.getParent(),o=z(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"?Hh(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=z(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,f=u;do{if(f===null&&G(68),d=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),f===null)break;d!==null||i.has(f.__key)||o.push(f)}while(d===null);s=d}return n||o.reverse(),o}isDirty(){const e=Ke()._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=xo(),n=Ke(),o=e._nodeMap,i=this.__key,s=this.getLatest(),a=n._cloneNotNeeded,l=ee();if(l!==null&&l.setCachedNodes(null),a.has(i))return ya(s),s;const c=zh(s);return a.add(i),ya(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 Fm(i).flatKeys)l in o&&(a!==void 0&&a!==s||(a={...s}),a[l]=o[l]);return(i.__state||a)&&Pm(n).updateFromJSON(a),i}(this,e)}static transform(){return null}remove(e){$c(this,!0,e)}replace(e,n){lt();let o=ee();o!==null&&(o=o.clone()),Ql(this,e);const i=this.getLatest(),s=this.__key,a=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),u=c.__size;Wo(l);const d=i.getPreviousSibling(),f=i.getNextSibling(),p=i.__prev,m=i.__next,h=i.__parent;if($c(i,!1,!0),d===null?c.__first=a:d.getWritable().__next=a,l.__prev=p,f===null?c.__last=a:f.getWritable().__prev=a,l.__next=m,l.__parent=h,c.__size=u,n&&(z(this)&&z(l)||G(139),this.getChildren().forEach(g=>{l.append(g)})),Z(o)){vt(o);const g=o.anchor,y=o.focus;g.key===s&&cf(g,l),y.key===s&&cf(y,l)}return uo()===s&&ft(a),l}insertAfter(e,n=!0){lt(),Ql(this,e);const o=this.getWritable(),i=e.getWritable(),s=i.getParent(),a=ee();let l=!1,c=!1;if(s!==null){const m=e.getIndexWithinParent();if(Wo(i),Z(a)){const h=s.__key,g=a.anchor,y=a.focus;l=g.type==="element"&&g.key===h&&g.offset===m+1,c=y.type==="element"&&y.key===h&&y.offset===m+1}}const u=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),f=i.__key,p=o.__next;if(u===null?d.__last=f:u.getWritable().__prev=f,d.__size++,o.__next=f,i.__next=p,i.__prev=o.__key,i.__parent=o.__parent,n&&Z(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(),Ql(this,e);const o=this.getWritable(),i=e.getWritable(),s=i.__key;Wo(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=ee();return n&&Z(d)&&ga(d,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return qe()}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(z(o))return o.select();if(!X(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(z(o))return o.select(0,0);if(!X(o)){const s=o.getIndexWithinParent();return i.select(s,s)}return o.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}H(dn,"importDOM");const ha="historic",Nle="history-push",Mi="history-merge",Dle="paste",ph="collaboration",$le="skip-scroll-into-view",Ble="skip-dom-selection",Mle="skip-selection-focus";class ls extends dn{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:Lle,priority:0}}}static importJSON(e){return fn().updateFromJSON(e)}}function Lle(t){return{node:fn()}}function fn(){return vn(new ls)}function mo(t){return t instanceof ls}function Ps(t){return eo(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Kl(t,e){return 16&e?"code":e&$m?"mark":32&e?"sub":64&e?"sup":null}function Gl(t,e){return 1&e?"strong":2&e?"em":"span"}function mh(t,e,n,o,i){const s=o.classList;let a=Nr(i,"base");a!==void 0&&s.add(...a),a=Nr(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 Et){const d=Et[u];if(a=Nr(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 hh(t,e,n){const o=e.firstChild,i=n.isComposing(),s=t+(i?Ya:"");if(o==null)e.textContent=s;else{const a=o.nodeValue;if(a!==s)if(i||Jo){const[l,c,u]=function(d,f){const p=d.length,m=f.length;let h=0,g=0;for(;h<p&&h<m&&d[h]===f[h];)h++;for(;g+h<p&&g+h<m&&d[p-g-1]===f[m-g-1];)g++;return[h,p-h-g,f.slice(h,m-g)]}(a,s);c!==0&&o.deleteData(l,c),o.insertData(l,u)}else o.nodeValue=s}}function sf(t,e,n,o,i,s){hh(i,t,e);const a=s.theme.text;a!==void 0&&mh(0,0,o,t,a)}function Fs(t,e){const n=document.createElement(e);return n.appendChild(t),n}class So extends dn{constructor(n="",o){super(o);H(this,"__text");H(this,"__format");H(this,"__style");H(this,"__mode");H(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 So(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 nle[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===uo()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=Et[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return _a(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const i=this.__format,s=Kl(0,i),a=Gl(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)),sf(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=Kl(0,a),u=Kl(0,l),d=Gl(0,a),f=Gl(0,l);if((c===null?d:c)!==(u===null?f:u))return!0;if(c===u&&d!==f){const y=o.firstChild;y==null&&G(48);const C=document.createElement(f);return sf(C,this,0,l,s,i),o.replaceChild(C,y),!1}let p=o;u!==null&&c!==null&&(p=o.firstChild,p==null&&G(49)),hh(s,p,this);const m=i.theme.text;m!==void 0&&a!==l&&mh(0,a,l,p,m);const h=n.__style,g=this.__style;return h!==g&&(o.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:Ple,priority:0}),b:()=>({conversion:Vle,priority:0}),code:()=>({conversion:Rn,priority:0}),em:()=>({conversion:Rn,priority:0}),i:()=>({conversion:Rn,priority:0}),mark:()=>({conversion:Rn,priority:0}),s:()=>({conversion:Rn,priority:0}),span:()=>({conversion:Ole,priority:0}),strong:()=>({conversion:Rn,priority:0}),sub:()=>({conversion:Rn,priority:0}),sup:()=>({conversion:Rn,priority:0}),u:()=>({conversion:Rn,priority:0})}}static importJSON(n){return Ye().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"?Et[n]:n,o}setDetail(n){const o=this.getWritable();return o.__detail=typeof n=="string"?Qae[n]:n,o}setStyle(n){const o=this.getWritable();return o.__style=n,o}toggleFormat(n){const o=_a(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=tle[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=ee(),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(!Z(a))return _h(c,i,c,s,"text","text");{const u=uo();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=ee();if(s&&Z(d)){const p=n+c;d.setTextNodeRange(a,p,a,p)}const f=l.slice(0,u)+i+l.slice(u+o);return a.__text=f,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=uo(),l=i.length;n.sort((S,E)=>S-E),n.push(l);const c=[],u=n.length;for(let S=0,E=0;S<l&&E<=u;E++){const D=n[E];D>S&&(c.push(i.slice(S,D)),S=D)}const d=c.length;if(d===1)return[o];const f=c[0],p=o.getParent();let m;const h=o.getFormat(),g=o.getStyle(),y=o.__detail;let C=!1,v=null,_=null;const b=ee();if(Z(b)){const[S,E]=b.isBackward()?[b.focus,b.anchor]:[b.anchor,b.focus];S.type==="text"&&S.key===s&&(v=S),E.type==="text"&&E.key===s&&(_=E)}o.isSegmented()?(m=Ye(f),m.__format=h,m.__style=g,m.__detail=y,m.__state=Z1(o,m),C=!0):m=o.setTextContent(f);const w=[m];for(let S=1;S<d;S++){const E=Ye(c[S]);E.__format=h,E.__style=g,E.__detail=y,E.__state=Z1(o,E);const D=E.__key;a===s&&ft(D),w.push(E)}const k=v?v.offset:null,T=_?_.offset:null;let A=0;for(const S of w){if(!v&&!_)break;const E=A+S.getTextContentSize();if(v!==null&&k!==null&&k<=E&&k>=A&&(v.set(S.getKey(),k-A,"text"),k<E&&(v=null)),_!==null&&T!==null&&T<=E&&T>=A){_.set(S.getKey(),T-A,"text");break}A=E}if(p!==null){(function(D){const x=D.getPreviousSibling(),$=D.getNextSibling();x!==null&&ya(x),$!==null&&ya($)})(this);const S=p.getWritable(),E=this.getIndexWithinParent();C?(S.splice(E,0,w),this.remove()):S.splice(E,1,w),Z(b)&&ga(b,p,E,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;uo()===s&&ft(i);const c=ee();if(Z(c)){const p=c.anchor,m=c.focus;p!==null&&p.key===s&&gf(p,o,i,n,l),m!==null&&m.key===s&&gf(m,o,i,n,l)}const u=n.__text,d=o?u+a:a+u;this.setTextContent(d);const f=this.getWritable();return n.remove(),f}isTextEntity(){return!1}}function Ole(t){return{forChild:Nu(t.style),node:null}}function Vle(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:Nu(e.style,n?void 0:"bold"),node:null}}const af=new WeakMap;function Ile(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 Ple(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=af.get(s))===void 0&&!Ile(s);)a.push(s),s=s.parentNode;const l=i===void 0?s:i;for(let c=0;c<a.length;c++)af.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(fn()):l===" "?i.push(Yr()):l!==""&&i.push(Ye(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=lf(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=lf(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:Ye(n)}}function lf(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===""&&!Fc(n)||s!==""&&!s.startsWith("inline"))return null}let i=n;for(;(i=e?n.firstChild:n.lastChild)!==null;)n=i;if(eo(n))return n;if(n.nodeName==="BR")return null}}const Fle={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Rn(t){const e=Fle[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:Nu(t.style,e),node:null}}function Ye(t=""){return vn(new So(t))}function X(t){return t instanceof So}function Nu(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=>(X(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 So{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=Nr(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Yr().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&
|
|
26
|
+
`?i.push(fn()):l===" "?i.push(Yr()):l!==""&&i.push(Ye(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=lf(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=lf(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:Ye(n)}}function lf(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===""&&!Fc(n)||s!==""&&!s.startsWith("inline"))return null}let i=n;for(;(i=e?n.firstChild:n.lastChild)!==null;)n=i;if(eo(n))return n;if(n.nodeName==="BR")return null}}const Fle={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Rn(t){const e=Fle[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:Nu(t.style,e),node:null}}function Ye(t=""){return vn(new So(t))}function X(t){return t instanceof So}function Nu(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=>(X(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 So{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=Nr(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Yr().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&Tm(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 Yr(){return vn(new cs)}function Qa(t){return t instanceof cs}class Rle{constructor(e,n,o){H(this,"key");H(this,"offset");H(this,"type");H(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:qh(Xt(Yn(this,"next")),Xt(Yn(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()||(uo()===a&&ft(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0)))}}function $n(t,e,n){return new Rle(t,e,n)}function Yl(t,e){let n=e.__key,o=t.offset,i="element";if(X(e)){i="text";const s=e.getTextContentSize();o>s&&(o=s)}else if(!z(e)){const s=e.getNextSibling();if(X(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 cf(t,e){if(z(e)){const n=e.getLastDescendant();z(n)||X(n)?Yl(t,n):Yl(t,e)}else Yl(t,e)}class el{constructor(e){H(this,"_nodes");H(this,"_cachedNodes");H(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Ft(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 el(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(X(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((ee()||Jr())===this&&e[0]){const n=mt(e[0],"next");yce(bo(n,n))}for(const n of e)n.remove()}}function Z(t){return t instanceof ar}class ar{constructor(e,n,o,i){H(this,"format");H(this,"style");H(this,"anchor");H(this,"focus");H(this,"_cachedNodes");H(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!!Z(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(An(u)){const{origin:d}=u;i.length===0?l.add(d):(c.add(d),i.push(d))}else{const{origin:d}=u;z(d)&&c.has(d)||i.push(d)}if(a&&i.push(a.caret.origin),qr(o.focus)&&z(o.focus.origin)&&o.focus.getNodeAtCaret()===null)for(let u=mn(o.focus.origin,"previous");An(u)&&l.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(i[i.length-1]);u=Wu(u))l.delete(u.origin),i.pop();for(;i.length>1;){const u=i[i.length-1];if(!z(u)||c.has(u)||u.isEmpty()||l.has(u))break;i.pop()}if(i.length===0&&o.isCollapsed()){const u=Xt(o.anchor),d=Xt(o.anchor.getFlipped()),f=m=>ho(m)?m.origin:m.getNodeAtCaret(),p=f(u)||f(d)||(o.anchor.getNodeAtCaret()?u.origin:d.origin);i.push(p)}return i}(Wh(Vf(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]=Bc(this);let u="",d=!0;for(let f=0;f<e.length;f++){const p=e[f];if(z(p)&&!p.isInline())d||(u+=`
|
|
27
27
|
`),d=!p.isEmpty();else if(d=!1,X(p)){let m=p.getTextContent();p===n?p===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):p===o&&(m=a?m.slice(0,c):m.slice(0,l)),u+=m}else!Ne(p)&&!mo(p)||p===o&&this.isCollapsed()||(u+=p.getTextContent())}return u}applyDOMRange(e){const n=Ke(),o=n.getEditorState()._selection,i=vh(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 ar($n(e.key,e.offset,e.type),$n(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=_a(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=Et[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(fn()):a===" "?o.push(Yr()):o.push(Ye(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(y,C,v,_){const b=y.getNode(),w=b.getChildAtIndex(y.offset),k=Ye();if(k.setFormat(v),k.setStyle(_),ps(w))w.splice(0,0,[k]);else{const A=Qe(b)?qe().append(k):k;w===null?b.append(A):w.insertBefore(A)}y.is(C)&&C.set(k.__key,0,"text"),y.set(k.__key,0,"text")}(a,l,i,s),l.type==="element"&&ir(l,Xt(Yn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];X(p)||G(26);const m=p.getTextContent().length,h=p.getParentOrThrow();let g=d[f-1];if(f===1&&l.type==="element"&&(u=m,l.set(a.key,u,"text")),this.isCollapsed()&&c===m&&(Un(p)||!p.canInsertTextAfter()||!h.canInsertTextAfter()&&p.getNextSibling()===null)){let y=p.getNextSibling();if(X(y)&&y.canInsertTextBefore()&&!Un(y)||(y=Ye(),y.setFormat(i),y.setStyle(s),h.canInsertTextAfter()?p.insertAfter(y):h.insertAfter(y)),y.select(0,0),p=y,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(Un(p)||!p.canInsertTextBefore()||!h.canInsertTextBefore()&&p.getPreviousSibling()===null)){let y=p.getPreviousSibling();if(X(y)&&!Un(y)||(y=Ye(),y.setFormat(i),h.canInsertTextBefore()?p.insertBefore(y):h.insertBefore(y)),y.select(),p=y,e!=="")return void this.insertText(e)}else if(p.isSegmented()&&c!==m){const y=Ye(p.getTextContent());y.setFormat(i),p.replace(y),p=y}else if(!this.isCollapsed()&&e!==""){const y=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||z(y)&&(!y.canInsertTextBefore()||!y.canInsertTextAfter()))return this.insertText(""),gh(this.anchor,this.focus,null),void this.insertText(e)}if(f===1){if(jo(p)){const _=Ye(e);return _.select(),void p.replace(_)}const y=p.getFormat(),C=p.getStyle();if(c!==u||y===i&&C===s){if(Qa(p)){const _=Ye(e);return _.setFormat(i),_.setStyle(s),_.select(),void p.replace(_)}}else{if(p.getTextContent()!==""){const _=Ye(e);if(_.setFormat(i),_.setStyle(s),_.select(),c===0)p.insertBefore(_,!1);else{const[b]=p.splitText(c);b.insertAfter(_,!1)}return void(_.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}p.setFormat(i),p.setStyle(s)}const v=u-c;p=p.spliceText(c,v,e,!0),p.getTextContent()===""?p.remove():this.anchor.type==="text"&&(p.isComposing()?this.anchor.offset-=e.length:(this.format=y,this.style=C))}else{const y=new Set([...p.getParentKeys(),...g.getParentKeys()]),C=z(p)?p:p.getParentOrThrow();let v=z(g)?g:g.getParentOrThrow(),_=g;if(!C.is(v)&&v.isInline())do _=v,v=v.getParentOrThrow();while(v.isInline());if(l.type==="text"&&(u!==0||g.getTextContent()==="")||l.type==="element"&&g.getIndexWithinParent()<u)if(X(g)&&!jo(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){const T=Ye(g.getTextContent());g.replace(T),g=T}Qe(l.getNode())||l.type!=="text"||(g=g.spliceText(0,u,"")),y.add(g.__key)}else{const T=g.getParentOrThrow();T.canBeEmpty()||T.getChildrenSize()!==1?g.remove():T.remove()}else y.add(g.__key);const b=v.getChildren(),w=new Set(d),k=C.is(v),A=C.isInline()&&p.getNextSibling()===null?C:p;for(let T=b.length-1;T>=0;T--){const S=b[T];if(S.is(p)||z(S)&&S.isParentOf(p))break;S.isAttached()&&(!w.has(S)||S.is(_)?k||A.insertAfter(S,!1):S.remove())}if(!k){let T=v,S=null;for(;T!==null;){const E=T.getChildren(),D=E.length;(D===0||E[D-1].is(S))&&(y.delete(T.__key),S=T),T=T.getParent()}}if(jo(p))if(c===m)p.select();else{const T=Ye(e);T.select(),p.replace(T)}else p=p.spliceText(c,m-c,e,!0),p.getTextContent()===""?p.remove():p.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let T=1;T<f;T++){const S=d[T],E=S.__key;y.has(E)||S.remove()}}}removeText(){const e=ee()===this;Ys(this,Cce(Vf(this))),e&&ee()!==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)X(b)&&i.push(b);const s=b=>{o.forEach(w=>{if(z(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,f=u?l:c;let p=0,m=i[0],h=d.type==="element"?0:d.offset;if(d.type==="text"&&h===m.getTextContentSize()&&(p=1,m=i[1],h=0),m==null)return;const g=m.getFormatFlags(e,n);s(g);const y=a-1;let C=i[y];const v=f.type==="text"?f.offset:C.getTextContentSize();if(m.is(C)){if(h===v)return;if(Un(m)||h===0&&v===m.getTextContentSize())m.setFormat(g);else{const b=m.splitText(h,v),w=h===0?b[0]:b[1];w.setFormat(g),d.type==="text"&&d.set(w.__key,0,"text"),f.type==="text"&&f.set(w.__key,v-h,"text")}return void(this.format=g)}h===0||Un(m)||([,m]=m.splitText(h),h=0),m.setFormat(g);const _=C.getFormatFlags(e,g);v>0&&(v===C.getTextContentSize()||Un(C)||([C]=C.splitText(v)),C.setFormat(_));for(let b=p+1;b<y;b++){const w=i[b],k=w.getFormatFlags(e,_);w.setFormat(k)}d.type==="text"&&d.set(m.__key,h,"text"),f.type==="text"&&f.set(C.__key,v,"text"),this.format=g|_}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const h=ee();return Z(h)||G(134),h.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=en(n,Yt),i=e[e.length-1];if(z(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=Jl(this);o.splice(h,0,e),i.selectEnd()}return}if(!e.some(h=>(z(h)||Ne(h))&&!h.isInline())){z(o)||G(211,n.constructor.name,n.getType());const h=Jl(this);return o.splice(h,0,e),void i.selectEnd()}const s=function(h){const g=qe();let y=null;for(let C=0;C<h.length;C++){const v=h[C],_=mo(v);if(_||Ne(v)&&v.isInline()||z(v)&&v.isInline()||X(v)||v.isParentRequired()){if(y===null&&(y=v.createParentElementNode(),g.append(y),_))continue;y!==null&&y.append(v)}else g.append(v),y=null}return g}(e),a=s.getLastDescendant(),l=s.getChildren(),c=!z(o)||!o.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var f;z(f=d)&&Yt(f)&&!f.isEmpty()&&z(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(z(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,g){const y=g.getParentOrThrow().getLastChild();let C=g;const v=[g];for(;C!==y;)C.getNextSibling()||G(140),C=C.getNextSibling(),v.push(C);let _=h;for(const b of v)_=_.insertAfter(b)}(o,d));const p=en(a,Yt);c&&z(p)&&(c.canMergeWhenEmpty()||Yt(u))&&(p.append(...c.getChildren()),c.remove()),z(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const m=z(o)?o.getLastChild():null;mo(m)&&p!==o&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=qe();return Ge().splice(this.anchor.offset,0,[a]),a.select(),a}const e=Jl(this),n=en(this.anchor.getNode(),Yt);z(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=fn();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]=Bc(this),l=this.isBackward(),[c,u]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,f]=l?[a,s]:[s,a];if(n===0)return[];if(n===1){if(X(o)&&!this.isCollapsed()){const p=o.splitText(d,f),m=d===0?p[0]:p[1];return m?(c.set(m.getKey(),0,"text"),u.set(m.getKey(),m.getTextContentSize(),"text"),[m]):[]}return[o]}if(X(o)&&(d===o.getTextContentSize()?e.shift():d!==0&&([,o]=o.splitText(d),e[0]=o,c.set(o.getKey(),0,"text"))),X(i)){const p=i.getTextContent().length;f===0?e.pop():f!==p&&([i]=i.splitText(f),e[e.length-1]=i,u.set(i.getKey(),i.getTextContentSize(),"text"))}return e}modify(e,n,o){if(vf(this,e,n,o))return;const i=e==="move",s=Ke(),a=pn(on(s));if(!a)return;const l=s._blockCursorElement,c=s._rootElement,u=this.focus.getNode();if(c===null||l===null||!z(u)||u.isInline()||u.canBeEmpty()||Ic(l,s,c),this.dirty){let d=tr(s,this.anchor.key),f=tr(s,this.focus.key);this.anchor.type==="text"&&(d=zr(d)),this.focus.type==="text"&&(f=zr(f)),d&&f&&Ch(a,d,this.anchor.offset,f,this.focus.offset)}if(function(d,f,p,m){d.modify(f,p,m)}(a,e,n?"backward":"forward",o),a.rangeCount>0){const d=a.getRangeAt(0),f=this.anchor.getNode(),p=Qe(f)?f:rce(f);if(this.applyDOMRange(d),this.dirty=!0,!i){const m=this.getNodes(),h=[];let g=!1;for(let y=0;y<m.length;y++){const C=m[y];Vc(C,p)?h.push(C):g=!0}if(g&&h.length>0)if(n){const y=h[0];z(y)?y.selectStart():y.getParentOrThrow().selectStart()}else{const y=h[h.length-1];z(y)?y.selectEnd():y.getParentOrThrow().selectEnd()}a.anchorNode===d.startContainer&&a.anchorOffset===d.startOffset||function(y){const C=y.focus,v=y.anchor,_=v.key,b=v.offset,w=v.type;v.set(C.key,C.offset,C.type,!0),C.set(_,b,w,!0)}(this)}}o==="lineboundary"&&vf(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&z(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(z(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=Ku(Yn(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(Tn(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(z(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=Xt(c);Ys(this,bo(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(qr(c)){if(z(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(Ne(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&z(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=yh();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,bo(!c.origin.isEmpty()&&u.isEmpty()?Gu(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&&df(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 ff(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 ff(i,e,c)}(function(c,u){const d=c.anchor,f=c.focus,p=d.getNode(),m=f.getNode();if(p===m&&d.type==="text"&&f.type==="text"){const h=d.offset,g=f.offset,y=h<g,C=y?h:g,v=y?g:h,_=v-1;C!==_&&function(b){return!(Oh(b)||zle(b))}(p.getTextContent().slice(C,v))&&(u?f.set(f.key,_,f.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&&df(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 Ft(t){return t instanceof el}function uf(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Bc(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]:[uf(n),uf(o)]}function df(t,e){for(let n=e;n;n=n.getParent()){if(z(n)){if(n.collapseAtStart(t))return!0;if(St(n))break}if(n.getPreviousSibling())break}return!1}const zle=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function ff(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 pf(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],f=!1;if(d===u)d=l[s+1],f=!0;else if(u!==null){const p=u.parentNode;t===p&&e>Array.prototype.indexOf.call(p.children,u)&&s--}if(i=wr(d),X(i))s=go(i,a?"next":"previous");else{let p=wr(t);if(p===null)return null;if(z(p)){const m=o.getElementByKey(p.getKey());m===null&&G(214),[p,s]=p.getDOMSlot(m).resolveChildIndex(p,m,t,e),z(p)||G(215),a&&s>=p.getChildrenSize()&&(s=Math.max(0,p.getChildrenSize()-1));let g=p.getChildAtIndex(s);if(z(g)&&function(y,C,v){const _=y.getParent();return v===null||_===null||!_.canBeEmpty()||_!==v.getNode()}(g,0,n)){const y=a?g.getLastDescendant():g.getFirstDescendant();y===null?p=g:(g=y,p=z(g)?g:g.getParentOrThrow()),s=0}X(g)?(i=g,p=null,s=go(g,a?"next":"previous")):g!==p&&a&&!f&&(z(p)||G(216),s=Math.min(p.getChildrenSize(),s+1))}else{const m=p.getIndexWithinParent();s=e===0&&Ne(p)&&wr(t)===p?m:m+1,p=p.getParentOrThrow()}if(z(p))return $n(p.__key,s,"element")}}else i=wr(t);return X(i)?$n(i.__key,go(i,s,"clamp"),"text"):null}function mf(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&&z(a)&&a.isInline()){const l=a.getPreviousSibling();X(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else z(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):X(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(o===i.getTextContent().length){const s=i.getNextSibling(),a=i.getParent();if(e&&z(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&z(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();X(l)&&t.set(l.__key,0,"text")}}}function gh(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),i=t.is(e);mf(t,o,i),mf(e,!o,i),i&&e.set(t.key,t.offset,t.type);const s=Ke();if(s.isComposing()&&s._compositionKey!==t.key&&Z(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 vh(t,e,n,o,i,s){if(t===null||n===null||!ms(i,t,n))return null;const a=pf(t,e,Z(s)?s.anchor:null,i);if(a===null)return null;const l=pf(n,o,Z(s)?s.focus:null,i);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=wr(t),u=wr(n);if(Ne(c)&&Ne(u))return null}return gh(a,l,s),[a,l]}function Mc(t){return z(t)&&!t.isInline()}function _h(t,e,n,o,i,s){const a=xo(),l=new ar($n(t,e,i),$n(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function tl(){const t=$n("root",0,"element"),e=$n("root",0,"element");return new ar(t,e,0,"")}function yh(){return new el(new Set)}function Du(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=!vc&&(l||a==="beforeinput"||a==="compositionstart"||a==="compositionend"||a==="click"&&s&&s.detail===3||a==="drop"||a===void 0);let u,d,f,p;if(Z(t)&&!c)return t.clone();if(e===null)return null;if(u=e.anchorNode,d=e.focusNode,f=e.anchorOffset,p=e.focusOffset,(l||a===void 0)&&Z(t)&&!ms(n,u,d))return t.clone();const m=vh(u,f,d,p,n,t);if(m===null)return null;const[h,g]=m;return new ar(h,g,Z(t)?t.format:0,Z(t)?t.style:"")}function ee(){return xo()._selection}function Jr(){return Ke()._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"),hf(t)}}else{const u=t.isBackward(),d=u?s:i,f=d.getNode(),p=u?i:s,m=p.getNode();if(e.is(f)){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=p.offset;(n<=h&&o>0||n<h&&o<0)&&p.set(c,Math.max(0,h+o),"element")}}hf(t)}function hf(t){const e=t.anchor,n=e.offset,o=t.focus,i=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!z(s))return;const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text"),o.set(u.__key,d,"text")}return}if(z(s)){const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text")}}if(z(a)){const l=a.getChildrenSize(),c=i>=l,u=c?a.getChildAtIndex(l-1):a.getChildAtIndex(i);if(X(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,X(o)?(a=o.getTextContentSize(),l="text"):z(o)&&(a=o.getChildrenSize(),l="element")):i!==null&&(s=i.__key,X(i)?l="text":z(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 gf(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 Ch(t,e,n,o,i){try{t.setBaseAndExtent(e,n,o,i)}catch{}}function Ule(t,e,n,o,i,s,a){const l=o.anchorNode,c=o.focusNode,u=o.anchorOffset,d=o.focusOffset,f=document.activeElement;if(i.has(ph)&&f!==s||f!==null&&Vu(f))return;if(!Z(e))return void(t!==null&&ms(n,l,c)&&o.removeAllRanges());const p=e.anchor,m=e.focus,h=p.key,g=m.key,y=tr(n,h),C=tr(n,g),v=p.offset,_=m.offset,b=e.format,w=e.style,k=e.isCollapsed();let A=y,T=C,S=!1;if(p.type==="text"){A=zr(y);const V=p.getNode();S=V.getFormat()!==b||V.getStyle()!==w}else Z(t)&&t.anchor.type==="text"&&(S=!0);var E,D,x,$,B;if(m.type==="text"&&(T=zr(C)),A!==null&&T!==null&&(k&&(t===null||S||Z(t)&&(t.format!==b||t.style!==w))&&(E=b,D=w,x=v,$=h,B=performance.now(),sh=[E,D,x,$,B]),u!==v||d!==_||l!==A||c!==T||o.type==="Range"&&k||(f!==null&&s.contains(f)||i.has(Mle)||s.focus({preventScroll:!0}),p.type==="element"))){if(Ch(o,A,v,T,_),!i.has($le)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const V=Z(e)&&e.anchor.type==="element"?A.childNodes[v]||null:o.rangeCount>0?o.getRangeAt(0):null;if(V!==null){let I;if(V instanceof Text){const j=document.createRange();j.selectNode(V),I=j.getBoundingClientRect()}else I=V.getBoundingClientRect();(function(j,F,q){const Q=Fh(q),ae=Uu(Q);if(Q===null||ae===null)return;let{top:ne,bottom:ye}=F,re=0,ie=0,U=q;for(;U!==null;){const P=U===Q.body;if(P)re=0,ie=on(j).innerHeight;else{const we=U.getBoundingClientRect();re=we.top,ie=we.bottom}let se=0;if(ne<re?se=-(re-ne):ye>ie&&(se=ye-ie),se!==0)if(P)ae.scrollBy(0,se);else{const we=U.scrollTop;U.scrollTop+=se;const Re=U.scrollTop-we;ne-=Re,ye-=Re}if(P)break;U=hs(U)}})(n,I,s)}}Nc=!0}}function qle(t){let e=ee()||Jr();e===null&&(e=Ge().selectEnd()),e.insertNodes(t)}function Jl(t){let e=t;t.isCollapsed()||e.removeText();const n=ee();Z(n)&&(e=n),Z(e)||G(161);const o=e.anchor;let i=o.getNode(),s=o.offset;for(;!Yt(i);){const a=i;if([i,s]=Hle(i,s),a.is(i))break}return s}function Hle(t,e){const n=t.getParent();if(!n){const i=qe();return Ge().append(i),i.select(),[Ge(),0]}if(X(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(!z(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const i=new ar($n(t.__key,e,"element"),$n(t.__key,e,"element"),0,""),s=t.insertNewAfter(i);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function vf(t,e,n,o,i="decorators-and-blocks"){if(e==="move"&&o==="character"&&!t.isCollapsed()){const[d,f]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return f.set(d.key,d.offset,d.type),!0}const s=Yn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=i==="decorators-and-blocks";if(!jh(c)){for(const d of c){u=!1;const{origin:f}=d;if(!Ne(f)||f.isIsolated()||(c=d,!a||!f.isInline()))break}if(u)for(const d of Ku(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(Tn(d))d.origin.isInline()||(c=d);else{if(z(d.origin))continue;Ne(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&Ne(c.origin)&&c.origin.isKeyboardSelectable()){const d=yh();return d.add(c.origin.getKey()),vt(d),!0}return c=Xt(c),l&&ir(t.anchor,c),ir(t.focus,c),u||!a}let ct=null,ut=null,Dt=!1,Xl=!1,Ks=0;const _f={characterData:!0,childList:!0,subtree:!0};function us(){return Dt||ct!==null&&ct._readOnly}function lt(){Dt&&G(13)}function bh(){Ks>99&&G(14)}function xo(){return ct===null&&G(195,kh()),ct}function Ke(){return ut===null&&G(196,kh()),ut}function kh(){let t=0;const e=new Set,n=er.version;if(typeof window<"u")for(const i of document.querySelectorAll("[contenteditable]")){const s=rl(i);if(Iu(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 jle(){return ut}function yf(t,e,n){const o=e.__type,i=Ah(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 Cf(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function wh(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 Wle(t){return $u(t,Ke()._nodes)}function $u(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(z(s)&&Array.isArray(a))for(let l=0;l<a.length;l++){const c=$u(a[l],e);s.append(c)}return s}function bf(t,e,n){const o=ct,i=Dt,s=ut;ct=e,Dt=!0,ut=t;try{return n()}finally{ct=o,Dt=i,ut=s}}function Hn(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=Dt,f=ut,p=t._updating,m=t._observer;let h=null;if(t._pendingEditorState=null,t._editorState=n,!i&&c&&m!==null){ut=t,ct=n,Dt=!1,t._updating=!0;try{const k=t._dirtyType,A=t._dirtyElements,T=t._dirtyLeaves;m.disconnect(),h=mle(s,n,t,k,A,T)}catch(k){if(k instanceof Error&&t._onError(k),Xl)throw k;return Th(t,null,o,n),Om(t),t._dirtyType=2,Xl=!0,Hn(t,s),void(Xl=!1)}finally{m.observe(o,_f),t._updating=p,ct=u,Dt=d,ut=f}}n._readOnly||(n._readOnly=!0);const g=t._dirtyLeaves,y=t._dirtyElements,C=t._normalizedNodes,v=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 T=k._decorators;let S=k._pendingDecorators||T;const E=A._nodeMap;let D;for(D in S)E.has(D)||(S===T&&(S=Mh(k)),delete S[D])}(t,n);const b=i?null:pn(on(t));if(t._editable&&b!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!v.has(Ble)){ut=t,ct=n;try{if(m!==null&&m.disconnect(),c||l===null||l.dirty){const k=t._blockCursorElement;k!==null&&Ic(k,t,o),Ule(a,l,t,b,v,o)}(function(k,A,T){let S=k._blockCursorElement;if(Z(T)&&T.isCollapsed()&&T.anchor.type==="element"&&A.contains(document.activeElement)){const E=T.anchor,D=E.getNode(),x=E.offset;let $=!1,B=null;if(x===D.getChildrenSize())ec(D.getChildAtIndex(x-1))&&($=!0);else{const V=D.getChildAtIndex(x);if(V!==null&&ec(V)){const I=V.getPreviousSibling();(I===null||ec(I))&&($=!0,B=k.getElementByKey(V.__key))}}if($){const V=k.getElementByKey(D.__key);return S===null&&(k._blockCursorElement=S=function(I){const j=I.theme,F=document.createElement("div");F.contentEditable="false",F.setAttribute("data-lexical-cursor","true");let q=j.blockCursor;if(q!==void 0){if(typeof q=="string"){const Q=Dm(q);q=j.blockCursor=Q}q!==void 0&&F.classList.add(...q)}return F}(k._config)),A.style.caretColor="transparent",void(B===null?V.appendChild(S):V.insertBefore(S,B))}}S!==null&&Ic(S,k,A)})(t,o,l)}finally{m!==null&&m.observe(o,_f),ut=f,ct=u}}h!==null&&function(k,A,T,S,E){const D=Array.from(k._listeners.mutation),x=D.length;for(let $=0;$<x;$++){const[B,V]=D[$];for(const I of V){const j=A.get(I);j!==void 0&&B(j,{dirtyLeaves:S,prevEditorState:E,updateTags:T})}}}(t,h,v,g,s),Z(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Hm,void 0);const w=t._pendingDecorators;w!==null&&(t._decorators=w,t._pendingDecorators=null,Li("decorator",t,!0,w)),function(k,A,T){const S=xf(A),E=xf(T);S!==E&&Li("textcontent",k,!0,E)}(t,e||s,n),Li("update",t,!0,{dirtyElements:y,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:C,prevEditorState:e||s,tags:v}),function(k,A){if(k._deferred=[],A.length!==0){const T=k._updating;k._updating=!0;try{for(let S=0;S<A.length;S++)A[S]()}finally{k._updating=T}}}(t,_),function(k){const A=k._updates;if(A.length!==0){const T=A.shift();if(T){const[S,E]=T;nl(k,S,E)}}}(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 kf(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),wh(t,a.tag)),l==null?nl(t,s,a):s()}}return o}function nl(t,e,n){const o=t._updateTags;let i,s=!1,a=!1;n!==void 0&&(i=n.onUpdate,wh(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=Sh(c||l),u=!0),c._flushSync=a;const d=ct,f=Dt,p=ut,m=t._updating;ct=c,Dt=!1,t._updating=!0,ut=t;const h=t._headless||t.getRootElement()===null;Lu(null);try{u&&(h?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(v,_){const b=v.getEditorState()._selection,w=pn(on(v));return Z(b)||b==null?Du(b,w,v,_):b.clone()}(t,n&&n.event||null));const y=t._compositionKey;e(),s=kf(t,s),function(v,_){const b=_.getEditorState()._selection,w=v._selection;if(Z(w)){const k=w.anchor,A=w.focus;let T;if(k.type==="text"&&(T=k.getNode(),T.selectionTransform(b,w)),A.type==="text"){const S=A.getNode();T!==S&&S.selectionTransform(b,w)}}}(c,t),t._dirtyType!==0&&(s?function(v,_){const b=_._dirtyLeaves,w=v._nodeMap;for(const k of b){const A=w.get(k);X(A)&&A.isAttached()&&A.isSimpleText()&&!A.isUnmergeable()&&Y1(A)}}(c,t):function(v,_){const b=_._dirtyLeaves,w=_._dirtyElements,k=v._nodeMap,A=uo(),T=new Map;let S=b,E=S.size,D=w,x=D.size;for(;E>0||x>0;){if(E>0){_._dirtyLeaves=new Set;for(const $ of S){const B=k.get($);X(B)&&B.isAttached()&&B.isSimpleText()&&!B.isUnmergeable()&&Y1(B),B!==void 0&&Cf(B,A)&&yf(_,B,T),b.add($)}if(S=_._dirtyLeaves,E=S.size,E>0){Ks++;continue}}_._dirtyLeaves=new Set,_._dirtyElements=new Map,D.delete("root")&&D.set("root",!0);for(const $ of D){const B=$[0],V=$[1];if(w.set(B,V),!V)continue;const I=k.get(B);I!==void 0&&Cf(I,A)&&yf(_,I,T)}S=_._dirtyLeaves,E=S.size,D=_._dirtyElements,x=D.size,Ks++}_._dirtyLeaves=b,_._dirtyElements=w}(c,t),kf(t),function(v,_,b,w){const k=v._nodeMap,A=_._nodeMap,T=[];for(const[S]of w){const E=A.get(S);E!==void 0&&(E.isAttached()||(z(E)&&Bm(E,S,k,A,T,w),k.has(S)||w.delete(S),T.push(S)))}for(const S of T)A.delete(S);for(const S of b){const E=A.get(S);E===void 0||E.isAttached()||(k.has(S)||b.delete(S),A.delete(S))}}(l,c,t._dirtyLeaves,t._dirtyElements)),y!==t._compositionKey&&(c._flushSync=!0);const C=c._selection;if(Z(C)){const v=c._nodeMap,_=C.anchor.key,b=C.focus.key;v.get(_)!==void 0&&v.get(b)!==void 0||G(19)}else Ft(C)&&C._nodes.size===0&&(c._selection=null)}catch(y){return y instanceof Error&&t._onError(y),t._pendingEditorState=l,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void Hn(t)}finally{ct=d,Dt=f,ut=p,t._updating=m,Ks=0}t._dirtyType!==0||t._deferred.length>0||function(y,C){const v=C.getEditorState()._selection,_=y._selection;if(_!==null){if(_.dirty||!_.is(v))return!0}else if(v!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,Hn(t)):u&&Xle(()=>{Hn(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function Rt(t,e,n){ut===t&&n===void 0?e():nl(t,e,n)}class Oi{constructor(e,n,o){H(this,"element");H(this,"before");H(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"&&(ji||Rr||Hi);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=wf(n,o);s.push(i);const a=wf(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 wf(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 Ht extends dn{constructor(n){super(n);H(this,"__first");H(this,"__last");H(this,"__size");H(this,"__format");H(this,"__style");H(this,"__indent");H(this,"__dir");H(this,"__textFormat");H(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 ele[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=Ke()._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(X(o)&&n.push(o),z(o)){const i=o.getAllTextNodes();n.push(...i)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;z(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;z(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 z(a)&&a.getLastDescendant()||a||null}const s=o[n];return z(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(),z(a)&&s!==i-1&&!a.isInline()&&(n+=Co)}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(),z(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=U1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=Et[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return _a(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){lt();const i=ee();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(X(u)||z(u))return u.select(0,0)}else if(!(n!==void 0&&n!==l||o!==void 0&&o!==l)){const u=this.getLastChild();if(X(u)||z(u))return u.select()}}s===void 0&&(s=l),a===void 0&&(a=l);const c=this.__key;return Z(i)?(i.anchor.set(c,s,"element"),i.focus.set(c,a,"element"),i.dirty=!0,i):_h(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!==""?U1[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 f=null,p=s-o+i.length;if(n!==0)if(n===s)f=this.getLastChild();else{const h=this.getChildAtIndex(n);h!==null&&(f=h.getPreviousSibling())}if(o>0){let h=f===null?this.getFirstChild():f.getNextSibling();for(let g=0;g<o;g++){h===null&&G(100);const y=h.getNextSibling(),C=h.__key;Wo(h.getWritable()),u.push(C),h=y}}let m=f;for(const h of i){m!==null&&h.is(m)&&(f=m=m.getPreviousSibling());const g=h.getWritable();g.__parent===l&&p--,Wo(g);const y=h.__key;if(m===null)a.__first=y,g.__prev=null;else{const C=m.getWritable();C.__next=y,g.__prev=C.__key}h.__key===l&&G(76),g.__parent=l,c.push(y),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 g=m.getWritable();h.__prev=m.__key,g.__next=d.__key}else h.__prev=null}if(a.__size=p,u.length){const h=ee();if(Z(h)){const g=new Set(u),y=new Set(c),{anchor:C,focus:v}=h;Ef(C,g,y)&&va(C,C.getNode(),this,f,d),Ef(v,g,y)&&va(v,v.getNode(),this,f,d),p!==0||this.canBeEmpty()||St(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 z(t){return t instanceof Ht}function Ef(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 Eh extends dn{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ne(t){return t instanceof Eh}class ds extends Ht{constructor(){super("root");H(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new ds}getTopLevelElementOrThrow(){G(51)}getTextContent(){const n=this.__cachedText;return!us()&&Ke()._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)z(s)||Ne(s)||G(282);return super.splice(n,o,i)}static importJSON(n){return Ge().updateFromJSON(n)}collapseAtStart(){return!0}}function Qe(t){return t instanceof ds}function Sh(t){return new ol(new Map(t._nodeMap))}function Bu(){return new ol(new Map([["root",new ds]]))}function xh(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&G(130,n.name),z(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=xh(i[s]);o.push(a)}}return e}class ol{constructor(e,n){H(this,"_nodeMap");H(this,"_selection");H(this,"_flushSync");H(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 bf(n&&n.editor||null,this,e)}clone(e){const n=new ol(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return bf(null,this,()=>({root:xh(Ge())}))}}class Mu extends Ht{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class fs extends Ht{static getType(){return"paragraph"}static clone(e){return new fs(e.__key)}createDOM(e){const n=document.createElement("p"),o=Nr(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:Zle,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 qe().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=qe();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||X(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 Zle(t){const e=qe();return t.style&&(e.setFormat(t.style.textAlign),qu(t,e)),{node:e}}function qe(){return vn(new fs)}function ps(t){return t instanceof fs}const Te=0,bi=1,Kle=4;function Th(t,e,n,o){const i=t._keyToDOMMap;i.clear(),t._editorState=Bu(),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 Gle(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:i}=ll(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 dn&&a!==dn?a:void 0}}return e}function Yle(t){const e=t||{},n=jle(),o=e.theme||{},i=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=Bu(),l=e.namespace||(i!==null?i._config.namespace:Vh()),c=e.editorState,u=[ds,So,ls,cs,fs,Mu,...e.nodes||[]],{onError:d,html:f}=e,p=e.editable===void 0||e.editable;let m;if(t===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let g=0;g<u.length;g++){let y=u[g],C=null,v=null;if(typeof y!="function"){const w=y;y=w.replace,C=w.with,v=w.withKlass||null}ll(y);const _=y.getType(),b=Gle(y);m.set(_,{exportDOM:f&&f.export?f.export.get(y):void 0,klass:y,replace:C,replaceWithKlass:v,sharedNodeState:cle(u[g]),transforms:b})}}const h=new er(a,i,m,{disableEvents:s,namespace:l,theme:o},d||console.error,function(g,y){const C=new Map,v=new Set,_=b=>{Object.keys(b).forEach(w=>{let k=C.get(w);k===void 0&&(k=[],C.set(w,k)),k.push(b[w])})};return g.forEach(b=>{const w=b.klass.importDOM;if(w==null||v.has(w))return;v.add(w);const k=w.call(b.klass);k!==null&&_(k)}),y&&_(y),C}(m,f?f.import:void 0),p,t);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),h}class er{constructor(e,n,o,i,s,a,l,c){H(this,"_headless");H(this,"_parentEditor");H(this,"_rootElement");H(this,"_editorState");H(this,"_pendingEditorState");H(this,"_compositionKey");H(this,"_deferred");H(this,"_keyToDOMMap");H(this,"_updates");H(this,"_updating");H(this,"_listeners");H(this,"_commands");H(this,"_nodes");H(this,"_decorators");H(this,"_pendingDecorators");H(this,"_config");H(this,"_dirtyType");H(this,"_cloneNotNeeded");H(this,"_dirtyLeaves");H(this,"_dirtyElements");H(this,"_normalizedNodes");H(this,"_updateTags");H(this,"_observer");H(this,"_key");H(this,"_onError");H(this,"_htmlConversions");H(this,"_window");H(this,"_editable");H(this,"_blockCursorElement");H(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=Vh(),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=Mf(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=Mf(a.getEditorState()),u=[];for(const d of l){const f=c.get(d);f&&u.push(f)}u.length!==0&&a.update(()=>{for(const d of u)for(const f of d.keys()){const p=rt(f);p&&p.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 oe(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=Nr(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,Th(this,n,e,i),n!==null&&(this._config.disableEvents||Ale(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Uu(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,Om(this),this._updateTags.add(Mi),Hn(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;Ac.set(l,u);const d=pa.get(u)??0;d<1&&u.addEventListener("selectionchange",dh),pa.set(u,d+1),l.__lexicalEditor=c;const f=uh(l);for(let p=0;p<Tc.length;p++){const[m,h]=Tc[p],g=typeof h=="function"?y=>{of(y)||(nf(y),(c.isEditable()||m==="click")&&h(y,c))}:y=>{if(of(y))return;nf(y);const C=c.isEditable();switch(m){case"cut":return C&&oe(c,Au,y);case"copy":return oe(c,Xa,y);case"paste":return C&&oe(c,Su,y);case"dragstart":return C&&oe(c,nh,y);case"dragover":return C&&oe(c,oh,y);case"dragend":return C&&oe(c,kle,y);case"focus":return C&&oe(c,Sle,y);case"blur":return C&&oe(c,xle,y);case"drop":return C&&oe(c,th,y)}};l.addEventListener(m,g),f.push(()=>{l.removeEventListener(m,g)})}}(e,this),o!=null&&e.classList.add(...o)}else this._window=null,this._updateTags.add(Mi),Hn(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=Sh(e),o._selection=e._selection?e._selection.clone():null),Lm(this);const i=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;i===null||i.isEmpty()||(a!=null&&s.add(a),Hn(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||Hn(this)}parseEditorState(e,n){return function(o,i,s){const a=Bu(),l=ct,c=Dt,u=ut,d=i._dirtyElements,f=i._dirtyLeaves,p=i._cloneNotNeeded,m=i._dirtyType;i._dirtyElements=new Map,i._dirtyLeaves=new Set,i._cloneNotNeeded=new Set,i._dirtyType=0,ct=a,Dt=!1,ut=i,Lu(null);try{const h=i._nodes;$u(o.root,h),s&&s(),a._readOnly=!0}catch(h){h instanceof Error&&i._onError(h)}finally{i._dirtyElements=d,i._dirtyLeaves=f,i._cloneNotNeeded=p,i._dirtyType=m,ct=l,Dt=c,ut=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return Hn(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,i,s){o._updating?o._updates.push([i,s]):nl(o,i,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),Rt(this,()=>{const i=ee(),s=Ge();i!==null?i.dirty||vt(i.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),nce("focus"),oce(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=pn(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()}}}H(er,"version");er.version="0.38.1+prod.esm";let Lc=null;function Lu(t){Lc=t}let Jle=1;function Ah(t,e){const n=Ou(t,e);return n===void 0&&G(30,e),n}function Ou(t,e){return t._nodes.get(e)}const Xle=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Sf(t){return Ne(Ur(t))}function Vu(t){const e=document.activeElement;if(!tt(e))return!1;const n=e.nodeName;return Ne(Ur(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&rl(e)==null)}function ms(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!Vu(e)&&Nh(e)===t}catch{return!1}}function Iu(t){return t instanceof er}function Nh(t){let e=t;for(;e!=null;){const n=rl(e);if(Iu(n))return n;e=hs(e)}return null}function rl(t){return t?t.__lexicalEditor:null}function jo(t){return Qa(t)||t.isToken()}function Un(t){return jo(t)||t.isSegmented()}function eo(t){return Xr(t)&&t.nodeType===3}function Dh(t){return Xr(t)&&t.nodeType===9}function zr(t){let e=t;for(;e!=null;){if(eo(e))return e;e=e.firstChild}return null}function _a(t,e,n){const o=Et[e];if(n!==null&&(t&o)===(n&o))return t;let i=t^o;return e==="subscript"?i&=~Et.superscript:e==="superscript"?i&=~Et.subscript:e==="lowercase"?(i&=~Et.uppercase,i&=~Et.capitalize):e==="uppercase"?(i&=~Et.lowercase,i&=~Et.capitalize):e==="capitalize"&&(i&=~Et.lowercase,i&=~Et.uppercase),i}function $h(t){return X(t)||mo(t)||Ne(t)}function Qle(t,e){const n=function(){const a=Lc;return Lc=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);lt(),bh();const o=Ke(),i=xo(),s=""+Jle++;i._nodeMap.set(s,t),z(t)?o._dirtyElements.set(s,!0):o._dirtyLeaves.add(s),o._cloneNotNeeded.add(s),o._dirtyType=1,t.__key=s}function Wo(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 ya(t){bh(),ma(t)&&G(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=xo(),i=Ke(),s=o._nodeMap,a=i._dirtyElements;n!==null&&function(c,u,d){let f=c;for(;f!==null;){if(d.has(f))return;const p=u.get(f);if(p===void 0)break;d.set(f,!1),f=p.__parent}}(n,s,a);const l=e.__key;i._dirtyType=1,z(t)?a.set(l,!0):i._dirtyLeaves.add(l)}function ft(t){lt();const e=Ke(),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 uo(){return us()?null:Ke()._compositionKey}function rt(t,e){const n=(e||xo())._nodeMap.get(t);return n===void 0?null:n}function Bh(t,e){const n=il(t,Ke());return n!==void 0?rt(n,e):null}function il(t,e){return t[`__lexicalKey_${e._key}`]}function Ur(t,e){let n=t;for(;n!=null;){const o=Bh(n,e);if(o!==null)return o;n=hs(n)}return null}function Mh(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function xf(t){return t.read(()=>Ge().getTextContent())}function Ge(){return Lh(xo())}function Lh(t){return t._nodeMap.get("root")}function vt(t){lt();const e=xo();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function wr(t){const e=Ke(),n=function(o,i){let s=o;for(;s!=null;){const a=il(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 Oh(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Pu(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function Vh(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Ih(t){return eo(t)?t.nodeValue:null}function Fu(t,e,n){const o=pn(on(e));if(o===null)return;const i=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(i!==null){let l=Ih(i);const c=Ur(i);if(l!==null&&X(c)){if(l===Ya&&n){const u=n.length;l=n,s=u,a=u}l!==null&&Ru(c,l,s,a,t)}}}function Ru(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]===Ya&&(l=e.slice(0,-1));const c=s.getTextContent();if(i||l!==c){if(l===""){if(ft(null),Hi||Rr||ji)s.remove();else{const g=Ke();setTimeout(()=>{g.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=Jr(),f=s.getTextContentSize(),p=uo(),m=s.getKey();if(s.isToken()||p!==null&&m===p&&!a||Z(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===f&&!s.canInsertTextAfter()&&!a))return void s.markDirty();const h=ee();if(!Z(h)||n===null||o===null)return void Tf(s,l,h);if(h.setTextNodeRange(s,n,s,o),s.isSegmented()){const g=Ye(s.getTextContent());s.replace(g),s=g}Tf(s,l,h)}}}function Tf(t,e,n){if(t.setTextContent(e),Z(n)){const o=t.getKey();for(const i of["anchor","focus"]){const s=n[i];s.type==="text"&&s.key===o&&(s.offset=go(t,s.offset,"clamp"))}}}function Rs(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function ece(t,e){return Rs(t,e,"altKey")&&Rs(t,e,"ctrlKey")&&Rs(t,e,"shiftKey")&&Rs(t,e,"metaKey")}function Me(t,e,n){return ece(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const zn={ctrlKey:!ln,metaKey:ln},Af={altKey:ln,ctrlKey:!ln};function Nf(t){return t.key==="Backspace"}function Df(t){return Me(t,"a",zn)}function tce(t){const e=Ge();if(Z(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 Nr(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=Dm(i);return n[e]=s,s}return i}function zu(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),f=d==="destroyed"&&i==="created";(d===void 0||f)&&u.set(a,f?"updated":i)}function $f(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 Oc(t,e){const n=t.offset;if(t.type==="element")return $f(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?$f(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):i}}return null}function Ph(t){const e=on(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function oe(t,e,n){return function(o,i,s){const a=Pu(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 f=d[l];if(f!==void 0){const p=Array.from(f),m=p.length;let h=!1;if(Rt(u,()=>{for(let g=0;g<m;g++)if(p[g](s,o))return void(h=!0)}),h)return h}}}return!1}(t,e,n)}function sl(t){return!Qe(t)&&!t.isLastChild()&&!t.isInline()}function tr(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 Pc(e)?e.host:e}function Fh(t){return Dh(t)?t:tt(t)?t.ownerDocument:null}function nce(t){lt(),Ke()._updateTags.add(t)}function oce(t){lt(),Ke()._deferred.push(t)}function Vc(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Uu(t){const e=Fh(t);return e?e.defaultView:null}function on(t){const e=t._window;return e===null&&G(78),e}function rce(t){let e=t.getParentOrThrow();for(;e!==null;){if(St(e))return e;e=e.getParentOrThrow()}return e}function St(t){return Qe(t)||z(t)&&t.isShadowRoot()}function vn(t){const e=Ke(),n=t.getType(),o=Ou(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 Ql(t,e){!Qe(t.getParent())||z(e)||Ne(e)||G(99)}function ice(t){const e=rt(t);return e===null&&G(63,t),e}function ec(t){return(Ne(t)||z(t)&&!t.canBeEmpty())&&!t.isInline()}function Ic(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function pn(t){return gn?(t||window).getSelection():null}function sce(t){const e=Uu(t);return e?e.getSelection():null}function Rh(t){return tt(t)&&t.tagName==="A"}function tt(t){return Xr(t)&&t.nodeType===1}function Xr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Pc(t){return Xr(t)&&t.nodeType===11}function Fc(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 Yt(t){if(Ne(t)&&!t.isInline())return!0;if(!z(t)||St(t))return!1;const e=t.getFirstChild(),n=e===null||mo(e)||X(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function al(){return Ke()}const Bf=new WeakMap,ace=new Map;function Mf(t){if(!t._readOnly&&t.isEmpty())return ace;t._readOnly||G(192);let e=Bf.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),Bf.set(t,e)),e}function zh(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function lce(t){return(e=zh(t))[fh]=!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 cce(t){return t.__lexicalUnmanaged===!0}function ki(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==dn[e]}function ll(t){const e=q1 in t.prototype?t.prototype[q1]():void 0,n=function(a){if(!(a===dn||a.prototype instanceof dn)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{er.version&&(c=JSON.parse(er.version))}catch{}G(290,a.name,l,c)}return a===Eh||a===Ht||a===dn}(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=>(Lu(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 uce(t){const e=al();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},dce={next:"previous",previous:"next"};class Hu{constructor(e){H(this,"origin");this.origin=e}[Symbol.iterator](){return Uh({hasNext:qr,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 Ji extends Hu{constructor(){super(...arguments);H(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:mn(n,this.direction)}getParentCaret(n="root"){return mt(ju(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Qr(this.direction);return mt(this.getNodeAtCaret(),n)||mn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Ji&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const fce={root:Qe,shadowRoot:St};function Qr(t){return dce[t]}function ju(t,e="root"){return fce[e](t)?null:t}class nr extends Hu{constructor(){super(...arguments);H(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 z(this.origin)?mn(this.origin,this.direction):null}getParentCaret(n="root"){return mt(ju(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Qr(this.direction);return mt(this.getNodeAtCaret(),n)||mn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof nr&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof nr||n instanceof or)&&this.direction===n.direction&&this.origin.is(n.origin)}}class or extends Hu{constructor(n,o){super(n);H(this,"type","text");H(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:rr(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return mt(ju(this.getParentAtCaret(),n),this.direction)}getFlipped(){return rr(this.origin,Qr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof or&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof nr||n instanceof or)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return mt(this.origin,this.direction)}}function ho(t){return t instanceof or}function qr(t){return t instanceof nr}function Tn(t){return t instanceof Ji}const pce={next:class extends or{constructor(){super(...arguments);H(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends or{constructor(){super(...arguments);H(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},mce={next:class extends nr{constructor(){super(...arguments);H(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends nr{constructor(){super(...arguments);H(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},hce={next:class extends Ji{constructor(){super(...arguments);H(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Ji{constructor(){super(...arguments);H(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 mce[e](t):null}function rr(t,e,n){return t?new pce[e](t,go(t,n)):null}function go(t,e,n="error"){const o=t.getTextContentSize();let i=e==="next"?o:e==="previous"?0:e;return(i<0||i>o)&&(n!=="clamp"&&Am(284,String(e),String(o),t.getKey()),i=i<0?0:o),i}function Lf(t,e){return new vce(t,e)}function mn(t,e){return z(t)?new hce[e](t):null}function gce(t){return t&&t.getChildCaret()||t}function Wu(t){return t&&gce(t.getAdjacentCaret())}class Zu{constructor(e,n,o){H(this,"type","node-caret-range");H(this,"direction");H(this,"anchor");H(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 Zu(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=i=>{const s=this[i].getLatest();return ho(s)?function(a,l){const{direction:c,origin:u}=a,d=go(u,l==="focus"?Qr(c):c);return Lf(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[Lf(i,s.offset-i.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=ho(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),i=ho(o),s=a=>a.isSameNodeCaret(o)?null:Wu(a)||a.getParentCaret(e);return Uh({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 vce{constructor(e,n){H(this,"type","slice");H(this,"caret");H(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 rr(e.setTextContent(s.slice(0,o)+s.slice(i)),n,o)}}function Ku(t){return bo(t,mt(Ge(),t.direction))}function _ce(t){return bo(t,t)}function bo(t,e){return t.direction!==e.direction&&G(265),new Zu(t,e,t.direction)}function Uh(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 qh(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 Hh(n)}}function Hh(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 Of(t){return z(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]=Of(t);o;i=o,o=o.getParent())n.set(o,i);for(let[o,i]=Of(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"}):((z(s)||zs(t,s))&&(z(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 Yn(t,e){const{type:n,key:o,offset:i}=t,s=ice(t.key);return n==="text"?(X(s)||G(266,s.getType(),o),rr(s,e,i)):(z(s)||G(267,s.getType(),o),bce(s,t.offset,e))}function ir(t,e){const{origin:n,direction:o}=e,i=o==="next";ho(e)?t.set(n.getKey(),e.offset,"text"):qr(e)?X(n)?t.set(n.getKey(),go(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(i?1:0),"element"):(Tn(e)&&z(n)||G(268),t.set(n.getKey(),i?0:n.getChildrenSize(),"element"))}function yce(t){const e=ee(),n=Z(e)?e:tl();return Ys(n,t),vt(n),n}function Ys(t,e){ir(t.anchor,e.anchor),ir(t.focus,e.focus)}function Vf(t){const{anchor:e,focus:n}=t,o=Yn(e,"next"),i=Yn(n,"next"),s=qh(o,i)<=0?"next":"previous";return bo(Hr(o,s),Hr(i,s))}function Gu(t){const{direction:e,origin:n}=t,o=mt(n,Qr(e)).getNodeAtCaret();return o?mt(o,e):mn(n.getParentOrThrow(),e)}function If(t,e="root"){const n=[t];for(let o=Tn(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(Gu(o));return n}function tc(t){return!!t&&t.origin.isAttached()}function Cce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let i=e;const s=Wh(t,o),a=If(s.anchor,n),l=If(s.focus.getFlipped(),n),c=new Set,u=[];for(const h of s.iterNodeCarets(n))if(Tn(h))c.add(h.origin.getKey());else if(qr(h)){const{origin:g}=h;z(g)&&!c.has(g.getKey())||u.push(g)}for(const h of u)h.remove();for(const h of s.getTextSlices()){if(!h)continue;const{origin:g}=h.caret,y=g.getTextContentSize(),C=Gu(mt(g,o)),v=g.getMode();if(Math.abs(h.distance)===y&&i==="removeEmptySlices"||v==="token"&&h.distance!==0)C.remove();else if(h.distance!==0){i="removeEmptySlices";let _=h.removeTextSlice();const b=h.caret.origin;if(v==="segmented"){const w=_.origin,k=Ye(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());C.replaceOrInsert(k),_=rr(k,o,_.offset)}b.is(a[0].origin)&&(a[0]=_),b.is(l[0].origin)&&(l[0]=_.getFlipped())}}let d,f;for(const h of a)if(tc(h)){d=Xt(h);break}for(const h of l)if(tc(h)){f=Xt(h);break}const p=function(h,g,y){if(!h||!g)return null;const C=h.getParentAtCaret(),v=g.getParentAtCaret();if(!C||!v)return null;const _=C.getParents().reverse();_.push(C);const b=v.getParents().reverse();b.push(v);const w=Math.min(_.length,b.length);let k;for(k=0;k<w&&_[k]===b[k];k++);const A=(E,D)=>{let x;for(let $=k;$<E.length;$++){const B=E[$];if(St(B))return;!x&&D(B)&&(x=B)}return x},T=A(_,Yt),S=T&&A(b,E=>y.has(E.getKey())&&Yt(E));return T&&S?[T,S]:null}(d,f,c);if(p){const[h,g]=p;mn(h,"previous").splice(0,g.getChildren()),g.remove()}const m=[d,f,...a,...l].find(tc);if(m)return _ce(Hr(Xt(m),t.direction));G(269,JSON.stringify(a.map(h=>h.origin.__key)))}function Xt(t){const e=function(i){let s=i;for(;Tn(s);){const a=Wu(s);if(!Tn(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(X(e.origin))return ho(e)?e:rr(e.origin,n,n);const o=e.getAdjacentCaret();return qr(o)&&X(o.origin)?rr(o.origin,n,Qr(n)):e}function jh(t){return ho(t)&&t.offset!==go(t.origin,t.direction)}function Hr(t,e){return t.direction===e?t:t.getFlipped()}function Wh(t,e){return t.direction===e?t:bo(Hr(t.focus,e),Hr(t.anchor,e))}function bce(t,e,n){let o=mn(t,"next");for(let i=0;i<e;i++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return Hr(o,n)}const Rc=new Map;function Zh(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 Pf(t){let e=Rc.get(t);return e===void 0&&(e=Zh(t),Rc.set(t,e)),e}function Kh(t){const e=al().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function Gh(t){return Kh(Qe(t)?t:t.getParentOrThrow())}function Ff(t){const e=Gh(t);return e!==null&&e.direction==="rtl"}function Yh(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!Un(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[f,p]=Bc(t),m=l.is(c),h=e.is(a?c:l),g=e.is(a?l:c);let y,C=0;m?(C=f>p?p:f,y=f>p?f:p):h?(C=a?p:f,y=void 0):g&&(C=0,y=a?f:p);const v=e.__text.slice(C,y);v!==e.__text&&(n==="clone"&&(e=lce(e)),e.__text=v)}}return e}function kce(t){const e=t.getStyle(),n=Zh(e);Rc.set(e,n)}function wce(t,e){const n=t.getFormatType(),o=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),o!==e.getIndent()&&e.setIndent(o)}function nc(t,e,n=wce){if(t===null)return;const o=t.getStartEndPoints(),i=new Map;let s=null;if(o){const[a,l]=o;s=tl(),s.anchor.set(a.key,a.offset,a.type),s.focus.set(l.key,l.offset,l.type);const c=en(a.getNode(),Yt),u=en(l.getNode(),Yt);z(c)&&i.set(c.getKey(),c),z(u)&&i.set(u.getKey(),u)}for(const a of t.getNodes())if(z(a)&&Yt(a))i.set(a.getKey(),a);else if(o===null){const l=en(a,Yt);z(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(ee())&&vt(s)}function Jh(t){const e=Xh(t);return e!==null&&e.writingMode==="vertical-rl"}function Xh(t){const e=t.anchor.getNode();return z(e)?Kh(e):Gh(e)}function Rf(t,e){let n=Jh(t)?!e:e;Qh(t)&&(n=!n);const o=Yn(t.focus,n?"previous":"next");if(jh(o))return!1;for(const i of Ku(o)){if(Tn(i))return!i.origin.isInline();if(!z(i.origin)){if(Ne(i.origin))return!0;break}}return!1}function Ece(t,e,n,o){t.modify(e?"extend":"move",n,o)}function Qh(t){const e=Xh(t);return e!==null&&e.direction==="rtl"}function zf(t,e,n){const o=Qh(t);let i;i=Jh(t)||o?!n:n,Ece(t,e,i,"character")}function Sce(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 Yu=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,xce=Yu&&"documentMode"in document?document.documentMode:null;!(!Yu||!("InputEvent"in window)||xce)&&"getTargetRanges"in new window.InputEvent("input");function eg(...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 Tce=Yu;function Jn(t,...e){const n=eg(...e);n.length>0&&t.classList.add(...n)}function Ju(t,...e){const n=eg(...e);n.length>0&&t.classList.remove(...n)}function Ace(t){return t?t.getAdjacentCaret():null}function Nce(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function Dce(t){const e=en(t,n=>z(n)&&!n.isInline());return z(e)||Sce(4,t.__key),e}function Ro(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function fo(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 zc(t){let e=1,n=t.getParent();for(;n!=null;){if(De(n)){const o=n.getParent();if(he(o)){e++,n=o.getParent();continue}fo(40)}return e}return e}function Uc(t){let e=t.getParent();he(e)||fo(40);let n=e;for(;n!==null;)n=n.getParent(),he(n)&&(e=n);return e}function tg(t){let e=[];const n=t.getChildren().filter(De);for(let o=0;o<n.length;o++){const i=n[o],s=i.getFirstChild();he(s)?e=e.concat(tg(s)):e.push(i)}return e}function wn(t){return De(t)&&he(t.getFirstChild())}function Uf(t){return jt().append(t)}function ng(t,e){return De(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function qf(t){const e=ee();if(e!==null){let n=e.getNodes();if(Z(e)){const i=e.getStartEndPoints();i===null&&fo(143);const[s]=i,a=s.getNode(),l=a.getParent();if(St(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=qe();a.append(u),n=u.select().getNodes()}}else if(ng(a,n)){const c=$t(t);if(St(l)){a.replace(c);const u=jt();z(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(De(a)){const u=a.getParentOrThrow();sr(c,u.getChildren()),u.replace(c)}return}}const o=new Set;for(let i=0;i<n.length;i++){const s=n[i];if(z(s)&&s.isEmpty()&&!De(s)&&!o.has(s.getKey())){Hf(s,t);continue}let a=$h(s)?s.getParent():De(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(he(a)){if(!o.has(l)){const c=$t(t);sr(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(St(c)&&!o.has(l)){o.add(l),Hf(a,t);break}a=c}}}}}function sr(t,e){t.splice(t.getChildrenSize(),0,e)}function Hf(t,e){if(he(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),i=jt();let s;if(sr(i,t.getChildren()),he(n)&&e===n.getListType())n.append(i),he(o)&&e===o.getListType()&&(sr(n,o.getChildren()),o.remove()),s=n;else if(he(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(i),s=o;else{const a=$t(e);a.append(i),t.replace(a),s=a}return i.setFormat(t.getFormatType()),i.setIndent(t.getIndent()),t.remove(),s}function Xu(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&wn(n)&&wn(o)&&(Xu(n.getFirstChild(),o.getFirstChild()),o.remove());const i=e.getChildren();i.length>0&&t.append(...i),e.remove()}function $ce(){const t=ee();if(Z(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(ng(o,n))e.add(Uc(o));else for(let i=0;i<n.length;i++){const s=n[i];if($h(s)){const a=Nce(s,To);a!=null&&e.add(Uc(a))}}for(const i of e){let s=i;const a=tg(i);for(const l of a){const c=qe().setTextStyle(t.style).setTextFormat(t.format);sr(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&ir(t.anchor,Xt(mn(c,"next"))),l.__key===t.focus.key&&ir(t.focus,Xt(mn(c,"next"))),l.remove()}i.remove()}}}function og(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())De(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),he(o.getFirstChild())||n++)}function Bce(t){const e=new Set;if(wn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),i=t.getPreviousSibling();if(wn(o)&&wn(i)){const s=i.getFirstChild();if(he(s)){s.append(t);const a=o.getFirstChild();he(a)&&(sr(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(wn(o)){const s=o.getFirstChild();if(he(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(wn(i)){const s=i.getFirstChild();he(s)&&s.append(t)}else if(he(n)){const s=jt().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=$t(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 Mce(t){if(wn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(he(n?n.getParent():void 0)&&De(n)&&he(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=jt(),l=$t(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=jt(),u=$t(s);c.append(u),sr(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function Lce(){const t=ee();if(!Z(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!De(e)||e.getChildrenSize()!==0)return!1;const n=Uc(e),o=e.getParent();he(o)||fo(40);const i=o.getParent();let s;if(St(i))s=qe(),n.insertAfter(s);else{if(!De(i))return!1;s=jt(),i.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=$t(o.getListType());if(De(s)){const c=jt();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||!De(u)&&!he(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 Ht{constructor(n=1,o=void 0,i){super(i);H(this,"__value");H(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();he(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Ht,importDOM:{li:()=>({conversion:Oce,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();!he(d)||d.getListType()!=="check"||he(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=[],f=[],p=c.list,m=p?p.listitem:void 0;let h;if(p&&p.nested&&(h=p.nested.listitem),m!==void 0&&d.push(...ba(m)),p){const g=u.getParent(),y=he(g)&&g.getListType()==="check",C=u.getChecked();y&&!C||f.push(p.listitemUnchecked),y&&C||f.push(p.listitemChecked),y&&d.push(C?p.listitemChecked:p.listitemUnchecked)}if(h!==void 0){const g=ba(h);u.getChildren().some(y=>he(y))?d.push(...g):f.push(...g)}f.length>0&&Ju(l,...f),d.length>0&&Jn(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=Pf(c.__textStyle);for(const f in d)l.style.setProperty(`--listitem-marker-${f}`,d[f]);if(u)for(const f in Pf(u.__textStyle))f in d||l.style.removeProperty(`--listitem-marker-${f}`)}(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(z(i)&&this.canMergeWith(i)){const s=i.getChildren();this.append(...s),i.remove()}else super.append(i)}return this}replace(n,o){if(De(n))return super.replace(n);this.setIndent(0);const i=this.getParentOrThrow();if(!he(i))return n;if(i.__first===this.getKey())i.insertBefore(n);else if(i.__last===this.getKey())i.insertAfter(n);else{const s=$t(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&&(z(n)||fo(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(he(i)||fo(39),De(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(i.insertAfter(n,o),s.length!==0){const a=$t(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&&wn(o)&&wn(i)&&(Xu(o.getFirstChild(),i.getFirstChild()),i.remove())}insertNewAfter(n,o=!0){const i=jt().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(i,o),i}collapseAtStart(n){const o=qe();this.getChildren().forEach(l=>o.append(l));const i=this.getParentOrThrow(),s=i.getParentOrThrow(),a=De(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 he(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(;De(o);)o=o.getParentOrThrow().getParentOrThrow(),i++;return i}setIndent(n){typeof n!="number"&&fo(117),(n=Math.floor(n))>=0||fo(199);let o=this.getIndent();for(;o!==n;)o<n?(Bce(this),o++):(Mce(this),o--);return this}canInsertAfter(n){return De(n)}canReplaceWith(n){return De(n)}canMergeWith(n){return De(n)||ps(n)}extractWithChild(n,o){if(!Z(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 $t("bullet")}canMergeWhenEmpty(){return!0}};function Oce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return jf(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 jf(n.children[0])}const e=t.getAttribute("aria-checked");return{node:jt(e==="true"||e!=="false"&&void 0)}}function jf(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:jt(t.hasAttribute("checked"))}}function jt(t){return vn(new To(void 0,t))}function De(t){return t instanceof To}let lr=class extends Ht{constructor(n="number",o=1,i){super(i);H(this,"__tag");H(this,"__start");H(this,"__listType");const s=Ice[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();he(i)&&o.getListType()===i.getListType()&&Xu(o,i)})(n),og(n)},extends:Ht,importDOM:{ol:()=>({conversion:Zf,priority:0}),ul:()=>({conversion:Zf,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,Wf(s,n.theme,this),s}updateDOM(n,o,i){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Wf(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];De(l)||(s===i&&(s=[...i]),s[a]=jt().append(!z(l)||he(l)||l.isInline()?l:Ye(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return De(n)}};function Wf(t,e,n){const o=[],i=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=zc(n)-1,c=l%a.length,u=a[c],d=s[n.__tag];let f;const p=s.nested,m=s.checklist;if(p!==void 0&&p.list&&(f=p.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(f!==void 0){const h=ba(f);l>1?o.push(...h):i.push(...h)}}i.length>0&&Ju(t,...i),o.length>0&&Jn(t,...o)}function Vce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(De(o)){e.push(o);const i=o.getChildren();i.length>1&&i.forEach(s=>{he(s)&&e.push(Uf(s))})}else e.push(Uf(o))}return e}function Zf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=$t("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)?$t("check"):$t("bullet")),{after:Vce,node:n}}const Ice={ol:"number",ul:"bullet"};function $t(t="number",e=1){return vn(new lr(t,e))}function he(t){return t instanceof lr}const Pce=pe("UPDATE_LIST_START_COMMAND"),rg=pe("INSERT_UNORDERED_LIST_COMMAND"),ig=pe("INSERT_ORDERED_LIST_COMMAND"),Fce=pe("REMOVE_LIST_COMMAND");function Rce(t){return gs(t.registerCommand(ig,()=>(qf("number"),!0),bi),t.registerCommand(Pce,e=>{const{listNodeKey:n,newStart:o}=e,i=rt(n);return!!he(i)&&(i.getListType()==="number"&&(i.setStart(o),og(i)),!0)},bi),t.registerCommand(rg,()=>(qf("bullet"),!0),bi),t.registerCommand(Fce,()=>($ce(),!0),bi),t.registerCommand(Ki,()=>Lce(),bi),t.registerNodeTransform(To,e=>{const n=e.getFirstChild();if(n){if(X(n)){const o=n.getStyle(),i=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==i&&e.setTextFormat(i)}}else{const o=ee();Z(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(So,e=>{const n=e.getParent();if(De(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),i=e.getFormat();o===n.getTextStyle()&&i===n.getTextFormat()||n.setTextStyle(o).setTextFormat(i)}}))}function zce(t){const e=n=>{const o=n.getParent();if(he(n.getFirstChild())||!he(o))return;const i=en(n,s=>De(s)&&he(s.getParent())&&De(s.getPreviousSibling()));if(i===null&&n.getIndent()>0)n.setIndent(0);else if(De(i)){const s=i.getPreviousSibling();if(De(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;he(d);){const f=d.getLastChild();if(!De(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(he(l)){const c=zc(l);c+1<zc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(lr,n=>{const o=[n];for(;o.length>0;){const i=o.shift();if(he(i)){for(const s of i.getChildren())if(De(s)){e(s);const a=s.getFirstChild();he(a)&&o.push(a)}}}})}function Uce(t,e){const n=Dh(e)?e.body.childNodes:e.childNodes;let o=[];const i=[];for(const s of n)if(!ag.has(s.nodeName)){const a=lg(s,t,i,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof Mu&&a.insertAfter(fn());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(i),o}function qce(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=Ge().getChildren();for(let i=0;i<o.length;i++)sg(t,o[i],n,e);return n.innerHTML}function sg(t,e,n,o=null){let i=o===null||e.isSelected(o);const s=z(e)&&e.excludeFromCopy("html");let a=e;o!==null&&X(e)&&(a=Yh(o,e,"clone"));const l=z(a)?a.getChildren():[],c=Ou(t,a.getType());let u;u=c&&c.exportDOM!==void 0?c.exportDOM(t,a):a.exportDOM(t);const{element:d,after:f}=u;if(!d)return!1;const p=document.createDocumentFragment();for(let m=0;m<l.length;m++){const h=l[m],g=sg(t,h,p,o);!i&&z(e)&&g&&e.extractWithChild(h,o,"html")&&(i=!0)}if(i&&!s){if((tt(d)||Pc(d))&&d.append(p),n.append(d),f){const m=f.call(a,d);m&&(Pc(d)?d.replaceChildren(m):d.replaceWith(m))}}else n.append(p);return i}const ag=new Set(["STYLE","SCRIPT"]);function lg(t,e,n,o,i=new Map,s){let a=[];if(ag.has(t.nodeName))return a;let l=null;const c=function(h,g){const{nodeName:y}=h,C=g._htmlConversions.get(y.toLowerCase());let v=null;if(C!==void 0)for(const _ of C){const b=_(h);b!==null&&(v===null||(v.priority||0)<=(b.priority||0))&&(v=b)}return v!==null?v.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[,g]of i)if(l=g(l,s),!l)break;l&&a.push(...Array.isArray(h)?h:[l])}u.forChild!=null&&i.set(t.nodeName,u.forChild)}const f=t.childNodes;let p=[];const m=(l==null||!St(l))&&(l!=null&&Mc(l)||o);for(let h=0;h<f.length;h++)p.push(...lg(f[h],e,n,m,new Map(i),l));return d!=null&&(p=d(p)),Ca(t)&&(p=Hce(t,p,m?()=>{const h=new Mu;return n.push(h),h}:qe)),l==null?p.length>0?a=a.concat(p):Ca(t)&&function(h){return h.nextSibling==null||h.previousSibling==null?!1:Fc(h.nextSibling)&&Fc(h.previousSibling)}(t)&&(a=a.concat(fn())):z(l)&&l.append(...p),a}function Hce(t,e,n){const o=t.style.textAlign,i=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if(Mc(l))o&&!l.getFormat()&&l.setFormat(o),i.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&Mc(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 jce(t,e=ee()){return e==null&&ka(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?"":qce(t,e)}function Wce(t,e=ee()){return e==null&&ka(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(Zce(t,e))}function Kf(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 Gf(n,Kce(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 Gf(n,Uce(n,l),e)}catch(l){console.error(l)}const a=s||t.getData("text/uri-list");if(a!=null)if(Z(e)){const l=a.split(/(\r?\n|\t)/);l[l.length-1]===""&&l.pop();for(let c=0;c<l.length;c++){const u=ee();if(Z(u)){const d=l[c];d===`
|
|
29
|
+
`?o.push(fn()):a===" "?o.push(Yr()):o.push(Ye(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(y,C,v,_){const b=y.getNode(),w=b.getChildAtIndex(y.offset),k=Ye();if(k.setFormat(v),k.setStyle(_),ps(w))w.splice(0,0,[k]);else{const T=Qe(b)?qe().append(k):k;w===null?b.append(T):w.insertBefore(T)}y.is(C)&&C.set(k.__key,0,"text"),y.set(k.__key,0,"text")}(a,l,i,s),l.type==="element"&&ir(l,Xt(Yn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];X(p)||G(26);const m=p.getTextContent().length,h=p.getParentOrThrow();let g=d[f-1];if(f===1&&l.type==="element"&&(u=m,l.set(a.key,u,"text")),this.isCollapsed()&&c===m&&(Un(p)||!p.canInsertTextAfter()||!h.canInsertTextAfter()&&p.getNextSibling()===null)){let y=p.getNextSibling();if(X(y)&&y.canInsertTextBefore()&&!Un(y)||(y=Ye(),y.setFormat(i),y.setStyle(s),h.canInsertTextAfter()?p.insertAfter(y):h.insertAfter(y)),y.select(0,0),p=y,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(Un(p)||!p.canInsertTextBefore()||!h.canInsertTextBefore()&&p.getPreviousSibling()===null)){let y=p.getPreviousSibling();if(X(y)&&!Un(y)||(y=Ye(),y.setFormat(i),h.canInsertTextBefore()?p.insertBefore(y):h.insertBefore(y)),y.select(),p=y,e!=="")return void this.insertText(e)}else if(p.isSegmented()&&c!==m){const y=Ye(p.getTextContent());y.setFormat(i),p.replace(y),p=y}else if(!this.isCollapsed()&&e!==""){const y=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||z(y)&&(!y.canInsertTextBefore()||!y.canInsertTextAfter()))return this.insertText(""),gh(this.anchor,this.focus,null),void this.insertText(e)}if(f===1){if(jo(p)){const _=Ye(e);return _.select(),void p.replace(_)}const y=p.getFormat(),C=p.getStyle();if(c!==u||y===i&&C===s){if(Qa(p)){const _=Ye(e);return _.setFormat(i),_.setStyle(s),_.select(),void p.replace(_)}}else{if(p.getTextContent()!==""){const _=Ye(e);if(_.setFormat(i),_.setStyle(s),_.select(),c===0)p.insertBefore(_,!1);else{const[b]=p.splitText(c);b.insertAfter(_,!1)}return void(_.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}p.setFormat(i),p.setStyle(s)}const v=u-c;p=p.spliceText(c,v,e,!0),p.getTextContent()===""?p.remove():this.anchor.type==="text"&&(p.isComposing()?this.anchor.offset-=e.length:(this.format=y,this.style=C))}else{const y=new Set([...p.getParentKeys(),...g.getParentKeys()]),C=z(p)?p:p.getParentOrThrow();let v=z(g)?g:g.getParentOrThrow(),_=g;if(!C.is(v)&&v.isInline())do _=v,v=v.getParentOrThrow();while(v.isInline());if(l.type==="text"&&(u!==0||g.getTextContent()==="")||l.type==="element"&&g.getIndexWithinParent()<u)if(X(g)&&!jo(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){const A=Ye(g.getTextContent());g.replace(A),g=A}Qe(l.getNode())||l.type!=="text"||(g=g.spliceText(0,u,"")),y.add(g.__key)}else{const A=g.getParentOrThrow();A.canBeEmpty()||A.getChildrenSize()!==1?g.remove():A.remove()}else y.add(g.__key);const b=v.getChildren(),w=new Set(d),k=C.is(v),T=C.isInline()&&p.getNextSibling()===null?C:p;for(let A=b.length-1;A>=0;A--){const S=b[A];if(S.is(p)||z(S)&&S.isParentOf(p))break;S.isAttached()&&(!w.has(S)||S.is(_)?k||T.insertAfter(S,!1):S.remove())}if(!k){let A=v,S=null;for(;A!==null;){const E=A.getChildren(),D=E.length;(D===0||E[D-1].is(S))&&(y.delete(A.__key),S=A),A=A.getParent()}}if(jo(p))if(c===m)p.select();else{const A=Ye(e);A.select(),p.replace(A)}else p=p.spliceText(c,m-c,e,!0),p.getTextContent()===""?p.remove():p.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let A=1;A<f;A++){const S=d[A],E=S.__key;y.has(E)||S.remove()}}}removeText(){const e=ee()===this;Ys(this,Cce(Vf(this))),e&&ee()!==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)X(b)&&i.push(b);const s=b=>{o.forEach(w=>{if(z(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,f=u?l:c;let p=0,m=i[0],h=d.type==="element"?0:d.offset;if(d.type==="text"&&h===m.getTextContentSize()&&(p=1,m=i[1],h=0),m==null)return;const g=m.getFormatFlags(e,n);s(g);const y=a-1;let C=i[y];const v=f.type==="text"?f.offset:C.getTextContentSize();if(m.is(C)){if(h===v)return;if(Un(m)||h===0&&v===m.getTextContentSize())m.setFormat(g);else{const b=m.splitText(h,v),w=h===0?b[0]:b[1];w.setFormat(g),d.type==="text"&&d.set(w.__key,0,"text"),f.type==="text"&&f.set(w.__key,v-h,"text")}return void(this.format=g)}h===0||Un(m)||([,m]=m.splitText(h),h=0),m.setFormat(g);const _=C.getFormatFlags(e,g);v>0&&(v===C.getTextContentSize()||Un(C)||([C]=C.splitText(v)),C.setFormat(_));for(let b=p+1;b<y;b++){const w=i[b],k=w.getFormatFlags(e,_);w.setFormat(k)}d.type==="text"&&d.set(m.__key,h,"text"),f.type==="text"&&f.set(C.__key,v,"text"),this.format=g|_}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const h=ee();return Z(h)||G(134),h.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=en(n,Yt),i=e[e.length-1];if(z(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=Jl(this);o.splice(h,0,e),i.selectEnd()}return}if(!e.some(h=>(z(h)||Ne(h))&&!h.isInline())){z(o)||G(211,n.constructor.name,n.getType());const h=Jl(this);return o.splice(h,0,e),void i.selectEnd()}const s=function(h){const g=qe();let y=null;for(let C=0;C<h.length;C++){const v=h[C],_=mo(v);if(_||Ne(v)&&v.isInline()||z(v)&&v.isInline()||X(v)||v.isParentRequired()){if(y===null&&(y=v.createParentElementNode(),g.append(y),_))continue;y!==null&&y.append(v)}else g.append(v),y=null}return g}(e),a=s.getLastDescendant(),l=s.getChildren(),c=!z(o)||!o.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var f;z(f=d)&&Yt(f)&&!f.isEmpty()&&z(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(z(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,g){const y=g.getParentOrThrow().getLastChild();let C=g;const v=[g];for(;C!==y;)C.getNextSibling()||G(140),C=C.getNextSibling(),v.push(C);let _=h;for(const b of v)_=_.insertAfter(b)}(o,d));const p=en(a,Yt);c&&z(p)&&(c.canMergeWhenEmpty()||Yt(u))&&(p.append(...c.getChildren()),c.remove()),z(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const m=z(o)?o.getLastChild():null;mo(m)&&p!==o&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=qe();return Ge().splice(this.anchor.offset,0,[a]),a.select(),a}const e=Jl(this),n=en(this.anchor.getNode(),Yt);z(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=fn();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]=Bc(this),l=this.isBackward(),[c,u]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,f]=l?[a,s]:[s,a];if(n===0)return[];if(n===1){if(X(o)&&!this.isCollapsed()){const p=o.splitText(d,f),m=d===0?p[0]:p[1];return m?(c.set(m.getKey(),0,"text"),u.set(m.getKey(),m.getTextContentSize(),"text"),[m]):[]}return[o]}if(X(o)&&(d===o.getTextContentSize()?e.shift():d!==0&&([,o]=o.splitText(d),e[0]=o,c.set(o.getKey(),0,"text"))),X(i)){const p=i.getTextContent().length;f===0?e.pop():f!==p&&([i]=i.splitText(f),e[e.length-1]=i,u.set(i.getKey(),i.getTextContentSize(),"text"))}return e}modify(e,n,o){if(vf(this,e,n,o))return;const i=e==="move",s=Ke(),a=pn(on(s));if(!a)return;const l=s._blockCursorElement,c=s._rootElement,u=this.focus.getNode();if(c===null||l===null||!z(u)||u.isInline()||u.canBeEmpty()||Ic(l,s,c),this.dirty){let d=tr(s,this.anchor.key),f=tr(s,this.focus.key);this.anchor.type==="text"&&(d=zr(d)),this.focus.type==="text"&&(f=zr(f)),d&&f&&Ch(a,d,this.anchor.offset,f,this.focus.offset)}if(function(d,f,p,m){d.modify(f,p,m)}(a,e,n?"backward":"forward",o),a.rangeCount>0){const d=a.getRangeAt(0),f=this.anchor.getNode(),p=Qe(f)?f:rce(f);if(this.applyDOMRange(d),this.dirty=!0,!i){const m=this.getNodes(),h=[];let g=!1;for(let y=0;y<m.length;y++){const C=m[y];Vc(C,p)?h.push(C):g=!0}if(g&&h.length>0)if(n){const y=h[0];z(y)?y.selectStart():y.getParentOrThrow().selectStart()}else{const y=h[h.length-1];z(y)?y.selectEnd():y.getParentOrThrow().selectEnd()}a.anchorNode===d.startContainer&&a.anchorOffset===d.startOffset||function(y){const C=y.focus,v=y.anchor,_=v.key,b=v.offset,w=v.type;v.set(C.key,C.offset,C.type,!0),C.set(_,b,w,!0)}(this)}}o==="lineboundary"&&vf(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&z(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(z(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=Ku(Yn(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(An(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(z(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=Xt(c);Ys(this,bo(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(qr(c)){if(z(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(Ne(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&z(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=yh();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,bo(!c.origin.isEmpty()&&u.isEmpty()?Gu(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&&df(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 ff(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 ff(i,e,c)}(function(c,u){const d=c.anchor,f=c.focus,p=d.getNode(),m=f.getNode();if(p===m&&d.type==="text"&&f.type==="text"){const h=d.offset,g=f.offset,y=h<g,C=y?h:g,v=y?g:h,_=v-1;C!==_&&function(b){return!(Oh(b)||zle(b))}(p.getTextContent().slice(C,v))&&(u?f.set(f.key,_,f.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&&df(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 Ft(t){return t instanceof el}function uf(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Bc(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]:[uf(n),uf(o)]}function df(t,e){for(let n=e;n;n=n.getParent()){if(z(n)){if(n.collapseAtStart(t))return!0;if(St(n))break}if(n.getPreviousSibling())break}return!1}const zle=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function ff(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 pf(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],f=!1;if(d===u)d=l[s+1],f=!0;else if(u!==null){const p=u.parentNode;t===p&&e>Array.prototype.indexOf.call(p.children,u)&&s--}if(i=wr(d),X(i))s=go(i,a?"next":"previous");else{let p=wr(t);if(p===null)return null;if(z(p)){const m=o.getElementByKey(p.getKey());m===null&&G(214),[p,s]=p.getDOMSlot(m).resolveChildIndex(p,m,t,e),z(p)||G(215),a&&s>=p.getChildrenSize()&&(s=Math.max(0,p.getChildrenSize()-1));let g=p.getChildAtIndex(s);if(z(g)&&function(y,C,v){const _=y.getParent();return v===null||_===null||!_.canBeEmpty()||_!==v.getNode()}(g,0,n)){const y=a?g.getLastDescendant():g.getFirstDescendant();y===null?p=g:(g=y,p=z(g)?g:g.getParentOrThrow()),s=0}X(g)?(i=g,p=null,s=go(g,a?"next":"previous")):g!==p&&a&&!f&&(z(p)||G(216),s=Math.min(p.getChildrenSize(),s+1))}else{const m=p.getIndexWithinParent();s=e===0&&Ne(p)&&wr(t)===p?m:m+1,p=p.getParentOrThrow()}if(z(p))return $n(p.__key,s,"element")}}else i=wr(t);return X(i)?$n(i.__key,go(i,s,"clamp"),"text"):null}function mf(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&&z(a)&&a.isInline()){const l=a.getPreviousSibling();X(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else z(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):X(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(o===i.getTextContent().length){const s=i.getNextSibling(),a=i.getParent();if(e&&z(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&z(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();X(l)&&t.set(l.__key,0,"text")}}}function gh(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),i=t.is(e);mf(t,o,i),mf(e,!o,i),i&&e.set(t.key,t.offset,t.type);const s=Ke();if(s.isComposing()&&s._compositionKey!==t.key&&Z(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 vh(t,e,n,o,i,s){if(t===null||n===null||!ms(i,t,n))return null;const a=pf(t,e,Z(s)?s.anchor:null,i);if(a===null)return null;const l=pf(n,o,Z(s)?s.focus:null,i);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=wr(t),u=wr(n);if(Ne(c)&&Ne(u))return null}return gh(a,l,s),[a,l]}function Mc(t){return z(t)&&!t.isInline()}function _h(t,e,n,o,i,s){const a=xo(),l=new ar($n(t,e,i),$n(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function tl(){const t=$n("root",0,"element"),e=$n("root",0,"element");return new ar(t,e,0,"")}function yh(){return new el(new Set)}function Du(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=!vc&&(l||a==="beforeinput"||a==="compositionstart"||a==="compositionend"||a==="click"&&s&&s.detail===3||a==="drop"||a===void 0);let u,d,f,p;if(Z(t)&&!c)return t.clone();if(e===null)return null;if(u=e.anchorNode,d=e.focusNode,f=e.anchorOffset,p=e.focusOffset,(l||a===void 0)&&Z(t)&&!ms(n,u,d))return t.clone();const m=vh(u,f,d,p,n,t);if(m===null)return null;const[h,g]=m;return new ar(h,g,Z(t)?t.format:0,Z(t)?t.style:"")}function ee(){return xo()._selection}function Jr(){return Ke()._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"),hf(t)}}else{const u=t.isBackward(),d=u?s:i,f=d.getNode(),p=u?i:s,m=p.getNode();if(e.is(f)){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=p.offset;(n<=h&&o>0||n<h&&o<0)&&p.set(c,Math.max(0,h+o),"element")}}hf(t)}function hf(t){const e=t.anchor,n=e.offset,o=t.focus,i=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!z(s))return;const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text"),o.set(u.__key,d,"text")}return}if(z(s)){const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text")}}if(z(a)){const l=a.getChildrenSize(),c=i>=l,u=c?a.getChildAtIndex(l-1):a.getChildAtIndex(i);if(X(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,X(o)?(a=o.getTextContentSize(),l="text"):z(o)&&(a=o.getChildrenSize(),l="element")):i!==null&&(s=i.__key,X(i)?l="text":z(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 gf(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 Ch(t,e,n,o,i){try{t.setBaseAndExtent(e,n,o,i)}catch{}}function Ule(t,e,n,o,i,s,a){const l=o.anchorNode,c=o.focusNode,u=o.anchorOffset,d=o.focusOffset,f=document.activeElement;if(i.has(ph)&&f!==s||f!==null&&Vu(f))return;if(!Z(e))return void(t!==null&&ms(n,l,c)&&o.removeAllRanges());const p=e.anchor,m=e.focus,h=p.key,g=m.key,y=tr(n,h),C=tr(n,g),v=p.offset,_=m.offset,b=e.format,w=e.style,k=e.isCollapsed();let T=y,A=C,S=!1;if(p.type==="text"){T=zr(y);const V=p.getNode();S=V.getFormat()!==b||V.getStyle()!==w}else Z(t)&&t.anchor.type==="text"&&(S=!0);var E,D,x,$,B;if(m.type==="text"&&(A=zr(C)),T!==null&&A!==null&&(k&&(t===null||S||Z(t)&&(t.format!==b||t.style!==w))&&(E=b,D=w,x=v,$=h,B=performance.now(),sh=[E,D,x,$,B]),u!==v||d!==_||l!==T||c!==A||o.type==="Range"&&k||(f!==null&&s.contains(f)||i.has(Mle)||s.focus({preventScroll:!0}),p.type==="element"))){if(Ch(o,T,v,A,_),!i.has($le)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const V=Z(e)&&e.anchor.type==="element"?T.childNodes[v]||null:o.rangeCount>0?o.getRangeAt(0):null;if(V!==null){let I;if(V instanceof Text){const j=document.createRange();j.selectNode(V),I=j.getBoundingClientRect()}else I=V.getBoundingClientRect();(function(j,F,q){const Q=Fh(q),ae=Uu(Q);if(Q===null||ae===null)return;let{top:ne,bottom:ye}=F,re=0,ie=0,U=q;for(;U!==null;){const P=U===Q.body;if(P)re=0,ie=on(j).innerHeight;else{const we=U.getBoundingClientRect();re=we.top,ie=we.bottom}let se=0;if(ne<re?se=-(re-ne):ye>ie&&(se=ye-ie),se!==0)if(P)ae.scrollBy(0,se);else{const we=U.scrollTop;U.scrollTop+=se;const Re=U.scrollTop-we;ne-=Re,ye-=Re}if(P)break;U=hs(U)}})(n,I,s)}}Nc=!0}}function qle(t){let e=ee()||Jr();e===null&&(e=Ge().selectEnd()),e.insertNodes(t)}function Jl(t){let e=t;t.isCollapsed()||e.removeText();const n=ee();Z(n)&&(e=n),Z(e)||G(161);const o=e.anchor;let i=o.getNode(),s=o.offset;for(;!Yt(i);){const a=i;if([i,s]=Hle(i,s),a.is(i))break}return s}function Hle(t,e){const n=t.getParent();if(!n){const i=qe();return Ge().append(i),i.select(),[Ge(),0]}if(X(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(!z(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const i=new ar($n(t.__key,e,"element"),$n(t.__key,e,"element"),0,""),s=t.insertNewAfter(i);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function vf(t,e,n,o,i="decorators-and-blocks"){if(e==="move"&&o==="character"&&!t.isCollapsed()){const[d,f]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return f.set(d.key,d.offset,d.type),!0}const s=Yn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=i==="decorators-and-blocks";if(!jh(c)){for(const d of c){u=!1;const{origin:f}=d;if(!Ne(f)||f.isIsolated()||(c=d,!a||!f.isInline()))break}if(u)for(const d of Ku(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(An(d))d.origin.isInline()||(c=d);else{if(z(d.origin))continue;Ne(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&Ne(c.origin)&&c.origin.isKeyboardSelectable()){const d=yh();return d.add(c.origin.getKey()),vt(d),!0}return c=Xt(c),l&&ir(t.anchor,c),ir(t.focus,c),u||!a}let ct=null,ut=null,Dt=!1,Xl=!1,Ks=0;const _f={characterData:!0,childList:!0,subtree:!0};function us(){return Dt||ct!==null&&ct._readOnly}function lt(){Dt&&G(13)}function bh(){Ks>99&&G(14)}function xo(){return ct===null&&G(195,kh()),ct}function Ke(){return ut===null&&G(196,kh()),ut}function kh(){let t=0;const e=new Set,n=er.version;if(typeof window<"u")for(const i of document.querySelectorAll("[contenteditable]")){const s=rl(i);if(Iu(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 jle(){return ut}function yf(t,e,n){const o=e.__type,i=Th(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 Cf(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function wh(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 Wle(t){return $u(t,Ke()._nodes)}function $u(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(z(s)&&Array.isArray(a))for(let l=0;l<a.length;l++){const c=$u(a[l],e);s.append(c)}return s}function bf(t,e,n){const o=ct,i=Dt,s=ut;ct=e,Dt=!0,ut=t;try{return n()}finally{ct=o,Dt=i,ut=s}}function Hn(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=Dt,f=ut,p=t._updating,m=t._observer;let h=null;if(t._pendingEditorState=null,t._editorState=n,!i&&c&&m!==null){ut=t,ct=n,Dt=!1,t._updating=!0;try{const k=t._dirtyType,T=t._dirtyElements,A=t._dirtyLeaves;m.disconnect(),h=mle(s,n,t,k,T,A)}catch(k){if(k instanceof Error&&t._onError(k),Xl)throw k;return Ah(t,null,o,n),Om(t),t._dirtyType=2,Xl=!0,Hn(t,s),void(Xl=!1)}finally{m.observe(o,_f),t._updating=p,ct=u,Dt=d,ut=f}}n._readOnly||(n._readOnly=!0);const g=t._dirtyLeaves,y=t._dirtyElements,C=t._normalizedNodes,v=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,T){const A=k._decorators;let S=k._pendingDecorators||A;const E=T._nodeMap;let D;for(D in S)E.has(D)||(S===A&&(S=Mh(k)),delete S[D])}(t,n);const b=i?null:pn(on(t));if(t._editable&&b!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!v.has(Ble)){ut=t,ct=n;try{if(m!==null&&m.disconnect(),c||l===null||l.dirty){const k=t._blockCursorElement;k!==null&&Ic(k,t,o),Ule(a,l,t,b,v,o)}(function(k,T,A){let S=k._blockCursorElement;if(Z(A)&&A.isCollapsed()&&A.anchor.type==="element"&&T.contains(document.activeElement)){const E=A.anchor,D=E.getNode(),x=E.offset;let $=!1,B=null;if(x===D.getChildrenSize())ec(D.getChildAtIndex(x-1))&&($=!0);else{const V=D.getChildAtIndex(x);if(V!==null&&ec(V)){const I=V.getPreviousSibling();(I===null||ec(I))&&($=!0,B=k.getElementByKey(V.__key))}}if($){const V=k.getElementByKey(D.__key);return S===null&&(k._blockCursorElement=S=function(I){const j=I.theme,F=document.createElement("div");F.contentEditable="false",F.setAttribute("data-lexical-cursor","true");let q=j.blockCursor;if(q!==void 0){if(typeof q=="string"){const Q=Dm(q);q=j.blockCursor=Q}q!==void 0&&F.classList.add(...q)}return F}(k._config)),T.style.caretColor="transparent",void(B===null?V.appendChild(S):V.insertBefore(S,B))}}S!==null&&Ic(S,k,T)})(t,o,l)}finally{m!==null&&m.observe(o,_f),ut=f,ct=u}}h!==null&&function(k,T,A,S,E){const D=Array.from(k._listeners.mutation),x=D.length;for(let $=0;$<x;$++){const[B,V]=D[$];for(const I of V){const j=T.get(I);j!==void 0&&B(j,{dirtyLeaves:S,prevEditorState:E,updateTags:A})}}}(t,h,v,g,s),Z(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Hm,void 0);const w=t._pendingDecorators;w!==null&&(t._decorators=w,t._pendingDecorators=null,Li("decorator",t,!0,w)),function(k,T,A){const S=xf(T),E=xf(A);S!==E&&Li("textcontent",k,!0,E)}(t,e||s,n),Li("update",t,!0,{dirtyElements:y,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:C,prevEditorState:e||s,tags:v}),function(k,T){if(k._deferred=[],T.length!==0){const A=k._updating;k._updating=!0;try{for(let S=0;S<T.length;S++)T[S]()}finally{k._updating=A}}}(t,_),function(k){const T=k._updates;if(T.length!==0){const A=T.shift();if(A){const[S,E]=A;nl(k,S,E)}}}(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 kf(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),wh(t,a.tag)),l==null?nl(t,s,a):s()}}return o}function nl(t,e,n){const o=t._updateTags;let i,s=!1,a=!1;n!==void 0&&(i=n.onUpdate,wh(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=Sh(c||l),u=!0),c._flushSync=a;const d=ct,f=Dt,p=ut,m=t._updating;ct=c,Dt=!1,t._updating=!0,ut=t;const h=t._headless||t.getRootElement()===null;Lu(null);try{u&&(h?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(v,_){const b=v.getEditorState()._selection,w=pn(on(v));return Z(b)||b==null?Du(b,w,v,_):b.clone()}(t,n&&n.event||null));const y=t._compositionKey;e(),s=kf(t,s),function(v,_){const b=_.getEditorState()._selection,w=v._selection;if(Z(w)){const k=w.anchor,T=w.focus;let A;if(k.type==="text"&&(A=k.getNode(),A.selectionTransform(b,w)),T.type==="text"){const S=T.getNode();A!==S&&S.selectionTransform(b,w)}}}(c,t),t._dirtyType!==0&&(s?function(v,_){const b=_._dirtyLeaves,w=v._nodeMap;for(const k of b){const T=w.get(k);X(T)&&T.isAttached()&&T.isSimpleText()&&!T.isUnmergeable()&&Y1(T)}}(c,t):function(v,_){const b=_._dirtyLeaves,w=_._dirtyElements,k=v._nodeMap,T=uo(),A=new Map;let S=b,E=S.size,D=w,x=D.size;for(;E>0||x>0;){if(E>0){_._dirtyLeaves=new Set;for(const $ of S){const B=k.get($);X(B)&&B.isAttached()&&B.isSimpleText()&&!B.isUnmergeable()&&Y1(B),B!==void 0&&Cf(B,T)&&yf(_,B,A),b.add($)}if(S=_._dirtyLeaves,E=S.size,E>0){Ks++;continue}}_._dirtyLeaves=new Set,_._dirtyElements=new Map,D.delete("root")&&D.set("root",!0);for(const $ of D){const B=$[0],V=$[1];if(w.set(B,V),!V)continue;const I=k.get(B);I!==void 0&&Cf(I,T)&&yf(_,I,A)}S=_._dirtyLeaves,E=S.size,D=_._dirtyElements,x=D.size,Ks++}_._dirtyLeaves=b,_._dirtyElements=w}(c,t),kf(t),function(v,_,b,w){const k=v._nodeMap,T=_._nodeMap,A=[];for(const[S]of w){const E=T.get(S);E!==void 0&&(E.isAttached()||(z(E)&&Bm(E,S,k,T,A,w),k.has(S)||w.delete(S),A.push(S)))}for(const S of A)T.delete(S);for(const S of b){const E=T.get(S);E===void 0||E.isAttached()||(k.has(S)||b.delete(S),T.delete(S))}}(l,c,t._dirtyLeaves,t._dirtyElements)),y!==t._compositionKey&&(c._flushSync=!0);const C=c._selection;if(Z(C)){const v=c._nodeMap,_=C.anchor.key,b=C.focus.key;v.get(_)!==void 0&&v.get(b)!==void 0||G(19)}else Ft(C)&&C._nodes.size===0&&(c._selection=null)}catch(y){return y instanceof Error&&t._onError(y),t._pendingEditorState=l,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void Hn(t)}finally{ct=d,Dt=f,ut=p,t._updating=m,Ks=0}t._dirtyType!==0||t._deferred.length>0||function(y,C){const v=C.getEditorState()._selection,_=y._selection;if(_!==null){if(_.dirty||!_.is(v))return!0}else if(v!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,Hn(t)):u&&Xle(()=>{Hn(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function Rt(t,e,n){ut===t&&n===void 0?e():nl(t,e,n)}class Oi{constructor(e,n,o){H(this,"element");H(this,"before");H(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"&&(ji||Rr||Hi);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=wf(n,o);s.push(i);const a=wf(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 wf(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 Ht extends dn{constructor(n){super(n);H(this,"__first");H(this,"__last");H(this,"__size");H(this,"__format");H(this,"__style");H(this,"__indent");H(this,"__dir");H(this,"__textFormat");H(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 ele[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=Ke()._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(X(o)&&n.push(o),z(o)){const i=o.getAllTextNodes();n.push(...i)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;z(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;z(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 z(a)&&a.getLastDescendant()||a||null}const s=o[n];return z(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(),z(a)&&s!==i-1&&!a.isInline()&&(n+=Co)}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(),z(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=U1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=Et[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return _a(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){lt();const i=ee();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(X(u)||z(u))return u.select(0,0)}else if(!(n!==void 0&&n!==l||o!==void 0&&o!==l)){const u=this.getLastChild();if(X(u)||z(u))return u.select()}}s===void 0&&(s=l),a===void 0&&(a=l);const c=this.__key;return Z(i)?(i.anchor.set(c,s,"element"),i.focus.set(c,a,"element"),i.dirty=!0,i):_h(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!==""?U1[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 f=null,p=s-o+i.length;if(n!==0)if(n===s)f=this.getLastChild();else{const h=this.getChildAtIndex(n);h!==null&&(f=h.getPreviousSibling())}if(o>0){let h=f===null?this.getFirstChild():f.getNextSibling();for(let g=0;g<o;g++){h===null&&G(100);const y=h.getNextSibling(),C=h.__key;Wo(h.getWritable()),u.push(C),h=y}}let m=f;for(const h of i){m!==null&&h.is(m)&&(f=m=m.getPreviousSibling());const g=h.getWritable();g.__parent===l&&p--,Wo(g);const y=h.__key;if(m===null)a.__first=y,g.__prev=null;else{const C=m.getWritable();C.__next=y,g.__prev=C.__key}h.__key===l&&G(76),g.__parent=l,c.push(y),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 g=m.getWritable();h.__prev=m.__key,g.__next=d.__key}else h.__prev=null}if(a.__size=p,u.length){const h=ee();if(Z(h)){const g=new Set(u),y=new Set(c),{anchor:C,focus:v}=h;Ef(C,g,y)&&va(C,C.getNode(),this,f,d),Ef(v,g,y)&&va(v,v.getNode(),this,f,d),p!==0||this.canBeEmpty()||St(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 z(t){return t instanceof Ht}function Ef(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 Eh extends dn{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ne(t){return t instanceof Eh}class ds extends Ht{constructor(){super("root");H(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new ds}getTopLevelElementOrThrow(){G(51)}getTextContent(){const n=this.__cachedText;return!us()&&Ke()._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)z(s)||Ne(s)||G(282);return super.splice(n,o,i)}static importJSON(n){return Ge().updateFromJSON(n)}collapseAtStart(){return!0}}function Qe(t){return t instanceof ds}function Sh(t){return new ol(new Map(t._nodeMap))}function Bu(){return new ol(new Map([["root",new ds]]))}function xh(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&G(130,n.name),z(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=xh(i[s]);o.push(a)}}return e}class ol{constructor(e,n){H(this,"_nodeMap");H(this,"_selection");H(this,"_flushSync");H(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 bf(n&&n.editor||null,this,e)}clone(e){const n=new ol(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return bf(null,this,()=>({root:xh(Ge())}))}}class Mu extends Ht{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class fs extends Ht{static getType(){return"paragraph"}static clone(e){return new fs(e.__key)}createDOM(e){const n=document.createElement("p"),o=Nr(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:Zle,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 qe().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=qe();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||X(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 Zle(t){const e=qe();return t.style&&(e.setFormat(t.style.textAlign),qu(t,e)),{node:e}}function qe(){return vn(new fs)}function ps(t){return t instanceof fs}const Ae=0,bi=1,Kle=4;function Ah(t,e,n,o){const i=t._keyToDOMMap;i.clear(),t._editorState=Bu(),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 Gle(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:i}=ll(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 dn&&a!==dn?a:void 0}}return e}function Yle(t){const e=t||{},n=jle(),o=e.theme||{},i=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=Bu(),l=e.namespace||(i!==null?i._config.namespace:Vh()),c=e.editorState,u=[ds,So,ls,cs,fs,Mu,...e.nodes||[]],{onError:d,html:f}=e,p=e.editable===void 0||e.editable;let m;if(t===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let g=0;g<u.length;g++){let y=u[g],C=null,v=null;if(typeof y!="function"){const w=y;y=w.replace,C=w.with,v=w.withKlass||null}ll(y);const _=y.getType(),b=Gle(y);m.set(_,{exportDOM:f&&f.export?f.export.get(y):void 0,klass:y,replace:C,replaceWithKlass:v,sharedNodeState:cle(u[g]),transforms:b})}}const h=new er(a,i,m,{disableEvents:s,namespace:l,theme:o},d||console.error,function(g,y){const C=new Map,v=new Set,_=b=>{Object.keys(b).forEach(w=>{let k=C.get(w);k===void 0&&(k=[],C.set(w,k)),k.push(b[w])})};return g.forEach(b=>{const w=b.klass.importDOM;if(w==null||v.has(w))return;v.add(w);const k=w.call(b.klass);k!==null&&_(k)}),y&&_(y),C}(m,f?f.import:void 0),p,t);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),h}class er{constructor(e,n,o,i,s,a,l,c){H(this,"_headless");H(this,"_parentEditor");H(this,"_rootElement");H(this,"_editorState");H(this,"_pendingEditorState");H(this,"_compositionKey");H(this,"_deferred");H(this,"_keyToDOMMap");H(this,"_updates");H(this,"_updating");H(this,"_listeners");H(this,"_commands");H(this,"_nodes");H(this,"_decorators");H(this,"_pendingDecorators");H(this,"_config");H(this,"_dirtyType");H(this,"_cloneNotNeeded");H(this,"_dirtyLeaves");H(this,"_dirtyElements");H(this,"_normalizedNodes");H(this,"_updateTags");H(this,"_observer");H(this,"_key");H(this,"_onError");H(this,"_htmlConversions");H(this,"_window");H(this,"_editable");H(this,"_blockCursorElement");H(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=Vh(),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=Mf(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=Mf(a.getEditorState()),u=[];for(const d of l){const f=c.get(d);f&&u.push(f)}u.length!==0&&a.update(()=>{for(const d of u)for(const f of d.keys()){const p=rt(f);p&&p.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 oe(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=Nr(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,Ah(this,n,e,i),n!==null&&(this._config.disableEvents||Tle(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Uu(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,Om(this),this._updateTags.add(Mi),Hn(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;Tc.set(l,u);const d=pa.get(u)??0;d<1&&u.addEventListener("selectionchange",dh),pa.set(u,d+1),l.__lexicalEditor=c;const f=uh(l);for(let p=0;p<Ac.length;p++){const[m,h]=Ac[p],g=typeof h=="function"?y=>{of(y)||(nf(y),(c.isEditable()||m==="click")&&h(y,c))}:y=>{if(of(y))return;nf(y);const C=c.isEditable();switch(m){case"cut":return C&&oe(c,Tu,y);case"copy":return oe(c,Xa,y);case"paste":return C&&oe(c,Su,y);case"dragstart":return C&&oe(c,nh,y);case"dragover":return C&&oe(c,oh,y);case"dragend":return C&&oe(c,kle,y);case"focus":return C&&oe(c,Sle,y);case"blur":return C&&oe(c,xle,y);case"drop":return C&&oe(c,th,y)}};l.addEventListener(m,g),f.push(()=>{l.removeEventListener(m,g)})}}(e,this),o!=null&&e.classList.add(...o)}else this._window=null,this._updateTags.add(Mi),Hn(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=Sh(e),o._selection=e._selection?e._selection.clone():null),Lm(this);const i=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;i===null||i.isEmpty()||(a!=null&&s.add(a),Hn(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||Hn(this)}parseEditorState(e,n){return function(o,i,s){const a=Bu(),l=ct,c=Dt,u=ut,d=i._dirtyElements,f=i._dirtyLeaves,p=i._cloneNotNeeded,m=i._dirtyType;i._dirtyElements=new Map,i._dirtyLeaves=new Set,i._cloneNotNeeded=new Set,i._dirtyType=0,ct=a,Dt=!1,ut=i,Lu(null);try{const h=i._nodes;$u(o.root,h),s&&s(),a._readOnly=!0}catch(h){h instanceof Error&&i._onError(h)}finally{i._dirtyElements=d,i._dirtyLeaves=f,i._cloneNotNeeded=p,i._dirtyType=m,ct=l,Dt=c,ut=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return Hn(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,i,s){o._updating?o._updates.push([i,s]):nl(o,i,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),Rt(this,()=>{const i=ee(),s=Ge();i!==null?i.dirty||vt(i.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),nce("focus"),oce(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=pn(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()}}}H(er,"version");er.version="0.38.1+prod.esm";let Lc=null;function Lu(t){Lc=t}let Jle=1;function Th(t,e){const n=Ou(t,e);return n===void 0&&G(30,e),n}function Ou(t,e){return t._nodes.get(e)}const Xle=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Sf(t){return Ne(Ur(t))}function Vu(t){const e=document.activeElement;if(!tt(e))return!1;const n=e.nodeName;return Ne(Ur(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&rl(e)==null)}function ms(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!Vu(e)&&Nh(e)===t}catch{return!1}}function Iu(t){return t instanceof er}function Nh(t){let e=t;for(;e!=null;){const n=rl(e);if(Iu(n))return n;e=hs(e)}return null}function rl(t){return t?t.__lexicalEditor:null}function jo(t){return Qa(t)||t.isToken()}function Un(t){return jo(t)||t.isSegmented()}function eo(t){return Xr(t)&&t.nodeType===3}function Dh(t){return Xr(t)&&t.nodeType===9}function zr(t){let e=t;for(;e!=null;){if(eo(e))return e;e=e.firstChild}return null}function _a(t,e,n){const o=Et[e];if(n!==null&&(t&o)===(n&o))return t;let i=t^o;return e==="subscript"?i&=~Et.superscript:e==="superscript"?i&=~Et.subscript:e==="lowercase"?(i&=~Et.uppercase,i&=~Et.capitalize):e==="uppercase"?(i&=~Et.lowercase,i&=~Et.capitalize):e==="capitalize"&&(i&=~Et.lowercase,i&=~Et.uppercase),i}function $h(t){return X(t)||mo(t)||Ne(t)}function Qle(t,e){const n=function(){const a=Lc;return Lc=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);lt(),bh();const o=Ke(),i=xo(),s=""+Jle++;i._nodeMap.set(s,t),z(t)?o._dirtyElements.set(s,!0):o._dirtyLeaves.add(s),o._cloneNotNeeded.add(s),o._dirtyType=1,t.__key=s}function Wo(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 ya(t){bh(),ma(t)&&G(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=xo(),i=Ke(),s=o._nodeMap,a=i._dirtyElements;n!==null&&function(c,u,d){let f=c;for(;f!==null;){if(d.has(f))return;const p=u.get(f);if(p===void 0)break;d.set(f,!1),f=p.__parent}}(n,s,a);const l=e.__key;i._dirtyType=1,z(t)?a.set(l,!0):i._dirtyLeaves.add(l)}function ft(t){lt();const e=Ke(),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 uo(){return us()?null:Ke()._compositionKey}function rt(t,e){const n=(e||xo())._nodeMap.get(t);return n===void 0?null:n}function Bh(t,e){const n=il(t,Ke());return n!==void 0?rt(n,e):null}function il(t,e){return t[`__lexicalKey_${e._key}`]}function Ur(t,e){let n=t;for(;n!=null;){const o=Bh(n,e);if(o!==null)return o;n=hs(n)}return null}function Mh(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function xf(t){return t.read(()=>Ge().getTextContent())}function Ge(){return Lh(xo())}function Lh(t){return t._nodeMap.get("root")}function vt(t){lt();const e=xo();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function wr(t){const e=Ke(),n=function(o,i){let s=o;for(;s!=null;){const a=il(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 Oh(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Pu(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function Vh(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Ih(t){return eo(t)?t.nodeValue:null}function Fu(t,e,n){const o=pn(on(e));if(o===null)return;const i=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(i!==null){let l=Ih(i);const c=Ur(i);if(l!==null&&X(c)){if(l===Ya&&n){const u=n.length;l=n,s=u,a=u}l!==null&&Ru(c,l,s,a,t)}}}function Ru(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]===Ya&&(l=e.slice(0,-1));const c=s.getTextContent();if(i||l!==c){if(l===""){if(ft(null),Hi||Rr||ji)s.remove();else{const g=Ke();setTimeout(()=>{g.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=Jr(),f=s.getTextContentSize(),p=uo(),m=s.getKey();if(s.isToken()||p!==null&&m===p&&!a||Z(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===f&&!s.canInsertTextAfter()&&!a))return void s.markDirty();const h=ee();if(!Z(h)||n===null||o===null)return void Af(s,l,h);if(h.setTextNodeRange(s,n,s,o),s.isSegmented()){const g=Ye(s.getTextContent());s.replace(g),s=g}Af(s,l,h)}}}function Af(t,e,n){if(t.setTextContent(e),Z(n)){const o=t.getKey();for(const i of["anchor","focus"]){const s=n[i];s.type==="text"&&s.key===o&&(s.offset=go(t,s.offset,"clamp"))}}}function Rs(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function ece(t,e){return Rs(t,e,"altKey")&&Rs(t,e,"ctrlKey")&&Rs(t,e,"shiftKey")&&Rs(t,e,"metaKey")}function Me(t,e,n){return ece(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const zn={ctrlKey:!ln,metaKey:ln},Tf={altKey:ln,ctrlKey:!ln};function Nf(t){return t.key==="Backspace"}function Df(t){return Me(t,"a",zn)}function tce(t){const e=Ge();if(Z(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 Nr(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=Dm(i);return n[e]=s,s}return i}function zu(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),f=d==="destroyed"&&i==="created";(d===void 0||f)&&u.set(a,f?"updated":i)}function $f(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 Oc(t,e){const n=t.offset;if(t.type==="element")return $f(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?$f(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):i}}return null}function Ph(t){const e=on(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function oe(t,e,n){return function(o,i,s){const a=Pu(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 f=d[l];if(f!==void 0){const p=Array.from(f),m=p.length;let h=!1;if(Rt(u,()=>{for(let g=0;g<m;g++)if(p[g](s,o))return void(h=!0)}),h)return h}}}return!1}(t,e,n)}function sl(t){return!Qe(t)&&!t.isLastChild()&&!t.isInline()}function tr(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 Pc(e)?e.host:e}function Fh(t){return Dh(t)?t:tt(t)?t.ownerDocument:null}function nce(t){lt(),Ke()._updateTags.add(t)}function oce(t){lt(),Ke()._deferred.push(t)}function Vc(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Uu(t){const e=Fh(t);return e?e.defaultView:null}function on(t){const e=t._window;return e===null&&G(78),e}function rce(t){let e=t.getParentOrThrow();for(;e!==null;){if(St(e))return e;e=e.getParentOrThrow()}return e}function St(t){return Qe(t)||z(t)&&t.isShadowRoot()}function vn(t){const e=Ke(),n=t.getType(),o=Ou(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 Ql(t,e){!Qe(t.getParent())||z(e)||Ne(e)||G(99)}function ice(t){const e=rt(t);return e===null&&G(63,t),e}function ec(t){return(Ne(t)||z(t)&&!t.canBeEmpty())&&!t.isInline()}function Ic(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function pn(t){return gn?(t||window).getSelection():null}function sce(t){const e=Uu(t);return e?e.getSelection():null}function Rh(t){return tt(t)&&t.tagName==="A"}function tt(t){return Xr(t)&&t.nodeType===1}function Xr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Pc(t){return Xr(t)&&t.nodeType===11}function Fc(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 Yt(t){if(Ne(t)&&!t.isInline())return!0;if(!z(t)||St(t))return!1;const e=t.getFirstChild(),n=e===null||mo(e)||X(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function al(){return Ke()}const Bf=new WeakMap,ace=new Map;function Mf(t){if(!t._readOnly&&t.isEmpty())return ace;t._readOnly||G(192);let e=Bf.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),Bf.set(t,e)),e}function zh(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function lce(t){return(e=zh(t))[fh]=!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 cce(t){return t.__lexicalUnmanaged===!0}function ki(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==dn[e]}function ll(t){const e=q1 in t.prototype?t.prototype[q1]():void 0,n=function(a){if(!(a===dn||a.prototype instanceof dn)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{er.version&&(c=JSON.parse(er.version))}catch{}G(290,a.name,l,c)}return a===Eh||a===Ht||a===dn}(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=>(Lu(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 uce(t){const e=al();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},dce={next:"previous",previous:"next"};class Hu{constructor(e){H(this,"origin");this.origin=e}[Symbol.iterator](){return Uh({hasNext:qr,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 Ji extends Hu{constructor(){super(...arguments);H(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:mn(n,this.direction)}getParentCaret(n="root"){return mt(ju(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Qr(this.direction);return mt(this.getNodeAtCaret(),n)||mn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Ji&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const fce={root:Qe,shadowRoot:St};function Qr(t){return dce[t]}function ju(t,e="root"){return fce[e](t)?null:t}class nr extends Hu{constructor(){super(...arguments);H(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 z(this.origin)?mn(this.origin,this.direction):null}getParentCaret(n="root"){return mt(ju(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Qr(this.direction);return mt(this.getNodeAtCaret(),n)||mn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof nr&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof nr||n instanceof or)&&this.direction===n.direction&&this.origin.is(n.origin)}}class or extends Hu{constructor(n,o){super(n);H(this,"type","text");H(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:rr(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return mt(ju(this.getParentAtCaret(),n),this.direction)}getFlipped(){return rr(this.origin,Qr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof or&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof nr||n instanceof or)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return mt(this.origin,this.direction)}}function ho(t){return t instanceof or}function qr(t){return t instanceof nr}function An(t){return t instanceof Ji}const pce={next:class extends or{constructor(){super(...arguments);H(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends or{constructor(){super(...arguments);H(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},mce={next:class extends nr{constructor(){super(...arguments);H(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends nr{constructor(){super(...arguments);H(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},hce={next:class extends Ji{constructor(){super(...arguments);H(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Ji{constructor(){super(...arguments);H(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 mce[e](t):null}function rr(t,e,n){return t?new pce[e](t,go(t,n)):null}function go(t,e,n="error"){const o=t.getTextContentSize();let i=e==="next"?o:e==="previous"?0:e;return(i<0||i>o)&&(n!=="clamp"&&Tm(284,String(e),String(o),t.getKey()),i=i<0?0:o),i}function Lf(t,e){return new vce(t,e)}function mn(t,e){return z(t)?new hce[e](t):null}function gce(t){return t&&t.getChildCaret()||t}function Wu(t){return t&&gce(t.getAdjacentCaret())}class Zu{constructor(e,n,o){H(this,"type","node-caret-range");H(this,"direction");H(this,"anchor");H(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 Zu(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=i=>{const s=this[i].getLatest();return ho(s)?function(a,l){const{direction:c,origin:u}=a,d=go(u,l==="focus"?Qr(c):c);return Lf(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[Lf(i,s.offset-i.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=ho(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),i=ho(o),s=a=>a.isSameNodeCaret(o)?null:Wu(a)||a.getParentCaret(e);return Uh({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 vce{constructor(e,n){H(this,"type","slice");H(this,"caret");H(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 rr(e.setTextContent(s.slice(0,o)+s.slice(i)),n,o)}}function Ku(t){return bo(t,mt(Ge(),t.direction))}function _ce(t){return bo(t,t)}function bo(t,e){return t.direction!==e.direction&&G(265),new Zu(t,e,t.direction)}function Uh(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 qh(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 Hh(n)}}function Hh(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 Of(t){return z(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]=Of(t);o;i=o,o=o.getParent())n.set(o,i);for(let[o,i]=Of(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"}):((z(s)||zs(t,s))&&(z(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 Yn(t,e){const{type:n,key:o,offset:i}=t,s=ice(t.key);return n==="text"?(X(s)||G(266,s.getType(),o),rr(s,e,i)):(z(s)||G(267,s.getType(),o),bce(s,t.offset,e))}function ir(t,e){const{origin:n,direction:o}=e,i=o==="next";ho(e)?t.set(n.getKey(),e.offset,"text"):qr(e)?X(n)?t.set(n.getKey(),go(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(i?1:0),"element"):(An(e)&&z(n)||G(268),t.set(n.getKey(),i?0:n.getChildrenSize(),"element"))}function yce(t){const e=ee(),n=Z(e)?e:tl();return Ys(n,t),vt(n),n}function Ys(t,e){ir(t.anchor,e.anchor),ir(t.focus,e.focus)}function Vf(t){const{anchor:e,focus:n}=t,o=Yn(e,"next"),i=Yn(n,"next"),s=qh(o,i)<=0?"next":"previous";return bo(Hr(o,s),Hr(i,s))}function Gu(t){const{direction:e,origin:n}=t,o=mt(n,Qr(e)).getNodeAtCaret();return o?mt(o,e):mn(n.getParentOrThrow(),e)}function If(t,e="root"){const n=[t];for(let o=An(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(Gu(o));return n}function tc(t){return!!t&&t.origin.isAttached()}function Cce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let i=e;const s=Wh(t,o),a=If(s.anchor,n),l=If(s.focus.getFlipped(),n),c=new Set,u=[];for(const h of s.iterNodeCarets(n))if(An(h))c.add(h.origin.getKey());else if(qr(h)){const{origin:g}=h;z(g)&&!c.has(g.getKey())||u.push(g)}for(const h of u)h.remove();for(const h of s.getTextSlices()){if(!h)continue;const{origin:g}=h.caret,y=g.getTextContentSize(),C=Gu(mt(g,o)),v=g.getMode();if(Math.abs(h.distance)===y&&i==="removeEmptySlices"||v==="token"&&h.distance!==0)C.remove();else if(h.distance!==0){i="removeEmptySlices";let _=h.removeTextSlice();const b=h.caret.origin;if(v==="segmented"){const w=_.origin,k=Ye(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());C.replaceOrInsert(k),_=rr(k,o,_.offset)}b.is(a[0].origin)&&(a[0]=_),b.is(l[0].origin)&&(l[0]=_.getFlipped())}}let d,f;for(const h of a)if(tc(h)){d=Xt(h);break}for(const h of l)if(tc(h)){f=Xt(h);break}const p=function(h,g,y){if(!h||!g)return null;const C=h.getParentAtCaret(),v=g.getParentAtCaret();if(!C||!v)return null;const _=C.getParents().reverse();_.push(C);const b=v.getParents().reverse();b.push(v);const w=Math.min(_.length,b.length);let k;for(k=0;k<w&&_[k]===b[k];k++);const T=(E,D)=>{let x;for(let $=k;$<E.length;$++){const B=E[$];if(St(B))return;!x&&D(B)&&(x=B)}return x},A=T(_,Yt),S=A&&T(b,E=>y.has(E.getKey())&&Yt(E));return A&&S?[A,S]:null}(d,f,c);if(p){const[h,g]=p;mn(h,"previous").splice(0,g.getChildren()),g.remove()}const m=[d,f,...a,...l].find(tc);if(m)return _ce(Hr(Xt(m),t.direction));G(269,JSON.stringify(a.map(h=>h.origin.__key)))}function Xt(t){const e=function(i){let s=i;for(;An(s);){const a=Wu(s);if(!An(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(X(e.origin))return ho(e)?e:rr(e.origin,n,n);const o=e.getAdjacentCaret();return qr(o)&&X(o.origin)?rr(o.origin,n,Qr(n)):e}function jh(t){return ho(t)&&t.offset!==go(t.origin,t.direction)}function Hr(t,e){return t.direction===e?t:t.getFlipped()}function Wh(t,e){return t.direction===e?t:bo(Hr(t.focus,e),Hr(t.anchor,e))}function bce(t,e,n){let o=mn(t,"next");for(let i=0;i<e;i++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return Hr(o,n)}const Rc=new Map;function Zh(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 Pf(t){let e=Rc.get(t);return e===void 0&&(e=Zh(t),Rc.set(t,e)),e}function Kh(t){const e=al().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function Gh(t){return Kh(Qe(t)?t:t.getParentOrThrow())}function Ff(t){const e=Gh(t);return e!==null&&e.direction==="rtl"}function Yh(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!Un(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[f,p]=Bc(t),m=l.is(c),h=e.is(a?c:l),g=e.is(a?l:c);let y,C=0;m?(C=f>p?p:f,y=f>p?f:p):h?(C=a?p:f,y=void 0):g&&(C=0,y=a?f:p);const v=e.__text.slice(C,y);v!==e.__text&&(n==="clone"&&(e=lce(e)),e.__text=v)}}return e}function kce(t){const e=t.getStyle(),n=Zh(e);Rc.set(e,n)}function wce(t,e){const n=t.getFormatType(),o=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),o!==e.getIndent()&&e.setIndent(o)}function nc(t,e,n=wce){if(t===null)return;const o=t.getStartEndPoints(),i=new Map;let s=null;if(o){const[a,l]=o;s=tl(),s.anchor.set(a.key,a.offset,a.type),s.focus.set(l.key,l.offset,l.type);const c=en(a.getNode(),Yt),u=en(l.getNode(),Yt);z(c)&&i.set(c.getKey(),c),z(u)&&i.set(u.getKey(),u)}for(const a of t.getNodes())if(z(a)&&Yt(a))i.set(a.getKey(),a);else if(o===null){const l=en(a,Yt);z(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(ee())&&vt(s)}function Jh(t){const e=Xh(t);return e!==null&&e.writingMode==="vertical-rl"}function Xh(t){const e=t.anchor.getNode();return z(e)?Kh(e):Gh(e)}function Rf(t,e){let n=Jh(t)?!e:e;Qh(t)&&(n=!n);const o=Yn(t.focus,n?"previous":"next");if(jh(o))return!1;for(const i of Ku(o)){if(An(i))return!i.origin.isInline();if(!z(i.origin)){if(Ne(i.origin))return!0;break}}return!1}function Ece(t,e,n,o){t.modify(e?"extend":"move",n,o)}function Qh(t){const e=Xh(t);return e!==null&&e.direction==="rtl"}function zf(t,e,n){const o=Qh(t);let i;i=Jh(t)||o?!n:n,Ece(t,e,i,"character")}function Sce(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 Yu=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,xce=Yu&&"documentMode"in document?document.documentMode:null;!(!Yu||!("InputEvent"in window)||xce)&&"getTargetRanges"in new window.InputEvent("input");function eg(...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 Ace=Yu;function Jn(t,...e){const n=eg(...e);n.length>0&&t.classList.add(...n)}function Ju(t,...e){const n=eg(...e);n.length>0&&t.classList.remove(...n)}function Tce(t){return t?t.getAdjacentCaret():null}function Nce(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function Dce(t){const e=en(t,n=>z(n)&&!n.isInline());return z(e)||Sce(4,t.__key),e}function Ro(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function fo(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 zc(t){let e=1,n=t.getParent();for(;n!=null;){if(De(n)){const o=n.getParent();if(he(o)){e++,n=o.getParent();continue}fo(40)}return e}return e}function Uc(t){let e=t.getParent();he(e)||fo(40);let n=e;for(;n!==null;)n=n.getParent(),he(n)&&(e=n);return e}function tg(t){let e=[];const n=t.getChildren().filter(De);for(let o=0;o<n.length;o++){const i=n[o],s=i.getFirstChild();he(s)?e=e.concat(tg(s)):e.push(i)}return e}function wn(t){return De(t)&&he(t.getFirstChild())}function Uf(t){return jt().append(t)}function ng(t,e){return De(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function qf(t){const e=ee();if(e!==null){let n=e.getNodes();if(Z(e)){const i=e.getStartEndPoints();i===null&&fo(143);const[s]=i,a=s.getNode(),l=a.getParent();if(St(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=qe();a.append(u),n=u.select().getNodes()}}else if(ng(a,n)){const c=$t(t);if(St(l)){a.replace(c);const u=jt();z(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(De(a)){const u=a.getParentOrThrow();sr(c,u.getChildren()),u.replace(c)}return}}const o=new Set;for(let i=0;i<n.length;i++){const s=n[i];if(z(s)&&s.isEmpty()&&!De(s)&&!o.has(s.getKey())){Hf(s,t);continue}let a=$h(s)?s.getParent():De(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(he(a)){if(!o.has(l)){const c=$t(t);sr(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(St(c)&&!o.has(l)){o.add(l),Hf(a,t);break}a=c}}}}}function sr(t,e){t.splice(t.getChildrenSize(),0,e)}function Hf(t,e){if(he(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),i=jt();let s;if(sr(i,t.getChildren()),he(n)&&e===n.getListType())n.append(i),he(o)&&e===o.getListType()&&(sr(n,o.getChildren()),o.remove()),s=n;else if(he(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(i),s=o;else{const a=$t(e);a.append(i),t.replace(a),s=a}return i.setFormat(t.getFormatType()),i.setIndent(t.getIndent()),t.remove(),s}function Xu(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&wn(n)&&wn(o)&&(Xu(n.getFirstChild(),o.getFirstChild()),o.remove());const i=e.getChildren();i.length>0&&t.append(...i),e.remove()}function $ce(){const t=ee();if(Z(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(ng(o,n))e.add(Uc(o));else for(let i=0;i<n.length;i++){const s=n[i];if($h(s)){const a=Nce(s,Ao);a!=null&&e.add(Uc(a))}}for(const i of e){let s=i;const a=tg(i);for(const l of a){const c=qe().setTextStyle(t.style).setTextFormat(t.format);sr(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&ir(t.anchor,Xt(mn(c,"next"))),l.__key===t.focus.key&&ir(t.focus,Xt(mn(c,"next"))),l.remove()}i.remove()}}}function og(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())De(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),he(o.getFirstChild())||n++)}function Bce(t){const e=new Set;if(wn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),i=t.getPreviousSibling();if(wn(o)&&wn(i)){const s=i.getFirstChild();if(he(s)){s.append(t);const a=o.getFirstChild();he(a)&&(sr(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(wn(o)){const s=o.getFirstChild();if(he(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(wn(i)){const s=i.getFirstChild();he(s)&&s.append(t)}else if(he(n)){const s=jt().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=$t(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 Mce(t){if(wn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(he(n?n.getParent():void 0)&&De(n)&&he(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=jt(),l=$t(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=jt(),u=$t(s);c.append(u),sr(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function Lce(){const t=ee();if(!Z(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!De(e)||e.getChildrenSize()!==0)return!1;const n=Uc(e),o=e.getParent();he(o)||fo(40);const i=o.getParent();let s;if(St(i))s=qe(),n.insertAfter(s);else{if(!De(i))return!1;s=jt(),i.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=$t(o.getListType());if(De(s)){const c=jt();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||!De(u)&&!he(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 Ao=class extends Ht{constructor(n=1,o=void 0,i){super(i);H(this,"__value");H(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();he(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Ht,importDOM:{li:()=>({conversion:Oce,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();!he(d)||d.getListType()!=="check"||he(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=[],f=[],p=c.list,m=p?p.listitem:void 0;let h;if(p&&p.nested&&(h=p.nested.listitem),m!==void 0&&d.push(...ba(m)),p){const g=u.getParent(),y=he(g)&&g.getListType()==="check",C=u.getChecked();y&&!C||f.push(p.listitemUnchecked),y&&C||f.push(p.listitemChecked),y&&d.push(C?p.listitemChecked:p.listitemUnchecked)}if(h!==void 0){const g=ba(h);u.getChildren().some(y=>he(y))?d.push(...g):f.push(...g)}f.length>0&&Ju(l,...f),d.length>0&&Jn(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=Pf(c.__textStyle);for(const f in d)l.style.setProperty(`--listitem-marker-${f}`,d[f]);if(u)for(const f in Pf(u.__textStyle))f in d||l.style.removeProperty(`--listitem-marker-${f}`)}(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(z(i)&&this.canMergeWith(i)){const s=i.getChildren();this.append(...s),i.remove()}else super.append(i)}return this}replace(n,o){if(De(n))return super.replace(n);this.setIndent(0);const i=this.getParentOrThrow();if(!he(i))return n;if(i.__first===this.getKey())i.insertBefore(n);else if(i.__last===this.getKey())i.insertAfter(n);else{const s=$t(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&&(z(n)||fo(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(he(i)||fo(39),De(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(i.insertAfter(n,o),s.length!==0){const a=$t(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&&wn(o)&&wn(i)&&(Xu(o.getFirstChild(),i.getFirstChild()),i.remove())}insertNewAfter(n,o=!0){const i=jt().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(i,o),i}collapseAtStart(n){const o=qe();this.getChildren().forEach(l=>o.append(l));const i=this.getParentOrThrow(),s=i.getParentOrThrow(),a=De(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 he(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(;De(o);)o=o.getParentOrThrow().getParentOrThrow(),i++;return i}setIndent(n){typeof n!="number"&&fo(117),(n=Math.floor(n))>=0||fo(199);let o=this.getIndent();for(;o!==n;)o<n?(Bce(this),o++):(Mce(this),o--);return this}canInsertAfter(n){return De(n)}canReplaceWith(n){return De(n)}canMergeWith(n){return De(n)||ps(n)}extractWithChild(n,o){if(!Z(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 $t("bullet")}canMergeWhenEmpty(){return!0}};function Oce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return jf(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 jf(n.children[0])}const e=t.getAttribute("aria-checked");return{node:jt(e==="true"||e!=="false"&&void 0)}}function jf(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:jt(t.hasAttribute("checked"))}}function jt(t){return vn(new Ao(void 0,t))}function De(t){return t instanceof Ao}let lr=class extends Ht{constructor(n="number",o=1,i){super(i);H(this,"__tag");H(this,"__start");H(this,"__listType");const s=Ice[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();he(i)&&o.getListType()===i.getListType()&&Xu(o,i)})(n),og(n)},extends:Ht,importDOM:{ol:()=>({conversion:Zf,priority:0}),ul:()=>({conversion:Zf,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,Wf(s,n.theme,this),s}updateDOM(n,o,i){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Wf(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];De(l)||(s===i&&(s=[...i]),s[a]=jt().append(!z(l)||he(l)||l.isInline()?l:Ye(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return De(n)}};function Wf(t,e,n){const o=[],i=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=zc(n)-1,c=l%a.length,u=a[c],d=s[n.__tag];let f;const p=s.nested,m=s.checklist;if(p!==void 0&&p.list&&(f=p.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(f!==void 0){const h=ba(f);l>1?o.push(...h):i.push(...h)}}i.length>0&&Ju(t,...i),o.length>0&&Jn(t,...o)}function Vce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(De(o)){e.push(o);const i=o.getChildren();i.length>1&&i.forEach(s=>{he(s)&&e.push(Uf(s))})}else e.push(Uf(o))}return e}function Zf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=$t("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)?$t("check"):$t("bullet")),{after:Vce,node:n}}const Ice={ol:"number",ul:"bullet"};function $t(t="number",e=1){return vn(new lr(t,e))}function he(t){return t instanceof lr}const Pce=pe("UPDATE_LIST_START_COMMAND"),rg=pe("INSERT_UNORDERED_LIST_COMMAND"),ig=pe("INSERT_ORDERED_LIST_COMMAND"),Fce=pe("REMOVE_LIST_COMMAND");function Rce(t){return gs(t.registerCommand(ig,()=>(qf("number"),!0),bi),t.registerCommand(Pce,e=>{const{listNodeKey:n,newStart:o}=e,i=rt(n);return!!he(i)&&(i.getListType()==="number"&&(i.setStart(o),og(i)),!0)},bi),t.registerCommand(rg,()=>(qf("bullet"),!0),bi),t.registerCommand(Fce,()=>($ce(),!0),bi),t.registerCommand(Ki,()=>Lce(),bi),t.registerNodeTransform(Ao,e=>{const n=e.getFirstChild();if(n){if(X(n)){const o=n.getStyle(),i=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==i&&e.setTextFormat(i)}}else{const o=ee();Z(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(So,e=>{const n=e.getParent();if(De(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),i=e.getFormat();o===n.getTextStyle()&&i===n.getTextFormat()||n.setTextStyle(o).setTextFormat(i)}}))}function zce(t){const e=n=>{const o=n.getParent();if(he(n.getFirstChild())||!he(o))return;const i=en(n,s=>De(s)&&he(s.getParent())&&De(s.getPreviousSibling()));if(i===null&&n.getIndent()>0)n.setIndent(0);else if(De(i)){const s=i.getPreviousSibling();if(De(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;he(d);){const f=d.getLastChild();if(!De(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(he(l)){const c=zc(l);c+1<zc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(lr,n=>{const o=[n];for(;o.length>0;){const i=o.shift();if(he(i)){for(const s of i.getChildren())if(De(s)){e(s);const a=s.getFirstChild();he(a)&&o.push(a)}}}})}function Uce(t,e){const n=Dh(e)?e.body.childNodes:e.childNodes;let o=[];const i=[];for(const s of n)if(!ag.has(s.nodeName)){const a=lg(s,t,i,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof Mu&&a.insertAfter(fn());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(i),o}function qce(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=Ge().getChildren();for(let i=0;i<o.length;i++)sg(t,o[i],n,e);return n.innerHTML}function sg(t,e,n,o=null){let i=o===null||e.isSelected(o);const s=z(e)&&e.excludeFromCopy("html");let a=e;o!==null&&X(e)&&(a=Yh(o,e,"clone"));const l=z(a)?a.getChildren():[],c=Ou(t,a.getType());let u;u=c&&c.exportDOM!==void 0?c.exportDOM(t,a):a.exportDOM(t);const{element:d,after:f}=u;if(!d)return!1;const p=document.createDocumentFragment();for(let m=0;m<l.length;m++){const h=l[m],g=sg(t,h,p,o);!i&&z(e)&&g&&e.extractWithChild(h,o,"html")&&(i=!0)}if(i&&!s){if((tt(d)||Pc(d))&&d.append(p),n.append(d),f){const m=f.call(a,d);m&&(Pc(d)?d.replaceChildren(m):d.replaceWith(m))}}else n.append(p);return i}const ag=new Set(["STYLE","SCRIPT"]);function lg(t,e,n,o,i=new Map,s){let a=[];if(ag.has(t.nodeName))return a;let l=null;const c=function(h,g){const{nodeName:y}=h,C=g._htmlConversions.get(y.toLowerCase());let v=null;if(C!==void 0)for(const _ of C){const b=_(h);b!==null&&(v===null||(v.priority||0)<=(b.priority||0))&&(v=b)}return v!==null?v.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[,g]of i)if(l=g(l,s),!l)break;l&&a.push(...Array.isArray(h)?h:[l])}u.forChild!=null&&i.set(t.nodeName,u.forChild)}const f=t.childNodes;let p=[];const m=(l==null||!St(l))&&(l!=null&&Mc(l)||o);for(let h=0;h<f.length;h++)p.push(...lg(f[h],e,n,m,new Map(i),l));return d!=null&&(p=d(p)),Ca(t)&&(p=Hce(t,p,m?()=>{const h=new Mu;return n.push(h),h}:qe)),l==null?p.length>0?a=a.concat(p):Ca(t)&&function(h){return h.nextSibling==null||h.previousSibling==null?!1:Fc(h.nextSibling)&&Fc(h.previousSibling)}(t)&&(a=a.concat(fn())):z(l)&&l.append(...p),a}function Hce(t,e,n){const o=t.style.textAlign,i=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if(Mc(l))o&&!l.getFormat()&&l.setFormat(o),i.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&Mc(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 jce(t,e=ee()){return e==null&&ka(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?"":qce(t,e)}function Wce(t,e=ee()){return e==null&&ka(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(Zce(t,e))}function Kf(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 Gf(n,Kce(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 Gf(n,Uce(n,l),e)}catch(l){console.error(l)}const a=s||t.getData("text/uri-list");if(a!=null)if(Z(e)){const l=a.split(/(\r?\n|\t)/);l[l.length-1]===""&&l.pop();for(let c=0;c<l.length;c++){const u=ee();if(Z(u)){const d=l[c];d===`
|
|
30
30
|
`||d===`\r
|
|
31
|
-
`?u.insertParagraph():d===" "?u.insertNodes([Yr()]):u.insertText(d)}}}else e.insertRawText(a)}function Gf(t,e,n){t.dispatchCommand(hle,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(Z(o)&&o.isCollapsed()){const i=o.anchor;let s=null;const a=Yn(i,"previous");if(a)if(ho(a))s=a.origin;else{const l=bo(a,mn(Ge(),"next").getFlipped());for(const c of l){if(X(c.origin)){s=c.origin;break}if(z(c.origin)&&!c.origin.isInline())break}}if(s&&X(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 cg(t,e,n,o=[]){let i=e===null||n.isSelected(e);const s=z(n)&&n.excludeFromCopy("html");let a=n;e!==null&&X(a)&&(a=Yh(e,a,"clone"));const l=z(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&ka(58,f.name),z(u)){const p=d.children;Array.isArray(p)||ka(59,f.name)}return d}(a);X(a)&&a.getTextContentSize()===0&&(i=!1);for(let u=0;u<l.length;u++){const d=l[u],f=cg(t,e,d,c.children);!i&&z(n)&&f&&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 Zce(t,e){const n=[],o=Ge().getChildren();for(let i=0;i<o.length;i++)cg(t,e,o[i],n);return{namespace:t._config.namespace,nodes:n}}function Kce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],i=Wle(o);X(i)&&kce(i),e.push(i)}return e}let _r=null;async function Yf(t,e,n){if(_r!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(Jf(t,e,n))})});const o=t.getRootElement(),i=t._window||window,s=i.document,a=pn(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 f=t.registerCommand(Xa,p=>(Ro(p,ClipboardEvent)&&(f(),_r!==null&&(i.clearTimeout(_r),_r=null),u(Jf(t,p,n))),!0),Kle);_r=i.setTimeout(()=>{f(),_r=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function Jf(t,e,n){if(n===void 0){const i=pn(t._window),s=ee();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=Gce(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(Yce(o,n),!0)}const ug=[["text/html",jce],["application/x-lexical-editor",Wce]];function Gce(t=ee()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=al();for(const[o,i]of ug){const s=i(n,t);s!==null&&(e[o]=s)}}return e}function Yce(t,e){for(const[n]of ug)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function Jce(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,f,p,m]=c;t.update(()=>{const h=ee();if(Z(h)){const g=h.anchor;let y=g.getNode(),C=0,v=0;if(X(y)&&u>=0&&d>=0&&(C=u,v=u+d,h.setTextNodeRange(y,C,y,v)),C===v&&f===""||(h.insertRawText(f),y=g.getNode()),X(y)){C=p,v=p+m;const _=y.getTextContentSize();C=C>_?_:C,v=v>_?_:v,h.setTextNodeRange(y,C,y,v)}o.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function Xf(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 cr=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Xce=cr&&"documentMode"in document?document.documentMode:null,Qce=cr&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),eue=!(!cr||!("InputEvent"in window)||Xce)&&"getTargetRanges"in new window.InputEvent("input"),tue=cr&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Qf=cr&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,nue=cr&&/^(?=.*Chrome).*/i.test(navigator.userAgent),oue=cr&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Qce&&!nue,ep=pe("DRAG_DROP_PASTE_FILE");let Qu=class dg extends Ht{static getType(){return"quote"}static clone(e){return new dg(e.__key)}createDOM(e){const n=document.createElement("blockquote");return Jn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:rue,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 ed().updateFromJSON(e)}insertNewAfter(e,n){const o=qe(),i=this.getDirection();return o.setDirection(i),this.insertAfter(o,n),o}collapseAtStart(){const e=qe();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function ed(){return vn(new Qu)}function qc(t){return t instanceof Qu}let cl=class fg extends Ht{constructor(n,o){super(o);H(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new fg(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];Jn(i,a)}return i}updateDOM(n,o,i){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:yr,priority:0}),h2:n=>({conversion:yr,priority:0}),h3:n=>({conversion:yr,priority:0}),h4:n=>({conversion:yr,priority:0}),h5:n=>({conversion:yr,priority:0}),h6:n=>({conversion:yr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&tp(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>tp(n)?{conversion:o=>({node:zo("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 zo(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?qe():zo(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),i===0&&!this.isEmpty()&&n){const c=qe();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?qe():zo(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function tp(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function yr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=zo(e),t.style!==null&&(qu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function rue(t){const e=ed();return t.style!==null&&(e.setFormat(t.style.textAlign),qu(t,e)),{node:e}}function zo(t="h1"){return vn(new cl(t))}function pg(t){return t instanceof cl}function Us(t){let e=null;if(Ro(t,DragEvent)?e=t.dataTransfer:Ro(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 np(t){const e=ee();if(!Z(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=>z(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 op(t){const e=Ur(t);return Ne(e)}function oc(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function iue(t){return gs(t.registerCommand(jm,e=>{const n=ee();return!!Ft(n)&&(n.clear(),!0)},Te),t.registerCommand(Ho,e=>{const n=ee();return Z(n)?(n.deleteCharacter(e),!0):!!Ft(n)&&(n.deleteNodes(),!0)},Te),t.registerCommand(Gi,e=>{const n=ee();return!!Z(n)&&(n.deleteWord(e),!0)},Te),t.registerCommand(Yi,e=>{const n=ee();return!!Z(n)&&(n.deleteLine(e),!0)},Te),t.registerCommand(Tr,e=>{const n=ee();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)Kf(o,n,t);else if(Z(n)){const i=e.data;return i&&n.insertText(i),!0}}return!0},Te),t.registerCommand(Sc,()=>{const e=ee();return!!Z(e)&&(e.removeText(),!0)},Te),t.registerCommand(Jt,e=>{const n=ee();return!!Z(n)&&(n.formatText(e),!0)},Te),t.registerCommand(ble,e=>{const n=ee();if(!Z(n)&&!Ft(n))return!1;const o=n.getNodes();for(const i of o){const s=en(i,a=>z(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},Te),t.registerCommand(xr,e=>{const n=ee();return!!Z(n)&&(n.insertLineBreak(e),!0)},Te),t.registerCommand(Ki,()=>{const e=ee();return!!Z(e)&&(e.insertParagraph(),!0)},Te),t.registerCommand(yle,()=>(qle([Yr()]),!0),Te),t.registerCommand(Cle,()=>np(e=>{const n=e.getIndent();e.setIndent(n+1)}),Te),t.registerCommand(Q1,()=>np(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),Te),t.registerCommand(Km,e=>{const n=ee();if(Ft(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(Z(n)){const o=Oc(n.focus,!0);if(!e.shiftKey&&Ne(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},Te),t.registerCommand(Gm,e=>{const n=ee();if(Ft(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(Z(n)){if(function(i){const s=i.focus;return s.key==="root"&&s.offset===Ge().getChildrenSize()}(n))return e.preventDefault(),!0;const o=Oc(n.focus,!1);if(!e.shiftKey&&Ne(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},Te),t.registerCommand(Zm,e=>{const n=ee();if(Ft(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),Ff(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!Z(n))return!1;if(Rf(n,!0)){const o=e.shiftKey;return e.preventDefault(),zf(n,o,!0),!0}return!1},Te),t.registerCommand(Wm,e=>{const n=ee();if(Ft(n)){const i=n.getNodes();if(i.length>0)return e.preventDefault(),Ff(i[0])?i[0].selectPrevious():i[0].selectNext(0,0),!0}if(!Z(n))return!1;const o=e.shiftKey;return!!Rf(n,!1)&&(e.preventDefault(),zf(n,o,!1),!0)},Te),t.registerCommand(Jm,e=>{if(op(e.target))return!1;const n=ee();if(Z(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=Dce(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(Q1,void 0);if(Qf&&navigator.language==="ko-KR")return!1}else if(!Ft(n))return!1;return e.preventDefault(),t.dispatchCommand(Ho,!0)},Te),t.registerCommand(Qm,e=>{if(op(e.target))return!1;const n=ee();return!(!Z(n)&&!Ft(n))&&(e.preventDefault(),t.dispatchCommand(Ho,!1))},Te),t.registerCommand(fa,e=>{const n=ee();if(!Z(n))return!1;if(oc(n),e!==null){if((Qf||tue||oue)&&eue)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(xr,!1)}return t.dispatchCommand(Ki,void 0)},Te),t.registerCommand(Xm,()=>{const e=ee();return!!Z(e)&&(t.blur(),!0)},Te),t.registerCommand(th,e=>{const[,n]=Us(e);if(n.length>0){const i=Xf(e.clientX,e.clientY);if(i!==null){const{offset:s,node:a}=i,l=Ur(a);if(l!==null){const c=tl();if(X(l))c.anchor.set(l.getKey(),s,"text"),c.focus.set(l.getKey(),s,"text");else{const d=l.getParentOrThrow().getKey(),f=l.getIndexWithinParent()+1;c.anchor.set(d,f,"element"),c.focus.set(d,f,"element")}const u=aa(c);vt(u)}t.dispatchCommand(ep,n)}return e.preventDefault(),!0}const o=ee();return!!Z(o)},Te),t.registerCommand(nh,e=>{const[n]=Us(e),o=ee();return!(n&&!Z(o))},Te),t.registerCommand(oh,e=>{const[n]=Us(e),o=ee();if(n&&!Z(o))return!1;const i=Xf(e.clientX,e.clientY);if(i!==null){const s=Ur(i.node);Ne(s)&&e.preventDefault()}return!0},Te),t.registerCommand(xc,()=>(tce(),!0),Te),t.registerCommand(Xa,e=>(Yf(t,Ro(e,ClipboardEvent)?e:null),!0),Te),t.registerCommand(Au,e=>(async function(n,o){await Yf(o,Ro(n,ClipboardEvent)?n:null),o.update(()=>{const i=ee();Z(i)?i.removeText():Ft(i)&&i.getNodes().forEach(s=>s.remove())})}(e,t),!0),Te),t.registerCommand(Su,e=>{const[,n,o]=Us(e);return n.length>0&&!o?(t.dispatchCommand(ep,n),!0):Xr(e.target)&&Vu(e.target)?!1:ee()!==null&&(function(i,s){i.preventDefault(),s.update(()=>{const a=ee(),l=Ro(i,InputEvent)||Ro(i,KeyboardEvent)?null:i.clipboardData;l!=null&&a!==null&&Kf(l,a,s)},{tag:Dle})}(e,t),!0)},Te),t.registerCommand(Ym,e=>{const n=ee();return Z(n)&&oc(n),!1},Te),t.registerCommand(eh,e=>{const n=ee();return Z(n)&&oc(n),!1},Te))}var sue={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
31
|
+
`?u.insertParagraph():d===" "?u.insertNodes([Yr()]):u.insertText(d)}}}else e.insertRawText(a)}function Gf(t,e,n){t.dispatchCommand(hle,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(Z(o)&&o.isCollapsed()){const i=o.anchor;let s=null;const a=Yn(i,"previous");if(a)if(ho(a))s=a.origin;else{const l=bo(a,mn(Ge(),"next").getFlipped());for(const c of l){if(X(c.origin)){s=c.origin;break}if(z(c.origin)&&!c.origin.isInline())break}}if(s&&X(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 cg(t,e,n,o=[]){let i=e===null||n.isSelected(e);const s=z(n)&&n.excludeFromCopy("html");let a=n;e!==null&&X(a)&&(a=Yh(e,a,"clone"));const l=z(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&ka(58,f.name),z(u)){const p=d.children;Array.isArray(p)||ka(59,f.name)}return d}(a);X(a)&&a.getTextContentSize()===0&&(i=!1);for(let u=0;u<l.length;u++){const d=l[u],f=cg(t,e,d,c.children);!i&&z(n)&&f&&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 Zce(t,e){const n=[],o=Ge().getChildren();for(let i=0;i<o.length;i++)cg(t,e,o[i],n);return{namespace:t._config.namespace,nodes:n}}function Kce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],i=Wle(o);X(i)&&kce(i),e.push(i)}return e}let _r=null;async function Yf(t,e,n){if(_r!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(Jf(t,e,n))})});const o=t.getRootElement(),i=t._window||window,s=i.document,a=pn(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 f=t.registerCommand(Xa,p=>(Ro(p,ClipboardEvent)&&(f(),_r!==null&&(i.clearTimeout(_r),_r=null),u(Jf(t,p,n))),!0),Kle);_r=i.setTimeout(()=>{f(),_r=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function Jf(t,e,n){if(n===void 0){const i=pn(t._window),s=ee();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=Gce(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(Yce(o,n),!0)}const ug=[["text/html",jce],["application/x-lexical-editor",Wce]];function Gce(t=ee()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=al();for(const[o,i]of ug){const s=i(n,t);s!==null&&(e[o]=s)}}return e}function Yce(t,e){for(const[n]of ug)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function Jce(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,f,p,m]=c;t.update(()=>{const h=ee();if(Z(h)){const g=h.anchor;let y=g.getNode(),C=0,v=0;if(X(y)&&u>=0&&d>=0&&(C=u,v=u+d,h.setTextNodeRange(y,C,y,v)),C===v&&f===""||(h.insertRawText(f),y=g.getNode()),X(y)){C=p,v=p+m;const _=y.getTextContentSize();C=C>_?_:C,v=v>_?_:v,h.setTextNodeRange(y,C,y,v)}o.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function Xf(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 cr=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Xce=cr&&"documentMode"in document?document.documentMode:null,Qce=cr&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),eue=!(!cr||!("InputEvent"in window)||Xce)&&"getTargetRanges"in new window.InputEvent("input"),tue=cr&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Qf=cr&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,nue=cr&&/^(?=.*Chrome).*/i.test(navigator.userAgent),oue=cr&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Qce&&!nue,ep=pe("DRAG_DROP_PASTE_FILE");let Qu=class dg extends Ht{static getType(){return"quote"}static clone(e){return new dg(e.__key)}createDOM(e){const n=document.createElement("blockquote");return Jn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:rue,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 ed().updateFromJSON(e)}insertNewAfter(e,n){const o=qe(),i=this.getDirection();return o.setDirection(i),this.insertAfter(o,n),o}collapseAtStart(){const e=qe();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function ed(){return vn(new Qu)}function qc(t){return t instanceof Qu}let cl=class fg extends Ht{constructor(n,o){super(o);H(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new fg(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];Jn(i,a)}return i}updateDOM(n,o,i){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:yr,priority:0}),h2:n=>({conversion:yr,priority:0}),h3:n=>({conversion:yr,priority:0}),h4:n=>({conversion:yr,priority:0}),h5:n=>({conversion:yr,priority:0}),h6:n=>({conversion:yr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&tp(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>tp(n)?{conversion:o=>({node:zo("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 zo(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?qe():zo(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),i===0&&!this.isEmpty()&&n){const c=qe();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?qe():zo(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function tp(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function yr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=zo(e),t.style!==null&&(qu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function rue(t){const e=ed();return t.style!==null&&(e.setFormat(t.style.textAlign),qu(t,e)),{node:e}}function zo(t="h1"){return vn(new cl(t))}function pg(t){return t instanceof cl}function Us(t){let e=null;if(Ro(t,DragEvent)?e=t.dataTransfer:Ro(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 np(t){const e=ee();if(!Z(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=>z(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 op(t){const e=Ur(t);return Ne(e)}function oc(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function iue(t){return gs(t.registerCommand(jm,e=>{const n=ee();return!!Ft(n)&&(n.clear(),!0)},Ae),t.registerCommand(Ho,e=>{const n=ee();return Z(n)?(n.deleteCharacter(e),!0):!!Ft(n)&&(n.deleteNodes(),!0)},Ae),t.registerCommand(Gi,e=>{const n=ee();return!!Z(n)&&(n.deleteWord(e),!0)},Ae),t.registerCommand(Yi,e=>{const n=ee();return!!Z(n)&&(n.deleteLine(e),!0)},Ae),t.registerCommand(Ar,e=>{const n=ee();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)Kf(o,n,t);else if(Z(n)){const i=e.data;return i&&n.insertText(i),!0}}return!0},Ae),t.registerCommand(Sc,()=>{const e=ee();return!!Z(e)&&(e.removeText(),!0)},Ae),t.registerCommand(Jt,e=>{const n=ee();return!!Z(n)&&(n.formatText(e),!0)},Ae),t.registerCommand(ble,e=>{const n=ee();if(!Z(n)&&!Ft(n))return!1;const o=n.getNodes();for(const i of o){const s=en(i,a=>z(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},Ae),t.registerCommand(xr,e=>{const n=ee();return!!Z(n)&&(n.insertLineBreak(e),!0)},Ae),t.registerCommand(Ki,()=>{const e=ee();return!!Z(e)&&(e.insertParagraph(),!0)},Ae),t.registerCommand(yle,()=>(qle([Yr()]),!0),Ae),t.registerCommand(Cle,()=>np(e=>{const n=e.getIndent();e.setIndent(n+1)}),Ae),t.registerCommand(Q1,()=>np(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),Ae),t.registerCommand(Km,e=>{const n=ee();if(Ft(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(Z(n)){const o=Oc(n.focus,!0);if(!e.shiftKey&&Ne(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},Ae),t.registerCommand(Gm,e=>{const n=ee();if(Ft(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(Z(n)){if(function(i){const s=i.focus;return s.key==="root"&&s.offset===Ge().getChildrenSize()}(n))return e.preventDefault(),!0;const o=Oc(n.focus,!1);if(!e.shiftKey&&Ne(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},Ae),t.registerCommand(Zm,e=>{const n=ee();if(Ft(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),Ff(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!Z(n))return!1;if(Rf(n,!0)){const o=e.shiftKey;return e.preventDefault(),zf(n,o,!0),!0}return!1},Ae),t.registerCommand(Wm,e=>{const n=ee();if(Ft(n)){const i=n.getNodes();if(i.length>0)return e.preventDefault(),Ff(i[0])?i[0].selectPrevious():i[0].selectNext(0,0),!0}if(!Z(n))return!1;const o=e.shiftKey;return!!Rf(n,!1)&&(e.preventDefault(),zf(n,o,!1),!0)},Ae),t.registerCommand(Jm,e=>{if(op(e.target))return!1;const n=ee();if(Z(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=Dce(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(Q1,void 0);if(Qf&&navigator.language==="ko-KR")return!1}else if(!Ft(n))return!1;return e.preventDefault(),t.dispatchCommand(Ho,!0)},Ae),t.registerCommand(Qm,e=>{if(op(e.target))return!1;const n=ee();return!(!Z(n)&&!Ft(n))&&(e.preventDefault(),t.dispatchCommand(Ho,!1))},Ae),t.registerCommand(fa,e=>{const n=ee();if(!Z(n))return!1;if(oc(n),e!==null){if((Qf||tue||oue)&&eue)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(xr,!1)}return t.dispatchCommand(Ki,void 0)},Ae),t.registerCommand(Xm,()=>{const e=ee();return!!Z(e)&&(t.blur(),!0)},Ae),t.registerCommand(th,e=>{const[,n]=Us(e);if(n.length>0){const i=Xf(e.clientX,e.clientY);if(i!==null){const{offset:s,node:a}=i,l=Ur(a);if(l!==null){const c=tl();if(X(l))c.anchor.set(l.getKey(),s,"text"),c.focus.set(l.getKey(),s,"text");else{const d=l.getParentOrThrow().getKey(),f=l.getIndexWithinParent()+1;c.anchor.set(d,f,"element"),c.focus.set(d,f,"element")}const u=aa(c);vt(u)}t.dispatchCommand(ep,n)}return e.preventDefault(),!0}const o=ee();return!!Z(o)},Ae),t.registerCommand(nh,e=>{const[n]=Us(e),o=ee();return!(n&&!Z(o))},Ae),t.registerCommand(oh,e=>{const[n]=Us(e),o=ee();if(n&&!Z(o))return!1;const i=Xf(e.clientX,e.clientY);if(i!==null){const s=Ur(i.node);Ne(s)&&e.preventDefault()}return!0},Ae),t.registerCommand(xc,()=>(tce(),!0),Ae),t.registerCommand(Xa,e=>(Yf(t,Ro(e,ClipboardEvent)?e:null),!0),Ae),t.registerCommand(Tu,e=>(async function(n,o){await Yf(o,Ro(n,ClipboardEvent)?n:null),o.update(()=>{const i=ee();Z(i)?i.removeText():Ft(i)&&i.getNodes().forEach(s=>s.remove())})}(e,t),!0),Ae),t.registerCommand(Su,e=>{const[,n,o]=Us(e);return n.length>0&&!o?(t.dispatchCommand(ep,n),!0):Xr(e.target)&&Vu(e.target)?!1:ee()!==null&&(function(i,s){i.preventDefault(),s.update(()=>{const a=ee(),l=Ro(i,InputEvent)||Ro(i,KeyboardEvent)?null:i.clipboardData;l!=null&&a!==null&&Kf(l,a,s)},{tag:Dle})}(e,t),!0)},Ae),t.registerCommand(Ym,e=>{const n=ee();return Z(n)&&oc(n),!1},Ae),t.registerCommand(eh,e=>{const n=ee();return Z(n)&&oc(n),!1},Ae))}var sue={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 v(_){return _ instanceof c?new c(_.type,v(_.content),_.alias):Array.isArray(_)?_.map(v):_.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++s}),v.__id},clone:function v(_,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]=v(_[A],b));return w;case"Array":return k=l.util.objId(_),b[k]?b[k]:(w=[],b[k]=w,_.forEach(function(T,S){w[S]=v(T,b)}),w);default:return _}},getLanguage:function(v){for(;v;){var _=i.exec(v.className);if(_)return _[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,_){v.className=v.className.replace(RegExp(i,"gi"),""),v.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 v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(v){var _=document.getElementsByTagName("script");for(var b in _)if(_[b].src==v)return _[b]}return null}},isActive:function(v,_,b){for(var w="no-"+_;v;){var k=v.classList;if(k.contains(_))return!0;if(k.contains(w))return!1;v=v.parentElement}return!!b}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(v,_){var b=l.util.clone(l.languages[v]);for(var w in _)b[w]=_[w];return b},insertBefore:function(v,_,b,w){w=w||l.languages;var k=w[v],A={};for(var T in k)if(k.hasOwnProperty(T)){if(T==_)for(var S in b)b.hasOwnProperty(S)&&(A[S]=b[S]);b.hasOwnProperty(T)||(A[T]=k[T])}var E=w[v];return w[v]=A,l.languages.DFS(l.languages,function(D,x){x===E&&D!=v&&(this[D]=A)}),A},DFS:function v(_,b,w,k){k=k||{};var A=l.util.objId;for(var T in _)if(_.hasOwnProperty(T)){b.call(_,T,_[T],w||T);var S=_[T],E=l.util.type(S);E==="Object"&&!k[A(S)]?(k[A(S)]=!0,v(S,b,null,k)):E==="Array"&&!k[A(S)]&&(k[A(S)]=!0,v(S,b,T,k))}}},plugins:{},highlightAll:function(v,_){l.highlightAllUnder(document,v,_)},highlightAllUnder:function(v,_,b){var w={callback:b,container:v,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(v,_,b){var w=l.util.getLanguage(v),k=l.languages[w];l.util.setLanguage(v,w);var A=v.parentElement;A&&A.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(A,w);var T=v.textContent,S={element:v,language:w,grammar:k,code:T};function E(x){S.highlightedCode=x,l.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,l.hooks.run("after-highlight",S),l.hooks.run("complete",S),b&&b.call(S.element)}if(l.hooks.run("before-sanity-check",S),A=S.element.parentElement,A&&A.nodeName.toLowerCase()==="pre"&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!S.code){l.hooks.run("complete",S),b&&b.call(S.element);return}if(l.hooks.run("before-highlight",S),!S.grammar){E(l.util.encode(S.code));return}if(_&&o.Worker){var D=new Worker(l.filename);D.onmessage=function(x){E(x.data)},D.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else E(l.highlight(S.code,S.grammar,S.language))},highlight:function(v,_,b){var w={code:v,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(v,_){var b=_.rest;if(b){for(var w in b)_[w]=b[w];delete _.rest}var k=new f;return p(k,k.head,v),d(v,k,_,k.head,0),h(k)},hooks:{all:{},add:function(v,_){var b=l.hooks.all;b[v]=b[v]||[],b[v].push(_)},run:function(v,_){var b=l.hooks.all[v];if(!(!b||!b.length))for(var w=0,k;k=b[w++];)k(_)}},Token:c};o.Prism=l;function c(v,_,b,w){this.type=v,this.content=_,this.alias=b,this.length=(w||"").length|0}c.stringify=function v(_,b){if(typeof _=="string")return _;if(Array.isArray(_)){var w="";return _.forEach(function(E){w+=v(E,b)}),w}var k={type:_.type,content:v(_.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 T="";for(var S in k.attributes)T+=" "+S+'="'+(k.attributes[S]||"").replace(/"/g,""")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+T+">"+k.content+"</"+k.tag+">"};function u(v,_,b,w){v.lastIndex=_;var k=v.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(v,_,b,w,k,A){for(var T in b)if(!(!b.hasOwnProperty(T)||!b[T])){var S=b[T];S=Array.isArray(S)?S:[S];for(var E=0;E<S.length;++E){if(A&&A.cause==T+","+E)return;var D=S[E],x=D.inside,$=!!D.lookbehind,B=!!D.greedy,V=D.alias;if(B&&!D.pattern.global){var I=D.pattern.toString().match(/[imsuy]*$/)[0];D.pattern=RegExp(D.pattern.source,I+"g")}for(var j=D.pattern||D,F=w.next,q=k;F!==_.tail&&!(A&&q>=A.reach);q+=F.value.length,F=F.next){var Q=F.value;if(_.length>v.length)return;if(!(Q instanceof c)){var ae=1,ne;if(B){if(ne=u(j,q,v,$),!ne||ne.index>=v.length)break;var U=ne.index,ye=ne.index+ne[0].length,re=q;for(re+=F.value.length;U>=re;)F=F.next,re+=F.value.length;if(re-=F.value.length,q=re,F.value instanceof c)continue;for(var ie=F;ie!==_.tail&&(re<ye||typeof ie.value=="string");ie=ie.next)ae++,re+=ie.value.length;ae--,Q=v.slice(q,re),ne.index-=q}else if(ne=u(j,0,Q,$),!ne)continue;var U=ne.index,P=ne[0],se=Q.slice(0,U),we=Q.slice(U+P.length),Re=q+Q.length;A&&Re>A.reach&&(A.reach=Re);var Ce=F.prev;se&&(Ce=p(_,Ce,se),q+=se.length),m(_,Ce,ae);var R=new c(T,x?l.tokenize(P,x):P,V,P);if(F=p(_,Ce,R),we&&p(_,F,we),ae>1){var le={cause:T+","+E,reach:Re};d(v,_,b,F.prev,q,le),A&&le.reach>A.reach&&(A.reach=le.reach)}}}}}}function f(){var v={value:null,prev:null,next:null},_={value:null,prev:v,next:null};v.next=_,this.head=v,this.tail=_,this.length=0}function p(v,_,b){var w=_.next,k={value:b,prev:_,next:w};return _.next=k,w.prev=k,v.length++,k}function m(v,_,b){for(var w=_.next,k=0;k<b&&w!==v.tail;k++)w=w.next;_.next=w,w.prev=_,v.length-=k}function h(v){for(var _=[],b=v.head.next;b!==v.tail;)_.push(b.value),b=b.next;return _}if(!o.document)return o.addEventListener&&(l.disableWorkerMessageHandler||o.addEventListener("message",function(v){var _=JSON.parse(v.data),b=_.language,w=_.code,k=_.immediateClose;o.postMessage(l.highlight(w,l.languages[b],b)),k&&o.close()},!1)),l;var g=l.util.currentScript();g&&(l.filename=g.src,g.hasAttribute("data-manual")&&(l.manual=!0));function y(){l.manual||l.highlightAll()}if(!l.manual){var C=document.readyState;C==="loading"||C==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return l}(e);t.exports&&(t.exports=n),typeof Nt<"u"&&(Nt.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(/&/,"&"))}),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(g,y){return"✖ Error "+g+" while fetching file: "+y},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",f="pre[data-src]:not(["+l+'="'+u+'"]):not(['+l+'="'+c+'"])';function p(g,y,C){var v=new XMLHttpRequest;v.open("GET",g,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?y(v.responseText):v.status>=400?C(i(v.status,v.statusText)):C(s))},v.send(null)}function m(g){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(y){var C=Number(y[1]),v=y[2],_=y[3];return v?_?[C,Number(_)]:[C,void 0]:[C,C]}}n.hooks.add("before-highlightall",function(g){g.selector+=", "+f}),n.hooks.add("before-sanity-check",function(g){var y=g.element;if(y.matches(f)){g.code="",y.setAttribute(l,c);var C=y.appendChild(document.createElement("CODE"));C.textContent=o;var v=y.getAttribute("data-src"),_=g.language;if(_==="none"){var b=(/\.(\w+)$/.exec(v)||[,"none"])[1];_=a[b]||b}n.util.setLanguage(C,_),n.util.setLanguage(y,_);var w=n.plugins.autoloader;w&&w.loadLanguages(_),p(v,function(k){y.setAttribute(l,u);var A=m(y.getAttribute("data-range"));if(A){var T=k.split(/\r\n?|\n/g),S=A[0],E=A[1]==null?T.length:A[1];S<0&&(S+=T.length),S=Math.max(0,Math.min(S-1,T.length)),E<0&&(E+=T.length),E=Math.max(0,Math.min(E,T.length)),k=T.slice(S,E).join(`
|
|
39
|
-
`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(S+1))}C.textContent=k,n.highlightElement(C)},function(k){y.setAttribute(l,d),C.textContent=k})}}),n.plugins.fileHighlight={highlight:function(y){for(var C=(y||document).querySelectorAll(f),v=0,_;_=C[v++];)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)}}()})(sue);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(/&/,"&"))});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(f){d!==f&&(t.languages.markdown[d].inside.content.inside[f]=t.languages.markdown[f])})}),t.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function f(p){if(!(!p||typeof p=="string"))for(var m=0,h=p.length;m<h;m++){var g=p[m];if(g.type!=="code"){f(g.content);continue}var y=g.content[1],C=g.content[3];if(y&&C&&y.type==="code-language"&&C.type==="code-block"&&typeof y.content=="string"){var v=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");v=(/[a-z][\w-]*/i.exec(v)||[""])[0].toLowerCase();var _="language-"+v;C.alias?typeof C.alias=="string"?C.alias=[C.alias,_]:C.alias.push(_):C.alias=[_]}}}f(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var f="",p=0,m=d.classes.length;p<m;p++){var h=d.classes[p],g=/language-(.+)/.exec(h);if(g){f=g[1];break}}var y=t.languages[f];if(y)d.content=t.highlight(u(d.content),y,f);else if(f&&f!=="none"&&t.plugins.autoloader){var C="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=C,t.plugins.autoloader.loadLanguages(f,function(){var v=document.getElementById(C);v&&(v.innerHTML=t.highlight(v.textContent,t.languages[f],f))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function u(d){var f=d.replace(a,"");return f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(p,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 g=l[m];return g||p}}),f}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://,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 mg(t,e){for(const n of t.childNodes){if(tt(n)&&n.tagName===e)return!0;mg(n,e)}return!1}const Ti="data-language",wi="data-highlight-language",qs="data-theme";let ul=class hg extends Ht{constructor(n,o){super(o);H(this,"__language");H(this,"__theme");H(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new hg(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");Jn(o,n.theme.code),o.setAttribute("spellcheck","false");const i=this.getLanguage();i&&(o.setAttribute(Ti,i),this.getIsSyntaxHighlightSupported()&&o.setAttribute(wi,i));const s=this.getTheme();s&&o.setAttribute(qs,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(Ti,s):a&&o.removeAttribute(Ti);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(qs,c):u&&o.removeAttribute(qs);const d=this.__style,f=n.__style;return d?d!==f&&o.setAttribute("style",d):f&&o.removeAttribute("style"),!1}exportDOM(n){const o=document.createElement("pre");Jn(o,n._config.theme.code),o.setAttribute("spellcheck","false");const i=this.getLanguage();i&&(o.setAttribute(Ti,i),this.getIsSyntaxHighlightSupported()&&o.setAttribute(wi,i));const s=this.getTheme();s&&o.setAttribute(qs,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)||mg(n,"BR"))?{conversion:rp,priority:1}:null,div:()=>({conversion:aue,priority:1}),pre:()=>({conversion:rp,priority:0}),table:n=>rc(n)?{conversion:lue,priority:3}:null,td:n=>{const o=n,i=o.closest("table");return o.classList.contains("js-file-line")||i&&rc(i)?{conversion:ip,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&rc(o)?{conversion:ip,priority:3}:null}}}static importJSON(n){return xn().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()===`
|
|
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 v(_){return _ instanceof c?new c(_.type,v(_.content),_.alias):Array.isArray(_)?_.map(v):_.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++s}),v.__id},clone:function v(_,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 T in _)_.hasOwnProperty(T)&&(w[T]=v(_[T],b));return w;case"Array":return k=l.util.objId(_),b[k]?b[k]:(w=[],b[k]=w,_.forEach(function(A,S){w[S]=v(A,b)}),w);default:return _}},getLanguage:function(v){for(;v;){var _=i.exec(v.className);if(_)return _[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,_){v.className=v.className.replace(RegExp(i,"gi"),""),v.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 v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(v){var _=document.getElementsByTagName("script");for(var b in _)if(_[b].src==v)return _[b]}return null}},isActive:function(v,_,b){for(var w="no-"+_;v;){var k=v.classList;if(k.contains(_))return!0;if(k.contains(w))return!1;v=v.parentElement}return!!b}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(v,_){var b=l.util.clone(l.languages[v]);for(var w in _)b[w]=_[w];return b},insertBefore:function(v,_,b,w){w=w||l.languages;var k=w[v],T={};for(var A in k)if(k.hasOwnProperty(A)){if(A==_)for(var S in b)b.hasOwnProperty(S)&&(T[S]=b[S]);b.hasOwnProperty(A)||(T[A]=k[A])}var E=w[v];return w[v]=T,l.languages.DFS(l.languages,function(D,x){x===E&&D!=v&&(this[D]=T)}),T},DFS:function v(_,b,w,k){k=k||{};var T=l.util.objId;for(var A in _)if(_.hasOwnProperty(A)){b.call(_,A,_[A],w||A);var S=_[A],E=l.util.type(S);E==="Object"&&!k[T(S)]?(k[T(S)]=!0,v(S,b,null,k)):E==="Array"&&!k[T(S)]&&(k[T(S)]=!0,v(S,b,A,k))}}},plugins:{},highlightAll:function(v,_){l.highlightAllUnder(document,v,_)},highlightAllUnder:function(v,_,b){var w={callback:b,container:v,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,T;T=w.elements[k++];)l.highlightElement(T,_===!0,w.callback)},highlightElement:function(v,_,b){var w=l.util.getLanguage(v),k=l.languages[w];l.util.setLanguage(v,w);var T=v.parentElement;T&&T.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(T,w);var A=v.textContent,S={element:v,language:w,grammar:k,code:A};function E(x){S.highlightedCode=x,l.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,l.hooks.run("after-highlight",S),l.hooks.run("complete",S),b&&b.call(S.element)}if(l.hooks.run("before-sanity-check",S),T=S.element.parentElement,T&&T.nodeName.toLowerCase()==="pre"&&!T.hasAttribute("tabindex")&&T.setAttribute("tabindex","0"),!S.code){l.hooks.run("complete",S),b&&b.call(S.element);return}if(l.hooks.run("before-highlight",S),!S.grammar){E(l.util.encode(S.code));return}if(_&&o.Worker){var D=new Worker(l.filename);D.onmessage=function(x){E(x.data)},D.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else E(l.highlight(S.code,S.grammar,S.language))},highlight:function(v,_,b){var w={code:v,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(v,_){var b=_.rest;if(b){for(var w in b)_[w]=b[w];delete _.rest}var k=new f;return p(k,k.head,v),d(v,k,_,k.head,0),h(k)},hooks:{all:{},add:function(v,_){var b=l.hooks.all;b[v]=b[v]||[],b[v].push(_)},run:function(v,_){var b=l.hooks.all[v];if(!(!b||!b.length))for(var w=0,k;k=b[w++];)k(_)}},Token:c};o.Prism=l;function c(v,_,b,w){this.type=v,this.content=_,this.alias=b,this.length=(w||"").length|0}c.stringify=function v(_,b){if(typeof _=="string")return _;if(Array.isArray(_)){var w="";return _.forEach(function(E){w+=v(E,b)}),w}var k={type:_.type,content:v(_.content,b),tag:"span",classes:["token",_.type],attributes:{},language:b},T=_.alias;T&&(Array.isArray(T)?Array.prototype.push.apply(k.classes,T):k.classes.push(T)),l.hooks.run("wrap",k);var A="";for(var S in k.attributes)A+=" "+S+'="'+(k.attributes[S]||"").replace(/"/g,""")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+A+">"+k.content+"</"+k.tag+">"};function u(v,_,b,w){v.lastIndex=_;var k=v.exec(b);if(k&&w&&k[1]){var T=k[1].length;k.index+=T,k[0]=k[0].slice(T)}return k}function d(v,_,b,w,k,T){for(var A in b)if(!(!b.hasOwnProperty(A)||!b[A])){var S=b[A];S=Array.isArray(S)?S:[S];for(var E=0;E<S.length;++E){if(T&&T.cause==A+","+E)return;var D=S[E],x=D.inside,$=!!D.lookbehind,B=!!D.greedy,V=D.alias;if(B&&!D.pattern.global){var I=D.pattern.toString().match(/[imsuy]*$/)[0];D.pattern=RegExp(D.pattern.source,I+"g")}for(var j=D.pattern||D,F=w.next,q=k;F!==_.tail&&!(T&&q>=T.reach);q+=F.value.length,F=F.next){var Q=F.value;if(_.length>v.length)return;if(!(Q instanceof c)){var ae=1,ne;if(B){if(ne=u(j,q,v,$),!ne||ne.index>=v.length)break;var U=ne.index,ye=ne.index+ne[0].length,re=q;for(re+=F.value.length;U>=re;)F=F.next,re+=F.value.length;if(re-=F.value.length,q=re,F.value instanceof c)continue;for(var ie=F;ie!==_.tail&&(re<ye||typeof ie.value=="string");ie=ie.next)ae++,re+=ie.value.length;ae--,Q=v.slice(q,re),ne.index-=q}else if(ne=u(j,0,Q,$),!ne)continue;var U=ne.index,P=ne[0],se=Q.slice(0,U),we=Q.slice(U+P.length),Re=q+Q.length;T&&Re>T.reach&&(T.reach=Re);var Ce=F.prev;se&&(Ce=p(_,Ce,se),q+=se.length),m(_,Ce,ae);var R=new c(A,x?l.tokenize(P,x):P,V,P);if(F=p(_,Ce,R),we&&p(_,F,we),ae>1){var le={cause:A+","+E,reach:Re};d(v,_,b,F.prev,q,le),T&&le.reach>T.reach&&(T.reach=le.reach)}}}}}}function f(){var v={value:null,prev:null,next:null},_={value:null,prev:v,next:null};v.next=_,this.head=v,this.tail=_,this.length=0}function p(v,_,b){var w=_.next,k={value:b,prev:_,next:w};return _.next=k,w.prev=k,v.length++,k}function m(v,_,b){for(var w=_.next,k=0;k<b&&w!==v.tail;k++)w=w.next;_.next=w,w.prev=_,v.length-=k}function h(v){for(var _=[],b=v.head.next;b!==v.tail;)_.push(b.value),b=b.next;return _}if(!o.document)return o.addEventListener&&(l.disableWorkerMessageHandler||o.addEventListener("message",function(v){var _=JSON.parse(v.data),b=_.language,w=_.code,k=_.immediateClose;o.postMessage(l.highlight(w,l.languages[b],b)),k&&o.close()},!1)),l;var g=l.util.currentScript();g&&(l.filename=g.src,g.hasAttribute("data-manual")&&(l.manual=!0));function y(){l.manual||l.highlightAll()}if(!l.manual){var C=document.readyState;C==="loading"||C==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return l}(e);t.exports&&(t.exports=n),typeof Nt<"u"&&(Nt.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(/&/,"&"))}),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(g,y){return"✖ Error "+g+" while fetching file: "+y},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",f="pre[data-src]:not(["+l+'="'+u+'"]):not(['+l+'="'+c+'"])';function p(g,y,C){var v=new XMLHttpRequest;v.open("GET",g,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?y(v.responseText):v.status>=400?C(i(v.status,v.statusText)):C(s))},v.send(null)}function m(g){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(y){var C=Number(y[1]),v=y[2],_=y[3];return v?_?[C,Number(_)]:[C,void 0]:[C,C]}}n.hooks.add("before-highlightall",function(g){g.selector+=", "+f}),n.hooks.add("before-sanity-check",function(g){var y=g.element;if(y.matches(f)){g.code="",y.setAttribute(l,c);var C=y.appendChild(document.createElement("CODE"));C.textContent=o;var v=y.getAttribute("data-src"),_=g.language;if(_==="none"){var b=(/\.(\w+)$/.exec(v)||[,"none"])[1];_=a[b]||b}n.util.setLanguage(C,_),n.util.setLanguage(y,_);var w=n.plugins.autoloader;w&&w.loadLanguages(_),p(v,function(k){y.setAttribute(l,u);var T=m(y.getAttribute("data-range"));if(T){var A=k.split(/\r\n?|\n/g),S=T[0],E=T[1]==null?A.length:T[1];S<0&&(S+=A.length),S=Math.max(0,Math.min(S-1,A.length)),E<0&&(E+=A.length),E=Math.max(0,Math.min(E,A.length)),k=A.slice(S,E).join(`
|
|
39
|
+
`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(S+1))}C.textContent=k,n.highlightElement(C)},function(k){y.setAttribute(l,d),C.textContent=k})}}),n.plugins.fileHighlight={highlight:function(y){for(var C=(y||document).querySelectorAll(f),v=0,_;_=C[v++];)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)}}()})(sue);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(/&/,"&"))});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(f){d!==f&&(t.languages.markdown[d].inside.content.inside[f]=t.languages.markdown[f])})}),t.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function f(p){if(!(!p||typeof p=="string"))for(var m=0,h=p.length;m<h;m++){var g=p[m];if(g.type!=="code"){f(g.content);continue}var y=g.content[1],C=g.content[3];if(y&&C&&y.type==="code-language"&&C.type==="code-block"&&typeof y.content=="string"){var v=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");v=(/[a-z][\w-]*/i.exec(v)||[""])[0].toLowerCase();var _="language-"+v;C.alias?typeof C.alias=="string"?C.alias=[C.alias,_]:C.alias.push(_):C.alias=[_]}}}f(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var f="",p=0,m=d.classes.length;p<m;p++){var h=d.classes[p],g=/language-(.+)/.exec(h);if(g){f=g[1];break}}var y=t.languages[f];if(y)d.content=t.highlight(u(d.content),y,f);else if(f&&f!=="none"&&t.plugins.autoloader){var C="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=C,t.plugins.autoloader.loadLanguages(f,function(){var v=document.getElementById(C);v&&(v.innerHTML=t.highlight(v.textContent,t.languages[f],f))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function u(d){var f=d.replace(a,"");return f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(p,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 g=l[m];return g||p}}),f}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://,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 mg(t,e){for(const n of t.childNodes){if(tt(n)&&n.tagName===e)return!0;mg(n,e)}return!1}const Ai="data-language",wi="data-highlight-language",qs="data-theme";let ul=class hg extends Ht{constructor(n,o){super(o);H(this,"__language");H(this,"__theme");H(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new hg(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");Jn(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(qs,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(qs,c):u&&o.removeAttribute(qs);const d=this.__style,f=n.__style;return d?d!==f&&o.setAttribute("style",d):f&&o.removeAttribute("style"),!1}exportDOM(n){const o=document.createElement("pre");Jn(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(qs,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)||mg(n,"BR"))?{conversion:rp,priority:1}:null,div:()=>({conversion:aue,priority:1}),pre:()=>({conversion:rp,priority:0}),table:n=>rc(n)?{conversion:lue,priority:3}:null,td:n=>{const o=n,i=o.closest("table");return o.classList.contains("js-file-line")||i&&rc(i)?{conversion:ip,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&rc(o)?{conversion:ip,priority:3}:null}}}static importJSON(n){return xn().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
|
-
`&&n.isCollapsed()&&n.anchor.key===this.__key&&n.anchor.offset===s){i[s-1].remove(),i[s-2].remove();const u=qe();return this.insertAfter(u,o),u}const{anchor:a,focus:l}=n,c=(a.isBefore(l)?a:l).getNode();if(X(c)){let u=uue(c);const d=[];for(;;)if(Qa(u))d.push(Yr()),u=u.getNextSibling();else{if(!yg(u))break;{let C=0;const v=u.getTextContent(),_=u.getTextContentSize();for(;C<_&&v[C]===" ";)C++;if(C!==0&&d.push(_g(" ".repeat(C))),C!==_)break;u=u.getNextSibling()}}const f=c.splitText(a.offset)[0],p=a.offset===0?0:1,m=f.getIndexWithinParent()+p,h=c.getParentOrThrow(),g=[fn(),...d];h.splice(m,0,g);const y=d[d.length-1];y?y.select():a.offset===0?f.selectPrevious():f.getNextSibling().selectNext(0,0)}if(dl(c)){const{offset:u}=n.anchor;c.splice(u,0,[fn()]),c.select(u+1,u+1)}return null}canIndent(){return!1}collapseAtStart(){const n=qe();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 xn(t,e){return uce(ul).setLanguage(t).setTheme(e)}function dl(t){return t instanceof ul}function rp(t){return{node:xn(t.getAttribute(
|
|
41
|
+
`&&n.isCollapsed()&&n.anchor.key===this.__key&&n.anchor.offset===s){i[s-1].remove(),i[s-2].remove();const u=qe();return this.insertAfter(u,o),u}const{anchor:a,focus:l}=n,c=(a.isBefore(l)?a:l).getNode();if(X(c)){let u=uue(c);const d=[];for(;;)if(Qa(u))d.push(Yr()),u=u.getNextSibling();else{if(!yg(u))break;{let C=0;const v=u.getTextContent(),_=u.getTextContentSize();for(;C<_&&v[C]===" ";)C++;if(C!==0&&d.push(_g(" ".repeat(C))),C!==_)break;u=u.getNextSibling()}}const f=c.splitText(a.offset)[0],p=a.offset===0?0:1,m=f.getIndexWithinParent()+p,h=c.getParentOrThrow(),g=[fn(),...d];h.splice(m,0,g);const y=d[d.length-1];y?y.select():a.offset===0?f.selectPrevious():f.getNextSibling().selectNext(0,0)}if(dl(c)){const{offset:u}=n.anchor;c.splice(u,0,[fn()]),c.select(u+1,u+1)}return null}canIndent(){return!1}collapseAtStart(){const n=qe();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 xn(t,e){return uce(ul).setLanguage(t).setTheme(e)}function dl(t){return t instanceof ul}function rp(t){return{node:xn(t.getAttribute(Ai))}}function aue(t){const e=t,n=sp(e);return n||function(o){let i=o.parentElement;for(;i!==null;){if(sp(i))return!0;i=i.parentElement}return!1}(e)?{node:n?xn():null}:{node:null}}function lue(){return{node:xn()}}function ip(){return{node:null}}function sp(t){return t.style.fontFamily.match("monospace")!==null}function rc(t){return t.classList.contains("js-file-line-container")}let gg=class vg extends So{constructor(n="",o,i){super(n,i);H(this,"__highlightType");this.__highlightType=o}static getType(){return"code-highlight"}static clone(n){return new vg(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=ic(n.theme,this.__highlightType);return Jn(o,i),o}updateDOM(n,o,i){const s=super.updateDOM(n,o,i),a=ic(i.theme,n.__highlightType),l=ic(i.theme,this.__highlightType);return a!==l&&(a&&Ju(o,a),l&&Jn(o,l)),s}static importJSON(n){return _g().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 xn()}};function ic(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function _g(t="",e){return vn(new gg(t,e))}function yg(t){return t instanceof gg}function cue(t,e){let n=t;for(let o=mt(t,e);o&&(yg(o.origin)||Qa(o.origin));o=Tce(o))n=o.origin;return n}function uue(t){return cue(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
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 due=new Set(["http:","https:","mailto:","sms:","tel:"]);class ei extends Ht{constructor(n="",o={},i){super(i);H(this,"__url");H(this,"__target");H(this,"__rel");H(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 ei(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),Jn(o,n.theme.link),o}updateLinkDOM(n,o,i){if(Rh(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:fue,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=lp(n);try{const o=new URL(lp(n));if(!due.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(!Z(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 fue(t){let e=null;if(Rh(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 vn(new ei(t,e))}function pue(t){return t instanceof ei}class fl extends ei{constructor(n="",o={},i){super(n,o,i);H(this,"__isUnlinked");this.__isUnlinked=o.isUnlinked!==void 0&&o.isUnlinked!==null&&o.isUnlinked}static getType(){return"autolink"}static clone(n){return new fl(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 ap().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(z(i)){const s=ap(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return i.append(s),s}return null}}function ap(t="",e){return vn(new fl(t,e))}function mue(t){return t instanceof fl}const hue=/^\+?[0-9\s()-]{5,}$/;function lp(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:hue.test(t)?`tel:${t}`:`https://${t}`}function Hc(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 td(t){const e=Hc(t,n=>n.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const Ea=/[!-/:-@[-`{-~\s]/,gue=/^\s{0,3}$/;function jc(t){if(!ps(t))return!1;const e=t.getFirstChild();return e==null||t.getChildrenSize()===1&&X(e)&&gue.test(e.getTextContent())}function vue(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 z(t)?Sa(t,n,o):Ne(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,f)=>cp(d,f,e,o,i));if(u!=null){s.push(u);continue e}}mo(l)?s.push(`
|
|
44
44
|
`):X(l)?s.push(cp(l,l.getTextContent(),e,o,i)):z(l)?s.push(Sa(l,e,n,o,i)):Ne(l)&&s.push(l.getTextContent())}return s.join("")}function cp(t,e,n,o,i){let s=t.getFormat()===0?e:function(p){return p.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=up(t,!0),d=up(t,!1),f=new Set;for(const p of n){const m=p.format[0],h=p.tag;Hs(t,m)&&!f.has(m)&&(f.add(m),Hs(u,m)&&o.find(g=>g.tag===h)||(o.push({format:m,tag:h}),a+=h))}for(let p=0;p<o.length;p++){const m=Hs(t,o[p].format),h=Hs(d,o[p].format);if(m&&h)continue;const g=[...o];for(;g.length>p;){const y=g.pop();i&&y&&i.find(C=>C.tag===y.tag)||(y&&typeof y.tag=="string"&&(m?h||(c+=y.tag):l+=y.tag),o.pop())}break}return s=a+s+c,l+s}function up(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(z(n)){if(!n.isInline())break;const o=e?n.getLastDescendant():n.getFirstDescendant();if(X(o))return o;n=e?n.getPreviousSibling():n.getNextSibling()}if(X(n))return n;if(!z(n))return null}return null}function Hs(t,e){return X(t)&&t.hasFormat(e)}function _ue(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),f=s.transformersByTag[c];if(d!=null&&f!=null){if(f.intraword!==!1)return d;const{index:p=0}=d,m=i[p-1],h=i[p+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 Oo(t){return X(t)&&!t.hasFormat("code")}function Vo(t,e,n){let o=_ue(t,e),i=function(a,l){const c=a;let u,d,f,p;for(const m of l){if(!m.replace||!m.importRegExp)continue;const h=c.getTextContent().match(m.importRegExp);if(!h)continue;const g=h.index||0,y=m.getEndIndex?m.getEndIndex(c,h):g+h[0].length;y!==!1&&(u===void 0||d===void 0||g<u&&(y>d||y<=u))&&(u=g,d=y,f=m,p=h)}return u===void 0||d===void 0||f===void 0||p===void 0?null:{endIndex:d,match:p,startIndex:u,transformer:f}}(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,f){const p=l.getTextContent();let m,h,g;if(f[0]===p?m=l:c===0?[m,h]=l.splitText(u):[g,m,h]=l.splitText(c,u),m.setTextContent(f[2]),d)for(const y of d.format)m.hasFormat(y)||m.toggleFormat(y);return{nodeAfter:h,nodeBefore:g,transformedNode:m}}(t,o.startIndex,o.endIndex,o.transformer,o.match);Oo(a.nodeAfter)&&Vo(a.nodeAfter,e,n),Oo(a.nodeBefore)&&Vo(a.nodeBefore,e,n),Oo(a.transformedNode)&&Vo(a.transformedNode,e,n)}else if(i){const a=function(l,c,u,d,f){let p,m,h;return c===0?[p,m]=l.splitText(u):[h,p,m]=l.splitText(c,u),d.replace?{nodeAfter:m,nodeBefore:h,transformedNode:d.replace(p,f)||void 0}:null}(t,i.startIndex,i.endIndex,i.transformer,i.match);if(!a)return;Oo(a.nodeAfter)&&Vo(a.nodeAfter,e,n),Oo(a.nodeBefore)&&Vo(a.nodeBefore,e,n),Oo(a.transformedNode)&&Vo(a.transformedNode,e,n)}const s=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(a,l)=>String.fromCodePoint(l));t.setTextContent(s)}function yue(t,e=!1){const n=td(t),o=function(i){const s={},a={},l=[],c="(?<![\\\\])";for(const u of i){const{tag:d}=u;s[d]=u;const f=d.replace(/(\*|\^|\+)/g,"\\$1");l.push(f),d.length===1?a[d]=new RegExp(`(?<![\\\\${f}])(${f})((\\\\${f})?.*?[^${f}\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?![\\\\${f}])`):a[d]=new RegExp(`(?<!\\\\)(${f})((\\\\${f})?.*?[^\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?!\\\\)`)}return{fullMatchRegExpByTag:a,openTagsRegExp:new RegExp(`${c}(${l.join("|")})`,"g"),transformersByTag:s}}(n.textFormat);return(i,s)=>{const a=i.split(`
|
|
45
|
-
`),l=a.length,c=s||Ge();c.clear();for(let d=0;d<l;d++){const f=a[d],[p,m]=Cue(a,d,n.multilineElement,c);p?d=m:bue(f,c,n.element,o,n.textMatch,e)}const u=c.getChildren();for(const d of u)!e&&jc(d)&&c.getChildrenSize()>1&&d.remove();ee()!==null&&c.selectStart()}}function Cue(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,f=a&&typeof a=="object"&&"optional"in a?a.optional:!a;let p=e;const m=t.length;for(;p<m;){const h=d?t[p].match(d):null;if(!h&&(!f||f&&p<m-1)){p++;continue}if(h&&e===p&&h.index===u.index){p++;continue}const g=[];if(h&&e===p)g.push(t[e].slice(u[0].length,-h[0].length));else for(let y=e;y<=p;y++)if(y===e){const C=t[y].slice(u[0].length);g.push(C)}else if(y===p&&h){const C=t[y].slice(0,-h[0].length);g.push(C)}else g.push(t[y]);if(c(o,null,u,h,g,!0)!==!1)return[!0,p];break}}return[!1,e]}function bue(t,e,n,o,i,s){const a=Ye(t),l=qe();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(Vo(a,o,i),l.isAttached()&&t.length>0){const c=l.getPreviousSibling();if(!s&&(ps(c)||qc(c)||he(c))){let u=c;if(he(c)){const d=c.getLastDescendant();u=d==null?null:en(d,De)}u!=null&&u.getTextContentSize()>0&&(u.splice(u.getChildrenSize(),0,[fn(),...l.getChildren()]),l.remove())}}}function kue(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 Cg=/^(\s*)(\d{1,})\.\s/,bg=/^(\s*)[-*+]\s/,wue=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,Wc=/^(#{1,6})\s/,kg=/^>\s/,wg=/^[ \t]*```([\w-]+)?/,Zc=/[ \t]*```$/,Eue=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,Sue=/^(?:\|)(.+)(?:\|)\s?$/,xue=/^(\| ?:?-*:? ?)+\|\s?$/,dp=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,fp=/^<\/[a-z_][\w-]*\s*>/i,pp=t=>new RegExp(`(?:${t.source})$`,t.flags),
|
|
46
|
-
`)},xg={dependencies:[cl],export:(t,e)=>{if(!pg(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:Wc,replace:Eg(t=>{const e="h"+t[1].length;return zo(e)}),type:"element"},
|
|
45
|
+
`),l=a.length,c=s||Ge();c.clear();for(let d=0;d<l;d++){const f=a[d],[p,m]=Cue(a,d,n.multilineElement,c);p?d=m:bue(f,c,n.element,o,n.textMatch,e)}const u=c.getChildren();for(const d of u)!e&&jc(d)&&c.getChildrenSize()>1&&d.remove();ee()!==null&&c.selectStart()}}function Cue(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,f=a&&typeof a=="object"&&"optional"in a?a.optional:!a;let p=e;const m=t.length;for(;p<m;){const h=d?t[p].match(d):null;if(!h&&(!f||f&&p<m-1)){p++;continue}if(h&&e===p&&h.index===u.index){p++;continue}const g=[];if(h&&e===p)g.push(t[e].slice(u[0].length,-h[0].length));else for(let y=e;y<=p;y++)if(y===e){const C=t[y].slice(u[0].length);g.push(C)}else if(y===p&&h){const C=t[y].slice(0,-h[0].length);g.push(C)}else g.push(t[y]);if(c(o,null,u,h,g,!0)!==!1)return[!0,p];break}}return[!1,e]}function bue(t,e,n,o,i,s){const a=Ye(t),l=qe();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(Vo(a,o,i),l.isAttached()&&t.length>0){const c=l.getPreviousSibling();if(!s&&(ps(c)||qc(c)||he(c))){let u=c;if(he(c)){const d=c.getLastDescendant();u=d==null?null:en(d,De)}u!=null&&u.getTextContentSize()>0&&(u.splice(u.getChildrenSize(),0,[fn(),...l.getChildren()]),l.remove())}}}function kue(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 Cg=/^(\s*)(\d{1,})\.\s/,bg=/^(\s*)[-*+]\s/,wue=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,Wc=/^(#{1,6})\s/,kg=/^>\s/,wg=/^[ \t]*```([\w-]+)?/,Zc=/[ \t]*```$/,Eue=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,Sue=/^(?:\|)(.+)(?:\|)\s?$/,xue=/^(\| ?:?-*:? ?)+\|\s?$/,dp=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,fp=/^<\/[a-z_][\w-]*\s*>/i,pp=t=>new RegExp(`(?:${t.source})$`,t.flags),Ti=lle("mdListMarker",{parse:t=>typeof t=="string"&&/^[-*+]$/.test(t)?t:"-"}),Eg=t=>(e,n,o,i)=>{const s=t(o);s.append(...n),e.replace(s),i||s.select(0,0)},Sg=t=>(e,n,o,i)=>{const s=e.getPreviousSibling(),a=e.getNextSibling(),l=jt(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(he(a)&&a.getListType()===t){u&&Hl(a,Ti,u);const f=a.getFirstChild();f!==null?f.insertBefore(l):a.append(l),e.remove()}else if(he(s)&&s.getListType()===t)u&&Hl(s,Ti,u),s.append(l),e.remove();else{const f=$t(t,t==="number"?Number(o[2]):void 0);u&&Hl(f,Ti,u),f.append(l),e.replace(f)}l.append(...n),i||l.select(0,0);const d=function(f){const p=f.match(/\t/g),m=f.match(/ /g);let h=0;return p&&(h+=p.length),m&&(h+=Math.floor(m.length/4)),h}(o[1]);d&&l.setIndent(d)},nd=(t,e,n)=>{const o=[],i=t.getChildren();let s=0;for(const a of i)if(De(a)){if(a.getChildrenSize()===1){const f=a.getFirstChild();if(he(f)){o.push(nd(f,e,n+1));continue}}const l=" ".repeat(4*n),c=t.getListType(),u=Vm(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
|
+
`)},xg={dependencies:[cl],export:(t,e)=>{if(!pg(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:Wc,replace:Eg(t=>{const e="h"+t[1].length;return zo(e)}),type:"element"},Aue={dependencies:[Qu],export:(t,e)=>{if(!qc(t))return null;const n=e(t).split(`
|
|
47
47
|
`),o=[];for(const i of n)o.push("> "+i);return o.join(`
|
|
48
|
-
`)},regExp:kg,replace:(t,e,n,o)=>{if(o){const s=t.getPreviousSibling();if(qc(s))return s.splice(s.getChildrenSize(),0,[fn(),...e]),void t.remove()}const i=ed();i.append(...e),t.replace(i),o||i.select(0,0)},type:"element"},
|
|
48
|
+
`)},regExp:kg,replace:(t,e,n,o)=>{if(o){const s=t.getPreviousSibling();if(qc(s))return s.splice(s.getChildrenSize(),0,[fn(),...e]),void t.remove()}const i=ed();i.append(...e),t.replace(i),o||i.select(0,0)},type:"element"},Ag={dependencies:[ul],export:t=>{if(!dl(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
|
|
49
49
|
`+e:"")+"\n```"},regExpEnd:{optional:!0,regExp:Zc},regExpStart:wg,replace:(t,e,n,o,i,s)=>{let a,l;if(!e&&i){if(i.length===1)o?(a=xn(),l=n[1]+i[0]):(a=xn(n[1]),l=i[0].startsWith(" ")?i[0].slice(1):i[0]);else{if(a=xn(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=Ye(l);a.append(c),t.append(a)}else e&&Eg(c=>xn(c?c[1]:void 0))(t,e,n,s)},type:"multiline-element"},
|
|
50
|
+
`)}const c=Ye(l);a.append(c),t.append(a)}else e&&Eg(c=>xn(c?c[1]:void 0))(t,e,n,s)},type:"multiline-element"},Tg={dependencies:[lr,Ao],export:(t,e)=>he(t)?nd(t,e,0):null,regExp:bg,replace:Sg("bullet"),type:"element"},Ng={dependencies:[lr,Ao],export:(t,e)=>he(t)?nd(t,e,0):null,regExp:Cg,replace:Sg("number"),type:"element"},Dg={format:["code"],tag:"`",type:"text-format"},Tue={format:["highlight"],tag:"==",type:"text-format"},$g={format:["bold","italic"],tag:"***",type:"text-format"},Nue={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},Bg={format:["bold"],tag:"**",type:"text-format"},Due={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Mg={format:["strikethrough"],tag:"~~",type:"text-format"},Lg={format:["italic"],tag:"*",type:"text-format"},$ue={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Bue={dependencies:[ei],export:(t,e,n)=>{if(!pue(t)||mue(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 f=n.split("[");u="["+f[0],c=f.slice(1).join("[")}const d=Ye(c);return d.setFormat(t.getFormat()),s.append(d),t.replace(s),u&&s.insertBefore(Ye(u)),d},trigger:")",type:"text-match"},Mue=[xg,Aue,Tg,Ng],Lue=[Ag],Oue=[Dg,$g,Nue,Bg,Due,Tue,Lg,$ue,Mg],Vue=[Bue],od=[...Mue,...Lue,...Oue,...Vue];function mp(t,e,n){const o=n.length;for(let i=e;i>=o;i--){const s=i-o;if(Og(t,s,n,0,o)&&t[s+o]!==" ")return s}return-1}function Og(t,e,n,o,i){for(let s=0;s<i;s++)if(t[e+s]!==n[o+s])return!1;return!0}function Iue(t,e=od){const n=td(e),o=Hc(n.textFormat,({tag:a})=>a[a.length-1]),i=Hc(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)||kue(173,u.getType())}}const s=(a,l,c)=>{(function(u,d,f,p){const m=u.getParent();if(!St(m)||u.getFirstChild()!==d)return!1;const h=d.getTextContent();if(h[f-1]!==" ")return!1;for(const{regExp:g,replace:y}of p){const C=h.match(g);if(C&&C[0].length===(C[0].endsWith(" ")?f:f-1)){const v=d.getNextSiblings(),[_,b]=d.splitText(f);if(y(u,b?[b,...v]:v,C,!1)!==!1)return _.remove(),!0}}return!1})(a,l,c,n.element)||function(u,d,f,p){const m=u.getParent();if(!St(m)||u.getFirstChild()!==d)return!1;const h=d.getTextContent();if(h[f-1]!==" ")return!1;for(const{regExpStart:g,replace:y,regExpEnd:C}of p){if(C&&!("optional"in C)||C&&"optional"in C&&!C.optional)continue;const v=h.match(g);if(v&&v[0].length===(v[0].endsWith(" ")?f:f-1)){const _=d.getNextSiblings(),[b,w]=d.splitText(f);if(y(u,w?[w,..._]:_,v,null,null,!1)!==!1)return b.remove(),!0}}return!1}(a,l,c,n.multilineElement)||function(u,d,f){let p=u.getTextContent();const m=f[p[d-1]];if(m==null)return!1;d<p.length&&(p=p.slice(0,d));for(const h of m){if(!h.replace||!h.regExp)continue;const g=p.match(h.regExp);if(g===null)continue;const y=g.index||0,C=y+g[0].length;let v;return y===0?[v]=u.splitText(C):[,v]=u.splitText(y,C),v.selectNext(0,0),h.replace(v,g),!0}return!1}(l,c,i)||function(u,d,f){const p=u.getTextContent(),m=d-1,h=p[m],g=f[h];if(!g)return!1;for(const y of g){const{tag:C}=y,v=C.length,_=m-v+1;if(v>1&&!Og(p,_,C,0,v)||p[_-1]===" ")continue;const b=p[m+1];if(y.intraword===!1&&b&&!Ea.test(b))continue;const w=u;let k=w,T=mp(p,_,C),A=k;for(;T<0&&(A=A.getPreviousSibling())&&!mo(A);)if(X(A)){if(A.hasFormat("code"))continue;const j=A.getTextContent();k=A,T=mp(j,j.length,C)}if(T<0||k===w&&T+v===_)continue;const S=k.getTextContent();if(T>0&&S[T-1]===h)continue;const E=S[T-1];if(y.intraword===!1&&E&&!Ea.test(E))continue;const D=w.getTextContent(),x=D.slice(0,_)+D.slice(m+1);w.setTextContent(x);const $=k===w?x:S;k.setTextContent($.slice(0,T)+$.slice(T+v));const B=ee(),V=tl();vt(V);const I=m-v*(k===w?2:1)+1;V.anchor.set(k.__key,T,"text"),V.focus.set(w.__key,I,"text");for(const j of y.format)V.hasFormat(j)||V.formatText(j);V.anchor.set(V.focus.key,V.focus.offset,V.focus.type);for(const j of y.format)V.hasFormat(j)&&V.toggleFormat(j);return Z(B)&&(V.format=B.format),!0}}(l,c,o)};return t.registerUpdateListener(({tags:a,dirtyLeaves:l,editorState:c,prevEditorState:u})=>{if(a.has(ph)||a.has(ha)||t.isComposing())return;const d=c.read(ee),f=u.read(ee);if(!Z(f)||!Z(d)||!d.isCollapsed()||d.is(f))return;const p=d.anchor.key,m=d.anchor.offset,h=c._nodeMap.get(p);!X(h)||!l.has(p)||m!==1&&m>f.anchor.offset+1||t.update(()=>{if(!Oo(h))return;const g=h.getParent();g===null||dl(g)||s(g,h,d.anchor.offset)})})}function Pue(t,e=od,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 f=0;f<c.length;f++){const p=c[f].trimEnd(),m=d[d.length-1];Eue.test(p)?d.push(p):wg.test(p)||Zc.test(p)?(u=!u,d.push(p)):u||p===""||m===""||!m||Wc.test(m)||Wc.test(p)||kg.test(p)||Cg.test(p)||bg.test(p)||wue.test(p)||Sue.test(p)||xue.test(p)||!l||dp.test(p)||fp.test(p)||pp(fp).test(m)||pp(dp).test(m)||Zc.test(m)?d.push(p):d[d.length-1]=m+" "+p.trimStart()}return d.join(`
|
|
52
52
|
`)}(t,i);return yue(e,o)(s,n)}function Fue(t=od,e,n=!1){return function(i,s=!1){const a=td(i),l=[...a.multilineElement,...a.element],c=!s,u=a.textFormat.filter(d=>d.format.length===1).sort((d,f)=>Number(d.format.includes("code"))-Number(f.format.includes("code")));return d=>{const f=[],p=(d||Ge()).getChildren();for(let m=0;m<p.length;m++){const h=p[m],g=vue(h,l,u,a.textMatch);g!=null&&f.push(c&&m>0&&!jc(h)&&!jc(p[m-1])?`
|
|
53
53
|
`.concat(g):g)}return f.join(`
|
|
54
|
-
`)}}(t,n)(e)}var Rue=process.env.NODE_ENV==="production",sc="Invariant failed";function zue(t,e){if(!t){if(Rue)throw new Error(sc);var n=typeof e=="function"?e():e,o=n?"".concat(sc,": ").concat(n):sc;throw new Error(o)}}const Vg=Symbol("LexicalEditor"),Uue=(()=>{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:f,editorState:p,html:m}=a.initialConfig,h=Yle({editable:a.initialConfig.editable,html:m,namespace:u,nodes:d,theme:c,onError(y){s("error",y,h),f==null||f(y,h)}});g(h,p);function g(y,C){if(C!==null){if(C===void 0)y.update(()=>{const v=Ge();if(v.isEmpty()){const _=qe();v.append(_);const b=Tce?document.activeElement:null;(ee()!==null||b!==null&&b===y.getRootElement())&&_.select()}},l);else if(C!==null)switch(typeof C){case"string":{const v=y.parseEditorState(C);y.setEditorState(v,l);break}case"object":y.setEditorState(C,l);break;case"function":y.update(()=>{Ge().isEmpty()&&C(y)},l);break}}}return r.provide(Vg,h),r.onMounted(()=>{const y=a.initialConfig.editable;h.setEditable(y!==void 0?y:!0)}),(y,C)=>r.renderSlot(y.$slots,"default")}});return t.__vue_vine=!0,t})();function ti(){const t=r.inject(Vg,null);return t||zue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function que(t,e){if(t==null)return{};var n=Hue(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 Hue(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 jue=(()=>{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(()=>que(s,["editor"]));r.onMounted(()=>{function d(p){p&&p.ownerDocument&&p.ownerDocument.defaultView?s.editor.setRootElement(p):s.editor.setRootElement(null)}d(a.value),l.value=s.editor.isEditable();const f=s.editor.registerEditableListener(p=>{l.value=p});r.onUnmounted(f)});const u=r.computed(()=>{var d;return(d=s.role)!=null?d:"textbox"});return(d,f)=>(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 Wue(){return Ge().getTextContent()}function Zue(t,e=!0){if(t)return!1;let n=Wue();return e&&(n=n.trim()),n===""}function Kue(t){if(!Zue(t,!1))return!1;const e=Ge().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const i=e[o];if(Ne(i))return!1;if(z(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(!X(c))return!1}}}return!0}function Ig(t){return()=>Kue(t)}function Gue(t){return t.getEditorState().read(Ig(t.isComposing()))}function Pg(t){const e=t.getEditorState().read(Ig(t.isComposing())),n=r.ref(e);function o(){const i=Gue(t);n.value=i}return r.onMounted(()=>{const i=gs(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));r.onUnmounted(()=>{i()})}),r.readonly(n)}function Yue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jue(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){Yue(t,i,n[i])})}return t}function Xue(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 Que(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Xue(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const ede=(()=>{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=ti(),a=r.ref(!1),l=Pg(s);return r.onMounted(()=>{a.value=s.isEditable();const c=s.registerEditableListener(u=>{a.value=u});r.onUnmounted(c)}),(c,u)=>{var d,f;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(jue),r.mergeProps({editor:r.unref(s)},Que(Jue({},c.$props),{role:(d=c.role)!=null?d:"textbox",spellcheck:(f=c.spellcheck)!=null?f:!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 tde(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(!(Z(s)&&Z(a)&&a.isCollapsed()&&s.isCollapsed()))return 0;const l=function(C,v,_){const b=C._nodeMap,w=[];for(const k of v){const A=b.get(k);A!==void 0&&w.push(A)}for(const[k,A]of _){if(!A)continue;const T=b.get(k);T===void 0||Qe(T)||w.push(T)}return w}(e,n,o);if(l.length===0)return 0;if(l.length>1){const C=e._nodeMap,v=C.get(s.anchor.key),_=C.get(a.anchor.key);return v&&_&&!t._nodeMap.has(v.__key)&&X(v)&&v.__text.length===1&&s.anchor.offset===1?2:0}const c=l[0],u=t._nodeMap.get(c.__key);if(!X(u)||!X(c)||u.__mode!==c.__mode)return 0;const d=u.__text,f=c.__text;if(d===f)return 0;const p=s.anchor,m=a.anchor;if(p.key!==m.key||p.type!=="text")return 0;const h=p.offset,g=m.offset,y=f.length-d.length;return y===1&&g===h-1?2:y===-1&&g===h+1?3:y===-1&&g===h?4:0}function nde(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 f=tde(i,s,l,c,t.isComposing()),p=(()=>{const m=a===null||a.editor===t,h=u.has(Nle);if(!h&&m&&u.has(Mi))return 0;if(i===null)return 1;const g=s._selection;if(!(l.size>0||c.size>0))return g!==null?0:2;const y=typeof e=="number"?e:e.peek();return h===!1&&f!==0&&f===o&&d<n+y&&m||l.size===1&&function(C,v,_){const b=v._nodeMap.get(C),w=_._nodeMap.get(C),k=v._selection,A=_._selection;return!(Z(k)&&Z(A)&&k.anchor.type==="element"&&k.focus.type==="element"&&A.anchor.type==="text"&&A.focus.type==="text"||!X(b)||!X(w)||b.__parent!==w.__parent)&&JSON.stringify(v.read(()=>b.exportJSON()))===JSON.stringify(_.read(()=>w.exportJSON()))}(Array.from(l)[0],i,s)?0:1})();return n=d,o=f,p}}function hp(t){t.undoStack=[],t.redoStack=[],t.current=null}function ode(t,e,n){const o=nde(t,n);return gs(t.registerCommand(xu,()=>(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),Te),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),Te),t.registerCommand(wle,()=>(hp(e),!1),Te),t.registerCommand(Ele,()=>(hp(e),t.dispatchCommand(Os,!1),t.dispatchCommand(Vs,!1),!0),Te),t.registerUpdateListener(({editorState:s,prevEditorState:a,dirtyLeaves:l,dirtyElements:c,tags:u})=>{const d=e.current,f=e.redoStack,p=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)f.length!==0&&(e.redoStack=[],t.dispatchCommand(Os,!1)),d!==null&&(p.push({...d}),t.dispatchCommand(Vs,!0));else if(h===2)return;e.current={editor:t,editorState:s}}))}function rde(){return{current:null,redoStack:[],undoStack:[]}}function ide(t,e,n){const o=r.computed(()=>r.toValue(e)||rde());r.watchEffect(i=>{const s=ode(r.toValue(t),o.value,r.toValue(n)||1e3);i(s)})}const sde=(()=>{const t=r.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const i=e,s=ti();return ide(s,()=>i.externalHistoryState,()=>i.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function ade(t){r.onMounted(()=>{const e=Rce(t);r.onUnmounted(()=>{e()})})}const lde=(()=>{const t=r.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const i=e,s=ti();return r.watchEffect(a=>{if(!s.hasNodes([lr,To]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!i.hasStrictIndent)return;const l=zce(s);a(l)}),ade(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function cde(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 ude=r.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=ti(),e=cde(t);return()=>e.value}});function dde(t){r.onMounted(()=>{const e=gs(iue(t),Jce(t));r.onUnmounted(e)})}const fde=(()=>{const t=r.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const i=ti(),s=Pg(i);return dde(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(ude))],64))}});return t.__vue_vine=!0,t})(),ac=[xg,Tg,Ag,Ng,$g,Bg,Lg,Mg,Dg],pde={class:"ao-lexical-editor__placeholder"},Fg=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:[lr,To,cl,ul],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:()=>{Pue(o.initialMarkdown||"",ac)},onError(x){console.error("Lexical error:",x)}},d=r.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:x=>!0,blockStyleChange:x=>!0,selectionChange:x=>!0},setup(x,{emit:$}){const B=ti();let V=null,I=null;function j(){B.getEditorState().read(()=>{const F=ee();if(!Z(F))return;$("selectionChange",F.clone());const q=F.anchor.getNode(),Q=q.getKey()==="root"?q:q.getTopLevelElementOrThrow();if(pg(Q)){const ae=Q.getTag();if(ae==="h1"||ae==="h2"||ae==="h3"){$("blockStyleChange",ae);return}}if(dl(Q)){$("blockStyleChange","code");return}$("blockStyleChange","paragraph")})}return r.onMounted(()=>{$("ready",B),j(),I=Iue(B,ac),V=B.registerUpdateListener(()=>{j()})}),r.onUnmounted(()=>{I==null||I(),V==null||V()}),()=>null}});function f(x){s.value=x,i("ready",x)}function p(x){a.value=x}function m(x){i("keydown",x)}function h(x){const $=x.clipboardData;if(!$)return;const B=[],V=$.items;if(V){for(const I of V)if(I.kind==="file"&&I.type.startsWith("image/")){const j=I.getAsFile();if(j){const F=g(j);B.push(F)}}B.length>0&&(x.preventDefault(),i("paste",B))}}function g(x){if(x.name&&x.name.length>0&&x.name!=="image.png"&&x.name!=="screenshot.png"&&!x.name.startsWith("image-"))return x;const B=new Date,V=B.getFullYear(),I=String(B.getMonth()+1).padStart(2,"0"),j=String(B.getDate()).padStart(2,"0"),F=String(B.getHours()).padStart(2,"0"),q=String(B.getMinutes()).padStart(2,"0");let Q="png";x.type==="image/jpeg"?Q="jpg":x.type==="image/webp"?Q="webp":x.type==="image/gif"&&(Q="gif");const ae=`pasted-image-${V}-${I}-${j}-${F}${q}.${Q}`;return new File([x],ae,{type:x.type})}function y(){a.value&&vt(a.value.clone())}function C(x){const $=s.value;$&&($.update(()=>{y(),x()}),$.focus())}function v(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Jt,"bold"),x.focus())}function _(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Jt,"italic"),x.focus())}function b(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Jt,"strikethrough"),x.focus())}function w(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Jt,"code"),x.focus())}function k(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(rg,void 0),x.focus())}function A(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(ig,void 0),x.focus())}function T(x){C(()=>{const $=ee();if(Z($)){if($.isCollapsed()||$.focus.set($.anchor.key,$.anchor.offset,$.anchor.type),x==="paragraph"){nc($,()=>qe());return}if(x==="code"){nc($,()=>xn());return}nc($,()=>zo(x))}}),l.value=x}function S(){const x=s.value;return x?x.getEditorState().read(()=>Fue(ac)):""}function E(){const x=s.value;x&&x.update(()=>{const $=Ge();$.clear(),$.append(qe())})}function D(){var x;(x=s.value)==null||x.focus()}return e({toggleBold:v,toggleItalic:_,toggleStrikethrough:b,toggleInlineCode:w,insertBulletList:k,insertNumberedList:A,setBlockStyle:T,getMarkdown:S,clear:E,focus:D,blockStyle:l}),(x,$)=>(r.openBlock(),r.createBlock(r.unref(Uue),{"initial-config":u},{default:r.withCtx(()=>[r.renderSlot(x.$slots,"toolbar"),r.createElementVNode("div",{class:r.normalizeClass(["ao-lexical-editor",c.value])},[r.createVNode(r.unref(fde),null,{contentEditable:r.withCtx(()=>[r.createVNode(r.unref(ede),{class:"ao-lexical-editor__content",onKeydown:m,onPaste:h},{placeholder:r.withCtx(()=>[r.createElementVNode("div",pde,r.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),r.createVNode(r.unref(sde)),r.createVNode(r.unref(lde)),r.createVNode(r.unref(d),{onReady:f,onBlockStyleChange:$[0]||($[0]=B=>l.value=B),onSelectionChange:p})]),_:3}))}});function mde(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:Fp(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=ee();if(!Z(h)||!h.isCollapsed()){c();return}const g=h.anchor.getNode();if(!X(g)){c();return}const C=g.getTextContent().slice(0,h.anchor.offset).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!C){c();return}n.value=C[1],o.value=!0,s.value>=l.value.length&&(s.value=0)}function d(){const h=t.value;if(!h||!o.value)return;const g=window.getSelection();if(!g||g.rangeCount===0)return;const y=g.getRangeAt(0),C=y.getClientRects().item(0)??y.getBoundingClientRect(),v=h.getRootElement();if(!v)return;const _=v.getBoundingClientRect();i.value={top:C.bottom-_.top+4,left:C.left-_.left}}function f(h){const g=t.value;g&&(g.update(()=>{const y=ee();if(!Z(y)||!y.isCollapsed())return;const C=y.anchor.getNode();if(!X(C))return;const v=C.getTextContent(),_=y.anchor.offset,w=v.slice(0,_).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!w)return;const k=_-w[0].length,A=`@${h} `,T=v.slice(0,k)+A+v.slice(_);C.setTextContent(T);const S=k+A.length;y.anchor.set(C.getKey(),S,"text"),y.focus.set(C.getKey(),S,"text")}),c(),g.focus())}function p(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 g=l.value[s.value];return g&&f(g.name),!0}case"Escape":return h.preventDefault(),c(),!0;default:return!1}}function m(){const h=t.value;if(h)return h.registerUpdateListener(({editorState:g})=>{g.read(()=>{u()}),o.value&&requestAnimationFrame(()=>{d()})})}return{mentionQuery:n,showMentionList:o,mentionListPosition:i,filteredUsers:l,selectedIndex:s,selectUserMention:f,handleKeydown:p,closeMentionList:c,setupMentionTracking:m}}const hde={key:0,class:"ao-comment-editor__toolbar"},gde=["onClick"],Rg=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:f,selectedIndex:p,selectUserMention:m,handleKeydown:h,closeMentionList:g,setupMentionTracking:y}=mde(a,c);let C,v;const _=r.computed(()=>o.toolbarVisibility==="always"||l.value);r.onUnmounted(()=>{C==null||C(),v!==void 0&&window.clearTimeout(v)});function b(x){a.value=x,C==null||C(),C=y()}function w(){v!==void 0&&(window.clearTimeout(v),v=void 0),l.value||(l.value=!0,i("focus"))}function k(){v!==void 0&&window.clearTimeout(v),v=window.setTimeout(()=>{var B;v=void 0;const x=(B=a.value)==null?void 0:B.getRootElement(),$=document.activeElement;x&&$ instanceof Node&&x.contains($)||l.value&&(l.value=!1,i("blur"))},100)}function A(x){if(!h(x)){if(x.key==="Enter"&&(x.ctrlKey||x.metaKey)){x.preventDefault(),T();return}if(x.key==="Escape"){if(u.value){g();return}x.preventDefault(),S()}}}function T(){const x=s.value;if(!x)return;const $=x.getMarkdown();$.trim()&&i("submit",$)}function S(){g(),i("cancel")}function E(){var x;(x=s.value)==null||x.clear(),g()}function D(){var x;(x=s.value)==null||x.focus()}return e({submit:T,cancel:S,reset:E,focus:D}),(x,$)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[_.value?(r.openBlock(),r.createElementBlock("div",hde,[r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:$[0]||($[0]=r.withModifiers(()=>{},["prevent"])),onClick:$[1]||($[1]=B=>{var V;return(V=s.value)==null?void 0:V.toggleBold()})},[...$[14]||($[14]=[r.createElementVNode("strong",null,"B",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:$[2]||($[2]=r.withModifiers(()=>{},["prevent"])),onClick:$[3]||($[3]=B=>{var V;return(V=s.value)==null?void 0:V.toggleItalic()})},[...$[15]||($[15]=[r.createElementVNode("em",null,"I",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:$[4]||($[4]=r.withModifiers(()=>{},["prevent"])),onClick:$[5]||($[5]=B=>{var V;return(V=s.value)==null?void 0:V.toggleStrikethrough()})},[...$[16]||($[16]=[r.createElementVNode("s",null,"S",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:$[6]||($[6]=r.withModifiers(()=>{},["prevent"])),onClick:$[7]||($[7]=B=>{var V;return(V=s.value)==null?void 0:V.toggleInlineCode()})},[...$[17]||($[17]=[r.createElementVNode("span",null,"</>",-1)])],32),$[18]||($[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:$[8]||($[8]=r.withModifiers(()=>{},["prevent"])),onClick:$[9]||($[9]=B=>{var V;return(V=s.value)==null?void 0:V.insertBulletList()})}," • ",32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Numbered list",onMousedown:$[10]||($[10]=r.withModifiers(()=>{},["prevent"])),onClick:$[11]||($[11]=B=>{var V;return(V=s.value)==null?void 0:V.insertNumberedList()})}," 1. ",32)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:"ao-comment-editor__wrapper",onFocusin:w,onFocusout:k},[r.createVNode(Fg,{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(f).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(f),(B,V)=>(r.openBlock(),r.createElementBlock("li",{key:B.id,class:r.normalizeClass({"ao-comment-editor__mention-item--selected":V===r.unref(p)}),onMousedown:$[12]||($[12]=r.withModifiers(()=>{},["prevent"])),onClick:I=>r.unref(m)(B.name)}," @"+r.toDisplayString(B.name),43,gde))),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:$[13]||($[13]=r.withModifiers(()=>{},["prevent"])),onClick:T},[r.createVNode(ke,{name:"SendRounded"})],32)):r.createCommentVNode("",!0)],32)],2))}});const vde={class:"ao-comment"},_de={class:"ao-comment__created-at"},yde={class:"ao-comment__body"},Cde={class:"ao-comment__content-wrapper"},bde={key:0,class:"ao-comment__footer"},kde=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&&Br(n.editedAt),g=Br(n.createdAt),y=new Date,C=h??g;return C&&j5(C,y)});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 f(){var h;(h=l.value)==null||h.submit()}function p(){s.value=!1,a.value=n.content}function m(){o("remove")}return(h,g)=>{var y;return r.openBlock(),r.createElementBlock("li",vde,[r.createElementVNode("span",_de,r.toDisplayString(c.value),1),i.value?(r.openBlock(),r.createBlock(Xn,{key:0,"avatar-url":(y=t.user)==null?void 0:y.avatarUrl,"user-name":i.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):r.createCommentVNode("",!0),r.createElementVNode("div",yde,[r.createElementVNode("div",Cde,[s.value?(r.openBlock(),r.createBlock(Rg,{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:p},null,8,["initial-markdown","mentionable-users"])):(r.openBlock(),r.createBlock(Tm,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(r.openBlock(),r.createElementBlock("div",bde,[s.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(ue,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:p}),r.createVNode(ue,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:f})],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(ue,{label:h.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u},null,8,["label"]),r.createVNode(ue,{label:h.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:m},null,8,["label"])],64))])):r.createCommentVNode("",!0)])])}}});const wde={class:"ao-comments__new"},Ede={key:0,class:"ao-comments__list"},Sde=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((f,p)=>Oy(Br(f.createdAt),Br(p.createdAt)))),s=f=>n.users.find(p=>p.id===f),a=r.ref(null);r.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)});const l=r.ref(null);function c(f){var m;if(!f.trim())return;const p=$d(f,n.users);o("createComment",{authorId:n.userId,message:f,mentionedUserIds:p}),(m=l.value)==null||m.reset()}function u(f,p){const m=$d(p,n.users);o("updateComment",{id:f,message:p,mentionedUserIds:m})}function d(f){o("removeComment",{id:f})}return(f,p)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"commentsContainer",ref:a,class:"ao-comments"},[r.createElementVNode("div",wde,[r.createVNode(Rg,{ref_key:"newCommentEditorRef",ref:l,"initial-markdown":t.newComment,"mentionable-users":t.users,placeholder:f.$t("activity.comment.label"),onSubmit:c},null,8,["initial-markdown","mentionable-users","placeholder"])]),i.value.length>0?(r.openBlock(),r.createElementBlock("ul",Ede,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,m=>(r.openBlock(),r.createBlock(kde,{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 xde=["aria-label"],Tde={class:"ao-file-preview__actions"},Ade=["aria-label"],Nde={key:0,class:"ao-file-preview__loading"},Dde=["src","alt"],$de=["src","title"],Bde={key:3,class:"ao-file-preview__fallback"},Mde={class:"ao-file-preview__fallback-title"},Lde={class:"ao-file-preview__fallback-filename"},Ode=["aria-label"],Vde={key:2,class:"ao-file-preview__info"},Ide=["title"],Pde={key:0,class:"ao-file-preview__info-counter"},Fde={key:3,class:"ao-file-preview__info"},Rde={class:"ao-file-preview__info-counter"},zde=r.defineComponent({__name:"AoFilePreview",props:{attachments:{},currentIndex:{},loadPreview:{type:Function}},emits:["update:currentIndex","close"],setup(t,{emit:e}){Wt();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),f=r.computed(()=>{var E,D;return((D=(E=c.value)==null?void 0:E.mimeType)==null?void 0:D.toLowerCase())??""}),p=r.computed(()=>{var E;return((E=c.value)==null?void 0:E.name)??""}),m=r.computed(()=>{var E;return((E=p.value.split(".").pop())==null?void 0:E.toLowerCase())??""}),h=r.computed(()=>f.value.startsWith("image/")?!0:["jpg","jpeg","png","gif","webp"].includes(m.value)),g=r.computed(()=>f.value==="application/pdf"||m.value==="pdf"),y=r.computed(()=>h.value||g.value),C=r.computed(()=>h.value?"ImageRounded":g.value?"PictureAsPdfRounded":"InsertDriveFileRounded");function v(){i.value&&(URL.revokeObjectURL(i.value),i.value=null)}async function _(){const E=c.value,D=++l;if(v(),a.value=!1,s.value=!1,!E||!y.value){a.value=!0;return}s.value=!0;try{if(!n.loadPreview)throw new Error("Attachment preview loader is missing");const x=await n.loadPreview(E);if(D!==l)return;if(!x.size)throw new Error("Empty file received");i.value=URL.createObjectURL(x)}catch(x){if(D!==l)return;console.error("Failed to load attachment preview:",x),a.value=!0}finally{D===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 E=c.value;if(!(E!=null&&E.url))return;const D=document.createElement("a");D.href=E.url,D.download=E.name,D.target="_blank",D.rel="noopener noreferrer",document.body.appendChild(D),D.click(),D.remove()}function A(){v(),a.value=!0}function T(){++l,v(),o("close")}function S(E){switch(E.key){case"Escape":T();break;case"ArrowLeft":b();break;case"ArrowRight":w();break}}return r.watch(()=>n.currentIndex,()=>{if(n.currentIndex<0||n.currentIndex>=n.attachments.length){T();return}_()},{immediate:!0}),r.onMounted(()=>{document.addEventListener("keydown",S)}),r.onUnmounted(()=>{++l,document.removeEventListener("keydown",S),v()}),(E,D)=>{var x,$,B,V,I,j;return r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createElementVNode("div",{class:"ao-file-preview",role:"dialog","aria-modal":"true","aria-label":(x=c.value)==null?void 0:x.name},[r.createElementVNode("div",Tde,[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"}),D[2]||(D[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(T,["stop"])},[r.createVNode(ke,{name:"CloseRounded",size:"sm"})])]),r.createElementVNode("div",{class:"ao-file-preview__backdrop",onClick:T}),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":E.$t("activity.attachment.preview.previous"),onClick:r.withModifiers(b,["stop"])},[r.createVNode(ke,{name:"ArrowBackRounded",size:"lg"})],8,Ade)),r.createElementVNode("div",{class:"ao-file-preview__content",onClick:D[1]||(D[1]=r.withModifiers(()=>{},["stop"]))},[s.value?(r.openBlock(),r.createElementBlock("div",Nde,[...D[3]||(D[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:($=c.value)==null?void 0:$.name,class:"ao-file-preview__image",onError:A},null,40,Dde)):g.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("div",{key:2,class:"ao-file-preview__pdf-container",onClick:D[0]||(D[0]=r.withModifiers(()=>{},["stop"]))},[r.createElementVNode("iframe",{src:i.value,title:(B=c.value)==null?void 0:B.name,class:"ao-file-preview__pdf"},null,8,$de)])):(r.openBlock(),r.createElementBlock("div",Bde,[r.createVNode(ke,{name:C.value,size:"xl"},null,8,["name"]),r.createElementVNode("p",Mde,r.toDisplayString(E.$t("activity.attachment.preview.notAvailable")),1),r.createElementVNode("p",Lde,r.toDisplayString((V=c.value)==null?void 0:V.name),1),r.createVNode(ue,{variant:"solid",color:"primary",size:"sm",label:E.$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":E.$t("activity.attachment.preview.next"),onClick:r.withModifiers(w,["stop"])},[r.createVNode(ke,{name:"ArrowForwardRounded",size:"lg"})],8,Ode)),h.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("div",Vde,[r.createElementVNode("span",{class:"ao-file-preview__info-filename",title:(I=c.value)==null?void 0:I.name},r.toDisplayString((j=c.value)==null?void 0:j.name),9,Ide),t.attachments.length>1?(r.openBlock(),r.createElementBlock("span",Pde,r.toDisplayString(t.currentIndex+1)+" / "+r.toDisplayString(t.attachments.length),1)):r.createCommentVNode("",!0)])):t.attachments.length>1?(r.openBlock(),r.createElementBlock("div",Fde,[r.createElementVNode("span",Rde,r.toDisplayString(t.currentIndex+1)+" / "+r.toDisplayString(t.attachments.length),1)])):r.createCommentVNode("",!0)],8,xde)])}}});const Kc=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(ue,{color:t.modelValue?t.color:r.unref(Jc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>i())},null,8,["color"]))}}),Ude=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 qde={class:"toggle-wrapper"};function Hde(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("div",qde,[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 jde=te(Ude,[["render",Hde],["__scopeId","data-v-40c1f714"]]),Wde=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 Zde=["onClick"],Kde={class:"tab-button__label"},Gde={key:0,class:"tab-button__badge"};function Yde(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",Kde,r.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(r.openBlock(),r.createElementBlock("span",Gde,r.toDisplayString(a.count),1)):r.createCommentVNode("",!0)],10,Zde))),128))],2)}const vs=te(Wde,[["render",Yde],["__scopeId","data-v-3d268d7b"]]),Jde={class:"ao-rich-text-editor"},Xde={class:"ao-rich-text-editor__toolbar"},Qde=["value"],e1e={class:"ao-rich-text-editor__actions"},t1e=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",Jde,[r.createVNode(Fg,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,onPaste:l},{toolbar:r.withCtx(()=>{var d;return[r.createElementVNode("div",Xde,[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,Qde),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]=f=>{var p;return(p=o.value)==null?void 0:p.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]=f=>{var p;return(p=o.value)==null?void 0:p.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]=f=>{var p;return(p=o.value)==null?void 0:p.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]=f=>{var p;return(p=o.value)==null?void 0:p.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]=f=>{var p;return(p=o.value)==null?void 0:p.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]=f=>{var p;return(p=o.value)==null?void 0:p.insertNumberedList()})}," 1. ",32)])]}),_:1},8,["initial-markdown","placeholder"]),r.createElementVNode("div",e1e,[r.createVNode(ue,{variant:"ghost",color:"neutral",label:"Cancel",onClick:a}),r.createVNode(ue,{variant:"solid",color:"primary",label:"Save",onClick:s})])]))}});const n1e={class:"ao-activity-details"},o1e={class:"ao-activity-details__main"},r1e={class:"ao-activity-details__header"},i1e={key:1,class:"ao-activity__category"},s1e={key:2,class:"ao-activity-details__created-by"},a1e={class:"ao-feed__activity-details__header"},l1e={key:0,class:"ao-field ao-feed__activity-details__project"},c1e={class:"ao-field__label"},u1e={key:1,class:"ao-field ao-feed__activity-details__project"},d1e={class:"ao-field__label"},f1e={class:"ao-activity-details__content"},p1e={class:"ao-activity-details__tab-content"},m1e={class:"ao-fieldset"},h1e={class:"ao-field__row"},g1e={class:"ao-activity-details__tab-content"},v1e={class:"ao-fieldset"},_1e={class:"ao-fieldset__body"},y1e={class:"ao-activity-details__tab-content"},C1e={key:0,class:"ao-fieldset"},b1e={class:"ao-activity-details__aside"},k1e={class:"ao-activity-details__close-button"},w1e={class:"ao-activity-details__aside-section"},E1e={class:"ao-field__label"},S1e={key:0,class:"ao-activity-details__aside-section"},x1e={class:"ao-field"},T1e={class:"ao-field__label"},A1e={key:1,class:"ao-activity-details__aside-section"},N1e={class:"ao-field"},D1e={class:"ao-field__label"},$1e={class:"ao-field ao-field--multiselect"},B1e={class:"assignee-inline"},M1e={class:"ao-field__label"},L1e={key:1,class:"ao-sprint-form"},O1e={class:"ao-sprint-form__field"},V1e={class:"ao-field__label"},I1e=["placeholder"],P1e={class:"ao-sprint-form__field"},F1e={class:"ao-field__label"},R1e={class:"ao-sprint-form__field"},z1e={class:"ao-field__label"},U1e={class:"ao-sprint-form__actions"},q1e={class:"ao-activity-details__aside-section"},H1e={class:"ao-field ao-field--multiselect"},j1e={class:"assignee-inline"},W1e={class:"ao-field__label"},Z1e={class:"ao-activity-details__aside-section"},K1e={key:0,class:"ao-field__row"},G1e={class:"ao-field"},Y1e={class:"ao-field__label"},J1e=["readonly"],X1e={class:"ao-activity-details__aside-section"},Q1e={class:"ao-field__row"},efe={class:"ao-field ao-field--inline"},tfe={class:"ao-field__label"},nfe=["readonly"],ofe={class:"ao-field__row"},rfe={class:"ao-field ao-field--inline"},ife={class:"ao-field__label"},sfe={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},afe={class:"ao-activity-details__aside-section"},lfe={class:"ao-activity-details__aside-section"},cfe={class:"ao-fieldset ao-activity-details__aside-section"},ufe={class:"ao-fieldset__title"},dfe={class:"ao-fieldset__body"},ffe={class:"ao-field__row"},pfe={class:"ao-field ao-field--multiselect"},mfe={class:"ao-field__label"},hfe={class:"ao-field__row"},gfe={class:"ao-field ao-field--multiselect"},vfe={class:"ao-field__label"},rd=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:()=>({})},loadAttachmentPreview:{type:Function,default:void 0}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","createSprint"],setup(t,{emit:e}){const n=t,o=e,{t:i}=Wt(),s=r.ref("description"),a=r.computed(()=>{var L,K;return[{label:i("activity.description.label")||"Description",value:"description"},{label:i("activity.tasks.title")||"Checklist",value:"checklist",count:((L=n.activity.tasks)==null?void 0:L.length)??0},{label:i("activity.comments.title")||"Commentaires",value:"comments",count:((K=n.activity.comments)==null?void 0:K.length)??0}]}),l=r.computed(()=>{var L;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((L=n.activity.assignee)==null?void 0:L.id):!1}),c=r.ref(!1),u=r.ref(null),d=L=>{o("update:activity",{id:n.activity.id,name:L})},f=r.computed(()=>n.activity.description??""),p=()=>{l.value&&(c.value=!0)},m=L=>{o("update:activity",{id:n.activity.id,description:L}),c.value=!1},h=()=>{c.value=!1};r.watch(()=>n.activity.id,()=>{c.value=!1});const g=r.computed({get(){return n.activity.estimation??0},set(L){o("update:activity",{id:n.activity.id,estimation:L})}}),y=r.computed({get(){var K;const L=(K=n.timeTrackingData)==null?void 0:K[n.activity.id];return(L==null?void 0:L.timeSpent)??0},set(){}}),C=r.computed(()=>{var K;return((K=n.activity.project)==null?void 0:K.estimationUnit)==="days"?"d":"h"}),v=r.computed(()=>{var K;const L=(K=n.activity.project)==null?void 0:K.estimationUnit;return Ba(y.value,L)}),_=r.computed({get(){return n.activity.important??!1},set(L){o("update:activity",{id:n.activity.id,important:L})}}),b=r.computed({get(){return n.activity.blocked??!1},set(L){o("update:activity",{id:n.activity.id,blocked:L})}});r.computed({get(){return n.activity.private??!1},set(L){o("update:activity",{id:n.activity.id,private:L})}});const w=r.computed({get(){return n.activity.deadline},set(L){o("update:activity",{id:n.activity.id,deadline:L})}}),k=r.computed({get(){return n.activity.activityType!=="dev"},set(L){var fe;const K=L?"standard":"dev";n.activity.activityType!=="dev"&&K==="dev"&&!n.activity.devStatus&&((fe=n.devStatuses)!=null&&fe.length)?o("update:activity",{id:n.activity.id,type:K,statusDevId:n.devStatuses[0].id}):o("update:activity",{id:n.activity.id,type:K})}}),A=r.computed(()=>{var L;return((L=n.devStatuses)==null?void 0:L.map(K=>({value:K.id,label:K.name})))??[]}),T=r.computed({get(){var L;return(L=n.activity.devStatus)==null?void 0:L.id},set(L){o("update:activity",{id:n.activity.id,statusDevId:L})}}),S=r.computed(()=>{var K;const L=(K=n.activity.project)==null?void 0:K.id;return L?n.sprints.filter(fe=>fe.projectId===L).map(fe=>({value:fe.id,label:fe.name,startDate:fe.startDate})).sort((fe,Ue)=>fe.startDate&&Ue.startDate?new Date(fe.startDate).getTime()-new Date(Ue.startDate).getTime():fe.label.localeCompare(Ue.label)):[]}),E=r.computed(()=>{var L;return(L=n.activity.sprint)==null?void 0:L.id}),D=L=>{o("update:activity",{id:n.activity.id,sprintId:L})},x=()=>{o("update:activity",{id:n.activity.id,sprintId:null})},$=r.computed(()=>{var L;return!((L=n.activity.project)!=null&&L.id)}),B=r.ref(!1),V=r.ref(""),I=r.ref(""),j=r.ref(""),F=r.computed(()=>{var fe;const L=(fe=n.activity.project)==null?void 0:fe.id;return L?`Sprint ${n.sprints.filter(Ue=>Ue.projectId===L).length+1}`:"Sprint 1"}),q=r.computed(()=>{var Je;if(!((Je=n.activity.project)==null?void 0:Je.id))return!1;const K=V.value.trim(),fe=I.value,Ue=j.value;return!K||!fe||!Ue?!1:new Date(Ue)>=new Date(fe)}),Q=()=>{var K;(K=n.activity.project)!=null&&K.id&&(B.value=!0,V.value=F.value,I.value="",j.value="")},ae=()=>{B.value=!1,V.value="",I.value="",j.value=""},ne=()=>{var K;if(!q.value)return;const L=(K=n.activity.project)==null?void 0:K.id;L&&(o("createSprint",{projectId:L,name:V.value.trim(),startDate:I.value,endDate:j.value}),B.value=!1,V.value="",I.value="",j.value="")},ye=r.computed(()=>n.templateActivities.filter(L=>L.id!==n.activity.id).map(L=>({label:L.name,value:L.id}))),re=r.computed({get(){var L;return(L=n.activity.dependingOn)==null?void 0:L.map(K=>K.id)},set(L){L&&o("update:activity",{id:n.activity.id,dependingOn:L})}}),ie=r.computed(()=>ye.value.map(L=>{var K;return{...L,disabled:(K=n.activity.blocking)==null?void 0:K.some(fe=>fe.id===L.value)}})),U=r.computed({get(){var L;return(L=n.activity.blocking)==null?void 0:L.map(K=>K.id)},set(L){L&&o("update:activity",{id:n.activity.id,blocking:L})}}),P=r.computed(()=>ye.value.map(L=>{var K;return{...L,disabled:(K=n.activity.dependingOn)==null?void 0:K.some(fe=>fe.id===L.value)}})),se=L=>{o("addSubtask",L)},we=L=>{o("updateSubtask",L)},Re=L=>{o("deleteSubtask",L)};function Ce(){n.userId?ge.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function R(L){ge.value=[L]}const le=r.computed(()=>{var K;const L=new Map;return(K=n.users)==null||K.forEach(fe=>{L.has(fe.id)||L.set(fe.id,fe)}),Array.from(L.values()).map(fe=>({label:`${fe.firstName} ${fe.lastName}`,value:fe.id,avatar:fe.avatarUrl}))}),ge=r.computed({get(){var L,K;return(L=n.activity.assignee)!=null&&L.id?[(K=n.activity.assignee)==null?void 0:K.id]:[]},set(L){o("update:activity",{id:n.activity.id,assigneeId:L[0]??null})}}),me=L=>{o("addFiles",{activityId:n.activity.id,files:L})},Ee=L=>{me(L)},ze=L=>{o("removeFile",{activityId:n.activity.id,file:L})},Be=r.computed(()=>n.projects.map(L=>({value:L.id,label:L.name}))),Ae=r.computed(()=>{var K,fe,Ue;const L=(Ue=(fe=(K=n.activity)==null?void 0:K.project)==null?void 0:fe.phases)==null?void 0:Ue.reduce((Je,Vn)=>[...Je,...Vn.milestones],[]);return L==null?void 0:L.map(Je=>({value:Je.id,label:Je.name}))}),Ie=L=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:L})},Pe=L=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:L})},dt=r.computed(()=>{var L;return(L=n.statuses)==null?void 0:L.map(K=>({value:K.id,label:K.name}))}),Ln=L=>{o("update:activity",{id:n.activity.id,statusId:L})},He=L=>{o("update:activity",{id:n.activity.id,statusDevId:L})},_t=L=>{o("addComment",{...L,activityId:n.activity.id})},it=L=>{o("updateComment",L)},Bt=L=>{o("removeComment",L)},Zt=r.computed(()=>{var L,K;return((L=n.activity.createdBy)==null?void 0:L.firstName)&&((K=n.activity.createdBy)==null?void 0:K.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`}),_n=r.computed(()=>n.activity.createdAt?new Date(n.activity.createdAt).toLocaleDateString("en-UK",{day:"2-digit",month:"2-digit",year:"numeric"}):"");function On(){const L=window.location.origin,K=n.activity.slug,fe=`${L}/activity-feed/slug/${K}`;navigator.clipboard.writeText(fe).then(()=>{console.log(`Link copied to clipboard: ${fe}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return(L,K)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(La,{onClose:K[14]||(K[14]=fe=>L.$emit("close"))},{default:r.withCtx(()=>{var fe,Ue,Je,Vn;return[r.createElementVNode("div",n1e,[r.createElementVNode("div",o1e,[r.createElementVNode("div",r1e,[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:On},null,8,["label"])):r.createCommentVNode("",!0),t.breadcrumbs?(r.openBlock(),r.createElementBlock("div",i1e,r.toDisplayString(t.breadcrumbs),1)):r.createCommentVNode("",!0),r.createVNode(ht,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":d},null,8,["title","is-editable"]),Zt.value?(r.openBlock(),r.createElementBlock("div",s1e,r.toDisplayString(L.$t("activity.createdBy.label",{name:Zt.value,date:_n.value})),1)):r.createCommentVNode("",!0),r.createElementVNode("div",a1e,[Be.value?(r.openBlock(),r.createElementBlock("label",l1e,[r.createElementVNode("span",c1e,r.toDisplayString(L.$t("activity.project.label")),1),r.createVNode(Ct,{options:Be.value,value:(fe=t.activity.project)==null?void 0:fe.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:Ie},null,8,["options","value","disabled","caret"])])):r.createCommentVNode("",!0),Ae.value?(r.openBlock(),r.createElementBlock("label",u1e,[r.createElementVNode("span",d1e,r.toDisplayString(L.$t("activity.milestone.label")),1),r.createVNode(Ct,{options:Ae.value,value:(Ue=t.activity.milestone)==null?void 0:Ue.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:Pe},null,8,["options","value","disabled","caret"])])):r.createCommentVNode("",!0)]),r.renderSlot(L.$slots,"header")]),r.createElementVNode("div",f1e,[r.createVNode(vs,{modelValue:s.value,"onUpdate:modelValue":K[0]||(K[0]=Se=>s.value=Se),tabs:a.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),r.withDirectives(r.createElementVNode("div",p1e,[r.createElementVNode("fieldset",m1e,[r.createElementVNode("div",h1e,[r.createVNode(Yk,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&!t.isTemplate&&!!t.userId,onAdd:me,onRemove:ze,onPreview:K[1]||(K[1]=Se=>u.value=Se)},{default:r.withCtx(()=>[c.value?(r.openBlock(),r.createBlock(t1e,{key:1,"initial-markdown":f.value,onSave:m,onCancel:h,onPaste:Ee},null,8,["initial-markdown"])):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":l.value}]),onClick:p},[r.createVNode(Tm,{content:f.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[r.vShow,s.value==="description"]]),r.withDirectives(r.createElementVNode("div",g1e,[r.createElementVNode("fieldset",v1e,[r.createElementVNode("div",_1e,[r.createVNode(Pk,{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":l.value,"is-template":t.isTemplate,onAdd:se,onUpdate:we,onDelete:Re},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[r.vShow,s.value==="checklist"]]),r.withDirectives(r.createElementVNode("div",y1e,[t.isTemplate!==!0&&t.userId?(r.openBlock(),r.createElementBlock("div",C1e,[r.createVNode(Sde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:_t,onUpdateComment:it,onRemoveComment:Bt},null,8,["comments","users","user-id"])])):r.createCommentVNode("",!0)],512),[[r.vShow,s.value==="comments"]])])]),r.createElementVNode("div",b1e,[r.createElementVNode("div",k1e,[r.createVNode(ke,{name:"CloseRounded",onClick:K[2]||(K[2]=Se=>L.$emit("close"))})]),r.createElementVNode("div",w1e,[r.createElementVNode("span",E1e,r.toDisplayString(L.$t("activity.type.label")),1),r.createVNode(jde,{"is-left":k.value,"onUpdate:isLeft":K[3]||(K[3]=Se=>k.value=Se),"left-label":"Standard","right-label":"Development",class:"ao-activity-type-toggle"},null,8,["is-left"])]),dt.value?(r.openBlock(),r.createElementBlock("div",S1e,[r.createElementVNode("label",x1e,[r.createElementVNode("span",T1e,r.toDisplayString(L.$t("activity.status.label")),1),r.createVNode(Ct,{class:"ao-activity-details__multiselect",options:dt.value,value:(Je=t.activity.status)==null?void 0:Je.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:Ln},null,8,["options","value","disabled","caret"])])])):r.createCommentVNode("",!0),t.activity.activityType==="dev"?(r.openBlock(),r.createElementBlock("div",A1e,[r.createElementVNode("label",N1e,[r.createElementVNode("span",D1e,r.toDisplayString(L.$t("activity.devStatus.label")),1),r.createVNode(Ct,{class:"ao-activity-details__multiselect",options:A.value,value:T.value,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:He},null,8,["options","value","disabled","caret"])]),r.createElementVNode("div",$1e,[r.createElementVNode("div",B1e,[r.createElementVNode("span",M1e,r.toDisplayString(L.$t("activity.sprint.label")),1),(Vn=t.activity.project)!=null&&Vn.id&&l.value&&!B.value?(r.openBlock(),r.createBlock(ue,{key:0,label:L.$t("activity.sprint.new"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:Q},null,8,["label"])):r.createCommentVNode("",!0)]),B.value?(r.openBlock(),r.createElementBlock("div",L1e,[r.createElementVNode("div",O1e,[r.createElementVNode("label",V1e,r.toDisplayString(L.$t("activity.sprint.nameLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":K[4]||(K[4]=Se=>V.value=Se),class:"ao-field__input",type:"text",placeholder:L.$t("activity.sprint.namePlaceholder")},null,8,I1e),[[r.vModelText,V.value]])]),r.createElementVNode("div",P1e,[r.createElementVNode("label",F1e,r.toDisplayString(L.$t("activity.sprint.startDateLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":K[5]||(K[5]=Se=>I.value=Se),class:"ao-field__input",type:"date"},null,512),[[r.vModelText,I.value]])]),r.createElementVNode("div",R1e,[r.createElementVNode("label",z1e,r.toDisplayString(L.$t("activity.sprint.endDateLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":K[6]||(K[6]=Se=>j.value=Se),class:"ao-field__input",type:"date"},null,512),[[r.vModelText,j.value]])]),r.createElementVNode("div",U1e,[r.createVNode(ue,{type:"button",variant:"ghost",label:L.$t("common.cancel"),onClick:ae},null,8,["label"]),r.createVNode(ue,{type:"button",color:"primary",variant:"solid",label:L.$t("common.create"),disabled:!q.value,onClick:ne},null,8,["label","disabled"])])])):(r.openBlock(),r.createBlock(Ct,{key:0,class:"ao-activity-details__multiselect",options:S.value,value:E.value,"can-clear":!0,"can-deselect":!0,searchable:!0,disabled:$.value||!l.value,placeholder:$.value?L.$t("activity.sprint.selectProjectFirst"):L.$t("activity.sprint.placeholder"),caret:l.value,onSelect:D,onClear:x,onDeselect:x},null,8,["options","value","disabled","placeholder","caret"]))]),r.renderSlot(L.$slots,"sprintModal")])):r.createCommentVNode("",!0),r.createElementVNode("div",q1e,[r.createElementVNode("div",H1e,[r.createElementVNode("div",j1e,[r.createElementVNode("span",W1e,r.toDisplayString(L.$t("activity.assignee.label")),1),r.createVNode(ue,{label:L.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:Ce},null,8,["label"])]),r.createVNode(Ct,{modelValue:ge.value,"onUpdate:modelValue":K[7]||(K[7]=Se=>ge.value=Se),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:le.value,"close-on-select":!0,searchable:!0,placeholder:L.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:R},{tag:r.withCtx(({option:Se,handleTagRemove:Mt})=>[r.createVNode(Xn,{"user-name":Se.label,"avatar-url":Se.avatar,"is-closable":!0,onClose:kt=>Mt(Se,kt)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),r.createElementVNode("div",Z1e,[t.isTemplate!==!0&&t.userId?(r.openBlock(),r.createElementBlock("div",K1e,[r.createElementVNode("label",G1e,[r.createElementVNode("span",Y1e,r.toDisplayString(L.$t("activity.deadline.label")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":K[8]||(K[8]=Se=>w.value=Se),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,J1e),[[r.vModelText,w.value,void 0,{lazy:!0}]])])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",X1e,[r.createElementVNode("div",Q1e,[r.createElementVNode("label",efe,[r.createElementVNode("span",tfe,r.toDisplayString(L.$t("activity.estimation.label"))+" ("+r.toDisplayString(C.value)+")",1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":K[9]||(K[9]=Se=>g.value=Se),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,nfe),[[r.vModelText,g.value,void 0,{lazy:!0,number:!0}]])])]),r.createElementVNode("div",ofe,[r.createElementVNode("label",rfe,[r.createElementVNode("span",ife,r.toDisplayString(L.$t("activity.timeSpent.label"))+" ("+r.toDisplayString(C.value)+")",1),r.createElementVNode("span",sfe,r.toDisplayString(v.value),1)])])]),r.createElementVNode("div",afe,[r.createVNode(Kc,{modelValue:_.value,"onUpdate:modelValue":K[10]||(K[10]=Se=>_.value=Se),modelModifiers:{lazy:!0},label:L.$t("activity.important.label"),disabled:!l.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(Kc,{modelValue:b.value,"onUpdate:modelValue":K[11]||(K[11]=Se=>b.value=Se),modelModifiers:{lazy:!0},label:L.$t("activity.blocked.label"),disabled:!l.value,variant:"ghost","icon-name":"BlockRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),r.createElementVNode("fieldset",cfe,[r.createElementVNode("div",ufe,[r.createVNode(ke,{name:"FlowsheetOutlineRounded"}),r.createVNode(ht,{level:4,title:L.$t("activity.dependencies.title")},null,8,["title"])]),r.createElementVNode("div",dfe,[r.createElementVNode("div",ffe,[r.createElementVNode("label",pfe,[r.createElementVNode("span",mfe,r.toDisplayString(L.$t("activity.dependingOn.label")),1),r.createVNode(Ct,{modelValue:re.value,"onUpdate:modelValue":K[12]||(K[12]=Se=>re.value=Se),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:ie.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),r.createElementVNode("div",hfe,[r.createElementVNode("label",gfe,[r.createElementVNode("span",vfe,r.toDisplayString(L.$t("activity.blocking.label")),1),r.createVNode(Ct,{modelValue:U.value,"onUpdate:modelValue":K[13]||(K[13]=Se=>U.value=Se),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:P.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),r.renderSlot(L.$slots,"default",{activity:t.activity})])])]}),_:3}),u.value!==null?(r.openBlock(),r.createBlock(zde,{key:0,attachments:t.activity.attachments||[],"current-index":u.value,"load-preview":n.loadAttachmentPreview,"onUpdate:currentIndex":K[15]||(K[15]=fe=>u.value=fe),onClose:K[16]||(K[16]=fe=>u.value=null)},null,8,["attachments","current-index","load-preview"])):r.createCommentVNode("",!0)],64))}});const _fe=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||Ze.ACTIVITIES),s=r.computed({get(){return i.value},set(v){i.value=v,o("update:rule",{...n.rule,itemType:v,subItemId:void 0})}}),a=r.computed(()=>Object.values(Ze)),l=r.computed({get(){return n.rule.subItemId},set(v){o("update:rule",{...n.rule,subItemId:v,itemType:n.rule.itemType||s.value})}}),c=r.computed(()=>{var _;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(_={[Ze.ACTIVITIES]:n.templateActivities,[Ze.MILESTONES]:n.templateMilestones,[Ze.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(v){o("update:rule",{...n.rule,comparator:v})}}),f=r.computed(()=>Object.values(Cp)),p=r.toRef(n.rule.trigger),m=r.computed({get(){return p.value},set(v){o("update:rule",{...n.rule,trigger:v})}}),h=r.computed(()=>Object.values(bp)),g=r.computed({get(){return n.rule.duration},set(v){o("update:rule",{...n.rule,duration:v})}}),y=r.computed({get(){return n.rule.durationUnit},set(v){o("update:rule",{...n.rule,durationUnit:v})}}),C=r.computed(()=>Object.values(kp));return(v,_)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:r.withCtx(()=>[r.createVNode(r.unref(lo),{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=b=>s.value=b),options:a.value},null,8,["modelValue","options"]),r.createVNode(r.unref(lo),{modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=b=>l.value=b),options:c.value},null,8,["modelValue","options"]),r.createVNode(r.unref(lo),{modelValue:m.value,"onUpdate:modelValue":_[2]||(_[2]=b=>m.value=b),options:h.value},null,8,["modelValue","options"]),r.createVNode(r.unref(lo),{modelValue:d.value,"onUpdate:modelValue":_[3]||(_[3]=b=>d.value=b),options:f.value},null,8,["modelValue","options"]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":_[4]||(_[4]=b=>g.value=b),type:"number",min:"0"},null,512),[[r.vModelText,g.value,void 0,{number:!0}]]),r.createVNode(r.unref(lo),{modelValue:y.value,"onUpdate:modelValue":_[5]||(_[5]=b=>y.value=b),options:C.value},null,8,["modelValue","options"]),r.createVNode(ue,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:_[6]||(_[6]=b=>v.$emit("close"))})]),_:1}))}});const yfe={class:"ao-template-rules__body"},Cfe={class:"ao-template-rules__list"},bfe=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(La,null,{header:r.withCtx(()=>[r.createVNode(ht,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:r.withCtx(()=>[r.createElementVNode("div",yfe,[r.createElementVNode("ul",Cfe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.rules,l=>(r.openBlock(),r.createBlock(_fe,{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(wo,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function Zo(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"},wfe={class:"ao-template-details__body"},Efe={class:"ao-template-details__cols"},Sfe={class:"ao-template-details__col"},xfe={class:"ao-list__footer"},Tfe={class:"ao-template-details__col"},Afe={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}=Wt(),o=t,i=e,s=r.computed(()=>{var F;return(F=o.templates)==null?void 0:F.find(q=>q.id===o.templateId)}),a=r.ref(!1);r.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),r.watch(()=>{var F;return(F=s.value)==null?void 0:F.phases},(F,q)=>{a.value&&Wn(F,q)});const l=r.computed(()=>{var F,q;return(q=(F=s==null?void 0:s.value)==null?void 0:F.phases)==null?void 0:q.find(Q=>Q.id===o.phaseId)});r.watch(()=>{var F;return(F=l.value)==null?void 0:F.milestones},(F,q)=>{a.value&&Wn(F,q)});const c=r.computed(()=>{var F,q;return(q=(F=l.value)==null?void 0:F.milestones)==null?void 0:q.find(Q=>Q.id===o.milestoneId)});r.watch(()=>{var F;return(F=c.value)==null?void 0:F.activities},(F,q)=>{a.value&&Wn(F,q)});const u=r.computed(()=>{var F,q;return((q=(F=s.value)==null?void 0:F.phases)==null?void 0:q.reduce((Q,ae)=>{const ne=ae.milestones||[];return[...Q,...ne]},[]))||[]}),d=r.computed(()=>{var F,q;return((q=(F=s.value)==null?void 0:F.phases)==null?void 0:q.reduce((Q,ae)=>{const ye=(ae.milestones||[]).reduce((re,ie)=>ie.activities?[...re,...ie.activities]:re,[]);return[...Q,...ye]},[]))||[]}),f=r.computed(()=>{var F,q;return(q=(F=c.value)==null?void 0:F.activities)==null?void 0:q.find(Q=>Q.id===o.activityId)}),p=r.computed(()=>{var F;return((F=s.value)==null?void 0:F.name)||o.templateId}),m=()=>{if(!s.value)return;const{name:F,rank:q}=Zo(s.value.phases,"phase",n);a.value=!0,i("addItem",{type:Ze.PHASES,templateId:o.templateId,item:{name:F,rank:q}})},h=F=>{i("updateItem",{templateId:o.templateId,id:o.templateId,itemType:Ze.TEMPLATES,data:{name:F}})},g=F=>{i("removeItem",{itemType:Ze.PHASES,templateId:o.templateId,data:{id:F}})},y=(F,q)=>{i("updateItem",{templateId:o.templateId,id:F,itemType:Ze.PHASES,data:{name:q}})},C=F=>{i("updateItem",F)},v=F=>{if(!l.value)return;const{name:q,rank:Q}=Zo(l.value.milestones,"milestone",n);a.value=!0,i("addItem",{type:Ze.MILESTONES,templateId:o.templateId,phaseId:F.phaseId,item:{name:q,rank:Q,phaseId:F.phaseId}})},_=F=>{i("removeItem",{itemType:Ze.MILESTONES,templateId:o.templateId,phaseId:F.phaseId,data:{id:F.id}})},b=F=>{const{id:q,...Q}=F;i("updateItem",{itemType:Ze.MILESTONES,id:q,templateId:o.templateId,data:Q})},w=F=>{const{milestoneId:q}=F;if(!c.value)return;const{name:Q,rank:ae}=Zo(c.value.activities,"activity",n);a.value=!0,i("addItem",{type:Ze.ACTIVITIES,milestoneId:q,templateId:o.templateId,item:{name:Q,rank:ae,milestoneId:q}})},k=F=>{var q,Q;i("removeItem",{itemType:Ze.ACTIVITIES,templateId:o.templateId,phaseId:(q=l.value)==null?void 0:q.id,milestoneId:(Q=c.value)==null?void 0:Q.id,data:{id:F.id}})},A=F=>{const{id:q,...Q}=F;i("updateItem",{itemType:Ze.ACTIVITIES,id:q,templateId:o.templateId,data:Q})},T=r.ref(!1),S=()=>{T.value=!T.value},E=()=>{i("addRule",{templateId:o.templateId})},D=F=>{i("removeRule",{id:F,templateId:o.templateId})},x=F=>{var q;if(F.moved){const Q=ns(F,((q=s.value)==null?void 0:q.phases)??[]);i("updateItem",{itemType:Ze.PHASES,id:F.moved.element.id,templateId:o.templateId,data:{rank:Q}})}},$=F=>{!l.value||!c.value||!f.value||i("addItem",{type:Ze.TASKS,activityId:F.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:F})},B=F=>{!l.value||!c.value||!f.value||i("updateItem",{itemType:Ze.TASKS,id:F.id,templateId:o.templateId,data:F})},V=F=>{!l.value||!c.value||!f.value||i("removeItem",{itemType:Ze.TASKS,activityId:f.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:F})},I=F=>{i("addFiles",F)},j=F=>{i("removeFile",F)};return(F,q)=>{var Q,ae,ne,ye,re,ie;return s.value?(r.openBlock(),r.createElementBlock("div",kfe,[r.createVNode(rs,{"can-go-back":!0,onGoBack:q[1]||(q[1]=U=>F.$router.push({name:r.unref(Uo).TEMPLATES_LIST}))},{primary:r.withCtx(()=>[r.createVNode(ht,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":q[0]||(q[0]=U=>{h(U)})},null,8,["title"])]),_:1}),r.createElementVNode("div",wfe,[r.createElementVNode("ol",Efe,[r.createElementVNode("li",Sfe,[r.createVNode(r.unref(ko),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:x},{header:r.withCtx(()=>[r.createVNode(ht,{title:F.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:r.withCtx(({element:U})=>{var P;return[r.createVNode(oC,{id:U.id,name:U.name,milestones:U.milestones,"is-active":((P=l.value)==null?void 0:P.id)===U.id,"is-draggable":!0,onClick:se=>F.$router.push({params:{templateId:t.templateId,phaseId:U.id}}),"onUpdate:title":se=>{y(U.id,se)},onRemove:()=>g(U.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:r.withCtx(()=>[r.createElementVNode("div",xfe,[r.createVNode(wo,{"icon-name":"AddBoxOutlineRounded",label:F.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),r.createElementVNode("li",Tfe,[l.value?(r.openBlock(),r.createBlock(sC,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(Q=c.value)==null?void 0:Q.id,onAddMilestone:v,onUpdateMilestone:b,onUpdatePhase:C,onRemoveMilestone:_},null,8,["template-id","phase","milestone-id"])):r.createCommentVNode("",!0)]),r.createElementVNode("li",Afe,[l.value&&c.value?(r.openBlock(),r.createBlock(cC,{key:0,"template-id":t.templateId,"phase-id":(ae=l.value)==null?void 0:ae.id,milestone:c.value,"activity-id":(ne=f.value)==null?void 0:ne.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"},[f.value?(r.openBlock(),r.createBlock(rd,{key:0,activity:f.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(ye=l.value)==null?void 0:ye.name} / ${(re=c.value)==null?void 0:re.name}`,"milestone-id":(ie=c.value)==null?void 0:ie.id,"template-activities":d.value,"template-milestones":u.value,"is-template":!0,"is-editable":!0,users:t.users,"attachment-enabled":!1,sprints:[],"onUpdate:activity":q[2]||(q[2]=U=>{f.value&&A(U)}),onClose:F.$router.back,onAddSubtask:$,onUpdateSubtask:B,onDeleteSubtask:V,onAddFiles:I,onRemoveFile:j},{default:r.withCtx(U=>[r.renderSlot(F.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(U)))]),_: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"},[T.value?(r.openBlock(),r.createBlock(bfe,{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:S,onAddRule:E,onRemoveRule:D},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):r.createCommentVNode("",!0)]))])):r.createCommentVNode("",!0)}}});const Nfe={class:"ao-card__content"},Dfe={key:0,class:"ao-card__header"},$fe={class:"ao-card__body"},Bfe={key:1,class:"ao-card__footer"},pl=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",Nfe,[e.$slots.header?(r.openBlock(),r.createElementBlock("header",Dfe,[r.renderSlot(e.$slots,"header")])):r.createCommentVNode("",!0),r.createElementVNode("div",$fe,[r.renderSlot(e.$slots,"default")]),e.$slots.footer?(r.openBlock(),r.createElementBlock("footer",Bfe,[r.renderSlot(e.$slots,"footer")])):r.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const ml=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 Rue=process.env.NODE_ENV==="production",sc="Invariant failed";function zue(t,e){if(!t){if(Rue)throw new Error(sc);var n=typeof e=="function"?e():e,o=n?"".concat(sc,": ").concat(n):sc;throw new Error(o)}}const Vg=Symbol("LexicalEditor"),Uue=(()=>{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:f,editorState:p,html:m}=a.initialConfig,h=Yle({editable:a.initialConfig.editable,html:m,namespace:u,nodes:d,theme:c,onError(y){s("error",y,h),f==null||f(y,h)}});g(h,p);function g(y,C){if(C!==null){if(C===void 0)y.update(()=>{const v=Ge();if(v.isEmpty()){const _=qe();v.append(_);const b=Ace?document.activeElement:null;(ee()!==null||b!==null&&b===y.getRootElement())&&_.select()}},l);else if(C!==null)switch(typeof C){case"string":{const v=y.parseEditorState(C);y.setEditorState(v,l);break}case"object":y.setEditorState(C,l);break;case"function":y.update(()=>{Ge().isEmpty()&&C(y)},l);break}}}return r.provide(Vg,h),r.onMounted(()=>{const y=a.initialConfig.editable;h.setEditable(y!==void 0?y:!0)}),(y,C)=>r.renderSlot(y.$slots,"default")}});return t.__vue_vine=!0,t})();function ti(){const t=r.inject(Vg,null);return t||zue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function que(t,e){if(t==null)return{};var n=Hue(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 Hue(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 jue=(()=>{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(()=>que(s,["editor"]));r.onMounted(()=>{function d(p){p&&p.ownerDocument&&p.ownerDocument.defaultView?s.editor.setRootElement(p):s.editor.setRootElement(null)}d(a.value),l.value=s.editor.isEditable();const f=s.editor.registerEditableListener(p=>{l.value=p});r.onUnmounted(f)});const u=r.computed(()=>{var d;return(d=s.role)!=null?d:"textbox"});return(d,f)=>(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 Wue(){return Ge().getTextContent()}function Zue(t,e=!0){if(t)return!1;let n=Wue();return e&&(n=n.trim()),n===""}function Kue(t){if(!Zue(t,!1))return!1;const e=Ge().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const i=e[o];if(Ne(i))return!1;if(z(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(!X(c))return!1}}}return!0}function Ig(t){return()=>Kue(t)}function Gue(t){return t.getEditorState().read(Ig(t.isComposing()))}function Pg(t){const e=t.getEditorState().read(Ig(t.isComposing())),n=r.ref(e);function o(){const i=Gue(t);n.value=i}return r.onMounted(()=>{const i=gs(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));r.onUnmounted(()=>{i()})}),r.readonly(n)}function Yue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jue(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){Yue(t,i,n[i])})}return t}function Xue(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 Que(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Xue(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const ede=(()=>{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=ti(),a=r.ref(!1),l=Pg(s);return r.onMounted(()=>{a.value=s.isEditable();const c=s.registerEditableListener(u=>{a.value=u});r.onUnmounted(c)}),(c,u)=>{var d,f;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(jue),r.mergeProps({editor:r.unref(s)},Que(Jue({},c.$props),{role:(d=c.role)!=null?d:"textbox",spellcheck:(f=c.spellcheck)!=null?f:!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 tde(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(!(Z(s)&&Z(a)&&a.isCollapsed()&&s.isCollapsed()))return 0;const l=function(C,v,_){const b=C._nodeMap,w=[];for(const k of v){const T=b.get(k);T!==void 0&&w.push(T)}for(const[k,T]of _){if(!T)continue;const A=b.get(k);A===void 0||Qe(A)||w.push(A)}return w}(e,n,o);if(l.length===0)return 0;if(l.length>1){const C=e._nodeMap,v=C.get(s.anchor.key),_=C.get(a.anchor.key);return v&&_&&!t._nodeMap.has(v.__key)&&X(v)&&v.__text.length===1&&s.anchor.offset===1?2:0}const c=l[0],u=t._nodeMap.get(c.__key);if(!X(u)||!X(c)||u.__mode!==c.__mode)return 0;const d=u.__text,f=c.__text;if(d===f)return 0;const p=s.anchor,m=a.anchor;if(p.key!==m.key||p.type!=="text")return 0;const h=p.offset,g=m.offset,y=f.length-d.length;return y===1&&g===h-1?2:y===-1&&g===h+1?3:y===-1&&g===h?4:0}function nde(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 f=tde(i,s,l,c,t.isComposing()),p=(()=>{const m=a===null||a.editor===t,h=u.has(Nle);if(!h&&m&&u.has(Mi))return 0;if(i===null)return 1;const g=s._selection;if(!(l.size>0||c.size>0))return g!==null?0:2;const y=typeof e=="number"?e:e.peek();return h===!1&&f!==0&&f===o&&d<n+y&&m||l.size===1&&function(C,v,_){const b=v._nodeMap.get(C),w=_._nodeMap.get(C),k=v._selection,T=_._selection;return!(Z(k)&&Z(T)&&k.anchor.type==="element"&&k.focus.type==="element"&&T.anchor.type==="text"&&T.focus.type==="text"||!X(b)||!X(w)||b.__parent!==w.__parent)&&JSON.stringify(v.read(()=>b.exportJSON()))===JSON.stringify(_.read(()=>w.exportJSON()))}(Array.from(l)[0],i,s)?0:1})();return n=d,o=f,p}}function hp(t){t.undoStack=[],t.redoStack=[],t.current=null}function ode(t,e,n){const o=nde(t,n);return gs(t.registerCommand(xu,()=>(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),Ae),t.registerCommand(Au,()=>(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),Ae),t.registerCommand(wle,()=>(hp(e),!1),Ae),t.registerCommand(Ele,()=>(hp(e),t.dispatchCommand(Os,!1),t.dispatchCommand(Vs,!1),!0),Ae),t.registerUpdateListener(({editorState:s,prevEditorState:a,dirtyLeaves:l,dirtyElements:c,tags:u})=>{const d=e.current,f=e.redoStack,p=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)f.length!==0&&(e.redoStack=[],t.dispatchCommand(Os,!1)),d!==null&&(p.push({...d}),t.dispatchCommand(Vs,!0));else if(h===2)return;e.current={editor:t,editorState:s}}))}function rde(){return{current:null,redoStack:[],undoStack:[]}}function ide(t,e,n){const o=r.computed(()=>r.toValue(e)||rde());r.watchEffect(i=>{const s=ode(r.toValue(t),o.value,r.toValue(n)||1e3);i(s)})}const sde=(()=>{const t=r.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const i=e,s=ti();return ide(s,()=>i.externalHistoryState,()=>i.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function ade(t){r.onMounted(()=>{const e=Rce(t);r.onUnmounted(()=>{e()})})}const lde=(()=>{const t=r.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const i=e,s=ti();return r.watchEffect(a=>{if(!s.hasNodes([lr,Ao]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!i.hasStrictIndent)return;const l=zce(s);a(l)}),ade(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function cde(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 ude=r.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=ti(),e=cde(t);return()=>e.value}});function dde(t){r.onMounted(()=>{const e=gs(iue(t),Jce(t));r.onUnmounted(e)})}const fde=(()=>{const t=r.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const i=ti(),s=Pg(i);return dde(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(ude))],64))}});return t.__vue_vine=!0,t})(),ac=[xg,Ag,Tg,Ng,$g,Bg,Lg,Mg,Dg],pde={class:"ao-lexical-editor__placeholder"},Fg=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:[lr,Ao,cl,ul],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:()=>{Pue(o.initialMarkdown||"",ac)},onError(x){console.error("Lexical error:",x)}},d=r.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:x=>!0,blockStyleChange:x=>!0,selectionChange:x=>!0},setup(x,{emit:$}){const B=ti();let V=null,I=null;function j(){B.getEditorState().read(()=>{const F=ee();if(!Z(F))return;$("selectionChange",F.clone());const q=F.anchor.getNode(),Q=q.getKey()==="root"?q:q.getTopLevelElementOrThrow();if(pg(Q)){const ae=Q.getTag();if(ae==="h1"||ae==="h2"||ae==="h3"){$("blockStyleChange",ae);return}}if(dl(Q)){$("blockStyleChange","code");return}$("blockStyleChange","paragraph")})}return r.onMounted(()=>{$("ready",B),j(),I=Iue(B,ac),V=B.registerUpdateListener(()=>{j()})}),r.onUnmounted(()=>{I==null||I(),V==null||V()}),()=>null}});function f(x){s.value=x,i("ready",x)}function p(x){a.value=x}function m(x){i("keydown",x)}function h(x){const $=x.clipboardData;if(!$)return;const B=[],V=$.items;if(V){for(const I of V)if(I.kind==="file"&&I.type.startsWith("image/")){const j=I.getAsFile();if(j){const F=g(j);B.push(F)}}B.length>0&&(x.preventDefault(),i("paste",B))}}function g(x){if(x.name&&x.name.length>0&&x.name!=="image.png"&&x.name!=="screenshot.png"&&!x.name.startsWith("image-"))return x;const B=new Date,V=B.getFullYear(),I=String(B.getMonth()+1).padStart(2,"0"),j=String(B.getDate()).padStart(2,"0"),F=String(B.getHours()).padStart(2,"0"),q=String(B.getMinutes()).padStart(2,"0");let Q="png";x.type==="image/jpeg"?Q="jpg":x.type==="image/webp"?Q="webp":x.type==="image/gif"&&(Q="gif");const ae=`pasted-image-${V}-${I}-${j}-${F}${q}.${Q}`;return new File([x],ae,{type:x.type})}function y(){a.value&&vt(a.value.clone())}function C(x){const $=s.value;$&&($.update(()=>{y(),x()}),$.focus())}function v(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Jt,"bold"),x.focus())}function _(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Jt,"italic"),x.focus())}function b(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Jt,"strikethrough"),x.focus())}function w(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(Jt,"code"),x.focus())}function k(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(rg,void 0),x.focus())}function T(){const x=s.value;x&&(x.update(()=>{y()}),x.dispatchCommand(ig,void 0),x.focus())}function A(x){C(()=>{const $=ee();if(Z($)){if($.isCollapsed()||$.focus.set($.anchor.key,$.anchor.offset,$.anchor.type),x==="paragraph"){nc($,()=>qe());return}if(x==="code"){nc($,()=>xn());return}nc($,()=>zo(x))}}),l.value=x}function S(){const x=s.value;return x?x.getEditorState().read(()=>Fue(ac)):""}function E(){const x=s.value;x&&x.update(()=>{const $=Ge();$.clear(),$.append(qe())})}function D(){var x;(x=s.value)==null||x.focus()}return e({toggleBold:v,toggleItalic:_,toggleStrikethrough:b,toggleInlineCode:w,insertBulletList:k,insertNumberedList:T,setBlockStyle:A,getMarkdown:S,clear:E,focus:D,blockStyle:l}),(x,$)=>(r.openBlock(),r.createBlock(r.unref(Uue),{"initial-config":u},{default:r.withCtx(()=>[r.renderSlot(x.$slots,"toolbar"),r.createElementVNode("div",{class:r.normalizeClass(["ao-lexical-editor",c.value])},[r.createVNode(r.unref(fde),null,{contentEditable:r.withCtx(()=>[r.createVNode(r.unref(ede),{class:"ao-lexical-editor__content",onKeydown:m,onPaste:h},{placeholder:r.withCtx(()=>[r.createElementVNode("div",pde,r.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),r.createVNode(r.unref(sde)),r.createVNode(r.unref(lde)),r.createVNode(r.unref(d),{onReady:f,onBlockStyleChange:$[0]||($[0]=B=>l.value=B),onSelectionChange:p})]),_:3}))}});function mde(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:Fp(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=ee();if(!Z(h)||!h.isCollapsed()){c();return}const g=h.anchor.getNode();if(!X(g)){c();return}const C=g.getTextContent().slice(0,h.anchor.offset).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!C){c();return}n.value=C[1],o.value=!0,s.value>=l.value.length&&(s.value=0)}function d(){const h=t.value;if(!h||!o.value)return;const g=window.getSelection();if(!g||g.rangeCount===0)return;const y=g.getRangeAt(0),C=y.getClientRects().item(0)??y.getBoundingClientRect(),v=h.getRootElement();if(!v)return;const _=v.getBoundingClientRect();i.value={top:C.bottom-_.top+4,left:C.left-_.left}}function f(h){const g=t.value;g&&(g.update(()=>{const y=ee();if(!Z(y)||!y.isCollapsed())return;const C=y.anchor.getNode();if(!X(C))return;const v=C.getTextContent(),_=y.anchor.offset,w=v.slice(0,_).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!w)return;const k=_-w[0].length,T=`@${h} `,A=v.slice(0,k)+T+v.slice(_);C.setTextContent(A);const S=k+T.length;y.anchor.set(C.getKey(),S,"text"),y.focus.set(C.getKey(),S,"text")}),c(),g.focus())}function p(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 g=l.value[s.value];return g&&f(g.name),!0}case"Escape":return h.preventDefault(),c(),!0;default:return!1}}function m(){const h=t.value;if(h)return h.registerUpdateListener(({editorState:g})=>{g.read(()=>{u()}),o.value&&requestAnimationFrame(()=>{d()})})}return{mentionQuery:n,showMentionList:o,mentionListPosition:i,filteredUsers:l,selectedIndex:s,selectUserMention:f,handleKeydown:p,closeMentionList:c,setupMentionTracking:m}}const hde={key:0,class:"ao-comment-editor__toolbar"},gde=["onClick"],Rg=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:f,selectedIndex:p,selectUserMention:m,handleKeydown:h,closeMentionList:g,setupMentionTracking:y}=mde(a,c);let C,v;const _=r.computed(()=>o.toolbarVisibility==="always"||l.value);r.onUnmounted(()=>{C==null||C(),v!==void 0&&window.clearTimeout(v)});function b(x){a.value=x,C==null||C(),C=y()}function w(){v!==void 0&&(window.clearTimeout(v),v=void 0),l.value||(l.value=!0,i("focus"))}function k(){v!==void 0&&window.clearTimeout(v),v=window.setTimeout(()=>{var B;v=void 0;const x=(B=a.value)==null?void 0:B.getRootElement(),$=document.activeElement;x&&$ instanceof Node&&x.contains($)||l.value&&(l.value=!1,i("blur"))},100)}function T(x){if(!h(x)){if(x.key==="Enter"&&(x.ctrlKey||x.metaKey)){x.preventDefault(),A();return}if(x.key==="Escape"){if(u.value){g();return}x.preventDefault(),S()}}}function A(){const x=s.value;if(!x)return;const $=x.getMarkdown();$.trim()&&i("submit",$)}function S(){g(),i("cancel")}function E(){var x;(x=s.value)==null||x.clear(),g()}function D(){var x;(x=s.value)==null||x.focus()}return e({submit:A,cancel:S,reset:E,focus:D}),(x,$)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[_.value?(r.openBlock(),r.createElementBlock("div",hde,[r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:$[0]||($[0]=r.withModifiers(()=>{},["prevent"])),onClick:$[1]||($[1]=B=>{var V;return(V=s.value)==null?void 0:V.toggleBold()})},[...$[14]||($[14]=[r.createElementVNode("strong",null,"B",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:$[2]||($[2]=r.withModifiers(()=>{},["prevent"])),onClick:$[3]||($[3]=B=>{var V;return(V=s.value)==null?void 0:V.toggleItalic()})},[...$[15]||($[15]=[r.createElementVNode("em",null,"I",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:$[4]||($[4]=r.withModifiers(()=>{},["prevent"])),onClick:$[5]||($[5]=B=>{var V;return(V=s.value)==null?void 0:V.toggleStrikethrough()})},[...$[16]||($[16]=[r.createElementVNode("s",null,"S",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:$[6]||($[6]=r.withModifiers(()=>{},["prevent"])),onClick:$[7]||($[7]=B=>{var V;return(V=s.value)==null?void 0:V.toggleInlineCode()})},[...$[17]||($[17]=[r.createElementVNode("span",null,"</>",-1)])],32),$[18]||($[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:$[8]||($[8]=r.withModifiers(()=>{},["prevent"])),onClick:$[9]||($[9]=B=>{var V;return(V=s.value)==null?void 0:V.insertBulletList()})}," • ",32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Numbered list",onMousedown:$[10]||($[10]=r.withModifiers(()=>{},["prevent"])),onClick:$[11]||($[11]=B=>{var V;return(V=s.value)==null?void 0:V.insertNumberedList()})}," 1. ",32)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:"ao-comment-editor__wrapper",onFocusin:w,onFocusout:k},[r.createVNode(Fg,{ref_key:"lexicalEditorRef",ref:s,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,variant:"compact",onReady:b,onKeydown:T},null,8,["initial-markdown","placeholder"]),r.unref(u)&&r.unref(f).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(f),(B,V)=>(r.openBlock(),r.createElementBlock("li",{key:B.id,class:r.normalizeClass({"ao-comment-editor__mention-item--selected":V===r.unref(p)}),onMousedown:$[12]||($[12]=r.withModifiers(()=>{},["prevent"])),onClick:I=>r.unref(m)(B.name)}," @"+r.toDisplayString(B.name),43,gde))),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:$[13]||($[13]=r.withModifiers(()=>{},["prevent"])),onClick:A},[r.createVNode(ke,{name:"SendRounded"})],32)):r.createCommentVNode("",!0)],32)],2))}});const vde={class:"ao-comment"},_de={class:"ao-comment__created-at"},yde={class:"ao-comment__body"},Cde={class:"ao-comment__content-wrapper"},bde={key:0,class:"ao-comment__footer"},kde=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&&Br(n.editedAt),g=Br(n.createdAt),y=new Date,C=h??g;return C&&j5(C,y)});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 f(){var h;(h=l.value)==null||h.submit()}function p(){s.value=!1,a.value=n.content}function m(){o("remove")}return(h,g)=>{var y;return r.openBlock(),r.createElementBlock("li",vde,[r.createElementVNode("span",_de,r.toDisplayString(c.value),1),i.value?(r.openBlock(),r.createBlock(Xn,{key:0,"avatar-url":(y=t.user)==null?void 0:y.avatarUrl,"user-name":i.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):r.createCommentVNode("",!0),r.createElementVNode("div",yde,[r.createElementVNode("div",Cde,[s.value?(r.openBlock(),r.createBlock(Rg,{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:p},null,8,["initial-markdown","mentionable-users"])):(r.openBlock(),r.createBlock(Am,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(r.openBlock(),r.createElementBlock("div",bde,[s.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(ue,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:p}),r.createVNode(ue,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:f})],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(ue,{label:h.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u},null,8,["label"]),r.createVNode(ue,{label:h.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:m},null,8,["label"])],64))])):r.createCommentVNode("",!0)])])}}});const wde={class:"ao-comments__new"},Ede={key:0,class:"ao-comments__list"},Sde=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((f,p)=>Oy(Br(f.createdAt),Br(p.createdAt)))),s=f=>n.users.find(p=>p.id===f),a=r.ref(null);r.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)});const l=r.ref(null);function c(f){var m;if(!f.trim())return;const p=$d(f,n.users);o("createComment",{authorId:n.userId,message:f,mentionedUserIds:p}),(m=l.value)==null||m.reset()}function u(f,p){const m=$d(p,n.users);o("updateComment",{id:f,message:p,mentionedUserIds:m})}function d(f){o("removeComment",{id:f})}return(f,p)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"commentsContainer",ref:a,class:"ao-comments"},[r.createElementVNode("div",wde,[r.createVNode(Rg,{ref_key:"newCommentEditorRef",ref:l,"initial-markdown":t.newComment,"mentionable-users":t.users,placeholder:f.$t("activity.comment.label"),onSubmit:c},null,8,["initial-markdown","mentionable-users","placeholder"])]),i.value.length>0?(r.openBlock(),r.createElementBlock("ul",Ede,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,m=>(r.openBlock(),r.createBlock(kde,{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 xde=["aria-label"],Ade={class:"ao-file-preview__actions"},Tde=["aria-label"],Nde={key:0,class:"ao-file-preview__loading"},Dde=["src","alt"],$de=["src","title"],Bde={key:3,class:"ao-file-preview__fallback"},Mde={class:"ao-file-preview__fallback-title"},Lde={class:"ao-file-preview__fallback-filename"},Ode=["aria-label"],Vde={key:2,class:"ao-file-preview__info"},Ide=["title"],Pde={key:0,class:"ao-file-preview__info-counter"},Fde={key:3,class:"ao-file-preview__info"},Rde={class:"ao-file-preview__info-counter"},zde=r.defineComponent({__name:"AoFilePreview",props:{attachments:{},currentIndex:{},loadPreview:{type:Function}},emits:["update:currentIndex","close"],setup(t,{emit:e}){Wt();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),f=r.computed(()=>{var E,D;return((D=(E=c.value)==null?void 0:E.mimeType)==null?void 0:D.toLowerCase())??""}),p=r.computed(()=>{var E;return((E=c.value)==null?void 0:E.name)??""}),m=r.computed(()=>{var E;return((E=p.value.split(".").pop())==null?void 0:E.toLowerCase())??""}),h=r.computed(()=>f.value.startsWith("image/")?!0:["jpg","jpeg","png","gif","webp"].includes(m.value)),g=r.computed(()=>f.value==="application/pdf"||m.value==="pdf"),y=r.computed(()=>h.value||g.value),C=r.computed(()=>h.value?"ImageRounded":g.value?"PictureAsPdfRounded":"InsertDriveFileRounded");function v(){i.value&&(URL.revokeObjectURL(i.value),i.value=null)}async function _(){const E=c.value,D=++l;if(v(),a.value=!1,s.value=!1,!E||!y.value){a.value=!0;return}s.value=!0;try{if(!n.loadPreview)throw new Error("Attachment preview loader is missing");const x=await n.loadPreview(E);if(D!==l)return;if(!x.size)throw new Error("Empty file received");i.value=URL.createObjectURL(x)}catch(x){if(D!==l)return;console.error("Failed to load attachment preview:",x),a.value=!0}finally{D===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 E=c.value;if(!(E!=null&&E.url))return;const D=document.createElement("a");D.href=E.url,D.download=E.name,D.target="_blank",D.rel="noopener noreferrer",document.body.appendChild(D),D.click(),D.remove()}function T(){v(),a.value=!0}function A(){++l,v(),o("close")}function S(E){switch(E.key){case"Escape":A();break;case"ArrowLeft":b();break;case"ArrowRight":w();break}}return r.watch(()=>n.currentIndex,()=>{if(n.currentIndex<0||n.currentIndex>=n.attachments.length){A();return}_()},{immediate:!0}),r.onMounted(()=>{document.addEventListener("keydown",S)}),r.onUnmounted(()=>{++l,document.removeEventListener("keydown",S),v()}),(E,D)=>{var x,$,B,V,I,j;return r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createElementVNode("div",{class:"ao-file-preview",role:"dialog","aria-modal":"true","aria-label":(x=c.value)==null?void 0:x.name},[r.createElementVNode("div",Ade,[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"}),D[2]||(D[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(A,["stop"])},[r.createVNode(ke,{name:"CloseRounded",size:"sm"})])]),r.createElementVNode("div",{class:"ao-file-preview__backdrop",onClick:A}),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":E.$t("activity.attachment.preview.previous"),onClick:r.withModifiers(b,["stop"])},[r.createVNode(ke,{name:"ArrowBackRounded",size:"lg"})],8,Tde)),r.createElementVNode("div",{class:"ao-file-preview__content",onClick:D[1]||(D[1]=r.withModifiers(()=>{},["stop"]))},[s.value?(r.openBlock(),r.createElementBlock("div",Nde,[...D[3]||(D[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:($=c.value)==null?void 0:$.name,class:"ao-file-preview__image",onError:T},null,40,Dde)):g.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("div",{key:2,class:"ao-file-preview__pdf-container",onClick:D[0]||(D[0]=r.withModifiers(()=>{},["stop"]))},[r.createElementVNode("iframe",{src:i.value,title:(B=c.value)==null?void 0:B.name,class:"ao-file-preview__pdf"},null,8,$de)])):(r.openBlock(),r.createElementBlock("div",Bde,[r.createVNode(ke,{name:C.value,size:"xl"},null,8,["name"]),r.createElementVNode("p",Mde,r.toDisplayString(E.$t("activity.attachment.preview.notAvailable")),1),r.createElementVNode("p",Lde,r.toDisplayString((V=c.value)==null?void 0:V.name),1),r.createVNode(ue,{variant:"solid",color:"primary",size:"sm",label:E.$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":E.$t("activity.attachment.preview.next"),onClick:r.withModifiers(w,["stop"])},[r.createVNode(ke,{name:"ArrowForwardRounded",size:"lg"})],8,Ode)),h.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("div",Vde,[r.createElementVNode("span",{class:"ao-file-preview__info-filename",title:(I=c.value)==null?void 0:I.name},r.toDisplayString((j=c.value)==null?void 0:j.name),9,Ide),t.attachments.length>1?(r.openBlock(),r.createElementBlock("span",Pde,r.toDisplayString(t.currentIndex+1)+" / "+r.toDisplayString(t.attachments.length),1)):r.createCommentVNode("",!0)])):t.attachments.length>1?(r.openBlock(),r.createElementBlock("div",Fde,[r.createElementVNode("span",Rde,r.toDisplayString(t.currentIndex+1)+" / "+r.toDisplayString(t.attachments.length),1)])):r.createCommentVNode("",!0)],8,xde)])}}});const Kc=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(ue,{color:t.modelValue?t.color:r.unref(Jc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>i())},null,8,["color"]))}}),Ude=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 qde={class:"toggle-wrapper"};function Hde(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("div",qde,[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 jde=te(Ude,[["render",Hde],["__scopeId","data-v-40c1f714"]]),Wde=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 Zde=["onClick"],Kde={class:"tab-button__label"},Gde={key:0,class:"tab-button__badge"};function Yde(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",Kde,r.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(r.openBlock(),r.createElementBlock("span",Gde,r.toDisplayString(a.count),1)):r.createCommentVNode("",!0)],10,Zde))),128))],2)}const vs=te(Wde,[["render",Yde],["__scopeId","data-v-3d268d7b"]]),Jde={class:"ao-rich-text-editor"},Xde={class:"ao-rich-text-editor__toolbar"},Qde=["value"],e1e={class:"ao-rich-text-editor__actions"},t1e=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",Jde,[r.createVNode(Fg,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,onPaste:l},{toolbar:r.withCtx(()=>{var d;return[r.createElementVNode("div",Xde,[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,Qde),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]=f=>{var p;return(p=o.value)==null?void 0:p.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]=f=>{var p;return(p=o.value)==null?void 0:p.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]=f=>{var p;return(p=o.value)==null?void 0:p.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]=f=>{var p;return(p=o.value)==null?void 0:p.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]=f=>{var p;return(p=o.value)==null?void 0:p.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]=f=>{var p;return(p=o.value)==null?void 0:p.insertNumberedList()})}," 1. ",32)])]}),_:1},8,["initial-markdown","placeholder"]),r.createElementVNode("div",e1e,[r.createVNode(ue,{variant:"ghost",color:"neutral",label:"Cancel",onClick:a}),r.createVNode(ue,{variant:"solid",color:"primary",label:"Save",onClick:s})])]))}});const n1e={class:"ao-activity-details"},o1e={class:"ao-activity-details__main"},r1e={class:"ao-activity-details__header"},i1e={key:1,class:"ao-activity__category"},s1e={key:2,class:"ao-activity-details__created-by"},a1e={class:"ao-feed__activity-details__header"},l1e={key:0,class:"ao-field ao-feed__activity-details__project"},c1e={class:"ao-field__label"},u1e={key:1,class:"ao-field ao-feed__activity-details__project"},d1e={class:"ao-field__label"},f1e={class:"ao-activity-details__content"},p1e={class:"ao-activity-details__tab-content"},m1e={class:"ao-fieldset"},h1e={class:"ao-field__row"},g1e={class:"ao-activity-details__tab-content"},v1e={class:"ao-fieldset"},_1e={class:"ao-fieldset__body"},y1e={class:"ao-activity-details__tab-content"},C1e={key:0,class:"ao-fieldset"},b1e={class:"ao-activity-details__aside"},k1e={class:"ao-activity-details__close-button"},w1e={class:"ao-activity-details__aside-section"},E1e={class:"ao-field__label"},S1e={key:0,class:"ao-activity-details__aside-section"},x1e={class:"ao-field"},A1e={class:"ao-field__label"},T1e={key:1,class:"ao-activity-details__aside-section"},N1e={class:"ao-field"},D1e={class:"ao-field__label"},$1e={class:"ao-field ao-field--multiselect"},B1e={class:"assignee-inline"},M1e={class:"ao-field__label"},L1e={key:1,class:"ao-sprint-form"},O1e={class:"ao-sprint-form__field"},V1e={class:"ao-field__label"},I1e=["placeholder"],P1e={class:"ao-sprint-form__field"},F1e={class:"ao-field__label"},R1e={class:"ao-sprint-form__field"},z1e={class:"ao-field__label"},U1e={class:"ao-sprint-form__actions"},q1e={class:"ao-activity-details__aside-section"},H1e={class:"ao-field ao-field--multiselect"},j1e={class:"assignee-inline"},W1e={class:"ao-field__label"},Z1e={class:"ao-activity-details__aside-section"},K1e={key:0,class:"ao-field__row"},G1e={class:"ao-field"},Y1e={class:"ao-field__label"},J1e=["readonly"],X1e={class:"ao-activity-details__aside-section"},Q1e={class:"ao-field__row"},efe={class:"ao-field ao-field--inline"},tfe={class:"ao-field__label"},nfe=["readonly"],ofe={class:"ao-field__row"},rfe={class:"ao-field ao-field--inline"},ife={class:"ao-field__label"},sfe={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},afe={class:"ao-activity-details__aside-section"},lfe={class:"ao-activity-details__aside-section"},cfe={class:"ao-fieldset ao-activity-details__aside-section"},ufe={class:"ao-fieldset__title"},dfe={class:"ao-fieldset__body"},ffe={class:"ao-field__row"},pfe={class:"ao-field ao-field--multiselect"},mfe={class:"ao-field__label"},hfe={class:"ao-field__row"},gfe={class:"ao-field ao-field--multiselect"},vfe={class:"ao-field__label"},rd=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:()=>({})},loadAttachmentPreview:{type:Function,default:void 0}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","createSprint"],setup(t,{emit:e}){const n=t,o=e,{t:i}=Wt(),s=r.ref("description"),a=r.computed(()=>{var L,K;return[{label:i("activity.description.label")||"Description",value:"description"},{label:i("activity.tasks.title")||"Checklist",value:"checklist",count:((L=n.activity.tasks)==null?void 0:L.length)??0},{label:i("activity.comments.title")||"Commentaires",value:"comments",count:((K=n.activity.comments)==null?void 0:K.length)??0}]}),l=r.computed(()=>{var L;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((L=n.activity.assignee)==null?void 0:L.id):!1}),c=r.ref(!1),u=r.ref(null),d=L=>{o("update:activity",{id:n.activity.id,name:L})},f=r.computed(()=>n.activity.description??""),p=()=>{l.value&&(c.value=!0)},m=L=>{o("update:activity",{id:n.activity.id,description:L}),c.value=!1},h=()=>{c.value=!1};r.watch(()=>n.activity.id,()=>{c.value=!1});const g=r.computed({get(){return n.activity.estimation??0},set(L){o("update:activity",{id:n.activity.id,estimation:L})}}),y=r.computed({get(){var K;const L=(K=n.timeTrackingData)==null?void 0:K[n.activity.id];return(L==null?void 0:L.timeSpent)??0},set(){}}),C=r.computed(()=>{var K;return((K=n.activity.project)==null?void 0:K.estimationUnit)==="days"?"d":"h"}),v=r.computed(()=>{var K;const L=(K=n.activity.project)==null?void 0:K.estimationUnit;return Ba(y.value,L)}),_=r.computed({get(){return n.activity.important??!1},set(L){o("update:activity",{id:n.activity.id,important:L})}}),b=r.computed({get(){return n.activity.blocked??!1},set(L){o("update:activity",{id:n.activity.id,blocked:L})}});r.computed({get(){return n.activity.private??!1},set(L){o("update:activity",{id:n.activity.id,private:L})}});const w=r.computed({get(){return n.activity.deadline},set(L){o("update:activity",{id:n.activity.id,deadline:L})}}),k=r.computed({get(){return n.activity.activityType!=="dev"},set(L){var fe;const K=L?"standard":"dev";n.activity.activityType!=="dev"&&K==="dev"&&!n.activity.devStatus&&((fe=n.devStatuses)!=null&&fe.length)?o("update:activity",{id:n.activity.id,type:K,statusDevId:n.devStatuses[0].id}):o("update:activity",{id:n.activity.id,type:K})}}),T=r.computed(()=>{var L;return((L=n.devStatuses)==null?void 0:L.map(K=>({value:K.id,label:K.name})))??[]}),A=r.computed({get(){var L;return(L=n.activity.devStatus)==null?void 0:L.id},set(L){o("update:activity",{id:n.activity.id,statusDevId:L})}}),S=r.computed(()=>{var K;const L=(K=n.activity.project)==null?void 0:K.id;return L?n.sprints.filter(fe=>fe.projectId===L).map(fe=>({value:fe.id,label:fe.name,startDate:fe.startDate})).sort((fe,Ue)=>fe.startDate&&Ue.startDate?new Date(fe.startDate).getTime()-new Date(Ue.startDate).getTime():fe.label.localeCompare(Ue.label)):[]}),E=r.computed(()=>{var L;return(L=n.activity.sprint)==null?void 0:L.id}),D=L=>{o("update:activity",{id:n.activity.id,sprintId:L})},x=()=>{o("update:activity",{id:n.activity.id,sprintId:null})},$=r.computed(()=>{var L;return!((L=n.activity.project)!=null&&L.id)}),B=r.ref(!1),V=r.ref(""),I=r.ref(""),j=r.ref(""),F=r.computed(()=>{var fe;const L=(fe=n.activity.project)==null?void 0:fe.id;return L?`Sprint ${n.sprints.filter(Ue=>Ue.projectId===L).length+1}`:"Sprint 1"}),q=r.computed(()=>{var Je;if(!((Je=n.activity.project)==null?void 0:Je.id))return!1;const K=V.value.trim(),fe=I.value,Ue=j.value;return!K||!fe||!Ue?!1:new Date(Ue)>=new Date(fe)}),Q=()=>{var K;(K=n.activity.project)!=null&&K.id&&(B.value=!0,V.value=F.value,I.value="",j.value="")},ae=()=>{B.value=!1,V.value="",I.value="",j.value=""},ne=()=>{var K;if(!q.value)return;const L=(K=n.activity.project)==null?void 0:K.id;L&&(o("createSprint",{projectId:L,name:V.value.trim(),startDate:I.value,endDate:j.value}),B.value=!1,V.value="",I.value="",j.value="")},ye=r.computed(()=>n.templateActivities.filter(L=>L.id!==n.activity.id).map(L=>({label:L.name,value:L.id}))),re=r.computed({get(){var L;return(L=n.activity.dependingOn)==null?void 0:L.map(K=>K.id)},set(L){L&&o("update:activity",{id:n.activity.id,dependingOn:L})}}),ie=r.computed(()=>ye.value.map(L=>{var K;return{...L,disabled:(K=n.activity.blocking)==null?void 0:K.some(fe=>fe.id===L.value)}})),U=r.computed({get(){var L;return(L=n.activity.blocking)==null?void 0:L.map(K=>K.id)},set(L){L&&o("update:activity",{id:n.activity.id,blocking:L})}}),P=r.computed(()=>ye.value.map(L=>{var K;return{...L,disabled:(K=n.activity.dependingOn)==null?void 0:K.some(fe=>fe.id===L.value)}})),se=L=>{o("addSubtask",L)},we=L=>{o("updateSubtask",L)},Re=L=>{o("deleteSubtask",L)};function Ce(){n.userId?ge.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function R(L){ge.value=[L]}const le=r.computed(()=>{var K;const L=new Map;return(K=n.users)==null||K.forEach(fe=>{L.has(fe.id)||L.set(fe.id,fe)}),Array.from(L.values()).map(fe=>({label:`${fe.firstName} ${fe.lastName}`,value:fe.id,avatar:fe.avatarUrl}))}),ge=r.computed({get(){var L,K;return(L=n.activity.assignee)!=null&&L.id?[(K=n.activity.assignee)==null?void 0:K.id]:[]},set(L){o("update:activity",{id:n.activity.id,assigneeId:L[0]??null})}}),me=L=>{o("addFiles",{activityId:n.activity.id,files:L})},Ee=L=>{me(L)},ze=L=>{o("removeFile",{activityId:n.activity.id,file:L})},Be=r.computed(()=>n.projects.map(L=>({value:L.id,label:L.name}))),Te=r.computed(()=>{var K,fe,Ue;const L=(Ue=(fe=(K=n.activity)==null?void 0:K.project)==null?void 0:fe.phases)==null?void 0:Ue.reduce((Je,Vn)=>[...Je,...Vn.milestones],[]);return L==null?void 0:L.map(Je=>({value:Je.id,label:Je.name}))}),Ie=L=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:L})},Pe=L=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:L})},dt=r.computed(()=>{var L;return(L=n.statuses)==null?void 0:L.map(K=>({value:K.id,label:K.name}))}),Ln=L=>{o("update:activity",{id:n.activity.id,statusId:L})},He=L=>{o("update:activity",{id:n.activity.id,statusDevId:L})},_t=L=>{o("addComment",{...L,activityId:n.activity.id})},it=L=>{o("updateComment",L)},Bt=L=>{o("removeComment",L)},Zt=r.computed(()=>{var L,K;return((L=n.activity.createdBy)==null?void 0:L.firstName)&&((K=n.activity.createdBy)==null?void 0:K.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`}),_n=r.computed(()=>n.activity.createdAt?new Date(n.activity.createdAt).toLocaleDateString("en-UK",{day:"2-digit",month:"2-digit",year:"numeric"}):"");function On(){const L=window.location.origin,K=n.activity.slug,fe=`${L}/activity-feed/slug/${K}`;navigator.clipboard.writeText(fe).then(()=>{console.log(`Link copied to clipboard: ${fe}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return(L,K)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(La,{onClose:K[14]||(K[14]=fe=>L.$emit("close"))},{default:r.withCtx(()=>{var fe,Ue,Je,Vn;return[r.createElementVNode("div",n1e,[r.createElementVNode("div",o1e,[r.createElementVNode("div",r1e,[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:On},null,8,["label"])):r.createCommentVNode("",!0),t.breadcrumbs?(r.openBlock(),r.createElementBlock("div",i1e,r.toDisplayString(t.breadcrumbs),1)):r.createCommentVNode("",!0),r.createVNode(ht,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":d},null,8,["title","is-editable"]),Zt.value?(r.openBlock(),r.createElementBlock("div",s1e,r.toDisplayString(L.$t("activity.createdBy.label",{name:Zt.value,date:_n.value})),1)):r.createCommentVNode("",!0),r.createElementVNode("div",a1e,[Be.value?(r.openBlock(),r.createElementBlock("label",l1e,[r.createElementVNode("span",c1e,r.toDisplayString(L.$t("activity.project.label")),1),r.createVNode(Ct,{options:Be.value,value:(fe=t.activity.project)==null?void 0:fe.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:Ie},null,8,["options","value","disabled","caret"])])):r.createCommentVNode("",!0),Te.value?(r.openBlock(),r.createElementBlock("label",u1e,[r.createElementVNode("span",d1e,r.toDisplayString(L.$t("activity.milestone.label")),1),r.createVNode(Ct,{options:Te.value,value:(Ue=t.activity.milestone)==null?void 0:Ue.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:Pe},null,8,["options","value","disabled","caret"])])):r.createCommentVNode("",!0)]),r.renderSlot(L.$slots,"header")]),r.createElementVNode("div",f1e,[r.createVNode(vs,{modelValue:s.value,"onUpdate:modelValue":K[0]||(K[0]=Se=>s.value=Se),tabs:a.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),r.withDirectives(r.createElementVNode("div",p1e,[r.createElementVNode("fieldset",m1e,[r.createElementVNode("div",h1e,[r.createVNode(Yk,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&!t.isTemplate&&!!t.userId,onAdd:me,onRemove:ze,onPreview:K[1]||(K[1]=Se=>u.value=Se)},{default:r.withCtx(()=>[c.value?(r.openBlock(),r.createBlock(t1e,{key:1,"initial-markdown":f.value,onSave:m,onCancel:h,onPaste:Ee},null,8,["initial-markdown"])):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":l.value}]),onClick:p},[r.createVNode(Am,{content:f.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[r.vShow,s.value==="description"]]),r.withDirectives(r.createElementVNode("div",g1e,[r.createElementVNode("fieldset",v1e,[r.createElementVNode("div",_1e,[r.createVNode(Pk,{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":l.value,"is-template":t.isTemplate,onAdd:se,onUpdate:we,onDelete:Re},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[r.vShow,s.value==="checklist"]]),r.withDirectives(r.createElementVNode("div",y1e,[t.isTemplate!==!0&&t.userId?(r.openBlock(),r.createElementBlock("div",C1e,[r.createVNode(Sde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:_t,onUpdateComment:it,onRemoveComment:Bt},null,8,["comments","users","user-id"])])):r.createCommentVNode("",!0)],512),[[r.vShow,s.value==="comments"]])])]),r.createElementVNode("div",b1e,[r.createElementVNode("div",k1e,[r.createVNode(ke,{name:"CloseRounded",onClick:K[2]||(K[2]=Se=>L.$emit("close"))})]),r.createElementVNode("div",w1e,[r.createElementVNode("span",E1e,r.toDisplayString(L.$t("activity.type.label")),1),r.createVNode(jde,{"is-left":k.value,"onUpdate:isLeft":K[3]||(K[3]=Se=>k.value=Se),"left-label":"Standard","right-label":"Development",class:"ao-activity-type-toggle"},null,8,["is-left"])]),dt.value?(r.openBlock(),r.createElementBlock("div",S1e,[r.createElementVNode("label",x1e,[r.createElementVNode("span",A1e,r.toDisplayString(L.$t("activity.status.label")),1),r.createVNode(Ct,{class:"ao-activity-details__multiselect",options:dt.value,value:(Je=t.activity.status)==null?void 0:Je.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:Ln},null,8,["options","value","disabled","caret"])])])):r.createCommentVNode("",!0),t.activity.activityType==="dev"?(r.openBlock(),r.createElementBlock("div",T1e,[r.createElementVNode("label",N1e,[r.createElementVNode("span",D1e,r.toDisplayString(L.$t("activity.devStatus.label")),1),r.createVNode(Ct,{class:"ao-activity-details__multiselect",options:T.value,value:A.value,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:He},null,8,["options","value","disabled","caret"])]),r.createElementVNode("div",$1e,[r.createElementVNode("div",B1e,[r.createElementVNode("span",M1e,r.toDisplayString(L.$t("activity.sprint.label")),1),(Vn=t.activity.project)!=null&&Vn.id&&l.value&&!B.value?(r.openBlock(),r.createBlock(ue,{key:0,label:L.$t("activity.sprint.new"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:Q},null,8,["label"])):r.createCommentVNode("",!0)]),B.value?(r.openBlock(),r.createElementBlock("div",L1e,[r.createElementVNode("div",O1e,[r.createElementVNode("label",V1e,r.toDisplayString(L.$t("activity.sprint.nameLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":K[4]||(K[4]=Se=>V.value=Se),class:"ao-field__input",type:"text",placeholder:L.$t("activity.sprint.namePlaceholder")},null,8,I1e),[[r.vModelText,V.value]])]),r.createElementVNode("div",P1e,[r.createElementVNode("label",F1e,r.toDisplayString(L.$t("activity.sprint.startDateLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":K[5]||(K[5]=Se=>I.value=Se),class:"ao-field__input",type:"date"},null,512),[[r.vModelText,I.value]])]),r.createElementVNode("div",R1e,[r.createElementVNode("label",z1e,r.toDisplayString(L.$t("activity.sprint.endDateLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":K[6]||(K[6]=Se=>j.value=Se),class:"ao-field__input",type:"date"},null,512),[[r.vModelText,j.value]])]),r.createElementVNode("div",U1e,[r.createVNode(ue,{type:"button",variant:"ghost",label:L.$t("common.cancel"),onClick:ae},null,8,["label"]),r.createVNode(ue,{type:"button",color:"primary",variant:"solid",label:L.$t("common.create"),disabled:!q.value,onClick:ne},null,8,["label","disabled"])])])):(r.openBlock(),r.createBlock(Ct,{key:0,class:"ao-activity-details__multiselect",options:S.value,value:E.value,"can-clear":!0,"can-deselect":!0,searchable:!0,disabled:$.value||!l.value,placeholder:$.value?L.$t("activity.sprint.selectProjectFirst"):L.$t("activity.sprint.placeholder"),caret:l.value,onSelect:D,onClear:x,onDeselect:x},null,8,["options","value","disabled","placeholder","caret"]))]),r.renderSlot(L.$slots,"sprintModal")])):r.createCommentVNode("",!0),r.createElementVNode("div",q1e,[r.createElementVNode("div",H1e,[r.createElementVNode("div",j1e,[r.createElementVNode("span",W1e,r.toDisplayString(L.$t("activity.assignee.label")),1),r.createVNode(ue,{label:L.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:Ce},null,8,["label"])]),r.createVNode(Ct,{modelValue:ge.value,"onUpdate:modelValue":K[7]||(K[7]=Se=>ge.value=Se),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:le.value,"close-on-select":!0,searchable:!0,placeholder:L.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:R},{tag:r.withCtx(({option:Se,handleTagRemove:Mt})=>[r.createVNode(Xn,{"user-name":Se.label,"avatar-url":Se.avatar,"is-closable":!0,onClose:kt=>Mt(Se,kt)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),r.createElementVNode("div",Z1e,[t.isTemplate!==!0&&t.userId?(r.openBlock(),r.createElementBlock("div",K1e,[r.createElementVNode("label",G1e,[r.createElementVNode("span",Y1e,r.toDisplayString(L.$t("activity.deadline.label")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":K[8]||(K[8]=Se=>w.value=Se),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,J1e),[[r.vModelText,w.value,void 0,{lazy:!0}]])])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",X1e,[r.createElementVNode("div",Q1e,[r.createElementVNode("label",efe,[r.createElementVNode("span",tfe,r.toDisplayString(L.$t("activity.estimation.label"))+" ("+r.toDisplayString(C.value)+")",1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":K[9]||(K[9]=Se=>g.value=Se),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,nfe),[[r.vModelText,g.value,void 0,{lazy:!0,number:!0}]])])]),r.createElementVNode("div",ofe,[r.createElementVNode("label",rfe,[r.createElementVNode("span",ife,r.toDisplayString(L.$t("activity.timeSpent.label"))+" ("+r.toDisplayString(C.value)+")",1),r.createElementVNode("span",sfe,r.toDisplayString(v.value),1)])])]),r.createElementVNode("div",afe,[r.createVNode(Kc,{modelValue:_.value,"onUpdate:modelValue":K[10]||(K[10]=Se=>_.value=Se),modelModifiers:{lazy:!0},label:L.$t("activity.important.label"),disabled:!l.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(Kc,{modelValue:b.value,"onUpdate:modelValue":K[11]||(K[11]=Se=>b.value=Se),modelModifiers:{lazy:!0},label:L.$t("activity.blocked.label"),disabled:!l.value,variant:"ghost","icon-name":"BlockRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),r.createElementVNode("fieldset",cfe,[r.createElementVNode("div",ufe,[r.createVNode(ke,{name:"FlowsheetOutlineRounded"}),r.createVNode(ht,{level:4,title:L.$t("activity.dependencies.title")},null,8,["title"])]),r.createElementVNode("div",dfe,[r.createElementVNode("div",ffe,[r.createElementVNode("label",pfe,[r.createElementVNode("span",mfe,r.toDisplayString(L.$t("activity.dependingOn.label")),1),r.createVNode(Ct,{modelValue:re.value,"onUpdate:modelValue":K[12]||(K[12]=Se=>re.value=Se),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:ie.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),r.createElementVNode("div",hfe,[r.createElementVNode("label",gfe,[r.createElementVNode("span",vfe,r.toDisplayString(L.$t("activity.blocking.label")),1),r.createVNode(Ct,{modelValue:U.value,"onUpdate:modelValue":K[13]||(K[13]=Se=>U.value=Se),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:P.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),r.renderSlot(L.$slots,"default",{activity:t.activity})])])]}),_:3}),u.value!==null?(r.openBlock(),r.createBlock(zde,{key:0,attachments:t.activity.attachments||[],"current-index":u.value,"load-preview":n.loadAttachmentPreview,"onUpdate:currentIndex":K[15]||(K[15]=fe=>u.value=fe),onClose:K[16]||(K[16]=fe=>u.value=null)},null,8,["attachments","current-index","load-preview"])):r.createCommentVNode("",!0)],64))}});const _fe=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||Ze.ACTIVITIES),s=r.computed({get(){return i.value},set(v){i.value=v,o("update:rule",{...n.rule,itemType:v,subItemId:void 0})}}),a=r.computed(()=>Object.values(Ze)),l=r.computed({get(){return n.rule.subItemId},set(v){o("update:rule",{...n.rule,subItemId:v,itemType:n.rule.itemType||s.value})}}),c=r.computed(()=>{var _;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(_={[Ze.ACTIVITIES]:n.templateActivities,[Ze.MILESTONES]:n.templateMilestones,[Ze.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(v){o("update:rule",{...n.rule,comparator:v})}}),f=r.computed(()=>Object.values(Cp)),p=r.toRef(n.rule.trigger),m=r.computed({get(){return p.value},set(v){o("update:rule",{...n.rule,trigger:v})}}),h=r.computed(()=>Object.values(bp)),g=r.computed({get(){return n.rule.duration},set(v){o("update:rule",{...n.rule,duration:v})}}),y=r.computed({get(){return n.rule.durationUnit},set(v){o("update:rule",{...n.rule,durationUnit:v})}}),C=r.computed(()=>Object.values(kp));return(v,_)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:r.withCtx(()=>[r.createVNode(r.unref(lo),{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=b=>s.value=b),options:a.value},null,8,["modelValue","options"]),r.createVNode(r.unref(lo),{modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=b=>l.value=b),options:c.value},null,8,["modelValue","options"]),r.createVNode(r.unref(lo),{modelValue:m.value,"onUpdate:modelValue":_[2]||(_[2]=b=>m.value=b),options:h.value},null,8,["modelValue","options"]),r.createVNode(r.unref(lo),{modelValue:d.value,"onUpdate:modelValue":_[3]||(_[3]=b=>d.value=b),options:f.value},null,8,["modelValue","options"]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":_[4]||(_[4]=b=>g.value=b),type:"number",min:"0"},null,512),[[r.vModelText,g.value,void 0,{number:!0}]]),r.createVNode(r.unref(lo),{modelValue:y.value,"onUpdate:modelValue":_[5]||(_[5]=b=>y.value=b),options:C.value},null,8,["modelValue","options"]),r.createVNode(ue,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:_[6]||(_[6]=b=>v.$emit("close"))})]),_:1}))}});const yfe={class:"ao-template-rules__body"},Cfe={class:"ao-template-rules__list"},bfe=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(La,null,{header:r.withCtx(()=>[r.createVNode(ht,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:r.withCtx(()=>[r.createElementVNode("div",yfe,[r.createElementVNode("ul",Cfe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.rules,l=>(r.openBlock(),r.createBlock(_fe,{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(wo,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function Zo(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"},wfe={class:"ao-template-details__body"},Efe={class:"ao-template-details__cols"},Sfe={class:"ao-template-details__col"},xfe={class:"ao-list__footer"},Afe={class:"ao-template-details__col"},Tfe={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}=Wt(),o=t,i=e,s=r.computed(()=>{var F;return(F=o.templates)==null?void 0:F.find(q=>q.id===o.templateId)}),a=r.ref(!1);r.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),r.watch(()=>{var F;return(F=s.value)==null?void 0:F.phases},(F,q)=>{a.value&&Wn(F,q)});const l=r.computed(()=>{var F,q;return(q=(F=s==null?void 0:s.value)==null?void 0:F.phases)==null?void 0:q.find(Q=>Q.id===o.phaseId)});r.watch(()=>{var F;return(F=l.value)==null?void 0:F.milestones},(F,q)=>{a.value&&Wn(F,q)});const c=r.computed(()=>{var F,q;return(q=(F=l.value)==null?void 0:F.milestones)==null?void 0:q.find(Q=>Q.id===o.milestoneId)});r.watch(()=>{var F;return(F=c.value)==null?void 0:F.activities},(F,q)=>{a.value&&Wn(F,q)});const u=r.computed(()=>{var F,q;return((q=(F=s.value)==null?void 0:F.phases)==null?void 0:q.reduce((Q,ae)=>{const ne=ae.milestones||[];return[...Q,...ne]},[]))||[]}),d=r.computed(()=>{var F,q;return((q=(F=s.value)==null?void 0:F.phases)==null?void 0:q.reduce((Q,ae)=>{const ye=(ae.milestones||[]).reduce((re,ie)=>ie.activities?[...re,...ie.activities]:re,[]);return[...Q,...ye]},[]))||[]}),f=r.computed(()=>{var F,q;return(q=(F=c.value)==null?void 0:F.activities)==null?void 0:q.find(Q=>Q.id===o.activityId)}),p=r.computed(()=>{var F;return((F=s.value)==null?void 0:F.name)||o.templateId}),m=()=>{if(!s.value)return;const{name:F,rank:q}=Zo(s.value.phases,"phase",n);a.value=!0,i("addItem",{type:Ze.PHASES,templateId:o.templateId,item:{name:F,rank:q}})},h=F=>{i("updateItem",{templateId:o.templateId,id:o.templateId,itemType:Ze.TEMPLATES,data:{name:F}})},g=F=>{i("removeItem",{itemType:Ze.PHASES,templateId:o.templateId,data:{id:F}})},y=(F,q)=>{i("updateItem",{templateId:o.templateId,id:F,itemType:Ze.PHASES,data:{name:q}})},C=F=>{i("updateItem",F)},v=F=>{if(!l.value)return;const{name:q,rank:Q}=Zo(l.value.milestones,"milestone",n);a.value=!0,i("addItem",{type:Ze.MILESTONES,templateId:o.templateId,phaseId:F.phaseId,item:{name:q,rank:Q,phaseId:F.phaseId}})},_=F=>{i("removeItem",{itemType:Ze.MILESTONES,templateId:o.templateId,phaseId:F.phaseId,data:{id:F.id}})},b=F=>{const{id:q,...Q}=F;i("updateItem",{itemType:Ze.MILESTONES,id:q,templateId:o.templateId,data:Q})},w=F=>{const{milestoneId:q}=F;if(!c.value)return;const{name:Q,rank:ae}=Zo(c.value.activities,"activity",n);a.value=!0,i("addItem",{type:Ze.ACTIVITIES,milestoneId:q,templateId:o.templateId,item:{name:Q,rank:ae,milestoneId:q}})},k=F=>{var q,Q;i("removeItem",{itemType:Ze.ACTIVITIES,templateId:o.templateId,phaseId:(q=l.value)==null?void 0:q.id,milestoneId:(Q=c.value)==null?void 0:Q.id,data:{id:F.id}})},T=F=>{const{id:q,...Q}=F;i("updateItem",{itemType:Ze.ACTIVITIES,id:q,templateId:o.templateId,data:Q})},A=r.ref(!1),S=()=>{A.value=!A.value},E=()=>{i("addRule",{templateId:o.templateId})},D=F=>{i("removeRule",{id:F,templateId:o.templateId})},x=F=>{var q;if(F.moved){const Q=ns(F,((q=s.value)==null?void 0:q.phases)??[]);i("updateItem",{itemType:Ze.PHASES,id:F.moved.element.id,templateId:o.templateId,data:{rank:Q}})}},$=F=>{!l.value||!c.value||!f.value||i("addItem",{type:Ze.TASKS,activityId:F.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:F})},B=F=>{!l.value||!c.value||!f.value||i("updateItem",{itemType:Ze.TASKS,id:F.id,templateId:o.templateId,data:F})},V=F=>{!l.value||!c.value||!f.value||i("removeItem",{itemType:Ze.TASKS,activityId:f.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:F})},I=F=>{i("addFiles",F)},j=F=>{i("removeFile",F)};return(F,q)=>{var Q,ae,ne,ye,re,ie;return s.value?(r.openBlock(),r.createElementBlock("div",kfe,[r.createVNode(rs,{"can-go-back":!0,onGoBack:q[1]||(q[1]=U=>F.$router.push({name:r.unref(Uo).TEMPLATES_LIST}))},{primary:r.withCtx(()=>[r.createVNode(ht,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":q[0]||(q[0]=U=>{h(U)})},null,8,["title"])]),_:1}),r.createElementVNode("div",wfe,[r.createElementVNode("ol",Efe,[r.createElementVNode("li",Sfe,[r.createVNode(r.unref(ko),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:x},{header:r.withCtx(()=>[r.createVNode(ht,{title:F.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:r.withCtx(({element:U})=>{var P;return[r.createVNode(oC,{id:U.id,name:U.name,milestones:U.milestones,"is-active":((P=l.value)==null?void 0:P.id)===U.id,"is-draggable":!0,onClick:se=>F.$router.push({params:{templateId:t.templateId,phaseId:U.id}}),"onUpdate:title":se=>{y(U.id,se)},onRemove:()=>g(U.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:r.withCtx(()=>[r.createElementVNode("div",xfe,[r.createVNode(wo,{"icon-name":"AddBoxOutlineRounded",label:F.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),r.createElementVNode("li",Afe,[l.value?(r.openBlock(),r.createBlock(sC,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(Q=c.value)==null?void 0:Q.id,onAddMilestone:v,onUpdateMilestone:b,onUpdatePhase:C,onRemoveMilestone:_},null,8,["template-id","phase","milestone-id"])):r.createCommentVNode("",!0)]),r.createElementVNode("li",Tfe,[l.value&&c.value?(r.openBlock(),r.createBlock(cC,{key:0,"template-id":t.templateId,"phase-id":(ae=l.value)==null?void 0:ae.id,milestone:c.value,"activity-id":(ne=f.value)==null?void 0:ne.id,onAddActivity:w,onUpdateActivity:T,onRemoveActivity:k},null,8,["template-id","phase-id","milestone","activity-id"])):r.createCommentVNode("",!0)])])]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[f.value?(r.openBlock(),r.createBlock(rd,{key:0,activity:f.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(ye=l.value)==null?void 0:ye.name} / ${(re=c.value)==null?void 0:re.name}`,"milestone-id":(ie=c.value)==null?void 0:ie.id,"template-activities":d.value,"template-milestones":u.value,"is-template":!0,"is-editable":!0,users:t.users,"attachment-enabled":!1,sprints:[],"onUpdate:activity":q[2]||(q[2]=U=>{f.value&&T(U)}),onClose:F.$router.back,onAddSubtask:$,onUpdateSubtask:B,onDeleteSubtask:V,onAddFiles:I,onRemoveFile:j},{default:r.withCtx(U=>[r.renderSlot(F.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(U)))]),_: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"},[A.value?(r.openBlock(),r.createBlock(bfe,{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:S,onAddRule:E,onRemoveRule:D},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):r.createCommentVNode("",!0)]))])):r.createCommentVNode("",!0)}}});const Nfe={class:"ao-card__content"},Dfe={key:0,class:"ao-card__header"},$fe={class:"ao-card__body"},Bfe={key:1,class:"ao-card__footer"},pl=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",Nfe,[e.$slots.header?(r.openBlock(),r.createElementBlock("header",Dfe,[r.renderSlot(e.$slots,"header")])):r.createCommentVNode("",!0),r.createElementVNode("div",$fe,[r.renderSlot(e.$slots,"default")]),e.$slots.footer?(r.openBlock(),r.createElementBlock("footer",Bfe,[r.renderSlot(e.$slots,"footer")])):r.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const ml=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 Mo(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=Lfe(t):/rgb/.test(t)?e=gp(t):typeof t=="string"?e=gp(`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}=Ofe(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 Gc(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 Mfe({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 Lfe(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 gp(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 Ofe({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),Gc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Gc("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,f,p]=u.data;this.$emit("selectSaturation",{r:d,g:f,b:p})};i(t);const s=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",i),document.addEventListener("mouseup",s)}}});const Vfe={ref:"canvasSaturation"};function Ife(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",Vfe,null,512),r.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}sd.render=Ife;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 Pfe={ref:"canvasHue"};function Ffe(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",Pfe,null,512),r.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}ad.render=Ffe;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),Gc("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 Rfe={ref:"canvasAlpha"};function zfe(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",Rfe,null,512),r.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}ld.render=zfe;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 Ufe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("canvas")}cd.render=Ufe;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[f,p,m,h]=d.data;h=parseFloat((h/255).toFixed(2));const g=this.suckerPreview.style;Object.assign(g,{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(${f}, ${p}, ${m}, ${h})`,zIndex:95}),this.suckerArea.length&&e>=this.suckerArea[0]&&n>=this.suckerArea[1]&&e<=this.suckerArea[2]&&n<=this.suckerArea[3]?g.display="":g.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,f=t.getContext("2d").getImageData(Math.min(c,a-1),Math.min(u,l-1),1,1);let[p,m,h,g]=f.data;g=parseFloat((g/255).toFixed(2)),this.$emit("selectSucker",{r:p,g:m,b:h,a:g})}))}}});const qfe=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),Hfe={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},jfe=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 Wfe(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))},[qfe],2)),t.isSucking?(r.openBlock(),r.createBlock("svg",Hfe,[jfe])):r.createCommentVNode("v-if",!0)])}ud.render=Wfe;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 Zfe={class:"color-type"},Kfe={class:"name"};function Gfe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",Zfe,[r.createVNode("span",Kfe,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=Gfe;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 Yfe={class:"colors"},Jfe={key:0,class:"colors history"};function Xfe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",null,[r.createVNode("ul",Yfe,[(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",Jfe,[(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=Xfe;fd.__file="src/color/Colors.vue";var Dr=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 Mfe(this.rgba,!0)}},created(){Object.assign(this,Mo(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}=Mo(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}=Mo(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}=Mo(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}=Mo(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}=Mo(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}=Mo(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 Qfe={class:"color-set"};function epe(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"),f=r.resolveComponent("Box"),p=r.resolveComponent("Colors");return r.openBlock(),r.createBlock("div",{class:["hu-color-picker",{light:t.isLightTheme}],style:{width:t.totalWidth+"px"}},[r.createVNode("div",Qfe,[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(f,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),r.createVNode(f,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),r.createVNode(p,{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)}Dr.render=epe;Dr.__file="src/color/ColorPicker.vue";Dr.install=t=>{t.component(Dr.name,Dr)};const tpe={class:"color-picker-wrapper"},jr=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(null),l=r.ref(0),c=r.ref(0),u=async h=>{a.value=h,i.value=!0,await r.nextTick();const g=h.getBoundingClientRect(),y=s.value,C=(y==null?void 0:y.offsetHeight)||300,v=window.innerHeight-g.bottom,_=g.top,b=v<C&&_>C;console.log("pickerHeight = "+C),l.value=b?g.top-C-8:g.bottom+8,c.value=g.left,setTimeout(()=>{window.addEventListener("click",f)},0)},d=r.computed(()=>({position:"fixed",top:`${l.value}px`,left:`${c.value}px`,zIndex:1e3})),f=h=>{const g=h.target;s.value&&!s.value.contains(g)&&(i.value=!1,o("update:color",p.value),window.removeEventListener("click",f))};r.onBeforeUnmount(()=>{window.removeEventListener("click",f)}),r.watch(()=>n.color,h=>{i.value||(p.value=h)});const p=r.ref(n.color),m=h=>{const{r:g,g:y,b:C,a:v}=h.rgba;p.value=`rgba(${g}, ${y}, ${C}, ${v})`};return(h,g)=>(r.openBlock(),r.createElementBlock("div",tpe,[r.renderSlot(h.$slots,"clickable",{openPicker:u,bgColor:t.color}),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(Dr),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:m},null,8,["color"])],4)):r.createCommentVNode("",!0)]))}});const npe={class:"ao-card-project-phase__header"},ope={class:"ao-card-project-item__title-line"},rpe={key:0,class:"ao-card-project-item-phase__estimation"},ipe={class:"ao-card-project-phase__footer"},spe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},ape={class:"ao-card-project-phase__subitem"},lpe={class:"ao-card-project-phase__subitem"},cpe={key:0,class:"ao-card-project-phase__secondary"},upe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},dpe=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=g=>{o("update:title",g)},s=r.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((y,C)=>{var v;return y+((v=C.activities)==null?void 0:v.reduce((_,b)=>_+(b.estimation||0),0))},0))||0}),a=r.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var C;return g+(((C=y.activities)==null?void 0:C.reduce((v,_)=>{var w;const b=(w=n.timeTrackingData)==null?void 0:w[_.id];return v+((b==null?void 0:b.timeSpent)||0)},0))||0)},0)),l=r.computed(()=>n.estimationUnit==="days"?"d":"h"),c=r.computed(()=>Ba(a.value,n.estimationUnit)),u=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===Pi.done).length}),f=r.computed(()=>(d.value||0)/(u.value||1)),p=r.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=r.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,y)=>{const C=g.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||y(C)};return(g,y)=>(r.openBlock(),r.createBlock(jr,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:r.withCtx(({openPicker:C,bgColor:v})=>[r.createVNode(pl,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:v,"with-left-border":!0,onClick:_=>h(_,C)},r.createSlots({default:r.withCtx(()=>[r.createElementVNode("div",ope,[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",rpe," ("+r.toDisplayString(c.value)+"/"+r.toDisplayString(s.value)+r.toDisplayString(l.value)+")",1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",ipe,[u.value?(r.openBlock(),r.createElementBlock("div",spe,[r.createElementVNode("div",ape,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",lpe,r.toDisplayString(d.value)+" / "+r.toDisplayString(u.value),1)]),r.createVNode(ml,{percentages:f.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(r.openBlock(),r.createElementBlock("div",cpe,[r.renderSlot(g.$slots,"secondary")])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["ao-card-project-phase__footer-row",p.value?"":"ao-card-project-phase__no_deadline"])},[t.isEditable?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=_=>p.value=_),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[r.vModelText,p.value,void 0,{lazy:!0}]]):r.createCommentVNode("",!0),r.createElementVNode("span",upe,r.toDisplayString(r.unref(Ma)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:r.withCtx(()=>[r.createElementVNode("div",npe,[r.createVNode(ue,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:y[0]||(y[0]=r.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const fpe=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 ppe={class:"ao-card-project-milestone__default"},mpe={class:"ao-title-with-badge-wrapper"},hpe={class:"ao-card-project-item__title-line"},gpe={key:0,class:"ao-card-project-item-milestone__estimation"},vpe={key:0,class:"ao-card-project-milestone__archive"},_pe={class:"ao-card-project-milestone__activities"},ype={class:"ao-card-project-milestone__activities-row"},Cpe={class:"ao-card-project-milestone__subitem"},bpe={class:"ao-card-project-milestone__subitem"},kpe={key:1,class:"ao-card-project-milestone__secondary"},wpe={class:"ao-card-project-milestone__footer"},Epe={key:1,class:"ao-field ao-card-project-milestone__deadline"},Spe={class:"ao-field__label"},xpe={key:2,class:"ao-card-project-milestone__assignee"},Tpe=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 p;return((p=n.activities)==null?void 0:p.reduce((m,h)=>m+(h.estimation||0),0))||0}),s=r.computed(()=>!n.activities||!n.timeTrackingData?0:n.activities.reduce((p,m)=>{var g;const h=(g=n.timeTrackingData)==null?void 0:g[m.id];return p+((h==null?void 0:h.timeSpent)||0)},0)),a=r.computed(()=>n.estimationUnit==="days"?"d":"h"),l=r.computed(()=>Ba(s.value,n.estimationUnit));r.computed(()=>{const p=s.value/60;return p%1===0?p.toString():p.toFixed(2)});const c=r.computed(()=>{var p;return(p=n.activities)==null?void 0:p.length}),u=r.computed(()=>{var p;return(p=n.activities)==null?void 0:p.filter(m=>tu(m,n.closedStatus)).length}),d=r.computed(()=>(u.value||0)/(c.value||1)),f=p=>{o("updateMilestone",{id:n.id,name:p})};return(p,m)=>(r.openBlock(),r.createBlock(pl,{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",ppe,[r.createElementVNode("div",mpe,[r.createVNode(fpe,{color:t.color||""},null,8,["color"]),r.createElementVNode("div",hpe,[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":f},null,8,["id","title","is-editable"]),i.value||s.value?(r.openBlock(),r.createElementBlock("span",gpe," ("+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",vpe,[r.createVNode(ue,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?p.$t("archive"):p.$t("unarchive"),onClick:m[0]||(m[0]=r.withModifiers(()=>t.active?p.$emit("archiveMilestone",{id:t.id}):p.$emit("unarchiveMilestone",{id:t.id}),["stop"]))},null,8,["label"])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",_pe,[r.createElementVNode("div",ype,[c.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",Cpe,[r.createVNode(ke,{name:"SelectCheckBox",size:"sm"}),r.createElementVNode("span",bpe,r.toDisplayString(u.value)+" / "+r.toDisplayString(c.value),1)]),r.createVNode(ml,{percentages:d.value,color:t.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):r.createCommentVNode("",!0),p.$slots.secondary?(r.openBlock(),r.createElementBlock("div",kpe,[r.renderSlot(p.$slots,"secondary")])):r.createCommentVNode("",!0)])])]),footer:r.withCtx(()=>[r.createElementVNode("div",wpe,[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",Epe,[r.createElementVNode("span",Spe,r.toDisplayString(r.unref(Ma)(t.deadline)),1)])):r.createCommentVNode("",!0),t.assignee?(r.openBlock(),r.createElementBlock("div",xpe,[r.createVNode(Xn,{"user-name":r.unref(Pp)(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 Ape=["onKeydown"],Xi=r.defineComponent({__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 C=a.value;if(!C)return;const v=C.getBoundingClientRect();c.value={top:v.top,left:v.left,width:v.width,height:v.height}},d=r.computed(()=>{const C=c.value;if(!C)return{};const v=C.top+C.height+window.scrollY+4;return o.placement==="bottom-end"?{position:"absolute",top:`${v}px`,left:"auto",right:`${Math.max(0,window.innerWidth-(C.left+C.width+window.scrollX))}px`,zIndex:200}:{position:"absolute",top:`${v}px`,left:`${C.left+window.scrollX}px`,zIndex:200}}),f=async()=>{if(s.value)return;u(),s.value=!0,i("open"),await r.nextTick();const C=l.value;if(C){const v=C.querySelector('button, [href], [tabindex]:not([tabindex="-1"])');v==null||v.focus()}},p=()=>{s.value&&(s.value=!1,i("close"))},m=()=>{s.value?p():f()},h=C=>{var _,b;if(!s.value)return;const v=C.target;v&&((_=a.value)!=null&&_.contains(v)||(b=l.value)!=null&&b.contains(v)||p())},g=C=>{s.value&&C.key==="Escape"&&(C.preventDefault(),p())},y=()=>{s.value&&u()};return r.watch(s,C=>{C?(document.addEventListener("mousedown",h,!0),document.addEventListener("keydown",g,!0),window.addEventListener("resize",y),window.addEventListener("scroll",y,!0)):(document.removeEventListener("mousedown",h,!0),document.removeEventListener("keydown",g,!0),window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0))}),r.onBeforeUnmount(()=>{document.removeEventListener("mousedown",h,!0),document.removeEventListener("keydown",g,!0),window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0)}),e({open:f,close:p,toggle:m}),(C,v)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("span",{ref_key:"triggerRef",ref:a,class:"ao-popover-menu"},[r.renderSlot(C.$slots,"trigger",{open:f,toggle:m})],512),(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(p,["stop"]),["esc"])},[r.renderSlot(C.$slots,"menu",{close:p})],44,Ape)):r.createCommentVNode("",!0)]))],64))}});const Npe=["onKeydown"],Dpe={class:"ao-modal"},$pe={class:"ao-modal__header"},Bpe={class:"ao-modal__header-meta"},Mpe={class:"ao-modal__title-group"},Lpe={class:"ao-modal__body"},Ope={key:0,class:"ao-bulk-insert-modal__hint"},Vpe=["placeholder","disabled"],Ipe={key:1,class:"ao-bulk-insert-modal__count"},Ppe={class:"ao-bulk-insert-modal__footer"},pd=r.defineComponent({__name:"AoBulkInsertModal",props:{open:{type:Boolean},title:{},hint:{default:""},placeholder:{default:""},isLoading:{type:Boolean,default:!1},size:{default:"md"}},emits:["update:open","submit","close"],setup(t,{expose:e,emit:n}){const o=t,i=n,s=r.ref(""),a=r.ref(null),l=r.computed(()=>s.value.split(`
|
|
59
|
-
`).map(f=>f.trim()).filter(f=>f.length>0)),c=r.computed(()=>l.value.length>0&&!o.isLoading);r.watch(()=>o.open,async f=>{var p;f&&(s.value="",await r.nextTick(),(p=a.value)==null||p.focus())},{immediate:!0});const u=()=>{o.isLoading||(i("update:open",!1),i("close"))},d=()=>{c.value&&i("submit",l.value)};return e({parsedNames:l}),(f,p)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[t.open?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`]),onKeydown:r.withKeys(r.withModifiers(u,["stop"]),["esc"])},[r.createElementVNode("div",{class:"ao-modal__backdrop",onClick:u}),r.createElementVNode("div",Dpe,[r.createElementVNode("div",$pe,[r.createElementVNode("div",Bpe,[r.createVNode(ue,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:u})]),r.createElementVNode("header",Mpe,[r.createVNode(ht,{title:t.title,level:3},null,8,["title"])])]),r.createElementVNode("div",Lpe,[r.createElementVNode("form",{class:"ao-bulk-insert-modal__form",onSubmit:r.withModifiers(d,["prevent"])},[t.hint?(r.openBlock(),r.createElementBlock("p",Ope,r.toDisplayString(t.hint),1)):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("textarea",{ref_key:"textareaRef",ref:a,"onUpdate:modelValue":p[0]||(p[0]=m=>s.value=m),class:"ao-bulk-insert-modal__textarea",placeholder:t.placeholder,rows:"10",disabled:t.isLoading},null,8,Vpe),[[r.vModelText,s.value]]),l.value.length>0?(r.openBlock(),r.createElementBlock("p",Ipe,r.toDisplayString(l.value.length)+" "+r.toDisplayString(f.$t("project.bulk.modal.itemsReady")),1)):r.createCommentVNode("",!0),r.createElementVNode("footer",Ppe,[r.createVNode(ue,{color:"primary",variant:"ghost",label:f.$t("common.cancel"),disabled:t.isLoading,onClick:u},null,8,["label","disabled"]),r.createVNode(ue,{type:"submit",color:"primary",variant:"solid",label:f.$t("common.create"),"is-loading":t.isLoading,disabled:!c.value},null,8,["label","is-loading","disabled"])])],32)])])],42,Npe)):r.createCommentVNode("",!0)]))}});const Fpe={class:"ao-mapping-card-project-phase__header"},Rpe={class:"ao-card-project-item__title-line"},zpe={key:0,class:"ao-card-project-item-phase__estimation"},Upe={class:"ao-mapping-card-project-phase__footer"},qpe={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},Hpe={class:"ao-mapping-card-project-phase__subitem"},jpe={class:"ao-mapping-card-project-phase__subitem"},Wpe={key:0,class:"ao-mapping-card-project-phase__secondary"},Zpe={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},Kpe=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=g=>{o("update:title",g)},s=r.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((y,C)=>{var v;return y+((v=C.activities)==null?void 0:v.reduce((_,b)=>_+(b.estimation||0),0))},0))||0}),a=r.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var C;return g+(((C=y.activities)==null?void 0:C.reduce((v,_)=>{var w;const b=(w=n.timeTrackingData)==null?void 0:w[_.id];return v+((b==null?void 0:b.timeSpent)||0)},0))||0)},0)),l=r.computed(()=>n.estimationUnit==="days"?"d":"h"),c=r.computed(()=>Ba(a.value,n.estimationUnit)),u=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===Pi.done).length}),f=r.computed(()=>(d.value||0)/(u.value||1)),p=r.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=r.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,y)=>{const C=g.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||y()};return(g,y)=>(r.openBlock(),r.createBlock(jr,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:r.withCtx(({openPicker:C,bgColor:v})=>[r.createVNode(pl,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:v,"with-left-border":!0,onClick:_=>h(_,C)},r.createSlots({default:r.withCtx(()=>[r.createElementVNode("div",Rpe,[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",zpe," ("+r.toDisplayString(c.value)+"/"+r.toDisplayString(s.value)+r.toDisplayString(l.value)+")",1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",Upe,[u.value?(r.openBlock(),r.createElementBlock("div",qpe,[r.createElementVNode("div",Hpe,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",jpe,r.toDisplayString(d.value)+" / "+r.toDisplayString(u.value),1)]),r.createVNode(ml,{percentages:f.value,class:"ao-mapping-card-project-phase__progress",color:m.value},null,8,["percentages","color"]),g.$slots.secondary?(r.openBlock(),r.createElementBlock("div",Wpe,[r.renderSlot(g.$slots,"secondary")])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["ao-mapping-card-project-phase__footer-row",p.value?"":"ao-mapping-card-project-phase__no_deadline"])},[t.isEditable?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=_=>p.value=_),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[r.vModelText,p.value,void 0,{lazy:!0}]]):r.createCommentVNode("",!0),r.createElementVNode("span",Zpe,r.toDisplayString(r.unref(Ma)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:r.withCtx(()=>[r.createElementVNode("div",Fpe,[r.createVNode(ue,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:y[0]||(y[0]=r.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const Gpe={class:"ao-project-phase"},Ype={key:0,class:"ao-project-phase__drag ao-card__drag"},Jpe={key:1,class:"ao-project-phase__col-phase"},Xpe={key:2,class:"ao-mapping-project-phase__col-phase"},Qpe={key:0,class:"ao-project-phase__col-milestones"},eme=["title","onClick"],tme=["onClick"],nme=["onClick"],ome={class:"ao-project-phase__milestones-list-footer"},rme=["onClick"],ime=["onClick"],sme=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}=Wt(),o=t,i=e;r.watch(()=>o.phase.milestones,(T,S)=>{Wn(T,S)});const s=T=>{i("updatePhase",{id:o.phase.id,name:T})},a=T=>{i("updatePhase",{id:o.phase.id,deadline:T})},l=T=>{i("updatePhase",T)},c=r.computed(()=>o.phase.milestones.map(T=>b7(T,o.closedStatus))),u=T=>{const{name:S,rank:E}=Zo(c.value??[],"milestone",n);i("addMilestone",{name:S,rank:E,phaseId:T})},d=T=>{const S=n("template.defaultName.milestone",{idx:1}),E=os(c.value??[]);i("addMilestone",{name:S,rank:E,phaseId:T})},f=T=>{i("updateMilestone",T)},p=T=>{i("archiveMilestone",T)},m=T=>{i("unarchiveMilestone",T)},h=T=>{i("archivePhase",T)},g=T=>{i("unarchivePhase",T)},y=T=>{"added"in T?i("updateMilestone",{id:T.added.element.id,phaseId:o.phase.id,rank:Mr(c.value,T.added.newIndex)}):"removed"in T||"moved"in T&&i("updateMilestone",{id:T.moved.element.id,rank:Mr(c.value,T.moved.newIndex)})},C=r.ref(!1),v=r.ref(!1),_=T=>{v.value=!0;const S=eu(o.phase.milestones??[],T.length),E=T.map((D,x)=>({name:D,rank:S[x]}));i("bulkAddMilestone",{phaseId:o.phase.id,milestones:E,onSuccess:()=>{v.value=!1,C.value=!1},onError:()=>{v.value=!1}})};r.watch(C,T=>{T&&(v.value=!1)});const b=$r.useRoute(),w=r.computed(()=>b.path.includes("/mapping")),k=r.computed(()=>{var T;return o.phase.id===((T=b.params)==null?void 0:T.phaseId)});r.ref(!1);const A=r.computed(()=>{var T;return o.phase.id!==((T=b.params)==null?void 0:T.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:w7(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(T,S)=>(r.openBlock(),r.createElementBlock("li",Gpe,[r.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:r.normalizeStyle(A.value)},[t.isEditable?(r.openBlock(),r.createElementBlock("div",Ype,[r.createVNode(ke,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):r.createCommentVNode("",!0),w.value?(r.openBlock(),r.createElementBlock("div",Xpe,[r.createVNode(Kpe,{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:g,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(r.openBlock(),r.createElementBlock("div",Jpe,[r.createVNode(dpe,{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:g,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",Qpe,[r.createElementVNode("div",{class:"ao-project-phase__milestones ao-project-phase__milestones--hoverable",style:r.normalizeStyle(A.value)},[t.isEditable?(r.openBlock(),r.createBlock(Xi,{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:E})=>[r.createElementVNode("button",{type:"button",class:"ao-project-phase__milestone-quick-add-trigger",title:T.$t("project.milestone.add"),onClick:E},[r.createVNode(ke,{name:"Add",class:"ao-project-phase__milestone-quick-add-icon"})],8,eme)]),menu:r.withCtx(({close:E})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{E(),d(t.phase.id)}},r.toDisplayString(T.$t("project.bulk.menu.single")),9,tme),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{E(),C.value=!0}},r.toDisplayString(T.$t("project.bulk.menu.bulkInsert")),9,nme)]),_:1},8,["class"])):r.createCommentVNode("",!0),r.createVNode(r.unref(ko),r.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},T.$attrs,{onChange:y}),{item:r.withCtx(({element:E})=>{var D;return[r.createVNode(Tpe,{id:E.id,name:E.name,color:E.color,"phase-color":t.phase.color,activities:E.activities,deadline:E.deadline,active:E.active,"is-editable":!t.readonly&&t.isEditable,"is-draggable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,"is-selected":E.id===((D=T.$route.params)==null?void 0:D.milestoneId),assignee:E.assignee,important:E.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:r.normalizeClass(["ao-project-phase__milestone"]),onClick:x=>!t.readonly&&T.$router.push({name:r.unref(Fe).milestone,params:{phaseId:t.phase.id,milestoneId:E.id}}),onUpdateMilestone:f,onArchiveMilestone:p,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",ome,[t.isEditable?(r.openBlock(),r.createBlock(Xi,{key:0,class:"ao-project-phase__milestone-add"},{trigger:r.withCtx(({open:E})=>[r.createVNode(wo,{label:T.$t("project.milestone.add"),"icon-name":"Add",onClick:E},null,8,["label","onClick"])]),menu:r.withCtx(({close:E})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{E(),u(t.phase.id)}},r.toDisplayString(T.$t("project.bulk.menu.single")),9,rme),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{E(),C.value=!0}},r.toDisplayString(T.$t("project.bulk.menu.bulkInsert")),9,ime)]),_:1})):r.createCommentVNode("",!0)])],4)])),C.value?(r.openBlock(),r.createBlock(pd,{key:1,open:C.value,"onUpdate:open":S[0]||(S[0]=E=>C.value=E),title:T.$t("project.bulk.modal.milestone.title"),hint:T.$t("project.bulk.modal.hint"),placeholder:T.$t("project.bulk.modal.placeholder"),"is-loading":v.value,onSubmit:_},null,8,["open","title","hint","placeholder","is-loading"])):r.createCommentVNode("",!0)]))}});const ame={class:"ao-project__phases"},lme={key:0,class:"ao-project-phase__phases-list-footer"},cme={class:"ao-project-phase__col-phase"},md=r.defineComponent({__name:"AoProjectPhases",props:{phases:{},closedStatus:{},isEditable:{type:Boolean},users:{},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addPhase","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e;r.watch(()=>n.phases,(m,h)=>{Wn(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})}},f=m=>{o("updatePhase",m)},p=m=>{o("addPhase",m)};return(m,h)=>(r.openBlock(),r.createElementBlock("div",ame,[r.createVNode(r.unref(ko),{class:"ao-project-phase__phases-list","model-value":t.phases,"item-key":"id",handle:".ao-card__drag",onChange:d},{item:r.withCtx(({element:g})=>[r.createVNode(sme,{phase:g,"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,onUpdateMilestone:s,onArchiveMilestone:a,onUnarchiveMilestone:l,onUpdatePhase:f,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",lme,[h[0]||(h[0]=r.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),r.createElementVNode("div",cme,[r.createVNode(wo,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:p},null,8,["label"])]),h[1]||(h[1]=r.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):r.createCommentVNode("",!0)]))}});const ume={class:"ao-add-template-modal__form-body"},dme={class:"field__row"},fme={class:"ao-add-template-modal__form-footer"},Ug=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(La,{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",ume,[r.createElementVNode("div",dme,[r.createVNode(Ct,{value:s.value,options:i.value,detached:!0,onChange:a},null,8,["value","options"])])]),r.createElementVNode("footer",fme,[r.createVNode(ue,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const pme={class:"ao-save-template-modal__form-body"},mme={class:"field__row"},hme={class:"ao-field ao-field--inline"},gme={class:"ao-field__label"},vme={class:"ao-save-template-modal__phases"},_me={class:"ao-field__label"},yme={class:"ao-save-template-modal__phases-list"},Cme=["value"],bme={class:"ao-save-template-modal__form-footer"},qg=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(La,{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",pme,[r.createElementVNode("div",mme,[r.createElementVNode("label",hme,[r.createElementVNode("span",gme,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",vme,[r.createElementVNode("div",_me,r.toDisplayString(l.$t("project.template.phases.label")),1),r.createElementVNode("div",yme,[(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,Cme),[[r.vModelCheckbox,s.value]]),r.createElementVNode("span",null,r.toDisplayString(u.name),1)]))),128))])])]),r.createElementVNode("footer",bme,[r.createVNode(ue,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const kme={class:"ao-project"},wme=["onClick"],Eme=["onClick"],Sme={class:"ao-project__body"},xme=r.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},devStatuses:{},sprints:{},selectedActivity:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{type:Function}},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"],setup(t,{emit:e}){const{t:n}=Wt(),o=t,i=e,s=r.computed(()=>o.phases.flatMap(P=>P.milestones)),a=()=>{const{name:P,rank:se}=Zo(o.phases,"phase",n);i("addPhase",{name:P,rank:se,projectId:o.project.id})},l=()=>{const P=n("template.defaultName.phase",{idx:1}),se=os(o.phases);i("addPhase",{name:P,rank:se,projectId:o.project.id})},c=P=>{i("updatePhase",P)},u=P=>{i("archivePhase",P)},d=P=>{i("unarchivePhase",P)},f=P=>{i("copyPhaseToTemplate",P)},p=P=>{i("addMilestone",P)},m=P=>{i("bulkAddMilestone",P)},h=P=>{i("updateMilestone",P)},g=P=>{i("archiveMilestone",P)},y=P=>{i("unarchiveMilestone",P)},C=P=>{i("addActivity",P)},v=P=>{i("bulkAddActivity",P)},_=P=>{i("update:activity",P)},b=P=>{i("archiveActivity",P)},w=P=>{i("unarchiveActivity",P)},k=P=>{i("addSubtask",P)},A=P=>{i("updateSubtask",P)},T=P=>{i("deleteSubtask",P)},S=r.computed(()=>s.value.flatMap(P=>P.activities)),E=r.computed(()=>o.devStatuses??[]),D=r.computed(()=>o.sprints??[]),x=P=>{i("addFiles",P)},$=P=>{i("removeFile",P)},B=P=>{i("addComment",P)},V=P=>{i("updateComment",P)},I=P=>{i("removeComment",P)},j=r.ref(!1),F=r.ref(!1),q=r.ref(!1),Q=r.ref(!1),ae=(P,se)=>{i("applyTemplate",{templateId:P,projectId:se}),j.value=!1},ne=(P,se)=>{var Ce;const we=(Ce=o.templates)==null?void 0:Ce.at(-1),Re=we?Xe.LexoRank.parse(we.rank).genNext():Xe.LexoRank.middle();i("saveTemplate",{templateName:P,rank:Re.format(),phaseIds:se}),F.value=!1},ye=P=>{Q.value=!0;const se=eu(o.phases,P.length),we=P.map((Re,Ce)=>({name:Re,rank:se[Ce]}));i("bulkAddPhase",{projectId:o.project.id,phases:we,onSuccess:()=>{Q.value=!1,q.value=!1},onError:()=>{Q.value=!1}})};r.watch(q,P=>{P&&(Q.value=!1)});const re=$r.useRouter(),ie=r.ref("overview"),U=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return r.watch(ie,P=>{P==="feed"?(re.push({name:Fe.feed}),console.log("Navigating to feed...")):P==="dev"?(re.push({name:Fe.dev}),console.log("Navigating to dev...")):P==="overview"?(re.push({name:Fe.project}),console.log("Navigating to feed...")):P==="mapping"&&(re.push({name:Fe.mapping}),console.log("Navigating to feed..."))}),(P,se)=>{var Re;const we=r.resolveComponent("RouterView");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",r.mergeProps({class:"ao-project-overview"},P.$attrs),[r.createElementVNode("div",kme,[r.createVNode(rs,null,{primary:r.withCtx(()=>[r.createVNode(vs,{modelValue:ie.value,"onUpdate:modelValue":se[0]||(se[0]=Ce=>ie.value=Ce),tabs:U},null,8,["modelValue"]),r.createVNode(ue,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:P.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:se[1]||(se[1]=Ce=>P.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:r.withCtx(()=>[t.isEditable===!0?(r.openBlock(),r.createBlock(Xi,{key:0,class:"ao-project-overview__quick-add-phase"},{trigger:r.withCtx(({open:Ce})=>[r.createVNode(ue,{size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:P.$t("project.phase.add"),onClick:Ce},null,8,["label","onClick"])]),menu:r.withCtx(({close:Ce})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{Ce(),l()}},r.toDisplayString(P.$t("project.bulk.menu.single")),9,wme),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{Ce(),q.value=!0}},r.toDisplayString(P.$t("project.bulk.menu.bulkInsert")),9,Eme)]),_:1})):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(ue,{key:1,class:"ao-project-overview__save-as-template",color:"primary",label:P.$t("project.template.save.label"),onClick:se[2]||(se[2]=Ce=>F.value=!0)},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(ue,{key:2,class:"ao-project-overview__add-template",color:"primary",label:P.$t("project.template.apply.label"),onClick:se[3]||(se[3]=Ce=>j.value=!0)},null,8,["label"])):r.createCommentVNode("",!0)]),_:1}),r.createElementVNode("div",Sme,[r.createVNode(md,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(Re=t.project)==null?void 0:Re.estimationUnit,onAddMilestone:p,onBulkAddMilestone:m,onUpdateMilestone:h,onArchiveMilestone:g,onUnarchiveMilestone:y,onAddPhase:a,onUpdatePhase:c,onArchivePhase:u,onUnarchivePhase:d,onCopyPhaseToTemplate:f},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),r.createVNode(we,{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:se[4]||(se[4]=Ce=>P.$router.push({name:r.unref(Fe).project})),onUpdateMilestone:h,onAddActivity:C,onBulkAddActivity:v,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(we,{name:"modal",activities:S.value,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,"activity-types":t.activityTypes,"dev-statuses":E.value,sprints:D.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,"onUpdate:activity":_,onAddSubtask:k,onUpdateSubtask:A,onDeleteSubtask:T,onAddFiles:x,onRemoveFile:$,onAddComment:B,onUpdateComment:V,onRemoveComment:I},{default:r.withCtx(({Component:Ce})=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(Ce),null,{default:r.withCtx(R=>[r.renderSlot(P.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(R)))]),_: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"])]))],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[F.value?(r.openBlock(),r.createBlock(qg,{key:0,phases:t.phases,onClose:se[5]||(se[5]=Ce=>F.value=!1),onSave:ne},null,8,["phases"])):r.createCommentVNode("",!0),j.value?(r.openBlock(),r.createBlock(Ug,{key:1,"project-id":t.project.id,templates:t.templates,onClose:se[6]||(se[6]=Ce=>j.value=!1),onApply:ae},null,8,["project-id","templates"])):r.createCommentVNode("",!0),q.value?(r.openBlock(),r.createBlock(pd,{key:2,open:q.value,"onUpdate:open":se[7]||(se[7]=Ce=>q.value=Ce),title:P.$t("project.bulk.modal.phase.title"),hint:P.$t("project.bulk.modal.hint"),placeholder:P.$t("project.bulk.modal.placeholder"),"is-loading":Q.value,onSubmit:ye},null,8,["open","title","hint","placeholder","is-loading"])):r.createCommentVNode("",!0)]))],64)}}});const Tme={class:"ao-card-feed__header"},Ame={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},Nme={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},Dme={class:"ao-card-feed__body"},$me={key:0,class:"ao-card-feed__breadcrumbs"},Bme={class:r.normalizeClass(["ao-card-feed__title-group"])},Mme={class:"ao-card-feed__title-line"},Lme={key:0,class:"ao-card-feed__slug"},Ome={key:1,class:"ao-card-feed__deadline"},Vme={class:"ao-card-feed__footer"},Ime={class:"ao-card-feed__footer-row"},Pme={class:"ao-assignees"},Fme={key:0,class:"ao-assignee"},Rme={key:0,class:"ao-card-feed__subitems"},zme={key:0,class:"ao-card-feed__subitem"},Ume={class:"ao-card-feed__subitem"},qme={key:1,class:"ao-card-feed__subitem"},Hme={class:"ao-card-feed__subitem"},jme={class:"ao-card-feed__timer-wrapper"},Wme={class:"ao-card-feed__footer-row"},Zme={key:0,class:"ao-card-feed__progress-wrapper"},Kme={class:"ao-card-feed__subitem"},Gme={class:"ao-card-feed__subitem"},hd=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=g=>{o("updateActivity",{id:n.id,name:g})},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(()=>Ma(n.deadline)),d=g=>{o("removeAssignee",g)},f=()=>{o("startTimer",{activityId:n.id,name:n.name,project:n.projectName,projectId:n.projectId,slug:n.slug})},p=r.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.length}),m=r.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.filter(y=>y.isDone).length}),h=r.computed(()=>(m.value||0)/(p.value||1));return(g,y)=>(r.openBlock(),r.createBlock(pl,{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",Tme,[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",Ame,[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),g.$slots.secondary?(r.openBlock(),r.createElementBlock("div",Nme,[r.renderSlot(g.$slots,"secondary")])):r.createCommentVNode("",!0)])]),default:r.withCtx(()=>[r.createElementVNode("div",Dme,[l.value?(r.openBlock(),r.createElementBlock("span",$me,r.toDisplayString(l.value),1)):r.createCommentVNode("",!0),r.createElementVNode("div",Bme,[r.createElementVNode("div",Mme,[t.slug?(r.openBlock(),r.createElementBlock("span",Lme,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",Ome,r.toDisplayString(u.value),1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",Vme,[r.createElementVNode("div",Ime,[r.createElementVNode("ul",Pme,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,C=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:C.id},[C?(r.openBlock(),r.createElementBlock("li",Fme,[r.createVNode(Xn,{"user-name":r.unref(Pp)(C),"avatar-url":C.avatarUrl,"is-closable":!0,onClose:()=>d(C.id)},null,8,["user-name","avatar-url","onClose"])])):r.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(r.openBlock(),r.createElementBlock("ul",Rme,[t.comments?(r.openBlock(),r.createElementBlock("li",zme,[r.createVNode(ke,{name:"ChatOutline",size:"sm"}),r.createElementVNode("span",Ume,r.toDisplayString(t.comments),1)])):r.createCommentVNode("",!0),t.attachments?(r.openBlock(),r.createElementBlock("li",qme,[r.createVNode(ke,{name:"AttachFileRounded",size:"sm"}),r.createElementVNode("span",Hme,r.toDisplayString(t.attachments),1)])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",jme,[r.createVNode(ke,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:r.withModifiers(f,["stop"])})])]),r.createElementVNode("div",Wme,[t.tasks&&t.tasks.length?(r.openBlock(),r.createElementBlock("div",Zme,[r.createElementVNode("div",Kme,[r.createVNode(ke,{name:"SelectCheckBox",size:"sm"}),r.createElementVNode("span",Gme,r.toDisplayString(m.value)+" / "+r.toDisplayString(p.value),1)]),r.createVNode(ml,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):r.createCommentVNode("",!0)])])]),_:3},8,["class","variant"]))}});const Yme={class:"ao-project-milestone"},Jme={class:"ao-project-milestone__header"},Xme={class:"ao-project-milestone__header_line"},Qme={class:"ao-project-milestone__header_line"},ehe={class:"ao-project-milestone__title"},the={key:0,class:"ao-fieldset ao-milestone__fieldset"},nhe={class:"ao-field__row ao-milestone__field-row"},ohe={class:"ao-field ao-field--inline"},rhe={class:"ao-field__row ao-milestone__field-row"},ihe={class:"ao-field ao-milestone__field-multiselect"},she={class:"ao-milestone__color-actions"},ahe=["onClick"],lhe=["title","onClick"],che=["onClick"],uhe=["onClick"],dhe={class:"ao-project-milestone__body"},fhe={key:0,class:"ao-project-milestone__footer"},phe=["onClick"],mhe=["onClick"],vp=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}=Wt(),o=t,i=e,s=S=>{var E;i("startTimer",S),(E=window.parent)==null||E.postMessage({type:"startTimer",data:S},"*")},a=r.computed(()=>{var S;return(S=o.phases)==null?void 0:S.find(E=>E.id===o.phaseId)}),l=r.computed(()=>{var S;return(S=o.phases)==null?void 0:S.flatMap(E=>E.milestones)}),c=r.computed(()=>{var S;return(S=l.value)==null?void 0:S.find(E=>E.id===o.milestoneId)}),u=r.computed(()=>{var S;return(S=c.value)==null?void 0:S.activities});r.watch(u,(S,E)=>{Wn(S,E)});const d=S=>{i("close",S)},f=()=>{const{name:S,rank:E}=Zo(u.value??[],"activity",n);i("addActivity",{milestoneId:o.milestoneId,name:S,rank:E,projectId:o.projectId})},p=()=>{const S=n("template.defaultName.activity",{idx:1}),E=os(u.value??[]);i("addActivity",{milestoneId:o.milestoneId,name:S,rank:E,projectId:o.projectId})},m=r.ref(!1),h=r.ref(!1),g=S=>{h.value=!0;const E=eu(D.value??[],S.length),D=S.map((x,$)=>({name:x,rank:E[$]}));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,S=>{S&&(h.value=!1)});const y=S=>{i("updateActivity",S)},C=S=>{u.value&&"moved"in S&&i("updateActivity",{id:S.moved.element.id,rank:Mr(u.value,S.moved.newIndex)})},v=r.computed({get:()=>{var S;return(S=c.value)==null?void 0:S.color},set:S=>{c.value&&i("updateMilestone",{id:c.value.id,color:S})}}),_=r.computed({get:()=>{var S;return((S=c==null?void 0:c.value)==null?void 0:S.deadline)??""},set:S=>{c.value&&i("updateMilestone",{id:c.value.id,deadline:S!=null&&S.length?S:null})}}),b=S=>o.closedStatus?tu(S,o.closedStatus):!1,w=r.computed(()=>{var S;return((S=o.users)==null?void 0:S.map(E=>({label:`${E.firstName} ${E.lastName}`,value:E.id,avatar:E.avatarUrl})))||[]}),k=r.computed({get(){var S,E;return(E=(S=c.value)==null?void 0:S.assignee)!=null&&E.id?[c.value.assignee.id]:[]},set(S){i("updateMilestone",{id:o.milestoneId,assigneeId:S[0]??null})}}),A=r.computed({get(){var S;return((S=c.value)==null?void 0:S.important)??!1},set(S){i("updateMilestone",{id:o.milestoneId,important:S})}}),T=(S,E)=>{const D=S.currentTarget;D instanceof HTMLElement&&E(D)};return(S,E)=>{var D;return r.openBlock(),r.createElementBlock("div",Yme,[r.createElementVNode("header",Jme,[r.createElementVNode("div",Xme,[r.createVNode(ue,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),r.createElementVNode("div",Qme,[r.createElementVNode("div",ehe,[r.createVNode(ht,{title:((D=c.value)==null?void 0:D.name)||t.milestoneId,level:5},null,8,["title"]),r.createVNode(Kc,{modelValue:A.value,"onUpdate:modelValue":E[0]||(E[0]=x=>A.value=x),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:S.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(r.openBlock(),r.createElementBlock("div",the,[r.createElementVNode("div",nhe,[r.createElementVNode("label",ohe,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":E[1]||(E[1]=x=>_.value=x),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[r.vModelText,_.value,void 0,{lazy:!0}]])])]),r.createElementVNode("div",rhe,[r.createElementVNode("label",ihe,[r.createVNode(Ct,{modelValue:k.value,"onUpdate:modelValue":E[2]||(E[2]=x=>k.value=x),options:w.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:S.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:r.withCtx(({option:x,handleTagRemove:$})=>[r.createVNode(Xn,{"user-name":x.label,"avatar-url":x.avatar,"is-closable":!0,onClose:B=>$(x,B)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),r.createElementVNode("div",she,[r.createVNode(jr,{color:v.value,"onUpdate:color":E[3]||(E[3]=x=>v.value=x)},{clickable:r.withCtx(({openPicker:x,bgColor:$})=>[r.createElementVNode("button",{style:r.normalizeStyle({background:$}),class:"color-button",onClick:B=>T(B,x)},null,12,ahe)]),_:1},8,["color"]),t.isEditable?(r.openBlock(),r.createBlock(Xi,{key:0,placement:"bottom-end"},{trigger:r.withCtx(({open:x})=>[r.createElementVNode("button",{type:"button",class:"ao-project-milestone__quick-add",title:S.$t("project.activity.add"),onClick:x},[r.createVNode(ke,{name:"Add",class:"ao-project-milestone__quick-add-icon"})],8,lhe)]),menu:r.withCtx(({close:x})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),p()}},r.toDisplayString(S.$t("project.bulk.menu.single")),9,che),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),m.value=!0}},r.toDisplayString(S.$t("project.bulk.menu.bulkInsert")),9,uhe)]),_:1})):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",dhe,[r.createVNode(r.unref(ko),r.mergeProps({class:"ao-project-milestone__activities",list:u.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},S.$attrs,{onChange:C}),{item:r.withCtx(({element:x})=>{var $,B,V,I,j;return[r.createVNode(hd,{id:x.id,name:x.name||x.id,"project-id":t.projectId,"phase-name":($=a.value)==null?void 0:$.name,"milestone-name":(B=c.value)==null?void 0:B.name,"milestone-color":(V=c.value)==null?void 0:V.color,deadline:x.deadline,important:x.important,blocked:x.blocked,users:t.users,assignee:x.assignee,slug:x.slug,comments:(I=x.comments)==null?void 0:I.length,attachments:(j=x.attachments)==null?void 0:j.length,tasks:x.tasks,"is-editable":t.isEditable,"is-private":x.private,"is-closed":b(x),onClick:F=>S.$router.push({name:r.unref(Fe).activity,params:{milestoneId:t.milestoneId,activityId:x.id}}),onUpdateActivity:y,onRemoveAssignee:()=>y({id:x.id,assigneeId:null}),onStartTimer:s},r.createSlots({_:2},[t.isEditable?{name:"secondary",fn:r.withCtx(()=>[t.isEditable&&x.active?(r.openBlock(),r.createBlock(ue,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:S.$t("archive"),onClick:r.withModifiers(()=>S.$emit("archiveActivity",{id:x.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0),t.isEditable&&!x.active?(r.openBlock(),r.createBlock(ue,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:S.$t("feed.activity.unarchive"),onClick:r.withModifiers(()=>S.$emit("unarchiveActivity",{id:x.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",fhe,[r.createVNode(Xi,null,{trigger:r.withCtx(({open:x})=>[r.createVNode(wo,{"icon-name":"Add",label:S.$t("project.activity.add"),onClick:x},null,8,["label","onClick"])]),menu:r.withCtx(({close:x})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),f()}},r.toDisplayString(S.$t("project.bulk.menu.single")),9,phe),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),m.value=!0}},r.toDisplayString(S.$t("project.bulk.menu.bulkInsert")),9,mhe)]),_:1})])):r.createCommentVNode("",!0)]),m.value?(r.openBlock(),r.createBlock(pd,{key:0,open:m.value,"onUpdate:open":E[4]||(E[4]=x=>m.value=x),title:S.$t("project.bulk.modal.activity.title"),hint:S.$t("project.bulk.modal.hint"),placeholder:S.$t("project.bulk.modal.placeholder"),"is-loading":h.value,onSubmit:g},null,8,["open","title","hint","placeholder","is-loading"])):r.createCommentVNode("",!0)])}}});const hhe=r.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},devStatuses:{},activities:{},selectedActivity:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{type:Function},sprints:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","createSprint"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{var C;return(C=n.phases)==null?void 0:C.find(v=>v.id===n.phaseId)}),s=r.computed(()=>{var C;return(C=n.phases)==null?void 0:C.flatMap(v=>v.milestones)}),a=r.computed(()=>{var C;return(C=s.value)==null?void 0:C.find(v=>v.id===n.milestoneId)}),l=r.computed(()=>{var C;return n.selectedActivity??((C=n.activities)==null?void 0:C.find(v=>v.id===n.activityId))}),c=C=>{o("update:activity",C)},u=C=>{o("addSubtask",C)},d=C=>{o("updateSubtask",C)},f=C=>{o("deleteSubtask",C)},p=C=>{o("addFiles",C)},m=C=>{o("removeFile",C)},h=C=>{o("addComment",C)},g=C=>{o("updateComment",C)},y=C=>{o("removeComment",C)};return(C,v)=>{var _,b;return l.value?(r.openBlock(),r.createBlock(rd,{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,onClose:C.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:f,onAddFiles:p,onRemoveFile:m,onAddComment:h,onUpdateComment:g,onRemoveComment:y,onCreateSprint:v[0]||(v[0]=w=>o("createSprint",w))},{default:r.withCtx(w=>[r.renderSlot(C.$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","onClose"])):r.createCommentVNode("",!0)}}}),ghe={class:"ao-col-header"},vhe=r.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("header",ghe,[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 _he(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function xa(t){return typeof t=="function"?t():r.unref(t)}const yhe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Che=t=>t!=null,Vi=()=>{};function bhe(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 khe(t,e={}){let n,o,i=Vi;const s=l=>{clearTimeout(l),i(),i=Vi};return l=>{const c=xa(t),u=xa(e.maxWait);return n&&s(n),c<=0||u!==void 0&&u<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((d,f)=>{i=e.rejectOnCancel?f:d,u&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,d(l())},u)),n=setTimeout(()=>{o&&s(o),o=null,d(l())},c)})}}function whe(t,e=200,n={}){return bhe(khe(e,n),t)}function lc(t){var e;const n=xa(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Ehe=yhe?window:void 0;function She(){const t=r.ref(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function xhe(t){const e=She();return r.computed(()=>(e.value,!!t()))}function The(t,e,n={}){const{root:o,rootMargin:i="0px",threshold:s=.1,window:a=Ehe,immediate:l=!0}=n,c=xhe(()=>a&&"IntersectionObserver"in a),u=r.computed(()=>{const h=xa(t);return(Array.isArray(h)?h:[h]).map(lc).filter(Che)});let d=Vi;const f=r.ref(l),p=c.value?r.watch(()=>[u.value,lc(o),f.value],([h,g])=>{if(d(),!f.value||!h.length)return;const y=new IntersectionObserver(e,{root:lc(g),rootMargin:i,threshold:s});h.forEach(C=>C&&y.observe(C)),d=()=>{y.disconnect(),d=Vi}},{immediate:l,flush:"post"}):Vi,m=()=>{d(),p(),f.value=!1};return _he(m),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}const Ahe={class:r.normalizeClass(["ao-list-kanban"])},Nhe={class:"ao-list-kanban__header"},Dhe=["title"],$he={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},Bhe={key:1,class:"ao-list-kanban__end"},Mhe={key:0,class:"ao-list-kanban__no-more"},Lhe={key:1,class:"ao-list-kanban__divider"},Ohe={key:1,class:"ao-list-kanban__footer"},Vhe=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);The(s,([{isIntersecting:f}])=>{i.value=f}),r.watch(i,f=>{f&&n.hasMore&&!n.isLoading&&o("loadMore")});const a=f=>{var p;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((p=f.assignee)==null?void 0:p.id):!1},l=f=>{o("selectActivity",f)},c=f=>{o("updateActivity",f)},u=f=>{if("added"in f){const p={id:f.added.element.id,rank:Mr(n.list,f.added.newIndex)};n.isDevMode?p.statusDevId=n.status.id:p.statusId=n.status.id,o("updateActivity",p)}else"removed"in f||"moved"in f&&o("updateActivity",{id:f.moved.element.id,rank:Mr(n.list,f.moved.newIndex)})},d=r.ref(!1);return(f,p)=>(r.openBlock(),r.createElementBlock("div",Ahe,[t.title||f.$slots.header?r.renderSlot(f.$slots,"header",{},()=>{var m;return[r.createElementVNode("div",Nhe,[t.title?(r.openBlock(),r.createBlock(vhe,{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:f.$t("feed.activity.add"),onClick:p[0]||(p[0]=h=>f.$emit("addAtBeginning"))},[r.createVNode(ke,{name:"Add"})],8,Dhe)):r.createCommentVNode("",!0)])]},void 0,0):r.createCommentVNode("",!0),r.createVNode(r.unref(ko),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"},f.$attrs,{draggable:".ao-list-draggable",disabled:!t.isEditable,"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"},onChange:u,onStart:p[2]||(p[2]=m=>d.value=!0),onEnd:p[3]||(p[3]=m=>d.value=!1)}),{item:r.withCtx(({element:m})=>{var h,g,y,C,v,_,b,w,k,A;return[r.createVNode(hd,{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":(g=m.project)==null?void 0:g.id,"project-color":(y=m.project)==null?void 0:y.color,"phase-name":(v=(C=m.milestone)==null?void 0:C.phase)==null?void 0:v.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:[T=>a(m)&&c(T),()=>a(m)&&c],onClick:()=>l(m.id),onRemoveAssignee:()=>a(m)&&c({id:m.id,assigneeId:null}),onStartTimer:p[1]||(p[1]=T=>f.$emit("startTimer",T))},{secondary:r.withCtx(()=>[a(m)&&m.active?(r.openBlock(),r.createBlock(ue,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.archive"),onClick:r.withModifiers(()=>f.$emit("archiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0),a(m)&&!m.active?(r.openBlock(),r.createBlock(ue,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.unarchive"),onClick:r.withModifiers(()=>f.$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",$he,[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",Bhe,[t.noMoreLabel?(r.openBlock(),r.createElementBlock("span",Mhe,r.toDisplayString(t.noMoreLabel),1)):t.isEditable?(r.openBlock(),r.createElementBlock("span",Lhe)):r.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(r.openBlock(),r.createElementBlock("div",Ohe,[r.renderSlot(f.$slots,"footer",{},()=>[t.isEditable?(r.openBlock(),r.createBlock(wo,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:p[4]||(p[4]=m=>f.$emit("add"))},null,8,["label"])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)]))}});const Ihe={class:"ao-field ao-search-field"},Phe=["value","placeholder"],Fhe=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=whe(i,n.delay),a=l=>{o("clear",l)};return(l,c)=>(r.openBlock(),r.createElementBlock("div",Ihe,[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,Phe),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(ue,{"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 Rhe={class:"ao-sprint-metrics"},zhe=["onClick"],Uhe={class:"ao-sprint-metrics__header-left"},qhe={class:"ao-sprint-metrics__icon"},Hhe={class:"ao-sprint-metrics__title"},jhe={class:"ao-sprint-metrics__dates"},Whe={key:0,class:"ao-sprint-metrics__project"},Zhe={class:"ao-sprint-metrics__advancement"},Khe={class:"ao-sprint-metrics__progress-bar"},Ghe={class:"ao-sprint-metrics__percent"},Yhe={class:"ao-sprint-metrics__tooltip ao-sprint-metrics__tooltip--advancement"},Jhe={class:"ao-sprint-metrics__tooltip-row"},Xhe={class:"ao-sprint-metrics__tooltip-row"},Qhe={class:"ao-sprint-metrics__tooltip-row"},ege={class:"ao-sprint-metrics__tooltip-row"},tge={class:"ao-sprint-metrics__tooltip-row"},nge={class:"ao-sprint-metrics__tooltip-row"},oge={class:"ao-sprint-metrics__tooltip-row"},rge={class:"ao-sprint-metrics__content"},ige={class:"ao-sprint-metrics__grid"},sge={class:"ao-sprint-metrics__item"},age={class:"ao-sprint-metrics__label"},lge={class:"ao-sprint-metrics__value"},cge={key:0,class:"ao-sprint-metrics__tooltip"},uge={class:"ao-sprint-metrics__tooltip-title"},dge={class:"ao-sprint-metrics__item"},fge={class:"ao-sprint-metrics__label"},pge={class:"ao-sprint-metrics__value"},mge={class:"ao-sprint-metrics__item ao-sprint-metrics__item--editable"},hge={class:"ao-sprint-metrics__label"},gge={class:"ao-sprint-metrics__input-row"},vge=["value","placeholder","onInput"],_ge={key:0,class:"ao-sprint-metrics__secondary"},yge={class:"ao-sprint-metrics__item"},Cge={class:"ao-sprint-metrics__label"},bge={class:"ao-sprint-metrics__value"},kge=r.defineComponent({__name:"AoSprintMetrics",props:{sprints:{},activities:{},planningData:{default:()=>({})},projects:{default:()=>[]}},setup(t){const e=t,{t:n}=Wt(),o=["Ok for prod","Done"],i=r.ref(new Set),s=r.ref({}),a=E=>{i.value.has(E)?i.value.delete(E):i.value.add(E)},l=E=>e.projects.find(D=>D.id===E.projectId),c=E=>{var D;return((D=e.planningData[E])==null?void 0:D.plannedManDays)??0},u=E=>{var D;return((D=e.planningData[E])==null?void 0:D.remainingPlannedManDays)??0},d=E=>{var D;return((D=e.planningData[E])==null?void 0:D.users)??[]},f=E=>e.activities.filter(D=>{var x;return((x=D.sprint)==null?void 0:x.id)===E}).reduce((D,x)=>D+(x.estimation??0),0),p=E=>e.activities.filter(D=>{var $,B;if((($=D.sprint)==null?void 0:$.id)!==E)return!1;const x=(B=D.devStatus)==null?void 0:B.name;return x&&o.includes(x)}).reduce((D,x)=>D+(x.estimation??0),0),m=E=>{const D=c(E);return D<=0?0:f(E)/D},h=E=>s.value[E],g=(E,D)=>{const x=parseFloat(D);isNaN(x)||x<=0?delete s.value[E]:s.value[E]=x},y=E=>{const D=h(E);return D===void 0?0:c(E)*D},C=E=>{const D=y(E);return D<=0?null:f(E)/D},v=E=>{const D=C(E);return D===null?0:Math.round(D*100)},_=E=>{const D=f(E);if(D<=0)return 0;const x=p(E);return Math.round(x/D*100)},b=E=>{const D=f(E),x=p(E);return Math.max(0,D-x)},w=E=>{const D=u(E),x=m(E);return D*x},k=E=>{const D=w(E),x=b(E);return D<=0&&x>0?!1:D<x},A=E=>E.toFixed(1),T=E=>`${E.toFixed(2)} pts / MD`,S=(E,D)=>{const x=new Date(E),$=new Date(D),B={day:"numeric",month:"short"};return`${x.toLocaleDateString("en-UK",B)} – ${$.toLocaleDateString("en-UK",B)}`};return(E,D)=>(r.openBlock(),r.createElementBlock("div",Rhe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sprints,x=>{var $;return r.openBlock(),r.createElementBlock("div",{key:x.id,class:"ao-sprint-metrics__section"},[r.createElementVNode("div",{class:"ao-sprint-metrics__header",onClick:B=>a(x.id)},[r.createElementVNode("div",Uhe,[r.createElementVNode("span",qhe,r.toDisplayString(i.value.has(x.id)?"▸":"▾"),1),r.createElementVNode("span",Hhe,r.toDisplayString(x.name),1),r.createElementVNode("span",jhe," · "+r.toDisplayString(S(x.startDate,x.endDate)),1),!i.value.has(x.id)&&l(x)?(r.openBlock(),r.createElementBlock("span",Whe," · "+r.toDisplayString(($=l(x))==null?void 0:$.name),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",{class:r.normalizeClass(["ao-sprint-metrics__header-right",{"ao-sprint-metrics__header-right--behind":k(x.id)}])},[r.createElementVNode("div",Zhe,[r.createElementVNode("div",Khe,[r.createElementVNode("div",{class:r.normalizeClass(["ao-sprint-metrics__progress-fill",{"ao-sprint-metrics__progress-fill--behind":k(x.id)}]),style:r.normalizeStyle({width:_(x.id)+"%"})},null,6)]),r.createElementVNode("span",Ghe,r.toDisplayString(_(x.id))+"% ",1),r.createElementVNode("div",Yhe,[D[7]||(D[7]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-title"}," Sprint advancement ",-1)),r.createElementVNode("span",Jhe,[D[0]||(D[0]=r.createElementVNode("span",null,"Advancement",-1)),r.createElementVNode("span",null,r.toDisplayString(_(x.id))+"%",1)]),r.createElementVNode("span",Xhe,[D[1]||(D[1]=r.createElementVNode("span",null,"Completed",-1)),r.createElementVNode("span",null,r.toDisplayString(A(p(x.id)))+" / "+r.toDisplayString(A(f(x.id)))+" pts ",1)]),r.createElementVNode("span",Qhe,[D[2]||(D[2]=r.createElementVNode("span",null,"Remaining",-1)),r.createElementVNode("span",null,r.toDisplayString(A(b(x.id)))+" pts",1)]),D[8]||(D[8]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-separator"},null,-1)),r.createElementVNode("span",ege,[D[3]||(D[3]=r.createElementVNode("span",null,"Remaining capacity",-1)),r.createElementVNode("span",null,r.toDisplayString(A(w(x.id)))+" pts",1)]),r.createElementVNode("span",tge,[D[4]||(D[4]=r.createElementVNode("span",null,"Remaining planning",-1)),r.createElementVNode("span",null,r.toDisplayString(A(u(x.id)))+" MD",1)]),r.createElementVNode("span",nge,[D[5]||(D[5]=r.createElementVNode("span",null,"Estimated velocity",-1)),r.createElementVNode("span",null,r.toDisplayString(T(m(x.id))),1)]),D[9]||(D[9]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-separator"},null,-1)),r.createElementVNode("span",oge,[D[6]||(D[6]=r.createElementVNode("span",null,"Status",-1)),r.createElementVNode("span",null,r.toDisplayString(k(x.id)?"Behind plan":"On track"),1)])])])],2)],8,zhe),r.withDirectives(r.createElementVNode("div",rge,[r.createElementVNode("div",ige,[r.createElementVNode("div",sge,[r.createElementVNode("div",age,r.toDisplayString(r.unref(n)("sprintMetrics.manDaysPlanned")),1),r.createElementVNode("div",lge,[r.createElementVNode("span",{class:r.normalizeClass(["ao-sprint-metrics__man-days",{"ao-sprint-metrics__man-days--has-tooltip":d(x.id).length>0}])},[r.createTextVNode(r.toDisplayString(A(c(x.id)))+" MD ",1),d(x.id).length>0?(r.openBlock(),r.createElementBlock("span",cge,[r.createElementVNode("span",uge,r.toDisplayString(A(c(x.id)))+" MD planned ",1),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d(x.id),B=>(r.openBlock(),r.createElementBlock("span",{key:B.userId,class:"ao-sprint-metrics__tooltip-row"},[r.createElementVNode("span",null,r.toDisplayString(B.fullName),1),r.createElementVNode("span",null,r.toDisplayString(A(B.plannedManDays))+" MD",1)]))),128))])):r.createCommentVNode("",!0)],2)])]),r.createElementVNode("div",dge,[r.createElementVNode("div",fge,r.toDisplayString(r.unref(n)("sprintMetrics.estimatedPoints")),1),r.createElementVNode("div",pge,r.toDisplayString(A(f(x.id)))+" pts ",1)]),r.createElementVNode("div",mge,[r.createElementVNode("div",hge,r.toDisplayString(r.unref(n)("sprintMetrics.targetVelocity")),1),r.createElementVNode("div",gge,[r.createElementVNode("input",{type:"number",step:"0.1",min:"0",class:"ao-sprint-metrics__input",value:s.value[x.id]??"",placeholder:r.unref(n)("sprintMetrics.targetVelocityPlaceholder"),onInput:B=>g(x.id,B.target.value)},null,40,vge),D[10]||(D[10]=r.createElementVNode("span",{class:"ao-sprint-metrics__unit"},"pts / MD",-1))]),m(x.id)>0?(r.openBlock(),r.createElementBlock("div",_ge,r.toDisplayString(r.unref(n)("sprintMetrics.currentlyEstimated"))+": "+r.toDisplayString(T(m(x.id))),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",yge,[r.createElementVNode("div",Cge,r.toDisplayString(r.unref(n)("sprintMetrics.planningProgress")),1),r.createElementVNode("div",bge,[C(x.id)!==null?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(v(x.id))+"% · "+r.toDisplayString(A(f(x.id)))+" / "+r.toDisplayString(A(y(x.id)))+" pts ",1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" — ")],64))])])])],512),[[r.vShow,!i.value.has(x.id)]])])}),128))]))}});const wge=te(kge,[["__scopeId","data-v-98b799f1"]]),Ege={class:"ao-feed"},Sge={class:"ao-feed__filters"},xge={class:"ao-feed__body"},Yc=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:()=>[]},sprintPlanningData:{default:()=>({})}},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"],setup(t,{emit:e}){const{t:n}=Wt(),o=t,i=e;function s(R,le){i("toast",R,le)}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,le)=>{await i("selectActivity",R,le)},d=r.ref({}),f=r.ref(!1),p=r.ref(!1),m=r.computed(()=>o.project?"milestone":"project");r.watch([()=>l.value,()=>c.value,()=>o.initialActivityId,()=>o.initialActivitySlug,()=>o.feedMode],async([R,le,ge,me],[Ee,ze])=>{const Be=o.feedMode==="dev"?"devStatus":"status";d.value=Object.fromEntries(R.map(Ae=>[Ae.id,le.filter(Ie=>{const Pe=Ie[Be];return(Pe==null?void 0:Pe.id)===Ae.id})])),ge&&!f.value?(u(ge,null),f.value=!0):me&&!f.value&&(u(null,me),f.value=!0),p.value&&Wn(le,ze)},{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??""}`}),g=R=>{var Ae;const le=o.feedMode==="dev"?o.activities.filter(Ie=>Ie.activityType==="dev"):o.activities,ge=le==null?void 0:le.at(-1),me=ge?Xe.LexoRank.parse(ge.rank).genNext():Xe.LexoRank.middle(),Ee=((Ae=o.activities)==null?void 0:Ae.length)??0,ze=o.feedMode==="dev",Be={name:n("activity.defaultName",{idx:Ee+1}),rank:me.format(),...ze?{statusDevId:R.id,type:"dev"}:{statusId:R.id}};if(o.filters.assigneeId.length>0&&(Be.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(Be.projectId=o.filters.projectId[0]),o.filters.sprintId&&o.filters.sprintId.length===1){const Ie=o.sprints.find(Pe=>Pe.id===o.filters.sprintId[0]);Ie&&(Be.sprintId=Ie.id,Be.projectId=Ie.projectId)}p.value=!0,i("addActivity",Be)},y=R=>{var Ae,Ie;const le=o.feedMode==="dev"?"devStatus":"status",ge=((Ae=o.activities)==null?void 0:Ae.filter(Pe=>{const dt=Pe[le];return(dt==null?void 0:dt.id)===R.id}))??[],me=os(ge),Ee=((Ie=o.activities)==null?void 0:Ie.length)??0,ze=o.feedMode==="dev",Be={name:n("activity.defaultName",{idx:Ee+1}),rank:me,...ze?{statusDevId:R.id,type:"dev"}:{statusId:R.id}};if(o.filters.assigneeId.length>0&&(Be.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(Be.projectId=o.filters.projectId[0]),o.filters.sprintId&&o.filters.sprintId.length===1){const Pe=o.sprints.find(dt=>dt.id===o.filters.sprintId[0]);Pe&&(Be.sprintId=Pe.id,Be.projectId=Pe.projectId)}p.value=!0,i("addActivity",Be)},C=(R,le)=>{p.value=!1,i("update:filters",{...o.filters,[R]:le})},v=r.computed(()=>o.project?[o.project]:o.projects??[]),_=r.computed(()=>v.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[so.sprint]??[];return o.sprints.filter(le=>R.includes(le.id))});r.computed(()=>{var R;return(R=o.activityTypes)==null?void 0:R.map(le=>({value:le.id,label:le.name}))});const k=r.computed(()=>o.users.map(R=>({value:R.id,label:`${R.firstName} ${R.lastName}`,avatar:R.avatarUrl}))),A=R=>{o.selectedActivity&&i("update:activity",R)},T=R=>{i("update:activity",R)},S=R=>{i("archiveActivity",R)},E=R=>{i("unarchiveActivity",R)},D=R=>{var le;i("startTimer",R),(le=window.parent)==null||le.postMessage({type:"startTimer",data:R},"*")},x=R=>{p.value=!1,i("update:searchText",R)},$=R=>{p.value=!1,i("clear:searchText",R)},B=R=>{o.selectedActivity&&i("addSubtask",R)},V=R=>{o.selectedActivity&&i("updateSubtask",R)},I=R=>{o.selectedActivity&&i("deleteSubtask",R)},j=R=>{i("addFiles",R)},F=R=>{i("removeFile",R)},q=R=>{o.selectedActivity&&i("addComment",{...R,activityId:o.selectedActivity.id})},Q=R=>{const{id:le}=o.selectedActivity||{};le&&i("updateComment",R)},ae=R=>{const{id:le}=o.selectedActivity||{};le&&i("removeComment",R)},ne=$r.useRouter(),ye=$r.useRoute(),re=r.ref("feed");r.watch(()=>ye.name,R=>{R===Io.feed||R==="ActivityFeed"||R==="ActivityFeedWithActivity"?re.value="feed":R===Io.dev||R==="ActivityFeedDev"||R==="ActivityFeedDevWithActivity"?re.value="dev":R===Fe.feed?re.value="feed":R===Fe.dev?re.value="dev":R===Fe.project?re.value="overview":R===Fe.mapping&&(re.value="mapping")},{immediate:!0});const ie=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}],U=r.computed(()=>P.value?ie.filter(R=>R.value==="feed"||R.value==="dev"):ie),P=r.computed(()=>!o.project&&ye.name&&(ye.name===Io.feed||ye.name===Io.dev||ye.name==="ActivityFeed"||ye.name==="ActivityFeedDev"||ye.name==="ActivityFeedWithActivity"||ye.name==="ActivityFeedDevWithActivity")),se=r.computed(()=>P.value?Io.feed:Fe.feed),we=r.computed(()=>P.value?Io.dev:Fe.dev),Re=r.computed(()=>Fe.project),Ce=r.computed(()=>Fe.mapping);return r.watch(re,R=>{R==="feed"?ne.push({name:se.value}):R==="dev"?ne.push({name:we.value}):R==="overview"?ne.push({name:Re.value}):R==="mapping"&&ne.push({name:Ce.value})}),(R,le)=>{var ge;return r.openBlock(),r.createElementBlock("div",Ege,[r.createVNode(rs,null,{primary:r.withCtx(()=>[r.createElementVNode("div",Sge,[r.createVNode(vs,{modelValue:re.value,"onUpdate:modelValue":le[0]||(le[0]=me=>re.value=me),tabs:U.value},null,8,["modelValue","tabs"]),r.createVNode(Fhe,{"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(Ct,{key:0,"model-value":t.filters[r.unref(so).project],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:R.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":le[1]||(le[1]=me=>C(r.unref(so).project,me))},null,8,["model-value","options","placeholder"])),t.feedMode==="dev"?(r.openBlock(),r.createBlock(Ct,{key:1,"model-value":t.filters[r.unref(so).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":le[2]||(le[2]=me=>C(r.unref(so).sprint,me))},null,8,["model-value","options","disabled","placeholder"])):r.createCommentVNode("",!0),k.value.length?(r.openBlock(),r.createBlock(Ct,{key:2,"model-value":t.filters[r.unref(so).assignee],mode:"tags",options:k.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:R.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":le[3]||(le[3]=me=>C(r.unref(so).assignee,me))},{tag:r.withCtx(({option:me,handleTagRemove:Ee})=>[r.createVNode(Xn,{"user-name":me.label,"avatar-url":me.avatar,"is-closable":!0,onClose:ze=>Ee(me,ze)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):r.createCommentVNode("",!0)]),r.createVNode(ue,{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:le[4]||(le[4]=me=>R.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),r.createVNode(ue,{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:le[5]||(le[5]=me=>R.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),r.createVNode(ue,{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:le[6]||(le[6]=me=>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(wge,{key:0,sprints:w.value,activities:c.value,"planning-data":t.sprintPlanningData,projects:v.value},null,8,["sprints","activities","planning-data","projects"])):r.createCommentVNode("",!0),r.createElementVNode("div",xge,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,me=>(r.openBlock(),r.createBlock(Vhe,{key:me.id,status:me,list:d.value[me.id],title:me.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:()=>g(me),onAddAtBeginning:()=>y(me),onSelectActivity:u,onArchiveActivity:S,onUnarchiveActivity:E,onUpdateActivity:T,onStartTimer:D},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(rd,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"milestone-id":(ge=t.selectedActivity.milestone)==null?void 0:ge.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:v.value,"time-tracking-data":t.timeTrackingData,"load-attachment-preview":o.loadAttachmentPreview,sprints:t.activitySprints,onClose:le[7]||(le[7]=()=>u(null,null)),"onUpdate:activity":A,onAddSubtask:B,onUpdateSubtask:V,onDeleteSubtask:I,onAddFiles:j,onRemoveFile:F,onAddComment:q,onUpdateComment:Q,onRemoveComment:ae,onToast:s,onCreateSprint:le[8]||(le[8]=me=>i("createSprint",me))},{default:r.withCtx(me=>[r.renderSlot(R.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(me)))]),_: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"])):r.createCommentVNode("",!0)]))])}}});const Tge={class:"ao-project-mapping"},Age={class:"ao-project-mapping-mapping__body"},Nge={class:"ao-project-mapping-mapping__phases"},Dge={key:0,class:"ao-project-mapping-mapping__image-wrapper"},$ge=["src","alt"],Bge=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}=Wt(),o=t,i=e,s=()=>{const{name:v,rank:_}=Zo(o.phases,"phase",n);i("addPhase",{name:v,rank:_,projectId:o.project.id})},a=()=>{const v=n("template.defaultName.phase",{idx:1}),_=os(o.phases);i("addPhase",{name:v,rank:_,projectId:o.project.id})},l=v=>{i("updatePhase",v)},c=v=>{i("archivePhase",v)},u=v=>{i("unarchivePhase",v)},d=v=>{i("copyPhaseToTemplate",v)},f=r.ref(!1),p=r.ref(!1),m=(v,_)=>{i("applyTemplate",{templateId:v,projectId:_}),f.value=!1},h=(v,_)=>{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:v,rank:w.format(),phaseIds:_}),p.value=!1},g=$r.useRouter(),y=r.ref("mapping"),C=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return r.watch(y,v=>{v==="feed"?(g.push({name:Fe.feed}),console.log("Navigating to feed...")):v==="dev"?(g.push({name:Fe.dev}),console.log("Navigating to dev...")):v==="overview"?(g.push({name:Fe.project}),console.log("Navigating to feed...")):v==="mapping"&&(g.push({name:Fe.mapping}),console.log("Navigating to feed..."))}),(v,_)=>{var b;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",r.mergeProps({class:"ao-project-mapping-overview"},v.$attrs),[r.createElementVNode("div",Tge,[r.createVNode(rs,null,{primary:r.withCtx(()=>[r.createVNode(vs,{modelValue:y.value,"onUpdate:modelValue":_[0]||(_[0]=w=>y.value=w),tabs:C},null,8,["modelValue"]),r.createVNode(ue,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:v.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:_[1]||(_[1]=w=>v.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:r.withCtx(()=>[t.isEditable===!0?(r.openBlock(),r.createBlock(ue,{key:0,class:"ao-mapping__quick-add-phase",size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:v.$t("project.phase.add"),onClick:a},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(ue,{key:1,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:v.$t("project.template.save.label"),onClick:_[2]||(_[2]=w=>p.value=!0)},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(ue,{key:2,class:"ao-project-mapping-overview__add-template",color:"primary",label:v.$t("project.template.apply.label"),onClick:_[3]||(_[3]=w=>f.value=!0)},null,8,["label"])):r.createCommentVNode("",!0)]),_:1}),r.createElementVNode("div",Age,[r.createElementVNode("div",Nge,[r.createVNode(md,{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",Dge,[r.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:r.unref(n)("architectureImage.alt")},null,8,$ge)])):r.createCommentVNode("",!0)])])],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[p.value?(r.openBlock(),r.createBlock(qg,{key:0,phases:t.phases,onClose:_[4]||(_[4]=w=>p.value=!1),onSave:h},null,8,["phases"])):r.createCommentVNode("",!0),f.value?(r.openBlock(),r.createBlock(Ug,{key:1,"project-id":t.project.id,templates:t.templates,onClose:_[5]||(_[5]=w=>f.value=!1),onApply:m},null,8,["project-id","templates"])):r.createCommentVNode("",!0)]))],64)}}});const Uo={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},Mge=(t,e={})=>[{path:t,name:Uo.TEMPLATES,redirect:{name:Uo.TEMPLATES_LIST},...e,children:[{path:"",name:Uo.TEMPLATES_LIST,component:Hg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Uo.TEMPLATE_DETAILS,component:zg,props:!0}]}],Fe={project:"AoProject",feed:"AoProjectFeed",dev:"AoProjectDev",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},Io={feed:"ActivityFeed",dev:"ActivityFeedDev"},Lge=(t,e={})=>[{path:t,...e,redirect:{name:Fe.project},children:[{path:"",name:Fe.project,component:xme,props:!0,children:[{path:":phaseId/:milestoneId",name:Fe.milestone,component:vp,props:!0},{path:":phaseId/:milestoneId/:activityId",name:Fe.activity,props:{default:!0,modal:!0},components:{default:vp,modal:hhe}}]},{path:"feed",name:Fe.feed,component:Yc,props:n=>({...n.params,feedMode:"standard"})},{path:"dev",name:Fe.dev,component:Yc,props:n=>({...n.params,feedMode:"dev"})},{path:"mapping",name:Fe.mapping,component:Bge,props:!0}]}],Oge={class:"ao-templates"},Hg=r.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=Wt(),o=t,i=e;r.watch(()=>o.templates,(u,d)=>{Wn(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(),f=((h=o.templates)==null?void 0:h.length)??0,p={name:n("template.defaultName.template",{idx:f+1}),rank:d.format()};i("addTemplate",p)},a=(u,d)=>{i("updateItem",{itemType:Ze.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{i("removeItem",{itemType:Ze.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=ns(u,o.templates??[]);i("updateItem",{itemType:Ze.TEMPLATES,id:u.moved.element.id,templateId:u.moved.element.id,data:{rank:d}})}};return(u,d)=>(r.openBlock(),r.createElementBlock("div",Oge,[r.createVNode(rs,null,{secondary:r.withCtx(()=>[r.createVNode(ue,{label:u.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:s},null,8,["label"])]),_:1}),r.createVNode(r.unref(ko),{"model-value":t.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:c},{item:r.withCtx(({element:f})=>{var p;return[r.createVNode(Z7,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?r.unref(v7)(f.phases):0,activities:f.phases?r.unref(_7)(f.phases):0,"updated-at":f.updatedAt,"updated-by":f.updatedBy,onUpdateTitle:m=>a(f.id,m),onClick:m=>u.$router.push({name:r.unref(Uo).TEMPLATE_DETAILS,params:{templateId:f.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 Vge={class:"ao-field__label"},jg=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",Vge,r.toDisplayString(t.label),1),r.renderSlot(e.$slots,"default")],2))}}),Ige=["type","value","disabled","readonly"],Pge=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(jg,{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,Ige)]),_:1},8,["label"]))}}),Fge={class:"ao-field"},Rge={class:"ao-field__label"},zge=["checked","disabled"],Wg=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",Fge,[r.createElementVNode("span",Rge,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,zge)]))}}),Uge={class:"ao-audit-config"},qge={key:0,class:"ao-audit-config__loading"},Hge={key:1,class:"ao-audit-config__error"},jge={key:2,class:"ao-audit-config__empty"},Wge={key:3,class:"ao-audit-config__table"},Zge={class:"ao-audit-config__th ao-audit-config__th--table"},Kge={class:"ao-audit-config__th ao-audit-config__th--audit"},Gge={class:"ao-audit-config__th ao-audit-config__th--excluded"},Yge={class:"ao-audit-config__td ao-audit-config__td--table"},Jge={class:"ao-audit-config__table-name"},Xge={key:0,class:"ao-audit-config__schema"},Qge={class:"ao-audit-config__td ao-audit-config__td--audit"},e0e={class:"ao-audit-config__checkbox"},t0e={class:"ao-audit-config__td ao-audit-config__td--excluded"},n0e={key:0,class:"ao-audit-config__disabled-note"},o0e={class:"ao-audit-config__option"},r0e=["title"],i0e={key:0,class:"ao-audit-config__all-tracked"},s0e=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}=Wt(),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 f=Array.from(new Set(d??[]));o("update",{schemaName:u.schemaName,tableName:u.tableName,isEnabled:u.isEnabled,excludeColumns:f})}return(u,d)=>(r.openBlock(),r.createElementBlock("div",Uge,[t.loading?(r.openBlock(),r.createElementBlock("div",qge,r.toDisplayString(r.unref(i)("audit.loading")),1)):t.error?(r.openBlock(),r.createElementBlock("div",Hge,r.toDisplayString(r.unref(i)("audit.error",{message:t.error})),1)):s.value.length?(r.openBlock(),r.createElementBlock("table",Wge,[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[r.createElementVNode("th",Zge,r.toDisplayString(r.unref(i)("audit.tableHeader")),1),r.createElementVNode("th",Kge,r.toDisplayString(r.unref(i)("audit.auditHeader")),1),r.createElementVNode("th",Gge,r.toDisplayString(r.unref(i)("audit.ignoredHeader")),1)])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,f=>(r.openBlock(),r.createElementBlock("tr",{key:`${f.schemaName}.${f.tableName}`},[r.createElementVNode("td",Yge,[r.createElementVNode("span",Jge,r.toDisplayString(f.tableName),1),f.schemaName!=="public"?(r.openBlock(),r.createElementBlock("span",Xge,r.toDisplayString(f.schemaName),1)):r.createCommentVNode("",!0)]),r.createElementVNode("td",Qge,[r.createElementVNode("div",e0e,[r.createVNode(Wg,{label:"","model-value":f.isEnabled,"is-disabled":t.disabled,"is-readonly":!1,"onUpdate:modelValue":p=>l(f,p)},null,8,["model-value","is-disabled","onUpdate:modelValue"])])]),r.createElementVNode("td",t0e,[f.isEnabled?(r.openBlock(),r.createBlock(Ct,{key:1,"model-value":f.excludeColumns,class:"ao-audit-config__multiselect",mode:"tags","value-prop":"value",label:"label","track-by":"label","close-on-select":!1,searchable:!0,options:a(f),disabled:t.disabled,caret:!t.disabled,"onUpdate:modelValue":p=>c(f,p)},{option:r.withCtx(({option:p})=>[r.createElementVNode("span",o0e,[r.createTextVNode(r.toDisplayString(p.label)+" ",1),p.isPrimaryKey?(r.openBlock(),r.createElementBlock("span",{key:0,class:"ao-audit-config__pk",title:r.unref(i)("audit.primaryKey")}," PK ",8,r0e)):r.createCommentVNode("",!0)])]),placeholder:r.withCtx(()=>[f.excludeColumns.length===0?(r.openBlock(),r.createElementBlock("span",i0e,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",n0e,r.toDisplayString(r.unref(i)("audit.auditDisabled")),1))])]))),128))])])):(r.openBlock(),r.createElementBlock("div",jge,r.toDisplayString(r.unref(i)("audit.empty")),1))]))}});const a0e={class:"ao-sprint-list"},l0e={class:"ao-sprint-list__header"},c0e={class:"ao-sprint-list__title-group"},u0e={class:"ao-sprint-list__count"},d0e={class:"ao-sprint-list__actions"},f0e={key:0,class:"ao-sprint-list__toggle"},p0e={key:0,class:"ao-sprint-list__row ao-sprint-list__row--editing"},m0e=["title","onClick"],h0e=["placeholder"],g0e={class:"ao-sprint-list__date-fields"},v0e={class:"ao-sprint-list__row-actions"},_0e={class:"ao-sprint-list__rows"},y0e={class:"ao-sprint-list__identity"},C0e={class:"ao-sprint-list__name-group"},b0e={class:"ao-sprint-list__name"},k0e={key:0,class:"ao-sprint-list__archived-badge"},w0e={class:"ao-sprint-list__dates"},E0e={key:0,class:"ao-sprint-list__row-actions"},S0e=["title","onClick"],x0e={class:"ao-sprint-list__date-fields"},T0e={class:"ao-sprint-list__row-actions"},A0e={key:1,class:"ao-sprint-list__empty"},N0e=r.defineComponent({__name:"AoSprintList",props:{sprints:{},isEditable:{type:Boolean}},emits:["updateSprint","archiveSprint","unarchiveSprint","createSprint"],setup(t,{emit:e}){const n=t,o=e,{t:i}=Wt(),s=r.ref(!1),a=r.computed(()=>s.value?n.sprints:n.sprints.filter(T=>T.active)),l=r.ref(null),c=r.ref({name:"",startDate:"",endDate:"",color:""}),u=r.ref(null),d=r.ref(null),f=T=>{l.value=T.id,c.value={name:T.name,startDate:T.startDate,endDate:T.endDate,color:T.color||""}},p=()=>{l.value=null,c.value={name:"",startDate:"",endDate:"",color:""}},m=T=>{o("updateSprint",{id:T,name:c.value.name||void 0,startDate:c.value.startDate||void 0,endDate:c.value.endDate||void 0,color:c.value.color||void 0}),p()},h=T=>{confirm(i("sprint.confirmArchive"))&&o("archiveSprint",{id:T})},g=T=>{o("unarchiveSprint",{id:T})},y=T=>Xc(Br(T),"dd/MM/yy"),C=()=>n.sprints.reduce((S,E)=>{const D=E.name.match(/^Sprint\s*(\d+)$/);return D?Math.max(S,parseInt(D[1],10)):S},0)+1,v=r.ref(!1),_=r.ref({name:"",startDate:"",endDate:"",color:"#4f5cff"}),b=()=>{v.value=!0,l.value=null,_.value={name:`Sprint ${C()}`,startDate:"",endDate:"",color:"#4f5cff"}},w=()=>{v.value=!1,_.value={name:"",startDate:"",endDate:"",color:"#4f5cff"}},k=()=>{!_.value.name||!_.value.startDate||!_.value.endDate||(o("createSprint",{name:_.value.name,startDate:_.value.startDate,endDate:_.value.endDate,color:_.value.color||void 0}),w())},A=r.computed(()=>v.value?!!(_.value.name&&_.value.startDate&&_.value.endDate):l.value?!!(c.value.name&&c.value.startDate&&c.value.endDate):!1);return(T,S)=>(r.openBlock(),r.createElementBlock("section",a0e,[r.createElementVNode("div",l0e,[r.createElementVNode("div",c0e,[r.createElementVNode("h3",null,r.toDisplayString(r.unref(i)("sprint.planning")),1),r.createElementVNode("span",u0e,r.toDisplayString(a.value.length),1)]),r.createElementVNode("div",d0e,[t.sprints.some(E=>!E.active)?(r.openBlock(),r.createElementBlock("label",f0e,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[0]||(S[0]=E=>s.value=E),type:"checkbox"},null,512),[[r.vModelCheckbox,s.value]]),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("sprint.showArchived")),1)])):r.createCommentVNode("",!0),t.isEditable&&!v.value?(r.openBlock(),r.createBlock(ue,{key:1,color:"primary",variant:"solid",size:"sm","icon-name":"Add","icon-position":"start",label:r.unref(i)("sprint.add"),onClick:b},null,8,["label"])):r.createCommentVNode("",!0)])]),v.value?(r.openBlock(),r.createElementBlock("div",p0e,[r.createVNode(jr,{color:_.value.color,"onUpdate:color":S[1]||(S[1]=E=>_.value.color=E)},{clickable:r.withCtx(({openPicker:E,bgColor:D})=>[r.createElementVNode("button",{ref_key:"colorTriggerRef",ref:u,class:"ao-sprint-list__color-trigger",style:r.normalizeStyle({backgroundColor:D}),title:r.unref(i)("sprint.color"),onClick:x=>E(x.currentTarget)},null,12,m0e)]),_:1},8,["color"]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[2]||(S[2]=E=>_.value.name=E),type:"text",class:"ao-sprint-list__input ao-sprint-list__input--name",placeholder:r.unref(i)("sprint.name")},null,8,h0e),[[r.vModelText,_.value.name]]),r.createElementVNode("div",g0e,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[3]||(S[3]=E=>_.value.startDate=E),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,_.value.startDate]]),S[9]||(S[9]=r.createElementVNode("span",{class:"ao-sprint-list__date-separator"},"–",-1)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[4]||(S[4]=E=>_.value.endDate=E),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,_.value.endDate]])]),r.createElementVNode("div",v0e,[r.createVNode(ue,{color:"success",variant:"ghost",size:"sm","icon-name":"CheckSmallRounded",disabled:!A.value,title:r.unref(i)("common.save"),onClick:k},null,8,["disabled","title"]),r.createVNode(ue,{color:"neutral",variant:"ghost",size:"sm","icon-name":"CloseRounded",title:r.unref(i)("common.cancel"),onClick:w},null,8,["title"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",_0e,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,E=>(r.openBlock(),r.createElementBlock("div",{key:E.id,class:r.normalizeClass(["ao-sprint-list__row",{"ao-sprint-list__row--archived":!E.active,"ao-sprint-list__row--editing":l.value===E.id}])},[l.value!==E.id?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",y0e,[r.createElementVNode("span",{class:"ao-sprint-list__color-dot",style:r.normalizeStyle({backgroundColor:E.color||"var(--ao-color-primary-base)"})},null,4),r.createElementVNode("div",C0e,[r.createElementVNode("span",b0e,r.toDisplayString(E.name),1),E.active?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",k0e,r.toDisplayString(r.unref(i)("sprint.archived")),1))])]),r.createElementVNode("div",w0e,[r.createVNode(ke,{name:"CalendarTodayOutlineRounded",size:"sm"}),r.createElementVNode("span",null,r.toDisplayString(y(E.startDate))+" – "+r.toDisplayString(y(E.endDate)),1)]),t.isEditable?(r.openBlock(),r.createElementBlock("div",E0e,[r.createVNode(ue,{color:"neutral",variant:"ghost",size:"md","icon-name":"EditOutline","icon-position":"start",title:r.unref(i)("common.edit"),onClick:D=>f(E)},null,8,["title","onClick"]),r.createVNode(ue,{color:"neutral",variant:"ghost",size:"md",corners:"round","icon-position":"start","icon-name":(E.active,"ArchiveOutlineRounded"),label:E.active?r.unref(i)("sprint.archive"):r.unref(i)("sprint.unarchive"),onClick:D=>E.active?h(E.id):g(E.id)},null,8,["icon-name","label","onClick"])])):r.createCommentVNode("",!0)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(jr,{color:c.value.color,"onUpdate:color":S[5]||(S[5]=D=>c.value.color=D)},{clickable:r.withCtx(({openPicker:D,bgColor:x})=>[r.createElementVNode("button",{ref_for:!0,ref_key:"colorTriggerEditRef",ref:d,class:"ao-sprint-list__color-trigger",style:r.normalizeStyle({backgroundColor:x}),title:r.unref(i)("sprint.color"),onClick:$=>D($.currentTarget)},null,12,S0e)]),_:1},8,["color"]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[6]||(S[6]=D=>c.value.name=D),type:"text",class:"ao-sprint-list__input ao-sprint-list__input--name"},null,512),[[r.vModelText,c.value.name]]),r.createElementVNode("div",x0e,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[7]||(S[7]=D=>c.value.startDate=D),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,c.value.startDate]]),S[10]||(S[10]=r.createElementVNode("span",{class:"ao-sprint-list__date-separator"},"–",-1)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[8]||(S[8]=D=>c.value.endDate=D),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,c.value.endDate]])]),r.createElementVNode("div",T0e,[r.createVNode(ue,{color:"success",variant:"ghost",size:"md","icon-name":"CheckSmallRounded",disabled:!A.value,title:r.unref(i)("common.save"),onClick:D=>m(E.id)},null,8,["disabled","title","onClick"]),r.createVNode(ue,{color:"neutral",variant:"ghost",size:"md","icon-name":"CloseRounded",title:r.unref(i)("common.cancel"),onClick:p},null,8,["title"])])],64))],2))),128))]),a.value.length===0&&!v.value?(r.openBlock(),r.createElementBlock("div",A0e,r.toDisplayString(r.unref(i)("sprint.noSprints")),1)):r.createCommentVNode("",!0)]))}});const D0e=te(N0e,[["__scopeId","data-v-698944ea"]]);exports.AoAuditConfigTable=s0e;exports.AoAvatar=Xn;exports.AoCardFeed=hd;exports.AoCheckboxField=Wg;exports.AoColorPicker=jr;exports.AoFeed=Yc;exports.AoField=jg;exports.AoInputField=Pge;exports.AoMultiselect=Ct;exports.AoProjectPhases=md;exports.AoSprintList=D0e;exports.AoTabBar=vs;exports.AoTemplateDetails=zg;exports.AoTemplates=t0;exports.AoTemplatesList=Hg;exports.EstimationUnit=Ep;exports.TemplateItemTypeEnum=wp;exports.activityFeedRoutes=Io;exports.activityFeedStatus=Ny;exports.durationTypes=Ay;exports.feedFilterTypes=so;exports.getProjectOverviewRoutes=Lge;exports.getTemplateRoutes=Mge;exports.listUpdateTypes=Dy;exports.milestoneStatus=Pi;exports.projectOverviewRoutes=Fe;exports.ruleComparators=Cp;exports.ruleDurationUnits=kp;exports.ruleTriggerTypes=bp;exports.templateItemType=Ze;exports.templateRouteNames=Uo;
|
|
58
|
+
*/function Mo(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=Lfe(t):/rgb/.test(t)?e=gp(t):typeof t=="string"?e=gp(`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}=Ofe(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 Gc(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 Mfe({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 Lfe(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 gp(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 Ofe({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),Gc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Gc("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,f,p]=u.data;this.$emit("selectSaturation",{r:d,g:f,b:p})};i(t);const s=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",i),document.addEventListener("mouseup",s)}}});const Vfe={ref:"canvasSaturation"};function Ife(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",Vfe,null,512),r.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}sd.render=Ife;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 Pfe={ref:"canvasHue"};function Ffe(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",Pfe,null,512),r.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}ad.render=Ffe;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),Gc("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 Rfe={ref:"canvasAlpha"};function zfe(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",Rfe,null,512),r.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}ld.render=zfe;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 Ufe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("canvas")}cd.render=Ufe;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[f,p,m,h]=d.data;h=parseFloat((h/255).toFixed(2));const g=this.suckerPreview.style;Object.assign(g,{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(${f}, ${p}, ${m}, ${h})`,zIndex:95}),this.suckerArea.length&&e>=this.suckerArea[0]&&n>=this.suckerArea[1]&&e<=this.suckerArea[2]&&n<=this.suckerArea[3]?g.display="":g.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,f=t.getContext("2d").getImageData(Math.min(c,a-1),Math.min(u,l-1),1,1);let[p,m,h,g]=f.data;g=parseFloat((g/255).toFixed(2)),this.$emit("selectSucker",{r:p,g:m,b:h,a:g})}))}}});const qfe=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),Hfe={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},jfe=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 Wfe(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))},[qfe],2)),t.isSucking?(r.openBlock(),r.createBlock("svg",Hfe,[jfe])):r.createCommentVNode("v-if",!0)])}ud.render=Wfe;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 Zfe={class:"color-type"},Kfe={class:"name"};function Gfe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",Zfe,[r.createVNode("span",Kfe,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=Gfe;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 Yfe={class:"colors"},Jfe={key:0,class:"colors history"};function Xfe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",null,[r.createVNode("ul",Yfe,[(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",Jfe,[(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=Xfe;fd.__file="src/color/Colors.vue";var Dr=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 Mfe(this.rgba,!0)}},created(){Object.assign(this,Mo(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}=Mo(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}=Mo(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}=Mo(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}=Mo(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}=Mo(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}=Mo(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 Qfe={class:"color-set"};function epe(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"),f=r.resolveComponent("Box"),p=r.resolveComponent("Colors");return r.openBlock(),r.createBlock("div",{class:["hu-color-picker",{light:t.isLightTheme}],style:{width:t.totalWidth+"px"}},[r.createVNode("div",Qfe,[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(f,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),r.createVNode(f,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),r.createVNode(p,{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)}Dr.render=epe;Dr.__file="src/color/ColorPicker.vue";Dr.install=t=>{t.component(Dr.name,Dr)};const tpe={class:"color-picker-wrapper"},jr=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(null),l=r.ref(0),c=r.ref(0),u=async h=>{a.value=h,i.value=!0,await r.nextTick();const g=h.getBoundingClientRect(),y=s.value,C=(y==null?void 0:y.offsetHeight)||300,v=window.innerHeight-g.bottom,_=g.top,b=v<C&&_>C;console.log("pickerHeight = "+C),l.value=b?g.top-C-8:g.bottom+8,c.value=g.left,setTimeout(()=>{window.addEventListener("click",f)},0)},d=r.computed(()=>({position:"fixed",top:`${l.value}px`,left:`${c.value}px`,zIndex:1e3})),f=h=>{const g=h.target;s.value&&!s.value.contains(g)&&(i.value=!1,o("update:color",p.value),window.removeEventListener("click",f))};r.onBeforeUnmount(()=>{window.removeEventListener("click",f)}),r.watch(()=>n.color,h=>{i.value||(p.value=h)});const p=r.ref(n.color),m=h=>{const{r:g,g:y,b:C,a:v}=h.rgba;p.value=`rgba(${g}, ${y}, ${C}, ${v})`};return(h,g)=>(r.openBlock(),r.createElementBlock("div",tpe,[r.renderSlot(h.$slots,"clickable",{openPicker:u,bgColor:t.color}),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(Dr),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:m},null,8,["color"])],4)):r.createCommentVNode("",!0)]))}});const npe={class:"ao-card-project-phase__header"},ope={class:"ao-card-project-item__title-line"},rpe={key:0,class:"ao-card-project-item-phase__estimation"},ipe={class:"ao-card-project-phase__footer"},spe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},ape={class:"ao-card-project-phase__subitem"},lpe={class:"ao-card-project-phase__subitem"},cpe={key:0,class:"ao-card-project-phase__secondary"},upe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},dpe=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=g=>{o("update:title",g)},s=r.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((y,C)=>{var v;return y+((v=C.activities)==null?void 0:v.reduce((_,b)=>_+(b.estimation||0),0))},0))||0}),a=r.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var C;return g+(((C=y.activities)==null?void 0:C.reduce((v,_)=>{var w;const b=(w=n.timeTrackingData)==null?void 0:w[_.id];return v+((b==null?void 0:b.timeSpent)||0)},0))||0)},0)),l=r.computed(()=>n.estimationUnit==="days"?"d":"h"),c=r.computed(()=>Ba(a.value,n.estimationUnit)),u=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===Pi.done).length}),f=r.computed(()=>(d.value||0)/(u.value||1)),p=r.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=r.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,y)=>{const C=g.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||y(C)};return(g,y)=>(r.openBlock(),r.createBlock(jr,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:r.withCtx(({openPicker:C,bgColor:v})=>[r.createVNode(pl,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:v,"with-left-border":!0,onClick:_=>h(_,C)},r.createSlots({default:r.withCtx(()=>[r.createElementVNode("div",ope,[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",rpe," ("+r.toDisplayString(c.value)+"/"+r.toDisplayString(s.value)+r.toDisplayString(l.value)+")",1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",ipe,[u.value?(r.openBlock(),r.createElementBlock("div",spe,[r.createElementVNode("div",ape,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",lpe,r.toDisplayString(d.value)+" / "+r.toDisplayString(u.value),1)]),r.createVNode(ml,{percentages:f.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(r.openBlock(),r.createElementBlock("div",cpe,[r.renderSlot(g.$slots,"secondary")])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["ao-card-project-phase__footer-row",p.value?"":"ao-card-project-phase__no_deadline"])},[t.isEditable?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=_=>p.value=_),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[r.vModelText,p.value,void 0,{lazy:!0}]]):r.createCommentVNode("",!0),r.createElementVNode("span",upe,r.toDisplayString(r.unref(Ma)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:r.withCtx(()=>[r.createElementVNode("div",npe,[r.createVNode(ue,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:y[0]||(y[0]=r.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const fpe=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 ppe={class:"ao-card-project-milestone__default"},mpe={class:"ao-title-with-badge-wrapper"},hpe={class:"ao-card-project-item__title-line"},gpe={key:0,class:"ao-card-project-item-milestone__estimation"},vpe={key:0,class:"ao-card-project-milestone__archive"},_pe={class:"ao-card-project-milestone__activities"},ype={class:"ao-card-project-milestone__activities-row"},Cpe={class:"ao-card-project-milestone__subitem"},bpe={class:"ao-card-project-milestone__subitem"},kpe={key:1,class:"ao-card-project-milestone__secondary"},wpe={class:"ao-card-project-milestone__footer"},Epe={key:1,class:"ao-field ao-card-project-milestone__deadline"},Spe={class:"ao-field__label"},xpe={key:2,class:"ao-card-project-milestone__assignee"},Ape=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 p;return((p=n.activities)==null?void 0:p.reduce((m,h)=>m+(h.estimation||0),0))||0}),s=r.computed(()=>!n.activities||!n.timeTrackingData?0:n.activities.reduce((p,m)=>{var g;const h=(g=n.timeTrackingData)==null?void 0:g[m.id];return p+((h==null?void 0:h.timeSpent)||0)},0)),a=r.computed(()=>n.estimationUnit==="days"?"d":"h"),l=r.computed(()=>Ba(s.value,n.estimationUnit));r.computed(()=>{const p=s.value/60;return p%1===0?p.toString():p.toFixed(2)});const c=r.computed(()=>{var p;return(p=n.activities)==null?void 0:p.length}),u=r.computed(()=>{var p;return(p=n.activities)==null?void 0:p.filter(m=>tu(m,n.closedStatus)).length}),d=r.computed(()=>(u.value||0)/(c.value||1)),f=p=>{o("updateMilestone",{id:n.id,name:p})};return(p,m)=>(r.openBlock(),r.createBlock(pl,{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",ppe,[r.createElementVNode("div",mpe,[r.createVNode(fpe,{color:t.color||""},null,8,["color"]),r.createElementVNode("div",hpe,[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":f},null,8,["id","title","is-editable"]),i.value||s.value?(r.openBlock(),r.createElementBlock("span",gpe," ("+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",vpe,[r.createVNode(ue,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?p.$t("archive"):p.$t("unarchive"),onClick:m[0]||(m[0]=r.withModifiers(()=>t.active?p.$emit("archiveMilestone",{id:t.id}):p.$emit("unarchiveMilestone",{id:t.id}),["stop"]))},null,8,["label"])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",_pe,[r.createElementVNode("div",ype,[c.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",Cpe,[r.createVNode(ke,{name:"SelectCheckBox",size:"sm"}),r.createElementVNode("span",bpe,r.toDisplayString(u.value)+" / "+r.toDisplayString(c.value),1)]),r.createVNode(ml,{percentages:d.value,color:t.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):r.createCommentVNode("",!0),p.$slots.secondary?(r.openBlock(),r.createElementBlock("div",kpe,[r.renderSlot(p.$slots,"secondary")])):r.createCommentVNode("",!0)])])]),footer:r.withCtx(()=>[r.createElementVNode("div",wpe,[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",Epe,[r.createElementVNode("span",Spe,r.toDisplayString(r.unref(Ma)(t.deadline)),1)])):r.createCommentVNode("",!0),t.assignee?(r.openBlock(),r.createElementBlock("div",xpe,[r.createVNode(Xn,{"user-name":r.unref(Pp)(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 Tpe=["onKeydown"],Xi=r.defineComponent({__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 C=a.value;if(!C)return;const v=C.getBoundingClientRect();c.value={top:v.top,left:v.left,width:v.width,height:v.height}},d=r.computed(()=>{const C=c.value;if(!C)return{};const v=C.top+C.height+window.scrollY+4;return o.placement==="bottom-end"?{position:"absolute",top:`${v}px`,left:"auto",right:`${Math.max(0,window.innerWidth-(C.left+C.width+window.scrollX))}px`,zIndex:200}:{position:"absolute",top:`${v}px`,left:`${C.left+window.scrollX}px`,zIndex:200}}),f=async()=>{if(s.value)return;u(),s.value=!0,i("open"),await r.nextTick();const C=l.value;if(C){const v=C.querySelector('button, [href], [tabindex]:not([tabindex="-1"])');v==null||v.focus()}},p=()=>{s.value&&(s.value=!1,i("close"))},m=()=>{s.value?p():f()},h=C=>{var _,b;if(!s.value)return;const v=C.target;v&&((_=a.value)!=null&&_.contains(v)||(b=l.value)!=null&&b.contains(v)||p())},g=C=>{s.value&&C.key==="Escape"&&(C.preventDefault(),p())},y=()=>{s.value&&u()};return r.watch(s,C=>{C?(document.addEventListener("mousedown",h,!0),document.addEventListener("keydown",g,!0),window.addEventListener("resize",y),window.addEventListener("scroll",y,!0)):(document.removeEventListener("mousedown",h,!0),document.removeEventListener("keydown",g,!0),window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0))}),r.onBeforeUnmount(()=>{document.removeEventListener("mousedown",h,!0),document.removeEventListener("keydown",g,!0),window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0)}),e({open:f,close:p,toggle:m}),(C,v)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("span",{ref_key:"triggerRef",ref:a,class:"ao-popover-menu"},[r.renderSlot(C.$slots,"trigger",{open:f,toggle:m})],512),(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(p,["stop"]),["esc"])},[r.renderSlot(C.$slots,"menu",{close:p})],44,Tpe)):r.createCommentVNode("",!0)]))],64))}});const Npe=["onKeydown"],Dpe={class:"ao-modal"},$pe={class:"ao-modal__header"},Bpe={class:"ao-modal__header-meta"},Mpe={class:"ao-modal__title-group"},Lpe={class:"ao-modal__body"},Ope={key:0,class:"ao-bulk-insert-modal__hint"},Vpe=["placeholder","disabled"],Ipe={key:1,class:"ao-bulk-insert-modal__count"},Ppe={class:"ao-bulk-insert-modal__footer"},pd=r.defineComponent({__name:"AoBulkInsertModal",props:{open:{type:Boolean},title:{},hint:{default:""},placeholder:{default:""},isLoading:{type:Boolean,default:!1},size:{default:"md"}},emits:["update:open","submit","close"],setup(t,{expose:e,emit:n}){const o=t,i=n,s=r.ref(""),a=r.ref(null),l=r.computed(()=>s.value.split(`
|
|
59
|
+
`).map(f=>f.trim()).filter(f=>f.length>0)),c=r.computed(()=>l.value.length>0&&!o.isLoading);r.watch(()=>o.open,async f=>{var p;f&&(s.value="",await r.nextTick(),(p=a.value)==null||p.focus())},{immediate:!0});const u=()=>{o.isLoading||(i("update:open",!1),i("close"))},d=()=>{c.value&&i("submit",l.value)};return e({parsedNames:l}),(f,p)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[t.open?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`]),onKeydown:r.withKeys(r.withModifiers(u,["stop"]),["esc"])},[r.createElementVNode("div",{class:"ao-modal__backdrop",onClick:u}),r.createElementVNode("div",Dpe,[r.createElementVNode("div",$pe,[r.createElementVNode("div",Bpe,[r.createVNode(ue,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:u})]),r.createElementVNode("header",Mpe,[r.createVNode(ht,{title:t.title,level:3},null,8,["title"])])]),r.createElementVNode("div",Lpe,[r.createElementVNode("form",{class:"ao-bulk-insert-modal__form",onSubmit:r.withModifiers(d,["prevent"])},[t.hint?(r.openBlock(),r.createElementBlock("p",Ope,r.toDisplayString(t.hint),1)):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("textarea",{ref_key:"textareaRef",ref:a,"onUpdate:modelValue":p[0]||(p[0]=m=>s.value=m),class:"ao-bulk-insert-modal__textarea",placeholder:t.placeholder,rows:"10",disabled:t.isLoading},null,8,Vpe),[[r.vModelText,s.value]]),l.value.length>0?(r.openBlock(),r.createElementBlock("p",Ipe,r.toDisplayString(l.value.length)+" "+r.toDisplayString(f.$t("project.bulk.modal.itemsReady")),1)):r.createCommentVNode("",!0),r.createElementVNode("footer",Ppe,[r.createVNode(ue,{color:"primary",variant:"ghost",label:f.$t("common.cancel"),disabled:t.isLoading,onClick:u},null,8,["label","disabled"]),r.createVNode(ue,{type:"submit",color:"primary",variant:"solid",label:f.$t("common.create"),"is-loading":t.isLoading,disabled:!c.value},null,8,["label","is-loading","disabled"])])],32)])])],42,Npe)):r.createCommentVNode("",!0)]))}});const Fpe={class:"ao-mapping-card-project-phase__header"},Rpe={class:"ao-card-project-item__title-line"},zpe={key:0,class:"ao-card-project-item-phase__estimation"},Upe={class:"ao-mapping-card-project-phase__footer"},qpe={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},Hpe={class:"ao-mapping-card-project-phase__subitem"},jpe={class:"ao-mapping-card-project-phase__subitem"},Wpe={key:0,class:"ao-mapping-card-project-phase__secondary"},Zpe={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},Kpe=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=g=>{o("update:title",g)},s=r.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((y,C)=>{var v;return y+((v=C.activities)==null?void 0:v.reduce((_,b)=>_+(b.estimation||0),0))},0))||0}),a=r.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var C;return g+(((C=y.activities)==null?void 0:C.reduce((v,_)=>{var w;const b=(w=n.timeTrackingData)==null?void 0:w[_.id];return v+((b==null?void 0:b.timeSpent)||0)},0))||0)},0)),l=r.computed(()=>n.estimationUnit==="days"?"d":"h"),c=r.computed(()=>Ba(a.value,n.estimationUnit)),u=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=r.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===Pi.done).length}),f=r.computed(()=>(d.value||0)/(u.value||1)),p=r.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),m=r.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),h=(g,y)=>{const C=g.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||y()};return(g,y)=>(r.openBlock(),r.createBlock(jr,{color:m.value,"onUpdate:color":y[2]||(y[2]=C=>m.value=C)},{clickable:r.withCtx(({openPicker:C,bgColor:v})=>[r.createVNode(pl,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:v,"with-left-border":!0,onClick:_=>h(_,C)},r.createSlots({default:r.withCtx(()=>[r.createElementVNode("div",Rpe,[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",zpe," ("+r.toDisplayString(c.value)+"/"+r.toDisplayString(s.value)+r.toDisplayString(l.value)+")",1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",Upe,[u.value?(r.openBlock(),r.createElementBlock("div",qpe,[r.createElementVNode("div",Hpe,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",jpe,r.toDisplayString(d.value)+" / "+r.toDisplayString(u.value),1)]),r.createVNode(ml,{percentages:f.value,class:"ao-mapping-card-project-phase__progress",color:m.value},null,8,["percentages","color"]),g.$slots.secondary?(r.openBlock(),r.createElementBlock("div",Wpe,[r.renderSlot(g.$slots,"secondary")])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["ao-mapping-card-project-phase__footer-row",p.value?"":"ao-mapping-card-project-phase__no_deadline"])},[t.isEditable?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=_=>p.value=_),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[r.vModelText,p.value,void 0,{lazy:!0}]]):r.createCommentVNode("",!0),r.createElementVNode("span",Zpe,r.toDisplayString(r.unref(Ma)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:r.withCtx(()=>[r.createElementVNode("div",Fpe,[r.createVNode(ue,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?g.$t("archive"):g.$t("unarchive"),onClick:y[0]||(y[0]=r.withModifiers(()=>t.active?g.$emit("archivePhase",{id:t.id}):g.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const Gpe={class:"ao-project-phase"},Ype={key:0,class:"ao-project-phase__drag ao-card__drag"},Jpe={key:1,class:"ao-project-phase__col-phase"},Xpe={key:2,class:"ao-mapping-project-phase__col-phase"},Qpe={key:0,class:"ao-project-phase__col-milestones"},eme=["title","onClick"],tme=["onClick"],nme=["onClick"],ome={class:"ao-project-phase__milestones-list-footer"},rme=["onClick"],ime=["onClick"],sme=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}=Wt(),o=t,i=e;r.watch(()=>o.phase.milestones,(A,S)=>{Wn(A,S)});const s=A=>{i("updatePhase",{id:o.phase.id,name:A})},a=A=>{i("updatePhase",{id:o.phase.id,deadline:A})},l=A=>{i("updatePhase",A)},c=r.computed(()=>o.phase.milestones.map(A=>b7(A,o.closedStatus))),u=A=>{const{name:S,rank:E}=Zo(c.value??[],"milestone",n);i("addMilestone",{name:S,rank:E,phaseId:A})},d=A=>{const S=n("template.defaultName.milestone",{idx:1}),E=os(c.value??[]);i("addMilestone",{name:S,rank:E,phaseId:A})},f=A=>{i("updateMilestone",A)},p=A=>{i("archiveMilestone",A)},m=A=>{i("unarchiveMilestone",A)},h=A=>{i("archivePhase",A)},g=A=>{i("unarchivePhase",A)},y=A=>{"added"in A?i("updateMilestone",{id:A.added.element.id,phaseId:o.phase.id,rank:Mr(c.value,A.added.newIndex)}):"removed"in A||"moved"in A&&i("updateMilestone",{id:A.moved.element.id,rank:Mr(c.value,A.moved.newIndex)})},C=r.ref(!1),v=r.ref(!1),_=A=>{v.value=!0;const S=eu(o.phase.milestones??[],A.length),E=A.map((D,x)=>({name:D,rank:S[x]}));i("bulkAddMilestone",{phaseId:o.phase.id,milestones:E,onSuccess:()=>{v.value=!1,C.value=!1},onError:()=>{v.value=!1}})};r.watch(C,A=>{A&&(v.value=!1)});const b=$r.useRoute(),w=r.computed(()=>b.path.includes("/mapping")),k=r.computed(()=>{var A;return o.phase.id===((A=b.params)==null?void 0:A.phaseId)});r.ref(!1);const T=r.computed(()=>{var A;return o.phase.id!==((A=b.params)==null?void 0:A.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:w7(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(A,S)=>(r.openBlock(),r.createElementBlock("li",Gpe,[r.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:r.normalizeStyle(T.value)},[t.isEditable?(r.openBlock(),r.createElementBlock("div",Ype,[r.createVNode(ke,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):r.createCommentVNode("",!0),w.value?(r.openBlock(),r.createElementBlock("div",Xpe,[r.createVNode(Kpe,{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:g,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(r.openBlock(),r.createElementBlock("div",Jpe,[r.createVNode(dpe,{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:g,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",Qpe,[r.createElementVNode("div",{class:"ao-project-phase__milestones ao-project-phase__milestones--hoverable",style:r.normalizeStyle(T.value)},[t.isEditable?(r.openBlock(),r.createBlock(Xi,{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:E})=>[r.createElementVNode("button",{type:"button",class:"ao-project-phase__milestone-quick-add-trigger",title:A.$t("project.milestone.add"),onClick:E},[r.createVNode(ke,{name:"Add",class:"ao-project-phase__milestone-quick-add-icon"})],8,eme)]),menu:r.withCtx(({close:E})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{E(),d(t.phase.id)}},r.toDisplayString(A.$t("project.bulk.menu.single")),9,tme),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{E(),C.value=!0}},r.toDisplayString(A.$t("project.bulk.menu.bulkInsert")),9,nme)]),_:1},8,["class"])):r.createCommentVNode("",!0),r.createVNode(r.unref(ko),r.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},A.$attrs,{onChange:y}),{item:r.withCtx(({element:E})=>{var D;return[r.createVNode(Ape,{id:E.id,name:E.name,color:E.color,"phase-color":t.phase.color,activities:E.activities,deadline:E.deadline,active:E.active,"is-editable":!t.readonly&&t.isEditable,"is-draggable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,"is-selected":E.id===((D=A.$route.params)==null?void 0:D.milestoneId),assignee:E.assignee,important:E.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:r.normalizeClass(["ao-project-phase__milestone"]),onClick:x=>!t.readonly&&A.$router.push({name:r.unref(Fe).milestone,params:{phaseId:t.phase.id,milestoneId:E.id}}),onUpdateMilestone:f,onArchiveMilestone:p,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",ome,[t.isEditable?(r.openBlock(),r.createBlock(Xi,{key:0,class:"ao-project-phase__milestone-add"},{trigger:r.withCtx(({open:E})=>[r.createVNode(wo,{label:A.$t("project.milestone.add"),"icon-name":"Add",onClick:E},null,8,["label","onClick"])]),menu:r.withCtx(({close:E})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{E(),u(t.phase.id)}},r.toDisplayString(A.$t("project.bulk.menu.single")),9,rme),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{E(),C.value=!0}},r.toDisplayString(A.$t("project.bulk.menu.bulkInsert")),9,ime)]),_:1})):r.createCommentVNode("",!0)])],4)])),C.value?(r.openBlock(),r.createBlock(pd,{key:1,open:C.value,"onUpdate:open":S[0]||(S[0]=E=>C.value=E),title:A.$t("project.bulk.modal.milestone.title"),hint:A.$t("project.bulk.modal.hint"),placeholder:A.$t("project.bulk.modal.placeholder"),"is-loading":v.value,onSubmit:_},null,8,["open","title","hint","placeholder","is-loading"])):r.createCommentVNode("",!0)]))}});const ame={class:"ao-project__phases"},lme={key:0,class:"ao-project-phase__phases-list-footer"},cme={class:"ao-project-phase__col-phase"},md=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)=>{Wn(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})}},f=m=>{o("updatePhase",m)},p=m=>{o("addPhase",m)};return(m,h)=>(r.openBlock(),r.createElementBlock("div",ame,[r.createVNode(r.unref(ko),{class:"ao-project-phase__phases-list","model-value":t.phases,"item-key":"id",handle:".ao-card__drag",onChange:d},{item:r.withCtx(({element:g})=>[r.createVNode(sme,{phase:g,"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]=y=>m.$emit("bulkAddMilestone",y)),onUpdateMilestone:s,onArchiveMilestone:a,onUnarchiveMilestone:l,onUpdatePhase:f,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",lme,[h[1]||(h[1]=r.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),r.createElementVNode("div",cme,[r.createVNode(wo,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:p},null,8,["label"])]),h[2]||(h[2]=r.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):r.createCommentVNode("",!0)]))}});const ume={class:"ao-add-template-modal__form-body"},dme={class:"field__row"},fme={class:"ao-add-template-modal__form-footer"},Ug=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(La,{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",ume,[r.createElementVNode("div",dme,[r.createVNode(Ct,{value:s.value,options:i.value,detached:!0,onChange:a},null,8,["value","options"])])]),r.createElementVNode("footer",fme,[r.createVNode(ue,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const pme={class:"ao-save-template-modal__form-body"},mme={class:"field__row"},hme={class:"ao-field ao-field--inline"},gme={class:"ao-field__label"},vme={class:"ao-save-template-modal__phases"},_me={class:"ao-field__label"},yme={class:"ao-save-template-modal__phases-list"},Cme=["value"],bme={class:"ao-save-template-modal__form-footer"},qg=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(La,{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",pme,[r.createElementVNode("div",mme,[r.createElementVNode("label",hme,[r.createElementVNode("span",gme,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",vme,[r.createElementVNode("div",_me,r.toDisplayString(l.$t("project.template.phases.label")),1),r.createElementVNode("div",yme,[(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,Cme),[[r.vModelCheckbox,s.value]]),r.createElementVNode("span",null,r.toDisplayString(u.name),1)]))),128))])])]),r.createElementVNode("footer",bme,[r.createVNode(ue,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const kme={class:"ao-project"},wme=["onClick"],Eme=["onClick"],Sme={class:"ao-project__body"},xme=r.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},devStatuses:{},sprints:{},selectedActivity:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{type:Function}},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"],setup(t,{emit:e}){const{t:n}=Wt(),o=t,i=e,s=r.computed(()=>o.phases.flatMap(P=>P.milestones)),a=()=>{const{name:P,rank:se}=Zo(o.phases,"phase",n);i("addPhase",{name:P,rank:se,projectId:o.project.id})},l=()=>{const P=n("template.defaultName.phase",{idx:1}),se=os(o.phases);i("addPhase",{name:P,rank:se,projectId:o.project.id})},c=P=>{i("updatePhase",P)},u=P=>{i("archivePhase",P)},d=P=>{i("unarchivePhase",P)},f=P=>{i("copyPhaseToTemplate",P)},p=P=>{i("addMilestone",P)},m=P=>{i("bulkAddMilestone",P)},h=P=>{i("updateMilestone",P)},g=P=>{i("archiveMilestone",P)},y=P=>{i("unarchiveMilestone",P)},C=P=>{i("addActivity",P)},v=P=>{i("bulkAddActivity",P)},_=P=>{i("update:activity",P)},b=P=>{i("archiveActivity",P)},w=P=>{i("unarchiveActivity",P)},k=P=>{i("addSubtask",P)},T=P=>{i("updateSubtask",P)},A=P=>{i("deleteSubtask",P)},S=r.computed(()=>s.value.flatMap(P=>P.activities)),E=r.computed(()=>o.devStatuses??[]),D=r.computed(()=>o.sprints??[]),x=P=>{i("addFiles",P)},$=P=>{i("removeFile",P)},B=P=>{i("addComment",P)},V=P=>{i("updateComment",P)},I=P=>{i("removeComment",P)},j=r.ref(!1),F=r.ref(!1),q=r.ref(!1),Q=r.ref(!1),ae=(P,se)=>{i("applyTemplate",{templateId:P,projectId:se}),j.value=!1},ne=(P,se)=>{var Ce;const we=(Ce=o.templates)==null?void 0:Ce.at(-1),Re=we?Xe.LexoRank.parse(we.rank).genNext():Xe.LexoRank.middle();i("saveTemplate",{templateName:P,rank:Re.format(),phaseIds:se}),F.value=!1},ye=P=>{Q.value=!0;const se=eu(o.phases,P.length),we=P.map((Re,Ce)=>({name:Re,rank:se[Ce]}));i("bulkAddPhase",{projectId:o.project.id,phases:we,onSuccess:()=>{Q.value=!1,q.value=!1},onError:()=>{Q.value=!1}})};r.watch(q,P=>{P&&(Q.value=!1)});const re=$r.useRouter(),ie=r.ref("overview"),U=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return r.watch(ie,P=>{P==="feed"?(re.push({name:Fe.feed}),console.log("Navigating to feed...")):P==="dev"?(re.push({name:Fe.dev}),console.log("Navigating to dev...")):P==="overview"?(re.push({name:Fe.project}),console.log("Navigating to feed...")):P==="mapping"&&(re.push({name:Fe.mapping}),console.log("Navigating to feed..."))}),(P,se)=>{var Re;const we=r.resolveComponent("RouterView");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",r.mergeProps({class:"ao-project-overview"},P.$attrs),[r.createElementVNode("div",kme,[r.createVNode(rs,null,{primary:r.withCtx(()=>[r.createVNode(vs,{modelValue:ie.value,"onUpdate:modelValue":se[0]||(se[0]=Ce=>ie.value=Ce),tabs:U},null,8,["modelValue"]),r.createVNode(ue,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:P.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:se[1]||(se[1]=Ce=>P.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:r.withCtx(()=>[t.isEditable===!0?(r.openBlock(),r.createBlock(Xi,{key:0,class:"ao-project-overview__quick-add-phase"},{trigger:r.withCtx(({open:Ce})=>[r.createVNode(ue,{size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:P.$t("project.phase.add"),onClick:Ce},null,8,["label","onClick"])]),menu:r.withCtx(({close:Ce})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{Ce(),l()}},r.toDisplayString(P.$t("project.bulk.menu.single")),9,wme),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{Ce(),q.value=!0}},r.toDisplayString(P.$t("project.bulk.menu.bulkInsert")),9,Eme)]),_:1})):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(ue,{key:1,class:"ao-project-overview__save-as-template",color:"primary",label:P.$t("project.template.save.label"),onClick:se[2]||(se[2]=Ce=>F.value=!0)},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(ue,{key:2,class:"ao-project-overview__add-template",color:"primary",label:P.$t("project.template.apply.label"),onClick:se[3]||(se[3]=Ce=>j.value=!0)},null,8,["label"])):r.createCommentVNode("",!0)]),_:1}),r.createElementVNode("div",Sme,[r.createVNode(md,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(Re=t.project)==null?void 0:Re.estimationUnit,onAddMilestone:p,onBulkAddMilestone:m,onUpdateMilestone:h,onArchiveMilestone:g,onUnarchiveMilestone:y,onAddPhase:a,onUpdatePhase:c,onArchivePhase:u,onUnarchivePhase:d,onCopyPhaseToTemplate:f},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),r.createVNode(we,{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:se[4]||(se[4]=Ce=>P.$router.push({name:r.unref(Fe).project})),onUpdateMilestone:h,onAddActivity:C,onBulkAddActivity:v,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(we,{name:"modal",activities:S.value,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,"activity-types":t.activityTypes,"dev-statuses":E.value,sprints:D.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,"onUpdate:activity":_,onAddSubtask:k,onUpdateSubtask:T,onDeleteSubtask:A,onAddFiles:x,onRemoveFile:$,onAddComment:B,onUpdateComment:V,onRemoveComment:I},{default:r.withCtx(({Component:Ce})=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(Ce),null,{default:r.withCtx(R=>[r.renderSlot(P.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(R)))]),_: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"])]))],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[F.value?(r.openBlock(),r.createBlock(qg,{key:0,phases:t.phases,onClose:se[5]||(se[5]=Ce=>F.value=!1),onSave:ne},null,8,["phases"])):r.createCommentVNode("",!0),j.value?(r.openBlock(),r.createBlock(Ug,{key:1,"project-id":t.project.id,templates:t.templates,onClose:se[6]||(se[6]=Ce=>j.value=!1),onApply:ae},null,8,["project-id","templates"])):r.createCommentVNode("",!0),q.value?(r.openBlock(),r.createBlock(pd,{key:2,open:q.value,"onUpdate:open":se[7]||(se[7]=Ce=>q.value=Ce),title:P.$t("project.bulk.modal.phase.title"),hint:P.$t("project.bulk.modal.hint"),placeholder:P.$t("project.bulk.modal.placeholder"),"is-loading":Q.value,onSubmit:ye},null,8,["open","title","hint","placeholder","is-loading"])):r.createCommentVNode("",!0)]))],64)}}});const Ame={class:"ao-card-feed__header"},Tme={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},Nme={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},Dme={class:"ao-card-feed__body"},$me={key:0,class:"ao-card-feed__breadcrumbs"},Bme={class:r.normalizeClass(["ao-card-feed__title-group"])},Mme={class:"ao-card-feed__title-line"},Lme={key:0,class:"ao-card-feed__slug"},Ome={key:1,class:"ao-card-feed__deadline"},Vme={class:"ao-card-feed__footer"},Ime={class:"ao-card-feed__footer-row"},Pme={class:"ao-assignees"},Fme={key:0,class:"ao-assignee"},Rme={key:0,class:"ao-card-feed__subitems"},zme={key:0,class:"ao-card-feed__subitem"},Ume={class:"ao-card-feed__subitem"},qme={key:1,class:"ao-card-feed__subitem"},Hme={class:"ao-card-feed__subitem"},jme={class:"ao-card-feed__timer-wrapper"},Wme={class:"ao-card-feed__footer-row"},Zme={key:0,class:"ao-card-feed__progress-wrapper"},Kme={class:"ao-card-feed__subitem"},Gme={class:"ao-card-feed__subitem"},hd=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=g=>{o("updateActivity",{id:n.id,name:g})},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(()=>Ma(n.deadline)),d=g=>{o("removeAssignee",g)},f=()=>{o("startTimer",{activityId:n.id,name:n.name,project:n.projectName,projectId:n.projectId,slug:n.slug})},p=r.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.length}),m=r.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.filter(y=>y.isDone).length}),h=r.computed(()=>(m.value||0)/(p.value||1));return(g,y)=>(r.openBlock(),r.createBlock(pl,{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",Ame,[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",Tme,[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),g.$slots.secondary?(r.openBlock(),r.createElementBlock("div",Nme,[r.renderSlot(g.$slots,"secondary")])):r.createCommentVNode("",!0)])]),default:r.withCtx(()=>[r.createElementVNode("div",Dme,[l.value?(r.openBlock(),r.createElementBlock("span",$me,r.toDisplayString(l.value),1)):r.createCommentVNode("",!0),r.createElementVNode("div",Bme,[r.createElementVNode("div",Mme,[t.slug?(r.openBlock(),r.createElementBlock("span",Lme,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",Ome,r.toDisplayString(u.value),1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",Vme,[r.createElementVNode("div",Ime,[r.createElementVNode("ul",Pme,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,C=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:C.id},[C?(r.openBlock(),r.createElementBlock("li",Fme,[r.createVNode(Xn,{"user-name":r.unref(Pp)(C),"avatar-url":C.avatarUrl,"is-closable":!0,onClose:()=>d(C.id)},null,8,["user-name","avatar-url","onClose"])])):r.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(r.openBlock(),r.createElementBlock("ul",Rme,[t.comments?(r.openBlock(),r.createElementBlock("li",zme,[r.createVNode(ke,{name:"ChatOutline",size:"sm"}),r.createElementVNode("span",Ume,r.toDisplayString(t.comments),1)])):r.createCommentVNode("",!0),t.attachments?(r.openBlock(),r.createElementBlock("li",qme,[r.createVNode(ke,{name:"AttachFileRounded",size:"sm"}),r.createElementVNode("span",Hme,r.toDisplayString(t.attachments),1)])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",jme,[r.createVNode(ke,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:r.withModifiers(f,["stop"])})])]),r.createElementVNode("div",Wme,[t.tasks&&t.tasks.length?(r.openBlock(),r.createElementBlock("div",Zme,[r.createElementVNode("div",Kme,[r.createVNode(ke,{name:"SelectCheckBox",size:"sm"}),r.createElementVNode("span",Gme,r.toDisplayString(m.value)+" / "+r.toDisplayString(p.value),1)]),r.createVNode(ml,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):r.createCommentVNode("",!0)])])]),_:3},8,["class","variant"]))}});const Yme={class:"ao-project-milestone"},Jme={class:"ao-project-milestone__header"},Xme={class:"ao-project-milestone__header_line"},Qme={class:"ao-project-milestone__header_line"},ehe={class:"ao-project-milestone__title"},the={key:0,class:"ao-fieldset ao-milestone__fieldset"},nhe={class:"ao-field__row ao-milestone__field-row"},ohe={class:"ao-field ao-field--inline"},rhe={class:"ao-field__row ao-milestone__field-row"},ihe={class:"ao-field ao-milestone__field-multiselect"},she={class:"ao-milestone__color-actions"},ahe=["onClick"],lhe=["title","onClick"],che=["onClick"],uhe=["onClick"],dhe={class:"ao-project-milestone__body"},fhe={key:0,class:"ao-project-milestone__footer"},phe=["onClick"],mhe=["onClick"],vp=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}=Wt(),o=t,i=e,s=S=>{var E;i("startTimer",S),(E=window.parent)==null||E.postMessage({type:"startTimer",data:S},"*")},a=r.computed(()=>{var S;return(S=o.phases)==null?void 0:S.find(E=>E.id===o.phaseId)}),l=r.computed(()=>{var S;return(S=o.phases)==null?void 0:S.flatMap(E=>E.milestones)}),c=r.computed(()=>{var S;return(S=l.value)==null?void 0:S.find(E=>E.id===o.milestoneId)}),u=r.computed(()=>{var S;return(S=c.value)==null?void 0:S.activities});r.watch(u,(S,E)=>{Wn(S,E)});const d=S=>{i("close",S)},f=()=>{const{name:S,rank:E}=Zo(u.value??[],"activity",n);i("addActivity",{milestoneId:o.milestoneId,name:S,rank:E,projectId:o.projectId})},p=()=>{const S=n("template.defaultName.activity",{idx:1}),E=os(u.value??[]);i("addActivity",{milestoneId:o.milestoneId,name:S,rank:E,projectId:o.projectId})},m=r.ref(!1),h=r.ref(!1),g=S=>{h.value=!0;const E=eu(u.value??[],S.length),D=S.map((x,$)=>({name:x,rank:E[$]}));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,S=>{S&&(h.value=!1)});const y=S=>{i("updateActivity",S)},C=S=>{u.value&&"moved"in S&&i("updateActivity",{id:S.moved.element.id,rank:Mr(u.value,S.moved.newIndex)})},v=r.computed({get:()=>{var S;return(S=c.value)==null?void 0:S.color},set:S=>{c.value&&i("updateMilestone",{id:c.value.id,color:S})}}),_=r.computed({get:()=>{var S;return((S=c.value)==null?void 0:S.deadline)??""},set:S=>{c.value&&i("updateMilestone",{id:c.value.id,deadline:S!=null&&S.length?S:null})}}),b=S=>o.closedStatus?tu(S,o.closedStatus):!1,w=r.computed(()=>{var S;return((S=o.users)==null?void 0:S.map(E=>({label:`${E.firstName} ${E.lastName}`,value:E.id,avatar:E.avatarUrl})))||[]}),k=r.computed({get(){var S,E;return(E=(S=c.value)==null?void 0:S.assignee)!=null&&E.id?[c.value.assignee.id]:[]},set(S){i("updateMilestone",{id:o.milestoneId,assigneeId:S[0]??null})}}),T=r.computed({get(){var S;return((S=c.value)==null?void 0:S.important)??!1},set(S){i("updateMilestone",{id:o.milestoneId,important:S})}}),A=(S,E)=>{const D=S.currentTarget;D instanceof HTMLElement&&E(D)};return(S,E)=>{var D;return r.openBlock(),r.createElementBlock("div",Yme,[r.createElementVNode("header",Jme,[r.createElementVNode("div",Xme,[r.createVNode(ue,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),r.createElementVNode("div",Qme,[r.createElementVNode("div",ehe,[r.createVNode(ht,{title:((D=c.value)==null?void 0:D.name)||t.milestoneId,level:5},null,8,["title"]),r.createVNode(Kc,{modelValue:T.value,"onUpdate:modelValue":E[0]||(E[0]=x=>T.value=x),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:S.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(r.openBlock(),r.createElementBlock("div",the,[r.createElementVNode("div",nhe,[r.createElementVNode("label",ohe,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":E[1]||(E[1]=x=>_.value=x),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[r.vModelText,_.value,void 0,{lazy:!0}]])])]),r.createElementVNode("div",rhe,[r.createElementVNode("label",ihe,[r.createVNode(Ct,{modelValue:k.value,"onUpdate:modelValue":E[2]||(E[2]=x=>k.value=x),options:w.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:S.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:r.withCtx(({option:x,handleTagRemove:$})=>[r.createVNode(Xn,{"user-name":x.label,"avatar-url":x.avatar,"is-closable":!0,onClose:B=>$(x,B)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),r.createElementVNode("div",she,[r.createVNode(jr,{color:v.value,"onUpdate:color":E[3]||(E[3]=x=>v.value=x)},{clickable:r.withCtx(({openPicker:x,bgColor:$})=>[r.createElementVNode("button",{style:r.normalizeStyle({background:$}),class:"color-button",onClick:B=>A(B,x)},null,12,ahe)]),_:1},8,["color"]),t.isEditable?(r.openBlock(),r.createBlock(Xi,{key:0,placement:"bottom-end"},{trigger:r.withCtx(({open:x})=>[r.createElementVNode("button",{type:"button",class:"ao-project-milestone__quick-add",title:S.$t("project.activity.add"),onClick:x},[r.createVNode(ke,{name:"Add",class:"ao-project-milestone__quick-add-icon"})],8,lhe)]),menu:r.withCtx(({close:x})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),p()}},r.toDisplayString(S.$t("project.bulk.menu.single")),9,che),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),m.value=!0}},r.toDisplayString(S.$t("project.bulk.menu.bulkInsert")),9,uhe)]),_:1})):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",dhe,[r.createVNode(r.unref(ko),r.mergeProps({class:"ao-project-milestone__activities",list:u.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},S.$attrs,{onChange:C}),{item:r.withCtx(({element:x})=>{var $,B,V,I,j;return[r.createVNode(hd,{id:x.id,name:x.name||x.id,"project-id":t.projectId,"phase-name":($=a.value)==null?void 0:$.name,"milestone-name":(B=c.value)==null?void 0:B.name,"milestone-color":(V=c.value)==null?void 0:V.color,deadline:x.deadline,important:x.important,blocked:x.blocked,users:t.users,assignee:x.assignee,slug:x.slug,comments:(I=x.comments)==null?void 0:I.length,attachments:(j=x.attachments)==null?void 0:j.length,tasks:x.tasks,"is-editable":t.isEditable,"is-private":x.private,"is-closed":b(x),onClick:F=>S.$router.push({name:r.unref(Fe).activity,params:{milestoneId:t.milestoneId,activityId:x.id}}),onUpdateActivity:y,onRemoveAssignee:()=>y({id:x.id,assigneeId:null}),onStartTimer:s},r.createSlots({_:2},[t.isEditable?{name:"secondary",fn:r.withCtx(()=>[t.isEditable&&x.active?(r.openBlock(),r.createBlock(ue,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:S.$t("archive"),onClick:r.withModifiers(()=>S.$emit("archiveActivity",{id:x.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0),t.isEditable&&!x.active?(r.openBlock(),r.createBlock(ue,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:S.$t("feed.activity.unarchive"),onClick:r.withModifiers(()=>S.$emit("unarchiveActivity",{id:x.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",fhe,[r.createVNode(Xi,null,{trigger:r.withCtx(({open:x})=>[r.createVNode(wo,{"icon-name":"Add",label:S.$t("project.activity.add"),onClick:x},null,8,["label","onClick"])]),menu:r.withCtx(({close:x})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),f()}},r.toDisplayString(S.$t("project.bulk.menu.single")),9,phe),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{x(),m.value=!0}},r.toDisplayString(S.$t("project.bulk.menu.bulkInsert")),9,mhe)]),_:1})])):r.createCommentVNode("",!0)]),m.value?(r.openBlock(),r.createBlock(pd,{key:0,open:m.value,"onUpdate:open":E[4]||(E[4]=x=>m.value=x),title:S.$t("project.bulk.modal.activity.title"),hint:S.$t("project.bulk.modal.hint"),placeholder:S.$t("project.bulk.modal.placeholder"),"is-loading":h.value,onSubmit:g},null,8,["open","title","hint","placeholder","is-loading"])):r.createCommentVNode("",!0)])}}});const hhe=r.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},devStatuses:{},activities:{},selectedActivity:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{type:Function},sprints:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","createSprint"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{var C;return(C=n.phases)==null?void 0:C.find(v=>v.id===n.phaseId)}),s=r.computed(()=>{var C;return(C=n.phases)==null?void 0:C.flatMap(v=>v.milestones)}),a=r.computed(()=>{var C;return(C=s.value)==null?void 0:C.find(v=>v.id===n.milestoneId)}),l=r.computed(()=>{var C;return n.selectedActivity??((C=n.activities)==null?void 0:C.find(v=>v.id===n.activityId))}),c=C=>{o("update:activity",C)},u=C=>{o("addSubtask",C)},d=C=>{o("updateSubtask",C)},f=C=>{o("deleteSubtask",C)},p=C=>{o("addFiles",C)},m=C=>{o("removeFile",C)},h=C=>{o("addComment",C)},g=C=>{o("updateComment",C)},y=C=>{o("removeComment",C)};return(C,v)=>{var _,b;return l.value?(r.openBlock(),r.createBlock(rd,{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,onClose:C.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:f,onAddFiles:p,onRemoveFile:m,onAddComment:h,onUpdateComment:g,onRemoveComment:y,onCreateSprint:v[0]||(v[0]=w=>o("createSprint",w))},{default:r.withCtx(w=>[r.renderSlot(C.$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","onClose"])):r.createCommentVNode("",!0)}}}),ghe={class:"ao-col-header"},vhe=r.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("header",ghe,[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 _he(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function xa(t){return typeof t=="function"?t():r.unref(t)}const yhe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Che=t=>t!=null,Vi=()=>{};function bhe(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 khe(t,e={}){let n,o,i=Vi;const s=l=>{clearTimeout(l),i(),i=Vi};return l=>{const c=xa(t),u=xa(e.maxWait);return n&&s(n),c<=0||u!==void 0&&u<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((d,f)=>{i=e.rejectOnCancel?f:d,u&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,d(l())},u)),n=setTimeout(()=>{o&&s(o),o=null,d(l())},c)})}}function whe(t,e=200,n={}){return bhe(khe(e,n),t)}function lc(t){var e;const n=xa(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Ehe=yhe?window:void 0;function She(){const t=r.ref(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function xhe(t){const e=She();return r.computed(()=>(e.value,!!t()))}function Ahe(t,e,n={}){const{root:o,rootMargin:i="0px",threshold:s=.1,window:a=Ehe,immediate:l=!0}=n,c=xhe(()=>a&&"IntersectionObserver"in a),u=r.computed(()=>{const h=xa(t);return(Array.isArray(h)?h:[h]).map(lc).filter(Che)});let d=Vi;const f=r.ref(l),p=c.value?r.watch(()=>[u.value,lc(o),f.value],([h,g])=>{if(d(),!f.value||!h.length)return;const y=new IntersectionObserver(e,{root:lc(g),rootMargin:i,threshold:s});h.forEach(C=>C&&y.observe(C)),d=()=>{y.disconnect(),d=Vi}},{immediate:l,flush:"post"}):Vi,m=()=>{d(),p(),f.value=!1};return _he(m),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}const The={class:r.normalizeClass(["ao-list-kanban"])},Nhe={class:"ao-list-kanban__header"},Dhe=["title"],$he={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},Bhe={key:1,class:"ao-list-kanban__end"},Mhe={key:0,class:"ao-list-kanban__no-more"},Lhe={key:1,class:"ao-list-kanban__divider"},Ohe={key:1,class:"ao-list-kanban__footer"},Vhe=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);Ahe(s,([{isIntersecting:f}])=>{i.value=f}),r.watch(i,f=>{f&&n.hasMore&&!n.isLoading&&o("loadMore")});const a=f=>{var p;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((p=f.assignee)==null?void 0:p.id):!1},l=f=>{o("selectActivity",f)},c=f=>{o("updateActivity",f)},u=f=>{if("added"in f){const p={id:f.added.element.id,rank:Mr(n.list,f.added.newIndex)};n.isDevMode?p.statusDevId=n.status.id:p.statusId=n.status.id,o("updateActivity",p)}else"removed"in f||"moved"in f&&o("updateActivity",{id:f.moved.element.id,rank:Mr(n.list,f.moved.newIndex)})},d=r.ref(!1);return(f,p)=>(r.openBlock(),r.createElementBlock("div",The,[t.title||f.$slots.header?r.renderSlot(f.$slots,"header",{},()=>{var m;return[r.createElementVNode("div",Nhe,[t.title?(r.openBlock(),r.createBlock(vhe,{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:f.$t("feed.activity.add"),onClick:p[0]||(p[0]=h=>f.$emit("addAtBeginning"))},[r.createVNode(ke,{name:"Add"})],8,Dhe)):r.createCommentVNode("",!0)])]},void 0,0):r.createCommentVNode("",!0),r.createVNode(r.unref(ko),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"},f.$attrs,{draggable:".ao-list-draggable",disabled:!t.isEditable,"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"},onChange:u,onStart:p[2]||(p[2]=m=>d.value=!0),onEnd:p[3]||(p[3]=m=>d.value=!1)}),{item:r.withCtx(({element:m})=>{var h,g,y,C,v,_,b,w,k,T;return[r.createVNode(hd,{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":(g=m.project)==null?void 0:g.id,"project-color":(y=m.project)==null?void 0:y.color,"phase-name":(v=(C=m.milestone)==null?void 0:C.phase)==null?void 0:v.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:(T=m.attachments)==null?void 0:T.length,users:t.users,assignee:m.assignee,slug:m.slug,"is-editable":a(m),"is-private":m.private,"tag-type":t.tagType,onUpdateActivity:[A=>a(m)&&c(A),()=>a(m)&&c],onClick:()=>l(m.id),onRemoveAssignee:()=>a(m)&&c({id:m.id,assigneeId:null}),onStartTimer:p[1]||(p[1]=A=>f.$emit("startTimer",A))},{secondary:r.withCtx(()=>[a(m)&&m.active?(r.openBlock(),r.createBlock(ue,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.archive"),onClick:r.withModifiers(()=>f.$emit("archiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0),a(m)&&!m.active?(r.openBlock(),r.createBlock(ue,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.unarchive"),onClick:r.withModifiers(()=>f.$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",$he,[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",Bhe,[t.noMoreLabel?(r.openBlock(),r.createElementBlock("span",Mhe,r.toDisplayString(t.noMoreLabel),1)):t.isEditable?(r.openBlock(),r.createElementBlock("span",Lhe)):r.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(r.openBlock(),r.createElementBlock("div",Ohe,[r.renderSlot(f.$slots,"footer",{},()=>[t.isEditable?(r.openBlock(),r.createBlock(wo,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:p[4]||(p[4]=m=>f.$emit("add"))},null,8,["label"])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)]))}});const Ihe={class:"ao-field ao-search-field"},Phe=["value","placeholder"],Fhe=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=whe(i,n.delay),a=l=>{o("clear",l)};return(l,c)=>(r.openBlock(),r.createElementBlock("div",Ihe,[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,Phe),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(ue,{"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 Rhe={class:"ao-sprint-metrics"},zhe=["onClick"],Uhe={class:"ao-sprint-metrics__header-left"},qhe={class:"ao-sprint-metrics__icon"},Hhe={class:"ao-sprint-metrics__title"},jhe={class:"ao-sprint-metrics__dates"},Whe={key:0,class:"ao-sprint-metrics__project"},Zhe={class:"ao-sprint-metrics__advancement"},Khe={class:"ao-sprint-metrics__progress-bar"},Ghe={class:"ao-sprint-metrics__percent"},Yhe={class:"ao-sprint-metrics__tooltip ao-sprint-metrics__tooltip--advancement"},Jhe={class:"ao-sprint-metrics__tooltip-row"},Xhe={class:"ao-sprint-metrics__tooltip-row"},Qhe={class:"ao-sprint-metrics__tooltip-row"},ege={class:"ao-sprint-metrics__tooltip-row"},tge={class:"ao-sprint-metrics__tooltip-row"},nge={class:"ao-sprint-metrics__tooltip-row"},oge={class:"ao-sprint-metrics__tooltip-row"},rge={class:"ao-sprint-metrics__content"},ige={class:"ao-sprint-metrics__grid"},sge={class:"ao-sprint-metrics__item"},age={class:"ao-sprint-metrics__label"},lge={class:"ao-sprint-metrics__value"},cge={key:0,class:"ao-sprint-metrics__tooltip"},uge={class:"ao-sprint-metrics__tooltip-title"},dge={class:"ao-sprint-metrics__item"},fge={class:"ao-sprint-metrics__label"},pge={class:"ao-sprint-metrics__value"},mge={class:"ao-sprint-metrics__item ao-sprint-metrics__item--editable"},hge={class:"ao-sprint-metrics__label"},gge={class:"ao-sprint-metrics__input-row"},vge=["value","placeholder","onInput"],_ge={key:0,class:"ao-sprint-metrics__secondary"},yge={class:"ao-sprint-metrics__item"},Cge={class:"ao-sprint-metrics__label"},bge={class:"ao-sprint-metrics__value"},kge=r.defineComponent({__name:"AoSprintMetrics",props:{sprints:{},activities:{},planningData:{default:()=>({})},projects:{default:()=>[]}},setup(t){const e=t,{t:n}=Wt(),o=["Ok for prod","Done"],i=r.ref(new Set),s=r.ref({}),a=E=>{i.value.has(E)?i.value.delete(E):i.value.add(E)},l=E=>e.projects.find(D=>D.id===E.projectId),c=E=>{var D;return((D=e.planningData[E])==null?void 0:D.plannedManDays)??0},u=E=>{var D;return((D=e.planningData[E])==null?void 0:D.remainingPlannedManDays)??0},d=E=>{var D;return((D=e.planningData[E])==null?void 0:D.users)??[]},f=E=>e.activities.filter(D=>{var x;return((x=D.sprint)==null?void 0:x.id)===E}).reduce((D,x)=>D+(x.estimation??0),0),p=E=>e.activities.filter(D=>{var $,B;if((($=D.sprint)==null?void 0:$.id)!==E)return!1;const x=(B=D.devStatus)==null?void 0:B.name;return x&&o.includes(x)}).reduce((D,x)=>D+(x.estimation??0),0),m=E=>{const D=c(E);return D<=0?0:f(E)/D},h=E=>s.value[E],g=(E,D)=>{const x=parseFloat(D);isNaN(x)||x<=0?delete s.value[E]:s.value[E]=x},y=E=>{const D=h(E);return D===void 0?0:c(E)*D},C=E=>{const D=y(E);return D<=0?null:f(E)/D},v=E=>{const D=C(E);return D===null?0:Math.round(D*100)},_=E=>{const D=f(E);if(D<=0)return 0;const x=p(E);return Math.round(x/D*100)},b=E=>{const D=f(E),x=p(E);return Math.max(0,D-x)},w=E=>{const D=u(E),x=m(E);return D*x},k=E=>{const D=w(E),x=b(E);return D<=0&&x>0?!1:D<x},T=E=>E.toFixed(1),A=E=>`${E.toFixed(2)} pts / MD`,S=(E,D)=>{const x=new Date(E),$=new Date(D),B={day:"numeric",month:"short"};return`${x.toLocaleDateString("en-UK",B)} – ${$.toLocaleDateString("en-UK",B)}`};return(E,D)=>(r.openBlock(),r.createElementBlock("div",Rhe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sprints,x=>{var $;return r.openBlock(),r.createElementBlock("div",{key:x.id,class:"ao-sprint-metrics__section"},[r.createElementVNode("div",{class:"ao-sprint-metrics__header",onClick:B=>a(x.id)},[r.createElementVNode("div",Uhe,[r.createElementVNode("span",qhe,r.toDisplayString(i.value.has(x.id)?"▸":"▾"),1),r.createElementVNode("span",Hhe,r.toDisplayString(x.name),1),r.createElementVNode("span",jhe," · "+r.toDisplayString(S(x.startDate,x.endDate)),1),!i.value.has(x.id)&&l(x)?(r.openBlock(),r.createElementBlock("span",Whe," · "+r.toDisplayString(($=l(x))==null?void 0:$.name),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",{class:r.normalizeClass(["ao-sprint-metrics__header-right",{"ao-sprint-metrics__header-right--behind":k(x.id)}])},[r.createElementVNode("div",Zhe,[r.createElementVNode("div",Khe,[r.createElementVNode("div",{class:r.normalizeClass(["ao-sprint-metrics__progress-fill",{"ao-sprint-metrics__progress-fill--behind":k(x.id)}]),style:r.normalizeStyle({width:_(x.id)+"%"})},null,6)]),r.createElementVNode("span",Ghe,r.toDisplayString(_(x.id))+"% ",1),r.createElementVNode("div",Yhe,[D[7]||(D[7]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-title"}," Sprint advancement ",-1)),r.createElementVNode("span",Jhe,[D[0]||(D[0]=r.createElementVNode("span",null,"Advancement",-1)),r.createElementVNode("span",null,r.toDisplayString(_(x.id))+"%",1)]),r.createElementVNode("span",Xhe,[D[1]||(D[1]=r.createElementVNode("span",null,"Completed",-1)),r.createElementVNode("span",null,r.toDisplayString(T(p(x.id)))+" / "+r.toDisplayString(T(f(x.id)))+" pts ",1)]),r.createElementVNode("span",Qhe,[D[2]||(D[2]=r.createElementVNode("span",null,"Remaining",-1)),r.createElementVNode("span",null,r.toDisplayString(T(b(x.id)))+" pts",1)]),D[8]||(D[8]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-separator"},null,-1)),r.createElementVNode("span",ege,[D[3]||(D[3]=r.createElementVNode("span",null,"Remaining capacity",-1)),r.createElementVNode("span",null,r.toDisplayString(T(w(x.id)))+" pts",1)]),r.createElementVNode("span",tge,[D[4]||(D[4]=r.createElementVNode("span",null,"Remaining planning",-1)),r.createElementVNode("span",null,r.toDisplayString(T(u(x.id)))+" MD",1)]),r.createElementVNode("span",nge,[D[5]||(D[5]=r.createElementVNode("span",null,"Estimated velocity",-1)),r.createElementVNode("span",null,r.toDisplayString(A(m(x.id))),1)]),D[9]||(D[9]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-separator"},null,-1)),r.createElementVNode("span",oge,[D[6]||(D[6]=r.createElementVNode("span",null,"Status",-1)),r.createElementVNode("span",null,r.toDisplayString(k(x.id)?"Behind plan":"On track"),1)])])])],2)],8,zhe),r.withDirectives(r.createElementVNode("div",rge,[r.createElementVNode("div",ige,[r.createElementVNode("div",sge,[r.createElementVNode("div",age,r.toDisplayString(r.unref(n)("sprintMetrics.manDaysPlanned")),1),r.createElementVNode("div",lge,[r.createElementVNode("span",{class:r.normalizeClass(["ao-sprint-metrics__man-days",{"ao-sprint-metrics__man-days--has-tooltip":d(x.id).length>0}])},[r.createTextVNode(r.toDisplayString(T(c(x.id)))+" MD ",1),d(x.id).length>0?(r.openBlock(),r.createElementBlock("span",cge,[r.createElementVNode("span",uge,r.toDisplayString(T(c(x.id)))+" MD planned ",1),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d(x.id),B=>(r.openBlock(),r.createElementBlock("span",{key:B.userId,class:"ao-sprint-metrics__tooltip-row"},[r.createElementVNode("span",null,r.toDisplayString(B.fullName),1),r.createElementVNode("span",null,r.toDisplayString(T(B.plannedManDays))+" MD",1)]))),128))])):r.createCommentVNode("",!0)],2)])]),r.createElementVNode("div",dge,[r.createElementVNode("div",fge,r.toDisplayString(r.unref(n)("sprintMetrics.estimatedPoints")),1),r.createElementVNode("div",pge,r.toDisplayString(T(f(x.id)))+" pts ",1)]),r.createElementVNode("div",mge,[r.createElementVNode("div",hge,r.toDisplayString(r.unref(n)("sprintMetrics.targetVelocity")),1),r.createElementVNode("div",gge,[r.createElementVNode("input",{type:"number",step:"0.1",min:"0",class:"ao-sprint-metrics__input",value:s.value[x.id]??"",placeholder:r.unref(n)("sprintMetrics.targetVelocityPlaceholder"),onInput:B=>g(x.id,B.target.value)},null,40,vge),D[10]||(D[10]=r.createElementVNode("span",{class:"ao-sprint-metrics__unit"},"pts / MD",-1))]),m(x.id)>0?(r.openBlock(),r.createElementBlock("div",_ge,r.toDisplayString(r.unref(n)("sprintMetrics.currentlyEstimated"))+": "+r.toDisplayString(A(m(x.id))),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",yge,[r.createElementVNode("div",Cge,r.toDisplayString(r.unref(n)("sprintMetrics.planningProgress")),1),r.createElementVNode("div",bge,[C(x.id)!==null?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(v(x.id))+"% · "+r.toDisplayString(T(f(x.id)))+" / "+r.toDisplayString(T(y(x.id)))+" pts ",1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" — ")],64))])])])],512),[[r.vShow,!i.value.has(x.id)]])])}),128))]))}});const wge=te(kge,[["__scopeId","data-v-98b799f1"]]),Ege={class:"ao-feed"},Sge={class:"ao-feed__filters"},xge={class:"ao-feed__body"},Yc=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:()=>[]},sprintPlanningData:{default:()=>({})}},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"],setup(t,{emit:e}){const{t:n}=Wt(),o=t,i=e;function s(R,le){i("toast",R,le)}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,le)=>{await i("selectActivity",R,le)},d=r.ref({}),f=r.ref(!1),p=r.ref(!1),m=r.computed(()=>o.project?"milestone":"project");r.watch([()=>l.value,()=>c.value,()=>o.initialActivityId,()=>o.initialActivitySlug,()=>o.feedMode],async([R,le,ge,me],[Ee,ze])=>{const Be=o.feedMode==="dev"?"devStatus":"status";d.value=Object.fromEntries(R.map(Te=>[Te.id,le.filter(Ie=>{const Pe=Ie[Be];return(Pe==null?void 0:Pe.id)===Te.id})])),ge&&!f.value?(u(ge,null),f.value=!0):me&&!f.value&&(u(null,me),f.value=!0),p.value&&Wn(le,ze)},{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??""}`}),g=R=>{var Te;const le=o.feedMode==="dev"?o.activities.filter(Ie=>Ie.activityType==="dev"):o.activities,ge=le==null?void 0:le.at(-1),me=ge?Xe.LexoRank.parse(ge.rank).genNext():Xe.LexoRank.middle(),Ee=((Te=o.activities)==null?void 0:Te.length)??0,ze=o.feedMode==="dev",Be={name:n("activity.defaultName",{idx:Ee+1}),rank:me.format(),...ze?{statusDevId:R.id,type:"dev"}:{statusId:R.id}};if(o.filters.assigneeId.length>0&&(Be.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(Be.projectId=o.filters.projectId[0]),o.filters.sprintId&&o.filters.sprintId.length===1){const Ie=o.sprints.find(Pe=>Pe.id===o.filters.sprintId[0]);Ie&&(Be.sprintId=Ie.id,Be.projectId=Ie.projectId)}p.value=!0,i("addActivity",Be)},y=R=>{var Te,Ie;const le=o.feedMode==="dev"?"devStatus":"status",ge=((Te=o.activities)==null?void 0:Te.filter(Pe=>{const dt=Pe[le];return(dt==null?void 0:dt.id)===R.id}))??[],me=os(ge),Ee=((Ie=o.activities)==null?void 0:Ie.length)??0,ze=o.feedMode==="dev",Be={name:n("activity.defaultName",{idx:Ee+1}),rank:me,...ze?{statusDevId:R.id,type:"dev"}:{statusId:R.id}};if(o.filters.assigneeId.length>0&&(Be.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(Be.projectId=o.filters.projectId[0]),o.filters.sprintId&&o.filters.sprintId.length===1){const Pe=o.sprints.find(dt=>dt.id===o.filters.sprintId[0]);Pe&&(Be.sprintId=Pe.id,Be.projectId=Pe.projectId)}p.value=!0,i("addActivity",Be)},C=(R,le)=>{p.value=!1,i("update:filters",{...o.filters,[R]:le})},v=r.computed(()=>o.project?[o.project]:o.projects??[]),_=r.computed(()=>v.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[so.sprint]??[];return o.sprints.filter(le=>R.includes(le.id))});r.computed(()=>{var R;return(R=o.activityTypes)==null?void 0:R.map(le=>({value:le.id,label:le.name}))});const k=r.computed(()=>o.users.map(R=>({value:R.id,label:`${R.firstName} ${R.lastName}`,avatar:R.avatarUrl}))),T=R=>{o.selectedActivity&&i("update:activity",R)},A=R=>{i("update:activity",R)},S=R=>{i("archiveActivity",R)},E=R=>{i("unarchiveActivity",R)},D=R=>{var le;i("startTimer",R),(le=window.parent)==null||le.postMessage({type:"startTimer",data:R},"*")},x=R=>{p.value=!1,i("update:searchText",R)},$=R=>{p.value=!1,i("clear:searchText",R)},B=R=>{o.selectedActivity&&i("addSubtask",R)},V=R=>{o.selectedActivity&&i("updateSubtask",R)},I=R=>{o.selectedActivity&&i("deleteSubtask",R)},j=R=>{i("addFiles",R)},F=R=>{i("removeFile",R)},q=R=>{o.selectedActivity&&i("addComment",{...R,activityId:o.selectedActivity.id})},Q=R=>{const{id:le}=o.selectedActivity||{};le&&i("updateComment",R)},ae=R=>{const{id:le}=o.selectedActivity||{};le&&i("removeComment",R)},ne=$r.useRouter(),ye=$r.useRoute(),re=r.ref("feed");r.watch(()=>ye.name,R=>{R===Io.feed||R==="ActivityFeed"||R==="ActivityFeedWithActivity"?re.value="feed":R===Io.dev||R==="ActivityFeedDev"||R==="ActivityFeedDevWithActivity"?re.value="dev":R===Fe.feed?re.value="feed":R===Fe.dev?re.value="dev":R===Fe.project?re.value="overview":R===Fe.mapping&&(re.value="mapping")},{immediate:!0});const ie=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}],U=r.computed(()=>P.value?ie.filter(R=>R.value==="feed"||R.value==="dev"):ie),P=r.computed(()=>!o.project&&ye.name&&(ye.name===Io.feed||ye.name===Io.dev||ye.name==="ActivityFeed"||ye.name==="ActivityFeedDev"||ye.name==="ActivityFeedWithActivity"||ye.name==="ActivityFeedDevWithActivity")),se=r.computed(()=>P.value?Io.feed:Fe.feed),we=r.computed(()=>P.value?Io.dev:Fe.dev),Re=r.computed(()=>Fe.project),Ce=r.computed(()=>Fe.mapping);return r.watch(re,R=>{R==="feed"?ne.push({name:se.value}):R==="dev"?ne.push({name:we.value}):R==="overview"?ne.push({name:Re.value}):R==="mapping"&&ne.push({name:Ce.value})}),(R,le)=>{var ge;return r.openBlock(),r.createElementBlock("div",Ege,[r.createVNode(rs,null,{primary:r.withCtx(()=>[r.createElementVNode("div",Sge,[r.createVNode(vs,{modelValue:re.value,"onUpdate:modelValue":le[0]||(le[0]=me=>re.value=me),tabs:U.value},null,8,["modelValue","tabs"]),r.createVNode(Fhe,{"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(Ct,{key:0,"model-value":t.filters[r.unref(so).project],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:R.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":le[1]||(le[1]=me=>C(r.unref(so).project,me))},null,8,["model-value","options","placeholder"])),t.feedMode==="dev"?(r.openBlock(),r.createBlock(Ct,{key:1,"model-value":t.filters[r.unref(so).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":le[2]||(le[2]=me=>C(r.unref(so).sprint,me))},null,8,["model-value","options","disabled","placeholder"])):r.createCommentVNode("",!0),k.value.length?(r.openBlock(),r.createBlock(Ct,{key:2,"model-value":t.filters[r.unref(so).assignee],mode:"tags",options:k.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:R.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":le[3]||(le[3]=me=>C(r.unref(so).assignee,me))},{tag:r.withCtx(({option:me,handleTagRemove:Ee})=>[r.createVNode(Xn,{"user-name":me.label,"avatar-url":me.avatar,"is-closable":!0,onClose:ze=>Ee(me,ze)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):r.createCommentVNode("",!0)]),r.createVNode(ue,{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:le[4]||(le[4]=me=>R.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),r.createVNode(ue,{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:le[5]||(le[5]=me=>R.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),r.createVNode(ue,{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:le[6]||(le[6]=me=>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(wge,{key:0,sprints:w.value,activities:c.value,"planning-data":t.sprintPlanningData,projects:v.value},null,8,["sprints","activities","planning-data","projects"])):r.createCommentVNode("",!0),r.createElementVNode("div",xge,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,me=>(r.openBlock(),r.createBlock(Vhe,{key:me.id,status:me,list:d.value[me.id],title:me.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:()=>g(me),onAddAtBeginning:()=>y(me),onSelectActivity:u,onArchiveActivity:S,onUnarchiveActivity:E,onUpdateActivity:A,onStartTimer:D},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(rd,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"milestone-id":(ge=t.selectedActivity.milestone)==null?void 0:ge.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:v.value,"time-tracking-data":t.timeTrackingData,"load-attachment-preview":o.loadAttachmentPreview,sprints:t.activitySprints,onClose:le[7]||(le[7]=()=>u(null,null)),"onUpdate:activity":T,onAddSubtask:B,onUpdateSubtask:V,onDeleteSubtask:I,onAddFiles:j,onRemoveFile:F,onAddComment:q,onUpdateComment:Q,onRemoveComment:ae,onToast:s,onCreateSprint:le[8]||(le[8]=me=>i("createSprint",me))},{default:r.withCtx(me=>[r.renderSlot(R.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(me)))]),_: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"])):r.createCommentVNode("",!0)]))])}}});const Age={class:"ao-project-mapping"},Tge={class:"ao-project-mapping-mapping__body"},Nge={class:"ao-project-mapping-mapping__phases"},Dge={key:0,class:"ao-project-mapping-mapping__image-wrapper"},$ge=["src","alt"],Bge=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}=Wt(),o=t,i=e,s=()=>{const{name:v,rank:_}=Zo(o.phases,"phase",n);i("addPhase",{name:v,rank:_,projectId:o.project.id})},a=()=>{const v=n("template.defaultName.phase",{idx:1}),_=os(o.phases);i("addPhase",{name:v,rank:_,projectId:o.project.id})},l=v=>{i("updatePhase",v)},c=v=>{i("archivePhase",v)},u=v=>{i("unarchivePhase",v)},d=v=>{i("copyPhaseToTemplate",v)},f=r.ref(!1),p=r.ref(!1),m=(v,_)=>{i("applyTemplate",{templateId:v,projectId:_}),f.value=!1},h=(v,_)=>{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:v,rank:w.format(),phaseIds:_}),p.value=!1},g=$r.useRouter(),y=r.ref("mapping"),C=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return r.watch(y,v=>{v==="feed"?(g.push({name:Fe.feed}),console.log("Navigating to feed...")):v==="dev"?(g.push({name:Fe.dev}),console.log("Navigating to dev...")):v==="overview"?(g.push({name:Fe.project}),console.log("Navigating to feed...")):v==="mapping"&&(g.push({name:Fe.mapping}),console.log("Navigating to feed..."))}),(v,_)=>{var b;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",r.mergeProps({class:"ao-project-mapping-overview"},v.$attrs),[r.createElementVNode("div",Age,[r.createVNode(rs,null,{primary:r.withCtx(()=>[r.createVNode(vs,{modelValue:y.value,"onUpdate:modelValue":_[0]||(_[0]=w=>y.value=w),tabs:C},null,8,["modelValue"]),r.createVNode(ue,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:v.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:_[1]||(_[1]=w=>v.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:r.withCtx(()=>[t.isEditable===!0?(r.openBlock(),r.createBlock(ue,{key:0,class:"ao-mapping__quick-add-phase",size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:v.$t("project.phase.add"),onClick:a},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(ue,{key:1,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:v.$t("project.template.save.label"),onClick:_[2]||(_[2]=w=>p.value=!0)},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(ue,{key:2,class:"ao-project-mapping-overview__add-template",color:"primary",label:v.$t("project.template.apply.label"),onClick:_[3]||(_[3]=w=>f.value=!0)},null,8,["label"])):r.createCommentVNode("",!0)]),_:1}),r.createElementVNode("div",Tge,[r.createElementVNode("div",Nge,[r.createVNode(md,{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",Dge,[r.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:r.unref(n)("architectureImage.alt")},null,8,$ge)])):r.createCommentVNode("",!0)])])],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[p.value?(r.openBlock(),r.createBlock(qg,{key:0,phases:t.phases,onClose:_[4]||(_[4]=w=>p.value=!1),onSave:h},null,8,["phases"])):r.createCommentVNode("",!0),f.value?(r.openBlock(),r.createBlock(Ug,{key:1,"project-id":t.project.id,templates:t.templates,onClose:_[5]||(_[5]=w=>f.value=!1),onApply:m},null,8,["project-id","templates"])):r.createCommentVNode("",!0)]))],64)}}});const Uo={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},Mge=(t,e={})=>[{path:t,name:Uo.TEMPLATES,redirect:{name:Uo.TEMPLATES_LIST},...e,children:[{path:"",name:Uo.TEMPLATES_LIST,component:Hg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Uo.TEMPLATE_DETAILS,component:zg,props:!0}]}],Fe={project:"AoProject",feed:"AoProjectFeed",dev:"AoProjectDev",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},Io={feed:"ActivityFeed",dev:"ActivityFeedDev"},Lge=(t,e={})=>[{path:t,...e,redirect:{name:Fe.project},children:[{path:"",name:Fe.project,component:xme,props:!0,children:[{path:":phaseId/:milestoneId",name:Fe.milestone,component:vp,props:!0},{path:":phaseId/:milestoneId/:activityId",name:Fe.activity,props:{default:!0,modal:!0},components:{default:vp,modal:hhe}}]},{path:"feed",name:Fe.feed,component:Yc,props:n=>({...n.params,feedMode:"standard"})},{path:"dev",name:Fe.dev,component:Yc,props:n=>({...n.params,feedMode:"dev"})},{path:"mapping",name:Fe.mapping,component:Bge,props:!0}]}],Oge={class:"ao-templates"},Hg=r.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=Wt(),o=t,i=e;r.watch(()=>o.templates,(u,d)=>{Wn(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(),f=((h=o.templates)==null?void 0:h.length)??0,p={name:n("template.defaultName.template",{idx:f+1}),rank:d.format()};i("addTemplate",p)},a=(u,d)=>{i("updateItem",{itemType:Ze.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{i("removeItem",{itemType:Ze.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=ns(u,o.templates??[]);i("updateItem",{itemType:Ze.TEMPLATES,id:u.moved.element.id,templateId:u.moved.element.id,data:{rank:d}})}};return(u,d)=>(r.openBlock(),r.createElementBlock("div",Oge,[r.createVNode(rs,null,{secondary:r.withCtx(()=>[r.createVNode(ue,{label:u.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:s},null,8,["label"])]),_:1}),r.createVNode(r.unref(ko),{"model-value":t.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:c},{item:r.withCtx(({element:f})=>{var p;return[r.createVNode(Z7,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?r.unref(v7)(f.phases):0,activities:f.phases?r.unref(_7)(f.phases):0,"updated-at":f.updatedAt,"updated-by":f.updatedBy,onUpdateTitle:m=>a(f.id,m),onClick:m=>u.$router.push({name:r.unref(Uo).TEMPLATE_DETAILS,params:{templateId:f.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 Vge={class:"ao-field__label"},jg=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",Vge,r.toDisplayString(t.label),1),r.renderSlot(e.$slots,"default")],2))}}),Ige=["type","value","disabled","readonly"],Pge=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(jg,{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,Ige)]),_:1},8,["label"]))}}),Fge={class:"ao-field"},Rge={class:"ao-field__label"},zge=["checked","disabled"],Wg=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",Fge,[r.createElementVNode("span",Rge,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,zge)]))}}),Uge={class:"ao-audit-config"},qge={key:0,class:"ao-audit-config__loading"},Hge={key:1,class:"ao-audit-config__error"},jge={key:2,class:"ao-audit-config__empty"},Wge={key:3,class:"ao-audit-config__table"},Zge={class:"ao-audit-config__th ao-audit-config__th--table"},Kge={class:"ao-audit-config__th ao-audit-config__th--audit"},Gge={class:"ao-audit-config__th ao-audit-config__th--excluded"},Yge={class:"ao-audit-config__td ao-audit-config__td--table"},Jge={class:"ao-audit-config__table-name"},Xge={key:0,class:"ao-audit-config__schema"},Qge={class:"ao-audit-config__td ao-audit-config__td--audit"},e0e={class:"ao-audit-config__checkbox"},t0e={class:"ao-audit-config__td ao-audit-config__td--excluded"},n0e={key:0,class:"ao-audit-config__disabled-note"},o0e={class:"ao-audit-config__option"},r0e=["title"],i0e={key:0,class:"ao-audit-config__all-tracked"},s0e=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}=Wt(),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 f=Array.from(new Set(d??[]));o("update",{schemaName:u.schemaName,tableName:u.tableName,isEnabled:u.isEnabled,excludeColumns:f})}return(u,d)=>(r.openBlock(),r.createElementBlock("div",Uge,[t.loading?(r.openBlock(),r.createElementBlock("div",qge,r.toDisplayString(r.unref(i)("audit.loading")),1)):t.error?(r.openBlock(),r.createElementBlock("div",Hge,r.toDisplayString(r.unref(i)("audit.error",{message:t.error})),1)):s.value.length?(r.openBlock(),r.createElementBlock("table",Wge,[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[r.createElementVNode("th",Zge,r.toDisplayString(r.unref(i)("audit.tableHeader")),1),r.createElementVNode("th",Kge,r.toDisplayString(r.unref(i)("audit.auditHeader")),1),r.createElementVNode("th",Gge,r.toDisplayString(r.unref(i)("audit.ignoredHeader")),1)])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,f=>(r.openBlock(),r.createElementBlock("tr",{key:`${f.schemaName}.${f.tableName}`},[r.createElementVNode("td",Yge,[r.createElementVNode("span",Jge,r.toDisplayString(f.tableName),1),f.schemaName!=="public"?(r.openBlock(),r.createElementBlock("span",Xge,r.toDisplayString(f.schemaName),1)):r.createCommentVNode("",!0)]),r.createElementVNode("td",Qge,[r.createElementVNode("div",e0e,[r.createVNode(Wg,{label:"","model-value":f.isEnabled,"is-disabled":t.disabled,"is-readonly":!1,"onUpdate:modelValue":p=>l(f,p)},null,8,["model-value","is-disabled","onUpdate:modelValue"])])]),r.createElementVNode("td",t0e,[f.isEnabled?(r.openBlock(),r.createBlock(Ct,{key:1,"model-value":f.excludeColumns,class:"ao-audit-config__multiselect",mode:"tags","value-prop":"value",label:"label","track-by":"label","close-on-select":!1,searchable:!0,options:a(f),disabled:t.disabled,caret:!t.disabled,"onUpdate:modelValue":p=>c(f,p)},{option:r.withCtx(({option:p})=>[r.createElementVNode("span",o0e,[r.createTextVNode(r.toDisplayString(p.label)+" ",1),p.isPrimaryKey?(r.openBlock(),r.createElementBlock("span",{key:0,class:"ao-audit-config__pk",title:r.unref(i)("audit.primaryKey")}," PK ",8,r0e)):r.createCommentVNode("",!0)])]),placeholder:r.withCtx(()=>[f.excludeColumns.length===0?(r.openBlock(),r.createElementBlock("span",i0e,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",n0e,r.toDisplayString(r.unref(i)("audit.auditDisabled")),1))])]))),128))])])):(r.openBlock(),r.createElementBlock("div",jge,r.toDisplayString(r.unref(i)("audit.empty")),1))]))}});const a0e={class:"ao-sprint-list"},l0e={class:"ao-sprint-list__header"},c0e={class:"ao-sprint-list__title-group"},u0e={class:"ao-sprint-list__count"},d0e={class:"ao-sprint-list__actions"},f0e={key:0,class:"ao-sprint-list__toggle"},p0e={key:0,class:"ao-sprint-list__row ao-sprint-list__row--editing"},m0e=["title","onClick"],h0e=["placeholder"],g0e={class:"ao-sprint-list__date-fields"},v0e={class:"ao-sprint-list__row-actions"},_0e={class:"ao-sprint-list__rows"},y0e={class:"ao-sprint-list__identity"},C0e={class:"ao-sprint-list__name-group"},b0e={class:"ao-sprint-list__name"},k0e={key:0,class:"ao-sprint-list__archived-badge"},w0e={class:"ao-sprint-list__dates"},E0e={key:0,class:"ao-sprint-list__row-actions"},S0e=["title","onClick"],x0e={class:"ao-sprint-list__date-fields"},A0e={class:"ao-sprint-list__row-actions"},T0e={key:1,class:"ao-sprint-list__empty"},N0e=r.defineComponent({__name:"AoSprintList",props:{sprints:{},isEditable:{type:Boolean}},emits:["updateSprint","archiveSprint","unarchiveSprint","createSprint"],setup(t,{emit:e}){const n=t,o=e,{t:i}=Wt(),s=r.ref(!1),a=r.computed(()=>s.value?n.sprints:n.sprints.filter(A=>A.active)),l=r.ref(null),c=r.ref({name:"",startDate:"",endDate:"",color:""}),u=r.ref(null),d=r.ref(null),f=A=>{l.value=A.id,c.value={name:A.name,startDate:A.startDate,endDate:A.endDate,color:A.color||""}},p=()=>{l.value=null,c.value={name:"",startDate:"",endDate:"",color:""}},m=A=>{o("updateSprint",{id:A,name:c.value.name||void 0,startDate:c.value.startDate||void 0,endDate:c.value.endDate||void 0,color:c.value.color||void 0}),p()},h=A=>{confirm(i("sprint.confirmArchive"))&&o("archiveSprint",{id:A})},g=A=>{o("unarchiveSprint",{id:A})},y=A=>Xc(Br(A),"dd/MM/yy"),C=()=>n.sprints.reduce((S,E)=>{const D=E.name.match(/^Sprint\s*(\d+)$/);return D?Math.max(S,parseInt(D[1],10)):S},0)+1,v=r.ref(!1),_=r.ref({name:"",startDate:"",endDate:"",color:"#4f5cff"}),b=()=>{v.value=!0,l.value=null,_.value={name:`Sprint ${C()}`,startDate:"",endDate:"",color:"#4f5cff"}},w=()=>{v.value=!1,_.value={name:"",startDate:"",endDate:"",color:"#4f5cff"}},k=()=>{!_.value.name||!_.value.startDate||!_.value.endDate||(o("createSprint",{name:_.value.name,startDate:_.value.startDate,endDate:_.value.endDate,color:_.value.color||void 0}),w())},T=r.computed(()=>v.value?!!(_.value.name&&_.value.startDate&&_.value.endDate):l.value?!!(c.value.name&&c.value.startDate&&c.value.endDate):!1);return(A,S)=>(r.openBlock(),r.createElementBlock("section",a0e,[r.createElementVNode("div",l0e,[r.createElementVNode("div",c0e,[r.createElementVNode("h3",null,r.toDisplayString(r.unref(i)("sprint.planning")),1),r.createElementVNode("span",u0e,r.toDisplayString(a.value.length),1)]),r.createElementVNode("div",d0e,[t.sprints.some(E=>!E.active)?(r.openBlock(),r.createElementBlock("label",f0e,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[0]||(S[0]=E=>s.value=E),type:"checkbox"},null,512),[[r.vModelCheckbox,s.value]]),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("sprint.showArchived")),1)])):r.createCommentVNode("",!0),t.isEditable&&!v.value?(r.openBlock(),r.createBlock(ue,{key:1,color:"primary",variant:"solid",size:"sm","icon-name":"Add","icon-position":"start",label:r.unref(i)("sprint.add"),onClick:b},null,8,["label"])):r.createCommentVNode("",!0)])]),v.value?(r.openBlock(),r.createElementBlock("div",p0e,[r.createVNode(jr,{color:_.value.color,"onUpdate:color":S[1]||(S[1]=E=>_.value.color=E)},{clickable:r.withCtx(({openPicker:E,bgColor:D})=>[r.createElementVNode("button",{ref_key:"colorTriggerRef",ref:u,class:"ao-sprint-list__color-trigger",style:r.normalizeStyle({backgroundColor:D}),title:r.unref(i)("sprint.color"),onClick:x=>E(x.currentTarget)},null,12,m0e)]),_:1},8,["color"]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[2]||(S[2]=E=>_.value.name=E),type:"text",class:"ao-sprint-list__input ao-sprint-list__input--name",placeholder:r.unref(i)("sprint.name")},null,8,h0e),[[r.vModelText,_.value.name]]),r.createElementVNode("div",g0e,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[3]||(S[3]=E=>_.value.startDate=E),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,_.value.startDate]]),S[9]||(S[9]=r.createElementVNode("span",{class:"ao-sprint-list__date-separator"},"–",-1)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[4]||(S[4]=E=>_.value.endDate=E),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,_.value.endDate]])]),r.createElementVNode("div",v0e,[r.createVNode(ue,{color:"success",variant:"ghost",size:"sm","icon-name":"CheckSmallRounded",disabled:!T.value,title:r.unref(i)("common.save"),onClick:k},null,8,["disabled","title"]),r.createVNode(ue,{color:"neutral",variant:"ghost",size:"sm","icon-name":"CloseRounded",title:r.unref(i)("common.cancel"),onClick:w},null,8,["title"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",_0e,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,E=>(r.openBlock(),r.createElementBlock("div",{key:E.id,class:r.normalizeClass(["ao-sprint-list__row",{"ao-sprint-list__row--archived":!E.active,"ao-sprint-list__row--editing":l.value===E.id}])},[l.value!==E.id?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",y0e,[r.createElementVNode("span",{class:"ao-sprint-list__color-dot",style:r.normalizeStyle({backgroundColor:E.color||"var(--ao-color-primary-base)"})},null,4),r.createElementVNode("div",C0e,[r.createElementVNode("span",b0e,r.toDisplayString(E.name),1),E.active?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",k0e,r.toDisplayString(r.unref(i)("sprint.archived")),1))])]),r.createElementVNode("div",w0e,[r.createVNode(ke,{name:"CalendarTodayOutlineRounded",size:"sm"}),r.createElementVNode("span",null,r.toDisplayString(y(E.startDate))+" – "+r.toDisplayString(y(E.endDate)),1)]),t.isEditable?(r.openBlock(),r.createElementBlock("div",E0e,[r.createVNode(ue,{color:"neutral",variant:"ghost",size:"md","icon-name":"EditOutline","icon-position":"start",title:r.unref(i)("common.edit"),onClick:D=>f(E)},null,8,["title","onClick"]),r.createVNode(ue,{color:"neutral",variant:"ghost",size:"md",corners:"round","icon-position":"start","icon-name":(E.active,"ArchiveOutlineRounded"),label:E.active?r.unref(i)("sprint.archive"):r.unref(i)("sprint.unarchive"),onClick:D=>E.active?h(E.id):g(E.id)},null,8,["icon-name","label","onClick"])])):r.createCommentVNode("",!0)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(jr,{color:c.value.color,"onUpdate:color":S[5]||(S[5]=D=>c.value.color=D)},{clickable:r.withCtx(({openPicker:D,bgColor:x})=>[r.createElementVNode("button",{ref_for:!0,ref_key:"colorTriggerEditRef",ref:d,class:"ao-sprint-list__color-trigger",style:r.normalizeStyle({backgroundColor:x}),title:r.unref(i)("sprint.color"),onClick:$=>D($.currentTarget)},null,12,S0e)]),_:1},8,["color"]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[6]||(S[6]=D=>c.value.name=D),type:"text",class:"ao-sprint-list__input ao-sprint-list__input--name"},null,512),[[r.vModelText,c.value.name]]),r.createElementVNode("div",x0e,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[7]||(S[7]=D=>c.value.startDate=D),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,c.value.startDate]]),S[10]||(S[10]=r.createElementVNode("span",{class:"ao-sprint-list__date-separator"},"–",-1)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":S[8]||(S[8]=D=>c.value.endDate=D),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,c.value.endDate]])]),r.createElementVNode("div",A0e,[r.createVNode(ue,{color:"success",variant:"ghost",size:"md","icon-name":"CheckSmallRounded",disabled:!T.value,title:r.unref(i)("common.save"),onClick:D=>m(E.id)},null,8,["disabled","title","onClick"]),r.createVNode(ue,{color:"neutral",variant:"ghost",size:"md","icon-name":"CloseRounded",title:r.unref(i)("common.cancel"),onClick:p},null,8,["title"])])],64))],2))),128))]),a.value.length===0&&!v.value?(r.openBlock(),r.createElementBlock("div",T0e,r.toDisplayString(r.unref(i)("sprint.noSprints")),1)):r.createCommentVNode("",!0)]))}});const D0e=te(N0e,[["__scopeId","data-v-698944ea"]]);exports.AoAuditConfigTable=s0e;exports.AoAvatar=Xn;exports.AoCardFeed=hd;exports.AoCheckboxField=Wg;exports.AoColorPicker=jr;exports.AoFeed=Yc;exports.AoField=jg;exports.AoInputField=Pge;exports.AoMultiselect=Ct;exports.AoProjectPhases=md;exports.AoSprintList=D0e;exports.AoTabBar=vs;exports.AoTemplateDetails=zg;exports.AoTemplates=t0;exports.AoTemplatesList=Hg;exports.EstimationUnit=Ep;exports.TemplateItemTypeEnum=wp;exports.activityFeedRoutes=Io;exports.activityFeedStatus=Ny;exports.durationTypes=Ty;exports.feedFilterTypes=so;exports.getProjectOverviewRoutes=Lge;exports.getTemplateRoutes=Mge;exports.listUpdateTypes=Dy;exports.milestoneStatus=Pi;exports.projectOverviewRoutes=Fe;exports.ruleComparators=Cp;exports.ruleDurationUnits=kp;exports.ruleTriggerTypes=bp;exports.templateItemType=Ze;exports.templateRouteNames=Uo;
|