@file:Suppress("UNCHECKED_CAST", "USELESS_CAST", "INAPPLICABLE_JVM_NAME", "UNUSED_ANONYMOUS_PARAMETER", "SENSELESS_COMPARISON", "NAME_SHADOWING", "UNNECESSARY_NOT_NULL_ASSERTION")
package uni.UNIHelloUniAppX
import io.dcloud.uniapp.*
import io.dcloud.uniapp.extapi.*
import io.dcloud.uniapp.framework.*
import io.dcloud.uniapp.runtime.*
import io.dcloud.uniapp.vue.*
import io.dcloud.uniapp.vue.shared.*
import io.dcloud.unicloud.*
import io.dcloud.uts.*
import io.dcloud.uts.Map
import io.dcloud.uts.Set
import io.dcloud.uts.UTSAndroid
import kotlin.properties.Delegates
import io.dcloud.uniapp.extapi.chooseImage as uni_chooseImage
import io.dcloud.uniapp.extapi.createEditorContextAsync as uni_createEditorContextAsync
import io.dcloud.uniapp.extapi.getElementById as uni_getElementById
import io.dcloud.uniapp.extapi.getWindowInfo as uni_getWindowInfo
import io.dcloud.uniapp.extapi.hideKeyboard as uni_hideKeyboard
import io.dcloud.uniapp.extapi.showToast as uni_showToast
open class GenPagesComponentEditorEditor : BasePage {
    constructor(__ins: ComponentInternalInstance, __renderer: String?) : super(__ins, __renderer) {
        onLoad(fun(_: OnLoadOptions) {
            stat_instance.onLoad(this)
        }
        , __ins)
        onPageShow(fun() {
            stat_instance.onShow(this)
        }
        , __ins)
        onPageHide(fun() {
            stat_instance.onHide(this)
        }
        , __ins)
        onUnload(fun() {
            stat_instance.onUnload(this)
        }
        , __ins)
    }
    open var data: DataType__42
        get() {
            return unref(this.`$exposed`["data"]) as DataType__42
        }
        set(value) {
            setRefValue(this.`$exposed`, "data", value)
        }
    open var openMoreSheet: () -> Unit
        get() {
            return unref(this.`$exposed`["openMoreSheet"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "openMoreSheet", value)
        }
    open var openTitleSheet: () -> Unit
        get() {
            return unref(this.`$exposed`["openTitleSheet"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "openTitleSheet", value)
        }
    open var openStyleSheet: () -> Unit
        get() {
            return unref(this.`$exposed`["openStyleSheet"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "openStyleSheet", value)
        }
    open var openTextColorSheet: () -> Unit
        get() {
            return unref(this.`$exposed`["openTextColorSheet"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "openTextColorSheet", value)
        }
    open var openBackgroundColorSheet: () -> Unit
        get() {
            return unref(this.`$exposed`["openBackgroundColorSheet"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "openBackgroundColorSheet", value)
        }
    open var openLineHeightSheet: () -> Unit
        get() {
            return unref(this.`$exposed`["openLineHeightSheet"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "openLineHeightSheet", value)
        }
    open var openLetterSpacingSheet: () -> Unit
        get() {
            return unref(this.`$exposed`["openLetterSpacingSheet"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "openLetterSpacingSheet", value)
        }
    open var openBlockIndentSheet: () -> Unit
        get() {
            return unref(this.`$exposed`["openBlockIndentSheet"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "openBlockIndentSheet", value)
        }
    open var openListSheet: () -> Unit
        get() {
            return unref(this.`$exposed`["openListSheet"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "openListSheet", value)
        }
    open var openFontSizeSheet: () -> Unit
        get() {
            return unref(this.`$exposed`["openFontSizeSheet"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "openFontSizeSheet", value)
        }
    open var openFontFamilySheet: () -> Unit
        get() {
            return unref(this.`$exposed`["openFontFamilySheet"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "openFontFamilySheet", value)
        }
    open var openAlignSheet: () -> Unit
        get() {
            return unref(this.`$exposed`["openAlignSheet"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "openAlignSheet", value)
        }
    open var closeSheets: () -> Unit
        get() {
            return unref(this.`$exposed`["closeSheets"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "closeSheets", value)
        }
    open var getPanelTitle: () -> String
        get() {
            return unref(this.`$exposed`["getPanelTitle"]) as () -> String
        }
        set(value) {
            setRefValue(this.`$exposed`, "getPanelTitle", value)
        }
    open var getPanelSubtitle: () -> String
        get() {
            return unref(this.`$exposed`["getPanelSubtitle"]) as () -> String
        }
        set(value) {
            setRefValue(this.`$exposed`, "getPanelSubtitle", value)
        }
    open var getTitleSummary: () -> String
        get() {
            return unref(this.`$exposed`["getTitleSummary"]) as () -> String
        }
        set(value) {
            setRefValue(this.`$exposed`, "getTitleSummary", value)
        }
    open var setToolbarFormatsForTest: (header: Number, list: String) -> Unit
        get() {
            return unref(this.`$exposed`["setToolbarFormatsForTest"]) as (header: Number, list: String) -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setToolbarFormatsForTest", value)
        }
    open var applyToolbarPresetForTest: (preset: String) -> Unit
        get() {
            return unref(this.`$exposed`["applyToolbarPresetForTest"]) as (preset: String) -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "applyToolbarPresetForTest", value)
        }
    open var resetFormatsForTest: () -> Unit
        get() {
            return unref(this.`$exposed`["resetFormatsForTest"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "resetFormatsForTest", value)
        }
    open var setParagraph: () -> Unit
        get() {
            return unref(this.`$exposed`["setParagraph"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setParagraph", value)
        }
    open var setHeadingLevel: (level: Number) -> Unit
        get() {
            return unref(this.`$exposed`["setHeadingLevel"]) as (level: Number) -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setHeadingLevel", value)
        }
    open var toggleBold: () -> Unit
        get() {
            return unref(this.`$exposed`["toggleBold"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "toggleBold", value)
        }
    open var toggleItalic: () -> Unit
        get() {
            return unref(this.`$exposed`["toggleItalic"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "toggleItalic", value)
        }
    open var toggleUnderline: () -> Unit
        get() {
            return unref(this.`$exposed`["toggleUnderline"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "toggleUnderline", value)
        }
    open var toggleStrike: () -> Unit
        get() {
            return unref(this.`$exposed`["toggleStrike"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "toggleStrike", value)
        }
    open var setTextColorAndClose: (color: String) -> Unit
        get() {
            return unref(this.`$exposed`["setTextColorAndClose"]) as (color: String) -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setTextColorAndClose", value)
        }
    open var setBackgroundColorAndClose: (color: String) -> Unit
        get() {
            return unref(this.`$exposed`["setBackgroundColorAndClose"]) as (color: String) -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setBackgroundColorAndClose", value)
        }
    open var setLineHeightAndClose: (value: String) -> Unit
        get() {
            return unref(this.`$exposed`["setLineHeightAndClose"]) as (value: String) -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setLineHeightAndClose", value)
        }
    open var setLetterSpacingAndClose: (value: String) -> Unit
        get() {
            return unref(this.`$exposed`["setLetterSpacingAndClose"]) as (value: String) -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setLetterSpacingAndClose", value)
        }
    open var setFontSizeAndClose: (value: String) -> Unit
        get() {
            return unref(this.`$exposed`["setFontSizeAndClose"]) as (value: String) -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setFontSizeAndClose", value)
        }
    open var setFontFamilyAndClose: (value: String) -> Unit
        get() {
            return unref(this.`$exposed`["setFontFamilyAndClose"]) as (value: String) -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setFontFamilyAndClose", value)
        }
    open var toggleTextIndent: () -> Unit
        get() {
            return unref(this.`$exposed`["toggleTextIndent"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "toggleTextIndent", value)
        }
    open var setBlockIndentAndClose: (value: String) -> Unit
        get() {
            return unref(this.`$exposed`["setBlockIndentAndClose"]) as (value: String) -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setBlockIndentAndClose", value)
        }
    open var setAlignLeft: () -> Unit
        get() {
            return unref(this.`$exposed`["setAlignLeft"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setAlignLeft", value)
        }
    open var setAlignCenter: () -> Unit
        get() {
            return unref(this.`$exposed`["setAlignCenter"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setAlignCenter", value)
        }
    open var setAlignRight: () -> Unit
        get() {
            return unref(this.`$exposed`["setAlignRight"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setAlignRight", value)
        }
    open var setAlignJustify: () -> Unit
        get() {
            return unref(this.`$exposed`["setAlignJustify"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setAlignJustify", value)
        }
    open var toggleBlockquote: () -> Unit
        get() {
            return unref(this.`$exposed`["toggleBlockquote"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "toggleBlockquote", value)
        }
    open var toggleCodeBlock: () -> Unit
        get() {
            return unref(this.`$exposed`["toggleCodeBlock"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "toggleCodeBlock", value)
        }
    open var setBulletList: () -> Unit
        get() {
            return unref(this.`$exposed`["setBulletList"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setBulletList", value)
        }
    open var setOrderedList: () -> Unit
        get() {
            return unref(this.`$exposed`["setOrderedList"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setOrderedList", value)
        }
    open var toggleChecklistTool: () -> Unit
        get() {
            return unref(this.`$exposed`["toggleChecklistTool"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "toggleChecklistTool", value)
        }
    open var openLinkModal: () -> Unit
        get() {
            return unref(this.`$exposed`["openLinkModal"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "openLinkModal", value)
        }
    open var closeLinkModal: () -> Unit
        get() {
            return unref(this.`$exposed`["closeLinkModal"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "closeLinkModal", value)
        }
    open var confirmLinkModal: () -> Unit
        get() {
            return unref(this.`$exposed`["confirmLinkModal"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "confirmLinkModal", value)
        }
    open var removeLink: () -> Unit
        get() {
            return unref(this.`$exposed`["removeLink"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "removeLink", value)
        }
    open var insertLink: (text: String, href: String) -> Unit
        get() {
            return unref(this.`$exposed`["insertLink"]) as (text: String, href: String) -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "insertLink", value)
        }
    open var setContents: (options: Any) -> Unit
        get() {
            return unref(this.`$exposed`["setContents"]) as (options: Any) -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "setContents", value)
        }
    open var blur: () -> Unit
        get() {
            return unref(this.`$exposed`["blur"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "blur", value)
        }
    open var clear: () -> Unit
        get() {
            return unref(this.`$exposed`["clear"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "clear", value)
        }
    open var insertDivider: () -> Unit
        get() {
            return unref(this.`$exposed`["insertDivider"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "insertDivider", value)
        }
    open var undo: () -> Unit
        get() {
            return unref(this.`$exposed`["undo"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "undo", value)
        }
    open var redo: () -> Unit
        get() {
            return unref(this.`$exposed`["redo"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "redo", value)
        }
    open var insertImage: (path: String) -> Unit
        get() {
            return unref(this.`$exposed`["insertImage"]) as (path: String) -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "insertImage", value)
        }
    open var removeFormat: () -> Unit
        get() {
            return unref(this.`$exposed`["removeFormat"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "removeFormat", value)
        }
    open var getCon: () -> Unit
        get() {
            return unref(this.`$exposed`["getCon"]) as () -> Unit
        }
        set(value) {
            setRefValue(this.`$exposed`, "getCon", value)
        }
    companion object {
        @Suppress("UNUSED_PARAMETER", "UNUSED_VARIABLE")
        var setup: (__props: GenPagesComponentEditorEditor, __setupCtx: SetupContext) -> Any? = fun(__props, __setupCtx): Any? {
            val __expose = __setupCtx.expose
            val __ins = getCurrentInstance()!!
            val _ctx = __ins.proxy as GenPagesComponentEditorEditor
            val _cache = __ins.renderCache
            val TEXT_COLOR_PRESETS = _uA(
                "#000000",
                "#3f3f3f",
                "#6a6a6a",
                "#949494",
                "#bfbfbf",
                "#d8d8d8",
                "#ececec",
                "#f5f5f5",
                "#ffffff",
                "#f03a37",
                "#f26c2e",
                "#f59a33",
                "#f7d447",
                "#7bc943",
                "#59c3c3",
                "#4a90e2",
                "#3d5ed7",
                "#6f42c1",
                "#d13f96",
                "#f3ddd8",
                "#f7e8da",
                "#f7ecd3",
                "#fbf4d0",
                "#e5f1d4",
                "#d9eeea",
                "#d8eaf6",
                "#dbe3f4",
                "#e4ddf1",
                "#f1dde8",
                "#ff9d9a",
                "#ffb389",
                "#ffcf8a",
                "#fff17a",
                "#b8e986",
                "#7ed6d4",
                "#8cc8f6",
                "#9fb6f0",
                "#c3a5ea",
                "#f09ac5",
                "#ff4d57",
                "#ff7a45",
                "#ffad47",
                "#ffe44d",
                "#7edc3f",
                "#32c5c0",
                "#4aa8f0",
                "#5b7bea",
                "#9556d9",
                "#ec4fa3",
                "#d0021b",
                "#d9480f",
                "#df7b00",
                "#d9b300",
                "#38a000",
                "#1398a0",
                "#1769d2",
                "#2946c7",
                "#5b2db5",
                "#c2187a",
                "#98001a",
                "#952700",
                "#9a4b00",
                "#8a6a00",
                "#1f6f00",
                "#0d5c63",
                "#0d47a1",
                "#16269a",
                "#3c177c",
                "#8e105f"
            ) as UTSArray<String>
            val BACKGROUND_COLOR_PRESETS = _uA(
                "#ffffff",
                "#e8e8e8",
                "#d9d9d9",
                "#c4c4c4",
                "#a8a8a8",
                "#8a8a8a",
                "#6d6d6d",
                "#4f4f4f",
                "#2f2f2f",
                "#fff1f0",
                "#fff4ec",
                "#fff7e8",
                "#fffbe6",
                "#f4fde8",
                "#edfdfb",
                "#eef7ff",
                "#f1f4ff",
                "#f5f0ff",
                "#fff0f7",
                "#ffd9d6",
                "#ffe3cf",
                "#ffecc8",
                "#fff5bf",
                "#e6f7c9",
                "#d8f3f2",
                "#d9ecff",
                "#dfe6ff",
                "#eadfff",
                "#ffd9ee",
                "#ffb8b5",
                "#ffc89f",
                "#ffd997",
                "#fff08a",
                "#d0f0a8",
                "#b8e9e7",
                "#b8dcff",
                "#c4d2ff",
                "#d9c2ff",
                "#ffb9de",
                "#ff8b87",
                "#ffa96f",
                "#ffc15f",
                "#ffe65c",
                "#a9e45f",
                "#86d9d5",
                "#8fc4ff",
                "#9eb5ff",
                "#c29af5",
                "#ff8cc8",
                "#ff5f5b",
                "#ff8a3d",
                "#ffaa2b",
                "#ffd400",
                "#7fd13b",
                "#42bebc",
                "#5da9ff",
                "#738ef5",
                "#9a68e0",
                "#ef5aae",
                "#ffdede",
                "#ffe9dd",
                "#fff1e0",
                "#fff7db",
                "#edf8df",
                "#e1f5f3",
                "#e3f0ff",
                "#e7ebff",
                "#efe8ff",
                "#ffe5f3"
            ) as UTSArray<String>
            fun gen_createDefaultFormats_fn(): Formats {
                return Formats(bold = false, italic = false, underline = false, strike = false, blockquote = false, codeBlock = false, link = "", header = 0, list = "", align = "", textIndent = "", marginLeft = "", marginRight = "", lineHeight = "", letterSpacing = "", fontFamily = "", fontSize = "", color = "", backgroundColor = "")
            }
            val createDefaultFormats = ::gen_createDefaultFormats_fn
            fun gen_assignFormats_fn(target: Formats, source: Formats) {
                target.bold = source.bold
                target.italic = source.italic
                target.underline = source.underline
                target.strike = source.strike
                target.blockquote = source.blockquote
                target.codeBlock = source.codeBlock
                target.link = source.link
                target.header = source.header
                target.list = source.list
                target.align = source.align
                target.textIndent = source.textIndent
                target.marginLeft = source.marginLeft
                target.marginRight = source.marginRight
                target.lineHeight = source.lineHeight
                target.letterSpacing = source.letterSpacing
                target.fontFamily = source.fontFamily
                target.fontSize = source.fontSize
                target.color = source.color
                target.backgroundColor = source.backgroundColor
            }
            val assignFormats = ::gen_assignFormats_fn
            val data = reactive<DataType__42>(DataType__42(pageWindowHeight = 0, pageWindowWidth = 0, toolbarChipRowClass = "toolbar-chip-row", toolbarChipCellClass = "toolbar-chip-cell", tooltipVisible = false, tooltipText = "", tooltipLeft = 0, tooltipTop = 0, sheetHeight = 320, sheetTop = 74, sheetLeft = 12, sheetArrowLeft = 32, sheetAnimated = false, editorInputType = "", isFocused = false, ignoreNextBlur = false, activeSheet = "", autoTest = false, editorReadyTest = false, undoTest = false, redoTest = false, removeFormatTest = false, insertImageTest = false, blurTest = false, clearTest = false, getContentDeltaTest = null, formatPainterActive = false, formatPainterFormats = createDefaultFormats(), formats = createDefaultFormats(), linkModalVisible = false, linkUseSelectionText = false, linkDraftText = "", linkDraftHref = "", linkSelectionText = "", linkOriginalHref = ""))
            val editorContext = ref<EditorContext?>(null)
            var toolbarHideTimer: Number = 0
            var statusSyncLockedUntil: Number = 0
            fun gen_clearToolbarHideTimer_fn() {
                if (toolbarHideTimer > 0) {
                    clearTimeout(toolbarHideTimer)
                    toolbarHideTimer = 0
                }
            }
            val clearToolbarHideTimer = ::gen_clearToolbarHideTimer_fn
            fun gen_scheduleToolbarHide_fn() {
                clearToolbarHideTimer()
                toolbarHideTimer = 0
            }
            val scheduleToolbarHide = ::gen_scheduleToolbarHide_fn
            fun gen_getEditor_fn(): EditorContext? {
                return editorContext.value
            }
            val getEditor = ::gen_getEditor_fn
            fun gen_getToolbarWrapStyle_fn(): String {
                return ""
            }
            val getToolbarWrapStyle = ::gen_getToolbarWrapStyle_fn
            fun gen_hasInlineStyleActive_fn(): Boolean {
                return data.formats.bold || data.formats.italic || data.formats.underline || data.formats.strike || data.formats.lineHeight != "" || data.formats.letterSpacing != "" || data.formats.fontSize != "" || data.formats.fontFamily != "" || data.formats.color != "" || data.formats.backgroundColor != ""
            }
            val hasInlineStyleActive = ::gen_hasInlineStyleActive_fn
            fun gen_getToolbarTooltipStyle_fn(): String {
                return "left:" + data.tooltipLeft + "px;top:" + data.tooltipTop + "px;"
            }
            val getToolbarTooltipStyle = ::gen_getToolbarTooltipStyle_fn
            fun gen_isWideLayout_fn(): Boolean {
                return data.pageWindowWidth >= 1120
            }
            val isWideLayout = ::gen_isWideLayout_fn
            fun gen_isWebPhoneLayout_fn(): Boolean {
                return false
            }
            val isWebPhoneLayout = ::gen_isWebPhoneLayout_fn
            fun gen_syncToolbarBottom_fn() {}
            val syncToolbarBottom = ::gen_syncToolbarBottom_fn
            fun gen_syncToolbarVisibility_fn() {}
            val syncToolbarVisibility = ::gen_syncToolbarVisibility_fn
            fun gen_getPageShellClass_fn(): String {
                if (isWideLayout()) {
                    return "page-shell page-shell-wide"
                }
                return "page-shell"
            }
            val getPageShellClass = ::gen_getPageShellClass_fn
            fun gen_getEditorLayoutClass_fn(): String {
                if (isWideLayout()) {
                    return "editor-layout editor-layout-wide"
                }
                return "editor-layout"
            }
            val getEditorLayoutClass = ::gen_getEditorLayoutClass_fn
            fun gen_getSheetPanelStyle_fn(): String {
                return ""
            }
            val getSheetPanelStyle = ::gen_getSheetPanelStyle_fn
            fun gen_getSheetWidth_fn(): Number {
                val windowWidth = if (data.pageWindowWidth > 0) {
                    data.pageWindowWidth
                } else {
                    uni_getWindowInfo().windowWidth
                }
                var maxWidth = windowWidth - 24
                if (maxWidth < 240) {
                    maxWidth = windowWidth - 12
                }
                if (maxWidth < 220) {
                    return maxWidth
                }
                if (data.activeSheet == "title") {
                    return if (maxWidth < 280) {
                        maxWidth
                    } else {
                        280
                    }
                }
                if (data.activeSheet == "style") {
                    return if (maxWidth < 440) {
                        maxWidth
                    } else {
                        440
                    }
                }
                if (data.activeSheet == "text-color" || data.activeSheet == "background-color") {
                    return if (maxWidth < 372) {
                        maxWidth
                    } else {
                        372
                    }
                }
                if (data.activeSheet == "line-height" || data.activeSheet == "letter-spacing") {
                    return if (maxWidth < 220) {
                        maxWidth
                    } else {
                        220
                    }
                }
                if (data.activeSheet == "align") {
                    return if (maxWidth < 220) {
                        maxWidth
                    } else {
                        220
                    }
                }
                return if (maxWidth < 260) {
                    maxWidth
                } else {
                    260
                }
            }
            val getSheetWidth = ::gen_getSheetWidth_fn
            fun gen_syncToolbarChipClasses_fn() {
                val panelWidth = getSheetWidth()
                if (panelWidth <= 300) {
                    data.toolbarChipRowClass = "toolbar-chip-row toolbar-chip-row-panel toolbar-chip-row-panel-compact"
                } else {
                    data.toolbarChipRowClass = "toolbar-chip-row toolbar-chip-row-panel"
                }
                if (data.activeSheet == "title" || data.activeSheet == "align" || data.activeSheet == "more" || data.activeSheet == "line-height" || data.activeSheet == "letter-spacing" || data.activeSheet == "font-size" || data.activeSheet == "font-family" || data.activeSheet == "block-indent" || data.activeSheet == "list") {
                    data.toolbarChipCellClass = "toolbar-chip-cell toolbar-chip-cell-full"
                    return
                }
                if (data.activeSheet == "style") {
                    data.toolbarChipCellClass = "toolbar-chip-cell toolbar-chip-cell-third"
                    return
                }
                data.toolbarChipCellClass = "toolbar-chip-cell toolbar-chip-cell-quarter"
            }
            val syncToolbarChipClasses = ::gen_syncToolbarChipClasses_fn
            fun gen_getSheetHostStyle_fn(): String {
                return ""
            }
            val getSheetHostStyle = ::gen_getSheetHostStyle_fn
            fun gen_getSheetHostClass_fn(): String {
                return "sheet-host"
            }
            val getSheetHostClass = ::gen_getSheetHostClass_fn
            fun gen_getToolbarPanelArrowStyle_fn(): String {
                return "left:" + data.sheetArrowLeft + "px;"
            }
            val getToolbarPanelArrowStyle = ::gen_getToolbarPanelArrowStyle_fn
            fun gen_isCompactToolbar_fn(): Boolean {
                val windowWidth = if (data.pageWindowWidth > 0) {
                    data.pageWindowWidth
                } else {
                    uni_getWindowInfo().windowWidth
                }
                return windowWidth < 1240
            }
            val isCompactToolbar = ::gen_isCompactToolbar_fn
            fun gen_isDenseToolbar_fn(): Boolean {
                val windowWidth = if (data.pageWindowWidth > 0) {
                    data.pageWindowWidth
                } else {
                    uni_getWindowInfo().windowWidth
                }
                return windowWidth < 980
            }
            val isDenseToolbar = ::gen_isDenseToolbar_fn
            fun gen_isStyleSheetHighlighted_fn(): Boolean {
                return data.activeSheet == "style" || hasInlineStyleActive()
            }
            val isStyleSheetHighlighted = ::gen_isStyleSheetHighlighted_fn
            fun gen_getDesktopFontFamilyLabel_fn(): String {
                if (data.formats.fontFamily == "Microsoft YaHei") {
                    return "雅黑"
                }
                if (data.formats.fontFamily == "SimHei") {
                    return "黑体"
                }
                if (data.formats.fontFamily == "SimSun") {
                    return "宋体"
                }
                if (data.formats.fontFamily == "KaiTi") {
                    return "楷体"
                }
                if (data.formats.fontFamily == "FangSong") {
                    return "仿宋"
                }
                if (data.formats.fontFamily == "Georgia") {
                    return "Geo"
                }
                if (data.formats.fontFamily == "Times New Roman") {
                    return "Times"
                }
                if (data.formats.fontFamily == "Courier New") {
                    return "Mono"
                }
                return "字体"
            }
            val getDesktopFontFamilyLabel = ::gen_getDesktopFontFamilyLabel_fn
            fun gen_getDesktopToolbarShellClass_fn(): String {
                var className = "toolbar-shell"
                if (isCompactToolbar()) {
                    className += " toolbar-shell-compact"
                }
                if (isDenseToolbar()) {
                    className += " toolbar-shell-dense"
                }
                return className
            }
            val getDesktopToolbarShellClass = ::gen_getDesktopToolbarShellClass_fn
            fun gen_getDesktopToolbarGroupClass_fn(isLeading: Boolean): String {
                var className = "toolbar-group"
                if (isLeading) {
                    className += " toolbar-group-leading"
                }
                if (isCompactToolbar()) {
                    className += " toolbar-group-compact"
                    if (isLeading) {
                        className += " toolbar-group-leading-compact"
                    }
                }
                if (isDenseToolbar()) {
                    className += " toolbar-group-dense"
                }
                return className
            }
            val getDesktopToolbarGroupClass = ::gen_getDesktopToolbarGroupClass_fn
            fun gen_getDesktopToolbarDividerClass_fn(): String {
                if (isCompactToolbar()) {
                    return "toolbar-divider toolbar-divider-hidden"
                }
                return "toolbar-divider"
            }
            val getDesktopToolbarDividerClass = ::gen_getDesktopToolbarDividerClass_fn
            fun gen_getToolbarPanelClass_fn(): String {
                return "toolbar-panel toolbar-panel-attached"
            }
            val getToolbarPanelClass = ::gen_getToolbarPanelClass_fn
            fun gen_getToolbarPanelHeaderClass_fn(): String {
                return "toolbar-panel-header"
            }
            val getToolbarPanelHeaderClass = ::gen_getToolbarPanelHeaderClass_fn
            fun gen_getToolbarPanelTitleClass_fn(): String {
                return "toolbar-panel-title"
            }
            val getToolbarPanelTitleClass = ::gen_getToolbarPanelTitleClass_fn
            fun gen_getToolbarPanelSubtitleClass_fn(): String {
                return "toolbar-panel-subtitle"
            }
            val getToolbarPanelSubtitleClass = ::gen_getToolbarPanelSubtitleClass_fn
            fun gen_getToolbarPanelScrollClass_fn(): String {
                return "toolbar-panel-scroll"
            }
            val getToolbarPanelScrollClass = ::gen_getToolbarPanelScrollClass_fn
            fun gen_getDesktopMenuItemClass_fn(active: Boolean): String {
                return if (active) {
                    "desktop-menu-item desktop-menu-item-active"
                } else {
                    "desktop-menu-item"
                }
            }
            val getDesktopMenuItemClass = ::gen_getDesktopMenuItemClass_fn
            fun gen_getDesktopMenuBadgeClass_fn(active: Boolean): String {
                return if (active) {
                    "desktop-menu-badge desktop-menu-badge-active"
                } else {
                    "desktop-menu-badge"
                }
            }
            val getDesktopMenuBadgeClass = ::gen_getDesktopMenuBadgeClass_fn
            fun gen_getDesktopMenuTextClass_fn(active: Boolean): String {
                return if (active) {
                    "desktop-menu-text desktop-menu-text-active"
                } else {
                    "desktop-menu-text"
                }
            }
            val getDesktopMenuTextClass = ::gen_getDesktopMenuTextClass_fn
            fun gen_closeSheets_fn() {
                data.sheetAnimated = false
                data.editorInputType = ""
                data.activeSheet = ""
                syncToolbarChipClasses()
                syncToolbarBottom()
                syncToolbarVisibility()
            }
            val closeSheets = ::gen_closeSheets_fn
            fun gen_getClearColorSwatchClass_fn(isActive: Boolean): String {
                var className = "color-swatch color-swatch-panel"
                className += " color-swatch-clear"
                if (isActive) {
                    className += " color-swatch-active"
                }
                return className
            }
            val getClearColorSwatchClass = ::gen_getClearColorSwatchClass_fn
            fun gen_getFilledColorSwatchClass_fn(isActive: Boolean): String {
                var className = "color-swatch color-swatch-panel"
                if (isActive) {
                    className += " color-swatch-active"
                }
                return className
            }
            val getFilledColorSwatchClass = ::gen_getFilledColorSwatchClass_fn
            fun gen_refocusEditorAfterToolbarAction_fn() {
                setTimeout(fun(){
                    val editorElement = uni_getElementById("editor")
                    if (editorElement != null) {
                        editorElement.focus()
                    }
                }
                , 30)
            }
            val refocusEditorAfterToolbarAction = ::gen_refocusEditorAfterToolbarAction_fn
            fun gen_updatePageWindowHeight_fn() {
                val windowInfo = uni_getWindowInfo()
                data.pageWindowHeight = windowInfo.windowHeight
                data.pageWindowWidth = windowInfo.windowWidth
                syncToolbarChipClasses()
            }
            val updatePageWindowHeight = ::gen_updatePageWindowHeight_fn
            fun gen_getSheetButtonId_fn(sheet: String): String {
                if (sheet == "more") {
                    return "toolbar-button-align"
                }
                if (sheet == "title") {
                    return "toolbar-button-title"
                }
                if (sheet == "style") {
                    return "toolbar-button-style"
                }
                if (sheet == "font-size") {
                    return "toolbar-button-font-size"
                }
                if (sheet == "font-family") {
                    return "toolbar-button-font-family"
                }
                if (sheet == "text-color") {
                    return "toolbar-button-text-color"
                }
                if (sheet == "background-color") {
                    return "toolbar-button-background-color"
                }
                if (sheet == "line-height") {
                    return "toolbar-button-line-height"
                }
                if (sheet == "letter-spacing") {
                    return "toolbar-button-letter-spacing"
                }
                if (sheet == "block-indent") {
                    return "toolbar-button-block-indent"
                }
                if (sheet == "list") {
                    return "toolbar-button-list"
                }
                return "toolbar-button-align"
            }
            val getSheetButtonId = ::gen_getSheetButtonId_fn
            fun gen_updateSheetAnchor_fn(sheet: String) {
                updatePageWindowHeight()
                data.sheetTop = 74
                data.sheetLeft = 12
                data.sheetArrowLeft = 32
                return
            }
            val updateSheetAnchor = ::gen_updateSheetAnchor_fn
            fun gen_onEditorReady_fn() {
                val options = CreateEditorContextAsyncOptions(id = "editor", success = fun(context: EditorContext){
                    editorContext.value = context
                    data.editorReadyTest = true
                }
                , fail = fun(error: UniError){
                    console.log("createEditorContextAsync fail", error)
                }
                )
                uni_createEditorContextAsync(options)
            }
            val onEditorReady = ::gen_onEditorReady_fn
            fun applyFormat(name: String, value: Any?) {
                val editor = getEditor()
                if (editor == null) {
                    return
                }
                statusSyncLockedUntil = Date.now() + 400
                editor.format(name, value)
                editor.scrollIntoView(null)
            }
            fun setLocalFormat(name: String, value: Any?) {
                if (name == "bold") {
                    data.formats.bold = value == true
                    return
                }
                if (name == "italic") {
                    data.formats.italic = value == true
                    return
                }
                if (name == "underline") {
                    data.formats.underline = value == true
                    return
                }
                if (name == "strike") {
                    data.formats.strike = value == true
                    return
                }
                if (name == "blockquote") {
                    data.formats.blockquote = value == true
                    return
                }
                if (name == "header") {
                    data.formats.header = if (value != null) {
                        value as Number
                    } else {
                        0
                    }
                    return
                }
                if (name == "code-block") {
                    data.formats.codeBlock = value == true
                    return
                }
                if (name == "link") {
                    data.formats.link = if (value != null) {
                        value as String
                    } else {
                        ""
                    }
                    return
                }
                if (name == "list") {
                    data.formats.list = if (value != null) {
                        value as String
                    } else {
                        ""
                    }
                    return
                }
                if (name == "align") {
                    data.formats.align = if (value != null) {
                        value as String
                    } else {
                        ""
                    }
                    return
                }
                if (name == "textIndent") {
                    data.formats.textIndent = if (value != null) {
                        value as String
                    } else {
                        ""
                    }
                    return
                }
                if (name == "marginLeft") {
                    data.formats.marginLeft = if (value != null) {
                        value as String
                    } else {
                        ""
                    }
                    return
                }
                if (name == "marginRight") {
                    data.formats.marginRight = if (value != null) {
                        value as String
                    } else {
                        ""
                    }
                    return
                }
                if (name == "lineHeight") {
                    data.formats.lineHeight = if (value != null) {
                        value as String
                    } else {
                        ""
                    }
                    return
                }
                if (name == "letterSpacing") {
                    data.formats.letterSpacing = if (value != null) {
                        value as String
                    } else {
                        ""
                    }
                    return
                }
                if (name == "fontFamily") {
                    data.formats.fontFamily = if (value != null) {
                        value as String
                    } else {
                        ""
                    }
                    return
                }
                if (name == "fontSize") {
                    data.formats.fontSize = if (value != null) {
                        value as String
                    } else {
                        ""
                    }
                    return
                }
                if (name == "color") {
                    data.formats.color = if (value != null) {
                        value as String
                    } else {
                        ""
                    }
                    return
                }
                if (name == "backgroundColor") {
                    data.formats.backgroundColor = if (value != null) {
                        value as String
                    } else {
                        ""
                    }
                }
            }
            fun applyFormatWithState(name: String, value: Any?) {
                setLocalFormat(name, value)
                applyFormat(name, value)
            }
            fun gen_setToolbarFormatsForTest_fn(header: Number, list: String) {
                setLocalFormat("header", header)
                setLocalFormat("list", list)
            }
            val setToolbarFormatsForTest = ::gen_setToolbarFormatsForTest_fn
            fun gen_applyToolbarPresetForTest_fn(preset: String) {
                if (preset == "title-h2") {
                    setToolbarFormatsForTest(2, "")
                    return
                }
                if (preset == "title-h1") {
                    setToolbarFormatsForTest(1, "")
                    return
                }
                if (preset == "list-bullet") {
                    setToolbarFormatsForTest(0, "bullet")
                    return
                }
                if (preset == "list-ordered") {
                    setToolbarFormatsForTest(0, "ordered")
                    return
                }
                if (preset == "list-unchecked") {
                    setToolbarFormatsForTest(0, "unchecked")
                    return
                }
                if (preset == "list-none") {
                    setToolbarFormatsForTest(0, "")
                }
            }
            val applyToolbarPresetForTest = ::gen_applyToolbarPresetForTest_fn
            fun gen_toggleInlineFormat_fn(name: String) {
                if (name == "bold") {
                    setLocalFormat("bold", !data.formats.bold)
                    applyFormat("bold", null)
                    return
                }
                if (name == "italic") {
                    setLocalFormat("italic", !data.formats.italic)
                    applyFormat("italic", null)
                    return
                }
                if (name == "underline") {
                    setLocalFormat("underline", !data.formats.underline)
                    applyFormat("underline", null)
                    return
                }
                if (name == "strike") {
                    setLocalFormat("strike", !data.formats.strike)
                    applyFormat("strike", null)
                }
            }
            val toggleInlineFormat = ::gen_toggleInlineFormat_fn
            fun gen_cloneFormats_fn(source: Formats): Formats {
                return Formats(bold = source.bold, italic = source.italic, underline = source.underline, strike = source.strike, blockquote = source.blockquote, link = source.link, header = source.header, list = source.list, align = source.align, textIndent = source.textIndent, marginLeft = source.marginLeft, marginRight = source.marginRight, lineHeight = source.lineHeight, letterSpacing = source.letterSpacing, fontFamily = source.fontFamily, fontSize = source.fontSize, color = source.color, backgroundColor = source.backgroundColor, codeBlock = source.codeBlock)
            }
            val cloneFormats = ::gen_cloneFormats_fn
            fun gen_clearFormatPainterState_fn() {
                data.formatPainterActive = false
            }
            val clearFormatPainterState = ::gen_clearFormatPainterState_fn
            fun gen_resetLocalFormats_fn() {
                assignFormats(data.formats, createDefaultFormats())
            }
            val resetLocalFormats = ::gen_resetLocalFormats_fn
            fun gen_resetFormatsForTest_fn() {
                assignFormats(data.formats, createDefaultFormats())
            }
            val resetFormatsForTest = ::gen_resetFormatsForTest_fn
            fun gen_applyCopiedFormats_fn() {
                val copied = cloneFormats(data.formatPainterFormats)
                applyFormat("header", if (copied.header > 0) {
                    copied.header
                } else {
                    0
                }
                )
                applyFormat("list", if (copied.list != "") {
                    copied.list
                } else {
                    null
                }
                )
                applyFormat("align", if (copied.align != "") {
                    copied.align
                } else {
                    null
                }
                )
                applyFormat("textIndent", if (copied.textIndent != "") {
                    copied.textIndent
                } else {
                    null
                }
                )
                applyFormat("marginLeft", if (copied.marginLeft != "") {
                    copied.marginLeft
                } else {
                    null
                }
                )
                applyFormat("marginRight", if (copied.marginRight != "") {
                    copied.marginRight
                } else {
                    null
                }
                )
                applyFormat("lineHeight", if (copied.lineHeight != "") {
                    copied.lineHeight
                } else {
                    null
                }
                )
                applyFormat("letterSpacing", if (copied.letterSpacing != "") {
                    copied.letterSpacing
                } else {
                    null
                }
                )
                applyFormat("fontFamily", if (copied.fontFamily != "") {
                    copied.fontFamily
                } else {
                    null
                }
                )
                applyFormat("fontSize", if (copied.fontSize != "") {
                    copied.fontSize
                } else {
                    null
                }
                )
                applyFormat("color", if (copied.color != "") {
                    copied.color
                } else {
                    null
                }
                )
                applyFormat("backgroundColor", if (copied.backgroundColor != "") {
                    copied.backgroundColor
                } else {
                    null
                }
                )
                if (copied.bold != data.formats.bold) {
                    applyFormat("bold", null)
                }
                if (copied.italic != data.formats.italic) {
                    applyFormat("italic", null)
                }
                if (copied.underline != data.formats.underline) {
                    applyFormat("underline", null)
                }
                if (copied.strike != data.formats.strike) {
                    applyFormat("strike", null)
                }
            }
            val applyCopiedFormats = ::gen_applyCopiedFormats_fn
            fun gen_toggleFormatPainter_fn() {
                if (data.formatPainterActive) {
                    clearFormatPainterState()
                    return
                }
                data.formatPainterFormats = cloneFormats(data.formats)
                data.formatPainterActive = true
                closeSheets()
            }
            val toggleFormatPainter = ::gen_toggleFormatPainter_fn
            fun gen_getEditorBottomSpacing_fn(): Number {
                return 0
            }
            val getEditorBottomSpacing = ::gen_getEditorBottomSpacing_fn
            fun gen_getEditorStageStyle_fn(): String {
                val paddingBottom = getEditorBottomSpacing()
                return "padding-bottom:" + paddingBottom + "px;"
            }
            val getEditorStageStyle = ::gen_getEditorStageStyle_fn
            fun gen_hideKeyboardForSheet_fn() {
                data.editorInputType = "none"
                data.isFocused = false
                uni_hideKeyboard(null)
            }
            val hideKeyboardForSheet = ::gen_hideKeyboardForSheet_fn
            fun gen_toggleSheet_fn(sheet: String) {
                if (data.activeSheet == sheet) {
                    closeSheets()
                    return
                }
                uni_showToast(ShowToastOptions(title = "请手动收起键盘后选择操作", icon = "none"))
                updateSheetAnchor(sheet)
                data.activeSheet = sheet
                syncToolbarChipClasses()
                data.sheetAnimated = false
                setTimeout(fun(){
                    if (data.activeSheet == sheet) {
                        data.sheetAnimated = true
                    }
                }
                , 16)
                syncToolbarBottom()
                syncToolbarVisibility()
            }
            val toggleSheet = ::gen_toggleSheet_fn
            fun gen_openMoreSheet_fn() {
                toggleSheet("more")
            }
            val openMoreSheet = ::gen_openMoreSheet_fn
            fun gen_openTitleSheet_fn() {
                toggleSheet("title")
            }
            val openTitleSheet = ::gen_openTitleSheet_fn
            fun gen_openStyleSheet_fn() {
                toggleSheet("style")
            }
            val openStyleSheet = ::gen_openStyleSheet_fn
            fun gen_openTextColorSheet_fn() {
                toggleSheet("text-color")
            }
            val openTextColorSheet = ::gen_openTextColorSheet_fn
            fun gen_openBackgroundColorSheet_fn() {
                toggleSheet("background-color")
            }
            val openBackgroundColorSheet = ::gen_openBackgroundColorSheet_fn
            fun gen_openLineHeightSheet_fn() {
                toggleSheet("line-height")
            }
            val openLineHeightSheet = ::gen_openLineHeightSheet_fn
            fun gen_openLetterSpacingSheet_fn() {
                toggleSheet("letter-spacing")
            }
            val openLetterSpacingSheet = ::gen_openLetterSpacingSheet_fn
            fun gen_openBlockIndentSheet_fn() {
                toggleSheet("block-indent")
            }
            val openBlockIndentSheet = ::gen_openBlockIndentSheet_fn
            fun gen_openListSheet_fn() {
                toggleSheet("list")
            }
            val openListSheet = ::gen_openListSheet_fn
            fun gen_openFontSizeSheet_fn() {
                toggleSheet("font-size")
            }
            val openFontSizeSheet = ::gen_openFontSizeSheet_fn
            fun gen_openFontFamilySheet_fn() {
                toggleSheet("font-family")
            }
            val openFontFamilySheet = ::gen_openFontFamilySheet_fn
            fun gen_openAlignSheet_fn() {
                toggleSheet("align")
            }
            val openAlignSheet = ::gen_openAlignSheet_fn
            fun gen_getPanelTitle_fn(): String {
                if (data.activeSheet == "title") {
                    return "设置标题"
                }
                if (data.activeSheet == "style") {
                    return "设置字格式"
                }
                if (data.activeSheet == "text-color") {
                    return "设置文字颜色"
                }
                if (data.activeSheet == "background-color") {
                    return "设置背景颜色"
                }
                if (data.activeSheet == "line-height") {
                    return "设置行间距"
                }
                if (data.activeSheet == "letter-spacing") {
                    return "设置字间距"
                }
                if (data.activeSheet == "font-size") {
                    return "设置字号"
                }
                if (data.activeSheet == "font-family") {
                    return "设置字体"
                }
                if (data.activeSheet == "block-indent") {
                    return "设置两端缩进"
                }
                if (data.activeSheet == "align") {
                    return "对齐方式"
                }
                if (data.activeSheet == "list") {
                    return "设置列表"
                }
                return "更多操作"
            }
            val getPanelTitle = ::gen_getPanelTitle_fn
            fun gen_getTitleSummary_fn(): String {
                if (data.formats.codeBlock) {
                    return "当前为代码块"
                }
                if (data.formats.blockquote) {
                    return "当前为引用"
                }
                if (data.formats.header > 0) {
                    return "当前为大标题" + data.formats.header
                }
                return "当前为正文"
            }
            val getTitleSummary = ::gen_getTitleSummary_fn
            fun gen_openLinkModal_fn() {
                val editor = getEditor()
                if (editor == null) {
                    return
                }
                closeSheets()
                data.linkSelectionText = ""
                data.linkOriginalHref = data.formats.link
                uni_hideKeyboard(null)
                data.linkDraftText = ""
                data.linkDraftHref = data.formats.link
                data.linkModalVisible = true
                data.linkUseSelectionText = false
                clearToolbarHideTimer()
                val options = UniEditorElementGetSelectionTextOptions(success = fun(res: UniEditorElementGetSelectionTextOptionsRes){
                    val selectionText = res.text.trim()
                    if (selectionText == "") {
                        return
                    }
                    data.linkSelectionText = selectionText
                    data.linkDraftText = selectionText
                    data.linkUseSelectionText = data.formats.link == ""
                }
                , fail = fun(_res){}, complete = fun(_res){})
                editor.getSelectionText(options)
            }
            val openLinkModal = ::gen_openLinkModal_fn
            fun gen_closeLinkModal_fn() {
                data.linkModalVisible = false
                data.linkUseSelectionText = false
                data.linkDraftText = ""
                data.linkDraftHref = ""
                data.linkSelectionText = ""
                data.linkOriginalHref = ""
            }
            val closeLinkModal = ::gen_closeLinkModal_fn
            fun gen_getDesktopTitleLabel_fn(): String {
                if (data.formats.header > 0) {
                    return "标题 " + data.formats.header
                }
                return "标题"
            }
            val getDesktopTitleLabel = ::gen_getDesktopTitleLabel_fn
            fun gen_getDesktopTitleMiniLabel_fn(): String {
                if (data.formats.header > 0) {
                    return "" + data.formats.header
                }
                return "P"
            }
            val getDesktopTitleMiniLabel = ::gen_getDesktopTitleMiniLabel_fn
            fun gen_getDesktopTitleIconGlyph_fn(): String {
                if (data.formats.header == 1) {
                    return "&#xe860;"
                }
                if (data.formats.header == 2) {
                    return "&#xe75c;"
                }
                if (data.formats.header == 3) {
                    return "&#xe75d;"
                }
                if (data.formats.header == 4) {
                    return "&#xe863;"
                }
                if (data.formats.header == 5) {
                    return "&#xe864;"
                }
                if (data.formats.header == 6) {
                    return "&#xe865;"
                }
                return "&#xe67b;"
            }
            val getDesktopTitleIconGlyph = ::gen_getDesktopTitleIconGlyph_fn
            fun gen_getDesktopAlignIconGlyph_fn(): String {
                if (data.formats.align == "center") {
                    return "\ue6b6"
                }
                if (data.formats.align == "right") {
                    return "\ue6a6"
                }
                if (data.formats.align == "justify") {
                    return "\ue6a8"
                }
                return "\ue6b7"
            }
            val getDesktopAlignIconGlyph = ::gen_getDesktopAlignIconGlyph_fn
            fun gen_getStyleSummary_fn(): String {
                val names: UTSArray<String> = _uA()
                if (data.formats.bold) {
                    names.push("加粗")
                }
                if (data.formats.italic) {
                    names.push("斜体")
                }
                if (data.formats.underline) {
                    names.push("下划线")
                }
                if (data.formats.strike) {
                    names.push("删除线")
                }
                if (data.formats.lineHeight != "") {
                    names.push("行间距 " + data.formats.lineHeight)
                }
                if (data.formats.letterSpacing != "") {
                    names.push("字间距 " + data.formats.letterSpacing)
                }
                if (data.formats.fontSize != "") {
                    names.push("字号 " + data.formats.fontSize)
                }
                if (data.formats.fontFamily != "") {
                    names.push("字体 " + getDesktopFontFamilyLabel())
                }
                if (names.length == 0) {
                    return "当前未设置字格式"
                }
                return names.join(" / ")
            }
            val getStyleSummary = ::gen_getStyleSummary_fn
            fun gen_getAlignSummary_fn(): String {
                if (data.formats.align == "") {
                    return "当前为默认对齐"
                }
                if (data.formats.align == "center") {
                    return "当前为居中"
                }
                if (data.formats.align == "right") {
                    return "当前为居右"
                }
                if (data.formats.align == "justify") {
                    return "当前为两端对齐"
                }
                return "当前为居左"
            }
            val getAlignSummary = ::gen_getAlignSummary_fn
            fun gen_getDesktopAlignLabel_fn(): String {
                if (data.formats.align == "center") {
                    return "居中"
                }
                if (data.formats.align == "right") {
                    return "居右"
                }
                if (data.formats.align == "justify") {
                    return "两端"
                }
                return "居左"
            }
            val getDesktopAlignLabel = ::gen_getDesktopAlignLabel_fn
            fun gen_getDesktopBlockIndentLabel_fn(): String {
                val margin = data.formats.marginLeft
                if (margin != "" && margin == data.formats.marginRight) {
                    return margin.replace("px", "")
                }
                return "0"
            }
            val getDesktopBlockIndentLabel = ::gen_getDesktopBlockIndentLabel_fn
            fun gen_getDesktopListLabel_fn(): String {
                if (data.formats.list == "ordered") {
                    return "有序列表"
                }
                if (data.formats.list == "bullet") {
                    return "无序列表"
                }
                return "列表"
            }
            val getDesktopListLabel = ::gen_getDesktopListLabel_fn
            fun gen_getDesktopLineHeightLabel_fn(): String {
                if (data.formats.lineHeight == "1.5") {
                    return "1.5"
                }
                if (data.formats.lineHeight == "1.8") {
                    return "1.8"
                }
                if (data.formats.lineHeight == "2") {
                    return "2.0"
                }
                return "行间距"
            }
            val getDesktopLineHeightLabel = ::gen_getDesktopLineHeightLabel_fn
            fun gen_getDesktopLineHeightMiniLabel_fn(): String {
                if (data.formats.lineHeight == "1.5") {
                    return "1.5"
                }
                if (data.formats.lineHeight == "1.8") {
                    return "1.8"
                }
                if (data.formats.lineHeight == "2") {
                    return "2"
                }
                return "D"
            }
            val getDesktopLineHeightMiniLabel = ::gen_getDesktopLineHeightMiniLabel_fn
            fun gen_getDesktopLetterSpacingLabel_fn(): String {
                if (data.formats.letterSpacing == "0px") {
                    return "0px"
                }
                if (data.formats.letterSpacing == "1px") {
                    return "1px"
                }
                if (data.formats.letterSpacing == "2px") {
                    return "2px"
                }
                return "字间距"
            }
            val getDesktopLetterSpacingLabel = ::gen_getDesktopLetterSpacingLabel_fn
            fun gen_getDesktopLetterSpacingMiniLabel_fn(): String {
                if (data.formats.letterSpacing == "0px") {
                    return "0"
                }
                if (data.formats.letterSpacing == "1px") {
                    return "1"
                }
                if (data.formats.letterSpacing == "2px") {
                    return "2"
                }
                return "D"
            }
            val getDesktopLetterSpacingMiniLabel = ::gen_getDesktopLetterSpacingMiniLabel_fn
            fun gen_getDesktopFontSizeLabel_fn(): String {
                if (data.formats.fontSize != "") {
                    return data.formats.fontSize
                }
                return "17px"
            }
            val getDesktopFontSizeLabel = ::gen_getDesktopFontSizeLabel_fn
            fun gen_getToolbarTextColorChipStyle_fn(): String {
                val color = if (data.formats.color != "") {
                    data.formats.color
                } else {
                    "#111827"
                }
                return "background-color:" + color + ";"
            }
            val getToolbarTextColorChipStyle = ::gen_getToolbarTextColorChipStyle_fn
            fun gen_getToolbarBackgroundColorChipStyle_fn(): String {
                val color = if (data.formats.backgroundColor != "") {
                    data.formats.backgroundColor
                } else {
                    "#f3f4f6"
                }
                return "background-color:" + color + ";"
            }
            val getToolbarBackgroundColorChipStyle = ::gen_getToolbarBackgroundColorChipStyle_fn
            fun gen_getPanelSubtitle_fn(): String {
                if (data.activeSheet == "title") {
                    return getTitleSummary()
                }
                if (data.activeSheet == "style") {
                    return getStyleSummary()
                }
                if (data.activeSheet == "text-color") {
                    if (data.formats.color == "") {
                        return "当前使用默认文字颜色"
                    }
                    return "当前文字颜色 " + data.formats.color
                }
                if (data.activeSheet == "background-color") {
                    if (data.formats.backgroundColor == "") {
                        return "当前未设置文字背景颜色"
                    }
                    return "当前背景颜色 " + data.formats.backgroundColor
                }
                if (data.activeSheet == "line-height") {
                    if (data.formats.lineHeight == "") {
                        return "当前使用默认行间距"
                    }
                    return "当前行间距 " + data.formats.lineHeight
                }
                if (data.activeSheet == "letter-spacing") {
                    if (data.formats.letterSpacing == "") {
                        return "当前使用默认字间距"
                    }
                    return "当前字间距 " + data.formats.letterSpacing
                }
                if (data.activeSheet == "font-size") {
                    if (data.formats.fontSize == "") {
                        return "当前使用默认字号 17px"
                    }
                    return "当前字号 " + data.formats.fontSize
                }
                if (data.activeSheet == "font-family") {
                    if (data.formats.fontFamily == "") {
                        return "当前使用默认字体"
                    }
                    return "当前字体 " + getDesktopFontFamilyLabel()
                }
                if (data.activeSheet == "block-indent") {
                    if (data.formats.marginLeft == "" || data.formats.marginLeft != data.formats.marginRight) {
                        return "当前未设置两端缩进"
                    }
                    return "当前两端缩进 " + data.formats.marginLeft
                }
                if (data.activeSheet == "align") {
                    return getAlignSummary()
                }
                if (data.activeSheet == "list") {
                    return if (data.formats.list == "") {
                        "当前未设置列表"
                    } else {
                        "当前列表 " + getDesktopListLabel()
                    }
                }
                return "插入与编辑快捷操作"
            }
            val getPanelSubtitle = ::gen_getPanelSubtitle_fn
            fun gen_hasTitleFormatActive_fn(): Boolean {
                return data.formats.header > 0 || data.formats.blockquote || data.formats.codeBlock
            }
            val hasTitleFormatActive = ::gen_hasTitleFormatActive_fn
            fun gen_isTitleSheetHighlighted_fn(): Boolean {
                return data.activeSheet == "title" || hasTitleFormatActive()
            }
            val isTitleSheetHighlighted = ::gen_isTitleSheetHighlighted_fn
            fun gen_isAlignSheetHighlighted_fn(): Boolean {
                return data.activeSheet == "align" || data.formats.align != ""
            }
            val isAlignSheetHighlighted = ::gen_isAlignSheetHighlighted_fn
            fun gen_isLineHeightSheetHighlighted_fn(): Boolean {
                return data.activeSheet == "line-height" || data.formats.lineHeight != ""
            }
            val isLineHeightSheetHighlighted = ::gen_isLineHeightSheetHighlighted_fn
            fun gen_isLetterSpacingSheetHighlighted_fn(): Boolean {
                return data.activeSheet == "letter-spacing" || data.formats.letterSpacing != ""
            }
            val isLetterSpacingSheetHighlighted = ::gen_isLetterSpacingSheetHighlighted_fn
            fun gen_isFontSizeSheetHighlighted_fn(): Boolean {
                return data.activeSheet == "font-size" || data.formats.fontSize != ""
            }
            val isFontSizeSheetHighlighted = ::gen_isFontSizeSheetHighlighted_fn
            fun gen_isFontFamilySheetHighlighted_fn(): Boolean {
                return data.activeSheet == "font-family" || data.formats.fontFamily != ""
            }
            val isFontFamilySheetHighlighted = ::gen_isFontFamilySheetHighlighted_fn
            fun gen_isTextIndentHighlighted_fn(): Boolean {
                return data.formats.textIndent != ""
            }
            val isTextIndentHighlighted = ::gen_isTextIndentHighlighted_fn
            fun gen_isBlockIndentSheetHighlighted_fn(): Boolean {
                return data.activeSheet == "block-indent" || (data.formats.marginLeft != "" && data.formats.marginLeft == data.formats.marginRight)
            }
            val isBlockIndentSheetHighlighted = ::gen_isBlockIndentSheetHighlighted_fn
            fun gen_isListSheetHighlighted_fn(): Boolean {
                return data.activeSheet == "list" || data.formats.list == "ordered" || data.formats.list == "bullet"
            }
            val isListSheetHighlighted = ::gen_isListSheetHighlighted_fn
            fun gen_isBlockIndentValue_fn(value: String): Boolean {
                if (value == "0px") {
                    return data.formats.marginLeft == "" && data.formats.marginRight == ""
                }
                return data.formats.marginLeft == value && data.formats.marginRight == value
            }
            val isBlockIndentValue = ::gen_isBlockIndentValue_fn
            fun gen_isTextColorSheetHighlighted_fn(): Boolean {
                return data.activeSheet == "text-color" || data.formats.color != ""
            }
            val isTextColorSheetHighlighted = ::gen_isTextColorSheetHighlighted_fn
            fun gen_isBackgroundColorSheetHighlighted_fn(): Boolean {
                return data.activeSheet == "background-color" || data.formats.backgroundColor != ""
            }
            val isBackgroundColorSheetHighlighted = ::gen_isBackgroundColorSheetHighlighted_fn
            fun gen_isParagraphActive_fn(): Boolean {
                return data.formats.header == 0 && data.formats.list == "" && !data.formats.blockquote && !data.formats.codeBlock
            }
            val isParagraphActive = ::gen_isParagraphActive_fn
            val pageShellClass = computed(fun(): String {
                return getPageShellClass()
            }
            )
            val editorLayoutClass = computed(fun(): String {
                return getEditorLayoutClass()
            }
            )
            val toolbarWrapStyle = computed(fun(): String {
                return getToolbarWrapStyle()
            }
            )
            val desktopToolbarShellClass = computed(fun(): String {
                return getDesktopToolbarShellClass()
            }
            )
            val desktopToolbarLeadingGroupClass = computed(fun(): String {
                return getDesktopToolbarGroupClass(true)
            }
            )
            val desktopToolbarGroupClass = computed(fun(): String {
                return getDesktopToolbarGroupClass(false)
            }
            )
            val desktopToolbarDividerClass = computed(fun(): String {
                return getDesktopToolbarDividerClass()
            }
            )
            val fontSizeSheetHighlighted = computed(fun(): Boolean {
                return isFontSizeSheetHighlighted()
            }
            )
            val fontFamilySheetHighlighted = computed(fun(): Boolean {
                return isFontFamilySheetHighlighted()
            }
            )
            val textColorSheetHighlighted = computed(fun(): Boolean {
                return isTextColorSheetHighlighted()
            }
            )
            val backgroundColorSheetHighlighted = computed(fun(): Boolean {
                return isBackgroundColorSheetHighlighted()
            }
            )
            val alignSheetHighlighted = computed(fun(): Boolean {
                return isAlignSheetHighlighted()
            }
            )
            val desktopAlignIconGlyph = computed(fun(): String {
                return getDesktopAlignIconGlyph()
            }
            )
            val textIndentHighlighted = computed(fun(): Boolean {
                return isTextIndentHighlighted()
            }
            )
            val blockIndentSheetHighlighted = computed(fun(): Boolean {
                return isBlockIndentSheetHighlighted()
            }
            )
            val lineHeightSheetHighlighted = computed(fun(): Boolean {
                return isLineHeightSheetHighlighted()
            }
            )
            val letterSpacingSheetHighlighted = computed(fun(): Boolean {
                return isLetterSpacingSheetHighlighted()
            }
            )
            val listSheetHighlighted = computed(fun(): Boolean {
                return isListSheetHighlighted()
            }
            )
            val styleSheetHighlighted = computed(fun(): Boolean {
                return isStyleSheetHighlighted()
            }
            )
            val titleSheetHighlighted = computed(fun(): Boolean {
                return isTitleSheetHighlighted()
            }
            )
            val toolbarTextColorChipStyle = computed(fun(): String {
                return getToolbarTextColorChipStyle()
            }
            )
            val toolbarBackgroundColorChipStyle = computed(fun(): String {
                return getToolbarBackgroundColorChipStyle()
            }
            )
            val toolbarTooltipStyle = computed(fun(): String {
                return getToolbarTooltipStyle()
            }
            )
            val sheetHostClass = computed(fun(): String {
                return getSheetHostClass()
            }
            )
            val sheetHostStyle = computed(fun(): String {
                return getSheetHostStyle()
            }
            )
            val sheetPanelStyle = computed(fun(): String {
                return getSheetPanelStyle()
            }
            )
            val toolbarPanelArrowStyle = computed(fun(): String {
                return getToolbarPanelArrowStyle()
            }
            )
            val toolbarPanelClass = computed(fun(): String {
                return getToolbarPanelClass()
            }
            )
            val toolbarPanelHeaderClass = computed(fun(): String {
                return getToolbarPanelHeaderClass()
            }
            )
            val toolbarPanelTitleClass = computed(fun(): String {
                return getToolbarPanelTitleClass()
            }
            )
            val toolbarPanelSubtitleClass = computed(fun(): String {
                return getToolbarPanelSubtitleClass()
            }
            )
            val toolbarPanelScrollClass = computed(fun(): String {
                return getToolbarPanelScrollClass()
            }
            )
            val paragraphActive = computed(fun(): Boolean {
                return isParagraphActive()
            }
            )
            val editorStageStyle = computed(fun(): String {
                return getEditorStageStyle()
            }
            )
            val desktopMenuItemClass = computed(fun(): String {
                return getDesktopMenuItemClass(false)
            }
            )
            val desktopMenuItemActiveClass = computed(fun(): String {
                return getDesktopMenuItemClass(true)
            }
            )
            val desktopMenuBadgeClass = computed(fun(): String {
                return getDesktopMenuBadgeClass(false)
            }
            )
            val desktopMenuBadgeActiveClass = computed(fun(): String {
                return getDesktopMenuBadgeClass(true)
            }
            )
            val desktopMenuTextClass = computed(fun(): String {
                return getDesktopMenuTextClass(false)
            }
            )
            val desktopMenuTextActiveClass = computed(fun(): String {
                return getDesktopMenuTextClass(true)
            }
            )
            val clearColorSwatchClass = computed(fun(): String {
                return getClearColorSwatchClass(false)
            }
            )
            val clearColorSwatchActiveClass = computed(fun(): String {
                return getClearColorSwatchClass(true)
            }
            )
            val filledColorSwatchClass = computed(fun(): String {
                return getFilledColorSwatchClass(false)
            }
            )
            val filledColorSwatchActiveClass = computed(fun(): String {
                return getFilledColorSwatchClass(true)
            }
            )
            val webPhoneLayout = computed(fun(): Boolean {
                return isWebPhoneLayout()
            }
            )
            fun gen_clearTitleFormats_fn() {
                applyFormat("blockquote", null)
                if (data.formats.codeBlock) {
                    setLocalFormat("code-block", false)
                    applyFormat("code-block", null)
                }
                applyFormatWithState("list", null)
            }
            val clearTitleFormats = ::gen_clearTitleFormats_fn
            fun gen_setParagraph_fn() {
                clearTitleFormats()
                applyFormatWithState("header", 0)
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val setParagraph = ::gen_setParagraph_fn
            fun gen_setHeadingLevel_fn(level: Number) {
                clearTitleFormats()
                if (data.formats.header == level) {
                    applyFormatWithState("header", 0)
                } else {
                    applyFormatWithState("header", level)
                }
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val setHeadingLevel = ::gen_setHeadingLevel_fn
            fun gen_setOrderedList_fn() {
                applyFormat("blockquote", null)
                if (data.formats.codeBlock) {
                    setLocalFormat("code-block", false)
                    applyFormat("code-block", null)
                }
                applyFormatWithState("header", 0)
                applyFormatWithState("list", if (data.formats.list == "ordered") {
                    null
                } else {
                    "ordered"
                }
                )
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val setOrderedList = ::gen_setOrderedList_fn
            fun gen_setBulletList_fn() {
                applyFormat("blockquote", null)
                if (data.formats.codeBlock) {
                    setLocalFormat("code-block", false)
                    applyFormat("code-block", null)
                }
                applyFormatWithState("header", 0)
                applyFormatWithState("list", if (data.formats.list == "bullet") {
                    null
                } else {
                    "bullet"
                }
                )
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val setBulletList = ::gen_setBulletList_fn
            fun gen_clearListFormat_fn() {
                applyFormatWithState("list", null)
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val clearListFormat = ::gen_clearListFormat_fn
            fun gen_toggleBlockquote_fn() {
                val nextValue = !data.formats.blockquote
                val isListFormat = data.formats.list != ""
                val isHeadFormat = data.formats.header != 0
                val isCodeBlock = data.formats.codeBlock
                if (nextValue && isListFormat) {
                    applyFormatWithState("list", null)
                }
                if (nextValue && isHeadFormat) {
                    applyFormatWithState("header", 0)
                }
                if (nextValue && isCodeBlock) {
                    setLocalFormat("code-block", false)
                    applyFormat("code-block", null)
                }
                setLocalFormat("blockquote", nextValue)
                applyFormat("blockquote", null)
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val toggleBlockquote = ::gen_toggleBlockquote_fn
            fun gen_toggleCodeBlock_fn() {
                val nextValue = !data.formats.codeBlock
                if (nextValue) {
                    if (data.formats.list != "") {
                        applyFormatWithState("list", null)
                    }
                    if (data.formats.header != 0) {
                        applyFormatWithState("header", 0)
                    }
                    if (data.formats.blockquote) {
                        applyFormatWithState("blockquote", null)
                    }
                }
                setLocalFormat("code-block", nextValue)
                applyFormat("code-block", null)
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val toggleCodeBlock = ::gen_toggleCodeBlock_fn
            fun gen_toggleBold_fn() {
                toggleInlineFormat("bold")
            }
            val toggleBold = ::gen_toggleBold_fn
            fun gen_toggleItalic_fn() {
                toggleInlineFormat("italic")
            }
            val toggleItalic = ::gen_toggleItalic_fn
            fun gen_toggleUnderline_fn() {
                toggleInlineFormat("underline")
            }
            val toggleUnderline = ::gen_toggleUnderline_fn
            fun gen_toggleStrike_fn() {
                toggleInlineFormat("strike")
            }
            val toggleStrike = ::gen_toggleStrike_fn
            fun gen_toggleBoldAndClose_fn() {
                toggleBold()
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val toggleBoldAndClose = ::gen_toggleBoldAndClose_fn
            fun gen_toggleItalicAndClose_fn() {
                toggleItalic()
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val toggleItalicAndClose = ::gen_toggleItalicAndClose_fn
            fun gen_toggleUnderlineAndClose_fn() {
                toggleUnderline()
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val toggleUnderlineAndClose = ::gen_toggleUnderlineAndClose_fn
            fun gen_toggleStrikeAndClose_fn() {
                toggleStrike()
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val toggleStrikeAndClose = ::gen_toggleStrikeAndClose_fn
            fun gen_setTextColor_fn(color: String) {
                applyFormatWithState("color", if (color == "") {
                    null
                } else {
                    color
                }
                )
            }
            val setTextColor = ::gen_setTextColor_fn
            fun gen_setTextColorAndClose_fn(color: String) {
                setTextColor(color)
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val setTextColorAndClose = ::gen_setTextColorAndClose_fn
            fun gen_setBackgroundColor_fn(color: String) {
                applyFormatWithState("backgroundColor", if (color == "") {
                    null
                } else {
                    color
                }
                )
            }
            val setBackgroundColor = ::gen_setBackgroundColor_fn
            fun gen_setBackgroundColorAndClose_fn(color: String) {
                setBackgroundColor(color)
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val setBackgroundColorAndClose = ::gen_setBackgroundColorAndClose_fn
            fun gen_setLineHeight_fn(value: String) {
                applyFormatWithState("lineHeight", if (value == "") {
                    null
                } else {
                    value
                }
                )
            }
            val setLineHeight = ::gen_setLineHeight_fn
            fun gen_setLineHeightAndClose_fn(value: String) {
                setLineHeight(value)
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val setLineHeightAndClose = ::gen_setLineHeightAndClose_fn
            fun gen_setLetterSpacing_fn(value: String) {
                applyFormatWithState("letterSpacing", if (value == "") {
                    null
                } else {
                    value
                }
                )
            }
            val setLetterSpacing = ::gen_setLetterSpacing_fn
            fun gen_setLetterSpacingAndClose_fn(value: String) {
                setLetterSpacing(value)
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val setLetterSpacingAndClose = ::gen_setLetterSpacingAndClose_fn
            fun gen_setFontSize_fn(value: String) {
                applyFormatWithState("fontSize", if (value == "") {
                    null
                } else {
                    value
                }
                )
            }
            val setFontSize = ::gen_setFontSize_fn
            fun gen_setFontSizeAndClose_fn(value: String) {
                setFontSize(value)
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val setFontSizeAndClose = ::gen_setFontSizeAndClose_fn
            fun gen_setFontFamily_fn(value: String) {
                applyFormatWithState("fontFamily", if (value == "") {
                    null
                } else {
                    value
                }
                )
            }
            val setFontFamily = ::gen_setFontFamily_fn
            fun gen_setFontFamilyAndClose_fn(value: String) {
                setFontFamily(value)
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val setFontFamilyAndClose = ::gen_setFontFamilyAndClose_fn
            fun gen_toggleTextIndent_fn() {
                val nextValue = if (data.formats.textIndent == "") {
                    "2em"
                } else {
                    ""
                }
                applyFormatWithState("textIndent", if (nextValue == "") {
                    null
                } else {
                    nextValue
                }
                )
                refocusEditorAfterToolbarAction()
            }
            val toggleTextIndent = ::gen_toggleTextIndent_fn
            fun gen_setBlockIndent_fn(value: String) {
                val indentValue = if (value == "0px") {
                    ""
                } else {
                    value
                }
                applyFormatWithState("marginLeft", if (indentValue == "") {
                    null
                } else {
                    indentValue
                }
                )
                applyFormatWithState("marginRight", if (indentValue == "") {
                    null
                } else {
                    indentValue
                }
                )
            }
            val setBlockIndent = ::gen_setBlockIndent_fn
            fun gen_setBlockIndentAndClose_fn(value: String) {
                setBlockIndent(value)
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val setBlockIndentAndClose = ::gen_setBlockIndentAndClose_fn
            fun gen_setAlignLeft_fn() {
                applyFormatWithState("align", "left")
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val setAlignLeft = ::gen_setAlignLeft_fn
            fun gen_setAlignCenter_fn() {
                applyFormatWithState("align", "center")
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val setAlignCenter = ::gen_setAlignCenter_fn
            fun gen_setAlignRight_fn() {
                applyFormatWithState("align", "right")
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val setAlignRight = ::gen_setAlignRight_fn
            fun gen_setAlignJustify_fn() {
                applyFormatWithState("align", "justify")
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val setAlignJustify = ::gen_setAlignJustify_fn
            fun gen_clearAlign_fn() {
                applyFormatWithState("align", null)
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val clearAlign = ::gen_clearAlign_fn
            fun gen_clearFormatting_fn() {
                val editor = getEditor()
                if (editor == null) {
                    return
                }
                editor.removeFormat(null)
                resetLocalFormats()
                clearFormatPainterState()
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val clearFormatting = ::gen_clearFormatting_fn
            fun gen_toggleChecklistTool_fn() {
                applyFormatWithState("list", if (data.formats.list == "check") {
                    null
                } else {
                    "check"
                }
                )
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val toggleChecklistTool = ::gen_toggleChecklistTool_fn
            fun gen_insertDivider_fn() {
                val editor = getEditor()
                if (editor == null) {
                    return
                }
                editor.insertDivider(null)
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val insertDivider = ::gen_insertDivider_fn
            fun gen_getCon_fn() {
                val editor = getEditor()
                if (editor == null) {
                    return
                }
                editor.getContents(UniEditorElementGetContentsOptions(success = fun(res: UniEditorElementGetContentsOptionsRes){
                    console.log("文本详情：", res)
                    data.getContentDeltaTest = res.delta
                }
                , fail = fun(err: Any){
                    console.log(err)
                }
                ))
            }
            val getCon = ::gen_getCon_fn
            val setContents = fun(options: Any){
                val editor = getEditor()
                if (editor == null) {
                    return
                }
                editor.setContents(UniEditorElementSetContentsOptions(delta = _uO("ops" to options), success = fun(res: Any){
                    console.log("setContents-success", res)
                }
                , fail = fun(err: Any){
                    console.log(err)
                }
                ))
            }
            val blur = fun(){
                val editor = getEditor()
                if (editor == null) {
                    return
                }
                editor.blur(UniEditorElementOptions(success = fun(res: Any){
                    console.log("编辑器失焦：", res)
                    data.blurTest = true
                }
                , fail = fun(err: Any){
                    console.log(err)
                    data.blurTest = false
                }
                ))
            }
            val clear = fun(){
                val editor = getEditor()
                if (editor == null) {
                    return
                }
                editor.clear(UniEditorElementOptions(success = fun(res: Any) {
                    console.log("clear success", res)
                    data.clearTest = true
                }
                , fail = fun(err: Any){
                    console.log(err)
                    data.clearTest = false
                }
                ))
            }
            val removeFormat = fun(){
                val editor = getEditor()
                if (editor == null) {
                    return
                }
                editor.removeFormat(null)
                data.removeFormatTest = true
            }
            fun gen_insertImage_fn(path: String) {
                val editor = getEditor()
                if (editor == null) {
                    return
                }
                val options = UniEditorElementInsertImageOptions(src = path, alt = "image", success = fun(_res){
                    data.insertImageTest = true
                }
                , fail = fun(_res){
                    data.insertImageTest = false
                }
                )
                editor.insertImage(options)
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val insertImage = ::gen_insertImage_fn
            fun gen_normalizeLinkHref_fn(value: String): String {
                val trimmedValue = value.trim()
                if (trimmedValue == "") {
                    return ""
                }
                if (trimmedValue.startsWith("http://") || trimmedValue.startsWith("https://") || trimmedValue.startsWith("mailto:") || trimmedValue.startsWith("tel:")) {
                    return trimmedValue
                }
                return "https://" + trimmedValue
            }
            val normalizeLinkHref = ::gen_normalizeLinkHref_fn
            fun gen_escapeRegExp_fn(value: String): String {
                return value.replace(UTSRegExp("[-/\\\\^\$*+?.()|[\\]{}]", "g"), "\\\$&")
            }
            val escapeRegExp = ::gen_escapeRegExp_fn
            fun gen_getBooleanAttribute_fn(attributes: UTSJSONObject, key: String): Boolean {
                val value = attributes[key]
                return value != null && (value as Boolean)
            }
            val getBooleanAttribute = ::gen_getBooleanAttribute_fn
            fun gen_buildOpAttributes_fn(attributes: UTSJSONObject?, nextLinkValue: String?, preserveLink: Boolean): UTSJSONObject? {
                var hasValue = false
                val nextAttributes: UTSJSONObject = _uO()
                if (attributes != null) {
                    if (getBooleanAttribute(attributes, "bold")) {
                        nextAttributes["bold"] = true
                        hasValue = true
                    }
                    if (getBooleanAttribute(attributes, "italic")) {
                        nextAttributes["italic"] = true
                        hasValue = true
                    }
                    if (getBooleanAttribute(attributes, "underline")) {
                        nextAttributes["underline"] = true
                        hasValue = true
                    }
                    if (getBooleanAttribute(attributes, "strike")) {
                        nextAttributes["strike"] = true
                        hasValue = true
                    }
                    if (getBooleanAttribute(attributes, "blockquote")) {
                        nextAttributes["blockquote"] = true
                        hasValue = true
                    }
                    if (getBooleanAttribute(attributes, "code-block")) {
                        nextAttributes["code-block"] = true
                        hasValue = true
                    }
                    if (attributes["header"] != null && (attributes["header"] as Number) != 0) {
                        nextAttributes["header"] = attributes["header"]
                        hasValue = true
                    }
                    if (attributes["list"] != null && (attributes["list"] as String) != "") {
                        nextAttributes["list"] = attributes["list"]
                        hasValue = true
                    }
                    if (attributes["align"] != null && (attributes["align"] as String) != "") {
                        nextAttributes["align"] = attributes["align"]
                        hasValue = true
                    }
                    if (attributes["textIndent"] != null && (attributes["textIndent"] as String) != "") {
                        nextAttributes["textIndent"] = attributes["textIndent"]
                        hasValue = true
                    }
                    if (attributes["marginLeft"] != null && (attributes["marginLeft"] as String) != "") {
                        nextAttributes["marginLeft"] = attributes["marginLeft"]
                        hasValue = true
                    }
                    if (attributes["marginRight"] != null && (attributes["marginRight"] as String) != "") {
                        nextAttributes["marginRight"] = attributes["marginRight"]
                        hasValue = true
                    }
                    if (attributes["lineHeight"] != null && (attributes["lineHeight"] as String) != "") {
                        nextAttributes["lineHeight"] = attributes["lineHeight"]
                        hasValue = true
                    }
                    if (attributes["letterSpacing"] != null && (attributes["letterSpacing"] as String) != "") {
                        nextAttributes["letterSpacing"] = attributes["letterSpacing"]
                        hasValue = true
                    }
                    if (attributes["fontFamily"] != null && (attributes["fontFamily"] as String) != "") {
                        nextAttributes["fontFamily"] = attributes["fontFamily"]
                        hasValue = true
                    }
                    if (attributes["fontSize"] != null && (attributes["fontSize"] as String) != "") {
                        nextAttributes["fontSize"] = attributes["fontSize"]
                        hasValue = true
                    }
                    if (attributes["color"] != null && (attributes["color"] as String) != "") {
                        nextAttributes["color"] = attributes["color"]
                        hasValue = true
                    }
                    if (attributes["backgroundColor"] != null && (attributes["backgroundColor"] as String) != "") {
                        nextAttributes["backgroundColor"] = attributes["backgroundColor"]
                        hasValue = true
                    }
                    if (preserveLink && attributes["link"] != null && (attributes["link"] as String) != "") {
                        nextAttributes["link"] = attributes["link"]
                        hasValue = true
                    }
                }
                if (nextLinkValue != null && nextLinkValue != "") {
                    nextAttributes["link"] = nextLinkValue
                    hasValue = true
                }
                return if (hasValue) {
                    nextAttributes
                } else {
                    null
                }
            }
            val buildOpAttributes = ::gen_buildOpAttributes_fn
            fun gen_pushTextOp_fn(ops: UTSArray<Any>, text: String, attributes: Any?) {
                if (text == "") {
                    return
                }
                if (attributes != null) {
                    ops.push(_uO("insert" to text, "attributes" to attributes))
                    return
                }
                ops.push(_uO("insert" to text))
            }
            val pushTextOp = ::gen_pushTextOp_fn
            fun gen_replaceLinkInDeltaOps_fn(ops: UTSArray<Any>, selectionText: String, originalHref: String, nextHref: String?): UTSArray<Any>? {
                val nextOps: UTSArray<Any> = _uA()
                var replaced = false
                for(op in resolveUTSValueIterator(ops)){
                    val opItem = op as UTSJSONObject
                    if (replaced) {
                        nextOps.push(op)
                        continue
                    }
                    val insertValue = opItem["insert"]
                    if (UTSAndroid.`typeof`(insertValue) != "string") {
                        nextOps.push(op)
                        continue
                    }
                    val text = insertValue as String
                    val attributes = opItem["attributes"] as UTSJSONObject?
                    val currentHref = if (attributes != null && attributes["link"] != null) {
                        attributes["link"] as String
                    } else {
                        ""
                    }
                    val matchesExistingLink = originalHref != "" && currentHref == originalHref
                    val matchesPlainSelection = originalHref == "" && selectionText != "" && currentHref == ""
                    if (!matchesExistingLink && !matchesPlainSelection) {
                        nextOps.push(op)
                        continue
                    }
                    var matchStart: Number = 0
                    var matchLength = text.length
                    if (selectionText != "") {
                        val index = text.indexOf(selectionText)
                        if (index < 0) {
                            nextOps.push(op)
                            continue
                        }
                        matchStart = index
                        matchLength = selectionText.length
                    }
                    val beforeText = text.slice(0, matchStart)
                    val matchedText = text.slice(matchStart, matchStart + matchLength)
                    val afterText = text.slice(matchStart + matchLength)
                    pushTextOp(nextOps, beforeText, buildOpAttributes(attributes, null, true))
                    val targetAttributes = buildOpAttributes(attributes, nextHref, false)
                    pushTextOp(nextOps, matchedText, targetAttributes)
                    pushTextOp(nextOps, afterText, buildOpAttributes(attributes, null, true))
                    replaced = true
                }
                if (!replaced) {
                    return null
                }
                return nextOps
            }
            val replaceLinkInDeltaOps = ::gen_replaceLinkInDeltaOps_fn
            fun gen_applyLinkDeltaMutation_fn(nextHref: String?) {
                val editor = getEditor()
                if (editor == null) {
                    return
                }
                val selectionText = data.linkSelectionText
                val originalHref = data.linkOriginalHref
                editor.getContents(UniEditorElementGetContentsOptions(success = fun(res: UniEditorElementGetContentsOptionsRes){
                    val delta = res.delta as UTSJSONObject?
                    val ops = if (delta != null) {
                        delta["ops"] as UTSArray<Any>
                    } else {
                        null
                    }
                    if (ops == null) {
                        uni_showToast(ShowToastOptions(title = if (nextHref == null) {
                            "删除链接失败"
                        } else {
                            "编辑链接失败"
                        }
                        , icon = "none"))
                        return
                    }
                    val nextOps = replaceLinkInDeltaOps(ops, selectionText, originalHref, nextHref)
                    if (nextOps == null) {
                        uni_showToast(ShowToastOptions(title = if (nextHref == null) {
                            "未定位到原超链接"
                        } else {
                            "未定位到原超链接文本"
                        }
                        , icon = "none"))
                        return
                    }
                    editor.setContents(UniEditorElementSetContentsOptions(delta = _uO("ops" to nextOps), success = fun(_res){
                        setLocalFormat("link", nextHref)
                        closeSheets()
                        closeLinkModal()
                        refocusEditorAfterToolbarAction()
                    }
                    , fail = fun(_res){
                        uni_showToast(ShowToastOptions(title = if (nextHref == null) {
                            "删除链接失败"
                        } else {
                            "编辑链接失败"
                        }
                        , icon = "none"))
                    }
                    ))
                }
                , fail = fun(_res){
                    uni_showToast(ShowToastOptions(title = if (nextHref == null) {
                        "读取内容失败"
                    } else {
                        "读取内容失败"
                    }
                    , icon = "none"))
                }
                ))
            }
            val applyLinkDeltaMutation = ::gen_applyLinkDeltaMutation_fn
            fun gen_insertLink_fn(text: String, href: String) {
                val editor = getEditor()
                if (editor == null) {
                    return
                }
                val normalizedHref = normalizeLinkHref(href)
                if (normalizedHref == "") {
                    uni_showToast(ShowToastOptions(title = "请输入链接地址", icon = "none"))
                    return
                }
                val trimmedText = text.trim()
                val linkText = if (trimmedText != "") {
                    trimmedText
                } else {
                    normalizedHref
                }
                val options = UniEditorElementInsertLinkOptions(href = normalizedHref, text = linkText, success = fun(_res){
                    data.formats.link = normalizedHref
                }
                , fail = fun(_res){
                    uni_showToast(ShowToastOptions(title = "插入链接失败", icon = "none"))
                }
                )
                editor.insertLink(options)
                closeSheets()
                closeLinkModal()
                refocusEditorAfterToolbarAction()
            }
            val insertLink = ::gen_insertLink_fn
            fun gen_confirmLinkModal_fn() {
                val href = data.linkDraftHref.trim()
                if (href == "") {
                    uni_showToast(ShowToastOptions(title = "链接地址不能为空", icon = "none"))
                    return
                }
                val normalizedHref = normalizeLinkHref(href)
                if (data.linkOriginalHref != "" || data.linkSelectionText != "") {
                    applyLinkDeltaMutation(normalizedHref)
                    return
                }
                insertLink(data.linkDraftText, href)
            }
            val confirmLinkModal = ::gen_confirmLinkModal_fn
            fun gen_removeLink_fn() {
                val editor = getEditor()
                if (editor == null) {
                    return
                }
                if (data.linkOriginalHref != "" || data.linkSelectionText != "") {
                    applyLinkDeltaMutation(null)
                    return
                }
                applyFormatWithState("link", null)
                closeSheets()
                closeLinkModal()
                refocusEditorAfterToolbarAction()
            }
            val removeLink = ::gen_removeLink_fn
            fun gen_chooseInsertImage_fn() {
                uni_chooseImage(ChooseImageOptions(count = 1, success = fun(res: ChooseImageSuccess){
                    val paths = res.tempFilePaths
                    if (paths.length > 0) {
                        insertImage(paths[0])
                    }
                }
                ))
            }
            val chooseInsertImage = ::gen_chooseInsertImage_fn
            fun gen_undo_fn() {
                val editor = getEditor()
                if (editor == null) {
                    return
                }
                editor.undo(UniEditorElementOptions(success = fun(_res){
                    data.undoTest = true
                }
                , fail = fun(_res){
                    data.undoTest = false
                }
                ))
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val undo = ::gen_undo_fn
            fun gen_redo_fn() {
                val editor = getEditor()
                if (editor == null) {
                    return
                }
                editor.redo(UniEditorElementOptions(success = fun(_res){
                    data.redoTest = true
                }
                , fail = fun(_res){
                    data.redoTest = false
                }
                ))
                closeSheets()
                refocusEditorAfterToolbarAction()
            }
            val redo = ::gen_redo_fn
            fun gen_showToolbarTooltip_fn(buttonId: String, text: String) {
                return
            }
            val showToolbarTooltip = ::gen_showToolbarTooltip_fn
            fun gen_hideToolbarTooltip_fn() {
                return
            }
            val hideToolbarTooltip = ::gen_hideToolbarTooltip_fn
            fun gen_onEditorFocus_fn(event: UniEditorFocusEvent) {
                console.log("onEditorFocus")
                clearToolbarHideTimer()
                data.editorInputType = ""
                if (data.activeSheet != "") {
                    data.activeSheet = ""
                    syncToolbarChipClasses()
                }
                data.isFocused = true
                syncToolbarVisibility()
                syncToolbarBottom()
                if (data.formatPainterActive) {
                    setTimeout(fun(){
                        if (!data.formatPainterActive) {
                            return
                        }
                        applyCopiedFormats()
                        clearFormatPainterState()
                    }
                    , 0)
                }
            }
            val onEditorFocus = ::gen_onEditorFocus_fn
            fun gen_onEditorBlur_fn(event: UniEditorBlurEvent) {
                if (data.ignoreNextBlur) {
                    data.isFocused = true
                    return
                }
                data.editorInputType = ""
                data.isFocused = false
                if (data.activeSheet == "") {
                    syncToolbarBottom()
                    syncToolbarVisibility()
                    scheduleToolbarHide()
                }
            }
            val onEditorBlur = ::gen_onEditorBlur_fn
            fun gen_onStatusChange_fn(event: UniEditorStatusChangeEvent) {
                if (Date.now() < statusSyncLockedUntil) {
                    return
                }
                val formats = event.detail
                val formatObject = JSON.parse<UTSJSONObject>(JSON.stringify(formats))
                if (formatObject == null) {
                    return
                }
                val nextFormats = createDefaultFormats()
                nextFormats.bold = formats.bold == true
                nextFormats.italic = formats.italic == true
                nextFormats.underline = formats.underline == true
                nextFormats.strike = formats.strike == true
                nextFormats.blockquote = formats.blockquote == true
                val codeBlockValue = formatObject["code-block"]
                nextFormats.codeBlock = codeBlockValue == true
                val linkValue = formatObject["link"]
                if (linkValue != null) {
                    nextFormats.link = linkValue as String
                } else if (data.linkModalVisible) {
                    nextFormats.link = data.formats.link
                }
                if (formats.header != null) {
                    nextFormats.header = formats.header!!
                }
                if (formats.list != null) {
                    nextFormats.list = formats.list!!
                }
                if (formats.align != null) {
                    nextFormats.align = formats.align!!
                }
                val textIndentValue = formatObject["textIndent"]
                if (textIndentValue != null) {
                    nextFormats.textIndent = textIndentValue as String
                }
                val marginLeftValue = formatObject["marginLeft"]
                if (marginLeftValue != null) {
                    nextFormats.marginLeft = marginLeftValue as String
                }
                val marginRightValue = formatObject["marginRight"]
                if (marginRightValue != null) {
                    nextFormats.marginRight = marginRightValue as String
                }
                if (formats.lineHeight != null) {
                    nextFormats.lineHeight = formats.lineHeight!!
                }
                if (formats.letterSpacing != null) {
                    nextFormats.letterSpacing = formats.letterSpacing!!
                }
                if (formats.fontFamily != null) {
                    nextFormats.fontFamily = formats.fontFamily!!
                }
                if (formats.fontSize != null) {
                    nextFormats.fontSize = formats.fontSize!!
                }
                if (formats.color != null) {
                    nextFormats.color = formats.color!!
                }
                if (formats.backgroundColor != null) {
                    nextFormats.backgroundColor = formats.backgroundColor!!
                }
                assignFormats(data.formats, nextFormats)
            }
            val onStatusChange = ::gen_onStatusChange_fn
            onReady(fun(){
                updatePageWindowHeight()
            }
            )
            onResize(fun(options: OnResizeOptions){
                data.pageWindowHeight = options.size.windowHeight
                data.pageWindowWidth = options.size.windowWidth
                if (data.activeSheet != "") {
                    updateSheetAnchor(data.activeSheet)
                }
            }
            )
            onUnload(fun(){
                clearToolbarHideTimer()
            }
            )
            __expose(_uM("data" to data, "openMoreSheet" to openMoreSheet, "openTitleSheet" to openTitleSheet, "openStyleSheet" to openStyleSheet, "openTextColorSheet" to openTextColorSheet, "openBackgroundColorSheet" to openBackgroundColorSheet, "openLineHeightSheet" to openLineHeightSheet, "openLetterSpacingSheet" to openLetterSpacingSheet, "openBlockIndentSheet" to openBlockIndentSheet, "openListSheet" to openListSheet, "openFontSizeSheet" to openFontSizeSheet, "openFontFamilySheet" to openFontFamilySheet, "openAlignSheet" to openAlignSheet, "closeSheets" to closeSheets, "getPanelTitle" to getPanelTitle, "getPanelSubtitle" to getPanelSubtitle, "getTitleSummary" to getTitleSummary, "setToolbarFormatsForTest" to setToolbarFormatsForTest, "applyToolbarPresetForTest" to applyToolbarPresetForTest, "resetFormatsForTest" to resetFormatsForTest, "setParagraph" to setParagraph, "setHeadingLevel" to setHeadingLevel, "toggleBold" to toggleBold, "toggleItalic" to toggleItalic, "toggleUnderline" to toggleUnderline, "toggleStrike" to toggleStrike, "setTextColorAndClose" to setTextColorAndClose, "setBackgroundColorAndClose" to setBackgroundColorAndClose, "setLineHeightAndClose" to setLineHeightAndClose, "setLetterSpacingAndClose" to setLetterSpacingAndClose, "setFontSizeAndClose" to setFontSizeAndClose, "setFontFamilyAndClose" to setFontFamilyAndClose, "toggleTextIndent" to toggleTextIndent, "setBlockIndentAndClose" to setBlockIndentAndClose, "setAlignLeft" to setAlignLeft, "setAlignCenter" to setAlignCenter, "setAlignRight" to setAlignRight, "setAlignJustify" to setAlignJustify, "toggleBlockquote" to toggleBlockquote, "toggleCodeBlock" to toggleCodeBlock, "setBulletList" to setBulletList, "setOrderedList" to setOrderedList, "toggleChecklistTool" to toggleChecklistTool, "openLinkModal" to openLinkModal, "closeLinkModal" to closeLinkModal, "confirmLinkModal" to confirmLinkModal, "removeLink" to removeLink, "insertLink" to insertLink, "setContents" to setContents, "blur" to blur, "clear" to clear, "insertDivider" to insertDivider, "undo" to undo, "redo" to redo, "insertImage" to insertImage, "removeFormat" to removeFormat, "getCon" to getCon))
            return fun(): Any? {
                val _component_editor = resolveComponent("editor")
                return _cE("view", _uM("id" to "editor-page-shell", "class" to _nC(unref(pageShellClass))), _uA(
                    _cE("view", _uM("id" to "editor-layout", "class" to _nC(unref(editorLayoutClass))), _uA(
                        _cE("view", _uM("class" to "toolbar-wrap", "style" to _nS(unref(toolbarWrapStyle))), _uA(
                            _cE("view", _uM("class" to "toolbar-frame"), _uA(
                                _cE("view", _uM("class" to _nC(unref(desktopToolbarShellClass)), "onMousemove" to hideToolbarTooltip), _uA(
                                    _cE("view", _uM("class" to _nC(unref(desktopToolbarLeadingGroupClass))), _uA(
                                        _cE("view", _uM("id" to "toolbar-button-undo", "onClick" to undo, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-undo", "撤回")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to "toolbar-icon-button"), _uA(
                                            _cE("text", _uM("class" to "toolbar-icon-text iconfont"), _tD(""))
                                        ), 40, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-redo", "onClick" to redo, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-redo", "重做")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to "toolbar-icon-button"), _uA(
                                            _cE("text", _uM("class" to "toolbar-icon-text iconfont"), _tD(""))
                                        ), 40, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-clear-format", "onClick" to clearFormatting, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-clear-format", "清除格式")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to "toolbar-icon-button"), _uA(
                                            _cE("text", _uM("class" to "toolbar-icon-text iconfont"), _tD(""))
                                        ), 40, _uA(
                                            "onMousemove"
                                        ))
                                    ), 2),
                                    _cE("view", _uM("class" to _nC(unref(desktopToolbarDividerClass))), null, 2),
                                    _cE("view", _uM("class" to _nC(unref(desktopToolbarGroupClass))), _uA(
                                        _cE("view", _uM("id" to "toolbar-button-font-size", "onClick" to openFontSizeSheet, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-font-size", "设置字号")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(fontSizeSheetHighlighted)) {
                                            "toolbar-select toolbar-select-active"
                                        } else {
                                            "toolbar-select"
                                        }
                                        )), _uA(
                                            _cE("text", _uM("class" to _nC(if (unref(fontSizeSheetHighlighted)) {
                                                "toolbar-select-label toolbar-select-label-active toolbar-size-label"
                                            } else {
                                                "toolbar-select-label toolbar-size-label"
                                            }
                                            )), _tD(getDesktopFontSizeLabel()), 3),
                                            _cE("text", _uM("class" to _nC(if (unref(fontSizeSheetHighlighted)) {
                                                "toolbar-select-arrow toolbar-select-arrow-active iconfont"
                                            } else {
                                                "toolbar-select-arrow iconfont"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-font-family", "onClick" to openFontFamilySheet, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-font-family", "设置字体")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(fontFamilySheetHighlighted)) {
                                            "toolbar-select toolbar-select-font toolbar-select-active"
                                        } else {
                                            "toolbar-select toolbar-select-font"
                                        }
                                        )), _uA(
                                            _cE("text", _uM("class" to _nC(if (unref(fontFamilySheetHighlighted)) {
                                                "toolbar-select-label toolbar-select-label-active toolbar-select-font-label"
                                            } else {
                                                "toolbar-select-label toolbar-select-font-label"
                                            }
                                            )), _tD(getDesktopFontFamilyLabel()), 3),
                                            _cE("text", _uM("class" to _nC(if (unref(fontFamilySheetHighlighted)) {
                                                "toolbar-select-arrow toolbar-select-arrow-active iconfont"
                                            } else {
                                                "toolbar-select-arrow iconfont"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-bold", "onClick" to toggleBold, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-bold", "加粗")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(data).formats.bold) {
                                            "toolbar-icon-button toolbar-icon-button-active"
                                        } else {
                                            "toolbar-icon-button"
                                        }
                                        )), _uA(
                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.bold) {
                                                "toolbar-icon-text toolbar-icon-text-active toolbar-font-action iconfont relative-top-1"
                                            } else {
                                                "toolbar-icon-text toolbar-font-action iconfont relative-top-1"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-italic", "onClick" to toggleItalic, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-italic", "斜体")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(data).formats.italic) {
                                            "toolbar-icon-button toolbar-icon-button-active"
                                        } else {
                                            "toolbar-icon-button"
                                        }
                                        )), _uA(
                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.italic) {
                                                "toolbar-icon-text toolbar-icon-text-active toolbar-font-action iconfont relative-top-1"
                                            } else {
                                                "toolbar-icon-text toolbar-font-action iconfont relative-top-1"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-underline", "onClick" to toggleUnderline, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-underline", "下划线")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(data).formats.underline) {
                                            "toolbar-icon-button toolbar-icon-button-active"
                                        } else {
                                            "toolbar-icon-button"
                                        }
                                        )), _uA(
                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.underline) {
                                                "toolbar-icon-text toolbar-icon-text-active toolbar-font-action iconfont"
                                            } else {
                                                "toolbar-icon-text toolbar-font-action iconfont"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-strike", "onClick" to toggleStrike, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-strike", "删除线")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(data).formats.strike) {
                                            "toolbar-icon-button toolbar-icon-button-active"
                                        } else {
                                            "toolbar-icon-button"
                                        }
                                        )), _uA(
                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.strike) {
                                                "toolbar-icon-text toolbar-icon-text-active toolbar-font-action iconfont relative-top-1"
                                            } else {
                                                "toolbar-icon-text toolbar-font-action iconfont relative-top-1"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        ))
                                    ), 2),
                                    _cE("view", _uM("class" to _nC(unref(desktopToolbarDividerClass))), null, 2),
                                    _cE("view", _uM("class" to _nC(unref(desktopToolbarGroupClass))), _uA(
                                        _cE("view", _uM("id" to "toolbar-button-text-color", "onClick" to openTextColorSheet, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-text-color", "字体颜色")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(textColorSheetHighlighted)) {
                                            "toolbar-color-button toolbar-color-button-active"
                                        } else {
                                            "toolbar-color-button"
                                        }
                                        )), _uA(
                                            _cE("view", _uM("class" to "toolbar-color-stack"), _uA(
                                                _cE("text", _uM("class" to _nC(if (unref(textColorSheetHighlighted)) {
                                                    "toolbar-color-symbol toolbar-color-symbol-active iconfont"
                                                } else {
                                                    "toolbar-color-symbol iconfont"
                                                }
                                                )), _tD(""), 2),
                                                _cE("view", _uM("class" to "toolbar-color-underline", "style" to _nS(unref(toolbarTextColorChipStyle))), null, 4)
                                            )),
                                            _cE("text", _uM("class" to _nC(if (unref(textColorSheetHighlighted)) {
                                                "toolbar-color-arrow toolbar-color-arrow-active iconfont"
                                            } else {
                                                "toolbar-color-arrow iconfont"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-background-color", "onClick" to openBackgroundColorSheet, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-background-color", "背景颜色")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(backgroundColorSheetHighlighted)) {
                                            "toolbar-color-button toolbar-color-button-active"
                                        } else {
                                            "toolbar-color-button"
                                        }
                                        )), _uA(
                                            _cE("view", _uM("class" to "toolbar-color-stack"), _uA(
                                                _cE("text", _uM("class" to _nC(if (unref(backgroundColorSheetHighlighted)) {
                                                    "toolbar-color-symbol toolbar-color-symbol-active iconfont"
                                                } else {
                                                    "toolbar-color-symbol iconfont"
                                                }
                                                )), _tD(""), 2),
                                                _cE("view", _uM("class" to "toolbar-color-underline", "style" to _nS(unref(toolbarBackgroundColorChipStyle))), null, 4)
                                            )),
                                            _cE("text", _uM("class" to _nC(if (unref(backgroundColorSheetHighlighted)) {
                                                "toolbar-color-arrow toolbar-color-arrow-active iconfont"
                                            } else {
                                                "toolbar-color-arrow iconfont"
                                            }
                                            ), "style" to _nS(_uM("margin-left" to "2px"))), _tD(""), 6)
                                        ), 42, _uA(
                                            "onMousemove"
                                        ))
                                    ), 2),
                                    _cE("view", _uM("class" to _nC(unref(desktopToolbarDividerClass))), null, 2),
                                    _cE("view", _uM("class" to _nC(unref(desktopToolbarGroupClass))), _uA(
                                        _cE("view", _uM("id" to "toolbar-button-align", "onClick" to openAlignSheet, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-align", "对齐方式")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(alignSheetHighlighted)) {
                                            "toolbar-select toolbar-select-compact toolbar-select-active"
                                        } else {
                                            "toolbar-select toolbar-select-compact"
                                        }
                                        )), _uA(
                                            _cE("text", _uM("class" to _nC(if (unref(alignSheetHighlighted)) {
                                                "toolbar-icon-text toolbar-icon-text-active toolbar-select-glyph iconfont"
                                            } else {
                                                "toolbar-icon-text toolbar-select-glyph iconfont"
                                            }
                                            )), _tD(unref(desktopAlignIconGlyph)), 3),
                                            _cE("text", _uM("class" to _nC(if (unref(alignSheetHighlighted)) {
                                                "toolbar-select-arrow toolbar-select-arrow-active iconfont"
                                            } else {
                                                "toolbar-select-arrow iconfont"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-text-indent", "onClick" to toggleTextIndent, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-text-indent", "首行缩进")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(textIndentHighlighted)) {
                                            "toolbar-icon-button toolbar-icon-button-active"
                                        } else {
                                            "toolbar-icon-button"
                                        }
                                        )), _uA(
                                            _cE("text", _uM("class" to _nC(if (unref(textIndentHighlighted)) {
                                                "toolbar-icon-text toolbar-icon-text-active iconfont"
                                            } else {
                                                "toolbar-icon-text iconfont"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-block-indent", "onClick" to openBlockIndentSheet, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-block-indent", "两端缩进")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(blockIndentSheetHighlighted)) {
                                            "toolbar-select toolbar-select-compact toolbar-select-active"
                                        } else {
                                            "toolbar-select toolbar-select-compact"
                                        }
                                        )), _uA(
                                            _cE("text", _uM("class" to _nC(if (unref(blockIndentSheetHighlighted)) {
                                                "toolbar-icon-text toolbar-icon-text-active toolbar-select-glyph iconfont"
                                            } else {
                                                "toolbar-icon-text toolbar-select-glyph iconfont"
                                            }
                                            )), _tD(""), 2),
                                            _cE("text", _uM("class" to _nC(if (unref(blockIndentSheetHighlighted)) {
                                                "toolbar-select-arrow toolbar-select-arrow-active iconfont"
                                            } else {
                                                "toolbar-select-arrow iconfont"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-line-height", "onClick" to openLineHeightSheet, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-line-height", "行间距")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(lineHeightSheetHighlighted)) {
                                            "toolbar-select toolbar-select-compact toolbar-select-value toolbar-select-active"
                                        } else {
                                            "toolbar-select toolbar-select-compact toolbar-select-value"
                                        }
                                        )), _uA(
                                            _cE("text", _uM("class" to _nC(if (unref(lineHeightSheetHighlighted)) {
                                                "toolbar-icon-text toolbar-icon-text-active toolbar-select-glyph iconfont"
                                            } else {
                                                "toolbar-icon-text toolbar-select-glyph iconfont"
                                            }
                                            )), _tD(""), 2),
                                            _cE("text", _uM("class" to _nC(if (unref(lineHeightSheetHighlighted)) {
                                                "toolbar-select-arrow toolbar-select-arrow-active iconfont"
                                            } else {
                                                "toolbar-select-arrow iconfont"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-letter-spacing", "onClick" to openLetterSpacingSheet, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-letter-spacing", "字间距")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(letterSpacingSheetHighlighted)) {
                                            "toolbar-select toolbar-select-compact toolbar-select-value toolbar-select-active"
                                        } else {
                                            "toolbar-select toolbar-select-compact toolbar-select-value"
                                        }
                                        )), _uA(
                                            _cE("text", _uM("class" to _nC(if (unref(letterSpacingSheetHighlighted)) {
                                                "toolbar-icon-text toolbar-icon-text-active toolbar-select-glyph iconfont"
                                            } else {
                                                "toolbar-icon-text toolbar-select-glyph iconfont"
                                            }
                                            )), _tD(""), 2),
                                            _cE("text", _uM("class" to _nC(if (unref(letterSpacingSheetHighlighted)) {
                                                "toolbar-select-arrow toolbar-select-arrow-active iconfont"
                                            } else {
                                                "toolbar-select-arrow iconfont"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-list", "onClick" to openListSheet, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-list", "列表")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(listSheetHighlighted)) {
                                            "toolbar-select toolbar-select-compact toolbar-select-active"
                                        } else {
                                            "toolbar-select toolbar-select-compact"
                                        }
                                        )), _uA(
                                            _cE("text", _uM("class" to _nC(if (unref(listSheetHighlighted)) {
                                                "toolbar-icon-text toolbar-icon-text-active toolbar-select-glyph iconfont"
                                            } else {
                                                "toolbar-icon-text toolbar-select-glyph iconfont"
                                            }
                                            )), _tD(""), 2),
                                            _cE("text", _uM("class" to _nC(if (unref(listSheetHighlighted)) {
                                                "toolbar-select-arrow toolbar-select-arrow-active iconfont"
                                            } else {
                                                "toolbar-select-arrow iconfont"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-blockquote", "onClick" to toggleBlockquote, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-blockquote", "引用")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(data).formats.blockquote) {
                                            "toolbar-icon-button toolbar-icon-button-active"
                                        } else {
                                            "toolbar-icon-button"
                                        }
                                        )), _uA(
                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.blockquote) {
                                                "toolbar-icon-text toolbar-icon-text-active iconfont"
                                            } else {
                                                "toolbar-icon-text iconfont"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-code-block", "onClick" to toggleCodeBlock, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-code-block", "代码块")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(data).formats.codeBlock) {
                                            "toolbar-icon-button toolbar-icon-button-active"
                                        } else {
                                            "toolbar-icon-button"
                                        }
                                        )), _uA(
                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.codeBlock) {
                                                "toolbar-icon-text toolbar-icon-text-active iconfont"
                                            } else {
                                                "toolbar-icon-text iconfont"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-divider", "onClick" to insertDivider, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-divider", "分割线")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to "toolbar-icon-button"), _uA(
                                            _cE("text", _uM("class" to "toolbar-icon-text iconfont"), _tD(""))
                                        ), 40, _uA(
                                            "onMousemove"
                                        ))
                                    ), 2),
                                    _cE("view", _uM("class" to _nC(unref(desktopToolbarDividerClass))), null, 2),
                                    _cE("view", _uM("class" to _nC(unref(desktopToolbarGroupClass))), _uA(
                                        _cE("view", _uM("id" to "toolbar-button-image", "onClick" to chooseInsertImage, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-image", "图片")
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to "toolbar-icon-button toolbar-icon-button-action"), _uA(
                                            _cE("text", _uM("class" to "toolbar-icon-text iconfont"), _tD(""))
                                        ), 40, _uA(
                                            "onMousemove"
                                        )),
                                        _cE("view", _uM("id" to "toolbar-button-link", "onClick" to openLinkModal, "onMousemove" to withModifiers(fun(){
                                            showToolbarTooltip("toolbar-button-link", if (unref(data).formats.link != "") {
                                                "编辑超链接"
                                            } else {
                                                "插入超链接"
                                            }
                                            )
                                        }
                                        , _uA(
                                            "stop"
                                        )), "class" to _nC(if (unref(data).formats.link != "") {
                                            "toolbar-icon-button toolbar-icon-button-action toolbar-icon-button-active"
                                        } else {
                                            "toolbar-icon-button toolbar-icon-button-action"
                                        }
                                        )), _uA(
                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.link != "") {
                                                "toolbar-icon-text toolbar-icon-text-active iconfont"
                                            } else {
                                                "toolbar-icon-text iconfont"
                                            }
                                            )), _tD(""), 2)
                                        ), 42, _uA(
                                            "onMousemove"
                                        ))
                                    ), 2)
                                ), 34)
                            ))
                        ), 4),
                        if (unref(data).activeSheet != "") {
                            _cE("view", _uM("key" to 0, "class" to "sheet-backdrop", "onClick" to closeSheets))
                        } else {
                            _cC("v-if", true)
                        }
                        ,
                        if (unref(data).activeSheet != "") {
                            _cE("view", _uM("key" to 1, "id" to "editor-sheet-host", "class" to _nC(unref(sheetHostClass)), "style" to _nS(unref(sheetHostStyle))), _uA(
                                _cE("view", _uM("class" to _nC(unref(toolbarPanelClass)), "style" to _nS(unref(sheetPanelStyle))), _uA(
                                    _cE("view", _uM("class" to _nC(unref(toolbarPanelHeaderClass))), _uA(
                                        _cE("view", _uM("class" to "toolbar-panel-title-wrap"), _uA(
                                            _cE("text", _uM("class" to _nC(unref(toolbarPanelTitleClass))), _tD(getPanelTitle()), 3),
                                            _cE("text", _uM("class" to _nC(unref(toolbarPanelSubtitleClass))), _tD(getPanelSubtitle()), 3)
                                        ))
                                    ), 2),
                                    _cE("scroll-view", _uM("class" to _nC(unref(toolbarPanelScrollClass)), "direction" to "vertical", "show-scrollbar" to false), _uA(
                                        if (unref(data).activeSheet == "title") {
                                            _cE("view", _uM("key" to 0, "class" to "toolbar-panel-section"), _uA(
                                                _cE("view", _uM("class" to _nC(unref(data).toolbarChipRowClass)), _uA(
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to setParagraph, "class" to _nC(if (unref(paragraphActive)) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if (unref(paragraphActive)) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "P", 2),
                                                            _cE("text", _uM("class" to _nC(if (unref(paragraphActive)) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "正文", 2)
                                                        ), 2)
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to toggleBlockquote, "class" to _nC(if (unref(data).formats.blockquote) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.blockquote) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "BQ", 2),
                                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.blockquote) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "引用", 2)
                                                        ), 2)
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to toggleCodeBlock, "class" to _nC(if (unref(data).formats.codeBlock) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.codeBlock) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "</>", 2),
                                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.codeBlock) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "代码", 2)
                                                        ), 2)
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to fun(){
                                                            setHeadingLevel(1)
                                                        }, "class" to _nC(if ((unref(data).formats.header == 1)) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.header == 1)) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "H1", 2),
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.header == 1)) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "大标题1", 2)
                                                        ), 10, _uA(
                                                            "onClick"
                                                        ))
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to fun(){
                                                            setHeadingLevel(2)
                                                        }, "class" to _nC(if ((unref(data).formats.header == 2)) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.header == 2)) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "H2", 2),
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.header == 2)) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "大标题2", 2)
                                                        ), 10, _uA(
                                                            "onClick"
                                                        ))
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to fun(){
                                                            setHeadingLevel(3)
                                                        }, "class" to _nC(if ((unref(data).formats.header == 3)) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.header == 3)) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "H3", 2),
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.header == 3)) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "大标题3", 2)
                                                        ), 10, _uA(
                                                            "onClick"
                                                        ))
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to fun(){
                                                            setHeadingLevel(4)
                                                        }, "class" to _nC(if ((unref(data).formats.header == 4)) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.header == 4)) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "H4", 2),
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.header == 4)) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "大标题4", 2)
                                                        ), 10, _uA(
                                                            "onClick"
                                                        ))
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to fun(){
                                                            setHeadingLevel(5)
                                                        }, "class" to _nC(if ((unref(data).formats.header == 5)) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.header == 5)) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "H5", 2),
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.header == 5)) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "大标题5", 2)
                                                        ), 10, _uA(
                                                            "onClick"
                                                        ))
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to fun(){
                                                            setHeadingLevel(6)
                                                        }, "class" to _nC(if ((unref(data).formats.header == 6)) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.header == 6)) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "H6", 2),
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.header == 6)) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "大标题6", 2)
                                                        ), 10, _uA(
                                                            "onClick"
                                                        ))
                                                    ), 2)
                                                ), 2)
                                            ))
                                        } else {
                                            _cC("v-if", true)
                                        },
                                        if (unref(data).activeSheet == "style") {
                                            _cE("view", _uM("key" to 1, "class" to "toolbar-panel-section"), _uA(
                                                _cE("view", _uM("class" to _nC(unref(data).toolbarChipRowClass)), _uA(
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to toggleBoldAndClose, "class" to _nC(if (unref(data).formats.bold) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.bold) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "B", 2),
                                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.bold) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "加粗", 2)
                                                        ), 2)
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to toggleItalicAndClose, "class" to _nC(if (unref(data).formats.italic) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.italic) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "I", 2),
                                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.italic) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "斜体", 2)
                                                        ), 2)
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to toggleUnderlineAndClose, "class" to _nC(if (unref(data).formats.underline) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.underline) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "U", 2),
                                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.underline) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "下划线", 2)
                                                        ), 2)
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to toggleStrikeAndClose, "class" to _nC(if (unref(data).formats.strike) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.strike) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "S", 2),
                                                            _cE("text", _uM("class" to _nC(if (unref(data).formats.strike) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "删除线", 2)
                                                        ), 2)
                                                    ), 2)
                                                ), 2),
                                                _cE("view", _uM("class" to "toolbar-color-section"), _uA(
                                                    _cE("text", _uM("class" to "toolbar-color-title"), "文字颜色"),
                                                    _cE("view", _uM("class" to "color-row color-row-panel"), _uA(
                                                        _cE("view", _uM("onClick" to fun(){
                                                            setTextColorAndClose("")
                                                        }, "class" to _nC(if ((unref(data).formats.color == "")) {
                                                            unref(clearColorSwatchActiveClass)
                                                        } else {
                                                            unref(clearColorSwatchClass)
                                                        })), null, 10, _uA(
                                                            "onClick"
                                                        )),
                                                        _cE(Fragment, null, RenderHelpers.renderList(TEXT_COLOR_PRESETS, fun(color, __key, __index, _cached): Any {
                                                            return _cE("view", _uM("key" to color, "onClick" to fun(){
                                                                setTextColorAndClose(color)
                                                            }, "class" to _nC(if ((unref(data).formats.color == color)) {
                                                                unref(filledColorSwatchActiveClass)
                                                            } else {
                                                                unref(filledColorSwatchClass)
                                                            }), "style" to _nS("background-color: " + color + ";")), null, 14, _uA(
                                                                "onClick"
                                                            ))
                                                        }), 64)
                                                    ))
                                                )),
                                                _cE("view", _uM("class" to "toolbar-color-section"), _uA(
                                                    _cE("text", _uM("class" to "toolbar-color-title"), "背景颜色"),
                                                    _cE("view", _uM("class" to "color-row color-row-panel"), _uA(
                                                        _cE("view", _uM("onClick" to fun(){
                                                            setBackgroundColorAndClose("")
                                                        }, "class" to _nC(if ((unref(data).formats.backgroundColor == "")) {
                                                            unref(clearColorSwatchActiveClass)
                                                        } else {
                                                            unref(clearColorSwatchClass)
                                                        })), null, 10, _uA(
                                                            "onClick"
                                                        )),
                                                        _cE(Fragment, null, RenderHelpers.renderList(BACKGROUND_COLOR_PRESETS, fun(color, __key, __index, _cached): Any {
                                                            return _cE("view", _uM("key" to color, "onClick" to fun(){
                                                                setBackgroundColorAndClose(color)
                                                            }, "class" to _nC(if ((unref(data).formats.backgroundColor == color)) {
                                                                unref(filledColorSwatchActiveClass)
                                                            } else {
                                                                unref(filledColorSwatchClass)
                                                            }), "style" to _nS("background-color: " + color + ";")), null, 14, _uA(
                                                                "onClick"
                                                            ))
                                                        }), 64)
                                                    ))
                                                ))
                                            ))
                                        } else {
                                            _cC("v-if", true)
                                        },
                                        if (unref(data).activeSheet == "line-height") {
                                            _cE("view", _uM("key" to 2, "class" to "toolbar-panel-section"), _uA(
                                                _cE("view", _uM("class" to "toolbar-panel-group"), _uA(
                                                    _cE("text", _uM("class" to "toolbar-color-title"), "行间距"),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipRowClass)), _uA(
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setLineHeightAndClose("")
                                                            }, "class" to _nC(if ((unref(data).formats.lineHeight == "")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.lineHeight == "")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "A", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.lineHeight == "")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "默认", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setLineHeightAndClose("1.5")
                                                            }, "class" to _nC(if ((unref(data).formats.lineHeight == "1.5")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.lineHeight == "1.5")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "1.5", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.lineHeight == "1.5")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "紧凑", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setLineHeightAndClose("1.8")
                                                            }, "class" to _nC(if ((unref(data).formats.lineHeight == "1.8")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.lineHeight == "1.8")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "1.8", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.lineHeight == "1.8")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "舒适", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setLineHeightAndClose("2")
                                                            }, "class" to _nC(if ((unref(data).formats.lineHeight == "2")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.lineHeight == "2")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "2.0", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.lineHeight == "2")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "宽松", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2)
                                                    ), 2)
                                                ))
                                            ))
                                        } else {
                                            _cC("v-if", true)
                                        },
                                        if (unref(data).activeSheet == "letter-spacing") {
                                            _cE("view", _uM("key" to 3, "class" to "toolbar-panel-section"), _uA(
                                                _cE("view", _uM("class" to "toolbar-panel-group"), _uA(
                                                    _cE("text", _uM("class" to "toolbar-color-title"), "字间距"),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipRowClass)), _uA(
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setLetterSpacingAndClose("")
                                                            }, "class" to _nC(if ((unref(data).formats.letterSpacing == "")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.letterSpacing == "")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "Aa", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.letterSpacing == "")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "默认", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setLetterSpacingAndClose("0px")
                                                            }, "class" to _nC(if ((unref(data).formats.letterSpacing == "0px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.letterSpacing == "0px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "0", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.letterSpacing == "0px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "标准", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setLetterSpacingAndClose("1px")
                                                            }, "class" to _nC(if ((unref(data).formats.letterSpacing == "1px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.letterSpacing == "1px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "+1", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.letterSpacing == "1px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "微松", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setLetterSpacingAndClose("2px")
                                                            }, "class" to _nC(if ((unref(data).formats.letterSpacing == "2px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.letterSpacing == "2px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "+2", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.letterSpacing == "2px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "通透", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2)
                                                    ), 2)
                                                ))
                                            ))
                                        } else {
                                            _cC("v-if", true)
                                        },
                                        if (unref(data).activeSheet == "font-size") {
                                            _cE("view", _uM("key" to 4, "class" to "toolbar-panel-section"), _uA(
                                                _cE("view", _uM("class" to "toolbar-panel-group"), _uA(
                                                    _cE("text", _uM("class" to "toolbar-color-title"), "字号"),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipRowClass)), _uA(
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontSizeAndClose("12px")
                                                            }, "class" to _nC(if ((unref(data).formats.fontSize == "12px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "12px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "12", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "12px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "12px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontSizeAndClose("14px")
                                                            }, "class" to _nC(if ((unref(data).formats.fontSize == "14px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "14px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "14", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "14px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "14px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontSizeAndClose("15px")
                                                            }, "class" to _nC(if ((unref(data).formats.fontSize == "15px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "15px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "15", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "15px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "15px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontSizeAndClose("16px")
                                                            }, "class" to _nC(if ((unref(data).formats.fontSize == "16px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "16px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "16", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "16px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "16px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontSizeAndClose("17px")
                                                            }, "class" to _nC(if ((unref(data).formats.fontSize == "17px" || unref(data).formats.fontSize == "")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "17px" || unref(data).formats.fontSize == "")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "17", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "17px" || unref(data).formats.fontSize == "")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "默认", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontSizeAndClose("19px")
                                                            }, "class" to _nC(if ((unref(data).formats.fontSize == "19px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "19px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "19", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "19px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "19px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontSizeAndClose("20px")
                                                            }, "class" to _nC(if ((unref(data).formats.fontSize == "20px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "20px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "20", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "20px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "20px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontSizeAndClose("24px")
                                                            }, "class" to _nC(if ((unref(data).formats.fontSize == "24px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "24px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "24", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "24px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "24px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontSizeAndClose("32px")
                                                            }, "class" to _nC(if ((unref(data).formats.fontSize == "32px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "32px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "32", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "32px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "32px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontSizeAndClose("48px")
                                                            }, "class" to _nC(if ((unref(data).formats.fontSize == "48px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "48px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "48", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontSize == "48px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "48px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2)
                                                    ), 2)
                                                ))
                                            ))
                                        } else {
                                            _cC("v-if", true)
                                        },
                                        if (unref(data).activeSheet == "font-family") {
                                            _cE("view", _uM("key" to 5, "class" to "toolbar-panel-section"), _uA(
                                                _cE("view", _uM("class" to "toolbar-panel-group"), _uA(
                                                    _cE("text", _uM("class" to "toolbar-color-title"), "字体"),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipRowClass)), _uA(
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontFamilyAndClose("")
                                                            }, "class" to _nC(if ((unref(data).formats.fontFamily == "")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "D", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "默认", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontFamilyAndClose("Microsoft YaHei")
                                                            }, "class" to _nC(if ((unref(data).formats.fontFamily == "Microsoft YaHei")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "Microsoft YaHei")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "雅黑", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "Microsoft YaHei")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "微软雅黑", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontFamilyAndClose("SimHei")
                                                            }, "class" to _nC(if ((unref(data).formats.fontFamily == "SimHei")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "SimHei")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "黑", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "SimHei")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "黑体", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontFamilyAndClose("SimSun")
                                                            }, "class" to _nC(if ((unref(data).formats.fontFamily == "SimSun")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "SimSun")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "宋", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "SimSun")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "宋体", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontFamilyAndClose("KaiTi")
                                                            }, "class" to _nC(if ((unref(data).formats.fontFamily == "KaiTi")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "KaiTi")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "楷", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "KaiTi")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "楷体", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontFamilyAndClose("FangSong")
                                                            }, "class" to _nC(if ((unref(data).formats.fontFamily == "FangSong")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "FangSong")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "仿宋", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "FangSong")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "仿宋", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontFamilyAndClose("Georgia")
                                                            }, "class" to _nC(if ((unref(data).formats.fontFamily == "Georgia")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "Georgia")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "Geo", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "Georgia")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "Georgia", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontFamilyAndClose("Times New Roman")
                                                            }, "class" to _nC(if ((unref(data).formats.fontFamily == "Times New Roman")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "Times New Roman")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "TNR", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "Times New Roman")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "Times", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setFontFamilyAndClose("Courier New")
                                                            }, "class" to _nC(if ((unref(data).formats.fontFamily == "Courier New")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "Courier New")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "Mono", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.fontFamily == "Courier New")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "Courier", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2)
                                                    ), 2)
                                                ))
                                            ))
                                        } else {
                                            _cC("v-if", true)
                                        },
                                        if (unref(data).activeSheet == "align") {
                                            _cE("view", _uM("key" to 6, "class" to "toolbar-panel-section"), _uA(
                                                _cE("view", _uM("class" to _nC(unref(data).toolbarChipRowClass)), _uA(
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to clearAlign, "class" to _nC(if ((unref(data).formats.align == "")) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.align == "")) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "D", 2),
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.align == "")) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "默认", 2)
                                                        ), 2)
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to setAlignLeft, "class" to _nC(if ((unref(data).formats.align == "left")) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.align == "left")) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "L", 2),
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.align == "left")) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "居左", 2)
                                                        ), 2)
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to setAlignCenter, "class" to _nC(if ((unref(data).formats.align == "center")) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.align == "center")) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "C", 2),
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.align == "center")) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "居中", 2)
                                                        ), 2)
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to setAlignRight, "class" to _nC(if ((unref(data).formats.align == "right")) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.align == "right")) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "R", 2),
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.align == "right")) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "居右", 2)
                                                        ), 2)
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to setAlignJustify, "class" to _nC(if ((unref(data).formats.align == "justify")) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.align == "justify")) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "J", 2),
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.align == "justify")) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "两端", 2)
                                                        ), 2)
                                                    ), 2)
                                                ), 2)
                                            ))
                                        } else {
                                            _cC("v-if", true)
                                        },
                                        if (unref(data).activeSheet == "block-indent") {
                                            _cE("view", _uM("key" to 7, "class" to "toolbar-panel-section"), _uA(
                                                _cE("view", _uM("class" to "toolbar-panel-group"), _uA(
                                                    _cE("text", _uM("class" to "toolbar-color-title"), "两端缩进"),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipRowClass)), _uA(
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setBlockIndentAndClose("0px")
                                                            }, "class" to _nC(if ((unref(data).formats.marginLeft == "" && unref(data).formats.marginRight == "")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.marginLeft == "" && unref(data).formats.marginRight == "")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "0", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.marginLeft == "" && unref(data).formats.marginRight == "")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "0px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setBlockIndentAndClose("8px")
                                                            }, "class" to _nC(if ((unref(data).formats.marginLeft == "8px" && unref(data).formats.marginRight == "8px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.marginLeft == "8px" && unref(data).formats.marginRight == "8px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "8", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.marginLeft == "8px" && unref(data).formats.marginRight == "8px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "8px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setBlockIndentAndClose("16px")
                                                            }, "class" to _nC(if ((unref(data).formats.marginLeft == "16px" && unref(data).formats.marginRight == "16px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.marginLeft == "16px" && unref(data).formats.marginRight == "16px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "16", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.marginLeft == "16px" && unref(data).formats.marginRight == "16px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "16px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setBlockIndentAndClose("24px")
                                                            }, "class" to _nC(if ((unref(data).formats.marginLeft == "24px" && unref(data).formats.marginRight == "24px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.marginLeft == "24px" && unref(data).formats.marginRight == "24px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "24", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.marginLeft == "24px" && unref(data).formats.marginRight == "24px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "24px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setBlockIndentAndClose("32px")
                                                            }, "class" to _nC(if ((unref(data).formats.marginLeft == "32px" && unref(data).formats.marginRight == "32px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.marginLeft == "32px" && unref(data).formats.marginRight == "32px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "32", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.marginLeft == "32px" && unref(data).formats.marginRight == "32px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "32px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setBlockIndentAndClose("40px")
                                                            }, "class" to _nC(if ((unref(data).formats.marginLeft == "40px" && unref(data).formats.marginRight == "40px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.marginLeft == "40px" && unref(data).formats.marginRight == "40px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "40", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.marginLeft == "40px" && unref(data).formats.marginRight == "40px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "40px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to fun(){
                                                                setBlockIndentAndClose("48px")
                                                            }, "class" to _nC(if ((unref(data).formats.marginLeft == "48px" && unref(data).formats.marginRight == "48px")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.marginLeft == "48px" && unref(data).formats.marginRight == "48px")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "48", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.marginLeft == "48px" && unref(data).formats.marginRight == "48px")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "48px", 2)
                                                            ), 10, _uA(
                                                                "onClick"
                                                            ))
                                                        ), 2)
                                                    ), 2)
                                                ))
                                            ))
                                        } else {
                                            _cC("v-if", true)
                                        },
                                        if (unref(data).activeSheet == "list") {
                                            _cE("view", _uM("key" to 8, "class" to "toolbar-panel-section"), _uA(
                                                _cE("view", _uM("class" to _nC(unref(data).toolbarChipRowClass)), _uA(
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to clearListFormat, "class" to _nC(if ((unref(data).formats.list == "")) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.list == "")) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "D", 2),
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.list == "")) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "默认", 2)
                                                        ), 2)
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to setBulletList, "class" to _nC(if ((unref(data).formats.list == "bullet")) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.list == "bullet")) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "•", 2),
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.list == "bullet")) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "无序列表", 2)
                                                        ), 2)
                                                    ), 2),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                        _cE("view", _uM("onClick" to setOrderedList, "class" to _nC(if ((unref(data).formats.list == "ordered")) {
                                                            unref(desktopMenuItemActiveClass)
                                                        } else {
                                                            unref(desktopMenuItemClass)
                                                        })), _uA(
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.list == "ordered")) {
                                                                unref(desktopMenuBadgeActiveClass)
                                                            } else {
                                                                unref(desktopMenuBadgeClass)
                                                            })), "1.", 2),
                                                            _cE("text", _uM("class" to _nC(if ((unref(data).formats.list == "ordered")) {
                                                                unref(desktopMenuTextActiveClass)
                                                            } else {
                                                                unref(desktopMenuTextClass)
                                                            })), "有序列表", 2)
                                                        ), 2)
                                                    ), 2)
                                                ), 2)
                                            ))
                                        } else {
                                            _cC("v-if", true)
                                        },
                                        if (unref(data).activeSheet == "text-color") {
                                            _cE("view", _uM("key" to 9, "class" to "toolbar-panel-section"), _uA(
                                                _cE("view", _uM("class" to "toolbar-color-section"), _uA(
                                                    _cE("view", _uM("class" to "desktop-color-sheet-label"), _uA(
                                                        _cE("view", _uM("class" to "desktop-color-sheet-icon")),
                                                        _cE("text", _uM("class" to "desktop-color-sheet-label-text"), "默认颜色")
                                                    )),
                                                    _cE("view", _uM("class" to "color-row color-row-panel"), _uA(
                                                        _cE("view", _uM("onClick" to fun(){
                                                            setTextColorAndClose("")
                                                        }, "class" to _nC(if ((unref(data).formats.color == "")) {
                                                            unref(clearColorSwatchActiveClass)
                                                        } else {
                                                            unref(clearColorSwatchClass)
                                                        })), null, 10, _uA(
                                                            "onClick"
                                                        )),
                                                        _cE(Fragment, null, RenderHelpers.renderList(TEXT_COLOR_PRESETS, fun(color, __key, __index, _cached): Any {
                                                            return _cE("view", _uM("key" to color, "onClick" to fun(){
                                                                setTextColorAndClose(color)
                                                            }, "class" to _nC(if ((unref(data).formats.color == color)) {
                                                                unref(filledColorSwatchActiveClass)
                                                            } else {
                                                                unref(filledColorSwatchClass)
                                                            }), "style" to _nS("background-color: " + color + ";")), null, 14, _uA(
                                                                "onClick"
                                                            ))
                                                        }), 64)
                                                    ))
                                                ))
                                            ))
                                        } else {
                                            _cC("v-if", true)
                                        },
                                        if (unref(data).activeSheet == "background-color") {
                                            _cE("view", _uM("key" to 10, "class" to "toolbar-panel-section"), _uA(
                                                _cE("view", _uM("class" to "toolbar-color-section"), _uA(
                                                    _cE("view", _uM("class" to "desktop-color-sheet-label"), _uA(
                                                        _cE("view", _uM("class" to "desktop-color-sheet-icon")),
                                                        _cE("text", _uM("class" to "desktop-color-sheet-label-text"), "默认背景")
                                                    )),
                                                    _cE("view", _uM("class" to "color-row color-row-panel"), _uA(
                                                        _cE("view", _uM("onClick" to fun(){
                                                            setBackgroundColorAndClose("")
                                                        }, "class" to _nC(if ((unref(data).formats.backgroundColor == "")) {
                                                            unref(clearColorSwatchActiveClass)
                                                        } else {
                                                            unref(clearColorSwatchClass)
                                                        })), null, 10, _uA(
                                                            "onClick"
                                                        )),
                                                        _cE(Fragment, null, RenderHelpers.renderList(BACKGROUND_COLOR_PRESETS, fun(color, __key, __index, _cached): Any {
                                                            return _cE("view", _uM("key" to color, "onClick" to fun(){
                                                                setBackgroundColorAndClose(color)
                                                            }, "class" to _nC(if ((unref(data).formats.backgroundColor == color)) {
                                                                unref(filledColorSwatchActiveClass)
                                                            } else {
                                                                unref(filledColorSwatchClass)
                                                            }), "style" to _nS("background-color: " + color + ";")), null, 14, _uA(
                                                                "onClick"
                                                            ))
                                                        }), 64)
                                                    ))
                                                ))
                                            ))
                                        } else {
                                            _cC("v-if", true)
                                        },
                                        if (unref(data).activeSheet == "more") {
                                            _cE("view", _uM("key" to 11, "class" to "toolbar-panel-section"), _uA(
                                                _cE("view", _uM("class" to "toolbar-panel-group"), _uA(
                                                    _cE("text", _uM("class" to "toolbar-color-title"), "插入内容"),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipRowClass)), _uA(
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to toggleChecklistTool, "class" to _nC(if ((unref(data).formats.list == "check")) {
                                                                unref(desktopMenuItemActiveClass)
                                                            } else {
                                                                unref(desktopMenuItemClass)
                                                            })), _uA(
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.list == "check")) {
                                                                    unref(desktopMenuBadgeActiveClass)
                                                                } else {
                                                                    unref(desktopMenuBadgeClass)
                                                                })), "TODO", 2),
                                                                _cE("text", _uM("class" to _nC(if ((unref(data).formats.list == "check")) {
                                                                    unref(desktopMenuTextActiveClass)
                                                                } else {
                                                                    unref(desktopMenuTextClass)
                                                                })), "TODO", 2)
                                                            ), 2)
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to insertDivider, "class" to _nC(unref(desktopMenuItemClass))), _uA(
                                                                _cE("text", _uM("class" to _nC(unref(desktopMenuBadgeClass))), "---", 2),
                                                                _cE("text", _uM("class" to _nC(unref(desktopMenuTextClass))), "分割线", 2)
                                                            ), 2)
                                                        ), 2)
                                                    ), 2)
                                                )),
                                                _cE("view", _uM("class" to "toolbar-panel-group"), _uA(
                                                    _cE("text", _uM("class" to "toolbar-color-title"), "编辑操作"),
                                                    _cE("view", _uM("class" to _nC(unref(data).toolbarChipRowClass)), _uA(
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to clearFormatting, "class" to _nC(unref(desktopMenuItemClass))), _uA(
                                                                _cE("text", _uM("class" to _nC(unref(desktopMenuBadgeClass))), "CLR", 2),
                                                                _cE("text", _uM("class" to _nC(unref(desktopMenuTextClass))), "清除样式", 2)
                                                            ), 2)
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to undo, "class" to _nC(unref(desktopMenuItemClass))), _uA(
                                                                _cE("text", _uM("class" to _nC(unref(desktopMenuBadgeClass))), "↶", 2),
                                                                _cE("text", _uM("class" to _nC(unref(desktopMenuTextClass))), "撤销", 2)
                                                            ), 2)
                                                        ), 2),
                                                        _cE("view", _uM("class" to _nC(unref(data).toolbarChipCellClass)), _uA(
                                                            _cE("view", _uM("onClick" to redo, "class" to _nC(unref(desktopMenuItemClass))), _uA(
                                                                _cE("text", _uM("class" to _nC(unref(desktopMenuBadgeClass))), "↷", 2),
                                                                _cE("text", _uM("class" to _nC(unref(desktopMenuTextClass))), "重做", 2)
                                                            ), 2)
                                                        ), 2)
                                                    ), 2)
                                                ))
                                            ))
                                        } else {
                                            _cC("v-if", true)
                                        }
                                    ), 2)
                                ), 6)
                            ), 6)
                        } else {
                            _cC("v-if", true)
                        }
                        ,
                        if (isTrue(unref(data).linkModalVisible)) {
                            _cE("view", _uM("key" to 2, "class" to "link-modal-mask link-modal-mask-app", "onClick" to closeLinkModal), _uA(
                                _cE("view", _uM("class" to "link-modal-card link-modal-card-app", "onClick" to withModifiers(fun(){}, _uA(
                                    "stop"
                                ))), _uA(
                                    _cE("view", _uM("class" to "link-modal-header"), _uA(
                                        _cE("text", _uM("class" to "link-modal-title link-modal-title-app"), _tD(if (unref(data).formats.link != "") {
                                            "编辑超链接"
                                        } else {
                                            "插入超链接"
                                        }), 1),
                                        _cE("text", _uM("class" to "link-modal-subtitle link-modal-subtitle-app"), _tD(if (unref(data).formats.link != "") {
                                            "仅修改链接地址"
                                        } else {
                                            if (unref(data).linkUseSelectionText) {
                                                "将为选中文本添加链接"
                                            } else {
                                                "填写显示文本与链接地址"
                                            }
                                        }), 1)
                                    )),
                                    _cE("view", _uM("class" to "link-modal-form"), _uA(
                                        if (isTrue(unref(data).formats.link == "" && !unref(data).linkUseSelectionText)) {
                                            _cE("view", _uM("key" to 0, "class" to "link-modal-field"), _uA(
                                                _cE("text", _uM("class" to "link-modal-label link-modal-label-app"), "显示文本"),
                                                _cE("input", _uM("class" to "link-modal-input link-modal-input-app", "modelValue" to unref(data).linkDraftText, "onInput" to fun(`$event`: UniInputEvent){
                                                    unref(data).linkDraftText = `$event`.detail.value
                                                }, "placeholder" to "请输入显示文本", "maxlength" to -1), null, 40, _uA(
                                                    "modelValue",
                                                    "onInput"
                                                ))
                                            ))
                                        } else {
                                            _cC("v-if", true)
                                        },
                                        if (isTrue(unref(data).formats.link == "" && unref(data).linkUseSelectionText)) {
                                            _cE("view", _uM("key" to 1, "class" to "link-modal-field"), _uA(
                                                _cE("text", _uM("class" to "link-modal-label link-modal-label-app"), "已选中文本"),
                                                _cE("view", _uM("class" to "link-modal-selection-chip link-modal-selection-chip-app"), _uA(
                                                    _cE("text", _uM("class" to "link-modal-selection-text link-modal-selection-text-app"), _tD(unref(data).linkDraftText), 1)
                                                ))
                                            ))
                                        } else {
                                            _cC("v-if", true)
                                        },
                                        _cE("view", _uM("class" to "link-modal-field"), _uA(
                                            _cE("text", _uM("class" to "link-modal-label link-modal-label-app"), "链接地址"),
                                            _cE("input", _uM("class" to "link-modal-input link-modal-input-app", "modelValue" to unref(data).linkDraftHref, "onInput" to fun(`$event`: UniInputEvent){
                                                unref(data).linkDraftHref = `$event`.detail.value
                                            }, "placeholder" to "https://example.com", "maxlength" to -1), null, 40, _uA(
                                                "modelValue",
                                                "onInput"
                                            ))
                                        ))
                                    )),
                                    _cE("view", _uM("class" to "link-modal-actions link-modal-actions-app"), _uA(
                                        if (unref(data).formats.link != "") {
                                            _cE("view", _uM("key" to 0, "class" to "link-modal-danger link-modal-danger-app", "onClick" to removeLink), _uA(
                                                _cE("text", _uM("class" to "link-modal-danger-text link-modal-danger-text-app"), "删除链接")
                                            ))
                                        } else {
                                            _cC("v-if", true)
                                        },
                                        _cE("view", _uM("class" to "link-modal-action-group link-modal-action-group-app"), _uA(
                                            _cE("view", _uM("class" to "link-modal-button link-modal-button-secondary link-modal-button-secondary-app", "onClick" to closeLinkModal), _uA(
                                                _cE("text", _uM("class" to "link-modal-button-text link-modal-button-text-secondary link-modal-button-text-secondary-app"), "取消")
                                            )),
                                            _cE("view", _uM("class" to "link-modal-button link-modal-button-primary link-modal-button-primary-app", "onClick" to confirmLinkModal), _uA(
                                                _cE("text", _uM("class" to "link-modal-button-text link-modal-button-text-app"), "确定")
                                            ))
                                        ))
                                    ))
                                ), 8, _uA(
                                    "onClick"
                                ))
                            ))
                        } else {
                            _cC("v-if", true)
                        }
                        ,
                        _cE("view", _uM("class" to "editor-stage", "style" to _nS(unref(editorStageStyle))), _uA(
                            _cV(_component_editor, _uM("id" to "editor", "class" to "editor-field", "placeholder" to "请输入正文内容...", "style" to _nS(_uM("padding" to "20px")), "show-img-size" to "", "show-img-toolbar" to "", "show-img-resize" to "", "onReady" to onEditorReady, "onFocus" to onEditorFocus, "onBlur" to onEditorBlur, "onStatuschange" to onStatusChange), null, 8, _uA(
                                "style"
                            ))
                        ), 4)
                    ), 2)
                ), 2)
            }
        }
        val styles: Map<String, Map<String, Map<String, Any>>> by lazy {
            _nCS(_uA(
                styles0,
                styles1
            ))
        }
        val styles0: Map<String, Map<String, Map<String, Any>>>
            get() {
                return _uM("iconfont" to _pS(_uM("!fontFamily" to "iconfont", "fontSize" to 16, "fontStyle" to "normal")), "page-shell" to _pS(_uM("position" to "relative", "flexGrow" to 1, "flexShrink" to 1, "flexBasis" to "0%", "display" to "flex", "flexDirection" to "column", "backgroundColor" to "#edf1f4", "paddingTop" to 16, "paddingRight" to 12, "paddingBottom" to 12, "paddingLeft" to 12)), "page-shell-wide" to _pS(_uM("paddingTop" to 24, "paddingRight" to 24, "paddingBottom" to 20, "paddingLeft" to 24)), "editor-layout" to _pS(_uM("position" to "relative", "flexGrow" to 1, "flexShrink" to 1, "flexBasis" to "0%", "display" to "flex", "flexDirection" to "column", "width" to "100%", "maxWidth" to 1320, "alignSelf" to "center")), "editor-layout-wide" to _pS(_uM("maxWidth" to 1360)), "editor-stage" to _pS(_uM("flexGrow" to 1, "flexShrink" to 1, "flexBasis" to "0%", "display" to "flex", "flexDirection" to "column", "width" to "100%", "alignSelf" to "center", "backgroundColor" to "#ffffff", "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopColor" to "#d6dde4", "borderRightColor" to "#d6dde4", "borderBottomColor" to "#d6dde4", "borderLeftColor" to "#d6dde4", "borderTopLeftRadius" to 0, "borderTopRightRadius" to 0, "borderBottomRightRadius" to 0, "borderBottomLeftRadius" to 0, "overflow" to "hidden")), "editor-field" to _pS(_uM("flexGrow" to 1, "flexShrink" to 1, "flexBasis" to "0%", "backgroundColor" to "#ffffff")), "toolbar-wrap" to _pS(_uM("position" to "relative", "left" to "auto", "right" to "auto", "bottom" to "auto", "width" to "100%", "display" to "flex", "flexDirection" to "column", "alignItems" to "center", "zIndex" to 130, "marginBottom" to 0, "boxShadow" to "none")), "toolbar-frame" to _pS(_uM("width" to "100%", "alignSelf" to "center", "display" to "flex", "flexDirection" to "column", "backgroundColor" to "#fafafa", "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopColor" to "#ebebeb", "borderRightColor" to "#ebebeb", "borderBottomColor" to "#ebebeb", "borderLeftColor" to "#ebebeb", "borderTopLeftRadius" to 0, "borderTopRightRadius" to 0, "borderBottomRightRadius" to 0, "borderBottomLeftRadius" to 0, "paddingTop" to 0, "paddingRight" to 0, "paddingBottom" to 0, "paddingLeft" to 0)), "sheet-host" to _pS(_uM("position" to "fixed", "left" to 0, "right" to 0, "bottom" to 0, "display" to "flex", "flexDirection" to "column", "zIndex" to 131)), "sheet-backdrop" to _pS(_uM("position" to "fixed", "left" to 0, "top" to 0, "right" to 0, "bottom" to 0, "zIndex" to 129, "backgroundColor" to "rgba(15,23,42,0.04)")), "sheet-host-floating" to _pS(_uM("position" to "absolute", "left" to 12, "right" to "auto", "top" to 58, "bottom" to "auto", "zIndex" to 160, "boxShadow" to "0px 10px 24px rgba(25, 25, 25, 0.05)", "borderTopLeftRadius" to 14, "borderTopRightRadius" to 14, "borderBottomRightRadius" to 14, "borderBottomLeftRadius" to 14)), "sheet-host-mobile-web" to _pS(_uM("left" to 0, "right" to 0, "bottom" to 0)), "toolbar-panel" to _pS(_uM("overflow" to "hidden", "backgroundColor" to "rgba(255,255,255,0.98)", "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopColor" to "#d6dde4", "borderRightColor" to "#d6dde4", "borderBottomColor" to "#d6dde4", "borderLeftColor" to "#d6dde4", "paddingTop" to 14, "paddingRight" to 14, "paddingBottom" to 12, "paddingLeft" to 14)), "toolbar-panel-attached" to _pS(_uM("borderTopLeftRadius" to 0, "borderTopRightRadius" to 0, "borderTopWidth" to 0)), "toolbar-shell" to _pS(_uM("alignSelf" to "center", "display" to "flex", "flexDirection" to "row", "alignItems" to "center", "flexWrap" to "nowrap", "backgroundColor" to "#fafafa", "borderTopWidth" to 0, "borderRightWidth" to 0, "borderBottomWidth" to 0, "borderLeftWidth" to 0, "borderTopLeftRadius" to 0, "borderTopRightRadius" to 0, "borderBottomRightRadius" to 0, "borderBottomLeftRadius" to 0, "minHeight" to 40, "paddingTop" to 0, "paddingRight" to 0, "paddingBottom" to 0, "paddingLeft" to 0, "boxShadow" to "none")), "toolbar-shell-compact" to _pS(_uM("flexWrap" to "wrap", "alignItems" to "center", "justifyContent" to "center", "paddingTop" to 6, "paddingBottom" to 6)), "toolbar-group" to _pS(_uM("display" to "flex", "flexDirection" to "row", "alignItems" to "center", "flexWrap" to "nowrap")), "toolbar-group-compact" to _pS(_uM("justifyContent" to "center", "marginTop" to 0)), "toolbar-group-leading" to _pS(_uM("minWidth" to 70)), "toolbar-group-leading-compact" to _pS(_uM("marginTop" to 0)), "toolbar-group-actions" to _pS(_uM("marginLeft" to "auto")), "toolbar-icon-button-action" to _pS(_uM("marginLeft" to 2, "marginRight" to 0)), "toolbar-divider" to _pS(_uM("width" to 1, "height" to 20, "backgroundColor" to "#d8d8d8", "marginLeft" to 3, "marginRight" to 3)), "toolbar-divider-hidden" to _pS(_uM("display" to "none")), "toolbar-select" to _pS(_uM("height" to 28, "display" to "flex", "flexDirection" to "row", "alignItems" to "center", "justifyContent" to "space-between", "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopColor" to "rgba(0,0,0,0)", "borderRightColor" to "rgba(0,0,0,0)", "borderBottomColor" to "rgba(0,0,0,0)", "borderLeftColor" to "rgba(0,0,0,0)", "borderTopLeftRadius" to 4, "borderTopRightRadius" to 4, "borderBottomRightRadius" to 4, "borderBottomLeftRadius" to 4, "backgroundColor" to "rgba(0,0,0,0)", "paddingLeft" to 4, "paddingRight" to 4, "marginRight" to 1, "transitionProperty" to "backgroundColor,borderColor", "transitionDuration" to "160ms")), "toolbar-select-value" to _pS(_uM("minWidth" to 40, "paddingLeft" to 4, "paddingRight" to 4)), "toolbar-select-compact" to _pS(_uM("minWidth" to 40)), "toolbar-select-active" to _pS(_uM("backgroundColor" to "#e7eaee", "borderTopColor" to "#d7dde5", "borderRightColor" to "#d7dde5", "borderBottomColor" to "#d7dde5", "borderLeftColor" to "#d7dde5")), "toolbar-select-label" to _pS(_uM("color" to "#50565f", "fontSize" to 11, "lineHeight" to "18px")), "toolbar-select-glyph" to _pS(_uM("fontSize" to 16, "lineHeight" to "16px")), "toolbar-size-label" to _pS(_uM("fontSize" to 14, "lineHeight" to "18px")), "toolbar-select-font-label" to _pS(_uM("fontSize" to 11, "lineHeight" to "16px")), "toolbar-select-mini-label" to _pS(_uM("minWidth" to 10, "marginLeft" to 3, "fontSize" to 9, "lineHeight" to "12px", "textAlign" to "center")), "toolbar-select-label-active" to _pS(_uM("color" to "#2b3137")), "toolbar-select-arrow" to _uM("" to _uM("minWidth" to 8, "color" to "#6b7280", "fontSize" to 4, "lineHeight" to "12px", "textAlign" to "center", "marginLeft" to 2, "marginTop" to 1), ".iconfont" to _uM("fontSize" to 4, "lineHeight" to "12px")), "toolbar-select-arrow-active" to _pS(_uM("color" to "#475569")), "toolbar-icon-button" to _pS(_uM("width" to 28, "height" to 28, "display" to "flex", "flexDirection" to "column", "alignItems" to "center", "justifyContent" to "center", "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopColor" to "rgba(0,0,0,0)", "borderRightColor" to "rgba(0,0,0,0)", "borderBottomColor" to "rgba(0,0,0,0)", "borderLeftColor" to "rgba(0,0,0,0)", "borderTopLeftRadius" to 4, "borderTopRightRadius" to 4, "borderBottomRightRadius" to 4, "borderBottomLeftRadius" to 4, "backgroundColor" to "rgba(0,0,0,0)", "marginRight" to 1, "transitionProperty" to "backgroundColor,borderColor", "transitionDuration" to "160ms")), "toolbar-icon-button-disabled" to _pS(_uM("opacity" to 0.42)), "toolbar-color-button" to _pS(_uM("height" to 28, "display" to "flex", "flexDirection" to "row", "alignItems" to "center", "justifyContent" to "center", "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopColor" to "rgba(0,0,0,0)", "borderRightColor" to "rgba(0,0,0,0)", "borderBottomColor" to "rgba(0,0,0,0)", "borderLeftColor" to "rgba(0,0,0,0)", "borderTopLeftRadius" to 4, "borderTopRightRadius" to 4, "borderBottomRightRadius" to 4, "borderBottomLeftRadius" to 4, "backgroundColor" to "rgba(0,0,0,0)", "marginLeft" to 1, "paddingLeft" to 4, "paddingRight" to 4, "transitionProperty" to "backgroundColor,borderColor", "transitionDuration" to "160ms")), "toolbar-color-button-active" to _pS(_uM("borderTopColor" to "#d7dde5", "borderRightColor" to "#d7dde5", "borderBottomColor" to "#d7dde5", "borderLeftColor" to "#d7dde5", "backgroundColor" to "#e7eaee")), "toolbar-color-label" to _pS(_uM("color" to "#334155", "fontSize" to 14, "lineHeight" to "18px", "fontWeight" to 700)), "toolbar-color-label-active" to _pS(_uM("color" to "#111827")), "toolbar-color-symbol" to _pS(_uM("color" to "#50565f", "fontSize" to 15, "lineHeight" to "15px", "fontWeight" to 600)), "toolbar-color-symbol-active" to _pS(_uM("color" to "#111827")), "toolbar-color-stack" to _pS(_uM("display" to "flex", "flexDirection" to "column", "alignItems" to "center", "justifyContent" to "center")), "toolbar-color-underline" to _pS(_uM("width" to 12, "height" to 2, "borderTopLeftRadius" to 2, "borderTopRightRadius" to 2, "borderBottomRightRadius" to 2, "borderBottomLeftRadius" to 2, "marginTop" to -1, "marginLeft" to 1)), "toolbar-color-ab" to _pS(_uM("fontSize" to 13)), "toolbar-color-arrow" to _uM("" to _uM("minWidth" to 8, "color" to "#6b7280", "fontSize" to 4, "lineHeight" to "12px", "textAlign" to "center", "marginLeft" to 0, "marginTop" to 1), ".iconfont" to _uM("fontSize" to 4, "lineHeight" to "12px")), "toolbar-color-arrow-active" to _pS(_uM("color" to "#475569")), "toolbar-icon-button-active" to _pS(_uM("backgroundColor" to "#e7eaee", "borderTopColor" to "#d7dde5", "borderRightColor" to "#d7dde5", "borderBottomColor" to "#d7dde5", "borderLeftColor" to "#d7dde5")), "toolbar-icon-text" to _pS(_uM("color" to "#50565f", "fontSize" to 16, "lineHeight" to "16px")), "toolbar-symbol-text" to _pS(_uM("fontSize" to 14, "lineHeight" to "16px")), "toolbar-symbol-text-small" to _pS(_uM("fontSize" to 11)), "link-modal-mask" to _pS(_uM("position" to "fixed", "left" to 0, "top" to 0, "right" to 0, "bottom" to 0, "zIndex" to 220, "display" to "flex", "flexDirection" to "column", "alignItems" to "center", "justifyContent" to "center", "backgroundColor" to "rgba(15,23,42,0.26)", "paddingLeft" to 16, "paddingRight" to 16)), "link-modal-mask-floating" to _pS(_uM("backgroundColor" to "rgba(15,23,42,0.26)")), "link-modal-mask-app" to _pS(_uM("backgroundColor" to "rgba(15,23,42,0.38)")), "link-modal-card" to _pS(_uM("display" to "flex", "flexDirection" to "column", "backgroundColor" to "#ffffff", "borderTopLeftRadius" to 14, "borderTopRightRadius" to 14, "borderBottomRightRadius" to 14, "borderBottomLeftRadius" to 14, "paddingTop" to 20, "paddingRight" to 18, "paddingBottom" to 18, "paddingLeft" to 18)), "link-modal-card-floating" to _pS(_uM("width" to "100%", "maxWidth" to 420, "boxShadow" to "0px 18px 36px rgba(15, 23, 42, 0.16)")), "link-modal-card-app" to _pS(_uM("width" to "84%", "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopColor" to "#dbe4ee", "borderRightColor" to "#dbe4ee", "borderBottomColor" to "#dbe4ee", "borderLeftColor" to "#dbe4ee", "backgroundColor" to "#ffffff")), "link-modal-title-app" to _pS(_uM("color" to "#111827", "fontSize" to 20, "lineHeight" to "28px", "fontWeight" to 700)), "link-modal-subtitle-app" to _pS(_uM("color" to "#64748b", "fontSize" to 14, "lineHeight" to "20px")), "link-modal-label-app" to _pS(_uM("color" to "#0f172a", "fontSize" to 15, "lineHeight" to "22px", "fontWeight" to 600)), "link-modal-header" to _pS(_uM("display" to "flex", "flexDirection" to "column")), "link-modal-title" to _pS(_uM("color" to "#111827", "fontSize" to 17, "lineHeight" to "24px", "fontWeight" to 600)), "link-modal-subtitle" to _pS(_uM("marginTop" to 4, "color" to "#6b7280", "fontSize" to 13, "lineHeight" to "18px")), "link-modal-form" to _pS(_uM("display" to "flex", "flexDirection" to "column", "marginTop" to 16)), "link-modal-field" to _pS(_uM("display" to "flex", "flexDirection" to "column", "marginTop" to 12)), "link-modal-label" to _pS(_uM("color" to "#374151", "fontSize" to 13, "lineHeight" to "18px")), "link-modal-input" to _pS(_uM("height" to 40, "marginTop" to 8, "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopColor" to "#d1d5db", "borderRightColor" to "#d1d5db", "borderBottomColor" to "#d1d5db", "borderLeftColor" to "#d1d5db", "borderTopLeftRadius" to 10, "borderTopRightRadius" to 10, "borderBottomRightRadius" to 10, "borderBottomLeftRadius" to 10, "paddingLeft" to 12, "paddingRight" to 12, "backgroundColor" to "#f8fafc", "color" to "#111827", "fontSize" to 14)), "link-modal-input-app" to _pS(_uM("borderTopColor" to "#cbd5e1", "borderRightColor" to "#cbd5e1", "borderBottomColor" to "#cbd5e1", "borderLeftColor" to "#cbd5e1", "backgroundColor" to "#ffffff", "color" to "#111827")), "link-modal-selection-chip" to _pS(_uM("minHeight" to 40, "marginTop" to 8, "display" to "flex", "flexDirection" to "column", "justifyContent" to "center", "borderTopLeftRadius" to 10, "borderTopRightRadius" to 10, "borderBottomRightRadius" to 10, "borderBottomLeftRadius" to 10, "paddingLeft" to 12, "paddingRight" to 12, "backgroundColor" to "#eef2ff")), "link-modal-selection-text" to _pS(_uM("color" to "#1e3a8a", "fontSize" to 14, "lineHeight" to "20px")), "link-modal-selection-chip-app" to _pS(_uM("borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopColor" to "#c7d2fe", "borderRightColor" to "#c7d2fe", "borderBottomColor" to "#c7d2fe", "borderLeftColor" to "#c7d2fe", "backgroundColor" to "#eef2ff")), "link-modal-selection-text-app" to _pS(_uM("color" to "#1d4ed8")), "link-modal-actions" to _pS(_uM("display" to "flex", "flexDirection" to "row", "alignItems" to "center", "justifyContent" to "space-between", "marginTop" to 20)), "link-modal-actions-app" to _pS(_uM("flexDirection" to "column", "alignItems" to "stretch", "justifyContent" to "flex-start")), "link-modal-danger" to _pS(_uM("minHeight" to 36, "display" to "flex", "flexDirection" to "column", "alignItems" to "center", "justifyContent" to "center", "paddingLeft" to 10, "paddingRight" to 10)), "link-modal-danger-app" to _pS(_uM("width" to "100%", "minWidth" to 0, "marginBottom" to 12, "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopColor" to "#fecaca", "borderRightColor" to "#fecaca", "borderBottomColor" to "#fecaca", "borderLeftColor" to "#fecaca", "borderTopLeftRadius" to 10, "borderTopRightRadius" to 10, "borderBottomRightRadius" to 10, "borderBottomLeftRadius" to 10, "backgroundColor" to "#fff5f5")), "link-modal-danger-text" to _pS(_uM("color" to "#dc2626", "fontSize" to 13, "lineHeight" to "18px", "fontWeight" to 600)), "link-modal-danger-text-app" to _pS(_uM("color" to "#dc2626")), "link-modal-action-group" to _pS(_uM("display" to "flex", "flexDirection" to "row", "alignItems" to "center", "justifyContent" to "flex-end")), "link-modal-action-group-app" to _pS(_uM("flexGrow" to 1, "flexShrink" to 1, "flexBasis" to "0%", "width" to "100%", "justifyContent" to "flex-end")), "link-modal-button" to _pS(_uM("minWidth" to 74, "minHeight" to 36, "display" to "flex", "flexDirection" to "column", "alignItems" to "center", "justifyContent" to "center", "borderTopLeftRadius" to 10, "borderTopRightRadius" to 10, "borderBottomRightRadius" to 10, "borderBottomLeftRadius" to 10, "paddingLeft" to 14, "paddingRight" to 14)), "link-modal-button-secondary" to _pS(_uM("backgroundColor" to "#eef2f7")), "link-modal-button-primary" to _pS(_uM("marginLeft" to 10, "backgroundColor" to "#2563eb")), "link-modal-button-secondary-app" to _pS(_uM("flexGrow" to 1, "flexShrink" to 1, "flexBasis" to "0%", "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopColor" to "#d6dde8", "borderRightColor" to "#d6dde8", "borderBottomColor" to "#d6dde8", "borderLeftColor" to "#d6dde8", "backgroundColor" to "#f8fafc")), "link-modal-button-primary-app" to _pS(_uM("flexGrow" to 1, "flexShrink" to 1, "flexBasis" to "0%", "backgroundColor" to "#1d4ed8")), "link-modal-button-text" to _pS(_uM("color" to "#ffffff", "fontSize" to 14, "lineHeight" to "20px", "fontWeight" to 600)), "link-modal-button-text-app" to _pS(_uM("color" to "#ffffff")), "link-modal-button-text-secondary" to _pS(_uM("color" to "#334155")), "link-modal-button-text-secondary-app" to _pS(_uM("color" to "#334155")), "toolbar-font-action-italic" to _pS(_uM("fontStyle" to "italic")), "toolbar-font-action-underline" to _pS(_uM("textDecorationLine" to "underline")), "toolbar-font-action-strike" to _pS(_uM("textDecorationLine" to "line-through")), "toolbar-icon-text-active" to _pS(_uM("color" to "#2b3137")), "relative-top-1" to _pS(_uM("position" to "relative", "top" to 1)), "desktop-toolbar-mask" to _pS(_uM("position" to "absolute", "top" to 0, "bottom" to 0, "left" to 0, "right" to 0, "backgroundImage" to "none", "backgroundColor" to "rgba(255,255,255,0.5)")), "toolbar-panel-floating" to _pS(_uM("position" to "relative", "height" to "auto", "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopColor" to "#cfd6dd", "borderRightColor" to "#cfd6dd", "borderBottomColor" to "#cfd6dd", "borderLeftColor" to "#cfd6dd", "borderTopLeftRadius" to 8, "borderTopRightRadius" to 8, "borderBottomRightRadius" to 8, "borderBottomLeftRadius" to 8, "paddingTop" to 8, "paddingRight" to 8, "paddingBottom" to 8, "paddingLeft" to 8, "backgroundColor" to "#ffffff", "boxShadow" to "0px 10px 24px rgba(15, 23, 42, 0.08)", "transitionProperty" to "transform,opacity", "transitionDuration" to "180ms", "opacity" to 0, "transform" to "translateY(-8px)")), "toolbar-panel-floating-attached" to _pS(_uM("borderTopWidth" to 1)))
            }
        val styles1: Map<String, Map<String, Map<String, Any>>>
            get() {
                return _uM("toolbar-panel-floating-entered" to _pS(_uM("opacity" to 1, "transform" to "translateY(0px)")), "toolbar-panel-mobile-web" to _pS(_uM("borderTopLeftRadius" to 18, "borderTopRightRadius" to 18, "borderBottomLeftRadius" to 0, "borderBottomRightRadius" to 0, "borderTopWidth" to 1, "paddingTop" to 16, "paddingRight" to 12, "paddingBottom" to 16, "paddingLeft" to 12, "boxShadow" to "0px -10px 30px rgba(15, 23, 42, 0.12)")), "toolbar-panel-arrow" to _pS(_uM("position" to "absolute", "top" to -7, "width" to 14, "height" to 14, "backgroundColor" to "#ffffff", "borderTopWidth" to 0, "borderRightWidth" to 0, "borderBottomWidth" to 0, "borderLeftWidth" to 0, "boxShadow" to "none", "transform" to "rotate(45deg)")), "toolbar-panel-header-floating" to _pS(_uM("marginBottom" to 6)), "toolbar-panel-header-mobile-web" to _pS(_uM("marginBottom" to 10)), "toolbar-panel-title-floating" to _pS(_uM("fontSize" to 12)), "toolbar-panel-title-mobile-web" to _pS(_uM("fontSize" to 15)), "toolbar-panel-subtitle-floating" to _pS(_uM("fontSize" to 10, "marginTop" to 2)), "toolbar-panel-subtitle-mobile-web" to _pS(_uM("fontSize" to 11, "marginTop" to 4)), "toolbar-panel-scroll-floating" to _pS(_uM("flexGrow" to 0, "flexShrink" to 1, "flexBasis" to "0%")), "toolbar-panel-scroll-mobile-web" to _pS(_uM("flexGrow" to 0, "flexShrink" to 1, "flexBasis" to "0%")), "toolbar-chip-row-panel" to _pS(_uM("marginLeft" to 0, "marginRight" to 0)), "toolbar-chip-row-panel-compact" to _pS(_uM("marginLeft" to 0, "marginRight" to 0)), "desktop-color-sheet-label" to _pS(_uM("display" to "flex", "flexDirection" to "row", "alignItems" to "center", "marginBottom" to 12)), "desktop-color-sheet-icon" to _pS(_uM("width" to 14, "height" to 14, "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopColor" to "#6b7280", "borderRightColor" to "#6b7280", "borderBottomColor" to "#6b7280", "borderLeftColor" to "#6b7280", "borderTopLeftRadius" to 2, "borderTopRightRadius" to 2, "borderBottomRightRadius" to 2, "borderBottomLeftRadius" to 2, "marginRight" to 10, "transform" to "rotate(45deg)")), "desktop-color-sheet-label-text" to _pS(_uM("color" to "#374151", "fontSize" to 12, "lineHeight" to "18px")), "desktop-menu-item" to _pS(_uM("width" to "100%", "minWidth" to 0, "minHeight" to 0, "display" to "flex", "flexDirection" to "row", "alignItems" to "center", "justifyContent" to "flex-start", "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopColor" to "rgba(0,0,0,0)", "borderRightColor" to "rgba(0,0,0,0)", "borderBottomColor" to "rgba(0,0,0,0)", "borderLeftColor" to "rgba(0,0,0,0)", "borderTopLeftRadius" to 6, "borderTopRightRadius" to 6, "borderBottomRightRadius" to 6, "borderBottomLeftRadius" to 6, "backgroundColor" to "#ffffff", "paddingTop" to 8, "paddingRight" to 10, "paddingBottom" to 8, "paddingLeft" to 10, "marginLeft" to 0, "marginRight" to 0, "marginBottom" to 4)), "desktop-menu-item-active" to _pS(_uM("backgroundColor" to "#eef3f8", "borderTopColor" to "#ccd6e0", "borderRightColor" to "#ccd6e0", "borderBottomColor" to "#ccd6e0", "borderLeftColor" to "#ccd6e0")), "desktop-menu-badge" to _pS(_uM("minWidth" to 24, "height" to 24, "borderTopLeftRadius" to 4, "borderTopRightRadius" to 4, "borderBottomRightRadius" to 4, "borderBottomLeftRadius" to 4, "backgroundColor" to "#f1f5f9", "color" to "#475569", "fontSize" to 11, "fontWeight" to 700, "textAlign" to "center", "lineHeight" to "24px", "marginRight" to 10)), "desktop-menu-badge-active" to _pS(_uM("backgroundColor" to "#dbe7f3", "color" to "#0f172a")), "desktop-menu-text" to _pS(_uM("color" to "#1f2937", "fontSize" to 13, "textAlign" to "left", "lineHeight" to "18px", "letterSpacing" to 0)), "desktop-menu-text-active" to _pS(_uM("color" to "#0f172a")), "toolbar-panel-header" to _pS(_uM("display" to "flex", "flexDirection" to "row", "alignItems" to "center", "justifyContent" to "space-between", "marginBottom" to 12)), "toolbar-panel-title-wrap" to _pS(_uM("display" to "flex", "flexDirection" to "column", "flexGrow" to 1, "flexShrink" to 1, "flexBasis" to "0%")), "toolbar-panel-title" to _pS(_uM("color" to "#0f172a", "fontSize" to 14, "fontWeight" to 600, "letterSpacing" to 0.4)), "toolbar-panel-subtitle" to _pS(_uM("color" to "#64748b", "fontSize" to 11, "marginTop" to 4, "lineHeight" to "16px")), "toolbar-panel-close" to _pS(_uM("width" to 28, "height" to 28, "display" to "flex", "flexDirection" to "column", "alignItems" to "center", "justifyContent" to "center", "borderTopLeftRadius" to 14, "borderTopRightRadius" to 14, "borderBottomRightRadius" to 14, "borderBottomLeftRadius" to 14, "backgroundColor" to "#f3f1ec")), "toolbar-panel-close-icon" to _pS(_uM("width" to 14, "height" to 14)), "toolbar-panel-section" to _pS(_uM("display" to "flex", "flexDirection" to "column")), "toolbar-panel-scroll" to _pS(_uM("flexGrow" to 1, "flexShrink" to 1, "flexBasis" to "0%", "display" to "flex", "flexDirection" to "column")), "toolbar-panel-group" to _pS(_uM("display" to "flex", "flexDirection" to "column", "marginBottom" to 6)), "toolbar-chip-row" to _pS(_uM("display" to "flex", "flexDirection" to "row", "flexWrap" to "wrap", "justifyContent" to "flex-start", "marginLeft" to -4, "marginRight" to -4)), "toolbar-chip-cell" to _pS(_uM("width" to "25%", "paddingLeft" to 3, "paddingRight" to 3, "marginBottom" to 6)), "toolbar-chip" to _pS(_uM("minWidth" to 72, "display" to "flex", "flexDirection" to "column", "alignItems" to "center", "justifyContent" to "center", "borderTopLeftRadius" to 14, "borderTopRightRadius" to 14, "borderBottomRightRadius" to 14, "borderBottomLeftRadius" to 14, "backgroundColor" to "#f3f6f9", "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "borderTopColor" to "#d6dde4", "borderRightColor" to "#d6dde4", "borderBottomColor" to "#d6dde4", "borderLeftColor" to "#d6dde4", "paddingTop" to 10, "paddingRight" to 12, "paddingBottom" to 10, "paddingLeft" to 12, "marginLeft" to 4, "marginRight" to 4, "marginBottom" to 8)), "toolbar-chip-grid" to _pS(_uM("width" to "100%", "minWidth" to 0, "minHeight" to 72, "justifyContent" to "flex-start", "marginLeft" to 0, "marginRight" to 0, "marginBottom" to 0, "paddingTop" to 12, "paddingRight" to 8, "paddingBottom" to 10, "paddingLeft" to 8)), "toolbar-color-section" to _pS(_uM("display" to "flex", "flexDirection" to "column", "marginTop" to 4)), "toolbar-color-title" to _pS(_uM("color" to "#64748b", "fontSize" to 11, "marginBottom" to 6, "letterSpacing" to 0.3)), "toolbar-chip-cell-quarter" to _pS(_uM("width" to "25%")), "toolbar-chip-cell-full" to _pS(_uM("width" to "100%")), "toolbar-chip-cell-third" to _pS(_uM("width" to "33.33%")), "toolbar-chip-cell-half" to _pS(_uM("width" to "50%", "paddingLeft" to 2, "paddingRight" to 2)), "color-row-panel" to _pS(_uM("width" to 340, "alignSelf" to "center", "marginLeft" to 0, "marginRight" to 0)), "color-row" to _pS(_uM("display" to "flex", "flexDirection" to "row", "flexWrap" to "wrap", "alignItems" to "center", "marginLeft" to -4, "marginRight" to -4)), "color-swatch" to _uM("" to _uM("width" to 48, "height" to 36, "borderTopLeftRadius" to 10, "borderTopRightRadius" to 10, "borderBottomRightRadius" to 10, "borderBottomLeftRadius" to 10, "borderTopWidth" to 2, "borderRightWidth" to 2, "borderBottomWidth" to 2, "borderLeftWidth" to 2, "borderTopStyle" to "solid", "borderRightStyle" to "solid", "borderBottomStyle" to "solid", "borderLeftStyle" to "solid", "borderTopColor" to "rgba(15,23,42,0.08)", "borderRightColor" to "rgba(15,23,42,0.08)", "borderBottomColor" to "rgba(15,23,42,0.08)", "borderLeftColor" to "rgba(15,23,42,0.08)", "marginLeft" to 4, "marginRight" to 4, "marginBottom" to 10), ".color-swatch-panel" to _uM("width" to 28, "height" to 28, "borderTopLeftRadius" to 4, "borderTopRightRadius" to 4, "borderBottomRightRadius" to 4, "borderBottomLeftRadius" to 4, "borderTopWidth" to 1, "borderRightWidth" to 1, "borderBottomWidth" to 1, "borderLeftWidth" to 1, "marginLeft" to 3, "marginRight" to 3, "marginBottom" to 10)), "color-swatch-active" to _pS(_uM("borderTopColor" to "#111827", "borderRightColor" to "#111827", "borderBottomColor" to "#111827", "borderLeftColor" to "#111827", "borderTopWidth" to 3, "borderRightWidth" to 3, "borderBottomWidth" to 3, "borderLeftWidth" to 3)), "color-swatch-clear" to _pS(_uM("backgroundColor" to "#ffffff", "borderTopColor" to "#cbd5e1", "borderRightColor" to "#cbd5e1", "borderBottomColor" to "#cbd5e1", "borderLeftColor" to "#cbd5e1")), "@FONT-FACE" to _uM("0" to _uM("fontFamily" to "iconfont", "src" to "url('data:font/truetype;charset=utf-8;base64, ') format('truetype')")), "@TRANSITION" to _uM("toolbar-select" to _uM("property" to "backgroundColor,borderColor", "duration" to "160ms"), "toolbar-icon-button" to _uM("property" to "backgroundColor,borderColor", "duration" to "160ms"), "toolbar-color-button" to _uM("property" to "backgroundColor,borderColor", "duration" to "160ms"), "toolbar-panel-floating" to _uM("property" to "transform,opacity", "duration" to "180ms")))
            }
        var inheritAttrs = true
        var inject: Map<String, Map<String, Any?>> = _uM()
        var emits: Map<String, Any?> = _uM()
        var props = _nP(_uM())
        var propsNeedCastKeys: UTSArray<String> = _uA()
        var components: Map<String, CreateVueComponent> = _uM()
    }
}
