@ebl-vue/editor-full 2.31.57 → 2.31.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +733 -730
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--color-border: #EFF0F1}.ebl-editor{cursor:text;font-size:16px;font-weight:400;background-color:#fff;height:100%;overflow:auto;position:relative;padding-top:15px}.ebl-editor.outline{padding-right:280px}.ebl-editor.outline .codex-editor{-webkit-box-flex:1;-ms-flex:1;flex:1}@media (max-width:1240px){.ebl-outline{display:none}.ebl-editor.outline{padding-right:0}}@media (min-width:1240px){.ebl-editor.readonly .ce-block__content{max-width:100%;padding-left:100px;padding-right:100px}}.ce-toolbar,.ce-inline-toolbar{z-index:1000}.ce-toolbar__plus{border:1px solid #EFF0F1}.ce-toolbar .ce-popover__items,.ce-popover-clone .ce-popover__items{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.ce-toolbar .ce-popover__items .ce-popover-item,.ce-popover-clone .ce-popover__items .ce-popover-item{position:relative}.ce-toolbar .ce-popover__items .ce-popover-item__title,.ce-popover-clone .ce-popover__items .ce-popover-item__title{display:none}.ce-toolbar .ce-popover-item-html,.ce-toolbar .ce-popover-item-separator,.ce-toolbar .ce-popover-item[data-item-name=convert-to],.ce-popover-clone .ce-popover-item-html,.ce-popover-clone .ce-popover-item-separator,.ce-popover-clone .ce-popover-item[data-item-name=convert-to]{width:100%}.ce-toolbar .ce-popover-item-html[data-item-name=list-setting],.ce-popover-clone .ce-popover-item-html[data-item-name=list-setting]{width:auto;overflow:hidden}.ce-toolbar .ce-popover-item-html[data-item-name=list-setting-start-with],.ce-popover-clone .ce-popover-item-html[data-item-name=list-setting-start-with]{border-radius:6px;padding:3px}.ce-toolbar .ce-popover-item-html[data-item-name=list-setting-start-with]:hover,.ce-popover-clone .ce-popover-item-html[data-item-name=list-setting-start-with]:hover{background-color:#f8f8f8}.ce-toolbar .ce-popover-item[data-item-name=convert-to] .ce-popover-item__title,.ce-popover-clone .ce-popover-item[data-item-name=convert-to] .ce-popover-item__title{display:block}.ce-toolbar .ce-popover-item[data-item-name=add-below],.ce-popover-clone .ce-popover-item[data-item-name=add-below]{width:100%}.ce-toolbar .ce-popover-item[data-item-name=add-below] .ce-popover-item__title,.ce-popover-clone .ce-popover-item[data-item-name=add-below] .ce-popover-item__title{display:block}.ce-toolbar .ce-popover-item[data-item-name=list-setting],.ce-popover-clone .ce-popover-item[data-item-name=list-setting]{width:100%}.ce-toolbar .ce-popover-item[data-item-name=list-setting] .ce-popover-item__title,.ce-popover-clone .ce-popover-item[data-item-name=list-setting] .ce-popover-item__title{display:block}.ce-popover--inline .ce-popover-item-html{padding:0 2px}.ce-inline-toolbar .ce-popover__items{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.ce-inline-toolbar .ce-popover__items{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.ce-inline-toolbar .ce-popover__items .ce-popover-item__title{display:none}.ebl-editor ::-webkit-scrollbar{width:6px;height:6px}.ebl-editor ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:1px}.ebl-editor ::-webkit-scrollbar-thumb{background:#C0C0C0;border-radius:10px;border:1px solid #fff}.ebl-editor ::-webkit-scrollbar-thumb:hover{background:#555}.cdx-notifies{left:50%!important}.cdx-notifies{-webkit-transform:translateX(-50%);transform:translate(-50%);top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ebl-er-doc-outline-item{padding:7px 24px;cursor:pointer;white-space:normal;word-wrap:break-word}.ebl-er-doc-outline-item:hover{background-color:#f6f6f6}.ebl-er-doc-outline-item.selected{background-color:#ebebeb}.ebl-outline .level_1{padding-left:24px}.ebl-outline .level_2{padding-left:42px}.ebl-outline .level_3{padding-left:60px}.ce-popover--inline .ce-popover--nested .ce-popover__container{width:-webkit-min-content!important;width:-moz-min-content!important;width:min-content!important;min-width:0!important;min-width:initial!important}.ce-popover--inline .ce-popover--nested .ce-popover__items{width:-webkit-max-content;width:-moz-max-content;width:max-content}.editorjs__color-selector-container{display:grid;grid-gap:10px;padding:4px}.editorjs__color-selector__container-item{width:30px;height:30px;display:block;cursor:pointer;border-radius:100%;-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.editorjs__color-selector__container-item:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}.cel-inline-bold{font-weight:700}.cel-inline-strikethrough{-webkit-text-decoration:line-through;text-decoration:line-through}.cel-inline-italic{font-style:italic}.cel-inline-code{margin-left:2px;margin-right:2px;background-color:#f5f6f7;border:1px solid #dee0e3;border-color:#dee0e3;border-width:1px 0;border-radius:4px;padding:1px 5px 1px 4px}.cel-inline-underline{-webkit-text-decoration:underline;text-decoration:underline}.cel-inline-underline.cel-inline-strikethrough{-webkit-text-decoration:underline line-through;text-decoration:underline line-through}.cel-inline-mark{background-color:#ff0;padding:2px}.cel-inline-link-input-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:5px}.cel-inline-link-input{-webkit-box-flex:1;-ms-flex:1;flex:1;background:#F8F8F8;border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:4px 8px;font-size:14px;line-height:22px;outline:none;margin:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:500;font-family:inherit}.cel-inline-link-input-btn{width:50px;border-radius:5px;background-color:#161c27;color:#fff;border:none;cursor:pointer}.cel-inline-link-input-btn.disabled{opacity:.4;cursor:not-allowed}.cel-fake-background{background-color:#a8d6ff}.editorjs__color-selector__input{width:1px;height:1px;opacity:0}.editorjs__color-selector__container-item-none{background-color:transparent;border:1px solid #e6e6e6;position:relative}.editorjs__color-selector__container-item-none:before{content:"";position:absolute;top:50%;left:50%;width:1px;height:35px;background-color:#e6e6e6;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.cel-inline-gray-text{color:#646a73}.cel-inline-pink-text{color:#d83931}.cel-inline-orange-text{color:#de7802}.cel-inline-yellow-text{color:#dc9b04}.cel-inline-green-text{color:#2ea121}.cel-inline-blue-text{color:#245bdb}.cel-inline-purple-text{color:#6425d0}.ebl-er-doc{font-family:var(--font-family);font-size:16px;font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box}.ebl-er-header{height:var(--ebl-er-header-height);-webkit-box-sizing:border-box;box-sizing:border-box;position:sticky;top:0;z-index:10}.ebl-er-footer{height:var(--ebl-er-footer-height);-webkit-box-sizing:border-box;box-sizing:border-box}.ebl-er-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;min-height:calc(100vh - var(--ebl-er-header-height))}.ebl-er-doc-menu{width:var(--ebl-er-doc-menu-width);-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height)}.ebl-er-doc-menu-content{-webkit-box-sizing:border-box;box-sizing:border-box}.ebl-er-doc-content{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;max-width:calc(100% - var(--ebl-er-doc-menu-width));-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.ebl-er-doc-content-container{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 50px 50px;width:100%;overflow-x:hidden;white-space:normal;word-wrap:break-word}.ebl-er-doc-content-inner-wrap{margin:0 auto}.ebl-er-doc-content-inner .ce-block{width:100%}.ebl-er-doc-outline{width:280px;-webkit-box-sizing:border-box;box-sizing:border-box;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height);overflow:auto;padding:12px}.ebl-er-doc-pre-next{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:33px 0}@media (max-width:960px){.ebl-er-doc-outline{display:none}}.ebl-er-doc ::-webkit-scrollbar{width:6px;height:6px}.ebl-er-doc ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:1px}.ebl-er-doc ::-webkit-scrollbar-thumb{background:#C0C0C0;border-radius:10px;border:1px solid #fff}.ebl-er-doc ::-webkit-scrollbar-thumb:hover{background:#555}.ce-el-link-wrapper{position:absolute;z-index:1000;width:auto;max-width:300px;height:46px;padding:6px 20px;border:1px solid #eff0f1;border-radius:6px;background-color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.ce-el-link-input{border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:4px 8px;background-color:#f8f8f8;font-size:12px;line-height:22px;margin:0;-webkit-box-flex:1;-ms-flex:1;flex:1;width:260px}.ce-el-link-input.ce-el-link__noedit{display:none}.ce-el-link-btn-wrap{width:50px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.ce-el-link-btn{width:50px;background-color:#161c27;color:#fff;border-radius:6px;margin-left:5px;display:block}.ce-el-link-btn.ce-el-link__noedit{display:none}.ce-el-link-icon-btn{width:24px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-left:5px;cursor:pointer;display:none}.ce-el-link-icon-btn.ce-el-link__noedit{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-el-link-input-text{padding-right:20px;display:none}.ce-el-link-input-text.ce-el-link__noedit{display:block}.ce-block--drop-target .ce-block__content:before{content:"";position:absolute;top:50%;left:-20px;margin-top:-1px;height:8px;width:8px;border:solid #a0a0a0;border-width:1px 1px 0 0;-webkit-transform-origin:right;transform-origin:right;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ce-block--drop-target .ce-block__content:after{background:none}.ce-header{padding:15px 0 3px;margin:0;line-height:1.25;outline:none}.ce-header p,.ce-header div{padding:0!important;margin:0!important}.ce-tune-alignment--right{text-align:right}.ce-tune-alignment--center{text-align:center}.ce-tune-alignment--left{text-align:left}.ce-paragraph{line-height:2!important}.ce-paragraph{outline:none}.ce-block:only-of-type .ce-paragraph[data-placeholder-active]:empty:before,.ce-block:only-of-type .ce-paragraph[data-placeholder-active][data-empty=true]:before{content:attr(data-placeholder-active)}.ce-paragraph p:first-of-type{margin-top:0}.ce-paragraph p:last-of-type{margin-bottom:0}.ce-editorjs-x-shiki{border-radius:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:10px 0;border:2px solid transparent;position:relative}.ce-editorjs-x-shiki.editable:hover{border:2px solid #C0C0C0}.ce-editorjs-x-shiki__lang{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:8px}.ce-editorjs-x-shiki__code{position:relative;float:left;min-width:100%;overflow:hidden;height:auto;min-height:60px}.ce-editorjs-x-shiki__code__dragHandler{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);bottom:-5px;cursor:ns-resize;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:8px;width:60px;background-color:silver;border-radius:5px;display:none}.ce-editorjs-x-shiki:hover .ce-editorjs-x-shiki__code__dragHandler{display:block}.ce-editorjs-x-shiki__selector{display:-webkit-box;display:-ms-flexbox;display:flex;gap:15px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;border-bottom-style:solid;border-color:#9ca3af0d;border-bottom-width:1px;padding:0 8px 8px}.ce-editorjs-x-shiki__selector-language,.ce-editorjs-x-shiki__selector-theme{font-size:13px;font-family:inherit}.ce-editorjs-x-shiki__selector-language{width:90px}.ce-editorjs-x-shiki__selector select{border:none;outline:none}.ce-editorjs-x-shiki__span{position:relative;z-index:0;padding:20px 20px 20px 55px;margin:0;white-space:pre;font-size:13px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__span code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea{all:unset;white-space:pre;background-color:transparent;position:absolute;padding:20px 20px 20px 55px;inset:0;color:transparent;z-index:0;font-size:13px;caret-color:#999;resize:none;border:none;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea::-moz-selection{background-color:#083ca9;color:#fff}.ce-editorjs-x-shiki__textarea::selection{background-color:#083ca9;color:#fff}.ce-editorjs-x-shiki__copy{width:24px;height:24px;cursor:pointer;position:relative;margin-right:0}.ce-editorjs-x-shiki__copy_tip{font-size:12px;width:60px;margin-left:-20px;background-color:#0c0c0c;color:#ececec;text-align:center;border-radius:6px;padding:5px 10px;position:absolute;z-index:1;top:125%;-webkit-transition:opacity .3s;transition:opacity .3s;visibility:hidden;opacity:0}.ce-editorjs-x-shiki__copy_tip:after{content:"";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #0c0c0c transparent}.ce-editorjs-x-shiki__copy_tip.visible{visibility:visible;opacity:1}.ce-editorjs-x-shiki__span.shiki .line:before{content:attr(data-line);width:40px;display:inline-block;text-align:right;color:#888;position:absolute;left:0}.ce-editorjs-x-shiki__code ::-webkit-scrollbar{width:8px;height:8px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-track{background:#22272e;border-radius:1px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb{background:#C0C0C0;border-radius:10px;border:2px solid #22272e}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb:hover{background:#555555}.ce-block--selected .ce-editorjs-x-shiki{outline:2px solid #4299e1}.ce-block--selected .ce-editorjs-x-shiki,.ce-block--selected .ce-editorjs-x-shiki__selector-language,.ce-block--selected .ce-editorjs-x-shiki__span{background-color:#e1f2ff!important}.cdx-quote{overflow:hidden;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;word-wrap:break-word;word-break:break-all}.cdx-quote blockquote{margin:0}.cdx-block-quote{border:solid #acacac;border-width:0 0 0 3px;-webkit-box-shadow:none;box-shadow:none;color:#666;line-height:1.6em;padding:1px 0 0 12px}.ce-delimiter__line__wrapper{height:24px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ce-delimiter__line{-webkit-box-flex:1;-ms-flex:1;flex:1;height:2px;background-color:#eff0f1}.cdx-list{margin:0;padding:0;outline:none;display:grid;counter-reset:item;grid-gap:var(--spacing-s);padding:var(--spacing-xs);--spacing-s: 8px;--spacing-xs: 6px;--list-counter-type: numeric;--radius-border: 5px;--checkbox-background: #fff;--color-border: #C9C9C9;--color-bg-checked: #369FFF;--line-height: 1.45em;--color-bg-checked-hover: #0059AB;--color-tick: #fff;--size-checkbox: 1.2em}.cdx-list ol{padding-left:0}.cdx-list__item{line-height:var(--line-height);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;grid-template-areas:"checkbox content" ". child"}.cdx-list__item-children{display:grid;grid-area:child;grid-gap:var(--spacing-s);padding-top:var(--spacing-s)}.cdx-list__item [contenteditable]{outline:none}.cdx-list__item-content{word-break:break-word;white-space:pre-wrap;grid-area:content;padding-left:var(--spacing-s)}.cdx-list__item:before{counter-increment:item;white-space:nowrap}.cdx-list-ordered .cdx-list__item:before{content:counters(item,".",var(--list-counter-type)) "."}.cdx-list-ordered{counter-reset:item}.cdx-list-unordered{padding-left:0}.cdx-list-unordered .cdx-list__item:before{content:"•"}.cdx-list-checklist .cdx-list__item:before{content:""}.cdx-list__settings .cdx-settings-button{width:50%}.cdx-list__checkbox{padding-top:calc((var(--line-height) - var(--size-checkbox)) / 2);grid-area:checkbox;width:var(--size-checkbox);height:var(--size-checkbox);display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer}.cdx-list__checkbox svg{opacity:0;height:var(--size-checkbox);width:var(--size-checkbox);left:-1px;top:-1px;position:absolute}@media (hover: hover){.cdx-list__checkbox:not(.cdx-list__checkbox--no-hover):hover .cdx-list__checkbox-check svg{opacity:1}}.cdx-list__checkbox--checked{line-height:var(--line-height)}@media (hover: hover){.cdx-list__checkbox--checked:not(.cdx-list__checkbox--checked--no-hover):hover .cdx-checklist__checkbox-check{background:var(--color-bg-checked-hover);border-color:var(--color-bg-checked-hover)}}.cdx-list__checkbox--checked .cdx-list__checkbox-check{background:var(--color-bg-checked);border-color:var(--color-bg-checked)}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg{opacity:1}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg path{stroke:var(--color-tick)}.cdx-list__checkbox--checked .cdx-list__checkbox-check:before{opacity:0;visibility:visible;-webkit-transform:scale(2.5);transform:scale(2.5)}.cdx-list__checkbox-check{cursor:pointer;display:inline-block;position:relative;margin:0 auto;width:var(--size-checkbox);height:var(--size-checkbox);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:var(--radius-border);border:1px solid var(--color-border);background:var(--checkbox-background)}.cdx-list__checkbox-check:before{content:"";position:absolute;inset:0;border-radius:100%;background-color:var(--color-bg-checked);visibility:hidden;pointer-events:none;-webkit-transform:scale(1);transform:scale(1);-webkit-transition:opacity .4s,-webkit-transform .4s ease-out;transition:opacity .4s,-webkit-transform .4s ease-out;transition:transform .4s ease-out,opacity .4s;transition:transform .4s ease-out,opacity .4s,-webkit-transform .4s ease-out}.cdx-list__checkbox-check--disabled{pointer-events:none}.cdx-list-start-with-field{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;overflow:hidden;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cdx-list-start-with-field--invalid{background:#FFECED;border:1px solid #E13F3F}.cdx-list-start-with-field:hover{background-color:#f8f8f8}.cdx-list-start-with-field--invalid .cdx-list-start-with-field__input{color:#e13f3f}.cdx-list-start-with-field__startlabel{width:70px;font-size:14px}.cdx-list-start-with-field__input-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden}.cdx-list-start-with-field__input{font-size:14px;outline:none;font-weight:500;font-family:inherit;border:0;background:transparent;margin:0;line-height:22px;-webkit-box-flex:1;-ms-flex:1;flex:1;border:1px solid rgba(226,226,229,1);border-radius:6px;padding:0 10px;width:50px;text-align:center}.cdx-list-start-with-field__input::-webkit-input-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input::-moz-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input:-ms-input-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input::-ms-input-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input::placeholder{color:var(--grayText);font-weight:500}.cdx-alert{position:relative;padding:10px;border-radius:5px;margin-bottom:10px;margin-top:10px}.cdx-alert-primary{background-color:#ebf8ff;border:1px solid #4299e1;color:#2b6cb0}.cdx-alert-secondary{background-color:#f7fafc;border:1px solid #cbd5e0;color:#222731}.cdx-alert-info{background-color:#e6fdff;border:1px solid #4cd4ce;color:#00727c}.cdx-alert-success{background-color:#f0fff4;border:1px solid #68d391;color:#2f855a}.cdx-alert-warning{background-color:#fffaf0;border:1px solid #ed8936;color:#c05621}.cdx-alert-danger{background-color:#fff5f5;border:1px solid #fc8181;color:#c53030}.cdx-alert-light{background-color:#fff;border:1px solid #edf2f7;color:#1a202c}.cdx-alert-dark{background-color:#2d3748;border:1px solid #1a202c;color:#d3d3d3}.cdx-alert-align-left{text-align:left}.cdx-alert-align-center{text-align:center}.cdx-alert-align-right{text-align:right}.cdx-alert__message{outline:none}.cdx-alert [contentEditable=true][data-placeholder]:before{position:absolute;content:attr(data-placeholder);color:#707684;font-weight:400;opacity:0}.cdx-alert [contentEditable=true][data-placeholder]:empty:before{opacity:1}.cdx-alert [contentEditable=true][data-placeholder]:empty:focus:before{opacity:0}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #background{fill:#ebf8ff;stroke:#4299e1}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #content{fill:#2b6cb0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #background{fill:#f7fafc;stroke:#cbd5e0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #content{fill:#222731}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #background{fill:#e6fdff;stroke:#4cd4ce}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #content{fill:#00727c}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #background{fill:#f0fff4;stroke:#68d391}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #content{fill:#2f855a}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #background{fill:#fffaf0;stroke:#ed8936}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #content{fill:#c05621}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #background{fill:#fff5f5;stroke:#fc8181}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #content{fill:#c53030}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #background{fill:#fff;stroke:#edf2f7}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #content{fill:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #background{fill:#2d3748;stroke:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #content{fill:#d3d3d3}.cdx-alert_setting__icon_wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:10px}.cdx-alert_setting__icon_wrapper_align{margin-top:10px}.cdx-alert_setting__icon{display:inline-block;width:24px;height:24px;text-align:center;line-height:24px;cursor:pointer}.cdx-alert_setting__icon_active{opacity:.3}.ce-block--selected .cdx-alert{outline:2px solid #4299e1}.ce-popover-indent-item{cursor:default!important}.ce-popover-indent-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:3px}.ce-popover-indent-item[version^="2.26"]{gap:10px}.ce-popover-indent-item:hover{background-color:transparent!important}.ce-popover-indent-item .ce-popover-item__icon{width:26px;height:26px;cursor:pointer;will-change:background-color,color;transition:.3s background-color,.3s color;padding:0;border-width:0px;color:#000;background-color:#fff;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;-webkit-transition:.3s background-color,.3s color;-moz-transition:.3s background-color,.3s color;-ms-transition:.3s background-color,.3s color;-o-transition:.3s background-color,.3s color}.ce-popover-indent-item .ce-popover-item--disabled{color:#707684;opacity:.3;cursor:default}.ce-popover-indent-item .ce-popover-item__icon:focus{outline:none}.ce-popover-indent-item[version^="2.26"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.27"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.28"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.29"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.26"] .ce-popover-item__icon,.ce-popover-indent-item[version^="2.27"] .ce-popover-item__icon,.ce-popover-indent-item[version^="2.28"] .ce-popover-item__icon,.ce-popover-indent-item[version^="2.29"] .ce-popover-item__icon{box-shadow:0 0 0 1px #c9c9cc7a!important;-webkit-box-shadow:0 0 0 1px rgba(201,201,204,.48)!important}.ce-popover-indent-item[version^="2.26"] .ce-popover-item__icon:hover,.ce-popover-indent-item[version^="2.27"] .ce-popover-item__icon:hover,.ce-popover-indent-item[version^="2.28"] .ce-popover-item__icon:hover,.ce-popover-indent-item[version^="2.29"] .ce-popover-item__icon:hover{background-color:#eff2f5}.ce-highlight-indent{display:inline-block;height:1.6em;top:50%;position:absolute;transform:translateY(-50%);-webkit-transform:translate(0px,-50%);-moz-transform:translate(0px,-50%);-ms-transform:translate(0px,-50%);-o-transform:translate(0px,-50%)}.ce-popover-indent-item[version^="2.3"] .ce-popover-item__title{margin-left:4px}.tc-wrap{--color-background: #f9f9fb;--color-text-secondary: #7b7e89;--color-border: #e8e8eb;--cell-size: 34px;--toolbox-icon-size: 18px;--toolbox-padding: 6px;--toolbox-aiming-field-size: calc(var(--toolbox-icon-size) + var(--toolbox-padding)*2);--col-width: 100px 100px 100px;position:relative;height:100%;margin-top:var(--toolbox-icon-size);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-grid;z-index:0}.tc-wrap svg{vertical-align:top}@media print{.tc-wrap{border-left-color:var(--color-border);border-left-style:solid;border-left-width:1px}}@media print{.tc-wrap .tc-row:after{display:none}}.tc-table{position:relative;width:100%;height:100%;display:grid;font-size:14px;border-top:1px solid var(--color-border);border-left:1px solid var(--color-border);line-height:1.4;overflow-x:auto}.tc-table:after{width:calc(var(--cell-size));height:100%;left:calc(var(--cell-size)*-1);top:0}.tc-table:after,.tc-table:before{position:absolute;content:""}.tc-table:before{width:100%;height:var(--toolbox-aiming-field-size);top:calc(var(--toolbox-aiming-field-size)*-1);left:0}.tc-table--heading .tc-row:first-child{font-weight:600;border-bottom:2px solid var(--color-border);position:sticky;top:0;z-index:2;background:var(--color-background)}.tc-table--heading .tc-row:first-child [contenteditable]:empty:before{content:attr(heading);color:var(--color-text-secondary)}.tc-table--heading .tc-row:first-child:after{bottom:-2px;border-bottom:2px solid var(--color-border)}.tc-add-column,.tc-add-row{display:-webkit-box;display:-ms-flexbox;display:flex;color:var(--color-text-secondary)}@media print{.tc-add{display:none}}.tc-add-column{display:grid;border-top:1px solid var(--color-border);grid-auto-rows:var(--cell-size);-webkit-box-align:center;-ms-flex-align:center;align-items:center;justify-items:center}.tc-add-column svg{padding:5px;position:sticky;top:0;background-color:var(--color-background)}.tc-add-column--disabled{visibility:hidden}@media print{.tc-add-column{display:none}}.tc-add-row{height:var(--cell-size);-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:4px;position:relative}.tc-add-row--disabled{display:none}.tc-add-row:before{content:"";position:absolute;right:calc(var(--cell-size)*-1);width:var(--cell-size);height:100%}@media print{.tc-add-row{display:none}}.tc-add-column,.tc-add-row{-webkit-transition:0s;transition:0s;cursor:pointer;will-change:background-color}.tc-add-column:hover,.tc-add-row:hover{-webkit-transition:background-color .1s ease;transition:background-color .1s ease;background-color:var(--color-background)}.tc-add-row{margin-top:1px}.tc-add-row:hover:before{-webkit-transition:.1s;transition:.1s;background-color:var(--color-background)}.tc-row{display:grid;grid-template-columns:var(--col-width);position:relative;border-bottom:1px solid var(--color-border)}.tc-row--selected{background:var(--color-background)}.tc-row--selected:after{background:var(--color-background)}.tc-cell{border-right:1px solid var(--color-border);padding:6px 12px;overflow:hidden;outline:none;line-break:normal}.tc-cell--selected{background:var(--color-background)}.tc-wrap--readonly .tc-row:after{display:none}.tc-toolbox{--toolbox-padding: 6px;--popover-margin: 30px;--toggler-click-zone-size: 30px;--toggler-dots-color: #7b7e89;--toggler-dots-color-hovered: #1d202b;position:absolute;cursor:pointer;z-index:1;opacity:0;-webkit-transition:opacity .1s;transition:opacity .1s;will-change:left,opacity}.tc-toolbox--column{top:calc(var(--toggler-click-zone-size)*-1);-webkit-transform:translate(calc(var(--toggler-click-zone-size)*-1/2));transform:translate(calc(var(--toggler-click-zone-size)*-1/2));will-change:left,opacity}.tc-toolbox--row{left:calc(var(--popover-margin)*-1);-webkit-transform:translateY(calc(var(--toggler-click-zone-size)*-1/2));transform:translateY(calc(var(--toggler-click-zone-size)*-1/2));margin-top:-1px;will-change:top,opacity}.tc-toolbox--showed{opacity:1}.tc-toolbox .tc-popover{position:absolute;top:0;left:var(--popover-margin)}.tc-toolbox__toggler{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:var(--toggler-click-zone-size);height:var(--toggler-click-zone-size);color:var(--toggler-dots-color);opacity:0;-webkit-transition:opacity .15s ease;transition:opacity .15s ease;will-change:opacity}.tc-toolbox__toggler:hover{color:var(--toggler-dots-color-hovered)}.tc-toolbox__toggler svg{fill:currentColor}.tc-wrap:hover .tc-toolbox__toggler{opacity:1}.tc-settings .cdx-settings-button{width:50%;margin:0}.tc-popover{--color-border: #eaeaea;--color-background: #fff;--color-background-hover: rgba(232, 232, 235, .49);--color-background-confirm: #e24a4a;--color-background-confirm-hover: #d54040;--color-text-confirm: #fff;background:var(--color-background);border:1px solid var(--color-border);-webkit-box-shadow:0 3px 15px -3px rgba(13,20,33,.12941);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;padding:6px;display:none;will-change:opacity,transform}.tc-popover--opened{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-animation:menuShowing .1s cubic-bezier(.215,.61,.355,1) forwards;animation:menuShowing .1s cubic-bezier(.215,.61,.355,1) forwards}.tc-popover__item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:2px 14px 2px 2px;border-radius:5px;cursor:pointer;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tc-popover__item:hover{background:var(--color-background-hover)}.tc-popover__item:not(:last-of-type){margin-bottom:2px}.tc-popover__item-icon{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:26px;height:26px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:var(--color-background);border-radius:5px;border:1px solid var(--color-border);margin-right:8px}.tc-popover__item-label{line-height:22px;font-size:14px;font-weight:500}.tc-popover__item--confirm{background:var(--color-background-confirm);color:var(--color-text-confirm)}.tc-popover__item--confirm:hover{background-color:var(--color-background-confirm-hover)}.tc-popover__item--confirm .tc-popover__item-icon{background:var(--color-background-confirm);border-color:#0000001a}.tc-popover__item--confirm .tc-popover__item-icon svg{-webkit-transition:-webkit-transform .2s ease-in;transition:-webkit-transform .2s ease-in;transition:transform .2s ease-in;transition:transform .2s ease-in,-webkit-transform .2s ease-in;-webkit-transform:rotate(90deg) scale(1.2);transform:rotate(90deg) scale(1.2)}.tc-popover__item--hidden{display:none}@-webkit-keyframes menuShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes menuShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.cell-resizable{cursor:col-resize}.image-tool{--bg-color: #cdd1e0;--front-color: #388ae5;--border-color: #e8e8eb;display:inline-block}.image-tool__image{border-radius:3px;overflow:hidden;margin-bottom:10px;padding-bottom:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.image-tool__image-picture{max-width:100%;vertical-align:bottom;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.image-tool__image-preloader{width:150px;height:150px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-color:var(--bg-color);background-position:center center}.image-tool__image-preloader:after{content:"";position:absolute;z-index:3;width:60px;height:60px;border-radius:50%;border:2px solid var(--bg-color);border-top-color:var(--front-color);left:50%;top:50%;margin-top:-30px;margin-left:-30px;-webkit-animation:image-preloader-spin 2s infinite linear;animation:image-preloader-spin 2s infinite linear;-webkit-box-sizing:border-box;box-sizing:border-box}.image-tool__caption{visibility:hidden;position:absolute;bottom:0;left:0;margin-bottom:10px}.image-tool__caption[contentEditable=true][data-placeholder]:before{position:absolute!important}.image-tool__caption[contentEditable=true][data-placeholder]:before{content:attr(data-placeholder);color:#707684;font-weight:400;display:none}.image-tool__caption[contentEditable=true][data-placeholder]:empty:before{display:block}.image-tool__caption[contentEditable=true][data-placeholder]:empty:focus:before{display:none}.image-tool--empty .image-tool__image,.image-tool--empty .image-tool__image-preloader{display:none}.image-tool--empty .image-tool__caption,.image-tool--uploading .image-tool__caption{visibility:hidden!important}.image-tool .cdx-button{display:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.image-tool .cdx-button svg{height:auto;margin:0 6px 0 0}.image-tool--filled .cdx-button,.image-tool--filled .image-tool__image-preloader{display:none}.image-tool--uploading{width:100%}.image-tool--uploading .resizable{display:none!important}.image-tool--uploading .image-tool__image{min-height:200px;display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#fff}.image-tool--uploading .image-tool__image-picture,.image-tool--uploading .cdx-button{display:none}.image-tool--withBorder .image-tool__image{border:1px solid var(--border-color)}.image-tool--withBackground .image-tool__image{padding:15px;background:var(--bg-color)}.image-tool--withBackground .image-tool__image-picture{max-width:60%;margin:0 auto}.image-tool--stretched .image-tool__image-picture{width:100%}.image-tool--caption .image-tool__caption{visibility:visible}.image-tool--caption{padding-bottom:50px}@-webkit-keyframes image-preloader-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes image-preloader-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.cdx-image-tool-tune--floatLeft .cdx-block,.cdx-image-tool-tune--center .cdx-block,.cdx-image-tool-tune--floatRight .cdx-block,.cdx-image-tool-tune--floatLeft .image-tool__image,.cdx-image-tool-tune--center .image-tool__image,.cdx-image-tool-tune--floatRight .image-tool__image{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}:root{--primary: #2492F5;--primary-content: #E9F4FE}.cdx-settings-button--active{background:#E9F4FE;color:#2492f5}.cdx-settings-button:hover{background:#E9F4FE}.cdx-image-tool-tune--center{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media all and (min-width: 470px){.codex-editor:not(.read-only) .cdx-image-tool-tune--floatLeft.ce-block__content,.codex-editor:not(.read-only) .cdx-image-tool-tune--floatRight.ce-block__content{min-height:20px}.cdx-image-tool-tune--floatLeft.ce-block__content .image-tool__image,.cdx-image-tool-tune--floatRight.ce-block__content .image-tool__image{margin-top:40px}.cdx-image-tool-tune--floatLeft.ce-block__content .image-tool__image{margin-left:20px}.cdx-image-tool-tune--floatRight.ce-block__content .image-tool__image{margin-right:20px}.cdx-image-tool-tune--floatLeft.ce-block__content .cdx-input,.cdx-image-tool-tune--floatRight.ce-block__content .cdx-input{width:calc(100% - 20px)}.cdx-image-tool-tune--floatLeft.ce-block__content .cdx-input{margin-left:20px}.cdx-image-tool-tune--floatRight.ce-block__content .cdx-input{margin-right:20px}.cdx-image-tool-tune--floatLeft .cdx-block{float:left;margin-right:10px}.cdx-image-tool-tune--floatRight .cdx-block{float:right;margin-left:10px}.cdx-image-tool-tune--sizeSmall .cdx-block{max-width:25%!important}.cdx-image-tool-tune--sizeMiddle .cdx-block{max-width:50%!important}.cdx-image-tool-tune--sizeLarge .cdx-block{max-width:75%!important}}.cdx-image-tool-tune--sizeLarge img,.cdx-image-tool-tune--sizeSmall img,.cdx-image-tool-tune--sizeMiddle img{-o-object-fit:cover;object-fit:cover;max-width:100%}.codex-editor.read-only .cdx-input.image-tool__caption:empty,.read-only>.codex-editor .cdx-input.image-tool__caption:empty{display:none}.cdx-image-tool-tune--resize .cdx-block{position:relative;overflow:visible}.cdx-image-tool-tune--resize .cdx-block .resizable{display:none}.cdx-image-tool-tune--resize .image-tool__image-picture{width:100%!important}.cdx-image-tool-tune--resize .cdx-block:hover .resizable{display:block}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer{-webkit-box-sizing:border-box;box-sizing:border-box;width:14px;height:14px;border-radius:50%;background:#E9F4FE;border:3px solid #2492F5;position:absolute}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.top-left{left:-8px;top:2px;cursor:nwse-resize}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.top-right{right:-8px;top:1px;cursor:nesw-resize}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.bottom-left{left:-9px;bottom:10px;cursor:nesw-resize}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.bottom-right{right:-9px;bottom:10px;cursor:nwse-resize}.cdx-image-tool-tune--crop:hover,.cdx-image-tool-tune--crop.isCropping,.cdx-image-tool-tune--resize:hover{z-index:2}.cdx-image-tool-tune--crop .image-tool__image{position:relative}.cdx-image-tool-tune--crop .isCropping .image-tool__image{min-height:600px;min-width:100%}.cdx-image-tool-tune--crop .image-tool__image .crop-btn,.cdx-image-tool-tune--crop .image-tool__image .crop-save{position:absolute;top:0;left:0;padding:7px;background:#2492F5;color:#e9f4fe;text-align:center;line-height:20px;cursor:pointer;display:none}.cdx-image-tool-tune--crop .image-tool__image:hover .crop-btn,.cdx-image-tool-tune--crop .image-tool__image:hover .crop-save{display:block}.cdx-image-tool-tune--crop .image-tool__image img.isCropped{position:absolute;min-width:0;min-width:initial;max-width:none;max-width:initial;min-height:0;min-height:initial;max-height:none;max-height:initial}.cdx-image-tool-tune--crop .cdx-block.image-tool.isCropping{min-width:0!important;min-width:initial!important;max-width:none!important;max-width:initial!important;min-height:0!important;min-height:initial!important;max-height:none!important;max-height:initial!important}.image-tool__caption{background-color:#fff}.image-tool{position:relative;z-index:1}.cdx-image-tool-tune{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;gap:4px;width:100%}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { defineComponent as Rn, inject as Nn, onMounted as An, toRaw as It, onUnmounted as _n, watch as Mn, openBlock as On, createElementBlock as In } from "vue";
3
- import Hn, { SelectionUtils as Rt } from "@ebl-vue/editorjs";
4
- import { isCaretAtStartOfInput as kn, focus as Bn, getCaretNodeAndOffset as Dn } from "@editorjs/caret";
5
- import { bundledLanguagesInfo as Pn, codeToHtml as zn } from "shiki";
2
+ import { defineComponent as Rn, inject as Nn, onMounted as An, toRaw as Ht, onUnmounted as _n, watch as Mn, openBlock as On, createElementBlock as In } from "vue";
3
+ import Hn, { SelectionUtils as Nt } from "@ebl-vue/editorjs";
4
+ import { isCaretAtStartOfInput as kn, focus as Bn, getCaretNodeAndOffset as Dn, getContenteditableSlice as Pn } from "@editorjs/caret";
5
+ import { bundledLanguagesInfo as zn, codeToHtml as Wn } from "shiki";
6
6
  import * as Tt from "@editorjs/dom";
