@ones-editor/editor 1.1.20-beta.11 → 1.1.20-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -969,5 +969,5 @@ ${o.flowchartText}
|
|
|
969
969
|
\`\`\`\`\`\``}return""}const oZ={embedType:"plantuml",convertFrom:nZ,handleUpdateBlock:eZ,createEmbedContent:tZ,getBlockProperties:rZ,convertTo:iZ},Zct="",sZ="hr",lZ={dividingLine:{type:"\u5206\u5272\u7EBF",abstract:"\u5206\u5272\u7EBF"}},aZ={dividingLine:{type:"Dividing-Line",abstract:"Dividing-Line"}},cZ={dividingLine:{type:"\u533A\u5207\u308A\u7DDA",abstract:"\u533A\u5207\u308A\u7DDA"}};_.mergeLang({"zh-CN":lZ,"en-US":aZ,"ja-JP":cZ});function uZ(n,t){const e=B("div",["editor-embed-container"],t);B("hr",["editor-embed-hr"],e)}function fZ(n,t,e,r){return r==="html"?"<hr />":r==="markdown"?"---":"------------"}function dZ(){return{name:"hr",insertEmbedCommandItems:[{id:"insert-hr",name:_.t("dividingLine.type"),icon:ZT,order:500,group:"common",subText:Jn("insert-hr")}],handleInsertEmptyEmbed:async(n,t)=>{const{containerId:e,blockIndex:r}=t;return n.insertEmbed(e,r,sZ,{})}}}function hZ(n,t,e){const{data:r}=e;if(!r||r.embedType!=="dividing-line"||!lt(n,t))return null;const i={};return{blockData:{id:rt(),type:"embed",embedType:"hr",embedData:i}}}function mZ(){return{abstract:_.t("dividingLine.abstract")}}const gZ={embedType:"hr",createEmbedContent:uZ,convertTo:fZ,getOptions:dZ,convertFrom:hZ,getBlockProperties:mZ},tut="",eut="",pZ={media:{upload:{failed:'<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>',maxSizeFailed:'<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7\u9650\u5236\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6</div>'},load:{failed:'<div class="line-1">{name}\u52A0\u8F7D\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>'},audio:{menuItem:"\u97F3\u9891",abstract:"\u97F3\u9891"},video:{menuItem:"\u89C6\u9891",abstract:"\u89C6\u9891"}}},CZ={media:{upload:{failed:'<div class="line-1">{name} upload failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>',maxSizeFailed:'<div class="line-1">{name} upload failed</div><div class="line-2">The file size exceeds limit. Please choose another file.</div>'},load:{failed:'<div class="line-1">{name} loading failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>'},audio:{menuItem:"Audio",abstract:"Audio"},video:{menuItem:"Video",abstract:"Video"}}},EZ={media:{upload:{failed:'<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>',maxSizeFailed:'<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u30D5\u30A1\u30A4\u30EB\u306E\u30B5\u30A4\u30BA\u304C\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u308B\u305F\u3081\u3001\u4ED6\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044</div>'},load:{failed:'<div class="line-1">{name}\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>'},audio:{menuItem:"\u97F3\u58F0",abstract:"\u97F3\u58F0"},video:{menuItem:"\u52D5\u753B",abstract:"\u52D5\u753B"}}};_.mergeLang({"zh-CN":pZ,"en-US":CZ,"ja-JP":EZ});var Pi=(n=>(n.AUDIO="audio",n.VIDEO="video",n))(Pi||{}),gh=(n=>(n.Empty="empty",n.Progress="progress",n.Error="error",n))(gh||{});const zS=10*1024*1024,AZ=["wav","mp3","aac","ogg","webm","flac"],bZ=["ogg","mp4","webm"],xZ=()=>{};function WS(n){var h,C,E,A,v,R;const t=(h=n.getComponentOptions("media"))!=null?h:{},{allowedMedias:e,maxSize:r,callbacks:i}=t,o=(C=e==null?void 0:e.audio)!=null?C:AZ,s=(E=e==null?void 0:e.video)!=null?E:bZ,l=(A=r==null?void 0:r.audio)!=null?A:zS,c=(v=r==null?void 0:r.video)!=null?v:zS,d=(R=i==null?void 0:i.onError)!=null?R:xZ;return{allowedMedias:{audio:o,video:s},maxSize:{audio:l,video:c},callbacks:{onError:d}}}function vZ(n,t){const e=o=>o.map(s=>`.${s}`).join(","),{allowedMedias:r}=WS(n),i=r[t];return i?e(i):"*"}function BZ(n,t,e){const{maxSize:r,callbacks:i,allowedMedias:o}=WS(t),{[e]:s}=r,{[e]:l}=o;if(s&&n.size>s){const d=new Error("media is too large");throw d.code=`MaxMediaSize-${e}`,i!=null&&i.onError&&(i==null||i.onError(t,d)),d}const c=Of(n.name);if(l&&!l.includes(c.toLowerCase())){const d=new Error(`media file is not allowed: ${c}`);throw d.code="NotAllowedFile",i!=null&&i.onError&&(i==null||i.onError(t,d)),d}}function yZ(n){return n===gh.Empty||n===gh.Error}const Cn=D("media");class TZ extends Ve.TypedEmitter{constructor(e){super();m(this,"mediaContainer",null);m(this,"media",null);m(this,"abstract",null);m(this,"handleMediaLoadError",(e,r)=>{if(!r.target||!(r.target instanceof Node)||!(r.target instanceof Element?r.target:r.target.parentElement))return;const o=Z(r.target);if(!o||!o.contains(this.mediaContainer))return;const s=this.renderError();this.updateMediaContent(s),this.emit("mediaError",e,"load_error",ht(o))});m(this,"handleUploadFile",async e=>{p(Cn,this.abstract,"no abstract"),p(Cn,this.mediaContainer,"The media element not exist");const{editor:r}=this.options,i=Z(this.mediaContainer);p(Cn,i,"The block element not exist");const o=r.getBlockData(i);try{const{resourceId:s}=await r.doc.uploadResource(e,{onProgress:C=>{this.renderProgress(C,e)}}),{name:l,type:c,size:d}=e,h={...o,embedData:{...o.embedData,src:s,fileName:l,fileSize:d,fileType:c}};r.updateBlockData(i,h)}catch(s){Cn.error(s),this.emit("mediaError",r,"upload_error",o.id),this.renderRetry(e,s)}st(i,"media-block-uploading")});m(this,"destroy",()=>{this.mediaContainer=null});this.options=e}bindMediaEvent(){const{editor:e}=this.options;this.media&&e.domEvents.addEventListener(this.media,"error",this.handleMediaLoadError)}unbindMediaEvent(){const{editor:e}=this.options;this.media&&e.domEvents.removeEventListener(this.media,"error",this.handleMediaLoadError)}updateMediaContent(e){p(Cn,this.mediaContainer,"The media element not exist"),this.mediaContainer.innerHTML="",this.mediaContainer.append(e)}renderError(){p(Cn,this.abstract,"no abstract");const{editor:e,createMediaElement:r}=this.options,{mediaIcon:i,mediaName:o}=this.abstract;p(Cn,this.mediaContainer,"The media element not exist");const s=Z(this.mediaContainer);p(Cn,s,"The block element not exist");const l=e.getBlockData(s),c=B("div",["media-error","embed-selected-content","embed-hover-content"],null),d=B("span",["media-error-icon"],c);d.innerHTML=i;const h=B("div",[],c);h.innerHTML=_.t("media.load.failed",{name:o}),c.appendChild(h);const C=h.querySelector(".retry-upload");return p(Cn,C,"The element not exist"),e.domEvents.addEventListener(C,"click",(E,A)=>{const v=B("div",["media-element"],null),R=this.getResourceUrl(l),w=r(E,v,l,R);this.unbindMediaEvent(),this.media=w,this.bindMediaEvent(),this.updateMediaContent(v)}),this.setFullScreen(),c}renderRetry(e,r){var E,A;p(Cn,this.abstract,"no abstract");const{editor:i}=this.options,{mediaIcon:o,mediaName:s}=this.abstract,l=B("div",["media-error","embed-selected-content","embed-hover-content"],null),c=B("span",["media-error-icon"],l);c.innerHTML=o;const d=B("div",[],l);let h=_.t("media.upload.failed",{name:s});(((E=r.response)==null?void 0:E.status)===420||((A=r.response)==null?void 0:A.status)===413)&&(h=_.t("media.upload.maxSizeFailed",{name:s})),d.innerHTML=h,l.appendChild(d);const C=d.querySelector(".retry-upload");C&&i.domEvents.addEventListener(C,"click",()=>{i.readonly||(p(Cn,this.abstract,"no abstract"),this.handleUploadFile(e))}),this.updateMediaContent(l),this.setFullScreen()}renderProgress(e,r){p(Cn,this.mediaContainer,"The media element not exist");const i=this.mediaContainer.querySelector(":scope .media-progress"),o=e===-1||e===100?100:e;if(i){const{updateProgressElement:s}=this.options;s(i,o)}else{const{createProgressElement:s}=this.options,l=Z(this.mediaContainer);p(Cn,l,"The element not exist"),z(l,"media-block-uploading");const c=B("div",["media-progress"],null);s(c,o,r),this.updateMediaContent(c)}this.setFullScreen()}renderMediaElement(e,r){p(Cn,this.mediaContainer,"The media element not exist");const i=this.mediaContainer.querySelector(":scope > .media-element"),{createMediaElement:o,updateMediaElement:s,editor:l}=this.options,c=this.getResourceUrl(e,r);if(i){const d=s(l,i,e,c);this.unbindMediaEvent(),this.media=d,this.bindMediaEvent()}else{const d=B("div",["media-element"],null),h=o(l,d,e,c);this.unbindMediaEvent(),this.media=h,this.bindMediaEvent(),this.updateMediaContent(d)}}renderEmpty(e){p(Cn,this.abstract,"no abstract"),p(Cn,this.mediaContainer,"The media element not exist");const r=B("div",["media-empty","embed-selected-content","embed-hover-content"],this.mediaContainer);r.innerHTML=this.abstract.mediaIcon,this.updateMediaContent(r);const{editor:i}=this.options;i.findBlockById(e.id)&&this.emit("mediaError",i,"empty",e.id),this.setFullScreen()}getResourceUrl(e,r){const{src:i}=e.embedData,{editor:o}=this.options;return o.doc.buildResourceUrl(i,{syncNewResources:async(s,l)=>{var d,h;if(!r)return;await o.doc.addResources([s]);const c=(h=(d=o.doc).getServerMeta)==null?void 0:h.call(d).appId;if(l!==e.embedData.src&&c&&e.embedData.src.includes(c)){const C=Z(r);if(C&&!o.readonly&&o.isBlockWritable(C)){const E=At.default(e);E.embedData.src=s,o.updateBlockData(C,E)}}}})}setFullScreen(){p(Cn,this.mediaContainer,"The media element not exist"),z(this.mediaContainer,"full-screen")}removeFullScreen(){p(Cn,this.mediaContainer,"The media element not exist"),st(this.mediaContainer,"full-screen")}updateBlockAlign(e,r){const i=Z(r);p(Cn,i,"The block element not exist");const{align:o}=e;e.embedType==="video"&&(i.hasAttribute("data-style-align")&&i.removeAttribute("data-style-align"),i.setAttribute("data-style-align",o))}render(e,r){const{src:i}=e.embedData;(!this.mediaContainer||!r.contains(this.mediaContainer))&&(this.mediaContainer=B("div",["media"],r)),this.updateBlockAlign(e,r),yZ(i)?i===gh.Empty&&this.renderEmpty(e):this.renderMediaElement(e,r)}setAbstract(e){this.abstract=e}}D("media-embed");const kZ="left";class GS{constructor(){m(this,"handleInsertEmptyEmbed",async(t,e)=>{var C;const{containerId:r,blockIndex:i}=e;let o;(C=e.data)!=null&&C.file&&(o=e.data.file);const s=vZ(t,this.embedType);if(o=o!=null?o:await Pc(s,{}),!o)return null;const{mediaType:l}=this.getAbstract();try{BZ(o,t,l)}catch{return null}const c={id:rt(),type:"embed",embedType:this.embedType,embedData:{src:gh.Empty}};l==="video"&&(c.align=kZ);const d=t.insertBlock(r,i,c);return await this.getMedia(t,c.id).handleUploadFile(o),d})}getMedia(t,e){const r=t.addCustom(`media-${e}`,()=>new TZ({editor:t,createMediaElement:this.createMediaElement,updateMediaElement:this.updateMediaElement,createProgressElement:this.createProgressElement,updateProgressElement:this.updateProgressElement}));return r.setAbstract({...this.getAbstract()}),r}getOptions(){const{menuItem:t,mediaIcon:e,mediaName:r,order:i,group:o}=this.getAbstract();return{name:r,insertEmbedCommandItems:[{id:`insert-${this.embedType}`,name:t,icon:e,order:i,group:o,subText:Jn(`insert-${this.embedType}`)}],handleInsertEmptyEmbed:this.handleInsertEmptyEmbed}}createEmbedContent(t,e,r){const{id:i}=r;this.getMedia(t,i).render(r,e)}handleUpdateBlock(t,e,r){const{id:i}=r,o=this.getMedia(t,i),s=$t(e);return o.render(r,s),!0}handleDeleteBlock(t,e){const r=e.id,i=this.getMedia(t,r);i.removeAllListeners(),i.destroy()}convertTo(t,e,r,i){const o=e.embedData,s=t.doc.buildResourceUrl(o.src,{withToken:!0});return i==="html"?`<${o.type} src="${s}" />`:i==="markdown"?``:s}}function qS(n,t){const e=B("div",["uploading-progress-mask"],n),r=B("div",["uploading-progress-bar"],e),i=B("div",["uploading-progress-bar-value"],r);i.style.width=`${t}%`}function XS(n,t){const e=n.querySelector(".uploading-progress-bar-value");e&&(e.style.width=`${t}%`)}const RZ=D("media-audio");class wZ extends GS{constructor(){super(...arguments);m(this,"embedType",Pi.AUDIO);m(this,"updateProgressElement",XS);m(this,"createMediaElement",(e,r,i,o)=>{const s=B("div",["audio-container","embed-hover-content","embed-selected-content"],r),l=B("audio",[],s);return l.innerHTML="Your browser does not support the <code>audio</code> element.",l.controls=!0,l.src=o,setTimeout(()=>{this.getMedia(e,i.id).setFullScreen()}),l})}getAbstract(){return{mediaIcon:YT,mediaName:_.t(`media.${Pi.AUDIO}.menuItem`),menuItem:_.t(`media.${Pi.AUDIO}.menuItem`),order:800,mediaType:Pi.AUDIO,group:"common"}}getBlockProperties(){return{abstract:`${_.t(`media.${Pi.AUDIO}.abstract`)}`}}updateMediaElement(e,r,i,o){const s=r.querySelector(":scope .audio-container > audio");return p(RZ,s,"The media element not exist"),s.src!==o&&(s.src=o),s}createProgressElement(e,r){const i=B("audio",[],e);i.innerHTML="Your browser does not support the <code>audio</code> element.",i.controls=!0,i.src="about:blank",qS(e,r)}}const SZ=new wZ;D("video-resizer");function YS(n){return n&&fe(n)&&He(n)==="video"}const LZ=50;class _b{constructor(t){m(this,"currentResizableElement",null);m(this,"resizing",!1);m(this,"handleHoveringBlockChange",(t,e)=>{if(!this.resizing&&!window.isDragging&&(e&&YS(e)&&this.disableBlockResize(e),t&&YS(t)&&this.editor.isBlockWritable(t))){const r=this.getVideoElement(t);if(!r)return;this.enableBlockResize(t,r)}});m(this,"handleResizing",(t,e)=>{if(this.resizing=!0,!this.currentResizableElement)return;const r=t.getBlock();if(!r)return;const i=r.getBoundingClientRect().width,o=Math.min(Math.max(e.width,LZ),i);this.currentResizableElement.style.width=`${o}px`,this.currentResizableElement.style.pointerEvents="none"});m(this,"handleResized",t=>{this.resizing=!1;const e=t.getBlock();if(!this.currentResizableElement||!e)return;const r=this.editor.getBlockData(e),{width:i}=this.currentResizableElement.getBoundingClientRect();this.currentResizableElement.style.pointerEvents="auto",this.editor.updateBlockData(e,{...r,width:i})});this.editor=t,We.get(t).addListener("change",this.handleHoveringBlockChange)}destroy(){this.currentResizableElement=null,We.get(this.editor).removeListener("change",this.handleHoveringBlockChange)}getVideoElement(t){return $t(t).querySelector(":scope .video-container > video")}updateResizer(t){const e=this.editor.findCustom(`${ht(t)}-resizer`);e&&e.updateResizer()}disableBlockResize(t){const e=this.editor.findCustom(`${ht(t)}-resizer`);e&&e.disableResize()}enableBlockResize(t,e){const r=this.editor.addCustom(`${ht(t)}-resizer`,()=>new Qd(this.editor,{resize:["top-left","top-right","bottom-left","bottom-right"]}));r.enableResize(t,e),r.removeListener("resizing",this.handleResizing),r.removeListener("resized",this.handleResized),r.addListener("resizing",this.handleResizing),r.addListener("resized",this.handleResized),this.currentResizableElement=e}}class IZ{constructor(t,e){m(this,"group","hovering-toolbar");m(this,"_commands",[{id:"addComment",name:_.t("comment.quickMenuCommand"),icon:os},{id:"sep",name:"",type:"separator"},{id:"left",name:_.t("commands.alignLeft"),icon:pl},{id:"center",name:_.t("commands.alignCenter"),icon:lu},{id:"right",name:_.t("commands.alignRight"),icon:su}]);this.editor=t,this.block=e,this.editor=t,this.block=e}createIconItem(t,e,r){if(!t)return null;const i=["style-icon","text-style-item"];return e&&i.push("active"),Vo(t,i,r)}get commands(){if(this.editor.readonly)return[];const t=this.block.getAttribute("data-style-align");return this._commands.map(r=>r.id===t?{...r,element:()=>{const i=B("div",["video-tooltip-align-style-section"],null);return this.createIconItem(r.icon,!0,i),i}}:r)}executeCommand(t,e,r){switch(r.id){case"addComment":_a(t,e);break;case"left":case"center":case"right":lg(t,e,r.id);break}}}const DZ=D("video");class _Z extends GS{constructor(){super(...arguments);m(this,"embedType",Pi.VIDEO);m(this,"updateProgressElement",XS);m(this,"createMediaElement",(e,r,i,o)=>{const s=B("div",["video-container","embed-selected-content","drag-preview-element"],r),l=B("video",[],s);return l.innerHTML="Your browser does not support the <code>video</code> element.",l.controls=!0,l.src=o,l.addEventListener("canplay",()=>{e.addCustom("video-resizer",()=>new _b(e)),this.getMedia(e,i.id).removeListener("mediaError",this.handleMediaError),this.getMedia(e,i.id).addListener("mediaError",this.handleMediaError),this.getMedia(e,i.id).removeFullScreen()}),i.width&&(l.style.width=`${i.width}px`),l});m(this,"createProgressElement",(e,r,i)=>{const o=B("video",["progress-video"],e);o.innerHTML="Your browser does not support the <code>audio</code> element.",o.controls=!0,qS(e,r),Nc(i).then(s=>{const l=e.querySelector(".progress-video");l&&g1(e)&&(l.src=s)})})}getAbstract(){return{mediaName:_.t(`media.${Pi.VIDEO}.menuItem`),mediaIcon:QT,menuItem:_.t(`media.${Pi.VIDEO}.menuItem`),order:700,mediaType:Pi.VIDEO,group:"common"}}getBlockProperties(e,r){return{abstract:`${_.t(`media.${Pi.VIDEO}.abstract`)}`,blockCommands:{"hovering-toolbar":new IZ(e,r)}}}handleMediaError(e,r,i){const o=e.addCustom("video-resizer",()=>new _b(e)),s=e.getBlockById(i);o.disableBlockResize(s)}updateMediaElement(e,r,i,o){const s=r.querySelector(":scope .video-container > video");p(DZ,s,"The media element not exist"),s.src!==o&&(s.src=o),i.width?s.style.width=`${i.width}px`:s.style.width="";const l=e.getBlockById(i.id);return setTimeout(()=>{e.addCustom("video-resizer",()=>new _b(e)).updateResizer(l)}),s}}const MZ=new _Z,OZ=D("layout");function Fa(n,t,e){const r=Array.from(n.querySelectorAll(':scope > .layout-root > [data-type="editor-container"].child'));p(OZ,r.length>1,"Layout block must have at least tow columns");let i=t?r.findIndex(s=>ft(s)===t):0,o=e?r.findIndex(s=>ft(s)===e):r.length-1;return i&&o&&i>o&&([o,i]=[i,o]),r.slice(i,o+1)}function UZ(n){return Array.from(n.querySelectorAll(".layout-separator"))}const NZ={layout:{title:"\u5206\u680F",columnDrag:`\u957F\u6309\u62D6\u62FD
|
|
970
970
|
\u70B9\u51FB\u64CD\u4F5C\u5220\u9664`,insertColumn:"\u63D2\u5165\u5206\u680F"}},PZ={layout:{title:"Layout",columnDrag:`Long press and drag
|
|
971
971
|
click to delete`,insertColumn:"Insert Column"}},FZ={layout:{title:"\u6BB5\u7D44\u307F",columnDrag:`\u9577\u62BC\u3057\u30C9\u30E9\u30C3\u30B0
|
|
972
|
-
\u30AF\u30EA\u30C3\u30AF\u64CD\u4F5C\u3067\u524A\u9664`,insertColumn:"\u6BB5\u7D44\u307F\u3092\u633F\u5165"}};_.mergeLang({"zh-CN":NZ,"en-US":PZ,"ja-JP":FZ});const nut="",KZ="LayoutBlock",VZ="insert-layout",$Z="/layout",bo="layout",zg=6,Wg=.08,HZ=["text","link","layout","embed","list","table"],jZ=["image","task"],QS="layout-separator",JS="layout-column-container",ju="layoutSeparatorIndex";function ZS(n){return n instanceof HTMLElement&&n.getAttribute("data-type")==="editor-block"}D("layout-operations");async function zZ(n,t){var d;const r=(d=t.item.colCount)!=null?d:2,i=Array.from({length:r},()=>Gr(n.doc)),o=Array.from({length:r},()=>1/r),s={id:rt(),type:bo,children:i,colsWidth:o},l=i[0],c=n.doc.getContainerBlocks(l)[0].id;return n.insertBlock(t.containerId,t.blockIndex,s,Ae(n,c,0))}function WZ(n,t,e){if(typeof t=="number"){const r=t,i=Array.from({length:r},()=>Gr(n.doc)),o=Array.from({length:r},()=>1/r),s={id:rt(),type:bo,children:i,colsWidth:o},l=i[0],c=n.doc.getContainerBlocks(l)[0].id;return n.insertBlock(e.containerId,e.blockIndex,s,Ae(n,c,0))}if(Array.isArray(t)){const r=t,i=Array.from({length:r.length},()=>1/r.length),o=t.map(c=>Zf(n.doc,[ZS(c)?{...n.getBlockData(c),id:rt()}:c])),s={id:rt(),type:bo,children:o,colsWidth:i},l=n.doc.getContainerBlocks(o[0])[0].id;return n.insertBlock(e.containerId,e.blockIndex,s,Ae(n,l,0))}throw new Error("invalid col")}function GZ(n,t,e,r){const i=n.getBlockData(t),o=i.children.findIndex(l=>l===e);if(o===r)return;const s=o>r?0:-1;n.undoManager.runInGroup(()=>{i.children.splice(o,1),i.children.splice(r+s,0,e);const l=i.colsWidth[o];i.colsWidth.splice(o,1),i.colsWidth.splice(r+s,0,l),n.updateBlockData(t,i)})}function qZ(n,t,e,r){n.undoManager.runInGroup(()=>{const i=n.getBlockData(e),s=n.getBlockData(t).children.map(c=>{const d=n.getChildContainerData(c);return Zf(n.doc,d)});i.children.splice(r!=null?r:i.children.length,0,...s);const l=i.children.length;i.colsWidth=Array.from({length:l},()=>1/l),n.updateBlockData(e,i),n.deleteBlock(t)})}function tL(n,t,e){n.undoManager.runInGroup(()=>{const r=n.getBlockData(t),{sourceBlock:i,position:o=r.children.length}=e!=null?e:{};let s;if(i){const E=n.getBlockData(i);s=Zf(n.doc,[E]),n.deleteBlock(i)}else s=Gr(n.doc);r.children.splice(o,0,s);const l=n.doc.getContainerBlocks(s)[0],c=Ae(n,l.id,0),d=1/r.children.length,h=1-d,C=r.colsWidth.map(E=>E<=Wg?E:E*h);C.push(d),r.colsWidth=C,n.updateBlockData(t,r,c)})}function XZ(n,t,e){n.undoManager.runInGroup(()=>{const r=n.getBlockData(e);if(r.colsWidth.length===2)return;const i=r.children.findIndex(c=>c===t);if(i===-1)return;r.children.splice(i,1);const o=1-r.colsWidth[i];r.colsWidth.splice(i,1),r.colsWidth=r.colsWidth.map(c=>c/o);let s;if(ft(n.getParentContainer(n.selection.focusedBlock))===t){const c=n.doc.getContainerBlocks(r.children[r.children.length-1])[0];s=Ae(n,c.id,0)}n.updateBlockData(e,r,s),n.deleteChildContainers([t])})}const YZ=new Set(HZ),QZ=new Set(jZ),zu=2,JZ=(n,t,e,r,{isSourceBlock:i})=>{var c;if(typeof r=="string"||r.type!=="custom"||!((c=r.data)!=null&&c.isValidColumnDragging))return!1;const o=r.data;if(i||Array.isArray(e))return!1;const s=n.getBlockById(e.blockId);return Lt(s)===bo?qZ(n,s,t,o.position):s&&tL(n,t,{sourceBlock:s,position:o.position}),!0};function Mb(n){const t=Ze(n,{horizontal:!0}),e=n.getBoundingClientRect(),r=t.getBoundingClientRect(),i=Math.max(r.x-e.x,0),o=Math.max(e.right-r.right,0);return new DOMRect(e.x+i,e.y,Math.max(e.width-i-o,0),zu)}const ZZ=(n,t,e,r,i)=>{var v;if(console.log("123"),typeof e!="object"||Jk.isNull(e)||!("blockId"in e))return;const o=n.getBlockById(e.blockId),s=Lt(o);if((fe(o)?!QZ.has(He(o)):!YZ.has(s))||t.id===(o==null?void 0:o.id))return!1;const l=n.getBlockData(t),c=n.getBlockData(o);if(s===bo&&(!c||c.children.length+l.children.length>zg))return!1;const d=t.getBoundingClientRect();let h,C;const A=document.elementFromPoint(r,i).closest(`.${QS}`);if(A){const R=A.getBoundingClientRect(),w=Mb(A);h=new DOMRect((w.right-w.left)/2+R.x-zu/2,R.y,zu,R.height),C=Number.parseInt((v=A.dataset[ju])!=null?v:"0",10)}if(r<=d.x){const R=t.getBoundingClientRect(),w=Mb(t);h=new DOMRect(w.x,R.y,zu,R.height),C=0}if(d.width+d.x<=r){const R=t.getBoundingClientRect(),w=Mb(t);h=new DOMRect(w.right-zu,R.y,zu,R.height),C=l.children.length}if(h&&typeof C<"u")return{type:"custom",rect:h,data:{isValidColumnDragging:!0,position:C},targetBlock:t};if(s==="layout")return!1},Ob=D("table-creator");class ttt{constructor(){m(this,"id","insert-layout");m(this,"name","Create layout");m(this,"colCount");m(this,"classPrefix",{container:"layout-creator",title:"layout-creator-title",column:"layout-creator-column-"});m(this,"element");m(this,"closeable",null);m(this,"columnsArray",Array.from({length:zg},(t,e)=>e+1));m(this,"setCloseable",t=>{this.closeable=t});m(this,"destroy",()=>{this.closeable=null});m(this,"handleCreatorClick",t=>{var r,i;t.preventDefault(),t.stopPropagation();const e=t.target;p(Ob,e instanceof HTMLElement,"invalid event target"),!(!this.colCount||this.colCount<2)&&((r=this.closeable)==null||r.click(this,this.element),(i=this.closeable)==null||i.close("clickItem"),this.handleCreatorLeave())});m(this,"handleCreatorLeave",()=>{this.columnsArray.forEach(()=>{this.highlightLayoutCreatorColumn(-1),this.showCreateLayoutCount(-1)})});m(this,"handleLayoutCreatorColumnEnter",t=>{const e=t.target;p(Ob,e instanceof HTMLElement,"invalid event target");const r=e.id;p(Ob,r.startsWith(this.classPrefix.column),"invalid cell id");const i=r.substring(this.classPrefix.column.length),o=Number.parseInt(i,10);this.colCount=o+1,this.highlightLayoutCreatorColumn(o),this.showCreateLayoutCount(o)});m(this,"highlightLayoutCreatorColumn",t=>{this.columnsArray.forEach((e,r)=>{const i=document.getElementById(`${this.classPrefix.column}${r}`);this.setColumnClassByIndex(i,r,t)})});m(this,"setColumnClassByIndex",(t,e,r)=>{if(!!t){if(r===0&&e===0){z(t,"disabled");return}if(e<=r){z(t,"active"),st(t,"disabled");return}st(t,"active"),st(t,"disabled")}});m(this,"showCreateLayoutCount",t=>{const e=document.getElementById(`${this.classPrefix.title}-count`);if(!!e){if(t<=0){z(e,"hidden");return}st(e,"hidden"),e.innerText=`${t+1} \u680F`}});this.element=this.createLayoutCreatorElement()}createLayoutCreatorElement(){const e=B("div",["layout-creator"],null),r=B("div",[`${this.classPrefix.title}-wrapper`],e),i=B("span",[this.classPrefix.title],r);i.innerText="\u9009\u62E9\u5206\u680F";const o=B("span",[`${this.classPrefix.title}-count`],r);o.id=`${this.classPrefix.title}-count`,e.addEventListener("click",this.handleCreatorClick),e.addEventListener("mouseleave",this.handleCreatorLeave);const s=(c,d)=>{const h=B("div",["layout-column"],c);return h.id=`${this.classPrefix.column}${d}`,h},l=B("div",["layout-preview"],e);for(let c=0;c<zg;c++)s(l,c).addEventListener("mouseenter",this.handleLayoutCreatorColumnEnter);return e}}function ett(){return new ttt}const ntt=new Set(["text"]),rtt=new Set(["image"]);function itt(n){if(!n||!vr(n))return!1;const t=$f(n);return!(Lt(t)!=="text"||bn(n))}function ott(n){return{name:KZ,insertBlockCommandItems:[{id:VZ,name:_.t("layout.title"),icon:e2,order:250,group:"common",children:[ett()],subText:$Z,shouldShown:itt}],handleInsertEmptyBlock:zZ,isMenuButtonBaseContainer:t=>Dt(t,JS),combineToCreate:{combinable(t,e){if(ft(n.getParentContainer(e))==="root"&&[t,e].every(r=>fe(r)?rtt.has(He(r)):ntt.has(Lt(r))))return console.log("sideway"),"sideway"},onCombine(t,e,r,i,o){t.undoManager.runInGroup(()=>{var l,c;let s=e;if(fe(s)&&He(s)==="image"&&o){const d=o.data;$A(t,s,d.index);const h=Mn([d.image],100),C={id:rt(),type:"embed",embedType:"image",embedData:h},E=(c=(l=t.options.componentsOptions)==null?void 0:l.image)==null?void 0:c.defaultAlign;E&&(C.align=E),s=C}WZ(t,i==="left"?[s,r]:[r,s],zo(r)[0]),t.deleteBlock(r),ZS(s)&&t.deleteBlock(s)})}}}}const eL=D("layout-block"),stt=(n,t,e,r)=>{var l;const i=(l=n.getBlockData(t).children)!=null?l:[],o=e.isSimple()?i[0]:e.childContainerId,s=r.isSimple()?i[i.length-1]:r.childContainerId;Fa(t,o,s).forEach(c=>z(c,"selected"))},ltt=n=>{n.rootContainer.querySelectorAll(`[data-type="editor-block"][data-block-type="${bo}"]`).forEach(t=>{Fa(t).forEach(r=>st(r,"selected"))})},att=(n,t,e,r)=>(p(eL,e.blockId===r.blockId,"Start and end block must be the same"),p(eL,e.blockId===t.id,"Start block must be the same as complex block"),Fa(t,e.childContainerId,r.childContainerId)),ctt=(n,t)=>{var A;const e=n.selection.range;if(e.isSimple())return;const{start:r,end:i}=e;if(r.isSimple()||i.isSimple())return;const o=Fa(t,r.childContainerId,i.childContainerId);if(!o.length)return;const s=o.shift(),l=(A=o.pop())!=null?A:s,c=s.getBoundingClientRect(),d=l.getBoundingClientRect(),h=d.right-c.left,C=d.top,E=document.querySelector("[data-command-bar-id='layout-column-toolbar']")?46:-10;return new DOMRect(c.left,C+E,h,c.height)};D("columns");function nL(n){n.setAttribute("data-type","block-tools"),n.setAttribute("drop-area","custom")}function rL(n,t,e){const r=xr(n,t).closest(`div[data-block-type=${bo}]`),i=B("div",[QS],null,{[ju]:e.toString()}),o=B("div",["creation-dot-button"],i);return o.innerHTML=kT,o.addEventListener("click",l=>{tL(n,r,{position:e})}),Pp.default(o,{content:_.t("layout.insertColumn"),delay:[500,0]}).popper.setAttribute("tooltip-id","add-layout-column"),B("div",["layout-drag-line"],i),nL(i),i}function iL(n){const t='.child[data-type="editor-container"]';return n.closest(t)}function oL(n){if(!n)return;const t="hovering-toolbar";if(Dt(n,t)){st(n,t);return}z(n,t)}function utt(n){!n||(n.addEventListener("mouseenter",t=>{if(!t.currentTarget)return;const e=iL(t.currentTarget);oL(e)}),n.addEventListener("mouseleave",t=>{if(!t.currentTarget)return;const e=iL(t.currentTarget);oL(e)}))}function ftt(n,t,e,r=!0){const i=B("div",["layout-column-action-bar"],null),o=B("div",["drag-handler"],i);o.innerHTML=T0,utt(o);const s=Pp.default(o,{content:_.t("layout.columnDrag"),delay:[500,0]});if(s.popper.setAttribute("tooltip-id","drag-handler"),r){const l=new fu([{id:"delete-column",name:"",icon:hE}],void 0,{id:"layout-column-toolbar",refuseOverflow:!0,tooltipId:n.clientId});l.addListener("selectionChange",(c,d)=>{const h=xr(n,t);d==="delete-column"?z(h,"danger"):st(h,"danger")}),l.addListener("click",(c,d)=>{const C=n.getContainerById(t).closest(`div[data-block-type=${bo}]`);XZ(n,t,C),l.close("clickItem")}),o.addEventListener("click",c=>{const d=n.getContainerById(t);l.manualShow(c.currentTarget,{placement:"top",offset:[0,5]}),z(i,"clicked"),z(d,"active"),s==null||s.disable();const h=C=>{C.target!==o&&C.target.parentNode!==o&&(i.classList.remove("clicked"),st(i,"clicked"),st(d,"active"),s==null||s.enable(),document.removeEventListener("click",h))};document.addEventListener("click",h)})}return nL(i),i}function dtt(n){return Lt(n)===bo}function htt(n,t){return new DragEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:n.screenX,screenY:n.screenY,dataTransfer:new DataTransfer,clientX:n.clientX,clientY:n.clientY})}const mtt=1e3;async function gtt(n,t){const{width:e}=n.rootContainer.getBoundingClientRect(),r=t.getBoundingClientRect();return r.width>e||r.height>=mtt?"":(await Kp.default.toSvg(t)).replace(/margin-block:.*?;/,"").replace(/margin:.*?;/,"")}class ptt{constructor(t){m(this,"activeLayoutBlock");m(this,"columnContainer");m(this,"draggingContainer");m(this,"autoScroll");m(this,"startPosition");m(this,"handleMouseDown",t=>{console.log("mouse down");const e=t.target;if(!e||!(e instanceof HTMLElement)&&!(e instanceof SVGElement)||!e.closest(".drag-handler"))return;const i=Z(e);if(!i||!dtt(i)||!this.editor.isBlockWritable(i)||this.editor.readonly)return;const o=e.closest('[data-type="editor-container"]');if(this.columnContainer=o,!this.columnContainer)return;const{x:s,y:l}=t;this.startPosition={x:s,y:l},console.log("### yoyoyyo"),document.addEventListener("mouseup",this.handleDragEnd),this.editor.contentElement.addEventListener("mousemove",this.handleDrag),t.preventDefault()});m(this,"handleDragStart",async t=>{if(!t.target||!this.columnContainer)return;const e=Z(this.columnContainer);if(!e)return;this.activeLayoutBlock=e;const{x:r,y:i}=t,{width:o}=t.target.getBoundingClientRect(),s=Ee(e),l=B("div",["drag-container"],s);this.draggingContainer=l;const c=this.previewShouldScale(o,this.activeLayoutBlock)?4:2;l.style.left=`${r-o/c}px`,l.style.top=`${i}px`,await this.initContainerPreview(l,this.columnContainer);const d=Ze(e);this.autoScroll=new Uf({scrollElement:d,trackMouseEvent:"mousemove",edge:{top:50,bottom:50}}),this.autoScroll.active()});m(this,"handleDrag",t=>{var o,s,l;console.log("drag");const{x:e,y:r}=t;if(((o=this.startPosition)==null?void 0:o.x)===e&&this.startPosition.y===r)return;if(window.isDragging||(window.isDragging=!0,this.handleDragStart(t)),this.startPosition&&this.draggingContainer){const{x:c,y:d}=t;if(c===0&&d===0){this.draggingContainer.style.transform="",this.draggingContainer.style.opacity="0";return}const{x:h,y:C}=this.startPosition,E=c-h,A=d-C;this.draggingContainer.style.transform=`translate(${E}px, ${A}px)`,this.draggingContainer.style.opacity="0.5"}const i=this.getClosetSeparator(t);if((s=this.separators)==null||s.forEach(c=>{c.dataset[ju]!==(i==null?void 0:i.dataset[ju])&&st(c,"active")}),i&&i.ATTRIBUTE_NODE&&typeof this.draggingContainerIndex<"u"){const d=Number.parseInt((l=i.dataset[ju])!=null?l:"0",10)-this.draggingContainerIndex;d!==1&&d!==0&&z(i,"active")}});m(this,"handleDragEnd",t=>{var e,r,i;if(t&&this.activeLayoutBlock&&this.columnContainer){const o=this.getClosetSeparator(t);if(o){const s=(e=o.dataset[ju])!=null?e:"0";GZ(this.editor,this.activeLayoutBlock,ft(this.columnContainer),Number.parseInt(s,10))}}if(window.isDragging=!1,this.draggingContainer&&this.draggingContainer.remove(),this.draggingContainer=void 0,this.startPosition=void 0,this.columnContainer=void 0,this.activeLayoutBlock=void 0,(r=this.autoScroll)==null||r.inactive(),(i=this.separators)==null||i.forEach(o=>{st(o,"active")}),document.removeEventListener("mouseup",this.handleDragEnd),this.editor.contentElement.removeEventListener("mousemove",this.handleDrag),t){const o=htt(t,"drop");this.editor.contentElement.dispatchEvent(o)}});this.editor=t,this.editor.rootContainer.addEventListener("mousedown",this.handleMouseDown)}get separators(){return this.activeLayoutBlock&&UZ(this.activeLayoutBlock)}get draggingContainerIndex(){if(!this.activeLayoutBlock||!this.columnContainer)return;const t=this.editor.getBlockData(this.activeLayoutBlock).children,e=ft(this.columnContainer);return t==null?void 0:t.findIndex(r=>r===e)}destroy(){this.editor.rootContainer.removeEventListener("mousedown",this.handleMouseDown)}previewShouldScale(t,e){let r=!1;if(e&&t){const{width:i}=e.getBoundingClientRect();r=t/i>.5}return r}async initContainerPreview(t,e){if(!t||!e)return;const{width:r,height:i}=e.getBoundingClientRect(),o=this.previewShouldScale(r,this.activeLayoutBlock);let s=null;return i>400?(s=B("div",["dragging-preview-gray"],t),s.style.height=`${i}px`):(s=B("img",["dragging-preview"],t),s.src=await gtt(this.editor,e)),o&&(s.style.width=`${r/2}px`,s.style.height=`${i/2}px`),null}getClosetSeparator(t){if(!(!this.separators||!this.activeLayoutBlock))return Jk.minBy(this.separators,e=>Math.abs(e.getBoundingClientRect().x-t.clientX))}}class Ctt{constructor(t){m(this,"draggingRef",null);m(this,"startX",0);m(this,"dragRecord",{totalWidth:0,containerItem:null,dragItem:null,leftColumn:{item:null,width:0,percent:0},rightColumn:{item:null,width:0,percent:0}});m(this,"handleMouseDown",t=>{const e=this.checkDraggingAvailable(this.editor,t);!e||this.initDraggingHandler(e,t)});m(this,"initDraggingHandler",(t,e)=>{if(this.draggingRef)return;this.draggingRef=t;const r=t.closest(".layout-block");!r||this.handleDragStart(r,t,e)});m(this,"handleDragStart",(t,e,r)=>{this.startX=r.clientX;const i=t.querySelectorAll(".layout-root > .child");this.dragRecord.totalWidth=Array.from(i).reduce((l,c)=>l+c.clientWidth,0);const o=e.previousElementSibling,s=e.nextElementSibling;!o||!s||(this.saveColumnIntoRecord(o,"leftColumn"),this.saveColumnIntoRecord(s,"rightColumn"),this.dragRecord.containerItem=t,this.dragRecord.dragItem=e,this.showDragging(),document.addEventListener("mousemove",this.handleMouseMove))});m(this,"handleMouseMove",t=>{const r=t.clientX-this.startX,i=this.computeLeftColumnPercent(r),o=i<Wg?Wg:i,s=o-this.dragRecord.leftColumn.percent,l=this.dragRecord.rightColumn.percent-s;l<Wg||this.updateLayoutColumnWidth(o,l)});m(this,"computeLeftColumnPercent",t=>{const e=this.dragRecord.leftColumn.width+t,r=e/this.dragRecord.totalWidth,i=this.getAdsorbPercent(r),[o,s]=this.getAdsorbRange(i);return o<e&&e<s?i:r});m(this,"getAdsorbPercent",t=>{const e=t*10;return Math.round(e)/10});m(this,"getAdsorbRange",t=>{const e=this.dragRecord.totalWidth,r=e*t,i=e*.05;return[r-i,r+i]});m(this,"updateLayoutColumnWidth",(t,e)=>{const r=this.dragRecord.leftColumn.item,i=this.dragRecord.rightColumn.item;this.updateColumnPercent(r,t),this.updateColumnPercent(i,e)});m(this,"updateColumnPercent",(t,e)=>{if(!t)return;const r=t;r.style.flexBasis=`${e*100}%`;const i=r.querySelector(".percent-bar");i&&(i.innerHTML=`${(e*100).toFixed()}%`)});m(this,"handleMouseUp",()=>{this.draggingRef=null,document.removeEventListener("mousemove",this.handleMouseMove),this.updateBlockData(),this.hideDragging()});m(this,"showDragging",()=>{this.toggleDragging(!0)});m(this,"hideDragging",()=>{this.toggleDragging(!1)});m(this,"toggleDragging",(t=!0)=>{[this.dragRecord.containerItem,this.dragRecord.dragItem,this.dragRecord.leftColumn.item,this.dragRecord.rightColumn.item].forEach(r=>{r&&(t?z(r,"dragging"):st(r,"dragging"))})});m(this,"getColumnPercentNumber",t=>{if(!t)return 0;const e=t.style.flexBasis;return Number.parseInt(e,10)/100});m(this,"updateBlockData",()=>{if(!this.dragRecord.dragItem||!this.dragRecord.containerItem)return;const t=this.dragRecord.dragItem.getAttribute("data-layout-separator-index"),e=this.editor.getBlockData(this.dragRecord.containerItem);if(!t)return;const r=parseInt(t,10)-1,{colsWidth:i}=e;i[r]=this.getColumnPercentNumber(this.dragRecord.leftColumn.item),i[r+1]=this.getColumnPercentNumber(this.dragRecord.rightColumn.item),e.colsWidth=i,this.editor.updateBlockData(this.dragRecord.containerItem,e)});this.editor=t,document.addEventListener("mousedown",this.handleMouseDown),document.addEventListener("mouseup",this.handleMouseUp)}destroy(){document.removeEventListener("mousedown",this.handleMouseDown),document.removeEventListener("mouseup",this.handleMouseUp)}checkDraggingAvailable(t,e){if(t.readonly||t.selectionHandler.isSelecting())return null;const r=e.target;if(!(r instanceof Element))return null;const i=r.closest(".layout-separator");return i||null}saveColumnIntoRecord(t,e){this.dragRecord[e]={item:t,width:t.clientWidth,percent:t.clientWidth/this.dragRecord.totalWidth}}}function Ett(n){n.addCustom("layout-column-width-dragger",t=>new Ctt(t))}function Att(n,t,e,r){const i="percent-bar";let o=t.querySelector(`.${i}`);o||(o=B("div",["percent-bar"],t)),o.innerHTML=`${(e.colsWidth[r]*100).toFixed()}%`}D("layout-block");const Ub=[RR,KR,VR,EK,{blockType:bo,blockKind:"complex",createBlockContent:(n,t,e,r,i)=>{const o=i,s=nl(r,"div"),l=o.children.length>=zg;z(s,"layout-root"),l&&z(s,"creation-disabled");const c=o.children.length>2;return o.children.forEach((d,h)=>{const C=n.createChildContainer(t,s,d);setTimeout(()=>{var A,v;C.style.flexBasis=`${o.colsWidth[h]*100}%`,z(C,JS),(A=C.parentNode)==null||A.insertBefore(rL(n,d,h),C),h===o.children.length-1&&((v=C.parentNode)==null||v.appendChild(rL(n,d,h+1)))}),C.querySelectorAll(".layout-column-action-bar").forEach(A=>{A.remove()});const E=ftt(n,d,r,c);C.appendChild(E),Att(n,C,o,h)}),Ett(n),g0(n,"layout-block",()=>{n.addCustom("layout-drag-handler",()=>new ptt(n))}),s},getBlockTextLength:n=>1,getRangeFromPoint:(n,t,e,r)=>{const i=document.elementsFromPoint(e,r)[0];if(!i||!t.contains(i)||!n.contains(t)||!Ai(i))return null;const o=i;if(!Ai(i)||Fa(t).indexOf(o)===-1)return null;const s=De(t,ft(o));return new Bi(n,{anchor:s,focus:s})},moveCaret:(n,t,e,r)=>null,getCaretRect:(n,t)=>n.getBoundingClientRect(),updateSelection:stt,clearSelection:ltt,getChildContainers:(n,t)=>Fa(t),getNextContainer:(n,t,e,r,i)=>{const o=Fa(t),s=o.indexOf(e);return s===-1?null:r==="ArrowLeft"?s===0?null:o[s-1]:r==="ArrowRight"?s===o.length-1?null:o[s+1]:null},getSelectedContainers:att,getOptions:n=>ott(n),getBlockProperties:(n,t)=>({blockCommands:{}}),handleDrop:JZ,handleDropOver:ZZ,getTextToolbarReferenceClient:ctt,convertTo(n,t,e,r,i){var o,s;return(s=(o=t.children)==null?void 0:o.flatMap(l=>Be(n.getContainerById(l)).map((c,d)=>rd(n,n.getBlockData(c),e,[{containerId:l,blockIndex:d}]))).join(`
|
|
973
|
-
`))!=null?s:""}}],Nb=[KS,MQ,$J,QJ,oZ,QK,gZ,MZ,SZ,Xz,CS,RX],sL=[Qk,bS,H4];function btt(n,t,e){var i,o,s,l;mi.level=(i=e.logLevel)!=null?i:Js.DEBUG;const r=hd(n,t,{components:{blocks:[...Ub,...((o=e==null?void 0:e.components)==null?void 0:o.blocks)||[]],embeds:[...Nb,...((s=e.components)==null?void 0:s.embeds)||[]],boxes:[...sL,...((l=e.components)==null?void 0:l.boxes)||[]],textRenders:[new tA],options:{...e.componentsOptions}}});return r.readonly=!0,r.addCustom("heading-collapse",()=>new Eb(r)),r.addCustom("editor-tooltip",()=>new Hd(r)),r.addListener("clickLink",(c,d,h)=>{var E;if((E=e==null?void 0:e.events)!=null&&E.onClickLink){e.events.onClickLink(c,d,h);return}const C=h.getAttribute("link");C&&(c.readonly||d.ctrlKey||d.metaKey)&&window.open(C,"_blank")}),r}class lL{constructor(t){this.createOptions=t,t.lang&&_.setLang(t.lang)}createHistoryEditor(t,e){return btt(t,e,this.createOptions)}}function aL(n,{root:t,childDoc:e,doc:r}){var h,C;e.uploadResource=r.uploadResource.bind(r),e.buildResourceUrl=r.buildResourceUrl.bind(r);const i=n.getComponentOptions("comment"),o={image:{defaultAlign:"left"},table:{locatingContainer:t,hideCellMenu:!0,hideToolbar:!0},...i==null?void 0:i.componentsOptions},s=[];n.editorBlocks.forEach(E=>{E.blockType==="text"||E.blockType==="embed"||s.push(E)});const l=[];n.editorEmbeds.forEach(E=>{l.push(E)});const c=[];n.editorBoxes.forEach(E=>{E.boxType==="text"||E.boxType==="br"||E.boxType==="image"||E.boxType==="anchor"||c.push(E)});const d=hd(t,e,{shortcuts:[u0],components:{blocks:s,commandProviders:[new H0],decorators:[new pg],embeds:l,boxes:c,options:o}});if(d.input.addHandler(new Eg),d.input.addHandler(new GA(d)),d.input.addHandler(new ZA(d)),d.input.addHandler(new Kq(d)),d.input.addHandler(new vg),d.addCustom("image-paste-handler",()=>new jA(d)),ve.isMobile||d.addCustom("editor-tooltip",()=>new Hd(d)),n.options.enableContextMenu!==!1&&d.addCustom("editor-context-menu",E=>new nb(E)),(h=n.options.componentsOptions)!=null&&h.mention){const E=n.options.componentsOptions.mention;d.addCustom("mention",()=>new AS(d,{...E}))}if((C=n.options.componentsOptions)!=null&&C.comment){const E=n.options.componentsOptions.comment;E.onCommentEditorClick&&d.addListener("click",E.onCommentEditorClick)}return d}function xtt(n,t){const e=Array.from(n.rootContainer.querySelectorAll(`[comment-${t.toLocaleLowerCase()}="${t}"]`)),r=new Set;e.forEach(i=>{const o=Z(i);o&&r.add(o)}),r.forEach(i=>{Vq(n,i,t)})}class vtt{constructor(t){m(this,"listeners",new Set);m(this,"doc");this.editor=t,this.doc=this.editor.doc.externalDoc,this.doc.registerCallback(this)}getComments(){return this.doc.getComments()}getComment(t){return this.doc.getComment(t)}getCommentDoc(t){return this.doc.getCommentDoc(t)}localCreateComment(t,e){this.doc.localCreateComment(t,e)}localDeleteComment(t){const e=this.getComment(t);this.doc.localDeleteComment(t);const r=e.groupId;this.getComments().filter(o=>o.groupId===r).length===0&&xtt(this.editor,r)}localUpdateComment(t,e){this.doc.localUpdateComment(t,e)}onCreateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onCreateComment(t,e))}onDeleteComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onDeleteComment(t,e))}onUpdateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onUpdateComment(t,e))}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}createCommentEditor(t,e){return aL(this.editor,{root:t,childDoc:e,doc:this.doc})}allowEdit(t){return t.userId===this.doc.getUser().userId}}class Btt{constructor(t,e){m(this,"listeners",new Set);this.editor=t,this.localDoc=e}get doc(){return this.localDoc.toJSON()}getComments(){return Object.values(this.doc.comments)}getComment(t){return this.doc.comments[t]}getCommentDoc(t){const e=this.doc.comments[t];return QC(e)}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}localCreateComment(t,e){}localDeleteComment(t){}localUpdateComment(t,e){}createCommentEditor(t,e){return aL(this.editor,{root:t,childDoc:e,doc:this.localDoc})}allowEdit(t){return t.userId===this.localDoc.getUser().userId}}const ytt={placeholder:{common:{title:"\u8BF7\u8F93\u5165\u6807\u9898",readonlyTitle:"\u8BF7\u8F93\u5165\u6807\u9898",content:"\u70B9\u51FB + \uFF0C\u6216\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6",contentInTable:"\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6"},local:{readonlyTitle:"\u672A\u547D\u540D"}},copyCutProperty:{copy:"\u590D\u5236",cut:"\u526A\u5207",unsafeEnvTips:"\u7531\u4E8E\u5F53\u524D http \u8BBF\u95EE\u73AF\u5883\u4E0B\u7684\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528\u5FEB\u6377\u952E({shortCut}) {operation}",limitedEnvTips:"\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528 {shortCut} \u7C98\u8D34"}},Ttt={placeholder:{common:{title:"Enter a title",readonlyTitle:"Enter a title",content:'Click "+", or enter "/" to insert components quickly',contentInTable:'Enter "/" to insert components quickly'},local:{readonlyTitle:"Untitled"}},copyCutProperty:{copy:"Copy",cut:"Cut",unsafeEnvTips:"Due to the limitations of the current http access environment, please use the shortcut ({shortCut}) {operation}",limitedEnvTips:"Press {shortCut} to paste due to browser restrictions"}},ktt={placeholder:{common:{title:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",readonlyTitle:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",content:"\u300C+\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u304B\u3001\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059",contentInTable:"\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059"},local:{readonlyTitle:"\u7121\u984C"}},copyCutProperty:{copy:"\u8907\u88FD",cut:"\u5207\u308B",unsafeEnvTips:"HTTP\u74B0\u5883\u306E\u5236\u7D04\u306B\u3088\u308A\u3001{operation}\u3059\u308B\u306B\u306F\u3001\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8({shortCut}) \u3092\u3054\u4F7F\u7528\u304F\u3060\u3055\u3044",limitedEnvTips:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306E\u5236\u9650\u306B\u3088\u308A\u3001\u300C{shortCut}\u300D\u3092\u4F7F\u7528\u3057\u3066\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044"}};_.mergeLang({"zh-CN":ytt,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ACEAdD85esIAAAAoAQAAHgAAAAAAAAAAAAAAAABVOQAAY3VzdG9tWG1sL19yZWxzL2l0ZW0xLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAOuAYExTAwAAjw4AABIAAAAAAAAAAAAAAAAAWzsAAHdvcmQvZm9udFRhYmxlLnhtbFBLBQYAAAAADwAPANQDAADePgAAAAA=",wtt=()=>Jp(Rtt),Stt=D("image-to-docx");async function Ltt(n){return new Promise((t,e)=>{const r=new Image;r.onload=()=>{t({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=e,r.src=n})}async function cL(n,t){if(n.width&&n.height)return{width:n.width,height:n.height,buffer:t};try{const e=await Nc(new File([t],"",{})),r=await Ltt(e);return r.width===void 0||r.height===void 0?{width:345,height:230,buffer:t}:n.width||n.height?{width:n.width||r.width*n.height/r.height,height:n.height||r.height*n.width/r.width,buffer:t}:{width:r.width,height:r.height,buffer:t}}catch(e){Stt.error(e);return}}function Itt(n,t){let e=n.filter(s=>s!=null);const r=t-(e.length-1)*20,i=.87,o=e.reduce((s,l)=>s+l.width,0);return o>r&&(e=e.map(s=>({width:s.width*r/o,height:s.height*r/o,buffer:s.buffer}))),e.map(s=>({width:s.width*i,height:s.height*i,buffer:s.buffer}))}function Dtt(n,t,e){if(!e||typeof e!="object")return;const r=e,i=n.filter(s=>s!=null),o=t-(i.length-1)*20;i.forEach((s,l)=>{if(i.length===1&&r.widthPercent){const d=r.widthPercent,h=s.width;s.width=o*(d/100),s.height*=s.width/h;return}const c=`${l}_flex`;if(r[c]){const d=r[c],h=s.width;s.width=o*d,s.height*=s.width/h}})}function uL(n=[0,1,2,3,4,5,6,7],t=1){return n.map(e=>{let r;switch(e%3){case 0:r=Bt.LevelFormat.DECIMAL;break;case 1:r=Bt.LevelFormat.LOWER_LETTER;break;default:r=Bt.LevelFormat.LOWER_ROMAN;break}return{level:e,format:r,text:`%${e+1}. `,alignment:Bt.AlignmentType.START,start:t,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(e+1)),hanging:Bt.convertInchesToTwip(.2)}}}}})}function _tt(){return[0,1,2,3,4,5,6,7].map(n=>{let t;switch(n%3){case 0:t="\u2022";break;case 1:t="\u25E6";break;default:t="\u25AA";break}return{level:n,format:Bt.LevelFormat.BULLET,text:t,alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}})}function Mtt(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:Bt.LevelFormat.BULLET,text:"\u2611",alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}))}function Ott(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:Bt.LevelFormat.BULLET,text:"\u2610",alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}))}var ph=(n=>(n.NUMBERING="number-numbering-reference",n.BULLET="number-bullet-reference",n.CHECKED="checked-bullet-reference",n.UNCHECKED="unchecked-bullet-reference",n))(ph||{});const Utt=[{levels:uL(),reference:"number-numbering-reference"},{levels:_tt(),reference:"number-bullet-reference"},{levels:Mtt(),reference:"checked-bullet-reference"},{levels:Ott(),reference:"unchecked-bullet-reference"}];function Ntt(n){switch(n){case"style-color-0":return"d83931";case"style-color-1":return"de7802";case"style-color-2":return"dc9b04";case"style-color-3":return"2ea121";case"style-color-4":return"245bdb";case"style-color-5":return"6425d0";case"style-color-6":return"8f959e";default:return}}function Ptt(n){switch(n){case"style-bg-color-1":case"style-bg-color-2":case"style-bg-color-8":case"style-bg-color-9":return"yellow";case"style-bg-color-0":case"style-bg-color-5":return"magenta";case"style-bg-color-3":return"green";case"style-bg-color-4":case"style-bg-color-11":return"blue";case"style-bg-color-6":return"lightGray";case"style-bg-color-7":return"red";case"style-bg-color-10":return"darkGreen";case"style-bg-color-12":return"darkMagenta";case"style-bg-color-13":return"darkGray";default:return}}function Ftt(n){switch(n){case"style-bg-color-0":return"fbbab6";case"style-bg-color-1":return"ffdcb0";case"style-bg-color-2":return"fff7a0";case"style-bg-color-3":return"ceefc5";case"style-bg-color-4":return"d1ddfb";case"style-bg-color-5":return"d9cbf8";case"style-bg-color-6":return"eaeaea";case"style-bg-color-7":return"fe837c";case"style-bg-color-8":return"ffbd6a";case"style-bg-color-9":return"ffe662";case"style-bg-color-10":return"a8f393";case"style-bg-color-11":return"98b5ff";case"style-bg-color-12":return"b394f8";case"style-bg-color-13":return"b1b1b1";default:return}}const Ktt=/rgb\((\d+),\s*(\d+),\s*(\d+)\)/;function fL(n){if(typeof n=="string"&&n.length>0){if(n[0]==="#")return n.substring(1);const t=n.match(Ktt);if(t){const e=s=>{let l=Number(s).toString(16);return l.length<2&&(l=`0${l}`),l},r=e(t[1]),i=e(t[2]),o=e(t[3]);return`${r}${i}${o}`}if(n==="red")return"FF0000";if(n==="green")return"00FF00";if(n==="blue")return"0000FF"}}function On(n,t){if(n&&n.attributes&&n.attributes[t])return n.attributes[t];if(n&&n.attributes&&n.attributes.box&&n.attributes.inputType&&t==="style-underline")return!0}function dL(n,t,e){for(let r=0;r<=e;++r){const i=`${t}${r}`;if(On(n,i))return i}}function Gg(n,t,e){n.attributes=n.attributes||{},n.attributes[t]=e}function Pb(n){return n==="image"||n==="drawio"||n==="plantuml"||n==="mermaid"||n==="flowchart"}function hL(n){return n&&n.startsWith("//")?`https:${n}`:n&&!n.startsWith("http://")&&!n.startsWith("https://")?`https://${n}`:n}function Vtt(n){const t=On(n,"inlineStyle");if(t==null)return;const e=t.split(";");for(const r of e){const i=r.split(":");if(i.length!==2)continue;const o=i[0].trim().toLowerCase(),s=i[1].trim().toLowerCase();o==="font-size"&&Gg(n,"inline-style-font-size",s),o==="color"&&Gg(n,"inline-style-color",s),o==="background-color"&&Gg(n,"inline-style-background-color",s),o==="font-family"&&Gg(n,"inline-style-font-family",s)}}function $tt(n,t){if(t==null)return n==null?void 0:n.normal;if(n)return n[`heading${t}`]}function Htt(n){const t=`${On(n,"inline-style-font-size")}`;if(t&&t.indexOf("px")>0)return+t.replace(/px/g,"")}function jtt(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` ${n.attributes.text} `;if(n.attributes&&n.attributes.box&&n.attributes.inputType)return n.attributes.value?`${n.attributes.value}`:" "}function ztt(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` @${n.attributes.text} `}function Wtt(n){return On(n,"inline-style-font-family")}function Gtt(n){const t=On(n,"inline-style-background-color");return fL(t)}function qtt(n){const t=On(n,"inline-style-color");return fL(t)}function Xtt(n){Vtt(n);const t=On(n,"type")==="mention";return{box:n.attributes&&n.attributes.box?n.attributes:void 0,inlineCode:!!On(n,"style-code"),link:hL(On(n,"link")),size:Htt(n),text:t?ztt(n):jtt(n)||n.insert,bold:!!On(n,"style-bold"),underline:!!On(n,"style-underline"),italics:!!On(n,"style-italic"),strike:!!On(n,"style-strikethrough"),superScript:!!On(n,"style-super"),subScript:!!On(n,"style-sub"),math:On(n,"type")==="math"?On(n,"src"):void 0,mention:t,fontFamily:Wtt(n),background:Gtt(n),color:t?"338fe5":Ntt(dL(n,"style-color-",6))||qtt(n),highlight:dL(n,"style-bg-color-",13)}}function Ytt(){return[new Bt.Paragraph({border:{top:{color:"auto",style:Bt.BorderStyle.DASHED,size:4,space:1}},spacing:{before:300}}),new Bt.Paragraph({spacing:{line:0}})]}function Qtt(){return new Bt.Paragraph({children:[new Bt.TextRun({text:"[\u89C6\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function Jtt(){return new Bt.Paragraph({children:[new Bt.TextRun({text:"[\u97F3\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function Ztt(n,t){return new Bt.Paragraph({children:[new Bt.ExternalHyperlink({children:[new Bt.TextRun({style:"Hyperlink",text:t||n})],link:n})]})}function mL(n){if(n.heading!=null)return`Heading${n.heading}`}function gL(n){if(n.alignment!=null){if(n.alignment==="center")return Bt.AlignmentType.CENTER;if(n.alignment==="right")return Bt.AlignmentType.RIGHT;if(n.alignment==="left")return Bt.AlignmentType.LEFT}}function tet(n){if(n.indent)return{left:Bt.convertInchesToTwip(.3*n.indent-.2)};if(n.padding)return{left:Bt.convertInchesToTwip(.3*n.padding)}}function eet(n){return{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:n}}function net(n){const t=n.split(",");if(t.length!==0)return t[0].trim()}function pL(n,t){let e;e=n.inlineCode?"InlineCode":void 0,e=n.link?"Hyperlink":e;const r=n.size||t,i=r!=null?Math.floor(r*1.5+.5):void 0;return new Bt.TextRun({text:n.text,bold:n.bold||void 0,underline:n.underline?{type:Bt.UnderlineType.SINGLE}:void 0,italics:n.italics||void 0,strike:n.strike||void 0,superScript:n.superScript||void 0,subScript:n.subScript||void 0,size:i,style:e,font:n.fontFamily?net(n.fontFamily):void 0,shading:n.background?eet(n.background):void 0,color:n.color,highlight:Ptt(n.highlight)})}function ret(n,t){if(n.link)return new Bt.ExternalHyperlink({children:[pL(n,t)],link:n.link})}async function CL(n,t,e,r,i){const[o]=await i(n,t,e);if(o==null)return;const s=await cL({width:r||0,height:0,src:e},o);return new Bt.ImageRun({data:o,transformation:{width:(s==null?void 0:s.width)||100,height:(s==null?void 0:s.height)||20}})}function iet(n){if(n.heading||n.heading)return n.heading}function oet(n){if(n.align&&(n.align==="center"||n.align==="right"||n.align==="left"))return n.align}function set(n){if(n.textOnly===!0&&n.level!=null)return n.level}async function aet(n,t){var r;const e=[];if(n.text&&Array.isArray(n.text)){for(let i=0;i<n.text.length;i++){const o=n.text[i];if(((r=o.attributes)==null?void 0:r.box)===!0&&t){const s=await t(o);if(s){n.text.splice(i+1,0,...s);continue}}e.push(Xtt(o))}return e}}function cet(n){if(n.type==="list"&&n.textOnly!==!0)return{checkbox:n.checkbox,groupId:n.groupId,ordered:!!n.ordered,level:n.level||1,start:n.start||0}}function uet(n,t){if(n.type==="embed"&&n.embedType&&Pb(n.embedType)&&n.embedData&&n.embedData.src)return n.embedData.src.split("|").map(r=>{const i=t(r),o=n.embedData[`${i}_width`],s=n.embedData[`${i}_height`];return{src:r,width:o,height:s}})}function fet(n){if(n.padding)return n.padding}function det(n){return!!(n.type==="embed"&&n.embedType&&Pb(n.embedType)&&n.embedData&&n.embedData.src)}async function qg(n,t,e){return{quoted:!!n.quoted,heading:iet(n),alignment:oet(n),indent:set(n),padding:fet(n),texts:await aet(n,e),list:cet(n),images:uet(n,t),border:det(n)}}async function het(n,t,e,r){const i=[];if(!n.children)return[];for(const o of n.children){const s=[];for(const l of t.blocks[o])s.push(await qg(l,e,r));i.push(s)}return i}const met=D("to-docx");function get(n,t){return Array(n).fill(0).map(()=>Array(t).fill(0).map(()=>({cellId:void 0,color:void 0,from:void 0,rowSpan:1,colSpan:1,width:0,originalWidth:void 0,align:void 0})))}function pet(n,t,e,r){const i=!!n.hasColTitle,o=!!n.hasRowTitle,s=!!n.isStripeStyle,l="F5F8FB";for(let c=0;c<t;c++)for(let d=0;d<e;d++)(i&&d===0||o&&c===0||s&&c%2===1)&&(r[c][d].color=l)}function Cet(n){p(met,n.children,"no table children");const t=n.rows,e=n.cols,r=n.colsWidth;if(r)for(let s=0;s<r.length;s++)r[s]===0&&(r[s]=100);const i=get(t,e);let o=0;for(let s=0;s<t;++s)for(let l=0;l<e;++l){if(i[s][l].originalWidth=r?r[l]:void 0,i[s][l].from!==void 0)continue;const c=n.children[o];o+=1,i[s][l].cellId=c,i[s][l].color=Ftt(n[`${c}_background`]),i[s][l].width=r?r[l]:100,i[s][l].align=n[`${c}_align`];const d=n[`${c}_rowSpan`]||1,h=n[`${c}_colSpan`]||1;if(i[s][l].rowSpan=d,i[s][l].colSpan=h,d>1||h>1){let C=0;for(let E=0;E<d;E++)for(let A=0;A<h;A++)E===0&&(C+=r?r[l+A]:80),!(E===0&&A===0)&&(i[s+E][l+A].from=[s,l]);i[s][l].width=C}}return pet(n,t,e,i),i}const Eet=D("to-docx");function Aet(n){return Array(n).fill(0).map(()=>({cellId:void 0,originalWidth:0,width:0}))}function bet(n,t){p(Eet,n.children,"no layout children");const e=n.children.length,r=n.colsWidth;if(r)for(let o=0;o<r.length;o++)r[o]===0&&(r[o]=1/r.length);const i=Aet(e);for(let o=0;o<e;++o)i[o].cellId=n.children[o],i[o].originalWidth=r[o]*t,i[o].width=r[o]*t;return i}async function xet(n,t,e,r,i,o,s,l,c,d){async function h(E){if(l&&E.type!=="_exportVirtualBlock"){const A=await l(i,o,E);if(A){await r.addDoc(n,A,d);return}}if(E.type==="text"||E.textOnly===!0){const A=await qg(E,s,c);await r.addTextBlock(A);return}if(E.type==="code"){const A=await het(E,e,s,c);await r.addCodeBlockObject(A);return}if(E.type==="list"&&E.textOnly!==!0){const A=await qg(E,s,c);await r.addListBlockObject(n,A);return}if(E.type==="embed"&&E.embedType){const A=E,v=A.embedData,R=A.embedType;if(Pb(R)){const w=await qg(E,s,c);await r.addImagesBlockObject(E,w,d)}else E.embedType==="hr"?r.addSeparatorBlock():E.embedType==="video"?r.addVideoPlaceholder():E.embedType==="audio"?r.addAudioPlaceholder():E.embedType==="webpage"?r.addHyperlinkParagraph(hL(v.src),v.title):r.addOtherEmbedBlock(R,E.embedData);return}if(E.type==="table"){let A=[];if(E.colsWidth)A=E.colsWidth;else{const R=E.cols;A=new Array(R);for(let w=0;w<A.length;w++)A[w]=100;E.colsWidth=A}const v=Cet(E);await r.addTableMatrix(A,v,e),r.addEmptyParagraph()}if(E.type==="_exportVirtualBlock"&&await r.addVirtualBlock(E.id,e,d),E.type==="layout"){const A=[],v=E.colsWidth;for(let w=0;w<v.length;w++)A[w]=d*v[w];const R=bet(E,d);await r.addLayoutMatrix(A,R,e)}}function C(E){var R;const A=((R=E==null?void 0:E.embedData)==null?void 0:R.exportSpec)||(E==null?void 0:E.exportSpec);if(!A)return[E];const v=[];for(const{type:w,data:U}of A){if(w==="text"){const M={id:rt(),text:[{insert:U}],type:"text"};v.push(M);continue}if(w==="image"){const M={id:rt(),type:"embed",embedType:"image",align:"left",embedData:{src:U}};v.push(M);continue}if(w==="link"){const M={id:rt(),type:"embed",embedType:"webpage",embedData:{src:U.url,title:U.title}};v.push(M);continue}if(w==="block")for(const M of U){if(!e.blocks[M])continue;const et={id:M,type:"_exportVirtualBlock"};v.push(et)}}return v}for(const E of t)for(const A of C(E))!A||await h(A)}function vet(){return{listMaxInst:1,listInstMap:{},listRefMap:{},levelConfigs:[]}}const Bet=D("to-docx");class yet{constructor(t,e,r,i,o,s){m(this,"paragraphs");this.appId=t,this.docId=e,this.state=r,this.readImageFunc=i,this.convertBlocksFunc=o,this.defaultFontSize=s,this.paragraphs=[]}async addTextBlock(t){this.paragraphs.push(new Bt.Paragraph({heading:mL(t),alignment:gL(t),children:await this.paragraphsFromBlockTexts(t),indent:tet(t)}))}async addEmptyImagePlaceHolder(){this.paragraphs.push(new Bt.Paragraph({text:`[${_.t("docx.imageExportFailed")}]`,shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}}))}async paragraphsFromBlockTexts(t){if(t.texts==null)return;const e=$tt(this.defaultFontSize,t.heading),r=[];for(const i of t.texts){if(i.link){const o=ret(i,e);o&&r.push(o);continue}if(i.box&&i.box.type&&i.box.type==="br"){r.push(new Bt.TextRun({text:"",break:1}));continue}if(i.box&&i.box.type&&i.box.type==="image"){const o=await CL(this.appId,this.docId,i.box.src,i.box.width,this.readImageFunc);o&&r.push(o);continue}if(i.math){const o=await CL(this.appId,this.docId,i.math,0,this.readImageFunc);o&&r.push(o);continue}r.push(pL(i,e))}return r}async addCodeBlockObject(t){for(const e of t)for(const r of e){const i={style:Bt.BorderStyle.SINGLE,color:"#DEDEDE"};this.paragraphs.push(new Bt.Paragraph({style:"Code",border:{left:{...i},right:{...i},top:{...i},bottom:{...i}},children:await this.paragraphsFromBlockTexts(r)}))}}async addListBlockObject(t,e){if(e.list==null)return;let r;const i=e.list.checkbox?`${t}-${e.list.groupId}-${e.list.checkbox}`:`${t}-${e.list.groupId}`;if(this.state.listInstMap[i])r=this.state.listInstMap[i];else if(r=this.state.listMaxInst,this.state.listMaxInst+=1,this.state.listInstMap[i]=r,e.list.start>0&&e.list.ordered){const s=`number-numbering-reference-${r}`,l=uL([e.list.level-1],e.list.start);this.state.levelConfigs.push({levels:l,reference:s,inst:r}),this.state.listRefMap[i]=s}else e.list.ordered?this.state.listRefMap[i]=ph.NUMBERING:e.list.checkbox&&e.list.checkbox==="checked"?this.state.listRefMap[i]=ph.CHECKED:e.list.checkbox&&e.list.checkbox==="unchecked"?this.state.listRefMap[i]=ph.UNCHECKED:this.state.listRefMap[i]=ph.BULLET;const o=mL(e);e.texts&&this.paragraphs.push(new Bt.Paragraph({heading:o,children:await this.paragraphsFromBlockTexts(e),numbering:{reference:this.state.listRefMap[i],level:e.list.level-1,instance:r}}))}imageDimWithBufferToImageRun(t){return new Bt.ImageRun({data:t.buffer,transformation:{width:t.width,height:t.height}})}async addImagesBlockObject(t,e,r){if(e.images==null){if(t.type==="embed"&&t.embedType==="image"){const{src:c}=t.embedData;c||this.addEmptyImagePlaceHolder()}return}const i=[],o=await Promise.all(e.images.map(async c=>{const[d,h]=await this.readImageFunc(this.appId,this.docId,c.src);if(d){const C=await cL(c,d);if(C)return C}i.push(h)}));Dtt(o,r,t.embedData);const s=Itt(o,r),l={style:Bt.BorderStyle.SINGLE,color:"#DEDEDE"};s.length&&this.paragraphs.push(new Bt.Paragraph({border:e.border?{left:{...l},right:{...l},top:{...l},bottom:{...l}}:void 0,alignment:gL(e)||Bt.AlignmentType.CENTER,children:s.map(c=>this.imageDimWithBufferToImageRun(c)).flatMap((c,d,h)=>c==null?[]:h.length-1!==d?[c,new Bt.TextRun({text:" "})]:c)})),i.forEach(c=>{this.addHyperlinkParagraph(c)})}addSeparatorBlock(){Ytt().forEach(t=>this.paragraphs.push(t))}addEmptyParagraph(){this.paragraphs.push(new Bt.Paragraph(""))}addVideoPlaceholder(){this.paragraphs.push(Qtt())}addAudioPlaceholder(){this.paragraphs.push(Jtt())}addHyperlinkParagraph(t,e){t!=null&&this.paragraphs.push(Ztt(t,e))}async addTableMatrix(t,e,r){const i=t.map(o=>o!==0?o*15:1500);this.paragraphs.push(new Bt.Table({rows:await this.generateTableRows(e,r),columnWidths:i}))}async generateRowCells(t,e){const r=[];for(const i of t){const o=i.cellId;if(o===void 0)continue;const s=i.width*.9;r.push(new Bt.TableCell({children:await this.convertBlocksFunc(o,e.blocks[o],e,this.appId,this.docId,this.state,s),columnSpan:i.colSpan,rowSpan:i.rowSpan,width:{type:Bt.WidthType.DXA,size:i.width*15},shading:i.color?{fill:i.color,type:Bt.ShadingType.CLEAR,color:"auto"}:void 0}))}return r}async generateTableRows(t,e){const r=[];for(const i of t)r.push(new Bt.TableRow({children:await this.generateRowCells(i,e)}));return r}async addLayoutMatrix(t,e,r){const i=t.reduce((o,s)=>o+s,0);for(const o of e){const s=o.cellId,l=await this.convertBlocksFunc(s,r.blocks[s],r,this.appId,this.docId,this.state,i);this.paragraphs.push(...l,new Bt.Paragraph(""))}}async addDoc(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks.root,e,this.appId,this.docId,this.state,r);i&&(this.paragraphs=this.paragraphs.concat(i))}async addVirtualBlock(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks[t],e,this.appId,this.docId,this.state,r);this.paragraphs.push(...i)}async addOtherEmbedBlock(){}}class Tet{constructor(t,e,r,i,o,s,l,c){m(this,"convertBlocks",async(t,e,r,i,o,s,l=720)=>{const c=new yet(i,o,s,this.readImage,this.convertBlocks,this.defaultFontSize);return await xet(t,e,r,c,i,o,this.md5HexFunc,this.getDocByBlock,this.getTextsByBox,l||720),c.paragraphs});this.templateData=t,this.docData=e,this.md5HexFunc=r,this.readImage=i,this.defaultFontSize=o,this.getDocByBlock=s,this.getTextsByBox=l,this.backgroundImageOptions=c}async convert(t,e){return this.snapshot2docx(this.docData,t,e)}async snapshot2docx(t,e,r){const i=new Bt.ImportDotx,o=this.templateData?await i.extract(this.templateData):void 0,s=t.blocks.root;p(Bet,s,"data must have blocks");const l=vet(),c=await this.convertBlocks("blocks",s,t,e,r,l),d=this.backgroundImageOptions?{default:new Bt.Header({children:[new Bt.Paragraph({children:[new Bt.ImageRun(this.backgroundImageOptions)]})]})}:{},h=new Bt.Document({numbering:{config:[...Utt,...l.levelConfigs]},sections:[{headers:d,children:c,properties:{page:{size:{width:12240,height:15840},margin:{top:1440,bottom:1440,left:1440,right:1440}}}}]},{template:o});return Bt.Packer.toBlob(h)}}async function ket(n,t,e,r){const i=n.doc.buildResourceUrl(r,{withToken:!0});let o=await RS(i);if(!o)return[void 0,i];if(o.type.indexOf("/svg")!==-1){const l=await yS(o);l&&(o=new File([l],o.name))}return[await o.arrayBuffer(),i]}async function Ret(n,t,e){const r=n.editorBlocks.getBlockClass(e.type);if(r.toStandardDoc)return r.toStandardDoc(n,e,t)}async function wet(n,t){const e=t.attributes,r=n.editorBoxes.getBoxClass(e.type);if(r.toStandardText)return r.toStandardText(n,e)}async function Let(n,t){let{template:e,download:r,backgroundImageOptions:i}=t!=null?t:{};e||(e=wtt());const o=n.doc.toJSON(),s=(C,E,A)=>ket(n,C,E,A),l=async(C,E,A)=>Ret(n,o,A),c=async C=>wet(n,C),h=await new Tet(e,o,um.default,s,void 0,l,c,i).convert("_appId","_docId");if(r){const C=URL.createObjectURL(h),E=document.createElement("a");E.setAttribute("download",`${kS(n)}.docx`),E.setAttribute("href",`${C}`),E.click(),E.remove()}return h}const Fb=D("create-editor");async function Iet(n,t){var s,l,c,d,h,C,E,A,v,R,w,U,M,V,et,Y;p(Fb,n,"app does not exists"),t.lang&&_.setLang(t.lang),mi.level=(s=t.logLevel)!=null?s:Js.DEBUG;const e=t.onReauth?async()=>{var xt;const X=t.user.userId,ut=t.docId,bt=await((xt=t.onReauth)==null?void 0:xt.call(t,X,ut,t.permission));return{userId:X,docId:ut,permission:t.permission,appId:t.appId,token:bt,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl}}:void 0,r={auth:{appId:t.appId,docId:t.docId,userId:t.user.userId,permission:t.permission,token:t.token,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl},serverUrl:t.serverUrl,reauthFunc:e,disableLogout:t.disableLogout,onMaxUsersError:t.onMaxUsersError},i=await Rd.load(r),o=hd(n,i,{id:t.id,scrollContainer:t==null?void 0:t.scrollContainer,enableComments:t==null?void 0:t.enableComments,enableContextMenu:t==null?void 0:t.enableContextMenu,components:{blocks:[...Ub,...((l=t==null?void 0:t.components)==null?void 0:l.blocks)||[]],embeds:[...Nb,...((c=t.components)==null?void 0:c.embeds)||[]],boxes:[...sL,...((d=t.components)==null?void 0:d.boxes)||[]],commandProviders:[new H0,...((h=t.components)==null?void 0:h.commandProviders)||[]],decorators:[new pg,new ZC],insertions:[Z1],blockHooks:[new UA,new Cw,...((C=t.components)==null?void 0:C.blockHooks)||[]],textRenders:[new U4,new tA,...((E=t.components)==null?void 0:E.textRenders)||[]],options:{...t.componentsOptions}},shortcuts:[Jq,TH,Dz,CA,a4,OF,dA,_X,u0,wF,...t.shortcuts||[]],colors:["#0064FF","#EB3723","#F59300","#00A865","#F25A0A","#70A310","#009CAD","#0990D9","#8851ED","#D62069"]});if(o.editorCommandProviders.registerCommandProvider(new Co(o)),o.input.addHandler(new vY),o.input.addHandler(new Eg),o.input.addHandler(new nV),o.input.addHandler(new yz),o.input.addHandler(new yA(o,{hideTitle:t.hideTitle,headingLevel:1,titlePlaceholder:_.t("placeholder.common.title"),contentPlaceholder:_.t("placeholder.common.content"),readonlyTitlePlaceholder:_.t("placeholder.common.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0,applyContentPlaceholder:(A=t.placeholder)==null?void 0:A.applyContentPlaceholder})),o.input.addHandler(new ug(o,(v=t.componentsOptions)==null?void 0:v.quickMenu)),o.input.addHandler(new GA(o)),o.input.addHandler(new ZA(o)),o.input.addHandler(new vg),o.input.addHandler(new Kk),o.doc.registerCallback(new BY(o)),o.addCustom("remote-cursor",()=>new ET(o)),o.addCustom("block-menu",X=>new xw(X)),ve.isMobile||o.addCustom("editor-tooltip",()=>new Hd(o)),t!=null&&t.enableComments&&o.addCustom("editor-comments",X=>new O4(X,new vtt(X))),t.enableContextMenu!==!1&&o.addCustom("editor-context-menu",X=>new nb(X)),o.addCustom("create-options",()=>new Vx(o,t)),o.addCustom("drop-target",()=>new ih(o)),o.addCustom("list-to-mindmap",()=>new rg(o)),o.addCustom("list-to-mention",()=>new jY(o)),o.addCustom("mobile-helper",()=>new dQ(o)),o.addCustom("code-caret",()=>new xH(o)),o.addCustom("image-paste-handler",()=>new jA(o)),(R=t.componentsOptions)!=null&&R.mention){const X=t.componentsOptions.mention;o.addCustom("mention",()=>new AS(o,X))}if(o.addCustom("heading-collapse",()=>new Eb(o)),o.addCustom(Hg,X=>new Tb(X)),ku.register(o),ih.register(o),Ml.register(o),Rl.register(o),o.addListener("clickLink",(X,ut,bt)=>{var Rt;if((Rt=t==null?void 0:t.events)!=null&&Rt.onClickLink){t.events.onClickLink(X,ut,bt);return}const xt=bt.getAttribute("link");xt&&(X.readonly||ut.ctrlKey||ut.metaKey)&&window.open(xt,"_blank")}),(U=(w=t.componentsOptions)==null?void 0:w.remoteCarets)!=null&&U.onUserChanged){const X=(V=(M=t.componentsOptions)==null?void 0:M.remoteCarets)==null?void 0:V.onUserChanged;o.doc.getRemoteUsers().on("change",ut=>{X(o,ut)})}return(Y=(et=t.componentsOptions)==null?void 0:et.templates)!=null&&Y.templates.length&&(o.addListener("docChanged",()=>{$g(o)}),o.addListener("resize",()=>{$g(o,{reset:!0})}),setTimeout(()=>{$g(o)},100)),o.doc.registerCallback({onError:async X=>{if(X.code==="ResetDoc"){Fb.error(`reset doc: ${X.message}`);const ut=await Rd.load(r);o.doc.reset(ut)}}}),o.version="1.1.20-beta.11",mi.level===Js.DEBUG&&(window.setReauthFail=X=>{window.isReauthError=X},window.reConnect=X=>o.doc.externalDoc.client.connection.reConnect(X)),o}function Det(n){return n.toJSON!==void 0}async function _et(n,t,e){var o,s,l,c,d,h,C,E;p(Fb,n,"app does not exists");const r=Det(t)?t:new DC(t,{serverUrl:e.serverUrl||""});e.lang&&_.setLang(e.lang),mi.level=(o=e.logLevel)!=null?o:Js.DEBUG;const i=hd(n,r,{id:e.id,scrollContainer:e==null?void 0:e.scrollContainer,components:{blocks:[...Ub,...(l=(s=e.components)==null?void 0:s.blocks)!=null?l:[]],commandProviders:[new H0],decorators:[new pg,new ZC],embeds:[...Nb,...((c=e.components)==null?void 0:c.embeds)||[]],boxes:[Qk,bS,H4,...((d=e.components)==null?void 0:d.boxes)||[]],insertions:[Z1],blockHooks:[new UA,...((h=e.components)==null?void 0:h.blockHooks)||[]],textRenders:[new U4,new tA,...((C=e.components)==null?void 0:C.textRenders)||[]],options:{...e.componentsOptions}},shortcuts:[CA,a4,dA,u0]});return i.editorCommandProviders.registerCommandProvider(new Co(i)),i.input.addHandler(new Eg),i.input.addHandler(new yA(i,{hideTitle:e.hideTitle,headingLevel:1,titlePlaceholder:_.t("placeholder.common.title"),contentPlaceholder:_.t("placeholder.common.content"),readonlyTitlePlaceholder:_.t("placeholder.local.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0})),i.input.addHandler(new ug(i,(E=e.componentsOptions)==null?void 0:E.quickMenu)),i.input.addHandler(new GA(i)),i.input.addHandler(new ZA(i)),i.input.addHandler(new vg),i.input.addHandler(new Kk),i.addCustom("block-menu",A=>new xw(A)),ve.isMobile||i.addCustom("editor-tooltip",()=>new Hd(i)),i.addCustom("image-paste-handler",()=>new jA(i)),e!=null&&e.enableComments&&i.addCustom("editor-comments",A=>new O4(A,new Btt(A,r))),e.enableContextMenu!==!1&&i.addCustom("editor-context-menu",A=>new nb(A)),i.addCustom("heading-collapse",()=>new Eb(i)),i.addListener("clickLink",(A,v,R)=>{var U;if((U=e==null?void 0:e.events)!=null&&U.onClickLink){e.events.onClickLink(A,v,R);return}const w=R.getAttribute("link");w&&(A.readonly||v.ctrlKey||v.metaKey)&&window.open(w,"_blank")}),i.addCustom(Hg,A=>new Tb(A)),ku.register(i),i.version="1.1.20-beta.11",i}async function Met(n,t,e){var h;const r=n.doc.externalDoc.client.auth,i=await B0.load({auth:r,serverUrl:e});if(!((h=i.getVersionHelper)==null?void 0:h.call(i)))throw new Error("the editor does not support to show versions");const s=n.getCustom("create-options");if(!s)throw new Error("the editor does not support to show versions");const l=s.getData(),c=new lL(l),d=n.addCustom("version-dialog",()=>new oS(i,c));return d.show(t),d}x.tippy=kI,x.AnchorBox=N3,x.AuthError=Td,x.AuthHeader=va,x.AutoScroll=Uf,x.BaseURLHeader=ou,x.BasicCommands=yK,x.BlockExclusiveHook=Cw,x.BlockLockerHook=UA,x.BlockLockerPasteHandler=vg,x.BlockResizer=Qd,x.BrBox=_3,x.CodeBlock=KR,x.CodeLineBlock=VR,x.CodeTextDecorator=pg,x.DOC_RE_AUTH_KEYS=Hg,x.DefaultShortcuts=u0,x.DocIdError=pU,x.DocReAuthCallbacks=Tb,x.DragDrop=ov,x.DrawioEmbed=KS,x.EditorBlocks=CB,x.EditorBoxes=O3,x.EditorCommandProviders=D5,x.EditorComplexBlockPosition=xi,x.EditorComplexSelectionRange=Bi,x.EditorDecorators=V3,x.EditorEmbeds=AB,x.EditorInsertions=K3,x.EditorSimpleBlockPosition=hn,x.EditorSimpleSelectionRange=xn,x.EmbedBlock=xB,x.EmbedBlockResizer=oh,x.EnforceWithDocumentTitleHandler=yA,x.EventCallbacks=Mc,x.FILL_CHAR=K8,x.FileExtError=CU,x.GroupOrder=Hk,x.HeadingBlockScrollListener=NY,x.ImageBox=U3,x.InlineBoxCommandProvider=iR,x.InputtingInsertion=P3,x.LocalDoc=DC,x.LogLevel=Js,x.Logger=mi,x.MIN_DISTANCE_THRESHOLD=rv,x.ManualCloseDialog=wd,x.ManualMenu=Cl,x.ManualToolbar=fu,x.MarkdownInputHandler=Eg,x.MaxUserError=jC,x.Mindmap=ng,x.OnesEditorAutoSuggest=bE,x.OnesEditorCustomDataWrapper=Vx,x.OnesEditorExclusiveBlock=Rl,x.OnesEditorHoveringBlock=We,x.OnesEditorIcons=nN,x.OnesEditorQuickMenu=ug,x.OnesEditorToc=mh,x.OnesEditorTocProvider=Ml,x.OnesEditorToolbar=ku,x.OnesEditorTooltip=Hd,x.OnesEditorVersionsDialog=oS,x.PermissionError=v0,x.Popup=uu,x.ReAuthToolbar=wS,x.RemoteCarets=ET,x.RemoteCaretsDecorator=ZC,x.RemoteCaretsInsertion=Z1,x.RemoteUsers=md,x.RequestReloadError=kd,x.RichText=jn,x.ShareDBDoc=Rd,x.ShareDBDocVersionsProvider=lL,x.ShareDBServer=B0,x.SimpleCache=Xx,x.StandardEmbedBlockCommands=zA,x.TEXT_STYLE_BACKGROUND_COLOR_PREFIX=D1,x.TEXT_STYLE_COLOR_PREFIX=I1,x.TableBlock=RR,x.TableBlockCommandProvider=H0,x.TableShortcuts=CA,x.TextBlock=lr,x.TextBox=D3,x.TextColorItem=N2,x.TextStyleShortcuts=dA,x.TocEmbed=CS,x.ZERO_WIDTH_SPACE_CHAR=Lf,x.abbreviation=Rm,x.addAttribute=Um,x.addClass=z,x.addCommentToBlock=_a,x.addDays=O9,x.addMetaToDoc=fd,x.addMonths=M9,x.animateScrollTo=sa,x.applyPlaceholderToBlock=Xd,x.assert=p,x.autoShowHideTemplates=$g,x.bindKeyDownEvent=Am,x.blockToDoc=kC,x.blockToHtml=nC,x.blockToMarkdown=Qm,x.blockToText=rd,x.blocksToDoc=e5,x.clearAllSelection=Xv,x.clientType=ve,x.cloneBlock=cl,x.cloneChildContainer=dC,x.cloneDoc=hC,x.cloneText=y3,x.commentToShareDbComment=JC,x.compareElement=Cm,x.comparePosition=B1,x.complexBlockAdjustSelectionPos=_m,x.complexBlockFindNearestChildBlock=D7,x.complexBlockGetAllChildContainers=In,x.complexBlockGetBottomChildContainers=TB,x.complexBlockGetDeepFirstChild=vB,x.complexBlockGetFirstSimpleChild=T1,x.complexBlockGetLastSimpleChild=$c,x.complexBlockGetSelectedContainers=Vc,x.complexBlockGetTopChildContainers=yB,x.containerToDoc=n5,x.continuousScroll=xv,x.convertBlockFrom=Im,x.convertImageFileToPng=yS,x.convertImageSrcToPng=sQ,x.converterIntercept=Cg,x.copyBlockAttributes=Z3,x.copyResourcesFromDoc=IC,x.createBlockAnchor=qo,x.createBlockCaretAnchor=RB,x.createBlockContentElement=nl,x.createBlockElement=Kv,x.createBlockSimpleDocRange=Wm,x.createBlockSimpleRange=Ae,x.createBoxContentElement=Hv,x.createBoxElement=Vv,x.createBoxOp=B3,x.createChildContainer=gB,x.createComplexBlockPosition=De,x.createComplexDocPos=w3,x.createComplexDocRange=H8,x.createContainer=Zf,x.createContainerElement=a1,x.createDeleteOps=A3,x.createEditor=hd,x.createEditorSelectionRange=mn,x.createElement=B,x.createEmptyContainer=Gr,x.createEmptyDoc=Zo,x.createEmptyTextBlockData=jm,x.createExpandedRange=gm,x.createIconButton=Vo,x.createImage=$p,x.createInsertOps=$m,x.createInsertionContentElement=Wv,x.createInsertionElement=jv,x.createLocalEditor=_et,x.createOnesEditor=Iet,x.createRange=Yx,x.createRichText=Ea,x.createRootContainer=mB,x.createSimpleBlockPosition=mt,x.createSimpleDocPos=R3,x.createTextBlockData=ro,x.createTextButton=La,x.createTextOp=Wr,x.createTextWithReplaceSoftReturn=j1,x.daysAfter=r1,x.deleteText=W1,x.diffDays=U9,x.disablePageScroll=t1,x.docToHtml=q3,x.docToHtmlFragment=id,x.docToMarkdown=X3,x.docToText=al,x.downloadImageToFile=RS,x.downloadObjectToFile=wb,x.downloadSvgToString=IS,x.editLink=Fd,x.editorAddComment=Hq,x.editorAddTextAttribute=uy,x.editorAutoInsertBlock=ty,x.editorBreakTextBlock=Jc,x.editorClearCompositionText=sC,x.editorClearSelectedContents=n0,x.editorCopyBlock=SC,x.editorCopyDoc=c0,x.editorDeleteBlock=cC,x.editorDeleteBlockText=lC,x.editorDeleteBlockWithoutChildren=t0,x.editorDeleteChildContainer=V_,x.editorDeleteChildContainers=ey,x.editorFocusToBlock=fC,x.editorFocusToEnd=sM,x.editorGetBlockData=ll,x.editorGetBlockText=Qn,x.editorGetBlockTextEx=qm,x.editorGetBoxData=L3,x.editorHandleKeyboardEvent=m5,x.editorInsertBlock=Qc,x.editorInsertBoxToBlock=Q3,x.editorInsertDoc=ay,x.editorInsertDocAt=mC,x.editorInsertText=oC,x.editorInsertTextToBlock=Y3,x.editorInsertTextToBlockEx=iC,x.editorMergeTextBlock=ny,x.editorMoveDown=By,x.editorMoveEnd=xC,x.editorMoveHome=_y,x.editorMoveLeft=by,x.editorMoveLineEnd=Vy,x.editorMoveLineHome=Ky,x.editorMovePageDown=Gy,x.editorMovePageUp=Wy,x.editorMoveRight=xy,x.editorMoveUp=vy,x.editorMoveWordEnd=Ly,x.editorMoveWordLeft=Sy,x.editorRangeClearColor=dy,x.editorRangeGetColor=hy,x.editorRangeSetColor=fy,x.editorRemoveTextAttribute=z_,x.editorReplaceBlockText=r0,x.editorReplaceContainer=cy,x.editorRunOnce=g0,x.editorSelectAll=BC,x.editorSelectContainer=s0,x.editorSelectDown=yy,x.editorSelectEnd=vC,x.editorSelectHome=My,x.editorSelectLeft=Ty,x.editorSelectLineEnd=Fy,x.editorSelectLineHome=Py,x.editorSelectPageDown=Yy,x.editorSelectPageUp=Xy,x.editorSelectRight=ky,x.editorSelectUp=Ry,x.editorSelectWordEnd=Dy,x.editorSelectWordLeft=Iy,x.editorSetTextColor=Zc,x.editorShowFindDialog=OG,x.editorToDocx=Let,x.editorUpdateBlockData=i0,x.editorUpdateCompositionText=J3,x.editorUpdateEmbedData=sy,x.enablePageScroll=e1,x.escapeHtmlText=bm,x.escapeRegExp=l1,x.escapeSpace=C9,x.exclusiveBlock=_A,x.executeBlockCommand=sB,x.executeEmbedBlockCommand=oB,x.executeRangeCommand=I5,x.fileToDataUrl=Nc,x.findAfterOffsetNotType=Y1,x.findAllText=yC,x.findBlockByIndex=Dv,x.findEventTargetBlock=Zx,x.findInsertionById=zv,x.findNextOffset=c_,x.findNextVisibleSimpleBlock=U5,x.findPrevOffset=a_,x.findPrevOffsetNotType=X1,x.findPrevSimpleBlockBeforeChildContainer=BB,x.findPrevVisibleSimpleBlock=O5,x.findTarget=Uc,x.findWordEnd=J1,x.findWordLeft=Q1,x.format=Nf,x.formatBytes=vv,x.formatDate=o1,x.fragmentToHtml=pv,x.fromBase64=Df,x.fromBase64ToBlob=Jp,x.fromBase64ToUint8Array=w9,x.fromDocRange=il,x.fromNowString=s1,x.genId=rt,x.getAllChildBlocks=S1,x.getAllQuickMenuItems=fA,x.getAllSelectedBlocks=to,x.getAttributesAt=Wc,x.getBlockBackground=f1,x.getBlockByIndex=tl,x.getBlockCaretRect=rl,x.getBlockClass=le,x.getBlockClassByType=ua,x.getBlockClientRects=jo,x.getBlockCommandsWithHook=C1,x.getBlockContent=$t,x.getBlockHeading=Hf,x.getBlockId=ht,x.getBlockIndex=wt,x.getBlockInfo=nh,x.getBlockKind=Ci,x.getBlockMinWidth=Jv,x.getBlockNearestRangeFromPoint=R1,x.getBlockOptions=eB,x.getBlockPath=zo,x.getBlockProperties=nB,x.getBlockRangeFromPoint=Mm,x.getBlockStyles=q9,x.getBlockTextLength=Ct,x.getBlockTools=Ee,x.getBlockType=Lt,x.getBoxContent=h1,x.getBoxId=$v,x.getBoxTypeFromElement=Vf,x.getChildBlockCount=pi,x.getChildBlocks=Be,x.getChildOffset=ol,x.getClosestContainerByCondition=Qv,x.getColorFromAttributes=M1,x.getColorFromContent=wm,x.getComplexBlockClass=$r,x.getContainerBlockPath=fB,x.getContainerBlocks=qv,x.getContainerBlocksElement=Ff,x.getContainerById=xr,x.getContainerId=ft,x.getContainerMinWidth=x1,x.getContainerToolsElement=z9,x.getContainerWidth=pB,x.getDistanceSquare=Zs,x.getElementFromPoint=Ne,x.getElementOffset=Sf,x.getElementScale=Vr,x.getEmbedType=He,x.getExistsBlockTools=Sm,x.getExistsContainerById=Pf,x.getFileExt=Of,x.getFirstChildBlock=Pe,x.getFirstClientRect=pm,x.getHeadingBlockChildren=Kc,x.getHeadingMenuOptions=lA,x.getHorizontalPadding=jp,x.getInsertionContent=m1,x.getLastChildBlock=tn,x.getLastClientRect=ia,x.getListAllNextBrothers=bu,x.getLogger=D,x.getNextBlock=ae,x.getNextHiddenBlocks=cB,x.getNextValidOffset=pa,x.getNextVisibleBlock=jr,x.getOffsetFromPoint=Hp,x.getOffsetInfoAfter=td,x.getOffsetInfoBefore=Xm,x.getOpAt=ZB,x.getOpLength=Om,x.getParentBlock=Z,x.getParentBlockExcludeSelf=da,x.getParentBox=d1,x.getParentContainer=ct,x.getPrevBlock=$e,x.getPrevValidOffset=sl,x.getPrevVisibleBlock=Hr,x.getRangeCommands=S5,x.getReferenceClientRect=pk,x.getRootBlock=$f,x.getScrollContainer=Ze,x.getSpecialBlockCommands=rB,x.getStandardEmbedBlockProperties=WA,x.getTextAfterOffset=s_,x.getTextAttributes=rC,x.getTextBeforeOffset=l_,x.getTextBlockChild=Wf,x.getTextBlockClass=Mv,x.getTextBlockContentChildTextLength=zr,x.getTextBlockContentChildType=uB,x.getTextBlockContentChildren=Zi,x.getTextLength=Hn,x.getTextOpLength=L1,x.getTextWidth=ym,x.getToolbar=Y0,x.handleBlockElementUpdated=Zv,x.hasAltOnly=B9,x.hasClass=Dt,x.hasCtrlOrCmd=fv,x.hasCtrlOrCmdOnly=v9,x.hashCode=Sv,x.hideBlock=Fv,x.hideTemplates=BS,x.htmlToFragment=Bm,x.i18n=_,x.includeBigTable=DN,x.injectDocToHtmlFragment=ud,x.injectStyle=nv,x.inputActions=kM,x.insertEmptyBlock=Q9,x.insertEmptyEmbedBlock=E1,x.insertText=Jo,x.intersectionCommands=oO,x.isBackspace=hv,x.isBlock=fa,x.isBlockLocked=xg,x.isBlockLockedByOthers=OA,x.isBlockLockedBySelf=rh,x.isBlockTools=Pv,x.isBox=Lm,x.isBoxOp=Xo,x.isCJK=cv,x.isChildContainer=bi,x.isChildNode=Ce,x.isCodeBlock=Oi,x.isCollapsedHeadingBlock=Ji,x.isCollapsedRange=$8,x.isComplexBlockPosition=ma,x.isComplexKindBlock=Pt,x.isContainer=Ai,x.isContainerSelectedAllChildBlocks=Qy,x.isControlEvent=aa,x.isDelete=T9,x.isDraggingFiles=Tm,x.isElementVisible=Gp,x.isEmbedBlock=fe,x.isEmptyContainer=Gf,x.isEmptyDoc=G1,x.isEmptyTextBlock=ye,x.isEmptyTextBlockWithoutCompositionText=qd,x.isEnterOnly=dv,x.isEscape=vm,x.isExclusiveBlock=eh,x.isExpandedHeadingBlock=aB,x.isFirefox=Rf,x.isFirstChildBlockInComplexBlock=I7,x.isHeadingBlock=bn,x.isHighSurrogate=h9,x.isInBlock=g1,x.isInBlockTools=Fc,x.isLetter=av,x.isLowSurrogate=m9,x.isMatchShortcut=Yi,x.isMoveForward=b9,x.isNavigationEvent=A9,x.isNavigationKey=uv,x.isNodeRemoved=wf,x.isNumber=lv,x.isPrintableKey=Yp,x.isRootBlock=vr,x.isRootContainer=re,x.isSafari=ra,x.isSameDay=i1,x.isSelectBoxOnly=Mi,x.isShiftEnter=y9,x.isShiftTab=R9,x.isShortcutEvent=x9,x.isSimpleBlock=G9,x.isSimpleBlockPosition=vi,x.isSimplePos=k3,x.isSimpleRange=zm,x.isSpace=xm,x.isTab=k9,x.isTextBlockContentBoxChild=Br,x.isTextBlockContentChild=jf,x.isTextBlockContentInsertionChild=Go,x.isTextBlockContentTextChild=zf,x.isTextKindBlock=lt,x.isTextKindBlockType=Kf,x.isTitleBlock=Ho,x.isToday=Bv,x.isValidOffset=sr,x.isVisibleBlock=el,x.isYesterday=yv,x.loadJs=Jx,x.loadJsPromise=oa,x.lockers=gi,x.mergeCommands=X0,x.mergeDocs=Aa,x.mergeOps=z1,x.mergeText=P8,x.multiSplitText=e3,x.overflowText=Tv,x.parseShortcut=mv,x.patchNode=_f,x.pointInRect=la,x.rangeAddAttribute=Yf,x.rangeGetTextColor=a3,x.rangeRemoveAttribute=zc,x.rangeSetTextColor=o3,x.rangeTransformText=r3,x.registerDragDrop=qp,x.removeAttribute=_1,x.removeClass=st,x.removeLastBr=M8,x.removePlaceholderFromBlock=HR,x.removeStyle=ev,x.replaceAll=N9,x.replaceAllCaseInsensitive=P9,x.replaceAllText=Zy,x.replaceText=Hm,x.requestDownload=km,x.resetListStart=vu,x.scrollIntoView=nd,x.scrollable=bv,x.selectFile=Pc,x.selectedBlockToDoc=l0,x.selectionToDoc=tu,x.setAttributes=Em,x.setClipboardData=Mf,x.setClipboardDataByEvent=I9,x.setColorToAttributes=s3,x.setDataset=zp,x.setDefaultCursor=If,x.setStyles=Wp,x.shareDBCommentToDocObject=QC,x.shareDBDocCommentToComment=pT,x.shortcutToDisplayText=dn,x.showBlock=u1,x.showDocVersions=Met,x.showTemplates=Bb,x.splitText=or,x.splitToThree=gn,x.stringToDataUrl=Zp,x.stringToObjectUrl=n1,x.subText=n3,x.textNodeOffsetFromPoint=Qx,x.titleFromEditor=kS,x.toBase64URL=Qi,x.toMindmap=eg,x.toPlainText=we,x.toPlainTextKeepLength=q1,x.trimChar=Xp,x.unexclusiveBlock=MA,x.unicodeLength=g9,x.unicodeSubstr=p9,x.updateBlockSelection=Yv,x.updateOpAttributes=T3,x.updateTextBlockContent=o_,x.updateUrl=Qp;for(const n in Ve)n!=="default"&&!x.hasOwnProperty(n)&&Object.defineProperty(x,n,{enumerable:!0,get:()=>Ve[n]});Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
972
|
+
\u30AF\u30EA\u30C3\u30AF\u64CD\u4F5C\u3067\u524A\u9664`,insertColumn:"\u6BB5\u7D44\u307F\u3092\u633F\u5165"}};_.mergeLang({"zh-CN":NZ,"en-US":PZ,"ja-JP":FZ});const nut="",KZ="LayoutBlock",VZ="insert-layout",$Z="/layout",bo="layout",zg=6,Wg=.08,HZ=["text","link","layout","embed","list","table"],jZ=["image","task"],QS="layout-separator",JS="layout-column-container",ju="layoutSeparatorIndex";function ZS(n){return n instanceof HTMLElement&&n.getAttribute("data-type")==="editor-block"}D("layout-operations");async function zZ(n,t){var d;const r=(d=t.item.colCount)!=null?d:2,i=Array.from({length:r},()=>Gr(n.doc)),o=Array.from({length:r},()=>1/r),s={id:rt(),type:bo,children:i,colsWidth:o},l=i[0],c=n.doc.getContainerBlocks(l)[0].id;return n.insertBlock(t.containerId,t.blockIndex,s,Ae(n,c,0))}function WZ(n,t,e){if(typeof t=="number"){const r=t,i=Array.from({length:r},()=>Gr(n.doc)),o=Array.from({length:r},()=>1/r),s={id:rt(),type:bo,children:i,colsWidth:o},l=i[0],c=n.doc.getContainerBlocks(l)[0].id;return n.insertBlock(e.containerId,e.blockIndex,s,Ae(n,c,0))}if(Array.isArray(t)){const r=t,i=Array.from({length:r.length},()=>1/r.length),o=t.map(c=>Zf(n.doc,[ZS(c)?{...n.getBlockData(c),id:rt()}:c])),s={id:rt(),type:bo,children:o,colsWidth:i},l=n.doc.getContainerBlocks(o[0])[0].id;return n.insertBlock(e.containerId,e.blockIndex,s,Ae(n,l,0))}throw new Error("invalid col")}function GZ(n,t,e,r){const i=n.getBlockData(t),o=i.children.findIndex(l=>l===e);if(o===r)return;const s=o>r?0:-1;n.undoManager.runInGroup(()=>{i.children.splice(o,1),i.children.splice(r+s,0,e);const l=i.colsWidth[o];i.colsWidth.splice(o,1),i.colsWidth.splice(r+s,0,l),n.updateBlockData(t,i)})}function qZ(n,t,e,r){n.undoManager.runInGroup(()=>{const i=n.getBlockData(e),s=n.getBlockData(t).children.map(c=>{const d=n.getChildContainerData(c);return Zf(n.doc,d)});i.children.splice(r!=null?r:i.children.length,0,...s);const l=i.children.length;i.colsWidth=Array.from({length:l},()=>1/l),n.updateBlockData(e,i),n.deleteBlock(t)})}function tL(n,t,e){n.undoManager.runInGroup(()=>{const r=n.getBlockData(t),{sourceBlock:i,position:o=r.children.length}=e!=null?e:{};let s;if(i){const E=n.getBlockData(i);s=Zf(n.doc,[E]),n.deleteBlock(i)}else s=Gr(n.doc);r.children.splice(o,0,s);const l=n.doc.getContainerBlocks(s)[0],c=Ae(n,l.id,0),d=1/r.children.length,h=1-d,C=r.colsWidth.map(E=>E<=Wg?E:E*h);C.push(d),r.colsWidth=C,n.updateBlockData(t,r,c)})}function XZ(n,t,e){n.undoManager.runInGroup(()=>{const r=n.getBlockData(e);if(r.colsWidth.length===2)return;const i=r.children.findIndex(c=>c===t);if(i===-1)return;r.children.splice(i,1);const o=1-r.colsWidth[i];r.colsWidth.splice(i,1),r.colsWidth=r.colsWidth.map(c=>c/o);let s;if(ft(n.getParentContainer(n.selection.focusedBlock))===t){const c=n.doc.getContainerBlocks(r.children[r.children.length-1])[0];s=Ae(n,c.id,0)}n.updateBlockData(e,r,s),n.deleteChildContainers([t])})}const YZ=new Set(HZ),QZ=new Set(jZ),zu=2,JZ=(n,t,e,r,{isSourceBlock:i})=>{var c;if(typeof r=="string"||r.type!=="custom"||!((c=r.data)!=null&&c.isValidColumnDragging))return!1;const o=r.data;if(i||Array.isArray(e))return!1;const s=n.getBlockById(e.blockId);return Lt(s)===bo?qZ(n,s,t,o.position):s&&tL(n,t,{sourceBlock:s,position:o.position}),!0};function Mb(n){const t=Ze(n,{horizontal:!0}),e=n.getBoundingClientRect(),r=t.getBoundingClientRect(),i=Math.max(r.x-e.x,0),o=Math.max(e.right-r.right,0);return new DOMRect(e.x+i,e.y,Math.max(e.width-i-o,0),zu)}const ZZ=(n,t,e,r,i)=>{var v;if(console.log("123"),typeof e!="object"||Jk.isNull(e)||!("blockId"in e))return;const o=n.getBlockById(e.blockId),s=Lt(o);if((fe(o)?!QZ.has(He(o)):!YZ.has(s))||t.id===(o==null?void 0:o.id))return!1;const l=n.getBlockData(t),c=n.getBlockData(o);if(s===bo&&(!c||c.children.length+l.children.length>zg))return!1;const d=t.getBoundingClientRect();let h,C;const A=document.elementFromPoint(r,i).closest(`.${QS}`);if(A){const R=A.getBoundingClientRect(),w=Mb(A);h=new DOMRect((w.right-w.left)/2+R.x-zu/2,R.y,zu,R.height),C=Number.parseInt((v=A.dataset[ju])!=null?v:"0",10)}if(r<=d.x){const R=t.getBoundingClientRect(),w=Mb(t);h=new DOMRect(w.x,R.y,zu,R.height),C=0}if(d.width+d.x<=r){const R=t.getBoundingClientRect(),w=Mb(t);h=new DOMRect(w.right-zu,R.y,zu,R.height),C=l.children.length}if(h&&typeof C<"u")return{type:"custom",rect:h,data:{isValidColumnDragging:!0,position:C},targetBlock:t};if(s==="layout")return!1},Ob=D("table-creator");class ttt{constructor(){m(this,"id","insert-layout");m(this,"name","Create layout");m(this,"colCount");m(this,"classPrefix",{container:"layout-creator",title:"layout-creator-title",column:"layout-creator-column-"});m(this,"element");m(this,"closeable",null);m(this,"columnsArray",Array.from({length:zg},(t,e)=>e+1));m(this,"setCloseable",t=>{this.closeable=t});m(this,"destroy",()=>{this.closeable=null});m(this,"handleCreatorClick",t=>{var r,i;t.preventDefault(),t.stopPropagation();const e=t.target;p(Ob,e instanceof HTMLElement,"invalid event target"),!(!this.colCount||this.colCount<2)&&((r=this.closeable)==null||r.click(this,this.element),(i=this.closeable)==null||i.close("clickItem"),this.handleCreatorLeave())});m(this,"handleCreatorLeave",()=>{this.columnsArray.forEach(()=>{this.highlightLayoutCreatorColumn(-1),this.showCreateLayoutCount(-1)})});m(this,"handleLayoutCreatorColumnEnter",t=>{const e=t.target;p(Ob,e instanceof HTMLElement,"invalid event target");const r=e.id;p(Ob,r.startsWith(this.classPrefix.column),"invalid cell id");const i=r.substring(this.classPrefix.column.length),o=Number.parseInt(i,10);this.colCount=o+1,this.highlightLayoutCreatorColumn(o),this.showCreateLayoutCount(o)});m(this,"highlightLayoutCreatorColumn",t=>{this.columnsArray.forEach((e,r)=>{const i=document.getElementById(`${this.classPrefix.column}${r}`);this.setColumnClassByIndex(i,r,t)})});m(this,"setColumnClassByIndex",(t,e,r)=>{if(!!t){if(r===0&&e===0){z(t,"disabled");return}if(e<=r){z(t,"active"),st(t,"disabled");return}st(t,"active"),st(t,"disabled")}});m(this,"showCreateLayoutCount",t=>{const e=document.getElementById(`${this.classPrefix.title}-count`);if(!!e){if(t<=0){z(e,"hidden");return}st(e,"hidden"),e.innerText=`${t+1} \u680F`}});this.element=this.createLayoutCreatorElement()}createLayoutCreatorElement(){const e=B("div",["layout-creator"],null),r=B("div",[`${this.classPrefix.title}-wrapper`],e),i=B("span",[this.classPrefix.title],r);i.innerText="\u9009\u62E9\u5206\u680F";const o=B("span",[`${this.classPrefix.title}-count`],r);o.id=`${this.classPrefix.title}-count`,e.addEventListener("click",this.handleCreatorClick),e.addEventListener("mouseleave",this.handleCreatorLeave);const s=(c,d)=>{const h=B("div",["layout-column"],c);return h.id=`${this.classPrefix.column}${d}`,h},l=B("div",["layout-preview"],e);for(let c=0;c<zg;c++)s(l,c).addEventListener("mouseenter",this.handleLayoutCreatorColumnEnter);return e}}function ett(){return new ttt}const ntt=new Set(["text"]),rtt=new Set(["image"]);function itt(n){if(!n||!vr(n))return!1;const t=$f(n);return!(Lt(t)!=="text"||bn(n))}function ott(n){return{name:KZ,insertBlockCommandItems:[{id:VZ,name:_.t("layout.title"),icon:e2,order:250,group:"common",children:[ett()],subText:$Z,shouldShown:itt}],handleInsertEmptyBlock:zZ,isMenuButtonBaseContainer:t=>Dt(t,JS),combineToCreate:{combinable(t,e){if(ft(n.getParentContainer(e))==="root"&&[t,e].every(r=>fe(r)?rtt.has(He(r)):ntt.has(Lt(r))))return console.log("sideway"),"sideway"},onCombine(t,e,r,i,o){t.undoManager.runInGroup(()=>{var l,c;let s=e;if(fe(s)&&He(s)==="image"&&o){const d=o.data;$A(t,s,d.index);const h=Mn([d.image],100),C={id:rt(),type:"embed",embedType:"image",embedData:h},E=(c=(l=t.options.componentsOptions)==null?void 0:l.image)==null?void 0:c.defaultAlign;E&&(C.align=E),s=C}WZ(t,i==="left"?[s,r]:[r,s],zo(r)[0]),t.deleteBlock(r),ZS(s)&&t.deleteBlock(s)})}}}}const eL=D("layout-block"),stt=(n,t,e,r)=>{var l;const i=(l=n.getBlockData(t).children)!=null?l:[],o=e.isSimple()?i[0]:e.childContainerId,s=r.isSimple()?i[i.length-1]:r.childContainerId;Fa(t,o,s).forEach(c=>z(c,"selected"))},ltt=n=>{n.rootContainer.querySelectorAll(`[data-type="editor-block"][data-block-type="${bo}"]`).forEach(t=>{Fa(t).forEach(r=>st(r,"selected"))})},att=(n,t,e,r)=>(p(eL,e.blockId===r.blockId,"Start and end block must be the same"),p(eL,e.blockId===t.id,"Start block must be the same as complex block"),Fa(t,e.childContainerId,r.childContainerId)),ctt=(n,t)=>{var A;const e=n.selection.range;if(e.isSimple())return;const{start:r,end:i}=e;if(r.isSimple()||i.isSimple())return;const o=Fa(t,r.childContainerId,i.childContainerId);if(!o.length)return;const s=o.shift(),l=(A=o.pop())!=null?A:s,c=s.getBoundingClientRect(),d=l.getBoundingClientRect(),h=d.right-c.left,C=d.top,E=document.querySelector("[data-command-bar-id='layout-column-toolbar']")?46:-10;return new DOMRect(c.left,C+E,h,c.height)};D("columns");function nL(n){n.setAttribute("data-type","block-tools"),n.setAttribute("drop-area","custom")}function rL(n,t,e){const r=xr(n,t).closest(`div[data-block-type=${bo}]`),i=B("div",[QS],null,{[ju]:e.toString()}),o=B("div",["creation-dot-button"],i);return o.innerHTML=kT,o.addEventListener("click",l=>{tL(n,r,{position:e})}),Pp.default(o,{content:_.t("layout.insertColumn"),delay:[500,0]}).popper.setAttribute("tooltip-id","add-layout-column"),B("div",["layout-drag-line"],i),nL(i),i}function iL(n){const t='.child[data-type="editor-container"]';return n.closest(t)}function oL(n){if(!n)return;const t="hovering-toolbar";if(Dt(n,t)){st(n,t);return}z(n,t)}function utt(n){!n||(n.addEventListener("mouseenter",t=>{if(!t.currentTarget)return;const e=iL(t.currentTarget);oL(e)}),n.addEventListener("mouseleave",t=>{if(!t.currentTarget)return;const e=iL(t.currentTarget);oL(e)}))}function ftt(n,t,e,r=!0){const i=B("div",["layout-column-action-bar"],null),o=B("div",["drag-handler"],i);o.innerHTML=T0,utt(o);const s=Pp.default(o,{content:_.t("layout.columnDrag"),delay:[500,0]});if(s.popper.setAttribute("tooltip-id","drag-handler"),r){const l=new fu([{id:"delete-column",name:"",icon:hE}],void 0,{id:"layout-column-toolbar",refuseOverflow:!0,tooltipId:n.clientId});l.addListener("selectionChange",(c,d)=>{const h=xr(n,t);d==="delete-column"?z(h,"danger"):st(h,"danger")}),l.addListener("click",(c,d)=>{const C=n.getContainerById(t).closest(`div[data-block-type=${bo}]`);XZ(n,t,C),l.close("clickItem")}),o.addEventListener("click",c=>{const d=n.getContainerById(t);l.manualShow(c.currentTarget,{placement:"top",offset:[0,5]}),z(i,"clicked"),z(d,"active"),s==null||s.disable();const h=C=>{C.target!==o&&C.target.parentNode!==o&&(i.classList.remove("clicked"),st(i,"clicked"),st(d,"active"),s==null||s.enable(),document.removeEventListener("click",h))};document.addEventListener("click",h)})}return nL(i),i}function dtt(n){return Lt(n)===bo}function htt(n,t){return new DragEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:n.screenX,screenY:n.screenY,dataTransfer:new DataTransfer,clientX:n.clientX,clientY:n.clientY})}const mtt=1e3;async function gtt(n,t){const{width:e}=n.rootContainer.getBoundingClientRect(),r=t.getBoundingClientRect();return r.width>e||r.height>=mtt?"":(await Kp.default.toSvg(t)).replace(/margin-block:.*?;/,"").replace(/margin:.*?;/,"")}class ptt{constructor(t){m(this,"activeLayoutBlock");m(this,"columnContainer");m(this,"draggingContainer");m(this,"autoScroll");m(this,"startPosition");m(this,"handleMouseDown",t=>{console.log("mouse down");const e=t.target;if(!e||!(e instanceof HTMLElement)&&!(e instanceof SVGElement)||!e.closest(".drag-handler"))return;const i=Z(e);if(!i||!dtt(i)||!this.editor.isBlockWritable(i)||this.editor.readonly)return;const o=e.closest('[data-type="editor-container"]');if(this.columnContainer=o,!this.columnContainer)return;const{x:s,y:l}=t;this.startPosition={x:s,y:l},console.log("### yoyoyyo"),document.addEventListener("mouseup",this.handleDragEnd),this.editor.contentElement.addEventListener("mousemove",this.handleDrag),t.preventDefault()});m(this,"handleDragStart",async t=>{if(!t.target||!this.columnContainer)return;const e=Z(this.columnContainer);if(!e)return;this.activeLayoutBlock=e;const{x:r,y:i}=t,{width:o}=t.target.getBoundingClientRect(),s=Ee(e),l=B("div",["drag-container"],s);this.draggingContainer=l;const c=this.previewShouldScale(o,this.activeLayoutBlock)?4:2;l.style.left=`${r-o/c}px`,l.style.top=`${i}px`,await this.initContainerPreview(l,this.columnContainer);const d=Ze(e);this.autoScroll=new Uf({scrollElement:d,trackMouseEvent:"mousemove",edge:{top:50,bottom:50}}),this.autoScroll.active()});m(this,"handleDrag",t=>{var o,s,l;console.log("drag");const{x:e,y:r}=t;if(((o=this.startPosition)==null?void 0:o.x)===e&&this.startPosition.y===r)return;if(window.isDragging||(window.isDragging=!0,this.handleDragStart(t)),this.startPosition&&this.draggingContainer){const{x:c,y:d}=t;if(c===0&&d===0){this.draggingContainer.style.transform="",this.draggingContainer.style.opacity="0";return}const{x:h,y:C}=this.startPosition,E=c-h,A=d-C;this.draggingContainer.style.transform=`translate(${E}px, ${A}px)`,this.draggingContainer.style.opacity="0.5"}const i=this.getClosetSeparator(t);if((s=this.separators)==null||s.forEach(c=>{c.dataset[ju]!==(i==null?void 0:i.dataset[ju])&&st(c,"active")}),i&&i.ATTRIBUTE_NODE&&typeof this.draggingContainerIndex<"u"){const d=Number.parseInt((l=i.dataset[ju])!=null?l:"0",10)-this.draggingContainerIndex;d!==1&&d!==0&&z(i,"active")}});m(this,"handleDragEnd",t=>{var e,r,i;if(t&&this.activeLayoutBlock&&this.columnContainer){const o=this.getClosetSeparator(t);if(o){const s=(e=o.dataset[ju])!=null?e:"0";GZ(this.editor,this.activeLayoutBlock,ft(this.columnContainer),Number.parseInt(s,10))}}if(window.isDragging=!1,this.draggingContainer&&this.draggingContainer.remove(),this.draggingContainer=void 0,this.startPosition=void 0,this.columnContainer=void 0,this.activeLayoutBlock=void 0,(r=this.autoScroll)==null||r.inactive(),(i=this.separators)==null||i.forEach(o=>{st(o,"active")}),document.removeEventListener("mouseup",this.handleDragEnd),this.editor.contentElement.removeEventListener("mousemove",this.handleDrag),t){const o=htt(t,"drop");this.editor.contentElement.dispatchEvent(o)}});this.editor=t,this.editor.rootContainer.addEventListener("mousedown",this.handleMouseDown)}get separators(){return this.activeLayoutBlock&&UZ(this.activeLayoutBlock)}get draggingContainerIndex(){if(!this.activeLayoutBlock||!this.columnContainer)return;const t=this.editor.getBlockData(this.activeLayoutBlock).children,e=ft(this.columnContainer);return t==null?void 0:t.findIndex(r=>r===e)}destroy(){this.editor.rootContainer.removeEventListener("mousedown",this.handleMouseDown)}previewShouldScale(t,e){let r=!1;if(e&&t){const{width:i}=e.getBoundingClientRect();r=t/i>.5}return r}async initContainerPreview(t,e){if(!t||!e)return;const{width:r,height:i}=e.getBoundingClientRect(),o=this.previewShouldScale(r,this.activeLayoutBlock);let s=null;return i>400?(s=B("div",["dragging-preview-gray"],t),s.style.height=`${i}px`):(s=B("img",["dragging-preview"],t),s.src=await gtt(this.editor,e)),o&&(s.style.width=`${r/2}px`,s.style.height=`${i/2}px`),null}getClosetSeparator(t){if(!(!this.separators||!this.activeLayoutBlock))return Jk.minBy(this.separators,e=>Math.abs(e.getBoundingClientRect().x-t.clientX))}}class Ctt{constructor(t){m(this,"draggingRef",null);m(this,"startX",0);m(this,"dragRecord",{totalWidth:0,containerItem:null,dragItem:null,leftColumn:{item:null,width:0,percent:0},rightColumn:{item:null,width:0,percent:0}});m(this,"handleMouseDown",t=>{const e=this.checkDraggingAvailable(this.editor,t);!e||this.initDraggingHandler(e,t)});m(this,"initDraggingHandler",(t,e)=>{if(this.draggingRef)return;this.draggingRef=t;const r=t.closest(".layout-block");!r||this.handleDragStart(r,t,e)});m(this,"handleDragStart",(t,e,r)=>{this.startX=r.clientX;const i=t.querySelectorAll(".layout-root > .child");this.dragRecord.totalWidth=Array.from(i).reduce((l,c)=>l+c.clientWidth,0);const o=e.previousElementSibling,s=e.nextElementSibling;!o||!s||(this.saveColumnIntoRecord(o,"leftColumn"),this.saveColumnIntoRecord(s,"rightColumn"),this.dragRecord.containerItem=t,this.dragRecord.dragItem=e,this.showDragging(),document.addEventListener("mousemove",this.handleDragging))});m(this,"handleDragging",t=>{const r=t.clientX-this.startX,i=this.computeLeftColumnPercent(r),o=i<Wg?Wg:i,s=o-this.dragRecord.leftColumn.percent,l=this.dragRecord.rightColumn.percent-s;l<Wg||(this.updateLayoutColumnWidth(o,l),this.editor.selection.caret.update())});m(this,"computeLeftColumnPercent",t=>{const e=this.dragRecord.leftColumn.width+t,r=e/this.dragRecord.totalWidth,i=this.getAdsorbPercent(r),[o,s]=this.getAdsorbRange(i);return o<e&&e<s?i:r});m(this,"getAdsorbPercent",t=>{const e=t*10;return Math.round(e)/10});m(this,"getAdsorbRange",t=>{const e=this.dragRecord.totalWidth,r=e*t,i=e*.005;return[r-i,r+i]});m(this,"updateLayoutColumnWidth",(t,e)=>{const r=this.dragRecord.leftColumn.item,i=this.dragRecord.rightColumn.item;this.updateColumnPercent(r,t),this.updateColumnPercent(i,e)});m(this,"updateColumnPercent",(t,e)=>{if(!t)return;const r=t;r.style.flexBasis=`${e*100}%`;const i=r.querySelector(".percent-bar");i&&(i.innerHTML=`${(e*100).toFixed()}%`)});m(this,"handleMouseUp",()=>{this.draggingRef=null,document.removeEventListener("mousemove",this.handleDragging),this.updateBlockData(),this.hideDragging()});m(this,"showDragging",()=>{this.toggleDragging(!0)});m(this,"hideDragging",()=>{this.toggleDragging(!1)});m(this,"toggleDragging",(t=!0)=>{[this.dragRecord.containerItem,this.dragRecord.dragItem,this.dragRecord.leftColumn.item,this.dragRecord.rightColumn.item].forEach(r=>{r&&(t?z(r,"dragging"):st(r,"dragging"))})});m(this,"getColumnPercentNumber",t=>{if(!t)return 0;const e=t.style.flexBasis;return Number.parseInt(e,10)/100});m(this,"updateBlockData",()=>{if(!this.dragRecord.dragItem||!this.dragRecord.containerItem)return;const t=this.dragRecord.dragItem.getAttribute("data-layout-separator-index"),e=this.editor.getBlockData(this.dragRecord.containerItem);if(!t)return;const r=parseInt(t,10)-1,{colsWidth:i}=e;i[r]=this.getColumnPercentNumber(this.dragRecord.leftColumn.item),i[r+1]=this.getColumnPercentNumber(this.dragRecord.rightColumn.item),e.colsWidth=i,this.editor.updateBlockData(this.dragRecord.containerItem,e)});this.editor=t,document.addEventListener("mousedown",this.handleMouseDown),document.addEventListener("mouseup",this.handleMouseUp)}destroy(){document.removeEventListener("mousedown",this.handleMouseDown),document.removeEventListener("mouseup",this.handleMouseUp)}checkDraggingAvailable(t,e){if(t.readonly||t.selectionHandler.isSelecting())return null;const r=e.target;if(!(r instanceof Element))return null;const i=r.closest(".layout-separator");return i||null}saveColumnIntoRecord(t,e){this.dragRecord[e]={item:t,width:t.clientWidth,percent:t.clientWidth/this.dragRecord.totalWidth}}}function Ett(n){n.addCustom("layout-column-width-dragger",t=>new Ctt(t))}function Att(n,t,e,r){const i="percent-bar";let o=t.querySelector(`.${i}`);o||(o=B("div",["percent-bar"],t)),o.innerHTML=`${(e.colsWidth[r]*100).toFixed()}%`}D("layout-block");const Ub=[RR,KR,VR,EK,{blockType:bo,blockKind:"complex",createBlockContent:(n,t,e,r,i)=>{const o=i,s=nl(r,"div"),l=o.children.length>=zg;z(s,"layout-root"),l&&z(s,"creation-disabled");const c=o.children.length>2;return o.children.forEach((d,h)=>{const C=n.createChildContainer(t,s,d);setTimeout(()=>{var A,v;C.style.flexBasis=`${o.colsWidth[h]*100}%`,z(C,JS),(A=C.parentNode)==null||A.insertBefore(rL(n,d,h),C),h===o.children.length-1&&((v=C.parentNode)==null||v.appendChild(rL(n,d,h+1)))}),C.querySelectorAll(".layout-column-action-bar").forEach(A=>{A.remove()});const E=ftt(n,d,r,c);C.appendChild(E),Att(n,C,o,h)}),Ett(n),g0(n,"layout-block",()=>{n.addCustom("layout-drag-handler",()=>new ptt(n))}),s},getBlockTextLength:n=>1,getRangeFromPoint:(n,t,e,r)=>{const i=document.elementsFromPoint(e,r)[0];if(!i||!t.contains(i)||!n.contains(t)||!Ai(i))return null;const o=i;if(!Ai(i)||Fa(t).indexOf(o)===-1)return null;const s=De(t,ft(o));return new Bi(n,{anchor:s,focus:s})},moveCaret:(n,t,e,r)=>null,getCaretRect:(n,t)=>n.getBoundingClientRect(),updateSelection:stt,clearSelection:ltt,getChildContainers:(n,t)=>Fa(t),getNextContainer:(n,t,e,r,i)=>{const o=Fa(t),s=o.indexOf(e);return s===-1?null:r==="ArrowLeft"?s===0?null:o[s-1]:r==="ArrowRight"?s===o.length-1?null:o[s+1]:null},getSelectedContainers:att,getOptions:n=>ott(n),getBlockProperties:(n,t)=>({blockCommands:{}}),handleDrop:JZ,handleDropOver:ZZ,getTextToolbarReferenceClient:ctt,convertTo(n,t,e,r,i){var o,s;return(s=(o=t.children)==null?void 0:o.flatMap(l=>Be(n.getContainerById(l)).map((c,d)=>rd(n,n.getBlockData(c),e,[{containerId:l,blockIndex:d}]))).join(`
|
|
973
|
+
`))!=null?s:""}}],Nb=[KS,MQ,$J,QJ,oZ,QK,gZ,MZ,SZ,Xz,CS,RX],sL=[Qk,bS,H4];function btt(n,t,e){var i,o,s,l;mi.level=(i=e.logLevel)!=null?i:Js.DEBUG;const r=hd(n,t,{components:{blocks:[...Ub,...((o=e==null?void 0:e.components)==null?void 0:o.blocks)||[]],embeds:[...Nb,...((s=e.components)==null?void 0:s.embeds)||[]],boxes:[...sL,...((l=e.components)==null?void 0:l.boxes)||[]],textRenders:[new tA],options:{...e.componentsOptions}}});return r.readonly=!0,r.addCustom("heading-collapse",()=>new Eb(r)),r.addCustom("editor-tooltip",()=>new Hd(r)),r.addListener("clickLink",(c,d,h)=>{var E;if((E=e==null?void 0:e.events)!=null&&E.onClickLink){e.events.onClickLink(c,d,h);return}const C=h.getAttribute("link");C&&(c.readonly||d.ctrlKey||d.metaKey)&&window.open(C,"_blank")}),r}class lL{constructor(t){this.createOptions=t,t.lang&&_.setLang(t.lang)}createHistoryEditor(t,e){return btt(t,e,this.createOptions)}}function aL(n,{root:t,childDoc:e,doc:r}){var h,C;e.uploadResource=r.uploadResource.bind(r),e.buildResourceUrl=r.buildResourceUrl.bind(r);const i=n.getComponentOptions("comment"),o={image:{defaultAlign:"left"},table:{locatingContainer:t,hideCellMenu:!0,hideToolbar:!0},...i==null?void 0:i.componentsOptions},s=[];n.editorBlocks.forEach(E=>{E.blockType==="text"||E.blockType==="embed"||s.push(E)});const l=[];n.editorEmbeds.forEach(E=>{l.push(E)});const c=[];n.editorBoxes.forEach(E=>{E.boxType==="text"||E.boxType==="br"||E.boxType==="image"||E.boxType==="anchor"||c.push(E)});const d=hd(t,e,{shortcuts:[u0],components:{blocks:s,commandProviders:[new H0],decorators:[new pg],embeds:l,boxes:c,options:o}});if(d.input.addHandler(new Eg),d.input.addHandler(new GA(d)),d.input.addHandler(new ZA(d)),d.input.addHandler(new Kq(d)),d.input.addHandler(new vg),d.addCustom("image-paste-handler",()=>new jA(d)),ve.isMobile||d.addCustom("editor-tooltip",()=>new Hd(d)),n.options.enableContextMenu!==!1&&d.addCustom("editor-context-menu",E=>new nb(E)),(h=n.options.componentsOptions)!=null&&h.mention){const E=n.options.componentsOptions.mention;d.addCustom("mention",()=>new AS(d,{...E}))}if((C=n.options.componentsOptions)!=null&&C.comment){const E=n.options.componentsOptions.comment;E.onCommentEditorClick&&d.addListener("click",E.onCommentEditorClick)}return d}function xtt(n,t){const e=Array.from(n.rootContainer.querySelectorAll(`[comment-${t.toLocaleLowerCase()}="${t}"]`)),r=new Set;e.forEach(i=>{const o=Z(i);o&&r.add(o)}),r.forEach(i=>{Vq(n,i,t)})}class vtt{constructor(t){m(this,"listeners",new Set);m(this,"doc");this.editor=t,this.doc=this.editor.doc.externalDoc,this.doc.registerCallback(this)}getComments(){return this.doc.getComments()}getComment(t){return this.doc.getComment(t)}getCommentDoc(t){return this.doc.getCommentDoc(t)}localCreateComment(t,e){this.doc.localCreateComment(t,e)}localDeleteComment(t){const e=this.getComment(t);this.doc.localDeleteComment(t);const r=e.groupId;this.getComments().filter(o=>o.groupId===r).length===0&&xtt(this.editor,r)}localUpdateComment(t,e){this.doc.localUpdateComment(t,e)}onCreateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onCreateComment(t,e))}onDeleteComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onDeleteComment(t,e))}onUpdateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onUpdateComment(t,e))}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}createCommentEditor(t,e){return aL(this.editor,{root:t,childDoc:e,doc:this.doc})}allowEdit(t){return t.userId===this.doc.getUser().userId}}class Btt{constructor(t,e){m(this,"listeners",new Set);this.editor=t,this.localDoc=e}get doc(){return this.localDoc.toJSON()}getComments(){return Object.values(this.doc.comments)}getComment(t){return this.doc.comments[t]}getCommentDoc(t){const e=this.doc.comments[t];return QC(e)}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}localCreateComment(t,e){}localDeleteComment(t){}localUpdateComment(t,e){}createCommentEditor(t,e){return aL(this.editor,{root:t,childDoc:e,doc:this.localDoc})}allowEdit(t){return t.userId===this.localDoc.getUser().userId}}const ytt={placeholder:{common:{title:"\u8BF7\u8F93\u5165\u6807\u9898",readonlyTitle:"\u8BF7\u8F93\u5165\u6807\u9898",content:"\u70B9\u51FB + \uFF0C\u6216\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6",contentInTable:"\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6"},local:{readonlyTitle:"\u672A\u547D\u540D"}},copyCutProperty:{copy:"\u590D\u5236",cut:"\u526A\u5207",unsafeEnvTips:"\u7531\u4E8E\u5F53\u524D http \u8BBF\u95EE\u73AF\u5883\u4E0B\u7684\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528\u5FEB\u6377\u952E({shortCut}) {operation}",limitedEnvTips:"\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528 {shortCut} \u7C98\u8D34"}},Ttt={placeholder:{common:{title:"Enter a title",readonlyTitle:"Enter a title",content:'Click "+", or enter "/" to insert components quickly',contentInTable:'Enter "/" to insert components quickly'},local:{readonlyTitle:"Untitled"}},copyCutProperty:{copy:"Copy",cut:"Cut",unsafeEnvTips:"Due to the limitations of the current http access environment, please use the shortcut ({shortCut}) {operation}",limitedEnvTips:"Press {shortCut} to paste due to browser restrictions"}},ktt={placeholder:{common:{title:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",readonlyTitle:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",content:"\u300C+\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u304B\u3001\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059",contentInTable:"\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059"},local:{readonlyTitle:"\u7121\u984C"}},copyCutProperty:{copy:"\u8907\u88FD",cut:"\u5207\u308B",unsafeEnvTips:"HTTP\u74B0\u5883\u306E\u5236\u7D04\u306B\u3088\u308A\u3001{operation}\u3059\u308B\u306B\u306F\u3001\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8({shortCut}) \u3092\u3054\u4F7F\u7528\u304F\u3060\u3055\u3044",limitedEnvTips:"\u30D6\u30E9\u30A6\u30B6\u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3VzdG9tWG1sL2l0ZW1Qcm9wczEueG1sUEsBAi0AFAAGAAgAAAAhAMEnywi2AAAAIQEAABMAAAAAAAAAAAAAAAAARjgAAGN1c3RvbVhtbC9pdGVtMS54bWxQSwECLQAUAAYACAAAACEAdD85esIAAAAoAQAAHgAAAAAAAAAAAAAAAABVOQAAY3VzdG9tWG1sL19yZWxzL2l0ZW0xLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAOuAYExTAwAAjw4AABIAAAAAAAAAAAAAAAAAWzsAAHdvcmQvZm9udFRhYmxlLnhtbFBLBQYAAAAADwAPANQDAADePgAAAAA=",wtt=()=>Jp(Rtt),Stt=D("image-to-docx");async function Ltt(n){return new Promise((t,e)=>{const r=new Image;r.onload=()=>{t({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=e,r.src=n})}async function cL(n,t){if(n.width&&n.height)return{width:n.width,height:n.height,buffer:t};try{const e=await Nc(new File([t],"",{})),r=await Ltt(e);return r.width===void 0||r.height===void 0?{width:345,height:230,buffer:t}:n.width||n.height?{width:n.width||r.width*n.height/r.height,height:n.height||r.height*n.width/r.width,buffer:t}:{width:r.width,height:r.height,buffer:t}}catch(e){Stt.error(e);return}}function Itt(n,t){let e=n.filter(s=>s!=null);const r=t-(e.length-1)*20,i=.87,o=e.reduce((s,l)=>s+l.width,0);return o>r&&(e=e.map(s=>({width:s.width*r/o,height:s.height*r/o,buffer:s.buffer}))),e.map(s=>({width:s.width*i,height:s.height*i,buffer:s.buffer}))}function Dtt(n,t,e){if(!e||typeof e!="object")return;const r=e,i=n.filter(s=>s!=null),o=t-(i.length-1)*20;i.forEach((s,l)=>{if(i.length===1&&r.widthPercent){const d=r.widthPercent,h=s.width;s.width=o*(d/100),s.height*=s.width/h;return}const c=`${l}_flex`;if(r[c]){const d=r[c],h=s.width;s.width=o*d,s.height*=s.width/h}})}function uL(n=[0,1,2,3,4,5,6,7],t=1){return n.map(e=>{let r;switch(e%3){case 0:r=Bt.LevelFormat.DECIMAL;break;case 1:r=Bt.LevelFormat.LOWER_LETTER;break;default:r=Bt.LevelFormat.LOWER_ROMAN;break}return{level:e,format:r,text:`%${e+1}. `,alignment:Bt.AlignmentType.START,start:t,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(e+1)),hanging:Bt.convertInchesToTwip(.2)}}}}})}function _tt(){return[0,1,2,3,4,5,6,7].map(n=>{let t;switch(n%3){case 0:t="\u2022";break;case 1:t="\u25E6";break;default:t="\u25AA";break}return{level:n,format:Bt.LevelFormat.BULLET,text:t,alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}})}function Mtt(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:Bt.LevelFormat.BULLET,text:"\u2611",alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}))}function Ott(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:Bt.LevelFormat.BULLET,text:"\u2610",alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}))}var ph=(n=>(n.NUMBERING="number-numbering-reference",n.BULLET="number-bullet-reference",n.CHECKED="checked-bullet-reference",n.UNCHECKED="unchecked-bullet-reference",n))(ph||{});const Utt=[{levels:uL(),reference:"number-numbering-reference"},{levels:_tt(),reference:"number-bullet-reference"},{levels:Mtt(),reference:"checked-bullet-reference"},{levels:Ott(),reference:"unchecked-bullet-reference"}];function Ntt(n){switch(n){case"style-color-0":return"d83931";case"style-color-1":return"de7802";case"style-color-2":return"dc9b04";case"style-color-3":return"2ea121";case"style-color-4":return"245bdb";case"style-color-5":return"6425d0";case"style-color-6":return"8f959e";default:return}}function Ptt(n){switch(n){case"style-bg-color-1":case"style-bg-color-2":case"style-bg-color-8":case"style-bg-color-9":return"yellow";case"style-bg-color-0":case"style-bg-color-5":return"magenta";case"style-bg-color-3":return"green";case"style-bg-color-4":case"style-bg-color-11":return"blue";case"style-bg-color-6":return"lightGray";case"style-bg-color-7":return"red";case"style-bg-color-10":return"darkGreen";case"style-bg-color-12":return"darkMagenta";case"style-bg-color-13":return"darkGray";default:return}}function Ftt(n){switch(n){case"style-bg-color-0":return"fbbab6";case"style-bg-color-1":return"ffdcb0";case"style-bg-color-2":return"fff7a0";case"style-bg-color-3":return"ceefc5";case"style-bg-color-4":return"d1ddfb";case"style-bg-color-5":return"d9cbf8";case"style-bg-color-6":return"eaeaea";case"style-bg-color-7":return"fe837c";case"style-bg-color-8":return"ffbd6a";case"style-bg-color-9":return"ffe662";case"style-bg-color-10":return"a8f393";case"style-bg-color-11":return"98b5ff";case"style-bg-color-12":return"b394f8";case"style-bg-color-13":return"b1b1b1";default:return}}const Ktt=/rgb\((\d+),\s*(\d+),\s*(\d+)\)/;function fL(n){if(typeof n=="string"&&n.length>0){if(n[0]==="#")return n.substring(1);const t=n.match(Ktt);if(t){const e=s=>{let l=Number(s).toString(16);return l.length<2&&(l=`0${l}`),l},r=e(t[1]),i=e(t[2]),o=e(t[3]);return`${r}${i}${o}`}if(n==="red")return"FF0000";if(n==="green")return"00FF00";if(n==="blue")return"0000FF"}}function On(n,t){if(n&&n.attributes&&n.attributes[t])return n.attributes[t];if(n&&n.attributes&&n.attributes.box&&n.attributes.inputType&&t==="style-underline")return!0}function dL(n,t,e){for(let r=0;r<=e;++r){const i=`${t}${r}`;if(On(n,i))return i}}function Gg(n,t,e){n.attributes=n.attributes||{},n.attributes[t]=e}function Pb(n){return n==="image"||n==="drawio"||n==="plantuml"||n==="mermaid"||n==="flowchart"}function hL(n){return n&&n.startsWith("//")?`https:${n}`:n&&!n.startsWith("http://")&&!n.startsWith("https://")?`https://${n}`:n}function Vtt(n){const t=On(n,"inlineStyle");if(t==null)return;const e=t.split(";");for(const r of e){const i=r.split(":");if(i.length!==2)continue;const o=i[0].trim().toLowerCase(),s=i[1].trim().toLowerCase();o==="font-size"&&Gg(n,"inline-style-font-size",s),o==="color"&&Gg(n,"inline-style-color",s),o==="background-color"&&Gg(n,"inline-style-background-color",s),o==="font-family"&&Gg(n,"inline-style-font-family",s)}}function $tt(n,t){if(t==null)return n==null?void 0:n.normal;if(n)return n[`heading${t}`]}function Htt(n){const t=`${On(n,"inline-style-font-size")}`;if(t&&t.indexOf("px")>0)return+t.replace(/px/g,"")}function jtt(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` ${n.attributes.text} `;if(n.attributes&&n.attributes.box&&n.attributes.inputType)return n.attributes.value?`${n.attributes.value}`:" "}function ztt(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` @${n.attributes.text} `}function Wtt(n){return On(n,"inline-style-font-family")}function Gtt(n){const t=On(n,"inline-style-background-color");return fL(t)}function qtt(n){const t=On(n,"inline-style-color");return fL(t)}function Xtt(n){Vtt(n);const t=On(n,"type")==="mention";return{box:n.attributes&&n.attributes.box?n.attributes:void 0,inlineCode:!!On(n,"style-code"),link:hL(On(n,"link")),size:Htt(n),text:t?ztt(n):jtt(n)||n.insert,bold:!!On(n,"style-bold"),underline:!!On(n,"style-underline"),italics:!!On(n,"style-italic"),strike:!!On(n,"style-strikethrough"),superScript:!!On(n,"style-super"),subScript:!!On(n,"style-sub"),math:On(n,"type")==="math"?On(n,"src"):void 0,mention:t,fontFamily:Wtt(n),background:Gtt(n),color:t?"338fe5":Ntt(dL(n,"style-color-",6))||qtt(n),highlight:dL(n,"style-bg-color-",13)}}function Ytt(){return[new Bt.Paragraph({border:{top:{color:"auto",style:Bt.BorderStyle.DASHED,size:4,space:1}},spacing:{before:300}}),new Bt.Paragraph({spacing:{line:0}})]}function Qtt(){return new Bt.Paragraph({children:[new Bt.TextRun({text:"[\u89C6\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function Jtt(){return new Bt.Paragraph({children:[new Bt.TextRun({text:"[\u97F3\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function Ztt(n,t){return new Bt.Paragraph({children:[new Bt.ExternalHyperlink({children:[new Bt.TextRun({style:"Hyperlink",text:t||n})],link:n})]})}function mL(n){if(n.heading!=null)return`Heading${n.heading}`}function gL(n){if(n.alignment!=null){if(n.alignment==="center")return Bt.AlignmentType.CENTER;if(n.alignment==="right")return Bt.AlignmentType.RIGHT;if(n.alignment==="left")return Bt.AlignmentType.LEFT}}function tet(n){if(n.indent)return{left:Bt.convertInchesToTwip(.3*n.indent-.2)};if(n.padding)return{left:Bt.convertInchesToTwip(.3*n.padding)}}function eet(n){return{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:n}}function net(n){const t=n.split(",");if(t.length!==0)return t[0].trim()}function pL(n,t){let e;e=n.inlineCode?"InlineCode":void 0,e=n.link?"Hyperlink":e;const r=n.size||t,i=r!=null?Math.floor(r*1.5+.5):void 0;return new Bt.TextRun({text:n.text,bold:n.bold||void 0,underline:n.underline?{type:Bt.UnderlineType.SINGLE}:void 0,italics:n.italics||void 0,strike:n.strike||void 0,superScript:n.superScript||void 0,subScript:n.subScript||void 0,size:i,style:e,font:n.fontFamily?net(n.fontFamily):void 0,shading:n.background?eet(n.background):void 0,color:n.color,highlight:Ptt(n.highlight)})}function ret(n,t){if(n.link)return new Bt.ExternalHyperlink({children:[pL(n,t)],link:n.link})}async function CL(n,t,e,r,i){const[o]=await i(n,t,e);if(o==null)return;const s=await cL({width:r||0,height:0,src:e},o);return new Bt.ImageRun({data:o,transformation:{width:(s==null?void 0:s.width)||100,height:(s==null?void 0:s.height)||20}})}function iet(n){if(n.heading||n.heading)return n.heading}function oet(n){if(n.align&&(n.align==="center"||n.align==="right"||n.align==="left"))return n.align}function set(n){if(n.textOnly===!0&&n.level!=null)return n.level}async function aet(n,t){var r;const e=[];if(n.text&&Array.isArray(n.text)){for(let i=0;i<n.text.length;i++){const o=n.text[i];if(((r=o.attributes)==null?void 0:r.box)===!0&&t){const s=await t(o);if(s){n.text.splice(i+1,0,...s);continue}}e.push(Xtt(o))}return e}}function cet(n){if(n.type==="list"&&n.textOnly!==!0)return{checkbox:n.checkbox,groupId:n.groupId,ordered:!!n.ordered,level:n.level||1,start:n.start||0}}function uet(n,t){if(n.type==="embed"&&n.embedType&&Pb(n.embedType)&&n.embedData&&n.embedData.src)return n.embedData.src.split("|").map(r=>{const i=t(r),o=n.embedData[`${i}_width`],s=n.embedData[`${i}_height`];return{src:r,width:o,height:s}})}function fet(n){if(n.padding)return n.padding}function det(n){return!!(n.type==="embed"&&n.embedType&&Pb(n.embedType)&&n.embedData&&n.embedData.src)}async function qg(n,t,e){return{quoted:!!n.quoted,heading:iet(n),alignment:oet(n),indent:set(n),padding:fet(n),texts:await aet(n,e),list:cet(n),images:uet(n,t),border:det(n)}}async function het(n,t,e,r){const i=[];if(!n.children)return[];for(const o of n.children){const s=[];for(const l of t.blocks[o])s.push(await qg(l,e,r));i.push(s)}return i}const met=D("to-docx");function get(n,t){return Array(n).fill(0).map(()=>Array(t).fill(0).map(()=>({cellId:void 0,color:void 0,from:void 0,rowSpan:1,colSpan:1,width:0,originalWidth:void 0,align:void 0})))}function pet(n,t,e,r){const i=!!n.hasColTitle,o=!!n.hasRowTitle,s=!!n.isStripeStyle,l="F5F8FB";for(let c=0;c<t;c++)for(let d=0;d<e;d++)(i&&d===0||o&&c===0||s&&c%2===1)&&(r[c][d].color=l)}function Cet(n){p(met,n.children,"no table children");const t=n.rows,e=n.cols,r=n.colsWidth;if(r)for(let s=0;s<r.length;s++)r[s]===0&&(r[s]=100);const i=get(t,e);let o=0;for(let s=0;s<t;++s)for(let l=0;l<e;++l){if(i[s][l].originalWidth=r?r[l]:void 0,i[s][l].from!==void 0)continue;const c=n.children[o];o+=1,i[s][l].cellId=c,i[s][l].color=Ftt(n[`${c}_background`]),i[s][l].width=r?r[l]:100,i[s][l].align=n[`${c}_align`];const d=n[`${c}_rowSpan`]||1,h=n[`${c}_colSpan`]||1;if(i[s][l].rowSpan=d,i[s][l].colSpan=h,d>1||h>1){let C=0;for(let E=0;E<d;E++)for(let A=0;A<h;A++)E===0&&(C+=r?r[l+A]:80),!(E===0&&A===0)&&(i[s+E][l+A].from=[s,l]);i[s][l].width=C}}return pet(n,t,e,i),i}const Eet=D("to-docx");function Aet(n){return Array(n).fill(0).map(()=>({cellId:void 0,originalWidth:0,width:0}))}function bet(n,t){p(Eet,n.children,"no layout children");const e=n.children.length,r=n.colsWidth;if(r)for(let o=0;o<r.length;o++)r[o]===0&&(r[o]=1/r.length);const i=Aet(e);for(let o=0;o<e;++o)i[o].cellId=n.children[o],i[o].originalWidth=r[o]*t,i[o].width=r[o]*t;return i}async function xet(n,t,e,r,i,o,s,l,c,d){async function h(E){if(l&&E.type!=="_exportVirtualBlock"){const A=await l(i,o,E);if(A){await r.addDoc(n,A,d);return}}if(E.type==="text"||E.textOnly===!0){const A=await qg(E,s,c);await r.addTextBlock(A);return}if(E.type==="code"){const A=await het(E,e,s,c);await r.addCodeBlockObject(A);return}if(E.type==="list"&&E.textOnly!==!0){const A=await qg(E,s,c);await r.addListBlockObject(n,A);return}if(E.type==="embed"&&E.embedType){const A=E,v=A.embedData,R=A.embedType;if(Pb(R)){const w=await qg(E,s,c);await r.addImagesBlockObject(E,w,d)}else E.embedType==="hr"?r.addSeparatorBlock():E.embedType==="video"?r.addVideoPlaceholder():E.embedType==="audio"?r.addAudioPlaceholder():E.embedType==="webpage"?r.addHyperlinkParagraph(hL(v.src),v.title):r.addOtherEmbedBlock(R,E.embedData);return}if(E.type==="table"){let A=[];if(E.colsWidth)A=E.colsWidth;else{const R=E.cols;A=new Array(R);for(let w=0;w<A.length;w++)A[w]=100;E.colsWidth=A}const v=Cet(E);await r.addTableMatrix(A,v,e),r.addEmptyParagraph()}if(E.type==="_exportVirtualBlock"&&await r.addVirtualBlock(E.id,e,d),E.type==="layout"){const A=[],v=E.colsWidth;for(let w=0;w<v.length;w++)A[w]=d*v[w];const R=bet(E,d);await r.addLayoutMatrix(A,R,e)}}function C(E){var R;const A=((R=E==null?void 0:E.embedData)==null?void 0:R.exportSpec)||(E==null?void 0:E.exportSpec);if(!A)return[E];const v=[];for(const{type:w,data:U}of A){if(w==="text"){const M={id:rt(),text:[{insert:U}],type:"text"};v.push(M);continue}if(w==="image"){const M={id:rt(),type:"embed",embedType:"image",align:"left",embedData:{src:U}};v.push(M);continue}if(w==="link"){const M={id:rt(),type:"embed",embedType:"webpage",embedData:{src:U.url,title:U.title}};v.push(M);continue}if(w==="block")for(const M of U){if(!e.blocks[M])continue;const et={id:M,type:"_exportVirtualBlock"};v.push(et)}}return v}for(const E of t)for(const A of C(E))!A||await h(A)}function vet(){return{listMaxInst:1,listInstMap:{},listRefMap:{},levelConfigs:[]}}const Bet=D("to-docx");class yet{constructor(t,e,r,i,o,s){m(this,"paragraphs");this.appId=t,this.docId=e,this.state=r,this.readImageFunc=i,this.convertBlocksFunc=o,this.defaultFontSize=s,this.paragraphs=[]}async addTextBlock(t){this.paragraphs.push(new Bt.Paragraph({heading:mL(t),alignment:gL(t),children:await this.paragraphsFromBlockTexts(t),indent:tet(t)}))}async addEmptyImagePlaceHolder(){this.paragraphs.push(new Bt.Paragraph({text:`[${_.t("docx.imageExportFailed")}]`,shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}}))}async paragraphsFromBlockTexts(t){if(t.texts==null)return;const e=$tt(this.defaultFontSize,t.heading),r=[];for(const i of t.texts){if(i.link){const o=ret(i,e);o&&r.push(o);continue}if(i.box&&i.box.type&&i.box.type==="br"){r.push(new Bt.TextRun({text:"",break:1}));continue}if(i.box&&i.box.type&&i.box.type==="image"){const o=await CL(this.appId,this.docId,i.box.src,i.box.width,this.readImageFunc);o&&r.push(o);continue}if(i.math){const o=await CL(this.appId,this.docId,i.math,0,this.readImageFunc);o&&r.push(o);continue}r.push(pL(i,e))}return r}async addCodeBlockObject(t){for(const e of t)for(const r of e){const i={style:Bt.BorderStyle.SINGLE,color:"#DEDEDE"};this.paragraphs.push(new Bt.Paragraph({style:"Code",border:{left:{...i},right:{...i},top:{...i},bottom:{...i}},children:await this.paragraphsFromBlockTexts(r)}))}}async addListBlockObject(t,e){if(e.list==null)return;let r;const i=e.list.checkbox?`${t}-${e.list.groupId}-${e.list.checkbox}`:`${t}-${e.list.groupId}`;if(this.state.listInstMap[i])r=this.state.listInstMap[i];else if(r=this.state.listMaxInst,this.state.listMaxInst+=1,this.state.listInstMap[i]=r,e.list.start>0&&e.list.ordered){const s=`number-numbering-reference-${r}`,l=uL([e.list.level-1],e.list.start);this.state.levelConfigs.push({levels:l,reference:s,inst:r}),this.state.listRefMap[i]=s}else e.list.ordered?this.state.listRefMap[i]=ph.NUMBERING:e.list.checkbox&&e.list.checkbox==="checked"?this.state.listRefMap[i]=ph.CHECKED:e.list.checkbox&&e.list.checkbox==="unchecked"?this.state.listRefMap[i]=ph.UNCHECKED:this.state.listRefMap[i]=ph.BULLET;const o=mL(e);e.texts&&this.paragraphs.push(new Bt.Paragraph({heading:o,children:await this.paragraphsFromBlockTexts(e),numbering:{reference:this.state.listRefMap[i],level:e.list.level-1,instance:r}}))}imageDimWithBufferToImageRun(t){return new Bt.ImageRun({data:t.buffer,transformation:{width:t.width,height:t.height}})}async addImagesBlockObject(t,e,r){if(e.images==null){if(t.type==="embed"&&t.embedType==="image"){const{src:c}=t.embedData;c||this.addEmptyImagePlaceHolder()}return}const i=[],o=await Promise.all(e.images.map(async c=>{const[d,h]=await this.readImageFunc(this.appId,this.docId,c.src);if(d){const C=await cL(c,d);if(C)return C}i.push(h)}));Dtt(o,r,t.embedData);const s=Itt(o,r),l={style:Bt.BorderStyle.SINGLE,color:"#DEDEDE"};s.length&&this.paragraphs.push(new Bt.Paragraph({border:e.border?{left:{...l},right:{...l},top:{...l},bottom:{...l}}:void 0,alignment:gL(e)||Bt.AlignmentType.CENTER,children:s.map(c=>this.imageDimWithBufferToImageRun(c)).flatMap((c,d,h)=>c==null?[]:h.length-1!==d?[c,new Bt.TextRun({text:" "})]:c)})),i.forEach(c=>{this.addHyperlinkParagraph(c)})}addSeparatorBlock(){Ytt().forEach(t=>this.paragraphs.push(t))}addEmptyParagraph(){this.paragraphs.push(new Bt.Paragraph(""))}addVideoPlaceholder(){this.paragraphs.push(Qtt())}addAudioPlaceholder(){this.paragraphs.push(Jtt())}addHyperlinkParagraph(t,e){t!=null&&this.paragraphs.push(Ztt(t,e))}async addTableMatrix(t,e,r){const i=t.map(o=>o!==0?o*15:1500);this.paragraphs.push(new Bt.Table({rows:await this.generateTableRows(e,r),columnWidths:i}))}async generateRowCells(t,e){const r=[];for(const i of t){const o=i.cellId;if(o===void 0)continue;const s=i.width*.9;r.push(new Bt.TableCell({children:await this.convertBlocksFunc(o,e.blocks[o],e,this.appId,this.docId,this.state,s),columnSpan:i.colSpan,rowSpan:i.rowSpan,width:{type:Bt.WidthType.DXA,size:i.width*15},shading:i.color?{fill:i.color,type:Bt.ShadingType.CLEAR,color:"auto"}:void 0}))}return r}async generateTableRows(t,e){const r=[];for(const i of t)r.push(new Bt.TableRow({children:await this.generateRowCells(i,e)}));return r}async addLayoutMatrix(t,e,r){const i=t.reduce((o,s)=>o+s,0);for(const o of e){const s=o.cellId,l=await this.convertBlocksFunc(s,r.blocks[s],r,this.appId,this.docId,this.state,i);this.paragraphs.push(...l,new Bt.Paragraph(""))}}async addDoc(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks.root,e,this.appId,this.docId,this.state,r);i&&(this.paragraphs=this.paragraphs.concat(i))}async addVirtualBlock(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks[t],e,this.appId,this.docId,this.state,r);this.paragraphs.push(...i)}async addOtherEmbedBlock(){}}class Tet{constructor(t,e,r,i,o,s,l,c){m(this,"convertBlocks",async(t,e,r,i,o,s,l=720)=>{const c=new yet(i,o,s,this.readImage,this.convertBlocks,this.defaultFontSize);return await xet(t,e,r,c,i,o,this.md5HexFunc,this.getDocByBlock,this.getTextsByBox,l||720),c.paragraphs});this.templateData=t,this.docData=e,this.md5HexFunc=r,this.readImage=i,this.defaultFontSize=o,this.getDocByBlock=s,this.getTextsByBox=l,this.backgroundImageOptions=c}async convert(t,e){return this.snapshot2docx(this.docData,t,e)}async snapshot2docx(t,e,r){const i=new Bt.ImportDotx,o=this.templateData?await i.extract(this.templateData):void 0,s=t.blocks.root;p(Bet,s,"data must have blocks");const l=vet(),c=await this.convertBlocks("blocks",s,t,e,r,l),d=this.backgroundImageOptions?{default:new Bt.Header({children:[new Bt.Paragraph({children:[new Bt.ImageRun(this.backgroundImageOptions)]})]})}:{},h=new Bt.Document({numbering:{config:[...Utt,...l.levelConfigs]},sections:[{headers:d,children:c,properties:{page:{size:{width:12240,height:15840},margin:{top:1440,bottom:1440,left:1440,right:1440}}}}]},{template:o});return Bt.Packer.toBlob(h)}}async function ket(n,t,e,r){const i=n.doc.buildResourceUrl(r,{withToken:!0});let o=await RS(i);if(!o)return[void 0,i];if(o.type.indexOf("/svg")!==-1){const l=await yS(o);l&&(o=new File([l],o.name))}return[await o.arrayBuffer(),i]}async function Ret(n,t,e){const r=n.editorBlocks.getBlockClass(e.type);if(r.toStandardDoc)return r.toStandardDoc(n,e,t)}async function wet(n,t){const e=t.attributes,r=n.editorBoxes.getBoxClass(e.type);if(r.toStandardText)return r.toStandardText(n,e)}async function Let(n,t){let{template:e,download:r,backgroundImageOptions:i}=t!=null?t:{};e||(e=wtt());const o=n.doc.toJSON(),s=(C,E,A)=>ket(n,C,E,A),l=async(C,E,A)=>Ret(n,o,A),c=async C=>wet(n,C),h=await new Tet(e,o,um.default,s,void 0,l,c,i).convert("_appId","_docId");if(r){const C=URL.createObjectURL(h),E=document.createElement("a");E.setAttribute("download",`${kS(n)}.docx`),E.setAttribute("href",`${C}`),E.click(),E.remove()}return h}const Fb=D("create-editor");async function Iet(n,t){var s,l,c,d,h,C,E,A,v,R,w,U,M,V,et,Y;p(Fb,n,"app does not exists"),t.lang&&_.setLang(t.lang),mi.level=(s=t.logLevel)!=null?s:Js.DEBUG;const e=t.onReauth?async()=>{var xt;const X=t.user.userId,ut=t.docId,bt=await((xt=t.onReauth)==null?void 0:xt.call(t,X,ut,t.permission));return{userId:X,docId:ut,permission:t.permission,appId:t.appId,token:bt,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl}}:void 0,r={auth:{appId:t.appId,docId:t.docId,userId:t.user.userId,permission:t.permission,token:t.token,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl},serverUrl:t.serverUrl,reauthFunc:e,disableLogout:t.disableLogout,onMaxUsersError:t.onMaxUsersError},i=await Rd.load(r),o=hd(n,i,{id:t.id,scrollContainer:t==null?void 0:t.scrollContainer,enableComments:t==null?void 0:t.enableComments,enableContextMenu:t==null?void 0:t.enableContextMenu,components:{blocks:[...Ub,...((l=t==null?void 0:t.components)==null?void 0:l.blocks)||[]],embeds:[...Nb,...((c=t.components)==null?void 0:c.embeds)||[]],boxes:[...sL,...((d=t.components)==null?void 0:d.boxes)||[]],commandProviders:[new H0,...((h=t.components)==null?void 0:h.commandProviders)||[]],decorators:[new pg,new ZC],insertions:[Z1],blockHooks:[new UA,new Cw,...((C=t.components)==null?void 0:C.blockHooks)||[]],textRenders:[new U4,new tA,...((E=t.components)==null?void 0:E.textRenders)||[]],options:{...t.componentsOptions}},shortcuts:[Jq,TH,Dz,CA,a4,OF,dA,_X,u0,wF,...t.shortcuts||[]],colors:["#0064FF","#EB3723","#F59300","#00A865","#F25A0A","#70A310","#009CAD","#0990D9","#8851ED","#D62069"]});if(o.editorCommandProviders.registerCommandProvider(new Co(o)),o.input.addHandler(new vY),o.input.addHandler(new Eg),o.input.addHandler(new nV),o.input.addHandler(new yz),o.input.addHandler(new yA(o,{hideTitle:t.hideTitle,headingLevel:1,titlePlaceholder:_.t("placeholder.common.title"),contentPlaceholder:_.t("placeholder.common.content"),readonlyTitlePlaceholder:_.t("placeholder.common.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0,applyContentPlaceholder:(A=t.placeholder)==null?void 0:A.applyContentPlaceholder})),o.input.addHandler(new ug(o,(v=t.componentsOptions)==null?void 0:v.quickMenu)),o.input.addHandler(new GA(o)),o.input.addHandler(new ZA(o)),o.input.addHandler(new vg),o.input.addHandler(new Kk),o.doc.registerCallback(new BY(o)),o.addCustom("remote-cursor",()=>new ET(o)),o.addCustom("block-menu",X=>new xw(X)),ve.isMobile||o.addCustom("editor-tooltip",()=>new Hd(o)),t!=null&&t.enableComments&&o.addCustom("editor-comments",X=>new O4(X,new vtt(X))),t.enableContextMenu!==!1&&o.addCustom("editor-context-menu",X=>new nb(X)),o.addCustom("create-options",()=>new Vx(o,t)),o.addCustom("drop-target",()=>new ih(o)),o.addCustom("list-to-mindmap",()=>new rg(o)),o.addCustom("list-to-mention",()=>new jY(o)),o.addCustom("mobile-helper",()=>new dQ(o)),o.addCustom("code-caret",()=>new xH(o)),o.addCustom("image-paste-handler",()=>new jA(o)),(R=t.componentsOptions)!=null&&R.mention){const X=t.componentsOptions.mention;o.addCustom("mention",()=>new AS(o,X))}if(o.addCustom("heading-collapse",()=>new Eb(o)),o.addCustom(Hg,X=>new Tb(X)),ku.register(o),ih.register(o),Ml.register(o),Rl.register(o),o.addListener("clickLink",(X,ut,bt)=>{var Rt;if((Rt=t==null?void 0:t.events)!=null&&Rt.onClickLink){t.events.onClickLink(X,ut,bt);return}const xt=bt.getAttribute("link");xt&&(X.readonly||ut.ctrlKey||ut.metaKey)&&window.open(xt,"_blank")}),(U=(w=t.componentsOptions)==null?void 0:w.remoteCarets)!=null&&U.onUserChanged){const X=(V=(M=t.componentsOptions)==null?void 0:M.remoteCarets)==null?void 0:V.onUserChanged;o.doc.getRemoteUsers().on("change",ut=>{X(o,ut)})}return(Y=(et=t.componentsOptions)==null?void 0:et.templates)!=null&&Y.templates.length&&(o.addListener("docChanged",()=>{$g(o)}),o.addListener("resize",()=>{$g(o,{reset:!0})}),setTimeout(()=>{$g(o)},100)),o.doc.registerCallback({onError:async X=>{if(X.code==="ResetDoc"){Fb.error(`reset doc: ${X.message}`);const ut=await Rd.load(r);o.doc.reset(ut)}}}),o.version="1.1.20-beta.12",mi.level===Js.DEBUG&&(window.setReauthFail=X=>{window.isReauthError=X},window.reConnect=X=>o.doc.externalDoc.client.connection.reConnect(X)),o}function Det(n){return n.toJSON!==void 0}async function _et(n,t,e){var o,s,l,c,d,h,C,E;p(Fb,n,"app does not exists");const r=Det(t)?t:new DC(t,{serverUrl:e.serverUrl||""});e.lang&&_.setLang(e.lang),mi.level=(o=e.logLevel)!=null?o:Js.DEBUG;const i=hd(n,r,{id:e.id,scrollContainer:e==null?void 0:e.scrollContainer,components:{blocks:[...Ub,...(l=(s=e.components)==null?void 0:s.blocks)!=null?l:[]],commandProviders:[new H0],decorators:[new pg,new ZC],embeds:[...Nb,...((c=e.components)==null?void 0:c.embeds)||[]],boxes:[Qk,bS,H4,...((d=e.components)==null?void 0:d.boxes)||[]],insertions:[Z1],blockHooks:[new UA,...((h=e.components)==null?void 0:h.blockHooks)||[]],textRenders:[new U4,new tA,...((C=e.components)==null?void 0:C.textRenders)||[]],options:{...e.componentsOptions}},shortcuts:[CA,a4,dA,u0]});return i.editorCommandProviders.registerCommandProvider(new Co(i)),i.input.addHandler(new Eg),i.input.addHandler(new yA(i,{hideTitle:e.hideTitle,headingLevel:1,titlePlaceholder:_.t("placeholder.common.title"),contentPlaceholder:_.t("placeholder.common.content"),readonlyTitlePlaceholder:_.t("placeholder.local.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0})),i.input.addHandler(new ug(i,(E=e.componentsOptions)==null?void 0:E.quickMenu)),i.input.addHandler(new GA(i)),i.input.addHandler(new ZA(i)),i.input.addHandler(new vg),i.input.addHandler(new Kk),i.addCustom("block-menu",A=>new xw(A)),ve.isMobile||i.addCustom("editor-tooltip",()=>new Hd(i)),i.addCustom("image-paste-handler",()=>new jA(i)),e!=null&&e.enableComments&&i.addCustom("editor-comments",A=>new O4(A,new Btt(A,r))),e.enableContextMenu!==!1&&i.addCustom("editor-context-menu",A=>new nb(A)),i.addCustom("heading-collapse",()=>new Eb(i)),i.addListener("clickLink",(A,v,R)=>{var U;if((U=e==null?void 0:e.events)!=null&&U.onClickLink){e.events.onClickLink(A,v,R);return}const w=R.getAttribute("link");w&&(A.readonly||v.ctrlKey||v.metaKey)&&window.open(w,"_blank")}),i.addCustom(Hg,A=>new Tb(A)),ku.register(i),i.version="1.1.20-beta.12",i}async function Met(n,t,e){var h;const r=n.doc.externalDoc.client.auth,i=await B0.load({auth:r,serverUrl:e});if(!((h=i.getVersionHelper)==null?void 0:h.call(i)))throw new Error("the editor does not support to show versions");const s=n.getCustom("create-options");if(!s)throw new Error("the editor does not support to show versions");const l=s.getData(),c=new lL(l),d=n.addCustom("version-dialog",()=>new oS(i,c));return d.show(t),d}x.tippy=kI,x.AnchorBox=N3,x.AuthError=Td,x.AuthHeader=va,x.AutoScroll=Uf,x.BaseURLHeader=ou,x.BasicCommands=yK,x.BlockExclusiveHook=Cw,x.BlockLockerHook=UA,x.BlockLockerPasteHandler=vg,x.BlockResizer=Qd,x.BrBox=_3,x.CodeBlock=KR,x.CodeLineBlock=VR,x.CodeTextDecorator=pg,x.DOC_RE_AUTH_KEYS=Hg,x.DefaultShortcuts=u0,x.DocIdError=pU,x.DocReAuthCallbacks=Tb,x.DragDrop=ov,x.DrawioEmbed=KS,x.EditorBlocks=CB,x.EditorBoxes=O3,x.EditorCommandProviders=D5,x.EditorComplexBlockPosition=xi,x.EditorComplexSelectionRange=Bi,x.EditorDecorators=V3,x.EditorEmbeds=AB,x.EditorInsertions=K3,x.EditorSimpleBlockPosition=hn,x.EditorSimpleSelectionRange=xn,x.EmbedBlock=xB,x.EmbedBlockResizer=oh,x.EnforceWithDocumentTitleHandler=yA,x.EventCallbacks=Mc,x.FILL_CHAR=K8,x.FileExtError=CU,x.GroupOrder=Hk,x.HeadingBlockScrollListener=NY,x.ImageBox=U3,x.InlineBoxCommandProvider=iR,x.InputtingInsertion=P3,x.LocalDoc=DC,x.LogLevel=Js,x.Logger=mi,x.MIN_DISTANCE_THRESHOLD=rv,x.ManualCloseDialog=wd,x.ManualMenu=Cl,x.ManualToolbar=fu,x.MarkdownInputHandler=Eg,x.MaxUserError=jC,x.Mindmap=ng,x.OnesEditorAutoSuggest=bE,x.OnesEditorCustomDataWrapper=Vx,x.OnesEditorExclusiveBlock=Rl,x.OnesEditorHoveringBlock=We,x.OnesEditorIcons=nN,x.OnesEditorQuickMenu=ug,x.OnesEditorToc=mh,x.OnesEditorTocProvider=Ml,x.OnesEditorToolbar=ku,x.OnesEditorTooltip=Hd,x.OnesEditorVersionsDialog=oS,x.PermissionError=v0,x.Popup=uu,x.ReAuthToolbar=wS,x.RemoteCarets=ET,x.RemoteCaretsDecorator=ZC,x.RemoteCaretsInsertion=Z1,x.RemoteUsers=md,x.RequestReloadError=kd,x.RichText=jn,x.ShareDBDoc=Rd,x.ShareDBDocVersionsProvider=lL,x.ShareDBServer=B0,x.SimpleCache=Xx,x.StandardEmbedBlockCommands=zA,x.TEXT_STYLE_BACKGROUND_COLOR_PREFIX=D1,x.TEXT_STYLE_COLOR_PREFIX=I1,x.TableBlock=RR,x.TableBlockCommandProvider=H0,x.TableShortcuts=CA,x.TextBlock=lr,x.TextBox=D3,x.TextColorItem=N2,x.TextStyleShortcuts=dA,x.TocEmbed=CS,x.ZERO_WIDTH_SPACE_CHAR=Lf,x.abbreviation=Rm,x.addAttribute=Um,x.addClass=z,x.addCommentToBlock=_a,x.addDays=O9,x.addMetaToDoc=fd,x.addMonths=M9,x.animateScrollTo=sa,x.applyPlaceholderToBlock=Xd,x.assert=p,x.autoShowHideTemplates=$g,x.bindKeyDownEvent=Am,x.blockToDoc=kC,x.blockToHtml=nC,x.blockToMarkdown=Qm,x.blockToText=rd,x.blocksToDoc=e5,x.clearAllSelection=Xv,x.clientType=ve,x.cloneBlock=cl,x.cloneChildContainer=dC,x.cloneDoc=hC,x.cloneText=y3,x.commentToShareDbComment=JC,x.compareElement=Cm,x.comparePosition=B1,x.complexBlockAdjustSelectionPos=_m,x.complexBlockFindNearestChildBlock=D7,x.complexBlockGetAllChildContainers=In,x.complexBlockGetBottomChildContainers=TB,x.complexBlockGetDeepFirstChild=vB,x.complexBlockGetFirstSimpleChild=T1,x.complexBlockGetLastSimpleChild=$c,x.complexBlockGetSelectedContainers=Vc,x.complexBlockGetTopChildContainers=yB,x.containerToDoc=n5,x.continuousScroll=xv,x.convertBlockFrom=Im,x.convertImageFileToPng=yS,x.convertImageSrcToPng=sQ,x.converterIntercept=Cg,x.copyBlockAttributes=Z3,x.copyResourcesFromDoc=IC,x.createBlockAnchor=qo,x.createBlockCaretAnchor=RB,x.createBlockContentElement=nl,x.createBlockElement=Kv,x.createBlockSimpleDocRange=Wm,x.createBlockSimpleRange=Ae,x.createBoxContentElement=Hv,x.createBoxElement=Vv,x.createBoxOp=B3,x.createChildContainer=gB,x.createComplexBlockPosition=De,x.createComplexDocPos=w3,x.createComplexDocRange=H8,x.createContainer=Zf,x.createContainerElement=a1,x.createDeleteOps=A3,x.createEditor=hd,x.createEditorSelectionRange=mn,x.createElement=B,x.createEmptyContainer=Gr,x.createEmptyDoc=Zo,x.createEmptyTextBlockData=jm,x.createExpandedRange=gm,x.createIconButton=Vo,x.createImage=$p,x.createInsertOps=$m,x.createInsertionContentElement=Wv,x.createInsertionElement=jv,x.createLocalEditor=_et,x.createOnesEditor=Iet,x.createRange=Yx,x.createRichText=Ea,x.createRootContainer=mB,x.createSimpleBlockPosition=mt,x.createSimpleDocPos=R3,x.createTextBlockData=ro,x.createTextButton=La,x.createTextOp=Wr,x.createTextWithReplaceSoftReturn=j1,x.daysAfter=r1,x.deleteText=W1,x.diffDays=U9,x.disablePageScroll=t1,x.docToHtml=q3,x.docToHtmlFragment=id,x.docToMarkdown=X3,x.docToText=al,x.downloadImageToFile=RS,x.downloadObjectToFile=wb,x.downloadSvgToString=IS,x.editLink=Fd,x.editorAddComment=Hq,x.editorAddTextAttribute=uy,x.editorAutoInsertBlock=ty,x.editorBreakTextBlock=Jc,x.editorClearCompositionText=sC,x.editorClearSelectedContents=n0,x.editorCopyBlock=SC,x.editorCopyDoc=c0,x.editorDeleteBlock=cC,x.editorDeleteBlockText=lC,x.editorDeleteBlockWithoutChildren=t0,x.editorDeleteChildContainer=V_,x.editorDeleteChildContainers=ey,x.editorFocusToBlock=fC,x.editorFocusToEnd=sM,x.editorGetBlockData=ll,x.editorGetBlockText=Qn,x.editorGetBlockTextEx=qm,x.editorGetBoxData=L3,x.editorHandleKeyboardEvent=m5,x.editorInsertBlock=Qc,x.editorInsertBoxToBlock=Q3,x.editorInsertDoc=ay,x.editorInsertDocAt=mC,x.editorInsertText=oC,x.editorInsertTextToBlock=Y3,x.editorInsertTextToBlockEx=iC,x.editorMergeTextBlock=ny,x.editorMoveDown=By,x.editorMoveEnd=xC,x.editorMoveHome=_y,x.editorMoveLeft=by,x.editorMoveLineEnd=Vy,x.editorMoveLineHome=Ky,x.editorMovePageDown=Gy,x.editorMovePageUp=Wy,x.editorMoveRight=xy,x.editorMoveUp=vy,x.editorMoveWordEnd=Ly,x.editorMoveWordLeft=Sy,x.editorRangeClearColor=dy,x.editorRangeGetColor=hy,x.editorRangeSetColor=fy,x.editorRemoveTextAttribute=z_,x.editorReplaceBlockText=r0,x.editorReplaceContainer=cy,x.editorRunOnce=g0,x.editorSelectAll=BC,x.editorSelectContainer=s0,x.editorSelectDown=yy,x.editorSelectEnd=vC,x.editorSelectHome=My,x.editorSelectLeft=Ty,x.editorSelectLineEnd=Fy,x.editorSelectLineHome=Py,x.editorSelectPageDown=Yy,x.editorSelectPageUp=Xy,x.editorSelectRight=ky,x.editorSelectUp=Ry,x.editorSelectWordEnd=Dy,x.editorSelectWordLeft=Iy,x.editorSetTextColor=Zc,x.editorShowFindDialog=OG,x.editorToDocx=Let,x.editorUpdateBlockData=i0,x.editorUpdateCompositionText=J3,x.editorUpdateEmbedData=sy,x.enablePageScroll=e1,x.escapeHtmlText=bm,x.escapeRegExp=l1,x.escapeSpace=C9,x.exclusiveBlock=_A,x.executeBlockCommand=sB,x.executeEmbedBlockCommand=oB,x.executeRangeCommand=I5,x.fileToDataUrl=Nc,x.findAfterOffsetNotType=Y1,x.findAllText=yC,x.findBlockByIndex=Dv,x.findEventTargetBlock=Zx,x.findInsertionById=zv,x.findNextOffset=c_,x.findNextVisibleSimpleBlock=U5,x.findPrevOffset=a_,x.findPrevOffsetNotType=X1,x.findPrevSimpleBlockBeforeChildContainer=BB,x.findPrevVisibleSimpleBlock=O5,x.findTarget=Uc,x.findWordEnd=J1,x.findWordLeft=Q1,x.format=Nf,x.formatBytes=vv,x.formatDate=o1,x.fragmentToHtml=pv,x.fromBase64=Df,x.fromBase64ToBlob=Jp,x.fromBase64ToUint8Array=w9,x.fromDocRange=il,x.fromNowString=s1,x.genId=rt,x.getAllChildBlocks=S1,x.getAllQuickMenuItems=fA,x.getAllSelectedBlocks=to,x.getAttributesAt=Wc,x.getBlockBackground=f1,x.getBlockByIndex=tl,x.getBlockCaretRect=rl,x.getBlockClass=le,x.getBlockClassByType=ua,x.getBlockClientRects=jo,x.getBlockCommandsWithHook=C1,x.getBlockContent=$t,x.getBlockHeading=Hf,x.getBlockId=ht,x.getBlockIndex=wt,x.getBlockInfo=nh,x.getBlockKind=Ci,x.getBlockMinWidth=Jv,x.getBlockNearestRangeFromPoint=R1,x.getBlockOptions=eB,x.getBlockPath=zo,x.getBlockProperties=nB,x.getBlockRangeFromPoint=Mm,x.getBlockStyles=q9,x.getBlockTextLength=Ct,x.getBlockTools=Ee,x.getBlockType=Lt,x.getBoxContent=h1,x.getBoxId=$v,x.getBoxTypeFromElement=Vf,x.getChildBlockCount=pi,x.getChildBlocks=Be,x.getChildOffset=ol,x.getClosestContainerByCondition=Qv,x.getColorFromAttributes=M1,x.getColorFromContent=wm,x.getComplexBlockClass=$r,x.getContainerBlockPath=fB,x.getContainerBlocks=qv,x.getContainerBlocksElement=Ff,x.getContainerById=xr,x.getContainerId=ft,x.getContainerMinWidth=x1,x.getContainerToolsElement=z9,x.getContainerWidth=pB,x.getDistanceSquare=Zs,x.getElementFromPoint=Ne,x.getElementOffset=Sf,x.getElementScale=Vr,x.getEmbedType=He,x.getExistsBlockTools=Sm,x.getExistsContainerById=Pf,x.getFileExt=Of,x.getFirstChildBlock=Pe,x.getFirstClientRect=pm,x.getHeadingBlockChildren=Kc,x.getHeadingMenuOptions=lA,x.getHorizontalPadding=jp,x.getInsertionContent=m1,x.getLastChildBlock=tn,x.getLastClientRect=ia,x.getListAllNextBrothers=bu,x.getLogger=D,x.getNextBlock=ae,x.getNextHiddenBlocks=cB,x.getNextValidOffset=pa,x.getNextVisibleBlock=jr,x.getOffsetFromPoint=Hp,x.getOffsetInfoAfter=td,x.getOffsetInfoBefore=Xm,x.getOpAt=ZB,x.getOpLength=Om,x.getParentBlock=Z,x.getParentBlockExcludeSelf=da,x.getParentBox=d1,x.getParentContainer=ct,x.getPrevBlock=$e,x.getPrevValidOffset=sl,x.getPrevVisibleBlock=Hr,x.getRangeCommands=S5,x.getReferenceClientRect=pk,x.getRootBlock=$f,x.getScrollContainer=Ze,x.getSpecialBlockCommands=rB,x.getStandardEmbedBlockProperties=WA,x.getTextAfterOffset=s_,x.getTextAttributes=rC,x.getTextBeforeOffset=l_,x.getTextBlockChild=Wf,x.getTextBlockClass=Mv,x.getTextBlockContentChildTextLength=zr,x.getTextBlockContentChildType=uB,x.getTextBlockContentChildren=Zi,x.getTextLength=Hn,x.getTextOpLength=L1,x.getTextWidth=ym,x.getToolbar=Y0,x.handleBlockElementUpdated=Zv,x.hasAltOnly=B9,x.hasClass=Dt,x.hasCtrlOrCmd=fv,x.hasCtrlOrCmdOnly=v9,x.hashCode=Sv,x.hideBlock=Fv,x.hideTemplates=BS,x.htmlToFragment=Bm,x.i18n=_,x.includeBigTable=DN,x.injectDocToHtmlFragment=ud,x.injectStyle=nv,x.inputActions=kM,x.insertEmptyBlock=Q9,x.insertEmptyEmbedBlock=E1,x.insertText=Jo,x.intersectionCommands=oO,x.isBackspace=hv,x.isBlock=fa,x.isBlockLocked=xg,x.isBlockLockedByOthers=OA,x.isBlockLockedBySelf=rh,x.isBlockTools=Pv,x.isBox=Lm,x.isBoxOp=Xo,x.isCJK=cv,x.isChildContainer=bi,x.isChildNode=Ce,x.isCodeBlock=Oi,x.isCollapsedHeadingBlock=Ji,x.isCollapsedRange=$8,x.isComplexBlockPosition=ma,x.isComplexKindBlock=Pt,x.isContainer=Ai,x.isContainerSelectedAllChildBlocks=Qy,x.isControlEvent=aa,x.isDelete=T9,x.isDraggingFiles=Tm,x.isElementVisible=Gp,x.isEmbedBlock=fe,x.isEmptyContainer=Gf,x.isEmptyDoc=G1,x.isEmptyTextBlock=ye,x.isEmptyTextBlockWithoutCompositionText=qd,x.isEnterOnly=dv,x.isEscape=vm,x.isExclusiveBlock=eh,x.isExpandedHeadingBlock=aB,x.isFirefox=Rf,x.isFirstChildBlockInComplexBlock=I7,x.isHeadingBlock=bn,x.isHighSurrogate=h9,x.isInBlock=g1,x.isInBlockTools=Fc,x.isLetter=av,x.isLowSurrogate=m9,x.isMatchShortcut=Yi,x.isMoveForward=b9,x.isNavigationEvent=A9,x.isNavigationKey=uv,x.isNodeRemoved=wf,x.isNumber=lv,x.isPrintableKey=Yp,x.isRootBlock=vr,x.isRootContainer=re,x.isSafari=ra,x.isSameDay=i1,x.isSelectBoxOnly=Mi,x.isShiftEnter=y9,x.isShiftTab=R9,x.isShortcutEvent=x9,x.isSimpleBlock=G9,x.isSimpleBlockPosition=vi,x.isSimplePos=k3,x.isSimpleRange=zm,x.isSpace=xm,x.isTab=k9,x.isTextBlockContentBoxChild=Br,x.isTextBlockContentChild=jf,x.isTextBlockContentInsertionChild=Go,x.isTextBlockContentTextChild=zf,x.isTextKindBlock=lt,x.isTextKindBlockType=Kf,x.isTitleBlock=Ho,x.isToday=Bv,x.isValidOffset=sr,x.isVisibleBlock=el,x.isYesterday=yv,x.loadJs=Jx,x.loadJsPromise=oa,x.lockers=gi,x.mergeCommands=X0,x.mergeDocs=Aa,x.mergeOps=z1,x.mergeText=P8,x.multiSplitText=e3,x.overflowText=Tv,x.parseShortcut=mv,x.patchNode=_f,x.pointInRect=la,x.rangeAddAttribute=Yf,x.rangeGetTextColor=a3,x.rangeRemoveAttribute=zc,x.rangeSetTextColor=o3,x.rangeTransformText=r3,x.registerDragDrop=qp,x.removeAttribute=_1,x.removeClass=st,x.removeLastBr=M8,x.removePlaceholderFromBlock=HR,x.removeStyle=ev,x.replaceAll=N9,x.replaceAllCaseInsensitive=P9,x.replaceAllText=Zy,x.replaceText=Hm,x.requestDownload=km,x.resetListStart=vu,x.scrollIntoView=nd,x.scrollable=bv,x.selectFile=Pc,x.selectedBlockToDoc=l0,x.selectionToDoc=tu,x.setAttributes=Em,x.setClipboardData=Mf,x.setClipboardDataByEvent=I9,x.setColorToAttributes=s3,x.setDataset=zp,x.setDefaultCursor=If,x.setStyles=Wp,x.shareDBCommentToDocObject=QC,x.shareDBDocCommentToComment=pT,x.shortcutToDisplayText=dn,x.showBlock=u1,x.showDocVersions=Met,x.showTemplates=Bb,x.splitText=or,x.splitToThree=gn,x.stringToDataUrl=Zp,x.stringToObjectUrl=n1,x.subText=n3,x.textNodeOffsetFromPoint=Qx,x.titleFromEditor=kS,x.toBase64URL=Qi,x.toMindmap=eg,x.toPlainText=we,x.toPlainTextKeepLength=q1,x.trimChar=Xp,x.unexclusiveBlock=MA,x.unicodeLength=g9,x.unicodeSubstr=p9,x.updateBlockSelection=Yv,x.updateOpAttributes=T3,x.updateTextBlockContent=o_,x.updateUrl=Qp;for(const n in Ve)n!=="default"&&!x.hasOwnProperty(n)&&Object.defineProperty(x,n,{enumerable:!0,get:()=>Ve[n]});Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|