@26lights/orcha 0.42.52 → 0.42.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orcha.cjs.js +28 -28
- package/dist/orcha.es.js +3369 -3365
- package/dist/orcha.umd.js +28 -28
- package/package.json +1 -1
package/dist/orcha.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";var Bg=Object.defineProperty;var $g=(t,e,n)=>e in t?Bg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var z=(t,e,n)=>($g(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),Ki=require("vue-router"),ho=require("vuedraggable");const Og=i.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(Ki.RouterView),i.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),ne=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Lg={},Ig={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Pg(t,e){return i.openBlock(),i.createElementBlock("svg",Ig,[...e[0]||(e[0]=[i.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 Fg=ne(Lg,[["render",Pg]]),Rg={},Vg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zg(t,e){return i.openBlock(),i.createElementBlock("svg",Vg,[...e[0]||(e[0]=[i.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 Ug=ne(Rg,[["render",zg]]),qg={},Hg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jg(t,e){return i.openBlock(),i.createElementBlock("svg",Hg,[...e[0]||(e[0]=[i.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 Wg=ne(qg,[["render",jg]]),Zg={},Kg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gg(t,e){return i.openBlock(),i.createElementBlock("svg",Kg,[...e[0]||(e[0]=[i.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 Yg=ne(Zg,[["render",Gg]]),Jg={},Xg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qg(t,e){return i.openBlock(),i.createElementBlock("svg",Xg,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const e0=ne(Jg,[["render",Qg]]),t0={},n0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o0(t,e){return i.openBlock(),i.createElementBlock("svg",n0,[...e[0]||(e[0]=[i.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 r0=ne(t0,[["render",o0]]),i0={},s0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function a0(t,e){return i.openBlock(),i.createElementBlock("svg",s0,[...e[0]||(e[0]=[i.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 l0=ne(i0,[["render",a0]]),c0={},u0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d0(t,e){return i.openBlock(),i.createElementBlock("svg",u0,[...e[0]||(e[0]=[i.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 f0=ne(c0,[["render",d0]]),p0={},h0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function m0(t,e){return i.openBlock(),i.createElementBlock("svg",h0,[...e[0]||(e[0]=[i.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 g0=ne(p0,[["render",m0]]),v0={},y0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _0(t,e){return i.openBlock(),i.createElementBlock("svg",y0,[...e[0]||(e[0]=[i.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 C0=ne(v0,[["render",_0]]),b0={},k0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function w0(t,e){return i.openBlock(),i.createElementBlock("svg",k0,[...e[0]||(e[0]=[i.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 E0=ne(b0,[["render",w0]]),x0={},S0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T0(t,e){return i.openBlock(),i.createElementBlock("svg",S0,[...e[0]||(e[0]=[i.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 A0=ne(x0,[["render",T0]]),N0={},D0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M0(t,e){return i.openBlock(),i.createElementBlock("svg",D0,[...e[0]||(e[0]=[i.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 B0=ne(N0,[["render",M0]]),$0={},O0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function L0(t,e){return i.openBlock(),i.createElementBlock("svg",O0,[...e[0]||(e[0]=[i.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 I0=ne($0,[["render",L0]]),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 i.openBlock(),i.createElementBlock("svg",F0,[...e[0]||(e[0]=[i.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 V0=ne(P0,[["render",R0]]),z0={},U0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q0(t,e){return i.openBlock(),i.createElementBlock("svg",U0,[...e[0]||(e[0]=[i.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 H0=ne(z0,[["render",q0]]),j0={},W0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z0(t,e){return i.openBlock(),i.createElementBlock("svg",W0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const K0=ne(j0,[["render",Z0]]),G0={},Y0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J0(t,e){return i.openBlock(),i.createElementBlock("svg",Y0,[...e[0]||(e[0]=[i.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 X0=ne(G0,[["render",J0]]),Q0={},e2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t2(t,e){return i.openBlock(),i.createElementBlock("svg",e2,[...e[0]||(e[0]=[i.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 n2=ne(Q0,[["render",t2]]),o2={},r2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i2(t,e){return i.openBlock(),i.createElementBlock("svg",r2,[...e[0]||(e[0]=[i.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 s2=ne(o2,[["render",i2]]),a2={},l2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c2(t,e){return i.openBlock(),i.createElementBlock("svg",l2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const u2=ne(a2,[["render",c2]]),d2={},f2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p2(t,e){return i.openBlock(),i.createElementBlock("svg",f2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const h2=ne(d2,[["render",p2]]),m2={},g2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v2(t,e){return i.openBlock(),i.createElementBlock("svg",g2,[...e[0]||(e[0]=[i.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 y2=ne(m2,[["render",v2]]),_2={},C2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b2(t,e){return i.openBlock(),i.createElementBlock("svg",C2,[...e[0]||(e[0]=[i.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 k2=ne(_2,[["render",b2]]),w2={},E2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function x2(t,e){return i.openBlock(),i.createElementBlock("svg",E2,[...e[0]||(e[0]=[i.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 S2=ne(w2,[["render",x2]]),T2={},A2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N2(t,e){return i.openBlock(),i.createElementBlock("svg",A2,[...e[0]||(e[0]=[i.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 D2=ne(T2,[["render",N2]]),M2={},B2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $2(t,e){return i.openBlock(),i.createElementBlock("svg",B2,[...e[0]||(e[0]=[i.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 O2=ne(M2,[["render",$2]]),L2={},I2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function P2(t,e){return i.openBlock(),i.createElementBlock("svg",I2,[...e[0]||(e[0]=[i.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 F2=ne(L2,[["render",P2]]),R2={},V2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z2(t,e){return i.openBlock(),i.createElementBlock("svg",V2,[...e[0]||(e[0]=[i.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 U2=ne(R2,[["render",z2]]),q2={},H2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j2(t,e){return i.openBlock(),i.createElementBlock("svg",H2,[...e[0]||(e[0]=[i.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 W2=ne(q2,[["render",j2]]),Z2={},K2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G2(t,e){return i.openBlock(),i.createElementBlock("svg",K2,[...e[0]||(e[0]=[i.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 Y2=ne(Z2,[["render",G2]]),J2={},X2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q2(t,e){return i.openBlock(),i.createElementBlock("svg",X2,[...e[0]||(e[0]=[i.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 ev=ne(J2,[["render",Q2]]),tv={},nv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ov(t,e){return i.openBlock(),i.createElementBlock("svg",nv,[...e[0]||(e[0]=[i.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 rv=ne(tv,[["render",ov]]),iv={},sv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function av(t,e){return i.openBlock(),i.createElementBlock("svg",sv,[...e[0]||(e[0]=[i.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 lv=ne(iv,[["render",av]]),cv={},uv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dv(t,e){return i.openBlock(),i.createElementBlock("svg",uv,[...e[0]||(e[0]=[i.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 fv=ne(cv,[["render",dv]]),pv={},hv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mv(t,e){return i.openBlock(),i.createElementBlock("svg",hv,[...e[0]||(e[0]=[i.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 gv=ne(pv,[["render",mv]]),vv={},yv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _v(t,e){return i.openBlock(),i.createElementBlock("svg",yv,[...e[0]||(e[0]=[i.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 Cv=ne(vv,[["render",_v]]),bv={},kv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function wv(t,e){return i.openBlock(),i.createElementBlock("svg",kv,[...e[0]||(e[0]=[i.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 Ev=ne(bv,[["render",wv]]),xv={},Sv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Tv(t,e){return i.openBlock(),i.createElementBlock("svg",Sv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const Av=ne(xv,[["render",Tv]]),Nv={},Dv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Mv(t,e){return i.openBlock(),i.createElementBlock("svg",Dv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const Bv=ne(Nv,[["render",Mv]]),$v=i.defineComponent({name:"LoadingIcon"});const Ov={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lv(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",Ov,[...e[0]||(e[0]=[i.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),i.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),i.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const Iv=ne($v,[["render",Lv],["__scopeId","data-v-ad6da4a9"]]),Pv={},Fv={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function Rv(t,e){return i.openBlock(),i.createElementBlock("svg",Fv,[...e[0]||(e[0]=[i.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 Vv=ne(Pv,[["render",Rv]]),zv={},Uv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qv(t,e){return i.openBlock(),i.createElementBlock("svg",Uv,[...e[0]||(e[0]=[i.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 Hv=ne(zv,[["render",qv]]),jv={},Wv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zv(t,e){return i.openBlock(),i.createElementBlock("svg",Wv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const Kv=ne(jv,[["render",Zv]]),Gv={},Yv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jv(t,e){return i.openBlock(),i.createElementBlock("svg",Yv,[...e[0]||(e[0]=[i.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 Xv=ne(Gv,[["render",Jv]]),Qv={},e3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t3(t,e){return i.openBlock(),i.createElementBlock("svg",e3,[...e[0]||(e[0]=[i.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 n3=ne(Qv,[["render",t3]]),o3={},r3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i3(t,e){return i.openBlock(),i.createElementBlock("svg",r3,[...e[0]||(e[0]=[i.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 s3=ne(o3,[["render",i3]]),a3={},l3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c3(t,e){return i.openBlock(),i.createElementBlock("svg",l3,[...e[0]||(e[0]=[i.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 u3=ne(a3,[["render",c3]]),d3={},f3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p3(t,e){return i.openBlock(),i.createElementBlock("svg",f3,[...e[0]||(e[0]=[i.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 h3=ne(d3,[["render",p3]]),m3={},g3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v3(t,e){return i.openBlock(),i.createElementBlock("svg",g3,[...e[0]||(e[0]=[i.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 y3=ne(m3,[["render",v3]]),_3={},C3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b3(t,e){return i.openBlock(),i.createElementBlock("svg",C3,[...e[0]||(e[0]=[i.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 k3=ne(_3,[["render",b3]]),w3={},E3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function x3(t,e){return i.openBlock(),i.createElementBlock("svg",E3,[...e[0]||(e[0]=[i.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 S3=ne(w3,[["render",x3]]),T3={},A3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N3(t,e){return i.openBlock(),i.createElementBlock("svg",A3,[...e[0]||(e[0]=[i.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 D3=ne(T3,[["render",N3]]),M3={},B3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $3(t,e){return i.openBlock(),i.createElementBlock("svg",B3,[...e[0]||(e[0]=[i.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 O3=ne(M3,[["render",$3]]),L3={},I3={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function P3(t,e){return i.openBlock(),i.createElementBlock("svg",I3,[...e[0]||(e[0]=[i.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 F3=ne(L3,[["render",P3]]),R3={},V3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z3(t,e){return i.openBlock(),i.createElementBlock("svg",V3,[...e[0]||(e[0]=[i.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 U3=ne(R3,[["render",z3]]),q3={},H3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j3(t,e){return i.openBlock(),i.createElementBlock("svg",H3,[...e[0]||(e[0]=[i.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 W3=ne(q3,[["render",j3]]),Z3={},K3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G3(t,e){return i.openBlock(),i.createElementBlock("svg",K3,[...e[0]||(e[0]=[i.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 Y3=ne(Z3,[["render",G3]]),J3={},X3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q3(t,e){return i.openBlock(),i.createElementBlock("svg",X3,[...e[0]||(e[0]=[i.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 e5=ne(J3,[["render",Q3]]),t5={},n5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o5(t,e){return i.openBlock(),i.createElementBlock("svg",n5,[...e[0]||(e[0]=[i.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 r5=ne(t5,[["render",o5]]),i5={},s5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function a5(t,e){return i.openBlock(),i.createElementBlock("svg",s5,[...e[0]||(e[0]=[i.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 l5=ne(i5,[["render",a5]]),c5={},u5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d5(t,e){return i.openBlock(),i.createElementBlock("svg",u5,[...e[0]||(e[0]=[i.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 f5=ne(c5,[["render",d5]]),p5={},h5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function m5(t,e){return i.openBlock(),i.createElementBlock("svg",h5,[...e[0]||(e[0]=[i.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 g5=ne(p5,[["render",m5]]),v5={},y5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _5(t,e){return i.openBlock(),i.createElementBlock("svg",y5,[...e[0]||(e[0]=[i.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 C5=ne(v5,[["render",_5]]),b5={},k5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function w5(t,e){return i.openBlock(),i.createElementBlock("svg",k5,[...e[0]||(e[0]=[i.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 E5=ne(b5,[["render",w5]]),x5={},S5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T5(t,e){return i.openBlock(),i.createElementBlock("svg",S5,[...e[0]||(e[0]=[i.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 A5=ne(x5,[["render",T5]]),N5={},D5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M5(t,e){return i.openBlock(),i.createElementBlock("svg",D5,[...e[0]||(e[0]=[i.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 B5=ne(N5,[["render",M5]]),$5={},O5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function L5(t,e){return i.openBlock(),i.createElementBlock("svg",O5,[...e[0]||(e[0]=[i.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 I5=ne($5,[["render",L5]]),P5={},F5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R5(t,e){return i.openBlock(),i.createElementBlock("svg",F5,[...e[0]||(e[0]=[i.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 V5=ne(P5,[["render",R5]]),z5=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:Fg,AccountCircle:Ug,AccountTreeOutlineRounded:Wg,AccountTreeRounded:Yg,Add:e0,AddBoxOutlineRounded:r0,ArchiveOutlineRounded:l0,ArrowBackRounded:f0,ArrowDropDownRounded:g0,ArrowForwardRounded:C0,AssignmentOutlineRounded:E0,AttachFileRounded:A0,CalendarTodayOutlineRounded:B0,CancelRounded:I0,ChatOutline:V0,CheckBoxOutlineBlank:H0,CheckBoxOutlineBlankSharp:K0,CheckBoxOutlineRounded:X0,CheckSmallRounded:n2,ChecklistRounded:s2,ChevronLeft:u2,ChevronRight:h2,CloseRounded:y2,ContactsOutlineRounded:k2,ContentCopyOutline:S2,DeleteOutlineRounded:D2,DragIndicator:O2,EditDocumentRounded:F2,EditOutline:U2,ErrorOutlineRounded:W2,FilterListRounded:Y2,FlagRounded:ev,FlowsheetOutlineRounded:rv,GifBox:lv,GroupsOutline:fv,HomeOutlineRounded:gv,ImageRounded:Cv,Info:Ev,KeyboardArrowDown:Av,KeyboardArrowUp:Bv,Loading:Iv,Lock:Vv,LogoutRounded:Hv,Menu:Kv,MoreHoriz:Xv,MoreTimeRounded:n3,MoreVert:s3,MountainFlagOutlineRounded:u3,PersonAddOutlineRounded:h3,PictureAsPdfRounded:y3,RadioButtonChecked:k3,RadioButtonCheckedOutline:S3,RadioButtonUnchecked:D3,RemoveRounded:O3,SearchRounded:F3,SelectCheckBox:U3,SendRounded:W3,Settings:Y3,SlideshowRounded:e5,Target:r5,TaskOutlineRounded:l5,TextSnippetRounded:f5,TimerOutline:g5,ViewComfyAltRounded:C5,ViewCompactAltRounded:E5,ViewTimelineRounded:A5,WarningOutlineRounded:B5,WarningRounded:I5,WaterfallChartRounded:V5},Symbol.toStringTag,{value:"Module"})),U5={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},ba={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Rc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},q5={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Rc,...q5});const np={ROUND:"round",ROUNDED:"rounded"},H5={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},Ae=i.defineComponent({__name:"AoIcon",props:{name:{},size:{default:ba.MD}},setup(t){const e=t,n=i.computed(()=>z5[e.name]);return(o,r)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{class:i.normalizeClass(["ao-icon",`ao-icon--${t.size}`])},null,8,["class"]))}});const j5=["type"],W5={key:0,class:"ao-button__label"},he=i.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>U5.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>ba.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>np.ROUNDED}},setup(t){const e=t,n=i.computed(()=>e.size),o=i.computed(()=>e.isLoading?"Loading":e.iconName);return(r,s)=>(i.openBlock(),i.createElementBlock("button",{type:t.type,class:i.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}`:"",r.$attrs.disabled?"ao-button--is-disabled":""])},[i.renderSlot(r.$slots,"default",{},()=>[t.label?(i.openBlock(),i.createElementBlock("span",W5,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(Ae,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,j5))}});function op(t){const e=i.ref(!1),n=i.ref(""),o=i.computed(()=>"value"in t.value?"value":"innerHTML"),r=()=>{e.value=!e.value},s=c=>{e.value=c},a=c=>async()=>{s(!1),await i.nextTick(()=>{t.value[o.value]=n.value,c==null||c()})},l=c=>async u=>{const d=t.value[o.value];s(!1),await i.nextTick(()=>{c(d,u)})};return i.watch(e,async c=>{await i.nextTick(()=>{setTimeout(()=>{t.value&&c&&(t.value.focus(),n.value=t.value[o.value])},1)})}),{isEditing:e,setIsEditing:s,toggleIsEditing:r,onUpdate:l,onDiscard:a}}const st=i.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=i.ref(null),o=t,r=e,{isEditing:s,setIsEditing:a,onUpdate:l,onDiscard:c}=op(n),u=i.computed(()=>s.value?"input":o.tag||`h${o.level}`),d=i.computed(()=>o.isEditable?s.value?{change:f,click:y=>y.stopPropagation(),blur:h}:{click:g,focus:g}:{}),f=l((y,_)=>{const v=_.target.value;r("update:title",v)}),p=c(),h=async()=>{s.value&&a(!1)},m=()=>{r("toggle-is-editing",!1)},g=y=>{y.stopPropagation(),s.value||a(!0)};return i.watch(()=>o.isEditable,y=>{y||p()}),(y,_)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(u.value),i.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":i.unref(s),"ao-title--readonly":!i.unref(s)}],type:i.unref(s)?"text":null,value:i.unref(s)?t.title:null,tabindex:"0",onKeyup:i.withKeys(m,["enter"])},i.toHandlers(d.value),{onKeydown:i.withKeys(i.unref(p),["esc"])}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}});const Z5={key:0,class:"ao-card-horiz__drag ao-card__drag"},K5={class:"ao-card-horiz__header"},G5={key:0,class:"ao-card-horiz__avatar"},Y5={class:"ao-card-horiz__title-group"},J5={key:0,class:"ao-card-horiz__subtitle"},X5={key:1,class:"ao-card-horiz__header"},Q5={key:1,class:"ao-card-horiz__body"},e7={key:2,class:"ao-card-horiz__footer"},t7={key:3,class:"ao-card-horiz__secondary"},rp=i.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=r=>{n("update:title",r)};return(r,s)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:i.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":t.isActive}])},{default:i.withCtx(()=>[t.isDraggable?(i.openBlock(),i.createElementBlock("div",Z5,[i.createVNode(Ae,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):i.createCommentVNode("",!0),i.createElementVNode("div",K5,[t.icon?(i.openBlock(),i.createElementBlock("div",G5,[i.createVNode(Ae,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):i.createCommentVNode("",!0),i.createElementVNode("div",Y5,[i.createVNode(st,{id:t.id,class:"ao-card-horiz__title",level:4,title:t.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),i.renderSlot(r.$slots,"subtitle",{},()=>[t.subtitle?(i.openBlock(),i.createElementBlock("span",J5,i.toDisplayString(t.subtitle),1)):i.createCommentVNode("",!0)])]),r.$slots.header?(i.openBlock(),i.createElementBlock("div",X5,[i.renderSlot(r.$slots,"header")])):i.createCommentVNode("",!0)]),r.$slots.default?(i.openBlock(),i.createElementBlock("div",Q5,[i.renderSlot(r.$slots,"default")])):i.createCommentVNode("",!0),r.$slots.footer?(i.openBlock(),i.createElementBlock("div",e7,[i.renderSlot(r.$slots,"footer")])):i.createCommentVNode("",!0),r.$slots.secondary?(i.openBlock(),i.createElementBlock("div",t7,[i.renderSlot(r.$slots,"secondary")])):i.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Bi=i.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(t){const e=t,n=i.computed(()=>e.clickable?"button":"span"),o=i.computed(()=>n.value==="button"?{type:"button"}:{});return(r,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.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:i.normalizeStyle(t.rawColor?{"--ao-tag-bg":t.rawColor}:{})},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),i.mergeProps({class:"ao-tag__label"},o.value,{onClick:s[0]||(s[0]=a=>r.$emit("click",a))}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.label)+" ",1),t.variant===i.unref(H5).SOLID_ICON&&t.iconName?(i.openBlock(),i.createBlock(Ae,{key:0,name:t.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):i.createCommentVNode("",!0)]),_:1},16)),t.closable?(i.openBlock(),i.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:s[1]||(s[1]=a=>r.$emit("close",a))},[i.createVNode(Ae,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):i.createCommentVNode("",!0)],6))}});const $i={todo:"todo",done:"done",archived:"archived"},n7={months:"months",weeks:"weeks",days:"days"},o7={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},ip={BEFORE:"before",AFTER:"after"},sp={START:"start",end:"end"},ap={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},Be={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var lp=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(lp||{});const r7={add:"add",remove:"remove",moved:"moved"};var cp=(t=>(t.HOURS="hours",t.DAYS="days",t))(cp||{});const Ao={project:"projectId",type:"typeId",assignee:"assigneeId"};function Zs(t){"@babel/helpers - typeof";return Zs=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},Zs(t)}function In(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 Ue(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function ct(t){Ue(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Zs(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 i7(t,e){Ue(2,arguments);var n=ct(t).getTime(),o=In(e);return new Date(n+o)}var s7={};function Gi(){return s7}function Oi(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 ld(t){Ue(1,arguments);var e=ct(t);return e.setHours(0,0,0,0),e}var a7=864e5;function l7(t,e){Ue(2,arguments);var n=ld(t),o=ld(e),r=n.getTime()-Oi(n),s=o.getTime()-Oi(o);return Math.round((r-s)/a7)}function c7(t,e){Ue(2,arguments);var n=ct(t),o=ct(e),r=n.getTime()-o.getTime();return r<0?-1:r>0?1:r}var up=6e4,dp=36e5;function u7(t){return Ue(1,arguments),t instanceof Date||Zs(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function fp(t){if(Ue(1,arguments),!u7(t)&&typeof t!="number")return!1;var e=ct(t);return!isNaN(Number(e))}function Ql(t,e){Ue(2,arguments);var n=In(e);return i7(t,-n)}var d7=864e5;function f7(t){Ue(1,arguments);var e=ct(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime(),r=n-o;return Math.floor(r/d7)+1}function Ks(t){Ue(1,arguments);var e=1,n=ct(t),o=n.getUTCDay(),r=(o<e?7:0)+o-e;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function pp(t){Ue(1,arguments);var e=ct(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Ks(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=Ks(s);return e.getTime()>=r.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function p7(t){Ue(1,arguments);var e=pp(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Ks(n);return o}var h7=6048e5;function m7(t){Ue(1,arguments);var e=ct(t),n=Ks(e).getTime()-p7(e).getTime();return Math.round(n/h7)+1}function Gs(t,e){var n,o,r,s,a,l,c,u;Ue(1,arguments);var d=Gi(),f=In((n=(o=(r=(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&&r!==void 0?r: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=ct(t),h=p.getUTCDay(),m=(h<f?7:0)+h-f;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}function hp(t,e){var n,o,r,s,a,l,c,u;Ue(1,arguments);var d=ct(t),f=d.getUTCFullYear(),p=Gi(),h=In((n=(o=(r=(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&&r!==void 0?r: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(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(f+1,0,h),m.setUTCHours(0,0,0,0);var g=Gs(m,e),y=new Date(0);y.setUTCFullYear(f,0,h),y.setUTCHours(0,0,0,0);var _=Gs(y,e);return d.getTime()>=g.getTime()?f+1:d.getTime()>=_.getTime()?f:f-1}function g7(t,e){var n,o,r,s,a,l,c,u;Ue(1,arguments);var d=Gi(),f=In((n=(o=(r=(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&&r!==void 0?r: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=hp(t,e),h=new Date(0);h.setUTCFullYear(p,0,f),h.setUTCHours(0,0,0,0);var m=Gs(h,e);return m}var v7=6048e5;function y7(t,e){Ue(1,arguments);var n=ct(t),o=Gs(n,e).getTime()-g7(n,e).getTime();return Math.round(o/v7)+1}function xe(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var _7={y:function(e,n){var o=e.getUTCFullYear(),r=o>0?o:1-o;return xe(n==="yy"?r%100:r,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):xe(o+1,2)},d:function(e,n){return xe(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 xe(e.getUTCHours()%12||12,n.length)},H:function(e,n){return xe(e.getUTCHours(),n.length)},m:function(e,n){return xe(e.getUTCMinutes(),n.length)},s:function(e,n){return xe(e.getUTCSeconds(),n.length)},S:function(e,n){var o=n.length,r=e.getUTCMilliseconds(),s=Math.floor(r*Math.pow(10,o-3));return xe(s,n.length)}};const Jn=_7;var cr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},C7={G:function(e,n,o){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});case"GGGG":default:return o.era(r,{width:"wide"})}},y:function(e,n,o){if(n==="yo"){var r=e.getUTCFullYear(),s=r>0?r:1-r;return o.ordinalNumber(s,{unit:"year"})}return Jn.y(e,n)},Y:function(e,n,o,r){var s=hp(e,r),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return xe(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):xe(a,n.length)},R:function(e,n){var o=pp(e);return xe(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return xe(o,n.length)},Q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return xe(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return xe(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,o){var r=e.getUTCMonth();switch(n){case"M":case"MM":return Jn.M(e,n);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,o){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return xe(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,o,r){var s=y7(e,r);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):xe(s,n.length)},I:function(e,n,o){var r=m7(e);return n==="Io"?o.ordinalNumber(r,{unit:"week"}):xe(r,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):Jn.d(e,n)},D:function(e,n,o){var r=f7(e);return n==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):xe(r,n.length)},E:function(e,n,o){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});case"EEEE":default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,o,r){var s=e.getUTCDay(),a=(s-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return xe(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,r){var s=e.getUTCDay(),a=(s-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return xe(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 r=e.getUTCDay(),s=r===0?7:r;switch(n){case"i":return String(s);case"ii":return xe(s,n.length);case"io":return o.ordinalNumber(s,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});case"iiii":default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,o){var r=e.getUTCHours(),s=r/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 r=e.getUTCHours(),s;switch(r===12?s=cr.noon:r===0?s=cr.midnight:s=r/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 r=e.getUTCHours(),s;switch(r>=17?s=cr.evening:r>=12?s=cr.afternoon:r>=4?s=cr.morning:s=cr.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 r=e.getUTCHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return Jn.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Jn.H(e,n)},K:function(e,n,o){var r=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(r,{unit:"hour"}):xe(r,n.length)},k:function(e,n,o){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?o.ordinalNumber(r,{unit:"hour"}):xe(r,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Jn.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Jn.s(e,n)},S:function(e,n){return Jn.S(e,n)},X:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return ud(a);case"XXXX":case"XX":return No(a);case"XXXXX":case"XXX":default:return No(a,":")}},x:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return ud(a);case"xxxx":case"xx":return No(a);case"xxxxx":case"xxx":default:return No(a,":")}},O:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+cd(a,":");case"OOOO":default:return"GMT"+No(a,":")}},z:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+cd(a,":");case"zzzz":default:return"GMT"+No(a,":")}},t:function(e,n,o,r){var s=r._originalDate||e,a=Math.floor(s.getTime()/1e3);return xe(a,n.length)},T:function(e,n,o,r){var s=r._originalDate||e,a=s.getTime();return xe(a,n.length)}};function cd(t,e){var n=t>0?"-":"+",o=Math.abs(t),r=Math.floor(o/60),s=o%60;if(s===0)return n+String(r);var a=e||"";return n+String(r)+a+xe(s,2)}function ud(t,e){if(t%60===0){var n=t>0?"-":"+";return n+xe(Math.abs(t)/60,2)}return No(t,e)}function No(t,e){var n=e||"",o=t>0?"-":"+",r=Math.abs(t),s=xe(Math.floor(r/60),2),a=xe(r%60,2);return o+s+n+a}const b7=C7;var dd=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"})}},mp=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"})}},k7=function(e,n){var o=e.match(/(P+)(p+)?/)||[],r=o[1],s=o[2];if(!s)return dd(e,n);var a;switch(r){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}}",dd(r,n)).replace("{{time}}",mp(s,n))},w7={p:mp,P:k7};const E7=w7;var x7=["D","DD"],S7=["YY","YYYY"];function T7(t){return x7.indexOf(t)!==-1}function A7(t){return S7.indexOf(t)!==-1}function fd(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 N7={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"}},D7=function(e,n,o){var r,s=N7[e];return typeof s=="string"?r=s:n===1?r=s.one:r=s.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};const M7=D7;function fl(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 B7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},$7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},O7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},L7={date:fl({formats:B7,defaultWidth:"full"}),time:fl({formats:$7,defaultWidth:"full"}),dateTime:fl({formats:O7,defaultWidth:"full"})};const I7=L7;var P7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},F7=function(e,n,o,r){return P7[e]};const R7=F7;function ai(t){return function(e,n){var o=n!=null&&n.context?String(n.context):"standalone",r;if(o==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):s;r=t.formattingValues[a]||t.formattingValues[s]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[c]||t.values[l]}var u=t.argumentCallback?t.argumentCallback(e):e;return r[u]}}var V7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},z7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},U7={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"]},q7={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"]},H7={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"}},j7={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"}},W7=function(e,n){var o=Number(e),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},Z7={ordinalNumber:W7,era:ai({values:V7,defaultWidth:"wide"}),quarter:ai({values:z7,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ai({values:U7,defaultWidth:"wide"}),day:ai({values:q7,defaultWidth:"wide"}),dayPeriod:ai({values:H7,defaultWidth:"wide",formattingValues:j7,defaultFormattingWidth:"wide"})};const K7=Z7;function li(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;var a=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?Y7(l,function(f){return f.test(a)}):G7(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 G7(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function Y7(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function J7(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 r=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(r.length);return{value:a,rest:l}}}var X7=/^(\d+)(th|st|nd|rd)?/i,Q7=/\d+/i,ey={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},ty={any:[/^b/i,/^(a|c)/i]},ny={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},oy={any:[/1/i,/2/i,/3/i,/4/i]},ry={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},iy={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]},sy={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},ay={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]},ly={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},cy={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}},uy={ordinalNumber:J7({matchPattern:X7,parsePattern:Q7,valueCallback:function(e){return parseInt(e,10)}}),era:li({matchPatterns:ey,defaultMatchWidth:"wide",parsePatterns:ty,defaultParseWidth:"any"}),quarter:li({matchPatterns:ny,defaultMatchWidth:"wide",parsePatterns:oy,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:li({matchPatterns:ry,defaultMatchWidth:"wide",parsePatterns:iy,defaultParseWidth:"any"}),day:li({matchPatterns:sy,defaultMatchWidth:"wide",parsePatterns:ay,defaultParseWidth:"any"}),dayPeriod:li({matchPatterns:ly,defaultMatchWidth:"any",parsePatterns:cy,defaultParseWidth:"any"})};const dy=uy;var fy={code:"en-US",formatDistance:M7,formatLong:I7,formatRelative:R7,localize:K7,match:dy,options:{weekStartsOn:0,firstWeekContainsDate:1}};const gp=fy;var py=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hy=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,my=/^'([^]*?)'?$/,gy=/''/g,vy=/[a-zA-Z]/;function vp(t,e,n){var o,r,s,a,l,c,u,d,f,p,h,m,g,y,_,C,v,w;Ue(2,arguments);var k=String(e),b=Gi(),E=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:b.locale)!==null&&o!==void 0?o:gp,S=In((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:b.firstWeekContainsDate)!==null&&a!==void 0?a:(f=b.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=In((h=(m=(g=(y=n==null?void 0:n.weekStartsOn)!==null&&y!==void 0?y:n==null||(_=n.locale)===null||_===void 0||(C=_.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&g!==void 0?g:b.weekStartsOn)!==null&&m!==void 0?m:(v=b.locale)===null||v===void 0||(w=v.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&h!==void 0?h:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var A=ct(t);if(!fp(A))throw new RangeError("Invalid time value");var V=Oi(A),I=Ql(A,V),U={firstWeekContainsDate:S,weekStartsOn:T,locale:E,_originalDate:A},$=k.match(hy).map(function(H){var L=H[0];if(L==="p"||L==="P"){var ee=E7[L];return ee(H,E.formatLong)}return H}).join("").match(py).map(function(H){if(H==="''")return"'";var L=H[0];if(L==="'")return yy(H);var ee=b7[L];if(ee)return!(n!=null&&n.useAdditionalWeekYearTokens)&&A7(H)&&fd(H,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&T7(H)&&fd(H,e,String(t)),ee(I,H,E.localize,U);if(L.match(vy))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");return H}).join("");return $}function yy(t){var e=t.match(my);return e?e[1].replace(gy,"'"):t}function _y(t,e,n){var o,r,s,a,l,c,u,d,f,p;Ue(2,arguments);var h=ct(t),m=ct(e),g=Gi(),y=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&o!==void 0?o:gp,_=In((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 C=l7(h,m);if(isNaN(C))throw new RangeError("Invalid time value");var v;C<-6?v="other":C<-1?v="lastWeek":C<0?v="yesterday":C<1?v="today":C<2?v="tomorrow":C<7?v="nextWeek":v="other";var w=Ql(h,Oi(h)),k=Ql(m,Oi(m)),b=y.formatRelative(v,w,k,{locale:y,weekStartsOn:_});return vp(h,b,{locale:y,weekStartsOn:_})}function Li(t,e){var n;Ue(1,arguments);var o=In((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 r=wy(t),s;if(r.date){var a=Ey(r.date,o);s=xy(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(r.time&&(c=Sy(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(u=Ty(r.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 ks={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Cy=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,by=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ky=/^([+-])(\d{2})(?::?(\d{2}))?$/;function wy(t){var e={},n=t.split(ks.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],ks.timeZoneDelimiter.test(e.date)&&(e.date=t.split(ks.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var r=ks.timezone.exec(o);r?(e.time=o.replace(r[1],""),e.timezone=r[1]):e.time=o}return e}function Ey(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 r=o[1]?parseInt(o[1]):null,s=o[2]?parseInt(o[2]):null;return{year:s===null?r:s*100,restDateString:t.slice((o[1]||o[2]).length)}}function xy(t,e){if(e===null)return new Date(NaN);var n=t.match(Cy);if(!n)return new Date(NaN);var o=!!n[4],r=ci(n[1]),s=ci(n[2])-1,a=ci(n[3]),l=ci(n[4]),c=ci(n[5])-1;if(o)return By(e,l,c)?Ay(e,l,c):new Date(NaN);var u=new Date(0);return!Dy(e,s,a)||!My(e,r)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(r,a)),u)}function ci(t){return t?parseInt(t):1}function Sy(t){var e=t.match(by);if(!e)return NaN;var n=pl(e[1]),o=pl(e[2]),r=pl(e[3]);return $y(n,o,r)?n*dp+o*up+r*1e3:NaN}function pl(t){return t&&parseFloat(t.replace(",","."))||0}function Ty(t){if(t==="Z")return 0;var e=t.match(ky);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return Oy(o,r)?n*(o*dp+r*up):NaN}function Ay(t,e,n){var o=new Date(0);o.setUTCFullYear(t,0,4);var r=o.getUTCDay()||7,s=(e-1)*7+n+1-r;return o.setUTCDate(o.getUTCDate()+s),o}var Ny=[31,null,31,30,31,30,31,31,30,31,30,31];function yp(t){return t%400===0||t%4===0&&t%100!==0}function Dy(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(Ny[e]||(yp(t)?29:28))}function My(t,e){return e>=1&&e<=(yp(t)?366:365)}function By(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function $y(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Oy(t,e){return e>=0&&e<=59}var gt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ly(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Iy(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){if(this instanceof o){var r=[null];r.push.apply(r,arguments);var s=Function.bind.apply(e,r);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 r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return t[o]}})}),n}var rt={},_p={},ui={},Yi={},Vr={},ka={};Object.defineProperty(ka,"__esModule",{value:!0});ka.lexoHelper=void 0;ka.lexoHelper={arrayCopy:Py};function Py(t,e,n,o,r){let s=o;const a=e+r;for(let l=e;l<a;l++)n[s]=t[l],++s}var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0});class Fy{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}}Ji.default=Fy;Object.defineProperty(Vr,"__esModule",{value:!0});Vr.LexoInteger=void 0;const ws=ka,Ry=Ji;class fe{constructor(e,n,o){this.sys=e,this.sign=n,this.mag=o}static parse(e,n){let o=e,r=1;e.indexOf(n.getPositiveChar())===0?o=e.substring(1):e.indexOf(n.getNegativeChar())===0&&(o=e.substring(1),r=-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 fe.make(n,r,s)}static zero(e){return new fe(e,0,fe.ZERO_MAG)}static one(e){return fe.make(e,1,fe.ONE_MAG)}static make(e,n,o){let r;for(r=o.length;r>0&&o[r-1]===0;--r);if(r===0)return fe.zero(e);if(r===o.length)return new fe(e,n,o);const s=new Array(r).fill(0);return ws.lexoHelper.arrayCopy(o,0,s,0,r),new fe(e,n,s)}static add(e,n,o){const r=Math.max(n.length,o.length),s=new Array(r).fill(0);let a=0;for(let l=0;l<r;++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 fe.extendWithCarry(s,a)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return ws.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const r=fe.complement(e,o,n.length),s=fe.add(e,n,r);return s[s.length-1]=0,fe.add(e,s,fe.ONE_MAG)}static multiply(e,n,o){const r=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(r[l]+=n[s]*o[a];r[l]>=e.getBase();r[l]-=e.getBase())++r[l+1]}return r}static complement(e,n,o){if(o<=0)throw new Error("Expected at least 1 digit");const r=new Array(o).fill(e.getBase()-1);for(let s=0;s<n.length;++s)r[s]=e.getBase()-1-n[s];return r}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=fe.add(this.sys,this.mag,e.mag);return fe.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=fe.compare(this.mag,e.mag);return n===0?fe.zero(this.sys):n<0?fe.make(this.sys,this.sign===-1?1:-1,fe.subtract(this.sys,e.mag,this.mag)):fe.make(this.sys,this.sign===-1?-1:1,fe.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?fe.make(this.sys,1,e.mag):fe.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?fe.make(this.sys,1,this.mag):fe.make(this.sys,-1,this.mag);const n=fe.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?fe.make(this.sys,1,n):fe.make(this.sys,-1,n)}negate(){return this.isZero()?this:fe.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 ws.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),fe.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return fe.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return ws.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),fe.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return fe.make(this.sys,this.sign,fe.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=fe.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?fe.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 Ry.default,n=this.mag,o=n.length;for(let r=0;r<o;++r){const s=n[r];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")}}Vr.LexoInteger=fe;fe.ZERO_MAG=[0];fe.ONE_MAG=[1];fe.NEGATIVE_SIGN=-1;fe.ZERO_SIGN=0;fe.POSITIVE_SIGN=1;Object.defineProperty(Yi,"__esModule",{value:!0});Yi.LexoDecimal=void 0;const di=Vr,Vy=Ji;class Pt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Pt.make(di.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 Pt.make(di.LexoInteger.parse(e,n),0);const r=e.substring(0,o)+e.substring(o+1);return Pt.make(di.LexoInteger.parse(r,n),e.length-1-o)}static from(e){return Pt.make(e,0)}static make(e,n){if(e.isZero())return new Pt(e,0);let o=0;for(let a=0;a<n&&e.getMag(a)===0;++a)++o;const r=e.shiftRight(o),s=n-o;return new Pt(r,s)}getSystem(){return this.mag.getSystem()}add(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.add(r),o)}subtract(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.subtract(r),o)}multiply(e){return Pt.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(di.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 r=this.mag.shiftRight(o);return n&&(r=r.add(di.LexoInteger.one(r.getSystem()))),Pt.make(r,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 Vy.default(e),o=n[0],r=o===this.mag.getSystem().getPositiveChar()||o===this.mag.getSystem().getNegativeChar();for(r&&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)),r&&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()}}Yi.LexoDecimal=Pt;var Es={},pd;function Cp(){if(pd)return Es;pd=1,Object.defineProperty(Es,"__esModule",{value:!0});const t=Vr,e=kp();class n{constructor(r){this.value=t.LexoInteger.parse(r,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(r){const s=t.LexoInteger.parse(r,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: "+r)}static resolve(r){const s=n.VALUES,a=s.length;for(let l=0;l<a;++l){const c=s[l];if(c.equals(n.from(r.toString())))return c}throw new Error("No bucket found with id "+r)}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(r){return this===r?!0:r?this.value.equals(r.value):!1}}return Es.default=n,Es}var Vc={},bp={};Object.defineProperty(bp,"__esModule",{value:!0});var wa={};Object.defineProperty(wa,"__esModule",{value:!0});wa.LexoNumeralSystem10=void 0;class zy{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)}}wa.LexoNumeralSystem10=zy;var Ea={};Object.defineProperty(Ea,"__esModule",{value:!0});Ea.LexoNumeralSystem36=void 0;class Uy{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]}}Ea.LexoNumeralSystem36=Uy;var xa={};Object.defineProperty(xa,"__esModule",{value:!0});xa.LexoNumeralSystem64=void 0;class qy{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]}}xa.LexoNumeralSystem64=qy;(function(t){var e=gt&>.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=gt&>.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(bp,t),n(wa,t),n(Ea,t),n(xa,t)})(Vc);var hd;function kp(){if(hd)return ui;hd=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.LexoRank=void 0;const t=Yi,e=Cp(),n=Ji,o=Vc;class r{constructor(a,l){this.value=a.format()+"|"+r.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",r.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=t.LexoDecimal.parse("1",r.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=t.LexoDecimal.parse("8",r.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=r.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=t.LexoDecimal.parse("1000000",r.NUMERAL_SYSTEM).subtract(r.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=r.between(r.MIN_DECIMAL,r.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=t.LexoDecimal.parse("100000",r.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=t.LexoDecimal.parse(r.NUMERAL_SYSTEM.toChar(r.NUMERAL_SYSTEM.getBase()-2)+"00000",r.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return r.from(e.default.BUCKET_0,r.MIN_DECIMAL)}static middle(){const a=r.min();return a.between(r.max(a.bucket))}static max(a=e.default.BUCKET_0){return r.from(a,r.MAX_DECIMAL)}static initial(a){return a===e.default.BUCKET_0?r.from(a,r.INITIAL_MIN_DECIMAL):r.from(a,r.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 r.mid(a,l);u=d}if(a.getScale()>u.getScale()){if(d=a.setScale(u.getScale(),!0),d.compareTo(u)>=0)return r.mid(a,l);c=d}let f;for(let m=c.getScale();m>0;u=f){const g=m-1,y=c.setScale(g,!0);if(f=u.setScale(g,!1),y.compareTo(f)===0)return r.checkMid(a,l,y);if(y.compareTo(f)>0)break;m=g,c=y}let p=r.middleInternal(a,l,c,u),h;for(let m=p.getScale();m>0;m=h){h=m-1;const g=p.setScale(h);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],r.NUMERAL_SYSTEM);return new r(c,u)}static from(a,l){if(l.getSystem().getBase()!==r.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new r(a,l)}static middleInternal(a,l,c,u){const d=r.mid(c,u);return r.checkMid(a,l,d)}static checkMid(a,l,c){return a.compareTo(c)>=0||c.compareTo(l)>=0?r.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(r.NUMERAL_SYSTEM.getRadixPointChar());const d=r.NUMERAL_SYSTEM.toChar(0);for(u<0&&(u=l.length,c.append(r.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 r(this.bucket,r.INITIAL_MAX_DECIMAL);const a=this.decimal.floor();let c=t.LexoDecimal.from(a).subtract(r.EIGHT_DECIMAL);return c.compareTo(r.MIN_DECIMAL)<=0&&(c=r.between(r.MIN_DECIMAL,this.decimal)),new r(this.bucket,c)}genNext(){if(this.isMin())return new r(this.bucket,r.INITIAL_MIN_DECIMAL);const a=this.decimal.ceil();let c=t.LexoDecimal.from(a).add(r.EIGHT_DECIMAL);return c.compareTo(r.MAX_DECIMAL)>=0&&(c=r.between(this.decimal,r.MAX_DECIMAL)),new r(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 r(this.bucket,r.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 r(this.bucket,r.between(this.decimal,a.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return r.from(this.bucket.next(),this.decimal)}inPrevBucket(){return r.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(r.MIN_DECIMAL)}isMax(){return this.decimal.equals(r.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 ui.LexoRank=r,ui}(function(t){var e=gt&>.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=gt&>.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(kp(),t),n(Cp(),t),n(Yi,t),n(Vr,t)})(_p);(function(t){var e=gt&>.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=gt&>.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(_p,t),n(Vc,t)})(rt);const _i=60,Hy=8,md=_i*Hy;function Sa(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/md),r=Math.floor(t%md/_i);if(o>0&&r>0)return`${o}d ${r}h`;if(o>0)return`${o}d`;{const s=t%_i;return s>0?`${r}h ${s}m`:`${r}h`}}else{const o=Math.floor(t/_i),r=t%_i;return o>0&&r>0?`${o}h ${r}m`:o>0?`${o}h`:`${r}m`}}function wp(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 jy(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 Wy(t){return(t==null?void 0:t.reduce((e,n)=>{var r;const o=(r=n.milestones)!=null&&r.length?wp(n.milestones):0;return e+o},0))??0}function Zy(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function Xi(t,e){if(t.moved)return Ar(e,t.moved.newIndex)}function Ar(t,e){if(e===0)if(t.length>1){const n=t[e+1];return rt.LexoRank.parse(n.rank).genPrev().format()}else return rt.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return rt.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return rt.LexoRank.parse(o.rank).between(rt.LexoRank.parse(n.rank)).format()}}function Ta(t,e="dd/MM/yyyy"){if(!t)return"";const n=Li(t);return fp(n)?vp(n,e):""}function zc(t,e){return t.status.id===e.id}function Ky(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!zc(n,e))}function Gy(t,e){return{...t,status:Ky(t,e)?$i.done:$i.todo}}const Ep=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function Yy(t,e){const n=t.replace("#",""),o=parseInt(n.slice(0,2),16),r=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16);return`rgba(${o}, ${r}, ${s}, ${e})`}function Jy(t,e=.15){var n;if(t.startsWith("#"))return Yy(t,e);if(t.startsWith("rgba")){const o=(n=t.match(/rgba?\(([^)]+)\)/))==null?void 0:n[1].split(",").map(r=>r.trim());if(o&&o.length>=3){const[r,s,a]=o;return`rgba(${r}, ${s}, ${a}, ${e})`}}return t}function xp(t,e,n){const o=i.ref(""),r=i.ref(!1),s=i.ref({top:0,left:0}),a=i.computed(()=>n.value.filter(p=>p.firstName||p.lastName).map(p=>{const m=[p.firstName,p.lastName].filter(Boolean).join("_").replace(/\s+/g,"_");return{id:p.id,name:m}})),l=i.computed(()=>a.value.filter(p=>p.name.toLowerCase().includes(o.value.toLowerCase())));return{showMentionList:r,mentionListPosition:s,filteredUsers:l,mentionQuery:o,handleInput:p=>{const h=p.target,m=h.selectionStart,y=h.value.slice(0,m).match(/@(\w*)$/);y?(o.value=y[1],r.value=!0,i.nextTick(()=>{const{top:_,left:C}=Xy(h,m);s.value={top:_,left:C}})):r.value=!1},handleKeydown:p=>{p.key==="Escape"&&r.value&&(r.value=!1)},selectUserMention:p=>{const h=t.value;if(!h)return;const m=h.selectionStart,g=e.value,y=g.slice(0,m).replace(/@(\w*)$/,`@${p} `),_=g.slice(m);e.value=y+_,r.value=!1,i.nextTick(()=>{h.focus(),h.setSelectionRange(y.length,y.length)})},getMentionedUserIds:p=>{const h=Array.from(p.matchAll(/@([\p{L}\p{M}0-9-_]+)/gu)).map(m=>m[1]);return a.value.filter(m=>h.includes(m.name)).map(m=>m.id)}}}function Xy(t,e){const n=document.createElement("div"),o=document.createElement("span"),r=window.getComputedStyle(t),s=["boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","direction","letterSpacing","wordSpacing"];n.style.position="absolute",n.style.visibility="hidden",n.style.whiteSpace="pre-wrap",n.style.overflow="hidden",s.forEach(h=>{n.style[h]=r.getPropertyValue(h)}),n.style.width=r.getPropertyValue("width"),n.scrollTop=t.scrollTop,n.scrollLeft=t.scrollLeft;const a=t.value.substring(0,e),l=t.value.substring(e)||".";n.textContent=a,o.textContent=l[0],n.appendChild(o),document.body.appendChild(n);const c=o.getBoundingClientRect(),u=n.getBoundingClientRect(),d=t.getBoundingClientRect(),f=c.top-u.top+d.top-t.scrollTop,p=c.left-u.left+d.left-t.scrollLeft;return document.body.removeChild(n),{top:f+40,left:p}}const Qy=["title"],e_={key:0,className:"ao-avatar__initials"},t_=["src"],zn=i.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:ba.MD},color:{default:"primary"}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>[`ao-avatar--${n.color}`,...n.avatarUrl?["ao-avatar-img",`ao-avatar-img--${n.size}`]:["ao-avatar",`ao-avatar--${n.size}`]]),s=Zy(n.userName),a=l=>{o("close",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",{role:"img",class:i.normalizeClass(r.value),title:t.userName},[t.avatarUrl?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",e_,i.toDisplayString(i.unref(s)),1)),t.avatarUrl?(i.openBlock(),i.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,t_)):i.createCommentVNode("",!0),t.isClosable?(i.openBlock(),i.createBlock(he,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:t.color,corners:"round",onClick:i.withModifiers(a,["stop"])},null,8,["color"])):i.createCommentVNode("",!0)],10,Qy))}});const n_={class:"ao-card-template__subitems"},o_={class:"ao-card-template__subitem"},r_={class:"ao-card-template__subitem-number"},i_={class:"ao-card-template__subitem"},s_={class:"ao-card-template__subitem"},a_={class:"ao-card-template__body"},l_={class:"ao-card-template__col ao-card-template__col--phases"},c_={class:"ao-card-template__col-title"},u_={class:"ao-card-template__col-label"},d_={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},f_={class:"ao-card-template__footer"},p_={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},h_={class:"ao-card-template__col-title"},m_={class:"ao-card-template__col-label"},g_={class:"ao-card-template__col-body"},v_={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},y_={class:"ao-card-template__col-title"},__={class:"ao-card-template__col-label"},C_={class:"ao-card-template__col-body"},b_={class:"ao-card-template-item__secondary"},hl=5,k_=i.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(t,{emit:e}){const n=t,o=e,r=c=>{o("updateTitle",c)},s=(c,u)=>{o("deleteItem",c,u)},a=i.computed(()=>{var c;return((c=n.phases)==null?void 0:c.slice(0,hl))??[]}),l=i.computed(()=>n.phases&&n.phases.length>hl?n.phases.length-hl:0);return(c,u)=>(i.openBlock(),i.createBlock(rp,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":r},i.createSlots({subtitle:i.withCtx(()=>[i.createElementVNode("ul",n_,[i.createElementVNode("li",o_,[i.createVNode(Ae,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",r_,i.toDisplayString(t.milestones),1)]),i.createElementVNode("li",i_,[i.createVNode(Ae,{name:"TaskOutlineRounded",size:"sm"}),i.createElementVNode("span",s_,i.toDisplayString(t.activities),1)])])]),default:i.withCtx(()=>[i.createElementVNode("div",a_,[i.createElementVNode("div",l_,[i.createElementVNode("div",c_,[i.createVNode(Ae,{name:"WaterfallChartRounded",size:"sm"}),i.createElementVNode("span",u_,i.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(i.openBlock(),i.createElementBlock("ul",d_,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,d=>(i.openBlock(),i.createBlock(Bi,{key:d.id,label:d.name||d.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(i.openBlock(),i.createBlock(Bi,{key:0,label:`+${l.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])])]),secondary:i.withCtx(()=>[i.createElementVNode("div",b_,[i.createVNode(he,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:u[0]||(u[0]=i.withModifiers(d=>s(t.id,t.title),["stop"]))})])]),_:2},[t.updatedBy||t.updatedAt?{name:"footer",fn:i.withCtx(()=>[i.createElementVNode("div",f_,[t.updatedAt?(i.openBlock(),i.createElementBlock("div",p_,[i.createElementVNode("div",h_,[i.createElementVNode("span",m_,i.toDisplayString(c.$t("template.updatedAt.label")),1)]),i.createElementVNode("div",g_,[i.createElementVNode("span",null,i.toDisplayString(t.updatedAt),1)])])):i.createCommentVNode("",!0),t.updatedBy?(i.openBlock(),i.createElementBlock("div",v_,[i.createElementVNode("div",y_,[i.createElementVNode("span",__,i.toDisplayString(c.$t("template.updatedBy.label")),1)]),i.createElementVNode("div",C_,[i.createVNode(zn,{"user-name":t.updatedBy},null,8,["user-name"])])])):i.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const w_={class:"ao-page-header"},E_={class:"ao-page-header-main"},x_={key:0,class:"ao-page-header-secondary"},Qi=i.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",w_,[i.createElementVNode("div",E_,[t.canGoBack?(i.openBlock(),i.createBlock(he,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:n[0]||(n[0]=o=>e.$emit("goBack"))})):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(i.openBlock(),i.createElementBlock("div",x_,[i.renderSlot(e.$slots,"secondary")])):i.createCommentVNode("",!0)]))}});const S_=["type"],T_={key:0,class:"ao-button-card__label"},mo=i.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Rc.BLACK},size:{default:()=>ba.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>np.ROUNDED}},setup(t){const e=t,n=i.computed(()=>e.size),o=i.computed(()=>e.isLoading?"Loading":e.iconName);return(r,s)=>(i.openBlock(),i.createElementBlock("button",{type:t.type,class:i.normalizeClass(["ao-button-card",`ao-button-card--${t.color}`,`ao-button-card--${t.corners}`,r.$attrs.disabled?"ao-button-card--is-disabled":""])},[i.renderSlot(r.$slots,"default",{},()=>[t.label?(i.openBlock(),i.createElementBlock("span",T_,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(Ae,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,S_))}});const A_={class:"ao-card-template-item__footer"},N_={key:0,class:"ao-card-template-item__subitem"},D_={class:"ao-card-template-item__subitem-number"},M_={class:"ao-card-template-item__secondary"},Uc=i.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)},r=["milestones","activities","rules","tasks"],s={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},a=()=>{n("remove")};return(l,c)=>(i.openBlock(),i.createBlock(rp,{"onUpdate:title":o},{footer:i.withCtx(()=>[i.createElementVNode("ul",A_,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(r,u=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:u},[l.$props[u]?(i.openBlock(),i.createElementBlock("li",N_,[i.createVNode(Ae,{name:s[u],size:"sm"},null,8,["name"]),i.createElementVNode("span",D_,i.toDisplayString(l.$props[u]),1)])):i.createCommentVNode("",!0)],64))),64))])]),secondary:i.withCtx(()=>[i.createElementVNode("div",M_,[i.createVNode(he,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:i.withModifiers(a,["stop"])})])]),_:1}))}});const B_=i.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(t){const e=t,n=i.computed(()=>{var r;return(r=e.milestones)==null?void 0:r.length}),o=i.computed(()=>e.milestones?wp(e.milestones):0);return(r,s)=>(i.openBlock(),i.createBlock(Uc,i.mergeProps({id:t.id,title:t.name,activities:o.value,milestones:n.value},r.$attrs),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),$_=i.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(t){const e=t,n=i.computed(()=>{var o;return((o=e.activities)==null?void 0:o.length)||0});return(o,r)=>(i.openBlock(),i.createBlock(Uc,{activities:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),O_={class:"ao-list__footer"},L_=i.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(t,{emit:e}){const n=t,o=e,r=()=>{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=Xi(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.phase?(i.openBlock(),i.createBlock(i.unref(ho),{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:i.withCtx(()=>[i.createVNode(st,{title:"Milestones",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock($_,{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:i.withCtx(()=>[i.createElementVNode("div",O_,[i.createVNode(mo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),I_=i.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(t){const e=t,n=i.computed(()=>{var o;return((o=e.tasks)==null?void 0:o.length)||0});return(o,r)=>(i.openBlock(),i.createBlock(Uc,{tasks:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),P_={class:"ao-list__footer"},F_=i.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addActivity",{milestoneId:n.milestone.id})},s=c=>{o("updateActivity",{...c})},a=c=>{o("removeActivity",{id:c})},l=c=>{if(c.moved){const u=Xi(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.milestone?(i.openBlock(),i.createBlock(i.unref(ho),{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:i.withCtx(()=>[i.createVNode(st,{title:"Activities",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(I_,{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:i.withCtx(()=>[i.createElementVNode("div",P_,[i.createVNode(mo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),R_={class:"ao-modal"},V_={key:0,class:"ao-modal__header"},z_={class:"ao-modal__header-meta"},U_={class:"ao-modal__title-group"},q_={class:"ao-modal__body"},H_={key:1,class:"ao-modal__footer"},Aa=i.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`])},[i.createElementVNode("div",{class:"ao-modal__backdrop",onClick:n[0]||(n[0]=o=>e.$emit("close"))}),i.createElementVNode("div",R_,[e.$slots.header?(i.openBlock(),i.createElementBlock("div",V_,[i.createElementVNode("div",z_,[i.createVNode(he,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),i.createElementVNode("header",U_,[i.renderSlot(e.$slots,"header")])])):i.createCommentVNode("",!0),i.createElementVNode("div",q_,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",H_,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])],2))}});const Ii=Math.min,Ft=Math.max,Ys=Math.round,xs=Math.floor,lo=t=>({x:t,y:t}),j_={left:"right",right:"left",bottom:"top",top:"bottom"},W_={start:"end",end:"start"};function qc(t,e){return typeof t=="function"?t(e):t}function Nr(t){return t.split("-")[0]}function Na(t){return t.split("-")[1]}function Z_(t){return t==="x"?"y":"x"}function Sp(t){return t==="y"?"height":"width"}function Hc(t){return["top","bottom"].includes(Nr(t))?"y":"x"}function Tp(t){return Z_(Hc(t))}function K_(t,e,n){n===void 0&&(n=!1);const o=Na(t),r=Tp(t),s=Sp(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Js(a)),[a,Js(a)]}function G_(t){const e=Js(t);return[ec(t),e,ec(e)]}function ec(t){return t.replace(/start|end/g,e=>W_[e])}function Y_(t,e,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?s:a;default:return[]}}function J_(t,e,n,o){const r=Na(t);let s=Y_(Nr(t),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),e&&(s=s.concat(s.map(ec)))),s}function Js(t){return t.replace(/left|right|bottom|top/g,e=>j_[e])}function X_(t){return{top:0,right:0,bottom:0,left:0,...t}}function Q_(t){return typeof t!="number"?X_(t):{top:t,right:t,bottom:t,left:t}}function Xs(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function gd(t,e,n){let{reference:o,floating:r}=t;const s=Hc(e),a=Tp(e),l=Sp(a),c=Nr(e),u=s==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let h;switch(c){case"top":h={x:d,y:o.y-r.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(Na(e)){case"start":h[a]-=p*(n&&u?-1:1);break;case"end":h[a]+=p*(n&&u?-1:1);break}return h}const eC=async(t,e,n)=>{const{placement:o="bottom",strategy:r="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:r}),{x:d,y:f}=gd(u,o,c),p=o,h={},m=0;for(let g=0;g<l.length;g++){const{name:y,fn:_}=l[g],{x:C,y:v,data:w,reset:k}=await _({x:d,y:f,initialPlacement:o,placement:p,strategy:r,middlewareData:h,rects:u,platform:a,elements:{reference:t,floating:e}});if(d=C??d,f=v??f,h={...h,[y]:{...h[y],...w}},k&&m<=50){m++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(u=k.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:r}):k.rects),{x:d,y:f}=gd(u,p,c)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:r,middlewareData:h}};async function Ap(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:s,rects:a,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=qc(e,t),m=Q_(h),y=l[p?f==="floating"?"reference":"floating":f],_=Xs(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})),C=f==="floating"?{...a.floating,x:o,y:r}:a.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),w=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},k=Xs(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:C,offsetParent:v,strategy:c}):C);return{top:(_.top-k.top+m.top)/w.y,bottom:(k.bottom-_.bottom+m.bottom)/w.y,left:(_.left-k.left+m.left)/w.x,right:(k.right-_.right+m.right)/w.x}}const tC=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...y}=qc(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const _=Nr(r),C=Nr(l)===l,v=await(c.isRTL==null?void 0:c.isRTL(u.floating)),w=p||(C||!g?[Js(l)]:G_(l));!p&&m!=="none"&&w.push(...J_(l,g,m,v));const k=[l,...w],b=await Ap(e,y),E=[];let S=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&E.push(b[_]),f){const I=K_(r,a,v);E.push(b[I[0]],b[I[1]])}if(S=[...S,{placement:r,overflows:E}],!E.every(I=>I<=0)){var T,A;const I=(((T=s.flip)==null?void 0:T.index)||0)+1,U=k[I];if(U)return{data:{index:I,overflows:S},reset:{placement:U}};let $=(A=S.filter(H=>H.overflows[0]<=0).sort((H,L)=>H.overflows[1]-L.overflows[1])[0])==null?void 0:A.placement;if(!$)switch(h){case"bestFit":{var V;const H=(V=S.map(L=>[L.placement,L.overflows.filter(ee=>ee>0).reduce((ee,O)=>ee+O,0)]).sort((L,ee)=>L[1]-ee[1])[0])==null?void 0:V[0];H&&($=H);break}case"initialPlacement":$=l;break}if(r!==$)return{reset:{placement:$}}}return{}}}},nC=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:s}=e,{apply:a=()=>{},...l}=qc(t,e),c=await Ap(e,l),u=Nr(n),d=Na(n),f=Hc(n)==="y",{width:p,height:h}=o.floating;let m,g;u==="top"||u==="bottom"?(m=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,m=d==="end"?"top":"bottom");const y=h-c[m],_=p-c[g],C=!e.middlewareData.shift;let v=y,w=_;if(f){const b=p-c.left-c.right;w=d||C?Ii(_,b):b}else{const b=h-c.top-c.bottom;v=d||C?Ii(y,b):b}if(C&&!d){const b=Ft(c.left,0),E=Ft(c.right,0),S=Ft(c.top,0),T=Ft(c.bottom,0);f?w=p-2*(b!==0||E!==0?b+E:Ft(c.left,c.right)):v=h-2*(S!==0||T!==0?S+T:Ft(c.top,c.bottom))}await a({...e,availableWidth:w,availableHeight:v});const k=await r.getDimensions(s.floating);return p!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function co(t){return Np(t)?(t.nodeName||"").toLowerCase():"#document"}function Mt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Un(t){var e;return(e=(Np(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Np(t){return t instanceof Node||t instanceof Mt(t).Node}function Pn(t){return t instanceof Element||t instanceof Mt(t).Element}function gn(t){return t instanceof HTMLElement||t instanceof Mt(t).HTMLElement}function vd(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Mt(t).ShadowRoot}function es(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=zt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function oC(t){return["table","td","th"].includes(co(t))}function jc(t){const e=Wc(),n=zt(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 rC(t){let e=Dr(t);for(;gn(e)&&!Da(e);){if(jc(e))return e;e=Dr(e)}return null}function Wc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Da(t){return["html","body","#document"].includes(co(t))}function zt(t){return Mt(t).getComputedStyle(t)}function Ma(t){return Pn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dr(t){if(co(t)==="html")return t;const e=t.assignedSlot||t.parentNode||vd(t)&&t.host||Un(t);return vd(e)?e.host:e}function Dp(t){const e=Dr(t);return Da(e)?t.ownerDocument?t.ownerDocument.body:t.body:gn(e)&&es(e)?e:Dp(e)}function Pi(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Dp(t),s=r===((o=t.ownerDocument)==null?void 0:o.body),a=Mt(r);return s?e.concat(a,a.visualViewport||[],es(r)?r:[],a.frameElement&&n?Pi(a.frameElement):[]):e.concat(r,Pi(r))}function Mp(t){const e=zt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=gn(t),s=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=Ys(n)!==s||Ys(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function Zc(t){return Pn(t)?t:t.contextElement}function br(t){const e=Zc(t);if(!gn(e))return lo(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:s}=Mp(e);let a=(s?Ys(n.width):n.width)/o,l=(s?Ys(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const iC=lo(0);function Bp(t){const e=Mt(t);return!Wc()||!e.visualViewport?iC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function sC(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Mt(t)?!1:e}function zo(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=Zc(t);let a=lo(1);e&&(o?Pn(o)&&(a=br(o)):a=br(t));const l=sC(s,n,o)?Bp(s):lo(0);let c=(r.left+l.x)/a.x,u=(r.top+l.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(s){const p=Mt(s),h=o&&Pn(o)?Mt(o):o;let m=p.frameElement;for(;m&&o&&h!==p;){const g=br(m),y=m.getBoundingClientRect(),_=zt(m),C=y.left+(m.clientLeft+parseFloat(_.paddingLeft))*g.x,v=y.top+(m.clientTop+parseFloat(_.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,f*=g.y,c+=C,u+=v,m=Mt(m).frameElement}}return Xs({width:d,height:f,x:c,y:u})}function aC(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=gn(n),s=Un(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=lo(1);const c=lo(0);if((r||!r&&o!=="fixed")&&((co(n)!=="body"||es(s))&&(a=Ma(n)),gn(n))){const u=zo(n);l=br(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 lC(t){return Array.from(t.getClientRects())}function $p(t){return zo(Un(t)).left+Ma(t).scrollLeft}function cC(t){const e=Un(t),n=Ma(t),o=t.ownerDocument.body,r=Ft(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Ft(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+$p(t);const l=-n.scrollTop;return zt(o).direction==="rtl"&&(a+=Ft(e.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:l}}function uC(t,e){const n=Mt(t),o=Un(t),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;const u=Wc();(!u||u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l,y:c}}function dC(t,e){const n=zo(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,s=gn(t)?br(t):lo(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,c=r*s.x,u=o*s.y;return{width:a,height:l,x:c,y:u}}function yd(t,e,n){let o;if(e==="viewport")o=uC(t,n);else if(e==="document")o=cC(Un(t));else if(Pn(e))o=dC(e,n);else{const r=Bp(t);o={...e,x:e.x-r.x,y:e.y-r.y}}return Xs(o)}function Op(t,e){const n=Dr(t);return n===e||!Pn(n)||Da(n)?!1:zt(n).position==="fixed"||Op(n,e)}function fC(t,e){const n=e.get(t);if(n)return n;let o=Pi(t,[],!1).filter(l=>Pn(l)&&co(l)!=="body"),r=null;const s=zt(t).position==="fixed";let a=s?Dr(t):t;for(;Pn(a)&&!Da(a);){const l=zt(a),c=jc(a);!c&&l.position==="fixed"&&(r=null),(s?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||es(a)&&!c&&Op(t,a))?o=o.filter(d=>d!==a):r=l,a=Dr(a)}return e.set(t,o),o}function pC(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const a=[...n==="clippingAncestors"?fC(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((u,d)=>{const f=yd(e,d,r);return u.top=Ft(f.top,u.top),u.right=Ii(f.right,u.right),u.bottom=Ii(f.bottom,u.bottom),u.left=Ft(f.left,u.left),u},yd(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function hC(t){return Mp(t)}function mC(t,e,n){const o=gn(e),r=Un(e),s=n==="fixed",a=zo(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=lo(0);if(o||!o&&!s)if((co(e)!=="body"||es(r))&&(l=Ma(e)),o){const u=zo(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else r&&(c.x=$p(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function _d(t,e){return!gn(t)||zt(t).position==="fixed"?null:e?e(t):t.offsetParent}function Lp(t,e){const n=Mt(t);if(!gn(t))return n;let o=_d(t,e);for(;o&&oC(o)&&zt(o).position==="static";)o=_d(o,e);return o&&(co(o)==="html"||co(o)==="body"&&zt(o).position==="static"&&!jc(o))?n:o||rC(t)||n}const gC=async function(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||Lp,s=this.getDimensions;return{reference:mC(e,await r(n),o),floating:{x:0,y:0,...await s(n)}}};function vC(t){return zt(t).direction==="rtl"}const yC={convertOffsetParentRelativeRectToViewportRelativeRect:aC,getDocumentElement:Un,getClippingRect:pC,getOffsetParent:Lp,getElementRects:gC,getClientRects:lC,getDimensions:hC,getScale:br,isElement:Pn,isRTL:vC};function _C(t,e){let n=null,o;const r=Un(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 h=xs(d),m=xs(r.clientWidth-(u+f)),g=xs(r.clientHeight-(d+p)),y=xs(u),C={rootMargin:-h+"px "+-m+"px "+-g+"px "+-y+"px",threshold:Ft(0,Ii(1,c))||1};let v=!0;function w(k){const b=k[0].intersectionRatio;if(b!==c){if(!v)return a();b?a(!1,b):o=setTimeout(()=>{a(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(w,{...C,root:r.ownerDocument})}catch{n=new IntersectionObserver(w,C)}n.observe(t)}return a(!0),s}function CC(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=Zc(t),d=r||s?[...u?Pi(u):[],...Pi(e)]:[];d.forEach(_=>{r&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const f=u&&l?_C(u,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(_=>{let[C]=_;C&&C.target===u&&h&&(h.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(e)})),n()}),u&&!c&&h.observe(u),h.observe(e));let m,g=c?zo(t):null;c&&y();function y(){const _=zo(t);g&&(_.x!==g.x||_.y!==g.y||_.width!==g.width||_.height!==g.height)&&n(),g=_,m=requestAnimationFrame(y)}return n(),()=>{d.forEach(_=>{r&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),f&&f(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const bC=(t,e,n)=>{const o=new Map,r={platform:yC,...n},s={...r.platform,_c:o};return eC(t,e,{...r,platform:s})},kC=t=>{const e=i.ref(!1),n=i.ref(),o=i.ref(),r=i.ref(0);function s(){const f=i.unref(t.appendTo);return f?typeof f=="string"?document.getElementById(f)??document.body:f:document.getElementById("floatingElements")??document.body}const a=s(),l=i.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"),r.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 m=CC(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),m()}}function d(){!o.value||!n.value||bC(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[tC({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),nC({apply({availableWidth:f,availableHeight:p,elements:h,rects:m}){Object.assign(h.floating.style,{minHeight:`${r.value}px`,width:`${m.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`})})}i.onMounted(()=>{u()}),i.onBeforeUnmount(()=>{l.value()}),i.onUnmounted(()=>{l.value()})};function cn(t){return[null,void 0].indexOf(t)!==-1}function wC(t,e,n){const{object:o,valueProp:r,mode:s}=i.toRefs(t),a=i.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=d(f);const h=u(f);e.emit("change",h,a),p&&(e.emit("input",h),e.emit("update:modelValue",h))},u=f=>o.value||cn(f)?f:Array.isArray(f)?f.map(p=>p[r.value]):f[r.value],d=f=>cn(f)?s.value==="single"?{}:[]:f;return{update:c}}function EC(t,e){const{value:n,modelValue:o,mode:r,valueProp:s}=i.toRefs(t),a=i.ref(r.value!=="single"?[]:{}),l=i.computed(()=>o&&o.value!==void 0?o.value:n.value),c=i.computed(()=>r.value==="single"?a.value[s.value]:a.value.map(d=>d[s.value])),u=i.computed(()=>r.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 xC(t,e,n){const{regex:o}=i.toRefs(t),r=i.getCurrentInstance().proxy,s=n.isOpen,a=n.open,l=i.ref(null),c=()=>{l.value=""},u=p=>{l.value=p.target.value},d=p=>{if(o&&o.value){let h=o.value;typeof h=="string"&&(h=new RegExp(h)),p.key.match(h)||p.preventDefault()}},f=p=>{if(o&&o.value){let m=(p.clipboardData||window.clipboardData).getData("Text"),g=o.value;typeof g=="string"&&(g=new RegExp(g)),m.split("").every(y=>!!y.match(g))||p.preventDefault()}e.emit("paste",p,r)};return i.watch(l,p=>{!s.value&&p&&a(),e.emit("search-change",p,r)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function SC(t,e,n){const{groupSelect:o,mode:r,groups:s,disabledProp:a}=i.toRefs(t),l=i.ref(null),c=d=>{d===void 0||d!==null&&d[a.value]||s.value&&d&&d.group&&(r.value==="single"||!o.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function ml(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 TC(t){return Object.prototype.toString.call(t)==="[object Object]"}function AC(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,r){return o===n[r]})}function NC(t,e,n){const{options:o,mode:r,trackBy:s,limit:a,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:f,appendNewOption:p,multipleLabel:h,object:m,loading:g,delay:y,resolveOnLoad:_,minChars:C,filterResults:v,clearOnSearch:w,clearOnSelect:k,valueProp:b,allowAbsent:E,groupLabel:S,canDeselect:T,max:A,strict:V,closeOnSelect:I,closeOnDeselect:U,groups:$,reverse:H,infinite:L,groupOptions:ee,groupHideEmpty:O,groupSelect:D,onCreate:K,disabledProp:P,searchStart:q,searchFilter:ce}=i.toRefs(t),Q=i.getCurrentInstance().proxy,ie=n.iv,R=n.ev,te=n.search,B=n.clearSearch,G=n.update,ge=n.pointer,qe=n.setPointer,de=n.clearPointer,_e=n.focus,we=n.deactivate,ut=n.close,Ne=n.localize,dt=i.ref([]),Ct=i.ref([]),Pe=i.ref(!1),ft=i.ref(null),bt=i.ref(L.value&&a.value===-1?10:a.value),jn=i.computed(()=>c.value||u.value||!1),Co=i.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),Fe=i.computed(()=>{if($.value){let N=Ht.value||[],Y=[];return N.forEach(me=>{ti(me[ee.value]).forEach(De=>{Y.push(Object.assign({},De,me[P.value]?{[P.value]:!0}:{}))})}),Y}else{let N=ti(Ct.value||[]);return dt.value.length&&(N=N.concat(dt.value)),N}}),pt=i.computed(()=>{let N=Fe.value;return H.value&&(N=N.reverse()),wn.value.length&&(N=wn.value.concat(N)),ei(N)}),nt=i.computed(()=>{let N=pt.value;return bt.value>0&&(N=N.slice(0,bt.value)),N}),Ht=i.computed(()=>{if(!$.value)return[];let N=[],Y=Ct.value||[];return dt.value.length&&N.push({[S.value]:" ",[ee.value]:[...dt.value],__CREATE__:!0}),N.concat(Y)}),kn=i.computed(()=>{let N=[...Ht.value].map(Y=>({...Y}));return wn.value.length&&(N[0]&&N[0].__CREATE__?N[0][ee.value]=[...wn.value,...N[0][ee.value]]:N=[{[S.value]:" ",[ee.value]:[...wn.value],__CREATE__:!0}].concat(N)),N}),Wn=i.computed(()=>{if(!$.value)return[];let N=kn.value;return wo((N||[]).map((Y,me)=>{const De=ti(Y[ee.value]);return{...Y,index:me,group:!0,[ee.value]:ei(De,!1).map(En=>Object.assign({},En,Y[P.value]?{[P.value]:!0}:{})),__VISIBLE__:ei(De).map(En=>Object.assign({},En,Y[P.value]?{[P.value]:!0}:{}))}}))}),bo=i.computed(()=>{switch(r.value){case"single":return!cn(ie.value[b.value]);case"multiple":case"tags":return!cn(ie.value)&&ie.value.length>0}}),Zn=i.computed(()=>h!==void 0&&h.value!==void 0?h.value(ie.value,Q):ie.value&&ie.value.length>1?`${ie.value.length} options selected`:"1 option selected"),or=i.computed(()=>!Fe.value.length&&!Pe.value&&!wn.value.length),rr=i.computed(()=>Fe.value.length>0&&nt.value.length==0&&(te.value&&$.value||!$.value)),wn=i.computed(()=>jn.value===!1||!te.value?[]:gs(te.value)!==-1?[]:[{[b.value]:te.value,[an.value[0]]:te.value,[d.value]:te.value,__CREATE__:!0}]),an=i.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),ps=i.computed(()=>{switch(r.value){case"single":return null;case"multiple":case"tags":return[]}}),Yr=i.computed(()=>g.value||Pe.value),jt=N=>{switch(typeof N!="object"&&(N=St(N)),r.value){case"single":G(N);break;case"multiple":case"tags":G(ie.value.concat(N));break}e.emit("select",wt(N),N,Q)},kt=N=>{switch(typeof N!="object"&&(N=St(N)),r.value){case"single":Jr();break;case"tags":case"multiple":G(Array.isArray(N)?ie.value.filter(Y=>N.map(me=>me[b.value]).indexOf(Y[b.value])===-1):ie.value.filter(Y=>Y[b.value]!=N[b.value]));break}e.emit("deselect",wt(N),N,Q)},wt=N=>m.value?N:N[b.value],ir=N=>{kt(N)},hs=(N,Y)=>{if(Y.button!==0){Y.preventDefault();return}ir(N)},Jr=()=>{G(ps.value),e.emit("clear",Q)},Et=N=>{if(N.group!==void 0)return r.value==="single"?!1:ms(N[ee.value])&&N[ee.value].length;switch(r.value){case"single":return!cn(ie.value)&&ie.value[b.value]==N[b.value];case"tags":case"multiple":return!cn(ie.value)&&ie.value.map(Y=>Y[b.value]).indexOf(N[b.value])!==-1}},sr=N=>N[P.value]===!0,Kn=()=>A===void 0||A.value===-1||!bo.value&&A.value>0?!1:ie.value.length>=A.value,ar=N=>{if(!sr(N)){if(K&&K.value&&!Et(N)&&N.__CREATE__&&(N={...N},delete N.__CREATE__,N=K.value(N,Q),N instanceof Promise)){Pe.value=!0,N.then(Y=>{Pe.value=!1,xt(Y)});return}xt(N)}},xt=N=>{switch(N.__CREATE__&&(N={...N},delete N.__CREATE__),r.value){case"single":if(N&&Et(N)){T.value&&kt(N),U.value&&(de(),ut());return}N&&ko(N),k.value&&B(),I.value&&(de(),ut()),N&&jt(N);break;case"multiple":if(N&&Et(N)){kt(N),U.value&&(de(),ut());return}if(Kn()){e.emit("max",Q);return}N&&(ko(N),jt(N)),k.value&&B(),l.value&&de(),I.value&&ut();break;case"tags":if(N&&Et(N)){kt(N),U.value&&(de(),ut());return}if(Kn()){e.emit("max",Q);return}N&&ko(N),k.value&&B(),N&&jt(N),l.value&&de(),I.value&&ut();break}I.value||_e()},Gn=N=>{if(!(sr(N)||r.value==="single"||!D.value)){switch(r.value){case"multiple":case"tags":al(N[ee.value])?kt(N[ee.value]):jt(N[ee.value].filter(Y=>ie.value.map(me=>me[b.value]).indexOf(Y[b.value])===-1).filter(Y=>!Y[P.value]).filter((Y,me)=>ie.value.length+1+me<=A.value||A.value===-1)),l.value&&ge.value&&qe(Wn.value.filter(Y=>!Y[P.value])[ge.value.index]);break}I.value&&we()}},ko=N=>{St(N[b.value])===void 0&&jn.value&&(e.emit("tag",N[b.value],Q),e.emit("option",N[b.value],Q),e.emit("create",N[b.value],Q),Co.value&&ll(N),B())},Xr=()=>{r.value!=="single"&&jt(nt.value.filter(N=>!N.disabled&&!Et(N)))},al=N=>N.find(Y=>!Et(Y)&&!Y[P.value])===void 0,ms=N=>N.find(Y=>!Et(Y))===void 0,St=N=>Fe.value[Fe.value.map(Y=>String(Y[b.value])).indexOf(String(N))],gs=N=>Fe.value.findIndex(Y=>an.value.some(me=>(parseInt(Y[me])==Y[me]?parseInt(Y[me]):Y[me])===(parseInt(N)==N?parseInt(N):N))),Qr=N=>["tags","multiple"].indexOf(r.value)!==-1&&l.value&&Et(N),ll=N=>{dt.value.push(N)},wo=N=>O.value?N.filter(Y=>te.value?Y.__VISIBLE__.length:Y[ee.value].length):N.filter(Y=>te.value?Y.__VISIBLE__.length:!0),ei=(N,Y=!0)=>{let me=N;if(te.value&&v.value){let De=ce.value;De||(De=(En,Zt,ri)=>an.value.some(xn=>{let ys=ml(Ne(En[xn]),V.value);return q.value?ys.startsWith(ml(Zt,V.value)):ys.indexOf(ml(Zt,V.value))!==-1})),me=me.filter(En=>De(En,te.value,Q))}return l.value&&Y&&(me=me.filter(De=>!Qr(De))),me},ti=N=>{let Y=N;return TC(Y)&&(Y=Object.keys(Y).map(me=>{let De=Y[me];return{[b.value]:me,[an.value[0]]:De,[d.value]:De}})),Y=Y.map(me=>typeof me=="object"?me:{[b.value]:me,[an.value[0]]:me,[d.value]:me}),Y},Se=()=>{cn(R.value)||(ie.value=Yn(R.value))},Wt=N=>(Pe.value=!0,new Promise((Y,me)=>{o.value(te.value,Q).then(De=>{Ct.value=De||[],typeof N=="function"&&N(De),Pe.value=!1}).catch(De=>{console.error(De),Ct.value=[],Pe.value=!1}).finally(()=>{Y()})})),ni=()=>{if(bo.value)if(r.value==="single"){let N=St(ie.value[b.value]);if(N!==void 0){let Y=N[d.value];ie.value[d.value]=Y,m.value&&(R.value[d.value]=Y)}}else ie.value.forEach((N,Y)=>{let me=St(ie.value[Y][b.value]);if(me!==void 0){let De=me[d.value];ie.value[Y][d.value]=De,m.value&&(R.value[Y][d.value]=De)}})},vs=N=>{Wt(N)},Yn=N=>cn(N)?r.value==="single"?{}:[]:m.value?N:r.value==="single"?St(N)||(E.value?{[d.value]:N,[b.value]:N,[an.value[0]]:N}:{}):N.filter(Y=>!!St(Y)||E.value).map(Y=>St(Y)||{[d.value]:Y,[b.value]:Y,[an.value[0]]:Y}),oi=()=>{ft.value=i.watch(te,N=>{N.length<C.value||!N&&C.value!==0||(Pe.value=!0,w.value&&(Ct.value=[]),setTimeout(()=>{N==te.value&&o.value(te.value,Q).then(Y=>{(N==te.value||!te.value)&&(Ct.value=Y,ge.value=nt.value.filter(me=>me[P.value]!==!0)[0]||null,Pe.value=!1)}).catch(Y=>{console.error(Y)})},y.value))},{flush:"sync"})};if(r.value!=="single"&&!cn(R.value)&&!Array.isArray(R.value))throw new Error(`v-model must be an array when using "${r.value}" mode`);return o&&typeof o.value=="function"?_.value?Wt(Se):m.value==!0&&Se():(Ct.value=o.value,Se()),y.value>-1&&oi(),i.watch(y,(N,Y)=>{ft.value&&ft.value(),N>=0&&oi()}),i.watch(R,N=>{if(cn(N)){G(Yn(N),!1);return}switch(r.value){case"single":(m.value?N[b.value]!=ie.value[b.value]:N!=ie.value[b.value])&&G(Yn(N),!1);break;case"multiple":case"tags":AC(m.value?N.map(Y=>Y[b.value]):N,ie.value.map(Y=>Y[b.value]))||G(Yn(N),!1);break}},{deep:!0}),i.watch(o,(N,Y)=>{typeof t.options=="function"?_.value&&(!Y||N&&N.toString()!==Y.toString())&&Wt():(Ct.value=t.options,Object.keys(ie.value).length||Se(),ni())}),i.watch(d,ni),i.watch(a,(N,Y)=>{bt.value=L.value&&N===-1?10:N}),{pfo:pt,fo:nt,filteredOptions:nt,hasSelected:bo,multipleLabelText:Zn,eo:Fe,extendedOptions:Fe,eg:Ht,extendedGroups:Ht,fg:Wn,filteredGroups:Wn,noOptions:or,noResults:rr,resolving:Pe,busy:Yr,offset:bt,select:jt,deselect:kt,remove:ir,selectAll:Xr,clear:Jr,isSelected:Et,isDisabled:sr,isMax:Kn,getOption:St,handleOptionClick:ar,handleGroupClick:Gn,handleTagRemove:hs,refreshOptions:vs,resolveOptions:Wt,refreshLabels:ni}}function DC(t,e,n){const{valueProp:o,showOptions:r,searchable:s,groupLabel:a,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=i.toRefs(t),p=n.fo,h=n.fg,m=n.handleOptionClick,g=n.handleGroupClick,y=n.search,_=n.pointer,C=n.setPointer,v=n.clearPointer,w=n.multiselect,k=n.isOpen,b=i.computed(()=>p.value.filter(R=>!R[d.value])),E=i.computed(()=>h.value.filter(R=>!R[d.value])),S=i.computed(()=>c.value!=="single"&&u.value),T=i.computed(()=>_.value&&_.value.group),A=i.computed(()=>Q(_.value)),V=i.computed(()=>{const R=T.value?_.value:Q(_.value),te=E.value.map(G=>G[a.value]).indexOf(R[a.value]);let B=E.value[te-1];return B===void 0&&(B=U.value),B}),I=i.computed(()=>{let R=E.value.map(te=>te.label).indexOf(T.value?_.value[a.value]:Q(_.value)[a.value])+1;return E.value.length<=R&&(R=0),E.value[R]}),U=i.computed(()=>[...E.value].slice(-1)[0]),$=i.computed(()=>_.value.__VISIBLE__.filter(R=>!R[d.value])[0]),H=i.computed(()=>{const R=A.value.__VISIBLE__.filter(te=>!te[d.value]);return R[R.map(te=>te[o.value]).indexOf(_.value[o.value])-1]}),L=i.computed(()=>{const R=Q(_.value).__VISIBLE__.filter(te=>!te[d.value]);return R[R.map(te=>te[o.value]).indexOf(_.value[o.value])+1]}),ee=i.computed(()=>[...V.value.__VISIBLE__.filter(R=>!R[d.value])].slice(-1)[0]),O=i.computed(()=>[...U.value.__VISIBLE__.filter(R=>!R[d.value])].slice(-1)[0]),D=R=>_.value&&(!R.group&&_.value[o.value]===R[o.value]||R.group!==void 0&&_.value[a.value]===R[a.value])?!0:void 0,K=()=>{C(b.value[0]||null)},P=()=>{!_.value||_.value[d.value]===!0||(T.value?g(_.value):m(_.value))},q=()=>{if(_.value===null)C((l.value&&S.value?E.value[0].__CREATE__?b.value[0]:E.value[0]:b.value[0])||null);else if(l.value&&S.value){let R=T.value?$.value:L.value;R===void 0&&(R=I.value,R.__CREATE__&&(R=R[f.value][0])),C(R||null)}else{let R=b.value.map(te=>te[o.value]).indexOf(_.value[o.value])+1;b.value.length<=R&&(R=0),C(b.value[R]||null)}i.nextTick(()=>{ie()})},ce=()=>{if(_.value===null){let R=b.value[b.value.length-1];l.value&&S.value&&(R=O.value,R===void 0&&(R=U.value)),C(R||null)}else if(l.value&&S.value){let R=T.value?ee.value:H.value;R===void 0&&(R=T.value?V.value:A.value,R.__CREATE__&&(R=ee.value,R===void 0&&(R=V.value))),C(R||null)}else{let R=b.value.map(te=>te[o.value]).indexOf(_.value[o.value])-1;R<0&&(R=b.value.length-1),C(b.value[R]||null)}i.nextTick(()=>{ie()})},Q=R=>E.value.find(te=>te.__VISIBLE__.map(B=>B[o.value]).indexOf(R[o.value])!==-1),ie=()=>{let R=w.value.querySelector("[data-pointed]");if(!R)return;let te=R.parentElement.parentElement;l.value&&(te=T.value?R.parentElement.parentElement.parentElement:R.parentElement.parentElement.parentElement.parentElement),R.offsetTop+R.offsetHeight>te.clientHeight+te.scrollTop&&(te.scrollTop=R.offsetTop+R.offsetHeight-te.clientHeight),R.offsetTop<te.scrollTop&&(te.scrollTop=R.offsetTop)};return i.watch(y,R=>{s.value&&(R.length&&r.value?K():v())}),i.watch(k,R=>{if(R){let te=w.value.querySelectorAll("[data-selected]")[0];if(!te)return;let B=te.parentElement.parentElement;i.nextTick(()=>{B.scrollTop>0||(B.scrollTop=te.offsetTop)})}}),{pointer:_,canPointGroups:S,isPointed:D,setPointerFirst:K,selectPointer:P,forwardPointer:q,backwardPointer:ce}}function $t(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Uo(t){var e=$t(t).Element;return t instanceof e||t instanceof Element}function Vt(t){var e=$t(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Kc(t){if(typeof ShadowRoot>"u")return!1;var e=$t(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var Lo=Math.max,Qs=Math.min,Mr=Math.round;function tc(){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 Ip(){return!/^((?!chrome|android).)*safari/i.test(tc())}function Br(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),r=1,s=1;e&&Vt(t)&&(r=t.offsetWidth>0&&Mr(o.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Mr(o.height)/t.offsetHeight||1);var a=Uo(t)?$t(t):window,l=a.visualViewport,c=!Ip()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/r,d=(o.top+(c&&l?l.offsetTop:0))/s,f=o.width/r,p=o.height/s;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Gc(t){var e=$t(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function MC(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function BC(t){return t===$t(t)||!Vt(t)?Gc(t):MC(t)}function vn(t){return t?(t.nodeName||"").toLowerCase():null}function go(t){return((Uo(t)?t.ownerDocument:t.document)||window.document).documentElement}function Yc(t){return Br(go(t)).left+Gc(t).scrollLeft}function Fn(t){return $t(t).getComputedStyle(t)}function Jc(t){var e=Fn(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function $C(t){var e=t.getBoundingClientRect(),n=Mr(e.width)/t.offsetWidth||1,o=Mr(e.height)/t.offsetHeight||1;return n!==1||o!==1}function OC(t,e,n){n===void 0&&(n=!1);var o=Vt(e),r=Vt(e)&&$C(e),s=go(e),a=Br(t,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((vn(e)!=="body"||Jc(s))&&(l=BC(e)),Vt(e)?(c=Br(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=Yc(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Pp(t){var e=Br(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 Ba(t){return vn(t)==="html"?t:t.assignedSlot||t.parentNode||(Kc(t)?t.host:null)||go(t)}function Fp(t){return["html","body","#document"].indexOf(vn(t))>=0?t.ownerDocument.body:Vt(t)&&Jc(t)?t:Fp(Ba(t))}function Ei(t,e){var n;e===void 0&&(e=[]);var o=Fp(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),s=$t(o),a=r?[s].concat(s.visualViewport||[],Jc(o)?o:[]):o,l=e.concat(a);return r?l:l.concat(Ei(Ba(a)))}function LC(t){return["table","td","th"].indexOf(vn(t))>=0}function Cd(t){return!Vt(t)||Fn(t).position==="fixed"?null:t.offsetParent}function IC(t){var e=/firefox/i.test(tc()),n=/Trident/i.test(tc());if(n&&Vt(t)){var o=Fn(t);if(o.position==="fixed")return null}var r=Ba(t);for(Kc(r)&&(r=r.host);Vt(r)&&["html","body"].indexOf(vn(r))<0;){var s=Fn(r);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 r;r=r.parentNode}return null}function $a(t){for(var e=$t(t),n=Cd(t);n&&LC(n)&&Fn(n).position==="static";)n=Cd(n);return n&&(vn(n)==="html"||vn(n)==="body"&&Fn(n).position==="static")?e:n||IC(t)||e}var Jt="top",yn="bottom",uo="right",$n="left",Xc="auto",Oa=[Jt,yn,uo,$n],$r="start",Fi="end",PC="clippingParents",Rp="viewport",fi="popper",FC="reference",bd=Oa.reduce(function(t,e){return t.concat([e+"-"+$r,e+"-"+Fi])},[]),RC=[].concat(Oa,[Xc]).reduce(function(t,e){return t.concat([e,e+"-"+$r,e+"-"+Fi])},[]),VC="beforeRead",zC="read",UC="afterRead",qC="beforeMain",HC="main",jC="afterMain",WC="beforeWrite",ZC="write",KC="afterWrite",GC=[VC,zC,UC,qC,HC,jC,WC,ZC,KC];function YC(t){var e=new Map,n=new Set,o=[];t.forEach(function(s){e.set(s.name,s)});function r(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&&r(c)}}),o.push(s)}return t.forEach(function(s){n.has(s.name)||r(s)}),o}function JC(t){var e=YC(t);return GC.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function XC(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function QC(t){var e=t.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}function eb(t,e){var n=$t(t),o=go(t),r=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;var u=Ip();(u||!u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l+Yc(t),y:c}}function tb(t){var e,n=go(t),o=Gc(t),r=(e=t.ownerDocument)==null?void 0:e.body,s=Lo(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Lo(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Yc(t),c=-o.scrollTop;return Fn(r||n).direction==="rtl"&&(l+=Lo(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function nb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Kc(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function nc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ob(t,e){var n=Br(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 kd(t,e,n){return e===Rp?nc(eb(t,n)):Uo(e)?ob(e,n):nc(tb(go(t)))}function rb(t){var e=Ei(Ba(t)),n=["absolute","fixed"].indexOf(Fn(t).position)>=0,o=n&&Vt(t)?$a(t):t;return Uo(o)?e.filter(function(r){return Uo(r)&&nb(r,o)&&vn(r)!=="body"}):[]}function ib(t,e,n,o){var r=e==="clippingParents"?rb(t):[].concat(e),s=[].concat(r,[n]),a=s[0],l=s.reduce(function(c,u){var d=kd(t,u,o);return c.top=Lo(d.top,c.top),c.right=Qs(d.right,c.right),c.bottom=Qs(d.bottom,c.bottom),c.left=Lo(d.left,c.left),c},kd(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 io(t){return t.split("-")[0]}function Or(t){return t.split("-")[1]}function Vp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function zp(t){var e=t.reference,n=t.element,o=t.placement,r=o?io(o):null,s=o?Or(o):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(r){case Jt:c={x:a,y:e.y-n.height};break;case yn:c={x:a,y:e.y+e.height};break;case uo:c={x:e.x+e.width,y:l};break;case $n:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=r?Vp(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case $r:c[u]=c[u]-(e[d]/2-n[d]/2);break;case Fi:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function Up(){return{top:0,right:0,bottom:0,left:0}}function sb(t){return Object.assign({},Up(),t)}function ab(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function Qc(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=o===void 0?t.placement:o,s=n.strategy,a=s===void 0?t.strategy:s,l=n.boundary,c=l===void 0?PC:l,u=n.rootBoundary,d=u===void 0?Rp:u,f=n.elementContext,p=f===void 0?fi:f,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,y=g===void 0?0:g,_=sb(typeof y!="number"?y:ab(y,Oa)),C=p===fi?FC:fi,v=t.rects.popper,w=t.elements[m?C:p],k=ib(Uo(w)?w:w.contextElement||go(t.elements.popper),c,d,a),b=Br(t.elements.reference),E=zp({reference:b,element:v,strategy:"absolute",placement:r}),S=nc(Object.assign({},v,E)),T=p===fi?S:b,A={top:k.top-T.top+_.top,bottom:T.bottom-k.bottom+_.bottom,left:k.left-T.left+_.left,right:T.right-k.right+_.right},V=t.modifiersData.offset;if(p===fi&&V){var I=V[r];Object.keys(A).forEach(function(U){var $=[uo,yn].indexOf(U)>=0?1:-1,H=[Jt,yn].indexOf(U)>=0?"y":"x";A[U]+=I[H]*$})}return A}var wd={placement:"bottom",modifiers:[],strategy:"absolute"};function Ed(){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 lb(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,r=e.defaultOptions,s=r===void 0?wd:r;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},wd,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(_){var C=typeof _=="function"?_(d.options):_;g(),d.options=Object.assign({},s,d.options,C),d.scrollParents={reference:Uo(l)?Ei(l):l.contextElement?Ei(l.contextElement):[],popper:Ei(c)};var v=JC(QC([].concat(o,d.options.modifiers)));return d.orderedModifiers=v.filter(function(w){return w.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var _=d.elements,C=_.reference,v=_.popper;if(Ed(C,v)){d.rects={reference:OC(C,$a(v),d.options.strategy==="fixed"),popper:Pp(v)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(A){return d.modifiersData[A.name]=Object.assign({},A.data)});for(var w=0;w<d.orderedModifiers.length;w++){if(d.reset===!0){d.reset=!1,w=-1;continue}var k=d.orderedModifiers[w],b=k.fn,E=k.options,S=E===void 0?{}:E,T=k.name;typeof b=="function"&&(d=b({state:d,options:S,name:T,instance:h})||d)}}}},update:XC(function(){return new Promise(function(y){h.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!Ed(l,c))return h;h.setOptions(u).then(function(y){!p&&u.onFirstUpdate&&u.onFirstUpdate(y)});function m(){d.orderedModifiers.forEach(function(y){var _=y.name,C=y.options,v=C===void 0?{}:C,w=y.effect;if(typeof w=="function"){var k=w({state:d,name:_,instance:h,options:v}),b=function(){};f.push(k||b)}})}function g(){f.forEach(function(y){return y()}),f=[]}return h}}var Ss={passive:!0};function cb(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,s=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,c=$t(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ss)}),l&&c.addEventListener("resize",n.update,Ss),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ss)}),l&&c.removeEventListener("resize",n.update,Ss)}}var ub={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cb,data:{}};function db(t){var e=t.state,n=t.name;e.modifiersData[n]=zp({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var fb={name:"popperOffsets",enabled:!0,phase:"read",fn:db,data:{}},pb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hb(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:Mr(n*r)/r||0,y:Mr(o*r)/r||0}}function xd(t){var e,n=t.popper,o=t.popperRect,r=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,h=p===void 0?0:p,m=a.y,g=m===void 0?0:m,y=typeof d=="function"?d({x:h,y:g}):{x:h,y:g};h=y.x,g=y.y;var _=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),v=$n,w=Jt,k=window;if(u){var b=$a(n),E="clientHeight",S="clientWidth";if(b===$t(n)&&(b=go(n),Fn(b).position!=="static"&&l==="absolute"&&(E="scrollHeight",S="scrollWidth")),b=b,r===Jt||(r===$n||r===uo)&&s===Fi){w=yn;var T=f&&b===k&&k.visualViewport?k.visualViewport.height:b[E];g-=T-o.height,g*=c?1:-1}if(r===$n||(r===Jt||r===yn)&&s===Fi){v=uo;var A=f&&b===k&&k.visualViewport?k.visualViewport.width:b[S];h-=A-o.width,h*=c?1:-1}}var V=Object.assign({position:l},u&&pb),I=d===!0?hb({x:h,y:g},$t(n)):{x:h,y:g};if(h=I.x,g=I.y,c){var U;return Object.assign({},V,(U={},U[w]=C?"0":"",U[v]=_?"0":"",U.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",U))}return Object.assign({},V,(e={},e[w]=C?g+"px":"",e[v]=_?h+"px":"",e.transform="",e))}function mb(t){var e=t.state,n=t.options,o=n.gpuAcceleration,r=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:io(e.placement),variation:Or(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,xd(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,xd(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 gb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mb,data:{}};function vb(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},r=e.attributes[n]||{},s=e.elements[n];!Vt(s)||!vn(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function yb(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 r=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},{});!Vt(r)||!vn(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}var _b={name:"applyStyles",enabled:!0,phase:"write",fn:vb,effect:yb,requires:["computeStyles"]},Cb=[ub,fb,gb,_b],bb=lb({defaultModifiers:Cb});function kb(t){return t==="x"?"y":"x"}function zs(t,e,n){return Lo(t,Qs(e,n))}function wb(t,e,n){var o=zs(t,e,n);return o>n?n:o}function Eb(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,g=m===void 0?0:m,y=Qc(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),_=io(e.placement),C=Or(e.placement),v=!C,w=Vp(_),k=kb(w),b=e.modifiersData.popperOffsets,E=e.rects.reference,S=e.rects.popper,T=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,A=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),V=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(b){if(s){var U,$=w==="y"?Jt:$n,H=w==="y"?yn:uo,L=w==="y"?"height":"width",ee=b[w],O=ee+y[$],D=ee-y[H],K=h?-S[L]/2:0,P=C===$r?E[L]:S[L],q=C===$r?-S[L]:-E[L],ce=e.elements.arrow,Q=h&&ce?Pp(ce):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Up(),R=ie[$],te=ie[H],B=zs(0,E[L],Q[L]),G=v?E[L]/2-K-B-R-A.mainAxis:P-B-R-A.mainAxis,ge=v?-E[L]/2+K+B+te+A.mainAxis:q+B+te+A.mainAxis,qe=e.elements.arrow&&$a(e.elements.arrow),de=qe?w==="y"?qe.clientTop||0:qe.clientLeft||0:0,_e=(U=V==null?void 0:V[w])!=null?U:0,we=ee+G-_e-de,ut=ee+ge-_e,Ne=zs(h?Qs(O,we):O,ee,h?Lo(D,ut):D);b[w]=Ne,I[w]=Ne-ee}if(l){var dt,Ct=w==="x"?Jt:$n,Pe=w==="x"?yn:uo,ft=b[k],bt=k==="y"?"height":"width",jn=ft+y[Ct],Co=ft-y[Pe],Fe=[Jt,$n].indexOf(_)!==-1,pt=(dt=V==null?void 0:V[k])!=null?dt:0,nt=Fe?jn:ft-E[bt]-S[bt]-pt+A.altAxis,Ht=Fe?ft+E[bt]+S[bt]-pt-A.altAxis:Co,kn=h&&Fe?wb(nt,ft,Ht):zs(h?nt:jn,ft,h?Ht:Co);b[k]=kn,I[k]=kn-ft}e.modifiersData[o]=I}}var xb={name:"preventOverflow",enabled:!0,phase:"main",fn:Eb,requiresIfExists:["offset"]},Sb={left:"right",right:"left",bottom:"top",top:"bottom"};function Us(t){return t.replace(/left|right|bottom|top/g,function(e){return Sb[e]})}var Tb={start:"end",end:"start"};function Sd(t){return t.replace(/start|end/g,function(e){return Tb[e]})}function Ab(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?RC:c,d=Or(o),f=d?l?bd:bd.filter(function(m){return Or(m)===d}):Oa,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var h=p.reduce(function(m,g){return m[g]=Qc(t,{placement:g,boundary:r,rootBoundary:s,padding:a})[io(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function Nb(t){if(io(t)===Xc)return[];var e=Us(t);return[Sd(t),e,Sd(e)]}function Db(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,g=n.allowedAutoPlacements,y=e.options.placement,_=io(y),C=_===y,v=c||(C||!m?[Us(y)]:Nb(y)),w=[y].concat(v).reduce(function(Q,ie){return Q.concat(io(ie)===Xc?Ab(e,{placement:ie,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):ie)},[]),k=e.rects.reference,b=e.rects.popper,E=new Map,S=!0,T=w[0],A=0;A<w.length;A++){var V=w[A],I=io(V),U=Or(V)===$r,$=[Jt,yn].indexOf(I)>=0,H=$?"width":"height",L=Qc(e,{placement:V,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),ee=$?U?uo:$n:U?yn:Jt;k[H]>b[H]&&(ee=Us(ee));var O=Us(ee),D=[];if(s&&D.push(L[I]<=0),l&&D.push(L[ee]<=0,L[O]<=0),D.every(function(Q){return Q})){T=V,S=!1;break}E.set(V,D)}if(S)for(var K=m?3:1,P=function(ie){var R=w.find(function(te){var B=E.get(te);if(B)return B.slice(0,ie).every(function(G){return G})});if(R)return T=R,"break"},q=K;q>0;q--){var ce=P(q);if(ce==="break")break}e.placement!==T&&(e.modifiersData[o]._skip=!0,e.placement=T,e.reset=!0)}}var Mb={name:"flip",enabled:!0,phase:"main",fn:Db,requiresIfExists:["offset"],data:{_skip:!1}};function Bb(t,e,n){const{disabled:o,appendTo:r,appendToBody:s,openDirection:a}=i.toRefs(t),l=i.getCurrentInstance().proxy,c=n.multiselect,u=n.dropdown,d=i.ref(!1),f=i.ref(null),p=i.ref(null),h=i.computed(()=>r.value||s.value),m=i.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),h.value&&i.nextTick(()=>{_()}))},y=()=>{d.value&&(d.value=!1,e.emit("close",l))},_=()=>{if(!f.value)return;let v=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),w=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(k=>({...k,modifiers:[...k.modifiers,{name:"offset",options:{offset:[0,(m.value==="top"?v:w)*-1]}}]})),f.value.update()},C=v=>{for(;v&&v!==document.body;){if(getComputedStyle(v).position==="fixed")return!0;v=v.parentElement}return!1};return i.onMounted(()=>{h.value&&(f.value=bb(c.value,u.value,{strategy:C(c.value)?"fixed":void 0,placement:a.value,modifiers:[xb,Mb,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:v})=>{v.styles.popper.width=`${v.rects.reference.width}px`},effect:({state:v})=>{v.elements.popper.style.width=`${v.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:v}){p.value=v.placement}}]}))}),i.onBeforeUnmount(()=>{!h.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:g,close:y,placement:m,updatePopper:_}}function $b(t,e,n){const{searchable:o,disabled:r,clearOnBlur:s}=i.toRefs(t),a=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,f=n.wrapper,p=n.tags,h=i.ref(!1),m=i.ref(!1),g=i.computed(()=>o.value||r.value?-1:0),y=()=>{o.value&&a.value.blur(),f.value.blur()},_=()=>{o.value&&!r.value&&a.value.focus()},C=(S=!0)=>{r.value||(h.value=!0,S&&l())},v=()=>{h.value=!1,setTimeout(()=>{h.value||(c(),s.value&&u())},1)};return{tabindex:g,isActive:h,mouseClicked:m,blur:y,focus:_,activate:C,deactivate:v,handleFocusIn:S=>{S.target.closest("[data-tags]")&&S.target.nodeName!=="INPUT"||S.target.closest("[data-clear]")||C(m.value)},handleFocusOut:()=>{v()},handleCaretClick:()=>{v(),y()},handleMousedown:S=>{m.value=!0,d.value&&(S.target.isEqualNode(f.value)||S.target.isEqualNode(p.value))?setTimeout(()=>{v()},0):!d.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(a.value))&&C(),setTimeout(()=>{m.value=!1},0)}}}function Ob(t,e,n){const{mode:o,addTagOn:r,openDirection:s,searchable:a,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:h}=i.toRefs(t),m=i.getCurrentInstance().proxy,g=n.iv,y=n.update,_=n.deselect,C=n.search,v=n.setPointer,w=n.selectPointer,k=n.backwardPointer,b=n.forwardPointer,E=n.multiselect,S=n.wrapper,T=n.tags,A=n.isOpen,V=n.open,I=n.blur,U=n.fo,$=i.computed(()=>f.value||p.value||!1),H=i.computed(()=>r.value!==void 0?r.value:d.value!==void 0?d.value:["enter"]),L=()=>{o.value==="tags"&&!l.value&&$.value&&a.value&&!u.value&&v(U.value[U.value.map(D=>D[c.value]).indexOf(C.value)])};return{handleKeydown:D=>{e.emit("keydown",D,m);let K,P;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(D.key)!==-1&&o.value==="tags"&&(K=[...E.value.querySelectorAll("[data-tags] > *")].filter(q=>q!==T.value),P=K.findIndex(q=>q===document.activeElement)),D.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(C.value)===-1||g.value.length===0)return;let q=g.value.filter(ce=>!ce.disabled&&ce.remove!==!1);q.length&&_(q[q.length-1]);break;case"Enter":if(D.preventDefault(),D.keyCode===229)return;if(P!==-1&&P!==void 0){y([...g.value].filter((ce,Q)=>Q!==P)),P===K.length-1&&(K.length-1?K[K.length-2].focus():a.value?T.value.querySelector("input").focus():S.value.focus());return}if(H.value.indexOf("enter")===-1&&$.value)return;L(),w();break;case" ":if(!$.value&&!a.value){D.preventDefault(),L(),w();return}if(!$.value)return!1;if(H.value.indexOf("space")===-1&&$.value)return;D.preventDefault(),L(),w();break;case"Tab":case";":case",":if(H.value.indexOf(D.key.toLowerCase())===-1||!$.value)return;L(),w(),D.preventDefault();break;case"Escape":I();break;case"ArrowUp":if(D.preventDefault(),!l.value)return;A.value||V(),k();break;case"ArrowDown":if(D.preventDefault(),!l.value)return;A.value||V(),b();break;case"ArrowLeft":if(a.value&&T.value&&T.value.querySelector("input").selectionStart||D.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;D.preventDefault(),P===-1?K[K.length-1].focus():P>0&&K[P-1].focus();break;case"ArrowRight":if(P===-1||D.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;D.preventDefault(),K.length>P+1?K[P+1].focus():a.value?T.value.querySelector("input").focus():a.value||S.value.focus();break}},handleKeyup:D=>{e.emit("keyup",D,m)},preparePointer:L}}function Lb(t,e,n){const{classes:o,disabled:r,showOptions:s,breakTags:a}=i.toRefs(t),l=n.isOpen,c=n.isPointed,u=n.isSelected,d=n.isDisabled,f=n.isActive,p=n.canPointGroups,h=n.resolving,m=n.fo,g=n.placement,y=i.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})),_=i.computed(()=>!!(l.value&&s.value&&(!h.value||h.value&&m.value.length)));return{classList:i.computed(()=>{const v=y.value;return{container:[v.container].concat(r.value?v.containerDisabled:[]).concat(_.value&&g.value==="top"?v.containerOpenTop:[]).concat(_.value&&g.value!=="top"?v.containerOpen:[]).concat(f.value?v.containerActive:[]),wrapper:v.wrapper,spacer:v.spacer,singleLabel:v.singleLabel,singleLabelText:v.singleLabelText,multipleLabel:v.multipleLabel,search:v.search,tags:v.tags,tag:[v.tag].concat(r.value?v.tagDisabled:[]),tagWrapper:[v.tagWrapper,a.value?v.tagWrapperBreak:null],tagDisabled:v.tagDisabled,tagRemove:v.tagRemove,tagRemoveIcon:v.tagRemoveIcon,tagsSearchWrapper:v.tagsSearchWrapper,tagsSearch:v.tagsSearch,tagsSearchCopy:v.tagsSearchCopy,placeholder:v.placeholder,caret:[v.caret].concat(l.value?v.caretOpen:[]),clear:v.clear,clearIcon:v.clearIcon,spinner:v.spinner,inifinite:v.inifinite,inifiniteSpinner:v.inifiniteSpinner,dropdown:[v.dropdown].concat(g.value==="top"?v.dropdownTop:[]).concat(!l.value||!s.value||!_.value?v.dropdownHidden:[]),options:[v.options].concat(g.value==="top"?v.optionsTop:[]),group:v.group,groupLabel:w=>{let k=[v.groupLabel];return c(w)?k.push(u(w)?v.groupLabelSelectedPointed:v.groupLabelPointed):u(w)&&p.value?k.push(d(w)?v.groupLabelSelectedDisabled:v.groupLabelSelected):d(w)&&k.push(v.groupLabelDisabled),p.value&&k.push(v.groupLabelPointable),k},groupOptions:v.groupOptions,option:(w,k)=>{let b=[v.option];return c(w)?b.push(u(w)?v.optionSelectedPointed:v.optionPointed):u(w)?b.push(d(w)?v.optionSelectedDisabled:v.optionSelected):(d(w)||k&&d(k))&&b.push(v.optionDisabled),b},noOptions:v.noOptions,noResults:v.noResults,assist:v.assist,fakeInput:v.fakeInput}}),showDropdown:_}}function Ib(t,e,n){const{limit:o,infinite:r}=i.toRefs(t),s=n.isOpen,a=n.offset,l=n.search,c=n.pfo,u=n.eo,d=i.ref(null),f=i.ref(null),p=i.computed(()=>a.value<c.value.length),h=g=>{const{isIntersecting:y,target:_}=g[0];if(y){const C=_.offsetParent,v=C.scrollTop;a.value+=o.value==-1?10:o.value,i.nextTick(()=>{C.scrollTop=v})}},m=()=>{s.value&&a.value<c.value.length?d.value.observe(f.value):!s.value&&d.value&&d.value.disconnect()};return i.watch(s,()=>{r.value&&m()}),i.watch(l,()=>{r.value&&(a.value=o.value,m())},{flush:"post"}),i.watch(u,()=>{r.value&&m()},{immediate:!1,flush:"post"}),i.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(h))}),{hasMore:p,infiniteLoader:f}}function Pb(t,e,n){const{placeholder:o,id:r,valueProp:s,label:a,mode:l,groupLabel:c,aria:u,searchable:d}=i.toRefs(t),f=n.pointer,p=n.iv,h=n.hasSelected,m=n.multipleLabelText,g=i.ref(null),y=i.computed(()=>{let I=[];return r&&r.value&&I.push(r.value),I.push("assist"),I.join("-")}),_=i.computed(()=>{let I=[];return r&&r.value&&I.push(r.value),I.push("multiselect-options"),I.join("-")}),C=i.computed(()=>{let I=[];if(r&&r.value&&I.push(r.value),f.value)return I.push(f.value.group?"multiselect-group":"multiselect-option"),I.push(f.value.group?f.value.index:f.value[s.value]),I.join("-")}),v=i.computed(()=>o.value),w=i.computed(()=>l.value!=="single"),k=i.computed(()=>{let I="";return l.value==="single"&&h.value&&(I+=p.value[a.value]),l.value==="multiple"&&h.value&&(I+=m.value),l.value==="tags"&&h.value&&(I+=p.value.map(U=>U[a.value]).join(", ")),I}),b=i.computed(()=>{let I={...u.value};return d.value&&(I["aria-labelledby"]=I["aria-labelledby"]?`${y.value} ${I["aria-labelledby"]}`:y.value,k.value&&I["aria-label"]&&(I["aria-label"]=`${k.value}, ${I["aria-label"]}`)),I}),E=I=>{let U=[];return r&&r.value&&U.push(r.value),U.push("multiselect-option"),U.push(I[s.value]),U.join("-")},S=I=>{let U=[];return r&&r.value&&U.push(r.value),U.push("multiselect-group"),U.push(I.index),U.join("-")},T=I=>{let U=[];return U.push(I),U.join(" ")},A=I=>{let U=[];return U.push(I),U.join(" ")},V=I=>`${I} ❎`;return i.onMounted(()=>{if(r&&r.value&&document&&document.querySelector){let I=document.querySelector(`[for="${r.value}"]`);g.value=I?I.innerText:null}}),{arias:b,ariaLabel:k,ariaAssist:y,ariaControls:_,ariaPlaceholder:v,ariaMultiselectable:w,ariaActiveDescendant:C,ariaOptionId:E,ariaOptionLabel:T,ariaGroupId:S,ariaGroupLabel:A,ariaTagLabel:V}}function Fb(t,e,n){const{locale:o,fallbackLocale:r}=i.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[r.value]?a[r.value]:a&&r.value&&a[r.value.toUpperCase()]?a[r.value.toUpperCase()]:a&&Object.keys(a)[0]?a[Object.keys(a)[0]]:""}}function Rb(t,e,n){const o=i.ref(null),r=i.ref(null),s=i.ref(null),a=i.ref(null),l=i.ref(null);return{multiselect:o,wrapper:r,tags:s,input:a,dropdown:l}}function Vb(t,e,n,o={}){return n.forEach(r=>{r&&(o={...o,...r(t,e,o)})}),o}var eo={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 Vb(t,e,[Rb,Fb,EC,SC,Bb,xC,wC,$b,NC,Ib,DC,Ob,Lb,Pb])},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 zb=["id","dir"],Ub=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],qb=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Hb=["onKeyup","aria-label"],jb=["onClick"],Wb=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Zb=["innerHTML"],Kb=["id"],Gb=["id"],Yb=["id","aria-label","aria-selected"],Jb=["data-pointed","onMouseenter","onMousedown"],Xb=["innerHTML"],Qb=["aria-label"],e9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],t9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],n9=["innerHTML"],o9=["innerHTML"],r9=["value"],i9=["name","value"],s9=["name","value"],a9=["id"];function l9(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",{ref:"multiselect",class:i.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))},[i.createElementVNode("div",i.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),[i.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.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]=i.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,qb)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(t.classList.tags),"data-tags":""},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.iv,(a,l,c)=>i.renderSlot(t.$slots,"tag",{option:a,handleTagRemove:t.handleTagRemove,disabled:n.disabled},()=>[(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass([t.classList.tag,a.disabled?t.classList.tagDisabled:null]),tabindex:"-1",onKeyup:i.withKeys(u=>t.handleTagRemove(a,u),["enter"]),key:c,"aria-label":t.ariaTagLabel(t.localize(a[n.label]))},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagWrapper)},i.toDisplayString(t.localize(a[n.label])),3),!n.disabled&&!a.disabled?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(t.classList.tagRemove),onClick:i.withModifiers(u=>t.handleTagRemove(a,u),["stop"])},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,jb)):i.createCommentVNode("v-if",!0)],42,Hb))])),256)),i.createElementVNode("div",{class:i.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[i.createCommentVNode(" Used for measuring search width "),i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagsSearchCopy)},i.toDisplayString(t.search),3),i.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.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]=i.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,Wb)):i.createCommentVNode("v-if",!0)],2)],2)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Single label "),n.mode=="single"&&t.hasSelected&&!t.search&&t.iv?i.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.singleLabel)},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.singleLabelText)},i.toDisplayString(t.localize(t.iv[n.label])),3)],2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Multiple label "),n.mode=="multiple"&&t.hasSelected&&!t.search?i.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,Zb)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Placeholder "),n.placeholder&&!t.hasSelected&&!t.search?i.renderSlot(t.$slots,"placeholder",{key:4},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},i.toDisplayString(n.placeholder),3)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Spinner "),n.loading||t.resolving?i.renderSlot(t.$slots,"spinner",{key:5},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Clear "),t.hasSelected&&!n.disabled&&n.canClear&&!t.busy?i.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},()=>[i.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:i.normalizeClass(t.classList.clear),onClick:e[6]||(e[6]=(...a)=>t.clear&&t.clear(...a)),onKeyup:e[7]||(e[7]=i.withKeys((...a)=>t.clear&&t.clear(...a),["enter"]))},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.clearIcon)},null,2)],34)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Caret "),n.caret&&n.showOptions?i.renderSlot(t.$slots,"caret",{key:7,handleCaretClick:t.handleCaretClick,isOpen:t.isOpen},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.caret),onClick:e[8]||(e[8]=(...a)=>t.handleCaretClick&&t.handleCaretClick(...a)),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0)],16,Ub),i.createCommentVNode(" Options "),(i.openBlock(),i.createBlock(i.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[i.createElementVNode("div",{id:`${n.id}-dropdown`,class:i.normalizeClass(t.classList.dropdown),tabindex:"-1",ref:"dropdown"},[i.renderSlot(t.$slots,"beforelist",{options:t.fo}),i.createElementVNode("ul",{class:i.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[n.groups?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(t.fg,(a,l,c)=>(i.openBlock(),i.createElementBlock("li",{class:i.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__?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(t.classList.groupLabel(a)),"data-pointed":t.isPointed(a),onMouseenter:u=>t.setPointer(a,l),onMousedown:i.withModifiers(u=>t.handleGroupClick(a),["prevent"])},[i.renderSlot(t.$slots,"grouplabel",{group:a,isSelected:t.isSelected,isPointed:t.isPointed},()=>[i.createElementVNode("span",{innerHTML:t.localize(a[n.groupLabel])},null,8,Xb)])],42,Jb)),i.createElementVNode("ul",{class:i.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),role:"group"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.__VISIBLE__,(u,d,f)=>(i.openBlock(),i.createElementBlock("li",{class:i.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:i.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"},[i.renderSlot(t.$slots,"option",{option:u,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[i.createElementVNode("span",null,i.toDisplayString(t.localize(u[n.label])),1)])],42,e9))),128))],10,Qb)],10,Yb))),128)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.fo,(a,l,c)=>(i.openBlock(),i.createElementBlock("li",{class:i.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:i.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"},[i.renderSlot(t.$slots,"option",{option:a,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[i.createElementVNode("span",null,i.toDisplayString(t.localize(a[n.label])),1)])],42,t9))),128))],10,Gb),t.noOptions?i.renderSlot(t.$slots,"nooptions",{key:0},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.noOptions),innerHTML:t.localize(n.noOptionsText)},null,10,n9)]):i.createCommentVNode("v-if",!0),t.noResults?i.renderSlot(t.$slots,"noresults",{key:1},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.noResults),innerHTML:t.localize(n.noResultsText)},null,10,o9)]):i.createCommentVNode("v-if",!0),n.infinite&&t.hasMore?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[i.renderSlot(t.$slots,"infinite",{},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.inifiniteSpinner)},null,2)])],2)):i.createCommentVNode("v-if",!0),i.renderSlot(t.$slots,"afterlist",{options:t.fo})],10,Kb)],8,["to","disabled"])),i.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(i.openBlock(),i.createElementBlock("input",{key:0,class:i.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,r9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Native input support "),n.nativeSupport?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[n.mode=="single"?(i.openBlock(),i.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:t.plainValue!==void 0?t.plainValue:""},null,8,i9)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.plainValue,(a,l)=>(i.openBlock(),i.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:a,key:l},null,8,s9))),128))],64)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Screen reader assistive text "),n.searchable&&t.hasSelected?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},i.toDisplayString(t.ariaLabel),11,a9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(t.classList.spacer)},null,2)],42,zb)}eo.render=l9;eo.__file="src/Multiselect.vue";const Nt=i.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(t){const e=t,n=i.toRef(()=>e.appendTo),o=i.ref();return e.detached&&kC({multiselect:o,appendTo:n.value}),(r,s)=>(i.openBlock(),i.createBlock(i.unref(eo),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect"},i.createSlots({_:2},[i.renderList(r.$slots,(a,l)=>({name:l,fn:i.withCtx(c=>[i.renderSlot(r.$slots,l,i.normalizeProps(i.guardReactiveProps(c??{})))])}))]),1536))}});var Td;function qn(){const t=c9(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function c9(){const t=i.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}i.defineComponent({props:{translation:{type:String,required:!0}},setup(t,{slots:e}){return()=>{const n=t.translation,o=[];let r,s=0;for(;(r=Td.exec(n))!==null;){o.push(n.substring(s,r.index));const a=e[r[1]];a?o.push(...a()):o.push(r[0]),s=Td.lastIndex}return o.push(n.substring(s)),o}}});async function On(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 r=o[0].id;await i.nextTick();const s=document.getElementById(r);s==null||s.focus(),await i.nextTick();const a=document.getElementById(r);a==null||a.select()}}const u9={class:"ao-tasks"},d9={class:"ao-tasks__list"},f9=["id","value","readonly","onChange"],p9={class:"ao-tasks__list-footer"},h9=i.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}=qn(),o=t,r=e;i.watch(()=>o.tasks,(p,h)=>{On(p,h)});const s=i.computed(()=>{var p;return((p=o.users)==null?void 0:p.map(h=>({label:`${h.firstName} ${h.lastName}`,value:h.id,avatar:h.avatarUrl})))??[]}),a=()=>{const p=o.tasks.length,h={name:n("task.defaultName",{idx:p+1}),activityId:o.activityId};r("add",h)},l=(p,h)=>{const g=p.target.value;r("update",{id:h,name:g})},c=(p,h)=>{o.isEditable&&r("update",{id:p,isDone:h})},u=p=>{r("delete",{id:p})},d=(p,h)=>{r("update",{id:h,assigneeId:p[0]??null})},f=p=>{const h=p.target;h==null||h.blur()};return(p,h)=>(i.openBlock(),i.createElementBlock("div",u9,[i.createElementVNode("ul",d9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tasks,m=>{var g,y;return i.openBlock(),i.createElementBlock("li",{key:m.id,class:"ao-subtask"},[((g=t.isCheckable)==null?void 0:g.call(t,m))??!1?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-subtask__check","icon-name":m.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>c(m.id,!m.isDone)},null,8,["icon-name","disabled","onClick"])):i.createCommentVNode("",!0),i.createElementVNode("input",{id:m.id,value:m.name,readonly:!t.isEditable,class:i.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":m.isDone}]),type:"text",onChange:_=>l(_,m.id),onKeyup:i.withKeys(f,["enter"])},null,42,f9),h[0]||(h[0]=i.createTextVNode(". ",-1)),!t.isTemplate&&t.users?(i.openBlock(),i.createBlock(Nt,{key:1,value:(y=m.assignee)!=null&&y.id?[m.assignee.id]:[],options:s.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:p.$t("feed.filters.assignee.placeholder"),disabled:!t.isEditable,caret:t.isEditable,onChange:_=>d(_,m.id)},{tag:i.withCtx(({option:_,handleTagRemove:C})=>[i.createVNode(zn,{"user-name":_.label,"avatar-url":_.avatar,"is-closable":!0,onClose:v=>C(_,v)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):i.createCommentVNode("",!0),t.isEditable?(i.openBlock(),i.createBlock(he,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>u(m.id)},null,8,["onClick"])):i.createCommentVNode("",!0)])}),128))]),i.createElementVNode("div",p9,[t.isEditable?(i.openBlock(),i.createBlock(he,{key:0,label:p.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:a},null,8,["label"])):i.createCommentVNode("",!0)])]))}});const m9={class:"ao-files__placeholder"},g9={key:0,class:"ao-files__list"},v9=["href"],y9={class:"ao-file__title"},_9={key:0},C9={class:"ao-files__input"},b9={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},k9={class:"ao-button__label"},w9={class:"ao-files__dropzone"},E9={class:"ao-files__dropzone-label"},x9=i.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove"],setup(t,{emit:e}){const n=e,o=t,r=f=>{n("remove",f)},s=f=>{const p=f.target,h=Array.from(p.files??[]);n("add",h)},a=["dragenter","dragover","dragleave","drop"];i.onMounted(()=>{a.forEach(f=>{document.body.addEventListener(f,p=>p.preventDefault())})}),i.onUnmounted(()=>{a.forEach(f=>{document.body.removeEventListener(f,p=>p.preventDefault())})});const l=i.ref(!1);function c(){o.isEditable&&(l.value=!0)}function u(){l.value=!1}i.watch(l,f=>{n("toggleIsDropActive",f)});function d(f){var h;u();const p=Array.from(((h=f.dataTransfer)==null?void 0:h.files)||[]);f.dataTransfer&&n("add",p)}return(f,p)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":l.value}]),onDrop:i.withModifiers(d,["prevent"]),onDragenter:i.withModifiers(c,["prevent"]),onDragover:i.withModifiers(c,["prevent"]),onDragleave:i.withModifiers(u,["prevent"])},[i.renderSlot(f.$slots,"default",{},()=>[i.createElementVNode("span",m9,i.toDisplayString(f.$t("activity.attachment.placeholder.resting")),1)]),t.attachments?(i.openBlock(),i.createElementBlock("ul",g9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.attachments,h=>(i.openBlock(),i.createElementBlock("li",{key:h.id,class:"ao-file"},[i.createElementVNode("a",{class:"ao-file__link",href:h.url,target:"_blank",rel:"noopener noreferrer"},[i.createVNode(Ae,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",y9,i.toDisplayString(h.name),1)],8,v9),t.isEditable?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-files__delete-button","icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round",onClick:()=>r(h)},null,8,["onClick"])):i.createCommentVNode("",!0)]))),128)),t.isEditable?(i.openBlock(),i.createElementBlock("li",_9,[i.createElementVNode("label",C9,[i.createElementVNode("div",b9,[i.createVNode(Ae,{name:"Add",size:"sm"}),i.createElementVNode("span",k9,i.toDisplayString(f.$t("activity.attachment.button.resting")),1)]),i.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:s},null,32)])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",w9,[i.createElementVNode("span",E9,i.toDisplayString(f.$t("activity.attachment.placeholder.active")),1)],512),[[i.vShow,l.value]])],34))}});const S9={class:"ao-comment"},T9={class:"ao-comment__created-at"},A9={class:"ao-comment__body"},N9={class:"ao-comment__content-wrapper"},D9={key:0,class:"ao-comment__content"},M9=["rows"],B9=["onClick"],$9={key:1,class:"ao-comment__footer"},O9=i.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{const b=n.user;return b?`${b==null?void 0:b.firstName} ${b==null?void 0:b.lastName}`:null}),s=i.ref(null),a=i.ref(n.content),{isEditing:l,toggleIsEditing:c,onUpdate:u,onDiscard:d}=op(s),f=i.computed(()=>{const b=n.editedAt&&Li(n.editedAt),E=Li(n.createdAt),S=new Date,T=b??E;return T&&_y(T,S)});i.computed(()=>l.value?"textarea":"p");const p=d(),h=u(b=>{o("edit",b)}),m=()=>{o("remove")},g=i.ref(2);i.onUpdated(()=>{i.nextTick(()=>{var b;if(!l.value){const E=(b=s.value)==null?void 0:b.getClientRects().length;g.value=E||2}})});const{showMentionList:y,mentionListPosition:_,filteredUsers:C,handleInput:v,handleKeydown:w,selectUserMention:k}=xp(s,a,i.toRef(n,"mentionableUsers"));return(b,E)=>{var S;return i.openBlock(),i.createElementBlock("li",S9,[r.value?(i.openBlock(),i.createBlock(zn,{key:0,"avatar-url":(S=t.user)==null?void 0:S.avatarUrl,"user-name":r.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):i.createCommentVNode("",!0),i.createElementVNode("span",T9,i.toDisplayString(f.value),1),i.createElementVNode("div",A9,[i.createElementVNode("div",N9,[i.unref(l)?i.withDirectives((i.openBlock(),i.createElementBlock("textarea",{key:1,ref_key:"commentContent",ref:s,class:"ao-comment__content","onUpdate:modelValue":E[0]||(E[0]=T=>a.value=T),rows:g.value,onInput:E[1]||(E[1]=(...T)=>i.unref(v)&&i.unref(v)(...T)),onKeydown:E[2]||(E[2]=(...T)=>i.unref(w)&&i.unref(w)(...T)),onKeyup:[E[3]||(E[3]=i.withKeys((...T)=>i.unref(p)&&i.unref(p)(...T),["esc"])),E[4]||(E[4]=i.withKeys(i.withModifiers((...T)=>i.unref(h)&&i.unref(h)(...T),["ctrl"]),["enter"]))]},null,40,M9)),[[i.vModelText,a.value]]):(i.openBlock(),i.createElementBlock("p",D9,i.toDisplayString(t.content),1)),i.unref(y)&&i.unref(C).length>0?(i.openBlock(),i.createElementBlock("ul",{key:2,class:"mention-list",style:i.normalizeStyle({top:i.unref(_).top+"px",left:i.unref(_).left+"px"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(C),T=>(i.openBlock(),i.createElementBlock("li",{key:T.id,onClick:A=>i.unref(k)(T.name)}," @"+i.toDisplayString(T.name),9,B9))),128))],4)):i.createCommentVNode("",!0)])]),t.isEditable?(i.openBlock(),i.createElementBlock("div",$9,[i.unref(l)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(he,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:i.unref(p)},null,8,["onClick"]),i.createVNode(he,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:i.unref(h)},null,8,["onClick"])],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(he,{label:b.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:m},null,8,["label"]),i.createVNode(he,{label:b.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:i.unref(c)},null,8,["label","onClick"])],64))])):i.createCommentVNode("",!0)])}}});const L9={class:"ao-comments__header"},I9=["placeholder"],P9={class:"ao-comments__form-submit"},F9={key:0,class:"ao-comments__list"},R9=["onClick"],V9=i.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>(n.comments||[]).toSorted((k,b)=>c7(Li(k.createdAt),Li(b.createdAt)))),s=w=>n.users.find(b=>b.id===w),a=i.ref();i.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)});const l=i.toRef(n.newComment),c=i.computed({get(){return l.value},set(w){l.value=w}}),u=()=>{const w=l.value.trim();w&&(o("createComment",{authorId:n.userId,message:w,mentionedUserIds:v(w)}),l.value="")},d=(w,k)=>{o("updateComment",{id:w,message:k,mentionedUserIds:v(k)})},f=w=>{o("removeComment",{id:w})},p=i.ref(),{showMentionList:h,mentionListPosition:m,filteredUsers:g,handleInput:y,handleKeydown:_,selectUserMention:C,getMentionedUserIds:v}=xp(p,c,i.toRef(n,"users"));return(w,k)=>{var b;return i.openBlock(),i.createElementBlock("div",{ref_key:"commentsContainer",ref:a,class:"ao-comments"},[i.createElementVNode("div",L9,[i.createElementVNode("form",{class:"ao-comments__form",onSubmit:i.withModifiers(u,["prevent"])},[i.withDirectives(i.createElementVNode("textarea",{ref_key:"textareaRef",ref:p,"onUpdate:modelValue":k[0]||(k[0]=E=>c.value=E),rows:"2",class:"ao-field__textarea ao-comments__form-textarea",placeholder:w.$t("activity.comment.label"),onInput:k[1]||(k[1]=(...E)=>i.unref(y)&&i.unref(y)(...E)),onKeydown:k[2]||(k[2]=(...E)=>i.unref(_)&&i.unref(_)(...E))},null,40,I9),[[i.vModelText,c.value,void 0,{trim:!0}]]),i.createElementVNode("div",P9,[i.createVNode(he,{type:"submit","icon-name":"SendRounded",color:"primary",variant:"solid",corners:"round",size:"sm"})])],32)]),((b=r.value)==null?void 0:b.length)>0?(i.openBlock(),i.createElementBlock("ul",F9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,E=>(i.openBlock(),i.createBlock(O9,{key:E.id,user:s(E.author.id),content:E.message,"created-at":E.createdAt,"edited-at":E.updatedAt,"is-editable":E.author.id===t.userId,"mentionable-users":t.users,class:"ao-comment",onEdit:S=>d(E.id,S),onRemove:()=>f(E.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):i.createCommentVNode("",!0),i.unref(h)&&i.unref(g).length>0?(i.openBlock(),i.createElementBlock("ul",{key:1,class:"mention-list",style:i.normalizeStyle({top:i.unref(m).top+"px",left:i.unref(m).left+"px"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(g),E=>(i.openBlock(),i.createElementBlock("li",{key:E.id,onClick:S=>i.unref(C)(E.name)}," @"+i.toDisplayString(E.name),9,R9))),128))],4)):i.createCommentVNode("",!0)],512)}}});const qp=i.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("update:modelValue",!n.modelValue)};return(s,a)=>(i.openBlock(),i.createBlock(he,{color:t.modelValue?t.color:i.unref(Rc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>r())},null,8,["color"]))}}),z9=i.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 U9=["onClick"],q9={class:"tab-button__label"},H9={key:0,class:"tab-button__badge"};function j9(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":t.variant==="underline"}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tabs,a=>(i.openBlock(),i.createElementBlock("button",{key:a.value,class:i.normalizeClass(["tab-button",{"tab-button--active":a.value===t.modelValue},{"tab-button--underline":t.variant==="underline"}]),type:"button",onClick:l=>t.selectTab(a.value)},[i.createElementVNode("span",q9,i.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(i.openBlock(),i.createElementBlock("span",H9,i.toDisplayString(a.count),1)):i.createCommentVNode("",!0)],10,U9))),128))],2)}const ts=ne(z9,[["render",j9],["__scopeId","data-v-0e91b31f"]]);var ke={};const W9="Á",Z9="á",K9="Ă",G9="ă",Y9="∾",J9="∿",X9="∾̳",Q9="Â",e4="â",t4="´",n4="А",o4="а",r4="Æ",i4="æ",s4="",a4="𝔄",l4="𝔞",c4="À",u4="à",d4="ℵ",f4="ℵ",p4="Α",h4="α",m4="Ā",g4="ā",v4="⨿",y4="&",_4="&",C4="⩕",b4="⩓",k4="∧",w4="⩜",E4="⩘",x4="⩚",S4="∠",T4="⦤",A4="∠",N4="⦨",D4="⦩",M4="⦪",B4="⦫",$4="⦬",O4="⦭",L4="⦮",I4="⦯",P4="∡",F4="∟",R4="⊾",V4="⦝",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="Ä",h8="ä",m8="∳",g8="⨑",v8="≌",y8="϶",_8="‵",C8="∽",b8="⋍",k8="∖",w8="⫧",E8="⊽",x8="⌅",S8="⌆",T8="⌅",A8="⎵",N8="⎶",D8="≌",M8="Б",B8="б",$8="„",O8="∵",L8="∵",I8="∵",P8="⦰",F8="϶",R8="ℬ",V8="ℬ",z8="Β",U8="β",q8="ℶ",H8="≬",j8="𝔅",W8="𝔟",Z8="⋂",K8="◯",G8="⋃",Y8="⨀",J8="⨁",X8="⨂",Q8="⨆",ek="★",tk="▽",nk="△",ok="⨄",rk="⋁",ik="⋀",sk="⤍",ak="⧫",lk="▪",ck="▴",uk="▾",dk="◂",fk="▸",pk="␣",hk="▒",mk="░",gk="▓",vk="█",yk="=⃥",_k="≡⃥",Ck="⫭",bk="⌐",kk="𝔹",wk="𝕓",Ek="⊥",xk="⊥",Sk="⋈",Tk="⧉",Ak="┐",Nk="╕",Dk="╖",Mk="╗",Bk="┌",$k="╒",Ok="╓",Lk="╔",Ik="─",Pk="═",Fk="┬",Rk="╤",Vk="╥",zk="╦",Uk="┴",qk="╧",Hk="╨",jk="╩",Wk="⊟",Zk="⊞",Kk="⊠",Gk="┘",Yk="╛",Jk="╜",Xk="╝",Qk="└",e6="╘",t6="╙",n6="╚",o6="│",r6="║",i6="┼",s6="╪",a6="╫",l6="╬",c6="┤",u6="╡",d6="╢",f6="╣",p6="├",h6="╞",m6="╟",g6="╠",v6="‵",y6="˘",_6="˘",C6="¦",b6="𝒷",k6="ℬ",w6="⁏",E6="∽",x6="⋍",S6="⧅",T6="\\",A6="⟈",N6="•",D6="•",M6="≎",B6="⪮",$6="≏",O6="≎",L6="≏",I6="Ć",P6="ć",F6="⩄",R6="⩉",V6="⩋",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="·",hw="𝔠",mw="ℭ",gw="Ч",vw="ч",yw="✓",_w="✓",Cw="Χ",bw="χ",kw="ˆ",ww="≗",Ew="↺",xw="↻",Sw="⊛",Tw="⊚",Aw="⊝",Nw="⊙",Dw="®",Mw="Ⓢ",Bw="⊖",$w="⊕",Ow="⊗",Lw="○",Iw="⧃",Pw="≗",Fw="⨐",Rw="⫯",Vw="⧂",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="©",hE="©",mE="℗",gE="∳",vE="↵",yE="✗",_E="⨯",CE="𝒞",bE="𝒸",kE="⫏",wE="⫑",EE="⫐",xE="⫒",SE="⋯",TE="⤸",AE="⤵",NE="⋞",DE="⋟",ME="↶",BE="⤽",$E="⩈",OE="⩆",LE="≍",IE="∪",PE="⋓",FE="⩊",RE="⊍",VE="⩅",zE="∪︀",UE="↷",qE="⤼",HE="⋞",jE="⋟",WE="⋎",ZE="⋏",KE="¤",GE="↶",YE="↷",JE="⋎",XE="⋏",QE="∲",ex="∱",tx="⌭",nx="†",ox="‡",rx="ℸ",ix="↓",sx="↡",ax="⇓",lx="‐",cx="⫤",ux="⊣",dx="⤏",fx="˝",px="Ď",hx="ď",mx="Д",gx="д",vx="‡",yx="⇊",_x="ⅅ",Cx="ⅆ",bx="⤑",kx="⩷",wx="°",Ex="∇",xx="Δ",Sx="δ",Tx="⦱",Ax="⥿",Nx="𝔇",Dx="𝔡",Mx="⥥",Bx="⇃",$x="⇂",Ox="´",Lx="˙",Ix="˝",Px="`",Fx="˜",Rx="⋄",Vx="⋄",zx="⋄",Ux="♦",qx="♦",Hx="¨",jx="ⅆ",Wx="ϝ",Zx="⋲",Kx="÷",Gx="÷",Yx="⋇",Jx="⋇",Xx="Ђ",Qx="ђ",eS="⌞",tS="⌍",nS="$",oS="𝔻",rS="𝕕",iS="¨",sS="˙",aS="⃜",lS="≐",cS="≑",uS="≐",dS="∸",fS="∔",pS="⊡",hS="⌆",mS="∯",gS="¨",vS="⇓",yS="⇐",_S="⇔",CS="⫤",bS="⟸",kS="⟺",wS="⟹",ES="⇒",xS="⊨",SS="⇑",TS="⇕",AS="∥",NS="⤓",DS="↓",MS="↓",BS="⇓",$S="⇵",OS="̑",LS="⇊",IS="⇃",PS="⇂",FS="⥐",RS="⥞",VS="⥖",zS="↽",US="⥟",qS="⥗",HS="⇁",jS="↧",WS="⊤",ZS="⤐",KS="⌟",GS="⌌",YS="𝒟",JS="𝒹",XS="Ѕ",QS="ѕ",eT="⧶",tT="Đ",nT="đ",oT="⋱",rT="▿",iT="▾",sT="⇵",aT="⥯",lT="⦦",cT="Џ",uT="џ",dT="⟿",fT="É",pT="é",hT="⩮",mT="Ě",gT="ě",vT="Ê",yT="ê",_T="≖",CT="≕",bT="Э",kT="э",wT="⩷",ET="Ė",xT="ė",ST="≑",TT="ⅇ",AT="≒",NT="𝔈",DT="𝔢",MT="⪚",BT="È",$T="è",OT="⪖",LT="⪘",IT="⪙",PT="∈",FT="⏧",RT="ℓ",VT="⪕",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="≕",hA="≂",mA="⪖",gA="⪕",vA="⩵",yA="=",_A="≂",CA="≟",bA="⇌",kA="≡",wA="⩸",EA="⧥",xA="⥱",SA="≓",TA="ℯ",AA="ℰ",NA="≐",DA="⩳",MA="≂",BA="Η",$A="η",OA="Ð",LA="ð",IA="Ë",PA="ë",FA="€",RA="!",VA="∃",zA="∃",UA="ℰ",qA="ⅇ",HA="ⅇ",jA="≒",WA="Ф",ZA="ф",KA="♀",GA="ffi",YA="ff",JA="ffl",XA="𝔉",QA="𝔣",eN="fi",tN="◼",nN="▪",oN="fj",rN="♭",iN="fl",sN="▱",aN="ƒ",lN="𝔽",cN="𝕗",uN="∀",dN="∀",fN="⋔",pN="⫙",hN="ℱ",mN="⨍",gN="½",vN="⅓",yN="¼",_N="⅕",CN="⅙",bN="⅛",kN="⅔",wN="⅖",EN="¾",xN="⅗",SN="⅜",TN="⅘",AN="⅚",NN="⅝",DN="⅞",MN="⁄",BN="⌢",$N="𝒻",ON="ℱ",LN="ǵ",IN="Γ",PN="γ",FN="Ϝ",RN="ϝ",VN="⪆",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="⋙",hD="⋙",mD="ℷ",gD="Ѓ",vD="ѓ",yD="⪥",_D="≷",CD="⪒",bD="⪤",kD="⪊",wD="⪊",ED="⪈",xD="≩",SD="⪈",TD="≩",AD="⋧",ND="𝔾",DD="𝕘",MD="`",BD="≥",$D="⋛",OD="≧",LD="⪢",ID="≷",PD="⩾",FD="≳",RD="𝒢",VD="ℊ",zD="≳",UD="⪎",qD="⪐",HD="⪧",jD="⩺",WD=">",ZD=">",KD="≫",GD="⋗",YD="⦕",JD="⩼",XD="⪆",QD="⥸",eM="⋗",tM="⋛",nM="⪌",oM="≷",rM="≳",iM="≩︀",sM="≩︀",aM="ˇ",lM=" ",cM="½",uM="ℋ",dM="Ъ",fM="ъ",pM="⥈",hM="↔",mM="⇔",gM="↭",vM="^",yM="ℏ",_M="Ĥ",CM="ĥ",bM="♥",kM="♥",wM="…",EM="⊹",xM="𝔥",SM="ℌ",TM="ℋ",AM="⤥",NM="⤦",DM="⇿",MM="∻",BM="↩",$M="↪",OM="𝕙",LM="ℍ",IM="―",PM="─",FM="𝒽",RM="ℋ",VM="ℏ",zM="Ħ",UM="ħ",qM="≎",HM="≏",jM="⁃",WM="‐",ZM="Í",KM="í",GM="",YM="Î",JM="î",XM="И",QM="и",eB="İ",tB="Е",nB="е",oB="¡",rB="⇔",iB="𝔦",sB="ℑ",aB="Ì",lB="ì",cB="ⅈ",uB="⨌",dB="∭",fB="⧜",pB="℩",hB="IJ",mB="ij",gB="Ī",vB="ī",yB="ℑ",_B="ⅈ",CB="ℐ",bB="ℑ",kB="ı",wB="ℑ",EB="⊷",xB="Ƶ",SB="⇒",TB="℅",AB="∞",NB="⧝",DB="ı",MB="⊺",BB="∫",$B="∬",OB="ℤ",LB="∫",IB="⊺",PB="⋂",FB="⨗",RB="⨼",VB="",zB="",UB="Ё",qB="ё",HB="Į",jB="į",WB="𝕀",ZB="𝕚",KB="Ι",GB="ι",YB="⨼",JB="¿",XB="𝒾",QB="ℐ",e$="∈",t$="⋵",n$="⋹",o$="⋴",r$="⋳",i$="∈",s$="",a$="Ĩ",l$="ĩ",c$="І",u$="і",d$="Ï",f$="ï",p$="Ĵ",h$="ĵ",m$="Й",g$="й",v$="𝔍",y$="𝔧",_$="ȷ",C$="𝕁",b$="𝕛",k$="𝒥",w$="𝒿",E$="Ј",x$="ј",S$="Є",T$="є",A$="Κ",N$="κ",D$="ϰ",M$="Ķ",B$="ķ",$$="К",O$="к",L$="𝔎",I$="𝔨",P$="ĸ",F$="Х",R$="х",V$="Ќ",z$="ќ",U$="𝕂",q$="𝕜",H$="𝒦",j$="𝓀",W$="⇚",Z$="Ĺ",K$="ĺ",G$="⦴",Y$="ℒ",J$="Λ",X$="λ",Q$="⟨",eO="⟪",tO="⦑",nO="⟨",oO="⪅",rO="ℒ",iO="«",sO="⇤",aO="⤟",lO="←",cO="↞",uO="⇐",dO="⤝",fO="↩",pO="↫",hO="⤹",mO="⥳",gO="↢",vO="⤙",yO="⤛",_O="⪫",CO="⪭",bO="⪭︀",kO="⤌",wO="⤎",EO="❲",xO="{",SO="[",TO="⦋",AO="⦏",NO="⦍",DO="Ľ",MO="ľ",BO="Ļ",$O="ļ",OO="⌈",LO="{",IO="Л",PO="л",FO="⤶",RO="“",VO="„",zO="⥧",UO="⥋",qO="↲",HO="≤",jO="≦",WO="⟨",ZO="⇤",KO="←",GO="←",YO="⇐",JO="⇆",XO="↢",QO="⌈",eL="⟦",tL="⥡",nL="⥙",oL="⇃",rL="⌊",iL="↽",sL="↼",aL="⇇",lL="↔",cL="↔",uL="⇔",dL="⇆",fL="⇋",pL="↭",hL="⥎",mL="↤",gL="⊣",vL="⥚",yL="⋋",_L="⧏",CL="⊲",bL="⊴",kL="⥑",wL="⥠",EL="⥘",xL="↿",SL="⥒",TL="↼",AL="⪋",NL="⋚",DL="≤",ML="≦",BL="⩽",$L="⪨",OL="⩽",LL="⩿",IL="⪁",PL="⪃",FL="⋚︀",RL="⪓",VL="⪅",zL="⋖",UL="⋚",qL="⪋",HL="⋚",jL="≦",WL="≶",ZL="≶",KL="⪡",GL="≲",YL="⩽",JL="≲",XL="⥼",QL="⌊",eI="𝔏",tI="𝔩",nI="≶",oI="⪑",rI="⥢",iI="↽",sI="↼",aI="⥪",lI="▄",cI="Љ",uI="љ",dI="⇇",fI="≪",pI="⋘",hI="⌞",mI="⇚",gI="⥫",vI="◺",yI="Ŀ",_I="ŀ",CI="⎰",bI="⎰",kI="⪉",wI="⪉",EI="⪇",xI="≨",SI="⪇",TI="≨",AI="⋦",NI="⟬",DI="⇽",MI="⟦",BI="⟵",$I="⟵",OI="⟸",LI="⟷",II="⟷",PI="⟺",FI="⟼",RI="⟶",VI="⟶",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="↰",hP="↰",mP="≲",gP="⪍",vP="⪏",yP="[",_P="‘",CP="‚",bP="Ł",kP="ł",wP="⪦",EP="⩹",xP="<",SP="<",TP="≪",AP="⋖",NP="⋋",DP="⋉",MP="⥶",BP="⩻",$P="◃",OP="⊴",LP="◂",IP="⦖",PP="⥊",FP="⥦",RP="≨︀",VP="≨︀",zP="¯",UP="♂",qP="✠",HP="✠",jP="↦",WP="↦",ZP="↧",KP="↤",GP="↥",YP="▮",JP="⨩",XP="М",QP="м",eF="—",tF="∺",nF="∡",oF=" ",rF="ℳ",iF="𝔐",sF="𝔪",aF="℧",lF="µ",cF="*",uF="⫰",dF="∣",fF="·",pF="⊟",hF="−",mF="∸",gF="⨪",vF="∓",yF="⫛",_F="…",CF="∓",bF="⊧",kF="𝕄",wF="𝕞",EF="∓",xF="𝓂",SF="ℳ",TF="∾",AF="Μ",NF="μ",DF="⊸",MF="⊸",BF="∇",$F="Ń",OF="ń",LF="∠⃒",IF="≉",PF="⩰̸",FF="≋̸",RF="ʼn",VF="≉",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="",hR="≢",mR="⤨",gR="≂̸",vR="≫",yR="≪",_R=`
|
|
2
|
-
`,CR="∄",bR="∄",kR="𝔑",wR="𝔫",ER="≧̸",xR="≱",SR="≱",TR="≧̸",AR="⩾̸",NR="⩾̸",DR="⋙̸",MR="≵",BR="≫⃒",$R="≯",OR="≯",LR="≫̸",IR="↮",PR="⇎",FR="⫲",RR="∋",VR="⋼",zR="⋺",UR="∋",qR="Њ",HR="њ",jR="↚",WR="⇍",ZR="‥",KR="≦̸",GR="≰",YR="↚",JR="⇍",XR="↮",QR="⇎",eV="≰",tV="≦̸",nV="⩽̸",oV="⩽̸",rV="≮",iV="⋘̸",sV="≴",aV="≪⃒",lV="≮",cV="⋪",uV="⋬",dV="≪̸",fV="∤",pV="",hV=" ",mV="𝕟",gV="ℕ",vV="⫬",yV="¬",_V="≢",CV="≭",bV="∦",kV="∉",wV="≠",EV="≂̸",xV="∄",SV="≯",TV="≱",AV="≧̸",NV="≫̸",DV="≹",MV="⩾̸",BV="≵",$V="≎̸",OV="≏̸",LV="∉",IV="⋵̸",PV="⋹̸",FV="∉",RV="⋷",VV="⋶",zV="⧏̸",UV="⋪",qV="⋬",HV="≮",jV="≰",WV="≸",ZV="≪̸",KV="⩽̸",GV="≴",YV="⪢̸",JV="⪡̸",XV="∌",QV="∌",ez="⋾",tz="⋽",nz="⊀",oz="⪯̸",rz="⋠",iz="∌",sz="⧐̸",az="⋫",lz="⋭",cz="⊏̸",uz="⋢",dz="⊐̸",fz="⋣",pz="⊂⃒",hz="⊈",mz="⊁",gz="⪰̸",vz="⋡",yz="≿̸",_z="⊃⃒",Cz="⊉",bz="≁",kz="≄",wz="≇",Ez="≉",xz="∤",Sz="∦",Tz="∦",Az="⫽⃥",Nz="∂̸",Dz="⨔",Mz="⊀",Bz="⋠",$z="⊀",Oz="⪯̸",Lz="⪯̸",Iz="⤳̸",Pz="↛",Fz="⇏",Rz="↝̸",Vz="↛",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="⫆̸",hU="⊉",mU="⊃⃒",gU="⊉",vU="⫆̸",yU="≹",_U="Ñ",CU="ñ",bU="≸",kU="⋪",wU="⋬",EU="⋫",xU="⋭",SU="Ν",TU="ν",AU="#",NU="№",DU=" ",MU="≍⃒",BU="⊬",$U="⊭",OU="⊮",LU="⊯",IU="≥⃒",PU=">⃒",FU="⤄",RU="⧞",VU="⤂",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="œ",hq="⦿",mq="𝔒",gq="𝔬",vq="˛",yq="Ò",_q="ò",Cq="⧁",bq="⦵",kq="Ω",wq="∮",Eq="↺",xq="⦾",Sq="⦻",Tq="‾",Aq="⧀",Nq="Ō",Dq="ō",Mq="Ω",Bq="ω",$q="Ο",Oq="ο",Lq="⦶",Iq="⊖",Pq="𝕆",Fq="𝕠",Rq="⦷",Vq="“",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="Ö",hH="ö",mH="⌽",gH="‾",vH="⏞",yH="⎴",_H="⏜",CH="¶",bH="∥",kH="∥",wH="⫳",EH="⫽",xH="∂",SH="∂",TH="П",AH="п",NH="%",DH=".",MH="‰",BH="⊥",$H="‱",OH="𝔓",LH="𝔭",IH="Φ",PH="φ",FH="ϕ",RH="ℳ",VH="☎",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="≺",hj="≼",mj="⪷",gj="≺",vj="≼",yj="≺",_j="⪯",Cj="≼",bj="≾",kj="⪯",wj="⪹",Ej="⪵",xj="⋨",Sj="⪯",Tj="⪳",Aj="≾",Nj="′",Dj="″",Mj="ℙ",Bj="⪹",$j="⪵",Oj="⋨",Lj="∏",Ij="∏",Pj="⌮",Fj="⌒",Rj="⌓",Vj="∝",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="Ŕ",hW="ŕ",mW="√",gW="⦳",vW="⟩",yW="⟫",_W="⦒",CW="⦥",bW="⟩",kW="»",wW="⥵",EW="⇥",xW="⤠",SW="⤳",TW="→",AW="↠",NW="⇒",DW="⤞",MW="↪",BW="↬",$W="⥅",OW="⥴",LW="⤖",IW="↣",PW="↝",FW="⤚",RW="⤜",VW="∶",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="ℝ",hZ="ℜ",mZ="▭",gZ="®",vZ="®",yZ="∋",_Z="⇋",CZ="⥯",bZ="⥽",kZ="⌋",wZ="𝔯",EZ="ℜ",xZ="⥤",SZ="⇁",TZ="⇀",AZ="⥬",NZ="Ρ",DZ="ρ",MZ="ϱ",BZ="⟩",$Z="⇥",OZ="→",LZ="→",IZ="⇒",PZ="⇄",FZ="↣",RZ="⌉",VZ="⟧",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="⇌",hK="",mK="⎱",gK="⎱",vK="⫮",yK="⟭",_K="⇾",CK="⟧",bK="⦆",kK="𝕣",wK="ℝ",EK="⨮",xK="⨵",SK="⥰",TK=")",AK="⦔",NK="⨒",DK="⇉",MK="⇛",BK="›",$K="𝓇",OK="ℛ",LK="↱",IK="↱",PK="]",FK="’",RK="’",VK="⋌",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="⨓",hG="≿",mG="С",gG="с",vG="⊡",yG="⋅",_G="⩦",CG="⤥",bG="↘",kG="⇘",wG="↘",EG="§",xG=";",SG="⤩",TG="∖",AG="∖",NG="✶",DG="𝔖",MG="𝔰",BG="⌢",$G="♯",OG="Щ",LG="щ",IG="Ш",PG="ш",FG="↓",RG="←",VG="∣",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="⪪",hY="⪬",mY="⪬︀",gY="Ь",vY="ь",yY="⌿",_Y="⧄",CY="/",bY="𝕊",kY="𝕤",wY="♠",EY="♠",xY="∥",SY="⊓",TY="⊓︀",AY="⊔",NY="⊔︀",DY="√",MY="⊏",BY="⊑",$Y="⊏",OY="⊑",LY="⊐",IY="⊒",PY="⊐",FY="⊒",RY="□",VY="□",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="⫃",hJ="⫁",mJ="⫋",gJ="⊊",vJ="⪿",yJ="⥹",_J="⊂",CJ="⋐",bJ="⊆",kJ="⫅",wJ="⊆",EJ="⊊",xJ="⫋",SJ="⫇",TJ="⫕",AJ="⫓",NJ="⪸",DJ="≻",MJ="≽",BJ="≻",$J="⪰",OJ="≽",LJ="≿",IJ="⪰",PJ="⪺",FJ="⪶",RJ="⋩",VJ="≿",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="⫆",hX="⊋",mX="⫌",gX="⫈",vX="⫔",yX="⫖",_X="⤦",CX="↙",bX="⇙",kX="↙",wX="⤪",EX="ß",xX=" ",SX="⌖",TX="Τ",AX="τ",NX="⎴",DX="Ť",MX="ť",BX="Ţ",$X="ţ",OX="Т",LX="т",IX="⃛",PX="⌕",FX="𝔗",RX="𝔱",VX="∴",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="⌶",hQ="⫱",mQ="⊤",gQ="𝕋",vQ="𝕥",yQ="⫚",_Q="⤩",CQ="‴",bQ="™",kQ="™",wQ="▵",EQ="▿",xQ="◃",SQ="⊴",TQ="≜",AQ="▹",NQ="⊵",DQ="◬",MQ="≜",BQ="⨺",$Q="⃛",OQ="⨹",LQ="⧍",IQ="⨻",PQ="⏢",FQ="𝒯",RQ="𝓉",VQ="Ц",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="⥾",hee="𝔘",mee="𝔲",gee="Ù",vee="ù",yee="⥣",_ee="↿",Cee="↾",bee="▀",kee="⌜",wee="⌜",Eee="⌏",xee="◸",See="Ū",Tee="ū",Aee="¨",Nee="_",Dee="⏟",Mee="⎵",Bee="⏝",$ee="⋃",Oee="⊎",Lee="Ų",Iee="ų",Pee="𝕌",Fee="𝕦",Ree="⤒",Vee="↑",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="𝒰",hte="𝓊",mte="⋰",gte="Ũ",vte="ũ",yte="▵",_te="▴",Cte="⇈",bte="Ü",kte="ü",wte="⦧",Ete="⦜",xte="ϵ",Ste="ϰ",Tte="∅",Ate="ϕ",Nte="ϖ",Dte="∝",Mte="↕",Bte="⇕",$te="ϱ",Ote="ς",Lte="⊊︀",Ite="⫋︀",Pte="⊋︀",Fte="⫌︀",Rte="ϑ",Vte="⊲",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="𝔳",hne="⊲",mne="⊂⃒",gne="⊃⃒",vne="𝕍",yne="𝕧",_ne="∝",Cne="⊳",bne="𝒱",kne="𝓋",wne="⫋︀",Ene="⊊︀",xne="⫌︀",Sne="⊋︀",Tne="⊪",Ane="⦚",Nne="Ŵ",Dne="ŵ",Mne="⩟",Bne="∧",$ne="⋀",One="≙",Lne="℘",Ine="𝔚",Pne="𝔴",Fne="𝕎",Rne="𝕨",Vne="℘",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="𝓍",hoe="⨆",moe="⨄",goe="△",voe="⋁",yoe="⋀",_oe="Ý",Coe="ý",boe="Я",koe="я",woe="Ŷ",Eoe="ŷ",xoe="Ы",Soe="ы",Toe="¥",Aoe="𝔜",Noe="𝔶",Doe="Ї",Moe="ї",Boe="𝕐",$oe="𝕪",Ooe="𝒴",Loe="𝓎",Ioe="Ю",Poe="ю",Foe="ÿ",Roe="Ÿ",Voe="Ź",zoe="ź",Uoe="Ž",qoe="ž",Hoe="З",joe="з",Woe="Ż",Zoe="ż",Koe="ℨ",Goe="",Yoe="Ζ",Joe="ζ",Xoe="𝔷",Qoe="ℨ",ere="Ж",tre="ж",nre="⇝",ore="𝕫",rre="ℤ",ire="𝒵",sre="𝓏",are="",lre="",cre={Aacute:W9,aacute:Z9,Abreve:K9,abreve:G9,ac:Y9,acd:J9,acE:X9,Acirc:Q9,acirc:e4,acute:t4,Acy:n4,acy:o4,AElig:r4,aelig:i4,af:s4,Afr:a4,afr:l4,Agrave:c4,agrave:u4,alefsym:d4,aleph:f4,Alpha:p4,alpha:h4,Amacr:m4,amacr:g4,amalg:v4,amp:y4,AMP:_4,andand:C4,And:b4,and:k4,andd:w4,andslope:E4,andv:x4,ang:S4,ange:T4,angle:A4,angmsdaa:N4,angmsdab:D4,angmsdac:M4,angmsdad:B4,angmsdae:$4,angmsdaf:O4,angmsdag:L4,angmsdah:I4,angmsd:P4,angrt:F4,angrtvb:R4,angrtvbd:V4,angsph:z4,angst:U4,angzarr:q4,Aogon:H4,aogon:j4,Aopf:W4,aopf:Z4,apacir:K4,ap:G4,apE:Y4,ape:J4,apid:X4,apos:Q4,ApplyFunction:e8,approx:t8,approxeq:n8,Aring:o8,aring:r8,Ascr:i8,ascr:s8,Assign:a8,ast:l8,asymp:c8,asympeq:u8,Atilde:d8,atilde:f8,Auml:p8,auml:h8,awconint:m8,awint:g8,backcong:v8,backepsilon:y8,backprime:_8,backsim:C8,backsimeq:b8,Backslash:k8,Barv:w8,barvee:E8,barwed:x8,Barwed:S8,barwedge:T8,bbrk:A8,bbrktbrk:N8,bcong:D8,Bcy:M8,bcy:B8,bdquo:$8,becaus:O8,because:L8,Because:I8,bemptyv:P8,bepsi:F8,bernou:R8,Bernoullis:V8,Beta:z8,beta:U8,beth:q8,between:H8,Bfr:j8,bfr:W8,bigcap:Z8,bigcirc:K8,bigcup:G8,bigodot:Y8,bigoplus:J8,bigotimes:X8,bigsqcup:Q8,bigstar:ek,bigtriangledown:tk,bigtriangleup:nk,biguplus:ok,bigvee:rk,bigwedge:ik,bkarow:sk,blacklozenge:ak,blacksquare:lk,blacktriangle:ck,blacktriangledown:uk,blacktriangleleft:dk,blacktriangleright:fk,blank:pk,blk12:hk,blk14:mk,blk34:gk,block:vk,bne:yk,bnequiv:_k,bNot:Ck,bnot:bk,Bopf:kk,bopf:wk,bot:Ek,bottom:xk,bowtie:Sk,boxbox:Tk,boxdl:Ak,boxdL:Nk,boxDl:Dk,boxDL:Mk,boxdr:Bk,boxdR:$k,boxDr:Ok,boxDR:Lk,boxh:Ik,boxH:Pk,boxhd:Fk,boxHd:Rk,boxhD:Vk,boxHD:zk,boxhu:Uk,boxHu:qk,boxhU:Hk,boxHU:jk,boxminus:Wk,boxplus:Zk,boxtimes:Kk,boxul:Gk,boxuL:Yk,boxUl:Jk,boxUL:Xk,boxur:Qk,boxuR:e6,boxUr:t6,boxUR:n6,boxv:o6,boxV:r6,boxvh:i6,boxvH:s6,boxVh:a6,boxVH:l6,boxvl:c6,boxvL:u6,boxVl:d6,boxVL:f6,boxvr:p6,boxvR:h6,boxVr:m6,boxVR:g6,bprime:v6,breve:y6,Breve:_6,brvbar:C6,bscr:b6,Bscr:k6,bsemi:w6,bsim:E6,bsime:x6,bsolb:S6,bsol:T6,bsolhsub:A6,bull:N6,bullet:D6,bump:M6,bumpE:B6,bumpe:$6,Bumpeq:O6,bumpeq:L6,Cacute:I6,cacute:P6,capand:F6,capbrcup:R6,capcap:V6,cap:z6,Cap:U6,capcup:q6,capdot:H6,CapitalDifferentialD:j6,caps:W6,caret:Z6,caron:K6,Cayleys:G6,ccaps:Y6,Ccaron:J6,ccaron:X6,Ccedil:Q6,ccedil:ew,Ccirc:tw,ccirc:nw,Cconint:ow,ccups:rw,ccupssm:iw,Cdot:sw,cdot:aw,cedil:lw,Cedilla:cw,cemptyv:uw,cent:dw,centerdot:fw,CenterDot:pw,cfr:hw,Cfr:mw,CHcy:gw,chcy:vw,check:yw,checkmark:_w,Chi:Cw,chi:bw,circ:kw,circeq:ww,circlearrowleft:Ew,circlearrowright:xw,circledast:Sw,circledcirc:Tw,circleddash:Aw,CircleDot:Nw,circledR:Dw,circledS:Mw,CircleMinus:Bw,CirclePlus:$w,CircleTimes:Ow,cir:Lw,cirE:Iw,cire:Pw,cirfnint:Fw,cirmid:Rw,cirscir:Vw,ClockwiseContourIntegral:zw,CloseCurlyDoubleQuote:Uw,CloseCurlyQuote:qw,clubs:Hw,clubsuit:jw,colon:Ww,Colon:Zw,Colone:Kw,colone:Gw,coloneq:Yw,comma:Jw,commat:Xw,comp:Qw,compfn:eE,complement:tE,complexes:nE,cong:oE,congdot:rE,Congruent:iE,conint:sE,Conint:aE,ContourIntegral:lE,copf:cE,Copf:uE,coprod:dE,Coproduct:fE,copy:pE,COPY:hE,copysr:mE,CounterClockwiseContourIntegral:gE,crarr:vE,cross:yE,Cross:_E,Cscr:CE,cscr:bE,csub:kE,csube:wE,csup:EE,csupe:xE,ctdot:SE,cudarrl:TE,cudarrr:AE,cuepr:NE,cuesc:DE,cularr:ME,cularrp:BE,cupbrcap:$E,cupcap:OE,CupCap:LE,cup:IE,Cup:PE,cupcup:FE,cupdot:RE,cupor:VE,cups:zE,curarr:UE,curarrm:qE,curlyeqprec:HE,curlyeqsucc:jE,curlyvee:WE,curlywedge:ZE,curren:KE,curvearrowleft:GE,curvearrowright:YE,cuvee:JE,cuwed:XE,cwconint:QE,cwint:ex,cylcty:tx,dagger:nx,Dagger:ox,daleth:rx,darr:ix,Darr:sx,dArr:ax,dash:lx,Dashv:cx,dashv:ux,dbkarow:dx,dblac:fx,Dcaron:px,dcaron:hx,Dcy:mx,dcy:gx,ddagger:vx,ddarr:yx,DD:_x,dd:Cx,DDotrahd:bx,ddotseq:kx,deg:wx,Del:Ex,Delta:xx,delta:Sx,demptyv:Tx,dfisht:Ax,Dfr:Nx,dfr:Dx,dHar:Mx,dharl:Bx,dharr:$x,DiacriticalAcute:Ox,DiacriticalDot:Lx,DiacriticalDoubleAcute:Ix,DiacriticalGrave:Px,DiacriticalTilde:Fx,diam:Rx,diamond:Vx,Diamond:zx,diamondsuit:Ux,diams:qx,die:Hx,DifferentialD:jx,digamma:Wx,disin:Zx,div:Kx,divide:Gx,divideontimes:Yx,divonx:Jx,DJcy:Xx,djcy:Qx,dlcorn:eS,dlcrop:tS,dollar:nS,Dopf:oS,dopf:rS,Dot:iS,dot:sS,DotDot:aS,doteq:lS,doteqdot:cS,DotEqual:uS,dotminus:dS,dotplus:fS,dotsquare:pS,doublebarwedge:hS,DoubleContourIntegral:mS,DoubleDot:gS,DoubleDownArrow:vS,DoubleLeftArrow:yS,DoubleLeftRightArrow:_S,DoubleLeftTee:CS,DoubleLongLeftArrow:bS,DoubleLongLeftRightArrow:kS,DoubleLongRightArrow:wS,DoubleRightArrow:ES,DoubleRightTee:xS,DoubleUpArrow:SS,DoubleUpDownArrow:TS,DoubleVerticalBar:AS,DownArrowBar:NS,downarrow:DS,DownArrow:MS,Downarrow:BS,DownArrowUpArrow:$S,DownBreve:OS,downdownarrows:LS,downharpoonleft:IS,downharpoonright:PS,DownLeftRightVector:FS,DownLeftTeeVector:RS,DownLeftVectorBar:VS,DownLeftVector:zS,DownRightTeeVector:US,DownRightVectorBar:qS,DownRightVector:HS,DownTeeArrow:jS,DownTee:WS,drbkarow:ZS,drcorn:KS,drcrop:GS,Dscr:YS,dscr:JS,DScy:XS,dscy:QS,dsol:eT,Dstrok:tT,dstrok:nT,dtdot:oT,dtri:rT,dtrif:iT,duarr:sT,duhar:aT,dwangle:lT,DZcy:cT,dzcy:uT,dzigrarr:dT,Eacute:fT,eacute:pT,easter:hT,Ecaron:mT,ecaron:gT,Ecirc:vT,ecirc:yT,ecir:_T,ecolon:CT,Ecy:bT,ecy:kT,eDDot:wT,Edot:ET,edot:xT,eDot:ST,ee:TT,efDot:AT,Efr:NT,efr:DT,eg:MT,Egrave:BT,egrave:$T,egs:OT,egsdot:LT,el:IT,Element:PT,elinters:FT,ell:RT,els:VT,elsdot:zT,Emacr:UT,emacr:qT,empty:HT,emptyset:jT,EmptySmallSquare:WT,emptyv:ZT,EmptyVerySmallSquare:KT,emsp13:GT,emsp14:YT,emsp:JT,ENG:XT,eng:QT,ensp:eA,Eogon:tA,eogon:nA,Eopf:oA,eopf:rA,epar:iA,eparsl:sA,eplus:aA,epsi:lA,Epsilon:cA,epsilon:uA,epsiv:dA,eqcirc:fA,eqcolon:pA,eqsim:hA,eqslantgtr:mA,eqslantless:gA,Equal:vA,equals:yA,EqualTilde:_A,equest:CA,Equilibrium:bA,equiv:kA,equivDD:wA,eqvparsl:EA,erarr:xA,erDot:SA,escr:TA,Escr:AA,esdot:NA,Esim:DA,esim:MA,Eta:BA,eta:$A,ETH:OA,eth:LA,Euml:IA,euml:PA,euro:FA,excl:RA,exist:VA,Exists:zA,expectation:UA,exponentiale:qA,ExponentialE:HA,fallingdotseq:jA,Fcy:WA,fcy:ZA,female:KA,ffilig:GA,fflig:YA,ffllig:JA,Ffr:XA,ffr:QA,filig:eN,FilledSmallSquare:tN,FilledVerySmallSquare:nN,fjlig:oN,flat:rN,fllig:iN,fltns:sN,fnof:aN,Fopf:lN,fopf:cN,forall:uN,ForAll:dN,fork:fN,forkv:pN,Fouriertrf:hN,fpartint:mN,frac12:gN,frac13:vN,frac14:yN,frac15:_N,frac16:CN,frac18:bN,frac23:kN,frac25:wN,frac34:EN,frac35:xN,frac38:SN,frac45:TN,frac56:AN,frac58:NN,frac78:DN,frasl:MN,frown:BN,fscr:$N,Fscr:ON,gacute:LN,Gamma:IN,gamma:PN,Gammad:FN,gammad:RN,gap:VN,Gbreve:zN,gbreve:UN,Gcedil:qN,Gcirc:HN,gcirc:jN,Gcy:WN,gcy:ZN,Gdot:KN,gdot:GN,ge:YN,gE:JN,gEl:XN,gel:QN,geq:eD,geqq:tD,geqslant:nD,gescc:oD,ges:rD,gesdot:iD,gesdoto:sD,gesdotol:aD,gesl:lD,gesles:cD,Gfr:uD,gfr:dD,gg:fD,Gg:pD,ggg:hD,gimel:mD,GJcy:gD,gjcy:vD,gla:yD,gl:_D,glE:CD,glj:bD,gnap:kD,gnapprox:wD,gne:ED,gnE:xD,gneq:SD,gneqq:TD,gnsim:AD,Gopf:ND,gopf:DD,grave:MD,GreaterEqual:BD,GreaterEqualLess:$D,GreaterFullEqual:OD,GreaterGreater:LD,GreaterLess:ID,GreaterSlantEqual:PD,GreaterTilde:FD,Gscr:RD,gscr:VD,gsim:zD,gsime:UD,gsiml:qD,gtcc:HD,gtcir:jD,gt:WD,GT:ZD,Gt:KD,gtdot:GD,gtlPar:YD,gtquest:JD,gtrapprox:XD,gtrarr:QD,gtrdot:eM,gtreqless:tM,gtreqqless:nM,gtrless:oM,gtrsim:rM,gvertneqq:iM,gvnE:sM,Hacek:aM,hairsp:lM,half:cM,hamilt:uM,HARDcy:dM,hardcy:fM,harrcir:pM,harr:hM,hArr:mM,harrw:gM,Hat:vM,hbar:yM,Hcirc:_M,hcirc:CM,hearts:bM,heartsuit:kM,hellip:wM,hercon:EM,hfr:xM,Hfr:SM,HilbertSpace:TM,hksearow:AM,hkswarow:NM,hoarr:DM,homtht:MM,hookleftarrow:BM,hookrightarrow:$M,hopf:OM,Hopf:LM,horbar:IM,HorizontalLine:PM,hscr:FM,Hscr:RM,hslash:VM,Hstrok:zM,hstrok:UM,HumpDownHump:qM,HumpEqual:HM,hybull:jM,hyphen:WM,Iacute:ZM,iacute:KM,ic:GM,Icirc:YM,icirc:JM,Icy:XM,icy:QM,Idot:eB,IEcy:tB,iecy:nB,iexcl:oB,iff:rB,ifr:iB,Ifr:sB,Igrave:aB,igrave:lB,ii:cB,iiiint:uB,iiint:dB,iinfin:fB,iiota:pB,IJlig:hB,ijlig:mB,Imacr:gB,imacr:vB,image:yB,ImaginaryI:_B,imagline:CB,imagpart:bB,imath:kB,Im:wB,imof:EB,imped:xB,Implies:SB,incare:TB,in:"∈",infin:AB,infintie:NB,inodot:DB,intcal:MB,int:BB,Int:$B,integers:OB,Integral:LB,intercal:IB,Intersection:PB,intlarhk:FB,intprod:RB,InvisibleComma:VB,InvisibleTimes:zB,IOcy:UB,iocy:qB,Iogon:HB,iogon:jB,Iopf:WB,iopf:ZB,Iota:KB,iota:GB,iprod:YB,iquest:JB,iscr:XB,Iscr:QB,isin:e$,isindot:t$,isinE:n$,isins:o$,isinsv:r$,isinv:i$,it:s$,Itilde:a$,itilde:l$,Iukcy:c$,iukcy:u$,Iuml:d$,iuml:f$,Jcirc:p$,jcirc:h$,Jcy:m$,jcy:g$,Jfr:v$,jfr:y$,jmath:_$,Jopf:C$,jopf:b$,Jscr:k$,jscr:w$,Jsercy:E$,jsercy:x$,Jukcy:S$,jukcy:T$,Kappa:A$,kappa:N$,kappav:D$,Kcedil:M$,kcedil:B$,Kcy:$$,kcy:O$,Kfr:L$,kfr:I$,kgreen:P$,KHcy:F$,khcy:R$,KJcy:V$,kjcy:z$,Kopf:U$,kopf:q$,Kscr:H$,kscr:j$,lAarr:W$,Lacute:Z$,lacute:K$,laemptyv:G$,lagran:Y$,Lambda:J$,lambda:X$,lang:Q$,Lang:eO,langd:tO,langle:nO,lap:oO,Laplacetrf:rO,laquo:iO,larrb:sO,larrbfs:aO,larr:lO,Larr:cO,lArr:uO,larrfs:dO,larrhk:fO,larrlp:pO,larrpl:hO,larrsim:mO,larrtl:gO,latail:vO,lAtail:yO,lat:_O,late:CO,lates:bO,lbarr:kO,lBarr:wO,lbbrk:EO,lbrace:xO,lbrack:SO,lbrke:TO,lbrksld:AO,lbrkslu:NO,Lcaron:DO,lcaron:MO,Lcedil:BO,lcedil:$O,lceil:OO,lcub:LO,Lcy:IO,lcy:PO,ldca:FO,ldquo:RO,ldquor:VO,ldrdhar:zO,ldrushar:UO,ldsh:qO,le:HO,lE:jO,LeftAngleBracket:WO,LeftArrowBar:ZO,leftarrow:KO,LeftArrow:GO,Leftarrow:YO,LeftArrowRightArrow:JO,leftarrowtail:XO,LeftCeiling:QO,LeftDoubleBracket:eL,LeftDownTeeVector:tL,LeftDownVectorBar:nL,LeftDownVector:oL,LeftFloor:rL,leftharpoondown:iL,leftharpoonup:sL,leftleftarrows:aL,leftrightarrow:lL,LeftRightArrow:cL,Leftrightarrow:uL,leftrightarrows:dL,leftrightharpoons:fL,leftrightsquigarrow:pL,LeftRightVector:hL,LeftTeeArrow:mL,LeftTee:gL,LeftTeeVector:vL,leftthreetimes:yL,LeftTriangleBar:_L,LeftTriangle:CL,LeftTriangleEqual:bL,LeftUpDownVector:kL,LeftUpTeeVector:wL,LeftUpVectorBar:EL,LeftUpVector:xL,LeftVectorBar:SL,LeftVector:TL,lEg:AL,leg:NL,leq:DL,leqq:ML,leqslant:BL,lescc:$L,les:OL,lesdot:LL,lesdoto:IL,lesdotor:PL,lesg:FL,lesges:RL,lessapprox:VL,lessdot:zL,lesseqgtr:UL,lesseqqgtr:qL,LessEqualGreater:HL,LessFullEqual:jL,LessGreater:WL,lessgtr:ZL,LessLess:KL,lesssim:GL,LessSlantEqual:YL,LessTilde:JL,lfisht:XL,lfloor:QL,Lfr:eI,lfr:tI,lg:nI,lgE:oI,lHar:rI,lhard:iI,lharu:sI,lharul:aI,lhblk:lI,LJcy:cI,ljcy:uI,llarr:dI,ll:fI,Ll:pI,llcorner:hI,Lleftarrow:mI,llhard:gI,lltri:vI,Lmidot:yI,lmidot:_I,lmoustache:CI,lmoust:bI,lnap:kI,lnapprox:wI,lne:EI,lnE:xI,lneq:SI,lneqq:TI,lnsim:AI,loang:NI,loarr:DI,lobrk:MI,longleftarrow:BI,LongLeftArrow:$I,Longleftarrow:OI,longleftrightarrow:LI,LongLeftRightArrow:II,Longleftrightarrow:PI,longmapsto:FI,longrightarrow:RI,LongRightArrow:VI,Longrightarrow:zI,looparrowleft:UI,looparrowright:qI,lopar:HI,Lopf:jI,lopf:WI,loplus:ZI,lotimes:KI,lowast:GI,lowbar:YI,LowerLeftArrow:JI,LowerRightArrow:XI,loz:QI,lozenge:eP,lozf:tP,lpar:nP,lparlt:oP,lrarr:rP,lrcorner:iP,lrhar:sP,lrhard:aP,lrm:lP,lrtri:cP,lsaquo:uP,lscr:dP,Lscr:fP,lsh:pP,Lsh:hP,lsim:mP,lsime:gP,lsimg:vP,lsqb:yP,lsquo:_P,lsquor:CP,Lstrok:bP,lstrok:kP,ltcc:wP,ltcir:EP,lt:xP,LT:SP,Lt:TP,ltdot:AP,lthree:NP,ltimes:DP,ltlarr:MP,ltquest:BP,ltri:$P,ltrie:OP,ltrif:LP,ltrPar:IP,lurdshar:PP,luruhar:FP,lvertneqq:RP,lvnE:VP,macr:zP,male:UP,malt:qP,maltese:HP,Map:"⤅",map:jP,mapsto:WP,mapstodown:ZP,mapstoleft:KP,mapstoup:GP,marker:YP,mcomma:JP,Mcy:XP,mcy:QP,mdash:eF,mDDot:tF,measuredangle:nF,MediumSpace:oF,Mellintrf:rF,Mfr:iF,mfr:sF,mho:aF,micro:lF,midast:cF,midcir:uF,mid:dF,middot:fF,minusb:pF,minus:hF,minusd:mF,minusdu:gF,MinusPlus:vF,mlcp:yF,mldr:_F,mnplus:CF,models:bF,Mopf:kF,mopf:wF,mp:EF,mscr:xF,Mscr:SF,mstpos:TF,Mu:AF,mu:NF,multimap:DF,mumap:MF,nabla:BF,Nacute:$F,nacute:OF,nang:LF,nap:IF,napE:PF,napid:FF,napos:RF,napprox:VF,natural:zF,naturals:UF,natur:qF,nbsp:HF,nbump:jF,nbumpe:WF,ncap:ZF,Ncaron:KF,ncaron:GF,Ncedil:YF,ncedil:JF,ncong:XF,ncongdot:QF,ncup:eR,Ncy:tR,ncy:nR,ndash:oR,nearhk:rR,nearr:iR,neArr:sR,nearrow:aR,ne:lR,nedot:cR,NegativeMediumSpace:uR,NegativeThickSpace:dR,NegativeThinSpace:fR,NegativeVeryThinSpace:pR,nequiv:hR,nesear:mR,nesim:gR,NestedGreaterGreater:vR,NestedLessLess:yR,NewLine:_R,nexist:CR,nexists:bR,Nfr:kR,nfr:wR,ngE:ER,nge:xR,ngeq:SR,ngeqq:TR,ngeqslant:AR,nges:NR,nGg:DR,ngsim:MR,nGt:BR,ngt:$R,ngtr:OR,nGtv:LR,nharr:IR,nhArr:PR,nhpar:FR,ni:RR,nis:VR,nisd:zR,niv:UR,NJcy:qR,njcy:HR,nlarr:jR,nlArr:WR,nldr:ZR,nlE:KR,nle:GR,nleftarrow:YR,nLeftarrow:JR,nleftrightarrow:XR,nLeftrightarrow:QR,nleq:eV,nleqq:tV,nleqslant:nV,nles:oV,nless:rV,nLl:iV,nlsim:sV,nLt:aV,nlt:lV,nltri:cV,nltrie:uV,nLtv:dV,nmid:fV,NoBreak:pV,NonBreakingSpace:hV,nopf:mV,Nopf:gV,Not:vV,not:yV,NotCongruent:_V,NotCupCap:CV,NotDoubleVerticalBar:bV,NotElement:kV,NotEqual:wV,NotEqualTilde:EV,NotExists:xV,NotGreater:SV,NotGreaterEqual:TV,NotGreaterFullEqual:AV,NotGreaterGreater:NV,NotGreaterLess:DV,NotGreaterSlantEqual:MV,NotGreaterTilde:BV,NotHumpDownHump:$V,NotHumpEqual:OV,notin:LV,notindot:IV,notinE:PV,notinva:FV,notinvb:RV,notinvc:VV,NotLeftTriangleBar:zV,NotLeftTriangle:UV,NotLeftTriangleEqual:qV,NotLess:HV,NotLessEqual:jV,NotLessGreater:WV,NotLessLess:ZV,NotLessSlantEqual:KV,NotLessTilde:GV,NotNestedGreaterGreater:YV,NotNestedLessLess:JV,notni:XV,notniva:QV,notnivb:ez,notnivc:tz,NotPrecedes:nz,NotPrecedesEqual:oz,NotPrecedesSlantEqual:rz,NotReverseElement:iz,NotRightTriangleBar:sz,NotRightTriangle:az,NotRightTriangleEqual:lz,NotSquareSubset:cz,NotSquareSubsetEqual:uz,NotSquareSuperset:dz,NotSquareSupersetEqual:fz,NotSubset:pz,NotSubsetEqual:hz,NotSucceeds:mz,NotSucceedsEqual:gz,NotSucceedsSlantEqual:vz,NotSucceedsTilde:yz,NotSuperset:_z,NotSupersetEqual:Cz,NotTilde:bz,NotTildeEqual:kz,NotTildeFullEqual:wz,NotTildeTilde:Ez,NotVerticalBar:xz,nparallel:Sz,npar:Tz,nparsl:Az,npart:Nz,npolint:Dz,npr:Mz,nprcue:Bz,nprec:$z,npreceq:Oz,npre:Lz,nrarrc:Iz,nrarr:Pz,nrArr:Fz,nrarrw:Rz,nrightarrow:Vz,nRightarrow:zz,nrtri:Uz,nrtrie:qz,nsc:Hz,nsccue:jz,nsce:Wz,Nscr:Zz,nscr:Kz,nshortmid:Gz,nshortparallel:Yz,nsim:Jz,nsime:Xz,nsimeq:Qz,nsmid:eU,nspar:tU,nsqsube:nU,nsqsupe:oU,nsub:rU,nsubE:iU,nsube:sU,nsubset:aU,nsubseteq:lU,nsubseteqq:cU,nsucc:uU,nsucceq:dU,nsup:fU,nsupE:pU,nsupe:hU,nsupset:mU,nsupseteq:gU,nsupseteqq:vU,ntgl:yU,Ntilde:_U,ntilde:CU,ntlg:bU,ntriangleleft:kU,ntrianglelefteq:wU,ntriangleright:EU,ntrianglerighteq:xU,Nu:SU,nu:TU,num:AU,numero:NU,numsp:DU,nvap:MU,nvdash:BU,nvDash:$U,nVdash:OU,nVDash:LU,nvge:IU,nvgt:PU,nvHarr:FU,nvinfin:RU,nvlArr:VU,nvle:zU,nvlt:UU,nvltrie:qU,nvrArr:HU,nvrtrie:jU,nvsim:WU,nwarhk:ZU,nwarr:KU,nwArr:GU,nwarrow:YU,nwnear:JU,Oacute:XU,oacute:QU,oast:eq,Ocirc:tq,ocirc:nq,ocir:oq,Ocy:rq,ocy:iq,odash:sq,Odblac:aq,odblac:lq,odiv:cq,odot:uq,odsold:dq,OElig:fq,oelig:pq,ofcir:hq,Ofr:mq,ofr:gq,ogon:vq,Ograve:yq,ograve:_q,ogt:Cq,ohbar:bq,ohm:kq,oint:wq,olarr:Eq,olcir:xq,olcross:Sq,oline:Tq,olt:Aq,Omacr:Nq,omacr:Dq,Omega:Mq,omega:Bq,Omicron:$q,omicron:Oq,omid:Lq,ominus:Iq,Oopf:Pq,oopf:Fq,opar:Rq,OpenCurlyDoubleQuote:Vq,OpenCurlyQuote:zq,operp:Uq,oplus:qq,orarr:Hq,Or:jq,or:Wq,ord:Zq,order:Kq,orderof:Gq,ordf:Yq,ordm:Jq,origof:Xq,oror:Qq,orslope:eH,orv:tH,oS:nH,Oscr:oH,oscr:rH,Oslash:iH,oslash:sH,osol:aH,Otilde:lH,otilde:cH,otimesas:uH,Otimes:dH,otimes:fH,Ouml:pH,ouml:hH,ovbar:mH,OverBar:gH,OverBrace:vH,OverBracket:yH,OverParenthesis:_H,para:CH,parallel:bH,par:kH,parsim:wH,parsl:EH,part:xH,PartialD:SH,Pcy:TH,pcy:AH,percnt:NH,period:DH,permil:MH,perp:BH,pertenk:$H,Pfr:OH,pfr:LH,Phi:IH,phi:PH,phiv:FH,phmmat:RH,phone:VH,Pi:zH,pi:UH,pitchfork:qH,piv:HH,planck:jH,planckh:WH,plankv:ZH,plusacir:KH,plusb:GH,pluscir:YH,plus:JH,plusdo:XH,plusdu:QH,pluse:ej,PlusMinus:tj,plusmn:nj,plussim:oj,plustwo:rj,pm:ij,Poincareplane:sj,pointint:aj,popf:lj,Popf:cj,pound:uj,prap:dj,Pr:fj,pr:pj,prcue:hj,precapprox:mj,prec:gj,preccurlyeq:vj,Precedes:yj,PrecedesEqual:_j,PrecedesSlantEqual:Cj,PrecedesTilde:bj,preceq:kj,precnapprox:wj,precneqq:Ej,precnsim:xj,pre:Sj,prE:Tj,precsim:Aj,prime:Nj,Prime:Dj,primes:Mj,prnap:Bj,prnE:$j,prnsim:Oj,prod:Lj,Product:Ij,profalar:Pj,profline:Fj,profsurf:Rj,prop:Vj,Proportional:zj,Proportion:Uj,propto:qj,prsim:Hj,prurel:jj,Pscr:Wj,pscr:Zj,Psi:Kj,psi:Gj,puncsp:Yj,Qfr:Jj,qfr:Xj,qint:Qj,qopf:eW,Qopf:tW,qprime:nW,Qscr:oW,qscr:rW,quaternions:iW,quatint:sW,quest:aW,questeq:lW,quot:cW,QUOT:uW,rAarr:dW,race:fW,Racute:pW,racute:hW,radic:mW,raemptyv:gW,rang:vW,Rang:yW,rangd:_W,range:CW,rangle:bW,raquo:kW,rarrap:wW,rarrb:EW,rarrbfs:xW,rarrc:SW,rarr:TW,Rarr:AW,rArr:NW,rarrfs:DW,rarrhk:MW,rarrlp:BW,rarrpl:$W,rarrsim:OW,Rarrtl:LW,rarrtl:IW,rarrw:PW,ratail:FW,rAtail:RW,ratio:VW,rationals:zW,rbarr:UW,rBarr:qW,RBarr:HW,rbbrk:jW,rbrace:WW,rbrack:ZW,rbrke:KW,rbrksld:GW,rbrkslu:YW,Rcaron:JW,rcaron:XW,Rcedil:QW,rcedil:eZ,rceil:tZ,rcub:nZ,Rcy:oZ,rcy:rZ,rdca:iZ,rdldhar:sZ,rdquo:aZ,rdquor:lZ,rdsh:cZ,real:uZ,realine:dZ,realpart:fZ,reals:pZ,Re:hZ,rect:mZ,reg:gZ,REG:vZ,ReverseElement:yZ,ReverseEquilibrium:_Z,ReverseUpEquilibrium:CZ,rfisht:bZ,rfloor:kZ,rfr:wZ,Rfr:EZ,rHar:xZ,rhard:SZ,rharu:TZ,rharul:AZ,Rho:NZ,rho:DZ,rhov:MZ,RightAngleBracket:BZ,RightArrowBar:$Z,rightarrow:OZ,RightArrow:LZ,Rightarrow:IZ,RightArrowLeftArrow:PZ,rightarrowtail:FZ,RightCeiling:RZ,RightDoubleBracket:VZ,RightDownTeeVector:zZ,RightDownVectorBar:UZ,RightDownVector:qZ,RightFloor:HZ,rightharpoondown:jZ,rightharpoonup:WZ,rightleftarrows:ZZ,rightleftharpoons:KZ,rightrightarrows:GZ,rightsquigarrow:YZ,RightTeeArrow:JZ,RightTee:XZ,RightTeeVector:QZ,rightthreetimes:eK,RightTriangleBar:tK,RightTriangle:nK,RightTriangleEqual:oK,RightUpDownVector:rK,RightUpTeeVector:iK,RightUpVectorBar:sK,RightUpVector:aK,RightVectorBar:lK,RightVector:cK,ring:uK,risingdotseq:dK,rlarr:fK,rlhar:pK,rlm:hK,rmoustache:mK,rmoust:gK,rnmid:vK,roang:yK,roarr:_K,robrk:CK,ropar:bK,ropf:kK,Ropf:wK,roplus:EK,rotimes:xK,RoundImplies:SK,rpar:TK,rpargt:AK,rppolint:NK,rrarr:DK,Rrightarrow:MK,rsaquo:BK,rscr:$K,Rscr:OK,rsh:LK,Rsh:IK,rsqb:PK,rsquo:FK,rsquor:RK,rthree:VK,rtimes:zK,rtri:UK,rtrie:qK,rtrif:HK,rtriltri:jK,RuleDelayed:WK,ruluhar:ZK,rx:KK,Sacute:GK,sacute:YK,sbquo:JK,scap:XK,Scaron:QK,scaron:eG,Sc:tG,sc:nG,sccue:oG,sce:rG,scE:iG,Scedil:sG,scedil:aG,Scirc:lG,scirc:cG,scnap:uG,scnE:dG,scnsim:fG,scpolint:pG,scsim:hG,Scy:mG,scy:gG,sdotb:vG,sdot:yG,sdote:_G,searhk:CG,searr:bG,seArr:kG,searrow:wG,sect:EG,semi:xG,seswar:SG,setminus:TG,setmn:AG,sext:NG,Sfr:DG,sfr:MG,sfrown:BG,sharp:$G,SHCHcy:OG,shchcy:LG,SHcy:IG,shcy:PG,ShortDownArrow:FG,ShortLeftArrow:RG,shortmid:VG,shortparallel:zG,ShortRightArrow:UG,ShortUpArrow:qG,shy:HG,Sigma:jG,sigma:WG,sigmaf:ZG,sigmav:KG,sim:GG,simdot:YG,sime:JG,simeq:XG,simg:QG,simgE:eY,siml:tY,simlE:nY,simne:oY,simplus:rY,simrarr:iY,slarr:sY,SmallCircle:aY,smallsetminus:lY,smashp:cY,smeparsl:uY,smid:dY,smile:fY,smt:pY,smte:hY,smtes:mY,SOFTcy:gY,softcy:vY,solbar:yY,solb:_Y,sol:CY,Sopf:bY,sopf:kY,spades:wY,spadesuit:EY,spar:xY,sqcap:SY,sqcaps:TY,sqcup:AY,sqcups:NY,Sqrt:DY,sqsub:MY,sqsube:BY,sqsubset:$Y,sqsubseteq:OY,sqsup:LY,sqsupe:IY,sqsupset:PY,sqsupseteq:FY,square:RY,Square:VY,SquareIntersection:zY,SquareSubset:UY,SquareSubsetEqual:qY,SquareSuperset:HY,SquareSupersetEqual:jY,SquareUnion:WY,squarf:ZY,squ:KY,squf:GY,srarr:YY,Sscr:JY,sscr:XY,ssetmn:QY,ssmile:eJ,sstarf:tJ,Star:nJ,star:oJ,starf:rJ,straightepsilon:iJ,straightphi:sJ,strns:aJ,sub:lJ,Sub:cJ,subdot:uJ,subE:dJ,sube:fJ,subedot:pJ,submult:hJ,subnE:mJ,subne:gJ,subplus:vJ,subrarr:yJ,subset:_J,Subset:CJ,subseteq:bJ,subseteqq:kJ,SubsetEqual:wJ,subsetneq:EJ,subsetneqq:xJ,subsim:SJ,subsub:TJ,subsup:AJ,succapprox:NJ,succ:DJ,succcurlyeq:MJ,Succeeds:BJ,SucceedsEqual:$J,SucceedsSlantEqual:OJ,SucceedsTilde:LJ,succeq:IJ,succnapprox:PJ,succneqq:FJ,succnsim:RJ,succsim:VJ,SuchThat:zJ,sum:UJ,Sum:qJ,sung:HJ,sup1:jJ,sup2:WJ,sup3:ZJ,sup:KJ,Sup:GJ,supdot:YJ,supdsub:JJ,supE:XJ,supe:QJ,supedot:eX,Superset:tX,SupersetEqual:nX,suphsol:oX,suphsub:rX,suplarr:iX,supmult:sX,supnE:aX,supne:lX,supplus:cX,supset:uX,Supset:dX,supseteq:fX,supseteqq:pX,supsetneq:hX,supsetneqq:mX,supsim:gX,supsub:vX,supsup:yX,swarhk:_X,swarr:CX,swArr:bX,swarrow:kX,swnwar:wX,szlig:EX,Tab:xX,target:SX,Tau:TX,tau:AX,tbrk:NX,Tcaron:DX,tcaron:MX,Tcedil:BX,tcedil:$X,Tcy:OX,tcy:LX,tdot:IX,telrec:PX,Tfr:FX,tfr:RX,there4:VX,therefore:zX,Therefore:UX,Theta:qX,theta:HX,thetasym:jX,thetav:WX,thickapprox:ZX,thicksim:KX,ThickSpace:GX,ThinSpace:YX,thinsp:JX,thkap:XX,thksim:QX,THORN:eQ,thorn:tQ,tilde:nQ,Tilde:oQ,TildeEqual:rQ,TildeFullEqual:iQ,TildeTilde:sQ,timesbar:aQ,timesb:lQ,times:cQ,timesd:uQ,tint:dQ,toea:fQ,topbot:pQ,topcir:hQ,top:mQ,Topf:gQ,topf:vQ,topfork:yQ,tosa:_Q,tprime:CQ,trade:bQ,TRADE:kQ,triangle:wQ,triangledown:EQ,triangleleft:xQ,trianglelefteq:SQ,triangleq:TQ,triangleright:AQ,trianglerighteq:NQ,tridot:DQ,trie:MQ,triminus:BQ,TripleDot:$Q,triplus:OQ,trisb:LQ,tritime:IQ,trpezium:PQ,Tscr:FQ,tscr:RQ,TScy:VQ,tscy:zQ,TSHcy:UQ,tshcy:qQ,Tstrok:HQ,tstrok:jQ,twixt:WQ,twoheadleftarrow:ZQ,twoheadrightarrow:KQ,Uacute:GQ,uacute:YQ,uarr:JQ,Uarr:XQ,uArr:QQ,Uarrocir:eee,Ubrcy:tee,ubrcy:nee,Ubreve:oee,ubreve:ree,Ucirc:iee,ucirc:see,Ucy:aee,ucy:lee,udarr:cee,Udblac:uee,udblac:dee,udhar:fee,ufisht:pee,Ufr:hee,ufr:mee,Ugrave:gee,ugrave:vee,uHar:yee,uharl:_ee,uharr:Cee,uhblk:bee,ulcorn:kee,ulcorner:wee,ulcrop:Eee,ultri:xee,Umacr:See,umacr:Tee,uml:Aee,UnderBar:Nee,UnderBrace:Dee,UnderBracket:Mee,UnderParenthesis:Bee,Union:$ee,UnionPlus:Oee,Uogon:Lee,uogon:Iee,Uopf:Pee,uopf:Fee,UpArrowBar:Ree,uparrow:Vee,UpArrow:zee,Uparrow:Uee,UpArrowDownArrow:qee,updownarrow:Hee,UpDownArrow:jee,Updownarrow:Wee,UpEquilibrium:Zee,upharpoonleft:Kee,upharpoonright:Gee,uplus:Yee,UpperLeftArrow:Jee,UpperRightArrow:Xee,upsi:Qee,Upsi:ete,upsih:tte,Upsilon:nte,upsilon:ote,UpTeeArrow:rte,UpTee:ite,upuparrows:ste,urcorn:ate,urcorner:lte,urcrop:cte,Uring:ute,uring:dte,urtri:fte,Uscr:pte,uscr:hte,utdot:mte,Utilde:gte,utilde:vte,utri:yte,utrif:_te,uuarr:Cte,Uuml:bte,uuml:kte,uwangle:wte,vangrt:Ete,varepsilon:xte,varkappa:Ste,varnothing:Tte,varphi:Ate,varpi:Nte,varpropto:Dte,varr:Mte,vArr:Bte,varrho:$te,varsigma:Ote,varsubsetneq:Lte,varsubsetneqq:Ite,varsupsetneq:Pte,varsupsetneqq:Fte,vartheta:Rte,vartriangleleft:Vte,vartriangleright:zte,vBar:Ute,Vbar:qte,vBarv:Hte,Vcy:jte,vcy:Wte,vdash:Zte,vDash:Kte,Vdash:Gte,VDash:Yte,Vdashl:Jte,veebar:Xte,vee:Qte,Vee:ene,veeeq:tne,vellip:nne,verbar:one,Verbar:rne,vert:ine,Vert:sne,VerticalBar:ane,VerticalLine:lne,VerticalSeparator:cne,VerticalTilde:une,VeryThinSpace:dne,Vfr:fne,vfr:pne,vltri:hne,vnsub:mne,vnsup:gne,Vopf:vne,vopf:yne,vprop:_ne,vrtri:Cne,Vscr:bne,vscr:kne,vsubnE:wne,vsubne:Ene,vsupnE:xne,vsupne:Sne,Vvdash:Tne,vzigzag:Ane,Wcirc:Nne,wcirc:Dne,wedbar:Mne,wedge:Bne,Wedge:$ne,wedgeq:One,weierp:Lne,Wfr:Ine,wfr:Pne,Wopf:Fne,wopf:Rne,wp:Vne,wr:zne,wreath:Une,Wscr:qne,wscr:Hne,xcap:jne,xcirc:Wne,xcup:Zne,xdtri:Kne,Xfr:Gne,xfr:Yne,xharr:Jne,xhArr:Xne,Xi:Qne,xi:eoe,xlarr:toe,xlArr:noe,xmap:ooe,xnis:roe,xodot:ioe,Xopf:soe,xopf:aoe,xoplus:loe,xotime:coe,xrarr:uoe,xrArr:doe,Xscr:foe,xscr:poe,xsqcup:hoe,xuplus:moe,xutri:goe,xvee:voe,xwedge:yoe,Yacute:_oe,yacute:Coe,YAcy:boe,yacy:koe,Ycirc:woe,ycirc:Eoe,Ycy:xoe,ycy:Soe,yen:Toe,Yfr:Aoe,yfr:Noe,YIcy:Doe,yicy:Moe,Yopf:Boe,yopf:$oe,Yscr:Ooe,yscr:Loe,YUcy:Ioe,yucy:Poe,yuml:Foe,Yuml:Roe,Zacute:Voe,zacute:zoe,Zcaron:Uoe,zcaron:qoe,Zcy:Hoe,zcy:joe,Zdot:Woe,zdot:Zoe,zeetrf:Koe,ZeroWidthSpace:Goe,Zeta:Yoe,zeta:Joe,zfr:Xoe,Zfr:Qoe,ZHcy:ere,zhcy:tre,zigrarr:nre,zopf:ore,Zopf:rre,Zscr:ire,zscr:sre,zwj:are,zwnj:lre};var Hp=cre,eu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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={},Ad={};function ure(t){var e,n,o=Ad[t];if(o)return o;for(o=Ad[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 La(t,e,n){var o,r,s,a,l,c="";for(typeof e!="string"&&(n=e,e=La.defaultChars),typeof n>"u"&&(n=!0),l=ure(e),o=0,r=t.length;o<r;o++){if(s=t.charCodeAt(o),n&&s===37&&o+2<r&&/^[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<r&&(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}La.defaultChars=";/?:@&=+$,-_.!~*'()#";La.componentChars="-_.!~*'()";var dre=La,Nd={};function fre(t){var e,n,o=Nd[t];if(o)return o;for(o=Nd[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 Ia(t,e){var n;return typeof e!="string"&&(e=Ia.defaultChars),n=fre(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var r,s,a,l,c,u,d,f="";for(r=0,s=o.length;r<s;r+=3){if(a=parseInt(o.slice(r+1,r+3),16),a<128){f+=n[a];continue}if((a&224)===192&&r+3<s&&(l=parseInt(o.slice(r+4,r+6),16),(l&192)===128)){d=a<<6&1984|l&63,d<128?f+="��":f+=String.fromCharCode(d),r+=3;continue}if((a&240)===224&&r+6<s&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+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),r+=6;continue}if((a&248)===240&&r+9<s&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+9),16),u=parseInt(o.slice(r+10,r+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))),r+=9;continue}f+="�"}return f})}Ia.defaultChars=";/?:@&=+$,#";Ia.componentChars="";var pre=Ia,hre=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 ea(){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 mre=/^([a-z0-9.+-]+:)/i,gre=/:[0-9]*$/,vre=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,yre=["<",">",'"',"`"," ","\r",`
|
|
3
|
-
`," "],
|
|
4
|
-
`};Cn.fence=function(t,e,n,o,r){var s=t[e],a=s.info?
|
|
1
|
+
"use strict";var Ig=Object.defineProperty;var Pg=(t,e,n)=>e in t?Ig(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var z=(t,e,n)=>(Pg(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),Ki=require("vue-router"),ho=require("vuedraggable");const Fg=i.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(Ki.RouterView),i.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),ne=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Rg={},Vg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zg(t,e){return i.openBlock(),i.createElementBlock("svg",Vg,[...e[0]||(e[0]=[i.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 Ug=ne(Rg,[["render",zg]]),qg={},Hg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jg(t,e){return i.openBlock(),i.createElementBlock("svg",Hg,[...e[0]||(e[0]=[i.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 Wg=ne(qg,[["render",jg]]),Zg={},Kg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gg(t,e){return i.openBlock(),i.createElementBlock("svg",Kg,[...e[0]||(e[0]=[i.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 Yg=ne(Zg,[["render",Gg]]),Jg={},Xg={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qg(t,e){return i.openBlock(),i.createElementBlock("svg",Xg,[...e[0]||(e[0]=[i.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 e0=ne(Jg,[["render",Qg]]),t0={},n0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o0(t,e){return i.openBlock(),i.createElementBlock("svg",n0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const r0=ne(t0,[["render",o0]]),i0={},s0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function a0(t,e){return i.openBlock(),i.createElementBlock("svg",s0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16V13H16C16.2833 13 16.5207 12.904 16.712 12.712C16.904 12.5207 17 12.2833 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.5207 11.0957 16.2833 11 16 11H13V8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8V11H8C7.71667 11 7.479 11.0957 7.287 11.287C7.09567 11.479 7 11.7167 7 12C7 12.2833 7.09567 12.5207 7.287 12.712C7.479 12.904 7.71667 13 8 13H11V16C11 16.2833 11.096 16.5207 11.288 16.712C11.4793 16.904 11.7167 17 12 17ZM5 21C4.45 21 3.979 20.8043 3.587 20.413C3.19567 20.021 3 19.55 3 19V5C3 4.45 3.19567 3.979 3.587 3.587C3.979 3.19567 4.45 3 5 3H19C19.55 3 20.021 3.19567 20.413 3.587C20.8043 3.979 21 4.45 21 5V19C21 19.55 20.8043 20.021 20.413 20.413C20.021 20.8043 19.55 21 19 21H5ZM5 19H19V5H5V19ZM5 19V5V19Z",fill:"black"},null,-1)])])}const l0=ne(i0,[["render",a0]]),c0={},u0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d0(t,e){return i.openBlock(),i.createElementBlock("svg",u0,[...e[0]||(e[0]=[i.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 f0=ne(c0,[["render",d0]]),p0={},h0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function m0(t,e){return i.openBlock(),i.createElementBlock("svg",h0,[...e[0]||(e[0]=[i.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 g0=ne(p0,[["render",m0]]),v0={},y0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _0(t,e){return i.openBlock(),i.createElementBlock("svg",y0,[...e[0]||(e[0]=[i.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 C0=ne(v0,[["render",_0]]),b0={},k0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function w0(t,e){return i.openBlock(),i.createElementBlock("svg",k0,[...e[0]||(e[0]=[i.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 E0=ne(b0,[["render",w0]]),x0={},S0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T0(t,e){return i.openBlock(),i.createElementBlock("svg",S0,[...e[0]||(e[0]=[i.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 A0=ne(x0,[["render",T0]]),N0={},D0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M0(t,e){return i.openBlock(),i.createElementBlock("svg",D0,[...e[0]||(e[0]=[i.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 B0=ne(N0,[["render",M0]]),$0={},O0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function L0(t,e){return i.openBlock(),i.createElementBlock("svg",O0,[...e[0]||(e[0]=[i.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 I0=ne($0,[["render",L0]]),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 i.openBlock(),i.createElementBlock("svg",F0,[...e[0]||(e[0]=[i.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 V0=ne(P0,[["render",R0]]),z0={},U0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q0(t,e){return i.openBlock(),i.createElementBlock("svg",U0,[...e[0]||(e[0]=[i.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 H0=ne(z0,[["render",q0]]),j0={},W0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z0(t,e){return i.openBlock(),i.createElementBlock("svg",W0,[...e[0]||(e[0]=[i.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 K0=ne(j0,[["render",Z0]]),G0={},Y0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J0(t,e){return i.openBlock(),i.createElementBlock("svg",Y0,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const X0=ne(G0,[["render",J0]]),Q0={},e2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t2(t,e){return i.openBlock(),i.createElementBlock("svg",e2,[...e[0]||(e[0]=[i.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 n2=ne(Q0,[["render",t2]]),o2={},r2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i2(t,e){return i.openBlock(),i.createElementBlock("svg",r2,[...e[0]||(e[0]=[i.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 s2=ne(o2,[["render",i2]]),a2={},l2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c2(t,e){return i.openBlock(),i.createElementBlock("svg",l2,[...e[0]||(e[0]=[i.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 u2=ne(a2,[["render",c2]]),d2={},f2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p2(t,e){return i.openBlock(),i.createElementBlock("svg",f2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const h2=ne(d2,[["render",p2]]),m2={},g2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v2(t,e){return i.openBlock(),i.createElementBlock("svg",g2,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const y2=ne(m2,[["render",v2]]),_2={},C2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b2(t,e){return i.openBlock(),i.createElementBlock("svg",C2,[...e[0]||(e[0]=[i.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 k2=ne(_2,[["render",b2]]),w2={},E2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function x2(t,e){return i.openBlock(),i.createElementBlock("svg",E2,[...e[0]||(e[0]=[i.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 S2=ne(w2,[["render",x2]]),T2={},A2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N2(t,e){return i.openBlock(),i.createElementBlock("svg",A2,[...e[0]||(e[0]=[i.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 D2=ne(T2,[["render",N2]]),M2={},B2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $2(t,e){return i.openBlock(),i.createElementBlock("svg",B2,[...e[0]||(e[0]=[i.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 O2=ne(M2,[["render",$2]]),L2={},I2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function P2(t,e){return i.openBlock(),i.createElementBlock("svg",I2,[...e[0]||(e[0]=[i.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 F2=ne(L2,[["render",P2]]),R2={},V2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z2(t,e){return i.openBlock(),i.createElementBlock("svg",V2,[...e[0]||(e[0]=[i.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 U2=ne(R2,[["render",z2]]),q2={},H2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j2(t,e){return i.openBlock(),i.createElementBlock("svg",H2,[...e[0]||(e[0]=[i.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 W2=ne(q2,[["render",j2]]),Z2={},K2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G2(t,e){return i.openBlock(),i.createElementBlock("svg",K2,[...e[0]||(e[0]=[i.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 Y2=ne(Z2,[["render",G2]]),J2={},X2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q2(t,e){return i.openBlock(),i.createElementBlock("svg",X2,[...e[0]||(e[0]=[i.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 ev=ne(J2,[["render",Q2]]),tv={},nv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ov(t,e){return i.openBlock(),i.createElementBlock("svg",nv,[...e[0]||(e[0]=[i.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 rv=ne(tv,[["render",ov]]),iv={},sv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function av(t,e){return i.openBlock(),i.createElementBlock("svg",sv,[...e[0]||(e[0]=[i.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 lv=ne(iv,[["render",av]]),cv={},uv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dv(t,e){return i.openBlock(),i.createElementBlock("svg",uv,[...e[0]||(e[0]=[i.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 fv=ne(cv,[["render",dv]]),pv={},hv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mv(t,e){return i.openBlock(),i.createElementBlock("svg",hv,[...e[0]||(e[0]=[i.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 gv=ne(pv,[["render",mv]]),vv={},yv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _v(t,e){return i.openBlock(),i.createElementBlock("svg",yv,[...e[0]||(e[0]=[i.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 Cv=ne(vv,[["render",_v]]),bv={},kv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function wv(t,e){return i.openBlock(),i.createElementBlock("svg",kv,[...e[0]||(e[0]=[i.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 Ev=ne(bv,[["render",wv]]),xv={},Sv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Tv(t,e){return i.openBlock(),i.createElementBlock("svg",Sv,[...e[0]||(e[0]=[i.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 Av=ne(xv,[["render",Tv]]),Nv={},Dv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Mv(t,e){return i.openBlock(),i.createElementBlock("svg",Dv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const Bv=ne(Nv,[["render",Mv]]),$v={},Ov={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lv(t,e){return i.openBlock(),i.createElementBlock("svg",Ov,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const Iv=ne($v,[["render",Lv]]),Pv=i.defineComponent({name:"LoadingIcon"});const Fv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Rv(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("svg",Fv,[...e[0]||(e[0]=[i.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),i.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),i.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const Vv=ne(Pv,[["render",Rv],["__scopeId","data-v-ad6da4a9"]]),zv={},Uv={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function qv(t,e){return i.openBlock(),i.createElementBlock("svg",Uv,[...e[0]||(e[0]=[i.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 Hv=ne(zv,[["render",qv]]),jv={},Wv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zv(t,e){return i.openBlock(),i.createElementBlock("svg",Wv,[...e[0]||(e[0]=[i.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 Kv=ne(jv,[["render",Zv]]),Gv={},Yv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jv(t,e){return i.openBlock(),i.createElementBlock("svg",Yv,[...e[0]||(e[0]=[i.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const Xv=ne(Gv,[["render",Jv]]),Qv={},e3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t3(t,e){return i.openBlock(),i.createElementBlock("svg",e3,[...e[0]||(e[0]=[i.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 n3=ne(Qv,[["render",t3]]),o3={},r3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i3(t,e){return i.openBlock(),i.createElementBlock("svg",r3,[...e[0]||(e[0]=[i.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 s3=ne(o3,[["render",i3]]),a3={},l3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c3(t,e){return i.openBlock(),i.createElementBlock("svg",l3,[...e[0]||(e[0]=[i.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 u3=ne(a3,[["render",c3]]),d3={},f3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p3(t,e){return i.openBlock(),i.createElementBlock("svg",f3,[...e[0]||(e[0]=[i.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 h3=ne(d3,[["render",p3]]),m3={},g3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v3(t,e){return i.openBlock(),i.createElementBlock("svg",g3,[...e[0]||(e[0]=[i.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 y3=ne(m3,[["render",v3]]),_3={},C3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b3(t,e){return i.openBlock(),i.createElementBlock("svg",C3,[...e[0]||(e[0]=[i.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 k3=ne(_3,[["render",b3]]),w3={},E3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function x3(t,e){return i.openBlock(),i.createElementBlock("svg",E3,[...e[0]||(e[0]=[i.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 S3=ne(w3,[["render",x3]]),T3={},A3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N3(t,e){return i.openBlock(),i.createElementBlock("svg",A3,[...e[0]||(e[0]=[i.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 D3=ne(T3,[["render",N3]]),M3={},B3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $3(t,e){return i.openBlock(),i.createElementBlock("svg",B3,[...e[0]||(e[0]=[i.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 O3=ne(M3,[["render",$3]]),L3={},I3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function P3(t,e){return i.openBlock(),i.createElementBlock("svg",I3,[...e[0]||(e[0]=[i.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 F3=ne(L3,[["render",P3]]),R3={},V3={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z3(t,e){return i.openBlock(),i.createElementBlock("svg",V3,[...e[0]||(e[0]=[i.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 U3=ne(R3,[["render",z3]]),q3={},H3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j3(t,e){return i.openBlock(),i.createElementBlock("svg",H3,[...e[0]||(e[0]=[i.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 W3=ne(q3,[["render",j3]]),Z3={},K3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G3(t,e){return i.openBlock(),i.createElementBlock("svg",K3,[...e[0]||(e[0]=[i.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 Y3=ne(Z3,[["render",G3]]),J3={},X3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q3(t,e){return i.openBlock(),i.createElementBlock("svg",X3,[...e[0]||(e[0]=[i.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 e5=ne(J3,[["render",Q3]]),t5={},n5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o5(t,e){return i.openBlock(),i.createElementBlock("svg",n5,[...e[0]||(e[0]=[i.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 r5=ne(t5,[["render",o5]]),i5={},s5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function a5(t,e){return i.openBlock(),i.createElementBlock("svg",s5,[...e[0]||(e[0]=[i.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 l5=ne(i5,[["render",a5]]),c5={},u5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d5(t,e){return i.openBlock(),i.createElementBlock("svg",u5,[...e[0]||(e[0]=[i.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 f5=ne(c5,[["render",d5]]),p5={},h5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function m5(t,e){return i.openBlock(),i.createElementBlock("svg",h5,[...e[0]||(e[0]=[i.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 g5=ne(p5,[["render",m5]]),v5={},y5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _5(t,e){return i.openBlock(),i.createElementBlock("svg",y5,[...e[0]||(e[0]=[i.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 C5=ne(v5,[["render",_5]]),b5={},k5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function w5(t,e){return i.openBlock(),i.createElementBlock("svg",k5,[...e[0]||(e[0]=[i.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 E5=ne(b5,[["render",w5]]),x5={},S5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T5(t,e){return i.openBlock(),i.createElementBlock("svg",S5,[...e[0]||(e[0]=[i.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 A5=ne(x5,[["render",T5]]),N5={},D5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M5(t,e){return i.openBlock(),i.createElementBlock("svg",D5,[...e[0]||(e[0]=[i.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 B5=ne(N5,[["render",M5]]),$5={},O5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function L5(t,e){return i.openBlock(),i.createElementBlock("svg",O5,[...e[0]||(e[0]=[i.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 I5=ne($5,[["render",L5]]),P5={},F5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R5(t,e){return i.openBlock(),i.createElementBlock("svg",F5,[...e[0]||(e[0]=[i.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 V5=ne(P5,[["render",R5]]),z5={},U5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q5(t,e){return i.openBlock(),i.createElementBlock("svg",U5,[...e[0]||(e[0]=[i.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 H5=ne(z5,[["render",q5]]),j5=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:Ug,AccountCircle:Wg,AccountTreeOutlineRounded:Yg,AccountTreeRounded:e0,Add:r0,AddBoxOutlineRounded:l0,ArchiveOutlineRounded:f0,ArrowBackRounded:g0,ArrowDropDownRounded:C0,ArrowForwardRounded:E0,AssignmentOutlineRounded:A0,AttachFileRounded:B0,CalendarTodayOutlineRounded:I0,CancelRounded:V0,ChatOutline:H0,CheckBoxOutlineBlank:K0,CheckBoxOutlineBlankSharp:X0,CheckBoxOutlineRounded:n2,CheckSmallRounded:s2,ChecklistRounded:u2,ChevronLeft:h2,ChevronRight:y2,CloseRounded:k2,ContactsOutlineRounded:S2,ContentCopyOutline:D2,DeleteOutlineRounded:O2,DragIndicator:F2,EditDocumentRounded:U2,EditOutline:W2,ErrorOutlineRounded:Y2,FilterListRounded:ev,FlagRounded:rv,FlowsheetOutlineRounded:lv,GifBox:fv,GroupsOutline:gv,HomeOutlineRounded:Cv,ImageRounded:Ev,Info:Av,KeyboardArrowDown:Bv,KeyboardArrowUp:Iv,Loading:Vv,Lock:Hv,LogoutRounded:Kv,Menu:Xv,MoreHoriz:n3,MoreTimeRounded:s3,MoreVert:u3,MountainFlagOutlineRounded:h3,PersonAddOutlineRounded:y3,PictureAsPdfRounded:k3,RadioButtonChecked:S3,RadioButtonCheckedOutline:D3,RadioButtonUnchecked:O3,RemoveRounded:F3,SearchRounded:U3,SelectCheckBox:W3,SendRounded:Y3,Settings:e5,SlideshowRounded:r5,Target:l5,TaskOutlineRounded:f5,TextSnippetRounded:g5,TimerOutline:C5,ViewComfyAltRounded:E5,ViewCompactAltRounded:A5,ViewTimelineRounded:B5,WarningOutlineRounded:I5,WarningRounded:V5,WaterfallChartRounded:H5},Symbol.toStringTag,{value:"Module"})),W5={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},ba={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Rc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},Z5={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Rc,...Z5});const np={ROUND:"round",ROUNDED:"rounded"},K5={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},Ae=i.defineComponent({__name:"AoIcon",props:{name:{},size:{default:ba.MD}},setup(t){const e=t,n=i.computed(()=>j5[e.name]);return(o,r)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{class:i.normalizeClass(["ao-icon",`ao-icon--${t.size}`])},null,8,["class"]))}});const G5=["type"],Y5={key:0,class:"ao-button__label"},he=i.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>W5.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>ba.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>np.ROUNDED}},setup(t){const e=t,n=i.computed(()=>e.size),o=i.computed(()=>e.isLoading?"Loading":e.iconName);return(r,s)=>(i.openBlock(),i.createElementBlock("button",{type:t.type,class:i.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}`:"",r.$attrs.disabled?"ao-button--is-disabled":""])},[i.renderSlot(r.$slots,"default",{},()=>[t.label?(i.openBlock(),i.createElementBlock("span",Y5,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(Ae,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,G5))}});function op(t){const e=i.ref(!1),n=i.ref(""),o=i.computed(()=>"value"in t.value?"value":"innerHTML"),r=()=>{e.value=!e.value},s=c=>{e.value=c},a=c=>async()=>{s(!1),await i.nextTick(()=>{t.value[o.value]=n.value,c==null||c()})},l=c=>async u=>{const d=t.value[o.value];s(!1),await i.nextTick(()=>{c(d,u)})};return i.watch(e,async c=>{await i.nextTick(()=>{setTimeout(()=>{t.value&&c&&(t.value.focus(),n.value=t.value[o.value])},1)})}),{isEditing:e,setIsEditing:s,toggleIsEditing:r,onUpdate:l,onDiscard:a}}const st=i.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=i.ref(null),o=t,r=e,{isEditing:s,setIsEditing:a,onUpdate:l,onDiscard:c}=op(n),u=i.computed(()=>s.value?"input":o.tag||`h${o.level}`),d=i.computed(()=>o.isEditable?s.value?{change:f,click:y=>y.stopPropagation(),blur:h}:{click:g,focus:g}:{}),f=l((y,_)=>{const v=_.target.value;r("update:title",v)}),p=c(),h=async()=>{s.value&&a(!1)},m=()=>{r("toggle-is-editing",!1)},g=y=>{y.stopPropagation(),s.value||a(!0)};return i.watch(()=>o.isEditable,y=>{y||p()}),(y,_)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(u.value),i.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":i.unref(s),"ao-title--readonly":!i.unref(s)}],type:i.unref(s)?"text":null,value:i.unref(s)?t.title:null,tabindex:"0",onKeyup:i.withKeys(m,["enter"])},i.toHandlers(d.value),{onKeydown:i.withKeys(i.unref(p),["esc"])}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}});const J5={key:0,class:"ao-card-horiz__drag ao-card__drag"},X5={class:"ao-card-horiz__header"},Q5={key:0,class:"ao-card-horiz__avatar"},e7={class:"ao-card-horiz__title-group"},t7={key:0,class:"ao-card-horiz__subtitle"},n7={key:1,class:"ao-card-horiz__header"},o7={key:1,class:"ao-card-horiz__body"},r7={key:2,class:"ao-card-horiz__footer"},i7={key:3,class:"ao-card-horiz__secondary"},rp=i.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=r=>{n("update:title",r)};return(r,s)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:i.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":t.isActive}])},{default:i.withCtx(()=>[t.isDraggable?(i.openBlock(),i.createElementBlock("div",J5,[i.createVNode(Ae,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):i.createCommentVNode("",!0),i.createElementVNode("div",X5,[t.icon?(i.openBlock(),i.createElementBlock("div",Q5,[i.createVNode(Ae,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):i.createCommentVNode("",!0),i.createElementVNode("div",e7,[i.createVNode(st,{id:t.id,class:"ao-card-horiz__title",level:4,title:t.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),i.renderSlot(r.$slots,"subtitle",{},()=>[t.subtitle?(i.openBlock(),i.createElementBlock("span",t7,i.toDisplayString(t.subtitle),1)):i.createCommentVNode("",!0)])]),r.$slots.header?(i.openBlock(),i.createElementBlock("div",n7,[i.renderSlot(r.$slots,"header")])):i.createCommentVNode("",!0)]),r.$slots.default?(i.openBlock(),i.createElementBlock("div",o7,[i.renderSlot(r.$slots,"default")])):i.createCommentVNode("",!0),r.$slots.footer?(i.openBlock(),i.createElementBlock("div",r7,[i.renderSlot(r.$slots,"footer")])):i.createCommentVNode("",!0),r.$slots.secondary?(i.openBlock(),i.createElementBlock("div",i7,[i.renderSlot(r.$slots,"secondary")])):i.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Bi=i.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(t){const e=t,n=i.computed(()=>e.clickable?"button":"span"),o=i.computed(()=>n.value==="button"?{type:"button"}:{});return(r,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.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:i.normalizeStyle(t.rawColor?{"--ao-tag-bg":t.rawColor}:{})},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),i.mergeProps({class:"ao-tag__label"},o.value,{onClick:s[0]||(s[0]=a=>r.$emit("click",a))}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.label)+" ",1),t.variant===i.unref(K5).SOLID_ICON&&t.iconName?(i.openBlock(),i.createBlock(Ae,{key:0,name:t.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):i.createCommentVNode("",!0)]),_:1},16)),t.closable?(i.openBlock(),i.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:s[1]||(s[1]=a=>r.$emit("close",a))},[i.createVNode(Ae,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):i.createCommentVNode("",!0)],6))}});const $i={todo:"todo",done:"done",archived:"archived"},s7={months:"months",weeks:"weeks",days:"days"},a7={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},ip={BEFORE:"before",AFTER:"after"},sp={START:"start",end:"end"},ap={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},Be={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var lp=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(lp||{});const l7={add:"add",remove:"remove",moved:"moved"};var cp=(t=>(t.HOURS="hours",t.DAYS="days",t))(cp||{});const Ao={project:"projectId",type:"typeId",assignee:"assigneeId"};function Zs(t){"@babel/helpers - typeof";return Zs=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},Zs(t)}function In(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 Ue(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function ct(t){Ue(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Zs(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 c7(t,e){Ue(2,arguments);var n=ct(t).getTime(),o=In(e);return new Date(n+o)}var u7={};function Gi(){return u7}function Oi(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 ld(t){Ue(1,arguments);var e=ct(t);return e.setHours(0,0,0,0),e}var d7=864e5;function f7(t,e){Ue(2,arguments);var n=ld(t),o=ld(e),r=n.getTime()-Oi(n),s=o.getTime()-Oi(o);return Math.round((r-s)/d7)}function p7(t,e){Ue(2,arguments);var n=ct(t),o=ct(e),r=n.getTime()-o.getTime();return r<0?-1:r>0?1:r}var up=6e4,dp=36e5;function h7(t){return Ue(1,arguments),t instanceof Date||Zs(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function fp(t){if(Ue(1,arguments),!h7(t)&&typeof t!="number")return!1;var e=ct(t);return!isNaN(Number(e))}function Ql(t,e){Ue(2,arguments);var n=In(e);return c7(t,-n)}var m7=864e5;function g7(t){Ue(1,arguments);var e=ct(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime(),r=n-o;return Math.floor(r/m7)+1}function Ks(t){Ue(1,arguments);var e=1,n=ct(t),o=n.getUTCDay(),r=(o<e?7:0)+o-e;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function pp(t){Ue(1,arguments);var e=ct(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Ks(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=Ks(s);return e.getTime()>=r.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function v7(t){Ue(1,arguments);var e=pp(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Ks(n);return o}var y7=6048e5;function _7(t){Ue(1,arguments);var e=ct(t),n=Ks(e).getTime()-v7(e).getTime();return Math.round(n/y7)+1}function Gs(t,e){var n,o,r,s,a,l,c,u;Ue(1,arguments);var d=Gi(),f=In((n=(o=(r=(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&&r!==void 0?r: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=ct(t),h=p.getUTCDay(),m=(h<f?7:0)+h-f;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}function hp(t,e){var n,o,r,s,a,l,c,u;Ue(1,arguments);var d=ct(t),f=d.getUTCFullYear(),p=Gi(),h=In((n=(o=(r=(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&&r!==void 0?r: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(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(f+1,0,h),m.setUTCHours(0,0,0,0);var g=Gs(m,e),y=new Date(0);y.setUTCFullYear(f,0,h),y.setUTCHours(0,0,0,0);var _=Gs(y,e);return d.getTime()>=g.getTime()?f+1:d.getTime()>=_.getTime()?f:f-1}function C7(t,e){var n,o,r,s,a,l,c,u;Ue(1,arguments);var d=Gi(),f=In((n=(o=(r=(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&&r!==void 0?r: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=hp(t,e),h=new Date(0);h.setUTCFullYear(p,0,f),h.setUTCHours(0,0,0,0);var m=Gs(h,e);return m}var b7=6048e5;function k7(t,e){Ue(1,arguments);var n=ct(t),o=Gs(n,e).getTime()-C7(n,e).getTime();return Math.round(o/b7)+1}function xe(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var w7={y:function(e,n){var o=e.getUTCFullYear(),r=o>0?o:1-o;return xe(n==="yy"?r%100:r,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):xe(o+1,2)},d:function(e,n){return xe(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 xe(e.getUTCHours()%12||12,n.length)},H:function(e,n){return xe(e.getUTCHours(),n.length)},m:function(e,n){return xe(e.getUTCMinutes(),n.length)},s:function(e,n){return xe(e.getUTCSeconds(),n.length)},S:function(e,n){var o=n.length,r=e.getUTCMilliseconds(),s=Math.floor(r*Math.pow(10,o-3));return xe(s,n.length)}};const Jn=w7;var cr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},E7={G:function(e,n,o){var r=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});case"GGGG":default:return o.era(r,{width:"wide"})}},y:function(e,n,o){if(n==="yo"){var r=e.getUTCFullYear(),s=r>0?r:1-r;return o.ordinalNumber(s,{unit:"year"})}return Jn.y(e,n)},Y:function(e,n,o,r){var s=hp(e,r),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return xe(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):xe(a,n.length)},R:function(e,n){var o=pp(e);return xe(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return xe(o,n.length)},Q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return xe(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,o){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return xe(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,o){var r=e.getUTCMonth();switch(n){case"M":case"MM":return Jn.M(e,n);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,o){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return xe(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,o,r){var s=k7(e,r);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):xe(s,n.length)},I:function(e,n,o){var r=_7(e);return n==="Io"?o.ordinalNumber(r,{unit:"week"}):xe(r,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):Jn.d(e,n)},D:function(e,n,o){var r=g7(e);return n==="Do"?o.ordinalNumber(r,{unit:"dayOfYear"}):xe(r,n.length)},E:function(e,n,o){var r=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});case"EEEE":default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,o,r){var s=e.getUTCDay(),a=(s-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return xe(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,r){var s=e.getUTCDay(),a=(s-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return xe(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 r=e.getUTCDay(),s=r===0?7:r;switch(n){case"i":return String(s);case"ii":return xe(s,n.length);case"io":return o.ordinalNumber(s,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});case"iiii":default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,o){var r=e.getUTCHours(),s=r/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 r=e.getUTCHours(),s;switch(r===12?s=cr.noon:r===0?s=cr.midnight:s=r/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 r=e.getUTCHours(),s;switch(r>=17?s=cr.evening:r>=12?s=cr.afternoon:r>=4?s=cr.morning:s=cr.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 r=e.getUTCHours()%12;return r===0&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return Jn.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Jn.H(e,n)},K:function(e,n,o){var r=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(r,{unit:"hour"}):xe(r,n.length)},k:function(e,n,o){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?o.ordinalNumber(r,{unit:"hour"}):xe(r,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Jn.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Jn.s(e,n)},S:function(e,n){return Jn.S(e,n)},X:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return ud(a);case"XXXX":case"XX":return No(a);case"XXXXX":case"XXX":default:return No(a,":")}},x:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return ud(a);case"xxxx":case"xx":return No(a);case"xxxxx":case"xxx":default:return No(a,":")}},O:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+cd(a,":");case"OOOO":default:return"GMT"+No(a,":")}},z:function(e,n,o,r){var s=r._originalDate||e,a=s.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+cd(a,":");case"zzzz":default:return"GMT"+No(a,":")}},t:function(e,n,o,r){var s=r._originalDate||e,a=Math.floor(s.getTime()/1e3);return xe(a,n.length)},T:function(e,n,o,r){var s=r._originalDate||e,a=s.getTime();return xe(a,n.length)}};function cd(t,e){var n=t>0?"-":"+",o=Math.abs(t),r=Math.floor(o/60),s=o%60;if(s===0)return n+String(r);var a=e||"";return n+String(r)+a+xe(s,2)}function ud(t,e){if(t%60===0){var n=t>0?"-":"+";return n+xe(Math.abs(t)/60,2)}return No(t,e)}function No(t,e){var n=e||"",o=t>0?"-":"+",r=Math.abs(t),s=xe(Math.floor(r/60),2),a=xe(r%60,2);return o+s+n+a}const x7=E7;var dd=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"})}},mp=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"})}},S7=function(e,n){var o=e.match(/(P+)(p+)?/)||[],r=o[1],s=o[2];if(!s)return dd(e,n);var a;switch(r){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}}",dd(r,n)).replace("{{time}}",mp(s,n))},T7={p:mp,P:S7};const A7=T7;var N7=["D","DD"],D7=["YY","YYYY"];function M7(t){return N7.indexOf(t)!==-1}function B7(t){return D7.indexOf(t)!==-1}function fd(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 $7={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"}},O7=function(e,n,o){var r,s=$7[e];return typeof s=="string"?r=s:n===1?r=s.one:r=s.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};const L7=O7;function fl(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 I7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},P7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},F7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},R7={date:fl({formats:I7,defaultWidth:"full"}),time:fl({formats:P7,defaultWidth:"full"}),dateTime:fl({formats:F7,defaultWidth:"full"})};const V7=R7;var z7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},U7=function(e,n,o,r){return z7[e]};const q7=U7;function ai(t){return function(e,n){var o=n!=null&&n.context?String(n.context):"standalone",r;if(o==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):s;r=t.formattingValues[a]||t.formattingValues[s]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[c]||t.values[l]}var u=t.argumentCallback?t.argumentCallback(e):e;return r[u]}}var H7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},j7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},W7={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"]},Z7={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"]},K7={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"}},G7={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"}},Y7=function(e,n){var o=Number(e),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},J7={ordinalNumber:Y7,era:ai({values:H7,defaultWidth:"wide"}),quarter:ai({values:j7,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ai({values:W7,defaultWidth:"wide"}),day:ai({values:Z7,defaultWidth:"wide"}),dayPeriod:ai({values:K7,defaultWidth:"wide",formattingValues:G7,defaultFormattingWidth:"wide"})};const X7=J7;function li(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;var a=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?ey(l,function(f){return f.test(a)}):Q7(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 Q7(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function ey(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function ty(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 r=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(r.length);return{value:a,rest:l}}}var ny=/^(\d+)(th|st|nd|rd)?/i,oy=/\d+/i,ry={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},iy={any:[/^b/i,/^(a|c)/i]},sy={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ay={any:[/1/i,/2/i,/3/i,/4/i]},ly={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},cy={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]},uy={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},dy={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]},fy={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},py={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}},hy={ordinalNumber:ty({matchPattern:ny,parsePattern:oy,valueCallback:function(e){return parseInt(e,10)}}),era:li({matchPatterns:ry,defaultMatchWidth:"wide",parsePatterns:iy,defaultParseWidth:"any"}),quarter:li({matchPatterns:sy,defaultMatchWidth:"wide",parsePatterns:ay,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:li({matchPatterns:ly,defaultMatchWidth:"wide",parsePatterns:cy,defaultParseWidth:"any"}),day:li({matchPatterns:uy,defaultMatchWidth:"wide",parsePatterns:dy,defaultParseWidth:"any"}),dayPeriod:li({matchPatterns:fy,defaultMatchWidth:"any",parsePatterns:py,defaultParseWidth:"any"})};const my=hy;var gy={code:"en-US",formatDistance:L7,formatLong:V7,formatRelative:q7,localize:X7,match:my,options:{weekStartsOn:0,firstWeekContainsDate:1}};const gp=gy;var vy=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yy=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_y=/^'([^]*?)'?$/,Cy=/''/g,by=/[a-zA-Z]/;function vp(t,e,n){var o,r,s,a,l,c,u,d,f,p,h,m,g,y,_,C,v,w;Ue(2,arguments);var k=String(e),b=Gi(),E=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:b.locale)!==null&&o!==void 0?o:gp,S=In((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:b.firstWeekContainsDate)!==null&&a!==void 0?a:(f=b.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=In((h=(m=(g=(y=n==null?void 0:n.weekStartsOn)!==null&&y!==void 0?y:n==null||(_=n.locale)===null||_===void 0||(C=_.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&g!==void 0?g:b.weekStartsOn)!==null&&m!==void 0?m:(v=b.locale)===null||v===void 0||(w=v.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&h!==void 0?h:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var A=ct(t);if(!fp(A))throw new RangeError("Invalid time value");var V=Oi(A),I=Ql(A,V),U={firstWeekContainsDate:S,weekStartsOn:T,locale:E,_originalDate:A},$=k.match(yy).map(function(H){var L=H[0];if(L==="p"||L==="P"){var ee=A7[L];return ee(H,E.formatLong)}return H}).join("").match(vy).map(function(H){if(H==="''")return"'";var L=H[0];if(L==="'")return ky(H);var ee=x7[L];if(ee)return!(n!=null&&n.useAdditionalWeekYearTokens)&&B7(H)&&fd(H,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&M7(H)&&fd(H,e,String(t)),ee(I,H,E.localize,U);if(L.match(by))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");return H}).join("");return $}function ky(t){var e=t.match(_y);return e?e[1].replace(Cy,"'"):t}function wy(t,e,n){var o,r,s,a,l,c,u,d,f,p;Ue(2,arguments);var h=ct(t),m=ct(e),g=Gi(),y=(o=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&o!==void 0?o:gp,_=In((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 C=f7(h,m);if(isNaN(C))throw new RangeError("Invalid time value");var v;C<-6?v="other":C<-1?v="lastWeek":C<0?v="yesterday":C<1?v="today":C<2?v="tomorrow":C<7?v="nextWeek":v="other";var w=Ql(h,Oi(h)),k=Ql(m,Oi(m)),b=y.formatRelative(v,w,k,{locale:y,weekStartsOn:_});return vp(h,b,{locale:y,weekStartsOn:_})}function Li(t,e){var n;Ue(1,arguments);var o=In((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 r=Ty(t),s;if(r.date){var a=Ay(r.date,o);s=Ny(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(r.time&&(c=Dy(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(u=My(r.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 ks={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ey=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,xy=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Sy=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Ty(t){var e={},n=t.split(ks.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],ks.timeZoneDelimiter.test(e.date)&&(e.date=t.split(ks.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var r=ks.timezone.exec(o);r?(e.time=o.replace(r[1],""),e.timezone=r[1]):e.time=o}return e}function Ay(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 r=o[1]?parseInt(o[1]):null,s=o[2]?parseInt(o[2]):null;return{year:s===null?r:s*100,restDateString:t.slice((o[1]||o[2]).length)}}function Ny(t,e){if(e===null)return new Date(NaN);var n=t.match(Ey);if(!n)return new Date(NaN);var o=!!n[4],r=ci(n[1]),s=ci(n[2])-1,a=ci(n[3]),l=ci(n[4]),c=ci(n[5])-1;if(o)return Iy(e,l,c)?By(e,l,c):new Date(NaN);var u=new Date(0);return!Oy(e,s,a)||!Ly(e,r)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(r,a)),u)}function ci(t){return t?parseInt(t):1}function Dy(t){var e=t.match(xy);if(!e)return NaN;var n=pl(e[1]),o=pl(e[2]),r=pl(e[3]);return Py(n,o,r)?n*dp+o*up+r*1e3:NaN}function pl(t){return t&&parseFloat(t.replace(",","."))||0}function My(t){if(t==="Z")return 0;var e=t.match(Sy);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return Fy(o,r)?n*(o*dp+r*up):NaN}function By(t,e,n){var o=new Date(0);o.setUTCFullYear(t,0,4);var r=o.getUTCDay()||7,s=(e-1)*7+n+1-r;return o.setUTCDate(o.getUTCDate()+s),o}var $y=[31,null,31,30,31,30,31,31,30,31,30,31];function yp(t){return t%400===0||t%4===0&&t%100!==0}function Oy(t,e,n){return e>=0&&e<=11&&n>=1&&n<=($y[e]||(yp(t)?29:28))}function Ly(t,e){return e>=1&&e<=(yp(t)?366:365)}function Iy(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function Py(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Fy(t,e){return e>=0&&e<=59}var gt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ry(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Vy(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){if(this instanceof o){var r=[null];r.push.apply(r,arguments);var s=Function.bind.apply(e,r);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 r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return t[o]}})}),n}var rt={},_p={},ui={},Yi={},Vr={},ka={};Object.defineProperty(ka,"__esModule",{value:!0});ka.lexoHelper=void 0;ka.lexoHelper={arrayCopy:zy};function zy(t,e,n,o,r){let s=o;const a=e+r;for(let l=e;l<a;l++)n[s]=t[l],++s}var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0});class Uy{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}}Ji.default=Uy;Object.defineProperty(Vr,"__esModule",{value:!0});Vr.LexoInteger=void 0;const ws=ka,qy=Ji;class fe{constructor(e,n,o){this.sys=e,this.sign=n,this.mag=o}static parse(e,n){let o=e,r=1;e.indexOf(n.getPositiveChar())===0?o=e.substring(1):e.indexOf(n.getNegativeChar())===0&&(o=e.substring(1),r=-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 fe.make(n,r,s)}static zero(e){return new fe(e,0,fe.ZERO_MAG)}static one(e){return fe.make(e,1,fe.ONE_MAG)}static make(e,n,o){let r;for(r=o.length;r>0&&o[r-1]===0;--r);if(r===0)return fe.zero(e);if(r===o.length)return new fe(e,n,o);const s=new Array(r).fill(0);return ws.lexoHelper.arrayCopy(o,0,s,0,r),new fe(e,n,s)}static add(e,n,o){const r=Math.max(n.length,o.length),s=new Array(r).fill(0);let a=0;for(let l=0;l<r;++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 fe.extendWithCarry(s,a)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return ws.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const r=fe.complement(e,o,n.length),s=fe.add(e,n,r);return s[s.length-1]=0,fe.add(e,s,fe.ONE_MAG)}static multiply(e,n,o){const r=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(r[l]+=n[s]*o[a];r[l]>=e.getBase();r[l]-=e.getBase())++r[l+1]}return r}static complement(e,n,o){if(o<=0)throw new Error("Expected at least 1 digit");const r=new Array(o).fill(e.getBase()-1);for(let s=0;s<n.length;++s)r[s]=e.getBase()-1-n[s];return r}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=fe.add(this.sys,this.mag,e.mag);return fe.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=fe.compare(this.mag,e.mag);return n===0?fe.zero(this.sys):n<0?fe.make(this.sys,this.sign===-1?1:-1,fe.subtract(this.sys,e.mag,this.mag)):fe.make(this.sys,this.sign===-1?-1:1,fe.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?fe.make(this.sys,1,e.mag):fe.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?fe.make(this.sys,1,this.mag):fe.make(this.sys,-1,this.mag);const n=fe.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?fe.make(this.sys,1,n):fe.make(this.sys,-1,n)}negate(){return this.isZero()?this:fe.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 ws.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),fe.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return fe.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return ws.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),fe.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return fe.make(this.sys,this.sign,fe.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=fe.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?fe.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 qy.default,n=this.mag,o=n.length;for(let r=0;r<o;++r){const s=n[r];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")}}Vr.LexoInteger=fe;fe.ZERO_MAG=[0];fe.ONE_MAG=[1];fe.NEGATIVE_SIGN=-1;fe.ZERO_SIGN=0;fe.POSITIVE_SIGN=1;Object.defineProperty(Yi,"__esModule",{value:!0});Yi.LexoDecimal=void 0;const di=Vr,Hy=Ji;class Pt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Pt.make(di.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 Pt.make(di.LexoInteger.parse(e,n),0);const r=e.substring(0,o)+e.substring(o+1);return Pt.make(di.LexoInteger.parse(r,n),e.length-1-o)}static from(e){return Pt.make(e,0)}static make(e,n){if(e.isZero())return new Pt(e,0);let o=0;for(let a=0;a<n&&e.getMag(a)===0;++a)++o;const r=e.shiftRight(o),s=n-o;return new Pt(r,s)}getSystem(){return this.mag.getSystem()}add(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.add(r),o)}subtract(e){let n=this.mag,o=this.sig,r=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)r=r.shiftLeft(),++s;return Pt.make(n.subtract(r),o)}multiply(e){return Pt.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(di.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 r=this.mag.shiftRight(o);return n&&(r=r.add(di.LexoInteger.one(r.getSystem()))),Pt.make(r,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 Hy.default(e),o=n[0],r=o===this.mag.getSystem().getPositiveChar()||o===this.mag.getSystem().getNegativeChar();for(r&&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)),r&&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()}}Yi.LexoDecimal=Pt;var Es={},pd;function Cp(){if(pd)return Es;pd=1,Object.defineProperty(Es,"__esModule",{value:!0});const t=Vr,e=kp();class n{constructor(r){this.value=t.LexoInteger.parse(r,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(r){const s=t.LexoInteger.parse(r,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: "+r)}static resolve(r){const s=n.VALUES,a=s.length;for(let l=0;l<a;++l){const c=s[l];if(c.equals(n.from(r.toString())))return c}throw new Error("No bucket found with id "+r)}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(r){return this===r?!0:r?this.value.equals(r.value):!1}}return Es.default=n,Es}var Vc={},bp={};Object.defineProperty(bp,"__esModule",{value:!0});var wa={};Object.defineProperty(wa,"__esModule",{value:!0});wa.LexoNumeralSystem10=void 0;class jy{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)}}wa.LexoNumeralSystem10=jy;var Ea={};Object.defineProperty(Ea,"__esModule",{value:!0});Ea.LexoNumeralSystem36=void 0;class Wy{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]}}Ea.LexoNumeralSystem36=Wy;var xa={};Object.defineProperty(xa,"__esModule",{value:!0});xa.LexoNumeralSystem64=void 0;class Zy{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]}}xa.LexoNumeralSystem64=Zy;(function(t){var e=gt&>.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=gt&>.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(bp,t),n(wa,t),n(Ea,t),n(xa,t)})(Vc);var hd;function kp(){if(hd)return ui;hd=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.LexoRank=void 0;const t=Yi,e=Cp(),n=Ji,o=Vc;class r{constructor(a,l){this.value=a.format()+"|"+r.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",r.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=t.LexoDecimal.parse("1",r.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=t.LexoDecimal.parse("8",r.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=r.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=t.LexoDecimal.parse("1000000",r.NUMERAL_SYSTEM).subtract(r.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=r.between(r.MIN_DECIMAL,r.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=t.LexoDecimal.parse("100000",r.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=t.LexoDecimal.parse(r.NUMERAL_SYSTEM.toChar(r.NUMERAL_SYSTEM.getBase()-2)+"00000",r.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return r.from(e.default.BUCKET_0,r.MIN_DECIMAL)}static middle(){const a=r.min();return a.between(r.max(a.bucket))}static max(a=e.default.BUCKET_0){return r.from(a,r.MAX_DECIMAL)}static initial(a){return a===e.default.BUCKET_0?r.from(a,r.INITIAL_MIN_DECIMAL):r.from(a,r.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 r.mid(a,l);u=d}if(a.getScale()>u.getScale()){if(d=a.setScale(u.getScale(),!0),d.compareTo(u)>=0)return r.mid(a,l);c=d}let f;for(let m=c.getScale();m>0;u=f){const g=m-1,y=c.setScale(g,!0);if(f=u.setScale(g,!1),y.compareTo(f)===0)return r.checkMid(a,l,y);if(y.compareTo(f)>0)break;m=g,c=y}let p=r.middleInternal(a,l,c,u),h;for(let m=p.getScale();m>0;m=h){h=m-1;const g=p.setScale(h);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],r.NUMERAL_SYSTEM);return new r(c,u)}static from(a,l){if(l.getSystem().getBase()!==r.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new r(a,l)}static middleInternal(a,l,c,u){const d=r.mid(c,u);return r.checkMid(a,l,d)}static checkMid(a,l,c){return a.compareTo(c)>=0||c.compareTo(l)>=0?r.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(r.NUMERAL_SYSTEM.getRadixPointChar());const d=r.NUMERAL_SYSTEM.toChar(0);for(u<0&&(u=l.length,c.append(r.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 r(this.bucket,r.INITIAL_MAX_DECIMAL);const a=this.decimal.floor();let c=t.LexoDecimal.from(a).subtract(r.EIGHT_DECIMAL);return c.compareTo(r.MIN_DECIMAL)<=0&&(c=r.between(r.MIN_DECIMAL,this.decimal)),new r(this.bucket,c)}genNext(){if(this.isMin())return new r(this.bucket,r.INITIAL_MIN_DECIMAL);const a=this.decimal.ceil();let c=t.LexoDecimal.from(a).add(r.EIGHT_DECIMAL);return c.compareTo(r.MAX_DECIMAL)>=0&&(c=r.between(this.decimal,r.MAX_DECIMAL)),new r(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 r(this.bucket,r.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 r(this.bucket,r.between(this.decimal,a.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return r.from(this.bucket.next(),this.decimal)}inPrevBucket(){return r.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(r.MIN_DECIMAL)}isMax(){return this.decimal.equals(r.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 ui.LexoRank=r,ui}(function(t){var e=gt&>.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=gt&>.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(kp(),t),n(Cp(),t),n(Yi,t),n(Vr,t)})(_p);(function(t){var e=gt&>.__createBinding||(Object.create?function(o,r,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(o,a,l)}:function(o,r,s,a){a===void 0&&(a=s),o[a]=r[s]}),n=gt&>.__exportStar||function(o,r){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&e(r,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(_p,t),n(Vc,t)})(rt);const _i=60,Ky=8,md=_i*Ky;function Sa(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/md),r=Math.floor(t%md/_i);if(o>0&&r>0)return`${o}d ${r}h`;if(o>0)return`${o}d`;{const s=t%_i;return s>0?`${r}h ${s}m`:`${r}h`}}else{const o=Math.floor(t/_i),r=t%_i;return o>0&&r>0?`${o}h ${r}m`:o>0?`${o}h`:`${r}m`}}function wp(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 Gy(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 Yy(t){return(t==null?void 0:t.reduce((e,n)=>{var r;const o=(r=n.milestones)!=null&&r.length?wp(n.milestones):0;return e+o},0))??0}function Jy(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function Xi(t,e){if(t.moved)return Ar(e,t.moved.newIndex)}function Ar(t,e){if(e===0)if(t.length>1){const n=t[e+1];return rt.LexoRank.parse(n.rank).genPrev().format()}else return rt.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return rt.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return rt.LexoRank.parse(o.rank).between(rt.LexoRank.parse(n.rank)).format()}}function Ta(t,e="dd/MM/yyyy"){if(!t)return"";const n=Li(t);return fp(n)?vp(n,e):""}function zc(t,e){return t.status.id===e.id}function Xy(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!zc(n,e))}function Qy(t,e){return{...t,status:Xy(t,e)?$i.done:$i.todo}}const Ep=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function e_(t,e){const n=t.replace("#",""),o=parseInt(n.slice(0,2),16),r=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16);return`rgba(${o}, ${r}, ${s}, ${e})`}function t_(t,e=.15){var n;if(t.startsWith("#"))return e_(t,e);if(t.startsWith("rgba")){const o=(n=t.match(/rgba?\(([^)]+)\)/))==null?void 0:n[1].split(",").map(r=>r.trim());if(o&&o.length>=3){const[r,s,a]=o;return`rgba(${r}, ${s}, ${a}, ${e})`}}return t}function xp(t,e,n){const o=i.ref(""),r=i.ref(!1),s=i.ref({top:0,left:0}),a=i.computed(()=>n.value.filter(p=>p.firstName||p.lastName).map(p=>{const m=[p.firstName,p.lastName].filter(Boolean).join("_").replace(/\s+/g,"_");return{id:p.id,name:m}})),l=i.computed(()=>a.value.filter(p=>p.name.toLowerCase().includes(o.value.toLowerCase())));return{showMentionList:r,mentionListPosition:s,filteredUsers:l,mentionQuery:o,handleInput:p=>{const h=p.target,m=h.selectionStart,y=h.value.slice(0,m).match(/@(\w*)$/);y?(o.value=y[1],r.value=!0,i.nextTick(()=>{const{top:_,left:C}=n_(h,m);s.value={top:_,left:C}})):r.value=!1},handleKeydown:p=>{p.key==="Escape"&&r.value&&(r.value=!1)},selectUserMention:p=>{const h=t.value;if(!h)return;const m=h.selectionStart,g=e.value,y=g.slice(0,m).replace(/@(\w*)$/,`@${p} `),_=g.slice(m);e.value=y+_,r.value=!1,i.nextTick(()=>{h.focus(),h.setSelectionRange(y.length,y.length)})},getMentionedUserIds:p=>{const h=Array.from(p.matchAll(/@([\p{L}\p{M}0-9-_]+)/gu)).map(m=>m[1]);return a.value.filter(m=>h.includes(m.name)).map(m=>m.id)}}}function n_(t,e){const n=document.createElement("div"),o=document.createElement("span"),r=window.getComputedStyle(t),s=["boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","direction","letterSpacing","wordSpacing"];n.style.position="absolute",n.style.visibility="hidden",n.style.whiteSpace="pre-wrap",n.style.overflow="hidden",s.forEach(h=>{n.style[h]=r.getPropertyValue(h)}),n.style.width=r.getPropertyValue("width"),n.scrollTop=t.scrollTop,n.scrollLeft=t.scrollLeft;const a=t.value.substring(0,e),l=t.value.substring(e)||".";n.textContent=a,o.textContent=l[0],n.appendChild(o),document.body.appendChild(n);const c=o.getBoundingClientRect(),u=n.getBoundingClientRect(),d=t.getBoundingClientRect(),f=c.top-u.top+d.top-t.scrollTop,p=c.left-u.left+d.left-t.scrollLeft;return document.body.removeChild(n),{top:f+40,left:p}}const o_=["title"],r_={key:0,className:"ao-avatar__initials"},i_=["src"],zn=i.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:ba.MD},color:{default:"primary"}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>[`ao-avatar--${n.color}`,...n.avatarUrl?["ao-avatar-img",`ao-avatar-img--${n.size}`]:["ao-avatar",`ao-avatar--${n.size}`]]),s=Jy(n.userName),a=l=>{o("close",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",{role:"img",class:i.normalizeClass(r.value),title:t.userName},[t.avatarUrl?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",r_,i.toDisplayString(i.unref(s)),1)),t.avatarUrl?(i.openBlock(),i.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,i_)):i.createCommentVNode("",!0),t.isClosable?(i.openBlock(),i.createBlock(he,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:t.color,corners:"round",onClick:i.withModifiers(a,["stop"])},null,8,["color"])):i.createCommentVNode("",!0)],10,o_))}});const s_={class:"ao-card-template__subitems"},a_={class:"ao-card-template__subitem"},l_={class:"ao-card-template__subitem-number"},c_={class:"ao-card-template__subitem"},u_={class:"ao-card-template__subitem"},d_={class:"ao-card-template__body"},f_={class:"ao-card-template__col ao-card-template__col--phases"},p_={class:"ao-card-template__col-title"},h_={class:"ao-card-template__col-label"},m_={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},g_={class:"ao-card-template__footer"},v_={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},y_={class:"ao-card-template__col-title"},__={class:"ao-card-template__col-label"},C_={class:"ao-card-template__col-body"},b_={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},k_={class:"ao-card-template__col-title"},w_={class:"ao-card-template__col-label"},E_={class:"ao-card-template__col-body"},x_={class:"ao-card-template-item__secondary"},hl=5,S_=i.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(t,{emit:e}){const n=t,o=e,r=c=>{o("updateTitle",c)},s=(c,u)=>{o("deleteItem",c,u)},a=i.computed(()=>{var c;return((c=n.phases)==null?void 0:c.slice(0,hl))??[]}),l=i.computed(()=>n.phases&&n.phases.length>hl?n.phases.length-hl:0);return(c,u)=>(i.openBlock(),i.createBlock(rp,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":r},i.createSlots({subtitle:i.withCtx(()=>[i.createElementVNode("ul",s_,[i.createElementVNode("li",a_,[i.createVNode(Ae,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",l_,i.toDisplayString(t.milestones),1)]),i.createElementVNode("li",c_,[i.createVNode(Ae,{name:"TaskOutlineRounded",size:"sm"}),i.createElementVNode("span",u_,i.toDisplayString(t.activities),1)])])]),default:i.withCtx(()=>[i.createElementVNode("div",d_,[i.createElementVNode("div",f_,[i.createElementVNode("div",p_,[i.createVNode(Ae,{name:"WaterfallChartRounded",size:"sm"}),i.createElementVNode("span",h_,i.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(i.openBlock(),i.createElementBlock("ul",m_,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,d=>(i.openBlock(),i.createBlock(Bi,{key:d.id,label:d.name||d.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(i.openBlock(),i.createBlock(Bi,{key:0,label:`+${l.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])])]),secondary:i.withCtx(()=>[i.createElementVNode("div",x_,[i.createVNode(he,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:u[0]||(u[0]=i.withModifiers(d=>s(t.id,t.title),["stop"]))})])]),_:2},[t.updatedBy||t.updatedAt?{name:"footer",fn:i.withCtx(()=>[i.createElementVNode("div",g_,[t.updatedAt?(i.openBlock(),i.createElementBlock("div",v_,[i.createElementVNode("div",y_,[i.createElementVNode("span",__,i.toDisplayString(c.$t("template.updatedAt.label")),1)]),i.createElementVNode("div",C_,[i.createElementVNode("span",null,i.toDisplayString(t.updatedAt),1)])])):i.createCommentVNode("",!0),t.updatedBy?(i.openBlock(),i.createElementBlock("div",b_,[i.createElementVNode("div",k_,[i.createElementVNode("span",w_,i.toDisplayString(c.$t("template.updatedBy.label")),1)]),i.createElementVNode("div",E_,[i.createVNode(zn,{"user-name":t.updatedBy},null,8,["user-name"])])])):i.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const T_={class:"ao-page-header"},A_={class:"ao-page-header-main"},N_={key:0,class:"ao-page-header-secondary"},Qi=i.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",T_,[i.createElementVNode("div",A_,[t.canGoBack?(i.openBlock(),i.createBlock(he,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:n[0]||(n[0]=o=>e.$emit("goBack"))})):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(i.openBlock(),i.createElementBlock("div",N_,[i.renderSlot(e.$slots,"secondary")])):i.createCommentVNode("",!0)]))}});const D_=["type"],M_={key:0,class:"ao-button-card__label"},mo=i.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Rc.BLACK},size:{default:()=>ba.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>np.ROUNDED}},setup(t){const e=t,n=i.computed(()=>e.size),o=i.computed(()=>e.isLoading?"Loading":e.iconName);return(r,s)=>(i.openBlock(),i.createElementBlock("button",{type:t.type,class:i.normalizeClass(["ao-button-card",`ao-button-card--${t.color}`,`ao-button-card--${t.corners}`,r.$attrs.disabled?"ao-button-card--is-disabled":""])},[i.renderSlot(r.$slots,"default",{},()=>[t.label?(i.openBlock(),i.createElementBlock("span",M_,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0)]),o.value?(i.openBlock(),i.createBlock(Ae,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):i.createCommentVNode("",!0)],10,D_))}});const B_={class:"ao-card-template-item__footer"},$_={key:0,class:"ao-card-template-item__subitem"},O_={class:"ao-card-template-item__subitem-number"},L_={class:"ao-card-template-item__secondary"},Uc=i.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)},r=["milestones","activities","rules","tasks"],s={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},a=()=>{n("remove")};return(l,c)=>(i.openBlock(),i.createBlock(rp,{"onUpdate:title":o},{footer:i.withCtx(()=>[i.createElementVNode("ul",B_,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(r,u=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:u},[l.$props[u]?(i.openBlock(),i.createElementBlock("li",$_,[i.createVNode(Ae,{name:s[u],size:"sm"},null,8,["name"]),i.createElementVNode("span",O_,i.toDisplayString(l.$props[u]),1)])):i.createCommentVNode("",!0)],64))),64))])]),secondary:i.withCtx(()=>[i.createElementVNode("div",L_,[i.createVNode(he,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:i.withModifiers(a,["stop"])})])]),_:1}))}});const I_=i.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(t){const e=t,n=i.computed(()=>{var r;return(r=e.milestones)==null?void 0:r.length}),o=i.computed(()=>e.milestones?wp(e.milestones):0);return(r,s)=>(i.openBlock(),i.createBlock(Uc,i.mergeProps({id:t.id,title:t.name,activities:o.value,milestones:n.value},r.$attrs),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),P_=i.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(t){const e=t,n=i.computed(()=>{var o;return((o=e.activities)==null?void 0:o.length)||0});return(o,r)=>(i.openBlock(),i.createBlock(Uc,{activities:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),F_={class:"ao-list__footer"},R_=i.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(t,{emit:e}){const n=t,o=e,r=()=>{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=Xi(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.phase?(i.openBlock(),i.createBlock(i.unref(ho),{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:i.withCtx(()=>[i.createVNode(st,{title:"Milestones",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(P_,{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:i.withCtx(()=>[i.createElementVNode("div",F_,[i.createVNode(mo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),V_=i.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(t){const e=t,n=i.computed(()=>{var o;return((o=e.tasks)==null?void 0:o.length)||0});return(o,r)=>(i.openBlock(),i.createBlock(Uc,{tasks:n.value},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),z_={class:"ao-list__footer"},U_=i.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("addActivity",{milestoneId:n.milestone.id})},s=c=>{o("updateActivity",{...c})},a=c=>{o("removeActivity",{id:c})},l=c=>{if(c.moved){const u=Xi(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.milestone?(i.openBlock(),i.createBlock(i.unref(ho),{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:i.withCtx(()=>[i.createVNode(st,{title:"Activities",level:3,class:"ao-list__title"})]),item:i.withCtx(({element:d})=>[(i.openBlock(),i.createBlock(V_,{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:i.withCtx(()=>[i.createElementVNode("div",z_,[i.createVNode(mo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:r},null,8,["label"])])]),_:1},8,["model-value","title"])):i.createCommentVNode("",!0)}}),q_={class:"ao-modal"},H_={key:0,class:"ao-modal__header"},j_={class:"ao-modal__header-meta"},W_={class:"ao-modal__title-group"},Z_={class:"ao-modal__body"},K_={key:1,class:"ao-modal__footer"},Aa=i.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`])},[i.createElementVNode("div",{class:"ao-modal__backdrop",onClick:n[0]||(n[0]=o=>e.$emit("close"))}),i.createElementVNode("div",q_,[e.$slots.header?(i.openBlock(),i.createElementBlock("div",H_,[i.createElementVNode("div",j_,[i.createVNode(he,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),i.createElementVNode("header",W_,[i.renderSlot(e.$slots,"header")])])):i.createCommentVNode("",!0),i.createElementVNode("div",Z_,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",K_,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])],2))}});const Ii=Math.min,Ft=Math.max,Ys=Math.round,xs=Math.floor,lo=t=>({x:t,y:t}),G_={left:"right",right:"left",bottom:"top",top:"bottom"},Y_={start:"end",end:"start"};function qc(t,e){return typeof t=="function"?t(e):t}function Nr(t){return t.split("-")[0]}function Na(t){return t.split("-")[1]}function J_(t){return t==="x"?"y":"x"}function Sp(t){return t==="y"?"height":"width"}function Hc(t){return["top","bottom"].includes(Nr(t))?"y":"x"}function Tp(t){return J_(Hc(t))}function X_(t,e,n){n===void 0&&(n=!1);const o=Na(t),r=Tp(t),s=Sp(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Js(a)),[a,Js(a)]}function Q_(t){const e=Js(t);return[ec(t),e,ec(e)]}function ec(t){return t.replace(/start|end/g,e=>Y_[e])}function eC(t,e,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?s:a;default:return[]}}function tC(t,e,n,o){const r=Na(t);let s=eC(Nr(t),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),e&&(s=s.concat(s.map(ec)))),s}function Js(t){return t.replace(/left|right|bottom|top/g,e=>G_[e])}function nC(t){return{top:0,right:0,bottom:0,left:0,...t}}function oC(t){return typeof t!="number"?nC(t):{top:t,right:t,bottom:t,left:t}}function Xs(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function gd(t,e,n){let{reference:o,floating:r}=t;const s=Hc(e),a=Tp(e),l=Sp(a),c=Nr(e),u=s==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let h;switch(c){case"top":h={x:d,y:o.y-r.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(Na(e)){case"start":h[a]-=p*(n&&u?-1:1);break;case"end":h[a]+=p*(n&&u?-1:1);break}return h}const rC=async(t,e,n)=>{const{placement:o="bottom",strategy:r="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:r}),{x:d,y:f}=gd(u,o,c),p=o,h={},m=0;for(let g=0;g<l.length;g++){const{name:y,fn:_}=l[g],{x:C,y:v,data:w,reset:k}=await _({x:d,y:f,initialPlacement:o,placement:p,strategy:r,middlewareData:h,rects:u,platform:a,elements:{reference:t,floating:e}});if(d=C??d,f=v??f,h={...h,[y]:{...h[y],...w}},k&&m<=50){m++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(u=k.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:r}):k.rects),{x:d,y:f}=gd(u,p,c)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:r,middlewareData:h}};async function Ap(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:s,rects:a,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=qc(e,t),m=oC(h),y=l[p?f==="floating"?"reference":"floating":f],_=Xs(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})),C=f==="floating"?{...a.floating,x:o,y:r}:a.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),w=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},k=Xs(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:C,offsetParent:v,strategy:c}):C);return{top:(_.top-k.top+m.top)/w.y,bottom:(k.bottom-_.bottom+m.bottom)/w.y,left:(_.left-k.left+m.left)/w.x,right:(k.right-_.right+m.right)/w.x}}const iC=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...y}=qc(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const _=Nr(r),C=Nr(l)===l,v=await(c.isRTL==null?void 0:c.isRTL(u.floating)),w=p||(C||!g?[Js(l)]:Q_(l));!p&&m!=="none"&&w.push(...tC(l,g,m,v));const k=[l,...w],b=await Ap(e,y),E=[];let S=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&E.push(b[_]),f){const I=X_(r,a,v);E.push(b[I[0]],b[I[1]])}if(S=[...S,{placement:r,overflows:E}],!E.every(I=>I<=0)){var T,A;const I=(((T=s.flip)==null?void 0:T.index)||0)+1,U=k[I];if(U)return{data:{index:I,overflows:S},reset:{placement:U}};let $=(A=S.filter(H=>H.overflows[0]<=0).sort((H,L)=>H.overflows[1]-L.overflows[1])[0])==null?void 0:A.placement;if(!$)switch(h){case"bestFit":{var V;const H=(V=S.map(L=>[L.placement,L.overflows.filter(ee=>ee>0).reduce((ee,O)=>ee+O,0)]).sort((L,ee)=>L[1]-ee[1])[0])==null?void 0:V[0];H&&($=H);break}case"initialPlacement":$=l;break}if(r!==$)return{reset:{placement:$}}}return{}}}},sC=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:s}=e,{apply:a=()=>{},...l}=qc(t,e),c=await Ap(e,l),u=Nr(n),d=Na(n),f=Hc(n)==="y",{width:p,height:h}=o.floating;let m,g;u==="top"||u==="bottom"?(m=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,m=d==="end"?"top":"bottom");const y=h-c[m],_=p-c[g],C=!e.middlewareData.shift;let v=y,w=_;if(f){const b=p-c.left-c.right;w=d||C?Ii(_,b):b}else{const b=h-c.top-c.bottom;v=d||C?Ii(y,b):b}if(C&&!d){const b=Ft(c.left,0),E=Ft(c.right,0),S=Ft(c.top,0),T=Ft(c.bottom,0);f?w=p-2*(b!==0||E!==0?b+E:Ft(c.left,c.right)):v=h-2*(S!==0||T!==0?S+T:Ft(c.top,c.bottom))}await a({...e,availableWidth:w,availableHeight:v});const k=await r.getDimensions(s.floating);return p!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function co(t){return Np(t)?(t.nodeName||"").toLowerCase():"#document"}function Mt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Un(t){var e;return(e=(Np(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Np(t){return t instanceof Node||t instanceof Mt(t).Node}function Pn(t){return t instanceof Element||t instanceof Mt(t).Element}function gn(t){return t instanceof HTMLElement||t instanceof Mt(t).HTMLElement}function vd(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Mt(t).ShadowRoot}function es(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=zt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function aC(t){return["table","td","th"].includes(co(t))}function jc(t){const e=Wc(),n=zt(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 lC(t){let e=Dr(t);for(;gn(e)&&!Da(e);){if(jc(e))return e;e=Dr(e)}return null}function Wc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Da(t){return["html","body","#document"].includes(co(t))}function zt(t){return Mt(t).getComputedStyle(t)}function Ma(t){return Pn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dr(t){if(co(t)==="html")return t;const e=t.assignedSlot||t.parentNode||vd(t)&&t.host||Un(t);return vd(e)?e.host:e}function Dp(t){const e=Dr(t);return Da(e)?t.ownerDocument?t.ownerDocument.body:t.body:gn(e)&&es(e)?e:Dp(e)}function Pi(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Dp(t),s=r===((o=t.ownerDocument)==null?void 0:o.body),a=Mt(r);return s?e.concat(a,a.visualViewport||[],es(r)?r:[],a.frameElement&&n?Pi(a.frameElement):[]):e.concat(r,Pi(r))}function Mp(t){const e=zt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=gn(t),s=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=Ys(n)!==s||Ys(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function Zc(t){return Pn(t)?t:t.contextElement}function br(t){const e=Zc(t);if(!gn(e))return lo(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:s}=Mp(e);let a=(s?Ys(n.width):n.width)/o,l=(s?Ys(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const cC=lo(0);function Bp(t){const e=Mt(t);return!Wc()||!e.visualViewport?cC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uC(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Mt(t)?!1:e}function zo(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=Zc(t);let a=lo(1);e&&(o?Pn(o)&&(a=br(o)):a=br(t));const l=uC(s,n,o)?Bp(s):lo(0);let c=(r.left+l.x)/a.x,u=(r.top+l.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(s){const p=Mt(s),h=o&&Pn(o)?Mt(o):o;let m=p.frameElement;for(;m&&o&&h!==p;){const g=br(m),y=m.getBoundingClientRect(),_=zt(m),C=y.left+(m.clientLeft+parseFloat(_.paddingLeft))*g.x,v=y.top+(m.clientTop+parseFloat(_.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,f*=g.y,c+=C,u+=v,m=Mt(m).frameElement}}return Xs({width:d,height:f,x:c,y:u})}function dC(t){let{rect:e,offsetParent:n,strategy:o}=t;const r=gn(n),s=Un(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=lo(1);const c=lo(0);if((r||!r&&o!=="fixed")&&((co(n)!=="body"||es(s))&&(a=Ma(n)),gn(n))){const u=zo(n);l=br(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 fC(t){return Array.from(t.getClientRects())}function $p(t){return zo(Un(t)).left+Ma(t).scrollLeft}function pC(t){const e=Un(t),n=Ma(t),o=t.ownerDocument.body,r=Ft(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Ft(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+$p(t);const l=-n.scrollTop;return zt(o).direction==="rtl"&&(a+=Ft(e.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:l}}function hC(t,e){const n=Mt(t),o=Un(t),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;const u=Wc();(!u||u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l,y:c}}function mC(t,e){const n=zo(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,s=gn(t)?br(t):lo(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,c=r*s.x,u=o*s.y;return{width:a,height:l,x:c,y:u}}function yd(t,e,n){let o;if(e==="viewport")o=hC(t,n);else if(e==="document")o=pC(Un(t));else if(Pn(e))o=mC(e,n);else{const r=Bp(t);o={...e,x:e.x-r.x,y:e.y-r.y}}return Xs(o)}function Op(t,e){const n=Dr(t);return n===e||!Pn(n)||Da(n)?!1:zt(n).position==="fixed"||Op(n,e)}function gC(t,e){const n=e.get(t);if(n)return n;let o=Pi(t,[],!1).filter(l=>Pn(l)&&co(l)!=="body"),r=null;const s=zt(t).position==="fixed";let a=s?Dr(t):t;for(;Pn(a)&&!Da(a);){const l=zt(a),c=jc(a);!c&&l.position==="fixed"&&(r=null),(s?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||es(a)&&!c&&Op(t,a))?o=o.filter(d=>d!==a):r=l,a=Dr(a)}return e.set(t,o),o}function vC(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const a=[...n==="clippingAncestors"?gC(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((u,d)=>{const f=yd(e,d,r);return u.top=Ft(f.top,u.top),u.right=Ii(f.right,u.right),u.bottom=Ii(f.bottom,u.bottom),u.left=Ft(f.left,u.left),u},yd(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function yC(t){return Mp(t)}function _C(t,e,n){const o=gn(e),r=Un(e),s=n==="fixed",a=zo(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=lo(0);if(o||!o&&!s)if((co(e)!=="body"||es(r))&&(l=Ma(e)),o){const u=zo(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else r&&(c.x=$p(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function _d(t,e){return!gn(t)||zt(t).position==="fixed"?null:e?e(t):t.offsetParent}function Lp(t,e){const n=Mt(t);if(!gn(t))return n;let o=_d(t,e);for(;o&&aC(o)&&zt(o).position==="static";)o=_d(o,e);return o&&(co(o)==="html"||co(o)==="body"&&zt(o).position==="static"&&!jc(o))?n:o||lC(t)||n}const CC=async function(t){let{reference:e,floating:n,strategy:o}=t;const r=this.getOffsetParent||Lp,s=this.getDimensions;return{reference:_C(e,await r(n),o),floating:{x:0,y:0,...await s(n)}}};function bC(t){return zt(t).direction==="rtl"}const kC={convertOffsetParentRelativeRectToViewportRelativeRect:dC,getDocumentElement:Un,getClippingRect:vC,getOffsetParent:Lp,getElementRects:CC,getClientRects:fC,getDimensions:yC,getScale:br,isElement:Pn,isRTL:bC};function wC(t,e){let n=null,o;const r=Un(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 h=xs(d),m=xs(r.clientWidth-(u+f)),g=xs(r.clientHeight-(d+p)),y=xs(u),C={rootMargin:-h+"px "+-m+"px "+-g+"px "+-y+"px",threshold:Ft(0,Ii(1,c))||1};let v=!0;function w(k){const b=k[0].intersectionRatio;if(b!==c){if(!v)return a();b?a(!1,b):o=setTimeout(()=>{a(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(w,{...C,root:r.ownerDocument})}catch{n=new IntersectionObserver(w,C)}n.observe(t)}return a(!0),s}function EC(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=Zc(t),d=r||s?[...u?Pi(u):[],...Pi(e)]:[];d.forEach(_=>{r&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const f=u&&l?wC(u,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(_=>{let[C]=_;C&&C.target===u&&h&&(h.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(e)})),n()}),u&&!c&&h.observe(u),h.observe(e));let m,g=c?zo(t):null;c&&y();function y(){const _=zo(t);g&&(_.x!==g.x||_.y!==g.y||_.width!==g.width||_.height!==g.height)&&n(),g=_,m=requestAnimationFrame(y)}return n(),()=>{d.forEach(_=>{r&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),f&&f(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const xC=(t,e,n)=>{const o=new Map,r={platform:kC,...n},s={...r.platform,_c:o};return rC(t,e,{...r,platform:s})},SC=t=>{const e=i.ref(!1),n=i.ref(),o=i.ref(),r=i.ref(0);function s(){const f=i.unref(t.appendTo);return f?typeof f=="string"?document.getElementById(f)??document.body:f:document.getElementById("floatingElements")??document.body}const a=s(),l=i.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"),r.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 m=EC(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),m()}}function d(){!o.value||!n.value||xC(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[iC({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),sC({apply({availableWidth:f,availableHeight:p,elements:h,rects:m}){Object.assign(h.floating.style,{minHeight:`${r.value}px`,width:`${m.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`})})}i.onMounted(()=>{u()}),i.onBeforeUnmount(()=>{l.value()}),i.onUnmounted(()=>{l.value()})};function cn(t){return[null,void 0].indexOf(t)!==-1}function TC(t,e,n){const{object:o,valueProp:r,mode:s}=i.toRefs(t),a=i.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=d(f);const h=u(f);e.emit("change",h,a),p&&(e.emit("input",h),e.emit("update:modelValue",h))},u=f=>o.value||cn(f)?f:Array.isArray(f)?f.map(p=>p[r.value]):f[r.value],d=f=>cn(f)?s.value==="single"?{}:[]:f;return{update:c}}function AC(t,e){const{value:n,modelValue:o,mode:r,valueProp:s}=i.toRefs(t),a=i.ref(r.value!=="single"?[]:{}),l=i.computed(()=>o&&o.value!==void 0?o.value:n.value),c=i.computed(()=>r.value==="single"?a.value[s.value]:a.value.map(d=>d[s.value])),u=i.computed(()=>r.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 NC(t,e,n){const{regex:o}=i.toRefs(t),r=i.getCurrentInstance().proxy,s=n.isOpen,a=n.open,l=i.ref(null),c=()=>{l.value=""},u=p=>{l.value=p.target.value},d=p=>{if(o&&o.value){let h=o.value;typeof h=="string"&&(h=new RegExp(h)),p.key.match(h)||p.preventDefault()}},f=p=>{if(o&&o.value){let m=(p.clipboardData||window.clipboardData).getData("Text"),g=o.value;typeof g=="string"&&(g=new RegExp(g)),m.split("").every(y=>!!y.match(g))||p.preventDefault()}e.emit("paste",p,r)};return i.watch(l,p=>{!s.value&&p&&a(),e.emit("search-change",p,r)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function DC(t,e,n){const{groupSelect:o,mode:r,groups:s,disabledProp:a}=i.toRefs(t),l=i.ref(null),c=d=>{d===void 0||d!==null&&d[a.value]||s.value&&d&&d.group&&(r.value==="single"||!o.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function ml(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 MC(t){return Object.prototype.toString.call(t)==="[object Object]"}function BC(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,r){return o===n[r]})}function $C(t,e,n){const{options:o,mode:r,trackBy:s,limit:a,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:f,appendNewOption:p,multipleLabel:h,object:m,loading:g,delay:y,resolveOnLoad:_,minChars:C,filterResults:v,clearOnSearch:w,clearOnSelect:k,valueProp:b,allowAbsent:E,groupLabel:S,canDeselect:T,max:A,strict:V,closeOnSelect:I,closeOnDeselect:U,groups:$,reverse:H,infinite:L,groupOptions:ee,groupHideEmpty:O,groupSelect:D,onCreate:K,disabledProp:P,searchStart:q,searchFilter:ce}=i.toRefs(t),Q=i.getCurrentInstance().proxy,ie=n.iv,R=n.ev,te=n.search,B=n.clearSearch,G=n.update,ge=n.pointer,qe=n.setPointer,de=n.clearPointer,_e=n.focus,we=n.deactivate,ut=n.close,Ne=n.localize,dt=i.ref([]),Ct=i.ref([]),Pe=i.ref(!1),ft=i.ref(null),bt=i.ref(L.value&&a.value===-1?10:a.value),jn=i.computed(()=>c.value||u.value||!1),Co=i.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),Fe=i.computed(()=>{if($.value){let N=Ht.value||[],Y=[];return N.forEach(me=>{ti(me[ee.value]).forEach(De=>{Y.push(Object.assign({},De,me[P.value]?{[P.value]:!0}:{}))})}),Y}else{let N=ti(Ct.value||[]);return dt.value.length&&(N=N.concat(dt.value)),N}}),pt=i.computed(()=>{let N=Fe.value;return H.value&&(N=N.reverse()),wn.value.length&&(N=wn.value.concat(N)),ei(N)}),nt=i.computed(()=>{let N=pt.value;return bt.value>0&&(N=N.slice(0,bt.value)),N}),Ht=i.computed(()=>{if(!$.value)return[];let N=[],Y=Ct.value||[];return dt.value.length&&N.push({[S.value]:" ",[ee.value]:[...dt.value],__CREATE__:!0}),N.concat(Y)}),kn=i.computed(()=>{let N=[...Ht.value].map(Y=>({...Y}));return wn.value.length&&(N[0]&&N[0].__CREATE__?N[0][ee.value]=[...wn.value,...N[0][ee.value]]:N=[{[S.value]:" ",[ee.value]:[...wn.value],__CREATE__:!0}].concat(N)),N}),Wn=i.computed(()=>{if(!$.value)return[];let N=kn.value;return wo((N||[]).map((Y,me)=>{const De=ti(Y[ee.value]);return{...Y,index:me,group:!0,[ee.value]:ei(De,!1).map(En=>Object.assign({},En,Y[P.value]?{[P.value]:!0}:{})),__VISIBLE__:ei(De).map(En=>Object.assign({},En,Y[P.value]?{[P.value]:!0}:{}))}}))}),bo=i.computed(()=>{switch(r.value){case"single":return!cn(ie.value[b.value]);case"multiple":case"tags":return!cn(ie.value)&&ie.value.length>0}}),Zn=i.computed(()=>h!==void 0&&h.value!==void 0?h.value(ie.value,Q):ie.value&&ie.value.length>1?`${ie.value.length} options selected`:"1 option selected"),or=i.computed(()=>!Fe.value.length&&!Pe.value&&!wn.value.length),rr=i.computed(()=>Fe.value.length>0&&nt.value.length==0&&(te.value&&$.value||!$.value)),wn=i.computed(()=>jn.value===!1||!te.value?[]:gs(te.value)!==-1?[]:[{[b.value]:te.value,[an.value[0]]:te.value,[d.value]:te.value,__CREATE__:!0}]),an=i.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),ps=i.computed(()=>{switch(r.value){case"single":return null;case"multiple":case"tags":return[]}}),Yr=i.computed(()=>g.value||Pe.value),jt=N=>{switch(typeof N!="object"&&(N=St(N)),r.value){case"single":G(N);break;case"multiple":case"tags":G(ie.value.concat(N));break}e.emit("select",wt(N),N,Q)},kt=N=>{switch(typeof N!="object"&&(N=St(N)),r.value){case"single":Jr();break;case"tags":case"multiple":G(Array.isArray(N)?ie.value.filter(Y=>N.map(me=>me[b.value]).indexOf(Y[b.value])===-1):ie.value.filter(Y=>Y[b.value]!=N[b.value]));break}e.emit("deselect",wt(N),N,Q)},wt=N=>m.value?N:N[b.value],ir=N=>{kt(N)},hs=(N,Y)=>{if(Y.button!==0){Y.preventDefault();return}ir(N)},Jr=()=>{G(ps.value),e.emit("clear",Q)},Et=N=>{if(N.group!==void 0)return r.value==="single"?!1:ms(N[ee.value])&&N[ee.value].length;switch(r.value){case"single":return!cn(ie.value)&&ie.value[b.value]==N[b.value];case"tags":case"multiple":return!cn(ie.value)&&ie.value.map(Y=>Y[b.value]).indexOf(N[b.value])!==-1}},sr=N=>N[P.value]===!0,Kn=()=>A===void 0||A.value===-1||!bo.value&&A.value>0?!1:ie.value.length>=A.value,ar=N=>{if(!sr(N)){if(K&&K.value&&!Et(N)&&N.__CREATE__&&(N={...N},delete N.__CREATE__,N=K.value(N,Q),N instanceof Promise)){Pe.value=!0,N.then(Y=>{Pe.value=!1,xt(Y)});return}xt(N)}},xt=N=>{switch(N.__CREATE__&&(N={...N},delete N.__CREATE__),r.value){case"single":if(N&&Et(N)){T.value&&kt(N),U.value&&(de(),ut());return}N&&ko(N),k.value&&B(),I.value&&(de(),ut()),N&&jt(N);break;case"multiple":if(N&&Et(N)){kt(N),U.value&&(de(),ut());return}if(Kn()){e.emit("max",Q);return}N&&(ko(N),jt(N)),k.value&&B(),l.value&&de(),I.value&&ut();break;case"tags":if(N&&Et(N)){kt(N),U.value&&(de(),ut());return}if(Kn()){e.emit("max",Q);return}N&&ko(N),k.value&&B(),N&&jt(N),l.value&&de(),I.value&&ut();break}I.value||_e()},Gn=N=>{if(!(sr(N)||r.value==="single"||!D.value)){switch(r.value){case"multiple":case"tags":al(N[ee.value])?kt(N[ee.value]):jt(N[ee.value].filter(Y=>ie.value.map(me=>me[b.value]).indexOf(Y[b.value])===-1).filter(Y=>!Y[P.value]).filter((Y,me)=>ie.value.length+1+me<=A.value||A.value===-1)),l.value&&ge.value&&qe(Wn.value.filter(Y=>!Y[P.value])[ge.value.index]);break}I.value&&we()}},ko=N=>{St(N[b.value])===void 0&&jn.value&&(e.emit("tag",N[b.value],Q),e.emit("option",N[b.value],Q),e.emit("create",N[b.value],Q),Co.value&&ll(N),B())},Xr=()=>{r.value!=="single"&&jt(nt.value.filter(N=>!N.disabled&&!Et(N)))},al=N=>N.find(Y=>!Et(Y)&&!Y[P.value])===void 0,ms=N=>N.find(Y=>!Et(Y))===void 0,St=N=>Fe.value[Fe.value.map(Y=>String(Y[b.value])).indexOf(String(N))],gs=N=>Fe.value.findIndex(Y=>an.value.some(me=>(parseInt(Y[me])==Y[me]?parseInt(Y[me]):Y[me])===(parseInt(N)==N?parseInt(N):N))),Qr=N=>["tags","multiple"].indexOf(r.value)!==-1&&l.value&&Et(N),ll=N=>{dt.value.push(N)},wo=N=>O.value?N.filter(Y=>te.value?Y.__VISIBLE__.length:Y[ee.value].length):N.filter(Y=>te.value?Y.__VISIBLE__.length:!0),ei=(N,Y=!0)=>{let me=N;if(te.value&&v.value){let De=ce.value;De||(De=(En,Zt,ri)=>an.value.some(xn=>{let ys=ml(Ne(En[xn]),V.value);return q.value?ys.startsWith(ml(Zt,V.value)):ys.indexOf(ml(Zt,V.value))!==-1})),me=me.filter(En=>De(En,te.value,Q))}return l.value&&Y&&(me=me.filter(De=>!Qr(De))),me},ti=N=>{let Y=N;return MC(Y)&&(Y=Object.keys(Y).map(me=>{let De=Y[me];return{[b.value]:me,[an.value[0]]:De,[d.value]:De}})),Y=Y.map(me=>typeof me=="object"?me:{[b.value]:me,[an.value[0]]:me,[d.value]:me}),Y},Se=()=>{cn(R.value)||(ie.value=Yn(R.value))},Wt=N=>(Pe.value=!0,new Promise((Y,me)=>{o.value(te.value,Q).then(De=>{Ct.value=De||[],typeof N=="function"&&N(De),Pe.value=!1}).catch(De=>{console.error(De),Ct.value=[],Pe.value=!1}).finally(()=>{Y()})})),ni=()=>{if(bo.value)if(r.value==="single"){let N=St(ie.value[b.value]);if(N!==void 0){let Y=N[d.value];ie.value[d.value]=Y,m.value&&(R.value[d.value]=Y)}}else ie.value.forEach((N,Y)=>{let me=St(ie.value[Y][b.value]);if(me!==void 0){let De=me[d.value];ie.value[Y][d.value]=De,m.value&&(R.value[Y][d.value]=De)}})},vs=N=>{Wt(N)},Yn=N=>cn(N)?r.value==="single"?{}:[]:m.value?N:r.value==="single"?St(N)||(E.value?{[d.value]:N,[b.value]:N,[an.value[0]]:N}:{}):N.filter(Y=>!!St(Y)||E.value).map(Y=>St(Y)||{[d.value]:Y,[b.value]:Y,[an.value[0]]:Y}),oi=()=>{ft.value=i.watch(te,N=>{N.length<C.value||!N&&C.value!==0||(Pe.value=!0,w.value&&(Ct.value=[]),setTimeout(()=>{N==te.value&&o.value(te.value,Q).then(Y=>{(N==te.value||!te.value)&&(Ct.value=Y,ge.value=nt.value.filter(me=>me[P.value]!==!0)[0]||null,Pe.value=!1)}).catch(Y=>{console.error(Y)})},y.value))},{flush:"sync"})};if(r.value!=="single"&&!cn(R.value)&&!Array.isArray(R.value))throw new Error(`v-model must be an array when using "${r.value}" mode`);return o&&typeof o.value=="function"?_.value?Wt(Se):m.value==!0&&Se():(Ct.value=o.value,Se()),y.value>-1&&oi(),i.watch(y,(N,Y)=>{ft.value&&ft.value(),N>=0&&oi()}),i.watch(R,N=>{if(cn(N)){G(Yn(N),!1);return}switch(r.value){case"single":(m.value?N[b.value]!=ie.value[b.value]:N!=ie.value[b.value])&&G(Yn(N),!1);break;case"multiple":case"tags":BC(m.value?N.map(Y=>Y[b.value]):N,ie.value.map(Y=>Y[b.value]))||G(Yn(N),!1);break}},{deep:!0}),i.watch(o,(N,Y)=>{typeof t.options=="function"?_.value&&(!Y||N&&N.toString()!==Y.toString())&&Wt():(Ct.value=t.options,Object.keys(ie.value).length||Se(),ni())}),i.watch(d,ni),i.watch(a,(N,Y)=>{bt.value=L.value&&N===-1?10:N}),{pfo:pt,fo:nt,filteredOptions:nt,hasSelected:bo,multipleLabelText:Zn,eo:Fe,extendedOptions:Fe,eg:Ht,extendedGroups:Ht,fg:Wn,filteredGroups:Wn,noOptions:or,noResults:rr,resolving:Pe,busy:Yr,offset:bt,select:jt,deselect:kt,remove:ir,selectAll:Xr,clear:Jr,isSelected:Et,isDisabled:sr,isMax:Kn,getOption:St,handleOptionClick:ar,handleGroupClick:Gn,handleTagRemove:hs,refreshOptions:vs,resolveOptions:Wt,refreshLabels:ni}}function OC(t,e,n){const{valueProp:o,showOptions:r,searchable:s,groupLabel:a,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=i.toRefs(t),p=n.fo,h=n.fg,m=n.handleOptionClick,g=n.handleGroupClick,y=n.search,_=n.pointer,C=n.setPointer,v=n.clearPointer,w=n.multiselect,k=n.isOpen,b=i.computed(()=>p.value.filter(R=>!R[d.value])),E=i.computed(()=>h.value.filter(R=>!R[d.value])),S=i.computed(()=>c.value!=="single"&&u.value),T=i.computed(()=>_.value&&_.value.group),A=i.computed(()=>Q(_.value)),V=i.computed(()=>{const R=T.value?_.value:Q(_.value),te=E.value.map(G=>G[a.value]).indexOf(R[a.value]);let B=E.value[te-1];return B===void 0&&(B=U.value),B}),I=i.computed(()=>{let R=E.value.map(te=>te.label).indexOf(T.value?_.value[a.value]:Q(_.value)[a.value])+1;return E.value.length<=R&&(R=0),E.value[R]}),U=i.computed(()=>[...E.value].slice(-1)[0]),$=i.computed(()=>_.value.__VISIBLE__.filter(R=>!R[d.value])[0]),H=i.computed(()=>{const R=A.value.__VISIBLE__.filter(te=>!te[d.value]);return R[R.map(te=>te[o.value]).indexOf(_.value[o.value])-1]}),L=i.computed(()=>{const R=Q(_.value).__VISIBLE__.filter(te=>!te[d.value]);return R[R.map(te=>te[o.value]).indexOf(_.value[o.value])+1]}),ee=i.computed(()=>[...V.value.__VISIBLE__.filter(R=>!R[d.value])].slice(-1)[0]),O=i.computed(()=>[...U.value.__VISIBLE__.filter(R=>!R[d.value])].slice(-1)[0]),D=R=>_.value&&(!R.group&&_.value[o.value]===R[o.value]||R.group!==void 0&&_.value[a.value]===R[a.value])?!0:void 0,K=()=>{C(b.value[0]||null)},P=()=>{!_.value||_.value[d.value]===!0||(T.value?g(_.value):m(_.value))},q=()=>{if(_.value===null)C((l.value&&S.value?E.value[0].__CREATE__?b.value[0]:E.value[0]:b.value[0])||null);else if(l.value&&S.value){let R=T.value?$.value:L.value;R===void 0&&(R=I.value,R.__CREATE__&&(R=R[f.value][0])),C(R||null)}else{let R=b.value.map(te=>te[o.value]).indexOf(_.value[o.value])+1;b.value.length<=R&&(R=0),C(b.value[R]||null)}i.nextTick(()=>{ie()})},ce=()=>{if(_.value===null){let R=b.value[b.value.length-1];l.value&&S.value&&(R=O.value,R===void 0&&(R=U.value)),C(R||null)}else if(l.value&&S.value){let R=T.value?ee.value:H.value;R===void 0&&(R=T.value?V.value:A.value,R.__CREATE__&&(R=ee.value,R===void 0&&(R=V.value))),C(R||null)}else{let R=b.value.map(te=>te[o.value]).indexOf(_.value[o.value])-1;R<0&&(R=b.value.length-1),C(b.value[R]||null)}i.nextTick(()=>{ie()})},Q=R=>E.value.find(te=>te.__VISIBLE__.map(B=>B[o.value]).indexOf(R[o.value])!==-1),ie=()=>{let R=w.value.querySelector("[data-pointed]");if(!R)return;let te=R.parentElement.parentElement;l.value&&(te=T.value?R.parentElement.parentElement.parentElement:R.parentElement.parentElement.parentElement.parentElement),R.offsetTop+R.offsetHeight>te.clientHeight+te.scrollTop&&(te.scrollTop=R.offsetTop+R.offsetHeight-te.clientHeight),R.offsetTop<te.scrollTop&&(te.scrollTop=R.offsetTop)};return i.watch(y,R=>{s.value&&(R.length&&r.value?K():v())}),i.watch(k,R=>{if(R){let te=w.value.querySelectorAll("[data-selected]")[0];if(!te)return;let B=te.parentElement.parentElement;i.nextTick(()=>{B.scrollTop>0||(B.scrollTop=te.offsetTop)})}}),{pointer:_,canPointGroups:S,isPointed:D,setPointerFirst:K,selectPointer:P,forwardPointer:q,backwardPointer:ce}}function $t(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Uo(t){var e=$t(t).Element;return t instanceof e||t instanceof Element}function Vt(t){var e=$t(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Kc(t){if(typeof ShadowRoot>"u")return!1;var e=$t(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var Lo=Math.max,Qs=Math.min,Mr=Math.round;function tc(){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 Ip(){return!/^((?!chrome|android).)*safari/i.test(tc())}function Br(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),r=1,s=1;e&&Vt(t)&&(r=t.offsetWidth>0&&Mr(o.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Mr(o.height)/t.offsetHeight||1);var a=Uo(t)?$t(t):window,l=a.visualViewport,c=!Ip()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/r,d=(o.top+(c&&l?l.offsetTop:0))/s,f=o.width/r,p=o.height/s;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Gc(t){var e=$t(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function LC(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function IC(t){return t===$t(t)||!Vt(t)?Gc(t):LC(t)}function vn(t){return t?(t.nodeName||"").toLowerCase():null}function go(t){return((Uo(t)?t.ownerDocument:t.document)||window.document).documentElement}function Yc(t){return Br(go(t)).left+Gc(t).scrollLeft}function Fn(t){return $t(t).getComputedStyle(t)}function Jc(t){var e=Fn(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function PC(t){var e=t.getBoundingClientRect(),n=Mr(e.width)/t.offsetWidth||1,o=Mr(e.height)/t.offsetHeight||1;return n!==1||o!==1}function FC(t,e,n){n===void 0&&(n=!1);var o=Vt(e),r=Vt(e)&&PC(e),s=go(e),a=Br(t,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((vn(e)!=="body"||Jc(s))&&(l=IC(e)),Vt(e)?(c=Br(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=Yc(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Pp(t){var e=Br(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 Ba(t){return vn(t)==="html"?t:t.assignedSlot||t.parentNode||(Kc(t)?t.host:null)||go(t)}function Fp(t){return["html","body","#document"].indexOf(vn(t))>=0?t.ownerDocument.body:Vt(t)&&Jc(t)?t:Fp(Ba(t))}function Ei(t,e){var n;e===void 0&&(e=[]);var o=Fp(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),s=$t(o),a=r?[s].concat(s.visualViewport||[],Jc(o)?o:[]):o,l=e.concat(a);return r?l:l.concat(Ei(Ba(a)))}function RC(t){return["table","td","th"].indexOf(vn(t))>=0}function Cd(t){return!Vt(t)||Fn(t).position==="fixed"?null:t.offsetParent}function VC(t){var e=/firefox/i.test(tc()),n=/Trident/i.test(tc());if(n&&Vt(t)){var o=Fn(t);if(o.position==="fixed")return null}var r=Ba(t);for(Kc(r)&&(r=r.host);Vt(r)&&["html","body"].indexOf(vn(r))<0;){var s=Fn(r);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 r;r=r.parentNode}return null}function $a(t){for(var e=$t(t),n=Cd(t);n&&RC(n)&&Fn(n).position==="static";)n=Cd(n);return n&&(vn(n)==="html"||vn(n)==="body"&&Fn(n).position==="static")?e:n||VC(t)||e}var Jt="top",yn="bottom",uo="right",$n="left",Xc="auto",Oa=[Jt,yn,uo,$n],$r="start",Fi="end",zC="clippingParents",Rp="viewport",fi="popper",UC="reference",bd=Oa.reduce(function(t,e){return t.concat([e+"-"+$r,e+"-"+Fi])},[]),qC=[].concat(Oa,[Xc]).reduce(function(t,e){return t.concat([e,e+"-"+$r,e+"-"+Fi])},[]),HC="beforeRead",jC="read",WC="afterRead",ZC="beforeMain",KC="main",GC="afterMain",YC="beforeWrite",JC="write",XC="afterWrite",QC=[HC,jC,WC,ZC,KC,GC,YC,JC,XC];function eb(t){var e=new Map,n=new Set,o=[];t.forEach(function(s){e.set(s.name,s)});function r(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&&r(c)}}),o.push(s)}return t.forEach(function(s){n.has(s.name)||r(s)}),o}function tb(t){var e=eb(t);return QC.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function nb(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function ob(t){var e=t.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}function rb(t,e){var n=$t(t),o=go(t),r=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;var u=Ip();(u||!u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l+Yc(t),y:c}}function ib(t){var e,n=go(t),o=Gc(t),r=(e=t.ownerDocument)==null?void 0:e.body,s=Lo(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Lo(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Yc(t),c=-o.scrollTop;return Fn(r||n).direction==="rtl"&&(l+=Lo(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function sb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Kc(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function nc(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=Br(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 kd(t,e,n){return e===Rp?nc(rb(t,n)):Uo(e)?ab(e,n):nc(ib(go(t)))}function lb(t){var e=Ei(Ba(t)),n=["absolute","fixed"].indexOf(Fn(t).position)>=0,o=n&&Vt(t)?$a(t):t;return Uo(o)?e.filter(function(r){return Uo(r)&&sb(r,o)&&vn(r)!=="body"}):[]}function cb(t,e,n,o){var r=e==="clippingParents"?lb(t):[].concat(e),s=[].concat(r,[n]),a=s[0],l=s.reduce(function(c,u){var d=kd(t,u,o);return c.top=Lo(d.top,c.top),c.right=Qs(d.right,c.right),c.bottom=Qs(d.bottom,c.bottom),c.left=Lo(d.left,c.left),c},kd(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 io(t){return t.split("-")[0]}function Or(t){return t.split("-")[1]}function Vp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function zp(t){var e=t.reference,n=t.element,o=t.placement,r=o?io(o):null,s=o?Or(o):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(r){case Jt:c={x:a,y:e.y-n.height};break;case yn:c={x:a,y:e.y+e.height};break;case uo:c={x:e.x+e.width,y:l};break;case $n:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=r?Vp(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case $r:c[u]=c[u]-(e[d]/2-n[d]/2);break;case Fi:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function Up(){return{top:0,right:0,bottom:0,left:0}}function ub(t){return Object.assign({},Up(),t)}function db(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function Qc(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=o===void 0?t.placement:o,s=n.strategy,a=s===void 0?t.strategy:s,l=n.boundary,c=l===void 0?zC:l,u=n.rootBoundary,d=u===void 0?Rp:u,f=n.elementContext,p=f===void 0?fi:f,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,y=g===void 0?0:g,_=ub(typeof y!="number"?y:db(y,Oa)),C=p===fi?UC:fi,v=t.rects.popper,w=t.elements[m?C:p],k=cb(Uo(w)?w:w.contextElement||go(t.elements.popper),c,d,a),b=Br(t.elements.reference),E=zp({reference:b,element:v,strategy:"absolute",placement:r}),S=nc(Object.assign({},v,E)),T=p===fi?S:b,A={top:k.top-T.top+_.top,bottom:T.bottom-k.bottom+_.bottom,left:k.left-T.left+_.left,right:T.right-k.right+_.right},V=t.modifiersData.offset;if(p===fi&&V){var I=V[r];Object.keys(A).forEach(function(U){var $=[uo,yn].indexOf(U)>=0?1:-1,H=[Jt,yn].indexOf(U)>=0?"y":"x";A[U]+=I[H]*$})}return A}var wd={placement:"bottom",modifiers:[],strategy:"absolute"};function Ed(){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 fb(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,r=e.defaultOptions,s=r===void 0?wd:r;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},wd,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(_){var C=typeof _=="function"?_(d.options):_;g(),d.options=Object.assign({},s,d.options,C),d.scrollParents={reference:Uo(l)?Ei(l):l.contextElement?Ei(l.contextElement):[],popper:Ei(c)};var v=tb(ob([].concat(o,d.options.modifiers)));return d.orderedModifiers=v.filter(function(w){return w.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var _=d.elements,C=_.reference,v=_.popper;if(Ed(C,v)){d.rects={reference:FC(C,$a(v),d.options.strategy==="fixed"),popper:Pp(v)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(A){return d.modifiersData[A.name]=Object.assign({},A.data)});for(var w=0;w<d.orderedModifiers.length;w++){if(d.reset===!0){d.reset=!1,w=-1;continue}var k=d.orderedModifiers[w],b=k.fn,E=k.options,S=E===void 0?{}:E,T=k.name;typeof b=="function"&&(d=b({state:d,options:S,name:T,instance:h})||d)}}}},update:nb(function(){return new Promise(function(y){h.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!Ed(l,c))return h;h.setOptions(u).then(function(y){!p&&u.onFirstUpdate&&u.onFirstUpdate(y)});function m(){d.orderedModifiers.forEach(function(y){var _=y.name,C=y.options,v=C===void 0?{}:C,w=y.effect;if(typeof w=="function"){var k=w({state:d,name:_,instance:h,options:v}),b=function(){};f.push(k||b)}})}function g(){f.forEach(function(y){return y()}),f=[]}return h}}var Ss={passive:!0};function pb(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,s=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,c=$t(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ss)}),l&&c.addEventListener("resize",n.update,Ss),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ss)}),l&&c.removeEventListener("resize",n.update,Ss)}}var hb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pb,data:{}};function mb(t){var e=t.state,n=t.name;e.modifiersData[n]=zp({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var gb={name:"popperOffsets",enabled:!0,phase:"read",fn:mb,data:{}},vb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yb(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:Mr(n*r)/r||0,y:Mr(o*r)/r||0}}function xd(t){var e,n=t.popper,o=t.popperRect,r=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,h=p===void 0?0:p,m=a.y,g=m===void 0?0:m,y=typeof d=="function"?d({x:h,y:g}):{x:h,y:g};h=y.x,g=y.y;var _=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),v=$n,w=Jt,k=window;if(u){var b=$a(n),E="clientHeight",S="clientWidth";if(b===$t(n)&&(b=go(n),Fn(b).position!=="static"&&l==="absolute"&&(E="scrollHeight",S="scrollWidth")),b=b,r===Jt||(r===$n||r===uo)&&s===Fi){w=yn;var T=f&&b===k&&k.visualViewport?k.visualViewport.height:b[E];g-=T-o.height,g*=c?1:-1}if(r===$n||(r===Jt||r===yn)&&s===Fi){v=uo;var A=f&&b===k&&k.visualViewport?k.visualViewport.width:b[S];h-=A-o.width,h*=c?1:-1}}var V=Object.assign({position:l},u&&vb),I=d===!0?yb({x:h,y:g},$t(n)):{x:h,y:g};if(h=I.x,g=I.y,c){var U;return Object.assign({},V,(U={},U[w]=C?"0":"",U[v]=_?"0":"",U.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",U))}return Object.assign({},V,(e={},e[w]=C?g+"px":"",e[v]=_?h+"px":"",e.transform="",e))}function _b(t){var e=t.state,n=t.options,o=n.gpuAcceleration,r=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:io(e.placement),variation:Or(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,xd(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,xd(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 Cb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_b,data:{}};function bb(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},r=e.attributes[n]||{},s=e.elements[n];!Vt(s)||!vn(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function kb(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 r=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},{});!Vt(r)||!vn(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}var wb={name:"applyStyles",enabled:!0,phase:"write",fn:bb,effect:kb,requires:["computeStyles"]},Eb=[hb,gb,Cb,wb],xb=fb({defaultModifiers:Eb});function Sb(t){return t==="x"?"y":"x"}function zs(t,e,n){return Lo(t,Qs(e,n))}function Tb(t,e,n){var o=zs(t,e,n);return o>n?n:o}function Ab(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,g=m===void 0?0:m,y=Qc(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),_=io(e.placement),C=Or(e.placement),v=!C,w=Vp(_),k=Sb(w),b=e.modifiersData.popperOffsets,E=e.rects.reference,S=e.rects.popper,T=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,A=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),V=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(b){if(s){var U,$=w==="y"?Jt:$n,H=w==="y"?yn:uo,L=w==="y"?"height":"width",ee=b[w],O=ee+y[$],D=ee-y[H],K=h?-S[L]/2:0,P=C===$r?E[L]:S[L],q=C===$r?-S[L]:-E[L],ce=e.elements.arrow,Q=h&&ce?Pp(ce):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Up(),R=ie[$],te=ie[H],B=zs(0,E[L],Q[L]),G=v?E[L]/2-K-B-R-A.mainAxis:P-B-R-A.mainAxis,ge=v?-E[L]/2+K+B+te+A.mainAxis:q+B+te+A.mainAxis,qe=e.elements.arrow&&$a(e.elements.arrow),de=qe?w==="y"?qe.clientTop||0:qe.clientLeft||0:0,_e=(U=V==null?void 0:V[w])!=null?U:0,we=ee+G-_e-de,ut=ee+ge-_e,Ne=zs(h?Qs(O,we):O,ee,h?Lo(D,ut):D);b[w]=Ne,I[w]=Ne-ee}if(l){var dt,Ct=w==="x"?Jt:$n,Pe=w==="x"?yn:uo,ft=b[k],bt=k==="y"?"height":"width",jn=ft+y[Ct],Co=ft-y[Pe],Fe=[Jt,$n].indexOf(_)!==-1,pt=(dt=V==null?void 0:V[k])!=null?dt:0,nt=Fe?jn:ft-E[bt]-S[bt]-pt+A.altAxis,Ht=Fe?ft+E[bt]+S[bt]-pt-A.altAxis:Co,kn=h&&Fe?Tb(nt,ft,Ht):zs(h?nt:jn,ft,h?Ht:Co);b[k]=kn,I[k]=kn-ft}e.modifiersData[o]=I}}var Nb={name:"preventOverflow",enabled:!0,phase:"main",fn:Ab,requiresIfExists:["offset"]},Db={left:"right",right:"left",bottom:"top",top:"bottom"};function Us(t){return t.replace(/left|right|bottom|top/g,function(e){return Db[e]})}var Mb={start:"end",end:"start"};function Sd(t){return t.replace(/start|end/g,function(e){return Mb[e]})}function Bb(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?qC:c,d=Or(o),f=d?l?bd:bd.filter(function(m){return Or(m)===d}):Oa,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var h=p.reduce(function(m,g){return m[g]=Qc(t,{placement:g,boundary:r,rootBoundary:s,padding:a})[io(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function $b(t){if(io(t)===Xc)return[];var e=Us(t);return[Sd(t),e,Sd(e)]}function Ob(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,g=n.allowedAutoPlacements,y=e.options.placement,_=io(y),C=_===y,v=c||(C||!m?[Us(y)]:$b(y)),w=[y].concat(v).reduce(function(Q,ie){return Q.concat(io(ie)===Xc?Bb(e,{placement:ie,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):ie)},[]),k=e.rects.reference,b=e.rects.popper,E=new Map,S=!0,T=w[0],A=0;A<w.length;A++){var V=w[A],I=io(V),U=Or(V)===$r,$=[Jt,yn].indexOf(I)>=0,H=$?"width":"height",L=Qc(e,{placement:V,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),ee=$?U?uo:$n:U?yn:Jt;k[H]>b[H]&&(ee=Us(ee));var O=Us(ee),D=[];if(s&&D.push(L[I]<=0),l&&D.push(L[ee]<=0,L[O]<=0),D.every(function(Q){return Q})){T=V,S=!1;break}E.set(V,D)}if(S)for(var K=m?3:1,P=function(ie){var R=w.find(function(te){var B=E.get(te);if(B)return B.slice(0,ie).every(function(G){return G})});if(R)return T=R,"break"},q=K;q>0;q--){var ce=P(q);if(ce==="break")break}e.placement!==T&&(e.modifiersData[o]._skip=!0,e.placement=T,e.reset=!0)}}var Lb={name:"flip",enabled:!0,phase:"main",fn:Ob,requiresIfExists:["offset"],data:{_skip:!1}};function Ib(t,e,n){const{disabled:o,appendTo:r,appendToBody:s,openDirection:a}=i.toRefs(t),l=i.getCurrentInstance().proxy,c=n.multiselect,u=n.dropdown,d=i.ref(!1),f=i.ref(null),p=i.ref(null),h=i.computed(()=>r.value||s.value),m=i.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),h.value&&i.nextTick(()=>{_()}))},y=()=>{d.value&&(d.value=!1,e.emit("close",l))},_=()=>{if(!f.value)return;let v=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),w=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(k=>({...k,modifiers:[...k.modifiers,{name:"offset",options:{offset:[0,(m.value==="top"?v:w)*-1]}}]})),f.value.update()},C=v=>{for(;v&&v!==document.body;){if(getComputedStyle(v).position==="fixed")return!0;v=v.parentElement}return!1};return i.onMounted(()=>{h.value&&(f.value=xb(c.value,u.value,{strategy:C(c.value)?"fixed":void 0,placement:a.value,modifiers:[Nb,Lb,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:v})=>{v.styles.popper.width=`${v.rects.reference.width}px`},effect:({state:v})=>{v.elements.popper.style.width=`${v.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:v}){p.value=v.placement}}]}))}),i.onBeforeUnmount(()=>{!h.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:g,close:y,placement:m,updatePopper:_}}function Pb(t,e,n){const{searchable:o,disabled:r,clearOnBlur:s}=i.toRefs(t),a=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,f=n.wrapper,p=n.tags,h=i.ref(!1),m=i.ref(!1),g=i.computed(()=>o.value||r.value?-1:0),y=()=>{o.value&&a.value.blur(),f.value.blur()},_=()=>{o.value&&!r.value&&a.value.focus()},C=(S=!0)=>{r.value||(h.value=!0,S&&l())},v=()=>{h.value=!1,setTimeout(()=>{h.value||(c(),s.value&&u())},1)};return{tabindex:g,isActive:h,mouseClicked:m,blur:y,focus:_,activate:C,deactivate:v,handleFocusIn:S=>{S.target.closest("[data-tags]")&&S.target.nodeName!=="INPUT"||S.target.closest("[data-clear]")||C(m.value)},handleFocusOut:()=>{v()},handleCaretClick:()=>{v(),y()},handleMousedown:S=>{m.value=!0,d.value&&(S.target.isEqualNode(f.value)||S.target.isEqualNode(p.value))?setTimeout(()=>{v()},0):!d.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(a.value))&&C(),setTimeout(()=>{m.value=!1},0)}}}function Fb(t,e,n){const{mode:o,addTagOn:r,openDirection:s,searchable:a,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:h}=i.toRefs(t),m=i.getCurrentInstance().proxy,g=n.iv,y=n.update,_=n.deselect,C=n.search,v=n.setPointer,w=n.selectPointer,k=n.backwardPointer,b=n.forwardPointer,E=n.multiselect,S=n.wrapper,T=n.tags,A=n.isOpen,V=n.open,I=n.blur,U=n.fo,$=i.computed(()=>f.value||p.value||!1),H=i.computed(()=>r.value!==void 0?r.value:d.value!==void 0?d.value:["enter"]),L=()=>{o.value==="tags"&&!l.value&&$.value&&a.value&&!u.value&&v(U.value[U.value.map(D=>D[c.value]).indexOf(C.value)])};return{handleKeydown:D=>{e.emit("keydown",D,m);let K,P;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(D.key)!==-1&&o.value==="tags"&&(K=[...E.value.querySelectorAll("[data-tags] > *")].filter(q=>q!==T.value),P=K.findIndex(q=>q===document.activeElement)),D.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(C.value)===-1||g.value.length===0)return;let q=g.value.filter(ce=>!ce.disabled&&ce.remove!==!1);q.length&&_(q[q.length-1]);break;case"Enter":if(D.preventDefault(),D.keyCode===229)return;if(P!==-1&&P!==void 0){y([...g.value].filter((ce,Q)=>Q!==P)),P===K.length-1&&(K.length-1?K[K.length-2].focus():a.value?T.value.querySelector("input").focus():S.value.focus());return}if(H.value.indexOf("enter")===-1&&$.value)return;L(),w();break;case" ":if(!$.value&&!a.value){D.preventDefault(),L(),w();return}if(!$.value)return!1;if(H.value.indexOf("space")===-1&&$.value)return;D.preventDefault(),L(),w();break;case"Tab":case";":case",":if(H.value.indexOf(D.key.toLowerCase())===-1||!$.value)return;L(),w(),D.preventDefault();break;case"Escape":I();break;case"ArrowUp":if(D.preventDefault(),!l.value)return;A.value||V(),k();break;case"ArrowDown":if(D.preventDefault(),!l.value)return;A.value||V(),b();break;case"ArrowLeft":if(a.value&&T.value&&T.value.querySelector("input").selectionStart||D.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;D.preventDefault(),P===-1?K[K.length-1].focus():P>0&&K[P-1].focus();break;case"ArrowRight":if(P===-1||D.shiftKey||o.value!=="tags"||!g.value||!g.value.length)return;D.preventDefault(),K.length>P+1?K[P+1].focus():a.value?T.value.querySelector("input").focus():a.value||S.value.focus();break}},handleKeyup:D=>{e.emit("keyup",D,m)},preparePointer:L}}function Rb(t,e,n){const{classes:o,disabled:r,showOptions:s,breakTags:a}=i.toRefs(t),l=n.isOpen,c=n.isPointed,u=n.isSelected,d=n.isDisabled,f=n.isActive,p=n.canPointGroups,h=n.resolving,m=n.fo,g=n.placement,y=i.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})),_=i.computed(()=>!!(l.value&&s.value&&(!h.value||h.value&&m.value.length)));return{classList:i.computed(()=>{const v=y.value;return{container:[v.container].concat(r.value?v.containerDisabled:[]).concat(_.value&&g.value==="top"?v.containerOpenTop:[]).concat(_.value&&g.value!=="top"?v.containerOpen:[]).concat(f.value?v.containerActive:[]),wrapper:v.wrapper,spacer:v.spacer,singleLabel:v.singleLabel,singleLabelText:v.singleLabelText,multipleLabel:v.multipleLabel,search:v.search,tags:v.tags,tag:[v.tag].concat(r.value?v.tagDisabled:[]),tagWrapper:[v.tagWrapper,a.value?v.tagWrapperBreak:null],tagDisabled:v.tagDisabled,tagRemove:v.tagRemove,tagRemoveIcon:v.tagRemoveIcon,tagsSearchWrapper:v.tagsSearchWrapper,tagsSearch:v.tagsSearch,tagsSearchCopy:v.tagsSearchCopy,placeholder:v.placeholder,caret:[v.caret].concat(l.value?v.caretOpen:[]),clear:v.clear,clearIcon:v.clearIcon,spinner:v.spinner,inifinite:v.inifinite,inifiniteSpinner:v.inifiniteSpinner,dropdown:[v.dropdown].concat(g.value==="top"?v.dropdownTop:[]).concat(!l.value||!s.value||!_.value?v.dropdownHidden:[]),options:[v.options].concat(g.value==="top"?v.optionsTop:[]),group:v.group,groupLabel:w=>{let k=[v.groupLabel];return c(w)?k.push(u(w)?v.groupLabelSelectedPointed:v.groupLabelPointed):u(w)&&p.value?k.push(d(w)?v.groupLabelSelectedDisabled:v.groupLabelSelected):d(w)&&k.push(v.groupLabelDisabled),p.value&&k.push(v.groupLabelPointable),k},groupOptions:v.groupOptions,option:(w,k)=>{let b=[v.option];return c(w)?b.push(u(w)?v.optionSelectedPointed:v.optionPointed):u(w)?b.push(d(w)?v.optionSelectedDisabled:v.optionSelected):(d(w)||k&&d(k))&&b.push(v.optionDisabled),b},noOptions:v.noOptions,noResults:v.noResults,assist:v.assist,fakeInput:v.fakeInput}}),showDropdown:_}}function Vb(t,e,n){const{limit:o,infinite:r}=i.toRefs(t),s=n.isOpen,a=n.offset,l=n.search,c=n.pfo,u=n.eo,d=i.ref(null),f=i.ref(null),p=i.computed(()=>a.value<c.value.length),h=g=>{const{isIntersecting:y,target:_}=g[0];if(y){const C=_.offsetParent,v=C.scrollTop;a.value+=o.value==-1?10:o.value,i.nextTick(()=>{C.scrollTop=v})}},m=()=>{s.value&&a.value<c.value.length?d.value.observe(f.value):!s.value&&d.value&&d.value.disconnect()};return i.watch(s,()=>{r.value&&m()}),i.watch(l,()=>{r.value&&(a.value=o.value,m())},{flush:"post"}),i.watch(u,()=>{r.value&&m()},{immediate:!1,flush:"post"}),i.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(h))}),{hasMore:p,infiniteLoader:f}}function zb(t,e,n){const{placeholder:o,id:r,valueProp:s,label:a,mode:l,groupLabel:c,aria:u,searchable:d}=i.toRefs(t),f=n.pointer,p=n.iv,h=n.hasSelected,m=n.multipleLabelText,g=i.ref(null),y=i.computed(()=>{let I=[];return r&&r.value&&I.push(r.value),I.push("assist"),I.join("-")}),_=i.computed(()=>{let I=[];return r&&r.value&&I.push(r.value),I.push("multiselect-options"),I.join("-")}),C=i.computed(()=>{let I=[];if(r&&r.value&&I.push(r.value),f.value)return I.push(f.value.group?"multiselect-group":"multiselect-option"),I.push(f.value.group?f.value.index:f.value[s.value]),I.join("-")}),v=i.computed(()=>o.value),w=i.computed(()=>l.value!=="single"),k=i.computed(()=>{let I="";return l.value==="single"&&h.value&&(I+=p.value[a.value]),l.value==="multiple"&&h.value&&(I+=m.value),l.value==="tags"&&h.value&&(I+=p.value.map(U=>U[a.value]).join(", ")),I}),b=i.computed(()=>{let I={...u.value};return d.value&&(I["aria-labelledby"]=I["aria-labelledby"]?`${y.value} ${I["aria-labelledby"]}`:y.value,k.value&&I["aria-label"]&&(I["aria-label"]=`${k.value}, ${I["aria-label"]}`)),I}),E=I=>{let U=[];return r&&r.value&&U.push(r.value),U.push("multiselect-option"),U.push(I[s.value]),U.join("-")},S=I=>{let U=[];return r&&r.value&&U.push(r.value),U.push("multiselect-group"),U.push(I.index),U.join("-")},T=I=>{let U=[];return U.push(I),U.join(" ")},A=I=>{let U=[];return U.push(I),U.join(" ")},V=I=>`${I} ❎`;return i.onMounted(()=>{if(r&&r.value&&document&&document.querySelector){let I=document.querySelector(`[for="${r.value}"]`);g.value=I?I.innerText:null}}),{arias:b,ariaLabel:k,ariaAssist:y,ariaControls:_,ariaPlaceholder:v,ariaMultiselectable:w,ariaActiveDescendant:C,ariaOptionId:E,ariaOptionLabel:T,ariaGroupId:S,ariaGroupLabel:A,ariaTagLabel:V}}function Ub(t,e,n){const{locale:o,fallbackLocale:r}=i.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[r.value]?a[r.value]:a&&r.value&&a[r.value.toUpperCase()]?a[r.value.toUpperCase()]:a&&Object.keys(a)[0]?a[Object.keys(a)[0]]:""}}function qb(t,e,n){const o=i.ref(null),r=i.ref(null),s=i.ref(null),a=i.ref(null),l=i.ref(null);return{multiselect:o,wrapper:r,tags:s,input:a,dropdown:l}}function Hb(t,e,n,o={}){return n.forEach(r=>{r&&(o={...o,...r(t,e,o)})}),o}var eo={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 Hb(t,e,[qb,Ub,AC,DC,Ib,NC,TC,Pb,$C,Vb,OC,Fb,Rb,zb])},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 jb=["id","dir"],Wb=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],Zb=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Kb=["onKeyup","aria-label"],Gb=["onClick"],Yb=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Jb=["innerHTML"],Xb=["id"],Qb=["id"],e9=["id","aria-label","aria-selected"],t9=["data-pointed","onMouseenter","onMousedown"],n9=["innerHTML"],o9=["aria-label"],r9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],i9=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],s9=["innerHTML"],a9=["innerHTML"],l9=["value"],c9=["name","value"],u9=["name","value"],d9=["id"];function f9(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",{ref:"multiselect",class:i.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))},[i.createElementVNode("div",i.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),[i.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.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]=i.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,Zb)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(t.classList.tags),"data-tags":""},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.iv,(a,l,c)=>i.renderSlot(t.$slots,"tag",{option:a,handleTagRemove:t.handleTagRemove,disabled:n.disabled},()=>[(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass([t.classList.tag,a.disabled?t.classList.tagDisabled:null]),tabindex:"-1",onKeyup:i.withKeys(u=>t.handleTagRemove(a,u),["enter"]),key:c,"aria-label":t.ariaTagLabel(t.localize(a[n.label]))},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagWrapper)},i.toDisplayString(t.localize(a[n.label])),3),!n.disabled&&!a.disabled?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(t.classList.tagRemove),onClick:i.withModifiers(u=>t.handleTagRemove(a,u),["stop"])},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,Gb)):i.createCommentVNode("v-if",!0)],42,Kb))])),256)),i.createElementVNode("div",{class:i.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[i.createCommentVNode(" Used for measuring search width "),i.createElementVNode("span",{class:i.normalizeClass(t.classList.tagsSearchCopy)},i.toDisplayString(t.search),3),i.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(i.openBlock(),i.createElementBlock("input",i.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]=i.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,Yb)):i.createCommentVNode("v-if",!0)],2)],2)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Single label "),n.mode=="single"&&t.hasSelected&&!t.search&&t.iv?i.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.singleLabel)},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.singleLabelText)},i.toDisplayString(t.localize(t.iv[n.label])),3)],2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Multiple label "),n.mode=="multiple"&&t.hasSelected&&!t.search?i.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,Jb)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Placeholder "),n.placeholder&&!t.hasSelected&&!t.search?i.renderSlot(t.$slots,"placeholder",{key:4},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},i.toDisplayString(n.placeholder),3)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Spinner "),n.loading||t.resolving?i.renderSlot(t.$slots,"spinner",{key:5},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Clear "),t.hasSelected&&!n.disabled&&n.canClear&&!t.busy?i.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},()=>[i.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:i.normalizeClass(t.classList.clear),onClick:e[6]||(e[6]=(...a)=>t.clear&&t.clear(...a)),onKeyup:e[7]||(e[7]=i.withKeys((...a)=>t.clear&&t.clear(...a),["enter"]))},[i.createElementVNode("span",{class:i.normalizeClass(t.classList.clearIcon)},null,2)],34)]):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Caret "),n.caret&&n.showOptions?i.renderSlot(t.$slots,"caret",{key:7,handleCaretClick:t.handleCaretClick,isOpen:t.isOpen},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.caret),onClick:e[8]||(e[8]=(...a)=>t.handleCaretClick&&t.handleCaretClick(...a)),"aria-hidden":"true"},null,2)]):i.createCommentVNode("v-if",!0)],16,Wb),i.createCommentVNode(" Options "),(i.openBlock(),i.createBlock(i.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[i.createElementVNode("div",{id:`${n.id}-dropdown`,class:i.normalizeClass(t.classList.dropdown),tabindex:"-1",ref:"dropdown"},[i.renderSlot(t.$slots,"beforelist",{options:t.fo}),i.createElementVNode("ul",{class:i.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[n.groups?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(t.fg,(a,l,c)=>(i.openBlock(),i.createElementBlock("li",{class:i.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__?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(t.classList.groupLabel(a)),"data-pointed":t.isPointed(a),onMouseenter:u=>t.setPointer(a,l),onMousedown:i.withModifiers(u=>t.handleGroupClick(a),["prevent"])},[i.renderSlot(t.$slots,"grouplabel",{group:a,isSelected:t.isSelected,isPointed:t.isPointed},()=>[i.createElementVNode("span",{innerHTML:t.localize(a[n.groupLabel])},null,8,n9)])],42,t9)),i.createElementVNode("ul",{class:i.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),role:"group"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.__VISIBLE__,(u,d,f)=>(i.openBlock(),i.createElementBlock("li",{class:i.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:i.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"},[i.renderSlot(t.$slots,"option",{option:u,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[i.createElementVNode("span",null,i.toDisplayString(t.localize(u[n.label])),1)])],42,r9))),128))],10,o9)],10,e9))),128)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.fo,(a,l,c)=>(i.openBlock(),i.createElementBlock("li",{class:i.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:i.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"},[i.renderSlot(t.$slots,"option",{option:a,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[i.createElementVNode("span",null,i.toDisplayString(t.localize(a[n.label])),1)])],42,i9))),128))],10,Qb),t.noOptions?i.renderSlot(t.$slots,"nooptions",{key:0},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.noOptions),innerHTML:t.localize(n.noOptionsText)},null,10,s9)]):i.createCommentVNode("v-if",!0),t.noResults?i.renderSlot(t.$slots,"noresults",{key:1},()=>[i.createElementVNode("div",{class:i.normalizeClass(t.classList.noResults),innerHTML:t.localize(n.noResultsText)},null,10,a9)]):i.createCommentVNode("v-if",!0),n.infinite&&t.hasMore?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[i.renderSlot(t.$slots,"infinite",{},()=>[i.createElementVNode("span",{class:i.normalizeClass(t.classList.inifiniteSpinner)},null,2)])],2)):i.createCommentVNode("v-if",!0),i.renderSlot(t.$slots,"afterlist",{options:t.fo})],10,Xb)],8,["to","disabled"])),i.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(i.openBlock(),i.createElementBlock("input",{key:0,class:i.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,l9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Native input support "),n.nativeSupport?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[n.mode=="single"?(i.openBlock(),i.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:t.plainValue!==void 0?t.plainValue:""},null,8,c9)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.plainValue,(a,l)=>(i.openBlock(),i.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:a,key:l},null,8,u9))),128))],64)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Screen reader assistive text "),n.searchable&&t.hasSelected?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},i.toDisplayString(t.ariaLabel),11,d9)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" Create height for empty input "),i.createElementVNode("div",{class:i.normalizeClass(t.classList.spacer)},null,2)],42,jb)}eo.render=f9;eo.__file="src/Multiselect.vue";const Nt=i.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(t){const e=t,n=i.toRef(()=>e.appendTo),o=i.ref();return e.detached&&SC({multiselect:o,appendTo:n.value}),(r,s)=>(i.openBlock(),i.createBlock(i.unref(eo),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect"},i.createSlots({_:2},[i.renderList(r.$slots,(a,l)=>({name:l,fn:i.withCtx(c=>[i.renderSlot(r.$slots,l,i.normalizeProps(i.guardReactiveProps(c??{})))])}))]),1536))}});var Td;function qn(){const t=p9(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function p9(){const t=i.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}i.defineComponent({props:{translation:{type:String,required:!0}},setup(t,{slots:e}){return()=>{const n=t.translation,o=[];let r,s=0;for(;(r=Td.exec(n))!==null;){o.push(n.substring(s,r.index));const a=e[r[1]];a?o.push(...a()):o.push(r[0]),s=Td.lastIndex}return o.push(n.substring(s)),o}}});async function On(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 r=o[0].id;await i.nextTick();const s=document.getElementById(r);s==null||s.focus(),await i.nextTick();const a=document.getElementById(r);a==null||a.select()}}const h9={class:"ao-tasks"},m9={class:"ao-tasks__list"},g9=["id","value","readonly","onChange"],v9={class:"ao-tasks__list-footer"},y9=i.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}=qn(),o=t,r=e;i.watch(()=>o.tasks,(p,h)=>{On(p,h)});const s=i.computed(()=>{var p;return((p=o.users)==null?void 0:p.map(h=>({label:`${h.firstName} ${h.lastName}`,value:h.id,avatar:h.avatarUrl})))??[]}),a=()=>{const p=o.tasks.length,h={name:n("task.defaultName",{idx:p+1}),activityId:o.activityId};r("add",h)},l=(p,h)=>{const g=p.target.value;r("update",{id:h,name:g})},c=(p,h)=>{o.isEditable&&r("update",{id:p,isDone:h})},u=p=>{r("delete",{id:p})},d=(p,h)=>{r("update",{id:h,assigneeId:p[0]??null})},f=p=>{const h=p.target;h==null||h.blur()};return(p,h)=>(i.openBlock(),i.createElementBlock("div",h9,[i.createElementVNode("ul",m9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tasks,m=>{var g,y;return i.openBlock(),i.createElementBlock("li",{key:m.id,class:"ao-subtask"},[((g=t.isCheckable)==null?void 0:g.call(t,m))??!1?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-subtask__check","icon-name":m.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>c(m.id,!m.isDone)},null,8,["icon-name","disabled","onClick"])):i.createCommentVNode("",!0),i.createElementVNode("input",{id:m.id,value:m.name,readonly:!t.isEditable,class:i.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":m.isDone}]),type:"text",onChange:_=>l(_,m.id),onKeyup:i.withKeys(f,["enter"])},null,42,g9),h[0]||(h[0]=i.createTextVNode(". ",-1)),!t.isTemplate&&t.users?(i.openBlock(),i.createBlock(Nt,{key:1,value:(y=m.assignee)!=null&&y.id?[m.assignee.id]:[],options:s.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:p.$t("feed.filters.assignee.placeholder"),disabled:!t.isEditable,caret:t.isEditable,onChange:_=>d(_,m.id)},{tag:i.withCtx(({option:_,handleTagRemove:C})=>[i.createVNode(zn,{"user-name":_.label,"avatar-url":_.avatar,"is-closable":!0,onClose:v=>C(_,v)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):i.createCommentVNode("",!0),t.isEditable?(i.openBlock(),i.createBlock(he,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>u(m.id)},null,8,["onClick"])):i.createCommentVNode("",!0)])}),128))]),i.createElementVNode("div",v9,[t.isEditable?(i.openBlock(),i.createBlock(he,{key:0,label:p.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:a},null,8,["label"])):i.createCommentVNode("",!0)])]))}});const _9={class:"ao-files__placeholder"},C9={key:0,class:"ao-files__list"},b9=["href"],k9={class:"ao-file__title"},w9={key:0},E9={class:"ao-files__input"},x9={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},S9={class:"ao-button__label"},T9={class:"ao-files__dropzone"},A9={class:"ao-files__dropzone-label"},N9=i.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove"],setup(t,{emit:e}){const n=e,o=t,r=f=>{n("remove",f)},s=f=>{const p=f.target,h=Array.from(p.files??[]);n("add",h)},a=["dragenter","dragover","dragleave","drop"];i.onMounted(()=>{a.forEach(f=>{document.body.addEventListener(f,p=>p.preventDefault())})}),i.onUnmounted(()=>{a.forEach(f=>{document.body.removeEventListener(f,p=>p.preventDefault())})});const l=i.ref(!1);function c(){o.isEditable&&(l.value=!0)}function u(){l.value=!1}i.watch(l,f=>{n("toggleIsDropActive",f)});function d(f){var h;u();const p=Array.from(((h=f.dataTransfer)==null?void 0:h.files)||[]);f.dataTransfer&&n("add",p)}return(f,p)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":l.value}]),onDrop:i.withModifiers(d,["prevent"]),onDragenter:i.withModifiers(c,["prevent"]),onDragover:i.withModifiers(c,["prevent"]),onDragleave:i.withModifiers(u,["prevent"])},[i.renderSlot(f.$slots,"default",{},()=>[i.createElementVNode("span",_9,i.toDisplayString(f.$t("activity.attachment.placeholder.resting")),1)]),t.attachments?(i.openBlock(),i.createElementBlock("ul",C9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.attachments,h=>(i.openBlock(),i.createElementBlock("li",{key:h.id,class:"ao-file"},[i.createElementVNode("a",{class:"ao-file__link",href:h.url,target:"_blank",rel:"noopener noreferrer"},[i.createVNode(Ae,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",k9,i.toDisplayString(h.name),1)],8,b9),t.isEditable?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-files__delete-button","icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round",onClick:()=>r(h)},null,8,["onClick"])):i.createCommentVNode("",!0)]))),128)),t.isEditable?(i.openBlock(),i.createElementBlock("li",w9,[i.createElementVNode("label",E9,[i.createElementVNode("div",x9,[i.createVNode(Ae,{name:"Add",size:"sm"}),i.createElementVNode("span",S9,i.toDisplayString(f.$t("activity.attachment.button.resting")),1)]),i.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:s},null,32)])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",T9,[i.createElementVNode("span",A9,i.toDisplayString(f.$t("activity.attachment.placeholder.active")),1)],512),[[i.vShow,l.value]])],34))}});const D9={class:"ao-comment"},M9={class:"ao-comment__created-at"},B9={class:"ao-comment__body"},$9={class:"ao-comment__content-wrapper"},O9={key:0,class:"ao-comment__content"},L9=["rows"],I9=["onClick"],P9={key:1,class:"ao-comment__footer"},F9=i.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{const b=n.user;return b?`${b==null?void 0:b.firstName} ${b==null?void 0:b.lastName}`:null}),s=i.ref(null),a=i.ref(n.content),{isEditing:l,toggleIsEditing:c,onUpdate:u,onDiscard:d}=op(s),f=i.computed(()=>{const b=n.editedAt&&Li(n.editedAt),E=Li(n.createdAt),S=new Date,T=b??E;return T&&wy(T,S)});i.computed(()=>l.value?"textarea":"p");const p=d(),h=u(b=>{o("edit",b)}),m=()=>{o("remove")},g=i.ref(2);i.onUpdated(()=>{i.nextTick(()=>{var b;if(!l.value){const E=(b=s.value)==null?void 0:b.getClientRects().length;g.value=E||2}})});const{showMentionList:y,mentionListPosition:_,filteredUsers:C,handleInput:v,handleKeydown:w,selectUserMention:k}=xp(s,a,i.toRef(n,"mentionableUsers"));return(b,E)=>{var S;return i.openBlock(),i.createElementBlock("li",D9,[r.value?(i.openBlock(),i.createBlock(zn,{key:0,"avatar-url":(S=t.user)==null?void 0:S.avatarUrl,"user-name":r.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):i.createCommentVNode("",!0),i.createElementVNode("span",M9,i.toDisplayString(f.value),1),i.createElementVNode("div",B9,[i.createElementVNode("div",$9,[i.unref(l)?i.withDirectives((i.openBlock(),i.createElementBlock("textarea",{key:1,ref_key:"commentContent",ref:s,class:"ao-comment__content","onUpdate:modelValue":E[0]||(E[0]=T=>a.value=T),rows:g.value,onInput:E[1]||(E[1]=(...T)=>i.unref(v)&&i.unref(v)(...T)),onKeydown:E[2]||(E[2]=(...T)=>i.unref(w)&&i.unref(w)(...T)),onKeyup:[E[3]||(E[3]=i.withKeys((...T)=>i.unref(p)&&i.unref(p)(...T),["esc"])),E[4]||(E[4]=i.withKeys(i.withModifiers((...T)=>i.unref(h)&&i.unref(h)(...T),["ctrl"]),["enter"]))]},null,40,L9)),[[i.vModelText,a.value]]):(i.openBlock(),i.createElementBlock("p",O9,i.toDisplayString(t.content),1)),i.unref(y)&&i.unref(C).length>0?(i.openBlock(),i.createElementBlock("ul",{key:2,class:"mention-list",style:i.normalizeStyle({top:i.unref(_).top+"px",left:i.unref(_).left+"px"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(C),T=>(i.openBlock(),i.createElementBlock("li",{key:T.id,onClick:A=>i.unref(k)(T.name)}," @"+i.toDisplayString(T.name),9,I9))),128))],4)):i.createCommentVNode("",!0)])]),t.isEditable?(i.openBlock(),i.createElementBlock("div",P9,[i.unref(l)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(he,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:i.unref(p)},null,8,["onClick"]),i.createVNode(he,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:i.unref(h)},null,8,["onClick"])],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(he,{label:b.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:m},null,8,["label"]),i.createVNode(he,{label:b.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:i.unref(c)},null,8,["label","onClick"])],64))])):i.createCommentVNode("",!0)])}}});const R9={class:"ao-comments__header"},V9=["placeholder"],z9={class:"ao-comments__form-submit"},U9={key:0,class:"ao-comments__list"},q9=["onClick"],H9=i.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>(n.comments||[]).toSorted((k,b)=>p7(Li(k.createdAt),Li(b.createdAt)))),s=w=>n.users.find(b=>b.id===w),a=i.ref();i.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)});const l=i.toRef(n.newComment),c=i.computed({get(){return l.value},set(w){l.value=w}}),u=()=>{const w=l.value.trim();w&&(o("createComment",{authorId:n.userId,message:w,mentionedUserIds:v(w)}),l.value="")},d=(w,k)=>{o("updateComment",{id:w,message:k,mentionedUserIds:v(k)})},f=w=>{o("removeComment",{id:w})},p=i.ref(),{showMentionList:h,mentionListPosition:m,filteredUsers:g,handleInput:y,handleKeydown:_,selectUserMention:C,getMentionedUserIds:v}=xp(p,c,i.toRef(n,"users"));return(w,k)=>{var b;return i.openBlock(),i.createElementBlock("div",{ref_key:"commentsContainer",ref:a,class:"ao-comments"},[i.createElementVNode("div",R9,[i.createElementVNode("form",{class:"ao-comments__form",onSubmit:i.withModifiers(u,["prevent"])},[i.withDirectives(i.createElementVNode("textarea",{ref_key:"textareaRef",ref:p,"onUpdate:modelValue":k[0]||(k[0]=E=>c.value=E),rows:"2",class:"ao-field__textarea ao-comments__form-textarea",placeholder:w.$t("activity.comment.label"),onInput:k[1]||(k[1]=(...E)=>i.unref(y)&&i.unref(y)(...E)),onKeydown:k[2]||(k[2]=(...E)=>i.unref(_)&&i.unref(_)(...E))},null,40,V9),[[i.vModelText,c.value,void 0,{trim:!0}]]),i.createElementVNode("div",z9,[i.createVNode(he,{type:"submit","icon-name":"SendRounded",color:"primary",variant:"solid",corners:"round",size:"sm"})])],32)]),((b=r.value)==null?void 0:b.length)>0?(i.openBlock(),i.createElementBlock("ul",U9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,E=>(i.openBlock(),i.createBlock(F9,{key:E.id,user:s(E.author.id),content:E.message,"created-at":E.createdAt,"edited-at":E.updatedAt,"is-editable":E.author.id===t.userId,"mentionable-users":t.users,class:"ao-comment",onEdit:S=>d(E.id,S),onRemove:()=>f(E.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):i.createCommentVNode("",!0),i.unref(h)&&i.unref(g).length>0?(i.openBlock(),i.createElementBlock("ul",{key:1,class:"mention-list",style:i.normalizeStyle({top:i.unref(m).top+"px",left:i.unref(m).left+"px"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(g),E=>(i.openBlock(),i.createElementBlock("li",{key:E.id,onClick:S=>i.unref(C)(E.name)}," @"+i.toDisplayString(E.name),9,q9))),128))],4)):i.createCommentVNode("",!0)],512)}}});const qp=i.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,r=()=>{o("update:modelValue",!n.modelValue)};return(s,a)=>(i.openBlock(),i.createBlock(he,{color:t.modelValue?t.color:i.unref(Rc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>r())},null,8,["color"]))}}),j9=i.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 W9=["onClick"],Z9={class:"tab-button__label"},K9={key:0,class:"tab-button__badge"};function G9(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":t.variant==="underline"}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tabs,a=>(i.openBlock(),i.createElementBlock("button",{key:a.value,class:i.normalizeClass(["tab-button",{"tab-button--active":a.value===t.modelValue},{"tab-button--underline":t.variant==="underline"}]),type:"button",onClick:l=>t.selectTab(a.value)},[i.createElementVNode("span",Z9,i.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(i.openBlock(),i.createElementBlock("span",K9,i.toDisplayString(a.count),1)):i.createCommentVNode("",!0)],10,W9))),128))],2)}const ts=ne(j9,[["render",G9],["__scopeId","data-v-0e91b31f"]]);var ke={};const Y9="Á",J9="á",X9="Ă",Q9="ă",e4="∾",t4="∿",n4="∾̳",o4="Â",r4="â",i4="´",s4="А",a4="а",l4="Æ",c4="æ",u4="",d4="𝔄",f4="𝔞",p4="À",h4="à",m4="ℵ",g4="ℵ",v4="Α",y4="α",_4="Ā",C4="ā",b4="⨿",k4="&",w4="&",E4="⩕",x4="⩓",S4="∧",T4="⩜",A4="⩘",N4="⩚",D4="∠",M4="⦤",B4="∠",$4="⦨",O4="⦩",L4="⦪",I4="⦫",P4="⦬",F4="⦭",R4="⦮",V4="⦯",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="≈",h8="≍",m8="Ã",g8="ã",v8="Ä",y8="ä",_8="∳",C8="⨑",b8="≌",k8="϶",w8="‵",E8="∽",x8="⋍",S8="∖",T8="⫧",A8="⊽",N8="⌅",D8="⌆",M8="⌅",B8="⎵",$8="⎶",O8="≌",L8="Б",I8="б",P8="„",F8="∵",R8="∵",V8="∵",z8="⦰",U8="϶",q8="ℬ",H8="ℬ",j8="Β",W8="β",Z8="ℶ",K8="≬",G8="𝔅",Y8="𝔟",J8="⋂",X8="◯",Q8="⋃",ek="⨀",tk="⨁",nk="⨂",ok="⨆",rk="★",ik="▽",sk="△",ak="⨄",lk="⋁",ck="⋀",uk="⤍",dk="⧫",fk="▪",pk="▴",hk="▾",mk="◂",gk="▸",vk="␣",yk="▒",_k="░",Ck="▓",bk="█",kk="=⃥",wk="≡⃥",Ek="⫭",xk="⌐",Sk="𝔹",Tk="𝕓",Ak="⊥",Nk="⊥",Dk="⋈",Mk="⧉",Bk="┐",$k="╕",Ok="╖",Lk="╗",Ik="┌",Pk="╒",Fk="╓",Rk="╔",Vk="─",zk="═",Uk="┬",qk="╤",Hk="╥",jk="╦",Wk="┴",Zk="╧",Kk="╨",Gk="╩",Yk="⊟",Jk="⊞",Xk="⊠",Qk="┘",e6="╛",t6="╜",n6="╝",o6="└",r6="╘",i6="╙",s6="╚",a6="│",l6="║",c6="┼",u6="╪",d6="╫",f6="╬",p6="┤",h6="╡",m6="╢",g6="╣",v6="├",y6="╞",_6="╟",C6="╠",b6="‵",k6="˘",w6="˘",E6="¦",x6="𝒷",S6="ℬ",T6="⁏",A6="∽",N6="⋍",D6="⧅",M6="\\",B6="⟈",$6="•",O6="•",L6="≎",I6="⪮",P6="≏",F6="≎",R6="≏",V6="Ć",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="¸",hw="⦲",mw="¢",gw="·",vw="·",yw="𝔠",_w="ℭ",Cw="Ч",bw="ч",kw="✓",ww="✓",Ew="Χ",xw="χ",Sw="ˆ",Tw="≗",Aw="↺",Nw="↻",Dw="⊛",Mw="⊚",Bw="⊝",$w="⊙",Ow="®",Lw="Ⓢ",Iw="⊖",Pw="⊕",Fw="⊗",Rw="○",Vw="⧃",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="𝕔",hE="ℂ",mE="∐",gE="∐",vE="©",yE="©",_E="℗",CE="∳",bE="↵",kE="✗",wE="⨯",EE="𝒞",xE="𝒸",SE="⫏",TE="⫑",AE="⫐",NE="⫒",DE="⋯",ME="⤸",BE="⤵",$E="⋞",OE="⋟",LE="↶",IE="⤽",PE="⩈",FE="⩆",RE="≍",VE="∪",zE="⋓",UE="⩊",qE="⊍",HE="⩅",jE="∪︀",WE="↷",ZE="⤼",KE="⋞",GE="⋟",YE="⋎",JE="⋏",XE="¤",QE="↶",ex="↷",tx="⋎",nx="⋏",ox="∲",rx="∱",ix="⌭",sx="†",ax="‡",lx="ℸ",cx="↓",ux="↡",dx="⇓",fx="‐",px="⫤",hx="⊣",mx="⤏",gx="˝",vx="Ď",yx="ď",_x="Д",Cx="д",bx="‡",kx="⇊",wx="ⅅ",Ex="ⅆ",xx="⤑",Sx="⩷",Tx="°",Ax="∇",Nx="Δ",Dx="δ",Mx="⦱",Bx="⥿",$x="𝔇",Ox="𝔡",Lx="⥥",Ix="⇃",Px="⇂",Fx="´",Rx="˙",Vx="˝",zx="`",Ux="˜",qx="⋄",Hx="⋄",jx="⋄",Wx="♦",Zx="♦",Kx="¨",Gx="ⅆ",Yx="ϝ",Jx="⋲",Xx="÷",Qx="÷",eS="⋇",tS="⋇",nS="Ђ",oS="ђ",rS="⌞",iS="⌍",sS="$",aS="𝔻",lS="𝕕",cS="¨",uS="˙",dS="⃜",fS="≐",pS="≑",hS="≐",mS="∸",gS="∔",vS="⊡",yS="⌆",_S="∯",CS="¨",bS="⇓",kS="⇐",wS="⇔",ES="⫤",xS="⟸",SS="⟺",TS="⟹",AS="⇒",NS="⊨",DS="⇑",MS="⇕",BS="∥",$S="⤓",OS="↓",LS="↓",IS="⇓",PS="⇵",FS="̑",RS="⇊",VS="⇃",zS="⇂",US="⥐",qS="⥞",HS="⥖",jS="↽",WS="⥟",ZS="⥗",KS="⇁",GS="↧",YS="⊤",JS="⤐",XS="⌟",QS="⌌",eT="𝒟",tT="𝒹",nT="Ѕ",oT="ѕ",rT="⧶",iT="Đ",sT="đ",aT="⋱",lT="▿",cT="▾",uT="⇵",dT="⥯",fT="⦦",pT="Џ",hT="џ",mT="⟿",gT="É",vT="é",yT="⩮",_T="Ě",CT="ě",bT="Ê",kT="ê",wT="≖",ET="≕",xT="Э",ST="э",TT="⩷",AT="Ė",NT="ė",DT="≑",MT="ⅇ",BT="≒",$T="𝔈",OT="𝔢",LT="⪚",IT="È",PT="è",FT="⪖",RT="⪘",VT="⪙",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="Ε",hA="ε",mA="ϵ",gA="≖",vA="≕",yA="≂",_A="⪖",CA="⪕",bA="⩵",kA="=",wA="≂",EA="≟",xA="⇌",SA="≡",TA="⩸",AA="⧥",NA="⥱",DA="≓",MA="ℯ",BA="ℰ",$A="≐",OA="⩳",LA="≂",IA="Η",PA="η",FA="Ð",RA="ð",VA="Ë",zA="ë",UA="€",qA="!",HA="∃",jA="∃",WA="ℰ",ZA="ⅇ",KA="ⅇ",GA="≒",YA="Ф",JA="ф",XA="♀",QA="ffi",eN="ff",tN="ffl",nN="𝔉",oN="𝔣",rN="fi",iN="◼",sN="▪",aN="fj",lN="♭",cN="fl",uN="▱",dN="ƒ",fN="𝔽",pN="𝕗",hN="∀",mN="∀",gN="⋔",vN="⫙",yN="ℱ",_N="⨍",CN="½",bN="⅓",kN="¼",wN="⅕",EN="⅙",xN="⅛",SN="⅔",TN="⅖",AN="¾",NN="⅗",DN="⅜",MN="⅘",BN="⅚",$N="⅝",ON="⅞",LN="⁄",IN="⌢",PN="𝒻",FN="ℱ",RN="ǵ",VN="Γ",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="⪔",hD="𝔊",mD="𝔤",gD="≫",vD="⋙",yD="⋙",_D="ℷ",CD="Ѓ",bD="ѓ",kD="⪥",wD="≷",ED="⪒",xD="⪤",SD="⪊",TD="⪊",AD="⪈",ND="≩",DD="⪈",MD="≩",BD="⋧",$D="𝔾",OD="𝕘",LD="`",ID="≥",PD="⋛",FD="≧",RD="⪢",VD="≷",zD="⩾",UD="≳",qD="𝒢",HD="ℊ",jD="≳",WD="⪎",ZD="⪐",KD="⪧",GD="⩺",YD=">",JD=">",XD="≫",QD="⋗",eM="⦕",tM="⩼",nM="⪆",oM="⥸",rM="⋗",iM="⋛",sM="⪌",aM="≷",lM="≳",cM="≩︀",uM="≩︀",dM="ˇ",fM=" ",pM="½",hM="ℋ",mM="Ъ",gM="ъ",vM="⥈",yM="↔",_M="⇔",CM="↭",bM="^",kM="ℏ",wM="Ĥ",EM="ĥ",xM="♥",SM="♥",TM="…",AM="⊹",NM="𝔥",DM="ℌ",MM="ℋ",BM="⤥",$M="⤦",OM="⇿",LM="∻",IM="↩",PM="↪",FM="𝕙",RM="ℍ",VM="―",zM="─",UM="𝒽",qM="ℋ",HM="ℏ",jM="Ħ",WM="ħ",ZM="≎",KM="≏",GM="⁃",YM="‐",JM="Í",XM="í",QM="",eB="Î",tB="î",nB="И",oB="и",rB="İ",iB="Е",sB="е",aB="¡",lB="⇔",cB="𝔦",uB="ℑ",dB="Ì",fB="ì",pB="ⅈ",hB="⨌",mB="∭",gB="⧜",vB="℩",yB="IJ",_B="ij",CB="Ī",bB="ī",kB="ℑ",wB="ⅈ",EB="ℐ",xB="ℑ",SB="ı",TB="ℑ",AB="⊷",NB="Ƶ",DB="⇒",MB="℅",BB="∞",$B="⧝",OB="ı",LB="⊺",IB="∫",PB="∬",FB="ℤ",RB="∫",VB="⊺",zB="⋂",UB="⨗",qB="⨼",HB="",jB="",WB="Ё",ZB="ё",KB="Į",GB="į",YB="𝕀",JB="𝕚",XB="Ι",QB="ι",e$="⨼",t$="¿",n$="𝒾",o$="ℐ",r$="∈",i$="⋵",s$="⋹",a$="⋴",l$="⋳",c$="∈",u$="",d$="Ĩ",f$="ĩ",p$="І",h$="і",m$="Ï",g$="ï",v$="Ĵ",y$="ĵ",_$="Й",C$="й",b$="𝔍",k$="𝔧",w$="ȷ",E$="𝕁",x$="𝕛",S$="𝒥",T$="𝒿",A$="Ј",N$="ј",D$="Є",M$="є",B$="Κ",$$="κ",O$="ϰ",L$="Ķ",I$="ķ",P$="К",F$="к",R$="𝔎",V$="𝔨",z$="ĸ",U$="Х",q$="х",H$="Ќ",j$="ќ",W$="𝕂",Z$="𝕜",K$="𝒦",G$="𝓀",Y$="⇚",J$="Ĺ",X$="ĺ",Q$="⦴",eO="ℒ",tO="Λ",nO="λ",oO="⟨",rO="⟪",iO="⦑",sO="⟨",aO="⪅",lO="ℒ",cO="«",uO="⇤",dO="⤟",fO="←",pO="↞",hO="⇐",mO="⤝",gO="↩",vO="↫",yO="⤹",_O="⥳",CO="↢",bO="⤙",kO="⤛",wO="⪫",EO="⪭",xO="⪭︀",SO="⤌",TO="⤎",AO="❲",NO="{",DO="[",MO="⦋",BO="⦏",$O="⦍",OO="Ľ",LO="ľ",IO="Ļ",PO="ļ",FO="⌈",RO="{",VO="Л",zO="л",UO="⤶",qO="“",HO="„",jO="⥧",WO="⥋",ZO="↲",KO="≤",GO="≦",YO="⟨",JO="⇤",XO="←",QO="←",eL="⇐",tL="⇆",nL="↢",oL="⌈",rL="⟦",iL="⥡",sL="⥙",aL="⇃",lL="⌊",cL="↽",uL="↼",dL="⇇",fL="↔",pL="↔",hL="⇔",mL="⇆",gL="⇋",vL="↭",yL="⥎",_L="↤",CL="⊣",bL="⥚",kL="⋋",wL="⧏",EL="⊲",xL="⊴",SL="⥑",TL="⥠",AL="⥘",NL="↿",DL="⥒",ML="↼",BL="⪋",$L="⋚",OL="≤",LL="≦",IL="⩽",PL="⪨",FL="⩽",RL="⩿",VL="⪁",zL="⪃",UL="⋚︀",qL="⪓",HL="⪅",jL="⋖",WL="⋚",ZL="⪋",KL="⋚",GL="≦",YL="≶",JL="≶",XL="⪡",QL="≲",eI="⩽",tI="≲",nI="⥼",oI="⌊",rI="𝔏",iI="𝔩",sI="≶",aI="⪑",lI="⥢",cI="↽",uI="↼",dI="⥪",fI="▄",pI="Љ",hI="љ",mI="⇇",gI="≪",vI="⋘",yI="⌞",_I="⇚",CI="⥫",bI="◺",kI="Ŀ",wI="ŀ",EI="⎰",xI="⎰",SI="⪉",TI="⪉",AI="⪇",NI="≨",DI="⪇",MI="≨",BI="⋦",$I="⟬",OI="⇽",LI="⟦",II="⟵",PI="⟵",FI="⟸",RI="⟷",VI="⟷",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="⊿",hP="‹",mP="𝓁",gP="ℒ",vP="↰",yP="↰",_P="≲",CP="⪍",bP="⪏",kP="[",wP="‘",EP="‚",xP="Ł",SP="ł",TP="⪦",AP="⩹",NP="<",DP="<",MP="≪",BP="⋖",$P="⋋",OP="⋉",LP="⥶",IP="⩻",PP="◃",FP="⊴",RP="◂",VP="⦖",zP="⥊",UP="⥦",qP="≨︀",HP="≨︀",jP="¯",WP="♂",ZP="✠",KP="✠",GP="↦",YP="↦",JP="↧",XP="↤",QP="↥",eF="▮",tF="⨩",nF="М",oF="м",rF="—",iF="∺",sF="∡",aF=" ",lF="ℳ",cF="𝔐",uF="𝔪",dF="℧",fF="µ",pF="*",hF="⫰",mF="∣",gF="·",vF="⊟",yF="−",_F="∸",CF="⨪",bF="∓",kF="⫛",wF="…",EF="∓",xF="⊧",SF="𝕄",TF="𝕞",AF="∓",NF="𝓂",DF="ℳ",MF="∾",BF="Μ",$F="μ",OF="⊸",LF="⊸",IF="∇",PF="Ń",FF="ń",RF="∠⃒",VF="≉",zF="⩰̸",UF="≋̸",qF="ʼn",HF="≉",jF="♮",WF="ℕ",ZF="♮",KF=" ",GF="≎̸",YF="≏̸",JF="⩃",XF="Ň",QF="ň",eR="Ņ",tR="ņ",nR="≇",oR="⩭̸",rR="⩂",iR="Н",sR="н",aR="–",lR="⤤",cR="↗",uR="⇗",dR="↗",fR="≠",pR="≐̸",hR="",mR="",gR="",vR="",yR="≢",_R="⤨",CR="≂̸",bR="≫",kR="≪",wR=`
|
|
2
|
+
`,ER="∄",xR="∄",SR="𝔑",TR="𝔫",AR="≧̸",NR="≱",DR="≱",MR="≧̸",BR="⩾̸",$R="⩾̸",OR="⋙̸",LR="≵",IR="≫⃒",PR="≯",FR="≯",RR="≫̸",VR="↮",zR="⇎",UR="⫲",qR="∋",HR="⋼",jR="⋺",WR="∋",ZR="Њ",KR="њ",GR="↚",YR="⇍",JR="‥",XR="≦̸",QR="≰",eV="↚",tV="⇍",nV="↮",oV="⇎",rV="≰",iV="≦̸",sV="⩽̸",aV="⩽̸",lV="≮",cV="⋘̸",uV="≴",dV="≪⃒",fV="≮",pV="⋪",hV="⋬",mV="≪̸",gV="∤",vV="",yV=" ",_V="𝕟",CV="ℕ",bV="⫬",kV="¬",wV="≢",EV="≭",xV="∦",SV="∉",TV="≠",AV="≂̸",NV="∄",DV="≯",MV="≱",BV="≧̸",$V="≫̸",OV="≹",LV="⩾̸",IV="≵",PV="≎̸",FV="≏̸",RV="∉",VV="⋵̸",zV="⋹̸",UV="∉",qV="⋷",HV="⋶",jV="⧏̸",WV="⋪",ZV="⋬",KV="≮",GV="≰",YV="≸",JV="≪̸",XV="⩽̸",QV="≴",ez="⪢̸",tz="⪡̸",nz="∌",oz="∌",rz="⋾",iz="⋽",sz="⊀",az="⪯̸",lz="⋠",cz="∌",uz="⧐̸",dz="⋫",fz="⋭",pz="⊏̸",hz="⋢",mz="⊐̸",gz="⋣",vz="⊂⃒",yz="⊈",_z="⊁",Cz="⪰̸",bz="⋡",kz="≿̸",wz="⊃⃒",Ez="⊉",xz="≁",Sz="≄",Tz="≇",Az="≉",Nz="∤",Dz="∦",Mz="∦",Bz="⫽⃥",$z="∂̸",Oz="⨔",Lz="⊀",Iz="⋠",Pz="⊀",Fz="⪯̸",Rz="⪯̸",Vz="⤳̸",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="⫅̸",hU="⊁",mU="⪰̸",gU="⊅",vU="⫆̸",yU="⊉",_U="⊃⃒",CU="⊉",bU="⫆̸",kU="≹",wU="Ñ",EU="ñ",xU="≸",SU="⋪",TU="⋬",AU="⋫",NU="⋭",DU="Ν",MU="ν",BU="#",$U="№",OU=" ",LU="≍⃒",IU="⊬",PU="⊭",FU="⊮",RU="⊯",VU="≥⃒",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="⨸",hq="⊙",mq="⦼",gq="Œ",vq="œ",yq="⦿",_q="𝔒",Cq="𝔬",bq="˛",kq="Ò",wq="ò",Eq="⧁",xq="⦵",Sq="Ω",Tq="∮",Aq="↺",Nq="⦾",Dq="⦻",Mq="‾",Bq="⧀",$q="Ō",Oq="ō",Lq="Ω",Iq="ω",Pq="Ο",Fq="ο",Rq="⦶",Vq="⊖",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="õ",hH="⨶",mH="⨷",gH="⊗",vH="Ö",yH="ö",_H="⌽",CH="‾",bH="⏞",kH="⎴",wH="⏜",EH="¶",xH="∥",SH="∥",TH="⫳",AH="⫽",NH="∂",DH="∂",MH="П",BH="п",$H="%",OH=".",LH="‰",IH="⊥",PH="‱",FH="𝔓",RH="𝔭",VH="Φ",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="ℙ",hj="£",mj="⪷",gj="⪻",vj="≺",yj="≼",_j="⪷",Cj="≺",bj="≼",kj="≺",wj="⪯",Ej="≼",xj="≾",Sj="⪯",Tj="⪹",Aj="⪵",Nj="⋨",Dj="⪯",Mj="⪳",Bj="≾",$j="′",Oj="″",Lj="ℙ",Ij="⪹",Pj="⪵",Fj="⋨",Rj="∏",Vj="∏",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='"',hW='"',mW="⇛",gW="∽̱",vW="Ŕ",yW="ŕ",_W="√",CW="⦳",bW="⟩",kW="⟫",wW="⦒",EW="⦥",xW="⟩",SW="»",TW="⥵",AW="⇥",NW="⤠",DW="⤳",MW="→",BW="↠",$W="⇒",OW="⤞",LW="↪",IW="↬",PW="⥅",FW="⥴",RW="⤖",VW="↣",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="↳",hZ="ℜ",mZ="ℛ",gZ="ℜ",vZ="ℝ",yZ="ℜ",_Z="▭",CZ="®",bZ="®",kZ="∋",wZ="⇋",EZ="⥯",xZ="⥽",SZ="⌋",TZ="𝔯",AZ="ℜ",NZ="⥤",DZ="⇁",MZ="⇀",BZ="⥬",$Z="Ρ",OZ="ρ",LZ="ϱ",IZ="⟩",PZ="⇥",FZ="→",RZ="→",VZ="⇒",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="⇀",hK="˚",mK="≓",gK="⇄",vK="⇌",yK="",_K="⎱",CK="⎱",bK="⫮",kK="⟭",wK="⇾",EK="⟧",xK="⦆",SK="𝕣",TK="ℝ",AK="⨮",NK="⨵",DK="⥰",MK=")",BK="⦔",$K="⨒",OK="⇉",LK="⇛",IK="›",PK="𝓇",FK="ℛ",RK="↱",VK="↱",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="ŝ",hG="⪺",mG="⪶",gG="⋩",vG="⨓",yG="≿",_G="С",CG="с",bG="⊡",kG="⋅",wG="⩦",EG="⤥",xG="↘",SG="⇘",TG="↘",AG="§",NG=";",DG="⤩",MG="∖",BG="∖",$G="✶",OG="𝔖",LG="𝔰",IG="⌢",PG="♯",FG="Щ",RG="щ",VG="Ш",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="⨳",hY="⧤",mY="∣",gY="⌣",vY="⪪",yY="⪬",_Y="⪬︀",CY="Ь",bY="ь",kY="⌿",wY="⧄",EY="/",xY="𝕊",SY="𝕤",TY="♠",AY="♠",NY="∥",DY="⊓",MY="⊓︀",BY="⊔",$Y="⊔︀",OY="√",LY="⊏",IY="⊑",PY="⊏",FY="⊑",RY="⊐",VY="⊒",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="⋐",hJ="⪽",mJ="⫅",gJ="⊆",vJ="⫃",yJ="⫁",_J="⫋",CJ="⊊",bJ="⪿",kJ="⥹",wJ="⊂",EJ="⋐",xJ="⊆",SJ="⫅",TJ="⊆",AJ="⊊",NJ="⫋",DJ="⫇",MJ="⫕",BJ="⫓",$J="⪸",OJ="≻",LJ="≽",IJ="≻",PJ="⪰",FJ="≽",RJ="≿",VJ="⪰",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="⫀",hX="⊃",mX="⋑",gX="⊇",vX="⫆",yX="⊋",_X="⫌",CX="⫈",bX="⫔",kX="⫖",wX="⤦",EX="↙",xX="⇙",SX="↙",TX="⤪",AX="ß",NX=" ",DX="⌖",MX="Τ",BX="τ",$X="⎴",OX="Ť",LX="ť",IX="Ţ",PX="ţ",FX="Т",RX="т",VX="⃛",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="×",hQ="⨰",mQ="∭",gQ="⤨",vQ="⌶",yQ="⫱",_Q="⊤",CQ="𝕋",bQ="𝕥",kQ="⫚",wQ="⤩",EQ="‴",xQ="™",SQ="™",TQ="▵",AQ="▿",NQ="◃",DQ="⊴",MQ="≜",BQ="▹",$Q="⊵",OQ="◬",LQ="≜",IQ="⨺",PQ="⃛",FQ="⨹",RQ="⧍",VQ="⨻",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="⇅",hee="Ű",mee="ű",gee="⥮",vee="⥾",yee="𝔘",_ee="𝔲",Cee="Ù",bee="ù",kee="⥣",wee="↿",Eee="↾",xee="▀",See="⌜",Tee="⌜",Aee="⌏",Nee="◸",Dee="Ū",Mee="ū",Bee="¨",$ee="_",Oee="⏟",Lee="⎵",Iee="⏝",Pee="⋃",Fee="⊎",Ree="Ų",Vee="ų",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="⌎",hte="Ů",mte="ů",gte="◹",vte="𝒰",yte="𝓊",_te="⋰",Cte="Ũ",bte="ũ",kte="▵",wte="▴",Ete="⇈",xte="Ü",Ste="ü",Tte="⦧",Ate="⦜",Nte="ϵ",Dte="ϰ",Mte="∅",Bte="ϕ",$te="ϖ",Ote="∝",Lte="↕",Ite="⇕",Pte="ϱ",Fte="ς",Rte="⊊︀",Vte="⫋︀",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="❘",hne="≀",mne=" ",gne="𝔙",vne="𝔳",yne="⊲",_ne="⊂⃒",Cne="⊃⃒",bne="𝕍",kne="𝕧",wne="∝",Ene="⊳",xne="𝒱",Sne="𝓋",Tne="⫋︀",Ane="⊊︀",Nne="⫌︀",Dne="⊋︀",Mne="⊪",Bne="⦚",$ne="Ŵ",One="ŵ",Lne="⩟",Ine="∧",Pne="⋀",Fne="≙",Rne="℘",Vne="𝔚",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="⨂",hoe="⟶",moe="⟹",goe="𝒳",voe="𝓍",yoe="⨆",_oe="⨄",Coe="△",boe="⋁",koe="⋀",woe="Ý",Eoe="ý",xoe="Я",Soe="я",Toe="Ŷ",Aoe="ŷ",Noe="Ы",Doe="ы",Moe="¥",Boe="𝔜",$oe="𝔶",Ooe="Ї",Loe="ї",Ioe="𝕐",Poe="𝕪",Foe="𝒴",Roe="𝓎",Voe="Ю",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={Aacute:Y9,aacute:J9,Abreve:X9,abreve:Q9,ac:e4,acd:t4,acE:n4,Acirc:o4,acirc:r4,acute:i4,Acy:s4,acy:a4,AElig:l4,aelig:c4,af:u4,Afr:d4,afr:f4,Agrave:p4,agrave:h4,alefsym:m4,aleph:g4,Alpha:v4,alpha:y4,Amacr:_4,amacr:C4,amalg:b4,amp:k4,AMP:w4,andand:E4,And:x4,and:S4,andd:T4,andslope:A4,andv:N4,ang:D4,ange:M4,angle:B4,angmsdaa:$4,angmsdab:O4,angmsdac:L4,angmsdad:I4,angmsdae:P4,angmsdaf:F4,angmsdag:R4,angmsdah:V4,angmsd:z4,angrt:U4,angrtvb:q4,angrtvbd:H4,angsph:j4,angst:W4,angzarr:Z4,Aogon:K4,aogon:G4,Aopf:Y4,aopf:J4,apacir:X4,ap:Q4,apE:e8,ape:t8,apid:n8,apos:o8,ApplyFunction:r8,approx:i8,approxeq:s8,Aring:a8,aring:l8,Ascr:c8,ascr:u8,Assign:d8,ast:f8,asymp:p8,asympeq:h8,Atilde:m8,atilde:g8,Auml:v8,auml:y8,awconint:_8,awint:C8,backcong:b8,backepsilon:k8,backprime:w8,backsim:E8,backsimeq:x8,Backslash:S8,Barv:T8,barvee:A8,barwed:N8,Barwed:D8,barwedge:M8,bbrk:B8,bbrktbrk:$8,bcong:O8,Bcy:L8,bcy:I8,bdquo:P8,becaus:F8,because:R8,Because:V8,bemptyv:z8,bepsi:U8,bernou:q8,Bernoullis:H8,Beta:j8,beta:W8,beth:Z8,between:K8,Bfr:G8,bfr:Y8,bigcap:J8,bigcirc:X8,bigcup:Q8,bigodot:ek,bigoplus:tk,bigotimes:nk,bigsqcup:ok,bigstar:rk,bigtriangledown:ik,bigtriangleup:sk,biguplus:ak,bigvee:lk,bigwedge:ck,bkarow:uk,blacklozenge:dk,blacksquare:fk,blacktriangle:pk,blacktriangledown:hk,blacktriangleleft:mk,blacktriangleright:gk,blank:vk,blk12:yk,blk14:_k,blk34:Ck,block:bk,bne:kk,bnequiv:wk,bNot:Ek,bnot:xk,Bopf:Sk,bopf:Tk,bot:Ak,bottom:Nk,bowtie:Dk,boxbox:Mk,boxdl:Bk,boxdL:$k,boxDl:Ok,boxDL:Lk,boxdr:Ik,boxdR:Pk,boxDr:Fk,boxDR:Rk,boxh:Vk,boxH:zk,boxhd:Uk,boxHd:qk,boxhD:Hk,boxHD:jk,boxhu:Wk,boxHu:Zk,boxhU:Kk,boxHU:Gk,boxminus:Yk,boxplus:Jk,boxtimes:Xk,boxul:Qk,boxuL:e6,boxUl:t6,boxUL:n6,boxur:o6,boxuR:r6,boxUr:i6,boxUR:s6,boxv:a6,boxV:l6,boxvh:c6,boxvH:u6,boxVh:d6,boxVH:f6,boxvl:p6,boxvL:h6,boxVl:m6,boxVL:g6,boxvr:v6,boxvR:y6,boxVr:_6,boxVR:C6,bprime:b6,breve:k6,Breve:w6,brvbar:E6,bscr:x6,Bscr:S6,bsemi:T6,bsim:A6,bsime:N6,bsolb:D6,bsol:M6,bsolhsub:B6,bull:$6,bullet:O6,bump:L6,bumpE:I6,bumpe:P6,Bumpeq:F6,bumpeq:R6,Cacute:V6,cacute:z6,capand:U6,capbrcup:q6,capcap:H6,cap:j6,Cap:W6,capcup:Z6,capdot:K6,CapitalDifferentialD:G6,caps:Y6,caret:J6,caron:X6,Cayleys:Q6,ccaps:ew,Ccaron:tw,ccaron:nw,Ccedil:ow,ccedil:rw,Ccirc:iw,ccirc:sw,Cconint:aw,ccups:lw,ccupssm:cw,Cdot:uw,cdot:dw,cedil:fw,Cedilla:pw,cemptyv:hw,cent:mw,centerdot:gw,CenterDot:vw,cfr:yw,Cfr:_w,CHcy:Cw,chcy:bw,check:kw,checkmark:ww,Chi:Ew,chi:xw,circ:Sw,circeq:Tw,circlearrowleft:Aw,circlearrowright:Nw,circledast:Dw,circledcirc:Mw,circleddash:Bw,CircleDot:$w,circledR:Ow,circledS:Lw,CircleMinus:Iw,CirclePlus:Pw,CircleTimes:Fw,cir:Rw,cirE:Vw,cire:zw,cirfnint:Uw,cirmid:qw,cirscir:Hw,ClockwiseContourIntegral:jw,CloseCurlyDoubleQuote:Ww,CloseCurlyQuote:Zw,clubs:Kw,clubsuit:Gw,colon:Yw,Colon:Jw,Colone:Xw,colone:Qw,coloneq:eE,comma:tE,commat:nE,comp:oE,compfn:rE,complement:iE,complexes:sE,cong:aE,congdot:lE,Congruent:cE,conint:uE,Conint:dE,ContourIntegral:fE,copf:pE,Copf:hE,coprod:mE,Coproduct:gE,copy:vE,COPY:yE,copysr:_E,CounterClockwiseContourIntegral:CE,crarr:bE,cross:kE,Cross:wE,Cscr:EE,cscr:xE,csub:SE,csube:TE,csup:AE,csupe:NE,ctdot:DE,cudarrl:ME,cudarrr:BE,cuepr:$E,cuesc:OE,cularr:LE,cularrp:IE,cupbrcap:PE,cupcap:FE,CupCap:RE,cup:VE,Cup:zE,cupcup:UE,cupdot:qE,cupor:HE,cups:jE,curarr:WE,curarrm:ZE,curlyeqprec:KE,curlyeqsucc:GE,curlyvee:YE,curlywedge:JE,curren:XE,curvearrowleft:QE,curvearrowright:ex,cuvee:tx,cuwed:nx,cwconint:ox,cwint:rx,cylcty:ix,dagger:sx,Dagger:ax,daleth:lx,darr:cx,Darr:ux,dArr:dx,dash:fx,Dashv:px,dashv:hx,dbkarow:mx,dblac:gx,Dcaron:vx,dcaron:yx,Dcy:_x,dcy:Cx,ddagger:bx,ddarr:kx,DD:wx,dd:Ex,DDotrahd:xx,ddotseq:Sx,deg:Tx,Del:Ax,Delta:Nx,delta:Dx,demptyv:Mx,dfisht:Bx,Dfr:$x,dfr:Ox,dHar:Lx,dharl:Ix,dharr:Px,DiacriticalAcute:Fx,DiacriticalDot:Rx,DiacriticalDoubleAcute:Vx,DiacriticalGrave:zx,DiacriticalTilde:Ux,diam:qx,diamond:Hx,Diamond:jx,diamondsuit:Wx,diams:Zx,die:Kx,DifferentialD:Gx,digamma:Yx,disin:Jx,div:Xx,divide:Qx,divideontimes:eS,divonx:tS,DJcy:nS,djcy:oS,dlcorn:rS,dlcrop:iS,dollar:sS,Dopf:aS,dopf:lS,Dot:cS,dot:uS,DotDot:dS,doteq:fS,doteqdot:pS,DotEqual:hS,dotminus:mS,dotplus:gS,dotsquare:vS,doublebarwedge:yS,DoubleContourIntegral:_S,DoubleDot:CS,DoubleDownArrow:bS,DoubleLeftArrow:kS,DoubleLeftRightArrow:wS,DoubleLeftTee:ES,DoubleLongLeftArrow:xS,DoubleLongLeftRightArrow:SS,DoubleLongRightArrow:TS,DoubleRightArrow:AS,DoubleRightTee:NS,DoubleUpArrow:DS,DoubleUpDownArrow:MS,DoubleVerticalBar:BS,DownArrowBar:$S,downarrow:OS,DownArrow:LS,Downarrow:IS,DownArrowUpArrow:PS,DownBreve:FS,downdownarrows:RS,downharpoonleft:VS,downharpoonright:zS,DownLeftRightVector:US,DownLeftTeeVector:qS,DownLeftVectorBar:HS,DownLeftVector:jS,DownRightTeeVector:WS,DownRightVectorBar:ZS,DownRightVector:KS,DownTeeArrow:GS,DownTee:YS,drbkarow:JS,drcorn:XS,drcrop:QS,Dscr:eT,dscr:tT,DScy:nT,dscy:oT,dsol:rT,Dstrok:iT,dstrok:sT,dtdot:aT,dtri:lT,dtrif:cT,duarr:uT,duhar:dT,dwangle:fT,DZcy:pT,dzcy:hT,dzigrarr:mT,Eacute:gT,eacute:vT,easter:yT,Ecaron:_T,ecaron:CT,Ecirc:bT,ecirc:kT,ecir:wT,ecolon:ET,Ecy:xT,ecy:ST,eDDot:TT,Edot:AT,edot:NT,eDot:DT,ee:MT,efDot:BT,Efr:$T,efr:OT,eg:LT,Egrave:IT,egrave:PT,egs:FT,egsdot:RT,el:VT,Element:zT,elinters:UT,ell:qT,els:HT,elsdot:jT,Emacr:WT,emacr:ZT,empty:KT,emptyset:GT,EmptySmallSquare:YT,emptyv:JT,EmptyVerySmallSquare:XT,emsp13:QT,emsp14:eA,emsp:tA,ENG:nA,eng:oA,ensp:rA,Eogon:iA,eogon:sA,Eopf:aA,eopf:lA,epar:cA,eparsl:uA,eplus:dA,epsi:fA,Epsilon:pA,epsilon:hA,epsiv:mA,eqcirc:gA,eqcolon:vA,eqsim:yA,eqslantgtr:_A,eqslantless:CA,Equal:bA,equals:kA,EqualTilde:wA,equest:EA,Equilibrium:xA,equiv:SA,equivDD:TA,eqvparsl:AA,erarr:NA,erDot:DA,escr:MA,Escr:BA,esdot:$A,Esim:OA,esim:LA,Eta:IA,eta:PA,ETH:FA,eth:RA,Euml:VA,euml:zA,euro:UA,excl:qA,exist:HA,Exists:jA,expectation:WA,exponentiale:ZA,ExponentialE:KA,fallingdotseq:GA,Fcy:YA,fcy:JA,female:XA,ffilig:QA,fflig:eN,ffllig:tN,Ffr:nN,ffr:oN,filig:rN,FilledSmallSquare:iN,FilledVerySmallSquare:sN,fjlig:aN,flat:lN,fllig:cN,fltns:uN,fnof:dN,Fopf:fN,fopf:pN,forall:hN,ForAll:mN,fork:gN,forkv:vN,Fouriertrf:yN,fpartint:_N,frac12:CN,frac13:bN,frac14:kN,frac15:wN,frac16:EN,frac18:xN,frac23:SN,frac25:TN,frac34:AN,frac35:NN,frac38:DN,frac45:MN,frac56:BN,frac58:$N,frac78:ON,frasl:LN,frown:IN,fscr:PN,Fscr:FN,gacute:RN,Gamma:VN,gamma:zN,Gammad:UN,gammad:qN,gap:HN,Gbreve:jN,gbreve:WN,Gcedil:ZN,Gcirc:KN,gcirc:GN,Gcy:YN,gcy:JN,Gdot:XN,gdot:QN,ge:eD,gE:tD,gEl:nD,gel:oD,geq:rD,geqq:iD,geqslant:sD,gescc:aD,ges:lD,gesdot:cD,gesdoto:uD,gesdotol:dD,gesl:fD,gesles:pD,Gfr:hD,gfr:mD,gg:gD,Gg:vD,ggg:yD,gimel:_D,GJcy:CD,gjcy:bD,gla:kD,gl:wD,glE:ED,glj:xD,gnap:SD,gnapprox:TD,gne:AD,gnE:ND,gneq:DD,gneqq:MD,gnsim:BD,Gopf:$D,gopf:OD,grave:LD,GreaterEqual:ID,GreaterEqualLess:PD,GreaterFullEqual:FD,GreaterGreater:RD,GreaterLess:VD,GreaterSlantEqual:zD,GreaterTilde:UD,Gscr:qD,gscr:HD,gsim:jD,gsime:WD,gsiml:ZD,gtcc:KD,gtcir:GD,gt:YD,GT:JD,Gt:XD,gtdot:QD,gtlPar:eM,gtquest:tM,gtrapprox:nM,gtrarr:oM,gtrdot:rM,gtreqless:iM,gtreqqless:sM,gtrless:aM,gtrsim:lM,gvertneqq:cM,gvnE:uM,Hacek:dM,hairsp:fM,half:pM,hamilt:hM,HARDcy:mM,hardcy:gM,harrcir:vM,harr:yM,hArr:_M,harrw:CM,Hat:bM,hbar:kM,Hcirc:wM,hcirc:EM,hearts:xM,heartsuit:SM,hellip:TM,hercon:AM,hfr:NM,Hfr:DM,HilbertSpace:MM,hksearow:BM,hkswarow:$M,hoarr:OM,homtht:LM,hookleftarrow:IM,hookrightarrow:PM,hopf:FM,Hopf:RM,horbar:VM,HorizontalLine:zM,hscr:UM,Hscr:qM,hslash:HM,Hstrok:jM,hstrok:WM,HumpDownHump:ZM,HumpEqual:KM,hybull:GM,hyphen:YM,Iacute:JM,iacute:XM,ic:QM,Icirc:eB,icirc:tB,Icy:nB,icy:oB,Idot:rB,IEcy:iB,iecy:sB,iexcl:aB,iff:lB,ifr:cB,Ifr:uB,Igrave:dB,igrave:fB,ii:pB,iiiint:hB,iiint:mB,iinfin:gB,iiota:vB,IJlig:yB,ijlig:_B,Imacr:CB,imacr:bB,image:kB,ImaginaryI:wB,imagline:EB,imagpart:xB,imath:SB,Im:TB,imof:AB,imped:NB,Implies:DB,incare:MB,in:"∈",infin:BB,infintie:$B,inodot:OB,intcal:LB,int:IB,Int:PB,integers:FB,Integral:RB,intercal:VB,Intersection:zB,intlarhk:UB,intprod:qB,InvisibleComma:HB,InvisibleTimes:jB,IOcy:WB,iocy:ZB,Iogon:KB,iogon:GB,Iopf:YB,iopf:JB,Iota:XB,iota:QB,iprod:e$,iquest:t$,iscr:n$,Iscr:o$,isin:r$,isindot:i$,isinE:s$,isins:a$,isinsv:l$,isinv:c$,it:u$,Itilde:d$,itilde:f$,Iukcy:p$,iukcy:h$,Iuml:m$,iuml:g$,Jcirc:v$,jcirc:y$,Jcy:_$,jcy:C$,Jfr:b$,jfr:k$,jmath:w$,Jopf:E$,jopf:x$,Jscr:S$,jscr:T$,Jsercy:A$,jsercy:N$,Jukcy:D$,jukcy:M$,Kappa:B$,kappa:$$,kappav:O$,Kcedil:L$,kcedil:I$,Kcy:P$,kcy:F$,Kfr:R$,kfr:V$,kgreen:z$,KHcy:U$,khcy:q$,KJcy:H$,kjcy:j$,Kopf:W$,kopf:Z$,Kscr:K$,kscr:G$,lAarr:Y$,Lacute:J$,lacute:X$,laemptyv:Q$,lagran:eO,Lambda:tO,lambda:nO,lang:oO,Lang:rO,langd:iO,langle:sO,lap:aO,Laplacetrf:lO,laquo:cO,larrb:uO,larrbfs:dO,larr:fO,Larr:pO,lArr:hO,larrfs:mO,larrhk:gO,larrlp:vO,larrpl:yO,larrsim:_O,larrtl:CO,latail:bO,lAtail:kO,lat:wO,late:EO,lates:xO,lbarr:SO,lBarr:TO,lbbrk:AO,lbrace:NO,lbrack:DO,lbrke:MO,lbrksld:BO,lbrkslu:$O,Lcaron:OO,lcaron:LO,Lcedil:IO,lcedil:PO,lceil:FO,lcub:RO,Lcy:VO,lcy:zO,ldca:UO,ldquo:qO,ldquor:HO,ldrdhar:jO,ldrushar:WO,ldsh:ZO,le:KO,lE:GO,LeftAngleBracket:YO,LeftArrowBar:JO,leftarrow:XO,LeftArrow:QO,Leftarrow:eL,LeftArrowRightArrow:tL,leftarrowtail:nL,LeftCeiling:oL,LeftDoubleBracket:rL,LeftDownTeeVector:iL,LeftDownVectorBar:sL,LeftDownVector:aL,LeftFloor:lL,leftharpoondown:cL,leftharpoonup:uL,leftleftarrows:dL,leftrightarrow:fL,LeftRightArrow:pL,Leftrightarrow:hL,leftrightarrows:mL,leftrightharpoons:gL,leftrightsquigarrow:vL,LeftRightVector:yL,LeftTeeArrow:_L,LeftTee:CL,LeftTeeVector:bL,leftthreetimes:kL,LeftTriangleBar:wL,LeftTriangle:EL,LeftTriangleEqual:xL,LeftUpDownVector:SL,LeftUpTeeVector:TL,LeftUpVectorBar:AL,LeftUpVector:NL,LeftVectorBar:DL,LeftVector:ML,lEg:BL,leg:$L,leq:OL,leqq:LL,leqslant:IL,lescc:PL,les:FL,lesdot:RL,lesdoto:VL,lesdotor:zL,lesg:UL,lesges:qL,lessapprox:HL,lessdot:jL,lesseqgtr:WL,lesseqqgtr:ZL,LessEqualGreater:KL,LessFullEqual:GL,LessGreater:YL,lessgtr:JL,LessLess:XL,lesssim:QL,LessSlantEqual:eI,LessTilde:tI,lfisht:nI,lfloor:oI,Lfr:rI,lfr:iI,lg:sI,lgE:aI,lHar:lI,lhard:cI,lharu:uI,lharul:dI,lhblk:fI,LJcy:pI,ljcy:hI,llarr:mI,ll:gI,Ll:vI,llcorner:yI,Lleftarrow:_I,llhard:CI,lltri:bI,Lmidot:kI,lmidot:wI,lmoustache:EI,lmoust:xI,lnap:SI,lnapprox:TI,lne:AI,lnE:NI,lneq:DI,lneqq:MI,lnsim:BI,loang:$I,loarr:OI,lobrk:LI,longleftarrow:II,LongLeftArrow:PI,Longleftarrow:FI,longleftrightarrow:RI,LongLeftRightArrow:VI,Longleftrightarrow:zI,longmapsto:UI,longrightarrow:qI,LongRightArrow:HI,Longrightarrow:jI,looparrowleft:WI,looparrowright:ZI,lopar:KI,Lopf:GI,lopf:YI,loplus:JI,lotimes:XI,lowast:QI,lowbar:eP,LowerLeftArrow:tP,LowerRightArrow:nP,loz:oP,lozenge:rP,lozf:iP,lpar:sP,lparlt:aP,lrarr:lP,lrcorner:cP,lrhar:uP,lrhard:dP,lrm:fP,lrtri:pP,lsaquo:hP,lscr:mP,Lscr:gP,lsh:vP,Lsh:yP,lsim:_P,lsime:CP,lsimg:bP,lsqb:kP,lsquo:wP,lsquor:EP,Lstrok:xP,lstrok:SP,ltcc:TP,ltcir:AP,lt:NP,LT:DP,Lt:MP,ltdot:BP,lthree:$P,ltimes:OP,ltlarr:LP,ltquest:IP,ltri:PP,ltrie:FP,ltrif:RP,ltrPar:VP,lurdshar:zP,luruhar:UP,lvertneqq:qP,lvnE:HP,macr:jP,male:WP,malt:ZP,maltese:KP,Map:"⤅",map:GP,mapsto:YP,mapstodown:JP,mapstoleft:XP,mapstoup:QP,marker:eF,mcomma:tF,Mcy:nF,mcy:oF,mdash:rF,mDDot:iF,measuredangle:sF,MediumSpace:aF,Mellintrf:lF,Mfr:cF,mfr:uF,mho:dF,micro:fF,midast:pF,midcir:hF,mid:mF,middot:gF,minusb:vF,minus:yF,minusd:_F,minusdu:CF,MinusPlus:bF,mlcp:kF,mldr:wF,mnplus:EF,models:xF,Mopf:SF,mopf:TF,mp:AF,mscr:NF,Mscr:DF,mstpos:MF,Mu:BF,mu:$F,multimap:OF,mumap:LF,nabla:IF,Nacute:PF,nacute:FF,nang:RF,nap:VF,napE:zF,napid:UF,napos:qF,napprox:HF,natural:jF,naturals:WF,natur:ZF,nbsp:KF,nbump:GF,nbumpe:YF,ncap:JF,Ncaron:XF,ncaron:QF,Ncedil:eR,ncedil:tR,ncong:nR,ncongdot:oR,ncup:rR,Ncy:iR,ncy:sR,ndash:aR,nearhk:lR,nearr:cR,neArr:uR,nearrow:dR,ne:fR,nedot:pR,NegativeMediumSpace:hR,NegativeThickSpace:mR,NegativeThinSpace:gR,NegativeVeryThinSpace:vR,nequiv:yR,nesear:_R,nesim:CR,NestedGreaterGreater:bR,NestedLessLess:kR,NewLine:wR,nexist:ER,nexists:xR,Nfr:SR,nfr:TR,ngE:AR,nge:NR,ngeq:DR,ngeqq:MR,ngeqslant:BR,nges:$R,nGg:OR,ngsim:LR,nGt:IR,ngt:PR,ngtr:FR,nGtv:RR,nharr:VR,nhArr:zR,nhpar:UR,ni:qR,nis:HR,nisd:jR,niv:WR,NJcy:ZR,njcy:KR,nlarr:GR,nlArr:YR,nldr:JR,nlE:XR,nle:QR,nleftarrow:eV,nLeftarrow:tV,nleftrightarrow:nV,nLeftrightarrow:oV,nleq:rV,nleqq:iV,nleqslant:sV,nles:aV,nless:lV,nLl:cV,nlsim:uV,nLt:dV,nlt:fV,nltri:pV,nltrie:hV,nLtv:mV,nmid:gV,NoBreak:vV,NonBreakingSpace:yV,nopf:_V,Nopf:CV,Not:bV,not:kV,NotCongruent:wV,NotCupCap:EV,NotDoubleVerticalBar:xV,NotElement:SV,NotEqual:TV,NotEqualTilde:AV,NotExists:NV,NotGreater:DV,NotGreaterEqual:MV,NotGreaterFullEqual:BV,NotGreaterGreater:$V,NotGreaterLess:OV,NotGreaterSlantEqual:LV,NotGreaterTilde:IV,NotHumpDownHump:PV,NotHumpEqual:FV,notin:RV,notindot:VV,notinE:zV,notinva:UV,notinvb:qV,notinvc:HV,NotLeftTriangleBar:jV,NotLeftTriangle:WV,NotLeftTriangleEqual:ZV,NotLess:KV,NotLessEqual:GV,NotLessGreater:YV,NotLessLess:JV,NotLessSlantEqual:XV,NotLessTilde:QV,NotNestedGreaterGreater:ez,NotNestedLessLess:tz,notni:nz,notniva:oz,notnivb:rz,notnivc:iz,NotPrecedes:sz,NotPrecedesEqual:az,NotPrecedesSlantEqual:lz,NotReverseElement:cz,NotRightTriangleBar:uz,NotRightTriangle:dz,NotRightTriangleEqual:fz,NotSquareSubset:pz,NotSquareSubsetEqual:hz,NotSquareSuperset:mz,NotSquareSupersetEqual:gz,NotSubset:vz,NotSubsetEqual:yz,NotSucceeds:_z,NotSucceedsEqual:Cz,NotSucceedsSlantEqual:bz,NotSucceedsTilde:kz,NotSuperset:wz,NotSupersetEqual:Ez,NotTilde:xz,NotTildeEqual:Sz,NotTildeFullEqual:Tz,NotTildeTilde:Az,NotVerticalBar:Nz,nparallel:Dz,npar:Mz,nparsl:Bz,npart:$z,npolint:Oz,npr:Lz,nprcue:Iz,nprec:Pz,npreceq:Fz,npre:Rz,nrarrc:Vz,nrarr:zz,nrArr:Uz,nrarrw:qz,nrightarrow:Hz,nRightarrow:jz,nrtri:Wz,nrtrie:Zz,nsc:Kz,nsccue:Gz,nsce:Yz,Nscr:Jz,nscr:Xz,nshortmid:Qz,nshortparallel:eU,nsim:tU,nsime:nU,nsimeq:oU,nsmid:rU,nspar:iU,nsqsube:sU,nsqsupe:aU,nsub:lU,nsubE:cU,nsube:uU,nsubset:dU,nsubseteq:fU,nsubseteqq:pU,nsucc:hU,nsucceq:mU,nsup:gU,nsupE:vU,nsupe:yU,nsupset:_U,nsupseteq:CU,nsupseteqq:bU,ntgl:kU,Ntilde:wU,ntilde:EU,ntlg:xU,ntriangleleft:SU,ntrianglelefteq:TU,ntriangleright:AU,ntrianglerighteq:NU,Nu:DU,nu:MU,num:BU,numero:$U,numsp:OU,nvap:LU,nvdash:IU,nvDash:PU,nVdash:FU,nVDash:RU,nvge:VU,nvgt:zU,nvHarr:UU,nvinfin:qU,nvlArr:HU,nvle:jU,nvlt:WU,nvltrie:ZU,nvrArr:KU,nvrtrie:GU,nvsim:YU,nwarhk:JU,nwarr:XU,nwArr:QU,nwarrow:eq,nwnear:tq,Oacute:nq,oacute:oq,oast:rq,Ocirc:iq,ocirc:sq,ocir:aq,Ocy:lq,ocy:cq,odash:uq,Odblac:dq,odblac:fq,odiv:pq,odot:hq,odsold:mq,OElig:gq,oelig:vq,ofcir:yq,Ofr:_q,ofr:Cq,ogon:bq,Ograve:kq,ograve:wq,ogt:Eq,ohbar:xq,ohm:Sq,oint:Tq,olarr:Aq,olcir:Nq,olcross:Dq,oline:Mq,olt:Bq,Omacr:$q,omacr:Oq,Omega:Lq,omega:Iq,Omicron:Pq,omicron:Fq,omid:Rq,ominus:Vq,Oopf:zq,oopf:Uq,opar:qq,OpenCurlyDoubleQuote:Hq,OpenCurlyQuote:jq,operp:Wq,oplus:Zq,orarr:Kq,Or:Gq,or:Yq,ord:Jq,order:Xq,orderof:Qq,ordf:eH,ordm:tH,origof:nH,oror:oH,orslope:rH,orv:iH,oS:sH,Oscr:aH,oscr:lH,Oslash:cH,oslash:uH,osol:dH,Otilde:fH,otilde:pH,otimesas:hH,Otimes:mH,otimes:gH,Ouml:vH,ouml:yH,ovbar:_H,OverBar:CH,OverBrace:bH,OverBracket:kH,OverParenthesis:wH,para:EH,parallel:xH,par:SH,parsim:TH,parsl:AH,part:NH,PartialD:DH,Pcy:MH,pcy:BH,percnt:$H,period:OH,permil:LH,perp:IH,pertenk:PH,Pfr:FH,pfr:RH,Phi:VH,phi:zH,phiv:UH,phmmat:qH,phone:HH,Pi:jH,pi:WH,pitchfork:ZH,piv:KH,planck:GH,planckh:YH,plankv:JH,plusacir:XH,plusb:QH,pluscir:ej,plus:tj,plusdo:nj,plusdu:oj,pluse:rj,PlusMinus:ij,plusmn:sj,plussim:aj,plustwo:lj,pm:cj,Poincareplane:uj,pointint:dj,popf:fj,Popf:pj,pound:hj,prap:mj,Pr:gj,pr:vj,prcue:yj,precapprox:_j,prec:Cj,preccurlyeq:bj,Precedes:kj,PrecedesEqual:wj,PrecedesSlantEqual:Ej,PrecedesTilde:xj,preceq:Sj,precnapprox:Tj,precneqq:Aj,precnsim:Nj,pre:Dj,prE:Mj,precsim:Bj,prime:$j,Prime:Oj,primes:Lj,prnap:Ij,prnE:Pj,prnsim:Fj,prod:Rj,Product:Vj,profalar:zj,profline:Uj,profsurf:qj,prop:Hj,Proportional:jj,Proportion:Wj,propto:Zj,prsim:Kj,prurel:Gj,Pscr:Yj,pscr:Jj,Psi:Xj,psi:Qj,puncsp:eW,Qfr:tW,qfr:nW,qint:oW,qopf:rW,Qopf:iW,qprime:sW,Qscr:aW,qscr:lW,quaternions:cW,quatint:uW,quest:dW,questeq:fW,quot:pW,QUOT:hW,rAarr:mW,race:gW,Racute:vW,racute:yW,radic:_W,raemptyv:CW,rang:bW,Rang:kW,rangd:wW,range:EW,rangle:xW,raquo:SW,rarrap:TW,rarrb:AW,rarrbfs:NW,rarrc:DW,rarr:MW,Rarr:BW,rArr:$W,rarrfs:OW,rarrhk:LW,rarrlp:IW,rarrpl:PW,rarrsim:FW,Rarrtl:RW,rarrtl:VW,rarrw:zW,ratail:UW,rAtail:qW,ratio:HW,rationals:jW,rbarr:WW,rBarr:ZW,RBarr:KW,rbbrk:GW,rbrace:YW,rbrack:JW,rbrke:XW,rbrksld:QW,rbrkslu:eZ,Rcaron:tZ,rcaron:nZ,Rcedil:oZ,rcedil:rZ,rceil:iZ,rcub:sZ,Rcy:aZ,rcy:lZ,rdca:cZ,rdldhar:uZ,rdquo:dZ,rdquor:fZ,rdsh:pZ,real:hZ,realine:mZ,realpart:gZ,reals:vZ,Re:yZ,rect:_Z,reg:CZ,REG:bZ,ReverseElement:kZ,ReverseEquilibrium:wZ,ReverseUpEquilibrium:EZ,rfisht:xZ,rfloor:SZ,rfr:TZ,Rfr:AZ,rHar:NZ,rhard:DZ,rharu:MZ,rharul:BZ,Rho:$Z,rho:OZ,rhov:LZ,RightAngleBracket:IZ,RightArrowBar:PZ,rightarrow:FZ,RightArrow:RZ,Rightarrow:VZ,RightArrowLeftArrow:zZ,rightarrowtail:UZ,RightCeiling:qZ,RightDoubleBracket:HZ,RightDownTeeVector:jZ,RightDownVectorBar:WZ,RightDownVector:ZZ,RightFloor:KZ,rightharpoondown:GZ,rightharpoonup:YZ,rightleftarrows:JZ,rightleftharpoons:XZ,rightrightarrows:QZ,rightsquigarrow:eK,RightTeeArrow:tK,RightTee:nK,RightTeeVector:oK,rightthreetimes:rK,RightTriangleBar:iK,RightTriangle:sK,RightTriangleEqual:aK,RightUpDownVector:lK,RightUpTeeVector:cK,RightUpVectorBar:uK,RightUpVector:dK,RightVectorBar:fK,RightVector:pK,ring:hK,risingdotseq:mK,rlarr:gK,rlhar:vK,rlm:yK,rmoustache:_K,rmoust:CK,rnmid:bK,roang:kK,roarr:wK,robrk:EK,ropar:xK,ropf:SK,Ropf:TK,roplus:AK,rotimes:NK,RoundImplies:DK,rpar:MK,rpargt:BK,rppolint:$K,rrarr:OK,Rrightarrow:LK,rsaquo:IK,rscr:PK,Rscr:FK,rsh:RK,Rsh:VK,rsqb:zK,rsquo:UK,rsquor:qK,rthree:HK,rtimes:jK,rtri:WK,rtrie:ZK,rtrif:KK,rtriltri:GK,RuleDelayed:YK,ruluhar:JK,rx:XK,Sacute:QK,sacute:eG,sbquo:tG,scap:nG,Scaron:oG,scaron:rG,Sc:iG,sc:sG,sccue:aG,sce:lG,scE:cG,Scedil:uG,scedil:dG,Scirc:fG,scirc:pG,scnap:hG,scnE:mG,scnsim:gG,scpolint:vG,scsim:yG,Scy:_G,scy:CG,sdotb:bG,sdot:kG,sdote:wG,searhk:EG,searr:xG,seArr:SG,searrow:TG,sect:AG,semi:NG,seswar:DG,setminus:MG,setmn:BG,sext:$G,Sfr:OG,sfr:LG,sfrown:IG,sharp:PG,SHCHcy:FG,shchcy:RG,SHcy:VG,shcy:zG,ShortDownArrow:UG,ShortLeftArrow:qG,shortmid:HG,shortparallel:jG,ShortRightArrow:WG,ShortUpArrow:ZG,shy:KG,Sigma:GG,sigma:YG,sigmaf:JG,sigmav:XG,sim:QG,simdot:eY,sime:tY,simeq:nY,simg:oY,simgE:rY,siml:iY,simlE:sY,simne:aY,simplus:lY,simrarr:cY,slarr:uY,SmallCircle:dY,smallsetminus:fY,smashp:pY,smeparsl:hY,smid:mY,smile:gY,smt:vY,smte:yY,smtes:_Y,SOFTcy:CY,softcy:bY,solbar:kY,solb:wY,sol:EY,Sopf:xY,sopf:SY,spades:TY,spadesuit:AY,spar:NY,sqcap:DY,sqcaps:MY,sqcup:BY,sqcups:$Y,Sqrt:OY,sqsub:LY,sqsube:IY,sqsubset:PY,sqsubseteq:FY,sqsup:RY,sqsupe:VY,sqsupset:zY,sqsupseteq:UY,square:qY,Square:HY,SquareIntersection:jY,SquareSubset:WY,SquareSubsetEqual:ZY,SquareSuperset:KY,SquareSupersetEqual:GY,SquareUnion:YY,squarf:JY,squ:XY,squf:QY,srarr:eJ,Sscr:tJ,sscr:nJ,ssetmn:oJ,ssmile:rJ,sstarf:iJ,Star:sJ,star:aJ,starf:lJ,straightepsilon:cJ,straightphi:uJ,strns:dJ,sub:fJ,Sub:pJ,subdot:hJ,subE:mJ,sube:gJ,subedot:vJ,submult:yJ,subnE:_J,subne:CJ,subplus:bJ,subrarr:kJ,subset:wJ,Subset:EJ,subseteq:xJ,subseteqq:SJ,SubsetEqual:TJ,subsetneq:AJ,subsetneqq:NJ,subsim:DJ,subsub:MJ,subsup:BJ,succapprox:$J,succ:OJ,succcurlyeq:LJ,Succeeds:IJ,SucceedsEqual:PJ,SucceedsSlantEqual:FJ,SucceedsTilde:RJ,succeq:VJ,succnapprox:zJ,succneqq:UJ,succnsim:qJ,succsim:HJ,SuchThat:jJ,sum:WJ,Sum:ZJ,sung:KJ,sup1:GJ,sup2:YJ,sup3:JJ,sup:XJ,Sup:QJ,supdot:eX,supdsub:tX,supE:nX,supe:oX,supedot:rX,Superset:iX,SupersetEqual:sX,suphsol:aX,suphsub:lX,suplarr:cX,supmult:uX,supnE:dX,supne:fX,supplus:pX,supset:hX,Supset:mX,supseteq:gX,supseteqq:vX,supsetneq:yX,supsetneqq:_X,supsim:CX,supsub:bX,supsup:kX,swarhk:wX,swarr:EX,swArr:xX,swarrow:SX,swnwar:TX,szlig:AX,Tab:NX,target:DX,Tau:MX,tau:BX,tbrk:$X,Tcaron:OX,tcaron:LX,Tcedil:IX,tcedil:PX,Tcy:FX,tcy:RX,tdot:VX,telrec:zX,Tfr:UX,tfr:qX,there4:HX,therefore:jX,Therefore:WX,Theta:ZX,theta:KX,thetasym:GX,thetav:YX,thickapprox:JX,thicksim:XX,ThickSpace:QX,ThinSpace:eQ,thinsp:tQ,thkap:nQ,thksim:oQ,THORN:rQ,thorn:iQ,tilde:sQ,Tilde:aQ,TildeEqual:lQ,TildeFullEqual:cQ,TildeTilde:uQ,timesbar:dQ,timesb:fQ,times:pQ,timesd:hQ,tint:mQ,toea:gQ,topbot:vQ,topcir:yQ,top:_Q,Topf:CQ,topf:bQ,topfork:kQ,tosa:wQ,tprime:EQ,trade:xQ,TRADE:SQ,triangle:TQ,triangledown:AQ,triangleleft:NQ,trianglelefteq:DQ,triangleq:MQ,triangleright:BQ,trianglerighteq:$Q,tridot:OQ,trie:LQ,triminus:IQ,TripleDot:PQ,triplus:FQ,trisb:RQ,tritime:VQ,trpezium:zQ,Tscr:UQ,tscr:qQ,TScy:HQ,tscy:jQ,TSHcy:WQ,tshcy:ZQ,Tstrok:KQ,tstrok:GQ,twixt:YQ,twoheadleftarrow:JQ,twoheadrightarrow:XQ,Uacute:QQ,uacute:eee,uarr:tee,Uarr:nee,uArr:oee,Uarrocir:ree,Ubrcy:iee,ubrcy:see,Ubreve:aee,ubreve:lee,Ucirc:cee,ucirc:uee,Ucy:dee,ucy:fee,udarr:pee,Udblac:hee,udblac:mee,udhar:gee,ufisht:vee,Ufr:yee,ufr:_ee,Ugrave:Cee,ugrave:bee,uHar:kee,uharl:wee,uharr:Eee,uhblk:xee,ulcorn:See,ulcorner:Tee,ulcrop:Aee,ultri:Nee,Umacr:Dee,umacr:Mee,uml:Bee,UnderBar:$ee,UnderBrace:Oee,UnderBracket:Lee,UnderParenthesis:Iee,Union:Pee,UnionPlus:Fee,Uogon:Ree,uogon:Vee,Uopf:zee,uopf:Uee,UpArrowBar:qee,uparrow:Hee,UpArrow:jee,Uparrow:Wee,UpArrowDownArrow:Zee,updownarrow:Kee,UpDownArrow:Gee,Updownarrow:Yee,UpEquilibrium:Jee,upharpoonleft:Xee,upharpoonright:Qee,uplus:ete,UpperLeftArrow:tte,UpperRightArrow:nte,upsi:ote,Upsi:rte,upsih:ite,Upsilon:ste,upsilon:ate,UpTeeArrow:lte,UpTee:cte,upuparrows:ute,urcorn:dte,urcorner:fte,urcrop:pte,Uring:hte,uring:mte,urtri:gte,Uscr:vte,uscr:yte,utdot:_te,Utilde:Cte,utilde:bte,utri:kte,utrif:wte,uuarr:Ete,Uuml:xte,uuml:Ste,uwangle:Tte,vangrt:Ate,varepsilon:Nte,varkappa:Dte,varnothing:Mte,varphi:Bte,varpi:$te,varpropto:Ote,varr:Lte,vArr:Ite,varrho:Pte,varsigma:Fte,varsubsetneq:Rte,varsubsetneqq:Vte,varsupsetneq:zte,varsupsetneqq:Ute,vartheta:qte,vartriangleleft:Hte,vartriangleright:jte,vBar:Wte,Vbar:Zte,vBarv:Kte,Vcy:Gte,vcy:Yte,vdash:Jte,vDash:Xte,Vdash:Qte,VDash:ene,Vdashl:tne,veebar:nne,vee:one,Vee:rne,veeeq:ine,vellip:sne,verbar:ane,Verbar:lne,vert:cne,Vert:une,VerticalBar:dne,VerticalLine:fne,VerticalSeparator:pne,VerticalTilde:hne,VeryThinSpace:mne,Vfr:gne,vfr:vne,vltri:yne,vnsub:_ne,vnsup:Cne,Vopf:bne,vopf:kne,vprop:wne,vrtri:Ene,Vscr:xne,vscr:Sne,vsubnE:Tne,vsubne:Ane,vsupnE:Nne,vsupne:Dne,Vvdash:Mne,vzigzag:Bne,Wcirc:$ne,wcirc:One,wedbar:Lne,wedge:Ine,Wedge:Pne,wedgeq:Fne,weierp:Rne,Wfr:Vne,wfr:zne,Wopf:Une,wopf:qne,wp:Hne,wr:jne,wreath:Wne,Wscr:Zne,wscr:Kne,xcap:Gne,xcirc:Yne,xcup:Jne,xdtri:Xne,Xfr:Qne,xfr:eoe,xharr:toe,xhArr:noe,Xi:ooe,xi:roe,xlarr:ioe,xlArr:soe,xmap:aoe,xnis:loe,xodot:coe,Xopf:uoe,xopf:doe,xoplus:foe,xotime:poe,xrarr:hoe,xrArr:moe,Xscr:goe,xscr:voe,xsqcup:yoe,xuplus:_oe,xutri:Coe,xvee:boe,xwedge:koe,Yacute:woe,yacute:Eoe,YAcy:xoe,yacy:Soe,Ycirc:Toe,ycirc:Aoe,Ycy:Noe,ycy:Doe,yen:Moe,Yfr:Boe,yfr:$oe,YIcy:Ooe,yicy:Loe,Yopf:Ioe,yopf:Poe,Yscr:Foe,yscr:Roe,YUcy:Voe,yucy:zoe,yuml:Uoe,Yuml:qoe,Zacute:Hoe,zacute:joe,Zcaron:Woe,zcaron:Zoe,Zcy:Koe,zcy:Goe,Zdot:Yoe,zdot:Joe,zeetrf:Xoe,ZeroWidthSpace:Qoe,Zeta:ere,zeta:tre,zfr:nre,Zfr:ore,ZHcy:rre,zhcy:ire,zigrarr:sre,zopf:are,Zopf:lre,Zscr:cre,zscr:ure,zwj:dre,zwnj:fre};var Hp=pre,eu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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={},Ad={};function hre(t){var e,n,o=Ad[t];if(o)return o;for(o=Ad[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 La(t,e,n){var o,r,s,a,l,c="";for(typeof e!="string"&&(n=e,e=La.defaultChars),typeof n>"u"&&(n=!0),l=hre(e),o=0,r=t.length;o<r;o++){if(s=t.charCodeAt(o),n&&s===37&&o+2<r&&/^[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<r&&(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}La.defaultChars=";/?:@&=+$,-_.!~*'()#";La.componentChars="-_.!~*'()";var mre=La,Nd={};function gre(t){var e,n,o=Nd[t];if(o)return o;for(o=Nd[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 Ia(t,e){var n;return typeof e!="string"&&(e=Ia.defaultChars),n=gre(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var r,s,a,l,c,u,d,f="";for(r=0,s=o.length;r<s;r+=3){if(a=parseInt(o.slice(r+1,r+3),16),a<128){f+=n[a];continue}if((a&224)===192&&r+3<s&&(l=parseInt(o.slice(r+4,r+6),16),(l&192)===128)){d=a<<6&1984|l&63,d<128?f+="��":f+=String.fromCharCode(d),r+=3;continue}if((a&240)===224&&r+6<s&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+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),r+=6;continue}if((a&248)===240&&r+9<s&&(l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+9),16),u=parseInt(o.slice(r+10,r+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))),r+=9;continue}f+="�"}return f})}Ia.defaultChars=";/?:@&=+$,#";Ia.componentChars="";var vre=Ia,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 ea(){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 _re=/^([a-z0-9.+-]+:)/i,Cre=/:[0-9]*$/,bre=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,kre=["<",">",'"',"`"," ","\r",`
|
|
3
|
+
`," "],wre=["{","}","|","\\","^","`"].concat(kre),Ere=["'"].concat(wre),Dd=["%","/","?",";","#"].concat(Ere),Md=["/","?","#"],xre=255,Bd=/^[+a-z0-9A-Z_-]{0,63}$/,Sre=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,$d={javascript:!0,"javascript:":!0},Od={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 ea)return t;var n=new ea;return n.parse(t,e),n}ea.prototype.parse=function(t,e){var n,o,r,s,a,l=t;if(l=l.trim(),!e&&t.split("#").length===1){var c=bre.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=_re.exec(l);if(u&&(u=u[0],r=u.toLowerCase(),this.protocol=u,l=l.substr(u.length)),(e||u||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=l.substr(0,2)==="//",a&&!(u&&$d[u])&&(l=l.substr(2),this.slashes=!0)),!$d[u]&&(a||u&&!Od[u])){var d=-1;for(n=0;n<Md.length;n++)s=l.indexOf(Md[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<Dd.length;n++)s=l.indexOf(Dd[n]),s!==-1&&(d===-1||s<d)&&(d=s);d===-1&&(d=l.length),l[d-1]===":"&&d--;var h=l.slice(0,d);l=l.slice(d),this.parseHost(h),this.hostname=this.hostname||"";var m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){var g=this.hostname.split(/\./);for(n=0,o=g.length;n<o;n++){var y=g[n];if(y&&!y.match(Bd)){for(var _="",C=0,v=y.length;C<v;C++)y.charCodeAt(C)>127?_+="x":_+=y[C];if(!_.match(Bd)){var w=g.slice(0,n),k=g.slice(n+1),b=y.match(Sre);b&&(w.push(b[1]),k.unshift(b[2])),k.length&&(l=k.join(".")+l),this.hostname=w.join(".");break}}}}this.hostname.length>xre&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var E=l.indexOf("#");E!==-1&&(this.hash=l.substr(E),l=l.slice(0,E));var S=l.indexOf("?");return S!==-1&&(this.search=l.substr(S),l=l.slice(0,S)),l&&(this.pathname=l),Od[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};ea.prototype.parseHost=function(t){var e=Cre.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 Are=Tre;zr.encode=mre;zr.decode=vre;zr.format=yre;zr.parse=Are;var Eo={},gl,Ld;function jp(){return Ld||(Ld=1,gl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),gl}var vl,Id;function Wp(){return Id||(Id=1,vl=/[\0-\x1F\x7F-\x9F]/),vl}var yl,Pd;function Nre(){return Pd||(Pd=1,yl=/[\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]/),yl}var _l,Fd;function Zp(){return Fd||(Fd=1,_l=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),_l}var Rd;function Dre(){return Rd||(Rd=1,Eo.Any=jp(),Eo.Cc=Wp(),Eo.Cf=Nre(),Eo.P=eu,Eo.Z=Zp()),Eo}(function(t){function e($){return Object.prototype.toString.call($)}function n($){return e($)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r($,H){return o.call($,H)}function s($){var H=Array.prototype.slice.call(arguments,1);return H.forEach(function(L){if(L){if(typeof L!="object")throw new TypeError(L+"must be object");Object.keys(L).forEach(function(ee){$[ee]=L[ee]})}}),$}function a($,H,L){return[].concat($.slice(0,H),L,$.slice(H+1))}function l($){return!($>=55296&&$<=57343||$>=64976&&$<=65007||($&65535)===65535||($&65535)===65534||$>=0&&$<=8||$===11||$>=14&&$<=31||$>=127&&$<=159||$>1114111)}function c($){if($>65535){$-=65536;var H=55296+($>>10),L=56320+($&1023);return String.fromCharCode(H,L)}return String.fromCharCode($)}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,h=Hp;function m($,H){var L;return r(h,H)?h[H]:H.charCodeAt(0)===35&&p.test(H)&&(L=H[1].toLowerCase()==="x"?parseInt(H.slice(2),16):parseInt(H.slice(1),10),l(L))?c(L):$}function g($){return $.indexOf("\\")<0?$:$.replace(u,"$1")}function y($){return $.indexOf("\\")<0&&$.indexOf("&")<0?$:$.replace(f,function(H,L,ee){return L||m(H,ee)})}var _=/[&<>"]/,C=/[&<>"]/g,v={"&":"&","<":"<",">":">",'"':"""};function w($){return v[$]}function k($){return _.test($)?$.replace(C,w):$}var b=/[.?*+^$[\]\\(){}|-]/g;function E($){return $.replace(b,"\\$&")}function S($){switch($){case 9:case 32:return!0}return!1}function T($){if($>=8192&&$<=8202)return!0;switch($){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 A=eu;function V($){return A.test($)}function I($){switch($){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 U($){return $=$.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&($=$.replace(/ẞ/g,"ß")),$.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=zr,t.lib.ucmicro=Dre(),t.assign=s,t.isString=n,t.has=r,t.unescapeMd=g,t.unescapeAll=y,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=k,t.arrayReplaceAt=a,t.isSpace=S,t.isWhiteSpace=T,t.isMdAsciiPunct=I,t.isPunctChar=V,t.escapeRE=E,t.normalizeReference=U})(ke);var Pa={},Mre=function(e,n,o){var r,s,a,l,c=-1,u=e.posMax,d=e.pos;for(e.pos=n+1,r=1;e.pos<u;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){s=!0;break}if(l=e.pos,e.md.inline.skipToken(e),a===91){if(l===e.pos-1)r++;else if(o)return e.pos=d,-1}}return s&&(c=e.pos),e.pos=d,c},Vd=ke.unescapeAll,Bre=function(e,n,o){var r,s,a=n,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(a)===60){for(a++;a<o;){if(r=e.charCodeAt(a),r===10||r===60)return l;if(r===62)return l.pos=a+1,l.str=Vd(e.slice(n+1,a)),l.ok=!0,l;if(r===92&&a+1<o){a+=2;continue}a++}return l}for(s=0;a<o&&(r=e.charCodeAt(a),!(r===32||r<32||r===127));){if(r===92&&a+1<o){if(e.charCodeAt(a+1)===32)break;a+=2;continue}if(r===40&&(s++,s>32))return l;if(r===41){if(s===0)break;s--}a++}return n===a||s!==0||(l.str=Vd(e.slice(n,a)),l.pos=a,l.ok=!0),l},$re=ke.unescapeAll,Ore=function(e,n,o){var r,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(r=e.charCodeAt(l),r===s)return c.pos=l+1,c.lines=a,c.str=$re(e.slice(n+1,l)),c.ok=!0,c;if(r===40&&s===41)return c;r===10?a++:r===92&&l+1<o&&(l++,e.charCodeAt(l)===10&&a++),l++}return c};Pa.parseLinkLabel=Mre;Pa.parseLinkDestination=Bre;Pa.parseLinkTitle=Ore;var Lre=ke.assign,Ire=ke.unescapeAll,qo=ke.escapeHtml,Cn={};Cn.code_inline=function(t,e,n,o,r){var s=t[e];return"<code"+r.renderAttrs(s)+">"+qo(s.content)+"</code>"};Cn.code_block=function(t,e,n,o,r){var s=t[e];return"<pre"+r.renderAttrs(s)+"><code>"+qo(t[e].content)+`</code></pre>
|
|
4
|
+
`};Cn.fence=function(t,e,n,o,r){var s=t[e],a=s.info?Ire(s.info).trim():"",l="",c="",u,d,f,p,h;return a&&(f=a.split(/(\s+)/g),l=f[0],c=f.slice(2).join("")),n.highlight?u=n.highlight(s.content,l,c)||qo(s.content):u=qo(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),h={attrs:p},"<pre><code"+r.renderAttrs(h)+">"+u+`</code></pre>
|
|
6
6
|
`):"<pre><code"+r.renderAttrs(s)+">"+u+`</code></pre>
|
|
7
7
|
`};Cn.image=function(t,e,n,o,r){var s=t[e];return s.attrs[s.attrIndex("alt")][1]=r.renderInlineAsText(s.children,n,o),r.renderToken(t,e,n)};Cn.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
|
|
@@ -9,26 +9,26 @@
|
|
|
9
9
|
`};Cn.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
|
|
10
10
|
`:`<br>
|
|
11
11
|
`:`
|
|
12
|
-
`};Cn.text=function(t,e){return qo(t[e].content)};Cn.html_block=function(t,e){return t[e].content};Cn.html_inline=function(t,e){return t[e].content};function Ur(){this.rules=
|
|
12
|
+
`};Cn.text=function(t,e){return qo(t[e].content)};Cn.html_block=function(t,e){return t[e].content};Cn.html_inline=function(t,e){return t[e].content};function Ur(){this.rules=Lre({},Cn)}Ur.prototype.renderAttrs=function(e){var n,o,r;if(!e.attrs)return"";for(r="",n=0,o=e.attrs.length;n<o;n++)r+=" "+qo(e.attrs[n][0])+'="'+qo(e.attrs[n][1])+'"';return r};Ur.prototype.renderToken=function(e,n,o){var r,s="",a=!1,l=e[n];return l.hidden?"":(l.block&&l.nesting!==-1&&n&&e[n-1].hidden&&(s+=`
|
|
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&&(r=e[n+1],(r.type==="inline"||r.hidden||r.nesting===-1&&r.tag===l.tag)&&(a=!1))),s+=a?`>
|
|
14
14
|
`:">",s)};Ur.prototype.renderInline=function(t,e,n){for(var o,r="",s=this.rules,a=0,l=t.length;a<l;a++)o=t[a].type,typeof s[o]<"u"?r+=s[o](t,a,e,n,this):r+=this.renderToken(t,a,e);return r};Ur.prototype.renderInlineAsText=function(t,e,n){for(var o="",r=0,s=t.length;r<s;r++)t[r].type==="text"?o+=t[r].content:t[r].type==="image"?o+=this.renderInlineAsText(t[r].children,e,n):t[r].type==="softbreak"&&(o+=`
|
|
15
|
-
`);return o};Ur.prototype.render=function(t,e,n){var o,r,s,a="",l=this.rules;for(o=0,r=t.length;o<r;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
|
|
16
|
-
`),n=n.replace(
|
|
17
|
-
`,a.map=[n,e.line],!0},sie=function(e,n,o,r){var s,a,l,c,u,d,f,p=!1,h=e.bMarks[n]+e.tShift[n],m=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||h+3>m||(s=e.src.charCodeAt(h),s!==126&&s!==96)||(u=h,h=e.skipChars(h,s),a=h-u,a<3)||(f=e.src.slice(u,h),l=e.src.slice(h,m),s===96&&l.indexOf(String.fromCharCode(s))>=0))return!1;if(r)return!0;for(c=n;c++,!(c>=o||(h=u=e.bMarks[c]+e.tShift[c],m=e.eMarks[c],h<m&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(h)===s&&!(e.sCount[c]-e.blkIndent>=4)&&(h=e.skipChars(h,s),!(h-u<a)&&(h=e.skipSpaces(h),!(h<m)))){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},aie=ke.isSpace,lie=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,y,_,C,v,w,k,b,E,S,T=e.lineMax,A=e.bMarks[n]+e.tShift[n],V=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(A)!==62)return!1;if(r)return!0;for(m=[],g=[],C=[],v=[],b=e.md.block.ruler.getRules("blockquote"),_=e.parentType,e.parentType="blockquote",p=n;p<o&&(S=e.sCount[p]<e.blkIndent,A=e.bMarks[p]+e.tShift[p],V=e.eMarks[p],!(A>=V));p++){if(e.src.charCodeAt(A++)===62&&!S){for(c=e.sCount[p]+1,e.src.charCodeAt(A)===32?(A++,c++,s=!1,w=!0):e.src.charCodeAt(A)===9?(w=!0,(e.bsCount[p]+c)%4===3?(A++,c++,s=!1):s=!0):w=!1,h=c,m.push(e.bMarks[p]),e.bMarks[p]=A;A<V&&(a=e.src.charCodeAt(A),aie(a));){a===9?h+=4-(h+e.bsCount[p]+(s?1:0))%4:h++;A++}d=A>=V,g.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(w?1:0),C.push(e.sCount[p]),e.sCount[p]=h-c,v.push(e.tShift[p]),e.tShift[p]=A-e.bMarks[p];continue}if(d)break;for(k=!1,l=0,u=b.length;l<u;l++)if(b[l](e,p,o,!0)){k=!0;break}if(k){e.lineMax=p,e.blkIndent!==0&&(m.push(e.bMarks[p]),g.push(e.bsCount[p]),v.push(e.tShift[p]),C.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}m.push(e.bMarks[p]),g.push(e.bsCount[p]),v.push(e.tShift[p]),C.push(e.sCount[p]),e.sCount[p]=-1}for(y=e.blkIndent,e.blkIndent=0,E=e.push("blockquote_open","blockquote",1),E.markup=">",E.map=f=[n,0],e.md.block.tokenize(e,n,p),E=e.push("blockquote_close","blockquote",-1),E.markup=">",e.lineMax=T,e.parentType=_,f[1]=e.line,l=0;l<v.length;l++)e.bMarks[l+n]=m[l],e.tShift[l+n]=v[l],e.sCount[l+n]=C[l],e.bsCount[l+n]=g[l];return e.blkIndent=y,!0},cie=ke.isSpace,uie=function(e,n,o,r){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&&!cie(l))return!1;l===s&&a++}return a<3?!1:(r||(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)},Yp=ke.isSpace;function Zd(t,e){var n,o,r,s;return o=t.bMarks[e]+t.tShift[e],r=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<r&&(s=t.src.charCodeAt(o),!Yp(s))?-1:o}function Kd(t,e){var n,o=t.bMarks[e]+t.tShift[e],r=o,s=t.eMarks[e];if(r+1>=s||(n=t.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=s)return-1;if(n=t.src.charCodeAt(r++),n>=48&&n<=57){if(r-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return r<s&&(n=t.src.charCodeAt(r),!Yp(n))?-1:r}function die(t,e){var n,o,r=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===r&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var fie=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,y,_,C,v,w,k,b,E,S,T,A,V,I,U,$,H,L=n,ee=!1,O=!0;if(e.sCount[L]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[L]-e.listIndent>=4&&e.sCount[L]<e.blkIndent)return!1;if(r&&e.parentType==="paragraph"&&e.sCount[L]>=e.blkIndent&&(ee=!0),(A=Kd(e,L))>=0){if(f=!0,I=e.bMarks[L]+e.tShift[L],_=Number(e.src.slice(I,A-1)),ee&&_!==1)return!1}else if((A=Zd(e,L))>=0)f=!1;else return!1;if(ee&&e.skipSpaces(A)>=e.eMarks[L])return!1;if(r)return!0;for(y=e.src.charCodeAt(A-1),g=e.tokens.length,f?(H=e.push("ordered_list_open","ol",1),_!==1&&(H.attrs=[["start",_]])):H=e.push("bullet_list_open","ul",1),H.map=m=[L,0],H.markup=String.fromCharCode(y),V=!1,$=e.md.block.ruler.getRules("list"),k=e.parentType,e.parentType="list";L<o;){for(T=A,C=e.eMarks[L],d=v=e.sCount[L]+A-(e.bMarks[L]+e.tShift[L]);T<C;){if(s=e.src.charCodeAt(T),s===9)v+=4-(v+e.bsCount[L])%4;else if(s===32)v++;else break;T++}if(a=T,a>=C?u=1:u=v-d,u>4&&(u=1),c=d+u,H=e.push("list_item_open","li",1),H.markup=String.fromCharCode(y),H.map=p=[L,0],f&&(H.info=e.src.slice(I,A-1)),S=e.tight,E=e.tShift[L],b=e.sCount[L],w=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[L]=a-e.bMarks[L],e.sCount[L]=v,a>=C&&e.isEmpty(L+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,L,o,!0),(!e.tight||V)&&(O=!1),V=e.line-L>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[L]=E,e.sCount[L]=b,e.tight=S,H=e.push("list_item_close","li",-1),H.markup=String.fromCharCode(y),L=e.line,p[1]=L,L>=o||e.sCount[L]<e.blkIndent||e.sCount[L]-e.blkIndent>=4)break;for(U=!1,l=0,h=$.length;l<h;l++)if($[l](e,L,o,!0)){U=!0;break}if(U)break;if(f){if(A=Kd(e,L),A<0)break;I=e.bMarks[L]+e.tShift[L]}else if(A=Zd(e,L),A<0)break;if(y!==e.src.charCodeAt(A-1))break}return f?H=e.push("ordered_list_close","ol",-1):H=e.push("bullet_list_close","ul",-1),H.markup=String.fromCharCode(y),m[1]=L,e.line=L,e.parentType=k,O&&die(e,g),!0},pie=ke.normalizeReference,As=ke.isSpace,hie=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,y,_,C,v,w,k=0,b=e.bMarks[n]+e.tShift[n],E=e.eMarks[n],S=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(b)!==91)return!1;for(;++b<E;)if(e.src.charCodeAt(b)===93&&e.src.charCodeAt(b-1)!==92){if(b+1===E||e.src.charCodeAt(b+1)!==58)return!1;break}for(c=e.lineMax,v=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";S<c&&!e.isEmpty(S);S++)if(!(e.sCount[S]-e.blkIndent>3)&&!(e.sCount[S]<0)){for(C=!1,d=0,f=v.length;d<f;d++)if(v[d](e,S,c,!0)){C=!0;break}if(C)break}for(_=e.getLines(n,S,e.blkIndent,!1).trim(),E=_.length,b=1;b<E;b++){if(s=_.charCodeAt(b),s===91)return!1;if(s===93){h=b;break}else s===10?k++:s===92&&(b++,b<E&&_.charCodeAt(b)===10&&k++)}if(h<0||_.charCodeAt(h+1)!==58)return!1;for(b=h+2;b<E;b++)if(s=_.charCodeAt(b),s===10)k++;else if(!As(s))break;if(g=e.md.helpers.parseLinkDestination(_,b,E),!g.ok||(u=e.md.normalizeLink(g.str),!e.md.validateLink(u)))return!1;for(b=g.pos,k+=g.lines,a=b,l=k,y=b;b<E;b++)if(s=_.charCodeAt(b),s===10)k++;else if(!As(s))break;for(g=e.md.helpers.parseLinkTitle(_,b,E),b<E&&y!==b&&g.ok?(w=g.str,b=g.pos,k+=g.lines):(w="",b=a,k=l);b<E&&(s=_.charCodeAt(b),!!As(s));)b++;if(b<E&&_.charCodeAt(b)!==10&&w)for(w="",b=a,k=l;b<E&&(s=_.charCodeAt(b),!!As(s));)b++;return b<E&&_.charCodeAt(b)!==10||(p=pie(_.slice(1,h)),!p)?!1:(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:w,href:u}),e.parentType=m,e.line=n+k+1),!0)},mie=["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"],Fa={},gie="[a-zA-Z_:][a-zA-Z0-9:._-]*",vie="[^\"'=<>`\\x00-\\x20]+",yie="'[^']*'",_ie='"[^"]*"',Cie="(?:"+vie+"|"+yie+"|"+_ie+")",bie="(?:\\s+"+gie+"(?:\\s*=\\s*"+Cie+")?)",Jp="<[A-Za-z][A-Za-z0-9\\-]*"+bie+"*\\s*\\/?>",Xp="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",kie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",wie="<[?][\\s\\S]*?[?]>",Eie="<![A-Z]+\\s+[^>]*>",xie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Sie=new RegExp("^(?:"+Jp+"|"+Xp+"|"+kie+"|"+wie+"|"+Eie+"|"+xie+")"),Tie=new RegExp("^(?:"+Jp+"|"+Xp+")");Fa.HTML_TAG_RE=Sie;Fa.HTML_OPEN_CLOSE_TAG_RE=Tie;var Aie=mie,Nie=Fa.HTML_OPEN_CLOSE_TAG_RE,ur=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Aie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Nie.source+"\\s*$"),/^$/,!1]],Die=function(e,n,o,r){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<ur.length&&!ur[s][0].test(c);s++);if(s===ur.length)return!1;if(r)return ur[s][2];if(a=n+1,!ur[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),ur[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},Gd=ke.isSpace,Mie=function(e,n,o,r){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&&!Gd(s)?!1:(r||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&Gd(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)},Bie=function(e,n,o){var r,s,a,l,c,u,d,f,p,h=n+1,m,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(m=e.parentType,e.parentType="paragraph";h<o&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(u=e.bMarks[h]+e.tShift[h],d=e.eMarks[h],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[h]<0)){for(s=!1,a=0,l=g.length;a<l;a++)if(g[a](e,h,o,!0)){s=!0;break}if(s)break}}return f?(r=e.getLines(n,h,e.blkIndent,!1).trim(),e.line=h+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=r,c.map=[n,e.line-1],c.children=[],c=e.push("heading_close","h"+String(f),-1),c.markup=String.fromCharCode(p),e.parentType=m,!0):!1},$ie=function(e,n,o){var r,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 r=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=r,c.map=[n,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=u,!0},Qp=nu,Ra=ke.isSpace;function bn(t,e,n,o){var r,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(r=s.charCodeAt(l),!f)if(Ra(r)){u++,r===9?d+=4-d%4:d++;continue}else f=!0;(r===10||l===c-1)&&(r!==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}bn.prototype.push=function(t,e,n){var o=new Qp(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};bn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};bn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};bn.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!Ra(n));e++);return e};bn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Ra(this.src.charCodeAt(--e)))return e+1;return e};bn.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};bn.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};bn.prototype.getLines=function(e,n,o,r){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||r?u=this.eMarks[p]+1:u=this.eMarks[p];c<u&&a<o;){if(l=this.src.charCodeAt(c),Ra(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("")};bn.prototype.Token=Qp;var Oie=bn,Lie=tu,Ns=[["table",rie,["paragraph","reference"]],["code",iie],["fence",sie,["paragraph","reference","blockquote","list"]],["blockquote",lie,["paragraph","reference","blockquote","list"]],["hr",uie,["paragraph","reference","blockquote","list"]],["list",fie,["paragraph","reference","blockquote"]],["reference",hie],["html_block",Die,["paragraph","reference","blockquote"]],["heading",Mie,["paragraph","reference","blockquote"]],["lheading",Bie],["paragraph",$ie]];function Va(){this.ruler=new Lie;for(var t=0;t<Ns.length;t++)this.ruler.push(Ns[t][0],Ns[t][1],{alt:(Ns[t][2]||[]).slice()})}Va.prototype.tokenize=function(t,e,n){for(var o,r,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,r=0;r<l;r++)if(o=a[r](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)}};Va.prototype.parse=function(t,e,n,o){var r;t&&(r=new this.State(t,e,n,o),this.tokenize(r,r.line,r.lineMax))};Va.prototype.State=Oie;var Iie=Va;function Pie(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 Fie=function(e,n){for(var o=e.pos;o<e.posMax&&!Pie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},Rie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Vie=function(e,n){var o,r,s,a,l,c,u,d;return!e.md.options.linkify||e.linkLevel>0||(o=e.pos,r=e.posMax,o+3>r)||e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==47||e.src.charCodeAt(o+2)!==47||(s=e.pending.match(Rie),!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)},zie=ke.isSpace,Uie=function(e,n){var o,r,s,a=e.pos;if(e.src.charCodeAt(a)!==10)return!1;if(o=e.pending.length-1,r=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<r&&zie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},qie=ke.isSpace,ru=[];for(var Yd=0;Yd<256;Yd++)ru.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){ru[t.charCodeAt(0)]=1});var Hie=function(e,n){var o,r,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),!!qie(o));)c++;return e.pos=c,!0}return a=e.src[c],o>=55296&&o<=56319&&c+1<u&&(r=e.src.charCodeAt(c+1),r>=56320&&r<=57343&&(a+=e.src[c+1],c++)),s="\\"+a,n||(l=e.push("text_special","",0),o<256&&ru[o]!==0?l.content=a:l.content=s,l.markup=s,l.info="escape"),e.pos=c+1,!0},jie=function(e,n){var o,r,s,a,l,c,u,d,f=e.pos,p=e.src.charCodeAt(f);if(p!==96)return!1;for(o=f,f++,r=e.posMax;f<r&&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<r&&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,r,s,a,l,c=e.pos,u=e.src.charCodeAt(c);if(n||u!==126||(r=e.scanDelims(e.pos,!0),a=r.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:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function Jd(t,e){var n,o,r,s,a,l=[],c=e.length;for(n=0;n<c;n++)r=e[n],r.marker===126&&r.end!==-1&&(s=e[r.end],a=t.tokens[r.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,r=e.tokens_meta.length;for(Jd(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&Jd(e,o[n].delimiters)};var Ua={};Ua.tokenize=function(e,n){var o,r,s,a=e.pos,l=e.src.charCodeAt(a);if(n||l!==95&&l!==42)return!1;for(r=e.scanDelims(e.pos,l===42),o=0;o<r.length;o++)s=e.push("text","",0),s.content=String.fromCharCode(l),e.delimiters.push({marker:l,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function Xd(t,e){var n,o,r,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&&(r=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===r.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[r.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--))}Ua.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(Xd(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&Xd(e,o[n].delimiters)};var Wie=ke.normalizeReference,wl=ke.isSpace,Zie=function(e,n){var o,r,s,a,l,c,u,d,f,p="",h="",m=e.pos,g=e.posMax,y=e.pos,_=!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(_=!1,c++;c<g&&(r=e.src.charCodeAt(c),!(!wl(r)&&r!==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&&(r=e.src.charCodeAt(c),!(!wl(r)&&r!==10));c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<g&&y!==c&&u.ok)for(h=u.str,c=u.pos;c<g&&(r=e.src.charCodeAt(c),!(!wl(r)&&r!==10));c++);}(c>=g||e.src.charCodeAt(c)!==41)&&(_=!0),c++}if(_){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[Wie(s)],!d)return e.pos=m,!1;p=d.href,h=d.title}return n||(e.pos=l,e.posMax=a,f=e.push("link_open","a",1),f.attrs=o=[["href",p]],h&&o.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,f=e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0},Kie=ke.normalizeReference,El=ke.isSpace,Gie=function(e,n){var o,r,s,a,l,c,u,d,f,p,h,m,g,y="",_=e.pos,C=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<C&&e.src.charCodeAt(u)===40){for(u++;u<C&&(r=e.src.charCodeAt(u),!(!El(r)&&r!==10));u++);if(u>=C)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<C&&(r=e.src.charCodeAt(u),!(!El(r)&&r!==10));u++);if(f=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<C&&g!==u&&f.ok)for(p=f.str,u=f.pos;u<C&&(r=e.src.charCodeAt(u),!(!El(r)&&r!==10));u++);else p="";if(u>=C||e.src.charCodeAt(u)!==41)return e.pos=_,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<C&&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[Kie(a)],!d)return e.pos=_,!1;y=d.href,p=d.title}return n||(s=e.src.slice(c,l),e.md.inline.parse(s,e.md,e.env,m=[]),h=e.push("image","img",0),h.attrs=o=[["src",y],["alt",""]],h.children=m,h.content=s,p&&o.push(["title",p])),e.pos=u,e.posMax=C,!0},Yie=/^([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])?)*)$/,Jie=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Xie=function(e,n){var o,r,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),Jie.test(o)?(r=e.md.normalizeLink(o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],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):Yie.test(o)?(r=e.md.normalizeLink("mailto:"+o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],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},Qie=Fa.HTML_TAG_RE;function ese(t){return/^<a[>\s]/i.test(t)}function tse(t){return/^<\/a\s*>/i.test(t)}function nse(t){var e=t|32;return e>=97&&e<=122}var ose=function(e,n){var o,r,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&&!nse(o))||(r=e.src.slice(l).match(Qie),!r)?!1:(n||(a=e.push("html_inline","",0),a.content=r[0],ese(a.content)&&e.linkLevel++,tse(a.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},Qd=Hp,rse=ke.has,ise=ke.isValidEntityCode,e1=ke.fromCodePoint,sse=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ase=/^&([a-z][a-z0-9]{1,31});/i,lse=function(e,n){var o,r,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(sse),s)return n||(r=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),a=e.push("text_special","",0),a.content=ise(r)?e1(r):e1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(ase),s&&rse(Qd,s[1]))return n||(a=e.push("text_special","",0),a.content=Qd[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function t1(t){var e,n,o,r,s,a,l,c,u={},d=t.length;if(d){var f=0,p=-2,h=[];for(e=0;e<d;e++)if(o=t[e],h.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-h[f]-1,a=n;n>s;n-=h[n]+1)if(r=t[n],r.marker===o.marker&&r.open&&r.end<0&&(l=!1,(r.close||o.open)&&(r.length+o.length)%3===0&&(r.length%3!==0||o.length%3!==0)&&(l=!0),!l)){c=n>0&&!t[n-1].open?h[n-1]+1:0,h[e]=e-n+c,h[n]=c,o.open=!1,r.end=e,r.close=!1,a=-1,p=-2;break}a!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var cse=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(t1(e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&t1(o[n].delimiters)},use=function(e){var n,o,r=0,s=e.tokens,a=e.tokens.length;for(n=o=0;n<a;n++)s[n].nesting<0&&r--,s[n].level=r,s[n].nesting>0&&r++,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)},iu=nu,n1=ke.isWhiteSpace,o1=ke.isPunctChar,r1=ke.isMdAsciiPunct;function ns(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}ns.prototype.pushPending=function(){var t=new iu("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};ns.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new iu(t,e,n),r=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=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o};ns.prototype.scanDelims=function(t,e){var n=t,o,r,s,a,l,c,u,d,f,p=!0,h=!0,m=this.posMax,g=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<m&&this.src.charCodeAt(n)===g;)n++;return s=n-t,r=n<m?this.src.charCodeAt(n):32,u=r1(o)||o1(String.fromCharCode(o)),f=r1(r)||o1(String.fromCharCode(r)),c=n1(o),d=n1(r),d?p=!1:f&&(c||u||(p=!1)),c?h=!1:u&&(d||f||(h=!1)),e?(a=p,l=h):(a=p&&(!h||u),l=h&&(!p||f)),{can_open:a,can_close:l,length:s}};ns.prototype.Token=iu;var dse=ns,i1=tu,xl=[["text",Fie],["linkify",Vie],["newline",Uie],["escape",Hie],["backticks",jie],["strikethrough",za.tokenize],["emphasis",Ua.tokenize],["link",Zie],["image",Gie],["autolink",Xie],["html_inline",ose],["entity",lse]],Sl=[["balance_pairs",cse],["strikethrough",za.postProcess],["emphasis",Ua.postProcess],["fragments_join",use]];function os(){var t;for(this.ruler=new i1,t=0;t<xl.length;t++)this.ruler.push(xl[t][0],xl[t][1]);for(this.ruler2=new i1,t=0;t<Sl.length;t++)this.ruler2.push(Sl[t][0],Sl[t][1])}os.prototype.skipToken=function(t){var e,n,o=t.pos,r=this.ruler.getRules(""),s=r.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=r[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};os.prototype.tokenize=function(t){for(var e,n,o,r=this.ruler.getRules(""),s=r.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=r[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()};os.prototype.parse=function(t,e,n,o){var r,s,a,l=new this.State(t,e,n,o);for(this.tokenize(l),s=this.ruler2.getRules(""),a=s.length,r=0;r<a;r++)s[r](l)};os.prototype.State=dse;var fse=os,Tl,s1;function pse(){return s1||(s1=1,Tl=function(t){var e={};t=t||{},e.src_Any=jp().source,e.src_Cc=Wp().source,e.src_Z=Zp().source,e.src_P=eu.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}),Tl}function oc(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 qa(t){return Object.prototype.toString.call(t)}function hse(t){return qa(t)==="[object String]"}function mse(t){return qa(t)==="[object Object]"}function gse(t){return qa(t)==="[object RegExp]"}function a1(t){return qa(t)==="[object Function]"}function vse(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var eh={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function yse(t){return Object.keys(t||{}).reduce(function(e,n){return e||eh.hasOwnProperty(n)},!1)}var _se={"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}}},Cse="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]",bse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function kse(t){t.__index__=-1,t.__text_cache__=""}function wse(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function l1(){return function(t,e){e.normalize(t)}}function ta(t){var e=t.re=pse()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Cse),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 r=[];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,mse(c)){gse(c.validate)?u.validate=wse(c.validate):a1(c.validate)?u.validate=c.validate:s(l,c),a1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=l1();return}if(hse(c)){r.push(l);return}s(l,c)}}),r.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:l1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(vse).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"),kse(t)}function Ese(t,e){var n=t.__index__,o=t.__last_index__,r=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=r,this.text=r,this.url=r}function rc(t,e){var n=new Ese(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Ot(t,e){if(!(this instanceof Ot))return new Ot(t,e);e||yse(t)&&(e=t,t={}),this.__opts__=oc({},eh,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=oc({},_se,t),this.__compiled__={},this.__tlds__=bse,this.__tlds_replaced__=!1,this.re={},ta(this)}Ot.prototype.add=function(e,n){return this.__schemas__[e]=n,ta(this),this};Ot.prototype.set=function(e){return this.__opts__=oc(this.__opts__,e),this};Ot.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,r,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&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,l=r.index+r[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};Ot.prototype.pretest=function(e){return this.re.pretest.test(e)};Ot.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};Ot.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(rc(this,n)),n=this.__last_index__);for(var r=n?e.slice(n):e;this.test(r);)o.push(rc(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};Ot.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,rc(this,0)):null};Ot.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,r,s){return o!==s[r-1]}).reverse(),ta(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ta(this),this)};Ot.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Ot.prototype.onCompile=function(){};var xse=Ot;const kr=2147483647,pn=36,su=1,Ri=26,Sse=38,Tse=700,th=72,nh=128,oh="-",Ase=/^xn--/,Nse=/[^\0-\x7F]/,Dse=/[\x2E\u3002\uFF0E\uFF61]/g,Mse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Al=pn-su,hn=Math.floor,Nl=String.fromCharCode;function Qn(t){throw new RangeError(Mse[t])}function Bse(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function rh(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(Dse,".");const r=t.split("."),s=Bse(r,e).join(".");return o+s}function au(t){const e=[];let n=0;const o=t.length;for(;n<o;){const r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<o){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),n--)}else e.push(r)}return e}const ih=t=>String.fromCodePoint(...t),$se=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:pn},c1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},sh=function(t,e,n){let o=0;for(t=n?hn(t/Tse):t>>1,t+=hn(t/e);t>Al*Ri>>1;o+=pn)t=hn(t/Al);return hn(o+(Al+1)*t/(t+Sse))},lu=function(t){const e=[],n=t.length;let o=0,r=nh,s=th,a=t.lastIndexOf(oh);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&Qn("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=pn;;f+=pn){l>=n&&Qn("invalid-input");const p=$se(t.charCodeAt(l++));p>=pn&&Qn("invalid-input"),p>hn((kr-o)/d)&&Qn("overflow"),o+=p*d;const h=f<=s?su:f>=s+Ri?Ri:f-s;if(p<h)break;const m=pn-h;d>hn(kr/m)&&Qn("overflow"),d*=m}const u=e.length+1;s=sh(o-c,u,c==0),hn(o/u)>kr-r&&Qn("overflow"),r+=hn(o/u),o%=u,e.splice(o++,0,r)}return String.fromCodePoint(...e)},cu=function(t){const e=[];t=au(t);const n=t.length;let o=nh,r=0,s=th;for(const c of t)c<128&&e.push(Nl(c));const a=e.length;let l=a;for(a&&e.push(oh);l<n;){let c=kr;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>hn((kr-r)/u)&&Qn("overflow"),r+=(c-o)*u,o=c;for(const d of t)if(d<o&&++r>kr&&Qn("overflow"),d===o){let f=r;for(let p=pn;;p+=pn){const h=p<=s?su:p>=s+Ri?Ri:p-s;if(f<h)break;const m=f-h,g=pn-h;e.push(Nl(c1(h+m%g,0))),f=hn(m/g)}e.push(Nl(c1(f,0))),s=sh(r,u,l===a),r=0,++l}++r,++o}return e.join("")},ah=function(t){return rh(t,function(e){return Ase.test(e)?lu(e.slice(4).toLowerCase()):e})},lh=function(t){return rh(t,function(e){return Nse.test(e)?"xn--"+cu(e):e})},Ose={version:"2.1.0",ucs2:{decode:au,encode:ih},decode:lu,encode:cu,toASCII:lh,toUnicode:ah},Lse=Object.freeze(Object.defineProperty({__proto__:null,decode:lu,default:Ose,encode:cu,toASCII:lh,toUnicode:ah,ucs2decode:au,ucs2encode:ih},Symbol.toStringTag,{value:"Module"})),Ise=Iy(Lse);var Pse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Fse={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"]}}},Rse={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"]}}},xi=ke,Vse=Pa,zse=$re,Use=oie,qse=Iie,Hse=fse,jse=xse,Bo=zr,ch=Ise,Wse={default:Pse,zero:Fse,commonmark:Rse},Zse=/^(vbscript|javascript|file|data):/,Kse=/^data:image\/(gif|png|jpeg|webp);/;function Gse(t){var e=t.trim().toLowerCase();return Zse.test(e)?!!Kse.test(e):!0}var uh=["http:","https:","mailto:"];function Yse(t){var e=Bo.parse(t,!0);if(e.hostname&&(!e.protocol||uh.indexOf(e.protocol)>=0))try{e.hostname=ch.toASCII(e.hostname)}catch{}return Bo.encode(Bo.format(e))}function Jse(t){var e=Bo.parse(t,!0);if(e.hostname&&(!e.protocol||uh.indexOf(e.protocol)>=0))try{e.hostname=ch.toUnicode(e.hostname)}catch{}return Bo.decode(Bo.format(e),Bo.decode.defaultChars+"%")}function Ut(t,e){if(!(this instanceof Ut))return new Ut(t,e);e||xi.isString(t)||(e=t||{},t="default"),this.inline=new Hse,this.block=new qse,this.core=new Use,this.renderer=new zse,this.linkify=new jse,this.validateLink=Gse,this.normalizeLink=Yse,this.normalizeLinkText=Jse,this.utils=xi,this.helpers=xi.assign({},Vse),this.options={},this.configure(t),e&&this.set(e)}Ut.prototype.set=function(t){return xi.assign(this.options,t),this};Ut.prototype.configure=function(t){var e=this,n;if(xi.isString(t)&&(n=t,t=Wse[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};Ut.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};Ut.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};Ut.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Ut.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};Ut.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Ut.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};Ut.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Xse=Ut,Qse=Xse;const eae=Ly(Qse);/*! @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 u1(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 tae(t){if(Array.isArray(t))return t}function nae(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,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,r=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}function oae(){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 rae(t,e){return tae(t)||nae(t,e)||iae(t,e)||oae()}function iae(t,e){if(t){if(typeof t=="string")return u1(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)?u1(t,e):void 0}}const dh=Object.entries,d1=Object.setPrototypeOf,sae=Object.isFrozen,aae=Object.getPrototypeOf,lae=Object.getOwnPropertyDescriptor;let Qe=Object.freeze,tt=Object.seal,gr=Object.create,fh=typeof Reflect<"u"&&Reflect,ic=fh.apply,sc=fh.construct;Qe||(Qe=function(e){return e});tt||(tt=function(e){return e});ic||(ic=function(e,n){for(var o=arguments.length,r=new Array(o>2?o-2:0),s=2;s<o;s++)r[s-2]=arguments[s];return e.apply(n,r)});sc||(sc=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return new e(...o)});const dr=Ve(Array.prototype.forEach),cae=Ve(Array.prototype.lastIndexOf),f1=Ve(Array.prototype.pop),fr=Ve(Array.prototype.push),uae=Ve(Array.prototype.splice),to=Array.isArray,Ci=Ve(String.prototype.toLowerCase),Dl=Ve(String.prototype.toString),p1=Ve(String.prototype.match),pi=Ve(String.prototype.replace),h1=Ve(String.prototype.indexOf),dae=Ve(String.prototype.trim),fae=Ve(Number.prototype.toString),pae=Ve(Boolean.prototype.toString),m1=typeof BigInt>"u"?null:Ve(BigInt.prototype.toString),g1=typeof Symbol>"u"?null:Ve(Symbol.prototype.toString),Ke=Ve(Object.prototype.hasOwnProperty),hi=Ve(Object.prototype.toString),Ze=Ve(RegExp.prototype.test),xo=hae(TypeError);function Ve(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return ic(t,e,o)}}function hae(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return sc(t,n)}}function ve(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ci;if(d1&&d1(t,null),!to(e))return t;let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const s=n(r);s!==r&&(sae(e)||(e[o]=s),r=s)}t[r]=!0}return t}function mae(t){for(let e=0;e<t.length;e++)Ke(t,e)||(t[e]=null);return t}function ot(t){const e=gr(null);for(const o of dh(t)){var n=rae(o,2);const r=n[0],s=n[1];Ke(t,r)&&(to(s)?e[r]=mae(s):s&&typeof s=="object"&&s.constructor===Object?e[r]=ot(s):e[r]=s)}return e}function gae(t){switch(typeof t){case"string":return t;case"number":return fae(t);case"boolean":return pae(t);case"bigint":return m1?m1(t):"0";case"symbol":return g1?g1(t):"Symbol()";case"undefined":return hi(t);case"function":case"object":{if(t===null)return hi(t);const e=t,n=Kt(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:hi(o)}return hi(t)}default:return hi(t)}}function Kt(t,e){for(;t!==null;){const o=lae(t,e);if(o){if(o.get)return Ve(o.get);if(typeof o.value=="function")return Ve(o.value)}t=aae(t)}function n(){return null}return n}function vae(t){try{return Ze(t,""),!0}catch{return!1}}const v1=Qe(["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"]),Ml=Qe(["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"]),Bl=Qe(["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"]),yae=Qe(["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"]),$l=Qe(["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"]),_ae=Qe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),y1=Qe(["#text"]),_1=Qe(["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"]),Ol=Qe(["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"]),C1=Qe(["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"]),Ds=Qe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Cae=tt(/{{[\w\W]*|^[\w\W]*}}/g),bae=tt(/<%[\w\W]*|^[\w\W]*%>/g),kae=tt(/\${[\w\W]*/g),wae=tt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Eae=tt(/^aria-[\-\w]+$/),b1=tt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xae=tt(/^(?:\w+script|data):/i),Sae=tt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Tae=tt(/^html$/i),Aae=tt(/^[a-z][.\w]*(-[.\w]+)+$/i),k1=tt(/<[/\w!]/g),w1=tt(/<[/\w]/g),Nae=tt(/<\/no(script|embed|frames)/i),Dae=tt(/\/>/i),Tt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Mae=function(){return typeof window>"u"?null:window},Bae=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(o=n.getAttribute(r));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}},E1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Xn=function(e,n,o,r){return Ke(e,n)&&to(e[n])?ve(r.base?ot(r.base):{},e[n],r.transform):o};function ph(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mae();const e=J=>ph(J);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==Tt.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const o=n,r=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,h=Kt(p,"cloneNode"),m=Kt(p,"remove"),g=Kt(p,"nextSibling"),y=Kt(p,"childNodes"),_=Kt(p,"parentNode"),C=Kt(p,"shadowRoot"),v=Kt(p,"attributes"),w=a&&a.prototype?Kt(a.prototype,"nodeType"):null,k=a&&a.prototype?Kt(a.prototype,"nodeName"):null,b=a&&a.prototype?Kt(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const J=n.createElement("template");J.content&&J.content.ownerDocument&&(n=J.content.ownerDocument)}let E,S="",T,A=!1,V=0;const I=function(){if(V>0)throw xo('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.')},U=function(x){I(),V++;try{return E.createHTML(x)}finally{V--}},$=function(x){I(),V++;try{return E.createScriptURL(x)}finally{V--}},H=function(){return A||(T=Bae(f,r),A=!0),T},L=n,ee=L.implementation,O=L.createNodeIterator,D=L.createDocumentFragment,K=L.getElementsByTagName,P=o.importNode;let q=E1();e.isSupported=typeof dh=="function"&&typeof _=="function"&&ee&&ee.createHTMLDocument!==void 0;const ce=Cae,Q=bae,ie=kae,R=wae,te=Eae,B=xae,G=Sae,ge=Aae;let qe=b1,de=null;const _e=ve({},[...v1,...Ml,...Bl,...$l,...y1]);let we=null;const ut=ve({},[..._1,...Ol,...C1,...Ds]);let Ne=Object.seal(gr(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}})),dt=null,Ct=null;const Pe=Object.seal(gr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ft=!0,bt=!0,jn=!1,Co=!0,Fe=!1,pt=!0,nt=!1,Ht=!1,kn=null,Wn=null,bo=!1,Zn=!1,or=!1,rr=!1,wn=!0,an=!1;const ps="user-content-";let Yr=!0,jt=!1,kt={},wt=null;const ir=ve({},["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 hs=null;const Jr=ve({},["audio","video","img","source","image","track"]);let Et=null;const sr=ve({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Kn="http://www.w3.org/1998/Math/MathML",ar="http://www.w3.org/2000/svg",xt="http://www.w3.org/1999/xhtml";let Gn=xt,ko=!1,Xr=null;const al=ve({},[Kn,ar,xt],Dl),ms=Qe(["mi","mo","mn","ms","mtext"]);let St=ve({},ms);const gs=Qe(["annotation-xml"]);let Qr=ve({},gs);const ll=ve({},["title","style","font","a","script"]);let wo=null;const ei=["application/xhtml+xml","text/html"],ti="text/html";let Se=null,Wt=null;const ni=n.createElement("form"),vs=function(x){return x instanceof RegExp||x instanceof Function},Yn=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Wt&&Wt===x)return;(!x||typeof x!="object")&&(x={}),x=ot(x),wo=ei.indexOf(x.PARSER_MEDIA_TYPE)===-1?ti:x.PARSER_MEDIA_TYPE,Se=wo==="application/xhtml+xml"?Dl:Ci,de=Xn(x,"ALLOWED_TAGS",_e,{transform:Se}),we=Xn(x,"ALLOWED_ATTR",ut,{transform:Se}),Xr=Xn(x,"ALLOWED_NAMESPACES",al,{transform:Dl}),Et=Xn(x,"ADD_URI_SAFE_ATTR",sr,{transform:Se,base:sr}),hs=Xn(x,"ADD_DATA_URI_TAGS",Jr,{transform:Se,base:Jr}),wt=Xn(x,"FORBID_CONTENTS",ir,{transform:Se}),dt=Xn(x,"FORBID_TAGS",ot({}),{transform:Se}),Ct=Xn(x,"FORBID_ATTR",ot({}),{transform:Se}),kt=Ke(x,"USE_PROFILES")?x.USE_PROFILES&&typeof x.USE_PROFILES=="object"?ot(x.USE_PROFILES):x.USE_PROFILES:!1,ft=x.ALLOW_ARIA_ATTR!==!1,bt=x.ALLOW_DATA_ATTR!==!1,jn=x.ALLOW_UNKNOWN_PROTOCOLS||!1,Co=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Fe=x.SAFE_FOR_TEMPLATES||!1,pt=x.SAFE_FOR_XML!==!1,nt=x.WHOLE_DOCUMENT||!1,Zn=x.RETURN_DOM||!1,or=x.RETURN_DOM_FRAGMENT||!1,rr=x.RETURN_TRUSTED_TYPE||!1,bo=x.FORCE_BODY||!1,wn=x.SANITIZE_DOM!==!1,an=x.SANITIZE_NAMED_PROPS||!1,Yr=x.KEEP_CONTENT!==!1,jt=x.IN_PLACE||!1,qe=vae(x.ALLOWED_URI_REGEXP)?x.ALLOWED_URI_REGEXP:b1,Gn=typeof x.NAMESPACE=="string"?x.NAMESPACE:xt,St=Ke(x,"MATHML_TEXT_INTEGRATION_POINTS")&&x.MATHML_TEXT_INTEGRATION_POINTS&&typeof x.MATHML_TEXT_INTEGRATION_POINTS=="object"?ot(x.MATHML_TEXT_INTEGRATION_POINTS):ve({},ms),Qr=Ke(x,"HTML_INTEGRATION_POINTS")&&x.HTML_INTEGRATION_POINTS&&typeof x.HTML_INTEGRATION_POINTS=="object"?ot(x.HTML_INTEGRATION_POINTS):ve({},gs);const M=Ke(x,"CUSTOM_ELEMENT_HANDLING")&&x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING=="object"?ot(x.CUSTOM_ELEMENT_HANDLING):gr(null);if(Ne=gr(null),Ke(M,"tagNameCheck")&&vs(M.tagNameCheck)&&(Ne.tagNameCheck=M.tagNameCheck),Ke(M,"attributeNameCheck")&&vs(M.attributeNameCheck)&&(Ne.attributeNameCheck=M.attributeNameCheck),Ke(M,"allowCustomizedBuiltInElements")&&typeof M.allowCustomizedBuiltInElements=="boolean"&&(Ne.allowCustomizedBuiltInElements=M.allowCustomizedBuiltInElements),tt(Ne),Fe&&(bt=!1),or&&(Zn=!0),kt&&(de=ve({},y1),we=gr(null),kt.html===!0&&(ve(de,v1),ve(we,_1)),kt.svg===!0&&(ve(de,Ml),ve(we,Ol),ve(we,Ds)),kt.svgFilters===!0&&(ve(de,Bl),ve(we,Ol),ve(we,Ds)),kt.mathMl===!0&&(ve(de,$l),ve(we,C1),ve(we,Ds))),Pe.tagCheck=null,Pe.attributeCheck=null,Ke(x,"ADD_TAGS")&&(typeof x.ADD_TAGS=="function"?Pe.tagCheck=x.ADD_TAGS:to(x.ADD_TAGS)&&(de===_e&&(de=ot(de)),ve(de,x.ADD_TAGS,Se))),Ke(x,"ADD_ATTR")&&(typeof x.ADD_ATTR=="function"?Pe.attributeCheck=x.ADD_ATTR:to(x.ADD_ATTR)&&(we===ut&&(we=ot(we)),ve(we,x.ADD_ATTR,Se))),Ke(x,"ADD_URI_SAFE_ATTR")&&to(x.ADD_URI_SAFE_ATTR)&&ve(Et,x.ADD_URI_SAFE_ATTR,Se),Ke(x,"FORBID_CONTENTS")&&to(x.FORBID_CONTENTS)&&(wt===ir&&(wt=ot(wt)),ve(wt,x.FORBID_CONTENTS,Se)),Ke(x,"ADD_FORBID_CONTENTS")&&to(x.ADD_FORBID_CONTENTS)&&(wt===ir&&(wt=ot(wt)),ve(wt,x.ADD_FORBID_CONTENTS,Se)),Yr&&(de["#text"]=!0),nt&&ve(de,["html","head","body"]),de.table&&(ve(de,["tbody"]),delete dt.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw xo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw xo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const j=E;E=x.TRUSTED_TYPES_POLICY;try{S=U("")}catch(se){throw E=j,se}}else x.TRUSTED_TYPES_POLICY===null?(E=void 0,S=""):(E===void 0&&(E=H()),E&&typeof S=="string"&&(S=U("")));Qe&&Qe(x),Wt=x},oi=ve({},[...Ml,...Bl,...yae]),N=ve({},[...$l,..._ae]),Y=function(x,M,j){return M.namespaceURI===xt?x==="svg":M.namespaceURI===Kn?x==="svg"&&(j==="annotation-xml"||St[j]):!!oi[x]},me=function(x,M,j){return M.namespaceURI===xt?x==="math":M.namespaceURI===ar?x==="math"&&Qr[j]:!!N[x]},De=function(x,M,j){return M.namespaceURI===ar&&!Qr[j]||M.namespaceURI===Kn&&!St[j]?!1:!N[x]&&(ll[x]||!oi[x])},En=function(x){let M=_(x);(!M||!M.tagName)&&(M={namespaceURI:Gn,tagName:"template"});const j=Ci(x.tagName),se=Ci(M.tagName);return Xr[x.namespaceURI]?x.namespaceURI===ar?Y(j,M,se):x.namespaceURI===Kn?me(j,M,se):x.namespaceURI===xt?De(j,M,se):!!(wo==="application/xhtml+xml"&&Xr[x.namespaceURI]):!1},Zt=function(x){fr(e.removed,{element:x});try{_(x).removeChild(x)}catch{if(m(x),!_(x))throw xo("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ri=function(x){ii(x);const M=y(x);if(M){const se=[];dr(M,ae=>{fr(se,ae)}),dr(se,ae=>{try{m(ae)}catch{}})}const j=v(x);if(j)for(let se=j.length-1;se>=0;--se){const ae=j[se],pe=ae&&ae.name;if(typeof pe=="string")try{x.removeAttribute(pe)}catch{}}},xn=function(x,M){try{fr(e.removed,{attribute:M.getAttributeNode(x),from:M})}catch{fr(e.removed,{attribute:null,from:M})}if(M.removeAttribute(x),x==="is")if(Zn||or)try{Zt(M)}catch{}else try{M.setAttribute(x,"")}catch{}},ys=function(x){const M=v(x);if(M)for(let j=M.length-1;j>=0;--j){const se=M[j],ae=se&&se.name;if(!(typeof ae!="string"||we[Se(ae)]))try{x.removeAttribute(ae)}catch{}}},ii=function(x){const M=[x];for(;M.length>0;){const j=M.pop();(w?w(j):j.nodeType)===Tt.element&&ys(j);const ae=y(j);if(ae)for(let pe=ae.length-1;pe>=0;--pe)M.push(ae[pe])}},Sg=function(x){if(!pt)return;const M=[x];for(;M.length>0;){const j=M.pop(),se=w?w(j):j.nodeType;if(se===Tt.processingInstruction||se===Tt.comment&&Ze(w1,j.data)){try{m(j)}catch{}continue}if(se===Tt.element){const pe=j,Te=Se(k?k(j):j.nodeName);try{pe.hasAttribute&&pe.hasAttribute("patchsrc")&&pe.removeAttribute("patchsrc"),pe.hasAttribute&&pe.hasAttribute("for")&&Te!=="label"&&Te!=="output"&&pe.removeAttribute("for")}catch{}}const ae=y(j);if(ae)for(let pe=ae.length-1;pe>=0;--pe)M.push(ae[pe])}},td=function(x){let M=null,j=null;if(bo)x="<remove></remove>"+x;else{const pe=p1(x,/^[\r\n\t ]+/);j=pe&&pe[0]}wo==="application/xhtml+xml"&&Gn===xt&&(x='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+x+"</body></html>");const se=E?U(x):x;if(Gn===xt)try{M=new d().parseFromString(se,wo)}catch{}if(!M||!M.documentElement){M=ee.createDocument(Gn,"template",null);try{M.documentElement.innerHTML=ko?S:se}catch{}}const ae=M.body||M.documentElement;return x&&j&&ae.insertBefore(n.createTextNode(j),ae.childNodes[0]||null),Gn===xt?K.call(M,nt?"html":"body")[0]:nt?M.documentElement:ae},nd=function(x){const M=b?b(x):x.ownerDocument;return O.call(M||x,x,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},_s=function(x){return x=pi(x,ce," "),x=pi(x,Q," "),x=pi(x,ie," "),x},cl=function(x){var M;x.normalize();const j=b?b(x):x.ownerDocument,se=O.call(j||x,x,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ae=se.nextNode();for(;ae;)ae.data=_s(ae.data),ae=se.nextNode();const pe=(M=x.querySelectorAll)===null||M===void 0?void 0:M.call(x,"template");pe&&dr(pe,Te=>{lr(Te.content)&&cl(Te.content)})},Cs=function(x){const M=k?k(x):null;return typeof M!="string"||Se(M)!=="form"?!1:typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||x.attributes!==v(x)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function"||x.nodeType!==w(x)||x.childNodes!==y(x)},lr=function(x){if(!w||typeof x!="object"||x===null)return!1;try{return w(x)===Tt.documentFragment}catch{return!1}},si=function(x){if(!w||typeof x!="object"||x===null)return!1;try{return typeof w(x)=="number"}catch{return!1}};function ln(J,x,M){J.length!==0&&dr(J,j=>{j.call(e,x,M,Wt)})}const Tg=function(x,M){return!!(pt&&x.hasChildNodes()&&!si(x.firstElementChild)&&Ze(k1,x.textContent)&&Ze(k1,x.innerHTML)||pt&&x.namespaceURI===xt&&M==="style"&&si(x.firstElementChild)||x.nodeType===Tt.processingInstruction||pt&&x.nodeType===Tt.comment&&Ze(w1,x.data))},Ag=function(x,M,j){if(!dt[M]&&sd(M)&&(Ne.tagNameCheck instanceof RegExp&&Ze(Ne.tagNameCheck,M)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(M)))return!1;if(Yr&&!wt[M]){const se=_(x),ae=y(x);if(ae&&se){const pe=ae.length;for(let Te=pe-1;Te>=0;--Te){const Me=x===j?h(ae[Te],!0):ae[Te];se.insertBefore(Me,g(x))}}}return Zt(x),!0},od=function(x,M,j,se){return x.length===0?M:M===j||M===se?ot(M):M},rd=function(x,M){if(ln(q.beforeSanitizeElements,x,null),x!==M&&_(x)===null)return jt&&ii(x),!0;if(Cs(x))return Zt(x),!0;const j=Se(k?k(x):x.nodeName);if(de=od(q.uponSanitizeElement,de,_e,kn),ln(q.uponSanitizeElement,x,{tagName:j,allowedTags:de}),x!==M&&_(x)===null)return jt&&ii(x),!0;if(Tg(x,j))return Zt(x),!0;if(dt[j]||!(Pe.tagCheck instanceof Function&&Pe.tagCheck(j))&&!de[j]){const ae=Ag(x,j,M);return ae===!1&&ln(q.afterSanitizeElements,x,null),ae}if((w?w(x):x.nodeType)===Tt.element&&!En(x)||(j==="noscript"||j==="noembed"||j==="noframes")&&Ze(Nae,x.innerHTML))return Zt(x),!0;if(Fe&&x.nodeType===Tt.text){const ae=_s(x.textContent);x.textContent!==ae&&(fr(e.removed,{element:x.cloneNode()}),x.textContent=ae)}return ln(q.afterSanitizeElements,x,null),!1},id=function(x,M,j){if(Ct[M]||pt&&M==="patchsrc"||pt&&M==="for"&&x!=="label"&&x!=="output"||wn&&(M==="id"||M==="name")&&(j in n||j in ni))return!1;const se=we[M]||Pe.attributeCheck instanceof Function&&Pe.attributeCheck(M,x);if(!(bt&&Ze(R,M))){if(!(ft&&Ze(te,M))){if(se){if(!Et[M]){if(!Ze(qe,pi(j,G,""))){if(!((M==="src"||M==="xlink:href"||M==="href")&&x!=="script"&&h1(j,"data:")===0&&hs[x])){if(!(jn&&!Ze(B,pi(j,G,"")))){if(j)return!1}}}}}else if(!(sd(x)&&(Ne.tagNameCheck instanceof RegExp&&Ze(Ne.tagNameCheck,x)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(x))&&(Ne.attributeNameCheck instanceof RegExp&&Ze(Ne.attributeNameCheck,M)||Ne.attributeNameCheck instanceof Function&&Ne.attributeNameCheck(M,x))||M==="is"&&Ne.allowCustomizedBuiltInElements&&(Ne.tagNameCheck instanceof RegExp&&Ze(Ne.tagNameCheck,j)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(j))))return!1}}return!0},Ng=ve({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),sd=function(x){return!Ng[Ci(x)]&&Ze(ge,x)},Dg=function(x,M,j,se){if(E&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!j)switch(f.getAttributeType(x,M)){case"TrustedHTML":return U(se);case"TrustedScriptURL":return $(se)}return se},Mg=function(x,M,j,se){try{j?x.setAttributeNS(j,M,se):x.setAttribute(M,se),Cs(x)?Zt(x):f1(e.removed)}catch{xn(M,x)}},ad=function(x){ln(q.beforeSanitizeAttributes,x,null);const M=x.attributes;if(!M||Cs(x))return;we=od(q.uponSanitizeAttribute,we,ut,Wn);const j={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let se=M.length;const ae=Se(x.nodeName);for(;se--;){const pe=M[se],Te=pe.name,Me=pe.namespaceURI,ht=pe.value,mt=Se(Te),dl=ht;let at=Te==="value"?dl:dae(dl);if(j.attrName=mt,j.attrValue=at,j.keepAttr=!0,j.forceKeepAttr=void 0,ln(q.uponSanitizeAttribute,x,j),at=j.attrValue,an&&(mt==="id"||mt==="name")&&h1(at,ps)!==0&&(xn(Te,x),at=ps+at),pt&&Ze(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,at)){xn(Te,x);continue}if(mt==="attributename"&&p1(at,"href")){xn(Te,x);continue}if(!j.forceKeepAttr){if(!j.keepAttr){xn(Te,x);continue}if(!Co&&Ze(Dae,at)){xn(Te,x);continue}if(Fe&&(at=_s(at)),!id(ae,mt,at)){xn(Te,x);continue}at=Dg(ae,mt,Me,at),at!==dl&&Mg(x,Te,Me,at)}}ln(q.afterSanitizeAttributes,x,null)},bs=function(x){let M=null;const j=nd(x);for(ln(q.beforeSanitizeShadowDOM,x,null);M=j.nextNode();)if(ln(q.uponSanitizeShadowNode,M,null),rd(M,x),ad(M),lr(M.content)&&bs(M.content),(w?w(M):M.nodeType)===Tt.element){const ae=C(M);lr(ae)&&(ul(ae),bs(ae))}ln(q.afterSanitizeShadowDOM,x,null)},ul=function(x){const M=[{node:x,shadow:null}];for(;M.length>0;){const j=M.pop();if(j.shadow){bs(j.shadow);continue}const se=j.node,pe=(w?w(se):se.nodeType)===Tt.element,Te=y(se);if(Te)for(let Me=Te.length-1;Me>=0;--Me)M.push({node:Te[Me],shadow:null});if(pe){const Me=k?k(se):null;if(typeof Me=="string"&&Se(Me)==="template"){const ht=se.content;lr(ht)&&M.push({node:ht,shadow:null})}}if(pe){const Me=C(se);lr(Me)&&M.push({node:null,shadow:Me},{node:Me,shadow:null})}}};return e.sanitize=function(J){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=null,j=null,se=null,ae=null;if(ko=!J,ko&&(J="<!-->"),typeof J!="string"&&!si(J)&&(J=gae(J),typeof J!="string"))throw xo("dirty is not a string, aborting");if(!e.isSupported)return J;Ht?(de=kn,we=Wn):Yn(x),(q.uponSanitizeElement.length>0||q.uponSanitizeAttribute.length>0)&&(de=ot(de)),q.uponSanitizeAttribute.length>0&&(we=ot(we)),e.removed=[];const pe=jt&&typeof J!="string"&&si(J);if(pe){Sg(J);const ht=k?k(J):J.nodeName;if(typeof ht=="string"){const mt=Se(ht);if(!de[mt]||dt[mt])throw ri(J),xo("root node is forbidden and cannot be sanitized in-place")}if(Cs(J))throw ri(J),xo("root node is clobbered and cannot be sanitized in-place");try{ul(J)}catch(mt){throw ri(J),mt}}else if(si(J))M=td("<!---->"),j=M.ownerDocument.importNode(J,!0),j.nodeType===Tt.element&&j.nodeName==="BODY"||j.nodeName==="HTML"?M=j:M.appendChild(j),ul(j);else{if(!Zn&&!Fe&&!nt&&J.indexOf("<")===-1)return E&&rr?U(J):J;if(M=td(J),!M)return Zn?null:rr?S:""}M&&bo&&Zt(M.firstChild);const Te=pe?J:M;try{const ht=nd(Te);for(;se=ht.nextNode();)rd(se,Te),ad(se),lr(se.content)&&bs(se.content)}catch(ht){throw pe&&(ri(J),dr(e.removed,mt=>{mt.element&&ii(mt.element)})),ht}if(pe)return dr(e.removed,ht=>{ht.element&&ii(ht.element)}),Fe&&cl(J),J;if(Zn){if(Fe&&cl(M),or)for(ae=D.call(M.ownerDocument);M.firstChild;)ae.appendChild(M.firstChild);else ae=M;return(we.shadowroot||we.shadowrootmode)&&(ae=P.call(o,ae,!0)),ae}let Me=nt?M.outerHTML:M.innerHTML;return nt&&de["!doctype"]&&M.ownerDocument&&M.ownerDocument.doctype&&M.ownerDocument.doctype.name&&Ze(Tae,M.ownerDocument.doctype.name)&&(Me="<!DOCTYPE "+M.ownerDocument.doctype.name+`>
|
|
19
|
-
`+Me),Fe&&(Me=_s(Me)),E&&rr?U(Me):Me},e.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Yn(J),Ht=!0,kn=de,Wn=we},e.clearConfig=function(){Wt=null,Ht=!1,kn=null,Wn=null,E=T,S=""},e.isValidAttribute=function(J,x,M){Wt||Yn({});const j=Se(J),se=Se(x);return id(j,se,M)},e.addHook=function(J,x){typeof x=="function"&&Ke(q,J)&&fr(q[J],x)},e.removeHook=function(J,x){if(Ke(q,J)){if(x!==void 0){const M=
|
|
15
|
+
`);return o};Ur.prototype.render=function(t,e,n){var o,r,s,a="",l=this.rules;for(o=0,r=t.length;o<r;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=Ur;function on(){this.__rules__=[],this.__cache__=null}on.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};on.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))})})};on.prototype.at=function(t,e,n){var o=this.__find__(t),r=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=r.alt||[],this.__cache__=null};on.prototype.before=function(t,e,n,o){var r=this.__find__(t),s=o||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};on.prototype.after=function(t,e,n,o){var r=this.__find__(t),s=o||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};on.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};on.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var r=this.__find__(o);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!0,n.push(o)},this),this.__cache__=null,n};on.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};on.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var r=this.__find__(o);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!1,n.push(o)},this),this.__cache__=null,n};on.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var tu=on,Fre=/\r\n?|\n/g,Rre=/\0/g,Vre=function(e){var n;n=e.src.replace(Fre,`
|
|
16
|
+
`),n=n.replace(Rre,"�"),e.src=n},zre=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)},Ure=function(e){var n=e.tokens,o,r,s;for(r=0,s=n.length;r<s;r++)o=n[r],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},qre=ke.arrayReplaceAt;function Hre(t){return/^<a[>\s]/i.test(t)}function jre(t){return/^<\/a\s*>/i.test(t)}var Wre=function(e){var n,o,r,s,a,l,c,u,d,f,p,h,m,g,y,_,C=e.tokens,v;if(e.md.options.linkify){for(o=0,r=C.length;o<r;o++)if(!(C[o].type!=="inline"||!e.md.linkify.pretest(C[o].content)))for(s=C[o].children,m=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"&&(Hre(l.content)&&m>0&&m--,jre(l.content)&&m++),!(m>0)&&l.type==="text"&&e.md.linkify.test(l.content)){for(d=l.content,v=e.md.linkify.match(d),c=[],h=l.level,p=0,v.length>0&&v[0].index===0&&n>0&&s[n-1].type==="text_special"&&(v=v.slice(1)),u=0;u<v.length;u++)g=v[u].url,y=e.md.normalizeLink(g),e.md.validateLink(y)&&(_=v[u].text,v[u].schema?v[u].schema==="mailto:"&&!/^mailto:/i.test(_)?_=e.md.normalizeLinkText("mailto:"+_).replace(/^mailto:/,""):_=e.md.normalizeLinkText(_):_=e.md.normalizeLinkText("http://"+_).replace(/^http:\/\//,""),f=v[u].index,f>p&&(a=new e.Token("text","",0),a.content=d.slice(p,f),a.level=h,c.push(a)),a=new e.Token("link_open","a",1),a.attrs=[["href",y]],a.level=h++,a.markup="linkify",a.info="auto",c.push(a),a=new e.Token("text","",0),a.content=_,a.level=h,c.push(a),a=new e.Token("link_close","a",-1),a.level=--h,a.markup="linkify",a.info="auto",c.push(a),p=v[u].lastIndex);p<d.length&&(a=new e.Token("text","",0),a.content=d.slice(p),a.level=h,c.push(a)),C[o].children=s=qre(s,n,c)}}}},Kp=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Zre=/\((c|tm|r)\)/i,Kre=/\((c|tm|r)\)/ig,Gre={c:"©",r:"®",tm:"™"};function Yre(t,e){return Gre[e.toLowerCase()]}function Jre(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(Kre,Yre)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function Xre(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&Kp.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 Qre=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(Zre.test(e.tokens[n].content)&&Jre(e.tokens[n].children),Kp.test(e.tokens[n].content)&&Xre(e.tokens[n].children))},zd=ke.isWhiteSpace,Ud=ke.isPunctChar,qd=ke.isMdAsciiPunct,eie=/['"]/,Hd=/['"]/g,jd="’";function Ts(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function tie(t,e){var n,o,r,s,a,l,c,u,d,f,p,h,m,g,y,_,C,v,w,k,b;for(w=[],n=0;n<t.length;n++){for(o=t[n],c=t[n].level,C=w.length-1;C>=0&&!(w[C].level<=c);C--);if(w.length=C+1,o.type==="text"){r=o.content,a=0,l=r.length;e:for(;a<l&&(Hd.lastIndex=a,s=Hd.exec(r),!!s);){if(y=_=!0,a=s.index+1,v=s[0]==="'",d=32,s.index-1>=0)d=r.charCodeAt(s.index-1);else for(C=n-1;C>=0&&!(t[C].type==="softbreak"||t[C].type==="hardbreak");C--)if(t[C].content){d=t[C].content.charCodeAt(t[C].content.length-1);break}if(f=32,a<l)f=r.charCodeAt(a);else for(C=n+1;C<t.length&&!(t[C].type==="softbreak"||t[C].type==="hardbreak");C++)if(t[C].content){f=t[C].content.charCodeAt(0);break}if(p=qd(d)||Ud(String.fromCharCode(d)),h=qd(f)||Ud(String.fromCharCode(f)),m=zd(d),g=zd(f),g?y=!1:h&&(m||p||(y=!1)),m?_=!1:p&&(g||h||(_=!1)),f===34&&s[0]==='"'&&d>=48&&d<=57&&(_=y=!1),y&&_&&(y=p,_=h),!y&&!_){v&&(o.content=Ts(o.content,s.index,jd));continue}if(_){for(C=w.length-1;C>=0&&(u=w[C],!(w[C].level<c));C--)if(u.single===v&&w[C].level===c){u=w[C],v?(k=e.md.options.quotes[2],b=e.md.options.quotes[3]):(k=e.md.options.quotes[0],b=e.md.options.quotes[1]),o.content=Ts(o.content,s.index,b),t[u.token].content=Ts(t[u.token].content,u.pos,k),a+=b.length-1,u.token===n&&(a+=k.length-1),r=o.content,l=r.length,w.length=C;continue e}}y?w.push({token:n,pos:s.index,single:v,level:c}):_&&v&&(o.content=Ts(o.content,s.index,jd))}}}}var nie=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!eie.test(e.tokens[n].content)||tie(e.tokens[n].children,e)},oie=function(e){var n,o,r,s,a,l,c=e.tokens;for(n=0,o=c.length;n<o;n++)if(c[n].type==="inline"){for(r=c[n].children,a=r.length,s=0;s<a;s++)r[s].type==="text_special"&&(r[s].type="text");for(s=l=0;s<a;s++)r[s].type==="text"&&s+1<a&&r[s+1].type==="text"?r[s+1].content=r[s].content+r[s+1].content:(s!==l&&(r[l]=r[s]),l++);s!==l&&(r.length=l)}};function qr(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}qr.prototype.attrIndex=function(e){var n,o,r;if(!this.attrs)return-1;for(n=this.attrs,o=0,r=n.length;o<r;o++)if(n[o][0]===e)return o;return-1};qr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};qr.prototype.attrSet=function(e,n){var o=this.attrIndex(e),r=[e,n];o<0?this.attrPush(r):this.attrs[o]=r};qr.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o};qr.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 nu=qr,rie=nu;function Gp(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}Gp.prototype.Token=rie;var iie=Gp,sie=tu,Cl=[["normalize",Vre],["block",zre],["inline",Ure],["linkify",Wre],["replacements",Qre],["smartquotes",nie],["text_join",oie]];function ou(){this.ruler=new sie;for(var t=0;t<Cl.length;t++)this.ruler.push(Cl[t][0],Cl[t][1])}ou.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)};ou.prototype.State=iie;var aie=ou,bl=ke.isSpace;function kl(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(n,o)}function Wd(t){var e=[],n=0,o=t.length,r,s=!1,a=0,l="";for(r=t.charCodeAt(n);n<o;)r===124&&(s?(l+=t.substring(a,n-1),a=n):(e.push(l+t.substring(a,n)),l="",a=n+1)),s=r===92,n++,r=t.charCodeAt(n);return e.push(l+t.substring(a)),e}var lie=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,y,_,C,v,w,k,b;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])||(k=e.src.charCodeAt(l++),k!==124&&k!==45&&k!==58)||l>=e.eMarks[d]||(b=e.src.charCodeAt(l++),b!==124&&b!==45&&b!==58&&!bl(b))||k===45&&bl(b))return!1;for(;l<e.eMarks[d];){if(s=e.src.charCodeAt(l),s!==124&&s!==45&&s!==58&&!bl(s))return!1;l++}for(a=kl(e,n+1),f=a.split("|"),m=[],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?m.push(g.charCodeAt(0)===58?"center":"right"):g.charCodeAt(0)===58?m.push("left"):m.push("")}if(a=kl(e,n).trim(),a.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(f=Wd(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),p=f.length,p===0||p!==m.length))return!1;if(r)return!0;for(C=e.parentType,e.parentType="table",w=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),h.map=y=[n,0],h=e.push("thead_open","thead",1),h.map=[n,n+1],h=e.push("tr_open","tr",1),h.map=[n,n+1],c=0;c<f.length;c++)h=e.push("th_open","th",1),m[c]&&(h.attrs=[["style","text-align:"+m[c]]]),h=e.push("inline","",0),h.content=f[c].trim(),h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),d=n+2;d<o&&!(e.sCount[d]<e.blkIndent);d++){for(v=!1,c=0,u=w.length;c<u;c++)if(w[c](e,d,o,!0)){v=!0;break}if(v||(a=kl(e,d).trim(),!a)||e.sCount[d]-e.blkIndent>=4)break;for(f=Wd(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),d===n+2&&(h=e.push("tbody_open","tbody",1),h.map=_=[n+2,0]),h=e.push("tr_open","tr",1),h.map=[d,d+1],c=0;c<p;c++)h=e.push("td_open","td",1),m[c]&&(h.attrs=[["style","text-align:"+m[c]]]),h=e.push("inline","",0),h.content=f[c]?f[c].trim():"",h.children=[],h=e.push("td_close","td",-1);h=e.push("tr_close","tr",-1)}return _&&(h=e.push("tbody_close","tbody",-1),_[1]=d),h=e.push("table_close","table",-1),y[1]=d,e.parentType=C,e.line=d,!0},cie=function(e,n,o){var r,s,a;if(e.sCount[n]-e.blkIndent<4)return!1;for(s=r=n+1;r<o;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,s=r;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},uie=function(e,n,o,r){var s,a,l,c,u,d,f,p=!1,h=e.bMarks[n]+e.tShift[n],m=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||h+3>m||(s=e.src.charCodeAt(h),s!==126&&s!==96)||(u=h,h=e.skipChars(h,s),a=h-u,a<3)||(f=e.src.slice(u,h),l=e.src.slice(h,m),s===96&&l.indexOf(String.fromCharCode(s))>=0))return!1;if(r)return!0;for(c=n;c++,!(c>=o||(h=u=e.bMarks[c]+e.tShift[c],m=e.eMarks[c],h<m&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(h)===s&&!(e.sCount[c]-e.blkIndent>=4)&&(h=e.skipChars(h,s),!(h-u<a)&&(h=e.skipSpaces(h),!(h<m)))){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},die=ke.isSpace,fie=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,y,_,C,v,w,k,b,E,S,T=e.lineMax,A=e.bMarks[n]+e.tShift[n],V=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(A)!==62)return!1;if(r)return!0;for(m=[],g=[],C=[],v=[],b=e.md.block.ruler.getRules("blockquote"),_=e.parentType,e.parentType="blockquote",p=n;p<o&&(S=e.sCount[p]<e.blkIndent,A=e.bMarks[p]+e.tShift[p],V=e.eMarks[p],!(A>=V));p++){if(e.src.charCodeAt(A++)===62&&!S){for(c=e.sCount[p]+1,e.src.charCodeAt(A)===32?(A++,c++,s=!1,w=!0):e.src.charCodeAt(A)===9?(w=!0,(e.bsCount[p]+c)%4===3?(A++,c++,s=!1):s=!0):w=!1,h=c,m.push(e.bMarks[p]),e.bMarks[p]=A;A<V&&(a=e.src.charCodeAt(A),die(a));){a===9?h+=4-(h+e.bsCount[p]+(s?1:0))%4:h++;A++}d=A>=V,g.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(w?1:0),C.push(e.sCount[p]),e.sCount[p]=h-c,v.push(e.tShift[p]),e.tShift[p]=A-e.bMarks[p];continue}if(d)break;for(k=!1,l=0,u=b.length;l<u;l++)if(b[l](e,p,o,!0)){k=!0;break}if(k){e.lineMax=p,e.blkIndent!==0&&(m.push(e.bMarks[p]),g.push(e.bsCount[p]),v.push(e.tShift[p]),C.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}m.push(e.bMarks[p]),g.push(e.bsCount[p]),v.push(e.tShift[p]),C.push(e.sCount[p]),e.sCount[p]=-1}for(y=e.blkIndent,e.blkIndent=0,E=e.push("blockquote_open","blockquote",1),E.markup=">",E.map=f=[n,0],e.md.block.tokenize(e,n,p),E=e.push("blockquote_close","blockquote",-1),E.markup=">",e.lineMax=T,e.parentType=_,f[1]=e.line,l=0;l<v.length;l++)e.bMarks[l+n]=m[l],e.tShift[l+n]=v[l],e.sCount[l+n]=C[l],e.bsCount[l+n]=g[l];return e.blkIndent=y,!0},pie=ke.isSpace,hie=function(e,n,o,r){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&&!pie(l))return!1;l===s&&a++}return a<3?!1:(r||(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)},Yp=ke.isSpace;function Zd(t,e){var n,o,r,s;return o=t.bMarks[e]+t.tShift[e],r=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<r&&(s=t.src.charCodeAt(o),!Yp(s))?-1:o}function Kd(t,e){var n,o=t.bMarks[e]+t.tShift[e],r=o,s=t.eMarks[e];if(r+1>=s||(n=t.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=s)return-1;if(n=t.src.charCodeAt(r++),n>=48&&n<=57){if(r-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return r<s&&(n=t.src.charCodeAt(r),!Yp(n))?-1:r}function mie(t,e){var n,o,r=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===r&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var gie=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,y,_,C,v,w,k,b,E,S,T,A,V,I,U,$,H,L=n,ee=!1,O=!0;if(e.sCount[L]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[L]-e.listIndent>=4&&e.sCount[L]<e.blkIndent)return!1;if(r&&e.parentType==="paragraph"&&e.sCount[L]>=e.blkIndent&&(ee=!0),(A=Kd(e,L))>=0){if(f=!0,I=e.bMarks[L]+e.tShift[L],_=Number(e.src.slice(I,A-1)),ee&&_!==1)return!1}else if((A=Zd(e,L))>=0)f=!1;else return!1;if(ee&&e.skipSpaces(A)>=e.eMarks[L])return!1;if(r)return!0;for(y=e.src.charCodeAt(A-1),g=e.tokens.length,f?(H=e.push("ordered_list_open","ol",1),_!==1&&(H.attrs=[["start",_]])):H=e.push("bullet_list_open","ul",1),H.map=m=[L,0],H.markup=String.fromCharCode(y),V=!1,$=e.md.block.ruler.getRules("list"),k=e.parentType,e.parentType="list";L<o;){for(T=A,C=e.eMarks[L],d=v=e.sCount[L]+A-(e.bMarks[L]+e.tShift[L]);T<C;){if(s=e.src.charCodeAt(T),s===9)v+=4-(v+e.bsCount[L])%4;else if(s===32)v++;else break;T++}if(a=T,a>=C?u=1:u=v-d,u>4&&(u=1),c=d+u,H=e.push("list_item_open","li",1),H.markup=String.fromCharCode(y),H.map=p=[L,0],f&&(H.info=e.src.slice(I,A-1)),S=e.tight,E=e.tShift[L],b=e.sCount[L],w=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[L]=a-e.bMarks[L],e.sCount[L]=v,a>=C&&e.isEmpty(L+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,L,o,!0),(!e.tight||V)&&(O=!1),V=e.line-L>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[L]=E,e.sCount[L]=b,e.tight=S,H=e.push("list_item_close","li",-1),H.markup=String.fromCharCode(y),L=e.line,p[1]=L,L>=o||e.sCount[L]<e.blkIndent||e.sCount[L]-e.blkIndent>=4)break;for(U=!1,l=0,h=$.length;l<h;l++)if($[l](e,L,o,!0)){U=!0;break}if(U)break;if(f){if(A=Kd(e,L),A<0)break;I=e.bMarks[L]+e.tShift[L]}else if(A=Zd(e,L),A<0)break;if(y!==e.src.charCodeAt(A-1))break}return f?H=e.push("ordered_list_close","ol",-1):H=e.push("bullet_list_close","ul",-1),H.markup=String.fromCharCode(y),m[1]=L,e.line=L,e.parentType=k,O&&mie(e,g),!0},vie=ke.normalizeReference,As=ke.isSpace,yie=function(e,n,o,r){var s,a,l,c,u,d,f,p,h,m,g,y,_,C,v,w,k=0,b=e.bMarks[n]+e.tShift[n],E=e.eMarks[n],S=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(b)!==91)return!1;for(;++b<E;)if(e.src.charCodeAt(b)===93&&e.src.charCodeAt(b-1)!==92){if(b+1===E||e.src.charCodeAt(b+1)!==58)return!1;break}for(c=e.lineMax,v=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";S<c&&!e.isEmpty(S);S++)if(!(e.sCount[S]-e.blkIndent>3)&&!(e.sCount[S]<0)){for(C=!1,d=0,f=v.length;d<f;d++)if(v[d](e,S,c,!0)){C=!0;break}if(C)break}for(_=e.getLines(n,S,e.blkIndent,!1).trim(),E=_.length,b=1;b<E;b++){if(s=_.charCodeAt(b),s===91)return!1;if(s===93){h=b;break}else s===10?k++:s===92&&(b++,b<E&&_.charCodeAt(b)===10&&k++)}if(h<0||_.charCodeAt(h+1)!==58)return!1;for(b=h+2;b<E;b++)if(s=_.charCodeAt(b),s===10)k++;else if(!As(s))break;if(g=e.md.helpers.parseLinkDestination(_,b,E),!g.ok||(u=e.md.normalizeLink(g.str),!e.md.validateLink(u)))return!1;for(b=g.pos,k+=g.lines,a=b,l=k,y=b;b<E;b++)if(s=_.charCodeAt(b),s===10)k++;else if(!As(s))break;for(g=e.md.helpers.parseLinkTitle(_,b,E),b<E&&y!==b&&g.ok?(w=g.str,b=g.pos,k+=g.lines):(w="",b=a,k=l);b<E&&(s=_.charCodeAt(b),!!As(s));)b++;if(b<E&&_.charCodeAt(b)!==10&&w)for(w="",b=a,k=l;b<E&&(s=_.charCodeAt(b),!!As(s));)b++;return b<E&&_.charCodeAt(b)!==10||(p=vie(_.slice(1,h)),!p)?!1:(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:w,href:u}),e.parentType=m,e.line=n+k+1),!0)},_ie=["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"],Fa={},Cie="[a-zA-Z_:][a-zA-Z0-9:._-]*",bie="[^\"'=<>`\\x00-\\x20]+",kie="'[^']*'",wie='"[^"]*"',Eie="(?:"+bie+"|"+kie+"|"+wie+")",xie="(?:\\s+"+Cie+"(?:\\s*=\\s*"+Eie+")?)",Jp="<[A-Za-z][A-Za-z0-9\\-]*"+xie+"*\\s*\\/?>",Xp="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Sie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Tie="<[?][\\s\\S]*?[?]>",Aie="<![A-Z]+\\s+[^>]*>",Nie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Die=new RegExp("^(?:"+Jp+"|"+Xp+"|"+Sie+"|"+Tie+"|"+Aie+"|"+Nie+")"),Mie=new RegExp("^(?:"+Jp+"|"+Xp+")");Fa.HTML_TAG_RE=Die;Fa.HTML_OPEN_CLOSE_TAG_RE=Mie;var Bie=_ie,$ie=Fa.HTML_OPEN_CLOSE_TAG_RE,ur=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Bie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp($ie.source+"\\s*$"),/^$/,!1]],Oie=function(e,n,o,r){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<ur.length&&!ur[s][0].test(c);s++);if(s===ur.length)return!1;if(r)return ur[s][2];if(a=n+1,!ur[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),ur[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},Gd=ke.isSpace,Lie=function(e,n,o,r){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&&!Gd(s)?!1:(r||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&Gd(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 r,s,a,l,c,u,d,f,p,h=n+1,m,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(m=e.parentType,e.parentType="paragraph";h<o&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(u=e.bMarks[h]+e.tShift[h],d=e.eMarks[h],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[h]<0)){for(s=!1,a=0,l=g.length;a<l;a++)if(g[a](e,h,o,!0)){s=!0;break}if(s)break}}return f?(r=e.getLines(n,h,e.blkIndent,!1).trim(),e.line=h+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=r,c.map=[n,e.line-1],c.children=[],c=e.push("heading_close","h"+String(f),-1),c.markup=String.fromCharCode(p),e.parentType=m,!0):!1},Pie=function(e,n,o){var r,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 r=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=r,c.map=[n,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=u,!0},Qp=nu,Ra=ke.isSpace;function bn(t,e,n,o){var r,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(r=s.charCodeAt(l),!f)if(Ra(r)){u++,r===9?d+=4-d%4:d++;continue}else f=!0;(r===10||l===c-1)&&(r!==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}bn.prototype.push=function(t,e,n){var o=new Qp(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};bn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};bn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};bn.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!Ra(n));e++);return e};bn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Ra(this.src.charCodeAt(--e)))return e+1;return e};bn.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};bn.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};bn.prototype.getLines=function(e,n,o,r){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||r?u=this.eMarks[p]+1:u=this.eMarks[p];c<u&&a<o;){if(l=this.src.charCodeAt(c),Ra(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("")};bn.prototype.Token=Qp;var Fie=bn,Rie=tu,Ns=[["table",lie,["paragraph","reference"]],["code",cie],["fence",uie,["paragraph","reference","blockquote","list"]],["blockquote",fie,["paragraph","reference","blockquote","list"]],["hr",hie,["paragraph","reference","blockquote","list"]],["list",gie,["paragraph","reference","blockquote"]],["reference",yie],["html_block",Oie,["paragraph","reference","blockquote"]],["heading",Lie,["paragraph","reference","blockquote"]],["lheading",Iie],["paragraph",Pie]];function Va(){this.ruler=new Rie;for(var t=0;t<Ns.length;t++)this.ruler.push(Ns[t][0],Ns[t][1],{alt:(Ns[t][2]||[]).slice()})}Va.prototype.tokenize=function(t,e,n){for(var o,r,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,r=0;r<l;r++)if(o=a[r](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)}};Va.prototype.parse=function(t,e,n,o){var r;t&&(r=new this.State(t,e,n,o),this.tokenize(r,r.line,r.lineMax))};Va.prototype.State=Fie;var Vie=Va;function zie(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 Uie=function(e,n){for(var o=e.pos;o<e.posMax&&!zie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},qie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Hie=function(e,n){var o,r,s,a,l,c,u,d;return!e.md.options.linkify||e.linkLevel>0||(o=e.pos,r=e.posMax,o+3>r)||e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==47||e.src.charCodeAt(o+2)!==47||(s=e.pending.match(qie),!s)||(a=s[1],l=e.md.linkify.matchAtStart(e.src.slice(o-a.length)),!l)||(c=l.url,c.length<=a.length)||(c=c.replace(/\*+$/,""),u=e.md.normalizeLink(c),!e.md.validateLink(u))?!1:(n||(e.pending=e.pending.slice(0,-a.length),d=e.push("link_open","a",1),d.attrs=[["href",u]],d.markup="linkify",d.info="auto",d=e.push("text","",0),d.content=e.md.normalizeLinkText(c),d=e.push("link_close","a",-1),d.markup="linkify",d.info="auto"),e.pos+=c.length-a.length,!0)},jie=ke.isSpace,Wie=function(e,n){var o,r,s,a=e.pos;if(e.src.charCodeAt(a)!==10)return!1;if(o=e.pending.length-1,r=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<r&&jie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},Zie=ke.isSpace,ru=[];for(var Yd=0;Yd<256;Yd++)ru.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){ru[t.charCodeAt(0)]=1});var Kie=function(e,n){var o,r,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),!!Zie(o));)c++;return e.pos=c,!0}return a=e.src[c],o>=55296&&o<=56319&&c+1<u&&(r=e.src.charCodeAt(c+1),r>=56320&&r<=57343&&(a+=e.src[c+1],c++)),s="\\"+a,n||(l=e.push("text_special","",0),o<256&&ru[o]!==0?l.content=a:l.content=s,l.markup=s,l.info="escape"),e.pos=c+1,!0},Gie=function(e,n){var o,r,s,a,l,c,u,d,f=e.pos,p=e.src.charCodeAt(f);if(p!==96)return!1;for(o=f,f++,r=e.posMax;f<r&&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<r&&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,r,s,a,l,c=e.pos,u=e.src.charCodeAt(c);if(n||u!==126||(r=e.scanDelims(e.pos,!0),a=r.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:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function Jd(t,e){var n,o,r,s,a,l=[],c=e.length;for(n=0;n<c;n++)r=e[n],r.marker===126&&r.end!==-1&&(s=e[r.end],a=t.tokens[r.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,r=e.tokens_meta.length;for(Jd(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&Jd(e,o[n].delimiters)};var Ua={};Ua.tokenize=function(e,n){var o,r,s,a=e.pos,l=e.src.charCodeAt(a);if(n||l!==95&&l!==42)return!1;for(r=e.scanDelims(e.pos,l===42),o=0;o<r.length;o++)s=e.push("text","",0),s.content=String.fromCharCode(l),e.delimiters.push({marker:l,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function Xd(t,e){var n,o,r,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&&(r=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===r.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[r.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--))}Ua.postProcess=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(Xd(e,e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&Xd(e,o[n].delimiters)};var Yie=ke.normalizeReference,wl=ke.isSpace,Jie=function(e,n){var o,r,s,a,l,c,u,d,f,p="",h="",m=e.pos,g=e.posMax,y=e.pos,_=!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(_=!1,c++;c<g&&(r=e.src.charCodeAt(c),!(!wl(r)&&r!==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&&(r=e.src.charCodeAt(c),!(!wl(r)&&r!==10));c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<g&&y!==c&&u.ok)for(h=u.str,c=u.pos;c<g&&(r=e.src.charCodeAt(c),!(!wl(r)&&r!==10));c++);}(c>=g||e.src.charCodeAt(c)!==41)&&(_=!0),c++}if(_){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[Yie(s)],!d)return e.pos=m,!1;p=d.href,h=d.title}return n||(e.pos=l,e.posMax=a,f=e.push("link_open","a",1),f.attrs=o=[["href",p]],h&&o.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,f=e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0},Xie=ke.normalizeReference,El=ke.isSpace,Qie=function(e,n){var o,r,s,a,l,c,u,d,f,p,h,m,g,y="",_=e.pos,C=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<C&&e.src.charCodeAt(u)===40){for(u++;u<C&&(r=e.src.charCodeAt(u),!(!El(r)&&r!==10));u++);if(u>=C)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<C&&(r=e.src.charCodeAt(u),!(!El(r)&&r!==10));u++);if(f=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<C&&g!==u&&f.ok)for(p=f.str,u=f.pos;u<C&&(r=e.src.charCodeAt(u),!(!El(r)&&r!==10));u++);else p="";if(u>=C||e.src.charCodeAt(u)!==41)return e.pos=_,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<C&&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[Xie(a)],!d)return e.pos=_,!1;y=d.href,p=d.title}return n||(s=e.src.slice(c,l),e.md.inline.parse(s,e.md,e.env,m=[]),h=e.push("image","img",0),h.attrs=o=[["src",y],["alt",""]],h.children=m,h.content=s,p&&o.push(["title",p])),e.pos=u,e.posMax=C,!0},ese=/^([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])?)*)$/,tse=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,nse=function(e,n){var o,r,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),tse.test(o)?(r=e.md.normalizeLink(o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],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):ese.test(o)?(r=e.md.normalizeLink("mailto:"+o),e.md.validateLink(r)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",r]],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},ose=Fa.HTML_TAG_RE;function rse(t){return/^<a[>\s]/i.test(t)}function ise(t){return/^<\/a\s*>/i.test(t)}function sse(t){var e=t|32;return e>=97&&e<=122}var ase=function(e,n){var o,r,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&&!sse(o))||(r=e.src.slice(l).match(ose),!r)?!1:(n||(a=e.push("html_inline","",0),a.content=r[0],rse(a.content)&&e.linkLevel++,ise(a.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},Qd=Hp,lse=ke.has,cse=ke.isValidEntityCode,e1=ke.fromCodePoint,use=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,dse=/^&([a-z][a-z0-9]{1,31});/i,fse=function(e,n){var o,r,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(use),s)return n||(r=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),a=e.push("text_special","",0),a.content=cse(r)?e1(r):e1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(dse),s&&lse(Qd,s[1]))return n||(a=e.push("text_special","",0),a.content=Qd[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function t1(t){var e,n,o,r,s,a,l,c,u={},d=t.length;if(d){var f=0,p=-2,h=[];for(e=0;e<d;e++)if(o=t[e],h.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-h[f]-1,a=n;n>s;n-=h[n]+1)if(r=t[n],r.marker===o.marker&&r.open&&r.end<0&&(l=!1,(r.close||o.open)&&(r.length+o.length)%3===0&&(r.length%3!==0||o.length%3!==0)&&(l=!0),!l)){c=n>0&&!t[n-1].open?h[n-1]+1:0,h[e]=e-n+c,h[n]=c,o.open=!1,r.end=e,r.close=!1,a=-1,p=-2;break}a!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var pse=function(e){var n,o=e.tokens_meta,r=e.tokens_meta.length;for(t1(e.delimiters),n=0;n<r;n++)o[n]&&o[n].delimiters&&t1(o[n].delimiters)},hse=function(e){var n,o,r=0,s=e.tokens,a=e.tokens.length;for(n=o=0;n<a;n++)s[n].nesting<0&&r--,s[n].level=r,s[n].nesting>0&&r++,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)},iu=nu,n1=ke.isWhiteSpace,o1=ke.isPunctChar,r1=ke.isMdAsciiPunct;function ns(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}ns.prototype.pushPending=function(){var t=new iu("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};ns.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new iu(t,e,n),r=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=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o};ns.prototype.scanDelims=function(t,e){var n=t,o,r,s,a,l,c,u,d,f,p=!0,h=!0,m=this.posMax,g=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<m&&this.src.charCodeAt(n)===g;)n++;return s=n-t,r=n<m?this.src.charCodeAt(n):32,u=r1(o)||o1(String.fromCharCode(o)),f=r1(r)||o1(String.fromCharCode(r)),c=n1(o),d=n1(r),d?p=!1:f&&(c||u||(p=!1)),c?h=!1:u&&(d||f||(h=!1)),e?(a=p,l=h):(a=p&&(!h||u),l=h&&(!p||f)),{can_open:a,can_close:l,length:s}};ns.prototype.Token=iu;var mse=ns,i1=tu,xl=[["text",Uie],["linkify",Hie],["newline",Wie],["escape",Kie],["backticks",Gie],["strikethrough",za.tokenize],["emphasis",Ua.tokenize],["link",Jie],["image",Qie],["autolink",nse],["html_inline",ase],["entity",fse]],Sl=[["balance_pairs",pse],["strikethrough",za.postProcess],["emphasis",Ua.postProcess],["fragments_join",hse]];function os(){var t;for(this.ruler=new i1,t=0;t<xl.length;t++)this.ruler.push(xl[t][0],xl[t][1]);for(this.ruler2=new i1,t=0;t<Sl.length;t++)this.ruler2.push(Sl[t][0],Sl[t][1])}os.prototype.skipToken=function(t){var e,n,o=t.pos,r=this.ruler.getRules(""),s=r.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=r[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};os.prototype.tokenize=function(t){for(var e,n,o,r=this.ruler.getRules(""),s=r.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=r[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()};os.prototype.parse=function(t,e,n,o){var r,s,a,l=new this.State(t,e,n,o);for(this.tokenize(l),s=this.ruler2.getRules(""),a=s.length,r=0;r<a;r++)s[r](l)};os.prototype.State=mse;var gse=os,Tl,s1;function vse(){return s1||(s1=1,Tl=function(t){var e={};t=t||{},e.src_Any=jp().source,e.src_Cc=Wp().source,e.src_Z=Zp().source,e.src_P=eu.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}),Tl}function oc(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 qa(t){return Object.prototype.toString.call(t)}function yse(t){return qa(t)==="[object String]"}function _se(t){return qa(t)==="[object Object]"}function Cse(t){return qa(t)==="[object RegExp]"}function a1(t){return qa(t)==="[object Function]"}function bse(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var eh={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function kse(t){return Object.keys(t||{}).reduce(function(e,n){return e||eh.hasOwnProperty(n)},!1)}var wse={"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}}},Ese="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 Sse(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 l1(){return function(t,e){e.normalize(t)}}function ta(t){var e=t.re=vse()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Ese),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 r=[];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,_se(c)){Cse(c.validate)?u.validate=Tse(c.validate):a1(c.validate)?u.validate=c.validate:s(l,c),a1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=l1();return}if(yse(c)){r.push(l);return}s(l,c)}}),r.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:l1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(bse).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"),Sse(t)}function Ase(t,e){var n=t.__index__,o=t.__last_index__,r=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=r,this.text=r,this.url=r}function rc(t,e){var n=new Ase(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Ot(t,e){if(!(this instanceof Ot))return new Ot(t,e);e||kse(t)&&(e=t,t={}),this.__opts__=oc({},eh,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=oc({},wse,t),this.__compiled__={},this.__tlds__=xse,this.__tlds_replaced__=!1,this.re={},ta(this)}Ot.prototype.add=function(e,n){return this.__schemas__[e]=n,ta(this),this};Ot.prototype.set=function(e){return this.__opts__=oc(this.__opts__,e),this};Ot.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,r,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&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,l=r.index+r[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};Ot.prototype.pretest=function(e){return this.re.pretest.test(e)};Ot.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};Ot.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(rc(this,n)),n=this.__last_index__);for(var r=n?e.slice(n):e;this.test(r);)o.push(rc(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};Ot.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,rc(this,0)):null};Ot.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,r,s){return o!==s[r-1]}).reverse(),ta(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ta(this),this)};Ot.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Ot.prototype.onCompile=function(){};var Nse=Ot;const kr=2147483647,pn=36,su=1,Ri=26,Dse=38,Mse=700,th=72,nh=128,oh="-",Bse=/^xn--/,$se=/[^\0-\x7F]/,Ose=/[\x2E\u3002\uFF0E\uFF61]/g,Lse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Al=pn-su,hn=Math.floor,Nl=String.fromCharCode;function Qn(t){throw new RangeError(Lse[t])}function Ise(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function rh(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(Ose,".");const r=t.split("."),s=Ise(r,e).join(".");return o+s}function au(t){const e=[];let n=0;const o=t.length;for(;n<o;){const r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<o){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),n--)}else e.push(r)}return e}const ih=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:pn},c1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},sh=function(t,e,n){let o=0;for(t=n?hn(t/Mse):t>>1,t+=hn(t/e);t>Al*Ri>>1;o+=pn)t=hn(t/Al);return hn(o+(Al+1)*t/(t+Dse))},lu=function(t){const e=[],n=t.length;let o=0,r=nh,s=th,a=t.lastIndexOf(oh);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&Qn("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=pn;;f+=pn){l>=n&&Qn("invalid-input");const p=Pse(t.charCodeAt(l++));p>=pn&&Qn("invalid-input"),p>hn((kr-o)/d)&&Qn("overflow"),o+=p*d;const h=f<=s?su:f>=s+Ri?Ri:f-s;if(p<h)break;const m=pn-h;d>hn(kr/m)&&Qn("overflow"),d*=m}const u=e.length+1;s=sh(o-c,u,c==0),hn(o/u)>kr-r&&Qn("overflow"),r+=hn(o/u),o%=u,e.splice(o++,0,r)}return String.fromCodePoint(...e)},cu=function(t){const e=[];t=au(t);const n=t.length;let o=nh,r=0,s=th;for(const c of t)c<128&&e.push(Nl(c));const a=e.length;let l=a;for(a&&e.push(oh);l<n;){let c=kr;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>hn((kr-r)/u)&&Qn("overflow"),r+=(c-o)*u,o=c;for(const d of t)if(d<o&&++r>kr&&Qn("overflow"),d===o){let f=r;for(let p=pn;;p+=pn){const h=p<=s?su:p>=s+Ri?Ri:p-s;if(f<h)break;const m=f-h,g=pn-h;e.push(Nl(c1(h+m%g,0))),f=hn(m/g)}e.push(Nl(c1(f,0))),s=sh(r,u,l===a),r=0,++l}++r,++o}return e.join("")},ah=function(t){return rh(t,function(e){return Bse.test(e)?lu(e.slice(4).toLowerCase()):e})},lh=function(t){return rh(t,function(e){return $se.test(e)?"xn--"+cu(e):e})},Fse={version:"2.1.0",ucs2:{decode:au,encode:ih},decode:lu,encode:cu,toASCII:lh,toUnicode:ah},Rse=Object.freeze(Object.defineProperty({__proto__:null,decode:lu,default:Fse,encode:cu,toASCII:lh,toUnicode:ah,ucs2decode:au,ucs2encode:ih},Symbol.toStringTag,{value:"Module"})),Vse=Vy(Rse);var zse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Use={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},qse={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},xi=ke,Hse=Pa,jse=Pre,Wse=aie,Zse=Vie,Kse=gse,Gse=Nse,Bo=zr,ch=Vse,Yse={default:zse,zero:Use,commonmark:qse},Jse=/^(vbscript|javascript|file|data):/,Xse=/^data:image\/(gif|png|jpeg|webp);/;function Qse(t){var e=t.trim().toLowerCase();return Jse.test(e)?!!Xse.test(e):!0}var uh=["http:","https:","mailto:"];function eae(t){var e=Bo.parse(t,!0);if(e.hostname&&(!e.protocol||uh.indexOf(e.protocol)>=0))try{e.hostname=ch.toASCII(e.hostname)}catch{}return Bo.encode(Bo.format(e))}function tae(t){var e=Bo.parse(t,!0);if(e.hostname&&(!e.protocol||uh.indexOf(e.protocol)>=0))try{e.hostname=ch.toUnicode(e.hostname)}catch{}return Bo.decode(Bo.format(e),Bo.decode.defaultChars+"%")}function Ut(t,e){if(!(this instanceof Ut))return new Ut(t,e);e||xi.isString(t)||(e=t||{},t="default"),this.inline=new Kse,this.block=new Zse,this.core=new Wse,this.renderer=new jse,this.linkify=new Gse,this.validateLink=Qse,this.normalizeLink=eae,this.normalizeLinkText=tae,this.utils=xi,this.helpers=xi.assign({},Hse),this.options={},this.configure(t),e&&this.set(e)}Ut.prototype.set=function(t){return xi.assign(this.options,t),this};Ut.prototype.configure=function(t){var e=this,n;if(xi.isString(t)&&(n=t,t=Yse[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};Ut.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};Ut.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(r){return n.indexOf(r)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};Ut.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Ut.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};Ut.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Ut.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};Ut.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var nae=Ut,oae=nae;const rae=Ry(oae);/*! @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 u1(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 iae(t){if(Array.isArray(t))return t}function sae(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,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,r=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}function aae(){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 lae(t,e){return iae(t)||sae(t,e)||cae(t,e)||aae()}function cae(t,e){if(t){if(typeof t=="string")return u1(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)?u1(t,e):void 0}}const dh=Object.entries,d1=Object.setPrototypeOf,uae=Object.isFrozen,dae=Object.getPrototypeOf,fae=Object.getOwnPropertyDescriptor;let Qe=Object.freeze,tt=Object.seal,gr=Object.create,fh=typeof Reflect<"u"&&Reflect,ic=fh.apply,sc=fh.construct;Qe||(Qe=function(e){return e});tt||(tt=function(e){return e});ic||(ic=function(e,n){for(var o=arguments.length,r=new Array(o>2?o-2:0),s=2;s<o;s++)r[s-2]=arguments[s];return e.apply(n,r)});sc||(sc=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return new e(...o)});const dr=Ve(Array.prototype.forEach),pae=Ve(Array.prototype.lastIndexOf),f1=Ve(Array.prototype.pop),fr=Ve(Array.prototype.push),hae=Ve(Array.prototype.splice),to=Array.isArray,Ci=Ve(String.prototype.toLowerCase),Dl=Ve(String.prototype.toString),p1=Ve(String.prototype.match),pi=Ve(String.prototype.replace),h1=Ve(String.prototype.indexOf),mae=Ve(String.prototype.trim),gae=Ve(Number.prototype.toString),vae=Ve(Boolean.prototype.toString),m1=typeof BigInt>"u"?null:Ve(BigInt.prototype.toString),g1=typeof Symbol>"u"?null:Ve(Symbol.prototype.toString),Ke=Ve(Object.prototype.hasOwnProperty),hi=Ve(Object.prototype.toString),Ze=Ve(RegExp.prototype.test),xo=yae(TypeError);function Ve(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return ic(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 sc(t,n)}}function ve(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ci;if(d1&&d1(t,null),!to(e))return t;let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const s=n(r);s!==r&&(uae(e)||(e[o]=s),r=s)}t[r]=!0}return t}function _ae(t){for(let e=0;e<t.length;e++)Ke(t,e)||(t[e]=null);return t}function ot(t){const e=gr(null);for(const o of dh(t)){var n=lae(o,2);const r=n[0],s=n[1];Ke(t,r)&&(to(s)?e[r]=_ae(s):s&&typeof s=="object"&&s.constructor===Object?e[r]=ot(s):e[r]=s)}return e}function Cae(t){switch(typeof t){case"string":return t;case"number":return gae(t);case"boolean":return vae(t);case"bigint":return m1?m1(t):"0";case"symbol":return g1?g1(t):"Symbol()";case"undefined":return hi(t);case"function":case"object":{if(t===null)return hi(t);const e=t,n=Kt(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:hi(o)}return hi(t)}default:return hi(t)}}function Kt(t,e){for(;t!==null;){const o=fae(t,e);if(o){if(o.get)return Ve(o.get);if(typeof o.value=="function")return Ve(o.value)}t=dae(t)}function n(){return null}return n}function bae(t){try{return Ze(t,""),!0}catch{return!1}}const v1=Qe(["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"]),Ml=Qe(["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"]),Bl=Qe(["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"]),kae=Qe(["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"]),$l=Qe(["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"]),wae=Qe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),y1=Qe(["#text"]),_1=Qe(["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"]),Ol=Qe(["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"]),C1=Qe(["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"]),Ds=Qe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Eae=tt(/{{[\w\W]*|^[\w\W]*}}/g),xae=tt(/<%[\w\W]*|^[\w\W]*%>/g),Sae=tt(/\${[\w\W]*/g),Tae=tt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Aae=tt(/^aria-[\-\w]+$/),b1=tt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Nae=tt(/^(?:\w+script|data):/i),Dae=tt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Mae=tt(/^html$/i),Bae=tt(/^[a-z][.\w]*(-[.\w]+)+$/i),k1=tt(/<[/\w!]/g),w1=tt(/<[/\w]/g),$ae=tt(/<\/no(script|embed|frames)/i),Oae=tt(/\/>/i),Tt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Lae=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 r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(o=n.getAttribute(r));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}},E1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Xn=function(e,n,o,r){return Ke(e,n)&&to(e[n])?ve(r.base?ot(r.base):{},e[n],r.transform):o};function ph(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lae();const e=J=>ph(J);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==Tt.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const o=n,r=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,h=Kt(p,"cloneNode"),m=Kt(p,"remove"),g=Kt(p,"nextSibling"),y=Kt(p,"childNodes"),_=Kt(p,"parentNode"),C=Kt(p,"shadowRoot"),v=Kt(p,"attributes"),w=a&&a.prototype?Kt(a.prototype,"nodeType"):null,k=a&&a.prototype?Kt(a.prototype,"nodeName"):null,b=a&&a.prototype?Kt(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const J=n.createElement("template");J.content&&J.content.ownerDocument&&(n=J.content.ownerDocument)}let E,S="",T,A=!1,V=0;const I=function(){if(V>0)throw xo('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.')},U=function(x){I(),V++;try{return E.createHTML(x)}finally{V--}},$=function(x){I(),V++;try{return E.createScriptURL(x)}finally{V--}},H=function(){return A||(T=Iae(f,r),A=!0),T},L=n,ee=L.implementation,O=L.createNodeIterator,D=L.createDocumentFragment,K=L.getElementsByTagName,P=o.importNode;let q=E1();e.isSupported=typeof dh=="function"&&typeof _=="function"&&ee&&ee.createHTMLDocument!==void 0;const ce=Eae,Q=xae,ie=Sae,R=Tae,te=Aae,B=Nae,G=Dae,ge=Bae;let qe=b1,de=null;const _e=ve({},[...v1,...Ml,...Bl,...$l,...y1]);let we=null;const ut=ve({},[..._1,...Ol,...C1,...Ds]);let Ne=Object.seal(gr(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}})),dt=null,Ct=null;const Pe=Object.seal(gr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ft=!0,bt=!0,jn=!1,Co=!0,Fe=!1,pt=!0,nt=!1,Ht=!1,kn=null,Wn=null,bo=!1,Zn=!1,or=!1,rr=!1,wn=!0,an=!1;const ps="user-content-";let Yr=!0,jt=!1,kt={},wt=null;const ir=ve({},["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 hs=null;const Jr=ve({},["audio","video","img","source","image","track"]);let Et=null;const sr=ve({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Kn="http://www.w3.org/1998/Math/MathML",ar="http://www.w3.org/2000/svg",xt="http://www.w3.org/1999/xhtml";let Gn=xt,ko=!1,Xr=null;const al=ve({},[Kn,ar,xt],Dl),ms=Qe(["mi","mo","mn","ms","mtext"]);let St=ve({},ms);const gs=Qe(["annotation-xml"]);let Qr=ve({},gs);const ll=ve({},["title","style","font","a","script"]);let wo=null;const ei=["application/xhtml+xml","text/html"],ti="text/html";let Se=null,Wt=null;const ni=n.createElement("form"),vs=function(x){return x instanceof RegExp||x instanceof Function},Yn=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Wt&&Wt===x)return;(!x||typeof x!="object")&&(x={}),x=ot(x),wo=ei.indexOf(x.PARSER_MEDIA_TYPE)===-1?ti:x.PARSER_MEDIA_TYPE,Se=wo==="application/xhtml+xml"?Dl:Ci,de=Xn(x,"ALLOWED_TAGS",_e,{transform:Se}),we=Xn(x,"ALLOWED_ATTR",ut,{transform:Se}),Xr=Xn(x,"ALLOWED_NAMESPACES",al,{transform:Dl}),Et=Xn(x,"ADD_URI_SAFE_ATTR",sr,{transform:Se,base:sr}),hs=Xn(x,"ADD_DATA_URI_TAGS",Jr,{transform:Se,base:Jr}),wt=Xn(x,"FORBID_CONTENTS",ir,{transform:Se}),dt=Xn(x,"FORBID_TAGS",ot({}),{transform:Se}),Ct=Xn(x,"FORBID_ATTR",ot({}),{transform:Se}),kt=Ke(x,"USE_PROFILES")?x.USE_PROFILES&&typeof x.USE_PROFILES=="object"?ot(x.USE_PROFILES):x.USE_PROFILES:!1,ft=x.ALLOW_ARIA_ATTR!==!1,bt=x.ALLOW_DATA_ATTR!==!1,jn=x.ALLOW_UNKNOWN_PROTOCOLS||!1,Co=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Fe=x.SAFE_FOR_TEMPLATES||!1,pt=x.SAFE_FOR_XML!==!1,nt=x.WHOLE_DOCUMENT||!1,Zn=x.RETURN_DOM||!1,or=x.RETURN_DOM_FRAGMENT||!1,rr=x.RETURN_TRUSTED_TYPE||!1,bo=x.FORCE_BODY||!1,wn=x.SANITIZE_DOM!==!1,an=x.SANITIZE_NAMED_PROPS||!1,Yr=x.KEEP_CONTENT!==!1,jt=x.IN_PLACE||!1,qe=bae(x.ALLOWED_URI_REGEXP)?x.ALLOWED_URI_REGEXP:b1,Gn=typeof x.NAMESPACE=="string"?x.NAMESPACE:xt,St=Ke(x,"MATHML_TEXT_INTEGRATION_POINTS")&&x.MATHML_TEXT_INTEGRATION_POINTS&&typeof x.MATHML_TEXT_INTEGRATION_POINTS=="object"?ot(x.MATHML_TEXT_INTEGRATION_POINTS):ve({},ms),Qr=Ke(x,"HTML_INTEGRATION_POINTS")&&x.HTML_INTEGRATION_POINTS&&typeof x.HTML_INTEGRATION_POINTS=="object"?ot(x.HTML_INTEGRATION_POINTS):ve({},gs);const M=Ke(x,"CUSTOM_ELEMENT_HANDLING")&&x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING=="object"?ot(x.CUSTOM_ELEMENT_HANDLING):gr(null);if(Ne=gr(null),Ke(M,"tagNameCheck")&&vs(M.tagNameCheck)&&(Ne.tagNameCheck=M.tagNameCheck),Ke(M,"attributeNameCheck")&&vs(M.attributeNameCheck)&&(Ne.attributeNameCheck=M.attributeNameCheck),Ke(M,"allowCustomizedBuiltInElements")&&typeof M.allowCustomizedBuiltInElements=="boolean"&&(Ne.allowCustomizedBuiltInElements=M.allowCustomizedBuiltInElements),tt(Ne),Fe&&(bt=!1),or&&(Zn=!0),kt&&(de=ve({},y1),we=gr(null),kt.html===!0&&(ve(de,v1),ve(we,_1)),kt.svg===!0&&(ve(de,Ml),ve(we,Ol),ve(we,Ds)),kt.svgFilters===!0&&(ve(de,Bl),ve(we,Ol),ve(we,Ds)),kt.mathMl===!0&&(ve(de,$l),ve(we,C1),ve(we,Ds))),Pe.tagCheck=null,Pe.attributeCheck=null,Ke(x,"ADD_TAGS")&&(typeof x.ADD_TAGS=="function"?Pe.tagCheck=x.ADD_TAGS:to(x.ADD_TAGS)&&(de===_e&&(de=ot(de)),ve(de,x.ADD_TAGS,Se))),Ke(x,"ADD_ATTR")&&(typeof x.ADD_ATTR=="function"?Pe.attributeCheck=x.ADD_ATTR:to(x.ADD_ATTR)&&(we===ut&&(we=ot(we)),ve(we,x.ADD_ATTR,Se))),Ke(x,"ADD_URI_SAFE_ATTR")&&to(x.ADD_URI_SAFE_ATTR)&&ve(Et,x.ADD_URI_SAFE_ATTR,Se),Ke(x,"FORBID_CONTENTS")&&to(x.FORBID_CONTENTS)&&(wt===ir&&(wt=ot(wt)),ve(wt,x.FORBID_CONTENTS,Se)),Ke(x,"ADD_FORBID_CONTENTS")&&to(x.ADD_FORBID_CONTENTS)&&(wt===ir&&(wt=ot(wt)),ve(wt,x.ADD_FORBID_CONTENTS,Se)),Yr&&(de["#text"]=!0),nt&&ve(de,["html","head","body"]),de.table&&(ve(de,["tbody"]),delete dt.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw xo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw xo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const j=E;E=x.TRUSTED_TYPES_POLICY;try{S=U("")}catch(se){throw E=j,se}}else x.TRUSTED_TYPES_POLICY===null?(E=void 0,S=""):(E===void 0&&(E=H()),E&&typeof S=="string"&&(S=U("")));Qe&&Qe(x),Wt=x},oi=ve({},[...Ml,...Bl,...kae]),N=ve({},[...$l,...wae]),Y=function(x,M,j){return M.namespaceURI===xt?x==="svg":M.namespaceURI===Kn?x==="svg"&&(j==="annotation-xml"||St[j]):!!oi[x]},me=function(x,M,j){return M.namespaceURI===xt?x==="math":M.namespaceURI===ar?x==="math"&&Qr[j]:!!N[x]},De=function(x,M,j){return M.namespaceURI===ar&&!Qr[j]||M.namespaceURI===Kn&&!St[j]?!1:!N[x]&&(ll[x]||!oi[x])},En=function(x){let M=_(x);(!M||!M.tagName)&&(M={namespaceURI:Gn,tagName:"template"});const j=Ci(x.tagName),se=Ci(M.tagName);return Xr[x.namespaceURI]?x.namespaceURI===ar?Y(j,M,se):x.namespaceURI===Kn?me(j,M,se):x.namespaceURI===xt?De(j,M,se):!!(wo==="application/xhtml+xml"&&Xr[x.namespaceURI]):!1},Zt=function(x){fr(e.removed,{element:x});try{_(x).removeChild(x)}catch{if(m(x),!_(x))throw xo("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ri=function(x){ii(x);const M=y(x);if(M){const se=[];dr(M,ae=>{fr(se,ae)}),dr(se,ae=>{try{m(ae)}catch{}})}const j=v(x);if(j)for(let se=j.length-1;se>=0;--se){const ae=j[se],pe=ae&&ae.name;if(typeof pe=="string")try{x.removeAttribute(pe)}catch{}}},xn=function(x,M){try{fr(e.removed,{attribute:M.getAttributeNode(x),from:M})}catch{fr(e.removed,{attribute:null,from:M})}if(M.removeAttribute(x),x==="is")if(Zn||or)try{Zt(M)}catch{}else try{M.setAttribute(x,"")}catch{}},ys=function(x){const M=v(x);if(M)for(let j=M.length-1;j>=0;--j){const se=M[j],ae=se&&se.name;if(!(typeof ae!="string"||we[Se(ae)]))try{x.removeAttribute(ae)}catch{}}},ii=function(x){const M=[x];for(;M.length>0;){const j=M.pop();(w?w(j):j.nodeType)===Tt.element&&ys(j);const ae=y(j);if(ae)for(let pe=ae.length-1;pe>=0;--pe)M.push(ae[pe])}},Dg=function(x){if(!pt)return;const M=[x];for(;M.length>0;){const j=M.pop(),se=w?w(j):j.nodeType;if(se===Tt.processingInstruction||se===Tt.comment&&Ze(w1,j.data)){try{m(j)}catch{}continue}if(se===Tt.element){const pe=j,Te=Se(k?k(j):j.nodeName);try{pe.hasAttribute&&pe.hasAttribute("patchsrc")&&pe.removeAttribute("patchsrc"),pe.hasAttribute&&pe.hasAttribute("for")&&Te!=="label"&&Te!=="output"&&pe.removeAttribute("for")}catch{}}const ae=y(j);if(ae)for(let pe=ae.length-1;pe>=0;--pe)M.push(ae[pe])}},td=function(x){let M=null,j=null;if(bo)x="<remove></remove>"+x;else{const pe=p1(x,/^[\r\n\t ]+/);j=pe&&pe[0]}wo==="application/xhtml+xml"&&Gn===xt&&(x='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+x+"</body></html>");const se=E?U(x):x;if(Gn===xt)try{M=new d().parseFromString(se,wo)}catch{}if(!M||!M.documentElement){M=ee.createDocument(Gn,"template",null);try{M.documentElement.innerHTML=ko?S:se}catch{}}const ae=M.body||M.documentElement;return x&&j&&ae.insertBefore(n.createTextNode(j),ae.childNodes[0]||null),Gn===xt?K.call(M,nt?"html":"body")[0]:nt?M.documentElement:ae},nd=function(x){const M=b?b(x):x.ownerDocument;return O.call(M||x,x,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},_s=function(x){return x=pi(x,ce," "),x=pi(x,Q," "),x=pi(x,ie," "),x},cl=function(x){var M;x.normalize();const j=b?b(x):x.ownerDocument,se=O.call(j||x,x,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ae=se.nextNode();for(;ae;)ae.data=_s(ae.data),ae=se.nextNode();const pe=(M=x.querySelectorAll)===null||M===void 0?void 0:M.call(x,"template");pe&&dr(pe,Te=>{lr(Te.content)&&cl(Te.content)})},Cs=function(x){const M=k?k(x):null;return typeof M!="string"||Se(M)!=="form"?!1:typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||x.attributes!==v(x)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function"||x.nodeType!==w(x)||x.childNodes!==y(x)},lr=function(x){if(!w||typeof x!="object"||x===null)return!1;try{return w(x)===Tt.documentFragment}catch{return!1}},si=function(x){if(!w||typeof x!="object"||x===null)return!1;try{return typeof w(x)=="number"}catch{return!1}};function ln(J,x,M){J.length!==0&&dr(J,j=>{j.call(e,x,M,Wt)})}const Mg=function(x,M){return!!(pt&&x.hasChildNodes()&&!si(x.firstElementChild)&&Ze(k1,x.textContent)&&Ze(k1,x.innerHTML)||pt&&x.namespaceURI===xt&&M==="style"&&si(x.firstElementChild)||x.nodeType===Tt.processingInstruction||pt&&x.nodeType===Tt.comment&&Ze(w1,x.data))},Bg=function(x,M,j){if(!dt[M]&&sd(M)&&(Ne.tagNameCheck instanceof RegExp&&Ze(Ne.tagNameCheck,M)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(M)))return!1;if(Yr&&!wt[M]){const se=_(x),ae=y(x);if(ae&&se){const pe=ae.length;for(let Te=pe-1;Te>=0;--Te){const Me=x===j?h(ae[Te],!0):ae[Te];se.insertBefore(Me,g(x))}}}return Zt(x),!0},od=function(x,M,j,se){return x.length===0?M:M===j||M===se?ot(M):M},rd=function(x,M){if(ln(q.beforeSanitizeElements,x,null),x!==M&&_(x)===null)return jt&&ii(x),!0;if(Cs(x))return Zt(x),!0;const j=Se(k?k(x):x.nodeName);if(de=od(q.uponSanitizeElement,de,_e,kn),ln(q.uponSanitizeElement,x,{tagName:j,allowedTags:de}),x!==M&&_(x)===null)return jt&&ii(x),!0;if(Mg(x,j))return Zt(x),!0;if(dt[j]||!(Pe.tagCheck instanceof Function&&Pe.tagCheck(j))&&!de[j]){const ae=Bg(x,j,M);return ae===!1&&ln(q.afterSanitizeElements,x,null),ae}if((w?w(x):x.nodeType)===Tt.element&&!En(x)||(j==="noscript"||j==="noembed"||j==="noframes")&&Ze($ae,x.innerHTML))return Zt(x),!0;if(Fe&&x.nodeType===Tt.text){const ae=_s(x.textContent);x.textContent!==ae&&(fr(e.removed,{element:x.cloneNode()}),x.textContent=ae)}return ln(q.afterSanitizeElements,x,null),!1},id=function(x,M,j){if(Ct[M]||pt&&M==="patchsrc"||pt&&M==="for"&&x!=="label"&&x!=="output"||wn&&(M==="id"||M==="name")&&(j in n||j in ni))return!1;const se=we[M]||Pe.attributeCheck instanceof Function&&Pe.attributeCheck(M,x);if(!(bt&&Ze(R,M))){if(!(ft&&Ze(te,M))){if(se){if(!Et[M]){if(!Ze(qe,pi(j,G,""))){if(!((M==="src"||M==="xlink:href"||M==="href")&&x!=="script"&&h1(j,"data:")===0&&hs[x])){if(!(jn&&!Ze(B,pi(j,G,"")))){if(j)return!1}}}}}else if(!(sd(x)&&(Ne.tagNameCheck instanceof RegExp&&Ze(Ne.tagNameCheck,x)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(x))&&(Ne.attributeNameCheck instanceof RegExp&&Ze(Ne.attributeNameCheck,M)||Ne.attributeNameCheck instanceof Function&&Ne.attributeNameCheck(M,x))||M==="is"&&Ne.allowCustomizedBuiltInElements&&(Ne.tagNameCheck instanceof RegExp&&Ze(Ne.tagNameCheck,j)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(j))))return!1}}return!0},$g=ve({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),sd=function(x){return!$g[Ci(x)]&&Ze(ge,x)},Og=function(x,M,j,se){if(E&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!j)switch(f.getAttributeType(x,M)){case"TrustedHTML":return U(se);case"TrustedScriptURL":return $(se)}return se},Lg=function(x,M,j,se){try{j?x.setAttributeNS(j,M,se):x.setAttribute(M,se),Cs(x)?Zt(x):f1(e.removed)}catch{xn(M,x)}},ad=function(x){ln(q.beforeSanitizeAttributes,x,null);const M=x.attributes;if(!M||Cs(x))return;we=od(q.uponSanitizeAttribute,we,ut,Wn);const j={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let se=M.length;const ae=Se(x.nodeName);for(;se--;){const pe=M[se],Te=pe.name,Me=pe.namespaceURI,ht=pe.value,mt=Se(Te),dl=ht;let at=Te==="value"?dl:mae(dl);if(j.attrName=mt,j.attrValue=at,j.keepAttr=!0,j.forceKeepAttr=void 0,ln(q.uponSanitizeAttribute,x,j),at=j.attrValue,an&&(mt==="id"||mt==="name")&&h1(at,ps)!==0&&(xn(Te,x),at=ps+at),pt&&Ze(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,at)){xn(Te,x);continue}if(mt==="attributename"&&p1(at,"href")){xn(Te,x);continue}if(!j.forceKeepAttr){if(!j.keepAttr){xn(Te,x);continue}if(!Co&&Ze(Oae,at)){xn(Te,x);continue}if(Fe&&(at=_s(at)),!id(ae,mt,at)){xn(Te,x);continue}at=Og(ae,mt,Me,at),at!==dl&&Lg(x,Te,Me,at)}}ln(q.afterSanitizeAttributes,x,null)},bs=function(x){let M=null;const j=nd(x);for(ln(q.beforeSanitizeShadowDOM,x,null);M=j.nextNode();)if(ln(q.uponSanitizeShadowNode,M,null),rd(M,x),ad(M),lr(M.content)&&bs(M.content),(w?w(M):M.nodeType)===Tt.element){const ae=C(M);lr(ae)&&(ul(ae),bs(ae))}ln(q.afterSanitizeShadowDOM,x,null)},ul=function(x){const M=[{node:x,shadow:null}];for(;M.length>0;){const j=M.pop();if(j.shadow){bs(j.shadow);continue}const se=j.node,pe=(w?w(se):se.nodeType)===Tt.element,Te=y(se);if(Te)for(let Me=Te.length-1;Me>=0;--Me)M.push({node:Te[Me],shadow:null});if(pe){const Me=k?k(se):null;if(typeof Me=="string"&&Se(Me)==="template"){const ht=se.content;lr(ht)&&M.push({node:ht,shadow:null})}}if(pe){const Me=C(se);lr(Me)&&M.push({node:null,shadow:Me},{node:Me,shadow:null})}}};return e.sanitize=function(J){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=null,j=null,se=null,ae=null;if(ko=!J,ko&&(J="<!-->"),typeof J!="string"&&!si(J)&&(J=Cae(J),typeof J!="string"))throw xo("dirty is not a string, aborting");if(!e.isSupported)return J;Ht?(de=kn,we=Wn):Yn(x),(q.uponSanitizeElement.length>0||q.uponSanitizeAttribute.length>0)&&(de=ot(de)),q.uponSanitizeAttribute.length>0&&(we=ot(we)),e.removed=[];const pe=jt&&typeof J!="string"&&si(J);if(pe){Dg(J);const ht=k?k(J):J.nodeName;if(typeof ht=="string"){const mt=Se(ht);if(!de[mt]||dt[mt])throw ri(J),xo("root node is forbidden and cannot be sanitized in-place")}if(Cs(J))throw ri(J),xo("root node is clobbered and cannot be sanitized in-place");try{ul(J)}catch(mt){throw ri(J),mt}}else if(si(J))M=td("<!---->"),j=M.ownerDocument.importNode(J,!0),j.nodeType===Tt.element&&j.nodeName==="BODY"||j.nodeName==="HTML"?M=j:M.appendChild(j),ul(j);else{if(!Zn&&!Fe&&!nt&&J.indexOf("<")===-1)return E&&rr?U(J):J;if(M=td(J),!M)return Zn?null:rr?S:""}M&&bo&&Zt(M.firstChild);const Te=pe?J:M;try{const ht=nd(Te);for(;se=ht.nextNode();)rd(se,Te),ad(se),lr(se.content)&&bs(se.content)}catch(ht){throw pe&&(ri(J),dr(e.removed,mt=>{mt.element&&ii(mt.element)})),ht}if(pe)return dr(e.removed,ht=>{ht.element&&ii(ht.element)}),Fe&&cl(J),J;if(Zn){if(Fe&&cl(M),or)for(ae=D.call(M.ownerDocument);M.firstChild;)ae.appendChild(M.firstChild);else ae=M;return(we.shadowroot||we.shadowrootmode)&&(ae=P.call(o,ae,!0)),ae}let Me=nt?M.outerHTML:M.innerHTML;return nt&&de["!doctype"]&&M.ownerDocument&&M.ownerDocument.doctype&&M.ownerDocument.doctype.name&&Ze(Mae,M.ownerDocument.doctype.name)&&(Me="<!DOCTYPE "+M.ownerDocument.doctype.name+`>
|
|
19
|
+
`+Me),Fe&&(Me=_s(Me)),E&&rr?U(Me):Me},e.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Yn(J),Ht=!0,kn=de,Wn=we},e.clearConfig=function(){Wt=null,Ht=!1,kn=null,Wn=null,E=T,S=""},e.isValidAttribute=function(J,x,M){Wt||Yn({});const j=Se(J),se=Se(x);return id(j,se,M)},e.addHook=function(J,x){typeof x=="function"&&Ke(q,J)&&fr(q[J],x)},e.removeHook=function(J,x){if(Ke(q,J)){if(x!==void 0){const M=pae(q[J],x);return M===-1?void 0:hae(q[J],M,1)[0]}return f1(q[J])}},e.removeHooks=function(J){Ke(q,J)&&(q[J]=[])},e.removeAllHooks=function(){q=E1()},e}var Pae=ph();const Fae=["innerHTML"],Rae={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},Vae=i.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(t){const e=t,n=new rae({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=i.computed(()=>e.content?Pae.sanitize(n.render(e.content),{ALLOWED_TAGS:["p","br","strong","em","s","del","ul","ol","li"],ALLOWED_ATTR:[]}):"");return(r,s)=>t.content?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ao-markdown-content",innerHTML:o.value},null,8,Fae)):(i.openBlock(),i.createElementBlock("div",Rae,i.toDisplayString(t.placeholder),1))}});function W(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 hh(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 rn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,zae=rn&&"documentMode"in document?document.documentMode:null,Gt=rn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Ho=rn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),na=!(!rn||!("InputEvent"in window)||zae)&&"getTargetRanges"in new window.InputEvent("input"),Vi=rn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Lr=rn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Uae=rn&&/Android/.test(navigator.userAgent),mh=rn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),x1=rn&&Uae&&mh,zi=rn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Gt&&!mh;function gh(...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,vh=128,Wae=1,Zae=2,Kae=3,Gae=4,Yae=5,Jae=6,Ha=Vi||Lr||zi?" ":"",fo=`
|
|
20
20
|
|
|
21
|
-
`,Kae=Ho?" ":Ha,lt={bold:1,capitalize:1024,code:16,highlight:vh,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Gae={directionless:1,unmergeable:2},S1={center:2,end:6,justify:4,left:1,right:3,start:5},Yae={[qae]:"center",[Zae]:"end",[jae]:"justify",[Uae]:"left",[Hae]:"right",[Wae]:"start"},Jae={normal:0,segmented:2,token:1},Xae={[Rae]:"normal",[zae]:"segmented",[Vae]:"token"},T1="$config";function yh(t,e,n,o,r,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(F(a)&&yh(a,l,n,o,r,s),n.has(l)||s.delete(l),r.push(l)),a=a.getNextSibling()}}let ac=!1,uu=0;function Qae(t){uu=t.timeStamp}function Ll(t,e,n){const o=t.nodeName==="BR",r=e.__lexicalLineBreak;return r&&(t===r||o&&t.previousSibling===r)||o&&Xa(t,n)!==void 0}function ele(t,e,n){const o=tn(qt(n));let r=null,s=null;o!==null&&o.anchorNode===t&&(r=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&Su(e,a,r,s,!1)}function tle(t,e,n){if(Z(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return Hn(e)&&n.isAttached()}function nle(t,e,n,o){for(let r=t;r&&!sce(r);r=ds(r)){const s=Xa(r,e);if(s!==void 0){const a=We(s,n);if(a)return Ce(a)||!ze(r)?void 0:[r,a]}else if(r===o)return[o,Cm(n)]}}function _h(t,e,n){ac=!0;const o=performance.now()-uu>100;try{Dt(t,()=>{const r=re()||function(p){return p.getEditorState().read(()=>{const h=re();return h!==null?h.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 h=e[p],m=h.type,g=h.target,y=nle(g,t,l,a);if(!y)continue;const[_,C]=y;if(m==="characterData")o&&X(C)&&Hn(g)&&tle(r,g,C)&&ele(g,C,t);else if(m==="childList"){u=!0;const v=h.addedNodes;for(let b=0;b<v.length;b++){const E=v[b],S=ym(E),T=E.parentNode;if(T!=null&&E!==c&&S===null&&!Ll(E,T,t)){if(Ho){const A=(ze(E)?E.innerText:null)||E.nodeValue;A&&(d+=A)}T.removeChild(E)}}const w=h.removedNodes,k=w.length;if(k>0){let b=0;for(let E=0;E<k;E++){const S=w[E];(Ll(S,g,t)||c===S)&&(g.appendChild(S),b++)}k!==b&&s.set(_,C)}}}if(s.size>0)for(const[p,h]of s)h.reconcileObservedMutation(p,t);const f=n.takeRecords();if(f.length>0){for(let p=0;p<f.length;p++){const h=f[p],m=h.addedNodes,g=h.target;for(let y=0;y<m.length;y++){const _=m[y],C=_.parentNode;C==null||_.nodeName!=="BR"||Ll(_,g,t)||C.removeChild(_)}}n.takeRecords()}r!==null&&(u&&_t(r),Ho&&Em(t)&&r.insertRawText(d))})}finally{ac=!1}}function Ch(t){const e=t._observer;e!==null&&_h(t,e.takeRecords(),e)}function bh(t){(function(e){uu===0&&qt(e).addEventListener("textInput",Qae,!0)})(t),t._observer=new MutationObserver((e,n)=>{_h(t,e,n)})}let ole=class{constructor(e,n){z(this,"key");z(this,"parse");z(this,"unparse");z(this,"isEqual");z(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||ale).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function rle(t,e){return new ole(t,e)}function kh(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function Il(t,e,n){let o;if(Ge(),typeof n=="function"){const s=t.getLatest(),a=kh(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const r=t.getWritable();return Eh(r).updateFromKnown(e,o),r}function ile(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:r}=tl(o);if(r&&r.stateConfigs)for(const s of r.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 sle=class wh{constructor(e,n,o=void 0,r=new Map,s=void 0){z(this,"node");z(this,"knownState");z(this,"unknownState");z(this,"sharedNodeState");z(this,"size");this.node=e,this.sharedNodeState=n,this.unknownState=o,this.knownState=r;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 h=c.get(p);h&&d.has(h)||f++}return f}(a,o,r);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 r=this.unknownState[e.key];r!==void 0&&(o=e.parse(r)),this.updateFromKnown(e,o)}return o}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},n={};for(const[o,r]of this.knownState)o.isEqual(r,o.defaultValue)?delete e[o.key]:e[o.key]=o.unparse(r);for(const o of this.sharedNodeState.flatKeys)o in e&&(n[o]=e[o],delete e[o]);return A1(e)&&(n.$=e),n}getWritable(e){if(this.node===e)return this;const{sharedNodeState:n,unknownState:o}=this,r=new Map(this.knownState);return new wh(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,r,o),r,this.size)}updateFromKnown(e,n){const o=e.key;this.sharedNodeState.sharedConfigMap.set(o,e);const{knownState:r,unknownState:s}=this;r.has(e)||s&&o in s||(s&&(delete s[o],this.unknownState=A1(s)),this.size++),r.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,r]of Object.entries(e))this.updateFromUnknown(o,r)}};function Eh(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new sle(e,xh(e));return e.__state=n,n}function xh(t){return t.__state?t.__state.sharedNodeState:hm(el(),t.getType()).sharedNodeState}function A1(t){if(t)for(const e in t)return t}function ale(t){return t}function N1(t,e,n){for(const[o,r]of e.knownState){if(t.has(o.key))continue;t.add(o.key);const s=n?n.getValue(o):o.defaultValue;if(s!==r&&!o.isEqual(s,r))return!0}return!1}function D1(t,e,n){const{unknownState:o}=e,r=n?n.unknownState:void 0;if(o){for(const[s,a]of Object.entries(o))if(!t.has(s)&&(t.add(s),a!==(r?r[s]:void 0)))return!0}return!1}function M1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function B1(t,e){const n=t.__mode,o=t.__format,r=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)&&(r===null||r===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&&N1(p,d,f)||f&&N1(p,f,d)||d&&D1(p,d,f)||f&&D1(p,f,d))}(c,u))}function $1(t,e){const n=t.mergeWithSibling(e),o=$e()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function O1(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(B1(e,o)){o=$1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(B1(o,n)){o=$1(o,n);break}break}n.remove()}}else o.remove()}function oa(t){return L1(t.anchor),L1(t.focus),t}function L1(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let o,r;if(n===e.getChildrenSize()?(o=e.getChildAtIndex(n-1),r=!0):(o=e.getChildAtIndex(n),r=!1),X(o)){t.set(o.__key,r?o.getTextContentSize():0,"text",!0);break}if(!F(o))break;t.set(o.__key,r?o.getChildrenSize():0,"element",!0)}}let jo,it,Ui,ja,lc,cc,Wo,Xt,uc,qi,He="",un=null,dn="",Dn="",vr=!1,ra=!1;function ia(t,e){const n=Wo.get(t);if(e!==null){const o=hc(t);o.parentNode===e&&e.removeChild(o)}if(Xt.has(t)||it._keyToDOMMap.delete(t),F(n)){const o=aa(n,Wo);dc(o,0,o.length-1,null)}n!==void 0&&Tu(qi,Ui,ja,n,"destroyed")}function dc(t,e,n,o){let r=e;for(;r<=n;++r){const s=t[r];s!==void 0&&ia(s,o)}}function So(t,e){t.setProperty("text-align",e)}const lle="40px";function Sh(t,e){const n=jo.theme.indent;if(typeof n=="string"){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n)}const o=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||lle;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function Th(t,e){const n=t.style;e===0?So(n,""):e===1?So(n,"left"):e===2?So(n,"center"):e===3?So(n,"right"):e===4?So(n,"justify"):e===5?So(n,"start"):e===6&&So(n,"end")}function fc(t,e){const n=function(o){const r=o.__dir;if(r!==null)return r;if(Re(o))return null;const s=o.getParentOrThrow();return Re(s)&&s.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function sa(t,e){const n=Xt.get(t);n===void 0&&W(60);const o=n.createDOM(jo,it);if(function(r,s,a){const l=a._keyToDOMMap;(function(c,u,d){const f=`__lexicalKey_${u._key}`;c[f]=d})(s,a,r),l.set(r,s)}(t,o,it),X(n)?o.setAttribute("data-lexical-text","true"):Ce(n)&&o.setAttribute("data-lexical-decorator","true"),F(n)){const r=n.__indent,s=n.__size;if(fc(o,n),r!==0&&Sh(o,r),s!==0){const l=s-1;pc(aa(n,Xt),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&Th(o,a),n.isInline()||Ah(null,n,o),Qa(n)&&(He+=fo,Dn+=fo)}else{const r=n.getTextContent();if(Ce(n)){const s=n.decorate(it,jo);s!==null&&Nh(t,s),o.contentEditable="false"}He+=r,Dn+=r}return e!==null&&e.insertChild(o),Tu(qi,Ui,ja,n,"created"),o}function pc(t,e,n,o,r){const s=He;He="";let a=n;for(;a<=o;++a){sa(t[a],r);const l=Xt.get(t[a]);l!==null&&X(l)&&(un===null&&(un=l.getFormat()),dn===""&&(dn=l.getStyle()))}Qa(e)&&(He+=fo),r.element.__lexicalTextContent=He,He=s+He}function I1(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return Po(o)?"line-break":Ce(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Ah(t,e,n){const o=I1(t,Wo),r=I1(e,Xt);o!==r&&e.getDOMSlot(n).setManagedLineBreak(r)}function cle(t,e,n){var o;un=null,dn="",function(r,s,a){const l=He,c=r.__size,u=s.__size;He="";const d=a.element;if(c===1&&u===1){const f=r.__first,p=s.__first;if(f===p)bi(f,d);else{const m=hc(f),g=sa(p,null);try{d.replaceChild(g,m)}catch(y){if(typeof y=="object"&&y!=null){const _=`${y.toString()} Parent: ${d.tagName}, new child: {tag: ${g.tagName} key: ${p}}, old child: {tag: ${m.tagName}, key: ${f}}.`;throw new Error(_)}throw y}ia(f,null)}const h=Xt.get(p);X(h)&&(un===null&&(un=h.getFormat()),dn===""&&(dn=h.getStyle()))}else{const f=aa(r,Wo),p=aa(s,Xt);if(f.length!==c&&W(227),p.length!==u&&W(228),c===0)u!==0&&pc(p,s,0,u-1,a);else if(u===0){if(c!==0){const h=a.after==null&&a.before==null&&a.element.__lexicalLineBreak==null;dc(f,0,c-1,h?null:d),h&&(d.textContent="")}}else(function(h,m,g,y,_,C){const v=y-1,w=_-1;let k,b,E=C.getFirstChild(),S=0,T=0;for(;S<=v&&T<=w;){const I=m[S],U=g[T];if(I===U)E=Pl(bi(U,C.element)),S++,T++;else{k===void 0&&(k=new Set(m)),b===void 0&&(b=new Set(g));const H=b.has(I),L=k.has(U);if(H)if(L){const ee=Ko(it,U);ee===E?E=Pl(bi(U,C.element)):(C.withBefore(E).insertChild(ee),bi(U,C.element)),S++,T++}else sa(U,C.withBefore(E)),T++;else E=Pl(hc(I)),ia(I,C.element),S++}const $=Xt.get(U);$!==null&&X($)&&(un===null&&(un=$.getFormat()),dn===""&&(dn=$.getStyle()))}const A=S>v,V=T>w;if(A&&!V){const I=g[w+1],U=I===void 0?null:it.getElementByKey(I);pc(g,h,T,w,C.withBefore(U))}else V&&!A&&dc(m,S,v,C.element)})(s,f,p,c,u,a)}Qa(s)&&(He+=fo),d.__lexicalTextContent=He,He=l+He}(t,e,e.getDOMSlot(n)),o=e,un==null||un===o.__textFormat||ra||o.setTextFormat(un),function(r){dn===""||dn===r.__textStyle||ra||r.setTextStyle(dn)}(e)}function aa(t,e){const n=[];let o=t.__first;for(;o!==null;){const r=e.get(o);r===void 0&&W(101),n.push(o),o=r.__next}return n}function bi(t,e){const n=Wo.get(t);let o=Xt.get(t);n!==void 0&&o!==void 0||W(61);const r=vr||cc.has(t)||lc.has(t),s=Ko(it,t);if(n===o&&!r){if(F(n)){const a=s.__lexicalTextContent;a!==void 0&&(He+=a,Dn+=a)}else{const a=n.getTextContent();Dn+=a,He+=a}return s}if(n!==o&&r&&Tu(qi,Ui,ja,o,"updated"),o.updateDOM(n,s,jo)){const a=sa(t,null);return e===null&&W(62),e.replaceChild(a,s),ia(t,null),a}if(F(n)&&F(o)){const a=o.__indent;(vr||a!==n.__indent)&&Sh(s,a);const l=o.__format;if((vr||l!==n.__format)&&Th(s,l),r&&(cle(n,o,s),Re(o)||o.isInline()||Ah(n,o,s)),Qa(o)&&(He+=fo,Dn+=fo),(vr||o.__dir!==n.__dir)&&(fc(s,o),Re(o)&&!vr))for(const c of o.getChildren())F(c)&&fc(Ko(it,c.getKey()),c)}else{const a=o.getTextContent();if(Ce(o)){const l=o.decorate(it,jo);l!==null&&Nh(t,l)}He+=a,Dn+=a}if(!ra&&Re(o)&&o.__cachedText!==Dn){const a=o.getWritable();a.__cachedText=Dn,o=a}return s}function Nh(t,e){let n=it._pendingDecorators;const o=it._decorators;if(n===null){if(o[t]===e)return;n=_m(it)}n[t]=e}function Pl(t){let e=t.nextSibling;return e!==null&&e===it._blockCursorElement&&(e=e.nextSibling),e}function ule(t,e,n,o,r,s){He="",Dn="",vr=o===2,it=n,jo=n._config,Ui=n._nodes,ja=it._listeners.mutation,lc=r,cc=s,Wo=t._nodeMap,Xt=e._nodeMap,ra=e._readOnly,uc=new Map(n._keyToDOMMap);const a=new Map;return qi=a,bi("root",null),it=void 0,Ui=void 0,lc=void 0,cc=void 0,Wo=void 0,Xt=void 0,jo=void 0,uc=void 0,qi=void 0,a}function hc(t){const e=uc.get(t);return e===void 0&&W(75,t),e}function le(t){return{type:t}}const Dh=le("SELECTION_CHANGE_COMMAND"),dle=le("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Mh=le("CLICK_COMMAND"),Io=le("DELETE_CHARACTER_COMMAND"),wr=le("INSERT_LINE_BREAK_COMMAND"),Hi=le("INSERT_PARAGRAPH_COMMAND"),Er=le("CONTROLLED_TEXT_INSERTION_COMMAND"),du=le("PASTE_COMMAND"),mc=le("REMOVE_TEXT_COMMAND"),ji=le("DELETE_WORD_COMMAND"),Wi=le("DELETE_LINE_COMMAND"),Yt=le("FORMAT_TEXT_COMMAND"),fu=le("UNDO_COMMAND"),pu=le("REDO_COMMAND"),fle=le("KEYDOWN_COMMAND"),Bh=le("KEY_ARROW_RIGHT_COMMAND"),ple=le("MOVE_TO_END"),$h=le("KEY_ARROW_LEFT_COMMAND"),hle=le("MOVE_TO_START"),Oh=le("KEY_ARROW_UP_COMMAND"),Lh=le("KEY_ARROW_DOWN_COMMAND"),la=le("KEY_ENTER_COMMAND"),Ih=le("KEY_SPACE_COMMAND"),Ph=le("KEY_BACKSPACE_COMMAND"),Fh=le("KEY_ESCAPE_COMMAND"),Rh=le("KEY_DELETE_COMMAND"),Vh=le("KEY_TAB_COMMAND"),mle=le("INSERT_TAB_COMMAND"),gle=le("INDENT_CONTENT_COMMAND"),P1=le("OUTDENT_CONTENT_COMMAND"),zh=le("DROP_COMMAND"),vle=le("FORMAT_ELEMENT_COMMAND"),Uh=le("DRAGSTART_COMMAND"),qh=le("DRAGOVER_COMMAND"),yle=le("DRAGEND_COMMAND"),Wa=le("COPY_COMMAND"),hu=le("CUT_COMMAND"),gc=le("SELECT_ALL_COMMAND"),_le=le("CLEAR_EDITOR_COMMAND"),Cle=le("CLEAR_HISTORY_COMMAND"),Ms=le("CAN_REDO_COMMAND"),Bs=le("CAN_UNDO_COMMAND"),ble=le("FOCUS_COMMAND"),kle=le("BLUR_COMMAND"),wle=le("KEY_MODIFIER_COMMAND"),Sn=Object.freeze({}),vc=[["keydown",function(t,e){if(Si=t.timeStamp,Hh=t.key,!e.isComposing()&&!oe(e,fle,t)&&t.key!=null){if(Fl&&pf(t))return Dt(e,()=>{$s(e,Rl)}),Fl=!1,void(Rl="");if(function(n){return Ee(n,"ArrowRight",{shiftKey:"any"})}(t))oe(e,Bh,t);else if(function(n){return Ee(n,"ArrowRight",An)}(t))oe(e,ple,t);else if(function(n){return Ee(n,"ArrowLeft",{shiftKey:"any"})}(t))oe(e,$h,t);else if(function(n){return Ee(n,"ArrowLeft",An)}(t))oe(e,hle,t);else if(function(n){return Ee(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))oe(e,Oh,t);else if(function(n){return Ee(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))oe(e,Lh,t);else if(function(n){return Ee(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Ti=!0,oe(e,la,t);else if(function(n){return n.key===" "}(t))oe(e,Ih,t);else if(function(n){return Gt&&Ee(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Ti=!0,oe(e,wr,!0);else if(function(n){return Ee(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Ti=!1,oe(e,la,t);else if(function(n){return Ee(n,"Backspace",{shiftKey:"any"})||Gt&&Ee(n,"h",{ctrlKey:!0})}(t))pf(t)?oe(e,Ph,t):(t.preventDefault(),oe(e,Io,!0));else if(function(n){return n.key==="Escape"}(t))oe(e,Fh,t);else if(function(n){return Ee(n,"Delete",{})||Gt&&Ee(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?oe(e,Rh,t):(t.preventDefault(),oe(e,Io,!1));else if(function(n){return Ee(n,"Backspace",ff)}(t))t.preventDefault(),oe(e,ji,!0);else if(function(n){return Ee(n,"Delete",ff)}(t))t.preventDefault(),oe(e,ji,!1);else if(function(n){return Gt&&Ee(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),oe(e,Wi,!0);else if(function(n){return Gt&&(Ee(n,"Delete",{metaKey:!0})||Ee(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),oe(e,Wi,!1);else if(function(n){return Ee(n,"b",An)}(t))t.preventDefault(),oe(e,Yt,"bold");else if(function(n){return Ee(n,"u",An)}(t))t.preventDefault(),oe(e,Yt,"underline");else if(function(n){return Ee(n,"i",An)}(t))t.preventDefault(),oe(e,Yt,"italic");else if(function(n){return Ee(n,"Tab",{shiftKey:"any"})}(t))oe(e,Vh,t);else if(function(n){return Ee(n,"z",An)}(t))t.preventDefault(),oe(e,fu,void 0);else if(function(n){return Gt?Ee(n,"z",{metaKey:!0,shiftKey:!0}):Ee(n,"y",{ctrlKey:!0})||Ee(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),oe(e,pu,void 0);else{const n=e._editorState._selection;n===null||Z(n)?hf(t)&&(t.preventDefault(),oe(e,gc,t)):function(o){return Ee(o,"c",An)}(t)?(t.preventDefault(),oe(e,Wa,t)):function(o){return Ee(o,"x",An)}(t)?(t.preventDefault(),oe(e,hu,t)):hf(t)&&(t.preventDefault(),oe(e,gc,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&oe(e,wle,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Wr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&Dt(e,()=>{cf(n)||(Cc=!0)})}],["compositionstart",function(t,e){Dt(e,()=>{const n=re();if(Z(n)&&!e.isComposing()){const o=n.anchor,r=n.anchor.getNode();Xe(o.key),(t.timeStamp<Si+30||o.type==="element"||!n.isCollapsed()||r.getFormat()!==n.format||X(r)&&r.getStyle()!==n.style)&&oe(e,Er,Kae)}})}],["compositionend",function(t,e){Ho?mi=!0:Lr||!Vi&&!zi?Dt(e,()=>{$s(e,t.data)}):(Fl=!0,Rl=t.data)}],["input",function(t,e){t.stopPropagation(),Dt(e,()=>{if(ze(t.target)&&cf(t.target))return;const n=re(),o=t.data,r=Gh(t);if(o!=null&&Z(n)&&Zh(n,r,o,t.timeStamp,!1)){mi&&($s(e,o),mi=!1);const s=n.anchor.getNode(),a=tn(qt(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;na&&!n.isCollapsed()&&X(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===wm(a.anchorNode)||oe(e,Er,o);const d=o.length;Ho&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),Vi||Lr||zi||!e.isComposing()||(Si=0,Xe(null))}else xu(!1,e,o!==null?o:void 0),mi&&($s(e,o||void 0),mi=!1);(function(){Ge();const s=$e();Ch(s)})()},{event:t}),yr=null}],["click",function(t,e){Dt(e,()=>{const n=re(),o=tn(qt(e)),r=jr();if(o){if(Z(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!Re(a)&&Ie().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&r!==null&&n.is(r))o.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){const l=Ln(a,c=>F(c)&&!c.isInline());F(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(ze(s)||Hn(s))&&_t(gu(r,o,e,t))}}oe(e,Mh,t)})}],["cut",Sn],["copy",Sn],["dragstart",Sn],["dragover",Sn],["dragend",Sn],["paste",Sn],["focus",Sn],["blur",Sn],["drop",Sn]];na&&vc.push(["beforeinput",(t,e)=>function(n,o){const r=n.inputType,s=Gh(n);r==="deleteCompositionText"||Ho&&Em(o)||r!=="insertCompositionText"&&Dt(o,()=>{const a=re();if(r==="deleteContentBackward"){if(a===null){const h=jr();if(!Z(h))return;_t(h.clone())}if(Z(a)){const h=a.anchor.key===a.focus.key;if(l=n.timeStamp,Hh==="MediaLast"&&l<Si+30&&o.isComposing()&&h){if(Xe(null),Si=0,setTimeout(()=>{Dt(o,()=>{Xe(null)})},30),Z(a)){const m=a.anchor.getNode();m.markDirty(),X(m)||W(142),Kh(a,m)}}else{Xe(null),n.preventDefault();const m=a.anchor.getNode(),g=m.getTextContent(),y=m.canInsertTextAfter(),_=a.anchor.offset===0&&a.focus.offset===g.length;let C=x1&&h&&!_&&y;if(C&&a.isCollapsed()&&(C=!Ce(Sc(a.anchor,!0))),!C){oe(o,Io,!0);const v=re();x1&&Z(v)&&v.isCollapsed()&&(Mo=v,setTimeout(()=>Mo=null))}}return}}var l;if(!Z(a))return;const c=n.data;yr!==null&&xu(!1,o,yr),a.dirty&&yr===null||!a.isCollapsed()||Re(a.anchor.getNode())||s===null||a.applyDOMRange(s),yr=null;const u=a.anchor,d=a.focus,f=u.getNode(),p=d.getNode();if(r!=="insertText"&&r!=="insertTranspose")switch(n.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":oe(o,Er,n);break;case"insertFromComposition":Xe(null),oe(o,Er,n);break;case"insertLineBreak":Xe(null),oe(o,wr,!1);break;case"insertParagraph":Xe(null),Ti&&!Lr?(Ti=!1,oe(o,wr,!1)):oe(o,Hi,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":oe(o,du,n);break;case"deleteByComposition":(function(h,m){return h!==m||F(h)||F(m)||!Fo(h)||!Fo(m)})(f,p)&&oe(o,mc,n);break;case"deleteByDrag":case"deleteByCut":oe(o,mc,n);break;case"deleteContent":oe(o,Io,!1);break;case"deleteWordBackward":oe(o,ji,!0);break;case"deleteWordForward":oe(o,ji,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":oe(o,Wi,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":oe(o,Wi,!1);break;case"formatStrikeThrough":oe(o,Yt,"strikethrough");break;case"formatBold":oe(o,Yt,"bold");break;case"formatItalic":oe(o,Yt,"italic");break;case"formatUnderline":oe(o,Yt,"underline");break;case"historyUndo":oe(o,fu,void 0);break;case"historyRedo":oe(o,pu,void 0)}else{if(c===`
|
|
21
|
+
`,Xae=Ho?" ":Ha,lt={bold:1,capitalize:1024,code:16,highlight:vh,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Qae={directionless:1,unmergeable:2},S1={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"},T1="$config";function yh(t,e,n,o,r,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(F(a)&&yh(a,l,n,o,r,s),n.has(l)||s.delete(l),r.push(l)),a=a.getNextSibling()}}let ac=!1,uu=0;function ole(t){uu=t.timeStamp}function Ll(t,e,n){const o=t.nodeName==="BR",r=e.__lexicalLineBreak;return r&&(t===r||o&&t.previousSibling===r)||o&&Xa(t,n)!==void 0}function rle(t,e,n){const o=tn(qt(n));let r=null,s=null;o!==null&&o.anchorNode===t&&(r=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&Su(e,a,r,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 Hn(e)&&n.isAttached()}function sle(t,e,n,o){for(let r=t;r&&!uce(r);r=ds(r)){const s=Xa(r,e);if(s!==void 0){const a=We(s,n);if(a)return Ce(a)||!ze(r)?void 0:[r,a]}else if(r===o)return[o,Cm(n)]}}function _h(t,e,n){ac=!0;const o=performance.now()-uu>100;try{Dt(t,()=>{const r=re()||function(p){return p.getEditorState().read(()=>{const h=re();return h!==null?h.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 h=e[p],m=h.type,g=h.target,y=sle(g,t,l,a);if(!y)continue;const[_,C]=y;if(m==="characterData")o&&X(C)&&Hn(g)&&ile(r,g,C)&&rle(g,C,t);else if(m==="childList"){u=!0;const v=h.addedNodes;for(let b=0;b<v.length;b++){const E=v[b],S=ym(E),T=E.parentNode;if(T!=null&&E!==c&&S===null&&!Ll(E,T,t)){if(Ho){const A=(ze(E)?E.innerText:null)||E.nodeValue;A&&(d+=A)}T.removeChild(E)}}const w=h.removedNodes,k=w.length;if(k>0){let b=0;for(let E=0;E<k;E++){const S=w[E];(Ll(S,g,t)||c===S)&&(g.appendChild(S),b++)}k!==b&&s.set(_,C)}}}if(s.size>0)for(const[p,h]of s)h.reconcileObservedMutation(p,t);const f=n.takeRecords();if(f.length>0){for(let p=0;p<f.length;p++){const h=f[p],m=h.addedNodes,g=h.target;for(let y=0;y<m.length;y++){const _=m[y],C=_.parentNode;C==null||_.nodeName!=="BR"||Ll(_,g,t)||C.removeChild(_)}}n.takeRecords()}r!==null&&(u&&_t(r),Ho&&Em(t)&&r.insertRawText(d))})}finally{ac=!1}}function Ch(t){const e=t._observer;e!==null&&_h(t,e.takeRecords(),e)}function bh(t){(function(e){uu===0&&qt(e).addEventListener("textInput",ole,!0)})(t),t._observer=new MutationObserver((e,n)=>{_h(t,e,n)})}let ale=class{constructor(e,n){z(this,"key");z(this,"parse");z(this,"unparse");z(this,"isEqual");z(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 kh(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function Il(t,e,n){let o;if(Ge(),typeof n=="function"){const s=t.getLatest(),a=kh(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const r=t.getWritable();return Eh(r).updateFromKnown(e,o),r}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:r}=tl(o);if(r&&r.stateConfigs)for(const s of r.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 wh{constructor(e,n,o=void 0,r=new Map,s=void 0){z(this,"node");z(this,"knownState");z(this,"unknownState");z(this,"sharedNodeState");z(this,"size");this.node=e,this.sharedNodeState=n,this.unknownState=o,this.knownState=r;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 h=c.get(p);h&&d.has(h)||f++}return f}(a,o,r);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 r=this.unknownState[e.key];r!==void 0&&(o=e.parse(r)),this.updateFromKnown(e,o)}return o}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},n={};for(const[o,r]of this.knownState)o.isEqual(r,o.defaultValue)?delete e[o.key]:e[o.key]=o.unparse(r);for(const o of this.sharedNodeState.flatKeys)o in e&&(n[o]=e[o],delete e[o]);return A1(e)&&(n.$=e),n}getWritable(e){if(this.node===e)return this;const{sharedNodeState:n,unknownState:o}=this,r=new Map(this.knownState);return new wh(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,r,o),r,this.size)}updateFromKnown(e,n){const o=e.key;this.sharedNodeState.sharedConfigMap.set(o,e);const{knownState:r,unknownState:s}=this;r.has(e)||s&&o in s||(s&&(delete s[o],this.unknownState=A1(s)),this.size++),r.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,r]of Object.entries(e))this.updateFromUnknown(o,r)}};function Eh(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new ule(e,xh(e));return e.__state=n,n}function xh(t){return t.__state?t.__state.sharedNodeState:hm(el(),t.getType()).sharedNodeState}function A1(t){if(t)for(const e in t)return t}function dle(t){return t}function N1(t,e,n){for(const[o,r]of e.knownState){if(t.has(o.key))continue;t.add(o.key);const s=n?n.getValue(o):o.defaultValue;if(s!==r&&!o.isEqual(s,r))return!0}return!1}function D1(t,e,n){const{unknownState:o}=e,r=n?n.unknownState:void 0;if(o){for(const[s,a]of Object.entries(o))if(!t.has(s)&&(t.add(s),a!==(r?r[s]:void 0)))return!0}return!1}function M1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function B1(t,e){const n=t.__mode,o=t.__format,r=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)&&(r===null||r===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&&N1(p,d,f)||f&&N1(p,f,d)||d&&D1(p,d,f)||f&&D1(p,f,d))}(c,u))}function $1(t,e){const n=t.mergeWithSibling(e),o=$e()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function O1(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(B1(e,o)){o=$1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(B1(o,n)){o=$1(o,n);break}break}n.remove()}}else o.remove()}function oa(t){return L1(t.anchor),L1(t.focus),t}function L1(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let o,r;if(n===e.getChildrenSize()?(o=e.getChildAtIndex(n-1),r=!0):(o=e.getChildAtIndex(n),r=!1),X(o)){t.set(o.__key,r?o.getTextContentSize():0,"text",!0);break}if(!F(o))break;t.set(o.__key,r?o.getChildrenSize():0,"element",!0)}}let jo,it,Ui,ja,lc,cc,Wo,Xt,uc,qi,He="",un=null,dn="",Dn="",vr=!1,ra=!1;function ia(t,e){const n=Wo.get(t);if(e!==null){const o=hc(t);o.parentNode===e&&e.removeChild(o)}if(Xt.has(t)||it._keyToDOMMap.delete(t),F(n)){const o=aa(n,Wo);dc(o,0,o.length-1,null)}n!==void 0&&Tu(qi,Ui,ja,n,"destroyed")}function dc(t,e,n,o){let r=e;for(;r<=n;++r){const s=t[r];s!==void 0&&ia(s,o)}}function So(t,e){t.setProperty("text-align",e)}const fle="40px";function Sh(t,e){const n=jo.theme.indent;if(typeof n=="string"){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&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 Th(t,e){const n=t.style;e===0?So(n,""):e===1?So(n,"left"):e===2?So(n,"center"):e===3?So(n,"right"):e===4?So(n,"justify"):e===5?So(n,"start"):e===6&&So(n,"end")}function fc(t,e){const n=function(o){const r=o.__dir;if(r!==null)return r;if(Re(o))return null;const s=o.getParentOrThrow();return Re(s)&&s.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function sa(t,e){const n=Xt.get(t);n===void 0&&W(60);const o=n.createDOM(jo,it);if(function(r,s,a){const l=a._keyToDOMMap;(function(c,u,d){const f=`__lexicalKey_${u._key}`;c[f]=d})(s,a,r),l.set(r,s)}(t,o,it),X(n)?o.setAttribute("data-lexical-text","true"):Ce(n)&&o.setAttribute("data-lexical-decorator","true"),F(n)){const r=n.__indent,s=n.__size;if(fc(o,n),r!==0&&Sh(o,r),s!==0){const l=s-1;pc(aa(n,Xt),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&Th(o,a),n.isInline()||Ah(null,n,o),Qa(n)&&(He+=fo,Dn+=fo)}else{const r=n.getTextContent();if(Ce(n)){const s=n.decorate(it,jo);s!==null&&Nh(t,s),o.contentEditable="false"}He+=r,Dn+=r}return e!==null&&e.insertChild(o),Tu(qi,Ui,ja,n,"created"),o}function pc(t,e,n,o,r){const s=He;He="";let a=n;for(;a<=o;++a){sa(t[a],r);const l=Xt.get(t[a]);l!==null&&X(l)&&(un===null&&(un=l.getFormat()),dn===""&&(dn=l.getStyle()))}Qa(e)&&(He+=fo),r.element.__lexicalTextContent=He,He=s+He}function I1(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return Po(o)?"line-break":Ce(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Ah(t,e,n){const o=I1(t,Wo),r=I1(e,Xt);o!==r&&e.getDOMSlot(n).setManagedLineBreak(r)}function ple(t,e,n){var o;un=null,dn="",function(r,s,a){const l=He,c=r.__size,u=s.__size;He="";const d=a.element;if(c===1&&u===1){const f=r.__first,p=s.__first;if(f===p)bi(f,d);else{const m=hc(f),g=sa(p,null);try{d.replaceChild(g,m)}catch(y){if(typeof y=="object"&&y!=null){const _=`${y.toString()} Parent: ${d.tagName}, new child: {tag: ${g.tagName} key: ${p}}, old child: {tag: ${m.tagName}, key: ${f}}.`;throw new Error(_)}throw y}ia(f,null)}const h=Xt.get(p);X(h)&&(un===null&&(un=h.getFormat()),dn===""&&(dn=h.getStyle()))}else{const f=aa(r,Wo),p=aa(s,Xt);if(f.length!==c&&W(227),p.length!==u&&W(228),c===0)u!==0&&pc(p,s,0,u-1,a);else if(u===0){if(c!==0){const h=a.after==null&&a.before==null&&a.element.__lexicalLineBreak==null;dc(f,0,c-1,h?null:d),h&&(d.textContent="")}}else(function(h,m,g,y,_,C){const v=y-1,w=_-1;let k,b,E=C.getFirstChild(),S=0,T=0;for(;S<=v&&T<=w;){const I=m[S],U=g[T];if(I===U)E=Pl(bi(U,C.element)),S++,T++;else{k===void 0&&(k=new Set(m)),b===void 0&&(b=new Set(g));const H=b.has(I),L=k.has(U);if(H)if(L){const ee=Ko(it,U);ee===E?E=Pl(bi(U,C.element)):(C.withBefore(E).insertChild(ee),bi(U,C.element)),S++,T++}else sa(U,C.withBefore(E)),T++;else E=Pl(hc(I)),ia(I,C.element),S++}const $=Xt.get(U);$!==null&&X($)&&(un===null&&(un=$.getFormat()),dn===""&&(dn=$.getStyle()))}const A=S>v,V=T>w;if(A&&!V){const I=g[w+1],U=I===void 0?null:it.getElementByKey(I);pc(g,h,T,w,C.withBefore(U))}else V&&!A&&dc(m,S,v,C.element)})(s,f,p,c,u,a)}Qa(s)&&(He+=fo),d.__lexicalTextContent=He,He=l+He}(t,e,e.getDOMSlot(n)),o=e,un==null||un===o.__textFormat||ra||o.setTextFormat(un),function(r){dn===""||dn===r.__textStyle||ra||r.setTextStyle(dn)}(e)}function aa(t,e){const n=[];let o=t.__first;for(;o!==null;){const r=e.get(o);r===void 0&&W(101),n.push(o),o=r.__next}return n}function bi(t,e){const n=Wo.get(t);let o=Xt.get(t);n!==void 0&&o!==void 0||W(61);const r=vr||cc.has(t)||lc.has(t),s=Ko(it,t);if(n===o&&!r){if(F(n)){const a=s.__lexicalTextContent;a!==void 0&&(He+=a,Dn+=a)}else{const a=n.getTextContent();Dn+=a,He+=a}return s}if(n!==o&&r&&Tu(qi,Ui,ja,o,"updated"),o.updateDOM(n,s,jo)){const a=sa(t,null);return e===null&&W(62),e.replaceChild(a,s),ia(t,null),a}if(F(n)&&F(o)){const a=o.__indent;(vr||a!==n.__indent)&&Sh(s,a);const l=o.__format;if((vr||l!==n.__format)&&Th(s,l),r&&(ple(n,o,s),Re(o)||o.isInline()||Ah(n,o,s)),Qa(o)&&(He+=fo,Dn+=fo),(vr||o.__dir!==n.__dir)&&(fc(s,o),Re(o)&&!vr))for(const c of o.getChildren())F(c)&&fc(Ko(it,c.getKey()),c)}else{const a=o.getTextContent();if(Ce(o)){const l=o.decorate(it,jo);l!==null&&Nh(t,l)}He+=a,Dn+=a}if(!ra&&Re(o)&&o.__cachedText!==Dn){const a=o.getWritable();a.__cachedText=Dn,o=a}return s}function Nh(t,e){let n=it._pendingDecorators;const o=it._decorators;if(n===null){if(o[t]===e)return;n=_m(it)}n[t]=e}function Pl(t){let e=t.nextSibling;return e!==null&&e===it._blockCursorElement&&(e=e.nextSibling),e}function hle(t,e,n,o,r,s){He="",Dn="",vr=o===2,it=n,jo=n._config,Ui=n._nodes,ja=it._listeners.mutation,lc=r,cc=s,Wo=t._nodeMap,Xt=e._nodeMap,ra=e._readOnly,uc=new Map(n._keyToDOMMap);const a=new Map;return qi=a,bi("root",null),it=void 0,Ui=void 0,lc=void 0,cc=void 0,Wo=void 0,Xt=void 0,jo=void 0,uc=void 0,qi=void 0,a}function hc(t){const e=uc.get(t);return e===void 0&&W(75,t),e}function le(t){return{type:t}}const Dh=le("SELECTION_CHANGE_COMMAND"),mle=le("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Mh=le("CLICK_COMMAND"),Io=le("DELETE_CHARACTER_COMMAND"),wr=le("INSERT_LINE_BREAK_COMMAND"),Hi=le("INSERT_PARAGRAPH_COMMAND"),Er=le("CONTROLLED_TEXT_INSERTION_COMMAND"),du=le("PASTE_COMMAND"),mc=le("REMOVE_TEXT_COMMAND"),ji=le("DELETE_WORD_COMMAND"),Wi=le("DELETE_LINE_COMMAND"),Yt=le("FORMAT_TEXT_COMMAND"),fu=le("UNDO_COMMAND"),pu=le("REDO_COMMAND"),gle=le("KEYDOWN_COMMAND"),Bh=le("KEY_ARROW_RIGHT_COMMAND"),vle=le("MOVE_TO_END"),$h=le("KEY_ARROW_LEFT_COMMAND"),yle=le("MOVE_TO_START"),Oh=le("KEY_ARROW_UP_COMMAND"),Lh=le("KEY_ARROW_DOWN_COMMAND"),la=le("KEY_ENTER_COMMAND"),Ih=le("KEY_SPACE_COMMAND"),Ph=le("KEY_BACKSPACE_COMMAND"),Fh=le("KEY_ESCAPE_COMMAND"),Rh=le("KEY_DELETE_COMMAND"),Vh=le("KEY_TAB_COMMAND"),_le=le("INSERT_TAB_COMMAND"),Cle=le("INDENT_CONTENT_COMMAND"),P1=le("OUTDENT_CONTENT_COMMAND"),zh=le("DROP_COMMAND"),ble=le("FORMAT_ELEMENT_COMMAND"),Uh=le("DRAGSTART_COMMAND"),qh=le("DRAGOVER_COMMAND"),kle=le("DRAGEND_COMMAND"),Wa=le("COPY_COMMAND"),hu=le("CUT_COMMAND"),gc=le("SELECT_ALL_COMMAND"),wle=le("CLEAR_EDITOR_COMMAND"),Ele=le("CLEAR_HISTORY_COMMAND"),Ms=le("CAN_REDO_COMMAND"),Bs=le("CAN_UNDO_COMMAND"),xle=le("FOCUS_COMMAND"),Sle=le("BLUR_COMMAND"),Tle=le("KEY_MODIFIER_COMMAND"),Sn=Object.freeze({}),vc=[["keydown",function(t,e){if(Si=t.timeStamp,Hh=t.key,!e.isComposing()&&!oe(e,gle,t)&&t.key!=null){if(Fl&&pf(t))return Dt(e,()=>{$s(e,Rl)}),Fl=!1,void(Rl="");if(function(n){return Ee(n,"ArrowRight",{shiftKey:"any"})}(t))oe(e,Bh,t);else if(function(n){return Ee(n,"ArrowRight",An)}(t))oe(e,vle,t);else if(function(n){return Ee(n,"ArrowLeft",{shiftKey:"any"})}(t))oe(e,$h,t);else if(function(n){return Ee(n,"ArrowLeft",An)}(t))oe(e,yle,t);else if(function(n){return Ee(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))oe(e,Oh,t);else if(function(n){return Ee(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))oe(e,Lh,t);else if(function(n){return Ee(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Ti=!0,oe(e,la,t);else if(function(n){return n.key===" "}(t))oe(e,Ih,t);else if(function(n){return Gt&&Ee(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Ti=!0,oe(e,wr,!0);else if(function(n){return Ee(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Ti=!1,oe(e,la,t);else if(function(n){return Ee(n,"Backspace",{shiftKey:"any"})||Gt&&Ee(n,"h",{ctrlKey:!0})}(t))pf(t)?oe(e,Ph,t):(t.preventDefault(),oe(e,Io,!0));else if(function(n){return n.key==="Escape"}(t))oe(e,Fh,t);else if(function(n){return Ee(n,"Delete",{})||Gt&&Ee(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?oe(e,Rh,t):(t.preventDefault(),oe(e,Io,!1));else if(function(n){return Ee(n,"Backspace",ff)}(t))t.preventDefault(),oe(e,ji,!0);else if(function(n){return Ee(n,"Delete",ff)}(t))t.preventDefault(),oe(e,ji,!1);else if(function(n){return Gt&&Ee(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),oe(e,Wi,!0);else if(function(n){return Gt&&(Ee(n,"Delete",{metaKey:!0})||Ee(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),oe(e,Wi,!1);else if(function(n){return Ee(n,"b",An)}(t))t.preventDefault(),oe(e,Yt,"bold");else if(function(n){return Ee(n,"u",An)}(t))t.preventDefault(),oe(e,Yt,"underline");else if(function(n){return Ee(n,"i",An)}(t))t.preventDefault(),oe(e,Yt,"italic");else if(function(n){return Ee(n,"Tab",{shiftKey:"any"})}(t))oe(e,Vh,t);else if(function(n){return Ee(n,"z",An)}(t))t.preventDefault(),oe(e,fu,void 0);else if(function(n){return Gt?Ee(n,"z",{metaKey:!0,shiftKey:!0}):Ee(n,"y",{ctrlKey:!0})||Ee(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),oe(e,pu,void 0);else{const n=e._editorState._selection;n===null||Z(n)?hf(t)&&(t.preventDefault(),oe(e,gc,t)):function(o){return Ee(o,"c",An)}(t)?(t.preventDefault(),oe(e,Wa,t)):function(o){return Ee(o,"x",An)}(t)?(t.preventDefault(),oe(e,hu,t)):hf(t)&&(t.preventDefault(),oe(e,gc,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;Wr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&Dt(e,()=>{cf(n)||(Cc=!0)})}],["compositionstart",function(t,e){Dt(e,()=>{const n=re();if(Z(n)&&!e.isComposing()){const o=n.anchor,r=n.anchor.getNode();Xe(o.key),(t.timeStamp<Si+30||o.type==="element"||!n.isCollapsed()||r.getFormat()!==n.format||X(r)&&r.getStyle()!==n.style)&&oe(e,Er,Xae)}})}],["compositionend",function(t,e){Ho?mi=!0:Lr||!Vi&&!zi?Dt(e,()=>{$s(e,t.data)}):(Fl=!0,Rl=t.data)}],["input",function(t,e){t.stopPropagation(),Dt(e,()=>{if(ze(t.target)&&cf(t.target))return;const n=re(),o=t.data,r=Gh(t);if(o!=null&&Z(n)&&Zh(n,r,o,t.timeStamp,!1)){mi&&($s(e,o),mi=!1);const s=n.anchor.getNode(),a=tn(qt(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;na&&!n.isCollapsed()&&X(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===wm(a.anchorNode)||oe(e,Er,o);const d=o.length;Ho&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),Vi||Lr||zi||!e.isComposing()||(Si=0,Xe(null))}else xu(!1,e,o!==null?o:void 0),mi&&($s(e,o||void 0),mi=!1);(function(){Ge();const s=$e();Ch(s)})()},{event:t}),yr=null}],["click",function(t,e){Dt(e,()=>{const n=re(),o=tn(qt(e)),r=jr();if(o){if(Z(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!Re(a)&&Ie().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&r!==null&&n.is(r))o.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){const l=Ln(a,c=>F(c)&&!c.isInline());F(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(ze(s)||Hn(s))&&_t(gu(r,o,e,t))}}oe(e,Mh,t)})}],["cut",Sn],["copy",Sn],["dragstart",Sn],["dragover",Sn],["dragend",Sn],["paste",Sn],["focus",Sn],["blur",Sn],["drop",Sn]];na&&vc.push(["beforeinput",(t,e)=>function(n,o){const r=n.inputType,s=Gh(n);r==="deleteCompositionText"||Ho&&Em(o)||r!=="insertCompositionText"&&Dt(o,()=>{const a=re();if(r==="deleteContentBackward"){if(a===null){const h=jr();if(!Z(h))return;_t(h.clone())}if(Z(a)){const h=a.anchor.key===a.focus.key;if(l=n.timeStamp,Hh==="MediaLast"&&l<Si+30&&o.isComposing()&&h){if(Xe(null),Si=0,setTimeout(()=>{Dt(o,()=>{Xe(null)})},30),Z(a)){const m=a.anchor.getNode();m.markDirty(),X(m)||W(142),Kh(a,m)}}else{Xe(null),n.preventDefault();const m=a.anchor.getNode(),g=m.getTextContent(),y=m.canInsertTextAfter(),_=a.anchor.offset===0&&a.focus.offset===g.length;let C=x1&&h&&!_&&y;if(C&&a.isCollapsed()&&(C=!Ce(Sc(a.anchor,!0))),!C){oe(o,Io,!0);const v=re();x1&&Z(v)&&v.isCollapsed()&&(Mo=v,setTimeout(()=>Mo=null))}}return}}var l;if(!Z(a))return;const c=n.data;yr!==null&&xu(!1,o,yr),a.dirty&&yr===null||!a.isCollapsed()||Re(a.anchor.getNode())||s===null||a.applyDOMRange(s),yr=null;const u=a.anchor,d=a.focus,f=u.getNode(),p=d.getNode();if(r!=="insertText"&&r!=="insertTranspose")switch(n.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":oe(o,Er,n);break;case"insertFromComposition":Xe(null),oe(o,Er,n);break;case"insertLineBreak":Xe(null),oe(o,wr,!1);break;case"insertParagraph":Xe(null),Ti&&!Lr?(Ti=!1,oe(o,wr,!1)):oe(o,Hi,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":oe(o,du,n);break;case"deleteByComposition":(function(h,m){return h!==m||F(h)||F(m)||!Fo(h)||!Fo(m)})(f,p)&&oe(o,mc,n);break;case"deleteByDrag":case"deleteByCut":oe(o,mc,n);break;case"deleteContent":oe(o,Io,!1);break;case"deleteWordBackward":oe(o,ji,!0);break;case"deleteWordForward":oe(o,ji,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":oe(o,Wi,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":oe(o,Wi,!1);break;case"formatStrikeThrough":oe(o,Yt,"strikethrough");break;case"formatBold":oe(o,Yt,"bold");break;case"formatItalic":oe(o,Yt,"italic");break;case"formatUnderline":oe(o,Yt,"underline");break;case"historyUndo":oe(o,fu,void 0);break;case"historyRedo":oe(o,pu,void 0)}else{if(c===`
|
|
22
22
|
`)n.preventDefault(),oe(o,wr,!1);else if(c===fo)n.preventDefault(),oe(o,Hi,void 0);else if(c==null&&n.dataTransfer){const h=n.dataTransfer.getData("text/plain");n.preventDefault(),a.insertRawText(h)}else c!=null&&Zh(a,s,c,n.timeStamp,!0)?(n.preventDefault(),oe(o,Er,c)):yr=c;jh=n.timeStamp}})}(t,e)]);let Si=0,Hh=null,jh=0,yr=null;const yc=new WeakMap,ca=new WeakMap;let _c=!1,Cc=!1,Ti=!1,mi=!1,Fl=!1,Rl="",Mo=null,Wh=[0,"",0,"root",0];function Zh(t,e,n,o,r){const s=t.anchor,a=t.focus,l=s.getNode(),c=$e(),u=tn(qt(c)),d=u!==null?u.anchorNode:null,f=s.key,p=c.getElementByKey(f),h=n.length;return f!==a.key||!X(l)||(!r&&(!na||jh<o+50)||l.isDirty()&&h<2||bm(n))&&s.offset!==a.offset&&!l.isComposing()||Nn(l)||l.isDirty()&&h>1||(r||!na)&&p!==null&&!l.isComposing()&&d!==Ir(p)||u!==null&&e!==null&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||l.getFormat()!==t.format||l.getStyle()!==t.style||function(m,g){if(g.isSegmented())return!0;if(!m.isCollapsed())return!1;const y=m.anchor.offset,_=g.getParentOrThrow(),C=Fo(g);return y===0?!g.canInsertTextBefore()||!_.canInsertTextBefore()&&!g.isComposing()||C||function(v){const w=v.getPreviousSibling();return(X(w)||F(w)&&w.isInline())&&!w.canInsertTextAfter()}(g):y===g.getTextContentSize()&&(!g.canInsertTextAfter()||!_.canInsertTextAfter()&&!g.isComposing()||C)}(t,l)}function F1(t,e){return Hn(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function R1(t,e,n){const{anchorNode:o,anchorOffset:r,focusNode:s,focusOffset:a}=t;_c&&(_c=!1,F1(o,r)&&F1(s,a)&&!Mo)||Dt(e,()=>{if(!n)return void _t(null);if(!us(e,o,s))return;let l=re();if(Mo&&Z(l)&&l.isCollapsed()){const c=l.anchor,u=Mo.anchor;(c.key===u.key&&c.offset===u.offset+1||c.offset===1&&u.getNode().is(c.getNode().getPreviousSibling()))&&(l=Mo.clone(),_t(l))}if(Mo=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=qt(e).event,f=d?d.timeStamp:performance.now(),[p,h,m,g,y]=Wh,_=Ie(),C=e.isComposing()===!1&&_.getTextContent()==="";if(f<y+200&&c.offset===m&&c.key===g)qs(l,p,h);else if(c.type==="text")X(u)||W(141),Kh(l,u);else if(c.type==="element"&&!C){F(u)||W(259);const v=c.getNode();v.isEmpty()?function(w,k){const b=k.getTextFormat(),E=k.getTextStyle();qs(w,b,E)}(l,v):qs(l,0,"")}}else{const d=c.key,f=l.focus.key,p=l.getNodes(),h=p.length,m=l.isBackward(),g=m?a:r,y=m?r:a,_=m?f:d,C=m?d:f;let v=2047,w=!1;for(let k=0;k<h;k++){const b=p[k],E=b.getTextContentSize();if(X(b)&&E!==0&&!(k===0&&b.__key===_&&g===E||k===h-1&&b.__key===C&&y===0)&&(w=!0,v&=b.getFormat(),v===0))break}l.format=w?v:0}}oe(e,Dh,void 0)})}function qs(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function Kh(t,e){qs(t,e.getFormat(),e.getStyle())}function Gh(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function $s(t,e){const n=t._compositionKey;if(Xe(null),n!==null&&e!=null){if(e===""){const o=We(n),r=Ir(t.getElementByKey(n));return void(r!==null&&r.nodeValue!==null&&X(o)&&Su(o,r.nodeValue,null,null,!0))}if(e[e.length-1]===`
|
|
23
|
-
`){const o=re();if(Z(o)){const r=o.focus;return o.anchor.set(r.key,r.offset,r.type),void oe(t,la,null)}}}xu(!0,t,e)}function Yh(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const xr=new Map;function Jh(t){const e=
|
|
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&&ma(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Os(r)){const s=o.lastChild;if(s===n||s.previousSibling===n&&Os(s))return!0}}return!1}(e)||function(n){const o=n.parentElement;if(o!==null&&ma(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Os(r))return!1;const s=o.lastChild;if(s===n||s.previousSibling===n&&Os(s))return!0}return!1}(e)?null:{conversion:
|
|
23
|
+
`){const o=re();if(Z(o)){const r=o.focus;return o.anchor.set(r.key,r.offset,r.type),void oe(t,la,null)}}}xu(!0,t,e)}function Yh(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const xr=new Map;function Jh(t){const e=ace(t.target);if(e===null)return;const n=mm(e.anchorNode);if(n===null)return;Cc&&(Cc=!1,Dt(n,()=>{const c=jr(),u=e.anchorNode;(ze(u)||Hn(u))&&_t(gu(c,e,n,t))}));const o=Eu(n),r=o[o.length-1],s=r._key,a=xr.get(s),l=a||r;l!==n&&R1(e,l,!1),R1(e,n,!0),n!==r?xr.set(s,n):a&&xr.delete(s)}function V1(t){t._lexicalHandled=!0}function z1(t){return t._lexicalHandled===!0}const U1=()=>{};function Ale(t){const e=yc.get(t);if(e===void 0)return void U1();const n=ca.get(e);if(n===void 0)return void U1();const o=n-1;o>=0||W(164),yc.delete(t),ca.set(e,o),o===0&&e.removeEventListener("selectionchange",Jh);const r=Ja(t);wu(r)?(function(a){if(a._parentEditor!==null){const l=Eu(a),c=l[l.length-1]._key;xr.get(c)===a&&xr.delete(c)}else xr.delete(a._key)}(r),t.__lexicalEditor=null):r&&W(198);const s=Yh(t);for(let a=0;a<s.length;a++)s[a]();t.__lexicalEventHandles=[]}function bc(t,e,n){Ge();const o=t.__key,r=t.getParent();if(r===null)return;const s=function(l){const c=re();if(!Z(c)||!F(l))return c;const{anchor:u,focus:d}=c,f=u.getNode(),p=d.getNode();return Tc(f,l)&&u.set(l.__key,0,"element"),Tc(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&&(fa(l,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0),c.key===o&&(fa(c,t,r,t.getPreviousSibling(),t.getNextSibling()),a=!0)}else At(s)&&e&&t.isSelected()&&t.selectPrevious();if(Z(s)&&e&&!a){const l=t.getIndexWithinParent();Ro(t),da(s,r,l,-1)}else Ro(t);n||Bt(r)||r.canBeEmpty()||!r.isEmpty()||bc(r,e),e&&s&&Re(r)&&r.isEmpty()&&r.selectEnd()}const Xh=Symbol.for("ephemeral");function ua(t){return t[Xh]||!1}class Qt{constructor(e){z(this,"__type");z(this,"__key");z(this,"__parent");z(this,"__prev");z(this,"__next");z(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}),ece(this,e)}static getType(){const{ownNodeType:e}=tl(this);return e===void 0&&W(64,this.name),e}static clone(e){W(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(){W(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=We(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||re();if(n==null)return!1;const o=n.getNodes().some(r=>r.__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 r=this.getParent();if(Ce(this)&&this.isInline()&&r){const s=n.isBackward()?n.focus:n.anchor;if(r.is(s.getNode())&&s.offset===r.getChildrenSize()&&this.is(r.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:We(e)}getParentOrThrow(){const e=this.getParent();return e===null&&W(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(Bt(n))return F(e)||e===this&&Ce(e)||W(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&W(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:We(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:We(e)}getNextSiblings(){const e=[];let n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){const n=F(this)?this:this.getParent(),o=F(e)?e:e.getParent(),r=n&&o?js(n,o):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=js(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Dm(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&W(279),!1)))}isParentOf(e){const n=js(this,e);return n!==null&&n.type==="ancestor"}getNodesBetween(e){const n=this.isBefore(e),o=[],r=new Set;let s=this;for(;s!==null;){const a=s.__key;if(r.has(a)||(r.add(a),o.push(s)),s===e)break;const l=F(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(r.has(u.__key)||o.push(u),u===e)break;let d=null,f=u;do{if(f===null&&W(68),d=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),f===null)break;d!==null||r.has(f.__key)||o.push(f)}while(d===null);s=d}return n||o.reverse(),o}isDirty(){const e=$e()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(ua(this))return this;const e=We(this.__key);return e===null&&W(113),e}getWritable(){if(ua(this))return this;Ge();const e=yo(),n=$e(),o=e._nodeMap,r=this.__key,s=this.getLatest(),a=n._cloneNotNeeded,l=re();if(l!==null&&l.setCachedNodes(null),a.has(r))return ha(s),s;const c=Tm(s);return a.add(r),ha(c),o.set(r,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){W(70)}updateDOM(e,n,o){W(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){W(18,this.name)}updateFromJSON(e){return function(n,o){const r=n.getWritable(),s=o.$;let a=s;for(const l of xh(r).flatKeys)l in o&&(a!==void 0&&a!==s||(a={...s}),a[l]=o[l]);return(r.__state||a)&&Eh(n).updateFromJSON(a),r}(this,e)}static transform(){return null}remove(e){bc(this,!0,e)}replace(e,n){Ge();let o=re();o!==null&&(o=o.clone()),jl(this,e);const r=this.getLatest(),s=this.__key,a=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),u=c.__size;Ro(l);const d=r.getPreviousSibling(),f=r.getNextSibling(),p=r.__prev,h=r.__next,m=r.__parent;if(bc(r,!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=h,l.__parent=m,c.__size=u,n&&(F(this)&&F(l)||W(139),this.getChildren().forEach(g=>{l.append(g)})),Z(o)){_t(o);const g=o.anchor,y=o.focus;g.key===s&&W1(g,l),y.key===s&&W1(y,l)}return oo()===s&&Xe(a),l}insertAfter(e,n=!0){Ge(),jl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.getParent(),a=re();let l=!1,c=!1;if(s!==null){const h=e.getIndexWithinParent();if(Ro(r),Z(a)){const m=s.__key,g=a.anchor,y=a.focus;l=g.type==="element"&&g.key===m&&g.offset===h+1,c=y.type==="element"&&y.key===m&&y.offset===h+1}}const u=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),f=r.__key,p=o.__next;if(u===null?d.__last=f:u.getWritable().__prev=f,d.__size++,o.__next=f,r.__next=p,r.__prev=o.__key,r.__parent=o.__parent,n&&Z(a)){const h=this.getIndexWithinParent();da(a,d,h+1);const m=d.__key;l&&a.anchor.set(m,h+2,"element"),c&&a.focus.set(m,h+2,"element")}return e}insertBefore(e,n=!0){Ge(),jl(this,e);const o=this.getWritable(),r=e.getWritable(),s=r.__key;Ro(r);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,r.__prev=c,r.__next=o.__key,r.__parent=o.__parent;const d=re();return n&&Z(d)&&da(d,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return Le()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){Ge();const o=this.getPreviousSibling(),r=this.getParentOrThrow();if(o===null)return r.select(0,0);if(F(o))return o.select();if(!X(o)){const s=o.getIndexWithinParent()+1;return r.select(s,s)}return o.select(e,n)}selectNext(e,n){Ge();const o=this.getNextSibling(),r=this.getParentOrThrow();if(o===null)return r.select();if(F(o))return o.select(0,0);if(!X(o)){const s=o.getIndexWithinParent();return r.select(s,s)}return o.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}z(Qt,"importDOM");const kc="historic",Nle="history-push",Ai="history-merge",Dle="paste",Mle="collaboration",Ble="skip-scroll-into-view",$le="skip-dom-selection",Ole="skip-selection-focus";class rs extends Qt{static getType(){return"linebreak"}static clone(e){return new rs(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&&ma(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Os(r)){const s=o.lastChild;if(s===n||s.previousSibling===n&&Os(s))return!0}}return!1}(e)||function(n){const o=n.parentElement;if(o!==null&&ma(o)){const r=o.firstChild;if(r===n||r.nextSibling===n&&Os(r))return!1;const s=o.lastChild;if(s===n||s.previousSibling===n&&Os(s))return!0}return!1}(e)?null:{conversion:Lle,priority:0}}}static importJSON(e){return en().updateFromJSON(e)}}function Lle(t){return{node:en()}}function en(){return sn(new rs)}function Po(t){return t instanceof rs}function Os(t){return Hn(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Vl(t,e){return 16&e?"code":e&vh?"mark":32&e?"sub":64&e?"sup":null}function zl(t,e){return 1&e?"strong":2&e?"em":"span"}function Qh(t,e,n,o,r){const s=o.classList;let a=Sr(r,"base");a!==void 0&&s.add(...a),a=Sr(r,"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 lt){const d=lt[u];if(a=Sr(r,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 em(t,e,n){const o=e.firstChild,r=n.isComposing(),s=t+(r?Ha:"");if(o==null)e.textContent=s;else{const a=o.nodeValue;if(a!==s)if(r||Ho){const[l,c,u]=function(d,f){const p=d.length,h=f.length;let m=0,g=0;for(;m<p&&m<h&&d[m]===f[m];)m++;for(;g+m<p&&g+m<h&&d[p-g-1]===f[h-g-1];)g++;return[m,p-m-g,f.slice(m,h-g)]}(a,s);c!==0&&o.deleteData(l,c),o.insertData(l,u)}else o.nodeValue=s}}function q1(t,e,n,o,r,s){em(r,t,e);const a=s.theme.text;a!==void 0&&Qh(0,0,o,t,a)}function Ls(t,e){const n=document.createElement(e);return n.appendChild(t),n}class vo extends Qt{constructor(n="",o){super(o);z(this,"__text");z(this,"__format");z(this,"__style");z(this,"__mode");z(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 vo(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===oo()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=lt[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return pa(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const r=this.__format,s=Vl(0,r),a=zl(0,r),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)),q1(u,this,0,r,this.__text,n);const d=this.__style;return d!==""&&(c.style.cssText=d),c}updateDOM(n,o,r){const s=this.__text,a=n.__format,l=this.__format,c=Vl(0,a),u=Vl(0,l),d=zl(0,a),f=zl(0,l);if((c===null?d:c)!==(u===null?f:u))return!0;if(c===u&&d!==f){const y=o.firstChild;y==null&&W(48);const _=document.createElement(f);return q1(_,this,0,l,s,r),o.replaceChild(_,y),!1}let p=o;u!==null&&c!==null&&(p=o.firstChild,p==null&&W(49)),em(s,p,this);const h=r.theme.text;h!==void 0&&a!==l&&Qh(0,a,l,p,h);const m=n.__style,g=this.__style;return m!==g&&(o.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:Rle,priority:0}),b:()=>({conversion:Ple,priority:0}),code:()=>({conversion:Tn,priority:0}),em:()=>({conversion:Tn,priority:0}),i:()=>({conversion:Tn,priority:0}),mark:()=>({conversion:Tn,priority:0}),s:()=>({conversion:Tn,priority:0}),span:()=>({conversion:Ile,priority:0}),strong:()=>({conversion:Tn,priority:0}),sub:()=>({conversion:Tn,priority:0}),sup:()=>({conversion:Tn,priority:0}),u:()=>({conversion:Tn,priority:0})}}static importJSON(n){return Oe().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 ze(o)||W(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=Ls(o,"b")),this.hasFormat("italic")&&(o=Ls(o,"i")),this.hasFormat("strikethrough")&&(o=Ls(o,"s")),this.hasFormat("underline")&&(o=Ls(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"?lt[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=pa(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 r=this.getWritable();return r.__mode=o,r}setTextContent(n){if(this.__text===n)return this;const o=this.getWritable();return o.__text=n,o}select(n,o){Ge();let r=n,s=o;const a=re(),l=this.getTextContent(),c=this.__key;if(typeof l=="string"){const u=l.length;r===void 0&&(r=u),s===void 0&&(s=u)}else r=0,s=0;if(!Z(a))return om(c,r,c,s,"text","text");{const u=oo();u!==a.anchor.key&&u!==a.focus.key||Xe(c),a.setTextNodeRange(this,r,this,s)}return a}selectStart(){return this.select(0,0)}selectEnd(){const n=this.getTextContentSize();return this.select(n,n)}spliceText(n,o,r,s){const a=this.getWritable(),l=a.__text,c=r.length;let u=n;u<0&&(u=c+u,u<0&&(u=0));const d=re();if(s&&Z(d)){const p=n+c;d.setTextNodeRange(a,p,a,p)}const f=l.slice(0,u)+r+l.slice(u+o);return a.__text=f,a}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){Ge();const o=this.getLatest(),r=o.getTextContent();if(r==="")return[];const s=o.__key,a=oo(),l=r.length;n.sort((T,A)=>T-A),n.push(l);const c=[],u=n.length;for(let T=0,A=0;T<l&&A<=u;A++){const V=n[A];V>T&&(c.push(r.slice(T,V)),T=V)}const d=c.length;if(d===1)return[o];const f=c[0],p=o.getParent();let h;const m=o.getFormat(),g=o.getStyle(),y=o.__detail;let _=!1,C=null,v=null;const w=re();if(Z(w)){const[T,A]=w.isBackward()?[w.focus,w.anchor]:[w.anchor,w.focus];T.type==="text"&&T.key===s&&(C=T),A.type==="text"&&A.key===s&&(v=A)}o.isSegmented()?(h=Oe(f),h.__format=m,h.__style=g,h.__detail=y,h.__state=M1(o,h),_=!0):h=o.setTextContent(f);const k=[h];for(let T=1;T<d;T++){const A=Oe(c[T]);A.__format=m,A.__style=g,A.__detail=y,A.__state=M1(o,A);const V=A.__key;a===s&&Xe(V),k.push(A)}const b=C?C.offset:null,E=v?v.offset:null;let S=0;for(const T of k){if(!C&&!v)break;const A=S+T.getTextContentSize();if(C!==null&&b!==null&&b<=A&&b>=S&&(C.set(T.getKey(),b-S,"text"),b<A&&(C=null)),v!==null&&E!==null&&E<=A&&E>=S){v.set(T.getKey(),E-S,"text");break}S=A}if(p!==null){(function(V){const I=V.getPreviousSibling(),U=V.getNextSibling();I!==null&&ha(I),U!==null&&ha(U)})(this);const T=p.getWritable(),A=this.getIndexWithinParent();_?(T.splice(A,0,k),this.remove()):T.splice(A,1,k),Z(w)&&da(w,p,A,d-1)}return k}mergeWithSibling(n){const o=n===this.getPreviousSibling();o||n===this.getNextSibling()||W(50);const r=this.__key,s=n.__key,a=this.__text,l=a.length;oo()===s&&Xe(r);const c=re();if(Z(c)){const p=c.anchor,h=c.focus;p!==null&&p.key===s&&Q1(p,o,r,n,l),h!==null&&h.key===s&&Q1(h,o,r,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 Ile(t){return{forChild:mu(t.style),node:null}}function Ple(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:mu(e.style,n?void 0:"bold"),node:null}}const H1=new WeakMap;function Fle(t){if(!ze(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function Rle(t){const e=t;t.parentElement===null&&W(129);let n=e.textContent||"";if(function(o){let r,s=o.parentNode;const a=[o];for(;s!==null&&(r=H1.get(s))===void 0&&!Fle(s);)a.push(s),s=s.parentNode;const l=r===void 0?s:r;for(let c=0;c<a.length;c++)H1.set(a[c],l);return l}(e)!==null){const o=n.split(/(\r?\n|\t)/),r=[],s=o.length;for(let a=0;a<s;a++){const l=o[a];l===`
|
|
25
25
|
`||l===`\r
|
|
26
|
-
`?r.push(en()):l===" "?r.push(Hr()):l!==""&&r.push(Oe(l))}return{node:r}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let o=e,r=!0;for(;o!==null&&(o=j1(o,!1))!==null;){const s=o.textContent||"";if(s.length>0){/[ \t\n]$/.test(s)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(n[n.length-1]===" "){let o=e,r=!0;for(;o!==null&&(o=j1(o,!0))!==null;)if((o.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:Oe(n)}}function j1(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,ze(n)){const s=n.style.display;if(s===""&&!Dc(n)||s!==""&&!s.startsWith("inline"))return null}let r=n;for(;(r=e?n.firstChild:n.lastChild)!==null;)n=r;if(Hn(n))return n;if(n.nodeName==="BR")return null}}const
|
|
26
|
+
`?r.push(en()):l===" "?r.push(Hr()):l!==""&&r.push(Oe(l))}return{node:r}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let o=e,r=!0;for(;o!==null&&(o=j1(o,!1))!==null;){const s=o.textContent||"";if(s.length>0){/[ \t\n]$/.test(s)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(n[n.length-1]===" "){let o=e,r=!0;for(;o!==null&&(o=j1(o,!0))!==null;)if((o.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:Oe(n)}}function j1(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,ze(n)){const s=n.style.display;if(s===""&&!Dc(n)||s!==""&&!s.startsWith("inline"))return null}let r=n;for(;(r=e?n.firstChild:n.lastChild)!==null;)n=r;if(Hn(n))return n;if(n.nodeName==="BR")return null}}const Vle={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Tn(t){const e=Vle[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:mu(t.style,e),node:null}}function Oe(t=""){return sn(new vo(t))}function X(t){return t instanceof vo}function mu(t,e){const n=t.fontWeight,o=t.textDecoration.split(" "),r=n==="700"||n==="bold",s=o.includes("line-through"),a=t.fontStyle==="italic",l=o.includes("underline"),c=t.verticalAlign;return u=>(X(u)&&(r&&!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 is extends vo{static getType(){return"tab"}static clone(e){return new is(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),o=Sr(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Hr().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&hh(126),super.setTextContent(" ")}spliceText(e,n,o,r){return o===""&&n===0||o===" "&&n===1||W(286),this}setDetail(e){return e!==2&&W(127),this}setMode(e){return e!=="normal"&&W(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Hr(){return sn(new is)}function Za(t){return t instanceof is}class zle{constructor(e,n,o){z(this,"key");z(this,"offset");z(this,"type");z(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:Nm(Rt(Rn(this,"next")),Rt(Rn(e,"next")))<0}getNode(){const e=We(this.key);return e===null&&W(20),e}set(e,n,o,r){const s=this._selection,a=this.key;r&&this.key===e&&this.offset===n&&this.type===o||(this.key=e,this.offset=n,this.type=o,ss()||(oo()===a&&Xe(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0)))}}function _n(t,e,n){return new zle(t,e,n)}function Ul(t,e){let n=e.__key,o=t.offset,r="element";if(X(e)){r="text";const s=e.getTextContentSize();o>s&&(o=s)}else if(!F(e)){const s=e.getNextSibling();if(X(s))n=s.__key,o=0,r="text";else{const a=e.getParent();a&&(n=a.__key,o=e.getIndexWithinParent()+1)}}t.set(n,o,r)}function W1(t,e){if(F(e)){const n=e.getLastDescendant();F(n)||X(n)?Ul(t,n):Ul(t,e)}else Ul(t,e)}class Ka{constructor(e){z(this,"_nodes");z(this,"_cachedNodes");z(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!At(e))return!1;const n=this._nodes,o=e._nodes;return n.size===o.size&&Array.from(n).every(r=>o.has(r))}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 Ka(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),o=n.length,r=n[o-1];let s;if(X(r))s=r.select();else{const a=r.getIndexWithinParent()+1;s=r.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 r of n){const s=We(r);s!==null&&o.push(s)}return ss()||(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((re()||jr())===this&&e[0]){const n=et(e[0],"next");Cce(po(n,n))}for(const n of e)n.remove()}}function Z(t){return t instanceof er}class er{constructor(e,n,o,r){z(this,"format");z(this,"style");z(this,"anchor");z(this,"focus");z(this,"_cachedNodes");z(this,"dirty");this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.format=o,this.style=r,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 r=[],[s,a]=o.getTextSlices();s&&r.push(s.caret.origin);const l=new Set,c=new Set;for(const u of o)if(mn(u)){const{origin:d}=u;r.length===0?l.add(d):(c.add(d),r.push(d))}else{const{origin:d}=u;F(d)&&c.has(d)||r.push(d)}if(a&&r.push(a.caret.origin),Fr(o.focus)&&F(o.focus.origin)&&o.focus.getNodeAtCaret()===null)for(let u=nn(o.focus.origin,"previous");mn(u)&&l.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(r[r.length-1]);u=Bu(u))l.delete(u.origin),r.pop();for(;r.length>1;){const u=r[r.length-1];if(!F(u)||c.has(u)||u.isEmpty()||l.has(u))break;r.pop()}if(r.length===0&&o.isCollapsed()){const u=Rt(o.anchor),d=Rt(o.anchor.getFlipped()),f=h=>so(h)?h.origin:h.getNodeAtCaret(),p=f(u)||f(d)||(o.anchor.getNodeAtCaret()?u.origin:d.origin);r.push(p)}return r}(Bm(Cf(this),"next"));return ss()||(this._cachedNodes=n),n}setTextNodeRange(e,n,o,r){this.anchor.set(e.__key,n,"text"),this.focus.set(o.__key,r,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const n=e[0],o=e[e.length-1],r=this.anchor,s=this.focus,a=r.isBefore(s),[l,c]=wc(this);let u="",d=!0;for(let f=0;f<e.length;f++){const p=e[f];if(F(p)&&!p.isInline())d||(u+=`
|
|
27
27
|
`),d=!p.isEmpty();else if(d=!1,X(p)){let h=p.getTextContent();p===n?p===o?r.type==="element"&&s.type==="element"&&s.offset!==r.offset||(h=l<c?h.slice(l,c):h.slice(c,l)):h=a?h.slice(l):h.slice(c):p===o&&(h=a?h.slice(0,c):h.slice(0,l)),u+=h}else!Ce(p)&&!Po(p)||p===o&&this.isCollapsed()||(u+=p.getTextContent())}return u}applyDOMRange(e){const n=$e(),o=n.getEditorState()._selection,r=nm(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,o);if(r===null)return;const[s,a]=r;this.anchor.set(s.key,s.offset,s.type,!0),this.focus.set(a.key,a.offset,a.type,!0),oa(this)}clone(){const e=this.anchor,n=this.focus;return new er(_n(e.key,e.offset,e.type),_n(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=pa(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=lt[e];return(this.format&n)!==0}insertRawText(e){const n=e.split(/(\r?\n|\t)/),o=[],r=n.length;for(let s=0;s<r;s++){const a=n[s];a===`
|
|
28
28
|
`||a===`\r
|
|
29
|
-
`?o.push(en()):a===" "?o.push(Hr()):o.push(Oe(a))}this.insertNodes(o)}insertText(e){const n=this.anchor,o=this.focus,r=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 w=y.getNode(),k=w.getChildAtIndex(y.offset),b=Oe();if(b.setFormat(C),b.setStyle(v),cs(k))k.splice(0,0,[b]);else{const E=Re(w)?Le().append(b):b;k===null?w.append(E):k.insertBefore(E)}y.is(_)&&_.set(b.__key,0,"text"),y.set(b.__key,0,"text")}(a,l,r,s),l.type==="element"&&Xo(l,Rt(Rn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];X(p)||W(26);const h=p.getTextContent().length,m=p.getParentOrThrow();let g=d[f-1];if(f===1&&l.type==="element"&&(u=h,l.set(a.key,u,"text")),this.isCollapsed()&&c===h&&(Nn(p)||!p.canInsertTextAfter()||!m.canInsertTextAfter()&&p.getNextSibling()===null)){let y=p.getNextSibling();if(X(y)&&y.canInsertTextBefore()&&!Nn(y)||(y=Oe(),y.setFormat(r),y.setStyle(s),m.canInsertTextAfter()?p.insertAfter(y):m.insertAfter(y)),y.select(0,0),p=y,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(Nn(p)||!p.canInsertTextBefore()||!m.canInsertTextBefore()&&p.getPreviousSibling()===null)){let y=p.getPreviousSibling();if(X(y)&&!Nn(y)||(y=Oe(),y.setFormat(r),m.canInsertTextBefore()?p.insertBefore(y):m.insertBefore(y)),y.select(),p=y,e!=="")return void this.insertText(e)}else if(p.isSegmented()&&c!==h){const y=Oe(p.getTextContent());y.setFormat(r),p.replace(y),p=y}else if(!this.isCollapsed()&&e!==""){const y=g.getParent();if(!m.canInsertTextBefore()||!m.canInsertTextAfter()||F(y)&&(!y.canInsertTextBefore()||!y.canInsertTextAfter()))return this.insertText(""),tm(this.anchor,this.focus,null),void this.insertText(e)}if(f===1){if(Fo(p)){const v=Oe(e);return v.select(),void p.replace(v)}const y=p.getFormat(),_=p.getStyle();if(c!==u||y===r&&_===s){if(Za(p)){const v=Oe(e);return v.setFormat(r),v.setStyle(s),v.select(),void p.replace(v)}}else{if(p.getTextContent()!==""){const v=Oe(e);if(v.setFormat(r),v.setStyle(s),v.select(),c===0)p.insertBefore(v,!1);else{const[w]=p.splitText(c);w.insertAfter(v,!1)}return void(v.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}p.setFormat(r),p.setStyle(s)}const C=u-c;p=p.spliceText(c,C,e,!0),p.getTextContent()===""?p.remove():this.anchor.type==="text"&&(p.isComposing()?this.anchor.offset-=e.length:(this.format=y,this.style=_))}else{const y=new Set([...p.getParentKeys(),...g.getParentKeys()]),_=F(p)?p:p.getParentOrThrow();let C=F(g)?g:g.getParentOrThrow(),v=g;if(!_.is(C)&&C.isInline())do v=C,C=C.getParentOrThrow();while(C.isInline());if(l.type==="text"&&(u!==0||g.getTextContent()==="")||l.type==="element"&&g.getIndexWithinParent()<u)if(X(g)&&!Fo(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){const S=Oe(g.getTextContent());g.replace(S),g=S}Re(l.getNode())||l.type!=="text"||(g=g.spliceText(0,u,"")),y.add(g.__key)}else{const S=g.getParentOrThrow();S.canBeEmpty()||S.getChildrenSize()!==1?g.remove():S.remove()}else y.add(g.__key);const w=C.getChildren(),k=new Set(d),b=_.is(C),E=_.isInline()&&p.getNextSibling()===null?_:p;for(let S=w.length-1;S>=0;S--){const T=w[S];if(T.is(p)||F(T)&&T.isParentOf(p))break;T.isAttached()&&(!k.has(T)||T.is(v)?b||E.insertAfter(T,!1):T.remove())}if(!b){let S=C,T=null;for(;S!==null;){const A=S.getChildren(),V=A.length;(V===0||A[V-1].is(T))&&(y.delete(S.__key),T=S),S=S.getParent()}}if(Fo(p))if(c===h)p.select();else{const S=Oe(e);S.select(),p.replace(S)}else p=p.spliceText(c,h-c,e,!0),p.getTextContent()===""?p.remove():p.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let S=1;S<f;S++){const T=d[S],A=T.__key;y.has(A)||T.remove()}}}removeText(){const e=re()===this;Ws(this,vce(Cf(this))),e&&re()!==this&&_t(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void Xe(null);const o=this.getNodes(),r=[];for(const w of o)X(w)&&r.push(w);const s=w=>{o.forEach(k=>{if(F(k)){const b=k.getFormatFlags(e,w);k.setTextFormat(b)}})},a=r.length;if(a===0)return this.toggleFormat(e),Xe(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,h=r[0],m=d.type==="element"?0:d.offset;if(d.type==="text"&&m===h.getTextContentSize()&&(p=1,h=r[1],m=0),h==null)return;const g=h.getFormatFlags(e,n);s(g);const y=a-1;let _=r[y];const C=f.type==="text"?f.offset:_.getTextContentSize();if(h.is(_)){if(m===C)return;if(Nn(h)||m===0&&C===h.getTextContentSize())h.setFormat(g);else{const w=h.splitText(m,C),k=m===0?w[0]:w[1];k.setFormat(g),d.type==="text"&&d.set(k.__key,0,"text"),f.type==="text"&&f.set(k.__key,C-m,"text")}return void(this.format=g)}m===0||Nn(h)||([,h]=h.splitText(m),m=0),h.setFormat(g);const v=_.getFormatFlags(e,g);C>0&&(C===_.getTextContentSize()||Nn(_)||([_]=_.splitText(C)),_.setFormat(v));for(let w=p+1;w<y;w++){const k=r[w],b=k.getFormatFlags(e,v);k.setFormat(b)}d.type==="text"&&d.set(h.__key,m,"text"),f.type==="text"&&f.set(_.__key,C,"text"),this.format=g|v}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const m=re();return Z(m)||W(134),m.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=Ln(n,no),r=e[e.length-1];if(F(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const m=ql(this);o.splice(m,0,e),r.selectEnd()}return}if(!e.some(m=>(F(m)||Ce(m))&&!m.isInline())){F(o)||W(211,n.constructor.name,n.getType());const m=ql(this);return o.splice(m,0,e),void r.selectEnd()}const s=function(m){const g=Le();let y=null;for(let _=0;_<m.length;_++){const C=m[_],v=Po(C);if(v||Ce(C)&&C.isInline()||F(C)&&C.isInline()||X(C)||C.isParentRequired()){if(y===null&&(y=C.createParentElementNode(),g.append(y),v))continue;y!==null&&y.append(C)}else g.append(C),y=null}return g}(e),a=s.getLastDescendant(),l=s.getChildren(),c=!F(o)||!o.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var f;F(f=d)&&no(f)&&!f.isEmpty()&&F(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(F(o)||W(211,n.constructor.name,n.getType()),o.append(...d.getChildren()),d=l[1]),d&&(o===null&&W(212,n.constructor.name,n.getType()),function(m,g){const y=g.getParentOrThrow().getLastChild();let _=g;const C=[g];for(;_!==y;)_.getNextSibling()||W(140),_=_.getNextSibling(),C.push(_);let v=m;for(const w of C)v=v.insertAfter(w)}(o,d));const p=Ln(a,no);c&&F(p)&&(c.canMergeWhenEmpty()||no(u))&&(p.append(...c.getChildren()),c.remove()),F(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const h=F(o)?o.getLastChild():null;Po(h)&&p!==o&&h.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=Le();return Ie().splice(this.anchor.offset,0,[a]),a.select(),a}const e=ql(this),n=Ln(this.anchor.getNode(),no);F(n)||W(213);const o=n.getChildAtIndex(e),r=o?[o,...o.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...r),s.selectStart(),s):null}insertLineBreak(e){const n=en();if(this.insertNodes([n]),e){const o=n.getParentOrThrow(),r=n.getIndexWithinParent();o.select(r,r)}}extract(){const e=[...this.getNodes()],n=e.length;let o=e[0],r=e[n-1];const[s,a]=wc(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),h=d===0?p[0]:p[1];return h?(c.set(h.getKey(),0,"text"),u.set(h.getKey(),h.getTextContentSize(),"text"),[h]):[]}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(r)){const p=r.getTextContent().length;f===0?e.pop():f!==p&&([r]=r.splitText(f),e[e.length-1]=r,u.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,n,o){if(ef(this,e,n,o))return;const r=e==="move",s=$e(),a=tn(qt(s));if(!a)return;const l=s._blockCursorElement,c=s._rootElement,u=this.focus.getNode();if(c===null||l===null||!F(u)||u.isInline()||u.canBeEmpty()||Ac(l,s,c),this.dirty){let d=Ko(s,this.anchor.key),f=Ko(s,this.focus.key);this.anchor.type==="text"&&(d=Ir(d)),this.focus.type==="text"&&(f=Ir(f)),d&&f&&sm(a,d,this.anchor.offset,f,this.focus.offset)}if(function(d,f,p,h){d.modify(f,p,h)}(a,e,n?"backward":"forward",o),a.rangeCount>0){const d=a.getRangeAt(0),f=this.anchor.getNode(),p=Re(f)?f:tce(f);if(this.applyDOMRange(d),this.dirty=!0,!r){const h=this.getNodes(),m=[];let g=!1;for(let y=0;y<h.length;y++){const _=h[y];Tc(_,p)?m.push(_):g=!0}if(g&&m.length>0)if(n){const y=m[0];F(y)?y.selectStart():y.getParentOrThrow().selectStart()}else{const y=m[m.length-1];F(y)?y.selectEnd():y.getParentOrThrow().selectEnd()}a.anchorNode===d.startContainer&&a.anchorOffset===d.startOffset||function(y){const _=y.focus,C=y.anchor,v=C.key,w=C.offset,k=C.type;C.set(_.key,_.offset,_.type,!0),_.set(v,w,k,!0)}(this)}}o==="lineboundary"&&ef(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&F(n)&&e.offset===n.getChildrenSize()||e.type==="text"&&e.offset===n.getTextContentSize())){const r=n.getParent(),s=n.getNextSibling()||(r===null?null:r.getNextSibling());if(F(s)&&s.isShadowRoot())return!0}return!1}deleteCharacter(e){const n=this.isCollapsed();if(this.isCollapsed()){const o=this.anchor;let r=o.getNode();if(this.forwardDeletion(o,r,e))return;const s=Ou(Rn(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(mn(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(F(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=Rt(c);Ws(this,po(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(Fr(c)){if(F(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(Ce(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&F(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=im();u.add(c.origin.getKey()),_t(u)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:u}=l;return Ws(this,po(!c.origin.isEmpty()&&u.isEmpty()?Lu(et(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&&K1(this,o.getNode()))return}else{const l=a.type==="text"?a.getNode():null;if(r=o.type==="text"?o.getNode():null,l!==null&&l.isSegmented()){const c=a.offset,u=l.getTextContentSize();if(l.is(r)||e&&c!==u||!e&&c!==0)return void G1(l,e,c)}else if(r!==null&&r.isSegmented()){const c=o.offset,u=r.getTextContentSize();if(r.is(l)||e&&c!==0||!e&&c!==u)return void G1(r,e,c)}(function(c,u){const d=c.anchor,f=c.focus,p=d.getNode(),h=f.getNode();if(p===h&&d.type==="text"&&f.type==="text"){const m=d.offset,g=f.offset,y=m<g,_=y?m:g,C=y?g:m,v=C-1;_!==v&&function(w){return!(bm(w)||Fle(w))}(p.getTextContent().slice(_,C))&&(u?f.set(f.key,v,f.type):d.set(d.key,v,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()&&Re(o.getParent())&&o.getPreviousSibling()===null&&K1(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 At(t){return t instanceof Ka}function Z1(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function wc(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]:[Z1(n),Z1(o)]}function K1(t,e){for(let n=e;n;n=n.getParent()){if(F(n)){if(n.collapseAtStart(t))return!0;if(Bt(n))break}if(n.getPreviousSibling())break}return!1}const Fle=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function G1(t,e,n){const o=t,r=o.getTextContent().split(/(?=\s)/g),s=r.length;let a=0,l=0;for(let u=0;u<s;u++){const d=u===s-1;if(l=a,a+=r[u].length,e&&a===n||a>n||d){r.splice(u,1),d&&(l=void 0);break}}const c=r.join("").trim();c===""?o.remove():(o.setTextContent(c),o.select(l,l))}function Y1(t,e,n,o){let r,s=e;if(ze(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(r=_r(d),X(r))s=ao(r,a?"next":"previous");else{let p=_r(t);if(p===null)return null;if(F(p)){const h=o.getElementByKey(p.getKey());h===null&&W(214),[p,s]=p.getDOMSlot(h).resolveChildIndex(p,h,t,e),F(p)||W(215),a&&s>=p.getChildrenSize()&&(s=Math.max(0,p.getChildrenSize()-1));let g=p.getChildAtIndex(s);if(F(g)&&function(y,_,C){const v=y.getParent();return C===null||v===null||!v.canBeEmpty()||v!==C.getNode()}(g,0,n)){const y=a?g.getLastDescendant():g.getFirstDescendant();y===null?p=g:(g=y,p=F(g)?g:g.getParentOrThrow()),s=0}X(g)?(r=g,p=null,s=ao(g,a?"next":"previous")):g!==p&&a&&!f&&(F(p)||W(216),s=Math.min(p.getChildrenSize(),s+1))}else{const h=p.getIndexWithinParent();s=e===0&&Ce(p)&&_r(t)===p?h:h+1,p=p.getParentOrThrow()}if(F(p))return _n(p.__key,s,"element")}}else r=_r(t);return X(r)?_n(r.__key,ao(r,s,"clamp"),"text"):null}function J1(t,e,n){const o=t.offset,r=t.getNode();if(o===0){const s=r.getPreviousSibling(),a=r.getParent();if(e){if((n||!e)&&s===null&&F(a)&&a.isInline()){const l=a.getPreviousSibling();X(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else F(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):X(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(o===r.getTextContent().length){const s=r.getNextSibling(),a=r.getParent();if(e&&F(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&F(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();X(l)&&t.set(l.__key,0,"text")}}}function tm(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),r=t.is(e);J1(t,o,r),J1(e,!o,r),r&&e.set(t.key,t.offset,t.type);const s=$e();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 nm(t,e,n,o,r,s){if(t===null||n===null||!us(r,t,n))return null;const a=Y1(t,e,Z(s)?s.anchor:null,r);if(a===null)return null;const l=Y1(n,o,Z(s)?s.focus:null,r);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=_r(t),u=_r(n);if(Ce(c)&&Ce(u))return null}return tm(a,l,s),[a,l]}function Ec(t){return F(t)&&!t.isInline()}function om(t,e,n,o,r,s){const a=yo(),l=new er(_n(t,e,r),_n(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function rm(){const t=_n("root",0,"element"),e=_n("root",0,"element");return new er(t,e,0,"")}function im(){return new Ka(new Set)}function gu(t,e,n,o){const r=n._window;if(r===null)return null;const s=o||r.event,a=s?s.type:void 0,l=a==="selectionchange",c=!ac&&(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)&&!us(n,u,d))return t.clone();const h=nm(u,f,d,p,n,t);if(h===null)return null;const[m,g]=h;return new er(m,g,Z(t)?t.format:0,Z(t)?t.style:"")}function re(){return yo()._selection}function jr(){return $e()._editorState._selection}function da(t,e,n,o=1){const r=t.anchor,s=t.focus,a=r.getNode(),l=s.getNode();if(!e.is(a)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const u=r.offset;if(n<=u&&o>0||n<u&&o<0){const d=Math.max(0,u+o);r.set(c,d,"element"),s.set(c,d,"element"),X1(t)}}else{const u=t.isBackward(),d=u?s:r,f=d.getNode(),p=u?r:s,h=p.getNode();if(e.is(f)){const m=d.offset;(n<=m&&o>0||n<m&&o<0)&&d.set(c,Math.max(0,m+o),"element")}if(e.is(h)){const m=p.offset;(n<=m&&o>0||n<m&&o<0)&&p.set(c,Math.max(0,m+o),"element")}}X1(t)}function X1(t){const e=t.anchor,n=e.offset,o=t.focus,r=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!F(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(F(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(F(a)){const l=a.getChildrenSize(),c=r>=l,u=c?a.getChildAtIndex(l-1):a.getChildAtIndex(r);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),o.set(u.__key,d,"text")}}}function fa(t,e,n,o,r){let s=null,a=0,l=null;o!==null?(s=o.__key,X(o)?(a=o.getTextContentSize(),l="text"):F(o)&&(a=o.getChildrenSize(),l="element")):r!==null&&(s=r.__key,X(r)?l="text":F(r)&&(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 Q1(t,e,n,o,r){t.type==="text"?t.set(n,t.offset+(e?0:r),"text"):t.offset>o.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function sm(t,e,n,o,r){try{t.setBaseAndExtent(e,n,o,r)}catch{}}function Rle(t,e,n,o,r,s,a){const l=o.anchorNode,c=o.focusNode,u=o.anchorOffset,d=o.focusOffset,f=document.activeElement;if(r.has(Tle)&&f!==s||f!==null&&ku(f))return;if(!Z(e))return void(t!==null&&us(n,l,c)&&o.removeAllRanges());const p=e.anchor,h=e.focus,m=p.key,g=h.key,y=Ko(n,m),_=Ko(n,g),C=p.offset,v=h.offset,w=e.format,k=e.style,b=e.isCollapsed();let E=y,S=_,T=!1;if(p.type==="text"){E=Ir(y);const H=p.getNode();T=H.getFormat()!==w||H.getStyle()!==k}else Z(t)&&t.anchor.type==="text"&&(T=!0);var A,V,I,U,$;if(h.type==="text"&&(S=Ir(_)),E!==null&&S!==null&&(b&&(t===null||T||Z(t)&&(t.format!==w||t.style!==k))&&(A=w,V=k,I=C,U=m,$=performance.now(),Wh=[A,V,I,U,$]),u!==C||d!==v||l!==E||c!==S||o.type==="Range"&&b||(f!==null&&s.contains(f)||r.has(Dle)||s.focus({preventScroll:!0}),p.type==="element"))){if(sm(o,E,C,S,v),!r.has(Ale)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const H=Z(e)&&e.anchor.type==="element"?E.childNodes[C]||null:o.rangeCount>0?o.getRangeAt(0):null;if(H!==null){let L;if(H instanceof Text){const ee=document.createRange();ee.selectNode(H),L=ee.getBoundingClientRect()}else L=H.getBoundingClientRect();(function(ee,O,D){const K=xm(D),P=Au(K);if(K===null||P===null)return;let{top:q,bottom:ce}=O,Q=0,ie=0,R=D;for(;R!==null;){const te=R===K.body;if(te)Q=0,ie=qt(ee).innerHeight;else{const G=R.getBoundingClientRect();Q=G.top,ie=G.bottom}let B=0;if(q<Q?B=-(Q-q):ce>ie&&(B=ce-ie),B!==0)if(te)P.scrollBy(0,B);else{const G=R.scrollTop;R.scrollTop+=B;const ge=R.scrollTop-G;q-=ge,ce-=ge}if(te)break;R=ds(R)}})(n,L,s)}}_c=!0}}function Vle(t){let e=re()||jr();e===null&&(e=Ie().selectEnd()),e.insertNodes(t)}function ql(t){let e=t;t.isCollapsed()||e.removeText();const n=re();Z(n)&&(e=n),Z(e)||W(161);const o=e.anchor;let r=o.getNode(),s=o.offset;for(;!no(r);){const a=r;if([r,s]=zle(r,s),a.is(r))break}return s}function zle(t,e){const n=t.getParent();if(!n){const r=Le();return Ie().append(r),r.select(),[Ie(),0]}if(X(t)){const r=t.splitText(e);if(r.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,r[0].getIndexWithinParent()+s]}if(!F(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const r=new er(_n(t.__key,e,"element"),_n(t.__key,e,"element"),0,""),s=t.insertNewAfter(r);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function ef(t,e,n,o,r="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=Rn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=r==="decorators-and-blocks";if(!Mm(c)){for(const d of c){u=!1;const{origin:f}=d;if(!Ce(f)||f.isIsolated()||(c=d,!a||!f.isInline()))break}if(u)for(const d of Ou(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(mn(d))d.origin.isInline()||(c=d);else{if(F(d.origin))continue;Ce(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&Ce(c.origin)&&c.origin.isKeyboardSelectable()){const d=im();return d.add(c.origin.getKey()),_t(d),!0}return c=Rt(c),l&&Xo(t.anchor,c),Xo(t.focus,c),u||!a}let Ye=null,Je=null,vt=!1,Hl=!1,Hs=0;const tf={characterData:!0,childList:!0,subtree:!0};function ss(){return vt||Ye!==null&&Ye._readOnly}function Ge(){vt&&W(13)}function am(){Hs>99&&W(14)}function yo(){return Ye===null&&W(195,lm()),Ye}function $e(){return Je===null&&W(196,lm()),Je}function lm(){let t=0;const e=new Set,n=Zo.version;if(typeof window<"u")for(const r of document.querySelectorAll("[contenteditable]")){const s=Ja(r);if(wu(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 Ule(){return Je}function nf(t,e,n){const o=e.__type,r=hm(t,o);let s=n.get(o);s===void 0&&(s=Array.from(r.transforms),n.set(o,s));const a=s.length;for(let l=0;l<a&&(s[l](e),e.isAttached());l++);}function of(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function cm(t,e){if(!e)return;const n=t._updateTags;let o=e;Array.isArray(e)||(o=[e]);for(const r of o)n.add(r)}function qle(t){return vu(t,$e()._nodes)}function vu(t,e){const n=t.type,o=e.get(n);o===void 0&&W(17,n);const r=o.klass;t.type!==r.getType()&&W(18,r.name);const s=r.importJSON(t),a=t.children;if(F(s)&&Array.isArray(a))for(let l=0;l<a.length;l++){const c=vu(a[l],e);s.append(c)}return s}function rf(t,e,n){const o=Ye,r=vt,s=Je;Ye=e,vt=!0,Je=t;try{return n()}finally{Ye=o,vt=r,Je=s}}function Mn(t,e){const n=t._pendingEditorState,o=t._rootElement,r=t._headless||o===null;if(n===null)return;const s=t._editorState,a=s._selection,l=n._selection,c=t._dirtyType!==0,u=Ye,d=vt,f=Je,p=t._updating,h=t._observer;let m=null;if(t._pendingEditorState=null,t._editorState=n,!r&&c&&h!==null){Je=t,Ye=n,vt=!1,t._updating=!0;try{const b=t._dirtyType,E=t._dirtyElements,S=t._dirtyLeaves;h.disconnect(),m=ule(s,n,t,b,E,S)}catch(b){if(b instanceof Error&&t._onError(b),Hl)throw b;return pm(t,null,o,n),bh(t),t._dirtyType=2,Hl=!0,Mn(t,s),void(Hl=!1)}finally{h.observe(o,tf),t._updating=p,Ye=u,vt=d,Je=f}}n._readOnly||(n._readOnly=!0);const g=t._dirtyLeaves,y=t._dirtyElements,_=t._normalizedNodes,C=t._updateTags,v=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(b,E){const S=b._decorators;let T=b._pendingDecorators||S;const A=E._nodeMap;let V;for(V in T)A.has(V)||(T===S&&(T=_m(b)),delete T[V])}(t,n);const w=r?null:tn(qt(t));if(t._editable&&w!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!C.has(Nle)){Je=t,Ye=n;try{if(h!==null&&h.disconnect(),c||l===null||l.dirty){const b=t._blockCursorElement;b!==null&&Ac(b,t,o),Rle(a,l,t,w,C,o)}(function(b,E,S){let T=b._blockCursorElement;if(Z(S)&&S.isCollapsed()&&S.anchor.type==="element"&&E.contains(document.activeElement)){const A=S.anchor,V=A.getNode(),I=A.offset;let U=!1,$=null;if(I===V.getChildrenSize())Wl(V.getChildAtIndex(I-1))&&(U=!0);else{const H=V.getChildAtIndex(I);if(H!==null&&Wl(H)){const L=H.getPreviousSibling();(L===null||Wl(L))&&(U=!0,$=b.getElementByKey(H.__key))}}if(U){const H=b.getElementByKey(V.__key);return T===null&&(b._blockCursorElement=T=function(L){const ee=L.theme,O=document.createElement("div");O.contentEditable="false",O.setAttribute("data-lexical-cursor","true");let D=ee.blockCursor;if(D!==void 0){if(typeof D=="string"){const K=gh(D);D=ee.blockCursor=K}D!==void 0&&O.classList.add(...D)}return O}(b._config)),E.style.caretColor="transparent",void($===null?H.appendChild(T):H.insertBefore(T,$))}}T!==null&&Ac(T,b,E)})(t,o,l)}finally{h!==null&&h.observe(o,tf),Je=f,Ye=u}}m!==null&&function(b,E,S,T,A){const V=Array.from(b._listeners.mutation),I=V.length;for(let U=0;U<I;U++){const[$,H]=V[U];for(const L of H){const ee=E.get(L);ee!==void 0&&$(ee,{dirtyLeaves:T,prevEditorState:A,updateTags:S})}}}(t,m,C,g,s),Z(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Dh,void 0);const k=t._pendingDecorators;k!==null&&(t._decorators=k,t._pendingDecorators=null,Ni("decorator",t,!0,k)),function(b,E,S){const T=uf(E),A=uf(S);T!==A&&Ni("textcontent",b,!0,A)}(t,e||s,n),Ni("update",t,!0,{dirtyElements:y,dirtyLeaves:g,editorState:n,mutatedNodes:m,normalizedNodes:_,prevEditorState:e||s,tags:C}),function(b,E){if(b._deferred=[],E.length!==0){const S=b._updating;b._updating=!0;try{for(let T=0;T<E.length;T++)E[T]()}finally{b._updating=S}}}(t,v),function(b){const E=b._updates;if(E.length!==0){const S=E.shift();if(S){const[T,A]=S;Ga(b,T,A)}}}(t)}function Ni(t,e,n,...o){const r=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=r}}function sf(t,e){const n=t._updates;let o=e||!1;for(;n.length!==0;){const r=n.shift();if(r){const[s,a]=r,l=t._pendingEditorState;let c;a!==void 0&&(c=a.onUpdate,a.skipTransforms&&(o=!0),a.discrete&&(l===null&&W(191),l._flushSync=!0),c&&t._deferred.push(c),cm(t,a.tag)),l==null?Ga(t,s,a):s()}}return o}function Ga(t,e,n){const o=t._updateTags;let r,s=!1,a=!1;n!==void 0&&(r=n.onUpdate,cm(t,n.tag),s=n.skipTransforms||!1,a=n.discrete||!1),r&&t._deferred.push(r);const l=t._editorState;let c=t._pendingEditorState,u=!1;(c===null||c._readOnly)&&(c=t._pendingEditorState=dm(c||l),u=!0),c._flushSync=a;const d=Ye,f=vt,p=Je,h=t._updating;Ye=c,vt=!1,t._updating=!0,Je=t;const m=t._headless||t.getRootElement()===null;Cu(null);try{u&&(m?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(C,v){const w=C.getEditorState()._selection,k=tn(qt(C));return Z(w)||w==null?gu(w,k,C,v):w.clone()}(t,n&&n.event||null));const y=t._compositionKey;e(),s=sf(t,s),function(C,v){const w=v.getEditorState()._selection,k=C._selection;if(Z(k)){const b=k.anchor,E=k.focus;let S;if(b.type==="text"&&(S=b.getNode(),S.selectionTransform(w,k)),E.type==="text"){const T=E.getNode();S!==T&&T.selectionTransform(w,k)}}}(c,t),t._dirtyType!==0&&(s?function(C,v){const w=v._dirtyLeaves,k=C._nodeMap;for(const b of w){const E=k.get(b);X(E)&&E.isAttached()&&E.isSimpleText()&&!E.isUnmergeable()&&O1(E)}}(c,t):function(C,v){const w=v._dirtyLeaves,k=v._dirtyElements,b=C._nodeMap,E=oo(),S=new Map;let T=w,A=T.size,V=k,I=V.size;for(;A>0||I>0;){if(A>0){v._dirtyLeaves=new Set;for(const U of T){const $=b.get(U);X($)&&$.isAttached()&&$.isSimpleText()&&!$.isUnmergeable()&&O1($),$!==void 0&&of($,E)&&nf(v,$,S),w.add(U)}if(T=v._dirtyLeaves,A=T.size,A>0){Hs++;continue}}v._dirtyLeaves=new Set,v._dirtyElements=new Map,V.delete("root")&&V.set("root",!0);for(const U of V){const $=U[0],H=U[1];if(k.set($,H),!H)continue;const L=b.get($);L!==void 0&&of(L,E)&&nf(v,L,S)}T=v._dirtyLeaves,A=T.size,V=v._dirtyElements,I=V.size,Hs++}v._dirtyLeaves=w,v._dirtyElements=k}(c,t),sf(t),function(C,v,w,k){const b=C._nodeMap,E=v._nodeMap,S=[];for(const[T]of k){const A=E.get(T);A!==void 0&&(A.isAttached()||(F(A)&&yh(A,T,b,E,S,k),b.has(T)||k.delete(T),S.push(T)))}for(const T of S)E.delete(T);for(const T of w){const A=E.get(T);A===void 0||A.isAttached()||(b.has(T)||w.delete(T),E.delete(T))}}(l,c,t._dirtyLeaves,t._dirtyElements)),y!==t._compositionKey&&(c._flushSync=!0);const _=c._selection;if(Z(_)){const C=c._nodeMap,v=_.anchor.key,w=_.focus.key;C.get(v)!==void 0&&C.get(w)!==void 0||W(19)}else At(_)&&_._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 Mn(t)}finally{Ye=d,vt=f,Je=p,t._updating=h,Hs=0}t._dirtyType!==0||t._deferred.length>0||function(y,_){const C=_.getEditorState()._selection,v=y._selection;if(v!==null){if(v.dirty||!v.is(C))return!0}else if(C!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,Mn(t)):u&&Gle(()=>{Mn(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function Dt(t,e,n){Je===t&&n===void 0?e():Ga(t,e,n)}class Di{constructor(e,n,o){z(this,"element");z(this,"before");z(this,"after");this.element=e,this.before=n||null,this.after=o||null}withBefore(e){return new Di(this.element,e,this.after)}withAfter(e){return new Di(this.element,this.before,e)}withElement(e){return this.element===e?this:new Di(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&W(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&W(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&W(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"&&(zi||Lr||Vi);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,r=this.before,s=document.createElement("br");if(o.insertBefore(s,r),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,r){if(o===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,r))]}const s=af(n,o);s.push(r);const a=af(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 af(t,e){const n=[];let o=e;for(;o!==t&&o!==null;o=o.parentNode){let r=0;for(let s=o.previousSibling;s!==null;s=s.previousSibling)r++;n.push(r)}return o!==t&&W(225),n.reverse()}class Lt extends Qt{constructor(n){super(n);z(this,"__first");z(this,"__last");z(this,"__size");z(this,"__format");z(this,"__style");z(this,"__indent");z(this,"__dir");z(this,"__textFormat");z(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 Yae[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=$e()._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),F(o)){const r=o.getAllTextNodes();n.push(...r)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;F(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;F(n);){const o=n.getLastChild();if(o===null)break;n=o}return n}getDescendantByIndex(n){const o=this.getChildren(),r=o.length;if(n>=r){const a=o[r-1];return F(a)&&a.getLastDescendant()||a||null}const s=o[n];return F(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:We(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&W(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:We(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&W(96,this.__key),n}getChildAtIndex(n){const o=this.getChildrenSize();let r,s;if(n<o/2){for(r=this.getFirstChild(),s=0;r!==null&&s<=n;){if(s===n)return r;r=r.getNextSibling(),s++}return null}for(r=this.getLastChild(),s=o-1;r!==null&&s>=n;){if(s===n)return r;r=r.getPreviousSibling(),s--}return null}getTextContent(){let n="";const o=this.getChildren(),r=o.length;for(let s=0;s<r;s++){const a=o[s];n+=a.getTextContent(),F(a)&&s!==r-1&&!a.isInline()&&(n+=fo)}return n}getTextContentSize(){let n=0;const o=this.getChildren(),r=o.length;for(let s=0;s<r;s++){const a=o[s];n+=a.getTextContentSize(),F(a)&&s!==r-1&&!a.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const o=S1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=lt[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return pa(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){Ge();const r=re();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(X(u)||F(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)||F(u))return u.select()}}s===void 0&&(s=l),a===void 0&&(a=l);const c=this.__key;return Z(r)?(r.anchor.set(c,s,"element"),r.focus.set(c,a,"element"),r.dirty=!0,r):om(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!==""?S1[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,r){ua(this)&&W(324,this.__key,this.__type);const s=this.getChildrenSize(),a=this.getWritable();n+o<=s||W(226,String(n),String(o),String(s));const l=a.__key,c=[],u=[],d=this.getChildAtIndex(n+o);let f=null,p=s-o+r.length;if(n!==0)if(n===s)f=this.getLastChild();else{const m=this.getChildAtIndex(n);m!==null&&(f=m.getPreviousSibling())}if(o>0){let m=f===null?this.getFirstChild():f.getNextSibling();for(let g=0;g<o;g++){m===null&&W(100);const y=m.getNextSibling(),_=m.__key;Ro(m.getWritable()),u.push(_),m=y}}let h=f;for(const m of r){h!==null&&m.is(h)&&(f=h=h.getPreviousSibling());const g=m.getWritable();g.__parent===l&&p--,Ro(g);const y=m.__key;if(h===null)a.__first=y,g.__prev=null;else{const _=h.getWritable();_.__next=y,g.__prev=_.__key}m.__key===l&&W(76),g.__parent=l,c.push(y),h=m}if(n+o===s)h!==null&&(h.getWritable().__next=null,a.__last=h.__key);else if(d!==null){const m=d.getWritable();if(h!==null){const g=h.getWritable();m.__prev=h.__key,g.__next=d.__key}else m.__prev=null}if(a.__size=p,u.length){const m=re();if(Z(m)){const g=new Set(u),y=new Set(c),{anchor:_,focus:C}=m;lf(_,g,y)&&fa(_,_.getNode(),this,f,d),lf(C,g,y)&&fa(C,C.getNode(),this,f,d),p!==0||this.canBeEmpty()||Bt(this)||this.remove()}}return a}getDOMSlot(n){return new Di(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(ze(o)){const r=this.getIndent();r>0&&(o.style.paddingInlineStart=40*r+"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(),r=this.getTextStyle();return o!==0&&(n.textFormat=o),r!==""&&(n.textStyle=r),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,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,o){const r=this.getDOMSlot(n);let s=r.getFirstChild();for(let a=this.getFirstChild();a;a=a.getNextSibling()){const l=o.getElementByKey(a.getKey());l!==null&&(s==null?(r.insertChild(l),s=l):s!==l&&r.replaceChild(l,s),s=s.nextSibling)}}}function F(t){return t instanceof Lt}function lf(t,e,n){let o=t.getNode();for(;o;){const r=o.__key;if(e.has(r)&&!n.has(r))return!0;o=o.getParent()}return!1}class um extends Qt{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ce(t){return t instanceof um}class as extends Lt{constructor(){super("root");z(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new as}getTopLevelElementOrThrow(){W(51)}getTextContent(){const n=this.__cachedText;return!ss()&&$e()._dirtyType!==0||n===null?super.getTextContent():n}remove(){W(52)}replace(n){W(53)}insertBefore(n){W(54)}insertAfter(n){W(55)}updateDOM(n,o){return!1}splice(n,o,r){for(const s of r)F(s)||Ce(s)||W(282);return super.splice(n,o,r)}static importJSON(n){return Ie().updateFromJSON(n)}collapseAtStart(){return!0}}function Re(t){return t instanceof as}function dm(t){return new Ya(new Map(t._nodeMap))}function yu(){return new Ya(new Map([["root",new as]]))}function fm(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&W(130,n.name),F(t)){const o=e.children;Array.isArray(o)||W(59,n.name);const r=t.getChildren();for(let s=0;s<r.length;s++){const a=fm(r[s]);o.push(a)}}return e}class Ya{constructor(e,n){z(this,"_nodeMap");z(this,"_selection");z(this,"_flushSync");z(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 rf(n&&n.editor||null,this,e)}clone(e){const n=new Ya(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return rf(null,this,()=>({root:fm(Ie())}))}}class _u extends Lt{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class ls extends Lt{static getType(){return"paragraph"}static clone(e){return new ls(e.__key)}createDOM(e){const n=document.createElement("p"),o=Sr(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:Hle,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(ze(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return Le().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=Le();o.setTextFormat(e.format),o.setTextStyle(e.style);const r=this.getDirection();return o.setDirection(r),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 Hle(t){const e=Le();return t.style&&(e.setFormat(t.style.textAlign),Nu(t,e)),{node:e}}function Le(){return sn(new ls)}function cs(t){return t instanceof ls}const ye=0,gi=1,jle=4;function pm(t,e,n,o){const r=t._keyToDOMMap;r.clear(),t._editorState=yu(),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="",r.set("root",n))}function Wle(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:r}=tl(o),s=o.transform;if(!n.has(s)){n.add(s);const a=o.transform();a&&e.add(a)}if(r){const a=r.$transform;a&&e.add(a),o=r.extends}else{const a=Object.getPrototypeOf(o);o=a.prototype instanceof Qt&&a!==Qt?a:void 0}}return e}function Zle(t){const e=t||{},n=Ule(),o=e.theme||{},r=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=yu(),l=e.namespace||(r!==null?r._config.namespace:km()),c=e.editorState,u=[as,vo,rs,is,ls,_u,...e.nodes||[]],{onError:d,html:f}=e,p=e.editable===void 0||e.editable;let h;if(t===void 0&&n!==null)h=n._nodes;else{h=new Map;for(let g=0;g<u.length;g++){let y=u[g],_=null,C=null;if(typeof y!="function"){const k=y;y=k.replace,_=k.with,C=k.withKlass||null}tl(y);const v=y.getType(),w=Wle(y);h.set(v,{exportDOM:f&&f.export?f.export.get(y):void 0,klass:y,replace:_,replaceWithKlass:C,sharedNodeState:ile(u[g]),transforms:w})}}const m=new Zo(a,r,h,{disableEvents:s,namespace:l,theme:o},d||console.error,function(g,y){const _=new Map,C=new Set,v=w=>{Object.keys(w).forEach(k=>{let b=_.get(k);b===void 0&&(b=[],_.set(k,b)),b.push(w[k])})};return g.forEach(w=>{const k=w.klass.importDOM;if(k==null||C.has(k))return;C.add(k);const b=k.call(w.klass);b!==null&&v(b)}),y&&v(y),_}(h,f?f.import:void 0),p,t);return c!==void 0&&(m._pendingEditorState=c,m._dirtyType=2),m}class Zo{constructor(e,n,o,r,s,a,l,c){z(this,"_headless");z(this,"_parentEditor");z(this,"_rootElement");z(this,"_editorState");z(this,"_pendingEditorState");z(this,"_compositionKey");z(this,"_deferred");z(this,"_keyToDOMMap");z(this,"_updates");z(this,"_updating");z(this,"_listeners");z(this,"_commands");z(this,"_nodes");z(this,"_decorators");z(this,"_pendingDecorators");z(this,"_config");z(this,"_dirtyType");z(this,"_cloneNotNeeded");z(this,"_dirtyLeaves");z(this,"_dirtyElements");z(this,"_normalizedNodes");z(this,"_updateTags");z(this,"_observer");z(this,"_key");z(this,"_onError");z(this,"_htmlConversions");z(this,"_window");z(this,"_editable");z(this,"_blockCursorElement");z(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=r,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=km(),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&&W(35);const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=r.get(e);s===void 0&&W(36,String(e));const a=s[o];return a.add(n),()=>{a.delete(n),s.every(l=>l.size===0)&&r.delete(e)}}registerMutationListener(e,n,o){const r=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(r);const l=o&&o.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(n,r),()=>{a.delete(r),a.size===0&&s.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&W(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,r=vf(o).get(n.getType());if(!r)return;const s=new Map;for(const a of r.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),r=[o],s=o.replaceWithKlass;if(s!=null){const a=this.registerNodeTransformToKlass(s,n);r.push(a)}return function(a,l){const c=vf(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=We(f);p&&p.markDirty()}},a._pendingEditorState===null?{tag:Ai}:void 0)}(this,r.map(a=>a.klass.getType())),()=>{r.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=Sr(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,pm(this,n,e,r),n!==null&&(this._config.disableEvents||Ele(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Au(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,bh(this),this._updateTags.add(Ai),Mn(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;yc.set(l,u);const d=ca.get(u)??0;d<1&&u.addEventListener("selectionchange",Jh),ca.set(u,d+1),l.__lexicalEditor=c;const f=Yh(l);for(let p=0;p<vc.length;p++){const[h,m]=vc[p],g=typeof m=="function"?y=>{z1(y)||(V1(y),(c.isEditable()||h==="click")&&m(y,c))}:y=>{if(z1(y))return;V1(y);const _=c.isEditable();switch(h){case"cut":return _&&oe(c,hu,y);case"copy":return oe(c,Wa,y);case"paste":return _&&oe(c,du,y);case"dragstart":return _&&oe(c,Uh,y);case"dragover":return _&&oe(c,qh,y);case"dragend":return _&&oe(c,yle,y);case"focus":return _&&oe(c,ble,y);case"blur":return _&&oe(c,kle,y);case"drop":return _&&oe(c,zh,y)}};l.addEventListener(h,g),f.push(()=>{l.removeEventListener(h,g)})}}(e,this),o!=null&&e.classList.add(...o)}else this._window=null,this._updateTags.add(Ai),Mn(this);Ni("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&W(38);let o=e;o._readOnly&&(o=dm(e),o._selection=e._selection?e._selection.clone():null),Ch(this);const r=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;r===null||r.isEmpty()||(a!=null&&s.add(a),Mn(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||Mn(this)}parseEditorState(e,n){return function(o,r,s){const a=yu(),l=Ye,c=vt,u=Je,d=r._dirtyElements,f=r._dirtyLeaves,p=r._cloneNotNeeded,h=r._dirtyType;r._dirtyElements=new Map,r._dirtyLeaves=new Set,r._cloneNotNeeded=new Set,r._dirtyType=0,Ye=a,vt=!1,Je=r,Cu(null);try{const m=r._nodes;vu(o.root,m),s&&s(),a._readOnly=!0}catch(m){m instanceof Error&&r._onError(m)}finally{r._dirtyElements=d,r._dirtyLeaves=f,r._cloneNotNeeded=p,r._dirtyType=h,Ye=l,vt=c,Je=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return Mn(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,r,s){o._updating?o._updates.push([r,s]):Ga(o,r,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),Dt(this,()=>{const r=re(),s=Ie();r!==null?r.dirty||_t(r.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),Qle("focus"),ece(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=tn(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ni("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}z(Zo,"version");Zo.version="0.38.1+prod.esm";let xc=null;function Cu(t){xc=t}let Kle=1;function hm(t,e){const n=bu(t,e);return n===void 0&&W(30,e),n}function bu(t,e){return t._nodes.get(e)}const Gle=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function cf(t){return Ce(Pr(t))}function ku(t){const e=document.activeElement;if(!ze(e))return!1;const n=e.nodeName;return Ce(Pr(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&Ja(e)==null)}function us(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!ku(e)&&mm(e)===t}catch{return!1}}function wu(t){return t instanceof Zo}function mm(t){let e=t;for(;e!=null;){const n=Ja(e);if(wu(n))return n;e=ds(e)}return null}function Ja(t){return t?t.__lexicalEditor:null}function Fo(t){return Za(t)||t.isToken()}function Nn(t){return Fo(t)||t.isSegmented()}function Hn(t){return Wr(t)&&t.nodeType===3}function gm(t){return Wr(t)&&t.nodeType===9}function Ir(t){let e=t;for(;e!=null;){if(Hn(e))return e;e=e.firstChild}return null}function pa(t,e,n){const o=lt[e];if(n!==null&&(t&o)===(n&o))return t;let r=t^o;return e==="subscript"?r&=~lt.superscript:e==="superscript"?r&=~lt.subscript:e==="lowercase"?(r&=~lt.uppercase,r&=~lt.capitalize):e==="uppercase"?(r&=~lt.lowercase,r&=~lt.capitalize):e==="capitalize"&&(r&=~lt.lowercase,r&=~lt.uppercase),r}function vm(t){return X(t)||Po(t)||Ce(t)}function Yle(t,e){const n=function(){const a=xc;return xc=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);Ge(),am();const o=$e(),r=yo(),s=""+Kle++;r._nodeMap.set(s,t),F(t)?o._dirtyElements.set(s,!0):o._dirtyLeaves.add(s),o._cloneNotNeeded.add(s),o._dirtyType=1,t.__key=s}function Ro(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),o=e.getWritable(),r=t.getPreviousSibling(),s=t.getNextSibling(),a=s!==null?s.__key:null,l=r!==null?r.__key:null,c=r!==null?r.getWritable():null,u=s!==null?s.getWritable():null;r===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 ha(t){am(),ua(t)&&W(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=yo(),r=$e(),s=o._nodeMap,a=r._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;r._dirtyType=1,F(t)?a.set(l,!0):r._dirtyLeaves.add(l)}function Xe(t){Ge();const e=$e(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=We(n);o!==null&&o.getWritable()}if(t!==null){const o=We(t);o!==null&&o.getWritable()}}}function oo(){return ss()?null:$e()._compositionKey}function We(t,e){const n=(e||yo())._nodeMap.get(t);return n===void 0?null:n}function ym(t,e){const n=Xa(t,$e());return n!==void 0?We(n,e):null}function Xa(t,e){return t[`__lexicalKey_${e._key}`]}function Pr(t,e){let n=t;for(;n!=null;){const o=ym(n,e);if(o!==null)return o;n=ds(n)}return null}function _m(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function uf(t){return t.read(()=>Ie().getTextContent())}function Ie(){return Cm(yo())}function Cm(t){return t._nodeMap.get("root")}function _t(t){Ge();const e=yo();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function _r(t){const e=$e(),n=function(o,r){let s=o;for(;s!=null;){const a=Xa(s,r);if(a!==void 0)return a;s=ds(s)}return null}(t,e);return n===null?t===e.getRootElement()?We("root"):null:We(n)}function bm(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Eu(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function km(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function wm(t){return Hn(t)?t.nodeValue:null}function xu(t,e,n){const o=tn(qt(e));if(o===null)return;const r=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(r!==null){let l=wm(r);const c=Pr(r);if(l!==null&&X(c)){if(l===Ha&&n){const u=n.length;l=n,s=u,a=u}l!==null&&Su(c,l,s,a,t)}}}function Su(t,e,n,o,r){let s=t;if(s.isAttached()&&(r||!s.isDirty())){const a=s.isComposing();let l=e;(a||r)&&e[e.length-1]===Ha&&(l=e.slice(0,-1));const c=s.getTextContent();if(r||l!==c){if(l===""){if(Xe(null),Vi||Lr||zi)s.remove();else{const g=$e();setTimeout(()=>{g.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=jr(),f=s.getTextContentSize(),p=oo(),h=s.getKey();if(s.isToken()||p!==null&&h===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 m=re();if(!Z(m)||n===null||o===null)return void df(s,l,m);if(m.setTextNodeRange(s,n,s,o),s.isSegmented()){const g=Oe(s.getTextContent());s.replace(g),s=g}df(s,l,m)}}}function df(t,e,n){if(t.setTextContent(e),Z(n)){const o=t.getKey();for(const r of["anchor","focus"]){const s=n[r];s.type==="text"&&s.key===o&&(s.offset=ao(t,s.offset,"clamp"))}}}function Is(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function Jle(t,e){return Is(t,e,"altKey")&&Is(t,e,"ctrlKey")&&Is(t,e,"shiftKey")&&Is(t,e,"metaKey")}function Ee(t,e,n){return Jle(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const An={ctrlKey:!Gt,metaKey:Gt},ff={altKey:Gt,ctrlKey:!Gt};function pf(t){return t.key==="Backspace"}function hf(t){return Ee(t,"a",An)}function Xle(t){const e=Ie();if(Z(t)){const n=t.anchor,o=t.focus,r=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(r.getKey(),0,"element"),o.set(r.getKey(),r.getChildrenSize(),"element"),oa(t),t}{const n=e.select(0,e.getChildrenSize());return _t(oa(n)),n}}function Sr(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,o=n[e];if(o!==void 0)return o;const r=t[e];if(typeof r=="string"){const s=gh(r);return n[e]=s,s}return r}function Tu(t,e,n,o,r){if(n.size===0)return;const s=o.__type,a=o.__key,l=e.get(s);l===void 0&&W(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"&&r==="created";(d===void 0||f)&&u.set(a,f?"updated":r)}function mf(t,e,n){const o=t.getParent();let r=n,s=t;return o!==null&&(e&&n===0?(r=s.getIndexWithinParent(),s=o):e||n!==s.getChildrenSize()||(r=s.getIndexWithinParent()+1,s=o)),s.getChildAtIndex(e?r-1:r)}function Sc(t,e){const n=t.offset;if(t.type==="element")return mf(t.getNode(),e,n);{const o=t.getNode();if(e&&n===0||!e&&n===o.getTextContentSize()){const r=e?o.getPreviousSibling():o.getNextSibling();return r===null?mf(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):r}}return null}function Em(t){const e=qt(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function oe(t,e,n){return function(o,r,s){const a=Eu(o);for(let l=4;l>=0;l--)for(let c=0;c<a.length;c++){const u=a[c],d=u._commands.get(r);if(d!==void 0){const f=d[l];if(f!==void 0){const p=Array.from(f),h=p.length;let m=!1;if(Dt(u,()=>{for(let g=0;g<h;g++)if(p[g](s,o))return void(m=!0)}),m)return m}}}return!1}(t,e,n)}function Qa(t){return!Re(t)&&!t.isLastChild()&&!t.isInline()}function Ko(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&W(75,e),n}function ds(t){const e=t.assignedSlot||t.parentElement;return Nc(e)?e.host:e}function xm(t){return gm(t)?t:ze(t)?t.ownerDocument:null}function Qle(t){Ge(),$e()._updateTags.add(t)}function ece(t){Ge(),$e()._deferred.push(t)}function Tc(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Au(t){const e=xm(t);return e?e.defaultView:null}function qt(t){const e=t._window;return e===null&&W(78),e}function tce(t){let e=t.getParentOrThrow();for(;e!==null;){if(Bt(e))return e;e=e.getParentOrThrow()}return e}function Bt(t){return Re(t)||F(t)&&t.isShadowRoot()}function sn(t){const e=$e(),n=t.getType(),o=bu(e,n);o===void 0&&W(200,t.constructor.name,n);const{replace:r,replaceWithKlass:s}=o;if(r!==null){const a=r(t),l=a.constructor;return s!==null?a instanceof s||W(201,s.name,s.getType(),l.name,l.getType(),t.constructor.name,n):a instanceof t.constructor&&l!==t.constructor||W(202,l.name,l.getType(),t.constructor.name,n),a.__key===t.__key&&W(203,t.constructor.name,n,l.name,l.getType()),a}return t}function jl(t,e){!Re(t.getParent())||F(e)||Ce(e)||W(99)}function nce(t){const e=We(t);return e===null&&W(63,t),e}function Wl(t){return(Ce(t)||F(t)&&!t.canBeEmpty())&&!t.isInline()}function Ac(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function tn(t){return rn?(t||window).getSelection():null}function oce(t){const e=Au(t);return e?e.getSelection():null}function Sm(t){return ze(t)&&t.tagName==="A"}function ze(t){return Wr(t)&&t.nodeType===1}function Wr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Nc(t){return Wr(t)&&t.nodeType===11}function Dc(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 ma(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 no(t){if(Ce(t)&&!t.isInline())return!0;if(!F(t)||Bt(t))return!1;const e=t.getFirstChild(),n=e===null||Po(e)||X(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function el(){return $e()}const gf=new WeakMap,rce=new Map;function vf(t){if(!t._readOnly&&t.isEmpty())return rce;t._readOnly||W(192);let e=gf.get(t);return e||(e=function(n){const o=new Map;for(const[r,s]of n._nodeMap){const a=s.__type;let l=o.get(a);l||(l=new Map,o.set(a,l)),l.set(r,s)}return o}(t),gf.set(t,e)),e}function Tm(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function ice(t){return(e=Tm(t))[Xh]=!0,e;var e}function Nu(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function sce(t){return t.__lexicalUnmanaged===!0}function vi(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==Qt[e]}function tl(t){const e=T1 in t.prototype?t.prototype[T1]():void 0,n=function(a){if(!(a===Qt||a.prototype instanceof Qt)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{Zo.version&&(c=JSON.parse(Zo.version))}catch{}W(290,a.name,l,c)}return a===um||a===Lt||a===Qt}(t),o=!n&&vi(t,"getType")?t.getType():void 0;let r,s=o;if(e)if(o)r=e[o];else for(const[a,l]of Object.entries(e))s=a,r=l;if(!n&&s&&(vi(t,"getType")||(t.getType=()=>s),vi(t,"clone")||(t.clone=a=>(Cu(a),new t)),vi(t,"importJSON")||(t.importJSON=r&&r.$importJSON||(a=>new t().updateFromJSON(a))),!vi(t,"importDOM")&&r)){const{importDOM:a}=r;a&&(t.importDOM=()=>a)}return{ownNodeConfig:r,ownNodeType:s}}function ace(t){const e=el();return Ge(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const Ln=(t,e)=>{let n=t;for(;n!=null&&!Re(n);){if(e(n))return n;n=n.getParent()}return null},lce={next:"previous",previous:"next"};class Du{constructor(e){z(this,"origin");this.origin=e}[Symbol.iterator](){return Am({hasNext:Fr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return et(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return et(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 r=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 r){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&&W(263,Array.from(l).join(" "))}else s.insert(c);s=et(c,this.direction)}for(const c of l.values())c.remove();return this}}class Zi extends Du{constructor(){super(...arguments);z(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:nn(n,this.direction)}getParentCaret(n="root"){return et(Mu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Zr(this.direction);return et(this.getNodeAtCaret(),n)||nn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Zi&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const cce={root:Re,shadowRoot:Bt};function Zr(t){return lce[t]}function Mu(t,e="root"){return cce[e](t)?null:t}class Go extends Du{constructor(){super(...arguments);z(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:et(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return F(this.origin)?nn(this.origin,this.direction):null}getParentCaret(n="root"){return et(Mu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Zr(this.direction);return et(this.getNodeAtCaret(),n)||nn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof Go&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof Go||n instanceof Yo)&&this.direction===n.direction&&this.origin.is(n.origin)}}class Yo extends Du{constructor(n,o){super(n);z(this,"type","text");z(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:Jo(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return et(Mu(this.getParentAtCaret(),n),this.direction)}getFlipped(){return Jo(this.origin,Zr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof Yo&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof Go||n instanceof Yo)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return et(this.origin,this.direction)}}function so(t){return t instanceof Yo}function Fr(t){return t instanceof Go}function mn(t){return t instanceof Zi}const uce={next:class extends Yo{constructor(){super(...arguments);z(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Yo{constructor(){super(...arguments);z(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},dce={next:class extends Go{constructor(){super(...arguments);z(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Go{constructor(){super(...arguments);z(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},fce={next:class extends Zi{constructor(){super(...arguments);z(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Zi{constructor(){super(...arguments);z(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function et(t,e){return t?new dce[e](t):null}function Jo(t,e,n){return t?new uce[e](t,ao(t,n)):null}function ao(t,e,n="error"){const o=t.getTextContentSize();let r=e==="next"?o:e==="previous"?0:e;return(r<0||r>o)&&(n!=="clamp"&&hh(284,String(e),String(o),t.getKey()),r=r<0?0:o),r}function yf(t,e){return new hce(t,e)}function nn(t,e){return F(t)?new fce[e](t):null}function pce(t){return t&&t.getChildCaret()||t}function Bu(t){return t&&pce(t.getAdjacentCaret())}class $u{constructor(e,n,o){z(this,"type","node-caret-range");z(this,"direction");z(this,"anchor");z(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 $u(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=r=>{const s=this[r].getLatest();return so(s)?function(a,l){const{direction:c,origin:u}=a,d=ao(u,l==="focus"?Zr(c):c);return yf(a,d-a.offset)}(s,r):null},n=e("anchor"),o=e("focus");if(n&&o){const{caret:r}=n,{caret:s}=o;if(r.isSameNodeCaret(s))return[yf(r,s.offset-r.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=so(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),r=so(o),s=a=>a.isSameNodeCaret(o)?null:Bu(a)||a.getParentCaret(e);return Am({hasNext:a=>a!==null&&!(r&&o.isSameNodeCaret(a)),initial:n.isSameNodeCaret(o)?null:s(n),map:a=>a,step:s})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class hce{constructor(e,n){z(this,"type","slice");z(this,"caret");z(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,r]=this.getSliceIndices(),s=e.getTextContent();return Jo(e.setTextContent(s.slice(0,o)+s.slice(r)),n,o)}}function Ou(t){return po(t,et(Ie(),t.direction))}function mce(t){return po(t,t)}function po(t,e){return t.direction!==e.direction&&W(265),new $u(t,e,t.direction)}function Am(t){const{initial:e,hasNext:n,step:o,map:r}=t;let s=e;return{[Symbol.iterator](){return this},next(){if(!n(s))return{done:!0,value:void 0};const a={done:!1,value:r(s)};return s=o(s),a}}}function Nm(t,e){const n=js(t.origin,e.origin);switch(n===null&&W(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const o=t.type==="text",r=e.type==="text";return o&&r?function(s,a){return Math.sign(s-a)}(t.offset,e.offset):t.type===e.type?0:o?-1:r?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 Dm(n)}}function Dm(t){const{a:e,b:n}=t,o=e.__key,r=n.__key;let s=e,a=n;for(;s&&a;s=s.getNextSibling(),a=a.getNextSibling()){if(s.__key===r)return-1;if(a.__key===o)return 1}return s===null?1:-1}function Ps(t,e){return e.is(t)}function _f(t){return F(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function js(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,r]=_f(t);o;r=o,o=o.getParent())n.set(o,r);for(let[o,r]=_f(e);o;r=o,o=o.getParent()){const s=n.get(o);if(s!==void 0)return s===null?(Ps(t,o)||W(276),{commonAncestor:o,type:"ancestor"}):r===null?(Ps(e,o)||W(277),{commonAncestor:o,type:"descendant"}):((F(s)||Ps(t,s))&&(F(r)||Ps(e,r))&&o.is(s.getParent())&&o.is(r.getParent())||W(278),{a:s,b:r,commonAncestor:o,type:"branch"})}return null}function Rn(t,e){const{type:n,key:o,offset:r}=t,s=nce(t.key);return n==="text"?(X(s)||W(266,s.getType(),o),Jo(s,e,r)):(F(s)||W(267,s.getType(),o),yce(s,t.offset,e))}function Xo(t,e){const{origin:n,direction:o}=e,r=o==="next";so(e)?t.set(n.getKey(),e.offset,"text"):Fr(e)?X(n)?t.set(n.getKey(),ao(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(r?1:0),"element"):(mn(e)&&F(n)||W(268),t.set(n.getKey(),r?0:n.getChildrenSize(),"element"))}function gce(t){const e=re(),n=Z(e)?e:rm();return Ws(n,t),_t(n),n}function Ws(t,e){Xo(t.anchor,e.anchor),Xo(t.focus,e.focus)}function Cf(t){const{anchor:e,focus:n}=t,o=Rn(e,"next"),r=Rn(n,"next"),s=Nm(o,r)<=0?"next":"previous";return po(Rr(o,s),Rr(r,s))}function Lu(t){const{direction:e,origin:n}=t,o=et(n,Zr(e)).getNodeAtCaret();return o?et(o,e):nn(n.getParentOrThrow(),e)}function bf(t,e="root"){const n=[t];for(let o=mn(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(Lu(o));return n}function Zl(t){return!!t&&t.origin.isAttached()}function vce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let r=e;const s=Bm(t,o),a=bf(s.anchor,n),l=bf(s.focus.getFlipped(),n),c=new Set,u=[];for(const m of s.iterNodeCarets(n))if(mn(m))c.add(m.origin.getKey());else if(Fr(m)){const{origin:g}=m;F(g)&&!c.has(g.getKey())||u.push(g)}for(const m of u)m.remove();for(const m of s.getTextSlices()){if(!m)continue;const{origin:g}=m.caret,y=g.getTextContentSize(),_=Lu(et(g,o)),C=g.getMode();if(Math.abs(m.distance)===y&&r==="removeEmptySlices"||C==="token"&&m.distance!==0)_.remove();else if(m.distance!==0){r="removeEmptySlices";let v=m.removeTextSlice();const w=m.caret.origin;if(C==="segmented"){const k=v.origin,b=Oe(k.getTextContent()).setStyle(k.getStyle()).setFormat(k.getFormat());_.replaceOrInsert(b),v=Jo(b,o,v.offset)}w.is(a[0].origin)&&(a[0]=v),w.is(l[0].origin)&&(l[0]=v.getFlipped())}}let d,f;for(const m of a)if(Zl(m)){d=Rt(m);break}for(const m of l)if(Zl(m)){f=Rt(m);break}const p=function(m,g,y){if(!m||!g)return null;const _=m.getParentAtCaret(),C=g.getParentAtCaret();if(!_||!C)return null;const v=_.getParents().reverse();v.push(_);const w=C.getParents().reverse();w.push(C);const k=Math.min(v.length,w.length);let b;for(b=0;b<k&&v[b]===w[b];b++);const E=(A,V)=>{let I;for(let U=b;U<A.length;U++){const $=A[U];if(Bt($))return;!I&&V($)&&(I=$)}return I},S=E(v,no),T=S&&E(w,A=>y.has(A.getKey())&&no(A));return S&&T?[S,T]:null}(d,f,c);if(p){const[m,g]=p;nn(m,"previous").splice(0,g.getChildren()),g.remove()}const h=[d,f,...a,...l].find(Zl);if(h)return mce(Rr(Rt(h),t.direction));W(269,JSON.stringify(a.map(m=>m.origin.__key)))}function Rt(t){const e=function(r){let s=r;for(;mn(s);){const a=Bu(s);if(!mn(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(X(e.origin))return so(e)?e:Jo(e.origin,n,n);const o=e.getAdjacentCaret();return Fr(o)&&X(o.origin)?Jo(o.origin,n,Zr(n)):e}function Mm(t){return so(t)&&t.offset!==ao(t.origin,t.direction)}function Rr(t,e){return t.direction===e?t:t.getFlipped()}function Bm(t,e){return t.direction===e?t:po(Rr(t.focus,e),Rr(t.anchor,e))}function yce(t,e,n){let o=nn(t,"next");for(let r=0;r<e;r++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return Rr(o,n)}const Mc=new Map;function $m(t){const e={};if(!t)return e;const n=t.split(";");for(const o of n)if(o!==""){const[r,s]=o.split(/:([^]+)/);r&&s&&(e[r.trim()]=s.trim())}return e}function kf(t){let e=Mc.get(t);return e===void 0&&(e=$m(t),Mc.set(t,e)),e}function Om(t){const e=el().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function Lm(t){return Om(Re(t)?t:t.getParentOrThrow())}function wf(t){const e=Lm(t);return e!==null&&e.direction==="rtl"}function Im(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!Nn(e)&&o!==null){const[r,s]=o,a=t.isBackward(),l=r.getNode(),c=s.getNode(),u=e.is(l),d=e.is(c);if(u||d){const[f,p]=wc(t),h=l.is(c),m=e.is(a?c:l),g=e.is(a?l:c);let y,_=0;h?(_=f>p?p:f,y=f>p?f:p):m?(_=a?p:f,y=void 0):g&&(_=0,y=a?f:p);const C=e.__text.slice(_,y);C!==e.__text&&(n==="clone"&&(e=ice(e)),e.__text=C)}}return e}function _ce(t){const e=t.getStyle(),n=$m(e);Mc.set(e,n)}function Pm(t){const e=Fm(t);return e!==null&&e.writingMode==="vertical-rl"}function Fm(t){const e=t.anchor.getNode();return F(e)?Om(e):Lm(e)}function Ef(t,e){let n=Pm(t)?!e:e;Rm(t)&&(n=!n);const o=Rn(t.focus,n?"previous":"next");if(Mm(o))return!1;for(const r of Ou(o)){if(mn(r))return!r.origin.isInline();if(!F(r.origin)){if(Ce(r.origin))return!0;break}}return!1}function Cce(t,e,n,o){t.modify(e?"extend":"move",n,o)}function Rm(t){const e=Fm(t);return e!==null&&e.direction==="rtl"}function xf(t,e,n){const o=Rm(t);let r;r=Pm(t)||o?!n:n,Cce(t,e,r,"character")}function bce(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 Iu=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,kce=Iu&&"documentMode"in document?document.documentMode:null;!(!Iu||!("InputEvent"in window)||kce)&&"getTargetRanges"in new window.InputEvent("input");function Vm(...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 fs(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const wce=Iu;function Vn(t,...e){const n=Vm(...e);n.length>0&&t.classList.add(...n)}function Pu(t,...e){const n=Vm(...e);n.length>0&&t.classList.remove(...n)}function Ece(t){return t?t.getAdjacentCaret():null}function xce(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function Sce(t){const e=Ln(t,n=>F(n)&&!n.isInline());return F(e)||bce(4,t.__key),e}function $o(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function ro(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 Bc(t){let e=1,n=t.getParent();for(;n!=null;){if(be(n)){const o=n.getParent();if(ue(o)){e++,n=o.getParent();continue}ro(40)}return e}return e}function $c(t){let e=t.getParent();ue(e)||ro(40);let n=e;for(;n!==null;)n=n.getParent(),ue(n)&&(e=n);return e}function zm(t){let e=[];const n=t.getChildren().filter(be);for(let o=0;o<n.length;o++){const r=n[o],s=r.getFirstChild();ue(s)?e=e.concat(zm(s)):e.push(r)}return e}function fn(t){return be(t)&&ue(t.getFirstChild())}function Sf(t){return It().append(t)}function Um(t,e){return be(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function Tf(t){const e=re();if(e!==null){let n=e.getNodes();if(Z(e)){const r=e.getStartEndPoints();r===null&&ro(143);const[s]=r,a=s.getNode(),l=a.getParent();if(Bt(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=Le();a.append(u),n=u.select().getNodes()}}else if(Um(a,n)){const c=yt(t);if(Bt(l)){a.replace(c);const u=It();F(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(be(a)){const u=a.getParentOrThrow();Qo(c,u.getChildren()),u.replace(c)}return}}const o=new Set;for(let r=0;r<n.length;r++){const s=n[r];if(F(s)&&s.isEmpty()&&!be(s)&&!o.has(s.getKey())){Af(s,t);continue}let a=vm(s)?s.getParent():be(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(ue(a)){if(!o.has(l)){const c=yt(t);Qo(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(Bt(c)&&!o.has(l)){o.add(l),Af(a,t);break}a=c}}}}}function Qo(t,e){t.splice(t.getChildrenSize(),0,e)}function Af(t,e){if(ue(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),r=It();let s;if(Qo(r,t.getChildren()),ue(n)&&e===n.getListType())n.append(r),ue(o)&&e===o.getListType()&&(Qo(n,o.getChildren()),o.remove()),s=n;else if(ue(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(r),s=o;else{const a=yt(e);a.append(r),t.replace(a),s=a}return r.setFormat(t.getFormatType()),r.setIndent(t.getIndent()),t.remove(),s}function Fu(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&fn(n)&&fn(o)&&(Fu(n.getFirstChild(),o.getFirstChild()),o.remove());const r=e.getChildren();r.length>0&&t.append(...r),e.remove()}function Tce(){const t=re();if(Z(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(Um(o,n))e.add($c(o));else for(let r=0;r<n.length;r++){const s=n[r];if(vm(s)){const a=xce(s,_o);a!=null&&e.add($c(a))}}for(const r of e){let s=r;const a=zm(r);for(const l of a){const c=Le().setTextStyle(t.style).setTextFormat(t.format);Qo(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&Xo(t.anchor,Rt(nn(c,"next"))),l.__key===t.focus.key&&Xo(t.focus,Rt(nn(c,"next"))),l.remove()}r.remove()}}}function qm(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())be(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),ue(o.getFirstChild())||n++)}function Ace(t){const e=new Set;if(fn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),r=t.getPreviousSibling();if(fn(o)&&fn(r)){const s=r.getFirstChild();if(ue(s)){s.append(t);const a=o.getFirstChild();ue(a)&&(Qo(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(fn(o)){const s=o.getFirstChild();if(ue(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(fn(r)){const s=r.getFirstChild();ue(s)&&s.append(t)}else if(ue(n)){const s=It().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=yt(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());s.append(a),a.append(t),r?r.insertAfter(s):o?o.insertBefore(s):n.append(s)}}function Nce(t){if(fn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(ue(n?n.getParent():void 0)&&be(n)&&ue(e)){const o=e?e.getFirstChild():void 0,r=e?e.getLastChild():void 0;if(t.is(o))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(r))n.insertAfter(t),e.isEmpty()&&n.remove();else{const s=e.getListType(),a=It(),l=yt(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=It(),u=yt(s);c.append(u),Qo(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function Dce(){const t=re();if(!Z(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!be(e)||e.getChildrenSize()!==0)return!1;const n=$c(e),o=e.getParent();ue(o)||ro(40);const r=o.getParent();let s;if(Bt(r))s=Le(),n.insertAfter(s);else{if(!be(r))return!1;s=It(),r.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=yt(o.getListType());if(be(s)){const c=It();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||!be(u)&&!ue(u))break;c=u}c.remove()}(e),!0}function ga(...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 _o=class extends Lt{constructor(n=1,o=void 0,r){super(r);z(this,"__value");z(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();ue(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Lt,importDOM:{li:()=>({conversion:Mce,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,r){(function(l,c,u){const d=c.getParent();!ue(d)||d.getListType()!=="check"||ue(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,h=p?p.listitem:void 0;let m;if(p&&p.nested&&(m=p.nested.listitem),h!==void 0&&d.push(...ga(h)),p){const g=u.getParent(),y=ue(g)&&g.getListType()==="check",_=u.getChecked();y&&!_||f.push(p.listitemUnchecked),y&&_||f.push(p.listitemChecked),y&&d.push(_?p.listitemChecked:p.listitemUnchecked)}if(m!==void 0){const g=ga(m);u.getChildren().some(y=>ue(y))?d.push(...g):f.push(...g)}f.length>0&&Pu(l,...f),d.length>0&&Vn(l,...d)}(o,r.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=kf(c.__textStyle);for(const f in d)l.style.setProperty(`--listitem-marker-${f}`,d[f]);if(u)for(const f in kf(u.__textStyle))f in d||l.style.removeProperty(`--listitem-marker-${f}`)}(o,this,n)}updateDOM(n,o,r){const s=o;return this.updateListItemDOM(n,s,r),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const o=this.createDOM(n._config),r=this.getFormatType();r&&(o.style.textAlign=r);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 r=n[o];if(F(r)&&this.canMergeWith(r)){const s=r.getChildren();this.append(...s),r.remove()}else super.append(r)}return this}replace(n,o){if(be(n))return super.replace(n);this.setIndent(0);const r=this.getParentOrThrow();if(!ue(r))return n;if(r.__first===this.getKey())r.insertBefore(n);else if(r.__last===this.getKey())r.insertAfter(n);else{const s=yt(r.getListType());let a=this.getNextSibling();for(;a;){const l=a;a=a.getNextSibling(),s.append(l)}r.insertAfter(n),n.insertAfter(s)}return o&&(F(n)||ro(139),this.getChildren().forEach(s=>{n.append(s)})),this.remove(),r.getChildrenSize()===0&&r.remove(),n}insertAfter(n,o=!0){const r=this.getParentOrThrow();if(ue(r)||ro(39),be(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(r.insertAfter(n,o),s.length!==0){const a=yt(r.getListType());s.forEach(l=>a.append(l)),n.insertAfter(a,o)}return n}remove(n){const o=this.getPreviousSibling(),r=this.getNextSibling();super.remove(n),o&&r&&fn(o)&&fn(r)&&(Fu(o.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(n,o=!0){const r=It().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,o),r}collapseAtStart(n){const o=Le();this.getChildren().forEach(l=>o.append(l));const r=this.getParentOrThrow(),s=r.getParentOrThrow(),a=be(s);if(r.getChildrenSize()===1)if(a)r.remove(),s.select();else{r.insertBefore(o),r.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 r.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 r=this.getParent();return ue(r)&&(o=r.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(),r=0;for(;be(o);)o=o.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(n){typeof n!="number"&&ro(117),(n=Math.floor(n))>=0||ro(199);let o=this.getIndent();for(;o!==n;)o<n?(Ace(this),o++):(Nce(this),o--);return this}canInsertAfter(n){return be(n)}canReplaceWith(n){return be(n)}canMergeWith(n){return be(n)||cs(n)}extractWithChild(n,o){if(!Z(o))return!1;const r=o.anchor.getNode(),s=o.focus.getNode();return this.isParentOf(r)&&this.isParentOf(s)&&this.getTextContent().length===o.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return yt("bullet")}canMergeWhenEmpty(){return!0}};function Mce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return Nf(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 Nf(n.children[0])}const e=t.getAttribute("aria-checked");return{node:It(e==="true"||e!=="false"&&void 0)}}function Nf(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:It(t.hasAttribute("checked"))}}function It(t){return sn(new _o(void 0,t))}function be(t){return t instanceof _o}let tr=class extends Lt{constructor(n="number",o=1,r){super(r);z(this,"__tag");z(this,"__start");z(this,"__listType");const s=$ce[n]||n;this.__listType=s,this.__tag=s==="number"?"ol":"ul",this.__start=o}$config(){return this.config("list",{$transform:n=>{(function(o){const r=o.getNextSibling();ue(r)&&o.getListType()===r.getListType()&&Fu(o,r)})(n),qm(n)},extends:Lt,importDOM:{ol:()=>({conversion:Mf,priority:0}),ul:()=>({conversion:Mf,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 r=this.__tag,s=document.createElement(r);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,Df(s,n.theme,this),s}updateDOM(n,o,r){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Df(o,r.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 ze(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,r){let s=r;for(let a=0;a<r.length;a++){const l=r[a];be(l)||(s===r&&(s=[...r]),s[a]=It().append(!F(l)||ue(l)||l.isInline()?l:Oe(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return be(n)}};function Df(t,e,n){const o=[],r=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=Bc(n)-1,c=l%a.length,u=a[c],d=s[n.__tag];let f;const p=s.nested,h=s.checklist;if(p!==void 0&&p.list&&(f=p.list),d!==void 0&&o.push(d),h!==void 0&&n.__listType==="check"&&o.push(h),u!==void 0){o.push(...ga(u));for(let m=0;m<a.length;m++)m!==c&&r.push(n.__tag+m)}if(f!==void 0){const m=ga(f);l>1?o.push(...m):r.push(...m)}}r.length>0&&Pu(t,...r),o.length>0&&Vn(t,...o)}function Bce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(be(o)){e.push(o);const r=o.getChildren();r.length>1&&r.forEach(s=>{ue(s)&&e.push(Sf(s))})}else e.push(Sf(o))}return e}function Mf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=yt("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 r of o.childNodes)if(ze(r)&&r.hasAttribute("aria-checked"))return!0;return!1}(t)?yt("check"):yt("bullet")),{after:Bce,node:n}}const $ce={ol:"number",ul:"bullet"};function yt(t="number",e=1){return sn(new tr(t,e))}function ue(t){return t instanceof tr}const Oce=le("UPDATE_LIST_START_COMMAND"),Hm=le("INSERT_UNORDERED_LIST_COMMAND"),jm=le("INSERT_ORDERED_LIST_COMMAND"),Lce=le("REMOVE_LIST_COMMAND");function Ice(t){return fs(t.registerCommand(jm,()=>(Tf("number"),!0),gi),t.registerCommand(Oce,e=>{const{listNodeKey:n,newStart:o}=e,r=We(n);return!!ue(r)&&(r.getListType()==="number"&&(r.setStart(o),qm(r)),!0)},gi),t.registerCommand(Hm,()=>(Tf("bullet"),!0),gi),t.registerCommand(Lce,()=>(Tce(),!0),gi),t.registerCommand(Hi,()=>Dce(),gi),t.registerNodeTransform(_o,e=>{const n=e.getFirstChild();if(n){if(X(n)){const o=n.getStyle(),r=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const o=re();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(vo,e=>{const n=e.getParent();if(be(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),r=e.getFormat();o===n.getTextStyle()&&r===n.getTextFormat()||n.setTextStyle(o).setTextFormat(r)}}))}function Pce(t){const e=n=>{const o=n.getParent();if(ue(n.getFirstChild())||!ue(o))return;const r=Ln(n,s=>be(s)&&ue(s.getParent())&&be(s.getPreviousSibling()));if(r===null&&n.getIndent()>0)n.setIndent(0);else if(be(r)){const s=r.getPreviousSibling();if(be(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;ue(d);){const f=d.getLastChild();if(!be(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(ue(l)){const c=Bc(l);c+1<Bc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(tr,n=>{const o=[n];for(;o.length>0;){const r=o.shift();if(ue(r)){for(const s of r.getChildren())if(be(s)){e(s);const a=s.getFirstChild();ue(a)&&o.push(a)}}}})}function Fce(t,e){const n=gm(e)?e.body.childNodes:e.childNodes;let o=[];const r=[];for(const s of n)if(!Zm.has(s.nodeName)){const a=Km(s,t,r,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof _u&&a.insertAfter(en());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(r),o}function Rce(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=Ie().getChildren();for(let r=0;r<o.length;r++)Wm(t,o[r],n,e);return n.innerHTML}function Wm(t,e,n,o=null){let r=o===null||e.isSelected(o);const s=F(e)&&e.excludeFromCopy("html");let a=e;o!==null&&X(e)&&(a=Im(o,e,"clone"));const l=F(a)?a.getChildren():[],c=bu(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 h=0;h<l.length;h++){const m=l[h],g=Wm(t,m,p,o);!r&&F(e)&&g&&e.extractWithChild(m,o,"html")&&(r=!0)}if(r&&!s){if((ze(d)||Nc(d))&&d.append(p),n.append(d),f){const h=f.call(a,d);h&&(Nc(d)?d.replaceChildren(h):d.replaceWith(h))}}else n.append(p);return r}const Zm=new Set(["STYLE","SCRIPT"]);function Km(t,e,n,o,r=new Map,s){let a=[];if(Zm.has(t.nodeName))return a;let l=null;const c=function(m,g){const{nodeName:y}=m,_=g._htmlConversions.get(y.toLowerCase());let C=null;if(_!==void 0)for(const v of _){const w=v(m);w!==null&&(C===null||(C.priority||0)<=(w.priority||0))&&(C=w)}return C!==null?C.conversion:null}(t,e),u=c?c(t):null;let d=null;if(u!==null){d=u.after;const m=u.node;if(l=Array.isArray(m)?m[m.length-1]:m,l!==null){for(const[,g]of r)if(l=g(l,s),!l)break;l&&a.push(...Array.isArray(m)?m:[l])}u.forChild!=null&&r.set(t.nodeName,u.forChild)}const f=t.childNodes;let p=[];const h=(l==null||!Bt(l))&&(l!=null&&Ec(l)||o);for(let m=0;m<f.length;m++)p.push(...Km(f[m],e,n,h,new Map(r),l));return d!=null&&(p=d(p)),ma(t)&&(p=Vce(t,p,h?()=>{const m=new _u;return n.push(m),m}:Le)),l==null?p.length>0?a=a.concat(p):ma(t)&&function(m){return m.nextSibling==null||m.previousSibling==null?!1:Dc(m.nextSibling)&&Dc(m.previousSibling)}(t)&&(a=a.concat(en())):F(l)&&l.append(...p),a}function Vce(t,e,n){const o=t.style.textAlign,r=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if(Ec(l))o&&!l.getFormat()&&l.setFormat(o),r.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&Ec(e[a+1])){const c=n();c.setFormat(o),c.append(...s),r.push(c),s=[]}}return r}function va(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 zce(t,e=re()){return e==null&&va(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?"":Rce(t,e)}function Uce(t,e=re()){return e==null&&va(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(qce(t,e))}function Bf(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 $f(n,Hce(l.nodes),e)}catch(l){console.error(l)}const r=t.getData("text/html"),s=t.getData("text/plain");if(r&&s!==r)try{const l=new DOMParser().parseFromString(function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:u=>u}).createHTML(c):c}(r),"text/html");return $f(n,Fce(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=re();if(Z(u)){const d=l[c];d===`
|
|
29
|
+
`?o.push(en()):a===" "?o.push(Hr()):o.push(Oe(a))}this.insertNodes(o)}insertText(e){const n=this.anchor,o=this.focus,r=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 w=y.getNode(),k=w.getChildAtIndex(y.offset),b=Oe();if(b.setFormat(C),b.setStyle(v),cs(k))k.splice(0,0,[b]);else{const E=Re(w)?Le().append(b):b;k===null?w.append(E):k.insertBefore(E)}y.is(_)&&_.set(b.__key,0,"text"),y.set(b.__key,0,"text")}(a,l,r,s),l.type==="element"&&Xo(l,Rt(Rn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let p=d[0];X(p)||W(26);const h=p.getTextContent().length,m=p.getParentOrThrow();let g=d[f-1];if(f===1&&l.type==="element"&&(u=h,l.set(a.key,u,"text")),this.isCollapsed()&&c===h&&(Nn(p)||!p.canInsertTextAfter()||!m.canInsertTextAfter()&&p.getNextSibling()===null)){let y=p.getNextSibling();if(X(y)&&y.canInsertTextBefore()&&!Nn(y)||(y=Oe(),y.setFormat(r),y.setStyle(s),m.canInsertTextAfter()?p.insertAfter(y):m.insertAfter(y)),y.select(0,0),p=y,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(Nn(p)||!p.canInsertTextBefore()||!m.canInsertTextBefore()&&p.getPreviousSibling()===null)){let y=p.getPreviousSibling();if(X(y)&&!Nn(y)||(y=Oe(),y.setFormat(r),m.canInsertTextBefore()?p.insertBefore(y):m.insertBefore(y)),y.select(),p=y,e!=="")return void this.insertText(e)}else if(p.isSegmented()&&c!==h){const y=Oe(p.getTextContent());y.setFormat(r),p.replace(y),p=y}else if(!this.isCollapsed()&&e!==""){const y=g.getParent();if(!m.canInsertTextBefore()||!m.canInsertTextAfter()||F(y)&&(!y.canInsertTextBefore()||!y.canInsertTextAfter()))return this.insertText(""),tm(this.anchor,this.focus,null),void this.insertText(e)}if(f===1){if(Fo(p)){const v=Oe(e);return v.select(),void p.replace(v)}const y=p.getFormat(),_=p.getStyle();if(c!==u||y===r&&_===s){if(Za(p)){const v=Oe(e);return v.setFormat(r),v.setStyle(s),v.select(),void p.replace(v)}}else{if(p.getTextContent()!==""){const v=Oe(e);if(v.setFormat(r),v.setStyle(s),v.select(),c===0)p.insertBefore(v,!1);else{const[w]=p.splitText(c);w.insertAfter(v,!1)}return void(v.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}p.setFormat(r),p.setStyle(s)}const C=u-c;p=p.spliceText(c,C,e,!0),p.getTextContent()===""?p.remove():this.anchor.type==="text"&&(p.isComposing()?this.anchor.offset-=e.length:(this.format=y,this.style=_))}else{const y=new Set([...p.getParentKeys(),...g.getParentKeys()]),_=F(p)?p:p.getParentOrThrow();let C=F(g)?g:g.getParentOrThrow(),v=g;if(!_.is(C)&&C.isInline())do v=C,C=C.getParentOrThrow();while(C.isInline());if(l.type==="text"&&(u!==0||g.getTextContent()==="")||l.type==="element"&&g.getIndexWithinParent()<u)if(X(g)&&!Fo(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){const S=Oe(g.getTextContent());g.replace(S),g=S}Re(l.getNode())||l.type!=="text"||(g=g.spliceText(0,u,"")),y.add(g.__key)}else{const S=g.getParentOrThrow();S.canBeEmpty()||S.getChildrenSize()!==1?g.remove():S.remove()}else y.add(g.__key);const w=C.getChildren(),k=new Set(d),b=_.is(C),E=_.isInline()&&p.getNextSibling()===null?_:p;for(let S=w.length-1;S>=0;S--){const T=w[S];if(T.is(p)||F(T)&&T.isParentOf(p))break;T.isAttached()&&(!k.has(T)||T.is(v)?b||E.insertAfter(T,!1):T.remove())}if(!b){let S=C,T=null;for(;S!==null;){const A=S.getChildren(),V=A.length;(V===0||A[V-1].is(T))&&(y.delete(S.__key),T=S),S=S.getParent()}}if(Fo(p))if(c===h)p.select();else{const S=Oe(e);S.select(),p.replace(S)}else p=p.spliceText(c,h-c,e,!0),p.getTextContent()===""?p.remove():p.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let S=1;S<f;S++){const T=d[S],A=T.__key;y.has(A)||T.remove()}}}removeText(){const e=re()===this;Ws(this,bce(Cf(this))),e&&re()!==this&&_t(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void Xe(null);const o=this.getNodes(),r=[];for(const w of o)X(w)&&r.push(w);const s=w=>{o.forEach(k=>{if(F(k)){const b=k.getFormatFlags(e,w);k.setTextFormat(b)}})},a=r.length;if(a===0)return this.toggleFormat(e),Xe(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,h=r[0],m=d.type==="element"?0:d.offset;if(d.type==="text"&&m===h.getTextContentSize()&&(p=1,h=r[1],m=0),h==null)return;const g=h.getFormatFlags(e,n);s(g);const y=a-1;let _=r[y];const C=f.type==="text"?f.offset:_.getTextContentSize();if(h.is(_)){if(m===C)return;if(Nn(h)||m===0&&C===h.getTextContentSize())h.setFormat(g);else{const w=h.splitText(m,C),k=m===0?w[0]:w[1];k.setFormat(g),d.type==="text"&&d.set(k.__key,0,"text"),f.type==="text"&&f.set(k.__key,C-m,"text")}return void(this.format=g)}m===0||Nn(h)||([,h]=h.splitText(m),m=0),h.setFormat(g);const v=_.getFormatFlags(e,g);C>0&&(C===_.getTextContentSize()||Nn(_)||([_]=_.splitText(C)),_.setFormat(v));for(let w=p+1;w<y;w++){const k=r[w],b=k.getFormatFlags(e,v);k.setFormat(b)}d.type==="text"&&d.set(h.__key,m,"text"),f.type==="text"&&f.set(_.__key,C,"text"),this.format=g|v}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const m=re();return Z(m)||W(134),m.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=Ln(n,no),r=e[e.length-1];if(F(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const m=ql(this);o.splice(m,0,e),r.selectEnd()}return}if(!e.some(m=>(F(m)||Ce(m))&&!m.isInline())){F(o)||W(211,n.constructor.name,n.getType());const m=ql(this);return o.splice(m,0,e),void r.selectEnd()}const s=function(m){const g=Le();let y=null;for(let _=0;_<m.length;_++){const C=m[_],v=Po(C);if(v||Ce(C)&&C.isInline()||F(C)&&C.isInline()||X(C)||C.isParentRequired()){if(y===null&&(y=C.createParentElementNode(),g.append(y),v))continue;y!==null&&y.append(C)}else g.append(C),y=null}return g}(e),a=s.getLastDescendant(),l=s.getChildren(),c=!F(o)||!o.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var f;F(f=d)&&no(f)&&!f.isEmpty()&&F(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(F(o)||W(211,n.constructor.name,n.getType()),o.append(...d.getChildren()),d=l[1]),d&&(o===null&&W(212,n.constructor.name,n.getType()),function(m,g){const y=g.getParentOrThrow().getLastChild();let _=g;const C=[g];for(;_!==y;)_.getNextSibling()||W(140),_=_.getNextSibling(),C.push(_);let v=m;for(const w of C)v=v.insertAfter(w)}(o,d));const p=Ln(a,no);c&&F(p)&&(c.canMergeWhenEmpty()||no(u))&&(p.append(...c.getChildren()),c.remove()),F(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const h=F(o)?o.getLastChild():null;Po(h)&&p!==o&&h.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=Le();return Ie().splice(this.anchor.offset,0,[a]),a.select(),a}const e=ql(this),n=Ln(this.anchor.getNode(),no);F(n)||W(213);const o=n.getChildAtIndex(e),r=o?[o,...o.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...r),s.selectStart(),s):null}insertLineBreak(e){const n=en();if(this.insertNodes([n]),e){const o=n.getParentOrThrow(),r=n.getIndexWithinParent();o.select(r,r)}}extract(){const e=[...this.getNodes()],n=e.length;let o=e[0],r=e[n-1];const[s,a]=wc(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),h=d===0?p[0]:p[1];return h?(c.set(h.getKey(),0,"text"),u.set(h.getKey(),h.getTextContentSize(),"text"),[h]):[]}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(r)){const p=r.getTextContent().length;f===0?e.pop():f!==p&&([r]=r.splitText(f),e[e.length-1]=r,u.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,n,o){if(ef(this,e,n,o))return;const r=e==="move",s=$e(),a=tn(qt(s));if(!a)return;const l=s._blockCursorElement,c=s._rootElement,u=this.focus.getNode();if(c===null||l===null||!F(u)||u.isInline()||u.canBeEmpty()||Ac(l,s,c),this.dirty){let d=Ko(s,this.anchor.key),f=Ko(s,this.focus.key);this.anchor.type==="text"&&(d=Ir(d)),this.focus.type==="text"&&(f=Ir(f)),d&&f&&sm(a,d,this.anchor.offset,f,this.focus.offset)}if(function(d,f,p,h){d.modify(f,p,h)}(a,e,n?"backward":"forward",o),a.rangeCount>0){const d=a.getRangeAt(0),f=this.anchor.getNode(),p=Re(f)?f:ice(f);if(this.applyDOMRange(d),this.dirty=!0,!r){const h=this.getNodes(),m=[];let g=!1;for(let y=0;y<h.length;y++){const _=h[y];Tc(_,p)?m.push(_):g=!0}if(g&&m.length>0)if(n){const y=m[0];F(y)?y.selectStart():y.getParentOrThrow().selectStart()}else{const y=m[m.length-1];F(y)?y.selectEnd():y.getParentOrThrow().selectEnd()}a.anchorNode===d.startContainer&&a.anchorOffset===d.startOffset||function(y){const _=y.focus,C=y.anchor,v=C.key,w=C.offset,k=C.type;C.set(_.key,_.offset,_.type,!0),_.set(v,w,k,!0)}(this)}}o==="lineboundary"&&ef(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&F(n)&&e.offset===n.getChildrenSize()||e.type==="text"&&e.offset===n.getTextContentSize())){const r=n.getParent(),s=n.getNextSibling()||(r===null?null:r.getNextSibling());if(F(s)&&s.isShadowRoot())return!0}return!1}deleteCharacter(e){const n=this.isCollapsed();if(this.isCollapsed()){const o=this.anchor;let r=o.getNode();if(this.forwardDeletion(o,r,e))return;const s=Ou(Rn(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(mn(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(F(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=Rt(c);Ws(this,po(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(Fr(c)){if(F(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(Ce(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&F(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=im();u.add(c.origin.getKey()),_t(u)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:u}=l;return Ws(this,po(!c.origin.isEmpty()&&u.isEmpty()?Lu(et(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&&K1(this,o.getNode()))return}else{const l=a.type==="text"?a.getNode():null;if(r=o.type==="text"?o.getNode():null,l!==null&&l.isSegmented()){const c=a.offset,u=l.getTextContentSize();if(l.is(r)||e&&c!==u||!e&&c!==0)return void G1(l,e,c)}else if(r!==null&&r.isSegmented()){const c=o.offset,u=r.getTextContentSize();if(r.is(l)||e&&c!==0||!e&&c!==u)return void G1(r,e,c)}(function(c,u){const d=c.anchor,f=c.focus,p=d.getNode(),h=f.getNode();if(p===h&&d.type==="text"&&f.type==="text"){const m=d.offset,g=f.offset,y=m<g,_=y?m:g,C=y?g:m,v=C-1;_!==v&&function(w){return!(bm(w)||Ule(w))}(p.getTextContent().slice(_,C))&&(u?f.set(f.key,v,f.type):d.set(d.key,v,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()&&Re(o.getParent())&&o.getPreviousSibling()===null&&K1(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 At(t){return t instanceof Ka}function Z1(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function wc(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]:[Z1(n),Z1(o)]}function K1(t,e){for(let n=e;n;n=n.getParent()){if(F(n)){if(n.collapseAtStart(t))return!0;if(Bt(n))break}if(n.getPreviousSibling())break}return!1}const Ule=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function G1(t,e,n){const o=t,r=o.getTextContent().split(/(?=\s)/g),s=r.length;let a=0,l=0;for(let u=0;u<s;u++){const d=u===s-1;if(l=a,a+=r[u].length,e&&a===n||a>n||d){r.splice(u,1),d&&(l=void 0);break}}const c=r.join("").trim();c===""?o.remove():(o.setTextContent(c),o.select(l,l))}function Y1(t,e,n,o){let r,s=e;if(ze(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(r=_r(d),X(r))s=ao(r,a?"next":"previous");else{let p=_r(t);if(p===null)return null;if(F(p)){const h=o.getElementByKey(p.getKey());h===null&&W(214),[p,s]=p.getDOMSlot(h).resolveChildIndex(p,h,t,e),F(p)||W(215),a&&s>=p.getChildrenSize()&&(s=Math.max(0,p.getChildrenSize()-1));let g=p.getChildAtIndex(s);if(F(g)&&function(y,_,C){const v=y.getParent();return C===null||v===null||!v.canBeEmpty()||v!==C.getNode()}(g,0,n)){const y=a?g.getLastDescendant():g.getFirstDescendant();y===null?p=g:(g=y,p=F(g)?g:g.getParentOrThrow()),s=0}X(g)?(r=g,p=null,s=ao(g,a?"next":"previous")):g!==p&&a&&!f&&(F(p)||W(216),s=Math.min(p.getChildrenSize(),s+1))}else{const h=p.getIndexWithinParent();s=e===0&&Ce(p)&&_r(t)===p?h:h+1,p=p.getParentOrThrow()}if(F(p))return _n(p.__key,s,"element")}}else r=_r(t);return X(r)?_n(r.__key,ao(r,s,"clamp"),"text"):null}function J1(t,e,n){const o=t.offset,r=t.getNode();if(o===0){const s=r.getPreviousSibling(),a=r.getParent();if(e){if((n||!e)&&s===null&&F(a)&&a.isInline()){const l=a.getPreviousSibling();X(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else F(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):X(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(o===r.getTextContent().length){const s=r.getNextSibling(),a=r.getParent();if(e&&F(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&F(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();X(l)&&t.set(l.__key,0,"text")}}}function tm(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),r=t.is(e);J1(t,o,r),J1(e,!o,r),r&&e.set(t.key,t.offset,t.type);const s=$e();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 nm(t,e,n,o,r,s){if(t===null||n===null||!us(r,t,n))return null;const a=Y1(t,e,Z(s)?s.anchor:null,r);if(a===null)return null;const l=Y1(n,o,Z(s)?s.focus:null,r);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=_r(t),u=_r(n);if(Ce(c)&&Ce(u))return null}return tm(a,l,s),[a,l]}function Ec(t){return F(t)&&!t.isInline()}function om(t,e,n,o,r,s){const a=yo(),l=new er(_n(t,e,r),_n(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function rm(){const t=_n("root",0,"element"),e=_n("root",0,"element");return new er(t,e,0,"")}function im(){return new Ka(new Set)}function gu(t,e,n,o){const r=n._window;if(r===null)return null;const s=o||r.event,a=s?s.type:void 0,l=a==="selectionchange",c=!ac&&(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)&&!us(n,u,d))return t.clone();const h=nm(u,f,d,p,n,t);if(h===null)return null;const[m,g]=h;return new er(m,g,Z(t)?t.format:0,Z(t)?t.style:"")}function re(){return yo()._selection}function jr(){return $e()._editorState._selection}function da(t,e,n,o=1){const r=t.anchor,s=t.focus,a=r.getNode(),l=s.getNode();if(!e.is(a)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const u=r.offset;if(n<=u&&o>0||n<u&&o<0){const d=Math.max(0,u+o);r.set(c,d,"element"),s.set(c,d,"element"),X1(t)}}else{const u=t.isBackward(),d=u?s:r,f=d.getNode(),p=u?r:s,h=p.getNode();if(e.is(f)){const m=d.offset;(n<=m&&o>0||n<m&&o<0)&&d.set(c,Math.max(0,m+o),"element")}if(e.is(h)){const m=p.offset;(n<=m&&o>0||n<m&&o<0)&&p.set(c,Math.max(0,m+o),"element")}}X1(t)}function X1(t){const e=t.anchor,n=e.offset,o=t.focus,r=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!F(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(F(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(F(a)){const l=a.getChildrenSize(),c=r>=l,u=c?a.getChildAtIndex(l-1):a.getChildAtIndex(r);if(X(u)){let d=0;c&&(d=u.getTextContentSize()),o.set(u.__key,d,"text")}}}function fa(t,e,n,o,r){let s=null,a=0,l=null;o!==null?(s=o.__key,X(o)?(a=o.getTextContentSize(),l="text"):F(o)&&(a=o.getChildrenSize(),l="element")):r!==null&&(s=r.__key,X(r)?l="text":F(r)&&(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 Q1(t,e,n,o,r){t.type==="text"?t.set(n,t.offset+(e?0:r),"text"):t.offset>o.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function sm(t,e,n,o,r){try{t.setBaseAndExtent(e,n,o,r)}catch{}}function qle(t,e,n,o,r,s,a){const l=o.anchorNode,c=o.focusNode,u=o.anchorOffset,d=o.focusOffset,f=document.activeElement;if(r.has(Mle)&&f!==s||f!==null&&ku(f))return;if(!Z(e))return void(t!==null&&us(n,l,c)&&o.removeAllRanges());const p=e.anchor,h=e.focus,m=p.key,g=h.key,y=Ko(n,m),_=Ko(n,g),C=p.offset,v=h.offset,w=e.format,k=e.style,b=e.isCollapsed();let E=y,S=_,T=!1;if(p.type==="text"){E=Ir(y);const H=p.getNode();T=H.getFormat()!==w||H.getStyle()!==k}else Z(t)&&t.anchor.type==="text"&&(T=!0);var A,V,I,U,$;if(h.type==="text"&&(S=Ir(_)),E!==null&&S!==null&&(b&&(t===null||T||Z(t)&&(t.format!==w||t.style!==k))&&(A=w,V=k,I=C,U=m,$=performance.now(),Wh=[A,V,I,U,$]),u!==C||d!==v||l!==E||c!==S||o.type==="Range"&&b||(f!==null&&s.contains(f)||r.has(Ole)||s.focus({preventScroll:!0}),p.type==="element"))){if(sm(o,E,C,S,v),!r.has(Ble)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const H=Z(e)&&e.anchor.type==="element"?E.childNodes[C]||null:o.rangeCount>0?o.getRangeAt(0):null;if(H!==null){let L;if(H instanceof Text){const ee=document.createRange();ee.selectNode(H),L=ee.getBoundingClientRect()}else L=H.getBoundingClientRect();(function(ee,O,D){const K=xm(D),P=Au(K);if(K===null||P===null)return;let{top:q,bottom:ce}=O,Q=0,ie=0,R=D;for(;R!==null;){const te=R===K.body;if(te)Q=0,ie=qt(ee).innerHeight;else{const G=R.getBoundingClientRect();Q=G.top,ie=G.bottom}let B=0;if(q<Q?B=-(Q-q):ce>ie&&(B=ce-ie),B!==0)if(te)P.scrollBy(0,B);else{const G=R.scrollTop;R.scrollTop+=B;const ge=R.scrollTop-G;q-=ge,ce-=ge}if(te)break;R=ds(R)}})(n,L,s)}}_c=!0}}function Hle(t){let e=re()||jr();e===null&&(e=Ie().selectEnd()),e.insertNodes(t)}function ql(t){let e=t;t.isCollapsed()||e.removeText();const n=re();Z(n)&&(e=n),Z(e)||W(161);const o=e.anchor;let r=o.getNode(),s=o.offset;for(;!no(r);){const a=r;if([r,s]=jle(r,s),a.is(r))break}return s}function jle(t,e){const n=t.getParent();if(!n){const r=Le();return Ie().append(r),r.select(),[Ie(),0]}if(X(t)){const r=t.splitText(e);if(r.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,r[0].getIndexWithinParent()+s]}if(!F(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const r=new er(_n(t.__key,e,"element"),_n(t.__key,e,"element"),0,""),s=t.insertNewAfter(r);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function ef(t,e,n,o,r="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=Rn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=r==="decorators-and-blocks";if(!Mm(c)){for(const d of c){u=!1;const{origin:f}=d;if(!Ce(f)||f.isIsolated()||(c=d,!a||!f.isInline()))break}if(u)for(const d of Ou(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(mn(d))d.origin.isInline()||(c=d);else{if(F(d.origin))continue;Ce(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&Ce(c.origin)&&c.origin.isKeyboardSelectable()){const d=im();return d.add(c.origin.getKey()),_t(d),!0}return c=Rt(c),l&&Xo(t.anchor,c),Xo(t.focus,c),u||!a}let Ye=null,Je=null,vt=!1,Hl=!1,Hs=0;const tf={characterData:!0,childList:!0,subtree:!0};function ss(){return vt||Ye!==null&&Ye._readOnly}function Ge(){vt&&W(13)}function am(){Hs>99&&W(14)}function yo(){return Ye===null&&W(195,lm()),Ye}function $e(){return Je===null&&W(196,lm()),Je}function lm(){let t=0;const e=new Set,n=Zo.version;if(typeof window<"u")for(const r of document.querySelectorAll("[contenteditable]")){const s=Ja(r);if(wu(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 Wle(){return Je}function nf(t,e,n){const o=e.__type,r=hm(t,o);let s=n.get(o);s===void 0&&(s=Array.from(r.transforms),n.set(o,s));const a=s.length;for(let l=0;l<a&&(s[l](e),e.isAttached());l++);}function of(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function cm(t,e){if(!e)return;const n=t._updateTags;let o=e;Array.isArray(e)||(o=[e]);for(const r of o)n.add(r)}function Zle(t){return vu(t,$e()._nodes)}function vu(t,e){const n=t.type,o=e.get(n);o===void 0&&W(17,n);const r=o.klass;t.type!==r.getType()&&W(18,r.name);const s=r.importJSON(t),a=t.children;if(F(s)&&Array.isArray(a))for(let l=0;l<a.length;l++){const c=vu(a[l],e);s.append(c)}return s}function rf(t,e,n){const o=Ye,r=vt,s=Je;Ye=e,vt=!0,Je=t;try{return n()}finally{Ye=o,vt=r,Je=s}}function Mn(t,e){const n=t._pendingEditorState,o=t._rootElement,r=t._headless||o===null;if(n===null)return;const s=t._editorState,a=s._selection,l=n._selection,c=t._dirtyType!==0,u=Ye,d=vt,f=Je,p=t._updating,h=t._observer;let m=null;if(t._pendingEditorState=null,t._editorState=n,!r&&c&&h!==null){Je=t,Ye=n,vt=!1,t._updating=!0;try{const b=t._dirtyType,E=t._dirtyElements,S=t._dirtyLeaves;h.disconnect(),m=hle(s,n,t,b,E,S)}catch(b){if(b instanceof Error&&t._onError(b),Hl)throw b;return pm(t,null,o,n),bh(t),t._dirtyType=2,Hl=!0,Mn(t,s),void(Hl=!1)}finally{h.observe(o,tf),t._updating=p,Ye=u,vt=d,Je=f}}n._readOnly||(n._readOnly=!0);const g=t._dirtyLeaves,y=t._dirtyElements,_=t._normalizedNodes,C=t._updateTags,v=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(b,E){const S=b._decorators;let T=b._pendingDecorators||S;const A=E._nodeMap;let V;for(V in T)A.has(V)||(T===S&&(T=_m(b)),delete T[V])}(t,n);const w=r?null:tn(qt(t));if(t._editable&&w!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!C.has($le)){Je=t,Ye=n;try{if(h!==null&&h.disconnect(),c||l===null||l.dirty){const b=t._blockCursorElement;b!==null&&Ac(b,t,o),qle(a,l,t,w,C,o)}(function(b,E,S){let T=b._blockCursorElement;if(Z(S)&&S.isCollapsed()&&S.anchor.type==="element"&&E.contains(document.activeElement)){const A=S.anchor,V=A.getNode(),I=A.offset;let U=!1,$=null;if(I===V.getChildrenSize())Wl(V.getChildAtIndex(I-1))&&(U=!0);else{const H=V.getChildAtIndex(I);if(H!==null&&Wl(H)){const L=H.getPreviousSibling();(L===null||Wl(L))&&(U=!0,$=b.getElementByKey(H.__key))}}if(U){const H=b.getElementByKey(V.__key);return T===null&&(b._blockCursorElement=T=function(L){const ee=L.theme,O=document.createElement("div");O.contentEditable="false",O.setAttribute("data-lexical-cursor","true");let D=ee.blockCursor;if(D!==void 0){if(typeof D=="string"){const K=gh(D);D=ee.blockCursor=K}D!==void 0&&O.classList.add(...D)}return O}(b._config)),E.style.caretColor="transparent",void($===null?H.appendChild(T):H.insertBefore(T,$))}}T!==null&&Ac(T,b,E)})(t,o,l)}finally{h!==null&&h.observe(o,tf),Je=f,Ye=u}}m!==null&&function(b,E,S,T,A){const V=Array.from(b._listeners.mutation),I=V.length;for(let U=0;U<I;U++){const[$,H]=V[U];for(const L of H){const ee=E.get(L);ee!==void 0&&$(ee,{dirtyLeaves:T,prevEditorState:A,updateTags:S})}}}(t,m,C,g,s),Z(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Dh,void 0);const k=t._pendingDecorators;k!==null&&(t._decorators=k,t._pendingDecorators=null,Ni("decorator",t,!0,k)),function(b,E,S){const T=uf(E),A=uf(S);T!==A&&Ni("textcontent",b,!0,A)}(t,e||s,n),Ni("update",t,!0,{dirtyElements:y,dirtyLeaves:g,editorState:n,mutatedNodes:m,normalizedNodes:_,prevEditorState:e||s,tags:C}),function(b,E){if(b._deferred=[],E.length!==0){const S=b._updating;b._updating=!0;try{for(let T=0;T<E.length;T++)E[T]()}finally{b._updating=S}}}(t,v),function(b){const E=b._updates;if(E.length!==0){const S=E.shift();if(S){const[T,A]=S;Ga(b,T,A)}}}(t)}function Ni(t,e,n,...o){const r=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=r}}function sf(t,e){const n=t._updates;let o=e||!1;for(;n.length!==0;){const r=n.shift();if(r){const[s,a]=r,l=t._pendingEditorState;let c;a!==void 0&&(c=a.onUpdate,a.skipTransforms&&(o=!0),a.discrete&&(l===null&&W(191),l._flushSync=!0),c&&t._deferred.push(c),cm(t,a.tag)),l==null?Ga(t,s,a):s()}}return o}function Ga(t,e,n){const o=t._updateTags;let r,s=!1,a=!1;n!==void 0&&(r=n.onUpdate,cm(t,n.tag),s=n.skipTransforms||!1,a=n.discrete||!1),r&&t._deferred.push(r);const l=t._editorState;let c=t._pendingEditorState,u=!1;(c===null||c._readOnly)&&(c=t._pendingEditorState=dm(c||l),u=!0),c._flushSync=a;const d=Ye,f=vt,p=Je,h=t._updating;Ye=c,vt=!1,t._updating=!0,Je=t;const m=t._headless||t.getRootElement()===null;Cu(null);try{u&&(m?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(C,v){const w=C.getEditorState()._selection,k=tn(qt(C));return Z(w)||w==null?gu(w,k,C,v):w.clone()}(t,n&&n.event||null));const y=t._compositionKey;e(),s=sf(t,s),function(C,v){const w=v.getEditorState()._selection,k=C._selection;if(Z(k)){const b=k.anchor,E=k.focus;let S;if(b.type==="text"&&(S=b.getNode(),S.selectionTransform(w,k)),E.type==="text"){const T=E.getNode();S!==T&&T.selectionTransform(w,k)}}}(c,t),t._dirtyType!==0&&(s?function(C,v){const w=v._dirtyLeaves,k=C._nodeMap;for(const b of w){const E=k.get(b);X(E)&&E.isAttached()&&E.isSimpleText()&&!E.isUnmergeable()&&O1(E)}}(c,t):function(C,v){const w=v._dirtyLeaves,k=v._dirtyElements,b=C._nodeMap,E=oo(),S=new Map;let T=w,A=T.size,V=k,I=V.size;for(;A>0||I>0;){if(A>0){v._dirtyLeaves=new Set;for(const U of T){const $=b.get(U);X($)&&$.isAttached()&&$.isSimpleText()&&!$.isUnmergeable()&&O1($),$!==void 0&&of($,E)&&nf(v,$,S),w.add(U)}if(T=v._dirtyLeaves,A=T.size,A>0){Hs++;continue}}v._dirtyLeaves=new Set,v._dirtyElements=new Map,V.delete("root")&&V.set("root",!0);for(const U of V){const $=U[0],H=U[1];if(k.set($,H),!H)continue;const L=b.get($);L!==void 0&&of(L,E)&&nf(v,L,S)}T=v._dirtyLeaves,A=T.size,V=v._dirtyElements,I=V.size,Hs++}v._dirtyLeaves=w,v._dirtyElements=k}(c,t),sf(t),function(C,v,w,k){const b=C._nodeMap,E=v._nodeMap,S=[];for(const[T]of k){const A=E.get(T);A!==void 0&&(A.isAttached()||(F(A)&&yh(A,T,b,E,S,k),b.has(T)||k.delete(T),S.push(T)))}for(const T of S)E.delete(T);for(const T of w){const A=E.get(T);A===void 0||A.isAttached()||(b.has(T)||w.delete(T),E.delete(T))}}(l,c,t._dirtyLeaves,t._dirtyElements)),y!==t._compositionKey&&(c._flushSync=!0);const _=c._selection;if(Z(_)){const C=c._nodeMap,v=_.anchor.key,w=_.focus.key;C.get(v)!==void 0&&C.get(w)!==void 0||W(19)}else At(_)&&_._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 Mn(t)}finally{Ye=d,vt=f,Je=p,t._updating=h,Hs=0}t._dirtyType!==0||t._deferred.length>0||function(y,_){const C=_.getEditorState()._selection,v=y._selection;if(v!==null){if(v.dirty||!v.is(C))return!0}else if(C!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,Mn(t)):u&&Qle(()=>{Mn(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function Dt(t,e,n){Je===t&&n===void 0?e():Ga(t,e,n)}class Di{constructor(e,n,o){z(this,"element");z(this,"before");z(this,"after");this.element=e,this.before=n||null,this.after=o||null}withBefore(e){return new Di(this.element,e,this.after)}withAfter(e){return new Di(this.element,this.before,e)}withElement(e){return this.element===e?this:new Di(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&W(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&W(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&W(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"&&(zi||Lr||Vi);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,r=this.before,s=document.createElement("br");if(o.insertBefore(s,r),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,r){if(o===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,r))]}const s=af(n,o);s.push(r);const a=af(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 af(t,e){const n=[];let o=e;for(;o!==t&&o!==null;o=o.parentNode){let r=0;for(let s=o.previousSibling;s!==null;s=s.previousSibling)r++;n.push(r)}return o!==t&&W(225),n.reverse()}class Lt extends Qt{constructor(n){super(n);z(this,"__first");z(this,"__last");z(this,"__size");z(this,"__format");z(this,"__style");z(this,"__indent");z(this,"__dir");z(this,"__textFormat");z(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=$e()._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),F(o)){const r=o.getAllTextNodes();n.push(...r)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;F(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;F(n);){const o=n.getLastChild();if(o===null)break;n=o}return n}getDescendantByIndex(n){const o=this.getChildren(),r=o.length;if(n>=r){const a=o[r-1];return F(a)&&a.getLastDescendant()||a||null}const s=o[n];return F(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:We(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&W(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:We(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&W(96,this.__key),n}getChildAtIndex(n){const o=this.getChildrenSize();let r,s;if(n<o/2){for(r=this.getFirstChild(),s=0;r!==null&&s<=n;){if(s===n)return r;r=r.getNextSibling(),s++}return null}for(r=this.getLastChild(),s=o-1;r!==null&&s>=n;){if(s===n)return r;r=r.getPreviousSibling(),s--}return null}getTextContent(){let n="";const o=this.getChildren(),r=o.length;for(let s=0;s<r;s++){const a=o[s];n+=a.getTextContent(),F(a)&&s!==r-1&&!a.isInline()&&(n+=fo)}return n}getTextContentSize(){let n=0;const o=this.getChildren(),r=o.length;for(let s=0;s<r;s++){const a=o[s];n+=a.getTextContentSize(),F(a)&&s!==r-1&&!a.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const o=S1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=lt[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return pa(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){Ge();const r=re();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(X(u)||F(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)||F(u))return u.select()}}s===void 0&&(s=l),a===void 0&&(a=l);const c=this.__key;return Z(r)?(r.anchor.set(c,s,"element"),r.focus.set(c,a,"element"),r.dirty=!0,r):om(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!==""?S1[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,r){ua(this)&&W(324,this.__key,this.__type);const s=this.getChildrenSize(),a=this.getWritable();n+o<=s||W(226,String(n),String(o),String(s));const l=a.__key,c=[],u=[],d=this.getChildAtIndex(n+o);let f=null,p=s-o+r.length;if(n!==0)if(n===s)f=this.getLastChild();else{const m=this.getChildAtIndex(n);m!==null&&(f=m.getPreviousSibling())}if(o>0){let m=f===null?this.getFirstChild():f.getNextSibling();for(let g=0;g<o;g++){m===null&&W(100);const y=m.getNextSibling(),_=m.__key;Ro(m.getWritable()),u.push(_),m=y}}let h=f;for(const m of r){h!==null&&m.is(h)&&(f=h=h.getPreviousSibling());const g=m.getWritable();g.__parent===l&&p--,Ro(g);const y=m.__key;if(h===null)a.__first=y,g.__prev=null;else{const _=h.getWritable();_.__next=y,g.__prev=_.__key}m.__key===l&&W(76),g.__parent=l,c.push(y),h=m}if(n+o===s)h!==null&&(h.getWritable().__next=null,a.__last=h.__key);else if(d!==null){const m=d.getWritable();if(h!==null){const g=h.getWritable();m.__prev=h.__key,g.__next=d.__key}else m.__prev=null}if(a.__size=p,u.length){const m=re();if(Z(m)){const g=new Set(u),y=new Set(c),{anchor:_,focus:C}=m;lf(_,g,y)&&fa(_,_.getNode(),this,f,d),lf(C,g,y)&&fa(C,C.getNode(),this,f,d),p!==0||this.canBeEmpty()||Bt(this)||this.remove()}}return a}getDOMSlot(n){return new Di(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(ze(o)){const r=this.getIndent();r>0&&(o.style.paddingInlineStart=40*r+"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(),r=this.getTextStyle();return o!==0&&(n.textFormat=o),r!==""&&(n.textStyle=r),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,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,o){const r=this.getDOMSlot(n);let s=r.getFirstChild();for(let a=this.getFirstChild();a;a=a.getNextSibling()){const l=o.getElementByKey(a.getKey());l!==null&&(s==null?(r.insertChild(l),s=l):s!==l&&r.replaceChild(l,s),s=s.nextSibling)}}}function F(t){return t instanceof Lt}function lf(t,e,n){let o=t.getNode();for(;o;){const r=o.__key;if(e.has(r)&&!n.has(r))return!0;o=o.getParent()}return!1}class um extends Qt{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ce(t){return t instanceof um}class as extends Lt{constructor(){super("root");z(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new as}getTopLevelElementOrThrow(){W(51)}getTextContent(){const n=this.__cachedText;return!ss()&&$e()._dirtyType!==0||n===null?super.getTextContent():n}remove(){W(52)}replace(n){W(53)}insertBefore(n){W(54)}insertAfter(n){W(55)}updateDOM(n,o){return!1}splice(n,o,r){for(const s of r)F(s)||Ce(s)||W(282);return super.splice(n,o,r)}static importJSON(n){return Ie().updateFromJSON(n)}collapseAtStart(){return!0}}function Re(t){return t instanceof as}function dm(t){return new Ya(new Map(t._nodeMap))}function yu(){return new Ya(new Map([["root",new as]]))}function fm(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&W(130,n.name),F(t)){const o=e.children;Array.isArray(o)||W(59,n.name);const r=t.getChildren();for(let s=0;s<r.length;s++){const a=fm(r[s]);o.push(a)}}return e}class Ya{constructor(e,n){z(this,"_nodeMap");z(this,"_selection");z(this,"_flushSync");z(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 rf(n&&n.editor||null,this,e)}clone(e){const n=new Ya(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return rf(null,this,()=>({root:fm(Ie())}))}}class _u extends Lt{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class ls extends Lt{static getType(){return"paragraph"}static clone(e){return new ls(e.__key)}createDOM(e){const n=document.createElement("p"),o=Sr(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:Kle,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(ze(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return Le().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=Le();o.setTextFormat(e.format),o.setTextStyle(e.style);const r=this.getDirection();return o.setDirection(r),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 Kle(t){const e=Le();return t.style&&(e.setFormat(t.style.textAlign),Nu(t,e)),{node:e}}function Le(){return sn(new ls)}function cs(t){return t instanceof ls}const ye=0,gi=1,Gle=4;function pm(t,e,n,o){const r=t._keyToDOMMap;r.clear(),t._editorState=yu(),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="",r.set("root",n))}function Yle(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:r}=tl(o),s=o.transform;if(!n.has(s)){n.add(s);const a=o.transform();a&&e.add(a)}if(r){const a=r.$transform;a&&e.add(a),o=r.extends}else{const a=Object.getPrototypeOf(o);o=a.prototype instanceof Qt&&a!==Qt?a:void 0}}return e}function Jle(t){const e=t||{},n=Wle(),o=e.theme||{},r=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=yu(),l=e.namespace||(r!==null?r._config.namespace:km()),c=e.editorState,u=[as,vo,rs,is,ls,_u,...e.nodes||[]],{onError:d,html:f}=e,p=e.editable===void 0||e.editable;let h;if(t===void 0&&n!==null)h=n._nodes;else{h=new Map;for(let g=0;g<u.length;g++){let y=u[g],_=null,C=null;if(typeof y!="function"){const k=y;y=k.replace,_=k.with,C=k.withKlass||null}tl(y);const v=y.getType(),w=Yle(y);h.set(v,{exportDOM:f&&f.export?f.export.get(y):void 0,klass:y,replace:_,replaceWithKlass:C,sharedNodeState:cle(u[g]),transforms:w})}}const m=new Zo(a,r,h,{disableEvents:s,namespace:l,theme:o},d||console.error,function(g,y){const _=new Map,C=new Set,v=w=>{Object.keys(w).forEach(k=>{let b=_.get(k);b===void 0&&(b=[],_.set(k,b)),b.push(w[k])})};return g.forEach(w=>{const k=w.klass.importDOM;if(k==null||C.has(k))return;C.add(k);const b=k.call(w.klass);b!==null&&v(b)}),y&&v(y),_}(h,f?f.import:void 0),p,t);return c!==void 0&&(m._pendingEditorState=c,m._dirtyType=2),m}class Zo{constructor(e,n,o,r,s,a,l,c){z(this,"_headless");z(this,"_parentEditor");z(this,"_rootElement");z(this,"_editorState");z(this,"_pendingEditorState");z(this,"_compositionKey");z(this,"_deferred");z(this,"_keyToDOMMap");z(this,"_updates");z(this,"_updating");z(this,"_listeners");z(this,"_commands");z(this,"_nodes");z(this,"_decorators");z(this,"_pendingDecorators");z(this,"_config");z(this,"_dirtyType");z(this,"_cloneNotNeeded");z(this,"_dirtyLeaves");z(this,"_dirtyElements");z(this,"_normalizedNodes");z(this,"_updateTags");z(this,"_observer");z(this,"_key");z(this,"_onError");z(this,"_htmlConversions");z(this,"_window");z(this,"_editable");z(this,"_blockCursorElement");z(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=r,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=km(),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&&W(35);const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=r.get(e);s===void 0&&W(36,String(e));const a=s[o];return a.add(n),()=>{a.delete(n),s.every(l=>l.size===0)&&r.delete(e)}}registerMutationListener(e,n,o){const r=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(r);const l=o&&o.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(n,r),()=>{a.delete(r),a.size===0&&s.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&W(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,r=vf(o).get(n.getType());if(!r)return;const s=new Map;for(const a of r.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),r=[o],s=o.replaceWithKlass;if(s!=null){const a=this.registerNodeTransformToKlass(s,n);r.push(a)}return function(a,l){const c=vf(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=We(f);p&&p.markDirty()}},a._pendingEditorState===null?{tag:Ai}:void 0)}(this,r.map(a=>a.klass.getType())),()=>{r.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=Sr(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,pm(this,n,e,r),n!==null&&(this._config.disableEvents||Ale(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Au(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,bh(this),this._updateTags.add(Ai),Mn(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;yc.set(l,u);const d=ca.get(u)??0;d<1&&u.addEventListener("selectionchange",Jh),ca.set(u,d+1),l.__lexicalEditor=c;const f=Yh(l);for(let p=0;p<vc.length;p++){const[h,m]=vc[p],g=typeof m=="function"?y=>{z1(y)||(V1(y),(c.isEditable()||h==="click")&&m(y,c))}:y=>{if(z1(y))return;V1(y);const _=c.isEditable();switch(h){case"cut":return _&&oe(c,hu,y);case"copy":return oe(c,Wa,y);case"paste":return _&&oe(c,du,y);case"dragstart":return _&&oe(c,Uh,y);case"dragover":return _&&oe(c,qh,y);case"dragend":return _&&oe(c,kle,y);case"focus":return _&&oe(c,xle,y);case"blur":return _&&oe(c,Sle,y);case"drop":return _&&oe(c,zh,y)}};l.addEventListener(h,g),f.push(()=>{l.removeEventListener(h,g)})}}(e,this),o!=null&&e.classList.add(...o)}else this._window=null,this._updateTags.add(Ai),Mn(this);Ni("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&W(38);let o=e;o._readOnly&&(o=dm(e),o._selection=e._selection?e._selection.clone():null),Ch(this);const r=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;r===null||r.isEmpty()||(a!=null&&s.add(a),Mn(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||Mn(this)}parseEditorState(e,n){return function(o,r,s){const a=yu(),l=Ye,c=vt,u=Je,d=r._dirtyElements,f=r._dirtyLeaves,p=r._cloneNotNeeded,h=r._dirtyType;r._dirtyElements=new Map,r._dirtyLeaves=new Set,r._cloneNotNeeded=new Set,r._dirtyType=0,Ye=a,vt=!1,Je=r,Cu(null);try{const m=r._nodes;vu(o.root,m),s&&s(),a._readOnly=!0}catch(m){m instanceof Error&&r._onError(m)}finally{r._dirtyElements=d,r._dirtyLeaves=f,r._cloneNotNeeded=p,r._dirtyType=h,Ye=l,vt=c,Je=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return Mn(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,r,s){o._updating?o._updates.push([r,s]):Ga(o,r,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),Dt(this,()=>{const r=re(),s=Ie();r!==null?r.dirty||_t(r.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),oce("focus"),rce(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=tn(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ni("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}z(Zo,"version");Zo.version="0.38.1+prod.esm";let xc=null;function Cu(t){xc=t}let Xle=1;function hm(t,e){const n=bu(t,e);return n===void 0&&W(30,e),n}function bu(t,e){return t._nodes.get(e)}const Qle=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function cf(t){return Ce(Pr(t))}function ku(t){const e=document.activeElement;if(!ze(e))return!1;const n=e.nodeName;return Ce(Pr(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&Ja(e)==null)}function us(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!ku(e)&&mm(e)===t}catch{return!1}}function wu(t){return t instanceof Zo}function mm(t){let e=t;for(;e!=null;){const n=Ja(e);if(wu(n))return n;e=ds(e)}return null}function Ja(t){return t?t.__lexicalEditor:null}function Fo(t){return Za(t)||t.isToken()}function Nn(t){return Fo(t)||t.isSegmented()}function Hn(t){return Wr(t)&&t.nodeType===3}function gm(t){return Wr(t)&&t.nodeType===9}function Ir(t){let e=t;for(;e!=null;){if(Hn(e))return e;e=e.firstChild}return null}function pa(t,e,n){const o=lt[e];if(n!==null&&(t&o)===(n&o))return t;let r=t^o;return e==="subscript"?r&=~lt.superscript:e==="superscript"?r&=~lt.subscript:e==="lowercase"?(r&=~lt.uppercase,r&=~lt.capitalize):e==="uppercase"?(r&=~lt.lowercase,r&=~lt.capitalize):e==="capitalize"&&(r&=~lt.lowercase,r&=~lt.uppercase),r}function vm(t){return X(t)||Po(t)||Ce(t)}function ece(t,e){const n=function(){const a=xc;return xc=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);Ge(),am();const o=$e(),r=yo(),s=""+Xle++;r._nodeMap.set(s,t),F(t)?o._dirtyElements.set(s,!0):o._dirtyLeaves.add(s),o._cloneNotNeeded.add(s),o._dirtyType=1,t.__key=s}function Ro(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),o=e.getWritable(),r=t.getPreviousSibling(),s=t.getNextSibling(),a=s!==null?s.__key:null,l=r!==null?r.__key:null,c=r!==null?r.getWritable():null,u=s!==null?s.getWritable():null;r===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 ha(t){am(),ua(t)&&W(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=yo(),r=$e(),s=o._nodeMap,a=r._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;r._dirtyType=1,F(t)?a.set(l,!0):r._dirtyLeaves.add(l)}function Xe(t){Ge();const e=$e(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=We(n);o!==null&&o.getWritable()}if(t!==null){const o=We(t);o!==null&&o.getWritable()}}}function oo(){return ss()?null:$e()._compositionKey}function We(t,e){const n=(e||yo())._nodeMap.get(t);return n===void 0?null:n}function ym(t,e){const n=Xa(t,$e());return n!==void 0?We(n,e):null}function Xa(t,e){return t[`__lexicalKey_${e._key}`]}function Pr(t,e){let n=t;for(;n!=null;){const o=ym(n,e);if(o!==null)return o;n=ds(n)}return null}function _m(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function uf(t){return t.read(()=>Ie().getTextContent())}function Ie(){return Cm(yo())}function Cm(t){return t._nodeMap.get("root")}function _t(t){Ge();const e=yo();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function _r(t){const e=$e(),n=function(o,r){let s=o;for(;s!=null;){const a=Xa(s,r);if(a!==void 0)return a;s=ds(s)}return null}(t,e);return n===null?t===e.getRootElement()?We("root"):null:We(n)}function bm(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Eu(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function km(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function wm(t){return Hn(t)?t.nodeValue:null}function xu(t,e,n){const o=tn(qt(e));if(o===null)return;const r=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(r!==null){let l=wm(r);const c=Pr(r);if(l!==null&&X(c)){if(l===Ha&&n){const u=n.length;l=n,s=u,a=u}l!==null&&Su(c,l,s,a,t)}}}function Su(t,e,n,o,r){let s=t;if(s.isAttached()&&(r||!s.isDirty())){const a=s.isComposing();let l=e;(a||r)&&e[e.length-1]===Ha&&(l=e.slice(0,-1));const c=s.getTextContent();if(r||l!==c){if(l===""){if(Xe(null),Vi||Lr||zi)s.remove();else{const g=$e();setTimeout(()=>{g.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=jr(),f=s.getTextContentSize(),p=oo(),h=s.getKey();if(s.isToken()||p!==null&&h===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 m=re();if(!Z(m)||n===null||o===null)return void df(s,l,m);if(m.setTextNodeRange(s,n,s,o),s.isSegmented()){const g=Oe(s.getTextContent());s.replace(g),s=g}df(s,l,m)}}}function df(t,e,n){if(t.setTextContent(e),Z(n)){const o=t.getKey();for(const r of["anchor","focus"]){const s=n[r];s.type==="text"&&s.key===o&&(s.offset=ao(t,s.offset,"clamp"))}}}function Is(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function tce(t,e){return Is(t,e,"altKey")&&Is(t,e,"ctrlKey")&&Is(t,e,"shiftKey")&&Is(t,e,"metaKey")}function Ee(t,e,n){return tce(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const An={ctrlKey:!Gt,metaKey:Gt},ff={altKey:Gt,ctrlKey:!Gt};function pf(t){return t.key==="Backspace"}function hf(t){return Ee(t,"a",An)}function nce(t){const e=Ie();if(Z(t)){const n=t.anchor,o=t.focus,r=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(r.getKey(),0,"element"),o.set(r.getKey(),r.getChildrenSize(),"element"),oa(t),t}{const n=e.select(0,e.getChildrenSize());return _t(oa(n)),n}}function Sr(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,o=n[e];if(o!==void 0)return o;const r=t[e];if(typeof r=="string"){const s=gh(r);return n[e]=s,s}return r}function Tu(t,e,n,o,r){if(n.size===0)return;const s=o.__type,a=o.__key,l=e.get(s);l===void 0&&W(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"&&r==="created";(d===void 0||f)&&u.set(a,f?"updated":r)}function mf(t,e,n){const o=t.getParent();let r=n,s=t;return o!==null&&(e&&n===0?(r=s.getIndexWithinParent(),s=o):e||n!==s.getChildrenSize()||(r=s.getIndexWithinParent()+1,s=o)),s.getChildAtIndex(e?r-1:r)}function Sc(t,e){const n=t.offset;if(t.type==="element")return mf(t.getNode(),e,n);{const o=t.getNode();if(e&&n===0||!e&&n===o.getTextContentSize()){const r=e?o.getPreviousSibling():o.getNextSibling();return r===null?mf(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):r}}return null}function Em(t){const e=qt(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function oe(t,e,n){return function(o,r,s){const a=Eu(o);for(let l=4;l>=0;l--)for(let c=0;c<a.length;c++){const u=a[c],d=u._commands.get(r);if(d!==void 0){const f=d[l];if(f!==void 0){const p=Array.from(f),h=p.length;let m=!1;if(Dt(u,()=>{for(let g=0;g<h;g++)if(p[g](s,o))return void(m=!0)}),m)return m}}}return!1}(t,e,n)}function Qa(t){return!Re(t)&&!t.isLastChild()&&!t.isInline()}function Ko(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&W(75,e),n}function ds(t){const e=t.assignedSlot||t.parentElement;return Nc(e)?e.host:e}function xm(t){return gm(t)?t:ze(t)?t.ownerDocument:null}function oce(t){Ge(),$e()._updateTags.add(t)}function rce(t){Ge(),$e()._deferred.push(t)}function Tc(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Au(t){const e=xm(t);return e?e.defaultView:null}function qt(t){const e=t._window;return e===null&&W(78),e}function ice(t){let e=t.getParentOrThrow();for(;e!==null;){if(Bt(e))return e;e=e.getParentOrThrow()}return e}function Bt(t){return Re(t)||F(t)&&t.isShadowRoot()}function sn(t){const e=$e(),n=t.getType(),o=bu(e,n);o===void 0&&W(200,t.constructor.name,n);const{replace:r,replaceWithKlass:s}=o;if(r!==null){const a=r(t),l=a.constructor;return s!==null?a instanceof s||W(201,s.name,s.getType(),l.name,l.getType(),t.constructor.name,n):a instanceof t.constructor&&l!==t.constructor||W(202,l.name,l.getType(),t.constructor.name,n),a.__key===t.__key&&W(203,t.constructor.name,n,l.name,l.getType()),a}return t}function jl(t,e){!Re(t.getParent())||F(e)||Ce(e)||W(99)}function sce(t){const e=We(t);return e===null&&W(63,t),e}function Wl(t){return(Ce(t)||F(t)&&!t.canBeEmpty())&&!t.isInline()}function Ac(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function tn(t){return rn?(t||window).getSelection():null}function ace(t){const e=Au(t);return e?e.getSelection():null}function Sm(t){return ze(t)&&t.tagName==="A"}function ze(t){return Wr(t)&&t.nodeType===1}function Wr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Nc(t){return Wr(t)&&t.nodeType===11}function Dc(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 ma(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 no(t){if(Ce(t)&&!t.isInline())return!0;if(!F(t)||Bt(t))return!1;const e=t.getFirstChild(),n=e===null||Po(e)||X(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function el(){return $e()}const gf=new WeakMap,lce=new Map;function vf(t){if(!t._readOnly&&t.isEmpty())return lce;t._readOnly||W(192);let e=gf.get(t);return e||(e=function(n){const o=new Map;for(const[r,s]of n._nodeMap){const a=s.__type;let l=o.get(a);l||(l=new Map,o.set(a,l)),l.set(r,s)}return o}(t),gf.set(t,e)),e}function Tm(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function cce(t){return(e=Tm(t))[Xh]=!0,e;var e}function Nu(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function uce(t){return t.__lexicalUnmanaged===!0}function vi(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==Qt[e]}function tl(t){const e=T1 in t.prototype?t.prototype[T1]():void 0,n=function(a){if(!(a===Qt||a.prototype instanceof Qt)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{Zo.version&&(c=JSON.parse(Zo.version))}catch{}W(290,a.name,l,c)}return a===um||a===Lt||a===Qt}(t),o=!n&&vi(t,"getType")?t.getType():void 0;let r,s=o;if(e)if(o)r=e[o];else for(const[a,l]of Object.entries(e))s=a,r=l;if(!n&&s&&(vi(t,"getType")||(t.getType=()=>s),vi(t,"clone")||(t.clone=a=>(Cu(a),new t)),vi(t,"importJSON")||(t.importJSON=r&&r.$importJSON||(a=>new t().updateFromJSON(a))),!vi(t,"importDOM")&&r)){const{importDOM:a}=r;a&&(t.importDOM=()=>a)}return{ownNodeConfig:r,ownNodeType:s}}function dce(t){const e=el();return Ge(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const Ln=(t,e)=>{let n=t;for(;n!=null&&!Re(n);){if(e(n))return n;n=n.getParent()}return null},fce={next:"previous",previous:"next"};class Du{constructor(e){z(this,"origin");this.origin=e}[Symbol.iterator](){return Am({hasNext:Fr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return et(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return et(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 r=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 r){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&&W(263,Array.from(l).join(" "))}else s.insert(c);s=et(c,this.direction)}for(const c of l.values())c.remove();return this}}class Zi extends Du{constructor(){super(...arguments);z(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:nn(n,this.direction)}getParentCaret(n="root"){return et(Mu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Zr(this.direction);return et(this.getNodeAtCaret(),n)||nn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Zi&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const pce={root:Re,shadowRoot:Bt};function Zr(t){return fce[t]}function Mu(t,e="root"){return pce[e](t)?null:t}class Go extends Du{constructor(){super(...arguments);z(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:et(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return F(this.origin)?nn(this.origin,this.direction):null}getParentCaret(n="root"){return et(Mu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Zr(this.direction);return et(this.getNodeAtCaret(),n)||nn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof Go&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof Go||n instanceof Yo)&&this.direction===n.direction&&this.origin.is(n.origin)}}class Yo extends Du{constructor(n,o){super(n);z(this,"type","text");z(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:Jo(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return et(Mu(this.getParentAtCaret(),n),this.direction)}getFlipped(){return Jo(this.origin,Zr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof Yo&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof Go||n instanceof Yo)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return et(this.origin,this.direction)}}function so(t){return t instanceof Yo}function Fr(t){return t instanceof Go}function mn(t){return t instanceof Zi}const hce={next:class extends Yo{constructor(){super(...arguments);z(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Yo{constructor(){super(...arguments);z(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},mce={next:class extends Go{constructor(){super(...arguments);z(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Go{constructor(){super(...arguments);z(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},gce={next:class extends Zi{constructor(){super(...arguments);z(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Zi{constructor(){super(...arguments);z(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function et(t,e){return t?new mce[e](t):null}function Jo(t,e,n){return t?new hce[e](t,ao(t,n)):null}function ao(t,e,n="error"){const o=t.getTextContentSize();let r=e==="next"?o:e==="previous"?0:e;return(r<0||r>o)&&(n!=="clamp"&&hh(284,String(e),String(o),t.getKey()),r=r<0?0:o),r}function yf(t,e){return new yce(t,e)}function nn(t,e){return F(t)?new gce[e](t):null}function vce(t){return t&&t.getChildCaret()||t}function Bu(t){return t&&vce(t.getAdjacentCaret())}class $u{constructor(e,n,o){z(this,"type","node-caret-range");z(this,"direction");z(this,"anchor");z(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 $u(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=r=>{const s=this[r].getLatest();return so(s)?function(a,l){const{direction:c,origin:u}=a,d=ao(u,l==="focus"?Zr(c):c);return yf(a,d-a.offset)}(s,r):null},n=e("anchor"),o=e("focus");if(n&&o){const{caret:r}=n,{caret:s}=o;if(r.isSameNodeCaret(s))return[yf(r,s.offset-r.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=so(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),r=so(o),s=a=>a.isSameNodeCaret(o)?null:Bu(a)||a.getParentCaret(e);return Am({hasNext:a=>a!==null&&!(r&&o.isSameNodeCaret(a)),initial:n.isSameNodeCaret(o)?null:s(n),map:a=>a,step:s})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class yce{constructor(e,n){z(this,"type","slice");z(this,"caret");z(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,r]=this.getSliceIndices(),s=e.getTextContent();return Jo(e.setTextContent(s.slice(0,o)+s.slice(r)),n,o)}}function Ou(t){return po(t,et(Ie(),t.direction))}function _ce(t){return po(t,t)}function po(t,e){return t.direction!==e.direction&&W(265),new $u(t,e,t.direction)}function Am(t){const{initial:e,hasNext:n,step:o,map:r}=t;let s=e;return{[Symbol.iterator](){return this},next(){if(!n(s))return{done:!0,value:void 0};const a={done:!1,value:r(s)};return s=o(s),a}}}function Nm(t,e){const n=js(t.origin,e.origin);switch(n===null&&W(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const o=t.type==="text",r=e.type==="text";return o&&r?function(s,a){return Math.sign(s-a)}(t.offset,e.offset):t.type===e.type?0:o?-1:r?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 Dm(n)}}function Dm(t){const{a:e,b:n}=t,o=e.__key,r=n.__key;let s=e,a=n;for(;s&&a;s=s.getNextSibling(),a=a.getNextSibling()){if(s.__key===r)return-1;if(a.__key===o)return 1}return s===null?1:-1}function Ps(t,e){return e.is(t)}function _f(t){return F(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function js(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,r]=_f(t);o;r=o,o=o.getParent())n.set(o,r);for(let[o,r]=_f(e);o;r=o,o=o.getParent()){const s=n.get(o);if(s!==void 0)return s===null?(Ps(t,o)||W(276),{commonAncestor:o,type:"ancestor"}):r===null?(Ps(e,o)||W(277),{commonAncestor:o,type:"descendant"}):((F(s)||Ps(t,s))&&(F(r)||Ps(e,r))&&o.is(s.getParent())&&o.is(r.getParent())||W(278),{a:s,b:r,commonAncestor:o,type:"branch"})}return null}function Rn(t,e){const{type:n,key:o,offset:r}=t,s=sce(t.key);return n==="text"?(X(s)||W(266,s.getType(),o),Jo(s,e,r)):(F(s)||W(267,s.getType(),o),kce(s,t.offset,e))}function Xo(t,e){const{origin:n,direction:o}=e,r=o==="next";so(e)?t.set(n.getKey(),e.offset,"text"):Fr(e)?X(n)?t.set(n.getKey(),ao(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(r?1:0),"element"):(mn(e)&&F(n)||W(268),t.set(n.getKey(),r?0:n.getChildrenSize(),"element"))}function Cce(t){const e=re(),n=Z(e)?e:rm();return Ws(n,t),_t(n),n}function Ws(t,e){Xo(t.anchor,e.anchor),Xo(t.focus,e.focus)}function Cf(t){const{anchor:e,focus:n}=t,o=Rn(e,"next"),r=Rn(n,"next"),s=Nm(o,r)<=0?"next":"previous";return po(Rr(o,s),Rr(r,s))}function Lu(t){const{direction:e,origin:n}=t,o=et(n,Zr(e)).getNodeAtCaret();return o?et(o,e):nn(n.getParentOrThrow(),e)}function bf(t,e="root"){const n=[t];for(let o=mn(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(Lu(o));return n}function Zl(t){return!!t&&t.origin.isAttached()}function bce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let r=e;const s=Bm(t,o),a=bf(s.anchor,n),l=bf(s.focus.getFlipped(),n),c=new Set,u=[];for(const m of s.iterNodeCarets(n))if(mn(m))c.add(m.origin.getKey());else if(Fr(m)){const{origin:g}=m;F(g)&&!c.has(g.getKey())||u.push(g)}for(const m of u)m.remove();for(const m of s.getTextSlices()){if(!m)continue;const{origin:g}=m.caret,y=g.getTextContentSize(),_=Lu(et(g,o)),C=g.getMode();if(Math.abs(m.distance)===y&&r==="removeEmptySlices"||C==="token"&&m.distance!==0)_.remove();else if(m.distance!==0){r="removeEmptySlices";let v=m.removeTextSlice();const w=m.caret.origin;if(C==="segmented"){const k=v.origin,b=Oe(k.getTextContent()).setStyle(k.getStyle()).setFormat(k.getFormat());_.replaceOrInsert(b),v=Jo(b,o,v.offset)}w.is(a[0].origin)&&(a[0]=v),w.is(l[0].origin)&&(l[0]=v.getFlipped())}}let d,f;for(const m of a)if(Zl(m)){d=Rt(m);break}for(const m of l)if(Zl(m)){f=Rt(m);break}const p=function(m,g,y){if(!m||!g)return null;const _=m.getParentAtCaret(),C=g.getParentAtCaret();if(!_||!C)return null;const v=_.getParents().reverse();v.push(_);const w=C.getParents().reverse();w.push(C);const k=Math.min(v.length,w.length);let b;for(b=0;b<k&&v[b]===w[b];b++);const E=(A,V)=>{let I;for(let U=b;U<A.length;U++){const $=A[U];if(Bt($))return;!I&&V($)&&(I=$)}return I},S=E(v,no),T=S&&E(w,A=>y.has(A.getKey())&&no(A));return S&&T?[S,T]:null}(d,f,c);if(p){const[m,g]=p;nn(m,"previous").splice(0,g.getChildren()),g.remove()}const h=[d,f,...a,...l].find(Zl);if(h)return _ce(Rr(Rt(h),t.direction));W(269,JSON.stringify(a.map(m=>m.origin.__key)))}function Rt(t){const e=function(r){let s=r;for(;mn(s);){const a=Bu(s);if(!mn(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(X(e.origin))return so(e)?e:Jo(e.origin,n,n);const o=e.getAdjacentCaret();return Fr(o)&&X(o.origin)?Jo(o.origin,n,Zr(n)):e}function Mm(t){return so(t)&&t.offset!==ao(t.origin,t.direction)}function Rr(t,e){return t.direction===e?t:t.getFlipped()}function Bm(t,e){return t.direction===e?t:po(Rr(t.focus,e),Rr(t.anchor,e))}function kce(t,e,n){let o=nn(t,"next");for(let r=0;r<e;r++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return Rr(o,n)}const Mc=new Map;function $m(t){const e={};if(!t)return e;const n=t.split(";");for(const o of n)if(o!==""){const[r,s]=o.split(/:([^]+)/);r&&s&&(e[r.trim()]=s.trim())}return e}function kf(t){let e=Mc.get(t);return e===void 0&&(e=$m(t),Mc.set(t,e)),e}function Om(t){const e=el().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function Lm(t){return Om(Re(t)?t:t.getParentOrThrow())}function wf(t){const e=Lm(t);return e!==null&&e.direction==="rtl"}function Im(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!Nn(e)&&o!==null){const[r,s]=o,a=t.isBackward(),l=r.getNode(),c=s.getNode(),u=e.is(l),d=e.is(c);if(u||d){const[f,p]=wc(t),h=l.is(c),m=e.is(a?c:l),g=e.is(a?l:c);let y,_=0;h?(_=f>p?p:f,y=f>p?f:p):m?(_=a?p:f,y=void 0):g&&(_=0,y=a?f:p);const C=e.__text.slice(_,y);C!==e.__text&&(n==="clone"&&(e=cce(e)),e.__text=C)}}return e}function wce(t){const e=t.getStyle(),n=$m(e);Mc.set(e,n)}function Pm(t){const e=Fm(t);return e!==null&&e.writingMode==="vertical-rl"}function Fm(t){const e=t.anchor.getNode();return F(e)?Om(e):Lm(e)}function Ef(t,e){let n=Pm(t)?!e:e;Rm(t)&&(n=!n);const o=Rn(t.focus,n?"previous":"next");if(Mm(o))return!1;for(const r of Ou(o)){if(mn(r))return!r.origin.isInline();if(!F(r.origin)){if(Ce(r.origin))return!0;break}}return!1}function Ece(t,e,n,o){t.modify(e?"extend":"move",n,o)}function Rm(t){const e=Fm(t);return e!==null&&e.direction==="rtl"}function xf(t,e,n){const o=Rm(t);let r;r=Pm(t)||o?!n:n,Ece(t,e,r,"character")}function xce(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 Iu=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Sce=Iu&&"documentMode"in document?document.documentMode:null;!(!Iu||!("InputEvent"in window)||Sce)&&"getTargetRanges"in new window.InputEvent("input");function Vm(...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 fs(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const Tce=Iu;function Vn(t,...e){const n=Vm(...e);n.length>0&&t.classList.add(...n)}function Pu(t,...e){const n=Vm(...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=Ln(t,n=>F(n)&&!n.isInline());return F(e)||xce(4,t.__key),e}function $o(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function ro(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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 Bc(t){let e=1,n=t.getParent();for(;n!=null;){if(be(n)){const o=n.getParent();if(ue(o)){e++,n=o.getParent();continue}ro(40)}return e}return e}function $c(t){let e=t.getParent();ue(e)||ro(40);let n=e;for(;n!==null;)n=n.getParent(),ue(n)&&(e=n);return e}function zm(t){let e=[];const n=t.getChildren().filter(be);for(let o=0;o<n.length;o++){const r=n[o],s=r.getFirstChild();ue(s)?e=e.concat(zm(s)):e.push(r)}return e}function fn(t){return be(t)&&ue(t.getFirstChild())}function Sf(t){return It().append(t)}function Um(t,e){return be(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function Tf(t){const e=re();if(e!==null){let n=e.getNodes();if(Z(e)){const r=e.getStartEndPoints();r===null&&ro(143);const[s]=r,a=s.getNode(),l=a.getParent();if(Bt(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=Le();a.append(u),n=u.select().getNodes()}}else if(Um(a,n)){const c=yt(t);if(Bt(l)){a.replace(c);const u=It();F(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(be(a)){const u=a.getParentOrThrow();Qo(c,u.getChildren()),u.replace(c)}return}}const o=new Set;for(let r=0;r<n.length;r++){const s=n[r];if(F(s)&&s.isEmpty()&&!be(s)&&!o.has(s.getKey())){Af(s,t);continue}let a=vm(s)?s.getParent():be(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(ue(a)){if(!o.has(l)){const c=yt(t);Qo(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(Bt(c)&&!o.has(l)){o.add(l),Af(a,t);break}a=c}}}}}function Qo(t,e){t.splice(t.getChildrenSize(),0,e)}function Af(t,e){if(ue(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),r=It();let s;if(Qo(r,t.getChildren()),ue(n)&&e===n.getListType())n.append(r),ue(o)&&e===o.getListType()&&(Qo(n,o.getChildren()),o.remove()),s=n;else if(ue(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(r),s=o;else{const a=yt(e);a.append(r),t.replace(a),s=a}return r.setFormat(t.getFormatType()),r.setIndent(t.getIndent()),t.remove(),s}function Fu(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&fn(n)&&fn(o)&&(Fu(n.getFirstChild(),o.getFirstChild()),o.remove());const r=e.getChildren();r.length>0&&t.append(...r),e.remove()}function Mce(){const t=re();if(Z(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(Um(o,n))e.add($c(o));else for(let r=0;r<n.length;r++){const s=n[r];if(vm(s)){const a=Nce(s,_o);a!=null&&e.add($c(a))}}for(const r of e){let s=r;const a=zm(r);for(const l of a){const c=Le().setTextStyle(t.style).setTextFormat(t.format);Qo(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&Xo(t.anchor,Rt(nn(c,"next"))),l.__key===t.focus.key&&Xo(t.focus,Rt(nn(c,"next"))),l.remove()}r.remove()}}}function qm(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())be(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),ue(o.getFirstChild())||n++)}function Bce(t){const e=new Set;if(fn(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),r=t.getPreviousSibling();if(fn(o)&&fn(r)){const s=r.getFirstChild();if(ue(s)){s.append(t);const a=o.getFirstChild();ue(a)&&(Qo(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(fn(o)){const s=o.getFirstChild();if(ue(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(fn(r)){const s=r.getFirstChild();ue(s)&&s.append(t)}else if(ue(n)){const s=It().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=yt(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());s.append(a),a.append(t),r?r.insertAfter(s):o?o.insertBefore(s):n.append(s)}}function $ce(t){if(fn(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(ue(n?n.getParent():void 0)&&be(n)&&ue(e)){const o=e?e.getFirstChild():void 0,r=e?e.getLastChild():void 0;if(t.is(o))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(r))n.insertAfter(t),e.isEmpty()&&n.remove();else{const s=e.getListType(),a=It(),l=yt(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=It(),u=yt(s);c.append(u),Qo(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function Oce(){const t=re();if(!Z(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!be(e)||e.getChildrenSize()!==0)return!1;const n=$c(e),o=e.getParent();ue(o)||ro(40);const r=o.getParent();let s;if(Bt(r))s=Le(),n.insertAfter(s);else{if(!be(r))return!1;s=It(),r.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=yt(o.getListType());if(be(s)){const c=It();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||!be(u)&&!ue(u))break;c=u}c.remove()}(e),!0}function ga(...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 _o=class extends Lt{constructor(n=1,o=void 0,r){super(r);z(this,"__value");z(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();ue(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:Lt,importDOM:{li:()=>({conversion:Lce,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,r){(function(l,c,u){const d=c.getParent();!ue(d)||d.getListType()!=="check"||ue(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,h=p?p.listitem:void 0;let m;if(p&&p.nested&&(m=p.nested.listitem),h!==void 0&&d.push(...ga(h)),p){const g=u.getParent(),y=ue(g)&&g.getListType()==="check",_=u.getChecked();y&&!_||f.push(p.listitemUnchecked),y&&_||f.push(p.listitemChecked),y&&d.push(_?p.listitemChecked:p.listitemUnchecked)}if(m!==void 0){const g=ga(m);u.getChildren().some(y=>ue(y))?d.push(...g):f.push(...g)}f.length>0&&Pu(l,...f),d.length>0&&Vn(l,...d)}(o,r.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=kf(c.__textStyle);for(const f in d)l.style.setProperty(`--listitem-marker-${f}`,d[f]);if(u)for(const f in kf(u.__textStyle))f in d||l.style.removeProperty(`--listitem-marker-${f}`)}(o,this,n)}updateDOM(n,o,r){const s=o;return this.updateListItemDOM(n,s,r),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const o=this.createDOM(n._config),r=this.getFormatType();r&&(o.style.textAlign=r);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 r=n[o];if(F(r)&&this.canMergeWith(r)){const s=r.getChildren();this.append(...s),r.remove()}else super.append(r)}return this}replace(n,o){if(be(n))return super.replace(n);this.setIndent(0);const r=this.getParentOrThrow();if(!ue(r))return n;if(r.__first===this.getKey())r.insertBefore(n);else if(r.__last===this.getKey())r.insertAfter(n);else{const s=yt(r.getListType());let a=this.getNextSibling();for(;a;){const l=a;a=a.getNextSibling(),s.append(l)}r.insertAfter(n),n.insertAfter(s)}return o&&(F(n)||ro(139),this.getChildren().forEach(s=>{n.append(s)})),this.remove(),r.getChildrenSize()===0&&r.remove(),n}insertAfter(n,o=!0){const r=this.getParentOrThrow();if(ue(r)||ro(39),be(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(r.insertAfter(n,o),s.length!==0){const a=yt(r.getListType());s.forEach(l=>a.append(l)),n.insertAfter(a,o)}return n}remove(n){const o=this.getPreviousSibling(),r=this.getNextSibling();super.remove(n),o&&r&&fn(o)&&fn(r)&&(Fu(o.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(n,o=!0){const r=It().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,o),r}collapseAtStart(n){const o=Le();this.getChildren().forEach(l=>o.append(l));const r=this.getParentOrThrow(),s=r.getParentOrThrow(),a=be(s);if(r.getChildrenSize()===1)if(a)r.remove(),s.select();else{r.insertBefore(o),r.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 r.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 r=this.getParent();return ue(r)&&(o=r.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(),r=0;for(;be(o);)o=o.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(n){typeof n!="number"&&ro(117),(n=Math.floor(n))>=0||ro(199);let o=this.getIndent();for(;o!==n;)o<n?(Bce(this),o++):($ce(this),o--);return this}canInsertAfter(n){return be(n)}canReplaceWith(n){return be(n)}canMergeWith(n){return be(n)||cs(n)}extractWithChild(n,o){if(!Z(o))return!1;const r=o.anchor.getNode(),s=o.focus.getNode();return this.isParentOf(r)&&this.isParentOf(s)&&this.getTextContent().length===o.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return yt("bullet")}canMergeWhenEmpty(){return!0}};function Lce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return Nf(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 Nf(n.children[0])}const e=t.getAttribute("aria-checked");return{node:It(e==="true"||e!=="false"&&void 0)}}function Nf(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:It(t.hasAttribute("checked"))}}function It(t){return sn(new _o(void 0,t))}function be(t){return t instanceof _o}let tr=class extends Lt{constructor(n="number",o=1,r){super(r);z(this,"__tag");z(this,"__start");z(this,"__listType");const s=Pce[n]||n;this.__listType=s,this.__tag=s==="number"?"ol":"ul",this.__start=o}$config(){return this.config("list",{$transform:n=>{(function(o){const r=o.getNextSibling();ue(r)&&o.getListType()===r.getListType()&&Fu(o,r)})(n),qm(n)},extends:Lt,importDOM:{ol:()=>({conversion:Mf,priority:0}),ul:()=>({conversion:Mf,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 r=this.__tag,s=document.createElement(r);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,Df(s,n.theme,this),s}updateDOM(n,o,r){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Df(o,r.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 ze(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,r){let s=r;for(let a=0;a<r.length;a++){const l=r[a];be(l)||(s===r&&(s=[...r]),s[a]=It().append(!F(l)||ue(l)||l.isInline()?l:Oe(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return be(n)}};function Df(t,e,n){const o=[],r=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=Bc(n)-1,c=l%a.length,u=a[c],d=s[n.__tag];let f;const p=s.nested,h=s.checklist;if(p!==void 0&&p.list&&(f=p.list),d!==void 0&&o.push(d),h!==void 0&&n.__listType==="check"&&o.push(h),u!==void 0){o.push(...ga(u));for(let m=0;m<a.length;m++)m!==c&&r.push(n.__tag+m)}if(f!==void 0){const m=ga(f);l>1?o.push(...m):r.push(...m)}}r.length>0&&Pu(t,...r),o.length>0&&Vn(t,...o)}function Ice(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(be(o)){e.push(o);const r=o.getChildren();r.length>1&&r.forEach(s=>{ue(s)&&e.push(Sf(s))})}else e.push(Sf(o))}return e}function Mf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=yt("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 r of o.childNodes)if(ze(r)&&r.hasAttribute("aria-checked"))return!0;return!1}(t)?yt("check"):yt("bullet")),{after:Ice,node:n}}const Pce={ol:"number",ul:"bullet"};function yt(t="number",e=1){return sn(new tr(t,e))}function ue(t){return t instanceof tr}const Fce=le("UPDATE_LIST_START_COMMAND"),Hm=le("INSERT_UNORDERED_LIST_COMMAND"),jm=le("INSERT_ORDERED_LIST_COMMAND"),Rce=le("REMOVE_LIST_COMMAND");function Vce(t){return fs(t.registerCommand(jm,()=>(Tf("number"),!0),gi),t.registerCommand(Fce,e=>{const{listNodeKey:n,newStart:o}=e,r=We(n);return!!ue(r)&&(r.getListType()==="number"&&(r.setStart(o),qm(r)),!0)},gi),t.registerCommand(Hm,()=>(Tf("bullet"),!0),gi),t.registerCommand(Rce,()=>(Mce(),!0),gi),t.registerCommand(Hi,()=>Oce(),gi),t.registerNodeTransform(_o,e=>{const n=e.getFirstChild();if(n){if(X(n)){const o=n.getStyle(),r=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const o=re();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(vo,e=>{const n=e.getParent();if(be(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),r=e.getFormat();o===n.getTextStyle()&&r===n.getTextFormat()||n.setTextStyle(o).setTextFormat(r)}}))}function zce(t){const e=n=>{const o=n.getParent();if(ue(n.getFirstChild())||!ue(o))return;const r=Ln(n,s=>be(s)&&ue(s.getParent())&&be(s.getPreviousSibling()));if(r===null&&n.getIndent()>0)n.setIndent(0);else if(be(r)){const s=r.getPreviousSibling();if(be(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;ue(d);){const f=d.getLastChild();if(!be(f))break;u=f,d=u.getFirstChild()}return u}(s),l=a.getParent();if(ue(l)){const c=Bc(l);c+1<Bc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(tr,n=>{const o=[n];for(;o.length>0;){const r=o.shift();if(ue(r)){for(const s of r.getChildren())if(be(s)){e(s);const a=s.getFirstChild();ue(a)&&o.push(a)}}}})}function Uce(t,e){const n=gm(e)?e.body.childNodes:e.childNodes;let o=[];const r=[];for(const s of n)if(!Zm.has(s.nodeName)){const a=Km(s,t,r,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof _u&&a.insertAfter(en());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(r),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=Ie().getChildren();for(let r=0;r<o.length;r++)Wm(t,o[r],n,e);return n.innerHTML}function Wm(t,e,n,o=null){let r=o===null||e.isSelected(o);const s=F(e)&&e.excludeFromCopy("html");let a=e;o!==null&&X(e)&&(a=Im(o,e,"clone"));const l=F(a)?a.getChildren():[],c=bu(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 h=0;h<l.length;h++){const m=l[h],g=Wm(t,m,p,o);!r&&F(e)&&g&&e.extractWithChild(m,o,"html")&&(r=!0)}if(r&&!s){if((ze(d)||Nc(d))&&d.append(p),n.append(d),f){const h=f.call(a,d);h&&(Nc(d)?d.replaceChildren(h):d.replaceWith(h))}}else n.append(p);return r}const Zm=new Set(["STYLE","SCRIPT"]);function Km(t,e,n,o,r=new Map,s){let a=[];if(Zm.has(t.nodeName))return a;let l=null;const c=function(m,g){const{nodeName:y}=m,_=g._htmlConversions.get(y.toLowerCase());let C=null;if(_!==void 0)for(const v of _){const w=v(m);w!==null&&(C===null||(C.priority||0)<=(w.priority||0))&&(C=w)}return C!==null?C.conversion:null}(t,e),u=c?c(t):null;let d=null;if(u!==null){d=u.after;const m=u.node;if(l=Array.isArray(m)?m[m.length-1]:m,l!==null){for(const[,g]of r)if(l=g(l,s),!l)break;l&&a.push(...Array.isArray(m)?m:[l])}u.forChild!=null&&r.set(t.nodeName,u.forChild)}const f=t.childNodes;let p=[];const h=(l==null||!Bt(l))&&(l!=null&&Ec(l)||o);for(let m=0;m<f.length;m++)p.push(...Km(f[m],e,n,h,new Map(r),l));return d!=null&&(p=d(p)),ma(t)&&(p=Hce(t,p,h?()=>{const m=new _u;return n.push(m),m}:Le)),l==null?p.length>0?a=a.concat(p):ma(t)&&function(m){return m.nextSibling==null||m.previousSibling==null?!1:Dc(m.nextSibling)&&Dc(m.previousSibling)}(t)&&(a=a.concat(en())):F(l)&&l.append(...p),a}function Hce(t,e,n){const o=t.style.textAlign,r=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if(Ec(l))o&&!l.getFormat()&&l.setFormat(o),r.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&Ec(e[a+1])){const c=n();c.setFormat(o),c.append(...s),r.push(c),s=[]}}return r}function va(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const r of e)o.append("v",r);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=re()){return e==null&&va(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?"":qce(t,e)}function Wce(t,e=re()){return e==null&&va(166),Z(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(Zce(t,e))}function Bf(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 $f(n,Kce(l.nodes),e)}catch(l){console.error(l)}const r=t.getData("text/html"),s=t.getData("text/plain");if(r&&s!==r)try{const l=new DOMParser().parseFromString(function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:u=>u}).createHTML(c):c}(r),"text/html");return $f(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=re();if(Z(u)){const d=l[c];d===`
|
|
30
30
|
`||d===`\r
|
|
31
|
-
`?u.insertParagraph():d===" "?u.insertNodes([Hr()]):u.insertText(d)}}}else e.insertRawText(a)}function $f(t,e,n){t.dispatchCommand(dle,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(Z(o)&&o.isCollapsed()){const r=o.anchor;let s=null;const a=Rn(r,"previous");if(a)if(so(a))s=a.origin;else{const l=po(a,nn(Ie(),"next").getFlipped());for(const c of l){if(X(c.origin)){s=c.origin;break}if(F(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 Gm(t,e,n,o=[]){let r=e===null||n.isSelected(e);const s=F(n)&&n.excludeFromCopy("html");let a=n;e!==null&&X(a)&&(a=Im(e,a,"clone"));const l=F(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&va(58,f.name),F(u)){const p=d.children;Array.isArray(p)||va(59,f.name)}return d}(a);X(a)&&a.getTextContentSize()===0&&(r=!1);for(let u=0;u<l.length;u++){const d=l[u],f=Gm(t,e,d,c.children);!r&&F(n)&&f&&n.extractWithChild(d,e,"clone")&&(r=!0)}if(r&&!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 r}function qce(t,e){const n=[],o=Ie().getChildren();for(let r=0;r<o.length;r++)Gm(t,e,o[r],n);return{namespace:t._config.namespace,nodes:n}}function Hce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],r=qle(o);X(r)&&_ce(r),e.push(r)}return e}let pr=null;async function Of(t,e,n){if(pr!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(Lf(t,e,n))})});const o=t.getRootElement(),r=t._window||window,s=r.document,a=tn(r);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(Wa,p=>($o(p,ClipboardEvent)&&(f(),pr!==null&&(r.clearTimeout(pr),pr=null),u(Lf(t,p,n))),!0),jle);pr=r.setTimeout(()=>{f(),pr=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function Lf(t,e,n){if(n===void 0){const r=tn(t._window),s=re();if(!s||s.isCollapsed()||!r)return!1;const a=r.anchorNode,l=r.focusNode;if(a!==null&&l!==null&&!us(t,a,l))return!1;n=jce(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(Wce(o,n),!0)}const Ym=[["text/html",zce],["application/x-lexical-editor",Uce]];function jce(t=re()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=el();for(const[o,r]of Ym){const s=r(n,t);s!==null&&(e[o]=s)}}return e}function Wce(t,e){for(const[n]of Ym)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function Zce(t){const e=window.location.origin,n=o=>{if(o.origin!==e)return;const r=t.getRootElement();if(document.activeElement!==r)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,h]=c;t.update(()=>{const m=re();if(Z(m)){const g=m.anchor;let y=g.getNode(),_=0,C=0;if(X(y)&&u>=0&&d>=0&&(_=u,C=u+d,m.setTextNodeRange(y,_,y,C)),_===C&&f===""||(m.insertRawText(f),y=g.getNode()),X(y)){_=p,C=p+h;const v=y.getTextContentSize();_=_>v?v:_,C=C>v?v:C,m.setTextNodeRange(y,_,y,C)}o.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function If(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 nr=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Kce=nr&&"documentMode"in document?document.documentMode:null,Gce=nr&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Yce=!(!nr||!("InputEvent"in window)||Kce)&&"getTargetRanges"in new window.InputEvent("input"),Jce=nr&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Pf=nr&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Xce=nr&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Qce=nr&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Gce&&!Xce,Ff=le("DRAG_DROP_PASTE_FILE");let Ru=class Jm extends Lt{static getType(){return"quote"}static clone(e){return new Jm(e.__key)}createDOM(e){const n=document.createElement("blockquote");return Vn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:eue,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(ze(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o);const r=this.getDirection();r&&(n.dir=r)}return{element:n}}static importJSON(e){return Vu().updateFromJSON(e)}insertNewAfter(e,n){const o=Le(),r=this.getDirection();return o.setDirection(r),this.insertAfter(o,n),o}collapseAtStart(){const e=Le();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Vu(){return sn(new Ru)}function Oc(t){return t instanceof Ru}let zu=class Xm extends Lt{constructor(n,o){super(o);z(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new Xm(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,r=document.createElement(o),s=n.theme.heading;if(s!==void 0){const a=s[o];Vn(r,a)}return r}updateDOM(n,o,r){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:hr,priority:0}),h2:n=>({conversion:hr,priority:0}),h3:n=>({conversion:hr,priority:0}),h4:n=>({conversion:hr,priority:0}),h5:n=>({conversion:hr,priority:0}),h6:n=>({conversion:hr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&Rf(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>Rf(n)?{conversion:o=>({node:Cr("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(ze(o)){this.isEmpty()&&o.append(document.createElement("br"));const r=this.getFormatType();r&&(o.style.textAlign=r);const s=this.getDirection();s&&(o.dir=s)}return{element:o}}static importJSON(n){return Cr(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 r=n?n.anchor.offset:0,s=this.getLastDescendant(),a=!s||n&&n.anchor.key===s.getKey()&&r===s.getTextContentSize()||!n?Le():Cr(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),r===0&&!this.isEmpty()&&n){const c=Le();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?Le():Cr(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function Rf(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function hr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Cr(e),t.style!==null&&(Nu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function eue(t){const e=Vu();return t.style!==null&&(e.setFormat(t.style.textAlign),Nu(t,e)),{node:e}}function Cr(t="h1"){return sn(new zu(t))}function tue(t){return t instanceof zu}function Fs(t){let e=null;if($o(t,DragEvent)?e=t.dataTransfer:$o(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];const n=e.types,o=n.includes("Files"),r=n.includes("text/html")||n.includes("text/plain");return[o,Array.from(e.files),r]}function Vf(t){const e=re();if(!Z(e))return!1;const n=new Set,o=e.getNodes();for(let r=0;r<o.length;r++){const s=o[r],a=s.getKey();if(n.has(a))continue;const l=Ln(s,u=>F(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 zf(t){const e=Pr(t);return Ce(e)}function Kl(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function nue(t){return fs(t.registerCommand(Mh,e=>{const n=re();return!!At(n)&&(n.clear(),!0)},ye),t.registerCommand(Io,e=>{const n=re();return Z(n)?(n.deleteCharacter(e),!0):!!At(n)&&(n.deleteNodes(),!0)},ye),t.registerCommand(ji,e=>{const n=re();return!!Z(n)&&(n.deleteWord(e),!0)},ye),t.registerCommand(Wi,e=>{const n=re();return!!Z(n)&&(n.deleteLine(e),!0)},ye),t.registerCommand(Er,e=>{const n=re();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)Bf(o,n,t);else if(Z(n)){const r=e.data;return r&&n.insertText(r),!0}}return!0},ye),t.registerCommand(mc,()=>{const e=re();return!!Z(e)&&(e.removeText(),!0)},ye),t.registerCommand(Yt,e=>{const n=re();return!!Z(n)&&(n.formatText(e),!0)},ye),t.registerCommand(vle,e=>{const n=re();if(!Z(n)&&!At(n))return!1;const o=n.getNodes();for(const r of o){const s=Ln(r,a=>F(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},ye),t.registerCommand(wr,e=>{const n=re();return!!Z(n)&&(n.insertLineBreak(e),!0)},ye),t.registerCommand(Hi,()=>{const e=re();return!!Z(e)&&(e.insertParagraph(),!0)},ye),t.registerCommand(mle,()=>(Vle([Hr()]),!0),ye),t.registerCommand(gle,()=>Vf(e=>{const n=e.getIndent();e.setIndent(n+1)}),ye),t.registerCommand(P1,()=>Vf(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),ye),t.registerCommand(Oh,e=>{const n=re();if(At(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(Z(n)){const o=Sc(n.focus,!0);if(!e.shiftKey&&Ce(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},ye),t.registerCommand(Lh,e=>{const n=re();if(At(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(Z(n)){if(function(r){const s=r.focus;return s.key==="root"&&s.offset===Ie().getChildrenSize()}(n))return e.preventDefault(),!0;const o=Sc(n.focus,!1);if(!e.shiftKey&&Ce(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},ye),t.registerCommand($h,e=>{const n=re();if(At(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),wf(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!Z(n))return!1;if(Ef(n,!0)){const o=e.shiftKey;return e.preventDefault(),xf(n,o,!0),!0}return!1},ye),t.registerCommand(Bh,e=>{const n=re();if(At(n)){const r=n.getNodes();if(r.length>0)return e.preventDefault(),wf(r[0])?r[0].selectPrevious():r[0].selectNext(0,0),!0}if(!Z(n))return!1;const o=e.shiftKey;return!!Ef(n,!1)&&(e.preventDefault(),xf(n,o,!1),!0)},ye),t.registerCommand(Ph,e=>{if(zf(e.target))return!1;const n=re();if(Z(n)){if(function(o){if(!o.isCollapsed())return!1;const{anchor:r}=o;if(r.offset!==0)return!1;const s=r.getNode();if(Re(s))return!1;const a=Sce(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(P1,void 0);if(Pf&&navigator.language==="ko-KR")return!1}else if(!At(n))return!1;return e.preventDefault(),t.dispatchCommand(Io,!0)},ye),t.registerCommand(Rh,e=>{if(zf(e.target))return!1;const n=re();return!(!Z(n)&&!At(n))&&(e.preventDefault(),t.dispatchCommand(Io,!1))},ye),t.registerCommand(la,e=>{const n=re();if(!Z(n))return!1;if(Kl(n),e!==null){if((Pf||Jce||Qce)&&Yce)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(wr,!1)}return t.dispatchCommand(Hi,void 0)},ye),t.registerCommand(Fh,()=>{const e=re();return!!Z(e)&&(t.blur(),!0)},ye),t.registerCommand(zh,e=>{const[,n]=Fs(e);if(n.length>0){const r=If(e.clientX,e.clientY);if(r!==null){const{offset:s,node:a}=r,l=Pr(a);if(l!==null){const c=rm();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=oa(c);_t(u)}t.dispatchCommand(Ff,n)}return e.preventDefault(),!0}const o=re();return!!Z(o)},ye),t.registerCommand(Uh,e=>{const[n]=Fs(e),o=re();return!(n&&!Z(o))},ye),t.registerCommand(qh,e=>{const[n]=Fs(e),o=re();if(n&&!Z(o))return!1;const r=If(e.clientX,e.clientY);if(r!==null){const s=Pr(r.node);Ce(s)&&e.preventDefault()}return!0},ye),t.registerCommand(gc,()=>(Xle(),!0),ye),t.registerCommand(Wa,e=>(Of(t,$o(e,ClipboardEvent)?e:null),!0),ye),t.registerCommand(hu,e=>(async function(n,o){await Of(o,$o(n,ClipboardEvent)?n:null),o.update(()=>{const r=re();Z(r)?r.removeText():At(r)&&r.getNodes().forEach(s=>s.remove())})}(e,t),!0),ye),t.registerCommand(du,e=>{const[,n,o]=Fs(e);return n.length>0&&!o?(t.dispatchCommand(Ff,n),!0):Wr(e.target)&&ku(e.target)?!1:re()!==null&&(function(r,s){r.preventDefault(),s.update(()=>{const a=re(),l=$o(r,InputEvent)||$o(r,KeyboardEvent)?null:r.clipboardData;l!=null&&a!==null&&Bf(l,a,s)},{tag:Sle})}(e,t),!0)},ye),t.registerCommand(Ih,e=>{const n=re();return Z(n)&&Kl(n),!1},ye),t.registerCommand(Vh,e=>{const n=re();return Z(n)&&Kl(n),!1},ye))}var oue={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
31
|
+
`?u.insertParagraph():d===" "?u.insertNodes([Hr()]):u.insertText(d)}}}else e.insertRawText(a)}function $f(t,e,n){t.dispatchCommand(mle,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(Z(o)&&o.isCollapsed()){const r=o.anchor;let s=null;const a=Rn(r,"previous");if(a)if(so(a))s=a.origin;else{const l=po(a,nn(Ie(),"next").getFlipped());for(const c of l){if(X(c.origin)){s=c.origin;break}if(F(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 Gm(t,e,n,o=[]){let r=e===null||n.isSelected(e);const s=F(n)&&n.excludeFromCopy("html");let a=n;e!==null&&X(a)&&(a=Im(e,a,"clone"));const l=F(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&va(58,f.name),F(u)){const p=d.children;Array.isArray(p)||va(59,f.name)}return d}(a);X(a)&&a.getTextContentSize()===0&&(r=!1);for(let u=0;u<l.length;u++){const d=l[u],f=Gm(t,e,d,c.children);!r&&F(n)&&f&&n.extractWithChild(d,e,"clone")&&(r=!0)}if(r&&!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 r}function Zce(t,e){const n=[],o=Ie().getChildren();for(let r=0;r<o.length;r++)Gm(t,e,o[r],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],r=Zle(o);X(r)&&wce(r),e.push(r)}return e}let pr=null;async function Of(t,e,n){if(pr!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(Lf(t,e,n))})});const o=t.getRootElement(),r=t._window||window,s=r.document,a=tn(r);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(Wa,p=>($o(p,ClipboardEvent)&&(f(),pr!==null&&(r.clearTimeout(pr),pr=null),u(Lf(t,p,n))),!0),Gle);pr=r.setTimeout(()=>{f(),pr=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function Lf(t,e,n){if(n===void 0){const r=tn(t._window),s=re();if(!s||s.isCollapsed()||!r)return!1;const a=r.anchorNode,l=r.focusNode;if(a!==null&&l!==null&&!us(t,a,l))return!1;n=Gce(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(Yce(o,n),!0)}const Ym=[["text/html",jce],["application/x-lexical-editor",Wce]];function Gce(t=re()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=el();for(const[o,r]of Ym){const s=r(n,t);s!==null&&(e[o]=s)}}return e}function Yce(t,e){for(const[n]of Ym)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 r=t.getRootElement();if(document.activeElement!==r)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,h]=c;t.update(()=>{const m=re();if(Z(m)){const g=m.anchor;let y=g.getNode(),_=0,C=0;if(X(y)&&u>=0&&d>=0&&(_=u,C=u+d,m.setTextNodeRange(y,_,y,C)),_===C&&f===""||(m.insertRawText(f),y=g.getNode()),X(y)){_=p,C=p+h;const v=y.getTextContentSize();_=_>v?v:_,C=C>v?v:C,m.setTextNodeRange(y,_,y,C)}o.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function If(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 nr=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Xce=nr&&"documentMode"in document?document.documentMode:null,Qce=nr&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),eue=!(!nr||!("InputEvent"in window)||Xce)&&"getTargetRanges"in new window.InputEvent("input"),tue=nr&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Pf=nr&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,nue=nr&&/^(?=.*Chrome).*/i.test(navigator.userAgent),oue=nr&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Qce&&!nue,Ff=le("DRAG_DROP_PASTE_FILE");let Ru=class Jm extends Lt{static getType(){return"quote"}static clone(e){return new Jm(e.__key)}createDOM(e){const n=document.createElement("blockquote");return Vn(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(ze(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o);const r=this.getDirection();r&&(n.dir=r)}return{element:n}}static importJSON(e){return Vu().updateFromJSON(e)}insertNewAfter(e,n){const o=Le(),r=this.getDirection();return o.setDirection(r),this.insertAfter(o,n),o}collapseAtStart(){const e=Le();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Vu(){return sn(new Ru)}function Oc(t){return t instanceof Ru}let zu=class Xm extends Lt{constructor(n,o){super(o);z(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new Xm(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,r=document.createElement(o),s=n.theme.heading;if(s!==void 0){const a=s[o];Vn(r,a)}return r}updateDOM(n,o,r){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:hr,priority:0}),h2:n=>({conversion:hr,priority:0}),h3:n=>({conversion:hr,priority:0}),h4:n=>({conversion:hr,priority:0}),h5:n=>({conversion:hr,priority:0}),h6:n=>({conversion:hr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&Rf(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>Rf(n)?{conversion:o=>({node:Cr("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(ze(o)){this.isEmpty()&&o.append(document.createElement("br"));const r=this.getFormatType();r&&(o.style.textAlign=r);const s=this.getDirection();s&&(o.dir=s)}return{element:o}}static importJSON(n){return Cr(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 r=n?n.anchor.offset:0,s=this.getLastDescendant(),a=!s||n&&n.anchor.key===s.getKey()&&r===s.getTextContentSize()||!n?Le():Cr(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),r===0&&!this.isEmpty()&&n){const c=Le();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?Le():Cr(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function Rf(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function hr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Cr(e),t.style!==null&&(Nu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function rue(t){const e=Vu();return t.style!==null&&(e.setFormat(t.style.textAlign),Nu(t,e)),{node:e}}function Cr(t="h1"){return sn(new zu(t))}function iue(t){return t instanceof zu}function Fs(t){let e=null;if($o(t,DragEvent)?e=t.dataTransfer:$o(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];const n=e.types,o=n.includes("Files"),r=n.includes("text/html")||n.includes("text/plain");return[o,Array.from(e.files),r]}function Vf(t){const e=re();if(!Z(e))return!1;const n=new Set,o=e.getNodes();for(let r=0;r<o.length;r++){const s=o[r],a=s.getKey();if(n.has(a))continue;const l=Ln(s,u=>F(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 zf(t){const e=Pr(t);return Ce(e)}function Kl(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function sue(t){return fs(t.registerCommand(Mh,e=>{const n=re();return!!At(n)&&(n.clear(),!0)},ye),t.registerCommand(Io,e=>{const n=re();return Z(n)?(n.deleteCharacter(e),!0):!!At(n)&&(n.deleteNodes(),!0)},ye),t.registerCommand(ji,e=>{const n=re();return!!Z(n)&&(n.deleteWord(e),!0)},ye),t.registerCommand(Wi,e=>{const n=re();return!!Z(n)&&(n.deleteLine(e),!0)},ye),t.registerCommand(Er,e=>{const n=re();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)Bf(o,n,t);else if(Z(n)){const r=e.data;return r&&n.insertText(r),!0}}return!0},ye),t.registerCommand(mc,()=>{const e=re();return!!Z(e)&&(e.removeText(),!0)},ye),t.registerCommand(Yt,e=>{const n=re();return!!Z(n)&&(n.formatText(e),!0)},ye),t.registerCommand(ble,e=>{const n=re();if(!Z(n)&&!At(n))return!1;const o=n.getNodes();for(const r of o){const s=Ln(r,a=>F(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},ye),t.registerCommand(wr,e=>{const n=re();return!!Z(n)&&(n.insertLineBreak(e),!0)},ye),t.registerCommand(Hi,()=>{const e=re();return!!Z(e)&&(e.insertParagraph(),!0)},ye),t.registerCommand(_le,()=>(Hle([Hr()]),!0),ye),t.registerCommand(Cle,()=>Vf(e=>{const n=e.getIndent();e.setIndent(n+1)}),ye),t.registerCommand(P1,()=>Vf(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),ye),t.registerCommand(Oh,e=>{const n=re();if(At(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(Z(n)){const o=Sc(n.focus,!0);if(!e.shiftKey&&Ce(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},ye),t.registerCommand(Lh,e=>{const n=re();if(At(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(Z(n)){if(function(r){const s=r.focus;return s.key==="root"&&s.offset===Ie().getChildrenSize()}(n))return e.preventDefault(),!0;const o=Sc(n.focus,!1);if(!e.shiftKey&&Ce(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},ye),t.registerCommand($h,e=>{const n=re();if(At(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),wf(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!Z(n))return!1;if(Ef(n,!0)){const o=e.shiftKey;return e.preventDefault(),xf(n,o,!0),!0}return!1},ye),t.registerCommand(Bh,e=>{const n=re();if(At(n)){const r=n.getNodes();if(r.length>0)return e.preventDefault(),wf(r[0])?r[0].selectPrevious():r[0].selectNext(0,0),!0}if(!Z(n))return!1;const o=e.shiftKey;return!!Ef(n,!1)&&(e.preventDefault(),xf(n,o,!1),!0)},ye),t.registerCommand(Ph,e=>{if(zf(e.target))return!1;const n=re();if(Z(n)){if(function(o){if(!o.isCollapsed())return!1;const{anchor:r}=o;if(r.offset!==0)return!1;const s=r.getNode();if(Re(s))return!1;const a=Dce(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(P1,void 0);if(Pf&&navigator.language==="ko-KR")return!1}else if(!At(n))return!1;return e.preventDefault(),t.dispatchCommand(Io,!0)},ye),t.registerCommand(Rh,e=>{if(zf(e.target))return!1;const n=re();return!(!Z(n)&&!At(n))&&(e.preventDefault(),t.dispatchCommand(Io,!1))},ye),t.registerCommand(la,e=>{const n=re();if(!Z(n))return!1;if(Kl(n),e!==null){if((Pf||tue||oue)&&eue)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(wr,!1)}return t.dispatchCommand(Hi,void 0)},ye),t.registerCommand(Fh,()=>{const e=re();return!!Z(e)&&(t.blur(),!0)},ye),t.registerCommand(zh,e=>{const[,n]=Fs(e);if(n.length>0){const r=If(e.clientX,e.clientY);if(r!==null){const{offset:s,node:a}=r,l=Pr(a);if(l!==null){const c=rm();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=oa(c);_t(u)}t.dispatchCommand(Ff,n)}return e.preventDefault(),!0}const o=re();return!!Z(o)},ye),t.registerCommand(Uh,e=>{const[n]=Fs(e),o=re();return!(n&&!Z(o))},ye),t.registerCommand(qh,e=>{const[n]=Fs(e),o=re();if(n&&!Z(o))return!1;const r=If(e.clientX,e.clientY);if(r!==null){const s=Pr(r.node);Ce(s)&&e.preventDefault()}return!0},ye),t.registerCommand(gc,()=>(nce(),!0),ye),t.registerCommand(Wa,e=>(Of(t,$o(e,ClipboardEvent)?e:null),!0),ye),t.registerCommand(hu,e=>(async function(n,o){await Of(o,$o(n,ClipboardEvent)?n:null),o.update(()=>{const r=re();Z(r)?r.removeText():At(r)&&r.getNodes().forEach(s=>s.remove())})}(e,t),!0),ye),t.registerCommand(du,e=>{const[,n,o]=Fs(e);return n.length>0&&!o?(t.dispatchCommand(Ff,n),!0):Wr(e.target)&&ku(e.target)?!1:re()!==null&&(function(r,s){r.preventDefault(),s.update(()=>{const a=re(),l=$o(r,InputEvent)||$o(r,KeyboardEvent)?null:r.clipboardData;l!=null&&a!==null&&Bf(l,a,s)},{tag:Dle})}(e,t),!0)},ye),t.registerCommand(Ih,e=>{const n=re();return Z(n)&&Kl(n),!1},ye),t.registerCommand(Vh,e=>{const n=re();return Z(n)&&Kl(n),!1},ye))}var aue={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>
|
|
@@ -36,23 +36,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36
36
|
* @namespace
|
|
37
37
|
* @public
|
|
38
38
|
*/var n=function(o){var r=/(?:^|\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 C(v){return v instanceof c?new c(v.type,C(v.content),v.alias):Array.isArray(v)?v.map(C):v.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(C){return Object.prototype.toString.call(C).slice(8,-1)},objId:function(C){return C.__id||Object.defineProperty(C,"__id",{value:++s}),C.__id},clone:function C(v,w){w=w||{};var k,b;switch(l.util.type(v)){case"Object":if(b=l.util.objId(v),w[b])return w[b];k={},w[b]=k;for(var E in v)v.hasOwnProperty(E)&&(k[E]=C(v[E],w));return k;case"Array":return b=l.util.objId(v),w[b]?w[b]:(k=[],w[b]=k,v.forEach(function(S,T){k[T]=C(S,w)}),k);default:return v}},getLanguage:function(C){for(;C;){var v=r.exec(C.className);if(v)return v[1].toLowerCase();C=C.parentElement}return"none"},setLanguage:function(C,v){C.className=C.className.replace(RegExp(r,"gi"),""),C.classList.add("language-"+v)},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(k){var C=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(C){var v=document.getElementsByTagName("script");for(var w in v)if(v[w].src==C)return v[w]}return null}},isActive:function(C,v,w){for(var k="no-"+v;C;){var b=C.classList;if(b.contains(v))return!0;if(b.contains(k))return!1;C=C.parentElement}return!!w}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(C,v){var w=l.util.clone(l.languages[C]);for(var k in v)w[k]=v[k];return w},insertBefore:function(C,v,w,k){k=k||l.languages;var b=k[C],E={};for(var S in b)if(b.hasOwnProperty(S)){if(S==v)for(var T in w)w.hasOwnProperty(T)&&(E[T]=w[T]);w.hasOwnProperty(S)||(E[S]=b[S])}var A=k[C];return k[C]=E,l.languages.DFS(l.languages,function(V,I){I===A&&V!=C&&(this[V]=E)}),E},DFS:function C(v,w,k,b){b=b||{};var E=l.util.objId;for(var S in v)if(v.hasOwnProperty(S)){w.call(v,S,v[S],k||S);var T=v[S],A=l.util.type(T);A==="Object"&&!b[E(T)]?(b[E(T)]=!0,C(T,w,null,b)):A==="Array"&&!b[E(T)]&&(b[E(T)]=!0,C(T,w,S,b))}}},plugins:{},highlightAll:function(C,v){l.highlightAllUnder(document,C,v)},highlightAllUnder:function(C,v,w){var k={callback:w,container:C,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),l.hooks.run("before-all-elements-highlight",k);for(var b=0,E;E=k.elements[b++];)l.highlightElement(E,v===!0,k.callback)},highlightElement:function(C,v,w){var k=l.util.getLanguage(C),b=l.languages[k];l.util.setLanguage(C,k);var E=C.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(E,k);var S=C.textContent,T={element:C,language:k,grammar:b,code:S};function A(I){T.highlightedCode=I,l.hooks.run("before-insert",T),T.element.innerHTML=T.highlightedCode,l.hooks.run("after-highlight",T),l.hooks.run("complete",T),w&&w.call(T.element)}if(l.hooks.run("before-sanity-check",T),E=T.element.parentElement,E&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!T.code){l.hooks.run("complete",T),w&&w.call(T.element);return}if(l.hooks.run("before-highlight",T),!T.grammar){A(l.util.encode(T.code));return}if(v&&o.Worker){var V=new Worker(l.filename);V.onmessage=function(I){A(I.data)},V.postMessage(JSON.stringify({language:T.language,code:T.code,immediateClose:!0}))}else A(l.highlight(T.code,T.grammar,T.language))},highlight:function(C,v,w){var k={code:C,grammar:v,language:w};if(l.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=l.tokenize(k.code,k.grammar),l.hooks.run("after-tokenize",k),c.stringify(l.util.encode(k.tokens),k.language)},tokenize:function(C,v){var w=v.rest;if(w){for(var k in w)v[k]=w[k];delete v.rest}var b=new f;return p(b,b.head,C),d(C,b,v,b.head,0),m(b)},hooks:{all:{},add:function(C,v){var w=l.hooks.all;w[C]=w[C]||[],w[C].push(v)},run:function(C,v){var w=l.hooks.all[C];if(!(!w||!w.length))for(var k=0,b;b=w[k++];)b(v)}},Token:c};o.Prism=l;function c(C,v,w,k){this.type=C,this.content=v,this.alias=w,this.length=(k||"").length|0}c.stringify=function C(v,w){if(typeof v=="string")return v;if(Array.isArray(v)){var k="";return v.forEach(function(A){k+=C(A,w)}),k}var b={type:v.type,content:C(v.content,w),tag:"span",classes:["token",v.type],attributes:{},language:w},E=v.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(b.classes,E):b.classes.push(E)),l.hooks.run("wrap",b);var S="";for(var T in b.attributes)S+=" "+T+'="'+(b.attributes[T]||"").replace(/"/g,""")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+S+">"+b.content+"</"+b.tag+">"};function u(C,v,w,k){C.lastIndex=v;var b=C.exec(w);if(b&&k&&b[1]){var E=b[1].length;b.index+=E,b[0]=b[0].slice(E)}return b}function d(C,v,w,k,b,E){for(var S in w)if(!(!w.hasOwnProperty(S)||!w[S])){var T=w[S];T=Array.isArray(T)?T:[T];for(var A=0;A<T.length;++A){if(E&&E.cause==S+","+A)return;var V=T[A],I=V.inside,U=!!V.lookbehind,$=!!V.greedy,H=V.alias;if($&&!V.pattern.global){var L=V.pattern.toString().match(/[imsuy]*$/)[0];V.pattern=RegExp(V.pattern.source,L+"g")}for(var ee=V.pattern||V,O=k.next,D=b;O!==v.tail&&!(E&&D>=E.reach);D+=O.value.length,O=O.next){var K=O.value;if(v.length>C.length)return;if(!(K instanceof c)){var P=1,q;if($){if(q=u(ee,D,C,U),!q||q.index>=C.length)break;var R=q.index,ce=q.index+q[0].length,Q=D;for(Q+=O.value.length;R>=Q;)O=O.next,Q+=O.value.length;if(Q-=O.value.length,D=Q,O.value instanceof c)continue;for(var ie=O;ie!==v.tail&&(Q<ce||typeof ie.value=="string");ie=ie.next)P++,Q+=ie.value.length;P--,K=C.slice(D,Q),q.index-=D}else if(q=u(ee,0,K,U),!q)continue;var R=q.index,te=q[0],B=K.slice(0,R),G=K.slice(R+te.length),ge=D+K.length;E&&ge>E.reach&&(E.reach=ge);var qe=O.prev;B&&(qe=p(v,qe,B),D+=B.length),h(v,qe,P);var de=new c(S,I?l.tokenize(te,I):te,H,te);if(O=p(v,qe,de),G&&p(v,O,G),P>1){var _e={cause:S+","+A,reach:ge};d(C,v,w,O.prev,D,_e),E&&_e.reach>E.reach&&(E.reach=_e.reach)}}}}}}function f(){var C={value:null,prev:null,next:null},v={value:null,prev:C,next:null};C.next=v,this.head=C,this.tail=v,this.length=0}function p(C,v,w){var k=v.next,b={value:w,prev:v,next:k};return v.next=b,k.prev=b,C.length++,b}function h(C,v,w){for(var k=v.next,b=0;b<w&&k!==C.tail;b++)k=k.next;v.next=k,k.prev=v,C.length-=b}function m(C){for(var v=[],w=C.head.next;w!==C.tail;)v.push(w.value),w=w.next;return v}if(!o.document)return o.addEventListener&&(l.disableWorkerMessageHandler||o.addEventListener("message",function(C){var v=JSON.parse(C.data),w=v.language,k=v.code,b=v.immediateClose;o.postMessage(l.highlight(k,l.languages[w],w)),b&&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 _=document.readyState;_==="loading"||_==="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 gt<"u"&&(gt.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(r,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[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(o,r){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:[r,"language-"+r],inside:n.languages[r]},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 r=/(?:"(?:\\(?:\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+"|"+r.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\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,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…",r=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,_){var C=new XMLHttpRequest;C.open("GET",g,!0),C.onreadystatechange=function(){C.readyState==4&&(C.status<400&&C.responseText?y(C.responseText):C.status>=400?_(r(C.status,C.statusText)):_(s))},C.send(null)}function h(g){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(y){var _=Number(y[1]),C=y[2],v=y[3];return C?v?[_,Number(v)]:[_,void 0]:[_,_]}}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 _=y.appendChild(document.createElement("CODE"));_.textContent=o;var C=y.getAttribute("data-src"),v=g.language;if(v==="none"){var w=(/\.(\w+)$/.exec(C)||[,"none"])[1];v=a[w]||w}n.util.setLanguage(_,v),n.util.setLanguage(y,v);var k=n.plugins.autoloader;k&&k.loadLanguages(v),p(C,function(b){y.setAttribute(l,u);var E=h(y.getAttribute("data-range"));if(E){var S=b.split(/\r\n?|\n/g),T=E[0],A=E[1]==null?S.length:E[1];T<0&&(T+=S.length),T=Math.max(0,Math.min(T-1,S.length)),A<0&&(A+=S.length),A=Math.max(0,Math.min(A,S.length)),b=S.slice(T,A).join(`
|
|
39
|
-
`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(T+1))}_.textContent=b,n.highlightElement(_)},function(b){y.setAttribute(l,d),_.textContent=b})}}),n.plugins.fileHighlight={highlight:function(y){for(var _=(y||document).querySelectorAll(f),C=0,v;v=_[C++];)n.highlightElement(v)}};var m=!1;n.fileHighlight=function(){m||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),m=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(oue);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 r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};r["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:r},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,r=/\|?__(?:\|__)+\|?(?:(?:\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("^"+r+s+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+s+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),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 h=0,m=p.length;h<m;h++){var g=p[h];if(g.type!=="code"){f(g.content);continue}var y=g.content[1],_=g.content[3];if(y&&_&&y.type==="code-language"&&_.type==="code-block"&&typeof y.content=="string"){var C=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");C=(/[a-z][\w-]*/i.exec(C)||[""])[0].toLowerCase();var v="language-"+C;_.alias?typeof _.alias=="string"?_.alias=[_.alias,v]:_.alias.push(v):_.alias=[v]}}}f(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var f="",p=0,h=d.classes.length;p<h;p++){var m=d.classes[p],g=/language-(.+)/.exec(m);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 _="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=_,t.plugins.autoloader.loadLanguages(f,function(){var C=document.getElementById(_);C&&(C.innerHTML=t.highlight(C.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,h){if(h=h.toLowerCase(),h[0]==="#"){var m;return h[1]==="x"?m=parseInt(h.slice(2),16):m=Number(h.slice(1)),c(m)}else{var g=l[h];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 Qm(t,e){for(const n of t.childNodes){if(ze(n)&&n.tagName===e)return!0;Qm(n,e)}return!1}const ki="data-language",yi="data-highlight-language",Rs="data-theme";let Uu=class eg extends Lt{constructor(n,o){super(o);z(this,"__language");z(this,"__theme");z(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new eg(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");Vn(o,n.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(ki,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(yi,r));const s=this.getTheme();s&&o.setAttribute(Rs,s);const a=this.getStyle();return a&&o.setAttribute("style",a),o}updateDOM(n,o,r){const s=this.__language,a=n.__language;s?s!==a&&o.setAttribute(ki,s):a&&o.removeAttribute(ki);const l=this.__isSyntaxHighlightSupported;n.__isSyntaxHighlightSupported&&a?l&&s?s!==a&&o.setAttribute(yi,s):o.removeAttribute(yi):l&&s&&o.setAttribute(yi,s);const c=this.__theme,u=n.__theme;c?c!==u&&o.setAttribute(Rs,c):u&&o.removeAttribute(Rs);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");Vn(o,n._config.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(ki,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(yi,r));const s=this.getTheme();s&&o.setAttribute(Rs,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)||Qm(n,"BR"))?{conversion:Uf,priority:1}:null,div:()=>({conversion:rue,priority:1}),pre:()=>({conversion:Uf,priority:0}),table:n=>Gl(n)?{conversion:iue,priority:3}:null,td:n=>{const o=n,r=o.closest("table");return o.classList.contains("js-file-line")||r&&Gl(r)?{conversion:qf,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&Gl(o)?{conversion:qf,priority:3}:null}}}static importJSON(n){return Bn().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 r=this.getChildren(),s=r.length;if(s>=2&&r[s-1].getTextContent()===`
|
|
39
|
+
`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(T+1))}_.textContent=b,n.highlightElement(_)},function(b){y.setAttribute(l,d),_.textContent=b})}}),n.plugins.fileHighlight={highlight:function(y){for(var _=(y||document).querySelectorAll(f),C=0,v;v=_[C++];)n.highlightElement(v)}};var m=!1;n.fileHighlight=function(){m||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),m=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(aue);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 r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};r["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:r},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,r=/\|?__(?:\|__)+\|?(?:(?:\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("^"+r+s+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+s+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),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 h=0,m=p.length;h<m;h++){var g=p[h];if(g.type!=="code"){f(g.content);continue}var y=g.content[1],_=g.content[3];if(y&&_&&y.type==="code-language"&&_.type==="code-block"&&typeof y.content=="string"){var C=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");C=(/[a-z][\w-]*/i.exec(C)||[""])[0].toLowerCase();var v="language-"+C;_.alias?typeof _.alias=="string"?_.alias=[_.alias,v]:_.alias.push(v):_.alias=[v]}}}f(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var f="",p=0,h=d.classes.length;p<h;p++){var m=d.classes[p],g=/language-(.+)/.exec(m);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 _="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=_,t.plugins.autoloader.loadLanguages(f,function(){var C=document.getElementById(_);C&&(C.innerHTML=t.highlight(C.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,h){if(h=h.toLowerCase(),h[0]==="#"){var m;return h[1]==="x"?m=parseInt(h.slice(2),16):m=Number(h.slice(1)),c(m)}else{var g=l[h];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 Qm(t,e){for(const n of t.childNodes){if(ze(n)&&n.tagName===e)return!0;Qm(n,e)}return!1}const ki="data-language",yi="data-highlight-language",Rs="data-theme";let Uu=class eg extends Lt{constructor(n,o){super(o);z(this,"__language");z(this,"__theme");z(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new eg(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");Vn(o,n.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(ki,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(yi,r));const s=this.getTheme();s&&o.setAttribute(Rs,s);const a=this.getStyle();return a&&o.setAttribute("style",a),o}updateDOM(n,o,r){const s=this.__language,a=n.__language;s?s!==a&&o.setAttribute(ki,s):a&&o.removeAttribute(ki);const l=this.__isSyntaxHighlightSupported;n.__isSyntaxHighlightSupported&&a?l&&s?s!==a&&o.setAttribute(yi,s):o.removeAttribute(yi):l&&s&&o.setAttribute(yi,s);const c=this.__theme,u=n.__theme;c?c!==u&&o.setAttribute(Rs,c):u&&o.removeAttribute(Rs);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");Vn(o,n._config.theme.code),o.setAttribute("spellcheck","false");const r=this.getLanguage();r&&(o.setAttribute(ki,r),this.getIsSyntaxHighlightSupported()&&o.setAttribute(yi,r));const s=this.getTheme();s&&o.setAttribute(Rs,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)||Qm(n,"BR"))?{conversion:Uf,priority:1}:null,div:()=>({conversion:lue,priority:1}),pre:()=>({conversion:Uf,priority:0}),table:n=>Gl(n)?{conversion:cue,priority:3}:null,td:n=>{const o=n,r=o.closest("table");return o.classList.contains("js-file-line")||r&&Gl(r)?{conversion:qf,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&Gl(o)?{conversion:qf,priority:3}:null}}}static importJSON(n){return Bn().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 r=this.getChildren(),s=r.length;if(s>=2&&r[s-1].getTextContent()===`
|
|
40
40
|
`&&r[s-2].getTextContent()===`
|
|
41
|
-
`&&n.isCollapsed()&&n.anchor.key===this.__key&&n.anchor.offset===s){r[s-1].remove(),r[s-2].remove();const u=Le();return this.insertAfter(u,o),u}const{anchor:a,focus:l}=n,c=(a.isBefore(l)?a:l).getNode();if(X(c)){let u=
|
|
41
|
+
`&&n.isCollapsed()&&n.anchor.key===this.__key&&n.anchor.offset===s){r[s-1].remove(),r[s-2].remove();const u=Le();return this.insertAfter(u,o),u}const{anchor:a,focus:l}=n,c=(a.isBefore(l)?a:l).getNode();if(X(c)){let u=due(c);const d=[];for(;;)if(Za(u))d.push(Hr()),u=u.getNextSibling();else{if(!og(u))break;{let _=0;const C=u.getTextContent(),v=u.getTextContentSize();for(;_<v&&C[_]===" ";)_++;if(_!==0&&d.push(ng(" ".repeat(_))),_!==v)break;u=u.getNextSibling()}}const f=c.splitText(a.offset)[0],p=a.offset===0?0:1,h=f.getIndexWithinParent()+p,m=c.getParentOrThrow(),g=[en(),...d];m.splice(h,0,g);const y=d[d.length-1];y?y.select():a.offset===0?f.selectPrevious():f.getNextSibling().selectNext(0,0)}if(tg(c)){const{offset:u}=n.anchor;c.splice(u,0,[en()]),c.select(u+1,u+1)}return null}canIndent(){return!1}collapseAtStart(){const n=Le();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 Bn(t,e){return dce(Uu).setLanguage(t).setTheme(e)}function tg(t){return t instanceof Uu}function Uf(t){return{node:Bn(t.getAttribute(ki))}}function lue(t){const e=t,n=Hf(e);return n||function(o){let r=o.parentElement;for(;r!==null;){if(Hf(r))return!0;r=r.parentElement}return!1}(e)?{node:n?Bn():null}:{node:null}}function cue(){return{node:Bn()}}function qf(){return{node:null}}function Hf(t){return t.style.fontFamily.match("monospace")!==null}function Gl(t){return t.classList.contains("js-file-line-container")}class nl extends vo{constructor(n="",o,r){super(n,r);z(this,"__highlightType");this.__highlightType=o}static getType(){return"code-highlight"}static clone(n){return new nl(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),r=Yl(n.theme,this.__highlightType);return Vn(o,r),o}updateDOM(n,o,r){const s=super.updateDOM(n,o,r),a=Yl(r.theme,n.__highlightType),l=Yl(r.theme,this.__highlightType);return a!==l&&(a&&Pu(o,a),l&&Vn(o,l)),s}static importJSON(n){return ng().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 Bn()}}function Yl(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function ng(t="",e){return sn(new nl(t,e))}function og(t){return t instanceof nl}function uue(t,e){let n=t;for(let o=et(t,e);o&&(og(o.origin)||Za(o.origin));o=Ace(o))n=o.origin;return n}function due(t){return uue(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],r=[];/^\w+$/.test(n)||r.push(/\w+/.exec(n)[0]),n==="diff"&&r.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+o+`].*(?:\r
|
|
42
42
|
?|
|
|
43
|
-
|(?![\\s\\S])))+`,"m"),alias:r,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
|
|
44
|
-
`):X(l)?s.push(Kf(l,l.getTextContent(),e,o,r)):F(l)?s.push(_a(l,e,n,o,r)):Ce(l)&&s.push(l.getTextContent())}return s.join("")}function Kf(t,e,n,o,r){let s=t.getFormat()===0?e:function(p){return p.replace(/^\s+|\s+$/g,h=>[...h].map(m=>"&#"+m.codePointAt(0)+";").join(""))}(e);t.hasFormat("code")||(s=s.replace(/([*_`~\\])/g,"\\$1"));let a="",l="",c="";const u=Gf(t,!0),d=Gf(t,!1),f=new Set;for(const p of n){const h=p.format[0],m=p.tag;Vs(t,h)&&!f.has(h)&&(f.add(h),Vs(u,h)&&o.find(g=>g.tag===m)||(o.push({format:h,tag:m}),a+=m))}for(let p=0;p<o.length;p++){const h=Vs(t,o[p].format),m=Vs(d,o[p].format);if(h&&m)continue;const g=[...o];for(;g.length>p;){const y=g.pop();r&&y&&r.find(_=>_.tag===y.tag)||(y&&typeof y.tag=="string"&&(h?m||(c+=y.tag):l+=y.tag),o.pop())}break}return s=a+s+c,l+s}function Gf(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(F(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(!F(n))return null}return null}function Vs(t,e){return X(t)&&t.hasFormat(e)}function
|
|
45
|
-
`),l=a.length,c=s||Ie();c.clear();for(let d=0;d<l;d++){const f=a[d],[p,h]=
|
|
46
|
-
`)},
|
|
43
|
+
|(?![\\s\\S])))+`,"m"),alias:r,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 fue=new Set(["http:","https:","mailto:","sms:","tel:"]);class Kr extends Lt{constructor(n="",o={},r){super(r);z(this,"__url");z(this,"__target");z(this,"__rel");z(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 Kr(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),Vn(o,n.theme.link),o}updateLinkDOM(n,o,r){if(Sm(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,r){return this.updateLinkDOM(n,o,r),!1}static importDOM(){return{a:n=>({conversion:pue,priority:1})}}static importJSON(n){return ya().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=Wf(n);try{const o=new URL(Wf(n));if(!fue.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 r=ya(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,o),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,o,r){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 pue(t){let e=null;if(Sm(t)){const n=t.textContent;(n!==null&&n!==""||t.children.length>0)&&(e=ya(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function ya(t="",e){return sn(new Kr(t,e))}function hue(t){return t instanceof Kr}class ol extends Kr{constructor(n="",o={},r){super(n,o,r);z(this,"__isUnlinked");this.__isUnlinked=o.isUnlinked!==void 0&&o.isUnlinked!==null&&o.isUnlinked}static getType(){return"autolink"}static clone(n){return new ol(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,r){return super.updateDOM(n,o,r)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return jf().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 r=this.getParentOrThrow().insertNewAfter(n,o);if(F(r)){const s=jf(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return r.append(s),s}return null}}function jf(t="",e){return sn(new ol(t,e))}function mue(t){return t instanceof ol}const gue=/^\+?[0-9\s()-]{5,}$/;function Wf(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:gue.test(t)?`tel:${t}`:`https://${t}`}function vue(t,e){const n={};for(const o of t){const r=e(o);r&&(n[r]?n[r].push(o):n[r]=[o])}return n}function rg(t){const e=vue(t,n=>n.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const Zf=/[!-/:-@[-`{-~\s]/,yue=/^\s{0,3}$/;function Lc(t){if(!cs(t))return!1;const e=t.getFirstChild();return e==null||t.getChildrenSize()===1&&X(e)&&yue.test(e.getTextContent())}function _ue(t,e,n,o){for(const r of e){if(!r.export)continue;const s=r.export(t,a=>_a(a,n,o));if(s!=null)return s}return F(t)?_a(t,n,o):Ce(t)?t.getTextContent():null}function _a(t,e,n,o,r){const s=[],a=t.getChildren();o||(o=[]),r||(r=[]);e:for(const l of a){for(const c of n){if(!c.export)continue;const u=c.export(l,d=>_a(d,e,n,o,[...r,...o]),(d,f)=>Kf(d,f,e,o,r));if(u!=null){s.push(u);continue e}}Po(l)?s.push(`
|
|
44
|
+
`):X(l)?s.push(Kf(l,l.getTextContent(),e,o,r)):F(l)?s.push(_a(l,e,n,o,r)):Ce(l)&&s.push(l.getTextContent())}return s.join("")}function Kf(t,e,n,o,r){let s=t.getFormat()===0?e:function(p){return p.replace(/^\s+|\s+$/g,h=>[...h].map(m=>"&#"+m.codePointAt(0)+";").join(""))}(e);t.hasFormat("code")||(s=s.replace(/([*_`~\\])/g,"\\$1"));let a="",l="",c="";const u=Gf(t,!0),d=Gf(t,!1),f=new Set;for(const p of n){const h=p.format[0],m=p.tag;Vs(t,h)&&!f.has(h)&&(f.add(h),Vs(u,h)&&o.find(g=>g.tag===m)||(o.push({format:h,tag:m}),a+=m))}for(let p=0;p<o.length;p++){const h=Vs(t,o[p].format),m=Vs(d,o[p].format);if(h&&m)continue;const g=[...o];for(;g.length>p;){const y=g.pop();r&&y&&r.find(_=>_.tag===y.tag)||(y&&typeof y.tag=="string"&&(h?m||(c+=y.tag):l+=y.tag),o.pop())}break}return s=a+s+c,l+s}function Gf(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(F(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(!F(n))return null}return null}function Vs(t,e){return X(t)&&t.hasFormat(e)}function Cue(t,e){const n=function(r,s){const a=r.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=r.match(u),f=s.transformersByTag[c];if(d!=null&&f!=null){if(f.intraword!==!1)return d;const{index:p=0}=d,h=r[p-1],m=r[p+d[0].length];if((!h||Zf.test(h))&&(!m||Zf.test(m)))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 mr(t){return X(t)&&!t.hasFormat("code")}function Do(t,e,n){let o=Cue(t,e),r=function(a,l){const c=a;let u,d,f,p;for(const h of l){if(!h.replace||!h.importRegExp)continue;const m=c.getTextContent().match(h.importRegExp);if(!m)continue;const g=m.index||0,y=h.getEndIndex?h.getEndIndex(c,m):g+m[0].length;y!==!1&&(u===void 0||d===void 0||g<u&&(y>d||y<=u))&&(u=g,d=y,f=h,p=m)}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&&r&&(o.startIndex<=r.startIndex&&o.endIndex>=r.endIndex||r.startIndex>o.endIndex?r=null:o=null),o){const a=function(l,c,u,d,f){const p=l.getTextContent();let h,m,g;if(f[0]===p?h=l:c===0?[h,m]=l.splitText(u):[g,h,m]=l.splitText(c,u),h.setTextContent(f[2]),d)for(const y of d.format)h.hasFormat(y)||h.toggleFormat(y);return{nodeAfter:m,nodeBefore:g,transformedNode:h}}(t,o.startIndex,o.endIndex,o.transformer,o.match);mr(a.nodeAfter)&&Do(a.nodeAfter,e,n),mr(a.nodeBefore)&&Do(a.nodeBefore,e,n),mr(a.transformedNode)&&Do(a.transformedNode,e,n)}else if(r){const a=function(l,c,u,d,f){let p,h,m;return c===0?[p,h]=l.splitText(u):[m,p,h]=l.splitText(c,u),d.replace?{nodeAfter:h,nodeBefore:m,transformedNode:d.replace(p,f)||void 0}:null}(t,r.startIndex,r.endIndex,r.transformer,r.match);if(!a)return;mr(a.nodeAfter)&&Do(a.nodeAfter,e,n),mr(a.nodeBefore)&&Do(a.nodeBefore,e,n),mr(a.transformedNode)&&Do(a.transformedNode,e,n)}const s=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(a,l)=>String.fromCodePoint(l));t.setTextContent(s)}function bue(t,e=!1){const n=rg(t),o=function(r){const s={},a={},l=[],c="(?<![\\\\])";for(const u of r){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(r,s)=>{const a=r.split(`
|
|
45
|
+
`),l=a.length,c=s||Ie();c.clear();for(let d=0;d<l;d++){const f=a[d],[p,h]=kue(a,d,n.multilineElement,c);p?d=h:wue(f,c,n.element,o,n.textMatch,e)}const u=c.getChildren();for(const d of u)!e&&Lc(d)&&c.getChildrenSize()>1&&d.remove();re()!==null&&c.selectStart()}}function kue(t,e,n,o){for(const r of n){const{handleImportAfterStartMatch:s,regExpEnd:a,regExpStart:l,replace:c}=r,u=t[e].match(l);if(!u)continue;if(s){const m=s({lines:t,rootNode:o,startLineIndex:e,startMatch:u,transformer:r});if(m===null)continue;if(m)return m}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 h=t.length;for(;p<h;){const m=d?t[p].match(d):null;if(!m&&(!f||f&&p<h-1)){p++;continue}if(m&&e===p&&m.index===u.index){p++;continue}const g=[];if(m&&e===p)g.push(t[e].slice(u[0].length,-m[0].length));else for(let y=e;y<=p;y++)if(y===e){const _=t[y].slice(u[0].length);g.push(_)}else if(y===p&&m){const _=t[y].slice(0,-m[0].length);g.push(_)}else g.push(t[y]);if(c(o,null,u,m,g,!0)!==!1)return[!0,p];break}}return[!1,e]}function wue(t,e,n,o,r,s){const a=Oe(t),l=Le();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(Do(a,o,r),l.isAttached()&&t.length>0){const c=l.getPreviousSibling();if(!s&&(cs(c)||Oc(c)||ue(c))){let u=c;if(ue(c)){const d=c.getLastDescendant();u=d==null?null:Ln(d,be)}u!=null&&u.getTextContentSize()>0&&(u.splice(u.getChildrenSize(),0,[en(),...l.getChildren()]),l.remove())}}}const ig=/^(\s*)(\d{1,})\.\s/,sg=/^(\s*)[-*+]\s/,Eue=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,Ic=/^(#{1,6})\s/,ag=/^>\s/,lg=/^[ \t]*```([\w-]+)?/,Pc=/[ \t]*```$/,xue=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,Sue=/^(?:\|)(.+)(?:\|)\s?$/,Tue=/^(\| ?:?-*:? ?)+\|\s?$/,Yf=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,Jf=/^<\/[a-z_][\w-]*\s*>/i,Xf=t=>new RegExp(`(?:${t.source})$`,t.flags),wi=lle("mdListMarker",{parse:t=>typeof t=="string"&&/^[-*+]$/.test(t)?t:"-"}),cg=t=>(e,n,o,r)=>{const s=t(o);s.append(...n),e.replace(s),r||s.select(0,0)},ug=t=>(e,n,o,r)=>{const s=e.getPreviousSibling(),a=e.getNextSibling(),l=It(t==="check"?o[3]==="x":void 0),c=o[0].trim()[0],u=t!=="bullet"&&t!=="check"||c!==wi.parse(c)?void 0:c;if(ue(a)&&a.getListType()===t){u&&Il(a,wi,u);const f=a.getFirstChild();f!==null?f.insertBefore(l):a.append(l),e.remove()}else if(ue(s)&&s.getListType()===t)u&&Il(s,wi,u),s.append(l),e.remove();else{const f=yt(t,t==="number"?Number(o[2]):void 0);u&&Il(f,wi,u),f.append(l),e.replace(f)}l.append(...n),r||l.select(0,0);const d=function(f){const p=f.match(/\t/g),h=f.match(/ /g);let m=0;return p&&(m+=p.length),h&&(m+=Math.floor(h.length/4)),m}(o[1]);d&&l.setIndent(d)},qu=(t,e,n)=>{const o=[],r=t.getChildren();let s=0;for(const a of r)if(be(a)){if(a.getChildrenSize()===1){const f=a.getFirstChild();if(ue(f)){o.push(qu(f,e,n+1));continue}}const l=" ".repeat(4*n),c=t.getListType(),u=kh(t,wi),d=c==="number"?`${t.getStart()+s}. `:c==="check"?`${u} [${a.getChecked()?"x":" "}] `:u+" ";o.push(l+d+e(a)),s++}return o.join(`
|
|
46
|
+
`)},Aue={dependencies:[zu],export:(t,e)=>{if(!iue(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:Ic,replace:cg(t=>{const e="h"+t[1].length;return Cr(e)}),type:"element"},Nue={dependencies:[Ru],export:(t,e)=>{if(!Oc(t))return null;const n=e(t).split(`
|
|
47
47
|
`),o=[];for(const r of n)o.push("> "+r);return o.join(`
|
|
48
|
-
`)},regExp:ag,replace:(t,e,n,o)=>{if(o){const s=t.getPreviousSibling();if(Oc(s))return s.splice(s.getChildrenSize(),0,[en(),...e]),void t.remove()}const r=Vu();r.append(...e),t.replace(r),o||r.select(0,0)},type:"element"},
|
|
48
|
+
`)},regExp:ag,replace:(t,e,n,o)=>{if(o){const s=t.getPreviousSibling();if(Oc(s))return s.splice(s.getChildrenSize(),0,[en(),...e]),void t.remove()}const r=Vu();r.append(...e),t.replace(r),o||r.select(0,0)},type:"element"},Due={dependencies:[Uu],export:t=>{if(!tg(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
|
|
49
49
|
`+e:"")+"\n```"},regExpEnd:{optional:!0,regExp:Pc},regExpStart:lg,replace:(t,e,n,o,r,s)=>{let a,l;if(!e&&r){if(r.length===1)o?(a=Bn(),l=n[1]+r[0]):(a=Bn(n[1]),l=r[0].startsWith(" ")?r[0].slice(1):r[0]);else{if(a=Bn(n[1]),r[0].trim().length===0)for(;r.length>0&&!r[0].length;)r.shift();else r[0]=r[0].startsWith(" ")?r[0].slice(1):r[0];for(;r.length>0&&!r[r.length-1].length;)r.pop();l=r.join(`
|
|
50
|
-
`)}const c=Oe(l);a.append(c),t.append(a)}else e&&cg(c=>Bn(c?c[1]:void 0))(t,e,n,s)},type:"multiline-element"},dg={dependencies:[tr,_o],export:(t,e)=>ue(t)?qu(t,e,0):null,regExp:sg,replace:ug("bullet"),type:"element"},fg={dependencies:[tr,_o],export:(t,e)=>ue(t)?qu(t,e,0):null,regExp:ig,replace:ug("number"),type:"element"},
|
|
51
|
-
`);let u=!1;const d=[];for(let f=0;f<c.length;f++){const p=c[f].trimEnd(),h=d[d.length-1];
|
|
52
|
-
`)}(t,r);return
|
|
50
|
+
`)}const c=Oe(l);a.append(c),t.append(a)}else e&&cg(c=>Bn(c?c[1]:void 0))(t,e,n,s)},type:"multiline-element"},dg={dependencies:[tr,_o],export:(t,e)=>ue(t)?qu(t,e,0):null,regExp:sg,replace:ug("bullet"),type:"element"},fg={dependencies:[tr,_o],export:(t,e)=>ue(t)?qu(t,e,0):null,regExp:ig,replace:ug("number"),type:"element"},Mue={format:["code"],tag:"`",type:"text-format"},Bue={format:["highlight"],tag:"==",type:"text-format"},pg={format:["bold","italic"],tag:"***",type:"text-format"},hg={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},mg={format:["bold"],tag:"**",type:"text-format"},gg={format:["bold"],intraword:!1,tag:"__",type:"text-format"},vg={format:["strikethrough"],tag:"~~",type:"text-format"},yg={format:["italic"],tag:"*",type:"text-format"},_g={format:["italic"],intraword:!1,tag:"_",type:"text-format"},$ue={dependencies:[Kr],export:(t,e,n)=>{if(!hue(t)||mue(t))return null;const o=t.getTitle(),r=e(t);return o?`[${r}](${t.getURL()} "${o}")`:`[${r}](${t.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{const[,n,o,r]=e,s=ya(o,{title:r}),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=Oe(c);return d.setFormat(t.getFormat()),s.append(d),t.replace(s),u&&s.insertBefore(Oe(u)),d},trigger:")",type:"text-match"},Oue=[Aue,Nue,dg,fg],Lue=[Due],Iue=[Mue,pg,hg,mg,gg,Bue,yg,_g,vg],Pue=[$ue],Cg=[...Oue,...Lue,...Iue,...Pue];function Fue(t,e=Cg,n,o=!1,r=!1){const s=o?t:function(a,l=!1){const c=a.split(`
|
|
51
|
+
`);let u=!1;const d=[];for(let f=0;f<c.length;f++){const p=c[f].trimEnd(),h=d[d.length-1];xue.test(p)?d.push(p):lg.test(p)||Pc.test(p)?(u=!u,d.push(p)):u||p===""||h===""||!h||Ic.test(h)||Ic.test(p)||ag.test(p)||ig.test(p)||sg.test(p)||Eue.test(p)||Sue.test(p)||Tue.test(p)||!l||Yf.test(p)||Jf.test(p)||Xf(Jf).test(h)||Xf(Yf).test(h)||Pc.test(h)?d.push(p):d[d.length-1]=h+" "+p.trimStart()}return d.join(`
|
|
52
|
+
`)}(t,r);return bue(e,o)(s,n)}function Rue(t=Cg,e,n=!1){return function(r,s=!1){const a=rg(r),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||Ie()).getChildren();for(let h=0;h<p.length;h++){const m=p[h],g=_ue(m,l,u,a.textMatch);g!=null&&f.push(c&&h>0&&!Lc(m)&&!Lc(p[h-1])?`
|
|
53
53
|
`.concat(g):g)}return f.join(`
|
|
54
|
-
`)}}(t,n)(e)}var Vue=process.env.NODE_ENV==="production",Jl="Invariant failed";function zue(t,e){if(!t){if(Vue)throw new Error(Jl);var n=typeof e=="function"?e():e,o=n?"".concat(Jl,": ").concat(n):Jl;throw new Error(o)}}const vg=Symbol("LexicalEditor"),Uue=(()=>{const t=i.defineComponent({name:"LexicalComposer",props:{initialConfig:{required:!0}},emits:["error"],setup(e,n){let{emit:o,expose:r}=n;const s=o;r();const a=e,l={tag:Ai},{theme:c,namespace:u,nodes:d,onError:f,editorState:p,html:h}=a.initialConfig,m=Zle({editable:a.initialConfig.editable,html:h,namespace:u,nodes:d,theme:c,onError(y){s("error",y,m),f==null||f(y,m)}});g(m,p);function g(y,_){if(_!==null){if(_===void 0)y.update(()=>{const C=Ie();if(C.isEmpty()){const v=Le();C.append(v);const w=wce?document.activeElement:null;(re()!==null||w!==null&&w===y.getRootElement())&&v.select()}},l);else if(_!==null)switch(typeof _){case"string":{const C=y.parseEditorState(_);y.setEditorState(C,l);break}case"object":y.setEditorState(_,l);break;case"function":y.update(()=>{Ie().isEmpty()&&_(y)},l);break}}}return i.provide(vg,m),i.onMounted(()=>{const y=a.initialConfig.editable;m.setEditable(y!==void 0?y:!0)}),(y,_)=>i.renderSlot(y.$slots,"default")}});return t.__vue_vine=!0,t})();function Gr(){const t=i.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,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)o=s[r],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),r,s;for(s=0;s<o.length;s++)r=o[s],e.indexOf(r)>=0||(n[r]=t[r]);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=i.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:r}=o;r();const s=n,a=i.useTemplateRef("root"),l=i.ref(s.editor.isEditable()),c=i.computed(()=>que(s,["editor"]));i.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});i.onUnmounted(f)});const u=i.computed(()=>{var d;return(d=s.role)!=null?d:"textbox"});return(d,f)=>(i.openBlock(),i.createElementBlock("div",i.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 Ie().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=Ie().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const r=e[o];if(Ce(r))return!1;if(F(r)){if(!cs(r)||r.__indent!==0)return!1;const s=r.getChildren(),a=s.length;for(let l=0;l<a;l++){const c=s[o];if(!X(c))return!1}}}return!0}function yg(t){return()=>Kue(t)}function Gue(t){return t.getEditorState().read(yg(t.isComposing()))}function _g(t){const e=t.getEditorState().read(yg(t.isComposing())),n=i.ref(e);function o(){const r=Gue(t);n.value=r}return i.onMounted(()=>{const r=fs(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));i.onUnmounted(()=>{r()})}),i.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(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){Yue(t,r,n[r])})}return t}function Xue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).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=i.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:r}=o;r();const s=Gr(),a=i.ref(!1),l=_g(s);return i.onMounted(()=>{a.value=s.isEditable();const c=s.registerEditableListener(u=>{a.value=u});i.onUnmounted(c)}),(c,u)=>{var d,f;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(jue),i.mergeProps({editor:i.unref(s)},Que(Jue({},c.$props),{role:(d=c.role)!=null?d:"textbox",spellcheck:(f=c.spellcheck)!=null?f:!0})),null,16,["editor"]),i.unref(l)?(i.openBlock(),i.createElementBlock("div",t,[i.renderSlot(c.$slots,"placeholder")])):i.createCommentVNode("",!0)],64)}}});return e.__vue_vine=!0,e})();function tde(t,e,n,o,r){if(t===null||n.size===0&&o.size===0&&!r)return 0;const s=e._selection,a=t._selection;if(r)return 1;if(!(Z(s)&&Z(a)&&a.isCollapsed()&&s.isCollapsed()))return 0;const l=function(_,C,v){const w=_._nodeMap,k=[];for(const b of C){const E=w.get(b);E!==void 0&&k.push(E)}for(const[b,E]of v){if(!E)continue;const S=w.get(b);S===void 0||Re(S)||k.push(S)}return k}(e,n,o);if(l.length===0)return 0;if(l.length>1){const _=e._nodeMap,C=_.get(s.anchor.key),v=_.get(a.anchor.key);return C&&v&&!t._nodeMap.has(C.__key)&&X(C)&&C.__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,h=a.anchor;if(p.key!==h.key||p.type!=="text")return 0;const m=p.offset,g=h.offset,y=f.length-d.length;return y===1&&g===m-1?2:y===-1&&g===m+1?3:y===-1&&g===m?4:0}function nde(t,e){let n=Date.now(),o=0;return(r,s,a,l,c,u)=>{const d=Date.now();if(u.has(kc))return o=0,n=d,2;const f=tde(r,s,l,c,t.isComposing()),p=(()=>{const h=a===null||a.editor===t,m=u.has(xle);if(!m&&h&&u.has(Ai))return 0;if(r===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 m===!1&&f!==0&&f===o&&d<n+y&&h||l.size===1&&function(_,C,v){const w=C._nodeMap.get(_),k=v._nodeMap.get(_),b=C._selection,E=v._selection;return!(Z(b)&&Z(E)&&b.anchor.type==="element"&&b.focus.type==="element"&&E.anchor.type==="text"&&E.focus.type==="text"||!X(w)||!X(k)||w.__parent!==k.__parent)&&JSON.stringify(C.read(()=>w.exportJSON()))===JSON.stringify(v.read(()=>k.exportJSON()))}(Array.from(l)[0],r,s)?0:1})();return n=d,o=f,p}}function Qf(t){t.undoStack=[],t.redoStack=[],t.current=null}function ode(t,e,n){const o=nde(t,n);return fs(t.registerCommand(fu,()=>(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(Ms,!0)),c.length===0&&s.dispatchCommand(Bs,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:kc})}}(t,e),!0),ye),t.registerCommand(pu,()=>(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(Bs,!0));const d=l.pop();l.length===0&&s.dispatchCommand(Ms,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:kc})}}(t,e),!0),ye),t.registerCommand(_le,()=>(Qf(e),!1),ye),t.registerCommand(Cle,()=>(Qf(e),t.dispatchCommand(Ms,!1),t.dispatchCommand(Bs,!1),!0),ye),t.registerUpdateListener(({editorState:s,prevEditorState:a,dirtyLeaves:l,dirtyElements:c,tags:u})=>{const d=e.current,f=e.redoStack,p=e.undoStack,h=d===null?null:d.editorState;if(d!==null&&s===h)return;const m=o(a,s,d,l,c,u);if(m===1)f.length!==0&&(e.redoStack=[],t.dispatchCommand(Ms,!1)),d!==null&&(p.push({...d}),t.dispatchCommand(Bs,!0));else if(m===2)return;e.current={editor:t,editorState:s}}))}function rde(){return{current:null,redoStack:[],undoStack:[]}}function ide(t,e,n){const o=i.computed(()=>i.toValue(e)||rde());i.watchEffect(r=>{const s=ode(i.toValue(t),o.value,i.toValue(n)||1e3);r(s)})}const sde=(()=>{const t=i.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return ide(s,()=>r.externalHistoryState,()=>r.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function ade(t){i.onMounted(()=>{const e=Ice(t);i.onUnmounted(()=>{e()})})}const lde=(()=>{const t=i.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return i.watchEffect(a=>{if(!s.hasNodes([tr,_o]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!r.hasStrictIndent)return;const l=Pce(s);a(l)}),ade(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function cde(t){const e=i.shallowRef(t.getDecorators());return i.onMounted(()=>{const n=t.registerDecoratorListener(o=>{e.value=o});i.onUnmounted(()=>{n()})}),i.computed(()=>{const n=[],o=Object.keys(i.unref(e));for(let r=0;r<o.length;r++){const s=o[r],a=e.value[s],l=t.getElementByKey(s);l!==null&&n.push(i.h(i.Teleport,{to:l},a))}return n})}const ude=i.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=Gr(),e=cde(t);return()=>e.value}});function dde(t){i.onMounted(()=>{const e=fs(nue(t),Zce(t));i.onUnmounted(e)})}const fde=(()=>{const t=i.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const r=Gr(),s=_g(r);return dde(r),(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(s)?i.renderSlot(a.$slots,"placeholder",{key:0}):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"contentEditable"),i.createVNode(i.unref(ude))],64))}});return t.__vue_vine=!0,t})(),pde={class:"ao-rich-text-editor"},hde={class:"ao-rich-text-editor__toolbar"},mde={class:"ao-rich-text-editor__editor"},gde={class:"ao-rich-text-editor__placeholder"},vde={class:"ao-rich-text-editor__actions"},yde=i.defineComponent({__name:"AoRichTextEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter description..."}},emits:["save","cancel"],setup(t,{emit:e}){const n=[dg,fg,pg,mg,hg],o=t,r=e,s=i.shallowRef(null),a={namespace:"AoRichTextEditor",nodes:[tr,_o],theme:{paragraph:"ao-rich-text-editor__paragraph",text:{bold:"ao-rich-text-editor__text-bold",italic:"ao-rich-text-editor__text-italic",strikethrough:"ao-rich-text-editor__text-strikethrough"},list:{ul:"ao-rich-text-editor__list-ul",ol:"ao-rich-text-editor__list-ol",listitem:"ao-rich-text-editor__list-item"}},editorState:()=>{Fue(o.initialMarkdown||"",n)},onError(y){console.error("Lexical error:",y)}},l=i.defineComponent({name:"AoRichTextEditorBridge",emits:{ready:y=>!0},setup(y,{emit:_}){const C=Gr();return i.onMounted(()=>{_("ready",C)}),()=>null}});function c(y){s.value=y}function u(){var y;(y=s.value)==null||y.dispatchCommand(Yt,"bold")}function d(){var y;(y=s.value)==null||y.dispatchCommand(Yt,"italic")}function f(){var y;(y=s.value)==null||y.dispatchCommand(Yt,"strikethrough")}function p(){var y;(y=s.value)==null||y.dispatchCommand(Hm,void 0)}function h(){var y;(y=s.value)==null||y.dispatchCommand(jm,void 0)}function m(){const y=s.value;if(!y)return;const _=y.getEditorState().read(()=>Rue(n));r("save",_.trim())}function g(){r("cancel")}return(y,_)=>(i.openBlock(),i.createElementBlock("div",pde,[i.createVNode(i.unref(Uue),{"initial-config":a},{default:i.withCtx(()=>[i.createElementVNode("div",hde,[i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bold",onMousedown:_[0]||(_[0]=i.withModifiers(()=>{},["prevent"])),onClick:u},[..._[5]||(_[5]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Italic",onMousedown:_[1]||(_[1]=i.withModifiers(()=>{},["prevent"])),onClick:d},[..._[6]||(_[6]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Strikethrough",onMousedown:_[2]||(_[2]=i.withModifiers(()=>{},["prevent"])),onClick:f},[..._[7]||(_[7]=[i.createElementVNode("s",null,"S",-1)])],32),_[8]||(_[8]=i.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bullet list",onMousedown:_[3]||(_[3]=i.withModifiers(()=>{},["prevent"])),onClick:p}," • ",32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Numbered list",onMousedown:_[4]||(_[4]=i.withModifiers(()=>{},["prevent"])),onClick:h}," 1. ",32)]),i.createElementVNode("div",mde,[i.createVNode(i.unref(fde),null,{contentEditable:i.withCtx(()=>[i.createVNode(i.unref(ede),{class:"ao-rich-text-editor__content"},{placeholder:i.withCtx(()=>[i.createElementVNode("div",gde,i.toDisplayString(t.placeholder),1)]),_:1})]),_:1})]),i.createVNode(i.unref(sde)),i.createVNode(i.unref(lde)),i.createVNode(i.unref(l),{onReady:c})]),_:1}),i.createElementVNode("div",vde,[i.createVNode(he,{variant:"ghost",color:"neutral",label:"Cancel",onClick:g}),i.createVNode(he,{variant:"solid",color:"primary",label:"Save",onClick:m})])]))}});const _de={class:"ao-activity-details"},Cde={class:"ao-activity-details__main"},bde={class:"ao-activity-details__header"},kde={key:1,class:"ao-activity__category"},wde={class:"ao-feed__activity-details__header"},Ede={key:0,class:"ao-field ao-feed__activity-details__project"},xde={class:"ao-field__label"},Sde={key:1,class:"ao-field ao-feed__activity-details__project"},Tde={class:"ao-field__label"},Ade={class:"ao-activity-details__content"},Nde={class:"ao-activity-details__tab-content"},Dde={class:"ao-fieldset"},Mde={class:"ao-field__row"},Bde={class:"ao-activity-details__tab-content"},$de={class:"ao-fieldset"},Ode={class:"ao-fieldset__body"},Lde={class:"ao-activity-details__tab-content"},Ide={key:0,class:"ao-fieldset"},Pde={class:"ao-activity-details__aside"},Fde={class:"ao-activity-details__close-button"},Rde={key:0,class:"ao-activity-details__aside-section"},Vde={class:"ao-field"},zde={class:"ao-field__label"},Ude={class:"ao-activity-details__aside-section"},qde={class:"ao-field ao-field--multiselect"},Hde={class:"assignee-inline"},jde={class:"ao-field__label"},Wde={class:"ao-activity-details__aside-section"},Zde={key:0,class:"ao-field__row"},Kde={class:"ao-field"},Gde={class:"ao-field__label"},Yde=["readonly"],Jde={class:"ao-activity-details__aside-section"},Xde={class:"ao-field__row"},Qde={class:"ao-field ao-field--inline"},e1e={class:"ao-field__label"},t1e=["readonly"],n1e={class:"ao-field__row"},o1e={class:"ao-field ao-field--inline"},r1e={class:"ao-field__label"},i1e={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},s1e={class:"ao-activity-details__aside-section"},a1e={class:"ao-fieldset ao-activity-details__aside-section"},l1e={class:"ao-fieldset__title"},c1e={class:"ao-fieldset__body"},u1e={class:"ao-field__row"},d1e={class:"ao-field ao-field--multiselect"},f1e={class:"ao-field__label"},p1e={class:"ao-field__row"},h1e={class:"ao-field ao-field--multiselect"},m1e={class:"ao-field__label"},Hu=i.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{},breadcrumbs:{},milestoneId:{},templateActivities:{},templateMilestones:{},isTemplate:{type:Boolean},users:{},userId:{},isTaskCheckable:{},statuses:{},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast"],setup(t,{emit:e}){const n=t,o=e,{t:r}=qn(),s=i.ref("description"),a=i.computed(()=>{var B,G;return[{label:r("activity.description.label")||"Description",value:"description"},{label:r("activity.tasks.title")||"Checklist",value:"checklist",count:((B=n.activity.tasks)==null?void 0:B.length)??0},{label:r("activity.comments.title")||"Commentaires",value:"comments",count:((G=n.activity.comments)==null?void 0:G.length)??0}]}),l=i.computed(()=>{var B;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((B=n.activity.assignee)==null?void 0:B.id):!1}),c=i.ref(!1),u=B=>{o("update:activity",{id:n.activity.id,name:B})},d=i.computed(()=>n.activity.description??""),f=()=>{l.value&&(c.value=!0)},p=B=>{o("update:activity",{id:n.activity.id,description:B}),c.value=!1},h=()=>{c.value=!1};i.watch(()=>n.activity.id,()=>{c.value=!1});const m=i.computed({get(){return n.activity.estimation??0},set(B){o("update:activity",{id:n.activity.id,estimation:B})}}),g=i.computed({get(){var G;const B=(G=n.timeTrackingData)==null?void 0:G[n.activity.id];return(B==null?void 0:B.timeSpent)??0},set(){}}),y=i.computed(()=>{var G;return((G=n.activity.project)==null?void 0:G.estimationUnit)==="days"?"d":"h"}),_=i.computed(()=>{var G;const B=(G=n.activity.project)==null?void 0:G.estimationUnit;return Sa(g.value,B)}),C=i.computed({get(){return n.activity.important??!1},set(B){o("update:activity",{id:n.activity.id,important:B})}});i.computed({get(){return n.activity.private??!1},set(B){o("update:activity",{id:n.activity.id,private:B})}});const v=i.computed({get(){return n.activity.deadline},set(B){o("update:activity",{id:n.activity.id,deadline:B})}});i.computed(()=>{var B;return(B=n.activityTypes)==null?void 0:B.map(G=>({label:G.name,value:G.id}))}),i.computed({get(){var B;return(B=n.activity.type)==null?void 0:B.id},set(B){o("update:activity",{id:n.activity.id,typeId:B})}});const w=i.computed(()=>n.templateActivities.filter(B=>B.id!==n.activity.id).map(B=>({label:B.name,value:B.id}))),k=i.computed({get(){var B;return(B=n.activity.dependingOn)==null?void 0:B.map(G=>G.id)},set(B){B&&o("update:activity",{id:n.activity.id,dependingOn:B})}}),b=i.computed(()=>w.value.map(B=>{var G;return{...B,disabled:(G=n.activity.blocking)==null?void 0:G.some(ge=>ge.id===B.value)}})),E=i.computed({get(){var B;return(B=n.activity.blocking)==null?void 0:B.map(G=>G.id)},set(B){B&&o("update:activity",{id:n.activity.id,blocking:B})}}),S=i.computed(()=>w.value.map(B=>{var G;return{...B,disabled:(G=n.activity.dependingOn)==null?void 0:G.some(ge=>ge.id===B.value)}})),T=B=>{o("addSubtask",B)},A=B=>{o("updateSubtask",B)},V=B=>{o("deleteSubtask",B)};function I(){n.userId?H.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function U(B){H.value=[B]}const $=i.computed(()=>{var G;const B=new Map;return(G=n.users)==null||G.forEach(ge=>{B.has(ge.id)||B.set(ge.id,ge)}),Array.from(B.values()).map(ge=>({label:`${ge.firstName} ${ge.lastName}`,value:ge.id,avatar:ge.avatarUrl}))}),H=i.computed({get(){var B,G;return(B=n.activity.assignee)!=null&&B.id?[(G=n.activity.assignee)==null?void 0:G.id]:[]},set(B){o("update:activity",{id:n.activity.id,assigneeId:B[0]??null})}}),L=B=>{o("addFiles",{activityId:n.activity.id,files:B})},ee=B=>{o("removeFile",{activityId:n.activity.id,file:B})},O=i.computed(()=>n.projects.map(B=>({value:B.id,label:B.name}))),D=i.computed(()=>{var G,ge,qe;const B=(qe=(ge=(G=n.activity)==null?void 0:G.project)==null?void 0:ge.phases)==null?void 0:qe.reduce((de,_e)=>[...de,..._e.milestones],[]);return B==null?void 0:B.map(de=>({value:de.id,label:de.name}))}),K=B=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:B})},P=B=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:B})},q=i.computed(()=>{var B;return(B=n.statuses)==null?void 0:B.map(G=>({value:G.id,label:G.name}))}),ce=B=>{o("update:activity",{id:n.activity.id,statusId:B})},Q=B=>{o("addComment",{...B,activityId:n.activity.id})},ie=B=>{o("updateComment",B)},R=B=>{o("removeComment",B)};i.computed(()=>{var B,G;return((B=n.activity.createdBy)==null?void 0:B.firstName)&&((G=n.activity.createdBy)==null?void 0:G.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`});function te(){const B=window.location.origin,G=n.activity.slug,ge=`${B}/activity-feed/slug/${G}`;navigator.clipboard.writeText(ge).then(()=>{console.log(`Link copied to clipboard: ${ge}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return(B,G)=>(i.openBlock(),i.createBlock(Aa,{onClose:G[8]||(G[8]=ge=>B.$emit("close"))},{default:i.withCtx(()=>{var ge,qe,de;return[i.createElementVNode("div",_de,[i.createElementVNode("div",Cde,[i.createElementVNode("div",bde,[t.activity.slug?(i.openBlock(),i.createBlock(Bi,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:te},null,8,["label"])):i.createCommentVNode("",!0),t.breadcrumbs?(i.openBlock(),i.createElementBlock("div",kde,i.toDisplayString(t.breadcrumbs),1)):i.createCommentVNode("",!0),i.createVNode(st,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":u},null,8,["title","is-editable"]),i.createElementVNode("div",wde,[O.value?(i.openBlock(),i.createElementBlock("label",Ede,[i.createElementVNode("span",xde,i.toDisplayString(B.$t("activity.project.label")),1),i.createVNode(Nt,{options:O.value,value:(ge=t.activity.project)==null?void 0:ge.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:K},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0),D.value?(i.openBlock(),i.createElementBlock("label",Sde,[i.createElementVNode("span",Tde,i.toDisplayString(B.$t("activity.milestone.label")),1),i.createVNode(Nt,{options:D.value,value:(qe=t.activity.milestone)==null?void 0:qe.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:P},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0)]),i.renderSlot(B.$slots,"header")]),i.createElementVNode("div",Ade,[i.createVNode(ts,{modelValue:s.value,"onUpdate:modelValue":G[0]||(G[0]=_e=>s.value=_e),tabs:a.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),i.withDirectives(i.createElementVNode("div",Nde,[i.createElementVNode("fieldset",Dde,[i.createElementVNode("div",Mde,[i.createVNode(x9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&t.isTemplate!==!0&&!!t.userId,onAdd:L,onRemove:ee},{default:i.withCtx(()=>[c.value?(i.openBlock(),i.createBlock(yde,{key:1,"initial-markdown":d.value,onSave:p,onCancel:h},null,8,["initial-markdown"])):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":l.value}]),onClick:f},[i.createVNode(Iae,{content:d.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[i.vShow,s.value==="description"]]),i.withDirectives(i.createElementVNode("div",Bde,[i.createElementVNode("fieldset",$de,[i.createElementVNode("div",Ode,[i.createVNode(h9,{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:T,onUpdate:A,onDelete:V},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[i.vShow,s.value==="checklist"]]),i.withDirectives(i.createElementVNode("div",Lde,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",Ide,[i.createVNode(V9,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:Q,onUpdateComment:ie,onRemoveComment:R},null,8,["comments","users","user-id"])])):i.createCommentVNode("",!0)],512),[[i.vShow,s.value==="comments"]])])]),i.createElementVNode("div",Pde,[i.createElementVNode("div",Fde,[i.createVNode(Ae,{name:"CloseRounded",onClick:G[1]||(G[1]=_e=>B.$emit("close"))})]),q.value?(i.openBlock(),i.createElementBlock("div",Rde,[i.createElementVNode("label",Vde,[i.createElementVNode("span",zde,i.toDisplayString(B.$t("activity.status.label")),1),i.createVNode(Nt,{class:"ao-activity-details__multiselect",options:q.value,value:(de=t.activity.status)==null?void 0:de.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:ce},null,8,["options","value","disabled","caret"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",Ude,[i.createElementVNode("div",qde,[i.createElementVNode("div",Hde,[i.createElementVNode("span",jde,i.toDisplayString(B.$t("activity.assignee.label")),1),i.createVNode(he,{label:B.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:I},null,8,["label"])]),i.createVNode(Nt,{modelValue:H.value,"onUpdate:modelValue":G[2]||(G[2]=_e=>H.value=_e),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:$.value,"close-on-select":!0,searchable:!0,placeholder:B.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:U},{tag:i.withCtx(({option:_e,handleTagRemove:we})=>[i.createVNode(zn,{"user-name":_e.label,"avatar-url":_e.avatar,"is-closable":!0,onClose:ut=>we(_e,ut)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",Wde,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",Zde,[i.createElementVNode("label",Kde,[i.createElementVNode("span",Gde,i.toDisplayString(B.$t("activity.deadline.label")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":G[3]||(G[3]=_e=>v.value=_e),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,Yde),[[i.vModelText,v.value,void 0,{lazy:!0}]])])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Jde,[i.createElementVNode("div",Xde,[i.createElementVNode("label",Qde,[i.createElementVNode("span",e1e,i.toDisplayString(B.$t("activity.estimation.label"))+" ("+i.toDisplayString(y.value)+")",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":G[4]||(G[4]=_e=>m.value=_e),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,t1e),[[i.vModelText,m.value,void 0,{lazy:!0,number:!0}]])])]),i.createElementVNode("div",n1e,[i.createElementVNode("label",o1e,[i.createElementVNode("span",r1e,i.toDisplayString(B.$t("activity.timeSpent.label"))+" ("+i.toDisplayString(y.value)+")",1),i.createElementVNode("span",i1e,i.toDisplayString(_.value),1)])])]),i.createElementVNode("div",s1e,[i.createVNode(qp,{modelValue:C.value,"onUpdate:modelValue":G[5]||(G[5]=_e=>C.value=_e),modelModifiers:{lazy:!0},label:B.$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"])]),i.createElementVNode("fieldset",a1e,[i.createElementVNode("div",l1e,[i.createVNode(Ae,{name:"FlowsheetOutlineRounded"}),i.createVNode(st,{level:4,title:B.$t("activity.dependencies.title")},null,8,["title"])]),i.createElementVNode("div",c1e,[i.createElementVNode("div",u1e,[i.createElementVNode("label",d1e,[i.createElementVNode("span",f1e,i.toDisplayString(B.$t("activity.dependingOn.label")),1),i.createVNode(Nt,{modelValue:k.value,"onUpdate:modelValue":G[6]||(G[6]=_e=>k.value=_e),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:b.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),i.createElementVNode("div",p1e,[i.createElementVNode("label",h1e,[i.createElementVNode("span",m1e,i.toDisplayString(B.$t("activity.blocking.label")),1),i.createVNode(Nt,{modelValue:E.value,"onUpdate:modelValue":G[7]||(G[7]=_e=>E.value=_e),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:S.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),i.renderSlot(B.$slots,"default",{activity:t.activity})])])]}),_:3}))}});const g1e=i.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(t,{emit:e}){const n=t,o=e,r=i.toRef(n.rule.itemType||Be.ACTIVITIES),s=i.computed({get(){return r.value},set(C){r.value=C,o("update:rule",{...n.rule,itemType:C,subItemId:void 0})}}),a=i.computed(()=>Object.values(Be)),l=i.computed({get(){return n.rule.subItemId},set(C){o("update:rule",{...n.rule,subItemId:C,itemType:n.rule.itemType||s.value})}}),c=i.computed(()=>{var v;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(v={[Be.ACTIVITIES]:n.templateActivities,[Be.MILESTONES]:n.templateMilestones,[Be.PHASES]:n.templatePhases}[r.value])==null?void 0:v.map(w=>({value:w.id,label:w.name}))}),u=i.toRef(n.rule.comparator),d=i.computed({get(){return u.value},set(C){o("update:rule",{...n.rule,comparator:C})}}),f=i.computed(()=>Object.values(ip)),p=i.toRef(n.rule.trigger),h=i.computed({get(){return p.value},set(C){o("update:rule",{...n.rule,trigger:C})}}),m=i.computed(()=>Object.values(sp)),g=i.computed({get(){return n.rule.duration},set(C){o("update:rule",{...n.rule,duration:C})}}),y=i.computed({get(){return n.rule.durationUnit},set(C){o("update:rule",{...n.rule,durationUnit:C})}}),_=i.computed(()=>Object.values(ap));return(C,v)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:i.withCtx(()=>[i.createVNode(i.unref(eo),{modelValue:s.value,"onUpdate:modelValue":v[0]||(v[0]=w=>s.value=w),options:a.value},null,8,["modelValue","options"]),i.createVNode(i.unref(eo),{modelValue:l.value,"onUpdate:modelValue":v[1]||(v[1]=w=>l.value=w),options:c.value},null,8,["modelValue","options"]),i.createVNode(i.unref(eo),{modelValue:h.value,"onUpdate:modelValue":v[2]||(v[2]=w=>h.value=w),options:m.value},null,8,["modelValue","options"]),i.createVNode(i.unref(eo),{modelValue:d.value,"onUpdate:modelValue":v[3]||(v[3]=w=>d.value=w),options:f.value},null,8,["modelValue","options"]),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":v[4]||(v[4]=w=>g.value=w),type:"number",min:"0"},null,512),[[i.vModelText,g.value,void 0,{number:!0}]]),i.createVNode(i.unref(eo),{modelValue:y.value,"onUpdate:modelValue":v[5]||(v[5]=w=>y.value=w),options:_.value},null,8,["modelValue","options"]),i.createVNode(he,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:v[6]||(v[6]=w=>C.$emit("close"))})]),_:1}))}});const v1e={class:"ao-template-rules__body"},y1e={class:"ao-template-rules__list"},_1e=i.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(t,{emit:e}){const n=e,o=()=>{n("addRule")},r=s=>{n("removeRule",s)};return(s,a)=>(i.openBlock(),i.createBlock(Aa,null,{header:i.withCtx(()=>[i.createVNode(st,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("div",v1e,[i.createElementVNode("ul",y1e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rules,l=>(i.openBlock(),i.createBlock(g1e,{key:l.id,rule:l,"template-phases":t.templatePhases,"template-milestones":t.templateMilestones,"template-activities":t.templateActivities,class:"ao-template-rule",onClose:()=>r(l.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),i.createVNode(mo,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function Vo(t,e,n){const o=t.length,r=t.at(-1),s=r?rt.LexoRank.parse(r.rank).genNext():rt.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:s.format()}}const C1e={key:0,class:"ao-template-details"},b1e={class:"ao-template-details__body"},k1e={class:"ao-template-details__cols"},w1e={class:"ao-template-details__col"},E1e={class:"ao-list__footer"},x1e={class:"ao-template-details__col"},S1e={class:"ao-template-details__col"},Cg=i.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}=qn(),o=t,r=e,s=i.computed(()=>{var O;return(O=o.templates)==null?void 0:O.find(D=>D.id===o.templateId)}),a=i.ref(!1);i.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),i.watch(()=>{var O;return(O=s.value)==null?void 0:O.phases},(O,D)=>{a.value&&On(O,D)});const l=i.computed(()=>{var O,D;return(D=(O=s==null?void 0:s.value)==null?void 0:O.phases)==null?void 0:D.find(K=>K.id===o.phaseId)});i.watch(()=>{var O;return(O=l.value)==null?void 0:O.milestones},(O,D)=>{a.value&&On(O,D)});const c=i.computed(()=>{var O,D;return(D=(O=l.value)==null?void 0:O.milestones)==null?void 0:D.find(K=>K.id===o.milestoneId)});i.watch(()=>{var O;return(O=c.value)==null?void 0:O.activities},(O,D)=>{a.value&&On(O,D)});const u=i.computed(()=>{var O,D;return((D=(O=s.value)==null?void 0:O.phases)==null?void 0:D.reduce((K,P)=>{const q=P.milestones||[];return[...K,...q]},[]))||[]}),d=i.computed(()=>{var O,D;return((D=(O=s.value)==null?void 0:O.phases)==null?void 0:D.reduce((K,P)=>{const ce=(P.milestones||[]).reduce((Q,ie)=>ie.activities?[...Q,...ie.activities]:Q,[]);return[...K,...ce]},[]))||[]}),f=i.computed(()=>{var O,D;return(D=(O=c.value)==null?void 0:O.activities)==null?void 0:D.find(K=>K.id===o.activityId)}),p=i.computed(()=>{var O;return((O=s.value)==null?void 0:O.name)||o.templateId}),h=()=>{if(!s.value)return;const{name:O,rank:D}=Vo(s.value.phases,"phase",n);a.value=!0,r("addItem",{type:Be.PHASES,templateId:o.templateId,item:{name:O,rank:D}})},m=O=>{r("updateItem",{templateId:o.templateId,id:o.templateId,itemType:Be.TEMPLATES,data:{name:O}})},g=O=>{r("removeItem",{itemType:Be.PHASES,templateId:o.templateId,data:{id:O}})},y=(O,D)=>{r("updateItem",{templateId:o.templateId,id:O,itemType:Be.PHASES,data:{name:D}})},_=O=>{r("updateItem",O)},C=O=>{if(!l.value)return;const{name:D,rank:K}=Vo(l.value.milestones,"milestone",n);a.value=!0,r("addItem",{type:Be.MILESTONES,templateId:o.templateId,phaseId:O.phaseId,item:{name:D,rank:K,phaseId:O.phaseId}})},v=O=>{r("removeItem",{itemType:Be.MILESTONES,templateId:o.templateId,phaseId:O.phaseId,data:{id:O.id}})},w=O=>{const{id:D,...K}=O;r("updateItem",{itemType:Be.MILESTONES,id:D,templateId:o.templateId,data:K})},k=O=>{const{milestoneId:D}=O;if(!c.value)return;const{name:K,rank:P}=Vo(c.value.activities,"activity",n);a.value=!0,r("addItem",{type:Be.ACTIVITIES,milestoneId:D,templateId:o.templateId,item:{name:K,rank:P,milestoneId:D}})},b=O=>{var D,K;r("removeItem",{itemType:Be.ACTIVITIES,templateId:o.templateId,phaseId:(D=l.value)==null?void 0:D.id,milestoneId:(K=c.value)==null?void 0:K.id,data:{id:O.id}})},E=O=>{const{id:D,...K}=O;r("updateItem",{itemType:Be.ACTIVITIES,id:D,templateId:o.templateId,data:K})},S=i.ref(!1),T=()=>{S.value=!S.value},A=()=>{r("addRule",{templateId:o.templateId})},V=O=>{r("removeRule",{id:O,templateId:o.templateId})},I=O=>{var D;if(O.moved){const K=Xi(O,((D=s.value)==null?void 0:D.phases)??[]);r("updateItem",{itemType:Be.PHASES,id:O.moved.element.id,templateId:o.templateId,data:{rank:K}})}},U=O=>{!l.value||!c.value||!f.value||r("addItem",{type:Be.TASKS,activityId:O.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:O})},$=O=>{!l.value||!c.value||!f.value||r("updateItem",{itemType:Be.TASKS,id:O.id,templateId:o.templateId,data:O})},H=O=>{!l.value||!c.value||!f.value||r("removeItem",{itemType:Be.TASKS,activityId:f.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:O})},L=O=>{r("addFiles",O)},ee=O=>{r("removeFile",O)};return(O,D)=>{var K,P,q,ce,Q,ie;return s.value?(i.openBlock(),i.createElementBlock("div",C1e,[i.createVNode(Qi,{"can-go-back":!0,onGoBack:D[1]||(D[1]=R=>O.$router.push({name:i.unref(Oo).TEMPLATES_LIST}))},{primary:i.withCtx(()=>[i.createVNode(st,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":D[0]||(D[0]=R=>{m(R)})},null,8,["title"])]),_:1}),i.createElementVNode("div",b1e,[i.createElementVNode("ol",k1e,[i.createElementVNode("li",w1e,[i.createVNode(i.unref(ho),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:I},{header:i.withCtx(()=>[i.createVNode(st,{title:O.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:i.withCtx(({element:R})=>{var te;return[i.createVNode(B_,{id:R.id,name:R.name,milestones:R.milestones,"is-active":((te=l.value)==null?void 0:te.id)===R.id,"is-draggable":!0,onClick:B=>O.$router.push({params:{templateId:t.templateId,phaseId:R.id}}),"onUpdate:title":B=>{y(R.id,B)},onRemove:()=>g(R.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:i.withCtx(()=>[i.createElementVNode("div",E1e,[i.createVNode(mo,{"icon-name":"AddBoxOutlineRounded",label:O.$t("template.phases.add"),onClick:h},null,8,["label"])])]),_:1},8,["model-value"])]),i.createElementVNode("li",x1e,[l.value?(i.openBlock(),i.createBlock(L_,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(K=c.value)==null?void 0:K.id,onAddMilestone:C,onUpdateMilestone:w,onUpdatePhase:_,onRemoveMilestone:v},null,8,["template-id","phase","milestone-id"])):i.createCommentVNode("",!0)]),i.createElementVNode("li",S1e,[l.value&&c.value?(i.openBlock(),i.createBlock(F_,{key:0,"template-id":t.templateId,"phase-id":(P=l.value)==null?void 0:P.id,milestone:c.value,"activity-id":(q=f.value)==null?void 0:q.id,onAddActivity:k,onUpdateActivity:E,onRemoveActivity:b},null,8,["template-id","phase-id","milestone","activity-id"])):i.createCommentVNode("",!0)])])]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[f.value?(i.openBlock(),i.createBlock(Hu,{key:0,activity:f.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(ce=l.value)==null?void 0:ce.name} / ${(Q=c.value)==null?void 0:Q.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,"onUpdate:activity":D[2]||(D[2]=R=>{f.value&&E(R)}),"attachment-enabled":!1,onClose:O.$router.back,onAddSubtask:U,onUpdateSubtask:$,onDeleteSubtask:H,onAddFiles:L,onRemoveFile:ee},{default:i.withCtx(R=>[i.renderSlot(O.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(R)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):i.createCommentVNode("",!0)])),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[S.value?(i.openBlock(),i.createBlock(_1e,{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:T,onAddRule:A,onRemoveRule:V},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):i.createCommentVNode("",!0)]))])):i.createCommentVNode("",!0)}}});const T1e={class:"ao-card__content"},A1e={key:0,class:"ao-card__header"},N1e={class:"ao-card__body"},D1e={key:1,class:"ao-card__footer"},rl=i.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:i.normalizeClass(["ao-card",{"ao-card--clickable":t.isClickable}]),style:i.normalizeStyle(t.isSelected?{border:"solid",borderColor:t.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:i.withCtx(()=>[t.withLeftBorder?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ao-card__left-border",style:i.normalizeStyle({backgroundColor:t.color})},null,4)):i.createCommentVNode("",!0),i.createElementVNode("div",T1e,[e.$slots.header?(i.openBlock(),i.createElementBlock("header",A1e,[i.renderSlot(e.$slots,"header")])):i.createCommentVNode("",!0),i.createElementVNode("div",N1e,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",D1e,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const il=i.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(t){const e=t,n=i.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(o,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-progress",t.status?`ao-progress--${t.status}`:""]),role:"meter"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,s=>(i.openBlock(),i.createElementBlock("div",{key:s,class:i.normalizeClass(["ao-progress__progress"]),style:i.normalizeStyle({width:`${s*100}%`,"--ao-progress-color":t.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}});/*!
|
|
54
|
+
`)}}(t,n)(e)}var Vue=process.env.NODE_ENV==="production",Jl="Invariant failed";function zue(t,e){if(!t){if(Vue)throw new Error(Jl);var n=typeof e=="function"?e():e,o=n?"".concat(Jl,": ").concat(n):Jl;throw new Error(o)}}const bg=Symbol("LexicalEditor"),Uue=(()=>{const t=i.defineComponent({name:"LexicalComposer",props:{initialConfig:{required:!0}},emits:["error"],setup(e,n){let{emit:o,expose:r}=n;const s=o;r();const a=e,l={tag:Ai},{theme:c,namespace:u,nodes:d,onError:f,editorState:p,html:h}=a.initialConfig,m=Jle({editable:a.initialConfig.editable,html:h,namespace:u,nodes:d,theme:c,onError(y){s("error",y,m),f==null||f(y,m)}});g(m,p);function g(y,_){if(_!==null){if(_===void 0)y.update(()=>{const C=Ie();if(C.isEmpty()){const v=Le();C.append(v);const w=Tce?document.activeElement:null;(re()!==null||w!==null&&w===y.getRootElement())&&v.select()}},l);else if(_!==null)switch(typeof _){case"string":{const C=y.parseEditorState(_);y.setEditorState(C,l);break}case"object":y.setEditorState(_,l);break;case"function":y.update(()=>{Ie().isEmpty()&&_(y)},l);break}}}return i.provide(bg,m),i.onMounted(()=>{const y=a.initialConfig.editable;m.setEditable(y!==void 0?y:!0)}),(y,_)=>i.renderSlot(y.$slots,"default")}});return t.__vue_vine=!0,t})();function Gr(){const t=i.inject(bg,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,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)o=s[r],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),r,s;for(s=0;s<o.length;s++)r=o[s],e.indexOf(r)>=0||(n[r]=t[r]);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=i.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:r}=o;r();const s=n,a=i.useTemplateRef("root"),l=i.ref(s.editor.isEditable()),c=i.computed(()=>que(s,["editor"]));i.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});i.onUnmounted(f)});const u=i.computed(()=>{var d;return(d=s.role)!=null?d:"textbox"});return(d,f)=>(i.openBlock(),i.createElementBlock("div",i.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 Ie().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=Ie().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const r=e[o];if(Ce(r))return!1;if(F(r)){if(!cs(r)||r.__indent!==0)return!1;const s=r.getChildren(),a=s.length;for(let l=0;l<a;l++){const c=s[o];if(!X(c))return!1}}}return!0}function kg(t){return()=>Kue(t)}function Gue(t){return t.getEditorState().read(kg(t.isComposing()))}function wg(t){const e=t.getEditorState().read(kg(t.isComposing())),n=i.ref(e);function o(){const r=Gue(t);n.value=r}return i.onMounted(()=>{const r=fs(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));i.onUnmounted(()=>{r()})}),i.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(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){Yue(t,r,n[r])})}return t}function Xue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).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=i.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:r}=o;r();const s=Gr(),a=i.ref(!1),l=wg(s);return i.onMounted(()=>{a.value=s.isEditable();const c=s.registerEditableListener(u=>{a.value=u});i.onUnmounted(c)}),(c,u)=>{var d,f;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(jue),i.mergeProps({editor:i.unref(s)},Que(Jue({},c.$props),{role:(d=c.role)!=null?d:"textbox",spellcheck:(f=c.spellcheck)!=null?f:!0})),null,16,["editor"]),i.unref(l)?(i.openBlock(),i.createElementBlock("div",t,[i.renderSlot(c.$slots,"placeholder")])):i.createCommentVNode("",!0)],64)}}});return e.__vue_vine=!0,e})();function tde(t,e,n,o,r){if(t===null||n.size===0&&o.size===0&&!r)return 0;const s=e._selection,a=t._selection;if(r)return 1;if(!(Z(s)&&Z(a)&&a.isCollapsed()&&s.isCollapsed()))return 0;const l=function(_,C,v){const w=_._nodeMap,k=[];for(const b of C){const E=w.get(b);E!==void 0&&k.push(E)}for(const[b,E]of v){if(!E)continue;const S=w.get(b);S===void 0||Re(S)||k.push(S)}return k}(e,n,o);if(l.length===0)return 0;if(l.length>1){const _=e._nodeMap,C=_.get(s.anchor.key),v=_.get(a.anchor.key);return C&&v&&!t._nodeMap.has(C.__key)&&X(C)&&C.__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,h=a.anchor;if(p.key!==h.key||p.type!=="text")return 0;const m=p.offset,g=h.offset,y=f.length-d.length;return y===1&&g===m-1?2:y===-1&&g===m+1?3:y===-1&&g===m?4:0}function nde(t,e){let n=Date.now(),o=0;return(r,s,a,l,c,u)=>{const d=Date.now();if(u.has(kc))return o=0,n=d,2;const f=tde(r,s,l,c,t.isComposing()),p=(()=>{const h=a===null||a.editor===t,m=u.has(Nle);if(!m&&h&&u.has(Ai))return 0;if(r===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 m===!1&&f!==0&&f===o&&d<n+y&&h||l.size===1&&function(_,C,v){const w=C._nodeMap.get(_),k=v._nodeMap.get(_),b=C._selection,E=v._selection;return!(Z(b)&&Z(E)&&b.anchor.type==="element"&&b.focus.type==="element"&&E.anchor.type==="text"&&E.focus.type==="text"||!X(w)||!X(k)||w.__parent!==k.__parent)&&JSON.stringify(C.read(()=>w.exportJSON()))===JSON.stringify(v.read(()=>k.exportJSON()))}(Array.from(l)[0],r,s)?0:1})();return n=d,o=f,p}}function Qf(t){t.undoStack=[],t.redoStack=[],t.current=null}function ode(t,e,n){const o=nde(t,n);return fs(t.registerCommand(fu,()=>(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(Ms,!0)),c.length===0&&s.dispatchCommand(Bs,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:kc})}}(t,e),!0),ye),t.registerCommand(pu,()=>(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(Bs,!0));const d=l.pop();l.length===0&&s.dispatchCommand(Ms,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:kc})}}(t,e),!0),ye),t.registerCommand(wle,()=>(Qf(e),!1),ye),t.registerCommand(Ele,()=>(Qf(e),t.dispatchCommand(Ms,!1),t.dispatchCommand(Bs,!1),!0),ye),t.registerUpdateListener(({editorState:s,prevEditorState:a,dirtyLeaves:l,dirtyElements:c,tags:u})=>{const d=e.current,f=e.redoStack,p=e.undoStack,h=d===null?null:d.editorState;if(d!==null&&s===h)return;const m=o(a,s,d,l,c,u);if(m===1)f.length!==0&&(e.redoStack=[],t.dispatchCommand(Ms,!1)),d!==null&&(p.push({...d}),t.dispatchCommand(Bs,!0));else if(m===2)return;e.current={editor:t,editorState:s}}))}function rde(){return{current:null,redoStack:[],undoStack:[]}}function ide(t,e,n){const o=i.computed(()=>i.toValue(e)||rde());i.watchEffect(r=>{const s=ode(i.toValue(t),o.value,i.toValue(n)||1e3);r(s)})}const sde=(()=>{const t=i.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return ide(s,()=>r.externalHistoryState,()=>r.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function ade(t){i.onMounted(()=>{const e=Vce(t);i.onUnmounted(()=>{e()})})}const lde=(()=>{const t=i.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const r=e,s=Gr();return i.watchEffect(a=>{if(!s.hasNodes([tr,_o]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!r.hasStrictIndent)return;const l=zce(s);a(l)}),ade(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function cde(t){const e=i.shallowRef(t.getDecorators());return i.onMounted(()=>{const n=t.registerDecoratorListener(o=>{e.value=o});i.onUnmounted(()=>{n()})}),i.computed(()=>{const n=[],o=Object.keys(i.unref(e));for(let r=0;r<o.length;r++){const s=o[r],a=e.value[s],l=t.getElementByKey(s);l!==null&&n.push(i.h(i.Teleport,{to:l},a))}return n})}const ude=i.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=Gr(),e=cde(t);return()=>e.value}});function dde(t){i.onMounted(()=>{const e=fs(sue(t),Jce(t));i.onUnmounted(e)})}const fde=(()=>{const t=i.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const r=Gr(),s=wg(r);return dde(r),(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(s)?i.renderSlot(a.$slots,"placeholder",{key:0}):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"contentEditable"),i.createVNode(i.unref(ude))],64))}});return t.__vue_vine=!0,t})(),pde={class:"ao-rich-text-editor"},hde={class:"ao-rich-text-editor__toolbar"},mde={class:"ao-rich-text-editor__editor"},gde={class:"ao-rich-text-editor__placeholder"},vde={class:"ao-rich-text-editor__actions"},yde=i.defineComponent({__name:"AoRichTextEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter description..."}},emits:["save","cancel"],setup(t,{emit:e}){const n=[dg,fg,pg,hg,mg,gg,yg,_g,vg],o=t,r=e,s=i.shallowRef(null),a={namespace:"AoRichTextEditor",nodes:[tr,_o],theme:{paragraph:"ao-rich-text-editor__paragraph",text:{bold:"ao-rich-text-editor__text-bold",italic:"ao-rich-text-editor__text-italic",strikethrough:"ao-rich-text-editor__text-strikethrough"},list:{ul:"ao-rich-text-editor__list-ul",ol:"ao-rich-text-editor__list-ol",listitem:"ao-rich-text-editor__list-item"}},editorState:()=>{Fue(o.initialMarkdown||"",n)},onError(y){console.error("Lexical error:",y)}},l=i.defineComponent({name:"AoRichTextEditorBridge",emits:{ready:y=>!0},setup(y,{emit:_}){const C=Gr();return i.onMounted(()=>{_("ready",C)}),()=>null}});function c(y){s.value=y}function u(){var y;(y=s.value)==null||y.dispatchCommand(Yt,"bold")}function d(){var y;(y=s.value)==null||y.dispatchCommand(Yt,"italic")}function f(){var y;(y=s.value)==null||y.dispatchCommand(Yt,"strikethrough")}function p(){var y;(y=s.value)==null||y.dispatchCommand(Hm,void 0)}function h(){var y;(y=s.value)==null||y.dispatchCommand(jm,void 0)}function m(){const y=s.value;if(!y)return;const _=y.getEditorState().read(()=>Rue(n));r("save",_.trim())}function g(){r("cancel")}return(y,_)=>(i.openBlock(),i.createElementBlock("div",pde,[i.createVNode(i.unref(Uue),{"initial-config":a},{default:i.withCtx(()=>[i.createElementVNode("div",hde,[i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bold",onMousedown:_[0]||(_[0]=i.withModifiers(()=>{},["prevent"])),onClick:u},[..._[5]||(_[5]=[i.createElementVNode("strong",null,"B",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Italic",onMousedown:_[1]||(_[1]=i.withModifiers(()=>{},["prevent"])),onClick:d},[..._[6]||(_[6]=[i.createElementVNode("em",null,"I",-1)])],32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Strikethrough",onMousedown:_[2]||(_[2]=i.withModifiers(()=>{},["prevent"])),onClick:f},[..._[7]||(_[7]=[i.createElementVNode("s",null,"S",-1)])],32),_[8]||(_[8]=i.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bullet list",onMousedown:_[3]||(_[3]=i.withModifiers(()=>{},["prevent"])),onClick:p}," • ",32),i.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Numbered list",onMousedown:_[4]||(_[4]=i.withModifiers(()=>{},["prevent"])),onClick:h}," 1. ",32)]),i.createElementVNode("div",mde,[i.createVNode(i.unref(fde),null,{contentEditable:i.withCtx(()=>[i.createVNode(i.unref(ede),{class:"ao-rich-text-editor__content"},{placeholder:i.withCtx(()=>[i.createElementVNode("div",gde,i.toDisplayString(t.placeholder),1)]),_:1})]),_:1})]),i.createVNode(i.unref(sde)),i.createVNode(i.unref(lde)),i.createVNode(i.unref(l),{onReady:c})]),_:1}),i.createElementVNode("div",vde,[i.createVNode(he,{variant:"ghost",color:"neutral",label:"Cancel",onClick:g}),i.createVNode(he,{variant:"solid",color:"primary",label:"Save",onClick:m})])]))}});const _de={class:"ao-activity-details"},Cde={class:"ao-activity-details__main"},bde={class:"ao-activity-details__header"},kde={key:1,class:"ao-activity__category"},wde={class:"ao-feed__activity-details__header"},Ede={key:0,class:"ao-field ao-feed__activity-details__project"},xde={class:"ao-field__label"},Sde={key:1,class:"ao-field ao-feed__activity-details__project"},Tde={class:"ao-field__label"},Ade={class:"ao-activity-details__content"},Nde={class:"ao-activity-details__tab-content"},Dde={class:"ao-fieldset"},Mde={class:"ao-field__row"},Bde={class:"ao-activity-details__tab-content"},$de={class:"ao-fieldset"},Ode={class:"ao-fieldset__body"},Lde={class:"ao-activity-details__tab-content"},Ide={key:0,class:"ao-fieldset"},Pde={class:"ao-activity-details__aside"},Fde={class:"ao-activity-details__close-button"},Rde={key:0,class:"ao-activity-details__aside-section"},Vde={class:"ao-field"},zde={class:"ao-field__label"},Ude={class:"ao-activity-details__aside-section"},qde={class:"ao-field ao-field--multiselect"},Hde={class:"assignee-inline"},jde={class:"ao-field__label"},Wde={class:"ao-activity-details__aside-section"},Zde={key:0,class:"ao-field__row"},Kde={class:"ao-field"},Gde={class:"ao-field__label"},Yde=["readonly"],Jde={class:"ao-activity-details__aside-section"},Xde={class:"ao-field__row"},Qde={class:"ao-field ao-field--inline"},e1e={class:"ao-field__label"},t1e=["readonly"],n1e={class:"ao-field__row"},o1e={class:"ao-field ao-field--inline"},r1e={class:"ao-field__label"},i1e={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},s1e={class:"ao-activity-details__aside-section"},a1e={class:"ao-fieldset ao-activity-details__aside-section"},l1e={class:"ao-fieldset__title"},c1e={class:"ao-fieldset__body"},u1e={class:"ao-field__row"},d1e={class:"ao-field ao-field--multiselect"},f1e={class:"ao-field__label"},p1e={class:"ao-field__row"},h1e={class:"ao-field ao-field--multiselect"},m1e={class:"ao-field__label"},Hu=i.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{},breadcrumbs:{},milestoneId:{},templateActivities:{},templateMilestones:{},isTemplate:{type:Boolean},users:{},userId:{},isTaskCheckable:{},statuses:{},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast"],setup(t,{emit:e}){const n=t,o=e,{t:r}=qn(),s=i.ref("description"),a=i.computed(()=>{var B,G;return[{label:r("activity.description.label")||"Description",value:"description"},{label:r("activity.tasks.title")||"Checklist",value:"checklist",count:((B=n.activity.tasks)==null?void 0:B.length)??0},{label:r("activity.comments.title")||"Commentaires",value:"comments",count:((G=n.activity.comments)==null?void 0:G.length)??0}]}),l=i.computed(()=>{var B;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((B=n.activity.assignee)==null?void 0:B.id):!1}),c=i.ref(!1),u=B=>{o("update:activity",{id:n.activity.id,name:B})},d=i.computed(()=>n.activity.description??""),f=()=>{l.value&&(c.value=!0)},p=B=>{o("update:activity",{id:n.activity.id,description:B}),c.value=!1},h=()=>{c.value=!1};i.watch(()=>n.activity.id,()=>{c.value=!1});const m=i.computed({get(){return n.activity.estimation??0},set(B){o("update:activity",{id:n.activity.id,estimation:B})}}),g=i.computed({get(){var G;const B=(G=n.timeTrackingData)==null?void 0:G[n.activity.id];return(B==null?void 0:B.timeSpent)??0},set(){}}),y=i.computed(()=>{var G;return((G=n.activity.project)==null?void 0:G.estimationUnit)==="days"?"d":"h"}),_=i.computed(()=>{var G;const B=(G=n.activity.project)==null?void 0:G.estimationUnit;return Sa(g.value,B)}),C=i.computed({get(){return n.activity.important??!1},set(B){o("update:activity",{id:n.activity.id,important:B})}});i.computed({get(){return n.activity.private??!1},set(B){o("update:activity",{id:n.activity.id,private:B})}});const v=i.computed({get(){return n.activity.deadline},set(B){o("update:activity",{id:n.activity.id,deadline:B})}});i.computed(()=>{var B;return(B=n.activityTypes)==null?void 0:B.map(G=>({label:G.name,value:G.id}))}),i.computed({get(){var B;return(B=n.activity.type)==null?void 0:B.id},set(B){o("update:activity",{id:n.activity.id,typeId:B})}});const w=i.computed(()=>n.templateActivities.filter(B=>B.id!==n.activity.id).map(B=>({label:B.name,value:B.id}))),k=i.computed({get(){var B;return(B=n.activity.dependingOn)==null?void 0:B.map(G=>G.id)},set(B){B&&o("update:activity",{id:n.activity.id,dependingOn:B})}}),b=i.computed(()=>w.value.map(B=>{var G;return{...B,disabled:(G=n.activity.blocking)==null?void 0:G.some(ge=>ge.id===B.value)}})),E=i.computed({get(){var B;return(B=n.activity.blocking)==null?void 0:B.map(G=>G.id)},set(B){B&&o("update:activity",{id:n.activity.id,blocking:B})}}),S=i.computed(()=>w.value.map(B=>{var G;return{...B,disabled:(G=n.activity.dependingOn)==null?void 0:G.some(ge=>ge.id===B.value)}})),T=B=>{o("addSubtask",B)},A=B=>{o("updateSubtask",B)},V=B=>{o("deleteSubtask",B)};function I(){n.userId?H.value=[n.userId]:console.error("Failed assigning to self: userId is missing")}function U(B){H.value=[B]}const $=i.computed(()=>{var G;const B=new Map;return(G=n.users)==null||G.forEach(ge=>{B.has(ge.id)||B.set(ge.id,ge)}),Array.from(B.values()).map(ge=>({label:`${ge.firstName} ${ge.lastName}`,value:ge.id,avatar:ge.avatarUrl}))}),H=i.computed({get(){var B,G;return(B=n.activity.assignee)!=null&&B.id?[(G=n.activity.assignee)==null?void 0:G.id]:[]},set(B){o("update:activity",{id:n.activity.id,assigneeId:B[0]??null})}}),L=B=>{o("addFiles",{activityId:n.activity.id,files:B})},ee=B=>{o("removeFile",{activityId:n.activity.id,file:B})},O=i.computed(()=>n.projects.map(B=>({value:B.id,label:B.name}))),D=i.computed(()=>{var G,ge,qe;const B=(qe=(ge=(G=n.activity)==null?void 0:G.project)==null?void 0:ge.phases)==null?void 0:qe.reduce((de,_e)=>[...de,..._e.milestones],[]);return B==null?void 0:B.map(de=>({value:de.id,label:de.name}))}),K=B=>{n.activity&&o("update:activity",{id:n.activity.id,projectId:B})},P=B=>{n.activity&&o("update:activity",{id:n.activity.id,milestoneId:B})},q=i.computed(()=>{var B;return(B=n.statuses)==null?void 0:B.map(G=>({value:G.id,label:G.name}))}),ce=B=>{o("update:activity",{id:n.activity.id,statusId:B})},Q=B=>{o("addComment",{...B,activityId:n.activity.id})},ie=B=>{o("updateComment",B)},R=B=>{o("removeComment",B)};i.computed(()=>{var B,G;return((B=n.activity.createdBy)==null?void 0:B.firstName)&&((G=n.activity.createdBy)==null?void 0:G.lastName)&&`${n.activity.createdBy.firstName} ${n.activity.createdBy.lastName}`});function te(){const B=window.location.origin,G=n.activity.slug,ge=`${B}/activity-feed/slug/${G}`;navigator.clipboard.writeText(ge).then(()=>{console.log(`Link copied to clipboard: ${ge}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return(B,G)=>(i.openBlock(),i.createBlock(Aa,{onClose:G[8]||(G[8]=ge=>B.$emit("close"))},{default:i.withCtx(()=>{var ge,qe,de;return[i.createElementVNode("div",_de,[i.createElementVNode("div",Cde,[i.createElementVNode("div",bde,[t.activity.slug?(i.openBlock(),i.createBlock(Bi,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:te},null,8,["label"])):i.createCommentVNode("",!0),t.breadcrumbs?(i.openBlock(),i.createElementBlock("div",kde,i.toDisplayString(t.breadcrumbs),1)):i.createCommentVNode("",!0),i.createVNode(st,{title:t.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":u},null,8,["title","is-editable"]),i.createElementVNode("div",wde,[O.value?(i.openBlock(),i.createElementBlock("label",Ede,[i.createElementVNode("span",xde,i.toDisplayString(B.$t("activity.project.label")),1),i.createVNode(Nt,{options:O.value,value:(ge=t.activity.project)==null?void 0:ge.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:K},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0),D.value?(i.openBlock(),i.createElementBlock("label",Sde,[i.createElementVNode("span",Tde,i.toDisplayString(B.$t("activity.milestone.label")),1),i.createVNode(Nt,{options:D.value,value:(qe=t.activity.milestone)==null?void 0:qe.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:P},null,8,["options","value","disabled","caret"])])):i.createCommentVNode("",!0)]),i.renderSlot(B.$slots,"header")]),i.createElementVNode("div",Ade,[i.createVNode(ts,{modelValue:s.value,"onUpdate:modelValue":G[0]||(G[0]=_e=>s.value=_e),tabs:a.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),i.withDirectives(i.createElementVNode("div",Nde,[i.createElementVNode("fieldset",Dde,[i.createElementVNode("div",Mde,[i.createVNode(N9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&l.value&&t.isTemplate!==!0&&!!t.userId,onAdd:L,onRemove:ee},{default:i.withCtx(()=>[c.value?(i.openBlock(),i.createBlock(yde,{key:1,"initial-markdown":d.value,onSave:p,onCancel:h},null,8,["initial-markdown"])):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":l.value}]),onClick:f},[i.createVNode(Vae,{content:d.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[i.vShow,s.value==="description"]]),i.withDirectives(i.createElementVNode("div",Bde,[i.createElementVNode("fieldset",$de,[i.createElementVNode("div",Ode,[i.createVNode(y9,{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:T,onUpdate:A,onDelete:V},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[i.vShow,s.value==="checklist"]]),i.withDirectives(i.createElementVNode("div",Lde,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",Ide,[i.createVNode(H9,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:Q,onUpdateComment:ie,onRemoveComment:R},null,8,["comments","users","user-id"])])):i.createCommentVNode("",!0)],512),[[i.vShow,s.value==="comments"]])])]),i.createElementVNode("div",Pde,[i.createElementVNode("div",Fde,[i.createVNode(Ae,{name:"CloseRounded",onClick:G[1]||(G[1]=_e=>B.$emit("close"))})]),q.value?(i.openBlock(),i.createElementBlock("div",Rde,[i.createElementVNode("label",Vde,[i.createElementVNode("span",zde,i.toDisplayString(B.$t("activity.status.label")),1),i.createVNode(Nt,{class:"ao-activity-details__multiselect",options:q.value,value:(de=t.activity.status)==null?void 0:de.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:ce},null,8,["options","value","disabled","caret"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",Ude,[i.createElementVNode("div",qde,[i.createElementVNode("div",Hde,[i.createElementVNode("span",jde,i.toDisplayString(B.$t("activity.assignee.label")),1),i.createVNode(he,{label:B.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:I},null,8,["label"])]),i.createVNode(Nt,{modelValue:H.value,"onUpdate:modelValue":G[2]||(G[2]=_e=>H.value=_e),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:$.value,"close-on-select":!0,searchable:!0,placeholder:B.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:U},{tag:i.withCtx(({option:_e,handleTagRemove:we})=>[i.createVNode(zn,{"user-name":_e.label,"avatar-url":_e.avatar,"is-closable":!0,onClose:ut=>we(_e,ut)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createElementVNode("div",Wde,[t.isTemplate!==!0&&t.userId?(i.openBlock(),i.createElementBlock("div",Zde,[i.createElementVNode("label",Kde,[i.createElementVNode("span",Gde,i.toDisplayString(B.$t("activity.deadline.label")),1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":G[3]||(G[3]=_e=>v.value=_e),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,Yde),[[i.vModelText,v.value,void 0,{lazy:!0}]])])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Jde,[i.createElementVNode("div",Xde,[i.createElementVNode("label",Qde,[i.createElementVNode("span",e1e,i.toDisplayString(B.$t("activity.estimation.label"))+" ("+i.toDisplayString(y.value)+")",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":G[4]||(G[4]=_e=>m.value=_e),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,t1e),[[i.vModelText,m.value,void 0,{lazy:!0,number:!0}]])])]),i.createElementVNode("div",n1e,[i.createElementVNode("label",o1e,[i.createElementVNode("span",r1e,i.toDisplayString(B.$t("activity.timeSpent.label"))+" ("+i.toDisplayString(y.value)+")",1),i.createElementVNode("span",i1e,i.toDisplayString(_.value),1)])])]),i.createElementVNode("div",s1e,[i.createVNode(qp,{modelValue:C.value,"onUpdate:modelValue":G[5]||(G[5]=_e=>C.value=_e),modelModifiers:{lazy:!0},label:B.$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"])]),i.createElementVNode("fieldset",a1e,[i.createElementVNode("div",l1e,[i.createVNode(Ae,{name:"FlowsheetOutlineRounded"}),i.createVNode(st,{level:4,title:B.$t("activity.dependencies.title")},null,8,["title"])]),i.createElementVNode("div",c1e,[i.createElementVNode("div",u1e,[i.createElementVNode("label",d1e,[i.createElementVNode("span",f1e,i.toDisplayString(B.$t("activity.dependingOn.label")),1),i.createVNode(Nt,{modelValue:k.value,"onUpdate:modelValue":G[6]||(G[6]=_e=>k.value=_e),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:b.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),i.createElementVNode("div",p1e,[i.createElementVNode("label",h1e,[i.createElementVNode("span",m1e,i.toDisplayString(B.$t("activity.blocking.label")),1),i.createVNode(Nt,{modelValue:E.value,"onUpdate:modelValue":G[7]||(G[7]=_e=>E.value=_e),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:S.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),i.renderSlot(B.$slots,"default",{activity:t.activity})])])]}),_:3}))}});const g1e=i.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(t,{emit:e}){const n=t,o=e,r=i.toRef(n.rule.itemType||Be.ACTIVITIES),s=i.computed({get(){return r.value},set(C){r.value=C,o("update:rule",{...n.rule,itemType:C,subItemId:void 0})}}),a=i.computed(()=>Object.values(Be)),l=i.computed({get(){return n.rule.subItemId},set(C){o("update:rule",{...n.rule,subItemId:C,itemType:n.rule.itemType||s.value})}}),c=i.computed(()=>{var v;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(v={[Be.ACTIVITIES]:n.templateActivities,[Be.MILESTONES]:n.templateMilestones,[Be.PHASES]:n.templatePhases}[r.value])==null?void 0:v.map(w=>({value:w.id,label:w.name}))}),u=i.toRef(n.rule.comparator),d=i.computed({get(){return u.value},set(C){o("update:rule",{...n.rule,comparator:C})}}),f=i.computed(()=>Object.values(ip)),p=i.toRef(n.rule.trigger),h=i.computed({get(){return p.value},set(C){o("update:rule",{...n.rule,trigger:C})}}),m=i.computed(()=>Object.values(sp)),g=i.computed({get(){return n.rule.duration},set(C){o("update:rule",{...n.rule,duration:C})}}),y=i.computed({get(){return n.rule.durationUnit},set(C){o("update:rule",{...n.rule,durationUnit:C})}}),_=i.computed(()=>Object.values(ap));return(C,v)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:i.withCtx(()=>[i.createVNode(i.unref(eo),{modelValue:s.value,"onUpdate:modelValue":v[0]||(v[0]=w=>s.value=w),options:a.value},null,8,["modelValue","options"]),i.createVNode(i.unref(eo),{modelValue:l.value,"onUpdate:modelValue":v[1]||(v[1]=w=>l.value=w),options:c.value},null,8,["modelValue","options"]),i.createVNode(i.unref(eo),{modelValue:h.value,"onUpdate:modelValue":v[2]||(v[2]=w=>h.value=w),options:m.value},null,8,["modelValue","options"]),i.createVNode(i.unref(eo),{modelValue:d.value,"onUpdate:modelValue":v[3]||(v[3]=w=>d.value=w),options:f.value},null,8,["modelValue","options"]),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":v[4]||(v[4]=w=>g.value=w),type:"number",min:"0"},null,512),[[i.vModelText,g.value,void 0,{number:!0}]]),i.createVNode(i.unref(eo),{modelValue:y.value,"onUpdate:modelValue":v[5]||(v[5]=w=>y.value=w),options:_.value},null,8,["modelValue","options"]),i.createVNode(he,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:v[6]||(v[6]=w=>C.$emit("close"))})]),_:1}))}});const v1e={class:"ao-template-rules__body"},y1e={class:"ao-template-rules__list"},_1e=i.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(t,{emit:e}){const n=e,o=()=>{n("addRule")},r=s=>{n("removeRule",s)};return(s,a)=>(i.openBlock(),i.createBlock(Aa,null,{header:i.withCtx(()=>[i.createVNode(st,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("div",v1e,[i.createElementVNode("ul",y1e,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.rules,l=>(i.openBlock(),i.createBlock(g1e,{key:l.id,rule:l,"template-phases":t.templatePhases,"template-milestones":t.templateMilestones,"template-activities":t.templateActivities,class:"ao-template-rule",onClose:()=>r(l.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),i.createVNode(mo,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function Vo(t,e,n){const o=t.length,r=t.at(-1),s=r?rt.LexoRank.parse(r.rank).genNext():rt.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:s.format()}}const C1e={key:0,class:"ao-template-details"},b1e={class:"ao-template-details__body"},k1e={class:"ao-template-details__cols"},w1e={class:"ao-template-details__col"},E1e={class:"ao-list__footer"},x1e={class:"ao-template-details__col"},S1e={class:"ao-template-details__col"},Eg=i.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}=qn(),o=t,r=e,s=i.computed(()=>{var O;return(O=o.templates)==null?void 0:O.find(D=>D.id===o.templateId)}),a=i.ref(!1);i.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),i.watch(()=>{var O;return(O=s.value)==null?void 0:O.phases},(O,D)=>{a.value&&On(O,D)});const l=i.computed(()=>{var O,D;return(D=(O=s==null?void 0:s.value)==null?void 0:O.phases)==null?void 0:D.find(K=>K.id===o.phaseId)});i.watch(()=>{var O;return(O=l.value)==null?void 0:O.milestones},(O,D)=>{a.value&&On(O,D)});const c=i.computed(()=>{var O,D;return(D=(O=l.value)==null?void 0:O.milestones)==null?void 0:D.find(K=>K.id===o.milestoneId)});i.watch(()=>{var O;return(O=c.value)==null?void 0:O.activities},(O,D)=>{a.value&&On(O,D)});const u=i.computed(()=>{var O,D;return((D=(O=s.value)==null?void 0:O.phases)==null?void 0:D.reduce((K,P)=>{const q=P.milestones||[];return[...K,...q]},[]))||[]}),d=i.computed(()=>{var O,D;return((D=(O=s.value)==null?void 0:O.phases)==null?void 0:D.reduce((K,P)=>{const ce=(P.milestones||[]).reduce((Q,ie)=>ie.activities?[...Q,...ie.activities]:Q,[]);return[...K,...ce]},[]))||[]}),f=i.computed(()=>{var O,D;return(D=(O=c.value)==null?void 0:O.activities)==null?void 0:D.find(K=>K.id===o.activityId)}),p=i.computed(()=>{var O;return((O=s.value)==null?void 0:O.name)||o.templateId}),h=()=>{if(!s.value)return;const{name:O,rank:D}=Vo(s.value.phases,"phase",n);a.value=!0,r("addItem",{type:Be.PHASES,templateId:o.templateId,item:{name:O,rank:D}})},m=O=>{r("updateItem",{templateId:o.templateId,id:o.templateId,itemType:Be.TEMPLATES,data:{name:O}})},g=O=>{r("removeItem",{itemType:Be.PHASES,templateId:o.templateId,data:{id:O}})},y=(O,D)=>{r("updateItem",{templateId:o.templateId,id:O,itemType:Be.PHASES,data:{name:D}})},_=O=>{r("updateItem",O)},C=O=>{if(!l.value)return;const{name:D,rank:K}=Vo(l.value.milestones,"milestone",n);a.value=!0,r("addItem",{type:Be.MILESTONES,templateId:o.templateId,phaseId:O.phaseId,item:{name:D,rank:K,phaseId:O.phaseId}})},v=O=>{r("removeItem",{itemType:Be.MILESTONES,templateId:o.templateId,phaseId:O.phaseId,data:{id:O.id}})},w=O=>{const{id:D,...K}=O;r("updateItem",{itemType:Be.MILESTONES,id:D,templateId:o.templateId,data:K})},k=O=>{const{milestoneId:D}=O;if(!c.value)return;const{name:K,rank:P}=Vo(c.value.activities,"activity",n);a.value=!0,r("addItem",{type:Be.ACTIVITIES,milestoneId:D,templateId:o.templateId,item:{name:K,rank:P,milestoneId:D}})},b=O=>{var D,K;r("removeItem",{itemType:Be.ACTIVITIES,templateId:o.templateId,phaseId:(D=l.value)==null?void 0:D.id,milestoneId:(K=c.value)==null?void 0:K.id,data:{id:O.id}})},E=O=>{const{id:D,...K}=O;r("updateItem",{itemType:Be.ACTIVITIES,id:D,templateId:o.templateId,data:K})},S=i.ref(!1),T=()=>{S.value=!S.value},A=()=>{r("addRule",{templateId:o.templateId})},V=O=>{r("removeRule",{id:O,templateId:o.templateId})},I=O=>{var D;if(O.moved){const K=Xi(O,((D=s.value)==null?void 0:D.phases)??[]);r("updateItem",{itemType:Be.PHASES,id:O.moved.element.id,templateId:o.templateId,data:{rank:K}})}},U=O=>{!l.value||!c.value||!f.value||r("addItem",{type:Be.TASKS,activityId:O.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:O})},$=O=>{!l.value||!c.value||!f.value||r("updateItem",{itemType:Be.TASKS,id:O.id,templateId:o.templateId,data:O})},H=O=>{!l.value||!c.value||!f.value||r("removeItem",{itemType:Be.TASKS,activityId:f.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:O})},L=O=>{r("addFiles",O)},ee=O=>{r("removeFile",O)};return(O,D)=>{var K,P,q,ce,Q,ie;return s.value?(i.openBlock(),i.createElementBlock("div",C1e,[i.createVNode(Qi,{"can-go-back":!0,onGoBack:D[1]||(D[1]=R=>O.$router.push({name:i.unref(Oo).TEMPLATES_LIST}))},{primary:i.withCtx(()=>[i.createVNode(st,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":D[0]||(D[0]=R=>{m(R)})},null,8,["title"])]),_:1}),i.createElementVNode("div",b1e,[i.createElementVNode("ol",k1e,[i.createElementVNode("li",w1e,[i.createVNode(i.unref(ho),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:I},{header:i.withCtx(()=>[i.createVNode(st,{title:O.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:i.withCtx(({element:R})=>{var te;return[i.createVNode(I_,{id:R.id,name:R.name,milestones:R.milestones,"is-active":((te=l.value)==null?void 0:te.id)===R.id,"is-draggable":!0,onClick:B=>O.$router.push({params:{templateId:t.templateId,phaseId:R.id}}),"onUpdate:title":B=>{y(R.id,B)},onRemove:()=>g(R.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:i.withCtx(()=>[i.createElementVNode("div",E1e,[i.createVNode(mo,{"icon-name":"AddBoxOutlineRounded",label:O.$t("template.phases.add"),onClick:h},null,8,["label"])])]),_:1},8,["model-value"])]),i.createElementVNode("li",x1e,[l.value?(i.openBlock(),i.createBlock(R_,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(K=c.value)==null?void 0:K.id,onAddMilestone:C,onUpdateMilestone:w,onUpdatePhase:_,onRemoveMilestone:v},null,8,["template-id","phase","milestone-id"])):i.createCommentVNode("",!0)]),i.createElementVNode("li",S1e,[l.value&&c.value?(i.openBlock(),i.createBlock(U_,{key:0,"template-id":t.templateId,"phase-id":(P=l.value)==null?void 0:P.id,milestone:c.value,"activity-id":(q=f.value)==null?void 0:q.id,onAddActivity:k,onUpdateActivity:E,onRemoveActivity:b},null,8,["template-id","phase-id","milestone","activity-id"])):i.createCommentVNode("",!0)])])]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[f.value?(i.openBlock(),i.createBlock(Hu,{key:0,activity:f.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(ce=l.value)==null?void 0:ce.name} / ${(Q=c.value)==null?void 0:Q.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,"onUpdate:activity":D[2]||(D[2]=R=>{f.value&&E(R)}),"attachment-enabled":!1,onClose:O.$router.back,onAddSubtask:U,onUpdateSubtask:$,onDeleteSubtask:H,onAddFiles:L,onRemoveFile:ee},{default:i.withCtx(R=>[i.renderSlot(O.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(R)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):i.createCommentVNode("",!0)])),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[S.value?(i.openBlock(),i.createBlock(_1e,{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:T,onAddRule:A,onRemoveRule:V},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):i.createCommentVNode("",!0)]))])):i.createCommentVNode("",!0)}}});const T1e={class:"ao-card__content"},A1e={key:0,class:"ao-card__header"},N1e={class:"ao-card__body"},D1e={key:1,class:"ao-card__footer"},rl=i.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.tagName),{class:i.normalizeClass(["ao-card",{"ao-card--clickable":t.isClickable}]),style:i.normalizeStyle(t.isSelected?{border:"solid",borderColor:t.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:i.withCtx(()=>[t.withLeftBorder?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ao-card__left-border",style:i.normalizeStyle({backgroundColor:t.color})},null,4)):i.createCommentVNode("",!0),i.createElementVNode("div",T1e,[e.$slots.header?(i.openBlock(),i.createElementBlock("header",A1e,[i.renderSlot(e.$slots,"header")])):i.createCommentVNode("",!0),i.createElementVNode("div",N1e,[i.renderSlot(e.$slots,"default")]),e.$slots.footer?(i.openBlock(),i.createElementBlock("footer",D1e,[i.renderSlot(e.$slots,"footer")])):i.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const il=i.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(t){const e=t,n=i.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(o,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ao-progress",t.status?`ao-progress--${t.status}`:""]),role:"meter"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,s=>(i.openBlock(),i.createElementBlock("div",{key:s,class:i.normalizeClass(["ao-progress__progress"]),style:i.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 To(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=B1e(t):/rgb/.test(t)?e=ep(t):typeof t=="string"?e=ep(`rgba(${t})`):Object.prototype.toString.call(t)==="[object Object]"&&(e=t);const{r:n,g:o,b:r,a:s}=e,{h:a,s:l,v:c}=$1e(e);return{r:n,g:o,b:r,a:s===void 0?1:s,h:a,s:l,v:c}}function ju(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 Fc(t,e,n,o,r,s){const a=t==="l",l=e.createLinearGradient(0,0,a?n:0,a?0:o);l.addColorStop(.01,r),l.addColorStop(.99,s),e.fillStyle=l,e.fillRect(0,0,n,o)}function M1e({r:t,g:e,b:n},o){const r=a=>("0"+Number(a).toString(16)).slice(-2),s=`#${r(t)}${r(e)}${r(n)}`;return o?s.toUpperCase():s}function B1e(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 ep(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 $1e({r:t,g:e,b:n}){t=t/255,e=e/255,n=n/255;const o=Math.max(t,e,n),r=Math.min(t,e,n),s=o-r;let a=0;o===r?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-r/o).toFixed(2)),c=parseFloat(o.toFixed(2));return{h:a,s:l,v:c}}var Wu=i.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),Fc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Fc("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"),r=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})};r(t);const s=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",s)}}});const O1e={ref:"canvasSaturation"};function L1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectSaturation&&t.selectSaturation(...a),["prevent","stop"]))},[i.createVNode("canvas",O1e,null,512),i.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}Wu.render=L1e;Wu.__file="src/color/Saturation.vue";var Zu=i.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 r=o.createLinearGradient(0,0,0,n);r.addColorStop(0,"#FF0000"),r.addColorStop(.17*1,"#FF00FF"),r.addColorStop(.17*2,"#0000FF"),r.addColorStop(.17*3,"#00FFFF"),r.addColorStop(.17*4,"#00FF00"),r.addColorStop(.17*5,"#FFFF00"),r.addColorStop(1,"#FF0000"),o.fillStyle=r,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 r=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)}}});const I1e={ref:"canvasHue"};function P1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectHue&&t.selectHue(...a),["prevent","stop"]))},[i.createVNode("canvas",I1e,null,512),i.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}Zu.render=P1e;Zu.__file="src/color/Hue.vue";var Ku=i.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,r=ju(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),Fc("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=r=>{let s=r.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 F1e={ref:"canvasAlpha"};function R1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectAlpha&&t.selectAlpha(...a),["prevent","stop"]))},[i.createVNode("canvas",F1e,null,512),i.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}Ku.render=R1e;Ku.__file="src/color/Alpha.vue";var Gu=i.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,r=ju(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),s.fillStyle=this.color,s.fillRect(0,0,e,n)}}});function V1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("canvas")}Gu.render=V1e;Gu.__file="src/color/Preview.vue";var Yu=i.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:r,width:s,height:a}=this.suckerCanvas.getBoundingClientRect(),l=e-r,c=n-o,d=this.suckerCanvas.getContext("2d").getImageData(Math.min(l,s-1),Math.min(c,a-1),1,1);let[f,p,h,m]=d.data;m=parseFloat((m/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}, ${h}, ${m})`,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:r,left:s,width:a,height:l}=t.getBoundingClientRect(),c=n-s,u=o-r,f=t.getContext("2d").getImageData(Math.min(c,a-1),Math.min(u,l-1),1,1);let[p,h,m,g]=f.data;g=parseFloat((g/255).toFixed(2)),this.$emit("selectSucker",{r:p,g:h,b:m,a:g})}))}}});const z1e=i.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),U1e={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},q1e=i.createVNode("g",{fill:"none","fill-rule":"evenodd"},[i.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[i.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),i.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[i.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function H1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[t.isSucking?i.createCommentVNode("v-if",!0):(i.openBlock(),i.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))},[z1e],2)),t.isSucking?(i.openBlock(),i.createBlock("svg",U1e,[q1e])):i.createCommentVNode("v-if",!0)])}Yu.render=H1e;Yu.__file="src/color/Sucker.vue";var Ju=i.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(t,{emit:e}){return{modelColor:i.computed({get(){return t.color||""},set(s){e("inputColor",s)}}),handleFocus:s=>{e("inputFocus",s)},handleBlur:s=>{e("inputBlur",s)}}}});const j1e={class:"color-type"},W1e={class:"name"};function Z1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",j1e,[i.createVNode("span",W1e,i.toDisplayString(t.name),1),i.withDirectives(i.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),[[i.vModelText,t.modelColor]])])}Ju.render=Z1e;Ju.__file="src/color/Box.vue";var Xu=i.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=i.ref(),o=i.ref([]),r=i.ref();t.colorsHistoryKey&&localStorage&&(o.value=JSON.parse(localStorage.getItem(t.colorsHistoryKey))||[]),r.value=ju(4).toDataURL(),i.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:r,selectColor:a}}});const K1e={class:"colors"},G1e={key:0,class:"colors history"};function Y1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[i.createVNode("ul",K1e,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(t.colorsDefault,a=>(i.openBlock(),i.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[i.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),i.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))]),t.colorsHistory.length?(i.openBlock(),i.createBlock("ul",G1e,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(t.colorsHistory,a=>(i.openBlock(),i.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[i.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),i.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))])):i.createCommentVNode("v-if",!0)])}Xu.render=Y1e;Xu.__file="src/color/Colors.vue";var Tr=i.defineComponent({components:{Saturation:Wu,Hue:Zu,Alpha:Ku,Preview:Gu,Sucker:Yu,Box:Ju,Colors:Xu},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 M1e(this.rgba,!0)}},created(){Object.assign(this,To(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:r,s,v:a}=To(t);Object.assign(this,{r:e,g:n,b:o,h:r,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:r,s,v:a}=To(t);Object.assign(this,{r:e,g:n,b:o,h:r,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:r,h:s,s:a,v:l}=To(t);Object.assign(this,{r:e,g:n,b:o,a:r,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:r,h:s,s:a,v:l}=To(t);Object.assign(this,{r:e,g:n,b:o,a:r,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:r,h:s,s:a,v:l}=To(t);Object.assign(this,{r:e,g:n,b:o,a:r,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:r,h:s,s:a,v:l}=To(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const J1e={class:"color-set"};function X1e(t,e,n,o,r,s){const a=i.resolveComponent("Saturation"),l=i.resolveComponent("Hue"),c=i.resolveComponent("Alpha"),u=i.resolveComponent("Preview"),d=i.resolveComponent("Sucker"),f=i.resolveComponent("Box"),p=i.resolveComponent("Colors");return i.openBlock(),i.createBlock("div",{class:["hu-color-picker",{light:t.isLightTheme}],style:{width:t.totalWidth+"px"}},[i.createVNode("div",J1e,[i.createVNode(a,{ref:"saturation",color:t.rgbString,hsv:t.hsv,size:t.hueHeight,onSelectSaturation:t.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),i.createVNode(l,{ref:"hue",hsv:t.hsv,width:t.hueWidth,height:t.hueHeight,onSelectHue:t.selectHue},null,8,["hsv","width","height","onSelectHue"]),i.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"])]),i.createVNode("div",{style:{height:t.previewHeight+"px"},class:"color-show"},[i.createVNode(u,{color:t.rgbaString,width:t.previewWidth,height:t.previewHeight},null,8,["color","width","height"]),t.suckerHide?i.createCommentVNode("v-if",!0):(i.openBlock(),i.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),i.createVNode(f,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.createVNode(f,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.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"]),i.createCommentVNode(" custom options "),i.renderSlot(t.$slots,"default")],6)}Tr.render=X1e;Tr.__file="src/color/ColorPicker.vue";Tr.install=t=>{t.component(Tr.name,Tr)};const Q1e={class:"color-picker-wrapper"},sl=i.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1),s=i.ref(null),a=i.ref(null),l=i.ref(0),c=i.ref(0),u=async m=>{a.value=m,r.value=!0,await i.nextTick();const g=m.getBoundingClientRect(),y=s.value,_=(y==null?void 0:y.offsetHeight)||300,C=window.innerHeight-g.bottom,v=g.top,w=C<_&&v>_;console.log("pickerHeight = "+_),l.value=w?g.top-_-8:g.bottom+8,c.value=g.left,setTimeout(()=>{window.addEventListener("click",f)},0)},d=i.computed(()=>({position:"fixed",top:`${l.value}px`,left:`${c.value}px`,zIndex:1e3})),f=m=>{const g=m.target;s.value&&!s.value.contains(g)&&(r.value=!1,o("update:color",p.value),window.removeEventListener("click",f))};i.onBeforeUnmount(()=>{window.removeEventListener("click",f)}),i.watch(()=>n.color,m=>{r.value||(p.value=m)});const p=i.ref(n.color),h=m=>{const{r:g,g:y,b:_,a:C}=m.rgba;p.value=`rgba(${g}, ${y}, ${_}, ${C})`};return(m,g)=>(i.openBlock(),i.createElementBlock("div",Q1e,[i.renderSlot(m.$slots,"clickable",{openPicker:u,bgColor:t.color}),r.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:s,class:"color-picker",style:i.normalizeStyle(d.value)},[i.createVNode(i.unref(Tr),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:h},null,8,["color"])],4)):i.createCommentVNode("",!0)]))}});const efe={class:"ao-card-project-phase__header"},tfe={class:"ao-card-project-item__title-line"},nfe={key:0,class:"ao-card-project-item-phase__estimation"},ofe={class:"ao-card-project-phase__footer"},rfe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},ife={class:"ao-card-project-phase__subitem"},sfe={class:"ao-card-project-phase__subitem"},afe={key:0,class:"ao-card-project-phase__secondary"},lfe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},cfe=i.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,r=g=>{o("update:title",g)},s=i.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((y,_)=>{var C;return y+((C=_.activities)==null?void 0:C.reduce((v,w)=>v+(w.estimation||0),0))},0))||0}),a=i.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var _;return g+(((_=y.activities)==null?void 0:_.reduce((C,v)=>{var k;const w=(k=n.timeTrackingData)==null?void 0:k[v.id];return C+((w==null?void 0:w.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Sa(a.value,n.estimationUnit)),u=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===$i.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),h=i.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),m=(g,y)=>{const _=g.target;_.closest("button")||_.closest("input")||_.closest(".ao-title")||y(_)};return(g,y)=>(i.openBlock(),i.createBlock(sl,{color:h.value,"onUpdate:color":y[2]||(y[2]=_=>h.value=_)},{clickable:i.withCtx(({openPicker:_,bgColor:C})=>[i.createVNode(rl,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:C,withLeftBorder:!0,onClick:v=>m(v,_)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",tfe,[i.createVNode(st,{id:t.id,class:"ao-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),s.value||a.value?(i.openBlock(),i.createElementBlock("span",nfe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",ofe,[u.value?(i.openBlock(),i.createElementBlock("div",rfe,[i.createElementVNode("div",ife,[i.createVNode(Ae,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",sfe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(il,{percentages:f.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",afe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ao-card-project-phase__footer-row",p.value?"":"ao-card-project-phase__no_deadline"])},[t.isEditable?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=v=>p.value=v),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[i.vModelText,p.value,void 0,{lazy:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("span",lfe,i.toDisplayString(i.unref(Ta)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",efe,[i.createVNode(he,{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]=i.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 ufe=i.defineComponent({__name:"AoBadge",props:{color:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("span",{class:"aoBadge",style:i.normalizeStyle({backgroundColor:t.color})},null,4))}});const dfe={class:"ao-card-project-milestone__default"},ffe={class:"ao-title-with-badge-wrapper"},pfe={class:"ao-card-project-item__title-line"},hfe={key:0,class:"ao-card-project-item-milestone__estimation"},mfe={key:0,class:"ao-card-project-milestone__archive"},gfe={class:"ao-card-project-milestone__activities"},vfe={class:"ao-card-project-milestone__activities-row"},yfe={class:"ao-card-project-milestone__subitem"},_fe={class:"ao-card-project-milestone__subitem"},Cfe={key:1,class:"ao-card-project-milestone__secondary"},bfe={class:"ao-card-project-milestone__footer"},kfe={key:1,class:"ao-field ao-card-project-milestone__deadline"},wfe={class:"ao-field__label"},Efe={key:2,class:"ao-card-project-milestone__assignee"},xfe=i.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,r=i.computed(()=>{var p;return((p=n.activities)==null?void 0:p.reduce((h,m)=>h+(m.estimation||0),0))||0}),s=i.computed(()=>!n.activities||!n.timeTrackingData?0:n.activities.reduce((p,h)=>{var g;const m=(g=n.timeTrackingData)==null?void 0:g[h.id];return p+((m==null?void 0:m.timeSpent)||0)},0)),a=i.computed(()=>n.estimationUnit==="days"?"d":"h"),l=i.computed(()=>Sa(s.value,n.estimationUnit));i.computed(()=>{const p=s.value/60;return p%1===0?p.toString():p.toFixed(2)});const c=i.computed(()=>{var p;return(p=n.activities)==null?void 0:p.length}),u=i.computed(()=>{var p;return(p=n.activities)==null?void 0:p.filter(h=>zc(h,n.closedStatus)).length}),d=i.computed(()=>(u.value||0)/(c.value||1)),f=p=>{o("updateMilestone",{id:n.id,name:p})};return(p,h)=>(i.openBlock(),i.createBlock(rl,{class:i.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!t.readonly,"tag-name":"li","is-selected":t.isSelected,color:t.phaseColor},{default:i.withCtx(()=>[i.createElementVNode("div",dfe,[i.createElementVNode("div",ffe,[i.createVNode(ufe,{color:t.color||""},null,8,["color"]),i.createElementVNode("div",pfe,[i.createVNode(st,{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"]),r.value||s.value?(i.openBlock(),i.createElementBlock("span",hfe," ("+i.toDisplayString(l.value)+"/"+i.toDisplayString(r.value)+i.toDisplayString(a.value)+")",1)):i.createCommentVNode("",!0)])]),!t.readonly&&t.isEditable?(i.openBlock(),i.createElementBlock("div",mfe,[i.createVNode(he,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?p.$t("archive"):p.$t("unarchive"),onClick:h[0]||(h[0]=i.withModifiers(()=>t.active?p.$emit("archiveMilestone",{id:t.id}):p.$emit("unarchiveMilestone",{id:t.id}),["stop"]))},null,8,["label"])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",gfe,[i.createElementVNode("div",vfe,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",yfe,[i.createVNode(Ae,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",_fe,i.toDisplayString(u.value)+" / "+i.toDisplayString(c.value),1)]),i.createVNode(il,{percentages:d.value,color:t.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):i.createCommentVNode("",!0),p.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Cfe,[i.renderSlot(p.$slots,"secondary")])):i.createCommentVNode("",!0)])])]),footer:i.withCtx(()=>[i.createElementVNode("div",bfe,[t.important?(i.openBlock(),i.createBlock(Ae,{key:0,name:"FlagRounded",class:i.normalizeClass(t.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):i.createCommentVNode("",!0),t.deadline?(i.openBlock(),i.createElementBlock("label",kfe,[i.createElementVNode("span",wfe,i.toDisplayString(i.unref(Ta)(t.deadline)),1)])):i.createCommentVNode("",!0),t.assignee?(i.openBlock(),i.createElementBlock("div",Efe,[i.createVNode(zn,{"user-name":i.unref(Ep)(t.assignee),"avatar-url":t.assignee.avatarUrl,color:t.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):i.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}});const Sfe={class:"ao-mapping-card-project-phase__header"},Tfe={class:"ao-card-project-item__title-line"},Afe={key:0,class:"ao-card-project-item-phase__estimation"},Nfe={class:"ao-mapping-card-project-phase__footer"},Dfe={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},Mfe={class:"ao-mapping-card-project-phase__subitem"},Bfe={class:"ao-mapping-card-project-phase__subitem"},$fe={key:0,class:"ao-mapping-card-project-phase__secondary"},Ofe={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},Lfe=i.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,r=g=>{o("update:title",g)},s=i.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((y,_)=>{var C;return y+((C=_.activities)==null?void 0:C.reduce((v,w)=>v+(w.estimation||0),0))},0))||0}),a=i.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var _;return g+(((_=y.activities)==null?void 0:_.reduce((C,v)=>{var k;const w=(k=n.timeTrackingData)==null?void 0:k[v.id];return C+((w==null?void 0:w.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Sa(a.value,n.estimationUnit)),u=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===$i.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),h=i.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),m=(g,y)=>{const _=g.target;_.closest("button")||_.closest("input")||_.closest(".ao-title")||y()};return(g,y)=>(i.openBlock(),i.createBlock(sl,{color:h.value,"onUpdate:color":y[2]||(y[2]=_=>h.value=_)},{clickable:i.withCtx(({openPicker:_,bgColor:C})=>[i.createVNode(rl,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:C,withLeftBorder:!0,onClick:v=>m(v,_)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",Tfe,[i.createVNode(st,{id:t.id,class:"ao-mapping-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),s.value||a.value?(i.openBlock(),i.createElementBlock("span",Afe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",Nfe,[u.value?(i.openBlock(),i.createElementBlock("div",Dfe,[i.createElementVNode("div",Mfe,[i.createVNode(Ae,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",Bfe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(il,{percentages:f.value,class:"ao-mapping-card-project-phase__progress",color:h.value},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",$fe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ao-mapping-card-project-phase__footer-row",p.value?"":"ao-mapping-card-project-phase__no_deadline"])},[t.isEditable?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=v=>p.value=v),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[i.vModelText,p.value,void 0,{lazy:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("span",Ofe,i.toDisplayString(i.unref(Ta)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",Sfe,[i.createVNode(he,{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]=i.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 Ife={class:"ao-project-phase"},Pfe={key:0,class:"ao-project-phase__drag ao-card__drag"},Ffe={key:1,class:"ao-project-phase__col-phase"},Rfe={key:2,class:"ao-mapping-project-phase__col-phase"},Vfe={key:0,class:"ao-project-phase__col-milestones"},zfe={class:"ao-project-phase__milestones-list-footer"},Ufe=i.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const{t:n}=qn(),o=t,r=e;i.watch(()=>o.phase.milestones,(v,w)=>{On(v,w)});const s=v=>{r("updatePhase",{id:o.phase.id,name:v})},a=v=>{r("updatePhase",{id:o.phase.id,deadline:v})},l=v=>{r("updatePhase",v)},c=i.computed(()=>o.phase.milestones.map(v=>Gy(v,o.closedStatus))),u=v=>{const{name:w,rank:k}=Vo(c.value??[],"milestone",n);r("addMilestone",{name:w,rank:k,phaseId:v})},d=v=>{r("updateMilestone",v)},f=v=>{r("archiveMilestone",v)},p=v=>{r("unarchiveMilestone",v)},h=v=>{r("archivePhase",v)},m=v=>{r("unarchivePhase",v)},g=v=>{"added"in v?r("updateMilestone",{id:v.added.element.id,phaseId:o.phase.id,rank:Ar(c.value,v.added.newIndex)}):"removed"in v||"moved"in v&&r("updateMilestone",{id:v.moved.element.id,rank:Ar(c.value,v.moved.newIndex)})},y=Ki.useRoute(),_=i.computed(()=>y.path.includes("/mapping")),C=i.computed(()=>{var v;return o.phase.id!==((v=y.params)==null?void 0:v.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:Jy(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(v,w)=>(i.openBlock(),i.createElementBlock("li",Ife,[i.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:i.normalizeStyle(C.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",Pfe,[i.createVNode(Ae,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):i.createCommentVNode("",!0),_.value?(i.openBlock(),i.createElementBlock("div",Rfe,[i.createVNode(Lfe,{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:m,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(i.openBlock(),i.createElementBlock("div",Ffe,[i.createVNode(cfe,{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:m,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),_.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Vfe,[i.createElementVNode("div",{class:"ao-project-phase__milestones",style:i.normalizeStyle(C.value)},[i.createVNode(i.unref(ho),i.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},v.$attrs,{onChange:g}),{item:i.withCtx(({element:k})=>{var b;return[i.createVNode(xfe,{id:k.id,name:k.name,color:k.color,"phase-color":t.phase.color,activities:k.activities,deadline:k.deadline,active:k.active,"is-editable":!t.readonly&&t.isEditable,"is-draggable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,"is-selected":k.id===((b=v.$route.params)==null?void 0:b.milestoneId),assignee:k.assignee,important:k.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:i.normalizeClass(["ao-project-phase__milestone"]),onClick:E=>!t.readonly&&v.$router.push({name:i.unref(je).milestone,params:{phaseId:t.phase.id,milestoneId:k.id}}),onUpdateMilestone:d,onArchiveMilestone:f,onUnarchiveMilestone:p},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"]),i.createElementVNode("div",zfe,[t.isEditable?(i.openBlock(),i.createBlock(mo,{key:0,label:v.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:w[0]||(w[0]=()=>u(t.phase.id))},null,8,["label"])):i.createCommentVNode("",!0)])],4)]))]))}});const qfe={class:"ao-project__phases"},Hfe={key:0,class:"ao-project-phase__phases-list-footer"},jfe={class:"ao-project-phase__col-phase"},Qu=i.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;i.watch(()=>n.phases,(h,m)=>{On(h,m)});const r=h=>{o("addMilestone",h)},s=h=>{o("updateMilestone",h)},a=h=>{o("archiveMilestone",h)},l=h=>{o("unarchiveMilestone",h)},c=h=>{o("archivePhase",h)},u=h=>{o("unarchivePhase",h)},d=h=>{if(h.moved){const m=Xi(h,n.phases??[]);o("updatePhase",{id:h.moved.element.id,rank:m})}},f=h=>{o("updatePhase",h)},p=h=>{o("addPhase",h)};return(h,m)=>(i.openBlock(),i.createElementBlock("div",qfe,[i.createVNode(i.unref(ho),{class:"ao-project-phase__phases-list","model-value":t.phases,"item-key":"id",handle:".ao-card__drag",onChange:d},{item:i.withCtx(({element:g})=>[i.createVNode(Ufe,{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:r,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?(i.openBlock(),i.createElementBlock("div",Hfe,[m[0]||(m[0]=i.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),i.createElementVNode("div",jfe,[i.createVNode(mo,{label:h.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:p},null,8,["label"])]),m[1]||(m[1]=i.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):i.createCommentVNode("",!0)]))}});const Wfe={class:"ao-add-template-modal__form-body"},Zfe={class:"field__row"},Kfe={class:"ao-add-template-modal__form-footer"},bg=i.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>n.templates.map(c=>({value:c.id,label:c.name}))),s=i.ref(null),a=c=>{s.value=c},l=()=>{s.value&&o("apply",s.value,n.projectId)};return(c,u)=>(i.openBlock(),i.createBlock(Aa,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(st,{title:c.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:i.withModifiers(l,["prevent"])},[i.createElementVNode("p",null,i.toDisplayString(c.$t("project.template.apply.notice")),1),i.createElementVNode("div",Wfe,[i.createElementVNode("div",Zfe,[i.createVNode(Nt,{value:s.value,options:r.value,detached:!0,onChange:a},null,8,["value","options"])])]),i.createElementVNode("footer",Kfe,[i.createVNode(he,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const Gfe={class:"ao-save-template-modal__form-body"},Yfe={class:"field__row"},Jfe={class:"ao-field ao-field--inline"},Xfe={class:"ao-field__label"},Qfe={class:"ao-save-template-modal__phases"},epe={class:"ao-field__label"},tpe={class:"ao-save-template-modal__phases-list"},npe=["value"],ope={class:"ao-save-template-modal__form-footer"},kg=i.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(""),s=i.ref([]);i.onMounted(()=>{s.value=n.phases.map(l=>l.id)});const a=()=>{r.value&&o("save",r.value,s.value)};return(l,c)=>(i.openBlock(),i.createBlock(Aa,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(st,{title:l.$t("project.template.save.title"),level:3},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:i.withModifiers(a,["prevent"])},[i.createElementVNode("div",Gfe,[i.createElementVNode("div",Yfe,[i.createElementVNode("label",Jfe,[i.createElementVNode("span",Xfe,i.toDisplayString(l.$t("project.template.name.label"))+": ",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.value=u),type:"text"},null,512),[[i.vModelText,r.value]])])]),i.createElementVNode("div",Qfe,[i.createElementVNode("div",epe,i.toDisplayString(l.$t("project.template.phases.label")),1),i.createElementVNode("div",tpe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.phases,u=>(i.openBlock(),i.createElementBlock("label",{class:"ao-field ao-field--checkbox",key:u.id},[i.withDirectives(i.createElementVNode("input",{type:"checkbox",value:u.id,"onUpdate:modelValue":c[1]||(c[1]=d=>s.value=d)},null,8,npe),[[i.vModelCheckbox,s.value]]),i.createElementVNode("span",null,i.toDisplayString(u.name),1)]))),128))])])]),i.createElementVNode("footer",ope,[i.createVNode(he,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const rpe={class:"ao-project"},ipe={class:"ao-project__body"},spe=i.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=qn(),o=t,r=e,s=i.computed(()=>o.phases.flatMap(D=>D.milestones)),a=()=>{const{name:D,rank:K}=Vo(o.phases,"phase",n);r("addPhase",{name:D,rank:K,projectId:o.project.id})},l=D=>{r("updatePhase",D)},c=D=>{r("archivePhase",D)},u=D=>{r("unarchivePhase",D)},d=D=>{r("copyPhaseToTemplate",D)},f=D=>{r("addMilestone",D)},p=D=>{r("updateMilestone",D)},h=D=>{r("archiveMilestone",D)},m=D=>{r("unarchiveMilestone",D)},g=D=>{r("addActivity",D)},y=D=>{r("update:activity",D)},_=D=>{r("archiveActivity",D)},C=D=>{r("unarchiveActivity",D)},v=D=>{r("addSubtask",D)},w=D=>{r("updateSubtask",D)},k=D=>{r("deleteSubtask",D)},b=i.computed(()=>s.value.flatMap(D=>D.activities)),E=D=>{r("addFiles",D)},S=D=>{r("removeFile",D)},T=D=>{r("addComment",D)},A=D=>{r("updateComment",D)},V=D=>{r("removeComment",D)},I=i.ref(!1),U=i.ref(!1),$=(D,K)=>{r("applyTemplate",{templateId:D,projectId:K}),I.value=!1},H=(D,K)=>{var ce;const P=(ce=o.templates)==null?void 0:ce.at(-1),q=P?rt.LexoRank.parse(P.rank).genNext():rt.LexoRank.middle();r("saveTemplate",{templateName:D,rank:q.format(),phaseIds:K}),U.value=!1},L=Ki.useRouter(),ee=i.ref("overview"),O=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(ee,D=>{D==="feed"?(L.push({name:je.feed}),console.log("Navigating to feed...")):D==="overview"?(L.push({name:je.project}),console.log("Navigating to feed...")):D==="mapping"&&(L.push({name:je.mapping}),console.log("Navigating to feed..."))}),(D,K)=>{var q;const P=i.resolveComponent("RouterView");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-overview"},D.$attrs),[i.createElementVNode("div",rpe,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createVNode(ts,{tabs:O,modelValue:ee.value,"onUpdate:modelValue":K[0]||(K[0]=ce=>ee.value=ce)},null,8,["modelValue"]),i.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:D.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:K[1]||(K[1]=ce=>D.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-project-overview__save-as-template",color:"primary",label:D.$t("project.template.save.label"),onClick:K[2]||(K[2]=ce=>U.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:1,class:"ao-project-overview__add-template",color:"primary",label:D.$t("project.template.apply.label"),onClick:K[3]||(K[3]=ce=>I.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",ipe,[i.createVNode(Qu,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(q=t.project)==null?void 0:q.estimationUnit,onAddMilestone:f,onUpdateMilestone:p,onArchiveMilestone:h,onUnarchiveMilestone:m,onAddPhase:a,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:u,onCopyPhaseToTemplate:d},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),i.createVNode(P,{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:K[4]||(K[4]=ce=>D.$router.push({name:i.unref(je).project})),onUpdateMilestone:p,onAddActivity:g,onUpdateActivity:y,onArchiveActivity:_,onUnarchiveActivity:C},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createVNode(P,{name:"modal",activities:b.value,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,"activity-types":t.activityTypes,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,"onUpdate:activity":y,onAddSubtask:v,onUpdateSubtask:w,onDeleteSubtask:k,onAddFiles:E,onRemoveFile:S,onAddComment:T,onUpdateComment:A,onRemoveComment:V},{default:i.withCtx(({Component:ce})=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(ce),null,{default:i.withCtx(Q=>[i.renderSlot(D.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(Q)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data"])]))],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[U.value?(i.openBlock(),i.createBlock(kg,{key:0,phases:t.phases,onClose:K[5]||(K[5]=ce=>U.value=!1),onSave:H},null,8,["phases"])):i.createCommentVNode("",!0),I.value?(i.openBlock(),i.createBlock(bg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:K[6]||(K[6]=ce=>I.value=!1),onApply:$},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const ape={class:"ao-card-feed__header"},lpe={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},cpe={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},upe={class:"ao-card-feed__body"},dpe={key:0,class:"ao-card-feed__breadcrumbs"},fpe={class:i.normalizeClass(["ao-card-feed__title-group"])},ppe={class:"ao-card-feed__title-line"},hpe={key:0,class:"ao-card-feed__slug"},mpe={key:1,class:"ao-card-feed__deadline"},gpe={class:"ao-card-feed__footer"},vpe={class:"ao-card-feed__footer-row"},ype={class:"ao-assignees"},_pe={key:0,class:"ao-assignee"},Cpe={key:0,class:"ao-card-feed__subitems"},bpe={key:0,class:"ao-card-feed__subitem"},kpe={class:"ao-card-feed__subitem"},wpe={key:1,class:"ao-card-feed__subitem"},Epe={class:"ao-card-feed__subitem"},xpe={class:"ao-card-feed__timer-wrapper"},Spe={class:"ao-card-feed__footer-row"},Tpe={key:0,class:"ao-card-feed__progress-wrapper"},Ape={class:"ao-card-feed__subitem"},Npe={class:"ao-card-feed__subitem"},ed=i.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{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,r=i.computed(()=>n.tagType==="milestone"?n.milestoneName:n.projectName),s=i.computed(()=>n.tagType==="milestone"?n.milestoneColor:n.projectColor),a=g=>{o("updateActivity",{id:n.id,name:g})},l=i.computed(()=>n.tagType==="milestone"&&n.phaseName?`${n.phaseName}`:n.phaseName&&n.milestoneName?`${n.phaseName} / ${n.milestoneName}`:""),c=i.computed(()=>n.assignee?[n.assignee]:[]),u=i.computed(()=>Ta(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=i.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.length}),h=i.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.filter(y=>y.isDone).length}),m=i.computed(()=>(h.value||0)/(p.value||1));return(g,y)=>(i.openBlock(),i.createBlock(rl,{class:i.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0},{header:i.withCtx(()=>[i.createElementVNode("div",ape,[r.value?(i.openBlock(),i.createBlock(Bi,{key:0,label:r.value,class:"ao-card-feed__project",variant:"solid",color:t.projectColor?void 0:"primary","raw-color":s.value},null,8,["label","color","raw-color"])):i.createCommentVNode("",!0),t.isPrivate||t.important||t.isClosed?(i.openBlock(),i.createElementBlock("div",lpe,[t.isPrivate?(i.openBlock(),i.createBlock(Ae,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):i.createCommentVNode("",!0),t.important?(i.openBlock(),i.createBlock(Ae,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):i.createCommentVNode("",!0),t.isClosed?(i.openBlock(),i.createBlock(Ae,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",cpe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])]),default:i.withCtx(()=>[i.createElementVNode("div",upe,[l.value?(i.openBlock(),i.createElementBlock("span",dpe,i.toDisplayString(l.value),1)):i.createCommentVNode("",!0),i.createElementVNode("div",fpe,[i.createElementVNode("div",ppe,[t.slug?(i.openBlock(),i.createElementBlock("span",hpe,i.toDisplayString(t.slug)+": ",1)):i.createCommentVNode("",!0),i.createVNode(st,{id:t.id,title:t.name,level:5,"is-editable":t.isEditable,"onUpdate:title":a,class:"ao-card-feed__title-inline"},null,8,["id","title","is-editable"])])]),t.deadline?(i.openBlock(),i.createElementBlock("span",mpe,i.toDisplayString(u.value),1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",gpe,[i.createElementVNode("div",vpe,[i.createElementVNode("ul",ype,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,_=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:_.id},[_?(i.openBlock(),i.createElementBlock("li",_pe,[i.createVNode(zn,{"user-name":i.unref(Ep)(_),"avatar-url":_.avatarUrl,"is-closable":!0,onClose:()=>d(_.id)},null,8,["user-name","avatar-url","onClose"])])):i.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(i.openBlock(),i.createElementBlock("ul",Cpe,[t.comments?(i.openBlock(),i.createElementBlock("li",bpe,[i.createVNode(Ae,{name:"ChatOutline",size:"sm"}),i.createElementVNode("span",kpe,i.toDisplayString(t.comments),1)])):i.createCommentVNode("",!0),t.attachments?(i.openBlock(),i.createElementBlock("li",wpe,[i.createVNode(Ae,{name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",Epe,i.toDisplayString(t.attachments),1)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",xpe,[i.createVNode(Ae,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:i.withModifiers(f,["stop"])})])]),i.createElementVNode("div",Spe,[t.tasks&&t.tasks.length?(i.openBlock(),i.createElementBlock("div",Tpe,[i.createElementVNode("div",Ape,[i.createVNode(Ae,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",Npe,i.toDisplayString(h.value)+" / "+i.toDisplayString(p.value),1)]),i.createVNode(il,{percentages:m.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):i.createCommentVNode("",!0)])])]),_:3},8,["class"]))}});const Dpe={class:"ao-project-milestone"},Mpe={class:"ao-project-milestone__header"},Bpe={class:"ao-project-milestone__header_line"},$pe={class:"ao-project-milestone__header_line"},Ope={class:"ao-project-milestone__title"},Lpe={key:0,class:"ao-fieldset ao-milestone__fieldset"},Ipe={class:"ao-field__row ao-milestone__field-row"},Ppe={class:"ao-field ao-field--inline"},Fpe={class:"ao-field__row ao-milestone__field-row"},Rpe={class:"ao-field ao-milestone__field-multiselect"},Vpe=["onClick"],zpe={class:"ao-project-milestone__body"},Upe={key:0,class:"ao-project-milestone__footer"},tp=i.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(t,{emit:e}){const{t:n}=qn(),o=t,r=e,s=k=>{var b;r("startTimer",k),(b=window.parent)==null||b.postMessage({type:"startTimer",data:k},"*")},a=i.computed(()=>{var k;return(k=o.phases)==null?void 0:k.find(b=>b.id===o.phaseId)}),l=i.computed(()=>{var k;return(k=o.phases)==null?void 0:k.flatMap(b=>b.milestones)}),c=i.computed(()=>{var k;return(k=l.value)==null?void 0:k.find(b=>b.id===o.milestoneId)}),u=i.computed(()=>{var k;return(k=c.value)==null?void 0:k.activities});i.watch(u,(k,b)=>{On(k,b)});const d=k=>{r("close",k)},f=()=>{const{name:k,rank:b}=Vo(u.value??[],"activity",n);r("addActivity",{milestoneId:o.milestoneId,name:k,rank:b,projectId:o.projectId})},p=k=>{r("updateActivity",k)},h=k=>{u.value&&"moved"in k&&r("updateActivity",{id:k.moved.element.id,rank:Ar(u.value,k.moved.newIndex)})},m=i.computed({get:()=>{var k;return(k=c.value)==null?void 0:k.color},set:k=>{c.value&&r("updateMilestone",{id:c.value.id,color:k})}}),g=i.computed({get:()=>{var k;return((k=c==null?void 0:c.value)==null?void 0:k.deadline)??""},set:k=>{c.value&&r("updateMilestone",{id:c.value.id,deadline:k!=null&&k.length?k:null})}}),y=k=>o.closedStatus?zc(k,o.closedStatus):!1,_=i.computed(()=>{var k;return((k=o.users)==null?void 0:k.map(b=>({label:`${b.firstName} ${b.lastName}`,value:b.id,avatar:b.avatarUrl})))||[]}),C=i.computed({get(){var k,b;return(b=(k=c.value)==null?void 0:k.assignee)!=null&&b.id?[c.value.assignee.id]:[]},set(k){r("updateMilestone",{id:o.milestoneId,assigneeId:k[0]??null})}}),v=i.computed({get(){var k;return((k=c.value)==null?void 0:k.important)??!1},set(k){r("updateMilestone",{id:o.milestoneId,important:k})}}),w=(k,b)=>{const E=k.currentTarget;E instanceof HTMLElement&&b(E)};return(k,b)=>{var E;return i.openBlock(),i.createElementBlock("div",Dpe,[i.createElementVNode("header",Mpe,[i.createElementVNode("div",Bpe,[i.createVNode(he,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),i.createElementVNode("div",$pe,[i.createElementVNode("div",Ope,[i.createVNode(st,{title:((E=c.value)==null?void 0:E.name)||t.milestoneId,level:5},null,8,["title"]),i.createVNode(qp,{modelValue:v.value,"onUpdate:modelValue":b[0]||(b[0]=S=>v.value=S),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:k.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(i.openBlock(),i.createElementBlock("div",Lpe,[i.createElementVNode("div",Ipe,[i.createElementVNode("label",Ppe,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":b[1]||(b[1]=S=>g.value=S),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[i.vModelText,g.value,void 0,{lazy:!0}]])])]),i.createElementVNode("div",Fpe,[i.createElementVNode("label",Rpe,[i.createVNode(Nt,{modelValue:C.value,"onUpdate:modelValue":b[2]||(b[2]=S=>C.value=S),options:_.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:k.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:i.withCtx(({option:S,handleTagRemove:T})=>[i.createVNode(zn,{"user-name":S.label,"avatar-url":S.avatar,"is-closable":!0,onClose:A=>T(S,A)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createVNode(sl,{color:m.value,"onUpdate:color":b[3]||(b[3]=S=>m.value=S)},{clickable:i.withCtx(({openPicker:S,bgColor:T})=>[i.createElementVNode("button",{style:i.normalizeStyle({background:T}),class:"color-button",onClick:A=>w(A,S)},null,12,Vpe)]),_:1},8,["color"])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",zpe,[i.createVNode(i.unref(ho),i.mergeProps({class:"ao-project-milestone__activities",list:u.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},k.$attrs,{onChange:h}),{item:i.withCtx(({element:S})=>{var T,A,V,I,U;return[i.createVNode(ed,{id:S.id,name:S.name||S.id,"project-id":t.projectId,"phase-name":(T=a.value)==null?void 0:T.name,"milestone-name":(A=c.value)==null?void 0:A.name,"milestone-color":(V=c.value)==null?void 0:V.color,deadline:S.deadline,important:S.important,users:t.users,assignee:S.assignee,slug:S.slug,comments:(I=S.comments)==null?void 0:I.length,attachments:(U=S.attachments)==null?void 0:U.length,tasks:S.tasks,"is-editable":t.isEditable,"is-private":S.private,"is-closed":y(S),onClick:$=>k.$router.push({name:i.unref(je).activity,params:{milestoneId:t.milestoneId,activityId:S.id}}),onUpdateActivity:p,onRemoveAssignee:()=>p({id:S.id,assigneeId:null}),onStartTimer:s},i.createSlots({_:2},[t.isEditable?{name:"secondary",fn:i.withCtx(()=>[t.isEditable&&S.active?(i.openBlock(),i.createBlock(he,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:k.$t("archive"),onClick:i.withModifiers(()=>k.$emit("archiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),t.isEditable&&!S.active?(i.openBlock(),i.createBlock(he,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:k.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>k.$emit("unarchiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),t.isEditable?(i.openBlock(),i.createElementBlock("div",Upe,[i.createVNode(mo,{"icon-name":"Add",label:k.$t("project.activity.add"),onClick:f},null,8,["label"])])):i.createCommentVNode("",!0)])])}}});const qpe=i.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},activities:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{var _;return(_=n.phases)==null?void 0:_.find(C=>C.id===n.phaseId)}),s=i.computed(()=>{var _;return(_=n.phases)==null?void 0:_.flatMap(C=>C.milestones)}),a=i.computed(()=>{var _;return(_=s.value)==null?void 0:_.find(C=>C.id===n.milestoneId)}),l=i.computed(()=>{var _;return(_=n.activities)==null?void 0:_.find(C=>C.id===n.activityId)}),c=_=>{o("update:activity",_)},u=_=>{o("addSubtask",_)},d=_=>{o("updateSubtask",_)},f=_=>{o("deleteSubtask",_)},p=_=>{o("addFiles",_)},h=_=>{o("removeFile",_)},m=_=>{o("addComment",_)},g=_=>{o("updateComment",_)},y=_=>{o("removeComment",_)};return(_,C)=>{var v,w;return l.value?(i.openBlock(),i.createBlock(Hu,{key:0,activity:l.value,"activity-types":t.activityTypes,"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:`${(v=r.value)==null?void 0:v.name} / ${(w=a.value)==null?void 0:w.name}`,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:[t.project],"time-tracking-data":t.timeTrackingData,onClose:_.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:f,onAddFiles:p,onRemoveFile:h,onAddComment:m,onUpdateComment:g,onRemoveComment:y},{default:i.withCtx(k=>[i.renderSlot(_.$slots,"default",i.normalizeProps(i.guardReactiveProps(k)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","onClose"])):i.createCommentVNode("",!0)}}}),Hpe={class:"ao-col-header"},jpe=i.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",Hpe,[i.createVNode(st,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(i.openBlock(),i.createBlock(Bi,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):i.createCommentVNode("",!0)]))}});function Wpe(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function Ca(t){return typeof t=="function"?t():i.unref(t)}const Zpe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Kpe=t=>t!=null,Mi=()=>{};function Gpe(t,e){function n(...o){return new Promise((r,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(r).catch(s)})}return n}function Ype(t,e={}){let n,o,r=Mi;const s=l=>{clearTimeout(l),r(),r=Mi};return l=>{const c=Ca(t),u=Ca(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)=>{r=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 Jpe(t,e=200,n={}){return Gpe(Ype(e,n),t)}function Xl(t){var e;const n=Ca(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Xpe=Zpe?window:void 0;function Qpe(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function ehe(t){const e=Qpe();return i.computed(()=>(e.value,!!t()))}function the(t,e,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:a=Xpe,immediate:l=!0}=n,c=ehe(()=>a&&"IntersectionObserver"in a),u=i.computed(()=>{const m=Ca(t);return(Array.isArray(m)?m:[m]).map(Xl).filter(Kpe)});let d=Mi;const f=i.ref(l),p=c.value?i.watch(()=>[u.value,Xl(o),f.value],([m,g])=>{if(d(),!f.value||!m.length)return;const y=new IntersectionObserver(e,{root:Xl(g),rootMargin:r,threshold:s});m.forEach(_=>_&&y.observe(_)),d=()=>{y.disconnect(),d=Mi}},{immediate:l,flush:"post"}):Mi,h=()=>{d(),p(),f.value=!1};return Wpe(h),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:h}}const nhe={class:i.normalizeClass(["ao-list-kanban"])},ohe={class:"ao-list-kanban__header"},rhe={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},ihe={key:1,class:"ao-list-kanban__end"},she={key:0,class:"ao-list-kanban__no-more"},ahe={key:1,class:"ao-list-kanban__divider"},lhe={key:1,class:"ao-list-kanban__footer"},che=i.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{}},emits:["add","update:list","change:list","loadMore","selectActivity","archiveActivity","unarchiveActivity","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1),s=i.ref(null);the(s,([{isIntersecting:f}])=>{r.value=f}),i.watch(r,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=>{"added"in f?o("updateActivity",{id:f.added.element.id,statusId:n.status.id,rank:Ar(n.list,f.added.newIndex)}):"removed"in f||"moved"in f&&o("updateActivity",{id:f.moved.element.id,rank:Ar(n.list,f.moved.newIndex)})},d=i.ref(!1);return(f,p)=>(i.openBlock(),i.createElementBlock("div",nhe,[t.title||f.$slots.header?i.renderSlot(f.$slots,"header",{},()=>{var h;return[i.createElementVNode("div",ohe,[t.title?(i.openBlock(),i.createBlock(jpe,{key:0,title:t.title,level:3,items:(h=t.list)==null?void 0:h.length},null,8,["title","items"])):i.createCommentVNode("",!0)])]},void 0,0):i.createCommentVNode("",!0),i.createVNode(i.unref(ho),i.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,onChange:u,onStart:p[1]||(p[1]=h=>d.value=!0),onEnd:p[2]||(p[2]=h=>d.value=!1),"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"}}),{item:i.withCtx(({element:h})=>{var m,g,y,_,C,v,w,k,b,E;return[i.createVNode(ed,{class:i.normalizeClass(a(h)?"ao-list-draggable":""),id:h.id,name:h.name,"project-name":(m=h.project)==null?void 0:m.name,"project-id":(g=h.project)==null?void 0:g.id,"project-color":(y=h.project)==null?void 0:y.color,"phase-name":(C=(_=h.milestone)==null?void 0:_.phase)==null?void 0:C.name,"milestone-name":(v=h.milestone)==null?void 0:v.name,"milestone-color":(w=h.milestone)==null?void 0:w.color,deadline:h.deadline,rules:((k=h.rules)==null?void 0:k.length)||0,tasks:h.tasks,description:h.description,important:h.important,type:h.type,comments:(b=h.comments)==null?void 0:b.length,attachments:(E=h.attachments)==null?void 0:E.length,users:t.users,assignee:h.assignee,slug:h.slug,"is-editable":a(h),"is-private":h.private,"tag-type":t.tagType,onUpdateActivity:[S=>a(h)&&c(S),()=>a(h)&&c],onClick:()=>l(h.id),onRemoveAssignee:()=>a(h)&&c({id:h.id,assigneeId:null}),onStartTimer:p[0]||(p[0]=S=>f.$emit("startTimer",S))},{secondary:i.withCtx(()=>[a(h)&&h.active?(i.openBlock(),i.createBlock(he,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.archive"),onClick:i.withModifiers(()=>f.$emit("archiveActivity",{id:h.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),a(h)&&!h.active?(i.openBlock(),i.createBlock(he,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>f.$emit("unarchiveActivity",{id:h.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0)]),_:2},1032,["class","id","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:i.withCtx(()=>[t.isLoading?(i.openBlock(),i.createElementBlock("div",rhe,[i.createVNode(Ae,{name:"Loading"})])):t.hasMore?(i.openBlock(),i.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:s,class:"ao-list-kanban__end"},null,512)):(i.openBlock(),i.createElementBlock("div",ihe,[t.noMoreLabel?(i.openBlock(),i.createElementBlock("span",she,i.toDisplayString(t.noMoreLabel),1)):t.isEditable?(i.openBlock(),i.createElementBlock("span",ahe)):i.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(i.openBlock(),i.createElementBlock("div",lhe,[i.renderSlot(f.$slots,"footer",{},()=>[t.isEditable?(i.openBlock(),i.createBlock(mo,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:p[3]||(p[3]=h=>f.$emit("add"))},null,8,["label"])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]))}});const uhe={class:"ao-field ao-search-field"},dhe=["value","placeholder"],fhe=i.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(t,{emit:e}){const n=t,o=e,r=async l=>{const u=l.target.value;o("update:modelValue",u,l)},s=Jpe(r,n.delay),a=l=>{o("clear",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",uhe,[i.createElementVNode("input",{value:t.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:t.placeholder,onInput:c[0]||(c[0]=(...u)=>i.unref(s)&&i.unref(s)(...u)),onKeypress:i.withKeys(r,["enter"])},null,40,dhe),i.createVNode(Ae,{name:"SearchRounded",class:i.normalizeClass(`ao-search-field__icon ao-search-field__action ${t.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),i.createVNode(he,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:i.normalizeClass(`ao-search-field__button ao-search-field__action ${t.modelValue?"ao-search-field__action--visible":""}`),onClick:a},null,8,["class"])]))}});const phe={class:"ao-feed"},hhe={class:"ao-feed__filters"},mhe={class:"ao-feed__body"},wg=i.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},project:{},projects:{},filters:{},activityTypes:{},users:{},userId:{},initialActivityId:{},initialActivitySlug:{},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{}},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"],setup(t,{emit:e}){const{t:n}=qn(),o=t,r=e;function s(P,q){r("toast",P,q)}const a=i.toRef(o,"activities"),l=async(P,q)=>{await r("selectActivity",P,q)},c=i.ref({}),u=i.ref(!1),d=i.ref(!1),f=i.computed(()=>o.project?"milestone":"project");i.watch([()=>o.statuses,()=>o.activities,()=>o.initialActivityId,()=>o.initialActivitySlug],async([P,q,ce,Q],[ie,R])=>{c.value=Object.fromEntries(P.map(te=>[te.id,q.filter(B=>{var G;return((G=B.status)==null?void 0:G.id)===te.id})])),ce&&!u.value?(l(ce,null),u.value=!0):Q&&!u.value&&(l(null,Q),u.value=!0),d.value&&On(q,R)},{immediate:!0});const p=i.computed(()=>{var P;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((P=o.selectedActivity.milestone.phase)==null?void 0:P.name)??""} / ${o.selectedActivity.milestone.name??""}`}),h=P=>{var R,te;const q=(R=o.activities)==null?void 0:R.at(-1),ce=q?rt.LexoRank.parse(q.rank).genNext():rt.LexoRank.middle(),Q=((te=o.activities)==null?void 0:te.length)??0,ie={name:n("activity.defaultName",{idx:Q+1}),rank:ce.format(),statusId:P.id};o.filters.assigneeId.length>0&&(ie.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(ie.projectId=o.filters.projectId[0]),o.filters.typeId.length>0&&(ie.typeId=o.filters.typeId[0]),d.value=!0,r("addActivity",ie)},m=(P,q)=>{d.value=!1,r("update:filters",{...o.filters,[P]:q})},g=i.computed(()=>o.project?[o.project]:o.projects??[]),y=i.computed(()=>g.value.map(P=>({value:P.id,label:P.name}))),_=i.computed(()=>{var P;return(P=o.activityTypes)==null?void 0:P.map(q=>({value:q.id,label:q.name}))}),C=i.computed(()=>o.users.map(P=>({value:P.id,label:`${P.firstName} ${P.lastName}`,avatar:P.avatarUrl}))),v=P=>{o.selectedActivity&&r("update:activity",P)},w=P=>{r("update:activity",P)},k=P=>{r("archiveActivity",P)},b=P=>{r("unarchiveActivity",P)},E=P=>{var q;r("startTimer",P),(q=window.parent)==null||q.postMessage({type:"startTimer",data:P},"*")},S=P=>{d.value=!1,r("update:searchText",P)},T=P=>{d.value=!1,r("clear:searchText",P)},A=P=>{o.selectedActivity&&r("addSubtask",P)},V=P=>{o.selectedActivity&&r("updateSubtask",P)},I=P=>{o.selectedActivity&&r("deleteSubtask",P)},U=P=>{r("addFiles",P)},$=P=>{r("removeFile",P)},H=P=>{o.selectedActivity&&r("addComment",{...P,activityId:o.selectedActivity.id})},L=P=>{const{id:q}=o.selectedActivity||{};q&&r("updateComment",P)},ee=P=>{const{id:q}=o.selectedActivity||{};q&&r("removeComment",P)},O=Ki.useRouter(),D=i.ref("feed"),K=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(D,P=>{P==="feed"?(O.push({name:je.feed}),console.log("Navigating to feed...")):P==="overview"?(O.push({name:je.project}),console.log("Navigating to feed...")):P==="mapping"&&(O.push({name:je.mapping}),console.log("Navigating to feed..."))}),(P,q)=>{var ce;return i.openBlock(),i.createElementBlock("div",phe,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createElementVNode("div",hhe,[i.createVNode(ts,{tabs:K,modelValue:D.value,"onUpdate:modelValue":q[0]||(q[0]=Q=>D.value=Q)},null,8,["modelValue"]),i.createVNode(fhe,{"model-value":t.searchText,placeholder:P.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":S,onClear:T},null,8,["model-value","placeholder"]),o.project?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Nt,{key:0,"model-value":t.filters[i.unref(Ao).project],mode:"tags",options:y.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:P.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":q[1]||(q[1]=Q=>m(i.unref(Ao).project,Q))},null,8,["model-value","options","placeholder"])),_.value?(i.openBlock(),i.createBlock(Nt,{key:1,"model-value":t.filters[i.unref(Ao).type],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:P.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":q[2]||(q[2]=Q=>m(i.unref(Ao).type,Q))},null,8,["model-value","options","placeholder"])):i.createCommentVNode("",!0),C.value.length?(i.openBlock(),i.createBlock(Nt,{key:2,"model-value":t.filters[i.unref(Ao).assignee],mode:"tags",options:C.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:P.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":q[3]||(q[3]=Q=>m(i.unref(Ao).assignee,Q))},{tag:i.withCtx(({option:Q,handleTagRemove:ie})=>[i.createVNode(zn,{"user-name":Q.label,"avatar-url":Q.avatar,"is-closable":!0,onClose:R=>ie(Q,R)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):i.createCommentVNode("",!0)]),i.createVNode(he,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":t.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:P.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:q[4]||(q[4]=Q=>P.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),i.createVNode(he,{class:"ao-feed__only-important",size:"sm","icon-name":t.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:P.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:q[5]||(q[5]=Q=>P.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),i.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:P.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:q[6]||(q[6]=Q=>P.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),i.createElementVNode("div",mhe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.statuses,Q=>(i.openBlock(),i.createBlock(che,{key:Q.id,status:Q,list:c.value[Q.id],title:Q.name,"footer-label":P.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,tagType:f.value,onAdd:()=>h(Q),onSelectActivity:l,onArchiveActivity:k,onUnarchiveActivity:b,onUpdateActivity:w,onStartTimer:E},null,8,["status","list","title","footer-label","users","user-id","is-editable","tagType","onAdd"]))),128))]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[t.selectedActivity?(i.openBlock(),i.createBlock(Hu,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"milestone-id":(ce=t.selectedActivity.milestone)==null?void 0:ce.id,"template-activities":a.value,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:p.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:g.value,"time-tracking-data":t.timeTrackingData,onClose:q[7]||(q[7]=()=>l(null,null)),"onUpdate:activity":v,onAddSubtask:A,onUpdateSubtask:V,onDeleteSubtask:I,onAddFiles:U,onRemoveFile:$,onAddComment:H,onUpdateComment:L,onRemoveComment:ee,onToast:s},{default:i.withCtx(Q=>[i.renderSlot(P.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(Q)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data"])):i.createCommentVNode("",!0)]))])}}});const ghe={class:"ao-project-mapping"},vhe={class:"ao-project-mapping-mapping__body"},yhe={class:"ao-project-mapping-mapping__phases"},_he={key:0,class:"ao-project-mapping-mapping__image-wrapper"},Che=["src","alt"],bhe=i.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}=qn(),o=t,r=e,s=()=>{const{name:_,rank:C}=Vo(o.phases,"phase",n);r("addPhase",{name:_,rank:C,projectId:o.project.id})},a=_=>{r("updatePhase",_)},l=_=>{r("archivePhase",_)},c=_=>{r("unarchivePhase",_)},u=_=>{r("copyPhaseToTemplate",_)},d=i.ref(!1),f=i.ref(!1),p=(_,C)=>{r("applyTemplate",{templateId:_,projectId:C}),d.value=!1},h=(_,C)=>{var k;const v=(k=o.templates)==null?void 0:k.at(-1),w=v?rt.LexoRank.parse(v.rank).genNext():rt.LexoRank.middle();r("saveTemplate",{templateName:_,rank:w.format(),phaseIds:C}),f.value=!1},m=Ki.useRouter(),g=i.ref("mapping"),y=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(g,_=>{_==="feed"?(m.push({name:je.feed}),console.log("Navigating to feed...")):_==="overview"?(m.push({name:je.project}),console.log("Navigating to feed...")):_==="mapping"&&(m.push({name:je.mapping}),console.log("Navigating to feed..."))}),(_,C)=>{var v;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-mapping-overview"},_.$attrs),[i.createElementVNode("div",ghe,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createVNode(ts,{modelValue:g.value,"onUpdate:modelValue":C[0]||(C[0]=w=>g.value=w),tabs:y},null,8,["modelValue"]),i.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:_.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:C[1]||(C[1]=w=>_.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:_.$t("project.template.save.label"),onClick:C[2]||(C[2]=w=>f.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:1,class:"ao-project-mapping-overview__add-template",color:"primary",label:_.$t("project.template.apply.label"),onClick:C[3]||(C[3]=w=>d.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",vhe,[i.createElementVNode("div",yhe,[i.createVNode(Qu,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"estimation-unit":(v=t.project)==null?void 0:v.estimationUnit,onAddPhase:s,onUpdatePhase:a,onArchivePhase:l,onUnarchivePhase:c,onCopyPhaseToTemplate:u},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),t.project.architectureImage?(i.openBlock(),i.createElementBlock("div",_he,[i.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:i.unref(n)("architectureImage.alt")},null,8,Che)])):i.createCommentVNode("",!0)])])],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[f.value?(i.openBlock(),i.createBlock(kg,{key:0,phases:t.phases,onClose:C[4]||(C[4]=w=>f.value=!1),onSave:h},null,8,["phases"])):i.createCommentVNode("",!0),d.value?(i.openBlock(),i.createBlock(bg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:C[5]||(C[5]=w=>d.value=!1),onApply:p},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const Oo={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},khe=(t,e={})=>[{path:t,name:Oo.TEMPLATES,redirect:{name:Oo.TEMPLATES_LIST},...e,children:[{path:"",name:Oo.TEMPLATES_LIST,component:Eg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Oo.TEMPLATE_DETAILS,component:Cg,props:!0}]}],je={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},whe=(t,e={})=>[{path:t,...e,redirect:{name:je.project},children:[{path:"",name:je.project,component:spe,props:!0,children:[{path:":phaseId/:milestoneId",name:je.milestone,component:tp,props:!0},{path:":phaseId/:milestoneId/:activityId",name:je.activity,props:{default:!0,modal:!0},components:{default:tp,modal:qpe}}]},{path:"feed",name:je.feed,component:wg,props:!0},{path:"mapping",name:je.mapping,component:bhe,props:!0}]}],Ehe={class:"ao-templates"},Eg=i.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=qn(),o=t,r=e;i.watch(()=>o.templates,(u,d)=>{On(u,d)});const s=()=>{var h,m;const u=(h=o.templates)==null?void 0:h.at(-1),d=u?rt.LexoRank.parse(u.rank).genNext():rt.LexoRank.middle(),f=((m=o.templates)==null?void 0:m.length)??0,p={name:n("template.defaultName.template",{idx:f+1}),rank:d.format()};r("addTemplate",p)},a=(u,d)=>{r("updateItem",{itemType:Be.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{r("removeItem",{itemType:Be.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=Xi(u,o.templates??[]);r("updateItem",{itemType:Be.TEMPLATES,id:u.moved.element.id,templateId:u.moved.element.id,data:{rank:d}})}};return(u,d)=>(i.openBlock(),i.createElementBlock("div",Ehe,[i.createVNode(Qi,null,{secondary:i.withCtx(()=>[i.createVNode(he,{label:u.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:s},null,8,["label"])]),_:1}),i.createVNode(i.unref(ho),{"model-value":t.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:c},{item:i.withCtx(({element:f})=>{var p;return[i.createVNode(k_,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?i.unref(jy)(f.phases):0,activities:f.phases?i.unref(Wy)(f.phases):0,"updated-at":f.updatedAt,"updated-by":f.updatedBy,onUpdateTitle:h=>a(f.id,h),onClick:h=>u.$router.push({name:i.unref(Oo).TEMPLATE_DETAILS,params:{templateId:f.id}}),onDeleteItem:d[0]||(d[0]=(h,m)=>l(h,m))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}});const xhe={class:"ao-field__label"},xg=i.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(["ao-field",{"ao-field--multiselect":t.isMultiselect}])},[i.createElementVNode("span",xhe,i.toDisplayString(t.label),1),i.renderSlot(e.$slots,"default")],2))}}),She=["type","value","disabled","readonly"],The=i.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,r=i.computed(()=>n.modelModifiers.lazy?"change":"input"),s=a=>{n.modelModifiers.number&&(a=Number(a)),o("update:modelValue",a)};return(a,l)=>(i.openBlock(),i.createBlock(xg,{label:t.label},{default:i.withCtx(()=>[i.createElementVNode("input",i.mergeProps({class:"ao-field__input",type:t.type,value:t.modelValue,disabled:t.isDisabled,readonly:t.isReadonly},{[i.toHandlerKey(r.value)]:l[0]||(l[0]=c=>s(c.target.value))}),null,16,She)]),_:1},8,["label"]))}}),Ahe={class:"ao-field"},Nhe={class:"ao-field__label"},Dhe=["checked","disabled"],Mhe=i.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)=>(i.openBlock(),i.createElementBlock("label",Ahe,[i.createElementVNode("span",Nhe,i.toDisplayString(t.label),1),i.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:t.modelValue,disabled:t.isDisabled,onChange:n[0]||(n[0]=o=>{var r;return e.$emit("update:modelValue",((r=o.target)==null?void 0:r.checked)??!1)})},null,40,Dhe)]))}});exports.AoAvatar=zn;exports.AoCardFeed=ed;exports.AoCheckboxField=Mhe;exports.AoColorPicker=sl;exports.AoFeed=wg;exports.AoField=xg;exports.AoInputField=The;exports.AoMultiselect=Nt;exports.AoProjectPhases=Qu;exports.AoTabBar=ts;exports.AoTemplateDetails=Cg;exports.AoTemplates=Og;exports.AoTemplatesList=Eg;exports.EstimationUnit=cp;exports.TemplateItemTypeEnum=lp;exports.activityFeedStatus=o7;exports.durationTypes=n7;exports.feedFilterTypes=Ao;exports.getProjectOverviewRoutes=whe;exports.getTemplateRoutes=khe;exports.listUpdateTypes=r7;exports.milestoneStatus=$i;exports.projectOverviewRoutes=je;exports.ruleComparators=ip;exports.ruleDurationUnits=ap;exports.ruleTriggerTypes=sp;exports.templateItemType=Be;exports.templateRouteNames=Oo;
|
|
58
|
+
*/function To(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=B1e(t):/rgb/.test(t)?e=ep(t):typeof t=="string"?e=ep(`rgba(${t})`):Object.prototype.toString.call(t)==="[object Object]"&&(e=t);const{r:n,g:o,b:r,a:s}=e,{h:a,s:l,v:c}=$1e(e);return{r:n,g:o,b:r,a:s===void 0?1:s,h:a,s:l,v:c}}function ju(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 Fc(t,e,n,o,r,s){const a=t==="l",l=e.createLinearGradient(0,0,a?n:0,a?0:o);l.addColorStop(.01,r),l.addColorStop(.99,s),e.fillStyle=l,e.fillRect(0,0,n,o)}function M1e({r:t,g:e,b:n},o){const r=a=>("0"+Number(a).toString(16)).slice(-2),s=`#${r(t)}${r(e)}${r(n)}`;return o?s.toUpperCase():s}function B1e(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 ep(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 $1e({r:t,g:e,b:n}){t=t/255,e=e/255,n=n/255;const o=Math.max(t,e,n),r=Math.min(t,e,n),s=o-r;let a=0;o===r?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-r/o).toFixed(2)),c=parseFloat(o.toFixed(2));return{h:a,s:l,v:c}}var Wu=i.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),Fc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Fc("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"),r=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})};r(t);const s=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",s)}}});const O1e={ref:"canvasSaturation"};function L1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectSaturation&&t.selectSaturation(...a),["prevent","stop"]))},[i.createVNode("canvas",O1e,null,512),i.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}Wu.render=L1e;Wu.__file="src/color/Saturation.vue";var Zu=i.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 r=o.createLinearGradient(0,0,0,n);r.addColorStop(0,"#FF0000"),r.addColorStop(.17*1,"#FF00FF"),r.addColorStop(.17*2,"#0000FF"),r.addColorStop(.17*3,"#00FFFF"),r.addColorStop(.17*4,"#00FF00"),r.addColorStop(.17*5,"#FFFF00"),r.addColorStop(1,"#FF0000"),o.fillStyle=r,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 r=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)}}});const I1e={ref:"canvasHue"};function P1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectHue&&t.selectHue(...a),["prevent","stop"]))},[i.createVNode("canvas",I1e,null,512),i.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}Zu.render=P1e;Zu.__file="src/color/Hue.vue";var Ku=i.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,r=ju(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),Fc("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=r=>{let s=r.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 F1e={ref:"canvasAlpha"};function R1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=i.withModifiers((...a)=>t.selectAlpha&&t.selectAlpha(...a),["prevent","stop"]))},[i.createVNode("canvas",F1e,null,512),i.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}Ku.render=R1e;Ku.__file="src/color/Alpha.vue";var Gu=i.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,r=ju(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,e,n),s.fillStyle=this.color,s.fillRect(0,0,e,n)}}});function V1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("canvas")}Gu.render=V1e;Gu.__file="src/color/Preview.vue";var Yu=i.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:r,width:s,height:a}=this.suckerCanvas.getBoundingClientRect(),l=e-r,c=n-o,d=this.suckerCanvas.getContext("2d").getImageData(Math.min(l,s-1),Math.min(c,a-1),1,1);let[f,p,h,m]=d.data;m=parseFloat((m/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}, ${h}, ${m})`,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:r,left:s,width:a,height:l}=t.getBoundingClientRect(),c=n-s,u=o-r,f=t.getContext("2d").getImageData(Math.min(c,a-1),Math.min(u,l-1),1,1);let[p,h,m,g]=f.data;g=parseFloat((g/255).toFixed(2)),this.$emit("selectSucker",{r:p,g:h,b:m,a:g})}))}}});const z1e=i.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),U1e={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},q1e=i.createVNode("g",{fill:"none","fill-rule":"evenodd"},[i.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[i.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),i.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[i.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function H1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[t.isSucking?i.createCommentVNode("v-if",!0):(i.openBlock(),i.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))},[z1e],2)),t.isSucking?(i.openBlock(),i.createBlock("svg",U1e,[q1e])):i.createCommentVNode("v-if",!0)])}Yu.render=H1e;Yu.__file="src/color/Sucker.vue";var Ju=i.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(t,{emit:e}){return{modelColor:i.computed({get(){return t.color||""},set(s){e("inputColor",s)}}),handleFocus:s=>{e("inputFocus",s)},handleBlur:s=>{e("inputBlur",s)}}}});const j1e={class:"color-type"},W1e={class:"name"};function Z1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",j1e,[i.createVNode("span",W1e,i.toDisplayString(t.name),1),i.withDirectives(i.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),[[i.vModelText,t.modelColor]])])}Ju.render=Z1e;Ju.__file="src/color/Box.vue";var Xu=i.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=i.ref(),o=i.ref([]),r=i.ref();t.colorsHistoryKey&&localStorage&&(o.value=JSON.parse(localStorage.getItem(t.colorsHistoryKey))||[]),r.value=ju(4).toDataURL(),i.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:r,selectColor:a}}});const K1e={class:"colors"},G1e={key:0,class:"colors history"};function Y1e(t,e,n,o,r,s){return i.openBlock(),i.createBlock("div",null,[i.createVNode("ul",K1e,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(t.colorsDefault,a=>(i.openBlock(),i.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[i.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),i.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))]),t.colorsHistory.length?(i.openBlock(),i.createBlock("ul",G1e,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(t.colorsHistory,a=>(i.openBlock(),i.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[i.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),i.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))])):i.createCommentVNode("v-if",!0)])}Xu.render=Y1e;Xu.__file="src/color/Colors.vue";var Tr=i.defineComponent({components:{Saturation:Wu,Hue:Zu,Alpha:Ku,Preview:Gu,Sucker:Yu,Box:Ju,Colors:Xu},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 M1e(this.rgba,!0)}},created(){Object.assign(this,To(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:r,s,v:a}=To(t);Object.assign(this,{r:e,g:n,b:o,h:r,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:r,s,v:a}=To(t);Object.assign(this,{r:e,g:n,b:o,h:r,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:r,h:s,s:a,v:l}=To(t);Object.assign(this,{r:e,g:n,b:o,a:r,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:r,h:s,s:a,v:l}=To(t);Object.assign(this,{r:e,g:n,b:o,a:r,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:r,h:s,s:a,v:l}=To(t);Object.assign(this,{r:e,g:n,b:o,a:r,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:r,h:s,s:a,v:l}=To(t);Object.assign(this,{r:e,g:n,b:o,a:r,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const J1e={class:"color-set"};function X1e(t,e,n,o,r,s){const a=i.resolveComponent("Saturation"),l=i.resolveComponent("Hue"),c=i.resolveComponent("Alpha"),u=i.resolveComponent("Preview"),d=i.resolveComponent("Sucker"),f=i.resolveComponent("Box"),p=i.resolveComponent("Colors");return i.openBlock(),i.createBlock("div",{class:["hu-color-picker",{light:t.isLightTheme}],style:{width:t.totalWidth+"px"}},[i.createVNode("div",J1e,[i.createVNode(a,{ref:"saturation",color:t.rgbString,hsv:t.hsv,size:t.hueHeight,onSelectSaturation:t.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),i.createVNode(l,{ref:"hue",hsv:t.hsv,width:t.hueWidth,height:t.hueHeight,onSelectHue:t.selectHue},null,8,["hsv","width","height","onSelectHue"]),i.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"])]),i.createVNode("div",{style:{height:t.previewHeight+"px"},class:"color-show"},[i.createVNode(u,{color:t.rgbaString,width:t.previewWidth,height:t.previewHeight},null,8,["color","width","height"]),t.suckerHide?i.createCommentVNode("v-if",!0):(i.openBlock(),i.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),i.createVNode(f,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.createVNode(f,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),i.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"]),i.createCommentVNode(" custom options "),i.renderSlot(t.$slots,"default")],6)}Tr.render=X1e;Tr.__file="src/color/ColorPicker.vue";Tr.install=t=>{t.component(Tr.name,Tr)};const Q1e={class:"color-picker-wrapper"},sl=i.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1),s=i.ref(null),a=i.ref(null),l=i.ref(0),c=i.ref(0),u=async m=>{a.value=m,r.value=!0,await i.nextTick();const g=m.getBoundingClientRect(),y=s.value,_=(y==null?void 0:y.offsetHeight)||300,C=window.innerHeight-g.bottom,v=g.top,w=C<_&&v>_;console.log("pickerHeight = "+_),l.value=w?g.top-_-8:g.bottom+8,c.value=g.left,setTimeout(()=>{window.addEventListener("click",f)},0)},d=i.computed(()=>({position:"fixed",top:`${l.value}px`,left:`${c.value}px`,zIndex:1e3})),f=m=>{const g=m.target;s.value&&!s.value.contains(g)&&(r.value=!1,o("update:color",p.value),window.removeEventListener("click",f))};i.onBeforeUnmount(()=>{window.removeEventListener("click",f)}),i.watch(()=>n.color,m=>{r.value||(p.value=m)});const p=i.ref(n.color),h=m=>{const{r:g,g:y,b:_,a:C}=m.rgba;p.value=`rgba(${g}, ${y}, ${_}, ${C})`};return(m,g)=>(i.openBlock(),i.createElementBlock("div",Q1e,[i.renderSlot(m.$slots,"clickable",{openPicker:u,bgColor:t.color}),r.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:s,class:"color-picker",style:i.normalizeStyle(d.value)},[i.createVNode(i.unref(Tr),{class:"color-picker-box",theme:"light",color:t.color,onChangeColor:h},null,8,["color"])],4)):i.createCommentVNode("",!0)]))}});const efe={class:"ao-card-project-phase__header"},tfe={class:"ao-card-project-item__title-line"},nfe={key:0,class:"ao-card-project-item-phase__estimation"},ofe={class:"ao-card-project-phase__footer"},rfe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},ife={class:"ao-card-project-phase__subitem"},sfe={class:"ao-card-project-phase__subitem"},afe={key:0,class:"ao-card-project-phase__secondary"},lfe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},cfe=i.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,r=g=>{o("update:title",g)},s=i.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((y,_)=>{var C;return y+((C=_.activities)==null?void 0:C.reduce((v,w)=>v+(w.estimation||0),0))},0))||0}),a=i.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var _;return g+(((_=y.activities)==null?void 0:_.reduce((C,v)=>{var k;const w=(k=n.timeTrackingData)==null?void 0:k[v.id];return C+((w==null?void 0:w.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Sa(a.value,n.estimationUnit)),u=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===$i.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),h=i.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),m=(g,y)=>{const _=g.target;_.closest("button")||_.closest("input")||_.closest(".ao-title")||y(_)};return(g,y)=>(i.openBlock(),i.createBlock(sl,{color:h.value,"onUpdate:color":y[2]||(y[2]=_=>h.value=_)},{clickable:i.withCtx(({openPicker:_,bgColor:C})=>[i.createVNode(rl,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:C,withLeftBorder:!0,onClick:v=>m(v,_)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",tfe,[i.createVNode(st,{id:t.id,class:"ao-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),s.value||a.value?(i.openBlock(),i.createElementBlock("span",nfe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",ofe,[u.value?(i.openBlock(),i.createElementBlock("div",rfe,[i.createElementVNode("div",ife,[i.createVNode(Ae,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",sfe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(il,{percentages:f.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",afe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ao-card-project-phase__footer-row",p.value?"":"ao-card-project-phase__no_deadline"])},[t.isEditable?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=v=>p.value=v),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[i.vModelText,p.value,void 0,{lazy:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("span",lfe,i.toDisplayString(i.unref(Ta)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",efe,[i.createVNode(he,{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]=i.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 ufe=i.defineComponent({__name:"AoBadge",props:{color:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("span",{class:"aoBadge",style:i.normalizeStyle({backgroundColor:t.color})},null,4))}});const dfe={class:"ao-card-project-milestone__default"},ffe={class:"ao-title-with-badge-wrapper"},pfe={class:"ao-card-project-item__title-line"},hfe={key:0,class:"ao-card-project-item-milestone__estimation"},mfe={key:0,class:"ao-card-project-milestone__archive"},gfe={class:"ao-card-project-milestone__activities"},vfe={class:"ao-card-project-milestone__activities-row"},yfe={class:"ao-card-project-milestone__subitem"},_fe={class:"ao-card-project-milestone__subitem"},Cfe={key:1,class:"ao-card-project-milestone__secondary"},bfe={class:"ao-card-project-milestone__footer"},kfe={key:1,class:"ao-field ao-card-project-milestone__deadline"},wfe={class:"ao-field__label"},Efe={key:2,class:"ao-card-project-milestone__assignee"},xfe=i.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,r=i.computed(()=>{var p;return((p=n.activities)==null?void 0:p.reduce((h,m)=>h+(m.estimation||0),0))||0}),s=i.computed(()=>!n.activities||!n.timeTrackingData?0:n.activities.reduce((p,h)=>{var g;const m=(g=n.timeTrackingData)==null?void 0:g[h.id];return p+((m==null?void 0:m.timeSpent)||0)},0)),a=i.computed(()=>n.estimationUnit==="days"?"d":"h"),l=i.computed(()=>Sa(s.value,n.estimationUnit));i.computed(()=>{const p=s.value/60;return p%1===0?p.toString():p.toFixed(2)});const c=i.computed(()=>{var p;return(p=n.activities)==null?void 0:p.length}),u=i.computed(()=>{var p;return(p=n.activities)==null?void 0:p.filter(h=>zc(h,n.closedStatus)).length}),d=i.computed(()=>(u.value||0)/(c.value||1)),f=p=>{o("updateMilestone",{id:n.id,name:p})};return(p,h)=>(i.openBlock(),i.createBlock(rl,{class:i.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!t.readonly,"tag-name":"li","is-selected":t.isSelected,color:t.phaseColor},{default:i.withCtx(()=>[i.createElementVNode("div",dfe,[i.createElementVNode("div",ffe,[i.createVNode(ufe,{color:t.color||""},null,8,["color"]),i.createElementVNode("div",pfe,[i.createVNode(st,{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"]),r.value||s.value?(i.openBlock(),i.createElementBlock("span",hfe," ("+i.toDisplayString(l.value)+"/"+i.toDisplayString(r.value)+i.toDisplayString(a.value)+")",1)):i.createCommentVNode("",!0)])]),!t.readonly&&t.isEditable?(i.openBlock(),i.createElementBlock("div",mfe,[i.createVNode(he,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?p.$t("archive"):p.$t("unarchive"),onClick:h[0]||(h[0]=i.withModifiers(()=>t.active?p.$emit("archiveMilestone",{id:t.id}):p.$emit("unarchiveMilestone",{id:t.id}),["stop"]))},null,8,["label"])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",gfe,[i.createElementVNode("div",vfe,[c.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",yfe,[i.createVNode(Ae,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",_fe,i.toDisplayString(u.value)+" / "+i.toDisplayString(c.value),1)]),i.createVNode(il,{percentages:d.value,color:t.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):i.createCommentVNode("",!0),p.$slots.secondary?(i.openBlock(),i.createElementBlock("div",Cfe,[i.renderSlot(p.$slots,"secondary")])):i.createCommentVNode("",!0)])])]),footer:i.withCtx(()=>[i.createElementVNode("div",bfe,[t.important?(i.openBlock(),i.createBlock(Ae,{key:0,name:"FlagRounded",class:i.normalizeClass(t.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):i.createCommentVNode("",!0),t.deadline?(i.openBlock(),i.createElementBlock("label",kfe,[i.createElementVNode("span",wfe,i.toDisplayString(i.unref(Ta)(t.deadline)),1)])):i.createCommentVNode("",!0),t.assignee?(i.openBlock(),i.createElementBlock("div",Efe,[i.createVNode(zn,{"user-name":i.unref(Ep)(t.assignee),"avatar-url":t.assignee.avatarUrl,color:t.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):i.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}});const Sfe={class:"ao-mapping-card-project-phase__header"},Tfe={class:"ao-card-project-item__title-line"},Afe={key:0,class:"ao-card-project-item-phase__estimation"},Nfe={class:"ao-mapping-card-project-phase__footer"},Dfe={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},Mfe={class:"ao-mapping-card-project-phase__subitem"},Bfe={class:"ao-mapping-card-project-phase__subitem"},$fe={key:0,class:"ao-mapping-card-project-phase__secondary"},Ofe={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},Lfe=i.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,r=g=>{o("update:title",g)},s=i.computed(()=>{var g;return((g=n.milestones)==null?void 0:g.reduce((y,_)=>{var C;return y+((C=_.activities)==null?void 0:C.reduce((v,w)=>v+(w.estimation||0),0))},0))||0}),a=i.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((g,y)=>{var _;return g+(((_=y.activities)==null?void 0:_.reduce((C,v)=>{var k;const w=(k=n.timeTrackingData)==null?void 0:k[v.id];return C+((w==null?void 0:w.timeSpent)||0)},0))||0)},0)),l=i.computed(()=>n.estimationUnit==="days"?"d":"h"),c=i.computed(()=>Sa(a.value,n.estimationUnit)),u=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.length}),d=i.computed(()=>{var g;return(g=n.milestones)==null?void 0:g.filter(y=>y.status===$i.done).length}),f=i.computed(()=>(d.value||0)/(u.value||1)),p=i.computed({get:()=>n.deadline??"",set:g=>o("update:deadline",g!=null&&g.length?g:null)}),h=i.computed({get:()=>n.color,set:g=>{o("updatePhase",{id:n.id,color:g})}}),m=(g,y)=>{const _=g.target;_.closest("button")||_.closest("input")||_.closest(".ao-title")||y()};return(g,y)=>(i.openBlock(),i.createBlock(sl,{color:h.value,"onUpdate:color":y[2]||(y[2]=_=>h.value=_)},{clickable:i.withCtx(({openPicker:_,bgColor:C})=>[i.createVNode(rl,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:C,withLeftBorder:!0,onClick:v=>m(v,_)},i.createSlots({default:i.withCtx(()=>[i.createElementVNode("div",Tfe,[i.createVNode(st,{id:t.id,class:"ao-mapping-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":r},null,8,["id","title","is-editable"]),s.value||a.value?(i.openBlock(),i.createElementBlock("span",Afe," ("+i.toDisplayString(c.value)+"/"+i.toDisplayString(s.value)+i.toDisplayString(l.value)+")",1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",Nfe,[u.value?(i.openBlock(),i.createElementBlock("div",Dfe,[i.createElementVNode("div",Mfe,[i.createVNode(Ae,{name:"MountainFlagOutlineRounded",size:"sm"}),i.createElementVNode("span",Bfe,i.toDisplayString(d.value)+" / "+i.toDisplayString(u.value),1)]),i.createVNode(il,{percentages:f.value,class:"ao-mapping-card-project-phase__progress",color:h.value},null,8,["percentages","color"]),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",$fe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ao-mapping-card-project-phase__footer-row",p.value?"":"ao-mapping-card-project-phase__no_deadline"])},[t.isEditable?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=v=>p.value=v),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[i.vModelText,p.value,void 0,{lazy:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("span",Ofe,i.toDisplayString(i.unref(Ta)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:i.withCtx(()=>[i.createElementVNode("div",Sfe,[i.createVNode(he,{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]=i.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 Ife={class:"ao-project-phase"},Pfe={key:0,class:"ao-project-phase__drag ao-card__drag"},Ffe={key:1,class:"ao-project-phase__col-phase"},Rfe={key:2,class:"ao-mapping-project-phase__col-phase"},Vfe={key:0,class:"ao-project-phase__col-milestones"},zfe={class:"ao-project-phase__milestones-list-footer"},Ufe=i.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const{t:n}=qn(),o=t,r=e;i.watch(()=>o.phase.milestones,(v,w)=>{On(v,w)});const s=v=>{r("updatePhase",{id:o.phase.id,name:v})},a=v=>{r("updatePhase",{id:o.phase.id,deadline:v})},l=v=>{r("updatePhase",v)},c=i.computed(()=>o.phase.milestones.map(v=>Qy(v,o.closedStatus))),u=v=>{const{name:w,rank:k}=Vo(c.value??[],"milestone",n);r("addMilestone",{name:w,rank:k,phaseId:v})},d=v=>{r("updateMilestone",v)},f=v=>{r("archiveMilestone",v)},p=v=>{r("unarchiveMilestone",v)},h=v=>{r("archivePhase",v)},m=v=>{r("unarchivePhase",v)},g=v=>{"added"in v?r("updateMilestone",{id:v.added.element.id,phaseId:o.phase.id,rank:Ar(c.value,v.added.newIndex)}):"removed"in v||"moved"in v&&r("updateMilestone",{id:v.moved.element.id,rank:Ar(c.value,v.moved.newIndex)})},y=Ki.useRoute(),_=i.computed(()=>y.path.includes("/mapping")),C=i.computed(()=>{var v;return o.phase.id!==((v=y.params)==null?void 0:v.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:t_(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(v,w)=>(i.openBlock(),i.createElementBlock("li",Ife,[i.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:i.normalizeStyle(C.value)},[t.isEditable?(i.openBlock(),i.createElementBlock("div",Pfe,[i.createVNode(Ae,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):i.createCommentVNode("",!0),_.value?(i.openBlock(),i.createElementBlock("div",Rfe,[i.createVNode(Lfe,{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:m,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(i.openBlock(),i.createElementBlock("div",Ffe,[i.createVNode(cfe,{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:m,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),_.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Vfe,[i.createElementVNode("div",{class:"ao-project-phase__milestones",style:i.normalizeStyle(C.value)},[i.createVNode(i.unref(ho),i.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},v.$attrs,{onChange:g}),{item:i.withCtx(({element:k})=>{var b;return[i.createVNode(xfe,{id:k.id,name:k.name,color:k.color,"phase-color":t.phase.color,activities:k.activities,deadline:k.deadline,active:k.active,"is-editable":!t.readonly&&t.isEditable,"is-draggable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,"is-selected":k.id===((b=v.$route.params)==null?void 0:b.milestoneId),assignee:k.assignee,important:k.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:i.normalizeClass(["ao-project-phase__milestone"]),onClick:E=>!t.readonly&&v.$router.push({name:i.unref(je).milestone,params:{phaseId:t.phase.id,milestoneId:k.id}}),onUpdateMilestone:d,onArchiveMilestone:f,onUnarchiveMilestone:p},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"]),i.createElementVNode("div",zfe,[t.isEditable?(i.openBlock(),i.createBlock(mo,{key:0,label:v.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:w[0]||(w[0]=()=>u(t.phase.id))},null,8,["label"])):i.createCommentVNode("",!0)])],4)]))]))}});const qfe={class:"ao-project__phases"},Hfe={key:0,class:"ao-project-phase__phases-list-footer"},jfe={class:"ao-project-phase__col-phase"},Qu=i.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;i.watch(()=>n.phases,(h,m)=>{On(h,m)});const r=h=>{o("addMilestone",h)},s=h=>{o("updateMilestone",h)},a=h=>{o("archiveMilestone",h)},l=h=>{o("unarchiveMilestone",h)},c=h=>{o("archivePhase",h)},u=h=>{o("unarchivePhase",h)},d=h=>{if(h.moved){const m=Xi(h,n.phases??[]);o("updatePhase",{id:h.moved.element.id,rank:m})}},f=h=>{o("updatePhase",h)},p=h=>{o("addPhase",h)};return(h,m)=>(i.openBlock(),i.createElementBlock("div",qfe,[i.createVNode(i.unref(ho),{class:"ao-project-phase__phases-list","model-value":t.phases,"item-key":"id",handle:".ao-card__drag",onChange:d},{item:i.withCtx(({element:g})=>[i.createVNode(Ufe,{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:r,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?(i.openBlock(),i.createElementBlock("div",Hfe,[m[0]||(m[0]=i.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),i.createElementVNode("div",jfe,[i.createVNode(mo,{label:h.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:p},null,8,["label"])]),m[1]||(m[1]=i.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):i.createCommentVNode("",!0)]))}});const Wfe={class:"ao-add-template-modal__form-body"},Zfe={class:"field__row"},Kfe={class:"ao-add-template-modal__form-footer"},xg=i.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>n.templates.map(c=>({value:c.id,label:c.name}))),s=i.ref(null),a=c=>{s.value=c},l=()=>{s.value&&o("apply",s.value,n.projectId)};return(c,u)=>(i.openBlock(),i.createBlock(Aa,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(st,{title:c.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:i.withModifiers(l,["prevent"])},[i.createElementVNode("p",null,i.toDisplayString(c.$t("project.template.apply.notice")),1),i.createElementVNode("div",Wfe,[i.createElementVNode("div",Zfe,[i.createVNode(Nt,{value:s.value,options:r.value,detached:!0,onChange:a},null,8,["value","options"])])]),i.createElementVNode("footer",Kfe,[i.createVNode(he,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const Gfe={class:"ao-save-template-modal__form-body"},Yfe={class:"field__row"},Jfe={class:"ao-field ao-field--inline"},Xfe={class:"ao-field__label"},Qfe={class:"ao-save-template-modal__phases"},epe={class:"ao-field__label"},tpe={class:"ao-save-template-modal__phases-list"},npe=["value"],ope={class:"ao-save-template-modal__form-footer"},Sg=i.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(""),s=i.ref([]);i.onMounted(()=>{s.value=n.phases.map(l=>l.id)});const a=()=>{r.value&&o("save",r.value,s.value)};return(l,c)=>(i.openBlock(),i.createBlock(Aa,{size:"sm"},{header:i.withCtx(()=>[i.createVNode(st,{title:l.$t("project.template.save.title"),level:3},null,8,["title"])]),default:i.withCtx(()=>[i.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:i.withModifiers(a,["prevent"])},[i.createElementVNode("div",Gfe,[i.createElementVNode("div",Yfe,[i.createElementVNode("label",Jfe,[i.createElementVNode("span",Xfe,i.toDisplayString(l.$t("project.template.name.label"))+": ",1),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.value=u),type:"text"},null,512),[[i.vModelText,r.value]])])]),i.createElementVNode("div",Qfe,[i.createElementVNode("div",epe,i.toDisplayString(l.$t("project.template.phases.label")),1),i.createElementVNode("div",tpe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.phases,u=>(i.openBlock(),i.createElementBlock("label",{class:"ao-field ao-field--checkbox",key:u.id},[i.withDirectives(i.createElementVNode("input",{type:"checkbox",value:u.id,"onUpdate:modelValue":c[1]||(c[1]=d=>s.value=d)},null,8,npe),[[i.vModelCheckbox,s.value]]),i.createElementVNode("span",null,i.toDisplayString(u.name),1)]))),128))])])]),i.createElementVNode("footer",ope,[i.createVNode(he,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const rpe={class:"ao-project"},ipe={class:"ao-project__body"},spe=i.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=qn(),o=t,r=e,s=i.computed(()=>o.phases.flatMap(D=>D.milestones)),a=()=>{const{name:D,rank:K}=Vo(o.phases,"phase",n);r("addPhase",{name:D,rank:K,projectId:o.project.id})},l=D=>{r("updatePhase",D)},c=D=>{r("archivePhase",D)},u=D=>{r("unarchivePhase",D)},d=D=>{r("copyPhaseToTemplate",D)},f=D=>{r("addMilestone",D)},p=D=>{r("updateMilestone",D)},h=D=>{r("archiveMilestone",D)},m=D=>{r("unarchiveMilestone",D)},g=D=>{r("addActivity",D)},y=D=>{r("update:activity",D)},_=D=>{r("archiveActivity",D)},C=D=>{r("unarchiveActivity",D)},v=D=>{r("addSubtask",D)},w=D=>{r("updateSubtask",D)},k=D=>{r("deleteSubtask",D)},b=i.computed(()=>s.value.flatMap(D=>D.activities)),E=D=>{r("addFiles",D)},S=D=>{r("removeFile",D)},T=D=>{r("addComment",D)},A=D=>{r("updateComment",D)},V=D=>{r("removeComment",D)},I=i.ref(!1),U=i.ref(!1),$=(D,K)=>{r("applyTemplate",{templateId:D,projectId:K}),I.value=!1},H=(D,K)=>{var ce;const P=(ce=o.templates)==null?void 0:ce.at(-1),q=P?rt.LexoRank.parse(P.rank).genNext():rt.LexoRank.middle();r("saveTemplate",{templateName:D,rank:q.format(),phaseIds:K}),U.value=!1},L=Ki.useRouter(),ee=i.ref("overview"),O=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(ee,D=>{D==="feed"?(L.push({name:je.feed}),console.log("Navigating to feed...")):D==="overview"?(L.push({name:je.project}),console.log("Navigating to feed...")):D==="mapping"&&(L.push({name:je.mapping}),console.log("Navigating to feed..."))}),(D,K)=>{var q;const P=i.resolveComponent("RouterView");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-overview"},D.$attrs),[i.createElementVNode("div",rpe,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createVNode(ts,{tabs:O,modelValue:ee.value,"onUpdate:modelValue":K[0]||(K[0]=ce=>ee.value=ce)},null,8,["modelValue"]),i.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:D.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:K[1]||(K[1]=ce=>D.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-project-overview__save-as-template",color:"primary",label:D.$t("project.template.save.label"),onClick:K[2]||(K[2]=ce=>U.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:1,class:"ao-project-overview__add-template",color:"primary",label:D.$t("project.template.apply.label"),onClick:K[3]||(K[3]=ce=>I.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",ipe,[i.createVNode(Qu,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(q=t.project)==null?void 0:q.estimationUnit,onAddMilestone:f,onUpdateMilestone:p,onArchiveMilestone:h,onUnarchiveMilestone:m,onAddPhase:a,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:u,onCopyPhaseToTemplate:d},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),i.createVNode(P,{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:K[4]||(K[4]=ce=>D.$router.push({name:i.unref(je).project})),onUpdateMilestone:p,onAddActivity:g,onUpdateActivity:y,onArchiveActivity:_,onUnarchiveActivity:C},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createVNode(P,{name:"modal",activities:b.value,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,"activity-types":t.activityTypes,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,"onUpdate:activity":y,onAddSubtask:v,onUpdateSubtask:w,onDeleteSubtask:k,onAddFiles:E,onRemoveFile:S,onAddComment:T,onUpdateComment:A,onRemoveComment:V},{default:i.withCtx(({Component:ce})=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(ce),null,{default:i.withCtx(Q=>[i.renderSlot(D.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(Q)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data"])]))],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[U.value?(i.openBlock(),i.createBlock(Sg,{key:0,phases:t.phases,onClose:K[5]||(K[5]=ce=>U.value=!1),onSave:H},null,8,["phases"])):i.createCommentVNode("",!0),I.value?(i.openBlock(),i.createBlock(xg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:K[6]||(K[6]=ce=>I.value=!1),onApply:$},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const ape={class:"ao-card-feed__header"},lpe={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},cpe={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},upe={class:"ao-card-feed__body"},dpe={key:0,class:"ao-card-feed__breadcrumbs"},fpe={class:i.normalizeClass(["ao-card-feed__title-group"])},ppe={class:"ao-card-feed__title-line"},hpe={key:0,class:"ao-card-feed__slug"},mpe={key:1,class:"ao-card-feed__deadline"},gpe={class:"ao-card-feed__footer"},vpe={class:"ao-card-feed__footer-row"},ype={class:"ao-assignees"},_pe={key:0,class:"ao-assignee"},Cpe={key:0,class:"ao-card-feed__subitems"},bpe={key:0,class:"ao-card-feed__subitem"},kpe={class:"ao-card-feed__subitem"},wpe={key:1,class:"ao-card-feed__subitem"},Epe={class:"ao-card-feed__subitem"},xpe={class:"ao-card-feed__timer-wrapper"},Spe={class:"ao-card-feed__footer-row"},Tpe={key:0,class:"ao-card-feed__progress-wrapper"},Ape={class:"ao-card-feed__subitem"},Npe={class:"ao-card-feed__subitem"},ed=i.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{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,r=i.computed(()=>n.tagType==="milestone"?n.milestoneName:n.projectName),s=i.computed(()=>n.tagType==="milestone"?n.milestoneColor:n.projectColor),a=g=>{o("updateActivity",{id:n.id,name:g})},l=i.computed(()=>n.tagType==="milestone"&&n.phaseName?`${n.phaseName}`:n.phaseName&&n.milestoneName?`${n.phaseName} / ${n.milestoneName}`:""),c=i.computed(()=>n.assignee?[n.assignee]:[]),u=i.computed(()=>Ta(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=i.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.length}),h=i.computed(()=>{var g;return(g=n.tasks)==null?void 0:g.filter(y=>y.isDone).length}),m=i.computed(()=>(h.value||0)/(p.value||1));return(g,y)=>(i.openBlock(),i.createBlock(rl,{class:i.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0},{header:i.withCtx(()=>[i.createElementVNode("div",ape,[r.value?(i.openBlock(),i.createBlock(Bi,{key:0,label:r.value,class:"ao-card-feed__project",variant:"solid",color:t.projectColor?void 0:"primary","raw-color":s.value},null,8,["label","color","raw-color"])):i.createCommentVNode("",!0),t.isPrivate||t.important||t.isClosed?(i.openBlock(),i.createElementBlock("div",lpe,[t.isPrivate?(i.openBlock(),i.createBlock(Ae,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):i.createCommentVNode("",!0),t.important?(i.openBlock(),i.createBlock(Ae,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):i.createCommentVNode("",!0),t.isClosed?(i.openBlock(),i.createBlock(Ae,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),g.$slots.secondary?(i.openBlock(),i.createElementBlock("div",cpe,[i.renderSlot(g.$slots,"secondary")])):i.createCommentVNode("",!0)])]),default:i.withCtx(()=>[i.createElementVNode("div",upe,[l.value?(i.openBlock(),i.createElementBlock("span",dpe,i.toDisplayString(l.value),1)):i.createCommentVNode("",!0),i.createElementVNode("div",fpe,[i.createElementVNode("div",ppe,[t.slug?(i.openBlock(),i.createElementBlock("span",hpe,i.toDisplayString(t.slug)+": ",1)):i.createCommentVNode("",!0),i.createVNode(st,{id:t.id,title:t.name,level:5,"is-editable":t.isEditable,"onUpdate:title":a,class:"ao-card-feed__title-inline"},null,8,["id","title","is-editable"])])]),t.deadline?(i.openBlock(),i.createElementBlock("span",mpe,i.toDisplayString(u.value),1)):i.createCommentVNode("",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("div",gpe,[i.createElementVNode("div",vpe,[i.createElementVNode("ul",ype,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,_=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:_.id},[_?(i.openBlock(),i.createElementBlock("li",_pe,[i.createVNode(zn,{"user-name":i.unref(Ep)(_),"avatar-url":_.avatarUrl,"is-closable":!0,onClose:()=>d(_.id)},null,8,["user-name","avatar-url","onClose"])])):i.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(i.openBlock(),i.createElementBlock("ul",Cpe,[t.comments?(i.openBlock(),i.createElementBlock("li",bpe,[i.createVNode(Ae,{name:"ChatOutline",size:"sm"}),i.createElementVNode("span",kpe,i.toDisplayString(t.comments),1)])):i.createCommentVNode("",!0),t.attachments?(i.openBlock(),i.createElementBlock("li",wpe,[i.createVNode(Ae,{name:"AttachFileRounded",size:"sm"}),i.createElementVNode("span",Epe,i.toDisplayString(t.attachments),1)])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",xpe,[i.createVNode(Ae,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:i.withModifiers(f,["stop"])})])]),i.createElementVNode("div",Spe,[t.tasks&&t.tasks.length?(i.openBlock(),i.createElementBlock("div",Tpe,[i.createElementVNode("div",Ape,[i.createVNode(Ae,{name:"SelectCheckBox",size:"sm"}),i.createElementVNode("span",Npe,i.toDisplayString(h.value)+" / "+i.toDisplayString(p.value),1)]),i.createVNode(il,{percentages:m.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):i.createCommentVNode("",!0)])])]),_:3},8,["class"]))}});const Dpe={class:"ao-project-milestone"},Mpe={class:"ao-project-milestone__header"},Bpe={class:"ao-project-milestone__header_line"},$pe={class:"ao-project-milestone__header_line"},Ope={class:"ao-project-milestone__title"},Lpe={key:0,class:"ao-fieldset ao-milestone__fieldset"},Ipe={class:"ao-field__row ao-milestone__field-row"},Ppe={class:"ao-field ao-field--inline"},Fpe={class:"ao-field__row ao-milestone__field-row"},Rpe={class:"ao-field ao-milestone__field-multiselect"},Vpe=["onClick"],zpe={class:"ao-project-milestone__body"},Upe={key:0,class:"ao-project-milestone__footer"},tp=i.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(t,{emit:e}){const{t:n}=qn(),o=t,r=e,s=k=>{var b;r("startTimer",k),(b=window.parent)==null||b.postMessage({type:"startTimer",data:k},"*")},a=i.computed(()=>{var k;return(k=o.phases)==null?void 0:k.find(b=>b.id===o.phaseId)}),l=i.computed(()=>{var k;return(k=o.phases)==null?void 0:k.flatMap(b=>b.milestones)}),c=i.computed(()=>{var k;return(k=l.value)==null?void 0:k.find(b=>b.id===o.milestoneId)}),u=i.computed(()=>{var k;return(k=c.value)==null?void 0:k.activities});i.watch(u,(k,b)=>{On(k,b)});const d=k=>{r("close",k)},f=()=>{const{name:k,rank:b}=Vo(u.value??[],"activity",n);r("addActivity",{milestoneId:o.milestoneId,name:k,rank:b,projectId:o.projectId})},p=k=>{r("updateActivity",k)},h=k=>{u.value&&"moved"in k&&r("updateActivity",{id:k.moved.element.id,rank:Ar(u.value,k.moved.newIndex)})},m=i.computed({get:()=>{var k;return(k=c.value)==null?void 0:k.color},set:k=>{c.value&&r("updateMilestone",{id:c.value.id,color:k})}}),g=i.computed({get:()=>{var k;return((k=c==null?void 0:c.value)==null?void 0:k.deadline)??""},set:k=>{c.value&&r("updateMilestone",{id:c.value.id,deadline:k!=null&&k.length?k:null})}}),y=k=>o.closedStatus?zc(k,o.closedStatus):!1,_=i.computed(()=>{var k;return((k=o.users)==null?void 0:k.map(b=>({label:`${b.firstName} ${b.lastName}`,value:b.id,avatar:b.avatarUrl})))||[]}),C=i.computed({get(){var k,b;return(b=(k=c.value)==null?void 0:k.assignee)!=null&&b.id?[c.value.assignee.id]:[]},set(k){r("updateMilestone",{id:o.milestoneId,assigneeId:k[0]??null})}}),v=i.computed({get(){var k;return((k=c.value)==null?void 0:k.important)??!1},set(k){r("updateMilestone",{id:o.milestoneId,important:k})}}),w=(k,b)=>{const E=k.currentTarget;E instanceof HTMLElement&&b(E)};return(k,b)=>{var E;return i.openBlock(),i.createElementBlock("div",Dpe,[i.createElementVNode("header",Mpe,[i.createElementVNode("div",Bpe,[i.createVNode(he,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),i.createElementVNode("div",$pe,[i.createElementVNode("div",Ope,[i.createVNode(st,{title:((E=c.value)==null?void 0:E.name)||t.milestoneId,level:5},null,8,["title"]),i.createVNode(qp,{modelValue:v.value,"onUpdate:modelValue":b[0]||(b[0]=S=>v.value=S),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:k.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(i.openBlock(),i.createElementBlock("div",Lpe,[i.createElementVNode("div",Ipe,[i.createElementVNode("label",Ppe,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":b[1]||(b[1]=S=>g.value=S),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[i.vModelText,g.value,void 0,{lazy:!0}]])])]),i.createElementVNode("div",Fpe,[i.createElementVNode("label",Rpe,[i.createVNode(Nt,{modelValue:C.value,"onUpdate:modelValue":b[2]||(b[2]=S=>C.value=S),options:_.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:k.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:i.withCtx(({option:S,handleTagRemove:T})=>[i.createVNode(zn,{"user-name":S.label,"avatar-url":S.avatar,"is-closable":!0,onClose:A=>T(S,A)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),i.createVNode(sl,{color:m.value,"onUpdate:color":b[3]||(b[3]=S=>m.value=S)},{clickable:i.withCtx(({openPicker:S,bgColor:T})=>[i.createElementVNode("button",{style:i.normalizeStyle({background:T}),class:"color-button",onClick:A=>w(A,S)},null,12,Vpe)]),_:1},8,["color"])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",zpe,[i.createVNode(i.unref(ho),i.mergeProps({class:"ao-project-milestone__activities",list:u.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},k.$attrs,{onChange:h}),{item:i.withCtx(({element:S})=>{var T,A,V,I,U;return[i.createVNode(ed,{id:S.id,name:S.name||S.id,"project-id":t.projectId,"phase-name":(T=a.value)==null?void 0:T.name,"milestone-name":(A=c.value)==null?void 0:A.name,"milestone-color":(V=c.value)==null?void 0:V.color,deadline:S.deadline,important:S.important,users:t.users,assignee:S.assignee,slug:S.slug,comments:(I=S.comments)==null?void 0:I.length,attachments:(U=S.attachments)==null?void 0:U.length,tasks:S.tasks,"is-editable":t.isEditable,"is-private":S.private,"is-closed":y(S),onClick:$=>k.$router.push({name:i.unref(je).activity,params:{milestoneId:t.milestoneId,activityId:S.id}}),onUpdateActivity:p,onRemoveAssignee:()=>p({id:S.id,assigneeId:null}),onStartTimer:s},i.createSlots({_:2},[t.isEditable?{name:"secondary",fn:i.withCtx(()=>[t.isEditable&&S.active?(i.openBlock(),i.createBlock(he,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:k.$t("archive"),onClick:i.withModifiers(()=>k.$emit("archiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),t.isEditable&&!S.active?(i.openBlock(),i.createBlock(he,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:k.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>k.$emit("unarchiveActivity",{id:S.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),t.isEditable?(i.openBlock(),i.createElementBlock("div",Upe,[i.createVNode(mo,{"icon-name":"Add",label:k.$t("project.activity.add"),onClick:f},null,8,["label"])])):i.createCommentVNode("",!0)])])}}});const qpe=i.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},activities:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>{var _;return(_=n.phases)==null?void 0:_.find(C=>C.id===n.phaseId)}),s=i.computed(()=>{var _;return(_=n.phases)==null?void 0:_.flatMap(C=>C.milestones)}),a=i.computed(()=>{var _;return(_=s.value)==null?void 0:_.find(C=>C.id===n.milestoneId)}),l=i.computed(()=>{var _;return(_=n.activities)==null?void 0:_.find(C=>C.id===n.activityId)}),c=_=>{o("update:activity",_)},u=_=>{o("addSubtask",_)},d=_=>{o("updateSubtask",_)},f=_=>{o("deleteSubtask",_)},p=_=>{o("addFiles",_)},h=_=>{o("removeFile",_)},m=_=>{o("addComment",_)},g=_=>{o("updateComment",_)},y=_=>{o("removeComment",_)};return(_,C)=>{var v,w;return l.value?(i.openBlock(),i.createBlock(Hu,{key:0,activity:l.value,"activity-types":t.activityTypes,"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:`${(v=r.value)==null?void 0:v.name} / ${(w=a.value)==null?void 0:w.name}`,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:[t.project],"time-tracking-data":t.timeTrackingData,onClose:_.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:f,onAddFiles:p,onRemoveFile:h,onAddComment:m,onUpdateComment:g,onRemoveComment:y},{default:i.withCtx(k=>[i.renderSlot(_.$slots,"default",i.normalizeProps(i.guardReactiveProps(k)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","onClose"])):i.createCommentVNode("",!0)}}}),Hpe={class:"ao-col-header"},jpe=i.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("header",Hpe,[i.createVNode(st,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(i.openBlock(),i.createBlock(Bi,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):i.createCommentVNode("",!0)]))}});function Wpe(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function Ca(t){return typeof t=="function"?t():i.unref(t)}const Zpe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Kpe=t=>t!=null,Mi=()=>{};function Gpe(t,e){function n(...o){return new Promise((r,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(r).catch(s)})}return n}function Ype(t,e={}){let n,o,r=Mi;const s=l=>{clearTimeout(l),r(),r=Mi};return l=>{const c=Ca(t),u=Ca(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)=>{r=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 Jpe(t,e=200,n={}){return Gpe(Ype(e,n),t)}function Xl(t){var e;const n=Ca(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Xpe=Zpe?window:void 0;function Qpe(){const t=i.ref(!1),e=i.getCurrentInstance();return e&&i.onMounted(()=>{t.value=!0},e),t}function ehe(t){const e=Qpe();return i.computed(()=>(e.value,!!t()))}function the(t,e,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:a=Xpe,immediate:l=!0}=n,c=ehe(()=>a&&"IntersectionObserver"in a),u=i.computed(()=>{const m=Ca(t);return(Array.isArray(m)?m:[m]).map(Xl).filter(Kpe)});let d=Mi;const f=i.ref(l),p=c.value?i.watch(()=>[u.value,Xl(o),f.value],([m,g])=>{if(d(),!f.value||!m.length)return;const y=new IntersectionObserver(e,{root:Xl(g),rootMargin:r,threshold:s});m.forEach(_=>_&&y.observe(_)),d=()=>{y.disconnect(),d=Mi}},{immediate:l,flush:"post"}):Mi,h=()=>{d(),p(),f.value=!1};return Wpe(h),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:h}}const nhe={class:i.normalizeClass(["ao-list-kanban"])},ohe={class:"ao-list-kanban__header"},rhe={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},ihe={key:1,class:"ao-list-kanban__end"},she={key:0,class:"ao-list-kanban__no-more"},ahe={key:1,class:"ao-list-kanban__divider"},lhe={key:1,class:"ao-list-kanban__footer"},che=i.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{}},emits:["add","update:list","change:list","loadMore","selectActivity","archiveActivity","unarchiveActivity","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1),s=i.ref(null);the(s,([{isIntersecting:f}])=>{r.value=f}),i.watch(r,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=>{"added"in f?o("updateActivity",{id:f.added.element.id,statusId:n.status.id,rank:Ar(n.list,f.added.newIndex)}):"removed"in f||"moved"in f&&o("updateActivity",{id:f.moved.element.id,rank:Ar(n.list,f.moved.newIndex)})},d=i.ref(!1);return(f,p)=>(i.openBlock(),i.createElementBlock("div",nhe,[t.title||f.$slots.header?i.renderSlot(f.$slots,"header",{},()=>{var h;return[i.createElementVNode("div",ohe,[t.title?(i.openBlock(),i.createBlock(jpe,{key:0,title:t.title,level:3,items:(h=t.list)==null?void 0:h.length},null,8,["title","items"])):i.createCommentVNode("",!0)])]},void 0,0):i.createCommentVNode("",!0),i.createVNode(i.unref(ho),i.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,onChange:u,onStart:p[1]||(p[1]=h=>d.value=!0),onEnd:p[2]||(p[2]=h=>d.value=!1),"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"}}),{item:i.withCtx(({element:h})=>{var m,g,y,_,C,v,w,k,b,E;return[i.createVNode(ed,{class:i.normalizeClass(a(h)?"ao-list-draggable":""),id:h.id,name:h.name,"project-name":(m=h.project)==null?void 0:m.name,"project-id":(g=h.project)==null?void 0:g.id,"project-color":(y=h.project)==null?void 0:y.color,"phase-name":(C=(_=h.milestone)==null?void 0:_.phase)==null?void 0:C.name,"milestone-name":(v=h.milestone)==null?void 0:v.name,"milestone-color":(w=h.milestone)==null?void 0:w.color,deadline:h.deadline,rules:((k=h.rules)==null?void 0:k.length)||0,tasks:h.tasks,description:h.description,important:h.important,type:h.type,comments:(b=h.comments)==null?void 0:b.length,attachments:(E=h.attachments)==null?void 0:E.length,users:t.users,assignee:h.assignee,slug:h.slug,"is-editable":a(h),"is-private":h.private,"tag-type":t.tagType,onUpdateActivity:[S=>a(h)&&c(S),()=>a(h)&&c],onClick:()=>l(h.id),onRemoveAssignee:()=>a(h)&&c({id:h.id,assigneeId:null}),onStartTimer:p[0]||(p[0]=S=>f.$emit("startTimer",S))},{secondary:i.withCtx(()=>[a(h)&&h.active?(i.openBlock(),i.createBlock(he,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.archive"),onClick:i.withModifiers(()=>f.$emit("archiveActivity",{id:h.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0),a(h)&&!h.active?(i.openBlock(),i.createBlock(he,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.unarchive"),onClick:i.withModifiers(()=>f.$emit("unarchiveActivity",{id:h.id}),["stop"])},null,8,["label","onClick"])):i.createCommentVNode("",!0)]),_:2},1032,["class","id","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:i.withCtx(()=>[t.isLoading?(i.openBlock(),i.createElementBlock("div",rhe,[i.createVNode(Ae,{name:"Loading"})])):t.hasMore?(i.openBlock(),i.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:s,class:"ao-list-kanban__end"},null,512)):(i.openBlock(),i.createElementBlock("div",ihe,[t.noMoreLabel?(i.openBlock(),i.createElementBlock("span",she,i.toDisplayString(t.noMoreLabel),1)):t.isEditable?(i.openBlock(),i.createElementBlock("span",ahe)):i.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||t.footerLabel?(i.openBlock(),i.createElementBlock("div",lhe,[i.renderSlot(f.$slots,"footer",{},()=>[t.isEditable?(i.openBlock(),i.createBlock(mo,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:p[3]||(p[3]=h=>f.$emit("add"))},null,8,["label"])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]))}});const uhe={class:"ao-field ao-search-field"},dhe=["value","placeholder"],fhe=i.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(t,{emit:e}){const n=t,o=e,r=async l=>{const u=l.target.value;o("update:modelValue",u,l)},s=Jpe(r,n.delay),a=l=>{o("clear",l)};return(l,c)=>(i.openBlock(),i.createElementBlock("div",uhe,[i.createElementVNode("input",{value:t.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:t.placeholder,onInput:c[0]||(c[0]=(...u)=>i.unref(s)&&i.unref(s)(...u)),onKeypress:i.withKeys(r,["enter"])},null,40,dhe),i.createVNode(Ae,{name:"SearchRounded",class:i.normalizeClass(`ao-search-field__icon ao-search-field__action ${t.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),i.createVNode(he,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:i.normalizeClass(`ao-search-field__button ao-search-field__action ${t.modelValue?"ao-search-field__action--visible":""}`),onClick:a},null,8,["class"])]))}});const phe={class:"ao-feed"},hhe={class:"ao-feed__filters"},mhe={class:"ao-feed__body"},Tg=i.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},project:{},projects:{},filters:{},activityTypes:{},users:{},userId:{},initialActivityId:{},initialActivitySlug:{},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{}},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"],setup(t,{emit:e}){const{t:n}=qn(),o=t,r=e;function s(P,q){r("toast",P,q)}const a=i.toRef(o,"activities"),l=async(P,q)=>{await r("selectActivity",P,q)},c=i.ref({}),u=i.ref(!1),d=i.ref(!1),f=i.computed(()=>o.project?"milestone":"project");i.watch([()=>o.statuses,()=>o.activities,()=>o.initialActivityId,()=>o.initialActivitySlug],async([P,q,ce,Q],[ie,R])=>{c.value=Object.fromEntries(P.map(te=>[te.id,q.filter(B=>{var G;return((G=B.status)==null?void 0:G.id)===te.id})])),ce&&!u.value?(l(ce,null),u.value=!0):Q&&!u.value&&(l(null,Q),u.value=!0),d.value&&On(q,R)},{immediate:!0});const p=i.computed(()=>{var P;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((P=o.selectedActivity.milestone.phase)==null?void 0:P.name)??""} / ${o.selectedActivity.milestone.name??""}`}),h=P=>{var R,te;const q=(R=o.activities)==null?void 0:R.at(-1),ce=q?rt.LexoRank.parse(q.rank).genNext():rt.LexoRank.middle(),Q=((te=o.activities)==null?void 0:te.length)??0,ie={name:n("activity.defaultName",{idx:Q+1}),rank:ce.format(),statusId:P.id};o.filters.assigneeId.length>0&&(ie.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(ie.projectId=o.filters.projectId[0]),o.filters.typeId.length>0&&(ie.typeId=o.filters.typeId[0]),d.value=!0,r("addActivity",ie)},m=(P,q)=>{d.value=!1,r("update:filters",{...o.filters,[P]:q})},g=i.computed(()=>o.project?[o.project]:o.projects??[]),y=i.computed(()=>g.value.map(P=>({value:P.id,label:P.name}))),_=i.computed(()=>{var P;return(P=o.activityTypes)==null?void 0:P.map(q=>({value:q.id,label:q.name}))}),C=i.computed(()=>o.users.map(P=>({value:P.id,label:`${P.firstName} ${P.lastName}`,avatar:P.avatarUrl}))),v=P=>{o.selectedActivity&&r("update:activity",P)},w=P=>{r("update:activity",P)},k=P=>{r("archiveActivity",P)},b=P=>{r("unarchiveActivity",P)},E=P=>{var q;r("startTimer",P),(q=window.parent)==null||q.postMessage({type:"startTimer",data:P},"*")},S=P=>{d.value=!1,r("update:searchText",P)},T=P=>{d.value=!1,r("clear:searchText",P)},A=P=>{o.selectedActivity&&r("addSubtask",P)},V=P=>{o.selectedActivity&&r("updateSubtask",P)},I=P=>{o.selectedActivity&&r("deleteSubtask",P)},U=P=>{r("addFiles",P)},$=P=>{r("removeFile",P)},H=P=>{o.selectedActivity&&r("addComment",{...P,activityId:o.selectedActivity.id})},L=P=>{const{id:q}=o.selectedActivity||{};q&&r("updateComment",P)},ee=P=>{const{id:q}=o.selectedActivity||{};q&&r("removeComment",P)},O=Ki.useRouter(),D=i.ref("feed"),K=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(D,P=>{P==="feed"?(O.push({name:je.feed}),console.log("Navigating to feed...")):P==="overview"?(O.push({name:je.project}),console.log("Navigating to feed...")):P==="mapping"&&(O.push({name:je.mapping}),console.log("Navigating to feed..."))}),(P,q)=>{var ce;return i.openBlock(),i.createElementBlock("div",phe,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createElementVNode("div",hhe,[i.createVNode(ts,{tabs:K,modelValue:D.value,"onUpdate:modelValue":q[0]||(q[0]=Q=>D.value=Q)},null,8,["modelValue"]),i.createVNode(fhe,{"model-value":t.searchText,placeholder:P.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":S,onClear:T},null,8,["model-value","placeholder"]),o.project?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Nt,{key:0,"model-value":t.filters[i.unref(Ao).project],mode:"tags",options:y.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:P.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":q[1]||(q[1]=Q=>m(i.unref(Ao).project,Q))},null,8,["model-value","options","placeholder"])),_.value?(i.openBlock(),i.createBlock(Nt,{key:1,"model-value":t.filters[i.unref(Ao).type],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:P.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":q[2]||(q[2]=Q=>m(i.unref(Ao).type,Q))},null,8,["model-value","options","placeholder"])):i.createCommentVNode("",!0),C.value.length?(i.openBlock(),i.createBlock(Nt,{key:2,"model-value":t.filters[i.unref(Ao).assignee],mode:"tags",options:C.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:P.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":q[3]||(q[3]=Q=>m(i.unref(Ao).assignee,Q))},{tag:i.withCtx(({option:Q,handleTagRemove:ie})=>[i.createVNode(zn,{"user-name":Q.label,"avatar-url":Q.avatar,"is-closable":!0,onClose:R=>ie(Q,R)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):i.createCommentVNode("",!0)]),i.createVNode(he,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":t.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:P.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:q[4]||(q[4]=Q=>P.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),i.createVNode(he,{class:"ao-feed__only-important",size:"sm","icon-name":t.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:P.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:q[5]||(q[5]=Q=>P.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),i.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:P.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:q[6]||(q[6]=Q=>P.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),i.createElementVNode("div",mhe,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.statuses,Q=>(i.openBlock(),i.createBlock(che,{key:Q.id,status:Q,list:c.value[Q.id],title:Q.name,"footer-label":P.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,tagType:f.value,onAdd:()=>h(Q),onSelectActivity:l,onArchiveActivity:k,onUnarchiveActivity:b,onUpdateActivity:w,onStartTimer:E},null,8,["status","list","title","footer-label","users","user-id","is-editable","tagType","onAdd"]))),128))]),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[t.selectedActivity?(i.openBlock(),i.createBlock(Hu,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"milestone-id":(ce=t.selectedActivity.milestone)==null?void 0:ce.id,"template-activities":a.value,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:p.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:g.value,"time-tracking-data":t.timeTrackingData,onClose:q[7]||(q[7]=()=>l(null,null)),"onUpdate:activity":v,onAddSubtask:A,onUpdateSubtask:V,onDeleteSubtask:I,onAddFiles:U,onRemoveFile:$,onAddComment:H,onUpdateComment:L,onRemoveComment:ee,onToast:s},{default:i.withCtx(Q=>[i.renderSlot(P.$slots,"activityDetailsBody",i.normalizeProps(i.guardReactiveProps(Q)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data"])):i.createCommentVNode("",!0)]))])}}});const ghe={class:"ao-project-mapping"},vhe={class:"ao-project-mapping-mapping__body"},yhe={class:"ao-project-mapping-mapping__phases"},_he={key:0,class:"ao-project-mapping-mapping__image-wrapper"},Che=["src","alt"],bhe=i.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}=qn(),o=t,r=e,s=()=>{const{name:_,rank:C}=Vo(o.phases,"phase",n);r("addPhase",{name:_,rank:C,projectId:o.project.id})},a=_=>{r("updatePhase",_)},l=_=>{r("archivePhase",_)},c=_=>{r("unarchivePhase",_)},u=_=>{r("copyPhaseToTemplate",_)},d=i.ref(!1),f=i.ref(!1),p=(_,C)=>{r("applyTemplate",{templateId:_,projectId:C}),d.value=!1},h=(_,C)=>{var k;const v=(k=o.templates)==null?void 0:k.at(-1),w=v?rt.LexoRank.parse(v.rank).genNext():rt.LexoRank.middle();r("saveTemplate",{templateName:_,rank:w.format(),phaseIds:C}),f.value=!1},m=Ki.useRouter(),g=i.ref("mapping"),y=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return i.watch(g,_=>{_==="feed"?(m.push({name:je.feed}),console.log("Navigating to feed...")):_==="overview"?(m.push({name:je.project}),console.log("Navigating to feed...")):_==="mapping"&&(m.push({name:je.mapping}),console.log("Navigating to feed..."))}),(_,C)=>{var v;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({class:"ao-project-mapping-overview"},_.$attrs),[i.createElementVNode("div",ghe,[i.createVNode(Qi,null,{primary:i.withCtx(()=>[i.createVNode(ts,{modelValue:g.value,"onUpdate:modelValue":C[0]||(C[0]=w=>g.value=w),tabs:y},null,8,["modelValue"]),i.createVNode(he,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:_.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:C[1]||(C[1]=w=>_.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:i.withCtx(()=>[t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:0,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:_.$t("project.template.save.label"),onClick:C[2]||(C[2]=w=>f.value=!0)},null,8,["label"])):i.createCommentVNode("",!0),t.isEditable===!0?(i.openBlock(),i.createBlock(he,{key:1,class:"ao-project-mapping-overview__add-template",color:"primary",label:_.$t("project.template.apply.label"),onClick:C[3]||(C[3]=w=>d.value=!0)},null,8,["label"])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",vhe,[i.createElementVNode("div",yhe,[i.createVNode(Qu,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"estimation-unit":(v=t.project)==null?void 0:v.estimationUnit,onAddPhase:s,onUpdatePhase:a,onArchivePhase:l,onUnarchivePhase:c,onCopyPhaseToTemplate:u},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),t.project.architectureImage?(i.openBlock(),i.createElementBlock("div",_he,[i.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:i.unref(n)("architectureImage.alt")},null,8,Che)])):i.createCommentVNode("",!0)])])],16),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[f.value?(i.openBlock(),i.createBlock(Sg,{key:0,phases:t.phases,onClose:C[4]||(C[4]=w=>f.value=!1),onSave:h},null,8,["phases"])):i.createCommentVNode("",!0),d.value?(i.openBlock(),i.createBlock(xg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:C[5]||(C[5]=w=>d.value=!1),onApply:p},null,8,["project-id","templates"])):i.createCommentVNode("",!0)]))],64)}}});const Oo={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},khe=(t,e={})=>[{path:t,name:Oo.TEMPLATES,redirect:{name:Oo.TEMPLATES_LIST},...e,children:[{path:"",name:Oo.TEMPLATES_LIST,component:Ag},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Oo.TEMPLATE_DETAILS,component:Eg,props:!0}]}],je={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},whe=(t,e={})=>[{path:t,...e,redirect:{name:je.project},children:[{path:"",name:je.project,component:spe,props:!0,children:[{path:":phaseId/:milestoneId",name:je.milestone,component:tp,props:!0},{path:":phaseId/:milestoneId/:activityId",name:je.activity,props:{default:!0,modal:!0},components:{default:tp,modal:qpe}}]},{path:"feed",name:je.feed,component:Tg,props:!0},{path:"mapping",name:je.mapping,component:bhe,props:!0}]}],Ehe={class:"ao-templates"},Ag=i.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=qn(),o=t,r=e;i.watch(()=>o.templates,(u,d)=>{On(u,d)});const s=()=>{var h,m;const u=(h=o.templates)==null?void 0:h.at(-1),d=u?rt.LexoRank.parse(u.rank).genNext():rt.LexoRank.middle(),f=((m=o.templates)==null?void 0:m.length)??0,p={name:n("template.defaultName.template",{idx:f+1}),rank:d.format()};r("addTemplate",p)},a=(u,d)=>{r("updateItem",{itemType:Be.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{r("removeItem",{itemType:Be.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=Xi(u,o.templates??[]);r("updateItem",{itemType:Be.TEMPLATES,id:u.moved.element.id,templateId:u.moved.element.id,data:{rank:d}})}};return(u,d)=>(i.openBlock(),i.createElementBlock("div",Ehe,[i.createVNode(Qi,null,{secondary:i.withCtx(()=>[i.createVNode(he,{label:u.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:s},null,8,["label"])]),_:1}),i.createVNode(i.unref(ho),{"model-value":t.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:c},{item:i.withCtx(({element:f})=>{var p;return[i.createVNode(S_,{id:f.id,title:f.name,phases:f.phases,milestones:(p=f.phases)!=null&&p.length?i.unref(Gy)(f.phases):0,activities:f.phases?i.unref(Yy)(f.phases):0,"updated-at":f.updatedAt,"updated-by":f.updatedBy,onUpdateTitle:h=>a(f.id,h),onClick:h=>u.$router.push({name:i.unref(Oo).TEMPLATE_DETAILS,params:{templateId:f.id}}),onDeleteItem:d[0]||(d[0]=(h,m)=>l(h,m))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}});const xhe={class:"ao-field__label"},Ng=i.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(["ao-field",{"ao-field--multiselect":t.isMultiselect}])},[i.createElementVNode("span",xhe,i.toDisplayString(t.label),1),i.renderSlot(e.$slots,"default")],2))}}),She=["type","value","disabled","readonly"],The=i.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,r=i.computed(()=>n.modelModifiers.lazy?"change":"input"),s=a=>{n.modelModifiers.number&&(a=Number(a)),o("update:modelValue",a)};return(a,l)=>(i.openBlock(),i.createBlock(Ng,{label:t.label},{default:i.withCtx(()=>[i.createElementVNode("input",i.mergeProps({class:"ao-field__input",type:t.type,value:t.modelValue,disabled:t.isDisabled,readonly:t.isReadonly},{[i.toHandlerKey(r.value)]:l[0]||(l[0]=c=>s(c.target.value))}),null,16,She)]),_:1},8,["label"]))}}),Ahe={class:"ao-field"},Nhe={class:"ao-field__label"},Dhe=["checked","disabled"],Mhe=i.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)=>(i.openBlock(),i.createElementBlock("label",Ahe,[i.createElementVNode("span",Nhe,i.toDisplayString(t.label),1),i.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:t.modelValue,disabled:t.isDisabled,onChange:n[0]||(n[0]=o=>{var r;return e.$emit("update:modelValue",((r=o.target)==null?void 0:r.checked)??!1)})},null,40,Dhe)]))}});exports.AoAvatar=zn;exports.AoCardFeed=ed;exports.AoCheckboxField=Mhe;exports.AoColorPicker=sl;exports.AoFeed=Tg;exports.AoField=Ng;exports.AoInputField=The;exports.AoMultiselect=Nt;exports.AoProjectPhases=Qu;exports.AoTabBar=ts;exports.AoTemplateDetails=Eg;exports.AoTemplates=Fg;exports.AoTemplatesList=Ag;exports.EstimationUnit=cp;exports.TemplateItemTypeEnum=lp;exports.activityFeedStatus=a7;exports.durationTypes=s7;exports.feedFilterTypes=Ao;exports.getProjectOverviewRoutes=whe;exports.getTemplateRoutes=khe;exports.listUpdateTypes=l7;exports.milestoneStatus=$i;exports.projectOverviewRoutes=je;exports.ruleComparators=ip;exports.ruleDurationUnits=ap;exports.ruleTriggerTypes=sp;exports.templateItemType=Be;exports.templateRouteNames=Oo;
|