7
7
  import { make as xe, isEmpty as jt } from "@editorjs/dom";
8
8
  import Et from "axios";
9
- const Yt = Symbol("INSTALLED_KEY"), Wn = (_, e) => {
9
+ const Yt = Symbol("INSTALLED_KEY"), Fn = (_, e) => {
10
10
  if (_.install = (t) => {
11
11
  for (const n of [_, ...Object.values(e != null ? e : {})])
12
12
  t.component(n.name, n);
@@ -15,7 +15,7 @@ const Yt = Symbol("INSTALLED_KEY"), Wn = (_, e) => {
15
15
  _[t] = n;
16
16
  return _;
17
17
  };
18
- function Fn() {
18
+ function Un() {
19
19
  var _ = "object", e = "undefined", t = ["startContainer", "startOffset", "endContainer", "endOffset", "collapsed", "commonAncestorContainer"], n = ["setStart", "setStartBefore", "setStartAfter", "setEnd", "setEndBefore", "setEndAfter", "collapse", "selectNode", "selectNodeContents", "compareBoundaryPoints", "deleteContents", "extractContents", "cloneContents", "insertNode", "surroundContents", "cloneRange", "toString", "detach"], s = ["boundingHeight", "boundingLeft", "boundingTop", "boundingWidth", "htmlText", "text"], a = ["collapse", "compareEndPoints", "duplicate", "moveToElementText", "parentElement", "select", "setEndPoint", "getBoundingClientRect"];
20
20
  function c(p, x) {
21
21
  var L = typeof p[x];
@@ -42,7 +42,7 @@ function Fn() {
42
42
  function H(p) {
43
43
  return g(p, "body") ? p.body : p.getElementsByTagName("body")[0];
44
44
  }
45
- var z, X, ie = {}, de = typeof window != e && typeof document != e, fe = { isHostMethod: c, isHostObject: g, isHostProperty: C, areHostMethods: E, areHostObjects: N, areHostProperties: A, isTextRange: M, getBody: H, forEach: [].forEach ? function(p, x) {
45
+ var z, G, ie = {}, de = typeof window != e && typeof document != e, fe = { isHostMethod: c, isHostObject: g, isHostProperty: C, areHostMethods: E, areHostObjects: N, areHostProperties: A, isTextRange: M, getBody: H, forEach: [].forEach ? function(p, x) {
46
46
  p.forEach(x);
47
47
  } : function(p, x) {
48
48
  for (var L = 0, F = p.length; L < F; ++L)
@@ -60,9 +60,9 @@ function Fn() {
60
60
  q.fail = Ne, q.warn = function(p) {
61
61
  $e("Rangy warning: " + p, q.config.alertOnWarn);
62
62
  }, {}.hasOwnProperty ? (fe.extend = z = function(p, x, L) {
63
- var F, J;
63
+ var F, Q;
64
64
  for (var ee in x)
65
- ee !== "__proto__" && ee !== "constructor" && ee !== "prototype" && x.hasOwnProperty(ee) && (F = p[ee], J = x[ee], L && F !== null && typeof F == "object" && J !== null && typeof J == "object" && z(F, J, !0), p[ee] = J);
65
+ ee !== "__proto__" && ee !== "constructor" && ee !== "prototype" && x.hasOwnProperty(ee) && (F = p[ee], Q = x[ee], L && F !== null && typeof F == "object" && Q !== null && typeof Q == "object" && z(F, Q, !0), p[ee] = Q);
66
66
  return x.hasOwnProperty("toString") && (p.toString = x.toString), p;
67
67
  }, fe.createOptions = function(p, x) {
68
68
  var L = {};
@@ -81,15 +81,15 @@ function Fn() {
81
81
  }
82
82
  }
83
83
  p || (p = function(F) {
84
- for (var J = [], ee = 0, K = F.length; ee < K; ++ee)
85
- J[ee] = F[ee];
86
- return J;
84
+ for (var Q = [], ee = 0, K = F.length; ee < K; ++ee)
85
+ Q[ee] = F[ee];
86
+ return Q;
87
87
  }), fe.toArray = p;
88
- }(), de && (c(document, "addEventListener") ? X = function(p, x, L) {
88
+ }(), de && (c(document, "addEventListener") ? G = function(p, x, L) {
89
89
  p.addEventListener(x, L, !1);
90
- } : c(document, "attachEvent") ? X = function(p, x, L) {
90
+ } : c(document, "attachEvent") ? G = function(p, x, L) {
91
91
  p.attachEvent("on" + x, L);
92
- } : Ne("Document does not have required addEventListener or attachEvent method"), fe.addListener = X);
92
+ } : Ne("Document does not have required addEventListener or attachEvent method"), fe.addListener = G);
93
93
  var Be = [];
94
94
  function Ye(p) {
95
95
  return p.message || p.description || String(p);
@@ -101,14 +101,14 @@ function Fn() {
101
101
  var F = H(document);
102
102
  if (F && F.nodeName.toLowerCase() == "body")
103
103
  if (F && c(F, "createTextRange") && M(p = F.createTextRange()) && (L = !0), x || L) {
104
- var J;
104
+ var Q;
105
105
  for (var ee in q.initialized = !0, q.features = { implementsDomRange: x, implementsTextRange: L }, ie)
106
- (J = ie[ee]) instanceof re && J.init(J, q);
106
+ (Q = ie[ee]) instanceof oe && Q.init(Q, q);
107
107
  for (var K = 0, ue = Be.length; K < ue; ++K)
108
108
  try {
109
109
  Be[K](q);
110
- } catch (r) {
111
- "" + Ye(r), ye();
110
+ } catch (o) {
111
+ "" + Ye(o), ye();
112
112
  }
113
113
  } else
114
114
  Ne("Neither Range nor TextRange are available");
@@ -128,15 +128,15 @@ function Fn() {
128
128
  q.initialized ? p(q) : Be.push(p);
129
129
  };
130
130
  var V = [];
131
- function re(p, x, L) {
131
+ function oe(p, x, L) {
132
132
  this.name = p, this.dependencies = x, this.initialized = !1, this.supported = !1, this.initializer = L;
133
133
  }
134
- function Q(p, x, L) {
135
- var F = new re(p, x, function(J) {
136
- if (!J.initialized) {
137
- J.initialized = !0;
134
+ function Z(p, x, L) {
135
+ var F = new oe(p, x, function(Q) {
136
+ if (!Q.initialized) {
137
+ Q.initialized = !0;
138
138
  try {
139
- L(q, J), J.supported = !0;
139
+ L(q, Q), Q.supported = !0;
140
140
  } catch (ee) {
141
141
  Ye(ee), ye(), ee.stack && ye(ee.stack);
142
142
  }
@@ -152,9 +152,9 @@ function Fn() {
152
152
  p = p || window, Me();
153
153
  for (var x = 0, L = V.length; x < L; ++x)
154
154
  V[x](p);
155
- }, De(q, "createMissingNativeApi", "shim")), re.prototype = { init: function() {
156
- for (var p, x, L = this.dependencies || [], F = 0, J = L.length; F < J; ++F) {
157
- if (x = L[F], !((p = ie[x]) && p instanceof re))
155
+ }, De(q, "createMissingNativeApi", "shim")), oe.prototype = { init: function() {
156
+ for (var p, x, L = this.dependencies || [], F = 0, Q = L.length; F < Q; ++F) {
157
+ if (x = L[F], !((p = ie[x]) && p instanceof oe))
158
158
  throw new Error("required module '" + x + "' not found");
159
159
  if (p.init(), !p.supported)
160
160
  throw new Error("required module '" + x + "' not supported");
@@ -171,13 +171,13 @@ function Fn() {
171
171
  } }, q.createModule = function(p) {
172
172
  var x, L;
173
173
  arguments.length == 2 ? (x = arguments[1], L = []) : (x = arguments[2], L = arguments[1]);
174
- var F = Q(p, L, x);
174
+ var F = Z(p, L, x);
175
175
  q.initialized && q.supported && F.init();
176
176
  }, q.createCoreModule = function(p, x, L) {
177
- Q(p, x, L);
177
+ Z(p, x, L);
178
178
  }, q.RangePrototype = ae, q.rangePrototype = new ae(), q.selectionPrototype = new function() {
179
179
  }(), q.createCoreModule("DomUtil", [], function(p, x) {
180
- var L = "undefined", F = p.util, J = F.getBody;
180
+ var L = "undefined", F = p.util, Q = F.getBody;
181
181
  F.areHostMethods(document, ["createDocumentFragment", "createElement", "createTextNode"]) || x.fail("document missing a Node creation method"), F.isHostMethod(document, "getElementsByTagName") || x.fail("document missing getElementsByTagName method");
182
182
  var ee = document.createElement("div");
183
183
  F.areHostMethods(ee, ["insertBefore", "appendChild", "cloneNode"]) || x.fail("Incomplete Element implementation"), F.isHostProperty(ee, "innerHTML") || x.fail("Element is missing innerHTML property");
@@ -189,7 +189,7 @@ function Fn() {
189
189
  return !0;
190
190
  return !1;
191
191
  };
192
- function r(d) {
192
+ function o(d) {
193
193
  for (var b = 0; d = d.previousSibling; )
194
194
  ++b;
195
195
  return b;
@@ -264,7 +264,7 @@ function Fn() {
264
264
  return !0;
265
265
  }
266
266
  }
267
- function Z(d) {
267
+ function J(d) {
268
268
  if (!d)
269
269
  return "[No node]";
270
270
  if (U && Y(d))
@@ -273,7 +273,7 @@ function Fn() {
273
273
  return '"' + d.data + '"';
274
274
  if (d.nodeType == 1) {
275
275
  var b = d.id ? ' id="' + d.id + '"' : "";
276
- return "<" + d.nodeName + b + ">[index:" + r(d) + ",length:" + d.childNodes.length + "][" + (d.innerHTML || "[innerHTML not supported]").slice(0, 25) + "]";
276
+ return "<" + d.nodeName + b + ">[index:" + o(d) + ",length:" + d.childNodes.length + "][" + (d.innerHTML || "[innerHTML not supported]").slice(0, 25) + "]";
277
277
  }
278
278
  return d.nodeName;
279
279
  }
@@ -313,7 +313,7 @@ function Fn() {
313
313
  } }, te.prototype = { equals: function(d) {
314
314
  return !!d && this.node === d.node && this.offset == d.offset;
315
315
  }, inspect: function() {
316
- return "[DomPosition(" + Z(this.node) + ":" + this.offset + ")]";
316
+ return "[DomPosition(" + J(this.node) + ":" + this.offset + ")]";
317
317
  }, toString: function() {
318
318
  return this.inspect();
319
319
  } }, he.prototype = { INDEX_SIZE_ERR: 1, HIERARCHY_REQUEST_ERR: 3, WRONG_DOCUMENT_ERR: 4, NO_MODIFICATION_ALLOWED_ERR: 7, NOT_FOUND_ERR: 8, NOT_SUPPORTED_ERR: 9, INVALID_STATE_ERR: 11, INVALID_NODE_TYPE_ERR: 24 }, he.prototype.toString = function() {
@@ -324,7 +324,7 @@ function Fn() {
324
324
  }, parentElement: function(d) {
325
325
  var b = d.parentNode;
326
326
  return b.nodeType == 1 ? b : null;
327
- }, getNodeIndex: r, getNodeLength: function(d) {
327
+ }, getNodeIndex: o, getNodeLength: function(d) {
328
328
  switch (d.nodeType) {
329
329
  case 7:
330
330
  case 10:
@@ -346,7 +346,7 @@ function Fn() {
346
346
  var $ = d.cloneNode(!1);
347
347
  if ($.deleteData(0, b), d.deleteData(b, d.length - b), O($, d), B)
348
348
  for (var ne, ge = 0; ne = B[ge++]; )
349
- ne.node == d && ne.offset > b ? (ne.node = $, ne.offset -= b) : ne.node == d.parentNode && ne.offset > r(d) && ++ne.offset;
349
+ ne.node == d && ne.offset > b ? (ne.node = $, ne.offset -= b) : ne.node == d.parentNode && ne.offset > o(d) && ++ne.offset;
350
350
  return $;
351
351
  }, getDocument: P, getWindow: v, getIframeWindow: function(d) {
352
352
  if (typeof d.contentWindow != L)
@@ -354,7 +354,7 @@ function Fn() {
354
354
  if (typeof d.contentDocument != L)
355
355
  return d.contentDocument.defaultView;
356
356
  throw x.createError("getIframeWindow: No Window object found for iframe element");
357
- }, getIframeDocument: D, getBody: J, isWindow: W, getContentDocument: function(d, b, B) {
357
+ }, getIframeDocument: D, getBody: Q, isWindow: W, getContentDocument: function(d, b, B) {
358
358
  var $;
359
359
  if (d ? F.isHostProperty(d, "nodeType") ? $ = d.nodeType == 1 && d.tagName.toLowerCase() == "iframe" ? D(d) : P(d) : W(d) && ($ = d.document) : $ = document, !$)
360
360
  throw b.createError(B + "(): Parameter must be a Window object or DOM node");
@@ -368,9 +368,9 @@ function Fn() {
368
368
  if (d == B)
369
369
  return b === $ ? 0 : b < $ ? -1 : 1;
370
370
  if (ne = y(B, d, !0))
371
- return b <= r(ne) ? -1 : 1;
371
+ return b <= o(ne) ? -1 : 1;
372
372
  if (ne = y(d, B, !0))
373
- return r(ne) < $ ? -1 : 1;
373
+ return o(ne) < $ ? -1 : 1;
374
374
  if (!(ge = h(d, B)))
375
375
  throw new Error("comparePoints error: nodes have no common ancestor");
376
376
  if ((_e = d === ge ? ge : y(d, ge, !0)) === (Ce = B === ge ? ge : y(B, ge, !0)))
@@ -382,8 +382,8 @@ function Fn() {
382
382
  return 1;
383
383
  we = we.nextSibling;
384
384
  }
385
- }, isBrokenNode: Y, inspectNode: Z, getComputedStyleProperty: I, createTestElement: function(d, b, B) {
386
- var $ = J(d), ne = d.createElement("div");
385
+ }, isBrokenNode: Y, inspectNode: J, getComputedStyleProperty: I, createTestElement: function(d, b, B) {
386
+ var $ = Q(d), ne = d.createElement("div");
387
387
  ne.contentEditable = "" + !!B, b && (ne.innerHTML = b);
388
388
  var ge = $.firstChild;
389
389
  return ge ? $.insertBefore(ne, ge) : $.appendChild(ne), ne;
@@ -397,69 +397,69 @@ function Fn() {
397
397
  return new ce(d);
398
398
  }, DomPosition: te }, p.DOMException = he;
399
399
  }), q.createCoreModule("DomRange", ["DomUtil"], function(p, x) {
400
- var L = p.dom, F = p.util, J = L.DomPosition, ee = p.DOMException, K = L.isCharacterDataNode, ue = L.getNodeIndex, r = L.isOrIsAncestorOf, h = L.getDocument, u = L.comparePoints, y = L.splitDataNode, S = L.getClosestAncestorIn, O = L.getNodeLength, P = L.arrayContains, v = L.getRootContainer, D = p.features.crashyTextNodes, W = L.removeNode;
401
- function I(o, f) {
402
- return o.nodeType != 3 && (r(o, f.startContainer) || r(o, f.endContainer));
400
+ var L = p.dom, F = p.util, Q = L.DomPosition, ee = p.DOMException, K = L.isCharacterDataNode, ue = L.getNodeIndex, o = L.isOrIsAncestorOf, h = L.getDocument, u = L.comparePoints, y = L.splitDataNode, S = L.getClosestAncestorIn, O = L.getNodeLength, P = L.arrayContains, v = L.getRootContainer, D = p.features.crashyTextNodes, W = L.removeNode;
401
+ function I(r, f) {
402
+ return r.nodeType != 3 && (o(r, f.startContainer) || o(r, f.endContainer));
403
403
  }
404
- function U(o) {
405
- return o.document || h(o.startContainer);
404
+ function U(r) {
405
+ return r.document || h(r.startContainer);
406
406
  }
407
- function Y(o) {
408
- return new J(o.parentNode, ue(o));
407
+ function Y(r) {
408
+ return new Q(r.parentNode, ue(r));
409
409
  }
410
- function Z(o) {
411
- return new J(o.parentNode, ue(o) + 1);
410
+ function J(r) {
411
+ return new Q(r.parentNode, ue(r) + 1);
412
412
  }
413
- function ce(o, f, i) {
414
- var l = o.nodeType == 11 ? o.firstChild : o;
415
- return K(f) ? i == f.length ? L.insertAfter(o, f) : f.parentNode.insertBefore(o, i == 0 ? f : y(f, i)) : i >= f.childNodes.length ? f.appendChild(o) : f.insertBefore(o, f.childNodes[i]), l;
413
+ function ce(r, f, i) {
414
+ var l = r.nodeType == 11 ? r.firstChild : r;
415
+ return K(f) ? i == f.length ? L.insertAfter(r, f) : f.parentNode.insertBefore(r, i == 0 ? f : y(f, i)) : i >= f.childNodes.length ? f.appendChild(r) : f.insertBefore(r, f.childNodes[i]), l;
416
416
  }
417
- function te(o, f, i) {
418
- if (pe(o), pe(f), U(f) != U(o))
417
+ function te(r, f, i) {
418
+ if (pe(r), pe(f), U(f) != U(r))
419
419
  throw new ee("WRONG_DOCUMENT_ERR");
420
- var l = u(o.startContainer, o.startOffset, f.endContainer, f.endOffset), m = u(o.endContainer, o.endOffset, f.startContainer, f.startOffset);
420
+ var l = u(r.startContainer, r.startOffset, f.endContainer, f.endOffset), m = u(r.endContainer, r.endOffset, f.startContainer, f.startOffset);
421
421
  return i ? l <= 0 && m >= 0 : l < 0 && m > 0;
422
422
  }
423
- function he(o) {
424
- for (var f, i, l, m = U(o.range).createDocumentFragment(); i = o.next(); ) {
425
- if (f = o.isPartiallySelectedSubtree(), i = i.cloneNode(!f), f && (l = o.getSubtreeIterator(), i.appendChild(he(l)), l.detach()), i.nodeType == 10)
423
+ function he(r) {
424
+ for (var f, i, l, m = U(r.range).createDocumentFragment(); i = r.next(); ) {
425
+ if (f = r.isPartiallySelectedSubtree(), i = i.cloneNode(!f), f && (l = r.getSubtreeIterator(), i.appendChild(he(l)), l.detach()), i.nodeType == 10)
426
426
  throw new ee("HIERARCHY_REQUEST_ERR");
427
427
  m.appendChild(i);
428
428
  }
429
429
  return m;
430
430
  }
431
- function d(o, f, i) {
431
+ function d(r, f, i) {
432
432
  var l, m, k, w;
433
- for (i = i || { stop: !1 }; k = o.next(); )
434
- if (o.isPartiallySelectedSubtree()) {
433
+ for (i = i || { stop: !1 }; k = r.next(); )
434
+ if (r.isPartiallySelectedSubtree()) {
435
435
  if (f(k) === !1)
436
436
  return void (i.stop = !0);
437
- if (d(w = o.getSubtreeIterator(), f, i), w.detach(), i.stop)
437
+ if (d(w = r.getSubtreeIterator(), f, i), w.detach(), i.stop)
438
438
  return;
439
439
  } else
440
440
  for (l = L.createIterator(k); m = l.next(); )
441
441
  if (f(m) === !1)
442
442
  return void (i.stop = !0);
443
443
  }
444
- function b(o) {
445
- for (var f; o.next(); )
446
- o.isPartiallySelectedSubtree() ? (b(f = o.getSubtreeIterator()), f.detach()) : o.remove();
444
+ function b(r) {
445
+ for (var f; r.next(); )
446
+ r.isPartiallySelectedSubtree() ? (b(f = r.getSubtreeIterator()), f.detach()) : r.remove();
447
447
  }
448
- function B(o) {
449
- for (var f, i, l = U(o.range).createDocumentFragment(); f = o.next(); ) {
450
- if (o.isPartiallySelectedSubtree() ? (f = f.cloneNode(!1), i = o.getSubtreeIterator(), f.appendChild(B(i)), i.detach()) : o.remove(), f.nodeType == 10)
448
+ function B(r) {
449
+ for (var f, i, l = U(r.range).createDocumentFragment(); f = r.next(); ) {
450
+ if (r.isPartiallySelectedSubtree() ? (f = f.cloneNode(!1), i = r.getSubtreeIterator(), f.appendChild(B(i)), i.detach()) : r.remove(), f.nodeType == 10)
451
451
  throw new ee("HIERARCHY_REQUEST_ERR");
452
452
  l.appendChild(f);
453
453
  }
454
454
  return l;
455
455
  }
456
- function $(o) {
457
- return "[" + (o.getName === void 0 ? "Range" : o.getName()) + "(" + L.inspectNode(o.startContainer) + ":" + o.startOffset + ", " + L.inspectNode(o.endContainer) + ":" + o.endOffset + ")]";
456
+ function $(r) {
457
+ return "[" + (r.getName === void 0 ? "Range" : r.getName()) + "(" + L.inspectNode(r.startContainer) + ":" + r.startOffset + ", " + L.inspectNode(r.endContainer) + ":" + r.endOffset + ")]";
458
458
  }
459
- function ne(o, f) {
460
- if (this.range = o, this.clonePartiallySelectedTextNodes = f, !o.collapsed) {
461
- this.sc = o.startContainer, this.so = o.startOffset, this.ec = o.endContainer, this.eo = o.endOffset;
462
- var i = o.commonAncestorContainer;
459
+ function ne(r, f) {
460
+ if (this.range = r, this.clonePartiallySelectedTextNodes = f, !r.collapsed) {
461
+ this.sc = r.startContainer, this.so = r.startOffset, this.ec = r.endContainer, this.eo = r.endOffset;
462
+ var i = r.commonAncestorContainer;
463
463
  this.sc === this.ec && K(this.sc) ? (this.isSingleCharacterDataNode = !0, this._first = this._last = this._next = this.sc) : (this._first = this._next = this.sc !== i || K(this.sc) ? S(this.sc, i, !0) : this.sc.childNodes[this.so], this._last = this.ec !== i || K(this.ec) ? S(this.ec, i, !0) : this.ec.childNodes[this.eo - 1]);
464
464
  }
465
465
  }
@@ -468,157 +468,157 @@ function Fn() {
468
468
  }, hasNext: function() {
469
469
  return !!this._next;
470
470
  }, next: function() {
471
- var o = this._current = this._next;
472
- return o && (this._next = o !== this._last ? o.nextSibling : null, K(o) && this.clonePartiallySelectedTextNodes && (o === this.ec && (o = o.cloneNode(!0)).deleteData(this.eo, o.length - this.eo), this._current === this.sc && (o = o.cloneNode(!0)).deleteData(0, this.so))), o;
471
+ var r = this._current = this._next;
472
+ return r && (this._next = r !== this._last ? r.nextSibling : null, K(r) && this.clonePartiallySelectedTextNodes && (r === this.ec && (r = r.cloneNode(!0)).deleteData(this.eo, r.length - this.eo), this._current === this.sc && (r = r.cloneNode(!0)).deleteData(0, this.so))), r;
473
473
  }, remove: function() {
474
- var o, f, i = this._current;
475
- !K(i) || i !== this.sc && i !== this.ec ? i.parentNode && W(i) : (o = i === this.sc ? this.so : 0) != (f = i === this.ec ? this.eo : i.length) && i.deleteData(o, f - o);
474
+ var r, f, i = this._current;
475
+ !K(i) || i !== this.sc && i !== this.ec ? i.parentNode && W(i) : (r = i === this.sc ? this.so : 0) != (f = i === this.ec ? this.eo : i.length) && i.deleteData(r, f - r);
476
476
  }, isPartiallySelectedSubtree: function() {
477
477
  return I(this._current, this.range);
478
478
  }, getSubtreeIterator: function() {
479
- var o;
479
+ var r;
480
480
  if (this.isSingleCharacterDataNode)
481
- (o = this.range.cloneRange()).collapse(!1);
481
+ (r = this.range.cloneRange()).collapse(!1);
482
482
  else {
483
- o = new Ve(U(this.range));
483
+ r = new Ve(U(this.range));
484
484
  var f = this._current, i = f, l = 0, m = f, k = O(f);
485
- r(f, this.sc) && (i = this.sc, l = this.so), r(f, this.ec) && (m = this.ec, k = this.eo), Ze(o, i, l, m, k);
485
+ o(f, this.sc) && (i = this.sc, l = this.so), o(f, this.ec) && (m = this.ec, k = this.eo), Je(r, i, l, m, k);
486
486
  }
487
- return new ne(o, this.clonePartiallySelectedTextNodes);
487
+ return new ne(r, this.clonePartiallySelectedTextNodes);
488
488
  }, detach: function() {
489
489
  this.range = this._current = this._next = this._first = this._last = this.sc = this.so = this.ec = this.eo = null;
490
490
  } };
491
491
  var ge = [1, 3, 4, 5, 7, 8, 10], _e = [2, 9, 11], Ce = [1, 3, 4, 5, 7, 8, 10, 11], we = [1, 3, 4, 5, 7, 8];
492
- function Re(o) {
492
+ function Re(r) {
493
493
  return function(f, i) {
494
494
  for (var l, m = i ? f : f.parentNode; m; ) {
495
- if (l = m.nodeType, P(o, l))
495
+ if (l = m.nodeType, P(r, l))
496
496
  return m;
497
497
  m = m.parentNode;
498
498
  }
499
499
  return null;
500
500
  };
501
501
  }
502
- var Oe = Re([9, 11]), Ge = Re([5, 6, 10, 12]), Pe = Re([6, 10, 12]), nt = Re([1]);
503
- function be(o, f) {
504
- if (Pe(o, f))
502
+ var Oe = Re([9, 11]), Xe = Re([5, 6, 10, 12]), Pe = Re([6, 10, 12]), it = Re([1]);
503
+ function be(r, f) {
504
+ if (Pe(r, f))
505
505
  throw new ee("INVALID_NODE_TYPE_ERR");
506
506
  }
507
- function Te(o, f) {
508
- if (!P(f, o.nodeType))
507
+ function Te(r, f) {
508
+ if (!P(f, r.nodeType))
509
509
  throw new ee("INVALID_NODE_TYPE_ERR");
510
510
  }
511
- function je(o, f) {
512
- if (f < 0 || f > (K(o) ? o.length : o.childNodes.length))
511
+ function je(r, f) {
512
+ if (f < 0 || f > (K(r) ? r.length : r.childNodes.length))
513
513
  throw new ee("INDEX_SIZE_ERR");
514
514
  }
515
- function it(o, f) {
516
- if (Oe(o, !0) !== Oe(f, !0))
515
+ function st(r, f) {
516
+ if (Oe(r, !0) !== Oe(f, !0))
517
517
  throw new ee("WRONG_DOCUMENT_ERR");
518
518
  }
519
- function ze(o) {
520
- if (Ge(o, !0))
519
+ function ze(r) {
520
+ if (Xe(r, !0))
521
521
  throw new ee("NO_MODIFICATION_ALLOWED_ERR");
522
522
  }
523
- function ft(o, f) {
524
- if (!o)
523
+ function ft(r, f) {
524
+ if (!r)
525
525
  throw new ee(f);
526
526
  }
527
- function Xe(o, f) {
528
- return f <= (K(o) ? o.length : o.childNodes.length);
527
+ function Ge(r, f) {
528
+ return f <= (K(r) ? r.length : r.childNodes.length);
529
529
  }
530
- function mt(o) {
531
- return !!o.startContainer && !!o.endContainer && !(D && (L.isBrokenNode(o.startContainer) || L.isBrokenNode(o.endContainer))) && v(o.startContainer) == v(o.endContainer) && Xe(o.startContainer, o.startOffset) && Xe(o.endContainer, o.endOffset);
530
+ function mt(r) {
531
+ return !!r.startContainer && !!r.endContainer && !(D && (L.isBrokenNode(r.startContainer) || L.isBrokenNode(r.endContainer))) && v(r.startContainer) == v(r.endContainer) && Ge(r.startContainer, r.startOffset) && Ge(r.endContainer, r.endOffset);
532
532
  }
533
- function pe(o) {
534
- if (!mt(o))
535
- throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: (" + o.inspect() + ")");
533
+ function pe(r) {
534
+ if (!mt(r))
535
+ throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: (" + r.inspect() + ")");
536
536
  }
537
537
  var vt = document.createElement("style"), qe = !1;
538
538
  try {
539
539
  vt.innerHTML = "<b>x</b>", qe = vt.firstChild.nodeType == 3;
540
- } catch (o) {
540
+ } catch (r) {
541
541
  }
542
542
  p.features.htmlParsingConforms = qe;
543
- var Ct = qe ? function(o) {
543
+ var Ct = qe ? function(r) {
544
544
  var f = this.startContainer, i = h(f);
545
545
  if (!f)
546
546
  throw new ee("INVALID_STATE_ERR");
547
547
  var l = null;
548
- return f.nodeType == 1 ? l = f : K(f) && (l = L.parentElement(f)), (l = l === null || l.nodeName == "HTML" && L.isHtmlNamespace(h(l).documentElement) && L.isHtmlNamespace(l) ? i.createElement("body") : l.cloneNode(!1)).innerHTML = o, L.fragmentFromNodeChildren(l);
549
- } : function(o) {
548
+ return f.nodeType == 1 ? l = f : K(f) && (l = L.parentElement(f)), (l = l === null || l.nodeName == "HTML" && L.isHtmlNamespace(h(l).documentElement) && L.isHtmlNamespace(l) ? i.createElement("body") : l.cloneNode(!1)).innerHTML = r, L.fragmentFromNodeChildren(l);
549
+ } : function(r) {
550
550
  var f = U(this).createElement("body");
551
- return f.innerHTML = o, L.fragmentFromNodeChildren(f);
551
+ return f.innerHTML = r, L.fragmentFromNodeChildren(f);
552
552
  };
553
- function dt(o, f) {
554
- pe(o);
555
- var i = o.startContainer, l = o.startOffset, m = o.endContainer, k = o.endOffset, w = i === m;
556
- K(m) && k > 0 && k < m.length && y(m, k, f), K(i) && l > 0 && l < i.length && (i = y(i, l, f), w ? (k -= l, m = i) : m == i.parentNode && k >= ue(i) && k++, l = 0), o.setStartAndEnd(i, l, m, k);
553
+ function dt(r, f) {
554
+ pe(r);
555
+ var i = r.startContainer, l = r.startOffset, m = r.endContainer, k = r.endOffset, w = i === m;
556
+ K(m) && k > 0 && k < m.length && y(m, k, f), K(i) && l > 0 && l < i.length && (i = y(i, l, f), w ? (k -= l, m = i) : m == i.parentNode && k >= ue(i) && k++, l = 0), r.setStartAndEnd(i, l, m, k);
557
557
  }
558
- function st(o) {
559
- pe(o);
560
- var f = o.commonAncestorContainer.parentNode.cloneNode(!1);
561
- return f.appendChild(o.cloneContents()), f.innerHTML;
558
+ function ot(r) {
559
+ pe(r);
560
+ var f = r.commonAncestorContainer.parentNode.cloneNode(!1);
561
+ return f.appendChild(r.cloneContents()), f.innerHTML;
562
562
  }
563
563
  var se = ["startContainer", "startOffset", "endContainer", "endOffset", "collapsed", "commonAncestorContainer"];
564
- function wt(o) {
565
- o.START_TO_START = 0, o.START_TO_END = 1, o.END_TO_END = 2, o.END_TO_START = 3, o.NODE_BEFORE = 0, o.NODE_AFTER = 1, o.NODE_BEFORE_AND_AFTER = 2, o.NODE_INSIDE = 3;
564
+ function wt(r) {
565
+ r.START_TO_START = 0, r.START_TO_END = 1, r.END_TO_END = 2, r.END_TO_START = 3, r.NODE_BEFORE = 0, r.NODE_AFTER = 1, r.NODE_BEFORE_AND_AFTER = 2, r.NODE_INSIDE = 3;
566
566
  }
567
- function yt(o) {
568
- wt(o), wt(o.prototype);
567
+ function yt(r) {
568
+ wt(r), wt(r.prototype);
569
569
  }
570
- function Qe(o, f) {
570
+ function Ze(r, f) {
571
571
  return function() {
572
572
  pe(this);
573
573
  var i, l = this.startContainer, m = this.startOffset, k = this.commonAncestorContainer, w = new ne(this, !0);
574
- l !== k && (l = (i = Z(S(l, k, !0))).node, m = i.offset), d(w, ze), w.reset();
575
- var R = o(w);
574
+ l !== k && (l = (i = J(S(l, k, !0))).node, m = i.offset), d(w, ze), w.reset();
575
+ var R = r(w);
576
576
  return w.detach(), f(this, l, m, l, m), R;
577
577
  };
578
578
  }
579
- function kt(o, f) {
579
+ function kt(r, f) {
580
580
  function i(w, R) {
581
- return function(G) {
582
- Te(G, ge), Te(v(G), _e);
583
- var j = (w ? Y : Z)(G);
581
+ return function(X) {
582
+ Te(X, ge), Te(v(X), _e);
583
+ var j = (w ? Y : J)(X);
584
584
  (R ? l : m)(this, j.node, j.offset);
585
585
  };
586
586
  }
587
- function l(w, R, G) {
588
- var j = w.endContainer, oe = w.endOffset;
589
- R === w.startContainer && G === w.startOffset || (v(R) == v(j) && u(R, G, j, oe) != 1 || (j = R, oe = G), f(w, R, G, j, oe));
587
+ function l(w, R, X) {
588
+ var j = w.endContainer, re = w.endOffset;
589
+ R === w.startContainer && X === w.startOffset || (v(R) == v(j) && u(R, X, j, re) != 1 || (j = R, re = X), f(w, R, X, j, re));
590
590
  }
591
- function m(w, R, G) {
592
- var j = w.startContainer, oe = w.startOffset;
593
- R === w.endContainer && G === w.endOffset || (v(R) == v(j) && u(R, G, j, oe) != -1 || (j = R, oe = G), f(w, j, oe, R, G));
591
+ function m(w, R, X) {
592
+ var j = w.startContainer, re = w.startOffset;
593
+ R === w.endContainer && X === w.endOffset || (v(R) == v(j) && u(R, X, j, re) != -1 || (j = R, re = X), f(w, j, re, R, X));
594
594
  }
595
595
  var k = function() {
596
596
  };
597
- k.prototype = p.rangePrototype, o.prototype = new k(), F.extend(o.prototype, { setStart: function(w, R) {
597
+ k.prototype = p.rangePrototype, r.prototype = new k(), F.extend(r.prototype, { setStart: function(w, R) {
598
598
  be(w, !0), je(w, R), l(this, w, R);
599
599
  }, setEnd: function(w, R) {
600
600
  be(w, !0), je(w, R), m(this, w, R);
601
601
  }, setStartAndEnd: function() {
602
- var w = arguments, R = w[0], G = w[1], j = R, oe = G;
602
+ var w = arguments, R = w[0], X = w[1], j = R, re = X;
603
603
  switch (w.length) {
604
604
  case 3:
605
- oe = w[2];
605
+ re = w[2];
606
606
  break;
607
607
  case 4:
608
- j = w[2], oe = w[3];
608
+ j = w[2], re = w[3];
609
609
  }
610
- be(R, !0), je(R, G), be(j, !0), je(j, oe), f(this, R, G, j, oe);
611
- }, setBoundary: function(w, R, G) {
612
- this["set" + (G ? "Start" : "End")](w, R);
610
+ be(R, !0), je(R, X), be(j, !0), je(j, re), f(this, R, X, j, re);
611
+ }, setBoundary: function(w, R, X) {
612
+ this["set" + (X ? "Start" : "End")](w, R);
613
613
  }, setStartBefore: i(!0, !0), setStartAfter: i(!1, !0), setEndBefore: i(!0, !1), setEndAfter: i(!1, !1), collapse: function(w) {
614
614
  pe(this), w ? f(this, this.startContainer, this.startOffset, this.startContainer, this.startOffset) : f(this, this.endContainer, this.endOffset, this.endContainer, this.endOffset);
615
615
  }, selectNodeContents: function(w) {
616
616
  be(w, !0), f(this, w, 0, w, O(w));
617
617
  }, selectNode: function(w) {
618
618
  be(w, !1), Te(w, ge);
619
- var R = Y(w), G = Z(w);
620
- f(this, R.node, R.offset, G.node, G.offset);
621
- }, extractContents: Qe(B, f), deleteContents: Qe(b, f), canSurroundContents: function() {
619
+ var R = Y(w), X = J(w);
620
+ f(this, R.node, R.offset, X.node, X.offset);
621
+ }, extractContents: Ze(B, f), deleteContents: Ze(b, f), canSurroundContents: function() {
622
622
  pe(this), ze(this.startContainer), ze(this.endContainer);
623
623
  var w = new ne(this, !0), R = w._first && I(w._first, this) || w._last && I(w._last, this);
624
624
  return w.detach(), !R;
@@ -628,202 +628,202 @@ function Fn() {
628
628
  dt(this, w);
629
629
  }, normalizeBoundaries: function() {
630
630
  pe(this);
631
- var w, R = this.startContainer, G = this.startOffset, j = this.endContainer, oe = this.endOffset, Je = function(Ee) {
631
+ var w, R = this.startContainer, X = this.startOffset, j = this.endContainer, re = this.endOffset, Qe = function(Ee) {
632
632
  var We = Ee.nextSibling;
633
- We && We.nodeType == Ee.nodeType && (j = Ee, oe = Ee.length, Ee.appendData(We.data), W(We));
633
+ We && We.nodeType == Ee.nodeType && (j = Ee, re = Ee.length, Ee.appendData(We.data), W(We));
634
634
  }, ht = function(Ee) {
635
635
  var We = Ee.previousSibling;
636
636
  if (We && We.nodeType == Ee.nodeType) {
637
637
  R = Ee;
638
638
  var xn = Ee.length;
639
- if (G = We.length, Ee.insertData(0, We.data), W(We), R == j)
640
- oe += G, j = R;
639
+ if (X = We.length, Ee.insertData(0, We.data), W(We), R == j)
640
+ re += X, j = R;
641
641
  else if (j == Ee.parentNode) {
642
642
  var Kt = ue(Ee);
643
- oe == Kt ? (j = Ee, oe = xn) : oe > Kt && oe--;
643
+ re == Kt ? (j = Ee, re = xn) : re > Kt && re--;
644
644
  }
645
645
  }
646
- }, _t = !0;
646
+ }, Mt = !0;
647
647
  if (K(j))
648
- oe == j.length ? Je(j) : oe == 0 && (w = j.previousSibling) && w.nodeType == j.nodeType && (oe = w.length, R == j && (_t = !1), w.appendData(j.data), W(j), j = w);
648
+ re == j.length ? Qe(j) : re == 0 && (w = j.previousSibling) && w.nodeType == j.nodeType && (re = w.length, R == j && (Mt = !1), w.appendData(j.data), W(j), j = w);
649
649
  else {
650
- if (oe > 0) {
651
- var Mt = j.childNodes[oe - 1];
652
- Mt && K(Mt) && Je(Mt);
650
+ if (re > 0) {
651
+ var Ot = j.childNodes[re - 1];
652
+ Ot && K(Ot) && Qe(Ot);
653
653
  }
654
- _t = !this.collapsed;
654
+ Mt = !this.collapsed;
655
655
  }
656
- if (_t) {
656
+ if (Mt) {
657
657
  if (K(R))
658
- G == 0 ? ht(R) : G == R.length && (w = R.nextSibling) && w.nodeType == R.nodeType && (j == w && (j = R, oe += R.length), R.appendData(w.data), W(w));
659
- else if (G < R.childNodes.length) {
660
- var Ot = R.childNodes[G];
661
- Ot && K(Ot) && ht(Ot);
658
+ X == 0 ? ht(R) : X == R.length && (w = R.nextSibling) && w.nodeType == R.nodeType && (j == w && (j = R, re += R.length), R.appendData(w.data), W(w));
659
+ else if (X < R.childNodes.length) {
660
+ var It = R.childNodes[X];
661
+ It && K(It) && ht(It);
662
662
  }
663
663
  } else
664
- R = j, G = oe;
665
- f(this, R, G, j, oe);
664
+ R = j, X = re;
665
+ f(this, R, X, j, re);
666
666
  }, collapseToPoint: function(w, R) {
667
667
  be(w, !0), je(w, R), this.setStartAndEnd(w, R);
668
668
  }, parentElement: function() {
669
- return pe(this), this.commonAncestorContainer ? nt(this.commonAncestorContainer, !0) : null;
670
- } }), yt(o);
669
+ return pe(this), this.commonAncestorContainer ? it(this.commonAncestorContainer, !0) : null;
670
+ } }), yt(r);
671
671
  }
672
- function Ze(o, f, i, l, m) {
673
- o.startContainer = f, o.startOffset = i, o.endContainer = l, o.endOffset = m, o.document = L.getDocument(f), function(k) {
672
+ function Je(r, f, i, l, m) {
673
+ r.startContainer = f, r.startOffset = i, r.endContainer = l, r.endOffset = m, r.document = L.getDocument(f), function(k) {
674
674
  k.collapsed = k.startContainer === k.endContainer && k.startOffset === k.endOffset, k.commonAncestorContainer = k.collapsed ? k.startContainer : L.getCommonAncestor(k.startContainer, k.endContainer);
675
- }(o);
675
+ }(r);
676
676
  }
677
- function Ve(o) {
678
- Ze(this, o, 0, o, 0);
677
+ function Ve(r) {
678
+ Je(this, r, 0, r, 0);
679
679
  }
680
- F.extend(p.rangePrototype, { compareBoundaryPoints: function(o, f) {
680
+ F.extend(p.rangePrototype, { compareBoundaryPoints: function(r, f) {
681
681
  var i, l, m, k;
682
- pe(this), it(this.startContainer, f.startContainer);
683
- var w = o == 3 || o == 0 ? "start" : "end", R = o == 1 || o == 0 ? "start" : "end";
682
+ pe(this), st(this.startContainer, f.startContainer);
683
+ var w = r == 3 || r == 0 ? "start" : "end", R = r == 1 || r == 0 ? "start" : "end";
684
684
  return i = this[w + "Container"], l = this[w + "Offset"], m = f[R + "Container"], k = f[R + "Offset"], u(i, l, m, k);
685
- }, insertNode: function(o) {
686
- if (pe(this), Te(o, Ce), ze(this.startContainer), r(o, this.startContainer))
685
+ }, insertNode: function(r) {
686
+ if (pe(this), Te(r, Ce), ze(this.startContainer), o(r, this.startContainer))
687
687
  throw new ee("HIERARCHY_REQUEST_ERR");
688
- var f = ce(o, this.startContainer, this.startOffset);
688
+ var f = ce(r, this.startContainer, this.startOffset);
689
689
  this.setStartBefore(f);
690
690
  }, cloneContents: function() {
691
- var o, f;
691
+ var r, f;
692
692
  if (pe(this), this.collapsed)
693
693
  return U(this).createDocumentFragment();
694
694
  if (this.startContainer === this.endContainer && K(this.startContainer))
695
- return (o = this.startContainer.cloneNode(!0)).data = o.data.slice(this.startOffset, this.endOffset), (f = U(this).createDocumentFragment()).appendChild(o), f;
695
+ return (r = this.startContainer.cloneNode(!0)).data = r.data.slice(this.startOffset, this.endOffset), (f = U(this).createDocumentFragment()).appendChild(r), f;
696
696
  var i = new ne(this, !0);
697
- return o = he(i), i.detach(), o;
697
+ return r = he(i), i.detach(), r;
698
698
  }, canSurroundContents: function() {
699
699
  pe(this), ze(this.startContainer), ze(this.endContainer);
700
- var o = new ne(this, !0), f = o._first && I(o._first, this) || o._last && I(o._last, this);
701
- return o.detach(), !f;
702
- }, surroundContents: function(o) {
703
- if (Te(o, we), !this.canSurroundContents())
700
+ var r = new ne(this, !0), f = r._first && I(r._first, this) || r._last && I(r._last, this);
701
+ return r.detach(), !f;
702
+ }, surroundContents: function(r) {
703
+ if (Te(r, we), !this.canSurroundContents())
704
704
  throw new ee("INVALID_STATE_ERR");
705
705
  var f = this.extractContents();
706
- if (o.hasChildNodes())
707
- for (; o.lastChild; )
708
- o.removeChild(o.lastChild);
709
- ce(o, this.startContainer, this.startOffset), o.appendChild(f), this.selectNode(o);
706
+ if (r.hasChildNodes())
707
+ for (; r.lastChild; )
708
+ r.removeChild(r.lastChild);
709
+ ce(r, this.startContainer, this.startOffset), r.appendChild(f), this.selectNode(r);
710
710
  }, cloneRange: function() {
711
711
  pe(this);
712
- for (var o, f = new Ve(U(this)), i = se.length; i--; )
713
- f[o = se[i]] = this[o];
712
+ for (var r, f = new Ve(U(this)), i = se.length; i--; )
713
+ f[r = se[i]] = this[r];
714
714
  return f;
715
715
  }, toString: function() {
716
716
  pe(this);
717
- var o = this.startContainer;
718
- if (o === this.endContainer && K(o))
719
- return o.nodeType == 3 || o.nodeType == 4 ? o.data.slice(this.startOffset, this.endOffset) : "";
717
+ var r = this.startContainer;
718
+ if (r === this.endContainer && K(r))
719
+ return r.nodeType == 3 || r.nodeType == 4 ? r.data.slice(this.startOffset, this.endOffset) : "";
720
720
  var f = [], i = new ne(this, !0);
721
721
  return d(i, function(l) {
722
722
  l.nodeType != 3 && l.nodeType != 4 || f.push(l.data);
723
723
  }), i.detach(), f.join("");
724
- }, compareNode: function(o) {
724
+ }, compareNode: function(r) {
725
725
  pe(this);
726
- var f = o.parentNode, i = ue(o);
726
+ var f = r.parentNode, i = ue(r);
727
727
  if (!f)
728
728
  throw new ee("NOT_FOUND_ERR");
729
729
  var l = this.comparePoint(f, i), m = this.comparePoint(f, i + 1);
730
730
  return l < 0 ? m > 0 ? 2 : 0 : m > 0 ? 1 : 3;
731
- }, comparePoint: function(o, f) {
732
- return pe(this), ft(o, "HIERARCHY_REQUEST_ERR"), it(o, this.startContainer), u(o, f, this.startContainer, this.startOffset) < 0 ? -1 : u(o, f, this.endContainer, this.endOffset) > 0 ? 1 : 0;
731
+ }, comparePoint: function(r, f) {
732
+ return pe(this), ft(r, "HIERARCHY_REQUEST_ERR"), st(r, this.startContainer), u(r, f, this.startContainer, this.startOffset) < 0 ? -1 : u(r, f, this.endContainer, this.endOffset) > 0 ? 1 : 0;
733
733
  }, createContextualFragment: Ct, toHtml: function() {
734
- return st(this);
735
- }, intersectsNode: function(o, f) {
736
- if (pe(this), v(o) != v(this.startContainer))
734
+ return ot(this);
735
+ }, intersectsNode: function(r, f) {
736
+ if (pe(this), v(r) != v(this.startContainer))
737
737
  return !1;
738
- var i = o.parentNode, l = ue(o);
738
+ var i = r.parentNode, l = ue(r);
739
739
  if (!i)
740
740
  return !0;
741
741
  var m = u(i, l, this.endContainer, this.endOffset), k = u(i, l + 1, this.startContainer, this.startOffset);
742
742
  return f ? m <= 0 && k >= 0 : m < 0 && k > 0;
743
- }, isPointInRange: function(o, f) {
744
- return pe(this), ft(o, "HIERARCHY_REQUEST_ERR"), it(o, this.startContainer), u(o, f, this.startContainer, this.startOffset) >= 0 && u(o, f, this.endContainer, this.endOffset) <= 0;
745
- }, intersectsRange: function(o) {
746
- return te(this, o, !1);
747
- }, intersectsOrTouchesRange: function(o) {
748
- return te(this, o, !0);
749
- }, intersection: function(o) {
750
- if (this.intersectsRange(o)) {
751
- var f = u(this.startContainer, this.startOffset, o.startContainer, o.startOffset), i = u(this.endContainer, this.endOffset, o.endContainer, o.endOffset), l = this.cloneRange();
752
- return f == -1 && l.setStart(o.startContainer, o.startOffset), i == 1 && l.setEnd(o.endContainer, o.endOffset), l;
743
+ }, isPointInRange: function(r, f) {
744
+ return pe(this), ft(r, "HIERARCHY_REQUEST_ERR"), st(r, this.startContainer), u(r, f, this.startContainer, this.startOffset) >= 0 && u(r, f, this.endContainer, this.endOffset) <= 0;
745
+ }, intersectsRange: function(r) {
746
+ return te(this, r, !1);
747
+ }, intersectsOrTouchesRange: function(r) {
748
+ return te(this, r, !0);
749
+ }, intersection: function(r) {
750
+ if (this.intersectsRange(r)) {
751
+ var f = u(this.startContainer, this.startOffset, r.startContainer, r.startOffset), i = u(this.endContainer, this.endOffset, r.endContainer, r.endOffset), l = this.cloneRange();
752
+ return f == -1 && l.setStart(r.startContainer, r.startOffset), i == 1 && l.setEnd(r.endContainer, r.endOffset), l;
753
753
  }
754
754
  return null;
755
- }, union: function(o) {
756
- if (this.intersectsOrTouchesRange(o)) {
755
+ }, union: function(r) {
756
+ if (this.intersectsOrTouchesRange(r)) {
757
757
  var f = this.cloneRange();
758
- return u(o.startContainer, o.startOffset, this.startContainer, this.startOffset) == -1 && f.setStart(o.startContainer, o.startOffset), u(o.endContainer, o.endOffset, this.endContainer, this.endOffset) == 1 && f.setEnd(o.endContainer, o.endOffset), f;
758
+ return u(r.startContainer, r.startOffset, this.startContainer, this.startOffset) == -1 && f.setStart(r.startContainer, r.startOffset), u(r.endContainer, r.endOffset, this.endContainer, this.endOffset) == 1 && f.setEnd(r.endContainer, r.endOffset), f;
759
759
  }
760
760
  throw new ee("Ranges do not intersect");
761
- }, containsNode: function(o, f) {
762
- return f ? this.intersectsNode(o, !1) : this.compareNode(o) == 3;
763
- }, containsNodeContents: function(o) {
764
- return this.comparePoint(o, 0) >= 0 && this.comparePoint(o, O(o)) <= 0;
765
- }, containsRange: function(o) {
766
- var f = this.intersection(o);
767
- return f !== null && o.equals(f);
768
- }, containsNodeText: function(o) {
761
+ }, containsNode: function(r, f) {
762
+ return f ? this.intersectsNode(r, !1) : this.compareNode(r) == 3;
763
+ }, containsNodeContents: function(r) {
764
+ return this.comparePoint(r, 0) >= 0 && this.comparePoint(r, O(r)) <= 0;
765
+ }, containsRange: function(r) {
766
+ var f = this.intersection(r);
767
+ return f !== null && r.equals(f);
768
+ }, containsNodeText: function(r) {
769
769
  var f = this.cloneRange();
770
- f.selectNode(o);
770
+ f.selectNode(r);
771
771
  var i = f.getNodes([3]);
772
772
  if (i.length > 0) {
773
773
  f.setStart(i[0], 0);
774
774
  var l = i.pop();
775
775
  return f.setEnd(l, l.length), this.containsRange(f);
776
776
  }
777
- return this.containsNodeContents(o);
778
- }, getNodes: function(o, f) {
777
+ return this.containsNodeContents(r);
778
+ }, getNodes: function(r, f) {
779
779
  return pe(this), function(i, l, m) {
780
780
  var k, w = !(!l || !l.length), R = !!m;
781
781
  w && (k = new RegExp("^(" + l.join("|") + ")$"));
782
- var G = [];
782
+ var X = [];
783
783
  return d(new ne(i, !1), function(j) {
784
784
  if ((!w || k.test(j.nodeType)) && (!R || m(j))) {
785
- var oe = i.startContainer;
786
- if (j != oe || !K(oe) || i.startOffset != oe.length) {
787
- var Je = i.endContainer;
788
- j == Je && K(Je) && i.endOffset == 0 || G.push(j);
785
+ var re = i.startContainer;
786
+ if (j != re || !K(re) || i.startOffset != re.length) {
787
+ var Qe = i.endContainer;
788
+ j == Qe && K(Qe) && i.endOffset == 0 || X.push(j);
789
789
  }
790
790
  }
791
- }), G;
792
- }(this, o, f);
791
+ }), X;
792
+ }(this, r, f);
793
793
  }, getDocument: function() {
794
794
  return U(this);
795
- }, collapseBefore: function(o) {
796
- this.setEndBefore(o), this.collapse(!1);
797
- }, collapseAfter: function(o) {
798
- this.setStartAfter(o), this.collapse(!0);
799
- }, getBookmark: function(o) {
795
+ }, collapseBefore: function(r) {
796
+ this.setEndBefore(r), this.collapse(!1);
797
+ }, collapseAfter: function(r) {
798
+ this.setStartAfter(r), this.collapse(!0);
799
+ }, getBookmark: function(r) {
800
800
  var f = U(this), i = p.createRange(f);
801
- o = o || L.getBody(f), i.selectNodeContents(o);
801
+ r = r || L.getBody(f), i.selectNodeContents(r);
802
802
  var l = this.intersection(i), m = 0, k = 0;
803
- return l && (i.setEnd(l.startContainer, l.startOffset), k = (m = i.toString().length) + l.toString().length), { start: m, end: k, containerNode: o };
804
- }, moveToBookmark: function(o) {
805
- var f = o.containerNode, i = 0;
803
+ return l && (i.setEnd(l.startContainer, l.startOffset), k = (m = i.toString().length) + l.toString().length), { start: m, end: k, containerNode: r };
804
+ }, moveToBookmark: function(r) {
805
+ var f = r.containerNode, i = 0;
806
806
  this.setStart(f, 0), this.collapse(!0);
807
- for (var l, m, k, w, R = [f], G = !1, j = !1; !j && (l = R.pop()); )
807
+ for (var l, m, k, w, R = [f], X = !1, j = !1; !j && (l = R.pop()); )
808
808
  if (l.nodeType == 3)
809
- m = i + l.length, !G && o.start >= i && o.start <= m && (this.setStart(l, o.start - i), G = !0), G && o.end >= i && o.end <= m && (this.setEnd(l, o.end - i), j = !0), i = m;
809
+ m = i + l.length, !X && r.start >= i && r.start <= m && (this.setStart(l, r.start - i), X = !0), X && r.end >= i && r.end <= m && (this.setEnd(l, r.end - i), j = !0), i = m;
810
810
  else
811
811
  for (k = (w = l.childNodes).length; k--; )
812
812
  R.push(w[k]);
813
813
  }, getName: function() {
814
814
  return "DomRange";
815
- }, equals: function(o) {
816
- return Ve.rangesEqual(this, o);
815
+ }, equals: function(r) {
816
+ return Ve.rangesEqual(this, r);
817
817
  }, isValid: function() {
818
818
  return mt(this);
819
819
  }, inspect: function() {
820
820
  return $(this);
821
821
  }, detach: function() {
822
- } }), kt(Ve, Ze), F.extend(Ve, { rangeProperties: se, RangeIterator: ne, copyComparisonConstants: yt, createPrototypeRange: kt, inspect: $, toHtml: st, getRangeDocument: U, rangesEqual: function(o, f) {
823
- return o.startContainer === f.startContainer && o.startOffset === f.startOffset && o.endContainer === f.endContainer && o.endOffset === f.endOffset;
822
+ } }), kt(Ve, Je), F.extend(Ve, { rangeProperties: se, RangeIterator: ne, copyComparisonConstants: yt, createPrototypeRange: kt, inspect: $, toHtml: ot, getRangeDocument: U, rangesEqual: function(r, f) {
823
+ return r.startContainer === f.startContainer && r.startOffset === f.startOffset && r.endContainer === f.endContainer && r.endOffset === f.endOffset;
824
824
  } }), p.DomRange = Ve;
825
825
  }), q.createCoreModule("WrappedRange", ["DomRange"], function(p, x) {
826
- var L, F, J = p.dom, ee = p.util, K = J.DomPosition, ue = p.DomRange, r = J.getBody, h = J.getContentDocument, u = J.isCharacterDataNode;
826
+ var L, F, Q = p.dom, ee = p.util, K = Q.DomPosition, ue = p.DomRange, o = Q.getBody, h = Q.getContentDocument, u = Q.isCharacterDataNode;
827
827
  if (p.features.implementsDomRange && function() {
828
828
  var v, D, W = ue.rangeProperties;
829
829
  function I(d) {
@@ -854,7 +854,7 @@ function Fn() {
854
854
  return this.nativeRange.toString();
855
855
  };
856
856
  var U = document.createTextNode("test");
857
- r(document).appendChild(U);
857
+ o(document).appendChild(U);
858
858
  var Y = document.createRange();
859
859
  Y.setStart(U, 0), Y.setEnd(U, 0);
860
860
  try {
@@ -894,17 +894,17 @@ function Fn() {
894
894
  };
895
895
  }
896
896
  v.setStartBefore = D("setStartBefore", "setEndBefore"), v.setStartAfter = D("setStartAfter", "setEndAfter"), v.setEndBefore = D("setEndBefore", "setStartBefore"), v.setEndAfter = D("setEndAfter", "setStartAfter"), v.selectNodeContents = function(d) {
897
- this.setStartAndEnd(d, 0, J.getNodeLength(d));
897
+ this.setStartAndEnd(d, 0, Q.getNodeLength(d));
898
898
  }, Y.selectNodeContents(U), Y.setEnd(U, 3);
899
- var Z = document.createRange();
900
- Z.selectNodeContents(U), Z.setEnd(U, 4), Z.setStart(U, 2), Y.compareBoundaryPoints(Y.START_TO_END, Z) == -1 && Y.compareBoundaryPoints(Y.END_TO_START, Z) == 1 ? v.compareBoundaryPoints = function(d, b) {
899
+ var J = document.createRange();
900
+ J.selectNodeContents(U), J.setEnd(U, 4), J.setStart(U, 2), Y.compareBoundaryPoints(Y.START_TO_END, J) == -1 && Y.compareBoundaryPoints(Y.END_TO_START, J) == 1 ? v.compareBoundaryPoints = function(d, b) {
901
901
  return d == (b = b.nativeRange || b).START_TO_END ? d = b.END_TO_START : d == b.END_TO_START && (d = b.START_TO_END), this.nativeRange.compareBoundaryPoints(d, b);
902
902
  } : v.compareBoundaryPoints = function(d, b) {
903
903
  return this.nativeRange.compareBoundaryPoints(d, b.nativeRange || b);
904
904
  };
905
905
  var ce = document.createElement("div");
906
906
  ce.innerHTML = "123";
907
- var te = ce.firstChild, he = r(document);
907
+ var te = ce.firstChild, he = o(document);
908
908
  he.appendChild(ce), Y.setStart(te, 1), Y.setEnd(te, 2), Y.deleteContents(), te.data == "13" && (v.deleteContents = function() {
909
909
  this.nativeRange.deleteContents(), I(this);
910
910
  }, v.extractContents = function() {
@@ -912,7 +912,7 @@ function Fn() {
912
912
  return I(this), d;
913
913
  }), he.removeChild(ce), he = null, ee.isHostMethod(Y, "createContextualFragment") && (v.createContextualFragment = function(d) {
914
914
  return this.nativeRange.createContextualFragment(d);
915
- }), r(document).removeChild(U), v.getName = function() {
915
+ }), o(document).removeChild(U), v.getName = function() {
916
916
  return "WrappedRange";
917
917
  }, p.WrappedRange = L, p.createNativeRange = function(d) {
918
918
  return (d = h(d, x, "createNativeRange")).createRange();
@@ -921,48 +921,48 @@ function Fn() {
921
921
  var y = function(v, D, W, I, U) {
922
922
  var Y = v.duplicate();
923
923
  Y.collapse(W);
924
- var Z = Y.parentElement();
925
- if (J.isOrIsAncestorOf(D, Z) || (Z = D), !Z.canHaveHTML) {
926
- var ce = new K(Z.parentNode, J.getNodeIndex(Z));
924
+ var J = Y.parentElement();
925
+ if (Q.isOrIsAncestorOf(D, J) || (J = D), !J.canHaveHTML) {
926
+ var ce = new K(J.parentNode, Q.getNodeIndex(J));
927
927
  return { boundaryPosition: ce, nodeInfo: { nodeIndex: ce.offset, containerElement: ce.node } };
928
928
  }
929
- var te = J.getDocument(Z).createElement("span");
930
- te.parentNode && J.removeNode(te);
931
- for (var he, d, b, B, $, ne = W ? "StartToStart" : "StartToEnd", ge = U && U.containerElement == Z ? U.nodeIndex : 0, _e = Z.childNodes.length, Ce = _e, we = Ce; we == _e ? Z.appendChild(te) : Z.insertBefore(te, Z.childNodes[we]), Y.moveToElementText(te), (he = Y.compareEndPoints(ne, v)) != 0 && ge != Ce; ) {
929
+ var te = Q.getDocument(J).createElement("span");
930
+ te.parentNode && Q.removeNode(te);
931
+ for (var he, d, b, B, $, ne = W ? "StartToStart" : "StartToEnd", ge = U && U.containerElement == J ? U.nodeIndex : 0, _e = J.childNodes.length, Ce = _e, we = Ce; we == _e ? J.appendChild(te) : J.insertBefore(te, J.childNodes[we]), Y.moveToElementText(te), (he = Y.compareEndPoints(ne, v)) != 0 && ge != Ce; ) {
932
932
  if (he == -1) {
933
933
  if (Ce == ge + 1)
934
934
  break;
935
935
  ge = we;
936
936
  } else
937
937
  Ce = Ce == ge + 1 ? ge : we;
938
- we = Math.floor((ge + Ce) / 2), Z.removeChild(te);
938
+ we = Math.floor((ge + Ce) / 2), J.removeChild(te);
939
939
  }
940
940
  if ($ = te.nextSibling, he == -1 && $ && u($)) {
941
941
  var Re;
942
942
  if (Y.setEndPoint(W ? "EndToStart" : "EndToEnd", v), /[\r\n]/.test($.data)) {
943
- var Oe = Y.duplicate(), Ge = Oe.text.replace(/\r\n/g, "\r").length;
944
- for (Re = Oe.moveStart("character", Ge); (he = Oe.compareEndPoints("StartToEnd", Oe)) == -1; )
943
+ var Oe = Y.duplicate(), Xe = Oe.text.replace(/\r\n/g, "\r").length;
944
+ for (Re = Oe.moveStart("character", Xe); (he = Oe.compareEndPoints("StartToEnd", Oe)) == -1; )
945
945
  Re++, Oe.moveStart("character", 1);
946
946
  } else
947
947
  Re = Y.text.length;
948
948
  B = new K($, Re);
949
949
  } else
950
- d = (I || !W) && te.previousSibling, B = (b = (I || W) && te.nextSibling) && u(b) ? new K(b, 0) : d && u(d) ? new K(d, d.data.length) : new K(Z, J.getNodeIndex(te));
951
- return J.removeNode(te), { boundaryPosition: B, nodeInfo: { nodeIndex: we, containerElement: Z } };
950
+ d = (I || !W) && te.previousSibling, B = (b = (I || W) && te.nextSibling) && u(b) ? new K(b, 0) : d && u(d) ? new K(d, d.data.length) : new K(J, Q.getNodeIndex(te));
951
+ return Q.removeNode(te), { boundaryPosition: B, nodeInfo: { nodeIndex: we, containerElement: J } };
952
952
  }, S = function(v, D) {
953
- var W, I, U, Y, Z = v.offset, ce = J.getDocument(v.node), te = r(ce).createTextRange(), he = u(v.node);
954
- return he ? I = (W = v.node).parentNode : (W = Z < (Y = v.node.childNodes).length ? Y[Z] : null, I = v.node), (U = ce.createElement("span")).innerHTML = "&#feff;", W ? I.insertBefore(U, W) : I.appendChild(U), te.moveToElementText(U), te.collapse(!D), I.removeChild(U), he && te[D ? "moveStart" : "moveEnd"]("character", Z), te;
953
+ var W, I, U, Y, J = v.offset, ce = Q.getDocument(v.node), te = o(ce).createTextRange(), he = u(v.node);
954
+ return he ? I = (W = v.node).parentNode : (W = J < (Y = v.node.childNodes).length ? Y[J] : null, I = v.node), (U = ce.createElement("span")).innerHTML = "&#feff;", W ? I.insertBefore(U, W) : I.appendChild(U), te.moveToElementText(U), te.collapse(!D), I.removeChild(U), he && te[D ? "moveStart" : "moveEnd"]("character", J), te;
955
955
  };
956
956
  ((F = function(v) {
957
957
  this.textRange = v, this.refresh();
958
958
  }).prototype = new ue(document)).refresh = function() {
959
959
  var v, D, W, I, U = function(Y) {
960
- var Z = Y.parentElement(), ce = Y.duplicate();
960
+ var J = Y.parentElement(), ce = Y.duplicate();
961
961
  ce.collapse(!0);
962
962
  var te = ce.parentElement();
963
963
  (ce = Y.duplicate()).collapse(!1);
964
- var he = ce.parentElement(), d = te == he ? te : J.getCommonAncestor(te, he);
965
- return d == Z ? d : J.getCommonAncestor(Z, d);
964
+ var he = ce.parentElement(), d = te == he ? te : Q.getCommonAncestor(te, he);
965
+ return d == J ? d : Q.getCommonAncestor(J, d);
966
966
  }(this.textRange);
967
967
  (I = this.textRange).compareEndPoints("StartToEnd", I) == 0 ? D = v = y(this.textRange, U, !0, !0).boundaryPosition : (v = (W = y(this.textRange, U, !0, !1)).boundaryPosition, D = y(this.textRange, U, !1, !1, W.nodeInfo).boundaryPosition), this.setStart(v.node, v.offset), this.setEnd(D.node, D.offset);
968
968
  }, F.prototype.getName = function() {
@@ -971,7 +971,7 @@ function Fn() {
971
971
  var O = function(v) {
972
972
  if (v.collapsed)
973
973
  return S(new K(v.startContainer, v.startOffset), !0);
974
- var D = S(new K(v.startContainer, v.startOffset), !0), W = S(new K(v.endContainer, v.endOffset), !1), I = r(ue.getRangeDocument(v)).createTextRange();
974
+ var D = S(new K(v.startContainer, v.startOffset), !0), W = S(new K(v.endContainer, v.endOffset), !1), I = o(ue.getRangeDocument(v)).createTextRange();
975
975
  return I.setEndPoint("StartToStart", D), I.setEndPoint("EndToEnd", W), I;
976
976
  };
977
977
  if (F.rangeToTextRange = O, F.prototype.toTextRange = function() {
@@ -979,7 +979,7 @@ function Fn() {
979
979
  }, p.WrappedTextRange = F, !p.features.implementsDomRange || p.config.preferTextRange) {
980
980
  var P = Function("return this;")();
981
981
  P.Range === void 0 && (P.Range = F), p.createNativeRange = function(v) {
982
- return v = h(v, x, "createNativeRange"), r(v).createTextRange();
982
+ return v = h(v, x, "createNativeRange"), o(v).createTextRange();
983
983
  }, p.WrappedRange = F;
984
984
  }
985
985
  }
@@ -995,7 +995,7 @@ function Fn() {
995
995
  });
996
996
  }), q.createCoreModule("WrappedSelection", ["DomRange", "WrappedRange"], function(p, x) {
997
997
  p.config.checkSelectionRanges = !0;
998
- var L, F, J = "boolean", ee = "number", K = p.dom, ue = p.util, r = ue.isHostMethod, h = p.DomRange, u = p.WrappedRange, y = p.DOMException, S = K.DomPosition, O = p.features, P = "Control", v = K.getDocument, D = K.getBody, W = h.rangesEqual;
998
+ var L, F, Q = "boolean", ee = "number", K = p.dom, ue = p.util, o = ue.isHostMethod, h = p.DomRange, u = p.WrappedRange, y = p.DOMException, S = K.DomPosition, O = p.features, P = "Control", v = K.getDocument, D = K.getBody, W = h.rangesEqual;
999
999
  function I(i) {
1000
1000
  return typeof i == "string" ? /^backward(s)?$/i.test(i) : !!i;
1001
1001
  }
@@ -1013,11 +1013,11 @@ function Fn() {
1013
1013
  function Y(i) {
1014
1014
  return U(i, "getDocSelection").document.selection;
1015
1015
  }
1016
- function Z(i) {
1016
+ function J(i) {
1017
1017
  var l = !1;
1018
1018
  return i.anchorNode && (l = K.comparePoints(i.anchorNode, i.anchorOffset, i.focusNode, i.focusOffset) == 1), l;
1019
1019
  }
1020
- var ce = r(window, "getSelection"), te = ue.isHostObject(document, "selection");
1020
+ var ce = o(window, "getSelection"), te = ue.isHostObject(document, "selection");
1021
1021
  O.implementsWinGetSelection = ce, O.implementsDocSelection = te;
1022
1022
  var he = te && (!ce || p.config.preferTextRange);
1023
1023
  if (he)
@@ -1040,9 +1040,9 @@ function Fn() {
1040
1040
  return x.fail("Native selection was null (possibly issue 138?)"), !1;
1041
1041
  var b = p.createNativeRange(document), B = D(document), $ = ue.areHostProperties(d, ["anchorNode", "focusNode", "anchorOffset", "focusOffset"]);
1042
1042
  O.selectionHasAnchorAndFocus = $;
1043
- var ne = r(d, "extend");
1043
+ var ne = o(d, "extend");
1044
1044
  O.selectionHasExtend = ne;
1045
- var ge = r(d, "setBaseAndExtent");
1045
+ var ge = o(d, "setBaseAndExtent");
1046
1046
  O.selectionHasSetBaseAndExtent = ge;
1047
1047
  var _e = typeof d.rangeCount == ee;
1048
1048
  O.selectionHasRangeCount = _e;
@@ -1053,24 +1053,24 @@ function Fn() {
1053
1053
  ue.areHostMethods(d, ["addRange", "getRangeAt", "removeAllRanges"]) && typeof d.rangeCount == ee && O.implementsDomRange && function() {
1054
1054
  var i = window.getSelection();
1055
1055
  if (i) {
1056
- for (var l = i.rangeCount, m = l > 1, k = [], w = Z(i), R = 0; R < l; ++R)
1056
+ for (var l = i.rangeCount, m = l > 1, k = [], w = J(i), R = 0; R < l; ++R)
1057
1057
  k[R] = i.getRangeAt(R);
1058
- var G = K.createTestElement(document, "", !1), j = G.appendChild(document.createTextNode("   ")), oe = document.createRange();
1059
- if (oe.setStart(j, 1), oe.collapse(!0), i.removeAllRanges(), i.addRange(oe), we = i.rangeCount == 1, i.removeAllRanges(), !m) {
1060
- var Je = window.navigator.appVersion.match(/Chrome\/(.*?) /);
1061
- if (Je && parseInt(Je[1]) >= 36)
1058
+ var X = K.createTestElement(document, "", !1), j = X.appendChild(document.createTextNode("   ")), re = document.createRange();
1059
+ if (re.setStart(j, 1), re.collapse(!0), i.removeAllRanges(), i.addRange(re), we = i.rangeCount == 1, i.removeAllRanges(), !m) {
1060
+ var Qe = window.navigator.appVersion.match(/Chrome\/(.*?) /);
1061
+ if (Qe && parseInt(Qe[1]) >= 36)
1062
1062
  Ce = !1;
1063
1063
  else {
1064
- var ht = oe.cloneRange();
1065
- oe.setStart(j, 0), ht.setEnd(j, 3), ht.setStart(j, 2), i.addRange(oe), i.addRange(ht), Ce = i.rangeCount == 2;
1064
+ var ht = re.cloneRange();
1065
+ re.setStart(j, 0), ht.setEnd(j, 3), ht.setStart(j, 2), i.addRange(re), i.addRange(ht), Ce = i.rangeCount == 2;
1066
1066
  }
1067
1067
  }
1068
- for (K.removeNode(G), i.removeAllRanges(), R = 0; R < l; ++R)
1068
+ for (K.removeNode(X), i.removeAllRanges(), R = 0; R < l; ++R)
1069
1069
  R == 0 && w ? Re ? Re(i, k[R]) : (p.warn("Rangy initialization: original selection was backwards but selection has been restored forwards because the browser does not support Selection.extend"), i.addRange(k[R])) : i.addRange(k[R]);
1070
1070
  }
1071
1071
  }(), O.selectionSupportsMultipleRanges = Ce, O.collapsedNonEditableSelectionsSupported = we;
1072
- var Oe, Ge, Pe = !1;
1073
- function nt(i, l, m) {
1072
+ var Oe, Xe, Pe = !1;
1073
+ function it(i, l, m) {
1074
1074
  var k = m ? "end" : "start", w = m ? "start" : "end";
1075
1075
  i.anchorNode = l[k + "Container"], i.anchorOffset = l[k + "Offset"], i.focusNode = l[w + "Container"], i.focusOffset = l[w + "Offset"];
1076
1076
  }
@@ -1084,7 +1084,7 @@ function Fn() {
1084
1084
  var l;
1085
1085
  return i instanceof h ? ((l = p.createNativeRange(i.getDocument())).setEnd(i.endContainer, i.endOffset), l.setStart(i.startContainer, i.startOffset)) : i instanceof u ? l = i.nativeRange : O.implementsDomRange && i instanceof K.getWindow(i.startContainer).Range && (l = i), l;
1086
1086
  }
1087
- function it(i) {
1087
+ function st(i) {
1088
1088
  var l = i.getNodes();
1089
1089
  if (!function(m) {
1090
1090
  if (!m.length || m[0].nodeType != 1)
@@ -1102,9 +1102,9 @@ function Fn() {
1102
1102
  }
1103
1103
  function ft(i, l) {
1104
1104
  var m = new u(l);
1105
- i._ranges = [m], nt(i, m, !1), i.rangeCount = 1, i.isCollapsed = m.collapsed, Te(i);
1105
+ i._ranges = [m], it(i, m, !1), i.rangeCount = 1, i.isCollapsed = m.collapsed, Te(i);
1106
1106
  }
1107
- function Xe(i) {
1107
+ function Ge(i) {
1108
1108
  if (i._ranges.length = 0, i.docSelection.type == "None")
1109
1109
  be(i);
1110
1110
  else {
@@ -1115,19 +1115,19 @@ function Fn() {
1115
1115
  i.rangeCount = l.length;
1116
1116
  for (var m, k = v(l.item(0)), w = 0; w < i.rangeCount; ++w)
1117
1117
  (m = p.createRange(k)).selectNode(l.item(w)), i._ranges.push(m);
1118
- i.isCollapsed = i.rangeCount == 1 && i._ranges[0].collapsed, nt(i, i._ranges[i.rangeCount - 1], !1), Te(i);
1118
+ i.isCollapsed = i.rangeCount == 1 && i._ranges[0].collapsed, it(i, i._ranges[i.rangeCount - 1], !1), Te(i);
1119
1119
  }
1120
1120
  }
1121
1121
  }
1122
1122
  function mt(i, l) {
1123
- for (var m = i.docSelection.createRange(), k = it(l), w = v(m.item(0)), R = D(w).createControlRange(), G = 0, j = m.length; G < j; ++G)
1124
- R.add(m.item(G));
1123
+ for (var m = i.docSelection.createRange(), k = st(l), w = v(m.item(0)), R = D(w).createControlRange(), X = 0, j = m.length; X < j; ++X)
1124
+ R.add(m.item(X));
1125
1125
  try {
1126
1126
  R.add(k);
1127
- } catch (oe) {
1127
+ } catch (re) {
1128
1128
  throw x.createError("addRange(): Element within the specified Range could not be added to control selection (does it have layout?)");
1129
1129
  }
1130
- R.select(), Xe(i);
1130
+ R.select(), Ge(i);
1131
1131
  }
1132
1132
  function pe(i, l, m) {
1133
1133
  this.nativeSelection = i, this.docSelection = l, this._ranges = [], this.win = m, this.refresh();
@@ -1135,17 +1135,17 @@ function Fn() {
1135
1135
  function vt(i) {
1136
1136
  i.win = i.anchorNode = i.focusNode = i._ranges = null, i.rangeCount = i.anchorOffset = i.focusOffset = 0, i.detached = !0, Te(i);
1137
1137
  }
1138
- B && r(B, "createControlRange") && (Oe = B.createControlRange(), ue.areHostProperties(Oe, ["item", "add"]) && (Pe = !0)), O.implementsControlRange = Pe, F = $ ? function(i) {
1138
+ B && o(B, "createControlRange") && (Oe = B.createControlRange(), ue.areHostProperties(Oe, ["item", "add"]) && (Pe = !0)), O.implementsControlRange = Pe, F = $ ? function(i) {
1139
1139
  return i.anchorNode === i.focusNode && i.anchorOffset === i.focusOffset;
1140
1140
  } : function(i) {
1141
1141
  return !!i.rangeCount && i.getRangeAt(i.rangeCount - 1).collapsed;
1142
- }, r(d, "getRangeAt") ? Ge = function(i, l) {
1142
+ }, o(d, "getRangeAt") ? Xe = function(i, l) {
1143
1143
  try {
1144
1144
  return i.getRangeAt(l);
1145
1145
  } catch (m) {
1146
1146
  return null;
1147
1147
  }
1148
- } : $ && (Ge = function(i) {
1148
+ } : $ && (Xe = function(i) {
1149
1149
  var l = v(i.anchorNode), m = p.createRange(l);
1150
1150
  return m.setStartAndEnd(i.anchorNode, i.anchorOffset, i.focusNode, i.focusOffset), m.collapsed !== this.isCollapsed && m.setStartAndEnd(i.focusNode, i.focusOffset, i.anchorNode, i.anchorOffset), m;
1151
1151
  }), pe.prototype = p.selectionPrototype;
@@ -1165,17 +1165,17 @@ function Fn() {
1165
1165
  return l ? (l.nativeSelection = m, l.docSelection = k, l.refresh()) : (l = new pe(m, k, i), qe.push({ win: i, selection: l })), l;
1166
1166
  };
1167
1167
  p.getSelection = dt, ue.createAliasForDeprecatedMethod(p, "getIframeSelection", "getSelection");
1168
- var st, se = pe.prototype;
1168
+ var ot, se = pe.prototype;
1169
1169
  function wt(i, l) {
1170
- for (var m, k = v(l[0].startContainer), w = D(k).createControlRange(), R = 0, G = l.length; R < G; ++R) {
1171
- m = it(l[R]);
1170
+ for (var m, k = v(l[0].startContainer), w = D(k).createControlRange(), R = 0, X = l.length; R < X; ++R) {
1171
+ m = st(l[R]);
1172
1172
  try {
1173
1173
  w.add(m);
1174
1174
  } catch (j) {
1175
1175
  throw x.createError("setRanges(): Element within one of the specified Ranges could not be added to control selection (does it have layout?)");
1176
1176
  }
1177
1177
  }
1178
- w.select(), Xe(i);
1178
+ w.select(), Ge(i);
1179
1179
  }
1180
1180
  if (!he && $ && ue.areHostMethods(d, ["removeAllRanges", "addRange"])) {
1181
1181
  se.removeAllRanges = function() {
@@ -1199,10 +1199,10 @@ function Fn() {
1199
1199
  }
1200
1200
  if (this.rangeCount = this.nativeSelection.rangeCount, this.rangeCount == m + 1) {
1201
1201
  if (p.config.checkSelectionRanges) {
1202
- var w = Ge(this.nativeSelection, this.rangeCount - 1);
1202
+ var w = Xe(this.nativeSelection, this.rangeCount - 1);
1203
1203
  w && !W(w, i) && (i = new u(w));
1204
1204
  }
1205
- this._ranges[this.rangeCount - 1] = i, nt(this, i, Qe(this.nativeSelection)), this.isCollapsed = F(this), Te(this);
1205
+ this._ranges[this.rangeCount - 1] = i, it(this, i, Ze(this.nativeSelection)), this.isCollapsed = F(this), Te(this);
1206
1206
  } else
1207
1207
  this.refresh();
1208
1208
  }
@@ -1218,7 +1218,7 @@ function Fn() {
1218
1218
  }
1219
1219
  };
1220
1220
  } else {
1221
- if (!(r(d, "empty") && r(b, "select") && Pe && he))
1221
+ if (!(o(d, "empty") && o(b, "select") && Pe && he))
1222
1222
  return x.fail("No means of selecting a Range or TextRange was found"), !1;
1223
1223
  se.removeAllRanges = function() {
1224
1224
  try {
@@ -1236,7 +1236,7 @@ function Fn() {
1236
1236
  }
1237
1237
  be(this);
1238
1238
  }, se.addRange = function(i) {
1239
- this.docSelection.type == P ? mt(this, i) : (p.WrappedTextRange.rangeToTextRange(i).select(), this._ranges[0] = i, this.rangeCount = 1, this.isCollapsed = this._ranges[0].collapsed, nt(this, i, !1), Te(this));
1239
+ this.docSelection.type == P ? mt(this, i) : (p.WrappedTextRange.rangeToTextRange(i).select(), this._ranges[0] = i, this.rangeCount = 1, this.isCollapsed = this._ranges[0].collapsed, it(this, i, !1), Te(this));
1240
1240
  }, se.setRanges = function(i) {
1241
1241
  this.removeAllRanges();
1242
1242
  var l = i.length;
@@ -1248,27 +1248,27 @@ function Fn() {
1248
1248
  throw new y("INDEX_SIZE_ERR");
1249
1249
  return this._ranges[i].cloneRange();
1250
1250
  }, he)
1251
- st = function(i) {
1251
+ ot = function(i) {
1252
1252
  var l;
1253
- p.isSelectionValid(i.win) ? l = i.docSelection.createRange() : (l = D(i.win.document).createTextRange()).collapse(!0), i.docSelection.type == P ? Xe(i) : ze(l) ? ft(i, l) : be(i);
1253
+ p.isSelectionValid(i.win) ? l = i.docSelection.createRange() : (l = D(i.win.document).createTextRange()).collapse(!0), i.docSelection.type == P ? Ge(i) : ze(l) ? ft(i, l) : be(i);
1254
1254
  };
1255
- else if (r(d, "getRangeAt") && typeof d.rangeCount == ee)
1256
- st = function(i) {
1255
+ else if (o(d, "getRangeAt") && typeof d.rangeCount == ee)
1256
+ ot = function(i) {
1257
1257
  if (Pe && te && i.docSelection.type == P)
1258
- Xe(i);
1258
+ Ge(i);
1259
1259
  else if (i._ranges.length = i.rangeCount = i.nativeSelection.rangeCount, i.rangeCount) {
1260
1260
  for (var l = 0, m = i.rangeCount; l < m; ++l)
1261
1261
  i._ranges[l] = new p.WrappedRange(i.nativeSelection.getRangeAt(l));
1262
- nt(i, i._ranges[i.rangeCount - 1], Qe(i.nativeSelection)), i.isCollapsed = F(i), Te(i);
1262
+ it(i, i._ranges[i.rangeCount - 1], Ze(i.nativeSelection)), i.isCollapsed = F(i), Te(i);
1263
1263
  } else
1264
1264
  be(i);
1265
1265
  };
1266
1266
  else {
1267
- if (!$ || typeof d.isCollapsed != J || typeof b.collapsed != J || !O.implementsDomRange)
1267
+ if (!$ || typeof d.isCollapsed != Q || typeof b.collapsed != Q || !O.implementsDomRange)
1268
1268
  return x.fail("No means of obtaining a Range or TextRange from the user's selection was found"), !1;
1269
- st = function(i) {
1269
+ ot = function(i) {
1270
1270
  var l, m = i.nativeSelection;
1271
- m.anchorNode ? (l = Ge(m, 0), i._ranges = [l], i.rangeCount = 1, function(k) {
1271
+ m.anchorNode ? (l = Xe(m, 0), i._ranges = [l], i.rangeCount = 1, function(k) {
1272
1272
  var w = k.nativeSelection;
1273
1273
  k.anchorNode = w.anchorNode, k.anchorOffset = w.anchorOffset, k.focusNode = w.focusNode, k.focusOffset = w.focusOffset;
1274
1274
  }(i), i.isCollapsed = F(i), Te(i)) : be(i);
@@ -1276,7 +1276,7 @@ function Fn() {
1276
1276
  }
1277
1277
  se.refresh = function(i) {
1278
1278
  var l = i ? this._ranges.slice(0) : null, m = this.anchorNode, k = this.anchorOffset;
1279
- if (st(this), i) {
1279
+ if (ot(this), i) {
1280
1280
  var w = l.length;
1281
1281
  if (w != this._ranges.length || this.anchorNode != m || this.anchorOffset != k)
1282
1282
  return !0;
@@ -1286,14 +1286,14 @@ function Fn() {
1286
1286
  return !1;
1287
1287
  }
1288
1288
  };
1289
- var Qe, kt = function(i, l) {
1289
+ var Ze, kt = function(i, l) {
1290
1290
  var m = i.getAllRanges();
1291
1291
  i.removeAllRanges();
1292
1292
  for (var k = 0, w = m.length; k < w; ++k)
1293
1293
  W(l, m[k]) || i.addRange(m[k]);
1294
1294
  i.rangeCount || be(i);
1295
1295
  };
1296
- function Ze(i, l) {
1296
+ function Je(i, l) {
1297
1297
  if (i.win.document != v(l))
1298
1298
  throw new y("WRONG_DOCUMENT_ERR");
1299
1299
  }
@@ -1301,7 +1301,7 @@ function Fn() {
1301
1301
  if (l < 0 || l > (K.isCharacterDataNode(i) ? i.length : i.childNodes.length))
1302
1302
  throw new y("INDEX_SIZE_ERR");
1303
1303
  }
1304
- function o(i) {
1304
+ function r(i) {
1305
1305
  return function(l, m) {
1306
1306
  var k;
1307
1307
  this.rangeCount ? (k = this.getRangeAt(0))["set" + (i ? "Start" : "End")](l, m) : (k = p.createRange(this.win.document)).setStartAndEnd(l, m), this.setSingleRange(k, this.isBackward());
@@ -1310,29 +1310,29 @@ function Fn() {
1310
1310
  function f(i) {
1311
1311
  var l = [], m = new S(i.anchorNode, i.anchorOffset), k = new S(i.focusNode, i.focusOffset), w = typeof i.getName == "function" ? i.getName() : "Selection";
1312
1312
  if (i.rangeCount !== void 0)
1313
- for (var R = 0, G = i.rangeCount; R < G; ++R)
1313
+ for (var R = 0, X = i.rangeCount; R < X; ++R)
1314
1314
  l[R] = h.inspect(i.getRangeAt(R));
1315
1315
  return "[" + w + "(Ranges: " + l.join(", ") + ")(anchor: " + m.inspect() + ", focus: " + k.inspect() + "]";
1316
1316
  }
1317
1317
  se.removeRange = Pe && te ? function(i) {
1318
1318
  if (this.docSelection.type == P) {
1319
- for (var l = this.docSelection.createRange(), m = it(i), k = v(l.item(0)), w = D(k).createControlRange(), R = !1, G = 0, j = l.length; G < j; ++G)
1320
- l.item(G) !== m || R ? w.add(l.item(G)) : R = !0;
1321
- w.select(), Xe(this);
1319
+ for (var l = this.docSelection.createRange(), m = st(i), k = v(l.item(0)), w = D(k).createControlRange(), R = !1, X = 0, j = l.length; X < j; ++X)
1320
+ l.item(X) !== m || R ? w.add(l.item(X)) : R = !0;
1321
+ w.select(), Ge(this);
1322
1322
  } else
1323
1323
  kt(this, i);
1324
1324
  } : function(i) {
1325
1325
  kt(this, i);
1326
- }, !he && $ && O.implementsDomRange ? (Qe = Z, se.isBackward = function() {
1327
- return Qe(this);
1328
- }) : Qe = se.isBackward = function() {
1326
+ }, !he && $ && O.implementsDomRange ? (Ze = J, se.isBackward = function() {
1327
+ return Ze(this);
1328
+ }) : Ze = se.isBackward = function() {
1329
1329
  return !1;
1330
1330
  }, se.isBackwards = se.isBackward, se.toString = function() {
1331
1331
  for (var i = [], l = 0, m = this.rangeCount; l < m; ++l)
1332
1332
  i[l] = "" + this._ranges[l];
1333
1333
  return i.join("");
1334
1334
  }, se.collapse = function(i, l) {
1335
- Ze(this, i);
1335
+ Je(this, i);
1336
1336
  var m = p.createRange(i);
1337
1337
  m.collapseToPoint(i, l), this.setSingleRange(m), this.isCollapsed = !0;
1338
1338
  }, se.collapseToStart = function() {
@@ -1346,13 +1346,13 @@ function Fn() {
1346
1346
  var i = this._ranges[this.rangeCount - 1];
1347
1347
  this.collapse(i.endContainer, i.endOffset);
1348
1348
  }, se.selectAllChildren = function(i) {
1349
- Ze(this, i);
1349
+ Je(this, i);
1350
1350
  var l = p.createRange(i);
1351
1351
  l.selectNodeContents(i), this.setSingleRange(l);
1352
1352
  }, ge ? se.setBaseAndExtent = function(i, l, m, k) {
1353
1353
  this.nativeSelection.setBaseAndExtent(i, l, m, k), this.refresh();
1354
1354
  } : ne && (se.setBaseAndExtent = function(i, l, m, k) {
1355
- Ve(i, l), Ve(m, k), Ze(this, i), Ze(this, m);
1355
+ Ve(i, l), Ve(m, k), Je(this, i), Je(this, m);
1356
1356
  var w = p.createRange(node), R = K.comparePoints(i, l, m, k) == -1;
1357
1357
  R ? w.setStartAndEnd(m, k, i, l) : w.setStartAndEnd(i, l, m, k), this.setSingleRange(w, R);
1358
1358
  }), se.deleteFromDocument = function() {
@@ -1385,7 +1385,7 @@ function Fn() {
1385
1385
  return this.eachRange(function(k) {
1386
1386
  m.push(k[i].apply(k, l || []));
1387
1387
  }), m;
1388
- }, se.setStart = o(!0), se.setEnd = o(!1), p.rangePrototype.select = function(i) {
1388
+ }, se.setStart = r(!0), se.setEnd = r(!1), p.rangePrototype.select = function(i) {
1389
1389
  dt(this.getDocument()).setSingleRange(this, i);
1390
1390
  }, se.changeEachRange = function(i) {
1391
1391
  var l = [], m = this.isBackward();
@@ -1441,36 +1441,36 @@ function Fn() {
1441
1441
  var le = !1, ve = function(p) {
1442
1442
  le || (le = !0, !q.initialized && q.config.autoInitialize && Me());
1443
1443
  };
1444
- return de && (document.readyState == "complete" ? ve() : (c(document, "addEventListener") && document.addEventListener("DOMContentLoaded", ve, !1), X(window, "load", ve))), q;
1444
+ return de && (document.readyState == "complete" ? ve() : (c(document, "addEventListener") && document.addEventListener("DOMContentLoaded", ve, !1), G(window, "load", ve))), q;
1445
1445
  }
1446
- function Un(_) {
1446
+ function $n(_) {
1447
1447
  return _.createModule("ClassApplier", ["WrappedSelection"], function(e, t) {
1448
1448
  var n = e.dom, s = n.DomPosition, a = n.arrayContains, c = e.util, g = c.forEach, C = c.isHostMethod(document, "createElementNS");
1449
- function T(r, h) {
1450
- for (var u in r)
1451
- if (r.hasOwnProperty(u) && h(u, r[u]) === !1)
1449
+ function T(o, h) {
1450
+ for (var u in o)
1451
+ if (o.hasOwnProperty(u) && h(u, o[u]) === !1)
1452
1452
  return !1;
1453
1453
  return !0;
1454
1454
  }
1455
- function E(r) {
1456
- return r.replace(/^\s\s*/, "").replace(/\s\s*$/, "");
1455
+ function E(o) {
1456
+ return o.replace(/^\s\s*/, "").replace(/\s\s*$/, "");
1457
1457
  }
1458
- function N(r, h) {
1459
- return !!r && new RegExp("(?:^|\\s)" + h + "(?:\\s|$)").test(r);
1458
+ function N(o, h) {
1459
+ return !!o && new RegExp("(?:^|\\s)" + h + "(?:\\s|$)").test(o);
1460
1460
  }
1461
- function A(r, h) {
1462
- return typeof r.classList == "object" ? r.classList.contains(h) : N(typeof r.className == "string" ? r.className : r.getAttribute("class"), h);
1461
+ function A(o, h) {
1462
+ return typeof o.classList == "object" ? o.classList.contains(h) : N(typeof o.className == "string" ? o.className : o.getAttribute("class"), h);
1463
1463
  }
1464
- function M(r, h) {
1465
- if (typeof r.classList == "object")
1466
- r.classList.add(h);
1464
+ function M(o, h) {
1465
+ if (typeof o.classList == "object")
1466
+ o.classList.add(h);
1467
1467
  else {
1468
- var u = typeof r.className == "string", y = u ? r.className : r.getAttribute("class");
1469
- y ? N(y, h) || (y += " " + h) : y = h, u ? r.className = y : r.setAttribute("class", y);
1468
+ var u = typeof o.className == "string", y = u ? o.className : o.getAttribute("class");
1469
+ y ? N(y, h) || (y += " " + h) : y = h, u ? o.className = y : o.setAttribute("class", y);
1470
1470
  }
1471
1471
  }
1472
1472
  var H = function() {
1473
- function r(h, u, y) {
1473
+ function o(h, u, y) {
1474
1474
  return u && y ? " " : "";
1475
1475
  }
1476
1476
  return function(h, u) {
@@ -1478,105 +1478,105 @@ function Un(_) {
1478
1478
  h.classList.remove(u);
1479
1479
  else {
1480
1480
  var y = typeof h.className == "string", S = y ? h.className : h.getAttribute("class");
1481
- S = S.replace(new RegExp("(^|\\s)" + u + "(\\s|$)"), r), y ? h.className = S : h.setAttribute("class", S);
1481
+ S = S.replace(new RegExp("(^|\\s)" + u + "(\\s|$)"), o), y ? h.className = S : h.setAttribute("class", S);
1482
1482
  }
1483
1483
  };
1484
1484
  }();
1485
- function z(r) {
1486
- return typeof r.className == "string" ? r.className : r.getAttribute("class");
1485
+ function z(o) {
1486
+ return typeof o.className == "string" ? o.className : o.getAttribute("class");
1487
1487
  }
1488
- function X(r) {
1489
- return r && r.split(/\s+/).sort().join(" ");
1488
+ function G(o) {
1489
+ return o && o.split(/\s+/).sort().join(" ");
1490
1490
  }
1491
- function ie(r) {
1492
- return X(z(r));
1491
+ function ie(o) {
1492
+ return G(z(o));
1493
1493
  }
1494
- function de(r, h) {
1495
- return ie(r) == ie(h);
1494
+ function de(o, h) {
1495
+ return ie(o) == ie(h);
1496
1496
  }
1497
- function fe(r, h) {
1497
+ function fe(o, h) {
1498
1498
  for (var u = h.split(/\s+/), y = 0, S = u.length; y < S; ++y)
1499
- if (!A(r, E(u[y])))
1499
+ if (!A(o, E(u[y])))
1500
1500
  return !1;
1501
1501
  return !0;
1502
1502
  }
1503
- function q(r, h, u, y) {
1503
+ function q(o, h, u, y) {
1504
1504
  u == -1 && (u = h.childNodes.length);
1505
- var S = r.parentNode, O = n.getNodeIndex(r);
1505
+ var S = o.parentNode, O = n.getNodeIndex(o);
1506
1506
  g(y, function(P) {
1507
1507
  (function(v, D, W, I, U) {
1508
- var Y = v.node, Z = v.offset, ce = Y, te = Z;
1509
- Y == I && Z > U && ++te, Y != D || Z != W && Z != W + 1 || (ce = I, te += U - W), Y == D && Z > W + 1 && --te, v.node = ce, v.offset = te;
1508
+ var Y = v.node, J = v.offset, ce = Y, te = J;
1509
+ Y == I && J > U && ++te, Y != D || J != W && J != W + 1 || (ce = I, te += U - W), Y == D && J > W + 1 && --te, v.node = ce, v.offset = te;
1510
1510
  })(P, S, O, h, u);
1511
- }), h.childNodes.length == u ? h.appendChild(r) : h.insertBefore(r, h.childNodes[u]);
1511
+ }), h.childNodes.length == u ? h.appendChild(o) : h.insertBefore(o, h.childNodes[u]);
1512
1512
  }
1513
- function ye(r, h) {
1514
- var u = r.parentNode, y = n.getNodeIndex(r);
1513
+ function ye(o, h) {
1514
+ var u = o.parentNode, y = n.getNodeIndex(o);
1515
1515
  g(h, function(S) {
1516
1516
  (function(O, P, v) {
1517
1517
  O.node == P && O.offset > v && --O.offset;
1518
1518
  })(S, u, y);
1519
- }), n.removeNode(r);
1519
+ }), n.removeNode(o);
1520
1520
  }
1521
- function $e(r, h) {
1521
+ function $e(o, h) {
1522
1522
  return function(u, y, S, O, P) {
1523
1523
  for (var v, D = []; v = u.firstChild; )
1524
1524
  q(v, y, S++, P), D.push(v);
1525
1525
  return O && ye(u, P), D;
1526
- }(r, r.parentNode, n.getNodeIndex(r), !0, h);
1526
+ }(o, o.parentNode, n.getNodeIndex(o), !0, h);
1527
1527
  }
1528
- function Ne(r, h) {
1529
- var u = r.cloneRange();
1528
+ function Ne(o, h) {
1529
+ var u = o.cloneRange();
1530
1530
  u.selectNodeContents(h);
1531
- var y = u.intersection(r);
1531
+ var y = u.intersection(o);
1532
1532
  return (y ? y.toString() : "") != "";
1533
1533
  }
1534
- function Be(r) {
1535
- for (var h, u = r.getNodes([3]), y = 0; (h = u[y]) && !Ne(r, h); )
1534
+ function Be(o) {
1535
+ for (var h, u = o.getNodes([3]), y = 0; (h = u[y]) && !Ne(o, h); )
1536
1536
  ++y;
1537
- for (var S = u.length - 1; (h = u[S]) && !Ne(r, h); )
1537
+ for (var S = u.length - 1; (h = u[S]) && !Ne(o, h); )
1538
1538
  --S;
1539
1539
  return u.slice(y, S + 1);
1540
1540
  }
1541
- function Ye(r, h) {
1542
- if (r.attributes.length != h.attributes.length)
1541
+ function Ye(o, h) {
1542
+ if (o.attributes.length != h.attributes.length)
1543
1543
  return !1;
1544
- for (var u, y, S, O = 0, P = r.attributes.length; O < P; ++O)
1545
- if ((S = (u = r.attributes[O]).name) != "class" && (u === null != ((y = h.attributes.getNamedItem(S)) === null) || u.specified != y.specified || u.specified && u.nodeValue !== y.nodeValue))
1544
+ for (var u, y, S, O = 0, P = o.attributes.length; O < P; ++O)
1545
+ if ((S = (u = o.attributes[O]).name) != "class" && (u === null != ((y = h.attributes.getNamedItem(S)) === null) || u.specified != y.specified || u.specified && u.nodeValue !== y.nodeValue))
1546
1546
  return !1;
1547
1547
  return !0;
1548
1548
  }
1549
- var Me = n.getComputedStyleProperty, Ae = typeof document.createElement("div").isContentEditable == "boolean" ? function(r) {
1550
- return r && r.nodeType == 1 && r.isContentEditable;
1551
- } : function(r) {
1552
- return !(!r || r.nodeType != 1 || r.contentEditable == "false") && (r.contentEditable == "true" || Ae(r.parentNode));
1549
+ var Me = n.getComputedStyleProperty, Ae = typeof document.createElement("div").isContentEditable == "boolean" ? function(o) {
1550
+ return o && o.nodeType == 1 && o.isContentEditable;
1551
+ } : function(o) {
1552
+ return !(!o || o.nodeType != 1 || o.contentEditable == "false") && (o.contentEditable == "true" || Ae(o.parentNode));
1553
1553
  };
1554
- function De(r) {
1554
+ function De(o) {
1555
1555
  var h;
1556
- return r && r.nodeType == 1 && ((h = r.parentNode) && h.nodeType == 9 && h.designMode == "on" || Ae(r) && !Ae(r.parentNode));
1556
+ return o && o.nodeType == 1 && ((h = o.parentNode) && h.nodeType == 9 && h.designMode == "on" || Ae(o) && !Ae(o.parentNode));
1557
1557
  }
1558
- function V(r) {
1559
- return (Ae(r) || r.nodeType != 1 && Ae(r.parentNode)) && !De(r);
1558
+ function V(o) {
1559
+ return (Ae(o) || o.nodeType != 1 && Ae(o.parentNode)) && !De(o);
1560
1560
  }
1561
- var re = /^inline(-block|-table)?$/i;
1562
- function Q(r) {
1563
- return r && r.nodeType == 1 && !re.test(Me(r, "display"));
1561
+ var oe = /^inline(-block|-table)?$/i;
1562
+ function Z(o) {
1563
+ return o && o.nodeType == 1 && !oe.test(Me(o, "display"));
1564
1564
  }
1565
1565
  var ae = /[^\r\n\t\f \u200B]/;
1566
- function le(r) {
1566
+ function le(o) {
1567
1567
  var h, u, y = [];
1568
- for (h = 0; u = r[h++]; )
1568
+ for (h = 0; u = o[h++]; )
1569
1569
  y.push(new s(u.startContainer, u.startOffset), new s(u.endContainer, u.endOffset));
1570
1570
  return y;
1571
1571
  }
1572
- function ve(r, h) {
1573
- for (var u, y, S, O = 0, P = r.length; O < P; ++O)
1574
- u = r[O], y = h[2 * O], S = h[2 * O + 1], u.setStartAndEnd(y.node, y.offset, S.node, S.offset);
1572
+ function ve(o, h) {
1573
+ for (var u, y, S, O = 0, P = o.length; O < P; ++O)
1574
+ u = o[O], y = h[2 * O], S = h[2 * O + 1], u.setStartAndEnd(y.node, y.offset, S.node, S.offset);
1575
1575
  }
1576
- function p(r, h, u, y) {
1576
+ function p(o, h, u, y) {
1577
1577
  var S, O, P = u == 0;
1578
- if (n.isAncestorOf(h, r))
1579
- return r;
1578
+ if (n.isAncestorOf(h, o))
1579
+ return o;
1580
1580
  if (n.isCharacterDataNode(h)) {
1581
1581
  var v = n.getNodeIndex(h);
1582
1582
  if (u == 0)
@@ -1594,24 +1594,24 @@ function Un(_) {
1594
1594
  S = h.cloneNode(!1), O = h.parentNode, S.id && S.removeAttribute("id");
1595
1595
  for (var D, W = 0; D = h.childNodes[u]; )
1596
1596
  q(D, S, W++, y);
1597
- return q(S, O, n.getNodeIndex(h) + 1, y), h == r ? S : p(r, O, n.getNodeIndex(S), y);
1597
+ return q(S, O, n.getNodeIndex(h) + 1, y), h == o ? S : p(o, O, n.getNodeIndex(S), y);
1598
1598
  }
1599
- if (r != h) {
1599
+ if (o != h) {
1600
1600
  S = h.parentNode;
1601
1601
  var I = n.getNodeIndex(h);
1602
- return P || I++, p(r, S, I, y);
1602
+ return P || I++, p(o, S, I, y);
1603
1603
  }
1604
- return r;
1604
+ return o;
1605
1605
  }
1606
- function x(r) {
1607
- var h = r ? "nextSibling" : "previousSibling";
1606
+ function x(o) {
1607
+ var h = o ? "nextSibling" : "previousSibling";
1608
1608
  return function(u, y) {
1609
1609
  var S, O, P = u.parentNode, v = u[h];
1610
1610
  if (v) {
1611
1611
  if (v && v.nodeType == 3)
1612
1612
  return v;
1613
1613
  } else if (y && (v = P[h]) && v.nodeType == 1 && (O = v, (S = P).namespaceURI == O.namespaceURI && S.tagName.toLowerCase() == O.tagName.toLowerCase() && de(S, O) && Ye(S, O) && Me(S, "display") == "inline" && Me(O, "display") == "inline")) {
1614
- var D = v[r ? "firstChild" : "lastChild"];
1614
+ var D = v[o ? "firstChild" : "lastChild"];
1615
1615
  if (D && D.nodeType == 3)
1616
1616
  return D;
1617
1617
  }
@@ -1619,36 +1619,36 @@ function Un(_) {
1619
1619
  };
1620
1620
  }
1621
1621
  var L = x(!1), F = x(!0);
1622
- function J(r) {
1623
- this.isElementMerge = r.nodeType == 1, this.textNodes = [];
1624
- var h = this.isElementMerge ? r.lastChild : r;
1622
+ function Q(o) {
1623
+ this.isElementMerge = o.nodeType == 1, this.textNodes = [];
1624
+ var h = this.isElementMerge ? o.lastChild : o;
1625
1625
  h && (this.textNodes[0] = h);
1626
1626
  }
1627
- J.prototype = { doMerge: function(r) {
1627
+ Q.prototype = { doMerge: function(o) {
1628
1628
  var h = this.textNodes, u = h[0];
1629
1629
  if (h.length > 1) {
1630
1630
  var y, S = n.getNodeIndex(u), O = [], P = 0;
1631
1631
  g(h, function(v, D) {
1632
- y = v.parentNode, D > 0 && (y.removeChild(v), y.hasChildNodes() || n.removeNode(y), r && g(r, function(W) {
1632
+ y = v.parentNode, D > 0 && (y.removeChild(v), y.hasChildNodes() || n.removeNode(y), o && g(o, function(W) {
1633
1633
  W.node == v && (W.node = u, W.offset += P), W.node == y && W.offset > S && (--W.offset, W.offset == S + 1 && D < h.length - 1 && (W.node = u, W.offset = P));
1634
1634
  })), O[D] = v.data, P += v.data.length;
1635
1635
  }), u.data = O.join("");
1636
1636
  }
1637
1637
  return u.data;
1638
1638
  }, getLength: function() {
1639
- for (var r = this.textNodes.length, h = 0; r--; )
1640
- h += this.textNodes[r].length;
1639
+ for (var o = this.textNodes.length, h = 0; o--; )
1640
+ h += this.textNodes[o].length;
1641
1641
  return h;
1642
1642
  }, toString: function() {
1643
- var r = [];
1643
+ var o = [];
1644
1644
  return g(this.textNodes, function(h, u) {
1645
- r[u] = "'" + h.data + "'";
1646
- }), "[Merge(" + r.join(",") + ")]";
1645
+ o[u] = "'" + h.data + "'";
1646
+ }), "[Merge(" + o.join(",") + ")]";
1647
1647
  } };
1648
1648
  var ee = ["elementTagName", "ignoreWhiteSpace", "applyToEditableOnly", "useExistingElements", "removeEmptyElements", "onElementCreate"], K = {};
1649
- function ue(r, h, u) {
1649
+ function ue(o, h, u) {
1650
1650
  var y, S, O, P, v = this;
1651
- v.cssClass = v.className = r;
1651
+ v.cssClass = v.className = o;
1652
1652
  var D = null, W = {};
1653
1653
  if (typeof h == "object" && h !== null) {
1654
1654
  for (h.elementTagName !== void 0 && (h.elementTagName = h.elementTagName.toLowerCase()), u = h.tagNames, D = h.elementProperties, W = h.elementAttributes, S = 0; P = ee[S++]; )
@@ -1658,9 +1658,9 @@ function Un(_) {
1658
1658
  y = h;
1659
1659
  v.normalize = y === void 0 || y, v.attrExceptions = [];
1660
1660
  var I = document.createElement(v.elementTagName);
1661
- v.elementProperties = v.copyPropertiesToElement(D, I, !0), T(W, function(Y, Z) {
1662
- v.attrExceptions.push(Y), W[Y] = "" + Z;
1663
- }), v.elementAttributes = W, v.elementSortedClassName = v.elementProperties.hasOwnProperty("className") ? X(v.elementProperties.className + " " + r) : r, v.applyToAnyTagName = !1;
1661
+ v.elementProperties = v.copyPropertiesToElement(D, I, !0), T(W, function(Y, J) {
1662
+ v.attrExceptions.push(Y), W[Y] = "" + J;
1663
+ }), v.elementAttributes = W, v.elementSortedClassName = v.elementProperties.hasOwnProperty("className") ? G(v.elementProperties.className + " " + o) : o, v.applyToAnyTagName = !1;
1664
1664
  var U = typeof u;
1665
1665
  if (U == "string")
1666
1666
  u == "*" ? v.applyToAnyTagName = !0 : v.tagNames = E(u.toLowerCase()).split(/\s*,\s*/);
@@ -1670,42 +1670,42 @@ function Un(_) {
1670
1670
  else
1671
1671
  v.tagNames = [v.elementTagName];
1672
1672
  }
1673
- ue.prototype = { elementTagName: "span", elementProperties: {}, elementAttributes: {}, ignoreWhiteSpace: !0, applyToEditableOnly: !1, useExistingElements: !0, removeEmptyElements: !0, onElementCreate: null, copyPropertiesToElement: function(r, h, u) {
1673
+ ue.prototype = { elementTagName: "span", elementProperties: {}, elementAttributes: {}, ignoreWhiteSpace: !0, applyToEditableOnly: !1, useExistingElements: !0, removeEmptyElements: !0, onElementCreate: null, copyPropertiesToElement: function(o, h, u) {
1674
1674
  var y, S, O, P, v, D, W = {};
1675
- for (var I in r)
1676
- if (r.hasOwnProperty(I))
1677
- if (P = r[I], v = h[I], I == "className")
1678
- M(h, P), M(h, this.className), h[I] = X(h[I]), u && (W[I] = P);
1675
+ for (var I in o)
1676
+ if (o.hasOwnProperty(I))
1677
+ if (P = o[I], v = h[I], I == "className")
1678
+ M(h, P), M(h, this.className), h[I] = G(h[I]), u && (W[I] = P);
1679
1679
  else if (I == "style") {
1680
- for (y in S = v, u && (W[I] = O = {}), r[I])
1681
- r[I].hasOwnProperty(y) && (S[y] = P[y], u && (O[y] = S[y]));
1680
+ for (y in S = v, u && (W[I] = O = {}), o[I])
1681
+ o[I].hasOwnProperty(y) && (S[y] = P[y], u && (O[y] = S[y]));
1682
1682
  this.attrExceptions.push(I);
1683
1683
  } else
1684
1684
  h[I] = P, u && (W[I] = h[I], D = K.hasOwnProperty(I) ? K[I] : I, this.attrExceptions.push(D));
1685
1685
  return u ? W : "";
1686
- }, copyAttributesToElement: function(r, h) {
1687
- for (var u in r)
1688
- r.hasOwnProperty(u) && !/^class(?:Name)?$/i.test(u) && h.setAttribute(u, r[u]);
1689
- }, appliesToElement: function(r) {
1690
- return a(this.tagNames, r.tagName.toLowerCase());
1691
- }, getEmptyElements: function(r) {
1686
+ }, copyAttributesToElement: function(o, h) {
1687
+ for (var u in o)
1688
+ o.hasOwnProperty(u) && !/^class(?:Name)?$/i.test(u) && h.setAttribute(u, o[u]);
1689
+ }, appliesToElement: function(o) {
1690
+ return a(this.tagNames, o.tagName.toLowerCase());
1691
+ }, getEmptyElements: function(o) {
1692
1692
  var h = this;
1693
- return r.getNodes([1], function(u) {
1693
+ return o.getNodes([1], function(u) {
1694
1694
  return h.appliesToElement(u) && !u.hasChildNodes();
1695
1695
  });
1696
- }, hasClass: function(r) {
1697
- return r.nodeType == 1 && (this.applyToAnyTagName || this.appliesToElement(r)) && A(r, this.className);
1698
- }, getSelfOrAncestorWithClass: function(r) {
1699
- for (; r; ) {
1700
- if (this.hasClass(r))
1701
- return r;
1702
- r = r.parentNode;
1696
+ }, hasClass: function(o) {
1697
+ return o.nodeType == 1 && (this.applyToAnyTagName || this.appliesToElement(o)) && A(o, this.className);
1698
+ }, getSelfOrAncestorWithClass: function(o) {
1699
+ for (; o; ) {
1700
+ if (this.hasClass(o))
1701
+ return o;
1702
+ o = o.parentNode;
1703
1703
  }
1704
1704
  return null;
1705
- }, isModifiable: function(r) {
1706
- return !this.applyToEditableOnly || V(r);
1707
- }, isIgnorableWhiteSpaceNode: function(r) {
1708
- return this.ignoreWhiteSpace && r && r.nodeType == 3 && function(h) {
1705
+ }, isModifiable: function(o) {
1706
+ return !this.applyToEditableOnly || V(o);
1707
+ }, isIgnorableWhiteSpaceNode: function(o) {
1708
+ return this.ignoreWhiteSpace && o && o.nodeType == 3 && function(h) {
1709
1709
  if (h.data.length == 0)
1710
1710
  return !0;
1711
1711
  if (ae.test(h.data))
@@ -1719,163 +1719,163 @@ function Un(_) {
1719
1719
  if (/[\r\n]/.test(h.data))
1720
1720
  return !1;
1721
1721
  }
1722
- return Q(h.previousSibling) || Q(h.nextSibling);
1723
- }(r);
1724
- }, postApply: function(r, h, u, y) {
1725
- var S, O, P = r[0], v = r[r.length - 1], D = [], W = P, I = v, U = 0, Y = v.length;
1726
- g(r, function(he) {
1727
- (O = L(he, !y)) ? (S || (S = new J(O), D.push(S)), S.textNodes.push(he), he === P && (W = S.textNodes[0], U = W.length), he === v && (I = S.textNodes[0], Y = S.getLength())) : S = null;
1722
+ return Z(h.previousSibling) || Z(h.nextSibling);
1723
+ }(o);
1724
+ }, postApply: function(o, h, u, y) {
1725
+ var S, O, P = o[0], v = o[o.length - 1], D = [], W = P, I = v, U = 0, Y = v.length;
1726
+ g(o, function(he) {
1727
+ (O = L(he, !y)) ? (S || (S = new Q(O), D.push(S)), S.textNodes.push(he), he === P && (W = S.textNodes[0], U = W.length), he === v && (I = S.textNodes[0], Y = S.getLength())) : S = null;
1728
1728
  });
1729
- var Z = F(v, !y);
1730
- if (Z && (S || (S = new J(v), D.push(S)), S.textNodes.push(Z)), D.length) {
1729
+ var J = F(v, !y);
1730
+ if (J && (S || (S = new Q(v), D.push(S)), S.textNodes.push(J)), D.length) {
1731
1731
  for (var ce = 0, te = D.length; ce < te; ++ce)
1732
1732
  D[ce].doMerge(u);
1733
1733
  h.setStartAndEnd(W, U, I, Y);
1734
1734
  }
1735
- }, createContainer: function(r) {
1736
- var h = n.getDocument(r), u = C && !n.isHtmlNamespace(r) && r.namespaceURI ? h.createElementNS(r.namespaceURI, this.elementTagName) : h.createElement(this.elementTagName);
1735
+ }, createContainer: function(o) {
1736
+ var h = n.getDocument(o), u = C && !n.isHtmlNamespace(o) && o.namespaceURI ? h.createElementNS(o.namespaceURI, this.elementTagName) : h.createElement(this.elementTagName);
1737
1737
  return this.copyPropertiesToElement(this.elementProperties, u, !1), this.copyAttributesToElement(this.elementAttributes, u), M(u, this.className), this.onElementCreate && this.onElementCreate(u, this), u;
1738
- }, elementHasProperties: function(r, h) {
1738
+ }, elementHasProperties: function(o, h) {
1739
1739
  var u = this;
1740
1740
  return T(h, function(y, S) {
1741
1741
  if (y == "className")
1742
- return fe(r, S);
1742
+ return fe(o, S);
1743
1743
  if (typeof S == "object") {
1744
- if (!u.elementHasProperties(r[y], S))
1744
+ if (!u.elementHasProperties(o[y], S))
1745
1745
  return !1;
1746
- } else if (r[y] !== S)
1746
+ } else if (o[y] !== S)
1747
1747
  return !1;
1748
1748
  });
1749
- }, elementHasAttributes: function(r, h) {
1749
+ }, elementHasAttributes: function(o, h) {
1750
1750
  return T(h, function(u, y) {
1751
- if (r.getAttribute(u) !== y)
1751
+ if (o.getAttribute(u) !== y)
1752
1752
  return !1;
1753
1753
  });
1754
- }, applyToTextNode: function(r, h) {
1754
+ }, applyToTextNode: function(o, h) {
1755
1755
  if (function(O) {
1756
1756
  var P = O.parentNode;
1757
1757
  return P && P.nodeType == 1 && !/^(textarea|style|script|select|iframe)$/i.test(P.nodeName);
1758
- }(r)) {
1759
- var u = r.parentNode;
1758
+ }(o)) {
1759
+ var u = o.parentNode;
1760
1760
  if (u.childNodes.length == 1 && this.useExistingElements && this.appliesToElement(u) && this.elementHasProperties(u, this.elementProperties) && this.elementHasAttributes(u, this.elementAttributes))
1761
1761
  M(u, this.className);
1762
1762
  else {
1763
- var y = r.parentNode, S = this.createContainer(y);
1764
- y.insertBefore(S, r), S.appendChild(r);
1763
+ var y = o.parentNode, S = this.createContainer(y);
1764
+ y.insertBefore(S, o), S.appendChild(o);
1765
1765
  }
1766
1766
  }
1767
- }, isRemovable: function(r) {
1768
- return r.tagName.toLowerCase() == this.elementTagName && ie(r) == this.elementSortedClassName && this.isModifiable(r);
1769
- }, isEmptyContainer: function(r) {
1770
- var h = r.childNodes.length;
1771
- return r.nodeType == 1 && this.isRemovable(r) && (h == 0 || h == 1 && this.isEmptyContainer(r.firstChild));
1772
- }, removeEmptyContainers: function(r) {
1773
- var h = this, u = r.getNodes([1], function(O) {
1767
+ }, isRemovable: function(o) {
1768
+ return o.tagName.toLowerCase() == this.elementTagName && ie(o) == this.elementSortedClassName && this.isModifiable(o);
1769
+ }, isEmptyContainer: function(o) {
1770
+ var h = o.childNodes.length;
1771
+ return o.nodeType == 1 && this.isRemovable(o) && (h == 0 || h == 1 && this.isEmptyContainer(o.firstChild));
1772
+ }, removeEmptyContainers: function(o) {
1773
+ var h = this, u = o.getNodes([1], function(O) {
1774
1774
  return h.isEmptyContainer(O);
1775
- }), y = [r], S = le(y);
1775
+ }), y = [o], S = le(y);
1776
1776
  g(u, function(O) {
1777
1777
  ye(O, S);
1778
1778
  }), ve(y, S);
1779
- }, undoToTextNode: function(r, h, u, y) {
1779
+ }, undoToTextNode: function(o, h, u, y) {
1780
1780
  if (!h.containsNode(u)) {
1781
1781
  var S = h.cloneRange();
1782
1782
  S.selectNode(u), S.isPointInRange(h.endContainer, h.endOffset) && (p(u, h.endContainer, h.endOffset, y), h.setEndAfter(u)), S.isPointInRange(h.startContainer, h.startOffset) && (u = p(u, h.startContainer, h.startOffset, y));
1783
1783
  }
1784
1784
  this.isRemovable(u) ? $e(u, y) : H(u, this.className);
1785
- }, splitAncestorWithClass: function(r, h, u) {
1786
- var y = this.getSelfOrAncestorWithClass(r);
1787
- y && p(y, r, h, u);
1788
- }, undoToAncestor: function(r, h) {
1789
- this.isRemovable(r) ? $e(r, h) : H(r, this.className);
1790
- }, applyToRange: function(r, h) {
1785
+ }, splitAncestorWithClass: function(o, h, u) {
1786
+ var y = this.getSelfOrAncestorWithClass(o);
1787
+ y && p(y, o, h, u);
1788
+ }, undoToAncestor: function(o, h) {
1789
+ this.isRemovable(o) ? $e(o, h) : H(o, this.className);
1790
+ }, applyToRange: function(o, h) {
1791
1791
  var u = this, y = le((h = h || []) || []);
1792
- r.splitBoundariesPreservingPositions(y), u.removeEmptyElements && u.removeEmptyContainers(r);
1793
- var S = Be(r);
1792
+ o.splitBoundariesPreservingPositions(y), u.removeEmptyElements && u.removeEmptyContainers(o);
1793
+ var S = Be(o);
1794
1794
  if (S.length) {
1795
1795
  g(S, function(v) {
1796
1796
  u.isIgnorableWhiteSpaceNode(v) || u.getSelfOrAncestorWithClass(v) || !u.isModifiable(v) || u.applyToTextNode(v, y);
1797
1797
  });
1798
1798
  var O = S[S.length - 1];
1799
- r.setStartAndEnd(S[0], 0, O, O.length), u.normalize && u.postApply(S, r, y, !1), ve(h, y);
1799
+ o.setStartAndEnd(S[0], 0, O, O.length), u.normalize && u.postApply(S, o, y, !1), ve(h, y);
1800
1800
  }
1801
- var P = u.getEmptyElements(r);
1801
+ var P = u.getEmptyElements(o);
1802
1802
  g(P, function(v) {
1803
1803
  M(v, u.className);
1804
1804
  });
1805
- }, applyToRanges: function(r) {
1806
- for (var h = r.length; h--; )
1807
- this.applyToRange(r[h], r);
1808
- return r;
1809
- }, applyToSelection: function(r) {
1810
- var h = e.getSelection(r);
1805
+ }, applyToRanges: function(o) {
1806
+ for (var h = o.length; h--; )
1807
+ this.applyToRange(o[h], o);
1808
+ return o;
1809
+ }, applyToSelection: function(o) {
1810
+ var h = e.getSelection(o);
1811
1811
  h.setRanges(this.applyToRanges(h.getAllRanges()));
1812
- }, undoToRange: function(r, h) {
1812
+ }, undoToRange: function(o, h) {
1813
1813
  var u = this, y = le(h = h || []);
1814
- r.splitBoundariesPreservingPositions(y), u.removeEmptyElements && u.removeEmptyContainers(r, y);
1815
- var S, O, P = Be(r), v = P[P.length - 1];
1814
+ o.splitBoundariesPreservingPositions(y), u.removeEmptyElements && u.removeEmptyContainers(o, y);
1815
+ var S, O, P = Be(o), v = P[P.length - 1];
1816
1816
  if (P.length) {
1817
- u.splitAncestorWithClass(r.endContainer, r.endOffset, y), u.splitAncestorWithClass(r.startContainer, r.startOffset, y);
1817
+ u.splitAncestorWithClass(o.endContainer, o.endOffset, y), u.splitAncestorWithClass(o.startContainer, o.startOffset, y);
1818
1818
  for (var D = 0, W = P.length; D < W; ++D)
1819
1819
  S = P[D], (O = u.getSelfOrAncestorWithClass(S)) && u.isModifiable(S) && u.undoToAncestor(O, y);
1820
- r.setStartAndEnd(P[0], 0, v, v.length), u.normalize && u.postApply(P, r, y, !0), ve(h, y);
1820
+ o.setStartAndEnd(P[0], 0, v, v.length), u.normalize && u.postApply(P, o, y, !0), ve(h, y);
1821
1821
  }
1822
- var I = u.getEmptyElements(r);
1822
+ var I = u.getEmptyElements(o);
1823
1823
  g(I, function(U) {
1824
1824
  H(U, u.className);
1825
1825
  });
1826
- }, undoToRanges: function(r) {
1827
- for (var h = r.length; h--; )
1828
- this.undoToRange(r[h], r);
1829
- return r;
1830
- }, undoToSelection: function(r) {
1831
- var h = e.getSelection(r), u = e.getSelection(r).getAllRanges();
1826
+ }, undoToRanges: function(o) {
1827
+ for (var h = o.length; h--; )
1828
+ this.undoToRange(o[h], o);
1829
+ return o;
1830
+ }, undoToSelection: function(o) {
1831
+ var h = e.getSelection(o), u = e.getSelection(o).getAllRanges();
1832
1832
  this.undoToRanges(u), h.setRanges(u);
1833
- }, isAppliedToRange: function(r) {
1834
- if (r.collapsed || r.toString() == "")
1835
- return !!this.getSelfOrAncestorWithClass(r.commonAncestorContainer);
1836
- var h = r.getNodes([3]);
1833
+ }, isAppliedToRange: function(o) {
1834
+ if (o.collapsed || o.toString() == "")
1835
+ return !!this.getSelfOrAncestorWithClass(o.commonAncestorContainer);
1836
+ var h = o.getNodes([3]);
1837
1837
  if (h.length) {
1838
1838
  for (var u, y = 0; u = h[y++]; )
1839
- if (!this.isIgnorableWhiteSpaceNode(u) && Ne(r, u) && this.isModifiable(u) && !this.getSelfOrAncestorWithClass(u))
1839
+ if (!this.isIgnorableWhiteSpaceNode(u) && Ne(o, u) && this.isModifiable(u) && !this.getSelfOrAncestorWithClass(u))
1840
1840
  return !1;
1841
1841
  }
1842
1842
  return !0;
1843
- }, findEffectiveTextNodes: function(r) {
1844
- return Be(r);
1845
- }, isAppliedToRanges: function(r) {
1846
- var h = r.length;
1843
+ }, findEffectiveTextNodes: function(o) {
1844
+ return Be(o);
1845
+ }, isAppliedToRanges: function(o) {
1846
+ var h = o.length;
1847
1847
  if (h == 0)
1848
1848
  return !1;
1849
1849
  for (; h--; )
1850
- if (!this.isAppliedToRange(r[h]))
1850
+ if (!this.isAppliedToRange(o[h]))
1851
1851
  return !1;
1852
1852
  return !0;
1853
- }, isAppliedToSelection: function(r) {
1854
- var h = e.getSelection(r);
1853
+ }, isAppliedToSelection: function(o) {
1854
+ var h = e.getSelection(o);
1855
1855
  return this.isAppliedToRanges(h.getAllRanges());
1856
- }, toggleRange: function(r) {
1857
- this.isAppliedToRange(r) ? this.undoToRange(r) : this.applyToRange(r);
1858
- }, toggleSelection: function(r) {
1859
- this.isAppliedToSelection(r) ? this.undoToSelection(r) : this.applyToSelection(r);
1860
- }, getElementsWithClassIntersectingRange: function(r) {
1856
+ }, toggleRange: function(o) {
1857
+ this.isAppliedToRange(o) ? this.undoToRange(o) : this.applyToRange(o);
1858
+ }, toggleSelection: function(o) {
1859
+ this.isAppliedToSelection(o) ? this.undoToSelection(o) : this.applyToSelection(o);
1860
+ }, getElementsWithClassIntersectingRange: function(o) {
1861
1861
  var h = [], u = this;
1862
- return r.getNodes([3], function(y) {
1862
+ return o.getNodes([3], function(y) {
1863
1863
  var S = u.getSelfOrAncestorWithClass(y);
1864
1864
  S && !a(h, S) && h.push(S);
1865
1865
  }), h;
1866
1866
  }, detach: function() {
1867
- } }, ue.util = { hasClass: A, addClass: M, removeClass: H, getClass: z, hasSameClasses: de, hasAllClasses: fe, replaceWithOwnChildren: $e, elementsHaveSameNonClassAttributes: Ye, elementHasNonClassAttributes: function(r, h) {
1868
- for (var u, y = 0, S = r.attributes.length; y < S; ++y)
1869
- if (u = r.attributes[y].name, (!h || !a(h, u)) && r.attributes[y].specified && u != "class")
1867
+ } }, ue.util = { hasClass: A, addClass: M, removeClass: H, getClass: z, hasSameClasses: de, hasAllClasses: fe, replaceWithOwnChildren: $e, elementsHaveSameNonClassAttributes: Ye, elementHasNonClassAttributes: function(o, h) {
1868
+ for (var u, y = 0, S = o.attributes.length; y < S; ++y)
1869
+ if (u = o.attributes[y].name, (!h || !a(h, u)) && o.attributes[y].specified && u != "class")
1870
1870
  return !0;
1871
1871
  return !1;
1872
- }, splitNodeAt: p, isEditableElement: Ae, isEditingHost: De, isEditable: V }, e.CssClassApplier = e.ClassApplier = ue, e.createClassApplier = function(r, h, u) {
1873
- return new ue(r, h, u);
1872
+ }, splitNodeAt: p, isEditableElement: Ae, isEditingHost: De, isEditable: V }, e.CssClassApplier = e.ClassApplier = ue, e.createClassApplier = function(o, h, u) {
1873
+ return new ue(o, h, u);
1874
1874
  }, c.createAliasForDeprecatedMethod(e, "createCssClassApplier", "createClassApplier", t);
1875
1875
  }), _;
1876
1876
  }
1877
- const Gt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19 17V10.2135C19 10.1287 18.9011 10.0824 18.836 10.1367L16 12.5"/></svg>', Xt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10 19 9.5 19 12C19 13.9771 16.0684 13.9997 16.0012 16.8981C15.9999 16.9533 16.0448 17 16.1 17L19.3 17"/></svg>', Qt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10.5 16.8323 10 17.6 10C18.3677 10 19.5 10.311 19.5 11.5C19.5 12.5315 18.7474 12.9022 18.548 12.9823C18.5378 12.9864 18.5395 13.0047 18.5503 13.0063C18.8115 13.0456 20 13.3065 20 14.8C20 16 19.5 17 17.8 17C17.8 17 16 17 16 16.3"/></svg>', Zt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M18 10L15.2834 14.8511C15.246 14.9178 15.294 15 15.3704 15C16.8489 15 18.7561 15 20.2 15M19 17C19 15.7187 19 14.8813 19 13.6"/></svg>', Jt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 15.9C16 15.9 16.3768 17 17.8 17C19.5 17 20 15.6199 20 14.7C20 12.7323 17.6745 12.0486 16.1635 12.9894C16.094 13.0327 16 12.9846 16 12.9027V10.1C16 10.0448 16.0448 10 16.1 10H19.8"/></svg>', en = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19.5 10C16.5 10.5 16 13.3285 16 15M16 15V15C16 16.1046 16.8954 17 18 17H18.3246C19.3251 17 20.3191 16.3492 20.2522 15.3509C20.0612 12.4958 16 12.6611 16 15Z"/></svg>', tn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9.2 12L11.0586 13.8586C11.1367 13.9367 11.2633 13.9367 11.3414 13.8586L14.7 10.5"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>', nn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 8L12 12M12 12L16 16M12 12L16 8M12 12L8 16"/></svg>', sn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7.69998 12.6L7.67896 12.62C6.53993 13.7048 6.52012 15.5155 7.63516 16.625V16.625C8.72293 17.7073 10.4799 17.7102 11.5712 16.6314L13.0263 15.193C14.0703 14.1609 14.2141 12.525 13.3662 11.3266L13.22 11.12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16.22 11.12L16.3564 10.9805C17.2895 10.0265 17.3478 8.5207 16.4914 7.49733V7.49733C15.5691 6.39509 13.9269 6.25143 12.8271 7.17675L11.3901 8.38588C10.0935 9.47674 9.95706 11.4241 11.0888 12.6852L11.12 12.72"/></svg>', rn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="9" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 17H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 12H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 7H4.99002"/></svg>', on = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="12" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7.79999 14L7.79999 7.2135C7.79999 7.12872 7.7011 7.0824 7.63597 7.13668L4.79999 9.5"/></svg>', bn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.13968 15.32L8.69058 11.5661C9.02934 11.2036 9.48873 11 9.96774 11C10.4467 11 10.9061 11.2036 11.2449 11.5661L15.3871 16M13.5806 14.0664L15.0132 12.533C15.3519 12.1705 15.8113 11.9668 16.2903 11.9668C16.7693 11.9668 17.2287 12.1705 17.5675 12.533L18.841 13.9634"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.7778 9.33331H13.7867"/></svg>', Sn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 9V7.2C8 7.08954 8.08954 7 8.2 7L12 7M16 9V7.2C16 7.08954 15.9105 7 15.8 7L12 7M12 7L12 17M12 17H10M12 17H14"/></svg>', Tn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M15.7795 11.5C15.7795 11.5 16.053 11.1962 16.5497 10.6722C17.4442 9.72856 17.4701 8.2475 16.5781 7.30145V7.30145C15.6482 6.31522 14.0873 6.29227 13.1288 7.25073L11.8796 8.49999"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8.24517 12.3883C8.24517 12.3883 7.97171 12.6922 7.47504 13.2161C6.58051 14.1598 6.55467 15.6408 7.44666 16.5869V16.5869C8.37653 17.5731 9.93744 17.5961 10.8959 16.6376L12.1452 15.3883"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M17.7802 15.1032L16.597 14.9422C16.0109 14.8624 15.4841 15.3059 15.4627 15.8969L15.4199 17.0818"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6.39064 9.03238L7.58432 9.06668C8.17551 9.08366 8.6522 8.58665 8.61056 7.99669L8.5271 6.81397"/><line x1="12.1142" x2="11.7" y1="12.2" y2="11.7858" stroke="currentColor" stroke-linecap="round" stroke-width="2"/></svg>', an = '<svg t="1763708081701" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2604" width="24" height="24"><path d="M469.3330000000001 725.333H896V640H469.3330000000001v85.333zM128 512l170.667 170.667V341.3330000000001L128 512z m0 384h768v-85.333H128V896z m0-768v85.333h768V128H128z m341.333 256H896v-85.333H469.3330000000001V384z m0 170.667H896v-85.334H469.3330000000001v85.334z" p-id="2605" fill="#000000"></path></svg>', ln = '<svg t="1763708124227" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2788" width="24" height="24"><path d="M128 896h768v-85.333H128V896z m0-554.667v341.334L298.667 512 128 341.333z m341.333 384H896V640H469.333v85.333zM128 128v85.333h768V128H128z m341.333 256H896v-85.333H469.333V384z m0 170.667H896v-85.334H469.333v85.334z" p-id="2789" fill="#000000"></path></svg>';
1878
- class $n {
1877
+ const Xt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19 17V10.2135C19 10.1287 18.9011 10.0824 18.836 10.1367L16 12.5"/></svg>', Gt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10 19 9.5 19 12C19 13.9771 16.0684 13.9997 16.0012 16.8981C15.9999 16.9533 16.0448 17 16.1 17L19.3 17"/></svg>', Zt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10.5 16.8323 10 17.6 10C18.3677 10 19.5 10.311 19.5 11.5C19.5 12.5315 18.7474 12.9022 18.548 12.9823C18.5378 12.9864 18.5395 13.0047 18.5503 13.0063C18.8115 13.0456 20 13.3065 20 14.8C20 16 19.5 17 17.8 17C17.8 17 16 17 16 16.3"/></svg>', Jt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M18 10L15.2834 14.8511C15.246 14.9178 15.294 15 15.3704 15C16.8489 15 18.7561 15 20.2 15M19 17C19 15.7187 19 14.8813 19 13.6"/></svg>', Qt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 15.9C16 15.9 16.3768 17 17.8 17C19.5 17 20 15.6199 20 14.7C20 12.7323 17.6745 12.0486 16.1635 12.9894C16.094 13.0327 16 12.9846 16 12.9027V10.1C16 10.0448 16.0448 10 16.1 10H19.8"/></svg>', en = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19.5 10C16.5 10.5 16 13.3285 16 15M16 15V15C16 16.1046 16.8954 17 18 17H18.3246C19.3251 17 20.3191 16.3492 20.2522 15.3509C20.0612 12.4958 16 12.6611 16 15Z"/></svg>', tn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9.2 12L11.0586 13.8586C11.1367 13.9367 11.2633 13.9367 11.3414 13.8586L14.7 10.5"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>', nn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 8L12 12M12 12L16 16M12 12L16 8M12 12L8 16"/></svg>', sn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7.69998 12.6L7.67896 12.62C6.53993 13.7048 6.52012 15.5155 7.63516 16.625V16.625C8.72293 17.7073 10.4799 17.7102 11.5712 16.6314L13.0263 15.193C14.0703 14.1609 14.2141 12.525 13.3662 11.3266L13.22 11.12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16.22 11.12L16.3564 10.9805C17.2895 10.0265 17.3478 8.5207 16.4914 7.49733V7.49733C15.5691 6.39509 13.9269 6.25143 12.8271 7.17675L11.3901 8.38588C10.0935 9.47674 9.95706 11.4241 11.0888 12.6852L11.12 12.72"/></svg>', on = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="9" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 17H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 12H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 7H4.99002"/></svg>', rn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="12" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7.79999 14L7.79999 7.2135C7.79999 7.12872 7.7011 7.0824 7.63597 7.13668L4.79999 9.5"/></svg>', bn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.13968 15.32L8.69058 11.5661C9.02934 11.2036 9.48873 11 9.96774 11C10.4467 11 10.9061 11.2036 11.2449 11.5661L15.3871 16M13.5806 14.0664L15.0132 12.533C15.3519 12.1705 15.8113 11.9668 16.2903 11.9668C16.7693 11.9668 17.2287 12.1705 17.5675 12.533L18.841 13.9634"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.7778 9.33331H13.7867"/></svg>', Sn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 9V7.2C8 7.08954 8.08954 7 8.2 7L12 7M16 9V7.2C16 7.08954 15.9105 7 15.8 7L12 7M12 7L12 17M12 17H10M12 17H14"/></svg>', Tn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M15.7795 11.5C15.7795 11.5 16.053 11.1962 16.5497 10.6722C17.4442 9.72856 17.4701 8.2475 16.5781 7.30145V7.30145C15.6482 6.31522 14.0873 6.29227 13.1288 7.25073L11.8796 8.49999"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8.24517 12.3883C8.24517 12.3883 7.97171 12.6922 7.47504 13.2161C6.58051 14.1598 6.55467 15.6408 7.44666 16.5869V16.5869C8.37653 17.5731 9.93744 17.5961 10.8959 16.6376L12.1452 15.3883"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M17.7802 15.1032L16.597 14.9422C16.0109 14.8624 15.4841 15.3059 15.4627 15.8969L15.4199 17.0818"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6.39064 9.03238L7.58432 9.06668C8.17551 9.08366 8.6522 8.58665 8.61056 7.99669L8.5271 6.81397"/><line x1="12.1142" x2="11.7" y1="12.2" y2="11.7858" stroke="currentColor" stroke-linecap="round" stroke-width="2"/></svg>', an = '<svg t="1763708081701" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2604" width="24" height="24"><path d="M469.3330000000001 725.333H896V640H469.3330000000001v85.333zM128 512l170.667 170.667V341.3330000000001L128 512z m0 384h768v-85.333H128V896z m0-768v85.333h768V128H128z m341.333 256H896v-85.333H469.3330000000001V384z m0 170.667H896v-85.334H469.3330000000001v85.334z" p-id="2605" fill="#000000"></path></svg>', ln = '<svg t="1763708124227" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2788" width="24" height="24"><path d="M128 896h768v-85.333H128V896z m0-554.667v341.334L298.667 512 128 341.333z m341.333 384H896V640H469.333v85.333zM128 128v85.333h768V128H128z m341.333 256H896v-85.333H469.333V384z m0 170.667H896v-85.334H469.333v85.334z" p-id="2789" fill="#000000"></path></svg>';
1878
+ class jn {
1879
1879
  constructor(e, t) {
1880
1880
  this.holder = document.getElementById(e), this.holder.addEventListener("click", (n) => {
1881
1881
  this.holder.querySelectorAll('div[data-input-wrap="true"]').forEach((s) => {
@@ -1915,10 +1915,10 @@ class $n {
1915
1915
  H.innerHTML = Tn, H.setAttribute("class", "ce-el-link-icon-btn ce-el-link-unlink-btn ce-el-link__noedit"), H.setAttribute("title", "取消链接");
1916
1916
  const z = document.createElement("div");
1917
1917
  z.innerHTML = '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="2483" width="20" height="20"><path d="M391.467 736.322a31.99 31.99 0 0 1-13.783 8.126l-232.261 66.798c-12.088 3.477-23.276-7.711-19.799-19.799l66.798-232.261a32 32 0 0 1 8.126-13.782l472.869-472.87c12.496-12.496 32.758-12.496 45.254 0L864.335 218.2c12.497 12.496 12.497 32.758 0 45.255L391.467 736.322z m248.009-516.709l77.781 77.782 56.569-56.569-77.782-77.782-56.568 56.569z m-50.912 50.911L265.88 593.209l-31.401 109.182 109.182-31.401 322.685-322.684-77.782-77.782zM129.001 889h768v72h-768v-72z" fill="#323338" ></path></svg>', z.setAttribute("class", "ce-el-link-icon-btn ce-el-link-edit-btn ce-el-link__noedit"), z.setAttribute("title", "编辑链接");
1918
- const X = document.createElement("button");
1919
- X.setAttribute("type", "button"), X.setAttribute("class", "ce-el-link-btn ce-el-link__noedit"), X.innerHTML = "确定", M.appendChild(z), M.appendChild(H), M.appendChild(X), z.addEventListener("click", (ie) => {
1920
- ie.preventDefault(), ie.stopPropagation(), N.classList.remove("ce-el-link__noedit"), A.classList.remove("ce-el-link__noedit"), z.classList.remove("ce-el-link__noedit"), H.classList.remove("ce-el-link__noedit"), X.classList.remove("ce-el-link__noedit"), s.removeEventListener("mouseout", this.mouseOut), E.removeEventListener("mouseout", this.mouseOut);
1921
- }), X.addEventListener("click", (ie) => {
1918
+ const G = document.createElement("button");
1919
+ G.setAttribute("type", "button"), G.setAttribute("class", "ce-el-link-btn ce-el-link__noedit"), G.innerHTML = "确定", M.appendChild(z), M.appendChild(H), M.appendChild(G), z.addEventListener("click", (ie) => {
1920
+ ie.preventDefault(), ie.stopPropagation(), N.classList.remove("ce-el-link__noedit"), A.classList.remove("ce-el-link__noedit"), z.classList.remove("ce-el-link__noedit"), H.classList.remove("ce-el-link__noedit"), G.classList.remove("ce-el-link__noedit"), s.removeEventListener("mouseout", this.mouseOut), E.removeEventListener("mouseout", this.mouseOut);
1921
+ }), G.addEventListener("click", (ie) => {
1922
1922
  var de;
1923
1923
  ie.preventDefault(), ie.stopPropagation(), s.href = N.value, (de = s.querySelector('div[data-input-wrap="true"]')) == null || de.remove();
1924
1924
  }), H.addEventListener("click", (ie) => {
@@ -1939,7 +1939,7 @@ class $n {
1939
1939
  return !0;
1940
1940
  }
1941
1941
  }
1942
- class jn {
1942
+ class qn {
1943
1943
  constructor(e, t, n, s) {
1944
1944
  const { blocks: a, toolbar: c } = n;
1945
1945
  this.toolbar = c, this.borderStyle = s || "1px dashed #aaa", this.api = a, this.holder = document.getElementById(e), this.readOnly = t, this.startBlock = null, this.endBlock = null, this.setDragListener(), this.setDropListener();
@@ -2011,7 +2011,7 @@ class jn {
2011
2011
  this.isTheOnlyBlock() || this.api.move(this.endBlock, this.startBlock);
2012
2012
  }
2013
2013
  }
2014
- class qn {
2014
+ class Vn {
2015
2015
  constructor(e, t, n) {
2016
2016
  this.holder = document.getElementById(e), this.readOnly = t, this.editor = n, this.blockSelection = n.blockSelection, this.readOnly || this.setListener();
2017
2017
  }
@@ -2033,7 +2033,7 @@ class qn {
2033
2033
  return !0;
2034
2034
  }
2035
2035
  }
2036
- class Vn {
2036
+ class Kn {
2037
2037
  constructor({ data: e, config: t, api: n, readOnly: s }) {
2038
2038
  this.api = n, this.readOnly = s, this._settings = { placeholder: "H1" }, this._data = this.normalizeData(e), this._element = this.getTag();
2039
2039
  }
@@ -2101,7 +2101,7 @@ class Vn {
2101
2101
  e.dataset.placeholder = this.api.i18n.t(this._settings.placeholder || "");
2102
2102
  }
2103
2103
  get defaultLevel() {
2104
- return { number: 1, tag: "H1", svg: Gt };
2104
+ return { number: 1, tag: "H1", svg: Xt };
2105
2105
  }
2106
2106
  onPaste(e) {
2107
2107
  const t = e.detail;
@@ -2111,10 +2111,10 @@ class Vn {
2111
2111
  }
2112
2112
  }
2113
2113
  static get toolbox() {
2114
- return { icon: Gt, title: "H1" };
2114
+ return { icon: Xt, title: "H1" };
2115
2115
  }
2116
2116
  }
2117
- class Kn {
2117
+ class Yn {
2118
2118
  constructor({ data: e, config: t, api: n, readOnly: s }) {
2119
2119
  this.api = n, this.readOnly = s, this._settings = { placeholder: "H2" }, this._data = this.normalizeData(e), this._element = this.getTag();
2120
2120
  }
@@ -2182,7 +2182,7 @@ class Kn {
2182
2182
  e.dataset.placeholder = this.api.i18n.t(this._settings.placeholder || "");
2183
2183
  }
2184
2184
  get defaultLevel() {
2185
- return { number: 2, tag: "H2", svg: Xt };
2185
+ return { number: 2, tag: "H2", svg: Gt };
2186
2186
  }
2187
2187
  onPaste(e) {
2188
2188
  const t = e.detail;
@@ -2192,10 +2192,10 @@ class Kn {
2192
2192
  }
2193
2193
  }
2194
2194
  static get toolbox() {
2195
- return { icon: Xt, title: "H2" };
2195
+ return { icon: Gt, title: "H2" };
2196
2196
  }
2197
2197
  }
2198
- class Yn {
2198
+ class Xn {
2199
2199
  constructor({ data: e, config: t, api: n, readOnly: s }) {
2200
2200
  this.api = n, this.readOnly = s, this._settings = { placeholder: "H3" }, this._data = this.normalizeData(e), this._element = this.getTag();
2201
2201
  }
@@ -2263,7 +2263,7 @@ class Yn {
2263
2263
  e.dataset.placeholder = this.api.i18n.t(this._settings.placeholder || "");
2264
2264
  }
2265
2265
  get defaultLevel() {
2266
- return { number: 3, tag: "H3", svg: Qt };
2266
+ return { number: 3, tag: "H3", svg: Zt };
2267
2267
  }
2268
2268
  onPaste(e) {
2269
2269
  const t = e.detail;
@@ -2273,7 +2273,7 @@ class Yn {
2273
2273
  }
2274
2274
  }
2275
2275
  static get toolbox() {
2276
- return { icon: Qt, title: "H3" };
2276
+ return { icon: Zt, title: "H3" };
2277
2277
  }
2278
2278
  }
2279
2279
  class Gn {
@@ -2344,7 +2344,7 @@ class Gn {
2344
2344
  e.dataset.placeholder = this.api.i18n.t(this._settings.placeholder || "");
2345
2345
  }
2346
2346
  get defaultLevel() {
2347
- return { number: 4, tag: "H4", svg: Zt };
2347
+ return { number: 4, tag: "H4", svg: Jt };
2348
2348
  }
2349
2349
  onPaste(e) {
2350
2350
  const t = e.detail;
@@ -2354,10 +2354,10 @@ class Gn {
2354
2354
  }
2355
2355
  }
2356
2356
  static get toolbox() {
2357
- return { icon: Zt, title: "H4" };
2357
+ return { icon: Jt, title: "H4" };
2358
2358
  }
2359
2359
  }
2360
- class Xn {
2360
+ class Zn {
2361
2361
  constructor({ data: e, config: t, api: n, readOnly: s }) {
2362
2362
  this.api = n, this.readOnly = s, this._settings = { placeholder: "H5" }, this._data = this.normalizeData(e), this._element = this.getTag();
2363
2363
  }
@@ -2425,7 +2425,7 @@ class Xn {
2425
2425
  e.dataset.placeholder = this.api.i18n.t(this._settings.placeholder || "");
2426
2426
  }
2427
2427
  get defaultLevel() {
2428
- return { number: 5, tag: "H5", svg: Jt };
2428
+ return { number: 5, tag: "H5", svg: Qt };
2429
2429
  }
2430
2430
  onPaste(e) {
2431
2431
  const t = e.detail;
@@ -2435,10 +2435,10 @@ class Xn {
2435
2435
  }
2436
2436
  }
2437
2437
  static get toolbox() {
2438
- return { icon: Jt, title: "H5" };
2438
+ return { icon: Qt, title: "H5" };
2439
2439
  }
2440
2440
  }
2441
- class Qn {
2441
+ class Jn {
2442
2442
  constructor({ data: e, config: t, api: n, readOnly: s }) {
2443
2443
  this.api = n, this.readOnly = s, this._settings = { placeholder: "H6" }, this._data = this.normalizeData(e), this._element = this.getTag();
2444
2444
  }
@@ -2689,7 +2689,7 @@ class St {
2689
2689
  const e = document.createElement("div"), t = document.createElement("div"), n = document.createElement("div"), s = document.createElement("div"), a = document.createElement("div");
2690
2690
  this.wrapperCopyTip = document.createElement("div");
2691
2691
  const c = document.createElement("select"), g = document.createElement("select"), C = document.createElement("span"), T = document.createElement("textarea"), E = document.createElement("div");
2692
- return E.classList.add("ce-editorjs-x-shiki__code__dragHandler"), e.classList.add(this.CSS.baseClass, this.CSS.wrapper), this.readOnly ? e.classList.add("read-only") : e.classList.add("editable"), t.classList.add("ce-editorjs-x-shiki__code"), n.classList.add("ce-editorjs-x-shiki__selector"), s.classList.add("ce-editorjs-x-shiki__lang"), a.classList.add("ce-editorjs-x-shiki__copy"), this.wrapperCopyTip.classList.add("ce-editorjs-x-shiki__copy_tip"), c.classList.add(this.CSS.selectorLanguage), T.classList.add(this.CSS.textarea, this.CSS.input), s.innerHTML = this.data.lang, a.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 8.5H10.25C9.2835 8.5 8.5 9.2835 8.5 10.25V17.25C8.5 18.2165 9.2835 19 10.25 19H17.25C18.2165 19 19 18.2165 19 17.25V10.25C19 9.2835 18.2165 8.5 17.25 8.5Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.5 8.5V6.75C15.5 6.28587 15.3156 5.84075 14.9874 5.51256C14.6592 5.18437 14.2141 5 13.75 5H6.75C6.28587 5 5.84075 5.18437 5.51256 5.51256C5.18437 5.84075 5 6.28587 5 6.75V13.75C5 14.2141 5.18437 14.6592 5.51256 14.9874C5.84075 15.3156 6.28587 15.5 6.75 15.5H8.5"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12L15.5 12"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15.5L15.5 15.5"/></svg>', this.wrapperCopyTip.innerText = this.api.i18n.t("Copied"), Pn.forEach((N) => {
2692
+ return E.classList.add("ce-editorjs-x-shiki__code__dragHandler"), e.classList.add(this.CSS.baseClass, this.CSS.wrapper), this.readOnly ? e.classList.add("read-only") : e.classList.add("editable"), t.classList.add("ce-editorjs-x-shiki__code"), n.classList.add("ce-editorjs-x-shiki__selector"), s.classList.add("ce-editorjs-x-shiki__lang"), a.classList.add("ce-editorjs-x-shiki__copy"), this.wrapperCopyTip.classList.add("ce-editorjs-x-shiki__copy_tip"), c.classList.add(this.CSS.selectorLanguage), T.classList.add(this.CSS.textarea, this.CSS.input), s.innerHTML = this.data.lang, a.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 8.5H10.25C9.2835 8.5 8.5 9.2835 8.5 10.25V17.25C8.5 18.2165 9.2835 19 10.25 19H17.25C18.2165 19 19 18.2165 19 17.25V10.25C19 9.2835 18.2165 8.5 17.25 8.5Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.5 8.5V6.75C15.5 6.28587 15.3156 5.84075 14.9874 5.51256C14.6592 5.18437 14.2141 5 13.75 5H6.75C6.28587 5 5.84075 5.18437 5.51256 5.51256C5.18437 5.84075 5 6.28587 5 6.75V13.75C5 14.2141 5.18437 14.6592 5.51256 14.9874C5.84075 15.3156 6.28587 15.5 6.75 15.5H8.5"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12L15.5 12"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15.5L15.5 15.5"/></svg>', this.wrapperCopyTip.innerText = this.api.i18n.t("Copied"), zn.forEach((N) => {
2693
2693
  const A = document.createElement("option");
2694
2694
  A.value = N.id, A.text = N.name, c.appendChild(A);
2695
2695
  }), c.value = this.data.lang, T.value = this.data.code, T.placeholder = this.placeholder, T.spellcheck = !1, T.autocomplete = "off", T.autocapitalize = "off", this.readOnly && (T.disabled = !0), t.appendChild(C), t.appendChild(T), e.appendChild(E), this.data.resizeSize && this.data.resizeSize > 0 && (t.style.height = this.data.resizeSize + "px"), this.readOnly ? n.appendChild(s) : n.appendChild(c), a.appendChild(this.wrapperCopyTip), n.appendChild(a), e.appendChild(n), e.appendChild(t), this.runShiki().then(({ html: N, preStyle: A }) => {
@@ -2734,7 +2734,7 @@ class St {
2734
2734
  }
2735
2735
  async runShiki() {
2736
2736
  let e = "";
2737
- return { html: await zn(this.data.code, { lang: this._selectorLanguage, theme: this._selectorTheme, transformers: [{ preprocess: (n) => `${n}`, pre(n) {
2737
+ return { html: await Wn(this.data.code, { lang: this._selectorLanguage, theme: this._selectorTheme, transformers: [{ preprocess: (n) => `${n}`, pre(n) {
2738
2738
  var s;
2739
2739
  this.addClassToHast(n, "ce-editorjs-x-shiki__span"), e = ((s = n.properties) == null ? void 0 : s.style) || "";
2740
2740
  }, line(n, s) {
@@ -2772,7 +2772,7 @@ class St {
2772
2772
  }
2773
2773
  }
2774
2774
  }
2775
- class Zn {
2775
+ class Qn {
2776
2776
  constructor({ data: e, api: t, readOnly: n }) {
2777
2777
  this.api = t, this.readOnly = n, this._data = { text: e.text || "" }, this._CSS = { baseClass: this.api.styles.block, wrapper: "cdx-quote", text: "cdx-quote__text", input: this.api.styles.input };
2778
2778
  }
@@ -2819,7 +2819,7 @@ class Zn {
2819
2819
  return { text: { br: !0 } };
2820
2820
  }
2821
2821
  }
2822
- class Jn {
2822
+ class ei {
2823
2823
  static get isReadOnlySupported() {
2824
2824
  return !0;
2825
2825
  }
@@ -2944,7 +2944,7 @@ class me {
2944
2944
  e.classList.remove(me.CSS.noHover);
2945
2945
  }
2946
2946
  }
2947
- function Ht(_, e = "after") {
2947
+ function Bt(_, e = "after") {
2948
2948
  const t = [];
2949
2949
  let n;
2950
2950
  function s(a) {
@@ -2963,21 +2963,21 @@ function Ke(_, e = !0) {
2963
2963
  let t = _;
2964
2964
  return _.classList.contains(ke.item) && (t = _.querySelector(`.${ke.itemChildren}`)), t === null ? [] : e ? Array.from(t.querySelectorAll(`:scope > .${ke.item}`)) : Array.from(t.querySelectorAll(`.${ke.item}`));
2965
2965
  }
2966
- function lt(_) {
2966
+ function et(_) {
2967
2967
  return _.querySelector(`.${ke.itemChildren}`);
2968
2968
  }
2969
- function Bt(_) {
2969
+ function Dt(_) {
2970
2970
  let e = _;
2971
- _.classList.contains(ke.item) && (e = lt(_)), e !== null && Ke(e).length === 0 && e.remove();
2971
+ _.classList.contains(ke.item) && (e = et(_)), e !== null && Ke(e).length === 0 && e.remove();
2972
2972
  }
2973
- function $t(_) {
2973
+ function Lt(_) {
2974
2974
  return _.querySelector(`.${ke.itemContent}`);
2975
2975
  }
2976
2976
  function ut(_, e = !0) {
2977
- const t = $t(_);
2977
+ const t = Lt(_);
2978
2978
  t && Bn(t, e);
2979
2979
  }
2980
- class Dt {
2980
+ class Pt {
2981
2981
  get currentItem() {
2982
2982
  const e = window.getSelection();
2983
2983
  if (!e)
@@ -3013,7 +3013,7 @@ class Dt {
3013
3013
  }
3014
3014
  save(e) {
3015
3015
  const t = e != null ? e : this.listWrapper, n = (c) => Ke(c).map((g) => {
3016
- const C = lt(g);
3016
+ const C = et(g);
3017
3017
  return { content: this.renderer.getItemContent(g), meta: this.renderer.getItemMeta(g), items: C ? n(C) : [] };
3018
3018
  }), s = t ? n(t) : [];
3019
3019
  let a = { style: this.data.style, meta: {}, items: s };
@@ -3023,13 +3023,13 @@ class Dt {
3023
3023
  return { tags: ["OL", "UL", "LI"] };
3024
3024
  }
3025
3025
  merge(e) {
3026
- const t = this.block.holder.querySelectorAll(`.${ke.item}`), n = t[t.length - 1], s = $t(n);
3026
+ const t = this.block.holder.querySelectorAll(`.${ke.item}`), n = t[t.length - 1], s = Lt(n);
3027
3027
  if (n === null || s === null || (s.insertAdjacentHTML("beforeend", e.items[0].content), this.listWrapper === void 0))
3028
3028
  return;
3029
3029
  const a = Ke(this.listWrapper);
3030
3030
  if (a.length === 0)
3031
3031
  return;
3032
- let c = lt(a[a.length - 1]);
3032
+ let c = et(a[a.length - 1]);
3033
3033
  const g = e.items.shift();
3034
3034
  g !== void 0 && (g.items.length !== 0 && (c === null && (c = this.renderer.renderWrapper(!1)), this.appendItems(g.items, c)), e.items.length > 0 && this.appendItems(e.items, this.listWrapper));
3035
3035
  }
@@ -3091,13 +3091,13 @@ class Dt {
3091
3091
  const t = e.parentNode.closest(`.${ke.item}`);
3092
3092
  if (!t)
3093
3093
  return;
3094
- let n = lt(e);
3094
+ let n = et(e);
3095
3095
  if (e.parentElement === null)
3096
3096
  return;
3097
- const s = Ht(e);
3097
+ const s = Bt(e);
3098
3098
  s !== null && (n === null && (n = this.renderer.renderWrapper(!1)), s.forEach((a) => {
3099
3099
  n.appendChild(a);
3100
- }), e.appendChild(n)), t.after(e), ut(e, !1), Bt(t);
3100
+ }), e.appendChild(n)), t.after(e), ut(e, !1), Dt(t);
3101
3101
  }
3102
3102
  splitList(e) {
3103
3103
  const t = Ke(e), n = this.block, s = this.api.blocks.getCurrentBlockIndex();
@@ -3107,7 +3107,7 @@ class Dt {
3107
3107
  }
3108
3108
  if (e.previousElementSibling === null && e.parentNode === this.listWrapper)
3109
3109
  return void this.convertItemToDefaultBlock(s);
3110
- const a = Ht(e);
3110
+ const a = Bt(e);
3111
3111
  if (a === null)
3112
3112
  return;
3113
3113
  const c = this.renderer.renderWrapper(!0);
@@ -3118,11 +3118,14 @@ class Dt {
3118
3118
  g.meta.start = this.data.style == "ordered" ? 1 : void 0, this.api.blocks.insert(n == null ? void 0 : n.name, g, this.config, s + 1), this.convertItemToDefaultBlock(s + 1), c.remove();
3119
3119
  }
3120
3120
  splitItem(e) {
3121
- const [t] = Dn();
3121
+ const [t, n] = Dn();
3122
3122
  if (t === null)
3123
3123
  return;
3124
- const n = this.renderItem(null);
3125
- e == null || e.after(n), ut(n);
3124
+ const s = Lt(e);
3125
+ let a = null;
3126
+ a = s === null ? "" : Pn(s, t, n, "right", !0);
3127
+ const c = et(e), g = this.renderItem(a);
3128
+ e == null || e.after(g), c && g.appendChild(c), ut(g);
3126
3129
  }
3127
3130
  mergeItemWithPrevious(e) {
3128
3131
  var N;
@@ -3142,19 +3145,19 @@ class Dt {
3142
3145
  if (!a)
3143
3146
  return;
3144
3147
  ut(a, !1);
3145
- const g = $t(a);
3148
+ const g = Lt(a);
3146
3149
  if (g === null)
3147
3150
  return;
3148
3151
  g.insertAdjacentHTML("beforeend", c);
3149
3152
  const C = Ke(e);
3150
3153
  if (C.length === 0)
3151
- return e.remove(), void Bt(a);
3152
- const T = t || s, E = (N = lt(T)) != null ? N : this.renderer.renderWrapper(!1);
3154
+ return e.remove(), void Dt(a);
3155
+ const T = t || s, E = (N = et(T)) != null ? N : this.renderer.renderWrapper(!1);
3153
3156
  t ? C.forEach((A) => {
3154
3157
  E.appendChild(A);
3155
3158
  }) : C.forEach((A) => {
3156
3159
  E.prepend(A);
3157
- }), lt(T) === null && a.appendChild(E), e.remove();
3160
+ }), et(T) === null && a.appendChild(E), e.remove();
3158
3161
  }
3159
3162
  addTab(e) {
3160
3163
  var a;
@@ -3170,7 +3173,7 @@ class Dt {
3170
3173
  const n = t.previousSibling;
3171
3174
  if (n === null || !rt(n))
3172
3175
  return;
3173
- const s = lt(n);
3176
+ const s = et(n);
3174
3177
  if (s)
3175
3178
  s.appendChild(t), Ke(t).forEach((c) => {
3176
3179
  s.appendChild(c);
@@ -3181,7 +3184,7 @@ class Dt {
3181
3184
  c.appendChild(g);
3182
3185
  }), n.appendChild(c);
3183
3186
  }
3184
- Bt(t), ut(t, !1);
3187
+ Dt(t), ut(t, !1);
3185
3188
  }
3186
3189
  convertItemToDefaultBlock(e, t) {
3187
3190
  let n;
@@ -3197,7 +3200,7 @@ class Dt {
3197
3200
  const c = t[0];
3198
3201
  this.unshiftItem(c), ut(e);
3199
3202
  }
3200
- const n = Ht(e), s = this.api.blocks.getCurrentBlockIndex(), a = n === null;
3203
+ const n = Bt(e), s = this.api.blocks.getCurrentBlockIndex(), a = n === null;
3201
3204
  this.convertItemToDefaultBlock(s, a);
3202
3205
  }
3203
3206
  renderItem(e, t) {
@@ -3220,7 +3223,7 @@ class Dt {
3220
3223
  }
3221
3224
  }
3222
3225
  const pt = { wrapper: `${Se}-start-with-field`, input: `${Se}-start-with-field__input`, startWithElementWrapperInvalid: `${Se}-start-with-field--invalid` }, bt = /* @__PURE__ */ new Map([["Numeric", "numeric"], ["Lower Roman", "lower-roman"], ["Upper Roman", "upper-roman"], ["Lower Alpha", "lower-alpha"], ["Upper Alpha", "upper-alpha"]]), cn = /* @__PURE__ */ new Map([["numeric", '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 14.2L10 7.4135C10 7.32872 9.90111 7.28241 9.83598 7.33668L7 9.7" stroke="black" stroke-width="1.6" stroke-linecap="round"/><path d="M13.2087 14.2H13.2" stroke="black" stroke-width="1.6" stroke-linecap="round"/></svg>'], ["lower-roman", '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.2087 14.2H13.2" stroke="black" stroke-width="1.6" stroke-linecap="round"/><path d="M10 14.2L10 9.5" stroke="black" stroke-width="1.6" stroke-linecap="round"/><path d="M10 7.01L10 7" stroke="black" stroke-width="1.8" stroke-linecap="round"/></svg>'], ["upper-roman", '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.2087 14.2H13.2" stroke="black" stroke-width="1.6" stroke-linecap="round"/><path d="M10 14.2L10 7.2" stroke="black" stroke-width="1.6" stroke-linecap="round"/></svg>'], ["lower-alpha", '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.2087 14.2H14.2" stroke="black" stroke-width="1.6" stroke-linecap="round"/><path d="M11.5 14.5C11.5 14.5 11 13.281 11 12.5M7 9.5C7 9.5 7.5 8.5 9 8.5C10.5 8.5 11 9.5 11 10.5L11 11.5M11 11.5L11 12.5M11 11.5C11 11.5 7 11 7 13C7 15.3031 11 15 11 12.5" stroke="black" stroke-width="1.6" stroke-linecap="round"/></svg>'], ["upper-alpha", '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.0087 14.2H16" stroke="black" stroke-width="1.6" stroke-linecap="round"/><path d="M7 14.2L7.78865 12M13 14.2L12.1377 12M7.78865 12C7.78865 12 9.68362 7 10 7C10.3065 7 12.1377 12 12.1377 12M7.78865 12L12.1377 12" stroke="black" stroke-width="1.6" stroke-linecap="round"/></svg>']]);
3223
- class Nt {
3226
+ class At {
3224
3227
  static get isReadOnlySupported() {
3225
3228
  return !0;
3226
3229
  }
@@ -3228,13 +3231,13 @@ class Nt {
3228
3231
  return !0;
3229
3232
  }
3230
3233
  static get toolbox() {
3231
- return [{ icon: rn, title: "Unordered List", data: { style: "unordered" } }, { icon: on, title: "Ordered List", data: { style: "ordered" } }, { icon: tn, title: "Checklist", data: { style: "checklist" } }];
3234
+ return [{ icon: on, title: "Unordered List", data: { style: "unordered" } }, { icon: rn, title: "Ordered List", data: { style: "ordered" } }, { icon: tn, title: "Checklist", data: { style: "checklist" } }];
3232
3235
  }
3233
3236
  static get pasteConfig() {
3234
3237
  return { tags: ["OL", "UL", "LI"] };
3235
3238
  }
3236
3239
  static get conversionConfig() {
3237
- return { export: (e) => Nt.joinRecursive(e), import: (e, t) => ({ meta: {}, items: [{ content: e, meta: {}, items: [] }], style: (t == null ? void 0 : t.defaultStyle) !== void 0 ? t.defaultStyle : "unordered" }) };
3240
+ return { export: (e) => At.joinRecursive(e), import: (e, t) => ({ meta: {}, items: [{ content: e, meta: {}, items: [] }], style: (t == null ? void 0 : t.defaultStyle) !== void 0 ? t.defaultStyle : "unordered" }) };
3238
3241
  }
3239
3242
  get listStyle() {
3240
3243
  return this.data.style || this.defaultListStyle;
@@ -3265,7 +3268,7 @@ class Nt {
3265
3268
  }(e) : c, this.listStyle === "ordered" && this.data.meta.counterType === void 0 && (this.data.meta.counterType = "numeric"), this.changeTabulatorByStyle();
3266
3269
  }
3267
3270
  static joinRecursive(e) {
3268
- return e.items.map((t) => `${t.content} ${Nt.joinRecursive(t)}`).join("");
3271
+ return e.items.map((t) => `${t.content} ${At.joinRecursive(t)}`).join("");
3269
3272
  }
3270
3273
  render() {
3271
3274
  return this.listElement = this.list.render(), this.listElement;
@@ -3278,9 +3281,9 @@ class Nt {
3278
3281
  }
3279
3282
  renderSettings() {
3280
3283
  var t;
3281
- const e = [{ label: this.api.i18n.t("Unordered"), icon: rn, closeOnActivate: !0, isActive: this.listStyle == "unordered", hint: { title: this.api.i18n.t("Convert to Unordered") }, onActivate: () => {
3284
+ const e = [{ label: this.api.i18n.t("Unordered"), icon: on, closeOnActivate: !0, isActive: this.listStyle == "unordered", hint: { title: this.api.i18n.t("Convert to Unordered") }, onActivate: () => {
3282
3285
  this.listStyle = "unordered";
3283
- } }, { label: this.api.i18n.t("Ordered"), icon: on, closeOnActivate: !0, isActive: this.listStyle == "ordered", hint: { title: this.api.i18n.t("Convert to Ordered") }, onActivate: () => {
3286
+ } }, { label: this.api.i18n.t("Ordered"), icon: rn, closeOnActivate: !0, isActive: this.listStyle == "ordered", hint: { title: this.api.i18n.t("Convert to Ordered") }, onActivate: () => {
3284
3287
  this.listStyle = "ordered";
3285
3288
  } }, { label: this.api.i18n.t("Checklist"), icon: tn, closeOnActivate: !0, isActive: this.listStyle == "checklist", hint: { title: this.api.i18n.t("Convert to Checklist") }, onActivate: () => {
3286
3289
  this.listStyle = "checklist";
@@ -3288,12 +3291,12 @@ class Nt {
3288
3291
  if (this.listStyle === "ordered") {
3289
3292
  const n = function(c, g, { value: C, placeholder: T, attributes: E, sanitize: N }) {
3290
3293
  const A = Tt.make("div", pt.wrapper), M = Tt.make("div", "cdx-list-start-with-field__startlabel", { innerText: c }), H = Tt.make("div", "cdx-list-start-with-field__input-wrapper"), z = Tt.make("input", pt.input, { placeholder: T, tabIndex: -1, value: C, type: "number" });
3291
- for (const X in E)
3292
- z.setAttribute(X, E[X]);
3294
+ for (const G in E)
3295
+ z.setAttribute(G, E[G]);
3293
3296
  return A.appendChild(M), H.appendChild(z), A.appendChild(H), z.addEventListener("input", () => {
3294
3297
  N !== void 0 && (z.value = N(z.value));
3295
- const X = z.checkValidity();
3296
- X || A.classList.contains(pt.startWithElementWrapperInvalid) || A.classList.add(pt.startWithElementWrapperInvalid), X && A.classList.contains(pt.startWithElementWrapperInvalid) && A.classList.remove(pt.startWithElementWrapperInvalid), X && g(z.value);
3298
+ const G = z.checkValidity();
3299
+ G || A.classList.contains(pt.startWithElementWrapperInvalid) || A.classList.add(pt.startWithElementWrapperInvalid), G && A.classList.contains(pt.startWithElementWrapperInvalid) && A.classList.remove(pt.startWithElementWrapperInvalid), G && g(z.value);
3297
3300
  }), A;
3298
3301
  }(this.api.i18n.t("Start with"), (c) => this.changeStartWith(Number(c)), { value: String((t = this.data.meta.start) != null ? t : 1), placeholder: "", attributes: { required: "true" }, sanitize: (c) => function(g) {
3299
3302
  return g.replace(/\D+/g, "");
@@ -3333,13 +3336,13 @@ class Nt {
3333
3336
  changeTabulatorByStyle() {
3334
3337
  switch (this.listStyle) {
3335
3338
  case "ordered":
3336
- this.list = new Dt({ data: this.data, readOnly: this.readOnly, api: this.api, config: this.config, block: this.block }, new Fe(this.readOnly, this.config));
3339
+ this.list = new Pt({ data: this.data, readOnly: this.readOnly, api: this.api, config: this.config, block: this.block }, new Fe(this.readOnly, this.config));
3337
3340
  break;
3338
3341
  case "unordered":
3339
- this.list = new Dt({ data: this.data, readOnly: this.readOnly, api: this.api, config: this.config, block: this.block }, new Ue(this.readOnly, this.config));
3342
+ this.list = new Pt({ data: this.data, readOnly: this.readOnly, api: this.api, config: this.config, block: this.block }, new Ue(this.readOnly, this.config));
3340
3343
  break;
3341
3344
  case "checklist":
3342
- this.list = new Dt({ data: this.data, readOnly: this.readOnly, api: this.api, config: this.config, block: this.block }, new me(this.readOnly, this.config));
3345
+ this.list = new Pt({ data: this.data, readOnly: this.readOnly, api: this.api, config: this.config, block: this.block }, new me(this.readOnly, this.config));
3343
3346
  }
3344
3347
  }
3345
3348
  }
@@ -3384,7 +3387,7 @@ class dn {
3384
3387
  return n;
3385
3388
  }
3386
3389
  }
3387
- class ei {
3390
+ class ti {
3388
3391
  constructor(e, t, n) {
3389
3392
  this.holder = t, this.observer = null, this.debounceTimer = n, this.mutationDebouncer = this.debounce(() => {
3390
3393
  e();
@@ -3424,12 +3427,12 @@ class ei {
3424
3427
  document.dispatchEvent(e), (t = this.observer) == null || t.disconnect();
3425
3428
  }
3426
3429
  }
3427
- class ti {
3430
+ class ni {
3428
3431
  constructor({ editor: e, config: t = {}, onUpdate: n, maxLength: s }) {
3429
3432
  this.position = 0;
3430
3433
  const a = { maxLength: 30, onUpdate() {
3431
- }, config: { debounceTimer: 200, shortcuts: { undo: ["CMD+Z"], redo: ["CMD+Y", "CMD+SHIFT+Z"] } } }, { blocks: c, caret: g } = e, { configuration: C } = e, { holder: T, defaultBlock: E } = C, N = a.config.shortcuts, { shortcuts: A } = t, M = { ...N, ...A }, H = Array.isArray(M.undo) ? M.undo : [M.undo], z = Array.isArray(M.redo) ? M.redo : [M.redo], X = a.config.debounceTimer, { debounceTimer: ie = X } = t;
3432
- this.holder = typeof T == "string" ? document.getElementById(T) : T, this.editor = e, this.defaultBlock = E, this.blocks = c, this.caret = g, this.shouldSaveHistory = !0, this.readOnly = C.readOnly, this.maxLength = s || a.maxLength, this.onUpdate = n || a.onUpdate, this.config = { debounceTimer: ie, shortcuts: { undo: H, redo: z } }, new ei(() => this.registerChange(), this.holder, this.config.debounceTimer).setMutationObserver(), this.setEventListeners(), this.initialItem = null, this.clear();
3434
+ }, config: { debounceTimer: 200, shortcuts: { undo: ["CMD+Z"], redo: ["CMD+Y", "CMD+SHIFT+Z"] } } }, { blocks: c, caret: g } = e, { configuration: C } = e, { holder: T, defaultBlock: E } = C, N = a.config.shortcuts, { shortcuts: A } = t, M = { ...N, ...A }, H = Array.isArray(M.undo) ? M.undo : [M.undo], z = Array.isArray(M.redo) ? M.redo : [M.redo], G = a.config.debounceTimer, { debounceTimer: ie = G } = t;
3435
+ this.holder = typeof T == "string" ? document.getElementById(T) : T, this.editor = e, this.defaultBlock = E, this.blocks = c, this.caret = g, this.shouldSaveHistory = !0, this.readOnly = C.readOnly, this.maxLength = s || a.maxLength, this.onUpdate = n || a.onUpdate, this.config = { debounceTimer: ie, shortcuts: { undo: H, redo: z } }, new ti(() => this.registerChange(), this.holder, this.config.debounceTimer).setMutationObserver(), this.setEventListeners(), this.initialItem = null, this.clear();
3433
3436
  }
3434
3437
  static get isReadOnlySupported() {
3435
3438
  return !0;
@@ -3560,7 +3563,7 @@ class ti {
3560
3563
  return n.push(s), n;
3561
3564
  }
3562
3565
  setEventListeners() {
3563
- const { holder: e } = this, { shortcuts: t } = this.config, { undo: n, redo: s } = t, a = n.map((M) => M.replace(/ /g, "").split("+")), c = s.map((M) => M.replace(/ /g, "").split("+")), g = a.map((M) => this.parseKeys(M)), C = c.map((M) => this.parseKeys(M)), T = (M, H) => H.reduce((z, X) => z || ((ie, de) => de.length === 3 && ie[de[0]] && ie[de[1]] && ie.key.toLowerCase() === de[2])(M, X), !1), E = (M, H, z) => !(!((X, ie) => ie.reduce((de, fe) => de || ((q, ye) => ye.length === 2 && q[ye[0]] && q.key.toLowerCase() === ye[1])(X, fe), !1))(M, H) || T(M, z)) || !!T(M, H), N = (M) => {
3566
+ const { holder: e } = this, { shortcuts: t } = this.config, { undo: n, redo: s } = t, a = n.map((M) => M.replace(/ /g, "").split("+")), c = s.map((M) => M.replace(/ /g, "").split("+")), g = a.map((M) => this.parseKeys(M)), C = c.map((M) => this.parseKeys(M)), T = (M, H) => H.reduce((z, G) => z || ((ie, de) => de.length === 3 && ie[de[0]] && ie[de[1]] && ie.key.toLowerCase() === de[2])(M, G), !1), E = (M, H, z) => !(!((G, ie) => ie.reduce((de, fe) => de || ((q, ye) => ye.length === 2 && q[ye[0]] && q.key.toLowerCase() === ye[1])(G, fe), !1))(M, H) || T(M, z)) || !!T(M, H), N = (M) => {
3564
3567
  E(M, g, C) && (M.preventDefault(), this.undo());
3565
3568
  }, A = (M) => {
3566
3569
  E(M, C, g) && (M.preventDefault(), this.redo());
@@ -3570,7 +3573,7 @@ class ti {
3570
3573
  });
3571
3574
  }
3572
3575
  }
3573
- class et {
3576
+ class tt {
3574
3577
  static get toolbox() {
3575
3578
  return { icon: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="24" height="24" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M83.2 147.2V448c0 25.6 19.2 44.8 44.8 44.8h768c25.6 0 44.8-19.2 44.8-44.8V147.2c0-25.6-19.2-44.8-44.8-44.8H128c-25.6 6.4-44.8 25.6-44.8 44.8z m89.6 256V192h684.8v211.2H172.8zM810.24 642.56c0-25.6-19.2-44.8-44.8-44.8h-640c-25.6 0-44.8 19.2-44.8 44.8 0 25.6 19.2 44.8 44.8 44.8h640c25.6 6.4 44.8-12.8 44.8-44.8zM554.56 866.24c0-25.6-19.2-44.8-44.8-44.8h-384c-25.6 0-44.8 19.2-44.8 44.8 0 25.6 19.2 44.8 44.8 44.8h384c25.6 6.4 44.8-12.8 44.8-44.8z" fill="#000000" ></path></svg>', title: "Alert" };
3576
3579
  }
@@ -3597,7 +3600,7 @@ class et {
3597
3600
  }
3598
3601
  constructor(e) {
3599
3602
  const { data: t, config: n, api: s, readOnly: a } = e;
3600
- this.api = s, this.alertTypes = n.alertTypes || et.ALERT_TYPES, this.defaultType = n.defaultType || et.DEFAULT_TYPE, this.defaultAlign = n.defaultAlign || et.DEFAULT_ALIGN_TYPE, this.messagePlaceholder = this.api.i18n.t(n.messagePlaceholder || et.DEFAULT_MESSAGE_PLACEHOLDER), this.data = { type: this.alertTypes.includes(t.type) ? t.type : this.defaultType, align: et.ALIGN_TYPES.includes(t.align) ? t.align : this.defaultAlign, message: t.message || "" }, this.container = void 0, this.readOnly = a;
3603
+ this.api = s, this.alertTypes = n.alertTypes || tt.ALERT_TYPES, this.defaultType = n.defaultType || tt.DEFAULT_TYPE, this.defaultAlign = n.defaultAlign || tt.DEFAULT_ALIGN_TYPE, this.messagePlaceholder = this.api.i18n.t(n.messagePlaceholder || tt.DEFAULT_MESSAGE_PLACEHOLDER), this.data = { type: this.alertTypes.includes(t.type) ? t.type : this.defaultType, align: tt.ALIGN_TYPES.includes(t.align) ? t.align : this.defaultAlign, message: t.message || "" }, this.container = void 0, this.readOnly = a;
3601
3604
  }
3602
3605
  static get isReadOnlySupported() {
3603
3606
  return !0;
@@ -3664,7 +3667,7 @@ class et {
3664
3667
  });
3665
3668
  }
3666
3669
  _changeAlignType(e) {
3667
- this.data.align = e, et.ALIGN_TYPES.forEach((t) => {
3670
+ this.data.align = e, tt.ALIGN_TYPES.forEach((t) => {
3668
3671
  const n = this.CSS.wrapperForAlignType(t);
3669
3672
  this.container.classList.remove(n), e === t && this.container.classList.add(n);
3670
3673
  });
@@ -3691,15 +3694,15 @@ class et {
3691
3694
  return { message: !0, type: !1, alignType: !1 };
3692
3695
  }
3693
3696
  }
3694
- const hn = { orientation: !1 }, Lt = class Ie {
3697
+ const hn = { orientation: !1 }, xt = class Ie {
3695
3698
  constructor({ api: e, data: t, config: n, block: s, ...a }) {
3696
3699
  var g, C, T, E, N, A;
3697
3700
  this.wrapper = document.createElement("div"), this.DEFAULT_INDENT_KEY = "Tab", this.lastResizeTimeout = null, this.cachedMaxWidthForContent = null, this.api = e, this.block = s, !n && "settings" in a && (n = (g = a.settings) != null ? g : {}), this.config = { indentSize: 24, maxIndent: 8, minIndent: 0, multiblock: !1, autoIndent: !1, tuneName: null, orientation: "horizontal", customBlockIndentLimits: {}, handleShortcut: void 0, direction: "ltr", directionChangeHandler: null, version: "2.30", ...n != null ? n : {} }, this.changeConfigBasedOnVersionIfNeeded(), (C = this.config) != null && C.directionChangeHandler && this.config.directionChangeHandler(this.alignmentChangeListener.bind(this));
3698
3701
  const c = (A = (N = this.config.customBlockIndentLimits[(E = (T = this.block) == null ? void 0 : T.name) != null ? E : ""]) == null ? void 0 : N.min) != null ? A : this.config.minIndent;
3699
3702
  this.data = { indentLevel: c, ...t != null ? t : {} }, this.config.multiblock && this.config.tuneName, window.addEventListener("resize", (M) => this.onResize.call(this, M)), this.api.events.on("block changed", ({ event: M }) => {
3700
- var X;
3703
+ var G;
3701
3704
  const H = M.detail.target.id;
3702
- ((X = this.block) == null ? void 0 : X.id) === H && this.shouldApplyAutoIndent && queueMicrotask(() => this.autoIndentBlock());
3705
+ ((G = this.block) == null ? void 0 : G.id) === H && this.shouldApplyAutoIndent && queueMicrotask(() => this.autoIndentBlock());
3703
3706
  });
3704
3707
  }
3705
3708
  static get isTune() {
@@ -3960,8 +3963,8 @@ const hn = { orientation: !1 }, Lt = class Ie {
3960
3963
  return this.cachedMaxWidthForContent !== null || (this.cachedMaxWidthForContent = 650), this.cachedMaxWidthForContent;
3961
3964
  }
3962
3965
  };
3963
- Lt.DATA_WRAPPER_NAME = "data-block-indent-wrapper", Lt.DATA_FOCUSED = "data-focused", Lt.DATA_INDENT_LEVEL = "data-indent-level";
3964
- let ni = Lt;
3966
+ xt.DATA_WRAPPER_NAME = "data-block-indent-wrapper", xt.DATA_FOCUSED = "data-focused", xt.DATA_INDENT_LEVEL = "data-indent-level";
3967
+ let ii = xt;
3965
3968
  function He(_, e, t = {}) {
3966
3969
  const n = document.createElement(_);
3967
3970
  Array.isArray(e) ? n.classList.add(...e) : e && n.classList.add(e);
@@ -3973,7 +3976,7 @@ function un(_) {
3973
3976
  const e = _.getBoundingClientRect();
3974
3977
  return { y1: Math.floor(e.top + window.pageYOffset), x1: Math.floor(e.left + window.pageXOffset), x2: Math.floor(e.right + window.pageXOffset), y2: Math.floor(e.bottom + window.pageYOffset) };
3975
3978
  }
3976
- function Pt(_, e) {
3979
+ function zt(_, e) {
3977
3980
  const t = un(_), n = un(e);
3978
3981
  return { fromTopBorder: n.y1 - t.y1, fromLeftBorder: n.x1 - t.x1, fromRightBorder: t.x2 - n.x2, fromBottomBorder: t.y2 - n.y2 };
3979
3982
  }
@@ -4037,7 +4040,7 @@ class Le {
4037
4040
  });
4038
4041
  }
4039
4042
  }
4040
- class tt {
4043
+ class nt {
4041
4044
  constructor({ items: e, onOpen: t, onClose: n, cssModifier: s = "" }) {
4042
4045
  this.items = e, this.onOpen = t, this.onClose = n, this.cssModifier = s, this.popover = null, this.wrapper = this.createToolbox();
4043
4046
  }
@@ -4048,13 +4051,13 @@ class tt {
4048
4051
  return this.wrapper;
4049
4052
  }
4050
4053
  createToolbox() {
4051
- const e = He("div", [tt.CSS.toolbox, this.cssModifier ? `${tt.CSS.toolbox}--${this.cssModifier}` : ""]);
4054
+ const e = He("div", [nt.CSS.toolbox, this.cssModifier ? `${nt.CSS.toolbox}--${this.cssModifier}` : ""]);
4052
4055
  e.dataset.mutationFree = "true";
4053
4056
  const t = this.createPopover(), n = this.createToggler();
4054
4057
  return e.appendChild(n), e.appendChild(t), e;
4055
4058
  }
4056
4059
  createToggler() {
4057
- const e = He("div", tt.CSS.toggler, { innerHTML: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M9.41 9.66H9.4"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M14.6 9.66H14.59"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M9.31 14.36H9.3"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M14.6 14.36H14.59"/></svg>' });
4060
+ const e = He("div", nt.CSS.toggler, { innerHTML: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M9.41 9.66H9.4"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M14.6 9.66H14.59"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M9.31 14.36H9.3"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M14.6 14.36H14.59"/></svg>' });
4058
4061
  return e.addEventListener("click", () => {
4059
4062
  this.togglerClicked();
4060
4063
  }), e;
@@ -4070,15 +4073,15 @@ class tt {
4070
4073
  const t = e();
4071
4074
  Object.entries(t).forEach(([n, s]) => {
4072
4075
  this.wrapper.style.setProperty(n, s);
4073
- }), this.wrapper.classList.add(tt.CSS.toolboxShowed);
4076
+ }), this.wrapper.classList.add(nt.CSS.toolboxShowed);
4074
4077
  }
4075
4078
  hide() {
4076
4079
  var e;
4077
- (e = this.popover) == null || e.close(), this.wrapper.classList.remove(tt.CSS.toolboxShowed);
4080
+ (e = this.popover) == null || e.close(), this.wrapper.classList.remove(nt.CSS.toolboxShowed);
4078
4081
  }
4079
4082
  }
4080
- const fn = "tc-wrap", ii = "tc-wrap--readonly", mn = "tc-table", ot = "tc-row", vn = "tc-table--heading", zt = "tc-row--selected", at = "tc-cell", Wt = "tc-cell--selected", Ft = "tc-add-row", Cn = "tc-add-row--disabled", Ut = "tc-add-column", wn = "tc-add-column--disabled";
4081
- class si {
4083
+ const fn = "tc-wrap", si = "tc-wrap--readonly", mn = "tc-table", at = "tc-row", vn = "tc-table--heading", Wt = "tc-row--selected", lt = "tc-cell", Ft = "tc-cell--selected", Ut = "tc-add-row", Cn = "tc-add-row--disabled", $t = "tc-add-column", wn = "tc-add-column--disabled";
4084
+ class oi {
4082
4085
  constructor(e, t, n, s) {
4083
4086
  this.minCellWidhth = 50, this.defaultCellWidth = 100, this.handleDocumentMousedown = (a) => {
4084
4087
  this.wrapper.contains(a.target) && a.target.classList.contains("cell-resizable") && (a.preventDefault(), this.isDragging = !0, this.table.classList.add("table-resizing"), document.addEventListener("mousemove", this.handleDocumentMousemove), document.addEventListener("mouseup", this.handleDocumentMouseup), this.draggingColumn = this.hoveredColumn, this.startWidth = this.colWidthArr[this.draggingColumn - 1], this.mouseStartX = a.clientX);
@@ -4093,7 +4096,7 @@ class si {
4093
4096
  let c = a.target;
4094
4097
  const g = c.closest(`.${mn}`) !== null, C = c.closest(`.${fn}`) === null;
4095
4098
  (g || C) && this.hideToolboxes();
4096
- const T = c.closest(`.${Ft}`), E = c.closest(`.${Ut}`);
4099
+ const T = c.closest(`.${Ut}`), E = c.closest(`.${$t}`);
4097
4100
  T && T.parentNode === this.wrapper ? (this.addRow(void 0, !0), this.hideToolboxes()) : E && E.parentNode === this.wrapper && (this.addColumn(void 0, !0), this.hideToolboxes());
4098
4101
  }, this.readOnly || this.bindEvents();
4099
4102
  }
@@ -4112,13 +4115,13 @@ class si {
4112
4115
  }
4113
4116
  getCellInCol(e) {
4114
4117
  const t = [];
4115
- return this.table.querySelectorAll(`.${ot}`).forEach((n) => {
4116
- const s = n.querySelector(`.${at}:nth-child(${e})`);
4118
+ return this.table.querySelectorAll(`.${at}`).forEach((n) => {
4119
+ const s = n.querySelector(`.${lt}:nth-child(${e})`);
4117
4120
  s && t.push(s);
4118
4121
  }), t;
4119
4122
  }
4120
4123
  createColumnToolbox() {
4121
- return new tt({ api: this.api, cssModifier: "column", items: [{ label: this.api.i18n.t("Add column to left"), icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.9167 14.9167L11.5833 18.25M11.5833 18.25L8.25 14.9167M11.5833 18.25L11.5833 10.0833C11.5833 9.19928 11.9345 8.35143 12.5596 7.72631C13.1848 7.10119 14.0326 6.75 14.9167 6.75"/></svg>', hideIf: () => this.numberOfColumns === this.config.maxcols, onClick: () => {
4124
+ return new nt({ api: this.api, cssModifier: "column", items: [{ label: this.api.i18n.t("Add column to left"), icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.9167 14.9167L11.5833 18.25M11.5833 18.25L8.25 14.9167M11.5833 18.25L11.5833 10.0833C11.5833 9.19928 11.9345 8.35143 12.5596 7.72631C13.1848 7.10119 14.0326 6.75 14.9167 6.75"/></svg>', hideIf: () => this.numberOfColumns === this.config.maxcols, onClick: () => {
4122
4125
  this.addColumn(this.selectedColumn, !0), this.hideToolboxes(), this.updateColWidth();
4123
4126
  } }, { label: this.api.i18n.t("Add column to right"), icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.13333 14.9167L12.4667 18.25M12.4667 18.25L15.8 14.9167M12.4667 18.25L12.4667 10.0833C12.4667 9.19928 12.1155 8.35143 11.4904 7.72631C10.8652 7.10119 10.0174 6.75 9.13333 6.75"/></svg>', hideIf: () => this.numberOfColumns === this.config.maxcols, onClick: () => {
4124
4127
  this.addColumn(this.selectedColumn + 1, !0), this.hideToolboxes(), this.updateColWidth();
@@ -4131,7 +4134,7 @@ class si {
4131
4134
  } });
4132
4135
  }
4133
4136
  createRowToolbox() {
4134
- return new tt({ api: this.api, cssModifier: "row", items: [{ label: this.api.i18n.t("Add row above"), icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.8833 15.8333L18.2167 12.5M18.2167 12.5L14.8833 9.16667M18.2167 12.5L10.05 12.5C9.16595 12.5 8.31811 12.8512 7.69299 13.4763C7.06787 14.1014 6.71667 14.9493 6.71667 15.8333"/></svg>', hideIf: () => this.numberOfRows === this.config.maxrows, onClick: () => {
4137
+ return new nt({ api: this.api, cssModifier: "row", items: [{ label: this.api.i18n.t("Add row above"), icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.8833 15.8333L18.2167 12.5M18.2167 12.5L14.8833 9.16667M18.2167 12.5L10.05 12.5C9.16595 12.5 8.31811 12.8512 7.69299 13.4763C7.06787 14.1014 6.71667 14.9493 6.71667 15.8333"/></svg>', hideIf: () => this.numberOfRows === this.config.maxrows, onClick: () => {
4135
4138
  this.addRow(this.selectedRow, !0), this.hideToolboxes();
4136
4139
  } }, { label: this.api.i18n.t("Add row below"), icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.8833 9.16666L18.2167 12.5M18.2167 12.5L14.8833 15.8333M18.2167 12.5H10.05C9.16594 12.5 8.31809 12.1488 7.69297 11.5237C7.06785 10.8986 6.71666 10.0507 6.71666 9.16666"/></svg>', hideIf: () => this.numberOfRows === this.config.maxrows, onClick: () => {
4137
4140
  this.addRow(this.selectedRow + 1, !0), this.hideToolboxes();
@@ -4147,16 +4150,16 @@ class si {
4147
4150
  this.focusedCell.row !== this.numberOfRows ? (this.focusedCell.row += 1, this.focusCell()) : (this.addRow(), this.focusedCell.row += 1, this.focusCell(), this.updateToolboxesPosition(0, 0));
4148
4151
  }
4149
4152
  getCell(e, t) {
4150
- return this.table.querySelectorAll(`.${ot}:nth-child(${e}) .${at}`)[t - 1];
4153
+ return this.table.querySelectorAll(`.${at}:nth-child(${e}) .${lt}`)[t - 1];
4151
4154
  }
4152
4155
  getRow(e) {
4153
- return this.table.querySelector(`.${ot}:nth-child(${e})`);
4156
+ return this.table.querySelector(`.${at}:nth-child(${e})`);
4154
4157
  }
4155
4158
  getRowByCell(e) {
4156
4159
  return e.parentElement;
4157
4160
  }
4158
4161
  getRowFirstCell(e) {
4159
- return e.querySelector(`.${at}:first-child`);
4162
+ return e.querySelector(`.${lt}:first-child`);
4160
4163
  }
4161
4164
  setCellContent(e, t, n) {
4162
4165
  this.getCell(e, t).innerHTML = n;
@@ -4174,11 +4177,11 @@ class si {
4174
4177
  T && t && gn(T);
4175
4178
  }
4176
4179
  }
4177
- const s = this.wrapper.querySelector(`.${Ut}`);
4180
+ const s = this.wrapper.querySelector(`.${$t}`);
4178
4181
  (a = this.config) != null && a.maxcols && this.numberOfColumns > this.config.maxcols - 1 && s && s.classList.add(wn), this.addHeadingAttrToFirstRow(), this.colWidthArr.splice(e - 1, 0, this.defaultCellWidth);
4179
4182
  }
4180
4183
  addRow(e = -1, t = !1) {
4181
- let n, s = He("div", ot);
4184
+ let n, s = He("div", at);
4182
4185
  this.tunes.withHeadings && this.removeHeadingAttrFromFirstRow();
4183
4186
  let a = this.numberOfColumns;
4184
4187
  if (this.config && this.config.maxrows && this.numberOfRows >= this.config.maxrows)
@@ -4186,7 +4189,7 @@ class si {
4186
4189
  e > 0 && e <= this.numberOfRows ? n = pn(s, this.getRow(e)) : n = this.table.appendChild(s), this.fillRow(n, a), this.tunes.withHeadings && this.addHeadingAttrToFirstRow();
4187
4190
  const c = this.getRowFirstCell(n);
4188
4191
  c && t && gn(c);
4189
- const g = this.wrapper.querySelector(`.${Ft}`);
4192
+ const g = this.wrapper.querySelector(`.${Ut}`);
4190
4193
  return this.config && this.config.maxrows && this.numberOfRows >= this.config.maxrows && g && g.classList.add(Cn), n;
4191
4194
  }
4192
4195
  deleteColumn(e) {
@@ -4196,16 +4199,16 @@ class si {
4196
4199
  return;
4197
4200
  s.remove();
4198
4201
  }
4199
- const t = this.wrapper.querySelector(`.${Ut}`);
4202
+ const t = this.wrapper.querySelector(`.${$t}`);
4200
4203
  t && t.classList.remove(wn), this.colWidthArr.splice(e - 1, 1);
4201
4204
  }
4202
4205
  deleteRow(e) {
4203
4206
  this.getRow(e).remove();
4204
- const t = this.wrapper.querySelector(`.${Ft}`);
4207
+ const t = this.wrapper.querySelector(`.${Ut}`);
4205
4208
  t && t.classList.remove(Cn), this.addHeadingAttrToFirstRow();
4206
4209
  }
4207
4210
  createTableWrapper() {
4208
- this.wrapper = He("div", fn), this.table = He("div", mn), this.readOnly && this.wrapper.classList.add(ii), this.wrapper.appendChild(this.toolboxRow.element), this.wrapper.appendChild(this.toolboxColumn.element), this.wrapper.appendChild(this.table);
4211
+ this.wrapper = He("div", fn), this.table = He("div", mn), this.readOnly && this.wrapper.classList.add(si), this.wrapper.appendChild(this.toolboxRow.element), this.wrapper.appendChild(this.toolboxColumn.element), this.wrapper.appendChild(this.table);
4209
4212
  }
4210
4213
  computeInitialSize() {
4211
4214
  const e = this.data && this.data.content, t = Array.isArray(e), n = !!t && e.length, s = t ? e.length : void 0, a = n ? e[0].length : void 0, c = Number.parseInt(this.config && this.config.rows), g = Number.parseInt(this.config && this.config.cols), C = !isNaN(c) && c > 0 ? c : void 0, T = !isNaN(g) && g > 0 ? g : void 0;
@@ -4239,13 +4242,13 @@ class si {
4239
4242
  }
4240
4243
  }
4241
4244
  createCell() {
4242
- return He("div", at, { contentEditable: !this.readOnly });
4245
+ return He("div", lt, { contentEditable: !this.readOnly });
4243
4246
  }
4244
4247
  get numberOfRows() {
4245
4248
  return this.table.childElementCount;
4246
4249
  }
4247
4250
  get numberOfColumns() {
4248
- return this.numberOfRows ? this.table.querySelectorAll(`.${ot}:first-child .${at}`).length : 0;
4251
+ return this.numberOfRows ? this.table.querySelectorAll(`.${at}:first-child .${lt}`).length : 0;
4249
4252
  }
4250
4253
  get isColumnMenuShowing() {
4251
4254
  return this.selectedColumn !== 0;
@@ -4273,7 +4276,7 @@ class si {
4273
4276
  }
4274
4277
  focusInTableListener(e) {
4275
4278
  const t = e.target, n = this.getRowByCell(t);
4276
- n && (this.focusedCell = { row: Array.from(this.table.querySelectorAll(`.${ot}`)).indexOf(n) + 1, column: Array.from(n.querySelectorAll(`.${at}`)).indexOf(t) + 1 });
4279
+ n && (this.focusedCell = { row: Array.from(this.table.querySelectorAll(`.${at}`)).indexOf(n) + 1, column: Array.from(n.querySelectorAll(`.${lt}`)).indexOf(t) + 1 });
4277
4280
  }
4278
4281
  hideToolboxes() {
4279
4282
  this.hideRowToolbox(), this.hideColumnToolbox(), this.updateToolboxesPosition();
@@ -4298,7 +4301,7 @@ class si {
4298
4301
  n += this.colWidthArr[s];
4299
4302
  return n += this.colWidthArr[t - 1] / 2, { left: `${n}px` };
4300
4303
  }), this.isRowMenuShowing || e > 0 && e <= this.numberOfRows && this.toolboxRow.show(() => {
4301
- const n = this.getRow(e), { fromTopBorder: s } = Pt(this.table, n), { height: a } = n.getBoundingClientRect();
4304
+ const n = this.getRow(e), { fromTopBorder: s } = zt(this.table, n), { height: a } = n.getBoundingClientRect();
4302
4305
  return { top: `${Math.ceil(s + a / 2)}px` };
4303
4306
  });
4304
4307
  }
@@ -4319,34 +4322,34 @@ class si {
4319
4322
  }
4320
4323
  selectRow(e) {
4321
4324
  const t = this.getRow(e);
4322
- t && (this.selectedRow = e, t.classList.add(zt));
4325
+ t && (this.selectedRow = e, t.classList.add(Wt));
4323
4326
  }
4324
4327
  unselectRow() {
4325
4328
  if (this.selectedRow <= 0)
4326
4329
  return;
4327
- const e = this.table.querySelector(`.${zt}`);
4328
- e && e.classList.remove(zt), this.selectedRow = 0;
4330
+ const e = this.table.querySelector(`.${Wt}`);
4331
+ e && e.classList.remove(Wt), this.selectedRow = 0;
4329
4332
  }
4330
4333
  selectColumn(e) {
4331
4334
  for (let t = 1; t <= this.numberOfRows; t++) {
4332
4335
  const n = this.getCell(t, e);
4333
- n && n.classList.add(Wt);
4336
+ n && n.classList.add(Ft);
4334
4337
  }
4335
4338
  this.selectedColumn = e;
4336
4339
  }
4337
4340
  unselectColumn() {
4338
4341
  if (this.selectedColumn <= 0)
4339
4342
  return;
4340
- let e = this.table.querySelectorAll(`.${Wt}`);
4343
+ let e = this.table.querySelectorAll(`.${Ft}`);
4341
4344
  Array.from(e).forEach((t) => {
4342
- t.classList.remove(Wt);
4345
+ t.classList.remove(Ft);
4343
4346
  }), this.selectedColumn = 0;
4344
4347
  }
4345
4348
  getHoveredCell(e) {
4346
4349
  let t = this.hoveredRow, n = this.hoveredColumn;
4347
4350
  const { width: s, height: a, x: c, y: g } = function(A, M) {
4348
- const H = A.getBoundingClientRect(), { width: z, height: X, x: ie, y: de } = H, { clientX: fe, clientY: q } = M;
4349
- return { width: z, height: X, x: fe - ie, y: q - de };
4351
+ const H = A.getBoundingClientRect(), { width: z, height: G, x: ie, y: de } = H, { clientX: fe, clientY: q } = M;
4352
+ return { width: z, height: G, x: fe - ie, y: q - de };
4350
4353
  }(this.table, e);
4351
4354
  if (c >= 0) {
4352
4355
  const A = ({ fromLeftBorder: H }) => c < H, M = ({ fromRightBorder: H }) => c > s - H;
@@ -4360,14 +4363,14 @@ class si {
4360
4363
  return { row: C, column: T, deltaXCell: E, deltaYCell: N };
4361
4364
  }
4362
4365
  getMousePositionRelateToCell(e, t, n, s) {
4363
- const a = this.getCell(e, t), { fromTopBorder: c, fromLeftBorder: g } = Pt(this.table, a);
4366
+ const a = this.getCell(e, t), { fromTopBorder: c, fromLeftBorder: g } = zt(this.table, a);
4364
4367
  return { deltaXCell: n - g, deltaYCell: s - c };
4365
4368
  }
4366
4369
  binSearch(e, t, n, s) {
4367
4370
  let a, c = 0, g = e + 1, C = 0;
4368
4371
  for (; c < g - 1 && C < 10; ) {
4369
4372
  a = Math.ceil((c + g) / 2);
4370
- const T = t(a), E = Pt(this.table, T);
4373
+ const T = t(a), E = zt(this.table, T);
4371
4374
  if (n(E))
4372
4375
  g = a;
4373
4376
  else {
@@ -4382,7 +4385,7 @@ class si {
4382
4385
  getData() {
4383
4386
  const e = [];
4384
4387
  for (let t = 1; t <= this.numberOfRows; t++) {
4385
- const n = this.table.querySelector(`.${ot}:nth-child(${t})`), s = Array.from(n.querySelectorAll(`.${at}`));
4388
+ const n = this.table.querySelector(`.${at}:nth-child(${t})`), s = Array.from(n.querySelectorAll(`.${lt}`));
4386
4389
  s.every((a) => !a.textContent.trim()) || e.push(s.map((a) => a.innerHTML));
4387
4390
  }
4388
4391
  return e;
@@ -4405,7 +4408,7 @@ class ri {
4405
4408
  return { icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M10 5V18.5"/><path stroke="currentColor" stroke-width="2" d="M5 10H19"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>', title: "Table" };
4406
4409
  }
4407
4410
  render() {
4408
- return this.table = new si(this.readOnly, this.api, this.data, this.config), this.container = He("div", this.api.styles.block), this.container.appendChild(this.table.getWrapper()), this.table.setHeadingsSetting(this.data.withHeadings), this.container;
4411
+ return this.table = new oi(this.readOnly, this.api, this.data, this.config), this.container = He("div", this.api.styles.block), this.container.appendChild(this.table.getWrapper()), this.table.setHeadingsSetting(this.data.withHeadings), this.container;
4409
4412
  }
4410
4413
  renderSettings() {
4411
4414
  return [{ label: this.api.i18n.t("With headings"), icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M5 10H19"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>', isActive: this.data.withHeadings, closeOnActivate: !0, toggle: !0, hint: { title: this.api.i18n.t("With headings") }, onActivate: () => {
@@ -4442,8 +4445,8 @@ function gt(_, e = null, t = {}) {
4442
4445
  t.hasOwnProperty(s) && (n[s] = t[s]);
4443
4446
  return n;
4444
4447
  }
4445
- var xt = ((_) => (_.Empty = "empty", _.Uploading = "uploading", _.Filled = "filled", _))(xt || {});
4446
- class oi {
4448
+ var Rt = ((_) => (_.Empty = "empty", _.Uploading = "uploading", _.Filled = "filled", _))(Rt || {});
4449
+ class ai {
4447
4450
  constructor({ api: e, config: t, onSelectFile: n, readOnly: s }) {
4448
4451
  this.api = e, this.config = t, this.onSelectFile = n, this.readOnly = s, this.nodes = { wrapper: gt("div", [this.CSS.baseClass, this.CSS.wrapper]), imageContainer: gt("div", [this.CSS.imageContainer]), fileButton: this.createFileButton(), imageEl: void 0, imagePreloader: gt("div", this.CSS.imagePreloader), caption: gt("div", [this.CSS.input, this.CSS.caption], { contentEditable: !this.readOnly }) }, this.nodes.caption.dataset.placeholder = this.config.captionPlaceholder, this.nodes.imageContainer.appendChild(this.nodes.imagePreloader), this.nodes.wrapper.appendChild(this.nodes.imageContainer), this.nodes.wrapper.appendChild(this.nodes.caption), this.nodes.wrapper.appendChild(this.nodes.fileButton);
4449
4452
  }
@@ -4470,9 +4473,9 @@ class oi {
4470
4473
  this.nodes.caption !== void 0 && (this.nodes.caption.innerHTML = e);
4471
4474
  }
4472
4475
  toggleStatus(e) {
4473
- for (const t in xt)
4474
- if (Object.prototype.hasOwnProperty.call(xt, t)) {
4475
- const n = xt[t];
4476
+ for (const t in Rt)
4477
+ if (Object.prototype.hasOwnProperty.call(Rt, t)) {
4478
+ const n = Rt[t];
4476
4479
  this.nodes.wrapper.classList.toggle(`${this.CSS.wrapper}--${n}`, n === e);
4477
4480
  }
4478
4481
  }
@@ -4487,7 +4490,7 @@ class oi {
4487
4490
  }), e;
4488
4491
  }
4489
4492
  }
4490
- class ai {
4493
+ class li {
4491
4494
  constructor({ config: e, onUpload: t, onError: n }) {
4492
4495
  this.config = e, this.onUpload = t, this.onError = n;
4493
4496
  }
@@ -4495,16 +4498,16 @@ class ai {
4495
4498
  var H;
4496
4499
  let n = "", s = "";
4497
4500
  const a = await function(z = {}) {
4498
- let X = !0;
4501
+ let G = !0;
4499
4502
  return new Promise((ie, de) => {
4500
4503
  let fe = document.createElement("INPUT");
4501
4504
  fe.type = "file", z.multiple && fe.setAttribute("multiple", "multiple"), z.accept && fe.setAttribute("accept", z.accept), fe.style.display = "none", document.body.appendChild(fe), fe.addEventListener("change", (q) => {
4502
- X = !1;
4505
+ G = !1;
4503
4506
  const ye = q.target.files;
4504
4507
  ie(ye), document.body.removeChild(fe);
4505
4508
  }, !1), window.addEventListener("focus", () => {
4506
4509
  setTimeout(() => {
4507
- X && ie([]);
4510
+ G && ie([]);
4508
4511
  }, 1e3);
4509
4512
  }, { once: !0 }), fe.click();
4510
4513
  });
@@ -4512,8 +4515,8 @@ class ai {
4512
4515
  if (!(a && a.length > 0))
4513
4516
  return void t();
4514
4517
  (function(z) {
4515
- const X = new FileReader();
4516
- X.readAsDataURL(z), X.onload = (ie) => {
4518
+ const G = new FileReader();
4519
+ G.readAsDataURL(z), G.onload = (ie) => {
4517
4520
  e(ie.target.result);
4518
4521
  };
4519
4522
  })(a[0]);
@@ -4523,8 +4526,8 @@ class ai {
4523
4526
  return void this.onError("文件类型不支持");
4524
4527
  let E = {};
4525
4528
  if (this.config.tokenInfo) {
4526
- const z = this.config.tokenInfo.token, X = this.config.tokenInfo.tokenName, ie = this.config.tokenInfo.tokenPrefix;
4527
- z && X && (E[X] = ie + " " + z);
4529
+ const z = this.config.tokenInfo.token, G = this.config.tokenInfo.tokenName, ie = this.config.tokenInfo.tokenPrefix;
4530
+ z && G && (E[G] = ie + " " + z);
4528
4531
  }
4529
4532
  E["Content-Type"] = "application/json";
4530
4533
  const N = Et.create({ timeout: 18e5, headers: E }), A = await N.post(this.config.endpoints.byFile, { fileName: c.name, contentType: c.type });
@@ -4534,8 +4537,8 @@ class ai {
4534
4537
  if (!M.success)
4535
4538
  return void this.onError(M.message);
4536
4539
  n = M.data.cdn, n && !n.endsWith && (n += "/"), s = M.data.objectKey, Et.create({ timeout: 18e5, headers: { "Content-Type": c.type } }).put(M.data.presignedUrl, c).then((z) => {
4537
- let X = {};
4538
- X = z.status === 200 ? { success: 1, file: { url: n + s } } : { success: 0, message: z.statusText }, this.onUpload(X);
4540
+ let G = {};
4541
+ G = z.status === 200 ? { success: 1, file: { url: n + s } } : { success: 0, message: z.statusText }, this.onUpload(G);
4539
4542
  }).catch((z) => {
4540
4543
  this.onError(z);
4541
4544
  });
@@ -4582,10 +4585,10 @@ class ai {
4582
4585
  });
4583
4586
  }
4584
4587
  }
4585
- class At {
4588
+ class _t {
4586
4589
  constructor({ data: e, config: t, api: n, readOnly: s, block: a }) {
4587
4590
  var c;
4588
- this.isCaptionEnabled = null, this.api = n, this.block = a, this.config = { endpoints: t.endpoints, additionalRequestData: t.additionalRequestData, additionalRequestHeaders: t.additionalRequestHeaders, field: t.field, types: t.types, captionPlaceholder: this.api.i18n.t((c = t.captionPlaceholder) != null ? c : "Caption"), buttonContent: t.buttonContent, uploader: t.uploader, actions: t.actions, features: t.features || {}, tokenInfo: t.tokenInfo }, this.uploader = new ai({ config: this.config, onUpload: (g) => this.onUpload(g), onError: (g) => this.uploadingFailed(g) }), this.ui = new oi({ api: n, config: this.config, onSelectFile: () => {
4591
+ this.isCaptionEnabled = null, this.api = n, this.block = a, this.config = { endpoints: t.endpoints, additionalRequestData: t.additionalRequestData, additionalRequestHeaders: t.additionalRequestHeaders, field: t.field, types: t.types, captionPlaceholder: this.api.i18n.t((c = t.captionPlaceholder) != null ? c : "Caption"), buttonContent: t.buttonContent, uploader: t.uploader, actions: t.actions, features: t.features || {}, tokenInfo: t.tokenInfo }, this.uploader = new li({ config: this.config, onUpload: (g) => this.onUpload(g), onError: (g) => this.uploadingFailed(g) }), this.ui = new ai({ api: n, config: this.config, onSelectFile: () => {
4589
4592
  this.uploader.uploadSelectedFile({ onPreview: (g) => {
4590
4593
  this.ui.showPreloader(g);
4591
4594
  }, noSelectedFile: () => {
@@ -4621,7 +4624,7 @@ class At {
4621
4624
  }
4622
4625
  renderSettings() {
4623
4626
  var a;
4624
- const e = At.tunes.concat(this.config.actions || []), t = { border: "withBorder", background: "withBackground", stretch: "stretched", caption: "caption" };
4627
+ const e = _t.tunes.concat(this.config.actions || []), t = { border: "withBorder", background: "withBackground", stretch: "stretched", caption: "caption" };
4625
4628
  ((a = this.config.features) == null ? void 0 : a.caption) === "optional" && e.push({ name: "caption", icon: Sn, title: "With caption", toggle: !0 });
4626
4629
  const n = e.filter((c) => {
4627
4630
  var C, T;
@@ -4666,7 +4669,7 @@ class At {
4666
4669
  }
4667
4670
  set data(e) {
4668
4671
  var t;
4669
- this.image = e.file, this._data.caption = e.caption || "", this.ui.fillCaption(this._data.caption), At.tunes.forEach(({ name: n }) => {
4672
+ this.image = e.file, this._data.caption = e.caption || "", this.ui.fillCaption(this._data.caption), _t.tunes.forEach(({ name: n }) => {
4670
4673
  const s = e[n] !== void 0 && (e[n] === !0 || e[n] === "true");
4671
4674
  this.setTune(n, s);
4672
4675
  }), (e.caption || ((t = this.config.features) == null ? void 0 : t.caption) === !0) && this.setTune("caption", !0);
@@ -4702,7 +4705,7 @@ class At {
4702
4705
  this.ui.showPreloader(e), this.uploader.uploadByUrl(e);
4703
4706
  }
4704
4707
  }
4705
- class li {
4708
+ class ci {
4706
4709
  constructor({ api: e, data: t, config: n, block: s }) {
4707
4710
  var a, c, g, C, T, E, N, A, M;
4708
4711
  this.settings = [], this.api = e, this.block = s, this.data = { floatLeft: (a = t == null ? void 0 : t.floatLeft) != null ? a : !1, floatRight: (c = t == null ? void 0 : t.floatRight) != null ? c : !1, center: (g = t == null ? void 0 : t.center) != null ? g : !1, sizeSmall: (C = t == null ? void 0 : t.sizeSmall) != null ? C : !1, sizeMiddle: (T = t == null ? void 0 : t.sizeMiddle) != null ? T : !1, sizeLarge: (E = t == null ? void 0 : t.sizeLarge) != null ? E : !1, resize: (A = (N = t == null ? void 0 : t.resize) != null ? N : n == null ? void 0 : n.resize) != null ? A : !1, resizeSize: (M = t == null ? void 0 : t.resizeSize) != null ? M : 0 }, this.wrapper = void 0, this.buttons = [], this.styles = { settingsButton: "cdx-settings-button", settingsButtonActive: "cdx-settings-button--active", settingsButtonModifier: "", settingsButtonModifierActive: "" };
@@ -4905,7 +4908,7 @@ class ct {
4905
4908
  return this.saveSel;
4906
4909
  }
4907
4910
  }
4908
- class ci {
4911
+ class di {
4909
4912
  constructor({ api: e, config: t }) {
4910
4913
  this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new ct("bold", t.rangy);
4911
4914
  }
@@ -4930,7 +4933,7 @@ class ci {
4930
4933
  return "CMD+B";
4931
4934
  }
4932
4935
  }
4933
- class di {
4936
+ class hi {
4934
4937
  constructor({ api: e, config: t }) {
4935
4938
  this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new ct("strikethrough", t.rangy);
4936
4939
  }
@@ -4955,7 +4958,7 @@ class di {
4955
4958
  return "CMD+SHIFT+X";
4956
4959
  }
4957
4960
  }
4958
- class hi {
4961
+ class ui {
4959
4962
  constructor({ api: e, config: t }) {
4960
4963
  this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new ct("italic", t.rangy);
4961
4964
  }
@@ -4980,7 +4983,7 @@ class hi {
4980
4983
  return "CMD+I";
4981
4984
  }
4982
4985
  }
4983
- class ui {
4986
+ class pi {
4984
4987
  constructor({ api: e, config: t }) {
4985
4988
  this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new ct("code", t.rangy);
4986
4989
  }
@@ -5005,7 +5008,7 @@ class ui {
5005
5008
  return "CMD+SHIFT+C";
5006
5009
  }
5007
5010
  }
5008
- class pi {
5011
+ class gi {
5009
5012
  constructor({ api: e, config: t }) {
5010
5013
  this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new ct("underline", t.rangy);
5011
5014
  }
@@ -5030,7 +5033,7 @@ class pi {
5030
5033
  return "CMD+U";
5031
5034
  }
5032
5035
  }
5033
- class gi {
5036
+ class fi {
5034
5037
  constructor({ api: e, config: t }) {
5035
5038
  this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new ct("mark", t.rangy);
5036
5039
  }
@@ -5052,9 +5055,9 @@ class gi {
5052
5055
  return { span: { class: !0 } };
5053
5056
  }
5054
5057
  }
5055
- class fi {
5058
+ class mi {
5056
5059
  constructor({ api: e, config: t }) {
5057
- this.ENTER_KEY = 13, this.inputOpened = !1, this.button = null, this.input = null, this.okbtn = null, this.toolbar = e.toolbar, this.inlineToolbar = e.inlineToolbar, this.i18n = e.i18n, this.selection = new Rt(), this.iconClasses = { base: e.styles.inlineToolButton, active: e.styles.inlineToolButtonActive }, this.inlineToolUtils = new ct("link", t.rangy);
5060
+ this.ENTER_KEY = 13, this.inputOpened = !1, this.button = null, this.input = null, this.okbtn = null, this.toolbar = e.toolbar, this.inlineToolbar = e.inlineToolbar, this.i18n = e.i18n, this.selection = new Nt(), this.iconClasses = { base: e.styles.inlineToolButton, active: e.styles.inlineToolButtonActive }, this.inlineToolUtils = new ct("link", t.rangy);
5058
5061
  }
5059
5062
  static get isInline() {
5060
5063
  return !0;
@@ -5120,7 +5123,7 @@ class fi {
5120
5123
  closeActions(e = !0) {
5121
5124
  var t;
5122
5125
  if (this.selection.isFakeBackgroundEnabled) {
5123
- const n = new Rt();
5126
+ const n = new Nt();
5124
5127
  n.save(), this.selection.restore(), this.selection.removeFakeBackground(), n.restore();
5125
5128
  }
5126
5129
  (t = this.input) == null || t.setAttribute("value", ""), e && this.selection.clearSaved(), this.inputOpened = !1;
@@ -5141,9 +5144,9 @@ class fi {
5141
5144
  this.inlineToolUtils.unWrapByPropertys({ href: e, target: "_blank" });
5142
5145
  }
5143
5146
  }
5144
- class mi {
5147
+ class vi {
5145
5148
  constructor({ api: e, config: t }) {
5146
- this.button = null, this.colors = { none: "inherit", "#646a73": "cel-inline-gray-text", "#d83931": "cel-inline-pink-text", "#de7802": "cel-inline-orange-text", "#dc9b04": "cel-inline-yellow-text", "#2ea121": "cel-inline-green-text", "#245bdb": "cel-inline-blue-text", "#6425d0": "cel-inline-purple-text" }, this.columns = 4, this.colorOpened = !1, this.api = e, this.iconClasses = { base: e.styles.inlineToolButton, active: e.styles.inlineToolButtonActive }, this.rangy = t.rangy, this.selection = new Rt();
5149
+ this.button = null, this.colors = { none: "inherit", "#646a73": "cel-inline-gray-text", "#d83931": "cel-inline-pink-text", "#de7802": "cel-inline-orange-text", "#dc9b04": "cel-inline-yellow-text", "#2ea121": "cel-inline-green-text", "#245bdb": "cel-inline-blue-text", "#6425d0": "cel-inline-purple-text" }, this.columns = 4, this.colorOpened = !1, this.api = e, this.iconClasses = { base: e.styles.inlineToolButton, active: e.styles.inlineToolButtonActive }, this.rangy = t.rangy, this.selection = new Nt();
5147
5150
  }
5148
5151
  static get isInline() {
5149
5152
  return !0;
@@ -5180,7 +5183,7 @@ class mi {
5180
5183
  this.colorOpened = !0;
5181
5184
  }
5182
5185
  closeActions(e = !0) {
5183
- const t = new Rt();
5186
+ const t = new Nt();
5184
5187
  t.save(), this.selection.restore(), t.restore(), e && this.selection.clearSaved(), this.colorOpened = !1;
5185
5188
  }
5186
5189
  findStateColor() {
@@ -5212,78 +5215,78 @@ class mi {
5212
5215
  }
5213
5216
  }
5214
5217
  }
5215
- const vi = { class: "ebl-editor", id: "holder" }, Ci = Rn({ name: "EblEditor", inheritAttrs: !1, __name: "Editor", props: { readOnly: { type: Boolean, default: !1 }, placeholder: { default: "Enter something" }, data: { default: () => ({ blocks: [] }) }, locale: { default: {} }, tokenInfo: { default: { token: "", tokenName: "Authorization", tokenPrefix: "Bearer" } } }, emits: ["onReady", "onChange"], setup(_, { expose: e, emit: t }) {
5216
- let n = Fn();
5217
- n = Un(n), n = function(H) {
5218
- return H.createModule("SaveRestore", ["WrappedSelection"], function(z, X) {
5218
+ const Ci = { class: "ebl-editor", id: "holder" }, wi = Rn({ name: "EblEditor", inheritAttrs: !1, __name: "Editor", props: { readOnly: { type: Boolean, default: !1 }, placeholder: { default: "Enter something" }, data: { default: () => ({ blocks: [] }) }, locale: { default: {} }, tokenInfo: { default: { token: "", tokenName: "Authorization", tokenPrefix: "Bearer" } } }, emits: ["onReady", "onChange"], setup(_, { expose: e, emit: t }) {
5219
+ let n = Un();
5220
+ n = $n(n), n = function(H) {
5221
+ return H.createModule("SaveRestore", ["WrappedSelection"], function(z, G) {
5219
5222
  var ie = z.dom, de = ie.removeNode, fe = z.Selection.isDirectionBackward;
5220
- function q(V, re) {
5221
- return (re || document).getElementById(V);
5223
+ function q(V, oe) {
5224
+ return (oe || document).getElementById(V);
5222
5225
  }
5223
- function ye(V, re) {
5224
- var Q, ae = "selectionBoundary_" + +/* @__PURE__ */ new Date() + "_" + ("" + Math.random()).slice(2), le = ie.getDocument(V.startContainer), ve = V.cloneRange();
5225
- return ve.collapse(re), (Q = le.createElement("span")).id = ae, Q.style.lineHeight = "0", Q.style.display = "none", Q.className = "rangySelectionBoundary", Q.appendChild(le.createTextNode("\uFEFF")), ve.insertNode(Q), Q;
5226
+ function ye(V, oe) {
5227
+ var Z, ae = "selectionBoundary_" + +/* @__PURE__ */ new Date() + "_" + ("" + Math.random()).slice(2), le = ie.getDocument(V.startContainer), ve = V.cloneRange();
5228
+ return ve.collapse(oe), (Z = le.createElement("span")).id = ae, Z.style.lineHeight = "0", Z.style.display = "none", Z.className = "rangySelectionBoundary", Z.appendChild(le.createTextNode("\uFEFF")), ve.insertNode(Z), Z;
5226
5229
  }
5227
- function $e(V, re, Q, ae) {
5228
- var le = q(Q, V);
5229
- le ? (re[ae ? "setStartBefore" : "setEndBefore"](le), de(le)) : X.warn("Marker element has been removed. Cannot restore selection.");
5230
+ function $e(V, oe, Z, ae) {
5231
+ var le = q(Z, V);
5232
+ le ? (oe[ae ? "setStartBefore" : "setEndBefore"](le), de(le)) : G.warn("Marker element has been removed. Cannot restore selection.");
5230
5233
  }
5231
- function Ne(V, re) {
5232
- return re.compareBoundaryPoints(V.START_TO_START, V);
5234
+ function Ne(V, oe) {
5235
+ return oe.compareBoundaryPoints(V.START_TO_START, V);
5233
5236
  }
5234
- function Be(V, re) {
5235
- var Q, ae = z.DomRange.getRangeDocument(V), le = V.toString(), ve = fe(re);
5236
- return V.collapsed ? { document: ae, markerId: (Q = ye(V, !1)).id, collapsed: !0 } : (Q = ye(V, !1), { document: ae, startMarkerId: ye(V, !0).id, endMarkerId: Q.id, collapsed: !1, backward: ve, toString: function() {
5237
+ function Be(V, oe) {
5238
+ var Z, ae = z.DomRange.getRangeDocument(V), le = V.toString(), ve = fe(oe);
5239
+ return V.collapsed ? { document: ae, markerId: (Z = ye(V, !1)).id, collapsed: !0 } : (Z = ye(V, !1), { document: ae, startMarkerId: ye(V, !0).id, endMarkerId: Z.id, collapsed: !1, backward: ve, toString: function() {
5237
5240
  return "original text: '" + le + "', new text: '" + V.toString() + "'";
5238
5241
  } });
5239
5242
  }
5240
- function Ye(V, re) {
5241
- var Q = V.document;
5242
- re === void 0 && (re = !0);
5243
- var ae = z.createRange(Q);
5243
+ function Ye(V, oe) {
5244
+ var Z = V.document;
5245
+ oe === void 0 && (oe = !0);
5246
+ var ae = z.createRange(Z);
5244
5247
  if (V.collapsed) {
5245
- var le = q(V.markerId, Q);
5248
+ var le = q(V.markerId, Z);
5246
5249
  if (le) {
5247
5250
  le.style.display = "inline";
5248
5251
  var ve = le.previousSibling;
5249
5252
  ve && ve.nodeType == 3 ? (de(le), ae.collapseToPoint(ve, ve.length)) : (ae.collapseBefore(le), de(le));
5250
5253
  } else
5251
- X.warn("Marker element has been removed. Cannot restore selection.");
5254
+ G.warn("Marker element has been removed. Cannot restore selection.");
5252
5255
  } else
5253
- $e(Q, ae, V.startMarkerId, !0), $e(Q, ae, V.endMarkerId, !1);
5254
- return re && ae.normalizeBoundaries(), ae;
5256
+ $e(Z, ae, V.startMarkerId, !0), $e(Z, ae, V.endMarkerId, !1);
5257
+ return oe && ae.normalizeBoundaries(), ae;
5255
5258
  }
5256
- function Me(V, re) {
5257
- var Q, ae, le = [], ve = fe(re);
5259
+ function Me(V, oe) {
5260
+ var Z, ae, le = [], ve = fe(oe);
5258
5261
  (V = V.slice(0)).sort(Ne);
5259
5262
  for (var p = 0, x = V.length; p < x; ++p)
5260
5263
  le[p] = Be(V[p], ve);
5261
5264
  for (p = x - 1; p >= 0; --p)
5262
- Q = V[p], ae = z.DomRange.getRangeDocument(Q), Q.collapsed ? Q.collapseAfter(q(le[p].markerId, ae)) : (Q.setEndBefore(q(le[p].endMarkerId, ae)), Q.setStartAfter(q(le[p].startMarkerId, ae)));
5265
+ Z = V[p], ae = z.DomRange.getRangeDocument(Z), Z.collapsed ? Z.collapseAfter(q(le[p].markerId, ae)) : (Z.setEndBefore(q(le[p].endMarkerId, ae)), Z.setStartAfter(q(le[p].startMarkerId, ae)));
5263
5266
  return le;
5264
5267
  }
5265
5268
  function Ae(V) {
5266
- for (var re = [], Q = V.length - 1; Q >= 0; Q--)
5267
- re[Q] = Ye(V[Q], !0);
5268
- return re;
5269
+ for (var oe = [], Z = V.length - 1; Z >= 0; Z--)
5270
+ oe[Z] = Ye(V[Z], !0);
5271
+ return oe;
5269
5272
  }
5270
- function De(V, re) {
5271
- var Q = q(re, V);
5272
- Q && de(Q);
5273
+ function De(V, oe) {
5274
+ var Z = q(oe, V);
5275
+ Z && de(Z);
5273
5276
  }
5274
5277
  z.util.extend(z, { saveRange: Be, restoreRange: Ye, saveRanges: Me, restoreRanges: Ae, saveSelection: function(V) {
5275
5278
  if (!z.isSelectionValid(V))
5276
- return X.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."), null;
5277
- var re = z.getSelection(V), Q = re.getAllRanges(), ae = Q.length == 1 && re.isBackward(), le = Me(Q, ae);
5278
- return ae ? re.setSingleRange(Q[0], ae) : re.setRanges(Q), { win: V, rangeInfos: le, restored: !1 };
5279
- }, restoreSelection: function(V, re) {
5279
+ return G.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."), null;
5280
+ var oe = z.getSelection(V), Z = oe.getAllRanges(), ae = Z.length == 1 && oe.isBackward(), le = Me(Z, ae);
5281
+ return ae ? oe.setSingleRange(Z[0], ae) : oe.setRanges(Z), { win: V, rangeInfos: le, restored: !1 };
5282
+ }, restoreSelection: function(V, oe) {
5280
5283
  if (!V.restored) {
5281
- var Q = V.rangeInfos, ae = z.getSelection(V.win), le = Ae(Q);
5282
- Q.length == 1 && re && z.features.selectionHasExtend && Q[0].backward ? (ae.removeAllRanges(), ae.addRange(le[0], !0)) : ae.setRanges(le), V.restored = !0;
5284
+ var Z = V.rangeInfos, ae = z.getSelection(V.win), le = Ae(Z);
5285
+ Z.length == 1 && oe && z.features.selectionHasExtend && Z[0].backward ? (ae.removeAllRanges(), ae.addRange(le[0], !0)) : ae.setRanges(le), V.restored = !0;
5283
5286
  }
5284
5287
  }, removeMarkerElement: De, removeMarkers: function(V) {
5285
- for (var re, Q = V.rangeInfos, ae = 0, le = Q.length; ae < le; ++ae)
5286
- (re = Q[ae]).collapsed ? De(V.doc, re.markerId) : (De(V.doc, re.startMarkerId), De(V.doc, re.endMarkerId));
5288
+ for (var oe, Z = V.rangeInfos, ae = 0, le = Z.length; ae < le; ++ae)
5289
+ (oe = Z[ae]).collapsed ? De(V.doc, oe.markerId) : (De(V.doc, oe.startMarkerId), De(V.doc, oe.endMarkerId));
5287
5290
  } });
5288
5291
  }), H;
5289
5292
  }(n);
@@ -5293,11 +5296,11 @@ const vi = { class: "ebl-editor", id: "holder" }, Ci = Rn({ name: "EblEditor", i
5293
5296
  let g = { blocks: [] }, C = null, T = null;
5294
5297
  const E = ["indent", "blockAlignment"], N = ["linkTool", "boldTool", "strikethrough", "italicTool", "inlineCode", "underline", "Color", "marker"];
5295
5298
  An(() => {
5296
- n.init(), C = new Hn({ minHeight: 300, holder: "holder", autofocus: !0, defaultBlock: "paragraph", placeholder: c.placeholder, tunes: E, tools: { linkTool: { class: fi, config: { rangy: n }, shortcut: "CMD+K" }, boldTool: { class: ci, config: { rangy: n }, shortcut: "CMD+B" }, strikethrough: { class: di, config: { rangy: n }, shortcut: "CMD+SHIFT+X" }, italicTool: { class: hi, config: { rangy: n }, shortcut: "CMD+I" }, inlineCode: { class: ui, config: { rangy: n }, shortcut: "CMD+SHIFT+C" }, underline: { class: pi, config: { rangy: n }, shortcut: "CMD+U" }, Color: { class: mi, config: { rangy: n } }, marker: { class: gi, config: { rangy: n } }, indent: { class: ni }, alert: { class: et, inlineToolbar: N }, List: { class: Nt, inlineToolbar: N, config: { defaultStyle: "checklist", maxLevel: 4 } }, h1: { class: Vn, inlineToolbar: N }, h2: { class: Kn, inlineToolbar: N }, h3: { class: Yn, inlineToolbar: N }, h4: { class: Gn, inlineToolbar: N }, h5: { class: Xn, inlineToolbar: N }, h6: { class: Qn, inlineToolbar: N }, paragraph: { class: Vt, inlineToolbar: N }, blockAlignment: { class: qt, inlineToolbar: !1 }, code: { tunes: [], class: St, config: { lang: "javascript", theme: "github-dark-dimmed" } }, quote: { tunes: ["blockAlignment"], class: Zn, inlineToolbar: N }, delimiter: Jn, table: { class: ri, inlineToolbar: N, config: { rows: 2, cols: 3 } }, image: { class: At, inlineToolbar: !1, tunes: E.concat(["imageResize"]), config: { types: ".png,.jpeg,.jpg,.gif,.webp", tokenInfo: c.tokenInfo, endpoints: { byFile: s == null ? void 0 : s.fileUploadEndpoint }, features: { caption: !1, stretch: !1, border: !1, background: !1 } } }, imageResize: { class: li, config: { resize: !0, crop: !1 } } }, readOnly: c.readOnly, i18n: c.locale, onChange: (H, z) => {
5299
+ n.init(), C = new Hn({ minHeight: 300, holder: "holder", autofocus: !0, defaultBlock: "paragraph", placeholder: c.placeholder, tunes: E, tools: { linkTool: { class: mi, config: { rangy: n }, shortcut: "CMD+K" }, boldTool: { class: di, config: { rangy: n }, shortcut: "CMD+B" }, strikethrough: { class: hi, config: { rangy: n }, shortcut: "CMD+SHIFT+X" }, italicTool: { class: ui, config: { rangy: n }, shortcut: "CMD+I" }, inlineCode: { class: pi, config: { rangy: n }, shortcut: "CMD+SHIFT+C" }, underline: { class: gi, config: { rangy: n }, shortcut: "CMD+U" }, Color: { class: vi, config: { rangy: n } }, marker: { class: fi, config: { rangy: n } }, indent: { class: ii }, alert: { class: tt, inlineToolbar: N }, List: { class: At, inlineToolbar: N, config: { defaultStyle: "checklist", maxLevel: 4 } }, h1: { class: Kn, inlineToolbar: N }, h2: { class: Yn, inlineToolbar: N }, h3: { class: Xn, inlineToolbar: N }, h4: { class: Gn, inlineToolbar: N }, h5: { class: Zn, inlineToolbar: N }, h6: { class: Jn, inlineToolbar: N }, paragraph: { class: Vt, inlineToolbar: N }, blockAlignment: { class: qt, inlineToolbar: !1 }, code: { tunes: [], class: St, config: { lang: "javascript", theme: "github-dark-dimmed" } }, quote: { tunes: ["blockAlignment"], class: Qn, inlineToolbar: N }, delimiter: ei, table: { class: ri, inlineToolbar: N, config: { rows: 2, cols: 3 } }, image: { class: _t, inlineToolbar: !1, tunes: E.concat(["imageResize"]), config: { types: ".png,.jpeg,.jpg,.gif,.webp", tokenInfo: c.tokenInfo, endpoints: { byFile: s == null ? void 0 : s.fileUploadEndpoint }, features: { caption: !1, stretch: !1, border: !1, background: !1 } } }, imageResize: { class: ci, config: { resize: !0, crop: !1 } } }, readOnly: c.readOnly, i18n: c.locale, onChange: (H, z) => {
5297
5300
  a("onChange", H, z);
5298
5301
  }, onReady: () => {
5299
- new jn("holder", c.readOnly, C, "1px solid #999"), new $n("holder", c.readOnly), new qn("holder", c.readOnly, C), c.data && c.data.blocks && c.data.blocks.length > 0 && (T = new ti({ editor: C, config: { debounceTimer: 200, maxLength: 100 }, onUpdate: () => {
5300
- } }), g = It(c.data), T.initialize(g), M(g)), a("onReady");
5302
+ new qn("holder", c.readOnly, C, "1px solid #999"), new jn("holder", c.readOnly), new Vn("holder", c.readOnly, C), c.data && c.data.blocks && c.data.blocks.length > 0 && (T = new ni({ editor: C, config: { debounceTimer: 200, maxLength: 100 }, onUpdate: () => {
5303
+ } }), g = Ht(c.data), T.initialize(g), M(g)), a("onReady");
5301
5304
  } });
5302
5305
  }), _n(() => {
5303
5306
  C !== null && (C.destroy(), C = null);
@@ -5311,33 +5314,33 @@ const vi = { class: "ebl-editor", id: "holder" }, Ci = Rn({ name: "EblEditor", i
5311
5314
  }));
5312
5315
  }
5313
5316
  return Mn(() => c.data, (H, z) => {
5314
- H && H.blocks && H.blocks.length !== 0 && (g = It(H), M(It(H)), T != null && (T.clear(), T.initialize(g)));
5317
+ H && H.blocks && H.blocks.length !== 0 && (g = Ht(H), M(Ht(H)), T != null && (T.clear(), T.initialize(g)));
5315
5318
  }, { deep: !0 }), e({ validate: function() {
5316
5319
  return new Promise((H, z) => {
5317
5320
  if (C === null)
5318
5321
  return H(!1);
5319
- C.save().then((X) => X.blocks.length > 0 ? H(!0) : H(!1));
5322
+ C.save().then((G) => G.blocks.length > 0 ? H(!0) : H(!1));
5320
5323
  });
5321
5324
  }, getData: function() {
5322
5325
  return new Promise((H, z) => {
5323
5326
  if (C === null)
5324
5327
  return H(null);
5325
- C.save().then((X) => H(X));
5328
+ C.save().then((G) => H(G));
5326
5329
  });
5327
- } }), (H, z) => (On(), In("div", vi));
5328
- } }), yn = [Ci];
5330
+ } }), (H, z) => (On(), In("div", Ci));
5331
+ } }), yn = [wi];
5329
5332
  let En = [];
5330
5333
  for (let _ in yn) {
5331
- const e = Wn(yn[_]);
5334
+ const e = Fn(yn[_]);
5332
5335
  En.push(e);
5333
5336
  }
5334
- const Ei = { messages: { ui: { blockTunes: { toggler: { "Click to tune": "可拖拽和点击" } }, toolbar: { toolbox: { Add: "添加", Filter: "过滤", "Nothing found": "无内容" }, popover: { Filter: "过滤", "Nothing found": "无内容" } }, popover: { Filter: "筛选", "Nothing found": "未找到任何内容", "Convert to": "转化为", "Add below": "在下方插入" } }, toolNames: { Text: "段落", H1: "一级标题", H2: "二级标题", H3: "三级标题", H4: "四级标题", H5: "五级标题", H6: "六级标题", "Ordered List": "有序列表", "Unordered List": "无序列表", Checklist: "任务列表", Quote: "引用", Code: "代码块", Delimiter: "分割线", Link: "链接", LinkTool: "链接", Bold: "加粗", BoldTool: "粗体", Italic: "倾斜", ItalicTool: "斜体", Alert: "高亮块", indent: "缩进", Marker: "文本高亮", Color: "文本颜色", Underline: "下划线", InlineCode: "行内代码", Table: "表格", Image: "图片", Strikethrough: "删除线" }, tools: { image: { "Couldn’t upload image. Please try another.": "上传图片失败,请稍后重试。" }, table: { "Add row above": "在上面插入行", "Add row below": "在下面插入行", "Delete row": "删除行", "Add column to left": "在左边插入列", "Add column to right": "在右边插入列", "Delete column": "删除列", "With headings": "使用标题行", "Without headings": "不使用标题行" }, marker: { Marker: "突出显示" }, linkTool: { "Add a link": "添加链接", Save: "确定", "Pasted link is not valid.": "链接地址无效" }, List: { Unordered: "无序", Ordered: "有序", Checklist: "任务列表", "Convert to Unordered": "转化为无序列表", "Convert to Ordered": "转化为有序列表", "Convert to Checklist": "转化为任务列表", "Counter type": "计数器类型", Numeric: "阿拉伯数字", "Lower Roman": "小写罗马数字", "Upper Roman": "大写罗马数字", "Lower Alpha": "小写字母", "Upper Alpha": "大写字母", "Start with": "开始序号" }, paragraph: { "Enter something": "请输入内容" }, stub: { "The block can not be displayed correctly.": "该模块不能放置在这里" }, code: { "Enter your code": "输入代码", Copied: "已复制", "Unable to copy": "复制失败" }, convertTo: { "Convert to": "转化为" }, alert: { "alert-primary": "主要样式", "alert-secondary": "次要样式", "alert-info": "信息", "alert-success": "成功", "alert-warning": "警告", "alert-danger": "危险", "alert-light": "浅色", "alert-dark": "深色", "align-left": "左对齐", "align-center": "居中", "align-right": "右对齐", "Type here...": "输入内容" }, Color: { "#646a73": "灰色", "#d83931": "红色", "#de7802": "橙色", "#dc9b04": "黄色", "#2ea121": "绿色", "#245bdb": "蓝色", "#6425d0": "紫色", none: "恢复默认" } }, blockTunes: { delete: { Delete: "删除", "Click to delete": "点击删除" }, moveUp: { "Move up": "向上移" }, moveDown: { "Move down": "向下移" }, filter: { Filter: "过滤" }, blockAlignment: { "left align": "左对齐", "center align": "居中对齐", "right align": "右对齐", "justify align": "两端对齐" }, indent: { "Indent right": "向右缩进", "Indent left": "向左缩进" } } } }, Ln = ((_ = []) => ({ version: "2.31.57", install: (e, t) => {
5337
+ const Li = { messages: { ui: { blockTunes: { toggler: { "Click to tune": "可拖拽和点击" } }, toolbar: { toolbox: { Add: "添加", Filter: "过滤", "Nothing found": "无内容" }, popover: { Filter: "过滤", "Nothing found": "无内容" } }, popover: { Filter: "筛选", "Nothing found": "未找到任何内容", "Convert to": "转化为", "Add below": "在下方插入" } }, toolNames: { Text: "段落", H1: "一级标题", H2: "二级标题", H3: "三级标题", H4: "四级标题", H5: "五级标题", H6: "六级标题", "Ordered List": "有序列表", "Unordered List": "无序列表", Checklist: "任务列表", Quote: "引用", Code: "代码块", Delimiter: "分割线", Link: "链接", LinkTool: "链接", Bold: "加粗", BoldTool: "粗体", Italic: "倾斜", ItalicTool: "斜体", Alert: "高亮块", indent: "缩进", Marker: "文本高亮", Color: "文本颜色", Underline: "下划线", InlineCode: "行内代码", Table: "表格", Image: "图片", Strikethrough: "删除线" }, tools: { image: { "Couldn’t upload image. Please try another.": "上传图片失败,请稍后重试。" }, table: { "Add row above": "在上面插入行", "Add row below": "在下面插入行", "Delete row": "删除行", "Add column to left": "在左边插入列", "Add column to right": "在右边插入列", "Delete column": "删除列", "With headings": "使用标题行", "Without headings": "不使用标题行" }, marker: { Marker: "突出显示" }, linkTool: { "Add a link": "添加链接", Save: "确定", "Pasted link is not valid.": "链接地址无效" }, List: { Unordered: "无序", Ordered: "有序", Checklist: "任务列表", "Convert to Unordered": "转化为无序列表", "Convert to Ordered": "转化为有序列表", "Convert to Checklist": "转化为任务列表", "Counter type": "计数器类型", Numeric: "阿拉伯数字", "Lower Roman": "小写罗马数字", "Upper Roman": "大写罗马数字", "Lower Alpha": "小写字母", "Upper Alpha": "大写字母", "Start with": "开始序号" }, paragraph: { "Enter something": "请输入内容" }, stub: { "The block can not be displayed correctly.": "该模块不能放置在这里" }, code: { "Enter your code": "输入代码", Copied: "已复制", "Unable to copy": "复制失败" }, convertTo: { "Convert to": "转化为" }, alert: { "alert-primary": "主要样式", "alert-secondary": "次要样式", "alert-info": "信息", "alert-success": "成功", "alert-warning": "警告", "alert-danger": "危险", "alert-light": "浅色", "alert-dark": "深色", "align-left": "左对齐", "align-center": "居中", "align-right": "右对齐", "Type here...": "输入内容" }, Color: { "#646a73": "灰色", "#d83931": "红色", "#de7802": "橙色", "#dc9b04": "黄色", "#2ea121": "绿色", "#245bdb": "蓝色", "#6425d0": "紫色", none: "恢复默认" } }, blockTunes: { delete: { Delete: "删除", "Click to delete": "点击删除" }, moveUp: { "Move up": "向上移" }, moveDown: { "Move down": "向下移" }, filter: { Filter: "过滤" }, blockAlignment: { "left align": "左对齐", "center align": "居中对齐", "right align": "右对齐", "justify align": "两端对齐" }, indent: { "Indent right": "向右缩进", "Indent left": "向左缩进" } } } }, Ln = ((_ = []) => ({ version: "2.31.58", install: (e, t) => {
5335
5338
  e[Yt] || (e[Yt] = !0, _.forEach((n) => e.use(n)), e.provide("EblEditorSettings", t));
5336
- } }))(En), Li = Ln.install, xi = Ln.version;
5339
+ } }))(En), xi = Ln.install, Ri = Ln.version;
5337
5340
  export {
5338
- Ci as EblEditor,
5341
+ wi as EblEditor,
5339
5342
  Ln as default,
5340
- Li as install,
5341
- xi as version,
5342
- Ei as zhCn
5343
+ xi as install,
5344
+ Ri as version,
5345
+ Li as zhCn
5343
5346
  };