Files
qhmes/deploy-qhmes/frontend/js/EoaWordTemplateList-zq-ympmU.js

94 lines
532 KiB
Java
Raw Normal View History

2026-05-15 11:34:12 +08:00
var ds=Object.defineProperty,hs=Object.defineProperties;var gs=Object.getOwnPropertyDescriptors;var Qn=Object.getOwnPropertySymbols;var Ms=Object.prototype.hasOwnProperty,Ds=Object.prototype.propertyIsEnumerable;var mt=Math.pow,En=(o,e,t)=>e in o?ds(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,K=(o,e)=>{for(var t in e||(e={}))Ms.call(e,t)&&En(o,t,e[t]);if(Qn)for(var t of Qn(e))Ds.call(e,t)&&En(o,t,e[t]);return o},oe=(o,e)=>hs(o,gs(e));var ke=(o,e,t)=>new Promise((i,n)=>{var l=a=>{try{r(t.next(a))}catch(R){n(R)}},s=a=>{try{r(t.throw(a))}catch(R){n(R)}},r=a=>a.done?i(a.value):Promise.resolve(a.value).then(l,s);r((t=t.apply(o,e)).next())});import{r as ft,f as Oe,d as At,aC as Yt,as as Ve,aF as Fe,k as ue,u as E,aG as Ti,b as Ls,ah as ye,ar as it,F as ct,au as I,av as ut,aD as Pt,aB as bn,A as Ut,G as Rt,at as Gi,n as Ps,v as Os,q as vi,ag as Fs}from"./vue-vendor-C7Zq48Yl.js";import"./index-BgJbdjPf.js";import{B as Xi}from"./index-Du0A3ksf.js";import{useListPage as Ns}from"./useListPage-BWia52we.js";import Ss from"./EoaWordTemplateModal--cQCLZ5Y.js";import{p as Ts,s as Xs,g as Cn,a as Is,b as ps,c as ms,d as fs,e as Ws,f as Ys,l as Vs,h as Zs}from"./EoaWordTemplate.api-BKHSuMV4.js";import{b as ji,d as Di,ak as Us,bk as Qs,al as ui,f as xn,ap as Es,u as bs,bQ as Cs}from"./index-BI6CMai0.js";import{al as xs}from"./antd-vue-vendor-BPnV8VqP.js";import{u as gn,B as Mn,a as Ji}from"./index-CjmLh_1m.js";import"./index-Di-j2gt4.js";import{B as Ci}from"./BasicForm-BJnSRkIE.js";import{u as xi}from"./useForm-BZtHZyx2.js";import{J as Ks}from"./componentMap-BBZeqR-K.js";import ws from"./BasicTable-DfLkrEeh.js";import"./BasicModal-0sAdFEk_.js";import"./ModalHeader-keHdAHWH.js";import"./useTimeout-DDl4l82I.js";import"./vxe-table-vendor-B88kchpX.js";import"./index-DeEq83Ov.js";import"./useWindowSizeFn-PRZSD86C.js";import"./index-pxs5MULf.js";import"./index-BgYCgfME.js";import"./index-f8O7TghW.js";import"./useIntersectionObserver-BMxdTqP3.js";import"./useMethods-DVip17X8.js";import"./useFormItem-BdW6EoZe.js";import"./download-UE0L9Rfp.js";import"./base64Conver-24EVOS6V.js";import"./index-CIBZG4nR.js";import"./index-BhQEwnQQ.js";import"./useCountdown-DqnNWBp6.js";import"./useFormItemSingle-BbRhswfn.js";import"./JSelectUser-B71zikzw.js";import"./props-DAezUTeZ.js";import"./JSelectBiz-CnEaVMUF.js";import"./JAddInput-D6qcyZjQ.js";import"./areaDataUtil-CbYCy3Ig.js";import"./index-CNkz_PUv.js";import"./index-CUdllngZ.js";import"./bem-EhXRi4nW.js";import"./props-D4vdsy3J.js";import"./useContextMenu-Cwx1lIOK.js";import"./depart.api-DeMNV8zW.js";import"./TreeIcon-DE4jdeZV.js";import"./JSelectDept-DRDVeruW.js";import"./JPopup-Bva6u6tk.js";import"./usePopBiz-CG0vVpgI.js";import"./index-Dg4HCEvo.js";import"./JEllipsis-DqRFTSm0.js";import"./JUpload-Cz9HN61B.js";import"./index-MGIrEF-A.js";import"./index-MREkPhsT.js";import"./JAreaLinkage-BeRUFHSB.js";import"./JCodeEditor-CLVZA7Uj.js";import"./htmlmixed-NhwyF9-q.js";import"./vue-CgbRSACy.js";/* empty css */import"./EasyCronInput-7xfJ3nBh.js";import"./injectionKey-DPVn4AgL.js";(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.id="canvas-editor-style",o.appendChild(document.createTextNode('.ce-select-control-popup{max-width:160px;min-width:69px;max-height:225px;position:absolute;z-index:1;border:1px solid #e4e7ed;border-radius:4px;background-color:#fff;box-shadow:0 2px 12px #0000001a;box-sizing:border-box;margin:5px 0;overflow-y:auto}.ce-select-control-popup ul{list-style:none;padding:3px 0;margin:0;box-sizing:border-box}.ce-select-control-popup ul li{font-size:13px;padding:0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#666;height:36px;line-height:36px;box-sizing:border-box;cursor:pointer}.ce-select-control-popup ul li:hover{background-color:#eef2fd}.ce-select-control-popup ul li.active{color:var(--COLOR-HOVER, #5175f4);font-weight:700}.ce-date-container{display:none;width:300px;overflow:hidden;left:0;right:0;position:absolute;z-index:1;color:#606266;background:#ffffff;border-radius
`,Dn=" ",wn=" ",Hs=["·","",":","",",","",".","",";","","?","","!",""],io={[Gt.HALF]:1/2,[Gt.ONE_THIRD]:1/3,[Gt.QUARTER]:1/4},Gs={ENGLISH:"A-Za-z",SPANISH:"A-Za-zÁÉÍÓÚáéíóúÑñÜü",FRENCH:"A-Za-zÀÂÇàâçÉéÈèÊêËëÎîÏïÔôÙùÛûŸÿ",GERMAN:"A-Za-zÄäÖöÜüß",RUSSIAN:"А-Яа-яЁё",PORTUGUESE:"A-Za-zÁÉÍÓÚáéíóúÃÕãõÇç",ITALIAN:"A-Za-zÀàÈèÉéÌìÍíÎîÓóÒòÙù",DUTCH:"A-Za-zÀàÁáÂâÄäÈèÉéÊêËëÌìÍíÎîÏïÓóÒòÔôÖöÙùÛûÜü",SWEDISH:"A-Za-zÅåÄäÖö",GREEK:"ΑαΒβΓγΔδΕεΖζΗηΘθΙιΚκΛλΜμΝνΞξΟοΠπΡρΣσςΤτΥυΦφΧχΨψΩω"},vs="";var ge;(function(o){o.LEFT="left",o.CENTER="center",o.RIGHT="right",o.ALIGNMENT="alignment",o.JUSTIFY="justify"})(ge||(ge={}));const Ai=/[0-9.]/,Js=/[\uD800-\uDBFF][\uDC00-\uDFFF]/,As=/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF
]`);function no(o,e){let t;return function(...i){t&&window.clearTimeout(t),t=window.setTimeout(()=>{o.apply(this,i)},e)}}function ks(o,e){let t=0,i;return function(...n){const l=Date.now();l-t>=e?(window.clearTimeout(i),o.apply(this,n),t=l):(window.clearTimeout(i),i=window.setTimeout(()=>{o.apply(this,n),t=l},e))}}function $i(o,e){if(!o||typeof o!="object")return o;let t={};return Array.isArray(o)?t=o.map(i=>$i(i,e)):Object.keys(o).forEach(i=>{if(!e.includes(i))return t[i]=$i(o[i],e)}),t}function Se(o){if(!o||typeof o!="object")return o;let e={};return Array.isArray(o)?e=o.map(t=>Se(t)):Object.keys(o).forEach(t=>e[t]=Se(o[t])),e}function Bi(o){return o&&o.nodeType===1&&o.tagName.toLowerCase()==="body"}function pi(o,e,t){if(o&&!Bi(o))for(o=t?o:o.parentNode;o;){if(!e||e(o)||Bi(o))return e&&!e(o)&&Bi(o)?null:o;o=o.parentNode}return null}function Pe(){function o(){return((1+Math.random())*65536|0).toString(16).substring(1)}return o()+o()+"-"+o()+"-"+o()+"-"+o()+"-"+o()+o()+o()}function Ft(o){const e=[];if(Intl.Segmenter){const i=new Intl.Segmenter().segment(o);for(const{segment:n}of i)e.push(n)}else{const t=new Map;for(const n of o.matchAll(Bs))t.set(n.index,n[0]);let i=0;for(;i<o.length;){const n=t.get(i);n?(e.push(n),i+=n.length):(e.push(o[i]),i++)}}return e}function oo(o,e){const t=document.createElement("a");t.href=o,t.download=e,t.click()}function zs(o,e){js(3,o,e)}function js(o,e,t){let i=0,n=0;const l=function(s){i=new Date().getTime()-n<300?i+1:0,n=new Date().getTime(),i>=o-1&&(t(s),i=0)};e.addEventListener("click",l)}function mi(o){return Object.prototype.toString.call(o)==="[object Object]"}function yn(o){return Array.isArray(o)}function so(o,e){if(mi(o)&&mi(e)){const t=e;for(const[i,n]of Object.entries(o))t[i]?t[i]=so(n,t[i]):t[i]=n}else yn(o)&&yn(e)&&e.push(...o);return e}function fi(o){setTimeout(()=>{o()},0)}function Hn(o){const e=["","","","","","","","","",""],t=["","","","","","","","","亿","","","","","","","","亿"];if(!o||isNaN(o))return"";const i=o.toString().split("");let n="";for(let l=0;l<i.length;l++){const s=i.length-1-l;n=`${t[l]}${n}`,n=`${e[Number(i[s])]}${n}`}return n=n.replace(/(||)/g,"").replace(/十零/g,""),n=n.replace(/+/g,""),n=n.replace(/零亿/g,"亿").replace(/零万/g,""),n=n.replace(/亿万/g,"亿"),n=n.replace(/+$/,""),n=n.replace(/^一十/g,""),n}function di(o,e,t){for(let i=0;i<o.length;i++){const n=o[i],l=e[n];l!==void 0?t[n]=l:delete t[n]}}function dt(o,e){const t={};for(const i in o)e.includes(i)&&(t[i]=o[i]);return t}function Et(o,e){const t={};for(const i in o)e.includes(i)||(t[i]=o[i]);return t}function $s(o){const t=new TextEncoder().encode(o),i=Array.from(t,l=>String.fromCharCode(l));return window.btoa(i.join(""))}function qs(o){let e=o.parentElement;for(;e;){const i=window.getComputedStyle(e).getPropertyValue("overflow-y");if(e.scrollHeight>e.clientHeight&&(i==="auto"||i==="scroll"))return e;e=e.parentElement}return document.documentElement}function el(o,e){return o.length!==e.length?!1:!o.some(t=>!e.includes(t))}function tl(o,e){if(!mi(o)||!mi(e))return!1;const t=Object.keys(o),i=Object.keys(e);return t.length!==i.length?!1:!t.some(n=>e[n]!==o[n])}function il(o,e){const t=o.x,i=o.x+o.width,n=o.y,l=o.y+o.height,s=e.x,r=e.x+e.width,a=e.y,R=e.y+e.height;return!(t>r||i<s||n>R||l<a)}const nl=12,ol={width:1,color:"#000000",dragWidth:2,dragColor:"#0000FF"},$t="editor-component",ee="ce",Pn=`${ee}-clipboard`;var xe;(function(o){o.UP="top",o.DOWN="down",o.LEFT="left",o.RIGHT="right"})(xe||(xe={}));var S;(function(o){o.TEXT="text",o.IMAGE="image",o.TABLE="table",o.HYPERLINK="hyperlink",o.SUPERSCRIPT="superscript",o.SUBSCRIPT="subscript",o.SEPARATOR="separator",o.PAGE_BREAK="pageBreak",o.CONTROL="control",o.CHECKBOX="checkbox",o.RADIO="radio",o.LATEX="latex",o.TAB="tab",o.DATE="date",o.BLOCK="block",o.TITLE="title",o.LIST="list"})(S||(S={}));const bt=["bold","color","highlight","font","size","italic","underline","strikeout","textDecoration"],vt=["rowFlex","rowMargin"],sl=["ty
<rect width="${e}" height="${t}" fill="url(#mosaic)" />
<defs>
<pattern id="mosaic" x="${n}" y="${l}" width="16" height="16" patternUnits="userSpaceOnUse">
<rect width="8" height="8" fill="#cccccc" />
<rect width="8" height="8" fill="#cccccc" transform="translate(8, 8)" />
</pattern>
</defs>
</svg>`,r=new Image;return r.src=`data:image/svg+xml;base64,${$s(s)}`,r}render(e,t,i,n){const{scale:l}=this.options,s=t.width*l,r=t.height*l;if(this.imageCache.has(t.id)){const a=this.imageCache.get(t.id);e.drawImage(a,i,n,s,r)}else{const a=new Promise((R,u)=>{const c=new Image;c.setAttribute("crossOrigin","Anonymous"),c.src=t.value,c.onload=()=>{this.imageCache.set(t.id,c),R(t),t.imgDisplay===ne.FLOAT_BOTTOM?this.draw.render({isCompute:!1,isSetCursor:!1,isSubmitHistory:!1}):e.drawImage(c,i,n,s,r)},c.onerror=d=>{const h=this.getFallbackImage(s,r);h.onload=()=>{e.drawImage(h,i,n,s,r),this.imageCache.set(t.id,h)},u(d)}});this.addImageObserver(a)}}}const Oi=82;function _t(o){return en[o]==null&&dl(o),en[o]}function dl(o){const e=hl[o];if(e==null)return;const t=e.substring(3,5),i=1*t.charCodeAt(0)-Oi,n=1*t.charCodeAt(1)-Oi,l=e.substring(5),s=[[]];let r=1/0,a=-1/0,R=1/0,u=-1/0,c=0;for(;c<l.length;){const d=l.substring(c,c+2);if(d==" R")s.push([]);else{const h=d.charCodeAt(0)-Oi-i,g=d.charCodeAt(1)-Oi;r=Math.min(g,r),a=Math.max(g,a),R=Math.min(h,R),u=Math.max(h,u),s[s.length-1].push([h,g])}c+=2}en[o]={w:n-i,xmin:R,xmax:u,ymin:r,ymax:a,polylines:s}}const en={},hl={1:" 9MWRMNV RRMVV RPSTS",2:" 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",3:" 11MXVNTMRMPNOPOSPURVTVVU",4:" 12MWOMOV ROMRMTNUPUSTURVOV",5:" 12MWOMOV ROMUM ROQSQ ROVUV",6:" 9MVOMOV ROMUM ROQSQ",7:" 15MXVNTMRMPNOPOSPURVTVVUVR RSRVR",8:" 9MWOMOV RUMUV ROQUQ",9:" 3PTRMRV",10:" 7NUSMSTRVPVOTOS",11:" 9MWOMOV RUMOS RQQUV",12:" 6MVOMOV ROVUV",13:" 12LXNMNV RNMRV RVMRV RVMVV",14:" 9MWOMOV ROMUV RUMUV",15:" 14MXRMPNOPOSPURVSVUUVSVPUNSMRM",16:" 10MWOMOV ROMSMUNUQSROR",17:" 17MXRMPNOPOSPURVSVUUVSVPUNSMRM RSTVW",18:" 13MWOMOV ROMSMUNUQSROR RRRUV",19:" 13MWUNSMQMONOOPPTRUSUUSVQVOU",20:" 6MWRMRV RNMVM",21:" 9MXOMOSPURVSVUUVSVM",22:" 6MWNMRV RVMRV",23:" 12LXNMPV RRMPV RRMTV RVMTV",24:" 6MWOMUV RUMOV",25:" 7MWNMRQRV RVMRQ",26:" 9MWUMOV ROMUM ROVUV",27:" 9MWRMNV RRMVV RPSTS",28:" 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",29:" 6MVOMOV ROMUM",30:" 9MWRMNV RRMVV RNVVV",31:" 12MWOMOV ROMUM ROQSQ ROVUV",32:" 9MWUMOV ROMUM ROVUV",33:" 9MWOMOV RUMUV ROQUQ",34:" 20MXRMPNOPOSPURVSVUUVSVPUNSMRM RQQTR RTQQR",35:" 3PTRMRV",36:" 9MWOMOV RUMOS RQQUV",37:" 6MWRMNV RRMVV",38:" 12LXNMNV RNMRV RVMRV RVMVV",39:" 9MWOMOV ROMUV RUMUV",40:" 12MWOMUM RPQTR RTQPR ROVUV",41:" 14MXRMPNOPOSPURVSVUUVSVPUNSMRM",42:" 9MWOMOV RUMUV ROMUM",43:" 10MWOMOV ROMSMUNUQSROR",44:" 10MWOMRQOV ROMUM ROVUV",45:" 6MWRMRV RNMVM",46:" 15MWNONNOMPMQNRPRV RVOVNUMTMSNRP",47:" 13LXRMRV RPONPNSPTTTVSVPTOPO",48:" 6MWOMUV RUMOV",49:" 12LXRMRV RNOOPOSQTSTUSUPVO",50:" 13MXOVQVOROPPNRMSMUNVPVRTVVV",200:" 12MWRMPNOPOSPURVTUUSUPTNRM",201:" 4MWPORMRV",202:" 9MWONQMSMUNUPTROVUV",203:" 15MWONQMSMUNUPSQ RRQSQURUUSVQVOU",204:" 7MWSMSV RSMNSVS",205:" 14MWPMOQQPRPTQUSTURVQVOU RPMTM",206:" 14MWTMRMPNOPOSPURVTUUSTQRPPQOS",207:" 6MWUMQV ROMUM",208:" 19MWQMONOPQQSQUPUNSMQM RQQOROUQVSVUUURSQ",209:" 14MWUPTRRSPROPPNRMTNUPUSTURVPV",210:" 6PURURVSVSURU",211:" 7PUSVRVRUSUSWRY",212:" 12PURPRQSQSPRP RRURVSVSURU",213:" 13PURPRQSQSPRP RSVRVRUSUSWRY",214:" 12PURMRR RSMSR RRURVSVSURU",215:" 17NWPNRMSMUNUPRQRRSRSQUP RRURVSVSURU",216:" 3PTRMRQ",217:" 6NVPMPQ RTMTQ",218:" 10NVQMPNPPQQSQTPTNSMQM",219:" 16MWUNSMQMONOPQQTRUSUUSVQVOU RRLRW",220:" 3MWVLNW",221:" 7OVTLRNQPQSRUTW",222:" 7NUPLRNSPSSRUPW",223:" 3PTRLRW",224:" 3LXNRVR",225:" 6LXRNRV RNRVR",226:" 6LXNPVP RNTVT",227:" 6MWOOUU RUOOU",228:" 9MWRORU ROPUT RUPOT",229:" 6PURQRRSRSQRQ",230:" 7PUSMRORQSQSPRP",231:" 7PUSNRNRMSMSORQ",232:" 7LXSOVRSU RNRVR",233:" 12MXRLPW RULSW ROPVP ROSVS",234:" 21LXVRURTSSURVOVNUNSORRQSPSNRMPMONOPQSSUUVVV",235:" 20LXNNOQOSNV RVNUQUSVV RNNQOSOVN RNVQUSUVV",501:" 9I[RFJ[ RRFZ[ RMTWT",502:" 24G\\KFK[ RKFTFWGXHYJYLXNWOTP RKPTPWQXRYTYWXYWZT[K[",503:" 19H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZV",504:" 16G\\KFK[ RKFRFUGWIXKYNYSXVWXUZR[K[",505:" 12H[LFL[ RLFYF RLPTP RL[Y[",506:" 9HZLFL[ RLFYF RLPTP",507:" 23H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZVZS RUSZS",508:" 9G]KFK[ RYFY[ RKPYP",509:" 3NVRFR[",510:" 11JZVFVVUYTZR[P[NZMYLVLT",511:" 9G\\KFK[ RY
xmlns="http://www.w3.org/2000/svg"
width="${a}" height="${R}"
fill="none" stroke="${(t=e.FG_COLOR)!=null?t:"black"}" stroke-width="${(i=e.STROKE_W)!=null?i:1}"
stroke-linecap="round" stroke-linejoin="round"
>`;e.BG_COLOR&&(u+=`<rect x="0" y="0" width="${a}" height="${R}" fill="${e.BG_COLOR}" stroke="none"></rect>`),u+='<path d="';for(let c=0;c<this._polylines.length;c++){u+="M";for(let d=0;d<this._polylines[c].length;d++){const[h,g]=this._polylines[c][d];u+=Lt(n+h*s)+" "+Lt(l+g*r)+" "}}return u+='"/>',u+="</svg>",{svg:`data:image/svg+xml;base64,${window.btoa(u)}`,width:Math.ceil(a),height:Math.ceil(R)}}pdf(e){var t;e||(e={});const[i,n,l,s]=this.resolveScale(e),r=Lt(this._tree.bbox.w*l+i*2),a=Lt(this._tree.bbox.h*s+n*2);let R=`%PDF-1.1
%%¥±ë
1 0 obj
<< /Type /Catalog
/Pages 2 0 R
>>endobj
2 0 obj
<< /Type /Pages
/Kids [3 0 R]
/Count 1
/MediaBox [0 0 ${r} ${a}]
>>
endobj
3 0 obj
<< /Type /Page
/Parent 2 0 R
/Resources
<< /Font
<< /F1
<< /Type /Font
/Subtype /Type1
/BaseFont /Times-Roman
>>
>>
>>
/Contents [`,u="",c=4;for(let d=0;d<this._polylines.length;d++){u+=`${c} 0 obj
<< /Length 0 >>
stream
1 j 1 J ${(t=e.STROKE_W)!=null?t:1} w
`;for(let h=0;h<this._polylines[d].length;h++){const[g,M]=this._polylines[d][h];u+=`${Lt(i+g*l)} ${Lt(a-(n+M*s))} ${h?"l":"m"} `}u+=`
S
endstream
endobj
`,R+=`${c} 0 R `,c++}return R+=`]
>>
endobj
`,u+=`
trailer
<< /Root 1 0 R
/Size 0
>>startxref
%%EOF
`,R+u}boxes(e){e||(e={});const[t,i,n,l]=this.resolveScale(e),s=[];for(let r=0;r<this._tree.chld.length;r++){const{x:a,y:R,w:u,h:c}=this._tree.chld[r].bbox;s.push({x:t+a*n,y:i+R*l,w:u*n,h:c*l})}return s}box(e){e||(e={});const[t,i,n,l]=this.resolveScale(e);return{x:t+this._tree.bbox.x*n,y:i+this._tree.bbox.y*l,w:this._tree.bbox.w*n,h:this._tree.bbox.h*l}}}class uo extends ro{static convertLaTextToSVG(e){return new Fl(e).svg({SCALE_X:10,SCALE_Y:10,MARGIN_X:0,MARGIN_Y:0})}render(e,t,i,n){const{scale:l}=this.options,s=t.width*l,r=t.height*l;if(this.imageCache.has(t.value)){const a=this.imageCache.get(t.value);e.drawImage(a,i,n,s,r)}else{const a=new Promise((R,u)=>{const c=new Image;c.src=t.laTexSVG,c.onload=()=>{e.drawImage(c,i,n,s,r),this.imageCache.set(t.value,c),R(t)},c.onerror=d=>{u(d)}});this.addImageObserver(a)}}}var Tt;(function(o){o.UL="ul",o.OL="ol"})(Tt||(Tt={}));var yt;(function(o){o.DISC="disc",o.CIRCLE="circle",o.SQUARE="square",o.CHECKBOX="checkbox"})(yt||(yt={}));var Gn;(function(o){o.DECIMAL="decimal"})(Gn||(Gn={}));var rt;(function(o){o.DISC="disc",o.CIRCLE="circle",o.SQUARE="square",o.DECIMAL="decimal",o.CHECKBOX="checkbox"})(rt||(rt={}));const nn={[yt.DISC]:"",[yt.CIRCLE]:"",[yt.SQUARE]:"▫︎",[yt.CHECKBOX]:"☑️"},Nl={[Tt.OL]:"ol",[Tt.UL]:"ul"},Sl={[rt.DISC]:"disc",[rt.CIRCLE]:"circle",[rt.SQUARE]:"square",[rt.DECIMAL]:"decimal",[rt.CHECKBOX]:"checkbox"};var me;(function(o){o.FIRST="first",o.SECOND="second",o.THIRD="third",o.FOURTH="fourth",o.FIFTH="fifth",o.SIXTH="sixth"})(me||(me={}));const Tl={defaultFirstSize:26,defaultSecondSize:24,defaultThirdSize:22,defaultFourthSize:20,defaultFifthSize:18,defaultSixthSize:16},co={[me.FIRST]:"defaultFirstSize",[me.SECOND]:"defaultSecondSize",[me.THIRD]:"defaultThirdSize",[me.FOURTH]:"defaultFourthSize",[me.FIFTH]:"defaultFifthSize",[me.SIXTH]:"defaultSixthSize"},on={[me.FIRST]:1,[me.SECOND]:2,[me.THIRD]:3,[me.FOURTH]:4,[me.FIFTH]:5,[me.SIXTH]:6},Xl={H1:me.FIRST,H2:me.SECOND,H3:me.THIRD,H4:me.FOURTH,H5:me.FIFTH,H6:me.SIXTH};var Ne;(function(o){o.TEXT="text",o.SELECT="select",o.CHECKBOX="checkbox",o.RADIO="radio",o.DATE="date"})(Ne||(Ne={}));var Q;(function(o){o.PREFIX="prefix",o.POSTFIX="postfix",o.PLACEHOLDER="placeholder",o.VALUE="value",o.CHECKBOX="checkbox",o.RADIO="radio"})(Q||(Q={}));var sn;(function(o){o.ROW_START="rowStart",o.VALUE_START="valueStart"})(sn||(sn={}));var Vi;(function(o){o.CONTAIN="contain",o.COVER="cover"})(Vi||(Vi={}));var Qt;(function(o){o.REPEAT="repeat",o.NO_REPEAT="no-repeat",o.REPEAT_X="repeat-x",o.REPEAT_Y="repeat-y"})(Qt||(Qt={}));const Il={color:"#FFFFFF",image:"",size:Vi.COVER,repeat:Qt.NO_REPEAT,applyPageNumbers:[]};var Ke;(function(o){o.TOP="top",o.MIDDLE="middle",o.BOTTOM="bottom"})(Ke||(Ke={}));const pl={width:14,height:14,gap:5,lineWidth:1,fillStyle:"#5175f4",strokeStyle:"#ffffff",verticalAlign:Ke.BOTTOM},ml={placeholderColor:"#9c9b9b",bracketColor:"#000000",prefix:"{",postfix:"}",borderWidth:1,borderColor:"#000000",activeBackgroundColor:""},fl={bottom:30,maxHeightRadio:Gt.HALF,disabled:!1,editable:!0},Wl={opacity:.1,backgroundColor:"#E99D00",activeOpacity:.5,activeBackgroundColor:"#E99D00",disabled:!1},Yl={top:30,maxHeightRadio:Gt.HALF,disabled:!1,editable:!0},Vl={disabled:!0,color:"#CCCCCC",lineWidth:1.5},Zl={font:"Microsoft YaHei",fontSize:12,lineDash:[3,1]},ln={PAGE_NO:"{pageNo}",PAGE_COUNT:"{pageCount}"},Ul={bottom:60,size:12,font:"Microsoft YaHei",color:"#000000",rowFlex:ge.CENTER,format:ln.PAGE_NO,numberType:Mi.ARABIC,disabled:!1,startPageNo:1,fromPageNo:0,maxPageNo:null},Ql={data:"",color:"#DCDFE6",opacity:1,size:16,font:"Microsoft YaHei"},El={width:14,height:14,gap:5,lineWidth:1,fillStyle:"#5175f4",strokeStyle:"#000000",verticalAlign:Ke.BOTTOM},bl={lineWidth:1,strokeStyle:"#000000"},Cl={tdPadding:[0,5,5,5],defaultTrMinHeight:42,defaultColMinWidth:40},rn={data:"",color:"#AEB5C0",opacity:.3,size:200,font:"Microsoft YaHei",repeat:!1,gap:[10,10]},xl={tipDisabled:!0};var Zi;(function(o){o.PAGE="page",o.CONTINUITY="continuity"})(Zi||(Zi={}));const Kl={size:12,font:"Microsoft YaHei",color:"#000000",disabled:!0,right:
`?B:w,letterSpacing:y?L.gap:0,control:r.control,controlComponent:Q.VALUE})),Z++,s++}}}}else if(h===Ne.RADIO){if(Array.isArray(g)&&g.length){const Y=T.reduce((Z,U)=>Z.concat(U.value.split("").map(m=>oe(K({},U),{value:m}))),[]);let V=0;for(let Z=0;Z<g.length;Z++){const U=g[Z];o.splice(s,0,oe(K(K({},O),N),{controlId:P,value:"",type:r.type,control:r.control,controlComponent:Q.RADIO,radio:{code:U.code,value:d===U.code}})),s++;const m=Ft(U.value);for(let X=0;X<m.length;X++){const x=m[X],w=X===m.length-1;o.splice(s,0,oe(K(K(K({},O),N),Y[V]),{controlId:P,value:x===`
`?B:x,letterSpacing:w?D.gap:0,control:r.control,controlComponent:Q.VALUE})),V++,s++}}}}else{if((!u||!u.length)&&Array.isArray(g)&&g.length){const Y=g.find(V=>V.code===d);Y&&(T=[{value:Y.value}])}ot(T,oe(K({},e),{isHandleFirstElement:!1,isForceCompensation:!1}));for(let Y=0;Y<T.length;Y++){const V=T[Y],Z=V.value;o.splice(s,0,oe(K(K(K({},O),N),V),{controlId:P,value:Z===`
`?B:Z,type:V.type||S.TEXT,control:r.control,controlComponent:Q.VALUE})),s++}}}else if(c){const T=oe(K({},N),{color:n.control.placeholderColor}),Y=Ft(c);for(let V=0;V<Y.length;V++){const Z=Y[V];o.splice(s,0,oe(K(K({},O),T),{controlId:P,value:Z===`
`?B:Z,type:r.type,control:r.control,controlComponent:Q.PLACEHOLDER})),s++}}const f=Ft(R||M.postfix);for(let T=0;T<f.length;T++){const Y=f[T];o.splice(s,0,oe(K(K({},O),p),{controlId:P,value:Y,type:r.type,control:r.control,controlComponent:Q.POSTFIX})),s++}s--}else if((!r.type||gt.includes(r.type))&&r.value.length>1){o.splice(s,1);const a=Ft(r.value);for(let R=0;R<a.length;R++)o.splice(s+R,0,oe(K({},r),{value:a[R]}));r=o[s]}if((r.value===`
`||r.value==`\r
`)&&(r.value=B),(r.type===S.IMAGE||r.type===S.BLOCK)&&(r.id=Pe()),r.type===S.LATEX){const{svg:a,width:R,height:u}=uo.convertLaTextToSVG(r.value);r.width=r.width||R,r.height=r.height||u,r.laTexSVG=a,r.id=Pe()}s++}}function yl(o,e){const t=Object.keys(o),i=Object.keys(e);if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++){const l=t[n];if(l!=="value"&&!(l==="groupIds"&&Array.isArray(o[l])&&Array.isArray(e[l])&&el(o[l],e[l]))&&o[l]!==e[l])return!1}return!0}function jt(o,e={}){const{extraPickAttrs:t}=e,i=ll;t&&i.push(...t);const n={value:o.value===B?`
`:o.value};return i.forEach(l=>{const s=o[l];s!==void 0&&(n[l]=s)}),n}function Te(o,e={}){const{extraPickAttrs:t}=e,i=Se(o),n=[];let l=0;for(;l<i.length;){let s=i[l];if(l===0&&s.value===B&&!s.listId&&(!s.type||s.type===S.TEXT)){l++;continue}if(s.titleId&&s.level){const a=s.titleId;if(a){const R=s.level,u={type:S.TITLE,title:s.title,value:"",level:R},c=[];for(;l<i.length;){const d=i[l];if(a!==d.titleId){l--;break}delete d.level,delete d.title,c.push(d),l++}u.valueList=Te(c,e),s=u}}else if(s.listId&&s.listType){const a=s.listId;if(a){const R=s.listType,u=s.listStyle,c={type:S.LIST,value:"",listId:a,listType:R,listStyle:u},d=[];for(;l<i.length;){const h=i[l];if(a!==h.listId){l--;break}delete h.listType,delete h.listStyle,d.push(h),l++}c.valueList=Te(d,e),s=c}}else if(s.type===S.TABLE){if(s.pagingId){let a=l+1,R=0;for(;a<i.length;){const u=i[a];if(u.pagingId===s.pagingId)s.height+=u.height,s.trList.push(...u.trList),a++,R++;else break}l+=R}if(s.trList)for(let a=0;a<s.trList.length;a++){const R=s.trList[a];delete R.id;for(let u=0;u<R.tdList.length;u++){const c=R.tdList[u],d={colspan:c.colspan,rowspan:c.rowspan,value:Te(c.value,e)};rl.forEach(h=>{const g=c[h];g!==void 0&&(d[h]=g)}),R.tdList[u]=d}}}else if(s.type===S.HYPERLINK){const a=s.hyperlinkId;if(a){const R={type:S.HYPERLINK,value:"",url:s.url},u=[];for(;l<i.length;){const c=i[l];if(a!==c.hyperlinkId){l--;break}delete c.type,delete c.url,u.push(c),l++}R.valueList=Te(u,e),s=R}}else if(s.type===S.DATE){const a=s.dateId;if(a){const R={type:S.DATE,value:"",dateFormat:s.dateFormat},u=[];for(;l<i.length;){const c=i[l];if(a!==c.dateId){l--;break}delete c.type,delete c.dateFormat,u.push(c),l++}R.valueList=Te(u,e),s=R}}else if(s.controlId){const a=s.controlId;if(a){const R=dt(s,Ct),u=K(K({},s.control),R),c=oe(K({},dt(s,vt)),{type:S.CONTROL,value:"",control:u,controlId:a}),d=[];for(;l<i.length;){const h=i[l];if(a!==h.controlId){l--;break}h.controlComponent===Q.VALUE&&(delete h.control,delete h.controlId,d.push(h)),l++}c.control.value=Te(d,e),s=jt(c,{extraPickAttrs:t})}}const r=jt(s,{extraPickAttrs:t});if(!s.type||s.type===S.TEXT||s.type===S.SUBSCRIPT||s.type===S.SUPERSCRIPT)for(;l<i.length;){const a=i[l+1];if(l++,a&&yl(r,jt(a,{extraPickAttrs:t}))){const R=a.value===B?`
`:a.value;r.value+=R}else break}else l++;n.push(r)}return n}function Hl(o){switch(window.getComputedStyle(o).textAlign){case"left":case"start":return ge.LEFT;case"center":return ge.CENTER;case"right":case"end":return ge.RIGHT;case"justify":return ge.ALIGNMENT;case"justify-all":return ge.JUSTIFY;default:return ge.LEFT}}function ho(o){return o===ge.ALIGNMENT?"justify":o}function Gl(o){switch(o){case ge.LEFT:return"flex-start";case ge.CENTER:return"center";case ge.RIGHT:return"flex-end";case ge.ALIGNMENT:case ge.JUSTIFY:return"space-between";default:return"flex-start"}}function go(o){return!o.type||gt.includes(o.type)}function qt(o,e){const t=o[e];if(!t)return null;const i=o[e+1];return!t.listId&&t.value===B&&i&&i.value!==B?i:t}function ve(o,e,t,i){var n,l,s;let r=qt(o,t);if(!r)return;const{isBreakWhenWrap:a=!1,editorOptions:R}=i||{},{mode:u}=R||{};u!==Le.DESIGN&&((n=r.title)!=null&&n.disabled)&&(r=Et(r,On));let c=!1;for(let d=0;d<e.length;d++){const h=e[d];if(a&&!r.listId&&Ln.test(h.value)&&(c=!0),c||!r.listId&&h.type===S.LIST){const M=[...Wi,...vt];di(M,r,h),(l=h.valueList)==null||l.forEach(L=>{di(M,r,L)});continue}(s=h.valueList)!=null&&s.length&&ve(o,h.valueList,t,i);const g=[...lo];ei(h)||g.push(...vt),di(g,r,h)}}function vl(o,e){let t="span";o.type===S.SUPERSCRIPT?t="sup":o.type===S.SUBSCRIPT&&(t="sub");const i=document.createElement(t);return i.style.fontFamily=o.font||e.defaultFont,o.rowFlex&&(i.style.textAlign=ho(o.rowFlex)),o.color&&(i.style.color=o.color),o.bold&&(i.style.fontWeight="600"),o.italic&&(i.style.fontStyle="italic"),i.style.fontSize=`${o.size||e.defaultSize}px`,o.highlight&&(i.style.backgroundColor=o.highlight),o.underline&&(i.style.textDecoration="underline"),o.strikeout&&(i.style.textDecoration+=" line-through"),i.innerText=o.value.replace(new RegExp(`${B}`,"g"),`
`),i}function Mo(o){let e=0;const t=new Map;for(let i=0;i<o.length;i++){const n=o[i];if(i===0){if(n.checkbox)continue;n.value=n.value.replace(Ln,"")}if(n.listWrap){const l=t.get(e)||[];l.push(n),t.set(e,l)}else{const l=n.value.split(`
`);for(let s=0;s<l.length;s++){s>0&&(e+=1);const r=l[s],a=t.get(e)||[];a.push(oe(K({},n),{value:r})),t.set(e,a)}}}return t}function Jl(o){var e;const t=[];if(!o.length)return t;let i=((e=o[0])==null?void 0:e.rowFlex)||null;t.push({rowFlex:i,data:[o[0]]});for(let n=1;n<o.length;n++){const l=o[n],s=l.rowFlex||null;i===s&&!ei(l)&&!ei(o[n-1])?t[t.length-1].data.push(l):(t.push({rowFlex:s,data:[l]}),i=s)}for(let n=0;n<t.length;n++){const l=t[n];l.data=Te(l.data)}return t}function hi(o,e){const t=Fn(e);function i(s){var r,a,R,u,c,d,h,g,M;const L=document.createElement("div");for(let D=0;D<s.length;D++){const P=s[D];if(P.type===S.TABLE){const O=document.createElement("table");O.setAttribute("cellSpacing","0"),O.setAttribute("cellpadding","0"),O.setAttribute("border","0");const N="1px solid #000000";!P.borderType||P.borderType===ht.ALL?(O.style.borderTop=N,O.style.borderLeft=N):P.borderType===ht.EXTERNAL&&(O.style.border=N),O.style.width=`${P.width}px`;const p=document.createElement("colgroup");for(let f=0;f<P.colgroup.length;f++){const T=P.colgroup[f],Y=document.createElement("col");Y.setAttribute("width",`${T.width}`),p.append(Y)}O.append(p);const W=P.trList;for(let f=0;f<W.length;f++){const T=document.createElement("tr"),Y=W[f];T.style.height=`${Y.height}px`;for(let V=0;V<Y.tdList.length;V++){const Z=document.createElement("td");(!P.borderType||P.borderType===ht.ALL)&&(Z.style.borderBottom=Z.style.borderRight="1px solid");const U=Y.tdList[V];Z.colSpan=U.colspan,Z.rowSpan=U.rowspan,Z.style.verticalAlign=U.verticalAlign||"top",(r=U.borderTypes)!=null&&r.includes(st.TOP)&&(Z.style.borderTop=N),(a=U.borderTypes)!=null&&a.includes(st.RIGHT)&&(Z.style.borderRight=N),(R=U.borderTypes)!=null&&R.includes(st.BOTTOM)&&(Z.style.borderBottom=N),(u=U.borderTypes)!=null&&u.includes(st.LEFT)&&(Z.style.borderLeft=N);const m=hi(U.value,e);Z.innerHTML=m.innerHTML,U.backgroundColor&&(Z.style.backgroundColor=U.backgroundColor),T.append(Z)}O.append(T)}L.append(O)}else if(P.type===S.HYPERLINK){const O=document.createElement("a");O.innerText=P.valueList.map(N=>N.value).join(""),P.url&&(O.href=P.url),L.append(O)}else if(P.type===S.TITLE){const O=document.createElement(`h${on[P.level]}`),N=i(P.valueList);O.innerHTML=N.innerHTML,L.append(O)}else if(P.type===S.LIST){const O=document.createElement(Nl[P.listType]);P.listStyle&&(O.style.listStyleType=Sl[P.listStyle]);const N=Te(P.valueList);Mo(N).forEach(W=>{const f=document.createElement("li"),T=i(W);f.innerHTML=T.innerHTML,O.append(f)}),L.append(O)}else if(P.type===S.IMAGE){const O=document.createElement("img");P.value&&(O.src=P.value,O.width=P.width,O.height=P.height),L.append(O)}else if(P.type===S.SEPARATOR){const O=document.createElement("hr");L.append(O)}else if(P.type===S.CHECKBOX){const O=document.createElement("input");O.type="checkbox",(c=P.checkbox)!=null&&c.value&&O.setAttribute("checked","true"),L.append(O)}else if(P.type===S.RADIO){const O=document.createElement("input");O.type="radio",(d=P.radio)!=null&&d.value&&O.setAttribute("checked","true"),L.append(O)}else if(P.type===S.TAB){const O=document.createElement("span");O.innerHTML=`${wn}${wn}`,L.append(O)}else if(P.type===S.CONTROL){const O=document.createElement("span"),N=i(((h=P.control)==null?void 0:h.value)||[]);O.innerHTML=N.innerHTML,L.append(O)}else if(!P.type||P.type===S.LATEX||gt.includes(P.type)){let O="";if(P.type===S.DATE?O=((g=P.valueList)==null?void 0:g.map(p=>p.value).join(""))||"":O=P.value,!O)continue;const N=vl(P,t);((M=s[D-1])==null?void 0:M.type)===S.TITLE&&(O=O.replace(/^\n/,"")),N.innerText=O.replace(new RegExp(`${B}`,"g"),`
`),L.append(N)}}return L}const n=document.createElement("div"),l=Jl(o);for(let s=0;s<l.length;s++){const r=l[s],a=!r.rowFlex||r.rowFlex===ge.LEFT,R=document.createElement("div");if(!a){const u=r.data[0];ei(u)?(R.style.display="flex",R.style.justifyContent=Gl(u.rowFlex)):R.style.textAlign=ho(r.rowFlex)}R.innerHTML=i(r.data).innerHTML,a?R.childNodes.forEach(u=>{n.append(u.cloneNode(!0))}):n.append(R)}return n}function Al(o){if(!o||o.nodeType!==3)return null;const e=o.parentNode,t=e.nodeName==="FONT"?e.parentNode:e,i=Hl(t),n=o.textContent,l=window.getComputedStyle(t);if(!n||t.nodeName==="STYLE")return null;const s={value:n,color:l.color,bold:Number(l.fontWeight)>500,italic:l.fontStyle.includes("italic"),size:Math.floor(parseFloat(l.fontSize))};return t.nodeName==="SUB"||l.verticalAlign==="sub"?s.type=S.SUBSCRIPT:(t.nodeName==="SUP"||l.verticalAlign==="super")&&(s.type=S.SUPERSCRIPT),i!==ge.LEFT&&(s.rowFlex=i),l.backgroundColor!=="rgba(0, 0, 0, 0)"&&(s.highlight=l.backgroundColor),l.textDecorationLine.includes("underline")&&(s.underline=!0),l.textDecorationLine.includes("line-through")&&(s.strikeout=!0),s}function gi(o,e){const t=[];function i(s){if(s.nodeType===3){const r=Al(s);r&&t.push(r)}else if(s.nodeType===1){const r=s.childNodes;for(let a=0;a<r.length;a++){const R=r[a];if(R.nodeName==="BR")t.push({value:`
`});else if(R.nodeName==="A"){const u=R,c=u.innerText;c&&t.push({type:S.HYPERLINK,value:"",valueList:[{value:c}],url:u.href})}else if(/H[1-6]/.test(R.nodeName)){const c=gi(Bl(R,"div").outerHTML,e);t.push({value:"",type:S.TITLE,level:Xl[R.nodeName],valueList:c}),R.nextSibling&&!ul.includes(R.nextSibling.nodeName)&&t.push({value:`
`})}else if(R.nodeName==="UL"||R.nodeName==="OL"){const u=R,c={value:"",type:S.LIST,valueList:[]};R.nodeName==="OL"?c.listType=Tt.OL:(c.listType=Tt.UL,c.listStyle=u.style.listStyleType),u.querySelectorAll("li").forEach(d=>{const h=gi(d.innerHTML,e);h.forEach(g=>{g.value===`
`&&(g.listWrap=!0)}),h.unshift({value:`
`}),c.valueList.push(...h)}),t.push(c)}else if(R.nodeName==="HR")t.push({value:`
`,type:S.SEPARATOR});else if(R.nodeName==="IMG"){const{src:u,width:c,height:d}=R;u&&c&&d&&t.push({width:c,height:d,value:u,type:S.IMAGE})}else if(R.nodeName==="TABLE"){const u=R,c={type:S.TABLE,value:`
`,colgroup:[],trList:[]};if(u.querySelectorAll("tr").forEach(d=>{const h=window.getComputedStyle(d).height.replace("px",""),g={height:Number(h),tdList:[]};d.querySelectorAll("th,td").forEach(M=>{const L=M,D=gi(L.innerHTML,e),P={colspan:L.colSpan,rowspan:L.rowSpan,value:D};L.style.backgroundColor&&(P.backgroundColor=L.style.backgroundColor),g.tdList.push(P)}),c.trList.push(g)}),c.trList.length){const d=c.trList[0].tdList.reduce((g,M)=>g+M.colspan,0),h=Math.ceil(e.innerWidth/d);for(let g=0;g<d;g++)c.colgroup.push({width:h});t.push(c)}}else R.nodeName==="INPUT"&&R.type===Q.CHECKBOX?t.push({type:S.CHECKBOX,value:"",checkbox:{value:R.checked}}):R.nodeName==="INPUT"&&R.type===Q.RADIO?t.push({type:S.RADIO,value:"",radio:{value:R.checked}}):(i(R),R.nodeType===1&&a!==r.length-1&&window.getComputedStyle(R).display==="block"&&t.push({value:`
`}))}}}const n=document.createElement("div");n.innerHTML=o,document.body.appendChild(n);const l=[];return n.childNodes.forEach(s=>{var r;s.nodeType!==1&&!((r=s.textContent)!=null&&r.trim())&&l.push(s)}),l.forEach(s=>s.remove()),i(n),n.remove(),t}function Fi(o){function e(t){var i,n,l,s,r;let a="";for(let R=0;R<t.length;R++){const u=t[R];if(u.type===S.TABLE){a+=`
`;const c=u.trList;for(let d=0;d<c.length;d++){const h=c[d];for(let g=0;g<h.tdList.length;g++){const M=h.tdList[g],L=e(Te(M.value)),D=g===0,P=h.tdList.length-1===g;a+=`${D?"":" "}${L}${P?`
`:""}`}}}else if(u.type===S.TAB)a+=" ";else if(u.type===S.HYPERLINK)a+=u.valueList.map(c=>c.value).join("");else if(u.type===S.TITLE)a+=`${e(Te(u.valueList))}`;else if(u.type===S.LIST){const c=Te(u.valueList),d=Mo(c);let h="";u.listType===Tt.UL&&(h=nn[u.listStyle]),d.forEach((g,M)=>{const L=d.size-1===M;a+=`
${h||`${M+1}.`}${e(g)}${L?`
`:""}`})}else if(u.type===S.CHECKBOX)a+=(i=u.checkbox)!=null&&i.value?"":"";else if(u.type===S.RADIO)a+=(n=u.radio)!=null&&n.value?"":"";else if(!u.type||u.type===S.LATEX||gt.includes(u.type)){let c="";u.type===S.CONTROL?c=((s=(l=u.control.value)==null?void 0:l[0])==null?void 0:s.value)||"":u.type===S.DATE?c=((r=u.valueList)==null?void 0:r.map(d=>d.value).join(""))||"":c=u.value,a+=c.replace(new RegExp(`${B}`,"g"),`
`)}}return a}return e(Te(o))}function _i(o){return $i(o,["metrics","style"])}function ei(o){return!!(o!=null&&o.type)&&(Rl.includes(o.type)||o.imgDisplay===ne.INLINE)}function Bl(o,e){const t=document.createElement(e);for(let i=0;i<o.attributes.length;i++){const n=o.attributes[i];t.setAttribute(n.name,n.value)}return t.innerHTML=o.innerHTML,t}function Do(o){const e=[];for(let t=0;t<o.length;t++){const i=o[t];i.imgDisplay===ne.SURROUND&&e.push(i)}return e}function _l(o,e){var t;for(let i=o.length-1;i>=0;i--)((t=o[i].imgFloatPosition)==null?void 0:t.pageNo)===e&&o.splice(i,1)}function kl(o){localStorage.setItem(Pn,JSON.stringify({text:o.text,elementList:o.elementList}))}function Lo(){const o=localStorage.getItem(Pn);return o?JSON.parse(o):null}function Po(){localStorage.removeItem(Pn)}function zl(o,e,t){if(!o&&!e&&!t.length)return;const i=new Blob([o],{type:"text/plain"}),n=new Blob([e],{type:"text/html"});if(window.ClipboardItem){const l=new ClipboardItem({[i.type]:i,[n.type]:n});window.navigator.clipboard.write([l])}else{const l=document.createElement("div");l.setAttribute("contenteditable","true"),l.innerHTML=e,document.body.append(l);const s=window.getSelection(),r=document.createRange(),a=document.createElement("span");a.innerText=`
`,l.append(a),r.selectNodeContents(l),s==null||s.removeAllRanges(),s==null||s.addRange(r),document.execCommand("copy"),l.remove()}kl({text:o,elementList:t})}function Oo(o,e){const t=hi(o,e);document.body.append(t);const i=t.innerText;t.remove();const n=t.innerHTML;!i&&!n&&!o.length||zl(i,n,Te(o))}function jl(o){let e=!1;for(let t=0;t<o.items.length;t++)if(o.items[t].kind==="file"){e=!0;break}return e}function Nn(o,e){const t=o.getDraw();if(t.isReadonly()||t.isDisabled())return;const i=t.getRange(),{startIndex:n}=i.getRange(),l=t.getElementList();if(~n&&!i.getIsSelectAll()){const s=l[n];if(s!=null&&s.titleId||s!=null&&s.listId){let r=0;for(;r<e.length;){const a=e[r];if(s.titleId&&/^\n/.test(a.value))break;if(cl.includes(a.type)){if(e.splice(r,1),a.valueList)for(let R=0;R<a.valueList.length;R++){const u=a.valueList[R];u.value===B||u.value===`
`||(e.splice(r,0,u),r++)}r--}r++}}ve(l,e,n,{isBreakWhenWrap:!0,editorOptions:t.getOptions()})}t.insertElementList(e)}function Fo(o,e){const t=o.getDraw();if(t.isReadonly()||t.isDisabled())return;const i=gi(e,{innerWidth:t.getOriginalInnerWidth()});Nn(o,i)}function Sn(o,e){const t=o.getDraw();if(t.isReadonly()||t.isDisabled())return;const i=t.getRange(),{startIndex:n}=i.getRange(),l=t.getElementList(),s=new FileReader;s.readAsDataURL(e),s.onload=()=>{const r=new Image,a=s.result;r.src=a,r.onload=()=>{const R={value:a,type:S.IMAGE,width:r.width,height:r.height};~n&&ve(l,[R],n,{editorOptions:t.getOptions()}),t.insertElementList([R])}}}function $l(o,e){const t=o.getDraw();if(t.isReadonly()||t.isDisabled())return;const i=e.clipboardData;if(!i)return;const{paste:n}=t.getOverride();if(n){const s=n(e);if((s==null?void 0:s.preventDefault)!==!1)return}if(!jl(i)){const s=i.getData("text"),r=Lo();if(s===(r==null?void 0:r.text)){Nn(o,r.elementList);return}}Po();let l=!1;for(let s=0;s<i.items.length;s++)if(i.items[s].type==="text/html"){l=!0;break}for(let s=0;s<i.items.length;s++){const r=i.items[s];if(r.kind==="string"){if(r.type==="text/plain"&&!l){r.getAsString(a=>{o.input(a)});break}if(r.type==="text/html"&&l){r.getAsString(a=>{Fo(o,a)});break}}else if(r.kind==="file"&&r.type.includes("image")){const a=r.getAsFile();a&&Sn(o,a)}}}function ql(o,e){return ke(this,null,function*(){const t=o.getDraw();if(t.isReadonly()||t.isDisabled())return;const{paste:i}=t.getOverride();if(i){const s=i();if((s==null?void 0:s.preventDefault)!==!1)return}const n=yield navigator.clipboard.readText(),l=Lo();if(n===(l==null?void 0:l.text)){Nn(o,l.elementList);return}if(Po(),e!=null&&e.isPlainText)n&&o.input(n);else{const s=yield navigator.clipboard.read();let r=!1;for(const a of s)if(a.types.includes("text/html")){r=!0;break}for(const a of s)if(a.types.includes("text/plain")&&!r){const u=yield(yield a.getType("text/plain")).text();u&&o.input(u)}else if(a.types.includes("text/html")&&r){const u=yield(yield a.getType("text/html")).text();u&&Fo(o,u)}else if(a.types.some(R=>R.startsWith("image/"))){const R=a.types.find(c=>c.startsWith("image/")),u=yield a.getType(R);Sn(o,u)}}})}class er{constructor(e,t){this.draw=e,this.container=e.getContainer(),this.canvasEvent=t;const i=document.createElement("textarea");i.autocomplete="off",i.classList.add(`${ee}-inputarea`),i.innerText="",this.container.append(i),this.agentCursorDom=i,i.onkeydown=n=>this._keyDown(n),i.oninput=no(this._input.bind(this),0),i.onpaste=n=>this._paste(n),i.addEventListener("compositionstart",this._compositionstart.bind(this)),i.addEventListener("compositionend",this._compositionend.bind(this))}getAgentCursorDom(){return this.agentCursorDom}_keyDown(e){this.canvasEvent.keydown(e)}_input(e){const t=e.data;t&&this.canvasEvent.input(t)}_paste(e){this.draw.isReadonly()||!e.clipboardData||($l(this.canvasEvent,e),e.preventDefault())}_compositionstart(){this.canvasEvent.compositionstart()}_compositionend(e){this.canvasEvent.compositionend(e)}}class tr{constructor(e,t){this.ANIMATION_CLASS=`${ee}-cursor--animation`,this.draw=e,this.container=e.getContainer(),this.position=e.getPosition(),this.options=e.getOptions(),this.cursorDom=document.createElement("div"),this.cursorDom.classList.add(`${ee}-cursor`),this.container.append(this.cursorDom),this.cursorAgent=new er(e,t),this.blinkTimeout=null}getCursorDom(){return this.cursorDom}getAgentDom(){return this.cursorAgent.getAgentCursorDom()}getAgentIsActive(){return this.getAgentDom()===document.activeElement}getAgentDomValue(){return this.getAgentDom().value}clearAgentDomValue(){this.getAgentDom().value=""}_blinkStart(){this.cursorDom.classList.add(this.ANIMATION_CLASS)}_blinkStop(){this.cursorDom.classList.remove(this.ANIMATION_CLASS)}_setBlinkTimeout(){this._clearBlinkTimeout(),this.blinkTimeout=window.setTimeout(()=>{this._blinkStart()},500)}_clearBlinkTimeout(){this.blinkTimeout&&(this._blinkStop(),window.clearTimeout(this.blinkTimeout),this.blinkTimeout=null)}drawCursor(e){let t=this.position.getCursorPosition();if(!t)return;const{scale:i,cursor:n}=th
`,B),{startIndex:g,endIndex:M}=r.getRange(),L=i.getElementList(),D=qt(L,M);if(!D)return;const P=i.isDesignMode(),O=Ft(h).map(W=>{var f,T;const Y={value:W};if(P||!((f=D.title)!=null&&f.disabled)&&!((T=D.control)!=null&&T.disabled)){const V=L[M+1];(!D.type||D.type===a||D.type===R&&(V==null?void 0:V.type)===R||D.type===d&&(V==null?void 0:V.type)===d||D.type===u&&(V==null?void 0:V.type)===u||D.type===c&&(V==null?void 0:V.type)===c)&&sl.forEach(Z=>{if(Z==="groupIds"&&!(V!=null&&V.groupIds))return;const U=D[Z];U!==void 0&&(Y[Z]=U)}),s&&(Y.underline=!0)}return Y}),N=i.getControl();let p;if(N.getActiveControl()&&N.getIsRangeWithinControl())p=N.setValue(O);else{const W=g+1;g!==M&&i.spliceElementList(L,W,M-g),ve(L,O,g,{editorOptions:i.getOptions()}),i.spliceElementList(L,W,0,...O),p=g+O.length}~p&&(r.setRange(p,p),i.render({curIndex:p,isSubmitHistory:!s})),s&&(e.compositionInfo={elementList:L,value:h,startIndex:p-O.length,endIndex:p})}function So(o){if(!o.compositionInfo)return;const{elementList:e,startIndex:t,endIndex:i}=o.compositionInfo;e.splice(t+1,i-t),o.getDraw().getRange().setRange(t,t),o.compositionInfo=null}function Mr(o){const e=o.getDraw(),t=e.getRange(),{startIndex:i,endIndex:n}=t.getRange();if(!~i&&!~i||e.isReadonly()||!t.getIsCanInput())return;const l=e.getElementList();let s=i,r=n;if(i===n){const d=e.getPosition().getPositionList(),h=d[i],g=h.rowNo,M=h.pageNo,L=[];for(let P=0;P<d.length;P++){const O=d[P];if(O.pageNo>M)break;O.pageNo===M&&O.rowNo===g&&L.push(P)}const D=L[0]-1;s=D<0?0:D,r=L[L.length-1]}const a=e.getOptions();Oo(l.slice(s+1,r+1),a);const R=e.getControl();let u;R.getActiveControl()&&R.getIsRangeWithinControl()?u=R.cut():(e.spliceElementList(l,s+1,r-s),u=s),t.setRange(u,u),e.render({curIndex:u})}function Dr(o){const e=o.getDraw(),{copy:t}=e.getOverride();if(t){const s=t();if((s==null?void 0:s.preventDefault)!==!1)return}const i=e.getRange();let n=null;if(i.getRange().isCrossRowCol){const s=i.getRangeTableElement();if(!s)return;const r=e.getTableParticle().getRangeRowCol();if(!r)return;const a={type:S.TABLE,value:"",colgroup:[],trList:[]},R=r[0],u=R[0].colIndex,c=R[R.length-1],d=c.colIndex+c.colspan-1;for(let h=u;h<=d;h++)a.colgroup.push(s.colgroup[h]);for(let h=0;h<r.length;h++){const g=r[h],M=s.trList[g[0].rowIndex],L={tdList:[],height:M.height,minHeight:M.minHeight};for(let D=0;D<g.length;D++)L.tdList.push(g[D]);a.trList.push(L)}n=Te([a])}else n=i.getIsCollapsed()?i.getRangeRowElementList():i.getSelectionElementList();n!=null&&n.length&&Oo(n,e.getOptions())}function Lr(o,e){var t,i;const n=e.getDraw(),{drop:l}=n.getOverride();if(l){const r=l(o);if((r==null?void 0:r.preventDefault)!==!1)return}o.preventDefault();const s=(t=o.dataTransfer)==null?void 0:t.getData("text");if(s)e.input(s);else{const r=(i=o.dataTransfer)==null?void 0:i.files;if(!r)return;for(let a=0;a<r.length;a++){const R=r[a];R.type.startsWith("image")&&Sn(e,R)}}}function Pr(o){var e;if(!Intl.Segmenter)return null;const t=o.getDraw(),i=t.getPosition().getCursorPosition();if(!i)return null;const l=t.getRange().getRangeParagraphInfo();if(!l)return null;const s=((e=l==null?void 0:l.elementList)==null?void 0:e.map(h=>!h.type||h.type!==S.CONTROL&&gt.includes(h.type)?h.value:B).join(""))||"";if(!s)return null;const r=i.index,a=l.startIndex,u=new Intl.Segmenter(void 0,{granularity:"word"}).segment(s);let c=-1,d=-1;for(const{segment:h,index:g,isWordLike:M}of u){const L=g+a;if(M&&r>=L&&r<L+h.length){c=L-1,d=c+h.length;break}}return~c&&~d?{startIndex:c,endIndex:d}:null}function Or(o){const e=o.getDraw(),t=e.getPosition().getCursorPosition();if(!t)return null;const{value:i,index:n}=t,l=e.getLetterReg();let s=0,r=0;const a=Ai.test(i);if(a||l.test(i)){const u=e.getElementList();let c=n-1;for(;c>0;){const h=u[c].value;if(a&&Ai.test(h)||!a&&l.test(h))s++,c--;else break}let d=n+1;for(;d<u.length;){const h=u[d].value;if(a&&Ai.test(h)||!a&&l.test(h))r++,d++;else break}}const R=n-s-1;return R<0?null:{startIndex:R,endIndex:n+r}}function Fr(o,e){const t=o.getDraw(),i=t.getPosition(),n=i.getPositionByXY({x:e.offsetX,y:e.offsetY});if(n.isImage&&n.isDirectHit){t
* {
margin: 0;
padding: 0;
}
@page {
margin: 0;
size: ${R.size} ${n===St.HORIZONTAL?"landscape":"portrait"};
}`;u.append(document.createTextNode(c)),setTimeout(()=>{r.write(`${u.outerHTML}${a.innerHTML}`),s.print(),r.close(),window.addEventListener("mouseover",()=>{l==null||l.remove()},{once:!0})})}class Ka{constructor(e){this.draw=e,this.range=e.getRange(),this.position=e.getPosition(),this.historyManager=e.getHistoryManager(),this.canvasEvent=e.getCanvasEvent(),this.options=e.getOptions(),this.control=e.getControl(),this.workerManager=e.getWorkerManager(),this.searchManager=e.getSearch(),this.i18n=e.getI18n(),this.zone=e.getZone(),this.tableOperate=e.getTableOperate()}mode(e){this.draw.setMode(e)}cut(){this.draw.isReadonly()||this.draw.isDisabled()||this.canvasEvent.cut()}copy(){this.canvasEvent.copy()}paste(e){this.draw.isReadonly()||this.draw.isDisabled()||ql(this.canvasEvent,e)}selectAll(){this.canvasEvent.selectAll()}backspace(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const t=this.draw.getElementList(),{startIndex:i,endIndex:n}=this.range.getRange(),l=i===n;if(l&&t[i].value===B&&i===0)return;l?this.draw.spliceElementList(t,i,1):this.draw.spliceElementList(t,i+1,n-i);const s=l?i-1:i;this.range.setRange(s,s),this.draw.render({curIndex:s})}setRange(e,t,i,n,l,s,r){if(e<0||t<0||t<e)return;this.range.setRange(e,t,i,n,l,s,r);const a=e===t;this.draw.render({curIndex:a?e:void 0,isCompute:!1,isSubmitHistory:!1,isSetCursor:a})}replaceRange(e){this.setRange(e.startIndex,e.endIndex,e.tableId,e.startTdIndex,e.endTdIndex,e.startTrIndex,e.endTrIndex)}setPositionContext(e){const{tableId:t,startTrIndex:i,startTdIndex:n}=e,l=this.draw.getOriginalElementList();if(t){const s=l.findIndex(u=>u.id===t);if(!~s)return;const a=l[s].trList[i],R=a.tdList[n];this.position.setPositionContext({isTable:!0,index:s,trIndex:i,tdIndex:n,tdId:R.id,trId:a.id,tableId:t})}else this.position.setPositionContext({isTable:!1})}forceUpdate(e){const{isSubmitHistory:t=!1}=e||{};this.range.clearRange(),this.draw.render({isSubmitHistory:t,isSetCursor:!1})}blur(){this.range.clearRange(),this.draw.getCursor().recoveryCursor()}undo(){this.draw.isReadonly()||this.historyManager.undo()}redo(){this.draw.isReadonly()||this.historyManager.redo()}painter(e){if(!e.isDblclick&&this.draw.getPainterStyle()){this.canvasEvent.clearPainterStyle();return}const t=this.range.getSelection();if(!t)return;const i={};t.forEach(n=>{bt.forEach(s=>{const r=s;i[r]===void 0&&(i[r]=n[r])})}),this.draw.setPainterStyle(i,e)}applyPainterStyle(){this.draw.isReadonly()||this.draw.isDisabled()||this.canvasEvent.applyPainterStyle()}format(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const t=this.range.getSelectionElementList();let i={},n=[];if(t!=null&&t.length)n=t,i={isSetCursor:!1};else{const{endIndex:l}=this.range.getRange(),r=this.draw.getElementList()[l];(r==null?void 0:r.value)===B&&(n.push(r),i={curIndex:l})}n.length&&(n.forEach(l=>{bt.forEach(s=>{delete l[s]})}),this.draw.render(i))}font(e){if(this.draw.isReadonly()||this.draw.isDisabled())return;const i=this.range.getSelectionElementList();if(i!=null&&i.length)i.forEach(n=>{n.font=e}),this.draw.render({isSetCursor:!1});else{const{endIndex:n}=this.range.getRange(),s=this.draw.getElementList()[n];(s==null?void 0:s.value)===B&&(s.font=e,this.draw.render({curIndex:n,isCompute:!1}))}}size(e){const{minSize:t,maxSize:i,defaultSize:n}=this.options;if(e<t||e>i||this.draw.isReadonly()||this.draw.isDisabled())return;let s={},r=[];const a=this.range.getTextLikeSelectionElementList();if(a!=null&&a.length)r=a,s={isSetCursor:!1};else{const{endIndex:u}=this.range.getRange(),d=this.draw.getElementList()[u];(d==null?void 0:d.value)===B&&(r.push(d),s={curIndex:u})}if(!r.length)return;let R=!1;r.forEach(u=>{!u.size&&e===n||u.size&&u.size===e||(u.size=e,R=!0)}),R&&this.draw.render(s)}sizeAdd(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const t=this.range.getTextLikeSelectionElementList();let i={},n=[];if(t!=null&&t.length)n=t,i={isSetCursor:!1};else{const{endIndex:a}=this.range.getRange(),u=this.draw.getElementList()[a];(u==null?void 0:u.value)===B&&(n.push(u),i={curIndex:a})}if(!n.length)return;const{defaultSize:l,maxSi