@26lights/orcha 0.42.44 → 0.42.45
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 +2 -229
- package/dist/orcha.css +1 -1
- package/dist/orcha.es.js +7379 -27319
- package/dist/orcha.umd.js +3 -230
- package/dist/src/components/AoActivityDetails.vue.d.ts +137 -50
- package/dist/src/components/AoActivityDetailsComments.vue.d.ts +47 -43
- package/dist/src/components/AoActivityDetailsFiles.vue.d.ts +23 -25
- package/dist/src/components/AoActivityTasks.vue.d.ts +49 -25
- package/dist/src/components/AoAddTemplateModal.vue.d.ts +26 -20
- package/dist/src/components/AoAvatar.vue.d.ts +45 -37
- package/dist/src/components/AoBadge.vue.d.ts +10 -13
- package/dist/src/components/AoButton.vue.d.ts +82 -57
- package/dist/src/components/AoButtonCard.vue.d.ts +69 -54
- package/dist/src/components/AoButtonCheck.vue.d.ts +23 -21
- package/dist/src/components/AoCard.vue.d.ts +41 -44
- package/dist/src/components/AoCardFeed.vue.d.ts +126 -39
- package/dist/src/components/AoCardHoriz.vue.d.ts +60 -33
- package/dist/src/components/AoCardProjectItemMilestone.vue.d.ts +106 -39
- package/dist/src/components/AoCardProjectItemPhase.vue.d.ts +82 -42
- package/dist/src/components/AoCardTemplate.vue.d.ts +54 -23
- package/dist/src/components/AoCardTemplateItem.vue.d.ts +33 -16
- package/dist/src/components/AoCardTemplateItemActivity.vue.d.ts +17 -19
- package/dist/src/components/AoCardTemplateItemMilestone.vue.d.ts +11 -18
- package/dist/src/components/AoCardTemplateItemPhase.vue.d.ts +25 -20
- package/dist/src/components/AoCheckboxField.vue.d.ts +45 -42
- package/dist/src/components/AoColHeader.vue.d.ts +16 -13
- package/dist/src/components/AoColorPicker.vue.d.ts +16 -22
- package/dist/src/components/AoComment.vue.d.ts +51 -19
- package/dist/src/components/AoCondensedCardProjectItemPhase.vue.d.ts +82 -42
- package/dist/src/components/AoField.vue.d.ts +24 -33
- package/dist/src/components/AoIcon.vue.d.ts +21 -29
- package/dist/src/components/AoInputField.vue.d.ts +61 -50
- package/dist/src/components/AoListKanban.vue.d.ts +116 -23
- package/dist/src/components/AoModal.vue.d.ts +18 -28
- package/dist/src/components/AoMultiselect.vue.d.ts +15 -18
- package/dist/src/components/AoPageHeader.vue.d.ts +14 -15
- package/dist/src/components/AoProgress.vue.d.ts +23 -16
- package/dist/src/components/AoProjectPhase.vue.d.ts +66 -35
- package/dist/src/components/AoProjectPhases.vue.d.ts +68 -37
- package/dist/src/components/AoRuleLine.vue.d.ts +45 -31
- package/dist/src/components/AoSaveTemplateModal.vue.d.ts +14 -17
- package/dist/src/components/AoSearchField.vue.d.ts +32 -34
- package/dist/src/components/AoTabBar.vue.d.ts +6 -6
- package/dist/src/components/AoTag.vue.d.ts +50 -23
- package/dist/src/components/AoTemplateDetailsActivities.vue.d.ts +38 -21
- package/dist/src/components/AoTemplateDetailsMilestones.vue.d.ts +28 -19
- package/dist/src/components/AoTemplateRules.vue.d.ts +43 -18
- package/dist/src/components/AoTitle.vue.d.ts +51 -40
- package/dist/src/components/icons/AccountBoxSharp.vue.d.ts +1 -1
- package/dist/src/components/icons/AccountCircle.vue.d.ts +1 -1
- package/dist/src/components/icons/AccountTreeOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/AccountTreeRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/Add.vue.d.ts +1 -1
- package/dist/src/components/icons/AddBoxOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ArchiveOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ArrowBackRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ArrowDropDownRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ArrowForwardRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/AssignmentOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/AttachFileRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/CalendarTodayOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/CancelRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ChatOutline.vue.d.ts +1 -1
- package/dist/src/components/icons/CheckBoxOutlineBlank.vue.d.ts +1 -1
- package/dist/src/components/icons/CheckBoxOutlineBlankSharp.vue.d.ts +1 -1
- package/dist/src/components/icons/CheckBoxOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/CheckSmallRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ChecklistRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ChevronLeft.vue.d.ts +1 -1
- package/dist/src/components/icons/ChevronRight.vue.d.ts +1 -1
- package/dist/src/components/icons/CloseRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ContactsOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ContentCopyOutline.vue.d.ts +1 -1
- package/dist/src/components/icons/DeleteOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/DragIndicator.vue.d.ts +1 -1
- package/dist/src/components/icons/EditDocumentRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/EditOutline.vue.d.ts +1 -1
- package/dist/src/components/icons/ErrorOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/FilterListRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/FlagRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/FlowsheetOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/GifBox.vue.d.ts +1 -1
- package/dist/src/components/icons/GroupsOutline.vue.d.ts +1 -1
- package/dist/src/components/icons/HomeOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ImageRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/Info.vue.d.ts +1 -1
- package/dist/src/components/icons/KeyboardArrowDown.vue.d.ts +1 -1
- package/dist/src/components/icons/KeyboardArrowUp.vue.d.ts +1 -1
- package/dist/src/components/icons/Loading.vue.d.ts +1 -1
- package/dist/src/components/icons/Lock.vue.d.ts +1 -1
- package/dist/src/components/icons/LogoutRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/Menu.vue.d.ts +1 -1
- package/dist/src/components/icons/MoreHoriz.vue.d.ts +1 -1
- package/dist/src/components/icons/MoreTimeRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/MoreVert.vue.d.ts +1 -1
- package/dist/src/components/icons/MountainFlagOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/PersonAddOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/PictureAsPdfRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/RadioButtonChecked.vue.d.ts +1 -1
- package/dist/src/components/icons/RadioButtonCheckedOutline.vue.d.ts +1 -1
- package/dist/src/components/icons/RadioButtonUnchecked.vue.d.ts +1 -1
- package/dist/src/components/icons/RemoveRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/SearchRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/SelectCheckBox.vue.d.ts +1 -1
- package/dist/src/components/icons/SendRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/Settings.vue.d.ts +1 -1
- package/dist/src/components/icons/SlideshowRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/Target.vue.d.ts +1 -1
- package/dist/src/components/icons/TaskOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/TextSnippetRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/TimerOutline.vue.d.ts +1 -1
- package/dist/src/components/icons/ViewComfyAltRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ViewCompactAltRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ViewTimelineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/WarningOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/WarningRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/WaterfallChartRounded.vue.d.ts +1 -1
- package/dist/src/composables/useDetachedOptions.d.ts +1 -2
- package/dist/src/composables/useGetDefaultRankAndName.d.ts +1 -2
- package/dist/src/composables/useIsEditing.d.ts +3 -4
- package/dist/src/composables/useSearchField.d.ts +1 -1
- package/dist/src/composables/useSelectAddedElement.d.ts +1 -2
- package/dist/src/helpers.d.ts +6 -13
- package/dist/src/i18n/i18next.d.ts +2 -3
- package/dist/src/main.d.ts +0 -1
- package/dist/src/router/routes.d.ts +1 -2
- package/dist/src/types/components.d.ts +2 -3
- package/dist/src/types/styles.d.ts +1 -1
- package/dist/src/types/utils.d.ts +1 -2
- package/dist/src/views/AoFeed.vue.d.ts +162 -72
- package/dist/src/views/AoMapping.vue.d.ts +118 -49
- package/dist/src/views/AoProjectOverviewActivityDetails.vue.d.ts +125 -43
- package/dist/src/views/AoProjectOverviewMilestoneDetails.vue.d.ts +71 -31
- package/dist/src/views/AoProjectOverviewProject.vue.d.ts +153 -79
- package/dist/src/views/AoTemplateDetails.vue.d.ts +61 -37
- package/dist/src/views/AoTemplates.vue.d.ts +10 -15
- package/dist/src/views/AoTemplatesList.vue.d.ts +12 -17
- package/package.json +1 -2
- package/dist/src/components/AoRichTextContent.vue.d.ts +0 -37
- package/dist/src/components/AoRichTextEditor.vue.d.ts +0 -45
package/dist/orcha.cjs.js
CHANGED
|
@@ -1,232 +1,5 @@
|
|
|
1
|
-
"use strict";var _7=Object.defineProperty;var E7=(s,e,t)=>e in s?_7(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var Mr=(s,e,t)=>(E7(s,typeof e!="symbol"?e+"":e,t),t),Zm=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var o=(s,e,t)=>(Zm(s,e,"read from private field"),t?t.call(s):e.get(s)),b=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},E=(s,e,t,i)=>(Zm(s,e,"write to private field"),i?i.call(s,t):e.set(s,t),t);var T=(s,e,t)=>(Zm(s,e,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),rh=require("vue-router"),qn=require("vuedraggable");const T7=l.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(s){return(e,t)=>(l.openBlock(),l.createBlock(l.unref(rh.RouterView),l.mergeProps({templates:s.templates},e.$attrs),null,16,["templates"]))}}),le=(s,e)=>{const t=s.__vccOpts||s;for(const[i,n]of e)t[i]=n;return t},S7={},x7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M7(s,e){return l.openBlock(),l.createElementBlock("svg",x7,[...e[0]||(e[0]=[l.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 B7=le(S7,[["render",M7]]),N7={},L7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A7(s,e){return l.openBlock(),l.createElementBlock("svg",L7,[...e[0]||(e[0]=[l.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 $7=le(N7,[["render",A7]]),O7={},V7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R7(s,e){return l.openBlock(),l.createElementBlock("svg",V7,[...e[0]||(e[0]=[l.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 I7=le(O7,[["render",R7]]),D7={},P7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H7(s,e){return l.openBlock(),l.createElementBlock("svg",P7,[...e[0]||(e[0]=[l.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 F7=le(D7,[["render",H7]]),W7={},z7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j7(s,e){return l.openBlock(),l.createElementBlock("svg",z7,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const U7=le(W7,[["render",j7]]),q7={},Z7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G7(s,e){return l.openBlock(),l.createElementBlock("svg",Z7,[...e[0]||(e[0]=[l.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 Y7=le(q7,[["render",G7]]),K7={},X7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q7(s,e){return l.openBlock(),l.createElementBlock("svg",X7,[...e[0]||(e[0]=[l.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 J7=le(K7,[["render",Q7]]),eb={},tb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sb(s,e){return l.openBlock(),l.createElementBlock("svg",tb,[...e[0]||(e[0]=[l.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 ib=le(eb,[["render",sb]]),nb={},ob={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function rb(s,e){return l.openBlock(),l.createElementBlock("svg",ob,[...e[0]||(e[0]=[l.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 lb=le(nb,[["render",rb]]),ab={},cb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function db(s,e){return l.openBlock(),l.createElementBlock("svg",cb,[...e[0]||(e[0]=[l.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 ub=le(ab,[["render",db]]),hb={},fb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pb(s,e){return l.openBlock(),l.createElementBlock("svg",fb,[...e[0]||(e[0]=[l.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 mb=le(hb,[["render",pb]]),gb={},vb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function yb(s,e){return l.openBlock(),l.createElementBlock("svg",vb,[...e[0]||(e[0]=[l.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 Cb=le(gb,[["render",yb]]),bb={},wb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function kb(s,e){return l.openBlock(),l.createElementBlock("svg",wb,[...e[0]||(e[0]=[l.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 _b=le(bb,[["render",kb]]),Eb={},Tb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Sb(s,e){return l.openBlock(),l.createElementBlock("svg",Tb,[...e[0]||(e[0]=[l.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 xb=le(Eb,[["render",Sb]]),Mb={},Bb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Nb(s,e){return l.openBlock(),l.createElementBlock("svg",Bb,[...e[0]||(e[0]=[l.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 Lb=le(Mb,[["render",Nb]]),Ab={},$b={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ob(s,e){return l.openBlock(),l.createElementBlock("svg",$b,[...e[0]||(e[0]=[l.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 Vb=le(Ab,[["render",Ob]]),Rb={},Ib={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Db(s,e){return l.openBlock(),l.createElementBlock("svg",Ib,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const Pb=le(Rb,[["render",Db]]),Hb={},Fb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wb(s,e){return l.openBlock(),l.createElementBlock("svg",Fb,[...e[0]||(e[0]=[l.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 zb=le(Hb,[["render",Wb]]),jb={},Ub={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qb(s,e){return l.openBlock(),l.createElementBlock("svg",Ub,[...e[0]||(e[0]=[l.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 Zb=le(jb,[["render",qb]]),Gb={},Yb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Kb(s,e){return l.openBlock(),l.createElementBlock("svg",Yb,[...e[0]||(e[0]=[l.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 Xb=le(Gb,[["render",Kb]]),Qb={},Jb={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ew(s,e){return l.openBlock(),l.createElementBlock("svg",Jb,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const tw=le(Qb,[["render",ew]]),sw={},iw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nw(s,e){return l.openBlock(),l.createElementBlock("svg",iw,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const ow=le(sw,[["render",nw]]),rw={},lw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function aw(s,e){return l.openBlock(),l.createElementBlock("svg",lw,[...e[0]||(e[0]=[l.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 cw=le(rw,[["render",aw]]),dw={},uw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hw(s,e){return l.openBlock(),l.createElementBlock("svg",uw,[...e[0]||(e[0]=[l.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 fw=le(dw,[["render",hw]]),pw={},mw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gw(s,e){return l.openBlock(),l.createElementBlock("svg",mw,[...e[0]||(e[0]=[l.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 vw=le(pw,[["render",gw]]),yw={},Cw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bw(s,e){return l.openBlock(),l.createElementBlock("svg",Cw,[...e[0]||(e[0]=[l.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 ww=le(yw,[["render",bw]]),kw={},_w={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ew(s,e){return l.openBlock(),l.createElementBlock("svg",_w,[...e[0]||(e[0]=[l.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 Tw=le(kw,[["render",Ew]]),Sw={},xw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Mw(s,e){return l.openBlock(),l.createElementBlock("svg",xw,[...e[0]||(e[0]=[l.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 Bw=le(Sw,[["render",Mw]]),Nw={},Lw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Aw(s,e){return l.openBlock(),l.createElementBlock("svg",Lw,[...e[0]||(e[0]=[l.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 $w=le(Nw,[["render",Aw]]),Ow={},Vw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Rw(s,e){return l.openBlock(),l.createElementBlock("svg",Vw,[...e[0]||(e[0]=[l.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 Iw=le(Ow,[["render",Rw]]),Dw={},Pw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hw(s,e){return l.openBlock(),l.createElementBlock("svg",Pw,[...e[0]||(e[0]=[l.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 Fw=le(Dw,[["render",Hw]]),Ww={},zw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jw(s,e){return l.openBlock(),l.createElementBlock("svg",zw,[...e[0]||(e[0]=[l.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 Uw=le(Ww,[["render",jw]]),qw={},Zw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gw(s,e){return l.openBlock(),l.createElementBlock("svg",Zw,[...e[0]||(e[0]=[l.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 Yw=le(qw,[["render",Gw]]),Kw={},Xw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qw(s,e){return l.openBlock(),l.createElementBlock("svg",Xw,[...e[0]||(e[0]=[l.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 Jw=le(Kw,[["render",Qw]]),e4={},t4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function s4(s,e){return l.openBlock(),l.createElementBlock("svg",t4,[...e[0]||(e[0]=[l.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 i4=le(e4,[["render",s4]]),n4={},o4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r4(s,e){return l.openBlock(),l.createElementBlock("svg",o4,[...e[0]||(e[0]=[l.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 l4=le(n4,[["render",r4]]),a4={},c4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d4(s,e){return l.openBlock(),l.createElementBlock("svg",c4,[...e[0]||(e[0]=[l.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 u4=le(a4,[["render",d4]]),h4={},f4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p4(s,e){return l.openBlock(),l.createElementBlock("svg",f4,[...e[0]||(e[0]=[l.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 m4=le(h4,[["render",p4]]),g4={},v4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y4(s,e){return l.openBlock(),l.createElementBlock("svg",v4,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const C4=le(g4,[["render",y4]]),b4={},w4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k4(s,e){return l.openBlock(),l.createElementBlock("svg",w4,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const _4=le(b4,[["render",k4]]),E4=l.defineComponent({name:"LoadingIcon"});const T4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S4(s,e,t,i,n,r){return l.openBlock(),l.createElementBlock("svg",T4,[...e[0]||(e[0]=[l.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),l.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),l.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const x4=le(E4,[["render",S4],["__scopeId","data-v-ad6da4a9"]]),M4={},B4={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function N4(s,e){return l.openBlock(),l.createElementBlock("svg",B4,[...e[0]||(e[0]=[l.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 L4=le(M4,[["render",N4]]),A4={},$4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O4(s,e){return l.openBlock(),l.createElementBlock("svg",$4,[...e[0]||(e[0]=[l.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 V4=le(A4,[["render",O4]]),R4={},I4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D4(s,e){return l.openBlock(),l.createElementBlock("svg",I4,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const P4=le(R4,[["render",D4]]),H4={},F4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function W4(s,e){return l.openBlock(),l.createElementBlock("svg",F4,[...e[0]||(e[0]=[l.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 z4=le(H4,[["render",W4]]),j4={},U4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q4(s,e){return l.openBlock(),l.createElementBlock("svg",U4,[...e[0]||(e[0]=[l.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 Z4=le(j4,[["render",q4]]),G4={},Y4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K4(s,e){return l.openBlock(),l.createElementBlock("svg",Y4,[...e[0]||(e[0]=[l.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 X4=le(G4,[["render",K4]]),Q4={},J4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ek(s,e){return l.openBlock(),l.createElementBlock("svg",J4,[...e[0]||(e[0]=[l.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 tk=le(Q4,[["render",ek]]),sk={},ik={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nk(s,e){return l.openBlock(),l.createElementBlock("svg",ik,[...e[0]||(e[0]=[l.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 ok=le(sk,[["render",nk]]),rk={},lk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ak(s,e){return l.openBlock(),l.createElementBlock("svg",lk,[...e[0]||(e[0]=[l.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 ck=le(rk,[["render",ak]]),dk={},uk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hk(s,e){return l.openBlock(),l.createElementBlock("svg",uk,[...e[0]||(e[0]=[l.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 fk=le(dk,[["render",hk]]),pk={},mk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gk(s,e){return l.openBlock(),l.createElementBlock("svg",mk,[...e[0]||(e[0]=[l.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 vk=le(pk,[["render",gk]]),yk={},Ck={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bk(s,e){return l.openBlock(),l.createElementBlock("svg",Ck,[...e[0]||(e[0]=[l.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 wk=le(yk,[["render",bk]]),kk={},_k={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ek(s,e){return l.openBlock(),l.createElementBlock("svg",_k,[...e[0]||(e[0]=[l.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 Tk=le(kk,[["render",Ek]]),Sk={},xk={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Mk(s,e){return l.openBlock(),l.createElementBlock("svg",xk,[...e[0]||(e[0]=[l.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 Bk=le(Sk,[["render",Mk]]),Nk={},Lk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ak(s,e){return l.openBlock(),l.createElementBlock("svg",Lk,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.1333 3 19.2583 3.01267 19.375 3.038C19.4917 3.06334 19.6083 3.10067 19.725 3.15L17.875 5H5V19H19V12.35L21 10.35V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM11.525 17L5.875 11.35L7.275 9.95L11.525 14.2L20.7 5.025L22.125 6.4L11.525 17Z",fill:"black"},null,-1)])])}const $k=le(Nk,[["render",Ak]]),Ok={},Vk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Rk(s,e){return l.openBlock(),l.createElementBlock("svg",Vk,[...e[0]||(e[0]=[l.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 Ik=le(Ok,[["render",Rk]]),Dk={},Pk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hk(s,e){return l.openBlock(),l.createElementBlock("svg",Pk,[...e[0]||(e[0]=[l.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 Fk=le(Dk,[["render",Hk]]),Wk={},zk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jk(s,e){return l.openBlock(),l.createElementBlock("svg",zk,[...e[0]||(e[0]=[l.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 Uk=le(Wk,[["render",jk]]),qk={},Zk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gk(s,e){return l.openBlock(),l.createElementBlock("svg",Zk,[...e[0]||(e[0]=[l.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 Yk=le(qk,[["render",Gk]]),Kk={},Xk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qk(s,e){return l.openBlock(),l.createElementBlock("svg",Xk,[...e[0]||(e[0]=[l.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 Jk=le(Kk,[["render",Qk]]),e_={},t_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function s_(s,e){return l.openBlock(),l.createElementBlock("svg",t_,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H14.175C14.4417 3 14.696 3.05 14.938 3.15C15.18 3.25 15.3923 3.39167 15.575 3.575L20.425 8.425C20.6083 8.60834 20.75 8.821 20.85 9.063C20.95 9.305 21 9.559 21 9.825V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM8 17H16C16.2833 17 16.521 16.904 16.713 16.712C16.905 16.52 17.0007 16.2827 17 16C17 15.7167 16.904 15.479 16.712 15.287C16.52 15.095 16.2827 14.9993 16 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H13C13.2833 9 13.521 8.904 13.713 8.712C13.905 8.52 14.0007 8.28267 14 8C14 7.71667 13.904 7.479 13.712 7.287C13.52 7.095 13.2827 6.99934 13 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71734 7 8C7 8.28334 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9Z",fill:"black"},null,-1)])])}const i_=le(e_,[["render",s_]]),n_={},o_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r_(s,e){return l.openBlock(),l.createElementBlock("svg",o_,[...e[0]||(e[0]=[l.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 l_=le(n_,[["render",r_]]),a_={},c_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d_(s,e){return l.openBlock(),l.createElementBlock("svg",c_,[...e[0]||(e[0]=[l.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 u_=le(a_,[["render",d_]]),h_={},f_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p_(s,e){return l.openBlock(),l.createElementBlock("svg",f_,[...e[0]||(e[0]=[l.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 m_=le(h_,[["render",p_]]),g_={},v_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y_(s,e){return l.openBlock(),l.createElementBlock("svg",v_,[...e[0]||(e[0]=[l.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 C_=le(g_,[["render",y_]]),b_={},w_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k_(s,e){return l.openBlock(),l.createElementBlock("svg",w_,[...e[0]||(e[0]=[l.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 __=le(b_,[["render",k_]]),E_={},T_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S_(s,e){return l.openBlock(),l.createElementBlock("svg",T_,[...e[0]||(e[0]=[l.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 x_=le(E_,[["render",S_]]),M_={},B_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N_(s,e){return l.openBlock(),l.createElementBlock("svg",B_,[...e[0]||(e[0]=[l.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 L_=le(M_,[["render",N_]]),A_=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:B7,AccountCircle:$7,AccountTreeOutlineRounded:I7,AccountTreeRounded:F7,Add:U7,AddBoxOutlineRounded:Y7,ArchiveOutlineRounded:J7,ArrowBackRounded:ib,ArrowDropDownRounded:lb,ArrowForwardRounded:ub,AssignmentOutlineRounded:mb,AttachFileRounded:Cb,CalendarTodayOutlineRounded:_b,CancelRounded:xb,ChatOutline:Lb,CheckBoxOutlineBlank:Vb,CheckBoxOutlineBlankSharp:Pb,CheckBoxOutlineRounded:zb,CheckSmallRounded:Zb,ChecklistRounded:Xb,ChevronLeft:tw,ChevronRight:ow,CloseRounded:cw,ContactsOutlineRounded:fw,ContentCopyOutline:vw,DeleteOutlineRounded:ww,DragIndicator:Tw,EditDocumentRounded:Bw,EditOutline:$w,ErrorOutlineRounded:Iw,FilterListRounded:Fw,FlagRounded:Uw,FlowsheetOutlineRounded:Yw,GifBox:Jw,GroupsOutline:i4,HomeOutlineRounded:l4,ImageRounded:u4,Info:m4,KeyboardArrowDown:C4,KeyboardArrowUp:_4,Loading:x4,Lock:L4,LogoutRounded:V4,Menu:P4,MoreHoriz:z4,MoreTimeRounded:Z4,MoreVert:X4,MountainFlagOutlineRounded:tk,PersonAddOutlineRounded:ok,PictureAsPdfRounded:ck,RadioButtonChecked:fk,RadioButtonCheckedOutline:vk,RadioButtonUnchecked:wk,RemoveRounded:Tk,SearchRounded:Bk,SelectCheckBox:$k,SendRounded:Ik,Settings:Fk,SlideshowRounded:Uk,Target:Yk,TaskOutlineRounded:Jk,TextSnippetRounded:i_,TimerOutline:l_,ViewComfyAltRounded:u_,ViewCompactAltRounded:m_,ViewTimelineRounded:C_,WarningOutlineRounded:__,WarningRounded:x_,WaterfallChartRounded:L_},Symbol.toStringTag,{value:"Module"})),$_={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},ym={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Ng={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},O_={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Ng,...O_});const bv={ROUND:"round",ROUNDED:"rounded"},V_={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},Ye=l.defineComponent({__name:"AoIcon",props:{name:{},size:{default:ym.MD}},setup(s){const e=s,t=l.computed(()=>A_[e.name]);return(i,n)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.value),{class:l.normalizeClass(["ao-icon",`ao-icon--${s.size}`])},null,8,["class"]))}});const R_=["type"],I_={key:0,class:"ao-button__label"},Ee=l.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>$_.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>ym.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>bv.ROUNDED}},setup(s){const e=s,t=l.computed(()=>e.size),i=l.computed(()=>e.isLoading?"Loading":e.iconName);return(n,r)=>(l.openBlock(),l.createElementBlock("button",{type:s.type,class:l.normalizeClass(["ao-button",`ao-button--${s.variant}`,s.color?`ao-button--${s.color}`:"",`ao-button--${s.corners}`,s.footer?"ao-button--footer":"",s.size?`ao-button--${s.size}`:"",s.iconName&&s.iconPosition?`ao-button--icon-${s.iconPosition}`:"",n.$attrs.disabled?"ao-button--is-disabled":""])},[l.renderSlot(n.$slots,"default",{},()=>[s.label?(l.openBlock(),l.createElementBlock("span",I_,l.toDisplayString(s.label),1)):l.createCommentVNode("",!0)]),i.value?(l.openBlock(),l.createBlock(Ye,{key:0,name:i.value,class:"ao-button__icon",size:t.value},null,8,["name","size"])):l.createCommentVNode("",!0)],10,R_))}});function D_(s){const e=l.ref(!1),t=l.ref(""),i=l.computed(()=>"value"in s.value?"value":"innerHTML"),n=()=>{e.value=!e.value},r=d=>{e.value=d},a=d=>async()=>{r(!1),await l.nextTick(()=>{s.value[i.value]=t.value,d==null||d()})},c=d=>async u=>{const f=s.value[i.value];r(!1),await l.nextTick(()=>{d(f,u)})};return l.watch(e,async d=>{await l.nextTick(()=>{setTimeout(()=>{s.value&&d&&(s.value.focus(),t.value=s.value[i.value])},1)})}),{isEditing:e,setIsEditing:r,toggleIsEditing:n,onUpdate:c,onDiscard:a}}const jt=l.defineComponent({__name:"AoTitle",props:{id:{},title:{},level:{default:1},tag:{},color:{},isEditable:{type:Boolean,default:!1}},emits:["update:title","toggle-is-editing"],setup(s,{emit:e}){const t=l.ref(null),i=s,n=e,{isEditing:r,setIsEditing:a,onUpdate:c,onDiscard:d}=D_(t),u=l.computed(()=>r.value?"input":i.tag||`h${i.level}`),f=l.computed(()=>i.isEditable?r.value?{change:p,click:C=>C.stopPropagation(),blur:g}:{click:v,focus:v}:{}),p=c((C,w)=>{const _=w.target.value;n("update:title",_)}),m=d(),g=async()=>{r.value&&a(!1)},y=()=>{n("toggle-is-editing",!1)},v=C=>{C.stopPropagation(),r.value||a(!0)};return l.watch(()=>i.isEditable,C=>{C||m()}),(C,w)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(u.value),l.mergeProps({id:s.id,ref_key:"target",ref:t,class:["ao-title",`ao-title--${s.level}`,{[`ao-title--${s.color}`]:!!s.color,"ao-title--editable":s.isEditable,"ao-field__input ao-title--editing":l.unref(r),"ao-title--readonly":!l.unref(r)}],type:l.unref(r)?"text":null,value:l.unref(r)?s.title:null,tabindex:"0",onKeyup:l.withKeys(y,["enter"])},l.toHandlers(f.value),{onKeydown:l.withKeys(l.unref(m),["esc"])}),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(s.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}});const P_={key:0,class:"ao-card-horiz__drag ao-card__drag"},H_={class:"ao-card-horiz__header"},F_={key:0,class:"ao-card-horiz__avatar"},W_={class:"ao-card-horiz__title-group"},z_={key:0,class:"ao-card-horiz__subtitle"},j_={key:1,class:"ao-card-horiz__header"},U_={key:1,class:"ao-card-horiz__body"},q_={key:2,class:"ao-card-horiz__footer"},Z_={key:3,class:"ao-card-horiz__secondary"},wv=l.defineComponent({__name:"AoCardHoriz",props:{id:{},title:{},subtitle:{},icon:{},isActive:{type:Boolean},isEditing:{type:Boolean},tagName:{default:"div"},isDraggable:{type:Boolean}},emits:["update:title"],setup(s,{emit:e}){const t=e,i=n=>{t("update:title",n)};return(n,r)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s.tagName),{class:l.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":s.isActive}])},{default:l.withCtx(()=>[s.isDraggable?(l.openBlock(),l.createElementBlock("div",P_,[l.createVNode(Ye,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):l.createCommentVNode("",!0),l.createElementVNode("div",H_,[s.icon?(l.openBlock(),l.createElementBlock("div",F_,[l.createVNode(Ye,{class:"ao-card-horiz__icon",name:s.icon,size:"xl"},null,8,["name"])])):l.createCommentVNode("",!0),l.createElementVNode("div",W_,[l.createVNode(jt,{id:s.id,class:"ao-card-horiz__title",level:4,title:s.title||"","is-editable":!0,"onUpdate:title":i},null,8,["id","title"]),l.renderSlot(n.$slots,"subtitle",{},()=>[s.subtitle?(l.openBlock(),l.createElementBlock("span",z_,l.toDisplayString(s.subtitle),1)):l.createCommentVNode("",!0)])]),n.$slots.header?(l.openBlock(),l.createElementBlock("div",j_,[l.renderSlot(n.$slots,"header")])):l.createCommentVNode("",!0)]),n.$slots.default?(l.openBlock(),l.createElementBlock("div",U_,[l.renderSlot(n.$slots,"default")])):l.createCommentVNode("",!0),n.$slots.footer?(l.openBlock(),l.createElementBlock("div",q_,[l.renderSlot(n.$slots,"footer")])):l.createCommentVNode("",!0),n.$slots.secondary?(l.openBlock(),l.createElementBlock("div",Z_,[l.renderSlot(n.$slots,"secondary")])):l.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Bc=l.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(s){const e=s,t=l.computed(()=>e.clickable?"button":"span"),i=l.computed(()=>t.value==="button"?{type:"button"}:{});return(n,r)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["ao-tag",s.color?`ao-tag--${s.color}`:"",s.clickable?"ao-tag--clickable":"",s.closable?"ao-tag--closable":"",s.variant?`ao-tag--${s.variant}`:""]),style:l.normalizeStyle(s.rawColor?{"--ao-tag-bg":s.rawColor}:{})},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.value),l.mergeProps({class:"ao-tag__label"},i.value,{onClick:r[0]||(r[0]=a=>n.$emit("click",a))}),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(s.label)+" ",1),s.variant===l.unref(V_).SOLID_ICON&&s.iconName?(l.openBlock(),l.createBlock(Ye,{key:0,name:s.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):l.createCommentVNode("",!0)]),_:1},16)),s.closable?(l.openBlock(),l.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:r[1]||(r[1]=a=>n.$emit("close",a))},[l.createVNode(Ye,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):l.createCommentVNode("",!0)],6))}});const Nc={todo:"todo",done:"done",archived:"archived"},G_={months:"months",weeks:"weeks",days:"days"},Y_={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},kv={BEFORE:"before",AFTER:"after"},_v={START:"start",end:"end"},Ev={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},dt={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var Tv=(s=>(s.PHASES="phases",s.MILESTONES="milestones",s.ACTIVITIES="activities",s))(Tv||{});const K_={add:"add",remove:"remove",moved:"moved"};var Sv=(s=>(s.HOURS="hours",s.DAYS="days",s))(Sv||{});const to={project:"projectId",type:"typeId",assignee:"assigneeId"};function Kh(s){"@babel/helpers - typeof";return Kh=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},Kh(s)}function Wi(s){if(s===null||s===!0||s===!1)return NaN;var e=Number(s);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function bt(s,e){if(e.length<s)throw new TypeError(s+" argument"+(s>1?"s":"")+" required, but only "+e.length+" present")}function Yt(s){bt(1,arguments);var e=Object.prototype.toString.call(s);return s instanceof Date||Kh(s)==="object"&&e==="[object Date]"?new Date(s.getTime()):typeof s=="number"||e==="[object Number]"?new Date(s):((typeof s=="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 X_(s,e){bt(2,arguments);var t=Yt(s).getTime(),i=Wi(e);return new Date(t+i)}var Q_={};function lh(){return Q_}function Lc(s){var e=new Date(Date.UTC(s.getFullYear(),s.getMonth(),s.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()));return e.setUTCFullYear(s.getFullYear()),s.getTime()-e.getTime()}function m2(s){bt(1,arguments);var e=Yt(s);return e.setHours(0,0,0,0),e}var J_=864e5;function e8(s,e){bt(2,arguments);var t=m2(s),i=m2(e),n=t.getTime()-Lc(t),r=i.getTime()-Lc(i);return Math.round((n-r)/J_)}function t8(s,e){bt(2,arguments);var t=Yt(s),i=Yt(e),n=t.getTime()-i.getTime();return n<0?-1:n>0?1:n}var xv=6e4,Mv=36e5;function s8(s){return bt(1,arguments),s instanceof Date||Kh(s)==="object"&&Object.prototype.toString.call(s)==="[object Date]"}function Bv(s){if(bt(1,arguments),!s8(s)&&typeof s!="number")return!1;var e=Yt(s);return!isNaN(Number(e))}function p0(s,e){bt(2,arguments);var t=Wi(e);return X_(s,-t)}var i8=864e5;function n8(s){bt(1,arguments);var e=Yt(s),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var i=e.getTime(),n=t-i;return Math.floor(n/i8)+1}function Xh(s){bt(1,arguments);var e=1,t=Yt(s),i=t.getUTCDay(),n=(i<e?7:0)+i-e;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function Nv(s){bt(1,arguments);var e=Yt(s),t=e.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(t+1,0,4),i.setUTCHours(0,0,0,0);var n=Xh(i),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var a=Xh(r);return e.getTime()>=n.getTime()?t+1:e.getTime()>=a.getTime()?t:t-1}function o8(s){bt(1,arguments);var e=Nv(s),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var i=Xh(t);return i}var r8=6048e5;function l8(s){bt(1,arguments);var e=Yt(s),t=Xh(e).getTime()-o8(e).getTime();return Math.round(t/r8)+1}function Qh(s,e){var t,i,n,r,a,c,d,u;bt(1,arguments);var f=lh(),p=Wi((t=(i=(n=(r=e==null?void 0:e.weekStartsOn)!==null&&r!==void 0?r:e==null||(a=e.locale)===null||a===void 0||(c=a.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:f.weekStartsOn)!==null&&i!==void 0?i:(d=f.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Yt(s),g=m.getUTCDay(),y=(g<p?7:0)+g-p;return m.setUTCDate(m.getUTCDate()-y),m.setUTCHours(0,0,0,0),m}function Lv(s,e){var t,i,n,r,a,c,d,u;bt(1,arguments);var f=Yt(s),p=f.getUTCFullYear(),m=lh(),g=Wi((t=(i=(n=(r=e==null?void 0:e.firstWeekContainsDate)!==null&&r!==void 0?r:e==null||(a=e.locale)===null||a===void 0||(c=a.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:m.firstWeekContainsDate)!==null&&i!==void 0?i:(d=m.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(p+1,0,g),y.setUTCHours(0,0,0,0);var v=Qh(y,e),C=new Date(0);C.setUTCFullYear(p,0,g),C.setUTCHours(0,0,0,0);var w=Qh(C,e);return f.getTime()>=v.getTime()?p+1:f.getTime()>=w.getTime()?p:p-1}function a8(s,e){var t,i,n,r,a,c,d,u;bt(1,arguments);var f=lh(),p=Wi((t=(i=(n=(r=e==null?void 0:e.firstWeekContainsDate)!==null&&r!==void 0?r:e==null||(a=e.locale)===null||a===void 0||(c=a.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:f.firstWeekContainsDate)!==null&&i!==void 0?i:(d=f.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),m=Lv(s,e),g=new Date(0);g.setUTCFullYear(m,0,p),g.setUTCHours(0,0,0,0);var y=Qh(g,e);return y}var c8=6048e5;function d8(s,e){bt(1,arguments);var t=Yt(s),i=Qh(t,e).getTime()-a8(t,e).getTime();return Math.round(i/c8)+1}function Ue(s,e){for(var t=s<0?"-":"",i=Math.abs(s).toString();i.length<e;)i="0"+i;return t+i}var u8={y:function(e,t){var i=e.getUTCFullYear(),n=i>0?i:1-i;return Ue(t==="yy"?n%100:n,t.length)},M:function(e,t){var i=e.getUTCMonth();return t==="M"?String(i+1):Ue(i+1,2)},d:function(e,t){return Ue(e.getUTCDate(),t.length)},a:function(e,t){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h:function(e,t){return Ue(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Ue(e.getUTCHours(),t.length)},m:function(e,t){return Ue(e.getUTCMinutes(),t.length)},s:function(e,t){return Ue(e.getUTCSeconds(),t.length)},S:function(e,t){var i=t.length,n=e.getUTCMilliseconds(),r=Math.floor(n*Math.pow(10,i-3));return Ue(r,t.length)}};const Gi=u8;var Br={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},h8={G:function(e,t,i){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})}},y:function(e,t,i){if(t==="yo"){var n=e.getUTCFullYear(),r=n>0?n:1-n;return i.ordinalNumber(r,{unit:"year"})}return Gi.y(e,t)},Y:function(e,t,i,n){var r=Lv(e,n),a=r>0?r:1-r;if(t==="YY"){var c=a%100;return Ue(c,2)}return t==="Yo"?i.ordinalNumber(a,{unit:"year"}):Ue(a,t.length)},R:function(e,t){var i=Nv(e);return Ue(i,t.length)},u:function(e,t){var i=e.getUTCFullYear();return Ue(i,t.length)},Q:function(e,t,i){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Ue(n,2);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,i){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Ue(n,2);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,i){var n=e.getUTCMonth();switch(t){case"M":case"MM":return Gi.M(e,t);case"Mo":return i.ordinalNumber(n+1,{unit:"month"});case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,i){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return Ue(n+1,2);case"Lo":return i.ordinalNumber(n+1,{unit:"month"});case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,i,n){var r=d8(e,n);return t==="wo"?i.ordinalNumber(r,{unit:"week"}):Ue(r,t.length)},I:function(e,t,i){var n=l8(e);return t==="Io"?i.ordinalNumber(n,{unit:"week"}):Ue(n,t.length)},d:function(e,t,i){return t==="do"?i.ordinalNumber(e.getUTCDate(),{unit:"date"}):Gi.d(e,t)},D:function(e,t,i){var n=n8(e);return t==="Do"?i.ordinalNumber(n,{unit:"dayOfYear"}):Ue(n,t.length)},E:function(e,t,i){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,i,n){var r=e.getUTCDay(),a=(r-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Ue(a,2);case"eo":return i.ordinalNumber(a,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});case"eeee":default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,i,n){var r=e.getUTCDay(),a=(r-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Ue(a,t.length);case"co":return i.ordinalNumber(a,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});case"cccc":default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,i){var n=e.getUTCDay(),r=n===0?7:n;switch(t){case"i":return String(r);case"ii":return Ue(r,t.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(n,{width:"short",context:"formatting"});case"iiii":default:return i.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,i){var n=e.getUTCHours(),r=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,i){var n=e.getUTCHours(),r;switch(n===12?r=Br.noon:n===0?r=Br.midnight:r=n/12>=1?"pm":"am",t){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,i){var n=e.getUTCHours(),r;switch(n>=17?r=Br.evening:n>=12?r=Br.afternoon:n>=4?r=Br.morning:r=Br.night,t){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,i){if(t==="ho"){var n=e.getUTCHours()%12;return n===0&&(n=12),i.ordinalNumber(n,{unit:"hour"})}return Gi.h(e,t)},H:function(e,t,i){return t==="Ho"?i.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Gi.H(e,t)},K:function(e,t,i){var n=e.getUTCHours()%12;return t==="Ko"?i.ordinalNumber(n,{unit:"hour"}):Ue(n,t.length)},k:function(e,t,i){var n=e.getUTCHours();return n===0&&(n=24),t==="ko"?i.ordinalNumber(n,{unit:"hour"}):Ue(n,t.length)},m:function(e,t,i){return t==="mo"?i.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Gi.m(e,t)},s:function(e,t,i){return t==="so"?i.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Gi.s(e,t)},S:function(e,t){return Gi.S(e,t)},X:function(e,t,i,n){var r=n._originalDate||e,a=r.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return v2(a);case"XXXX":case"XX":return so(a);case"XXXXX":case"XXX":default:return so(a,":")}},x:function(e,t,i,n){var r=n._originalDate||e,a=r.getTimezoneOffset();switch(t){case"x":return v2(a);case"xxxx":case"xx":return so(a);case"xxxxx":case"xxx":default:return so(a,":")}},O:function(e,t,i,n){var r=n._originalDate||e,a=r.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+g2(a,":");case"OOOO":default:return"GMT"+so(a,":")}},z:function(e,t,i,n){var r=n._originalDate||e,a=r.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+g2(a,":");case"zzzz":default:return"GMT"+so(a,":")}},t:function(e,t,i,n){var r=n._originalDate||e,a=Math.floor(r.getTime()/1e3);return Ue(a,t.length)},T:function(e,t,i,n){var r=n._originalDate||e,a=r.getTime();return Ue(a,t.length)}};function g2(s,e){var t=s>0?"-":"+",i=Math.abs(s),n=Math.floor(i/60),r=i%60;if(r===0)return t+String(n);var a=e||"";return t+String(n)+a+Ue(r,2)}function v2(s,e){if(s%60===0){var t=s>0?"-":"+";return t+Ue(Math.abs(s)/60,2)}return so(s,e)}function so(s,e){var t=e||"",i=s>0?"-":"+",n=Math.abs(s),r=Ue(Math.floor(n/60),2),a=Ue(n%60,2);return i+r+t+a}const f8=h8;var y2=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Av=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},p8=function(e,t){var i=e.match(/(P+)(p+)?/)||[],n=i[1],r=i[2];if(!r)return y2(e,t);var a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",y2(n,t)).replace("{{time}}",Av(r,t))},m8={p:Av,P:p8};const g8=m8;var v8=["D","DD"],y8=["YY","YYYY"];function C8(s){return v8.indexOf(s)!==-1}function b8(s){return y8.indexOf(s)!==-1}function C2(s,e,t){if(s==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(s==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(s==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(s==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var w8={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"}},k8=function(e,t,i){var n,r=w8[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+n:n+" ago":n};const _8=k8;function Gm(s){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):s.defaultWidth,i=s.formats[t]||s.formats[s.defaultWidth];return i}}var E8={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},T8={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},S8={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},x8={date:Gm({formats:E8,defaultWidth:"full"}),time:Gm({formats:T8,defaultWidth:"full"}),dateTime:Gm({formats:S8,defaultWidth:"full"})};const M8=x8;var B8={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},N8=function(e,t,i,n){return B8[e]};const L8=N8;function Za(s){return function(e,t){var i=t!=null&&t.context?String(t.context):"standalone",n;if(i==="formatting"&&s.formattingValues){var r=s.defaultFormattingWidth||s.defaultWidth,a=t!=null&&t.width?String(t.width):r;n=s.formattingValues[a]||s.formattingValues[r]}else{var c=s.defaultWidth,d=t!=null&&t.width?String(t.width):s.defaultWidth;n=s.values[d]||s.values[c]}var u=s.argumentCallback?s.argumentCallback(e):e;return n[u]}}var A8={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$8={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},O8={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"]},V8={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"]},R8={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"}},I8={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"}},D8=function(e,t){var i=Number(e),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},P8={ordinalNumber:D8,era:Za({values:A8,defaultWidth:"wide"}),quarter:Za({values:$8,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Za({values:O8,defaultWidth:"wide"}),day:Za({values:V8,defaultWidth:"wide"}),dayPeriod:Za({values:R8,defaultWidth:"wide",formattingValues:I8,defaultFormattingWidth:"wide"})};const H8=P8;function Ga(s){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.width,n=i&&s.matchPatterns[i]||s.matchPatterns[s.defaultMatchWidth],r=e.match(n);if(!r)return null;var a=r[0],c=i&&s.parsePatterns[i]||s.parsePatterns[s.defaultParseWidth],d=Array.isArray(c)?W8(c,function(p){return p.test(a)}):F8(c,function(p){return p.test(a)}),u;u=s.valueCallback?s.valueCallback(d):d,u=t.valueCallback?t.valueCallback(u):u;var f=e.slice(a.length);return{value:u,rest:f}}}function F8(s,e){for(var t in s)if(s.hasOwnProperty(t)&&e(s[t]))return t}function W8(s,e){for(var t=0;t<s.length;t++)if(e(s[t]))return t}function z8(s){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.match(s.matchPattern);if(!i)return null;var n=i[0],r=e.match(s.parsePattern);if(!r)return null;var a=s.valueCallback?s.valueCallback(r[0]):r[0];a=t.valueCallback?t.valueCallback(a):a;var c=e.slice(n.length);return{value:a,rest:c}}}var j8=/^(\d+)(th|st|nd|rd)?/i,U8=/\d+/i,q8={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},Z8={any:[/^b/i,/^(a|c)/i]},G8={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Y8={any:[/1/i,/2/i,/3/i,/4/i]},K8={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},X8={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]},Q8={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},J8={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]},e9={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},t9={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}},s9={ordinalNumber:z8({matchPattern:j8,parsePattern:U8,valueCallback:function(e){return parseInt(e,10)}}),era:Ga({matchPatterns:q8,defaultMatchWidth:"wide",parsePatterns:Z8,defaultParseWidth:"any"}),quarter:Ga({matchPatterns:G8,defaultMatchWidth:"wide",parsePatterns:Y8,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ga({matchPatterns:K8,defaultMatchWidth:"wide",parsePatterns:X8,defaultParseWidth:"any"}),day:Ga({matchPatterns:Q8,defaultMatchWidth:"wide",parsePatterns:J8,defaultParseWidth:"any"}),dayPeriod:Ga({matchPatterns:e9,defaultMatchWidth:"any",parsePatterns:t9,defaultParseWidth:"any"})};const i9=s9;var n9={code:"en-US",formatDistance:_8,formatLong:M8,formatRelative:L8,localize:H8,match:i9,options:{weekStartsOn:0,firstWeekContainsDate:1}};const $v=n9;var o9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,r9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,l9=/^'([^]*?)'?$/,a9=/''/g,c9=/[a-zA-Z]/;function Ov(s,e,t){var i,n,r,a,c,d,u,f,p,m,g,y,v,C,w,k,_,M;bt(2,arguments);var S=String(e),x=lh(),L=(i=(n=t==null?void 0:t.locale)!==null&&n!==void 0?n:x.locale)!==null&&i!==void 0?i:$v,B=Wi((r=(a=(c=(d=t==null?void 0:t.firstWeekContainsDate)!==null&&d!==void 0?d:t==null||(u=t.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&c!==void 0?c:x.firstWeekContainsDate)!==null&&a!==void 0?a:(p=x.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=Wi((g=(y=(v=(C=t==null?void 0:t.weekStartsOn)!==null&&C!==void 0?C:t==null||(w=t.locale)===null||w===void 0||(k=w.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&v!==void 0?v:x.weekStartsOn)!==null&&y!==void 0?y:(_=x.locale)===null||_===void 0||(M=_.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&g!==void 0?g:0);if(!(N>=0&&N<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!L.localize)throw new RangeError("locale must contain localize property");if(!L.formatLong)throw new RangeError("locale must contain formatLong property");var O=Yt(s);if(!Bv(O))throw new RangeError("Invalid time value");var A=Lc(O),V=p0(O,A),R={firstWeekContainsDate:B,weekStartsOn:N,locale:L,_originalDate:O},$=S.match(r9).map(function(D){var z=D[0];if(z==="p"||z==="P"){var q=g8[z];return q(D,L.formatLong)}return D}).join("").match(o9).map(function(D){if(D==="''")return"'";var z=D[0];if(z==="'")return d9(D);var q=f8[z];if(q)return!(t!=null&&t.useAdditionalWeekYearTokens)&&b8(D)&&C2(D,e,String(s)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&C8(D)&&C2(D,e,String(s)),q(V,D,L.localize,R);if(z.match(c9))throw new RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");return D}).join("");return $}function d9(s){var e=s.match(l9);return e?e[1].replace(a9,"'"):s}function u9(s,e,t){var i,n,r,a,c,d,u,f,p,m;bt(2,arguments);var g=Yt(s),y=Yt(e),v=lh(),C=(i=(n=t==null?void 0:t.locale)!==null&&n!==void 0?n:v.locale)!==null&&i!==void 0?i:$v,w=Wi((r=(a=(c=(d=t==null?void 0:t.weekStartsOn)!==null&&d!==void 0?d:t==null||(u=t.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&c!==void 0?c:v.weekStartsOn)!==null&&a!==void 0?a:(p=v.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&r!==void 0?r:0);if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");if(!C.formatRelative)throw new RangeError("locale must contain formatRelative property");var k=e8(g,y);if(isNaN(k))throw new RangeError("Invalid time value");var _;k<-6?_="other":k<-1?_="lastWeek":k<0?_="yesterday":k<1?_="today":k<2?_="tomorrow":k<7?_="nextWeek":_="other";var M=p0(g,Lc(g)),S=p0(y,Lc(y)),x=C.formatRelative(_,M,S,{locale:C,weekStartsOn:w});return Ov(g,x,{locale:C,weekStartsOn:w})}function Ac(s,e){var t;bt(1,arguments);var i=Wi((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(i!==2&&i!==1&&i!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof s=="string"||Object.prototype.toString.call(s)==="[object String]"))return new Date(NaN);var n=m9(s),r;if(n.date){var a=g9(n.date,i);r=v9(a.restDateString,a.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var c=r.getTime(),d=0,u;if(n.time&&(d=y9(n.time),isNaN(d)))return new Date(NaN);if(n.timezone){if(u=C9(n.timezone),isNaN(u))return new Date(NaN)}else{var f=new Date(c+d),p=new Date(0);return p.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),p.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),p}return new Date(c+d+u)}var gh={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},h9=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,f9=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,p9=/^([+-])(\d{2})(?::?(\d{2}))?$/;function m9(s){var e={},t=s.split(gh.dateTimeDelimiter),i;if(t.length>2)return e;if(/:/.test(t[0])?i=t[0]:(e.date=t[0],i=t[1],gh.timeZoneDelimiter.test(e.date)&&(e.date=s.split(gh.timeZoneDelimiter)[0],i=s.substr(e.date.length,s.length))),i){var n=gh.timezone.exec(i);n?(e.time=i.replace(n[1],""),e.timezone=n[1]):e.time=i}return e}function g9(s,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),i=s.match(t);if(!i)return{year:NaN,restDateString:""};var n=i[1]?parseInt(i[1]):null,r=i[2]?parseInt(i[2]):null;return{year:r===null?n:r*100,restDateString:s.slice((i[1]||i[2]).length)}}function v9(s,e){if(e===null)return new Date(NaN);var t=s.match(h9);if(!t)return new Date(NaN);var i=!!t[4],n=Ya(t[1]),r=Ya(t[2])-1,a=Ya(t[3]),c=Ya(t[4]),d=Ya(t[5])-1;if(i)return E9(e,c,d)?b9(e,c,d):new Date(NaN);var u=new Date(0);return!k9(e,r,a)||!_9(e,n)?new Date(NaN):(u.setUTCFullYear(e,r,Math.max(n,a)),u)}function Ya(s){return s?parseInt(s):1}function y9(s){var e=s.match(f9);if(!e)return NaN;var t=Ym(e[1]),i=Ym(e[2]),n=Ym(e[3]);return T9(t,i,n)?t*Mv+i*xv+n*1e3:NaN}function Ym(s){return s&&parseFloat(s.replace(",","."))||0}function C9(s){if(s==="Z")return 0;var e=s.match(p9);if(!e)return 0;var t=e[1]==="+"?-1:1,i=parseInt(e[2]),n=e[3]&&parseInt(e[3])||0;return S9(i,n)?t*(i*Mv+n*xv):NaN}function b9(s,e,t){var i=new Date(0);i.setUTCFullYear(s,0,4);var n=i.getUTCDay()||7,r=(e-1)*7+t+1-n;return i.setUTCDate(i.getUTCDate()+r),i}var w9=[31,null,31,30,31,30,31,31,30,31,30,31];function Vv(s){return s%400===0||s%4===0&&s%100!==0}function k9(s,e,t){return e>=0&&e<=11&&t>=1&&t<=(w9[e]||(Vv(s)?29:28))}function _9(s,e){return e>=1&&e<=(Vv(s)?366:365)}function E9(s,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function T9(s,e,t){return s===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&s>=0&&s<25}function S9(s,e){return e>=0&&e<=59}var gs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function x9(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var zt={},Rv={},Ka={},ah={},za={},Cm={};Object.defineProperty(Cm,"__esModule",{value:!0});Cm.lexoHelper=void 0;Cm.lexoHelper={arrayCopy:M9};function M9(s,e,t,i,n){let r=i;const a=e+n;for(let c=e;c<a;c++)t[r]=s[c],++r}var ch={};Object.defineProperty(ch,"__esModule",{value:!0});class B9{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,t){return this.str=this.str.substr(0,e)+this.str.substr(e+t),this}insert(e,t){return this.str=this.str.substr(0,e)+t+this.str.substr(e),this}toString(){return this.str}}ch.default=B9;Object.defineProperty(za,"__esModule",{value:!0});za.LexoInteger=void 0;const vh=Cm,N9=ch;class ke{constructor(e,t,i){this.sys=e,this.sign=t,this.mag=i}static parse(e,t){let i=e,n=1;e.indexOf(t.getPositiveChar())===0?i=e.substring(1):e.indexOf(t.getNegativeChar())===0&&(i=e.substring(1),n=-1);const r=new Array(i.length);let a=r.length-1;for(let c=0;a>=0;++c)r[c]=t.toDigit(i.charAt(a)),--a;return ke.make(t,n,r)}static zero(e){return new ke(e,0,ke.ZERO_MAG)}static one(e){return ke.make(e,1,ke.ONE_MAG)}static make(e,t,i){let n;for(n=i.length;n>0&&i[n-1]===0;--n);if(n===0)return ke.zero(e);if(n===i.length)return new ke(e,t,i);const r=new Array(n).fill(0);return vh.lexoHelper.arrayCopy(i,0,r,0,n),new ke(e,t,r)}static add(e,t,i){const n=Math.max(t.length,i.length),r=new Array(n).fill(0);let a=0;for(let c=0;c<n;++c){const d=c<t.length?t[c]:0,u=c<i.length?i[c]:0;let f=d+u+a;for(a=0;f>=e.getBase();f-=e.getBase())++a;r[c]=f}return ke.extendWithCarry(r,a)}static extendWithCarry(e,t){if(t>0){const i=new Array(e.length+1).fill(0);return vh.lexoHelper.arrayCopy(e,0,i,0,e.length),i[i.length-1]=t,i}return e}static subtract(e,t,i){const n=ke.complement(e,i,t.length),r=ke.add(e,t,n);return r[r.length-1]=0,ke.add(e,r,ke.ONE_MAG)}static multiply(e,t,i){const n=new Array(t.length+i.length).fill(0);for(let r=0;r<t.length;++r)for(let a=0;a<i.length;++a){const c=r+a;for(n[c]+=t[r]*i[a];n[c]>=e.getBase();n[c]-=e.getBase())++n[c+1]}return n}static complement(e,t,i){if(i<=0)throw new Error("Expected at least 1 digit");const n=new Array(i).fill(e.getBase()-1);for(let r=0;r<t.length;++r)n[r]=e.getBase()-1-t[r];return n}static compare(e,t){if(e.length<t.length)return-1;if(e.length>t.length)return 1;for(let i=e.length-1;i>=0;--i){if(e[i]<t[i])return-1;if(e[i]>t[i])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 i;return this.sign===-1?(i=this.negate(),i.subtract(e).negate()):(i=e.negate(),this.subtract(i))}const t=ke.add(this.sys,this.mag,e.mag);return ke.make(this.sys,this.sign,t)}subtract(e){if(this.checkSystem(e),this.isZero())return e.negate();if(e.isZero())return this;if(this.sign!==e.sign){let i;return this.sign===-1?(i=this.negate(),i.add(e).negate()):(i=e.negate(),this.add(i))}const t=ke.compare(this.mag,e.mag);return t===0?ke.zero(this.sys):t<0?ke.make(this.sys,this.sign===-1?1:-1,ke.subtract(this.sys,e.mag,this.mag)):ke.make(this.sys,this.sign===-1?-1:1,ke.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?ke.make(this.sys,1,e.mag):ke.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?ke.make(this.sys,1,this.mag):ke.make(this.sys,-1,this.mag);const t=ke.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?ke.make(this.sys,1,t):ke.make(this.sys,-1,t)}negate(){return this.isZero()?this:ke.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 t=new Array(this.mag.length+e).fill(0);return vh.lexoHelper.arrayCopy(this.mag,0,t,e,this.mag.length),ke.make(this.sys,this.sign,t)}shiftRight(e=1){if(this.mag.length-e<=0)return ke.zero(this.sys);const t=new Array(this.mag.length-e).fill(0);return vh.lexoHelper.arrayCopy(this.mag,e,t,0,t.length),ke.make(this.sys,this.sign,t)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return ke.make(this.sys,this.sign,ke.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 t=ke.compare(this.mag,e.mag);return t===-1?1:t===1?-1:0}return-1}return this.sign===1?e.sign===1?ke.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 N9.default,t=this.mag,i=t.length;for(let n=0;n<i;++n){const r=t[n];e.insert(0,this.sys.toChar(r))}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")}}za.LexoInteger=ke;ke.ZERO_MAG=[0];ke.ONE_MAG=[1];ke.NEGATIVE_SIGN=-1;ke.ZERO_SIGN=0;ke.POSITIVE_SIGN=1;Object.defineProperty(ah,"__esModule",{value:!0});ah.LexoDecimal=void 0;const Xa=za,L9=ch;class ys{constructor(e,t){this.mag=e,this.sig=t}static half(e){const t=e.getBase()/2|0;return ys.make(Xa.LexoInteger.make(e,1,[t]),1)}static parse(e,t){const i=e.indexOf(t.getRadixPointChar());if(e.lastIndexOf(t.getRadixPointChar())!==i)throw new Error("More than one "+t.getRadixPointChar());if(i<0)return ys.make(Xa.LexoInteger.parse(e,t),0);const n=e.substring(0,i)+e.substring(i+1);return ys.make(Xa.LexoInteger.parse(n,t),e.length-1-i)}static from(e){return ys.make(e,0)}static make(e,t){if(e.isZero())return new ys(e,0);let i=0;for(let a=0;a<t&&e.getMag(a)===0;++a)++i;const n=e.shiftRight(i),r=t-i;return new ys(n,r)}getSystem(){return this.mag.getSystem()}add(e){let t=this.mag,i=this.sig,n=e.mag,r;for(r=e.sig;i<r;++i)t=t.shiftLeft();for(;i>r;)n=n.shiftLeft(),++r;return ys.make(t.add(n),i)}subtract(e){let t=this.mag,i=this.sig,n=e.mag,r;for(r=e.sig;i<r;++i)t=t.shiftLeft();for(;i>r;)n=n.shiftLeft(),++r;return ys.make(t.subtract(n),i)}multiply(e){return ys.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(Xa.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,t=!1){if(e>=this.sig)return this;e<0&&(e=0);const i=this.sig-e;let n=this.mag.shiftRight(i);return t&&(n=n.add(Xa.LexoInteger.one(n.getSystem()))),ys.make(n,e)}compareTo(e){if(this===e)return 0;if(!e)return 1;let t=this.mag,i=e.mag;return this.sig>e.sig?i=i.shiftLeft(this.sig-e.sig):this.sig<e.sig&&(t=t.shiftLeft(e.sig-this.sig)),t.compareTo(i)}format(){const e=this.mag.format();if(this.sig===0)return e;const t=new L9.default(e),i=t[0],n=i===this.mag.getSystem().getPositiveChar()||i===this.mag.getSystem().getNegativeChar();for(n&&t.remove(0,1);t.length<this.sig+1;)t.insert(0,this.mag.getSystem().toChar(0));return t.insert(t.length-this.sig,this.mag.getSystem().getRadixPointChar()),t.length-this.sig===0&&t.insert(0,this.mag.getSystem().toChar(0)),n&&t.insert(0,i),t.toString()}equals(e){return this===e?!0:e?this.mag.equals(e.mag)&&this.sig===e.sig:!1}toString(){return this.format()}}ah.LexoDecimal=ys;var yh={},b2;function Iv(){if(b2)return yh;b2=1,Object.defineProperty(yh,"__esModule",{value:!0});const s=za,e=Pv();class t{constructor(n){this.value=s.LexoInteger.parse(n,e.LexoRank.NUMERAL_SYSTEM)}static get BUCKET_0(){return this._BUCKET_0||(this._BUCKET_0=new t("0")),this._BUCKET_0}static get BUCKET_1(){return this._BUCKET_1||(this._BUCKET_1=new t("1")),this._BUCKET_1}static get BUCKET_2(){return this._BUCKET_2||(this._BUCKET_2=new t("2")),this._BUCKET_2}static get VALUES(){return this._VALUES||(this._VALUES=[t.BUCKET_0,t.BUCKET_1,t.BUCKET_2]),this._VALUES}static max(){return t.VALUES[t.VALUES.length-1]}static from(n){const r=s.LexoInteger.parse(n,e.LexoRank.NUMERAL_SYSTEM),a=t.VALUES,c=a.length;for(let d=0;d<c;++d){const u=a[d];if(u.value.equals(r))return u}throw new Error("Unknown bucket: "+n)}static resolve(n){const r=t.VALUES,a=r.length;for(let c=0;c<a;++c){const d=r[c];if(d.equals(t.from(n.toString())))return d}throw new Error("No bucket found with id "+n)}format(){return this.value.format()}next(){return this.equals(t.BUCKET_0)?t.BUCKET_1:this.equals(t.BUCKET_1)?t.BUCKET_2:this.equals(t.BUCKET_2)?t.BUCKET_0:t.BUCKET_2}prev(){return this.equals(t.BUCKET_0)?t.BUCKET_2:this.equals(t.BUCKET_1)?t.BUCKET_0:this.equals(t.BUCKET_2)?t.BUCKET_1:t.BUCKET_0}equals(n){return this===n?!0:n?this.value.equals(n.value):!1}}return yh.default=t,yh}var Lg={},Dv={};Object.defineProperty(Dv,"__esModule",{value:!0});var bm={};Object.defineProperty(bm,"__esModule",{value:!0});bm.LexoNumeralSystem10=void 0;class A9{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)}}bm.LexoNumeralSystem10=A9;var wm={};Object.defineProperty(wm,"__esModule",{value:!0});wm.LexoNumeralSystem36=void 0;class $9{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]}}wm.LexoNumeralSystem36=$9;var km={};Object.defineProperty(km,"__esModule",{value:!0});km.LexoNumeralSystem64=void 0;class O9{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]}}km.LexoNumeralSystem64=O9;(function(s){var e=gs&&gs.__createBinding||(Object.create?function(i,n,r,a){a===void 0&&(a=r);var c=Object.getOwnPropertyDescriptor(n,r);(!c||("get"in c?!n.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(i,a,c)}:function(i,n,r,a){a===void 0&&(a=r),i[a]=n[r]}),t=gs&&gs.__exportStar||function(i,n){for(var r in i)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,i,r)};Object.defineProperty(s,"__esModule",{value:!0}),t(Dv,s),t(bm,s),t(wm,s),t(km,s)})(Lg);var w2;function Pv(){if(w2)return Ka;w2=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.LexoRank=void 0;const s=ah,e=Iv(),t=ch,i=Lg;class n{constructor(a,c){this.value=a.format()+"|"+n.formatDecimal(c),this.bucket=a,this.decimal=c}static get NUMERAL_SYSTEM(){return this._NUMERAL_SYSTEM||(this._NUMERAL_SYSTEM=new i.LexoNumeralSystem36),this._NUMERAL_SYSTEM}static get ZERO_DECIMAL(){return this._ZERO_DECIMAL||(this._ZERO_DECIMAL=s.LexoDecimal.parse("0",n.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=s.LexoDecimal.parse("1",n.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=s.LexoDecimal.parse("8",n.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=n.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=s.LexoDecimal.parse("1000000",n.NUMERAL_SYSTEM).subtract(n.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=n.between(n.MIN_DECIMAL,n.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=s.LexoDecimal.parse("100000",n.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=s.LexoDecimal.parse(n.NUMERAL_SYSTEM.toChar(n.NUMERAL_SYSTEM.getBase()-2)+"00000",n.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return n.from(e.default.BUCKET_0,n.MIN_DECIMAL)}static middle(){const a=n.min();return a.between(n.max(a.bucket))}static max(a=e.default.BUCKET_0){return n.from(a,n.MAX_DECIMAL)}static initial(a){return a===e.default.BUCKET_0?n.from(a,n.INITIAL_MIN_DECIMAL):n.from(a,n.INITIAL_MAX_DECIMAL)}static between(a,c){if(a.getSystem().getBase()!==c.getSystem().getBase())throw new Error("Expected same system");let d=a,u=c,f;if(a.getScale()<c.getScale()){if(f=c.setScale(a.getScale(),!1),a.compareTo(f)>=0)return n.mid(a,c);u=f}if(a.getScale()>u.getScale()){if(f=a.setScale(u.getScale(),!0),f.compareTo(u)>=0)return n.mid(a,c);d=f}let p;for(let y=d.getScale();y>0;u=p){const v=y-1,C=d.setScale(v,!0);if(p=u.setScale(v,!1),C.compareTo(p)===0)return n.checkMid(a,c,C);if(C.compareTo(p)>0)break;y=v,d=C}let m=n.middleInternal(a,c,d,u),g;for(let y=m.getScale();y>0;y=g){g=y-1;const v=m.setScale(g);if(a.compareTo(v)>=0||v.compareTo(c)>=0)break;m=v}return m}static parse(a){const c=a.split("|"),d=e.default.from(c[0]),u=s.LexoDecimal.parse(c[1],n.NUMERAL_SYSTEM);return new n(d,u)}static from(a,c){if(c.getSystem().getBase()!==n.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new n(a,c)}static middleInternal(a,c,d,u){const f=n.mid(d,u);return n.checkMid(a,c,f)}static checkMid(a,c,d){return a.compareTo(d)>=0||d.compareTo(c)>=0?n.mid(a,c):d}static mid(a,c){const u=a.add(c).multiply(s.LexoDecimal.half(a.getSystem())),f=a.getScale()>c.getScale()?a.getScale():c.getScale();if(u.getScale()>f){const p=u.setScale(f,!1);if(p.compareTo(a)>0)return p;const m=u.setScale(f,!0);if(m.compareTo(c)<0)return m}return u}static formatDecimal(a){const c=a.format(),d=new t.default(c);let u=c.indexOf(n.NUMERAL_SYSTEM.getRadixPointChar());const f=n.NUMERAL_SYSTEM.toChar(0);for(u<0&&(u=c.length,d.append(n.NUMERAL_SYSTEM.getRadixPointChar()));u<6;)d.insert(0,f),++u;for(;d[d.length-1]===f;)d.length=d.length-1;return d.toString()}genPrev(){if(this.isMax())return new n(this.bucket,n.INITIAL_MAX_DECIMAL);const a=this.decimal.floor();let d=s.LexoDecimal.from(a).subtract(n.EIGHT_DECIMAL);return d.compareTo(n.MIN_DECIMAL)<=0&&(d=n.between(n.MIN_DECIMAL,this.decimal)),new n(this.bucket,d)}genNext(){if(this.isMin())return new n(this.bucket,n.INITIAL_MIN_DECIMAL);const a=this.decimal.ceil();let d=s.LexoDecimal.from(a).add(n.EIGHT_DECIMAL);return d.compareTo(n.MAX_DECIMAL)>=0&&(d=n.between(this.decimal,n.MAX_DECIMAL)),new n(this.bucket,d)}between(a){if(!this.bucket.equals(a.bucket))throw new Error("Between works only within the same bucket");const c=this.decimal.compareTo(a.decimal);if(c>0)return new n(this.bucket,n.between(a.decimal,this.decimal));if(c===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 n(this.bucket,n.between(this.decimal,a.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return n.from(this.bucket.next(),this.decimal)}inPrevBucket(){return n.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(n.MIN_DECIMAL)}isMax(){return this.decimal.equals(n.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 Ka.LexoRank=n,Ka}(function(s){var e=gs&&gs.__createBinding||(Object.create?function(i,n,r,a){a===void 0&&(a=r);var c=Object.getOwnPropertyDescriptor(n,r);(!c||("get"in c?!n.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(i,a,c)}:function(i,n,r,a){a===void 0&&(a=r),i[a]=n[r]}),t=gs&&gs.__exportStar||function(i,n){for(var r in i)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,i,r)};Object.defineProperty(s,"__esModule",{value:!0}),t(Pv(),s),t(Iv(),s),t(ah,s),t(za,s)})(Rv);(function(s){var e=gs&&gs.__createBinding||(Object.create?function(i,n,r,a){a===void 0&&(a=r);var c=Object.getOwnPropertyDescriptor(n,r);(!c||("get"in c?!n.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(i,a,c)}:function(i,n,r,a){a===void 0&&(a=r),i[a]=n[r]}),t=gs&&gs.__exportStar||function(i,n){for(var r in i)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,i,r)};Object.defineProperty(s,"__esModule",{value:!0}),t(Rv,s),t(Lg,s)})(zt);const sc=60,V9=8,k2=sc*V9;function _m(s,e){if(!s)return"0m";if(e==="days"){const i=Math.floor(s/k2),n=Math.floor(s%k2/sc);if(i>0&&n>0)return`${i}d ${n}h`;if(i>0)return`${i}d`;{const r=s%sc;return r>0?`${n}h ${r}m`:`${n}h`}}else{const i=Math.floor(s/sc),n=s%sc;return i>0&&n>0?`${i}h ${n}m`:i>0?`${i}h`:`${n}m`}}function Hv(s){return(s==null?void 0:s.reduce((e,t)=>{var i;return e+(((i=t.activities)==null?void 0:i.length)??0)},0))??0}function R9(s){return(s==null?void 0:s.reduce((e,t)=>{var i;return e+(((i=t.milestones)==null?void 0:i.length)??0)},0))??0}function I9(s){return(s==null?void 0:s.reduce((e,t)=>{var n;const i=(n=t.milestones)!=null&&n.length?Hv(t.milestones):0;return e+i},0))??0}function D9(s){return s.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function dh(s,e){if(s.moved)return Ra(e,s.moved.newIndex)}function Ra(s,e){if(e===0)if(s.length>1){const t=s[e+1];return zt.LexoRank.parse(t.rank).genPrev().format()}else return zt.LexoRank.middle().format();else if(e===s.length-1){const t=s[e-1];return zt.LexoRank.parse(t.rank).genNext().format()}else{const t=s[e-1],i=s[e+1];return zt.LexoRank.parse(i.rank).between(zt.LexoRank.parse(t.rank)).format()}}function Em(s,e="dd/MM/yyyy"){if(!s)return"";const t=Ac(s);return Bv(t)?Ov(t,e):""}function Ag(s,e){return s.status.id===e.id}function P9(s,e){return s.activities.length===0?!1:!s.activities.some(t=>!Ag(t,e))}function H9(s,e){return{...s,status:P9(s,e)?Nc.done:Nc.todo}}const Fv=s=>{const{firstName:e,lastName:t}=s||{};return`${e??""}${e?" ":""}${t??""}`};function F9(s,e){const t=s.replace("#",""),i=parseInt(t.slice(0,2),16),n=parseInt(t.slice(2,4),16),r=parseInt(t.slice(4,6),16);return`rgba(${i}, ${n}, ${r}, ${e})`}function W9(s,e=.15){var t;if(s.startsWith("#"))return F9(s,e);if(s.startsWith("rgba")){const i=(t=s.match(/rgba?\(([^)]+)\)/))==null?void 0:t[1].split(",").map(n=>n.trim());if(i&&i.length>=3){const[n,r,a]=i;return`rgba(${n}, ${r}, ${a}, ${e})`}}return s}const z9=["title"],j9={key:0,className:"ao-avatar__initials"},U9=["src"],ji=l.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:ym.MD},color:{default:"primary"}},emits:["close"],setup(s,{emit:e}){const t=s,i=e,n=l.computed(()=>[`ao-avatar--${t.color}`,...t.avatarUrl?["ao-avatar-img",`ao-avatar-img--${t.size}`]:["ao-avatar",`ao-avatar--${t.size}`]]),r=D9(t.userName),a=c=>{i("close",c)};return(c,d)=>(l.openBlock(),l.createElementBlock("div",{role:"img",class:l.normalizeClass(n.value),title:s.userName},[s.avatarUrl?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("span",j9,l.toDisplayString(l.unref(r)),1)),s.avatarUrl?(l.openBlock(),l.createElementBlock("img",{key:1,className:"ao-avatar__image",src:s.avatarUrl},null,8,U9)):l.createCommentVNode("",!0),s.isClosable?(l.openBlock(),l.createBlock(Ee,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:s.color,corners:"round",onClick:l.withModifiers(a,["stop"])},null,8,["color"])):l.createCommentVNode("",!0)],10,z9))}});const q9={class:"ao-card-template__subitems"},Z9={class:"ao-card-template__subitem"},G9={class:"ao-card-template__subitem-number"},Y9={class:"ao-card-template__subitem"},K9={class:"ao-card-template__subitem"},X9={class:"ao-card-template__body"},Q9={class:"ao-card-template__col ao-card-template__col--phases"},J9={class:"ao-card-template__col-title"},e6={class:"ao-card-template__col-label"},t6={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},s6={class:"ao-card-template__footer"},i6={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},n6={class:"ao-card-template__col-title"},o6={class:"ao-card-template__col-label"},r6={class:"ao-card-template__col-body"},l6={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},a6={class:"ao-card-template__col-title"},c6={class:"ao-card-template__col-label"},d6={class:"ao-card-template__col-body"},u6={class:"ao-card-template-item__secondary"},Km=5,h6=l.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(s,{emit:e}){const t=s,i=e,n=d=>{i("updateTitle",d)},r=(d,u)=>{i("deleteItem",d,u)},a=l.computed(()=>{var d;return((d=t.phases)==null?void 0:d.slice(0,Km))??[]}),c=l.computed(()=>t.phases&&t.phases.length>Km?t.phases.length-Km:0);return(d,u)=>(l.openBlock(),l.createBlock(wv,{id:s.id,title:s.title,"is-draggable":!0,"onUpdate:title":n},l.createSlots({subtitle:l.withCtx(()=>[l.createElementVNode("ul",q9,[l.createElementVNode("li",Z9,[l.createVNode(Ye,{name:"MountainFlagOutlineRounded",size:"sm"}),l.createElementVNode("span",G9,l.toDisplayString(s.milestones),1)]),l.createElementVNode("li",Y9,[l.createVNode(Ye,{name:"TaskOutlineRounded",size:"sm"}),l.createElementVNode("span",K9,l.toDisplayString(s.activities),1)])])]),default:l.withCtx(()=>[l.createElementVNode("div",X9,[l.createElementVNode("div",Q9,[l.createElementVNode("div",J9,[l.createVNode(Ye,{name:"WaterfallChartRounded",size:"sm"}),l.createElementVNode("span",e6,l.toDisplayString(d.$t("template.phases.title")),1)]),s.phases?(l.openBlock(),l.createElementBlock("ul",t6,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.value,f=>(l.openBlock(),l.createBlock(Bc,{key:f.id,label:f.name||f.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),c.value>0?(l.openBlock(),l.createBlock(Bc,{key:0,label:`+${c.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)])])]),secondary:l.withCtx(()=>[l.createElementVNode("div",u6,[l.createVNode(Ee,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:u[0]||(u[0]=l.withModifiers(f=>r(s.id,s.title),["stop"]))})])]),_:2},[s.updatedBy||s.updatedAt?{name:"footer",fn:l.withCtx(()=>[l.createElementVNode("div",s6,[s.updatedAt?(l.openBlock(),l.createElementBlock("div",i6,[l.createElementVNode("div",n6,[l.createElementVNode("span",o6,l.toDisplayString(d.$t("template.updatedAt.label")),1)]),l.createElementVNode("div",r6,[l.createElementVNode("span",null,l.toDisplayString(s.updatedAt),1)])])):l.createCommentVNode("",!0),s.updatedBy?(l.openBlock(),l.createElementBlock("div",l6,[l.createElementVNode("div",a6,[l.createElementVNode("span",c6,l.toDisplayString(d.$t("template.updatedBy.label")),1)]),l.createElementVNode("div",d6,[l.createVNode(ji,{"user-name":s.updatedBy},null,8,["user-name"])])])):l.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const f6={class:"ao-page-header"},p6={class:"ao-page-header-main"},m6={key:0,class:"ao-page-header-secondary"},uh=l.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(s){return(e,t)=>(l.openBlock(),l.createElementBlock("header",f6,[l.createElementVNode("div",p6,[s.canGoBack?(l.openBlock(),l.createBlock(Ee,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:t[0]||(t[0]=i=>e.$emit("goBack"))})):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(l.openBlock(),l.createElementBlock("div",m6,[l.renderSlot(e.$slots,"secondary")])):l.createCommentVNode("",!0)]))}});const g6=["type"],v6={key:0,class:"ao-button-card__label"},Zn=l.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Ng.BLACK},size:{default:()=>ym.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>bv.ROUNDED}},setup(s){const e=s,t=l.computed(()=>e.size),i=l.computed(()=>e.isLoading?"Loading":e.iconName);return(n,r)=>(l.openBlock(),l.createElementBlock("button",{type:s.type,class:l.normalizeClass(["ao-button-card",`ao-button-card--${s.color}`,`ao-button-card--${s.corners}`,n.$attrs.disabled?"ao-button-card--is-disabled":""])},[l.renderSlot(n.$slots,"default",{},()=>[s.label?(l.openBlock(),l.createElementBlock("span",v6,l.toDisplayString(s.label),1)):l.createCommentVNode("",!0)]),i.value?(l.openBlock(),l.createBlock(Ye,{key:0,name:i.value,class:"ao-button-card__icon",size:t.value},null,8,["name","size"])):l.createCommentVNode("",!0)],10,g6))}});const y6={class:"ao-card-template-item__footer"},C6={key:0,class:"ao-card-template-item__subitem"},b6={class:"ao-card-template-item__subitem-number"},w6={class:"ao-card-template-item__secondary"},$g=l.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(s,{emit:e}){const t=e,i=c=>{t("update:title",c)},n=["milestones","activities","rules","tasks"],r={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},a=()=>{t("remove")};return(c,d)=>(l.openBlock(),l.createBlock(wv,{"onUpdate:title":i},{footer:l.withCtx(()=>[l.createElementVNode("ul",y6,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(n,u=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:u},[c.$props[u]?(l.openBlock(),l.createElementBlock("li",C6,[l.createVNode(Ye,{name:r[u],size:"sm"},null,8,["name"]),l.createElementVNode("span",b6,l.toDisplayString(c.$props[u]),1)])):l.createCommentVNode("",!0)],64))),64))])]),secondary:l.withCtx(()=>[l.createElementVNode("div",w6,[l.createVNode(Ee,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:l.withModifiers(a,["stop"])})])]),_:1}))}});const k6=l.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(s){const e=s,t=l.computed(()=>{var n;return(n=e.milestones)==null?void 0:n.length}),i=l.computed(()=>e.milestones?Hv(e.milestones):0);return(n,r)=>(l.openBlock(),l.createBlock($g,l.mergeProps({id:s.id,title:s.name,activities:i.value,milestones:t.value},n.$attrs),{default:l.withCtx(()=>[l.renderSlot(n.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),_6=l.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(s){const e=s,t=l.computed(()=>{var i;return((i=e.activities)==null?void 0:i.length)||0});return(i,n)=>(l.openBlock(),l.createBlock($g,{activities:t.value},{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},8,["activities"]))}}),E6={class:"ao-list__footer"},T6=l.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(s,{emit:e}){const t=s,i=e,n=()=>{i("addMilestone",{phaseId:t.phase.id})},r=d=>{i("removeMilestone",{phaseId:t.phase.id,id:d})},a=d=>{i("updateMilestone",d)},c=d=>{if(d.moved){const u=dh(d,t.phase.milestones);i("updateMilestone",{id:d.moved.element.id,rank:u})}};return(d,u)=>s.phase?(l.openBlock(),l.createBlock(l.unref(qn),{key:0,"model-value":s.phase.milestones,class:"ao-templates__list",title:d.$t("template.milestones.title"),handle:".ao-card__drag","item-key":"id",onChange:c},{header:l.withCtx(()=>[l.createVNode(jt,{title:"Milestones",level:3,class:"ao-list__title"})]),item:l.withCtx(({element:f})=>[(l.openBlock(),l.createBlock(_6,{id:f.id,key:f.id,title:f.name,activities:f.activities,"is-active":s.milestoneId===f.id,"is-draggable":!0,"onUpdate:title":p=>a({id:f.id,name:p}),onClick:p=>d.$router.push({params:{milestoneId:f.id}}),onRemove:()=>r(f.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:l.withCtx(()=>[l.createElementVNode("div",E6,[l.createVNode(Zn,{"icon-name":"AddBoxOutlineRounded",label:d.$t("template.milestones.add"),onClick:n},null,8,["label"])])]),_:1},8,["model-value","title"])):l.createCommentVNode("",!0)}}),S6=l.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(s){const e=s,t=l.computed(()=>{var i;return((i=e.tasks)==null?void 0:i.length)||0});return(i,n)=>(l.openBlock(),l.createBlock($g,{tasks:t.value},{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},8,["tasks"]))}}),x6={class:"ao-list__footer"},M6=l.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(s,{emit:e}){const t=s,i=e,n=()=>{i("addActivity",{milestoneId:t.milestone.id})},r=d=>{i("updateActivity",{...d})},a=d=>{i("removeActivity",{id:d})},c=d=>{if(d.moved){const u=dh(d,t.milestone.activities);i("updateActivity",{id:d.moved.element.id,rank:u})}};return(d,u)=>s.milestone?(l.openBlock(),l.createBlock(l.unref(qn),{key:0,"model-value":s.milestone.activities,title:d.$t("template.activities.title"),class:"ao-templates__list",handle:".ao-card__drag","item-key":"id",onChange:c},{header:l.withCtx(()=>[l.createVNode(jt,{title:"Activities",level:3,class:"ao-list__title"})]),item:l.withCtx(({element:f})=>[(l.openBlock(),l.createBlock(S6,{id:f.id,key:f.id,title:f.name,tasks:f.tasks,"is-active":s.activityId===f.id,"is-draggable":!0,"onUpdate:title":p=>r({id:f.id,name:p}),onClick:p=>d.$router.push({params:{activityId:f.id}}),onRemove:()=>a(f.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:l.withCtx(()=>[l.createElementVNode("div",x6,[l.createVNode(Zn,{"icon-name":"AddBoxOutlineRounded",label:d.$t("template.activities.add"),onClick:n},null,8,["label"])])]),_:1},8,["model-value","title"])):l.createCommentVNode("",!0)}}),B6={class:"ao-modal"},N6={key:0,class:"ao-modal__header"},L6={class:"ao-modal__header-meta"},A6={class:"ao-modal__title-group"},$6={class:"ao-modal__body"},O6={key:1,class:"ao-modal__footer"},Tm=l.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(s){return(e,t)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${s.size}`])},[l.createElementVNode("div",{class:"ao-modal__backdrop",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l.createElementVNode("div",B6,[e.$slots.header?(l.openBlock(),l.createElementBlock("div",N6,[l.createElementVNode("div",L6,[l.createVNode(Ee,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:t[1]||(t[1]=i=>e.$emit("close"))})]),l.createElementVNode("header",A6,[l.renderSlot(e.$slots,"header")])])):l.createCommentVNode("",!0),l.createElementVNode("div",$6,[l.renderSlot(e.$slots,"default")]),e.$slots.footer?(l.openBlock(),l.createElementBlock("footer",O6,[l.renderSlot(e.$slots,"footer")])):l.createCommentVNode("",!0)])],2))}});const $c=Math.min,Wn=Math.max,Jh=Math.round,Ch=Math.floor,Pi=s=>({x:s,y:s}),V6={left:"right",right:"left",bottom:"top",top:"bottom"};function Og(s,e){return typeof s=="function"?s(e):s}function Ia(s){return s.split("-")[0]}function Sm(s){return s.split("-")[1]}function R6(s){return s==="x"?"y":"x"}function Wv(s){return s==="y"?"height":"width"}function ro(s){const e=s[0];return e==="t"||e==="b"?"y":"x"}function zv(s){return R6(ro(s))}function I6(s,e,t){t===void 0&&(t=!1);const i=Sm(s),n=zv(s),r=Wv(n);let a=n==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=e1(a)),[a,e1(a)]}function D6(s){const e=e1(s);return[m0(s),e,m0(e)]}function m0(s){return s.includes("start")?s.replace("start","end"):s.replace("end","start")}const _2=["left","right"],E2=["right","left"],P6=["top","bottom"],H6=["bottom","top"];function F6(s,e,t){switch(s){case"top":case"bottom":return t?e?E2:_2:e?_2:E2;case"left":case"right":return e?P6:H6;default:return[]}}function W6(s,e,t,i){const n=Sm(s);let r=F6(Ia(s),t==="start",i);return n&&(r=r.map(a=>a+"-"+n),e&&(r=r.concat(r.map(m0)))),r}function e1(s){const e=Ia(s);return V6[e]+s.slice(e.length)}function z6(s){var e,t,i,n;return{top:(e=s.top)!=null?e:0,right:(t=s.right)!=null?t:0,bottom:(i=s.bottom)!=null?i:0,left:(n=s.left)!=null?n:0}}function j6(s){return typeof s!="number"?z6(s):{top:s,right:s,bottom:s,left:s}}function t1(s){const{x:e,y:t,width:i,height:n}=s;return{width:i,height:n,top:t,left:e,right:e+i,bottom:t+n,x:e,y:t}}function T2(s,e,t){let{reference:i,floating:n}=s;const r=ro(e),a=zv(e),c=Wv(a),d=Ia(e),u=r==="y",f=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,m=i[c]/2-n[c]/2;let g;switch(d){case"top":g={x:f,y:i.y-n.height};break;case"bottom":g={x:f,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:p};break;case"left":g={x:i.x-n.width,y:p};break;default:g={x:i.x,y:i.y}}const y=Sm(e);return y&&(g[a]+=m*(y==="end"?1:-1)*(t&&u?-1:1)),g}async function U6(s,e){var t;e===void 0&&(e={});const{x:i,y:n,platform:r,rects:a,elements:c,strategy:d}=s,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=Og(e,s),y=j6(g),C=c[m?p==="floating"?"reference":"floating":p],w=t1(await r.getClippingRect({element:(t=await(r.isElement==null?void 0:r.isElement(C)))==null||t?C:C.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:d})),k=p==="floating"?{x:i,y:n,width:a.floating.width,height:a.floating.height}:a.reference,_=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),M=await(r.isElement==null?void 0:r.isElement(_))&&await(r.getScale==null?void 0:r.getScale(_))||{x:1,y:1},S=t1(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:k,offsetParent:_,strategy:d}):k);return{top:(w.top-S.top+y.top)/M.y,bottom:(S.bottom-w.bottom+y.bottom)/M.y,left:(w.left-S.left+y.left)/M.x,right:(S.right-w.right+y.right)/M.x}}const q6=50,Z6=async(s,e,t)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:a}=t,c=a.detectOverflow?a:{...a,detectOverflow:U6},d=await(a.isRTL==null?void 0:a.isRTL(e));let u=await a.getElementRects({reference:s,floating:e,strategy:n}),{x:f,y:p}=T2(u,i,d),m=i,g=0;const y={};for(let v=0;v<r.length;v++){const C=r[v];if(!C)continue;const{name:w,fn:k}=C,{x:_,y:M,data:S,reset:x}=await k({x:f,y:p,initialPlacement:i,placement:m,strategy:n,middlewareData:y,rects:u,platform:c,elements:{reference:s,floating:e}});f=_??f,p=M??p,y[w]={...y[w],...S},x&&g<q6&&(g++,typeof x=="object"&&(x.placement&&(m=x.placement),x.rects&&(u=x.rects===!0?await a.getElementRects({reference:s,floating:e,strategy:n}):x.rects),{x:f,y:p}=T2(u,m,d)),v=-1)}return{x:f,y:p,placement:m,strategy:n,middlewareData:y}},G6=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(e){var t,i;const{placement:n,middlewareData:r,rects:a,initialPlacement:c,platform:d,elements:u}=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...C}=Og(s,e);if((t=r.arrow)!=null&&t.alignmentOffset)return{};const w=Ia(n),k=ro(c),_=Ia(c)===c,M=await(d.isRTL==null?void 0:d.isRTL(u.floating)),S=m||(_||!v?[e1(c)]:D6(c)),x=y!=="none";!m&&x&&S.push(...W6(c,v,y,M));const L=[c,...S],B=await d.detectOverflow(e,C),N=[];let O=((i=r.flip)==null?void 0:i.overflows)||[];if(f&&N.push(B[w]),p){const $=I6(n,a,M);N.push(B[$[0]],B[$[1]])}if(O=[...O,{placement:n,overflows:N}],!N.every($=>$<=0)){var A,V;const $=(((A=r.flip)==null?void 0:A.index)||0)+1,D=L[$];if(D&&(!(p==="alignment"?k!==ro(D):!1)||O.every(F=>ro(F.placement)===k?F.overflows[0]>0:!0)))return{data:{index:$,overflows:O},reset:{placement:D}};let z=(V=O.filter(q=>q.overflows[0]<=0).sort((q,F)=>q.overflows[1]-F.overflows[1])[0])==null?void 0:V.placement;if(!z)switch(g){case"bestFit":{var R;const q=(R=O.filter(F=>{if(x){const I=ro(F.placement);return I===k||I==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(I=>I>0).reduce((I,Z)=>I+Z,0)]).sort((F,I)=>F[1]-I[1])[0])==null?void 0:R[0];q&&(z=q);break}case"initialPlacement":z=c;break}if(n!==z)return{reset:{placement:z}}}return{}}}},Y6=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(e){const{placement:t,rects:i,platform:n,elements:r}=e,{apply:a=()=>{},...c}=Og(s,e),d=await n.detectOverflow(e,c),u=Ia(t),f=Sm(t),p=ro(t)==="y",{width:m,height:g}=i.floating;let y,v;u==="top"||u==="bottom"?(y=u,v=f===(await(n.isRTL==null?void 0:n.isRTL(r.floating))?"start":"end")?"left":"right"):(v=u,y=f==="end"?"top":"bottom");const C=g-d.top-d.bottom,w=m-d.left-d.right,k=$c(g-d[y],C),_=$c(m-d[v],w),M=e.middlewareData.shift,S=!M;let x=k,L=_;M!=null&&M.enabled.x&&(L=w),M!=null&&M.enabled.y&&(x=C),S&&!f&&(p?L=m-2*Wn(d.left,d.right):x=g-2*Wn(d.top,d.bottom)),await a({...e,availableWidth:L,availableHeight:x});const B=await n.getDimensions(r.floating);return m!==B.width||g!==B.height?{reset:{rects:!0}}:{}}}};function xm(){return typeof window<"u"}function ja(s){return jv(s)?(s.nodeName||"").toLowerCase():"#document"}function ns(s){var e;return(s==null||(e=s.ownerDocument)==null?void 0:e.defaultView)||window}function Ui(s){var e;return(e=(jv(s)?s.ownerDocument:s.document)||window.document)==null?void 0:e.documentElement}function jv(s){return xm()?s instanceof Node||s instanceof ns(s).Node:!1}function mi(s){return xm()?s instanceof Element||s instanceof ns(s).Element:!1}function Gn(s){return xm()?s instanceof HTMLElement||s instanceof ns(s).HTMLElement:!1}function S2(s){return!xm()||typeof ShadowRoot>"u"?!1:s instanceof ShadowRoot||s instanceof ns(s).ShadowRoot}function Mm(s){const{overflow:e,overflowX:t,overflowY:i,display:n}=gi(s);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&n!=="inline"&&n!=="contents"}function K6(s){return/^(table|td|th)$/.test(ja(s))}function Bm(s){try{if(s.matches(":popover-open"))return!0}catch{}try{return s.matches(":modal")}catch{return!1}}const X6=/transform|translate|scale|rotate|perspective|filter/,Q6=/paint|layout|strict|content/,Jn=s=>!!s&&s!=="none";let Xm;function Vg(s){const e=mi(s)?gi(s):s;return Jn(e.transform)||Jn(e.translate)||Jn(e.scale)||Jn(e.rotate)||Jn(e.perspective)||!Rg()&&(Jn(e.backdropFilter)||Jn(e.filter))||X6.test(e.willChange||"")||Q6.test(e.contain||"")}function J6(s){let e=br(s);for(;Gn(e)&&!Oc(e);){if(Vg(e))return e;if(Bm(e))return null;e=br(e)}return null}function Rg(){return Xm==null&&(Xm=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Xm}function Oc(s){return/^(html|body|#document)$/.test(ja(s))}function gi(s){return ns(s).getComputedStyle(s)}function Nm(s){return mi(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function br(s){if(ja(s)==="html")return s;const e=s.assignedSlot||s.parentNode||S2(s)&&s.host||Ui(s);return S2(e)?e.host:e}function Uv(s){const e=br(s);return Oc(e)?(s.ownerDocument||s).body:Gn(e)&&Mm(e)?e:Uv(e)}function Vc(s,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);const n=Uv(s),r=n===((i=s.ownerDocument)==null?void 0:i.body),a=ns(n);if(r){const c=g0(a);return e.concat(a,a.visualViewport||[],Mm(n)?n:[],c&&t?Vc(c):[])}else return e.concat(n,Vc(n,[],t))}function g0(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function qv(s){const e=gi(s);let t=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const n=Gn(s),r=n?s.offsetWidth:t,a=n?s.offsetHeight:i,c=Jh(t)!==r||Jh(i)!==a;return c&&(t=r,i=a),{width:t,height:i,$:c}}function Ig(s){return mi(s)?s:s.contextElement}function Hr(s){const e=Ig(s);if(!Gn(e))return Pi(1);const t=e.getBoundingClientRect(),{width:i,height:n,$:r}=qv(e);let a=(r?Jh(t.width):t.width)/i,c=(r?Jh(t.height):t.height)/n;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const eE=Pi(0);function Zv(s){const e=ns(s);return!Rg()||!e.visualViewport?eE:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function tE(s,e,t){return e===void 0&&(e=!1),!!t&&e&&t===ns(s)}function wr(s,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);const n=s.getBoundingClientRect(),r=Ig(s);let a=Pi(1);e&&(i?mi(i)&&(a=Hr(i)):a=Hr(s));const c=tE(r,t,i)?Zv(r):Pi(0);let d=(n.left+c.x)/a.x,u=(n.top+c.y)/a.y,f=n.width/a.x,p=n.height/a.y;if(r&&i){const m=ns(r),g=mi(i)?ns(i):i;let y=m,v=g0(y);for(;v&&g!==y;){const C=Hr(v),w=v.getBoundingClientRect(),k=gi(v),_=w.left+(v.clientLeft+parseFloat(k.paddingLeft))*C.x,M=w.top+(v.clientTop+parseFloat(k.paddingTop))*C.y;d*=C.x,u*=C.y,f*=C.x,p*=C.y,d+=_,u+=M,y=ns(v),v=g0(y)}}return t1({width:f,height:p,x:d,y:u})}function Lm(s,e){const t=Nm(s).scrollLeft;return e?e.left+t:wr(Ui(s)).left+t}function Gv(s,e){const t=s.getBoundingClientRect(),i=t.left+e.scrollLeft-Lm(s,t),n=t.top+e.scrollTop;return{x:i,y:n}}function sE(s){let{elements:e,rect:t,offsetParent:i,strategy:n}=s;const r=n==="fixed",a=Ui(i),c=e?Bm(e.floating):!1;if(i===a||c&&r)return t;let d={scrollLeft:0,scrollTop:0},u=Pi(1);const f=Pi(0),p=Gn(i);if((p||!r)&&((ja(i)!=="body"||Mm(a))&&(d=Nm(i)),p)){const g=wr(i);u=Hr(i),f.x=g.x+i.clientLeft,f.y=g.y+i.clientTop}const m=a&&!p&&!r?Gv(a,d):Pi(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-d.scrollLeft*u.x+f.x+m.x,y:t.y*u.y-d.scrollTop*u.y+f.y+m.y}}function iE(s){return s.getClientRects?Array.from(s.getClientRects()):[]}function nE(s){const e=Nm(s),t=s.ownerDocument.body,i=Wn(s.scrollWidth,s.clientWidth,t.scrollWidth,t.clientWidth),n=Wn(s.scrollHeight,s.clientHeight,t.scrollHeight,t.clientHeight);let r=-e.scrollLeft+Lm(s);const a=-e.scrollTop;return gi(t).direction==="rtl"&&(r+=Wn(s.clientWidth,t.clientWidth)-i),{width:i,height:n,x:r,y:a}}const oE=25;function rE(s,e,t){t===void 0&&(t="viewport");const i=t==="layoutViewport",n=ns(s),r=Ui(s),a=n.visualViewport;let c=r.clientWidth,d=r.clientHeight,u=0,f=0;if(a){const m=!Rg()||e==="fixed";i?m||(u=-a.offsetLeft,f=-a.offsetTop):(c=a.width,d=a.height,m&&(u=a.offsetLeft,f=a.offsetTop))}if(Lm(r)<=0){const m=r.ownerDocument,g=m.body,y=getComputedStyle(g),v=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,C=Math.abs(r.clientWidth-g.clientWidth-v),w=getComputedStyle(r).scrollbarGutter==="stable both-edges"?C/2:C;w<=oE&&(c-=w)}return{width:c,height:d,x:u,y:f}}function lE(s,e){const t=wr(s,!0,e==="fixed"),i=t.top+s.clientTop,n=t.left+s.clientLeft,r=Hr(s),a=s.clientWidth*r.x,c=s.clientHeight*r.y,d=n*r.x,u=i*r.y;return{width:a,height:c,x:d,y:u}}function x2(s,e,t){let i;if(e==="viewport"||e==="layoutViewport")i=rE(s,t,e);else if(e==="document")i=nE(Ui(s));else if(mi(e))i=lE(e,t);else{const n=Zv(s);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return t1(i)}function aE(s,e){const t=e.get(s);if(t)return t;let i=Vc(s,[],!1).filter(c=>mi(c)&&ja(c)!=="body"),n=null;const r=gi(s).position==="fixed";let a=r?br(s):s;for(;mi(a)&&!Oc(a);){const c=gi(a),d=Vg(a),u=n?n.position:r?"fixed":"";!d&&(u==="fixed"||u==="absolute"&&c.position==="static")?i=i.filter(p=>p!==a):n=c,a=br(a)}return e.set(s,i),i}function cE(s){let{element:e,boundary:t,rootBoundary:i,strategy:n}=s;const a=[...t==="clippingAncestors"?Bm(e)?[]:aE(e,this._c):[].concat(t),i],c=x2(e,a[0],n);let d=c.top,u=c.right,f=c.bottom,p=c.left;for(let m=1;m<a.length;m++){const g=x2(e,a[m],n);d=Wn(g.top,d),u=$c(g.right,u),f=$c(g.bottom,f),p=Wn(g.left,p)}return{width:u-p,height:f-d,x:p,y:d}}function dE(s){const{width:e,height:t}=qv(s);return{width:e,height:t}}function uE(s,e,t){const i=Gn(e),n=Ui(e),r=t==="fixed",a=wr(s,!0,r,e);let c={scrollLeft:0,scrollTop:0};const d=Pi(0);if((i||!r)&&((ja(e)!=="body"||Mm(n))&&(c=Nm(e)),i)){const m=wr(e,!0,r,e);d.x=m.x+e.clientLeft,d.y=m.y+e.clientTop}!i&&n&&(d.x=Lm(n));const u=n&&!i&&!r?Gv(n,c):Pi(0),f=a.left+c.scrollLeft-d.x-u.x,p=a.top+c.scrollTop-d.y-u.y;return{x:f,y:p,width:a.width,height:a.height}}function Qm(s){return gi(s).position==="static"}function M2(s,e){if(!Gn(s)||gi(s).position==="fixed")return null;if(e)return e(s);let t=s.offsetParent;return Ui(s)===t&&(t=t.ownerDocument.body),t}function Yv(s,e){const t=ns(s);if(Bm(s))return t;if(!Gn(s)){let n=br(s);for(;n&&!Oc(n);){if(mi(n)&&!Qm(n))return n;n=br(n)}return t}let i=M2(s,e);for(;i&&K6(i)&&Qm(i);)i=M2(i,e);return i&&Oc(i)&&Qm(i)&&!Vg(i)?t:i||J6(s)||t}const hE=async function(s){const e=this.getOffsetParent||Yv,t=this.getDimensions,i=await t(s.floating);return{reference:uE(s.reference,await e(s.floating),s.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function fE(s){return gi(s).direction==="rtl"}const pE={convertOffsetParentRelativeRectToViewportRelativeRect:sE,getDocumentElement:Ui,getClippingRect:cE,getOffsetParent:Yv,getElementRects:hE,getClientRects:iE,getDimensions:dE,getScale:Hr,isElement:mi,isRTL:fE};function Kv(s,e){return s.x===e.x&&s.y===e.y&&s.width===e.width&&s.height===e.height}function mE(s,e,t){let i=null,n;const r=Ui(s);function a(){var f;clearTimeout(n),(f=i)==null||f.disconnect(),i=null}function c(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),a();const m=s.getBoundingClientRect(),{left:g,top:y,width:v,height:C}=m;if(f||e(),!v||!C)return;const w=Ch(y),k=Ch(r.clientWidth-(g+v)),_=Ch(r.clientHeight-(y+C)),M=Ch(g),x={rootMargin:-w+"px "+-k+"px "+-_+"px "+-M+"px",threshold:Wn(0,$c(1,p))||1};let L=!0;function B(N){const O=N[0].intersectionRatio;if(!Kv(m,s.getBoundingClientRect()))return c();if(O!==p){if(!L)return c();O?c(!1,O):n=setTimeout(()=>{c(!1,1e-7)},1e3)}L=!1}try{i=new IntersectionObserver(B,{...x,root:r.ownerDocument})}catch{i=new IntersectionObserver(B,x)}i.observe(s)}const d=ns(s),u=()=>c(t);return d.addEventListener("resize",u),c(!0),()=>{d.removeEventListener("resize",u),a()}}function gE(s,e,t,i){i===void 0&&(i={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,u=Ig(s),f=n||r?[...u?Vc(u):[],...e?Vc(e):[]]:[];f.forEach(w=>{n&&w.addEventListener("scroll",t),r&&w.addEventListener("resize",t)});const p=u&&c?mE(u,t,r):null;let m=-1,g=null;a&&(g=new ResizeObserver(w=>{let[k]=w;k&&k.target===u&&g&&e&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(e)})),t()}),u&&!d&&g.observe(u),e&&g.observe(e));let y,v=d?wr(s):null;d&&C();function C(){const w=wr(s);v&&!Kv(v,w)&&t(),v=w,y=requestAnimationFrame(C)}return t(),()=>{var w;f.forEach(k=>{n&&k.removeEventListener("scroll",t),r&&k.removeEventListener("resize",t)}),p==null||p(),(w=g)==null||w.disconnect(),g=null,d&&cancelAnimationFrame(y)}}const vE=G6,yE=Y6,CE=(s,e,t)=>{const i=new Map,n=t??{},r={...pE,...n.platform,_c:i};return Z6(s,e,{...n,platform:r})},bE=s=>{const e=l.ref(!1),t=l.ref(),i=l.ref(),n=l.ref(0);function r(){const p=l.unref(s.appendTo);return p?typeof p=="string"?document.getElementById(p)??document.body:p:document.getElementById("floatingElements")??document.body}const a=r(),c=l.ref(()=>{});function d(p){p.relatedTarget&&i.value&&i.value.contains(p.relatedTarget)||s.multiselect.value.deactivate()}function u(){const p=s.multiselect.value.$el,m=p.querySelector(".multiselect-dropdown");if(!m||!p||e.value===!0)return;i.value=m,t.value=p,getComputedStyle(m).getPropertyValue("display")==="none"&&(m.style.display="flex"),n.value=m.offsetHeight,m.style.removeProperty("display"),Object.assign(m.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),a.appendChild(m),s.multiselect.value.handleFocusOut=d;const y=gE(t.value,i.value,f);c.value=()=>{i.value&&a.contains(i.value)&&a.removeChild(i.value),y()}}function f(){!i.value||!t.value||CE(t.value,i.value,{strategy:"absolute",placement:"bottom-start",middleware:[vE({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),yE({apply({availableWidth:p,availableHeight:m,elements:g,rects:y}){Object.assign(g.floating.style,{minHeight:`${n.value}px`,width:`${y.reference.width}px`,maxWidth:`${p}px`,maxHeight:`${m}px`})}})]}).then(({x:p,y:m})=>{Object.assign(i.value.style,{left:`${p}px`,top:`${m}px`})})}l.onMounted(()=>{u()}),l.onBeforeUnmount(()=>{c.value()}),l.onUnmounted(()=>{c.value()})};function js(s){return s==null}function wE(s,e,t){const{object:i,valueProp:n,mode:r}=l.toRefs(s),a=l.getCurrentInstance().proxy,c=t.iv,d=(p,m=!0)=>{c.value=f(p);const g=u(p);e.emit("change",g,a),m&&(e.emit("input",g),e.emit("update:modelValue",g))},u=p=>i.value||js(p)?p:Array.isArray(p)?p.map(m=>m[n.value]):p[n.value],f=p=>js(p)?r.value==="single"?{}:[]:p;return{update:d}}function ut(s){return l.customRef(()=>({get:s,set:()=>{}}))}function kE(s,e){const{value:t,modelValue:i,mode:n,valueProp:r}=l.toRefs(s),a=l.ref(n.value!=="single"?[]:{}),c=ut(()=>i.value!==void 0?i.value:t.value),d=l.computed(()=>n.value==="single"?a.value[r.value]:a.value.map(f=>f[r.value])),u=ut(()=>n.value!=="single"?a.value.map(f=>f[r.value]).join(","):a.value[r.value]);return{iv:a,internalValue:a,ev:c,externalValue:c,textValue:u,plainValue:d}}function _E(s,e,t){const{regex:i}=l.toRefs(s),n=l.getCurrentInstance().proxy,r=t.isOpen,a=t.open,c=l.ref(null),d=()=>{c.value=""},u=m=>{c.value=m.target.value},f=m=>{if(i.value){let g=i.value;typeof g=="string"&&(g=new RegExp(g)),m.key.match(g)||m.preventDefault()}},p=m=>{if(i.value){let y=(m.clipboardData||window.clipboardData).getData("Text"),v=i.value;typeof v=="string"&&(v=new RegExp(v)),y.split("").every(C=>!!C.match(v))||m.preventDefault()}e.emit("paste",m,n)};return l.watch(c,m=>{!r.value&&m&&a(),e.emit("search-change",m,n)}),{search:c,clearSearch:d,handleSearchInput:u,handleKeypress:f,handlePaste:p}}function EE(s,e,t){const{groupSelect:i,mode:n,groups:r,disabledProp:a}=l.toRefs(s),c=l.ref(null),d=f=>{f===void 0||f!==null&&f[a.value]||r.value&&f&&f.group&&(n.value==="single"||!i.value)||(c.value=f)};return{pointer:c,setPointer:d,clearPointer:()=>{d(null)}}}function Jm(s,e=!0){return e?String(s).toLowerCase().trim():String(s).toLowerCase().normalize("NFD").trim().replace(/æ/g,"ae").replace(/œ/g,"oe").replace(/ø/g,"o").replace(/\p{Diacritic}/gu,"")}function TE(s){return Object.prototype.toString.call(s)==="[object Object]"}function SE(s,e){if(s.length!==e.length)return!1;const t=e.slice().sort();return s.slice().sort().every(function(i,n){return i===t[n]})}const Xv=(s,e)=>{if(s===e)return!0;if(typeof s!="object"||s===null||typeof e!="object"||e===null)return!1;const t=Object.keys(s),i=Object.keys(e);if(t.length!==i.length)return!1;for(let n of t)if(!i.includes(n)||!Xv(s[n],e[n]))return!1;return!0};function xE(s,e,t){const{options:i,mode:n,trackBy:r,limit:a,hideSelected:c,createTag:d,createOption:u,label:f,appendNewTag:p,appendNewOption:m,multipleLabel:g,object:y,loading:v,delay:C,resolveOnLoad:w,minChars:k,filterResults:_,clearOnSearch:M,clearOnSelect:S,valueProp:x,allowAbsent:L,groupLabel:B,canDeselect:N,max:O,strict:A,closeOnSelect:V,closeOnDeselect:R,groups:$,reverse:D,infinite:z,groupOptions:q,groupHideEmpty:F,groupSelect:I,onCreate:Z,disabledProp:W,searchStart:Y,searchFilter:ne}=l.toRefs(s),K=l.getCurrentInstance().proxy,J=t.iv,j=t.ev,se=t.search,P=t.clearSearch,X=t.update,pe=t.pointer,fe=t.setPointer,Pe=t.clearPointer,de=t.focus,Me=t.deactivate,ye=t.close,rt=t.localize,Be=l.ref([]),Je=l.ref([]),Ke=l.ref(!1),Kt=l.ref(null),xt=l.ref(z.value&&a.value===-1?10:a.value),os=l.computed({get:()=>Je.value,set:H=>Je.value=H}),Ci=ut(()=>d.value||u.value||!1),Ua=ut(()=>p.value!==void 0?p.value:m.value!==void 0?m.value:!0),Ns=l.computed(()=>{if($.value){let H=Kn.value||[],ee=[];return H.forEach(Le=>{Um(Le[q.value]).forEach(gt=>{ee.push(Object.assign({},gt,Le[W.value]?{[W.value]:!0}:{}))})}),ee}else{let H=Um(Je.value||[]);return Be.value.length&&(H=H.concat(Be.value)),H}}),qa=l.computed(()=>{let H=Ns.value;return D.value&&(H=H.reverse()),Tr.value.length&&(H=Tr.value.concat(H)),jm(H)}),Zi=l.computed(()=>{let H=qa.value;return xt.value>0&&(H=H.slice(0,xt.value)),H}),Kn=l.computed(()=>{if(!$.value)return[];let H=[],ee=Je.value||[];return Be.value.length&&H.push({[B.value]:" ",[q.value]:[...Be.value],__CREATE__:!0}),H.concat(ee)}),o7=l.computed(()=>{let H=[...Kn.value].map(ee=>({...ee}));return Tr.value.length&&(H[0]&&H[0].__CREATE__?H[0][q.value]=[...Tr.value,...H[0][q.value]]:H=[{[B.value]:" ",[q.value]:[...Tr.value],__CREATE__:!0}].concat(H)),H}),Pm=l.computed(()=>{if(!$.value)return[];let H=o7.value;return b7((H||[]).map((ee,Le)=>{const gt=Um(ee[q.value]);return{...ee,index:Le,group:!0,[q.value]:jm(gt,!1).map(Qn=>Object.assign({},Qn,ee[W.value]?{[W.value]:!0}:{})),__VISIBLE__:jm(gt).map(Qn=>Object.assign({},Qn,ee[W.value]?{[W.value]:!0}:{}))}}))}),Hm=l.computed(()=>{switch(n.value){case"single":return!js(J.value[x.value]);case"multiple":case"tags":return!js(J.value)&&J.value.length>0}}),r7=l.computed(()=>g.value!==void 0?g.value(J.value,K):J.value&&J.value.length>1?`${J.value.length} options selected`:"1 option selected"),l7=ut(()=>!Ns.value.length&&!Ke.value&&!Tr.value.length),a7=ut(()=>Ns.value.length>0&&Zi.value.length==0&&(se.value&&$.value||!$.value)),Tr=l.computed(()=>Ci.value===!1||!se.value?[]:v7(se.value)!==-1?[]:[{[x.value]:se.value,[Xn.value[0]]:se.value,[f.value]:se.value,__CREATE__:!0}]),Xn=l.computed(()=>r.value?Array.isArray(r.value)?r.value:[r.value]:[f.value]),c7=ut(()=>{switch(n.value){case"single":return null;case"multiple":case"tags":return[]}}),d7=ut(()=>v.value||Ke.value),Sr=H=>{switch(typeof H!="object"&&(H=wi(H)),n.value){case"single":X(H);break;case"multiple":case"tags":X(J.value.concat(H));break}e.emit("select",a2(H),H,K)},xr=H=>{switch(typeof H!="object"&&(H=wi(H)),n.value){case"single":d2();break;case"tags":case"multiple":X(Array.isArray(H)?J.value.filter(ee=>H.map(Le=>Le[x.value]).indexOf(ee[x.value])===-1):J.value.filter(ee=>ee[x.value]!=H[x.value]));break}e.emit("deselect",a2(H),H,K)},a2=H=>y.value?H:H[x.value],c2=H=>{xr(H)},u7=(H,ee)=>{if(ee.button!==0){ee.preventDefault();return}c2(H)},d2=()=>{X(c7.value),e.emit("clear",K)},bi=H=>{if(H.group!==void 0)return n.value==="single"?!1:g7(H[q.value])&&H[q.value].length;switch(n.value){case"single":return!js(J.value)&&(J.value[x.value]==H[x.value]||typeof J.value[x.value]=="object"&&typeof H[x.value]=="object"&&Xv(J.value[x.value],H[x.value]));case"tags":case"multiple":return!js(J.value)&&J.value.map(ee=>ee[x.value]).indexOf(H[x.value])!==-1}},Fm=H=>H[W.value]===!0,Wm=()=>O===void 0||O.value===-1||!Hm.value&&O.value>0?!1:J.value.length>=O.value,h7=H=>{if(!Fm(H)){if(Z.value&&!bi(H)&&H.__CREATE__&&(H={...H},delete H.__CREATE__,H=Z.value(H,K),H instanceof Promise)){Ke.value=!0,H.then(ee=>{Ke.value=!1,u2(ee)});return}u2(H)}},u2=H=>{switch(H.__CREATE__&&(H={...H},delete H.__CREATE__),n.value){case"single":if(H&&bi(H)){N.value&&xr(H),R.value&&(Pe(),ye());return}H&&zm(H),S.value&&P(),V.value&&(Pe(),ye()),H&&Sr(H);break;case"multiple":if(H&&bi(H)){xr(H),R.value&&(Pe(),ye());return}if(Wm()){e.emit("max",K);return}H&&(zm(H),Sr(H)),S.value&&P(),c.value&&Pe(),V.value&&ye();break;case"tags":if(H&&bi(H)){xr(H),R.value&&(Pe(),ye());return}if(Wm()){e.emit("max",K);return}H&&zm(H),S.value&&P(),H&&Sr(H),c.value&&Pe(),V.value&&ye();break}V.value||de()},f7=H=>{if(!(Fm(H)||n.value==="single"||!I.value)){switch(n.value){case"multiple":case"tags":m7(H[q.value])?xr(H[q.value]):Sr(H[q.value].filter(ee=>J.value.map(Le=>Le[x.value]).indexOf(ee[x.value])===-1).filter(ee=>!ee[W.value]).filter((ee,Le)=>J.value.length+1+Le<=O.value||O.value===-1)),c.value&&pe.value&&fe(Pm.value.filter(ee=>!ee[W.value])[pe.value.index]);break}V.value&&Me()}},zm=H=>{wi(H[x.value])===void 0&&Ci.value&&(e.emit("tag",H[x.value],K),e.emit("option",H[x.value],K),e.emit("create",H[x.value],K),Ua.value&&C7(H),P())},p7=()=>{n.value!=="single"&&Sr(Zi.value.filter(H=>!H.disabled&&!bi(H)))},m7=H=>H.find(ee=>!bi(ee)&&!ee[W.value])===void 0,g7=H=>H.find(ee=>!bi(ee))===void 0,wi=H=>Ns.value[Ns.value.map(ee=>String(ee[x.value])).indexOf(String(H))],v7=H=>Ns.value.findIndex(ee=>Xn.value.some(Le=>(parseInt(ee[Le])==ee[Le]?parseInt(ee[Le]):ee[Le])===(parseInt(H)==H?parseInt(H):H))),y7=H=>["tags","multiple"].indexOf(n.value)!==-1&&c.value&&bi(H),C7=H=>{Be.value.push(H)},b7=H=>F.value?H.filter(ee=>se.value?ee.__VISIBLE__.length:ee[q.value].length):H.filter(ee=>se.value?ee.__VISIBLE__.length:!0),jm=(H,ee=!0)=>{let Le=H;if(se.value&&_.value){let gt=ne.value;gt||(gt=(Qn,f2,hD)=>Xn.value.some(k7=>{let p2=Jm(rt(Qn[k7]),A.value);return Y.value?p2.startsWith(Jm(f2,A.value)):p2.indexOf(Jm(f2,A.value))!==-1})),Le=Le.filter(Qn=>gt(Qn,se.value,K))}return c.value&&ee&&(Le=Le.filter(gt=>!y7(gt))),Le},Um=H=>{let ee=H;return TE(ee)&&(ee=Object.keys(ee).map(Le=>{let gt=ee[Le];return{[x.value]:Le,[Xn.value[0]]:gt,[f.value]:gt}})),ee&&Array.isArray(ee)?ee=ee.map(Le=>typeof Le=="object"?Le:{[x.value]:Le,[Xn.value[0]]:Le,[f.value]:Le}):ee=[],ee},fh=()=>{js(j.value)||(J.value=mh(j.value))},ph=H=>(Ke.value=!0,new Promise((ee,Le)=>{i.value(se.value,K).then(gt=>{Je.value=gt||[],typeof H=="function"&&H(gt),Ke.value=!1}).catch(gt=>{console.error(gt),Je.value=[],Ke.value=!1}).finally(()=>{ee()})})),qm=()=>{if(Hm.value)if(n.value==="single"){let H=wi(J.value[x.value]);if(H!==void 0){let ee=H[f.value];J.value[f.value]=ee,y.value&&(j.value[f.value]=ee)}}else J.value.forEach((H,ee)=>{let Le=wi(J.value[ee][x.value]);if(Le!==void 0){let gt=Le[f.value];J.value[ee][f.value]=gt,y.value&&(j.value[ee][f.value]=gt)}})},w7=H=>{ph(H)},mh=H=>js(H)?n.value==="single"?{}:[]:y.value?H:n.value==="single"?wi(H)||(L.value?{[f.value]:H,[x.value]:H,[Xn.value[0]]:H}:{}):H.filter(ee=>!!wi(ee)||L.value).map(ee=>wi(ee)||{[f.value]:ee,[x.value]:ee,[Xn.value[0]]:ee}),h2=()=>{Kt.value=l.watch(se,H=>{H.length<k.value||!H&&k.value!==0||(Ke.value=!0,M.value&&(Je.value=[]),setTimeout(()=>{H==se.value&&i.value(se.value,K).then(ee=>{(H==se.value||!se.value)&&(Je.value=ee,pe.value=Zi.value.filter(Le=>Le[W.value]!==!0)[0]||null,Ke.value=!1)}).catch(ee=>{console.error(ee)})},C.value))},{flush:"sync"})};if(n.value!=="single"&&!js(j.value)&&!Array.isArray(j.value))throw new Error(`v-model must be an array when using "${n.value}" mode`);return i&&typeof i.value=="function"?w.value?ph(fh):y.value==!0&&fh():(Je.value=i.value,fh()),C.value>-1&&h2(),l.watch(C,(H,ee)=>{Kt.value&&Kt.value(),H>=0&&h2()}),l.watch(j,H=>{if(js(H)){X(mh(H),!1);return}switch(n.value){case"single":(y.value?H[x.value]!=J.value[x.value]:H!=J.value[x.value])&&X(mh(H),!1);break;case"multiple":case"tags":SE(y.value?H.map(ee=>ee[x.value]):H,J.value.map(ee=>ee[x.value]))||X(mh(H),!1);break}},{deep:!0}),l.watch(i,(H,ee)=>{typeof s.options=="function"?w.value&&(!ee||H&&H.toString()!==ee.toString())&&ph():(Je.value=s.options,Object.keys(J.value).length||fh(),qm())}),l.watch(f,qm),l.watch(a,(H,ee)=>{xt.value=z.value&&H===-1?10:H}),{resolvedOptions:os,pfo:qa,fo:Zi,filteredOptions:Zi,hasSelected:Hm,multipleLabelText:r7,eo:Ns,extendedOptions:Ns,eg:Kn,extendedGroups:Kn,fg:Pm,filteredGroups:Pm,noOptions:l7,noResults:a7,resolving:Ke,busy:d7,offset:xt,select:Sr,deselect:xr,remove:c2,selectAll:p7,clear:d2,isSelected:bi,isDisabled:Fm,isMax:Wm,getOption:wi,handleOptionClick:h7,handleGroupClick:f7,handleTagRemove:u7,refreshOptions:w7,resolveOptions:ph,refreshLabels:qm}}function ME(s,e,t){const{valueProp:i,showOptions:n,searchable:r,groupLabel:a,groups:c,mode:d,groupSelect:u,disabledProp:f,groupOptions:p}=l.toRefs(s),m=t.fo,g=t.fg,y=t.handleOptionClick,v=t.handleGroupClick,C=t.search,w=t.pointer,k=t.setPointer,_=t.clearPointer,M=t.multiselect,S=t.isOpen,x=l.computed(()=>m.value.filter(j=>!j[f.value])),L=l.computed(()=>g.value.filter(j=>!j[f.value])),B=ut(()=>d.value!=="single"&&u.value),N=ut(()=>w.value&&w.value.group),O=l.computed(()=>K(w.value)),A=l.computed(()=>{const j=N.value?w.value:K(w.value),se=L.value.map(X=>X[a.value]).indexOf(j[a.value]);let P=L.value[se-1];return P===void 0&&(P=R.value),P}),V=l.computed(()=>{let j=L.value.map(se=>se.label).indexOf(N.value?w.value[a.value]:K(w.value)[a.value])+1;return L.value.length<=j&&(j=0),L.value[j]}),R=l.computed(()=>[...L.value].slice(-1)[0]),$=l.computed(()=>w.value.__VISIBLE__.filter(j=>!j[f.value])[0]),D=l.computed(()=>{const j=O.value.__VISIBLE__.filter(se=>!se[f.value]);return j[j.map(se=>se[i.value]).indexOf(w.value[i.value])-1]}),z=l.computed(()=>{const j=K(w.value).__VISIBLE__.filter(se=>!se[f.value]);return j[j.map(se=>se[i.value]).indexOf(w.value[i.value])+1]}),q=l.computed(()=>[...A.value.__VISIBLE__.filter(j=>!j[f.value])].slice(-1)[0]),F=l.computed(()=>[...R.value.__VISIBLE__.filter(j=>!j[f.value])].slice(-1)[0]),I=j=>w.value&&(!j.group&&w.value[i.value]===j[i.value]||j.group!==void 0&&w.value[a.value]===j[a.value])?!0:void 0,Z=()=>{k(x.value[0]||null)},W=()=>{!w.value||w.value[f.value]===!0||(N.value?v(w.value):y(w.value))},Y=()=>{if(w.value===null)k((c.value&&B.value?L.value[0].__CREATE__?x.value[0]:L.value[0]:x.value[0])||null);else if(c.value&&B.value){let j=N.value?$.value:z.value;j===void 0&&(j=V.value,j.__CREATE__&&(j=j[p.value][0])),k(j||null)}else{let j=x.value.map(se=>se[i.value]).indexOf(w.value[i.value])+1;x.value.length<=j&&(j=0),k(x.value[j]||null)}l.nextTick(()=>{J()})},ne=()=>{if(w.value===null){let j=x.value[x.value.length-1];c.value&&B.value&&(j=F.value,j===void 0&&(j=R.value)),k(j||null)}else if(c.value&&B.value){let j=N.value?q.value:D.value;j===void 0&&(j=N.value?A.value:O.value,j.__CREATE__&&(j=q.value,j===void 0&&(j=A.value))),k(j||null)}else{let j=x.value.map(se=>se[i.value]).indexOf(w.value[i.value])-1;j<0&&(j=x.value.length-1),k(x.value[j]||null)}l.nextTick(()=>{J()})},K=j=>L.value.find(se=>se.__VISIBLE__.map(P=>P[i.value]).indexOf(j[i.value])!==-1),J=()=>{let j=M.value.querySelector("[data-pointed]");if(!j)return;let se=j.parentElement.parentElement;c.value&&(se=N.value?j.parentElement.parentElement.parentElement:j.parentElement.parentElement.parentElement.parentElement),j.offsetTop+j.offsetHeight>se.clientHeight+se.scrollTop&&(se.scrollTop=j.offsetTop+j.offsetHeight-se.clientHeight),j.offsetTop<se.scrollTop&&(se.scrollTop=j.offsetTop)};return l.watch(C,j=>{r.value&&(j.length&&n.value?Z():_())}),l.watch(S,j=>{if(j&&M&&M.value){let se=M.value.querySelectorAll("[data-selected]")[0];if(!se)return;let P=se.parentElement.parentElement;l.nextTick(()=>{P.scrollTop=se.offsetTop})}}),{pointer:w,canPointGroups:B,isPointed:I,setPointerFirst:Z,selectPointer:W,forwardPointer:Y,backwardPointer:ne}}function vs(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var e=s.ownerDocument;return e&&e.defaultView||window}return s}function kr(s){var e=vs(s).Element;return s instanceof e||s instanceof Element}function Ms(s){var e=vs(s).HTMLElement;return s instanceof e||s instanceof HTMLElement}function Dg(s){if(typeof ShadowRoot>"u")return!1;var e=vs(s).ShadowRoot;return s instanceof e||s instanceof ShadowRoot}var vr=Math.max,s1=Math.min,Da=Math.round;function v0(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Qv(){return!/^((?!chrome|android).)*safari/i.test(v0())}function Pa(s,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=s.getBoundingClientRect(),n=1,r=1;e&&Ms(s)&&(n=s.offsetWidth>0&&Da(i.width)/s.offsetWidth||1,r=s.offsetHeight>0&&Da(i.height)/s.offsetHeight||1);var a=kr(s)?vs(s):window,c=a.visualViewport,d=!Qv()&&t,u=(i.left+(d&&c?c.offsetLeft:0))/n,f=(i.top+(d&&c?c.offsetTop:0))/r,p=i.width/n,m=i.height/r;return{width:p,height:m,top:f,right:u+p,bottom:f+m,left:u,x:u,y:f}}function Pg(s){var e=vs(s),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function BE(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function NE(s){return s===vs(s)||!Ms(s)?Pg(s):BE(s)}function vi(s){return s?(s.nodeName||"").toLowerCase():null}function Yn(s){return((kr(s)?s.ownerDocument:s.document)||window.document).documentElement}function Hg(s){return Pa(Yn(s)).left+Pg(s).scrollLeft}function zi(s){return vs(s).getComputedStyle(s)}function Fg(s){var e=zi(s),t=e.overflow,i=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+i)}function LE(s){var e=s.getBoundingClientRect(),t=Da(e.width)/s.offsetWidth||1,i=Da(e.height)/s.offsetHeight||1;return t!==1||i!==1}function AE(s,e,t){t===void 0&&(t=!1);var i=Ms(e),n=Ms(e)&&LE(e),r=Yn(e),a=Pa(s,n,t),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!t)&&((vi(e)!=="body"||Fg(r))&&(c=NE(e)),Ms(e)?(d=Pa(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):r&&(d.x=Hg(r))),{x:a.left+c.scrollLeft-d.x,y:a.top+c.scrollTop-d.y,width:a.width,height:a.height}}function Jv(s){var e=Pa(s),t=s.offsetWidth,i=s.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:s.offsetLeft,y:s.offsetTop,width:t,height:i}}function Am(s){return vi(s)==="html"?s:s.assignedSlot||s.parentNode||(Dg(s)?s.host:null)||Yn(s)}function e3(s){return["html","body","#document"].indexOf(vi(s))>=0?s.ownerDocument.body:Ms(s)&&Fg(s)?s:e3(Am(s))}function Sc(s,e){var t;e===void 0&&(e=[]);var i=e3(s),n=i===((t=s.ownerDocument)==null?void 0:t.body),r=vs(i),a=n?[r].concat(r.visualViewport||[],Fg(i)?i:[]):i,c=e.concat(a);return n?c:c.concat(Sc(Am(a)))}function $E(s){return["table","td","th"].indexOf(vi(s))>=0}function B2(s){return!Ms(s)||zi(s).position==="fixed"?null:s.offsetParent}function OE(s){var e=/firefox/i.test(v0()),t=/Trident/i.test(v0());if(t&&Ms(s)){var i=zi(s);if(i.position==="fixed")return null}var n=Am(s);for(Dg(n)&&(n=n.host);Ms(n)&&["html","body"].indexOf(vi(n))<0;){var r=zi(n);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return n;n=n.parentNode}return null}function $m(s){for(var e=vs(s),t=B2(s);t&&$E(t)&&zi(t).position==="static";)t=B2(t);return t&&(vi(t)==="html"||vi(t)==="body"&&zi(t).position==="static")?e:t||OE(s)||e}var Ws="top",yi="bottom",Un="right",Hi="left",Wg="auto",Om=[Ws,yi,Un,Hi],Ha="start",Rc="end",VE="clippingParents",t3="viewport",Qa="popper",RE="reference",N2=Om.reduce(function(s,e){return s.concat([e+"-"+Ha,e+"-"+Rc])},[]),IE=[].concat(Om,[Wg]).reduce(function(s,e){return s.concat([e,e+"-"+Ha,e+"-"+Rc])},[]),DE="beforeRead",PE="read",HE="afterRead",FE="beforeMain",WE="main",zE="afterMain",jE="beforeWrite",UE="write",qE="afterWrite",ZE=[DE,PE,HE,FE,WE,zE,jE,UE,qE];function GE(s){var e=new Map,t=new Set,i=[];s.forEach(function(r){e.set(r.name,r)});function n(r){t.add(r.name);var a=[].concat(r.requires||[],r.requiresIfExists||[]);a.forEach(function(c){if(!t.has(c)){var d=e.get(c);d&&n(d)}}),i.push(r)}return s.forEach(function(r){t.has(r.name)||n(r)}),i}function YE(s){var e=GE(s);return ZE.reduce(function(t,i){return t.concat(e.filter(function(n){return n.phase===i}))},[])}function KE(s){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(s())})})),e}}function XE(s){var e=s.reduce(function(t,i){var n=t[i.name];return t[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}function QE(s,e){var t=vs(s),i=Yn(s),n=t.visualViewport,r=i.clientWidth,a=i.clientHeight,c=0,d=0;if(n){r=n.width,a=n.height;var u=Qv();(u||!u&&e==="fixed")&&(c=n.offsetLeft,d=n.offsetTop)}return{width:r,height:a,x:c+Hg(s),y:d}}function JE(s){var e,t=Yn(s),i=Pg(s),n=(e=s.ownerDocument)==null?void 0:e.body,r=vr(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=vr(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),c=-i.scrollLeft+Hg(s),d=-i.scrollTop;return zi(n||t).direction==="rtl"&&(c+=vr(t.clientWidth,n?n.clientWidth:0)-r),{width:r,height:a,x:c,y:d}}function eT(s,e){var t=e.getRootNode&&e.getRootNode();if(s.contains(e))return!0;if(t&&Dg(t)){var i=e;do{if(i&&s.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function y0(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function tT(s,e){var t=Pa(s,!1,e==="fixed");return t.top=t.top+s.clientTop,t.left=t.left+s.clientLeft,t.bottom=t.top+s.clientHeight,t.right=t.left+s.clientWidth,t.width=s.clientWidth,t.height=s.clientHeight,t.x=t.left,t.y=t.top,t}function L2(s,e,t){return e===t3?y0(QE(s,t)):kr(e)?tT(e,t):y0(JE(Yn(s)))}function sT(s){var e=Sc(Am(s)),t=["absolute","fixed"].indexOf(zi(s).position)>=0,i=t&&Ms(s)?$m(s):s;return kr(i)?e.filter(function(n){return kr(n)&&eT(n,i)&&vi(n)!=="body"}):[]}function iT(s,e,t,i){var n=e==="clippingParents"?sT(s):[].concat(e),r=[].concat(n,[t]),a=r[0],c=r.reduce(function(d,u){var f=L2(s,u,i);return d.top=vr(f.top,d.top),d.right=s1(f.right,d.right),d.bottom=s1(f.bottom,d.bottom),d.left=vr(f.left,d.left),d},L2(s,a,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function zn(s){return s.split("-")[0]}function Fa(s){return s.split("-")[1]}function s3(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function i3(s){var e=s.reference,t=s.element,i=s.placement,n=i?zn(i):null,r=i?Fa(i):null,a=e.x+e.width/2-t.width/2,c=e.y+e.height/2-t.height/2,d;switch(n){case Ws:d={x:a,y:e.y-t.height};break;case yi:d={x:a,y:e.y+e.height};break;case Un:d={x:e.x+e.width,y:c};break;case Hi:d={x:e.x-t.width,y:c};break;default:d={x:e.x,y:e.y}}var u=n?s3(n):null;if(u!=null){var f=u==="y"?"height":"width";switch(r){case Ha:d[u]=d[u]-(e[f]/2-t[f]/2);break;case Rc:d[u]=d[u]+(e[f]/2-t[f]/2);break}}return d}function n3(){return{top:0,right:0,bottom:0,left:0}}function nT(s){return Object.assign({},n3(),s)}function oT(s,e){return e.reduce(function(t,i){return t[i]=s,t},{})}function zg(s,e){e===void 0&&(e={});var t=e,i=t.placement,n=i===void 0?s.placement:i,r=t.strategy,a=r===void 0?s.strategy:r,c=t.boundary,d=c===void 0?VE:c,u=t.rootBoundary,f=u===void 0?t3:u,p=t.elementContext,m=p===void 0?Qa:p,g=t.altBoundary,y=g===void 0?!1:g,v=t.padding,C=v===void 0?0:v,w=nT(typeof C!="number"?C:oT(C,Om)),k=m===Qa?RE:Qa,_=s.rects.popper,M=s.elements[y?k:m],S=iT(kr(M)?M:M.contextElement||Yn(s.elements.popper),d,f,a),x=Pa(s.elements.reference),L=i3({reference:x,element:_,strategy:"absolute",placement:n}),B=y0(Object.assign({},_,L)),N=m===Qa?B:x,O={top:S.top-N.top+w.top,bottom:N.bottom-S.bottom+w.bottom,left:S.left-N.left+w.left,right:N.right-S.right+w.right},A=s.modifiersData.offset;if(m===Qa&&A){var V=A[n];Object.keys(O).forEach(function(R){var $=[Un,yi].indexOf(R)>=0?1:-1,D=[Ws,yi].indexOf(R)>=0?"y":"x";O[R]+=V[D]*$})}return O}var A2={placement:"bottom",modifiers:[],strategy:"absolute"};function $2(){for(var s=arguments.length,e=new Array(s),t=0;t<s;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function rT(s){s===void 0&&(s={});var e=s,t=e.defaultModifiers,i=t===void 0?[]:t,n=e.defaultOptions,r=n===void 0?A2:n;return function(c,d,u){u===void 0&&(u=r);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},A2,r),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},p=[],m=!1,g={state:f,setOptions:function(w){var k=typeof w=="function"?w(f.options):w;v(),f.options=Object.assign({},r,f.options,k),f.scrollParents={reference:kr(c)?Sc(c):c.contextElement?Sc(c.contextElement):[],popper:Sc(d)};var _=YE(XE([].concat(i,f.options.modifiers)));return f.orderedModifiers=_.filter(function(M){return M.enabled}),y(),g.update()},forceUpdate:function(){if(!m){var w=f.elements,k=w.reference,_=w.popper;if($2(k,_)){f.rects={reference:AE(k,$m(_),f.options.strategy==="fixed"),popper:Jv(_)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(O){return f.modifiersData[O.name]=Object.assign({},O.data)});for(var M=0;M<f.orderedModifiers.length;M++){if(f.reset===!0){f.reset=!1,M=-1;continue}var S=f.orderedModifiers[M],x=S.fn,L=S.options,B=L===void 0?{}:L,N=S.name;typeof x=="function"&&(f=x({state:f,options:B,name:N,instance:g})||f)}}}},update:KE(function(){return new Promise(function(C){g.forceUpdate(),C(f)})}),destroy:function(){v(),m=!0}};if(!$2(c,d))return g;g.setOptions(u).then(function(C){!m&&u.onFirstUpdate&&u.onFirstUpdate(C)});function y(){f.orderedModifiers.forEach(function(C){var w=C.name,k=C.options,_=k===void 0?{}:k,M=C.effect;if(typeof M=="function"){var S=M({state:f,name:w,instance:g,options:_}),x=function(){};p.push(S||x)}})}function v(){p.forEach(function(C){return C()}),p=[]}return g}}var bh={passive:!0};function lT(s){var e=s.state,t=s.instance,i=s.options,n=i.scroll,r=n===void 0?!0:n,a=i.resize,c=a===void 0?!0:a,d=vs(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&u.forEach(function(f){f.addEventListener("scroll",t.update,bh)}),c&&d.addEventListener("resize",t.update,bh),function(){r&&u.forEach(function(f){f.removeEventListener("scroll",t.update,bh)}),c&&d.removeEventListener("resize",t.update,bh)}}var aT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lT,data:{}};function cT(s){var e=s.state,t=s.name;e.modifiersData[t]=i3({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var dT={name:"popperOffsets",enabled:!0,phase:"read",fn:cT,data:{}},uT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hT(s,e){var t=s.x,i=s.y,n=e.devicePixelRatio||1;return{x:Da(t*n)/n||0,y:Da(i*n)/n||0}}function O2(s){var e,t=s.popper,i=s.popperRect,n=s.placement,r=s.variation,a=s.offsets,c=s.position,d=s.gpuAcceleration,u=s.adaptive,f=s.roundOffsets,p=s.isFixed,m=a.x,g=m===void 0?0:m,y=a.y,v=y===void 0?0:y,C=typeof f=="function"?f({x:g,y:v}):{x:g,y:v};g=C.x,v=C.y;var w=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),_=Hi,M=Ws,S=window;if(u){var x=$m(t),L="clientHeight",B="clientWidth";if(x===vs(t)&&(x=Yn(t),zi(x).position!=="static"&&c==="absolute"&&(L="scrollHeight",B="scrollWidth")),x=x,n===Ws||(n===Hi||n===Un)&&r===Rc){M=yi;var N=p&&x===S&&S.visualViewport?S.visualViewport.height:x[L];v-=N-i.height,v*=d?1:-1}if(n===Hi||(n===Ws||n===yi)&&r===Rc){_=Un;var O=p&&x===S&&S.visualViewport?S.visualViewport.width:x[B];g-=O-i.width,g*=d?1:-1}}var A=Object.assign({position:c},u&&uT),V=f===!0?hT({x:g,y:v},vs(t)):{x:g,y:v};if(g=V.x,v=V.y,d){var R;return Object.assign({},A,(R={},R[M]=k?"0":"",R[_]=w?"0":"",R.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",R))}return Object.assign({},A,(e={},e[M]=k?v+"px":"",e[_]=w?g+"px":"",e.transform="",e))}function fT(s){var e=s.state,t=s.options,i=t.gpuAcceleration,n=i===void 0?!0:i,r=t.adaptive,a=r===void 0?!0:r,c=t.roundOffsets,d=c===void 0?!0:c,u={placement:zn(e.placement),variation:Fa(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,O2(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:d})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,O2(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var pT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fT,data:{}};function mT(s){var e=s.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},r=e.elements[t];!Ms(r)||!vi(r)||(Object.assign(r.style,i),Object.keys(n).forEach(function(a){var c=n[a];c===!1?r.removeAttribute(a):r.setAttribute(a,c===!0?"":c)}))})}function gT(s){var e=s.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var n=e.elements[i],r=e.attributes[i]||{},a=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),c=a.reduce(function(d,u){return d[u]="",d},{});!Ms(n)||!vi(n)||(Object.assign(n.style,c),Object.keys(r).forEach(function(d){n.removeAttribute(d)}))})}}var vT={name:"applyStyles",enabled:!0,phase:"write",fn:mT,effect:gT,requires:["computeStyles"]},yT=[aT,dT,pT,vT],CT=rT({defaultModifiers:yT});function bT(s){return s==="x"?"y":"x"}function Lh(s,e,t){return vr(s,s1(e,t))}function wT(s,e,t){var i=Lh(s,e,t);return i>t?t:i}function kT(s){var e=s.state,t=s.options,i=s.name,n=t.mainAxis,r=n===void 0?!0:n,a=t.altAxis,c=a===void 0?!1:a,d=t.boundary,u=t.rootBoundary,f=t.altBoundary,p=t.padding,m=t.tether,g=m===void 0?!0:m,y=t.tetherOffset,v=y===void 0?0:y,C=zg(e,{boundary:d,rootBoundary:u,padding:p,altBoundary:f}),w=zn(e.placement),k=Fa(e.placement),_=!k,M=s3(w),S=bT(M),x=e.modifiersData.popperOffsets,L=e.rects.reference,B=e.rects.popper,N=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,O=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(x){if(r){var R,$=M==="y"?Ws:Hi,D=M==="y"?yi:Un,z=M==="y"?"height":"width",q=x[M],F=q+C[$],I=q-C[D],Z=g?-B[z]/2:0,W=k===Ha?L[z]:B[z],Y=k===Ha?-B[z]:-L[z],ne=e.elements.arrow,K=g&&ne?Jv(ne):{width:0,height:0},J=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:n3(),j=J[$],se=J[D],P=Lh(0,L[z],K[z]),X=_?L[z]/2-Z-P-j-O.mainAxis:W-P-j-O.mainAxis,pe=_?-L[z]/2+Z+P+se+O.mainAxis:Y+P+se+O.mainAxis,fe=e.elements.arrow&&$m(e.elements.arrow),Pe=fe?M==="y"?fe.clientTop||0:fe.clientLeft||0:0,de=(R=A==null?void 0:A[M])!=null?R:0,Me=q+X-de-Pe,ye=q+pe-de,rt=Lh(g?s1(F,Me):F,q,g?vr(I,ye):I);x[M]=rt,V[M]=rt-q}if(c){var Be,Je=M==="x"?Ws:Hi,Ke=M==="x"?yi:Un,Kt=x[S],xt=S==="y"?"height":"width",os=Kt+C[Je],Ci=Kt-C[Ke],Ua=[Ws,Hi].indexOf(w)!==-1,Ns=(Be=A==null?void 0:A[S])!=null?Be:0,qa=Ua?os:Kt-L[xt]-B[xt]-Ns+O.altAxis,Zi=Ua?Kt+L[xt]+B[xt]-Ns-O.altAxis:Ci,Kn=g&&Ua?wT(qa,Kt,Zi):Lh(g?qa:os,Kt,g?Zi:Ci);x[S]=Kn,V[S]=Kn-Kt}e.modifiersData[i]=V}}var _T={name:"preventOverflow",enabled:!0,phase:"main",fn:kT,requiresIfExists:["offset"]},ET={left:"right",right:"left",bottom:"top",top:"bottom"};function Ah(s){return s.replace(/left|right|bottom|top/g,function(e){return ET[e]})}var TT={start:"end",end:"start"};function V2(s){return s.replace(/start|end/g,function(e){return TT[e]})}function ST(s,e){e===void 0&&(e={});var t=e,i=t.placement,n=t.boundary,r=t.rootBoundary,a=t.padding,c=t.flipVariations,d=t.allowedAutoPlacements,u=d===void 0?IE:d,f=Fa(i),p=f?c?N2:N2.filter(function(y){return Fa(y)===f}):Om,m=p.filter(function(y){return u.indexOf(y)>=0});m.length===0&&(m=p);var g=m.reduce(function(y,v){return y[v]=zg(s,{placement:v,boundary:n,rootBoundary:r,padding:a})[zn(v)],y},{});return Object.keys(g).sort(function(y,v){return g[y]-g[v]})}function xT(s){if(zn(s)===Wg)return[];var e=Ah(s);return[V2(s),e,V2(e)]}function MT(s){var e=s.state,t=s.options,i=s.name;if(!e.modifiersData[i]._skip){for(var n=t.mainAxis,r=n===void 0?!0:n,a=t.altAxis,c=a===void 0?!0:a,d=t.fallbackPlacements,u=t.padding,f=t.boundary,p=t.rootBoundary,m=t.altBoundary,g=t.flipVariations,y=g===void 0?!0:g,v=t.allowedAutoPlacements,C=e.options.placement,w=zn(C),k=w===C,_=d||(k||!y?[Ah(C)]:xT(C)),M=[C].concat(_).reduce(function(K,J){return K.concat(zn(J)===Wg?ST(e,{placement:J,boundary:f,rootBoundary:p,padding:u,flipVariations:y,allowedAutoPlacements:v}):J)},[]),S=e.rects.reference,x=e.rects.popper,L=new Map,B=!0,N=M[0],O=0;O<M.length;O++){var A=M[O],V=zn(A),R=Fa(A)===Ha,$=[Ws,yi].indexOf(V)>=0,D=$?"width":"height",z=zg(e,{placement:A,boundary:f,rootBoundary:p,altBoundary:m,padding:u}),q=$?R?Un:Hi:R?yi:Ws;S[D]>x[D]&&(q=Ah(q));var F=Ah(q),I=[];if(r&&I.push(z[V]<=0),c&&I.push(z[q]<=0,z[F]<=0),I.every(function(K){return K})){N=A,B=!1;break}L.set(A,I)}if(B)for(var Z=y?3:1,W=function(J){var j=M.find(function(se){var P=L.get(se);if(P)return P.slice(0,J).every(function(X){return X})});if(j)return N=j,"break"},Y=Z;Y>0;Y--){var ne=W(Y);if(ne==="break")break}e.placement!==N&&(e.modifiersData[i]._skip=!0,e.placement=N,e.reset=!0)}}var BT={name:"flip",enabled:!0,phase:"main",fn:MT,requiresIfExists:["offset"],data:{_skip:!1}};function NT(s,e,t){const{disabled:i,appendTo:n,appendToBody:r,openDirection:a}=l.toRefs(s),c=l.getCurrentInstance().proxy,d=t.multiselect,u=t.dropdown,f=l.ref(!1),p=l.ref(null),m=l.ref(null),g=ut(()=>n.value||r.value),y=ut(()=>a.value==="top"&&m.value==="bottom"||a.value==="bottom"&&m.value!=="top"?"bottom":"top"),v=()=>{f.value||i.value||(f.value=!0,e.emit("open",c),g.value&&l.nextTick(()=>{w()}))},C=()=>{f.value&&(f.value=!1,e.emit("close",c))},w=()=>{if(!p.value)return;let _=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),M=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));p.value.setOptions(S=>({...S,modifiers:[...S.modifiers,{name:"offset",options:{offset:[0,(y.value==="top"?_:M)*-1]}}]})),p.value.update()},k=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return l.onMounted(()=>{g.value&&(p.value=CT(d.value,u.value,{strategy:k(d.value)?"fixed":void 0,placement:a.value,modifiers:[_T,BT,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:_})=>{_.styles.popper.width=`${_.rects.reference.width}px`},effect:({state:_})=>{_.elements.popper.style.width=`${_.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:_}){m.value=_.placement}}]}))}),l.onBeforeUnmount(()=>{!g.value||!p.value||(p.value.destroy(),p.value=null)}),{popper:p,isOpen:f,open:v,close:C,placement:y,updatePopper:w}}function LT(s,e,t){const{searchable:i,disabled:n,clearOnBlur:r}=l.toRefs(s),a=t.input,c=t.open,d=t.close,u=t.clearSearch,f=t.isOpen,p=t.wrapper,m=t.tags,g=l.ref(!1),y=l.ref(!1),v=ut(()=>i.value||n.value?-1:0),C=()=>{i.value&&a.value.blur(),p.value.blur()},w=()=>{i.value&&!n.value&&a.value.focus()},k=(B=!0)=>{n.value||(g.value=!0,B&&c())},_=()=>{g.value=!1,setTimeout(()=>{g.value||(d(),r.value&&u())},1)};return{tabindex:v,isActive:g,mouseClicked:y,blur:C,focus:w,activate:k,deactivate:_,handleFocusIn:B=>{B.target.closest("[data-tags]")&&B.target.nodeName!=="INPUT"||B.target.closest("[data-clear]")||k(y.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),C()},handleMousedown:B=>{y.value=!0,f.value&&(B.target.isEqualNode(p.value)||B.target.isEqualNode(m.value))?setTimeout(()=>{_()},0):!f.value&&(document.activeElement.isEqualNode(p.value)||document.activeElement.isEqualNode(a.value))&&k(),setTimeout(()=>{y.value=!1},0)}}}function AT(s,e,t){const{mode:i,addTagOn:n,openDirection:r,searchable:a,showOptions:c,valueProp:d,groups:u,addOptionOn:f,createTag:p,createOption:m,reverse:g}=l.toRefs(s),y=l.getCurrentInstance().proxy,v=t.iv,C=t.update,w=t.deselect,k=t.search,_=t.setPointer,M=t.selectPointer,S=t.backwardPointer,x=t.forwardPointer,L=t.multiselect,B=t.wrapper,N=t.tags,O=t.isOpen,A=t.open,V=t.blur,R=t.fo,$=ut(()=>p.value||m.value||!1),D=ut(()=>n.value!==void 0?n.value:f.value!==void 0?f.value:["enter"]),z=()=>{i.value==="tags"&&!c.value&&$.value&&a.value&&!u.value&&_(R.value[R.value.map(I=>I[d.value]).indexOf(k.value)])};return{handleKeydown:I=>{e.emit("keydown",I,y);let Z,W;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(I.key)!==-1&&i.value==="tags"&&(Z=[...L.value.querySelectorAll("[data-tags] > *")].filter(Y=>Y!==N.value),W=Z.findIndex(Y=>Y===document.activeElement)),I.key){case"Backspace":if(i.value==="single"||a.value&&[null,""].indexOf(k.value)===-1||v.value.length===0)return;let Y=v.value.filter(ne=>!ne.disabled&&ne.remove!==!1);Y.length&&w(Y[Y.length-1]);break;case"Enter":if(I.preventDefault(),I.keyCode===229)return;if(W!==-1&&W!==void 0){C([...v.value].filter((ne,K)=>K!==W)),W===Z.length-1&&(Z.length-1?Z[Z.length-2].focus():a.value?N.value.querySelector("input").focus():B.value.focus());return}if(D.value.indexOf("enter")===-1&&$.value)return;z(),M();break;case" ":if(!$.value&&!a.value){I.preventDefault(),z(),M();return}if(!$.value)return!1;if(D.value.indexOf("space")===-1&&$.value)return;I.preventDefault(),z(),M();break;case"Tab":case";":case",":if(D.value.indexOf(I.key.toLowerCase())===-1||!$.value)return;z(),M(),I.preventDefault();break;case"Escape":V();break;case"ArrowUp":if(I.preventDefault(),!c.value)return;O.value||A(),S();break;case"ArrowDown":if(I.preventDefault(),!c.value)return;O.value||A(),x();break;case"ArrowLeft":if(a.value&&N.value&&N.value.querySelector("input").selectionStart||I.shiftKey||i.value!=="tags"||!v.value||!v.value.length)return;I.preventDefault(),W===-1?Z[Z.length-1].focus():W>0&&Z[W-1].focus();break;case"ArrowRight":if(W===-1||I.shiftKey||i.value!=="tags"||!v.value||!v.value.length)return;I.preventDefault(),Z.length>W+1?Z[W+1].focus():a.value?N.value.querySelector("input").focus():a.value||B.value.focus();break}},handleKeyup:I=>{e.emit("keyup",I,y)},preparePointer:z}}function $T(s,e,t){const{classes:i,disabled:n,showOptions:r,breakTags:a}=l.toRefs(s),c=t.isOpen,d=t.isPointed,u=t.isSelected,f=t.isDisabled,p=t.isActive,m=t.canPointGroups,g=t.resolving,y=t.fo,v=t.placement,C=ut(()=>({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",...i.value})),w=ut(()=>!!(c.value&&r.value&&(!g.value||g.value&&y.value.length)));return{classList:l.computed(()=>{const _=C.value;return{container:[_.container].concat(n.value?_.containerDisabled:[]).concat(w.value&&v.value==="top"?_.containerOpenTop:[]).concat(w.value&&v.value!=="top"?_.containerOpen:[]).concat(p.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(n.value?_.tagDisabled:[]),tagWrapper:[_.tagWrapper,a.value?_.tagWrapperBreak:null],tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(c.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(v.value==="top"?_.dropdownTop:[]).concat(!c.value||!r.value||!w.value?_.dropdownHidden:[]),options:[_.options].concat(v.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:M=>{let S=[_.groupLabel];return d(M)?S.push(u(M)?_.groupLabelSelectedPointed:_.groupLabelPointed):u(M)&&m.value?S.push(f(M)?_.groupLabelSelectedDisabled:_.groupLabelSelected):f(M)&&S.push(_.groupLabelDisabled),m.value&&S.push(_.groupLabelPointable),S},groupOptions:_.groupOptions,option:(M,S)=>{let x=[_.option];return d(M)?x.push(u(M)?_.optionSelectedPointed:_.optionPointed):u(M)?x.push(f(M)?_.optionSelectedDisabled:_.optionSelected):(f(M)||S&&f(S))&&x.push(_.optionDisabled),x},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:w}}function OT(s,e,t){const{limit:i,infinite:n}=l.toRefs(s),r=t.isOpen,a=t.offset,c=t.search,d=t.pfo,u=t.eo,f=l.ref(null),p=l.shallowRef(null),m=ut(()=>a.value<d.value.length),g=v=>{const{isIntersecting:C,target:w}=v[0];if(C){const k=w.offsetParent,_=k.scrollTop;a.value+=i.value==-1?10:i.value,l.nextTick(()=>{k.scrollTop=_})}},y=()=>{r.value&&a.value<d.value.length?f.value.observe(p.value):!r.value&&f.value&&f.value.disconnect()};return l.watch(r,()=>{n.value&&y()}),l.watch(c,()=>{n.value&&(a.value=i.value,y())},{flush:"post"}),l.watch(u,()=>{n.value&&y()},{immediate:!1,flush:"post"}),l.onMounted(()=>{window&&window.IntersectionObserver&&(f.value=new IntersectionObserver(g))}),{hasMore:m,infiniteLoader:p}}function VT(s,e,t){const{placeholder:i,id:n,valueProp:r,label:a,mode:c,groupLabel:d,aria:u,searchable:f}=l.toRefs(s),p=t.pointer,m=t.iv,g=t.hasSelected,y=t.multipleLabelText,v=l.ref(null),C=ut(()=>`${n.value?n.value+"-":""}assist`),w=ut(()=>`${n.value?n.value+"-":""}multiselect-options`),k=ut(()=>{if(p.value){let V=n.value?`${n.value}-`:"";return V+=`${p.value.group?"multiselect-group":"multiselect-option"}-`,V+=p.value.group?p.value.index:p.value[r.value],V}}),_=ut(()=>i.value),M=ut(()=>c.value!=="single"),S=l.computed(()=>c.value==="single"&&g.value?m.value[a.value]:c.value==="multiple"&&g.value?y.value:c.value==="tags"&&g.value?m.value.map(V=>V[a.value]).join(", "):""),x=l.computed(()=>{let V={...u.value};return f.value&&(V["aria-labelledby"]=V["aria-labelledby"]?`${C.value} ${V["aria-labelledby"]}`:C.value,S.value&&V["aria-label"]&&(V["aria-label"]=`${S.value}, ${V["aria-label"]}`)),V}),L=V=>`${n.value?n.value+"-":""}multiselect-option-${V[r.value]}`,B=V=>`${n.value?n.value+"-":""}multiselect-group-${V.index}`,N=V=>`${V}`,O=V=>`${V}`,A=V=>`${V} ❎`;return l.onMounted(()=>{if(n.value&&document&&document.querySelector){let V=document.querySelector(`[for="${n.value}"]`);v.value=V?V.innerText:null}}),{arias:x,ariaLabel:S,ariaAssist:C,ariaControls:w,ariaPlaceholder:_,ariaMultiselectable:M,ariaActiveDescendant:k,ariaOptionId:L,ariaOptionLabel:N,ariaGroupId:B,ariaGroupLabel:O,ariaTagLabel:A}}function RT(s,e,t){const{locale:i,fallbackLocale:n}=l.toRefs(s);return{localize:a=>!a||typeof a!="object"?a:a&&a[i.value]?a[i.value]:a&&i.value&&a[i.value.toUpperCase()]?a[i.value.toUpperCase()]:a&&a[n.value]?a[n.value]:a&&n.value&&a[n.value.toUpperCase()]?a[n.value.toUpperCase()]:a&&Object.keys(a)[0]?a[Object.keys(a)[0]]:""}}function IT(s,e,t){const i=l.shallowRef(null),n=l.shallowRef(null),r=l.shallowRef(null),a=l.shallowRef(null),c=l.shallowRef(null);return{multiselect:i,wrapper:n,tags:r,input:a,dropdown:c}}function DT(s,e,t,i={}){return t.forEach(n=>{i={...i,...n(s,e,i)}}),i}var en={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,default:void 0},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,default:void 0},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,default:void 0},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,default:void 0},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,default:void 0}},setup(s,e){return DT(s,e,[IT,RT,kE,EE,NT,_E,wE,LT,xE,OT,ME,AT,$T,VT])},beforeMount(){(this.$root.constructor&&this.$root.constructor.version&&this.$root.constructor.version.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const PT=["id","dir"],HT=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],FT=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],WT=["onKeyup","aria-label"],zT=["onClick"],jT=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],UT=["innerHTML"],qT=["id"],ZT=["id"],GT=["id","aria-label","aria-selected"],YT=["data-pointed","onMouseenter","onClick"],KT=["innerHTML"],XT=["aria-label"],QT=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],JT=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],eS=["innerHTML"],tS=["innerHTML"],sS=["value"],iS=["name","value"],nS=["name","value"],oS=["id"];function rS(s,e,t,i,n,r){return l.openBlock(),l.createElementBlock("div",{ref:"multiselect",class:l.normalizeClass(s.classList.container),id:t.searchable?void 0:t.id,dir:t.rtl?"rtl":void 0,onFocusin:e[12]||(e[12]=(...a)=>s.handleFocusIn&&s.handleFocusIn(...a)),onFocusout:e[13]||(e[13]=(...a)=>s.handleFocusOut&&s.handleFocusOut(...a)),onKeyup:e[14]||(e[14]=(...a)=>s.handleKeyup&&s.handleKeyup(...a)),onKeydown:e[15]||(e[15]=(...a)=>s.handleKeydown&&s.handleKeydown(...a))},[l.createElementVNode("div",l.mergeProps({class:s.classList.wrapper,onMousedown:e[9]||(e[9]=(...a)=>s.handleMousedown&&s.handleMousedown(...a)),ref:"wrapper",tabindex:s.tabindex,"aria-controls":t.searchable?void 0:s.ariaControls,"aria-placeholder":t.searchable?void 0:s.ariaPlaceholder,"aria-expanded":t.searchable?void 0:s.isOpen,"aria-activedescendant":t.searchable?void 0:s.ariaActiveDescendant,"aria-multiselectable":t.searchable?void 0:s.ariaMultiselectable,role:t.searchable?void 0:"combobox"},t.searchable?{}:s.arias),[l.createCommentVNode(" Search "),t.mode!=="tags"&&t.searchable&&!t.disabled?(l.openBlock(),l.createElementBlock("input",l.mergeProps({key:0,type:t.inputType,modelValue:s.search,value:s.search,class:s.classList.search,autocomplete:t.autocomplete,id:t.searchable?t.id:void 0,onInput:e[0]||(e[0]=(...a)=>s.handleSearchInput&&s.handleSearchInput(...a)),onKeypress:e[1]||(e[1]=(...a)=>s.handleKeypress&&s.handleKeypress(...a)),onPaste:e[2]||(e[2]=l.withModifiers((...a)=>s.handlePaste&&s.handlePaste(...a),["stop"])),ref:"input","aria-controls":s.ariaControls,"aria-placeholder":s.ariaPlaceholder,"aria-expanded":s.isOpen,"aria-activedescendant":s.ariaActiveDescendant,"aria-multiselectable":s.ariaMultiselectable,role:"combobox"},{...t.attrs,...s.arias}),null,16,FT)):l.createCommentVNode("v-if",!0),l.createCommentVNode(" Tags (with search) "),t.mode=="tags"?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(s.classList.tags),"data-tags":""},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.iv,(a,c,d)=>l.renderSlot(s.$slots,"tag",{option:a,handleTagRemove:s.handleTagRemove,disabled:t.disabled},()=>[(l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass([s.classList.tag,a.disabled?s.classList.tagDisabled:null]),tabindex:"-1",onKeyup:l.withKeys(u=>s.handleTagRemove(a,u),["enter"]),key:d,"aria-label":s.ariaTagLabel(s.localize(a[t.label]))},[l.createElementVNode("span",{class:l.normalizeClass(s.classList.tagWrapper)},l.toDisplayString(s.localize(a[t.label])),3),!t.disabled&&!a.disabled?(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(s.classList.tagRemove),onClick:l.withModifiers(u=>s.handleTagRemove(a,u),["stop"])},[l.createElementVNode("span",{class:l.normalizeClass(s.classList.tagRemoveIcon)},null,2)],10,zT)):l.createCommentVNode("v-if",!0)],42,WT))])),256)),l.createElementVNode("div",{class:l.normalizeClass(s.classList.tagsSearchWrapper),ref:"tags"},[l.createCommentVNode(" Used for measuring search width "),l.createElementVNode("span",{class:l.normalizeClass(s.classList.tagsSearchCopy)},l.toDisplayString(s.search),3),l.createCommentVNode(" Actual search input "),t.searchable&&!t.disabled?(l.openBlock(),l.createElementBlock("input",l.mergeProps({key:0,type:t.inputType,modelValue:s.search,value:s.search,class:s.classList.tagsSearch,id:t.searchable?t.id:void 0,autocomplete:t.autocomplete,onInput:e[3]||(e[3]=(...a)=>s.handleSearchInput&&s.handleSearchInput(...a)),onKeypress:e[4]||(e[4]=(...a)=>s.handleKeypress&&s.handleKeypress(...a)),onPaste:e[5]||(e[5]=l.withModifiers((...a)=>s.handlePaste&&s.handlePaste(...a),["stop"])),ref:"input","aria-controls":s.ariaControls,"aria-placeholder":s.ariaPlaceholder,"aria-expanded":s.isOpen,"aria-activedescendant":s.ariaActiveDescendant,"aria-multiselectable":s.ariaMultiselectable,role:"combobox"},{...t.attrs,...s.arias}),null,16,jT)):l.createCommentVNode("v-if",!0)],2)],2)):l.createCommentVNode("v-if",!0),l.createCommentVNode(" Single label "),t.mode=="single"&&s.hasSelected&&!s.search&&s.iv?l.renderSlot(s.$slots,"singlelabel",{key:2,value:s.iv},()=>[l.createElementVNode("div",{class:l.normalizeClass(s.classList.singleLabel)},[l.createElementVNode("span",{class:l.normalizeClass(s.classList.singleLabelText)},l.toDisplayString(s.localize(s.iv[t.label])),3)],2)]):l.createCommentVNode("v-if",!0),l.createCommentVNode(" Multiple label "),t.mode=="multiple"&&s.hasSelected&&!s.search?l.renderSlot(s.$slots,"multiplelabel",{key:3,values:s.iv},()=>[l.createElementVNode("div",{class:l.normalizeClass(s.classList.multipleLabel),innerHTML:s.multipleLabelText},null,10,UT)]):l.createCommentVNode("v-if",!0),l.createCommentVNode(" Placeholder "),t.placeholder&&!s.hasSelected&&!s.search?l.renderSlot(s.$slots,"placeholder",{key:4},()=>[l.createElementVNode("div",{class:l.normalizeClass(s.classList.placeholder),"aria-hidden":"true"},l.toDisplayString(t.placeholder),3)]):l.createCommentVNode("v-if",!0),l.createCommentVNode(" Spinner "),t.loading||s.resolving?l.renderSlot(s.$slots,"spinner",{key:5},()=>[l.createElementVNode("span",{class:l.normalizeClass(s.classList.spinner),"aria-hidden":"true"},null,2)]):l.createCommentVNode("v-if",!0),l.createCommentVNode(" Clear "),s.hasSelected&&!t.disabled&&t.canClear&&!s.busy?l.renderSlot(s.$slots,"clear",{key:6,clear:s.clear},()=>[l.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:l.normalizeClass(s.classList.clear),onClick:e[6]||(e[6]=(...a)=>s.clear&&s.clear(...a)),onKeyup:e[7]||(e[7]=l.withKeys((...a)=>s.clear&&s.clear(...a),["enter"]))},[l.createElementVNode("span",{class:l.normalizeClass(s.classList.clearIcon)},null,2)],34)]):l.createCommentVNode("v-if",!0),l.createCommentVNode(" Caret "),t.caret&&t.showOptions?l.renderSlot(s.$slots,"caret",{key:7,handleCaretClick:s.handleCaretClick,isOpen:s.isOpen},()=>[l.createElementVNode("span",{class:l.normalizeClass(s.classList.caret),onClick:e[8]||(e[8]=(...a)=>s.handleCaretClick&&s.handleCaretClick(...a)),"aria-hidden":"true"},null,2)]):l.createCommentVNode("v-if",!0)],16,HT),l.createCommentVNode(" Options "),(l.openBlock(),l.createBlock(l.Teleport,{to:t.appendTo||"body",disabled:!t.appendToBody&&!t.appendTo},[l.createElementVNode("div",{id:t.id?`${t.id}-dropdown`:void 0,class:l.normalizeClass(s.classList.dropdown),tabindex:"-1",ref:"dropdown",onFocusin:e[10]||(e[10]=(...a)=>s.handleFocusIn&&s.handleFocusIn(...a)),onFocusout:e[11]||(e[11]=(...a)=>s.handleFocusOut&&s.handleFocusOut(...a))},[l.renderSlot(s.$slots,"beforelist",{options:s.fo}),l.createElementVNode("ul",{class:l.normalizeClass(s.classList.options),id:s.ariaControls,role:"listbox"},[t.groups?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(s.fg,(a,c,d)=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(s.classList.group),key:d,id:s.ariaGroupId(a),"aria-label":s.ariaGroupLabel(s.localize(a[t.groupLabel])),"aria-selected":s.isSelected(a),role:"option"},[a.__CREATE__?l.createCommentVNode("v-if",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(s.classList.groupLabel(a)),"data-pointed":s.isPointed(a),onMouseenter:u=>s.setPointer(a,c),onClick:u=>s.handleGroupClick(a)},[l.renderSlot(s.$slots,"grouplabel",{group:a,isSelected:s.isSelected,isPointed:s.isPointed},()=>[l.createElementVNode("span",{innerHTML:s.localize(a[t.groupLabel])},null,8,KT)])],42,YT)),l.createElementVNode("ul",{class:l.normalizeClass(s.classList.groupOptions),"aria-label":s.ariaGroupLabel(s.localize(a[t.groupLabel])),role:"group"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.__VISIBLE__,(u,f,p)=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(s.classList.option(u,a)),"data-pointed":s.isPointed(u),"data-selected":s.isSelected(u)||void 0,key:p,onMouseenter:m=>s.setPointer(u),onClick:m=>s.handleOptionClick(u),id:s.ariaOptionId(u),"aria-selected":s.isSelected(u),"aria-label":s.ariaOptionLabel(s.localize(u[t.label])),role:"option"},[l.renderSlot(s.$slots,"option",{option:u,isSelected:s.isSelected,isPointed:s.isPointed,search:s.search},()=>[l.createElementVNode("span",null,l.toDisplayString(s.localize(u[t.label])),1)])],42,QT))),128))],10,XT)],10,GT))),128)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(s.fo,(a,c,d)=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(s.classList.option(a)),"data-pointed":s.isPointed(a),"data-selected":s.isSelected(a)||void 0,key:d,onMouseenter:u=>s.setPointer(a),onClick:u=>s.handleOptionClick(a),id:s.ariaOptionId(a),"aria-selected":s.isSelected(a),"aria-label":s.ariaOptionLabel(s.localize(a[t.label])),role:"option"},[l.renderSlot(s.$slots,"option",{option:a,isSelected:s.isSelected,isPointed:s.isPointed,search:s.search},()=>[l.createElementVNode("span",null,l.toDisplayString(s.localize(a[t.label])),1)])],42,JT))),128))],10,ZT),s.noOptions?l.renderSlot(s.$slots,"nooptions",{key:0},()=>[l.createElementVNode("div",{class:l.normalizeClass(s.classList.noOptions),innerHTML:s.localize(t.noOptionsText)},null,10,eS)]):l.createCommentVNode("v-if",!0),s.noResults?l.renderSlot(s.$slots,"noresults",{key:1},()=>[l.createElementVNode("div",{class:l.normalizeClass(s.classList.noResults),innerHTML:s.localize(t.noResultsText)},null,10,tS)]):l.createCommentVNode("v-if",!0),t.infinite&&s.hasMore?(l.openBlock(),l.createElementBlock("div",{key:2,class:l.normalizeClass(s.classList.inifinite),ref:"infiniteLoader"},[l.renderSlot(s.$slots,"infinite",{},()=>[l.createElementVNode("span",{class:l.normalizeClass(s.classList.inifiniteSpinner)},null,2)])],2)):l.createCommentVNode("v-if",!0),l.renderSlot(s.$slots,"afterlist",{options:s.fo})],42,qT)],8,["to","disabled"])),l.createCommentVNode(" Hacky input element to show HTML5 required warning "),t.required?(l.openBlock(),l.createElementBlock("input",{key:0,class:l.normalizeClass(s.classList.fakeInput),tabindex:"-1",value:s.textValue,required:""},null,10,sS)):l.createCommentVNode("v-if",!0),l.createCommentVNode(" Native input support "),t.nativeSupport?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[t.mode=="single"?(l.openBlock(),l.createElementBlock("input",{key:0,type:"hidden",name:t.name,value:s.plainValue!==void 0?s.plainValue:""},null,8,iS)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(s.plainValue,(a,c)=>(l.openBlock(),l.createElementBlock("input",{type:"hidden",name:`${t.name}[]`,value:a,key:c},null,8,nS))),128))],64)):l.createCommentVNode("v-if",!0),l.createCommentVNode(" Screen reader assistive text "),t.searchable&&s.hasSelected?(l.openBlock(),l.createElementBlock("div",{key:2,class:l.normalizeClass(s.classList.assist),id:s.ariaAssist,"aria-hidden":"true"},l.toDisplayString(s.ariaLabel),11,oS)):l.createCommentVNode("v-if",!0),l.createCommentVNode(" Create height for empty input "),l.createElementVNode("div",{class:l.normalizeClass(s.classList.spacer)},null,2)],42,PT)}en.render=rS;en.__file="src/Multiselect.vue";const ms=l.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(s){const e=s,t=l.toRef(()=>e.appendTo),i=l.ref();return e.detached&&bE({multiselect:i,appendTo:t.value}),(n,r)=>(l.openBlock(),l.createBlock(l.unref(en),{ref_key:"multiselectRef",ref:i,class:"ao-multiselect"},l.createSlots({_:2},[l.renderList(n.$slots,(a,c)=>({name:c,fn:l.withCtx(d=>[l.renderSlot(n.$slots,c,l.normalizeProps(l.guardReactiveProps(d??{})))])}))]),1536))}});var R2;function qi(){const s=lS(),e=s.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(s.proxy)}}function lS(){const s=l.getCurrentInstance();if(!s)throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");return s}l.defineComponent({props:{translation:{type:String,required:!0}},setup(s,{slots:e}){return()=>{const t=s.translation,i=[];let n,r=0;for(;(n=R2.exec(t))!==null;){i.push(t.substring(r,n.index));const a=e[n[1]];a?i.push(...a()):i.push(n[0]),r=R2.lastIndex}return i.push(t.substring(r)),i}}});async function Fi(s,e){if(e&&s&&s.length-e.length===1){const t=new Set(e.map(c=>c.id)),i=s.filter(c=>!t.has(c.id));if(i.length!==1)return;const n=i[0].id;await l.nextTick();const r=document.getElementById(n);r==null||r.focus(),await l.nextTick();const a=document.getElementById(n);a==null||a.select()}}const aS={class:"ao-tasks"},cS={class:"ao-tasks__list"},dS=["id","value","readonly","onChange"],uS={class:"ao-tasks__list-footer"},hS=l.defineComponent({__name:"AoActivityTasks",props:{activityId:{},tasks:{},isCheckable:{type:Function},users:{},isEditable:{type:Boolean},isTemplate:{type:Boolean}},emits:["add","delete","update"],setup(s,{emit:e}){const{t}=qi(),i=s,n=e;l.watch(()=>i.tasks,(m,g)=>{Fi(m,g)});const r=l.computed(()=>{var m;return((m=i.users)==null?void 0:m.map(g=>({label:`${g.firstName} ${g.lastName}`,value:g.id,avatar:g.avatarUrl})))??[]}),a=()=>{const m=i.tasks.length,g={name:t("task.defaultName",{idx:m+1}),activityId:i.activityId};n("add",g)},c=(m,g)=>{const v=m.target.value;n("update",{id:g,name:v})},d=(m,g)=>{i.isEditable&&n("update",{id:m,isDone:g})},u=m=>{n("delete",{id:m})},f=(m,g)=>{n("update",{id:g,assigneeId:m[0]??null})},p=m=>{const g=m.target;g==null||g.blur()};return(m,g)=>(l.openBlock(),l.createElementBlock("div",aS,[l.createElementVNode("ul",cS,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.tasks,y=>{var v,C;return l.openBlock(),l.createElementBlock("li",{key:y.id,class:"ao-subtask"},[((v=s.isCheckable)==null?void 0:v.call(s,y))??!1?(l.openBlock(),l.createBlock(Ee,{key:0,class:"ao-subtask__check","icon-name":y.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!s.isEditable,variant:"ghost",color:"primary",onClick:()=>d(y.id,!y.isDone)},null,8,["icon-name","disabled","onClick"])):l.createCommentVNode("",!0),l.createElementVNode("input",{id:y.id,value:y.name,readonly:!s.isEditable,class:l.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":y.isDone}]),type:"text",onChange:w=>c(w,y.id),onKeyup:l.withKeys(p,["enter"])},null,42,dS),g[0]||(g[0]=l.createTextVNode(". ",-1)),!s.isTemplate&&s.users?(l.openBlock(),l.createBlock(ms,{key:1,value:(C=y.assignee)!=null&&C.id?[y.assignee.id]:[],options:r.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:m.$t("feed.filters.assignee.placeholder"),disabled:!s.isEditable,caret:s.isEditable,onChange:w=>f(w,y.id)},{tag:l.withCtx(({option:w,handleTagRemove:k})=>[l.createVNode(ji,{"user-name":w.label,"avatar-url":w.avatar,"is-closable":!0,onClose:_=>k(w,_)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):l.createCommentVNode("",!0),s.isEditable?(l.openBlock(),l.createBlock(Ee,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>u(y.id)},null,8,["onClick"])):l.createCommentVNode("",!0)])}),128))]),l.createElementVNode("div",uS,[s.isEditable?(l.openBlock(),l.createBlock(Ee,{key:0,label:m.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:a},null,8,["label"])):l.createCommentVNode("",!0)])]))}});const fS={class:"ao-files__placeholder"},pS={key:0,class:"ao-files__list"},mS=["href"],gS={class:"ao-file__title"},vS={key:0},yS={class:"ao-files__input"},CS={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},bS={class:"ao-button__label"},wS={class:"ao-files__dropzone"},kS={class:"ao-files__dropzone-label"},_S=l.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove"],setup(s,{emit:e}){const t=e,i=s,n=p=>{t("remove",p)},r=p=>{const m=p.target,g=Array.from(m.files??[]);t("add",g)},a=["dragenter","dragover","dragleave","drop"];l.onMounted(()=>{a.forEach(p=>{document.body.addEventListener(p,m=>m.preventDefault())})}),l.onUnmounted(()=>{a.forEach(p=>{document.body.removeEventListener(p,m=>m.preventDefault())})});const c=l.ref(!1);function d(){i.isEditable&&(c.value=!0)}function u(){c.value=!1}l.watch(c,p=>{t("toggleIsDropActive",p)});function f(p){var g;u();const m=Array.from(((g=p.dataTransfer)==null?void 0:g.files)||[]);p.dataTransfer&&t("add",m)}return(p,m)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":c.value}]),onDrop:l.withModifiers(f,["prevent"]),onDragenter:l.withModifiers(d,["prevent"]),onDragover:l.withModifiers(d,["prevent"]),onDragleave:l.withModifiers(u,["prevent"])},[l.renderSlot(p.$slots,"default",{},()=>[l.createElementVNode("span",fS,l.toDisplayString(p.$t("activity.attachment.placeholder.resting")),1)]),s.attachments?(l.openBlock(),l.createElementBlock("ul",pS,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.attachments,g=>(l.openBlock(),l.createElementBlock("li",{key:g.id,class:"ao-file"},[l.createElementVNode("a",{class:"ao-file__link",href:g.url,target:"_blank",rel:"noopener noreferrer"},[l.createVNode(Ye,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),l.createElementVNode("span",gS,l.toDisplayString(g.name),1)],8,mS),s.isEditable?(l.openBlock(),l.createBlock(Ee,{key:0,class:"ao-files__delete-button","icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round",onClick:()=>n(g)},null,8,["onClick"])):l.createCommentVNode("",!0)]))),128)),s.isEditable?(l.openBlock(),l.createElementBlock("li",vS,[l.createElementVNode("label",yS,[l.createElementVNode("div",CS,[l.createVNode(Ye,{name:"Add",size:"sm"}),l.createElementVNode("span",bS,l.toDisplayString(p.$t("activity.attachment.button.resting")),1)]),l.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:r},null,32)])])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",wS,[l.createElementVNode("span",kS,l.toDisplayString(p.$t("activity.attachment.placeholder.active")),1)],512),[[l.vShow,c.value]])],34))}});const he=window,Ae=document,ES=Symbol("noEventHandler"),TS=Symbol("onOverComponent"),_r=navigator.userAgent.toLowerCase();function SS(){return new XMLHttpRequest}function xS(s){let e="";const t=(s||Ae).styleSheets;for(let i=0,n=t.length,r;i<n;i++){try{r=t[i].cssRules}catch{continue}if(r)for(let a=0,c=r.length;a<c;a++)e+=r[a].cssText}return e}function MS(s,e){let t="";const i=[],n=e==="js"?"script":"link",r=e==="js"?"src":"href";let a="(?:";for(let u=0,f=s.length;u<f;u++)a+=s[u]+(u<f-1?"|":")");const c=new RegExp(`(^|.*[\\/])${a}(\\.[^\\/]+)?.${e}(?:\\?.*|;.*)?$`,"i"),d=new RegExp(`.+\\.${e}(?:\\?.*|;.*)?$`,"i");for(let u=Ae.getElementsByTagName(n),f=0;f<u.length;f++)d.test(u[f][r])&&i.push(u[f]);for(let u=0;u<i.length;u++){const f=i[u][r].match(c);if(f){t=f[0];break}}if(!t)throw new Error("[SUNEDITOR.helper.env.getIncludePath.fail] The SUNEDITOR installation path could not be automatically detected. (path: +"+t+", extension: "+e+")");return t===""&&(t=i.length>0?i[0][r]:""),!t.includes(":/")&&t.slice(0,2)!=="//"&&(t=t.includes("/")===!1?location.href.match(/^.*?:\/\/[^/]*/)[0]+t:location.href.match(/^[^?]*\/(?:)/)[0]+t),t}const BS=(()=>typeof ResizeObserver=="function")(),o3=(()=>{var s;return typeof((s=navigator.clipboard)==null?void 0:s.write)=="function"})(),r3=(()=>/Edg/.test(navigator.userAgent))(),jg=(()=>/(Mac|iPhone|iPod|iPad)/.test(navigator.userAgent))(),NS=(()=>_r.includes("chrome/")&&!_r.includes("edge/"))(),LS=(()=>!!_r.match(/gecko\/\d+/))(),AS=(()=>!!he.chrome)(),$S=(()=>_r.includes("applewebkit/")&&!_r.includes("chrome"))(),l3=(()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(_r))(),OS=(()=>navigator.maxTouchPoints>0&&"ontouchstart"in he)(),VS=(()=>_r.includes("android"))(),RS=jg?"⌘":"CTRL",IS=jg?"⇧":"+SHIFT",DS=he.devicePixelRatio;let e0=null;function PS(){if(e0!==null)return e0;if(!Ae.body||typeof Ae.execCommand!="function")return!0;let s=!1;try{const e=Ae.createElement("div");e.setAttribute("contenteditable","true"),e.setAttribute("aria-hidden","true"),e.style.cssText="position: fixed; top: 0; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none;";const t=Ae.activeElement;Ae.body.appendChild(e);const i=()=>{s=!0};e.addEventListener("beforeinput",i,!0),e.addEventListener("input",i,!0),e.focus({preventScroll:!0}),Ae.execCommand("insertText",!1,""),e.removeEventListener("beforeinput",i,!0),e.removeEventListener("input",i,!0),e.remove(),t&&t!==Ae.body&&typeof t.focus=="function"&&t.focus({preventScroll:!0})}catch{s=!0}return e0=s}const HS="https://katex.org/docs/supported.html",FS="https://www.mathjax.org/",WS={_w:he,_d:Ae,NO_EVENT:ES,ON_OVER_COMPONENT:TS,getXMLHttpRequest:SS,getPageStyle:xS,getIncludePath:MS,isResizeObserverSupported:BS,isClipboardSupported:o3,isEdge:r3,isBlink:NS,isGecko:LS,isChromium:AS,isSafari:$S,isOSX_IOS:jg,isAndroid:VS,isMobile:l3,isTouchDevice:OS,canUseBeforeInput:PS,cmdIcon:RS,shiftIcon:IS,DPI:DS,KATEX_WEBSITE:HS,MATHJAX_WEBSITE:FS},zS=WS,Ug=8203,a3=String.fromCharCode(Ug),C0=new RegExp(String.fromCharCode(Ug),"g"),c3=new RegExp("^"+String.fromCharCode(Ug)+"+$");function jS(s){if(typeof s!="string")throw new TypeError("Expected a string");return s.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const US={zeroWidthSpace:a3,zeroWidthRegExp:C0,onlyZeroWidthRegExp:c3,escapeStringRegexp:jS},qS=US;function ZS(s){return/^-?\d+(\.\d+)?$/.test(s+"")}function i1(s,e=0){if(!s)return 0;const t=(s+"").match(/-?\d+(\.\d+)?/);if(!t||!t[0])return 0;const i=Number(t[0]);return e<0?i:e===0?Math.round(i):Number(i.toFixed(e))}function GS(s,e,t,i){if(s<=i?e<t:e>t)return 0;const n=(s>t?s:t)-(e<i?e:i);return(n<0?n*-1:n)+1}function YS(s){return(s&1)===0}function KS(s){return(s&1)===1}const XS={is:ZS,get:i1,getOverlapRangeAtIndex:GS,isEven:YS,isOdd:KS},QS=XS,JS=/&|\u00A0|'|"|<|>/g,ex=/&| |'|"|<|>/g,tx={"&":"&"," ":" ","'":"'",'"':""","<":"<",">":">"},sx={"&":"&"," ":" ","'":"'",""":'"',"<":"<",">":">"},ix=/[A-Z]/g,nx=/-[a-zA-Z]/g,ox={"xx-small":.5625,"x-small":.625,small:.8333,medium:1,large:1.125,"x-large":1.5,"xx-large":2,"xxx-large":2.5};function d3(s){if(s.nodeType===3){const e=s.nodeValue.trim();return e?{type:"text",content:e}:null}if(s.nodeType===1){const e={type:"element",tag:s.tagName.toLowerCase(),attributes:{},children:[]};for(const t of s.attributes)e.attributes[t.name]=t.value;for(const t of s.childNodes){const i=d3(t);i&&e.children.push(i)}return e}return null}function rx(s){const t=new DOMParser().parseFromString(s,"text/html");return d3(t.body)}function u3(s){if(!s)return"";if(s.type==="text")return n1(s.content||"");if(s.type==="element"){const{tag:e,attributes:t={},children:i=[]}=s,n=Object.entries(t).map(([d,u])=>`${d}="${n1(u)}"`).join(" "),r=n?`<${e} ${n}>`:`<${e}>`,a=`</${e}>`,c=i.map(u3).join("");return`${r}${c}${a}`}return""}function n1(s){return s.replace(JS,e=>tx[e]||e)}function lx(s){return s.replace(ex,e=>sx[e]||e)}function ax(s,e){let t;function i(...n){const r=()=>{t=null,s(...n)};he.clearTimeout(t),t=he.setTimeout(r,e)}return i.cancel=()=>{he.clearTimeout(t),t=null},i}function cx(s,e){e.forEach((t,i)=>{s.set(i,t)}),s.forEach((t,i)=>{e.has(i)||s.delete(i)})}function dx(...s){const t=s.filter(i=>i instanceof Map).flatMap(i=>[...i]);return new Map(t)}function ux(s){return s?Object.keys(s).map(function(e){return s[e]}):[]}function h3(s){return typeof s=="string"?s.replace(ix,e=>"-"+e.toLowerCase()):s.map(function(e){return h3(e)})}function f3(s){return typeof s=="string"?s.replace(nx,e=>e.replace("-","").toUpperCase()):s.map(function(e){return f3(e)})}function hx(s,e){const t=e.match(/(\d+(?:\.\d+)?)(.+)/),i=t?Number(t[1]):ox[e],n=t?t[2]:"rem";let r=i;switch(/em/.test(n)?r=Math.round(i/.0625):n==="pt"?r=Math.round(i*1.333):n==="%"&&(r=i/100),s){case"em":case"rem":return(r*.0625).toFixed(2)+s;case"%":return Number((r*.0625).toFixed(2))*100+s;case"pt":return Math.round(r/1.333)+s;default:return r+s}}function fx(s){return s?Array.prototype.slice.call(s):[]}function px(s){const e={},t=Object.prototype.hasOwnProperty;for(const i in s)t.call(s,i)&&(e[s[i]]=i);return e}function mx(s){return new RegExp(`<\\/?\\b(?!\\b${(s||"").replace(/\|/g,"\\b|\\b")}\\b)[^>]*>`,"gi")}function gx(s){return new RegExp(`<\\/?\\b(?:\\b${(s||"^").replace(/\|/g,"\\b|\\b")}\\b)[^>]*>`,"gi")}function p3(s){return/^#[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(s)}function vx(s){if(p3(s)||!s)return s;const e=s.match(/^rgba?[\s+]?\(([\d]+)[\s+]?,[\s+]?([\d]+)[\s+]?,[\s+]?([\d]+)[\s+]?/i);if(e&&e.length>=4){const t=("0"+parseInt(e[1],10).toString(16)).slice(-2),i=("0"+parseInt(e[2],10).toString(16)).slice(-2),n=("0"+parseInt(e[3],10).toString(16)).slice(-2);let r="";if(s.includes("rgba")){const a=s.match(/,\s*([\d]+\.?[\d]*)\s*\)/);a&&(r=("0"+Math.round(parseFloat(a[1])*255).toString(16)).slice(-2))}return`#${t}${i}${n}${r}`}else return s}function yx(s,e){const t=e||s.parentElement,i=he.getComputedStyle(t),n=i1(i.paddingLeft,-1),r=i1(i.paddingRight,-1),a=t.offsetWidth-t.clientWidth,c=t.offsetWidth-n-r-a;return s.offsetWidth/c*100}function Cx(s){var t;const e=/https?:\/\/[^\s]+/g;if(s.nodeType===3&&e.test(s.textContent)&&!/^A$/i.test((t=s.parentNode)==null?void 0:t.nodeName)){const i=s.textContent,n=Ae.createDocumentFragment();let r=0;return i.replace(e,(a,c)=>{c>r&&n.appendChild(Ae.createTextNode(i.slice(r,c)));const d=Ae.createElement("a");return d.href=a,d.target="_blank",d.textContent=a,n.appendChild(d),r=c+a.length,a}),r<i.length&&n.appendChild(Ae.createTextNode(i.slice(r))),s.parentNode.replaceChild(n,s),!0}return!1}function bx(s,e){if(e.nodeType===1&&/^SPAN$/i.test(e.nodeName)&&e.hasAttribute("style")){const t=e.getAttribute("style"),i=[];if(Object.keys(s).forEach(n=>{if(s[n].regex.test(t)){const r=Ae.createElement(s[n].tag);i.push(r)}}),i.length>0){const n=Ae.createElement("span");let r=e.firstChild;i.forEach((c,d)=>{d===0?n.appendChild(c):i[d-1].appendChild(c)});const a=i[i.length-1];for(;r;){const c=r.nextSibling;a.appendChild(r),r=c}e.appendChild(n)}}}function wx(s,e){if(e.length>0)if(/\?/.test(s)){const t=s.split("?");s=t[0]+"?"+e+"&"+t[1]}else s+="?"+e;return s}function kx(s,e){let t="";s.get("height")&&(t+="height:"+s.get("height")+";"),s.get("minHeight")&&(t+="min-height:"+s.get("minHeight")+";"),s.get("maxHeight")&&(t+="max-height:"+s.get("maxHeight")+";"),s.get("width")&&(t+="width:"+s.get("width")+";"),s.get("minWidth")&&(t+="min-width:"+s.get("minWidth")+";"),s.get("maxWidth")&&(t+="max-width:"+s.get("maxWidth")+";");let i="",n="",r="";e=t+e;const a=e.split(";");for(let c=0,d=a.length,u;c<d;c++)if(u=a[c].trim(),!!u){if(/^(min-|max-)?width\s*:/.test(u)||/^(z-index|position|display)\s*:/.test(u)){i+=u+";";continue}if(/^(min-|max-)?height\s*:/.test(u)){/^height/.test(u)&&u.split(":")[1].trim()==="auto"&&s.set("height","auto"),n+=u+";";continue}r+=u+";"}return{top:i,frame:n,editor:r}}function _x(s){let e="";if(s){const t=Ae.getElementsByTagName("link");for(let i=0,n=s.length,r;i<n;i++){r=[];const a=s[i];if(a==="*")for(let c=0,d=t.length;c<d;c++)t[c].rel==="stylesheet"&&t[c].href&&r.push(t[c].href);else if(/(^https?:\/\/)|(^data:text\/css,)/.test(a))r.push(a);else{const c=new RegExp(`(^|.*[\\/])${a}(\\..+)?.css((\\??.+?)|\\b)$`,"i");for(let d=0,u=t.length,f;d<u;d++)f=t[d].href.match(c),f&&r.push(f[0])}if(!r||r.length===0)throw new Error('[SUNEDITOR.constructor.iframe.fail] The suneditor CSS files installation path could not be automatically detected. Please set the option property "iframe_cssFileName" before creating editor instances.');for(let c=0,d=r.length;c<d;c++)e+='<link href="'+r[c]+'" rel="stylesheet">'}}return e}function Ex(s){return s==="auto"?`<style>
|
|
2
|
-
/** Iframe height auto */
|
|
3
|
-
body{height: min-content; overflow: hidden;}
|
|
4
|
-
</style>`:""}const Tx={htmlToJson:rx,jsonToHtml:u3,htmlToEntity:n1,entityToHTML:lx,debounce:ax,syncMaps:cx,mergeMaps:dx,getValues:ux,camelToKebabCase:h3,kebabToCamelCase:f3,toFontUnit:hx,nodeListToArray:fx,swapKeyValue:px,createElementWhitelist:mx,createElementBlacklist:gx,isHexColor:p3,rgb2hex:vx,getWidthInPercentage:yx,textToAnchor:Cx,spanToStyleNode:bx,addUrlQuery:wx,_setDefaultOptionStyle:kx,_setIframeStyleLinks:_x,_setAutoHeightStyle:Ex},Sx=Tx,xx=/(\s|^)(katex|MathJax|se-exclude-format)(\s|$)/;function m3(s){if(s==null)return!1;if(typeof s!="string"){if(Er(s)){const e=s.children;for(let t=0,i=e.length;t<i;t++){const n=e[t];if(!y3(n))return!1}}s=s.textContent}return s===""||c3.test(s)}function Mx(s,e,t){return t!=="end"&&e===0||(!t||t!=="front")&&!s.nodeValue&&e<=1||(!t||t==="end")&&s.nodeValue&&e>=s.nodeValue.length}function Bx(s){return(s==null?void 0:s.nodeType)===3}function Er(s){return(s==null?void 0:s.nodeType)===1}function Nx(s){return Er(s)&&/^(INPUT|TEXTAREA|SELECT|OPTION)$/i.test(s.nodeName)}function Lx(s){return Er(s)&&/^(BUTTON)$/i.test(s.nodeName)}function b0(s){return/^(OL|UL)$/i.test(typeof s=="string"?s:s==null?void 0:s.nodeName)}function Ax(s){return/^LI$/i.test(typeof s=="string"?s:s==null?void 0:s.nodeName)}function w0(s){return/^TABLE$/i.test(typeof s=="string"?s:s==null?void 0:s.nodeName)}function $x(s){return/^(TABLE|THEAD|TBODY|TR|TH|TD|COL)$/i.test(typeof s=="string"?s:s==null?void 0:s.nodeName)}function g3(s){return/^(TD|TH)$/i.test(typeof s=="string"?s:s==null?void 0:s.nodeName)}function Ox(s){return/^TR$/i.test(typeof s=="string"?s:s==null?void 0:s.nodeName)}function v3(s){return/^BR$/i.test(typeof s=="string"?s:s==null?void 0:s.nodeName)}function Vx(s){return/^A$/i.test(typeof s=="string"?s:s==null?void 0:s.nodeName)}function Rx(s){return/^(IMG|IFRAME|AUDIO|VIDEO|CANVAS)$/i.test(typeof s=="string"?s:s==null?void 0:s.nodeName)}function Ix(s){return/^IFRAME$/i.test(typeof s=="string"?s:s==null?void 0:s.nodeName)}function Dx(s){return/^FIGURE$/i.test(typeof s=="string"?s:s==null?void 0:s.nodeName)}function y3(s){return/^(BR|COLGROUP|COL|THEAD|TBODY|TFOOT|TR|AREA|BASE|EMBED|HR|IMG|INPUT|KEYGEN|LINK|META|PARAM|SOURCE|TRACK|WBR)$/i.test(typeof s=="string"?s:s==null?void 0:s.nodeName)}function Px(s){if(!(s!=null&&s.parentNode))return!0;const e=s;return!e.querySelector("IMG, IFRAME, AUDIO, VIDEO, CANVAS, TABLE")&&(e.children.length<=1||v3(e.firstElementChild))&&m3(e.textContent)}function C3(s){if((s==null?void 0:s.nodeType)!==1)return!1;const t=s.classList;return t?t.contains("se-component")||t.contains("se-flex-component"):!1}function jn(s){if((s==null?void 0:s.nodeType)!==1)return!1;const t=s.classList;return t?s.nodeName.toUpperCase()==="BODY"||t.contains("se-wrapper-wysiwyg")||t.contains("sun-editor-carrier-wrapper")||t.contains("se-wrapper"):!1}function Hx(s){return(s==null?void 0:s.nodeType)===1&&s.getAttribute("contenteditable")==="false"}function Fx(s){if((s==null?void 0:s.nodeType)!==1)return!1;const e=s;return/^SPAN$/i.test(e.nodeName)&&!e.className&&e.style.length===0}function Wx(s,e){if(s.nodeType===3&&e.nodeType===3)return!0;if(s.nodeType===3||e.nodeType===3)return!1;const t=s,i=e,n=t.style,r=i.style;let a=0;for(let f=0,p=n.length;f<p;f++)n[n[f]]===r[n[f]]&&a++;const c=t.classList,d=i.classList;let u=0;for(let f=0,p=c.length;f<p;f++)d.contains(c[f])&&u++;return a===r.length&&a===n.length&&u===d.length&&u===c.length}function zx(s){return xx.test(s==null?void 0:s.className)}function jx(s){return s==null?void 0:s.classList.contains("__se__uneditable")}function b3(s){return s==null?void 0:s.hasAttribute("data-important-disabled")}const Ux={isZeroWidth:m3,isEdgePoint:Mx,isText:Bx,isElement:Er,isInputElement:Nx,isButtonElement:Lx,isList:b0,isListCell:Ax,isTable:w0,isTableElements:$x,isTableCell:g3,isTableRow:Ox,isBreak:v3,isAnchor:Vx,isMedia:Rx,isIFrame:Ix,isFigure:Dx,isContentLess:y3,isEmptyLine:Px,isComponentContainer:C3,isWysiwygFrame:jn,isNonEditable:Hx,isSpanWithoutAttr:Fx,isSameAttributes:Wx,isExcludeFormat:zx,isUneditable:jx,isImportantDisabled:b3},Bs=Ux;function w3(s){const e=Object.prototype.toString.call(s);return e==="[object HTMLCollection]"||e==="[object NodeList]"||e==="[object Array]"}function qx(s){return Object.prototype.toString.call(s)==="[object HTMLImageElement]"}function Zx(s){const e=Object.prototype.toString.call(s);return e==="[object HTMLVideoElement]"||e==="[object HTMLAudioElement]"}function Gx(s){return Object.prototype.toString.call(s)==="[object HTMLIFrameElement]"}function Yx(s,e=!1){return s.cloneNode(e)}function k3(s,e,t){const i=Ae.createElement(s);if(e)for(const n in e)e[n]!==void 0&&e[n]!==null&&i.setAttribute(n,e[n]);return t&&(typeof t=="string"?i.innerHTML=t:typeof t=="object"&&i.appendChild(t)),i}function _3(s){return Ae.createTextNode(s||"")}function Kx(s,e){const t=s.attributes;if(!t)return"";let i="";for(let n=0,r=t.length;n<r;n++)e!=null&&e.includes(t[n].name)||(i+=t[n].name+'="'+n1(t[n].value)+'" ');return i}function Xx(s,e){if(!s||s.length===0)return null;e||(e=()=>!0);const t=[];for(let i=0,n=s.length,r;i<n;i++)r=s[i],e(r)&&t.push(r);return t}function Qx(s,e){if(!s||s.length===0)return null;e||(e=()=>!0);for(let t=0,i=s.length,n;t<i;t++)if(n=s[t],e(n))return n;return null}function Jx(s,e){for(let t=0;t<s.length;t++)if(s[t]===e)return!0;return!1}function qg(s,e){let t=-1;for(let i=0,n=s.length;i<n;i++)if(s[i]===e){t=i;break}return t}function eM(s,e){const t=qg(s,e);return t===-1?-1:t+1}function tM(s,e){const t=qg(s,e);return t===-1?-1:t-1}const sM=/(\s|^)(se-block-hover|se-block-dragging)(?=\s|$)/g;function E3(s,e,t){const i=s,n=e;if(n.style.length>0){const a=n.style;for(let c=0,d=a.length;c<d;c++)i.style[a[c]]=a[a[c]]}const r=n.attributes;for(let a=0,c=r.length,d;a<c;a++)if(d=r[a].name.toLowerCase(),t!=null&&t.includes(d)||!r[a].value)i.removeAttribute(d);else if(d!=="style")if(d==="class"){const u=r[a].value.replace(sM," ").replace(/\s+/g," ").trim();u?i.setAttribute("class",u):i.removeAttribute("class")}else i.setAttribute(r[a].name,r[a].value)}function iM(s,e){const t=e.cloneNode(!1);t.className=t.className.replace(/(\s|^)__se__format__[^\s]+/g,""),E3(s,t)}function nM(s){s&&("remove"in s&&typeof s.remove=="function"?s.remove():s.parentNode&&s.parentNode.removeChild(s))}function oM(s,e){if(s)if(typeof e=="string")if("outerHTML"in s)s.outerHTML=e;else{const t=k3("DIV");t.innerHTML=e,s.parentNode.replaceChild(t.firstChild,s)}else(e==null?void 0:e.nodeType)===1&&s.parentNode.replaceChild(e,s)}function rM(s,e){!s||!e||(s.textContent=e)}function lM(s,e,t){s=Array.isArray(s)?s:[s];for(let i=0,n=s.length,r;i<n;i++)r=s[i],r.style[e]=t,r.style.length===0&&r.removeAttribute("style")}function aM(s,e){if((s==null?void 0:s.nodeType)===1)return s.style[e]}function cM(s,e,t){for(let i=0,n=s.length;i<n;i++){const r=s[i];(t||!b3(r))&&(r.disabled=e),t&&(e?r.setAttribute("data-important-disabled",""):r.removeAttribute("data-important-disabled"))}}function o1(s,e){if(!(!s||s.nodeType!==1))return e.split("|").some(t=>s.classList.contains(t))}function lo(s,e){if(!s)return;const t=w3(s)?s:[s],i=e.split("|");for(let n=0,r=t.length;n<r;n++){const a=t[n];if(!(!a||a.nodeType!==1))for(const c of i)c&&a.classList.add(c)}}function ao(s,e){if(!s)return;const t=w3(s)?s:[s],i=e.split("|");for(let n=0,r=t.length;n<r;n++){const a=t[n];if(!(!a||a.nodeType!==1))for(const c of i)c&&a.classList.remove(c)}}function dM(s,e,t){if(!s||s.nodeType!==1)return;const i=s;i.classList.toggle(e,t),i.className.trim()||i.removeAttribute("class")}function uM(s,e,t=120){lo(s,e),he.setTimeout(()=>{ao(s,e)},t)}function Qi(s=Ae){return{w:s.documentElement.clientWidth,h:s.documentElement.clientHeight}}function hM(){return"visualViewport"in he?{top:he.visualViewport.pageTop,left:he.visualViewport.pageLeft,scale:he.visualViewport.scale}:{top:0,left:0,scale:1}}function fM(s,e,t){if(!s)return console.warn('"parentTarget" is not exist'),null;let i=s;const n=Ae.createElement("DIV");if(n.style.display="none",/body/i.test(i.nodeName)){const c=Ae.createElement("DIV"),d=i.attributes;for(let u=0,f=d.length;u<f;u++)c.setAttribute(d[u].name,d[u].value);c.innerHTML=i.innerHTML,i=c}else i=i.cloneNode(!0);n.appendChild(i),Ae.body.appendChild(n);const r=Array.from(i.querySelectorAll("*")),a=e?[i].concat(r):r;for(let c=0,d;d=a[c];c++){if(d.nodeType!==1)continue;const u=he.getComputedStyle(d),f=d.style;for(const p of t)f.setProperty(p,u.getPropertyValue(p)||"")}return Ae.body.removeChild(n),i}function pM(s,e=5e3){const t=s||Ae;return new Promise(i=>{const r=["img","video","audio","iframe"].flatMap(c=>Array.from(t.querySelectorAll(c)));if(r.length===0){i();return}const a=r.map(c=>{var d;if(qx(c)){if(c.complete)return Promise.resolve()}else if(Zx(c)){if(c.readyState>=2)return Promise.resolve()}else if(Gx(c))try{if(((d=c.contentDocument)==null?void 0:d.readyState)==="complete")return Promise.resolve()}catch(u){console.warn(["[SUNEDITOR] Iframe load error",u])}return new Promise(u=>{c.addEventListener("load",u,{once:!0}),c.addEventListener("error",u,{once:!0})})});Promise.race([Promise.all(a),new Promise(c=>he.setTimeout(c,e))]).then(()=>{i()})})}function mM(s){return Ae.documentElement.style.getPropertyValue(s)}function gM(s,e){Ae.documentElement.style.setProperty(s,e)}function vM(s){return`<span class="se-tooltip-inner"><span class="se-tooltip-text">${s}</span></span>`}const yM={clone:Yx,createElement:k3,createTextNode:_3,getAttributesToString:Kx,arrayFilter:Xx,arrayFind:Qx,arrayIncludes:Jx,getArrayIndex:qg,nextIndex:eM,prevIndex:tM,copyTagAttributes:E3,copyFormatAttributes:iM,removeItem:nM,changeElement:oM,changeTxt:rM,setStyle:lM,getStyle:aM,setDisabled:cM,hasClass:o1,addClass:lo,removeClass:ao,toggleClass:dM,flashClass:uM,getClientSize:Qi,getViewportSize:hM,applyInlineStylesAll:fM,waitForMediaLoad:pM,getRootCssVar:mM,setRootCssVar:gM,createTooltipInner:vM},Wa=yM;function T3(s){let e=0;for(;s=s.previousSibling;)e+=1;return e}function k0(s,e,t){const i=[];let n=!0;return r1(s,r=>{if(r===e&&(n=!1),n&&!Bs.isWysiwygFrame(r)){if(t&&r.nodeType===3){let a=null,c=null;t.s=t.e=0;let d=r.previousSibling;for(;(d==null?void 0:d.nodeType)===3;)c=d.textContent.replace(C0,""),t.s+=c.length,r.textContent=c+r.textContent,a=d,d=d.previousSibling,Wa.removeItem(a);let u=r.nextSibling;for(;(u==null?void 0:u.nodeType)===3;)c=u.textContent.replace(C0,""),t.e+=c.length,r.textContent+=c,a=u,u=u.nextSibling,Wa.removeItem(a)}i.push(r)}return!1}),i.map(T3).reverse()}function _0(s,e){let t=e,i;for(let n=0,r=s.length;n<r&&(i=t.childNodes,i.length!==0);n++)i.length<=s[n]?t=i[i.length-1]:t=i[s[n]];return t}function CM(s,e){let t=null;if(!s)return t;const i=s;return!i.children||i.children.length===0||(e||(e=()=>!0),function n(r){if(i!==r&&e(r))return t=r,!0;if(r.children)for(let a=0,c=r.children.length;a<c;a++)n(r.children[a])}(i)),t}function bM(s,e,t){const i=[];if(t??(t=1/0),!s||t<=0)return i;const n=s;return!n.children||n.children.length===0||(e||(e=()=>!0),function r(a,c){if(!(c>t)&&(c>0&&n!==a&&e(a)&&i.push(a),c!==t&&a.children))for(let d=0,u=a.children.length;d<u;d++)r(a.children[d],c+1)}(n,0)),i}function S3(s,e,t){const i=[];return t??(t=1/0),!s||t<=0||s.childNodes.length===0||(e||(e=()=>!0),function n(r,a){if(a>t||(a>0&&e(r)&&i.push(r),a===t))return;const c=r.childNodes;for(let d=0,u=c.length;d<u;d++)n(c[d],a+1)}(s,0)),i}function Ic(s){if(!s||Bs.isWysiwygFrame(s))return-1;let e=0;for(s=s.parentNode;s&&!Bs.isWysiwygFrame(s);)e+=1,s=s.parentNode;return e}function wM(s,e){const t=e?1:-1,i=t*-1;s.sort(function(n,r){if(!Bs.isListCell(n)||!Bs.isListCell(r))return 0;const a=Ic(n),c=Ic(r);return a>c?t:a<c?i:0})}function kM(s,e){let t=s,i=e;const n=Ic(s),r=Ic(e);if(n>r){let u=n-r;for(;u>0&&t;)t=t.parentElement,u--}else if(r>n){let u=r-n;for(;u>0&&i;)i=i.parentElement,u--}for(;t&&i&&t.parentElement!==i.parentElement;)t=t.parentElement,i=i.parentElement;if(!(t!=null&&t.parentNode)||!(i!=null&&i.parentNode))return{ancestor:null,a:s,b:e,result:0};const a=t.parentNode.childNodes,c=Wa.getArrayIndex(a,t),d=Wa.getArrayIndex(a,i);return{ancestor:t.parentElement,a:t,b:i,result:c>d?1:c<d?-1:0}}function r1(s,e,t){let i;if(typeof e=="function")i=e;else if(typeof e=="object")i=r=>r===e;else{let r;/^\./.test(e)?(r="className",e="(\\s|^)"+e.split(".")[1]+"(\\s|$)"):/^#/.test(e)?(r="id",e="^"+e.split("#")[1]+"$"):/^:/.test(e)?(r="name",e="^"+e.split(":")[1]+"$"):(r="nodeName",e="^"+e+"$");const a=new RegExp(e,"i");i=c=>a.test(c[r])}t||(t=1/0);let n=0;for(;s&&!i(s);){if(n>=t||Bs.isWysiwygFrame(s))return null;s=s.parentElement,n++}return s}function _M(s,e,t){let i;if(typeof e=="function")i=e;else if(typeof e=="object")i=a=>a===e;else{let a;/^\./.test(e)?(a="className",e="(\\s|^)"+e.split(".")[1]+"(\\s|$)"):/^#/.test(e)?(a="id",e="^"+e.split("#")[1]+"$"):/^:/.test(e)?(a="name",e="^"+e.split(":")[1]+"$"):(a="nodeName",e="^"+e+"$");const c=new RegExp(e,"i");i=d=>c.test(d[a])}const n=[];t||(t=1/0);let r=0;for(;r<=t&&s&&!Bs.isWysiwygFrame(s);)i(s)&&n.push(s),s=s.parentElement,r++;return n}function EM(s){let e=s;for(;e&&!/^(UL)$/i.test(e.nodeName)&&!Wa.hasClass(e,"sun-editor");){if(e.hasAttribute("data-command"))return e;e=e.parentElement}return null}function TM(s){return s.target}function SM(s,e,t){let i;if(typeof e=="function")i=e;else if(typeof e=="object")i=function(r){return r===e};else{let r;/^\./.test(e)?(r="className",e="(\\s|^)"+e.split(".")[1]+"(\\s|$)"):/^#/.test(e)?(r="id",e="^"+e.split("#")[1]+"$"):/^:/.test(e)?(r="name",e="^"+e.split(":")[1]+"$"):(r="nodeName",e="^"+(e==="text"?"#"+e:e)+"$");const a=new RegExp(e,"i");i=function(c){return a.test(c[r])}}const n=S3(s,r=>i(r),null);return n[t?n.length-1:0]}function xM(s,e){if(s){for(e||(e=s);s&&s.nodeType===1&&s.childNodes.length>0&&!Bs.isBreak(s);)s=s.firstChild;for(;e&&e.nodeType===1&&e.childNodes.length>0&&!Bs.isBreak(e);)e=e.lastChild;return{sc:s,ec:e||s}}}function MM(s,e){let t=s.previousSibling;if(!t){for(let i=s.parentNode;i;i=i.parentNode){if(i===e)return null;if(i.previousSibling){t=i.previousSibling;break}}if(!t)return null}if(Bs.isNonEditable(t))return t;for(;t.lastChild;)t=t.lastChild;return t}function BM(s,e){let t=s.nextSibling;if(!t){for(let i=s.parentNode;i;i=i.parentNode){if(i===e)return null;if(i.nextSibling){t=i.nextSibling;break}}if(!t)return null}if(Bs.isNonEditable(t))return t;for(;t.firstChild;)t=t.firstChild;return t}function NM(s,e,t,i){if(!s)return 0;i||(i=()=>!0);let n=0,r=!1;return function a(c){if(!(r||c.nodeType===8)&&!i(c)){if(c.nodeType===3){if(c===e){n+=t,r=!0;return}n+=c.textContent.length}else if(c.nodeType===1){const d=c.childNodes;for(let u=0,f=d.length;u<f;u++)if(a(d[u]),r)return}}}(s),n}function LM(s,e,t){if(!s)return 0;const i=s.textContent,n=new RegExp(`((\\u00A0|\\s){${t},})`,"g");let r;for(n.lastIndex=e;(r=n.exec(i))!==null;)if(r.index>=e){const a=r.index+r[0].length-1,d=(i.slice(0,a+1).match(/[^\u00A0\s]/g)||[]).length;return a+d+t}return 0}function AM(s){if(!s||s.length===0)return null;const e={};let t=null,i=-1,n=-1;for(const r of s){const c=r.parentElement.rowIndex,d=r.rowSpan||1,u=r.colSpan||1;e[c]||(e[c]=[]);let f=0;const p=e[c];for(;p[f];)f++;for(let y=0;y<u;y++)p[f+y]=!0;for(let y=1;y<d;y++){const v=c+y;e[v]||(e[v]=[]);for(let C=0;C<u;C++)e[v][f+C]=!0}const m=c+d-1,g=f+u-1;(m>i||m===i&&g>n)&&(i=m,n=g,t=r)}return t}function $M(s){const e=[];let t=s==null?void 0:s.parentElement;for(;t&&!/^(body|html)$/i.test(t.nodeName);){const i=he.getComputedStyle(t),{overflow:n,overflowX:r,overflowY:a}=i;[n,r,a].some(d=>["auto","scroll","overlay"].includes(d))&&e.push(t),t=t.parentElement}return e}function OM(s){var e;return((e=s.contentWindow)==null?void 0:e.document)||s.contentDocument}const VM={getPositionIndex:T3,getNodePath:k0,getNodeFromPath:_0,getChildNode:CM,getListChildren:bM,getListChildNodes:S3,getNodeDepth:Ic,sortNodeByDepth:wM,compareElements:kM,getParentElement:r1,getParentElements:_M,getCommandTarget:EM,getEventTarget:TM,getEdgeChild:SM,getEdgeChildNodes:xM,getPreviousDeepestNode:MM,getNextDeepestNode:BM,findTextIndexOnLine:NM,findTabEndIndex:LM,findVisualLastCell:AM,getScrollParents:$M,getIframeDocument:OM},RM=VM,IM={query:RM,check:Bs,utils:Wa},DM=IM,x3="ArrowLeft|ArrowUp|ArrowRight|ArrowDown",M3="F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12",PM=x3.split("|"),HM="Backspace|Delete".split("|"),FM=`Backspace|Tab|Enter|ShiftLeft|ShiftRight|ControlLeft|ControlRight|AltLeft|AltRight|Pause|CapsLock|Escape|PageUp|PageDown|End|Home|${x3}|Insert|Delete|${M3}|NumLock|ScrollLock`.split("|"),WM="Backspace|Enter|Delete".split("|"),zM="Backspace|Enter|Delete".split("|"),jM=`ControlLeft|ControlRight|AltLeft|AltRight|Pause|CapsLock|Escape|Insert|${M3}|NumLock|ScrollLock`.split("|");function UM(s){return s.shiftKey||s.keyCode===16}function qM(s){const e=s.code;return s.ctrlKey||s.metaKey||e==="MetaLeft"||e==="MetaRight"}function ZM(s){return s.altKey}function GM(s){return s.isComposing||s.key==="Process"||s.keyCode===229}function YM(s){return s==="Backspace"}function KM(s){return s==="Tab"}function XM(s){return s==="Enter"}function QM(s){return s==="Escape"}function JM(s){return s==="Space"}function eB(s){return PM.includes(s)}function tB(s){return HM.includes(s)}function sB(s){return FM.includes(s)}function iB(s){return WM.includes(s)}function nB(s){return zM.includes(s)}function oB(s){return jM.includes(s)}const rB={isShift:UM,isCtrl:qM,isAlt:ZM,isComposing:GM,isBackspace:YM,isTab:KM,isEnter:XM,isEsc:QM,isSpace:JM,isDirectionKey:eB,isRemoveKey:tB,isNonTextKey:sB,isHistoryRelevantKey:iB,isDocumentTypeObserverKey:nB,isNonResponseKey:oB},lB=rB;async function aB(s){if(!o3)return console.error("Clipboard is not supported in this browser."),!1;let e="",t="";typeof s=="string"?(e=s,t=s):Er(s)?(s.querySelectorAll("iframe").forEach(i=>{const n=document.createElement("div"),r={};for(const a of Array.from(i.attributes))r[a.name]=a.value;n.setAttribute("data-se-iframe-holder","1"),n.setAttribute("data-se-iframe-holder-attrs",JSON.stringify(r)),n.innerText=`[iframe: ${i.src}]`,i.replaceWith(n)}),e=s.outerHTML,t=s.textContent):(e=s.textContent,t=s.textContent);try{await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([t],{type:"text/plain"})})])}catch{console.warn("[SUNEDITOR.copy.warn] This browser is not supported Clipboard API");try{await navigator.clipboard.writeText(t||cB(e))}catch(i){console.error("[SUNEDITOR.copy.fail] "+i)}}}function cB(s){const e=document.createElement("div");return e.innerHTML=s,e.textContent||e.innerText||""}const dB={write:aB},B3=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/i,uB=/^[\u200B\uFEFF]+$/;function Fr(s){const e=s.trim();return e===""||uB.test(e)}const hB={strong:"**",b:"**",em:"*",i:"*",del:"~~",s:"~~",mark:"=="};function rs(s){if(!s||s.length===0)return"";const e=[];for(let t=0;t<s.length;t++){const i=pi(s[t],"",!1);if(i){if(e.length>0){const n=e[e.length-1];n&&!n.endsWith(" ")&&!n.endsWith(`
|
|
5
|
-
`)&&!i.startsWith(" ")&&!i.startsWith(`
|
|
6
|
-
`)&&e.push(" ")}e.push(i)}}return e.join("")}function ic(s){return s?s.type==="text"?s.content||"":s.children?s.children.map(ic).join(""):"":""}function io(s){if(!s)return"";if(s.type==="text")return s.content||"";const{tag:e,attributes:t={},children:i=[]}=s,n=Object.entries(t).map(([c,d])=>`${c}="${d}"`).join(" "),r=n?`<${e} ${n}>`:`<${e}>`;if(B3.test(e))return r;const a=i.map(io).join("");return`${r}${a}</${e}>`}function wh(s,e){return s?s.split(`
|
|
7
|
-
`).map(t=>t?e+t:"").join(`
|
|
8
|
-
`)+`
|
|
9
|
-
`:""}function E0(s,e,t){var a;const i=s.children||[];let n="",r=1;for(const c of i){if(c.type!=="element"||c.tag!=="li")continue;const d=t?`${r}. `:"- ",u=c.children||[];let f="",p="";const m=e+" ".repeat(d.length);let g="";const y=u[0];y&&y.type==="element"&&y.tag==="input"&&((a=y.attributes)==null?void 0:a.type)==="checkbox"&&(g=y.attributes.checked!==void 0?"[x] ":"[ ] ");for(let v=0;v<u.length;v++){const C=u[v];if(v===0&&g)continue;if(C.type!=="element"){f+=pi(C,"",!1);continue}const w=C.tag;if(w==="ul"||w==="ol")p+=E0(C,m,w==="ol");else if(w==="table")p+=wh(T0(C),m);else if(w==="figure"){const k=(C.children||[]).find(_=>_.type==="element"&&_.tag==="table");k?p+=wh(T0(k),m):p+=wh(pi(C,"",!0),m)}else w==="blockquote"||w==="pre"?p+=wh(pi(C,"",!0),m):f+=pi(C,"",!1)}n+=`${e}${d}${g}${f.trim()}
|
|
10
|
-
`,p&&(n+=p),r++}return n}function T0(s){const e=[];let t=!1;function i(p,m){var g,y,v;for(const C of p.children||[])if(C.tag==="thead")i(C,!0);else if(C.tag==="tbody"||C.tag==="tfoot")i(C,!1);else if(C.tag==="tr"){const w=[];for(const _ of C.children||[])if(_.tag==="td"||_.tag==="th"){const M=rs(_.children).trim(),S=parseInt((g=_.attributes)==null?void 0:g.colspan,10)||1,x=parseInt((y=_.attributes)==null?void 0:y.rowspan,10)||1;w.push({content:M,colspan:S,rowspan:x})}const k=m||!t&&((v=C.children)==null?void 0:v.some(_=>_.tag==="th"));k&&(t=!0),e.push({cells:w,isHeader:k})}}if(i(s,!1),e.length===0)return"";const n=e.filter(p=>p.isHeader),r=e.filter(p=>!p.isHeader),a=[...n,...r];let c=0;for(const p of a){let m=0;for(const g of p.cells)m+=g.colspan;m>c&&(c=m)}const d=Array.from({length:a.length},()=>new Array(c).fill(null));for(let p=0;p<a.length;p++){let m=0;for(const g of a[p].cells){for(;m<c&&d[p][m]!==null;)m++;if(m>=c)break;for(let y=0;y<g.rowspan&&p+y<a.length;y++)for(let v=0;v<g.colspan&&m+v<c;v++)d[p+y][m+v]=y===0&&v===0?g.content:"";m+=g.colspan}for(let g=0;g<c;g++)d[p][g]===null&&(d[p][g]="")}let u="";if(n.length>0){u+="| "+d[0].join(" | ")+` |
|
|
11
|
-
`,u+="| "+d[0].map(()=>"---").join(" | ")+` |
|
|
12
|
-
`;for(let p=1;p<d.length;p++)u+="| "+d[p].join(" | ")+` |
|
|
13
|
-
`}else{u+="| "+new Array(c).fill(" ").join(" | ")+` |
|
|
14
|
-
`,u+="| "+new Array(c).fill("---").join(" | ")+` |
|
|
15
|
-
`;for(let p=0;p<d.length;p++)u+="| "+d[p].join(" | ")+` |
|
|
16
|
-
`}return u}function pi(s,e,t){var d,u,f;if(!s)return"";if(s.type==="text")return(s.content||"").replace(/[\u200B\uFEFF]/g,"");if(s.type!=="element")return"";const{tag:i,attributes:n={},children:r=[]}=s;if(i==="body")return r.map(p=>pi(p,"",!0)).join("");const a=/^h([1-6])$/.exec(i);if(a){const p=rs(r).trim();if(!p)return`
|
|
17
|
-
`;const m=parseInt(a[1],10);return`${"#".repeat(m)} ${p}
|
|
18
|
-
|
|
19
|
-
`}if(i==="p"){const p=rs(r);return p.trim()?`${p.trim()}
|
|
20
|
-
|
|
21
|
-
`:`
|
|
22
|
-
`}if(i==="br")return`
|
|
23
|
-
`;if(i==="hr")return`---
|
|
24
|
-
|
|
25
|
-
`;const c=hB[i];if(c){const p=rs(r);return`${c}${p}${c}`}if(i==="code"){const p=ic({children:r});return p.includes("`")?"`` "+p+" ``":"`"+p+"`"}if(i==="kbd")return`<kbd>${ic({children:r})}</kbd>`;if(i==="sub")return`<sub>${rs(r)}</sub>`;if(i==="sup")return`<sup>${rs(r)}</sup>`;if(i==="a"){const p=n.href||"",m=rs(r),g=n.title;return g?`[${m}](${p} "${g}")`:`[${m}](${p})`}if(i==="img"){const p=n.src||"";return``}if(i==="blockquote")return r.map(g=>pi(g,"",!0)).join("").replace(/\n$/,"").split(`
|
|
26
|
-
`).map(g=>`> ${g}`).join(`
|
|
27
|
-
`)+`
|
|
28
|
-
|
|
29
|
-
`;if(i==="pre"){let p="",m="";const g=r.find(y=>y.type==="element"&&y.tag==="code");return g?(p=(((d=g.attributes)==null?void 0:d.class)||"").replace(/^language-/,""),m=ic(g)):(p=((f=(((u=s.attributes)==null?void 0:u.class)||"").match(/language-(\S+)/))==null?void 0:f[1])||"",m=ic({children:r})),"```"+p+`
|
|
30
|
-
`+m+"\n```\n\n"}if(i==="details")return io(s)+`
|
|
31
|
-
|
|
32
|
-
`;if(i==="summary")return io(s);if(i==="ul")return E0(s,e,!1)+`
|
|
33
|
-
`;if(i==="ol")return E0(s,e,!0)+`
|
|
34
|
-
`;if(i==="table")return T0(s)+`
|
|
35
|
-
`;if(i==="dl"){let p="";for(const m of r)m.type==="element"&&(m.tag==="dt"?p+=rs(m.children).trim()+`
|
|
36
|
-
`:m.tag==="dd"&&(p+=": "+rs(m.children).trim()+`
|
|
37
|
-
`));return p+`
|
|
38
|
-
`}if(i==="dt"||i==="dd")return rs(r).trim();if(i==="div"){if(n.class&&/se-component/.test(n.class))return r.map(m=>pi(m,e,!0)).join("");const p=rs(r);return t?p+`
|
|
39
|
-
|
|
40
|
-
`:p}if(i==="span")return n.style||n.class?io(s):rs(r);if(i==="figure"){const p=r.map(m=>pi(m,e,!0)).join("");return/\n$/.test(p)?p:p+`
|
|
41
|
-
|
|
42
|
-
`}if(i==="figcaption"){const p=rs(r).trim();return p?p+`
|
|
43
|
-
|
|
44
|
-
`:""}return i==="video"||i==="audio"||i==="iframe"?io(s)+`
|
|
45
|
-
|
|
46
|
-
`:io(s)}function fB(s){return s?pi(s,"",!0).replace(/\n{3,}/g,`
|
|
47
|
-
|
|
48
|
-
`).trim()+`
|
|
49
|
-
`:""}function yr(s){if(!s)return"";const e=[];function t(i){return e.push(i),""+(e.length-1)+""}return s=s.replace(/\\([\\*_~`[\]()#!|{}<>+-])/g,(i,n)=>t(n)),s=s.replace(/``\s(.+?)\s``/g,(i,n)=>t("<code>"+n+"</code>")),s=s.replace(/`([^`]+)`/g,(i,n)=>t("<code>"+n+"</code>")),s=s.replace(/!\[([^\]]*)\]\(([^)\s]+)(?:\s+"([^"]*)")?\)/g,(i,n,r,a)=>t(a?`<img src="${r}" alt="${n}" title="${a}">`:`<img src="${r}" alt="${n}">`)),s=s.replace(/\[([^\]]+)\]\(([^)\s]+)(?:\s+"([^"]*)")?\)/g,(i,n,r,a)=>t(a?`<a href="${r}" title="${a}">${n}</a>`:`<a href="${r}">${n}</a>`)),s=s.replace(/<(https?:\/\/[^>]+)>/g,(i,n)=>t(`<a href="${n}">${n}</a>`)),s=s.replace(/<([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})>/g,(i,n)=>t(`<a href="mailto:${n}">${n}</a>`)),s=s.replace(new RegExp(`(?<![="'\\w/])(https?:\\/\\/[^\\s<>\\])"]+)`,"g"),(i,n)=>t(`<a href="${n}">${n}</a>`)),s=s.replace(/~~(.+?)~~/g,"<del>$1</del>"),s=s.replace(/\*{3}(.+?)\*{3}/g,"<strong><em>$1</em></strong>"),s=s.replace(/_{3}(.+?)_{3}/g,"<strong><em>$1</em></strong>"),s=s.replace(/\*{2}(.+?)\*{2}/g,"<strong>$1</strong>"),s=s.replace(/_{2}(.+?)_{2}/g,"<strong>$1</strong>"),s=s.replace(/\*(.+?)\*/g,"<em>$1</em>"),s=s.replace(new RegExp("(?<![a-zA-Z0-9])_(.+?)_(?![a-zA-Z0-9])","g"),"<em>$1</em>"),s=s.replace(/==(.+?)==/g,"<mark>$1</mark>"),s=s.replace(/\^([^\s^]+)\^/g,"<sup>$1</sup>"),s=s.replace(new RegExp("(?<!~)~([^\\s~]+)~(?!~)","g"),"<sub>$1</sub>"),s=s.replace(/\uFFFC(\d+)\uFFFC/g,(i,n)=>e[parseInt(n,10)]),s}function N3(s,e){var r;if(!s)return"";e||(e="p");const t=s.split(`
|
|
50
|
-
`),i=[];let n=0;for(;n<t.length;){const a=t[n];if(Fr(a)){n++;continue}const c=/^(`{3,}|~{3,})(\w*)/.exec(a);if(c){const f=c[1].charAt(0),p=c[1].length,m=c[2],g=[];n++;const y=new RegExp("^"+(f==="`"?"`":"~")+"{"+p+",}\\s*$");for(;n<t.length&&!y.test(t[n]);)g.push(t[n]),n++;n++;const v=m?` class="language-${m}"`:"";i.push(`<pre><code${v}>${pB(g.join(`
|
|
51
|
-
`))}</code></pre>`);continue}const d=/^(#{1,6})\s+(.+)/.exec(a);if(d){const f=d[1].length;i.push(`<h${f}>${yr(d[2].trim())}</h${f}>`),n++;continue}if(/^(\*{3,}|-{3,}|_{3,})\s*$/.test(a)){i.push("<hr>"),n++;continue}if(/^>\s?/.test(a)){const f=[];for(;n<t.length&&/^>\s?/.test(t[n]);)f.push(t[n].replace(/^>\s?/,"")),n++;const p=N3(f.join(`
|
|
52
|
-
`),e);i.push(`<blockquote>${p}</blockquote>`);continue}if(/^\|.*\|/.test(a)&&n+1<t.length&&/^\|[\s:]*-{3,}[\s:]*/.test(t[n+1])){const f=[];for(;n<t.length&&/^\|.*\|/.test(t[n]);)f.push(t[n]),n++;i.push(L3(f));continue}if(/^(\s*)([-*+])\s+/.test(a)){const f=S0(t,n,!1);i.push(f.html),n=f.index;continue}if(/^(\s*)\d+\.\s+/.test(a)){const f=S0(t,n,!0);i.push(f.html),n=f.index;continue}if(/^\s*<[a-zA-Z]/.test(a)){let f=a;if(n++,B3.test(((r=a.match(/<(\w+)/))==null?void 0:r[1])||"")){i.push(f);continue}for(;n<t.length&&!Fr(t[n]);)f+=`
|
|
53
|
-
`+t[n],n++;i.push(f);continue}const u=[];for(;n<t.length&&!Fr(t[n])&&!/^(#{1,6}\s|`{3,}|~{3,}|>|\||(\s*)([-*+]|\d+\.)\s|(\*{3,}|-{3,}|_{3,})\s*$)/.test(t[n]);)u.push(t[n]),n++;if(u.length>0){const f=yr(u.join(`
|
|
54
|
-
`));i.push(`<${e}>${f}</${e}>`)}else i.push(`<${e}>${yr(t[n])}</${e}>`),n++}return i.join("")}function L3(s){if(s.length<2)return"";const e=f=>f.replace(/^\|/,"").replace(/\|$/,"").split("|").map(p=>p.trim()),t=e(s[0]),n=e(s[1]).map(f=>{const p=f.trim();return/^:-+:$/.test(p)?"center":/^-+:$/.test(p)?"right":/^:-+$/.test(p)?"left":""}),r=s.slice(2).map(e),a=t.length,c=t.every(f=>f==="");let d="<table>";const u=f=>{const p=n[f];return p?` style="text-align: ${p};"`:""};if(!c){d+="<thead><tr>";for(let f=0;f<a;f++)d+=`<th${u(f)}>${yr(t[f])}</th>`;d+="</tr></thead>"}if(r.length>0||c){d+="<tbody>";for(const f of r){d+="<tr>";for(let p=0;p<a;p++)d+=`<td${u(p)}>${yr(f[p]||"")}</td>`;d+="</tr>"}d+="</tbody>"}return d+="</table>",d}function S0(s,e,t){const i=t?"ol":"ul",n=t?/^(\s*)\d+\.\s+(.*)/:/^(\s*)([-*+])\s+(.*)/;let r=`<${i}>`,a=e;const c=(s[a].match(/^(\s*)/)[1]||"").length;for(;a<s.length;){const d=s[a];if(Fr(d)){a++;continue}const u=(d.match(/^(\s*)/)[1]||"").length;if(u<c)break;if(u===c){if(!n.exec(d))break;const p=t?d.replace(/^\s*\d+\.\s+/,""):d.replace(/^\s*[-*+]\s+/,"");a++;let m=!1,g=!1,y=p;const v=/^\[([ xX])\]\s*(.*)/.exec(p);v&&(m=!0,g=v[1]!==" ",y=v[2]);let C="";for(;a<s.length;){const w=s[a];if(Fr(w)){a++;continue}if((w.match(/^(\s*)/)[1]||"").length<=c)break;if(/^\s*[-*+]\s+/.test(w)||/^\s*\d+\.\s+/.test(w)){const M=S0(s,a,/^\s*\d+\.\s+/.test(w));C+=M.html,a=M.index;continue}const _=w.trimStart();if(/^\|.*\|/.test(_)&&a+1<s.length&&/^\s*\|[\s:]*-{3,}/.test(s[a+1])){const M=[];for(;a<s.length;){const S=s[a];if(Fr(S)||(S.match(/^(\s*)/)[1]||"").length<=c||!/^\s*\|/.test(S))break;M.push(S.trimStart()),a++}C+=L3(M);continue}break}m?r+=`<li class="task-list-item">${g?'<input type="checkbox" checked disabled> ':'<input type="checkbox" disabled> '}${yr(y)}${C}</li>`:r+=`<li>${yr(p)}${C}</li>`}else break}return r+=`</${i}>`,{html:r,index:a}}function pB(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}const mB={jsonToMarkdown:fB,markdownToHtml:N3},gB=mB,vB=/<!--\[if[^>]*>[\s\S]*?<!\[endif\]-->/gi,yB=/<\/?(?:\w+:)\w+[^>]*>/gi,CB=/<xml>[\s\S]*?<\/xml>/gi,bB=/<style[^>]*>[\s\S]*?<\/style>/gi,wB=/\s*mso-[^:]+:[^;"]+;?/gi,kB=/l(\d+)\s+level(\d+)\s+lfo(\d+)/i,A3=/mso-list:\s*Ignore/i,_B=/\bMso\w+/g,EB=/\bxl\d+/g,TB=/\s*tab-stops:[^;"]+;?/gi,SB=/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25cf\u25cb\u25aa\u25a0·o§]\s*/,xB=[/^\s*[0-9]+[.)]\s/,/^\s*[a-z][.)]\s/i,/^\s*[ivxlmcd]+[.)]\s/i],MB=/<span\s+style\s*=\s*["']?\s*mso-spacerun:\s*yes\s*;?\s*["']?\s*>([\s\u00a0]*)<\/span>/gi,BB=/<span\s+style\s*=\s*["'][^"']*mso-tab-count:\s*\d+[^"']*["']\s*>[^<]*<\/span>/gi,NB=/mso-outline-level:\s*(\d+)/i,LB=/mso-highlight:\s*([^;"]+)/i,AB=/mso-level-number-format:\s*([^;\s]+)/i,$B=/mso-level-start-at:\s*(\d+)/i,OB=/mso-level-text:\s*([^;\s]+)/i,VB={decimal:"decimal","alpha-upper":"upper-alpha","alpha-lower":"lower-alpha","roman-upper":"upper-roman","roman-lower":"lower-roman","arabic-leading-zero":"decimal-leading-zero"},RB=/\s*margin:\s*0[a-z]*\s+0[a-z]*\s+0[a-z]*\s*;?/gi,IB=/\s*text-indent:\s*-?[\d.]+[a-z]*\s*;?/gi,DB=/\s*line-height:\s*normal\s*;?/gi,PB=/MsoHeading(\d)/i,$3=/^file:\/\/\//i,HB=/^_(Toc|Ref|Hlt|Hlk)\d+$/i,FB=/^#_(Toc|Ref|Hlt|Hlk)\d+$/i,WB=/page-break-before\s*:\s*always/i,zB=/mso-break-type\s*:\s*section-break/i,jB=/mso-column-break-before\s*:\s*always/i,UB=/^(?:Word)?Section\d+$/i;function qB(s){const e=new Map,t=s.match(/<style[^>]*>([\s\S]*?)<\/style>/i);if(!t)return e;const i=t[1],n=/@list\s+l(\d+):level(\d+)\s*\{([^}]*)\}/gi;let r;for(;(r=n.exec(i))!==null;){const a=r[1],c=r[2],d=r[3],u=`l${a}:level${c}`,f=AB.exec(d),p=$B.exec(d),m=OB.exec(d);let g="ol",y="";if(f){const v=f[1].toLowerCase();if(v==="bullet"||v==="image"){if(g="ul",m){const C=m[1].replace(/["%\\]/g,"");C==="·"||C==="·"?y="disc":C==="o"?y="circle":(C==="§"||C==="§")&&(y="square")}}else y=VB[v]||""}e.set(u,{type:g,listStyleType:y,startAt:p?parseInt(p[1],10):1})}return e}function ZB(s){const e=s.replace(/[\s\u00a0]+/g," ").trim();if(SB.test(e))return"ul";for(const t of xB)if(t.test(e))return"ol";return"ul"}function GB(s){const e=document.createTreeWalker(s,NodeFilter.SHOW_COMMENT,null),t=[];for(;e.nextNode();)t.push(e.currentNode);for(const n of t)n==null||n.remove();const i=s.querySelectorAll("span");for(const n of i){const r=n.getAttribute("style")||"";A3.test(r)&&n.remove()}s.firstChild&&s.firstChild.nodeType===3&&(s.firstChild.nodeValue=s.firstChild.nodeValue.replace(/^[\s\u00a0]+/,""))}function O3(s){const e=s.getAttribute("style");if(!e)return;let t=e;const i=LB.exec(t);i&&!/background-color/i.test(t)&&!/background\s*:/i.test(t)&&(t+=";background-color:"+i[1].trim()),t=t.replace(wB,"").replace(TB,"").replace(RB,"").replace(IB,"").replace(DB,"").trim(),t=t.replace(/^;+|;+$/g,"").replace(/;{2,}/g,";").trim(),t?s.setAttribute("style",t):s.removeAttribute("style")}function Zg(s){const e=s.getAttribute("class");if(!e)return;const t=e.replace(_B,"").replace(EB,"").trim();t?s.setAttribute("class",t):s.removeAttribute("class")}function YB(s){const e=s.querySelectorAll("span");for(let t=e.length-1;t>=0;t--){const i=e[t];if(!i.attributes.length||!i.getAttribute("style")&&!i.getAttribute("class")){const n=i.parentNode;if(n){for(;i.firstChild;)n.insertBefore(i.firstChild,i);n.removeChild(i)}}}}function KB(s,e){const t=s.body,i=[],n=t.querySelectorAll("p, h1, h2, h3, h4, h5, h6");for(const c of n){const d=c.getAttribute("style")||"",u=c.getAttribute("class")||"",f=kB.exec(d);(f||/MsoListParagraph/i.test(u))&&i.push({el:c,listId:f?f[1]:"0",level:f?parseInt(f[2],10):1,lfo:f?f[3]:"1"})}if(i.length===0)return;const r=[];let a=null;for(const c of i){const d=XB(c.el);a&&a.length>0&&d===a[a.length-1].el?a.push(c):(a=[c],r.push(a))}for(const c of r)QB(c,e)}function XB(s){let e=s.previousSibling;for(;e;){if(e.nodeType===1)return e;if(e.nodeType===3&&e.nodeValue.trim())return null;e=e.previousSibling}return null}function QB(s,e){for(const a of s){const c=`l${a.listId}:level${a.level}`,d=e.get(c);if(d)a.type=d.type,a.listStyleType=d.listStyleType,a.startAt=d.startAt;else{const u=JB(a.el);a.type=ZB(u),a.listStyleType="",a.startAt=1}}const t=s[0].el.parentNode,i=s[s.length-1].el.nextSibling,n=[];let r=null;for(const a of s){const{el:c,level:d,type:u,listStyleType:f,startAt:p}=a;GB(c),O3(c),Zg(c);const m=c.ownerDocument.createElement("li");for(;c.firstChild;)m.appendChild(c.firstChild);if(c.getAttribute("style")&&m.setAttribute("style",c.getAttribute("style")),n.length===0)r=I2(c.ownerDocument,u,f,p),r.appendChild(m),n.push({listEl:r,level:d});else{const g=n[n.length-1].level;if(d>g){const y=n[n.length-1].listEl.lastElementChild,v=I2(c.ownerDocument,u,f,p);v.appendChild(m),y?y.appendChild(v):n[n.length-1].listEl.appendChild(v),n.push({listEl:v,level:d})}else if(d<g){for(;n.length>1&&n[n.length-1].level>d;)n.pop();n[n.length-1].listEl.appendChild(m)}else n[n.length-1].listEl.appendChild(m)}c.remove()}r&&t.insertBefore(r,i)}function I2(s,e,t,i){const n=s.createElement(e);return t&&(n.style.listStyleType=t),e==="ol"&&i>1&&n.setAttribute("start",String(i)),n}function JB(s){var t;const e=s.querySelectorAll("span");for(const i of e){const n=i.getAttribute("style")||"";if(A3.test(n))return i.textContent||""}return((t=s.textContent)==null?void 0:t.substring(0,10))||""}function eN(s){const e=s.body.querySelectorAll("p");for(const t of e){const i=t.getAttribute("style")||"",n=t.getAttribute("class")||"";let r=0;const a=NB.exec(i);if(a&&(r=parseInt(a[1],10)),!r){const c=PB.exec(n);c&&(r=parseInt(c[1],10))}if(r>=1&&r<=6){const c=s.createElement("h"+r);for(;t.firstChild;)c.appendChild(t.firstChild);i&&c.setAttribute("style",i),t.replaceWith(c)}}}function tN(s){const e=s.body.querySelectorAll("table");for(const n of e){Zg(n),n.removeAttribute("cellspacing"),n.removeAttribute("cellpadding");const r=n.querySelectorAll("col");for(const c of r)c.remove();const a=n.querySelectorAll("colgroup");for(const c of a)c.children.length||c.remove()}const t=s.body.querySelectorAll("tr");for(const n of t)n.removeAttribute("height");const i=s.body.querySelectorAll("td, th");for(const n of i){const r=n.getAttribute("valign");if(r){n.removeAttribute("valign");const c=n.getAttribute("style")||"";/vertical-align/i.test(c)||n.setAttribute("style",(c?c+";":"")+"vertical-align:"+r)}const a=n.children;if(a.length===1&&a[0].tagName==="P"){const c=a[0],d=c.getAttribute("class")||"";if(/MsoNormal/i.test(d)||!d){for(;c.firstChild;)n.insertBefore(c.firstChild,c);c.remove()}}}}function sN(s){const e=s.body.querySelectorAll("del, .msoDel");for(const c of e)c.remove();const t=s.body.querySelectorAll("ins, .msoIns");for(let c=t.length-1;c>=0;c--){const d=t[c],u=d.parentNode;if(u){for(;d.firstChild;)u.insertBefore(d.firstChild,d);d.remove()}}const i=s.body.querySelectorAll('.MsoCommentReference, [style*="mso-comment-reference"]');for(const c of i)c.remove();const n=s.body.querySelectorAll(".MsoCommentText");for(const c of n)c.remove();const r=s.body.querySelectorAll('div[style*="mso-element:comment"]');for(const c of r)c.remove();const a=s.body.querySelectorAll('a[name^="_msocom"], a[name^="_msoanchor"]');for(const c of a)c.remove()}function iN(s){const e=s.body.querySelectorAll("a");for(let t=e.length-1;t>=0;t--){const i=e[t],n=i.getAttribute("href")||"",r=i.getAttribute("name")||"";if($3.test(n)){const a=i.parentNode;if(a){for(;i.firstChild;)a.insertBefore(i.firstChild,i);i.remove()}continue}if(HB.test(r)){const a=i.parentNode;if(a){if(i.childNodes.length)for(;i.firstChild;)a.insertBefore(i.firstChild,i);i.remove()}continue}if(FB.test(n)){const a=i.parentNode;if(a){for(;i.firstChild;)a.insertBefore(i.firstChild,i);i.remove()}continue}i.removeAttribute("v:shapes")}}function nN(s){const e=s.body.querySelectorAll("img");for(let t=e.length-1;t>=0;t--){const i=e[t],n=i.getAttribute("src")||"";if($3.test(n)){i.remove();continue}i.removeAttribute("v:shapes")}}function oN(s){const e=s.body.querySelectorAll("br");for(let i=e.length-1;i>=0;i--){const n=e[i],r=n.getAttribute("style")||"";if(WB.test(r)||zB.test(r)){n.remove();continue}if(jB.test(r)){n.remove();continue}n.removeAttribute("style"),n.removeAttribute("clear")}const t=s.body.querySelectorAll('div[class*="Section"]');for(let i=t.length-1;i>=0;i--){const n=t[i],r=n.getAttribute("class")||"";if(UB.test(r.trim())){const a=n.parentNode;if(a){for(;n.firstChild;)a.insertBefore(n.firstChild,n);n.remove()}}}}function rN(s){if(!s)return"";const e=qB(s);let t=s;t=t.replace(bB,""),t=t.replace(CB,""),t=t.replace(vB,""),t=t.replace(yB,""),t=t.replace(/<!--(?:Start|End)Fragment-->/gi,""),t=t.replace(/<(?:meta|link)[^>]*>/gi,""),t=t.replace(MB," "),t=t.replace(BB," "),t=t.replace(/( ){2,}/g," "),t=t.replace(/\u00AD/g,"");const i=new DOMParser().parseFromString(t,"text/html");sN(i),KB(i,e),eN(i),tN(i),iN(i),nN(i),oN(i);const n=i.body.querySelectorAll("*");for(const a of n){O3(a),Zg(a),a.getAttribute("lang")&&a.removeAttribute("lang"),a.removeAttribute("v:shapes");const c=a.tagName.toLowerCase();c!=="img"&&c!=="video"&&c!=="iframe"&&c!=="table"&&c!=="td"&&c!=="th"&&(a.removeAttribute("width"),a.removeAttribute("height"))}YB(i.body);const r=i.body.querySelectorAll("p");for(const a of r)!a.textContent.trim()&&!a.querySelector("img, video, iframe, br, table")&&a.remove();return i.body.innerHTML}const lN={cleanHTML:rN},me=zS,Ie=qS,Se=Sx,h=DM,Q=QS,xe=lB,aN=dB,l1=gB,cN=lN;/*!
|
|
55
|
-
* Toolbar icons are inlined SVGs sourced from:
|
|
56
|
-
* - Lucide — https://lucide.dev (ISC License, © Lucide Contributors)
|
|
57
|
-
* - Tabler — https://tabler.io/icons (MIT License, © Paweł Kuna)
|
|
58
|
-
* Both sets share a 24×24 grid and 2px round stroke, rendered via `.se-io`
|
|
59
|
-
* (fill:none; stroke:currentColor). No runtime dependency — SVGs are inlined.
|
|
60
|
-
*
|
|
61
|
-
* ── `se-io-sharp` (opt-in crispness) ────────────────────────────────────────
|
|
62
|
-
* Add `se-io-sharp` to the `class` (e.g. `class="se-io se-io-sharp"`) ONLY for
|
|
63
|
-
* outline icons dominated by axis-aligned STRAIGHT strokes — e.g. `split_cell`
|
|
64
|
-
* (divider line), `delete` (trash verticals + lid), `copy` (rectangle edges).
|
|
65
|
-
*
|
|
66
|
-
* Why: at the 18px display size a 24-grid / 2px stroke renders as ~1.5px. On
|
|
67
|
-
* fractional-DPR screens (Windows 125% → 1.25, 150% → 1.5) that lands on
|
|
68
|
-
* non-integer physical pixels, so straight strokes look soft — and can flicker
|
|
69
|
-
* sharp↔blurry when a neighbouring control repaints the shared compositor layer
|
|
70
|
-
* (the built-in controllers are popovers = top-layer). Curvy/diagonal icons
|
|
71
|
-
* hide this via anti-aliasing and do NOT need the class.
|
|
72
|
-
*
|
|
73
|
-
* How it works: the CSS rule `.se-io-sharp { transform: translateZ(0) }`
|
|
74
|
-
* (src/assets/suneditor.css) promotes just that icon to its own GPU layer, which
|
|
75
|
-
* is re-rasterised from the vector at device resolution instead of being scaled
|
|
76
|
-
* up from a wrongly-cached low-res bitmap. Promotion only affects the element it
|
|
77
|
-
* is applied to — putting it on a parent/controller does NOT sharpen children.
|
|
78
|
-
*
|
|
79
|
-
* Cost / guardrail: each promoted icon is a tiny static layer (~3–5 KB GPU mem,
|
|
80
|
-
* present only while its controller is open) — negligible. Keep it SCOPED to the
|
|
81
|
-
* few icons that visibly blur; do NOT blanket every icon (needless layers), and
|
|
82
|
-
* prefer `translateZ(0)` over `will-change: transform` (the latter keeps the
|
|
83
|
-
* layer alive permanently).
|
|
84
|
-
*/const D2={redo:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m15 14 5-5-5-5" /><path d="M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13" /></svg>',undo:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M9 14 4 9l5-5" /><path d="M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11" /></svg>',bold:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8" /></svg>',underline:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 4v6a6 6 0 0 0 12 0V4" /><line x1="4" x2="20" y1="20" y2="20" /></svg>',italic:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><line x1="19" x2="10" y1="4" y2="4" /><line x1="14" x2="5" y1="20" y2="20" /><line x1="15" x2="9" y1="4" y2="20" /></svg>',strike:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M16 4H9a3 3 0 0 0-2.83 4" /><path d="M14 12a4 4 0 0 1 0 8H6" /><line x1="4" x2="20" y1="12" y2="12" /></svg>',subscript:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m4 5 8 8" /><path d="m12 5-8 8" /><path d="M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07" /></svg>',superscript:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m4 19 8-8" /><path d="m12 19-8-8" /><path d="M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06" /></svg>',remove_color:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M10 2v2" /><path d="M14 2v4" /><path d="M17 2a1 1 0 0 1 1 1v9H6V3a1 1 0 0 1 1-1z" /><path d="M6 12a1 1 0 0 0-1 1v1a2 2 0 0 0 2 2h2a1 1 0 0 1 1 1v2.9a2 2 0 1 0 4 0V17a1 1 0 0 1 1-1h2a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1" /></svg>',remove_format:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 7V4h16v3" /><path d="M5 20h6" /><path d="M13 4 8 20" /><path d="m15 15 5 5" /><path d="m20 15-5 5" /></svg>',indent:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H11" /><path d="M21 12H11" /><path d="M21 19H11" /><path d="m3 8 4 4-4 4" /></svg>',outdent:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H11" /><path d="M21 12H11" /><path d="M21 19H11" /><path d="m7 8-4 4 4 4" /></svg>',expansion:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M8 3H5a2 2 0 0 0-2 2v3" /><path d="M21 8V5a2 2 0 0 0-2-2h-3" /><path d="M3 16v3a2 2 0 0 0 2 2h3" /><path d="M16 21h3a2 2 0 0 0 2-2v-3" /></svg>',reduction:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M8 3v3a2 2 0 0 1-2 2H3" /><path d="M21 8h-3a2 2 0 0 1-2-2V3" /><path d="M3 16h3a2 2 0 0 1 2 2v3" /><path d="M16 21v-3a2 2 0 0 1 2-2h3" /></svg>',code_block:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m10 9-3 3 3 3" /><path d="m14 15 3-3-3-3" /><rect x="3" y="3" width="18" height="18" rx="2" /></svg>',code_view:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m9 7-5 5 5 5" /><path d="m15 7 5 5-5 5" /></svg>',markdown_view:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 17V7l4 5 4-5v10" /><path d="M17 7v7" /><path d="M14 14l3 3l3-3" /></svg>',preview:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" /><circle cx="12" cy="12" r="3" /></svg>',print:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2" /><path d="M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6" /><rect x="6" y="14" width="12" height="8" rx="1" /></svg>',template:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M8 2v4" /><path d="M12 2v4" /><path d="M16 2v4" /><rect width="16" height="18" x="4" y="4" rx="2" /><path d="M8 10h6" /><path d="M8 14h8" /><path d="M8 18h5" /></svg>',layout:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M3 9h18" /><path d="M9 21V9" /></svg>',ai:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" /><path d="M20 2v4" /><path d="M22 4h-4" /><circle cx="4" cy="20" r="2" /></svg>',new_document:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /></svg>',select_all:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M8 9a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1l0 -6" /><path d="M12 20v.01" /><path d="M16 20v.01" /><path d="M8 20v.01" /><path d="M4 20v.01" /><path d="M4 16v.01" /><path d="M4 12v.01" /><path d="M4 8v.01" /><path d="M4 4v.01" /><path d="M8 4v.01" /><path d="M12 4v.01" /><path d="M16 4v.01" /><path d="M20 4v.01" /><path d="M20 8v.01" /><path d="M20 12v.01" /><path d="M20 16v.01" /><path d="M20 20v.01" /></svg>',line_height:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M3 8l3 -3l3 3" /><path d="M3 16l3 3l3 -3" /><path d="M6 5l0 14" /><path d="M13 6l7 0" /><path d="M13 12l7 0" /><path d="M13 18l7 0" /></svg>',paragraph_style:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M13 4v16" /><path d="M17 4v16" /><path d="M19 4H9.5a4.5 4.5 0 0 0 0 9H13" /></svg>',text_style:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M14 16.5a.5.5 0 0 0 .5.5h.5a2 2 0 0 1 0 4H9a2 2 0 0 1 0-4h.5a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5V8a2 2 0 0 1-4 0V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v3a2 2 0 0 1-4 0v-.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5Z" /></svg>',save:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z" /><path d="M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7" /><path d="M7 3v4a1 1 0 0 0 1 1h7" /></svg>',blockquote:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" /><path d="M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" /></svg>',arrow_down:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 9 6 6 6-6" /></svg>',align_justify:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 5h18" /><path d="M3 12h18" /><path d="M3 19h18" /></svg>',align_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H3" /><path d="M15 12H3" /><path d="M17 19H3" /></svg>',align_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H3" /><path d="M21 12H9" /><path d="M21 19H7" /></svg>',align_center:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H3" /><path d="M17 12H7" /><path d="M19 19H5" /></svg>',align_top:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 4l16 0" /><path d="M9 10a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8" /></svg>',align_middle:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 12l5 0" /><path d="M15 12l5 0" /><path d="M9 8a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8" /></svg>',align_bottom:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 20l16 0" /><path d="M9 6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8" /></svg>',format_float_none:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 6a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" /><path d="M4 15l16 0" /><path d="M4 19l16 0" /></svg>',format_float_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 6a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" /><path d="M14 7l6 0" /><path d="M14 11l6 0" /><path d="M4 15l16 0" /><path d="M4 19l16 0" /></svg>',format_float_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M14 6a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" /><path d="M4 7l6 0" /><path d="M4 11l6 0" /><path d="M4 15l16 0" /><path d="M4 19l16 0" /></svg>',format_float_center:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M9 6a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" /><path d="M4 7l1 0" /><path d="M4 11l1 0" /><path d="M19 7l1 0" /><path d="M19 11l1 0" /><path d="M4 15l16 0" /><path d="M4 19l16 0" /></svg>',font_color:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 16 6-12 6 12" /><path d="M8 12h8" /><path class="se-svg-color-helper" stroke-width="2.5" d="M4 20h16" /></svg>',background_color:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><g transform="translate(1 -2) scale(0.9)" stroke-width="2.22"><path d="m9 11-6 6v3h9l3-3" /><path d="m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4" /></g><path class="se-svg-color-helper" stroke-width="2.5" d="M4 20h16" /></svg>',list_bulleted:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 5h.01" /><path d="M3 12h.01" /><path d="M3 19h.01" /><path d="M8 5h13" /><path d="M8 12h13" /><path d="M8 19h13" /></svg>',list_numbered:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M11 5h10" /><path d="M11 12h10" /><path d="M11 19h10" /><path d="M4 4h1v5" /><path d="M4 9h2" /><path d="M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02" /></svg>',list_checked:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M13 5h8" /><path d="M13 12h8" /><path d="M13 19h8" /><path d="m3 17 2 2 4-4" /><rect x="3" y="4" width="6" height="6" rx="1" /></svg>',table:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 3v18" /><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M3 9h18" /><path d="M3 15h18" /></svg>',table_header:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14" /><path d="M9 3l-6 6" /><path d="M14 3l-7 7" /><path d="M19 3l-7 7" /><path d="M21 6l-4 4" /><path d="M3 10h18" /><path d="M10 10v11" /></svg>',table_properties:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M11.035 7.69a1 1 0 0 1 1.909.024l.737 1.452a1 1 0 0 0 .737.535l1.634.256a1 1 0 0 1 .588 1.806l-1.172 1.168a1 1 0 0 0-.282.866l.259 1.613a1 1 0 0 1-1.541 1.134l-1.465-.75a1 1 0 0 0-.912 0l-1.465.75a1 1 0 0 1-1.539-1.133l.258-1.613a1 1 0 0 0-.282-.866l-1.156-1.153a1 1 0 0 1 .572-1.822l1.633-.256a1 1 0 0 0 .737-.535z" /><rect x="3" y="3" width="18" height="18" rx="2" /></svg>',cell_properties:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M12 21h-7a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v7" /><path d="M3 10h18" /><path d="M10 3v18" /><path d="M17.001 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19.001 15.5v1.5" /><path d="M19.001 21v1.5" /><path d="M22.032 17.25l-1.299 .75" /><path d="M17.27 20l-1.3 .75" /><path d="M15.97 17.25l1.3 .75" /><path d="M20.733 20l1.3 .75" /></svg>',table_column:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M9 3v18" /><path d="M15 3v18" /></svg>',table_row:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M21 9H3" /><path d="M21 15H3" /></svg>',color_checked:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 6 9 17l-5-5" /></svg>',color_palette:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z" /><circle cx="13.5" cy="6.5" r=".5" fill="currentColor" /><circle cx="17.5" cy="10.5" r=".5" fill="currentColor" /><circle cx="6.5" cy="12.5" r=".5" fill="currentColor" /><circle cx="8.5" cy="7.5" r=".5" fill="currentColor" /></svg>',border_all:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12" /><path d="M4 12l16 0" /><path d="M12 4l0 16" /></svg>',border_inside:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 12l16 0" /><path d="M12 4l0 16" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M4 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 16l0 .01" /><path d="M20 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',border_horizontal:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 12l16 0" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M4 8l0 .01" /><path d="M12 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 16l0 .01" /><path d="M12 16l0 .01" /><path d="M20 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M12 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',border_vertical:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M12 4l0 16" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M4 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 12l0 .01" /><path d="M8 12l0 .01" /><path d="M16 12l0 .01" /><path d="M20 12l0 .01" /><path d="M4 16l0 .01" /><path d="M20 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',border_outside:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12" /><path d="M12 8l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M12 16l0 .01" /></svg>',border_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 20l0 -16" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M12 8l0 .01" /><path d="M20 8l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M20 12l0 .01" /><path d="M12 16l0 .01" /><path d="M20 16l0 .01" /><path d="M8 20l0 .01" /><path d="M12 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',border_top:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 4l16 0" /><path d="M4 8l0 .01" /><path d="M12 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 12l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M20 12l0 .01" /><path d="M4 16l0 .01" /><path d="M12 16l0 .01" /><path d="M20 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M12 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',border_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M20 4l0 16" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M4 8l0 .01" /><path d="M12 8l0 .01" /><path d="M4 12l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M4 16l0 .01" /><path d="M12 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M12 20l0 .01" /><path d="M16 20l0 .01" /></svg>',border_bottom:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M20 20l-16 0" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M4 8l0 .01" /><path d="M12 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 12l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M20 12l0 .01" /><path d="M4 16l0 .01" /><path d="M12 16l0 .01" /><path d="M20 16l0 .01" /></svg>',border_none:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M4 8l0 .01" /><path d="M12 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 12l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M20 12l0 .01" /><path d="M4 16l0 .01" /><path d="M12 16l0 .01" /><path d="M20 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M12 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',horizontal_line:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 12h14" /></svg>',show_blocks:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 3a2 2 0 0 0-2 2" /><path d="M19 3a2 2 0 0 1 2 2" /><path d="M21 19a2 2 0 0 1-2 2" /><path d="M5 21a2 2 0 0 1-2-2" /><path d="M9 3h1" /><path d="M9 21h1" /><path d="M14 3h1" /><path d="M14 21h1" /><path d="M3 9v1" /><path d="M21 9v1" /><path d="M3 14v1" /><path d="M21 14v1" /></svg>',cancel:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M18 6 6 18" /><path d="m6 6 12 12" /></svg>',selection_remove:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" ry="2" /><path d="m15 9-6 6" /><path d="m9 9 6 6" /></svg>',image:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" ry="2" /><circle cx="9" cy="9" r="2" /><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" /></svg>',image_thumbnail:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M15 8h.01" /><path d="M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12" /><path d="M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5" /><path d="M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3" /></svg>',video:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5" /><rect x="2" y="6" width="14" height="12" rx="2" /></svg>',video_thumbnail:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M7 3v18" /><path d="M3 7.5h4" /><path d="M3 12h18" /><path d="M3 16.5h4" /><path d="M17 3v18" /><path d="M17 7.5h4" /><path d="M17 16.5h4" /></svg>',link:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" /><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" /></svg>',link_rel:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M9 17H7A5 5 0 0 1 7 7h2" /><path d="M15 7h2a5 5 0 1 1 0 10h-2" /><line x1="8" x2="16" y1="12" y2="12" /></svg>',math:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2" /></svg>',unlink:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71" /><path d="m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71" /><line x1="8" x2="8" y1="2" y2="5" /><line x1="2" x2="5" y1="8" y2="8" /><line x1="16" x2="16" y1="19" y2="22" /><line x1="19" x2="22" y1="16" y2="16" /></svg>',merge_cell:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M3 7h1.948c1.913 0 3.705 .933 4.802 2.5a5.861 5.861 0 0 0 4.802 2.5h6.448" /><path d="M3 17h1.95a5.854 5.854 0 0 0 4.798 -2.5a5.854 5.854 0 0 1 4.798 -2.5h5.454" /><path d="M18 15l3 -3l-3 -3" /></svg>',split_cell:'<svg class="se-io se-io-sharp" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3"/><path d="M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3"/><line x1="12" x2="12" y1="4" y2="20"/></svg>',unmerge_cell:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M21 17h-5.397a5 5 0 0 1 -4.096 -2.133l-.514 -.734a5 5 0 0 0 -4.096 -2.133h-3.897" /><path d="M21 7h-5.395a5 5 0 0 0 -4.098 2.135l-.51 .73a5 5 0 0 1 -4.097 2.135h-3.9" /><path d="M18 10l3 -3l-3 -3" /><path d="M18 20l3 -3l-3 -3" /></svg>',caption:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="14" x="3" y="5" rx="2" ry="2" /><path d="M7 15h4M15 15h2M7 11h2M13 11h4" /></svg>',edit:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg>',delete:'<svg class="se-io se-io-sharp" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 11v6"/><path d="M14 11v6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/><path d="M3 6h18"/><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>',revert:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" /><path d="M3 3v5h5" /><path d="M12 7v5l4 2" /></svg>',auto_size:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" /><path d="M14 15H9v-5" /><path d="M16 3h5v5" /><path d="M21 3 9 15" /></svg>',resize:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 11v8a1 1 0 0 0 1 1h8m-9 -14v-1a1 1 0 0 1 1 -1h1m5 0h2m5 0h1a1 1 0 0 1 1 1v1m0 5v2m0 5v1a1 1 0 0 1 -1 1h-1" /><path d="M4 12h7a1 1 0 0 1 1 1v7" /></svg>',insert_row_below:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M20 6v4a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1" /><path d="M12 15l0 4" /><path d="M14 17l-4 0" /></svg>',insert_row_above:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 18v-4a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1" /><path d="M12 9v-4" /><path d="M10 7l4 0" /></svg>',insert_column_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M14 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1" /><path d="M5 12l4 0" /><path d="M7 10l0 4" /></svg>',insert_column_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M6 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1" /><path d="M15 12l4 0" /><path d="M17 10l0 4" /></svg>',delete_row:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M20 6v4a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1" /><path d="M10 16l4 4" /><path d="M10 20l4 -4" /></svg>',delete_column:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M6 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1" /><path d="M16 10l4 4" /><path d="M16 14l4 -4" /></svg>',fixed_column_width:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 12v-6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v6" /><path d="M10 18h-7" /><path d="M21 18h-7" /><path d="M6 15l-3 3l3 3" /><path d="M18 15l3 3l-3 3" /></svg>',rotate_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" /><path d="M3 3v5h5" /></svg>',rotate_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" /><path d="M21 3v5h-5" /></svg>',mirror_horizontal:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m3 7 5 5-5 5V7" /><path d="m21 7-5 5 5 5V7" /><path d="M12 20v2" /><path d="M12 14v2" /><path d="M12 8v2" /><path d="M12 2v2" /></svg>',mirror_vertical:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m17 3-5 5-5-5h10" /><path d="m17 21-5-5-5 5h10" /><path d="M4 12H2" /><path d="M10 12H8" /><path d="M16 12h-2" /><path d="M22 12h-2" /></svg>',checked:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 6 9 17l-5-5" /></svg>',line_break:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 4v7a4 4 0 0 1-4 4H4" /><path d="m9 10-5 5 5 5" /></svg>',audio:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M9 18V5l12-2v13" /><circle cx="6" cy="18" r="3" /><circle cx="18" cy="16" r="3" /></svg>',audio_thumbnail:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /><path d="M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0" /></svg>',image_gallery:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16" /><path d="M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2" /><circle cx="13" cy="7" r="1" fill="currentColor" /><rect x="8" y="2" width="14" height="14" rx="2" /></svg>',audio_gallery:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M16 5H3" /><path d="M11 12H3" /><path d="M11 19H3" /><path d="M21 16V5" /><circle cx="18" cy="16" r="3" /></svg>',video_gallery:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m12.296 3.464 3.02 3.956" /><path d="M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z" /><path d="M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" /><path d="m6.18 5.276 3.1 3.899" /></svg>',file_gallery:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8" /><path d="M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z" /><path d="M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1" /></svg>',file_browser:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" /></svg>',bookmark:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z" /></svg>',bookmark_anchor:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 6v16" /><path d="m19 13 2-1a9 9 0 0 1-18 0l2 1" /><path d="M9 11h6" /><circle cx="12" cy="4" r="2" /></svg>',download:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 15V3" /><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /><path d="m7 10 5 5 5-5" /></svg>',dir_ltr:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M10 3v11" /><path d="M10 9H7a1 1 0 0 1 0-6h8" /><path d="M14 3v11" /><path d="m18 14 4 4H2" /><path d="m22 18-4 4" /></svg>',dir_rtl:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M14 3v11" /><path d="M14 9h-3a3 3 0 0 1 0-6h9" /><path d="M18 3v11" /><path d="M22 18H2l4-4" /><path d="m6 22-4-4" /></svg>',dragHandle:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="9" cy="12" r="1" /><circle cx="9" cy="5" r="1" /><circle cx="9" cy="19" r="1" /><circle cx="15" cy="12" r="1" /><circle cx="15" cy="5" r="1" /><circle cx="15" cy="19" r="1" /></svg>',file_upload:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /><path d="M12 12v6" /><path d="m15 15-3-3-3 3" /></svg>',file_thumbnail:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /></svg>',file_plus:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /><path d="M9 15h6" /><path d="M12 18v-6" /></svg>',upload_tray:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 3v12" /><path d="m17 8-5-5-5 5" /><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /></svg>',folder:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /></svg>',plus:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 12h14" /><path d="M12 5v14" /></svg>',minus:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 12h14" /></svg>',selection:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 3a2 2 0 0 0-2 2" /><path d="M19 3a2 2 0 0 1 2 2" /><path d="M21 19a2 2 0 0 1-2 2" /><path d="M5 21a2 2 0 0 1-2-2" /><path d="M9 3h1" /><path d="M9 21h1" /><path d="M14 3h1" /><path d="M14 21h1" /><path d="M3 9v1" /><path d="M21 9v1" /><path d="M3 14v1" /><path d="M21 14v1" /></svg>',copy:'<svg class="se-io se-io-sharp" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="14" height="14" x="8" y="8" rx="2" ry="2" /><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></svg>',cut:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="6" cy="6" r="3" /><path d="M8.12 8.12 12 12" /><path d="M20 4 8.12 15.88" /><circle cx="6" cy="18" r="3" /><path d="M14.8 14.8 20 20" /></svg>',PDF:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4" /><path d="M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6" /><path d="M17 18h2" /><path d="M20 15h-3v6" /><path d="M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1" /></svg>',format_paint:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m14.622 17.897-10.68-2.913" /><path d="M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z" /><path d="M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15" /></svg>',drawing:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m11 10 3 3" /><path d="M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z" /><path d="M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031" /></svg>',eraser:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21" /><path d="m5.082 11.09 8.828 8.828" /></svg>',search:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m21 21-4.34-4.34" /><circle cx="11" cy="11" r="8" /></svg>',selection_search:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 7V5a2 2 0 0 1 2-2h2" /><path d="M17 3h2a2 2 0 0 1 2 2v2" /><path d="M21 17v2a2 2 0 0 1-2 2h-2" /><path d="M7 21H5a2 2 0 0 1-2-2v-2" /><circle cx="12" cy="12" r="3" /><path d="m16 16-1.9-1.9" /></svg>',embed:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 12h.01" /><path d="M16 12h.01" /><path d="m17 7 5 5-5 5" /><path d="m7 7-5 5 5 5" /><path d="M8 12h.01" /></svg>',finder:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H3" /><path d="M10 12H3" /><path d="M10 19H3" /><circle cx="17" cy="15" r="3" /><path d="m21 19-1.9-1.9" /></svg>',regex:'<svg class="se-ci" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M197-199q-56-57-86.5-130T80-482q0-80 30-153t87-130l57 57q-46 45-70 103.5T160-482q0 64 24.5 122.5T254-256l-57 57Zm140.5-58.5Q320-275 320-300t17.5-42.5Q355-360 380-360t42.5 17.5Q440-325 440-300t-17.5 42.5Q405-240 380-240t-42.5-17.5ZM519-440v-71l-61 36-40-70 61-35-61-35 40-70 61 36v-71h80v71l61-36 40 70-61 35 61 35-40 70-61-36v71h-80Zm244 241-57-57q46-45 70-103.5T800-482q0-64-24.5-122.5T706-708l57-57q56 57 86.5 130T880-482q0 80-30 153t-87 130Z"/></svg>',match_case:'<svg class="se-ci" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m131-252 165-440h79l165 440h-76l-39-112H247l-40 112h-76Zm139-176h131l-64-182h-4l-63 182Zm395 186q-51 0-81-27.5T554-342q0-44 34.5-72.5T677-443q23 0 45 4t38 11v-12q0-29-20.5-47T685-505q-23 0-42 9.5T610-468l-47-35q24-29 54.5-43t68.5-14q69 0 103 32.5t34 97.5v178h-63v-37h-4q-14 23-38 35t-53 12Zm12-54q35 0 59.5-24t24.5-56q-14-8-33.5-12.5T689-393q-32 0-50 14t-18 37q0 20 16 33t40 13Z"/></svg>',whole_word:'<svg class="se-ci" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M40-199v-200h80v120h720v-120h80v200H40Zm342-161v-34h-3q-13 20-35 31.5T294-351q-49 0-77-25.5T189-446q0-42 32.5-68.5T305-541q23 0 42.5 3.5T381-526v-14q0-27-18.5-43T312-599q-21 0-39.5 9T241-564l-43-32q19-27 48-41t67-14q62 0 95 29.5t33 85.5v176h-59Zm-66-134q-32 0-49 12.5T250-446q0 20 15 32.5t39 12.5q32 0 54.5-22.5T381-478q-14-8-32-12t-33-4Zm185 134v-401h62v113l-3 40h3q3-5 24-25.5t66-20.5q64 0 101 46t37 106q0 60-36.5 105.5T653-351q-41 0-62.5-18T563-397h-3v37h-59Zm143-238q-40 0-62 29.5T560-503q0 37 22 66t62 29q40 0 62.5-29t22.5-66q0-37-22.5-66T644-598Z"/></svg>',swap_vert:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m21 16-4 4-4-4" /><path d="M17 20V4" /><path d="m3 8 4-4 4 4" /><path d="M7 4v16" /></svg>',arrow_down_small:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 9 6 6 6-6" /></svg>',arrow_up_small:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m18 15-6-6-6 6" /></svg>',replaceText:'<svg class="se-ci" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" ><g stroke-width="0"></g><g stroke-linecap="round" stroke-linejoin="round"></g><g><path fill-rule="evenodd" clip-rule="evenodd" d="M3.221 3.739l2.261 2.269L7.7 3.784l-.7-.7-1.012 1.007-.008-1.6a.523.523 0 0 1 .5-.526H8V1H6.48A1.482 1.482 0 0 0 5 2.489V4.1L3.927 3.033l-.706.706zm6.67 1.794h.01c.183.311.451.467.806.467.393 0 .706-.168.94-.503.236-.335.353-.78.353-1.333 0-.511-.1-.913-.301-1.207-.201-.295-.488-.442-.86-.442-.405 0-.718.194-.938.581h-.01V1H9v4.919h.89v-.386zm-.015-1.061v-.34c0-.248.058-.448.175-.601a.54.54 0 0 1 .445-.23.49.49 0 0 1 .436.233c.104.154.155.368.155.643 0 .33-.056.587-.169.768a.524.524 0 0 1-.47.27.495.495 0 0 1-.411-.211.853.853 0 0 1-.16-.532zM9 12.769c-.256.154-.625.231-1.108.231-.563 0-1.02-.178-1.369-.533-.349-.355-.523-.813-.523-1.374 0-.648.186-1.158.56-1.53.374-.376.875-.563 1.5-.563.433 0 .746.06.94.179v.998a1.26 1.26 0 0 0-.792-.276c-.325 0-.583.1-.774.298-.19.196-.283.468-.283.816 0 .338.09.603.272.797.182.191.431.287.749.287.282 0 .558-.092.828-.276v.946zM4 7L3 8v6l1 1h7l1-1V8l-1-1H4zm0 1h7v6H4V8z"></path></g></svg>',relaceTextAll:'<svg class="se-ci" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g stroke-width="0"></g><g stroke-linecap="round" stroke-linejoin="round"></g><g><path fill-rule="evenodd" clip-rule="evenodd" d="M11.6 2.677c.147-.31.356-.465.626-.465.248 0 .44.118.573.353.134.236.201.557.201.966 0 .443-.078.798-.235 1.067-.156.268-.365.402-.627.402-.237 0-.416-.125-.537-.374h-.008v.31H11V1h.593v1.677h.008zm-.016 1.1a.78.78 0 0 0 .107.426c.071.113.163.169.274.169.136 0 .24-.072.314-.216.075-.145.113-.35.113-.615 0-.22-.035-.39-.104-.514-.067-.124-.164-.187-.29-.187-.12 0-.219.062-.297.185a.886.886 0 0 0-.117.48v.272zM4.12 7.695L2 5.568l.662-.662 1.006 1v-1.51A1.39 1.39 0 0 1 5.055 3H7.4v.905H5.055a.49.49 0 0 0-.468.493l.007 1.5.949-.944.656.656-2.08 2.085zM9.356 4.93H10V3.22C10 2.408 9.685 2 9.056 2c-.135 0-.285.024-.45.073a1.444 1.444 0 0 0-.388.167v.665c.237-.203.487-.304.75-.304.261 0 .392.156.392.469l-.6.103c-.506.086-.76.406-.76.961 0 .263.061.473.183.631A.61.61 0 0 0 8.69 5c.29 0 .509-.16.657-.48h.009v.41zm.004-1.355v.193a.75.75 0 0 1-.12.436.368.368 0 0 1-.313.17.276.276 0 0 1-.22-.095.38.38 0 0 1-.08-.248c0-.222.11-.351.332-.389l.4-.067zM7 12.93h-.644v-.41h-.009c-.148.32-.367.48-.657.48a.61.61 0 0 1-.507-.235c-.122-.158-.183-.368-.183-.63 0-.556.254-.876.76-.962l.6-.103c0-.313-.13-.47-.392-.47-.263 0-.513.102-.75.305v-.665c.095-.063.224-.119.388-.167.165-.049.315-.073.45-.073.63 0 .944.407.944 1.22v1.71zm-.64-1.162v-.193l-.4.068c-.222.037-.333.166-.333.388 0 .1.027.183.08.248a.276.276 0 0 0 .22.095.368.368 0 0 0 .312-.17c.08-.116.12-.26.12-.436zM9.262 13c.321 0 .568-.058.738-.173v-.71a.9.9 0 0 1-.552.207.619.619 0 0 1-.5-.215c-.12-.145-.181-.345-.181-.598 0-.26.063-.464.189-.612a.644.644 0 0 1 .516-.223c.194 0 .37.069.528.207v-.749c-.129-.09-.338-.134-.626-.134-.417 0-.751.14-1.001.422-.249.28-.373.662-.373 1.148 0 .42.116.764.349 1.03.232.267.537.4.913.4zM2 9l1-1h9l1 1v5l-1 1H3l-1-1V9zm1 0v5h9V9H3zm3-2l1-1h7l1 1v5l-1 1V7H6z"></path></g></svg>',menu_arrow_down:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 9 6 6 6-6" /></svg>',menu_arrow_up:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m18 15-6-6-6 6" /></svg>',menu_arrow_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m9 18 6-6-6-6" /></svg>',menu_arrow_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m15 18-6-6 6-6" /></svg>',side_menu_hamburger:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 5h16" /><path d="M4 12h16" /><path d="M4 19h16" /></svg>',side_menu_folder:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /></svg>',side_menu_folder_item:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" /></svg>',side_menu_item:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /></svg>',side_menu_folder_plus:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 10v6" /><path d="M9 13h6" /><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /></svg>',alert_outline:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="12" cy="12" r="10" /><line x1="12" x2="12" y1="8" y2="12" /><line x1="12" x2="12.01" y1="16" y2="16" /></svg>',more_media:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M7 3v18" /><path d="M3 7.5h4" /><path d="M3 12h18" /><path d="M3 16.5h4" /><path d="M17 3v18" /><path d="M17 7.5h4" /><path d="M17 16.5h4" /></svg>',more_gallery:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="7" height="7" x="3" y="3" rx="1" /><rect width="7" height="7" x="14" y="3" rx="1" /><rect width="7" height="7" x="14" y="14" rx="1" /><rect width="7" height="7" x="3" y="14" rx="1" /></svg>',more_folder:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /></svg>',more_list:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 5h.01" /><path d="M3 12h.01" /><path d="M3 19h.01" /><path d="M8 5h13" /><path d="M8 12h13" /><path d="M8 19h13" /></svg>',more_file:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /></svg>',more_view:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" /><circle cx="12" cy="12" r="3" /></svg>',more_page:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /><path d="M10 9H8" /><path d="M16 13H8" /><path d="M16 17H8" /></svg>',more_text:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 4v16" /><path d="M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2" /><path d="M9 20h6" /></svg>',more_paragraph:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M13 4v16" /><path d="M17 4v16" /><path d="M19 4H9.5a4.5 4.5 0 0 0 0 9H13" /></svg>',more_plus:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 12h14" /><path d="M12 5v14" /></svg>',more_horizontal:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="12" cy="12" r="1" /><circle cx="19" cy="12" r="1" /><circle cx="5" cy="12" r="1" /></svg>',more_vertical:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="12" cy="12" r="1" /><circle cx="12" cy="5" r="1" /><circle cx="12" cy="19" r="1" /></svg>',more_flag:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528" /></svg>',as_inline:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8,7L13,17H3L8,7M3,3H21V5H3V3M21,15V17H14V15H21M3,19H21V21H3V19Z" /></svg>',as_block:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,7L17,17H7L12,7M3,3H21V5H3V3M3,19H21V21H3V19Z" /></svg>',page_break:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m16 16-4 4-4-4" /><path d="M3 12h18" /><path d="m8 8 4-4 4 4" /></svg>',page_down:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 17V3" /><path d="m6 11 6 6 6-6" /><path d="M19 21H5" /></svg>',page_up:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 3h14" /><path d="m18 13-6-6-6 6" /><path d="M12 7v14" /></svg>',collapse_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M9 3v18" /><path d="m16 15-3-3 3-3" /></svg>',collapse_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M15 3v18" /><path d="m8 9 3 3-3 3" /></svg>',map:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z" /><path d="M15 5.764v15" /><path d="M9 3.236v15" /></svg>',magic_stick:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72" /><path d="m14 7 3 3" /><path d="M5 6v4" /><path d="M19 14v4" /><path d="M10 2v2" /><path d="M7 8H3" /><path d="M21 16h-4" /><path d="M11 3H9" /></svg>',open_in_new:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M15 3h6v6" /><path d="M10 14 21 3" /><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" /></svg>'};var V3={exports:{}};(function(s){(function(e,t){s.exports=e.document?t(e,!0):function(i){if(!i.document)throw new Error("SUNEDITOR_LANG a window with a document");return t(i)}})(typeof window<"u"?window:gs,function(e,t){const i={code:"en",align:"Align",alignBottom:"Align bottom",alignCenter:"Align center",alignJustify:"Align justify",alignLeft:"Align left",alignMiddle:"Align middle",alignRight:"Align right",alignTop:"Align top",anchor:"Anchor",asBlock:"As a block",asInline:"As a inline",asLink:"As a link",audio:"Audio",audioGallery:"Audio gallery",audio_modal_file:"Select from files",audio_modal_title:"Insert Audio",audio_modal_url:"Audio URL",autoSize:"Auto size",backgroundColor:"Background color",basic:"Basic",blockStyle:"Block style",bold:"Bold",border:"Border",border_all:"Border all",border_inside:"Border inside",border_horizontal:"Border horizontal",border_vertical:"Border vertical",border_outside:"Border outside",border_left:"Border left",border_top:"Border top",border_right:"Border right",border_bottom:"Border bottom",border_none:"Border none",bulletedList:"Bulleted list",cancel:"Cancel",caption:"Insert description",cellProperties:"Cell properties",center:"Center",close:"Close",codeView:"Code view",color:"Color",colorPicker:"Color picker",column:"Column",comment:"Comments",commentAdd:"Add comment",commentShow:"Show comments",copy:"Copy",copyFormat:"Paint Formatting",cut:"Cut",default:"Default",deleteColumn:"Delete column",deleteRow:"Delete row",dir_ltr:"Left to right",dir_rtl:"Right to left",download:"Download",drag:"Drag",drawing:"Drawing",drawing_modal_title:"Drawing",edit:"Edit",embed:"Embed",embed_modal_title:"Embed",embed_modal_source:"Embed Source / URL",exportPDF:"Export to PDF",exportWord:"Export to Word",find:"Find",decrease:"Decrease",increase:"Increase",fileBrowser:"File browser",fileGallery:"File gallery",fileUpload:"File upload",fixedColumnWidth:"Fixed column width",font:"Font",fontColor:"Font color",fontSize:"Size",formats:"Formats",fullScreen:"Full screen",height:"Height",horizontalLine:"Horizontal line",horizontalSplit:"Horizontal split",hr_dashed:"Dashed",hr_dotted:"Dotted",hr_solid:"Solid",id:"ID",image:"Image",imageGallery:"Image gallery",image_modal_altText:"Alternative text",image_modal_file:"Select from files",image_modal_title:"Insert image",image_modal_url:"Image URL",importWord:"Import from Word",indent:"Indent",inlineStyle:"Inline style",insertColumnAfter:"Insert column after",insertColumnBefore:"Insert column before",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertLine:"Insert line",italic:"Italic",layout:"Layout",left:"Left",lineHeight:"Line height",link:"Link",link_modal_bookmark:"Bookmark",link_modal_downloadLinkCheck:"Download link",link_modal_newWindowCheck:"Open in new window",link_modal_text:"Text to display",link_modal_title:"Insert Link",link_modal_url:"URL to link",link_modal_relAttribute:"Rel attribute",list:"List",markdownView:"Markdown view",math:"Math",math_modal_fontSizeLabel:"Font Size",math_modal_inputLabel:"Mathematical Notation",math_modal_previewLabel:"Preview",math_modal_title:"Math",maxSize:"Max size",mediaGallery:"Media gallery",menu_bordered:"Bordered",menu_code:"Code",menu_neon:"Neon",menu_shadow:"Shadow",menu_spaced:"Spaced",menu_translucent:"Translucent",mergeCells:"Merge cells",minSize:"Min size",mirrorHorizontal:"Mirror, Horizontal",mirrorVertical:"Mirror, Vertical",newDocument:"New document",numberedList:"Numbered list",outdent:"Outdent",pageBreak:"Page break",pageDown:"Page down",pageNumber:"Page number",pageUp:"Page up",paragraphStyle:"Paragraph style",preview:"Preview",print:"print",proportion:"Constrain proportions",ratio:"Ratio",redo:"Redo",remove:"Remove",removeFormat:"Remove Format",replace:"Replace",replaceAll:"Replace all",resize100:"Zoom 100%",resize25:"Zoom 25%",resize50:"Zoom 50%",resize75:"Zoom 75%",resize:"Resize",revert:"Revert",revisionHistory:"Revision History",right:"Right",rotateLeft:"Rotate left",rotateRight:"Rotate right",row:"Row",save:"Save",search:"Search",selectAll:"Select All",showBlocks:"Show blocks",size:"Size",splitCells:"Split cells",strike:"Strike",submitButton:"Submit",subscript:"Subscript",superscript:"Superscript",table:"Table",tableHeader:"Table header",tableProperties:"Table properties",tags:"Tags",tag_blockquote:"Quote",codeBlock:"Code Block",tag_div:"Normal (DIV)",tag_h:"Header",tag_p:"Paragraph",tag_pre:"Code",template:"Template",textStyle:"Text style",title:"Title",underline:"Underline",undo:"Undo",unmergeCells:"Unmerge cells",unlink:"Unlink",verticalSplit:"Vertical split",video:"Video",videoGallery:"Video gallery",video_modal_file:"Select from files",video_modal_title:"Insert Video",video_modal_url:"Media embed URL, YouTube/Vimeo",width:"Width",codeLanguage:"Language",codeLanguage_none:"None",finder_matchCase:"Match Case",finder_wholeWord:"Whole Word",finder_regex:"Regular Expression",finder_prev:"Previous Match",finder_next:"Next Match",message_copy_success:"Copied to clipboard",message_copy_fail:"Copy failed. Please copy manually."};return typeof t>"u"&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"en",{enumerable:!0,writable:!0,configurable:!0,value:i})),i})})(V3);var dN=V3.exports;const uN=x9(dN);function hN(s,e,t,i,n){const r=new Map([["menuTray",t],["toolbar_main",s],["toolbar_buttonTray",s.querySelector(".se-btn-tray")],["toolbar_arrow",s.querySelector(".se-arrow")]]);return i&&(r.set("toolbar_sub_main",i),r.set("toolbar_sub_buttonTray",i.querySelector(".se-btn-tray")),r.set("toolbar_sub_arrow",i.querySelector(".se-arrow")),r.set("toolbar_sub_wrapper",i.parentElement.parentElement)),e&&(r.set("toolbar_wrapper",e.querySelector(".sun-editor")),r.set("_stickyDummy",e.querySelector(".se-toolbar-sticky-dummy"))),n&&r.set("statusbar_wrapper",n.querySelector(".sun-editor")),r}function fN(s,e,t,i,n,r,a,c,d,u,f){const p=new Map([["key",f],["options",s.options],["originElement",s.target],["topArea",e],["container",e.querySelector(".se-container")],["wrapper",e.querySelector(".se-wrapper")],["wysiwygFrame",t],["wysiwyg",t],["codeWrapper",i],["code",n],["codeNumbers",i==null?void 0:i.querySelector(".se-code-view-line")],["markdownWrapper",r],["markdown",a],["markdownNumbers",r==null?void 0:r.querySelector(".se-markdown-view-line")],["lineBreaker_t",e.querySelector(".se-line-breaker-component-t")],["lineBreaker_b",e.querySelector(".se-line-breaker-component-b")],["blockHandleArea",u],["blockHandle",(u==null?void 0:u.querySelector(".se-block-handle"))||null],["blockHandlePlus",(u==null?void 0:u.querySelector(".se-block-handle-plus"))||null],["blockHandleDrag",(u==null?void 0:u.querySelector(".se-block-handle-drag"))||null],["_stickyDummy",e.querySelector(".se-toolbar-sticky-dummy")],["_toolbarShadow",e.querySelector(".se-toolbar-shadow")],["_minHeight",i1(t.style.minHeight||"65",0)],["isCodeView",!1],["isMarkdownView",!1],["isFullScreen",!1],["isReadOnly",!1],["isDisabled",!1],["isChanged",!1],["historyIndex",-1],["savedIndex",-1],["documentTypeInner",d.inner],["documentTypePage",d.page],["documentTypePageMirror",d.pageMirror]]);c&&x0(c,p);const m=e.querySelector(".se-placeholder");m&&p.set("placeholder",m);const g=s.options.get("placeholder_line");return g&&p.set("placeholder_line",g),p}function x0(s,e){s?e.set("statusbar",s):e.delete("statusbar");const t=s?s.querySelector(".se-navigation"):null,i=s?s.querySelector(".se-char-counter-wrapper"):null,n=s?s.querySelector(".se-char-counter-wrapper .se-char-counter"):null;t?e.set("navigation",t):e.delete("navigation"),i?e.set("charWrapper",i):e.delete("charWrapper"),n?e.set("charCounter",n):e.delete("charCounter");const r=s?s.querySelector(".se-word-counter-wrapper"):null,a=s?s.querySelector(".se-word-counter-wrapper .se-word-counter"):null;r?e.set("wordWrapper",r):e.delete("wordWrapper"),a?e.set("wordCounter",a):e.delete("wordCounter")}const vt={BUTTON_LIST:[["undo","redo"],"|",["bold","underline","italic","strike","|","subscript","superscript"],"|",["removeFormat"],"|",["outdent","indent"],"|",["fullScreen","showBlocks","codeView"],"|",["preview","print"]],REQUIRED_FORMAT_LINE:"div",REQUIRED_ELEMENT_WHITELIST:"br|div",ELEMENT_WHITELIST:"p|pre|blockquote|h1|h2|h3|h4|h5|h6|ol|ul|li|hr|figure|figcaption|img|iframe|audio|video|source|table|colgroup|col|thead|tbody|tr|th|td|caption|a|b|strong|var|i|em|u|ins|s|span|strike|del|sub|sup|code|svg|path|details|summary",TEXT_STYLE_TAGS:"strong|span|font|b|var|i|em|u|ins|s|strike|del|sub|sup|mark|a|label|code|summary",SCOPE_SELECTION_TAGS:["td","table","li","ol","ul","pre","figcaption","blockquote","dl","dt","dd"],ATTRIBUTE_WHITELIST:"contenteditable|target|href|title|download|rel|src|alt|class|type|colspan|rowspan|width|height|controls|autoplay|loop|muted|poster|preload|playsinline|volume|crossorigin|disableRemotePlayback|controlsList|allowfullscreen|sandbox|loading|allow|referrerpolicy|frameborder|scrolling",FORMAT_LINE:"P|H[1-6]|LI|TH|TD|DETAILS",FORMAT_BR_LINE:"PRE",FORMAT_CLOSURE_BR_LINE:"",FORMAT_BLOCK:"BLOCKQUOTE|OL|UL|FIGCAPTION|TABLE|THEAD|TBODY|TR|CAPTION|DETAILS",FORMAT_CLOSURE_BLOCK:"TH|TD",ALLOWED_EMPTY_NODE_LIST:".se-component, pre, blockquote, hr, li, table, img, iframe, video, audio, canvas, details",SIZE_UNITS:["px","pt","em","rem"],CLASS_NAME:"^__se__|^se-|^katex|^MathJax|^language-",CLASS_MJX:"mjx-container|mjx-math|mjx-mrow|mjx-mi|mjx-mo|mjx-mn|mjx-msup|mjx-mfrac|mjx-munderover",EXTRA_TAG_MAP:{script:!1,style:!1,meta:!1,link:!1,"[a-z]+:[a-z]+":!1},CONTENT_STYLES:"background|background-clip|background-color|border|border-bottom|border-collapse|border-color|border-image|border-left-width|border-radius|border-right-width|border-spacing|border-style|border-top|border-width|box-shadow|box-sizing|caption-side|color|content|direction|display|position|float|font|font-family|font-size|font-style|font-weight|height|min-height|max-height|width|min-width|max-width|left|letter-spacing|line-height|list-style-position|list-style-type|margin|margin-block-end|margin-block-start|margin-bottom|margin-inline-end|margin-inline-start|margin-left|margin-right|margin-top|padding|padding-bottom|padding-inline-start|padding-left|padding-right|padding-top|outline|overflow|page-break-before|page-break-after|page-break-inside|rotate|rotateX|rotateY|table-layout|text-align|text-decoration|text-shadow|text-transform|top|text-indent|text-rendering|vertical-align|visibility|white-space|word-break|word-wrap",TAG_STYLES:{"@text":"font-family|font-size|color|background-color|width|height","@line":"text-align|margin|margin-left|margin-right|line-height","@component":"width|height|min-width","table|th|td":"border|border-[a-z]+|color|background-color|text-align|float|font-weight|text-decoration|font-style|vertical-align","table|td":"width",tr:"height",col:"width",caption:"text-align|caption-side","ol|ul":"list-style-type",figure:"display|width|height|padding|padding-bottom",figcaption:"margin|margin-top|margin-bottom|text-align","img|video|iframe":"transform|transform-origin|width|min-width|max-width|height|min-height|max-height|float|margin|margin-top",hr:""},RETAIN_STYLE_MODE:["repeat","always","none"]},t0={value:"fixed",placeholder:!0,placeholder_line:!0,editableFrameAttributes:!0,width:!0,minWidth:!0,maxWidth:!0,innerWidth:"fixed",height:!0,minHeight:!0,maxHeight:!0,editorStyle:!0,iframe:"fixed",iframe_fullPage:"fixed",iframe_attributes:!0,iframe_cssFileName:!0,statusbar:!0,statusbar_showPathLabel:!0,statusbar_resizeEnable:"fixed",charCounter:!0,charCounter_max:!0,charCounter_label:!0,charCounter_type:!0,wordCounter:!0,wordCounter_label:!0},pN={plugins:"fixed",excludedPlugins:"fixed",buttonList:"fixed",v2Migration:"fixed",strictMode:"fixed",mode:"fixed",blockHandle:"fixed",type:"fixed",theme:!0,lang:"fixed",fontSizeUnits:"fixed",allowedClassName:"fixed",closeModalOutsideClick:"fixed",copyFormatKeepOn:!0,syncTabIndent:!0,tabDisable:!0,autoLinkify:!0,autoStyleify:!0,retainStyleMode:!0,allowedExtraTags:"fixed",events:!0,__textStyleTags:"fixed",textStyleTags:"fixed",convertTextTags:"fixed",__tagStyles:"fixed",tagStyles:"fixed",textDirection:!0,reverseButtons:"fixed",historyStackDelayTime:!0,historyStackSize:"fixed",lineAttrReset:!0,printClass:!0,defaultLine:"fixed",defaultLineBreakFormat:!0,lineBreakClearStyle:!0,scopeSelectionTags:!0,__defaultElementWhitelist:"fixed",elementWhitelist:"fixed",elementBlacklist:"fixed",__defaultAttributeWhitelist:"fixed",attributeWhitelist:"fixed",attributeBlacklist:"fixed",__defaultFormatLine:"fixed",formatLine:"fixed",__defaultFormatBrLine:"fixed",formatBrLine:"fixed",__defaultFormatClosureBrLine:"fixed",formatClosureBrLine:"fixed",__defaultFormatBlock:"fixed",formatBlock:"fixed",__defaultFormatClosureBlock:"fixed",formatClosureBlock:"fixed",allowedEmptyTags:!0,toolbar_width:!0,toolbar_innerWidth:"fixed",toolbar_container:"fixed",toolbar_sticky:!0,toolbar_hide:!0,subToolbar:"fixed",statusbar_container:"fixed",shortcutsHint:!0,shortcutsDisable:"fixed",shortcuts:"fixed",fullScreenOffset:!0,previewTemplate:!0,printTemplate:!0,componentInsertBehavior:!0,defaultUrlProtocol:!0,allUsedStyles:"fixed",toastMessageTime:!0,icons:"fixed",freeCodeViewMode:!0,finder_panel:"fixed",finder_liveSearch:!0,__lineFormatFilter:!0,__pluginRetainFilter:!0,__listCommonStyle:"fixed",externalLibs:"fixed"},M0=me._d;let mN=0;function gN(s,e){typeof e!="object"&&(e={});const t={};if(e.plugins){const $=e.excludedPlugins||[],D=e.plugins,z=(Array.isArray(D)?D:Object.keys(D)).filter(q=>!$.includes(q)).map(q=>D[q]);for(let q=0,F=z.length,I;q<F;q++)I=z[q].default||z[q],t[I.key]=I}const i=I3(e,s,t),n=i.o,r=i.i,a=i.l,c=h.utils.createElement("DIV",{class:"se-loading-box sun-editor-common"},'<div class="se-loading-effect"></div>'),d="suneditor-"+ ++mN,u=h.utils.createElement("DIV",{class:"sun-editor sun-editor-carrier-wrapper sun-editor-common"+n.get("_themeClass")+(n.get("_rtl")?" se-rtl":"")}),f=h.utils.createElement("DIV",{class:"se-menu-tray",popover:"manual"});u.appendChild(f);const p=h.utils.createElement("INPUT",{type:"text",id:d+"-focus-temp",class:"__se__focus__temp__",autocomplete:"off","aria-hidden":"true",style:"position: fixed !important; top: -10000px !important; left: -10000px !important; display: block !important; width: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important;"});p.tabIndex=-1,u.appendChild(p);const m=h.utils.createElement("DIV",{class:"se-modal se-modal-area sun-editor-common",popover:"manual"}),g=h.utils.createElement("DIV",{class:"se-modal-back"}),y=h.utils.createElement("DIV",{class:"se-modal-inner"});m.appendChild(g),m.appendChild(y),u.appendChild(m);const v=h.utils.createElement("DIV",{class:"se-alert se-modal-area sun-editor-common",style:"display: none;",popover:"manual"}),C=h.utils.createElement("DIV",{class:"se-modal-back"}),w=h.utils.createElement("DIV",{class:"se-modal-inner"});v.appendChild(C),v.appendChild(w),u.appendChild(v),u.appendChild(h.utils.createElement("DIV",{class:"se-back-wrapper",popover:"manual"}));const k=c.cloneNode(!0);k.setAttribute("popover","manual"),u.appendChild(k);const _=h.utils.createElement("DIV",{class:"se-drag-cursor",popover:"manual"});u.appendChild(_),M0.body.appendChild(u);let M=null,S=null;const x=B0(i.buttons,t,n,r,a,!1),L=x.element;L.style.visibility="hidden",/inline/i.test(n.get("mode"))?(L.className+=" se-toolbar-inline",L.style.width=n.get("toolbar_width")):/balloon/i.test(n.get("mode"))&&(L.className+=" se-toolbar-balloon",L.style.width=n.get("toolbar_width"),L.appendChild(h.utils.createElement("DIV",{class:"se-arrow"}))),n.get("_toolbar_bottom")&&(L.className+=" se-toolbar-bottom"),i.subButtons&&(S=B0(i.subButtons,t,n,r,a,!1),M=S.element,M.style.visibility="hidden",M.className+=" se-toolbar-balloon se-toolbar-sub",M.style.width=n.get("toolbar_sub_width"),M.appendChild(h.utils.createElement("DIV",{class:"se-arrow"})));const B=s[0].key||null,N=[],O=new Map,A=i.statusbarContainer;let V=null;for(let $=0,D=s.length;$<D;$++){const z=s[$],q=i.frameMap.get(z.key),F=h.utils.createElement("DIV",{class:"sun-editor"+n.get("_themeClass")+(n.get("_rtl")?" se-rtl":"")}),I=h.utils.createElement("DIV",{class:"se-container"}),Z=!!n.get("blockHandle"),W=h.utils.createElement("DIV",{class:"se-wrapper"+(Z?" se-mode-block":"")+(n.get("type")==="document"?" se-type-document":"")+(n.get("_type_options").includes("header")?" se-type-document-header":"")}),Y=q.get("innerWidth");Y&&Y!=="auto"&&W.style.setProperty("--se-editor-inner-width",Y),I.appendChild(h.utils.createElement("DIV",{class:"se-toolbar-shadow"}));const ne=CN(z.key,n,F,q,d),J=ne.bottomBar.statusbar,j=ne.wysiwygFrame,se=ne.placeholder;let P=ne.codeView;const X=h.utils.createElement("DIV",{class:"se-line-breaker-component se-line-breaker-component-t",title:a.insertLine},r.line_break),pe=h.utils.createElement("DIV",{class:"se-line-breaker-component se-line-breaker-component-b",title:a.insertLine},r.line_break);W.appendChild(X),W.appendChild(pe),se&&W.appendChild(se),I.appendChild(h.utils.createElement("DIV",{class:"se-toolbar-sticky-dummy"})),I.appendChild(W),J&&(A?V||(A.appendChild(h.utils.createElement("DIV",{class:"sun-editor"+n.get("_themeClass")},J)),V=J):I.appendChild(J)),I.appendChild(c.cloneNode(!0));const fe=z.key||null;let Pe=null;if(n.get("buttons").has("codeView")){Pe=h.utils.createElement("DIV",{class:"se-code-wrapper"},P),Pe.style.setProperty("display","none","important"),W.appendChild(Pe);const Be=bN(n,q,P);if(P===Be){const Je=h.utils.createElement("TEXTAREA",{id:d+"-code-view-line-"+(fe||"default"),class:"se-code-view-line",readonly:"true",autocomplete:"off","aria-hidden":"true",tabindex:"-1"},null);Pe.insertBefore(Je,P)}else P=Be}let de=null,Me=null;if(n.get("buttons").has("markdownView")){Me=ne.markdownView;const Be=h.utils.createElement("TEXTAREA",{id:d+"-markdown-view-line-"+(fe||"default"),class:"se-markdown-view-line",readonly:"true",autocomplete:"off","aria-hidden":"true",tabindex:"-1"},null);de=h.utils.createElement("DIV",{class:"se-markdown-wrapper"}),de.appendChild(Be),de.appendChild(Me),de.style.setProperty("display","none","important"),W.appendChild(de)}const ye={inner:null,page:null,pageMirror:null};n.get("_type_options").includes("header")&&(ye.inner=h.utils.createElement("DIV",{class:"se-document-lines",style:`height: ${q.get("height")};`},'<div class="se-document-lines-inner"></div>')),n.get("_type_options").includes("page")&&(ye.page=h.utils.createElement("DIV",{class:"se-document-page"},null),ye.pageMirror=h.utils.createElement("DIV",{class:"sun-editor-editable se-document-page-mirror-a4",style:"position: absolute; width: 21cm; columns: 21cm; border: 0; overflow: hidden; height: auto; top: -10000px; left: -10000px;"},null));let rt=null;if(Z){rt=h.utils.createElement("DIV",{class:"se-block-handle-area"});const Be=h.utils.createElement("DIV",{class:"se-block-handle",popover:"manual"}),Je=h.utils.createElement("DIV",{class:"se-block-handle-btn se-block-handle-plus"},r.plus),Ke=h.utils.createElement("DIV",{class:"se-block-handle-btn se-block-handle-drag"},r.dragHandle);Be.appendChild(Je),Be.appendChild(Ke),rt.appendChild(Be)}F.appendChild(I),N.push(fe),O.set(fe,fN({target:z.target,key:z.key,options:q},F,j,Pe,P,de,Me,V||J,ye,rt,fe))}const R=n.get("toolbar_container");if(R){const $=h.utils.createElement("DIV",{class:"sun-editor"+n.get("_themeClass")+(n.get("_rtl")?" se-rtl":"")}),D=h.utils.createElement("DIV",{class:"se-container"});D.appendChild(L),M&&D.appendChild(M),$.appendChild(D),R.appendChild($),R.appendChild(h.utils.createElement("DIV",{class:"se-toolbar-sticky-dummy"}))}else{const $=O.get(B).get("container");if(n.get("_toolbar_bottom")){const D=$.querySelector(".se-statusbar");$.insertBefore(L,D),M&&$.insertBefore(M,L)}else $.insertBefore(L,$.firstElementChild),M&&$.insertBefore(M,$.firstElementChild)}return{context:hN(L,R,f,M,A),carrierWrapper:u,options:n,plugins:t,icons:r,lang:a,value:i.v,rootId:B,rootKeys:N,frameRoots:O,pluginCallButtons:x.pluginCallButtons,responsiveButtons:x.responsiveButtons,pluginCallButtons_sub:S?S.pluginCallButtons:[],responsiveButtons_sub:S?S.responsiveButtons:[]}}function R3(s,e,t,i,n,r){var c,d;if(!t||t.length<2)return;const a=e==null?void 0:e.querySelector(".se-tooltip-text");for(let u=0,f,p,m,g,y,v,C,w,k,_,M,S,x,L;u<t.length;u+=2+L){if(L=0,f=t[u].split("+"),k=null,_=(d=(c=f.at(-1)).trim)==null?void 0:d.call(c),_.startsWith("~"))k=s,_=f.pop().trim().substring(1);else if(_.startsWith("$~")){const B=f.pop().trim().substring(2).split(".");k=B[0],_=B[1]}else _.startsWith("$")?(L=1,_=t[u+2]):_="";m=g=y=v=C=w=p=null;for(const B of f)switch(B.trim()){case"c":m=!0;break;case"!":y=!0;break;case"s":g=!0;break;case"_":v=!0;break;case"=":w=!0;break;case"/":C=!0;break;default:p=B}p=p.split("|");for(let B=0,N=p.length;B<N;B++)S=m?p[B]+(g?"1000":""):p[B],i.has(S)||(x=n.indexOf(s),x=x===-1?"":Q.isOdd(x)?n[x+1]:n[x-1],x&&r.add(S),i.set(S,{c:m,s:g,edge:y,space:v,enter:C,textTrigger:w,plugin:k,command:s,method:_,r:x,type:e==null?void 0:e.getAttribute("data-type"),button:e,key:S}));(M=t[u+1])&&a&&vN(a,g,M)}}function vN(s,e,t){const i=h.utils.createElement("SPAN",{class:"se-shortcut"},me.cmdIcon+(e?me.shiftIcon:"")+'+<span class="se-shortcut-key">'+t+"</span>"),n=s.querySelector(".se-shortcut");n?s.replaceChild(i,n):s.appendChild(i)}function P2(s,e){return[s,e].reduce((t,i)=>{for(const n in i)t[n]=(i[n]||"").toLowerCase();return t},{})}function I3(s,e,t){var A,V,R;const i=s.buttonList||vt.BUTTON_LIST,n=new Map;if(e.length>1&&!s.toolbar_container&&!/inline|balloon/i.test(s.mode))throw Error('[SUNEDITOR.create.fail] In multi root, The "mode" option cannot be "classic" without using the "toolbar_container" option.');n.set("v2Migration",!!s.v2Migration),n.set("buttons",new Set(i.toString().split(","))),n.set("strictMode",{tagFilter:!0,formatFilter:!0,classFilter:!0,textStyleTagFilter:!0,attrFilter:!0,styleFilter:!0,...typeof s.strictMode=="boolean"?{}:s.strictMode}),n.set("freeCodeViewMode",!!s.freeCodeViewMode),n.set("finder_panel",s.finder_panel!==!1),n.set("finder_liveSearch",s.finder_liveSearch!==!1),n.set("__lineFormatFilter",s.__lineFormatFilter??!0),n.set("__pluginRetainFilter",s.__pluginRetainFilter??!0);const[r,a]=(s.mode||"classic").split(":");n.set("mode",r),n.set("_toolbar_bottom",a==="bottom"&&/^(classic|inline)$/i.test(r)),n.set("blockHandle",s.blockHandle?typeof s.blockHandle=="object"?s.blockHandle:{}:null),n.set("type",((A=s.type)==null?void 0:A.split(":")[0])||""),n.set("theme",s.theme||""),n.set("_themeClass",s.theme?` se-theme-${s.theme}`:""),n.set("_type_options",((V=s.type)==null?void 0:V.split(":")[1])||""),n.set("externalLibs",s.externalLibs||{}),n.set("fontSizeUnits",Array.isArray(s.fontSizeUnits)&&s.fontSizeUnits.length>0?s.fontSizeUnits.map($=>$.toLowerCase()):vt.SIZE_UNITS),n.set("allowedClassName",new RegExp(`${s.allowedClassName&&typeof s.allowedClassName=="string"?s.allowedClassName+"|":""}${vt.CLASS_NAME}`)),n.set("closeModalOutsideClick",!!s.closeModalOutsideClick),n.set("copyFormatKeepOn",!!s.copyFormatKeepOn),n.set("syncTabIndent",s.syncTabIndent??!0),n.set("autoLinkify",s.autoLinkify??!!t.link),n.set("autoStyleify",Array.isArray(s.autoStyleify)?s.autoStyleify:["bold","underline","italic","strike"]);let c=s.retainStyleMode||"repeat";typeof c=="string"&&!vt.RETAIN_STYLE_MODE.includes(c)&&(console.error(`Invalid retainStyleMode: ${c}. Valid options are ${vt.RETAIN_STYLE_MODE.join(", ")}. Using default 'repeat'.`),c="repeat"),n.set("retainStyleMode",c);const d={...vt.EXTRA_TAG_MAP,...s.allowedExtraTags,"-":!0},u=Object.keys(d),f=u.filter($=>d[$]).join("|"),p=u.filter($=>!d[$]).join("|");n.set("_allowedExtraTag",f),n.set("_disallowedExtraTag",p),n.set("events",s.events||{}),n.set("textStyleTags",(typeof s.__textStyleTags=="string"?s.__textStyleTags:vt.TEXT_STYLE_TAGS)+(s.textStyleTags?"|"+s.textStyleTags:""));const m=P2({bold:"strong",underline:"u",italic:"em",strike:"del",subscript:"sub",superscript:"sup"},s.convertTextTags||{});n.set("convertTextTags",m),n.set("_textStyleTags",Object.values(m).concat(["span","li"])),n.set("tagStyles",[{...vt.TAG_STYLES,...s.__tagStyles||{}},s.tagStyles||{}].reduce(($,D)=>{for(const z in D)$[z]=D[z];return $},{})),n.set("_defaultStyleTagMap",{strong:m.bold,b:m.bold,u:m.underline,ins:m.underline,em:m.italic,i:m.italic,del:m.strike,strike:m.strike,s:m.strike,sub:m.subscript,sup:m.superscript}),n.set("_styleCommandMap",P2(Se.swapKeyValue(m),{strong:"bold",b:"bold",u:"underline",ins:"underline",em:"italic",i:"italic",del:"strike",strike:"strike",s:"strike",sub:"subscript",sup:"superscript"})),n.set("_defaultTagCommand",{bold:m.bold,underline:m.underline,italic:m.italic,strike:m.strike,subscript:m.sub,superscript:m.sup}),n.set("textDirection",s.textDirection??"ltr"),n.set("_rtl",n.get("textDirection")==="rtl"),n.set("reverseCommands",["indent-outdent"].concat(s.reverseButtons||[])),n.set("_reverseCommandArray",("-"+n.get("reverseCommands").join("-")).split("-")),Q.isEven(n.get("_reverseCommandArray").length)&&console.warn('[SUNEDITOR.create.warning] The "reverseCommands" option is invalid, Shortcuts key may not work properly.'),n.set("historyStackDelayTime",typeof s.historyStackDelayTime=="number"?s.historyStackDelayTime:400),n.set("historyStackSize",typeof s.historyStackSize=="number"&&s.historyStackSize>0?s.historyStackSize:100),n.set("_editableClass","sun-editor-editable"+n.get("_themeClass")+(n.get("_rtl")?" se-rtl":"")+(n.get("type")==="document"?" se-type-document-editable-a4":"")),n.set("lineAttrReset",["id"].concat(s.lineAttrReset&&typeof s.lineAttrReset=="string"?s.lineAttrReset.toLowerCase().split("|"):[])),n.set("printClass",typeof s.printClass=="string"?s.printClass+" "+n.get("_editableClass"):null),n.set("defaultLine",typeof s.defaultLine=="string"&&s.defaultLine.length>0?s.defaultLine:"p"),n.set("defaultLineBreakFormat",s.defaultLineBreakFormat||"line"),n.set("lineBreakClearStyle",!!s.lineBreakClearStyle),n.set("scopeSelectionTags",s.scopeSelectionTags||vt.SCOPE_SELECTION_TAGS);const g=(typeof s.elementWhitelist=="string"?s.elementWhitelist:"").toLowerCase(),y=n.get("externalLibs").mathjax?vt.CLASS_MJX+"|":"";n.set("elementWhitelist",g+(g?"|":"")+y+n.get("_allowedExtraTag"));const v=wN((typeof s.elementBlacklist=="string"?s.elementBlacklist:"").toLowerCase(),n.get("defaultLine"));if(n.set("elementBlacklist",v+(v?"|":"")+n.get("_disallowedExtraTag")),n.set("attributeWhitelist",!s.attributeWhitelist||typeof s.attributeWhitelist!="object"?null:s.attributeWhitelist),n.set("attributeBlacklist",!s.attributeBlacklist||typeof s.attributeBlacklist!="object"?null:s.attributeBlacklist),n.set("formatClosureBrLine",Ja(s.formatClosureBrLine,(s.__defaultFormatClosureBrLine=typeof s.__defaultFormatClosureBrLine=="string"?s.__defaultFormatClosureBrLine:vt.FORMAT_CLOSURE_BR_LINE).toLowerCase(),n.get("elementBlacklist"))),n.set("formatBrLine",Ja((s.formatBrLine||"")+"|"+n.get("formatClosureBrLine").str,(s.__defaultFormatBrLine=typeof s.__defaultFormatBrLine=="string"?s.__defaultFormatBrLine:vt.FORMAT_BR_LINE).toLowerCase(),n.get("elementBlacklist"))),n.set("formatLine",Ja(vt.REQUIRED_FORMAT_LINE+"|"+(s.formatLine||"")+"|"+n.get("formatBrLine").str,(s.__defaultFormatLine=typeof s.__defaultFormatLine=="string"?s.__defaultFormatLine:vt.FORMAT_LINE).toLowerCase(),n.get("elementBlacklist"))),!n.get("formatLine").reg.test(n.get("defaultLine")))throw Error(`[SUNEDITOR.create.fail] The "defaultLine(${n.get("defaultLine")})" option must be included in the "formatLine(${n.get("formatLine").str})" option.`);n.set("formatClosureBlock",Ja(s.formatClosureBlock,(s.__defaultFormatClosureBlock=typeof s.__defaultFormatClosureBlock=="string"?s.__defaultFormatClosureBlock:vt.FORMAT_CLOSURE_BLOCK).toLowerCase(),n.get("elementBlacklist"))),n.set("formatBlock",Ja((s.formatBlock||"")+"|"+n.get("formatClosureBlock").str,(s.__defaultFormatBlock=typeof s.__defaultFormatBlock=="string"?s.__defaultFormatBlock:vt.FORMAT_BLOCK).toLowerCase(),n.get("elementBlacklist"))),n.set("allowedEmptyTags",vt.ALLOWED_EMPTY_NODE_LIST+(s.allowedEmptyTags?", "+s.allowedEmptyTags:"")),n.set("__defaultElementWhitelist",vt.REQUIRED_ELEMENT_WHITELIST+"|"+(typeof s.__defaultElementWhitelist=="string"?s.__defaultElementWhitelist:vt.ELEMENT_WHITELIST).toLowerCase()),n.set("__defaultAttributeWhitelist",(typeof s.__defaultAttributeWhitelist=="string"?s.__defaultAttributeWhitelist:vt.ATTRIBUTE_WHITELIST).toLowerCase()),n.set("_editorElementWhitelist",n.get("elementWhitelist")==="*"?"*":kN(n)),n.set("toolbar_width",s.toolbar_width?Q.is(s.toolbar_width)?s.toolbar_width+"px":s.toolbar_width:"auto"),n.set("toolbar_innerWidth",s.toolbar_innerWidth?Q.is(s.toolbar_innerWidth)?s.toolbar_innerWidth+"px":s.toolbar_innerWidth:""),n.set("toolbar_container",s.toolbar_container&&!/inline/i.test(n.get("mode"))?typeof s.toolbar_container=="string"?M0.querySelector(s.toolbar_container):s.toolbar_container:null);const C=s.toolbar_sticky;/balloon/i.test(n.get("mode"))?(n.set("_toolbar_sticky",-1),n.set("_toolbar_sticky_offset",0),n.set("_toolbar_sticky_fixed",!1)):C!==null&&typeof C=="object"?(n.set("_toolbar_sticky",Q.get(C.top,0)),n.set("_toolbar_sticky_offset",Q.get(C.offset,0)),n.set("_toolbar_sticky_fixed",C.position==="fixed")):(n.set("_toolbar_sticky",C===void 0?0:Q.is(C)?C:-1),n.set("_toolbar_sticky_offset",0),n.set("_toolbar_sticky_fixed",!1)),n.set("toolbar_hide",!!s.toolbar_hide);let k=null;const _=s.subToolbar;((R=_==null?void 0:_.buttonList)==null?void 0:R.length)>0&&(/balloon/.test(n.get("mode"))?console.warn('[SUNEDITOR.create.subToolbar.fail] When the "mode" option is "balloon-*", the "subToolbar" option is omitted.'):(n.set("_subMode",_.mode||"balloon"),n.set("toolbar_sub_width",_.width?Q.is(_.width)?_.width+"px":_.width:"auto"),k=n.get("_rtl")?_.buttonList.reverse():_.buttonList,n.set("buttons_sub",new Set(k.toString().split(",")))));const M=new Map;for(let $=0,D=e.length;$<D;$++)M.set(e[$].key,yN(e[$].options||{},s));n.set("tabDisable",!!s.tabDisable),n.set("shortcutsHint",s.shortcutsHint===void 0?!0:!!s.shortcutsHint);const S=s.shortcutsDisable!==void 0&&s.shortcutsDisable?{}:[{selectAll:["c+KeyA","A"],bold:["c+KeyB","B"],strike:["c+s+KeyS","S"],underline:["c+KeyU","U"],italic:["c+KeyI","I"],redo:["c+KeyY","Y","c+s+KeyZ","Z"],undo:["c+KeyZ","Z"],indent:["c+BracketRight","]"],outdent:["c+BracketLeft","["],save:["c+KeyS","S"],...n.get("finder_panel")?{finder:["c+KeyF","F"]}:{},link:["c+KeyK","K"],hr:["!+---+=+~shortcut",""],list_numbered:["!+1.+_+~shortcut",""],list_bulleted:["!+*.+_+~shortcut",""],_h1:["c+s+Digit1|Numpad1+$~blockStyle.applyHeaderByShortcut",""],_h2:["c+s+Digit2|Numpad2+$~blockStyle.applyHeaderByShortcut",""],_h3:["c+s+Digit3|Numpad3+$~blockStyle.applyHeaderByShortcut",""]},s.shortcuts||{}].reduce(($,D)=>{for(const z in D)$[z]=D[z];return $},{});n.set("shortcuts",S),n.set("fullScreenOffset",s.fullScreenOffset===void 0?0:Q.is(s.fullScreenOffset)?Q.get(s.fullScreenOffset,0):0),n.set("previewTemplate",typeof s.previewTemplate=="string"?s.previewTemplate:null),n.set("printTemplate",typeof s.printTemplate=="string"?s.printTemplate:null),n.set("componentInsertBehavior",["auto","select","line","none"].includes(s.componentInsertBehavior)?s.componentInsertBehavior:"auto"),n.set("defaultUrlProtocol",typeof s.defaultUrlProtocol=="string"?s.defaultUrlProtocol:null);const x=n.get("externalLibs").codeMirror;x&&(n.set("codeMirror",x),x.src?n.set("codeMirrorEditor",!0):(console.warn("[SUNEDITOR.options.externalLibs.codeMirror.fail] The codeMirror option is set incorrectly. See: https://github.com/ARA-developer/suneditor/blob/develop/guide/external-libraries.md"),n.set("codeMirror",null))),n.set("__listCommonStyle",s.__listCommonStyle||["fontSize","color","fontFamily","fontWeight","fontStyle"]);const L=!s.icons||typeof s.icons!="object"?D2:[D2,s.icons].reduce(($,D)=>{for(const z in D)$[z]=D[z];return $},{});n.set("icons",L);const B=new Set(vt.CONTENT_STYLES.split("|")),N=n.get("__listCommonStyle");for(const $ of Object.values(n.get("tagStyles"))){const D=$.split("|");for(let z=0,q=D.length;z<q;z++)B.add(D[z])}for(let $=0,D=N.length;$<D;$++)B.add(N[$]);const O=(typeof s.allUsedStyles=="string"?s.allUsedStyles.split("|"):s.allUsedStyles)||[];for(let $=0,D=O.length;$<D;$++)B.add(O[$]);return n.set("allUsedStyles",B),n.set("toastMessageTime",{copy:1500,...s.toastMessageTime}),{o:n,i:L,l:s.lang||uN,v:s.value=typeof s.value=="string"?s.value:null,buttons:n.get("_rtl")?i.reverse():i,subButtons:k,statusbarContainer:typeof s.statusbar_container=="string"?M0.querySelector(s.statusbar_container):s.statusbar_container,frameMap:M}}function D3(s,e){let t=null,i=null,n=null,r=null,a=null;if(s.get("statusbar")){if(e||(e=h.utils.createElement("DIV",{class:"se-status-bar sun-editor-common"})),t=e.querySelector(".se-navigation")||h.utils.createElement("DIV",{class:"se-navigation sun-editor-common"}),e.appendChild(t),s.get("wordCounter")){if(r=e.querySelector(".se-word-counter-wrapper")||h.utils.createElement("DIV",{class:"se-word-counter-wrapper"}),s.get("wordCounter_label")){const c=r.querySelector(".se-word-label")||h.utils.createElement("SPAN",{class:"se-word-label"});c.textContent=s.get("wordCounter_label"),r.appendChild(c)}a=r.querySelector(".se-word-counter")||h.utils.createElement("SPAN",{class:"se-word-counter"}),a.textContent="0",r.appendChild(a),e.appendChild(r)}if(s.get("charCounter")){if(i=e.querySelector(".se-char-counter-wrapper")||h.utils.createElement("DIV",{class:"se-char-counter-wrapper"}),s.get("wordCounter")&&i.className.indexOf("se-with-word-counter")===-1&&(i.className+=" se-with-word-counter"),s.get("charCounter_label")){const c=i.querySelector(".se-char-label")||h.utils.createElement("SPAN",{class:"se-char-label"});c.textContent=s.get("charCounter_label"),i.appendChild(c)}if(n=i.querySelector(".se-char-counter")||h.utils.createElement("SPAN",{class:"se-char-counter"}),n.textContent="0",i.appendChild(n),s.get("charCounter_max")>0){const c=i.querySelector(".se-char-max")||h.utils.createElement("SPAN",{class:"se-char-max"});c.textContent=" / "+s.get("charCounter_max"),i.appendChild(c)}e.appendChild(i)}}return{statusbar:e,navigation:t,charWrapper:i,charCounter:n,wordWrapper:r,wordCounter:a}}function yN(s,e){const t=new Map;t.set("_origin",s);const i=e.statusbar_container,n=s.value===void 0?e.value:s.value,r=s.placeholder===void 0?e.placeholder:s.placeholder,a=s.placeholder_line===void 0?e.placeholder_line:s.placeholder_line,c=s.editableFrameAttributes===void 0?e.editableFrameAttributes:s.editableFrameAttributes,d=s.width===void 0?e.width:s.width,u=s.minWidth===void 0?e.minWidth:s.minWidth,f=s.maxWidth===void 0?e.maxWidth:s.maxWidth,p=s.innerWidth===void 0?e.innerWidth:s.innerWidth,m=s.height===void 0?e.height:s.height,g=s.minHeight===void 0?e.minHeight:s.minHeight,y=s.maxHeight===void 0?e.maxHeight:s.maxHeight,v=s.editorStyle===void 0?e.editorStyle:s.editorStyle,C=s.iframe===void 0?e.iframe:s.iframe,w=s.iframe_fullPage===void 0?e.iframe_fullPage:s.iframe_fullPage,k=s.iframe_attributes===void 0?e.iframe_attributes:s.iframe_attributes,_=s.iframe_cssFileName===void 0?e.iframe_cssFileName:s.iframe_cssFileName,M=i||s.statusbar===void 0?e.statusbar:s.statusbar,S=i||s.statusbar_showPathLabel===void 0?e.statusbar_showPathLabel:s.statusbar_showPathLabel,x=i?!1:s.statusbar_resizeEnable===void 0?e.statusbar_resizeEnable:s.statusbar_resizeEnable,L=i||s.charCounter===void 0?e.charCounter:s.charCounter,B=i||s.charCounter_max===void 0?e.charCounter_max:s.charCounter_max,N=i||s.charCounter_label===void 0?e.charCounter_label:s.charCounter_label,O=i||s.charCounter_type===void 0?e.charCounter_type:s.charCounter_type,A=i||s.wordCounter===void 0?e.wordCounter:s.wordCounter,V=i||s.wordCounter_label===void 0?e.wordCounter_label:s.wordCounter_label;t.set("value",n),t.set("placeholder",r),t.set("placeholder_line",a),t.set("editableFrameAttributes",{spellcheck:"false",...c}),t.set("width",d?String(Q.is(d)?d+"px":d):"100%"),t.set("minWidth",u?String(Q.is(u)?u+"px":u):""),t.set("maxWidth",f?String(Q.is(f)?f+"px":f):""),t.set("innerWidth",p?String(Q.is(p)?p+"px":p):""),t.set("height",m?String(Q.is(m)?m+"px":m):"auto"),t.set("minHeight",g?String(Q.is(g)?g+"px":g):""),t.set("maxHeight",y?String(Q.is(y)?y+"px":y):""),t.set("editorStyle",v),t.set("_defaultStyles",Se._setDefaultOptionStyle(t,typeof v=="string"?v:"")),t.set("iframe",!!(w||C)),t.set("iframe_fullPage",!!w),t.set("iframe_attributes",k||{}),t.set("iframe_cssFileName",C?(typeof _=="string"?[_]:_)||["suneditor"]:null);const R=M===void 0?!0:!!M;return t.set("statusbar",R),t.set("statusbar_showPathLabel",R?typeof S=="boolean"?S:!0:!1),t.set("statusbar_resizeEnable",R?x===void 0?!0:!!x:!1),t.set("charCounter",B>0?!0:typeof L=="boolean"?L:!1),t.set("charCounter_max",Q.is(B)&&B>-1?B*1:null),t.set("charCounter_label",typeof N=="string"?N.trim():null),t.set("charCounter_type",typeof O=="string"?O:"char"),t.set("wordCounter",typeof A=="boolean"?A:!1),t.set("wordCounter_label",typeof V=="string"?V.trim():null),t}function CN(s,e,t,i,n){const r=i.get("_defaultStyles");t.style.cssText=r.top;const a=h.utils.createElement(i.get("iframe")?"IFRAME":"DIV",{class:"se-wrapper-inner se-wrapper-wysiwyg"+(e.get("type")==="document"?" se-type-document-iframe-a4":""),"data-root-key":s});if(!i.get("iframe"))a.setAttribute("contenteditable","true"),e.get("_rtl")&&(a.dir="rtl"),a.className+=" "+e.get("_editableClass"),a.style.cssText=r.frame+r.editor;else{const f=a,p=i.get("iframe_attributes");let m=p.sandbox;if(m){const g=["allow-same-origin","allow-scripts"],y=m.split(/\s+/),v=g.filter(C=>!y.includes(C));v.length>0&&(m=y.concat(v).join(" "))}else m="allow-same-origin allow-scripts";f.setAttribute("sandbox",m),f.setAttribute("frameBorder","0");for(const g in p)g!=="sandbox"&&f.setAttribute(g,p[g]);f.allowFullscreen=!0,f.setAttribute("scrolling",i.get("height")==="auto"?"no":"auto"),f.style.cssText=r.frame}const c=h.utils.createElement("TEXTAREA",{id:n+"-code-viewer-"+(s||"default"),class:"se-wrapper-inner se-code-viewer",style:r.frame,autocomplete:"off"}),d=h.utils.createElement("TEXTAREA",{id:n+"-markdown-viewer-"+(s||"default"),class:"se-wrapper-inner se-markdown-viewer",style:r.frame,autocomplete:"off"}),u=h.utils.createElement("SPAN",{class:"se-placeholder"});return i.get("placeholder")&&(u.textContent=i.get("placeholder")),{bottomBar:D3(i,null),wysiwygFrame:a,codeView:c,markdownView:d,placeholder:u}}function bN(s,e,t){let i=null,n=!1;if(s.get("codeMirrorEditor")){const r=s.get("codeMirror"),a=[{mode:"htmlmixed",htmlMode:!0,lineNumbers:!0,lineWrapping:!1},r.options||{}].reduce((u,f)=>{for(const p in f)u[p]=f[p];return u},{});e.get("height")==="auto"&&(a.viewportMargin=1/0,a.height="auto");const c=t.style.cssText,d=r.src.fromTextArea(t,a);e.set("codeMirrorEditor",d),i=d.display.wrapper,i.style.cssText=c,n=!0}return s.set("hasCodeMirror",n),i?(h.utils.removeItem(t),i.className+=" se-code-viewer-mirror",i):t}function wN(s,e){return e=e.toLowerCase(),s.split("|").filter(function(t){return t!==e?!0:(console.warn(`[SUNEDITOR.constructor.createBlacklist.warn] defaultLine("<${e}>") cannot be included in the blacklist and will be removed.`),!1)}).join("|")}function Ja(s,e,t){const i=t.split("|"),n=(e+"|"+(typeof s=="string"?s.toLowerCase():"")).replace(/^\||\|$/g,"").split("|").filter(r=>r&&!i.includes(r)).join("|");return{reg:new RegExp(`^(${n})$`,"i"),str:n}}function kN(s){const e=s.get("elementBlacklist").split("|");return(s.get("__defaultElementWhitelist")+"|"+s.get("elementWhitelist")+"|"+s.get("formatLine").str+"|"+s.get("formatBrLine").str+"|"+s.get("formatClosureBlock").str+"|"+s.get("formatClosureBrLine").str).replace(/(^\||\|$)/g,"").split("|").filter((i,n,r)=>i&&r.indexOf(i)===n&&!e.includes(i)).join("|")}function _N(s,e){!s||!e||(e!=="auto"&&(s.style.maxWidth=e),s.style.width="max-content",s.style.marginLeft="auto",s.style.marginRight="auto")}function EN(s,e,t,i,n){const r=e==null?void 0:e[s];if(r){const d=typeof r=="function"?r:r.constructor;return{className:r.className||d.className||"",title:n[r.title]||r.title||n[d.title]||d.title||s,command:s,type:r.type||d.type||"",icon:i[r.icon]||r.icon||i[d.icon]||d.icon||""}}const c=P3(t.get("_rtl"),i,n)[s];return c?{className:c[0],title:c[1],command:c[2],type:c[3],icon:c[4]}:null}function P3(s,e,t){return{bold:["",t.bold,"bold","",e.bold],underline:["",t.underline,"underline","",e.underline],italic:["",t.italic,"italic","",e.italic],strike:["",t.strike,"strike","",e.strike],subscript:["",t.subscript,"subscript","",e.subscript],superscript:["",t.superscript,"superscript","",e.superscript],removeFormat:["",t.removeFormat,"removeFormat","",e.remove_format],copyFormat:["",t.copyFormat,"copyFormat","",e.format_paint],indent:["se-icon-flip-rtl",t.indent,"indent","",s?e.outdent:e.indent],outdent:["se-icon-flip-rtl",t.outdent,"outdent","",s?e.indent:e.outdent],fullScreen:["se-code-view-enabled se-component-enabled",t.fullScreen,"fullScreen","",e.expansion],showBlocks:["",t.showBlocks,"showBlocks","",e.show_blocks],codeView:["se-code-view-enabled se-component-enabled",t.codeView,"codeView","",e.code_view],markdownView:["se-code-view-enabled se-component-enabled",t.markdownView,"markdownView","",e.markdown_view],undo:["se-component-enabled",t.undo,"undo","",e.undo],redo:["se-component-enabled",t.redo,"redo","",e.redo],preview:["se-component-enabled",t.preview,"preview","",e.preview],print:["se-component-enabled",t.print,"print","",e.print],copy:["",t.copy,"copy","",e.copy],dir:["",t[s?"dir_ltr":"dir_rtl"],"dir","",e[s?"dir_ltr":"dir_rtl"]],dir_ltr:["",t.dir_ltr,"dir_ltr","",e.dir_ltr],dir_rtl:["",t.dir_rtl,"dir_rtl","",e.dir_rtl],finder:["se-component-enabled",t.find,"finder","",e.finder],save:["se-component-enabled",t.save,"save","",e.save],newDocument:["se-component-enabled",t.newDocument,"newDocument","",e.new_document],selectAll:["se-component-enabled",t.selectAll,"selectAll_full","",e.select_all],pageBreak:["se-component-enabled",t.pageBreak,"pageBreak","",e.page_break],pageUp:["se-component-enabled",t.pageUp,"pageUp","",e.page_up],pageDown:["se-component-enabled",t.pageDown,"pageDown","",e.page_down],pageNavigator:["se-component-enabled","","pageNavigator","input",""]}}function TN(){const s=h.utils.createElement("UL",{class:"se-menu-list"});return{div:h.utils.createElement("DIV",{class:"se-btn-module se-btn-module-border"},s),ul:s}}function SN(s,e,t,i,n,r,a){n||(n="");const c=h.utils.createElement("LI"),d=e||"",u=/^INPUT|FIELD$/i.test(i),f=s==="se-toolbar-separator-vertical"?h.utils.createElement("DIV",{class:s,tabindex:"-1"},null):h.utils.createElement(u?"DIV":"BUTTON",{class:"se-toolbar-btn se-btn se-tooltip"+(s?" "+s:""),"data-command":t,"data-type":i,"aria-label":d.replace(/<span .+<\/span>/,""),tabindex:"-1"});return u||f.setAttribute("type","button"),/^default\./i.test(n)&&(n=a[n.replace(/^default\./i,"")]),/^text\./i.test(n)&&(n=n.replace(/^text\./i,""),f.className+=" se-btn-more-text"),r&&(f.disabled=!0),/^FIELD$/i.test(i)&&h.utils.addClass(c,"se-toolbar-hidden-btn"),d&&(n+=h.utils.createTooltipInner(d)),n&&(f.innerHTML=n),c.appendChild(f),{li:c,button:f}}function H3(s,e,t,i){var r;if(!s)return;const n=e.inner===!1;if(((r=e.inner)==null?void 0:r.nodeType)===1?s.appendChild(e.inner):s.innerHTML=n?"":(e.inner||t[e.icon]||e.icon||'<span class="se-icon-text">!</span>')+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+(i[e.title]||e.title)+"</span></span>",s.setAttribute("aria-label",e.title),e.type&&s.setAttribute("data-type",e.type),e.className&&(s.className+=" "+e.className),e.afterItem&&(h.utils.addClass(e.afterItem,"se-toolbar-btn"),s.parentElement.appendChild(e.afterItem),h.utils.addClass(s,"se-side-btn-a"),h.utils.addClass(e.afterItem,"se-side-btn-after")),e.beforeItem&&(h.utils.addClass(e.beforeItem,"se-toolbar-btn"),s.parentElement.insertBefore(e.beforeItem,s),e.afterItem?(h.utils.addClass(s,"se-side-btn"),h.utils.removeClass(s,"se-side-btn-a")):h.utils.addClass(s,"se-side-btn-b"),h.utils.addClass(e.beforeItem,"se-side-btn-before")),e.replaceButton&&(s.parentElement.appendChild(e.replaceButton),s.style.display="none"),!e.replaceButton&&/^INPUT$/i.test(s.getAttribute("data-type"))){const a=s.querySelector("input");a&&(h.utils.addClass(a,"se-toolbar-btn"),a.setAttribute("data-command",s.getAttribute("data-command")),a.setAttribute("data-type",s.getAttribute("data-type")),s.hasAttribute("disabled")&&(a.disabled=!0))}}function B0(s,e,t,i,n,r){s=JSON.parse(JSON.stringify(s));const a=P3(t.get("_rtl"),i,n),c={},d=[],u=[];let f=null,p=null,m=null,g=null,y=null;const v=h.utils.createElement("DIV",{class:"se-toolbar-more-layer"}),C=h.utils.createElement("DIV",{class:"se-btn-tray"}),w=h.utils.createElement("DIV",{class:"se-toolbar-separator-vertical"});e:for(let _=0,M,S,x,L,B;_<s.length;_++)if(M=!1,B="",L=s[_],g=TN(),typeof L=="object"){for(let N=0,O;N<L.length;N++){if(p=L[N],O=!1,m=e[p],/^%\d+/.test(p)&&N===0){L[0]=p.replace(/[^\d]/g,""),d.push(L),s.splice(_--,1);continue e}if(typeof m=="function")f=[m.className,m.title,p,m.type,m.innerHTML,m._disabled];else if(typeof m=="object"){const A=m.constructor;f=[m.className||A.className,m.title||A.title,p,m.type||A.type,m.innerHTML||A.innerHTML,m._disabled||A._disabled]}else{if(/^-/.test(p)){B=p.substring(1),g.div.className+=" module-float-"+B;continue}if(/^#/.test(p)){p.substring(1)==="fix"&&(g.ul.className+=" se-menu-dir-fix");continue}if(/^:/.test(p)){O=!0;const A=p.match(/^:([^-]+)-([^-]+)/);x="__se__more_"+_;const V=A[1].trim(),R=A[2].trim();f=["se-btn-more",/^lang\./i.test(V)?n[V.replace(/^lang\./i,"")]:V,x,"MORE",R]}else p==="|"?f=["se-toolbar-separator-vertical","","","separator",""]:(p==="copy"&&!me.isClipboardSupported&&console.warn("[SUNEDITOR.constructor.warn] Clipboard is not supported in this browser. : [copy] button is not rendered."),f=a[p]);if(!f){if(!m)throw Error(`[SUNEDITOR.create.toolbar.fail] The button name of a plugin that does not exist. [${p}]`);m=typeof m=="object"?m.constructor:m,f=[m.className,m.title,m.key,m.type,m.innerHTML,m._disabled]}}y=SN(f[0],f[1],f[2],f[3],f[4],f[5],i),(M?S:g.ul).appendChild(y.li),m&&(c[p]?c[p].push(y.button):c[p]=[y.button],r&&u.push({button:y.button,plugin:m,key:p})),O&&(M=!0,S=h.utils.createElement("DIV"),S.className="se-more-layer "+x,S.setAttribute("data-ref",x),S.innerHTML='<div class="se-more-form"><ul class="se-menu-list"'+(B?' style="float: '+B+';"':"")+"></ul></div>",v.appendChild(S),S=S.firstElementChild.firstElementChild)}C.appendChild(g.div)}else if(L==="|"){const N=w.cloneNode(!1);C.appendChild(N);continue}else if(/^\/$/.test(L)){const N=h.utils.createElement("DIV",{class:"se-btn-module-enter"});C.appendChild(N)}switch(C.children.length){case 0:C.style.display="none";break;case 1:h.utils.removeClass(C.firstElementChild,"se-btn-module-border");break}v.children.length>0&&C.appendChild(v),d.length>0&&d.unshift(s),_N(C,t.get("toolbar_innerWidth"));const k=h.utils.createElement("DIV",{class:"se-toolbar sun-editor-common"+(t.get("shortcutsHint")?"":" se-shortcut-hide")},C);return t.get("toolbar_hide")&&(k.style.display="none"),{element:k,pluginCallButtons:c,responsiveButtons:d,buttonTray:C,updateButtons:u}}const{_w:Yi}=me,xN=2.83465,MN=96/72,BN=297,H2=Math.floor(BN*xN*MN);var tn,Dc,Us,Pc,zr,Hc,Cs,ls,qs,sn,jr,As,Ur,bs,qr,Fc,Wc,Zr,$s,uo,nn,Zs,zc,jc,qt,ho,Uc,on,ws,ki,qc,N0,h1,F3;class NN{constructor(e,t){b(this,qc);b(this,h1);b(this,tn,void 0);b(this,Dc,void 0);b(this,Us,void 0);b(this,Pc,void 0);b(this,zr,void 0);b(this,Hc,void 0);b(this,Cs,void 0);b(this,ls,void 0);b(this,qs,void 0);b(this,sn,void 0);b(this,jr,void 0);b(this,As,void 0);b(this,Ur,void 0);b(this,bs,void 0);b(this,qr,void 0);b(this,Fc,void 0);b(this,Wc,-1);b(this,Zr,-1);b(this,$s,null);b(this,uo,null);b(this,nn,0);b(this,Zs,0);b(this,zc,-1);b(this,jc,0);b(this,qt,[]);b(this,ho,null);b(this,Uc,0);b(this,on,0);b(this,ws,new Map);b(this,ki,null);const i=e.$;if(E(this,tn,i.store),E(this,Dc,i.context),E(this,Us,o(this,tn).get("isScrollable")),E(this,Pc,i.offset),E(this,zr,i.selection),E(this,Hc,i.toolbar),this.useHeader=i.options.get("_type_options").includes("header"),this.usePage=i.options.get("_type_options").includes("page"),E(this,Cs,t),E(this,ls,t.get("wysiwyg")),E(this,qs,t.get("wysiwygFrame")),E(this,sn,t.get("documentTypeInner")),E(this,bs,t.get("documentTypePageMirror")),o(this,bs)){const n=Yi.getComputedStyle(o(this,bs));E(this,qr,Q.get(n.paddingTop)),E(this,Fc,Q.get(n.paddingBottom))}if(this.useHeader){const n=this._getHeaders(),r=E(this,jr,o(this,sn).querySelector(".se-document-lines-inner"));let a="";for(let c=0,d=n.length,u;c<d;c++)u=n[c],a+=`<div class="se-doc-item se-doc-h${Q.get(u.nodeName)}" title="${u.textContent}">${u.textContent}</div>`;r.innerHTML=a,E(this,$s,r.querySelectorAll("div")),i.eventManager.addEvent(r,"click",T(this,h1,F3).bind(this,o(this,ls)))}this.usePage&&(E(this,As,t.get("documentTypePage")),E(this,Ur,i.plugins.pageNavigator))}reHeader(){if(!this.useHeader)return;const e=this._getHeaders(),t=o(this,jr),i=o(this,$s);for(let n=0,r=e.length,a,c,d;n<r;n++)if(a=e[n],c=`se-doc-h${Q.get(a.nodeName)}`,d=i[n],n<i.length)(!d.classList.contains(c)||d.textContent!==a.textContent)&&(d.textContent=d.title=a.textContent,d.className=`se-doc-item ${c}`);else{const u=document.createElement("div");u.className=`se-doc-item ${c}`,u.textContent=u.title=a.textContent,t.appendChild(u)}if(i.length>e.length)for(let n=e.length;n<i.length;n++)t.removeChild(i[n]);E(this,$s,t.querySelectorAll("div"))}async rePage(e){o(this,As)&&(o(this,ki)&&Yi.clearTimeout(o(this,ki)),E(this,ki,Yi.setTimeout(async()=>{await h.utils.waitForMediaLoad(o(this,bs),1500);const t=o(this,ls).scrollHeight>o(this,bs).scrollHeight?o(this,ls).scrollHeight-o(this,bs).scrollHeight:0,i=o(this,bs).scrollHeight+t,n=o(this,ls).querySelectorAll(".se-page-break");if(!e&&o(this,zc)===i&&o(this,jc)===n.length)return;E(this,zc,i),E(this,jc,n.length);let r=0;const a=[];if(n.length>0){r=n[0].offsetHeight;for(let y=0;y<n.length;y++)a.push({top:n[y].offsetTop,end:n[y].offsetTop+r/2})}const c=o(this,Us).call(this,o(this,Cs))?this._getWWScrollTop():0,d=[{number:0,top:0}];for(let y=0;y<a.length;y++)d.push({number:0,top:a[y].top+r/2,isBreak:!0});E(this,on,0);const u=o(this,ls).children,f=o(this,bs).children;this._initializeCache(f);const p=[0,...a.map(y=>y.end)],m=[...a.map(y=>y.top),i];for(let y=0;y<p.length;y++){const v=p[y],C=m[y];let w=v,k=y===0;for(;w+=H2+(k?o(this,qr)+o(this,Fc):o(this,qr)),k=!1,!(w>=C);)if(!d.some(_=>Math.abs(_.top-w)<3)){const _=this._calcPageBreakTop(w,u,f,d);if(_===null)break;d.push({number:0,top:_})}}if(d.length===0){E(this,ho,null),E(this,nn,1),this._displayCurrentPage();return}d.sort((y,v)=>y.top-v.top),o(this,As).innerHTML="",E(this,qt,[]);const g=o(this,qs).offsetWidth+1;for(let y=0,v;y<d.length&&(v=d[y].top,!(i<v));y++){const C=h.utils.createElement("DIV",{style:`top:${v-c}px`,innerHTML:String(y+1)},`<div class="se-document-page-line" style="width: ${g}px;"></div>${y+1}`);o(this,As).appendChild(C),o(this,qt).push(C)}E(this,ho,o(this,As).querySelectorAll(".se-document-page-line")),E(this,nn,o(this,qt).length),T(this,qc,N0).call(this),this._displayCurrentPage()},400)))}_getDisplayPage(){return o(this,Us).call(this,o(this,Cs))?o(this,Cs).get("wysiwyg"):Yi}_calcPageBreakTop(e,t,i,n){const{ci:r}=this._getElementAtPosition(e,i,n),a=i[r],c=t[r];if(!a||!c)return null;const d=c.offsetTop-a.offsetTop,u=c.offsetHeight-a.offsetHeight,f=e+d+u/2;return Math.round(f)}_initializeCache(e){o(this,ws).clear();for(let t=0,i=e.length;t<i;t++){const n=e[t],r=n.offsetTop,a=n.offsetHeight,c=r+a;o(this,ws).set(t,{top:r,height:a,bottom:c})}}_getElementAtPosition(e,t,i){let n=o(this,on),r=t.length-1;if(n>0){const d=o(this,ws).get(n);d&&e<d.top&&(n=0)}for(;n<=r;){const d=Math.floor((n+r)/2),{top:u,height:f,bottom:p}=o(this,ws).get(d);if(e>=u&&e<=p){let m=d;if(i&&h.utils.hasClass(t[m],"se-page-break")){m=m+1<t.length?m+1:Math.max(0,m-1);const g=o(this,ws).get(m);return E(this,on,m),{ci:m,cm:e-g.bottom,ch:g.height}}return E(this,on,m),{ci:m,cm:e-p,ch:f}}e<u?r=d-1:n=d+1}let a=t[n]?n:r;i&&h.utils.hasClass(t[a],"se-page-break")&&(a=a+1<t.length?a+1:Math.max(0,a-1)),E(this,on,a);const c=o(this,ws).get(a);return{ci:a,cm:e-c.bottom,ch:c.height}}resizePage(){const e=o(this,qs).offsetWidth+1,t=o(this,qs).offsetHeight+1;let i=!1;if(e===o(this,Wc)&&(i=t===o(this,Zr)))return;e>800?h.utils.removeClass(o(this,sn),"se-document-responsible"):h.utils.addClass(o(this,sn),"se-document-responsible"),E(this,Wc,e),E(this,Zr,t);const n=o(this,ho);for(let r=0,a=n==null?void 0:n.length;r<a;r++)n[r].style.width=`${e}px`;i||this.rePage(!0),this._displayCurrentPage()}scrollPage(){const e=o(this,Uc),t=this._getWWScrollTop();if(e===t)return;const i=o(this,qt),n=t-e;for(let r=0,a=i.length;r<a;r++)i[r].style.top=`${Q.get(i[r].style.top)-n}px`;T(this,qc,N0).call(this),E(this,Uc,t),this._displayCurrentPage()}scrollWindow(){o(this,Us).call(this,o(this,Cs))||this._displayCurrentPage()}getCurrentPageNumber(){if(o(this,nn)<=1)return 1;let e=0;if(o(this,Us).call(this,o(this,Cs)))e=o(this,Zr)/2;else{const i=this._getGlobalTop();if(e=Yi.scrollY-i+H2/2,e<=0)return 1}const t=o(this,qt);for(let i=0,n=t.length;i<n;i++)if(t[i].offsetTop>=e)return E(this,Zs,i);return E(this,Zs,o(this,nn))}pageUp(){const e=o(this,Zs)-1<=1?1:o(this,Zs)-1;this._movePage(e,!1)}pageDown(){const e=o(this,Zs)+1>o(this,qt).length?o(this,qt).length:o(this,Zs)+1;this._movePage(e,!1)}pageGo(e){e<1?e=1:e>o(this,qt).length&&(e=o(this,qt).length),this._movePage(e,!0)}on(e){if(!this.useHeader||(this._is(e)||(e=this._findLinesHeader(e)),!e))return;const t=this._findItem(e);t&&(h.utils.removeClass(o(this,$s),"active"),h.utils.addClass(t,"active"))}onChangeText(e){if(!this.useHeader||!this._is(e))return;const t=this._findItem(e);t&&(t.textContent=e.textContent)}_displayCurrentPage(){var t;const e=this.getCurrentPageNumber();(t=o(this,Ur))==null||t.display(e,o(this,nn))}_getWWScrollTop(){const e=this._getDisplayPage();return e.scrollTop||e.scrollY||0}_movePage(e,t){const i=this._getGlobalTop(),n=o(this,Us).call(this,o(this,Cs)),r=Se.nodeListToArray(o(this,ls).children),a=o(this,As).offsetTop+Q.get(o(this,qt)[e-1].style.top)+(n?this._getWWScrollTop():0);for(let c=0,d=r.length,u;c<d;c++)if(u=r[c],u.offsetTop>=a){t||o(this,zr).setRange(u,0,u,0);const f=c===0&&n?0:u.offsetTop-o(this,As).offsetTop-u.offsetHeight+i;this._applyPageScroll(f,()=>{o(this,Hc).isSticky&&!o(this,tn).mode.isBottom&&this._getDisplayPage().scrollTo({top:f-o(this,Dc).get("toolbar_main").offsetHeight,behavior:"smooth"})}),E(this,Zs,e);break}}_applyPageScroll(e,t){const i=this._getDisplayPage();i.scrollTo({top:e,behavior:"smooth"});const n=()=>{Math.abs((i.scrollY??i.scrollTop)-e)<1?t():Yi.requestAnimationFrame(n)};Yi.requestAnimationFrame(n)}_getGlobalTop(){return o(this,Us).call(this,o(this,Cs))?0:o(this,Pc).getGlobal(o(this,qs)).top}_findItem(e){const t=o(this,uo),i=Array.prototype.indexOf.call(t,e);return i!==-1&&o(this,$s)[i]?o(this,$s)[i]:null}_findLinesHeader(e){for(;e&&e!==o(this,ls);){if(this._is(e))return e;e=e.previousElementSibling||e.parentElement}return null}_is(e){return/^h[1-6]$/i.test(e==null?void 0:e.nodeName)}_getHeaders(){return E(this,uo,o(this,ls).querySelectorAll("h1, h2, h3, h4, h5, h6"))}_destroy(){o(this,ki)&&(Yi.clearTimeout(o(this,ki)),E(this,ki,null)),o(this,ws)&&(o(this,ws).clear(),E(this,ws,null)),E(this,Cs,null),E(this,ls,null),E(this,qs,null),E(this,sn,null),E(this,jr,null),E(this,As,null),E(this,qt,null),E(this,ho,null),E(this,$s,null),E(this,uo,null),E(this,Ur,null),E(this,bs,null)}}tn=new WeakMap,Dc=new WeakMap,Us=new WeakMap,Pc=new WeakMap,zr=new WeakMap,Hc=new WeakMap,Cs=new WeakMap,ls=new WeakMap,qs=new WeakMap,sn=new WeakMap,jr=new WeakMap,As=new WeakMap,Ur=new WeakMap,bs=new WeakMap,qr=new WeakMap,Fc=new WeakMap,Wc=new WeakMap,Zr=new WeakMap,$s=new WeakMap,uo=new WeakMap,nn=new WeakMap,Zs=new WeakMap,zc=new WeakMap,jc=new WeakMap,qt=new WeakMap,ho=new WeakMap,Uc=new WeakMap,on=new WeakMap,ws=new WeakMap,ki=new WeakMap,qc=new WeakSet,N0=function(){const e=o(this,qt);if(!(e!=null&&e.length))return;const t=o(this,qs).offsetHeight;for(let i=0,n=e.length;i<n;i++){const r=Q.get(e[i].style.top);e[i].style.display=r<0||r>t?"none":""}},h1=new WeakSet,F3=function(e,t){t.preventDefault();try{o(this,tn).set("_preventBlur",!0);const i=h.query.getEventTarget(t);if(h.utils.hasClass(i,"se-doc-item")){const n=Array.prototype.indexOf.call(o(this,$s),i);if(n===-1)return;const r=o(this,uo)[n];r&&o(this,zr).scrollTo(r)}}finally{o(this,tn).set("_preventBlur",!1)}};const LN=NN;var rn,_i,f1,W3;class AN{constructor(e){b(this,f1);b(this,rn,void 0);b(this,_i,new Map);const t=e.options,i=t.get("mode"),n=t.get("_subMode");this._editorInitFinished=!1,this.mode={isClassic:/classic/i.test(i),isInline:/inline/i.test(i),isBalloon:/balloon/i.test(i),isBalloonAlways:/balloon-always/i.test(i),isSubBalloon:/balloon/i.test(n),isSubBalloonAlways:/balloon-always/i.test(n),isBottom:!!t.get("_toolbar_bottom")},E(this,rn,{rootKey:e.rootId,hasFocus:!1,tabSize:4,indentSize:25,codeIndentSize:2,currentNodes:[],currentNodesMap:[],initViewportHeight:0,currentViewportHeight:0,controlActive:!1,_lastSelectionNode:null,isScrollable:r=>{const a=r.get("options"),c=a.get("height"),d=a.get("maxHeight");return c!=="auto"?!0:d?r.get("wysiwyg").offsetHeight>=Q.get(d):!1},_range:null,_mousedown:!1,_preventBlur:!1,_preventFocus:!1,_canUseBeforeInput:!0})}get(e){return o(this,rn)[e]}set(e,t){const i=o(this,rn)[e];o(this,rn)[e]=t,T(this,f1,W3).call(this,e,t,i)}subscribe(e,t){return o(this,_i).has(e)||o(this,_i).set(e,new Set),o(this,_i).get(e).add(t),()=>o(this,_i).get(e).delete(t)}_reset(){}_destroy(){o(this,_i).clear(),E(this,rn,null)}}rn=new WeakMap,_i=new WeakMap,f1=new WeakSet,W3=function(e,t,i){const n=o(this,_i).get(e);if(n)for(const r of n)try{r(t,i)}catch(a){console.error(`[Store] Subscriber error for "${e}":`,a)}};const $N=AN,{_w:F2,_d:ON}=me;var fo,Gr,po,p1,z3,m1,j3,g1,U3;class VN{constructor(e){b(this,p1);b(this,m1);b(this,g1);b(this,fo,void 0);b(this,Gr,void 0);b(this,po,void 0);E(this,fo,e.frameRoots),E(this,Gr,T(this,m1,j3).call(this,e.context)),E(this,po,T(this,g1,U3).call(this,{value:new Map})),this.rootKeys=e.rootKeys,this.carrierWrapper=e.carrierWrapper,this.icons=e.icons,this.lang=e.lang,this.shadowRoot=null}get frameRoots(){return o(this,fo)}get context(){return o(this,Gr)}get frameContext(){return o(this,po)}init(){this.applyToRoots(e=>{T(this,p1,z3).call(this,e)})}reset(e){o(this,po).reset(e)}applyToRoots(e){o(this,fo).forEach(e)}_destroy(){this.applyToRoots(e=>{const t=e.get("documentType");t&&t._destroy(),h.utils.removeItem(e.get("topArea")),e.get("options").clear(),e.clear()}),o(this,Gr).clear(),o(this,po).clear(),o(this,fo).clear(),h.utils.removeItem(this.carrierWrapper),this.rootKeys=null,this.carrierWrapper=null,this.icons=null,this.lang=null,this.shadowRoot=null}}fo=new WeakMap,Gr=new WeakMap,po=new WeakMap,p1=new WeakSet,z3=function(e){const t=e.get("options");if(e.set("wwComputedStyle",F2.getComputedStyle(e.get("wysiwyg"))),!t.get("iframe")&&typeof ShadowRoot=="function"){let n=e.get("wysiwygFrame");for(;n;){if(n.shadowRoot){this.shadowRoot=n.shadowRoot;break}else if(n instanceof ShadowRoot){this.shadowRoot=n;break}n=n.parentNode}}t.get("iframe")?(e.set("_ww",e.get("wysiwygFrame").contentWindow),e.set("_wd",e.get("wysiwygFrame").contentDocument),e.set("wysiwyg",e.get("_wd").body),t.get("_defaultStyles").editor&&(e.get("wysiwyg").style.cssText=t.get("_defaultStyles").editor),t.get("height")==="auto"&&e.set("_iframeAuto",e.get("_wd").body)):(e.set("_ww",F2),e.set("_wd",ON));const i=t.get("editableFrameAttributes");for(const n in i)e.get("wysiwyg").setAttribute(n,i[n])},m1=new WeakSet,j3=function(e){const t=e;return{get(i){return t.get(i)},set(i,n){return t.set(i,n)},has(i){return t.has(i)},delete(i){return t.delete(i)},getAll(){return Object.fromEntries(t.entries())},get size(){return t.size},clear(){t.clear()}}},g1=new WeakSet,U3=function(e){let t=e.value;return{get(i){return t.get(i)},set(i,n){return t.set(i,n)},has(i){return t.has(i)},delete(i){return t.delete(i)},getAll(){return Object.fromEntries(t.entries())},reset(i){t=e.value=i},get size(){return t.size},clear(){t.clear()}}};var Yr,mo,go,vo,v1,q3,y1,Z3,Zc,L0,C1,G3,b1,Y3;class RN{constructor(e,t,i){b(this,v1);b(this,y1);b(this,Zc);b(this,C1);b(this,b1);b(this,Yr,void 0);b(this,mo,void 0);b(this,go,void 0);b(this,vo,void 0);E(this,Yr,e),E(this,mo,i),E(this,go,T(this,C1,G3).call(this,{value:t.options})),E(this,vo,T(this,b1,Y3).call(this,{value:new Map}))}get options(){return o(this,go)}get frameOptions(){return o(this,vo)}reset(e){const{$:t}=o(this,Yr),i=t.frameRoots,n=t.context,r=t.eventManager,a=t.format,c=t.html,d=t.char,u=t.viewer,f=t.plugins,p=t.history,m=t.ui,g=o(this,Yr)._eventOrchestrator;u.codeView(!1),u.showBlocks(!1);const y=new Map,v=[],C=new Map,w={};for(const N in e)t0[N]!==void 0&&(w[N]=e[N],delete e[N]);for(const N of i.keys())e[N||""]={...w,...e[N||""]};const k=Object.keys(e);if(T(this,Zc,L0).call(this,k,f,""),k.length===0)return;i.size===1&&k.unshift(null);const _=[o(this,mo),e].reduce((N,O)=>{for(const A in O)i.has(A||null)?T(this,v1,q3).call(this,A,O,i,y,C,v):N[A]=O[A];return N},{}),M=o(this,go),S=I3(_,v,f),x=S.o,L=S.frameMap;for(let N=0,O=k.length,A;N<O;N++){if(A=k[N]||null,C.has(A)){const V=y.get(A),R=i.get(A),$=R.get("options"),D=L.get(A);for(const[I,Z]of D.entries())$.set(I,Z);if(V.has("statusbar-changed")){if(h.utils.removeItem(R.get("statusbar")),D.get("statusbar")){const I=D3(D,null).statusbar;R.get("container").appendChild(I),x0(I,R),g.__addStatusbarEvent(R,D)}else r.removeEvent($.get("__statusbarEvent")),D.set("__statusbarEvent",null),x0(null,R);R.get("statusbar")&&d.display(R)}if(V.has("iframe_attributes")){const I=R.get("wysiwygFrame"),Z=$.get("iframe_attributes"),W=D.get("iframe_attributes");for(const Y in Z)I.removeAttribute(Y);for(const Y in W)I.setAttribute(Y,W[Y])}if(V.has("iframe_cssFileName")){const I=R.get("_wd").head,Z=I.getElementsByTagName("link");for(;Z[0];)I.removeChild(Z[0]);const Y=new DOMParser().parseFromString(Se._setIframeStyleLinks(D.get("iframe_cssFileName")),"text/html").head.children,ne=I.querySelector("style");for(;Y[0];)I.insertBefore(Y[0],ne)}if(V.has("placeholder")&&(R.get("placeholder").textContent=D.get("placeholder")),V.has("placeholder_line")){const I=D.get("placeholder_line");R.set("placeholder_line",I);const Z=R.get("wysiwyg").querySelector(".se-placeholder-line");if(Z){const W=m.resolveLinePlaceholder(Z,I);W?Z.setAttribute("data-se-placeholder-line",W):(Z.classList.remove("se-placeholder-line"),Z.removeAttribute("data-se-placeholder-line"),Z.getAttribute("class")||Z.removeAttribute("class"))}}m.setEditorStyle(D.get("editorStyle"),R);const z=R.get("wysiwyg"),q=$.get("editableFrameAttributes"),F=D.get("editableFrameAttributes");for(const I in q)z.removeAttribute(I);for(const I in F)z.setAttribute(I,F[I]);continue}switch(A){case"theme":{m.setTheme(x.get("theme"));break}case"events":{const V=x.get("events");for(const R in V)r.events[R]=V[R];break}case"autoStyleify":{c.__resetAutoStyleify(x.get("autoStyleify"));break}case"textDirection":{m.setDir(x.get("textDirection")==="rtl"?"rtl":"ltr");break}case"historyStackDelayTime":{p.resetDelayTime(x.get("historyStackDelayTime"));break}case"defaultLineBreakFormat":a.__resetBrLineBreak(x.get("defaultLineBreakFormat"))}}M.setMany(x),E(this,mo,_);const B=n.get("toolbar_main");/inline|balloon/i.test(M.get("mode"))&&k.includes("toolbar_width")&&(B.style.width=M.get("toolbar_width")),M.get("toolbar_hide")?B.style.display="none":B.style.display="",M.get("shortcutsHint")?h.utils.removeClass(B,"se-shortcut-hide"):h.utils.addClass(B,"se-shortcut-hide")}resetFrame(e){o(this,vo).reset(e)}_destroy(){E(this,mo,null),o(this,go).clear(),o(this,vo).clear()}}Yr=new WeakMap,mo=new WeakMap,go=new WeakMap,vo=new WeakMap,v1=new WeakSet,q3=function(e,t,i,n,r,a){const c=t[e],d=Object.keys(c);if(T(this,Zc,L0).call(this,d,null,e+"."),d.length===0)return!1;const u=e||null;n.set(u,new Map);const f=i.get(u).get("options").get("_origin"),p={},m=Object.prototype.hasOwnProperty;for(const y in c){if(!m.call(t0,y))continue;const v=c[y];!d.includes(y)||f[y]===v||(n.get(u).set(T(this,y1,Z3).call(this,y),!0),p[y]=v)}const g={...f,...p};r.set(u,new Map(Object.entries(g))),a.push({key:u,options:g})},y1=new WeakSet,Z3=function(e){return/^statusbar|^charCounter|^wordCounter/.test(e)?"statusbar-changed":e},Zc=new WeakSet,L0=function(e,t,i){for(let n=0,r=e.length,a;n<r;n++)a=e[n],(pN[a]==="fixed"||t0[a]==="fixed"||t&&t[a])&&(console.warn(`[SUNEDITOR.warn.resetOptions] The "[${i+a}]" option cannot be changed after the editor is created.`),e.splice(n--,1),r--)},C1=new WeakSet,G3=function(e){let t=e.value;return{get(i){return t.get(i)},set(i,n){return t.set(i,n)},has(i){return t.has(i)},getAll(){return Object.fromEntries(t.entries())},setMany(i){i.forEach((n,r)=>t.set(r,n))},reset(i){t=e.value=i},size(){return t.size},clear(){t.clear()},entries(){return t.entries()},keys(){return t.keys()},values(){return t.values()},forEach(i){t.forEach(i)}}},b1=new WeakSet,Y3=function(e){let t=e.value;return{get(i){return t.get(i)},set(i,n){return t.set(i,n)},has(i){return t.has(i)},getAll(){return Object.fromEntries(t.entries())},setMany(i){i.forEach((n,r)=>t.set(r,n))},reset(i){t=e.value=i},size(){return t.size},clear(){t.clear()},entries(){return t.entries()},keys(){return t.keys()},values(){return t.values()},forEach(i){t.forEach(i)}}};var Gc,yo,nc;class IN{constructor(e){b(this,yo);b(this,Gc,void 0);E(this,Gc,e)}isNode(e){return e&&typeof e.nodeType=="number"||e instanceof T(this,yo,nc).call(this).Node}isElement(e){return e&&e.nodeType===1||e instanceof T(this,yo,nc).call(this).Element}isRange(e){var t;return e&&((t=e.constructor)==null?void 0:t.name)==="Range"||e instanceof T(this,yo,nc).call(this).Range}isSelection(e){var t;return e&&((t=e.constructor)==null?void 0:t.name)==="Selection"||e instanceof T(this,yo,nc).call(this).Selection}}Gc=new WeakMap,yo=new WeakSet,nc=function(){return o(this,Gc).get("_ww")};const DN=IN,Xt=new Map([["__figureInst",null],["__dragInst",null],["__dragHandler",null],["__dragContainer",null],["__dragCover",null],["__dragMove",null],["__overInfo",null]]),we=Xt,{_w:Ki}=me,s0=38;var $e,Yc,Kc,Gs,ln,an,Ei,Xc,Qc,Kr,Xr,Qr,cn,Jr,Ys,el,Jc,kt,ht,ks,Ti,dn,Co,oc,ed,A0,w1,K3,Ks,Ji,td,$0,bo,rc,sd,O0,k1,X3,_1,Q3,tl,$h,sl,Oh,id,V0,E1,J3,nd,R0,T1,ey,od,I0,S1,ty,x1,sy,M1,iy,B1,ny,N1,oy,L1,ry,A1,ly;class PN{constructor(e,t){b(this,Co);b(this,ed);b(this,w1);b(this,Ks);b(this,td);b(this,bo);b(this,sd);b(this,k1);b(this,_1);b(this,tl);b(this,sl);b(this,id);b(this,E1);b(this,nd);b(this,T1);b(this,od);b(this,S1);b(this,x1);b(this,M1);b(this,B1);b(this,N1);b(this,L1);b(this,A1);b(this,$e,void 0);b(this,Yc,void 0);b(this,Kc,void 0);b(this,Gs,void 0);b(this,ln,void 0);b(this,an,void 0);b(this,Ei,null);b(this,Xc,null);b(this,Qc,null);b(this,Kr,null);b(this,Xr,null);b(this,Qr,null);b(this,cn,null);b(this,Jr,null);b(this,Ys,null);b(this,el,null);b(this,Jc,null);b(this,kt,new Map);b(this,ht,-1);b(this,ks,-1);b(this,Ti,!1);b(this,dn,null);E(this,$e,e);const i=t.position.split("-");this.form=null,this.items=[],this.menus=null,this.menuLen=0,this.index=-1,this.item=null,this.isOpen=!1,this.checkList=!!t.checkList,this.position=i[0],this.subPosition=i[1],this.splitNum=t.splitNum||0,this.horizontal=!!this.splitNum,this.openMethod=t.openMethod,this.closeMethod=t.closeMethod,this.subEscMethod=t.subEscMethod||null,this.maxHeight=t.maxHeight||"",this.minWidth=t.minWidth||"",E(this,Qc,t.keydownTarget||null),E(this,Yc,/^(left|right)$/.test(this.position)?this.position==="left"?"right":"left":this.position),E(this,Kc,/^(left|right)$/.test(this.subPosition)?this.subPosition==="left"?"right":"left":this.subPosition),E(this,Gs,t.dir==="ltr"?!1:t.dir==="rtl"?!0:null),E(this,ln,{mousedown:T(this,x1,sy).bind(this),mousemove:T(this,M1,iy).bind(this),click:T(this,B1,ny).bind(this),keydown:T(this,S1,ty).bind(this)}),E(this,an,{keydown:T(this,N1,oy).bind(this),mousedown:T(this,L1,ry).bind(this),click:T(this,A1,ly).bind(this),submenuReposition:T(this,w1,K3).bind(this)})}create(e,t){var n,r;this.form.firstElementChild.innerHTML="";for(const[,a]of o(this,kt))(n=a.element)==null||n.remove();o(this,kt).clear(),t||(t=e);let i="";for(let a=0,c=t.length;a<c;a++){a>0&&a%this.splitNum===0&&(T(this,sd,O0).call(this,i),i="");const d=e[a],u=typeof t[a]=="string"?t[a]:t[a].outerHTML,f=d&&typeof d=="object"?d:{};if(((r=f.children)==null?void 0:r.length)>0){let m="";const g=f.childMenus||f.children;for(let v=0;v<g.length;v++)m+=`<li class="se-select-item" data-parent-index="${a}" data-child-index="${v}">${typeof g[v]=="string"?g[v]:g[v].outerHTML}</li>`;i+=`<li class="se-select-item se-has-submenu" data-index="${a}">${u}<span class="se-submenu-arrow">${o(this,$e).icons.menu_arrow_right}</span></li>`;const y=h.utils.createElement("DIV",{class:"se-select-submenu",popover:"manual","data-parent-index":String(a)},`<ul class="se-list-basic se-list-checked">${m}</ul>`);o(this,kt).set(a,{items:f.children,menus:g,element:y})}else i+=`<li class="se-select-item" data-index="${a}">${u}</li>`}T(this,sd,O0).call(this,i);for(const[,a]of o(this,kt))this.form.appendChild(a.element);this.items=e,this.menus=Array.from(this.form.querySelectorAll("li[data-index]")),this.menuLen=this.menus.length}on(e,t,i={}){E(this,Ei,e),E(this,Xc,o(this,Qc)||(h.check.isInputElement(e)?e:o(this,$e).frameContext.get("_ww"))),E(this,Kr,t);let n="";this.maxHeight&&(n+="max-height:"+this.maxHeight+";overflow-y:auto;"),this.minWidth&&(n+="min-width:"+this.minWidth+";"),this.form=h.utils.createElement("DIV",{class:"se-select-menu"+(o(this,Gs)===!0?" se-rtl":"")+(i.class?" "+i.class:""),style:i.style||""},'<div class="se-list-inner"'+(n?' style="'+n+'"':"")+"></div>"),e.parentNode.insertBefore(this.form,e)}open(e,t){var a;o(this,$e).ui.selectMenuOn=!0,(a=this.openMethod)==null||a.call(this),T(this,E1,J3).call(this),T(this,T1,ey).call(this);const i=e?e.split("-"):[],n=i[0]||(o(this,Gs)!==null&&o(this,Gs)!==o(this,$e).options.get("_rtl")?o(this,Yc):this.position),r=i[1]||(o(this,Gs)!==null&&o(this,Gs)!==o(this,$e).options.get("_rtl")?o(this,Kc):this.subPosition);E(this,el,n),E(this,Jc,r),T(this,sl,Oh).call(this,n,r,t),this.isOpen=!0}reposition(){!this.isOpen||!o(this,el)||T(this,sl,Oh).call(this,o(this,el),o(this,Jc))}setHidden(e){this.isOpen&&(e?(T(this,Ks,Ji).call(this),this.form.style.display="none"):this.reposition())}close(){var e,t;o(this,$e).ui.selectMenuOn=!1,h.utils.removeClass(o(this,Ei),"on"),T(this,k1,X3).call(this),(e=this.form)==null||e.removeAttribute("style"),this.isOpen=!1,(t=this.closeMethod)==null||t.call(this)}getItem(e){return this.items[e]}setItem(e){T(this,tl,$h).call(this,e)}hasOpenSubmenu(){return o(this,ht)>-1}}$e=new WeakMap,Yc=new WeakMap,Kc=new WeakMap,Gs=new WeakMap,ln=new WeakMap,an=new WeakMap,Ei=new WeakMap,Xc=new WeakMap,Qc=new WeakMap,Kr=new WeakMap,Xr=new WeakMap,Qr=new WeakMap,cn=new WeakMap,Jr=new WeakMap,Ys=new WeakMap,el=new WeakMap,Jc=new WeakMap,kt=new WeakMap,ht=new WeakMap,ks=new WeakMap,Ti=new WeakMap,dn=new WeakMap,Co=new WeakSet,oc=function(e){if(o(this,ht)===e)return;T(this,Ks,Ji).call(this);const t=this.menus[e];if(!t||!h.utils.hasClass(t,"se-has-submenu"))return;h.utils.addClass(t,"se-submenu-open"),E(this,ht,e),E(this,ks,-1),E(this,Ti,!1);const i=o(this,kt).get(e),n=i==null?void 0:i.element;if(n){const r=typeof n.showPopover=="function";n.style.visibility="hidden",r?n.matches(":popover-open")||n.showPopover():n.style.display="block",T(this,ed,A0).call(this,t,n,r),n.style.visibility="",E(this,Jr,o(this,$e).eventManager.addGlobalEvent("scroll",o(this,an).submenuReposition,!0))}},ed=new WeakSet,A0=function(e,t,i){const n=i?{top:0,left:0}:this.form.getBoundingClientRect(),r=e.getBoundingClientRect(),a=t.offsetWidth,c=t.offsetHeight,d=Ki.innerWidth,u=Ki.innerHeight,f=r.right,p=r.left-a,m=Math.max(0,f+a-d),g=Math.max(0,-p),y=o(this,Gs)===!0;let v;y?g===0?v=p:m===0?v=f:g<=m?v=p+g:v=f-m:m===0?v=f:g===0?v=p:m<=g?v=f-m:v=p+g,t.style.left=v-n.left+"px",t.style.right="";const C=r.top,w=r.bottom-c,k=Math.max(0,C+c-u),_=Math.max(0,-w);let M;k===0?M=C:_===0?M=w:k<=_?M=C-k:M=w+_,t.style.top=M-n.top+"px"},w1=new WeakSet,K3=function(){if(o(this,ht)<0)return;const e=o(this,kt).get(o(this,ht)),t=e==null?void 0:e.element,i=this.menus[o(this,ht)];!t||!i||T(this,ed,A0).call(this,i,t,typeof t.showPopover=="function")},Ks=new WeakSet,Ji=function(){if(o(this,dn)&&(Ki.clearTimeout(o(this,dn)),E(this,dn,null)),o(this,Jr)&&E(this,Jr,o(this,$e).eventManager.removeGlobalEvent(o(this,Jr))),o(this,ht)>-1){const e=this.menus[o(this,ht)];e&&h.utils.removeClass(e,"se-submenu-open");const t=o(this,kt).get(o(this,ht));t!=null&&t.element&&(typeof t.element.hidePopover=="function"?t.element.matches(":popover-open")&&t.element.hidePopover():t.element.style.display="",h.utils.removeClass(t.element.querySelectorAll(".se-select-item"),"se-select-cursor"))}E(this,ht,-1),E(this,ks,-1),E(this,Ti,!1)},td=new WeakSet,$0=function(e,t){var n;const i=o(this,kt).get(e);if(i){if(this.checkList){const r=(n=i.element)==null?void 0:n.querySelectorAll(".se-select-item")[t];r&&h.utils.toggleClass(r,"se-checked")}o(this,Kr).call(this,i.items[t])}},bo=new WeakSet,rc=function(e){const t=o(this,kt).get(o(this,ht));if(!(t!=null&&t.element))return;const i=t.element.querySelectorAll(".se-select-item"),n=i.length;if(!n)return;e=o(this,ks)+e;const r=E(this,ks,e>=n?0:e<0?n-1:e);h.utils.removeClass(this.form,"se-select-menu-mouse-move");for(let a=0;a<n;a++)a===r?h.utils.addClass(i[a],"se-select-cursor"):h.utils.removeClass(i[a],"se-select-cursor")},sd=new WeakSet,O0=function(e){this.form.firstElementChild.innerHTML+=`<ul class="se-list-basic se-list-checked${this.horizontal?" se-list-horizontal":""}">${e}</ul>`},k1=new WeakSet,X3=function(){T(this,nd,R0).call(this),T(this,od,I0).call(this),T(this,Ks,Ji).call(this),this.index=-1,this.item=null,this._onItem&&(h.utils.removeClass(this._onItem,"se-select-on"),this._onItem=null)},_1=new WeakSet,Q3=function(e){e=this.index+e;const t=this.menuLen,i=this.index=e>=t?0:e<0?t-1:e;T(this,tl,$h).call(this,i)},tl=new WeakSet,$h=function(e){h.utils.removeClass(this.form,"se-select-menu-mouse-move");const t=this.menuLen;for(let i=0;i<t;i++)i===e?h.utils.addClass(this.menus[i],"se-select-cursor"):h.utils.removeClass(this.menus[i],"se-select-cursor");this.index=e,this.item=this.items[e]},sl=new WeakSet,Oh=function(e,t,i,n){const r=e,a=this.form,c=o(this,Ei);a.style.visibility="hidden",a.style.display="block",h.utils.removeClass(a,"se-select-menu-scroll"),h.utils.addClass(c,"on");const d=a.offsetWidth,u=c.offsetWidth,f=c.offsetLeft;let p=!1,m=0,g=0;e==="left"?(m=f-d-1,e=t,p=!0):e==="right"&&(m=f+u+1,e=t,p=!0);const y=o(this,$e).offset.get(c),v=c.offsetTop,C=y.top,w=c.offsetHeight,k=h.utils.getClientSize().h-(C-Ki.scrollY+w),_=p?w:0;let M=1e4;switch(e){case"middle":{let L=a.offsetHeight;const B=w/2;g=v-L/2+B,C<L/2&&(g+=L/2-C-B+4,a.style.top=g+"px");let N=o(this,$e).offset.getGlobal(a).top;const O=L-(C-N)-k-w;O>0&&(g-=O+4,a.style.top=g+"px"),N=o(this,$e).offset.getGlobal(a).top,N<0&&(L+=N-4,g-=N-4),a.style.height=L+"px";break}case"top":if(C<a.offsetHeight-_){if(!n){M=0;break}M=C-4+_,M>=s0&&(a.style.height=M+"px")}g=v-a.offsetHeight+_;break;case"bottom":if(k<a.offsetHeight+_){if(!n){M=0;break}M=k-4+_,M>=s0&&(a.style.height=M+"px")}g=v+(p?0:w);break}if(M<s0&&!n&&e!=="middle"){T(this,sl,Oh).call(this,e==="top"?"bottom":"top",t,i,!0);return}if(!p)switch(t){case"center":m=f+u/2-d/2;break;case"left":m=f;break;case"right":m=f-(d-u);break}a.style.left=m+"px";let S=o(this,$e).offset.getGlobal(a).fixedLeft,x=0;switch(p+"-"+(p?r:t)){case"true-left":S<0&&(m=f+u+1);break;case"true-right":S+d>Ki.innerWidth&&(m=f-d-1);break;case"false-center":x=Ki.innerWidth-(S+d),x<0&&(m+=x-4),a.style.left=m+"px",S=o(this,$e).offset.getGlobal(a).fixedLeft,S<0&&(m-=S-4);break;case"false-left":x=Ki.innerWidth-(S+d),x<0&&(m+=x-4);break;case"false-right":S<0&&(m-=S-4);break}if(i){const L=a.firstElementChild.querySelector(i);L&&(this._onItem=L,h.utils.addClass(L,"se-select-on"))}a.style.left=m+"px",a.style.top=g+"px",a.style.visibility=""},id=new WeakSet,V0=function(e){this.checkList&&h.utils.toggleClass(this.menus[e],"se-checked"),o(this,Kr).call(this,this.getItem(e))},E1=new WeakSet,J3=function(){T(this,nd,R0).call(this),E(this,Ys,{mousedown:o(this,$e).eventManager.addEvent(this.form,"mousedown",o(this,ln).mousedown),mousemove:o(this,$e).eventManager.addEvent(this.form,"mousemove",o(this,ln).mousemove),click:o(this,$e).eventManager.addEvent(this.form,"click",o(this,ln).click),keydown:o(this,$e).eventManager.addEvent(o(this,Xc),"keydown",o(this,ln).keydown)})},nd=new WeakSet,R0=function(){o(this,Ys)&&(o(this,$e).eventManager.removeEvent(o(this,Ys).mousedown),o(this,$e).eventManager.removeEvent(o(this,Ys).mousemove),o(this,$e).eventManager.removeEvent(o(this,Ys).click),o(this,$e).eventManager.removeEvent(o(this,Ys).keydown),E(this,Ys,null))},T1=new WeakSet,ey=function(){T(this,od,I0).call(this),E(this,Xr,o(this,$e).eventManager.addGlobalEvent("keydown",o(this,an).keydown,!0)),E(this,Qr,o(this,$e).eventManager.addGlobalEvent("mousedown",o(this,an).mousedown,!0))},od=new WeakSet,I0=function(){o(this,Xr)&&E(this,Xr,o(this,$e).eventManager.removeGlobalEvent(o(this,Xr))),o(this,Qr)&&E(this,Qr,o(this,$e).eventManager.removeGlobalEvent(o(this,Qr))),o(this,cn)&&E(this,cn,o(this,$e).eventManager.removeGlobalEvent(o(this,cn)))},S1=new WeakSet,ty=function(e){if(o(this,Ti))switch(e.code){case"ArrowUp":e.preventDefault(),e.stopPropagation(),T(this,bo,rc).call(this,-1);return;case"ArrowDown":e.preventDefault(),e.stopPropagation(),T(this,bo,rc).call(this,1);return;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),E(this,Ti,!1),E(this,ks,-1);{const i=o(this,kt).get(o(this,ht));i!=null&&i.element&&h.utils.removeClass(i.element.querySelectorAll(".se-select-item"),"se-select-cursor")}return;case"Enter":case"Space":o(this,ks)>-1&&(e.preventDefault(),e.stopPropagation(),T(this,td,$0).call(this,o(this,ht),o(this,ks)));return}let t;switch(e.code){case"ArrowUp":if(e.preventDefault(),e.stopPropagation(),this.horizontal&&this.index>-1){const i=this.splitNum;t=this.index-i<0?i:-i}else t=-1;break;case"ArrowDown":if(e.preventDefault(),e.stopPropagation(),this.horizontal&&this.index>-1){const i=this.splitNum;t=this.index+i>this.menuLen?-i:i}else t=1;break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),t=-1;break;case"ArrowRight":if(e.preventDefault(),e.stopPropagation(),this.index>-1&&o(this,kt).has(this.index)){T(this,Co,oc).call(this,this.index),E(this,Ti,!0),T(this,bo,rc).call(this,1);return}t=1;break;case"Enter":case"Space":this.index>-1&&(e.preventDefault(),e.stopPropagation(),o(this,kt).has(this.index)?(T(this,Co,oc).call(this,this.index),E(this,Ti,!0),T(this,bo,rc).call(this,1)):T(this,id,V0).call(this,this.index));break}t&&(T(this,Ks,Ji).call(this),T(this,_1,Q3).call(this,t))},x1=new WeakSet,sy=function(e){if(me.isGecko){const t=h.query.getEventTarget(e),i=h.query.getParentElement(t,".se-select-item");i&&o(this,$e).eventManager._injectActiveEvent(i)}},M1=new WeakSet,iy=function(e){var d,u,f;const t=h.query.getEventTarget(e);h.utils.addClass(this.form,"se-select-menu-mouse-move");const i=(d=t.closest)==null?void 0:d.call(t,"[data-child-index]"),n=i==null?void 0:i.getAttribute("data-child-index");if(n!=null){E(this,ks,Number(n));const p=o(this,kt).get(o(this,ht));if(p!=null&&p.element){const m=p.element.querySelectorAll(".se-select-item");h.utils.removeClass(m,"se-select-cursor"),h.utils.addClass(m[o(this,ks)],"se-select-cursor")}return}const r=(u=t.closest)==null?void 0:u.call(t,"[data-index]"),a=r==null?void 0:r.getAttribute("data-index");if(!a)return;const c=Number(a);if(this.index=c,o(this,kt).has(c))o(this,dn)&&Ki.clearTimeout(o(this,dn)),T(this,Co,oc).call(this,c);else if(o(this,ht)>-1){const p=o(this,kt).get(o(this,ht));(f=p==null?void 0:p.element)!=null&&f.contains(t)||T(this,Ks,Ji).call(this)}},B1=new WeakSet,ny=function(e){let t=h.query.getEventTarget(e),i=null,n=null;for(;!i&&!n&&!/UL/i.test(t.tagName)&&!h.utils.hasClass(t,"se-select-menu");)n=t.getAttribute("data-child-index"),n||(i=t.getAttribute("data-index")),t=t.parentElement;if(n!==null){let a=t,c=null;for(;!c&&a;)c=a.getAttribute("data-parent-index")||a.getAttribute("data-index"),a=a.parentElement;c!==null&&T(this,td,$0).call(this,Number(c),Number(n));return}if(!i)return;const r=Number(i);if(o(this,kt).has(r)){o(this,ht)===r?T(this,Ks,Ji).call(this):T(this,Co,oc).call(this,r);return}T(this,id,V0).call(this,r)},N1=new WeakSet,oy=function(e){var t;if(xe.isEsc(e.code)){if(o(this,ht)>-1){e.preventDefault(),e.stopPropagation();const i=o(this,ht);T(this,Ks,Ji).call(this),T(this,tl,$h).call(this,i);return}if((t=this.subEscMethod)!=null&&t.call(this)){e.preventDefault(),e.stopPropagation();return}this.close()}},L1=new WeakSet,ry=function(e){var i;const t=h.query.getEventTarget(e);this.form.contains(t)||(i=o(this,$e).ui.opendControllers)!=null&&i.some(({form:n})=>{var r;return((r=n==null?void 0:n.contains)==null?void 0:r.call(n,t))&&!n.contains(o(this,Ei))})||(o(this,Ei).contains(t)?h.check.isInputElement(t)||E(this,cn,o(this,$e).eventManager.addGlobalEvent("click",o(this,an).click,!0)):this.close())},A1=new WeakSet,ly=function(e){E(this,cn,o(this,$e).eventManager.removeGlobalEvent(o(this,cn))),e.target===o(this,Ei)&&(e.stopPropagation(),this.close())};const Vh=PN,{_w:W2}=me;function HN(s,e){return!s||typeof s!="string"?"":s.charAt(0)==="<"?s:e[s]||""}function FN(s,e){return`<button type="button" class="se-cmd-row">${e?`<span class="se-block-menu-icon">${e}</span><span class="se-block-menu-label">${s}</span>`:`<span class="se-block-menu-label se-block-menu-label-full">${s}</span>`}</button>`}var Fe,rd,il,wo,nl,ko,Qt,ol,un,ld,D0,rl,Rh,$1,ay,O1,cy,ad,P0,Si,no,V1,dy;class WN{constructor(e,t,i){b(this,ld);b(this,rl);b(this,$1);b(this,O1);b(this,ad);b(this,Si);b(this,V1);b(this,Fe,void 0);b(this,rd,void 0);b(this,il,void 0);b(this,wo,null);b(this,nl,void 0);b(this,ko,new Map);b(this,Qt,null);b(this,ol,[]);b(this,un,[]);Mr(this,"selectMenu");var r;E(this,Fe,t),E(this,rd,i.resolveButton),E(this,il,Array.isArray(i.items)?i.items:[]),E(this,nl,typeof i.renderCustomItem=="function"?i.renderCustomItem:null);const n=(r=i.selectMenuParams)==null?void 0:r.closeMethod;this.selectMenu=new Vh(t,{...i.selectMenuParams,closeMethod:()=>{T(this,Si,no).call(this),T(this,rl,Rh).call(this),n==null||n()},subEscMethod:()=>{if(!o(this,Qt))return!1;const a=o(this,Qt).anchorLi;T(this,Si,no).call(this);const c=a?Number(a.getAttribute("data-index")):NaN;return Number.isNaN(c)||this.selectMenu.setItem(c),!0}})}attach(e,t,i={}){this.selectMenu.on(e,t,i),o(this,Fe).eventManager.addEvent(this.selectMenu.form,"mousedown",n=>{me.isMobile?o(this,Fe).store.set("_preventBlur",!0):n.preventDefault()}),o(this,Fe).eventManager.addEvent(this.selectMenu.form,"mousemove",T(this,O1,cy).bind(this))}setItems(e){E(this,il,Array.isArray(e)?e:[]),E(this,wo,null)}getItems(){var t,i;if(o(this,wo))return o(this,wo);const e=[];for(const n of o(this,il))if(typeof n=="string"){const r=o(this,rd).call(this,n,o(this,Fe).plugins,o(this,Fe).options,o(this,Fe).icons,o(this,Fe).lang);if(!r)continue;const a=r.type||"";if(/dropdown-free/.test(a)){e.push({kind:"dropdownFree",title:r.title,iconHTML:r.icon||"",search:(r.title+" "+n).toLowerCase(),name:n,type:a});continue}if(/dropdown/.test(a)){const c=((i=(t=o(this,Fe).menu)==null?void 0:t.itemsMap)==null?void 0:i[n])||[];if(c.length>0){e.push({kind:"submenu",title:r.title,iconHTML:r.icon||"",search:(r.title+" "+n).toLowerCase(),name:n,children:c.map(d=>({pluginName:n,element:d._element})),childMenus:c.map(d=>{var m,g;const u=((m=d._element)==null?void 0:m.querySelector(".se-list-icon"))||((g=d._element)==null?void 0:g.querySelector("svg")),f=u?u.outerHTML:"";return`<span class="se-block-submenu-item">${f?`${f}<span>${d.title}</span>`:d.title}</span>`})});continue}}e.push({kind:"plugin",title:r.title,iconHTML:r.icon||"",search:(r.title+" "+n).toLowerCase(),name:n,type:a,command:r.command})}else if(n&&typeof n=="object"&&typeof n.action=="function"){const r=n.title||n.key||"",a=Array.isArray(n.keywords)?n.keywords.join(" "):"";e.push({kind:"custom",title:r,iconHTML:HN(n.icon,o(this,Fe).icons),search:(r+" "+a).toLowerCase(),raw:n})}return E(this,wo,e),e}filter(e,t=1/0){const i=this.getItems(),n=(e||"").toLowerCase().trim(),r=[];for(const a of i)if((!n||a.search.indexOf(n)!==-1)&&r.push(a),r.length>=t)break;return r}renderRows(e){const t={icons:o(this,Fe).icons},i=`<span class="se-submenu-arrow">${o(this,Fe).icons.menu_arrow_right}</span>`;return e.map(n=>{if(n.kind==="custom"&&o(this,nl))return o(this,nl).call(this,n.raw,t);const r=FN(n.title,n.iconHTML);return n.kind==="dropdownFree"?r+i:r})}createRows(e){T(this,rl,Rh).call(this);const t=e.map(i=>i.kind==="submenu"?{children:i.children,childMenus:i.childMenus}:i);this.selectMenu.create(t,this.renderRows(e)),o(this,ko).clear(),o(this,ol).length=0,e.forEach((i,n)=>{i.kind==="dropdownFree"&&o(this,ko).set(n,{name:i.name,plugin:o(this,Fe).plugins[i.name],li:this.selectMenu.menus[n]}),(i.kind==="plugin"||i.kind==="dropdownFree")&&o(this,ol).push({name:i.name,idx:n})}),this.selectMenu.isOpen&&T(this,ld,D0).call(this)}open(e){this.selectMenu.open(e),o(this,un).length===0&&T(this,ld,D0).call(this)}close(){T(this,rl,Rh).call(this),this.selectMenu.close()}hasOpenSubPanel(){return this.selectMenu.hasOpenSubmenu()||!!o(this,Qt)}setItem(e){this.selectMenu.setItem(e)}setHidden(e){this.selectMenu.setHidden(e)}get isOpen(){return this.selectMenu.isOpen}dispatch(e,t){var a,c,d,u,f,p;if(!e)return!1;const i=e;if(i.pluginName&&i.element){const m=o(this,Fe).plugins[i.pluginName];return(a=m==null?void 0:m.action)==null||a.call(m,i.element),o(this,Fe).history.push(!1),!0}const n=e;if(n.kind==="custom"){try{n.raw.action(o(this,Fe),t)}catch(m){console.error("[SUNEDITOR.commandMenu.customAction]",m)}return!1}if(n.kind==="dropdownFree"){const m=o(this,Fe).plugins[n.name];if(!m)return!1;if(((c=o(this,Qt))==null?void 0:c.plugin)===m)return T(this,Si,no).call(this),!1;const g=this.selectMenu.items.indexOf(n),y=g>=0?this.selectMenu.menus[g]:null;return y&&T(this,ad,P0).call(this,n.name,m,y),!1}const r=n.name?o(this,Fe).plugins[n.name]:null;if(r){const m=n.type||"";return/modal/.test(m)?(d=r.open)==null||d.call(r):/browser/.test(m)?(u=r.open)==null||u.call(r,null):/popup/.test(m)?(f=r.show)==null||f.call(r):(p=r.action)==null||p.call(r,h.utils.createElement("BUTTON",{type:"button","data-command":n.name})),o(this,Fe).history.push(!1),!0}return n.command&&o(this,Fe).commandDispatcher.run(n.command,null,null),!1}}Fe=new WeakMap,rd=new WeakMap,il=new WeakMap,wo=new WeakMap,nl=new WeakMap,ko=new WeakMap,Qt=new WeakMap,ol=new WeakMap,un=new WeakMap,ld=new WeakSet,D0=function(){const e=o(this,Fe).commandDispatcher;for(const{name:t,idx:i}of o(this,ol)){const n=T(this,$1,ay).call(this,i);n&&(e.registerTargets(t,n),o(this,un).push({name:t,target:n}))}o(this,Fe).store.set("_lastSelectionNode",null),o(this,Fe).eventManager.applyTagEffect()},rl=new WeakSet,Rh=function(){if(o(this,un).length===0)return;const e=o(this,Fe).commandDispatcher;for(const{name:t,target:i}of o(this,un))e.unregisterTargets(t,i);o(this,un).length=0},$1=new WeakSet,ay=function(e){const t=this.selectMenu.menus[e];return t?t.querySelector("button.se-cmd-row")||t:null},O1=new WeakSet,cy=function(e){var a,c,d,u;if(o(this,ko).size===0)return;const t=e.target;if((c=(a=o(this,Qt))==null?void 0:a.dropdown)!=null&&c.contains(t))return;const i=(d=t.closest)==null?void 0:d.call(t,"li[data-index]");if(!i)return;const n=Number(i.getAttribute("data-index")),r=o(this,ko).get(n);r?((u=o(this,Qt))==null?void 0:u.plugin)!==r.plugin&&T(this,ad,P0).call(this,r.name,r.plugin,r.li):o(this,Qt)&&T(this,Si,no).call(this)},ad=new WeakSet,P0=function(e,t,i){var c,d,u;o(this,Qt)&&T(this,Si,no).call(this);const n=(d=(c=o(this,Fe).menu)==null?void 0:c.targetMap)==null?void 0:d[e];if(!n||!this.selectMenu.form)return;const r=n.parentNode;this.selectMenu.form.appendChild(n),T(this,V1,dy).call(this,n,i,this.selectMenu.form),h.utils.addClass(i,"se-submenu-open"),(u=t.on)==null||u.call(t,i);const a=o(this,Fe).menu.subscribeDropdownOff(()=>{T(this,Si,no).call(this),this.selectMenu.close()});E(this,Qt,{dropdown:n,plugin:t,originalParent:r,anchorLi:i,unsub:a})},Si=new WeakSet,no=function(){var t,i,n;const e=o(this,Qt);e&&(E(this,Qt,null),(t=e.unsub)==null||t.call(e),e.dropdown.style.cssText="",e.dropdown.style.display="none",e.anchorLi&&h.utils.removeClass(e.anchorLi,"se-submenu-open"),e.originalParent&&e.originalParent!==e.dropdown.parentNode&&e.originalParent.appendChild(e.dropdown),(n=(i=e.plugin)==null?void 0:i.off)==null||n.call(i))},V1=new WeakSet,dy=function(e,t,i){const n=t.getBoundingClientRect(),r=i.getBoundingClientRect(),a=!!o(this,Fe).options.get("_rtl");e.style.position="absolute",e.style.right="",e.style.visibility="hidden",e.style.display="block";const c=e.offsetWidth,d=e.offsetHeight,u=W2.innerWidth,f=W2.innerHeight,p=4,m=n.right+p,g=n.left-c-p,y=Math.max(0,m+c-u),v=Math.max(0,-g),C=a?"left":"right";let w;C==="right"?y===0?w=m:v===0?w=g:y<=v?w=m-y:w=g+v:v===0?w=g:y===0?w=m:v<=y?w=g+v:w=m-y,e.style.left=w-r.left+"px";const k=n.top,_=n.bottom-d,M=Math.max(0,k+d-f),S=Math.max(0,-_);let x;M===0?x=k:S===0?x=_:M<=S?x=k-M:x=_+S,e.style.top=x-r.top+"px",e.style.visibility=""};const zN=WN,{_w:kh,_d:z2,NO_EVENT:jN}=me;var cd,ll,al,dd,hn,_o;class UN{constructor(e,t,i){b(this,cd,void 0);b(this,ll,void 0);b(this,al,void 0);b(this,dd,null);b(this,hn,null);b(this,_o,[]);E(this,cd,i),E(this,ll,e.frameContext),E(this,al,t.frameOptions),this.events=t.options.get("events")||{},this.triggerEvent=async(n,r)=>{var c;if(h.check.isNonEditable((c=r==null?void 0:r.frameContext)==null?void 0:c.get("wysiwyg")))return!1;const a=this.events[n];if(typeof a=="function")try{return await a({$:o(this,cd),...r})}catch(d){return console.error(`[SUNEDITOR.triggerEvent.${n}]`,d),!1}return jN}}_bindOrchestrator(e){E(this,dd,e)}applyTagEffect(e){var t;return(t=o(this,dd))==null?void 0:t.applyTagEffect(e)}addEvent(e,t,i,n){if(!e||((e===kh||e===z2||typeof e.length!="number"||e.nodeType||!Array.isArray(e)&&e.length<1)&&(e=[e]),e.length===0))return null;const r=e.length;for(let a=0;a<r;a++)e[a].addEventListener(t,i,n),o(this,_o).push({target:e[a],type:t,listener:i,useCapture:n});return{target:e,type:t,listener:i,useCapture:n}}removeEvent(e){if(!e)return;let t=e.target;const i=e.type,n=e.listener,r=e.useCapture;if(t&&((t===kh||t===z2||typeof t.length!="number"||t.nodeType||!Array.isArray(t)&&t.length<1)&&(t=[t]),t.length!==0)){for(let a=0,c=t.length;a<c;a++)t[a].removeEventListener(i,n,r);return null}}addGlobalEvent(e,t,i){return o(this,al).get("iframe")&&o(this,ll).get("_ww").addEventListener(e,t,i),kh.addEventListener(e,t,i),{type:e,listener:t,useCapture:i}}removeGlobalEvent(e,t,i){if(e)return typeof e=="object"&&(t=e.listener,i=e.useCapture,e=e.type),o(this,al).get("iframe")&&o(this,ll).get("_ww").removeEventListener(e,t,i),kh.removeEventListener(e,t,i),null}_injectActiveEvent(e){h.utils.addClass(e,"__se__active"),E(this,hn,this.addGlobalEvent("mouseup",()=>{h.utils.removeClass(e,"__se__active"),E(this,hn,this.removeGlobalEvent(o(this,hn)))}))}_init(){for(let e=0,t=o(this,_o).length,i;e<t;e++)i=o(this,_o)[e],i.target.removeEventListener(i.type,i.listener,i.useCapture);E(this,_o,null),o(this,hn)&&E(this,hn,this.removeGlobalEvent(o(this,hn)))}}cd=new WeakMap,ll=new WeakMap,al=new WeakMap,dd=new WeakMap,hn=new WeakMap,_o=new WeakMap;const qN=UN;var et,as,ud,cl,Eo,Xe,Os,dl,ul,Ih,R1,uy,hd,H0,I1,hy,D1,fy;class ZN{constructor(e){b(this,ul);b(this,R1);b(this,hd);b(this,I1);b(this,D1);b(this,et,void 0);b(this,as,void 0);b(this,ud,void 0);b(this,cl,void 0);b(this,Eo,void 0);b(this,Xe,void 0);b(this,Os,void 0);b(this,dl,void 0);E(this,et,e.$),E(this,as,e.store),E(this,ud,o(this,et).contextProvider.shadowRoot),E(this,cl,o(this,et).contextProvider.carrierWrapper),E(this,Eo,o(this,et).context),E(this,Xe,o(this,et).frameContext),E(this,Os,o(this,et).options),E(this,dl,o(this,et).frameOptions)}get(e){const t=o(this,Xe).get("wysiwygFrame"),i=/iframe/i.test(t==null?void 0:t.nodeName),n=this.getLocal(e);return{left:n.left+(i?t.parentElement.offsetLeft:0),top:n.top+(i?t.parentElement.offsetTop:0)}}getLocal(e){const t=e;let i=0,n=0,r=0,a=0,c=0,d=t.nodeType===3?t.parentElement:t;const u=t.offsetWidth,f=r1(t,jn.bind(this)),p=d;for(;d&&!o1(d,"se-wrapper")&&d!==f;)i+=d.offsetLeft-(p!==d?d.scrollLeft:0),n+=d.offsetTop+(p!==d?d.scrollTop:0),d=d.offsetParent;const m=o(this,Xe).get("wysiwygFrame");o(this,Xe).get("wysiwyg").contains(t)&&(r=m.offsetLeft,a=m.offsetTop,c=m.parentElement.offsetWidth-(m.offsetLeft+m.offsetWidth));const g=o(this,Xe).get("eventWysiwyg");return i+=r-(f?f.scrollLeft:0),n+=a-(f?f.scrollTop:0),{left:i,top:n,right:d!=null&&d.offsetWidth?d.offsetWidth-(i-r+u)+c:0,scrollX:g.scrollLeft||g.scrollX||0,scrollY:g.scrollTop||g.scrollY||0,scrollH:o(this,Xe).get("wysiwyg").scrollHeight||0}}getGlobal(e){const t=o(this,Xe).get("topArea"),i=o(this,Xe).get("wysiwygFrame");if(e||(e=t),!Er(e))return{top:0,left:0,fixedTop:0,fixedLeft:0,width:0,height:0};const n=e,r=n.getBoundingClientRect();let a=r.top,c=r.left;if(/^iframe$/i.test(i.nodeName)&&i.contentDocument.contains(n)){const p=i.getBoundingClientRect();a+=p.top,c+=p.left}const u=he.scrollY,f=he.scrollX;return{top:a+u,left:c+f,fixedTop:a,fixedLeft:c,width:n.offsetWidth,height:n.offsetHeight}}getGlobalScroll(e){var B;const t=o(this,Xe).get("topArea");let i=!1,n=!1;e||(e=t),e===t&&(i=!0),!i&&Er(e)&&(n=he.getComputedStyle(e).position==="absolute");const r=e;let a=0,c=0,d=0,u=0,f=0,p=0,m=0,g=0,y=null,v=null,C=null,w=null,k=r;for(;k;)a+=k.scrollTop,c+=k.scrollLeft,d+=k.scrollHeight,u+=k.scrollWidth,k.scrollTop>0&&(p+=k.offsetTop),k.scrollHeight>=k.clientHeight&&(m=/^html$/i.test(k.nodeName)?m||k.clientHeight:k.clientHeight+(C?-C.clientTop:0),y=C||y||k,C=k),k.scrollLeft>0&&(f+=k.offsetLeft),k.scrollWidth>=k.clientWidth&&(g=/^html$/i.test(k.nodeName)?g||k.clientWidth:k.clientWidth+(w?-w.clientLeft:0),v=w||v||k,w=k),k=k.parentElement;if(!n&&!i&&/^iframe$/i.test(o(this,Xe).get("wysiwygFrame").nodeName))for(k=o(this,Xe).get("wrapper"),y=v=t;k;)a+=k.scrollTop,c+=k.scrollLeft,d+=k.scrollHeight,u+=k.scrollWidth,k.scrollTop>0&&(p+=k.offsetTop),k.scrollHeight>=k.clientHeight&&(m=/^html$/i.test(k.nodeName)?m||k.clientHeight:k.clientHeight+(C?-C.clientTop:0),C=k),k.scrollLeft>0&&(f+=k.offsetLeft),k.scrollWidth>=k.clientWidth&&(g=/^html$/i.test(k.nodeName)?g||k.clientWidth:k.clientWidth+(w?-w.clientLeft:0),w=k),k=k.parentElement;for(k=(B=o(this,ud))==null?void 0:B.host,k&&(y=v=t);k;)a+=k.scrollTop,c+=k.scrollLeft,d+=k.scrollHeight,u+=k.scrollWidth,k.scrollTop>0&&(p+=k.offsetTop),k.scrollHeight>=k.clientHeight&&(m=/^html$/i.test(k.nodeName)?m||k.clientHeight:k.clientHeight+(C?-C.clientTop:0),C=k),k.scrollLeft>0&&(f+=k.offsetLeft),k.scrollWidth>=k.clientWidth&&(g=/^html$/i.test(k.nodeName)?g||k.clientWidth:k.clientWidth+(w?-w.clientLeft:0),w=k),k=k.parentElement;const _=t.contains(y),M=t.contains(v);y=_?t:y,v=M?t:v;const S=y?y.getBoundingClientRect().top+(!y.parentElement||/^html$/i.test(y.parentElement.nodeName)?he.scrollY:0):0,x=v?v.getBoundingClientRect().left+(!v.parentElement||/^html$/i.test(v.parentElement.nodeName)?he.scrollX:0):0;m=_?t.clientHeight:m,g=M?t.clientWidth:g;const L=Qi(o(this,Xe).get("_wd"));return{top:a,left:c,ts:S,ls:x,width:u,height:d,x:f,y:p,ohOffsetEl:n?window:y,owOffsetEl:n?window:v,oh:n?L.h:m,ow:n?L.w:g,heightEditorRefer:_,widthEditorRefer:M}}getWWScroll(){var n,r;const e=o(this,Xe).get("eventWysiwyg"),t=e.scrollTop||e.scrollY||0,i=e.scrollHeight||((n=e.document)==null?void 0:n.documentElement.scrollHeight)||0;return{top:t,left:e.scrollLeft||e.scrollX||0,width:e.scrollWidth||((r=e.document)==null?void 0:r.documentElement.scrollWidth)||0,height:i,bottom:t+i}}setRelPosition(e,t,i,n,{preferUp:r}={}){const a=/^fixed$/i.test(he.getComputedStyle(n).position),c=this.getGlobal(i);if(a)e.style.position="fixed",r?e.style.top=`${c.fixedTop-e.offsetHeight}px`:e.style.top=`${c.fixedTop+c.height}px`;else{e.style.position="";const m=n.contains(e)?this.getGlobal(t).top:0,g=e.offsetHeight,y=he.scrollY,v=c.top;if(r){const C=m-y+v;if(C<g){const w=Qi(Ae).h-(m-y+v+i.offsetHeight);w>=g?e.style.top=`${v+i.offsetHeight}px`:w>C?(e.style.height=`${w}px`,e.style.top=`${v+i.offsetHeight}px`):(e.style.height=`${C}px`,e.style.top=`${-1*(C-v+3)}px`)}else e.style.top=`${v-g}px`}else{const C=Qi(Ae).h-(m-y+v+i.offsetHeight);if(C<g){let w=-1*(g-v+3);const k=m-y+w,_=g+(k<0?k:0);_>C?(e.style.height=`${_}px`,w=-1*(_-v+3)):(e.style.height=`${C}px`,w=v+i.offsetHeight),e.style.top=`${w}px`}else e.style.top=`${v+i.offsetHeight}px`}}const d=e.offsetWidth,u=c.left,f=this.getGlobal(n).left;if(o(this,Os).get("_rtl")){const p=i.getBoundingClientRect(),m=he.innerWidth;let g=m-p.right;if(d>0){const y=n.getBoundingClientRect();m-g-d<y.left&&(g=m-y.left-d)}e.style.left="auto",e.style.right=`${Math.max(0,g)}px`}else{const p=n.offsetWidth+f,m=p<=d?0:p-(u+d);e.style.right="",m<0?e.style.left=`${u+m}px`:e.style.left=`${u}px`}}setAbsPosition(e,t,i){var rt,Be;const n={left:0,right:0,top:0,...i.addOffset},r=i.position||"bottom",a=i.inst,c=!o(this,Os).get("_rtl");c||(n.left*=-1);const d=o(this,dl).get("iframe"),u=o(this,Xe).get("wrapper").contains(t)||i.isWWTarget||(d?o(this,Xe).get("wysiwyg").contains(t):!1),f=!!r1(t,".se-toolbar"),p=t.nodeType===1,m=u&&!p,g=p&&/inline/.test(he.getComputedStyle(t).display),y=Qi(Ae),v=m?this.getWWScroll():T(this,D1,fy).call(this),C=!u||!d&&p?t.getBoundingClientRect():o(this,et).selection.getRects(t,"start").rects,w=this.getGlobal(t),k=o1(e.firstElementChild,"se-arrow")?e.firstElementChild:null,_=((rt=i.sibling)==null?void 0:rt.offsetHeight)||0,M=k?k.offsetHeight:0,S=e.offsetHeight,x=t.offsetHeight,L=C.top,B=y.h-C.bottom,N=this.getGlobal(o(this,Xe).get("topArea")).top,O=he.scrollY,A=o(this,Eo).get("toolbar_main").offsetHeight,V=o(this,Os).get("toolbar_container"),R=o(this,as).mode.isBalloon||o(this,as).mode.isInline||V,$=V&&N-O-A>0||!o(this,et).toolbar.isSticky&&R?0:A+(o(this,et).toolbar.isSticky?o(this,Os).get("_toolbar_sticky"):0),D=((Be=o(this,Xe).get("statusbar"))==null?void 0:Be.offsetHeight)||0,{rmt:z,rmb:q,bMargin:F,rt:I}=T(this,hd,H0).call(this,L,B,$,y,C,m,f);if(u&&(q-D+x<=0||z+I+x-(o(this,et).toolbar.isSticky&&g?$:0)<=0)||z+x<0)return;const Z=o(this,Xe).get("topArea").getBoundingClientRect(),W=o(this,as).mode.isBottom?Z.bottom>=he.innerHeight-A:Z.top<=A,Y=o(this,et).toolbar.isSticky&&o(this,Eo).get("toolbar_main").style.display!=="none"&&(!R||W);let ne=n.top,K=0,J="";r==="bottom"?(J="up",ne+=C.bottom+M+O,K=q-(S+M),K-_<0&&(J="down",ne-=x+S+M*2,K=z-(S+M),K-_<0&&(J="",ne-=K-_-Math.max(1,K+S+M)))):(J="down",ne+=C.top-S-M+O,K=(Y&&!o(this,as).mode.isBottom?C.top-$:z)-S-M,K-_<0&&(J="up",ne+=x+S+M*2,K=(q>0?F:q)-(S+M)-D,K-_<0&&(J="",ne+=K-2))),T(this,I1,hy).call(this,k,J),e.style.top=`${ne}px`;const j=(e.nodeType===1?Q.get(he.getComputedStyle(e).borderRadius):0)||0,se=w.width,P=e.offsetWidth,X=k?k.offsetWidth:0,pe=C.left,fe=y.w-C.right;if(u&&(pe+se<=0||fe+se<=0))return;k&&(k.style.left="",k.style.right="");let Pe=n.left||(n.right?c?n.right-e.offsetWidth:e.offsetWidth-n.right:0),de=0,Me=0,ye=0;return c?(Pe+=C.left+he.scrollX-(pe<0?pe:0),de=se+pe,de<X&&(ye=X/2-1+(j<=2?0:j-2),Me=ye),de=se+fe-P,de<0&&(Pe+=de,ye=P-1-(X/2+(j<=2?0:j-2)),Me=-(de-X/2),Me=Me>ye?ye:Me),k&&Me>0&&(k.style.left=Me+"px")):(Pe+=C.right-P+he.scrollX+(fe<0?fe:0),de=se+fe,de<X&&(ye=X/2-1+(j<=2?0:j-2),Me=ye),de=se+pe-P,de<0&&(Pe-=de,ye=X/2-1+(j<=2?0:j-2),Me=-(de-X/2),Me=Me<ye?ye:Me>P-ye?P-ye:Me),k&&Me>0&&(k.style.right=Me+"px")),e.style.left=`${Pe}px`,a.__offset={left:e.offsetLeft+v.left,top:e.offsetTop+v.top,addOffset:n},{position:J==="up"?"bottom":"top"}}setRangePosition(e,t,{position:i,addTop:n}={}){e.style.top="-10000px",e.style.visibility="hidden",e.style.display="block";let r=i==="top";t||(t=o(this,et).selection.getRange());const a=o(this,et).selection.getRects(t,r?"start":"end");if(r=a.position==="start",a.rects.noText){let A=t.startContainer;A.nodeType===1&&(A=A.childNodes[t.startOffset]||A);const V=A.parentNode;if(V){const R=_3(a3);V.insertBefore(R,A);const $=Ae.createRange();$.setStart(R,1),$.setEnd(R,1);const D=$.getClientRects()[0];D&&(a.rects=D,a.scrollLeft=he.scrollX,a.scrollTop=he.scrollY),V.removeChild(R)}}const c=o(this,Xe).get("isFullScreen"),d=o(this,Xe).get("topArea"),u=o(this,cl).contains(e),f=a.rects,p=c?0:a.scrollLeft,m=c?0:a.scrollTop,g=u?Qi(Ae).w:d.offsetWidth,y=this.getGlobal(d),v=u?0:y.left,C=e.offsetWidth,w=e.offsetHeight;T(this,ul,Ih).call(this,r,f,e,v,g,p,m,n),this.getGlobal(e).top-y.top<0&&(r=!r,T(this,ul,Ih).call(this,r,f,e,v,g,p,m,n)),(C!==e.offsetWidth||w!==e.offsetHeight)&&T(this,ul,Ih).call(this,r,f,e,v,g,p,m,n);const k=!o(this,cl).contains(e),_=Qi(Ae),M=f.height,S=f.top,x=_.h-f.bottom,L=!o(this,et).toolbar.isSticky&&(o(this,as).mode.isBalloon||o(this,as).mode.isInline)?0:o(this,Eo).get("toolbar_main").offsetHeight,{rmt:B,rmb:N,rt:O}=T(this,hd,H0).call(this,S,x,L,_,f,k,!1);if(!(N+M<=0||B+O+M<=0))return e.style.visibility="",!0}}et=new WeakMap,as=new WeakMap,ud=new WeakMap,cl=new WeakMap,Eo=new WeakMap,Xe=new WeakMap,Os=new WeakMap,dl=new WeakMap,ul=new WeakSet,Ih=function(e,t,i,n,r,a,c,d=0){const f=i.querySelector(".se-arrow "),p=Math.round(f.offsetWidth/2),m=i.offsetWidth,g=t.noText&&!e?0:i.offsetHeight,y=(e?t.left:t.right)-n-m/2+a,v=y+m-r;let C=(e?t.top-g-p:t.bottom+p)-(t.noText?0:d)+c;const w=y<0?1:v<0?y:y-v-1-1;let k=!1;const _=C+(e?this.getGlobal(o(this,Xe).get("topArea")).top:i.offsetHeight-o(this,Xe).get("wysiwyg").offsetHeight);!e&&_>0&&T(this,R1,uy).call(this)<_?(e=!0,k=!0):e&&Ae.documentElement.offsetTop>_&&(e=!1,k=!0),k&&(C=(e?t.top-g-p:t.bottom+p)-(t.noText?0:d)+c),i.style.left=Math.floor(w)+"px",i.style.top=Math.floor(C)+"px",e?(ao(f,"se-arrow-up"),lo(f,"se-arrow-down")):(ao(f,"se-arrow-down"),lo(f,"se-arrow-up"));const M=Math.floor(m/2+(y-w));f.style.left=(M+p>i.offsetWidth?i.offsetWidth-p:M<p?p:M)+"px"},R1=new WeakSet,uy=function(){const e=o(this,Xe).get("topArea");return Ae.documentElement.scrollHeight-(this.getGlobal(e).top+e.offsetHeight)},hd=new WeakSet,H0=function(e,t,i,n,r,a,c){const d=o(this,et).selection.getRects(o(this,Xe).get("wysiwyg"),"start").rects;let u=0,f=0,p=0,m=0,g=0;const y=o(this,dl).get("iframe");m=r.top,g=n.h-r.bottom;const v=this.getGlobal(),C=o(this,as).mode.isBottom;if(a){p=!c&&!o(this,et).toolbar.isSticky&&!o(this,Os).get("toolbar_container")?i:0;const w=y?0:v.top-he.scrollY+p,k=y?0:o(this,as).get("currentViewportHeight")-(v.top+v.height-he.scrollY);let _=w,M=k;C?(i>k?o(this,et).toolbar.isSticky?M=i:M=k+i:o(this,Os).get("toolbar_container")&&!o(this,et).toolbar.isSticky?i=0:M=k+i,u=r.top-(d.top-w),f=d.bottom-(r.bottom-M)+i,f=f>0?f:f-i):(i>w?o(this,et).toolbar.isSticky?_=i:_=w+i:o(this,Os).get("toolbar_container")&&!o(this,et).toolbar.isSticky?i=0:_=w+i,u=r.top-(d.top-_)+i,f=d.bottom-(r.bottom-k),u=u>0?u:u-i)}else{const w=v.fixedTop>0?v.fixedTop:0,k=he.innerHeight-(v.fixedTop+v.height);p=!c&&(o(this,et).toolbar.isSticky||!o(this,et).toolbar.isBalloonMode)?i:0,C?(u=m-(c?0:w),f=g-(k>0?k:0)-p):(u=m-(c?0:w)-p,f=g-(k>0?k:0))}return{rmt:u,rmb:f,rt:p,tMargin:m,bMargin:g}},I1=new WeakSet,hy=function(e,t){t==="up"?(e&&(e.style.visibility=""),lo(e,"se-arrow-up"),ao(e,"se-arrow-down")):t==="down"?(e&&(e.style.visibility=""),lo(e,"se-arrow-down"),ao(e,"se-arrow-up")):e&&(e.style.visibility="hidden")},D1=new WeakSet,fy=function(){const e=Qi(Ae);return{top:he.scrollY,left:he.scrollX,width:e.w,height:e.h,bottom:he.scrollY+e.h,rects:{left:0,top:0,right:he.innerWidth,bottom:o(this,as).get("currentViewportHeight")||he.innerHeight,noText:!0}}};const GN=ZN,{_w:wt}=me;var To,Oe,Mt,hl,So,fd,qe,xi,fl,pd,md,P1,py,gd,F0,vd,W0,pl,Dh;class YN{constructor(e){b(this,P1);b(this,gd);b(this,vd);b(this,pl);b(this,To,void 0);b(this,Oe,void 0);b(this,Mt,void 0);b(this,hl,void 0);b(this,So,void 0);b(this,fd,void 0);b(this,qe,void 0);b(this,xi,void 0);b(this,fl,void 0);b(this,pd,0);b(this,md,!1);E(this,To,e),E(this,Oe,e.$),E(this,Mt,e.store),E(this,hl,o(this,Oe).contextProvider.shadowRoot),E(this,So,o(this,Oe).instanceCheck),E(this,fd,o(this,Oe).context),E(this,qe,o(this,Oe).frameContext),E(this,xi,o(this,Oe).options),E(this,fl,o(this,Oe).frameOptions),this.range=null,this.selectionNode=null,this.__iframeFocus=!1}get(){var t;let e=null;return typeof((t=o(this,hl))==null?void 0:t.getSelection)=="function"?e=o(this,hl).getSelection():e=o(this,qe).get("_ww").getSelection(),e?(!o(this,Mt).get("_range")&&!o(this,qe).get("wysiwyg").contains(e.focusNode)&&(e.removeAllRanges(),e.addRange(T(this,pl,Dh).call(this))),e):null}isRange(e){return o(this,So).isRange(e)}getRange(){const e=o(this,Mt).get("_range")||T(this,pl,Dh).call(this),t=this.get();if(e.collapsed===t.isCollapsed||!o(this,qe).get("wysiwyg").contains(t.focusNode)){if(o(this,Oe).component.is(e.startContainer)){const i=o(this,Oe).component.get(e.startContainer),n=i==null?void 0:i.container;return n?this.setRange(n,0,n,1):e}return e}if(t.rangeCount>0){const i=t.getRangeAt(0);return o(this,Mt).set("_range",i),i}else{const i=t.anchorNode,n=t.focusNode,r=t.anchorOffset,a=t.focusOffset,c=h.query.compareElements(i,n),d=c.ancestor&&(c.result===0?r<=a:c.result>1);return this.setRange(d?i:n,d?r:a,d?n:i,d?a:r)}}setRange(e,t,i,n){var p,m,g;let r,a,c,d;if(this.isRange(e)){const y=e;r=y.startContainer,a=y.startOffset,c=y.endContainer,d=y.endOffset}else r=e,a=t,c=i,d=n;if(!r||!c)return;(h.check.isBreak(r)||r.nodeType===3)&&a>r.textContent.length&&(a=r.textContent.length),(h.check.isBreak(c)||c.nodeType===3)&&d>c.textContent.length&&(d=c.textContent.length),o(this,Oe).format.isLine(r)&&(r=r.childNodes[a>0?r.childNodes.length-1:0]||r,a=a>0?r.nodeType===1&&!h.check.isBreak(r)?1:r.textContent?r.textContent.length:0:0),o(this,Oe).format.isLine(c)&&(c=c.childNodes[d>0?c.childNodes.length-1:0]||c,d=d>0?c.nodeType===1&&!h.check.isBreak(c)?1:c.textContent?c.textContent.length:0:0);const u=o(this,qe).get("_wd").createRange();try{a=Math.min(a,((p=r.textContent)==null?void 0:p.length)||0),d=d>0&&(((m=c.textContent)==null?void 0:m.length)||0)===0&&c.nodeType===1?1:Math.min(Math.max(d,0),((g=c.textContent)==null?void 0:g.length)||0),u.setStart(r,a),u.setEnd(c,d),o(this,Mt).set("hasFocus",!0)}catch(y){console.warn("[SUNEDITOR.selection.focus.warn]",y.message),o(this,Oe).focusManager.nativeFocus();return}const f=this.get();return f.removeAllRanges&&f.removeAllRanges(),f.addRange(u),o(this,Mt).set("_range",u),T(this,gd,F0).call(this,u,this.get()),o(this,fl).get("iframe")&&this.__focus(),u}removeRange(){o(this,Mt).set("_range",null),o(this,Mt).set("_lastSelectionNode",null),this.selectionNode=null,o(this,Mt).get("hasFocus")&&this.get().removeAllRanges(),o(this,To)._eventOrchestrator.selectionState.reset()}getNearRange(e){const t=e.nextSibling,i=e.previousSibling;return t?{container:t,offset:0}:i?{container:i,offset:1}:null}getRangeAndAddLine(e,t){if(T(this,vd,W0).call(this,e)){const i=(t==null?void 0:t.parentElement)||o(this,qe).get("wysiwyg"),n=h.utils.createElement(o(this,xi).get("defaultLine"),null,"<br>");i.insertBefore(n,t&&t!==i?t.previousElementSibling?t.nextElementSibling:t:i.firstElementChild),this.setRange(n.firstElementChild,0,n.firstElementChild,1),e=o(this,Mt).get("_range")}return e}getNode(){if(o(this,qe).get("wysiwyg").contains(this.selectionNode)||this.init(),!this.selectionNode){const e=h.query.getEdgeChild(o(this,qe).get("wysiwyg").firstChild,t=>t.childNodes.length===0||t.nodeType===3,!1);if(!e)this.init();else return this.selectionNode=e,e}return this.selectionNode}getRects(e,t){const i=h.check.isElement(e)?wt.getComputedStyle(e).position==="absolute":!1;e=!e||h.check.isText(e)?this.getRange():e;let n=t==="start",r=wt.scrollX,a=wt.scrollY,c=e.getClientRects();if(c=c[n?0:c.length-1],!c){const u=this.getNode();if(o(this,Oe).format.isLine(u)){const f=h.utils.createTextNode(Ie.zeroWidthSpace);o(this,Oe).html.insertNode(f,{afterNode:null,skipCharCount:!0}),this.setRange(f,1,f,1),this.init(),c=this.getRange().getClientRects(),c=c[n?0:c.length-1]}if(!c){const f=o(this,Oe).offset.get(u);c={left:f.left,top:f.top,right:f.left+u.offsetWidth,bottom:f.top+u.offsetHeight,noText:!0},r=0,a=0}n=!0}const d=/^iframe$/i.test(o(this,qe).get("wysiwygFrame").nodeName)?o(this,qe).get("wysiwygFrame").getClientRects()[0]:null;return!i&&d&&(c={left:c.left+d.left,top:c.top+d.top,right:c.right+d.right-d.width,bottom:c.bottom+d.bottom-d.height}),{rects:c,position:n?"start":"end",scrollLeft:r,scrollTop:a}}getDragEventLocationRange(e){const t=o(this,qe).get("_wd");let i,n,r,a,c;return t.caretPositionFromPoint?(i=t.caretPositionFromPoint(e.clientX,e.clientY),n=i.offsetNode,r=i.offset,a=i.offsetNode,c=i.offset):t.caretRangeFromPoint&&(i=t.caretRangeFromPoint(e.clientX,e.clientY),n=i.startContainer,r=i.startOffset,a=i.endContainer,c=i.endOffset),{sc:n,so:r,ec:a,eo:c}}scrollTo(e,t){var x,L,B,N;const i=t==null?void 0:t.noFocus;if(o(this,So).isSelection(e))e=e.getRangeAt(0);else if(o(this,So).isNode(e))if(i){const O=o(this,qe).get("_wd").createRange();O.selectNodeContents(e),e=O}else e=this.setRange(e,1,e,1);else typeof(e==null?void 0:e.startContainer)>"u"&&console.warn('[SUNEDITOR.html.scrollTo.warn] "selectionRange" must be Selection or Range or Node object.',e);const n=h.query.getParentElement(e==null?void 0:e.startContainer,O=>O.nodeType===1);if(!n)return;t={behavior:"smooth",block:"nearest",inline:"nearest",...t},delete t.noFocus;const r=o(this,qe).get("_ww"),a=o(this,qe).get("wysiwygFrame"),c=o(this,fl).get("iframe"),d=!o(this,Mt).get("isScrollable")(o(this,qe)),u=o(this,Mt).get("currentViewportHeight"),f=d?wt.scrollY:c?r.scrollY:a.scrollTop,p=o(this,Mt).mode.isBottom,m=o(this,fd).get("toolbar_main").offsetHeight,g=o(this,Oe).toolbar.isSticky?m:0,y=o(this,Oe).toolbar.isSticky?g+o(this,xi).get("_toolbar_sticky"):g,v=((x=o(this,qe).get("statusbar"))==null?void 0:x.offsetHeight)||0;if(o(this,md)){const O=o(this,Oe).format.isBrLine(n)?(L=e==null?void 0:e.getBoundingClientRect)==null?void 0:L.call(e):null;if((O==null?void 0:O.height)>0?T(this,P1,py).call(this,O,t.behavior):n==null||n.scrollIntoView(t),(t==null?void 0:t.behavior)==="auto")if(y&&!p){const A=(B=e==null?void 0:e.getBoundingClientRect)==null?void 0:B.call(e);(A==null?void 0:A.height)>0&&A.top>=0&&A.top<y&&wt.scrollBy(0,-(y-A.top))}else f!==wt.scrollY&&(y?f<wt.scrollY&&wt.scrollBy(0,y):d&&wt.scrollBy(0,v));return}const C=o(this,pd),w=d?u-(p?y:0):a.offsetHeight,k=(N=e==null?void 0:e.getBoundingClientRect)==null?void 0:N.call(e),_=((k==null?void 0:k.height)>0?k.height:n.offsetHeight)||0,M=t==null?void 0:t.behavior,S=p?0:y;if(d)if(c){const O=this.getRects(e,"end").rects,A=O.top+_-S,V=w-C-(O.top+_);if(A>=0&&V>=0)return;const R=f-(A<0?-(A-C):V),$=S>0&&A<0;wt.scrollTo({top:$?R-S:R,behavior:M})}else{const O=(k==null?void 0:k.height)>0?k.top+f:o(this,Oe).offset.getGlobal(n).top,A=w+f-O-_,V=O-f,R=S>0?V>=S:w>A+C;if(A-C>0&&R)return;const $=A<=C?f-A+C+v:f-A+(w-_-C),D=S>0&&!R;wt.scrollTo({top:D?$-S:$,behavior:M})}else{const A=(k==null?void 0:k.height)>0?k.top:n.getBoundingClientRect().top,V=c?A:A-a.getBoundingClientRect().top,$=V>=(p?0:g)&&V+C<=w,D=p?V-C>0?V+C-w+g:V-_:V-C>0?V+C-w:V-(g+_);let z=f+D;const q=wt.scrollY,F=o(this,Oe).offset.getGlobal(),I=p?0:m,Z=p?m:0,W=q-F.top+I,Y=F.top+F.height-(q+u)+Z;if(W>0){const ne=($?V:V+f-z)-_-C-W;ne<0&&(z+=I,wt.scrollTo({top:q+ne,behavior:"smooth"}))}if(Y>0){const ne=($?V:V+f-z)+_+C-(F.height-Y);ne>0&&(z+=p?Z:v,wt.scrollTo({top:q+ne,behavior:"smooth"}))}$||(c?r:a).scrollTo({top:z,behavior:M})}}resetRangeToTextNode(){let e=this.getRange();if(T(this,vd,W0).call(this,e)){if(!h.check.isWysiwygFrame(e.startContainer)||!h.check.isWysiwygFrame(e.endContainer))return!1;const p=e.commonAncestorContainer,m=p.children[e.startOffset],g=p.children[e.endOffset];if(!(e=this.setRange(m,0,g,m===g?0:1)))return!1}const t=e,i=t.collapsed;let n=t.startContainer,r=t.startOffset,a=t.endContainer,c=t.endOffset,d,u,f;if(o(this,Oe).format.isLine(n))for(n.childNodes[r]?(n=n.childNodes[r]||n,r=0):(n=n.lastChild||n,r=n.textContent.length);(n==null?void 0:n.nodeType)===1&&n.firstChild;)n=n.firstChild||n,r=0;if(o(this,Oe).format.isLine(a)){for(a=a.childNodes[c]||a.lastChild||a;(a==null?void 0:a.nodeType)===1&&a.lastChild;)a=a.lastChild;i?c=0:c>0&&(c=a.textContent.length)}if(d=h.check.isWysiwygFrame(n)?o(this,qe).get("wysiwyg").firstChild:n,u=r,h.check.isBreak(d)||d.nodeType===1&&d.childNodes.length>0){const p=h.check.isBreak(d);if(!p){const m=d;for(;d&&!h.check.isBreak(d)&&d.nodeType===1&&(f=d.childNodes,f.length!==0);)d=f[u>0?u-1:u]||!/FIGURE/i.test(f[0].nodeName)?f[0]:d.previousElementSibling||d.previousSibling||n,u=u>0?d.textContent.length:u;let g=o(this,Oe).format.getLine(d,null);g===o(this,Oe).format.getBlock(g,null)&&(d||(d=m),g=h.utils.createElement(h.query.getParentElement(d,h.check.isTableCell)?"DIV":o(this,xi).get("defaultLine")),d.parentNode.insertBefore(g,d),d!==m&&g.appendChild(d))}if(h.check.isBreak(d)||o(this,Oe).component.is(d)){const m=h.utils.createTextNode(Ie.zeroWidthSpace);d.parentNode.insertBefore(m,d),d=m,p&&n===a&&(a=d,c=1)}}if(n=d,r=u,d=h.check.isWysiwygFrame(a)?o(this,qe).get("wysiwyg").lastChild:a,u=c,h.check.isBreak(d)||d.nodeType===1&&d.childNodes.length>0){const p=h.check.isBreak(d);if(!p){for(;d&&!h.check.isBreak(d)&&d.nodeType===1&&(f=d.childNodes,f.length!==0);)d=f[u>0?u-1:u]||!/FIGURE/i.test(f[0].nodeName)?f[0]:d.previousElementSibling||d.previousSibling||n,u=u>0?d.textContent.length:u;let m=o(this,Oe).format.getLine(d,null);m===o(this,Oe).format.getBlock(m,null)&&(m=h.utils.createElement(h.check.isTableCell(m)?"DIV":o(this,xi).get("defaultLine")),d.parentNode.insertBefore(m,d),m.appendChild(d))}if(h.check.isBreak(d)){const m=h.utils.createTextNode(Ie.zeroWidthSpace);d.parentNode.insertBefore(m,d),d=m,u=1,p&&!d.previousSibling&&h.utils.removeItem(a)}}return a=d,c=u,this.setRange(n,r,a,c),!0}init(){const e=o(this,qe).get("_wd").activeElement;if(h.check.isInputElement(e))return this.selectionNode=e,e;const t=this.get();if(!t)return null;let i=null;t.rangeCount>0?i=t.getRangeAt(0):i=T(this,pl,Dh).call(this),T(this,gd,F0).call(this,i,t)}__focus(){try{this.__iframeFocus=!0;const e=h.query.getParentElement(this.getNode(),"figcaption");e?e.focus():o(this,qe).get("wysiwyg").focus()}finally{wt.setTimeout(()=>this.__iframeFocus=!1,0)}}__init(){var e,t;E(this,md,((e=o(this,To)._eventOrchestrator.scrollparents)==null?void 0:e.length)>0),E(this,pd,(t=o(this,qe))!=null&&t.get("wysiwyg")?(Q.get(wt.getComputedStyle(o(this,qe).get("wysiwyg")).scrollMargin,0)||40)+Q.get(wt.getComputedStyle(o(this,qe).get("wrapper")).paddingBottom,0):40)}}To=new WeakMap,Oe=new WeakMap,Mt=new WeakMap,hl=new WeakMap,So=new WeakMap,fd=new WeakMap,qe=new WeakMap,xi=new WeakMap,fl=new WeakMap,pd=new WeakMap,md=new WeakMap,P1=new WeakSet,py=function(e,t){let{top:i,bottom:n}=e;const r=[...o(this,To)._eventOrchestrator.scrollparents||[],wt];for(const a of r){const c=a===wt,d=c?0:a.getBoundingClientRect().top,u=c?o(this,Mt).get("currentViewportHeight"):a.getBoundingClientRect().bottom;let f=0;i<d?f=i-d:n>u&&(f=n-u),f!==0&&(a.scrollBy({top:f,behavior:t}),i-=f,n-=f)}},gd=new WeakSet,F0=function(e,t){let i=null;o(this,Mt).set("_range",e),e.collapsed?h.check.isWysiwygFrame(e.commonAncestorContainer)?i=e.commonAncestorContainer.children[e.startOffset]||e.commonAncestorContainer:i=e.commonAncestorContainer:i=t.anchorNode,this.selectionNode=i},vd=new WeakSet,W0=function(e){var i;const t=e.commonAncestorContainer;return h.check.isWysiwygFrame(e.startContainer)&&h.check.isWysiwygFrame(e.endContainer)||/FIGURE/i.test(t.nodeName)||o(this,Oe).pluginManager.fileInfo.regExp.test(t.nodeName)&&(!o(this,Oe).pluginManager.fileInfo.tagAttrs[t.nodeName]||((i=o(this,Oe).pluginManager.fileInfo.tagAttrs[t.nodeName])==null?void 0:i.every(n=>t.hasAttribute(n))))||o(this,Oe).component.is(t)},pl=new WeakSet,Dh=function(){const e=o(this,qe).get("wysiwyg"),t=o(this,qe).get("_wd").createRange();let i=e.firstElementChild,n=null;return i?(n=i.firstChild,n||(n=h.utils.createElement("BR"),i.appendChild(n))):(n=h.utils.createElement("BR"),i=h.utils.createElement(o(this,xi).get("defaultLine"),null,n),e.appendChild(i)),t.setStart(n,0),t.setEnd(n,0),t};const KN=YN;var ue,Xs,Bt,xo,ml,gl,vl,yl,Cl,bl,wl,fn,Or,yd,z0;class XN{constructor(e){b(this,fn);b(this,yd);b(this,ue,void 0);b(this,Xs,void 0);b(this,Bt,void 0);b(this,xo,void 0);b(this,ml,void 0);b(this,gl,void 0);b(this,vl,void 0);b(this,yl,void 0);b(this,Cl,void 0);b(this,bl,void 0);b(this,wl,null);E(this,ue,e.$),E(this,Xs,e.store),E(this,Bt,o(this,ue).options),E(this,xo,o(this,ue).frameContext),E(this,ml,o(this,Bt).get("formatLine").reg),E(this,gl,o(this,Bt).get("formatBrLine").reg),E(this,vl,o(this,Bt).get("formatBlock").reg),E(this,yl,o(this,Bt).get("formatClosureBlock").reg),E(this,Cl,o(this,Bt).get("formatClosureBrLine").reg),E(this,bl,new RegExp("^("+o(this,Bt).get("textStyleTags")+")$","i")),this.__resetBrLineBreak(o(this,Bt).get("defaultLineBreakFormat"))}setLine(e){if(!this.isLine(e))throw new Error('[SUNEDITOR.format.setLine.fail] The "element" must satisfy "format.isLine()".');const t=T(this,yd,z0).call(this),i=t.lines,n=e.className,r=e.nodeName;let a=t.firstNode,c=t.lastNode;for(let d=0,u=i.length,f,p;d<u;d++)f=i[d],(f.nodeName!==r||(f.className.match(/(\s|^)__se__format__[^\s]+/)||[""])[0].trim()!==n)&&!o(this,ue).component.is(f)&&(p=e.cloneNode(!1),h.utils.copyFormatAttributes(p,f),p.innerHTML=f.innerHTML,f.parentNode.replaceChild(p,f)),d===0&&(a=p||f),d===u-1&&(c=p||f),p=null;o(this,ue).selection.setRange(h.query.getNodeFromPath(t.firstPath,a),t.startOffset,h.query.getNodeFromPath(t.lastPath,c),t.endOffset),o(this,ue).history.push(!1),o(this,xo).has("documentType_use_header")&&o(this,xo).get("documentType").reHeader()}getLine(e,t){if(!e)return null;for(t||(t=()=>!0);e;){if(h.check.isWysiwygFrame(e))return null;if(this.isBlock(e)){if(this.isLine(e.firstElementChild))return e.firstElementChild;if(this.isLine(e))return e}if(this.isLine(e)&&t(e))return e;e=e.parentNode}return null}setBrLine(e){if(!this.isBrLine(e))throw new Error('[SUNEDITOR.format.setBrLine.fail] The "element" must satisfy "format.isBrLine()".');const t=T(this,yd,z0).call(this).lines,i=t.length-1;let n=t[i].parentNode,r=e.cloneNode(!1);const a=r;for(let c=i,d,u,f,p,m,g,y=!0;c>=0;c--)if(d=t[c],d!==(t[c+1]?t[c+1].parentNode:null)){if(g=o(this,ue).component.is(d),u=g?"":d.innerHTML.replace(/(?!>)\s+(?=<)|\n/g," "),f=h.query.getParentElement(d,v=>v.parentNode===n),(n!==d.parentNode||g)&&(this.isLine(n)?(n.parentNode.insertBefore(r,n.nextSibling),n=n.parentNode):(n.insertBefore(r,f?f.nextSibling:null),n=d.parentNode),p=r.nextSibling,p&&r.nodeName===p.nodeName&&h.check.isSameAttributes(r,p)&&(r.innerHTML+="<BR>"+p.innerHTML,h.utils.removeItem(p)),r=e.cloneNode(!1),y=!0),m=r.innerHTML,r.innerHTML=(y||!u||!m||/<br>$/i.test(u)?u:u+"<BR>")+m,c===0){n.insertBefore(r,d),p=d.nextSibling,p&&r.nodeName===p.nodeName&&h.check.isSameAttributes(r,p)&&(r.innerHTML+="<BR>"+p.innerHTML,h.utils.removeItem(p));const v=r.previousSibling;v&&r.nodeName===v.nodeName&&h.check.isSameAttributes(r,v)&&(v.innerHTML+="<BR>"+r.innerHTML,h.utils.removeItem(r))}g||h.utils.removeItem(d),u&&(y=!1)}o(this,ue).selection.setRange(a,0,a,0),o(this,ue).history.push(!1)}getBrLine(e,t){if(!e)return null;for(t||(t=()=>!0);e;){if(h.check.isWysiwygFrame(e))return null;if(this.isBrLine(e)&&t(e))return e;e=e.parentNode}return null}addLine(e,t){if(!e||!e.parentNode)return null;const i=this.getLine(o(this,ue).selection.getNode(),null);let n=null;if(!this.isBrLine(e)&&this.isBrLine(i||e.parentNode)&&!o(this,ue).component.is(e))n=h.utils.createElement("BR");else{const r=t?typeof t=="string"?t:t.nodeName:this.isNormalLine(i)?i.nodeName:o(this,Bt).get("defaultLine");n=h.utils.createElement(r,null,"<br>"),(t&&typeof t!="string"||!t&&this.isLine(i))&&h.utils.copyTagAttributes(n,t||i,["id"])}return h.check.isTableCell(e)?e.insertBefore(n,e.nextElementSibling):e.parentNode.insertBefore(n,e.nextElementSibling),n}addLineAfter(e){if(!e||!e.parentNode)return null;const t=e.nodeName,i=o(this,Bt).get("lineAttrReset");let n;return/^H[1-6]$|^HR$/i.test(t)?n=h.utils.createElement(o(this,Bt).get("defaultLine"),null,"<br>"):this.isBrLine(e)?n=h.utils.createElement(o(this,Bt).get("defaultLine"),null,"<br>"):(n=h.utils.createElement(t,null,"<br>"),h.utils.copyTagAttributes(n,e,i)),h.check.isTableCell(e)?e.insertBefore(n,e.nextElementSibling):e.parentNode.insertBefore(n,e.nextElementSibling),n}getBlock(e,t){if(!e)return null;for(t||(t=()=>!0);e;){if(h.check.isWysiwygFrame(e))return null;if(this.isBlock(e)&&!/^(THEAD|TBODY|TR)$/i.test(e.nodeName)&&t(e))return e;e=e.parentNode}return null}applyBlock(e){o(this,ue).selection.getRangeAndAddLine(o(this,ue).selection.getRange(),null);const t=this.getLinesAndComponents(!1);if(!t||t.length===0)return;e:for(let g=0,y=t.length,v,C,w,k,_,M;g<y;g++)if(v=t[g],!!h.check.isListCell(v)&&(C=v.lastElementChild,C&&h.check.isListCell(v.nextElementSibling)&&t.includes(v.nextElementSibling)&&(k=C.lastElementChild,t.includes(k)))){let S=null;for(;S=k.lastElementChild;)if(h.check.isList(S))if(t.includes(S.lastElementChild))k=S.lastElementChild;else continue e;w=C.firstElementChild,_=t.indexOf(w),M=t.indexOf(k),t.splice(_,M-_+1),y=t.length;continue}const i=t.at(-1);let n,r,a;this.isBlock(i)||this.isLine(i)?n=i:n=this.getBlock(i,null)||this.getLine(i,null),h.check.isTableCell(n)?(r=null,a=n):(r=n.nextSibling,a=n.parentNode);const c=e.cloneNode(!1);let d=h.query.getNodeDepth(n),u=null;const f=[],p=(g,y,v)=>{let C=null;if(g!==y&&!h.check.isTableElements(y)){if(y&&h.query.getNodeDepth(g)===h.query.getNodeDepth(y))return v;C=o(this,ue).nodeTransform.removeAllParents(y,null,g)}return C?C.ec:v};for(let g=0,y=t.length,v,C,w,k,_,M,S;g<y;g++)if(v=t[g],C=v.parentNode,!(!C||c.contains(C)))if(w=h.query.getNodeDepth(v),h.check.isList(C)){if(u===null&&(M?(u=M,S=!0,M=null):u=C.cloneNode(!1)),f.push(v),_=t[g+1],g===y-1||(_==null?void 0:_.parentNode)!==C){v.contains(_==null?void 0:_.parentNode)&&(M=_.parentNode.cloneNode(!1));let x=C.parentNode,L;for(;h.check.isList(x);)L=h.utils.createElement(x.nodeName),L.appendChild(u),u=L,x=x.parentNode;const B=this.removeBlock(C,{selectedFormats:f,newBlockElement:null,shouldDelete:!0,skipHistory:!0});d>=w?(d=w,a=B.cc,r=p(a,C,B.ec),r&&(a=r.parentNode)):a===B.cc&&(r=B.ec),a!==B.cc&&(k=p(a,B.cc,k),k!==void 0?r=k:r=B.cc);for(let N=0,O=B.removeArray.length;N<O;N++)u.appendChild(B.removeArray[N]);S||c.appendChild(u),M&&B.removeArray.at(-1).appendChild(M),u=null,S=!1}}else d>=w&&(d=w,a=C,r=v.nextSibling),c.appendChild(v),a!==C&&(k=p(a,C),k!==void 0&&(r=k));if(o(this,Xs).set("_lastSelectionNode",null),o(this,ue).nodeTransform.mergeSameTags(c,null,!1),o(this,ue).nodeTransform.mergeNestedTags(c,g=>h.check.isList(g)),r&&h.query.getNodeDepth(r)>0&&(h.check.isList(r.parentNode)||h.check.isList(r.parentNode.parentNode))){const g=h.query.getParentElement(r,v=>this.isBlock(v)&&!h.check.isList(v)),y=o(this,ue).nodeTransform.split(r,null,g?h.query.getNodeDepth(g)+1:0);y.parentNode.insertBefore(c,y)}else a.insertBefore(c,r),p(c,r);const m=h.query.getEdgeChildNodes(c.firstElementChild,c.lastElementChild);t.length>1?o(this,ue).selection.setRange(m.sc,0,m.ec,m.ec.textContent.length):o(this,ue).selection.setRange(m.ec,m.ec.textContent.length,m.ec,m.ec.textContent.length),o(this,ue).history.push(!1)}removeBlock(e,{selectedFormats:t,newBlockElement:i,shouldDelete:n,skipHistory:r}={}){const a=o(this,ue).selection.getRange();let c=a.startOffset,d=a.endOffset,u=h.query.getListChildNodes(e,null,1),f=e.parentNode,p=null,m=null,g=e.cloneNode(!1);const y=[],v=h.check.isList(i);let C=!1,w=!1,k=!1;const _=(L,B,N,O)=>{if(B.childNodes.length===1&&h.check.isZeroWidth(B)&&(B.innerHTML=Ie.zeroWidthSpace,c=d=1),B.nodeType===3)return L.insertBefore(B,N),B;const A=(k?B:O).childNodes;let V=B.cloneNode(!1),R=null,$=null;for(;A[0];)$=A[0],this._isNotTextNode($)&&!h.check.isBreak($)&&!h.check.isListCell(V)?(V.childNodes.length>0&&(R||(R=V),L.insertBefore(V,N),V=B.cloneNode(!1)),L.insertBefore($,N),R||(R=$)):V.appendChild($);if(V.childNodes.length>0){if(h.check.isListCell(L)&&h.check.isListCell(V)&&h.check.isList(N))if(v){for(R=N;N;)V.appendChild(N),N=N.nextSibling;L.parentNode.insertBefore(V,L.nextElementSibling)}else{const D=O.nextElementSibling,z=o(this,ue).listFormat.removeNested(O,!1);if(e!==z||D!==O.nextElementSibling){const q=V.childNodes;for(;q[0];)O.appendChild(q[0]);e=z,w=!0}}else L.insertBefore(V,N);R||(R=V)}return R};for(let L=0,B=u.length,N,O,A;L<B;L++)if(N=u[L],!(N.nodeType===3&&h.check.isList(g)))if(k=!1,n&&L===0&&(!t||t.length===B||t[0]===N?p=e.previousSibling:p=g),t&&(O=t.indexOf(N)),t&&O===-1)g||(g=e.cloneNode(!1)),g.appendChild(N);else{if(t&&(A=t[O+1]),g&&g.children.length>0&&(f.insertBefore(g,e),g=null),!v&&h.check.isListCell(N))if(A&&h.query.getNodeDepth(N)!==h.query.getNodeDepth(A)&&(h.check.isListCell(f)||h.utils.arrayFind(N.children,h.check.isList))){const V=N.nextElementSibling,R=o(this,ue).listFormat.removeNested(N,!1);(e!==R||V!==N.nextElementSibling)&&(e=R,w=!0)}else{const V=N;N=h.utils.createElement(n?V.nodeName:h.check.isList(e.parentNode)||h.check.isListCell(e.parentNode)?"LI":h.check.isTableCell(e.parentNode)?"DIV":o(this,Bt).get("defaultLine"));const R=h.check.isListCell(N),$=V.childNodes;for(;$[0]&&!(h.check.isList($[0])&&!R);)N.appendChild($[0]);h.utils.copyFormatAttributes(N,V),k=!0}else N=N.cloneNode(!1);if(!w&&(n?(y.push(N),h.utils.removeItem(u[L])):(i?(C||(f.insertBefore(i,e),C=!0),N=_(i,N,null,u[L])):N=_(f,N,e,u[L]),w||(t?(m=N,p||(p=N)):p||(p=m=N))),w)){w=k=!1,u=h.query.getListChildNodes(e,null,1),g=e.cloneNode(!1),f=e.parentNode,L=-1,B=u.length;continue}}const M=e.parentNode;let S=e.nextSibling;(g==null?void 0:g.children.length)>0&&M.insertBefore(g,S),i?p=i.previousSibling:p||(p=e.previousSibling),S=e.nextSibling!==g?e.nextSibling:g?g.nextSibling:null,e.children.length===0||e.textContent.length===0?h.utils.removeItem(e):o(this,ue).nodeTransform.removeEmptyNode(e,null,!1);let x=null;if(o(this,Xs).set("_lastSelectionNode",null),n)x={cc:M,sc:p,so:c,ec:S,eo:d,removeArray:y};else{p||(p=m),m||(m=p);const L=h.query.getEdgeChildNodes(p,m!=null&&m.parentNode?p:m);L?x={cc:(L.sc||L.ec).parentNode,sc:L.sc,so:c,ec:L.ec,eo:d,removeArray:null}:o(this,ue).focusManager.focus()}if(r)return x;!n&&x&&(t?o(this,ue).selection.setRange(x.sc,c,x.ec,d):o(this,ue).selection.setRange(x.sc,0,x.sc,0)),o(this,ue).history.push(!1)}indent(){const e=o(this,ue).selection.getRange(),t=e.startContainer,i=e.endContainer,n=e.startOffset,r=e.endOffset,a=this.getLines(null),c=j2(a,o(this,Xs).get("indentSize"),o(this,Bt).get("_rtl")?"marginRight":"marginLeft");c.length>0&&o(this,ue).listFormat.applyNested(c,!1),o(this,Xs).set("_lastSelectionNode",null),o(this,ue).selection.setRange(t,n,i,r),o(this,ue).history.push(!1)}outdent(){const e=o(this,ue).selection.getRange(),t=e.startContainer,i=e.endContainer,n=e.startOffset,r=e.endOffset,a=this.getLines(null),c=j2(a,o(this,Xs).get("indentSize")*-1,o(this,Bt).get("_rtl")?"marginRight":"marginLeft");c.length>0&&o(this,ue).listFormat.applyNested(c,!0),o(this,Xs).set("_lastSelectionNode",null),o(this,ue).selection.setRange(t,n,i,r),o(this,ue).history.push(!1)}isEdgeLine(e,t,i){var a;if(i==="front"){if(t>0)return!1}else if(((a=e==null?void 0:e.textContent)==null?void 0:a.length)>t)return!1;let n=!1;const r=i==="front"?"previousSibling":"nextSibling";for(;e&&!this.isLine(e)&&!h.check.isWysiwygFrame(e);)if(!e[r]||h.check.isBreak(e[r])&&!e[r][r])n=!0,e=e.parentNode;else return!1;return n}isTextStyleNode(e){return typeof e=="string"?o(this,bl).test(e):(e==null?void 0:e.nodeType)===1&&o(this,bl).test(e.nodeName)}isLine(e){return typeof e=="string"?o(this,ml).test(e):(e==null?void 0:e.nodeType)===1&&(o(this,ml).test(e.nodeName)||h.utils.hasClass(e,"__se__format__line_.+|__se__format__br_line_.+"))&&!T(this,fn,Or).call(this,e)}isNormalLine(e){return this.isLine(e)&&(o(this,wl)||!this.isBrLine(e))&&!this.isBlock(e)}isBrLine(e){return o(this,wl)&&this.isLine(e)||(typeof e=="string"?o(this,gl).test(e):(e==null?void 0:e.nodeType)===1&&(o(this,gl).test(e.nodeName)||h.utils.hasClass(e,"__se__format__br_line_.+"))&&!T(this,fn,Or).call(this,e))}isBlock(e){return typeof e=="string"?o(this,vl).test(e):(e==null?void 0:e.nodeType)===1&&(o(this,vl).test(e.nodeName)||h.utils.hasClass(e,"__se__format__block_.+"))&&!T(this,fn,Or).call(this,e)}isClosureBlock(e){return typeof e=="string"?o(this,yl).test(e):(e==null?void 0:e.nodeType)===1&&(o(this,yl).test(e.nodeName)||h.utils.hasClass(e,"__se__format__block_closure_.+"))&&!T(this,fn,Or).call(this,e)}isClosureBrLine(e){return typeof e=="string"?o(this,Cl).test(e):(e==null?void 0:e.nodeType)===1&&(o(this,Cl).test(e.nodeName)||h.utils.hasClass(e,"__se__format__br_line__closure_.+"))&&!T(this,fn,Or).call(this,e)}getLines(e){if(!o(this,ue).selection.resetRangeToTextNode())return[];let t=o(this,ue).selection.getRange();if(h.check.isWysiwygFrame(t.startContainer)){const v=o(this,xo).get("wysiwyg").children,C=v.length;if(C===0)return[];o(this,ue).selection.setRange(v[0],0,v[C-1],v[C-1].textContent.trim().length),t=o(this,ue).selection.getRange()}const i=t.startContainer,n=t.endContainer,r=t.commonAncestorContainer;e||(e=this.isLine.bind(this));const a=h.query.getListChildren(r,v=>e(v),null);if((r.nodeType===3||!h.check.isWysiwygFrame(r)&&!this.isBlock(r))&&a.unshift(this.getLine(r,null)),i===n||a.length===1)return a;const c=this.getLine(i,null),d=this.getLine(n,null);let u=null,f=null;const p=function(v){return h.check.isTableElements(v)?/^TABLE$/i.test(v.nodeName):!0};let m=this.getBlock(c,p),g=this.getBlock(d,p);h.check.isTableElements(m)&&h.check.isListCell(m.parentNode)&&(m=m.parentNode),h.check.isTableElements(g)&&h.check.isListCell(g.parentNode)&&(g=g.parentNode);const y=m===g;for(let v=0,C=a.length,w;v<C;v++){if(w=a[v],c===w||!y&&w===m){u=v;continue}if(d===w||!y&&w===g){f=v;break}}return u===null&&(u=0),f===null&&(f=a.length-1),a.slice(u,f+1)}getLinesAndComponents(e){const t=o(this,ue).selection.getRange().commonAncestorContainer,i=h.query.getParentElement(t,o(this,ue).component.is.bind(o(this,ue).component)),n=h.check.isTableElements(t)?this.getLines(null):this.getLines(r=>{const a=h.query.getParentElement(r,o(this,ue).component.is.bind(o(this,ue).component));return this.isLine(r)&&(!a||a===i)||h.check.isComponentContainer(r)&&!this.getLine(r)});if(e){for(let r=0,a=n.length;r<a;r++)for(let c=r-1;c>=0;c--)if(n[c].contains(n[r])){n.splice(r,1),r--,a--;break}}return n}_isNotTextNode(e){if(!e)return!1;const t=/^(br|input|select|canvas|img|iframe|audio|video)$/i;return typeof e=="string"?t.test(e):e.nodeType===1&&(o(this,ue).component.is(e)||t.test(e.nodeName))}_isExcludeSelectionElement(e){return!/FIGCAPTION/i.test(e.nodeName)&&(o(this,ue).component.is(e)||/FIGURE/i.test(e.nodeName))}__resetBrLineBreak(e){return E(this,wl,e==="br")}}ue=new WeakMap,Xs=new WeakMap,Bt=new WeakMap,xo=new WeakMap,ml=new WeakMap,gl=new WeakMap,vl=new WeakMap,yl=new WeakMap,Cl=new WeakMap,bl=new WeakMap,wl=new WeakMap,fn=new WeakSet,Or=function(e){return h.check.isExcludeFormat(e)||o(this,ue).component.is(e)||h.check.isWysiwygFrame(e)},yd=new WeakSet,z0=function(){let e=o(this,ue).selection.getRange(),t=this.getLinesAndComponents(!1);if(t.length===0&&(e=o(this,ue).selection.getRangeAndAddLine(e,null),t=this.getLinesAndComponents(!1),t.length===0))return;const i=e.startOffset,n=e.endOffset;let r=t[0],a=t.at(-1);const c=h.query.getNodePath(e.startContainer,r,null),d=h.query.getNodePath(e.endContainer,a,null),u=o(this,ue).listFormat.remove(t,!1);return u.sc&&(r=u.sc),u.ec&&(a=u.ec),o(this,ue).selection.setRange(h.query.getNodeFromPath(c,r),i,h.query.getNodeFromPath(d,a),n),{lines:this.getLinesAndComponents(!1),firstNode:r,lastNode:a,firstPath:c,lastPath:d,startOffset:i,endOffset:n}};function j2(s,e,t){const i=[];for(let n=0,r=s.length,a,c;n<r;n++)a=s[n],h.check.isListCell(a)?(e<0||a.previousElementSibling)&&i.push(a):(c=/\d+/.test(a.style[t])?Q.get(a.style[t],0):0,c+=e,h.utils.setStyle(a,t,c<=0?"":c+"px"));return i}const QN=XN;var ge,Vs,pn,_s,H1,my,F1,gy,W1,vy,z1,yy,kl,Ph,j1,Cy,U1,by,mn,Vr,Mo,lc;class JN{constructor(e){b(this,H1);b(this,F1);b(this,W1);b(this,z1);b(this,kl);b(this,j1);b(this,U1);b(this,mn);b(this,Mo);b(this,ge,void 0);b(this,Vs,void 0);b(this,pn,void 0);b(this,_s,void 0);E(this,ge,e.$),E(this,Vs,o(this,ge).options),E(this,pn,o(this,Vs).get("__listCommonStyle")),E(this,_s,Se.camelToKebabCase(o(this,Vs).get("__listCommonStyle")))}apply(e,{stylesToModify:t,nodesToRemove:i,strictRemove:n}={}){if(h.query.getParentElement(o(this,ge).selection.getNode(),h.check.isNonEditable))return;o(this,ge).selection.resetRangeToTextNode();let r=o(this,ge).selection.getRangeAndAddLine(o(this,ge).selection.getRange(),null);t=(t==null?void 0:t.length)>0?t:null,i=(i==null?void 0:i.length)>0?i:null;const a=!e,c=a&&!i&&!t;let d=r.startContainer,u=r.startOffset,f=r.endContainer,p=r.endOffset;if(c&&r.collapsed&&o(this,ge).format.isLine(d.parentNode)&&o(this,ge).format.isLine(f.parentNode)||d===f&&d.nodeType===1&&h.check.isNonEditable(d)){const R=d.parentNode;if(!h.check.isListCell(R)||!Se.getValues(R.style).some($=>o(this,_s).includes($)))return}if(r.collapsed&&!c&&d.nodeType===1&&!h.check.isBreak(d)&&!o(this,ge).component.is(d)){let R=null;const $=d.childNodes[u];$&&($.nextSibling?R=h.check.isBreak($)?$:$.nextSibling:R=null);const D=h.utils.createTextNode(Ie.zeroWidthSpace);d.insertBefore(D,R),o(this,ge).selection.setRange(D,1,D,1),r=o(this,ge).selection.getRange(),d=r.startContainer,u=r.startOffset,f=r.endContainer,p=r.endOffset}o(this,ge).format.isLine(d)&&(d=d.childNodes[u]||d.firstChild,u=0),o(this,ge).format.isLine(f)&&(f=f.childNodes[p]||f.lastChild,p=f.textContent.length),a&&(e=h.utils.createElement("DIV"));const m=RegExp,g=e.nodeName;if(!c&&d===f&&!i&&e){let R=d,$=0;const D=[],z=e.style;for(let I=0,Z=z.length;I<Z;I++)D.push(z[I]);const q=e.className,F=e.classList;for(let I=0,Z=F.length;I<Z;I++)D.push("."+F[I]);if(D.length>0){for(;!o(this,ge).format.isLine(R)&&!h.check.isWysiwygFrame(R);){for(let I=0;I<D.length;I++)if(R.nodeType===1){const Z=D[I],W=/^\./.test(Z)?new m("\\s*"+Z.replace(/^\./,"")+"(\\s+|$)","ig"):!1,Y=R.style,ne=R.className,K=a?!!Y[Z]:!!Y[Z]&&!!z[Z]&&Y[Z]===z[Z],J=W===!1?!1:a?!!ne.match(W):!!ne.match(W)&&!!q.match(W);(K||J)&&$++}R=R.parentNode}if($>=D.length)return}}let y,v={},C={},w="",k="",_;if(t){for(let R=0,$=t.length,D;R<$;R++)D=t[R],/^\./.test(D)?k+=(k?"|":"\\s*(?:")+D.replace(/^\./,""):w+=(w?"|":"(?:;|^|\\s)(?:")+D;w&&(w+=")\\s*:[^;]*\\s*(?:;|$)",w=new m(w,"ig")),k&&(k+=")(?=\\s+|$)",k=new m(k,"ig"))}if(i){_="^(?:"+i[0];for(let R=1;R<i.length;R++)_+="|"+i[R];_+=")$",_=new m(_,"i")}const M={v:!1},S=function(R){const $=R.cloneNode(!1);if($.nodeType===3||h.check.isBreak($))return $;if(c)return null;const D=!_&&a||(_==null?void 0:_.test($.nodeName));if(D&&!n)return M.v=!0,null;const z=$.style.cssText;let q="";w&&z.length>0&&(q=z.replace(w,"").trim(),q!==z&&(M.v=!0));const F=$.className;let I="";return k&&F.length>0&&(I=F.replace(k,"").trim(),I!==F&&(M.v=!0)),a&&(k||!F)&&(w||!z)&&!q&&!I&&D?(M.v=!0,null):q||I||$.nodeName!==g||!!w!=!!z||!!k!=!!F?(w&&z.length>0&&($.style.cssText=q),$.style.cssText||$.removeAttribute("style"),k&&F.length>0&&($.className=I.trim()),$.className.trim()||$.removeAttribute("class"),!$.style.cssText&&!$.className&&($.nodeName===g||D)?(M.v=!0,null):$):(M.v=!0,null)},x=o(this,ge).format.getLines(null);if(x.length===0){console.warn("[SUNEDITOR.inline.apply.warn] There is no line to apply.");return}r=o(this,ge).selection.getRange(),d=r.startContainer,u=r.startOffset,f=r.endContainer,p=r.endOffset,o(this,ge).format.getLine(d,null)||(d=h.query.getEdgeChild(x[0],function(R){return R.nodeType===3},!1),u=0),o(this,ge).format.getLine(f,null)||(f=h.query.getEdgeChild(x.at(-1),function(R){return R.nodeType===3},!1),p=f.textContent.length);const L=o(this,ge).format.getLine(d,null)===o(this,ge).format.getLine(f,null),B=x.length-(L?0:1);y=e.cloneNode(!1);const N=c||a&&(R=>{for(let $=0,D=R==null?void 0:R.length;$<D;$++)if(this._isNonSplitNode(R[$]))return!0;return!1})(i),O=a||T(this,kl,Ph).call(this,y),A=T(this,j1,Cy).bind(this,N,O),V=T(this,U1,by).bind(this,N,O);if(L){T(this,Mo,lc).call(this,x[0],t)&&(r=o(this,ge).selection.setRange(d,u,f,p));const R=T(this,H1,my).call(this,x[0],y,S,d,u,f,p,c,a,r.collapsed,M,A,V);v.container=R.startContainer,v.offset=R.startOffset,C.container=R.endContainer,C.offset=R.endOffset,v.container===C.container&&h.check.isZeroWidth(v.container)&&(v.offset=C.offset=1),T(this,mn,Vr).call(this,R.ancestor,null)}else{let R=!1;B>0&&T(this,Mo,lc).call(this,x[B],t)&&(R=!0),T(this,Mo,lc).call(this,x[0],t)&&(R=!0),R&&o(this,ge).selection.setRange(d,u,f,p),B>0&&(y=e.cloneNode(!1),C=T(this,z1,yy).call(this,x[B],y,S,f,p,c,a,M,A,V));for(let $=B-1,D;$>0;$--)T(this,Mo,lc).call(this,x[$],t),y=e.cloneNode(!1),D=T(this,W1,vy).call(this,x[$],y,S,c,a,M,C.container),D.endContainer&&D.ancestor.contains(D.endContainer)&&(C.ancestor=null,C.container=D.endContainer),T(this,mn,Vr).call(this,D.ancestor,null);y=e.cloneNode(!1),v=T(this,F1,gy).call(this,x[0],y,S,d,u,c,a,M,A,V,C.container),v.endContainer&&(C.ancestor=null,C.container=v.endContainer),B<=0?C=v:C.container||(C.ancestor=null,C.container=v.container,C.offset=v.container.textContent.length),T(this,mn,Vr).call(this,v.ancestor,null),T(this,mn,Vr).call(this,C.ancestor||o(this,ge).format.getLine(C.container),null)}return o(this,ge).ui.offCurrentController(),o(this,ge).selection.setRange(v.container,v.offset,C.container,C.offset),o(this,ge).history.push(!1),y}remove(){this.apply(null,{stylesToModify:null,nodesToRemove:null,strictRemove:null})}_isNonSplitNode(e){if(!e)return!1;const t=/^(a|label|code|summary)$/i;return typeof e=="string"?t.test(e):e.nodeType===1&&t.test(e.nodeName)}_isIgnoreNodeChange(e){return e&&e.nodeType===1&&(h.check.isNonEditable(e)||!o(this,ge).format.isTextStyleNode(e)||o(this,ge).component.is(e))}}ge=new WeakMap,Vs=new WeakMap,pn=new WeakMap,_s=new WeakMap,H1=new WeakSet,my=function(e,t,i,n,r,a,c,d,u,f,p,m,g){let y=n.parentNode;for(;!y.nextSibling&&!y.previousSibling&&!o(this,ge).format.isLine(y.parentNode)&&!h.check.isWysiwygFrame(y.parentNode)&&y.nodeName!==t.nodeName;)y=y.parentNode;if(!u&&!d&&y===a.parentNode&&y.nodeName===t.nodeName&&h.check.isZeroWidth(n.textContent.slice(0,r))&&h.check.isZeroWidth(a.textContent.slice(c))){const K=y.childNodes;let J=!0;for(let j=0,se=K.length,P,X,pe,fe;j<se;j++){if(P=K[j],fe=!h.check.isZeroWidth(P),P===n||P===a){P===n&&(X=!0),P===a&&(pe=!0);continue}if(!X&&fe||X&&pe&&fe){J=!1;break}}if(J)return h.utils.copyTagAttributes(y,t),{ancestor:e,startContainer:n,startOffset:r,endContainer:a,endOffset:c}}p.v=!1;const v=this,C=e,w=[t],k=e.cloneNode(!1),_=n===a;let M=n,S=r,x=a,L=c,B=!1,N=!1,O,A,V,R,$;const D=RegExp;function z(K){const J=new D("(?:;|^|\\s)(?:"+R+"null)\\s*:[^;]*\\s*(?:;|$)","ig");let j=!1;return J&&K.style.cssText.length>0&&(j=J.test(K.style.cssText)),!j}if(function K(J,j){const se=J.childNodes;for(let P=0,X=se.length,pe;P<X;P++){const fe=se[P];if(!fe)continue;let Pe=j,de;if(!B&&fe===M){let Me=k;$=m(fe);let ye="",rt="";if(M.nodeType===3){const xt=M;ye=xt.substringData(0,S),rt=xt.substringData(S,_&&L>=S?L-S:xt.data.length-S)}const Be=h.utils.createTextNode(ye),Je=h.utils.createTextNode(rt);if($){const xt=m(j);if(xt.parentNode!==Me){let os=xt,Ci=null;for(;os.parentNode!==Me;){for(j=Ci=os.parentNode.cloneNode(!1);os.childNodes[0];)Ci.appendChild(os.childNodes[0]);os.appendChild(Ci),os=os.parentNode}os.parentNode.appendChild(xt)}$=$.cloneNode(!1)}h.check.isZeroWidth(Be)||j.appendChild(Be);const Ke=m(j);for(Ke&&($=Ke),$&&(Me=$),A=fe,O=[],R="";A!==Me&&A!==C&&A!==null;)pe=g(A)?null:i(A),pe&&A.nodeType===1&&z(A)&&(O.push(pe),R+=A.style.cssText.substring(0,A.style.cssText.indexOf(":"))+"|"),A=A.parentElement;const Kt=O.pop()||Je;for(V=A=Kt;O.length>0;)A=O.pop(),V.appendChild(A),V=A;if(t.appendChild(Kt),Me.appendChild(t),$&&!m(x)&&(t=t.cloneNode(!1),k.appendChild(t),w.push(t)),M=Je,S=0,B=!0,A!==Je&&A.appendChild(M),!_)continue}if(!N&&fe===x){$=m(fe);let Me="",ye="";if(x.nodeType===3){const Ke=x;Me=Ke.substringData(L,Ke.length-L),ye=_?"":Ke.substringData(0,L)}const rt=h.utils.createTextNode(Me),Be=h.utils.createTextNode(ye);if($?$=$.cloneNode(!1):g(t.parentNode)&&!$&&(t=t.cloneNode(!1),k.appendChild(t),w.push(t)),!h.check.isZeroWidth(rt)){A=fe,R="",O=[];const Ke=[];for(;A!==k&&A!==C&&A!==null;)A.nodeType===1&&z(A)&&(g(A)?Ke.push(A.cloneNode(!1)):O.push(A.cloneNode(!1)),R+=A.style.cssText.substring(0,A.style.cssText.indexOf(":"))+"|"),A=A.parentElement;for(O=O.concat(Ke),de=V=A=O.pop()||rt;O.length>0;)A=O.pop(),V.appendChild(A),V=A;k.appendChild(de),A.textContent=rt.data}if($&&de){const Ke=m(de);Ke&&($=Ke)}for(A=fe,O=[],R="";A!==k&&A!==C&&A!==null;)pe=g(A)?null:i(A),pe&&A.nodeType===1&&z(A)&&(O.push(pe),R+=A.style.cssText.substring(0,A.style.cssText.indexOf(":"))+"|"),A=A.parentElement;const Je=O.pop()||Be;for(V=A=Je;O.length>0;)A=O.pop(),V.appendChild(A),V=A;$?(t=t.cloneNode(!1),t.appendChild(Je),$.insertBefore(t,$.firstChild),k.appendChild($),w.push(t),$=null):t.appendChild(Je),x=Be,L=Be.data.length,N=!0,!d&&f&&(t=Be,Be.textContent=Ie.zeroWidthSpace),A!==Be&&A.appendChild(x);continue}if(B){if(fe.nodeType===1&&!h.check.isBreak(fe)){v._isIgnoreNodeChange(fe)?(k.appendChild(fe.cloneNode(!0)),f||(t=t.cloneNode(!1),k.appendChild(t),w.push(t))):K(fe,fe);continue}A=fe,O=[],R="";const Me=[];for(;A.parentNode!==null&&A!==C&&A!==t;)pe=N?A.cloneNode(!1):i(A),A.nodeType===1&&!h.check.isBreak(fe)&&pe&&z(A)&&(g(A)?$||Me.push(pe):O.push(pe),R+=A.style.cssText.substring(0,A.style.cssText.indexOf(":"))+"|"),A=A.parentElement;O=O.concat(Me);const ye=O.pop()||fe;for(V=A=ye;O.length>0;)A=O.pop(),V.appendChild(A),V=A;if(g(t.parentNode)&&!g(ye)&&!h.check.isZeroWidth(t)&&(t=t.cloneNode(!1),k.appendChild(t),w.push(t)),!N&&!$&&g(ye)){t=t.cloneNode(!1);const rt=ye.childNodes;for(let Be=0,Je=rt.length;Be<Je;Be++)t.appendChild(rt[Be]);ye.appendChild(t),k.appendChild(ye),w.push(t),t.children.length>0?j=A:j=t}else ye===fe?N?j=k:j=t:N?(k.appendChild(ye),j=A):(t.appendChild(ye),j=A);if($&&fe.nodeType===3)if(m(fe)){const rt=h.query.getParentElement(j,Be=>v._isNonSplitNode(Be.parentNode)||Be.parentNode===k);$.appendChild(rt),t=rt.cloneNode(!1),w.push(t),k.appendChild(t)}else $=null}de=fe.cloneNode(!1),j.appendChild(de),fe.nodeType===1&&!h.check.isBreak(fe)&&(Pe=de),K(fe,Pe)}}(e,k),u&&!d&&!p.v)return{ancestor:e,startContainer:n,startOffset:r,endContainer:a,endOffset:c};if(d&&(d=u),d)for(let K=0;K<w.length;K++){const J=w[K];let j,se,P;if(f)j=h.utils.createTextNode(Ie.zeroWidthSpace),k.replaceChild(j,J);else{const X=J.childNodes;for(se=X[0];X[0];)P=X[0],k.insertBefore(P,J);h.utils.removeItem(J)}K===0&&(f?M=x=j:(M=se,x=P))}else{if(u)for(let K=0;K<w.length;K++)_h(w[K]);f&&(M=x=t)}o(this,ge).nodeTransform.removeEmptyNode(k,t,!1),f&&(S=M.textContent.length,L=x.textContent.length);const q=d||x.textContent.length===0;!h.check.isBreak(x)&&x.textContent.length===0&&(h.utils.removeItem(x),x=M),L=q?x.textContent.length:L;const F={s:0,e:0},I=h.query.getNodePath(M,k,F),Z=!x.parentNode;Z&&(x=M);const W={s:0,e:0},Y=h.query.getNodePath(x,k,!Z&&!q?W:null);S+=F.s,L=f?S:Z?M.textContent.length:q?L+F.s:L+W.s;const ne=o(this,ge).nodeTransform.mergeSameTags(k,[I,Y],!0);return e.parentNode.replaceChild(k,e),M=h.query.getNodeFromPath(I,k),x=h.query.getNodeFromPath(Y,k),{ancestor:k,startContainer:M,startOffset:S+ne[0],endContainer:x,endOffset:L+ne[1]}},F1=new WeakSet,gy=function(e,t,i,n,r,a,c,d,u,f,p){let m=n.parentNode;for(;!m.nextSibling&&!m.previousSibling&&!o(this,ge).format.isLine(m.parentNode)&&!h.check.isWysiwygFrame(m.parentNode)&&m.nodeName!==t.nodeName;)m=m.parentNode;if(!c&&!a&&m.nodeName===t.nodeName&&!o(this,ge).format.isLine(m)&&!m.nextSibling&&h.check.isZeroWidth(n.textContent.slice(0,r))){let B=!0,N=n.previousSibling;for(;N;){if(!h.check.isZeroWidth(N)){B=!1;break}N=N.previousSibling}if(B)return h.utils.copyTagAttributes(m,t),{ancestor:e,container:n,offset:r}}d.v=!1;const g=this,y=e,v=[t],C=e.cloneNode(!1);let w=n,k=r,_=!1,M,S,x,L;if(function B(N,O){const A=N.childNodes;for(let V=0,R=A.length,$,D;V<R;V++){const z=A[V];if(!z)continue;let q=O;if(_&&!h.check.isBreak(z)){if(z.nodeType===1){if(g._isIgnoreNodeChange(z)){if(t=t.cloneNode(!1),D=z.cloneNode(!0),C.appendChild(D),C.appendChild(t),v.push(t),p&&z.contains(p)){const W=h.query.getNodePath(p,z);p=h.query.getNodeFromPath(W,D)}}else B(z,z);continue}S=z,M=[];const F=[];for(;S.parentNode!==null&&S!==y&&S!==t;)$=i(S),S.nodeType===1&&$&&(f(S)?L||F.push($):M.push($)),S=S.parentNode;M=M.concat(F);const I=M.length>0,Z=M.pop()||z;for(x=S=Z;M.length>0;)S=M.pop(),x.appendChild(S),x=S;if(f(t.parentNode)&&!f(Z)&&(t=t.cloneNode(!1),C.appendChild(t),v.push(t)),!L&&f(Z)){t=t.cloneNode(!1);const W=Z.childNodes;for(let Y=0,ne=W.length;Y<ne;Y++)t.appendChild(W[Y]);Z.appendChild(t),C.appendChild(Z),O=f(S)?t:S,v.push(t)}else I?(t.appendChild(Z),O=S):O=t;if(L&&z.nodeType===3)if(u(z)){const W=h.query.getParentElement(O,Y=>g._isNonSplitNode(Y.parentNode)||Y.parentNode===C);L.appendChild(W),t=W.cloneNode(!1),v.push(t),C.appendChild(t)}else L=null}if(!_&&z===w){let F=C;L=u(z);let I="",Z="";if(w.nodeType===3){const J=w;I=J.substringData(0,k),Z=J.substringData(k,J.length-k)}const W=h.utils.createTextNode(I),Y=h.utils.createTextNode(Z);if(L){const J=u(O);if(J&&J.parentNode!==F){let j=J,se=null;for(;j.parentNode!==F;){for(O=se=j.parentNode.cloneNode(!1);j.childNodes[0];)se.appendChild(j.childNodes[0]);j.appendChild(se),j=j.parentNode}j.parentNode.appendChild(J)}L=L.cloneNode(!1)}h.check.isZeroWidth(W)||O.appendChild(W);const ne=u(O);for(ne&&(L=ne),L&&(F=L),S=O,M=[];S!==F&&S!==null;)$=i(S),S.nodeType===1&&$&&M.push($),S=S.parentNode;const K=M.pop()||O;for(x=S=K;M.length>0;)S=M.pop(),x.appendChild(S),x=S;K!==O?(t.appendChild(K),O=S):O=t,h.check.isBreak(z)&&t.appendChild(z.cloneNode(!1)),F.appendChild(t),w=Y,k=0,_=!0,O.appendChild(w);continue}$=_?i(z):z.cloneNode(!1),$&&(O.appendChild($),z.nodeType===1&&!h.check.isBreak(z)&&(q=$)),B(z,q)}}(e,C),c&&!a&&!d.v)return{ancestor:e,container:n,offset:r,endContainer:p};if(a&&(a=c),a)for(let B=0;B<v.length;B++){const N=v[B],O=N.childNodes,A=O[0];for(;O[0];)C.insertBefore(O[0],N);h.utils.removeItem(N),B===0&&(w=A)}else if(c){t=t.firstChild;for(let B=0;B<v.length;B++)_h(v[B])}if(!a&&C.childNodes.length===0)e.childNodes?w=e.childNodes[0]:(w=h.utils.createTextNode(Ie.zeroWidthSpace),e.appendChild(w));else{o(this,ge).nodeTransform.removeEmptyNode(C,t,!1),h.check.isZeroWidth(C.textContent)&&(w=C.firstChild,k=0);const B={s:0,e:0},N=h.query.getNodePath(w,C,B);k+=B.s;const O=o(this,ge).nodeTransform.mergeSameTags(C,[N],!0);e.parentNode.replaceChild(C,e),w=h.query.getNodeFromPath(N,C),k+=O[0]}return{ancestor:C,container:w,offset:k,endContainer:p}},W1=new WeakSet,vy=function(e,t,i,n,r,a,c){if(!r){let m=null;c&&e.contains(c)&&(m=h.query.getNodePath(c,e));const g=e.cloneNode(!0),y=t.nodeName,v=t.style.cssText,C=t.className;let w=g.childNodes,k=0,_=w.length;for(let M;k<_&&(M=w[k],M.nodeType!==3);k++)if(M.nodeName===y)M.style.cssText+=v,h.utils.addClass(M,C);else{if(!h.check.isBreak(M)&&this._isIgnoreNodeChange(M))continue;if(_===1){w=M.childNodes,_=w.length,k=-1;continue}else break}if(_>0&&k===_)return e.innerHTML=g.innerHTML,{ancestor:e,endContainer:m?h.query.getNodeFromPath(m,e):null}}a.v=!1;const d=this,u=e.cloneNode(!1),f=[t];let p=!0;if(function m(g,y){const v=g.childNodes;for(let C=0,w=v.length,k,_;C<w;C++){const M=v[C];if(!M)continue;let S=y;if(!h.check.isBreak(M)&&d._isIgnoreNodeChange(M)){if(t.childNodes.length>0&&(u.appendChild(t),t=t.cloneNode(!1)),_=M.cloneNode(!0),u.appendChild(_),u.appendChild(t),f.push(t),y=t,c&&M.contains(c)){const x=h.query.getNodePath(c,M);c=h.query.getNodeFromPath(x,_)}continue}else k=i(M),k&&(p=!1,y.appendChild(k),M.nodeType===1&&(S=k));h.check.isBreak(M)||m(M,S)}}(e,t),p||r&&!n&&!a.v)return{ancestor:e,endContainer:c};if(u.appendChild(t),n&&r)for(let m=0;m<f.length;m++){const g=f[m],y=g.childNodes;for(;y[0];)u.insertBefore(y[0],g);h.utils.removeItem(g)}else if(r){t=t.firstChild;for(let m=0;m<f.length;m++)_h(f[m])}return o(this,ge).nodeTransform.removeEmptyNode(u,t,!1),o(this,ge).nodeTransform.mergeSameTags(u,null,!0),e.parentNode.replaceChild(u,e),{ancestor:u,endContainer:c}},z1=new WeakSet,yy=function(e,t,i,n,r,a,c,d,u,f){let p=n.parentNode;for(;!p.nextSibling&&!p.previousSibling&&!o(this,ge).format.isLine(p.parentNode)&&!h.check.isWysiwygFrame(p.parentNode)&&p.nodeName!==t.nodeName;)p=p.parentNode;if(!c&&!a&&p.nodeName===t.nodeName&&!o(this,ge).format.isLine(p)&&!p.previousSibling&&h.check.isZeroWidth(n.textContent.slice(r))){let L=!0,B=n.nextSibling;for(;B;){if(!h.check.isZeroWidth(B)){L=!1;break}B=B.nextSibling}if(L)return h.utils.copyTagAttributes(p,t),{ancestor:e,container:n,offset:r}}d.v=!1;const m=this,g=e,y=[t],v=e.cloneNode(!1);let C=n,w=r,k=!1,_,M,S,x;if(function L(B,N){const O=B.childNodes;for(let A=O.length-1,V;0<=A;A--){const R=O[A];if(!R)continue;let $=N;if(k&&!h.check.isBreak(R)){if(R.nodeType===1){if(m._isIgnoreNodeChange(R)){t=t.cloneNode(!1);const F=R.cloneNode(!0);v.insertBefore(F,N),v.insertBefore(t,F),y.push(t)}else L(R,R);continue}M=R,_=[];const D=[];for(;M.parentNode!==null&&M!==g&&M!==t;)V=i(M),V&&M.nodeType===1&&(f(M)?x||D.push(V):_.push(V)),M=M.parentNode;_=_.concat(D);const z=_.length>0,q=_.pop()||R;for(S=M=q;_.length>0;)M=_.pop(),S.appendChild(M),S=M;if(f(t.parentNode)&&!f(q)&&(t=t.cloneNode(!1),v.insertBefore(t,v.firstChild),y.push(t)),!x&&f(q)){t=t.cloneNode(!1);const F=q.childNodes;for(let I=0,Z=F.length;I<Z;I++)t.appendChild(F[I]);q.appendChild(t),v.insertBefore(q,v.firstChild),y.push(t),t.children.length>0?N=M:N=t}else z?(t.insertBefore(q,t.firstChild),N=M):N=t;if(x&&R.nodeType===3)if(u(R)){const F=h.query.getParentElement(N,I=>m._isNonSplitNode(I.parentNode)||I.parentNode===v);x.appendChild(F),t=F.cloneNode(!1),y.push(t),v.insertBefore(t,v.firstChild)}else x=null}if(!k&&R===C){x=u(R);let D="",z="";if(C.nodeType===3){const Z=C;D=Z.substringData(w,Z.length-w),z=Z.substringData(0,w)}const q=h.utils.createTextNode(D),F=h.utils.createTextNode(z);if(x){x=x.cloneNode(!1);const Z=u(N);if(Z.parentNode!==v){let W=Z,Y=null;for(;W.parentNode!==v;){for(N=Y=W.parentNode.cloneNode(!1);W.childNodes[0];)Y.appendChild(W.childNodes[0]);W.appendChild(Y),W=W.parentNode}W.parentNode.insertBefore(Z,W.parentNode.firstChild)}x=x.cloneNode(!1)}else f(t.parentNode)&&!x&&(t=t.cloneNode(!1),v.appendChild(t),y.push(t));for(h.check.isZeroWidth(q)||N.insertBefore(q,N.firstChild),M=N,_=[];M!==v&&M!==null;)V=f(M)?null:i(M),V&&M.nodeType===1&&_.push(V),M=M.parentNode;const I=_.pop()||N;for(S=M=I;_.length>0;)M=_.pop(),S.appendChild(M),S=M;I!==N?(t.insertBefore(I,t.firstChild),N=M):N=t,h.check.isBreak(R)&&t.appendChild(R.cloneNode(!1)),x?(x.insertBefore(t,x.firstChild),v.insertBefore(x,v.firstChild),x=null):v.insertBefore(t,v.firstChild),C=F,w=F.data.length,k=!0,N.insertBefore(C,N.firstChild);continue}V=k?i(R):R.cloneNode(!1),V&&(N.insertBefore(V,N.firstChild),R.nodeType===1&&!h.check.isBreak(R)&&($=V)),L(R,$)}}(e,v),c&&!a&&!d.v)return{ancestor:e,container:n,offset:r};if(a&&(a=c),a)for(let L=0;L<y.length;L++){const B=y[L],N=B.childNodes;let O=null;for(;N[0];)O=N[0],v.insertBefore(O,B);h.utils.removeItem(B),L===y.length-1&&(C=O,w=O.textContent.length)}else if(c){t=t.firstChild;for(let L=0;L<y.length;L++)_h(y[L])}if(!a&&v.childNodes.length===0)e.childNodes?C=e.childNodes[0]:(C=h.utils.createTextNode(Ie.zeroWidthSpace),e.appendChild(C));else{if(!c&&t.textContent.length===0)return o(this,ge).nodeTransform.removeEmptyNode(v,null,!1),{ancestor:null,container:null,offset:0};o(this,ge).nodeTransform.removeEmptyNode(v,t,!1),h.check.isZeroWidth(v.textContent)?(C=v.firstChild,w=C.textContent.length):h.check.isZeroWidth(C)&&(C=t,w=1);const L={s:0,e:0},B=h.query.getNodePath(C,v,L);w+=L.s;const N=o(this,ge).nodeTransform.mergeSameTags(v,[B],!0);e.parentNode.replaceChild(v,e),C=h.query.getNodeFromPath(B,v),w+=N[0]}return{ancestor:v,container:C,offset:C.nodeType===1&&w===1?C.childNodes.length:w}},kl=new WeakSet,Ph=function(e){return e&&typeof e!="string"&&e.nodeType!==3&&o(this,ge).format.isTextStyleNode(e)&&!!e.style.fontSize},j1=new WeakSet,Cy=function(e,t,i){return!i||e?null:h.query.getParentElement(i,this._isNonSplitNode.bind(this))||(t?null:h.query.getParentElement(i,T(this,kl,Ph).bind(this)))},U1=new WeakSet,by=function(e,t,i){if(!i||e||i.nodeType!==1)return!1;const n=this._isNonSplitNode(i);return h.query.getParentElement(i,this._isNonSplitNode.bind(this))?n:n||(t?!1:T(this,kl,Ph).call(this,i))},mn=new WeakSet,Vr=function(e,t){if(!h.check.isListCell(e))return;const i=h.utils.arrayFilter((t||e).childNodes,u=>!h.check.isBreak(u));if(t=i[0],!h.check.isElement(t)||i.length>1)return;const n=t.style,r=e.style,a=t.nodeName.toLowerCase();let c=!1;o(this,Vs).get("_defaultStyleTagMap")[a]===o(this,Vs).get("_defaultTagCommand").bold.toLowerCase()&&(r.fontWeight="bold"),o(this,Vs).get("_defaultStyleTagMap")[a]===o(this,Vs).get("_defaultTagCommand").italic.toLowerCase()&&(r.fontStyle="italic");const d=Se.getValues(n);if(d.length>0)for(let u=0,f=o(this,pn).length;u<f;u++)d.includes(o(this,_s)[u])&&(r[o(this,pn)[u]]=n[o(this,pn)[u]],n.removeProperty(o(this,_s)[u]),c=!0);if(T(this,mn,Vr).call(this,e,t),!!c&&n.length===0){const u=t.childNodes,f=t.parentNode,p=t.nextSibling;for(;u.length>0;)f.insertBefore(u[0],p);h.utils.removeItem(t)}},Mo=new WeakSet,lc=function(e,t){if(!h.check.isListCell(e))return;t||(t=o(this,_s));const i=h.utils.arrayFilter(e.childNodes,m=>!h.check.isBreak(m)),n=e.style,r=[],a=[],c=Se.getValues(n);for(let m=0,g=o(this,_s).length;m<g;m++)c.includes(o(this,_s)[m])&&t.includes(o(this,_s)[m])&&(r.push(o(this,pn)[m]),a.push(o(this,_s)[m]));if(r.length===0)return;const d=h.utils.createElement("SPAN");for(let m=0,g=r.length;m<g;m++)d.style[r[m]]=n[a[m]],n.removeProperty(a[m]);let u=d.cloneNode(!1),f=null,p=!1;for(let m=0,g=i.length,y,v;m<g;m++)y=i[m],!o(this,Vs).get("_defaultStyleTagMap")[y.nodeName.toLowerCase()]&&(v=Se.getValues(y.style),v.length===0||r.some(function(C){return!v.includes(C)})&&v.some(function(C){return r.includes(C)})?(f=y.nextSibling,u.appendChild(y)):u.childNodes.length>0&&(e.insertBefore(u,f),u=d.cloneNode(!1),f=null,p=!0));return u.childNodes.length>0&&(e.insertBefore(u,f),p=!0),n.length===0&&e.removeAttribute("style"),p};function _h(s){const e=s.parentNode;if(!s||s.nodeType===3||!e)return;const t=s.childNodes;for(;t[0];)e.insertBefore(t[0],s);e.removeChild(s)}const eL=JN;var We,Cd,bd,j0,wd,U0;class tL{constructor(e){b(this,bd);b(this,wd);b(this,We,void 0);b(this,Cd,void 0);E(this,We,e.$),E(this,Cd,e.store)}apply(e,t,i){const n=(e.split(":")[0]||"ol").toUpperCase(),r=e.split(":")[1]||"";let a=o(this,We).selection.getRange(),c=t||o(this,We).format.getLinesAndComponents(!1);if(c.length===0&&(t||(a=o(this,We).selection.getRangeAndAddLine(a,null),c=o(this,We).format.getLinesAndComponents(!1),c.length===0)))return;h.query.sortNodeByDepth(c,!0);const d=c[0],u=c.at(-1);let f=(h.check.isListCell(d)||o(this,We).component.is(d))&&!d.previousElementSibling?d.parentElement.previousElementSibling:d.previousElementSibling,p=(h.check.isListCell(u)||o(this,We).component.is(u))&&!u.nextElementSibling?u.parentElement.nextElementSibling:u.nextElementSibling;const m=a.collapsed,g={sc:a.startContainer,so:a.startContainer===a.endContainer&&h.check.isZeroWidth(a.startContainer)&&a.startOffset===0&&a.endOffset===1?a.endOffset:a.startOffset,ec:a.endContainer,eo:a.endOffset};let y=null,v=!0;for(let C=0,w=c.length;C<w;C++)if(!h.check.isList(o(this,We).format.getBlock(c[C],k=>o(this,We).format.getBlock(k)&&k!==c[C]))){v=!1;break}if(v&&(!f||d.tagName!==f.tagName||n!==f.tagName.toUpperCase())&&(!p||u.tagName!==p.tagName||n!==p.tagName.toUpperCase())){if(i){for(let S=0,x=c.length;S<x;S++)for(let L=S-1;L>=0;L--)if(c[L].contains(c[S])){c.splice(S,1),S--,x--;break}}const C=o(this,We).format.getBlock(d),w=(C==null?void 0:C.tagName)===n;let k,_;const M=S=>!h.check.isComponentContainer(S);w||(_=h.utils.createElement(n,{style:"list-style-type: "+r}));for(let S=0,x=c.length,L,B;S<x;S++)B=o(this,We).format.getBlock(c[S],M),!(!B||!h.check.isList(B))&&(L?L!==B?(i&&h.check.isListCell(B.parentNode)?T(this,wd,U0).call(this,k.f):y=o(this,We).format.removeBlock(k.f[0].parentElement,{selectedFormats:k.f,newBlockElement:_,shouldDelete:!1,skipHistory:!0}),B=c[S].parentNode,w||(_=h.utils.createElement(n,{style:"list-style-type: "+r})),L=B,k={r:L,f:[h.query.getParentElement(c[S],"LI")]}):k.f.push(h.query.getParentElement(c[S],"LI")):(L=B,k={r:L,f:[h.query.getParentElement(c[S],"LI")]}),S===x-1&&(i&&h.check.isListCell(B.parentNode)?T(this,wd,U0).call(this,k.f):y=o(this,We).format.removeBlock(k.f[0].parentElement,{selectedFormats:k.f,newBlockElement:_,shouldDelete:!1,skipHistory:!0})))}else{const C=f&&f.parentNode,w=p&&p.parentNode;f=C&&!h.check.isWysiwygFrame(C)&&C.nodeName===n?C:f,p=w&&!h.check.isWysiwygFrame(w)&&w.nodeName===n?w:p;const k=(f==null?void 0:f.tagName)===n,_=(p==null?void 0:p.tagName)===n;let M=k?f:h.utils.createElement(n,{style:"list-style-type: "+r}),S=null,x=null;const L=B=>!h.check.isComponentContainer(B)&&!h.check.isList(B);for(let B=0,N=c.length,O,A,V,R,$,D,z,q,F;B<N;B++){if(A=c[B],A.childNodes.length===0&&!o(this,We).inline._isIgnoreNodeChange(A)){h.utils.removeItem(A);continue}if(R=c[B+1],$=A.parentNode,D=R?R.parentNode:null,V=h.check.isListCell(A),F=o(this,We).format.isBlock($)?$:null,z=V&&!h.check.isWysiwygFrame($)?$.parentNode:$,q=V&&!h.check.isWysiwygFrame($)?!R||h.check.isListCell(z)?$:$.nextSibling:A.nextSibling,O=h.utils.createElement("LI"),o(this,We).component.is(A)){const I=/^HR$/i.test(A.nodeName);I||(O.innerHTML="<br>"),O.innerHTML+=A.outerHTML,I&&(O.innerHTML+="<br>")}else{h.utils.copyFormatAttributes(O,A);const I=A.childNodes;for(;I[0];)O.appendChild(I[0])}M.appendChild(O),(!R||z!==D||o(this,We).format.isBlock(q))&&(S||(S=M),(!k||!R||z!==D)&&!(R&&h.check.isList(D)&&D===$)&&M.parentNode!==z&&z.insertBefore(M,q)),h.utils.removeItem(A),k&&x===null&&(x=M.children.length-1),R&&(o(this,We).format.getBlock(D,L)!==o(this,We).format.getBlock($,L)||h.check.isList(D)&&h.check.isList($)&&h.query.getNodeDepth(D)!==h.query.getNodeDepth($))&&(M=h.utils.createElement(n,{style:"list-style-type: "+r})),(F==null?void 0:F.children.length)===0&&h.utils.removeItem(F)}x&&(S=S.children[x]),_&&(M.innerHTML+=p.innerHTML,h.utils.removeItem(p))}return o(this,Cd).set("_lastSelectionNode",null),!v||!m?g:y||g}remove(e,t){let i={},n=!1,r=!1,a=null,c=null;const d=u=>!h.check.isComponentContainer(u);for(let u=0,f=e.length,p,m,g,y;u<f;u++){if(g=u===f-1,m=o(this,We).format.getBlock(e[u],d),y=h.check.isList(m),!p&&y)p=m,i={r:p,f:[h.query.getParentElement(e[u],"LI")]},u===0&&(n=!0);else if(p&&y)if(p!==m){const v=o(this,We).format.removeBlock(i.f[0].parentNode,{selectedFormats:i.f,newBlockElement:null,shouldDelete:t,skipHistory:!0});m=e[u].parentNode,n&&(a=v.sc,n=!1),g&&(c=v.ec),y?(p=m,i={r:p,f:[h.query.getParentElement(e[u],"LI")]},g&&(r=!0)):p=null}else i.f.push(h.query.getParentElement(e[u],"LI")),g&&(r=!0);if(g&&h.check.isList(p)){const v=o(this,We).format.removeBlock(i.f[0].parentNode,{selectedFormats:i.f,newBlockElement:null,shouldDelete:t,skipHistory:!0});(r||f===1)&&(c=v.ec),n&&(a=v.sc||c)}}return{sc:a,ec:c}}applyNested(e,t){var c;e=e||o(this,We).format.getLines().filter(function(d){return h.check.isListCell(d)});const i=e.length;if(i===0||!t&&!h.check.isListCell(e[0].previousElementSibling)&&!h.check.isListCell(e.at(-1).nextElementSibling))return{sc:e[0],so:0,ec:e.at(-1),eo:1};let n=e[0].parentElement,r=e.at(-1),a=null;if(t){if(n!==r.parentElement&&h.check.isList((c=r.parentElement)==null?void 0:c.parentElement)&&r.nextElementSibling)for(r=r.nextElementSibling;r;)e.push(r),r=r.nextElementSibling;a=this.apply(n.nodeName+":"+n.style.listStyleType,e,!0)}else{let d=h.utils.createElement(n.nodeName),u=e[0].previousElementSibling,f=r.nextElementSibling;const p={s:null,e:null,sl:n,el:n},{startContainer:m,startOffset:g,endContainer:y,endOffset:v}=o(this,We).selection.getRange();for(let C=0,w=i,k;C<w;C++)k=e[C],k.parentElement!==n&&(T(this,bd,j0).call(this,n,d,u,f,p),n=k.parentElement,d=h.utils.createElement(n.nodeName)),u=k.previousElementSibling,f=k.nextElementSibling,d.appendChild(k);if(T(this,bd,j0).call(this,n,d,u,f,p),i>1){const C=h.query.getNodeFromPath(p.s,p.sl),w=h.query.getNodeFromPath(p.e,p.el);a={sc:C,so:0,ec:w,eo:w.textContent.length}}else a={sc:m,so:g,ec:y,eo:v}}return a}removeNested(e,t){const i=U2(e);let n,r;if(i){n=i.cloneNode(!1),r=i.childNodes;const c=h.query.getPositionIndex(e);for(;r[c];)n.appendChild(r[c])}else n=e;let a;if(t)a=h.query.getListChildren(n,c=>h.check.isListCell(c)&&!c.previousElementSibling,null);else{const c=h.query.getNodeDepth(e)+2;a=h.query.getListChildren(e,d=>h.check.isListCell(d)&&!d.previousElementSibling&&h.query.getNodeDepth(d)===c,null)}for(let c=0,d=a.length;c<d;c++)U2(a[c]);return i&&(i.parentNode.insertBefore(n,i.nextSibling),(r==null?void 0:r.length)===0&&h.utils.removeItem(i)),n===e?n.parentNode:n}}We=new WeakMap,Cd=new WeakMap,bd=new WeakSet,j0=function(e,t,i,n,r){let a=!1;if(t.tagName===(i==null?void 0:i.tagName)){const c=t.children;for(;c[0];)i.appendChild(c[0]);t=i,a=!0}if(t.tagName===(n==null?void 0:n.tagName)){const c=n.children;for(;c[0];)t.appendChild(c[0]);const d=n.nextElementSibling;n.parentNode.removeChild(n),n=d}if(!a){h.check.isListCell(i)&&(e=i,n=null),e.insertBefore(t,n),r.s||(r.s=h.query.getNodePath(t.firstElementChild.firstChild,e,null),r.sl=e);const c=e.contains(r.sl)?h.query.getNodePath(r.sl,e):null;r.e=h.query.getNodePath(t.lastElementChild.firstChild,e,null),r.el=e,o(this,We).nodeTransform.mergeSameTags(e,[r.s,r.e,c],!1),o(this,We).nodeTransform.mergeNestedTags(e),c&&(r.sl=h.query.getNodeFromPath(c,e))}return t},wd=new WeakSet,U0=function(e){const t=e[0],i=e.at(-1),n=i.nextElementSibling,r=t.parentElement,a=r.parentElement.nextElementSibling,c=r.parentElement.parentElement;for(let u=0,f=e.length;u<f;u++)c.insertBefore(e[u],a);if(n&&r.children.length>0){const u=r.cloneNode(!1),f=r.childNodes,p=h.query.getPositionIndex(n);for(;f[p];)u.appendChild(f[p]);i.appendChild(u)}r.children.length===0&&h.utils.removeItem(r),o(this,We).nodeTransform.mergeSameTags(c);const d=h.query.getEdgeChildNodes(t,i);return{cc:t.parentNode,sc:d.sc,ec:d.ec}};function U2(s){const e=s.parentNode;let t=e.parentNode,i=e,n,r,a,c,d;for(;h.check.isListCell(t);){for(c=h.query.getPositionIndex(s),n=t.nextElementSibling,r=t.parentNode,a=i;a;){if(i=i.nextSibling,h.check.isList(a)){for(d=a.childNodes;d[c];)r.insertBefore(d[c],n);d.length===0&&h.utils.removeItem(a)}else r.appendChild(a);a=i}t=r.parentNode}return e.children.length===0&&h.utils.removeItem(e),r}const sL=tL,{_d:ec}=me,iL="data-se-[^\\s]+",nL="|data-index|data-file-size|data-file-name|data-exp|data-font-size",oL=new RegExp(Ie.zeroWidthSpace+"+","g");var U,Rs,tt,Bo,_t,kd,_d,Ed,Td,_l,Sd,xd,Md,Bd,Nd,Ld,Ad,No,El,Tl,Sl,xl,$d,Od,Lo,Ao,ac,Vd,q0,q1,wy,Z1,ky,G1,_y,Y1,Ey,K1,Ty,X1,Sy,Rd,Z0,Id,G0,$o,cc,Q1,xy,J1,My,ef,By,tf,Ny,sf,Ly,nf,Ay;class rL{constructor(e){b(this,Ao);b(this,Vd);b(this,q1);b(this,Z1);b(this,G1);b(this,Y1);b(this,K1);b(this,X1);b(this,Rd);b(this,Id);b(this,$o);b(this,Q1);b(this,J1);b(this,ef);b(this,tf);b(this,sf);b(this,nf);b(this,U,void 0);b(this,Rs,void 0);b(this,tt,void 0);b(this,Bo,void 0);b(this,_t,void 0);b(this,kd,void 0);b(this,_d,void 0);b(this,Ed,void 0);b(this,Td,void 0);b(this,_l,void 0);b(this,Sd,void 0);b(this,xd,void 0);b(this,Md,void 0);b(this,Bd,void 0);b(this,Nd,void 0);b(this,Ld,void 0);b(this,Ad,void 0);b(this,No,void 0);b(this,El,void 0);b(this,Tl,void 0);b(this,Sl,void 0);b(this,xl,void 0);b(this,$d,void 0);b(this,Od,void 0);b(this,Lo,void 0);E(this,U,e.$),E(this,Rs,e.store);const t=E(this,_t,o(this,U).options);E(this,Bo,o(this,U).frameOptions),E(this,tt,o(this,U).frameContext),E(this,kd,o(this,U).instanceCheck),E(this,Ed,(function(C){return this.test(C)?C:""}).bind(t.get("allowedClassName"))),E(this,El,t.get("_textStyleTags"));const i=t.get("tagStyles"),n={};for(const C in i){const w=C.split("|");for(let k=0,_=w.length,M;k<_;k++)M=w[k],n[M]?n[M]+="|":n[M]="",n[M]+=i[C]}for(const C in n)n[C]=new RegExp(`\\s*[^-a-zA-Z](${n[C]})\\s*:[^;]+(?!;)*`,"gi");const r=new Map;for(const C in n)r.set(new RegExp(`^(${C})$`),n[C]);E(this,Ad,new RegExp(`^(${Object.keys(n).join("|")})$`,"i")),E(this,No,r),E(this,_d,new RegExp("\\d+("+t.get("fontSizeUnits").join("|")+")$","i"));const a=t.get("_allowedExtraTag"),c=t.get("_disallowedExtraTag");E(this,Tl,new RegExp(`<(${c})[^>]*>([\\s\\S]*?)<\\/\\1>|<(${c})[^>]*\\/?>`,"gi")),E(this,Sl,new RegExp(`^(${c})$`,"i")),E(this,xl,new RegExp(`^(${a})$`,"i"));const d=Object.keys(t.get("_defaultStyleTagMap")),u=t.get("elementWhitelist")?t.get("elementWhitelist").split("|").filter(C=>/b|i|ins|s|strike/i.test(C)):[];for(let C=0;C<u.length;C++)d.splice(d.indexOf(u[C].toLowerCase()),1);E(this,_l,d.length===0?null:new RegExp("(<\\/?)("+d.join("|")+")\\b\\s*([^>^<]+)?\\s*(?=>)","gi"));const f=t.get("__defaultAttributeWhitelist");E(this,Td,t.get("_editorElementWhitelist").includes("//")||t.get("_editorElementWhitelist")==="*"),E(this,Sd,new RegExp("^("+Nr(t.get("_editorElementWhitelist").replace("|//",""),"")+")$","i")),E(this,xd,new RegExp("^("+(t.get("elementBlacklist")||"^")+")$","i")),E(this,Md,Se.createElementWhitelist(Nr(t.get("_editorElementWhitelist").replace("|//","|<!--|-->"),""))),E(this,Bd,Se.createElementBlacklist(t.get("elementBlacklist").replace("|//","|<!--|-->")));const p='\\s*=\\s*(")[^"]*\\1',m=t.get("attributeWhitelist");let g={},y="";if(m)for(const C in m)/^on[a-z]+$/i.test(m[C])||(C==="*"?y=Nr(m[C],f):g[C]=new RegExp("\\s(?:"+Nr(m[C],f)+")"+p,"ig"));E(this,Nd,new RegExp("\\s(?:"+(y||f)+"|"+iL+(t.get("v2Migration")?nL:"")+")"+p,"ig")),E(this,$d,g);const v=t.get("attributeBlacklist");if(g={},y="",v)for(const C in v)C==="*"?y=Nr(v[C],""):g[C]=new RegExp("\\s(?:"+Nr(v[C],"")+")"+p,"ig");E(this,Ld,new RegExp("\\s(?:"+(y||"^")+")"+p,"ig")),E(this,Od,g),this.__resetAutoStyleify(t.get("autoStyleify"))}filter(e,{tagWhitelist:t,tagBlacklist:i,validate:n,validateAll:r}){if(t&&(e=e.replace(Se.createElementWhitelist(t),"")),i&&(e=e.replace(Se.createElementBlacklist(i),"")),n){const a=new DOMParser().parseFromString(e,"text/html");a.body.querySelectorAll("*").forEach(c=>{if(r||!c.closest(".se-component")&&!c.closest(".se-flex-component")){const d=n(c);d===null?c.remove():o(this,kd).isNode(d)?c.replaceWith(d):typeof d=="string"&&(c.outerHTML=d)}}),e=a.body.innerHTML}return e}clean(e,{forceFormat:t,whitelist:i,blacklist:n,_freeCodeViewMode:r}={}){const{tagFilter:a,formatFilter:c,classFilter:d,textStyleTagFilter:u,attrFilter:f,styleFilter:p}=o(this,_t).get("strictMode");let m="";if(e=this.compress(e),a&&(e=e.replace(o(this,Tl),""),e=T(this,Q1,xy).call(this,e,o(this,Md),o(this,Bd)).replace(/<br\/?>$/i,"")),o(this,Lo)){const v=new DOMParser().parseFromString(e,"text/html");h.query.getListChildNodes(v.body,Se.spanToStyleNode.bind(null,o(this,Lo)),null),e=v.body.innerHTML}(f||p)&&(e=e.replace(/(<[a-zA-Z0-9-]+)[^>]*(?=>)/g,T(this,tf,Ny).bind(this,f,p)));const g=ec.createRange().createContextualFragment(e);if(a)try{T(this,G1,_y).call(this,g,o(this,Sd),o(this,xd),a,c,d,r)}catch(v){console.warn("[SUNEDITOR.html.clean.fail]",v.message)}const y=g.querySelectorAll("[data-se-iframe-holder]");for(let v=0,C=y.length;v<C;v++){const w=h.utils.createElement("iframe"),k=JSON.parse(y[v].getAttribute("data-se-iframe-holder-attrs"));for(const[_,M]of Object.entries(k))/^on/i.test(_)||_==="src"&&!$y(String(M))||w.setAttribute(_,M);y[v].replaceWith(w)}if(o(this,U).pluginManager.applyRetainFormat(g),c){let v=g.childNodes;t||(t=T(this,Id,G0).call(this,v)),t&&(v=T(this,X1,Sy).call(this,g).childNodes);for(let C=0,w=v.length,k;C<w;C++){if(k=v[C],o(this,xl).test(k.nodeName)){m+=k.outerHTML;continue}m+=T(this,q1,wy).call(this,k,t)}}return m||(m=e),a&&(i&&(m=m.replace(typeof i=="string"?Se.createElementWhitelist(i):i,"")),n&&(m=m.replace(typeof n=="string"?Se.createElementBlacklist(n):n,""))),u&&(m=T(this,K1,Ty).call(this,m)),!r&&m.includes(Ie.zeroWidthSpace)&&(m=m.replace(oL,(v,C,w)=>{const k=C===0||w[C-1]===">",_=C+v.length===w.length||w[C+v.length]==="<";return k&&_?v:""})),m}insert(e,{selectInserted:t,skipCharCount:i,skipCleaning:n}={}){o(this,tt).get("wysiwyg").contains(o(this,U).selection.get().focusNode)||o(this,U).focusManager.focus(),this.remove(),o(this,U).focusManager.focus();let r=null;if(typeof e=="string"){n||(e=this.clean(e,{forceFormat:!1,whitelist:null,blacklist:null}));try{if(h.check.isListCell(o(this,U).format.getLine(o(this,U).selection.getNode(),null))){const v=ec.createRange().createContextualFragment(e).childNodes;T(this,Id,G0).call(this,v)&&(e=T(this,Rd,Z0).call(this,v))}const c=ec.createRange().createContextualFragment(e).childNodes;if(!i){const y=o(this,Bo).get("charCounter_type")==="byte-html"?"outerHTML":"textContent";let v="";for(let C=0,w=c.length;C<w;C++)v+=c[C][y];if(!o(this,U).char.check(v))return}let d,u,f,p,m;for(;d=c[0];){if((p==null?void 0:p.nodeType)===3&&(u==null?void 0:u.nodeType)===1&&h.check.isBreak(d)){p=d,h.utils.removeItem(d);continue}f=this.insertNode(d,{afterNode:u,skipCharCount:!0}),u=f.container||f,m||(m=f),p=d}(p==null?void 0:p.nodeType)===3&&(u==null?void 0:u.nodeType)===1&&(u=p);const g=u.nodeType===3?f.endOffset||u.textContent.length:u.childNodes.length;r=u,t?o(this,U).selection.setRange(m.container||m,m.startOffset||0,u,g):o(this,U).component.is(u)||o(this,U).selection.setRange(u,g,u,g)}catch(a){if(o(this,tt).get("isReadOnly")||o(this,tt).get("isDisabled"))return;throw Error(`[SUNEDITOR.html.insert.error] ${a.message}`)}}else if(o(this,U).component.is(e))o(this,U).component.insert(e,{skipCharCount:i,insertBehavior:"none"});else{let a=null;(o(this,U).format.isLine(e)||h.check.isMedia(e))&&(a=o(this,U).format.getLine(o(this,U).selection.getNode(),null)),this.insertNode(e,{afterNode:a,skipCharCount:i})}if(o(this,Rs).set("_lastSelectionNode",null),r){const a=h.query.getListChildNodes(r,null,null);if(a.length>0){r=a.at(-1);const c=(r==null?void 0:r.nodeType)===3?r.textContent.length:1;o(this,U).selection.setRange(r,c,r,c)}else o(this,U).focusManager.focus()}else o(this,U).focusManager.focus();o(this,U).history.push(!1)}insertNode(e,{afterNode:t,skipCharCount:i}={}){let n=null;if(o(this,tt).get("isReadOnly")||!i&&!o(this,U).char.check(e))return n;let r=null,a=null;if(t){const S=o(this,U).format.isLine(t)||o(this,U).format.isBlock(t)||o(this,U).component.is(t)?o(this,U).format.addLine(t,null):t;a=o(this,U).selection.setRange(S,1,S,1)}else a=o(this,U).selection.getRange();let c=h.check.isListCell(a.commonAncestorContainer)?a.commonAncestorContainer:o(this,U).format.getLine(o(this,U).selection.getNode(),null),d=h.check.isListCell(c)&&(h.check.isListCell(e)||h.check.isList(e)),u,f,p,m=null;const g=o(this,U).format.isBrLine(c),y=o(this,U).format.isLine(e)||o(this,U).format.isBlock(e)||o(this,U).component.isBasic(e);if(d&&(p=t||h.check.isList(e)?c.lastChild:c.nextElementSibling,m=h.check.isList(e)?c:(p||c).parentNode),!t&&(y||o(this,U).component.isBasic(e)||h.check.isMedia(e))){const S=h.check.isEdgePoint(a.endContainer,a.endOffset,"end"),x=this.remove(),L=x.container,B=L===x.prevContainer&&a.collapsed?null:x.prevContainer;if(d&&B)if(m=B.nodeType===3?B.parentNode:B,m.contains(L)){let N=!0;for(p=L;p.parentNode&&p.parentNode!==m;)p=p.parentNode,N=!1;N&&L===B&&(p=p.nextSibling)}else p=null;else if(d&&h.check.isListCell(L)&&!c.parentElement)c=h.utils.createElement("LI"),m.appendChild(c),L.appendChild(m),p=null;else if(L.nodeType===3||h.check.isBreak(L)||d){const N=h.query.getParentElement(L,O=>o(this,U).format.isBlock(O)||h.check.isListCell(O));if(t=o(this,U).nodeTransform.split(L,x.offset,N?h.query.getNodeDepth(N)+1:0),!t)h.check.isListCell(c)||(p=t=c);else if(d){if(c.contains(L)){const O=h.check.isList(c.lastElementChild);let A=null;S||(A=c.cloneNode(!1),A.appendChild(t.textContent.trim()?t:h.utils.createTextNode(Ie.zeroWidthSpace))),O&&(A||(A=c.cloneNode(!1),A.appendChild(h.utils.createTextNode(Ie.zeroWidthSpace))),A.appendChild(c.lastElementChild)),A&&(c.parentNode.insertBefore(A,c.nextElementSibling),p=t=A)}}else t=t.previousSibling}}a=!t&&!y?o(this,U).selection.getRangeAndAddLine(o(this,U).selection.getRange(),null):o(this,U).selection.getRange();const v=a.commonAncestorContainer,C=a.startOffset,w=a.endOffset,k=a.startContainer===v&&o(this,U).format.isLine(v),_=k&&(v.childNodes[C]||v.childNodes[0])||a.startContainer,M=k&&(v.childNodes[w]||v.childNodes[v.childNodes.length-1])||a.endContainer;if(!d)if(t)u=t.parentNode,t=t.nextSibling,f=!0;else if(u=_,_.nodeType===3&&(u=_.parentNode),a.collapsed)if(v.nodeType===3)v.textContent.length>w?t=v.splitText(w):t=v.nextSibling;else if(h.check.isBreak(u))t=u,u=u.parentNode;else{const S=u.childNodes[C],x=(S==null?void 0:S.nodeType)===3&&h.check.isZeroWidth(S)&&h.check.isBreak(S.nextSibling)?S.nextSibling:S;x?!x.nextSibling&&h.check.isBreak(x)?(u.removeChild(x),t=null):t=h.check.isBreak(x)&&!h.check.isBreak(e)?x:x.nextSibling:t=null}else if(_===M){h.check.isEdgePoint(M,w)?t=M.nextSibling:t=M.splitText(w);let x=_;h.check.isEdgePoint(_,C)||(x=_.splitText(C)),u.removeChild(x),u.childNodes.length===0&&y&&(u.innerHTML="<br>")}else{const x=this.remove(),L=x.container,B=x.prevContainer;if((L==null?void 0:L.childNodes.length)===0&&y&&(o(this,U).format.isLine(L)?L.innerHTML="<br>":o(this,U).format.isBlock(L)&&(L.innerHTML="<"+o(this,_t).get("defaultLine")+"><br></"+o(this,_t).get("defaultLine")+">")),h.check.isListCell(L)&&e.nodeType===3)u=L,t=null;else if(!y&&B)if(u=B.nodeType===3?B.parentNode:B,u.contains(L)){let N=!0;for(t=L;t.parentNode&&t.parentNode!==u;)t=t.parentNode,N=!1;N&&L===B&&(t=t.nextSibling)}else t=null;else h.check.isWysiwygFrame(L)&&!o(this,U).format.isLine(e)?(u=L.appendChild(h.utils.createElement(o(this,_t).get("defaultLine"))),t=null):(t=y?M:L===B?L.nextSibling:L,u=!t||!t.parentNode?v:t.parentNode);for(;t&&!o(this,U).format.isLine(t)&&t.parentNode!==v;)t=t.parentNode}try{const S=o(this,tt).get("wysiwyg");if(!d){if((h.check.isWysiwygFrame(t)||u===S.parentNode)&&(u=S,t=null),o(this,U).format.isLine(e)||o(this,U).format.isBlock(e)||!h.check.isListCell(u)&&o(this,U).component.isBasic(e)){const x=u;if(h.check.isListCell(t))u=t.previousElementSibling||t;else if(!f&&!t){const L=this.remove(),B=L.container.nodeType===3?h.check.isListCell(o(this,U).format.getLine(L.container,null))?L.container:o(this,U).format.getLine(L.container,null)||L.container.parentNode:L.container,N=h.check.isWysiwygFrame(B)||o(this,U).format.isBlock(B);u=N?B:B.parentNode,t=N?null:B.nextSibling}x.childNodes.length===0&&u!==x&&h.utils.removeItem(x)}if(y&&!g&&!o(this,U).format.isBlock(u)&&!h.check.isListCell(u)&&!h.check.isWysiwygFrame(u)&&(t=u.nextElementSibling,u=u.parentNode),h.check.isWysiwygFrame(u)&&(e.nodeType===3||h.check.isBreak(e))){const x=h.utils.createElement(o(this,_t).get("defaultLine"),null,e);r=e,e=x}}if(d?m.parentNode?(u=m,t=p):(u=S,t=null):t=u===t?u.lastChild:t,h.check.isListCell(e)&&!h.check.isList(u)){if(h.check.isListCell(u))t=u.nextElementSibling,u=u.parentNode;else{const x=h.utils.createElement("ol");u.insertBefore(x,t),u=x,t=null}d=!0}if(T(this,J1,My).call(this,e,u),u.insertBefore(e,t),d)if(h.check.isZeroWidth(c.textContent.trim()))h.utils.removeItem(c),e=e.lastChild;else{const x=h.utils.arrayFind(c.children,h.check.isList);x&&(e!==x?(e.appendChild(x),e=x.previousSibling):(u.appendChild(e),e=u),h.check.isZeroWidth(c.textContent.trim())&&h.utils.removeItem(c))}}catch(S){u.appendChild(e),console.warn("[SUNEDITOR.html.insertNode.warn]",S)}finally{r&&(e=r);const S=u.querySelectorAll("[data-duple]");if(S.length>0)for(let x=0,L=S.length,B,N,O,A;x<L;x++){for(B=S[x],O=B.childNodes,A=B.parentNode;O[0];)N=O[0],A.insertBefore(N,B);B===e&&(e=N),h.utils.removeItem(B)}if((o(this,U).format.isLine(e)||o(this,U).component.isBasic(e))&&_===M){const x=o(this,U).format.getLine(v,null);(x==null?void 0:x.nodeType)===1&&h.check.isEmptyLine(x)&&h.utils.removeItem(x)}if(g&&!h.check.isList(e)&&(o(this,U).format.isLine(e)||o(this,U).format.isBlock(e))&&(e=T(this,Vd,q0).call(this,e)),!o(this,U).component.isBasic(e)){let x=1;if(e.nodeType===3)x=e.textContent.length,o(this,U).selection.setRange(e,x,e,x);else if(!h.check.isBreak(e)&&!h.check.isListCell(e)&&o(this,U).format.isLine(u)){let L=null;(!e.previousSibling||h.check.isBreak(e.previousSibling))&&(L=h.utils.createTextNode(Ie.zeroWidthSpace),e.parentNode.insertBefore(L,e)),(!e.nextSibling||h.check.isBreak(e.nextSibling))&&(L=h.utils.createTextNode(Ie.zeroWidthSpace),e.parentNode.insertBefore(L,e.nextSibling)),o(this,U).inline._isIgnoreNodeChange(e)&&(e=e.nextSibling,x=0),o(this,U).selection.setRange(e,x,e,x)}}n=e}return n}remove(){var N,O,A;o(this,U).selection.resetRangeToTextNode();const e=o(this,U).selection.getRange(),t=e.startOffset===0,i=h.check.isEdgePoint(e.endContainer,e.endOffset,"end");let n=null,r=null,a=null;t&&(r=o(this,U).format.getLine(e.startContainer),n=r?r.previousElementSibling:null,r=r&&n),i&&(a=o(this,U).format.getLine(e.endContainer),a=a&&a.nextElementSibling);let c,d=0,u=e.startContainer,f=e.endContainer,p=e.startOffset,m=e.endOffset;const g=e.commonAncestorContainer.nodeType===3&&e.commonAncestorContainer.parentNode===u.parentNode?u.parentNode:e.commonAncestorContainer;if(h.check.isWysiwygFrame(u)&&h.check.isWysiwygFrame(f))return this.set(""),{container:o(this,U).selection.getNode(),offset:0,commonCon:g};if(g===u&&g===f)if(o(this,U).component.isBasic(g)){const R=o(this,U).component.get(g).container,$=R.parentElement,D=R.nextSibling||R.previousSibling,z=D===R.previousSibling?((N=D==null?void 0:D.textContent)==null?void 0:N.length)||1:0,q=$.nextElementSibling||$.previousElementSibling,F=q===$.previousElementSibling?((O=q==null?void 0:q.textContent)==null?void 0:O.length)||1:0;return h.utils.removeItem(R),o(this,U).format.isLine($)?$.childNodes.length===0?(h.utils.removeItem($),{container:q,offset:F,commonCon:g}):{container:D,offset:z,commonCon:g}:{container:q,offset:F,commonCon:g}}else{if(g.nodeType===1&&p===0&&m===1||g.nodeType===3&&p===0&&m===g.textContent.length){const V=h.query.getNextDeepestNode(g,o(this,tt).get("wysiwyg")),R=h.query.getPreviousDeepestNode(g,o(this,tt).get("wysiwyg")),$=o(this,U).format.getLine(g);h.utils.removeItem(g);let D=V||R,z=V?0:(D==null?void 0:D.nodeType)===3?D.textContent.length:1;const q=o(this,U).format.getLine(D)||o(this,U).component.get(D);return $!==q&&(D=q,z=z===0?0:1),h.check.isZeroWidth($)&&!$.contains(D)&&h.utils.removeItem($),{container:D,offset:z,commonCon:g}}u=g.children[p],f=g.children[m],p=m=0}if(!u||!f)return{container:g,offset:0,commonCon:g};if(u===f&&e.collapsed&&h.check.isZeroWidth((A=u.textContent)==null?void 0:A.substring(p)))return{container:u,offset:p,prevContainer:u&&u.parentNode?u:null,commonCon:g};let y=null,v=null;const C=h.query.getListChildNodes(g,null,null);let w=h.utils.getArrayIndex(C,u),k=h.utils.getArrayIndex(C,f);if(C.length>0&&w>-1&&k>-1){for(let V=w+1,R=u;V>=0;V--)C[V]===R.parentNode&&C[V].firstChild===R&&p===0&&(w=V,R=R.parentNode);for(let V=k-1,R=f;V>w;V--)C[V]===R.parentNode&&C[V].nodeType===1&&(C.splice(V,1),R=R.parentNode,--k)}else{if(C.length===0){if(o(this,U).format.isLine(g)||o(this,U).format.isBlock(g)||h.check.isWysiwygFrame(g)||h.check.isBreak(g)||h.check.isMedia(g))return{container:g,offset:0,commonCon:g};if(h.check.isText(g))return{container:g,offset:m,commonCon:g};C.push(g),u=f=g}else if(u=f=C[0],h.check.isBreak(u)||h.check.isZeroWidth(u))return{container:h.check.isMedia(g)?g:u,offset:0,commonCon:g};w=k=0}const _=h.check.isText,M=h.check.isElement,S=w===k;let x=null;for(let V=w;V<=k;V++){const R=C[V];if(_(R)&&(R.data===void 0||R.length===0)){x=T(this,Ao,ac).call(this,R,S);continue}if(R===u){if(M(u)){if(o(this,U).component.is(u))continue;y=h.utils.createTextNode(u.textContent)}else{const $=u,D=f;R===f?(y=h.utils.createTextNode($.substringData(0,p)+D.substringData(m,D.length-m)),d=p):y=h.utils.createTextNode($.substringData(0,p))}if(y.length>0?u.data=y.data:x=T(this,Ao,ac).call(this,u,S),R===f)break;continue}if(R===f){if(_(f))v=h.utils.createTextNode(f.substringData(m,f.length-m));else{if(o(this,U).component.is(f))continue;v=h.utils.createTextNode(f.textContent)}v.length>0?f.data=v.data:x=T(this,Ao,ac).call(this,f,S);continue}x=T(this,Ao,ac).call(this,R,S)}const L=h.query.getParentElement(f,"ul"),B=h.query.getParentElement(u,"li");if(L&&B&&B.contains(L)?(c=L.previousSibling,d=c.textContent.length):(c=f&&f.parentNode?f:u&&u.parentNode?u:e.endContainer||e.startContainer,(t||i)&&(i?c.nodeType===1&&c.childNodes.length===0?(c.appendChild(h.utils.createElement("BR")),d=1):d=c.textContent.length:d=0)),!o(this,U).format.getLine(c)&&!(u&&u.parentNode)&&(a?(c=a,d=0):r&&(c=r,d=1)),!h.check.isWysiwygFrame(c)&&c.childNodes.length===0){const V=o(this,U).nodeTransform.removeAllParents(c,null,null);V&&(c=V.sc||V.ec||o(this,tt).get("wysiwyg"))}return(!c||c.nodeType===1&&!o(this,U).format.isLine(c)&&!h.check.isBreak(c))&&(c=(x==null?void 0:x.sc)||(x==null?void 0:x.ec),d=(c==null?void 0:c.nodeType)===3?c.textContent.length:1),o(this,U).selection.setRange(c,d,c,d),{container:c,offset:d,prevContainer:n,commonCon:g!=null&&g.parentElement?g:null}}get({withFrame:e,includeFullPage:t,rootKey:i}={}){i?Array.isArray(i)||(i=[i]):i=[o(this,Rs).get("rootKey")];const n=o(this,Rs).get("rootKey"),r={};for(let a=0,c=i.length,d;a<c;a++){o(this,U).facade.changeFrameContext(i[a]);const u=h.utils.createElement("DIV",null,this._convertToCode(o(this,tt).get("wysiwyg"),!0)),f=u.querySelectorAll(".se-placeholder-line");for(let C=0,w=f.length;C<w;C++)f[C].classList.remove("se-placeholder-line"),f[C].removeAttribute("data-se-placeholder-line"),f[C].getAttribute("class")||f[C].removeAttribute("class");const p=h.check.isTableCell,m=h.check.isEmptyLine,g=[],y=[];h.query.getListChildren(u,C=>{C.hasAttribute("contenteditable")&&g.push(C);const w=C.parentElement;return p(w)&&w.children.length<=1&&m(C)&&y.push(w),!1},null);for(let C=0,w=g.length;C<w;C++)g[C].removeAttribute("contenteditable");for(let C=0,w=y.length;C<w;C++)y[C].innerHTML="<br>";T(this,nf,Ay).call(this,u);const v=u.innerHTML;if(o(this,Bo).get("iframe_fullPage"))if(t){const C=h.utils.getAttributesToString(o(this,tt).get("_wd").body,["contenteditable"]);d=`<!DOCTYPE html><html>${o(this,tt).get("_wd").head.outerHTML}<body ${C}>${v}</body></html>`}else d=v;else d=e?`<div class="${o(this,_t).get("_editableClass")+(o(this,_t).get("_rtl")?" se-rtl":"")}">${v}</div>`:u.innerHTML;r[i[a]]=d}return o(this,U).facade.changeFrameContext(n),i.length>1?r:r[i[0]]}set(e,{rootKey:t}={}){o(this,U).ui.offCurrentController(),o(this,U).selection.removeRange();const i=e==null?"":this.clean(e,{forceFormat:!0,whitelist:null,blacklist:null});t?Array.isArray(t)||(t=[t]):t=[o(this,Rs).get("rootKey")];for(let n=0;n<t.length;n++)if(o(this,U).facade.changeFrameContext(t[n]),o(this,tt).get("isMarkdownView")){const r=Se.htmlToJson(i);o(this,tt).get("markdown").value=l1.jsonToMarkdown(r)}else if(!o(this,tt).get("isCodeView"))o(this,tt).get("wysiwyg").innerHTML=i,o(this,U).pluginManager.resetFileInfo(),o(this,U).history.push(!1,t[n]);else{const r=this._convertToCode(i,!1);o(this,U).viewer._setCodeView(r)}}add(e,{rootKey:t}={}){o(this,U).ui.offCurrentController(),t?Array.isArray(t)||(t=[t]):t=[o(this,Rs).get("rootKey")];for(let i=0;i<t.length;i++){o(this,U).facade.changeFrameContext(t[i]);const n=this.clean(e,{forceFormat:!0,whitelist:null,blacklist:null});if(o(this,tt).get("isMarkdownView")){const r=Se.htmlToJson(n);o(this,tt).get("markdown").value+=`
|
|
85
|
-
`+l1.jsonToMarkdown(r)}else if(o(this,tt).get("isCodeView"))o(this,U).viewer._setCodeView(o(this,U).viewer._getCodeView()+`
|
|
86
|
-
`+this._convertToCode(n,!1));else{const r=h.utils.createElement("DIV",null,n),a=Array.from(r.children);for(let c=0,d=a.length;c<d;c++)o(this,tt).get("wysiwyg").appendChild(a[c]);o(this,U).history.push(!1,t[i]),o(this,U).selection.scrollTo(a.at(-1))}}}getJson({withFrame:e,rootKey:t}={}){return Se.htmlToJson(this.get({withFrame:e,rootKey:t}))}setJson(e,{rootKey:t}={}){this.set(Se.jsonToHtml(e),{rootKey:t})}async copy(e){try{return typeof e!="string"&&!h.check.isElement(e)&&!h.check.isText(e)?!1:await aN.write(e)===!1?(o(this,U).ui.showToast(o(this,U).lang.message_copy_fail,o(this,_t).get("toastMessageTime").copy,"error"),!1):(o(this,U).ui.showToast(o(this,U).lang.message_copy_success,o(this,_t).get("toastMessageTime").copy),!0)}catch(t){return console.error("[SUNEDITOR.html.copy.fail] :",t),o(this,U).ui.showToast(o(this,U).lang.message_copy_fail,o(this,_t).get("toastMessageTime").copy,"error"),!1}}setFullPage(e,{rootKey:t}={}){if(!o(this,Bo).get("iframe"))return!1;t?Array.isArray(t)||(t=[t]):t=[o(this,Rs).get("rootKey")];for(let i=0;i<t.length;i++)o(this,U).facade.changeFrameContext(t[i]),e.head&&(o(this,tt).get("_wd").head.innerHTML=e.head.replace(o(this,Tl),"")),e.body&&(o(this,tt).get("_wd").body.innerHTML=this.clean(e.body,{forceFormat:!0,whitelist:null,blacklist:null})),o(this,U).pluginManager.resetFileInfo()}compress(e){return e.replace(/>\s+</g,"> <").replace(/\n/g,"").trim()}_convertToCode(e,t){let i="";const n=RegExp,r=new n("^(BLOCKQUOTE|PRE|TABLE|THEAD|TBODY|TR|TH|TD|OL|UL|IMG|IFRAME|VIDEO|AUDIO|FIGURE|FIGCAPTION|HR|BR|CANVAS|SELECT)$","i"),a=typeof e=="string"?ec.createRange().createContextualFragment(e):e,c=p=>o(this,U).format.isLine(p)||o(this,U).component.is(p),d=t?"":`
|
|
87
|
-
`,u=t?0:o(this,Rs).get("codeIndentSize")*1,f=u>0?new Array(u+1).join(" "):"";return function p(m,g){const y=m==null?void 0:m.childNodes;if(!y)return;const v=r.test(m.nodeName),C=v?g:"";for(let w=0,k=y.length,_,M,S,x,L,B;w<k;w++){if(_=y[w],x=r.test(_.nodeName),M=x?d:"",S=c(_)&&!v&&!/^(TH|TD)$/i.test(m.nodeName)?d:"",_.nodeType===8){i+=`
|
|
88
|
-
<!-- `+_.textContent.trim()+" -->"+M;continue}if(_.nodeType===3){h.check.isList(_.parentElement)||(i+=Se.htmlToEntity(/^\n+$/.test(_.data)?"":_.data));continue}if(_.childNodes.length===0){i+=(/^HR$/i.test(_.nodeName)?d:"")+(/^PRE$/i.test(_.parentElement.nodeName)&&/^BR$/i.test(_.nodeName)?"":C)+_.outerHTML+M;continue}_.outerHTML?(L=_.nodeName.toLowerCase(),B=C||x?g:"",i+=(S||(v?"":M))+B+_.outerHTML.match(n("<"+L+"[^>]*>","i"))[0]+M,p(_,g+f+""),i+=(/\n$/.test(i)?B:"")+"</"+L+">"+(S||M||v||/^(TH|TD)$/i.test(_.nodeName)?d:"")):i+=new XMLSerializer().serializeToString(_)}}(a,""),i.trim()+d}__resetAutoStyleify(e){if(e.length>0){const t=o(this,_t).get("convertTextTags"),i={};e.forEach(n=>{switch(n){case"bold":i.bold={regex:/font-weight\s*:\s*bold/i,tag:t.bold};break;case"italic":i.italic={regex:/font-style\s*:\s*italic/i,tag:t.italic};break;case"underline":i.underline={regex:/text-decoration\s*:\s*underline/i,tag:t.underline};break;case"strike":i.strike={regex:/text-decoration\s*:\s*line-through/i,tag:t.strike};break}}),E(this,Lo,i)}else E(this,Lo,null)}_destroy(){o(this,No)&&o(this,No).clear()}}U=new WeakMap,Rs=new WeakMap,tt=new WeakMap,Bo=new WeakMap,_t=new WeakMap,kd=new WeakMap,_d=new WeakMap,Ed=new WeakMap,Td=new WeakMap,_l=new WeakMap,Sd=new WeakMap,xd=new WeakMap,Md=new WeakMap,Bd=new WeakMap,Nd=new WeakMap,Ld=new WeakMap,Ad=new WeakMap,No=new WeakMap,El=new WeakMap,Tl=new WeakMap,Sl=new WeakMap,xl=new WeakMap,$d=new WeakMap,Od=new WeakMap,Lo=new WeakMap,Ao=new WeakSet,ac=function(e,t){const i=o(this,U).format.getLine(e,null);if(h.utils.removeItem(e),!h.check.isListCell(i)||t)return;const n=o(this,U).nodeTransform.removeAllParents(i,null,null);return h.check.isList(i==null?void 0:i.firstChild)&&i.insertBefore(h.utils.createTextNode(Ie.zeroWidthSpace),i.firstChild),n?{sc:n.sc,ec:n.ec}:null},Vd=new WeakSet,q0=function(e){const t=e.parentNode;let i,n;for(;o(this,U).format.isLine(e)||o(this,U).format.isBlock(e);){for(i=e.childNodes,n=null;i[0];){if(n=i[0],o(this,U).format.isLine(n)||o(this,U).format.isBlock(n)){if(T(this,Vd,q0).call(this,n),!e.parentNode)break;i=e.childNodes;continue}t.insertBefore(n,e)}e.childNodes.length===0&&h.utils.removeItem(e),e=h.utils.createElement("BR"),t.insertBefore(e,n.nextSibling)}return e},q1=new WeakSet,wy=function(e,t){const i=o(this,_t).get("defaultLine");if(e.nodeType===1){if(o(this,Sl).test(e.nodeName))return"";if(h.check.isExcludeFormat(e))return e.outerHTML;const n=h.query.getListChildNodes(e,r=>h.check.isSpanWithoutAttr(r)&&!h.query.getParentElement(r,h.check.isExcludeFormat),null)||[];for(let r=n.length-1,a;r>=0;r--)a=n[r],a.outerHTML=a.innerHTML;if(!t||o(this,U).format.isLine(e)||o(this,U).format.isBlock(e)||o(this,U).component.is(e)||h.check.isMedia(e)||h.check.isFigure(e)||h.check.isAnchor(e)&&h.check.isMedia(e.firstElementChild)){const r=e;return h.check.isSpanWithoutAttr(e)?r.innerHTML:r.outerHTML}else{const r=e;return"<"+i+">"+(h.check.isSpanWithoutAttr(e)?r.innerHTML:r.outerHTML)+"</"+i+">"}}if(e.nodeType===3){if(!t)return Se.htmlToEntity(e.textContent);const n=e.textContent.split(/\n/g);let r="";for(let a=0,c=n.length,d;a<c;a++)d=n[a].trim(),d.length>0&&(r+="<"+i+">"+Se.htmlToEntity(d)+"</"+i+">");return r}return e.nodeType===8&&o(this,Td)?"<!--"+e.textContent.trim()+"-->":""},Z1=new WeakSet,ky=function(e){return!e||e.nodeType===11||h.check.isWysiwygFrame(e)||h.check.isList(e)||h.check.isTableElements(e)||o(this,U).format.isBlock(e)},G1=new WeakSet,_y=function(e,t,i,n,r,a,c){const d=[],u=[],f=[],p=[],m=h.query.getListChildNodes(e,y=>{if(y.nodeType!==1)return r&&h.check.isList(y.parentElement)&&d.push(y),y.nodeType===3&&(!y.textContent||pL.test(y.textContent)&&(T(this,Z1,ky).call(this,y.parentNode)||!y.previousSibling!=!y.nextSibling))&&d.push(y),!1;if(n&&(i.test(y.nodeName)||!t.test(y.nodeName)&&y.childNodes.length===0&&h.check.isExcludeFormat(y)))return d.push(y),!1;y.nodeName==="PRE"&&T(this,sf,Ly).call(this,y);const v=!h.query.getParentElement(y,h.check.isExcludeFormat);if(r){if(!h.check.isTableElements(y)&&!h.check.isListCell(y)&&!h.check.isAnchor(y)&&(o(this,U).format.isLine(y)||o(this,U).format.isBlock(y)||o(this,U).format.isTextStyleNode(y))&&y.childNodes.length===0&&v)return u.push(y),!1;if(h.check.isList(y.parentNode)&&!h.check.isList(y)&&!h.check.isListCell(y))return f.push(y),!1;if(h.check.isTableCell(y)){const w=y.firstElementChild;if(!o(this,U).format.isLine(w)&&!o(this,U).format.isBlock(w)&&!o(this,U).component.is(w))return p.push(y),!1}}if(a&&v&&y.className){const w=Array.from(y.classList).map(o(this,Ed)).join(" ").trim();w?y.className=w:y.removeAttribute("class")}return r?!c&&y.parentNode!==e&&v&&(h.check.isListCell(y)&&!h.check.isList(y.parentNode)||(o(this,U).format.isLine(y)||o(this,U).component.is(y))&&!o(this,U).format.isBlock(y.parentNode)&&!h.query.getParentElement(y,o(this,U).component.is.bind(o(this,U).component))):!1},null);for(let y=0,v=d.length;y<v;y++)h.utils.removeItem(d[y]);const g=[];for(let y=0,v=m.length,C,w;y<v;y++)if(C=m[y],w=C.parentNode,!(!w||!w.parentNode))if(h.query.getParentElement(C,h.check.isListCell)){const k=C.childNodes;for(let _=k.length-1;_>=0;_--)w.insertBefore(k[_],C);g.push(C)}else w.parentNode.insertBefore(C,w),g.push(w);for(let y=0,v=g.length,C;y<v;y++)C=g[y],h.check.isZeroWidth(C.textContent.trim())&&h.utils.removeItem(C);for(let y=0,v=u.length;y<v;y++)h.utils.removeItem(u[y]);for(let y=0,v=f.length,C,w,k,_;y<v;y++)if(C=f[y],_=C.parentNode,!!_)if(w=h.utils.createElement("LI"),o(this,U).format.isLine(C)){for(k=C.childNodes;k[0];)w.appendChild(k[0]);_.insertBefore(w,C),h.utils.removeItem(C)}else C=C.nextSibling,w.appendChild(f[y]),_.insertBefore(w,C);for(let y=0,v=p.length,C,w;y<v;y++){if(C=p[y],w=h.utils.createElement("DIV"),w.innerHTML=C.innerHTML,C.textContent.trim().length===0&&T(this,Y1,Ey).call(this,C)){let k=w;for(;k.firstElementChild;)k=k.firstElementChild;k.innerHTML="<br>"}C.innerHTML=w.outerHTML}},Y1=new WeakSet,Ey=function(e){const t=e.querySelectorAll("*"),i=o(this,U).format;for(let n=0;n<t.length;n++)if(!i.isTextStyleNode(t[n]))return!1;return!0},K1=new WeakSet,Ty=function(e){if(!o(this,_l))return e;const t=o(this,_t).get("_defaultStyleTagMap");return e.replace(o(this,_l),(i,n,r,a)=>n+(typeof t[r]=="string"?t[r]:r)+(a?" "+a:""))},X1=new WeakSet,Sy=function(e){let t="",i;const n=e.childNodes;for(let r=0,a=n.length,c;r<a;r++){if(c=n[r],o(this,xl).test(c.nodeName)){t+=c.outerHTML;continue}c.nodeType===8?t+="<!-- "+c.textContent+" -->":!/meta/i.test(c.nodeName)&&!o(this,U).format.isLine(c)&&!o(this,U).format.isBlock(c)&&!o(this,U).component.is(c)&&!h.check.isExcludeFormat(c)?(i||(i=h.utils.createElement(o(this,_t).get("defaultLine"))),o(this,U).format.isTextStyleNode(c)&&c.removeAttribute("style"),i.appendChild(c),r--,a--):(i&&(t+=i.outerHTML,i=null),t+=c.outerHTML)}return i&&(t+=i.outerHTML),ec.createRange().createContextualFragment(t)},Rd=new WeakSet,Z0=function(e){let t="";for(let i=0,n=e.length,r;i<n;i++)r=e[i],r.nodeType===1?h.check.isList(r)?t+=r.innerHTML:h.check.isListCell(r)?t+=r.outerHTML:o(this,U).format.isLine(r)?t+="<li>"+(r.innerHTML.trim()||"<br>")+"</li>":o(this,U).format.isBlock(r)&&!h.check.isTableElements(r)?t+=T(this,Rd,Z0).call(this,r.children):t+="<li>"+r.outerHTML+"</li>":t+="<li>"+(r.textContent||"<br>")+"</li>";return t},Id=new WeakSet,G0=function(e){let t=!1;for(let i=0,n=e.length,r;i<n;i++)if(r=e[i],r.nodeType===1&&!o(this,U).format.isTextStyleNode(r)&&!h.check.isBreak(r)&&!o(this,Sl).test(r.nodeName)){t=!0;break}return t},$o=new WeakSet,cc=function(e,t,i){var r;let n=(e.match(q2)||[])[0];if(o(this,El).includes(i)&&!n&&(e.match(fL)||[])[1]){const a=(e.match(mL)||[])[1],c=(e.match(gL)||[])[1],d=(e.match(vL)||[])[1];(a||c||d)&&(n='style="'+(a?"font-size:"+Q.get(Number(a)/3.333,1)+"rem;":"")+(c?"font-family:"+c+";":"")+(d?"color:"+d+";":"")+'"')}if(n){t||(t=[]);let a;for(const[u,f]of o(this,No))if(u.test(i)){a=f;break}if(!a)return t;const c=n.replace(yL,"").match(a);if(!c)return t;const d=[];for(let u=0,f=c.length,p;u<f;u++)if(p=c[u].match(CL),p&&!bL.test(p[3])){const m=Se.kebabToCamelCase(p[1].trim()),g=(r=o(this,tt).get("wwComputedStyle")[m])==null?void 0:r.replace(wL,""),y=p[3].trim();switch(m){case"fontFamily":if(!o(this,U).plugins.font||!o(this,U).plugins.font.fontArray.includes(y))continue;break;case"fontSize":if(!o(this,U).plugins.fontSize)continue;o(this,_d).test(p[0])||(p[0]=p[0].replace((p[0].match(kL)||[])[1],Se.toFontUnit.bind(null,o(this,_t).get("fontSizeUnits")[0])));break;case"color":if(!o(this,U).plugins.fontColor||Z2.test(y))continue;break;case"backgroundColor":if(!o(this,U).plugins.backgroundColor||Z2.test(y))continue;break}g!==y&&d.push(p[0])}d.length>0&&t.push('style="'+d.join(";")+'"')}return t},Q1=new WeakSet,xy=function(e,t,i){return t.test("<font>")&&(e=e.replace(/(<\/?)font(\s?)/gi,"$1span$2")),e.replace(t,"").replace(i,"")},J1=new WeakSet,My=function(e,t){const i=n=>{T(this,ef,By).call(this,n,t);const r=n.childNodes;for(let a=0,c=r.length;a<c;a++)i(r[a])};i(e)},ef=new WeakSet,By=function(e,t){if(!o(this,U).format.isTextStyleNode(e))return;const i=(e.style.cssText.match(G2)||[]).map(function(c){return c.trim()}),n=e.nodeName;if(_L.test(n)&&i.length===0)return e;const r=o(this,U).format;let a=!1;return function c(d){if(!(h.check.isWysiwygFrame(d)||!r.isTextStyleNode(d))){if(d.nodeName===n){a=!0;const u=d.style.cssText.match(G2)||[];for(let f=0,p=u.length,m;f<p;f++)(m=i.indexOf(u[f].trim()))>-1&&i.splice(m,1);for(let f=0,p=d.classList.length;f<p;f++)e.classList.remove(d.classList[f])}c(d.parentElement)}}(t),a&&((e.style.cssText=i.join(" "))||(e.setAttribute("style",""),e.removeAttribute("style")),e.attributes.length===0&&e.setAttribute("data-duple","true")),e},tf=new WeakSet,Ny=function(e,t,i,n){if(lL.test(i))return i;let r=null;const a=n.match(aL)[0].toLowerCase();if(e){const c=o(this,Od)[a];i=i.replace(cL,""),c?i=i.replace(c,""):i=i.replace(o(this,Ld),"");const d=o(this,$d)[a];d?r=i.match(d):r=i.match(o(this,Nd))}if(!t)return i;if(a==="a"){const c=i.match(/(?:(?:id|name)\s*=\s*(?:"|')[^"']*(?:"|'))/g);c&&(r||(r=[]),r.push(c[0]))}else(!r||!dL.test(r.toString()))&&(uL.test(i)?r=T(this,$o,cc).call(this,i,r,"@component"):o(this,Ad).test(a)?r=T(this,$o,cc).call(this,i,r,a):o(this,U).format.isLine(a)?r=T(this,$o,cc).call(this,i,r,"@line"):o(this,El).includes(a)&&(r=T(this,$o,cc).call(this,i,r,"@text")));if(h.check.isMedia(a)||h.check.isFigure(a)){const c=i.match(q2);r||(r=[]),c&&r.push(c[0])}if(r)for(let c=0,d=r.length,u;c<d;c++)u=BL(r[c].trim())?r[c]:"",n+=(hL.test(u)?"":" ")+u;return n},sf=new WeakSet,Ly=function(e){var n;if(e.children.length!==1||((n=e.firstElementChild)==null?void 0:n.nodeName)!=="CODE")return;const t=e.firstElementChild,i=(t.className||"").match(/language-(\S+)/);for(i&&(h.utils.addClass(e,"language-"+i[1]),e.setAttribute("data-se-lang",i[1]));t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t)},nf=new WeakSet,Ay=function(e){const t=e.querySelectorAll('pre[class*="language-"]');for(let i=0,n=t.length,r,a,c;i<n;i++)if(r=t[i],a=(r.className.match(/language-(\S+)/)||[])[1],!!a){for(c=h.utils.createElement("CODE",{class:"language-"+a});r.firstChild;)c.appendChild(r.firstChild);r.appendChild(c),r.className=r.className.replace(/\s*language-\S+/g,"").trim(),r.removeAttribute("data-se-lang")}};const lL=/^<[a-z0-9]+:[a-z0-9]+/i,aL=/(?!<)[a-zA-Z0-9-]+/,cL=/\s(?:on[a-z]+)\s*=\s*(?:(["'])[^"']*\1|\S+)/gi,dL=/style=/i,q2=/style\s*=\s*(?:"|')[^"']*(?:"|')/,uL=/class\s*=\s*("|')(?:[^"']*\s)?se-component(?=[\s"'])/i,hL=/^\s/,fL=/<[^\s]+\s(.+)/,pL=/^[ \t\n\r\f\v]+$/,mL=/\ssize="([^"]+)"/i,gL=/\sface="([^"]+)"/i,vL=/\scolor="([^"]+)"/i,yL=/"/g,CL=/([a-zA-Z0-9-]+)(:)([^"']+)/,bL=/inherit|initial|revert|unset/i,wL=/"/g,kL=/:\s*([^;]+)/,Z2=/rgba\(([0-9]+\s*,\s*){3}0\)|windowtext/i,G2=/[^;]+;/g,_L=/^span$/i,EL=/^(?:https?|ftps?|mailto|tel|blob|sms|geo|webcal|callto):|^[#/]|^data:image\//i,TL=/^(?:href|src)\s*=/i,SL=/=\s*(?:"([^"]*)"|'([^']*)'|(\S+))/,xL=/:/i;function ML(s){let e,t=5;do e=s,s=s.replace(/&(#x([0-9a-f]+)|#([0-9]+)|([a-z]+));/gi,(i,n,r,a)=>r?String.fromCharCode(parseInt(r,16)):a?String.fromCharCode(parseInt(a,10)):"");while(s!==e&&--t);try{s=decodeURIComponent(s)}catch{}return s=s.replace(/[\u0000-\u0020]+/g,""),s}function $y(s){const e=ML(s);return EL.test(e)||!xL.test(e)}function BL(s){if(!TL.test(s))return!0;const e=s.match(SL);if(!e)return!0;const t=e[1]??e[2]??e[3]??"";return $y(t)}function Nr(s,e){return s?s==="*"?"[a-z-]+":e?s+"|"+e:s:"^"}const NL=rL;var Es,Dd;class LL{constructor(e){b(this,Es,void 0);b(this,Dd,void 0);E(this,Es,e.$),E(this,Dd,o(this,Es).options)}split(e,t,i){var g,y;if(h.check.isWysiwygFrame(e)||o(this,Es).component.is(e)||!e)return e;if(t&&!Q.is(t)){const v=e.childNodes;let C=h.query.getPositionIndex(t);const w=e.cloneNode(!1),k=e.cloneNode(!1);for(let _=0,M=v.length;_<M;_++){if(_<C)w.appendChild(v[_]);else if(_>C)k.appendChild(v[_]);else continue;_--,M--,C--}return w.childNodes.length>0&&e.parentNode.insertBefore(w,e),k.childNodes.length>0&&e.parentNode.insertBefore(k,e.nextElementSibling),e}const n=e.parentNode;let r=0,a=1,c=!0,d,u,f;if((!i||i<0)&&(i=0),h.check.isText(e)){if(r=h.query.getPositionIndex(e),t=Number(t),t>=0&&e.length!==t){e.splitText(t);const v=h.query.getNodeFromPath([r+1],n);h.check.isZeroWidth(v)&&(v.data=Ie.zeroWidthSpace)}}else if(e.nodeType===1){if(t===0){for(;e.firstChild;)e=e.firstChild;if(e.nodeType===3){const v=h.utils.createTextNode(Ie.zeroWidthSpace);e.parentNode.insertBefore(v,e),e=v}}e.previousSibling?e=e.previousSibling:h.query.getNodeDepth(e)===i&&(c=!1)}e.nodeType===1&&(a=0);let p=e;for(;h.query.getNodeDepth(p)>i;)for(r=h.query.getPositionIndex(p)+a,p=p.parentNode,f=d,d=p.cloneNode(!1),u=p.childNodes,f&&(h.check.isListCell(d)&&h.check.isList(f)&&f.firstElementChild?(d.innerHTML=f.firstElementChild.innerHTML,h.utils.removeItem(f.firstElementChild),f.children.length>0&&d.appendChild(f)):d.appendChild(f));u[r];)d.appendChild(u[r]);p.nodeType===1&&p.childNodes.length<=1&&!((y=(g=p.firstChild)==null?void 0:g.textContent)!=null&&y.length)&&(p.innerHTML="<br>");const m=p.parentNode;return c&&(p=p.nextSibling),d?(this.mergeSameTags(d,null,!1),this.mergeNestedTags(d,h.check.isList),d.childNodes.length>0?m.insertBefore(d,p):d=p,h.check.isListCell(d)&&d.children&&h.check.isList(d.children[0])&&d.insertBefore(h.utils.createElement("BR"),d.children[0]),n.childNodes.length===0&&h.utils.removeItem(n),d):p}mergeSameTags(e,t,i){const n=t?t.length:0;let r=null;n&&(r=Array.apply(null,new Array(n)).map(Number.prototype.valueOf,0));const a=(c,d,u)=>{var p,m;const f=c.childNodes;for(let g=0,y=f.length,v,C;g<y&&(v=f[g],C=f[g+1],!!v);g++)if(!(h.check.isBreak(v)||h.check.isMedia(v)||h.check.isInputElement(v))){if(i&&o(this,Es).inline._isIgnoreNodeChange(v)||!i&&(h.check.isTableElements(v)||h.check.isListCell(v)||o(this,Es).format.isLine(v)&&!o(this,Es).format.isBrLine(v))){(h.check.isTableElements(v)||h.check.isListCell(v))&&a(v,d+1,g);continue}if(y===1&&c.nodeName===v.nodeName&&c.parentNode){if(n){let w,k,_,M,S;for(let x=0;x<n;x++)if(w=t[x],w&&w[d]===g){for(k=v,_=c,M=d,S=!0;M>=0;){if(h.utils.getArrayIndex(_.childNodes,k)!==w[M]){S=!1;break}k=v.parentNode,_=k.parentNode,M--}S&&(w.splice(d,1),w[d]=g)}}h.utils.copyTagAttributes(v,c),c.parentNode.insertBefore(v,c),h.utils.removeItem(c)}if(!C){v.nodeType===1&&a(v,d+1,g);break}if(v.nodeName===C.nodeName&&h.check.isSameAttributes(v,C)&&((p=v.getAttribute)==null?void 0:p.call(v,"href"))===((m=C.getAttribute)==null?void 0:m.call(C,"href"))){const w=v.childNodes;let k=0;for(let x=0,L=w.length;x<L;x++)w[x].textContent.length>0&&k++;const _=v.lastChild,M=C.firstChild;let S=0;if(_&&M){const x=_.nodeType===3&&M.nodeType===3;S=_.textContent.length;let L=_.previousSibling;for(;L&&L.nodeType===3;)S+=L.textContent.length,L=L.previousSibling;if(k>0&&_.nodeType===3&&M.nodeType===3&&(_.textContent.length>0||M.textContent.length>0)&&k--,n){let B=null;for(let N=0;N<n;N++)if(B=t[N],B&&B[d]>g){if(d>0&&B[d-1]!==u)continue;B[d]-=1,B[d+1]>=0&&B[d]===g&&(B[d+1]+=k,x&&_&&_.nodeType===3&&M&&M.nodeType===3&&(r[N]+=S))}}}if(v.nodeType===3){if(S=v.textContent.length,v.textContent+=C.textContent,n){let x=null;for(let L=0;L<n;L++)if(x=t[L],x&&x[d]>g){if(d>0&&x[d-1]!==u)continue;x[d]-=1,x[d+1]>=0&&x[d]===g&&(x[d+1]+=k,r[L]+=S)}}}else v.innerHTML+=C.innerHTML;h.utils.removeItem(C),g--}else v.nodeType===1&&a(v,d+1,g)}};return a(e,0,0),r}mergeNestedTags(e,t){if(typeof t=="string"){const i=new RegExp(`^(${t||".+"})$`,"i");t=n=>i.test(n.nodeName)}else typeof t!="function"&&(t=()=>!0);(function i(n){let r=n.children;if(r.length===1&&r[0].nodeName===n.nodeName&&t(n)){const a=r[0];for(r=a.children;r[0];)n.appendChild(r[0]);n.removeChild(a)}for(let a=0,c=n.children.length;a<c;a++)i(n.children[a])})(e)}removeAllParents(e,t,i){if(!e)return null;let n=null;return t||(t=r=>{if(r===i||o(this,Es).component.is(r))return!1;const a=r.textContent.trim();return a.length===0||/^(\n|\u200B)+$/.test(a)}),function r(a){if(!h.check.isWysiwygFrame(a)){const c=a.parentNode;c&&t(a)&&(n={sc:a.previousElementSibling,ec:a.nextElementSibling},h.utils.removeItem(a),r(c))}}(e),n}removeEmptyNode(e,t,i){const n=o(this,Dd).get("allowedEmptyTags");t&&(t=h.query.getParentElement(t,a=>e===a.parentElement));const r=a=>{if(o(this,Es).format._isNotTextNode(a)||a===t||h.check.isNonEditable(a))return 0;if(a!==e&&h.check.isZeroWidth(a.textContent)&&(!a.firstChild||!h.check.isBreak(a.firstChild))&&!a.querySelector(n)){if(a.parentNode)return a.parentNode.removeChild(a),-1}else{const c=a.children;for(let d=0,u=c.length,f=0;d<u;d++)!c[d+f]||o(this,Es).component.is(c[d+f])||(f+=r(c[d+f]))}return 0};r(e),e.childNodes.length===0&&(i?h.utils.removeItem(e):e.innerHTML="<br>")}createNestedNode(e,t){typeof t!="function"&&(t=()=>!0);const i=e[0].cloneNode(!1);let n=i;for(let r=1,a=e.length,c;r<a;r++)t(e[r])&&(c=e[r].cloneNode(!1),n.appendChild(c),n=c);return n.innerHTML="",{parent:i,inner:n}}}Es=new WeakMap,Dd=new WeakMap;const AL=LL;var Is,Qs,Mi;class $L{constructor(e){b(this,Is,void 0);b(this,Qs,void 0);b(this,Mi,void 0);E(this,Is,e.$),E(this,Qs,o(this,Is).frameContext),E(this,Mi,o(this,Is).frameOptions)}check(e){const t=o(this,Mi).get("charCounter_max");if(t){const i=this.getLength(typeof e=="string"?e:o(this,Mi).get("charCounter_type")==="byte-html"&&e.nodeType===1?e.outerHTML:e.textContent);if(i>0&&i+this.getLength()>t)return Y2(o(this,Qs).get("charWrapper")),!1}return!0}getLength(e){return typeof e!="string"&&(e=o(this,Mi).get("charCounter_type")==="byte-html"?o(this,Qs).get("wysiwyg").innerHTML:o(this,Qs).get("wysiwyg").textContent),/byte/.test(o(this,Mi).get("charCounter_type"))?this.getByteLength(e):e.length}getByteLength(e){if(!e||!e.toString)return 0;e=e.toString();let t,i;return r3?(i=decodeURIComponent(encodeURIComponent(e)).length,t=0,encodeURIComponent(e).match(/(%0A|%0D)/gi)!==null&&(t=encodeURIComponent(e).match(/(%0A|%0D)/gi).length),i+t):(i=new TextEncoder().encode(e).length,t=0,encodeURIComponent(e).match(/(%0A|%0D)/gi)!==null&&(t=encodeURIComponent(e).match(/(%0A|%0D)/gi).length),i+t)}getWordCount(e){typeof e!="string"&&(e=o(this,Qs).get("wysiwyg").innerText);const t=e.trim();return t?t.split(/\s+/).length:0}display(e){const t=e||o(this,Qs),i=t.get("charCounter"),n=t.get("wordCounter");(i||n)&&he.setTimeout(()=>{i&&(i.textContent=String(this.getLength())),n&&(n.textContent=String(this.getWordCount()))},0)}test(e,t){let i=0;e&&(i=this.getLength(e)),this.display();const n=o(this,Mi).get("charCounter_max");if(n>0){let r=!1;const a=this.getLength();if(a>n){if(r=!0,i>0&&t){o(this,Is).selection.init();const c=o(this,Is).selection.getRange(),d=c.endOffset-1,u=o(this,Is).selection.getNode().textContent,f=c.endOffset-1;o(this,Is).selection.getNode().textContent=u.slice(0,f<0?0:f)+u.slice(c.endOffset,u.length),o(this,Is).selection.setRange(c.endContainer,d,c.endContainer,d)}}else a+i>n&&(r=!0);if(r&&(Y2(o(this,Qs).get("charWrapper")),i>0))return!1}return!0}}Is=new WeakMap,Qs=new WeakMap,Mi=new WeakMap;function Y2(s){s&&!o1(s,"se-blink")&&(lo(s,"se-blink"),he.setTimeout(()=>{ao(s,"se-blink")},600))}const OL=$L;var gn,Ml,Bl;class VL{constructor(e){b(this,gn,void 0);b(this,Ml,void 0);b(this,Bl,!1);E(this,gn,e.$),E(this,Ml,o(this,gn).options),this.keyMap=new Map,this.reverseKeys=new Set}command(e,t,i,n,r,a,c,d){var f,p;if(o(this,Bl))return!1;let u=null;return t?u=this.keyMap.get(n+(i?"1000":"")):u=this.keyMap.get(r)||this.keyMap.get(r+e.key),!u||!i&&u.s||u.space&&!xe.isSpace(n)||u.enter&&!xe.isEnter(n)||u.textTrigger&&!e.key.trim()||u.edge&&!a?!1:(u.plugin&&typeof u.method=="string"?(p=(f=o(this,gn).plugins[u.plugin])[u.method])==null||p.call(f,{range:d,line:c,info:u,event:e,keyCode:n}):typeof u.method=="function"?u.method({range:d,line:c,info:u,event:e,keyCode:n}):o(this,gn).commandDispatcher.run(u.command,u.type,u.button),!0)}disable(){E(this,Bl,!0)}enable(){E(this,Bl,!1)}_registerShortcuts(){const e=o(this,Ml).get("shortcuts"),t=o(this,Ml).get("_reverseCommandArray"),i=this.keyMap=new Map,n=this.reverseKeys;for(const r of Object.keys(e)){if(o(this,gn).plugins[r])continue;const a=r.startsWith("_")?"":r;R3(a,null,e[r],i,t,n)}}_destroy(){this.keyMap.clear(),this.reverseKeys.clear()}}gn=new WeakMap,Ml=new WeakMap,Bl=new WeakMap;const RL=VL,{_w:i0,isMobile:IL,ON_OVER_COMPONENT:DL}=me,K2="2147483646",Eh="2147483645",X2="2147483642",n0="2147483641",Q2={left:0,right:0,top:0};let Th=null;var ce,Nl,Pd,Ll,Oo,vn,Vo,Al,$l,Ol,Vl,yn,Ro,dc,Io,uc,of,Oy,rf,Vy,Do,hc,lf,Ry,Hd,Y0,Fd,K0,Wd,X0,af,Iy,cf,Dy,df,Py,uf,Hy,hf,Fy,zd,Q0;class PL{constructor(e,t,i,n,r){b(this,Ro);b(this,Io);b(this,of);b(this,rf);b(this,Do);b(this,lf);b(this,Hd);b(this,Fd);b(this,Wd);b(this,af);b(this,cf);b(this,df);b(this,uf);b(this,hf);b(this,zd);b(this,ce,void 0);b(this,Nl,void 0);b(this,Pd,void 0);b(this,Ll,void 0);b(this,Oo,Q2);b(this,vn,!1);b(this,Vo,!1);b(this,Al,null);b(this,$l,null);b(this,Ol,null);b(this,Vl,[]);b(this,yn,new Map);E(this,ce,t),this.kind=r||e.constructor.key||e.constructor.name,this.host=e,this.form=i,this.isOpen=!1,this.currentTarget=null,this.currentPositionTarget=null,this.isWWTarget=n.isWWTarget??!0,this.position=n.position||"bottom",this.disabled=!!n.disabled,this.parents=n.parents||[],this.parentsForm=[],this.parentsHide=!!n.parentsHide,this.sibling=n.sibling||null,this.siblingMain=!!n.siblingMain,this.isInsideForm=!!n.isInsideForm,this.isOutsideForm=!!n.isOutsideForm,this.toTop=!1,this.__offset={},E(this,Nl,typeof n.initMethod=="function"?n.initMethod:null),E(this,Pd,typeof n.escGuard=="function"?n.escGuard:null),E(this,Ll,{keydown:T(this,uf,Hy).bind(this),mousedown:T(this,hf,Fy).bind(this)});for(const a of this.parents){if(h.check.isElement(a)){this.parentsForm.push(a);continue}o(a,Vl).push(this),this.parentsForm.push(a.form)}this.form.setAttribute("popover","manual"),o(this,ce).contextProvider.carrierWrapper.appendChild(i),o(this,ce).eventManager.addEvent(i,"click",T(this,af,Iy).bind(this)),o(this,ce).eventManager.addEvent(i,"mouseenter",T(this,cf,Dy).bind(this)),o(this,ce).eventManager.addEvent(i,"mouseleave",T(this,df,Py).bind(this))}open(e,t,{isWWTarget:i,passive:n,initMethod:r,disabled:a,addOffset:c}={}){var u;if(Xt.get("__overInfo")===DL&&(n=!0),!e){console.warn("[SUNEDITOR.Controller.open.fail] The target element is required.");return}if(this.form.removeAttribute("data-se-hidden-by-parent"),this.form.removeAttribute("data-se-hidden-by-children"),o(this,yn).clear(),n||(o(this,ce).store.mode.isBalloon?o(this,ce).toolbar.hide():o(this,ce).store.mode.isSubBalloon&&o(this,ce).subToolbar.hide(),o(this,ce).store.get("hasFocus")||(a??this.disabled?o(this,ce).ui.setControllerOnDisabledButtons(!0):o(this,ce).ui.setControllerOnDisabledButtons(!1))),this.currentPositionTarget=t||e,this.isWWTarget=i??this.isWWTarget,typeof r=="function"&&E(this,Nl,r),n||(o(this,ce).ui.currentControllerName=this.kind),E(this,Oo,{left:0,right:0,top:0,...c}),!n){const f=this.isOutsideForm?this.parentsForm:[];(u=o(this,ce).ui.opendControllers)==null||u.forEach(p=>{f.includes(p.form)||(p.form.style.zIndex=n0)}),this.parentsHide&&this.parentsForm.forEach(p=>{p.style.display="none",p.setAttribute("data-se-hidden-by-children","1")})}T(this,lf,Ry).call(this),T(this,Do,hc).call(this,this.form,this.currentPositionTarget,!1);const d=o(this,ce).instanceCheck.isRange(e);this.currentTarget=d?null:e,T(this,of,Oy).call(this,this.form,e,d,n),i0.setTimeout(()=>Xt.set("__overInfo",!1),0)}close(e){var t,i,n;!e&&(!this.isOpen||o(this,Vo))||(this.form.removeAttribute("data-se-hidden-by-parent"),this.form.removeAttribute("data-se-hidden-by-children"),o(this,yn).clear(),T(this,Ro,dc).call(this,"close"),this.toTop=!1,this.isOpen=!1,E(this,Vo,!1),this.__offset={},E(this,Oo,Q2),T(this,Hd,Y0).call(this),(t=o(this,Nl))==null||t.call(this),T(this,rf,Vy).call(this),this.parentsHide&&!e&&this.parentsForm.forEach(r=>{r.style.display="block",r.removeAttribute("data-se-hidden-by-children")}),(n=(i=this.host).controllerClose)==null||n.call(i),!(this.parentsForm.length>0)&&o(this,ce).component.deselect())}hide(){T(this,Ro,dc).call(this,"hide"),this.form.style.display="none"}show(){T(this,Do,hc).call(this,this.form,this.currentPositionTarget,!1)}bringToTop(e){this.toTop=e,this.form.style.zIndex=e?K2:Eh}resetPosition(e){T(this,Do,hc).call(this,this.form,e||this.currentPositionTarget,!0)}_scrollReposition(){this.form.hasAttribute("data-se-hidden-by-parent")||this.form.hasAttribute("data-se-hidden-by-children")||T(this,Do,hc).call(this,this.form,this.currentPositionTarget,!1)&&i0.setTimeout(()=>{T(this,Ro,dc).call(this,"show")},0)}}ce=new WeakMap,Nl=new WeakMap,Pd=new WeakMap,Ll=new WeakMap,Oo=new WeakMap,vn=new WeakMap,Vo=new WeakMap,Al=new WeakMap,$l=new WeakMap,Ol=new WeakMap,Vl=new WeakMap,yn=new WeakMap,Ro=new WeakSet,dc=function(e){var t,i;for(const n of o(this,Vl))if(e==="hide"&&n.form.style.display!=="none"){const r=T(this,Io,uc).call(this,n);o(n,yn).set(this,!0);const a=T(this,Io,uc).call(this,n);!r&&a&&(n.form.setAttribute("data-se-hidden-by-parent","1"),n.hide())}else if(e==="show"){if(n.form.hasAttribute("data-se-hidden-by-children")){T(t=n,Ro,dc).call(t,"show");continue}const r=T(this,Io,uc).call(this,n);o(n,yn).set(this,!1);const a=T(this,Io,uc).call(this,n);r&&!a&&(n.form.removeAttribute("data-se-hidden-by-parent"),n.show())}else(i=n[e])==null||i.call(n,!0)},Io=new WeakSet,uc=function(e){for(const t of o(e,yn).values())if(t===!0)return!0;return!1},of=new WeakSet,Oy=async function(e,t,i,n){var a,c;const r={position:this.position,inst:this,form:e,target:t,isRangeTarget:i,notInCarrier:!o(this,ce).contextProvider.carrierWrapper.contains(e)};await o(this,ce).eventManager.triggerEvent("onBeforeShowController",{caller:this.kind,frameContext:o(this,ce).frameContext,info:r})!==!1&&(e.style.display="block",o(this,ce).contextProvider.shadowRoot&&E(this,Al,o(this,ce).eventManager.addEvent(e,"mousedown",d=>d.stopPropagation())),n||(o(this,ce).ui.onControllerContext(),o(this,ce).store.set("controlActive",!0),o(this,ce).store.set("_preventBlur",!0)),this.isOpen||o(this,ce).ui.opendControllers.push(r),this.isOpen=!0,(c=(a=this.host).controllerOn)==null||c.call(a,e,t),o(this,ce).eventManager.triggerEvent("onShowController",{caller:this.kind,frameContext:o(this,ce).frameContext,info:r}))},rf=new WeakSet,Vy=function(){var e,t;Th===this&&(Th=null),(t=(e=this.form).hidePopover)==null||t.call(e),this.form.style.display="none",o(this,ce).ui.opendControllers=o(this,ce).ui.opendControllers.filter(i=>i.form!==this.form),!(o(this,ce).ui.currentControllerName!==this.kind&&o(this,ce).ui.opendControllers.length>0)&&(o(this,ce).ui.setControllerOnDisabledButtons(!1),o(this,ce).ui.offControllerContext(),o(this,ce).frameContext.get("lineBreaker_t").style.display=o(this,ce).frameContext.get("lineBreaker_b").style.display="none",o(this,ce).store.set("_lastSelectionNode",null),o(this,ce).ui.currentControllerName="",o(this,ce).store.set("_preventBlur",!1),i0.setTimeout(()=>{o(this,ce).store.set("controlActive",!1)},0),o(this,Al)&&E(this,Al,o(this,ce).eventManager.removeEvent(o(this,Al))))},Do=new WeakSet,hc=function(e,t,i){var n;if(!t)return!1;if(e.style.visibility="hidden",e.style.display="block",this.sibling&&this.sibling.style.display!=="block"&&(this.sibling.style.visibility="hidden",this.sibling.style.display="block"),o(this,ce).selection.isRange(t)){if(!o(this,ce).offset.setRangePosition(this.form,t,{position:"bottom"}))return this.hide(),!1}else{const r=o(this,ce).offset.setAbsPosition(e,t,{addOffset:o(this,Oo),position:this.position,isWWTarget:this.isWWTarget,inst:this,sibling:this.sibling});if(!r)return this.hide(),!1;if(!i&&this.sibling&&!this.siblingMain){const a=e.offsetTop-o(this,Oo).top;r.position==="bottom"?(E(this,vn,!0),e.style.top=a+this.sibling.offsetHeight-1+"px"):(E(this,vn,!1),e.style.top=a-this.sibling.offsetHeight+2+"px")}else E(this,vn,!1)}return e.style.zIndex=this.toTop?Eh:o(this,vn)?X2:n0,e.style.visibility="",(n=e.showPopover)==null||n.call(e),!0},lf=new WeakSet,Ry=function(){T(this,Hd,Y0).call(this),E(this,$l,o(this,ce).eventManager.addGlobalEvent("keydown",o(this,Ll).keydown,!0)),E(this,Ol,o(this,ce).eventManager.addGlobalEvent(IL?"click":"mousedown",o(this,Ll).mousedown,!0))},Hd=new WeakSet,Y0=function(){o(this,ce).component.__removeGlobalEvent(),o(this,$l)&&E(this,$l,o(this,ce).eventManager.removeGlobalEvent(o(this,$l))),o(this,Ol)&&E(this,Ol,o(this,ce).eventManager.removeGlobalEvent(o(this,Ol)))},Fd=new WeakSet,K0=function(){if(o(this,ce).ui.selectMenuOn)return!0;const e=o(this,ce).ui.opendControllers;for(let t=0;t<e.length;t++)if(e[t].inst===this&&e[t].fixed)return!0;return!1},Wd=new WeakSet,X0=function(e){var n;if(h.check.isWysiwygFrame(e)||e.contains(this.form))return!1;if(h.utils.hasClass(e,"se-drag-handle"))return!0;let t=!1;this.isInsideForm&&((n=this.parentsForm)==null?void 0:n.length)>0&&this.parentsForm.some(r=>{if(r.contains(e))return t=!0,!0});const i=this.host._element;return!t&&(!!h.query.getParentElement(e,".se-controller")||(o(this,ce).component.isInline(i)?e===i:e==null?void 0:e.contains(i)))},af=new WeakSet,Iy=function(e){const t=h.query.getEventTarget(e),i=h.query.getCommandTarget(t);if(i){if(e.stopPropagation(),e.preventDefault(),i.getAttribute("data-command")==="close"){this.close();return}this.host.controllerAction(i)}},cf=new WeakSet,Dy=function(e){var i,n;if(o(this,ce).ui.currentControllerName=this.kind,this.parentsForm.length>0&&this.isInsideForm)return;const t=h.query.getEventTarget(e);t.style.zIndex=this.toTop?K2:Eh,this.sibling&&Th!==this&&((n=(i=this.form).matches)!=null&&n.call(i,":popover-open"))&&(Th=this,this.form.hidePopover(),this.form.showPopover())},df=new WeakSet,Py=function(e){if(this.parentsForm.length>0&&this.isInsideForm)return;const t=h.query.getEventTarget(e);t.style.zIndex=this.toTop?Eh:o(this,vn)?X2:n0},uf=new WeakSet,Hy=function(e){var r;if(T(this,Fd,K0).call(this))return;const t=e.code;if(xe.isCtrl(e)||!xe.isNonResponseKey(t))return;const n=h.query.getEventTarget(e);if(xe.isEsc(t)){if(o(this,Vl).some(({isOpen:a})=>a)||(r=o(this,Pd))!=null&&r.call(this))return}else if(this.form.contains(n)||T(this,Wd,X0).call(this,n)||o(this,ce).pluginManager.fileInfo.pluginRegExp.test(this.kind))return;T(this,zd,Q0).call(this,n),this.close()},hf=new WeakSet,Fy=function(e){var i,n;const t=h.query.getEventTarget(e);if((n=(i=this.host)==null?void 0:i._element)!=null&&n.contains(t)){E(this,Vo,!0);return}E(this,Vo,!1),!(t===this.host._element||t===this.currentTarget||T(this,Fd,K0).call(this)||this.form.contains(t)||T(this,Wd,X0).call(this,t)||h.query.getParentElement(t,".se-line-breaker-component"))&&(T(this,zd,Q0).call(this,t),this.close(!0))},zd=new WeakSet,Q0=function(e){o(this,ce).frameContext.get("wysiwyg").contains(e)||(o(this,ce).component.__prevent=!1)};const HL=PL,{_w:J2,ON_OVER_COMPONENT:o0}=me,FL={tl:"nwse-resize",tr:"nesw-resize",bl:"nesw-resize",br:"nwse-resize",lw:"ew-resize",th:"ns-resize",rw:"ew-resize",bh:"ns-resize"},WL="tl|bl|tr|br",zL="lw|rw";let Sh=!1,tc=!1,Lr=0,r0=0;var ie,jd,Ud,qd,Zd,Po,Ho,Rl,Il,Gd,Dl,Fo,Yd,Kd,eg,Xd,tg,Pl,Hh,Qd,sg,ff,Wy,Wo,fc,Jd,ig,pf,zy,eu,ng,tu,og,mf,jy,gf,Uy,vf,qy,yf,Zy,Cf,Gy,bf,Yy,wf,Ky,kf,Xy,_f,Qy,Ef,Jy,Tf,eC,Sf,tC,xf,sC;const Dt=class Dt{constructor(e,t,i,n){b(this,Kd);b(this,Xd);b(this,Pl);b(this,Qd);b(this,ff);b(this,Wo);b(this,Jd);b(this,pf);b(this,eu);b(this,tu);b(this,mf);b(this,gf);b(this,vf);b(this,yf);b(this,Cf);b(this,bf);b(this,wf);b(this,kf);b(this,_f);b(this,Ef);b(this,Tf);b(this,Sf);b(this,xf);b(this,ie,void 0);b(this,jd,void 0);b(this,Ud,void 0);b(this,qd,"");b(this,Zd,"");b(this,Po,0);b(this,Ho,0);b(this,Rl,0);b(this,Il,0);b(this,Gd,"__se__float-none|__se__float-left|__se__float-center|__se__float-right");b(this,Dl,!1);b(this,Fo,{w:"",h:""});b(this,Yd,null);E(this,ie,t),this.kind=e.constructor.key||e.constructor.name,this._alignIcons={none:o(this,ie).icons.format_float_none,left:o(this,ie).icons.format_float_left,right:o(this,ie).icons.format_float_right,center:o(this,ie).icons.format_float_center},this._action={};const r=YL(this,t,i||[]);if(this.controller=r?new HL(this,t,r,{position:"bottom",disabled:!0},this.kind):null,r){this.alignButton=r.querySelector('[data-command="onalign"]');const a=jL(this,t,this.alignButton);a&&(this.selectMenu_align=new Vh(t,{checkList:!1,position:"bottom-center"}),this.selectMenu_align.on(this.alignButton,T(this,wf,Ky).bind(this),{class:"se-figure-select-list"}),this.selectMenu_align.create(a.items,a.html)),this.asButton=r.querySelector('[data-command="onas"]');const c=UL(t,this.asButton);c&&(this.selectMenu_as=new Vh(t,{checkList:!1,position:"bottom-center"}),this.selectMenu_as.on(this.asButton,T(this,kf,Xy).bind(this),{class:"se-figure-select-list"}),this.selectMenu_as.create(c.items,c.html)),this.resizeButton=r.querySelector('[data-command="onresize"]');const d=qL(t,this.resizeButton);d&&(this.selectMenu_resize=new Vh(t,{checkList:!1,position:"bottom-left",dir:"ltr"}),this.selectMenu_resize.on(this.resizeButton,T(this,_f,Qy).bind(this)),this.selectMenu_resize.create(d.items,d.html))}this.inst=e,this.sizeUnit=n.sizeUnit||"px",this.autoRatio=n.autoRatio,this.isVertical=!1,this.percentageButtons=(r==null?void 0:r.querySelectorAll('[data-command="resize_percent"]'))||[],this.captionButton=r==null?void 0:r.querySelector('[data-command="caption"]'),this.align="none",this.as="block",this.__offset={},this._element=null,this._cover=null,this._inlineCover=null,this._container=null,this._caption=null,this._resizeClientX=0,this._resizeClientY=0,this._resize_direction="",this.__containerResizingOff=T(this,Cf,Gy).bind(this),this.__containerResizing=T(this,yf,Zy).bind(this),this.__onContainerEvent=null,this.__offContainerEvent=null,E(this,jd,T(this,Ef,Jy).bind(this)),E(this,Ud,T(this,bf,Yy).bind(this)),o(this,ie).eventManager.addEvent(this.alignButton,"click",T(this,Tf,eC).bind(this)),o(this,ie).eventManager.addEvent(this.asButton,"click",T(this,Sf,tC).bind(this)),o(this,ie).eventManager.addEvent(this.resizeButton,"click",T(this,xf,sC).bind(this)),o(this,ie).contextProvider.applyToRoots(a=>{if(!a.get("wrapper").querySelector(".se-controller.se-resizing-container")){const c=ZL(),d=c.querySelectorAll(".se-resize-dot > span");a.set("_figure",{main:c,border:c.querySelector(".se-resize-dot"),display:c.querySelector(".se-resize-display"),handles:d}),a.get("wrapper").appendChild(c),o(this,ie).eventManager.addEvent(d,"mousedown",T(this,vf,qy).bind(this))}})}static CreateContainer(e,t){return h.utils.createElement("DIV",{class:"se-component"+(t?" "+t:"")},h.utils.createElement("FIGURE",null,e)),Dt.GetContainer(e)}static CreateInlineContainer(e,t){return h.utils.createElement("SPAN",{class:"se-component se-inline-component"+(t?" "+t:"")},e),Dt.GetContainer(e)}static CreateCaption(e,t){const i=h.utils.createElement("FIGCAPTION",null,"<div>"+t+"</div>");return e.appendChild(i),i}static GetContainer(e){const t=h.query.getParentElement(e,"FIGURE",2),i=h.query.getParentElement(e,"SPAN",2),n=t||i;let r=h.query.getParentElement(e,a=>a.parentElement===n,0)||e;if(h.check.isAnchor(r)){const a=r.querySelector(":scope > img");a&&(r=a)}return{target:r,container:h.query.getParentElement(r,Dt.is,3)||t,cover:t,inlineCover:h.utils.hasClass(i,"se-inline-component")?i:null,caption:h.query.getEdgeChild(r.parentElement,"FIGCAPTION",!1),isVertical:xh(r)}}static GetRatio(e,t,i){let n=0,r=0;if(/\d+/.test(e+"")&&/\d+/.test(t+"")){const a=!Q.is(e)&&String(e).replace(/\d+|\./g,"")||i||"px",c=!Q.is(t)&&String(t).replace(/\d+|\./g,"")||i||"px";if(a===c){const d=Q.get(e,4),u=Q.get(t,4);n=d/u,r=u/d}}return{w:Q.get(n,4),h:Q.get(r,4)}}static CalcRatio(e,t,i,n){if(n!=null&&n.w&&(n!=null&&n.h)&&/\d+/.test(e+"")&&/\d+/.test(t+"")){const r=!Q.is(e)&&String(e).replace(/\d+|\./g,"")||i||"px",a=!Q.is(t)&&String(t).replace(/\d+|\./g,"")||i||"px";if(r===a){const c=r==="%"?2:0,d=e,u=t;t=Q.get(n.h*Q.get(d,c),c)+a,e=Q.get(n.w*Q.get(u,c),c)+r}}return{w:e,h:t}}static is(e){return h.check.isComponentContainer(e)||/^(HR)$/.test(e==null?void 0:e.nodeName)}close(){var e;o(this,ie).store.set("_preventBlur",!1),h.utils.removeClass(this._cover,"se-figure-selected"),o(this,ie).component.__removeDragEvent(),T(this,tu,og).call(this),(e=this.controller)==null||e.close()}open(e,{nonResizing:t,nonSizeInfo:i,nonBorder:n,figureTarget:r,infoOnly:a}){var B;if(!e){console.warn('[SUNEDITOR.modules.Figure.open] The "targetNode" is null.');return}Xt.get("__overInfo")===o0&&(n=!0);const c=Dt.GetContainer(e),d=c.target;let u=!1;if(!c.container)if(!o(this,ie).options.get("strictMode").formatFilter)c.container=d,c.cover=d,u=!0;else return{container:null,cover:null,width:d.style.width||d.width||"",height:d.style.height||d.height||"",isVertical:this.isVertical};Xt.set("__figureInst",this),T(this,Xd,tg).call(this,c);const f=r&&(this._cover||this._container)||d,p=f.offsetWidth||null,m=f.offsetHeight||null,{top:g,left:y,scrollX:v,scrollY:C}=o(this,ie).offset.getLocal(f),w=(d.getAttribute("data-se-size")||"").split(",");let k=Q.get(d.style.width,2)||p,_=Q.get(d.style.height,2)||m;this.isVertical&&([k,_]=[_,k]);const M=Dt.GetRatio(k,_,this.sizeUnit),S={container:c.container,cover:c.cover,caption:c.caption,align:this.align,ratio:M,isVertical:this.isVertical,w:p||"",h:m||"",t:g,l:y,width:w[0]||"auto",height:w[1]||"auto",originWidth:d.naturalWidth||d.offsetWidth,originHeight:d.naturalHeight||d.offsetHeight};if(E(this,qd,S.width),E(this,Zd,S.height),a)return S;const x=o(this,ie).frameContext.get("_figure");o(this,ie).ui.setFigureContainer(x.main),o(this,ie).ui.opendControllers=o(this,ie).ui.opendControllers.filter(N=>N.form!==x.main),x.main.style.top=g+"px",x.main.style.left=y+"px",x.main.style.width=(this.isVertical?m:p)+"px",x.main.style.height=(this.isVertical?p:m)+"px",x.border.style.top="0px",x.border.style.left="0px",x.border.style.width=(this.isVertical?m:p)+"px",x.border.style.height=(this.isVertical?p:m)+"px",this.__offset={left:y+v,top:g+C},o(this,ie).ui.opendControllers.push({position:"none",form:x.main,target:f,inst:this,notInCarrier:!0});const L=/%$/.test(d.style.width)&&/%$/.test(c.container.style.width)?Q.get(c.container.style.width,0)/100+"":"";for(let N=0,O=this.percentageButtons.length;N<O;N++)this.percentageButtons[N].getAttribute("data-value")===L?h.utils.addClass(this.percentageButtons[N],"active"):h.utils.removeClass(this.percentageButtons[N],"active");if(this.captionButton&&(c.caption?h.utils.addClass(this.captionButton,"active"):h.utils.removeClass(this.captionButton,"active")),x.display.style.display=i||this._inlineCover?"none":"",x.border.style.display=n?"none":"",x.main.style.display="block",Xt.get("__overInfo")!==o0){const N=t?"none":"flex",O=x.handles;for(let A=0,V=O.length;A<V;A++)O[A].style.display=N;if(this.controller){const A=this.getSize(d);h.utils.changeTxt(x.display,o(this,ie).lang[this.align==="none"?"basic":this.align]+" ("+A.dw+", "+A.dh+")"),T(this,Qd,sg).call(this),T(this,ff,Wy).call(this),o(this,ie).ui._visibleControllers(!0,!0);const V=this.controller.form.querySelectorAll('[data-command="rotate"][data-value="90"], [data-command="rotate"][data-value="-90"], [data-command="caption"], [data-command="onalign"], [data-command="onresize"]'),R=this._inlineCover||u?"none":"";V==null||V.forEach(D=>{D.style.display=R});const $=this.controller.form.querySelector('[data-command="onas"]');$&&($.style.display=u?"none":"")}h.utils.removeClass(this._cover,"se-figure-over-selected"),(B=this.controller)==null||B.open(x.main,null,{initMethod:o(this,jd),isWWTarget:!1,addOffset:null}),J2.setTimeout(()=>Xt.set("__overInfo",!1),0)}else h.utils.addClass(this._cover,"se-figure-over-selected");return h.utils.addClass(this._cover,"se-figure-selected"),E(this,Rl,E(this,Po,p)),E(this,Il,E(this,Ho,m)),!this._inlineCover&&(Xt.get("__overInfo")!==o0||h.utils.hasClass(c.container,"se-input-component"))&&T(this,mf,jy).call(this,x.main),S}controllerHide(){var e;(e=this.controller)==null||e.hide()}controllerShow(){var e;(e=this.controller)==null||e.show()}controllerOpen(e,t){var i;this._element=e,(i=this.controller)==null||i.open(e,null,t)}setFigureSize(e,t){/%$/.test(e+"")?this._setPercentSize(e,t):(!e||e==="auto")&&(!t||t==="auto")?this.autoRatio?this._setPercentSize(100,this.autoRatio.default||this.autoRatio.current):this._setAutoSize():this._applySize(e,t,"")}setSize(e,t){const i=this.isVertical;i&&([e,t]=[t,e]),this.setFigureSize(e,t),i&&this.setTransform(this._element,e,t,0)}getSize(e){var u,f;e||(e=this._element);const t=xh(e);let i="",n="",r="",a="";if(!e)return{w:i,h:n,dw:r,dh:a};const c=Dt.GetContainer(e),d=c.target;return c.container?(i=/%$/.test(d.style.width)?(c.container&&Q.get(c.container.style.width,2)||100)+"%":d.style.width,n=c.inlineCover?c.inlineCover.style.height||e.style.height||String(e.height||""):Q.get((u=c.cover)==null?void 0:u.style.paddingBottom,0)>0&&!t?(f=c.cover)==null?void 0:f.style.height:!/%$/.test(d.style.height)||!/%$/.test(d.style.width)?d.style.height:(c.container&&Q.get(c.container.style.height,2)||100)+"%",i||(i="auto"),n||(n="auto")):o(this,ie).options.get("strictMode").formatFilter?(i="",n=d.style.height):(i=d.style.width||"auto",n=d.style.height||"auto"),r=t?n:i,a=t?i:n,{w:i,h:n,dw:r,dh:a}}setAlign(e,t){e||(e=this._element),this.align=t||(t="none");const i=Dt.GetContainer(e);if(!i.cover)return;const n=i.target,r=i.container,a=i.cover;if(/%$/.test(n.style.width)&&t==="center"&&!o(this,ie).component.isInline(r)?(r.style.minWidth="100%",a.style.width=r.style.width):(r.style.minWidth="",a.style.width=this.isVertical?n.style.height||n.offsetHeight+"px":!n.style.width||n.style.width==="auto"?"":n.style.width||"100%"),h.utils.hasClass(r,"__se__float-"+t)||(h.utils.removeClass(r,o(this,Gd)),h.utils.addClass(r,"__se__float-"+t)),this.autoRatio){const{w:c,h:d}=this.getSize(this._element);this.__setCoverPaddingBottom(c,d)}T(this,Qd,sg).call(this)}convertAsFormat(e,t){e||(e=this._element),this.as=t||"block";const{container:i,inlineCover:n,target:r}=Dt.GetContainer(e),{w:a,h:c}=this.getSize(r),d=h.check.isAnchor(r.parentNode)?r.parentNode:null,u=r.cloneNode(!1);u.style.width="",u.style.height="",u.removeAttribute("width"),u.removeAttribute("height");let f=u;if(d){const p=d.cloneNode(!1);p.appendChild(u),f=p}switch(t){case"inline":{if(n)break;o(this,ie).component.deselect();const p=i.nextElementSibling,m=i.parentElement,g=Dt.CreateInlineContainer(f);h.utils.addClass(g.container,i.className.split(" ").filter(v=>v!=="se-figure-selected"&&v!=="se-component-selected").join("|")),T(this,Kd,eg).call(this,g,a,c);const y=h.utils.createElement(o(this,ie).options.get("defaultLine"),null,g.container);m.insertBefore(y,p),h.utils.removeItem(i);break}case"block":{if(!n)break;o(this,ie).component.deselect(),o(this,ie).selection.setRange(i,0,i,1);const p=o(this,ie).html.remove(),m=o(this,ie).nodeTransform.split(p.container,p.offset,0);m!=null&&m.previousElementSibling&&h.check.isZeroWidth(m.previousElementSibling)&&h.utils.removeItem(m.previousElementSibling);const g=Dt.CreateContainer(f);h.utils.addClass(g.container,i.className.split(" ").filter(y=>y!=="se-inline-component"&&y!=="se-figure-selected"&&y!=="se-component-selected").join("|")),T(this,Kd,eg).call(this,g,a,c),(m||p.container).parentElement.insertBefore(g.container,m);break}}return u}controllerAction(e){const t=e.getAttribute("data-command"),i=e.getAttribute("data-value"),n=e.getAttribute("data-type"),r=this._element;if(!(/^on.+/.test(t)||n==="selectMenu")){switch(t){case"mirror":{const a=rg(r);let c=a.x,d=a.y;i==="h"&&!this.isVertical||i==="v"&&this.isVertical?d=d?"":"180":c=c?"":"180",this._setRotate(r,a.r,c,d);break}case"rotate":{this.setTransform(r,null,null,Number(i));break}case"caption":{if(this._caption)h.utils.removeItem(this._caption),J2.setTimeout(o(this,ie).component.select.bind(o(this,ie).component,r,this.kind),0),this._caption=null;else{const a=Dt.CreateCaption(this._cover,o(this,ie).lang.caption),c=h.query.getEdgeChild(a,d=>d.nodeType===3,!1);c?o(this,ie).selection.setRange(c,0,c,c.textContent.length):a.focus(),this._caption=a,this.controller.close()}(/\d+/.test(r.style.height)||this.isVertical&&this._caption)&&(/%$/.test(r.style.width)||/auto/.test(r.style.height)?this.deleteTransform():this.setTransform(r,r.style.width,r.style.height,0));break}case"revert":{this._setRevert();break}case"edit":{this.inst.componentEdit(r);break}case"copy":{o(this,ie).component.copy(this._container);break}case"remove":{this.inst.componentDestroy(r),this.controller.close();break}}if(/^__c__/.test(t)){this._action[t](r,i,e);return}t!=="edit"&&(o(this,ie).history.push(!1),/^remove|caption$/.test(t)||o(this,ie).component.select(r,this.kind))}}retainFigureFormat(e,t,i,n){var d;const r=o(this,ie).component.isInline(e),a=t.parentNode;let c=o(this,ie).format.isBlock(a)||h.check.isWysiwygFrame(a)||a.nodeType>=9?t:((d=Dt.GetContainer(t))==null?void 0:d.container)||a||t;if(h.query.getParentElement(t,h.check.isExcludeFormat))c=i&&i!==t?i:t,c.parentNode.replaceChild(e,c);else if(r&&o(this,ie).format.isLine(c)){const u=r&&/^SPAN$/i.test(t.parentElement.nodeName)?t.parentElement:t;u.parentElement.replaceChild(e,u)}else if(h.check.isListCell(c)){const u=h.query.getParentElement(t,f=>f.parentNode===c);c.insertBefore(e,u),h.utils.removeItem(t),o(this,ie).nodeTransform.removeEmptyNode(u,null,!0)}else if(o(this,ie).format.isLine(c)){const u=h.query.getParentElement(t,f=>f.parentNode===c);c=o(this,ie).nodeTransform.split(c,u),c.parentNode.insertBefore(e,c),h.utils.removeItem(t),o(this,ie).nodeTransform.removeEmptyNode(c,null,!0)}else if(o(this,ie).format.isLine(c.parentNode)){const u=c.parentNode;u.parentNode.insertBefore(e,c.previousSibling?u.nextElementSibling:u),((n==null?void 0:n.__updateTags.map(f=>c.contains(f)).length)===0||h.check.isZeroWidth(c))&&h.utils.removeItem(c)}else c=h.check.isFigure(c.parentNode)?h.query.getParentElement(c.parentNode,Dt.is):c,c.parentNode.replaceChild(e,c)}deleteTransform(e){e||(e=this._element);const t=e,i=(t.getAttribute("data-se-size")||"").split(",");this.isVertical=!1,t.style.maxWidth="",t.style.transform="",t.style.transformOrigin="",T(this,pf,zy).call(this,t),this._applySize(i[0]||"auto",i[1]||"","")}setTransform(e,t,i,n){try{E(this,Dl,!0);const r=rg(e),a=r.r+(n||0)*1;n=Math.abs(a)>=360?0:a;const c=this.isVertical=xh(n);t=Q.get(t,0),i=Q.get(i,0);const d=e,u=(d.getAttribute("data-se-size")||"auto,auto").split(",");c&&this._setRotate(d,n,r.x,r.y);let f="";if(/auto|%$/.test(u[0])&&!c)u[0]==="auto"&&u[1]==="auto"?this._setAutoSize():this._setPercentSize(u[0],u[1]);else{const p=Dt.GetContainer(d),m=p.cover||p.inlineCover,g=t||d.offsetWidth,y=i||d.offsetHeight,v=(c?y:g)+"px",C=(c?g:y)+"px";if(T(this,Pl,Hh).call(this),this._applySize(g+"px",y+"px",""),m&&(m.style.width=v,m.style.height=p.caption||p.inlineCover?"":C),c){const w=g/2+"px "+g/2+"px 0",k=y/2+"px "+y/2+"px 0";f=n===90||n===-270?k:w}}d.style.transformOrigin=f,c||this._setRotate(d,n,r.x,r.y),c?d.style.maxWidth="none":d.style.maxWidth="",T(this,Jd,ig).call(this,d)}finally{E(this,Dl,!1)}}_displayResizeHandles(e){const t=e?"flex":"none";this.controller&&(this.controller.form.style.display=t);const i=o(this,ie).frameContext.get("_figure"),n=i.handles;for(let r=0,a=n.length;r<a;r++)n[r].style.display=t;t==="none"?(h.utils.addClass(i.main,"se-resize-ing"),E(this,Yd,o(this,ie).eventManager.addGlobalEvent("keydown",o(this,Ud)))):h.utils.removeClass(i.main,"se-resize-ing")}_setRotate(e,t,i,n){let r=(e.offsetWidth-e.offsetHeight)*(/^-/.test(t+"")?1:-1),a="";if(/[1-9]/.test(t+"")&&(i||n))switch(a=i?"Y":"X",t+""){case"90":a=i&&n?"X":n?a:"";break;case"270":r*=-1,a=i&&n?"Y":i?a:"";break;case"-90":a=i&&n?"Y":i?a:"";break;case"-270":r*=-1,a=i&&n?"X":n?a:"";break;default:a=""}t%180===0&&(e.style.maxWidth=""),e.style.transform="rotate("+t+"deg)"+(i?" rotateX("+i+"deg)":"")+(n?" rotateY("+n+"deg)":"")+(a?" translate"+a+"("+r+"px)":"")}_applySize(e,t,i){const n=/^(rw|lw)$/.test(i)&&/\d+/.test(this._element.style.height),r=/^(th|bh)$/.test(i)&&/\d+/.test(this._element.style.width);t=t||(this.autoRatio?this.autoRatio.current||this.autoRatio.default:t),e=Q.is(e)?e+this.sizeUnit:e,!/%$/.test(e)&&!/%$/.test(t)&&!n&&!r&&T(this,Pl,Hh).call(this);const a=this._cover||this._element;this.autoRatio&&this._cover&&(this._cover.style.width=e),r||(a.style.width=this._element.style.width=e),n||(t=Q.is(t)?t+this.sizeUnit:t,a.style.height=this._element.style.height=this.autoRatio&&!this.isVertical?"100%":t,this.autoRatio&&this._cover&&(this._cover.style.height=t,this.__setCoverPaddingBottom(e,t))),this.align==="center"&&this.setAlign(this._element,this.align),T(this,Wo,fc).call(this)}__setCoverPaddingBottom(e,t){this._inlineCover!==this._cover&&(this.isVertical&&([e,t]=[t,e]),this._cover.style.height=t,/%$/.test(e)&&this.align==="center"?this._cover.style.paddingBottom=/%$/.test(t)?Q.get(Q.get(t,2)/100*Q.get(e,2),2)+"%":t:this._cover.style.paddingBottom=t)}_setAutoSize(){this._caption&&(this._caption.style.marginTop=""),this.deleteTransform(),T(this,Pl,Hh).call(this),this.autoRatio?this._setPercentSize("100%",this.autoRatio.current||this.autoRatio.default):(this._element.style.maxWidth="",this._element.style.width="",this._element.style.height="",this._cover&&(this._cover.style.width="",this._cover.style.height="")),this.setAlign(this._element,this.align),T(this,Wo,fc).call(this)}_setPercentSize(e,t){t||(t=this.autoRatio?/%$/.test(this.autoRatio.current)?this.autoRatio.current:this.autoRatio.default:t),t=t&&!/%$/.test(t+"")&&!Q.get(t,0)?Q.is(t)?t+"%":t:Q.is(t)?t+this.sizeUnit:t||(this.autoRatio?this.autoRatio.default:"");const i=/%$/.test(t+"");if(this._container.style.width=String(Q.is(e)?e+"%":e),this._container.style.height="",this._element===this._cover&&!o(this,ie).options.get("strictMode").formatFilter){T(this,Wo,fc).call(this);return}this._inlineCover!==this._cover&&this._cover&&(this._cover.style.width="100%",this._cover.style.height=String(t)),this._element.style.width="100%",this._element.style.maxWidth="",this._element.style.height=String(this.autoRatio?"100%":i?"":t),this.align==="center"&&this.setAlign(this._element,this.align),this.autoRatio&&this.__setCoverPaddingBottom(String(e),String(t)),T(this,Jd,ig).call(this,this._element),T(this,Wo,fc).call(this)}_setRevert(){this.setFigureSize(o(this,Fo).w,o(this,Fo).h)}};ie=new WeakMap,jd=new WeakMap,Ud=new WeakMap,qd=new WeakMap,Zd=new WeakMap,Po=new WeakMap,Ho=new WeakMap,Rl=new WeakMap,Il=new WeakMap,Gd=new WeakMap,Dl=new WeakMap,Fo=new WeakMap,Yd=new WeakMap,Kd=new WeakSet,eg=function(e,t,i){const n=this.kind;e.target.onload=()=>o(this,ie).component.select(e.target,n),T(this,Xd,tg).call(this,e),e.inlineCover&&(this.setAlign(e.target,"none"),this.deleteTransform()),this.setFigureSize(t,i)},Xd=new WeakSet,tg=function(e){this._inlineCover=e.inlineCover,this._cover=e.cover||this._inlineCover,this._container=e.container,this._caption=e.caption,this._element=e.target,this.align=(this._container.className.match(/(?:^|\s)__se__float-(none|left|center|right)(?:$|\s)/)||[])[1]||e.target.style.float||"none",this.as=this._inlineCover?"inline":"block",this.isVertical=xh(e.target)},Pl=new WeakSet,Hh=function(){this._cover&&(this._cover.style.width="",this._cover.style.height=""),this._container.style.width="",this._container.style.height="",h.utils.removeClass(this._container,o(this,Gd)),h.utils.addClass(this._container,"__se__float-"+this.align),this.align==="center"&&this.setAlign(this._element,this.align)},Qd=new WeakSet,sg=function(){this.alignButton&&h.utils.changeElement(this.alignButton.firstElementChild,this._alignIcons[this.align])},ff=new WeakSet,Wy=function(){this.asButton&&h.utils.changeElement(this.asButton.firstElementChild,o(this,ie).icons[`as_${this.as}`])},Wo=new WeakSet,fc=function(){if(o(this,Dl))return;const e=(this._element.getAttribute("data-se-size")||",").split(",");o(this,Fo).w=e[0],o(this,Fo).h=e[1];const t=this.getSize(this._element);this._element.setAttribute("width",t.w.replace("px","")),this._element.setAttribute("height",t.h.replace("px","")),this._element.setAttribute("data-se-size",t.w+","+t.h),this.autoRatio&&(this.autoRatio.current=/%$/.test(t.h)?t.h:"")},Jd=new WeakSet,ig=function(e){const t=h.query.getEdgeChild(h.query.getParentElement(e,"FIGURE"),"FIGCAPTION",!1);t&&(t.style.marginTop=(this.isVertical&&!this.autoRatio?e.offsetWidth-e.offsetHeight:0)+"px",this.isVertical&&this.autoRatio?e.style.marginTop=t.offsetHeight+"px":e.style.marginTop="")},pf=new WeakSet,zy=function(e){const t=h.query.getEdgeChild(h.query.getParentElement(e,"FIGURE"),"FIGCAPTION",!1);t&&(t.style.marginTop="")},eu=new WeakSet,ng=function(){o(this,ie).component.__removeDragEvent(),T(this,tu,og).call(this),this._displayResizeHandles(!0),o(this,ie).ui.offCurrentController(),o(this,ie).ui.disableBackWrapper()},tu=new WeakSet,og=function(){o(this,ie).eventManager.removeGlobalEvent(this.__onContainerEvent),o(this,ie).eventManager.removeGlobalEvent(this.__offContainerEvent),o(this,ie).eventManager.removeGlobalEvent(o(this,Yd))},mf=new WeakSet,jy=function(e){const t=o(this,ie).frameContext.get("wrapper").querySelector(".se-drag-handle");h.utils.removeClass(t,"se-drag-handle-full"),t.style.opacity="",t.style.width="",t.style.height="",Xt.set("__dragHandler",t),Xt.set("__dragContainer",this._container),Xt.set("__dragCover",this._cover),Xt.set("__dragMove",T(this,gf,Uy).bind(this,t,e)),Xt.get("__dragMove")(),t.style.display="block"},gf=new WeakSet,Uy=function(e,t){e.style.display="block",e.style.left=t.offsetLeft+(o(this,ie).options.get("_rtl")?e.offsetWidth:t.offsetWidth-e.offsetWidth*1.5)+"px",e.style.top=t.offsetTop-e.offsetHeight+.5+"px"},vf=new WeakSet,qy=function(e){e.stopPropagation(),e.preventDefault();const t=Xt.get("__figureInst");if(!t)return;const i=h.query.getEventTarget(e),n=t._resize_direction=i.classList[0];t._resizeClientX=e.clientX,t._resizeClientY=e.clientY,o(this,ie).frameContext.get("_figure").main.style.float=/l/.test(n)?"right":/r/.test(n)?"left":"none",o(this,ie).ui.enableBackWrapper(FL[n]);const{w:r,h:a,dw:c,dh:d}=this.getSize(t._element);if(Sh=tc=!1,Lr=r0=0,!this.isVertical){const f=!r||/auto|%$/.test(r),p=!a||/auto|%$/.test(a);if(WL.includes(n)&&f&&p?Sh=!0:zL.includes(n)&&f&&(tc=!0),Sh||tc){const m=t._cover||t._element;r0=m.offsetWidth,Lr=Se.getWidthInPercentage(m,o(this,ie).frameContext.get("wysiwygFrame"))/100}}t.__onContainerEvent=o(this,ie).eventManager.addGlobalEvent("mousemove",t.__containerResizing),t.__offContainerEvent=o(this,ie).eventManager.addGlobalEvent("mouseup",t.__containerResizingOff),t._displayResizeHandles(!1);const u=o(this,ie).frameContext.get("_figure").display;u.style.display="block",h.utils.changeTxt(u,c+" * "+d)},yf=new WeakSet,Zy=function(e){const t=this._resize_direction,i=e.clientX,n=e.clientY,r=this.isVertical;let a=r?o(this,Il):o(this,Rl),c=r?o(this,Rl):o(this,Il);const d=a+(/r/.test(t)?i-this._resizeClientX:this._resizeClientX-i),u=c+(/b/.test(t)?n-this._resizeClientY:this._resizeClientY-n),f=c/a*d,p=o(this,ie).frameContext.get("_figure").border;/t/.test(t)&&(p.style.top=c-(/h/.test(t)?u:f)+"px"),/l/.test(t)&&(p.style.left=a-d+"px"),/r|l/.test(t)&&(p.style.width=d+"px",a=d),/^(t|b)[^h]$/.test(t)?(p.style.height=f+"px",c=f):/^(t|b)h$/.test(t)&&(p.style.height=u+"px",c=u);const m=!r&&/h$/.test(t)?o(this,qd):Math.round(a),g=!r&&/w$/.test(t)?o(this,Zd):Math.round(c),y=Lr?m/r0*Lr*100:m;h.utils.changeTxt(o(this,ie).frameContext.get("_figure").display,Lr?Q.get(y>100?100:y,2).toFixed(2)+"%":y+" * "+g),E(this,Po,m),E(this,Ho,g)},Cf=new WeakSet,Gy=function(){T(this,eu,ng).call(this);let e=this.isVertical?o(this,Ho):o(this,Po),t=this.isVertical?o(this,Po):o(this,Ho);if(e=Math.round(e)||e,t=Math.round(t)||t,!this.isVertical&&!/%$/.test(e+"")){const i=o(this,ie).frameContext.get("wysiwygFrame").clientWidth-Q.get(o(this,ie).frameContext.get("wwComputedStyle").getPropertyValue("padding-left"))+Q.get(o(this,ie).frameContext.get("wwComputedStyle").getPropertyValue("padding-right"))-2;Q.get(e,0)>i&&(t=Math.round(t/e*i),e=i)}if(Sh||tc){const i=this._cover||this._element;e=e/i.offsetWidth*Lr*100;const n=Q.get(e>100?100:e,2)+"%";this._setPercentSize(n,tc?this.getSize(this._element).h:"")}else this._applySize(e,t,this._resize_direction),this.isVertical&&this.setTransform(this._element,e,t,0);o(this,ie).history.push(!1),o(this,ie).component.select(this._element,this.kind)},bf=new WeakSet,Yy=function(e){xe.isEsc(e.code)&&(T(this,eu,ng).call(this),o(this,ie).component.select(this._element,this.kind))},wf=new WeakSet,Ky=function(e){this.setAlign(this._element,e),this.selectMenu_align.close(),o(this,ie).component.select(this._element,this.kind),o(this,ie).history.push(!1)},kf=new WeakSet,Xy=function(e){this.convertAsFormat(this._element,e),this.selectMenu_as.close(),o(this,ie).history.push(!1)},_f=new WeakSet,Qy=function(e){if(e==="auto")this.deleteTransform(),this._setAutoSize();else{let t=this.getSize(this._element).h;if(this.isVertical){const i=(this._element.getAttribute("data-se-size")||",").split(",");i[1]&&(t=i[1])}this.deleteTransform(),this._setPercentSize(e*1,Q.get(t,0)===null||!/%$/.test(t)?"":t)}this.selectMenu_resize.close(),o(this,ie).component.select(this._element,this.kind),o(this,ie).history.push(!1)},Ef=new WeakSet,Jy=function(){const e=o(this,ie).frameContext.get("_figure");e.main.style.display="none",o(this,ie).ui.setFigureContainer(null),o(this,ie).ui.opendControllers=o(this,ie).ui.opendControllers.filter(t=>t.form!==e.main)},Tf=new WeakSet,eC=function(){this.selectMenu_align.open("",'[data-command="'+this.align+'"]')},Sf=new WeakSet,tC=function(){this.selectMenu_as.open("",'[data-command="'+this.as+'"]')},xf=new WeakSet,sC=function(){const e=this.getSize(this._element),t=e.w,i=e.h;let n="";if(this.autoRatio){if(i===this.autoRatio.default&&/%$/.test(t)){const r=Q.get(t);r===100?n="auto":n="resize_percent"+r}}else i==="auto"&&(t==="auto"?n="auto":/%$/.test(t)&&(n="resize_percent"+Q.get(t)));this.selectMenu_resize.open("",'[data-command="'+n+'"]')};let J0=Dt;function rg(s){const e=s.style.transform;return e?{r:Number((e.match(/rotate\(([-0-9]+)deg\)/)||[])[1]||0),x:(e.match(/rotateX\(([-0-9]+)deg\)/)||[])[1]||"",y:(e.match(/rotateY\(([-0-9]+)deg\)/)||[])[1]||""}:{r:0,x:"",y:""}}function xh(s){return/^(90|270)$/.test(Math.abs(Q.is(s)?s:rg(s).r).toString())}function jL(s,e,t){if(!t)return null;const i=[s._alignIcons.none,s._alignIcons.left,s._alignIcons.center,s._alignIcons.right],n=[e.lang.basic,e.lang.left,e.lang.center,e.lang.right],r=["none","left","center","right"],a=[],c=[];for(let d=0;d<r.length;d++)a.push(`
|
|
89
|
-
<button type="button" class="se-btn-list se-tooltip" data-command="${r[d]}" data-type="selectMenu" >
|
|
90
|
-
${i[d]}
|
|
91
|
-
<span class="se-tooltip-inner">
|
|
92
|
-
<span class="se-tooltip-text">${n[d]}</span>
|
|
93
|
-
</span>
|
|
94
|
-
</button>`),c.push(r[d]);return{html:a,items:c}}function UL(s,e){if(!e)return null;const t=[s.icons.as_block,s.icons.as_inline],i=[s.lang.asBlock,s.lang.asInline],n=["block","inline"],r=[],a=[];for(let c=0;c<n.length;c++)r.push(`
|
|
95
|
-
<button type="button" class="se-btn-list se-tooltip" data-command="${n[c]}" data-type="selectMenu" >
|
|
96
|
-
${t[c]}
|
|
97
|
-
<span class="se-tooltip-inner">
|
|
98
|
-
<span class="se-tooltip-text">${i[c]}</span>
|
|
99
|
-
</span>
|
|
100
|
-
</button>`),a.push(n[c]);return{html:r,items:a}}function qL(s,e){if(!e)return null;const t=e.getAttribute("data-value").split(","),i=[];for(let n=0,r,a,c,d;n<t.length;n++)c=t[n],r=Q.is(c),a=r?"resize_percent"+c:"auto",d=r?c+"%":s.lang.autoSize,i.push('<button type="button" class="se-btn-list" data-command="'+a+'" data-value="'+c+'"><span>'+d+"</span></button>");return{html:i,items:t}}function ZL(){const s=`
|
|
101
|
-
<div class="se-resize-dot">
|
|
102
|
-
<span class="tl"></span>
|
|
103
|
-
<span class="tr"></span>
|
|
104
|
-
<span class="bl"></span>
|
|
105
|
-
<span class="br"></span>
|
|
106
|
-
<span class="lw"></span>
|
|
107
|
-
<span class="th"></span>
|
|
108
|
-
<span class="rw"></span>
|
|
109
|
-
<span class="bh"></span>
|
|
110
|
-
<div class="se-resize-display"></div>
|
|
111
|
-
</div>`;return h.utils.createElement("DIV",{class:"se-controller se-resizing-container",style:"display: none;"},s)}function GL(s){const e=s.split("_"),t=e[0],i=e[1];let n,r,a,c,d;switch(t){case"resize":n="onresize",r=i,a="resize",d="resize";break;case"auto":n="auto",a="autoSize",d="auto_size";break;case"rotate":n="rotate",r=i==="l"?-90:i==="r"?90:Q.get(i),a=r<0?"rotateLeft":"rotateRight",d=r<0?"rotate_left":"rotate_right";break;case"mirror":n="mirror",r=i,a=i==="h"?"mirrorHorizontal":"mirrorVertical",d=i==="h"?"mirror_horizontal":"mirror_vertical";break;case"align":n="onalign",a="align",d="align_justify";break;case"caption":n="caption",a="caption",d="caption";break;case"revert":n="revert",a="revert",d="revert";break;case"edit":n="edit",a="edit",d="edit";break;case"as":n="onas",a="blockStyle",d="as_block";break;case"copy":n="copy",a="copy",d="copy";break;case"remove":n="remove",a="remove",d="delete";break}return n?{c:n,v:r,l:a,t:c,i:d}:null}function YL(s,e,t){let i=null;if((t==null?void 0:t.length)>0){const{lang:n,icons:r}=e;i='<div class="se-arrow se-arrow-up"></div>';for(let a=0,c;a<t.length;a++){c=t[a],i+='<div class="se-btn-group">';for(let d=0,u=c.length,f;d<u;d++){if(f=c[d],typeof(f==null?void 0:f.action)=="function"){const p=f;f={c:`__c__${p.command}`,v:p.value||"",l:p.title,i:p.icon},s._action[f.c]=p.action}else if(f=GL(f),!f)continue;i+=`
|
|
112
|
-
<button type="button" data-command="${f.c}" data-value="${f.v}" class="se-btn se-tooltip">
|
|
113
|
-
${r[f.i]||f.i}
|
|
114
|
-
<span class="se-tooltip-inner"><span class="se-tooltip-text">${n[f.l]||f.l}</span></span>
|
|
115
|
-
</button>`}i+="</div>"}}return i?h.utils.createElement("DIV",{class:"se-controller se-controller-resizing"},i):null}const KL=J0,{_w:Ar,ON_OVER_COMPONENT:$r,isMobile:XL}=me,ev=/^Arrow(Left|Up|Right|Down)$/,tv=/^Arrow(Left|Up)$/;var Bi,re,ft,zo,su,Cn,Jt,Ot,bn,Hl,Fl,Wl,zl,Mf,iC,Bf,nC,iu,lg,nu,ag,Nf,oC,Lf,rC,Af,lC,$f,aC,Of,cC,Vf,dC,Rf,uC,If,hC,Df,fC,Pf,pC;class QL{constructor(e){b(this,Mf);b(this,Bf);b(this,iu);b(this,nu);b(this,Nf);b(this,Lf);b(this,Af);b(this,$f);b(this,Of);b(this,Vf);b(this,Rf);b(this,If);b(this,Df);b(this,Pf);b(this,Bi,void 0);b(this,re,void 0);b(this,ft,void 0);b(this,zo,void 0);b(this,su,void 0);b(this,Cn,void 0);b(this,Jt,void 0);b(this,Ot,void 0);b(this,bn,void 0);b(this,Hl,null);b(this,Fl,null);b(this,Wl,null);b(this,zl,null);E(this,Bi,e),E(this,re,e.$),E(this,ft,e.store),E(this,zo,o(this,re).contextProvider),E(this,su,o(this,zo).carrierWrapper),E(this,Cn,o(this,re).options),E(this,Jt,o(this,re).frameContext),E(this,Ot,o(this,re).eventManager),this.info=null,this.isSelected=!1,this.currentTarget=null,this.currentPlugin=null,this.currentPluginName="",this.currentInfo=null,E(this,bn,{copy:T(this,If,hC).bind(this),cut:T(this,Df,fC).bind(this),keydown:T(this,Pf,pC).bind(this),mousedown:T(this,Rf,uC).bind(this)}),this.__selectionSelected=!1,this.__prevent=!1}_init(){o(this,zo).applyToRoots(e=>{const t=h.utils.createElement("DIV",{class:"se-drag-handle",draggable:"true"},o(this,zo).icons.selection);e.get("wrapper").appendChild(t),o(this,Ot).addEvent(t,"mouseenter",T(this,Lf,rC).bind(this)),o(this,Ot).addEvent(t,"mouseleave",T(this,Af,lC).bind(this)),o(this,Ot).addEvent(t,"dragstart",T(this,$f,aC).bind(this)),o(this,Ot).addEvent(t,"dragend",T(this,Of,cC).bind(this)),o(this,Ot).addEvent(t,"click",T(this,Vf,dC).bind(this))})}insert(e,{skipCharCount:t=!1,skipHistory:i=!1,scrollTo:n=!0,insertBehavior:r}={}){var m;if(o(this,Jt).get("isReadOnly")||!t&&!o(this,re).char.check(e))return null;r===void 0&&(r=o(this,Cn).get("componentInsertBehavior"));const a=o(this,re).html.remove(),c=this.isInline(e);o(this,re).selection.getRangeAndAddLine(o(this,re).selection.getRange(),a.container);const d=o(this,re).selection.getNode();let u=null,f=o(this,re).format.getLine(d,null);try{if(h.check.isListCell(f))o(this,re).html.insertNode(e,{afterNode:c?null:h.check.isZeroWidth(d)?(d||a.container||{}).nextSibling:null,skipCharCount:!0}),!c&&!e.nextSibling&&e.parentNode.appendChild(h.utils.createElement("BR"));else{if(!c&&o(this,re).selection.getRange().collapsed&&(((m=a.container)==null?void 0:m.nodeType)===3||h.check.isBreak(a.container))){const g=h.query.getParentElement(a.container,o(this,re).format.isBlock.bind(o(this,re).format));u=o(this,re).nodeTransform.split(a.container,a.offset,g?h.query.getNodeDepth(g)+1:0),u&&(f=u.previousSibling)}o(this,re).html.insertNode(e,{afterNode:c||o(this,re).format.isBlock(f)?null:f,skipCharCount:!0}),!c&&f&&h.check.isZeroWidth(f)&&h.utils.removeItem(f)}if(c){const g=h.utils.createTextNode(Ie.zeroWidthSpace);e.parentNode.insertBefore(g,e.nextSibling)}}catch(g){console.error("Component insert error:",g)}i||o(this,re).history.push(!1),o(this,Jt).has("documentType_use_header")&&o(this,Jt).get("documentType").reHeader();const p=u||e;return n&&o(this,re).selection.scrollTo(p,{behavior:"auto"}),r!==null&&this.applyInsertBehavior(e,u,r),p}applyInsertBehavior(e,t,i){const n=this.get(e);if(this.isInline(e)){const r=o(this,re).selection.getNearRange(e);r?o(this,re).selection.setRange(r.container,r.offset,r.container,r.offset):this.select(n.target,n.pluginName);return}switch(i){case"auto":{T(this,nu,ag).call(this,e)||this.select(n.target,n.pluginName);break}case"select":{o(this,re).selection.setRange(e,0,e,0),n?this.select(n.target,n.pluginName):t&&(t=h.query.getEdgeChildNodes(t,null).sc||t,o(this,re).selection.setRange(t,0,t,0));break}case"line":{if(!T(this,nu,ag).call(this,e)){const r=o(this,re).format.addLine(e,null);r&&o(this,re).selection.setRange(r,0,r,0)}break}}}get(e){if(!e)return null;let t,i="",n={},r=!1,a=null;if(this.is(e)){if(h.check.isComponentContainer(e)&&!h.utils.hasClass(e,"se-inline-component")&&(e=e.firstElementChild||e),/^FIGURE$/i.test(e.nodeName)&&(e=e.firstElementChild),!e)return null;const u=o(this,re).pluginManager.findComponentInfo(e);if(!u)return null;t=u.target,i=u.pluginName,n=u.options,a=u.launcher}if(!t&&e.nodeName){T(this,Nf,oC).call(this,e)&&(r=!0);const u=o(this,re).pluginManager.findComponentInfo(e);if(!u)return null;t=u.target,i=u.pluginName,n=u.options,a=u.launcher}if(!t)return null;const c=KL.GetContainer(t),d=c.container||c.cover||t;return this.info={target:c.target,pluginName:i,options:n,container:d,cover:c.cover,inlineCover:c.inlineCover,caption:c.caption,isFile:r,launcher:a,isInputType:h.utils.hasClass(d,"se-input-component")}}select(e,t,{isInput:i=!1}={}){const n=this.get(e);if(!n||h.check.isUneditable(h.query.getParentElement(e,this.is.bind(this)))||h.check.isUneditable(e))return!1;const r=n.launcher||o(this,re).plugins[t];if(!r)return;const a=we.get("__overInfo")!==$r;if(!i&&a){if(o(this,ft).get("_mousedown"))return;o(this,ft).set("_preventBlur",!0),this.__selectionSelected=!0,this.isInline(n.container)&&o(this,re).selection.setRange(n.container,0,n.container,0),o(this,re).focusManager.blur(),Ar.setTimeout(()=>{this.__selectionSelected=!1})}this.isSelected=!0,this.__prevent=!0;let c;typeof r.componentSelect=="function"&&(c=r.componentSelect(e));const d=h.utils.hasClass(n.target,"se-component-line-break");(d||!c&&!h.utils.hasClass(n.container,"se-inline-component"))&&this._setComponentLineBreaker(n.container||n.cover||e),this.currentTarget=e,this.currentPlugin=r,this.currentPluginName=t,this.currentInfo=n,we.set("__dragInst",this);const u=we.get("__overInfo");if(Ar.setTimeout(()=>{we.set("__overInfo",u===$r?void 0:!1),u!==$r&&T(this,Mf,iC).call(this),n.isFile||T(this,Bf,nC).call(this),h.utils.addClass(n.container,"se-component-selected")},0),a&&!o(this,ft).get("hasFocus")&&!o(this,ft).get("_preventFocus")&&(o(this,Bi)._eventOrchestrator.__postFocusEvent(o(this,Jt),null),o(this,ft).set("_preventFocus",!0)),!d&&u!==$r){if(!this.isInline(n.container))return;const f=n.container;let p=null;(!f.previousSibling||h.check.isBreak(f.previousSibling))&&(p=h.utils.createTextNode(Ie.zeroWidthSpace),f.parentNode.insertBefore(p,f)),(!f.nextSibling||h.check.isBreak(f.nextSibling))&&(p=h.utils.createTextNode(Ie.zeroWidthSpace),f.parentNode.insertBefore(p,f.nextSibling)),o(this,ft).set("controlActive",!0)}else if(d||!h.utils.hasClass(n.container,"se-input-component")){const f=o(this,Jt).get("wrapper").querySelector(".se-drag-handle");h.utils.addClass(f,"se-drag-handle-full"),o(this,re).ui._visibleControllers(!1,!1);const p=n.caption?n.target:n.cover||n.container||n.target,m=p.offsetWidth,g=p.offsetHeight,{top:y,left:v}=o(this,re).offset.getLocal(p);f.style.opacity="0",f.style.width=m+"px",f.style.height=g+"px",f.style.top=y+"px",f.style.left=v+"px",we.set("__dragHandler",f),we.set("__dragContainer",n.container),we.set("__dragCover",n.cover),f.style.display="block"}}deselect(){Ar.setTimeout(()=>{o(this,ft).set("controlActive",!1)},0),this.__deselect(),o(this,re).ui.setControllerOnDisabledButtons(!1),o(this,ft).get("_preventFocus")&&!o(this,ft).get("hasFocus")&&!this.__prevent&&(o(this,Bi)._eventOrchestrator.__postBlurEvent(o(this,Jt),null),o(this,ft).set("_preventFocus",!1))}is(e){return e?!!(/^FIGURE$/i.test(e.nodeName)||h.check.isComponentContainer(e)||o(this,re).pluginManager.findComponentInfo(e)):!1}isInline(e){return e?(/^FIGURE$/i.test(e.nodeName)&&(e=e.parentElement),!!(h.utils.hasClass(e,"se-inline-component")||o(this,re).pluginManager.findComponentInfo(e)&&(h.utils.hasClass(e,"se-inline-component")||h.utils.hasClass(e.parentElement,"se-inline-component")))):!1}isBasic(e){return this.is(e)&&!this.isInline(e)}async copy(e){const t=h.utils.clone(e,!0);cg(t),await o(this,re).html.copy(t)!==!1&&h.utils.flashClass(e,"se-copy")}hoverSelect(e){const t=h.query.getParentElement(e,h.check.isFigure);let i=this.get(e);i||t?(i||(i=this.get(t)),i&&!h.utils.hasClass(i.container,"se-component-selected")&&(o(this,re).ui.offCurrentController(),we.set("__overInfo",$r),this.select(i.target,i.pluginName))):we.get("__overInfo")!==null&&!h.utils.hasClass(e,"se-drag-handle")&&(this.__deselect(),we.set("__overInfo",null))}__deselect(){var e,t;if(o(this,ft).set("_preventBlur",!1),we.set("__overInfo",null),this.__removeDragEvent(),this.currentInfo){const i=this.currentInfo.container,n=this.currentInfo.cover;Ar.setTimeout(()=>{cg(i),h.utils.removeClass(n,"se-figure-over-selected")},0)}o(this,Jt).get("lineBreaker_t")&&(o(this,Jt).get("lineBreaker_t").style.display=o(this,Jt).get("lineBreaker_b").style.display="none"),this.currentPlugin&&((t=(e=this.currentPlugin).componentDeselect)==null||t.call(e,this.currentTarget)),this.isSelected=!1,this.currentPlugin=null,this.currentTarget=null,this.currentPluginName="",this.currentInfo=null,this.__removeGlobalEvent(),o(this,re).ui._offControllers()}_setComponentLineBreaker(e){var B,N,O,A;const t=we.get("__overInfo")===$r;o(this,Bi)._eventOrchestrator._lineBreakComp=null;const i=this.get(e);if(!i)return;const n=o(this,Jt),r=i.container,a=h.utils.hasClass(r,"se-flex-component"),c=n.get("lineBreaker_t"),d=n.get("lineBreaker_b"),u=c.style,f=d.style,p=r.offsetWidth<e.offsetWidth?r:e,m=o(this,re).ui.getVisibleFigure()||p,g=h.check.isListCell(r.parentNode);let y,v;const C=o(this,Cn).get("_rtl"),w=C?["right","left"]:["left","right"],{top:k,left:_,right:M,scrollX:S,scrollY:x}=o(this,re).offset.getLocal(p),L=C?M:_;if(g?!h.check.isBreak(r.previousElementSibling)&&!((N=(B=r.previousSibling)==null?void 0:B.textContent)!=null&&N.trim())||this.is(r.previousElementSibling):!o(this,re).format.isLine(r.previousElementSibling)){const V=Ar.getComputedStyle(c),R=Q.get(V.height,1),$=Q.get(V.width,1);o(this,Bi)._eventOrchestrator._lineBreakComp=r,y=k,v=m.offsetWidth/2/2,u.top=y-R/2+"px",u[w[0]]=(a?L-$/2:L+v)+"px",u[w[1]]="",c.setAttribute("data-offset",x+","+S),t?h.utils.removeClass(c,"se-on-selected"):h.utils.addClass(c,"se-on-selected"),u.display="block",u.visibility=""}else u.display="none";if(g?!h.check.isBreak(r.nextElementSibling)&&!((A=(O=r.nextSibling)==null?void 0:O.textContent)!=null&&A.trim())||this.is(r.nextElementSibling):!o(this,re).format.isLine(r.nextElementSibling)){const V=Ar.getComputedStyle(d),R=Q.get(V.height,1),$=Q.get(V.width,1);y||(o(this,Bi)._eventOrchestrator._lineBreakComp=r,y=k,v=m.offsetWidth/2/2),f.top=y+m.offsetHeight-R/2+"px",f[w[0]]=L+m.offsetWidth-(a?0:v)-(a?$/2:$)+"px",f[w[1]]="",d.setAttribute("data-offset",x+","+w[0]+","+S),t?h.utils.removeClass(d,"se-on-selected"):h.utils.addClass(d,"se-on-selected"),f.display="block",f.visibility=""}else f.display="none"}__removeGlobalEvent(){T(this,iu,lg).call(this),o(this,Hl)&&E(this,Hl,o(this,Ot).removeGlobalEvent(o(this,Hl))),o(this,Fl)&&E(this,Fl,o(this,Ot).removeGlobalEvent(o(this,Fl))),o(this,Wl)&&E(this,Wl,o(this,Ot).removeGlobalEvent(o(this,Wl)))}__removeDragEvent(){o(this,su).querySelector(".se-drag-cursor").style.left="-10000px",we.get("__dragHandler")&&(we.get("__dragHandler").style.display="none"),h.utils.removeClass([we.get("__dragHandler"),we.get("__dragContainer")],"se-dragging"),h.utils.removeClass([we.get("__dragCover"),we.get("__dragContainer")],"se-drag-over"),we.set("__figureInst",null),we.set("__dragInst",null),we.set("__dragHandler",null),we.set("__dragContainer",null),we.set("__dragCover",null),we.set("__dragMove",null),we.set("__overInfo",null)}_destroy(){this.__removeGlobalEvent(),this.__removeDragEvent()}}Bi=new WeakMap,re=new WeakMap,ft=new WeakMap,zo=new WeakMap,su=new WeakMap,Cn=new WeakMap,Jt=new WeakMap,Ot=new WeakMap,bn=new WeakMap,Hl=new WeakMap,Fl=new WeakMap,Wl=new WeakMap,zl=new WeakMap,Mf=new WeakSet,iC=function(){this.__removeGlobalEvent(),E(this,Hl,o(this,Ot).addGlobalEvent("copy",o(this,bn).copy)),E(this,Fl,o(this,Ot).addGlobalEvent("cut",o(this,bn).cut)),E(this,Wl,o(this,Ot).addGlobalEvent("keydown",o(this,bn).keydown))},Bf=new WeakSet,nC=function(){T(this,iu,lg).call(this),E(this,zl,o(this,Ot).addGlobalEvent(XL?"click":"mousedown",o(this,bn).mousedown,!0))},iu=new WeakSet,lg=function(){o(this,zl)&&E(this,zl,o(this,Ot).removeGlobalEvent(o(this,zl)))},nu=new WeakSet,ag=function(e){const t=e.nextElementSibling;if(t){if(o(this,re).format.isLine(t))return o(this,re).selection.setRange(t,0,t,0),!0}else{const i=o(this,re).format.addLine(e,null);return i&&o(this,re).selection.setRange(i,0,i,0),!0}return!1},Nf=new WeakSet,oC=function(e){var i;const t=e.nodeName.toLowerCase();return o(this,re).pluginManager.fileInfo.regExp.test(t)&&(!o(this,re).pluginManager.fileInfo.tagAttrs[t]||((i=o(this,re).pluginManager.fileInfo.tagAttrs[t])==null?void 0:i.every(n=>e.hasAttribute(n))))},Lf=new WeakSet,rC=function(){o(this,ft).set("_preventBlur",!0),o(this,re).ui._visibleControllers(!1,h.utils.hasClass(we.get("__dragHandler"),"se-drag-handle-full")),h.utils.addClass(we.get("__dragCover")||we.get("__dragContainer"),"se-drag-over")},Af=new WeakSet,lC=function(){o(this,ft).set("_preventBlur",!1),h.utils.hasClass(we.get("__dragHandler"),"se-drag-handle-full")||o(this,re).ui._visibleControllers(!0,!0),h.utils.removeClass([we.get("__dragCover"),we.get("__dragContainer")],"se-drag-over")},$f=new WeakSet,aC=function(e){const t=we.get("__dragCover")||we.get("__dragContainer");if(!t){e.preventDefault();return}o(this,ft).set("_preventBlur",!1),h.utils.addClass(we.get("__dragHandler"),"se-dragging"),h.utils.addClass(we.get("__dragContainer"),"se-dragging"),e.dataTransfer.setDragImage(t,o(this,Cn).get("_rtl")?t.offsetWidth:-5,-5)},Of=new WeakSet,cC=function(){o(this,ft).set("_preventBlur",!1),h.utils.removeClass([we.get("__dragHandler"),we.get("__dragContainer")],"se-dragging"),this.__removeDragEvent()},Vf=new WeakSet,dC=function(e){const t=h.query.getEventTarget(e);if(!h.utils.hasClass(t,"se-drag-handle-full"))return;const i=we.get("__dragInst");i&&(this.__removeDragEvent(),this.select(i.currentTarget,i.currentPluginName))},Rf=new WeakSet,uC=function(e){var i;const t=h.query.getEventTarget(e);(i=this.currentTarget)!=null&&i.contains(t)||h.query.getParentElement(t,".se-controller")||h.utils.hasClass(t,"se-drag-handle")||this.currentPluginName===o(this,re).ui.currentControllerName&&o(this,re).ui.opendControllers.some(({form:n})=>n.contains(t))||this.deselect()},If=new WeakSet,hC=function(e){var r;const t=h.query.getEventTarget(e);if(h.check.isInputElement(t)&&h.query.getParentElement(t,".se-modal"))return;const i=this.info;if(!i)return;const n=i.container.cloneNode(!0);(typeof((r=o(this,re).plugins[i.pluginName])==null?void 0:r.componentCopy)!="function"||o(this,re).plugins[i.pluginName].componentCopy({event:e,cloneContainer:n,info:i})===!1)&&sv(e,n,e.clipboardData),h.utils.flashClass(i.container,"se-copy")},Df=new WeakSet,fC=function(e){const t=this.info;if(!t)return;const i=t.container.cloneNode(!0);h.utils.removeClass(i,"se-component-selected"),sv(e,i,e.clipboardData),this.deselect(),h.utils.removeItem(t.container)},Pf=new WeakSet,pC=async function(e){var n;if(o(this,re).ui.selectMenuOn)return;const t=e.code;if(xe.isCtrl(e)){if(t!=="ControlRight"&&t!=="ControlLeft"){const r=o(this,re).shortcuts.keyMap.get(t+(e.shiftKey?"1000":""));/^(redo|undo)$/.test(r==null?void 0:r.command)&&(e.preventDefault(),e.stopPropagation(),o(this,re).commandDispatcher.run(r.command,r.type,r.button))}return}if(xe.isRemoveKey(t)&&(e.preventDefault(),e.stopPropagation(),typeof((n=this.currentPlugin)==null?void 0:n.componentDestroy)=="function"&&(!this.info.isInputType||!o(this,ft).get("hasFocus")))){const r=this.info.container.previousSibling;if(await this.currentPlugin.componentDestroy(this.currentTarget),this.deselect(),r){const a=r.nodeType===3?r.textContent.length:1;o(this,re).selection.setRange(r,a,r,a)}else o(this,re).focusManager.focus();return}if(xe.isEnter(t)){e.preventDefault();const r=this.currentInfo||this.get(this.currentTarget),a=r.container||r.target,c=a.previousElementSibling||a.nextElementSibling;let d=null;h.check.isListCell(a.parentNode)?d=h.utils.createElement("BR"):d=h.utils.createElement(o(this,re).format.isLine(c)?c.nodeName:o(this,Cn).get("defaultLine"),null,"<br>");const u=this.currentPluginName;this.deselect(),a.parentNode.insertBefore(d,a),this.select(r.target,u)===!1&&o(this,re).focusManager.blur(),o(this,re).history.push(!1);return}if(ev.lastIndex=0,ev.test(t)){const{container:r}=this.get(this.currentTarget),a=this.isInline(r||this.currentTarget);let c=null,d=1;if(a)switch(t){case"ArrowLeft":c=r.previousSibling,d=(c==null?void 0:c.nodeType)===3?c.textContent.length:1;break;case"ArrowRight":c=r.nextSibling,d=0;break;case"ArrowUp":{const f=o(this,re).format.getLine(r,null);c=f==null?void 0:f.previousElementSibling,d=0;break}case"ArrowDown":{const f=o(this,re).format.getLine(r,null);c=f==null?void 0:f.nextElementSibling;break}}else tv.lastIndex=0,tv.test(t)?c=r.previousElementSibling:(c=r.nextElementSibling,d=0);if(!c)return;this.deselect();const u=this.get(c);if(u!=null&&u.container)e.stopPropagation(),e.preventDefault(),this.select(u.target,u.pluginName);else try{o(this,ft).set("_preventBlur",!0),e.stopPropagation(),e.preventDefault(),o(this,re).selection.setRange(c,d,c,d)}finally{o(this,ft).set("_preventBlur",!1)}return}if(xe.isEsc(t)){this.deselect();return}};function sv(s,e,t){s.preventDefault(),s.stopPropagation(),cg(e),t.setData("text/html",e.outerHTML)}function cg(s){h.utils.removeClass(s,"se-component-selected"),h.utils.removeClass(s.querySelectorAll(".se-figure-selected"),"se-figure-selected"),h.utils.removeClass(s.querySelectorAll(".se-selected-table-cell"),"se-selected-table-cell"),h.utils.removeClass(s.querySelector(".se-selected-cell-focus"),"se-selected-cell-focus")}const JL=QL;var ou,Js,Pt,ru,jo,jl,Ul,ql,Zl,Zt,Uo,Gl,wn;class eA{constructor(e,t){b(this,ou,void 0);b(this,Js,void 0);b(this,Pt,void 0);b(this,ru,void 0);b(this,jo,void 0);b(this,jl,void 0);b(this,Ul,void 0);b(this,ql,[]);b(this,Zl,[]);b(this,Zt,{tags:null,regExp:null,pluginRegExp:null,pluginMap:null});b(this,Uo,[]);b(this,Gl,new Map);b(this,wn,new Map([["onMouseMove",[]],["onMouseLeave",[]],["onMouseDown",[]],["onMouseUp",[]],["onScroll",[]],["onClick",[]],["onBeforeInput",[]],["onInput",[]],["onKeyDown",[]],["onKeyUp",[]],["onFocus",[]],["onBlur",[]],["onPaste",[]],["onFilePasteAndDrop",[]]]));E(this,ou,e),E(this,Js,e.$),E(this,Pt,t.plugins||{}),E(this,ru,o(this,Js).contextProvider),E(this,jo,o(this,Js).options),E(this,jl,t.pluginCallButtons),E(this,Ul,t.pluginCallButtons_sub)}get plugins(){return o(this,Pt)}get fileInfo(){return o(this,Zt)}findComponentInfo(e){for(const t of o(this,Uo)){const i=t(e);if(i)return i}return null}applyRetainFormat(e){let t;(t=o(this,jo).get("__pluginRetainFilter"))&&o(this,Gl).forEach((i,n)=>{const r=e.querySelectorAll(n);for(let a=0,c=r.length;a<c;a++)(t===!0||t[i.key]!==!1)&&i.method(r[a])})}emitEvent(e,t){const i=o(this,wn).get(e);for(let n=0,r;n<i.length;n++)if(r=i[n](t),typeof r=="boolean")return r}async emitEventAsync(e,t){const i=o(this,wn).get(e);for(let n=0,r;n<i.length;n++)if(r=await i[n](t),typeof r=="boolean")return r}checkFileInfo(e){for(let t=0,i=o(this,ql).length;t<i;t++)o(this,ql)[t](e)}resetFileInfo(){for(let e=0,t=o(this,Zl).length;e<t;e++)o(this,Zl)[e]()}register(e,t,i){let n=o(this,Pt)[e];if(n)typeof o(this,Pt)[e]=="function"&&(n=o(this,Pt)[e]=new(o(this,Pt))[e](o(this,ou),i||{}));else throw Error(`[SUNEDITOR.registerPlugin.fail] The called plugin does not exist or is in an invalid format. (pluginName: "${e}")`);if(t){const{icons:r,lang:a}=o(this,ru);for(let c=0,d=t.length;c<d;c++)H3(t[c],n,r,a);!o(this,Js).commandDispatcher.activeCommands.includes(e)&&typeof o(this,Pt)[e].active=="function"&&o(this,Js).commandDispatcher.activeCommands.push(e)}}init(e){var r;o(this,Zt).tags=[],o(this,Zt).pluginMap={},o(this,Zt).tagAttrs={};const t=o(this,Pt),i=[];let n;for(const a in t){if(this.register(a,o(this,jl)[a],e[a]),this.register(a,o(this,Ul)[a],e[a]),n=o(this,Pt)[a],typeof n.__fileManagement=="object"){const d=n.__fileManagement;if(o(this,ql).push(d._checkInfo.bind(d)),o(this,Zl).push(d._resetInfo.bind(d)),Array.isArray(d.tagNames)){const u=d.tagNames;o(this,Zt).tags=o(this,Zt).tags.concat(u),i.push(a);for(let f=0,p=u.length,m;f<p;f++)m=u[f].toLowerCase(),o(this,Zt).pluginMap[m]=a,d.tagAttrs&&(o(this,Zt).tagAttrs[m]=d.tagAttrs)}}typeof n.constructor.component=="function"&&o(this,Uo).push((function(d,u){var f;return!u||!(u=(f=d.component)==null?void 0:f.call(d,u))?null:{target:u,pluginName:d.key,options:d.options}}).bind(null,n.constructor));const c=n.constructor.options||{};if(o(this,wn).forEach((d,u)=>{if(typeof n[u]=="function"){const f=n[u].bind(n);f.index=c[`eventIndex_${u}`]||c.eventIndex||0,d.push(f)}}),n.retainFormat){const d=n.retainFormat();o(this,Gl).set(d.query,{key:n.constructor.key,method:d.method})}}for(const a of o(this,wn).values())a.sort((c,d)=>c.index-d.index);(o(this,jo).get("buttons").has("pageBreak")||(r=o(this,jo).get("buttons_sub"))!=null&&r.has("pageBreak"))&&o(this,Uo).push((function(a,c,d){return!d||!h.utils.hasClass(d,"se-page-break")?null:{target:d,launcher:{componentDestroy:f=>{const p=f.previousElementSibling||f.nextElementSibling;h.utils.removeItem(f),a.focusEdge(p),c.push(!1)}}}}).bind(null,o(this,Js).focusManager,o(this,Js).history)),o(this,Zt).regExp=new RegExp(`^(${o(this,Zt).tags.join("|")||"\\^"})$`,"i"),o(this,Zt).pluginRegExp=new RegExp(`^(${i.length===0?"\\^":i.join("|")})$`,"i"),E(this,jl,null),E(this,Ul,null)}get(e){return o(this,Pt)[e]}_destroy(){var e,t,i;for(const n in o(this,Pt)){const r=o(this,Pt)[n];(e=r._destroy)==null||e.call(r),r.editor=null}E(this,Pt,null),E(this,Zt,null),E(this,Uo,null),(t=o(this,wn))==null||t.clear(),(i=o(this,Gl))==null||i.clear()}}ou=new WeakMap,Js=new WeakMap,Pt=new WeakMap,ru=new WeakMap,jo=new WeakMap,jl=new WeakMap,Ul=new WeakMap,ql=new WeakMap,Zl=new WeakMap,Zt=new WeakMap,Uo=new WeakMap,Gl=new WeakMap,wn=new WeakMap;const tA=eA;var lu,Et,qo,au,ei,Yl;class sA{constructor(e){b(this,lu,void 0);b(this,Et,void 0);b(this,qo,void 0);b(this,au,void 0);b(this,ei,void 0);b(this,Yl,void 0);E(this,lu,e),E(this,Et,e.$),E(this,qo,e.store),E(this,au,o(this,Et).options),E(this,ei,o(this,Et).frameContext),E(this,Yl,o(this,Et).frameOptions)}focus(e){if(e&&o(this,Et).facade.changeFrameContext(e),o(this,ei).get("wysiwygFrame").style.display!=="none"){if(o(this,qo).set("_preventBlur",!1),o(this,Yl).get("iframe")||!o(this,ei).get("wysiwyg").contains(o(this,Et).selection.getNode()))this.nativeFocus();else try{const t=o(this,Et).selection.getRange();if(t.startContainer===t.endContainer&&h.check.isWysiwygFrame(t.startContainer)){const i=t.commonAncestorContainer.children[t.startOffset];if(!o(this,Et).format.isLine(i)&&!o(this,Et).component.is(i)){const n=h.utils.createElement("BR"),r=h.utils.createElement(o(this,au).get("defaultLine"),null,n);o(this,ei).get("wysiwyg").insertBefore(r,i),o(this,Et).selection.setRange(n,0,n,0);return}}o(this,Et).selection.setRange(t.startContainer,t.startOffset,t.endContainer,t.endOffset)}catch(t){console.warn("[SUNEDITOR.focus.warn] ",t),this.nativeFocus()}o(this,qo).mode.isBalloon&&o(this,lu)._eventOrchestrator._toggleToolbarBalloon()}}focusEdge(e){o(this,qo).set("_preventBlur",!1),e||(e=o(this,ei).get("wysiwyg").lastElementChild);const t=o(this,Et).component.get(e);t?o(this,Et).component.select(t.target,t.pluginName):e?(e.nodeType!==3&&(e=h.query.getEdgeChild(e,function(i){return i.childNodes.length===0||i.nodeType===3},!0)),e?o(this,Et).selection.setRange(e,e.textContent.length,e,e.textContent.length):this.nativeFocus()):this.focus()}nativeFocus(){o(this,Et).selection.__focus(),o(this,Et).selection.init()}blur(){o(this,Yl).get("iframe")?o(this,ei).get("wysiwygFrame").blur():o(this,ei).get("wysiwyg").blur()}}lu=new WeakMap,Et=new WeakMap,qo=new WeakMap,au=new WeakMap,ei=new WeakMap,Yl=new WeakMap;const iA=/^H[1-6]$/,dg=/^(UL|OL)$/,a1=/^LI$/,iv=/^(THEAD|TBODY|TR|TD|TH)$/;function nA(s){const e=s.nodeName;return e==="P"||e==="DIV"?"p":iA.test(e)?"heading":e==="LI"?"list-item":dg.test(e)?"list":e==="BLOCKQUOTE"?"blockquote":e==="PRE"?"pre":e==="FIGURE"?"figure":e==="TABLE"?"table":"p"}function l0(s){let e=s;for(;e&&!jn(e);){if(e.nodeName==="TABLE")return e;e=e.parentNode}return null}function nv(s){let e=s;for(;e&&!jn(e);){if(e.nodeType===1&&C3(e))return!0;e=e.parentNode}return!1}function oA(s,e){let t=0,i=null,n=s.parentNode;for(;n&&!jn(n);)n.nodeType===1&&(e.isBlock(n)||e.isLine(n))&&(i||(i=n),t++),n=n.parentNode;return{depth:t,parent:i}}function rA(s){const e=s.previousElementSibling,t=s.nextElementSibling;return{prev:e,next:t}}function lA(s,e){const t=s.children;let i=null,n=1/0;for(let r=0;r<t.length;r++){const a=t[r];if(!a1.test(a.nodeName))continue;const c=a.getBoundingClientRect();if(e>=c.top&&e<=c.bottom)return Gg(a,e)||a;const d=Math.min(Math.abs(e-c.top),Math.abs(e-c.bottom));d<n&&(n=d,i=a)}return i}function Gg(s,e){const t=s.querySelector(":scope > ul, :scope > ol");if(!t)return null;const i=t.getBoundingClientRect();if(e<i.top)return null;const n=t.children;let r=null,a=1/0;for(let c=0;c<n.length;c++){const d=n[c];if(!a1.test(d.nodeName))continue;const u=d.getBoundingClientRect();if(e>=u.top&&e<=u.bottom)return Gg(d,e)||d;const f=Math.min(Math.abs(e-u.top),Math.abs(e-u.bottom));f<a&&(a=f,r=d)}return r}function aA(s,e,t,i){if(!s||!t||s.nodeType===3&&(s=s.parentNode,!s)||jn(s)||nv(s))return null;let n=null;if(iv.test(s.nodeName))n=l0(s);else if(dg.test(s.nodeName))n=s;else if(a1.test(s.nodeName))n=s;else if(g3(s.parentNode))n=l0(s);else{const u=e.getLine(s,null);if(u&&(n=u),!n){const f=e.getBlock(s,null);f&&(iv.test(f.nodeName)?n=l0(f):n=f)}}if(!n){let u=s;for(;u&&!jn(u);){if(u.nodeType===1&&u.parentNode&&jn(u.parentNode)){n=u;break}u=u.parentNode}}if(!n||nv(n))return null;if(i!==void 0){if(dg.test(n.nodeName)){const u=lA(n,i);u&&(n=u)}else if(a1.test(n.nodeName)){const u=Gg(n,i);u&&(n=u)}}const{depth:r,parent:a}=oA(n,e),c=rA(n),d=nA(n);return{element:n,type:d,depth:r,parent:a,siblings:c,rect:n.getBoundingClientRect()}}const{_w:Ut,_d:cA}=me;function dA(s,e){const t=(s||"").trim(),i=Q.get(t,-1);return i?/rem$/.test(t)?i*(Q.get(Ut.getComputedStyle(cA.documentElement).fontSize,-1)||16):/em$/.test(t)?i*(Q.get(e.fontSize,-1)||16):i:0}var Te,cs,He,Kl,at,Xl,pt,Ct,Ni,Zo,Ql,Li,ti,Ds,si,Ts,Go,Jl,ea,Hf,mC,Yo,pc,kn,Rr,cu,ug,Ff,gC,Ko,mc,du,hg,Xo,gc,Wf,vC,zf,yC,jf,CC,uu,fg,hu,pg,ta,Fh,Uf,bC,qf,wC,Zf,kC,Gf,_C,Yf,EC,Kf,TC,Xf,SC,Qf,xC,Jf,MC,ep,BC,tp,NC,sp,LC,ip,AC,np,$C,op,OC;class uA{constructor(e,t,i,n,r,a){b(this,Hf);b(this,Yo);b(this,kn);b(this,cu);b(this,Ff);b(this,Ko);b(this,du);b(this,Xo);b(this,Wf);b(this,zf);b(this,jf);b(this,uu);b(this,hu);b(this,ta);b(this,Uf);b(this,qf);b(this,Zf);b(this,Gf);b(this,Yf);b(this,Kf);b(this,Xf);b(this,Qf);b(this,Jf);b(this,ep);b(this,tp);b(this,sp);b(this,ip);b(this,np);b(this,op);b(this,Te,void 0);b(this,cs,void 0);b(this,He,void 0);b(this,Kl,void 0);b(this,at,void 0);b(this,Xl,void 0);b(this,pt,null);b(this,Ct,null);b(this,Ni,null);b(this,Zo,null);b(this,Ql,void 0);b(this,Li,null);b(this,ti,[]);b(this,Ds,!1);b(this,si,null);b(this,Ts,null);b(this,Go,null);b(this,Jl,null);b(this,ea,null);var u;E(this,Te,e),E(this,cs,t),E(this,He,i),E(this,Kl,n),E(this,at,r),E(this,Xl,a||null),o(this,Te).contextProvider.carrierWrapper.appendChild(o(this,He));const c=o(this,Te).eventManager;c.addEvent(o(this,He),"mousedown",T(this,Yf,EC).bind(this)),E(this,si,h.utils.createElement("DIV",{class:"se-block-drag-indicator"})),o(this,si).style.display="none",(u=o(this,cs).parentElement)==null||u.appendChild(o(this,si)),c.addEvent(o(this,Kl),"click",T(this,Gf,_C).bind(this)),o(this,at).draggable=!0,c.addEvent(o(this,at),"dragstart",T(this,Xf,SC).bind(this)),c.addEvent(o(this,at),"dragend",T(this,ep,BC).bind(this)),c.addEvent(o(this,at),"click",T(this,ip,AC).bind(this)),c.addEvent(o(this,cs),"mousemove",T(this,Wf,vC).bind(this)),c.addEvent(o(this,cs),"mouseleave",T(this,zf,yC).bind(this));const d=o(this,cs).parentElement;d&&(c.addEvent(d,"mouseleave",T(this,jf,CC).bind(this)),c.addEvent(d,"dragover",T(this,Qf,xC).bind(this)),c.addEvent(d,"drop",T(this,Jf,MC).bind(this))),c.addEvent(o(this,Te).frameContext.get("eventWysiwyg"),"keydown",T(this,Kf,TC).bind(this),!0)}positionForTarget(e,t){var i;T(this,Xo,gc).call(this),!((i=o(this,pt))!=null&&i.isOpen||o(this,Ds))&&(E(this,Zo,e),E(this,Ql,t),!o(this,Ni)&&E(this,Ni,Ut.requestAnimationFrame(()=>{E(this,Ni,null),o(this,Zo)&&T(this,hu,pg).call(this,o(this,Zo),o(this,Ql))})))}hide(e){var i,n;if((i=o(this,pt))!=null&&i.isOpen)return;const t=e==null?void 0:e.relatedTarget;t&&(o(this,cs).contains(t)||(n=o(this,He))!=null&&n.contains(t))||T(this,du,hg).call(this)}hideNow(){var e;T(this,Xo,gc).call(this),T(this,Yo,pc).call(this),(e=o(this,pt))==null||e.close(),T(this,kn,Rr).call(this,null)}syncScroll(){var e;o(this,Ct)&&(h.utils.addClass(o(this,He),"se-no-transition"),T(this,ta,Fh).call(this,o(this,Ct)),o(this,He).offsetHeight,h.utils.removeClass(o(this,He),"se-no-transition"),(e=o(this,pt))!=null&&e.isOpen&&o(this,pt).setHidden(o(this,He).style.display==="none"))}destroy(){var e,t,i;o(this,Ni)&&(Ut.cancelAnimationFrame(o(this,Ni)),E(this,Ni,null)),E(this,Ds,!1),T(this,Xo,gc).call(this),o(this,at)&&(o(this,at).draggable=!1),(e=o(this,si))==null||e.remove(),(t=o(this,He))==null||t.remove(),(i=o(this,pt))==null||i.close(),E(this,pt,null),T(this,kn,Rr).call(this,null),E(this,Zo,null),E(this,Ql,void 0),E(this,Te,null),E(this,cs,null),E(this,He,null),E(this,Kl,null),E(this,at,null)}}Te=new WeakMap,cs=new WeakMap,He=new WeakMap,Kl=new WeakMap,at=new WeakMap,Xl=new WeakMap,pt=new WeakMap,Ct=new WeakMap,Ni=new WeakMap,Zo=new WeakMap,Ql=new WeakMap,Li=new WeakMap,ti=new WeakMap,Ds=new WeakMap,si=new WeakMap,Ts=new WeakMap,Go=new WeakMap,Jl=new WeakMap,ea=new WeakMap,Hf=new WeakSet,mC=function(){var e,t;o(this,He).style.display="flex";try{(t=(e=o(this,He)).showPopover)==null||t.call(e)}catch{}},Yo=new WeakSet,pc=function(){var e,t;try{(t=(e=o(this,He)).hidePopover)==null||t.call(e)}catch{}o(this,He).style.display="none"},kn=new WeakSet,Rr=function(e){if(T(this,Ko,mc).call(this),E(this,Ct,e),!e)return;const t=T(this,cu,ug).call(this,e);if(t){E(this,ti,t);for(let i=0;i<t.length;i++)h.utils.addClass(t[i],"se-block-hover")}else h.utils.addClass(e,"se-block-hover")},cu=new WeakSet,ug=function(e){try{const t=o(this,Te).selection.getRange();if(!t||t.collapsed)return null;const i=o(this,Te).format.getLine(t.startContainer,null),n=o(this,Te).format.getLine(t.endContainer,null);if(!i||!n||i===n)return null;const r=h.query.getListChildren(t.commonAncestorContainer,u=>o(this,Te).format.isLine(u),null),a=r.indexOf(i),c=r.indexOf(n);if(a===-1||c===-1)return null;const d=r.slice(Math.min(a,c),Math.max(a,c)+1);return d.indexOf(e)===-1?null:d}catch{}return null},Ff=new WeakSet,gC=function(e){T(this,Ko,mc).call(this),E(this,ti,e||[]);for(let t=0;t<o(this,ti).length;t++)h.utils.addClass(o(this,ti)[t],"se-block-hover")},Ko=new WeakSet,mc=function(){o(this,Ct)&&h.utils.removeClass(o(this,Ct),"se-block-hover");for(let e=0;e<o(this,ti).length;e++)h.utils.removeClass(o(this,ti)[e],"se-block-hover");E(this,ti,[])},du=new WeakSet,hg=function(){o(this,Li)||E(this,Li,Ut.setTimeout(()=>{var e;E(this,Li,null),T(this,Yo,pc).call(this),(e=o(this,pt))==null||e.close(),T(this,kn,Rr).call(this,null)},200))},Xo=new WeakSet,gc=function(){o(this,Li)&&(Ut.clearTimeout(o(this,Li)),E(this,Li,null))},Wf=new WeakSet,vC=function(e){var a;if(!o(this,Te)||o(this,Ds)||(T(this,Xo,gc).call(this),(a=o(this,pt))!=null&&a.isOpen))return;const t=o(this,Te).frameContext.get("wysiwyg");if(!t)return;const i=o(this,Te).frameContext.get("wysiwygFrame"),n=i&&i.nodeName==="IFRAME";let r;if(n){const c=i.getBoundingClientRect(),d=i.contentDocument;d&&(r=d.elementFromPoint(c.width/2,e.clientY-c.top))}else{const c=t.getBoundingClientRect();r=document.elementFromPoint(c.left+c.width/2,e.clientY)}r&&t.contains(r)&&T(this,hu,pg).call(this,r,e.clientY)},zf=new WeakSet,yC=function(e){var t;(t=o(this,pt))!=null&&t.isOpen||T(this,uu,fg).call(this,e==null?void 0:e.relatedTarget)||this.hideNow()},jf=new WeakSet,CC=function(e){var t;(t=o(this,pt))!=null&&t.isOpen||T(this,uu,fg).call(this,e==null?void 0:e.relatedTarget)||this.hideNow()},uu=new WeakSet,fg=function(e){var i,n;if(!e)return!1;const t=(i=o(this,cs))==null?void 0:i.parentElement;return!!((n=o(this,He))!=null&&n.contains(e)||t!=null&&t.contains(e))},hu=new WeakSet,pg=function(e,t){var c;if(!o(this,Te))return;const i=o(this,Te).format,n=o(this,Te).frameContext.get("wysiwyg");if(!n)return;let r=e;if(r===n&&t!==void 0){const d=n.getBoundingClientRect(),u=document.elementFromPoint(d.left+d.width/2,t);u&&n.contains(u)&&u!==n&&(r=u)}const a=aA(r,{getLine:(d,u)=>i.getLine(d,u),getBlock:(d,u)=>i.getBlock(d,u),isLine:d=>i.isLine(d),isBlock:d=>i.isBlock(d)},n,t);if(!a){T(this,du,hg).call(this);return}if(!(a.element===o(this,Ct)&&o(this,He).style.display==="flex")){if((c=o(this,Ct))!=null&&c.isConnected&&o(this,He).style.display==="flex"&&t!==void 0&&!o(this,Ct).contains(a.element)){const d=o(this,Ct).getBoundingClientRect();if(t>=d.top&&t<=d.bottom)return}T(this,kn,Rr).call(this,a.element),T(this,ta,Fh).call(this,a.element)}},ta=new WeakSet,Fh=function(e){if(!e.isConnected){this.hideNow();return}const t=e.getBoundingClientRect(),i=o(this,cs).getBoundingClientRect(),n=o(this,Te).frameContext.get("wysiwygFrame"),r=/^iframe$/i.test(n.nodeName),a=r?n.getBoundingClientRect():null;if(r){const k=n.clientHeight||0;if(t.bottom<=0||t.top>=k){T(this,Yo,pc).call(this);return}}else{const k=n.getBoundingClientRect();if(t.bottom<=k.top||t.top>=k.bottom){T(this,Yo,pc).call(this);return}}const c=Ut.scrollX,d=Ut.scrollY,u=o(this,He).style.display!=="flex";u&&(h.utils.addClass(o(this,He),"se-no-transition"),o(this,He).style.display="flex");const f=o(this,He).offsetHeight||0,p=T(this,Uf,bC).call(this,e,t),g=(r?p+a.top:p)+d-f/2,y=!!o(this,Te).options.get("_rtl"),v=T(this,qf,wC).call(this,e,y);let C=0;if(o(this,Te).frameOptions.get("innerWidth")){const k=o(this,Te).frameContext.get("wysiwyg");if(k){const _=Ut.getComputedStyle(k),M=Q.get(y?_.paddingRight:_.paddingLeft,-1)||0,S=dA(_.getPropertyValue("--se-edit-inner-padding"),_);C=Math.max(0,M-S)}}const w=v+C;o(this,He).style.top=g+"px",y?(o(this,He).style.left="",o(this,He).style.right=Ut.innerWidth-i.right-c+w+"px"):(o(this,He).style.right="",o(this,He).style.left=i.left+c+w+"px"),T(this,Hf,mC).call(this),u&&(o(this,He).offsetHeight,h.utils.removeClass(o(this,He),"se-no-transition"))},Uf=new WeakSet,bC=function(e,t){var n;try{const r=e.ownerDocument,a=r.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);let c=null;for(;(c=a.nextNode())&&!((n=c.textContent)!=null&&n.trim()););if(c){const d=r.createRange();d.setStart(c,0),d.setEnd(c,Math.min(1,c.length));const u=d.getClientRects();if(u.length)return(u[0].top+u[0].bottom)/2}}catch{}const i=Q.get(Ut.getComputedStyle(e).lineHeight,-1)||t.height;return t.top+Math.min(i,t.height)/2},qf=new WeakSet,wC=function(e,t){const i=o(this,Te).frameContext.get("wysiwyg");if(!i)return 0;const n=o(this,Te).format,r=t?"marginRight":"marginLeft",a=t?"paddingRight":"paddingLeft";let c=0;c+=Q.get(Ut.getComputedStyle(e)[r],-1)||0;let d=e.parentElement;for(;d&&d!==i;){if(n.isBlock(d)){const u=Ut.getComputedStyle(d);c+=(Q.get(u[a],-1)||0)+(Q.get(u[r],-1)||0)}d=d.parentElement}return c},Zf=new WeakSet,kC=function(){if(!o(this,Ct))return;const e=o(this,Ct),t=T(this,cu,ug).call(this,e),i=t?t[0]:e,n=t?t[t.length-1]:e;o(this,Te).selection.setRange(i,0,n,n.childNodes.length)},Gf=new WeakSet,_C=function(e){if(e.preventDefault(),e.stopPropagation(),!o(this,Ct))return;const t=o(this,Te).format.addLineAfter(o(this,Ct));t&&(o(this,Te).selection.setRange(t,1,t,1),o(this,Te).history.push(!1))},Yf=new WeakSet,EC=function(e){const t=o(this,at)&&(e.target===o(this,at)||o(this,at).contains(e.target));if(me.isMobile){o(this,Te).store.set("_preventBlur",!0);return}t||e.preventDefault()},Kf=new WeakSet,TC=function(){T(this,Ko,mc).call(this)},Xf=new WeakSet,SC=function(e){var r;if(!o(this,Ct)){e.preventDefault();return}E(this,Ts,o(this,Ct)),E(this,Ds,!0),(r=o(this,pt))==null||r.close(),h.utils.addClass(o(this,Ts),"se-block-dragging");const t=o(this,Te).frameContext.get("wysiwyg");E(this,Jl,t||null),E(this,ea,t?Array.from(t.children):null);const i=!!o(this,Te).options.get("_rtl"),n=o(this,Ts);e.dataTransfer.setDragImage(n,i?n.offsetWidth:-5,-5),e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("application/x-suneditor-block-drag","1")},Qf=new WeakSet,xC=function(e){o(this,Ds)&&(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="move",T(this,tp,NC).call(this,e.clientY))},Jf=new WeakSet,MC=function(e){o(this,Ds)&&(e.preventDefault(),e.stopPropagation(),T(this,sp,LC).call(this))},ep=new WeakSet,BC=function(){var e;if(o(this,Ts)&&h.utils.removeClass(o(this,Ts),"se-block-dragging"),o(this,si).style.display="none",E(this,Ds,!1),E(this,Ts,null),E(this,Go,null),E(this,Jl,null),E(this,ea,null),(e=o(this,at))!=null&&e.parentNode){const t=o(this,at).parentNode,i=o(this,at).nextSibling;t.removeChild(o(this,at)),t.insertBefore(o(this,at),i)}},tp=new WeakSet,NC=function(e){if(!o(this,Te)||!o(this,Ts))return;const t=o(this,Jl),i=o(this,ea);if(!t||!i)return;const n=t.getBoundingClientRect(),r=o(this,cs).parentElement.getBoundingClientRect();let a=null,c="after",d=0,u=1/0;for(let f=0;f<i.length;f++){const p=i[f],m=p.getBoundingClientRect(),g=Math.abs(e-m.top);g<u&&(u=g,a=p,c="before",d=m.top);const y=Math.abs(e-m.bottom);y<u&&(u=y,a=p,c="after",d=m.bottom)}if(a&&a!==o(this,Ts)){E(this,Go,{element:a,position:c});const f=o(this,si);f.style.display="block",f.style.top=d-r.top+"px",f.style.left=n.left-r.left+"px",f.style.width=n.width+"px"}else E(this,Go,null),o(this,si).style.display="none"},sp=new WeakSet,LC=function(){const e=o(this,Ts),t=o(this,Go);!e||!t||t.element===e||!e.parentNode||(t.position==="before"?t.element.parentNode.insertBefore(e,t.element):t.element.parentNode.insertBefore(e,t.element.nextSibling),T(this,kn,Rr).call(this,e),T(this,ta,Fh).call(this,e),o(this,Te).history.push(!1))},ip=new WeakSet,AC=function(e){if(e.preventDefault(),e.stopPropagation(),!o(this,Ds)&&o(this,Xl))if(o(this,pt)||E(this,pt,T(this,np,$C).call(this)),o(this,pt).isOpen)o(this,pt).close();else{T(this,Zf,kC).call(this);const t=o(this,Te).format.getLines(null);t.length>0&&T(this,Ff,gC).call(this,t);const i=o(this,Te).offset.getGlobal(o(this,at)),n=h.utils.getClientSize().h-(i.top-Ut.scrollY+i.height),r=i.top-Ut.scrollY,c=`${o(this,Te).options.get("_rtl")?"left":"right"}-${n>=r?"bottom":"top"}`;o(this,pt).open(c)}},np=new WeakSet,$C=function(){const e=new zN(this,o(this,Te),{items:o(this,Xl),resolveButton:EN,selectMenuParams:{position:"right-top",dir:o(this,Te).options.get("_rtl")?"rtl":"ltr",minWidth:"200px",keydownTarget:Ut,closeMethod:()=>{h.utils.removeClass(o(this,at),"on"),T(this,Ko,mc).call(this)},openMethod:()=>{h.utils.addClass(o(this,at),"on")}}});return e.attach(o(this,at),T(this,op,OC).bind(this),{class:"se-block-action-menu"}),e.createRows(e.getItems()),e},op=new WeakSet,OC=function(e){var t,i;!o(this,Ct)||!o(this,Te)||!e||((t=o(this,pt))==null||t.dispatch(e,{block:o(this,Ct)}),e.kind!=="dropdownFree"&&((i=o(this,pt))==null||i.close()))};const hA=uA,{NO_EVENT:fA}=me,pA={bold:["font-weight"],underline:["text-decoration"],italic:["font-style"],strike:["text-decoration"]};var fu,ae,sa,Vt,Ht,_n,ia,na,En,Ss,rp,VC,lp,RC,ap,IC,cp,DC,dp,PC,up,HC,hp,FC;class mA{constructor(e){b(this,rp);b(this,lp);b(this,ap);b(this,cp);b(this,dp);b(this,up);b(this,hp);b(this,fu,void 0);b(this,ae,void 0);b(this,sa,void 0);b(this,Vt,void 0);b(this,Ht,void 0);b(this,_n,void 0);b(this,ia,null);b(this,na,null);b(this,En,null);b(this,Ss,null);E(this,fu,e),E(this,ae,e.$),E(this,sa,e.store),E(this,Vt,o(this,ae).frameContext),E(this,Ht,o(this,ae).options),E(this,_n,o(this,ae).eventManager)}async execute(e,t){if(!(o(this,Vt).get("isReadOnly")&&!/copy|cut|selectAll|selectAll_full|codeView|markdownView|fullScreen|print|preview|showBlocks|finder/.test(e)))switch(e){case"selectAll":T(this,rp,VC).call(this);break;case"selectAll_full":T(this,lp,RC).call(this);break;case"copy":{const i=o(this,ae).selection.getRange();if(i.collapsed)break;const n=h.utils.createElement("div",null,i.cloneContents());await o(this,ae).html.copy(n.innerHTML);break}case"newDocument":o(this,ae).html.set(`<${o(this,Ht).get("defaultLine")}><br></${o(this,Ht).get("defaultLine")}>`),o(this,ae).focusManager.focus(),o(this,ae).history.push(!1),o(this,Vt).has("documentType_use_header")&&o(this,Vt).get("documentType").reHeader();break;case"finder":o(this,ae).finder.isOpen?o(this,ae).finder.close():o(this,ae).finder.open(!0);break;case"codeView":o(this,ae).viewer.codeView(!o(this,Vt).get("isCodeView"));break;case"markdownView":o(this,ae).viewer.markdownView(!o(this,Vt).get("isMarkdownView"));break;case"fullScreen":o(this,ae).viewer.fullScreen(!o(this,Vt).get("isFullScreen"));break;case"indent":o(this,ae).format.indent();break;case"outdent":o(this,ae).format.outdent();break;case"undo":o(this,ae).history.undo();break;case"redo":o(this,ae).history.redo();break;case"removeFormat":o(this,ae).inline.remove(),o(this,ae).focusManager.focus();break;case"print":o(this,ae).viewer.print();break;case"preview":o(this,ae).viewer.preview();break;case"showBlocks":o(this,ae).viewer.showBlocks(!o(this,Vt).get("isShowBlocks"));break;case"dir":o(this,ae).ui.setDir(o(this,Ht).get("_rtl")?"ltr":"rtl");break;case"dir_ltr":o(this,ae).ui.setDir("ltr");break;case"dir_rtl":o(this,ae).ui.setDir("rtl");break;case"save":await T(this,ap,IC).call(this);break;case"copyFormat":T(this,cp,DC).call(this,t);break;case"pageBreak":T(this,hp,FC).call(this);break;case"pageUp":o(this,Vt).get("documentType").pageUp();break;case"pageDown":o(this,Vt).get("documentType").pageDown();break;default:T(this,up,HC).call(this,e)}}copyFormat(){var e,t;if((e=o(this,En))!=null&&e.length)try{const i=[...o(this,En)],n=i.pop();if(o(this,ae).inline.remove(),n){const r=o(this,ae).inline.apply(n,{stylesToModify:null,nodesToRemove:[n.nodeName],strictRemove:!1}),{parent:a,inner:c}=o(this,ae).nodeTransform.createNestedNode(i);r.parentNode.insertBefore(a,r),c.appendChild(r),o(this,ae).selection.setRange(r,h.check.isZeroWidth(r)?1:0,r,1)}if(o(this,Ht).get("copyFormatKeepOn"))return;o(this,Ss).call(this)}catch(i){console.warn("[SUNEDITOR.copyFormat.error] ",i),(t=o(this,Ss))!=null&&t.call(this)||(E(this,En,null),E(this,Ss,null))}}}fu=new WeakMap,ae=new WeakMap,sa=new WeakMap,Vt=new WeakMap,Ht=new WeakMap,_n=new WeakMap,ia=new WeakMap,na=new WeakMap,En=new WeakMap,Ss=new WeakMap,rp=new WeakSet,VC=function(){var g,y,v,C,w,k,_,M;o(this,ae).ui.offCurrentController(),o(this,ae).menu.containerOff();const e=o(this,Vt).get("wysiwyg");let t=null,i="";const n=o(this,Ht).get("scopeSelectionTags"),r=o(this,ae).selection.getRange();if(!r.collapsed){let S=t=r.commonAncestorContainer,x=i=(g=S.nodeName)==null?void 0:g.toLowerCase();if(r.startOffset===0&&r.endOffset===((y=r.endContainer.textContent)==null?void 0:y.length)){const L=S.parentElement;(h.check.isList(L)||h.check.isListCell(L))&&((C=(v=L.firstChild).contains)!=null&&C.call(v,r.startContainer))&&((w=L.lastChild)!=null&&w.contains(r.endContainer))&&(t=S=L.parentElement,i=(k=S.nodeName)==null?void 0:k.toLowerCase())}for(x=(_=S.nodeName)==null?void 0:_.toLowerCase();S&&(!S.nextSibling&&!S.previousSibling&&!n.includes(x)||h.check.isContentLess(x))&&S!==e;)S=S.parentElement,x=(M=S.nodeName)==null?void 0:M.toLowerCase();n.includes(x)&&(t=S,i=x)}const a=n.filter(S=>S!==i);let d=h.query.getParentElement(t||o(this,ae).selection.getNode(),S=>{var x;return a.includes((x=S.nodeName)==null?void 0:x.toLowerCase())})||e,{first:u,last:f}=a0(d);if(!u||!f)return;const p=h.check.isZeroWidth;for(;p(u)&&p(f)&&d!==e;)d=d.parentElement,{first:u,last:f}=a0(h.query.getParentElement(d,S=>{var x;return a.includes((x=S.nodeName)==null?void 0:x.toLowerCase())})||e);if(!u||!f)return;let m=null;if(h.check.isMedia(u)||(m=o(this,ae).component.get(u))||h.check.isTableElements(u)){m||(m=o(this,ae).component.get(u));const S=h.utils.createElement("BR"),x=h.utils.createElement(o(this,Ht).get("defaultLine"),null,S);u=m?m.container||m.cover:u,u.parentElement.insertBefore(x,u),u=S}if(h.check.isMedia(f)||(m=o(this,ae).component.get(f))||h.check.isTableElements(f)){m||(m=o(this,ae).component.get(f));const S=h.utils.createElement("BR"),x=h.utils.createElement(o(this,Ht).get("defaultLine"),null,S);f=m?m.container||m.cover:f,f.parentElement.appendChild(x),f=S}o(this,ae).toolbar._showBalloon(o(this,ae).selection.setRange(u,0,f,f.textContent.length))},lp=new WeakSet,RC=function(){o(this,ae).ui.offCurrentController(),o(this,ae).menu.containerOff();const e=o(this,Vt).get("wysiwyg");let{first:t,last:i}=a0(e);if(!t||!i)return;let n=null;if(h.check.isMedia(t)||(n=o(this,ae).component.get(t))||h.check.isTableElements(t)){n||(n=o(this,ae).component.get(t));const r=h.utils.createElement("BR"),a=h.utils.createElement(o(this,Ht).get("defaultLine"),null,r);t=n?n.container||n.cover:t,t.parentElement.insertBefore(a,t),t=r}if(h.check.isMedia(i)||(n=o(this,ae).component.get(i))||h.check.isTableElements(i)){n||(n=o(this,ae).component.get(i));const r=h.utils.createElement("BR"),a=h.utils.createElement(o(this,Ht).get("defaultLine"),null,r);i=n?n.container||n.cover:i,i.parentElement.appendChild(a),i=r}o(this,ae).toolbar._showBalloon(o(this,ae).selection.setRange(t,0,i,i.textContent.length))},ap=new WeakSet,IC=async function(){const e=o(this,Vt);if(!e.get("isChanged"))return;const t=o(this,ae).html.get(),i=await o(this,_n).triggerEvent("onSave",{frameContext:e,data:t});if(i===fA){const n=e.get("originElement");/^TEXTAREA$/i.test(n.nodeName)?n.value=t:n.innerHTML=t}else if(i===!1)return;e.set("isChanged",!1),e.set("savedIndex",o(this,ae).history.getRootStack()[o(this,sa).get("rootKey")].index),o(this,ae).commandDispatcher.applyTargets("save",n=>{n.disabled=!0})},cp=new WeakSet,DC=function(e){if(typeof o(this,Ss)=="function"){o(this,Ss).call(this);return}const t=o(this,Vt).get("wysiwyg");E(this,En,[...o(this,fu)._eventOrchestrator.__cacheStyleNodes]),E(this,Ss,T(this,dp,PC).bind(this,o(this,_n),t,e)),h.utils.addClass(t,"se-copy-format-cursor"),h.utils.addClass(e,"on"),E(this,ia,o(this,_n).addGlobalEvent("keydown",i=>{var n;xe.isEsc(i.code)&&((n=o(this,Ss))==null||n.call(this))})),E(this,na,o(this,_n).addGlobalEvent("mousedown",i=>{var n;t.contains(i.target)||i.target===e||(n=o(this,Ss))==null||n.call(this)}))},dp=new WeakSet,PC=function(e,t,i){return E(this,ia,e.removeGlobalEvent(o(this,ia))),E(this,na,e.removeGlobalEvent(o(this,na))),E(this,En,null),E(this,Ss,null),h.utils.removeClass(t,"se-copy-format-cursor"),h.utils.removeClass(i,"on"),!0},up=new WeakSet,HC=function(e){e=o(this,Ht).get("_defaultTagCommand")[e.toLowerCase()]||e;let t=o(this,Ht).get("convertTextTags")[e]||e;const i=o(this,sa).get("currentNodesMap"),n=i.includes(o(this,Ht).get("_styleCommandMap")[t])?null:h.utils.createElement(t);/^sub$/i.test(t)&&i.includes("superscript")?t="sup":/^sup$/i.test(t)&&i.includes("subscript")&&(t="sub"),o(this,ae).inline.apply(n,{stylesToModify:pA[e]||null,nodesToRemove:[t],strictRemove:!1}),o(this,ae).focusManager.focus()},hp=new WeakSet,FC=function(){const e=h.utils.createElement("DIV",{class:"se-component se-component-line-break se-page-break"});o(this,ae).component.insert(e,{skipCharCount:!0,insertBehavior:"line"});const t=e.nextElementSibling||o(this,ae).format.addLine(e);o(this,ae).selection.setRange(t,1,t,1),o(this,ae).history.push(!1)};const a0=function(s){const e=h.check.isContentLess,t=h.query.getEdgeChild(h.query.getEdgeChild(s,n=>!e(n),!1),n=>n.childNodes.length===0||n.nodeType===3||w0(n)||b0(n),!1)||s.firstChild,i=h.query.getEdgeChild(s.lastChild,n=>n.childNodes.length===0||n.nodeType===3||w0(n)||b0(n),!0)||s.lastChild;return{first:t,last:i}},Yg=".se-menu-list .se-toolbar-btn[data-command]",WC=["bold","underline","italic","strike","subscript","superscript","indent","outdent"],gA=WC.concat(["undo","redo","save","fullScreen","showBlocks","codeView","markdownView","finder","dir","dir_ltr","dir_rtl"]);var st,pu,oa,ra,es,mu,gu,mg;class vA{constructor(e){b(this,gu);b(this,st,void 0);b(this,pu,void 0);b(this,oa,void 0);b(this,ra,void 0);b(this,es,new Map);b(this,mu,WC);E(this,st,e.$),E(this,pu,o(this,st).context),E(this,oa,o(this,st).options),E(this,ra,new mA(e)),this.allCommandButtons=new Map,this.subAllCommandButtons=new Map}get targets(){return o(this,es)}get activeCommands(){return o(this,mu)}run(e,t,i){if(t){if(/more/i.test(t)){const n=h.query.getParentElement(i,".se-toolbar"),r=h.utils.hasClass(n,"se-toolbar-sub")?o(this,st).subToolbar:o(this,st).toolbar;if(i!==r.currentMoreLayerActiveButton){const a=n.querySelector("."+e);a&&(r._moreLayerOn(i,a),r._showBalloon(),r._showInline()),h.utils.addClass(i,"on")}else r.currentMoreLayerActiveButton&&(r._moreLayerOff(),r._showBalloon(),r._showInline());o(this,st).viewer._resetFullScreenHeight();return}if(/container/.test(t)&&(o(this,st).menu.targetMap[e]===null||i!==o(this,st).menu.currentContainerActiveButton)){o(this,st).menu.containerOn(i);return}if(o(this,st).ui.isButtonDisabled(i))return;if(/dropdown/.test(t)&&(o(this,st).menu.targetMap[e]===null||i!==o(this,st).menu.currentDropdownActiveButton)){o(this,st).menu.dropdownOn(i);return}else if(/modal/.test(t)){o(this,st).plugins[e].open(i);return}else/command/.test(t)?o(this,st).plugins[e].action(i):/browser/.test(t)?o(this,st).plugins[e].open(null):/popup/.test(t)&&o(this,st).plugins[e].show()}else e&&o(this,ra).execute(e,i);/dropdown/.test(t)?o(this,st).menu.dropdownOff():/command/.test(t)||(o(this,st).menu.dropdownOff(),o(this,st).menu.containerOff())}runFromTarget(e){if(h.check.isInputElement(e))return;const t=h.query.getCommandTarget(e);if(!t)return;const i=t.getAttribute("data-command"),n=t.getAttribute("data-type");!i&&!n||t.disabled||this.run(i,n,e)}applyTargets(e,t){o(this,es).has(e)&&o(this,es).get(e).forEach(t)}registerTargets(e,t){!e||!t||!gA.includes(e)&&!o(this,st).plugins[e]||(o(this,es).get(e)?o(this,es).get(e).includes(t)||o(this,es).get(e).push(t):o(this,es).set(e,[t]))}unregisterTargets(e,t){const i=o(this,es).get(e);if(!i)return;const n=i.indexOf(t);n!==-1&&i.splice(n,1),i.length===0&&o(this,es).delete(e)}resetTargets(){E(this,es,new Map),this._initCommandButtons()}_initCommandButtons(){const e=o(this,pu);T(this,gu,mg).call(this,this.allCommandButtons,e.get("toolbar_buttonTray")),T(this,gu,mg).call(this,this.subAllCommandButtons,e.get("toolbar_sub_buttonTray"))}_copyFormat(){o(this,ra).copyFormat()}_destroy(){o(this,es).clear(),this.allCommandButtons.clear(),this.subAllCommandButtons.clear(),E(this,mu,null)}}st=new WeakMap,pu=new WeakMap,oa=new WeakMap,ra=new WeakMap,es=new WeakMap,mu=new WeakMap,gu=new WeakSet,mg=function(e,t){if(!t)return;const i=t.querySelectorAll(Yg),n=o(this,oa).get("shortcuts"),r=o(this,oa).get("_reverseCommandArray"),a=o(this,st).shortcuts.keyMap,c=o(this,st).shortcuts.reverseKeys;for(let d=0,u=i.length,f,p;d<u;d++)f=i[d],p=f.getAttribute("data-command"),e.set(p,f),this.registerTargets(p,f),R3(p,f,n[p],a,r,c)};const ov=`${Yg}:not([class~="se-code-view-enabled"]):not([data-type="MORE"])`,rv=`${Yg}:not([class~="se-component-enabled"]):not([data-type="MORE"])`,{_w:Mh}=me;var vu,_e,Ps,Hs,ds,Ze,Nt,Fs,Gt,us,Tn,Qo,la,aa,Sn,ii,xn,ni,Ai,$i,Mn,yu,oi,ri,Oi,fp,zC,pp,jC,Cu,gg,mp,UC,gp,qC,vp,ZC;class yA{constructor(e){b(this,fp);b(this,pp);b(this,Cu);b(this,mp);b(this,gp);b(this,vp);b(this,vu,void 0);b(this,_e,void 0);b(this,Ps,void 0);b(this,Hs,void 0);b(this,ds,void 0);b(this,Ze,void 0);b(this,Nt,void 0);b(this,Fs,void 0);b(this,Gt,void 0);b(this,us,void 0);b(this,Tn,void 0);b(this,Qo,void 0);b(this,la,void 0);b(this,aa,void 0);b(this,Sn,null);b(this,ii,void 0);b(this,xn,!1);b(this,ni,null);b(this,Ai,null);b(this,$i,[]);b(this,Mn,[]);b(this,yu,!1);b(this,oi,null);b(this,ri,null);b(this,Oi,null);Mr(this,"setCurrentControllerContext");E(this,vu,e),E(this,_e,e.$),E(this,Ps,e.store),E(this,Hs,o(this,_e).contextProvider),E(this,ds,o(this,Hs).carrierWrapper),E(this,Ze,o(this,_e).options),E(this,Nt,o(this,_e).context),E(this,Fs,o(this,_e).frameRoots),E(this,Gt,o(this,_e).frameContext),E(this,us,o(this,_e).eventManager);const t=CA(o(this,Hs));this.alertModal=t,this.alertMessage=t.querySelector("span");const i=bA();i.setAttribute("popover","manual"),this.toastPopup=i,this.toastContainer=i.querySelector(".se-toast-container"),this.toastMessage=i.querySelector("span"),o(this,ds).appendChild(i),E(this,Tn,o(this,ds).querySelector(".se-alert")),E(this,Qo,o(this,ds).querySelector(".se-alert .se-modal-inner")),o(this,Qo).appendChild(t),E(this,la,[T(this,vp,ZC).bind(this),T(this,gp,qC).bind(this)]),E(this,aa,!1),E(this,ii,o(this,ds).querySelector(".se-back-wrapper")),this.selectMenuOn=!1,this.opendControllers=[],this.controllerTargetContext=null,this._figureContainer=null}setEditorStyle(e,t){t||(t=o(this,Gt));const i=t.get("options");i.set("editorStyle",e);const n=Se._setDefaultOptionStyle(i,e);i.set("_defaultStyles",n),t.get("topArea").style.cssText=n.top;const r=t.get("code");if(o(this,Ze).get("hasCodeMirror")){const a=i.get("_defaultStyles").frame.split(";");for(let c=0,d=a.length,u;c<d;c++){if(u=a[c].trim(),!u)continue;const[f,p]=u.split(":");r.style.setProperty(f.trim(),p.trim())}}else r.style.cssText=i.get("_defaultStyles").frame;i.get("iframe")?(t.get("wysiwygFrame").style.cssText=n.frame,t.get("wysiwyg").style.cssText=n.editor):t.get("wysiwygFrame").style.cssText=n.frame+n.editor}setTheme(e){if(typeof e!="string")return;const t=o(this,Ze),i=t.get("_themeClass").trim();t.set("theme",e||""),t.set("_themeClass",e?` se-theme-${e}`:""),e=t.get("_themeClass").trim();const n=r=>{r&&(i&&h.utils.removeClass(r,i),e&&h.utils.addClass(r,e))};n(o(this,ds)),o(this,Hs).applyToRoots(r=>{n(r.get("topArea")),n(r.get("wysiwyg"))}),n(o(this,Nt).get("statusbar_wrapper")),n(o(this,Nt).get("toolbar_wrapper"))}setDir(e){var a,c;const t=e==="rtl";if(o(this,Ze).get("_rtl")===t)return;const i=o(this,Ze).get("textDirection"),n=o(this,Ze).get("_editableClass"),r=o(this,Ze).get("printClass");try{o(this,Ze).set("_rtl",t),o(this,Ze).set("textDirection",e);const d=t?o(this,Ze).get("_editableClass").replace(/\s*se-rtl/,"")+" se-rtl":o(this,Ze).get("_editableClass").replace(/\s*se-rtl/,"");o(this,Ze).set("_editableClass",d),o(this,Ze).get("printClass")&&o(this,Ze).set("printClass",t?o(this,Ze).get("printClass").replace(/\s*se-rtl/,"")+" se-rtl":o(this,Ze).get("printClass").replace(/\s*se-rtl/,"")),this.offCurrentController();const u=o(this,Gt),f=o(this,_e).pluginManager.plugins;for(const y in f)(c=(a=f[y]).setDir)==null||c.call(a,e);const p=o(this,Nt).get("toolbar_wrapper"),m=o(this,Nt).get("statusbar_wrapper");t?(o(this,Hs).applyToRoots(y=>{h.utils.addClass([y.get("topArea"),y.get("wysiwyg"),y.get("documentTypePageMirror")],"se-rtl"),y.get("wysiwyg").dir="rtl"}),h.utils.addClass([o(this,ds),p,m],"se-rtl")):(o(this,Hs).applyToRoots(y=>{h.utils.removeClass([y.get("topArea"),y.get("wysiwyg"),y.get("documentTypePageMirror")],"se-rtl"),y.get("wysiwyg").removeAttribute("dir")}),h.utils.removeClass([o(this,ds),p,m],"se-rtl"));const g=h.query.getListChildren(u.get("wysiwyg"),y=>o(this,_e).format.isLine(y)&&!!(y.style.marginRight||y.style.marginLeft||y.style.textAlign),null);for(let y=0,v,C,w;v=g[y];y++)v=g[y],w=v.style.marginRight,C=v.style.marginLeft,(w||C)&&(v.style.marginRight=C,v.style.marginLeft=w),w=v.style.textAlign,w==="left"?v.style.textAlign="right":w==="right"&&(v.style.textAlign="left");T(this,pp,jC).call(this,t),T(this,Cu,gg).call(this,o(this,Nt).get("toolbar_buttonTray")),o(this,Nt).has("toolbar_sub_buttonTray")&&T(this,Cu,gg).call(this,o(this,Nt).get("toolbar_sub_buttonTray")),o(this,Ps).mode.isBalloon?o(this,_e).toolbar._showBalloon():o(this,Ps).mode.isSubBalloon&&o(this,_e).subToolbar._showBalloon()}catch(d){o(this,Ze).set("_rtl",!t),o(this,Ze).set("textDirection",i),o(this,Ze).set("_editableClass",n),r!==null&&o(this,Ze).set("printClass",r),console.warn(`[SUNEDITOR.ui.setDir.fail] ${d.toString()}`)}o(this,Ps).set("_lastSelectionNode",null),o(this,vu)._eventOrchestrator.applyTagEffect()}readOnly(e,t){var n,r,a,c,d,u,f,p;const i=t?o(this,Fs).get(t):o(this,Gt);i.set("isReadOnly",!!e),this._toggleControllerButtons(!!e),e?(this.offCurrentController(),this.offCurrentModal(),(r=(n=o(this,_e).toolbar)==null?void 0:n.currentMoreLayerActiveButton)!=null&&r.disabled&&o(this,_e).toolbar._moreLayerOff(),(c=(a=o(this,_e).subToolbar)==null?void 0:a.currentMoreLayerActiveButton)!=null&&c.disabled&&o(this,_e).subToolbar._moreLayerOff(),(u=(d=o(this,_e).menu)==null?void 0:d.currentDropdownActiveButton)!=null&&u.disabled&&o(this,_e).menu.dropdownOff(),(p=(f=o(this,_e).menu)==null?void 0:f.currentContainerActiveButton)!=null&&p.disabled&&o(this,_e).menu.containerOff(),i.get("code").setAttribute("readOnly","true"),h.utils.addClass(i.get("wysiwyg"),"se-read-only")):(i.get("code").removeAttribute("readOnly"),h.utils.removeClass(i.get("wysiwyg"),"se-read-only")),o(this,Ze).get("hasCodeMirror")&&o(this,_e).viewer._codeMirrorEditor("readonly",!!e,t)}disable(e){const t=e?o(this,Fs).get(e):o(this,Gt);o(this,_e).toolbar.disable(),this.offCurrentController(),this.offCurrentModal(),t.get("wysiwyg").setAttribute("contenteditable","false"),t.set("isDisabled",!0),o(this,Ze).get("hasCodeMirror")?o(this,_e).viewer._codeMirrorEditor("readonly",!0,e):t.get("code").disabled=!0}enable(e){const t=e?o(this,Fs).get(e):o(this,Gt);o(this,_e).toolbar.enable(),t.get("wysiwyg").setAttribute("contenteditable","true"),t.set("isDisabled",!1),o(this,Ze).get("hasCodeMirror")?o(this,_e).viewer._codeMirrorEditor("readonly",!1,e):t.get("code").disabled=!1}show(e){const i=(e?o(this,Fs).get(e):o(this,Gt)).get("topArea").style;i.display==="none"&&(i.display="block")}hide(e){const t=e?o(this,Fs).get(e):o(this,Gt);t.get("topArea").style.display="none"}showLoading(e){var i;const t=(e?o(this,Fs).get(e).get("container"):o(this,ds)).querySelector(".se-loading-box");t.style.display="block",(i=t.showPopover)==null||i.call(t)}hideLoading(e){var i;const t=(e?o(this,Fs).get(e).get("container"):o(this,ds)).querySelector(".se-loading-box");(i=t.hidePopover)==null||i.call(t),t.style.display="none"}alertOpen(e,t){var i,n;this.alertMessage.textContent=e,h.utils.removeClass(this.alertModal,"se-alert-error|se-alert-success"),t&&h.utils.addClass(this.alertModal,`se-alert-${t}`),o(this,aa)&&E(this,Sn,o(this,us).addEvent(o(this,Qo),"click",o(this,la)[1])),o(this,ni)&&E(this,ni,o(this,us).removeGlobalEvent(o(this,ni))),E(this,ni,o(this,us).addGlobalEvent("keydown",o(this,la)[0])),o(this,Tn).style.display="block",(n=(i=o(this,Tn)).showPopover)==null||n.call(i),h.utils.addClass(this.alertModal,"se-modal-show")}alertClose(){var e,t;h.utils.removeClass(this.alertModal,"se-modal-show"),h.utils.removeClass(this.alertModal,"se-alert-*"),(t=(e=o(this,Tn)).hidePopover)==null||t.call(e),o(this,Tn).style.display="none",o(this,Sn)&&E(this,Sn,o(this,us).removeEvent(o(this,Sn))),o(this,ni)&&E(this,ni,o(this,us).removeGlobalEvent(o(this,ni)))}showToast(e,t=1e3,i){var n,r;h.utils.hasClass(this.toastContainer,"se-toast-show")&&this.closeToast(),h.utils.removeClass(this.toastPopup,"se-toast-error|se-toast-success"),i&&h.utils.addClass(this.toastPopup,`se-toast-${i}`),this.toastPopup.style.display="block",(r=(n=this.toastPopup).showPopover)==null||r.call(n),this.toastMessage.textContent=e,h.utils.addClass(this.toastContainer,"se-toast-show"),E(this,Ai,Mh.setTimeout(()=>{this.closeToast()},t))}closeToast(){var e,t;o(this,Ai)&&Mh.clearTimeout(o(this,Ai)),E(this,Ai,null),h.utils.removeClass(this.toastContainer,"se-toast-show"),(t=(e=this.toastPopup).hidePopover)==null||t.call(e),this.toastPopup.style.display="none"}setControllerOnDisabledButtons(e){return e&&!o(this,xn)?(this._toggleControllerButtons(!0),E(this,xn,!0)):!e&&o(this,xn)&&(this._toggleControllerButtons(!1),E(this,xn,!1)),o(this,xn)}onControllerContext(){this.controllerTargetContext=o(this,Gt).get("topArea")}offControllerContext(){this.controllerTargetContext=null}enableBackWrapper(e){var t,i;o(this,ii).style.cursor=e,o(this,ii).style.display="block",(i=(t=o(this,ii)).showPopover)==null||i.call(t)}disableBackWrapper(){var e,t;(t=(e=o(this,ii)).hidePopover)==null||t.call(e),o(this,ii).style.display="none",o(this,ii).style.cursor="default"}offCurrentController(){o(this,_e).component.__deselect()}offCurrentModal(){var e;(e=this.opendModal)==null||e.close()}getVisibleFigure(){var e;return((e=this._figureContainer)==null?void 0:e.style.display)==="block"?this._figureContainer:null}setFigureContainer(e){this._figureContainer=e}preventToolbarHide(e){E(this,yu,e)}get isPreventToolbarHide(){return o(this,yu)}get blockHandle(){return o(this,Oi)}reset(e){e.set("_editorHeight",e.get("wysiwygFrame").offsetHeight),E(this,oi,e.get("lineBreaker_t")),E(this,ri,e.get("lineBreaker_b"));const t=o(this,Ze).get("blockHandle");t&&e.get("blockHandleArea")&&!o(this,Oi)&&E(this,Oi,new hA(o(this,_e),e.get("blockHandleArea"),e.get("blockHandle"),e.get("blockHandlePlus"),e.get("blockHandleDrag"),t.menu))}_offControllers(){var i,n;const e=this.opendControllers,t=[];for(let r=0,a;r<e.length;r++){if(a=e[r],a.fixed){t.push(a);continue}(n=(i=a.inst).controllerClose)==null||n.call(i),a.form&&(a.form.style.display="none")}this.opendControllers=t,this.currentControllerName="",o(this,Ps).set("_preventBlur",!1)}_syncScrollPosition(e){var n;const t=e.scrollTop||e.scrollY||0,i=e.scrollLeft||e.scrollX||0;o(this,Ps).mode.isBalloon&&o(this,Nt).get("toolbar_main").style.display==="block"?(o(this,Nt).get("toolbar_main").style.top=o(this,_e).toolbar.balloonOffset.top-t+"px",o(this,Nt).get("toolbar_main").style.left=o(this,_e).toolbar.balloonOffset.left-i+"px"):o(this,Ps).mode.isSubBalloon&&o(this,Nt).get("toolbar_sub_main").style.display==="block"&&(o(this,Nt).get("toolbar_sub_main").style.top=o(this,_e).subToolbar.balloonOffset.top-t+"px",o(this,Nt).get("toolbar_sub_main").style.left=o(this,_e).subToolbar.balloonOffset.left-i+"px"),(n=o(this,Oi))==null||n.syncScroll(),this.controllerTargetContext!==o(this,Gt).get("topArea")&&this.offCurrentController(),T(this,fp,zC).call(this,i,t)}_repositionControllers(){var t;const e=this.opendControllers;if(e.length!==0){we.get("__dragMove")&&we.get("__dragMove")();for(let i=0;i<e.length;i++)e[i].notInCarrier||(t=e[i].inst)==null||t._scrollReposition()}}_visibleControllers(e,t){const i=e?"":"hidden",n=t??i?"":"hidden",r=this.opendControllers;for(let a=0,c;a<r.length;a++)c=r[a],c.form&&(c.form.style.visibility=i);o(this,oi).style.visibility=n,o(this,ri).style.visibility=n}_initToggleButtons(){const e=o(this,Nt);E(this,Mn,Se.nodeListToArray(e.get("toolbar_buttonTray").querySelectorAll(ov))),E(this,$i,Se.nodeListToArray(e.get("toolbar_buttonTray").querySelectorAll(rv))),o(this,Ze).has("_subMode")&&(E(this,Mn,o(this,Mn).concat(Se.nodeListToArray(e.get("toolbar_sub_buttonTray").querySelectorAll(ov)))),E(this,$i,o(this,$i).concat(Se.nodeListToArray(e.get("toolbar_sub_buttonTray").querySelectorAll(rv)))))}_toggleCodeViewButtons(e){h.utils.setDisabled(o(this,Mn),e)}_toggleControllerButtons(e){h.utils.setDisabled(o(this,$i),e)}isButtonDisabled(e){return!!(o(this,Gt).get("isReadOnly")&&h.utils.arrayIncludes(o(this,$i),e))}_updatePlaceholder(e){e||(e=o(this,Gt));const t=e.get("isMarkdownView")||e.get("isCodeView"),i=!t&&T(this,mp,UC).call(this,e),n=e.get("placeholder");n&&(n.style.display=!t&&!i&&o(this,_e).facade.isEmpty(e)?"block":"none")}resolveLinePlaceholder(e,t){if(!e||!t)return"";if(typeof t!="object")return h.check.isListCell(e)||h.query.getParentElement(e,h.check.isTableCell)?"":t;const i=o(this,_e).format,n=e.nodeName.toLowerCase();if(typeof t[n]=="string")return t[n];if(h.check.isListCell(e)&&typeof t["@list"]=="string")return t["@list"];if(i.isClosureBrLine(e)&&typeof t["@closureBrLine"]=="string")return t["@closureBrLine"];if(i.isBrLine(e)&&typeof t["@brLine"]=="string")return t["@brLine"];const r=i.getBlock(e);if(r&&r!==e){const a=r.nodeName.toLowerCase();if(typeof t[a]=="string")return t[a];if(i.isClosureBlock(r)&&typeof t["@closureBlock"]=="string")return t["@closureBlock"];if(typeof t["@block"]=="string")return t["@block"]}return i.isNormalLine(e)&&typeof t["@normalLine"]=="string"?t["@normalLine"]:typeof t["@line"]=="string"?t["@line"]:""}_syncFrameState(e){e&&(this._iframeAutoHeight(e),this._updatePlaceholder(e),e.has("documentType_use_page")&&(e.get("documentTypePageMirror").innerHTML=e.get("wysiwyg").innerHTML,e.get("documentType").rePage(!0)))}_iframeAutoHeight(e){if(!e)return;const t=e.get("_iframeAuto");if(t)Mh.setTimeout(()=>{const i=t.offsetHeight,n=e.get("wysiwygFrame");if(!n)return;n.style.height=i+"px";const r=e.get("options");if(r!=null&&r.get("iframe")){const a=r.get("maxHeight");a&&n.setAttribute("scrolling",i>Q.get(a)?"auto":"no")}me.isResizeObserverSupported||this._emitResizeEvent(e,i,null)},0);else if(!me.isResizeObserverSupported){const i=e.get("wysiwygFrame");i&&this._emitResizeEvent(e,i.offsetHeight,null)}}_emitResizeEvent(e,t,i){t=t===-1?i!=null&&i.borderBoxSize&&i.borderBoxSize[0]?i.borderBoxSize[0].blockSize:i.contentRect.height+Q.get(e.get("wwComputedStyle").getPropertyValue("padding-left"))+Q.get(e.get("wwComputedStyle").getPropertyValue("padding-right")):t,e.get("_editorHeight")!==t&&(o(this,us).triggerEvent("onResizeEditor",{height:t,prevHeight:e.get("_editorHeight"),frameContext:e,observerEntry:i}),e.set("_editorHeight",t)),e.has("documentType_use_page")&&e.get("documentType").resizePage()}init(){E(this,aa,!o(this,us).addEvent(this.alertModal.querySelector('[data-command="close"]'),"click",this.alertClose.bind(this))),this._initToggleButtons()}_destroy(){var e;o(this,Ai)&&Mh.clearTimeout(o(this,Ai)),o(this,ni)&&E(this,ni,o(this,us).removeGlobalEvent(o(this,ni))),o(this,Sn)&&E(this,Sn,o(this,us).removeEvent(o(this,Sn))),this.opendModal=null,this.opendBrowser=null,E(this,oi,null),E(this,ri,null),(e=o(this,Oi))==null||e.destroy(),E(this,Oi,null),E(this,$i,null),E(this,Mn,null)}}vu=new WeakMap,_e=new WeakMap,Ps=new WeakMap,Hs=new WeakMap,ds=new WeakMap,Ze=new WeakMap,Nt=new WeakMap,Fs=new WeakMap,Gt=new WeakMap,us=new WeakMap,Tn=new WeakMap,Qo=new WeakMap,la=new WeakMap,aa=new WeakMap,Sn=new WeakMap,ii=new WeakMap,xn=new WeakMap,ni=new WeakMap,Ai=new WeakMap,$i=new WeakMap,Mn=new WeakMap,yu=new WeakMap,oi=new WeakMap,ri=new WeakMap,Oi=new WeakMap,fp=new WeakSet,zC=function(e,t){if(o(this,oi)){const n=o(this,oi).style;if(n.display!=="none"){const r=(o(this,oi).getAttribute("data-offset")||",").split(",");n.top=Q.get(n.top,0)-(t-Q.get(r[0],0))+"px",n.left=Q.get(n.left,0)-(e-Q.get(r[1],0))+"px",o(this,oi).setAttribute("data-offset",t+","+e)}}if(o(this,ri)){const n=o(this,ri).style;if(n.display!=="none"){const r=(o(this,ri).getAttribute("data-offset")||",").split(",");n.top=Q.get(n.top,0)-(t-Q.get(r[0],0))+"px",n[r[1]]=Q.get(n[r[1]],0)-(e-Q.get(r[2],0))+"px",o(this,ri).setAttribute("data-offset",t+","+r[1]+","+e)}}const i=this.opendControllers;for(let n=0;n<i.length;n++)i[n].notInCarrier&&(i[n].form.style.top=i[n].inst.__offset.top-t+"px",i[n].form.style.left=i[n].inst.__offset.left-e+"px")},pp=new WeakSet,jC=function(e){var r,a,c,d;const t=o(this,Hs).icons,i=(r=o(this,_e).commandDispatcher)==null?void 0:r.targets;if(!i)return;const n=(a=o(this,_e).shortcuts)==null?void 0:a.keyMap;(d=(c=o(this,_e).shortcuts)==null?void 0:c.reverseKeys)==null||d.forEach(u=>{const f=n==null?void 0:n.get(u);f&&([f.command,f.r]=[f.r,f.command])}),o(this,_e).commandDispatcher.applyTargets("dir",u=>{h.utils.changeTxt(u.querySelector(".se-tooltip-text"),o(this,Hs).lang[e?"dir_ltr":"dir_rtl"]),h.utils.changeElement(u.firstElementChild,t[e?"dir_ltr":"dir_rtl"])}),e?(h.utils.addClass(i.get("dir_rtl"),"active"),h.utils.removeClass(i.get("dir_ltr"),"active")):(h.utils.addClass(i.get("dir_ltr"),"active"),h.utils.removeClass(i.get("dir_rtl"),"active"))},Cu=new WeakSet,gg=function(e){if(!e)return;const t=e.querySelector(".se-toolbar-more-layer"),i=Array.from(e.children).filter(n=>n!==t);for(let n=i.length-1;n>=0;n--)e.appendChild(i[n]);t&&e.appendChild(t)},mp=new WeakSet,UC=function(e){const t=e.get("placeholder_line");if(!t)return!1;const i=e.get("wysiwyg"),n=o(this,Ps).get("hasFocus")?o(this,_e).format.getLine(o(this,_e).selection.selectionNode):null,r=h.check.isEmptyLine(n)?this.resolveLinePlaceholder(n,t):"",a=r?n:null,c=i.querySelectorAll(".se-placeholder-line");for(let d=0;d<c.length;d++){const u=c[d];u!==a&&(u.classList.remove("se-placeholder-line"),u.removeAttribute("data-se-placeholder-line"),u.getAttribute("class")||u.removeAttribute("class"))}return a?(a.classList.add("se-placeholder-line"),a.setAttribute("data-se-placeholder-line",r),!0):!1},gp=new WeakSet,qC=function(e){const t=h.query.getEventTarget(e);(/close/.test(t.getAttribute("data-command"))||t===o(this,Qo))&&this.alertClose()},vp=new WeakSet,ZC=function(e){xe.isEsc(e.code)&&this.alertClose()};function CA({lang:s,icons:e}){const t='<div><button type="button" class="close" data-command="close" title="'+s.close+'">'+e.cancel+"</button></div><div><span></span></div>";return h.utils.createElement("DIV",{class:"se-alert-content"},t)}function bA(){const s='<div class="se-toast-container"><span></span></div>';return h.utils.createElement("DIV",{class:"se-toast"},s)}const wA=yA;function kA(s){const e=s.$,t=s.store,i=e.contextProvider,n=e.eventManager,r=i.frameRoots,a=i.context,c=i.frameContext;let d=e.options.get("historyStackDelayTime");const u=e.options.get("historyStackSize");let f=null,p,m,g,y,v=!1,C=null;function w(B,N,O){O&&t.get("hasFocus")&&s._eventOrchestrator.applyTagEffect(),e.history.resetButtons(B.get("key"),N),n.triggerEvent("onChange",{frameContext:B,data:B.get("wysiwyg").innerHTML}),a.get("toolbar_main").style.display==="block"?e.toolbar._showBalloon():t.mode.isSubBalloon&&a.get("toolbar_sub_main").style.display==="block"&&e.subToolbar._showBalloon()}function k(B){const N=m[p],O=g[N];p+=B;const A=B<0&&N!==m[p]&&O.index>0?N:m[p],V=g[A];V.index+=B;const R=V.value[V.index];if(!R){console.warn("[SunEditor.history.setContent.fail] History state desynchronized. Aborting undo/redo operation."),V.index-=B,p-=B;return}r.get(A).get("wysiwyg").innerHTML=R.content,N!==A&&B<0&&p===1?p=0:N!==A&&B>0&&V.index===1?p++:(B<0&&V.index<1||B>0&&V.index>V.value.length)&&(p+=B);let $=A,D=R;if(B<0&&p>0&&V.index===0){const z=m[p+B];if(z!==A){const q=g[z];$=z,D=q.value[q.index]}}e.facade.changeFrameContext($),e.selection.setRange(_0(D.s.path,D.frame),D.s.offset,_0(D.e.path,D.frame),D.e.offset),e.focusManager.focus(),p<0?p=0:p>=m.length&&(p=m.length-1),e.ui.offCurrentController(),e.pluginManager.checkFileInfo(!1),e.char.display(),e.ui._syncFrameState(c),c.has("documentType_use_header")&&c.get("documentType").reHeader(),w(c,V.index,!0)}function _(B,N,O,A){let V,R;N?(V={path:k0(N.startContainer,null,null),offset:N.startOffset},R={path:k0(N.endContainer,null,null),offset:N.endOffset}):(V={path:[0,0],offset:[0,0]},R={path:0,offset:0}),p+=A,m[p]=O;const $=g[O];$.index+=A,$.value[$.index]={content:B,s:V,e:R,frame:r.get(O).get("wysiwyg")}}function M(B){p++,m[p]=B;const N=g[B];N.index=0,N.value[0]={content:y[B],s:{path:[0,0],offset:[0,0]},e:{path:0,offset:0},frame:r.get(B).get("wysiwyg")}}function S(B){g[B]={value:[],index:-1},y[B]=r.get(B).get("wysiwyg").innerHTML}function x(B){const N=[];for(let O=p+1,A=m.length;O<A;O++)N.includes(m[O])||N.push(m[O]);m=m.slice(0,p+1),B.value.splice(B.index+1),e.commandDispatcher.applyTargets("redo",O=>{O.disabled=!0});for(let O=0,A=N.length;O<A;O++)m.includes(N[O])||S(N[O])}function L(B,N){e.pluginManager.checkFileInfo(!1);const O=r.get(B),A=O.get("wysiwyg").innerHTML,V=g[B];if(!(!A||V.value[V.index]&&A===V.value[V.index].content)){if(m.length>p+1&&x(V),V.value.length===0&&M(B),_(A,N,B,1),V.value.length>u){const R=V.value.length-u;V.value.splice(0,R),V.index-=R;let $=0;for(let D=m.length-1;D>=0&&$<R;D--)if(m[D]===B){for(let z=0;z<m.length;z++)if(m[z]===B){m.splice(z,1),$++;break}}p-=R}p===1&&e.commandDispatcher.applyTargets("undo",R=>{R.disabled=!1}),e.char.display(),w(O,V.index,!1)}}return{push(B,N){if(v)return;N=N||N===null?N:t.get("rootKey");const O=t.get("_range");he.setTimeout(e.ui._syncFrameState.bind(e.ui,r.get(N)),0);const A=typeof B=="number"?B>0?B:0:B?d:0;if((!A||f)&&(he.clearTimeout(f),!A)){L(N,O);return}f=he.setTimeout(()=>{he.clearTimeout(f),f=null,L(N,O)},A)},check(B,N){f&&(he.clearTimeout(f),f=null,L(B,N))},undo(){p>0&&k(-1)},redo(){m.length-1>p&&k(1)},overwrite(B){_(r.get(B||t.get("rootKey")).get("wysiwyg").innerHTML,null,t.get("rootKey"),0)},pause(){v=!0,C&&(he.clearTimeout(C),C=null),C=he.setTimeout(()=>{v=!1},5e3)},resume(){C&&(he.clearTimeout(C),C=null),v=!1},reset(){e.commandDispatcher.applyTargets("undo",N=>N.disabled=!0),e.commandDispatcher.applyTargets("redo",N=>N.disabled=!0),e.commandDispatcher.applyTargets("save",N=>N.disabled=!0),i.applyToRoots(N=>N.set("historyIndex",-1)),i.applyToRoots(N=>N.set("isChanged",!1)),p=-1,m=[],g={},y={},v=!1;const B=i.rootKeys;for(let N=0,O=B.length;N<O;N++)S(B[N])},resetButtons(B,N){const O=!Q.is(N),A=g[B===void 0?m[p]:B];N=O?A.index:N;const V=r.get(B),R=A.value.length-1;e.commandDispatcher.applyTargets("undo",q=>{N>0&&N<=R?q.disabled=!1:q.disabled=!0}),e.commandDispatcher.applyTargets("redo",q=>{N>-1&&N<R?q.disabled=!1:q.disabled=!0});const $=V.get("savedIndex"),D=V.get("historyIndex"),z=$>-1?$!==N:O?A.index>0:N>0&&D!==N;V.set("historyIndex",N),V.set("isChanged",z),e.commandDispatcher.applyTargets("save",q=>{z?q.disabled=!1:q.disabled=!0}),n.triggerEvent("onResetButtons",{rootKey:B})},getRootStack(){return g},resetDelayTime(B){d=B},_destroy(){f&&he.clearTimeout(f),C&&he.clearTimeout(C),p=m=g=y=null}}}const{_w:zs}=me;var ca,Ve,Bn,da,ua,Qe,ct,lt,Jo,bu,ha,Nn,fa,wu,ku,Ln,pa,ma,yp,GC,er,vc,tr,yc,Cp,YC,ga,Wh;class _A{constructor(e,{keyName:t,balloon:i,inline:n,balloonAlways:r,res:a}){b(this,yp);b(this,er);b(this,tr);b(this,Cp);b(this,ga);b(this,ca,void 0);b(this,Ve,void 0);b(this,Bn,void 0);b(this,da,void 0);b(this,ua,void 0);b(this,Qe,void 0);b(this,ct,void 0);b(this,lt,void 0);b(this,Jo,void 0);b(this,bu,void 0);b(this,ha,void 0);b(this,Nn,void 0);b(this,fa,"default");b(this,wu,null);b(this,ku,null);b(this,Ln,!1);b(this,pa,!1);b(this,ma,!1);E(this,ca,e),E(this,Ve,e.$),E(this,Bn,e.store),E(this,da,o(this,Ve).icons),E(this,ua,o(this,Ve).lang),E(this,Qe,o(this,Ve).context),E(this,ct,o(this,Ve).frameContext),E(this,lt,o(this,Ve).options),E(this,Jo,o(this,Ve).eventManager),this.isSub=t==="toolbar_sub",this.keyName={main:this.isSub?"toolbar_sub_main":"toolbar_main",buttonTray:this.isSub?"toolbar_sub_buttonTray":"toolbar_buttonTray",width:this.isSub?"toolbar_sub_width":"toolbar_width"},this.currentMoreLayerActiveButton=null,this.isBalloonMode=i,this.isInlineMode=n,this.isBalloonAlwaysMode=r,this.inlineToolbarAttr={top:"",width:"",isShow:!1},this.balloonOffset={top:0,left:0},E(this,bu,a),E(this,ha,a),E(this,Nn,"visualViewport"in zs);const c=!this.isSub&&!i&&!n,d=o(this,lt).get("_toolbar_sticky");if(E(this,Ln,c&&d>=0&&!o(this,lt).get("toolbar_container")&&!o(this,lt).get("_toolbar_sticky_fixed")&&typeof CSS<"u"&&CSS.supports("position","sticky")),this.isBottomMode=o(this,Bn).mode.isBottom,o(this,Ln)){const u=o(this,Qe).get(this.keyName.main);this.isBottomMode?(u.style.bottom=d+"px",u.style.top="auto"):d>0&&(u.style.top=d+"px")}else c&&h.utils.addClass(o(this,Qe).get(this.keyName.main),"se-toolbar-relative");this._setResponsive()}get isSticky(){if(this.isSub)return!1;const e=o(this,lt).get("_toolbar_sticky");if(e<0)return!1;if(o(this,Ln)){const t=o(this,Qe).get(this.keyName.main);if(!t||t.offsetWidth===0||t.style.display==="none")return!1;if(this.isBottomMode){const i=o(this,Nn)?zs.visualViewport.height:zs.innerHeight;return t.getBoundingClientRect().bottom>=i-e-1}return t.getBoundingClientRect().top<=e+1}return o(this,pa)}get isCSSSticky(){return o(this,Ln)}disable(){this._moreLayerOff(),o(this,Ve).menu.dropdownOff(),o(this,Ve).menu.containerOff(),h.utils.setDisabled(o(this,Qe).get(this.keyName.buttonTray).querySelectorAll(".se-menu-list .se-toolbar-btn[data-type]"),!0)}enable(){h.utils.setDisabled(o(this,Qe).get(this.keyName.buttonTray).querySelectorAll(".se-menu-list .se-toolbar-btn[data-type]"),!1)}show(){this.isInlineMode?this._showInline():this.isBalloonMode?this._showBalloon():(o(this,Qe).get(this.keyName.main).style.display="",this.isSub||(o(this,ct).get("_stickyDummy").style.display="")),this.isSub||this.resetResponsiveToolbar()}hide(){this.isInlineMode?(o(this,Qe).get(this.keyName.main).style.display="none",o(this,Qe).get(this.keyName.main).style.top="0px",this.inlineToolbarAttr.isShow=!1):(o(this,Qe).get(this.keyName.main).style.display="none",this.isSub||(o(this,ct).get("_stickyDummy").style.display="none"),this.isBalloonMode&&(this.balloonOffset={top:0,left:0}))}resetResponsiveToolbar(){o(this,Ve).menu.containerOff();const e=o(this,ku);if(e){let t=0;(this.isBalloonMode||this.isInlineMode)&&o(this,lt).get("toolbar_width")==="auto"||o(this,Bn).mode.isSubBalloon&&o(this,lt).get("toolbar_sub_width")==="auto"?t=o(this,ct).get("topArea").offsetWidth:t=o(this,Qe).get(this.keyName.main).offsetWidth;let i="default";for(let n=1,r=e.length;n<r;n++)if(t<e[n]){i=e[n]+"";break}o(this,fa)!==i&&(E(this,fa,i),this.setButtons(o(this,wu)[i]))}}setButtons(e){this._moreLayerOff(),o(this,Ve).menu.dropdownOff(),o(this,Ve).menu.containerOff();const t=B0(e,o(this,Ve).plugins,o(this,lt),o(this,da),o(this,ua),!0);t.updateButtons.forEach(i=>H3(i.button,i.plugin,o(this,da),o(this,ua))),o(this,Qe).get(this.keyName.main).replaceChild(t.buttonTray,o(this,Qe).get(this.keyName.buttonTray)),o(this,Qe).set(this.keyName.buttonTray,t.buttonTray),T(this,yp,GC).call(this),o(this,Jo).triggerEvent("onSetToolbarButtons",{buttonTray:t.buttonTray,frameContext:o(this,ct)})}_resetSticky(){if(o(this,Ln)){T(this,Cp,YC).call(this);return}const e=o(this,ct).get("wrapper");if(!e)return;const t=o(this,Qe).get(this.keyName.main),i=o(this,lt).get("_toolbar_sticky");if(o(this,ct).get("isFullScreen")||t.offsetWidth===0||i<0)return;const n=o(this,Nn)?zs.visualViewport.pageTop:zs.scrollY,r=o(this,ct).get("_minHeight"),a=e.offsetHeight,c=o(this,Ve).offset.getGlobal(o(this,ct).get("topArea")),d=1;if(this.isBottomMode){const u=n+zs.innerHeight,f=c.top+a,p=u-i-(this.isInlineMode?t.offsetHeight:0),m=o(this,lt).get("toolbar_container")?u-i-c.top-r-t.offsetHeight:p-c.top-r;p>f?T(this,ga,Wh).call(this):m<0?(this.isSticky||T(this,er,vc).call(this,d),t.style.bottom=d+m+T(this,tr,yc).call(this)+"px",t.style.top="auto"):T(this,er,vc).call(this,d)}else{const u=n+i,f=(this.isBalloonMode||this.isInlineMode?c.top:o(this,Ve).offset.getGlobal(o(this,lt).get("toolbar_container")).top)-(this.isInlineMode?t.offsetHeight:0),p=o(this,lt).get("toolbar_container")?c.top-n+a-r-i-t.offsetHeight:a+f+i-u-r;u<f?T(this,ga,Wh).call(this):p<0?(this.isSticky||T(this,er,vc).call(this,d),t.style.top=d+p+T(this,tr,yc).call(this)+"px"):T(this,er,vc).call(this,d)}}_setResponsive(){var n;if(((n=o(this,ha))==null?void 0:n.length)===0){E(this,ha,null);return}E(this,fa,"default");const e=E(this,ku,[]),t=o(this,bu),i=E(this,wu,{default:t[0]});for(let r=1,a=t.length,c,d;r<a;r++)d=t[r],c=d[0]*1,e.push(c),i[c]=d[1];e.sort((r,a)=>r-a).unshift("default")}_showBalloon(e){if(!this.isBalloonMode)return;this.isSub&&this.resetResponsiveToolbar();const t=e||o(this,Ve).selection.getRange(),i=o(this,Qe).get(this.keyName.main),n=o(this,Ve).selection.get();let r;if(this.isBalloonAlwaysMode&&t.collapsed)r=!0;else if(n.focusNode===n.anchorNode)r=n.focusOffset<n.anchorOffset;else{const a=h.query.getListChildNodes(t.commonAncestorContainer,null,null);r=h.utils.getArrayIndex(a,n.focusNode)<h.utils.getArrayIndex(a,n.anchorNode)}this._setBalloonOffset(r,t),o(this,Jo).triggerEvent("onShowToolbar",{toolbar:i,mode:"balloon",frameContext:o(this,ct)})}_setBalloonOffset(e,t){const i=o(this,Qe).get(this.keyName.main),n=o(this,ct).get("topArea"),a=o(this,Ve).offset.getGlobal(n).top;if(!o(this,Ve).offset.setRangePosition(i,t,{position:e?"top":"bottom",addTop:a})){this.hide();return}if(o(this,lt).get("toolbar_container")){const d=n.parentElement;let u=o(this,lt).get("toolbar_container"),f=u.offsetLeft,p=u.offsetTop;for(;!u.parentElement.contains(d)&&!/^(BODY|HTML)$/i.test(u.parentElement.nodeName);)u=u.offsetParent,f+=u.offsetLeft,p+=u.offsetTop;i.style.left=i.offsetLeft-f+n.offsetLeft+"px",i.style.top=i.offsetTop-p+n.offsetTop+"px"}const c=o(this,Ve).offset.getWWScroll();this.balloonOffset={top:i.offsetTop+c.top,left:i.offsetLeft+c.left,position:e?"top":"bottom"}}_showInline(){if(!this.isInlineMode)return;const e=o(this,Qe).get(this.keyName.main);if(e.style.visibility="hidden",e.style.display="block",T(this,ga,Wh).call(this),e.style.top="0px",this.inlineToolbarAttr.width=e.style.width=o(this,lt).get(this.keyName.width),this.isBottomMode){const t=o(this,ct).get("topArea");this.inlineToolbarAttr.top=e.style.top=o(this,Ve).offset.getGlobal(t).top+t.offsetHeight-o(this,Ve).offset.getGlobal(e).top+"px"}else this.inlineToolbarAttr.top=e.style.top=-1+(o(this,Ve).offset.getGlobal(o(this,ct).get("topArea")).top-o(this,Ve).offset.getGlobal(e).top-e.offsetHeight)+"px";this._resetSticky(),this.inlineToolbarAttr.isShow=!0,o(this,Jo).triggerEvent("onShowToolbar",{toolbar:e,mode:"inline",frameContext:o(this,ct)}),e.style.visibility=""}_moreLayerOn(e,t){this._moreLayerOff(),this.currentMoreLayerActiveButton=e,t.style.display="block"}_moreLayerOff(){if(this.currentMoreLayerActiveButton){const e=o(this,Qe).get(this.keyName.main).querySelector("."+this.currentMoreLayerActiveButton.getAttribute("data-command"));e.style.display="none",h.utils.removeClass(this.currentMoreLayerActiveButton,"on"),this.currentMoreLayerActiveButton=null}}_destroy(){this._moreLayerOff()}}ca=new WeakMap,Ve=new WeakMap,Bn=new WeakMap,da=new WeakMap,ua=new WeakMap,Qe=new WeakMap,ct=new WeakMap,lt=new WeakMap,Jo=new WeakMap,bu=new WeakMap,ha=new WeakMap,Nn=new WeakMap,fa=new WeakMap,wu=new WeakMap,ku=new WeakMap,Ln=new WeakMap,pa=new WeakMap,ma=new WeakMap,yp=new WeakSet,GC=function(){o(this,Ve).shortcuts._registerShortcuts(),o(this,Ve).commandDispatcher.resetTargets(),o(this,Ve).ui._initToggleButtons(),o(this,Ve).history.resetButtons(o(this,ct).get("key"),null),this._resetSticky(),o(this,Bn).set("_lastSelectionNode",null),o(this,Ve).viewer._setButtonsActive(),o(this,Bn).get("hasFocus")&&o(this,ca)._eventOrchestrator.applyTagEffect(),o(this,ct).get("isReadOnly")&&o(this,Ve).ui.setControllerOnDisabledButtons(!0)},er=new WeakSet,vc=function(e){const t=o(this,Qe).get(this.keyName.main);if(!this.isInlineMode){const i=o(this,lt).get("toolbar_container")?o(this,Qe).get("_stickyDummy"):o(this,ct).get("_stickyDummy");i.style.height=t.offsetHeight+"px",i.style.display="block"}if(this.isBottomMode){const i=o(this,lt).get("_toolbar_sticky")+T(this,tr,yc).call(this);t.style.bottom=`${i}px`,t.style.top="auto"}else{const i=o(this,lt).get("_toolbar_sticky")+e+T(this,tr,yc).call(this);t.style.top=`${i}px`}t.style.width=this.isInlineMode?this.inlineToolbarAttr.width:t.offsetWidth+"px",h.utils.addClass(t,"se-toolbar-sticky"),E(this,pa,!0)},tr=new WeakSet,yc=function(){return o(this,Nn)?zs.visualViewport.offsetTop:0},Cp=new WeakSet,YC=function(){if(!o(this,Nn)||o(this,ca)._eventOrchestrator.scrollparents.length>0)return;const e=Math.round(zs.visualViewport.offsetTop);if(e===0&&!o(this,ma))return;const t=o(this,Qe).get(this.keyName.main),i=o(this,lt).get("_toolbar_sticky_offset");if(e>0)if(E(this,ma,!0),this.isBottomMode){const n=Math.round(zs.innerHeight-zs.visualViewport.height-e);t.style.bottom=i+n+"px",t.style.top="auto"}else t.style.top=i+e+"px";else{E(this,ma,!1);const n=o(this,lt).get("_toolbar_sticky");this.isBottomMode?(t.style.bottom=n+"px",t.style.top="auto"):t.style.top=n>0?n+"px":""}},ga=new WeakSet,Wh=function(){const e=o(this,lt).get("toolbar_container")?o(this,Qe).get("_stickyDummy"):o(this,ct).get("_stickyDummy");e.style.display="none";const t=o(this,Qe).get(this.keyName.main);this.isBottomMode?(t.style.bottom=this.isInlineMode?`${-t.offsetHeight}px`:"",t.style.top="auto",o(this,ct).get("wrapper").style.marginBottom=""):(t.style.top=this.isInlineMode?this.inlineToolbarAttr.top:"",o(this,ct).get("wrapper").style.marginTop=""),t.style.width=this.isInlineMode?this.inlineToolbarAttr.width:"",h.utils.removeClass(t,"se-toolbar-sticky"),E(this,pa,!1)};const lv=_A,{isMobile:av,_w:Bh}=me;var Lt,li,va,Vi,Ft,ai,_u,sr,An,ir,nr,ya,Ca,ci,Ri,di,Ii,or,ba,rr,Cc,Eu,vg,lr,bc,bp,KC,ar,wc,$n,Ir,wp,XC,kp,QC,_p,JC,Ep,e5,Tp,t5;class EA{constructor(e){b(this,rr);b(this,Eu);b(this,lr);b(this,bp);b(this,ar);b(this,$n);b(this,wp);b(this,kp);b(this,_p);b(this,Ep);b(this,Tp);b(this,Lt,void 0);b(this,li,void 0);b(this,va,void 0);b(this,Vi,void 0);b(this,Ft,void 0);b(this,ai,void 0);b(this,_u,[]);b(this,sr,null);b(this,An,null);b(this,ir,null);b(this,nr,null);b(this,ya,null);b(this,Ca,null);b(this,ci,null);b(this,Ri,null);b(this,di,null);b(this,Ii,null);b(this,or,null);b(this,ba,new Set);E(this,Lt,e.$),E(this,li,e.store),E(this,va,o(this,Lt).contextProvider),E(this,Vi,o(this,Lt).context),E(this,Ft,o(this,Lt).eventManager),this.targetMap={},this.itemsMap={},this.index=-1,this.menus=[],this.currentButton=null,this.currentDropdown=null,this.currentDropdownActiveButton=null,this.currentDropdownName="",this.currentDropdownType="",this.currentContainer=null,this.currentContainerActiveButton=null,this.currentContainerName="",this.currentDropdownPlugin=null,E(this,ai,{mousedown:T(this,wp,XC).bind(this),containerDown:this.containerOff.bind(this),keydown:T(this,_p,JC).bind(this),esc:T(this,Ep,e5).bind(this),mousemove:T(this,Tp,t5).bind(this),mouseout:T(this,kp,QC).bind(this)}),E(this,sr,null),E(this,An,null),E(this,ir,null),E(this,nr,null),E(this,ci,null),E(this,Ri,null),E(this,or,Bh.visualViewport||null)}initDropdownTarget({key:e,type:t},i,n){if(!e)throw Error("[SUNEDITOR.init.fail] The plugin's key is not added.");let r;if(Array.isArray(i)){r=TA(i,n);const a=r.querySelectorAll(".se-list-inner li > button"),c=a.length-i.length;for(let d=0;d<i.length;d++)i[d]._element=a[c+d]||null;this.itemsMap[e]=i}else r=i;return cv(t)||(r.setAttribute("data-key",e),o(this,_u).push(e)),o(this,Vi).get("menuTray").appendChild(r),this.targetMap[e]=r,r}dropdownOn(e){var a,c,d;T(this,$n,Ir).call(this);const t=T(this,bp,KC).call(this,e);if(t){const u=h.query.getParentElement(t,".se-btn-tray").querySelector('[data-command="'+t.getAttribute("data-ref")+'"]');if(u){o(this,Lt).commandDispatcher.runFromTarget(u),this.dropdownOn(e);return}}const i=this.currentButton=e,n=this.currentDropdownName=i.getAttribute("data-command");this.currentDropdownType=i.getAttribute("data-type");const r=this.currentDropdown=this.targetMap[n];this.currentDropdownActiveButton=i,av?T(this,Eu,vg).call(this,i,r):T(this,rr,Cc).call(this,i,r),(c=(a=o(this,Vi).get("menuTray")).showPopover)==null||c.call(a),E(this,sr,o(this,Ft).addGlobalEvent("mousedown",o(this,ai).mousedown,!1)),E(this,ir,o(this,Ft).addGlobalEvent("keydown",o(this,ai).esc,!0)),o(this,_u).includes(n)&&(this.menus=Se.nodeListToArray(r.querySelectorAll("[data-command]")),this.menus.length>0&&(E(this,An,o(this,Ft).addGlobalEvent("keydown",o(this,ai).keydown,!1)),E(this,ya,o(this,Ft).addEvent(r,"mousemove",o(this,ai).mousemove,!1)),E(this,Ca,o(this,Ft).addEvent(r,"mouseout",o(this,ai).mouseout,!1)))),this.currentDropdownPlugin=o(this,Lt).plugins[n],(d=this.currentDropdownPlugin)==null||d.on(i),o(this,li).set("_preventBlur",!0)}dropdownOff(){var e,t,i,n;T(this,lr,bc).call(this),T(this,$n,Ir).call(this),cv(this.currentDropdownType)&&((t=(e=this.currentDropdownPlugin)==null?void 0:e.off)==null||t.call(e)),this.index=-1,this.menus=[],E(this,ci,null),E(this,Ri,null),this.currentButton=null,this.currentDropdown&&(this.currentDropdownName="",this.currentDropdownType="",this.currentDropdown.style.display="none",this.currentDropdown=null,this.currentDropdownActiveButton&&h.utils.removeClass(this.currentDropdownActiveButton.parentElement.children,"on"),this.currentDropdownActiveButton=null,o(this,Lt).ui.preventToolbarHide(!1),(n=(i=o(this,Vi).get("menuTray")).hidePopover)==null||n.call(i)),o(this,li).set("_preventBlur",!1),this.currentDropdownPlugin=null;for(const r of[...o(this,ba)])r()}subscribeDropdownOff(e){return o(this,ba).add(e),()=>o(this,ba).delete(e)}dropdownShow(){this.currentButton&&this.dropdownOn(this.currentButton)}dropdownHide(){this.currentDropdown&&(this.currentDropdown.style.display="none")}containerOn(e){var i,n;T(this,$n,Ir).call(this),this.currentContainerActiveButton=e;const t=this.currentContainerName=this.currentContainerActiveButton.getAttribute("data-command");this.currentContainer=this.targetMap[t],av?T(this,Eu,vg).call(this,e,this.currentContainer):T(this,rr,Cc).call(this,e,this.currentContainer),(n=(i=o(this,Vi).get("menuTray")).showPopover)==null||n.call(i),E(this,nr,o(this,Ft).addGlobalEvent("mousedown",o(this,ai).containerDown,!1)),o(this,Lt).plugins[t].on&&o(this,Lt).plugins[t].on(e),o(this,li).set("_preventBlur",!0)}containerOff(){var e,t;T(this,lr,bc).call(this),T(this,$n,Ir).call(this),this.currentContainer&&(this.currentContainerName="",this.currentContainer.style.display="none",this.currentContainer=null,h.utils.removeClass(this.currentContainerActiveButton,"on"),this.currentContainerActiveButton=null,o(this,Lt).ui.preventToolbarHide(!1),(t=(e=o(this,Vi).get("menuTray")).hidePopover)==null||t.call(e)),o(this,li).set("_preventBlur",!1)}__resetMenuPosition(e,t){o(this,Lt).offset.setRelPosition(t,o(this,va).carrierWrapper,e.parentElement,h.query.getParentElement(e,".se-toolbar"),{preferUp:o(this,li).mode.isBottom})}__restoreMenuPosition(){!o(this,ci)||!o(this,Ri)||o(this,Ii)||o(this,di)||T(this,rr,Cc).call(this,o(this,ci),o(this,Ri))}_destroy(){T(this,$n,Ir).call(this)}}Lt=new WeakMap,li=new WeakMap,va=new WeakMap,Vi=new WeakMap,Ft=new WeakMap,ai=new WeakMap,_u=new WeakMap,sr=new WeakMap,An=new WeakMap,ir=new WeakMap,nr=new WeakMap,ya=new WeakMap,Ca=new WeakMap,ci=new WeakMap,Ri=new WeakMap,di=new WeakMap,Ii=new WeakMap,or=new WeakMap,ba=new WeakMap,rr=new WeakSet,Cc=function(e,t){t.style.visibility="hidden",t.style.display="block",t.style.height="",h.utils.addClass(e.parentElement.children,"on"),o(this,Lt).offset.setRelPosition(t,o(this,va).carrierWrapper,e.parentElement,h.query.getParentElement(e,".se-toolbar"),{preferUp:o(this,li).mode.isBottom}),t.style.visibility="",E(this,ci,e),E(this,Ri,t)},Eu=new WeakSet,vg=function(e,t){T(this,lr,bc).call(this),t.style.display="none",h.utils.addClass(e.parentElement.children,"on"),E(this,ci,e),E(this,Ri,t);let i=!1;const n=r=>{i||(i=!0,T(this,lr,bc).call(this),E(this,di,Bh.setTimeout(()=>{E(this,di,null),o(this,ci)===e&&T(this,rr,Cc).call(this,e,t)},r)))};o(this,or)&&(E(this,Ii,()=>n(10)),o(this,or).addEventListener("resize",o(this,Ii),{once:!0})),E(this,di,Bh.setTimeout(()=>n(0),50))},lr=new WeakSet,bc=function(){var e;o(this,di)&&(Bh.clearTimeout(o(this,di)),E(this,di,null)),o(this,Ii)&&((e=o(this,or))==null||e.removeEventListener("resize",o(this,Ii)),E(this,Ii,null))},bp=new WeakSet,KC=function(e){const t=h.query.getParentElement(e,".se-more-layer");return t&&t.style.display!=="block"&&t.getAttribute("data-ref")?t:null},ar=new WeakSet,wc=function(e){h.utils.removeClass(this.currentDropdown,"se-select-menu-mouse-move"),h.utils.addClass(this.currentDropdown,"se-select-menu-key-action"),e=this.index+e;const t=this.menus.length,i=this.index=e>=t?0:e<0?t-1:e;for(let n=0;n<t;n++)n===i?h.utils.addClass(this.menus[n],"on"):h.utils.removeClass(this.menus[n],"on")},$n=new WeakSet,Ir=function(){o(this,sr)&&E(this,sr,o(this,Ft).removeGlobalEvent(o(this,sr))),o(this,ir)&&E(this,ir,o(this,Ft).removeGlobalEvent(o(this,ir))),o(this,nr)&&E(this,nr,o(this,Ft).removeGlobalEvent(o(this,nr))),o(this,An)&&(E(this,An,o(this,Ft).removeGlobalEvent(o(this,An))),o(this,ya)&&E(this,ya,o(this,Ft).removeEvent(o(this,ya))),o(this,Ca)&&E(this,Ca,o(this,Ft).removeEvent(o(this,Ca))),h.utils.removeClass(this.menus,"on"),h.utils.removeClass(this.currentDropdown,"se-select-menu-key-action|se-select-menu-mouse-move"))},wp=new WeakSet,XC=function(e){const t=h.query.getEventTarget(e);h.query.getParentElement(t,".se-dropdown")||this.dropdownOff()},kp=new WeakSet,QC=function(){this.index=-1},_p=new WeakSet,JC=function(e){switch(e.code){case"ArrowUp":e.preventDefault(),e.stopPropagation(),T(this,ar,wc).call(this,-1);break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),T(this,ar,wc).call(this,1);break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),T(this,ar,wc).call(this,-1);break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),T(this,ar,wc).call(this,1);break;case"Enter":case"Space":{if(this.index<0)break;const i=this.menus[this.index];if(!i||typeof o(this,Lt).plugins[this.currentDropdownName].action!="function")return;e.preventDefault(),e.stopPropagation(),o(this,Lt).plugins[this.currentDropdownName].action(i),this.dropdownOff();break}}},Ep=new WeakSet,e5=function(e){var t;xe.isEsc(e.code)&&((t=o(this,Lt).ui.opendControllers)!=null&&t.some(({form:i})=>i&&h.utils.hasClass(i,"se-dropdown"))||(e.preventDefault(),e.stopPropagation(),this.dropdownOff()))},Tp=new WeakSet,t5=function(e){h.utils.addClass(this.currentDropdown,"se-select-menu-mouse-move"),h.utils.removeClass(this.currentDropdown,"se-select-menu-key-action");const t=this.menus.indexOf(e.target);t!==-1&&(this.index=t*1)};function cv(s){return/free$/.test(s)}function TA(s,e={}){let t="";for(let i=0,n=s.length;i<n;i++){const r=s[i];let a="";if(r.attrs){const c=Object.keys(r.attrs);for(let d=0;d<c.length;d++)a+=` ${c[d]}="${r.attrs[c[d]]}"`}t+=`
|
|
116
|
-
<li>
|
|
117
|
-
<button type="button" class="se-btn se-btn-list${r.className?" "+r.className:""}" data-command="${r.command}"${r.value!==void 0?` data-value="${r.value}"`:""} title="${r.title}" aria-label="${r.title}"${a}>${r.innerHTML}</button>
|
|
118
|
-
</li>`}return h.utils.createElement("DIV",{class:"se-dropdown se-list-layer"+(e.className?" "+e.className:"")},`<div class="se-list-inner"><ul class="se-list-basic">${e.prependHTML||""}${t}</ul></div>`)}const SA=EA,{_w:Dr,_d:Xi}=me;var wa,te,ze,On,Tu,Su,hs,je,Ce,mt,cr,xu,Mu,Bu,Nu,Lu,Au,$u,Ou,Vu,Ru,Iu,Du,Vn,ka,Pu,Hu,dr,Fu,Sp,s5,xp,i5,Mp,n5,Bp,o5,Wu,yg;class xA{constructor(e){b(this,Sp);b(this,xp);b(this,Mp);b(this,Bp);b(this,Wu);b(this,wa,void 0);b(this,te,void 0);b(this,ze,void 0);b(this,On,void 0);b(this,Tu,void 0);b(this,Su,void 0);b(this,hs,void 0);b(this,je,void 0);b(this,Ce,void 0);b(this,mt,void 0);b(this,cr,void 0);b(this,xu,void 0);b(this,Mu,"");b(this,Bu,"");b(this,Nu,"");b(this,Lu,"");b(this,Au,"");b(this,$u,"");b(this,Ou,"");b(this,Vu,"");b(this,Ru,"");b(this,Iu,"");b(this,Du,"");b(this,Vn,0);b(this,ka,!1);b(this,Pu,!1);b(this,Hu,!1);b(this,dr,null);b(this,Fu,"");E(this,wa,e),E(this,te,e.$),E(this,ze,e.store),E(this,On,o(this,te).icons),E(this,Tu,o(this,te).lang),E(this,Su,o(this,te).frameRoots),E(this,hs,o(this,te).context),E(this,je,o(this,te).frameContext),E(this,Ce,o(this,te).options),E(this,mt,o(this,te).frameOptions),E(this,cr,o(this,te).eventManager),E(this,xu,new RegExp(`^(${o(this,Ce).get("_disallowedExtraTag")})$`,"i"))}codeView(e){const t=o(this,je);if(!t.get("codeWrapper")||(e===void 0&&(e=!t.get("isCodeView")),e===t.get("isCodeView")))return;e&&t.get("isMarkdownView")&&this.markdownView(!1),t.set("isCodeView",e),o(this,te).ui.offCurrentController(),o(this,te).ui.offCurrentModal();const i=t.get("codeWrapper"),n=t.get("code"),r=t.get("wysiwygFrame"),a=t.get("wrapper");e?(o(this,te).finder.close(),T(this,xp,i5).call(this),i.style.setProperty("display","flex","important"),r.style.display="none",t.get("isFullScreen")?n.style.height="100%":o(this,mt).get("height")==="auto"&&!o(this,Ce).get("hasCodeMirror")&&(n.style.height=n.scrollHeight>0?n.scrollHeight+"px":"auto"),o(this,Ce).get("hasCodeMirror")&&this._codeMirrorEditor("refresh",null,null),t.get("isFullScreen")||(o(this,te).ui.preventToolbarHide(!0),o(this,ze).mode.isBalloon&&(o(this,hs).get("toolbar_arrow").style.display="none",o(this,hs).get("toolbar_main").style.left="",o(this,ze).mode.isInline=o(this,te).toolbar.isInlineMode=!0,o(this,ze).mode.isBalloon=o(this,te).toolbar.isBalloonMode=!1,o(this,te).toolbar._showInline())),o(this,ze).mode.isBalloon&&o(this,te).subToolbar.hide(),dv(t),o(this,ze).set("_range",null),n.focus(),h.utils.addClass(o(this,te).commandDispatcher.targets.get("codeView"),"active"),h.utils.addClass(a,"se-source-view-status")):(h.check.isNonEditable(r)||T(this,Sp,s5).call(this),r.scrollTop=0,i.style.setProperty("display","none","important"),r.style.display="block",o(this,mt).get("height")==="auto"&&!o(this,Ce).get("hasCodeMirror")&&(t.get("code").style.height="0px"),t.get("isFullScreen")||(o(this,te).ui.preventToolbarHide(!1),/balloon/.test(o(this,Ce).get("mode"))&&(o(this,hs).get("toolbar_arrow").style.display="",o(this,ze).mode.isInline=o(this,te).toolbar.isInlineMode=!1,o(this,ze).mode.isBalloon=o(this,te).toolbar.isBalloonMode=!0,o(this,wa)._eventOrchestrator._hideToolbar())),o(this,te).focusManager.nativeFocus(),h.utils.removeClass(o(this,te).commandDispatcher.targets.get("codeView"),"active"),h.check.isNonEditable(r)||(o(this,te).history.push(!1),o(this,te).history.resetButtons(t.get("key"),null)),h.utils.removeClass(a,"se-source-view-status")),o(this,te).ui._updatePlaceholder(t),o(this,te).ui._toggleCodeViewButtons(e),t.has("documentType_use_header")&&(e?t.get("documentTypeInner").style.display="none":(t.get("documentTypeInner").style.display="",t.get("documentType").reHeader())),o(this,cr).triggerEvent("onToggleCodeView",{frameContext:t,is:t.get("isCodeView")})}markdownView(e){const t=o(this,je);if(!t.get("markdownWrapper")||(e===void 0&&(e=!t.get("isMarkdownView")),e===t.get("isMarkdownView")))return;e&&t.get("isCodeView")&&this.codeView(!1),t.set("isMarkdownView",e),o(this,te).ui.offCurrentController(),o(this,te).ui.offCurrentModal();const i=t.get("markdownWrapper"),n=t.get("markdown"),r=t.get("wysiwygFrame"),a=t.get("wrapper");e?(o(this,te).finder.close(),T(this,Mp,n5).call(this),i.style.setProperty("display","flex","important"),r.style.display="none",t.get("isFullScreen")?n.style.height="100%":o(this,mt).get("height")==="auto"&&(n.style.height=n.scrollHeight>0?n.scrollHeight+"px":"auto"),t.get("isFullScreen")||(o(this,te).ui.preventToolbarHide(!0),o(this,ze).mode.isBalloon&&(o(this,hs).get("toolbar_arrow").style.display="none",o(this,hs).get("toolbar_main").style.left="",o(this,ze).mode.isInline=o(this,te).toolbar.isInlineMode=!0,o(this,ze).mode.isBalloon=o(this,te).toolbar.isBalloonMode=!1,o(this,te).toolbar._showInline())),o(this,ze).mode.isBalloon&&o(this,te).subToolbar.hide(),dv(t,"markdown"),o(this,ze).set("_range",null),n.focus(),h.utils.addClass(o(this,te).commandDispatcher.targets.get("markdownView"),"active"),h.utils.addClass(a,"se-source-view-status")):(h.check.isNonEditable(r)||T(this,Bp,o5).call(this),r.scrollTop=0,i.style.setProperty("display","none","important"),r.style.display="block",o(this,mt).get("height")==="auto"&&(n.style.height="0px"),t.get("isFullScreen")||(o(this,te).ui.preventToolbarHide(!1),/balloon/.test(o(this,Ce).get("mode"))&&(o(this,hs).get("toolbar_arrow").style.display="",o(this,ze).mode.isInline=o(this,te).toolbar.isInlineMode=!1,o(this,ze).mode.isBalloon=o(this,te).toolbar.isBalloonMode=!0,o(this,wa)._eventOrchestrator._hideToolbar())),o(this,te).focusManager.nativeFocus(),h.utils.removeClass(o(this,te).commandDispatcher.targets.get("markdownView"),"active"),h.check.isNonEditable(r)||(o(this,te).history.push(!1),o(this,te).history.resetButtons(t.get("key"),null)),h.utils.removeClass(a,"se-source-view-status")),o(this,te).ui._updatePlaceholder(t),o(this,te).ui._toggleCodeViewButtons(e),t.has("documentType_use_header")&&(e?t.get("documentTypeInner").style.display="none":(t.get("documentTypeInner").style.display="",t.get("documentType").reHeader())),o(this,cr).triggerEvent("onToggleMarkdownView",{frameContext:t,is:t.get("isMarkdownView")})}fullScreen(e){const t=o(this,je);if(e===void 0&&(e=!t.get("isFullScreen")),e===t.get("isFullScreen"))return;t.set("isFullScreen",e);const i=t.get("topArea"),n=o(this,hs).get("toolbar_main"),r=t.get("wrapper"),a=t.get("wysiwygFrame"),c=t.get("codeWrapper"),d=t.get("code"),u=t.get("codeNumbers"),f=t.get("markdownWrapper"),p=t.get("markdown"),m=t.get("markdownNumbers"),g=o(this,je).get("isCodeView"),y=o(this,je).get("isMarkdownView"),v=o(this,hs).get("toolbar_arrow");o(this,te).ui.offCurrentController();const C=n.style.display==="none"||o(this,ze).mode.isInline&&!o(this,te).toolbar.inlineToolbarAttr.isShow;if(e){E(this,Fu,i.style.cssText),E(this,Bu,r.style.cssText),E(this,Nu,a.style.cssText),E(this,Lu,c==null?void 0:c.style.cssText),E(this,Au,d.style.cssText),E(this,$u,u==null?void 0:u.style.cssText),E(this,Ou,f==null?void 0:f.style.cssText),E(this,Vu,p==null?void 0:p.style.cssText),E(this,Ru,m==null?void 0:m.style.cssText),E(this,Iu,n.style.cssText),v&&E(this,Du,v.style.cssText),(o(this,ze).mode.isBalloon||o(this,ze).mode.isInline)&&(v&&(v.style.display="none"),E(this,Hu,o(this,ze).mode.isInline),E(this,Pu,o(this,ze).mode.isBalloon),o(this,ze).mode.isInline=o(this,te).toolbar.isInlineMode=!1,o(this,ze).mode.isBalloon=o(this,te).toolbar.isBalloonMode=!1),o(this,Ce).get("toolbar_container")&&(E(this,dr,n.parentElement),t.get("container").insertBefore(n,r)),i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.maxWidth="100%",i.style.height="100%",i.style.zIndex="2147483639",t.get("_stickyDummy").style.display!=="none"&&t.get("_stickyDummy").style.display!==""&&(E(this,ka,!0),t.get("_stickyDummy").style.display="none",h.utils.removeClass(n,"se-toolbar-sticky")),E(this,Mu,Xi.body.style.overflow),Xi.body.style.overflow="hidden",r.style.cssText=n.style.cssText="",a.style.cssText=(a.style.cssText.match(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/)||[""])[0]+o(this,mt).get("_defaultStyles").editor+(g||y?"display: none;":""),c&&(c.style.cssText=(c.style.cssText.match(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/)||[""])[0]+`display: ${g?"flex":"none"} !important;`,c.style.overflow="auto",c.style.height="100%"),f&&(f.style.cssText=(f.style.cssText.match(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/)||[""])[0]+`display: ${y?"flex":"none"} !important;`,f.style.overflow="auto",f.style.height="100%"),d.style.height="",p&&(p.style.height=""),n.style.width=a.style.height="100%",n.style.position="relative",n.style.display="block",E(this,Vn,Dr.innerHeight-n.offsetHeight),r.style.height=o(this,Vn)-(t.has("statusbar")?t.get("statusbar").offsetHeight:0)-o(this,Ce).get("fullScreenOffset")+"px",o(this,mt).get("iframe")&&o(this,mt).get("height")==="auto"&&(r.style.overflow="auto",o(this,te).ui._iframeAutoHeight(t)),t.get("topArea").style.marginTop=o(this,Ce).get("fullScreenOffset")+"px";const w=o(this,On).reduction;o(this,te).commandDispatcher.applyTargets("fullScreen",k=>{h.utils.changeElement(k.firstElementChild,w),h.utils.addClass(k,"active")})}else{a.style.cssText=o(this,Nu).replace(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/,"")+(g||y?"display: none;":""),c&&(c.style.cssText=o(this,Lu).replace(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/,"")+`display: ${g?"flex":"none"} !important;`),d.style.cssText=o(this,Au),u&&(u.style.cssText=o(this,$u)),f&&(f.style.cssText=o(this,Ou).replace(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/,"")+`display: ${y?"flex":"none"} !important;`),p&&(p.style.cssText=o(this,Vu)),m&&(m.style.cssText=o(this,Ru)),n.style.cssText=o(this,Iu),r.style.cssText=o(this,Bu),i.style.cssText=o(this,Fu),v&&(v.style.cssText=o(this,Du)),Xi.body.style.overflow=o(this,Mu),o(this,mt).get("height")==="auto"&&!o(this,Ce).get("hasCodeMirror")&&this._codeViewAutoHeight(t.get("code"),t.get("codeNumbers"),!0),o(this,dr)&&(o(this,dr).appendChild(n),E(this,dr,null)),o(this,Ce).get("_toolbar_sticky")>-1&&h.utils.removeClass(n,"se-toolbar-sticky"),o(this,ka)&&!o(this,Ce).get("toolbar_container")&&(E(this,ka,!1),t.get("_stickyDummy").style.display="block",h.utils.addClass(n,"se-toolbar-sticky")),o(this,ze).mode.isInline=o(this,te).toolbar.isInlineMode=o(this,Hu),o(this,ze).mode.isBalloon=o(this,te).toolbar.isBalloonMode=o(this,Pu),t.get("isCodeView")||(o(this,ze).mode.isInline?o(this,te).toolbar._showInline():o(this,ze).mode.isBalloon&&o(this,te).toolbar._showBalloon()),o(this,te).toolbar._resetSticky(),t.get("topArea").style.marginTop="";const w=o(this,On).expansion;o(this,te).commandDispatcher.applyTargets("fullScreen",k=>{h.utils.changeElement(k.firstElementChild,w),h.utils.removeClass(k,"active")})}C&&!t.get("isCodeView")&&!t.get("isMarkdownView")&&o(this,te).toolbar.hide(),o(this,cr).triggerEvent("onToggleFullScreen",{frameContext:t,is:t.get("isFullScreen")})}showBlocks(e){const t=o(this,je);e===void 0&&(e=!t.get("isShowBlocks")),t.set("isShowBlocks",!!e),e?(h.utils.addClass(t.get("wysiwyg"),"se-show-block"),h.utils.addClass(o(this,te).commandDispatcher.targets.get("showBlocks"),"active")):(h.utils.removeClass(t.get("wysiwyg"),"se-show-block"),h.utils.removeClass(o(this,te).commandDispatcher.targets.get("showBlocks"),"active")),o(this,te).ui._syncFrameState(t)}_setButtonsActive(){const e=o(this,je);if(e.get("isCodeView")?h.utils.addClass(o(this,te).commandDispatcher.targets.get("codeView"),"active"):h.utils.removeClass(o(this,te).commandDispatcher.targets.get("codeView"),"active"),e.get("isFullScreen")){const t=o(this,On).reduction;o(this,te).commandDispatcher.applyTargets("fullScreen",i=>{h.utils.changeElement(i.firstElementChild,t),h.utils.addClass(i,"active")})}else{const t=o(this,On).expansion;o(this,te).commandDispatcher.applyTargets("fullScreen",i=>{h.utils.changeElement(i.firstElementChild,t),h.utils.removeClass(i,"active")})}e.get("isMarkdownView")?h.utils.addClass(o(this,te).commandDispatcher.targets.get("markdownView"),"active"):h.utils.removeClass(o(this,te).commandDispatcher.targets.get("markdownView"),"active"),e.get("isShowBlocks")?h.utils.addClass(o(this,te).commandDispatcher.targets.get("showBlocks"),"active"):h.utils.removeClass(o(this,te).commandDispatcher.targets.get("showBlocks"),"active")}print(){const e=h.utils.createElement("IFRAME",{style:"display: none;"});Xi.body.appendChild(e);const t=Dr.getComputedStyle(o(this,je).get("wysiwyg")).padding,i=o(this,Ce).get("printTemplate")?o(this,Ce).get("printTemplate").replace(/\{\{\s*contents\s*\}\}/i,o(this,te).html.get()):o(this,te).html.get(),n=h.query.getIframeDocument(e),r=o(this,je).get("_wd"),a=o(this,Ce).get("_rtl")?" se-rtl":"",c=(o(this,Ce).get("_themeClass")||"").trim(),d=f=>c?f.replace(c,"").trim():f,u=`
|
|
119
|
-
<style>
|
|
120
|
-
@page {
|
|
121
|
-
size: A4;
|
|
122
|
-
margin: ${t};
|
|
123
|
-
}
|
|
124
|
-
</style>`;if(o(this,mt).get("iframe")){const f=o(this,Ce).get("printClass")?'class="'+d(o(this,Ce).get("printClass"))+a+'"':o(this,mt).get("iframe_fullPage")?h.utils.getAttributesToString(r.body,["contenteditable"]).replace(c,""):'class="'+d(o(this,Ce).get("_editableClass"))+a+'"';n.write(`
|
|
125
|
-
<!DOCTYPE html>
|
|
126
|
-
<html>
|
|
127
|
-
<head>
|
|
128
|
-
${r.head.innerHTML}
|
|
129
|
-
${u}
|
|
130
|
-
</head>
|
|
131
|
-
<body ${f} style="padding: 0; padding-left: 0; padding-top: 0; padding-right: 0; padding-bottom: 0;">
|
|
132
|
-
${i}
|
|
133
|
-
</body>
|
|
134
|
-
</html>`)}else{const f=Xi.head.getElementsByTagName("link"),p=Xi.head.getElementsByTagName("style");let m="";for(let g=0,y=f.length;g<y;g++)m+=f[g].outerHTML;for(let g=0,y=p.length;g<y;g++)m+=p[g].outerHTML;n.write(`
|
|
135
|
-
<!DOCTYPE html>
|
|
136
|
-
<html>
|
|
137
|
-
<head>
|
|
138
|
-
${m}
|
|
139
|
-
${u}
|
|
140
|
-
</head>
|
|
141
|
-
<body class="${d(o(this,Ce).get("printClass")||o(this,Ce).get("_editableClass"))+a}" style="padding: 0; padding-left: 0; padding-top: 0; padding-right: 0; padding-bottom: 0;">
|
|
142
|
-
${i}
|
|
143
|
-
</body>
|
|
144
|
-
</html>`)}o(this,te).ui.showLoading(),Dr.setTimeout(()=>{try{if(e.focus(),me.isEdge||me.isChromium||"StyleMedia"in me._w)try{e.contentWindow.document.execCommand("print",!1,null)}catch(f){console.warn("[SUNEDITOR.print.warn]",f),e.contentWindow.print()}else e.contentWindow.print()}catch(f){throw Error(`[SUNEDITOR.print.fail] error: ${f.message}`)}finally{o(this,te).ui.hideLoading(),h.utils.removeItem(e)}},1e3)}preview(){o(this,te).menu.dropdownOff(),o(this,te).menu.containerOff(),o(this,te).ui.offCurrentController(),o(this,te).ui.offCurrentModal();const e=o(this,Ce).get("previewTemplate")?o(this,Ce).get("previewTemplate").replace(/\{\{\s*contents\s*\}\}/i,o(this,te).html.get({withFrame:!0})):o(this,te).html.get({withFrame:!0}),t=Dr.open("","_blank"),i=o(this,je).get("_wd"),n=o(this,Ce).get("_rtl")?" se-rtl":"";if(o(this,mt).get("iframe")){const r=o(this,Ce).get("printClass")?'class="'+o(this,Ce).get("printClass")+n+'"':o(this,mt).get("iframe_fullPage")?h.utils.getAttributesToString(i.body,["contenteditable"]):'class="'+o(this,Ce).get("_editableClass")+n+'"';t.document.write(`<!DOCTYPE html>
|
|
145
|
-
<html>
|
|
146
|
-
<head>
|
|
147
|
-
${i.head.innerHTML}
|
|
148
|
-
<style>
|
|
149
|
-
body {overflow:auto !important; height:auto !important;}
|
|
150
|
-
</style>
|
|
151
|
-
</head>
|
|
152
|
-
<body ${r}>
|
|
153
|
-
${e}
|
|
154
|
-
</body>
|
|
155
|
-
</html>`)}else{const r=Xi.head.getElementsByTagName("link"),a=Xi.head.getElementsByTagName("style");let c="";for(let d=0,u=r.length;d<u;d++)c+=r[d].outerHTML;for(let d=0,u=a.length;d<u;d++)c+=a[d].outerHTML;t.document.write(`<!DOCTYPE html>
|
|
156
|
-
<html>
|
|
157
|
-
<head>
|
|
158
|
-
<meta charset="utf-8" />
|
|
159
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
160
|
-
<title>${o(this,Tu).preview}</title>
|
|
161
|
-
${c}
|
|
162
|
-
</head>
|
|
163
|
-
<body class="${(o(this,Ce).get("printClass")?o(this,Ce).get("printClass"):o(this,Ce).get("_editableClass"))+n}" style="height:auto">
|
|
164
|
-
${e}
|
|
165
|
-
</body>
|
|
166
|
-
</html>`)}}_resetFullScreenHeight(){if(o(this,je).get("isFullScreen"))return E(this,Vn,o(this,Vn)+(Dr.innerHeight-o(this,hs).get("toolbar_main").offsetHeight-(o(this,je).has("statusbar")?o(this,je).get("statusbar").offsetHeight:0)-o(this,Vn))),o(this,je).get("wrapper").style.height=o(this,Vn)+"px",!0}_codeMirrorEditor(e,t,i){const n=i?o(this,Su).get(i).get("options"):o(this,mt);switch(e){case"set":n.get("codeMirrorEditor").getDoc().setValue(t);break;case"get":return n.get("codeMirrorEditor").getDoc().getValue();case"readonly":n.get("codeMirrorEditor").setOption("readOnly",t);break;case"refresh":n.get("codeMirrorEditor").refresh();break}}_setCodeView(e){o(this,Ce).get("hasCodeMirror")?this._codeMirrorEditor("set",e,null):o(this,je).get("code").value=e}_getCodeView(){return o(this,Ce).get("hasCodeMirror")?this._codeMirrorEditor("get",null,null):o(this,je).get("code").value}_codeViewAutoHeight(e,t,i){i&&(e.style.height=e.scrollHeight+"px"),T(this,Wu,yg).call(this,t,e)}_scrollLineNumbers(e){e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft}_markdownViewAutoHeight(e,t,i){i&&(e.style.height=e.scrollHeight+"px"),T(this,Wu,yg).call(this,t,e)}_scrollMarkdownLineNumbers(e){e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft}_destroy(){}}wa=new WeakMap,te=new WeakMap,ze=new WeakMap,On=new WeakMap,Tu=new WeakMap,Su=new WeakMap,hs=new WeakMap,je=new WeakMap,Ce=new WeakMap,mt=new WeakMap,cr=new WeakMap,xu=new WeakMap,Mu=new WeakMap,Bu=new WeakMap,Nu=new WeakMap,Lu=new WeakMap,Au=new WeakMap,$u=new WeakMap,Ou=new WeakMap,Vu=new WeakMap,Ru=new WeakMap,Iu=new WeakMap,Du=new WeakMap,Vn=new WeakMap,ka=new WeakMap,Pu=new WeakMap,Hu=new WeakMap,dr=new WeakMap,Fu=new WeakMap,Sp=new WeakSet,s5=function(){const e=this._getCodeView();if(o(this,mt).get("iframe_fullPage")){const t=o(this,je).get("_wd"),i=new DOMParser().parseFromString(e,"text/html");if(!o(this,xu).test("script")){const a=i.head.children;for(let c=0,d=a.length;c<d;c++)/^script$/i.test(a[c].tagName)&&(i.head.removeChild(a[c]),c--,d--)}let n=i.head.innerHTML;(!i.head.querySelector('link[rel="stylesheet"]')||o(this,mt).get("height")==="auto"&&!i.head.querySelector("style"))&&(n+=Se._setIframeStyleLinks(o(this,mt).get("iframe_cssFileName"))+Se._setAutoHeightStyle(o(this,mt).get("height"))),t.head.innerHTML=n,t.body.innerHTML=o(this,te).html.clean(i.body.innerHTML,{forceFormat:!0,whitelist:null,blacklist:null,_freeCodeViewMode:o(this,Ce).get("freeCodeViewMode")});const r=i.body.attributes;for(let a=0,c=r.length;a<c;a++)r[a].name!=="contenteditable"&&t.body.setAttribute(r[a].name,r[a].value);if(!h.utils.hasClass(t.body,"sun-editor-editable")){const a=o(this,Ce).get("_editableClass").split(" ");for(let c=0;c<a.length;c++)h.utils.addClass(t.body,a[c])}}else o(this,je).get("wysiwyg").innerHTML=e.length>0?o(this,te).html.clean(e,{forceFormat:!0,whitelist:null,blacklist:null,_freeCodeViewMode:o(this,Ce).get("freeCodeViewMode")}):"<"+o(this,Ce).get("defaultLine")+"><br></"+o(this,Ce).get("defaultLine")+">"},xp=new WeakSet,i5=function(){const e=o(this,te).html._convertToCode(o(this,je).get("wysiwyg"),!1);let t="";if(o(this,mt).get("iframe_fullPage")){const i=h.utils.getAttributesToString(o(this,je).get("_wd").body,null);t=`<!DOCTYPE html>
|
|
167
|
-
<html>
|
|
168
|
-
`+o(this,je).get("_wd").head.outerHTML.replace(/>(?!\n)/g,`>
|
|
169
|
-
`)+"<body "+i+`>
|
|
170
|
-
`+e+`</body>
|
|
171
|
-
</html>`}else t=e;this._setCodeView(t)},Mp=new WeakSet,n5=function(){const e=Se.htmlToJson(o(this,je).get("wysiwyg").innerHTML),t=l1.jsonToMarkdown(e);o(this,je).get("markdown").value=t},Bp=new WeakSet,o5=function(){const e=o(this,je).get("markdown").value,t=l1.markdownToHtml(e,o(this,Ce).get("defaultLine"));o(this,je).get("wysiwyg").innerHTML=t.length>0?o(this,te).html.clean(t,{forceFormat:!0,whitelist:null,blacklist:null}):"<"+o(this,Ce).get("defaultLine")+"><br></"+o(this,Ce).get("defaultLine")+">"},Wu=new WeakSet,yg=function(e,t){if(!e)return;const i=(t.value.match(/\n/g)||[]).length+1,n=(e.value.match(/\n/g)||[]).length;if(i!==n){let r="";for(let a=1;a<=i;a++)r+=`${a}
|
|
172
|
-
`;e.value=r}};function dv(s,e){const t=e==="markdown"?"markdownNumbers":"codeNumbers",i=e==="markdown"?"markdown":"code",n=s.get(t);if(!n)return;const r=s.get(i),a=(r.value.match(/\n/g)||[]).length+1;let c="";for(let u=1;u<=a;u++)c+=`${u}
|
|
173
|
-
`;const d=Dr.getComputedStyle(r);n.style.lineHeight=d.lineHeight,n.style.fontSize=d.fontSize,n.style.fontFamily=d.fontFamily,n.style.paddingTop=d.paddingTop,n.style.paddingBottom=d.paddingBottom,n.value=c}const MA=xA,{_d:c0,_w:BA}=me;var Ne,Di,At,Tt,ui,_a,zu,ju,Uu,qu,Ea,Ta,Sa,xa,xs,Zu,Ge,it,fs,$t,ur,hi,hr,Rn,Ma,Ba,In,Dn,Gu,Np,r5,Yu,bg,Lp,l5,Na,zh,Ap,a5,La,jh,$p,c5,Op,d5,Vp,u5,Rp,h5,Ip,f5,Ku,wg,ps,Ls,Aa,Uh,Dp,p5,Pp,m5,Xu,kg,Hp,g5,Fp,v5,Qu,_g,Wp,y5,Ju,Eg,fr,kc,$a,qh,pr,_c,Oa,Zh,eh,Tg,th,Sg,mr,Ec,zp,C5;const oo=class oo{constructor(e){b(this,Yu);b(this,Lp);b(this,Na);b(this,Ap);b(this,La);b(this,$p);b(this,Op);b(this,Vp);b(this,Rp);b(this,Ip);b(this,Ku);b(this,ps);b(this,Aa);b(this,Dp);b(this,Pp);b(this,Xu);b(this,Hp);b(this,Fp);b(this,Qu);b(this,Wp);b(this,Ju);b(this,fr);b(this,$a);b(this,pr);b(this,Oa);b(this,eh);b(this,th);b(this,mr);b(this,zp);b(this,Ne,void 0);b(this,Di,void 0);b(this,At,void 0);b(this,Tt,void 0);b(this,ui,void 0);b(this,_a,void 0);b(this,zu,void 0);b(this,ju,void 0);b(this,Uu,void 0);b(this,qu,void 0);b(this,Ea,void 0);b(this,Ta,void 0);b(this,Sa,void 0);b(this,xa,void 0);b(this,xs,!1);b(this,Zu,!0);b(this,Ge,[]);b(this,it,-1);b(this,fs,"");b(this,$t,{matchCase:!1,wholeWord:!1,regex:!1});b(this,ur,void 0);b(this,hi,[]);b(this,hr,null);b(this,Rn,null);b(this,Ma,null);b(this,Ba,null);b(this,In,null);b(this,Dn,!1);if(E(this,Ne,e.$),E(this,Di,e.store),E(this,ur,!!BA.Highlight&&!!(CSS!=null&&CSS.highlights)),o(this,Ne).options.get("finder_panel")){const t=NA(o(this,Ne));E(this,At,t.panel),E(this,Tt,t.findInput),E(this,ui,t.replaceInput),E(this,_a,t.countDisplay),E(this,zu,t.replaceRow),E(this,ju,t.btnCase),E(this,Uu,t.btnWord),E(this,qu,t.btnRegex),E(this,Ea,t.btnPrev),E(this,Ta,t.btnNext),E(this,Sa,t.btnReplace),E(this,xa,t.btnReplaceAll),T(this,$p,c5).call(this);const n=o(this,Ne).frameRoots.values().next().value.get("container");if(o(this,Di).mode.isBottom){const r=o(this,Ne).context.get("toolbar_main");n.insertBefore(o(this,At),r)}else{const r=n.querySelector(".se-wrapper");n.insertBefore(o(this,At),r)}me.isResizeObserverSupported&&E(this,Ma,new ResizeObserver(()=>T(this,Yu,bg).call(this)).observe(o(this,Ne).context.get("toolbar_main")))}}get isOpen(){return o(this,xs)}open(e=!0){const t=o(this,Ne).frameContext;if(!(t.get("isCodeView")||t.get("isMarkdownView"))&&(E(this,xs,!0),h.utils.addClass(o(this,Ne).commandDispatcher.targets.get("finder"),"active"),T(this,Ap,a5).call(this),o(this,At))){o(this,Ea).disabled=!0,o(this,Ta).disabled=!0,o(this,Sa).disabled=!0,o(this,xa).disabled=!0,T(this,Yu,bg).call(this);const i=o(this,Ne).selection.get(),n=i&&!i.isCollapsed?i.toString().trim():"";h.utils.addClass(o(this,At),"se-find-replace-open"),o(this,Di).set("_preventBlur",!0),T(this,Lp,l5).call(this),e&&T(this,Ku,wg).call(this,e),n&&(o(this,Tt).value=n),o(this,Tt).focus(),o(this,Tt).select(),o(this,Tt).value&&T(this,ps,Ls).call(this)}}close(){o(this,xs)&&(E(this,xs,!1),h.utils.removeClass(o(this,Ne).commandDispatcher.targets.get("finder"),"active"),T(this,fr,kc).call(this),E(this,Ge,[]),E(this,it,-1),T(this,mr,Ec).call(this),T(this,La,jh).call(this),o(this,At)&&(h.utils.removeClass(o(this,At),"se-find-replace-open"),T(this,Na,zh).call(this),o(this,Di).set("_preventBlur",!1),o(this,Ne).focusManager.nativeFocus()))}findNext(){!o(this,xs)||o(this,Ge).length===0||(E(this,it,(o(this,it)+1)%o(this,Ge).length),T(this,pr,_c).call(this))}findPrev(){!o(this,xs)||o(this,Ge).length===0||(E(this,it,(o(this,it)-1+o(this,Ge).length)%o(this,Ge).length),T(this,pr,_c).call(this))}search(e,{matchCase:t,wholeWord:i,regex:n}={}){return o(this,xs)||this.open(),t!==void 0&&(o(this,$t).matchCase=t),i!==void 0&&(o(this,$t).wholeWord=i),n!==void 0&&(o(this,$t).regex=n),E(this,fs,e||""),o(this,Tt)&&(o(this,Tt).value=o(this,fs)),T(this,ps,Ls).call(this),o(this,Ge).length}replace(e){T(this,Oa,Zh).call(this,e)}replaceAll(e){T(this,eh,Tg).call(this,e)}get matchInfo(){return{current:o(this,it)+1,total:o(this,Ge).length}}refresh(){!o(this,xs)||!o(this,fs)||o(this,Dn)||(E(this,Dn,!0),T(this,$a,qh).call(this),E(this,hi,[]),E(this,Dn,!1),clearTimeout(o(this,Rn)),E(this,Rn,setTimeout(()=>T(this,ps,Ls).call(this),300)))}_destroy(){T(this,Na,zh).call(this),T(this,La,jh).call(this),o(this,Ma)&&E(this,Ma,o(this,Ma).disconnect()),clearTimeout(o(this,Rn))}};Ne=new WeakMap,Di=new WeakMap,At=new WeakMap,Tt=new WeakMap,ui=new WeakMap,_a=new WeakMap,zu=new WeakMap,ju=new WeakMap,Uu=new WeakMap,qu=new WeakMap,Ea=new WeakMap,Ta=new WeakMap,Sa=new WeakMap,xa=new WeakMap,xs=new WeakMap,Zu=new WeakMap,Ge=new WeakMap,it=new WeakMap,fs=new WeakMap,$t=new WeakMap,ur=new WeakMap,hi=new WeakMap,hr=new WeakMap,Rn=new WeakMap,Ma=new WeakMap,Ba=new WeakMap,In=new WeakMap,Dn=new WeakMap,Gu=new WeakMap,Np=new WeakSet,r5=function(){if(o(oo,Gu))return;E(oo,Gu,!0);const e=c0.createElement("style");e.textContent="::highlight(se-find-match){background-color:var(--se-find-match-color,rgba(255,213,0,.4));color:inherit}::highlight(se-find-current){background-color:var(--se-find-current-color,rgba(255,150,50,.7));color:inherit}",c0.head.appendChild(e)},Yu=new WeakSet,bg=function(){if(!o(this,xs)||!o(this,At))return;const e=o(this,Ne).options.get("_toolbar_sticky");o(this,Di).mode.isBottom?(o(this,At).style.top="auto",o(this,At).style.bottom=e>=0?e+o(this,Ne).context.get("toolbar_main").offsetHeight+"px":"0px"):o(this,At).style.top=e>=0?e+o(this,Ne).context.get("toolbar_main").offsetHeight+"px":"0px"},Lp=new WeakSet,l5=function(){T(this,Na,zh).call(this),E(this,Ba,o(this,Ne).eventManager.addGlobalEvent("keydown",e=>{e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),this.close())},!0))},Na=new WeakSet,zh=function(){o(this,Ba)&&E(this,Ba,o(this,Ne).eventManager.removeGlobalEvent(o(this,Ba)))},Ap=new WeakSet,a5=function(){T(this,La,jh).call(this);const e=o(this,Ne).frameContext.get("wysiwyg");E(this,In,new MutationObserver(()=>this.refresh())),o(this,In).observe(e,{childList:!0,subtree:!0,characterData:!0})},La=new WeakSet,jh=function(){o(this,In)&&(o(this,In).disconnect(),E(this,In,null))},$p=new WeakSet,c5=function(){const e=o(this,Ne).eventManager;e.addEvent(o(this,Tt),"input",T(this,Op,d5).bind(this)),e.addEvent(o(this,Tt),"keydown",T(this,Vp,u5).bind(this)),e.addEvent(o(this,ui),"keydown",T(this,Rp,h5).bind(this)),e.addEvent(o(this,At),"click",T(this,Ip,f5).bind(this)),me.isGecko&&e.addEvent(o(this,At),"mousedown",t=>{if(t.target.tagName==="BUTTON"){t.preventDefault();const i=h.query.getCommandTarget(t.target);i&&o(this,Ne).eventManager._injectActiveEvent(i)}o(this,Di).set("_preventBlur",!0)})},Op=new WeakSet,d5=function(){o(this,Ne).options.get("finder_liveSearch")&&(clearTimeout(o(this,Rn)),E(this,Rn,setTimeout(()=>T(this,ps,Ls).call(this),120)))},Vp=new WeakSet,u5=function(e){e.key==="Escape"?(e.preventDefault(),this.close()):e.key==="Enter"&&(e.preventDefault(),!o(this,Ne).options.get("finder_liveSearch")&&o(this,Tt).value!==o(this,fs)?T(this,ps,Ls).call(this):e.shiftKey?this.findPrev():this.findNext())},Rp=new WeakSet,h5=function(e){e.key==="Escape"?(e.preventDefault(),this.close()):e.key==="Enter"&&(e.preventDefault(),T(this,Oa,Zh).call(this))},Ip=new WeakSet,f5=function(e){const t=h.query.getEventTarget(e),i=h.query.getCommandTarget(t);if(!i)return;switch(e.preventDefault(),i.getAttribute("data-command")){case"prev":this.findPrev();break;case"next":this.findNext();break;case"toggle-replace":T(this,Ku,wg).call(this,!o(this,Zu));break;case"close":this.close();break;case"replace":T(this,Oa,Zh).call(this);break;case"replace-all":T(this,eh,Tg).call(this);break;case"opt-case":o(this,$t).matchCase=!o(this,$t).matchCase,h.utils.toggleClass(o(this,ju),"on",o(this,$t).matchCase),T(this,ps,Ls).call(this);break;case"opt-word":o(this,$t).wholeWord=!o(this,$t).wholeWord,h.utils.toggleClass(o(this,Uu),"on",o(this,$t).wholeWord),T(this,ps,Ls).call(this);break;case"opt-regex":o(this,$t).regex=!o(this,$t).regex,h.utils.toggleClass(o(this,qu),"on",o(this,$t).regex),T(this,ps,Ls).call(this);break}},Ku=new WeakSet,wg=function(e){E(this,Zu,e),o(this,zu).style.display=e?"":"none",h.utils.toggleClass(o(this,At).querySelector(".se-find-toggle-replace"),"on",e),e&&o(this,ui).focus()},ps=new WeakSet,Ls=function(){const e=o(this,Tt)?o(this,Tt).value:o(this,fs);if(E(this,Dn,!0),T(this,fr,kc).call(this),E(this,Ge,[]),E(this,it,-1),!e){E(this,fs,""),T(this,mr,Ec).call(this),h.utils.removeClass(o(this,Tt),"se-find-no-match");return}E(this,fs,e);const t=o(this,Ne).frameContext.get("wysiwyg");E(this,hr,T(this,zp,C5).call(this)),E(this,Ge,T(this,Aa,Uh).call(this,e,t)),o(this,Ge).length>0?(E(this,it,0),T(this,Dp,p5).call(this),T(this,pr,_c).call(this),h.utils.removeClass(o(this,Tt),"se-find-no-match")):o(this,Tt)&&h.utils.toggleClass(o(this,Tt),"se-find-no-match",e.length>0),T(this,mr,Ec).call(this),E(this,Dn,!1)},Aa=new WeakSet,Uh=function(e,t){const i=[];if(!e||!t)return i;const n=o(this,$t).matchCase?"g":"gi";let r;if(o(this,$t).regex)try{r=new RegExp(e,n)}catch{return i}else{const v=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=o(this,$t).wholeWord?new RegExp(`\\b${v}\\b`,n):new RegExp(v,n)}const a=o(this,hr),c=o(this,Ne).format,d=a.createTreeWalker(t,NodeFilter.SHOW_TEXT,null),u=[];let f="",p=null,m;for(;m=d.nextNode();){const v=c.getLine(m,null)||t;p&&v!==p&&(f+=`
|
|
174
|
-
`),p=v,u.push({node:m,start:f.length}),f+=m.textContent.replace(/\u00A0/g," ")}if(!f)return i;r.lastIndex=0;let g,y=0;for(;(g=r.exec(f))!==null;){if(g[0].length===0){r.lastIndex++;continue}const v=g.index,C=v+g[0].length,w=a.createRange();let k=!1;for(let _=y;_<u.length;_++){const M=u[_],S=M.start+M.node.textContent.length;if(!k&&v>=M.start&&v<S&&(w.setStart(M.node,v-M.start),k=!0,y=_),k&&C>M.start&&C<=S){w.setEnd(M.node,C-M.start);break}}k&&i.push(w)}return i},Dp=new WeakSet,p5=function(){if(o(this,Ge).length===0)return;const e=o(this,Ne).frameContext.get("options").get("iframe");o(this,ur)&&!e?T(this,Pp,m5).call(this):T(this,Hp,g5).call(this)},Pp=new WeakSet,m5=function(){var t;T(t=oo,Np,r5).call(t);const e=new Highlight(...o(this,Ge));CSS.highlights.set("se-find-match",e),T(this,Xu,kg).call(this)},Xu=new WeakSet,kg=function(){if(o(this,it)>=0&&o(this,it)<o(this,Ge).length){const e=new Highlight(o(this,Ge)[o(this,it)]);CSS.highlights.set("se-find-current",e)}else CSS.highlights.delete("se-find-current")},Hp=new WeakSet,g5=function(){T(this,$a,qh).call(this);const e=o(this,hr);for(let t=o(this,Ge).length-1;t>=0;t--){const i=o(this,Ge)[t],n=T(this,Fp,v5).call(this,e,i,t);for(let r=0;r<n.length;r++)o(this,hi).push(n[r])}o(this,hi).reverse(),T(this,Ju,Eg).call(this)},Fp=new WeakSet,v5=function(e,t,i){const n=t.startContainer,r=t.endContainer,a=[];if(n===r)a.push(T(this,Qu,_g).call(this,e,n,t.startOffset,t.endOffset,i));else{const c=[n];let d=n;for(;d&&d!==r;)d=T(this,Wp,y5).call(this,d,t.commonAncestorContainer),d&&c.push(d);for(let u=c.length-1;u>=0;u--){const f=c[u],p=f===n?t.startOffset:0,m=f===r?t.endOffset:f.textContent.length;p>=m||a.push(T(this,Qu,_g).call(this,e,f,p,m,i))}}return a},Qu=new WeakSet,_g=function(e,t,i,n,r){const a=i>0?t.splitText(i):t;n-i<a.textContent.length&&a.splitText(n-i);const c=e.createElement("mark");return c.className="se-find-mark",c.setAttribute("data-se-find-idx",String(r)),a.parentNode.insertBefore(c,a),c.appendChild(a),c},Wp=new WeakSet,y5=function(e,t){let i=e;for(;i;){if(i.firstChild)i=i.firstChild;else{for(;i&&!i.nextSibling;)if(i=i.parentNode,i===t)return null;if(!i)return null;i=i.nextSibling}if(i.nodeType===3)return i}return null},Ju=new WeakSet,Eg=function(){for(const e of o(this,hi))h.utils.removeClass(e,"se-find-current");if(o(this,it)>=0)for(const e of o(this,hi))e.getAttribute("data-se-find-idx")===String(o(this,it))&&h.utils.addClass(e,"se-find-current")},fr=new WeakSet,kc=function(){const e=o(this,Ne).frameContext.get("options").get("iframe");o(this,ur)&&!e&&(CSS.highlights.delete("se-find-match"),CSS.highlights.delete("se-find-current")),T(this,$a,qh).call(this)},$a=new WeakSet,qh=function(){const t=o(this,Ne).frameContext.get("wysiwyg").querySelectorAll("mark.se-find-mark");if(t.length!==0){for(const i of t){const n=i.parentNode;if(n){for(;i.firstChild;)n.insertBefore(i.firstChild,i);n.removeChild(i),n.normalize()}}E(this,hi,[])}},pr=new WeakSet,_c=function(){if(o(this,it)<0||o(this,it)>=o(this,Ge).length)return;const e=o(this,Ne).frameContext.get("options").get("iframe");if(o(this,ur)&&!e){T(this,Xu,kg).call(this);const t=o(this,Ge)[o(this,it)];o(this,Ne).selection.scrollTo(t,{behavior:"auto"})}else{T(this,Ju,Eg).call(this);const t=o(this,hi).find(i=>i.getAttribute("data-se-find-idx")===String(o(this,it)));t&&o(this,Ne).selection.scrollTo(t,{behavior:"auto",noFocus:!0})}T(this,mr,Ec).call(this)},Oa=new WeakSet,Zh=function(e){if(o(this,it)<0||o(this,Ge).length===0)return;T(this,fr,kc).call(this);const t=o(this,Ne).frameContext.get("wysiwyg"),i=T(this,Aa,Uh).call(this,o(this,fs),t);o(this,it)>=i.length||(T(this,th,Sg).call(this,i[o(this,it)],e??(o(this,ui)?o(this,ui).value:"")),o(this,Ne).history.push(!1),T(this,ps,Ls).call(this),o(this,it)>=o(this,Ge).length&&o(this,Ge).length>0&&(E(this,it,0),T(this,pr,_c).call(this)))},eh=new WeakSet,Tg=function(e){if(o(this,Ge).length===0)return;T(this,fr,kc).call(this);const t=o(this,Ne).frameContext.get("wysiwyg"),i=T(this,Aa,Uh).call(this,o(this,fs),t);if(i.length!==0){e=e??(o(this,ui)?o(this,ui).value:"");for(let n=i.length-1;n>=0;n--)T(this,th,Sg).call(this,i[n],e);t.normalize(),o(this,Ne).history.push(!1),T(this,ps,Ls).call(this)}},th=new WeakSet,Sg=function(e,t){var a,c;const i=e.startContainer,r=o(this,hr).createTextNode(t);if(i===e.endContainer){e.deleteContents(),e.insertNode(r),(a=i.parentNode)==null||a.normalize();return}e.deleteContents(),i.nodeType===3?i.parentNode&&(i.parentNode.insertBefore(r,i.nextSibling),i.parentNode.normalize()):(e.insertNode(r),(c=r.parentNode)==null||c.normalize())},mr=new WeakSet,Ec=function(){if(!o(this,At))return;const e=o(this,Ge).length>0;e?o(this,_a).textContent=`${o(this,it)+1}/${o(this,Ge).length}`:o(this,_a).textContent=o(this,fs)?"0":"",o(this,Ea).disabled=!e,o(this,Ta).disabled=!e,o(this,Sa).disabled=!e,o(this,xa).disabled=!e},zp=new WeakSet,C5=function(){const e=o(this,Ne).frameContext;return e.get("options").get("iframe")?e.get("_wd"):c0},b(oo,Np),b(oo,Gu,!1);let Cg=oo;function NA({lang:s,icons:e}){const t=`
|
|
175
|
-
<div class="se-find-replace-row">
|
|
176
|
-
<div class="se-find-input-wrapper">
|
|
177
|
-
<input class="se-find-replace-input" type="text" placeholder="${s.find||"Find"}" spellcheck="false" autocomplete="off" />
|
|
178
|
-
<div class="se-find-replace-toggle">
|
|
179
|
-
<div class="se-find-replace-info">
|
|
180
|
-
<span class="se-find-replace-count"></span>
|
|
181
|
-
</div>
|
|
182
|
-
<button class="se-btn se-find-replace-btn se-find-opt-case" type="button" data-command="opt-case" title="${s.finder_matchCase}">
|
|
183
|
-
${e.match_case}
|
|
184
|
-
</button>
|
|
185
|
-
<button class="se-btn se-find-replace-btn se-find-opt-word" type="button" data-command="opt-word" title="${s.finder_wholeWord}">
|
|
186
|
-
${e.whole_word}
|
|
187
|
-
</button>
|
|
188
|
-
<button class="se-btn se-find-replace-btn se-find-opt-regex" type="button" data-command="opt-regex" title="${s.finder_regex}">
|
|
189
|
-
${e.regex}
|
|
190
|
-
</button>
|
|
191
|
-
</div>
|
|
192
|
-
</div>
|
|
193
|
-
<div class="se-find-replace-buttons">
|
|
194
|
-
<button class="se-btn se-find-replace-btn" type="button" data-command="prev" title="${s.finder_prev}
|
|
195
|
-
(${me.shiftIcon} + Enter)">
|
|
196
|
-
${e.arrow_up_small}
|
|
197
|
-
</button>
|
|
198
|
-
<button class="se-btn se-find-replace-btn" type="button" data-command="next" title="${s.finder_next}
|
|
199
|
-
(Enter)">
|
|
200
|
-
${e.arrow_down_small}
|
|
201
|
-
</button>
|
|
202
|
-
<button class="se-btn se-find-replace-btn se-find-toggle-replace" type="button" data-command="toggle-replace" title="${s.replace}">
|
|
203
|
-
${e.swap_vert}
|
|
204
|
-
</button>
|
|
205
|
-
<button class="se-btn se-find-replace-btn" type="button" data-command="close" title="${s.close}">
|
|
206
|
-
${e.cancel}
|
|
207
|
-
</button>
|
|
208
|
-
</div>
|
|
209
|
-
</div>
|
|
210
|
-
<div class="se-find-replace-row se-find-replace-row-replace">
|
|
211
|
-
<div class="se-find-input-wrapper">
|
|
212
|
-
<input class="se-find-replace-input se-replace-input" type="text" placeholder="${s.replace}" spellcheck="false" autocomplete="off" />
|
|
213
|
-
</div>
|
|
214
|
-
<div class="se-find-replace-buttons">
|
|
215
|
-
<button class="se-btn se-find-replace-btn" type="button" data-command="replace" title="${s.replace}
|
|
216
|
-
(Enter)">
|
|
217
|
-
${e.replaceText}
|
|
218
|
-
</button>
|
|
219
|
-
<button class="se-btn se-find-replace-btn" type="button" data-command="replace-all" title="${s.replaceAll}">
|
|
220
|
-
${e.relaceTextAll}
|
|
221
|
-
</button>
|
|
222
|
-
</div>
|
|
223
|
-
</div>`,i=h.utils.createElement("DIV",{class:"se-find-replace"},t);return{panel:i,findInput:i.querySelector(".se-find-replace-input"),replaceInput:i.querySelector(".se-replace-input"),countDisplay:i.querySelector(".se-find-replace-count"),replaceRow:i.querySelector(".se-find-replace-row-replace"),btnCase:i.querySelector(".se-find-opt-case"),btnWord:i.querySelector(".se-find-opt-word"),btnRegex:i.querySelector(".se-find-opt-regex"),btnPrev:i.querySelector('[data-command="prev"]'),btnNext:i.querySelector('[data-command="next"]'),btnReplace:i.querySelector('[data-command="replace"]'),btnReplaceAll:i.querySelector('[data-command="replace-all"]')}}const LA=Cg;class AA{constructor(e){Mr(this,"$");this.$=e.$}}const $A=AA,{isMobile:OA,_w:VA}=me;function RA(s){var n;const e=h.query.getEventTarget(s);let t=e;this.$.store.mode.isBalloon&&!((n=this.$.context.get("toolbar_sub_main"))!=null&&n.contains(t))&&this._hideToolbar_sub();const i=h.check.isInputElement(t);if(i?this.$.store.set("_preventBlur",!1):this.$.frameContext.get("wysiwyg").contains(this.$.selection.getNode())||this.$.focusManager.focus(),h.query.getParentElement(t,".se-dropdown"))s.stopPropagation(),this.$.ui.preventToolbarHide(!0);else{let r=t.getAttribute("data-command"),a=t.className;for(;t&&!r&&!/(se-menu-list|sun-editor-common|se-menu-tray)/.test(a);)t=t.parentElement,r=t.getAttribute("data-command"),a=t.className;if(i&&/^INPUT$/i.test(t==null?void 0:t.getAttribute("data-type"))){if(this.$.store.set("_preventBlur",!0),this._inputFocus=!0,this.$.store.get("hasFocus")||this.applyTagEffect(),!h.check.isInputElement(e)||e.disabled)return;const c=this.$.plugins[r];if(!c||(this.__inputBlurEvent&&this.__removeInput(),typeof c.toolbarInputChange=="function"&&(this.__inputPlugin={obj:c,target:e,value:e.value}),this.__inputBlurEvent=this.$.eventManager.addEvent(e,"blur",d=>{if(!c.isInputActive)try{const u=e.value.trim();typeof c.toolbarInputChange=="function"&&u!==this.__inputPlugin.value&&c.toolbarInputChange({target:e,value:u,event:d})}finally{VA.setTimeout(()=>this._inputFocus=!1,0),this.__removeInput()}}),!c))return;typeof c.toolbarInputKeyDown=="function"&&(this.__inputKeyEvent=this.$.eventManager.addEvent(e,"keydown",d=>{c.toolbarInputKeyDown({target:e,event:d})}))}else if(this.__inputBlurEvent&&this.__inputPlugin){const c=this.__inputPlugin.target.value.trim();c!==this.__inputPlugin.value&&this.__inputPlugin.obj.toolbarInputChange({target:this.__inputPlugin.target,value:c,event:s}),this.__removeInput();return}else this.$.frameContext.get("isCodeView")||(OA?this.$.store.set("_preventBlur",!0):(s.preventDefault(),me.isGecko&&r&&this.$.eventManager._injectActiveEvent(t)));(r===this.$.menu.currentDropdownName||r===this.$.menu.currentContainerName)&&s.stopPropagation()}}function IA(s){const e=h.query.getEventTarget(s),t=h.query.getCommandTarget(e);if(!t)return;let i=t,n="";for(;i&&!/se-menu-tray/.test(i.className)&&!n;)i=i.parentElement,n=i==null?void 0:i.getAttribute("data-key");if(!n)return;const r=this.$.plugins[n];!r||typeof r.action!="function"||(s.stopPropagation(),r.action(t))}function DA(s){const e=h.query.getEventTarget(s);this.$.commandDispatcher.runFromTarget(e)}const{_w:c1}=me,uv=new WeakMap;async function PA(s,e){const t=h.query.getEventTarget(e);if(this.$.store.set("_mousedown",!0),this.__onDownEv&&hv.call(this),this.__onDownEv=this.$.eventManager.addGlobalEvent("mouseup",hv.bind(this)),!(s.get("isReadOnly")||h.check.isNonEditable(s.get("wysiwyg")))){if(this.$.format._isExcludeSelectionElement(t)){e.preventDefault();return}this._setSelectionSync(),c1.setTimeout(this.$.selection.init.bind(this.$.selection),0),await this.$.eventManager.triggerEvent("onMouseDown",{frameContext:s,event:e})!==!1&&await this._callPluginEventAsync("onMouseDown",{frameContext:s,event:e})!==!1&&(this.$.store.mode.isBalloon?this._hideToolbar():this.$.store.mode.isSubBalloon&&this._hideToolbar_sub(),/FIGURE/i.test(t==null?void 0:t.nodeName)&&e.preventDefault())}}function hv(){this.$.store.set("_mousedown",!1),this.__onDownEv=this.$.eventManager.removeGlobalEvent(this.__onDownEv)}async function HA(s,e){await this.$.eventManager.triggerEvent("onMouseUp",{frameContext:s,event:e})!==!1&&await this._callPluginEventAsync("onMouseUp",{frameContext:s,event:e})}async function FA(s,e){const t=h.query.getEventTarget(e);if(s.get("isReadOnly"))return e.preventDefault(),h.check.isAnchor(t)&&c1.open(t.href,t.target),!1;if(h.check.isNonEditable(s.get("wysiwyg"))||await this.$.eventManager.triggerEvent("onClick",{frameContext:s,event:e})===!1||await this._callPluginEventAsync("onClick",{frameContext:s,event:e})===!1)return;const i=this.$.component.get(t);if(i){e.preventDefault(),this.$.component.select(i.target,i.pluginName);return}if(this.$.selection.init(),e.detail===3){const c=this.$.selection.getRange();this.$.format.isLine(c.endContainer)&&c.endOffset===0&&this.$.selection.setRange(c.startContainer,c.startOffset,c.startContainer,c.startContainer.textContent.length)}const n=this.$.selection.getNode(),r=this.$.format.getLine(n,null),a=this.$.format.getBlock(n,null);if(!r&&!h.check.isNonEditable(t)&&!h.check.isList(a)){const c=this.$.selection.getRange();if(this.$.format.getLine(c.startContainer)===this.$.format.getLine(c.endContainer))if(h.check.isList(a)){e.preventDefault();const d=n.nextElementSibling,u=h.utils.createElement("LI",null,n);a.insertBefore(u,d),this.$.focusManager.focus()}else!h.check.isWysiwygFrame(n)&&!this.$.component.is(n)&&(!h.check.isTableElements(n)||h.check.isTableCell(n))&&this._setDefaultLine(this.$.format.isBlock(a)?"DIV":this.$.options.get("defaultLine"))!==null&&(e.preventDefault(),this.$.focusManager.focus())}this.$.commandDispatcher._copyFormat(),(this.$.store.mode.isBalloon||this.$.store.mode.isSubBalloon)&&c1.setTimeout(this._toggleToolbarBalloon.bind(this),0)}function WA(s,e){if(s.get("isReadOnly")||s.get("isDisabled"))return!1;let t=uv.get(s);t||(t={rafId:null,event:null},uv.set(s,t)),t.event=e,t.rafId===null&&(t.rafId=c1.requestAnimationFrame(()=>{var r;const i=t.event;if(t.rafId=null,t.event=null,!i)return;const n=h.query.getEventTarget(i);we.get("__overInfo")!==!1&&!this.$.ui.selectMenuOn&&this.$.component.hoverSelect(n),(r=this.$.ui.blockHandle)==null||r.positionForTarget(n,i.clientY),this._callPluginEvent("onMouseMove",{frameContext:s,event:i})}))}async function zA(s,e){var t;(t=this.$.ui.blockHandle)==null||t.hide(e),await this.$.eventManager.triggerEvent("onMouseLeave",{frameContext:s,event:e})!==!1&&await this._callPluginEventAsync("onMouseLeave",{frameContext:s,event:e})}const jA={"event.prevent":({ctx:s})=>s.e.preventDefault(),"event.stop":({ctx:s})=>s.e.stopPropagation(),"event.prevent.stop":({ctx:s})=>{s.e.preventDefault(),s.e.stopPropagation()},"cache.styleNode":({ports:s})=>s.styleNodeCache(),"cache.formatAttrsTemp":({ports:s},{attrs:e})=>s.formatAttrsTempCache(e),"focusManager.nativeFocus":({ports:s})=>s.focusManager.nativeFocus(),"history.push":({ports:s},e)=>s.history.push(e),"documentType.refreshHeader":({ctx:s})=>{he.setTimeout(()=>{s.fc.get("documentType").reHeader()},0)},"component.deselect":({ports:s})=>s.component.deselect(),"selection.setRange":({ports:s},{sc:e,so:t,ec:i,eo:n})=>s.selection.setRange(e,t,i,n),"format.removeBlock":({ports:s},{rangeEl:e,selectedFormats:t,newBlockElement:i,shouldDelete:n,skipHistory:r})=>s.format.removeBlock(e,{selectedFormats:t,newBlockElement:i,shouldDelete:n,skipHistory:r}),"dom.utils.removeItem":(s,{item:e})=>h.utils.removeItem(e),"select.component.fallback":({ports:s},{cmponentInfo:e})=>{s.component.select(e.target,e.pluginName)===!1&&s.focusManager.blur()}},UA={"del.format.removeAndMove":({ports:s},{container:e,formatEl:t})=>{const i=s.html.remove();if(i.commonCon!==i.container&&t.parentElement)if(t.contains(e)){const n=qA(t);s.selection.setRange(n,n.textContent.length,n,n.textContent.length)}else{const{focusNode:n,focusOffset:r}=ZA(t);s.selection.setRange(n,r,n,r)}},"backspace.brline.strip":({ctx:s,ports:e},{formatEl:t})=>{const i=s.options.get("defaultLine"),n=t.parentNode,r=h.utils.createElement(i);for(;t.firstChild&&!h.check.isBreak(t.firstChild);)r.appendChild(t.firstChild);t.firstChild&&h.check.isBreak(t.firstChild)&&t.removeChild(t.firstChild),r.firstChild||(r.innerHTML="<br>"),n.insertBefore(r,t),(!t.firstChild||!t.textContent.trim()&&!t.querySelector("br"))&&n.removeChild(t);const a=r.firstChild;e.selection.setRange(a,0,a,0)},"backspace.format.maintain":({ctx:s},{formatEl:e})=>{if(e.nodeName.toUpperCase()===s.options.get("defaultLine").toUpperCase()){e.innerHTML="<br>";const t=e.attributes;for(;t[0];)e.removeAttribute(t[0].name)}else e.parentNode.replaceChild(h.utils.createElement(s.options.get("defaultLine"),null,"<br>"),e)},"backspace.component.select":({ports:s},{selectionNode:e,range:t,fileComponentInfo:i})=>{var r;let n=null;h.check.isBreak(e)?h.utils.removeItem(e):h.check.isBreak(n=(r=t.startContainer.childNodes)==null?void 0:r[t.startOffset])&&h.utils.removeItem(n),s.component.select(i.target,i.pluginName)===!1&&s.focusManager.blur()},"backspace.component.remove":({ports:s},{isList:e,sel:t,formatEl:i,fileComponentInfo:n})=>{e&&h.utils.removeItem(t),i.textContent.length===0&&h.utils.removeItem(i),s.component.select(n.target,n.pluginName)===!1&&s.focusManager.blur()},"backspace.list.mergePrev":({ports:s},{prev:e,formatEl:t,rangeEl:i})=>{let n=e===i.parentNode?i.previousSibling:e.lastChild;n||(n=h.utils.createTextNode(Ie.zeroWidthSpace),i.parentNode.insertBefore(n,i.parentNode.firstChild));const r=n.nodeType===3?n.textContent.length:1,a=t.childNodes;let c=n,d=a[0];for(;d=a[0];)e.insertBefore(d,c.nextSibling),c=d;h.utils.removeItem(t),i.children.length===0&&h.utils.removeItem(i),s.selection.setRange(n,r,n,r)},"backspace.list.removeNested":({ports:s},{range:e})=>{s.html.remove(),e.startContainer.nodeType===3&&s.selection.setRange(e.startContainer,e.startContainer.textContent.length,e.startContainer,e.startContainer.textContent.length)},"backspace.emptyLine.mergePrev":({ports:s},{formatEl:e,prev:t})=>{h.utils.removeItem(e),fv(s,t,!0)},"backspace.brline.rowMerge":({ports:s},{rowEndBr:e,rowStartBr:t})=>{const i=t.nextSibling;i!==e&&(i==null?void 0:i.nodeType)===3&&h.check.isZeroWidth(i)&&h.utils.removeItem(i);const n=t.previousSibling;if(h.utils.removeItem(t),n&&n.nodeType===3)s.selection.setRange(n,n.textContent.length,n,n.textContent.length);else if(h.check.isBreak(n))s.selection.setRange(e,0,e,0);else{const r=e.parentNode;s.selection.setRange(r,0,r,0)}},"backspace.softBreak.merge":({ports:s},{zws:e})=>{const t=e.previousSibling,i=e.parentNode,n=t==null?void 0:t.previousSibling;h.utils.removeItem(e),t&&h.utils.removeItem(t),n?d0(s,n):i&&s.selection.setRange(i,0,i,0)},"delete.component.select":({ports:s},{formatEl:e,fileComponentInfo:t})=>{if(h.check.isListCell(e)){const i=t.container.previousSibling;h.check.isZeroWidth(i)&&h.utils.removeItem(i)}else h.check.isZeroWidth(e)&&h.utils.removeItem(e);s.component.select(t.target,t.pluginName)===!1&&s.focusManager.blur()},"delete.component.selectNext":({ports:s,ctx:e},{formatEl:t,nextEl:i})=>{if(h.check.isZeroWidth(t)&&(h.utils.removeItem(t),h.check.isTable(i))){let r=h.query.getEdgeChild(i,h.check.isTableCell,!1);r=r.firstElementChild||r,s.selection.setRange(r,0,r,0);return}const n=s.component.get(i);n?(e.e.stopPropagation(),s.component.select(n.target,n.pluginName)===!1&&s.focusManager.blur()):s.component.is(i)&&(e.e.stopPropagation(),h.utils.removeItem(i))},"delete.list.removeNested":({ports:s,ctx:e},{range:t,formatEl:i,rangeEl:n})=>{t.startContainer!==t.endContainer&&s.html.remove();const r=h.utils.arrayFind(i.children,h.check.isList)||i.nextElementSibling||n.parentElement.nextElementSibling;if(r&&(h.check.isList(r)||h.utils.arrayFind(r.children,h.check.isList))){e.e.preventDefault();let a,c;if(h.check.isList(r)){const d=r.firstElementChild;for(c=d.childNodes,a=c[0];c[0];)i.insertBefore(c[0],r);h.utils.removeItem(d)}else{for(a=r.firstChild,c=r.childNodes;c[0];)i.appendChild(c[0]);h.utils.removeItem(r)}s.selection.setRange(a,0,a,0),s.history.push(!0)}},"delete.emptyLine.mergeNext":({ports:s},{formatEl:e,next:t})=>{h.utils.removeItem(e),fv(s,t,!1)},"line.merge":({ports:s},{into:e,from:t})=>{const i=s.format,n=t.parentElement;pv(e);const r=e.lastChild;for(pv(t);t.firstChild;)e.appendChild(t.firstChild);h.utils.removeItem(t);let a=n;for(;a&&a!==e.parentElement&&i.isBlock(a)&&!i.isClosureBlock(a)&&h.check.isZeroWidth(a);){const c=a.parentElement;h.utils.removeItem(a),a=c}e.firstChild||e.appendChild(h.utils.createElement("BR")),r?d0(s,r):s.selection.setRange(e,0,e,0)},"delete.brline.rowMerge":({ports:s},{rowEndBr:e})=>{let t=e.nextSibling;(t==null?void 0:t.nodeType)===3&&h.check.isZeroWidth(t)&&(t=t.nextSibling);const i=e.parentNode;h.utils.removeItem(e),t&&(t.nodeType===3||h.check.isBreak(t))?s.selection.setRange(t,0,t,0):s.selection.setRange(i,i.childNodes.length,i,i.childNodes.length)},"delete.softBreak.merge":({ports:s},{br:e})=>{const t=e.previousSibling,i=e.parentNode,n=e.nextSibling;n&&n.nodeType===3&&h.check.isZeroWidth(n.textContent)&&h.utils.removeItem(n),h.utils.removeItem(e),t?d0(s,t):i&&s.selection.setRange(i,0,i,0)},"tab.format.indent":({ports:s,ctx:e},{range:t,formatEl:i,shift:n})=>{const r=s.format.getLines(null),a=[],c=[],d=h.check.isListCell(r[0]),u=h.check.isListCell(r.at(-1));let f={sc:t.startContainer,so:t.startOffset,ec:t.endContainer,eo:t.endOffset};for(let p=0,m=r.length,g;p<m;p++)if(g=r[p],h.check.isListCell(g)){if(!g.previousElementSibling&&!n)continue;a.push(g)}else c.push(g);if(a.length>0&&(f=s.listFormat.applyNested(a,n)),c.length>0)if(n){const p=c.length-1;for(let y=0,v;y<=p;y++){v=c[y].childNodes;for(let C=0,w=v.length,k;C<w&&(k=v[C],!!k);C++)if(!h.check.isZeroWidth(k)){/^\s{1,4}$/.test(k.textContent)?h.utils.removeItem(k):/^\s{1,4}/.test(k.textContent)&&(k.textContent=k.textContent.replace(/^\s{1,4}/,""));break}}const m=h.query.getEdgeChild(c[0],"text",!1),g=h.query.getEdgeChild(c[p],"text",!0);!d&&m&&(f.sc=m,f.so=0),!u&&g&&(f.ec=g,f.eo=g.textContent.length)}else if(c.length===1){let p=e.store.get("tabSize")+1;if(e.options.get("syncTabIndent")){const g=h.query.findTextIndexOnLine(i,t.startContainer,t.startOffset,v=>s.component.is(v)),y=s.format.isLine(i.previousElementSibling)?h.query.findTabEndIndex(i.previousElementSibling,g,2):0;y>g&&(p=y-g)}const m=h.utils.createTextNode(new Array(p).join(" "));if(!s.html.insertNode(m,{afterNode:null,skipCharCount:!1}))return!1;d||(f.sc=m,f.so=m.length),u||(f.ec=m,f.eo=m.length)}else{const p=h.utils.createTextNode(new Array(e.store.get("tabSize")+1).join(" ")),m=c.length-1;for(let v=0,C;v<=m;v++)C=c[v].firstChild,C&&(h.check.isBreak(C)?c[v].insertBefore(p.cloneNode(!1),C):C.textContent=p.textContent+C.textContent);const g=h.query.getEdgeChild(c[0],"text",!1),y=h.query.getEdgeChild(c[m],"text",!0);!d&&g&&(f.sc=g,f.so=0),!u&&y&&(f.ec=y,f.eo=y.textContent.length)}s.selection.setRange(f.sc,f.so,f.ec,f.eo)},"caret.scrollTo":({ports:s},{range:e})=>{s.caretScrollTo(e)},"enter.line.addDefault":({ports:s},{formatEl:e})=>{const i=s.format.addLineAfter(e).firstChild;s.selection.setRange(i,0,i,0)},"enter.list.addItem":({ports:s},{formatEl:e,selectionNode:t})=>{const i=h.utils.createElement("BR"),n=h.utils.createElement("LI",null,i);e.parentNode.insertBefore(n,e.nextElementSibling),n.appendChild(t.nextSibling),s.selection.setRange(i,1,i,1)},"enter.format.exitEmpty":({ports:s,ctx:e},{formatEl:t,rangeEl:i})=>{let n=null;if(h.check.isListCell(i.parentElement)){const r=t.parentNode.parentElement;i=r.parentElement;const a=h.utils.createElement("LI");a.innerHTML="<br>",h.utils.copyTagAttributes(a,t,e.options.get("lineAttrReset")),n=a,i.insertBefore(n,r.nextElementSibling)}else{let r;h.check.isTableCell(i.parentElement)?r="DIV":h.check.isList(i.parentElement)?r="LI":s.format.isLine(i.nextElementSibling)?r=i.nextElementSibling.nodeName:s.format.isLine(i.previousElementSibling)?r=i.previousElementSibling.nodeName:r=e.options.get("defaultLine"),n=h.utils.createElement(r);const a=s.format.removeBlock(i,{selectedFormats:[t],newBlockElement:null,shouldDelete:!0,skipHistory:!0});a.cc.insertBefore(n,a.sc?a.sc.nextSibling:a.cc.firstChild)}n.innerHTML="<br>",s.nodeTransform.removeAllParents(t,null,null),s.selection.setRange(n,1,n,1)},"enter.format.cleanBrAndZWS":({ports:s},{selectionNode:e,selectionFormat:t,brBlock:i,children:n,offset:r})=>{t?h.utils.removeItem(n[r-1]):h.utils.removeItem(e);const a=i.nextElementSibling,c=s.format.addLine(i,s.format.isLine(a)?a:null);h.utils.copyFormatAttributes(c,i),s.selection.setRange(c,1,c,1)},"enter.format.insertBrHtml":({ports:s},{brBlock:e,range:t,wSelection:i,offset:n})=>{s.html.insert(t.collapsed&&h.check.isBreak(t.startContainer.childNodes[t.startOffset-1])?"<br>":"<br><br>",{selectInserted:!1,skipCharCount:!0,skipCleaning:!0});let r=i.focusNode;const a=i.focusOffset;e===r&&(r=r.childNodes[a-n>1?a-1:a]),s.selection.setRange(r,1,r,1),s.setOnShortcutKey(!0)},"enter.brline.insert":({ports:s},{range:e})=>{s.selection.setRange(e.startContainer,e.startOffset,e.endContainer,e.endOffset),e.collapsed||s.html.remove();const t=h.utils.createElement("BR");s.html.insertNode(t,{afterNode:null,skipCharCount:!0}),t.nextSibling||t.parentNode.appendChild(h.utils.createElement("BR"));const i=t.nextSibling;s.selection.setRange(i,0,i,0),s.setOnShortcutKey(!0)},"enter.shift.br":({ports:s,ctx:e},{range:t})=>{const i=e.fc.get("_wd"),n=s.selection.get(),a=(n==null?void 0:n.rangeCount)>0&&e.fc.get("wysiwyg").contains(n.focusNode)?n.getRangeAt(0):t,c=i.createRange();if(c.setStart(a.startContainer,a.startOffset),c.setEnd(a.endContainer,a.endOffset),a.collapsed||(c.deleteContents(),c.collapse(!0)),c.startContainer.nodeType===1&&h.check.isBreak(c.startContainer)){const f=c.startContainer;c.setStart(f.parentNode,h.utils.getArrayIndex(f.parentNode.childNodes,f)+c.startOffset),c.collapse(!0)}const d=h.utils.createElement("BR");c.insertNode(d);const u=d.nextSibling;if(u&&u.nodeType===3&&!h.check.isZeroWidth(u.textContent))s.selection.setRange(u,0,u,0);else{const f=h.utils.createTextNode(Ie.zeroWidthSpace);d.parentNode.insertBefore(f,d.nextSibling),s.selection.setRange(f,1,f,1)}s.history.push(!1)},"enter.brline.exit":({ports:s},{brBlock:e})=>{const t=e.lastChild;t&&(h.check.isBreak(t)||h.check.isZeroWidth(t.textContent))&&h.utils.removeItem(t);const i=e.nextElementSibling,n=s.format.addLine(e,s.format.isLine(i)?i:null);h.utils.copyFormatAttributes(n,e),s.selection.setRange(n,1,n,1)},"enter.format.insertBrNode":({ports:s},{wSelection:e})=>{const t=e.focusNode.nextSibling,i=h.utils.createElement("BR");s.html.insertNode(i,{afterNode:null,skipCharCount:!0});const n=i.previousSibling,r=i.nextSibling;!h.check.isBreak(t)&&!h.check.isBreak(n)&&(!r||h.check.isZeroWidth(r))?(i.parentNode.insertBefore(i.cloneNode(!1),i),s.selection.setRange(i,1,i,1)):s.selection.setRange(r,0,r,0),s.setOnShortcutKey(!0)},"enter.format.breakAtEdge":({ports:s,ctx:e},{formatEl:t,selectionNode:i,formatStartEdge:n,formatEndEdge:r,bidiSwapped:a})=>{const c=h.utils.createElement("BR"),d=h.utils.createElement(t.nodeName,null,c);h.utils.copyTagAttributes(d,t,e.options.get("lineAttrReset"));let u=c;if(!(r&&e.options.get("lineBreakClearStyle"))){let f=i;do{if(!h.check.isBreak(f)&&f.nodeType===1){const p=f.cloneNode(!1);p.appendChild(u),u=p}f=f.parentElement}while(t!==f&&t.contains(f))}if(d.appendChild(u),t.parentNode.insertBefore(d,n&&!r?t:t.nextElementSibling),r)s.selection.setRange(c,1,c,1);else if(a)s.selection.setRange(t,1,t,1);else{const f=t.firstChild||t;s.selection.setRange(f,0,f,0)}},"enter.format.breakWithSelection":({ports:s,ctx:e},{formatEl:t,range:i,formatStartEdge:n,formatEndEdge:r})=>{const a=s.format.getLine(i.startContainer,null)!==s.format.getLine(i.endContainer,null),c=t.cloneNode(!1);c.innerHTML="<br>";const d=i.commonAncestorContainer,u=d===i.startContainer&&d===i.endContainer&&h.check.isZeroWidth(d)?{container:d,offset:i.endOffset,prevContainer:d.previousElementSibling,commonCon:d}:s.html.remove();let f=s.format.getLine(u.container,null),p=0;if(!f){h.check.isWysiwygFrame(u.container)&&(s.enterPrevent(e.e),e.fc.get("wysiwyg").appendChild(c),f=c,h.utils.copyTagAttributes(f,t,e.options.get("lineAttrReset")),s.selection.setRange(f,p,f,p));return}const m=s.format.getBlock(u.container);f=f.contains(m)?h.query.getEdgeChild(m,g=>!!s.format.getLine(g),!1):f,a?r&&!n?(f.parentNode.insertBefore(c,!u.prevContainer||u.container===u.prevContainer?f.nextElementSibling:f),f=c,p=0):(p=u.offset,n&&(f.parentNode.insertBefore(c,f),r&&(p=0))):r&&n?(f.parentNode.insertBefore(c,f),p=0):r?(f=f.parentNode.insertBefore(c,f.nextElementSibling),f=c,p=0):f=s.nodeTransform.split(u.container,u.offset,h.query.getNodeDepth(t)),s.enterPrevent(e.e),h.utils.copyTagAttributes(f,t,e.options.get("lineAttrReset")),s.selection.setRange(f,p,f,p)},"enter.format.breakAtCursor":({ports:s,ctx:e},{formatEl:t,range:i})=>{let n=null;h.check.isZeroWidth(t)?n=s.format.addLine(t,t.cloneNode(!1)):n=s.nodeTransform.split(i.endContainer,i.endOffset,h.query.getNodeDepth(t)),s.enterPrevent(e.e),h.utils.copyTagAttributes(n,t,e.options.get("lineAttrReset")),s.selection.setRange(n,0,n,0)},"enter.figcaption.exitInList":({ports:s},{formatEl:e})=>{const t=s.format.addLine(e,null);s.selection.setRange(t,0,t,0)},"keydown.input.insertNbsp":({ports:s})=>{const e=s.html.insertNode(h.utils.createTextNode(" "),{afterNode:null,skipCharCount:!0});e&&s.selection.setRange(e,e.length,e,e.length)},"keydown.input.insertZWS":({ports:s})=>{const e=h.utils.createTextNode(Ie.zeroWidthSpace);s.html.insertNode(e,{afterNode:null,skipCharCount:!0}),s.selection.setRange(e,1,e,1)}};function fv(s,e,t){const i=t?e.childNodes.length:0;s.selection.setRange(e,i,e,i)}function d0(s,e){const t=e.nodeType===3?e.textContent.length:e.childNodes.length;s.selection.setRange(e,t,e,t)}function pv(s){let e=s.lastChild;for(;e&&(h.check.isBreak(e)||e.nodeType===3&&h.check.isZeroWidth(e));){const t=e.previousSibling;h.utils.removeItem(e),e=t}}function qA(s){const e=s.lastChild,t=s.nextElementSibling;if(!t)return e;if(h.check.isZeroWidth(t))return h.utils.removeItem(t),e;const i=t.childNodes;for(;i[0];)s.appendChild(i[0]);return h.utils.removeItem(t),e}function ZA(s){var r;const e=s.childNodes,t=s.previousElementSibling;let i=e[0],n=0;if(!t)return{focusNode:i,focusOffset:n};if(h.check.isZeroWidth(t))return h.utils.removeItem(t),{focusNode:i,focusOffset:n};if(e.length>1||((r=e[0])==null?void 0:r.textContent.length)>0)for(;e[0];)t.appendChild(e[0]);else i=t.lastChild,n=i.textContent.length;return h.utils.removeItem(s),{focusNode:i,focusOffset:n}}const GA="action.stop";async function b5(s,e){const t={...jA,...UA};for(const i of s){if(i.t===GA)return!1;const n=t[i.t];if(n&&await n(e,i.p)===!1)return!1}}function w5(s){var f;const e=s.selection.getRange(),t=e.startContainer,i=e.endContainer,n=s.format.getBlock(t),r=s.format.getBlock(i),a=h.check.isTableCell(n),c=h.check.isTableCell(r);if((a&&!n.previousElementSibling&&!n.parentElement.previousElementSibling||c&&!r.nextElementSibling&&!r.parentElement.nextElementSibling)&&n!==r){const p=((f=h.query.getParentElement(e.commonAncestorContainer,h.check.isFigure))==null?void 0:f.parentElement)||e.commonAncestorContainer;if(!a)h.utils.removeItem(h.query.getParentElement(r,m=>p===m.parentNode));else if(!c)h.utils.removeItem(h.query.getParentElement(n,m=>p===m.parentNode));else return h.utils.removeItem(h.query.getParentElement(n,m=>p===m.parentNode)),s.focusManager.nativeFocus(),!0}const d=t.nodeType===1?h.query.getParentElement(t,".se-component"):null,u=i.nodeType===1?h.query.getParentElement(i,".se-component"):null;return d&&h.utils.removeItem(d),u&&h.utils.removeItem(u),!1}function YA(s,e,t){let i=e.parentNode.previousSibling;const n=e.parentNode.nextSibling;i||(n?i=n:(i=h.utils.createElement("BR"),t.appendChild(i)));let r=e;for(;t.contains(r)&&!r.previousSibling;)r=r.parentNode;if(!t.contains(r))return e.textContent="",s.nodeTransform.removeAllParents(e,null,t),!0}function d1(s,e,t){const i=t?e.startContainer:e.endContainer,n=t?e.startOffset:e.endOffset,r=t?"previousSibling":"nextSibling",a=i.nodeType===1;let c;return a?(c=mv(s,i.childNodes[n],r,i),h.check.isComponentContainer(c)||h.check.isNonEditable(c)?c:null):(c=mv(s,i,r,i),h.check.isEdgePoint(i,n,t?"front":"end")&&(h.check.isComponentContainer(c)||h.check.isNonEditable(c))?c:null)}function mv(s,e,t,i){if(!e)return null;let n=e[t];if(!n)if(n=s.format.getLine(i),n=n?n[t]:null,n&&!s.component.is(n))n=t==="previousSibling"?n.firstChild:n.lastChild;else return null;return n}function KA(s,e){return s.setDefaultLine(e)}function xc(s,e,t,i){if(!s.collapsed||!e)return!1;const n=s.getBoundingClientRect();if(n.height<=0)return!1;const r=i.createRange();r.selectNodeContents(e);const a=r.getBoundingClientRect();return a.width<=2?!1:t==="front"?n.left<=a.left+2:n.left>=a.right-2}const G={prevent:()=>({t:"event.prevent"}),stop:()=>({t:"event.stop"}),preventStop:()=>({t:"event.prevent.stop"}),cacheStyleNode:()=>({t:"cache.styleNode"}),cacheFormatAttrsTemp:s=>({t:"cache.formatAttrsTemp",p:{attrs:s}}),componentDeselect:()=>({t:"component.deselect"}),editorNativeFocus:()=>({t:"focusManager.nativeFocus"}),historyPush:s=>({t:"history.push",p:s}),documentTypeRefreshHeader:()=>({t:"documentType.refreshHeader"}),selectionSetRange:(s,e,t,i)=>({t:"selection.setRange",p:{sc:s,so:e,ec:t,eo:i}}),formatRemoveBlock:(s,e,t,i,n)=>({t:"format.removeBlock",p:{rangeEl:s,selectedFormats:e,newBlockElement:t,shouldDelete:i,skipHistory:n}}),domUtilsRemoveItem:s=>({t:"dom.utils.removeItem",p:{item:s}}),selectComponentFallback:s=>({t:"select.component.fallback",p:{cmponentInfo:s}}),delFormatRemoveAndMove:(s,e)=>({t:"del.format.removeAndMove",p:{container:s,formatEl:e}}),backspaceFormatMaintain:s=>({t:"backspace.format.maintain",p:{formatEl:s}}),backspaceBrLineStrip:s=>({t:"backspace.brline.strip",p:{formatEl:s}}),backspaceComponentSelect:(s,e,t)=>({t:"backspace.component.select",p:{selectionNode:s,range:e,fileComponentInfo:t}}),backspaceComponentRemove:(s,e,t,i)=>({t:"backspace.component.remove",p:{isList:s,sel:e,formatEl:t,fileComponentInfo:i}}),backspaceListMergePrev:(s,e,t)=>({t:"backspace.list.mergePrev",p:{prev:s,formatEl:e,rangeEl:t}}),backspaceListRemoveNested:s=>({t:"backspace.list.removeNested",p:{range:s}}),backspaceEmptyLineMergePrev:(s,e)=>({t:"backspace.emptyLine.mergePrev",p:{formatEl:s,prev:e}}),backspaceBrLineRowMerge:(s,e)=>({t:"backspace.brline.rowMerge",p:{rowEndBr:s,rowStartBr:e}}),backspaceSoftBreakMerge:s=>({t:"backspace.softBreak.merge",p:{zws:s}}),deleteComponentSelect:(s,e)=>({t:"delete.component.select",p:{formatEl:s,fileComponentInfo:e}}),deleteComponentSelectNext:(s,e)=>({t:"delete.component.selectNext",p:{formatEl:s,nextEl:e}}),deleteListRemoveNested:(s,e,t)=>({t:"delete.list.removeNested",p:{range:s,formatEl:e,rangeEl:t}}),deleteEmptyLineMergeNext:(s,e)=>({t:"delete.emptyLine.mergeNext",p:{formatEl:s,next:e}}),deleteBrLineRowMerge:s=>({t:"delete.brline.rowMerge",p:{rowEndBr:s}}),deleteSoftBreakMerge:s=>({t:"delete.softBreak.merge",p:{br:s}}),mergeLineInto:(s,e)=>({t:"line.merge",p:{into:s,from:e}}),tabFormatIndent:(s,e,t)=>({t:"tab.format.indent",p:{range:s,formatEl:e,shift:t}}),caretScrollTo:s=>({t:"caret.scrollTo",p:{range:s}}),enterLineAddDefault:s=>({t:"enter.line.addDefault",p:{formatEl:s}}),enterListAddItem:(s,e)=>({t:"enter.list.addItem",p:{formatEl:s,selectionNode:e}}),enterFormatExitEmpty:(s,e)=>({t:"enter.format.exitEmpty",p:{formatEl:s,rangeEl:e}}),enterFormatCleanBrAndZWS:(s,e,t,i,n)=>({t:"enter.format.cleanBrAndZWS",p:{selectionNode:s,selectionFormat:e,brBlock:t,children:i,offset:n}}),enterFormatInsertBrHtml:(s,e,t,i)=>({t:"enter.format.insertBrHtml",p:{brBlock:s,range:e,wSelection:t,offset:i}}),enterFormatInsertBrNode:s=>({t:"enter.format.insertBrNode",p:{wSelection:s}}),enterBrLineInsert:s=>({t:"enter.brline.insert",p:{range:s}}),enterShiftBr:s=>({t:"enter.shift.br",p:{range:s}}),enterBrLineExit:s=>({t:"enter.brline.exit",p:{brBlock:s}}),enterFormatBreakAtEdge:(s,e,t,i,n)=>({t:"enter.format.breakAtEdge",p:{formatEl:s,selectionNode:e,formatStartEdge:t,formatEndEdge:i,bidiSwapped:n}}),enterFormatBreakWithSelection:(s,e,t,i)=>({t:"enter.format.breakWithSelection",p:{formatEl:s,range:e,formatStartEdge:t,formatEndEdge:i}}),enterFormatBreakAtCursor:(s,e)=>({t:"enter.format.breakAtCursor",p:{formatEl:s,range:e}}),enterFigcaptionExitInList:s=>({t:"enter.figcaption.exitInList",p:{formatEl:s}}),keydownInputInsertNbsp:()=>({t:"keydown.input.insertNbsp"}),keydownInputInsertZWS:()=>({t:"keydown.input.insertZWS"})};function XA(s,e,t){const{format:i,component:n}=e,{fc:r,options:a,range:c,selectionNode:d}=t;let{formatEl:u}=t;const f=!c.collapsed||c.startContainer!==c.endContainer,p=a.get("_rtl")&&!f&&c.startOffset===0&&xc(c,u,"front",r.get("_wd"));if(s.push(G.componentDeselect()),s.push(G.cacheStyleNode()),f&&w5(e))return s.push(G.preventStop()),s.push(G.caretScrollTo(c)),!0;if(!i.isNormalLine(u)&&!i.isBrLine(u)&&!r.get("wysiwyg").firstElementChild&&!n.is(d)&&KA(e,a.get("defaultLine"))!==null)return s.push(G.preventStop()),!1;if(i.isLine(u)&&f&&h.check.isEdgePoint(c.startContainer,c.startOffset,"front")&&(!c.startContainer.previousSibling||h.check.isZeroWidth(c.startContainer.previousSibling))&&i.getLine(c.startContainer)!==i.getLine(c.endContainer)&&(i.isLine(u.previousElementSibling)||h.check.isListCell(u)))return s.push(G.preventStop()),s.push(G.delFormatRemoveAndMove(c.startContainer,u)),s.push(G.historyPush(!0)),s.push(G.caretScrollTo(c)),!1;if(!f&&!p&&u&&i.isNormalLine(u)&&!h.check.isListCell(u)&&i.isEdgeLine(c.startContainer,c.startOffset,"front")){const C=QA(i,u);if(C)return s.push(G.preventStop()),s.push(G.mergeLineInto(C,u)),s.push(G.historyPush(!0)),!1}if(!f&&!p&&!u.previousElementSibling&&c.startOffset===0&&!d.previousSibling&&!h.check.isListCell(u)&&i.isLine(u)&&(!i.isBrLine(u)||i.isClosureBrLine(u)||h.check.isWysiwygFrame(u.parentNode)))return i.isClosureBlock(u.parentNode)?(s.push(G.preventStop()),!1):i.isBrLine(u)&&h.check.isWysiwygFrame(u.parentNode)?(s.push(G.preventStop()),s.push(G.backspaceBrLineStrip(u)),s.push(G.historyPush(!0)),!1):(h.check.isWysiwygFrame(u.parentNode)&&u.childNodes.length<=1&&(!u.firstChild||h.check.isZeroWidth(u.textContent))&&(s.push(G.preventStop()),s.push(G.backspaceFormatMaintain(u))),s.push(G.editorNativeFocus()),s.push(G.caretScrollTo(c)),!1);const m=c.startContainer;if(u&&!p&&!u.previousElementSibling&&c.startOffset===0&&m.nodeType===3&&h.check.isZeroWidth(m)&&YA(e,m,u)===!0)return!0;if(!f&&u&&(c.startOffset===0||d===u)){const C=d===u?d1(e,c,!0):h.check.isElement(d.previousSibling)?d.previousSibling:h.check.isEdgePoint(c.startContainer,c.startOffset)?h.query.getPreviousDeepestNode(c.startContainer):null;if(n.is(C)){const w=n.get(C);if(w)return s.push(G.preventStop()),s.push(G.backspaceComponentSelect(d,c,w)),!0}}if(d1(e,c,!0))return s.push(G.preventStop()),!0;!f&&!p&&i.isEdgeLine(c.startContainer,c.startOffset,"front")&&i.isLine(u.previousElementSibling)&&s.push(G.cacheFormatAttrsTemp(u.previousElementSibling.attributes)),u=i.getLine(c.startContainer,null);const g=i.getBlock(u,null),y=c.commonAncestorContainer;if(g&&u&&!h.check.isTableCell(g)&&!/^FIGCAPTION$/i.test(g.nodeName)){if(h.check.isListCell(u)&&h.check.isList(g)&&(h.check.isListCell(g.parentElement)||u.previousElementSibling)&&(d===u||d.nodeType===3&&(!d.previousSibling||h.check.isList(d.previousSibling)))&&(i.getLine(c.startContainer,null)!==i.getLine(c.endContainer,null)?g.contains(c.startContainer):c.startOffset===0&&c.collapsed&&!p)){if(c.startContainer!==c.endContainer)s.push(G.prevent()),s.push(G.backspaceListRemoveNested(c)),s.push(G.historyPush(!0));else{let C=u.previousElementSibling||g.parentElement;if(h.check.isListCell(C)){s.push(G.prevent());let w=C;if(!C.contains(u)&&h.check.isListCell(w)&&h.check.isList(w.lastElementChild)){for(w=w.lastElementChild.lastElementChild;h.check.isListCell(w)&&h.check.isList(w.lastElementChild);)w=w.lastElementChild&&w.lastElementChild.lastElementChild;C=w}s.push(G.backspaceListMergePrev(C,u,g)),s.push(G.historyPush(!0))}}return s.push(G.caretScrollTo(c)),!0}if(!f&&c.startOffset===0&&!p){let C=!0,w=y;for(;w&&w!==g&&!h.check.isWysiwygFrame(w);){if(w.previousSibling&&(w.previousSibling.nodeType===1||!h.check.isZeroWidth(w.previousSibling.textContent.trim()))){C=!1;break}w=w.parentNode}if(C&&g.parentNode)return s.push(G.prevent()),s.push(G.formatRemoveBlock(g,h.check.isListCell(u)?[u]:null,null,!1,!1)),s.push(G.historyPush(!0)),s.push(G.caretScrollTo(c)),!0}}if(!f&&u&&h.check.isEmptyLine(u)&&n.is(u.previousElementSibling)){const C=n.get(u.previousElementSibling);if(C)return s.push(G.preventStop()),s.push(G.backspaceComponentRemove(!1,u.firstChild,u,C)),s.push(G.caretScrollTo(c)),!0}if(!f&&u&&(c.startOffset===0||d===u&&u.childNodes[c.startOffset])){const C=h.check.isListCell(u),w=d===u?u.childNodes[c.startOffset]:d,k=(C?w:u).previousSibling,_=C||(y.nodeType===3||h.check.isBreak(y))&&!y.previousSibling&&c.startOffset===0;if(w&&(C||!w.previousSibling)&&(y&&n.is(y.previousSibling)||_&&n.is(k))){const M=n.get(k);return M?(s.push(G.preventStop()),s.push(G.backspaceComponentRemove(C,w,u,M))):n.is(k)&&(s.push(G.preventStop()),s.push(G.domUtilsRemoveItem(k))),s.push(G.caretScrollTo(c)),!0}if(w&&h.check.isNonEditable(w.previousSibling))return s.push(G.preventStop()),s.push(G.domUtilsRemoveItem(w.previousSibling)),s.push(G.caretScrollTo(c)),!0}if(!f&&i.isBrLine(u)&&h.check.isBreak(c.startContainer)&&c.startOffset===0){let C=c.startContainer.previousSibling;if((C==null?void 0:C.nodeType)===3&&h.check.isZeroWidth(C)&&(C=C.previousSibling),h.check.isBreak(C))return s.push(G.preventStop()),s.push(G.backspaceBrLineRowMerge(c.startContainer,C)),s.push(G.historyPush(!0)),s.push(G.caretScrollTo(c)),!1}if(!f&&c.startContainer.nodeType===3&&h.check.isZeroWidth(c.startContainer)&&c.startOffset<=1&&h.check.isBreak(c.startContainer.previousSibling))return s.push(G.preventStop()),s.push(G.backspaceSoftBreakMerge(c.startContainer)),s.push(G.historyPush(!0)),s.push(G.caretScrollTo(c)),!1;const v=u==null?void 0:u.previousElementSibling;return!f&&u&&i.isNormalLine(u)&&!h.check.isListCell(u)&&h.check.isEmptyLine(u)&&(i.isNormalLine(v)||i.isBrLine(v))?(s.push(G.preventStop()),s.push(G.backspaceEmptyLineMergePrev(u,v)),s.push(G.historyPush(!0)),s.push(G.caretScrollTo(c)),!1):(s.push(G.caretScrollTo(c)),!0)}function QA(s,e){let t=e.previousElementSibling;if(t){if(!s.isBlock(t))return null}else{const n=e.parentElement;if(!s.isBlock(n)||s.isClosureBlock(n)||(t=n.previousElementSibling,!t))return null}let i=t;for(;i&&s.isBlock(i)&&!s.isClosureBlock(i);)i=i.lastElementChild;return!s.isNormalLine(i)||h.check.isListCell(i)||s.isBrLine(i)||s.isClosureBrLine(i)?null:i}function JA(s,e,t){var g,y;const{format:i,component:n}=e,{fc:r,range:a,selectionNode:c}=t;let{formatEl:d}=t;const u=!a.collapsed||a.startContainer!==a.endContainer,f=t.options.get("_rtl")&&!u&&a.endOffset>=(((g=a.endContainer.textContent)==null?void 0:g.length)||0)&&xc(a,d,"end",r.get("_wd"));if(s.push(G.componentDeselect()),s.push(G.cacheStyleNode()),u&&w5(e))return s.push(G.preventStop()),!0;if(!u&&!f&&d&&i.isNormalLine(d)&&!h.check.isListCell(d)&&i.isEdgeLine(a.endContainer,a.endOffset,"end")){const v=e$(i,d);if(v)return s.push(G.preventStop()),s.push(G.mergeLineInto(d,v)),s.push(G.historyPush(!0)),!1}if(!u&&!f&&i.isEdgeLine(a.endContainer,a.endOffset,"end")&&!d.nextSibling)return s.push(G.preventStop()),!1;if(i.isLine(d)&&u&&h.check.isEdgePoint(a.endContainer,a.endOffset,"end")&&(!a.endContainer.nextSibling||h.check.isZeroWidth(a.endContainer.nextSibling))&&i.getLine(a.startContainer)!==i.getLine(a.endContainer)&&(i.isLine(d.nextElementSibling)||h.check.isListCell(d)))return s.push(G.preventStop()),s.push(G.delFormatRemoveAndMove(a.endContainer,d)),s.push(G.historyPush(!0)),!1;if(!u&&d&&(a.endOffset===a.endContainer.textContent.length||c===d)){const v=c===d?d1(e,a,!1):h.check.isElement(c.nextSibling)?c.nextSibling:h.check.isEdgePoint(a.endContainer,a.endOffset)?h.query.getNextDeepestNode(a.endContainer,null):null;if(n.is(v)){const C=n.get(v);if(C)return s.push(G.preventStop()),s.push(G.deleteComponentSelect(d,C)),!0}}if(d1(e,a,!1))return s.push(G.preventStop()),!0;if((i.isLine(c)||c.nextSibling===null||h.check.isZeroWidth(c.nextSibling)&&c.nextSibling.nextSibling===null)&&a.startOffset===c.textContent.length){const v=d.nextElementSibling;if(!v)return!0;if(n.is(v))return s.push(G.prevent()),s.push(G.deleteComponentSelectNext(d,v)),!0}if(!u&&(h.check.isEdgePoint(a.endContainer,a.endOffset)||c===d&&d.childNodes[a.startOffset])){const v=c===d&&d.childNodes[a.startOffset]||c;if(v&&h.check.isNonEditable(v.nextSibling))return s.push(G.preventStop()),s.push(G.domUtilsRemoveItem(v.nextSibling)),!0;if(n.is(v))return s.push(G.preventStop()),s.push(G.domUtilsRemoveItem(v)),!0}!u&&!f&&i.isEdgeLine(a.endContainer,a.endOffset,"end")&&i.isLine(d.nextElementSibling)&&s.push(G.cacheFormatAttrsTemp(d.attributes)),d=i.getLine(a.startContainer,null);const p=i.getBlock(d,null);if(h.check.isListCell(d)&&h.check.isList(p)&&(c===d||c.nodeType===3&&(!c.nextSibling||h.check.isList(c.nextSibling))&&(i.getLine(a.startContainer,null)!==i.getLine(a.endContainer,null)?p.contains(a.endContainer):a.endOffset===c.textContent.length&&a.collapsed&&!f)))return s.push(G.deleteListRemoveNested(a,d,p)),!0;if(!u&&i.isBrLine(d)&&h.check.isBreak(a.startContainer)&&a.startOffset===0){let v=a.startContainer.previousSibling;if((v==null?void 0:v.nodeType)===3&&h.check.isZeroWidth(v)&&(v=v.previousSibling),h.check.isBreak(v))return s.push(G.preventStop()),s.push(G.deleteBrLineRowMerge(a.startContainer)),s.push(G.historyPush(!0)),!1}if(!u){const v=a.startContainer;let C=null;if(v.nodeType===3&&a.startOffset>=v.textContent.length&&h.check.isBreak(v.nextSibling)){const w=v.nextSibling;((y=w.nextSibling)==null?void 0:y.nodeType)===3&&h.check.isZeroWidth(w.nextSibling.textContent)&&(C=w)}else v.nodeType===3&&h.check.isZeroWidth(v)&&a.startOffset===0&&h.check.isBreak(v.previousSibling)&&(C=v.previousSibling);if(C)return s.push(G.preventStop()),s.push(G.deleteSoftBreakMerge(C)),s.push(G.historyPush(!0)),!1}const m=d==null?void 0:d.nextElementSibling;return!u&&d&&i.isNormalLine(d)&&!h.check.isListCell(d)&&h.check.isEmptyLine(d)&&(i.isNormalLine(m)||i.isBrLine(m))?(s.push(G.preventStop()),s.push(G.deleteEmptyLineMergeNext(d,m)),s.push(G.historyPush(!0)),!1):!0}function e$(s,e){let t=e.nextElementSibling;if(t){if(!s.isBlock(t))return null}else{const n=e.parentElement;if(!s.isBlock(n)||s.isClosureBlock(n)||(t=n.nextElementSibling,!t))return null}let i=t;for(;i&&s.isBlock(i)&&!s.isClosureBlock(i);)i=i.firstElementChild;return!s.isNormalLine(i)||h.check.isListCell(i)||s.isBrLine(i)||s.isClosureBrLine(i)?null:i}function t$(s,e){const t=Array.from(s.childNodes),i=[[]];for(const f of t)h.check.isBreak(f)?i.push([]):i[i.length-1].push(f);t.length&&h.check.isBreak(t[t.length-1])&&i.pop();const n=f=>!f||f.every(p=>h.check.isZeroWidth(p.textContent)),r=e.anchorNode;let a=0;if(r===s)for(let f=0;f<e.anchorOffset&&f<t.length;f++)h.check.isBreak(t[f])&&a++;else for(const f of t){if(f===r||f.nodeType===1&&f.contains(r))break;h.check.isBreak(f)&&a++}const c=Math.max(i.length,1),d=Math.min(a,c-1);return{shouldExit:d===c-1&&n(i[d])&&d>=1&&n(i[d-1])}}function k5(s,e,t){const{format:i,char:n,selection:r}=e,{frameOptions:a,range:c,formatEl:d,selectionNode:u,shift:f,e:p}=t,m=!c.collapsed||c.startContainer!==c.endContainer;s.push(G.componentDeselect());const g=i.getBrLine(u,null),y=i.getBlock(d,null);if(a.get("charCounter_type")==="byte-html"){let v="";if(!f&&g||f?v="<br>":v="<"+d.nodeName+"><br></"+d.nodeName+">",!n.check(v))return s.push(G.prevent()),!1}if(f)return e.enterPrevent(p),s.push(G.enterShiftBr(c)),s.push(G.caretScrollTo(c)),!0;if(!f){let v=i.isEdgeLine(c.endContainer,c.endOffset,"end"),C=i.isEdgeLine(c.startContainer,c.startOffset,"front"),w=!1;if(t.options.get("_rtl")&&d&&c.collapsed&&C!==v){const k=t.fc.get("_wd");C&&xc(c,d,"front",k)?(C=!1,v=!0,w=!0):v&&xc(c,d,"end",k)&&(v=!1,C=!0,w=!0)}if(v&&(/^H[1-6]$/i.test(d.nodeName)||/^HR$/i.test(d.nodeName)))return e.enterPrevent(p),s.push(G.enterLineAddDefault(d)),s.push(G.caretScrollTo(c)),!0;if(y&&d&&!h.check.isTableCell(y)&&!/^FIGCAPTION$/i.test(y.nodeName)){const k=r.getRange();if(h.check.isEdgePoint(k.endContainer,k.endOffset)&&h.check.isList(u.nextSibling))return e.enterPrevent(p),s.push(G.enterListAddItem(d,u)),s.push(G.caretScrollTo(c)),!0;if((k.commonAncestorContainer.nodeType!==3||!k.commonAncestorContainer.nextElementSibling)&&h.check.isZeroWidth(d.innerText.trim())&&!h.check.isListCell(d.nextElementSibling))return e.enterPrevent(p),s.push(G.enterFormatExitEmpty(d,y)),!0}if(g||y===d&&i.isClosureBlock(y)&&i.isLine(d)){if(e.enterPrevent(p),g&&!i.isClosureBrLine(g))return t$(g,r.get()).shouldExit?s.push(G.enterBrLineExit(g)):s.push(G.enterBrLineInsert(c)),s.push(G.caretScrollTo(c)),!0;const k=r.get();return u===g?s.push(G.enterFormatInsertBrHtml(g,c,k,k.focusOffset)):s.push(G.enterFormatInsertBrNode(k)),s.push(G.caretScrollTo(c)),!0}if(c.collapsed&&(C||v))return e.enterPrevent(p),s.push(G.enterFormatBreakAtEdge(d,u,C,v,w)),s.push(G.caretScrollTo(c)),!0;if(d){if(s.push(G.prevent()),m){if(t.options.get("_rtl")&&C&&!v){const k=t.fc.get("_wd"),_=k.createRange();_.setStart(c.startContainer,c.startOffset),_.collapse(!0),xc(_,d,"front",k)&&(C=!1,v=!0,w=!0)}s.push(G.enterFormatBreakWithSelection(d,c,C,v))}else s.push(G.enterFormatBreakAtCursor(d,c));return s.push(G.caretScrollTo(c)),!0}}return m?(s.push(G.caretScrollTo(c)),!0):(y&&h.query.getParentElement(y,"FIGCAPTION")&&h.query.getParentElement(y,h.check.isList)&&(e.enterPrevent(p),s.push(G.enterFigcaptionExitInList(d)),s.push(G.caretScrollTo(c))),!0)}function s$(s,e,t){const{options:i,selectionNode:n,range:r,formatEl:a,ctrl:c,alt:d,shift:u}=t;return i.get("tabDisable")||(s.push(G.prevent()),c||d||h.check.isWysiwygFrame(n))||(s.push(G.tabFormatIndent(r,a,u)),s.push(G.historyPush(!1))),!0}function i$(s,e,t){var p;const{component:i}=e,{formatEl:n,range:r,selectionNode:a,keyCode:c}=t,d=t.options.get("_rtl"),u=c==="ArrowLeft"?d?"forward":"back":c==="ArrowRight"?d?"back":"forward":null;let f=null;switch(c){case"ArrowUp":i.is(n.previousElementSibling)&&(f=i.get(n.previousElementSibling));break;case"ArrowLeft":case"ArrowRight":if(u==="forward"){if(h.check.isEdgePoint(a,r.endOffset,"end")){const m=a.nextElementSibling||h.query.getNextDeepestNode(a);m?i.is(m)&&(f=i.get(m)):i.is(n.nextElementSibling)&&(f=i.get(n.nextElementSibling))}}else if(u==="back"&&h.check.isEdgePoint(a,r.startOffset,"front")){const m=a.previousElementSibling||h.query.getPreviousDeepestNode(a);m?i.is(m)&&(f=i.get(m)):i.is(n.previousElementSibling)&&(f=i.get(n.previousElementSibling))}break;case"ArrowDown":i.is(n.nextElementSibling)&&(f=i.get(n.nextElementSibling));break}f&&!((p=f.options)!=null&&p.isInputComponent)&&(s.push(G.prevent()),s.push(G.selectComponentFallback(f)))}const{isOSX_IOS:n$}=me,o$=!0;function Vm(s,e){return o$&&s.get("_canUseBeforeInput")&&!(e!=null&&e.repeat)}async function r$(s,e){const t=[];switch(e.keyCode){case"Backspace":{if(XA(t,s,e)===!1)return t;break}case"Delete":{if(JA(t,s,e)===!1)return t;break}case"Tab":{if(s$(t,s,e)===!1)return t;break}case"Enter":{if(!Vm(e.store,e.e)&&k5(t,s,e)===!1)return t;break}}const{fc:i,keyCode:n,shift:r,alt:a,ctrl:c,range:d}=e;if(r&&(n$?a:c)&&xe.isSpace(n))return t.push(G.preventStop()),t.push(G.keydownInputInsertNbsp()),t;const u=!d.collapsed||d.startContainer!==d.endContainer;return!c&&!a&&!u&&!xe.isNonTextKey(n)&&h.check.isBreak(d.commonAncestorContainer)?(t.push(G.keydownInputInsertZWS()),t):i.has("documentType_use_header")&&u&&!c&&!a&&!r&&!xe.isDirectionKey(n)?(t.push(G.documentTypeRefreshHeader()),t):(i$(t,s,e),t)}function _5(s,{_styleNodes:e}){const{frameContext:t,ui:i,focusManager:n,selection:r,format:a,listFormat:c,component:d,html:u,nodeTransform:f,history:p,char:m,menu:g,store:y}=s.$;return{focusManager:{nativeFocus:()=>n.nativeFocus(),blur:()=>n.blur()},selection:{getRange:()=>r.getRange(),getNode:()=>r.getNode(),setRange:(v,C,w,k)=>r.setRange(v,C,w,k),get:()=>r.get()},format:{isLine:v=>a.isLine(v),getLine:(v,C)=>a.getLine(v,C),getLines:v=>a.getLines(v),getBrLine:(v,C)=>a.getBrLine(v,C),getBlock:(v,C)=>a.getBlock(v,C),isNormalLine:v=>a.isNormalLine(v),isBrLine:v=>a.isBrLine(v),isClosureBrLine:v=>a.isClosureBrLine(v),isBlock:v=>a.isBlock(v),isClosureBlock:v=>a.isClosureBlock(v),isEdgeLine:(v,C,w)=>a.isEdgeLine(v,C,w),removeBlock:(v,C)=>a.removeBlock(v,C),addLine:(v,C)=>a.addLine(v,C),addLineAfter:v=>a.addLineAfter(v)},listFormat:{applyNested:(v,C)=>c.applyNested(v,C)},component:{deselect:()=>d.deselect(),is:v=>d.is(v),get:v=>d.get(v),select:(v,C)=>d.select(v,C)},html:{remove:()=>u.remove(),insert:(v,C)=>u.insert(v,C),insertNode:(v,C)=>u.insertNode(v,C)},history:{push:v=>p.push(!!v)},nodeTransform:{removeAllParents:(v,C,w)=>f.removeAllParents(v,C,w),split:(v,C,w)=>f.split(v,C,w)},char:{check:v=>m.check(v)},menu:{dropdownOff:()=>g.dropdownOff()},setDefaultLine:v=>s._setDefaultLine(v),hideToolbar:()=>s._hideToolbar(),hideToolbar_sub:()=>s._hideToolbar_sub(),styleNodeCache:()=>e.value=s.__cacheStyleNodes,formatAttrsTempCache:v=>s._formatAttrsTemp=v,setOnShortcutKey:v=>s._onShortcutKey=v,caretScrollTo(v){i._iframeAutoHeight(t),r.scrollTo(r.getRange()||v,{behavior:"auto",block:"nearest",inline:"nearest"})},enterPrevent(v){v.preventDefault(),!(!l3||Vm(y))&&(s.__focusTemp.focus({preventScroll:!0}),t.get("wysiwyg").focus({preventScroll:!0}))}}}const l$={value:[]};async function a$(s,e){if(s.get("isReadOnly")||s.get("isDisabled"))return e.preventDefault(),e.stopPropagation(),!1;if(Vm(this.$.store)&&(e.inputType==="insertParagraph"||e.inputType==="insertLineBreak")){await c$.call(this,s,e);return}const t=(e.data===null?"":e.data===void 0?" ":e.data)||"";if(xe.isComposing(e))this._handledInBefore=!1;else{if(!this.$.char.test(t,!1))return e.preventDefault(),e.stopPropagation(),!1;this._handledInBefore=!0}await this.$.eventManager.triggerEvent("onBeforeInput",{frameContext:s,event:e,data:t})!==!1&&await this._callPluginEventAsync("onBeforeInput",{frameContext:s,event:e,data:t})}async function c$(s,e){if(e.isComposing||this.isComposing||this.$.ui.selectMenuOn)return;let t=this.$.selection.getNode();if(h.check.isInputElement(t)||this.$.menu.currentDropdownName)return;h.check.isWysiwygFrame(t)&&(this._setDefaultLine(this.$.options.get("defaultLine")),t=this.$.selection.getNode());const i=this._enterKeyShift||e.inputType==="insertLineBreak";if(this._enterKeyShift=!1,!i){const u=this._normalizeEditRange();u&&(t=u)}const n=this.$.selection.getRange(),r=this.$.format.getLine(t,null)||t,a={e,fc:s,store:this.$.store,options:this.$.options,frameOptions:this.$.frameOptions,range:n,selectionNode:t,formatEl:r,keyCode:"Enter",ctrl:!1,alt:!1,shift:i},c=_5(this,{_styleNodes:l$}),d=[];k5(d,c,a),d.some(u=>u.t==="event.prevent"||u.t==="event.prevent.stop")&&e.preventDefault(),await b5(d,{ports:c,ctx:a})}async function d$(s,e){if(s.get("isReadOnly")||s.get("isDisabled"))return e.preventDefault(),e.stopPropagation(),!1;const t=this.$.selection.getRange(),i=this.$.selection.getNode(),n=this.$.format.getLine(i,null);if(!this.$.format.isNormalLine(n)&&!this.$.format.isBrLine(n)&&t.collapsed&&!this.$.component.is(i)&&!h.check.isList(i)){const a=this.$.format.getBlock(i,null);this._setDefaultLine(this.$.format.isBlock(a)?"DIV":this.$.options.get("defaultLine"))}this.$.selection.init();const r=(e.data===null?"":e.data===void 0?" ":e.data)||"";if(!this._handledInBefore&&!this.$.char.test(r,!0))return e.preventDefault(),e.stopPropagation(),!1;this._handledInBefore=!1,await this.$.eventManager.triggerEvent("onInput",{frameContext:s,event:e,data:r})!==!1&&(await this._callPluginEventAsync("onInput",{frameContext:s,event:e,data:r}),this.$.history.push(!0))}const{_w:gv}=me,u$=new RegExp(Ie.zeroWidthSpace+"+",""),Pr={ctrl:!1,alt:!1},Gh=Object.preventExtensions({value:[]});async function h$(s,e){var g,y;if(this.isComposing=xe.isComposing(e))return!0;if(this.$.ui.selectMenuOn||!e.isTrusted)return;let t=this.$.selection.getNode();if(h.check.isInputElement(t)||this.$.menu.currentDropdownName)return;const i=e.code,n=xe.isShift(e),r=Pr.ctrl=xe.isCtrl(e),a=Pr.alt=xe.isAlt(e);if(xe.isEnter(i)&&(this._enterKeyShift=n),!r&&s.get("isReadOnly")&&!xe.isDirectionKey(i))return e.preventDefault(),!1;if(this.$.menu.dropdownOff(),this.$.store.mode.isBalloon?this.$.store.mode.isBalloonAlways||this._hideToolbar():this.$.store.mode.isSubBalloon&&(this.$.store.mode.isSubBalloonAlways||this._hideToolbar_sub()),xe.isEnter(i)&&!Vm(this.$.store,e)||xe.isRemoveKey(i)){const v=this._normalizeEditRange();v&&(t=v)}const d=this.$.selection.getRange(),u=this.$.format.getLine(t,null)||t;if(r&&!xe.isNonTextKey(i)&&this.$.shortcuts.command(e,r,n,i,"",!1,null,null))return this._onShortcutKey=!0,e.preventDefault(),e.stopPropagation(),!1;if(!r&&!xe.isNonTextKey(i)&&this.$.format.isLine(u)&&d.collapsed&&h.check.isEdgePoint(d.startContainer,0,"front")){const v=(y=(g=d.startContainer).substringData)==null?void 0:y.call(g,0,d.startOffset);if(v&&this.$.shortcuts.command(e,!1,n,i,v,!0,u,d))return this._onShortcutKey=!0,e.preventDefault(),e.stopPropagation(),!1}else this._onShortcutKey&&(this._onShortcutKey=!1);const f={e,fc:s,store:this.$.store,options:this.$.options,frameOptions:this.$.frameOptions,range:d,selectionNode:t,formatEl:u,keyCode:i,ctrl:r,alt:a,shift:n},p=_5(this,{_styleNodes:Gh}),m=await r$(p,f);await this.$.eventManager.triggerEvent("onKeyDown",{frameContext:s,event:e})!==!1&&await this._callPluginEventAsync("onKeyDown",{frameContext:s,event:e,range:d,line:u})!==!1&&await b5(m,{ports:p,ctx:f})}async function f$(s,e){var p;if(this._onShortcutKey||this.$.menu.currentDropdownName)return;const t=e.code,i=xe.isCtrl(e),n=xe.isAlt(e);if(i&&(Pr.ctrl=!1),n&&(Pr.alt=!1),s.get("isReadOnly"))return;const r=this.$.selection.getRange();let a=this.$.selection.getNode();if((this.$.store.mode.isBalloon||this.$.store.mode.isSubBalloon)&&((this.$.store.mode.isBalloonAlways||this.$.store.mode.isSubBalloonAlways)&&!xe.isEsc(t)||!r.collapsed))if(this.$.store.mode.isBalloonAlways||this.$.store.mode.isSubBalloonAlways)xe.isEsc(t)||this._showToolbarBalloonDelay();else{this.$.store.mode.isSubBalloon?this.$.subToolbar._showBalloon():this.$.toolbar._showBalloon();return}if(xe.isBackspace(t)&&h.check.isWysiwygFrame(a)&&a.textContent===""&&a.children.length===0){e.preventDefault(),e.stopPropagation(),a.innerHTML="";const m=this.$.store.get("currentNodes")[0],g=h.utils.createElement(this.$.format.isLine(m)&&!h.check.isListCell(m)?m:this.$.options.get("defaultLine"),null,"<br>");a.appendChild(g),this.$.selection.setRange(g,0,g,0),this.applyTagEffect(),this.$.history.push(!1),s.has("documentType_use_header")&&xe.isDocumentTypeObserverKey(t)&&s.get("documentType").reHeader();return}const c=this.$.format.getLine(a,null),d=this.$.format.getBlock(a,null),u=this._formatAttrsTemp;if(c&&u){for(let m=0,g=u.length;m<g;m++){if(xe.isEnter(t)&&/^id$/i.test(u[m].name)){c.removeAttribute("id");continue}c.setAttribute(u[m].name,u[m].value)}this._formatAttrsTemp=null}if(!this.$.format.isNormalLine(c)&&!this.$.format.isBrLine(c)&&r.collapsed&&!this.$.component.is(a)&&!h.check.isList(a)&&this._setDefaultLine(this.$.format.isBlock(d)?"DIV":this.$.options.get("defaultLine"))!==null&&(a=this.$.selection.getNode()),!Pr.ctrl&&!Pr.alt&&!xe.isNonTextKey(t)&&a.nodeType===3&&Ie.zeroWidthRegExp.test(a.textContent)&&!(e.isComposing!==void 0?e.isComposing:this.isComposing)){let m=r.startOffset,g=r.endOffset;const y=(a.textContent.substring(0,g).match(u$)||"").length;m=r.startOffset-y,g=r.endOffset-y,a.textContent=a.textContent.replace(Ie.zeroWidthRegExp,""),this.$.selection.setRange(a,m<0?0:m,a,g<0?0:g)}if(xe.isRemoveKey(t)&&h.check.isZeroWidth(c==null?void 0:c.textContent)&&!c.previousElementSibling&&!h.check.isListCell(c)){const m=this.$.options.get("retainStyleMode");m!=="none"&&((p=Gh.value)==null?void 0:p.length)>0?m==="repeat"?this.__retainTimer?(this.__retainTimer=gv.clearTimeout(this.__retainTimer),this._clearRetainStyleNodes(c)):(this.__retainTimer=gv.setTimeout(()=>{this.__retainTimer=null},0),this._retainStyleNodes(c,Gh.value)):(this.__retainTimer=null,this._retainStyleNodes(c,Gh.value)):this._clearRetainStyleNodes(c)}if(s.has("documentType_use_header"))if(xe.isDocumentTypeObserverKey(t)){s.get("documentType").reHeader();const m=h.query.getParentElement(this.$.selection.selectionNode,this.$.format.isLine.bind(this.$.format));s.get("documentType").on(m)}else{const m=h.query.getParentElement(a,g=>g.nodeType===1);s.get("documentType").onChangeText(m)}await this.$.eventManager.triggerEvent("onKeyUp",{frameContext:s,event:e})!==!1&&await this._callPluginEventAsync("onKeyUp",{frameContext:s,event:e,range:r,line:c})!==!1&&xe.isHistoryRelevantKey(t)&&this.$.history.push(!0)}const{_w:p$}=me;function m$(s,e){const t=e.clipboardData;return t?this._dataTransferAction("paste",e,t,s):!0}async function g$(s,e){const t=e.clipboardData;if(await this.$.eventManager.triggerEvent("onCopy",{frameContext:s,event:e,clipboardData:t})===!1)return e.preventDefault(),e.stopPropagation(),!1;const i=s.get("_ww").getSelection();this.__secopy=i.toString()}async function v$(s,e){const t=e.clipboardData;if(await this.$.eventManager.triggerEvent("onCut",{frameContext:s,event:e,clipboardData:t})===!1)return e.preventDefault(),e.stopPropagation(),!1;const i=s.get("_ww").getSelection();this.__secopy=i.toString(),p$.setTimeout(()=>{this.$.history.push(!1)},0)}const{_w:Nh}=me;function y$(s,e,t,i,n){var m,g;if(n.dataTransfer&&Array.from(n.dataTransfer.types||[]).includes("application/x-suneditor-block-drag"))return;const{sc:r,so:a,ec:c,eo:d}=this.$.selection.getDragEventLocationRange(n);if(!r)return;n.preventDefault();const u=s.get("_wd").createRange();u.setStart(r,a),u.setEnd(c,d);const f={y:0,x:0};if(t){const y=this.$.offset.getGlobal(t),v=i?this.$.context.get("toolbar_main").offsetHeight:0;f.y=y.top+v-Nh.scrollY,f.x=y.left-Nh.scrollX}const p=u.getBoundingClientRect();if(p.height>0){const y=s.get("wysiwygFrame");let v=0,C=0;/^iframe$/i.test(y.nodeName)&&(v=y.offsetLeft,C=y.offsetTop),e.style.left=`${p.right+Nh.scrollX+f.x+v}px`,e.style.top=`${p.top+Nh.scrollY+f.y-5+C}px`,e.style.height=`${p.height+10}px`,e.style.display="block";try{(m=e.showPopover)==null||m.call(e)}catch{}}else{try{(g=e.hidePopover)==null||g.call(e)}catch{}e.style.display="none"}}function C$(s){var e;try{(e=s.hidePopover)==null||e.call(s)}catch{}s.style.display="none"}function b$(s,e,t){var i;try{if(s.get("isReadOnly"))return t.preventDefault(),t.stopPropagation(),!1;const n=t.dataTransfer;if(!n)return!0;if(Array.from(n.types||[]).includes("application/x-suneditor-block-drag"))return;const{sc:r,so:a,ec:c,eo:d}=this.$.selection.getDragEventLocationRange(t);if(!r)return;if(h.query.getParentElement(r,".se-disable-pointer")){t.preventDefault();return}if(we.get("__dragContainer")){if(t.preventDefault(),we.get("__dragContainer").contains(t.target)){this.$.component.deselect();return}const u=we.get("__dragContainer");this.$.component.deselect(),this.$.selection.setRange(r,a,c,d),this.$.html.insertNode(u,{afterNode:null,skipCharCount:!0}),s.has("documentType_use_page")&&(s.get("documentTypePageMirror").innerHTML=s.get("wysiwyg").innerHTML,s.get("documentType").rePage(!0));return}return this.$.html.remove(),this.$.selection.setRange(r,a,c,d),this._dataTransferAction("drop",t,n,s)}finally{try{(i=e.hidePopover)==null||i.call(e)}catch{}e.style.display="none"}}var Re;class w${constructor({$:e}){b(this,Re,void 0);E(this,Re,e)}execute(e){if(!o(this,Re).options.get("__lineFormatFilter"))return null;if(o(this,Re).pluginManager.fileInfo.pluginRegExp.test(o(this,Re).ui.currentControllerName))return;const t=o(this,Re).selection.getRange(),i=t.commonAncestorContainer,n=t.startContainer,r=t.endOffset,a=o(this,Re).format.getBlock(i,null);let c,d,u;if(a){u=h.utils.createElement(e||o(this,Re).options.get("defaultLine")),u.innerHTML=a.innerHTML,u.childNodes.length===0&&(u.innerHTML=Ie.zeroWidthSpace),a.innerHTML=u.outerHTML,u=a.firstChild,c=u.childNodes[r]||h.query.getEdgeChildNodes(u,null).sc,c||(c=h.utils.createTextNode(Ie.zeroWidthSpace),u.insertBefore(c,u.firstChild)),d=c.textContent.length,o(this,Re).selection.setRange(c,d,c,d);return}if(i.nodeType===3&&o(this,Re).component.is(i.parentElement)){const f=o(this,Re).component.get(i.parentElement);if(!f)return;const p=f.container;if(i.parentElement===p){const m=i.nextElementSibling?p:p.nextElementSibling,g=h.utils.createElement(o(this,Re).options.get("defaultLine"),null,i);p.parentElement.insertBefore(g,m),o(this,Re).focusManager.focusEdge(g);return}return o(this,Re).component.select(f.target,f.pluginName),null}else if(i.nodeType===1&&i.getAttribute("data-se-embed")==="true"){let f=i.nextElementSibling;o(this,Re).format.isLine(f)||(f=o(this,Re).format.addLine(i,o(this,Re).options.get("defaultLine"))),o(this,Re).selection.setRange(f.firstChild,0,f.firstChild,0);return}if(!((o(this,Re).format.isBlock(n)||h.check.isWysiwygFrame(n))&&(o(this,Re).component.is(n.children[t.startOffset])||o(this,Re).component.is(n.children[t.startOffset-1])))){if(h.query.getParentElement(i,h.check.isExcludeFormat))return null;if(o(this,Re).format.isBlock(i)&&i.childNodes.length<=1){let f=null;i.childNodes.length===1&&h.check.isBreak(i.firstChild)?f=i.firstChild:(f=h.utils.createTextNode(Ie.zeroWidthSpace),i.appendChild(f)),o(this,Re).selection.setRange(f,1,f,1);return}try{if(i.nodeType===3&&(u=h.utils.createElement(e||o(this,Re).options.get("defaultLine")),i.parentNode.insertBefore(u,i),u.appendChild(i)),h.check.isBreak(u.nextSibling)&&h.utils.removeItem(u.nextSibling),h.check.isBreak(u.previousSibling)&&h.utils.removeItem(u.previousSibling),h.check.isBreak(c)){const f=h.utils.createTextNode(Ie.zeroWidthSpace);c.parentNode.insertBefore(f,c),c=f}}catch{o(this,Re).frameContext.get("_wd").execCommand("formatBlock",!1,`<${e||o(this,Re).options.get("defaultLine")}>`),o(this,Re).store.set("_lastSelectionNode",null),o(this,Re).selection.init();return}if(u&&(h.check.isBreak(u.nextSibling)&&h.utils.removeItem(u.nextSibling),h.check.isBreak(u.previousSibling)&&h.utils.removeItem(u.previousSibling),h.check.isBreak(c))){const f=h.utils.createTextNode(Ie.zeroWidthSpace);c.parentNode.insertBefore(f,c),c=f}o(this,Re).store.set("_lastSelectionNode",null),n?o(this,Re).selection.setRange(n,1,n,1):o(this,Re).focusManager.nativeFocus()}}}Re=new WeakMap;var sh,De,ih,nh,xg,jp,E5;class k${constructor(e){b(this,nh);b(this,jp);b(this,sh,void 0);b(this,De,void 0);b(this,ih,void 0);E(this,sh,e),E(this,De,e.$),E(this,ih,new RegExp(`^(${Object.keys(o(this,De).options.get("_defaultStyleTagMap")).join("|")})$`,"i"))}update(e){if(e||(e=o(this,De).selection.getNode()),e===o(this,De).store.get("_lastSelectionNode"))return;o(this,De).store.set("_lastSelectionNode",e);const t=o(this,De).options.get("_rtl")?"marginRight":"marginLeft",i=o(this,De).plugins,n=o(this,De).commandDispatcher.targets,r=o(this,ih),a=o(this,De).options.get("_styleCommandMap"),c=[],d=[],u=o(this,De).options.get("_textStyleTags"),f=[],p=[],m=o(this,De).commandDispatcher.activeCommands,g=m.length;let y="";if(o(this,De).component.is(e)&&!o(this,De).component.__selectionSelected){const w=o(this,De).component.get(e);if(!w)return;o(this,De).store.set("_lastSelectionNode",null),o(this,De).component.select(w.target,w.pluginName);return}for(;e.firstChild;)e=e.firstChild;const v=o(this,De).frameContext,C=!v.get("isReadOnly");for(let w=e;!h.check.isWysiwygFrame(w)&&w;w=w.parentElement)if(!(w.nodeType!==1||h.check.isBreak(w))){if(T(this,jp,E5).call(this,w)){o(this,De).focusManager.blur();return}if(y=w.nodeName.toLowerCase(),d.push(y),u.includes(y)&&!o(this,De).format.isLine(y)&&f.push(w),C)for(let k=0,_;k<g;k++)_=m[k],!c.includes(_)&&!p.includes(_)&&n.get(_)&&n.get(_).filter(M=>{var x;const S=(x=i[_])==null?void 0:x.active(w,M);return S===void 0&&p.push(_),S}).length>0&&c.push(_);if(o(this,De).format.isLine(w)){if(!c.includes("outdent")&&n.has("outdent")&&(h.check.isListCell(w)||w.style[t]&&Q.get(w.style[t],0)>0)&&n.get("outdent").filter(k=>h.check.isImportantDisabled(k)?!1:(k.disabled=!1,!0)).length>0&&c.push("outdent"),!c.includes("indent")&&n.has("indent")){const k=h.check.isListCell(w)&&!w.previousElementSibling;n.get("indent").filter(_=>h.check.isImportantDisabled(_)?!1:(_.disabled=k,!0)).length>0&&c.push("indent")}continue}r.test(y)&&(y=a[y]||y,c.push(y),h.utils.addClass(n.get(y),"active"))}return T(this,nh,xg).call(this,c),o(this,sh).__cacheStyleNodes=f.reverse(),o(this,De).store.set("currentNodes",d.reverse()),o(this,De).store.set("currentNodesMap",c),o(this,De).frameOptions.get("statusbar_showPathLabel")&&v.get("navigation")&&(v.get("navigation").textContent=o(this,De).options.get("_rtl")?o(this,De).store.get("currentNodes").reverse().join(" < "):o(this,De).store.get("currentNodes").join(" > ")),e}reset(){T(this,nh,xg).call(this,[])}}sh=new WeakMap,De=new WeakMap,ih=new WeakMap,nh=new WeakSet,xg=function(e){const t=o(this,De).commandDispatcher.activeCommands,i=o(this,De).commandDispatcher.targets,n=o(this,De).plugins;for(let r=0,a=t.length,c,d,u;r<a;r++)if(c=t[r],!(e.includes(c)||!(d=i.get(c)))){u=n[c];for(let f=0,p=d.length,m;f<p;f++)m=d[f],m&&(u?u.active(null,m):/^outdent$/i.test(c)?h.check.isImportantDisabled(m)||(m.disabled=!0):/^indent$/i.test(c)?h.check.isImportantDisabled(m)||(m.disabled=!1):h.utils.removeClass(m,"active"))}},jp=new WeakSet,E5=function(e){return h.check.isElement(e)&&e.getAttribute("data-se-non-focus")==="true"};const{_w:yt,isMobile:u0,isTouchDevice:h0}=me;var be,fi,ts,Rt,oe,nt,ot,It,Wt,Pn,Hn,Fn,Up,T5,qp,S5,gr,Tc,Zp,x5,Gp,M5,Yp,B5,Kp,N5,Xp,L5,Qp,A5,Jp,$5,oh,Mg,em,O5,tm,V5,sm,R5,im,I5,nm,D5,om,P5,rm,H5,lm,F5;class _$ extends $A{constructor(t){super(t);b(this,Up);b(this,qp);b(this,gr);b(this,Zp);b(this,Gp);b(this,Yp);b(this,Kp);b(this,Xp);b(this,Qp);b(this,Jp);b(this,oh);b(this,em);b(this,tm);b(this,sm);b(this,im);b(this,nm);b(this,om);b(this,rm);b(this,lm);b(this,be,void 0);b(this,fi,void 0);b(this,ts,void 0);b(this,Rt,void 0);b(this,oe,void 0);b(this,nt,void 0);b(this,ot,void 0);b(this,It,void 0);b(this,Wt,null);b(this,Pn,null);b(this,Hn,null);b(this,Fn,null);E(this,be,this.$.store),E(this,fi,this.$.contextProvider),E(this,ts,this.$.context),E(this,Rt,this.$.options),E(this,oe,this.$.eventManager),E(this,nt,this.$.toolbar),E(this,ot,this.$.ui),E(this,It,this.$.menu),this.isComposing=!1,this._enterKeyShift=!1,this.scrollparents=[],this.defaultLineManager=new w$(this),this.selectionState=new k$(this),this._onShortcutKey=!1,this._handledInBefore=!1,this._wwFrameObserver=null,this._toolbarObserver=null,this._lineBreakComp=null,this._formatAttrsTemp=null,this._resizeClientY=0,this.__cacheStyleNodes=[],this.__onDownEv=null,this._inputFocus=!1,this.__inputPlugin=null,this.__inputBlurEvent=null,this.__inputKeyEvent=null,this.__retainTimer=null,this.__eventDoc=null,this.__secopy=null,this.__focusTemp=o(this,fi).carrierWrapper.querySelector(".__se__focus__temp__")}applyTagEffect(t){return this.selectionState.update(t)}_showToolbarBalloonDelay(){o(this,Wt)&&yt.clearTimeout(o(this,Wt)),E(this,Wt,yt.setTimeout(()=>{yt.clearTimeout(o(this,Wt)),E(this,Wt,null),o(this,be).mode.isSubBalloon?this.$.subToolbar._showBalloon():o(this,nt)._showBalloon()},250))}_toggleToolbarBalloon(){this.$.selection.init();const t=this.$.selection.getRange(),i=o(this,Rt).has("_subMode");!(i?o(this,be).mode.isSubBalloonAlways:o(this,be).mode.isBalloonAlways)&&t.collapsed?i?this._hideToolbar_sub():this._hideToolbar():i?this.$.subToolbar._showBalloon(t):o(this,nt)._showBalloon(t)}_hideToolbar(){!o(this,ot).isPreventToolbarHide&&!this.$.frameContext.get("isFullScreen")&&o(this,nt).hide()}_hideToolbar_sub(){this.$.subToolbar&&!o(this,ot).isPreventToolbarHide&&this.$.subToolbar.hide()}_setDefaultLine(t){return this.defaultLineManager.execute(t)}_normalizeEditRange(){var i;if(!this.$.format.isLine((i=this.$.selection.getRange())==null?void 0:i.startContainer))return null;this.$.selection.resetRangeToTextNode();const t=this.$.selection.getRange();if(t.startContainer===t.endContainer&&t.startOffset!==t.endOffset&&t.startContainer.nodeType===3&&h.check.isZeroWidth(t.startContainer)){const n=t.startContainer.nextSibling;n&&h.check.isBreak(n)?this.$.selection.setRange(n,0,n,0):this.$.selection.setRange(t.endContainer,t.endOffset,t.endContainer,t.endOffset)}return this.$.selection.getNode()}async _dataTransferAction(t,i,n,r){try{return o(this,ot).showLoading(),await T(this,qp,S5).call(this,t,i,n,r),i.preventDefault(),i.stopPropagation(),!1}catch(a){console.warn("[SUNEDITOR.paste.error]",a)}finally{o(this,ot).hideLoading()}}_addCommonEvents(){const t=RA.bind(this),i=DA.bind(this);o(this,oe).addEvent(o(this,ts).get("menuTray"),"mousedown",t,!1),o(this,oe).addEvent(o(this,ts).get("menuTray"),"click",IA.bind(this),!0),o(this,oe).addEvent(o(this,ts).get("toolbar_main"),"mousedown",t,!1),o(this,oe).addEvent(o(this,ts).get("toolbar_main"),"click",i,!1),o(this,Rt).has("_subMode")&&(o(this,oe).addEvent(o(this,ts).get("toolbar_sub_main"),"mousedown",t,!1),o(this,oe).addEvent(o(this,ts).get("toolbar_sub_main"),"click",i,!1)),o(this,nt)._setResponsive(),me.isResizeObserverSupported&&(this._toolbarObserver=new ResizeObserver(()=>{yt.setTimeout(()=>{o(this,nt).resetResponsiveToolbar()},0)}),this._wwFrameObserver=new ResizeObserver(n=>{yt.setTimeout(()=>{n.forEach(r=>{o(this,ot)._emitResizeEvent(this.$.frameRoots.get(r.target.getAttribute("data-root-key")),-1,r)}),o(this,be).mode.isInline&&o(this,be).mode.isBottom&&o(this,nt)._resetSticky()},0)})),o(this,Rt).get("closeModalOutsideClick")&&o(this,oe).addEvent(o(this,fi).carrierWrapper.querySelector(".se-modal .se-modal-inner"),"click",n=>{n.target===o(this,fi).carrierWrapper.querySelector(".se-modal .se-modal-inner")&&o(this,ot).offCurrentModal()},!1),o(this,oe).addEvent(yt,"resize",T(this,em,O5).bind(this),!1),o(this,oe).addEvent(yt.visualViewport,"resize",T(this,tm,V5).bind(this),!1),o(this,oe).addEvent(yt,"scroll",T(this,sm,R5).bind(this),!1),h0&&o(this,oe).addEvent(yt.visualViewport,"scroll",T(this,im,I5).bind(this),!1)}_addFrameEvents(t){const i=t.get("options").get("iframe"),n=i?t.get("_ww"):t.get("wysiwyg");t.set("eventWysiwyg",n);const r=t.get("code"),a=o(this,fi).carrierWrapper.querySelector(".se-drag-cursor"),c=WA.bind(this,t);o(this,oe).addEvent(n,"mousemove",c,!1),o(this,oe).addEvent(n,"mouseleave",zA.bind(this,t),!1),o(this,oe).addEvent(n,"mousedown",PA.bind(this,t),!1),o(this,oe).addEvent(n,"mouseup",HA.bind(this,t),!1),o(this,oe).addEvent(n,"click",FA.bind(this,t),!1),o(this,oe).addEvent(n,"beforeinput",a$.bind(this,t),!1),o(this,oe).addEvent(n,"input",d$.bind(this,t),!1),o(this,oe).addEvent(n,"keydown",h$.bind(this,t),!1),o(this,oe).addEvent(n,"keyup",f$.bind(this,t),!1),o(this,oe).addEvent(n,"paste",m$.bind(this,t),!1),o(this,oe).addEvent(n,"copy",g$.bind(this,t),!1),o(this,oe).addEvent(n,"cut",v$.bind(this,t),!1),o(this,oe).addEvent(n,"dragover",y$.bind(this,t,a,i?this.$.frameContext.get("topArea"):null,!o(this,Rt).get("toolbar_container")&&!o(this,be).mode.isBalloon&&!o(this,be).mode.isInline),!1),o(this,oe).addEvent(n,"dragend",C$.bind(this,a),!1),o(this,oe).addEvent(n,"drop",b$.bind(this,t,a),!1),o(this,oe).addEvent(n,"scroll",T(this,Gp,M5).bind(this,t,n),{passive:!0,capture:!1}),o(this,oe).addEvent(n,"focus",T(this,Yp,B5).bind(this,t),!1),o(this,oe).addEvent(n,"blur",T(this,Kp,N5).bind(this,t),!1),o(this,oe).addEvent(r,"mousedown",T(this,rm,H5).bind(this,t),!1);const d=t.get("wrapper").querySelector(".se-drag-handle");if(o(this,oe).addEvent(d,"wheel",m=>{m.preventDefault(),this.$.component.deselect()},!1),o(this,oe).addEvent(t.get("lineBreaker_t"),"pointerdown",T(this,oh,Mg).bind(this,"t"),!1),o(this,oe).addEvent(t.get("lineBreaker_b"),"pointerdown",T(this,oh,Mg).bind(this,"b"),!1),h0&&o(this,oe).addEvent(n,"touchstart",c,{passive:!0,capture:!1}),!o(this,Rt).get("hasCodeMirror")){const m=t.get("codeNumbers"),g=this.$.viewer._codeViewAutoHeight.bind(this.$.viewer,t.get("code"),m,this.$.frameOptions.get("height")==="auto");o(this,oe).addEvent(r,"keydown",g,!1),o(this,oe).addEvent(r,"keyup",g,!1),o(this,oe).addEvent(r,"paste",g,!1),o(this,Rt).get("tabDisable")||o(this,oe).addEvent(r,"keydown",vv,!1),m&&o(this,oe).addEvent(r,"scroll",this.$.viewer._scrollLineNumbers.bind(r,m),!1)}const u=t.get("markdown");if(u){o(this,oe).addEvent(u,"mousedown",T(this,lm,F5).bind(this,t),!1);const m=t.get("markdownNumbers"),g=this.$.viewer._markdownViewAutoHeight.bind(this.$.viewer,u,m,this.$.frameOptions.get("height")==="auto");o(this,oe).addEvent(u,"keydown",g,!1),o(this,oe).addEvent(u,"keyup",g,!1),o(this,oe).addEvent(u,"paste",g,!1),o(this,Rt).get("tabDisable")||o(this,oe).addEvent(u,"keydown",vv,!1),m&&o(this,oe).addEvent(u,"scroll",this.$.viewer._scrollMarkdownLineNumbers.bind(u,m),!1)}t.has("statusbar")&&this.__addStatusbarEvent(t,t.get("options"));const f=T(this,om,P5).bind(this),p=h.query.getScrollParents(t.get("originElement"));for(const m of p)this.scrollparents.push(m),o(this,oe).addEvent(m,"scroll",f,!1);o(this,oe).addEvent(this.__focusTemp,"focus",m=>m.preventDefault(),!1),this.__eventDoc!==t.get("_wd")&&(this.__eventDoc=t.get("_wd"),o(this,oe).addEvent(this.__eventDoc,"selectionchange",T(this,nm,D5).bind(this,this.__eventDoc),!1))}__addStatusbarEvent(t,i){/\d+/.test(i.get("height"))&&i.get("statusbar_resizeEnable")?i.set("__statusbarEvent",o(this,oe).addEvent(t.get("statusbar"),"mousedown",T(this,Xp,L5).bind(this),!1)):h.utils.addClass(t.get("statusbar"),"se-resizing-none")}_removeAllEvents(){o(this,oe)._init(),this._wwFrameObserver&&(this._wwFrameObserver.disconnect(),this._wwFrameObserver=null),this._toolbarObserver&&(this._toolbarObserver.disconnect(),this._toolbarObserver=null),o(this,Wt)&&(yt.clearTimeout(o(this,Wt)),E(this,Wt,null)),this.__retainTimer&&(yt.clearTimeout(this.__retainTimer),this.__retainTimer=null),o(this,Hn)&&E(this,Hn,o(this,oe).removeGlobalEvent(o(this,Hn))),o(this,Fn)&&E(this,Fn,o(this,oe).removeGlobalEvent(o(this,Fn))),o(this,Pn)&&E(this,Pn,o(this,oe).removeGlobalEvent(o(this,Pn))),this._formatAttrsTemp=null,this.__cacheStyleNodes=null,this.__inputPlugin=null,this.__inputBlurEvent=null,this.__inputKeyEvent=null,this.__focusTemp=null,this.__eventDoc=null,this.__secopy=null,this._lineBreakComp=null,this.scrollparents=null}_setSelectionSync(){o(this,oe).removeGlobalEvent(o(this,Hn)),E(this,Hn,o(this,oe).addGlobalEvent("mouseup",()=>{this.$.selection.init(),o(this,oe).removeGlobalEvent(o(this,Hn))}))}_retainStyleNodes(t,i){let r=i[0].cloneNode(!1);for(let u=1,f=i.length,p;u<f;u++)p=i[u].cloneNode(!1),r.appendChild(p),r=p;const{parent:a,inner:c}=this.$.nodeTransform.createNestedNode(i,null),d=h.utils.createTextNode(Ie.zeroWidthSpace);c.appendChild(d),t.innerHTML="",t.appendChild(a),this.$.selection.setRange(d,1,d,1)}_clearRetainStyleNodes(t){t.innerHTML="<br>",this.$.selection.setRange(t,0,t,0)}_callPluginEvent(t,i){return this.$.pluginManager.emitEvent(t,i)}async _callPluginEventAsync(t,i){return await this.$.pluginManager.emitEventAsync(t,i)}__removeInput(){o(this,be).set("_preventBlur",!1),this._inputFocus=!1,this.__inputBlurEvent=o(this,oe).removeEvent(this.__inputBlurEvent),this.__inputKeyEvent=o(this,oe).removeEvent(this.__inputKeyEvent),this.__inputPlugin=null}__postFocusEvent(t,i){(o(this,be).mode.isInline||o(this,be).mode.isBalloonAlways)&&o(this,nt).show(),o(this,be).mode.isSubBalloonAlways&&this.$.subToolbar.show(),o(this,nt)._resetSticky(),o(this,ot)._updatePlaceholder(t),o(this,oe).triggerEvent("onFocus",{frameContext:t,event:i}),this._callPluginEvent("onFocus",{frameContext:t,event:i})}__postBlurEvent(t,i){o(this,be).mode.isInline?yt.setTimeout(()=>{o(this,be).get("hasFocus")||this._hideToolbar()},0):o(this,be).mode.isBalloon&&this._hideToolbar(),o(this,be).mode.isSubBalloon&&this._hideToolbar_sub(),o(this,oe).triggerEvent("onBlur",{frameContext:t,event:i}),this._callPluginEvent("onBlur",{frameContext:t,event:i})}__setViewportSize(){o(this,be).set("currentViewportHeight",Q.get(yt.visualViewport.height,0))}}be=new WeakMap,fi=new WeakMap,ts=new WeakMap,Rt=new WeakMap,oe=new WeakMap,nt=new WeakMap,ot=new WeakMap,It=new WeakMap,Wt=new WeakMap,Pn=new WeakMap,Hn=new WeakMap,Fn=new WeakMap,Up=new WeakSet,T5=function(){o(this,Wt)&&yt.clearTimeout(o(this,Wt)),E(this,Wt,yt.setTimeout(()=>{yt.clearTimeout(o(this,Wt)),E(this,Wt,null),this._toggleToolbarBalloon()},250))},qp=new WeakSet,S5=async function(t,i,n,r){i.preventDefault(),i.stopPropagation();let a=n.getData("text/plain"),c=n.getData("text/html");const d=!c,u=this.__secopy===a,f=/class=["']*Mso(Normal|List)/i.test(c)||/content=["']*Word.Document/i.test(c)||/content=["']*OneNote.File/i.test(c)||/content=["']*Excel.Sheet/i.test(c),p=u?"SE":f?"MS":"";if(d?c=Se.htmlToEntity(a).replace(/\n/g,"<br>"):(c=c.replace(/^<html>\r?\n?<body>\r?\n?\x3C!--StartFragment-->|\x3C!--EndFragment-->\r?\n?<\/body>\r?\n?<\/html>$/g,""),f&&(c=c.replace(/\n/g," "),a=a.replace(/\n/g," "),c=cN.cleanHTML(c))),!u&&o(this,Rt).get("autoLinkify")){const v=new DOMParser().parseFromString(c,"text/html");h.query.getListChildNodes(v.body,Se.textToAnchor,null),c=v.body.innerHTML}d||(c=this.$.html.clean(c,{forceFormat:!1,whitelist:null,blacklist:null}));const m=this.$.char.test(this.$.frameOptions.get("charCounter_type")==="byte-html"?c:a,!1);if(t==="paste"){const y=await o(this,oe).triggerEvent("onPaste",{frameContext:r,event:i,data:c,maxCharCount:m,from:p});if(y===!1)return!1;if(typeof y=="string"){if(!y)return!1;c=y}}if(t==="drop"){const y=await o(this,oe).triggerEvent("onDrop",{frameContext:r,event:i,data:c,maxCharCount:m,from:p});if(y===!1)return!1;if(typeof y=="string"){if(!y)return!1;c=y}}const g=n.files;if(g.length>0&&!f){for(let y=0,v=g.length;y<v;y++)await this._callPluginEventAsync("onFilePasteAndDrop",{frameContext:r,event:i,file:g[y]});return!1}if(!m)return!1;if(c){const y=new DOMParser().parseFromString(c,"text/html");return await this._callPluginEventAsync("onPaste",{frameContext:r,event:i,data:c,doc:y})!==!1&&this.$.html.insert(c,{selectInserted:!1,skipCharCount:!0,skipCleaning:!0}),r.has("documentType_use_header")&&r.get("documentType").reHeader(),!1}},gr=new WeakSet,Tc=function(){o(this,It).currentDropdownActiveButton&&o(this,It).currentDropdown&&o(this,It).__resetMenuPosition(o(this,It).currentDropdownActiveButton,o(this,It).currentDropdown),o(this,ot)._repositionControllers()},Zp=new WeakSet,x5=function(){me.isResizeObserverSupported||(o(this,nt).resetResponsiveToolbar(),o(this,Rt).get("_subMode")&&this.$.subToolbar.resetResponsiveToolbar());const t=o(this,ts).get("toolbar_main"),i=t.style.display==="none"||o(this,be).mode.isInline&&!o(this,nt).inlineToolbarAttr.isShow;if(t.offsetWidth===0&&!i)return;const n=o(this,ot).opendBrowser;if(n&&n.area.style.display==="block"&&(n.body.style.maxHeight=h.utils.getClientSize().h-n.header.offsetHeight-50+"px"),o(this,It).currentDropdownActiveButton&&o(this,It).currentDropdown&&o(this,It).__resetMenuPosition(o(this,It).currentDropdownActiveButton,o(this,It).currentDropdown),this.$.viewer._resetFullScreenHeight())return;const r=this.$.frameContext;if(r.get("isCodeView")&&o(this,be).mode.isInline){o(this,nt)._showInline();return}o(this,ot)._iframeAutoHeight(r),o(this,nt).isSticky&&(o(this,nt).isCSSSticky||(o(this,ts).get("toolbar_main").style.width=r.get("topArea").offsetWidth-2+"px"),o(this,nt)._resetSticky())},Gp=new WeakSet,M5=function(t,i,n){o(this,ot)._syncScrollPosition(i),T(this,gr,Tc).call(this),this._callPluginEvent("onScroll",{frameContext:t,event:n}),t.has("documentType_use_page")&&t.get("documentType").scrollPage(),o(this,oe).triggerEvent("onScroll",{frameContext:t,event:n})},Yp=new WeakSet,B5=function(t,i){if(this.$.selection.__iframeFocus||t.get("isReadOnly")||t.get("isDisabled"))return i.preventDefault(),!1;o(this,be).set("hasFocus",!0),this.$.component.__prevent=!1,o(this,oe).triggerEvent("onNativeFocus",{frameContext:t,event:i});const n=t.get("key");if(this._inputFocus){o(this,be).mode.isInline&&yt.setTimeout(()=>{o(this,nt)._showInline()},0);return}o(this,be).get("rootKey")===n&&o(this,be).get("_preventBlur")||o(this,be).get("_preventFocus")||(o(this,be).set("_preventFocus",!0),h.utils.removeClass(this.$.commandDispatcher.targets.get("codeView"),"active"),o(this,ot)._toggleCodeViewButtons(!1),this.$.facade.changeFrameContext(n),this.$.history.resetButtons(n,null),yt.setTimeout(()=>{this.__postFocusEvent(t,i)},0))},Kp=new WeakSet,N5=function(t,i){t.get("isCodeView")||t.get("isReadOnly")||t.get("isDisabled")||(o(this,be).set("hasFocus",!1),o(this,be).set("_lastSelectionNode",null),o(this,oe).triggerEvent("onNativeBlur",{frameContext:t,event:i}),o(this,ot)._updatePlaceholder(t),!(this._inputFocus||o(this,be).get("_preventBlur"))&&(o(this,be).set("_preventFocus",!1),this.selectionState.reset(),o(this,be).set("currentNodes",[]),o(this,be).set("currentNodesMap",[]),o(this,ot).offCurrentController(),o(this,fi).applyToRoots(n=>{n.get("navigation")&&(n.get("navigation").textContent="")}),this.$.history.check(t.get("key"),o(this,be).get("_range")),this.__postBlurEvent(t,i)))},Xp=new WeakSet,L5=function(t){t.stopPropagation(),this._resizeClientY=t.clientY,o(this,ot).enableBackWrapper("ns-resize"),E(this,Fn,o(this,oe).addGlobalEvent("mousemove",T(this,Qp,A5).bind(this))),E(this,Pn,o(this,oe).addGlobalEvent("mouseup",T(this,Jp,$5).bind(this)))},Qp=new WeakSet,A5=function(t){const i=this.$.frameContext,n=i.get("wrapper").offsetHeight+(t.clientY-this._resizeClientY),r=n<i.get("_minHeight")?i.get("_minHeight"):n;i.get("wysiwygFrame").style.height=i.get("code").style.height=r+"px",this._resizeClientY=t.clientY,me.isResizeObserverSupported||o(this,ot)._emitResizeEvent(i,r,null)},Jp=new WeakSet,$5=function(){o(this,ot).disableBackWrapper(),o(this,Fn)&&E(this,Fn,o(this,oe).removeGlobalEvent(o(this,Fn))),o(this,Pn)&&E(this,Pn,o(this,oe).removeGlobalEvent(o(this,Pn)))},oh=new WeakSet,Mg=function(t,i){i.preventDefault();const n=this._lineBreakComp;if(!n)return;const r=h.check.isListCell(n.parentElement),a=h.utils.createElement(r?"BR":h.check.isTableCell(n.parentElement)?"DIV":o(this,Rt).get("defaultLine"));if(r||(a.innerHTML="<br>"),!(this.$.frameOptions.get("charCounter_type")==="byte-html"&&!this.$.char.check(a.outerHTML))){n.parentNode.insertBefore(a,t==="t"?n:n.nextSibling),this.$.component.deselect();try{const c=r?a:a.firstChild;this.$.selection.setRange(c,1,c,1),this.$.history.push(!1)}catch(c){console.warn("[SUNEDITOR.lineBreaker.error]",c)}}},em=new WeakSet,O5=function(){o(this,be).set("initViewportHeight",yt.visualViewport.height),u0||o(this,ot).offCurrentController(),o(this,be).mode.isBalloon?o(this,nt).hide():o(this,be).mode.isSubBalloon&&this.$.subToolbar.hide(),T(this,Zp,x5).call(this)},tm=new WeakSet,V5=function(){u0&&o(this,Rt).get("_toolbar_sticky")>-1&&(o(this,nt)._resetSticky(),o(this,It).__restoreMenuPosition()),T(this,gr,Tc).call(this);const t=o(this,be).get("currentViewportHeight");this.__setViewportSize(),u0&&t>0&&t-yt.visualViewport.height>100&&o(this,be).get("hasFocus")&&this.$.selection.scrollTo(this.$.selection.getRange(),{behavior:"auto",block:"nearest",inline:"nearest"})},sm=new WeakSet,R5=function(){o(this,Rt).get("_toolbar_sticky")>-1&&o(this,nt)._resetSticky(),o(this,be).mode.isBalloon&&o(this,ts).get("toolbar_main").style.display==="block"?o(this,nt)._setBalloonOffset(o(this,nt).balloonOffset.position==="top"):o(this,be).mode.isSubBalloon&&o(this,ts).get("toolbar_sub_main").style.display==="block"&&this.$.subToolbar._setBalloonOffset(this.$.subToolbar.balloonOffset.position==="top"),T(this,gr,Tc).call(this),this.$.frameContext.has("documentType_use_page")&&this.$.frameContext.get("documentType").scrollWindow()},im=new WeakSet,I5=function(){o(this,Rt).get("_toolbar_sticky")>-1&&(o(this,nt)._resetSticky(),o(this,It).__restoreMenuPosition())},nm=new WeakSet,D5=function(t){let n=t.getSelection().anchorNode;o(this,fi).applyToRoots(r=>{if(n&&r.get("wysiwyg").contains(n)){if(r.get("isReadOnly")||r.get("isDisabled"))return;if(n=null,this.$.selection.init(),this.applyTagEffect(),o(this,ot)._updatePlaceholder(r),h0&&(o(this,be).mode.isBalloon||o(this,be).mode.isSubBalloon)&&T(this,Up,T5).call(this),r.has("documentType_use_header")){const a=h.query.getParentElement(this.$.selection.selectionNode,this.$.format.isLine.bind(this.$.format));r.get("documentType").on(a)}}})},om=new WeakSet,P5=function(){o(this,It).dropdownOff(),T(this,gr,Tc).call(this)},rm=new WeakSet,H5=function(t){this.$.facade.changeFrameContext(t.get("key")),h.utils.addClass(this.$.commandDispatcher.targets.get("codeView"),"active"),o(this,ot)._toggleCodeViewButtons(!0)},lm=new WeakSet,F5=function(t){this.$.facade.changeFrameContext(t.get("key")),h.utils.addClass(this.$.commandDispatcher.targets.get("markdownView"),"active"),o(this,ot)._toggleCodeViewButtons(!0)};function vv(s){if(s.key!=="Tab")return;s.preventDefault();const e=s.target,t=e.selectionStart,i=e.selectionEnd;e.value=e.value.substring(0,t)+" "+e.value.substring(i),e.selectionStart=e.selectionEnd=t+1}const E$=_$;var ss,ve,am,W5,cm,z5,dm,j5,um,U5,hm,q5;class T${constructor(e,t){b(this,am);b(this,cm);b(this,dm);b(this,um);b(this,hm);b(this,ss,new Map);b(this,ve,new Map);Mr(this,"$",null);const{product:i,options:n}=t;this.store=new $N(i),this.$={facade:e,store:this.store},T(this,am,W5).call(this,i,n),T(this,cm,z5).call(this),T(this,dm,j5).call(this,i),T(this,hm,q5).call(this),T(this,um,U5).call(this),this._eventOrchestrator=new E$(this),o(this,ss).get("eventManager")._bindOrchestrator(this._eventOrchestrator)}_destroy(){var t,i,n;if(this.$===null)return;const e=[];for(const[r,a]of o(this,ve))try{(t=a==null?void 0:a._destroy)==null||t.call(a)}catch(c){e.push(`[Logic:${r}] ${c.message}`)}o(this,ve).clear();try{(i=this._eventOrchestrator)==null||i._removeAllEvents()}catch(r){e.push(`[EventOrchestrator] ${r.message}`)}this._eventOrchestrator=null;for(const[r,a]of o(this,ss))try{(n=a==null?void 0:a._destroy)==null||n.call(a)}catch(c){e.push(`[Config:${r}] ${c.message}`)}o(this,ss).clear(),e.length>0&&console.warn("[CoreKernel._destroy] Cleanup completed with errors:",e),this.$=null,this.store._destroy(),this.store=null,this.facade=null}}ss=new WeakMap,ve=new WeakMap,am=new WeakSet,W5=function(e,t){const i=new VN(e),n=new RN(this,e,t);o(this,ss).set("contextProvider",i),o(this,ss).set("optionProvider",n),o(this,ss).set("instanceCheck",new DN(i.frameContext)),o(this,ss).set("eventManager",new qN(i,n,this.$))},cm=new WeakSet,z5=function(){const e=o(this,ss).get("contextProvider"),t=o(this,ss).get("optionProvider");Object.assign(this.$,{contextProvider:e,optionProvider:t,instanceCheck:o(this,ss).get("instanceCheck"),eventManager:o(this,ss).get("eventManager"),frameRoots:e.frameRoots,context:e.context,options:t.options,icons:e.icons,lang:e.lang,frameContext:e.frameContext,frameOptions:t.frameOptions})},dm=new WeakSet,j5=function(e){o(this,ve).set("offset",new GN(this)),o(this,ve).set("selection",new KN(this)),o(this,ve).set("html",new NL(this)),o(this,ve).set("nodeTransform",new AL(this)),o(this,ve).set("format",new QN(this)),o(this,ve).set("inline",new eL(this)),o(this,ve).set("listFormat",new sL(this)),o(this,ve).set("char",new OL(this)),o(this,ve).set("shortcuts",new RL(this)),o(this,ve).set("component",new JL(this)),o(this,ve).set("pluginManager",new tA(this,e)),o(this,ve).set("focusManager",new sA(this)),o(this,ve).set("ui",new wA(this)),o(this,ve).set("commandDispatcher",new vA(this)),o(this,ve).set("toolbar",new lv(this,{keyName:"toolbar",balloon:this.store.mode.isBalloon,balloonAlways:this.store.mode.isBalloonAlways,inline:this.store.mode.isInline,res:e.responsiveButtons})),this.$.options.has("_subMode")&&o(this,ve).set("subToolbar",new lv(this,{keyName:"toolbar_sub",balloon:this.store.mode.isSubBalloon,balloonAlways:this.store.mode.isSubBalloonAlways,inline:!1,res:e.responsiveButtons_sub})),o(this,ve).set("menu",new SA(this)),o(this,ve).set("viewer",new MA(this)),o(this,ve).set("finder",new LA(this)),o(this,ve).set("history",kA(this))},um=new WeakSet,U5=function(){for(const[,e]of o(this,ve))typeof(e==null?void 0:e._init)=="function"&&e._init()},hm=new WeakSet,q5=function(){const e=o(this,ve).get("pluginManager");Object.assign(this.$,{offset:o(this,ve).get("offset"),selection:o(this,ve).get("selection"),format:o(this,ve).get("format"),inline:o(this,ve).get("inline"),listFormat:o(this,ve).get("listFormat"),html:o(this,ve).get("html"),nodeTransform:o(this,ve).get("nodeTransform"),char:o(this,ve).get("char"),component:o(this,ve).get("component"),focusManager:o(this,ve).get("focusManager"),pluginManager:e,plugins:e.plugins,ui:o(this,ve).get("ui"),commandDispatcher:o(this,ve).get("commandDispatcher"),history:o(this,ve).get("history"),shortcuts:o(this,ve).get("shortcuts"),toolbar:o(this,ve).get("toolbar"),subToolbar:o(this,ve).get("subToolbar"),menu:o(this,ve).get("menu"),viewer:o(this,ve).get("viewer"),finder:o(this,ve).get("finder")})};const S$=T$;var is,Va,Yh,fm,Z5,pm,G5,mm,Y5,gm,K5,vm,X5;class x${constructor(e,t){b(this,Va);b(this,fm);b(this,pm);b(this,mm);b(this,gm);b(this,vm);b(this,is,void 0);Mr(this,"$");const i=gN(e,t),n=new S$(this,{product:i,options:t});E(this,is,n),this.$=n.$,T(this,vm,X5).call(this,t).catch(r=>{console.error("[SUNEDITOR:E_CREATE_FAIL] Failed to create editor instance.",r)})}isEmpty(e){const t=(e||this.$.frameContext).get("wysiwyg");return h.check.isZeroWidth(t.textContent)&&!t.querySelector(this.$.options.get("allowedEmptyTags"))&&(t.innerText.match(/\n/g)||"").length<=1}resetOptions(e){var t;this.$.optionProvider.reset(e),this.$.store.set("_lastSelectionNode",null),T(this,Va,Yh).call(this,this.$.frameRoots.get(this.$.store.get("rootKey")));for(const i of Object.values(this.$.plugins))(t=i.init)==null||t.call(i)}changeFrameContext(e){e!==this.$.store.get("rootKey")&&(this.$.store.set("rootKey",e),T(this,Va,Yh).call(this,this.$.frameRoots.get(e)),this.$.toolbar._resetSticky())}destroy(){this.$.options.get("hasCodeMirror")&&this.$.contextProvider.applyToRoots(e=>{const i=e.get("options").get("codeMirrorEditor");i&&i.toTextArea()}),h.utils.removeItem(this.$.context.get("toolbar_wrapper")),h.utils.removeItem(this.$.context.get("toolbar_sub_wrapper")),h.utils.removeItem(this.$.context.get("statusbar_wrapper"));for(const e in this.events)this.events[e]=null;return this.events=null,o(this,is)._destroy(),null}}is=new WeakMap,Va=new WeakSet,Yh=function(e){this.$.contextProvider.reset(e),this.$.optionProvider.resetFrame(e.get("options")),this.$.ui.reset(e)},fm=new WeakSet,Z5=function(e){this.$.store.set("initViewportHeight",me._w.visualViewport.height),o(this,is)._eventOrchestrator.__setViewportSize(),this.$.store.set("_canUseBeforeInput",me.canUseBeforeInput()),this.$.contextProvider.init(),T(this,Va,Yh).call(this,this.$.frameRoots.get(this.$.store.get("rootKey"))),T(this,mm,Y5).call(this,e),this.$.contextProvider.applyToRoots(t=>{o(this,is)._eventOrchestrator._addFrameEvents(t),T(this,pm,G5).call(this,t,t.get("options").get("value")),t.get("options").get("iframe")&&t.get("options").get("height")==="auto"&&this.$.ui._emitResizeEvent(t,t.get("wysiwygFrame").offsetHeight,null)}),o(this,is)._eventOrchestrator.__eventDoc=null,this.$.store._editorInitFinished=!0,this.$.pluginManager.checkFileInfo(!0),this.$.history.reset(),me._w.setTimeout(()=>{var t,i;if(!((t=this.$.context)!=null&&t.size)){console.warn("[SUNEDITOR:E_INIT_FAIL] Editor instance was destroyed before initialization completed. Check if destroy() was called.");return}this.$.context.get("toolbar_main").style.visibility="",this.$.contextProvider.applyToRoots(n=>{o(this,is)._eventOrchestrator._wwFrameObserver&&o(this,is)._eventOrchestrator._wwFrameObserver.observe(n.get("wysiwygFrame")),o(this,is)._eventOrchestrator._toolbarObserver&&o(this,is)._eventOrchestrator._toolbarObserver.observe(n.get("_toolbarShadow")),this.$.ui._syncFrameState(n)});for(const n of Object.values(this.$.plugins))(i=n.init)==null||i.call(n);this.$.selection.__init(),this.$.eventManager.triggerEvent("onload",{})},0)},pm=new WeakSet,G5=function(e,t){e.get("wysiwyg").innerHTML=this.$.html.clean(typeof t=="string"?t:(/^TEXTAREA$/i.test(e.get("originElement").nodeName)?e.get("originElement").value:e.get("originElement").innerHTML)||"",{forceFormat:!0,whitelist:null,blacklist:null,_freeCodeViewMode:this.$.options.get("freeCodeViewMode")})||"<"+this.$.options.get("defaultLine")+"><br></"+this.$.options.get("defaultLine")+">",e.has("charCounter")&&(e.get("charCounter").textContent=String(this.$.char.getLength())),e.has("wordCounter")&&(e.get("wordCounter").textContent=String(this.$.char.getWordCount())),this.$.options.get("type")==="document"&&(e.set("documentType",new LN(o(this,is),e)),e.get("documentType").useHeader&&e.set("documentType_use_header",!0),e.get("documentType").usePage&&(e.set("documentType_use_page",!0),e.get("documentTypePageMirror").innerHTML=e.get("wysiwyg").innerHTML))},mm=new WeakSet,Y5=function(e){this.$.pluginManager.init(e),this.$.shortcuts._registerShortcuts(),this.$.commandDispatcher._initCommandButtons(),this.$.ui.init()},gm=new WeakSet,K5=function(e,t,i){e.contentDocument.documentElement.className="sun-editor",e.contentDocument.head.innerHTML='<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">'+Se._setIframeStyleLinks(i.get("iframe_cssFileName"))+Se._setAutoHeightStyle(i.get("height")),e.contentDocument.body.className=t.get("_editableClass"),e.contentDocument.body.setAttribute("contenteditable","true"),t.get("_rtl")&&(e.contentDocument.body.dir="rtl")},vm=new WeakSet,X5=async function(e){o(this,is)._eventOrchestrator._addCommonEvents();const t=[];this.$.contextProvider.applyToRoots(i=>{const n=i.get("originElement"),r=i.get("topArea");if(n.style.display="none",r.style.display="block",n.parentNode.insertBefore(r,n.nextElementSibling),i.get("options").get("iframe")){const a=new Promise(c=>{const d=u=>{T(this,gm,K5).call(this,u,this.$.optionProvider.options,i.get("options")),c()};if(me.isGecko){let u=null;this.$.eventManager.addEvent(i.get("wysiwygFrame"),"load",({target:f})=>{clearTimeout(u),u=setTimeout(()=>{this.$&&d(f)},60)})}else this.$.eventManager.addEvent(i.get("wysiwygFrame"),"load",({target:u})=>{d(u)})});t.push(a)}}),this.$.contextProvider.applyToRoots(i=>{i.get("wrapper").appendChild(i.get("wysiwygFrame")),i.get("documentTypeInner")&&i.get("wrapper").insertBefore(i.get("documentTypeInner"),i.get("wysiwygFrame")),i.get("documentTypePage")&&(i.get("wrapper").appendChild(i.get("documentTypePage")),i.get("wrapper").appendChild(i.get("documentTypePageMirror"))),i.get("blockHandleArea")&&i.get("wrapper").insertBefore(i.get("blockHandleArea"),i.get("wysiwygFrame"))}),t.length>0&&await Promise.all(t),T(this,fm,Z5).call(this,e)};const M$=x$,B$={init(s){return{create:(e,t)=>this.create(e,t,s)}},create(s,e,t){if(typeof e!="object"&&(e={}),t&&(e=(()=>[t,e].reduce((n,r)=>(Object.entries(r).forEach(([a,c])=>{if(a==="plugins"&&c&&n[a]){const d=Array.isArray(n[a])?n[a]:Object.values(n[a]),u=Array.isArray(c)?c:Object.values(c);n[a]=[...u.filter(f=>!d.includes(f)),...d]}else n[a]=c}),n),{}))()),!s)throw Error('[SUNEDITOR.create.fail] The first parameter "target" is missing.');const i=[];if(typeof s=="string"){const n=document.querySelector(s);if(!n)throw Error(`[SUNEDITOR.create.fail]-[document.querySelector(${s})] Cannot find target element. Make sure "${s}" is a valid selector and exists in the document.`);i.push({key:null,target:n})}else if(s.nodeType===1)i.push({key:null,target:s});else{let n;for(const r in s){if(n=s[r],!n.target||n.target.nodeType!==1)throw Error(`[SUNEDITOR.create.fail] suneditor multi root requires textarea's element at the "target" property.`);n.key=r,i.push(n)}}return new M$(i,e)}};const Kg=l.defineComponent({__name:"AoRichTextEditor",props:{modelValue:{default:""},readonly:{type:Boolean,default:!1},placeholder:{default:""}},emits:["update:modelValue","blur","focus"],setup(s,{emit:e}){const t=s,i=e,n=l.ref(null),r=l.shallowRef(null),a=l.ref(t.modelValue??""),c=l.ref(!1),d=f=>({value:f,placeholder:t.placeholder,width:"100%",minHeight:"100px",statusBar:!1,charCounter:!1,buttonList:[["bold","italic","underline","strike"],["ul","ol"]],editable:!t.readonly,attributesWhitelist:{all:{"data-mention":"data-mention"}},defaultStyle:`
|
|
224
|
-
font-family: inherit;
|
|
225
|
-
font-size: inherit;
|
|
226
|
-
line-height: 1.5;
|
|
227
|
-
padding: 0.5rem;
|
|
228
|
-
`,styles:{border:"1px solid var(--ao-color-neutral-light)",borderRadius:"var(--ao-border-radius-sm)"},onChange:p=>{a.value=p,i("update:modelValue",p)},onFocus:()=>{c.value=!0,i("focus")},onBlur:()=>{c.value=!1,i("blur",a.value)}}),u=()=>{!n.value||r.value||(r.value=B$.create(n.value,d(t.modelValue??"")))};return l.onMounted(()=>{setTimeout(u,0)}),l.onBeforeUnmount(()=>{r.value&&(r.value.destroy(),r.value=null)}),l.watch(()=>t.modelValue,f=>{const p=r.value;if(!p)return;const m=f??"";m!==a.value&&(a.value=m,c.value||p.setContents(m))}),l.watch(()=>t.readonly,f=>{const p=r.value;p&&p.setOptions({editable:!f})}),(f,p)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["ao-rich-text-editor",{"ao-rich-text-editor--readonly":s.readonly}])},[l.createElementVNode("textarea",{ref_key:"editorRef",ref:n},null,512)],2))}});const N$={class:"ao-comment"},L$={class:"ao-comment__created-at"},A$={class:"ao-comment__body"},$$={class:"ao-comment__content-wrapper"},O$=["innerHTML"],V$={key:1,class:"ao-comment__footer"},R$=l.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(s,{emit:e}){const t=s,i=e,n=l.computed(()=>t.user?`${t.user.firstName} ${t.user.lastName}`:null),r=l.ref(!1),a=l.ref(t.content);l.watch(()=>t.content,k=>{r.value||(a.value=k)});const c=l.computed(()=>{const k=t.editedAt?Ac(t.editedAt):void 0,_=Ac(t.createdAt);return u9(k??_,new Date)}),d=new Set(["P","BR","DIV","STRONG","B","EM","I","U","S","DEL","STRIKE","UL","OL","LI"]),u=new Set(["SCRIPT","STYLE","IFRAME","OBJECT","EMBED","SVG","MATH"]),f=k=>k.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'"),p=k=>/<\/?(?:p|br|div|strong|b|em|i|u|s|del|strike|ul|ol|li)\b[^>]*>/i.test(k),m=k=>{if(!k)return"";if(!p(k))return f(k).replace(/\r?\n/g,"<br>");const _=new DOMParser().parseFromString(k,"text/html"),M=S=>{if(Array.from(S.children).forEach(M),u.has(S.tagName)){S.remove();return}if(!d.has(S.tagName)){S.replaceWith(...Array.from(S.childNodes));return}Array.from(S.attributes).forEach(x=>{S.removeAttribute(x.name)})};return Array.from(_.body.children).forEach(M),_.body.innerHTML},g=l.computed(()=>m(t.content)),y=()=>{a.value=t.content,r.value=!0},v=()=>{i("edit",a.value),r.value=!1},C=()=>{a.value=t.content,r.value=!1},w=()=>{i("remove")};return(k,_)=>{var M;return l.openBlock(),l.createElementBlock("li",N$,[n.value?(l.openBlock(),l.createBlock(ji,{key:0,"avatar-url":(M=s.user)==null?void 0:M.avatarUrl,"user-name":n.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):l.createCommentVNode("",!0),l.createElementVNode("span",L$,l.toDisplayString(c.value),1),l.createElementVNode("div",A$,[l.createElementVNode("div",$$,[r.value?(l.openBlock(),l.createBlock(Kg,{key:1,modelValue:a.value,"onUpdate:modelValue":_[0]||(_[0]=S=>a.value=S),class:"ao-comment__editor"},null,8,["modelValue"])):(l.openBlock(),l.createElementBlock("div",{key:0,class:"ao-comment__content sun-editor-editable",innerHTML:g.value},null,8,O$))])]),s.isEditable?(l.openBlock(),l.createElementBlock("div",V$,[r.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(Ee,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:C}),l.createVNode(Ee,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:v})],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(Ee,{label:k.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:w},null,8,["label"]),l.createVNode(Ee,{label:k.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:y},null,8,["label"])],64))])):l.createCommentVNode("",!0)])}}});const I$={class:"ao-comments__header"},D$={class:"ao-comments__form-submit"},P$={key:0,class:"ao-comments__list"},H$=l.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(s,{emit:e}){const t=s,i=e,n=l.computed(()=>[...t.comments].sort((m,g)=>t8(Ac(m.createdAt),Ac(g.createdAt)))),r=m=>t.users.find(g=>g.id===m),a=l.ref(null),c=l.ref(t.newComment);l.watch(()=>t.newComment,m=>{m!==c.value&&(c.value=m)}),l.watch(()=>t.comments.length,async()=>{await l.nextTick(),a.value&&(a.value.scrollTop=a.value.scrollHeight)},{immediate:!0});const d=m=>{if(!m)return!0;const g=document.createElement("div");return g.innerHTML=m,(g.textContent??"").replace(/\u00a0/g," ").trim().length===0},u=()=>{d(c.value)||(i("createComment",{authorId:t.userId,message:c.value,mentionedUserIds:[]}),c.value="")},f=(m,g)=>{i("updateComment",{id:m,message:g,mentionedUserIds:[]})},p=m=>{i("removeComment",{id:m})};return(m,g)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"commentsContainer",ref:a,class:"ao-comments"},[l.createElementVNode("div",I$,[l.createElementVNode("form",{class:"ao-comments__form",onSubmit:l.withModifiers(u,["prevent"])},[l.createVNode(Kg,{modelValue:c.value,"onUpdate:modelValue":g[0]||(g[0]=y=>c.value=y),placeholder:m.$t("activity.comment.label"),class:"ao-comments__form-editor"},null,8,["modelValue","placeholder"]),l.createElementVNode("div",D$,[l.createVNode(Ee,{type:"submit","icon-name":"SendRounded",color:"primary",variant:"solid",corners:"round",size:"sm"})])],32)]),n.value.length>0?(l.openBlock(),l.createElementBlock("ul",P$,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,y=>(l.openBlock(),l.createBlock(R$,{key:y.id,user:r(y.author.id),content:y.message,"created-at":y.createdAt,"edited-at":y.updatedAt,"is-editable":y.author.id===s.userId,"mentionable-users":s.users,onEdit:v=>f(y.id,v),onRemove:v=>p(y.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):l.createCommentVNode("",!0)],512))}});const Q5=l.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(s,{emit:e}){const t=s,i=e,n=()=>{i("update:modelValue",!t.modelValue)};return(r,a)=>(l.openBlock(),l.createBlock(Ee,{color:s.modelValue?s.color:l.unref(Ng).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>n())},null,8,["color"]))}}),F$=l.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:s=>["underline"].includes(s)}},emits:["update:modelValue"],methods:{selectTab(s){this.$emit("update:modelValue",s)}}});const W$=["onClick"],z$={class:"tab-button__label"},j$={key:0,class:"tab-button__badge"};function U$(s,e,t,i,n,r){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":s.variant==="underline"}])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.tabs,a=>(l.openBlock(),l.createElementBlock("button",{key:a.value,class:l.normalizeClass(["tab-button",{"tab-button--active":a.value===s.modelValue},{"tab-button--underline":s.variant==="underline"}]),type:"button",onClick:c=>s.selectTab(a.value)},[l.createElementVNode("span",z$,l.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(l.openBlock(),l.createElementBlock("span",j$,l.toDisplayString(a.count),1)):l.createCommentVNode("",!0)],10,W$))),128))],2)}const hh=le(F$,[["render",U$],["__scopeId","data-v-0e91b31f"]]),q$=["innerHTML"],Z$={key:1,class:"ao-rich-text-content ao-rich-text-content--empty"},G$=l.defineComponent({__name:"AoRichTextContent",props:{content:{default:""}},setup(s){const e=s,t=l.computed(()=>{const r=e.content??"";return/<[pbiostrongemulolliclassem]/i.test(r)}),i=l.computed(()=>{const r=e.content??"";return r.trim()?[/^\s*<p><br\s*\/?>\s*<\/p>\s*$/i,/^\s*<p>\s*<\/p>\s*$/i,/^\s*<br\s*\/?>\s*$/i,/^\s*<div><br\s*\/?><\/div>\s*$/i].some(c=>c.test(r)):!0}),n=l.computed(()=>{const r=e.content??"";return r?t.value?r:r.replace(/\n/g,"<br>"):""});return(r,a)=>i.value?(l.openBlock(),l.createElementBlock("span",Z$,[l.renderSlot(r.$slots,"placeholder")])):(l.openBlock(),l.createElementBlock("div",{key:0,class:"ao-rich-text-content",innerHTML:n.value},null,8,q$))}});const Y$={class:"ao-activity-details"},K$={class:"ao-activity-details__main"},X$={class:"ao-activity-details__header"},Q$={key:1,class:"ao-activity__category"},J$={class:"ao-feed__activity-details__header"},eO={key:0,class:"ao-field ao-feed__activity-details__project"},tO={class:"ao-field__label"},sO={key:1,class:"ao-field ao-feed__activity-details__project"},iO={class:"ao-field__label"},nO={class:"ao-activity-details__content"},oO={class:"ao-activity-details__tab-content"},rO={class:"ao-fieldset"},lO={class:"ao-field__row"},aO={key:1,class:"ao-activity-details__description-placeholder"},cO={key:2,class:"ao-activity-details__description-placeholder"},dO={key:1,class:"ao-activity-details__description-editor"},uO={class:"ao-activity-details__description-actions"},hO={class:"ao-activity-details__tab-content"},fO={class:"ao-fieldset"},pO={class:"ao-fieldset__body"},mO={class:"ao-activity-details__tab-content"},gO={key:0,class:"ao-fieldset"},vO={class:"ao-activity-details__aside"},yO={class:"ao-activity-details__close-button"},CO={key:0,class:"ao-activity-details__aside-section"},bO={class:"ao-field"},wO={class:"ao-field__label"},kO={class:"ao-activity-details__aside-section"},_O={class:"ao-field ao-field--multiselect"},EO={class:"assignee-inline"},TO={class:"ao-field__label"},SO={class:"ao-activity-details__aside-section"},xO={key:0,class:"ao-field__row"},MO={class:"ao-field"},BO={class:"ao-field__label"},NO=["readonly"],LO={class:"ao-activity-details__aside-section"},AO={class:"ao-field__row"},$O={class:"ao-field ao-field--inline"},OO={class:"ao-field__label"},VO=["readonly"],RO={class:"ao-field__row"},IO={class:"ao-field ao-field--inline"},DO={class:"ao-field__label"},PO={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},HO={class:"ao-activity-details__aside-section"},FO={class:"ao-fieldset ao-activity-details__aside-section"},WO={class:"ao-fieldset__title"},zO={class:"ao-fieldset__body"},jO={class:"ao-field__row"},UO={class:"ao-field ao-field--multiselect"},qO={class:"ao-field__label"},ZO={class:"ao-field__row"},GO={class:"ao-field ao-field--multiselect"},YO={class:"ao-field__label"},Xg=l.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(s,{emit:e}){const t=s,i=e,{t:n}=qi(),r=l.ref("description"),a=l.computed(()=>{var P,X;return[{label:n("activity.description.label")||"Description",value:"description"},{label:n("activity.tasks.title")||"Checklist",value:"checklist",count:((P=t.activity.tasks)==null?void 0:P.length)??0},{label:n("activity.comments.title")||"Commentaires",value:"comments",count:((X=t.activity.comments)==null?void 0:X.length)??0}]}),c=l.computed(()=>{var P;return t.isEditable===!0?!0:t.userId&&t.isEditable==="only-own"?t.userId===((P=t.activity.assignee)==null?void 0:P.id):!1}),d=P=>{i("update:activity",{id:t.activity.id,name:P})},u=l.ref(!1),f=l.ref(t.activity.description??""),p=()=>{c.value&&(f.value=t.activity.description??"",u.value=!0)},m=()=>{f.value=t.activity.description??"",u.value=!1},g=()=>{const P=f.value;if(P===(t.activity.description??"")){u.value=!1;return}i("update:activity",{id:t.activity.id,description:P}),u.value=!1},y=l.computed({get(){return t.activity.estimation??0},set(P){i("update:activity",{id:t.activity.id,estimation:P})}}),v=l.computed({get(){var X;const P=(X=t.timeTrackingData)==null?void 0:X[t.activity.id];return(P==null?void 0:P.timeSpent)??0},set(){}}),C=l.computed(()=>{var X;return((X=t.activity.project)==null?void 0:X.estimationUnit)==="days"?"d":"h"}),w=l.computed(()=>{var X;const P=(X=t.activity.project)==null?void 0:X.estimationUnit;return _m(v.value,P)}),k=l.computed({get(){return t.activity.important??!1},set(P){i("update:activity",{id:t.activity.id,important:P})}});l.computed({get(){return t.activity.private??!1},set(P){i("update:activity",{id:t.activity.id,private:P})}});const _=l.computed({get(){return t.activity.deadline},set(P){i("update:activity",{id:t.activity.id,deadline:P})}});l.computed(()=>{var P;return(P=t.activityTypes)==null?void 0:P.map(X=>({label:X.name,value:X.id}))}),l.computed({get(){var P;return(P=t.activity.type)==null?void 0:P.id},set(P){i("update:activity",{id:t.activity.id,typeId:P})}});const M=l.computed(()=>t.templateActivities.filter(P=>P.id!==t.activity.id).map(P=>({label:P.name,value:P.id}))),S=l.computed({get(){var P;return(P=t.activity.dependingOn)==null?void 0:P.map(X=>X.id)},set(P){P&&i("update:activity",{id:t.activity.id,dependingOn:P})}}),x=l.computed(()=>M.value.map(P=>{var X;return{...P,disabled:(X=t.activity.blocking)==null?void 0:X.some(pe=>pe.id===P.value)}})),L=l.computed({get(){var P;return(P=t.activity.blocking)==null?void 0:P.map(X=>X.id)},set(P){P&&i("update:activity",{id:t.activity.id,blocking:P})}}),B=l.computed(()=>M.value.map(P=>{var X;return{...P,disabled:(X=t.activity.dependingOn)==null?void 0:X.some(pe=>pe.id===P.value)}})),N=P=>{i("addSubtask",P)},O=P=>{i("updateSubtask",P)},A=P=>{i("deleteSubtask",P)};function V(){t.userId?D.value=[t.userId]:console.error("Failed assigning to self: userId is missing")}function R(P){D.value=[P]}const $=l.computed(()=>{var X;const P=new Map;return(X=t.users)==null||X.forEach(pe=>{P.has(pe.id)||P.set(pe.id,pe)}),Array.from(P.values()).map(pe=>({label:`${pe.firstName} ${pe.lastName}`,value:pe.id,avatar:pe.avatarUrl}))}),D=l.computed({get(){var P,X;return(P=t.activity.assignee)!=null&&P.id?[(X=t.activity.assignee)==null?void 0:X.id]:[]},set(P){i("update:activity",{id:t.activity.id,assigneeId:P[0]??null})}}),z=P=>{i("addFiles",{activityId:t.activity.id,files:P})},q=P=>{i("removeFile",{activityId:t.activity.id,file:P})},F=l.computed(()=>t.projects.map(P=>({value:P.id,label:P.name}))),I=l.computed(()=>{var X,pe,fe;const P=(fe=(pe=(X=t.activity)==null?void 0:X.project)==null?void 0:pe.phases)==null?void 0:fe.reduce((Pe,de)=>[...Pe,...de.milestones],[]);return P==null?void 0:P.map(Pe=>({value:Pe.id,label:Pe.name}))}),Z=P=>{t.activity&&i("update:activity",{id:t.activity.id,projectId:P})},W=P=>{t.activity&&i("update:activity",{id:t.activity.id,milestoneId:P})},Y=l.computed(()=>{var P;return(P=t.statuses)==null?void 0:P.map(X=>({value:X.id,label:X.name}))}),ne=P=>{i("update:activity",{id:t.activity.id,statusId:P})},K=P=>{i("addComment",{...P,activityId:t.activity.id})},J=P=>{i("updateComment",P)},j=P=>{i("removeComment",P)};l.computed(()=>{var P,X;return((P=t.activity.createdBy)==null?void 0:P.firstName)&&((X=t.activity.createdBy)==null?void 0:X.lastName)&&`${t.activity.createdBy.firstName} ${t.activity.createdBy.lastName}`});function se(){const P=window.location.origin,X=t.activity.slug,pe=`${P}/activity-feed/slug/${X}`;navigator.clipboard.writeText(pe).then(()=>{console.log(`Link copied to clipboard: ${pe}`),i("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),i("toast","clipboard.copy.error","error")})}return(P,X)=>(l.openBlock(),l.createBlock(Tm,{onClose:X[9]||(X[9]=pe=>P.$emit("close"))},{default:l.withCtx(()=>{var pe,fe,Pe;return[l.createElementVNode("div",Y$,[l.createElementVNode("div",K$,[l.createElementVNode("div",X$,[s.activity.slug?(l.openBlock(),l.createBlock(Bc,{key:0,label:s.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:se},null,8,["label"])):l.createCommentVNode("",!0),s.breadcrumbs?(l.openBlock(),l.createElementBlock("div",Q$,l.toDisplayString(s.breadcrumbs),1)):l.createCommentVNode("",!0),l.createVNode(jt,{title:s.activity.name||"",level:4,"is-editable":c.value,"onUpdate:title":d},null,8,["title","is-editable"]),l.createElementVNode("div",J$,[F.value?(l.openBlock(),l.createElementBlock("label",eO,[l.createElementVNode("span",tO,l.toDisplayString(P.$t("activity.project.label")),1),l.createVNode(ms,{options:F.value,value:(pe=s.activity.project)==null?void 0:pe.id,searchable:!0,disabled:!c.value,caret:c.value,onChange:Z},null,8,["options","value","disabled","caret"])])):l.createCommentVNode("",!0),I.value?(l.openBlock(),l.createElementBlock("label",sO,[l.createElementVNode("span",iO,l.toDisplayString(P.$t("activity.milestone.label")),1),l.createVNode(ms,{options:I.value,value:(fe=s.activity.milestone)==null?void 0:fe.id,searchable:!0,disabled:!c.value,caret:c.value,onChange:W},null,8,["options","value","disabled","caret"])])):l.createCommentVNode("",!0)]),l.renderSlot(P.$slots,"header")]),l.createElementVNode("div",nO,[l.createVNode(hh,{modelValue:r.value,"onUpdate:modelValue":X[0]||(X[0]=de=>r.value=de),tabs:a.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),l.withDirectives(l.createElementVNode("div",oO,[l.createElementVNode("fieldset",rO,[l.createElementVNode("div",lO,[l.createVNode(_S,{attachments:s.activity.attachments,"is-editable":s.attachmentEnabled&&c.value&&s.isTemplate!==!0&&!!s.userId,onAdd:z,onRemove:q},{default:l.withCtx(()=>[u.value?(l.openBlock(),l.createElementBlock("div",dO,[l.createVNode(Kg,{modelValue:f.value,"onUpdate:modelValue":X[1]||(X[1]=de=>f.value=de),placeholder:P.$t("activity.description.label")||"Add description"},null,8,["modelValue","placeholder"]),l.createElementVNode("div",uO,[l.createVNode(Ee,{label:P.$t("common.cancel")||"Cancel",variant:"ghost",color:"neutral",size:"sm",onClick:m},null,8,["label"]),l.createVNode(Ee,{label:P.$t("common.save")||"Save",variant:"solid",color:"black",size:"sm",onClick:g},null,8,["label"])])])):(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":c.value}]),onClick:p},[s.activity.description?(l.openBlock(),l.createBlock(G$,{key:0,content:s.activity.description},null,8,["content"])):c.value?(l.openBlock(),l.createElementBlock("span",aO,l.toDisplayString(P.$t("activity.description.label")||"Add description"),1)):(l.openBlock(),l.createElementBlock("span",cO,l.toDisplayString(P.$t("activity.description.label")||"No description"),1))],2))]),_:1},8,["attachments","is-editable"])])])],512),[[l.vShow,r.value==="description"]]),l.withDirectives(l.createElementVNode("div",hO,[l.createElementVNode("fieldset",fO,[l.createElementVNode("div",pO,[l.createVNode(hS,{class:"ao-activity-details__tasks ao-field__row",tasks:s.activity.tasks||[],"activity-id":s.activity.id,users:s.users,"is-checkable":s.isTaskCheckable,"is-editable":c.value,"is-template":s.isTemplate,onAdd:N,onUpdate:O,onDelete:A},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[l.vShow,r.value==="checklist"]]),l.withDirectives(l.createElementVNode("div",mO,[s.isTemplate!==!0&&s.userId?(l.openBlock(),l.createElementBlock("div",gO,[l.createVNode(H$,{comments:s.activity.comments,users:s.users,"user-id":s.userId,onCreateComment:K,onUpdateComment:J,onRemoveComment:j},null,8,["comments","users","user-id"])])):l.createCommentVNode("",!0)],512),[[l.vShow,r.value==="comments"]])])]),l.createElementVNode("div",vO,[l.createElementVNode("div",yO,[l.createVNode(Ye,{name:"CloseRounded",onClick:X[2]||(X[2]=de=>P.$emit("close"))})]),Y.value?(l.openBlock(),l.createElementBlock("div",CO,[l.createElementVNode("label",bO,[l.createElementVNode("span",wO,l.toDisplayString(P.$t("activity.status.label")),1),l.createVNode(ms,{class:"ao-activity-details__multiselect",options:Y.value,value:(Pe=s.activity.status)==null?void 0:Pe.id,"can-clear":!1,"can-deselect":!1,disabled:!c.value,caret:c.value,onChange:ne},null,8,["options","value","disabled","caret"])])])):l.createCommentVNode("",!0),l.createElementVNode("div",kO,[l.createElementVNode("div",_O,[l.createElementVNode("div",EO,[l.createElementVNode("span",TO,l.toDisplayString(P.$t("activity.assignee.label")),1),l.createVNode(Ee,{label:P.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:V},null,8,["label"])]),l.createVNode(ms,{modelValue:D.value,"onUpdate:modelValue":X[3]||(X[3]=de=>D.value=de),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:$.value,"close-on-select":!0,searchable:!0,placeholder:P.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!c.value,caret:c.value,onSelect:R},{tag:l.withCtx(({option:de,handleTagRemove:Me})=>[l.createVNode(ji,{"user-name":de.label,"avatar-url":de.avatar,"is-closable":!0,onClose:ye=>Me(de,ye)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),l.createElementVNode("div",SO,[s.isTemplate!==!0&&s.userId?(l.openBlock(),l.createElementBlock("div",xO,[l.createElementVNode("label",MO,[l.createElementVNode("span",BO,l.toDisplayString(P.$t("activity.deadline.label")),1),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":X[4]||(X[4]=de=>_.value=de),readonly:!c.value,class:"ao-field__input",type:"date"},null,8,NO),[[l.vModelText,_.value,void 0,{lazy:!0}]])])])):l.createCommentVNode("",!0)]),l.createElementVNode("div",LO,[l.createElementVNode("div",AO,[l.createElementVNode("label",$O,[l.createElementVNode("span",OO,l.toDisplayString(P.$t("activity.estimation.label"))+" ("+l.toDisplayString(C.value)+")",1),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":X[5]||(X[5]=de=>y.value=de),readonly:!c.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,VO),[[l.vModelText,y.value,void 0,{lazy:!0,number:!0}]])])]),l.createElementVNode("div",RO,[l.createElementVNode("label",IO,[l.createElementVNode("span",DO,l.toDisplayString(P.$t("activity.timeSpent.label"))+" ("+l.toDisplayString(C.value)+")",1),l.createElementVNode("span",PO,l.toDisplayString(w.value),1)])])]),l.createElementVNode("div",HO,[l.createVNode(Q5,{modelValue:k.value,"onUpdate:modelValue":X[6]||(X[6]=de=>k.value=de),modelModifiers:{lazy:!0},label:P.$t("activity.important.label"),disabled:!c.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),l.createElementVNode("fieldset",FO,[l.createElementVNode("div",WO,[l.createVNode(Ye,{name:"FlowsheetOutlineRounded"}),l.createVNode(jt,{level:4,title:P.$t("activity.dependencies.title")},null,8,["title"])]),l.createElementVNode("div",zO,[l.createElementVNode("div",jO,[l.createElementVNode("label",UO,[l.createElementVNode("span",qO,l.toDisplayString(P.$t("activity.dependingOn.label")),1),l.createVNode(ms,{modelValue:S.value,"onUpdate:modelValue":X[7]||(X[7]=de=>S.value=de),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:x.value,disabled:!c.value,caret:c.value},null,8,["modelValue","options","disabled","caret"])])]),l.createElementVNode("div",ZO,[l.createElementVNode("label",GO,[l.createElementVNode("span",YO,l.toDisplayString(P.$t("activity.blocking.label")),1),l.createVNode(ms,{modelValue:L.value,"onUpdate:modelValue":X[8]||(X[8]=de=>L.value=de),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:B.value,disabled:!c.value,caret:c.value},null,8,["modelValue","options","disabled","caret"])])])])]),l.renderSlot(P.$slots,"default",{activity:s.activity})])])]}),_:3}))}});const KO=l.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(s,{emit:e}){const t=s,i=e,n=l.toRef(t.rule.itemType||dt.ACTIVITIES),r=l.computed({get(){return n.value},set(k){n.value=k,i("update:rule",{...t.rule,itemType:k,subItemId:void 0})}}),a=l.computed(()=>Object.values(dt)),c=l.computed({get(){return t.rule.subItemId},set(k){i("update:rule",{...t.rule,subItemId:k,itemType:t.rule.itemType||r.value})}}),d=l.computed(()=>{var _;return!t.templateActivities||!t.templateMilestones||!t.templatePhases?null:(_={[dt.ACTIVITIES]:t.templateActivities,[dt.MILESTONES]:t.templateMilestones,[dt.PHASES]:t.templatePhases}[n.value])==null?void 0:_.map(M=>({value:M.id,label:M.name}))}),u=l.toRef(t.rule.comparator),f=l.computed({get(){return u.value},set(k){i("update:rule",{...t.rule,comparator:k})}}),p=l.computed(()=>Object.values(kv)),m=l.toRef(t.rule.trigger),g=l.computed({get(){return m.value},set(k){i("update:rule",{...t.rule,trigger:k})}}),y=l.computed(()=>Object.values(_v)),v=l.computed({get(){return t.rule.duration},set(k){i("update:rule",{...t.rule,duration:k})}}),C=l.computed({get(){return t.rule.durationUnit},set(k){i("update:rule",{...t.rule,durationUnit:k})}}),w=l.computed(()=>Object.values(Ev));return(k,_)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s.tagName),{class:"ao-rule-line"},{default:l.withCtx(()=>[l.createVNode(l.unref(en),{modelValue:r.value,"onUpdate:modelValue":_[0]||(_[0]=M=>r.value=M),options:a.value},null,8,["modelValue","options"]),l.createVNode(l.unref(en),{modelValue:c.value,"onUpdate:modelValue":_[1]||(_[1]=M=>c.value=M),options:d.value},null,8,["modelValue","options"]),l.createVNode(l.unref(en),{modelValue:g.value,"onUpdate:modelValue":_[2]||(_[2]=M=>g.value=M),options:y.value},null,8,["modelValue","options"]),l.createVNode(l.unref(en),{modelValue:f.value,"onUpdate:modelValue":_[3]||(_[3]=M=>f.value=M),options:p.value},null,8,["modelValue","options"]),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":_[4]||(_[4]=M=>v.value=M),type:"number",min:"0"},null,512),[[l.vModelText,v.value,void 0,{number:!0}]]),l.createVNode(l.unref(en),{modelValue:C.value,"onUpdate:modelValue":_[5]||(_[5]=M=>C.value=M),options:w.value},null,8,["modelValue","options"]),l.createVNode(Ee,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:_[6]||(_[6]=M=>k.$emit("close"))})]),_:1}))}});const XO={class:"ao-template-rules__body"},QO={class:"ao-template-rules__list"},JO=l.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(s,{emit:e}){const t=e,i=()=>{t("addRule")},n=r=>{t("removeRule",r)};return(r,a)=>(l.openBlock(),l.createBlock(Tm,null,{header:l.withCtx(()=>[l.createVNode(jt,{title:r.$t("template.rules.title"),level:2},null,8,["title"])]),default:l.withCtx(()=>[l.createElementVNode("div",XO,[l.createElementVNode("ul",QO,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.rules,c=>(l.openBlock(),l.createBlock(KO,{key:c.id,rule:c,"template-phases":s.templatePhases,"template-milestones":s.templateMilestones,"template-activities":s.templateActivities,class:"ao-template-rule",onClose:()=>n(c.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),l.createVNode(Zn,{label:r.$t("template.rules.add"),"icon-name":"Add",onClick:i},null,8,["label"])])]),_:1}))}});function Cr(s,e,t){const i=s.length,n=s.at(-1),r=n?zt.LexoRank.parse(n.rank).genNext():zt.LexoRank.middle();return{name:t(`template.defaultName.${e}`,{idx:i+1}),rank:r.format()}}const eV={key:0,class:"ao-template-details"},tV={class:"ao-template-details__body"},sV={class:"ao-template-details__cols"},iV={class:"ao-template-details__col"},nV={class:"ao-list__footer"},oV={class:"ao-template-details__col"},rV={class:"ao-template-details__col"},J5=l.defineComponent({__name:"AoTemplateDetails",props:{templateId:{},templates:{},users:{},phaseId:{},milestoneId:{},activityId:{},activityTypes:{}},emits:["addItem","removeItem","updateItem","addRule","removeRule","addFiles","removeFile"],setup(s,{emit:e}){const{t}=qi(),i=s,n=e,r=l.computed(()=>{var F;return(F=i.templates)==null?void 0:F.find(I=>I.id===i.templateId)}),a=l.ref(!1);l.watch(()=>[i.templateId,i.phaseId,i.milestoneId],()=>a.value=!1),l.watch(()=>{var F;return(F=r.value)==null?void 0:F.phases},(F,I)=>{a.value&&Fi(F,I)});const c=l.computed(()=>{var F,I;return(I=(F=r==null?void 0:r.value)==null?void 0:F.phases)==null?void 0:I.find(Z=>Z.id===i.phaseId)});l.watch(()=>{var F;return(F=c.value)==null?void 0:F.milestones},(F,I)=>{a.value&&Fi(F,I)});const d=l.computed(()=>{var F,I;return(I=(F=c.value)==null?void 0:F.milestones)==null?void 0:I.find(Z=>Z.id===i.milestoneId)});l.watch(()=>{var F;return(F=d.value)==null?void 0:F.activities},(F,I)=>{a.value&&Fi(F,I)});const u=l.computed(()=>{var F,I;return((I=(F=r.value)==null?void 0:F.phases)==null?void 0:I.reduce((Z,W)=>{const Y=W.milestones||[];return[...Z,...Y]},[]))||[]}),f=l.computed(()=>{var F,I;return((I=(F=r.value)==null?void 0:F.phases)==null?void 0:I.reduce((Z,W)=>{const ne=(W.milestones||[]).reduce((K,J)=>J.activities?[...K,...J.activities]:K,[]);return[...Z,...ne]},[]))||[]}),p=l.computed(()=>{var F,I;return(I=(F=d.value)==null?void 0:F.activities)==null?void 0:I.find(Z=>Z.id===i.activityId)}),m=l.computed(()=>{var F;return((F=r.value)==null?void 0:F.name)||i.templateId}),g=()=>{if(!r.value)return;const{name:F,rank:I}=Cr(r.value.phases,"phase",t);a.value=!0,n("addItem",{type:dt.PHASES,templateId:i.templateId,item:{name:F,rank:I}})},y=F=>{n("updateItem",{templateId:i.templateId,id:i.templateId,itemType:dt.TEMPLATES,data:{name:F}})},v=F=>{n("removeItem",{itemType:dt.PHASES,templateId:i.templateId,data:{id:F}})},C=(F,I)=>{n("updateItem",{templateId:i.templateId,id:F,itemType:dt.PHASES,data:{name:I}})},w=F=>{n("updateItem",F)},k=F=>{if(!c.value)return;const{name:I,rank:Z}=Cr(c.value.milestones,"milestone",t);a.value=!0,n("addItem",{type:dt.MILESTONES,templateId:i.templateId,phaseId:F.phaseId,item:{name:I,rank:Z,phaseId:F.phaseId}})},_=F=>{n("removeItem",{itemType:dt.MILESTONES,templateId:i.templateId,phaseId:F.phaseId,data:{id:F.id}})},M=F=>{const{id:I,...Z}=F;n("updateItem",{itemType:dt.MILESTONES,id:I,templateId:i.templateId,data:Z})},S=F=>{const{milestoneId:I}=F;if(!d.value)return;const{name:Z,rank:W}=Cr(d.value.activities,"activity",t);a.value=!0,n("addItem",{type:dt.ACTIVITIES,milestoneId:I,templateId:i.templateId,item:{name:Z,rank:W,milestoneId:I}})},x=F=>{var I,Z;n("removeItem",{itemType:dt.ACTIVITIES,templateId:i.templateId,phaseId:(I=c.value)==null?void 0:I.id,milestoneId:(Z=d.value)==null?void 0:Z.id,data:{id:F.id}})},L=F=>{const{id:I,...Z}=F;n("updateItem",{itemType:dt.ACTIVITIES,id:I,templateId:i.templateId,data:Z})},B=l.ref(!1),N=()=>{B.value=!B.value},O=()=>{n("addRule",{templateId:i.templateId})},A=F=>{n("removeRule",{id:F,templateId:i.templateId})},V=F=>{var I;if(F.moved){const Z=dh(F,((I=r.value)==null?void 0:I.phases)??[]);n("updateItem",{itemType:dt.PHASES,id:F.moved.element.id,templateId:i.templateId,data:{rank:Z}})}},R=F=>{!c.value||!d.value||!p.value||n("addItem",{type:dt.TASKS,activityId:F.activityId,milestoneId:d.value.id,phaseId:c.value.id,templateId:i.templateId,item:F})},$=F=>{!c.value||!d.value||!p.value||n("updateItem",{itemType:dt.TASKS,id:F.id,templateId:i.templateId,data:F})},D=F=>{!c.value||!d.value||!p.value||n("removeItem",{itemType:dt.TASKS,activityId:p.value.id,milestoneId:d.value.id,phaseId:c.value.id,templateId:i.templateId,data:F})},z=F=>{n("addFiles",F)},q=F=>{n("removeFile",F)};return(F,I)=>{var Z,W,Y,ne,K,J;return r.value?(l.openBlock(),l.createElementBlock("div",eV,[l.createVNode(uh,{"can-go-back":!0,onGoBack:I[1]||(I[1]=j=>F.$router.push({name:l.unref(co).TEMPLATES_LIST}))},{primary:l.withCtx(()=>[l.createVNode(jt,{title:m.value,level:2,"is-editable":!0,"onUpdate:title":I[0]||(I[0]=j=>{y(j)})},null,8,["title"])]),_:1}),l.createElementVNode("div",tV,[l.createElementVNode("ol",sV,[l.createElementVNode("li",iV,[l.createVNode(l.unref(qn),{"model-value":r.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:V},{header:l.withCtx(()=>[l.createVNode(jt,{title:F.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:l.withCtx(({element:j})=>{var se;return[l.createVNode(k6,{id:j.id,name:j.name,milestones:j.milestones,"is-active":((se=c.value)==null?void 0:se.id)===j.id,"is-draggable":!0,onClick:P=>F.$router.push({params:{templateId:s.templateId,phaseId:j.id}}),"onUpdate:title":P=>{C(j.id,P)},onRemove:()=>v(j.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:l.withCtx(()=>[l.createElementVNode("div",nV,[l.createVNode(Zn,{"icon-name":"AddBoxOutlineRounded",label:F.$t("template.phases.add"),onClick:g},null,8,["label"])])]),_:1},8,["model-value"])]),l.createElementVNode("li",oV,[c.value?(l.openBlock(),l.createBlock(T6,{key:0,"template-id":s.templateId,phase:c.value,"milestone-id":(Z=d.value)==null?void 0:Z.id,onAddMilestone:k,onUpdateMilestone:M,onUpdatePhase:w,onRemoveMilestone:_},null,8,["template-id","phase","milestone-id"])):l.createCommentVNode("",!0)]),l.createElementVNode("li",rV,[c.value&&d.value?(l.openBlock(),l.createBlock(M6,{key:0,"template-id":s.templateId,"phase-id":(W=c.value)==null?void 0:W.id,milestone:d.value,"activity-id":(Y=p.value)==null?void 0:Y.id,onAddActivity:S,onUpdateActivity:L,onRemoveActivity:x},null,8,["template-id","phase-id","milestone","activity-id"])):l.createCommentVNode("",!0)])])]),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[p.value?(l.openBlock(),l.createBlock(Xg,{key:0,activity:p.value,"activity-types":s.activityTypes,breadcrumbs:`${r.value.name} / ${(ne=c.value)==null?void 0:ne.name} / ${(K=d.value)==null?void 0:K.name}`,"milestone-id":(J=d.value)==null?void 0:J.id,"template-activities":f.value,"template-milestones":u.value,"is-template":!0,"is-editable":!0,users:s.users,"onUpdate:activity":I[2]||(I[2]=j=>{p.value&&L(j)}),"attachment-enabled":!1,onClose:F.$router.back,onAddSubtask:R,onUpdateSubtask:$,onDeleteSubtask:D,onAddFiles:z,onRemoveFile:q},{default:l.withCtx(j=>[l.renderSlot(F.$slots,"activityDetailsBody",l.normalizeProps(l.guardReactiveProps(j)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):l.createCommentVNode("",!0)])),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[B.value?(l.openBlock(),l.createBlock(JO,{key:0,"template-id":r.value.id,rules:r.value.rules||[],"template-phases":r.value.phases,"template-milestones":u.value,"template-activities":f.value,onClose:N,onAddRule:O,onRemoveRule:A},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):l.createCommentVNode("",!0)]))])):l.createCommentVNode("",!0)}}});const lV={class:"ao-card__content"},aV={key:0,class:"ao-card__header"},cV={class:"ao-card__body"},dV={key:1,class:"ao-card__footer"},Rm=l.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1}},setup(s){return(e,t)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s.tagName),{class:l.normalizeClass(["ao-card",{"ao-card--clickable":s.isClickable}]),style:l.normalizeStyle(s.isSelected?{border:"solid",borderColor:s.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:l.withCtx(()=>[s.withLeftBorder?(l.openBlock(),l.createElementBlock("div",{key:0,class:"ao-card__left-border",style:l.normalizeStyle({backgroundColor:s.color})},null,4)):l.createCommentVNode("",!0),l.createElementVNode("div",lV,[e.$slots.header?(l.openBlock(),l.createElementBlock("header",aV,[l.renderSlot(e.$slots,"header")])):l.createCommentVNode("",!0),l.createElementVNode("div",cV,[l.renderSlot(e.$slots,"default")]),e.$slots.footer?(l.openBlock(),l.createElementBlock("footer",dV,[l.renderSlot(e.$slots,"footer")])):l.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const Im=l.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(s){const e=s,t=l.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(i,n)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["ao-progress",s.status?`ao-progress--${s.status}`:""]),role:"meter"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.value,r=>(l.openBlock(),l.createElementBlock("div",{key:r,class:l.normalizeClass(["ao-progress__progress"]),style:l.normalizeStyle({width:`${r*100}%`,"--ao-progress-color":s.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}});/*!
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),jt=require("vue-router"),We=require("vuedraggable");const ms=e.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(a){return(t,o)=>(e.openBlock(),e.createBlock(e.unref(jt.RouterView),e.mergeProps({templates:t.templates},t.$attrs),null,16,["templates"]))}}),H=(a,t)=>{const o=a.__vccOpts||a;for(const[s,n]of t)o[s]=n;return o},fs={},vs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hs=e.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),Cs=[hs];function gs(a,t){return e.openBlock(),e.createElementBlock("svg",vs,Cs)}const _s=H(fs,[["render",gs]]),ys={},bs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ks=e.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),ws=[ks];function $s(a,t){return e.openBlock(),e.createElementBlock("svg",bs,ws)}const Es=H(ys,[["render",$s]]),Bs={},Vs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ss=e.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),Ns=[Ss];function Ms(a,t){return e.openBlock(),e.createElementBlock("svg",Vs,Ns)}const Ts=H(Bs,[["render",Ms]]),As={},Os={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Is=e.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),Ds=[Is];function Ls(a,t){return e.openBlock(),e.createElementBlock("svg",Os,Ds)}const Ps=H(As,[["render",Ls]]),Hs={},Rs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},js=e.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1),Us=[js];function Fs(a,t){return e.openBlock(),e.createElementBlock("svg",Rs,Us)}const zs=H(Hs,[["render",Fs]]),Zs={},xs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ws=e.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),qs=[Ws];function Ys(a,t){return e.openBlock(),e.createElementBlock("svg",xs,qs)}const Ks=H(Zs,[["render",Ys]]),Gs={},Xs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qs=e.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),Js=[Qs];function ei(a,t){return e.openBlock(),e.createElementBlock("svg",Xs,Js)}const ti=H(Gs,[["render",ei]]),ai={},oi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ni=e.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),si=[ni];function ii(a,t){return e.openBlock(),e.createElementBlock("svg",oi,si)}const ri=H(ai,[["render",ii]]),li={},ci={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},di=e.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),ui=[di];function pi(a,t){return e.openBlock(),e.createElementBlock("svg",ci,ui)}const mi=H(li,[["render",pi]]),fi={},vi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hi=e.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),Ci=[hi];function gi(a,t){return e.openBlock(),e.createElementBlock("svg",vi,Ci)}const _i=H(fi,[["render",gi]]),yi={},bi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ki=e.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),wi=[ki];function $i(a,t){return e.openBlock(),e.createElementBlock("svg",bi,wi)}const Ei=H(yi,[["render",$i]]),Bi={},Vi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Si=e.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),Ni=[Si];function Mi(a,t){return e.openBlock(),e.createElementBlock("svg",Vi,Ni)}const Ti=H(Bi,[["render",Mi]]),Ai={},Oi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ii=e.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),Di=[Ii];function Li(a,t){return e.openBlock(),e.createElementBlock("svg",Oi,Di)}const Pi=H(Ai,[["render",Li]]),Hi={},Ri={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ji=e.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),Ui=[ji];function Fi(a,t){return e.openBlock(),e.createElementBlock("svg",Ri,Ui)}const zi=H(Hi,[["render",Fi]]),Zi={},xi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wi=e.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),qi=[Wi];function Yi(a,t){return e.openBlock(),e.createElementBlock("svg",xi,qi)}const Ki=H(Zi,[["render",Yi]]),Gi={},Xi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qi=e.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),Ji=[Qi];function er(a,t){return e.openBlock(),e.createElementBlock("svg",Xi,Ji)}const tr=H(Gi,[["render",er]]),ar={},or={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nr=e.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1),sr=[nr];function ir(a,t){return e.openBlock(),e.createElementBlock("svg",or,sr)}const rr=H(ar,[["render",ir]]),lr={},cr={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dr=e.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),ur=[dr];function pr(a,t){return e.openBlock(),e.createElementBlock("svg",cr,ur)}const mr=H(lr,[["render",pr]]),fr={},vr={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hr=e.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),Cr=[hr];function gr(a,t){return e.openBlock(),e.createElementBlock("svg",vr,Cr)}const _r=H(fr,[["render",gr]]),yr={},br={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kr=e.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),wr=[kr];function $r(a,t){return e.openBlock(),e.createElementBlock("svg",br,wr)}const Er=H(yr,[["render",$r]]),Br={},Vr={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Sr=e.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1),Nr=[Sr];function Mr(a,t){return e.openBlock(),e.createElementBlock("svg",Vr,Nr)}const Tr=H(Br,[["render",Mr]]),Ar={},Or={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ir=e.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1),Dr=[Ir];function Lr(a,t){return e.openBlock(),e.createElementBlock("svg",Or,Dr)}const Pr=H(Ar,[["render",Lr]]),Hr={},Rr={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jr=e.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),Ur=[jr];function Fr(a,t){return e.openBlock(),e.createElementBlock("svg",Rr,Ur)}const zr=H(Hr,[["render",Fr]]),Zr={},xr={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wr=e.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),qr=[Wr];function Yr(a,t){return e.openBlock(),e.createElementBlock("svg",xr,qr)}const Kr=H(Zr,[["render",Yr]]),Gr={},Xr={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qr=e.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),Jr=[Qr];function el(a,t){return e.openBlock(),e.createElementBlock("svg",Xr,Jr)}const tl=H(Gr,[["render",el]]),al={},ol={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nl=e.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),sl=[nl];function il(a,t){return e.openBlock(),e.createElementBlock("svg",ol,sl)}const rl=H(al,[["render",il]]),ll={},cl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dl=e.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),ul=[dl];function pl(a,t){return e.openBlock(),e.createElementBlock("svg",cl,ul)}const ml=H(ll,[["render",pl]]),fl={},vl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hl=e.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),Cl=[hl];function gl(a,t){return e.openBlock(),e.createElementBlock("svg",vl,Cl)}const _l=H(fl,[["render",gl]]),yl={},bl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kl=e.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),wl=[kl];function $l(a,t){return e.openBlock(),e.createElementBlock("svg",bl,wl)}const El=H(yl,[["render",$l]]),Bl={},Vl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Sl=e.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),Nl=[Sl];function Ml(a,t){return e.openBlock(),e.createElementBlock("svg",Vl,Nl)}const Tl=H(Bl,[["render",Ml]]),Al={},Ol={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Il=e.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),Dl=[Il];function Ll(a,t){return e.openBlock(),e.createElementBlock("svg",Ol,Dl)}const Pl=H(Al,[["render",Ll]]),Hl={},Rl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jl=e.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),Ul=[jl];function Fl(a,t){return e.openBlock(),e.createElementBlock("svg",Rl,Ul)}const zl=H(Hl,[["render",Fl]]),Zl={},xl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wl=e.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),ql=[Wl];function Yl(a,t){return e.openBlock(),e.createElementBlock("svg",xl,ql)}const Kl=H(Zl,[["render",Yl]]),Gl={},Xl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ql=e.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),Jl=[Ql];function e1(a,t){return e.openBlock(),e.createElementBlock("svg",Xl,Jl)}const t1=H(Gl,[["render",e1]]),a1={},o1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n1=e.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),s1=[n1];function i1(a,t){return e.openBlock(),e.createElementBlock("svg",o1,s1)}const r1=H(a1,[["render",i1]]),l1={},c1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d1=e.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),u1=[d1];function p1(a,t){return e.openBlock(),e.createElementBlock("svg",c1,u1)}const m1=H(l1,[["render",p1]]),f1={},v1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h1=e.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),C1=[h1];function g1(a,t){return e.openBlock(),e.createElementBlock("svg",v1,C1)}const _1=H(f1,[["render",g1]]),y1={},b1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k1=e.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),w1=[k1];function $1(a,t){return e.openBlock(),e.createElementBlock("svg",b1,w1)}const E1=H(y1,[["render",$1]]),B1={},V1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S1=e.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1),N1=[S1];function M1(a,t){return e.openBlock(),e.createElementBlock("svg",V1,N1)}const T1=H(B1,[["render",M1]]),A1={},O1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I1=e.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1),D1=[I1];function L1(a,t){return e.openBlock(),e.createElementBlock("svg",O1,D1)}const P1=H(A1,[["render",L1]]),H1=e.defineComponent({name:"LoadingIcon"});const Qa=a=>(e.pushScopeId("data-v-ad6da4a9"),a=a(),e.popScopeId(),a),R1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j1=Qa(()=>e.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1)),U1=Qa(()=>e.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1)),F1=Qa(()=>e.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)),z1=[j1,U1,F1];function Z1(a,t,o,s,n,r){return e.openBlock(),e.createElementBlock("svg",R1,z1)}const x1=H(H1,[["render",Z1],["__scopeId","data-v-ad6da4a9"]]),W1={},q1={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"},Y1=e.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),K1=[Y1];function G1(a,t){return e.openBlock(),e.createElementBlock("svg",q1,K1)}const X1=H(W1,[["render",G1]]),Q1={},J1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ec=e.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),tc=[ec];function ac(a,t){return e.openBlock(),e.createElementBlock("svg",J1,tc)}const oc=H(Q1,[["render",ac]]),nc={},sc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ic=e.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1),rc=[ic];function lc(a,t){return e.openBlock(),e.createElementBlock("svg",sc,rc)}const cc=H(nc,[["render",lc]]),dc={},uc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pc=e.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),mc=[pc];function fc(a,t){return e.openBlock(),e.createElementBlock("svg",uc,mc)}const vc=H(dc,[["render",fc]]),hc={},Cc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gc=e.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),_c=[gc];function yc(a,t){return e.openBlock(),e.createElementBlock("svg",Cc,_c)}const bc=H(hc,[["render",yc]]),kc={},wc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$c=e.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),Ec=[$c];function Bc(a,t){return e.openBlock(),e.createElementBlock("svg",wc,Ec)}const Vc=H(kc,[["render",Bc]]),Sc={},Nc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mc=e.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),Tc=[Mc];function Ac(a,t){return e.openBlock(),e.createElementBlock("svg",Nc,Tc)}const Oc=H(Sc,[["render",Ac]]),Ic={},Dc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lc=e.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),Pc=[Lc];function Hc(a,t){return e.openBlock(),e.createElementBlock("svg",Dc,Pc)}const Rc=H(Ic,[["render",Hc]]),jc={},Uc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fc=e.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),zc=[Fc];function Zc(a,t){return e.openBlock(),e.createElementBlock("svg",Uc,zc)}const xc=H(jc,[["render",Zc]]),Wc={},qc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yc=e.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),Kc=[Yc];function Gc(a,t){return e.openBlock(),e.createElementBlock("svg",qc,Kc)}const Xc=H(Wc,[["render",Gc]]),Qc={},Jc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ed=e.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),td=[ed];function ad(a,t){return e.openBlock(),e.createElementBlock("svg",Jc,td)}const od=H(Qc,[["render",ad]]),nd={},sd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},id=e.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),rd=[id];function ld(a,t){return e.openBlock(),e.createElementBlock("svg",sd,rd)}const cd=H(nd,[["render",ld]]),dd={},ud={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pd=e.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),md=[pd];function fd(a,t){return e.openBlock(),e.createElementBlock("svg",ud,md)}const vd=H(dd,[["render",fd]]),hd={},Cd={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gd=e.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),_d=[gd];function yd(a,t){return e.openBlock(),e.createElementBlock("svg",Cd,_d)}const bd=H(hd,[["render",yd]]),kd={},wd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$d=e.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),Ed=[$d];function Bd(a,t){return e.openBlock(),e.createElementBlock("svg",wd,Ed)}const Vd=H(kd,[["render",Bd]]),Sd={},Nd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Md=e.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),Td=[Md];function Ad(a,t){return e.openBlock(),e.createElementBlock("svg",Nd,Td)}const Od=H(Sd,[["render",Ad]]),Id={},Dd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ld=e.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),Pd=[Ld];function Hd(a,t){return e.openBlock(),e.createElementBlock("svg",Dd,Pd)}const Rd=H(Id,[["render",Hd]]),jd={},Ud={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fd=e.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),zd=[Fd];function Zd(a,t){return e.openBlock(),e.createElementBlock("svg",Ud,zd)}const xd=H(jd,[["render",Zd]]),Wd={},qd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yd=e.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),Kd=[Yd];function Gd(a,t){return e.openBlock(),e.createElementBlock("svg",qd,Kd)}const Xd=H(Wd,[["render",Gd]]),Qd={},Jd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eu=e.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),tu=[eu];function au(a,t){return e.openBlock(),e.createElementBlock("svg",Jd,tu)}const ou=H(Qd,[["render",au]]),nu={},su={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iu=e.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),ru=[iu];function lu(a,t){return e.openBlock(),e.createElementBlock("svg",su,ru)}const cu=H(nu,[["render",lu]]),du={},uu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pu=e.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),mu=[pu];function fu(a,t){return e.openBlock(),e.createElementBlock("svg",uu,mu)}const vu=H(du,[["render",fu]]),hu={},Cu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gu=e.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),_u=[gu];function yu(a,t){return e.openBlock(),e.createElementBlock("svg",Cu,_u)}const bu=H(hu,[["render",yu]]),ku={},wu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$u=e.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),Eu=[$u];function Bu(a,t){return e.openBlock(),e.createElementBlock("svg",wu,Eu)}const Vu=H(ku,[["render",Bu]]),Su={},Nu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mu=e.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),Tu=[Mu];function Au(a,t){return e.openBlock(),e.createElementBlock("svg",Nu,Tu)}const Ou=H(Su,[["render",Au]]),Iu={},Du={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lu=e.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),Pu=[Lu];function Hu(a,t){return e.openBlock(),e.createElementBlock("svg",Du,Pu)}const Ru=H(Iu,[["render",Hu]]),ju={},Uu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fu=e.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),zu=[Fu];function Zu(a,t){return e.openBlock(),e.createElementBlock("svg",Uu,zu)}const xu=H(ju,[["render",Zu]]),Wu={},qu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yu=e.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),Ku=[Yu];function Gu(a,t){return e.openBlock(),e.createElementBlock("svg",qu,Ku)}const Xu=H(Wu,[["render",Gu]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:_s,AccountCircle:Es,AccountTreeOutlineRounded:Ts,AccountTreeRounded:Ps,Add:zs,AddBoxOutlineRounded:Ks,ArchiveOutlineRounded:ti,ArrowBackRounded:ri,ArrowDropDownRounded:mi,ArrowForwardRounded:_i,AssignmentOutlineRounded:Ei,AttachFileRounded:Ti,CalendarTodayOutlineRounded:Pi,CancelRounded:zi,ChatOutline:Ki,CheckBoxOutlineBlank:tr,CheckBoxOutlineBlankSharp:rr,CheckBoxOutlineRounded:mr,CheckSmallRounded:_r,ChecklistRounded:Er,ChevronLeft:Tr,ChevronRight:Pr,CloseRounded:zr,ContactsOutlineRounded:Kr,ContentCopyOutline:tl,DeleteOutlineRounded:rl,DragIndicator:ml,EditDocumentRounded:_l,EditOutline:El,ErrorOutlineRounded:Tl,FilterListRounded:Pl,FlagRounded:zl,FlowsheetOutlineRounded:Kl,GifBox:t1,GroupsOutline:r1,HomeOutlineRounded:m1,ImageRounded:_1,Info:E1,KeyboardArrowDown:T1,KeyboardArrowUp:P1,Loading:x1,Lock:X1,LogoutRounded:oc,Menu:cc,MoreHoriz:vc,MoreTimeRounded:bc,MoreVert:Vc,MountainFlagOutlineRounded:Oc,PersonAddOutlineRounded:Rc,PictureAsPdfRounded:xc,RadioButtonChecked:Xc,RadioButtonCheckedOutline:od,RadioButtonUnchecked:cd,RemoveRounded:vd,SearchRounded:bd,SelectCheckBox:Vd,SendRounded:Od,Settings:Rd,SlideshowRounded:xd,Target:Xd,TaskOutlineRounded:ou,TextSnippetRounded:cu,TimerOutline:vu,ViewComfyAltRounded:bu,ViewCompactAltRounded:Vu,ViewTimelineRounded:Ou,WarningOutlineRounded:Ru,WarningRounded:xu,WaterfallChartRounded:Xu},Symbol.toStringTag,{value:"Module"})),Ju={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},ha={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Ja={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},e2={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Ja,...e2});const tn={ROUND:"round",ROUNDED:"rounded"},t2={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},J=e.defineComponent({__name:"AoIcon",props:{name:{},size:{default:ha.MD}},setup(a){const t=a,o=e.computed(()=>Qu[t.name]);return(s,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{class:e.normalizeClass(["ao-icon",`ao-icon--${s.size}`])},null,8,["class"]))}});const a2=["type"],o2={key:0,class:"ao-button__label"},G=e.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>Ju.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>ha.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>tn.ROUNDED}},setup(a){const t=a,o=e.computed(()=>t.size),s=e.computed(()=>t.isLoading?"Loading":t.iconName);return(n,r)=>(e.openBlock(),e.createElementBlock("button",{type:n.type,class:e.normalizeClass(["ao-button",`ao-button--${n.variant}`,n.color?`ao-button--${n.color}`:"",`ao-button--${n.corners}`,n.footer?"ao-button--footer":"",n.size?`ao-button--${n.size}`:"",n.iconName&&n.iconPosition?`ao-button--icon-${n.iconPosition}`:"",n.$attrs.disabled?"ao-button--is-disabled":""])},[e.renderSlot(n.$slots,"default",{},()=>[n.label?(e.openBlock(),e.createElementBlock("span",o2,e.toDisplayString(n.label),1)):e.createCommentVNode("",!0)]),s.value?(e.openBlock(),e.createBlock(J,{key:0,name:s.value,class:"ao-button__icon",size:o.value},null,8,["name","size"])):e.createCommentVNode("",!0)],10,a2))}});function an(a){const t=e.ref(!1),o=e.ref(""),s=e.computed(()=>"value"in a.value?"value":"innerHTML"),n=()=>{t.value=!t.value},r=c=>{t.value=c},i=c=>async()=>{r(!1),await e.nextTick(()=>{a.value[s.value]=o.value,c==null||c()})},l=c=>async u=>{const d=a.value[s.value];r(!1),await e.nextTick(()=>{c(d,u)})};return e.watch(t,async c=>{await e.nextTick(()=>{setTimeout(()=>{a.value&&c&&(a.value.focus(),o.value=a.value[s.value])},1)})}),{isEditing:t,setIsEditing:r,toggleIsEditing:n,onUpdate:l,onDiscard:i}}const se=e.defineComponent({__name:"AoTitle",props:{id:{},title:{},level:{default:1},tag:{},color:{},isEditable:{type:Boolean,default:!1}},emits:["update:title","toggle-is-editing"],setup(a,{emit:t}){const o=a,s=e.ref(null),{isEditing:n,setIsEditing:r,onUpdate:i,onDiscard:l}=an(s),c=e.computed(()=>n.value?"input":o.tag||`h${o.level}`),u=e.computed(()=>o.isEditable?n.value?{change:d,click:y=>y.stopPropagation(),blur:m}:{click:f,focus:f}:{}),d=i((y,v)=>{const g=v.target.value;t("update:title",g)}),p=l(),m=async()=>{n.value&&r(!1)},h=()=>{t("toggle-is-editing",!1)},f=y=>{y.stopPropagation(),n.value||r(!0)};return e.watch(()=>o.isEditable,y=>{y||p()}),(y,v)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value),e.mergeProps({id:y.id,ref_key:"target",ref:s,class:["ao-title",`ao-title--${y.level}`,{[`ao-title--${y.color}`]:!!y.color,"ao-title--editable":y.isEditable,"ao-field__input ao-title--editing":e.unref(n),"ao-title--readonly":!e.unref(n)}],type:e.unref(n)?"text":null,value:e.unref(n)?y.title:null,tabindex:"0",onKeyup:e.withKeys(h,["enter"])},e.toHandlers(u.value),{onKeydown:e.withKeys(e.unref(p),["esc"])}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.title),1)]),_:1},16,["id","class","type","value","onKeyup","onKeydown"]))}});const n2={key:0,class:"ao-card-horiz__drag ao-card__drag"},s2={class:"ao-card-horiz__header"},i2={key:0,class:"ao-card-horiz__avatar"},r2={class:"ao-card-horiz__title-group"},l2={key:0,class:"ao-card-horiz__subtitle"},c2={key:1,class:"ao-card-horiz__header"},d2={key:1,class:"ao-card-horiz__body"},u2={key:2,class:"ao-card-horiz__footer"},p2={key:3,class:"ao-card-horiz__secondary"},on=e.defineComponent({__name:"AoCardHoriz",props:{id:{},title:{},subtitle:{},icon:{},isActive:{type:Boolean},isEditing:{type:Boolean},tagName:{default:"div"},isDraggable:{type:Boolean}},emits:["update:title"],setup(a,{emit:t}){const o=s=>{t("update:title",s)};return(s,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.tagName),{class:e.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":s.isActive}])},{default:e.withCtx(()=>[s.isDraggable?(e.openBlock(),e.createElementBlock("div",n2,[e.createVNode(J,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):e.createCommentVNode("",!0),e.createElementVNode("div",s2,[s.icon?(e.openBlock(),e.createElementBlock("div",i2,[e.createVNode(J,{class:"ao-card-horiz__icon",name:s.icon,size:"xl"},null,8,["name"])])):e.createCommentVNode("",!0),e.createElementVNode("div",r2,[e.createVNode(se,{id:s.id,class:"ao-card-horiz__title",level:4,title:s.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),e.renderSlot(s.$slots,"subtitle",{},()=>[s.subtitle?(e.openBlock(),e.createElementBlock("span",l2,e.toDisplayString(s.subtitle),1)):e.createCommentVNode("",!0)])]),s.$slots.header?(e.openBlock(),e.createElementBlock("div",c2,[e.renderSlot(s.$slots,"header")])):e.createCommentVNode("",!0)]),s.$slots.default?(e.openBlock(),e.createElementBlock("div",d2,[e.renderSlot(s.$slots,"default")])):e.createCommentVNode("",!0),s.$slots.footer?(e.openBlock(),e.createElementBlock("div",u2,[e.renderSlot(s.$slots,"footer")])):e.createCommentVNode("",!0),s.$slots.secondary?(e.openBlock(),e.createElementBlock("div",p2,[e.renderSlot(s.$slots,"secondary")])):e.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Ot=e.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(a){const t=a,o=e.computed(()=>t.clickable?"button":"span"),s=e.computed(()=>o.value==="button"?{type:"button"}:{});return(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ao-tag",n.color?`ao-tag--${n.color}`:"",n.clickable?"ao-tag--clickable":"",n.closable?"ao-tag--closable":"",n.variant?`ao-tag--${n.variant}`:""]),style:e.normalizeStyle(n.rawColor?{"--ao-tag-bg":n.rawColor}:{})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),e.mergeProps({class:"ao-tag__label"},s.value,{onClick:r[0]||(r[0]=i=>n.$emit("click",i))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.label)+" ",1),n.variant===e.unref(t2).SOLID_ICON&&n.iconName?(e.openBlock(),e.createBlock(J,{key:0,name:n.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):e.createCommentVNode("",!0)]),_:1},16)),n.closable?(e.openBlock(),e.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:r[1]||(r[1]=i=>n.$emit("close",i))},[e.createVNode(J,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):e.createCommentVNode("",!0)],6))}});const It={todo:"todo",done:"done",archived:"archived"},m2={months:"months",weeks:"weeks",days:"days"},f2={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},nn={BEFORE:"before",AFTER:"after"},sn={START:"start",end:"end"},rn={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},ee={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var ln=(a=>(a.PHASES="phases",a.MILESTONES="milestones",a.ACTIVITIES="activities",a))(ln||{});const v2={add:"add",remove:"remove",moved:"moved"};var cn=(a=>(a.HOURS="hours",a.DAYS="days",a))(cn||{});const et={project:"projectId",type:"typeId",assignee:"assigneeId"};function la(a){"@babel/helpers - typeof";return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},la(a)}function Me(a){if(a===null||a===!0||a===!1)return NaN;var t=Number(a);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ae(a,t){if(t.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+t.length+" present")}function re(a){ae(1,arguments);var t=Object.prototype.toString.call(a);return a instanceof Date||la(a)==="object"&&t==="[object Date]"?new Date(a.getTime()):typeof a=="number"||t==="[object Number]"?new Date(a):((typeof a=="string"||t==="[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 h2(a,t){ae(2,arguments);var o=re(a).getTime(),s=Me(t);return new Date(o+s)}var C2={};function Ut(){return C2}function Dt(a){var t=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return t.setUTCFullYear(a.getFullYear()),a.getTime()-t.getTime()}function Oo(a){ae(1,arguments);var t=re(a);return t.setHours(0,0,0,0),t}var g2=864e5;function _2(a,t){ae(2,arguments);var o=Oo(a),s=Oo(t),n=o.getTime()-Dt(o),r=s.getTime()-Dt(s);return Math.round((n-r)/g2)}function y2(a,t){ae(2,arguments);var o=re(a),s=re(t),n=o.getTime()-s.getTime();return n<0?-1:n>0?1:n}var dn=6e4,un=36e5;function b2(a){return ae(1,arguments),a instanceof Date||la(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}function pn(a){if(ae(1,arguments),!b2(a)&&typeof a!="number")return!1;var t=re(a);return!isNaN(Number(t))}function qa(a,t){ae(2,arguments);var o=Me(t);return h2(a,-o)}var k2=864e5;function w2(a){ae(1,arguments);var t=re(a),o=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var s=t.getTime(),n=o-s;return Math.floor(n/k2)+1}function ca(a){ae(1,arguments);var t=1,o=re(a),s=o.getUTCDay(),n=(s<t?7:0)+s-t;return o.setUTCDate(o.getUTCDate()-n),o.setUTCHours(0,0,0,0),o}function mn(a){ae(1,arguments);var t=re(a),o=t.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(o+1,0,4),s.setUTCHours(0,0,0,0);var n=ca(s),r=new Date(0);r.setUTCFullYear(o,0,4),r.setUTCHours(0,0,0,0);var i=ca(r);return t.getTime()>=n.getTime()?o+1:t.getTime()>=i.getTime()?o:o-1}function $2(a){ae(1,arguments);var t=mn(a),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var s=ca(o);return s}var E2=6048e5;function B2(a){ae(1,arguments);var t=re(a),o=ca(t).getTime()-$2(t).getTime();return Math.round(o/E2)+1}function da(a,t){var o,s,n,r,i,l,c,u;ae(1,arguments);var d=Ut(),p=Me((o=(s=(n=(r=t==null?void 0:t.weekStartsOn)!==null&&r!==void 0?r:t==null||(i=t.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&n!==void 0?n:d.weekStartsOn)!==null&&s!==void 0?s:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=re(a),h=m.getUTCDay(),f=(h<p?7:0)+h-p;return m.setUTCDate(m.getUTCDate()-f),m.setUTCHours(0,0,0,0),m}function fn(a,t){var o,s,n,r,i,l,c,u;ae(1,arguments);var d=re(a),p=d.getUTCFullYear(),m=Ut(),h=Me((o=(s=(n=(r=t==null?void 0:t.firstWeekContainsDate)!==null&&r!==void 0?r:t==null||(i=t.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:m.firstWeekContainsDate)!==null&&s!==void 0?s:(c=m.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(p+1,0,h),f.setUTCHours(0,0,0,0);var y=da(f,t),v=new Date(0);v.setUTCFullYear(p,0,h),v.setUTCHours(0,0,0,0);var b=da(v,t);return d.getTime()>=y.getTime()?p+1:d.getTime()>=b.getTime()?p:p-1}function V2(a,t){var o,s,n,r,i,l,c,u;ae(1,arguments);var d=Ut(),p=Me((o=(s=(n=(r=t==null?void 0:t.firstWeekContainsDate)!==null&&r!==void 0?r:t==null||(i=t.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:d.firstWeekContainsDate)!==null&&s!==void 0?s:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&o!==void 0?o:1),m=fn(a,t),h=new Date(0);h.setUTCFullYear(m,0,p),h.setUTCHours(0,0,0,0);var f=da(h,t);return f}var S2=6048e5;function N2(a,t){ae(1,arguments);var o=re(a),s=da(o,t).getTime()-V2(o,t).getTime();return Math.round(s/S2)+1}function Q(a,t){for(var o=a<0?"-":"",s=Math.abs(a).toString();s.length<t;)s="0"+s;return o+s}var M2={y:function(t,o){var s=t.getUTCFullYear(),n=s>0?s:1-s;return Q(o==="yy"?n%100:n,o.length)},M:function(t,o){var s=t.getUTCMonth();return o==="M"?String(s+1):Q(s+1,2)},d:function(t,o){return Q(t.getUTCDate(),o.length)},a:function(t,o){var s=t.getUTCHours()/12>=1?"pm":"am";switch(o){case"a":case"aa":return s.toUpperCase();case"aaa":return s;case"aaaaa":return s[0];case"aaaa":default:return s==="am"?"a.m.":"p.m."}},h:function(t,o){return Q(t.getUTCHours()%12||12,o.length)},H:function(t,o){return Q(t.getUTCHours(),o.length)},m:function(t,o){return Q(t.getUTCMinutes(),o.length)},s:function(t,o){return Q(t.getUTCSeconds(),o.length)},S:function(t,o){var s=o.length,n=t.getUTCMilliseconds(),r=Math.floor(n*Math.pow(10,s-3));return Q(r,o.length)}};const je=M2;var dt={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},T2={G:function(t,o,s){var n=t.getUTCFullYear()>0?1:0;switch(o){case"G":case"GG":case"GGG":return s.era(n,{width:"abbreviated"});case"GGGGG":return s.era(n,{width:"narrow"});case"GGGG":default:return s.era(n,{width:"wide"})}},y:function(t,o,s){if(o==="yo"){var n=t.getUTCFullYear(),r=n>0?n:1-n;return s.ordinalNumber(r,{unit:"year"})}return je.y(t,o)},Y:function(t,o,s,n){var r=fn(t,n),i=r>0?r:1-r;if(o==="YY"){var l=i%100;return Q(l,2)}return o==="Yo"?s.ordinalNumber(i,{unit:"year"}):Q(i,o.length)},R:function(t,o){var s=mn(t);return Q(s,o.length)},u:function(t,o){var s=t.getUTCFullYear();return Q(s,o.length)},Q:function(t,o,s){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(o){case"Q":return String(n);case"QQ":return Q(n,2);case"Qo":return s.ordinalNumber(n,{unit:"quarter"});case"QQQ":return s.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,o,s){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(o){case"q":return String(n);case"qq":return Q(n,2);case"qo":return s.ordinalNumber(n,{unit:"quarter"});case"qqq":return s.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return s.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,o,s){var n=t.getUTCMonth();switch(o){case"M":case"MM":return je.M(t,o);case"Mo":return s.ordinalNumber(n+1,{unit:"month"});case"MMM":return s.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return s.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(n,{width:"wide",context:"formatting"})}},L:function(t,o,s){var n=t.getUTCMonth();switch(o){case"L":return String(n+1);case"LL":return Q(n+1,2);case"Lo":return s.ordinalNumber(n+1,{unit:"month"});case"LLL":return s.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return s.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(n,{width:"wide",context:"standalone"})}},w:function(t,o,s,n){var r=N2(t,n);return o==="wo"?s.ordinalNumber(r,{unit:"week"}):Q(r,o.length)},I:function(t,o,s){var n=B2(t);return o==="Io"?s.ordinalNumber(n,{unit:"week"}):Q(n,o.length)},d:function(t,o,s){return o==="do"?s.ordinalNumber(t.getUTCDate(),{unit:"date"}):je.d(t,o)},D:function(t,o,s){var n=w2(t);return o==="Do"?s.ordinalNumber(n,{unit:"dayOfYear"}):Q(n,o.length)},E:function(t,o,s){var n=t.getUTCDay();switch(o){case"E":case"EE":case"EEE":return s.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return s.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(n,{width:"short",context:"formatting"});case"EEEE":default:return s.day(n,{width:"wide",context:"formatting"})}},e:function(t,o,s,n){var r=t.getUTCDay(),i=(r-n.weekStartsOn+8)%7||7;switch(o){case"e":return String(i);case"ee":return Q(i,2);case"eo":return s.ordinalNumber(i,{unit:"day"});case"eee":return s.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return s.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(r,{width:"short",context:"formatting"});case"eeee":default:return s.day(r,{width:"wide",context:"formatting"})}},c:function(t,o,s,n){var r=t.getUTCDay(),i=(r-n.weekStartsOn+8)%7||7;switch(o){case"c":return String(i);case"cc":return Q(i,o.length);case"co":return s.ordinalNumber(i,{unit:"day"});case"ccc":return s.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return s.day(r,{width:"narrow",context:"standalone"});case"cccccc":return s.day(r,{width:"short",context:"standalone"});case"cccc":default:return s.day(r,{width:"wide",context:"standalone"})}},i:function(t,o,s){var n=t.getUTCDay(),r=n===0?7:n;switch(o){case"i":return String(r);case"ii":return Q(r,o.length);case"io":return s.ordinalNumber(r,{unit:"day"});case"iii":return s.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return s.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return s.day(n,{width:"short",context:"formatting"});case"iiii":default:return s.day(n,{width:"wide",context:"formatting"})}},a:function(t,o,s){var n=t.getUTCHours(),r=n/12>=1?"pm":"am";switch(o){case"a":case"aa":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,o,s){var n=t.getUTCHours(),r;switch(n===12?r=dt.noon:n===0?r=dt.midnight:r=n/12>=1?"pm":"am",o){case"b":case"bb":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,o,s){var n=t.getUTCHours(),r;switch(n>=17?r=dt.evening:n>=12?r=dt.afternoon:n>=4?r=dt.morning:r=dt.night,o){case"B":case"BB":case"BBB":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,o,s){if(o==="ho"){var n=t.getUTCHours()%12;return n===0&&(n=12),s.ordinalNumber(n,{unit:"hour"})}return je.h(t,o)},H:function(t,o,s){return o==="Ho"?s.ordinalNumber(t.getUTCHours(),{unit:"hour"}):je.H(t,o)},K:function(t,o,s){var n=t.getUTCHours()%12;return o==="Ko"?s.ordinalNumber(n,{unit:"hour"}):Q(n,o.length)},k:function(t,o,s){var n=t.getUTCHours();return n===0&&(n=24),o==="ko"?s.ordinalNumber(n,{unit:"hour"}):Q(n,o.length)},m:function(t,o,s){return o==="mo"?s.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):je.m(t,o)},s:function(t,o,s){return o==="so"?s.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):je.s(t,o)},S:function(t,o){return je.S(t,o)},X:function(t,o,s,n){var r=n._originalDate||t,i=r.getTimezoneOffset();if(i===0)return"Z";switch(o){case"X":return Do(i);case"XXXX":case"XX":return tt(i);case"XXXXX":case"XXX":default:return tt(i,":")}},x:function(t,o,s,n){var r=n._originalDate||t,i=r.getTimezoneOffset();switch(o){case"x":return Do(i);case"xxxx":case"xx":return tt(i);case"xxxxx":case"xxx":default:return tt(i,":")}},O:function(t,o,s,n){var r=n._originalDate||t,i=r.getTimezoneOffset();switch(o){case"O":case"OO":case"OOO":return"GMT"+Io(i,":");case"OOOO":default:return"GMT"+tt(i,":")}},z:function(t,o,s,n){var r=n._originalDate||t,i=r.getTimezoneOffset();switch(o){case"z":case"zz":case"zzz":return"GMT"+Io(i,":");case"zzzz":default:return"GMT"+tt(i,":")}},t:function(t,o,s,n){var r=n._originalDate||t,i=Math.floor(r.getTime()/1e3);return Q(i,o.length)},T:function(t,o,s,n){var r=n._originalDate||t,i=r.getTime();return Q(i,o.length)}};function Io(a,t){var o=a>0?"-":"+",s=Math.abs(a),n=Math.floor(s/60),r=s%60;if(r===0)return o+String(n);var i=t||"";return o+String(n)+i+Q(r,2)}function Do(a,t){if(a%60===0){var o=a>0?"-":"+";return o+Q(Math.abs(a)/60,2)}return tt(a,t)}function tt(a,t){var o=t||"",s=a>0?"-":"+",n=Math.abs(a),r=Q(Math.floor(n/60),2),i=Q(n%60,2);return s+r+o+i}const A2=T2;var Lo=function(t,o){switch(t){case"P":return o.date({width:"short"});case"PP":return o.date({width:"medium"});case"PPP":return o.date({width:"long"});case"PPPP":default:return o.date({width:"full"})}},vn=function(t,o){switch(t){case"p":return o.time({width:"short"});case"pp":return o.time({width:"medium"});case"ppp":return o.time({width:"long"});case"pppp":default:return o.time({width:"full"})}},O2=function(t,o){var s=t.match(/(P+)(p+)?/)||[],n=s[1],r=s[2];if(!r)return Lo(t,o);var i;switch(n){case"P":i=o.dateTime({width:"short"});break;case"PP":i=o.dateTime({width:"medium"});break;case"PPP":i=o.dateTime({width:"long"});break;case"PPPP":default:i=o.dateTime({width:"full"});break}return i.replace("{{date}}",Lo(n,o)).replace("{{time}}",vn(r,o))},I2={p:vn,P:O2};const D2=I2;var L2=["D","DD"],P2=["YY","YYYY"];function H2(a){return L2.indexOf(a)!==-1}function R2(a){return P2.indexOf(a)!==-1}function Po(a,t,o){if(a==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var j2={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"}},U2=function(t,o,s){var n,r=j2[t];return typeof r=="string"?n=r:o===1?n=r.one:n=r.other.replace("{{count}}",o.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+n:n+" ago":n};const F2=U2;function Fa(a){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=t.width?String(t.width):a.defaultWidth,s=a.formats[o]||a.formats[a.defaultWidth];return s}}var z2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Z2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},x2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},W2={date:Fa({formats:z2,defaultWidth:"full"}),time:Fa({formats:Z2,defaultWidth:"full"}),dateTime:Fa({formats:x2,defaultWidth:"full"})};const q2=W2;var Y2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},K2=function(t,o,s,n){return Y2[t]};const G2=K2;function $t(a){return function(t,o){var s=o!=null&&o.context?String(o.context):"standalone",n;if(s==="formatting"&&a.formattingValues){var r=a.defaultFormattingWidth||a.defaultWidth,i=o!=null&&o.width?String(o.width):r;n=a.formattingValues[i]||a.formattingValues[r]}else{var l=a.defaultWidth,c=o!=null&&o.width?String(o.width):a.defaultWidth;n=a.values[c]||a.values[l]}var u=a.argumentCallback?a.argumentCallback(t):t;return n[u]}}var X2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Q2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},J2={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"]},e0={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"]},t0={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"}},a0={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"}},o0=function(t,o){var s=Number(t),n=s%100;if(n>20||n<10)switch(n%10){case 1:return s+"st";case 2:return s+"nd";case 3:return s+"rd"}return s+"th"},n0={ordinalNumber:o0,era:$t({values:X2,defaultWidth:"wide"}),quarter:$t({values:Q2,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:$t({values:J2,defaultWidth:"wide"}),day:$t({values:e0,defaultWidth:"wide"}),dayPeriod:$t({values:t0,defaultWidth:"wide",formattingValues:a0,defaultFormattingWidth:"wide"})};const s0=n0;function Et(a){return function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.width,n=s&&a.matchPatterns[s]||a.matchPatterns[a.defaultMatchWidth],r=t.match(n);if(!r)return null;var i=r[0],l=s&&a.parsePatterns[s]||a.parsePatterns[a.defaultParseWidth],c=Array.isArray(l)?r0(l,function(p){return p.test(i)}):i0(l,function(p){return p.test(i)}),u;u=a.valueCallback?a.valueCallback(c):c,u=o.valueCallback?o.valueCallback(u):u;var d=t.slice(i.length);return{value:u,rest:d}}}function i0(a,t){for(var o in a)if(a.hasOwnProperty(o)&&t(a[o]))return o}function r0(a,t){for(var o=0;o<a.length;o++)if(t(a[o]))return o}function l0(a){return function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=t.match(a.matchPattern);if(!s)return null;var n=s[0],r=t.match(a.parsePattern);if(!r)return null;var i=a.valueCallback?a.valueCallback(r[0]):r[0];i=o.valueCallback?o.valueCallback(i):i;var l=t.slice(n.length);return{value:i,rest:l}}}var c0=/^(\d+)(th|st|nd|rd)?/i,d0=/\d+/i,u0={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},p0={any:[/^b/i,/^(a|c)/i]},m0={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},f0={any:[/1/i,/2/i,/3/i,/4/i]},v0={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},h0={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]},C0={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},g0={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]},_0={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},y0={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}},b0={ordinalNumber:l0({matchPattern:c0,parsePattern:d0,valueCallback:function(t){return parseInt(t,10)}}),era:Et({matchPatterns:u0,defaultMatchWidth:"wide",parsePatterns:p0,defaultParseWidth:"any"}),quarter:Et({matchPatterns:m0,defaultMatchWidth:"wide",parsePatterns:f0,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Et({matchPatterns:v0,defaultMatchWidth:"wide",parsePatterns:h0,defaultParseWidth:"any"}),day:Et({matchPatterns:C0,defaultMatchWidth:"wide",parsePatterns:g0,defaultParseWidth:"any"}),dayPeriod:Et({matchPatterns:_0,defaultMatchWidth:"any",parsePatterns:y0,defaultParseWidth:"any"})};const k0=b0;var w0={code:"en-US",formatDistance:F2,formatLong:q2,formatRelative:G2,localize:s0,match:k0,options:{weekStartsOn:0,firstWeekContainsDate:1}};const hn=w0;var $0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,E0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,B0=/^'([^]*?)'?$/,V0=/''/g,S0=/[a-zA-Z]/;function Cn(a,t,o){var s,n,r,i,l,c,u,d,p,m,h,f,y,v,b,g,C,_;ae(2,arguments);var B=String(t),E=Ut(),N=(s=(n=o==null?void 0:o.locale)!==null&&n!==void 0?n:E.locale)!==null&&s!==void 0?s:hn,D=Me((r=(i=(l=(c=o==null?void 0:o.firstWeekContainsDate)!==null&&c!==void 0?c:o==null||(u=o.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:E.firstWeekContainsDate)!==null&&i!==void 0?i:(p=E.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=Me((h=(f=(y=(v=o==null?void 0:o.weekStartsOn)!==null&&v!==void 0?v:o==null||(b=o.locale)===null||b===void 0||(g=b.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&y!==void 0?y:E.weekStartsOn)!==null&&f!==void 0?f:(C=E.locale)===null||C===void 0||(_=C.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&h!==void 0?h:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var F=re(a);if(!pn(F))throw new RangeError("Invalid time value");var Z=Dt(F),O=qa(F,Z),U={firstWeekContainsDate:D,weekStartsOn:j,locale:N,_originalDate:F},K=B.match(E0).map(function(W){var z=W[0];if(z==="p"||z==="P"){var S=D2[z];return S(W,N.formatLong)}return W}).join("").match($0).map(function(W){if(W==="''")return"'";var z=W[0];if(z==="'")return N0(W);var S=A2[z];if(S)return!(o!=null&&o.useAdditionalWeekYearTokens)&&R2(W)&&Po(W,t,String(a)),!(o!=null&&o.useAdditionalDayOfYearTokens)&&H2(W)&&Po(W,t,String(a)),S(O,W,N.localize,U);if(z.match(S0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");return W}).join("");return K}function N0(a){var t=a.match(B0);return t?t[1].replace(V0,"'"):a}function M0(a,t,o){var s,n,r,i,l,c,u,d,p,m;ae(2,arguments);var h=re(a),f=re(t),y=Ut(),v=(s=(n=o==null?void 0:o.locale)!==null&&n!==void 0?n:y.locale)!==null&&s!==void 0?s:hn,b=Me((r=(i=(l=(c=o==null?void 0:o.weekStartsOn)!==null&&c!==void 0?c:o==null||(u=o.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&l!==void 0?l:y.weekStartsOn)!==null&&i!==void 0?i:(p=y.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&r!==void 0?r:0);if(!v.localize)throw new RangeError("locale must contain localize property");if(!v.formatLong)throw new RangeError("locale must contain formatLong property");if(!v.formatRelative)throw new RangeError("locale must contain formatRelative property");var g=_2(h,f);if(isNaN(g))throw new RangeError("Invalid time value");var C;g<-6?C="other":g<-1?C="lastWeek":g<0?C="yesterday":g<1?C="today":g<2?C="tomorrow":g<7?C="nextWeek":C="other";var _=qa(h,Dt(h)),B=qa(f,Dt(f)),E=v.formatRelative(C,_,B,{locale:v,weekStartsOn:b});return Cn(h,E,{locale:v,weekStartsOn:b})}function Lt(a,t){var o;ae(1,arguments);var s=Me((o=t==null?void 0:t.additionalDigits)!==null&&o!==void 0?o:2);if(s!==2&&s!==1&&s!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof a=="string"||Object.prototype.toString.call(a)==="[object String]"))return new Date(NaN);var n=I0(a),r;if(n.date){var i=D0(n.date,s);r=L0(i.restDateString,i.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var l=r.getTime(),c=0,u;if(n.time&&(c=P0(n.time),isNaN(c)))return new Date(NaN);if(n.timezone){if(u=H0(n.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(l+c),p=new Date(0);return p.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),p.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),p}return new Date(l+c+u)}var ta={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},T0=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,A0=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,O0=/^([+-])(\d{2})(?::?(\d{2}))?$/;function I0(a){var t={},o=a.split(ta.dateTimeDelimiter),s;if(o.length>2)return t;if(/:/.test(o[0])?s=o[0]:(t.date=o[0],s=o[1],ta.timeZoneDelimiter.test(t.date)&&(t.date=a.split(ta.timeZoneDelimiter)[0],s=a.substr(t.date.length,a.length))),s){var n=ta.timezone.exec(s);n?(t.time=s.replace(n[1],""),t.timezone=n[1]):t.time=s}return t}function D0(a,t){var o=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),s=a.match(o);if(!s)return{year:NaN,restDateString:""};var n=s[1]?parseInt(s[1]):null,r=s[2]?parseInt(s[2]):null;return{year:r===null?n:r*100,restDateString:a.slice((s[1]||s[2]).length)}}function L0(a,t){if(t===null)return new Date(NaN);var o=a.match(T0);if(!o)return new Date(NaN);var s=!!o[4],n=Bt(o[1]),r=Bt(o[2])-1,i=Bt(o[3]),l=Bt(o[4]),c=Bt(o[5])-1;if(s)return z0(t,l,c)?R0(t,l,c):new Date(NaN);var u=new Date(0);return!U0(t,r,i)||!F0(t,n)?new Date(NaN):(u.setUTCFullYear(t,r,Math.max(n,i)),u)}function Bt(a){return a?parseInt(a):1}function P0(a){var t=a.match(A0);if(!t)return NaN;var o=za(t[1]),s=za(t[2]),n=za(t[3]);return Z0(o,s,n)?o*un+s*dn+n*1e3:NaN}function za(a){return a&&parseFloat(a.replace(",","."))||0}function H0(a){if(a==="Z")return 0;var t=a.match(O0);if(!t)return 0;var o=t[1]==="+"?-1:1,s=parseInt(t[2]),n=t[3]&&parseInt(t[3])||0;return x0(s,n)?o*(s*un+n*dn):NaN}function R0(a,t,o){var s=new Date(0);s.setUTCFullYear(a,0,4);var n=s.getUTCDay()||7,r=(t-1)*7+o+1-n;return s.setUTCDate(s.getUTCDate()+r),s}var j0=[31,null,31,30,31,30,31,31,30,31,30,31];function gn(a){return a%400===0||a%4===0&&a%100!==0}function U0(a,t,o){return t>=0&&t<=11&&o>=1&&o<=(j0[t]||(gn(a)?29:28))}function F0(a,t){return t>=1&&t<=(gn(a)?366:365)}function z0(a,t,o){return t>=1&&t<=53&&o>=0&&o<=6}function Z0(a,t,o){return a===24?t===0&&o===0:o>=0&&o<60&&t>=0&&t<60&&a>=0&&a<25}function x0(a,t){return t>=0&&t<=59}var ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ne={},_n={},Vt={},Ft={},yt={},Ca={};Object.defineProperty(Ca,"__esModule",{value:!0});Ca.lexoHelper=void 0;Ca.lexoHelper={arrayCopy:W0};function W0(a,t,o,s,n){let r=s;const i=t+n;for(let l=t;l<i;l++)o[r]=a[l],++r}var zt={};Object.defineProperty(zt,"__esModule",{value:!0});class q0{constructor(t=""){this.str=t}get length(){return this.str.length}set length(t){this.str=this.str.substring(0,t)}append(t){return this.str=this.str+t,this}remove(t,o){return this.str=this.str.substr(0,t)+this.str.substr(t+o),this}insert(t,o){return this.str=this.str.substr(0,t)+o+this.str.substr(t),this}toString(){return this.str}}zt.default=q0;Object.defineProperty(yt,"__esModule",{value:!0});yt.LexoInteger=void 0;const aa=Ca,Y0=zt;class Y{constructor(t,o,s){this.sys=t,this.sign=o,this.mag=s}static parse(t,o){let s=t,n=1;t.indexOf(o.getPositiveChar())===0?s=t.substring(1):t.indexOf(o.getNegativeChar())===0&&(s=t.substring(1),n=-1);const r=new Array(s.length);let i=r.length-1;for(let l=0;i>=0;++l)r[l]=o.toDigit(s.charAt(i)),--i;return Y.make(o,n,r)}static zero(t){return new Y(t,0,Y.ZERO_MAG)}static one(t){return Y.make(t,1,Y.ONE_MAG)}static make(t,o,s){let n;for(n=s.length;n>0&&s[n-1]===0;--n);if(n===0)return Y.zero(t);if(n===s.length)return new Y(t,o,s);const r=new Array(n).fill(0);return aa.lexoHelper.arrayCopy(s,0,r,0,n),new Y(t,o,r)}static add(t,o,s){const n=Math.max(o.length,s.length),r=new Array(n).fill(0);let i=0;for(let l=0;l<n;++l){const c=l<o.length?o[l]:0,u=l<s.length?s[l]:0;let d=c+u+i;for(i=0;d>=t.getBase();d-=t.getBase())++i;r[l]=d}return Y.extendWithCarry(r,i)}static extendWithCarry(t,o){if(o>0){const s=new Array(t.length+1).fill(0);return aa.lexoHelper.arrayCopy(t,0,s,0,t.length),s[s.length-1]=o,s}return t}static subtract(t,o,s){const n=Y.complement(t,s,o.length),r=Y.add(t,o,n);return r[r.length-1]=0,Y.add(t,r,Y.ONE_MAG)}static multiply(t,o,s){const n=new Array(o.length+s.length).fill(0);for(let r=0;r<o.length;++r)for(let i=0;i<s.length;++i){const l=r+i;for(n[l]+=o[r]*s[i];n[l]>=t.getBase();n[l]-=t.getBase())++n[l+1]}return n}static complement(t,o,s){if(s<=0)throw new Error("Expected at least 1 digit");const n=new Array(s).fill(t.getBase()-1);for(let r=0;r<o.length;++r)n[r]=t.getBase()-1-o[r];return n}static compare(t,o){if(t.length<o.length)return-1;if(t.length>o.length)return 1;for(let s=t.length-1;s>=0;--s){if(t[s]<o[s])return-1;if(t[s]>o[s])return 1}return 0}add(t){if(this.checkSystem(t),this.isZero())return t;if(t.isZero())return this;if(this.sign!==t.sign){let s;return this.sign===-1?(s=this.negate(),s.subtract(t).negate()):(s=t.negate(),this.subtract(s))}const o=Y.add(this.sys,this.mag,t.mag);return Y.make(this.sys,this.sign,o)}subtract(t){if(this.checkSystem(t),this.isZero())return t.negate();if(t.isZero())return this;if(this.sign!==t.sign){let s;return this.sign===-1?(s=this.negate(),s.add(t).negate()):(s=t.negate(),this.add(s))}const o=Y.compare(this.mag,t.mag);return o===0?Y.zero(this.sys):o<0?Y.make(this.sys,this.sign===-1?1:-1,Y.subtract(this.sys,t.mag,this.mag)):Y.make(this.sys,this.sign===-1?-1:1,Y.subtract(this.sys,this.mag,t.mag))}multiply(t){if(this.checkSystem(t),this.isZero())return this;if(t.isZero())return t;if(this.isOneish())return this.sign===t.sign?Y.make(this.sys,1,t.mag):Y.make(this.sys,-1,t.mag);if(t.isOneish())return this.sign===t.sign?Y.make(this.sys,1,this.mag):Y.make(this.sys,-1,this.mag);const o=Y.multiply(this.sys,this.mag,t.mag);return this.sign===t.sign?Y.make(this.sys,1,o):Y.make(this.sys,-1,o)}negate(){return this.isZero()?this:Y.make(this.sys,this.sign===1?-1:1,this.mag)}shiftLeft(t=1){if(t===0)return this;if(t<0)return this.shiftRight(Math.abs(t));const o=new Array(this.mag.length+t).fill(0);return aa.lexoHelper.arrayCopy(this.mag,0,o,t,this.mag.length),Y.make(this.sys,this.sign,o)}shiftRight(t=1){if(this.mag.length-t<=0)return Y.zero(this.sys);const o=new Array(this.mag.length-t).fill(0);return aa.lexoHelper.arrayCopy(this.mag,t,o,0,o.length),Y.make(this.sys,this.sign,o)}complement(){return this.complementDigits(this.mag.length)}complementDigits(t){return Y.make(this.sys,this.sign,Y.complement(this.sys,this.mag,t))}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(t){return this.mag[t]}compareTo(t){if(this===t)return 0;if(!t)return 1;if(this.sign===-1){if(t.sign===-1){const o=Y.compare(this.mag,t.mag);return o===-1?1:o===1?-1:0}return-1}return this.sign===1?t.sign===1?Y.compare(this.mag,t.mag):1:t.sign===-1?1:t.sign===1?-1:0}getSystem(){return this.sys}format(){if(this.isZero())return""+this.sys.toChar(0);const t=new Y0.default,o=this.mag,s=o.length;for(let n=0;n<s;++n){const r=o[n];t.insert(0,this.sys.toChar(r))}return this.sign===-1&&t.insert(0,this.sys.getNegativeChar()),t.toString()}equals(t){return this===t?!0:t?this.sys.getBase()===t.sys.getBase()&&this.compareTo(t)===0:!1}toString(){return this.format()}isOneish(){return this.mag.length===1&&this.mag[0]===1}checkSystem(t){if(this.sys.getBase()!==t.sys.getBase())throw new Error("Expected numbers of same numeral sys")}}yt.LexoInteger=Y;Y.ZERO_MAG=[0];Y.ONE_MAG=[1];Y.NEGATIVE_SIGN=-1;Y.ZERO_SIGN=0;Y.POSITIVE_SIGN=1;Object.defineProperty(Ft,"__esModule",{value:!0});Ft.LexoDecimal=void 0;const St=yt,K0=zt;class me{constructor(t,o){this.mag=t,this.sig=o}static half(t){const o=t.getBase()/2|0;return me.make(St.LexoInteger.make(t,1,[o]),1)}static parse(t,o){const s=t.indexOf(o.getRadixPointChar());if(t.lastIndexOf(o.getRadixPointChar())!==s)throw new Error("More than one "+o.getRadixPointChar());if(s<0)return me.make(St.LexoInteger.parse(t,o),0);const n=t.substring(0,s)+t.substring(s+1);return me.make(St.LexoInteger.parse(n,o),t.length-1-s)}static from(t){return me.make(t,0)}static make(t,o){if(t.isZero())return new me(t,0);let s=0;for(let i=0;i<o&&t.getMag(i)===0;++i)++s;const n=t.shiftRight(s),r=o-s;return new me(n,r)}getSystem(){return this.mag.getSystem()}add(t){let o=this.mag,s=this.sig,n=t.mag,r;for(r=t.sig;s<r;++s)o=o.shiftLeft();for(;s>r;)n=n.shiftLeft(),++r;return me.make(o.add(n),s)}subtract(t){let o=this.mag,s=this.sig,n=t.mag,r;for(r=t.sig;s<r;++s)o=o.shiftLeft();for(;s>r;)n=n.shiftLeft(),++r;return me.make(o.subtract(n),s)}multiply(t){return me.make(this.mag.multiply(t.mag),this.sig+t.sig)}floor(){return this.mag.shiftRight(this.sig)}ceil(){if(this.isExact())return this.mag;const t=this.floor();return t.add(St.LexoInteger.one(t.getSystem()))}isExact(){if(this.sig===0)return!0;for(let t=0;t<this.sig;++t)if(this.mag.getMag(t)!==0)return!1;return!0}getScale(){return this.sig}setScale(t,o=!1){if(t>=this.sig)return this;t<0&&(t=0);const s=this.sig-t;let n=this.mag.shiftRight(s);return o&&(n=n.add(St.LexoInteger.one(n.getSystem()))),me.make(n,t)}compareTo(t){if(this===t)return 0;if(!t)return 1;let o=this.mag,s=t.mag;return this.sig>t.sig?s=s.shiftLeft(this.sig-t.sig):this.sig<t.sig&&(o=o.shiftLeft(t.sig-this.sig)),o.compareTo(s)}format(){const t=this.mag.format();if(this.sig===0)return t;const o=new K0.default(t),s=o[0],n=s===this.mag.getSystem().getPositiveChar()||s===this.mag.getSystem().getNegativeChar();for(n&&o.remove(0,1);o.length<this.sig+1;)o.insert(0,this.mag.getSystem().toChar(0));return o.insert(o.length-this.sig,this.mag.getSystem().getRadixPointChar()),o.length-this.sig===0&&o.insert(0,this.mag.getSystem().toChar(0)),n&&o.insert(0,s),o.toString()}equals(t){return this===t?!0:t?this.mag.equals(t.mag)&&this.sig===t.sig:!1}toString(){return this.format()}}Ft.LexoDecimal=me;var oa={},Ho;function yn(){if(Ho)return oa;Ho=1,Object.defineProperty(oa,"__esModule",{value:!0});const a=yt,t=kn();class o{constructor(n){this.value=a.LexoInteger.parse(n,t.LexoRank.NUMERAL_SYSTEM)}static get BUCKET_0(){return this._BUCKET_0||(this._BUCKET_0=new o("0")),this._BUCKET_0}static get BUCKET_1(){return this._BUCKET_1||(this._BUCKET_1=new o("1")),this._BUCKET_1}static get BUCKET_2(){return this._BUCKET_2||(this._BUCKET_2=new o("2")),this._BUCKET_2}static get VALUES(){return this._VALUES||(this._VALUES=[o.BUCKET_0,o.BUCKET_1,o.BUCKET_2]),this._VALUES}static max(){return o.VALUES[o.VALUES.length-1]}static from(n){const r=a.LexoInteger.parse(n,t.LexoRank.NUMERAL_SYSTEM),i=o.VALUES,l=i.length;for(let c=0;c<l;++c){const u=i[c];if(u.value.equals(r))return u}throw new Error("Unknown bucket: "+n)}static resolve(n){const r=o.VALUES,i=r.length;for(let l=0;l<i;++l){const c=r[l];if(c.equals(o.from(n.toString())))return c}throw new Error("No bucket found with id "+n)}format(){return this.value.format()}next(){return this.equals(o.BUCKET_0)?o.BUCKET_1:this.equals(o.BUCKET_1)?o.BUCKET_2:this.equals(o.BUCKET_2)?o.BUCKET_0:o.BUCKET_2}prev(){return this.equals(o.BUCKET_0)?o.BUCKET_2:this.equals(o.BUCKET_1)?o.BUCKET_0:this.equals(o.BUCKET_2)?o.BUCKET_1:o.BUCKET_0}equals(n){return this===n?!0:n?this.value.equals(n.value):!1}}return oa.default=o,oa}var eo={},bn={};Object.defineProperty(bn,"__esModule",{value:!0});var ga={};Object.defineProperty(ga,"__esModule",{value:!0});ga.LexoNumeralSystem10=void 0;class G0{getBase(){return 10}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return"."}toDigit(t){if(t>="0"&&t<="9")return t.charCodeAt(0)-48;throw new Error("Not valid digit: "+t)}toChar(t){return String.fromCharCode(t+48)}}ga.LexoNumeralSystem10=G0;var _a={};Object.defineProperty(_a,"__esModule",{value:!0});_a.LexoNumeralSystem36=void 0;class X0{constructor(){this.DIGITS="0123456789abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 36}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(t){if(t>="0"&&t<="9")return t.charCodeAt(0)-48;if(t>="a"&&t<="z")return t.charCodeAt(0)-97+10;throw new Error("Not valid digit: "+t)}toChar(t){return this.DIGITS[t]}}_a.LexoNumeralSystem36=X0;var ya={};Object.defineProperty(ya,"__esModule",{value:!0});ya.LexoNumeralSystem64=void 0;class Q0{constructor(){this.DIGITS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 64}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(t){if(t>="0"&&t<="9")return t.charCodeAt(0)-48;if(t>="A"&&t<="Z")return t.charCodeAt(0)-65+10;if(t==="^")return 36;if(t==="_")return 37;if(t>="a"&&t<="z")return t.charCodeAt(0)-97+38;throw new Error("Not valid digit: "+t)}toChar(t){return this.DIGITS[t]}}ya.LexoNumeralSystem64=Q0;(function(a){var t=ve&&ve.__createBinding||(Object.create?function(s,n,r,i){i===void 0&&(i=r);var l=Object.getOwnPropertyDescriptor(n,r);(!l||("get"in l?!n.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,i,l)}:function(s,n,r,i){i===void 0&&(i=r),s[i]=n[r]}),o=ve&&ve.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,s,r)};Object.defineProperty(a,"__esModule",{value:!0}),o(bn,a),o(ga,a),o(_a,a),o(ya,a)})(eo);var Ro;function kn(){if(Ro)return Vt;Ro=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.LexoRank=void 0;const a=Ft,t=yn(),o=zt,s=eo;class n{constructor(i,l){this.value=i.format()+"|"+n.formatDecimal(l),this.bucket=i,this.decimal=l}static get NUMERAL_SYSTEM(){return this._NUMERAL_SYSTEM||(this._NUMERAL_SYSTEM=new s.LexoNumeralSystem36),this._NUMERAL_SYSTEM}static get ZERO_DECIMAL(){return this._ZERO_DECIMAL||(this._ZERO_DECIMAL=a.LexoDecimal.parse("0",n.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=a.LexoDecimal.parse("1",n.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=a.LexoDecimal.parse("8",n.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=n.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=a.LexoDecimal.parse("1000000",n.NUMERAL_SYSTEM).subtract(n.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=n.between(n.MIN_DECIMAL,n.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=a.LexoDecimal.parse("100000",n.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=a.LexoDecimal.parse(n.NUMERAL_SYSTEM.toChar(n.NUMERAL_SYSTEM.getBase()-2)+"00000",n.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return n.from(t.default.BUCKET_0,n.MIN_DECIMAL)}static middle(){const i=n.min();return i.between(n.max(i.bucket))}static max(i=t.default.BUCKET_0){return n.from(i,n.MAX_DECIMAL)}static initial(i){return i===t.default.BUCKET_0?n.from(i,n.INITIAL_MIN_DECIMAL):n.from(i,n.INITIAL_MAX_DECIMAL)}static between(i,l){if(i.getSystem().getBase()!==l.getSystem().getBase())throw new Error("Expected same system");let c=i,u=l,d;if(i.getScale()<l.getScale()){if(d=l.setScale(i.getScale(),!1),i.compareTo(d)>=0)return n.mid(i,l);u=d}if(i.getScale()>u.getScale()){if(d=i.setScale(u.getScale(),!0),d.compareTo(u)>=0)return n.mid(i,l);c=d}let p;for(let f=c.getScale();f>0;u=p){const y=f-1,v=c.setScale(y,!0);if(p=u.setScale(y,!1),v.compareTo(p)===0)return n.checkMid(i,l,v);if(v.compareTo(p)>0)break;f=y,c=v}let m=n.middleInternal(i,l,c,u),h;for(let f=m.getScale();f>0;f=h){h=f-1;const y=m.setScale(h);if(i.compareTo(y)>=0||y.compareTo(l)>=0)break;m=y}return m}static parse(i){const l=i.split("|"),c=t.default.from(l[0]),u=a.LexoDecimal.parse(l[1],n.NUMERAL_SYSTEM);return new n(c,u)}static from(i,l){if(l.getSystem().getBase()!==n.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new n(i,l)}static middleInternal(i,l,c,u){const d=n.mid(c,u);return n.checkMid(i,l,d)}static checkMid(i,l,c){return i.compareTo(c)>=0||c.compareTo(l)>=0?n.mid(i,l):c}static mid(i,l){const u=i.add(l).multiply(a.LexoDecimal.half(i.getSystem())),d=i.getScale()>l.getScale()?i.getScale():l.getScale();if(u.getScale()>d){const p=u.setScale(d,!1);if(p.compareTo(i)>0)return p;const m=u.setScale(d,!0);if(m.compareTo(l)<0)return m}return u}static formatDecimal(i){const l=i.format(),c=new o.default(l);let u=l.indexOf(n.NUMERAL_SYSTEM.getRadixPointChar());const d=n.NUMERAL_SYSTEM.toChar(0);for(u<0&&(u=l.length,c.append(n.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 n(this.bucket,n.INITIAL_MAX_DECIMAL);const i=this.decimal.floor();let c=a.LexoDecimal.from(i).subtract(n.EIGHT_DECIMAL);return c.compareTo(n.MIN_DECIMAL)<=0&&(c=n.between(n.MIN_DECIMAL,this.decimal)),new n(this.bucket,c)}genNext(){if(this.isMin())return new n(this.bucket,n.INITIAL_MIN_DECIMAL);const i=this.decimal.ceil();let c=a.LexoDecimal.from(i).add(n.EIGHT_DECIMAL);return c.compareTo(n.MAX_DECIMAL)>=0&&(c=n.between(this.decimal,n.MAX_DECIMAL)),new n(this.bucket,c)}between(i){if(!this.bucket.equals(i.bucket))throw new Error("Between works only within the same bucket");const l=this.decimal.compareTo(i.decimal);if(l>0)return new n(this.bucket,n.between(i.decimal,this.decimal));if(l===0)throw new Error("Try to rank between issues with same rank this="+this+" other="+i+" this.decimal="+this.decimal+" other.decimal="+i.decimal);return new n(this.bucket,n.between(this.decimal,i.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return n.from(this.bucket.next(),this.decimal)}inPrevBucket(){return n.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(n.MIN_DECIMAL)}isMax(){return this.decimal.equals(n.MAX_DECIMAL)}format(){return this.value}equals(i){return this===i?!0:i?this.value===i.value:!1}toString(){return this.value}compareTo(i){return this===i?0:i?this.value.localeCompare(i.value):1}}return Vt.LexoRank=n,Vt}(function(a){var t=ve&&ve.__createBinding||(Object.create?function(s,n,r,i){i===void 0&&(i=r);var l=Object.getOwnPropertyDescriptor(n,r);(!l||("get"in l?!n.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,i,l)}:function(s,n,r,i){i===void 0&&(i=r),s[i]=n[r]}),o=ve&&ve.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,s,r)};Object.defineProperty(a,"__esModule",{value:!0}),o(kn(),a),o(yn(),a),o(Ft,a),o(yt,a)})(_n);(function(a){var t=ve&&ve.__createBinding||(Object.create?function(s,n,r,i){i===void 0&&(i=r);var l=Object.getOwnPropertyDescriptor(n,r);(!l||("get"in l?!n.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,i,l)}:function(s,n,r,i){i===void 0&&(i=r),s[i]=n[r]}),o=ve&&ve.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,s,r)};Object.defineProperty(a,"__esModule",{value:!0}),o(_n,a),o(eo,a)})(ne);const Mt=60,J0=8,jo=Mt*J0;function ba(a,t){if(!a)return"0m";if(t==="days"){const s=Math.floor(a/jo),n=Math.floor(a%jo/Mt);if(s>0&&n>0)return`${s}d ${n}h`;if(s>0)return`${s}d`;{const r=a%Mt;return r>0?`${n}h ${r}m`:`${n}h`}}else{const s=Math.floor(a/Mt),n=a%Mt;return s>0&&n>0?`${s}h ${n}m`:s>0?`${s}h`:`${n}m`}}function wn(a){return(a==null?void 0:a.reduce((t,o)=>{var s;return t+(((s=o.activities)==null?void 0:s.length)??0)},0))??0}function ep(a){return(a==null?void 0:a.reduce((t,o)=>{var s;return t+(((s=o.milestones)==null?void 0:s.length)??0)},0))??0}function tp(a){return(a==null?void 0:a.reduce((t,o)=>{var n;const s=(n=o.milestones)!=null&&n.length?wn(o.milestones):0;return t+s},0))??0}function ap(a){return a.split(" ").slice(0,2).map(t=>t.charAt(0).toLocaleLowerCase()).join("")}function Zt(a,t){if(a.moved)return mt(t,a.moved.newIndex)}function mt(a,t){if(t===0)if(a.length>1){const o=a[t+1];return ne.LexoRank.parse(o.rank).genPrev().format()}else return ne.LexoRank.middle().format();else if(t===a.length-1){const o=a[t-1];return ne.LexoRank.parse(o.rank).genNext().format()}else{const o=a[t-1],s=a[t+1];return ne.LexoRank.parse(s.rank).between(ne.LexoRank.parse(o.rank)).format()}}function ka(a,t="dd/MM/yyyy"){if(!a)return"";const o=Lt(a);return pn(o)?Cn(o,t):""}function to(a,t){return a.status.id===t.id}function op(a,t){return a.activities.length===0?!1:!a.activities.some(o=>!to(o,t))}function np(a,t){return{...a,status:op(a,t)?It.done:It.todo}}const $n=a=>{const{firstName:t,lastName:o}=a||{};return`${t??""}${t?" ":""}${o??""}`};function sp(a,t){const o=a.replace("#",""),s=parseInt(o.slice(0,2),16),n=parseInt(o.slice(2,4),16),r=parseInt(o.slice(4,6),16);return`rgba(${s}, ${n}, ${r}, ${t})`}function ip(a,t=.15){var o;if(a.startsWith("#"))return sp(a,t);if(a.startsWith("rgba")){const s=(o=a.match(/rgba?\(([^)]+)\)/))==null?void 0:o[1].split(",").map(n=>n.trim());if(s&&s.length>=3){const[n,r,i]=s;return`rgba(${n}, ${r}, ${i}, ${t})`}}return a}function En(a,t,o){const s=e.ref(""),n=e.ref(!1),r=e.ref({top:0,left:0}),i=e.computed(()=>o.value.filter(m=>m.firstName||m.lastName).map(m=>{const f=[m.firstName,m.lastName].filter(Boolean).join("_").replace(/\s+/g,"_");return{id:m.id,name:f}})),l=e.computed(()=>i.value.filter(m=>m.name.toLowerCase().includes(s.value.toLowerCase())));return{showMentionList:n,mentionListPosition:r,filteredUsers:l,mentionQuery:s,handleInput:m=>{const h=m.target,f=h.selectionStart,v=h.value.slice(0,f).match(/@(\w*)$/);v?(s.value=v[1],n.value=!0,e.nextTick(()=>{const{top:b,left:g}=rp(h,f);r.value={top:b,left:g}})):n.value=!1},handleKeydown:m=>{m.key==="Escape"&&n.value&&(n.value=!1)},selectUserMention:m=>{const h=a.value;if(!h)return;const f=h.selectionStart,y=t.value,v=y.slice(0,f).replace(/@(\w*)$/,`@${m} `),b=y.slice(f);t.value=v+b,n.value=!1,e.nextTick(()=>{h.focus(),h.setSelectionRange(v.length,v.length)})},getMentionedUserIds:m=>{const h=Array.from(m.matchAll(/@([\p{L}\p{M}0-9-_]+)/gu)).map(f=>f[1]);return i.value.filter(f=>h.includes(f.name)).map(f=>f.id)}}}function rp(a,t){const o=document.createElement("div"),s=document.createElement("span"),n=window.getComputedStyle(a),r=["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"];o.style.position="absolute",o.style.visibility="hidden",o.style.whiteSpace="pre-wrap",o.style.overflow="hidden",r.forEach(h=>{o.style[h]=n.getPropertyValue(h)}),o.style.width=n.getPropertyValue("width"),o.scrollTop=a.scrollTop,o.scrollLeft=a.scrollLeft;const i=a.value.substring(0,t),l=a.value.substring(t)||".";o.textContent=i,s.textContent=l[0],o.appendChild(s),document.body.appendChild(o);const c=s.getBoundingClientRect(),u=o.getBoundingClientRect(),d=a.getBoundingClientRect(),p=c.top-u.top+d.top-a.scrollTop,m=c.left-u.left+d.left-a.scrollLeft;return document.body.removeChild(o),{top:p+40,left:m}}const lp=["title"],cp={key:0,className:"ao-avatar__initials"},dp=["src"],Oe=e.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:ha.MD},color:{default:"primary"}},emits:["close"],setup(a,{emit:t}){const o=a,s=e.computed(()=>[`ao-avatar--${o.color}`,...o.avatarUrl?["ao-avatar-img",`ao-avatar-img--${o.size}`]:["ao-avatar",`ao-avatar--${o.size}`]]),n=ap(o.userName),r=i=>{t("close",i)};return(i,l)=>(e.openBlock(),e.createElementBlock("div",{role:"img",class:e.normalizeClass(s.value),title:i.userName},[i.avatarUrl?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",cp,e.toDisplayString(e.unref(n)),1)),i.avatarUrl?(e.openBlock(),e.createElementBlock("img",{key:1,className:"ao-avatar__image",src:i.avatarUrl},null,8,dp)):e.createCommentVNode("",!0),i.isClosable?(e.openBlock(),e.createBlock(G,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:i.color,corners:"round",onClick:e.withModifiers(r,["stop"])},null,8,["color","onClick"])):e.createCommentVNode("",!0)],10,lp))}});const up={class:"ao-card-template__subitems"},pp={class:"ao-card-template__subitem"},mp={class:"ao-card-template__subitem-number"},fp={class:"ao-card-template__subitem"},vp={class:"ao-card-template__subitem"},hp={class:"ao-card-template__body"},Cp={class:"ao-card-template__col ao-card-template__col--phases"},gp={class:"ao-card-template__col-title"},_p={class:"ao-card-template__col-label"},yp={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},bp={class:"ao-card-template__footer"},kp={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},wp={class:"ao-card-template__col-title"},$p={class:"ao-card-template__col-label"},Ep={class:"ao-card-template__col-body"},Bp={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},Vp={class:"ao-card-template__col-title"},Sp={class:"ao-card-template__col-label"},Np={class:"ao-card-template__col-body"},Mp={class:"ao-card-template-item__secondary"},Za=5,Tp=e.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(a,{emit:t}){const o=a,s=l=>{t("updateTitle",l)},n=(l,c)=>{t("deleteItem",l,c)},r=e.computed(()=>{var l;return((l=o.phases)==null?void 0:l.slice(0,Za))??[]}),i=e.computed(()=>o.phases&&o.phases.length>Za?o.phases.length-Za:0);return(l,c)=>(e.openBlock(),e.createBlock(on,{id:l.id,title:l.title,"is-draggable":!0,"onUpdate:title":s},e.createSlots({subtitle:e.withCtx(()=>[e.createElementVNode("ul",up,[e.createElementVNode("li",pp,[e.createVNode(J,{name:"MountainFlagOutlineRounded",size:"sm"}),e.createElementVNode("span",mp,e.toDisplayString(l.milestones),1)]),e.createElementVNode("li",fp,[e.createVNode(J,{name:"TaskOutlineRounded",size:"sm"}),e.createElementVNode("span",vp,e.toDisplayString(l.activities),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",hp,[e.createElementVNode("div",Cp,[e.createElementVNode("div",gp,[e.createVNode(J,{name:"WaterfallChartRounded",size:"sm"}),e.createElementVNode("span",_p,e.toDisplayString(l.$t("template.phases.title")),1)]),l.phases?(e.openBlock(),e.createElementBlock("ul",yp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,u=>(e.openBlock(),e.createBlock(Ot,{key:u.id,label:u.name||u.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),i.value>0?(e.openBlock(),e.createBlock(Ot,{key:0,label:`+${i.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])]),secondary:e.withCtx(()=>[e.createElementVNode("div",Mp,[e.createVNode(G,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:c[0]||(c[0]=e.withModifiers(u=>n(l.id,l.title),["stop"]))})])]),_:2},[l.updatedBy||l.updatedAt?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",bp,[l.updatedAt?(e.openBlock(),e.createElementBlock("div",kp,[e.createElementVNode("div",wp,[e.createElementVNode("span",$p,e.toDisplayString(l.$t("template.updatedAt.label")),1)]),e.createElementVNode("div",Ep,[e.createElementVNode("span",null,e.toDisplayString(l.updatedAt),1)])])):e.createCommentVNode("",!0),l.updatedBy?(e.openBlock(),e.createElementBlock("div",Bp,[e.createElementVNode("div",Vp,[e.createElementVNode("span",Sp,e.toDisplayString(l.$t("template.updatedBy.label")),1)]),e.createElementVNode("div",Np,[e.createVNode(Oe,{"user-name":l.updatedBy},null,8,["user-name"])])])):e.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const Ap={class:"ao-page-header"},Op={class:"ao-page-header-main"},Ip={key:0,class:"ao-page-header-secondary"},xt=e.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("header",Ap,[e.createElementVNode("div",Op,[t.canGoBack?(e.openBlock(),e.createBlock(G,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:o[0]||(o[0]=s=>t.$emit("goBack"))})):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"primary")]),t.$slots.secondary?(e.openBlock(),e.createElementBlock("div",Ip,[e.renderSlot(t.$slots,"secondary")])):e.createCommentVNode("",!0)]))}});const Dp=["type"],Lp={key:0,class:"ao-button-card__label"},qe=e.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Ja.BLACK},size:{default:()=>ha.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>tn.ROUNDED}},setup(a){const t=a,o=e.computed(()=>t.size),s=e.computed(()=>t.isLoading?"Loading":t.iconName);return(n,r)=>(e.openBlock(),e.createElementBlock("button",{type:n.type,class:e.normalizeClass(["ao-button-card",`ao-button-card--${n.color}`,`ao-button-card--${n.corners}`,n.$attrs.disabled?"ao-button-card--is-disabled":""])},[e.renderSlot(n.$slots,"default",{},()=>[n.label?(e.openBlock(),e.createElementBlock("span",Lp,e.toDisplayString(n.label),1)):e.createCommentVNode("",!0)]),s.value?(e.openBlock(),e.createBlock(J,{key:0,name:s.value,class:"ao-button-card__icon",size:o.value},null,8,["name","size"])):e.createCommentVNode("",!0)],10,Dp))}});const Pp={class:"ao-card-template-item__footer"},Hp={key:0,class:"ao-card-template-item__subitem"},Rp={class:"ao-card-template-item__subitem-number"},jp={class:"ao-card-template-item__secondary"},ao=e.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(a,{emit:t}){const o=i=>{t("update:title",i)},s=["milestones","activities","rules","tasks"],n={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},r=()=>{t("remove")};return(i,l)=>(e.openBlock(),e.createBlock(on,{"onUpdate:title":o},{footer:e.withCtx(()=>[e.createElementVNode("ul",Pp,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,c=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[i.$props[c]?(e.openBlock(),e.createElementBlock("li",Hp,[e.createVNode(J,{name:n[c],size:"sm"},null,8,["name"]),e.createElementVNode("span",Rp,e.toDisplayString(i.$props[c]),1)])):e.createCommentVNode("",!0)],64))),64))])]),secondary:e.withCtx(()=>[e.createElementVNode("div",jp,[e.createVNode(G,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:e.withModifiers(r,["stop"])},null,8,["onClick"])])]),_:1}))}});const Up=e.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(a){const t=a,o=e.computed(()=>{var n;return(n=t.milestones)==null?void 0:n.length}),s=e.computed(()=>t.milestones?wn(t.milestones):0);return(n,r)=>(e.openBlock(),e.createBlock(ao,e.mergeProps({id:n.id,title:n.name,activities:s.value,milestones:o.value},n.$attrs),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),Fp=e.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(a){const t=a,o=e.computed(()=>{var s;return((s=t.activities)==null?void 0:s.length)||0});return(s,n)=>(e.openBlock(),e.createBlock(ao,{activities:o.value},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},8,["activities"]))}}),zp={class:"ao-list__footer"},Zp=e.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(a,{emit:t}){const o=a,s=()=>{t("addMilestone",{phaseId:o.phase.id})},n=l=>{t("removeMilestone",{phaseId:o.phase.id,id:l})},r=l=>{t("updateMilestone",l)},i=l=>{if(l.moved){const c=Zt(l,o.phase.milestones);t("updateMilestone",{id:l.moved.element.id,rank:c})}};return(l,c)=>l.phase?(e.openBlock(),e.createBlock(e.unref(We),{key:0,"model-value":l.phase.milestones,class:"ao-templates__list",title:l.$t("template.milestones.title"),handle:".ao-card__drag","item-key":"id",onChange:i},{header:e.withCtx(()=>[e.createVNode(se,{title:"Milestones",level:3,class:"ao-list__title"})]),item:e.withCtx(({element:u})=>[(e.openBlock(),e.createBlock(Fp,{id:u.id,key:u.id,title:u.name,activities:u.activities,"is-active":l.milestoneId===u.id,"is-draggable":!0,"onUpdate:title":d=>r({id:u.id,name:d}),onClick:d=>l.$router.push({params:{milestoneId:u.id}}),onRemove:()=>n(u.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:e.withCtx(()=>[e.createElementVNode("div",zp,[e.createVNode(qe,{"icon-name":"AddBoxOutlineRounded",label:l.$t("template.milestones.add"),onClick:s},null,8,["label"])])]),_:1},8,["model-value","title"])):e.createCommentVNode("",!0)}}),xp=e.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(a){const t=a,o=e.computed(()=>{var s;return((s=t.tasks)==null?void 0:s.length)||0});return(s,n)=>(e.openBlock(),e.createBlock(ao,{tasks:o.value},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},8,["tasks"]))}}),Wp={class:"ao-list__footer"},qp=e.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(a,{emit:t}){const o=a,s=()=>{t("addActivity",{milestoneId:o.milestone.id})},n=l=>{t("updateActivity",{...l})},r=l=>{t("removeActivity",{id:l})},i=l=>{if(l.moved){const c=Zt(l,o.milestone.activities);t("updateActivity",{id:l.moved.element.id,rank:c})}};return(l,c)=>l.milestone?(e.openBlock(),e.createBlock(e.unref(We),{key:0,"model-value":l.milestone.activities,title:l.$t("template.activities.title"),class:"ao-templates__list",handle:".ao-card__drag","item-key":"id",onChange:i},{header:e.withCtx(()=>[e.createVNode(se,{title:"Activities",level:3,class:"ao-list__title"})]),item:e.withCtx(({element:u})=>[(e.openBlock(),e.createBlock(xp,{id:u.id,key:u.id,title:u.name,tasks:u.tasks,"is-active":l.activityId===u.id,"is-draggable":!0,"onUpdate:title":d=>n({id:u.id,name:d}),onClick:d=>l.$router.push({params:{activityId:u.id}}),onRemove:()=>r(u.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:e.withCtx(()=>[e.createElementVNode("div",Wp,[e.createVNode(qe,{"icon-name":"AddBoxOutlineRounded",label:l.$t("template.activities.add"),onClick:s},null,8,["label"])])]),_:1},8,["model-value","title"])):e.createCommentVNode("",!0)}}),Yp={class:"ao-modal"},Kp={key:0,class:"ao-modal__header"},Gp={class:"ao-modal__header-meta"},Xp={class:"ao-modal__title-group"},Qp={class:"ao-modal__body"},Jp={key:1,class:"ao-modal__footer"},wa=e.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`])},[e.createElementVNode("div",{class:"ao-modal__backdrop",onClick:o[0]||(o[0]=s=>t.$emit("close"))}),e.createElementVNode("div",Yp,[t.$slots.header?(e.openBlock(),e.createElementBlock("div",Kp,[e.createElementVNode("div",Gp,[e.createVNode(G,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:o[1]||(o[1]=s=>t.$emit("close"))})]),e.createElementVNode("header",Xp,[e.renderSlot(t.$slots,"header")])])):e.createCommentVNode("",!0),e.createElementVNode("div",Qp,[e.renderSlot(t.$slots,"default")]),t.$slots.footer?(e.openBlock(),e.createElementBlock("footer",Jp,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)])],2))}});const Pt=Math.min,fe=Math.max,ua=Math.round,na=Math.floor,ze=a=>({x:a,y:a}),e3={left:"right",right:"left",bottom:"top",top:"bottom"},t3={start:"end",end:"start"};function oo(a,t){return typeof a=="function"?a(t):a}function ft(a){return a.split("-")[0]}function $a(a){return a.split("-")[1]}function a3(a){return a==="x"?"y":"x"}function Bn(a){return a==="y"?"height":"width"}function no(a){return["top","bottom"].includes(ft(a))?"y":"x"}function Vn(a){return a3(no(a))}function o3(a,t,o){o===void 0&&(o=!1);const s=$a(a),n=Vn(a),r=Bn(n);let i=n==="x"?s===(o?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=pa(i)),[i,pa(i)]}function n3(a){const t=pa(a);return[Ya(a),t,Ya(t)]}function Ya(a){return a.replace(/start|end/g,t=>t3[t])}function s3(a,t,o){const s=["left","right"],n=["right","left"],r=["top","bottom"],i=["bottom","top"];switch(a){case"top":case"bottom":return o?t?n:s:t?s:n;case"left":case"right":return t?r:i;default:return[]}}function i3(a,t,o,s){const n=$a(a);let r=s3(ft(a),o==="start",s);return n&&(r=r.map(i=>i+"-"+n),t&&(r=r.concat(r.map(Ya)))),r}function pa(a){return a.replace(/left|right|bottom|top/g,t=>e3[t])}function r3(a){return{top:0,right:0,bottom:0,left:0,...a}}function l3(a){return typeof a!="number"?r3(a):{top:a,right:a,bottom:a,left:a}}function ma(a){return{...a,top:a.y,left:a.x,right:a.x+a.width,bottom:a.y+a.height}}function Uo(a,t,o){let{reference:s,floating:n}=a;const r=no(t),i=Vn(t),l=Bn(i),c=ft(t),u=r==="y",d=s.x+s.width/2-n.width/2,p=s.y+s.height/2-n.height/2,m=s[l]/2-n[l]/2;let h;switch(c){case"top":h={x:d,y:s.y-n.height};break;case"bottom":h={x:d,y:s.y+s.height};break;case"right":h={x:s.x+s.width,y:p};break;case"left":h={x:s.x-n.width,y:p};break;default:h={x:s.x,y:s.y}}switch($a(t)){case"start":h[i]-=m*(o&&u?-1:1);break;case"end":h[i]+=m*(o&&u?-1:1);break}return h}const c3=async(a,t,o)=>{const{placement:s="bottom",strategy:n="absolute",middleware:r=[],platform:i}=o,l=r.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:a,floating:t,strategy:n}),{x:d,y:p}=Uo(u,s,c),m=s,h={},f=0;for(let y=0;y<l.length;y++){const{name:v,fn:b}=l[y],{x:g,y:C,data:_,reset:B}=await b({x:d,y:p,initialPlacement:s,placement:m,strategy:n,middlewareData:h,rects:u,platform:i,elements:{reference:a,floating:t}});if(d=g??d,p=C??p,h={...h,[v]:{...h[v],..._}},B&&f<=50){f++,typeof B=="object"&&(B.placement&&(m=B.placement),B.rects&&(u=B.rects===!0?await i.getElementRects({reference:a,floating:t,strategy:n}):B.rects),{x:d,y:p}=Uo(u,m,c)),y=-1;continue}}return{x:d,y:p,placement:m,strategy:n,middlewareData:h}};async function Sn(a,t){var o;t===void 0&&(t={});const{x:s,y:n,platform:r,rects:i,elements:l,strategy:c}=a,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:m=!1,padding:h=0}=oo(t,a),f=l3(h),v=l[m?p==="floating"?"reference":"floating":p],b=ma(await r.getClippingRect({element:(o=await(r.isElement==null?void 0:r.isElement(v)))==null||o?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),g=p==="floating"?{...i.floating,x:s,y:n}:i.reference,C=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),_=await(r.isElement==null?void 0:r.isElement(C))?await(r.getScale==null?void 0:r.getScale(C))||{x:1,y:1}:{x:1,y:1},B=ma(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:C,strategy:c}):g);return{top:(b.top-B.top+f.top)/_.y,bottom:(B.bottom-b.bottom+f.bottom)/_.y,left:(b.left-B.left+f.left)/_.x,right:(B.right-b.right+f.right)/_.x}}const d3=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(t){var o,s;const{placement:n,middlewareData:r,rects:i,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:y=!0,...v}=oo(a,t);if((o=r.arrow)!=null&&o.alignmentOffset)return{};const b=ft(n),g=ft(l)===l,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),_=m||(g||!y?[pa(l)]:n3(l));!m&&f!=="none"&&_.push(...i3(l,y,f,C));const B=[l,..._],E=await Sn(t,v),N=[];let D=((s=r.flip)==null?void 0:s.overflows)||[];if(d&&N.push(E[b]),p){const O=o3(n,i,C);N.push(E[O[0]],E[O[1]])}if(D=[...D,{placement:n,overflows:N}],!N.every(O=>O<=0)){var j,F;const O=(((j=r.flip)==null?void 0:j.index)||0)+1,U=B[O];if(U)return{data:{index:O,overflows:D},reset:{placement:U}};let K=(F=D.filter(W=>W.overflows[0]<=0).sort((W,z)=>W.overflows[1]-z.overflows[1])[0])==null?void 0:F.placement;if(!K)switch(h){case"bestFit":{var Z;const W=(Z=D.map(z=>[z.placement,z.overflows.filter(S=>S>0).reduce((S,$)=>S+$,0)]).sort((z,S)=>z[1]-S[1])[0])==null?void 0:Z[0];W&&(K=W);break}case"initialPlacement":K=l;break}if(n!==K)return{reset:{placement:K}}}return{}}}},u3=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(t){const{placement:o,rects:s,platform:n,elements:r}=t,{apply:i=()=>{},...l}=oo(a,t),c=await Sn(t,l),u=ft(o),d=$a(o),p=no(o)==="y",{width:m,height:h}=s.floating;let f,y;u==="top"||u==="bottom"?(f=u,y=d===(await(n.isRTL==null?void 0:n.isRTL(r.floating))?"start":"end")?"left":"right"):(y=u,f=d==="end"?"top":"bottom");const v=h-c[f],b=m-c[y],g=!t.middlewareData.shift;let C=v,_=b;if(p){const E=m-c.left-c.right;_=d||g?Pt(b,E):E}else{const E=h-c.top-c.bottom;C=d||g?Pt(v,E):E}if(g&&!d){const E=fe(c.left,0),N=fe(c.right,0),D=fe(c.top,0),j=fe(c.bottom,0);p?_=m-2*(E!==0||N!==0?E+N:fe(c.left,c.right)):C=h-2*(D!==0||j!==0?D+j:fe(c.top,c.bottom))}await i({...t,availableWidth:_,availableHeight:C});const B=await n.getDimensions(r.floating);return m!==B.width||h!==B.height?{reset:{rects:!0}}:{}}}};function Ze(a){return Nn(a)?(a.nodeName||"").toLowerCase():"#document"}function ce(a){var t;return(a==null||(t=a.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(a){var t;return(t=(Nn(a)?a.ownerDocument:a.document)||window.document)==null?void 0:t.documentElement}function Nn(a){return a instanceof Node||a instanceof ce(a).Node}function Te(a){return a instanceof Element||a instanceof ce(a).Element}function ke(a){return a instanceof HTMLElement||a instanceof ce(a).HTMLElement}function Fo(a){return typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ce(a).ShadowRoot}function Wt(a){const{overflow:t,overflowX:o,overflowY:s,display:n}=Ce(a);return/auto|scroll|overlay|hidden|clip/.test(t+s+o)&&!["inline","contents"].includes(n)}function p3(a){return["table","td","th"].includes(Ze(a))}function so(a){const t=io(),o=Ce(a);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(o.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(o.contain||"").includes(s))}function m3(a){let t=vt(a);for(;ke(t)&&!Ea(t);){if(so(t))return t;t=vt(t)}return null}function io(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ea(a){return["html","body","#document"].includes(Ze(a))}function Ce(a){return ce(a).getComputedStyle(a)}function Ba(a){return Te(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function vt(a){if(Ze(a)==="html")return a;const t=a.assignedSlot||a.parentNode||Fo(a)&&a.host||Ie(a);return Fo(t)?t.host:t}function Mn(a){const t=vt(a);return Ea(t)?a.ownerDocument?a.ownerDocument.body:a.body:ke(t)&&Wt(t)?t:Mn(t)}function Ht(a,t,o){var s;t===void 0&&(t=[]),o===void 0&&(o=!0);const n=Mn(a),r=n===((s=a.ownerDocument)==null?void 0:s.body),i=ce(n);return r?t.concat(i,i.visualViewport||[],Wt(n)?n:[],i.frameElement&&o?Ht(i.frameElement):[]):t.concat(n,Ht(n))}function Tn(a){const t=Ce(a);let o=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const n=ke(a),r=n?a.offsetWidth:o,i=n?a.offsetHeight:s,l=ua(o)!==r||ua(s)!==i;return l&&(o=r,s=i),{width:o,height:s,$:l}}function ro(a){return Te(a)?a:a.contextElement}function ut(a){const t=ro(a);if(!ke(t))return ze(1);const o=t.getBoundingClientRect(),{width:s,height:n,$:r}=Tn(t);let i=(r?ua(o.width):o.width)/s,l=(r?ua(o.height):o.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const f3=ze(0);function An(a){const t=ce(a);return!io()||!t.visualViewport?f3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function v3(a,t,o){return t===void 0&&(t=!1),!o||t&&o!==ce(a)?!1:t}function st(a,t,o,s){t===void 0&&(t=!1),o===void 0&&(o=!1);const n=a.getBoundingClientRect(),r=ro(a);let i=ze(1);t&&(s?Te(s)&&(i=ut(s)):i=ut(a));const l=v3(r,o,s)?An(r):ze(0);let c=(n.left+l.x)/i.x,u=(n.top+l.y)/i.y,d=n.width/i.x,p=n.height/i.y;if(r){const m=ce(r),h=s&&Te(s)?ce(s):s;let f=m.frameElement;for(;f&&s&&h!==m;){const y=ut(f),v=f.getBoundingClientRect(),b=Ce(f),g=v.left+(f.clientLeft+parseFloat(b.paddingLeft))*y.x,C=v.top+(f.clientTop+parseFloat(b.paddingTop))*y.y;c*=y.x,u*=y.y,d*=y.x,p*=y.y,c+=g,u+=C,f=ce(f).frameElement}}return ma({width:d,height:p,x:c,y:u})}function h3(a){let{rect:t,offsetParent:o,strategy:s}=a;const n=ke(o),r=Ie(o);if(o===r)return t;let i={scrollLeft:0,scrollTop:0},l=ze(1);const c=ze(0);if((n||!n&&s!=="fixed")&&((Ze(o)!=="body"||Wt(r))&&(i=Ba(o)),ke(o))){const u=st(o);l=ut(o),c.x=u.x+o.clientLeft,c.y=u.y+o.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-i.scrollLeft*l.x+c.x,y:t.y*l.y-i.scrollTop*l.y+c.y}}function C3(a){return Array.from(a.getClientRects())}function On(a){return st(Ie(a)).left+Ba(a).scrollLeft}function g3(a){const t=Ie(a),o=Ba(a),s=a.ownerDocument.body,n=fe(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),r=fe(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let i=-o.scrollLeft+On(a);const l=-o.scrollTop;return Ce(s).direction==="rtl"&&(i+=fe(t.clientWidth,s.clientWidth)-n),{width:n,height:r,x:i,y:l}}function _3(a,t){const o=ce(a),s=Ie(a),n=o.visualViewport;let r=s.clientWidth,i=s.clientHeight,l=0,c=0;if(n){r=n.width,i=n.height;const u=io();(!u||u&&t==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:r,height:i,x:l,y:c}}function y3(a,t){const o=st(a,!0,t==="fixed"),s=o.top+a.clientTop,n=o.left+a.clientLeft,r=ke(a)?ut(a):ze(1),i=a.clientWidth*r.x,l=a.clientHeight*r.y,c=n*r.x,u=s*r.y;return{width:i,height:l,x:c,y:u}}function zo(a,t,o){let s;if(t==="viewport")s=_3(a,o);else if(t==="document")s=g3(Ie(a));else if(Te(t))s=y3(t,o);else{const n=An(a);s={...t,x:t.x-n.x,y:t.y-n.y}}return ma(s)}function In(a,t){const o=vt(a);return o===t||!Te(o)||Ea(o)?!1:Ce(o).position==="fixed"||In(o,t)}function b3(a,t){const o=t.get(a);if(o)return o;let s=Ht(a,[],!1).filter(l=>Te(l)&&Ze(l)!=="body"),n=null;const r=Ce(a).position==="fixed";let i=r?vt(a):a;for(;Te(i)&&!Ea(i);){const l=Ce(i),c=so(i);!c&&l.position==="fixed"&&(n=null),(r?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Wt(i)&&!c&&In(a,i))?s=s.filter(d=>d!==i):n=l,i=vt(i)}return t.set(a,s),s}function k3(a){let{element:t,boundary:o,rootBoundary:s,strategy:n}=a;const i=[...o==="clippingAncestors"?b3(t,this._c):[].concat(o),s],l=i[0],c=i.reduce((u,d)=>{const p=zo(t,d,n);return u.top=fe(p.top,u.top),u.right=Pt(p.right,u.right),u.bottom=Pt(p.bottom,u.bottom),u.left=fe(p.left,u.left),u},zo(t,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function w3(a){return Tn(a)}function $3(a,t,o){const s=ke(t),n=Ie(t),r=o==="fixed",i=st(a,!0,r,t);let l={scrollLeft:0,scrollTop:0};const c=ze(0);if(s||!s&&!r)if((Ze(t)!=="body"||Wt(n))&&(l=Ba(t)),s){const u=st(t,!0,r,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else n&&(c.x=On(n));return{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function Zo(a,t){return!ke(a)||Ce(a).position==="fixed"?null:t?t(a):a.offsetParent}function Dn(a,t){const o=ce(a);if(!ke(a))return o;let s=Zo(a,t);for(;s&&p3(s)&&Ce(s).position==="static";)s=Zo(s,t);return s&&(Ze(s)==="html"||Ze(s)==="body"&&Ce(s).position==="static"&&!so(s))?o:s||m3(a)||o}const E3=async function(a){let{reference:t,floating:o,strategy:s}=a;const n=this.getOffsetParent||Dn,r=this.getDimensions;return{reference:$3(t,await n(o),s),floating:{x:0,y:0,...await r(o)}}};function B3(a){return Ce(a).direction==="rtl"}const V3={convertOffsetParentRelativeRectToViewportRelativeRect:h3,getDocumentElement:Ie,getClippingRect:k3,getOffsetParent:Dn,getElementRects:E3,getClientRects:C3,getDimensions:w3,getScale:ut,isElement:Te,isRTL:B3};function S3(a,t){let o=null,s;const n=Ie(a);function r(){clearTimeout(s),o&&o.disconnect(),o=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),r();const{left:u,top:d,width:p,height:m}=a.getBoundingClientRect();if(l||t(),!p||!m)return;const h=na(d),f=na(n.clientWidth-(u+p)),y=na(n.clientHeight-(d+m)),v=na(u),g={rootMargin:-h+"px "+-f+"px "+-y+"px "+-v+"px",threshold:fe(0,Pt(1,c))||1};let C=!0;function _(B){const E=B[0].intersectionRatio;if(E!==c){if(!C)return i();E?i(!1,E):s=setTimeout(()=>{i(!1,1e-7)},100)}C=!1}try{o=new IntersectionObserver(_,{...g,root:n.ownerDocument})}catch{o=new IntersectionObserver(_,g)}o.observe(a)}return i(!0),r}function N3(a,t,o,s){s===void 0&&(s={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,u=ro(a),d=n||r?[...u?Ht(u):[],...Ht(t)]:[];d.forEach(b=>{n&&b.addEventListener("scroll",o,{passive:!0}),r&&b.addEventListener("resize",o)});const p=u&&l?S3(u,o):null;let m=-1,h=null;i&&(h=new ResizeObserver(b=>{let[g]=b;g&&g.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{h&&h.observe(t)})),o()}),u&&!c&&h.observe(u),h.observe(t));let f,y=c?st(a):null;c&&v();function v(){const b=st(a);y&&(b.x!==y.x||b.y!==y.y||b.width!==y.width||b.height!==y.height)&&o(),y=b,f=requestAnimationFrame(v)}return o(),()=>{d.forEach(b=>{n&&b.removeEventListener("scroll",o),r&&b.removeEventListener("resize",o)}),p&&p(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(f)}}const M3=(a,t,o)=>{const s=new Map,n={platform:V3,...o},r={...n.platform,_c:s};return c3(a,t,{...n,platform:r})},T3=a=>{const t=e.ref(!1),o=e.ref(),s=e.ref(),n=e.ref(0);function r(){const p=e.unref(a.appendTo);return p?typeof p=="string"?document.getElementById(p)??document.body:p:document.getElementById("floatingElements")??document.body}const i=r(),l=e.ref(()=>{});function c(p){p.relatedTarget&&s.value&&s.value.contains(p.relatedTarget)||a.multiselect.value.deactivate()}function u(){const p=a.multiselect.value.$el,m=p.querySelector(".multiselect-dropdown");if(!m||!p||t.value===!0)return;s.value=m,o.value=p,getComputedStyle(m).getPropertyValue("display")==="none"&&(m.style.display="flex"),n.value=m.offsetHeight,m.style.removeProperty("display"),Object.assign(m.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),i.appendChild(m),a.multiselect.value.handleFocusOut=c;const f=N3(o.value,s.value,d);l.value=()=>{s.value&&i.contains(s.value)&&i.removeChild(s.value),f()}}function d(){!s.value||!o.value||M3(o.value,s.value,{strategy:"absolute",placement:"bottom-start",middleware:[d3({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),u3({apply({availableWidth:p,availableHeight:m,elements:h,rects:f}){Object.assign(h.floating.style,{minHeight:`${n.value}px`,width:`${f.reference.width}px`,maxWidth:`${p}px`,maxHeight:`${m}px`})}})]}).then(({x:p,y:m})=>{Object.assign(s.value.style,{left:`${p}px`,top:`${m}px`})})}e.onMounted(()=>{u()}),e.onBeforeUnmount(()=>{l.value()}),e.onUnmounted(()=>{l.value()})};function be(a){return[null,void 0].indexOf(a)!==-1}function A3(a,t,o){const{object:s,valueProp:n,mode:r}=e.toRefs(a),i=e.getCurrentInstance().proxy,l=o.iv,c=(p,m=!0)=>{l.value=d(p);const h=u(p);t.emit("change",h,i),m&&(t.emit("input",h),t.emit("update:modelValue",h))},u=p=>s.value||be(p)?p:Array.isArray(p)?p.map(m=>m[n.value]):p[n.value],d=p=>be(p)?r.value==="single"?{}:[]:p;return{update:c}}function O3(a,t){const{value:o,modelValue:s,mode:n,valueProp:r}=e.toRefs(a),i=e.ref(n.value!=="single"?[]:{}),l=e.computed(()=>s&&s.value!==void 0?s.value:o.value),c=e.computed(()=>n.value==="single"?i.value[r.value]:i.value.map(d=>d[r.value])),u=e.computed(()=>n.value!=="single"?i.value.map(d=>d[r.value]).join(","):i.value[r.value]);return{iv:i,internalValue:i,ev:l,externalValue:l,textValue:u,plainValue:c}}function I3(a,t,o){const{regex:s}=e.toRefs(a),n=e.getCurrentInstance().proxy,r=o.isOpen,i=o.open,l=e.ref(null),c=()=>{l.value=""},u=m=>{l.value=m.target.value},d=m=>{if(s&&s.value){let h=s.value;typeof h=="string"&&(h=new RegExp(h)),m.key.match(h)||m.preventDefault()}},p=m=>{if(s&&s.value){let f=(m.clipboardData||window.clipboardData).getData("Text"),y=s.value;typeof y=="string"&&(y=new RegExp(y)),f.split("").every(v=>!!v.match(y))||m.preventDefault()}t.emit("paste",m,n)};return e.watch(l,m=>{!r.value&&m&&i(),t.emit("search-change",m,n)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:p}}function D3(a,t,o){const{groupSelect:s,mode:n,groups:r,disabledProp:i}=e.toRefs(a),l=e.ref(null),c=d=>{d===void 0||d!==null&&d[i.value]||r.value&&d&&d.group&&(n.value==="single"||!s.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function xa(a,t=!0){return t?String(a).toLowerCase().trim():String(a).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function L3(a){return Object.prototype.toString.call(a)==="[object Object]"}function P3(a,t){const o=t.slice().sort();return a.length===t.length&&a.slice().sort().every(function(s,n){return s===o[n]})}function H3(a,t,o){const{options:s,mode:n,trackBy:r,limit:i,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:p,appendNewOption:m,multipleLabel:h,object:f,loading:y,delay:v,resolveOnLoad:b,minChars:g,filterResults:C,clearOnSearch:_,clearOnSelect:B,valueProp:E,allowAbsent:N,groupLabel:D,canDeselect:j,max:F,strict:Z,closeOnSelect:O,closeOnDeselect:U,groups:K,reverse:W,infinite:z,groupOptions:S,groupHideEmpty:$,groupSelect:L,onCreate:V,disabledProp:P,searchStart:q,searchFilter:k}=e.toRefs(a),M=e.getCurrentInstance().proxy,I=o.iv,T=o.ev,R=o.search,x=o.clearSearch,ie=o.update,Ke=o.pointer,bt=o.setPointer,Le=o.clearPointer,Yt=o.focus,Oa=o.deactivate,Pe=o.close,Kt=o.localize,He=e.ref([]),ye=e.ref([]),ue=e.ref(!1),ge=e.ref(null),Ee=e.ref(z.value&&i.value===-1?10:i.value),kt=e.computed(()=>c.value||u.value||!1),Gt=e.computed(()=>p.value!==void 0?p.value:m.value!==void 0?m.value:!0),pe=e.computed(()=>{if(K.value){let w=Ge.value||[],A=[];return w.forEach(X=>{ja(X[S.value]).forEach(te=>{A.push(Object.assign({},te,X[P.value]?{[P.value]:!0}:{}))})}),A}else{let w=ja(ye.value||[]);return He.value.length&&(w=w.concat(He.value)),w}}),wt=e.computed(()=>{let w=pe.value;return W.value&&(w=w.reverse()),rt.value.length&&(w=rt.value.concat(w)),Ra(w)}),Re=e.computed(()=>{let w=wt.value;return Ee.value>0&&(w=w.slice(0,Ee.value)),w}),Ge=e.computed(()=>{if(!K.value)return[];let w=[],A=ye.value||[];return He.value.length&&w.push({[D.value]:" ",[S.value]:[...He.value],__CREATE__:!0}),w.concat(A)}),Xt=e.computed(()=>{let w=[...Ge.value].map(A=>({...A}));return rt.value.length&&(w[0]&&w[0].__CREATE__?w[0][S.value]=[...rt.value,...w[0][S.value]]:w=[{[D.value]:" ",[S.value]:[...rt.value],__CREATE__:!0}].concat(w)),w}),Ia=e.computed(()=>{if(!K.value)return[];let w=Xt.value;return ds((w||[]).map((A,X)=>{const te=ja(A[S.value]);return{...A,index:X,group:!0,[S.value]:Ra(te,!1).map(Qe=>Object.assign({},Qe,A[P.value]?{[P.value]:!0}:{})),__VISIBLE__:Ra(te).map(Qe=>Object.assign({},Qe,A[P.value]?{[P.value]:!0}:{}))}}))}),Da=e.computed(()=>{switch(n.value){case"single":return!be(I.value[E.value]);case"multiple":case"tags":return!be(I.value)&&I.value.length>0}}),Gn=e.computed(()=>h!==void 0&&h.value!==void 0?h.value(I.value,M):I.value&&I.value.length>1?`${I.value.length} options selected`:"1 option selected"),Xn=e.computed(()=>!pe.value.length&&!ue.value&&!rt.value.length),Qn=e.computed(()=>pe.value.length>0&&Re.value.length==0&&(R.value&&K.value||!K.value)),rt=e.computed(()=>kt.value===!1||!R.value?[]:rs(R.value)!==-1?[]:[{[E.value]:R.value,[Xe.value[0]]:R.value,[d.value]:R.value,__CREATE__:!0}]),Xe=e.computed(()=>r.value?Array.isArray(r.value)?r.value:[r.value]:[d.value]),Jn=e.computed(()=>{switch(n.value){case"single":return null;case"multiple":case"tags":return[]}}),es=e.computed(()=>y.value||ue.value),lt=w=>{switch(typeof w!="object"&&(w=Ve(w)),n.value){case"single":ie(w);break;case"multiple":case"tags":ie(I.value.concat(w));break}t.emit("select",Bo(w),w,M)},ct=w=>{switch(typeof w!="object"&&(w=Ve(w)),n.value){case"single":So();break;case"tags":case"multiple":ie(Array.isArray(w)?I.value.filter(A=>w.map(X=>X[E.value]).indexOf(A[E.value])===-1):I.value.filter(A=>A[E.value]!=w[E.value]));break}t.emit("deselect",Bo(w),w,M)},Bo=w=>f.value?w:w[E.value],Vo=w=>{ct(w)},ts=(w,A)=>{if(A.button!==0){A.preventDefault();return}Vo(w)},So=()=>{ie(Jn.value),t.emit("clear",M)},Be=w=>{if(w.group!==void 0)return n.value==="single"?!1:is(w[S.value])&&w[S.value].length;switch(n.value){case"single":return!be(I.value)&&I.value[E.value]==w[E.value];case"tags":case"multiple":return!be(I.value)&&I.value.map(A=>A[E.value]).indexOf(w[E.value])!==-1}},La=w=>w[P.value]===!0,Pa=()=>F===void 0||F.value===-1||!Da.value&&F.value>0?!1:I.value.length>=F.value,as=w=>{if(!La(w)){if(V&&V.value&&!Be(w)&&w.__CREATE__&&(w={...w},delete w.__CREATE__,w=V.value(w,M),w instanceof Promise)){ue.value=!0,w.then(A=>{ue.value=!1,No(A)});return}No(w)}},No=w=>{switch(w.__CREATE__&&(w={...w},delete w.__CREATE__),n.value){case"single":if(w&&Be(w)){j.value&&ct(w),U.value&&(Le(),Pe());return}w&&Ha(w),B.value&&x(),O.value&&(Le(),Pe()),w&<(w);break;case"multiple":if(w&&Be(w)){ct(w),U.value&&(Le(),Pe());return}if(Pa()){t.emit("max",M);return}w&&(Ha(w),lt(w)),B.value&&x(),l.value&&Le(),O.value&&Pe();break;case"tags":if(w&&Be(w)){ct(w),U.value&&(Le(),Pe());return}if(Pa()){t.emit("max",M);return}w&&Ha(w),B.value&&x(),w&<(w),l.value&&Le(),O.value&&Pe();break}O.value||Yt()},os=w=>{if(!(La(w)||n.value==="single"||!L.value)){switch(n.value){case"multiple":case"tags":ss(w[S.value])?ct(w[S.value]):lt(w[S.value].filter(A=>I.value.map(X=>X[E.value]).indexOf(A[E.value])===-1).filter(A=>!A[P.value]).filter((A,X)=>I.value.length+1+X<=F.value||F.value===-1)),l.value&&Ke.value&&bt(Ia.value.filter(A=>!A[P.value])[Ke.value.index]);break}O.value&&Oa()}},Ha=w=>{Ve(w[E.value])===void 0&&kt.value&&(t.emit("tag",w[E.value],M),t.emit("option",w[E.value],M),t.emit("create",w[E.value],M),Gt.value&&cs(w),x())},ns=()=>{n.value!=="single"&<(Re.value.filter(w=>!w.disabled&&!Be(w)))},ss=w=>w.find(A=>!Be(A)&&!A[P.value])===void 0,is=w=>w.find(A=>!Be(A))===void 0,Ve=w=>pe.value[pe.value.map(A=>String(A[E.value])).indexOf(String(w))],rs=w=>pe.value.findIndex(A=>Xe.value.some(X=>(parseInt(A[X])==A[X]?parseInt(A[X]):A[X])===(parseInt(w)==w?parseInt(w):w))),ls=w=>["tags","multiple"].indexOf(n.value)!==-1&&l.value&&Be(w),cs=w=>{He.value.push(w)},ds=w=>$.value?w.filter(A=>R.value?A.__VISIBLE__.length:A[S.value].length):w.filter(A=>R.value?A.__VISIBLE__.length:!0),Ra=(w,A=!0)=>{let X=w;if(R.value&&C.value){let te=k.value;te||(te=(Qe,To,k9)=>Xe.value.some(ps=>{let Ao=xa(Kt(Qe[ps]),Z.value);return q.value?Ao.startsWith(xa(To,Z.value)):Ao.indexOf(xa(To,Z.value))!==-1})),X=X.filter(Qe=>te(Qe,R.value,M))}return l.value&&A&&(X=X.filter(te=>!ls(te))),X},ja=w=>{let A=w;return L3(A)&&(A=Object.keys(A).map(X=>{let te=A[X];return{[E.value]:X,[Xe.value[0]]:te,[d.value]:te}})),A=A.map(X=>typeof X=="object"?X:{[E.value]:X,[Xe.value[0]]:X,[d.value]:X}),A},Qt=()=>{be(T.value)||(I.value=ea(T.value))},Jt=w=>(ue.value=!0,new Promise((A,X)=>{s.value(R.value,M).then(te=>{ye.value=te||[],typeof w=="function"&&w(te),ue.value=!1}).catch(te=>{console.error(te),ye.value=[],ue.value=!1}).finally(()=>{A()})})),Ua=()=>{if(Da.value)if(n.value==="single"){let w=Ve(I.value[E.value]);if(w!==void 0){let A=w[d.value];I.value[d.value]=A,f.value&&(T.value[d.value]=A)}}else I.value.forEach((w,A)=>{let X=Ve(I.value[A][E.value]);if(X!==void 0){let te=X[d.value];I.value[A][d.value]=te,f.value&&(T.value[A][d.value]=te)}})},us=w=>{Jt(w)},ea=w=>be(w)?n.value==="single"?{}:[]:f.value?w:n.value==="single"?Ve(w)||(N.value?{[d.value]:w,[E.value]:w,[Xe.value[0]]:w}:{}):w.filter(A=>!!Ve(A)||N.value).map(A=>Ve(A)||{[d.value]:A,[E.value]:A,[Xe.value[0]]:A}),Mo=()=>{ge.value=e.watch(R,w=>{w.length<g.value||!w&&g.value!==0||(ue.value=!0,_.value&&(ye.value=[]),setTimeout(()=>{w==R.value&&s.value(R.value,M).then(A=>{(w==R.value||!R.value)&&(ye.value=A,Ke.value=Re.value.filter(X=>X[P.value]!==!0)[0]||null,ue.value=!1)}).catch(A=>{console.error(A)})},v.value))},{flush:"sync"})};if(n.value!=="single"&&!be(T.value)&&!Array.isArray(T.value))throw new Error(`v-model must be an array when using "${n.value}" mode`);return s&&typeof s.value=="function"?b.value?Jt(Qt):f.value==!0&&Qt():(ye.value=s.value,Qt()),v.value>-1&&Mo(),e.watch(v,(w,A)=>{ge.value&&ge.value(),w>=0&&Mo()}),e.watch(T,w=>{if(be(w)){ie(ea(w),!1);return}switch(n.value){case"single":(f.value?w[E.value]!=I.value[E.value]:w!=I.value[E.value])&&ie(ea(w),!1);break;case"multiple":case"tags":P3(f.value?w.map(A=>A[E.value]):w,I.value.map(A=>A[E.value]))||ie(ea(w),!1);break}},{deep:!0}),e.watch(s,(w,A)=>{typeof a.options=="function"?b.value&&(!A||w&&w.toString()!==A.toString())&&Jt():(ye.value=a.options,Object.keys(I.value).length||Qt(),Ua())}),e.watch(d,Ua),e.watch(i,(w,A)=>{Ee.value=z.value&&w===-1?10:w}),{pfo:wt,fo:Re,filteredOptions:Re,hasSelected:Da,multipleLabelText:Gn,eo:pe,extendedOptions:pe,eg:Ge,extendedGroups:Ge,fg:Ia,filteredGroups:Ia,noOptions:Xn,noResults:Qn,resolving:ue,busy:es,offset:Ee,select:lt,deselect:ct,remove:Vo,selectAll:ns,clear:So,isSelected:Be,isDisabled:La,isMax:Pa,getOption:Ve,handleOptionClick:as,handleGroupClick:os,handleTagRemove:ts,refreshOptions:us,resolveOptions:Jt,refreshLabels:Ua}}function R3(a,t,o){const{valueProp:s,showOptions:n,searchable:r,groupLabel:i,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:p}=e.toRefs(a),m=o.fo,h=o.fg,f=o.handleOptionClick,y=o.handleGroupClick,v=o.search,b=o.pointer,g=o.setPointer,C=o.clearPointer,_=o.multiselect,B=o.isOpen,E=e.computed(()=>m.value.filter(T=>!T[d.value])),N=e.computed(()=>h.value.filter(T=>!T[d.value])),D=e.computed(()=>c.value!=="single"&&u.value),j=e.computed(()=>b.value&&b.value.group),F=e.computed(()=>M(b.value)),Z=e.computed(()=>{const T=j.value?b.value:M(b.value),R=N.value.map(ie=>ie[i.value]).indexOf(T[i.value]);let x=N.value[R-1];return x===void 0&&(x=U.value),x}),O=e.computed(()=>{let T=N.value.map(R=>R.label).indexOf(j.value?b.value[i.value]:M(b.value)[i.value])+1;return N.value.length<=T&&(T=0),N.value[T]}),U=e.computed(()=>[...N.value].slice(-1)[0]),K=e.computed(()=>b.value.__VISIBLE__.filter(T=>!T[d.value])[0]),W=e.computed(()=>{const T=F.value.__VISIBLE__.filter(R=>!R[d.value]);return T[T.map(R=>R[s.value]).indexOf(b.value[s.value])-1]}),z=e.computed(()=>{const T=M(b.value).__VISIBLE__.filter(R=>!R[d.value]);return T[T.map(R=>R[s.value]).indexOf(b.value[s.value])+1]}),S=e.computed(()=>[...Z.value.__VISIBLE__.filter(T=>!T[d.value])].slice(-1)[0]),$=e.computed(()=>[...U.value.__VISIBLE__.filter(T=>!T[d.value])].slice(-1)[0]),L=T=>b.value&&(!T.group&&b.value[s.value]===T[s.value]||T.group!==void 0&&b.value[i.value]===T[i.value])?!0:void 0,V=()=>{g(E.value[0]||null)},P=()=>{!b.value||b.value[d.value]===!0||(j.value?y(b.value):f(b.value))},q=()=>{if(b.value===null)g((l.value&&D.value?N.value[0].__CREATE__?E.value[0]:N.value[0]:E.value[0])||null);else if(l.value&&D.value){let T=j.value?K.value:z.value;T===void 0&&(T=O.value,T.__CREATE__&&(T=T[p.value][0])),g(T||null)}else{let T=E.value.map(R=>R[s.value]).indexOf(b.value[s.value])+1;E.value.length<=T&&(T=0),g(E.value[T]||null)}e.nextTick(()=>{I()})},k=()=>{if(b.value===null){let T=E.value[E.value.length-1];l.value&&D.value&&(T=$.value,T===void 0&&(T=U.value)),g(T||null)}else if(l.value&&D.value){let T=j.value?S.value:W.value;T===void 0&&(T=j.value?Z.value:F.value,T.__CREATE__&&(T=S.value,T===void 0&&(T=Z.value))),g(T||null)}else{let T=E.value.map(R=>R[s.value]).indexOf(b.value[s.value])-1;T<0&&(T=E.value.length-1),g(E.value[T]||null)}e.nextTick(()=>{I()})},M=T=>N.value.find(R=>R.__VISIBLE__.map(x=>x[s.value]).indexOf(T[s.value])!==-1),I=()=>{let T=_.value.querySelector("[data-pointed]");if(!T)return;let R=T.parentElement.parentElement;l.value&&(R=j.value?T.parentElement.parentElement.parentElement:T.parentElement.parentElement.parentElement.parentElement),T.offsetTop+T.offsetHeight>R.clientHeight+R.scrollTop&&(R.scrollTop=T.offsetTop+T.offsetHeight-R.clientHeight),T.offsetTop<R.scrollTop&&(R.scrollTop=T.offsetTop)};return e.watch(v,T=>{r.value&&(T.length&&n.value?V():C())}),e.watch(B,T=>{if(T){let R=_.value.querySelectorAll("[data-selected]")[0];if(!R)return;let x=R.parentElement.parentElement;e.nextTick(()=>{x.scrollTop>0||(x.scrollTop=R.offsetTop)})}}),{pointer:b,canPointGroups:D,isPointed:L,setPointerFirst:V,selectPointer:P,forwardPointer:q,backwardPointer:k}}function de(a){if(a==null)return window;if(a.toString()!=="[object Window]"){var t=a.ownerDocument;return t&&t.defaultView||window}return a}function it(a){var t=de(a).Element;return a instanceof t||a instanceof Element}function he(a){var t=de(a).HTMLElement;return a instanceof t||a instanceof HTMLElement}function lo(a){if(typeof ShadowRoot>"u")return!1;var t=de(a).ShadowRoot;return a instanceof t||a instanceof ShadowRoot}var ot=Math.max,fa=Math.min,ht=Math.round;function Ka(){var a=navigator.userAgentData;return a!=null&&a.brands&&Array.isArray(a.brands)?a.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ln(){return!/^((?!chrome|android).)*safari/i.test(Ka())}function Ct(a,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var s=a.getBoundingClientRect(),n=1,r=1;t&&he(a)&&(n=a.offsetWidth>0&&ht(s.width)/a.offsetWidth||1,r=a.offsetHeight>0&&ht(s.height)/a.offsetHeight||1);var i=it(a)?de(a):window,l=i.visualViewport,c=!Ln()&&o,u=(s.left+(c&&l?l.offsetLeft:0))/n,d=(s.top+(c&&l?l.offsetTop:0))/r,p=s.width/n,m=s.height/r;return{width:p,height:m,top:d,right:u+p,bottom:d+m,left:u,x:u,y:d}}function co(a){var t=de(a),o=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:o,scrollTop:s}}function j3(a){return{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}}function U3(a){return a===de(a)||!he(a)?co(a):j3(a)}function we(a){return a?(a.nodeName||"").toLowerCase():null}function Ye(a){return((it(a)?a.ownerDocument:a.document)||window.document).documentElement}function uo(a){return Ct(Ye(a)).left+co(a).scrollLeft}function Ae(a){return de(a).getComputedStyle(a)}function po(a){var t=Ae(a),o=t.overflow,s=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+s)}function F3(a){var t=a.getBoundingClientRect(),o=ht(t.width)/a.offsetWidth||1,s=ht(t.height)/a.offsetHeight||1;return o!==1||s!==1}function z3(a,t,o){o===void 0&&(o=!1);var s=he(t),n=he(t)&&F3(t),r=Ye(t),i=Ct(a,n,o),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!o)&&((we(t)!=="body"||po(r))&&(l=U3(t)),he(t)?(c=Ct(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):r&&(c.x=uo(r))),{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function Pn(a){var t=Ct(a),o=a.offsetWidth,s=a.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:a.offsetLeft,y:a.offsetTop,width:o,height:s}}function Va(a){return we(a)==="html"?a:a.assignedSlot||a.parentNode||(lo(a)?a.host:null)||Ye(a)}function Hn(a){return["html","body","#document"].indexOf(we(a))>=0?a.ownerDocument.body:he(a)&&po(a)?a:Hn(Va(a))}function Tt(a,t){var o;t===void 0&&(t=[]);var s=Hn(a),n=s===((o=a.ownerDocument)==null?void 0:o.body),r=de(s),i=n?[r].concat(r.visualViewport||[],po(s)?s:[]):s,l=t.concat(i);return n?l:l.concat(Tt(Va(i)))}function Z3(a){return["table","td","th"].indexOf(we(a))>=0}function xo(a){return!he(a)||Ae(a).position==="fixed"?null:a.offsetParent}function x3(a){var t=/firefox/i.test(Ka()),o=/Trident/i.test(Ka());if(o&&he(a)){var s=Ae(a);if(s.position==="fixed")return null}var n=Va(a);for(lo(n)&&(n=n.host);he(n)&&["html","body"].indexOf(we(n))<0;){var r=Ae(n);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return n;n=n.parentNode}return null}function Sa(a){for(var t=de(a),o=xo(a);o&&Z3(o)&&Ae(o).position==="static";)o=xo(o);return o&&(we(o)==="html"||we(o)==="body"&&Ae(o).position==="static")?t:o||x3(a)||t}var _e="top",$e="bottom",xe="right",Se="left",mo="auto",Na=[_e,$e,xe,Se],gt="start",Rt="end",W3="clippingParents",Rn="viewport",Nt="popper",q3="reference",Wo=Na.reduce(function(a,t){return a.concat([t+"-"+gt,t+"-"+Rt])},[]),Y3=[].concat(Na,[mo]).reduce(function(a,t){return a.concat([t,t+"-"+gt,t+"-"+Rt])},[]),K3="beforeRead",G3="read",X3="afterRead",Q3="beforeMain",J3="main",em="afterMain",tm="beforeWrite",am="write",om="afterWrite",nm=[K3,G3,X3,Q3,J3,em,tm,am,om];function sm(a){var t=new Map,o=new Set,s=[];a.forEach(function(r){t.set(r.name,r)});function n(r){o.add(r.name);var i=[].concat(r.requires||[],r.requiresIfExists||[]);i.forEach(function(l){if(!o.has(l)){var c=t.get(l);c&&n(c)}}),s.push(r)}return a.forEach(function(r){o.has(r.name)||n(r)}),s}function im(a){var t=sm(a);return nm.reduce(function(o,s){return o.concat(t.filter(function(n){return n.phase===s}))},[])}function rm(a){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(a())})})),t}}function lm(a){var t=a.reduce(function(o,s){var n=o[s.name];return o[s.name]=n?Object.assign({},n,s,{options:Object.assign({},n.options,s.options),data:Object.assign({},n.data,s.data)}):s,o},{});return Object.keys(t).map(function(o){return t[o]})}function cm(a,t){var o=de(a),s=Ye(a),n=o.visualViewport,r=s.clientWidth,i=s.clientHeight,l=0,c=0;if(n){r=n.width,i=n.height;var u=Ln();(u||!u&&t==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:r,height:i,x:l+uo(a),y:c}}function dm(a){var t,o=Ye(a),s=co(a),n=(t=a.ownerDocument)==null?void 0:t.body,r=ot(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),i=ot(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-s.scrollLeft+uo(a),c=-s.scrollTop;return Ae(n||o).direction==="rtl"&&(l+=ot(o.clientWidth,n?n.clientWidth:0)-r),{width:r,height:i,x:l,y:c}}function um(a,t){var o=t.getRootNode&&t.getRootNode();if(a.contains(t))return!0;if(o&&lo(o)){var s=t;do{if(s&&a.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Ga(a){return Object.assign({},a,{left:a.x,top:a.y,right:a.x+a.width,bottom:a.y+a.height})}function pm(a,t){var o=Ct(a,!1,t==="fixed");return o.top=o.top+a.clientTop,o.left=o.left+a.clientLeft,o.bottom=o.top+a.clientHeight,o.right=o.left+a.clientWidth,o.width=a.clientWidth,o.height=a.clientHeight,o.x=o.left,o.y=o.top,o}function qo(a,t,o){return t===Rn?Ga(cm(a,o)):it(t)?pm(t,o):Ga(dm(Ye(a)))}function mm(a){var t=Tt(Va(a)),o=["absolute","fixed"].indexOf(Ae(a).position)>=0,s=o&&he(a)?Sa(a):a;return it(s)?t.filter(function(n){return it(n)&&um(n,s)&&we(n)!=="body"}):[]}function fm(a,t,o,s){var n=t==="clippingParents"?mm(a):[].concat(t),r=[].concat(n,[o]),i=r[0],l=r.reduce(function(c,u){var d=qo(a,u,s);return c.top=ot(d.top,c.top),c.right=fa(d.right,c.right),c.bottom=fa(d.bottom,c.bottom),c.left=ot(d.left,c.left),c},qo(a,i,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Fe(a){return a.split("-")[0]}function _t(a){return a.split("-")[1]}function jn(a){return["top","bottom"].indexOf(a)>=0?"x":"y"}function Un(a){var t=a.reference,o=a.element,s=a.placement,n=s?Fe(s):null,r=s?_t(s):null,i=t.x+t.width/2-o.width/2,l=t.y+t.height/2-o.height/2,c;switch(n){case _e:c={x:i,y:t.y-o.height};break;case $e:c={x:i,y:t.y+t.height};break;case xe:c={x:t.x+t.width,y:l};break;case Se:c={x:t.x-o.width,y:l};break;default:c={x:t.x,y:t.y}}var u=n?jn(n):null;if(u!=null){var d=u==="y"?"height":"width";switch(r){case gt:c[u]=c[u]-(t[d]/2-o[d]/2);break;case Rt:c[u]=c[u]+(t[d]/2-o[d]/2);break}}return c}function Fn(){return{top:0,right:0,bottom:0,left:0}}function vm(a){return Object.assign({},Fn(),a)}function hm(a,t){return t.reduce(function(o,s){return o[s]=a,o},{})}function fo(a,t){t===void 0&&(t={});var o=t,s=o.placement,n=s===void 0?a.placement:s,r=o.strategy,i=r===void 0?a.strategy:r,l=o.boundary,c=l===void 0?W3:l,u=o.rootBoundary,d=u===void 0?Rn:u,p=o.elementContext,m=p===void 0?Nt:p,h=o.altBoundary,f=h===void 0?!1:h,y=o.padding,v=y===void 0?0:y,b=vm(typeof v!="number"?v:hm(v,Na)),g=m===Nt?q3:Nt,C=a.rects.popper,_=a.elements[f?g:m],B=fm(it(_)?_:_.contextElement||Ye(a.elements.popper),c,d,i),E=Ct(a.elements.reference),N=Un({reference:E,element:C,strategy:"absolute",placement:n}),D=Ga(Object.assign({},C,N)),j=m===Nt?D:E,F={top:B.top-j.top+b.top,bottom:j.bottom-B.bottom+b.bottom,left:B.left-j.left+b.left,right:j.right-B.right+b.right},Z=a.modifiersData.offset;if(m===Nt&&Z){var O=Z[n];Object.keys(F).forEach(function(U){var K=[xe,$e].indexOf(U)>=0?1:-1,W=[_e,$e].indexOf(U)>=0?"y":"x";F[U]+=O[W]*K})}return F}var Yo={placement:"bottom",modifiers:[],strategy:"absolute"};function Ko(){for(var a=arguments.length,t=new Array(a),o=0;o<a;o++)t[o]=arguments[o];return!t.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function Cm(a){a===void 0&&(a={});var t=a,o=t.defaultModifiers,s=o===void 0?[]:o,n=t.defaultOptions,r=n===void 0?Yo:n;return function(l,c,u){u===void 0&&(u=r);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yo,r),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],m=!1,h={state:d,setOptions:function(b){var g=typeof b=="function"?b(d.options):b;y(),d.options=Object.assign({},r,d.options,g),d.scrollParents={reference:it(l)?Tt(l):l.contextElement?Tt(l.contextElement):[],popper:Tt(c)};var C=im(lm([].concat(s,d.options.modifiers)));return d.orderedModifiers=C.filter(function(_){return _.enabled}),f(),h.update()},forceUpdate:function(){if(!m){var b=d.elements,g=b.reference,C=b.popper;if(Ko(g,C)){d.rects={reference:z3(g,Sa(C),d.options.strategy==="fixed"),popper:Pn(C)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(F){return d.modifiersData[F.name]=Object.assign({},F.data)});for(var _=0;_<d.orderedModifiers.length;_++){if(d.reset===!0){d.reset=!1,_=-1;continue}var B=d.orderedModifiers[_],E=B.fn,N=B.options,D=N===void 0?{}:N,j=B.name;typeof E=="function"&&(d=E({state:d,options:D,name:j,instance:h})||d)}}}},update:rm(function(){return new Promise(function(v){h.forceUpdate(),v(d)})}),destroy:function(){y(),m=!0}};if(!Ko(l,c))return h;h.setOptions(u).then(function(v){!m&&u.onFirstUpdate&&u.onFirstUpdate(v)});function f(){d.orderedModifiers.forEach(function(v){var b=v.name,g=v.options,C=g===void 0?{}:g,_=v.effect;if(typeof _=="function"){var B=_({state:d,name:b,instance:h,options:C}),E=function(){};p.push(B||E)}})}function y(){p.forEach(function(v){return v()}),p=[]}return h}}var sa={passive:!0};function gm(a){var t=a.state,o=a.instance,s=a.options,n=s.scroll,r=n===void 0?!0:n,i=s.resize,l=i===void 0?!0:i,c=de(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&u.forEach(function(d){d.addEventListener("scroll",o.update,sa)}),l&&c.addEventListener("resize",o.update,sa),function(){r&&u.forEach(function(d){d.removeEventListener("scroll",o.update,sa)}),l&&c.removeEventListener("resize",o.update,sa)}}var _m={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gm,data:{}};function ym(a){var t=a.state,o=a.name;t.modifiersData[o]=Un({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var bm={name:"popperOffsets",enabled:!0,phase:"read",fn:ym,data:{}},km={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wm(a,t){var o=a.x,s=a.y,n=t.devicePixelRatio||1;return{x:ht(o*n)/n||0,y:ht(s*n)/n||0}}function Go(a){var t,o=a.popper,s=a.popperRect,n=a.placement,r=a.variation,i=a.offsets,l=a.position,c=a.gpuAcceleration,u=a.adaptive,d=a.roundOffsets,p=a.isFixed,m=i.x,h=m===void 0?0:m,f=i.y,y=f===void 0?0:f,v=typeof d=="function"?d({x:h,y}):{x:h,y};h=v.x,y=v.y;var b=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),C=Se,_=_e,B=window;if(u){var E=Sa(o),N="clientHeight",D="clientWidth";if(E===de(o)&&(E=Ye(o),Ae(E).position!=="static"&&l==="absolute"&&(N="scrollHeight",D="scrollWidth")),E=E,n===_e||(n===Se||n===xe)&&r===Rt){_=$e;var j=p&&E===B&&B.visualViewport?B.visualViewport.height:E[N];y-=j-s.height,y*=c?1:-1}if(n===Se||(n===_e||n===$e)&&r===Rt){C=xe;var F=p&&E===B&&B.visualViewport?B.visualViewport.width:E[D];h-=F-s.width,h*=c?1:-1}}var Z=Object.assign({position:l},u&&km),O=d===!0?wm({x:h,y},de(o)):{x:h,y};if(h=O.x,y=O.y,c){var U;return Object.assign({},Z,(U={},U[_]=g?"0":"",U[C]=b?"0":"",U.transform=(B.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",U))}return Object.assign({},Z,(t={},t[_]=g?y+"px":"",t[C]=b?h+"px":"",t.transform="",t))}function $m(a){var t=a.state,o=a.options,s=o.gpuAcceleration,n=s===void 0?!0:s,r=o.adaptive,i=r===void 0?!0:r,l=o.roundOffsets,c=l===void 0?!0:l,u={placement:Fe(t.placement),variation:_t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Go(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Go(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Em={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$m,data:{}};function Bm(a){var t=a.state;Object.keys(t.elements).forEach(function(o){var s=t.styles[o]||{},n=t.attributes[o]||{},r=t.elements[o];!he(r)||!we(r)||(Object.assign(r.style,s),Object.keys(n).forEach(function(i){var l=n[i];l===!1?r.removeAttribute(i):r.setAttribute(i,l===!0?"":l)}))})}function Vm(a){var t=a.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(s){var n=t.elements[s],r=t.attributes[s]||{},i=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:o[s]),l=i.reduce(function(c,u){return c[u]="",c},{});!he(n)||!we(n)||(Object.assign(n.style,l),Object.keys(r).forEach(function(c){n.removeAttribute(c)}))})}}var Sm={name:"applyStyles",enabled:!0,phase:"write",fn:Bm,effect:Vm,requires:["computeStyles"]},Nm=[_m,bm,Em,Sm],Mm=Cm({defaultModifiers:Nm});function Tm(a){return a==="x"?"y":"x"}function ia(a,t,o){return ot(a,fa(t,o))}function Am(a,t,o){var s=ia(a,t,o);return s>o?o:s}function Om(a){var t=a.state,o=a.options,s=a.name,n=o.mainAxis,r=n===void 0?!0:n,i=o.altAxis,l=i===void 0?!1:i,c=o.boundary,u=o.rootBoundary,d=o.altBoundary,p=o.padding,m=o.tether,h=m===void 0?!0:m,f=o.tetherOffset,y=f===void 0?0:f,v=fo(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),b=Fe(t.placement),g=_t(t.placement),C=!g,_=jn(b),B=Tm(_),E=t.modifiersData.popperOffsets,N=t.rects.reference,D=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,F=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),Z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(E){if(r){var U,K=_==="y"?_e:Se,W=_==="y"?$e:xe,z=_==="y"?"height":"width",S=E[_],$=S+v[K],L=S-v[W],V=h?-D[z]/2:0,P=g===gt?N[z]:D[z],q=g===gt?-D[z]:-N[z],k=t.elements.arrow,M=h&&k?Pn(k):{width:0,height:0},I=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Fn(),T=I[K],R=I[W],x=ia(0,N[z],M[z]),ie=C?N[z]/2-V-x-T-F.mainAxis:P-x-T-F.mainAxis,Ke=C?-N[z]/2+V+x+R+F.mainAxis:q+x+R+F.mainAxis,bt=t.elements.arrow&&Sa(t.elements.arrow),Le=bt?_==="y"?bt.clientTop||0:bt.clientLeft||0:0,Yt=(U=Z==null?void 0:Z[_])!=null?U:0,Oa=S+ie-Yt-Le,Pe=S+Ke-Yt,Kt=ia(h?fa($,Oa):$,S,h?ot(L,Pe):L);E[_]=Kt,O[_]=Kt-S}if(l){var He,ye=_==="x"?_e:Se,ue=_==="x"?$e:xe,ge=E[B],Ee=B==="y"?"height":"width",kt=ge+v[ye],Gt=ge-v[ue],pe=[_e,Se].indexOf(b)!==-1,wt=(He=Z==null?void 0:Z[B])!=null?He:0,Re=pe?kt:ge-N[Ee]-D[Ee]-wt+F.altAxis,Ge=pe?ge+N[Ee]+D[Ee]-wt-F.altAxis:Gt,Xt=h&&pe?Am(Re,ge,Ge):ia(h?Re:kt,ge,h?Ge:Gt);E[B]=Xt,O[B]=Xt-ge}t.modifiersData[s]=O}}var Im={name:"preventOverflow",enabled:!0,phase:"main",fn:Om,requiresIfExists:["offset"]},Dm={left:"right",right:"left",bottom:"top",top:"bottom"};function ra(a){return a.replace(/left|right|bottom|top/g,function(t){return Dm[t]})}var Lm={start:"end",end:"start"};function Xo(a){return a.replace(/start|end/g,function(t){return Lm[t]})}function Pm(a,t){t===void 0&&(t={});var o=t,s=o.placement,n=o.boundary,r=o.rootBoundary,i=o.padding,l=o.flipVariations,c=o.allowedAutoPlacements,u=c===void 0?Y3:c,d=_t(s),p=d?l?Wo:Wo.filter(function(f){return _t(f)===d}):Na,m=p.filter(function(f){return u.indexOf(f)>=0});m.length===0&&(m=p);var h=m.reduce(function(f,y){return f[y]=fo(a,{placement:y,boundary:n,rootBoundary:r,padding:i})[Fe(y)],f},{});return Object.keys(h).sort(function(f,y){return h[f]-h[y]})}function Hm(a){if(Fe(a)===mo)return[];var t=ra(a);return[Xo(a),t,Xo(t)]}function Rm(a){var t=a.state,o=a.options,s=a.name;if(!t.modifiersData[s]._skip){for(var n=o.mainAxis,r=n===void 0?!0:n,i=o.altAxis,l=i===void 0?!0:i,c=o.fallbackPlacements,u=o.padding,d=o.boundary,p=o.rootBoundary,m=o.altBoundary,h=o.flipVariations,f=h===void 0?!0:h,y=o.allowedAutoPlacements,v=t.options.placement,b=Fe(v),g=b===v,C=c||(g||!f?[ra(v)]:Hm(v)),_=[v].concat(C).reduce(function(M,I){return M.concat(Fe(I)===mo?Pm(t,{placement:I,boundary:d,rootBoundary:p,padding:u,flipVariations:f,allowedAutoPlacements:y}):I)},[]),B=t.rects.reference,E=t.rects.popper,N=new Map,D=!0,j=_[0],F=0;F<_.length;F++){var Z=_[F],O=Fe(Z),U=_t(Z)===gt,K=[_e,$e].indexOf(O)>=0,W=K?"width":"height",z=fo(t,{placement:Z,boundary:d,rootBoundary:p,altBoundary:m,padding:u}),S=K?U?xe:Se:U?$e:_e;B[W]>E[W]&&(S=ra(S));var $=ra(S),L=[];if(r&&L.push(z[O]<=0),l&&L.push(z[S]<=0,z[$]<=0),L.every(function(M){return M})){j=Z,D=!1;break}N.set(Z,L)}if(D)for(var V=f?3:1,P=function(I){var T=_.find(function(R){var x=N.get(R);if(x)return x.slice(0,I).every(function(ie){return ie})});if(T)return j=T,"break"},q=V;q>0;q--){var k=P(q);if(k==="break")break}t.placement!==j&&(t.modifiersData[s]._skip=!0,t.placement=j,t.reset=!0)}}var jm={name:"flip",enabled:!0,phase:"main",fn:Rm,requiresIfExists:["offset"],data:{_skip:!1}};function Um(a,t,o){const{disabled:s,appendTo:n,appendToBody:r,openDirection:i}=e.toRefs(a),l=e.getCurrentInstance().proxy,c=o.multiselect,u=o.dropdown,d=e.ref(!1),p=e.ref(null),m=e.ref(null),h=e.computed(()=>n.value||r.value),f=e.computed(()=>i.value==="top"&&m.value==="bottom"||i.value==="bottom"&&m.value!=="top"?"bottom":"top"),y=()=>{d.value||s.value||(d.value=!0,t.emit("open",l),h.value&&e.nextTick(()=>{b()}))},v=()=>{d.value&&(d.value=!1,t.emit("close",l))},b=()=>{if(!p.value)return;let C=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),_=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));p.value.setOptions(B=>({...B,modifiers:[...B.modifiers,{name:"offset",options:{offset:[0,(f.value==="top"?C:_)*-1]}}]})),p.value.update()},g=C=>{for(;C&&C!==document.body;){if(getComputedStyle(C).position==="fixed")return!0;C=C.parentElement}return!1};return e.onMounted(()=>{h.value&&(p.value=Mm(c.value,u.value,{strategy:g(c.value)?"fixed":void 0,placement:i.value,modifiers:[Im,jm,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:C})=>{C.styles.popper.width=`${C.rects.reference.width}px`},effect:({state:C})=>{C.elements.popper.style.width=`${C.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:C}){m.value=C.placement}}]}))}),e.onBeforeUnmount(()=>{!h.value||!p.value||(p.value.destroy(),p.value=null)}),{popper:p,isOpen:d,open:y,close:v,placement:f,updatePopper:b}}function Fm(a,t,o){const{searchable:s,disabled:n,clearOnBlur:r}=e.toRefs(a),i=o.input,l=o.open,c=o.close,u=o.clearSearch,d=o.isOpen,p=o.wrapper,m=o.tags,h=e.ref(!1),f=e.ref(!1),y=e.computed(()=>s.value||n.value?-1:0),v=()=>{s.value&&i.value.blur(),p.value.blur()},b=()=>{s.value&&!n.value&&i.value.focus()},g=(D=!0)=>{n.value||(h.value=!0,D&&l())},C=()=>{h.value=!1,setTimeout(()=>{h.value||(c(),r.value&&u())},1)};return{tabindex:y,isActive:h,mouseClicked:f,blur:v,focus:b,activate:g,deactivate:C,handleFocusIn:D=>{D.target.closest("[data-tags]")&&D.target.nodeName!=="INPUT"||D.target.closest("[data-clear]")||g(f.value)},handleFocusOut:()=>{C()},handleCaretClick:()=>{C(),v()},handleMousedown:D=>{f.value=!0,d.value&&(D.target.isEqualNode(p.value)||D.target.isEqualNode(m.value))?setTimeout(()=>{C()},0):!d.value&&(document.activeElement.isEqualNode(p.value)||document.activeElement.isEqualNode(i.value))&&g(),setTimeout(()=>{f.value=!1},0)}}}function zm(a,t,o){const{mode:s,addTagOn:n,openDirection:r,searchable:i,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:p,createOption:m,reverse:h}=e.toRefs(a),f=e.getCurrentInstance().proxy,y=o.iv,v=o.update,b=o.deselect,g=o.search,C=o.setPointer,_=o.selectPointer,B=o.backwardPointer,E=o.forwardPointer,N=o.multiselect,D=o.wrapper,j=o.tags,F=o.isOpen,Z=o.open,O=o.blur,U=o.fo,K=e.computed(()=>p.value||m.value||!1),W=e.computed(()=>n.value!==void 0?n.value:d.value!==void 0?d.value:["enter"]),z=()=>{s.value==="tags"&&!l.value&&K.value&&i.value&&!u.value&&C(U.value[U.value.map(L=>L[c.value]).indexOf(g.value)])};return{handleKeydown:L=>{t.emit("keydown",L,f);let V,P;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(L.key)!==-1&&s.value==="tags"&&(V=[...N.value.querySelectorAll("[data-tags] > *")].filter(q=>q!==j.value),P=V.findIndex(q=>q===document.activeElement)),L.key){case"Backspace":if(s.value==="single"||i.value&&[null,""].indexOf(g.value)===-1||y.value.length===0)return;let q=y.value.filter(k=>!k.disabled&&k.remove!==!1);q.length&&b(q[q.length-1]);break;case"Enter":if(L.preventDefault(),L.keyCode===229)return;if(P!==-1&&P!==void 0){v([...y.value].filter((k,M)=>M!==P)),P===V.length-1&&(V.length-1?V[V.length-2].focus():i.value?j.value.querySelector("input").focus():D.value.focus());return}if(W.value.indexOf("enter")===-1&&K.value)return;z(),_();break;case" ":if(!K.value&&!i.value){L.preventDefault(),z(),_();return}if(!K.value)return!1;if(W.value.indexOf("space")===-1&&K.value)return;L.preventDefault(),z(),_();break;case"Tab":case";":case",":if(W.value.indexOf(L.key.toLowerCase())===-1||!K.value)return;z(),_(),L.preventDefault();break;case"Escape":O();break;case"ArrowUp":if(L.preventDefault(),!l.value)return;F.value||Z(),B();break;case"ArrowDown":if(L.preventDefault(),!l.value)return;F.value||Z(),E();break;case"ArrowLeft":if(i.value&&j.value&&j.value.querySelector("input").selectionStart||L.shiftKey||s.value!=="tags"||!y.value||!y.value.length)return;L.preventDefault(),P===-1?V[V.length-1].focus():P>0&&V[P-1].focus();break;case"ArrowRight":if(P===-1||L.shiftKey||s.value!=="tags"||!y.value||!y.value.length)return;L.preventDefault(),V.length>P+1?V[P+1].focus():i.value?j.value.querySelector("input").focus():i.value||D.value.focus();break}},handleKeyup:L=>{t.emit("keyup",L,f)},preparePointer:z}}function Zm(a,t,o){const{classes:s,disabled:n,showOptions:r,breakTags:i}=e.toRefs(a),l=o.isOpen,c=o.isPointed,u=o.isSelected,d=o.isDisabled,p=o.isActive,m=o.canPointGroups,h=o.resolving,f=o.fo,y=o.placement,v=e.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",...s.value})),b=e.computed(()=>!!(l.value&&r.value&&(!h.value||h.value&&f.value.length)));return{classList:e.computed(()=>{const C=v.value;return{container:[C.container].concat(n.value?C.containerDisabled:[]).concat(b.value&&y.value==="top"?C.containerOpenTop:[]).concat(b.value&&y.value!=="top"?C.containerOpen:[]).concat(p.value?C.containerActive:[]),wrapper:C.wrapper,spacer:C.spacer,singleLabel:C.singleLabel,singleLabelText:C.singleLabelText,multipleLabel:C.multipleLabel,search:C.search,tags:C.tags,tag:[C.tag].concat(n.value?C.tagDisabled:[]),tagWrapper:[C.tagWrapper,i.value?C.tagWrapperBreak:null],tagDisabled:C.tagDisabled,tagRemove:C.tagRemove,tagRemoveIcon:C.tagRemoveIcon,tagsSearchWrapper:C.tagsSearchWrapper,tagsSearch:C.tagsSearch,tagsSearchCopy:C.tagsSearchCopy,placeholder:C.placeholder,caret:[C.caret].concat(l.value?C.caretOpen:[]),clear:C.clear,clearIcon:C.clearIcon,spinner:C.spinner,inifinite:C.inifinite,inifiniteSpinner:C.inifiniteSpinner,dropdown:[C.dropdown].concat(y.value==="top"?C.dropdownTop:[]).concat(!l.value||!r.value||!b.value?C.dropdownHidden:[]),options:[C.options].concat(y.value==="top"?C.optionsTop:[]),group:C.group,groupLabel:_=>{let B=[C.groupLabel];return c(_)?B.push(u(_)?C.groupLabelSelectedPointed:C.groupLabelPointed):u(_)&&m.value?B.push(d(_)?C.groupLabelSelectedDisabled:C.groupLabelSelected):d(_)&&B.push(C.groupLabelDisabled),m.value&&B.push(C.groupLabelPointable),B},groupOptions:C.groupOptions,option:(_,B)=>{let E=[C.option];return c(_)?E.push(u(_)?C.optionSelectedPointed:C.optionPointed):u(_)?E.push(d(_)?C.optionSelectedDisabled:C.optionSelected):(d(_)||B&&d(B))&&E.push(C.optionDisabled),E},noOptions:C.noOptions,noResults:C.noResults,assist:C.assist,fakeInput:C.fakeInput}}),showDropdown:b}}function xm(a,t,o){const{limit:s,infinite:n}=e.toRefs(a),r=o.isOpen,i=o.offset,l=o.search,c=o.pfo,u=o.eo,d=e.ref(null),p=e.ref(null),m=e.computed(()=>i.value<c.value.length),h=y=>{const{isIntersecting:v,target:b}=y[0];if(v){const g=b.offsetParent,C=g.scrollTop;i.value+=s.value==-1?10:s.value,e.nextTick(()=>{g.scrollTop=C})}},f=()=>{r.value&&i.value<c.value.length?d.value.observe(p.value):!r.value&&d.value&&d.value.disconnect()};return e.watch(r,()=>{n.value&&f()}),e.watch(l,()=>{n.value&&(i.value=s.value,f())},{flush:"post"}),e.watch(u,()=>{n.value&&f()},{immediate:!1,flush:"post"}),e.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(h))}),{hasMore:m,infiniteLoader:p}}function Wm(a,t,o){const{placeholder:s,id:n,valueProp:r,label:i,mode:l,groupLabel:c,aria:u,searchable:d}=e.toRefs(a),p=o.pointer,m=o.iv,h=o.hasSelected,f=o.multipleLabelText,y=e.ref(null),v=e.computed(()=>{let O=[];return n&&n.value&&O.push(n.value),O.push("assist"),O.join("-")}),b=e.computed(()=>{let O=[];return n&&n.value&&O.push(n.value),O.push("multiselect-options"),O.join("-")}),g=e.computed(()=>{let O=[];if(n&&n.value&&O.push(n.value),p.value)return O.push(p.value.group?"multiselect-group":"multiselect-option"),O.push(p.value.group?p.value.index:p.value[r.value]),O.join("-")}),C=e.computed(()=>s.value),_=e.computed(()=>l.value!=="single"),B=e.computed(()=>{let O="";return l.value==="single"&&h.value&&(O+=m.value[i.value]),l.value==="multiple"&&h.value&&(O+=f.value),l.value==="tags"&&h.value&&(O+=m.value.map(U=>U[i.value]).join(", ")),O}),E=e.computed(()=>{let O={...u.value};return d.value&&(O["aria-labelledby"]=O["aria-labelledby"]?`${v.value} ${O["aria-labelledby"]}`:v.value,B.value&&O["aria-label"]&&(O["aria-label"]=`${B.value}, ${O["aria-label"]}`)),O}),N=O=>{let U=[];return n&&n.value&&U.push(n.value),U.push("multiselect-option"),U.push(O[r.value]),U.join("-")},D=O=>{let U=[];return n&&n.value&&U.push(n.value),U.push("multiselect-group"),U.push(O.index),U.join("-")},j=O=>{let U=[];return U.push(O),U.join(" ")},F=O=>{let U=[];return U.push(O),U.join(" ")},Z=O=>`${O} ❎`;return e.onMounted(()=>{if(n&&n.value&&document&&document.querySelector){let O=document.querySelector(`[for="${n.value}"]`);y.value=O?O.innerText:null}}),{arias:E,ariaLabel:B,ariaAssist:v,ariaControls:b,ariaPlaceholder:C,ariaMultiselectable:_,ariaActiveDescendant:g,ariaOptionId:N,ariaOptionLabel:j,ariaGroupId:D,ariaGroupLabel:F,ariaTagLabel:Z}}function qm(a,t,o){const{locale:s,fallbackLocale:n}=e.toRefs(a);return{localize:i=>!i||typeof i!="object"?i:i&&i[s.value]?i[s.value]:i&&s.value&&i[s.value.toUpperCase()]?i[s.value.toUpperCase()]:i&&i[n.value]?i[n.value]:i&&n.value&&i[n.value.toUpperCase()]?i[n.value.toUpperCase()]:i&&Object.keys(i)[0]?i[Object.keys(i)[0]]:""}}function Ym(a,t,o){const s=e.ref(null),n=e.ref(null),r=e.ref(null),i=e.ref(null),l=e.ref(null);return{multiselect:s,wrapper:n,tags:r,input:i,dropdown:l}}function Km(a,t,o,s={}){return o.forEach(n=>{n&&(s={...s,...n(a,t,s)})}),s}var Ue={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(a,t){return Km(a,t,[Ym,qm,O3,D3,Um,I3,A3,Fm,H3,xm,R3,zm,Zm,Wm])},beforeMount(){var a,t;((t=(a=this.$root.constructor)==null?void 0:a.version)!=null&&t.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const Gm=["id","dir"],Xm=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],Qm=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Jm=["onKeyup","aria-label"],e5=["onClick"],t5=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],a5=["innerHTML"],o5=["id"],n5=["id"],s5=["id","aria-label","aria-selected"],i5=["data-pointed","onMouseenter","onMousedown"],r5=["innerHTML"],l5=["aria-label"],c5=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],d5=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],u5=["innerHTML"],p5=["innerHTML"],m5=["value"],f5=["name","value"],v5=["name","value"],h5=["id"];function C5(a,t,o,s,n,r){return e.openBlock(),e.createElementBlock("div",{ref:"multiselect",class:e.normalizeClass(a.classList.container),id:o.searchable?void 0:o.id,dir:o.rtl?"rtl":void 0,onFocusin:t[10]||(t[10]=(...i)=>a.handleFocusIn&&a.handleFocusIn(...i)),onFocusout:t[11]||(t[11]=(...i)=>a.handleFocusOut&&a.handleFocusOut(...i)),onKeyup:t[12]||(t[12]=(...i)=>a.handleKeyup&&a.handleKeyup(...i)),onKeydown:t[13]||(t[13]=(...i)=>a.handleKeydown&&a.handleKeydown(...i))},[e.createElementVNode("div",e.mergeProps({class:a.classList.wrapper,onMousedown:t[9]||(t[9]=(...i)=>a.handleMousedown&&a.handleMousedown(...i)),ref:"wrapper",tabindex:a.tabindex,"aria-controls":o.searchable?void 0:a.ariaControls,"aria-placeholder":o.searchable?void 0:a.ariaPlaceholder,"aria-expanded":o.searchable?void 0:a.isOpen,"aria-activedescendant":o.searchable?void 0:a.ariaActiveDescendant,"aria-multiselectable":o.searchable?void 0:a.ariaMultiselectable,role:o.searchable?void 0:"combobox"},o.searchable?{}:a.arias),[e.createCommentVNode(" Search "),o.mode!=="tags"&&o.searchable&&!o.disabled?(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:0,type:o.inputType,modelValue:a.search,value:a.search,class:a.classList.search,autocomplete:o.autocomplete,id:o.searchable?o.id:void 0,onInput:t[0]||(t[0]=(...i)=>a.handleSearchInput&&a.handleSearchInput(...i)),onKeypress:t[1]||(t[1]=(...i)=>a.handleKeypress&&a.handleKeypress(...i)),onPaste:t[2]||(t[2]=e.withModifiers((...i)=>a.handlePaste&&a.handlePaste(...i),["stop"])),ref:"input","aria-controls":a.ariaControls,"aria-placeholder":a.ariaPlaceholder,"aria-expanded":a.isOpen,"aria-activedescendant":a.ariaActiveDescendant,"aria-multiselectable":a.ariaMultiselectable,role:"combobox"},{...o.attrs,...a.arias}),null,16,Qm)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Tags (with search) "),o.mode=="tags"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(a.classList.tags),"data-tags":""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.iv,(i,l,c)=>e.renderSlot(a.$slots,"tag",{option:i,handleTagRemove:a.handleTagRemove,disabled:o.disabled},()=>[(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([a.classList.tag,i.disabled?a.classList.tagDisabled:null]),tabindex:"-1",onKeyup:e.withKeys(u=>a.handleTagRemove(i,u),["enter"]),key:c,"aria-label":a.ariaTagLabel(a.localize(i[o.label]))},[e.createElementVNode("span",{class:e.normalizeClass(a.classList.tagWrapper)},e.toDisplayString(a.localize(i[o.label])),3),!o.disabled&&!i.disabled?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(a.classList.tagRemove),onClick:e.withModifiers(u=>a.handleTagRemove(i,u),["stop"])},[e.createElementVNode("span",{class:e.normalizeClass(a.classList.tagRemoveIcon)},null,2)],10,e5)):e.createCommentVNode("v-if",!0)],42,Jm))])),256)),e.createElementVNode("div",{class:e.normalizeClass(a.classList.tagsSearchWrapper),ref:"tags"},[e.createCommentVNode(" Used for measuring search width "),e.createElementVNode("span",{class:e.normalizeClass(a.classList.tagsSearchCopy)},e.toDisplayString(a.search),3),e.createCommentVNode(" Actual search input "),o.searchable&&!o.disabled?(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:0,type:o.inputType,modelValue:a.search,value:a.search,class:a.classList.tagsSearch,id:o.searchable?o.id:void 0,autocomplete:o.autocomplete,onInput:t[3]||(t[3]=(...i)=>a.handleSearchInput&&a.handleSearchInput(...i)),onKeypress:t[4]||(t[4]=(...i)=>a.handleKeypress&&a.handleKeypress(...i)),onPaste:t[5]||(t[5]=e.withModifiers((...i)=>a.handlePaste&&a.handlePaste(...i),["stop"])),ref:"input","aria-controls":a.ariaControls,"aria-placeholder":a.ariaPlaceholder,"aria-expanded":a.isOpen,"aria-activedescendant":a.ariaActiveDescendant,"aria-multiselectable":a.ariaMultiselectable,role:"combobox"},{...o.attrs,...a.arias}),null,16,t5)):e.createCommentVNode("v-if",!0)],2)],2)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Single label "),o.mode=="single"&&a.hasSelected&&!a.search&&a.iv?e.renderSlot(a.$slots,"singlelabel",{key:2,value:a.iv},()=>[e.createElementVNode("div",{class:e.normalizeClass(a.classList.singleLabel)},[e.createElementVNode("span",{class:e.normalizeClass(a.classList.singleLabelText)},e.toDisplayString(a.localize(a.iv[o.label])),3)],2)]):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Multiple label "),o.mode=="multiple"&&a.hasSelected&&!a.search?e.renderSlot(a.$slots,"multiplelabel",{key:3,values:a.iv},()=>[e.createElementVNode("div",{class:e.normalizeClass(a.classList.multipleLabel),innerHTML:a.multipleLabelText},null,10,a5)]):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Placeholder "),o.placeholder&&!a.hasSelected&&!a.search?e.renderSlot(a.$slots,"placeholder",{key:4},()=>[e.createElementVNode("div",{class:e.normalizeClass(a.classList.placeholder),"aria-hidden":"true"},e.toDisplayString(o.placeholder),3)]):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Spinner "),o.loading||a.resolving?e.renderSlot(a.$slots,"spinner",{key:5},()=>[e.createElementVNode("span",{class:e.normalizeClass(a.classList.spinner),"aria-hidden":"true"},null,2)]):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Clear "),a.hasSelected&&!o.disabled&&o.canClear&&!a.busy?e.renderSlot(a.$slots,"clear",{key:6,clear:a.clear},()=>[e.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:e.normalizeClass(a.classList.clear),onClick:t[6]||(t[6]=(...i)=>a.clear&&a.clear(...i)),onKeyup:t[7]||(t[7]=e.withKeys((...i)=>a.clear&&a.clear(...i),["enter"]))},[e.createElementVNode("span",{class:e.normalizeClass(a.classList.clearIcon)},null,2)],34)]):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Caret "),o.caret&&o.showOptions?e.renderSlot(a.$slots,"caret",{key:7,handleCaretClick:a.handleCaretClick,isOpen:a.isOpen},()=>[e.createElementVNode("span",{class:e.normalizeClass(a.classList.caret),onClick:t[8]||(t[8]=(...i)=>a.handleCaretClick&&a.handleCaretClick(...i)),"aria-hidden":"true"},null,2)]):e.createCommentVNode("v-if",!0)],16,Xm),e.createCommentVNode(" Options "),(e.openBlock(),e.createBlock(e.Teleport,{to:o.appendTo||"body",disabled:!o.appendToBody&&!o.appendTo},[e.createElementVNode("div",{id:`${o.id}-dropdown`,class:e.normalizeClass(a.classList.dropdown),tabindex:"-1",ref:"dropdown"},[e.renderSlot(a.$slots,"beforelist",{options:a.fo}),e.createElementVNode("ul",{class:e.normalizeClass(a.classList.options),id:a.ariaControls,role:"listbox"},[o.groups?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.fg,(i,l,c)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(a.classList.group),key:c,id:a.ariaGroupId(i),"aria-label":a.ariaGroupLabel(a.localize(i[o.groupLabel])),"aria-selected":a.isSelected(i),role:"option"},[i.__CREATE__?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.classList.groupLabel(i)),"data-pointed":a.isPointed(i),onMouseenter:u=>a.setPointer(i,l),onMousedown:e.withModifiers(u=>a.handleGroupClick(i),["prevent"])},[e.renderSlot(a.$slots,"grouplabel",{group:i,isSelected:a.isSelected,isPointed:a.isPointed},()=>[e.createElementVNode("span",{innerHTML:a.localize(i[o.groupLabel])},null,8,r5)])],42,i5)),e.createElementVNode("ul",{class:e.normalizeClass(a.classList.groupOptions),"aria-label":a.ariaGroupLabel(a.localize(i[o.groupLabel])),role:"group"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.__VISIBLE__,(u,d,p)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(a.classList.option(u,i)),"data-pointed":a.isPointed(u),"data-selected":a.isSelected(u)||void 0,key:p,onMouseenter:m=>a.setPointer(u),onMousedown:e.withModifiers(m=>a.handleOptionClick(u),["prevent"]),id:a.ariaOptionId(u),"aria-selected":a.isSelected(u),"aria-label":a.ariaOptionLabel(a.localize(u[o.label])),role:"option"},[e.renderSlot(a.$slots,"option",{option:u,isSelected:a.isSelected,isPointed:a.isPointed,search:a.search},()=>[e.createElementVNode("span",null,e.toDisplayString(a.localize(u[o.label])),1)])],42,c5))),128))],10,l5)],10,s5))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.fo,(i,l,c)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(a.classList.option(i)),"data-pointed":a.isPointed(i),"data-selected":a.isSelected(i)||void 0,key:c,onMouseenter:u=>a.setPointer(i),onMousedown:e.withModifiers(u=>a.handleOptionClick(i),["prevent"]),id:a.ariaOptionId(i),"aria-selected":a.isSelected(i),"aria-label":a.ariaOptionLabel(a.localize(i[o.label])),role:"option"},[e.renderSlot(a.$slots,"option",{option:i,isSelected:a.isSelected,isPointed:a.isPointed,search:a.search},()=>[e.createElementVNode("span",null,e.toDisplayString(a.localize(i[o.label])),1)])],42,d5))),128))],10,n5),a.noOptions?e.renderSlot(a.$slots,"nooptions",{key:0},()=>[e.createElementVNode("div",{class:e.normalizeClass(a.classList.noOptions),innerHTML:a.localize(o.noOptionsText)},null,10,u5)]):e.createCommentVNode("v-if",!0),a.noResults?e.renderSlot(a.$slots,"noresults",{key:1},()=>[e.createElementVNode("div",{class:e.normalizeClass(a.classList.noResults),innerHTML:a.localize(o.noResultsText)},null,10,p5)]):e.createCommentVNode("v-if",!0),o.infinite&&a.hasMore?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(a.classList.inifinite),ref:"infiniteLoader"},[e.renderSlot(a.$slots,"infinite",{},()=>[e.createElementVNode("span",{class:e.normalizeClass(a.classList.inifiniteSpinner)},null,2)])],2)):e.createCommentVNode("v-if",!0),e.renderSlot(a.$slots,"afterlist",{options:a.fo})],10,o5)],8,["to","disabled"])),e.createCommentVNode(" Hacky input element to show HTML5 required warning "),o.required?(e.openBlock(),e.createElementBlock("input",{key:0,class:e.normalizeClass(a.classList.fakeInput),tabindex:"-1",value:a.textValue,required:""},null,10,m5)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Native input support "),o.nativeSupport?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.mode=="single"?(e.openBlock(),e.createElementBlock("input",{key:0,type:"hidden",name:o.name,value:a.plainValue!==void 0?a.plainValue:""},null,8,f5)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.plainValue,(i,l)=>(e.openBlock(),e.createElementBlock("input",{type:"hidden",name:`${o.name}[]`,value:i,key:l},null,8,v5))),128))],64)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Screen reader assistive text "),o.searchable&&a.hasSelected?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(a.classList.assist),id:a.ariaAssist,"aria-hidden":"true"},e.toDisplayString(a.ariaLabel),11,h5)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Create height for empty input "),e.createElementVNode("div",{class:e.normalizeClass(a.classList.spacer)},null,2)],42,Gm)}Ue.render=C5;Ue.__file="src/Multiselect.vue";const le=e.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(a){const t=a,o=e.toRef(()=>t.appendTo),s=e.ref();return t.detached&&T3({multiselect:s,appendTo:o.value}),(n,r)=>(e.openBlock(),e.createBlock(e.unref(Ue),{ref_key:"multiselectRef",ref:s,class:"ao-multiselect"},e.createSlots({_:2},[e.renderList(n.$slots,(i,l)=>({name:l,fn:e.withCtx(c=>[e.renderSlot(n.$slots,l,e.normalizeProps(e.guardReactiveProps(c??{})))])}))]),1536))}});var Qo;function De(){const a=g5(),t=a.appContext.config.globalProperties;return{i18next:t.$i18next,t:t.$t.bind(a.proxy)}}function g5(){const a=e.getCurrentInstance();if(!a)throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");return a}e.defineComponent({props:{translation:{type:String,required:!0}},setup(a,{slots:t}){return()=>{const o=a.translation,s=[];let n,r=0;for(;(n=Qo.exec(o))!==null;){s.push(o.substring(r,n.index));const i=t[n[1]];i?s.push(...i()):s.push(n[0]),r=Qo.lastIndex}return s.push(o.substring(r)),s}}});async function Ne(a,t){if(t&&a&&a.length-t.length===1){const o=new Set(t.map(l=>l.id)),s=a.filter(l=>!o.has(l.id));if(s.length!==1)return;const n=s[0].id;await e.nextTick();const r=document.getElementById(n);r==null||r.focus(),await e.nextTick();const i=document.getElementById(n);i==null||i.select()}}const _5={class:"ao-tasks"},y5={class:"ao-tasks__list"},b5=["id","value","readonly","onChange","onKeyup"],k5={class:"ao-tasks__list-footer"},w5=e.defineComponent({__name:"AoActivityTasks",props:{activityId:{},tasks:{},isCheckable:{type:Function},users:{},isEditable:{type:Boolean},isTemplate:{type:Boolean}},emits:["add","delete","update"],setup(a,{emit:t}){const o=a,{t:s}=De();e.watch(()=>o.tasks,(p,m)=>{Ne(p,m)});const n=e.computed(()=>{var p;return((p=o.users)==null?void 0:p.map(m=>({label:`${m.firstName} ${m.lastName}`,value:m.id,avatar:m.avatarUrl})))??[]}),r=()=>{const p=o.tasks.length,m={name:s("task.defaultName",{idx:p+1}),activityId:o.activityId};t("add",m)},i=(p,m)=>{const f=p.target.value;t("update",{id:m,name:f})},l=(p,m)=>{o.isEditable&&t("update",{id:p,isDone:m})},c=p=>{t("delete",{id:p})},u=(p,m)=>{t("update",{id:m,assigneeId:p[0]??null})},d=p=>{const m=p.target;m==null||m.blur()};return(p,m)=>(e.openBlock(),e.createElementBlock("div",_5,[e.createElementVNode("ul",y5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.tasks,h=>{var f,y;return e.openBlock(),e.createElementBlock("li",{key:h.id,class:"ao-subtask"},[((f=p.isCheckable)==null?void 0:f.call(p,h))??!1?(e.openBlock(),e.createBlock(G,{key:0,class:"ao-subtask__check","icon-name":h.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!p.isEditable,variant:"ghost",color:"primary",onClick:()=>l(h.id,!h.isDone)},null,8,["icon-name","disabled","onClick"])):e.createCommentVNode("",!0),e.createElementVNode("input",{id:h.id,value:h.name,readonly:!p.isEditable,class:e.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":h.isDone}]),type:"text",onChange:v=>i(v,h.id),onKeyup:e.withKeys(d,["enter"])},null,42,b5),e.createTextVNode(". "),!p.isTemplate&&p.users?(e.openBlock(),e.createBlock(le,{key:1,value:(y=h.assignee)!=null&&y.id?[h.assignee.id]:[],options:n.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:p.$t("feed.filters.assignee.placeholder"),disabled:!p.isEditable,caret:p.isEditable,onChange:v=>u(v,h.id)},{tag:e.withCtx(({option:v,handleTagRemove:b})=>[e.createVNode(Oe,{"user-name":v.label,"avatar-url":v.avatar,"is-closable":!0,onClose:g=>b(v,g)},null,8,["user-name","avatar-url","onClose"])]),_:2},1032,["value","options","placeholder","disabled","caret","onChange"])):e.createCommentVNode("",!0),p.isEditable?(e.openBlock(),e.createBlock(G,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>c(h.id)},null,8,["onClick"])):e.createCommentVNode("",!0)])}),128))]),e.createElementVNode("div",k5,[p.isEditable?(e.openBlock(),e.createBlock(G,{key:0,label:p.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:r},null,8,["label"])):e.createCommentVNode("",!0)])]))}});const $5=["onDrop","onDragenter","onDragover","onDragleave"],E5={class:"ao-files__placeholder"},B5={key:0,class:"ao-files__list"},V5=["href"],S5={class:"ao-file__title"},N5={key:0},M5={class:"ao-files__input"},T5={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},A5={class:"ao-button__label"},O5={class:"ao-files__dropzone"},I5={class:"ao-files__dropzone-label"},D5=e.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove"],setup(a,{emit:t}){const o=a,s=d=>{t("remove",d)},n=d=>{const p=d.target,m=Array.from(p.files??[]);t("add",m)},r=["dragenter","dragover","dragleave","drop"];e.onMounted(()=>{r.forEach(d=>{document.body.addEventListener(d,p=>p.preventDefault())})}),e.onUnmounted(()=>{r.forEach(d=>{document.body.removeEventListener(d,p=>p.preventDefault())})});const i=e.ref(!1);function l(){o.isEditable&&(i.value=!0)}function c(){i.value=!1}e.watch(i,d=>{t("toggleIsDropActive",d)});function u(d){var m;c();const p=Array.from(((m=d.dataTransfer)==null?void 0:m.files)||[]);d.dataTransfer&&t("add",p)}return(d,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":i.value}]),onDrop:e.withModifiers(u,["prevent"]),onDragenter:e.withModifiers(l,["prevent"]),onDragover:e.withModifiers(l,["prevent"]),onDragleave:e.withModifiers(c,["prevent"])},[e.renderSlot(d.$slots,"default",{},()=>[e.createElementVNode("span",E5,e.toDisplayString(d.$t("activity.attachment.placeholder.resting")),1)]),d.attachments?(e.openBlock(),e.createElementBlock("ul",B5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.attachments,m=>(e.openBlock(),e.createElementBlock("li",{key:m.id,class:"ao-file"},[e.createElementVNode("a",{class:"ao-file__link",href:m.url,target:"_blank",rel:"noopener noreferrer"},[e.createVNode(J,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),e.createElementVNode("span",S5,e.toDisplayString(m.name),1)],8,V5),d.isEditable?(e.openBlock(),e.createBlock(G,{key:0,class:"ao-files__delete-button","icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round",onClick:()=>s(m)},null,8,["onClick"])):e.createCommentVNode("",!0)]))),128)),d.isEditable?(e.openBlock(),e.createElementBlock("li",N5,[e.createElementVNode("label",M5,[e.createElementVNode("div",T5,[e.createVNode(J,{name:"Add",size:"sm"}),e.createElementVNode("span",A5,e.toDisplayString(d.$t("activity.attachment.button.resting")),1)]),e.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:n},null,32)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",O5,[e.createElementVNode("span",I5,e.toDisplayString(d.$t("activity.attachment.placeholder.active")),1)],512),[[e.vShow,i.value]])],42,$5))}});const L5={class:"ao-comment"},P5={class:"ao-comment__created-at"},H5={class:"ao-comment__body"},R5={class:"ao-comment__content-wrapper"},j5={key:0,class:"ao-comment__content"},U5=["rows"],F5=["onClick"],z5={key:1,class:"ao-comment__footer"},Z5=e.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(a,{emit:t}){const o=a,s=e.computed(()=>{const B=o.user;return B?`${B==null?void 0:B.firstName} ${B==null?void 0:B.lastName}`:null}),n=e.ref(null),r=e.ref(o.content),{isEditing:i,toggleIsEditing:l,onUpdate:c,onDiscard:u}=an(n),d=e.computed(()=>{const B=o.editedAt&&Lt(o.editedAt),E=Lt(o.createdAt),N=new Date,D=B??E;return D&&M0(D,N)});e.computed(()=>i.value?"textarea":"p");const p=u(),m=c(B=>{t("edit",B)}),h=()=>{t("remove")},f=e.ref(2);e.onUpdated(()=>{e.nextTick(()=>{var B;if(!i.value){const E=(B=n.value)==null?void 0:B.getClientRects().length;f.value=E||2}})});const{showMentionList:y,mentionListPosition:v,filteredUsers:b,handleInput:g,handleKeydown:C,selectUserMention:_}=En(n,r,e.toRef(o,"mentionableUsers"));return(B,E)=>{var N;return e.openBlock(),e.createElementBlock("li",L5,[s.value?(e.openBlock(),e.createBlock(Oe,{key:0,"avatar-url":(N=B.user)==null?void 0:N.avatarUrl,"user-name":s.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):e.createCommentVNode("",!0),e.createElementVNode("span",P5,e.toDisplayString(d.value),1),e.createElementVNode("div",H5,[e.createElementVNode("div",R5,[e.unref(i)?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,ref_key:"commentContent",ref:n,class:"ao-comment__content","onUpdate:modelValue":E[0]||(E[0]=D=>r.value=D),rows:f.value,onInput:E[1]||(E[1]=(...D)=>e.unref(g)&&e.unref(g)(...D)),onKeydown:E[2]||(E[2]=(...D)=>e.unref(C)&&e.unref(C)(...D)),onKeyup:[E[3]||(E[3]=e.withKeys((...D)=>e.unref(p)&&e.unref(p)(...D),["esc"])),E[4]||(E[4]=e.withKeys(e.withModifiers((...D)=>e.unref(m)&&e.unref(m)(...D),["ctrl"]),["enter"]))]},null,40,U5)),[[e.vModelText,r.value]]):(e.openBlock(),e.createElementBlock("p",j5,e.toDisplayString(B.content),1)),e.unref(y)&&e.unref(b).length>0?(e.openBlock(),e.createElementBlock("ul",{key:2,class:"mention-list",style:e.normalizeStyle({top:e.unref(v).top+"px",left:e.unref(v).left+"px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(b),D=>(e.openBlock(),e.createElementBlock("li",{key:D.id,onClick:j=>e.unref(_)(D.name)}," @"+e.toDisplayString(D.name),9,F5))),128))],4)):e.createCommentVNode("",!0)])]),B.isEditable?(e.openBlock(),e.createElementBlock("div",z5,[e.unref(i)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(G,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:e.unref(p)},null,8,["onClick"]),e.createVNode(G,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:e.unref(m)},null,8,["onClick"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(G,{label:B.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:h},null,8,["label"]),e.createVNode(G,{label:B.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:e.unref(l)},null,8,["label","onClick"])],64))])):e.createCommentVNode("",!0)])}}});const x5={class:"ao-comments__header"},W5=["onSubmit"],q5=["placeholder"],Y5={class:"ao-comments__form-submit"},K5={key:0,class:"ao-comments__list"},G5=["onClick"],X5=e.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(a,{emit:t}){const o=a,s=e.computed(()=>(o.comments||[]).toSorted((_,B)=>y2(Lt(_.createdAt),Lt(B.createdAt)))),n=C=>o.users.find(B=>B.id===C),r=e.ref();e.nextTick(()=>{r.value&&(r.value.scrollTop=r.value.scrollHeight)});const i=e.toRef(o.newComment),l=e.computed({get(){return i.value},set(C){i.value=C}}),c=()=>{const C=i.value.trim();C&&(t("createComment",{authorId:o.userId,message:C,mentionedUserIds:g(C)}),i.value="")},u=(C,_)=>{t("updateComment",{id:C,message:_,mentionedUserIds:g(_)})},d=C=>{t("removeComment",{id:C})},p=e.ref(),{showMentionList:m,mentionListPosition:h,filteredUsers:f,handleInput:y,handleKeydown:v,selectUserMention:b,getMentionedUserIds:g}=En(p,l,e.toRef(o,"users"));return(C,_)=>{var B;return e.openBlock(),e.createElementBlock("div",{ref_key:"commentsContainer",ref:r,class:"ao-comments"},[e.createElementVNode("div",x5,[e.createElementVNode("form",{class:"ao-comments__form",onSubmit:e.withModifiers(c,["prevent"])},[e.withDirectives(e.createElementVNode("textarea",{ref_key:"textareaRef",ref:p,"onUpdate:modelValue":_[0]||(_[0]=E=>l.value=E),rows:"2",class:"ao-field__textarea ao-comments__form-textarea",placeholder:C.$t("activity.comment.label"),onInput:_[1]||(_[1]=(...E)=>e.unref(y)&&e.unref(y)(...E)),onKeydown:_[2]||(_[2]=(...E)=>e.unref(v)&&e.unref(v)(...E))},null,40,q5),[[e.vModelText,l.value,void 0,{trim:!0}]]),e.createElementVNode("div",Y5,[e.createVNode(G,{type:"submit","icon-name":"SendRounded",color:"primary",variant:"solid",corners:"round",size:"sm"})])],40,W5)]),((B=s.value)==null?void 0:B.length)>0?(e.openBlock(),e.createElementBlock("ul",K5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,E=>(e.openBlock(),e.createBlock(Z5,{key:E.id,user:n(E.author.id),content:E.message,"created-at":E.createdAt,"edited-at":E.updatedAt,"is-editable":E.author.id===C.userId,"mentionable-users":C.users,class:"ao-comment",onEdit:N=>u(E.id,N),onRemove:()=>d(E.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):e.createCommentVNode("",!0),e.unref(m)&&e.unref(f).length>0?(e.openBlock(),e.createElementBlock("ul",{key:1,class:"mention-list",style:e.normalizeStyle({top:e.unref(h).top+"px",left:e.unref(h).left+"px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),E=>(e.openBlock(),e.createElementBlock("li",{key:E.id,onClick:N=>e.unref(b)(E.name)}," @"+e.toDisplayString(E.name),9,G5))),128))],4)):e.createCommentVNode("",!0)],512)}}});const zn=e.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(a,{emit:t}){const o=a,s=()=>{t("update:modelValue",!o.modelValue)};return(n,r)=>(e.openBlock(),e.createBlock(G,{color:n.modelValue?n.color:e.unref(Ja).NEUTRAL,"icon-position":"start",onClick:r[0]||(r[0]=()=>s())},null,8,["color"]))}}),Q5=e.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:a=>["underline"].includes(a)}},emits:["update:modelValue"],methods:{selectTab(a){this.$emit("update:modelValue",a)}}});const J5=["onClick"],e7={class:"tab-button__label"},t7={key:0,class:"tab-button__badge"};function a7(a,t,o,s,n,r){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":a.variant==="underline"}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.tabs,i=>(e.openBlock(),e.createElementBlock("button",{key:i.value,class:e.normalizeClass(["tab-button",{"tab-button--active":i.value===a.modelValue},{"tab-button--underline":a.variant==="underline"}]),type:"button",onClick:l=>a.selectTab(i.value)},[e.createElementVNode("span",e7,e.toDisplayString(i.label),1),i.count!==void 0&&i.count>0?(e.openBlock(),e.createElementBlock("span",t7,e.toDisplayString(i.count),1)):e.createCommentVNode("",!0)],10,J5))),128))],2)}const qt=H(Q5,[["render",a7],["__scopeId","data-v-0e91b31f"]]),o7={class:"ao-activity-details"},n7={class:"ao-activity-details__main"},s7={class:"ao-activity-details__header"},i7={key:1,class:"ao-activity__category"},r7={class:"ao-feed__activity-details__header"},l7={key:0,class:"ao-field ao-feed__activity-details__project"},c7={class:"ao-field__label"},d7={key:1,class:"ao-field ao-feed__activity-details__project"},u7={class:"ao-field__label"},p7={class:"ao-activity-details__content"},m7={class:"ao-activity-details__tab-content"},f7={class:"ao-fieldset"},v7={class:"ao-field__row"},h7=["readonly"],C7={class:"ao-activity-details__tab-content"},g7={class:"ao-fieldset"},_7={class:"ao-fieldset__body"},y7={class:"ao-activity-details__tab-content"},b7={key:0,class:"ao-fieldset"},k7={class:"ao-activity-details__aside"},w7={class:"ao-activity-details__close-button"},$7={key:0,class:"ao-activity-details__aside-section"},E7={class:"ao-field"},B7={class:"ao-field__label"},V7={class:"ao-activity-details__aside-section"},S7={class:"ao-field ao-field--multiselect"},N7={class:"assignee-inline"},M7={class:"ao-field__label"},T7={class:"ao-activity-details__aside-section"},A7={key:0,class:"ao-field__row"},O7={class:"ao-field"},I7={class:"ao-field__label"},D7=["readonly"],L7={class:"ao-activity-details__aside-section"},P7={class:"ao-field__row"},H7={class:"ao-field ao-field--inline"},R7={class:"ao-field__label"},j7=["readonly"],U7={class:"ao-field__row"},F7={class:"ao-field ao-field--inline"},z7={class:"ao-field__label"},Z7={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},x7={class:"ao-activity-details__aside-section"},W7={class:"ao-fieldset ao-activity-details__aside-section"},q7={class:"ao-fieldset__title"},Y7={class:"ao-fieldset__body"},K7={class:"ao-field__row"},G7={class:"ao-field ao-field--multiselect"},X7={class:"ao-field__label"},Q7={class:"ao-field__row"},J7={class:"ao-field ao-field--multiselect"},ef={class:"ao-field__label"},vo=e.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(a,{emit:t}){const o=a,{t:s}=De(),n=e.ref("description"),r=e.computed(()=>{var k,M;return[{label:s("activity.description.label")||"Description",value:"description"},{label:s("activity.tasks.title")||"Checklist",value:"checklist",count:((k=o.activity.tasks)==null?void 0:k.length)??0},{label:s("activity.comments.title")||"Commentaires",value:"comments",count:((M=o.activity.comments)==null?void 0:M.length)??0}]}),i=e.computed(()=>{var k;return o.isEditable===!0?!0:o.userId&&o.isEditable==="only-own"?o.userId===((k=o.activity.assignee)==null?void 0:k.id):!1}),l=k=>{t("update:activity",{id:o.activity.id,name:k})},c=e.computed({get(){return o.activity.description??""},set(k){t("update:activity",{id:o.activity.id,description:k})}}),u=e.computed({get(){return o.activity.estimation??0},set(k){t("update:activity",{id:o.activity.id,estimation:k})}}),d=e.computed({get(){var M;const k=(M=o.timeTrackingData)==null?void 0:M[o.activity.id];return(k==null?void 0:k.timeSpent)??0},set(){}}),p=e.computed(()=>{var M;return((M=o.activity.project)==null?void 0:M.estimationUnit)==="days"?"d":"h"}),m=e.computed(()=>{var M;const k=(M=o.activity.project)==null?void 0:M.estimationUnit;return ba(d.value,k)}),h=e.computed({get(){return o.activity.important??!1},set(k){t("update:activity",{id:o.activity.id,important:k})}});e.computed({get(){return o.activity.private??!1},set(k){t("update:activity",{id:o.activity.id,private:k})}});const f=e.computed({get(){return o.activity.deadline},set(k){t("update:activity",{id:o.activity.id,deadline:k})}});e.computed(()=>{var k;return(k=o.activityTypes)==null?void 0:k.map(M=>({label:M.name,value:M.id}))}),e.computed({get(){var k;return(k=o.activity.type)==null?void 0:k.id},set(k){t("update:activity",{id:o.activity.id,typeId:k})}});const y=e.computed(()=>o.templateActivities.filter(k=>k.id!==o.activity.id).map(k=>({label:k.name,value:k.id}))),v=e.computed({get(){var k;return(k=o.activity.dependingOn)==null?void 0:k.map(M=>M.id)},set(k){k&&t("update:activity",{id:o.activity.id,dependingOn:k})}}),b=e.computed(()=>y.value.map(k=>{var M;return{...k,disabled:(M=o.activity.blocking)==null?void 0:M.some(I=>I.id===k.value)}})),g=e.computed({get(){var k;return(k=o.activity.blocking)==null?void 0:k.map(M=>M.id)},set(k){k&&t("update:activity",{id:o.activity.id,blocking:k})}}),C=e.computed(()=>y.value.map(k=>{var M;return{...k,disabled:(M=o.activity.dependingOn)==null?void 0:M.some(I=>I.id===k.value)}})),_=k=>{t("addSubtask",k)},B=k=>{t("updateSubtask",k)},E=k=>{t("deleteSubtask",k)};function N(){o.userId?F.value=[o.userId]:console.error("Failed assigning to self: userId is missing")}function D(k){F.value=[k]}const j=e.computed(()=>{var M;const k=new Map;return(M=o.users)==null||M.forEach(I=>{k.has(I.id)||k.set(I.id,I)}),Array.from(k.values()).map(I=>({label:`${I.firstName} ${I.lastName}`,value:I.id,avatar:I.avatarUrl}))}),F=e.computed({get(){var k,M;return(k=o.activity.assignee)!=null&&k.id?[(M=o.activity.assignee)==null?void 0:M.id]:[]},set(k){t("update:activity",{id:o.activity.id,assigneeId:k[0]??null})}}),Z=k=>{t("addFiles",{activityId:o.activity.id,files:k})},O=k=>{t("removeFile",{activityId:o.activity.id,file:k})},U=e.computed(()=>o.projects.map(k=>({value:k.id,label:k.name}))),K=e.computed(()=>{var M,I,T;const k=(T=(I=(M=o.activity)==null?void 0:M.project)==null?void 0:I.phases)==null?void 0:T.reduce((R,x)=>[...R,...x.milestones],[]);return k==null?void 0:k.map(R=>({value:R.id,label:R.name}))}),W=k=>{o.activity&&t("update:activity",{id:o.activity.id,projectId:k})},z=k=>{o.activity&&t("update:activity",{id:o.activity.id,milestoneId:k})},S=e.computed(()=>{var k;return(k=o.statuses)==null?void 0:k.map(M=>({value:M.id,label:M.name}))}),$=k=>{t("update:activity",{id:o.activity.id,statusId:k})},L=k=>{t("addComment",{...k,activityId:o.activity.id})},V=k=>{t("updateComment",k)},P=k=>{t("removeComment",k)};e.computed(()=>{var k,M;return((k=o.activity.createdBy)==null?void 0:k.firstName)&&((M=o.activity.createdBy)==null?void 0:M.lastName)&&`${o.activity.createdBy.firstName} ${o.activity.createdBy.lastName}`});function q(){const k=window.location.origin,M=o.activity.slug,I=`${k}/activity-feed/slug/${M}`;navigator.clipboard.writeText(I).then(()=>{console.log(`Link copied to clipboard: ${I}`),t("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),t("toast","clipboard.copy.error","error")})}return(k,M)=>(e.openBlock(),e.createBlock(wa,{onClose:M[9]||(M[9]=I=>k.$emit("close"))},{default:e.withCtx(()=>{var I,T,R;return[e.createElementVNode("div",o7,[e.createElementVNode("div",n7,[e.createElementVNode("div",s7,[k.activity.slug?(e.openBlock(),e.createBlock(Ot,{key:0,label:k.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:q},null,8,["label"])):e.createCommentVNode("",!0),k.breadcrumbs?(e.openBlock(),e.createElementBlock("div",i7,e.toDisplayString(k.breadcrumbs),1)):e.createCommentVNode("",!0),e.createVNode(se,{title:k.activity.name||"",level:4,"is-editable":i.value,"onUpdate:title":l},null,8,["title","is-editable"]),e.createElementVNode("div",r7,[U.value?(e.openBlock(),e.createElementBlock("label",l7,[e.createElementVNode("span",c7,e.toDisplayString(k.$t("activity.project.label")),1),e.createVNode(le,{options:U.value,value:(I=k.activity.project)==null?void 0:I.id,searchable:!0,disabled:!i.value,caret:i.value,onChange:W},null,8,["options","value","disabled","caret"])])):e.createCommentVNode("",!0),K.value?(e.openBlock(),e.createElementBlock("label",d7,[e.createElementVNode("span",u7,e.toDisplayString(k.$t("activity.milestone.label")),1),e.createVNode(le,{options:K.value,value:(T=k.activity.milestone)==null?void 0:T.id,searchable:!0,disabled:!i.value,caret:i.value,onChange:z},null,8,["options","value","disabled","caret"])])):e.createCommentVNode("",!0)]),e.renderSlot(k.$slots,"header")]),e.createElementVNode("div",p7,[e.createVNode(qt,{modelValue:n.value,"onUpdate:modelValue":M[0]||(M[0]=x=>n.value=x),tabs:r.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),e.withDirectives(e.createElementVNode("div",m7,[e.createElementVNode("fieldset",f7,[e.createElementVNode("div",v7,[e.createVNode(D5,{attachments:k.activity.attachments,"is-editable":k.attachmentEnabled&&i.value&&k.isTemplate!==!0&&!!k.userId,onAdd:Z,onRemove:O},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":M[1]||(M[1]=x=>c.value=x),readonly:!i.value,rows:"6",class:"ao-activity-details__description-textarea"},null,8,h7),[[e.vModelText,c.value,void 0,{lazy:!0,trim:!0}]])]),_:1},8,["attachments","is-editable"])])])],512),[[e.vShow,n.value==="description"]]),e.withDirectives(e.createElementVNode("div",C7,[e.createElementVNode("fieldset",g7,[e.createElementVNode("div",_7,[e.createVNode(w5,{class:"ao-activity-details__tasks ao-field__row",tasks:k.activity.tasks||[],"activity-id":k.activity.id,users:k.users,"is-checkable":k.isTaskCheckable,"is-editable":i.value,"is-template":k.isTemplate,onAdd:_,onUpdate:B,onDelete:E},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[e.vShow,n.value==="checklist"]]),e.withDirectives(e.createElementVNode("div",y7,[k.isTemplate!==!0&&k.userId?(e.openBlock(),e.createElementBlock("div",b7,[e.createVNode(X5,{comments:k.activity.comments,users:k.users,"user-id":k.userId,onCreateComment:L,onUpdateComment:V,onRemoveComment:P},null,8,["comments","users","user-id"])])):e.createCommentVNode("",!0)],512),[[e.vShow,n.value==="comments"]])])]),e.createElementVNode("div",k7,[e.createElementVNode("div",w7,[e.createVNode(J,{name:"CloseRounded",onClick:M[2]||(M[2]=x=>k.$emit("close"))})]),S.value?(e.openBlock(),e.createElementBlock("div",$7,[e.createElementVNode("label",E7,[e.createElementVNode("span",B7,e.toDisplayString(k.$t("activity.status.label")),1),e.createVNode(le,{class:"ao-activity-details__multiselect",options:S.value,value:(R=k.activity.status)==null?void 0:R.id,"can-clear":!1,"can-deselect":!1,disabled:!i.value,caret:i.value,onChange:$},null,8,["options","value","disabled","caret"])])])):e.createCommentVNode("",!0),e.createElementVNode("div",V7,[e.createElementVNode("div",S7,[e.createElementVNode("div",N7,[e.createElementVNode("span",M7,e.toDisplayString(k.$t("activity.assignee.label")),1),e.createVNode(G,{label:k.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:N},null,8,["label"])]),e.createVNode(le,{modelValue:F.value,"onUpdate:modelValue":M[3]||(M[3]=x=>F.value=x),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:j.value,"close-on-select":!0,searchable:!0,placeholder:k.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!i.value,caret:i.value,onSelect:D},{tag:e.withCtx(({option:x,handleTagRemove:ie})=>[e.createVNode(Oe,{"user-name":x.label,"avatar-url":x.avatar,"is-closable":!0,onClose:Ke=>ie(x,Ke)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),e.createElementVNode("div",T7,[k.isTemplate!==!0&&k.userId?(e.openBlock(),e.createElementBlock("div",A7,[e.createElementVNode("label",O7,[e.createElementVNode("span",I7,e.toDisplayString(k.$t("activity.deadline.label")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":M[4]||(M[4]=x=>f.value=x),readonly:!i.value,class:"ao-field__input",type:"date"},null,8,D7),[[e.vModelText,f.value,void 0,{lazy:!0}]])])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",L7,[e.createElementVNode("div",P7,[e.createElementVNode("label",H7,[e.createElementVNode("span",R7,e.toDisplayString(k.$t("activity.estimation.label"))+" ("+e.toDisplayString(p.value)+")",1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":M[5]||(M[5]=x=>u.value=x),readonly:!i.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,j7),[[e.vModelText,u.value,void 0,{lazy:!0,number:!0}]])])]),e.createElementVNode("div",U7,[e.createElementVNode("label",F7,[e.createElementVNode("span",z7,e.toDisplayString(k.$t("activity.timeSpent.label"))+" ("+e.toDisplayString(p.value)+")",1),e.createElementVNode("span",Z7,e.toDisplayString(m.value),1)])])]),e.createElementVNode("div",x7,[e.createVNode(zn,{modelValue:h.value,"onUpdate:modelValue":M[6]||(M[6]=x=>h.value=x),modelModifiers:{lazy:!0},label:k.$t("activity.important.label"),disabled:!i.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),e.createElementVNode("fieldset",W7,[e.createElementVNode("div",q7,[e.createVNode(J,{name:"FlowsheetOutlineRounded"}),e.createVNode(se,{level:4,title:k.$t("activity.dependencies.title")},null,8,["title"])]),e.createElementVNode("div",Y7,[e.createElementVNode("div",K7,[e.createElementVNode("label",G7,[e.createElementVNode("span",X7,e.toDisplayString(k.$t("activity.dependingOn.label")),1),e.createVNode(le,{modelValue:v.value,"onUpdate:modelValue":M[7]||(M[7]=x=>v.value=x),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:b.value,disabled:!i.value,caret:i.value},null,8,["modelValue","options","disabled","caret"])])]),e.createElementVNode("div",Q7,[e.createElementVNode("label",J7,[e.createElementVNode("span",ef,e.toDisplayString(k.$t("activity.blocking.label")),1),e.createVNode(le,{modelValue:g.value,"onUpdate:modelValue":M[8]||(M[8]=x=>g.value=x),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:C.value,disabled:!i.value,caret:i.value},null,8,["modelValue","options","disabled","caret"])])])])]),e.renderSlot(k.$slots,"default",{activity:k.activity})])])]}),_:3}))}});const tf=e.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(a,{emit:t}){const o=a,s=e.toRef(o.rule.itemType||ee.ACTIVITIES),n=e.computed({get(){return s.value},set(b){s.value=b,t("update:rule",{...o.rule,itemType:b,subItemId:void 0})}}),r=e.computed(()=>Object.values(ee)),i=e.computed({get(){return o.rule.subItemId},set(b){t("update:rule",{...o.rule,subItemId:b,itemType:o.rule.itemType||n.value})}}),l=e.computed(()=>{var g;return!o.templateActivities||!o.templateMilestones||!o.templatePhases?null:(g={[ee.ACTIVITIES]:o.templateActivities,[ee.MILESTONES]:o.templateMilestones,[ee.PHASES]:o.templatePhases}[s.value])==null?void 0:g.map(C=>({value:C.id,label:C.name}))}),c=e.toRef(o.rule.comparator),u=e.computed({get(){return c.value},set(b){t("update:rule",{...o.rule,comparator:b})}}),d=e.computed(()=>Object.values(nn)),p=e.toRef(o.rule.trigger),m=e.computed({get(){return p.value},set(b){t("update:rule",{...o.rule,trigger:b})}}),h=e.computed(()=>Object.values(sn)),f=e.computed({get(){return o.rule.duration},set(b){t("update:rule",{...o.rule,duration:b})}}),y=e.computed({get(){return o.rule.durationUnit},set(b){t("update:rule",{...o.rule,durationUnit:b})}}),v=e.computed(()=>Object.values(rn));return(b,g)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.tagName),{class:"ao-rule-line"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ue),{modelValue:n.value,"onUpdate:modelValue":g[0]||(g[0]=C=>n.value=C),options:r.value},null,8,["modelValue","options"]),e.createVNode(e.unref(Ue),{modelValue:i.value,"onUpdate:modelValue":g[1]||(g[1]=C=>i.value=C),options:l.value},null,8,["modelValue","options"]),e.createVNode(e.unref(Ue),{modelValue:m.value,"onUpdate:modelValue":g[2]||(g[2]=C=>m.value=C),options:h.value},null,8,["modelValue","options"]),e.createVNode(e.unref(Ue),{modelValue:u.value,"onUpdate:modelValue":g[3]||(g[3]=C=>u.value=C),options:d.value},null,8,["modelValue","options"]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":g[4]||(g[4]=C=>f.value=C),type:"number",min:"0"},null,512),[[e.vModelText,f.value,void 0,{number:!0}]]),e.createVNode(e.unref(Ue),{modelValue:y.value,"onUpdate:modelValue":g[5]||(g[5]=C=>y.value=C),options:v.value},null,8,["modelValue","options"]),e.createVNode(G,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:g[6]||(g[6]=C=>b.$emit("close"))})]),_:1}))}});const af={class:"ao-template-rules__body"},of={class:"ao-template-rules__list"},nf=e.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(a,{emit:t}){const o=()=>{t("addRule")},s=n=>{t("removeRule",n)};return(n,r)=>(e.openBlock(),e.createBlock(wa,null,{header:e.withCtx(()=>[e.createVNode(se,{title:n.$t("template.rules.title"),level:2},null,8,["title"])]),default:e.withCtx(()=>[e.createElementVNode("div",af,[e.createElementVNode("ul",of,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.rules,i=>(e.openBlock(),e.createBlock(tf,{key:i.id,rule:i,"template-phases":n.templatePhases,"template-milestones":n.templateMilestones,"template-activities":n.templateActivities,class:"ao-template-rule",onClose:()=>s(i.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),e.createVNode(qe,{label:n.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function nt(a,t,o){const s=a.length,n=a.at(-1),r=n?ne.LexoRank.parse(n.rank).genNext():ne.LexoRank.middle();return{name:o(`template.defaultName.${t}`,{idx:s+1}),rank:r.format()}}const sf={key:0,class:"ao-template-details"},rf={class:"ao-template-details__body"},lf={class:"ao-template-details__cols"},cf={class:"ao-template-details__col"},df={class:"ao-list__footer"},uf={class:"ao-template-details__col"},pf={class:"ao-template-details__col"},Zn=e.defineComponent({__name:"AoTemplateDetails",props:{templateId:{},templates:{},users:{},phaseId:{},milestoneId:{},activityId:{},activityTypes:{}},emits:["addItem","removeItem","updateItem","addRule","removeRule","addFiles","removeFile"],setup(a,{emit:t}){const o=a,{t:s}=De(),n=e.computed(()=>{var S;return(S=o.templates)==null?void 0:S.find($=>$.id===o.templateId)}),r=e.ref(!1);e.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>r.value=!1),e.watch(()=>{var S;return(S=n.value)==null?void 0:S.phases},(S,$)=>{r.value&&Ne(S,$)});const i=e.computed(()=>{var S,$;return($=(S=n==null?void 0:n.value)==null?void 0:S.phases)==null?void 0:$.find(L=>L.id===o.phaseId)});e.watch(()=>{var S;return(S=i.value)==null?void 0:S.milestones},(S,$)=>{r.value&&Ne(S,$)});const l=e.computed(()=>{var S,$;return($=(S=i.value)==null?void 0:S.milestones)==null?void 0:$.find(L=>L.id===o.milestoneId)});e.watch(()=>{var S;return(S=l.value)==null?void 0:S.activities},(S,$)=>{r.value&&Ne(S,$)});const c=e.computed(()=>{var S,$;return(($=(S=n.value)==null?void 0:S.phases)==null?void 0:$.reduce((L,V)=>{const P=V.milestones||[];return[...L,...P]},[]))||[]}),u=e.computed(()=>{var S,$;return(($=(S=n.value)==null?void 0:S.phases)==null?void 0:$.reduce((L,V)=>{const q=(V.milestones||[]).reduce((k,M)=>M.activities?[...k,...M.activities]:k,[]);return[...L,...q]},[]))||[]}),d=e.computed(()=>{var S,$;return($=(S=l.value)==null?void 0:S.activities)==null?void 0:$.find(L=>L.id===o.activityId)}),p=e.computed(()=>{var S;return((S=n.value)==null?void 0:S.name)||o.templateId}),m=()=>{if(!n.value)return;const{name:S,rank:$}=nt(n.value.phases,"phase",s);r.value=!0,t("addItem",{type:ee.PHASES,templateId:o.templateId,item:{name:S,rank:$}})},h=S=>{t("updateItem",{templateId:o.templateId,id:o.templateId,itemType:ee.TEMPLATES,data:{name:S}})},f=S=>{t("removeItem",{itemType:ee.PHASES,templateId:o.templateId,data:{id:S}})},y=(S,$)=>{t("updateItem",{templateId:o.templateId,id:S,itemType:ee.PHASES,data:{name:$}})},v=S=>{t("updateItem",S)},b=S=>{if(!i.value)return;const{name:$,rank:L}=nt(i.value.milestones,"milestone",s);r.value=!0,t("addItem",{type:ee.MILESTONES,templateId:o.templateId,phaseId:S.phaseId,item:{name:$,rank:L,phaseId:S.phaseId}})},g=S=>{t("removeItem",{itemType:ee.MILESTONES,templateId:o.templateId,phaseId:S.phaseId,data:{id:S.id}})},C=S=>{const{id:$,...L}=S;t("updateItem",{itemType:ee.MILESTONES,id:$,templateId:o.templateId,data:L})},_=S=>{const{milestoneId:$}=S;if(!l.value)return;const{name:L,rank:V}=nt(l.value.activities,"activity",s);r.value=!0,t("addItem",{type:ee.ACTIVITIES,milestoneId:$,templateId:o.templateId,item:{name:L,rank:V,milestoneId:$}})},B=S=>{var $,L;t("removeItem",{itemType:ee.ACTIVITIES,templateId:o.templateId,phaseId:($=i.value)==null?void 0:$.id,milestoneId:(L=l.value)==null?void 0:L.id,data:{id:S.id}})},E=S=>{const{id:$,...L}=S;t("updateItem",{itemType:ee.ACTIVITIES,id:$,templateId:o.templateId,data:L})},N=e.ref(!1),D=()=>{N.value=!N.value},j=()=>{t("addRule",{templateId:o.templateId})},F=S=>{t("removeRule",{id:S,templateId:o.templateId})},Z=S=>{var $;if(S.moved){const L=Zt(S,(($=n.value)==null?void 0:$.phases)??[]);t("updateItem",{itemType:ee.PHASES,id:S.moved.element.id,templateId:o.templateId,data:{rank:L}})}},O=S=>{!i.value||!l.value||!d.value||t("addItem",{type:ee.TASKS,activityId:S.activityId,milestoneId:l.value.id,phaseId:i.value.id,templateId:o.templateId,item:S})},U=S=>{!i.value||!l.value||!d.value||t("updateItem",{itemType:ee.TASKS,id:S.id,templateId:o.templateId,data:S})},K=S=>{!i.value||!l.value||!d.value||t("removeItem",{itemType:ee.TASKS,activityId:d.value.id,milestoneId:l.value.id,phaseId:i.value.id,templateId:o.templateId,data:S})},W=S=>{t("addFiles",S)},z=S=>{t("removeFile",S)};return(S,$)=>{var L,V,P,q,k,M;return n.value?(e.openBlock(),e.createElementBlock("div",sf,[e.createVNode(xt,{"can-go-back":!0,onGoBack:$[1]||($[1]=I=>S.$router.push({name:e.unref(at).TEMPLATES_LIST}))},{primary:e.withCtx(()=>[e.createVNode(se,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":$[0]||($[0]=I=>{h(I)})},null,8,["title"])]),_:1}),e.createElementVNode("div",rf,[e.createElementVNode("ol",lf,[e.createElementVNode("li",cf,[e.createVNode(e.unref(We),{"model-value":n.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:Z},{header:e.withCtx(()=>[e.createVNode(se,{title:S.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:e.withCtx(({element:I})=>{var T;return[e.createVNode(Up,{id:I.id,name:I.name,milestones:I.milestones,"is-active":((T=i.value)==null?void 0:T.id)===I.id,"is-draggable":!0,onClick:R=>S.$router.push({params:{templateId:S.templateId,phaseId:I.id}}),"onUpdate:title":R=>{y(I.id,R)},onRemove:()=>f(I.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:e.withCtx(()=>[e.createElementVNode("div",df,[e.createVNode(qe,{"icon-name":"AddBoxOutlineRounded",label:S.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),e.createElementVNode("li",uf,[i.value?(e.openBlock(),e.createBlock(Zp,{key:0,"template-id":S.templateId,phase:i.value,"milestone-id":(L=l.value)==null?void 0:L.id,onAddMilestone:b,onUpdateMilestone:C,onUpdatePhase:v,onRemoveMilestone:g},null,8,["template-id","phase","milestone-id"])):e.createCommentVNode("",!0)]),e.createElementVNode("li",pf,[i.value&&l.value?(e.openBlock(),e.createBlock(qp,{key:0,"template-id":S.templateId,"phase-id":(V=i.value)==null?void 0:V.id,milestone:l.value,"activity-id":(P=d.value)==null?void 0:P.id,onAddActivity:_,onUpdateActivity:E,onRemoveActivity:B},null,8,["template-id","phase-id","milestone","activity-id"])):e.createCommentVNode("",!0)])])]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[d.value?(e.openBlock(),e.createBlock(vo,{key:0,activity:d.value,"activity-types":S.activityTypes,breadcrumbs:`${n.value.name} / ${(q=i.value)==null?void 0:q.name} / ${(k=l.value)==null?void 0:k.name}`,"milestone-id":(M=l.value)==null?void 0:M.id,"template-activities":u.value,"template-milestones":c.value,"is-template":!0,"is-editable":!0,users:S.users,"onUpdate:activity":$[2]||($[2]=I=>{d.value&&E(I)}),"attachment-enabled":!1,onClose:S.$router.back,onAddSubtask:O,onUpdateSubtask:U,onDeleteSubtask:K,onAddFiles:W,onRemoveFile:z},{default:e.withCtx(I=>[e.renderSlot(S.$slots,"activityDetailsBody",e.normalizeProps(e.guardReactiveProps(I)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):e.createCommentVNode("",!0)])),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[N.value?(e.openBlock(),e.createBlock(nf,{key:0,"template-id":n.value.id,rules:n.value.rules||[],"template-phases":n.value.phases,"template-milestones":c.value,"template-activities":u.value,onClose:D,onAddRule:j,onRemoveRule:F},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}}});const mf={class:"ao-card__content"},ff={key:0,class:"ao-card__header"},vf={class:"ao-card__body"},hf={key:1,class:"ao-card__footer"},Ma=e.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1}},setup(a){return(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tagName),{class:e.normalizeClass(["ao-card",{"ao-card--clickable":t.isClickable}]),style:e.normalizeStyle(t.isSelected?{border:"solid",borderColor:t.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:e.withCtx(()=>[t.withLeftBorder?(e.openBlock(),e.createElementBlock("div",{key:0,class:"ao-card__left-border",style:e.normalizeStyle({backgroundColor:t.color})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",mf,[t.$slots.header?(e.openBlock(),e.createElementBlock("header",ff,[e.renderSlot(t.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",vf,[e.renderSlot(t.$slots,"default")]),t.$slots.footer?(e.openBlock(),e.createElementBlock("footer",hf,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const Ta=e.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(a){const t=a,o=e.computed(()=>typeof t.percentages=="number"?[t.percentages]:t.percentages??[]);return(s,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ao-progress",s.status?`ao-progress--${s.status}`:""]),role:"meter"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["ao-progress__progress"]),style:e.normalizeStyle({width:`${r*100}%`,"--ao-progress-color":s.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}});/*!
|
|
229
2
|
* vue-color-kit v1.0.6
|
|
230
3
|
* (c) 2023
|
|
231
4
|
* @license MIT
|
|
232
|
-
*/function eo(s){let e={r:0,g:0,b:0,a:1};/#/.test(s)?e=hV(s):/rgb/.test(s)?e=yv(s):typeof s=="string"?e=yv(`rgba(${s})`):Object.prototype.toString.call(s)==="[object Object]"&&(e=s);const{r:t,g:i,b:n,a:r}=e,{h:a,s:c,v:d}=fV(e);return{r:t,g:i,b:n,a:r===void 0?1:r,h:a,s:c,v:d}}function Qg(s){const e=document.createElement("canvas"),t=e.getContext("2d"),i=s*2;return e.width=i,e.height=i,t.fillStyle="#ffffff",t.fillRect(0,0,i,i),t.fillStyle="#ccd5db",t.fillRect(0,0,s,s),t.fillRect(s,s,s,s),e}function Bg(s,e,t,i,n,r){const a=s==="l",c=e.createLinearGradient(0,0,a?t:0,a?0:i);c.addColorStop(.01,n),c.addColorStop(.99,r),e.fillStyle=c,e.fillRect(0,0,t,i)}function uV({r:s,g:e,b:t},i){const n=a=>("0"+Number(a).toString(16)).slice(-2),r=`#${n(s)}${n(e)}${n(t)}`;return i?r.toUpperCase():r}function hV(s){s=s.slice(1);const e=t=>parseInt(t,16)||0;return{r:e(s.slice(0,2)),g:e(s.slice(2,4)),b:e(s.slice(4,6))}}function yv(s){return typeof s=="string"?(s=(/rgba?\((.*?)\)/.exec(s)||["","0,0,0,1"])[1].split(","),{r:Number(s[0])||0,g:Number(s[1])||0,b:Number(s[2])||0,a:Number(s[3]?s[3]:1)}):s}function fV({r:s,g:e,b:t}){s=s/255,e=e/255,t=t/255;const i=Math.max(s,e,t),n=Math.min(s,e,t),r=i-n;let a=0;i===n?a=0:i===s?e>=t?a=60*(e-t)/r:a=60*(e-t)/r+360:i===e?a=60*(t-s)/r+120:i===t&&(a=60*(s-e)/r+240),a=Math.floor(a);let c=parseFloat((i===0?0:1-n/i).toFixed(2)),d=parseFloat(i.toFixed(2));return{h:a,s:c,v:d}}var Jg=l.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 s=this.$refs.canvasSaturation,e=this.size,t=s.getContext("2d");s.width=e,s.height=e,t.fillStyle=this.color,t.fillRect(0,0,e,e),Bg("l",t,e,e,"#FFFFFF","rgba(255,255,255,0)"),Bg("p",t,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(s){const{top:e,left:t}=this.$el.getBoundingClientRect(),i=s.target.getContext("2d"),n=a=>{let c=a.clientX-t,d=a.clientY-e;c<0&&(c=0),d<0&&(d=0),c>this.size&&(c=this.size),d>this.size&&(d=this.size),this.slideSaturationStyle={left:c-5+"px",top:d-5+"px"};const u=i.getImageData(Math.min(c,this.size-1),Math.min(d,this.size-1),1,1),[f,p,m]=u.data;this.$emit("selectSaturation",{r:f,g:p,b:m})};n(s);const r=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)}}});const pV={ref:"canvasSaturation"};function mV(s,e,t,i,n,r){return l.openBlock(),l.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=l.withModifiers((...a)=>s.selectSaturation&&s.selectSaturation(...a),["prevent","stop"]))},[l.createVNode("canvas",pV,null,512),l.createVNode("div",{style:s.slideSaturationStyle,class:"slide"},null,4)],32)}Jg.render=mV;Jg.__file="src/color/Saturation.vue";var e2=l.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 s=this.$refs.canvasHue,e=this.width,t=this.height,i=s.getContext("2d");s.width=e,s.height=t;const n=i.createLinearGradient(0,0,0,t);n.addColorStop(0,"#FF0000"),n.addColorStop(.17*1,"#FF00FF"),n.addColorStop(.17*2,"#0000FF"),n.addColorStop(.17*3,"#00FFFF"),n.addColorStop(.17*4,"#00FF00"),n.addColorStop(.17*5,"#FFFF00"),n.addColorStop(1,"#FF0000"),i.fillStyle=n,i.fillRect(0,0,e,t)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(s){const{top:e}=this.$el.getBoundingClientRect(),t=s.target.getContext("2d"),i=r=>{let a=r.clientY-e;a<0&&(a=0),a>this.height&&(a=this.height),this.slideHueStyle={top:a-2+"px"};const c=t.getImageData(0,Math.min(a,this.height-1),1,1),[d,u,f]=c.data;this.$emit("selectHue",{r:d,g:u,b:f})};i(s);const n=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",n)};document.addEventListener("mousemove",i),document.addEventListener("mouseup",n)}}});const gV={ref:"canvasHue"};function vV(s,e,t,i,n,r){return l.openBlock(),l.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=l.withModifiers((...a)=>s.selectHue&&s.selectHue(...a),["prevent","stop"]))},[l.createVNode("canvas",gV,null,512),l.createVNode("div",{style:s.slideHueStyle,class:"slide"},null,4)],32)}e2.render=vV;e2.__file="src/color/Hue.vue";var t2=l.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 s=this.$refs.canvasAlpha,e=this.width,t=this.height,i=this.alphaSize,n=Qg(i),r=s.getContext("2d");s.width=e,s.height=t,r.fillStyle=r.createPattern(n,"repeat"),r.fillRect(0,0,e,t),Bg("p",r,e,t,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(s){const{top:e}=this.$el.getBoundingClientRect(),t=n=>{let r=n.clientY-e;r<0&&(r=0),r>this.height&&(r=this.height);let a=parseFloat((r/this.height).toFixed(2));this.$emit("selectAlpha",a)};t(s);const i=()=>{document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}}});const yV={ref:"canvasAlpha"};function CV(s,e,t,i,n,r){return l.openBlock(),l.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=l.withModifiers((...a)=>s.selectAlpha&&s.selectAlpha(...a),["prevent","stop"]))},[l.createVNode("canvas",yV,null,512),l.createVNode("div",{style:s.slideAlphaStyle,class:"slide"},null,4)],32)}t2.render=CV;t2.__file="src/color/Alpha.vue";var s2=l.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 s=this.$el,e=this.width,t=this.height,i=this.alphaSize,n=Qg(i),r=s.getContext("2d");s.width=e,s.height=t,r.fillStyle=r.createPattern(n,"repeat"),r.fillRect(0,0,e,t),r.fillStyle=this.color,r.fillRect(0,0,e,t)}}});function bV(s,e,t,i,n,r){return l.openBlock(),l.createBlock("canvas")}s2.render=bV;s2.__file="src/color/Preview.vue";var i2=l.defineComponent({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(s){this.isSucking=!1,this.suckColor(s)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(s){s.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(s){const{clientX:e,clientY:t}=s,{top:i,left:n,width:r,height:a}=this.suckerCanvas.getBoundingClientRect(),c=e-n,d=t-i,f=this.suckerCanvas.getContext("2d").getImageData(Math.min(c,r-1),Math.min(d,a-1),1,1);let[p,m,g,y]=f.data;y=parseFloat((y/255).toFixed(2));const v=this.suckerPreview.style;Object.assign(v,{position:"absolute",left:e+20+"px",top:t-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${p}, ${m}, ${g}, ${y})`,zIndex:95}),this.suckerArea.length&&e>=this.suckerArea[0]&&t>=this.suckerArea[1]&&e<=this.suckerArea[2]&&t<=this.suckerArea[3]?v.display="":v.display="none"},suckColor(s){s&&s.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),s.addEventListener("click",e=>{const{clientX:t,clientY:i}=e,{top:n,left:r,width:a,height:c}=s.getBoundingClientRect(),d=t-r,u=i-n,p=s.getContext("2d").getImageData(Math.min(d,a-1),Math.min(u,c-1),1,1);let[m,g,y,v]=p.data;v=parseFloat((v/255).toFixed(2)),this.$emit("selectSucker",{r:m,g,b:y,a:v})}))}}});const wV=l.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),kV={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},_V=l.createVNode("g",{fill:"none","fill-rule":"evenodd"},[l.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[l.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),l.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[l.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function EV(s,e,t,i,n,r){return l.openBlock(),l.createBlock("div",null,[s.isSucking?l.createCommentVNode("v-if",!0):(l.openBlock(),l.createBlock("svg",{key:0,class:[{active:s.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:e[1]||(e[1]=(...a)=>s.openSucker&&s.openSucker(...a))},[wV],2)),s.isSucking?(l.openBlock(),l.createBlock("svg",kV,[_V])):l.createCommentVNode("v-if",!0)])}i2.render=EV;i2.__file="src/color/Sucker.vue";var n2=l.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(s,{emit:e}){return{modelColor:l.computed({get(){return s.color||""},set(r){e("inputColor",r)}}),handleFocus:r=>{e("inputFocus",r)},handleBlur:r=>{e("inputBlur",r)}}}});const TV={class:"color-type"},SV={class:"name"};function xV(s,e,t,i,n,r){return l.openBlock(),l.createBlock("div",TV,[l.createVNode("span",SV,l.toDisplayString(s.name),1),l.withDirectives(l.createVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>s.modelColor=a),class:"value",onFocus:e[2]||(e[2]=(...a)=>s.handleFocus&&s.handleFocus(...a)),onBlur:e[3]||(e[3]=(...a)=>s.handleBlur&&s.handleBlur(...a))},null,544),[[l.vModelText,s.modelColor]])])}n2.render=xV;n2.__file="src/color/Box.vue";var o2=l.defineComponent({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(s,{emit:e}){const t=l.ref(),i=l.ref([]),n=l.ref();s.colorsHistoryKey&&localStorage&&(i.value=JSON.parse(localStorage.getItem(s.colorsHistoryKey))||[]),n.value=Qg(4).toDataURL(),l.onUnmounted(()=>{r(t.value)});function r(c){if(!c)return;const d=i.value||[],u=d.indexOf(c);u>=0&&d.splice(u,1),d.length>=8&&(d.length=7),d.unshift(c),i.value=d||[],localStorage&&s.colorsHistoryKey&&localStorage.setItem(s.colorsHistoryKey,JSON.stringify(d))}function a(c){e("selectColor",c)}return{setColorsHistory:r,colorsHistory:i,color:t,imgAlphaBase64:n,selectColor:a}}});const MV={class:"colors"},BV={key:0,class:"colors history"};function NV(s,e,t,i,n,r){return l.openBlock(),l.createBlock("div",null,[l.createVNode("ul",MV,[(l.openBlock(!0),l.createBlock(l.Fragment,null,l.renderList(s.colorsDefault,a=>(l.openBlock(),l.createBlock("li",{key:a,class:"item",onClick:c=>s.selectColor(a)},[l.createVNode("div",{style:{background:`url(${s.imgAlphaBase64})`},class:"alpha"},null,4),l.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))]),s.colorsHistory.length?(l.openBlock(),l.createBlock("ul",BV,[(l.openBlock(!0),l.createBlock(l.Fragment,null,l.renderList(s.colorsHistory,a=>(l.openBlock(),l.createBlock("li",{key:a,class:"item",onClick:c=>s.selectColor(a)},[l.createVNode("div",{style:{background:`url(${s.imgAlphaBase64})`},class:"alpha"},null,4),l.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))])):l.createCommentVNode("v-if",!0)])}o2.render=NV;o2.__file="src/color/Colors.vue";var Wr=l.defineComponent({components:{Saturation:Jg,Hue:e2,Alpha:t2,Preview:s2,Sucker:i2,Box:n2,Colors:o2},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 uV(this.rgba,!0)}},created(){Object.assign(this,eo(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(s){const{r:e,g:t,b:i,h:n,s:r,v:a}=eo(s);Object.assign(this,{r:e,g:t,b:i,h:n,s:r,v:a}),this.setText()},handleFocus(s){this.$emit("inputFocus",s)},handleBlur(s){this.$emit("inputBlur",s)},selectHue(s){const{r:e,g:t,b:i,h:n,s:r,v:a}=eo(s);Object.assign(this,{r:e,g:t,b:i,h:n,s:r,v:a}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(s){this.a=s,this.setText()},inputHex(s){const{r:e,g:t,b:i,a:n,h:r,s:a,v:c}=eo(s);Object.assign(this,{r:e,g:t,b:i,a:n,h:r,s:a,v:c}),this.modelHex=s,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(s){const{r:e,g:t,b:i,a:n,h:r,s:a,v:c}=eo(s);Object.assign(this,{r:e,g:t,b:i,a:n,h:r,s:a,v:c}),this.modelHex=this.hexString,this.modelRgba=s,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(s){this.$emit("openSucker",s)},selectSucker(s){const{r:e,g:t,b:i,a:n,h:r,s:a,v:c}=eo(s);Object.assign(this,{r:e,g:t,b:i,a:n,h:r,s:a,v:c}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(s){const{r:e,g:t,b:i,a:n,h:r,s:a,v:c}=eo(s);Object.assign(this,{r:e,g:t,b:i,a:n,h:r,s:a,v:c}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const LV={class:"color-set"};function AV(s,e,t,i,n,r){const a=l.resolveComponent("Saturation"),c=l.resolveComponent("Hue"),d=l.resolveComponent("Alpha"),u=l.resolveComponent("Preview"),f=l.resolveComponent("Sucker"),p=l.resolveComponent("Box"),m=l.resolveComponent("Colors");return l.openBlock(),l.createBlock("div",{class:["hu-color-picker",{light:s.isLightTheme}],style:{width:s.totalWidth+"px"}},[l.createVNode("div",LV,[l.createVNode(a,{ref:"saturation",color:s.rgbString,hsv:s.hsv,size:s.hueHeight,onSelectSaturation:s.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),l.createVNode(c,{ref:"hue",hsv:s.hsv,width:s.hueWidth,height:s.hueHeight,onSelectHue:s.selectHue},null,8,["hsv","width","height","onSelectHue"]),l.createVNode(d,{ref:"alpha",color:s.rgbString,rgba:s.rgba,width:s.hueWidth,height:s.hueHeight,onSelectAlpha:s.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),l.createVNode("div",{style:{height:s.previewHeight+"px"},class:"color-show"},[l.createVNode(u,{color:s.rgbaString,width:s.previewWidth,height:s.previewHeight},null,8,["color","width","height"]),s.suckerHide?l.createCommentVNode("v-if",!0):(l.openBlock(),l.createBlock(f,{key:0,"sucker-canvas":s.suckerCanvas,"sucker-area":s.suckerArea,onOpenSucker:s.openSucker,onSelectSucker:s.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),l.createVNode(p,{name:"HEX",color:s.modelHex,onInputColor:s.inputHex,onInputFocus:s.handleFocus,onInputBlur:s.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),l.createVNode(p,{name:"RGBA",color:s.modelRgba,onInputColor:s.inputRgba,onInputFocus:s.handleFocus,onInputBlur:s.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),l.createVNode(m,{color:s.rgbaString,"colors-default":s.colorsDefault,"colors-history-key":s.colorsHistoryKey,onSelectColor:s.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),l.createCommentVNode(" custom options "),l.renderSlot(s.$slots,"default")],6)}Wr.render=AV;Wr.__file="src/color/ColorPicker.vue";Wr.install=s=>{s.component(Wr.name,Wr)};const $V={class:"color-picker-wrapper"},Dm=l.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(s,{emit:e}){const t=s,i=e,n=l.ref(!1),r=l.ref(null),a=l.ref(null),c=l.ref(0),d=l.ref(0),u=async y=>{a.value=y,n.value=!0,await l.nextTick();const v=y.getBoundingClientRect(),C=r.value,w=(C==null?void 0:C.offsetHeight)||300,k=window.innerHeight-v.bottom,_=v.top,M=k<w&&_>w;console.log("pickerHeight = "+w),c.value=M?v.top-w-8:v.bottom+8,d.value=v.left,setTimeout(()=>{window.addEventListener("click",p)},0)},f=l.computed(()=>({position:"fixed",top:`${c.value}px`,left:`${d.value}px`,zIndex:1e3})),p=y=>{const v=y.target;r.value&&!r.value.contains(v)&&(n.value=!1,i("update:color",m.value),window.removeEventListener("click",p))};l.onBeforeUnmount(()=>{window.removeEventListener("click",p)}),l.watch(()=>t.color,y=>{n.value||(m.value=y)});const m=l.ref(t.color),g=y=>{const{r:v,g:C,b:w,a:k}=y.rgba;m.value=`rgba(${v}, ${C}, ${w}, ${k})`};return(y,v)=>(l.openBlock(),l.createElementBlock("div",$V,[l.renderSlot(y.$slots,"clickable",{openPicker:u,bgColor:s.color}),n.value?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:r,class:"color-picker",style:l.normalizeStyle(f.value)},[l.createVNode(l.unref(Wr),{class:"color-picker-box",theme:"light",color:s.color,onChangeColor:g},null,8,["color"])],4)):l.createCommentVNode("",!0)]))}});const OV={class:"ao-card-project-phase__header"},VV={class:"ao-card-project-item__title-line"},RV={key:0,class:"ao-card-project-item-phase__estimation"},IV={class:"ao-card-project-phase__footer"},DV={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},PV={class:"ao-card-project-phase__subitem"},HV={class:"ao-card-project-phase__subitem"},FV={key:0,class:"ao-card-project-phase__secondary"},WV={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},zV=l.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(s,{emit:e}){const t=s,i=e,n=v=>{i("update:title",v)},r=l.computed(()=>{var v;return((v=t.milestones)==null?void 0:v.reduce((C,w)=>{var k;return C+((k=w.activities)==null?void 0:k.reduce((_,M)=>_+(M.estimation||0),0))},0))||0}),a=l.computed(()=>!t.milestones||!t.timeTrackingData?0:t.milestones.reduce((v,C)=>{var w;return v+(((w=C.activities)==null?void 0:w.reduce((k,_)=>{var S;const M=(S=t.timeTrackingData)==null?void 0:S[_.id];return k+((M==null?void 0:M.timeSpent)||0)},0))||0)},0)),c=l.computed(()=>t.estimationUnit==="days"?"d":"h"),d=l.computed(()=>_m(a.value,t.estimationUnit)),u=l.computed(()=>{var v;return(v=t.milestones)==null?void 0:v.length}),f=l.computed(()=>{var v;return(v=t.milestones)==null?void 0:v.filter(C=>C.status===Nc.done).length}),p=l.computed(()=>(f.value||0)/(u.value||1)),m=l.computed({get:()=>t.deadline??"",set:v=>i("update:deadline",v!=null&&v.length?v:null)}),g=l.computed({get:()=>t.color,set:v=>{i("updatePhase",{id:t.id,color:v})}}),y=(v,C)=>{const w=v.target;w.closest("button")||w.closest("input")||w.closest(".ao-title")||C(w)};return(v,C)=>(l.openBlock(),l.createBlock(Dm,{color:g.value,"onUpdate:color":C[2]||(C[2]=w=>g.value=w)},{clickable:l.withCtx(({openPicker:w,bgColor:k})=>[l.createVNode(Rm,{class:"ao-card-project-phase","is-clickable":s.isEditable,color:k,withLeftBorder:!0,onClick:_=>y(_,w)},l.createSlots({default:l.withCtx(()=>[l.createElementVNode("div",VV,[l.createVNode(jt,{id:s.id,class:"ao-card-project-phase__title",title:s.name||"",level:4,"is-editable":s.isEditable,"onUpdate:title":n},null,8,["id","title","is-editable"]),r.value||a.value?(l.openBlock(),l.createElementBlock("span",RV," ("+l.toDisplayString(d.value)+"/"+l.toDisplayString(r.value)+l.toDisplayString(c.value)+")",1)):l.createCommentVNode("",!0)])]),footer:l.withCtx(()=>[l.createElementVNode("div",IV,[u.value?(l.openBlock(),l.createElementBlock("div",DV,[l.createElementVNode("div",PV,[l.createVNode(Ye,{name:"MountainFlagOutlineRounded",size:"sm"}),l.createElementVNode("span",HV,l.toDisplayString(f.value)+" / "+l.toDisplayString(u.value),1)]),l.createVNode(Im,{percentages:p.value,class:"ao-card-project-phase__progress",color:s.color},null,8,["percentages","color"]),v.$slots.secondary?(l.openBlock(),l.createElementBlock("div",FV,[l.renderSlot(v.$slots,"secondary")])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["ao-card-project-phase__footer-row",m.value?"":"ao-card-project-phase__no_deadline"])},[s.isEditable?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:0,"onUpdate:modelValue":C[1]||(C[1]=_=>m.value=_),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[l.vModelText,m.value,void 0,{lazy:!0}]]):l.createCommentVNode("",!0),l.createElementVNode("span",WV,l.toDisplayString(l.unref(Em)(s.deadline)),1)],2)])]),_:2},[s.isEditable?{name:"header",fn:l.withCtx(()=>[l.createElementVNode("div",OV,[l.createVNode(Ee,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:s.active?v.$t("archive"):v.$t("unarchive"),onClick:C[0]||(C[0]=l.withModifiers(()=>s.active?v.$emit("archivePhase",{id:s.id}):v.$emit("unarchivePhase",{id:s.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const jV=l.defineComponent({__name:"AoBadge",props:{color:{}},setup(s){return(e,t)=>(l.openBlock(),l.createElementBlock("span",{class:"aoBadge",style:l.normalizeStyle({backgroundColor:s.color})},null,4))}});const UV={class:"ao-card-project-milestone__default"},qV={class:"ao-title-with-badge-wrapper"},ZV={class:"ao-card-project-item__title-line"},GV={key:0,class:"ao-card-project-item-milestone__estimation"},YV={key:0,class:"ao-card-project-milestone__archive"},KV={class:"ao-card-project-milestone__activities"},XV={class:"ao-card-project-milestone__activities-row"},QV={class:"ao-card-project-milestone__subitem"},JV={class:"ao-card-project-milestone__subitem"},eR={key:1,class:"ao-card-project-milestone__secondary"},tR={class:"ao-card-project-milestone__footer"},sR={key:1,class:"ao-field ao-card-project-milestone__deadline"},iR={class:"ao-field__label"},nR={key:2,class:"ao-card-project-milestone__assignee"},oR=l.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(s,{emit:e}){const t=s,i=e,n=l.computed(()=>{var m;return((m=t.activities)==null?void 0:m.reduce((g,y)=>g+(y.estimation||0),0))||0}),r=l.computed(()=>!t.activities||!t.timeTrackingData?0:t.activities.reduce((m,g)=>{var v;const y=(v=t.timeTrackingData)==null?void 0:v[g.id];return m+((y==null?void 0:y.timeSpent)||0)},0)),a=l.computed(()=>t.estimationUnit==="days"?"d":"h"),c=l.computed(()=>_m(r.value,t.estimationUnit));l.computed(()=>{const m=r.value/60;return m%1===0?m.toString():m.toFixed(2)});const d=l.computed(()=>{var m;return(m=t.activities)==null?void 0:m.length}),u=l.computed(()=>{var m;return(m=t.activities)==null?void 0:m.filter(g=>Ag(g,t.closedStatus)).length}),f=l.computed(()=>(u.value||0)/(d.value||1)),p=m=>{i("updateMilestone",{id:t.id,name:m})};return(m,g)=>(l.openBlock(),l.createBlock(Rm,{class:l.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!s.readonly,"tag-name":"li","is-selected":s.isSelected,color:s.phaseColor},{default:l.withCtx(()=>[l.createElementVNode("div",UV,[l.createElementVNode("div",qV,[l.createVNode(jV,{color:s.color||""},null,8,["color"]),l.createElementVNode("div",ZV,[l.createVNode(jt,{id:s.id,title:s.name||"",level:5,"is-editable":!s.readonly&&s.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":p},null,8,["id","title","is-editable"]),n.value||r.value?(l.openBlock(),l.createElementBlock("span",GV," ("+l.toDisplayString(c.value)+"/"+l.toDisplayString(n.value)+l.toDisplayString(a.value)+")",1)):l.createCommentVNode("",!0)])]),!s.readonly&&s.isEditable?(l.openBlock(),l.createElementBlock("div",YV,[l.createVNode(Ee,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:s.active?m.$t("archive"):m.$t("unarchive"),onClick:g[0]||(g[0]=l.withModifiers(()=>s.active?m.$emit("archiveMilestone",{id:s.id}):m.$emit("unarchiveMilestone",{id:s.id}),["stop"]))},null,8,["label"])])):l.createCommentVNode("",!0)]),l.createElementVNode("div",KV,[l.createElementVNode("div",XV,[d.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("div",QV,[l.createVNode(Ye,{name:"SelectCheckBox",size:"sm"}),l.createElementVNode("span",JV,l.toDisplayString(u.value)+" / "+l.toDisplayString(d.value),1)]),l.createVNode(Im,{percentages:f.value,color:s.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):l.createCommentVNode("",!0),m.$slots.secondary?(l.openBlock(),l.createElementBlock("div",eR,[l.renderSlot(m.$slots,"secondary")])):l.createCommentVNode("",!0)])])]),footer:l.withCtx(()=>[l.createElementVNode("div",tR,[s.important?(l.openBlock(),l.createBlock(Ye,{key:0,name:"FlagRounded",class:l.normalizeClass(s.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):l.createCommentVNode("",!0),s.deadline?(l.openBlock(),l.createElementBlock("label",sR,[l.createElementVNode("span",iR,l.toDisplayString(l.unref(Em)(s.deadline)),1)])):l.createCommentVNode("",!0),s.assignee?(l.openBlock(),l.createElementBlock("div",nR,[l.createVNode(ji,{"user-name":l.unref(Fv)(s.assignee),"avatar-url":s.assignee.avatarUrl,color:s.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):l.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}});const rR={class:"ao-mapping-card-project-phase__header"},lR={class:"ao-card-project-item__title-line"},aR={key:0,class:"ao-card-project-item-phase__estimation"},cR={class:"ao-mapping-card-project-phase__footer"},dR={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},uR={class:"ao-mapping-card-project-phase__subitem"},hR={class:"ao-mapping-card-project-phase__subitem"},fR={key:0,class:"ao-mapping-card-project-phase__secondary"},pR={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},mR=l.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(s,{emit:e}){const t=s,i=e,n=v=>{i("update:title",v)},r=l.computed(()=>{var v;return((v=t.milestones)==null?void 0:v.reduce((C,w)=>{var k;return C+((k=w.activities)==null?void 0:k.reduce((_,M)=>_+(M.estimation||0),0))},0))||0}),a=l.computed(()=>!t.milestones||!t.timeTrackingData?0:t.milestones.reduce((v,C)=>{var w;return v+(((w=C.activities)==null?void 0:w.reduce((k,_)=>{var S;const M=(S=t.timeTrackingData)==null?void 0:S[_.id];return k+((M==null?void 0:M.timeSpent)||0)},0))||0)},0)),c=l.computed(()=>t.estimationUnit==="days"?"d":"h"),d=l.computed(()=>_m(a.value,t.estimationUnit)),u=l.computed(()=>{var v;return(v=t.milestones)==null?void 0:v.length}),f=l.computed(()=>{var v;return(v=t.milestones)==null?void 0:v.filter(C=>C.status===Nc.done).length}),p=l.computed(()=>(f.value||0)/(u.value||1)),m=l.computed({get:()=>t.deadline??"",set:v=>i("update:deadline",v!=null&&v.length?v:null)}),g=l.computed({get:()=>t.color,set:v=>{i("updatePhase",{id:t.id,color:v})}}),y=(v,C)=>{const w=v.target;w.closest("button")||w.closest("input")||w.closest(".ao-title")||C()};return(v,C)=>(l.openBlock(),l.createBlock(Dm,{color:g.value,"onUpdate:color":C[2]||(C[2]=w=>g.value=w)},{clickable:l.withCtx(({openPicker:w,bgColor:k})=>[l.createVNode(Rm,{class:"ao-mapping-card-project-phase","is-clickable":s.isEditable,color:k,withLeftBorder:!0,onClick:_=>y(_,w)},l.createSlots({default:l.withCtx(()=>[l.createElementVNode("div",lR,[l.createVNode(jt,{id:s.id,class:"ao-mapping-card-project-phase__title",title:s.name||"",level:4,"is-editable":s.isEditable,"onUpdate:title":n},null,8,["id","title","is-editable"]),r.value||a.value?(l.openBlock(),l.createElementBlock("span",aR," ("+l.toDisplayString(d.value)+"/"+l.toDisplayString(r.value)+l.toDisplayString(c.value)+")",1)):l.createCommentVNode("",!0)])]),footer:l.withCtx(()=>[l.createElementVNode("div",cR,[u.value?(l.openBlock(),l.createElementBlock("div",dR,[l.createElementVNode("div",uR,[l.createVNode(Ye,{name:"MountainFlagOutlineRounded",size:"sm"}),l.createElementVNode("span",hR,l.toDisplayString(f.value)+" / "+l.toDisplayString(u.value),1)]),l.createVNode(Im,{percentages:p.value,class:"ao-mapping-card-project-phase__progress",color:g.value},null,8,["percentages","color"]),v.$slots.secondary?(l.openBlock(),l.createElementBlock("div",fR,[l.renderSlot(v.$slots,"secondary")])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["ao-mapping-card-project-phase__footer-row",m.value?"":"ao-mapping-card-project-phase__no_deadline"])},[s.isEditable?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:0,"onUpdate:modelValue":C[1]||(C[1]=_=>m.value=_),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[l.vModelText,m.value,void 0,{lazy:!0}]]):l.createCommentVNode("",!0),l.createElementVNode("span",pR,l.toDisplayString(l.unref(Em)(s.deadline)),1)],2)])]),_:2},[s.isEditable?{name:"header",fn:l.withCtx(()=>[l.createElementVNode("div",rR,[l.createVNode(Ee,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:s.active?v.$t("archive"):v.$t("unarchive"),onClick:C[0]||(C[0]=l.withModifiers(()=>s.active?v.$emit("archivePhase",{id:s.id}):v.$emit("unarchivePhase",{id:s.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const gR={class:"ao-project-phase"},vR={key:0,class:"ao-project-phase__drag ao-card__drag"},yR={key:1,class:"ao-project-phase__col-phase"},CR={key:2,class:"ao-mapping-project-phase__col-phase"},bR={key:0,class:"ao-project-phase__col-milestones"},wR={class:"ao-project-phase__milestones-list-footer"},kR=l.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(s,{emit:e}){const{t}=qi(),i=s,n=e;l.watch(()=>i.phase.milestones,(_,M)=>{Fi(_,M)});const r=_=>{n("updatePhase",{id:i.phase.id,name:_})},a=_=>{n("updatePhase",{id:i.phase.id,deadline:_})},c=_=>{n("updatePhase",_)},d=l.computed(()=>i.phase.milestones.map(_=>H9(_,i.closedStatus))),u=_=>{const{name:M,rank:S}=Cr(d.value??[],"milestone",t);n("addMilestone",{name:M,rank:S,phaseId:_})},f=_=>{n("updateMilestone",_)},p=_=>{n("archiveMilestone",_)},m=_=>{n("unarchiveMilestone",_)},g=_=>{n("archivePhase",_)},y=_=>{n("unarchivePhase",_)},v=_=>{"added"in _?n("updateMilestone",{id:_.added.element.id,phaseId:i.phase.id,rank:Ra(d.value,_.added.newIndex)}):"removed"in _||"moved"in _&&n("updateMilestone",{id:_.moved.element.id,rank:Ra(d.value,_.moved.newIndex)})},C=rh.useRoute(),w=l.computed(()=>C.path.includes("/mapping")),k=l.computed(()=>{var _;return i.phase.id!==((_=C.params)==null?void 0:_.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:i.phase.color?{backgroundColor:W9(i.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(_,M)=>(l.openBlock(),l.createElementBlock("li",gR,[l.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:l.normalizeStyle(k.value)},[s.isEditable?(l.openBlock(),l.createElementBlock("div",vR,[l.createVNode(Ye,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):l.createCommentVNode("",!0),w.value?(l.openBlock(),l.createElementBlock("div",CR,[l.createVNode(mR,{id:s.phase.id,milestones:d.value,name:s.phase.name,deadline:s.phase.deadline,active:s.phase.active,"is-editable":s.isEditable,color:s.phase.color,"estimation-unit":s.estimationUnit,"onUpdate:deadline":a,"onUpdate:title":r,onArchivePhase:g,onUnarchivePhase:y,onUpdatePhase:c},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(l.openBlock(),l.createElementBlock("div",yR,[l.createVNode(zV,{id:s.phase.id,milestones:d.value,name:s.phase.name,deadline:s.phase.deadline,active:s.phase.active,"is-editable":s.isEditable,color:s.phase.color,"time-tracking-data":s.timeTrackingData,"estimation-unit":s.estimationUnit,"onUpdate:deadline":a,"onUpdate:title":r,onArchivePhase:g,onUnarchivePhase:y,onUpdatePhase:c},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),w.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",bR,[l.createElementVNode("div",{class:"ao-project-phase__milestones",style:l.normalizeStyle(k.value)},[l.createVNode(l.unref(qn),l.mergeProps({class:"ao-project-phase__milestones-list",list:d.value,disabled:s.readonly||!s.isEditable,"item-key":"id",group:"kanban"},_.$attrs,{onChange:v}),{item:l.withCtx(({element:S})=>{var x;return[l.createVNode(oR,{id:S.id,name:S.name,color:S.color,"phase-color":s.phase.color,activities:S.activities,deadline:S.deadline,active:S.active,"is-editable":!s.readonly&&s.isEditable,"is-draggable":!s.readonly&&s.isEditable,"closed-status":s.closedStatus,"is-selected":S.id===((x=_.$route.params)==null?void 0:x.milestoneId),assignee:S.assignee,important:S.important,readonly:s.readonly,"time-tracking-data":s.timeTrackingData,"estimation-unit":s.estimationUnit,class:l.normalizeClass(["ao-project-phase__milestone"]),onClick:L=>!s.readonly&&_.$router.push({name:l.unref(St).milestone,params:{phaseId:s.phase.id,milestoneId:S.id}}),onUpdateMilestone:f,onArchiveMilestone:p,onUnarchiveMilestone:m},null,8,["id","name","color","phase-color","activities","deadline","active","is-editable","is-draggable","closed-status","is-selected","assignee","important","readonly","time-tracking-data","estimation-unit","onClick"])]}),_:1},16,["list","disabled"]),l.createElementVNode("div",wR,[s.isEditable?(l.openBlock(),l.createBlock(Zn,{key:0,label:_.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:M[0]||(M[0]=()=>u(s.phase.id))},null,8,["label"])):l.createCommentVNode("",!0)])],4)]))]))}});const _R={class:"ao-project__phases"},ER={key:0,class:"ao-project-phase__phases-list-footer"},TR={class:"ao-project-phase__col-phase"},r2=l.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(s,{emit:e}){const t=s,i=e;l.watch(()=>t.phases,(g,y)=>{Fi(g,y)});const n=g=>{i("addMilestone",g)},r=g=>{i("updateMilestone",g)},a=g=>{i("archiveMilestone",g)},c=g=>{i("unarchiveMilestone",g)},d=g=>{i("archivePhase",g)},u=g=>{i("unarchivePhase",g)},f=g=>{if(g.moved){const y=dh(g,t.phases??[]);i("updatePhase",{id:g.moved.element.id,rank:y})}},p=g=>{i("updatePhase",g)},m=g=>{i("addPhase",g)};return(g,y)=>(l.openBlock(),l.createElementBlock("div",_R,[l.createVNode(l.unref(qn),{class:"ao-project-phase__phases-list","model-value":s.phases,"item-key":"id",handle:".ao-card__drag",onChange:f},{item:l.withCtx(({element:v})=>[l.createVNode(kR,{phase:v,"is-editable":!s.readonly&&s.isEditable,"closed-status":s.closedStatus,users:s.users,readonly:s.readonly,"time-tracking-data":s.timeTrackingData,"estimation-unit":s.estimationUnit,onAddMilestone:n,onUpdateMilestone:r,onArchiveMilestone:a,onUnarchiveMilestone:c,onUpdatePhase:p,onArchivePhase:d,onUnarchivePhase:u},null,8,["phase","is-editable","closed-status","users","readonly","time-tracking-data","estimation-unit"])]),_:1},8,["model-value"]),s.isEditable?(l.openBlock(),l.createElementBlock("div",ER,[y[0]||(y[0]=l.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),l.createElementVNode("div",TR,[l.createVNode(Zn,{label:g.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:m},null,8,["label"])]),y[1]||(y[1]=l.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):l.createCommentVNode("",!0)]))}});const SR={class:"ao-add-template-modal__form-body"},xR={class:"field__row"},MR={class:"ao-add-template-modal__form-footer"},e7=l.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(s,{emit:e}){const t=s,i=e,n=l.computed(()=>t.templates.map(d=>({value:d.id,label:d.name}))),r=l.ref(null),a=d=>{r.value=d},c=()=>{r.value&&i("apply",r.value,t.projectId)};return(d,u)=>(l.openBlock(),l.createBlock(Tm,{size:"sm"},{header:l.withCtx(()=>[l.createVNode(jt,{title:d.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:l.withCtx(()=>[l.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:l.withModifiers(c,["prevent"])},[l.createElementVNode("p",null,l.toDisplayString(d.$t("project.template.apply.notice")),1),l.createElementVNode("div",SR,[l.createElementVNode("div",xR,[l.createVNode(ms,{value:r.value,options:n.value,detached:!0,onChange:a},null,8,["value","options"])])]),l.createElementVNode("footer",MR,[l.createVNode(Ee,{label:d.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:c},null,8,["label"])])],32)]),_:1}))}});const BR={class:"ao-save-template-modal__form-body"},NR={class:"field__row"},LR={class:"ao-field ao-field--inline"},AR={class:"ao-field__label"},$R={class:"ao-save-template-modal__phases"},OR={class:"ao-field__label"},VR={class:"ao-save-template-modal__phases-list"},RR=["value"],IR={class:"ao-save-template-modal__form-footer"},t7=l.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(s,{emit:e}){const t=s,i=e,n=l.ref(""),r=l.ref([]);l.onMounted(()=>{r.value=t.phases.map(c=>c.id)});const a=()=>{n.value&&i("save",n.value,r.value)};return(c,d)=>(l.openBlock(),l.createBlock(Tm,{size:"sm"},{header:l.withCtx(()=>[l.createVNode(jt,{title:c.$t("project.template.save.title"),level:3},null,8,["title"])]),default:l.withCtx(()=>[l.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:l.withModifiers(a,["prevent"])},[l.createElementVNode("div",BR,[l.createElementVNode("div",NR,[l.createElementVNode("label",LR,[l.createElementVNode("span",AR,l.toDisplayString(c.$t("project.template.name.label"))+": ",1),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=u=>n.value=u),type:"text"},null,512),[[l.vModelText,n.value]])])]),l.createElementVNode("div",$R,[l.createElementVNode("div",OR,l.toDisplayString(c.$t("project.template.phases.label")),1),l.createElementVNode("div",VR,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.phases,u=>(l.openBlock(),l.createElementBlock("label",{class:"ao-field ao-field--checkbox",key:u.id},[l.withDirectives(l.createElementVNode("input",{type:"checkbox",value:u.id,"onUpdate:modelValue":d[1]||(d[1]=f=>r.value=f)},null,8,RR),[[l.vModelCheckbox,r.value]]),l.createElementVNode("span",null,l.toDisplayString(u.name),1)]))),128))])])]),l.createElementVNode("footer",IR,[l.createVNode(Ee,{label:c.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const DR={class:"ao-project"},PR={class:"ao-project__body"},HR=l.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(s,{emit:e}){const{t}=qi(),i=s,n=e,r=l.computed(()=>i.phases.flatMap(I=>I.milestones)),a=()=>{const{name:I,rank:Z}=Cr(i.phases,"phase",t);n("addPhase",{name:I,rank:Z,projectId:i.project.id})},c=I=>{n("updatePhase",I)},d=I=>{n("archivePhase",I)},u=I=>{n("unarchivePhase",I)},f=I=>{n("copyPhaseToTemplate",I)},p=I=>{n("addMilestone",I)},m=I=>{n("updateMilestone",I)},g=I=>{n("archiveMilestone",I)},y=I=>{n("unarchiveMilestone",I)},v=I=>{n("addActivity",I)},C=I=>{n("update:activity",I)},w=I=>{n("archiveActivity",I)},k=I=>{n("unarchiveActivity",I)},_=I=>{n("addSubtask",I)},M=I=>{n("updateSubtask",I)},S=I=>{n("deleteSubtask",I)},x=l.computed(()=>r.value.flatMap(I=>I.activities)),L=I=>{n("addFiles",I)},B=I=>{n("removeFile",I)},N=I=>{n("addComment",I)},O=I=>{n("updateComment",I)},A=I=>{n("removeComment",I)},V=l.ref(!1),R=l.ref(!1),$=(I,Z)=>{n("applyTemplate",{templateId:I,projectId:Z}),V.value=!1},D=(I,Z)=>{var ne;const W=(ne=i.templates)==null?void 0:ne.at(-1),Y=W?zt.LexoRank.parse(W.rank).genNext():zt.LexoRank.middle();n("saveTemplate",{templateName:I,rank:Y.format(),phaseIds:Z}),R.value=!1},z=rh.useRouter(),q=l.ref("overview"),F=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return l.watch(q,I=>{I==="feed"?(z.push({name:St.feed}),console.log("Navigating to feed...")):I==="overview"?(z.push({name:St.project}),console.log("Navigating to feed...")):I==="mapping"&&(z.push({name:St.mapping}),console.log("Navigating to feed..."))}),(I,Z)=>{var Y;const W=l.resolveComponent("RouterView");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",l.mergeProps({class:"ao-project-overview"},I.$attrs),[l.createElementVNode("div",DR,[l.createVNode(uh,null,{primary:l.withCtx(()=>[l.createVNode(hh,{tabs:F,modelValue:q.value,"onUpdate:modelValue":Z[0]||(Z[0]=ne=>q.value=ne)},null,8,["modelValue"]),l.createVNode(Ee,{class:"ao-feed__show-archived",size:"sm","icon-name":s.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:I.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":s.showsArchived,onClick:Z[1]||(Z[1]=ne=>I.$emit("update:showsArchived",!s.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:l.withCtx(()=>[s.isEditable===!0?(l.openBlock(),l.createBlock(Ee,{key:0,class:"ao-project-overview__save-as-template",color:"primary",label:I.$t("project.template.save.label"),onClick:Z[2]||(Z[2]=ne=>R.value=!0)},null,8,["label"])):l.createCommentVNode("",!0),s.isEditable===!0?(l.openBlock(),l.createBlock(Ee,{key:1,class:"ao-project-overview__add-template",color:"primary",label:I.$t("project.template.apply.label"),onClick:Z[3]||(Z[3]=ne=>V.value=!0)},null,8,["label"])):l.createCommentVNode("",!0)]),_:1}),l.createElementVNode("div",PR,[l.createVNode(r2,{phases:s.phases,"closed-status":s.closedStatus,"is-editable":s.isEditable===!0,users:s.users,"time-tracking-data":s.timeTrackingData,"estimation-unit":(Y=s.project)==null?void 0:Y.estimationUnit,onAddMilestone:p,onUpdateMilestone:m,onArchiveMilestone:g,onUnarchiveMilestone:y,onAddPhase:a,onUpdatePhase:c,onArchivePhase:d,onUnarchivePhase:u,onCopyPhaseToTemplate:f},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),l.createVNode(W,{class:"ao-project__sidebar",phases:s.phases,"project-id":s.project.id,"project-name":s.project.name,users:s.users,"is-editable":s.isEditable===!0,"closed-status":s.closedStatus,"time-tracking-data":s.timeTrackingData,onClose:Z[4]||(Z[4]=ne=>I.$router.push({name:l.unref(St).project})),onUpdateMilestone:m,onAddActivity:v,onUpdateActivity:C,onArchiveActivity:w,onUnarchiveActivity:k},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(W,{name:"modal",activities:x.value,"is-task-checkable":s.isTaskCheckable,statuses:s.statuses,"activity-types":s.activityTypes,phases:s.phases,project:s.project,users:s.users,"user-id":s.userId,"is-editable":s.isEditable,"attachment-enabled":s.attachmentEnabled,"time-tracking-data":s.timeTrackingData,"onUpdate:activity":C,onAddSubtask:_,onUpdateSubtask:M,onDeleteSubtask:S,onAddFiles:L,onRemoveFile:B,onAddComment:N,onUpdateComment:O,onRemoveComment:A},{default:l.withCtx(({Component:ne})=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(ne),null,{default:l.withCtx(K=>[l.renderSlot(I.$slots,"activityDetailsBody",l.normalizeProps(l.guardReactiveProps(K)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data"])]))],16),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[R.value?(l.openBlock(),l.createBlock(t7,{key:0,phases:s.phases,onClose:Z[5]||(Z[5]=ne=>R.value=!1),onSave:D},null,8,["phases"])):l.createCommentVNode("",!0),V.value?(l.openBlock(),l.createBlock(e7,{key:1,"project-id":s.project.id,templates:s.templates,onClose:Z[6]||(Z[6]=ne=>V.value=!1),onApply:$},null,8,["project-id","templates"])):l.createCommentVNode("",!0)]))],64)}}});const FR={class:"ao-card-feed__header"},WR={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},zR={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},jR={class:"ao-card-feed__body"},UR={key:0,class:"ao-card-feed__breadcrumbs"},qR={class:l.normalizeClass(["ao-card-feed__title-group"])},ZR={class:"ao-card-feed__title-line"},GR={key:0,class:"ao-card-feed__slug"},YR={key:1,class:"ao-card-feed__deadline"},KR={class:"ao-card-feed__footer"},XR={class:"ao-card-feed__footer-row"},QR={class:"ao-assignees"},JR={key:0,class:"ao-assignee"},eI={key:0,class:"ao-card-feed__subitems"},tI={key:0,class:"ao-card-feed__subitem"},sI={class:"ao-card-feed__subitem"},iI={key:1,class:"ao-card-feed__subitem"},nI={class:"ao-card-feed__subitem"},oI={class:"ao-card-feed__timer-wrapper"},rI={class:"ao-card-feed__footer-row"},lI={key:0,class:"ao-card-feed__progress-wrapper"},aI={class:"ao-card-feed__subitem"},cI={class:"ao-card-feed__subitem"},l2=l.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(s,{emit:e}){const t=s,i=e,n=l.computed(()=>t.tagType==="milestone"?t.milestoneName:t.projectName),r=l.computed(()=>t.tagType==="milestone"?t.milestoneColor:t.projectColor),a=v=>{i("updateActivity",{id:t.id,name:v})},c=l.computed(()=>t.tagType==="milestone"&&t.phaseName?`${t.phaseName}`:t.phaseName&&t.milestoneName?`${t.phaseName} / ${t.milestoneName}`:""),d=l.computed(()=>t.assignee?[t.assignee]:[]),u=l.computed(()=>Em(t.deadline)),f=v=>{i("removeAssignee",v)},p=()=>{i("startTimer",{activityId:t.id,name:t.name,project:t.projectName,projectId:t.projectId,slug:t.slug})},m=l.computed(()=>{var v;return(v=t.tasks)==null?void 0:v.length}),g=l.computed(()=>{var v;return(v=t.tasks)==null?void 0:v.filter(C=>C.isDone).length}),y=l.computed(()=>(g.value||0)/(m.value||1));return(v,C)=>(l.openBlock(),l.createBlock(Rm,{class:l.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":s.isClosed}]),"is-clickable":!0},{header:l.withCtx(()=>[l.createElementVNode("div",FR,[n.value?(l.openBlock(),l.createBlock(Bc,{key:0,label:n.value,class:"ao-card-feed__project",variant:"solid",color:s.projectColor?void 0:"primary","raw-color":r.value},null,8,["label","color","raw-color"])):l.createCommentVNode("",!0),s.isPrivate||s.important||s.isClosed?(l.openBlock(),l.createElementBlock("div",WR,[s.isPrivate?(l.openBlock(),l.createBlock(Ye,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):l.createCommentVNode("",!0),s.important?(l.openBlock(),l.createBlock(Ye,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):l.createCommentVNode("",!0),s.isClosed?(l.openBlock(),l.createBlock(Ye,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),v.$slots.secondary?(l.openBlock(),l.createElementBlock("div",zR,[l.renderSlot(v.$slots,"secondary")])):l.createCommentVNode("",!0)])]),default:l.withCtx(()=>[l.createElementVNode("div",jR,[c.value?(l.openBlock(),l.createElementBlock("span",UR,l.toDisplayString(c.value),1)):l.createCommentVNode("",!0),l.createElementVNode("div",qR,[l.createElementVNode("div",ZR,[s.slug?(l.openBlock(),l.createElementBlock("span",GR,l.toDisplayString(s.slug)+": ",1)):l.createCommentVNode("",!0),l.createVNode(jt,{id:s.id,title:s.name,level:5,"is-editable":s.isEditable,"onUpdate:title":a,class:"ao-card-feed__title-inline"},null,8,["id","title","is-editable"])])]),s.deadline?(l.openBlock(),l.createElementBlock("span",YR,l.toDisplayString(u.value),1)):l.createCommentVNode("",!0)])]),footer:l.withCtx(()=>[l.createElementVNode("div",KR,[l.createElementVNode("div",XR,[l.createElementVNode("ul",QR,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(d.value,w=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:w.id},[w?(l.openBlock(),l.createElementBlock("li",JR,[l.createVNode(ji,{"user-name":l.unref(Fv)(w),"avatar-url":w.avatarUrl,"is-closable":!0,onClose:()=>f(w.id)},null,8,["user-name","avatar-url","onClose"])])):l.createCommentVNode("",!0)],64))),128))]),s.comments||s.attachments?(l.openBlock(),l.createElementBlock("ul",eI,[s.comments?(l.openBlock(),l.createElementBlock("li",tI,[l.createVNode(Ye,{name:"ChatOutline",size:"sm"}),l.createElementVNode("span",sI,l.toDisplayString(s.comments),1)])):l.createCommentVNode("",!0),s.attachments?(l.openBlock(),l.createElementBlock("li",iI,[l.createVNode(Ye,{name:"AttachFileRounded",size:"sm"}),l.createElementVNode("span",nI,l.toDisplayString(s.attachments),1)])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),l.createElementVNode("div",oI,[l.createVNode(Ye,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:l.withModifiers(p,["stop"])})])]),l.createElementVNode("div",rI,[s.tasks&&s.tasks.length?(l.openBlock(),l.createElementBlock("div",lI,[l.createElementVNode("div",aI,[l.createVNode(Ye,{name:"SelectCheckBox",size:"sm"}),l.createElementVNode("span",cI,l.toDisplayString(g.value)+" / "+l.toDisplayString(m.value),1)]),l.createVNode(Im,{percentages:y.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):l.createCommentVNode("",!0)])])]),_:3},8,["class"]))}});const dI={class:"ao-project-milestone"},uI={class:"ao-project-milestone__header"},hI={class:"ao-project-milestone__header_line"},fI={class:"ao-project-milestone__header_line"},pI={class:"ao-project-milestone__title"},mI={key:0,class:"ao-fieldset ao-milestone__fieldset"},gI={class:"ao-field__row ao-milestone__field-row"},vI={class:"ao-field ao-field--inline"},yI={class:"ao-field__row ao-milestone__field-row"},CI={class:"ao-field ao-milestone__field-multiselect"},bI=["onClick"],wI={class:"ao-project-milestone__body"},kI={key:0,class:"ao-project-milestone__footer"},Cv=l.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(s,{emit:e}){const{t}=qi(),i=s,n=e,r=S=>{var x;n("startTimer",S),(x=window.parent)==null||x.postMessage({type:"startTimer",data:S},"*")},a=l.computed(()=>{var S;return(S=i.phases)==null?void 0:S.find(x=>x.id===i.phaseId)}),c=l.computed(()=>{var S;return(S=i.phases)==null?void 0:S.flatMap(x=>x.milestones)}),d=l.computed(()=>{var S;return(S=c.value)==null?void 0:S.find(x=>x.id===i.milestoneId)}),u=l.computed(()=>{var S;return(S=d.value)==null?void 0:S.activities});l.watch(u,(S,x)=>{Fi(S,x)});const f=S=>{n("close",S)},p=()=>{const{name:S,rank:x}=Cr(u.value??[],"activity",t);n("addActivity",{milestoneId:i.milestoneId,name:S,rank:x,projectId:i.projectId})},m=S=>{n("updateActivity",S)},g=S=>{u.value&&"moved"in S&&n("updateActivity",{id:S.moved.element.id,rank:Ra(u.value,S.moved.newIndex)})},y=l.computed({get:()=>{var S;return(S=d.value)==null?void 0:S.color},set:S=>{d.value&&n("updateMilestone",{id:d.value.id,color:S})}}),v=l.computed({get:()=>{var S;return((S=d==null?void 0:d.value)==null?void 0:S.deadline)??""},set:S=>{d.value&&n("updateMilestone",{id:d.value.id,deadline:S!=null&&S.length?S:null})}}),C=S=>i.closedStatus?Ag(S,i.closedStatus):!1,w=l.computed(()=>{var S;return((S=i.users)==null?void 0:S.map(x=>({label:`${x.firstName} ${x.lastName}`,value:x.id,avatar:x.avatarUrl})))||[]}),k=l.computed({get(){var S,x;return(x=(S=d.value)==null?void 0:S.assignee)!=null&&x.id?[d.value.assignee.id]:[]},set(S){n("updateMilestone",{id:i.milestoneId,assigneeId:S[0]??null})}}),_=l.computed({get(){var S;return((S=d.value)==null?void 0:S.important)??!1},set(S){n("updateMilestone",{id:i.milestoneId,important:S})}}),M=(S,x)=>{const L=S.currentTarget;L instanceof HTMLElement&&x(L)};return(S,x)=>{var L;return l.openBlock(),l.createElementBlock("div",dI,[l.createElementVNode("header",uI,[l.createElementVNode("div",hI,[l.createVNode(Ee,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:f})]),l.createElementVNode("div",fI,[l.createElementVNode("div",pI,[l.createVNode(jt,{title:((L=d.value)==null?void 0:L.name)||s.milestoneId,level:5},null,8,["title"]),l.createVNode(Q5,{modelValue:_.value,"onUpdate:modelValue":x[0]||(x[0]=B=>_.value=B),modelModifiers:{lazy:!0},disabled:!s.isEditable,class:"ao-milestone__important",color:"danger",label:S.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),d.value?(l.openBlock(),l.createElementBlock("div",mI,[l.createElementVNode("div",gI,[l.createElementVNode("label",vI,[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":x[1]||(x[1]=B=>v.value=B),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[l.vModelText,v.value,void 0,{lazy:!0}]])])]),l.createElementVNode("div",yI,[l.createElementVNode("label",CI,[l.createVNode(ms,{modelValue:k.value,"onUpdate:modelValue":x[2]||(x[2]=B=>k.value=B),options:w.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:S.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!s.isEditable,caret:s.isEditable},{tag:l.withCtx(({option:B,handleTagRemove:N})=>[l.createVNode(ji,{"user-name":B.label,"avatar-url":B.avatar,"is-closable":!0,onClose:O=>N(B,O)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),l.createVNode(Dm,{color:y.value,"onUpdate:color":x[3]||(x[3]=B=>y.value=B)},{clickable:l.withCtx(({openPicker:B,bgColor:N})=>[l.createElementVNode("button",{style:l.normalizeStyle({background:N}),class:"color-button",onClick:O=>M(O,B)},null,12,bI)]),_:1},8,["color"])])):l.createCommentVNode("",!0)]),l.createElementVNode("div",wI,[l.createVNode(l.unref(qn),l.mergeProps({class:"ao-project-milestone__activities",list:u.value,disabled:!s.isEditable,"item-key":"id",group:"kanban"},S.$attrs,{onChange:g}),{item:l.withCtx(({element:B})=>{var N,O,A,V,R;return[l.createVNode(l2,{id:B.id,name:B.name||B.id,"project-id":s.projectId,"phase-name":(N=a.value)==null?void 0:N.name,"milestone-name":(O=d.value)==null?void 0:O.name,"milestone-color":(A=d.value)==null?void 0:A.color,deadline:B.deadline,important:B.important,users:s.users,assignee:B.assignee,slug:B.slug,comments:(V=B.comments)==null?void 0:V.length,attachments:(R=B.attachments)==null?void 0:R.length,tasks:B.tasks,"is-editable":s.isEditable,"is-private":B.private,"is-closed":C(B),onClick:$=>S.$router.push({name:l.unref(St).activity,params:{milestoneId:s.milestoneId,activityId:B.id}}),onUpdateActivity:m,onRemoveAssignee:()=>m({id:B.id,assigneeId:null}),onStartTimer:r},l.createSlots({_:2},[s.isEditable?{name:"secondary",fn:l.withCtx(()=>[s.isEditable&&B.active?(l.openBlock(),l.createBlock(Ee,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:S.$t("archive"),onClick:l.withModifiers(()=>S.$emit("archiveActivity",{id:B.id}),["stop"])},null,8,["label","onClick"])):l.createCommentVNode("",!0),s.isEditable&&!B.active?(l.openBlock(),l.createBlock(Ee,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:S.$t("feed.activity.unarchive"),onClick:l.withModifiers(()=>S.$emit("unarchiveActivity",{id:B.id}),["stop"])},null,8,["label","onClick"])):l.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"]),s.isEditable?(l.openBlock(),l.createElementBlock("div",kI,[l.createVNode(Zn,{"icon-name":"Add",label:S.$t("project.activity.add"),onClick:p},null,8,["label"])])):l.createCommentVNode("",!0)])])}}});const _I=l.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(s,{emit:e}){const t=s,i=e,n=l.computed(()=>{var w;return(w=t.phases)==null?void 0:w.find(k=>k.id===t.phaseId)}),r=l.computed(()=>{var w;return(w=t.phases)==null?void 0:w.flatMap(k=>k.milestones)}),a=l.computed(()=>{var w;return(w=r.value)==null?void 0:w.find(k=>k.id===t.milestoneId)}),c=l.computed(()=>{var w;return(w=t.activities)==null?void 0:w.find(k=>k.id===t.activityId)}),d=w=>{i("update:activity",w)},u=w=>{i("addSubtask",w)},f=w=>{i("updateSubtask",w)},p=w=>{i("deleteSubtask",w)},m=w=>{i("addFiles",w)},g=w=>{i("removeFile",w)},y=w=>{i("addComment",w)},v=w=>{i("updateComment",w)},C=w=>{i("removeComment",w)};return(w,k)=>{var _,M;return c.value?(l.openBlock(),l.createBlock(Xg,{key:0,activity:c.value,"activity-types":s.activityTypes,"milestone-id":s.milestoneId,"template-activities":s.activities,"is-template":!1,users:s.users,"user-id":s.userId,"is-task-checkable":s.isTaskCheckable,statuses:s.statuses,breadcrumbs:`${(_=n.value)==null?void 0:_.name} / ${(M=a.value)==null?void 0:M.name}`,"is-editable":s.isEditable,"attachment-enabled":s.attachmentEnabled,projects:[s.project],"time-tracking-data":s.timeTrackingData,onClose:w.$router.back,"onUpdate:activity":d,onAddSubtask:u,onUpdateSubtask:f,onDeleteSubtask:p,onAddFiles:m,onRemoveFile:g,onAddComment:y,onUpdateComment:v,onRemoveComment:C},{default:l.withCtx(S=>[l.renderSlot(w.$slots,"default",l.normalizeProps(l.guardReactiveProps(S)))]),_: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"])):l.createCommentVNode("",!0)}}}),EI={class:"ao-col-header"},TI=l.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(s){return(e,t)=>(l.openBlock(),l.createElementBlock("header",EI,[l.createVNode(jt,{title:s.title,class:"ao-col-header__title",level:4},null,8,["title"]),s.items?(l.openBlock(),l.createBlock(Bc,{key:0,label:s.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):l.createCommentVNode("",!0)]))}});function SI(s){return l.getCurrentScope()?(l.onScopeDispose(s),!0):!1}function u1(s){return typeof s=="function"?s():l.unref(s)}const xI=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const MI=s=>s!=null,Mc=()=>{};function BI(s,e){function t(...i){return new Promise((n,r)=>{Promise.resolve(s(()=>e.apply(this,i),{fn:e,thisArg:this,args:i})).then(n).catch(r)})}return t}function NI(s,e={}){let t,i,n=Mc;const r=c=>{clearTimeout(c),n(),n=Mc};return c=>{const d=u1(s),u=u1(e.maxWait);return t&&r(t),d<=0||u!==void 0&&u<=0?(i&&(r(i),i=null),Promise.resolve(c())):new Promise((f,p)=>{n=e.rejectOnCancel?p:f,u&&!i&&(i=setTimeout(()=>{t&&r(t),i=null,f(c())},u)),t=setTimeout(()=>{i&&r(i),i=null,f(c())},d)})}}function LI(s,e=200,t={}){return BI(NI(e,t),s)}function f0(s){var e;const t=u1(s);return(e=t==null?void 0:t.$el)!=null?e:t}const AI=xI?window:void 0;function $I(){const s=l.ref(!1),e=l.getCurrentInstance();return e&&l.onMounted(()=>{s.value=!0},e),s}function OI(s){const e=$I();return l.computed(()=>(e.value,!!s()))}function VI(s,e,t={}){const{root:i,rootMargin:n="0px",threshold:r=.1,window:a=AI,immediate:c=!0}=t,d=OI(()=>a&&"IntersectionObserver"in a),u=l.computed(()=>{const y=u1(s);return(Array.isArray(y)?y:[y]).map(f0).filter(MI)});let f=Mc;const p=l.ref(c),m=d.value?l.watch(()=>[u.value,f0(i),p.value],([y,v])=>{if(f(),!p.value||!y.length)return;const C=new IntersectionObserver(e,{root:f0(v),rootMargin:n,threshold:r});y.forEach(w=>w&&C.observe(w)),f=()=>{C.disconnect(),f=Mc}},{immediate:c,flush:"post"}):Mc,g=()=>{f(),m(),p.value=!1};return SI(g),{isSupported:d,isActive:p,pause(){f(),p.value=!1},resume(){p.value=!0},stop:g}}const RI={class:l.normalizeClass(["ao-list-kanban"])},II={class:"ao-list-kanban__header"},DI={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},PI={key:1,class:"ao-list-kanban__end"},HI={key:0,class:"ao-list-kanban__no-more"},FI={key:1,class:"ao-list-kanban__divider"},WI={key:1,class:"ao-list-kanban__footer"},zI=l.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(s,{emit:e}){const t=s,i=e,n=l.ref(!1),r=l.ref(null);VI(r,([{isIntersecting:p}])=>{n.value=p}),l.watch(n,p=>{p&&t.hasMore&&!t.isLoading&&i("loadMore")});const a=p=>{var m;return t.isEditable===!0?!0:t.userId&&t.isEditable==="only-own"?t.userId===((m=p.assignee)==null?void 0:m.id):!1},c=p=>{i("selectActivity",p)},d=p=>{i("updateActivity",p)},u=p=>{"added"in p?i("updateActivity",{id:p.added.element.id,statusId:t.status.id,rank:Ra(t.list,p.added.newIndex)}):"removed"in p||"moved"in p&&i("updateActivity",{id:p.moved.element.id,rank:Ra(t.list,p.moved.newIndex)})},f=l.ref(!1);return(p,m)=>(l.openBlock(),l.createElementBlock("div",RI,[s.title||p.$slots.header?l.renderSlot(p.$slots,"header",{},()=>{var g;return[l.createElementVNode("div",II,[s.title?(l.openBlock(),l.createBlock(TI,{key:0,title:s.title,level:3,items:(g=s.list)==null?void 0:g.length},null,8,["title","items"])):l.createCommentVNode("",!0)])]},void 0,0):l.createCommentVNode("",!0),l.createVNode(l.unref(qn),l.mergeProps({class:["ao-list-kanban__list",f.value?"ao-list-kanban__transition":void 0],list:s.list,"item-key":"id",group:"kanban","ghost-class":"ao-list-kanban__ghost",animation:"200"},p.$attrs,{draggable:".ao-list-draggable",disabled:!s.isEditable,onChange:u,onStart:m[1]||(m[1]=g=>f.value=!0),onEnd:m[2]||(m[2]=g=>f.value=!1),"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"}}),{item:l.withCtx(({element:g})=>{var y,v,C,w,k,_,M,S,x,L;return[l.createVNode(l2,{class:l.normalizeClass(a(g)?"ao-list-draggable":""),id:g.id,name:g.name,"project-name":(y=g.project)==null?void 0:y.name,"project-id":(v=g.project)==null?void 0:v.id,"project-color":(C=g.project)==null?void 0:C.color,"phase-name":(k=(w=g.milestone)==null?void 0:w.phase)==null?void 0:k.name,"milestone-name":(_=g.milestone)==null?void 0:_.name,"milestone-color":(M=g.milestone)==null?void 0:M.color,deadline:g.deadline,rules:((S=g.rules)==null?void 0:S.length)||0,tasks:g.tasks,description:g.description,important:g.important,type:g.type,comments:(x=g.comments)==null?void 0:x.length,attachments:(L=g.attachments)==null?void 0:L.length,users:s.users,assignee:g.assignee,slug:g.slug,"is-editable":a(g),"is-private":g.private,"tag-type":s.tagType,onUpdateActivity:[B=>a(g)&&d(B),()=>a(g)&&d],onClick:()=>c(g.id),onRemoveAssignee:()=>a(g)&&d({id:g.id,assigneeId:null}),onStartTimer:m[0]||(m[0]=B=>p.$emit("startTimer",B))},{secondary:l.withCtx(()=>[a(g)&&g.active?(l.openBlock(),l.createBlock(Ee,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:p.$t("feed.activity.archive"),onClick:l.withModifiers(()=>p.$emit("archiveActivity",{id:g.id}),["stop"])},null,8,["label","onClick"])):l.createCommentVNode("",!0),a(g)&&!g.active?(l.openBlock(),l.createBlock(Ee,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:p.$t("feed.activity.unarchive"),onClick:l.withModifiers(()=>p.$emit("unarchiveActivity",{id:g.id}),["stop"])},null,8,["label","onClick"])):l.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:l.withCtx(()=>[s.isLoading?(l.openBlock(),l.createElementBlock("div",DI,[l.createVNode(Ye,{name:"Loading"})])):s.hasMore?(l.openBlock(),l.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:r,class:"ao-list-kanban__end"},null,512)):(l.openBlock(),l.createElementBlock("div",PI,[s.noMoreLabel?(l.openBlock(),l.createElementBlock("span",HI,l.toDisplayString(s.noMoreLabel),1)):s.isEditable?(l.openBlock(),l.createElementBlock("span",FI)):l.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),p.$slots.footer||s.footerLabel?(l.openBlock(),l.createElementBlock("div",WI,[l.renderSlot(p.$slots,"footer",{},()=>[s.isEditable?(l.openBlock(),l.createBlock(Zn,{key:0,"icon-name":"AddBoxOutlineRounded",label:s.footerLabel,onClick:m[3]||(m[3]=g=>p.$emit("add"))},null,8,["label"])):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0)]))}});const jI={class:"ao-field ao-search-field"},UI=["value","placeholder"],qI=l.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(s,{emit:e}){const t=s,i=e,n=async c=>{const u=c.target.value;i("update:modelValue",u,c)},r=LI(n,t.delay),a=c=>{i("clear",c)};return(c,d)=>(l.openBlock(),l.createElementBlock("div",jI,[l.createElementVNode("input",{value:s.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:s.placeholder,onInput:d[0]||(d[0]=(...u)=>l.unref(r)&&l.unref(r)(...u)),onKeypress:l.withKeys(n,["enter"])},null,40,UI),l.createVNode(Ye,{name:"SearchRounded",class:l.normalizeClass(`ao-search-field__icon ao-search-field__action ${s.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),l.createVNode(Ee,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:l.normalizeClass(`ao-search-field__button ao-search-field__action ${s.modelValue?"ao-search-field__action--visible":""}`),onClick:a},null,8,["class"])]))}});const ZI={class:"ao-feed"},GI={class:"ao-feed__filters"},YI={class:"ao-feed__body"},s7=l.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(s,{emit:e}){const{t}=qi(),i=s,n=e;function r(W,Y){n("toast",W,Y)}const a=l.toRef(i,"activities"),c=async(W,Y)=>{await n("selectActivity",W,Y)},d=l.ref({}),u=l.ref(!1),f=l.ref(!1),p=l.computed(()=>i.project?"milestone":"project");l.watch([()=>i.statuses,()=>i.activities,()=>i.initialActivityId,()=>i.initialActivitySlug],async([W,Y,ne,K],[J,j])=>{d.value=Object.fromEntries(W.map(se=>[se.id,Y.filter(P=>{var X;return((X=P.status)==null?void 0:X.id)===se.id})])),ne&&!u.value?(c(ne,null),u.value=!0):K&&!u.value&&(c(null,K),u.value=!0),f.value&&Fi(Y,j)},{immediate:!0});const m=l.computed(()=>{var W;return!i.selectedActivity||!i.selectedActivity.milestone?"":`${((W=i.selectedActivity.milestone.phase)==null?void 0:W.name)??""} / ${i.selectedActivity.milestone.name??""}`}),g=W=>{var j,se;const Y=(j=i.activities)==null?void 0:j.at(-1),ne=Y?zt.LexoRank.parse(Y.rank).genNext():zt.LexoRank.middle(),K=((se=i.activities)==null?void 0:se.length)??0,J={name:t("activity.defaultName",{idx:K+1}),rank:ne.format(),statusId:W.id};i.filters.assigneeId.length>0&&(J.assigneeId=i.filters.assigneeId[0]),i.filters.projectId.length>0&&(J.projectId=i.filters.projectId[0]),i.filters.typeId.length>0&&(J.typeId=i.filters.typeId[0]),f.value=!0,n("addActivity",J)},y=(W,Y)=>{f.value=!1,n("update:filters",{...i.filters,[W]:Y})},v=l.computed(()=>i.project?[i.project]:i.projects??[]),C=l.computed(()=>v.value.map(W=>({value:W.id,label:W.name}))),w=l.computed(()=>{var W;return(W=i.activityTypes)==null?void 0:W.map(Y=>({value:Y.id,label:Y.name}))}),k=l.computed(()=>i.users.map(W=>({value:W.id,label:`${W.firstName} ${W.lastName}`,avatar:W.avatarUrl}))),_=W=>{i.selectedActivity&&n("update:activity",W)},M=W=>{n("update:activity",W)},S=W=>{n("archiveActivity",W)},x=W=>{n("unarchiveActivity",W)},L=W=>{var Y;n("startTimer",W),(Y=window.parent)==null||Y.postMessage({type:"startTimer",data:W},"*")},B=W=>{f.value=!1,n("update:searchText",W)},N=W=>{f.value=!1,n("clear:searchText",W)},O=W=>{i.selectedActivity&&n("addSubtask",W)},A=W=>{i.selectedActivity&&n("updateSubtask",W)},V=W=>{i.selectedActivity&&n("deleteSubtask",W)},R=W=>{n("addFiles",W)},$=W=>{n("removeFile",W)},D=W=>{i.selectedActivity&&n("addComment",{...W,activityId:i.selectedActivity.id})},z=W=>{const{id:Y}=i.selectedActivity||{};Y&&n("updateComment",W)},q=W=>{const{id:Y}=i.selectedActivity||{};Y&&n("removeComment",W)},F=rh.useRouter(),I=l.ref("feed"),Z=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return l.watch(I,W=>{W==="feed"?(F.push({name:St.feed}),console.log("Navigating to feed...")):W==="overview"?(F.push({name:St.project}),console.log("Navigating to feed...")):W==="mapping"&&(F.push({name:St.mapping}),console.log("Navigating to feed..."))}),(W,Y)=>{var ne;return l.openBlock(),l.createElementBlock("div",ZI,[l.createVNode(uh,null,{primary:l.withCtx(()=>[l.createElementVNode("div",GI,[l.createVNode(hh,{tabs:Z,modelValue:I.value,"onUpdate:modelValue":Y[0]||(Y[0]=K=>I.value=K)},null,8,["modelValue"]),l.createVNode(qI,{"model-value":s.searchText,placeholder:W.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":B,onClear:N},null,8,["model-value","placeholder"]),i.project?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(ms,{key:0,"model-value":s.filters[l.unref(to).project],mode:"tags",options:C.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:W.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":Y[1]||(Y[1]=K=>y(l.unref(to).project,K))},null,8,["model-value","options","placeholder"])),w.value?(l.openBlock(),l.createBlock(ms,{key:1,"model-value":s.filters[l.unref(to).type],mode:"tags",options:w.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:W.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":Y[2]||(Y[2]=K=>y(l.unref(to).type,K))},null,8,["model-value","options","placeholder"])):l.createCommentVNode("",!0),k.value.length?(l.openBlock(),l.createBlock(ms,{key:2,"model-value":s.filters[l.unref(to).assignee],mode:"tags",options:k.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:W.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":Y[3]||(Y[3]=K=>y(l.unref(to).assignee,K))},{tag:l.withCtx(({option:K,handleTagRemove:J})=>[l.createVNode(ji,{"user-name":K.label,"avatar-url":K.avatar,"is-closable":!0,onClose:j=>J(K,j)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):l.createCommentVNode("",!0)]),l.createVNode(Ee,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":s.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:W.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":s.showsOnlyNonAssigned,onClick:Y[4]||(Y[4]=K=>W.$emit("update:showsOnlyNonAssigned",!s.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),l.createVNode(Ee,{class:"ao-feed__only-important",size:"sm","icon-name":s.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:W.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":s.showsOnlyImportant,onClick:Y[5]||(Y[5]=K=>W.$emit("update:showsOnlyImportant",!s.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),l.createVNode(Ee,{class:"ao-feed__show-archived",size:"sm","icon-name":s.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:W.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":s.showsArchivedActivities,onClick:Y[6]||(Y[6]=K=>W.$emit("update:showsArchivedActivities",!s.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),l.createElementVNode("div",YI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.statuses,K=>(l.openBlock(),l.createBlock(zI,{key:K.id,status:K,list:d.value[K.id],title:K.name,"footer-label":W.$t("feed.activity.add"),users:s.users,"user-id":s.userId,"is-editable":s.isEditable,tagType:p.value,onAdd:()=>g(K),onSelectActivity:c,onArchiveActivity:S,onUnarchiveActivity:x,onUpdateActivity:M,onStartTimer:L},null,8,["status","list","title","footer-label","users","user-id","is-editable","tagType","onAdd"]))),128))]),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[s.selectedActivity?(l.openBlock(),l.createBlock(Xg,{key:0,activity:s.selectedActivity,"activity-types":s.activityTypes,"milestone-id":(ne=s.selectedActivity.milestone)==null?void 0:ne.id,"template-activities":a.value,users:s.users,"user-id":s.userId,"is-task-checkable":s.isTaskCheckable,statuses:s.statuses,breadcrumbs:m.value,"is-editable":s.isEditable,"attachment-enabled":s.attachmentEnabled,projects:v.value,"time-tracking-data":s.timeTrackingData,onClose:Y[7]||(Y[7]=()=>c(null,null)),"onUpdate:activity":_,onAddSubtask:O,onUpdateSubtask:A,onDeleteSubtask:V,onAddFiles:R,onRemoveFile:$,onAddComment:D,onUpdateComment:z,onRemoveComment:q,onToast:r},{default:l.withCtx(K=>[l.renderSlot(W.$slots,"activityDetailsBody",l.normalizeProps(l.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"])):l.createCommentVNode("",!0)]))])}}});const KI={class:"ao-project-mapping"},XI={class:"ao-project-mapping-mapping__body"},QI={class:"ao-project-mapping-mapping__phases"},JI={key:0,class:"ao-project-mapping-mapping__image-wrapper"},eD=["src","alt"],tD=l.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(s,{emit:e}){const{t}=qi(),i=s,n=e,r=()=>{const{name:w,rank:k}=Cr(i.phases,"phase",t);n("addPhase",{name:w,rank:k,projectId:i.project.id})},a=w=>{n("updatePhase",w)},c=w=>{n("archivePhase",w)},d=w=>{n("unarchivePhase",w)},u=w=>{n("copyPhaseToTemplate",w)},f=l.ref(!1),p=l.ref(!1),m=(w,k)=>{n("applyTemplate",{templateId:w,projectId:k}),f.value=!1},g=(w,k)=>{var S;const _=(S=i.templates)==null?void 0:S.at(-1),M=_?zt.LexoRank.parse(_.rank).genNext():zt.LexoRank.middle();n("saveTemplate",{templateName:w,rank:M.format(),phaseIds:k}),p.value=!1},y=rh.useRouter(),v=l.ref("mapping"),C=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return l.watch(v,w=>{w==="feed"?(y.push({name:St.feed}),console.log("Navigating to feed...")):w==="overview"?(y.push({name:St.project}),console.log("Navigating to feed...")):w==="mapping"&&(y.push({name:St.mapping}),console.log("Navigating to feed..."))}),(w,k)=>{var _;return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",l.mergeProps({class:"ao-project-mapping-overview"},w.$attrs),[l.createElementVNode("div",KI,[l.createVNode(uh,null,{primary:l.withCtx(()=>[l.createVNode(hh,{modelValue:v.value,"onUpdate:modelValue":k[0]||(k[0]=M=>v.value=M),tabs:C},null,8,["modelValue"]),l.createVNode(Ee,{class:"ao-feed__show-archived",size:"sm","icon-name":s.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:w.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":s.showsArchived,onClick:k[1]||(k[1]=M=>w.$emit("update:showsArchived",!s.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:l.withCtx(()=>[s.isEditable===!0?(l.openBlock(),l.createBlock(Ee,{key:0,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:w.$t("project.template.save.label"),onClick:k[2]||(k[2]=M=>p.value=!0)},null,8,["label"])):l.createCommentVNode("",!0),s.isEditable===!0?(l.openBlock(),l.createBlock(Ee,{key:1,class:"ao-project-mapping-overview__add-template",color:"primary",label:w.$t("project.template.apply.label"),onClick:k[3]||(k[3]=M=>f.value=!0)},null,8,["label"])):l.createCommentVNode("",!0)]),_:1}),l.createElementVNode("div",XI,[l.createElementVNode("div",QI,[l.createVNode(r2,{phases:s.phases,"closed-status":s.closedStatus,"is-editable":s.isEditable===!0,users:s.users,"estimation-unit":(_=s.project)==null?void 0:_.estimationUnit,onAddPhase:r,onUpdatePhase:a,onArchivePhase:c,onUnarchivePhase:d,onCopyPhaseToTemplate:u},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),s.project.architectureImage?(l.openBlock(),l.createElementBlock("div",JI,[l.createElementVNode("img",{class:"architecture-image",src:s.project.architectureImage.url,alt:l.unref(t)("architectureImage.alt")},null,8,eD)])):l.createCommentVNode("",!0)])])],16),(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[p.value?(l.openBlock(),l.createBlock(t7,{key:0,phases:s.phases,onClose:k[4]||(k[4]=M=>p.value=!1),onSave:g},null,8,["phases"])):l.createCommentVNode("",!0),f.value?(l.openBlock(),l.createBlock(e7,{key:1,"project-id":s.project.id,templates:s.templates,onClose:k[5]||(k[5]=M=>f.value=!1),onApply:m},null,8,["project-id","templates"])):l.createCommentVNode("",!0)]))],64)}}});const co={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},sD=(s,e={})=>[{path:s,name:co.TEMPLATES,redirect:{name:co.TEMPLATES_LIST},...e,children:[{path:"",name:co.TEMPLATES_LIST,component:i7},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:co.TEMPLATE_DETAILS,component:J5,props:!0}]}],St={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},iD=(s,e={})=>[{path:s,...e,redirect:{name:St.project},children:[{path:"",name:St.project,component:HR,props:!0,children:[{path:":phaseId/:milestoneId",name:St.milestone,component:Cv,props:!0},{path:":phaseId/:milestoneId/:activityId",name:St.activity,props:{default:!0,modal:!0},components:{default:Cv,modal:_I}}]},{path:"feed",name:St.feed,component:s7,props:!0},{path:"mapping",name:St.mapping,component:tD,props:!0}]}],nD={class:"ao-templates"},i7=l.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(s,{emit:e}){const{t}=qi(),i=s,n=e;l.watch(()=>i.templates,(u,f)=>{Fi(u,f)});const r=()=>{var g,y;const u=(g=i.templates)==null?void 0:g.at(-1),f=u?zt.LexoRank.parse(u.rank).genNext():zt.LexoRank.middle(),p=((y=i.templates)==null?void 0:y.length)??0,m={name:t("template.defaultName.template",{idx:p+1}),rank:f.format()};n("addTemplate",m)},a=(u,f)=>{n("updateItem",{itemType:dt.TEMPLATES,id:u,templateId:u,data:{name:f}})},c=(u,f)=>{n("removeItem",{itemType:dt.TEMPLATES,templateId:u,data:{id:u,...f?{name:f}:{}}})},d=u=>{if(u.moved){const f=dh(u,i.templates??[]);n("updateItem",{itemType:dt.TEMPLATES,id:u.moved.element.id,templateId:u.moved.element.id,data:{rank:f}})}};return(u,f)=>(l.openBlock(),l.createElementBlock("div",nD,[l.createVNode(uh,null,{secondary:l.withCtx(()=>[l.createVNode(Ee,{label:u.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:r},null,8,["label"])]),_:1}),l.createVNode(l.unref(qn),{"model-value":s.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:d},{item:l.withCtx(({element:p})=>{var m;return[l.createVNode(h6,{id:p.id,title:p.name,phases:p.phases,milestones:(m=p.phases)!=null&&m.length?l.unref(R9)(p.phases):0,activities:p.phases?l.unref(I9)(p.phases):0,"updated-at":p.updatedAt,"updated-by":p.updatedBy,onUpdateTitle:g=>a(p.id,g),onClick:g=>u.$router.push({name:l.unref(co).TEMPLATE_DETAILS,params:{templateId:p.id}}),onDeleteItem:f[0]||(f[0]=(g,y)=>c(g,y))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}});const oD={class:"ao-field__label"},n7=l.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(s){return(e,t)=>(l.openBlock(),l.createElementBlock("label",{class:l.normalizeClass(["ao-field",{"ao-field--multiselect":s.isMultiselect}])},[l.createElementVNode("span",oD,l.toDisplayString(s.label),1),l.renderSlot(e.$slots,"default")],2))}}),rD=["type","value","disabled","readonly"],lD=l.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(s,{emit:e}){const t=s,i=e,n=l.computed(()=>t.modelModifiers.lazy?"change":"input"),r=a=>{t.modelModifiers.number&&(a=Number(a)),i("update:modelValue",a)};return(a,c)=>(l.openBlock(),l.createBlock(n7,{label:s.label},{default:l.withCtx(()=>[l.createElementVNode("input",l.mergeProps({class:"ao-field__input",type:s.type,value:s.modelValue,disabled:s.isDisabled,readonly:s.isReadonly},{[l.toHandlerKey(n.value)]:c[0]||(c[0]=d=>r(d.target.value))}),null,16,rD)]),_:1},8,["label"]))}}),aD={class:"ao-field"},cD={class:"ao-field__label"},dD=["checked","disabled"],uD=l.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(s){return(e,t)=>(l.openBlock(),l.createElementBlock("label",aD,[l.createElementVNode("span",cD,l.toDisplayString(s.label),1),l.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:s.modelValue,disabled:s.isDisabled,onChange:t[0]||(t[0]=i=>{var n;return e.$emit("update:modelValue",((n=i.target)==null?void 0:n.checked)??!1)})},null,40,dD)]))}});exports.AoAvatar=ji;exports.AoCardFeed=l2;exports.AoCheckboxField=uD;exports.AoColorPicker=Dm;exports.AoFeed=s7;exports.AoField=n7;exports.AoInputField=lD;exports.AoMultiselect=ms;exports.AoProjectPhases=r2;exports.AoTabBar=hh;exports.AoTemplateDetails=J5;exports.AoTemplates=T7;exports.AoTemplatesList=i7;exports.EstimationUnit=Sv;exports.TemplateItemTypeEnum=Tv;exports.activityFeedStatus=Y_;exports.durationTypes=G_;exports.feedFilterTypes=to;exports.getProjectOverviewRoutes=iD;exports.getTemplateRoutes=sD;exports.listUpdateTypes=K_;exports.milestoneStatus=Nc;exports.projectOverviewRoutes=St;exports.ruleComparators=kv;exports.ruleDurationUnits=Ev;exports.ruleTriggerTypes=_v;exports.templateItemType=dt;exports.templateRouteNames=co;
|
|
5
|
+
*/function Je(a){let t={r:0,g:0,b:0,a:1};/#/.test(a)?t=gf(a):/rgb/.test(a)?t=Jo(a):typeof a=="string"?t=Jo(`rgba(${a})`):Object.prototype.toString.call(a)==="[object Object]"&&(t=a);const{r:o,g:s,b:n,a:r}=t,{h:i,s:l,v:c}=_f(t);return{r:o,g:s,b:n,a:r===void 0?1:r,h:i,s:l,v:c}}function ho(a){const t=document.createElement("canvas"),o=t.getContext("2d"),s=a*2;return t.width=s,t.height=s,o.fillStyle="#ffffff",o.fillRect(0,0,s,s),o.fillStyle="#ccd5db",o.fillRect(0,0,a,a),o.fillRect(a,a,a,a),t}function Xa(a,t,o,s,n,r){const i=a==="l",l=t.createLinearGradient(0,0,i?o:0,i?0:s);l.addColorStop(.01,n),l.addColorStop(.99,r),t.fillStyle=l,t.fillRect(0,0,o,s)}function Cf({r:a,g:t,b:o},s){const n=i=>("0"+Number(i).toString(16)).slice(-2),r=`#${n(a)}${n(t)}${n(o)}`;return s?r.toUpperCase():r}function gf(a){a=a.slice(1);const t=o=>parseInt(o,16)||0;return{r:t(a.slice(0,2)),g:t(a.slice(2,4)),b:t(a.slice(4,6))}}function Jo(a){return typeof a=="string"?(a=(/rgba?\((.*?)\)/.exec(a)||["","0,0,0,1"])[1].split(","),{r:Number(a[0])||0,g:Number(a[1])||0,b:Number(a[2])||0,a:Number(a[3]?a[3]:1)}):a}function _f({r:a,g:t,b:o}){a=a/255,t=t/255,o=o/255;const s=Math.max(a,t,o),n=Math.min(a,t,o),r=s-n;let i=0;s===n?i=0:s===a?t>=o?i=60*(t-o)/r:i=60*(t-o)/r+360:s===t?i=60*(o-a)/r+120:s===o&&(i=60*(a-t)/r+240),i=Math.floor(i);let l=parseFloat((s===0?0:1-n/s).toFixed(2)),c=parseFloat(s.toFixed(2));return{h:i,s:l,v:c}}var Co=e.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 a=this.$refs.canvasSaturation,t=this.size,o=a.getContext("2d");a.width=t,a.height=t,o.fillStyle=this.color,o.fillRect(0,0,t,t),Xa("l",o,t,t,"#FFFFFF","rgba(255,255,255,0)"),Xa("p",o,t,t,"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(a){const{top:t,left:o}=this.$el.getBoundingClientRect(),s=a.target.getContext("2d"),n=i=>{let l=i.clientX-o,c=i.clientY-t;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=s.getImageData(Math.min(l,this.size-1),Math.min(c,this.size-1),1,1),[d,p,m]=u.data;this.$emit("selectSaturation",{r:d,g:p,b:m})};n(a);const r=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)}}});const yf={ref:"canvasSaturation"};function bf(a,t,o,s,n,r){return e.openBlock(),e.createBlock("div",{class:"saturation",onMousedown:t[1]||(t[1]=e.withModifiers((...i)=>a.selectSaturation&&a.selectSaturation(...i),["prevent","stop"]))},[e.createVNode("canvas",yf,null,512),e.createVNode("div",{style:a.slideSaturationStyle,class:"slide"},null,4)],32)}Co.render=bf;Co.__file="src/color/Saturation.vue";var go=e.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 a=this.$refs.canvasHue,t=this.width,o=this.height,s=a.getContext("2d");a.width=t,a.height=o;const n=s.createLinearGradient(0,0,0,o);n.addColorStop(0,"#FF0000"),n.addColorStop(.17*1,"#FF00FF"),n.addColorStop(.17*2,"#0000FF"),n.addColorStop(.17*3,"#00FFFF"),n.addColorStop(.17*4,"#00FF00"),n.addColorStop(.17*5,"#FFFF00"),n.addColorStop(1,"#FF0000"),s.fillStyle=n,s.fillRect(0,0,t,o)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(a){const{top:t}=this.$el.getBoundingClientRect(),o=a.target.getContext("2d"),s=r=>{let i=r.clientY-t;i<0&&(i=0),i>this.height&&(i=this.height),this.slideHueStyle={top:i-2+"px"};const l=o.getImageData(0,Math.min(i,this.height-1),1,1),[c,u,d]=l.data;this.$emit("selectHue",{r:c,g:u,b:d})};s(a);const n=()=>{document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",n)};document.addEventListener("mousemove",s),document.addEventListener("mouseup",n)}}});const kf={ref:"canvasHue"};function wf(a,t,o,s,n,r){return e.openBlock(),e.createBlock("div",{class:"hue",onMousedown:t[1]||(t[1]=e.withModifiers((...i)=>a.selectHue&&a.selectHue(...i),["prevent","stop"]))},[e.createVNode("canvas",kf,null,512),e.createVNode("div",{style:a.slideHueStyle,class:"slide"},null,4)],32)}go.render=wf;go.__file="src/color/Hue.vue";var _o=e.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 a=this.$refs.canvasAlpha,t=this.width,o=this.height,s=this.alphaSize,n=ho(s),r=a.getContext("2d");a.width=t,a.height=o,r.fillStyle=r.createPattern(n,"repeat"),r.fillRect(0,0,t,o),Xa("p",r,t,o,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(a){const{top:t}=this.$el.getBoundingClientRect(),o=n=>{let r=n.clientY-t;r<0&&(r=0),r>this.height&&(r=this.height);let i=parseFloat((r/this.height).toFixed(2));this.$emit("selectAlpha",i)};o(a);const s=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",s)}}});const $f={ref:"canvasAlpha"};function Ef(a,t,o,s,n,r){return e.openBlock(),e.createBlock("div",{class:"color-alpha",onMousedown:t[1]||(t[1]=e.withModifiers((...i)=>a.selectAlpha&&a.selectAlpha(...i),["prevent","stop"]))},[e.createVNode("canvas",$f,null,512),e.createVNode("div",{style:a.slideAlphaStyle,class:"slide"},null,4)],32)}_o.render=Ef;_o.__file="src/color/Alpha.vue";var yo=e.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 a=this.$el,t=this.width,o=this.height,s=this.alphaSize,n=ho(s),r=a.getContext("2d");a.width=t,a.height=o,r.fillStyle=r.createPattern(n,"repeat"),r.fillRect(0,0,t,o),r.fillStyle=this.color,r.fillRect(0,0,t,o)}}});function Bf(a,t,o,s,n,r){return e.openBlock(),e.createBlock("canvas")}yo.render=Bf;yo.__file="src/color/Preview.vue";var bo=e.defineComponent({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(a){this.isSucking=!1,this.suckColor(a)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(a){a.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(a){const{clientX:t,clientY:o}=a,{top:s,left:n,width:r,height:i}=this.suckerCanvas.getBoundingClientRect(),l=t-n,c=o-s,d=this.suckerCanvas.getContext("2d").getImageData(Math.min(l,r-1),Math.min(c,i-1),1,1);let[p,m,h,f]=d.data;f=parseFloat((f/255).toFixed(2));const y=this.suckerPreview.style;Object.assign(y,{position:"absolute",left:t+20+"px",top:o-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${p}, ${m}, ${h}, ${f})`,zIndex:95}),this.suckerArea.length&&t>=this.suckerArea[0]&&o>=this.suckerArea[1]&&t<=this.suckerArea[2]&&o<=this.suckerArea[3]?y.display="":y.display="none"},suckColor(a){a&&a.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),a.addEventListener("click",t=>{const{clientX:o,clientY:s}=t,{top:n,left:r,width:i,height:l}=a.getBoundingClientRect(),c=o-r,u=s-n,p=a.getContext("2d").getImageData(Math.min(c,i-1),Math.min(u,l-1),1,1);let[m,h,f,y]=p.data;y=parseFloat((y/255).toFixed(2)),this.$emit("selectSucker",{r:m,g:h,b:f,a:y})}))}}});const Vf=e.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),Sf={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},Nf=e.createVNode("g",{fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[e.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),e.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function Mf(a,t,o,s,n,r){return e.openBlock(),e.createBlock("div",null,[a.isSucking?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock("svg",{key:0,class:[{active:a.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:t[1]||(t[1]=(...i)=>a.openSucker&&a.openSucker(...i))},[Vf],2)),a.isSucking?(e.openBlock(),e.createBlock("svg",Sf,[Nf])):e.createCommentVNode("v-if",!0)])}bo.render=Mf;bo.__file="src/color/Sucker.vue";var ko=e.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(a,{emit:t}){return{modelColor:e.computed({get(){return a.color||""},set(r){t("inputColor",r)}}),handleFocus:r=>{t("inputFocus",r)},handleBlur:r=>{t("inputBlur",r)}}}});const Tf={class:"color-type"},Af={class:"name"};function Of(a,t,o,s,n,r){return e.openBlock(),e.createBlock("div",Tf,[e.createVNode("span",Af,e.toDisplayString(a.name),1),e.withDirectives(e.createVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=i=>a.modelColor=i),class:"value",onFocus:t[2]||(t[2]=(...i)=>a.handleFocus&&a.handleFocus(...i)),onBlur:t[3]||(t[3]=(...i)=>a.handleBlur&&a.handleBlur(...i))},null,544),[[e.vModelText,a.modelColor]])])}ko.render=Of;ko.__file="src/color/Box.vue";var wo=e.defineComponent({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(a,{emit:t}){const o=e.ref(),s=e.ref([]),n=e.ref();a.colorsHistoryKey&&localStorage&&(s.value=JSON.parse(localStorage.getItem(a.colorsHistoryKey))||[]),n.value=ho(4).toDataURL(),e.onUnmounted(()=>{r(o.value)});function r(l){if(!l)return;const c=s.value||[],u=c.indexOf(l);u>=0&&c.splice(u,1),c.length>=8&&(c.length=7),c.unshift(l),s.value=c||[],localStorage&&a.colorsHistoryKey&&localStorage.setItem(a.colorsHistoryKey,JSON.stringify(c))}function i(l){t("selectColor",l)}return{setColorsHistory:r,colorsHistory:s,color:o,imgAlphaBase64:n,selectColor:i}}});const If={class:"colors"},Df={key:0,class:"colors history"};function Lf(a,t,o,s,n,r){return e.openBlock(),e.createBlock("div",null,[e.createVNode("ul",If,[(e.openBlock(!0),e.createBlock(e.Fragment,null,e.renderList(a.colorsDefault,i=>(e.openBlock(),e.createBlock("li",{key:i,class:"item",onClick:l=>a.selectColor(i)},[e.createVNode("div",{style:{background:`url(${a.imgAlphaBase64})`},class:"alpha"},null,4),e.createVNode("div",{style:{background:i},class:"color"},null,4)],8,["onClick"]))),128))]),a.colorsHistory.length?(e.openBlock(),e.createBlock("ul",Df,[(e.openBlock(!0),e.createBlock(e.Fragment,null,e.renderList(a.colorsHistory,i=>(e.openBlock(),e.createBlock("li",{key:i,class:"item",onClick:l=>a.selectColor(i)},[e.createVNode("div",{style:{background:`url(${a.imgAlphaBase64})`},class:"alpha"},null,4),e.createVNode("div",{style:{background:i},class:"color"},null,4)],8,["onClick"]))),128))])):e.createCommentVNode("v-if",!0)])}wo.render=Lf;wo.__file="src/color/Colors.vue";var pt=e.defineComponent({components:{Saturation:Co,Hue:go,Alpha:_o,Preview:yo,Sucker:bo,Box:ko,Colors:wo},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 Cf(this.rgba,!0)}},created(){Object.assign(this,Je(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(a){const{r:t,g:o,b:s,h:n,s:r,v:i}=Je(a);Object.assign(this,{r:t,g:o,b:s,h:n,s:r,v:i}),this.setText()},handleFocus(a){this.$emit("inputFocus",a)},handleBlur(a){this.$emit("inputBlur",a)},selectHue(a){const{r:t,g:o,b:s,h:n,s:r,v:i}=Je(a);Object.assign(this,{r:t,g:o,b:s,h:n,s:r,v:i}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(a){this.a=a,this.setText()},inputHex(a){const{r:t,g:o,b:s,a:n,h:r,s:i,v:l}=Je(a);Object.assign(this,{r:t,g:o,b:s,a:n,h:r,s:i,v:l}),this.modelHex=a,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(a){const{r:t,g:o,b:s,a:n,h:r,s:i,v:l}=Je(a);Object.assign(this,{r:t,g:o,b:s,a:n,h:r,s:i,v:l}),this.modelHex=this.hexString,this.modelRgba=a,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(a){this.$emit("openSucker",a)},selectSucker(a){const{r:t,g:o,b:s,a:n,h:r,s:i,v:l}=Je(a);Object.assign(this,{r:t,g:o,b:s,a:n,h:r,s:i,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(a){const{r:t,g:o,b:s,a:n,h:r,s:i,v:l}=Je(a);Object.assign(this,{r:t,g:o,b:s,a:n,h:r,s:i,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const Pf={class:"color-set"};function Hf(a,t,o,s,n,r){const i=e.resolveComponent("Saturation"),l=e.resolveComponent("Hue"),c=e.resolveComponent("Alpha"),u=e.resolveComponent("Preview"),d=e.resolveComponent("Sucker"),p=e.resolveComponent("Box"),m=e.resolveComponent("Colors");return e.openBlock(),e.createBlock("div",{class:["hu-color-picker",{light:a.isLightTheme}],style:{width:a.totalWidth+"px"}},[e.createVNode("div",Pf,[e.createVNode(i,{ref:"saturation",color:a.rgbString,hsv:a.hsv,size:a.hueHeight,onSelectSaturation:a.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),e.createVNode(l,{ref:"hue",hsv:a.hsv,width:a.hueWidth,height:a.hueHeight,onSelectHue:a.selectHue},null,8,["hsv","width","height","onSelectHue"]),e.createVNode(c,{ref:"alpha",color:a.rgbString,rgba:a.rgba,width:a.hueWidth,height:a.hueHeight,onSelectAlpha:a.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),e.createVNode("div",{style:{height:a.previewHeight+"px"},class:"color-show"},[e.createVNode(u,{color:a.rgbaString,width:a.previewWidth,height:a.previewHeight},null,8,["color","width","height"]),a.suckerHide?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(d,{key:0,"sucker-canvas":a.suckerCanvas,"sucker-area":a.suckerArea,onOpenSucker:a.openSucker,onSelectSucker:a.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),e.createVNode(p,{name:"HEX",color:a.modelHex,onInputColor:a.inputHex,onInputFocus:a.handleFocus,onInputBlur:a.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),e.createVNode(p,{name:"RGBA",color:a.modelRgba,onInputColor:a.inputRgba,onInputFocus:a.handleFocus,onInputBlur:a.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),e.createVNode(m,{color:a.rgbaString,"colors-default":a.colorsDefault,"colors-history-key":a.colorsHistoryKey,onSelectColor:a.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),e.createCommentVNode(" custom options "),e.renderSlot(a.$slots,"default")],6)}pt.render=Hf;pt.__file="src/color/ColorPicker.vue";pt.install=a=>{a.component(pt.name,pt)};const Rf={class:"color-picker-wrapper"},Aa=e.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(a,{emit:t}){const o=a,s=e.ref(!1),n=e.ref(null),r=e.ref(null),i=e.ref(0),l=e.ref(0),c=async h=>{r.value=h,s.value=!0,await e.nextTick();const f=h.getBoundingClientRect(),y=n.value,v=(y==null?void 0:y.offsetHeight)||300,b=window.innerHeight-f.bottom,g=f.top,C=b<v&&g>v;console.log("pickerHeight = "+v),i.value=C?f.top-v-8:f.bottom+8,l.value=f.left,setTimeout(()=>{window.addEventListener("click",d)},0)},u=e.computed(()=>({position:"fixed",top:`${i.value}px`,left:`${l.value}px`,zIndex:1e3})),d=h=>{const f=h.target;n.value&&!n.value.contains(f)&&(s.value=!1,t("update:color",p.value),window.removeEventListener("click",d))};e.onBeforeUnmount(()=>{window.removeEventListener("click",d)}),e.watch(()=>o.color,h=>{s.value||(p.value=h)});const p=e.ref(o.color),m=h=>{const{r:f,g:y,b:v,a:b}=h.rgba;p.value=`rgba(${f}, ${y}, ${v}, ${b})`};return(h,f)=>(e.openBlock(),e.createElementBlock("div",Rf,[e.renderSlot(h.$slots,"clickable",{openPicker:c,bgColor:h.color}),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:n,class:"color-picker",style:e.normalizeStyle(u.value)},[e.createVNode(e.unref(pt),{class:"color-picker-box",theme:"light",color:h.color,onChangeColor:m},null,8,["color"])],4)):e.createCommentVNode("",!0)]))}});const jf={class:"ao-card-project-phase__header"},Uf={class:"ao-card-project-item__title-line"},Ff={key:0,class:"ao-card-project-item-phase__estimation"},zf={class:"ao-card-project-phase__footer"},Zf={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},xf={class:"ao-card-project-phase__subitem"},Wf={class:"ao-card-project-phase__subitem"},qf={key:0,class:"ao-card-project-phase__secondary"},Yf={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},Kf=e.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(a,{emit:t}){const o=a,s=f=>{t("update:title",f)},n=e.computed(()=>{var f;return((f=o.milestones)==null?void 0:f.reduce((y,v)=>{var b;return y+((b=v.activities)==null?void 0:b.reduce((g,C)=>g+(C.estimation||0),0))},0))||0}),r=e.computed(()=>!o.milestones||!o.timeTrackingData?0:o.milestones.reduce((f,y)=>{var v;return f+(((v=y.activities)==null?void 0:v.reduce((b,g)=>{var _;const C=(_=o.timeTrackingData)==null?void 0:_[g.id];return b+((C==null?void 0:C.timeSpent)||0)},0))||0)},0)),i=e.computed(()=>o.estimationUnit==="days"?"d":"h"),l=e.computed(()=>ba(r.value,o.estimationUnit)),c=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.length}),u=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.filter(y=>y.status===It.done).length}),d=e.computed(()=>(u.value||0)/(c.value||1)),p=e.computed({get:()=>o.deadline??"",set:f=>t("update:deadline",f!=null&&f.length?f:null)}),m=e.computed({get:()=>o.color,set:f=>{t("updatePhase",{id:o.id,color:f})}}),h=(f,y)=>{const v=f.target;v.closest("button")||v.closest("input")||v.closest(".ao-title")||y(v)};return(f,y)=>(e.openBlock(),e.createBlock(Aa,{color:m.value,"onUpdate:color":y[2]||(y[2]=v=>m.value=v)},{clickable:e.withCtx(({openPicker:v,bgColor:b})=>[e.createVNode(Ma,{class:"ao-card-project-phase","is-clickable":f.isEditable,color:b,withLeftBorder:!0,onClick:g=>h(g,v)},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",Uf,[e.createVNode(se,{id:f.id,class:"ao-card-project-phase__title",title:f.name||"",level:4,"is-editable":f.isEditable,"onUpdate:title":s},null,8,["id","title","is-editable"]),n.value||r.value?(e.openBlock(),e.createElementBlock("span",Ff," ("+e.toDisplayString(l.value)+"/"+e.toDisplayString(n.value)+e.toDisplayString(i.value)+")",1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",zf,[c.value?(e.openBlock(),e.createElementBlock("div",Zf,[e.createElementVNode("div",xf,[e.createVNode(J,{name:"MountainFlagOutlineRounded",size:"sm"}),e.createElementVNode("span",Wf,e.toDisplayString(u.value)+" / "+e.toDisplayString(c.value),1)]),e.createVNode(Ta,{percentages:d.value,class:"ao-card-project-phase__progress",color:f.color},null,8,["percentages","color"]),f.$slots.secondary?(e.openBlock(),e.createElementBlock("div",qf,[e.renderSlot(f.$slots,"secondary")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["ao-card-project-phase__footer-row",p.value?"":"ao-card-project-phase__no_deadline"])},[f.isEditable?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=g=>p.value=g),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[e.vModelText,p.value,void 0,{lazy:!0}]]):e.createCommentVNode("",!0),e.createElementVNode("span",Yf,e.toDisplayString(e.unref(ka)(f.deadline)),1)],2)])]),_:2},[f.isEditable?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",jf,[e.createVNode(G,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.active?f.$t("archive"):f.$t("unarchive"),onClick:y[0]||(y[0]=e.withModifiers(()=>f.active?f.$emit("archivePhase",{id:f.id}):f.$emit("unarchivePhase",{id:f.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const Gf=e.defineComponent({__name:"AoBadge",props:{color:{}},setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("span",{class:"aoBadge",style:e.normalizeStyle({backgroundColor:t.color})},null,4))}});const Xf={class:"ao-card-project-milestone__default"},Qf={class:"ao-title-with-badge-wrapper"},Jf={class:"ao-card-project-item__title-line"},ev={key:0,class:"ao-card-project-item-milestone__estimation"},tv={key:0,class:"ao-card-project-milestone__archive"},av={class:"ao-card-project-milestone__activities"},ov={class:"ao-card-project-milestone__activities-row"},nv={class:"ao-card-project-milestone__subitem"},sv={class:"ao-card-project-milestone__subitem"},iv={key:1,class:"ao-card-project-milestone__secondary"},rv={class:"ao-card-project-milestone__footer"},lv={key:1,class:"ao-field ao-card-project-milestone__deadline"},cv={class:"ao-field__label"},dv={key:2,class:"ao-card-project-milestone__assignee"},uv=e.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(a,{emit:t}){const o=a,s=e.computed(()=>{var p;return((p=o.activities)==null?void 0:p.reduce((m,h)=>m+(h.estimation||0),0))||0}),n=e.computed(()=>!o.activities||!o.timeTrackingData?0:o.activities.reduce((p,m)=>{var f;const h=(f=o.timeTrackingData)==null?void 0:f[m.id];return p+((h==null?void 0:h.timeSpent)||0)},0)),r=e.computed(()=>o.estimationUnit==="days"?"d":"h"),i=e.computed(()=>ba(n.value,o.estimationUnit));e.computed(()=>{const p=n.value/60;return p%1===0?p.toString():p.toFixed(2)});const l=e.computed(()=>{var p;return(p=o.activities)==null?void 0:p.length}),c=e.computed(()=>{var p;return(p=o.activities)==null?void 0:p.filter(m=>to(m,o.closedStatus)).length}),u=e.computed(()=>(c.value||0)/(l.value||1)),d=p=>{t("updateMilestone",{id:o.id,name:p})};return(p,m)=>(e.openBlock(),e.createBlock(Ma,{class:e.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!p.readonly,"tag-name":"li","is-selected":p.isSelected,color:p.phaseColor},{default:e.withCtx(()=>[e.createElementVNode("div",Xf,[e.createElementVNode("div",Qf,[e.createVNode(Gf,{color:p.color||""},null,8,["color"]),e.createElementVNode("div",Jf,[e.createVNode(se,{id:p.id,title:p.name||"",level:5,"is-editable":!p.readonly&&p.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":d},null,8,["id","title","is-editable"]),s.value||n.value?(e.openBlock(),e.createElementBlock("span",ev," ("+e.toDisplayString(i.value)+"/"+e.toDisplayString(s.value)+e.toDisplayString(r.value)+")",1)):e.createCommentVNode("",!0)])]),!p.readonly&&p.isEditable?(e.openBlock(),e.createElementBlock("div",tv,[e.createVNode(G,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:p.active?p.$t("archive"):p.$t("unarchive"),onClick:m[0]||(m[0]=e.withModifiers(()=>p.active?p.$emit("archiveMilestone",{id:p.id}):p.$emit("unarchiveMilestone",{id:p.id}),["stop"]))},null,8,["label"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",av,[e.createElementVNode("div",ov,[l.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",nv,[e.createVNode(J,{name:"SelectCheckBox",size:"sm"}),e.createElementVNode("span",sv,e.toDisplayString(c.value)+" / "+e.toDisplayString(l.value),1)]),e.createVNode(Ta,{percentages:u.value,color:p.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):e.createCommentVNode("",!0),p.$slots.secondary?(e.openBlock(),e.createElementBlock("div",iv,[e.renderSlot(p.$slots,"secondary")])):e.createCommentVNode("",!0)])])]),footer:e.withCtx(()=>[e.createElementVNode("div",rv,[p.important?(e.openBlock(),e.createBlock(J,{key:0,name:"FlagRounded",class:e.normalizeClass(p.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):e.createCommentVNode("",!0),p.deadline?(e.openBlock(),e.createElementBlock("label",lv,[e.createElementVNode("span",cv,e.toDisplayString(e.unref(ka)(p.deadline)),1)])):e.createCommentVNode("",!0),p.assignee?(e.openBlock(),e.createElementBlock("div",dv,[e.createVNode(Oe,{"user-name":e.unref($n)(p.assignee),"avatar-url":p.assignee.avatarUrl,color:p.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):e.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}});const pv={class:"ao-mapping-card-project-phase__header"},mv={class:"ao-card-project-item__title-line"},fv={key:0,class:"ao-card-project-item-phase__estimation"},vv={class:"ao-mapping-card-project-phase__footer"},hv={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},Cv={class:"ao-mapping-card-project-phase__subitem"},gv={class:"ao-mapping-card-project-phase__subitem"},_v={key:0,class:"ao-mapping-card-project-phase__secondary"},yv={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},bv=e.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(a,{emit:t}){const o=a,s=f=>{t("update:title",f)},n=e.computed(()=>{var f;return((f=o.milestones)==null?void 0:f.reduce((y,v)=>{var b;return y+((b=v.activities)==null?void 0:b.reduce((g,C)=>g+(C.estimation||0),0))},0))||0}),r=e.computed(()=>!o.milestones||!o.timeTrackingData?0:o.milestones.reduce((f,y)=>{var v;return f+(((v=y.activities)==null?void 0:v.reduce((b,g)=>{var _;const C=(_=o.timeTrackingData)==null?void 0:_[g.id];return b+((C==null?void 0:C.timeSpent)||0)},0))||0)},0)),i=e.computed(()=>o.estimationUnit==="days"?"d":"h"),l=e.computed(()=>ba(r.value,o.estimationUnit)),c=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.length}),u=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.filter(y=>y.status===It.done).length}),d=e.computed(()=>(u.value||0)/(c.value||1)),p=e.computed({get:()=>o.deadline??"",set:f=>t("update:deadline",f!=null&&f.length?f:null)}),m=e.computed({get:()=>o.color,set:f=>{t("updatePhase",{id:o.id,color:f})}}),h=(f,y)=>{const v=f.target;v.closest("button")||v.closest("input")||v.closest(".ao-title")||y()};return(f,y)=>(e.openBlock(),e.createBlock(Aa,{color:m.value,"onUpdate:color":y[2]||(y[2]=v=>m.value=v)},{clickable:e.withCtx(({openPicker:v,bgColor:b})=>[e.createVNode(Ma,{class:"ao-mapping-card-project-phase","is-clickable":f.isEditable,color:b,withLeftBorder:!0,onClick:g=>h(g,v)},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",mv,[e.createVNode(se,{id:f.id,class:"ao-mapping-card-project-phase__title",title:f.name||"",level:4,"is-editable":f.isEditable,"onUpdate:title":s},null,8,["id","title","is-editable"]),n.value||r.value?(e.openBlock(),e.createElementBlock("span",fv," ("+e.toDisplayString(l.value)+"/"+e.toDisplayString(n.value)+e.toDisplayString(i.value)+")",1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",vv,[c.value?(e.openBlock(),e.createElementBlock("div",hv,[e.createElementVNode("div",Cv,[e.createVNode(J,{name:"MountainFlagOutlineRounded",size:"sm"}),e.createElementVNode("span",gv,e.toDisplayString(u.value)+" / "+e.toDisplayString(c.value),1)]),e.createVNode(Ta,{percentages:d.value,class:"ao-mapping-card-project-phase__progress",color:m.value},null,8,["percentages","color"]),f.$slots.secondary?(e.openBlock(),e.createElementBlock("div",_v,[e.renderSlot(f.$slots,"secondary")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["ao-mapping-card-project-phase__footer-row",p.value?"":"ao-mapping-card-project-phase__no_deadline"])},[f.isEditable?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=g=>p.value=g),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[e.vModelText,p.value,void 0,{lazy:!0}]]):e.createCommentVNode("",!0),e.createElementVNode("span",yv,e.toDisplayString(e.unref(ka)(f.deadline)),1)],2)])]),_:2},[f.isEditable?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",pv,[e.createVNode(G,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.active?f.$t("archive"):f.$t("unarchive"),onClick:y[0]||(y[0]=e.withModifiers(()=>f.active?f.$emit("archivePhase",{id:f.id}):f.$emit("unarchivePhase",{id:f.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const kv={class:"ao-project-phase"},wv={key:0,class:"ao-project-phase__drag ao-card__drag"},$v={key:1,class:"ao-project-phase__col-phase"},Ev={key:2,class:"ao-mapping-project-phase__col-phase"},Bv={key:0,class:"ao-project-phase__col-milestones"},Vv={class:"ao-project-phase__milestones-list-footer"},Sv=e.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(a,{emit:t}){const o=a,{t:s}=De();e.watch(()=>o.phase.milestones,(g,C)=>{Ne(g,C)});const n=g=>{t("updatePhase",{id:o.phase.id,name:g})},r=g=>{t("updatePhase",{id:o.phase.id,deadline:g})},i=g=>{t("updatePhase",g)},l=e.computed(()=>o.phase.milestones.map(g=>np(g,o.closedStatus))),c=g=>{const{name:C,rank:_}=nt(l.value??[],"milestone",s);t("addMilestone",{name:C,rank:_,phaseId:g})},u=g=>{t("updateMilestone",g)},d=g=>{t("archiveMilestone",g)},p=g=>{t("unarchiveMilestone",g)},m=g=>{t("archivePhase",g)},h=g=>{t("unarchivePhase",g)},f=g=>{"added"in g?t("updateMilestone",{id:g.added.element.id,phaseId:o.phase.id,rank:mt(l.value,g.added.newIndex)}):"removed"in g||"moved"in g&&t("updateMilestone",{id:g.moved.element.id,rank:mt(l.value,g.moved.newIndex)})},y=jt.useRoute(),v=e.computed(()=>y.path.includes("/mapping")),b=e.computed(()=>{var g;return o.phase.id!==((g=y.params)==null?void 0:g.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:ip(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(g,C)=>(e.openBlock(),e.createElementBlock("li",kv,[e.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:e.normalizeStyle(b.value)},[g.isEditable?(e.openBlock(),e.createElementBlock("div",wv,[e.createVNode(J,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("div",Ev,[e.createVNode(bv,{id:g.phase.id,milestones:l.value,name:g.phase.name,deadline:g.phase.deadline,active:g.phase.active,"is-editable":g.isEditable,color:g.phase.color,"estimation-unit":g.estimationUnit,"onUpdate:deadline":r,"onUpdate:title":n,onArchivePhase:m,onUnarchivePhase:h,onUpdatePhase:i},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(e.openBlock(),e.createElementBlock("div",$v,[e.createVNode(Kf,{id:g.phase.id,milestones:l.value,name:g.phase.name,deadline:g.phase.deadline,active:g.phase.active,"is-editable":g.isEditable,color:g.phase.color,"time-tracking-data":g.timeTrackingData,"estimation-unit":g.estimationUnit,"onUpdate:deadline":r,"onUpdate:title":n,onArchivePhase:m,onUnarchivePhase:h,onUpdatePhase:i},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Bv,[e.createElementVNode("div",{class:"ao-project-phase__milestones",style:e.normalizeStyle(b.value)},[e.createVNode(e.unref(We),e.mergeProps({class:"ao-project-phase__milestones-list",list:l.value,disabled:g.readonly||!g.isEditable,"item-key":"id",group:"kanban"},g.$attrs,{onChange:f}),{item:e.withCtx(({element:_})=>{var B;return[e.createVNode(uv,{id:_.id,name:_.name,color:_.color,"phase-color":g.phase.color,activities:_.activities,deadline:_.deadline,active:_.active,"is-editable":!g.readonly&&g.isEditable,"is-draggable":!g.readonly&&g.isEditable,"closed-status":g.closedStatus,"is-selected":_.id===((B=g.$route.params)==null?void 0:B.milestoneId),assignee:_.assignee,important:_.important,readonly:g.readonly,"time-tracking-data":g.timeTrackingData,"estimation-unit":g.estimationUnit,class:e.normalizeClass(["ao-project-phase__milestone"]),onClick:E=>!g.readonly&&g.$router.push({name:e.unref(oe).milestone,params:{phaseId:g.phase.id,milestoneId:_.id}}),onUpdateMilestone:u,onArchiveMilestone:d,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"]),e.createElementVNode("div",Vv,[g.isEditable?(e.openBlock(),e.createBlock(qe,{key:0,label:g.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:C[0]||(C[0]=()=>c(g.phase.id))},null,8,["label"])):e.createCommentVNode("",!0)])],4)]))]))}});const Nv={class:"ao-project__phases"},Mv={key:0,class:"ao-project-phase__phases-list-footer"},Tv=e.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1),Av={class:"ao-project-phase__col-phase"},Ov=e.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1),$o=e.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(a,{emit:t}){const o=a;e.watch(()=>o.phases,(m,h)=>{Ne(m,h)});const s=m=>{t("addMilestone",m)},n=m=>{t("updateMilestone",m)},r=m=>{t("archiveMilestone",m)},i=m=>{t("unarchiveMilestone",m)},l=m=>{t("archivePhase",m)},c=m=>{t("unarchivePhase",m)},u=m=>{if(m.moved){const h=Zt(m,o.phases??[]);t("updatePhase",{id:m.moved.element.id,rank:h})}},d=m=>{t("updatePhase",m)},p=m=>{t("addPhase",m)};return(m,h)=>(e.openBlock(),e.createElementBlock("div",Nv,[e.createVNode(e.unref(We),{class:"ao-project-phase__phases-list","model-value":m.phases,"item-key":"id",handle:".ao-card__drag",onChange:u},{item:e.withCtx(({element:f})=>[e.createVNode(Sv,{phase:f,"is-editable":!m.readonly&&m.isEditable,"closed-status":m.closedStatus,users:m.users,readonly:m.readonly,"time-tracking-data":m.timeTrackingData,"estimation-unit":m.estimationUnit,onAddMilestone:s,onUpdateMilestone:n,onArchiveMilestone:r,onUnarchiveMilestone:i,onUpdatePhase:d,onArchivePhase:l,onUnarchivePhase:c},null,8,["phase","is-editable","closed-status","users","readonly","time-tracking-data","estimation-unit"])]),_:1},8,["model-value"]),m.isEditable?(e.openBlock(),e.createElementBlock("div",Mv,[Tv,e.createElementVNode("div",Av,[e.createVNode(qe,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:p},null,8,["label"])]),Ov])):e.createCommentVNode("",!0)]))}});const Iv=["onSubmit"],Dv={class:"ao-add-template-modal__form-body"},Lv={class:"field__row"},Pv={class:"ao-add-template-modal__form-footer"},xn=e.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(a,{emit:t}){const o=a,s=e.computed(()=>o.templates.map(l=>({value:l.id,label:l.name}))),n=e.ref(null),r=l=>{n.value=l},i=()=>{n.value&&t("apply",n.value,o.projectId)};return(l,c)=>(e.openBlock(),e.createBlock(wa,{size:"sm"},{header:e.withCtx(()=>[e.createVNode(se,{title:l.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:e.withCtx(()=>[e.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:e.withModifiers(i,["prevent"])},[e.createElementVNode("p",null,e.toDisplayString(l.$t("project.template.apply.notice")),1),e.createElementVNode("div",Dv,[e.createElementVNode("div",Lv,[e.createVNode(le,{value:n.value,options:s.value,detached:!0,onChange:r},null,8,["value","options"])])]),e.createElementVNode("footer",Pv,[e.createVNode(G,{label:l.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:i},null,8,["label"])])],40,Iv)]),_:1}))}});const Hv=["onSubmit"],Rv={class:"ao-save-template-modal__form-body"},jv={class:"field__row"},Uv={class:"ao-field ao-field--inline"},Fv={class:"ao-field__label"},zv={class:"ao-save-template-modal__phases"},Zv={class:"ao-field__label"},xv={class:"ao-save-template-modal__phases-list"},Wv=["value"],qv={class:"ao-save-template-modal__form-footer"},Wn=e.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(a,{emit:t}){const o=a,s=e.ref(""),n=e.ref([]);e.onMounted(()=>{n.value=o.phases.map(i=>i.id)});const r=()=>{s.value&&t("save",s.value,n.value)};return(i,l)=>(e.openBlock(),e.createBlock(wa,{size:"sm"},{header:e.withCtx(()=>[e.createVNode(se,{title:i.$t("project.template.save.title"),level:3},null,8,["title"])]),default:e.withCtx(()=>[e.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:e.withModifiers(r,["prevent"])},[e.createElementVNode("div",Rv,[e.createElementVNode("div",jv,[e.createElementVNode("label",Uv,[e.createElementVNode("span",Fv,e.toDisplayString(i.$t("project.template.name.label"))+": ",1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),type:"text"},null,512),[[e.vModelText,s.value]])])]),e.createElementVNode("div",zv,[e.createElementVNode("div",Zv,e.toDisplayString(i.$t("project.template.phases.label")),1),e.createElementVNode("div",xv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.phases,c=>(e.openBlock(),e.createElementBlock("label",{class:"ao-field ao-field--checkbox",key:c.id},[e.withDirectives(e.createElementVNode("input",{type:"checkbox",value:c.id,"onUpdate:modelValue":l[1]||(l[1]=u=>n.value=u)},null,8,Wv),[[e.vModelCheckbox,n.value]]),e.createElementVNode("span",null,e.toDisplayString(c.name),1)]))),128))])])]),e.createElementVNode("footer",qv,[e.createVNode(G,{label:i.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:r},null,8,["label"])])],40,Hv)]),_:1}))}});const Yv={class:"ao-project"},Kv={class:"ao-project__body"},Gv=e.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(a,{emit:t}){const o=a,{t:s}=De(),n=e.computed(()=>o.phases.flatMap($=>$.milestones)),r=()=>{const{name:$,rank:L}=nt(o.phases,"phase",s);t("addPhase",{name:$,rank:L,projectId:o.project.id})},i=$=>{t("updatePhase",$)},l=$=>{t("archivePhase",$)},c=$=>{t("unarchivePhase",$)},u=$=>{t("copyPhaseToTemplate",$)},d=$=>{t("addMilestone",$)},p=$=>{t("updateMilestone",$)},m=$=>{t("archiveMilestone",$)},h=$=>{t("unarchiveMilestone",$)},f=$=>{t("addActivity",$)},y=$=>{t("update:activity",$)},v=$=>{t("archiveActivity",$)},b=$=>{t("unarchiveActivity",$)},g=$=>{t("addSubtask",$)},C=$=>{t("updateSubtask",$)},_=$=>{t("deleteSubtask",$)},B=e.computed(()=>n.value.flatMap($=>$.activities)),E=$=>{t("addFiles",$)},N=$=>{t("removeFile",$)},D=$=>{t("addComment",$)},j=$=>{t("updateComment",$)},F=$=>{t("removeComment",$)},Z=e.ref(!1),O=e.ref(!1),U=($,L)=>{t("applyTemplate",{templateId:$,projectId:L}),Z.value=!1},K=($,L)=>{var q;const V=(q=o.templates)==null?void 0:q.at(-1),P=V?ne.LexoRank.parse(V.rank).genNext():ne.LexoRank.middle();t("saveTemplate",{templateName:$,rank:P.format(),phaseIds:L}),O.value=!1},W=jt.useRouter(),z=e.ref("overview"),S=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return e.watch(z,$=>{$==="feed"?(W.push({name:oe.feed}),console.log("Navigating to feed...")):$==="overview"?(W.push({name:oe.project}),console.log("Navigating to feed...")):$==="mapping"&&(W.push({name:oe.mapping}),console.log("Navigating to feed..."))}),($,L)=>{var P;const V=e.resolveComponent("RouterView");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({class:"ao-project-overview"},$.$attrs),[e.createElementVNode("div",Yv,[e.createVNode(xt,null,{primary:e.withCtx(()=>[e.createVNode(qt,{tabs:S,modelValue:z.value,"onUpdate:modelValue":L[0]||(L[0]=q=>z.value=q)},null,8,["modelValue"]),e.createVNode(G,{class:"ao-feed__show-archived",size:"sm","icon-name":$.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:$.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":$.showsArchived,onClick:L[1]||(L[1]=q=>$.$emit("update:showsArchived",!$.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:e.withCtx(()=>[$.isEditable===!0?(e.openBlock(),e.createBlock(G,{key:0,class:"ao-project-overview__save-as-template",color:"primary",label:$.$t("project.template.save.label"),onClick:L[2]||(L[2]=q=>O.value=!0)},null,8,["label"])):e.createCommentVNode("",!0),$.isEditable===!0?(e.openBlock(),e.createBlock(G,{key:1,class:"ao-project-overview__add-template",color:"primary",label:$.$t("project.template.apply.label"),onClick:L[3]||(L[3]=q=>Z.value=!0)},null,8,["label"])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",Kv,[e.createVNode($o,{phases:$.phases,"closed-status":$.closedStatus,"is-editable":$.isEditable===!0,users:$.users,"time-tracking-data":$.timeTrackingData,"estimation-unit":(P=$.project)==null?void 0:P.estimationUnit,onAddMilestone:d,onUpdateMilestone:p,onArchiveMilestone:m,onUnarchiveMilestone:h,onAddPhase:r,onUpdatePhase:i,onArchivePhase:l,onUnarchivePhase:c,onCopyPhaseToTemplate:u},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),e.createVNode(V,{class:"ao-project__sidebar",phases:$.phases,"project-id":$.project.id,"project-name":$.project.name,users:$.users,"is-editable":$.isEditable===!0,"closed-status":$.closedStatus,"time-tracking-data":$.timeTrackingData,onClose:L[4]||(L[4]=q=>$.$router.push({name:e.unref(oe).project})),onUpdateMilestone:p,onAddActivity:f,onUpdateActivity:y,onArchiveActivity:v,onUnarchiveActivity:b},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(V,{name:"modal",activities:B.value,"is-task-checkable":$.isTaskCheckable,statuses:$.statuses,"activity-types":$.activityTypes,phases:$.phases,project:$.project,users:$.users,"user-id":$.userId,"is-editable":$.isEditable,"attachment-enabled":$.attachmentEnabled,"time-tracking-data":$.timeTrackingData,"onUpdate:activity":y,onAddSubtask:g,onUpdateSubtask:C,onDeleteSubtask:_,onAddFiles:E,onRemoveFile:N,onAddComment:D,onUpdateComment:j,onRemoveComment:F},{default:e.withCtx(({Component:q})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(q),null,{default:e.withCtx(k=>[e.renderSlot($.$slots,"activityDetailsBody",e.normalizeProps(e.guardReactiveProps(k)))]),_:2},1024))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data"])]))],16),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[O.value?(e.openBlock(),e.createBlock(Wn,{key:0,phases:$.phases,onClose:L[5]||(L[5]=q=>O.value=!1),onSave:K},null,8,["phases"])):e.createCommentVNode("",!0),Z.value?(e.openBlock(),e.createBlock(xn,{key:1,"project-id":$.project.id,templates:$.templates,onClose:L[6]||(L[6]=q=>Z.value=!1),onApply:U},null,8,["project-id","templates"])):e.createCommentVNode("",!0)]))],64)}}});const Xv={class:"ao-card-feed__header"},Qv={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},Jv={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},eh={class:"ao-card-feed__body"},th={key:0,class:"ao-card-feed__breadcrumbs"},ah={class:e.normalizeClass(["ao-card-feed__title-group"])},oh={class:"ao-card-feed__title-line"},nh={key:0,class:"ao-card-feed__slug"},sh={key:1,class:"ao-card-feed__deadline"},ih={class:"ao-card-feed__footer"},rh={class:"ao-card-feed__footer-row"},lh={class:"ao-assignees"},ch={key:0,class:"ao-assignee"},dh={key:0,class:"ao-card-feed__subitems"},uh={key:0,class:"ao-card-feed__subitem"},ph={class:"ao-card-feed__subitem"},mh={key:1,class:"ao-card-feed__subitem"},fh={class:"ao-card-feed__subitem"},vh={class:"ao-card-feed__timer-wrapper"},hh={class:"ao-card-feed__footer-row"},Ch={key:0,class:"ao-card-feed__progress-wrapper"},gh={class:"ao-card-feed__subitem"},_h={class:"ao-card-feed__subitem"},Eo=e.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(a,{emit:t}){const o=a,s=e.computed(()=>o.tagType==="milestone"?o.milestoneName:o.projectName),n=e.computed(()=>o.tagType==="milestone"?o.milestoneColor:o.projectColor),r=f=>{t("updateActivity",{id:o.id,name:f})},i=e.computed(()=>o.tagType==="milestone"&&o.phaseName?`${o.phaseName}`:o.phaseName&&o.milestoneName?`${o.phaseName} / ${o.milestoneName}`:""),l=e.computed(()=>o.assignee?[o.assignee]:[]),c=e.computed(()=>ka(o.deadline)),u=f=>{t("removeAssignee",f)},d=()=>{t("startTimer",{activityId:o.id,name:o.name,project:o.projectName,projectId:o.projectId,slug:o.slug})},p=e.computed(()=>{var f;return(f=o.tasks)==null?void 0:f.length}),m=e.computed(()=>{var f;return(f=o.tasks)==null?void 0:f.filter(y=>y.isDone).length}),h=e.computed(()=>(m.value||0)/(p.value||1));return(f,y)=>(e.openBlock(),e.createBlock(Ma,{class:e.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":f.isClosed}]),"is-clickable":!0},{header:e.withCtx(()=>[e.createElementVNode("div",Xv,[s.value?(e.openBlock(),e.createBlock(Ot,{key:0,label:s.value,class:"ao-card-feed__project",variant:"solid",color:f.projectColor?void 0:"primary","raw-color":n.value},null,8,["label","color","raw-color"])):e.createCommentVNode("",!0),f.isPrivate||f.important||f.isClosed?(e.openBlock(),e.createElementBlock("div",Qv,[f.isPrivate?(e.openBlock(),e.createBlock(J,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):e.createCommentVNode("",!0),f.important?(e.openBlock(),e.createBlock(J,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):e.createCommentVNode("",!0),f.isClosed?(e.openBlock(),e.createBlock(J,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),f.$slots.secondary?(e.openBlock(),e.createElementBlock("div",Jv,[e.renderSlot(f.$slots,"secondary")])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",eh,[i.value?(e.openBlock(),e.createElementBlock("span",th,e.toDisplayString(i.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ah,[e.createElementVNode("div",oh,[f.slug?(e.openBlock(),e.createElementBlock("span",nh,e.toDisplayString(f.slug)+": ",1)):e.createCommentVNode("",!0),e.createVNode(se,{id:f.id,title:f.name,level:5,"is-editable":f.isEditable,"onUpdate:title":r,class:"ao-card-feed__title-inline"},null,8,["id","title","is-editable"])])]),f.deadline?(e.openBlock(),e.createElementBlock("span",sh,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",ih,[e.createElementVNode("div",rh,[e.createElementVNode("ul",lh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,v=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:v.id},[v?(e.openBlock(),e.createElementBlock("li",ch,[e.createVNode(Oe,{"user-name":e.unref($n)(v),"avatar-url":v.avatarUrl,"is-closable":!0,onClose:()=>u(v.id)},null,8,["user-name","avatar-url","onClose"])])):e.createCommentVNode("",!0)],64))),128))]),f.comments||f.attachments?(e.openBlock(),e.createElementBlock("ul",dh,[f.comments?(e.openBlock(),e.createElementBlock("li",uh,[e.createVNode(J,{name:"ChatOutline",size:"sm"}),e.createElementVNode("span",ph,e.toDisplayString(f.comments),1)])):e.createCommentVNode("",!0),f.attachments?(e.openBlock(),e.createElementBlock("li",mh,[e.createVNode(J,{name:"AttachFileRounded",size:"sm"}),e.createElementVNode("span",fh,e.toDisplayString(f.attachments),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",vh,[e.createVNode(J,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:e.withModifiers(d,["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",hh,[f.tasks&&f.tasks.length?(e.openBlock(),e.createElementBlock("div",Ch,[e.createElementVNode("div",gh,[e.createVNode(J,{name:"SelectCheckBox",size:"sm"}),e.createElementVNode("span",_h,e.toDisplayString(m.value)+" / "+e.toDisplayString(p.value),1)]),e.createVNode(Ta,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):e.createCommentVNode("",!0)])])]),_:3},8,["class"]))}});const yh={class:"ao-project-milestone"},bh={class:"ao-project-milestone__header"},kh={class:"ao-project-milestone__header_line"},wh={class:"ao-project-milestone__header_line"},$h={class:"ao-project-milestone__title"},Eh={key:0,class:"ao-fieldset ao-milestone__fieldset"},Bh={class:"ao-field__row ao-milestone__field-row"},Vh={class:"ao-field ao-field--inline"},Sh={class:"ao-field__row ao-milestone__field-row"},Nh={class:"ao-field ao-milestone__field-multiselect"},Mh=["onClick"],Th={class:"ao-project-milestone__body"},Ah={key:0,class:"ao-project-milestone__footer"},en=e.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(a,{emit:t}){const o=a,{t:s}=De(),n=_=>{var B;t("startTimer",_),(B=window.parent)==null||B.postMessage({type:"startTimer",data:_},"*")},r=e.computed(()=>{var _;return(_=o.phases)==null?void 0:_.find(B=>B.id===o.phaseId)}),i=e.computed(()=>{var _;return(_=o.phases)==null?void 0:_.flatMap(B=>B.milestones)}),l=e.computed(()=>{var _;return(_=i.value)==null?void 0:_.find(B=>B.id===o.milestoneId)}),c=e.computed(()=>{var _;return(_=l.value)==null?void 0:_.activities});e.watch(c,(_,B)=>{Ne(_,B)});const u=_=>{t("close",_)},d=()=>{const{name:_,rank:B}=nt(c.value??[],"activity",s);t("addActivity",{milestoneId:o.milestoneId,name:_,rank:B,projectId:o.projectId})},p=_=>{t("updateActivity",_)},m=_=>{c.value&&"moved"in _&&t("updateActivity",{id:_.moved.element.id,rank:mt(c.value,_.moved.newIndex)})},h=e.computed({get:()=>{var _;return(_=l.value)==null?void 0:_.color},set:_=>{l.value&&t("updateMilestone",{id:l.value.id,color:_})}}),f=e.computed({get:()=>{var _;return((_=l==null?void 0:l.value)==null?void 0:_.deadline)??""},set:_=>{l.value&&t("updateMilestone",{id:l.value.id,deadline:_!=null&&_.length?_:null})}}),y=_=>o.closedStatus?to(_,o.closedStatus):!1,v=e.computed(()=>{var _;return((_=o.users)==null?void 0:_.map(B=>({label:`${B.firstName} ${B.lastName}`,value:B.id,avatar:B.avatarUrl})))||[]}),b=e.computed({get(){var _,B;return(B=(_=l.value)==null?void 0:_.assignee)!=null&&B.id?[l.value.assignee.id]:[]},set(_){t("updateMilestone",{id:o.milestoneId,assigneeId:_[0]??null})}}),g=e.computed({get(){var _;return((_=l.value)==null?void 0:_.important)??!1},set(_){t("updateMilestone",{id:o.milestoneId,important:_})}}),C=(_,B)=>{const E=_.currentTarget;E instanceof HTMLElement&&B(E)};return(_,B)=>{var E;return e.openBlock(),e.createElementBlock("div",yh,[e.createElementVNode("header",bh,[e.createElementVNode("div",kh,[e.createVNode(G,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:u})]),e.createElementVNode("div",wh,[e.createElementVNode("div",$h,[e.createVNode(se,{title:((E=l.value)==null?void 0:E.name)||_.milestoneId,level:5},null,8,["title"]),e.createVNode(zn,{modelValue:g.value,"onUpdate:modelValue":B[0]||(B[0]=N=>g.value=N),modelModifiers:{lazy:!0},disabled:!_.isEditable,class:"ao-milestone__important",color:"danger",label:_.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),l.value?(e.openBlock(),e.createElementBlock("div",Eh,[e.createElementVNode("div",Bh,[e.createElementVNode("label",Vh,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":B[1]||(B[1]=N=>f.value=N),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[e.vModelText,f.value,void 0,{lazy:!0}]])])]),e.createElementVNode("div",Sh,[e.createElementVNode("label",Nh,[e.createVNode(le,{modelValue:b.value,"onUpdate:modelValue":B[2]||(B[2]=N=>b.value=N),options:v.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:_.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!_.isEditable,caret:_.isEditable},{tag:e.withCtx(({option:N,handleTagRemove:D})=>[e.createVNode(Oe,{"user-name":N.label,"avatar-url":N.avatar,"is-closable":!0,onClose:j=>D(N,j)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),e.createVNode(Aa,{color:h.value,"onUpdate:color":B[3]||(B[3]=N=>h.value=N)},{clickable:e.withCtx(({openPicker:N,bgColor:D})=>[e.createElementVNode("button",{style:e.normalizeStyle({background:D}),class:"color-button",onClick:j=>C(j,N)},null,12,Mh)]),_:1},8,["color"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Th,[e.createVNode(e.unref(We),e.mergeProps({class:"ao-project-milestone__activities",list:c.value,disabled:!_.isEditable,"item-key":"id",group:"kanban"},_.$attrs,{onChange:m}),{item:e.withCtx(({element:N})=>{var D,j,F,Z,O;return[e.createVNode(Eo,{id:N.id,name:N.name||N.id,"project-id":_.projectId,"phase-name":(D=r.value)==null?void 0:D.name,"milestone-name":(j=l.value)==null?void 0:j.name,"milestone-color":(F=l.value)==null?void 0:F.color,deadline:N.deadline,important:N.important,users:_.users,assignee:N.assignee,slug:N.slug,comments:(Z=N.comments)==null?void 0:Z.length,attachments:(O=N.attachments)==null?void 0:O.length,tasks:N.tasks,"is-editable":_.isEditable,"is-private":N.private,"is-closed":y(N),onClick:U=>_.$router.push({name:e.unref(oe).activity,params:{milestoneId:_.milestoneId,activityId:N.id}}),onUpdateActivity:p,onRemoveAssignee:()=>p({id:N.id,assigneeId:null}),onStartTimer:n},e.createSlots({_:2},[_.isEditable?{name:"secondary",fn:e.withCtx(()=>[_.isEditable&&N.active?(e.openBlock(),e.createBlock(G,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:_.$t("archive"),onClick:e.withModifiers(()=>_.$emit("archiveActivity",{id:N.id}),["stop"])},null,8,["label","onClick"])):e.createCommentVNode("",!0),_.isEditable&&!N.active?(e.openBlock(),e.createBlock(G,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:_.$t("feed.activity.unarchive"),onClick:e.withModifiers(()=>_.$emit("unarchiveActivity",{id:N.id}),["stop"])},null,8,["label","onClick"])):e.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"]),_.isEditable?(e.openBlock(),e.createElementBlock("div",Ah,[e.createVNode(qe,{"icon-name":"Add",label:_.$t("project.activity.add"),onClick:d},null,8,["label"])])):e.createCommentVNode("",!0)])])}}});const Oh=e.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(a,{emit:t}){const o=a,s=e.computed(()=>{var v;return(v=o.phases)==null?void 0:v.find(b=>b.id===o.phaseId)}),n=e.computed(()=>{var v;return(v=o.phases)==null?void 0:v.flatMap(b=>b.milestones)}),r=e.computed(()=>{var v;return(v=n.value)==null?void 0:v.find(b=>b.id===o.milestoneId)}),i=e.computed(()=>{var v;return(v=o.activities)==null?void 0:v.find(b=>b.id===o.activityId)}),l=v=>{t("update:activity",v)},c=v=>{t("addSubtask",v)},u=v=>{t("updateSubtask",v)},d=v=>{t("deleteSubtask",v)},p=v=>{t("addFiles",v)},m=v=>{t("removeFile",v)},h=v=>{t("addComment",v)},f=v=>{t("updateComment",v)},y=v=>{t("removeComment",v)};return(v,b)=>{var g,C;return i.value?(e.openBlock(),e.createBlock(vo,{key:0,activity:i.value,"activity-types":v.activityTypes,"milestone-id":v.milestoneId,"template-activities":v.activities,"is-template":!1,users:v.users,"user-id":v.userId,"is-task-checkable":v.isTaskCheckable,statuses:v.statuses,breadcrumbs:`${(g=s.value)==null?void 0:g.name} / ${(C=r.value)==null?void 0:C.name}`,"is-editable":v.isEditable,"attachment-enabled":v.attachmentEnabled,projects:[v.project],"time-tracking-data":v.timeTrackingData,onClose:v.$router.back,"onUpdate:activity":l,onAddSubtask:c,onUpdateSubtask:u,onDeleteSubtask:d,onAddFiles:p,onRemoveFile:m,onAddComment:h,onUpdateComment:f,onRemoveComment:y},{default:e.withCtx(_=>[e.renderSlot(v.$slots,"default",e.normalizeProps(e.guardReactiveProps(_)))]),_: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"])):e.createCommentVNode("",!0)}}}),Ih={class:"ao-col-header"},Dh=e.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("header",Ih,[e.createVNode(se,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(e.openBlock(),e.createBlock(Ot,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):e.createCommentVNode("",!0)]))}});function Lh(a){return e.getCurrentScope()?(e.onScopeDispose(a),!0):!1}function va(a){return typeof a=="function"?a():e.unref(a)}const Ph=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Hh=a=>a!=null,At=()=>{};function Rh(a,t){function o(...s){return new Promise((n,r)=>{Promise.resolve(a(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(n).catch(r)})}return o}function jh(a,t={}){let o,s,n=At;const r=l=>{clearTimeout(l),n(),n=At};return l=>{const c=va(a),u=va(t.maxWait);return o&&r(o),c<=0||u!==void 0&&u<=0?(s&&(r(s),s=null),Promise.resolve(l())):new Promise((d,p)=>{n=t.rejectOnCancel?p:d,u&&!s&&(s=setTimeout(()=>{o&&r(o),s=null,d(l())},u)),o=setTimeout(()=>{s&&r(s),s=null,d(l())},c)})}}function Uh(a,t=200,o={}){return Rh(jh(t,o),a)}function Wa(a){var t;const o=va(a);return(t=o==null?void 0:o.$el)!=null?t:o}const Fh=Ph?window:void 0;function zh(){const a=e.ref(!1),t=e.getCurrentInstance();return t&&e.onMounted(()=>{a.value=!0},t),a}function Zh(a){const t=zh();return e.computed(()=>(t.value,!!a()))}function xh(a,t,o={}){const{root:s,rootMargin:n="0px",threshold:r=.1,window:i=Fh,immediate:l=!0}=o,c=Zh(()=>i&&"IntersectionObserver"in i),u=e.computed(()=>{const f=va(a);return(Array.isArray(f)?f:[f]).map(Wa).filter(Hh)});let d=At;const p=e.ref(l),m=c.value?e.watch(()=>[u.value,Wa(s),p.value],([f,y])=>{if(d(),!p.value||!f.length)return;const v=new IntersectionObserver(t,{root:Wa(y),rootMargin:n,threshold:r});f.forEach(b=>b&&v.observe(b)),d=()=>{v.disconnect(),d=At}},{immediate:l,flush:"post"}):At,h=()=>{d(),m(),p.value=!1};return Lh(h),{isSupported:c,isActive:p,pause(){d(),p.value=!1},resume(){p.value=!0},stop:h}}const Wh={class:e.normalizeClass(["ao-list-kanban"])},qh={class:"ao-list-kanban__header"},Yh={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},Kh={key:1,class:"ao-list-kanban__end"},Gh={key:0,class:"ao-list-kanban__no-more"},Xh={key:1,class:"ao-list-kanban__divider"},Qh={key:1,class:"ao-list-kanban__footer"},Jh=e.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(a,{emit:t}){const o=a,s=e.ref(!1),n=e.ref(null);xh(n,([{isIntersecting:d}])=>{s.value=d}),e.watch(s,d=>{d&&o.hasMore&&!o.isLoading&&t("loadMore")});const r=d=>{var p;return o.isEditable===!0?!0:o.userId&&o.isEditable==="only-own"?o.userId===((p=d.assignee)==null?void 0:p.id):!1},i=d=>{t("selectActivity",d)},l=d=>{t("updateActivity",d)},c=d=>{"added"in d?t("updateActivity",{id:d.added.element.id,statusId:o.status.id,rank:mt(o.list,d.added.newIndex)}):"removed"in d||"moved"in d&&t("updateActivity",{id:d.moved.element.id,rank:mt(o.list,d.moved.newIndex)})},u=e.ref(!1);return(d,p)=>(e.openBlock(),e.createElementBlock("div",Wh,[d.title||d.$slots.header?e.renderSlot(d.$slots,"header",{key:0},()=>{var m;return[e.createElementVNode("div",qh,[d.title?(e.openBlock(),e.createBlock(Dh,{key:0,title:d.title,level:3,items:(m=d.list)==null?void 0:m.length},null,8,["title","items"])):e.createCommentVNode("",!0)])]}):e.createCommentVNode("",!0),e.createVNode(e.unref(We),e.mergeProps({class:["ao-list-kanban__list",u.value?"ao-list-kanban__transition":void 0],list:d.list,"item-key":"id",group:"kanban","ghost-class":"ao-list-kanban__ghost",animation:"200"},d.$attrs,{draggable:".ao-list-draggable",disabled:!d.isEditable,onChange:c,onStart:p[1]||(p[1]=m=>u.value=!0),onEnd:p[2]||(p[2]=m=>u.value=!1),"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"}}),{item:e.withCtx(({element:m})=>{var h,f,y,v,b,g,C,_,B,E;return[e.createVNode(Eo,{class:e.normalizeClass(r(m)?"ao-list-draggable":""),id:m.id,name:m.name,"project-name":(h=m.project)==null?void 0:h.name,"project-id":(f=m.project)==null?void 0:f.id,"project-color":(y=m.project)==null?void 0:y.color,"phase-name":(b=(v=m.milestone)==null?void 0:v.phase)==null?void 0:b.name,"milestone-name":(g=m.milestone)==null?void 0:g.name,"milestone-color":(C=m.milestone)==null?void 0:C.color,deadline:m.deadline,rules:((_=m.rules)==null?void 0:_.length)||0,tasks:m.tasks,description:m.description,important:m.important,type:m.type,comments:(B=m.comments)==null?void 0:B.length,attachments:(E=m.attachments)==null?void 0:E.length,users:d.users,assignee:m.assignee,slug:m.slug,"is-editable":r(m),"is-private":m.private,"tag-type":d.tagType,onUpdateActivity:[N=>r(m)&&l(N),()=>r(m)&&l],onClick:()=>i(m.id),onRemoveAssignee:()=>r(m)&&l({id:m.id,assigneeId:null}),onStartTimer:p[0]||(p[0]=N=>d.$emit("startTimer",N))},{secondary:e.withCtx(()=>[r(m)&&m.active?(e.openBlock(),e.createBlock(G,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:d.$t("feed.activity.archive"),onClick:e.withModifiers(()=>d.$emit("archiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):e.createCommentVNode("",!0),r(m)&&!m.active?(e.openBlock(),e.createBlock(G,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:d.$t("feed.activity.unarchive"),onClick:e.withModifiers(()=>d.$emit("unarchiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):e.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:e.withCtx(()=>[d.isLoading?(e.openBlock(),e.createElementBlock("div",Yh,[e.createVNode(J,{name:"Loading"})])):d.hasMore?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:n,class:"ao-list-kanban__end"},null,512)):(e.openBlock(),e.createElementBlock("div",Kh,[d.noMoreLabel?(e.openBlock(),e.createElementBlock("span",Gh,e.toDisplayString(d.noMoreLabel),1)):d.isEditable?(e.openBlock(),e.createElementBlock("span",Xh)):e.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),d.$slots.footer||d.footerLabel?(e.openBlock(),e.createElementBlock("div",Qh,[e.renderSlot(d.$slots,"footer",{},()=>[d.isEditable?(e.openBlock(),e.createBlock(qe,{key:0,"icon-name":"AddBoxOutlineRounded",label:d.footerLabel,onClick:p[3]||(p[3]=m=>d.$emit("add"))},null,8,["label"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]))}});const e9={class:"ao-field ao-search-field"},t9=["value","placeholder","onKeypress"],a9=e.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(a,{emit:t}){const o=a,s=async i=>{const c=i.target.value;t("update:modelValue",c,i)},n=Uh(s,o.delay),r=i=>{t("clear",i)};return(i,l)=>(e.openBlock(),e.createElementBlock("div",e9,[e.createElementVNode("input",{value:i.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:i.placeholder,onInput:l[0]||(l[0]=(...c)=>e.unref(n)&&e.unref(n)(...c)),onKeypress:e.withKeys(s,["enter"])},null,40,t9),e.createVNode(J,{name:"SearchRounded",class:e.normalizeClass(`ao-search-field__icon ao-search-field__action ${i.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),e.createVNode(G,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:e.normalizeClass(`ao-search-field__button ao-search-field__action ${i.modelValue?"ao-search-field__action--visible":""}`),onClick:r},null,8,["class"])]))}});const o9={class:"ao-feed"},n9={class:"ao-feed__filters"},s9={class:"ao-feed__body"},qn=e.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(a,{emit:t}){const o=a,{t:s}=De();function n(V,P){t("toast",V,P)}const r=e.toRef(o,"activities"),i=async(V,P)=>{await t("selectActivity",V,P)},l=e.ref({}),c=e.ref(!1),u=e.ref(!1),d=e.computed(()=>o.project?"milestone":"project");e.watch([()=>o.statuses,()=>o.activities,()=>o.initialActivityId,()=>o.initialActivitySlug],async([V,P,q,k],[M,I])=>{l.value=Object.fromEntries(V.map(T=>[T.id,P.filter(R=>{var x;return((x=R.status)==null?void 0:x.id)===T.id})])),q&&!c.value?(i(q,null),c.value=!0):k&&!c.value&&(i(null,k),c.value=!0),u.value&&Ne(P,I)},{immediate:!0});const p=e.computed(()=>{var V;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((V=o.selectedActivity.milestone.phase)==null?void 0:V.name)??""} / ${o.selectedActivity.milestone.name??""}`}),m=V=>{var I,T;const P=(I=o.activities)==null?void 0:I.at(-1),q=P?ne.LexoRank.parse(P.rank).genNext():ne.LexoRank.middle(),k=((T=o.activities)==null?void 0:T.length)??0,M={name:s("activity.defaultName",{idx:k+1}),rank:q.format(),statusId:V.id};o.filters.assigneeId.length>0&&(M.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(M.projectId=o.filters.projectId[0]),o.filters.typeId.length>0&&(M.typeId=o.filters.typeId[0]),u.value=!0,t("addActivity",M)},h=(V,P)=>{u.value=!1,t("update:filters",{...o.filters,[V]:P})},f=e.computed(()=>o.project?[o.project]:o.projects??[]),y=e.computed(()=>f.value.map(V=>({value:V.id,label:V.name}))),v=e.computed(()=>{var V;return(V=o.activityTypes)==null?void 0:V.map(P=>({value:P.id,label:P.name}))}),b=e.computed(()=>o.users.map(V=>({value:V.id,label:`${V.firstName} ${V.lastName}`,avatar:V.avatarUrl}))),g=V=>{o.selectedActivity&&t("update:activity",V)},C=V=>{t("update:activity",V)},_=V=>{t("archiveActivity",V)},B=V=>{t("unarchiveActivity",V)},E=V=>{var P;t("startTimer",V),(P=window.parent)==null||P.postMessage({type:"startTimer",data:V},"*")},N=V=>{u.value=!1,t("update:searchText",V)},D=V=>{u.value=!1,t("clear:searchText",V)},j=V=>{o.selectedActivity&&t("addSubtask",V)},F=V=>{o.selectedActivity&&t("updateSubtask",V)},Z=V=>{o.selectedActivity&&t("deleteSubtask",V)},O=V=>{t("addFiles",V)},U=V=>{t("removeFile",V)},K=V=>{o.selectedActivity&&t("addComment",{...V,activityId:o.selectedActivity.id})},W=V=>{const{id:P}=o.selectedActivity||{};P&&t("updateComment",V)},z=V=>{const{id:P}=o.selectedActivity||{};P&&t("removeComment",V)},S=jt.useRouter(),$=e.ref("feed"),L=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return e.watch($,V=>{V==="feed"?(S.push({name:oe.feed}),console.log("Navigating to feed...")):V==="overview"?(S.push({name:oe.project}),console.log("Navigating to feed...")):V==="mapping"&&(S.push({name:oe.mapping}),console.log("Navigating to feed..."))}),(V,P)=>{var q;return e.openBlock(),e.createElementBlock("div",o9,[e.createVNode(xt,null,{primary:e.withCtx(()=>[e.createElementVNode("div",n9,[e.createVNode(qt,{tabs:L,modelValue:$.value,"onUpdate:modelValue":P[0]||(P[0]=k=>$.value=k)},null,8,["modelValue"]),e.createVNode(a9,{"model-value":V.searchText,placeholder:V.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":N,onClear:D},null,8,["model-value","placeholder"]),o.project?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(le,{key:0,"model-value":V.filters[e.unref(et).project],mode:"tags",options:y.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:V.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":P[1]||(P[1]=k=>h(e.unref(et).project,k))},null,8,["model-value","options","placeholder"])),v.value?(e.openBlock(),e.createBlock(le,{key:1,"model-value":V.filters[e.unref(et).type],mode:"tags",options:v.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:V.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":P[2]||(P[2]=k=>h(e.unref(et).type,k))},null,8,["model-value","options","placeholder"])):e.createCommentVNode("",!0),b.value.length?(e.openBlock(),e.createBlock(le,{key:2,"model-value":V.filters[e.unref(et).assignee],mode:"tags",options:b.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:V.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":P[3]||(P[3]=k=>h(e.unref(et).assignee,k))},{tag:e.withCtx(({option:k,handleTagRemove:M})=>[e.createVNode(Oe,{"user-name":k.label,"avatar-url":k.avatar,"is-closable":!0,onClose:I=>M(k,I)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):e.createCommentVNode("",!0)]),e.createVNode(G,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":V.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:V.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":V.showsOnlyNonAssigned,onClick:P[4]||(P[4]=k=>V.$emit("update:showsOnlyNonAssigned",!V.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),e.createVNode(G,{class:"ao-feed__only-important",size:"sm","icon-name":V.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:V.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":V.showsOnlyImportant,onClick:P[5]||(P[5]=k=>V.$emit("update:showsOnlyImportant",!V.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),e.createVNode(G,{class:"ao-feed__show-archived",size:"sm","icon-name":V.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:V.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":V.showsArchivedActivities,onClick:P[6]||(P[6]=k=>V.$emit("update:showsArchivedActivities",!V.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),e.createElementVNode("div",s9,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.statuses,k=>(e.openBlock(),e.createBlock(Jh,{key:k.id,status:k,list:l.value[k.id],title:k.name,"footer-label":V.$t("feed.activity.add"),users:V.users,"user-id":V.userId,"is-editable":V.isEditable,tagType:d.value,onAdd:()=>m(k),onSelectActivity:i,onArchiveActivity:_,onUnarchiveActivity:B,onUpdateActivity:C,onStartTimer:E},null,8,["status","list","title","footer-label","users","user-id","is-editable","tagType","onAdd"]))),128))]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[V.selectedActivity?(e.openBlock(),e.createBlock(vo,{key:0,activity:V.selectedActivity,"activity-types":V.activityTypes,"milestone-id":(q=V.selectedActivity.milestone)==null?void 0:q.id,"template-activities":r.value,users:V.users,"user-id":V.userId,"is-task-checkable":V.isTaskCheckable,statuses:V.statuses,breadcrumbs:p.value,"is-editable":V.isEditable,"attachment-enabled":V.attachmentEnabled,projects:f.value,"time-tracking-data":V.timeTrackingData,onClose:P[7]||(P[7]=()=>i(null,null)),"onUpdate:activity":g,onAddSubtask:j,onUpdateSubtask:F,onDeleteSubtask:Z,onAddFiles:O,onRemoveFile:U,onAddComment:K,onUpdateComment:W,onRemoveComment:z,onToast:n},{default:e.withCtx(k=>[e.renderSlot(V.$slots,"activityDetailsBody",e.normalizeProps(e.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"])):e.createCommentVNode("",!0)]))])}}});const i9={class:"ao-project-mapping"},r9={class:"ao-project-mapping-mapping__body"},l9={class:"ao-project-mapping-mapping__phases"},c9={key:0,class:"ao-project-mapping-mapping__image-wrapper"},d9=["src","alt"],u9=e.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(a,{emit:t}){const o=a,{t:s}=De(),n=()=>{const{name:v,rank:b}=nt(o.phases,"phase",s);t("addPhase",{name:v,rank:b,projectId:o.project.id})},r=v=>{t("updatePhase",v)},i=v=>{t("archivePhase",v)},l=v=>{t("unarchivePhase",v)},c=v=>{t("copyPhaseToTemplate",v)},u=e.ref(!1),d=e.ref(!1),p=(v,b)=>{t("applyTemplate",{templateId:v,projectId:b}),u.value=!1},m=(v,b)=>{var _;const g=(_=o.templates)==null?void 0:_.at(-1),C=g?ne.LexoRank.parse(g.rank).genNext():ne.LexoRank.middle();t("saveTemplate",{templateName:v,rank:C.format(),phaseIds:b}),d.value=!1},h=jt.useRouter(),f=e.ref("mapping"),y=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return e.watch(f,v=>{v==="feed"?(h.push({name:oe.feed}),console.log("Navigating to feed...")):v==="overview"?(h.push({name:oe.project}),console.log("Navigating to feed...")):v==="mapping"&&(h.push({name:oe.mapping}),console.log("Navigating to feed..."))}),(v,b)=>{var g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({class:"ao-project-mapping-overview"},v.$attrs),[e.createElementVNode("div",i9,[e.createVNode(xt,null,{primary:e.withCtx(()=>[e.createVNode(qt,{modelValue:f.value,"onUpdate:modelValue":b[0]||(b[0]=C=>f.value=C),tabs:y},null,8,["modelValue"]),e.createVNode(G,{class:"ao-feed__show-archived",size:"sm","icon-name":v.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:v.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":v.showsArchived,onClick:b[1]||(b[1]=C=>v.$emit("update:showsArchived",!v.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:e.withCtx(()=>[v.isEditable===!0?(e.openBlock(),e.createBlock(G,{key:0,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:v.$t("project.template.save.label"),onClick:b[2]||(b[2]=C=>d.value=!0)},null,8,["label"])):e.createCommentVNode("",!0),v.isEditable===!0?(e.openBlock(),e.createBlock(G,{key:1,class:"ao-project-mapping-overview__add-template",color:"primary",label:v.$t("project.template.apply.label"),onClick:b[3]||(b[3]=C=>u.value=!0)},null,8,["label"])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",r9,[e.createElementVNode("div",l9,[e.createVNode($o,{phases:v.phases,"closed-status":v.closedStatus,"is-editable":v.isEditable===!0,users:v.users,"estimation-unit":(g=v.project)==null?void 0:g.estimationUnit,onAddPhase:n,onUpdatePhase:r,onArchivePhase:i,onUnarchivePhase:l,onCopyPhaseToTemplate:c},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),v.project.architectureImage?(e.openBlock(),e.createElementBlock("div",c9,[e.createElementVNode("img",{class:"architecture-image",src:v.project.architectureImage.url,alt:e.unref(s)("architectureImage.alt")},null,8,d9)])):e.createCommentVNode("",!0)])])],16),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[d.value?(e.openBlock(),e.createBlock(Wn,{key:0,phases:v.phases,onClose:b[4]||(b[4]=C=>d.value=!1),onSave:m},null,8,["phases"])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createBlock(xn,{key:1,"project-id":v.project.id,templates:v.templates,onClose:b[5]||(b[5]=C=>u.value=!1),onApply:p},null,8,["project-id","templates"])):e.createCommentVNode("",!0)]))],64)}}});const at={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},p9=(a,t={})=>[{path:a,name:at.TEMPLATES,redirect:{name:at.TEMPLATES_LIST},...t,children:[{path:"",name:at.TEMPLATES_LIST,component:Yn},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:at.TEMPLATE_DETAILS,component:Zn,props:!0}]}],oe={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},m9=(a,t={})=>[{path:a,...t,redirect:{name:oe.project},children:[{path:"",name:oe.project,component:Gv,props:!0,children:[{path:":phaseId/:milestoneId",name:oe.milestone,component:en,props:!0},{path:":phaseId/:milestoneId/:activityId",name:oe.activity,props:{default:!0,modal:!0},components:{default:en,modal:Oh}}]},{path:"feed",name:oe.feed,component:qn,props:!0},{path:"mapping",name:oe.mapping,component:u9,props:!0}]}],f9={class:"ao-templates"},Yn=e.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(a,{emit:t}){const o=a,{t:s}=De();e.watch(()=>o.templates,(c,u)=>{Ne(c,u)});const n=()=>{var m,h;const c=(m=o.templates)==null?void 0:m.at(-1),u=c?ne.LexoRank.parse(c.rank).genNext():ne.LexoRank.middle(),d=((h=o.templates)==null?void 0:h.length)??0,p={name:s("template.defaultName.template",{idx:d+1}),rank:u.format()};t("addTemplate",p)},r=(c,u)=>{t("updateItem",{itemType:ee.TEMPLATES,id:c,templateId:c,data:{name:u}})},i=(c,u)=>{t("removeItem",{itemType:ee.TEMPLATES,templateId:c,data:{id:c,...u?{name:u}:{}}})},l=c=>{if(c.moved){const u=Zt(c,o.templates??[]);t("updateItem",{itemType:ee.TEMPLATES,id:c.moved.element.id,templateId:c.moved.element.id,data:{rank:u}})}};return(c,u)=>(e.openBlock(),e.createElementBlock("div",f9,[e.createVNode(xt,null,{secondary:e.withCtx(()=>[e.createVNode(G,{label:c.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:n},null,8,["label"])]),_:1}),e.createVNode(e.unref(We),{"model-value":c.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:l},{item:e.withCtx(({element:d})=>{var p;return[e.createVNode(Tp,{id:d.id,title:d.name,phases:d.phases,milestones:(p=d.phases)!=null&&p.length?e.unref(ep)(d.phases):0,activities:d.phases?e.unref(tp)(d.phases):0,"updated-at":d.updatedAt,"updated-by":d.updatedBy,onUpdateTitle:m=>r(d.id,m),onClick:m=>c.$router.push({name:e.unref(at).TEMPLATE_DETAILS,params:{templateId:d.id}}),onDeleteItem:u[0]||(u[0]=(m,h)=>i(m,h))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}});const v9={class:"ao-field__label"},Kn=e.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["ao-field",{"ao-field--multiselect":t.isMultiselect}])},[e.createElementVNode("span",v9,e.toDisplayString(t.label),1),e.renderSlot(t.$slots,"default")],2))}}),h9=["type","value","disabled","readonly"],C9=e.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(a,{emit:t}){const o=a,s=e.computed(()=>o.modelModifiers.lazy?"change":"input"),n=r=>{o.modelModifiers.number&&(r=Number(r)),t("update:modelValue",r)};return(r,i)=>(e.openBlock(),e.createBlock(Kn,{label:r.label},{default:e.withCtx(()=>[e.createElementVNode("input",e.mergeProps({class:"ao-field__input",type:r.type,value:r.modelValue,disabled:r.isDisabled,readonly:r.isReadonly},{[e.toHandlerKey(s.value)]:i[0]||(i[0]=l=>n(l.target.value))}),null,16,h9)]),_:1},8,["label"]))}}),g9={class:"ao-field"},_9={class:"ao-field__label"},y9=["checked","disabled"],b9=e.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(a){return(t,o)=>(e.openBlock(),e.createElementBlock("label",g9,[e.createElementVNode("span",_9,e.toDisplayString(t.label),1),e.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:t.modelValue,disabled:t.isDisabled,onChange:o[0]||(o[0]=s=>{var n;return t.$emit("update:modelValue",((n=s.target)==null?void 0:n.checked)??!1)})},null,40,y9)]))}});exports.AoAvatar=Oe;exports.AoCardFeed=Eo;exports.AoCheckboxField=b9;exports.AoColorPicker=Aa;exports.AoFeed=qn;exports.AoField=Kn;exports.AoInputField=C9;exports.AoMultiselect=le;exports.AoProjectPhases=$o;exports.AoTabBar=qt;exports.AoTemplateDetails=Zn;exports.AoTemplates=ms;exports.AoTemplatesList=Yn;exports.EstimationUnit=cn;exports.TemplateItemTypeEnum=ln;exports.activityFeedStatus=f2;exports.durationTypes=m2;exports.feedFilterTypes=et;exports.getProjectOverviewRoutes=m9;exports.getTemplateRoutes=p9;exports.listUpdateTypes=v2;exports.milestoneStatus=It;exports.projectOverviewRoutes=oe;exports.ruleComparators=nn;exports.ruleDurationUnits=rn;exports.ruleTriggerTypes=sn;exports.templateItemType=ee;exports.templateRouteNames=at;
|