You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

142 lines
532 KiB

var Hs=Object.defineProperty,ys=Object.defineProperties;var Gs=Object.getOwnPropertyDescriptors;var bn=Object.getOwnPropertySymbols;var vs=Object.prototype.hasOwnProperty,Js=Object.prototype.propertyIsEnumerable;var bi=(s,t,e)=>t in s?Hs(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,E=(s,t)=>{for(var e in t||(t={}))vs.call(t,e)&&bi(s,e,t[e]);if(bn)for(var e of bn(t))Js.call(t,e)&&bi(s,e,t[e]);return s},q=(s,t)=>ys(s,Gs(t));var h=(s,t,e)=>(bi(s,typeof t!="symbol"?t+"":t,e),e);import{J as As,E as xn,B as Bs,a as ks,P as _s,b as zs,H as xe,F as $s,c as qs,d as js,e as Cn,f as xi,T as Oi,g as to,h as eo,i as io,W as no,I as so,j as oo,k as ro,M as lo,C as ao,l as wn,_ as Ro,p as Hn}from"./vendor.d13e5cc9.js";const co=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function e(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerpolicy&&(r.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?r.credentials="include":n.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(n){if(n.ep)return;n.ep=!0;const r=e(n);fetch(n.href,r)}};co();const uo=[],ho=uo,yn=[],go={margins:[100,120,100,120],watermark:{data:"",size:120},pageNumber:{format:"\u7B2C{pageNo}\u9875/\u5171{pageCount}\u9875"},placeholder:{data:"\u8BF7\u8F93\u5165\u6B63\u6587"},zone:{tipDisabled:!1},maskMargin:[60,0,30,0]};const Lo="0.9.96";var Ue;(function(s){s.HALF="half",s.ONE_THIRD="one-third",s.QUARTER="quarter"})(Ue||(Ue={}));var ei;(function(s){s.ARABIC="arabic",s.CHINESE="chinese"})(ei||(ei={}));var et;(function(s){s.INLINE="inline",s.BLOCK="block",s.SURROUND="surround",s.FLOAT_TOP="float-top",s.FLOAT_BOTTOM="float-bottom"})(et||(et={}));var ii;(function(s){s.BEFORE="before",s.AFTER="after"})(ii||(ii={}));const k="\u200B",Gn=`
`,Ci=" ",vn="&nbsp;",Oo=["\xB7","\u3001",":","\uFF1A",",","\uFF0C",".","\u3002",";","\uFF1B","?","\uFF1F","!","\uFF01"],Jn={[Ue.HALF]:1/2,[Ue.ONE_THIRD]:1/3,[Ue.QUARTER]:1/4},Mo={ENGLISH:"A-Za-z",SPANISH:"A-Za-z\xC1\xC9\xCD\xD3\xDA\xE1\xE9\xED\xF3\xFA\xD1\xF1\xDC\xFC",FRENCH:"A-Za-z\xC0\xC2\xC7\xE0\xE2\xE7\xC9\xE9\xC8\xE8\xCA\xEA\xCB\xEB\xCE\xEE\xCF\xEF\xD4\xF4\xD9\xF9\xDB\xFB\u0178\xFF",GERMAN:"A-Za-z\xC4\xE4\xD6\xF6\xDC\xFC\xDF",RUSSIAN:"\u0410-\u042F\u0430-\u044F\u0401\u0451",PORTUGUESE:"A-Za-z\xC1\xC9\xCD\xD3\xDA\xE1\xE9\xED\xF3\xFA\xC3\xD5\xE3\xF5\xC7\xE7",ITALIAN:"A-Za-z\xC0\xE0\xC8\xE8\xC9\xE9\xCC\xEC\xCD\xED\xCE\xEE\xD3\xF3\xD2\xF2\xD9\xF9",DUTCH:"A-Za-z\xC0\xE0\xC1\xE1\xC2\xE2\xC4\xE4\xC8\xE8\xC9\xE9\xCA\xEA\xCB\xEB\xCC\xEC\xCD\xED\xCE\xEE\xCF\xEF\xD3\xF3\xD2\xF2\xD4\xF4\xD6\xF6\xD9\xF9\xDB\xFB\xDC\xFC",SWEDISH:"A-Za-z\xC5\xE5\xC4\xE4\xD6\xF6",GREEK:"\u0391\u03B1\u0392\u03B2\u0393\u03B3\u0394\u03B4\u0395\u03B5\u0396\u03B6\u0397\u03B7\u0398\u03B8\u0399\u03B9\u039A\u03BA\u039B\u03BB\u039C\u03BC\u039D\u03BD\u039E\u03BE\u039F\u03BF\u03A0\u03C0\u03A1\u03C1\u03A3\u03C3\u03C2\u03A4\u03C4\u03A5\u03C5\u03A6\u03C6\u03A7\u03C7\u03A8\u03C8\u03A9\u03C9"},Po="\u65E5";var at;(function(s){s.LEFT="left",s.CENTER="center",s.RIGHT="right",s.ALIGNMENT="alignment",s.JUSTIFY="justify"})(at||(at={}));const wi=/[0-9.]/,To=/[\uD800-\uDBFF][\uDC00-\uDFFF]/,So=/[#*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\u26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\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])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,Xo=new RegExp(`${So.source}|${To.source}`,"g"),No=/[、,。?!;:……「」“”‘’*()【】〔〕〖〗〘〙〚〛《》———﹝﹞–—\\/·.,!?;:`~<>()[\]{}'"|]/,Hi=new RegExp(`^[${k}
]`);function An(s,t){let e;return function(...i){e&&window.clearTimeout(e),e=window.setTimeout(()=>{s.apply(this,i)},t)}}function Fo(s,t){let e=0,i;return function(...n){const r=Date.now();r-e>=t?(window.clearTimeout(i),s.apply(this,n),e=r):(window.clearTimeout(i),i=window.setTimeout(()=>{s.apply(this,n),e=r},t))}}function yi(s,t){if(!s||typeof s!="object")return s;let e={};return Array.isArray(s)?e=s.map(i=>yi(i,t)):Object.keys(s).forEach(i=>{if(!t.includes(i))return e[i]=yi(s[i],t)}),e}function Ot(s){if(!s||typeof s!="object")return s;let t={};return Array.isArray(s)?t=s.map(e=>Ot(e)):Object.keys(s).forEach(e=>t[e]=Ot(s[e])),t}function Gi(s){return s&&s.nodeType===1&&s.tagName.toLowerCase()==="body"}function Mi(s,t,e){if(s&&!Gi(s))for(s=e?s:s.parentNode;s;){if(!t||t(s)||Gi(s))return t&&!t(s)&&Gi(s)?null:s;s=s.parentNode}return null}function Mt(){function s(){return((1+Math.random())*65536|0).toString(16).substring(1)}return s()+s()+"-"+s()+"-"+s()+"-"+s()+"-"+s()+s()+s()}function jt(s){const t=[];if(Intl.Segmenter){const i=new Intl.Segmenter().segment(s);for(const{segment:n}of i)t.push(n)}else{const e=new Map;for(const n of s.matchAll(Xo))e.set(n.index,n[0]);let i=0;for(;i<s.length;){const n=e.get(i);n?(t.push(n),i+=n.length):(t.push(s[i]),i++)}}return t}function Bn(s,t){const e=document.createElement("a");e.href=s,e.download=t,e.click()}function fo(s,t){po(3,s,t)}function po(s,t,e){let i=0,n=0;const r=function(o){i=new Date().getTime()-n<300?i+1:0,n=new Date().getTime(),i>=s-1&&(e(o),i=0)};t.addEventListener("click",r)}function Pi(s){return Object.prototype.toString.call(s)==="[object Object]"}function kn(s){return Array.isArray(s)}function _n(s,t){if(Pi(s)&&Pi(t)){const e=t;for(const[i,n]of Object.entries(s))e[i]?e[i]=_n(n,e[i]):e[i]=n}else kn(s)&&kn(t)&&t.push(...s);return t}function Ti(s){setTimeout(()=>{s()},0)}function zn(s){const t=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],e=["","\u5341","\u767E","\u5343","\u4E07","\u5341","\u767E","\u5343","\u4EBF","\u5341","\u767E","\u5343","\u4E07","\u5341","\u767E","\u5343","\u4EBF"];if(!s||isNaN(s))return"\u96F6";const i=s.toString().split("");let n="";for(let r=0;r<i.length;r++){const o=i.length-1-r;n=`${e[r]}${n}`,n=`${t[Number(i[o])]}${n}`}return n=n.replace(/零(千|百|十)/g,"\u96F6").replace(/十零/g,"\u5341"),n=n.replace(/零+/g,"\u96F6"),n=n.replace(/零亿/g,"\u4EBF").replace(/零万/g,"\u4E07"),n=n.replace(/亿万/g,"\u4EBF"),n=n.replace(/零+$/,""),n=n.replace(/^一十/g,"\u5341"),n}function ni(s,t,e){for(let i=0;i<s.length;i++){const n=s[i],r=t[n];r!==void 0?e[n]=r:delete e[n]}}function ne(s,t){const e={};for(const i in s)t.includes(i)&&(e[i]=s[i]);return e}function Ne(s,t){const e={};for(const i in s)t.includes(i)||(e[i]=s[i]);return e}function mo(s){const e=new TextEncoder().encode(s),i=Array.from(e,r=>String.fromCharCode(r));return window.btoa(i.join(""))}function Io(s){let t=s.parentElement;for(;t;){const i=window.getComputedStyle(t).getPropertyValue("overflow-y");if(t.scrollHeight>t.clientHeight&&(i==="auto"||i==="scroll"))return t;t=t.parentElement}return document.documentElement}function Wo(s,t){return s.length!==t.length?!1:!s.some(e=>!t.includes(e))}function Vo(s,t){if(!Pi(s)||!Pi(t))return!1;const e=Object.keys(s),i=Object.keys(t);return e.length!==i.length?!1:!e.some(n=>t[n]!==s[n])}function Yo(s,t){const e=s.x,i=s.x+s.width,n=s.y,r=s.y+s.height,o=t.x,l=t.x+t.width,a=t.y,R=t.y+t.height;return!(e>l||i<o||n>R||r<a)}const Uo=12,Zo={width:1,color:"#000000",dragWidth:2,dragColor:"#0000FF"},he="editor-component",_="ce",vi=`${_}-clipboard`;var Kt;(function(s){s.UP="top",s.DOWN="down",s.LEFT="left",s.RIGHT="right"})(Kt||(Kt={}));var N;(function(s){s.TEXT="text",s.IMAGE="image",s.TABLE="table",s.HYPERLINK="hyperlink",s.SUPERSCRIPT="superscript",s.SUBSCRIPT="subscript",s.SEPARATOR="separator",s.AIEDIT="aiEdit",s.PAGE_BREAK="pageBreak",s.CONTROL="control",s.CHECKBOX="checkbox",s.RADIO="radio",s.LATEX="latex",s.TAB="tab",s.DATE="date",s.BLOCK="block",s.TITLE="title",s.LIST="list"})(N||(N={}));const Fe=["bold","color","highlight","font","size","italic","underline","strikeout","textDecoration"],Ze=["rowFlex","rowMargin"],Qo=["type","font","size","bold","color","italic","highlight","underline","strikeout","rowFlex","url","hyperlinkId","dateId","dateFormat","groupIds","rowMargin","textDecoration"],Do=["type","font","size","bold","color","italic","highlight","underline","strikeout","rowFlex","rowMargin","dashArray","trList","borderType","width","height","url","colgroup","valueList","control","checkbox","radio","dateFormat","block","level","title","listType","listStyle","listWrap","groupIds","conceptId","imgDisplay","imgFloatPosition","textDecoration","extension","externalId"],Ko=["conceptId","extension","externalId","verticalAlign","backgroundColor","borderTypes","slashTypes"],Si=["tdId","trId","tableId"],Ji=["level","titleId","title"],Xi=["listId","listType","listStyle"],Ai=["control","controlId","controlComponent"],fe=["font","size","bold","highlight","italic","strikeout"],$n=[...Si,...Ji,...Xi],se=[N.TEXT,N.HYPERLINK,N.SUBSCRIPT,N.SUPERSCRIPT,N.CONTROL,N.DATE,N.AIEDIT],Eo=[N.IMAGE,N.LATEX],bo=[N.BLOCK,N.PAGE_BREAK,N.SEPARATOR,N.TABLE],xo=["HR","TABLE","UL","OL"],Co=[N.TITLE,N.LIST];class qn{constructor(t){h(this,"draw");h(this,"options");h(this,"imageCache");h(this,"container");h(this,"floatImageContainer");h(this,"floatImage");this.draw=t,this.options=t.getOptions(),this.container=t.getContainer(),this.imageCache=new Map,this.floatImageContainer=null,this.floatImage=null}createFloatImage(t){const{scale:e}=this.options;let i=this.floatImageContainer,n=this.floatImage;i||(i=document.createElement("div"),i.classList.add(`${_}-float-image`),this.container.append(i),this.floatImageContainer=i),n||(n=document.createElement("img"),i.append(n),this.floatImage=n),i.style.display="none",n.style.width=`${t.width*e}px`,n.style.height=`${t.height*e}px`;const r=this.draw.getHeight(),o=this.draw.getPageGap(),l=this.draw.getPageNo()*(r+o),a=t.imgFloatPosition;i.style.left=`${a.x}px`,i.style.top=`${l+a.y}px`,n.src=t.value}dragFloatImage(t,e){if(!this.floatImageContainer)return;this.floatImageContainer.style.display="block";const i=parseFloat(this.floatImageContainer.style.left)+t,n=parseFloat(this.floatImageContainer.style.top)+e;this.floatImageContainer.style.left=`${i}px`,this.floatImageContainer.style.top=`${n}px`}destroyFloatImage(){this.floatImageContainer&&(this.floatImageContainer.style.display="none")}addImageObserver(t){this.draw.getImageObserver().add(t)}getFallbackImage(t,e){const i=8,n=(t-Math.ceil(t/i)*i)/2,r=(e-Math.ceil(e/i)*i)/2,o=`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${e}" viewBox="0 0 ${t} ${e}">
<rect width="${t}" height="${e}" fill="url(#mosaic)" />
<defs>
<pattern id="mosaic" x="${n}" y="${r}" width="${i*2}" height="${i*2}" patternUnits="userSpaceOnUse">
<rect width="${i}" height="${i}" fill="#cccccc" />
<rect width="${i}" height="${i}" fill="#cccccc" transform="translate(${i}, ${i})" />
</pattern>
</defs>
</svg>`,l=new Image;return l.src=`data:image/svg+xml;base64,${mo(o)}`,l}render(t,e,i,n){const{scale:r}=this.options,o=e.width*r,l=e.height*r;if(this.imageCache.has(e.id)){const a=this.imageCache.get(e.id);t.drawImage(a,i,n,o,l)}else{const a=new Promise((R,c)=>{const u=new Image;u.setAttribute("crossOrigin","Anonymous"),u.src=e.value,u.onload=()=>{this.imageCache.set(e.id,u),R(e),e.imgDisplay===et.FLOAT_BOTTOM?this.draw.render({isCompute:!1,isSetCursor:!1,isSubmitHistory:!1}):t.drawImage(u,i,n,o,l)},u.onerror=d=>{const g=this.getFallbackImage(o,l);g.onload=()=>{t.drawImage(g,i,n,o,l),this.imageCache.set(e.id,g)},c(d)}});this.addImageObserver(a)}}}const Ni="R".charCodeAt(0);function Ce(s){return Bi[s]==null&&wo(s),Bi[s]}function wo(s){const t=Ho[s];if(t==null)return;const e=t.substring(3,5),i=1*e.charCodeAt(0)-Ni,n=1*e.charCodeAt(1)-Ni,r=t.substring(5),o=[[]];let l=1/0,a=-1/0,R=1/0,c=-1/0,u=0;for(;u<r.length;){const d=r.substring(u,u+2);if(d==" R")o.push([]);else{const g=d.charCodeAt(0)-Ni-i,L=d.charCodeAt(1)-Ni;l=Math.min(L,l),a=Math.max(L,a),R=Math.min(g,R),c=Math.max(g,c),o[o.length-1].push([g,L])}u+=2}Bi[s]={w:n-i,xmin:R,xmax:c,ymin:l,ymax:a,polylines:o}}const Bi={},Ho={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[ RYFKT RPOY[",512:" 6HYLFL[ RL[X[",513:" 12F^JFJ[ RJFR[ RZFR[ RZFZ[",514:" 9G]KFK[ RKFY[ RYFY[",515:" 22G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF",516:" 14G\\KFK[ RKFTFWGXHYJYMXOWPTQKQ",517:" 25G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF RSWY]",518:" 17G\\KFK[ RKFTFWGXHYJYLXNWOTPKP RRPY[",519:" 21H\\YIWGTFPFMGKIKKLMMNOOUQWRXSYUYXWZT[P[MZKX",520:" 6JZRFR[ RKFYF",521:" 11G]KFKULXNZQ[S[VZXXYUYF",522:" 6I[JFR[ RZFR[",523:" 12F^HFM[ RRFM[ RRFW[ R\\FW[",524:" 6H\\KFY[ RYFK[",525:" 7I[JFRPR[ RZFRP",526:" 9H\\YFK[ RKFYF RK[Y[",527:" 9I[RFJ[ RRFZ[ RMTWT",528:" 24G\\KFK[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XUWXUZS[P[NZLX",617:" 18I\\XMXb RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",618:" 9KXOMO[ ROSPPRNTMWM",619:" 18J[XPWNTMQMNNMPNRPSUTWUXWXXWZT[Q[NZMX",620:" 9MYRFRWSZU[W[ ROMVM",621:" 11I\\MMMWNZP[S[UZXW RXMX[",622:" 6JZLMR[ RXMR[",623:" 12G]JMN[ RRMN[ RRMV[ RZMV[",624:" 6J[MMX[ RXMM[",625:" 10JZLMR[ RXMR[P_NaLbKb",626:" 9J[XMM[ RMMXM RM[X[",627:" 24H]QMONMPLRKUKXLZN[P[RZUWWTYPZM RQMSMTNUPWXXZY[Z[",628:" 31I\\UFSGQIOMNPMTLZKb RUFWFYHYKXMWNUORO RROTPVRWTWWVYUZS[Q[OZNYMV",629:" 17I\\JPLNNMOMQNROSRSVR[ RZMYPXRR[P_Ob",630:" 24I[TMQMONMPLSLVMYNZP[R[TZVXWUWRVOTMRKQIQGRFTFVGXI",631:" 19JZWOVNTMQMONOPPRSS RSSOTMVMXNZP[S[UZWX",632:" 23JYTFRGQHQIRJUKXK RXKTMQONRMUMWNYP[S]T_TaSbQbP`",633:" 19H\\IQJOLMNMONOPNTL[ RNTPPRNTMVMXOXRWWTb",634:" 27G\\HQIOKMMMNNNPMUMXNZO[Q[SZUWVUWRXMXJWGUFSFRHRJSMUPWRZT",635:" 9LWRMPTOXOZP[R[TYUW",636:" 19I[OMK[ RYNXMWMUNQROSNS RNSPTQUSZT[U[VZ",637:" 9JZKFMFOGPHX[ RRML[",638:" 21H]OMIb RNQMVMYO[Q[SZUXWT RYMWTVXVZW[Y[[Y\\W",639:" 14I[LMOMNSMXL[ RYMXPWRUURXOZL[",640:" 29JZTFRGQHQIRJUKXK RUKRLPMOOOQQSTTVT RTTPUNVMXMZO\\S^T_TaRbPb",641:" 18J[RMPNNPMSMVNYOZQ[S[UZWXXUXRWOVNTMRM",642:" 13G]PML[ RUMVSWXX[ RIPKNNM[M",643:" 19I[MSMVN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\\UFKTZT RUFU[",705:" 18H\\WFMFLOMNPMSMVNXPYSYUXXVZS[P[MZLYKW",706:" 24H\\XIWGTFRFOGMJLOLTMXOZR[S[VZXXYUYTXQVOSNRNOOMQLT",707:" 6H\\YFO[ RKFYF",708:" 30H\\PFMGLILKMMONSOVPXRYTYWXYWZT[P[MZLYKWKTLRNPQOUNWMXKXIWGTFPF",709:" 24H\\XMWPURRSQSNRLPKMKLLINGQFRFUGWIXMXRWWUZR[P[MZLX",710:" 6MWRYQZR[SZRY",711:" 9MWSZR[QZRYSZS\\R^Q_",712:" 12MWRMQNROSNRM RRYQZR[SZRY",713:" 15MWRMQNROSNRM RSZR[QZRYSZS\\R^Q_",714:" 9MWRFRT RRYQZR[SZRY",715:" 21I[LKLJMHNGPFTFVGWHXJXLWNVORQRT RRYQZR[SZRY",716:" 3NVRFRM",717:" 6JZNFNM RVFVM",718:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",719:" 27H\\PBP_ RTBT_ RYIWGTFPFMGKIKKLMMNOOUQWRXSYUYXWZT[P[MZKX",720:" 3G][BIb",721:" 11KYVBTDRGPKOPOTPYR]T`Vb",722:" 11KYNBPDRGTKUPUTTYR]P`Nb",723:" 3NVRBRb",724:" 3E_IR[R",725:" 6E_RIR[ RIR[R",726:" 6E_IO[O RIU[U",727:" 6G]KKYY RYKKY",728:" 9JZRLRX RMOWU RWOMU",729:" 6MWRQQRRSSRRQ",730:" 8MWSFRGQIQKRLSKRJ",731:" 8MWRHQGRFSGSIRKQL",732:" 9E_UMXP[RXTUW RIR[R",733:" 12H]SBLb RYBRb RLOZO RKUYU",734:" 35E_\\O\\N[MZMYNXPVUTXRZP[L[JZIYHWHUISJRQNRMSKSIRGPFNGMIMKNNPQUXWZY[[[\\Z\\Y",735:" 28G]IIJKKOKUJYI[ R[IZKYOYUZY[[ RIIKJOKUKYJ[I RI[KZOYUYYZ[[",737:" 6KYOBO[ RUBU[",738:" 6F^RBR[ RI[[[",739:" 4F^[BI[[[",740:" 18E_RIQJRKSJRI RIYHZI[JZIY R[YZZ[[\\Z[Y",741:" 33F^RHNLKPJSJUKWMXOXQWRU RRHVLYPZSZUYWWXUXSWRU RRUQYP\\ RRUSYT\\ RP\\T\\",742:" 26F^RNQKPINHMHKIJKJOKRLTNWR\\ RRNSKTIVHWHYIZKZOYRXTVWR\\",743:" 20F^RGPJLOIR RRGTJXO[R RIRLUPZR] R[RXUTZR]",744:" 48F^RTTWVXXXZW[U[SZQXPVPSQ RSQUOVMVKUISHQHOINKNMOOQQ RQQNPLPJQISIUJWLXNXPWRT RRTQYP\\ RRTSYT\\ RP\\T\\",745:" 55F^RRR[Q\\ RRVQ\\ RRIQHOHNINKONRR RRISHUHVIVKUNRR RRRNOLNJNIOIQJR RRRVOXNZN[O[QZR RRRNULVJVIUISJR RRRVUXVZV[U[SZR",746:" 55F^ISJSLTMVMXLZ RISIRJQLQMRNTNWMYLZ RRGPIOLOOQUQXPZR\\ RRGTIULUOSUSXTZR\\ R[S[RZQXQWRVTVWWYXZ R[SZSXTWVWXXZ RKVYV",750:" 18PSSRRSQSPRPQQPRPSQSSRUQV RQQQRRRRQQQ",751:" 16PTQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",752:" 9NVPOTU RTOPU RNRVR",753:" 28MWRKQMOPMR RRKSMUPWR RRMOQ RRMUQ RROPQ RROTQ RQQSQ RMRWR",754:" 26MWMRMQNOONQMSMUNVOWQWR RPNTN ROOUO RNPVP RNQVQ RMRWR",755:" 14LRLFLRRRLF RLIPQ RLLOR RLOMQ",756:" 10MWRKQMOPMR RRKSMUPWR",757:" 11MWWRWQVOUNSMQMONNOMQMR",758:" 13G]]R]P\\MZJWHTGPGMHJJHMGPGR",759:" 11MWMRMSNUOVQWSWUVVUWSWR",760:" 7LXLPNRQSSSVRXP",761:" 6RURUTTURTPRO",762:" 7RVRRUPVNVLUKTK",763:" 7NRRROPNNNLOKPK",764:" 21MWWHVGTFQFOGNHMJMLNNOOUSVTWVWXVZU[S\\P\\N[MZ",765:" 21G]IWHVGTGQHOINKMMMONPOTUUVWWYW[V\\U]S]P\\N[M",766:" 31G]RRTUUVWWYW[V\\U]S]Q\\O[NYMWMUNTOPUOVMWKWIVHUGSGQHOINKMMMONPORR",767:" 22H\\KFK[ RHF[FQP[Z RZV[Y\\[ RZVZY RWYZY RWYZZ\\[",768:" 30KYUARBPCNELHKLKRLUNWQXSXVWXUYR RKPLMNKQJSJVKXMYPYVXZV]T_R`Oa",796:" 3>f>RfR",797:" 3D`D``D",798:" 3RRR>Rf",799:" 3D`DD``",800:" 3D`DR`R",801:" 3F^FY^K",802:" 3KYK^YF",803:" 3RRRDR`",804:" 3KYKFY^",805:" 3F^FK^Y",806:" 3KYKRYR",807:" 3MWMWWM",808:" 3RRRKRY",809:" 3MWMMWW",810:" 8GRRGPGMHJJHMGPGR",811:" 8GRGRGTHWJZM\\P]R]",812:" 8R]R]T]W\\ZZ\\W]T]R",813:" 8R]]R]P\\MZJWHTGRG",814:" 9D`DOGQKSPTTTYS]Q`O",815:" 9PUUDSGQKPPPTQYS]U`",816:" 9OTODQGSKTPTTSYQ]O`",817:" 9D`DUGSKQPPTPYQ]S`U",818:" 5KYRJYNKVRZ",819:" 5JZJRNKVYZR",820:" 5KYKVKNYVYN",821:" 5JZLXJPZTXL",822:" 23JZJ]L]O\\Q[TXUVVSVOULTJSIQIPJOLNONSOVPXS[U\\X]Z]",823:" 23I]]Z]X\\U[SXPVOSNONLOJPIQISJTLUOVSVVUXT[Q\\O]L]J",824:" 23JZZGXGUHSIPLONNQNUOXPZQ[S[TZUXVUVQUNTLQIOHLGJG",825:" 23G[GJGLHOIQLTNUQVUVXUZT[S[QZPXOUNQNNOLPISHUGXGZ",826:" 21E[EPFRHTJUMVQVUUXSZP[NZLWLSMQNNPLSKVKYL\\M^",827:" 19EYETHVKWPWSVVTXQYNYLXKVKSLPNNQMTMYN\\P_",828:" 26OUQOOQOSQUSUUSUQSOQO RQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",829:" 11RWRMSMUNVOWQWSVUUVSWRW",830:" 9D`DRJR RORUR RZR`R",831:" 5D`DUDO`O`U",832:" 6JZRDJR RRDZR",833:" 9D`DR`R RJYZY RP`T`",834:" 9D`DR`R RDRRb R`RRb",840:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",841:" 6LXLLLXXXXLLL",842:" 5KYRJKVYVRJ",843:" 6LXRHLRR\\XRRH",844:" 12JZRIPOJOOSMYRUWYUSZOTORI",845:" 6KYRKRY RKRYR",846:" 6MWMMWW RWMMW",847:" 9MWRLRX RMOWU RWOMU",850:" 35NVQNOONQNSOUQVSVUUVSVQUOSNQN ROQOS RPPPT RQOQU RRORU RSOSU RTPTT RUQUS",851:" 27NVNNNVVVVNNN ROOOU RPOPU RQOQU RRORU RSOSU RTOTU RUOUU",852:" 17MWRLMUWURL RROOT RROUT RRRQT RRRST",853:" 17LULRUWUMLR RORTU RORTO RRRTS RRRTQ",854:" 17MWRXWOMORX RRUUP RRUOP RRRSP RRRQP",855:" 17OXXROMOWXR RURPO RURPU RRRPQ RRRPS",856:" 22LXRLNWXPLPVWRL RRRRL RRRLP RRRNW RRRVW RRRXP",857:" 11RYRKRY RRKYNRQ RSMVNSO",860:" 13MWRLRX ROOUO RMUOWQXSXUWWU",861:" 11LXRLRX RLQMOWOXQ RPWTW",862:" 14KYMNWX RWNMX ROLLOKQ RULXOYQ",863:" 18I[NII[ RVI[[ RMM[[ RWMI[ RNIVI RMMWM",864:" 21I[RGRV RMJWP RWJMP RIVL\\ R[VX\\ RIV[V RL\\X\\",865:" 11G[MJSV RKPSL RG\\[\\[RG\\",866:" 14LXPLPPLPLTPTPXTXTTXTXPTPTLPL",867:" 32KYYPXNVLSKQKNLLNKQKSLVNXQYSYVXXVYT RYPWNUMSMQNPOOQOSPUQVSWUWWVYT",868:" 10KYRJKVYVRJ RRZYNKNRZ",869:" 34G]PIPGQFSFTGTI RGZHXJVKTLPLKMJOIUIWJXKXPYTZV\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DGCEA>H@JAMAZB]D_G`M`PaRc RRATCWDZD]C_AfHdJcMcZb]`_]`W`TaRc",909:" 33AcRAPCMDJDGCEABGAKAPBTDXG\\L`Rc RRATCWDZD]C_AbGcKcPbT`X]\\X`Rc RBHbH",997:" 3MWMXWX",998:" 3JZJZZZ",999:" 3JZJ]Z]",1001:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1002:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1003:" 24KYVLWKWOVLTKQKOLNMMPMSNVOWQXTXVWWU RQKOMNPNSOVQX",1004:" 26JZNKNX ROKOX RLKSKVLWMXPXSWVVWSXLX RSKULVMWPWSVVUWSX",1005:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1006:" 20JXNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXQX",1007:" 36K[VLWKWOVLTKQKOLNMMPMSNVOWQXTXVW RQKOMNPNSOVQX RTXUWVU RVSVX RWSWX RTSYS",1008:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1009:" 12NWRKRX RSKSX RPKUK RPXUX",1010:" 19LXSKSURWQX RTKTUSWQXPXNWMUNTOUNV RQKVK",1011:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1012:" 14KXOKOX RPKPX RMKRK RMXWXWTVX",1013:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1014:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1015:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1016:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1017:" 47KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RPWPUQTSTTUUZV[W[XZ RTUUXVZW[",1018:" 37JZNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX RSRTSUWVXWXXW RSRUSVWWX",1019:" 32KZVMWKWOVMULSKQKOLNMNOOPQQTRVSWT RNNOOQPTQVRWSWVVWTXRXPWOVNTNXOV",1020:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1021:" 20J[NKNUOWQXTXVWWUWK ROKOUPWQX RLKQK RUKYK",1022:" 15KYMKRX RNKRU RWKRX RKKPK RTKYK",1023:" 24I[LKOX RMKOT RRKOX RRKUX RSKUT RXKUX RJKOK RVKZK",1024:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1025:" 20LYNKRRRX ROKSR RWKSRSX RLKQK RTKYK RPXUX",1026:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1027:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1028:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1029:" 14KXOKOX RPKPX RMKWKWOVK RMXRX",1030:" 15KYRKLX RRMWX RRKXX RMWVW RLXXX",1031:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1032:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1033:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1034:" 44KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RQOQT RTOTT RQQTQ RQRTR",1035:" 12NWRKRX RSKSX RPKUK RPXUX",1036:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1037:" 15KYRKMX RRNVX RRKWX RKXPX RTXYX",1038:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1039:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1040:" 36JZMJLM RXJWM RPPOS RUPTS RMVLY RXVWY RMKWK RMLWL RPQTQ RPRTR RMWWW RMXWX",1041:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1042:" 21J[NKNX ROKOX RVKVX RWKWX RLKYK RLXQX RTXYX",1043:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1044:" 20K[MKRQ RNKSQMX RMKWKXOVK RNWWW RMXWXXTVX",1045:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1046:" 33KZMONLOKPKQLRORX RXOWLVKUKTLSOSX RMONMOLPLQMRO RXOWMVLULTMSO RPXUX",1047:" 40KZRKRX RSKSX RQNNOMQMRNTQUTUWTXRXQWOTNQN RQNOONQNROTQU RTUVTWRWQVOTN RPKUK RPXUX",1048:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1049:" 33J[RKRX RSKSX RLPMONOOSQU RTUVSWOXOYP RMONROTQUTUVTWRXO RPKUK RPXUX",1050:" 35KZMVNXQXMRMONMOLQKTKVLWMXOXRTXWXXV ROUNRNOOMQK RTKVMWOWRVU RNWPW RUWWW",1051:" 18KYTKKX RSMTX RTKUX RNTTT RIXNX RRXWX",1052:" 34JYPKLX RQKMX RNKUKWLWNVPSQ RUKVLVNUPSQ ROQRQTRUSUUTWQXJX RRQTSTUSWQX",1053:" 25KXVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUU RRKPMOONRNVPX",1054:" 26JYPKLX RQKMX RNKTKVLWNWQVTUVTWQXJX RTKULVNVQUTTVSWQX",1055:" 22JYPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXTXUUSX",1056:" 20JXPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXOX",1057:" 33KYVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUVVS RRKPMOONRNVPX RRXTVUS RSSXS",1058:" 27J[PKLX RQKMX RXKTX RYKUX RNKSK RVK[K ROQVQ RJXOX RRXWX",1059:" 12NWTKPX RUKQX RRKWK RNXSX",1060:" 19LXUKRUQWPX RVKSURWPXOXMWLUMTNUMV RSKXK",1061:" 27JZPKLX RQKMX RYKOR RRPTX RSPUX RNKSK RVK[K RJXOX RRXWX",1062:" 14KXQKMX RRKNX ROKTK RKXUXVUTX",1063:" 30I\\OKKX ROMPX RPKQV RYKPX RYKUX RZKVX RMKPK RYK\\K RIXMX RSXXX",1064:" 21JZPKLX RPKTX RQKTU RXKTX RNKQK RVKZK RJXNX",1065:" 32KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK",1066:" 24JYPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RJXOX",1067:" 46KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK ROWOVPUQURVRZS[T[UZ RRVSZT[",1068:" 35JZPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RSRTWUXVXWW RSRTSUWVX RJXOX",1069:" 28KZWLXLYKXNWLUKRKPLOMOOPPUSVT RONPOURVSVVUWSXPXNWMULXMWNW",1070:" 16KZTKPX RUKQX RPKNNOKZKYNYK RNXSX",1071:" 20J[PKMUMWOXSXUWVUYK RQKNUNWOX RNKSK RWK[K",1072:" 15KYOKPX RPKQV RYKPX RMKRK RVK[K",1073:" 24I[NKMX ROKNV RTKMX RTKSX RUKTV RZKSX RLKQK RXK\\K",1074:" 21KZPKTX RQKUX RYKLX RNKSK RVK[K RJXOX RRXWX",1075:" 20LYPKRQPX RQKSQ RYKSQQX RNKSK RVK[K RNXSX",1076:" 16LYXKLX RYKMX RQKONPKYK RLXUXVUTX",1101:" 32LZQOPPPQOQOPQOTOVQVWWXXX RTOUQUWWX RURRSPTOUOWPXSXTWUU RRSPUPWQX",1102:" 29JYNKNX ROKOX RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLKOK",1103:" 24LXVQUQURVRVQUPSOQOOPNRNUOWQXSXUWVV RQOPPOROUPWQX",1104:" 32L[VKVX RWKWX RVRUPSOQOOPNRNUOWQXSXUWVU RQOPPOROUPWQX RTKWK RVXYX",1105:" 26LXOSVSVRUPSOQOOPNRNUOWQXSXUWVV RUSUQSO RQOPPOROUPWQX",1106:" 20LWTKULUMVMVLTKRKPMPX RRKQMQX RNOSO RNXSX",1107:" 42LYQOOQOSQUSUUSUQSOQO RQOPQPSQU RSUTSTQSO RTPUOVO RPTOUOXPYTYVZ ROWPXTXVYV[T\\P\\N[NYPX",1108:" 28J[NKNX ROKOX RORPPROTOVPWRWX RTOUPVRVX RLKOK RLXQX RTXYX",1109:" 18NWRKRLSLSKRK RRORX RSOSX RPOSO RPXUX",1110:" 23NWSKSLTLTKSK RSOSZR\\ RTOTZR\\P\\O[OZPZP[O[ RQOTO",1111:" 27JZNKNX ROKOX RWOOU RRSVX RSSWX RLKOK RTOYO RLXQX RTXYX",1112:" 12NWRKRX RSKSX RPKSK RPXUX",1113:" 44F_JOJX RKOKX RKRLPNOPORPSRSX RPOQPRRRX RSRTPVOXOZP[R[X RXOYPZRZX RHOKO RHXMX RPXUX RXX]X",1114:" 28J[NONX ROOOX RORPPROTOVPWRWX RTOUPVRVX RLOOO RLXQX RTXYX",1115:" 28LYQOOPNRNUOWQXTXVWWUWRVPTOQO RQOPPOROUPWQX RTXUWVUVRUPTO",1116:" 32JYNON\\ ROOO\\ RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLOOO RL\\Q\\",1117:" 29KYUOU\\ RVOV\\ RURTPROPONPMRMUNWPXRXTWUU RPOOPNRNUOWPX RS\\X\\",1118:" 22KXOOOX RPOPX RPRQPSOUOVPVQUQUPVP RMOPO RMXRX",1119:" 26LYTOUPUQVQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWOVPVPWQX",1120:" 14LWPKPVRXTXUWUV RQKQVRX RNOTO",1121:" 28J[NONUOWQXSXUWVU ROOOUPWQX RVOVX RWOWX RLOOO RTOWO RVXYX",1122:" 15KYNORX ROORV RVORX RLOQO RTOXO",1123:" 24I[LOOX RMOOU RROOX RROUX RSOUU RXOUX RJOOO RVOZO",1124:" 21KYNOUX ROOVX RVONX RLOQO RTOXO RLXPX RSXXX",1125:" 23KYNORX ROORV RVORXP[N\\M\\L[LZMZM[L[ RLOQO RTOXO",1126:" 16LXUONX RVOOX ROONQNOVO RNXVXVVUX",1127:" 32K[QOOPNQMSMUNWPXQXSWUUWRXO RQOOQNSNUOWPX RQOSOUPWWXX RSOTPVWXXYX",1128:" 40KXRKPMOOMUK\\ RQLPNNTL\\ RRKTKVLVNUPRQ RTKULUNTPRQ RRQTRUTUVTWRXQXOWNT RRQSRTTTVRX",1129:" 19KYLQNOPORPSSSXR\\ RLQNPPPRQSS RWOVRSXQ\\",1130:" 39KYSOQOOPNQMSMUNWPXRXTWUVVTVRUPRNQLQKRJTJUKVM RQOOQNSNVPX RRXTVUTUQSO RQLRKTKVM",1131:" 27LXVPTOQOOPOQPRRS RQOPPPQRS RRSOTNUNWPXSXUW RRSPTOUOWPX",1132:" 28LWRKQLQMSNVNVMSNPOOPNRNTOVPWRXSYS[R\\P\\O[ RSNQOPPOROTPVRX",1133:" 26IYJRKPLONOOPOQMX RMONPNQLX ROQPPROTOVPVRS\\ RTOUPURR\\",1134:" 35IYJSKQLPNPOQOVPX RMPNQNUOWPXQXSWTVUTVQVNULTKRKQLQNRPURWS RQXSVTTUQUNTK",1135:" 13NWROPVPWQXSXUWVU RSOQVQWRX",1136:" 26KYOOLX RPOMX RUOVPWPVOTORQOR RORPSRWTXVWWU RORQSSWTX",1137:" 15LXLKNKPLWX RNKOLVX RRPMX RRPNX",1138:" 26KZOOK\\ RPOL\\ RNUNWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1139:" 19JYNOMX ROONUMX RVRVOWOVRTUQWNXMX RLOOO",1140:" 36MXRKQLQMSNVN RTNQOPPPRRSUS RTNROQPQRRS RSSPTOUOWQXSYTZT[S\\Q\\ RSSQTPUPWQX",1141:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1142:" 20IZPPMX RPPNX RTPSX RTPTX RKQMOXO RKQMPXP",1143:" 29JXSOQOOPNQMSJ\\ RQOOQNSK\\ RSOUPVRVTUVTWRXPXNWMU RSOUQUTTVRX",1144:" 28K[YOQOOPNQMSMUNWPXRXTWUVVTVRUPYP RQOOQNSNVPX RRXTVUTUQSO",1145:" 14KZSPQX RSPRX RMQOOXO RMQOPXP",1146:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1147:" 35KZOPNQMSMUNWPXRXUWWUXRXPWOUOTPSRRUO\\ RMUNVPWRWUVWTXR RXQWPUPSR RRUQXP\\",1148:" 17KXMONOPPS[T\\ RNOOPR[T\\U\\ RVOTRNYL\\",1149:" 28I[TKQ\\ RUKP\\ RJRKPLONOOPOVPWSWUVWT RMONPNTOWPXSXUWWTXRYO",1150:" 36JZNPPPPONPMQLSLUMWNXPXQWRUSR RLUNWPWRU RRRRWSXUXWVXTXRWPVOVPWP RRUSWUWWV",1151:" 32KZVOTVTWUXWXXWYU RWOUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1152:" 32JXOKMR RPKNRNVPX RNROPQOSOUPVRVTUVTWRXPXNWMUMR RSOUQUTTVRX RMKPK",1153:" 22KXUPUQVQUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1154:" 35KZWKTVTWUXWXXWYU RXKUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RUKXK",1155:" 23KWNURTTSURUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1156:" 23MXWKXLXKVKTLSNPYO[N\\ RVKULTNQYP[N\\L\\L[M\\ RPOVO",1157:" 34KYVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1158:" 29KZPKLX RQKMX ROQPPROTOVPVRUUUWVX RTOUPURTUTWUXWXXWYU RNKQK",1159:" 26MWSKSLTLTKSK RNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1160:" 26MWTKTLULUKTK RORPPQOSOTPTRRYQ[O\\M\\M[N\\ RROSPSRQYP[O\\",1161:" 32KXPKLX RQKMX RVPUQVQVPUOTORQPROR RORPSQWRXTXUWVU RORQSRWSX RNKQK",1162:" 16NVSKPVPWQXSXTWUU RTKQVQWRX RQKTK",1163:" 46F^GRHPIOKOLPLQJX RJOKPKQIX RLQMPOOQOSPSQQX RQORPRQPX RSQTPVOXOZPZRYUYWZX RXOYPYRXUXWYX[X\\W]U",1164:" 33J[KRLPMOOOPPPQNX RNOOPOQMX RPQQPSOUOWPWRVUVWWX RUOVPVRUUUWVXXXYWZU",1165:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1166:" 35JYKRLPMOOOPPPQM\\ RNOOPOQL\\ RPQROTOVPWRWTVVUWSXQXOVOT RTOVQVTUVSX RJ\\O\\",1167:" 28KYVOR\\ RWOS\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RP\\U\\",1168:" 22LXMRNPOOQORPRQPX RPOQPQQOX RRQSPUOVOWPWQVQWP",1169:" 24LYVPVQWQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWNVOVOW",1170:" 16NWSKPVPWQXSXTWUU RTKQVQWRX RPOUO",1171:" 33IZJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1172:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1173:" 37H\\IRJPKOMONPNRMUMWNX RLOMPMRLULWNXOXQWRV RTORVRWTX RUOSVSWTXUXWWYUZRZOYOZP",1174:" 38JZMRNPPOROSPSR RQORPRRQUPWNXMXLWLVMVLW RXPWQXQXPWOVOTPSRRURWSX RQUQWRXTXVWWU",1175:" 35IYJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\",1176:" 27KYWOWPVQNVMWMX RNQOOROUQ ROPRPUQVQ RNVOVRWUW ROVRXUXVV",1177:" 39H[RKSLSMTMTLRKOKMLLNLX ROKNLMNMX RXKYLYMZMZLXKVKTMTX RVKUMUX RJOWO RJXOX RRXWX",1178:" 29J[UKVLWLWKQKOLNNNX RQKPLONOX RVOVX RWOWX RLOWO RLXQX RTXYX",1179:" 27J[WKQKOLNNNX RQKPLONOX RUKVLVX RWKWX RLOVO RLXQX RTXYX",1180:" 48F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX RYKZL[L[KUKSLRNRX RUKTLSNSX RZOZX R[O[X RHO[O RHXMX RPXUX RXX]X",1181:" 46F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX R[KUKSLRNRX RUKTLSNSX RYKZLZX R[K[X RHOZO RHXMX RPXUX RXX]X",1182:" 12NWRORX RSOSX RPOSO RPXUX",1184:" 21LXVPTOROPPOQNSNUOWQXSXUW RROPQOSOVQX ROSSS",1185:" 35LYSKQLPMOONRNUOWPXRXTWUVVTWQWNVLUKSK RSKQMPOOSOVPX RRXTVUTVPVMUK ROQVQ",1186:" 34KZTKQ\\ RUKP\\ RQONPMRMUNWQXTXWWXUXRWPTOQO RQOOPNRNUOWQX RTXVWWUWRVPTO",1187:" 22LXUPVRVQUPSOQOOPNRNTOVRX RQOOQOTPVRXSYS[R\\P\\",1191:" 45I[VKWLXLVKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RZK[L[KYKWLVNSYR[Q\\ RYKXLWNTYS[Q\\O\\O[P\\ RLOYO",1192:" 38IZVKWLXLXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RVOTVTWUXWXXWYU RWOUVUWVX RLOWO",1193:" 38IZVKWL RXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RWKTVTWUXWXXWYU RXKUVUWVX RLOVO",1194:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L\\L\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ RZOXVXWYX[X\\W]U R[OYVYWZX RIO[O",1195:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L R\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ R[KXVXWYX[X\\W]U R\\KYVYWZX RIOZO",1196:" 20MWNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1200:" 28LYQKOLNONTOWQXTXVWWTWOVLTKQK RQKPLOOOTPWQX RTXUWVTVOULTK",1201:" 10LYPNSKSX RRLRX ROXVX",1202:" 35LYOMONNNNMOLQKTKVLWNVPTQQROSNUNX RTKULVNUPTQ RNWOVPVSWVWWV RPVSXVXWVWU",1203:" 39LYOMONNNNMOLQKTKVLWNVPTQ RTKULVNUPTQ RRQTQVRWTWUVWTXQXOWNVNUOUOV RTQURVTVUUWTX",1204:" 13LYSMSX RTKTX RTKMTXT RQXVX",1205:" 33LYOKNQ ROKVK ROLSLVK RNQOPQOTOVPWRWUVWTXQXOWNVNUOUOV RTOUPVRVUUWTX",1206:" 36LYVMVNWNWMVLTKRKPLOMNPNUOWQXTXVWWUWSVQTPQPNR RRKPMOPOUPWQX RTXUWVUVSUQTP",1207:" 22LYNKNO RVMRTPX RWKTQQX RNMPKRKUM RNMPLRLUMVM",1208:" 51LYQKOLNNOPQQTQVPWNVLTKQK RQKPLONPPQQ RTQUPVNULTK RQQORNTNUOWQXTXVWWUWTVRTQ RQQPROTOUPWQX RTXUWVUVTURTQ",1209:" 36LYOVOUNUNVOWQXSXUWVVWSWNVLTKQKOLNNNPORQSTSWQ RSXUVVSVNULTK RQKPLONOPPRQS",1210:" 6NVRVQWRXSWRV",1211:" 8NVSWRXQWRVSWSYQ[",1212:" 12NVROQPRQSPRO RRVQWRXSWRV",1213:" 14NVROQPRQSPRO RSWRXQWRVSWSYQ[",1214:" 15NVRKQLRSSLRK RRLRO RRVQWRXSWRV",1215:" 29LYNNONOONONNOLQKTKVLWNWOVQSRRSRTST RTKVMVPUQSR RRWRXSXSWRW",1216:" 6OVRKRP RSKRP",1217:" 12LXOKOP RPKOP RUKUP RVKUP",1218:" 10MWQKPLPNQOSOTNTLSKQK",1219:" 9MWRJRP ROKUO RUKOO",1220:" 3KZXHM\\",1221:" 16MWUHSJQMPPPTQWSZU\\ RSJRLQPQTRXSZ",1222:" 16MWOHQJSMTPTTSWQZO\\ RQJRLSPSTRXQZ",1223:" 12MWPHP\\ RQHQ\\ RPHUH RP\\U\\",1224:" 12MWSHS\\ RTHT\\ ROHTH RO\\T\\",1225:" 38LWSHQIPJPLRNSP RQIPL RSNRQ RPJQLSNSPRQPRRSSTSVQXPZ RRSSV RPXQ[ RSTRVPXPZQ[S\\",1226:" 38MXQHSITJTLRNQP RSITL RQNRQ RTJSLQNQPRQTRRSQTQVSXTZ RRSQV RTXS[ RQTRVTXTZS[Q\\",1227:" 4MWTHPRT\\",1228:" 4MWPHTRP\\",1229:" 3OURHR\\",1230:" 6MWPHP\\ RTHT\\",1231:" 3I[LRXR",1232:" 6I[RLRX RLRXR",1233:" 9JZRMRX RMRWR RMXWX",1234:" 9JZRMRX RMMWM RMRWR",1235:" 6JZMMWW RWMMW",1236:" 6NVRQQRRSSRRQ",1237:" 15I[RLQMRNSMRL RLRXR RRVQWRXSWRV",1238:" 6I[LPXP RLTXT",1239:" 9I[WLMX RLPXP RLTXT",1240:" 9I[LNXN RLRXR RLVXV",1241:" 4JZWLMRWX",1242:" 4JZMLWRMX",1243:" 10JZWKMOWS RMTWT RMXWX",1244:" 10JZMKWOMS RMTWT RMXWX",1245:" 21H[YUWUUTTSRPQOONNNLOKQKRLTNUOUQTRSTPUOWNYN",1246:" 16JZLTLRMPOPUSWSXR RLRMQOQUTWTXRXP",1247:" 8JZMSRPWS RMSRQWS",1248:" 7NVSKPO RSKTLPO",1249:" 7NVQKTO RQKPLTO",1250:" 14LXNKOMQNSNUMVK RNKONQOSOUNVK",1251:" 8NVSLRMQLRKSLSNQP",1252:" 8NVSKQMQORPSORNQO",1253:" 8NVQLRMSLRKQLQNSP",1254:" 8NVQKSMSORPQORNSO",1256:" 11JZWMQMONNOMQMSNUOVQWWW",1257:" 11JZMMMSNUOVQWSWUVVUWSWM",1258:" 11JZMMSMUNVOWQWSVUUVSWMW",1259:" 11JZMWMQNOONQMSMUNVOWQWW",1260:" 14JZWMQMONNOMQMSNUOVQWWW RMRUR",1261:" 13I[TOUPXRUTTU RUPWRUT RLRWR",1262:" 13MWRMRX ROPPORLTOUP RPORMTO",1263:" 13I[POOPLROTPU ROPMROT RMRXR",1264:" 13MWRLRW ROTPURXTUUT RPURWTU",1265:" 37KYVSUPSOQOOPNQMSMUNWPXRXTWUVVTWQWNVLTKQKPLQLRK RQOOQNSNVPX RRXTVUTVQVNULTK",1266:" 15JZLKRX RMKRV RXKRX RLKXK RNLWL",1267:" 10G[IOLORW RKORX R[FRX",1268:" 26I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[",1269:" 40I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[ RQNOONQNSOUQVSVUUVSVQUOSNQN",1270:" 26H\\ZRYTWUVUTTSSQPPONNMNKOJQJRKTMUNUPTQSSPTOVNWNYOZQZR",1271:" 26JZXKLX ROKPLPNOOMOLNLLMKOKSLVLXK RUTTUTWUXWXXWXUWTUT",1272:" 41J[YPXPXQYQYPXOWOVPUTTVSWQXOXMWLVLTMSORRPSNSLRKPKOLONPQUWWXXXYW ROXMVMTOR RONPPVWWX",1273:" 29J[UPSOQOPQPRQTSTUS RUOUSVTXTYRYQXNVLSKRKOLMNLQLRMUOWRXSXVW",1274:" 34KZQHQ\\ RTHT\\ RWLVLVMWMWLUKPKNLNNOPVSWT RNNOOVRWTWVVWTXQXOWNVNUOUOVNV",1275:" 12KYRKN\\ RVKR\\ RNQWQ RMVVV",1276:" 40LXTLSLSMTMTLSKQKPLPNQPTRUS RPNQOTQUSUUSW RQPOROTPVSXTY ROTPUSWTYT[S\\Q\\P[PZQZQ[P[",1277:" 29LXRKQLRMSLRK RRMRQ RRQQSRVSSRQ RRVR\\ RPOONNOOPPOTOUNVOUPTO",1278:" 42LXRMSLRKQLRMRQQRSURV RRQSRQURVRZQ[R\\S[RZ RPOONNOOPPOTOUNVOUPTO RPXOWNXOYPXTXUWVXUYTX",1279:" 12LYVKVX RNKVK RQQVQ RNXVX",1281:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRQQRRSSRRQ",1282:" 33LYQKPLPMQN RTKULUMTN RRNPOOQORPTRUSUUTVRVQUOSNRN RRURY RSUSY ROWVW",1283:" 23LYRKPLONOOPQRRSRUQVOVNULSKRK RRRRX RSRSX ROUVU",1284:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRKRY RKRYR",1285:" 25JYRRPQOQMRLTLUMWOXPXRWSUSTRR RWMRR RRMWMWR RRMVNWR",1286:" 25JZLLMKOKQLRNRPQRPSNT ROKPLQNQQPS RVKUX RWKTX RNTXT",1287:" 27JYNKNU ROKNR RNROPQOSOUPVQVTTVTXUYVYWX RSOUQUTTV RLKOK",1288:" 27LYONRKRQ RVNSKSQ RRQPROTOUPWRXSXUWVUVTURSQ RRTRUSUSTRT",1289:" 27JZRKRY RMKMPNRPSTSVRWPWK RLMMKNM RQMRKSM RVMWKXM ROVUV",1290:" 27JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXVXVUUX",1291:" 20LYWKTKQLONNQNSOVQXTYWY RWKTLRNQQQSRVTXWY",1292:" 23JZRRPQOQMRLTLUMWOXPXRWSUSTRR RSLQQ RWMRR RXQSS",1293:" 12KYPMTW RTMPW RMPWT RWPMT",1294:" 34J[OUMULVLXMYOYPXPVNTMRMONMOLQKTKVLWMXOXRWTUVUXVYXYYXYVXUVU RNMPLULWM",1295:" 34J[OOMOLNLLMKOKPLPNNPMRMUNWOXQYTYVXWWXUXRWPUNULVKXKYLYNXOVO RNWPXUXWW",1401:" 21F^KHK\\ RLHL\\ RXHX\\ RYHY\\ RHH\\H RH\\O\\ RU\\\\\\",1402:" 20H]KHRQJ\\ RJHQQ RJHYHZMXH RK[X[ RJ\\Y\\ZWX\\",1403:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",1404:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",1405:" 12KYOBOb RPBPb ROBVB RObVb",1406:" 12KYTBTb RUBUb RNBUB RNbUb",1407:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",1408:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",1409:" 24KYU@RCPFOIOLPOSVTYT\\S_Ra RRCQEPHPKQNTUUXU[T^RaOd",1410:" 24KYO@RCTFUIULTOQVPYP\\Q_Ra RRCSETHTKSNPUOXO[P^RaUd",1411:" 13AXCRGRR` RGSRa RFSRb RX:Rb",1412:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2001:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2002:" 45G]LFL[ RMFM[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QVPTO",2209:" 48H\\XMWPURRSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNWMX RQSORMPLMLLMIOGQF RSFUGWIXLXRWVVXTZR[",2210:" 6MWRYQZR[SZRY",2211:" 8MWR[QZRYSZS\\R^Q_",2212:" 12MWRMQNROSNRM RRYQZR[SZRY",2213:" 14MWRMQNROSNRM RR[QZRYSZS\\R^Q_",2214:" 15MWRFQHRTSHRF RRHRN RRYQZR[SZRY",2215:" 32I[MJNKMLLKLJMHNGPFSFVGWHXJXLWNVORQRT RSFUGVHWJWLVNTP RRYQZR[SZRY",2216:" 6NVRFQM RSFQM",2217:" 12JZNFMM ROFMM RVFUM RWFUM",2218:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",2219:" 9JZRFRR RMIWO RWIMO",2220:" 3G][BIb",2221:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",2222:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",2223:" 12KYOBOb RPBPb ROBVB RObVb",2224:" 12KYTBTb RUBUb RNBUB RNbUb",2225:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",2226:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",2227:" 4KYUBNRUb",2228:" 4KYOBVROb",2229:" 3NVRBRb",2230:" 6KYOBOb RUBUb",2231:" 3E_IR[R",2232:" 6E_RIR[ RIR[R",2233:" 9F^RJR[ RJRZR RJ[Z[",2234:" 9F^RJR[ RJJZJ RJRZR",2235:" 6G]KKYY RYKKY",2236:" 6MWRQQRRSSRRQ",2237:" 15E_RIQJRKSJRI RIR[R RRYQZR[SZRY",2238:" 6E_IO[O RIU[U",2239:" 9E_YIK[ RIO[O RIU[U",2240:" 9E_IM[M RIR[R RIW[W",2241:" 4F^ZIJRZ[",2242:" 4F^JIZRJ[",2243:" 10F^ZFJMZT RJVZV RJ[Z[",2244:" 10F^JFZMJT RJVZV RJ[Z[",2245:" 21F_[WYWWVUTRPQOONMNKOJQJSKUMVOVQURTUPWNYM[M",2246:" 24F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",2247:" 8G]JTROZT RJTRPZT",2248:" 7LXTFOL RTFUGOL",2249:" 7LXPFUL RPFOGUL",2250:" 18H\\KFLHNJQKSKVJXHYF RKFLINKQLSLVKXIYF",2251:" 8MWRHQGRFSGSIRKQL",2252:" 8MWSFRGQIQKRLSKRJ",2253:" 8MWRHSGRFQGQIRKSL",2254:" 8MWQFRGSISKRLQKRJ",2255:" 10E[HMLMRY RKMR[ R[BR[",2256:" 13F^ZJSJOKMLKNJQJSKVMXOYSZZZ",2257:" 13F^JJJQKULWNYQZSZVYXWYUZQZJ",2258:" 13F^JJQJUKWLYNZQZSYVWXUYQZJZ",2259:" 13F^JZJSKOLMNKQJSJVKXMYOZSZZ",2260:" 16F^ZJSJOKMLKNJQJSKVMXOYSZZZ RJRVR",2261:" 11E_XP[RXT RUMZRUW RIRZR",2262:" 11JZPLRITL RMORJWO RRJR[",2263:" 11E_LPIRLT ROMJROW RJR[R",2264:" 11JZPXR[TX RMURZWU RRIRZ",2265:" 44I\\XRWOVNTMRMONMQLTLWMYNZP[R[UZWXXUYPYKXHWGUFRFPGOHOIPIPH RRMPNNQMTMXNZ RR[TZVXWUXPXKWHUF",2266:" 15H\\JFR[ RKFRY RZFR[ RJFZF RKGYG",2267:" 10AbDMIMRY RHNR[ Rb:R[",2268:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2269:" 50F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia RQKNLLNKQKSLVNXQYSY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LVMXOZQ[S[UZWXXVXSWQVPTO RPPNQMSMVNY RVYWVWSVQTP",2303:" 30F^MJMV RNKNU RVKVU RWJWV RIGKIMJPKTKWJYI[G RIYKWMVPUTUWVYW[Y",2304:" 48F^[ILIJJILINJPLQNQPPQNQLPJ[J RIMJOKPMQ RQMPKOJMI RIXXXZW[U[SZQXPVPTQSSSUTWIW R[TZRYQWP RSTTVUWWX",2305:" 48F]OUMTLTJUIWIXJZL[M[OZPXPWOUJPINIKJILHOGSGWHYJZLZOYRVUUWUYV[X[YZZX RMSKPJNJKKILH RSGVHXJYLYOXRVU",2306:" 48G_HKKHMKMV RJILLLV RMKPHRKRU ROIQLQU RRKUHWKW[ RTIVLV[ RWKZH[J\\M\\P[SZUXWUYP[ RYIZJ[M[PZSYUWWTYP[",2307:" 41F^ISMSLRKOKMLJNHQGSGVHXJYMYOXRWS[S RITOTMRLOLMMJOHQG RSGUHWJXMXOWRUT[T RKXYX RKYYY",2308:" 30F_GLJIMLMX RIJLMLX RMLPISLSX ROJRMRX RSLVIYLYW[Y RUJXMXXZZ]W",2309:" 33G]ZIJY RZIWJQJ RXKUKQJ RZIYLYR RXKXNYR RQRJR RPSMSJR RQRQY RPSPVQY",2310:" 33F^HOJKOU RJMOWRPWPZO[M[KZIXHWHUITKTMUPVRWUWXUZ RWHVIUKUMWQXTXWWYUZ",2311:" 36F^IOLLPN RKMOORLUN RQMTOWLYN RVMXO[L RIULRPT RKSOURRUT RQSTUWRYT RVSXU[R",2312:" 48F^JHNJPLQOQRPUNWJY RJHMIOJQLRO RRRQUOWMXJY RZHWIUJSLRO RRRSUUWWXZY RZHVJTLSOSRTUVWZY RIP[P RIQ[Q",2317:" 12NVQQQSSSSQQQ RQQSS RSQQS",2318:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2319:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2320:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2321:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2322:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2323:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2324:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2325:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2326:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2327:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2328:" 49JZMLWX RMLONQOTOVNWMWKUKUMTO RONTO RQOWM RVKVN RULWL RWXUVSUPUNVMWMYOYOWPU RUVPU RSUMW RNVNY RMXOX",2329:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLWY",2330:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2331:"103EfNSOUQVSVUUVSVQUOSNQNOONPMSMVNYP[S\\V\\Y[[Y\\W]T]P\\MZJXIUHRHOIMJKLIOHSHXI]KaMcPeTfYf]e`cba RKLJNIRIXJ\\L`NbQdUeYe]d_cba RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU RaLaNcNcLaL RbLbN RaMcM RaVaXcXcVaV RbVbX RaWcW",2332:" 30D`H@Hd RM@Md RW@Wd R\\@\\d RMMWK RMNWL RMOWM RMWWU RMXWV RMYWW",2367:" 12NVQQQSSSSQQQ RQQSS RSQQS",2368:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2369:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2370:" 32H\\PMMNLOKQKSLUMVPWTWWVXUYSYQXOWNTMPM RMNLPLSMUNVPW RWVXTXQWOVNTM",2371:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2372:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2373:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2374:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2375:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2376:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2377:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2378:" 36JZQCVMRTRU RULQS RTITKPRRUUY RW\\UYSXQXOYN[N]O_Ra RW\\UZSYOYO]P_Ra RSXPZN]",2379:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLSY",2380:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2381:" 89IjNQOOQNSNUOVQVSUUSVQVOUNTMQMNNKPISHWH[I^K`NaRaW`[_]]`ZcVfQiMk RWHZI]K_N`R`W_[^]\\`YcTgQi RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU ReLeNgNgLeL RfLfN ReMgM ReVeXgXgVeV RfVfX ReWgW",2382:" 85D`H>Hf RI>If RM>Mf RQBSBSDQDQAR?T>W>Y?[A\\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SQQSOUNXNXM",2619:" 50J[XPWNTMQMNNMPNRPSUUWV RVUWWWXVZ RWYTZQZNY ROZNXMX RXPWPVN RWOTNQNNO RONNPOR RNQPRUTWUXWXXWZT[Q[NZMX",2620:" 16MXRFR[S[ RRFSFS[ ROMVMVN ROMONVN",2621:" 25H\\LMLWMZO[R[TZWW RLMMMMWNYPZRZTYWW RWMW[X[ RWMXMX[",2622:" 14JZLMR[ RLMMMRY RXMWMRY RXMR[",2623:" 26F^IMN[ RIMJMNX RRMNX RRPN[ RRPV[ RRMVX R[MZMVX R[MV[",2624:" 16I[LMW[X[ RLMMMX[ RXMWML[ RXMM[L[",2625:" 17JZLMR[ RLMMMRY RXMWMRYNb RXMR[ObNb",2626:" 20I[VNL[ RXMNZ RLMXM RLMLNVN RNZXZX[ RL[X[",2651:" 33K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RVRTXTZV[XZYY[V RWRUXUZV[",2652:" 23LZLVNSPO RSFMXMZO[P[RZTXUUURVVWWXWZV RTFNXNZO[",2653:" 22LXTSSTTTTSSRQROSNTMVMXNZP[S[VYXV RQROTNVNYP[",2654:" 33K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RZFTXTZV[XZYY[V R[FUXUZV[",2655:" 23LXOYQXRWSUSSRRQROSNTMVMXNZP[S[VYXV RQROTNVNYP[",2656:" 27OXRRUOWLXIXGWFUGTIKdKfLgNfOcPZQ[S[UZVYXV RTISNRRO[M`Kd",2657:" 38K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RVRPd RWRT[R`PdOfMgLfLdMaO_R]V[YY[V",2658:" 30L[LVNSPO RSFL[ RTFM[ ROUQSSRTRVSVUUXUZV[ RTRUSUUTXTZV[XZYY[V",2659:" 19NVSLRMSNTMSL RQROXOZQ[SZTYVV RRRPXPZQ[",2660:" 24NVSLRMSNTMSL RQRKd RRRO[M`KdJfHgGfGdHaJ_M]Q[TYVV",2661:" 31LZ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RXQYQZR[S[TZTYSXRX RRYRZSZSYRY",2713:" 40MXRMQNQORPSPTOTNSMRM RRNROSOSNRN RTZS[R[QZQYRXSXTYT\\S^Q_ RRYRZSZSYRY RS[T\\ RTZS^",2714:" 24MXRFRTST RRFSFST RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",2715:" 58I\\LKLJMHNGQFTFWGXHYJYLXNWOUPRQ RLKMKMJNHQGTGWHXJXLWNUORP RMIPG RUGXI RXMTP RRPRTSTSP RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",2716:" 24MXTFRGQIQLRMSMTLTKSJRJQK RRKRLSLSKRK RRGQK RQIRJ",2717:" 24MXTHSIRIQHQGRFSFTGTJSLQM RRGRHSHSGRG RSITJ RTHSL",2718:" 71F_\\MZMXNWPUVTXSYQZMZKYJWJUKSLRQOSMTKTISGQFPFNGMIMKNNPQUWXZZ[\\[ R\\M\\NZNXO RYNXPVVUXSZQ[M[KZJYIWIUJSLQQNRMSKSIRG RSHQGPGNH ROGNINKONQQVWXYZZ\\Z\\[",2719:" 51I\\RBR_S_ RRBSBS_ RWIYIWGTFQFNGLILKMMNNVRWSXUXWWYTZQZOYNX RWIVHTGQGNHMIMKNMVQXSYUYWXYWZT[Q[NZLXNX RXXUZ",2720:" 8G^[BIbJb R[B\\BJb",2721:" 24KYUBSDQGOKNPNTOYQ]S`UbVb RUBVBTDRGPKOPOTPYR]T`Vb",2722:" 24KYNBPDRGTKUPUTTYR]P`NbOb RNBOBQDSGUKVPVTUYS]Q`Ob",2723:" 39JZRFQGSQRR RRFRR RRFSGQQRR RMINIVOWO RMIWO RMIMJWNWO RWIVINOMO RWIMO RWIWJMNMO",2724:" 8F_JQ[Q[R RJQJR[R",2725:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",2726:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",2727:" 11NWSFRGRM RSGRM RSFTGRM",2728:" 22I[NFMGMM RNGMM RNFOGMM RWFVGVM RWGVM RW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QZPY",2765:" 34H]OJPKOLNKNJOHPGSFWFZG[I[KZMYNSPQQQSRTTT RWFYGZIZKYMXNVO RPYOZP[QZPY",2766:" 8MXVFTHSJSKTLUKTJ",2767:" 8MXUHTGUFVGVHUJSL",2768:" 55E_\\N[O\\P]O]N\\M[MYNWPRXPZN[K[HZGXGVHTISKRPPROTMUKUITGRFPGOIOLPRQUSXUZW[Y[ZYZX RK[IZHXHVITJSPP ROLPQQTSWUYWZYZZY",2769:" 41H]TBL_ RYBQ_ RZJYKZL[K[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJVKULVKW",2770:" 3G]_BEb",2771:" 20KZZBVESHQKOONTNXO]P`Qb RVESIQMPPOUOZP_Qb",2772:" 20JYSBTDUGVLVPUUSYQ\\N_Jb RSBTEUJUOTTSWQ[N_",2773:" 9J[TFTR ROIYO RYIOO",2774:" 3E_IR[R",2775:" 6E_RIR[ RIR[R",2776:" 6E_IO[O RIU[U",2777:" 6NWUFSM RVFSM",2778:" 12I[PFNM RQFNM RYFWM RZFWM",2779:" 14KZSFQGPIPKQMSNUNWMXKXIWGUFSF",2801:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2802:" 31G]LFL[ RMFM[ RIFYFYLXF RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2803:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2804:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2805:" 31F^NFNLMTLXKZJ[ RXFX[ RYFY[ RKF\\F RG[\\[ RG[Gb RH[Gb R[[\\b R\\[\\b",2806:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2807:" 71CbRFR[ RSFS[ ROFVF RGGHHGIFHFGGFHFIGJIKMLONPWPYOZM[I\\G]F^F_G_H^I]H^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Z RNLONVRWT ROGNINKOMUPWRXTXWWYVZS[O[LZKYJWJULULWKWKV",3270:" 8G^_BEbFb R_B`BFb",3271:" 32JZZBXCUERHPKNOMSMXN\\O_Qb RSHQKOONTN\\ RZBWDTGRJQLPOOSN\\ RNTO]P`Qb",3272:" 32JZSBUEVHWLWQVUTYR\\O_LaJb RVHVPUUSYQ\\ RSBTDUGVP RVHUQTUSXRZP]M`Jb",3273:" 39J[TFSGUQTR RTFTR RTFUGSQTR ROIPIXOYO ROIYO ROIOJYNYO RYIXIPOOO RYIOO RYIYJONOO",3274:" 8F_JQ[Q[R RJQJR[R",3275:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",3276:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",3277:" 11MWUFTGRM RUGRM RUFVGRM",3278:" 22H\\PFOGMM RPGMM RPFQGMM RZFYGWM RZGWM RZF[GWM",3279:" 30KZSFQGPIPKQMSNUNWMXKXIWGUFSF RSFPIQMUNXKWGSF RUFQGPKSNWMXIUF",3301:" 62F^IHJIIJHIIGKFMFOGPHQKQOPRNTLUIV ROHPKPPOR RMFNGOJOPNSLU RLVOY RKVOZ RIVN[UV R\\G[H\\H\\G[FYFWGVHUJUYW[[W RWHVJVXXZ RYFXGWJWWYY",3302:"101E_GQGRHSJSLRLOKMIJIHKF RKOIK RJSKRKPIMHKHIIGKFNFPGQHRJRRQUOW RPHQJQT RNFOGPJPUOW RRISGUFWFYGZH[J\\K RYHZJ RWFXGYJZK\\K R\\KRP RYM[O\\R\\U[XYZV[S[PZJWIWHX RXNYN[P RVNYO[Q\\S RTZRZLWKW RZYXZUZRYNWKVIVHXHZI[JZIY",3303:" 79F^RHPFNFLGJJINIRJVLYNZQ[T[WZYY[W RLHKJJMJRKVMYPZ RNFMGLIKMKQLUMWOYRZUZXY[W RUFRHQIPKPLQNTPURUT RQKQLUPUQ RQIQJRLUNVPVRUTSURUPTOR RUFVGXHZH RUGVHWH RTGVIXIZH[G",3304:" 79E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GLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RRIQJPLPU RQKQS RRIRRQTPU RRIXFZG[I[KYMUO RXGZIZK RVGXHYIYLWN RWNZP[R[X RYPZRZW RWNXOYQYX RJ[MYPXTXWY RLZOYTYVZ RJ[NZSZU[WYYX[X RUOUX RURYR RUUYU",3503:" 69E]NGLHJJILHOHSIVJXMZP[S[VZXYZW[U RJKINISKWNYQZTZWY RNGLIKKJNJRKUNXQYTYWXYW[U RPJPV RQJQT RRIRSQUPV RPJRIUFWGYGZF RTGVHXH RSHUIWIYHZF RWIWX",3504:" 72G^IFWFYGZIZX RKGWGYIYW RIFJGLHWHXIXX ROKNLMNMOKOJPJRKQMQMV RNMNT RKPNP ROKOSNUMV RI[LYOXSXVY RKZNYSYUZ RI[MZRZT[VYXXZX RRHRX RRMTNVNXM RRSTRVRXS",3505:" 94G]IHKFMFOGQF RLGNG RIHKGMHOHQF RNKMLLNLOJOIPIRJQLQLW RMMMU RJPMP RNKNTMVLW RQMRJSHTGVFXF[G RTHVGXGZH RRJSIUHWHYI[G RQURRSPTOVOXP RTPVPWQ RRRSQUQVRXP RK[NYRXWX[Y RMZPYWYZZ RK[OZVZY[[Y RQMQX",3506:" 91F]JHLFOFQGSF RMGPG RJHLGNHQHSF RPKOLNNNOLOKPKRLQNQNV ROMOT RLPOP RPKPSOUNV RSJSYRZQZMXKXIYG[ RTJTX RTPXP RPZOZMYJY RUIUOXO RXQUQUWTYP[N[LZJZG[ RSJUIXFZG\\G]F RWGYH[H RVHXIZI\\H]F RXIXW",3507:" 87E^NGLHJJILHOHRIUJWLYNZQ[U[XZZX[V[SZQYPWOUO RJKINISJV RNGLIKKJNJSKVLXNZ RYXZWZSYQ RU[WZXYYWYSXQWPUO RPJPW RQJQU RRIRTQVPW RPJRIUFWGYGZF RTGVHXH RSHUIWIYHZF RYHUOU[ RUSYS RUVYV",3508:"112F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RJ[MYPXSXUY RLZOYRYTZ RJ[NZQZS[UY RRIQJPLPU RQKQS RRIRRQTPU RRITGVFXFZG RWGXGYH RTGVGXIZG RUOWNYLZM[P[TZXX[ RXMYNZPZUYX RWNXNYPYUX[ RUOUY RURYR RUUYU",3509:" 67I\\LHNFQFTGVF ROGSG RLHNGQHTHVF RSKRLQNQOOONPNROQQQQV RRMRT ROPRP RSKSSRUQV RYHWJVMVXUZSZOXMXKYI[ RWKWW RRZQZOYLY RYHXJXVWXUZS[P[NZKZI[",3510:" 65H\\LHNFQFTGVF ROGSG RLHNGQHTHVF RSKRLQNQOOONPNROQQQQV RRMRT ROPRP RSKSSRUQV RYHWJVMVXUZ RWKWW RYHXJXVWXUZR[O[LZJXJVKULUMVLWKW RJVMV",3511:"115F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RJ[MYPXSXUY RLZNYRYTZ RJ[NZQZS[UY RRIQJPLPU RQKQS RRIRRQTPU RRITGVFXFZG RWGXGYH RTGVGXIZG RUOXLYM[N RWMYN[N R[NYQWSUU RWSYTZX[Z\\Z RYVZZ RWSXTYZZ[[[\\Z RUOUY",3512:" 85G]IHKFNFPGRF RLGOG RIHKGMHPHRF RNKMLLNLOJOIPIRJQLQLW RMMMU RJPMP RNKNTMVLW RK[NYRXWX[Y RMZPYWYZZ RK[OZVZY[[Y RSIRJQLQU RRKRS RSISRRTQU RSIUGWFYF[G RXGYGZH RUGWGYI[G RWGWX",3513:"107D`LJKKJMJOHOGPGRHQJQJU RKLKS RHPKP RLJLRKTJU RE[GYIXKXMYNYOX RHYKYMZ RE[GZJZL[M[NZOX RLJPFTJTWUYVY RPGSJSXRYSZTYSX RPPSP RNHOHRKROOO ROQRQRXQYS[VYWX RTJXF\\J\\W]Y^Y RXG[J[X]Z RXP[P RVHWHZKZOWO RWQZQZY\\[^Y ROHOX RWHWX",3514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JHLFOGUGZF RKGOHSHWG RJHNIRIVHXG RLZNYRXVXZY RMZQYUYYZ RJ[OZUZX[ZY RMPQP RTPXP",3601:" 53J[PRNTMVMXNZP[RYUX RMVNXOYQZ RNTNVOXQYRY RNPPPSOUNVMXOWPWXXYYY RONNOQO RTOWOVNVYWZ RMOOMPNROUPUYW[YY RMORT",3602:" 44I[LHMJMXKY RNJMHNGNXQZ RLHOFOXQYRZ RKYMYOZP[RZUYWY ROPROTNUMVNXOYOWPWY RTNVOVX RROSOUPUY",3603:" 35JXNONXLYMYOZP[ ROOOYQZ RPOPXRYSYQZP[ RNORNTMUNWOXO RSNTOVO RPORNTPVPXO",3604:" 41IZRMPNMOMXKY RNONXQZ RRMOOOXQYRZ RKYMYOZP[RZUYWY RMHPFQIWOWY RPINHOGPIVOVX RMHUPUY",3605:" 32JXNONXLYMYOZP[ ROOOYQZ RPOPXRYSYQZP[ RNORNTMWQURPU RSNVQ RPORNUR",3606:" 41JWNHNXLYMYOZP[ ROHOYQZ RPHPXRYSYQZP[ RNHQGSFTGVHWH RRGSHUH RPHQGSIUIWH RKMNM RPMTM",3607:" 56I[MOMXKYLYNZO[PZRYUX RNPNYPZ ROOOXQYRY RMOOORNTMUNWOYOWPW\\V_TaRbQaO`M` RSNVPV\\ RSaQ`P` RRNSOUPUZV]V_ RTaS`Q_O_M`",3608:" 47I[LHMJMXKYLYNZO[ RNJMHNGNYPZ RLHOFOXQYO[ ROPROTNUMVNXOYOWPWYU[T] RTNVOVYU[ RROSOUPUYT]T`UbVbT`",3609:" 35MWRFPHRITHRF RRGQHSHRG RRMQNOOQPQYS[UY RRPSORNQORPRYSZ RRMSNUOSPSXTYUY",3610:" 39MWRFPHRITHRF RRGQHSHRG RRMQNOOQPQYS[T] RRPSORNQORPRYS[ RRMSNUOSPSYT]T`RbPbPaRb",3611:" 50IZLHMJMXKYLYNZO[ RNJMHNGNYPZ RLHOFOXQYO[ ROPRNTMVPSROU RSNUP RRNTQ RSRTSVXWYXY RS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IOIXL[NYQX RINJOJXMZ RHMJNKOKWLXNY RQMOOQPQXT[VYYX[X RPNRORXUZ RQMRNTOSPSWTXVY RYMZN\\O]O[P[X RXNZOZW RYMWOYPYX",3624:" 59H[KOLONPOQSYTZV[XY RMNOOTYVZ RKOMMONPOTWUXWYXY RRSUMVNXNYM RUNVOWO RTOVPXOYM RQUN[MZKZJ[ RNZMYLY ROYMXKYJ[ RMTPT RSTVT",3625:" 60I[KOLOMPMXKY RLNNONYPZ RKOMMOOOXQYRY RKYLYNZO[PZRYUX RUMVNXOYOWPW\\V_TaRbQaO`M` RTNVOV\\ RSaQ`P` RUMSOUPUZV]V_ RTaS`Q_O_M`",3626:" 38I[XML[ RLONPQPTOXM RMNOOSO RLONMPNTNXM RL[PYSXVXXY RQYUYWZ RL[PZTZV[XY RNTVT",3700:" 42H\\LHLXJY RMIMXPZ RNHNXPYQZ RLHNHSGUF RSGTHVIVY RTGWIWX RUFVGXHZHXIXY RJYLYNZO[QZVYXY",3701:" 27H\\OHPIQKQXOY RQIPHQGRIRYTZ ROHRFSHSXUYVY ROYPYRZS[TZVY",3702:" 48H\\LHNHPGQFSGVHXH RPHRG RLHNIPIRHSG RVHVP RWIWO RXHXPQPNQLSKVK[ RK[OYSXVXZY RNZQYVYYZ RK[PZUZX[ZY",3703:" 57H\\LHMHOGPFRGVHXH ROHQG RLHNIPIRG RVHVO RWIWN RXHXOVOSPQQ RQPSQVRXRXY RWSWX RVRVY RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3704:" 41H\\UFKPKUTU RVUZU[V[TZU RLPLT RMNMU RTGTXRY RUJVHUGUYWZ RUFWHVJVXXYYY RRYSYUZV[WZYY",3705:" 53H\\LFLO RLFXF RMGVG RLHUHWGXF RVLUMSNOOLO RSNTNVOVY RUMWNWX RVLWMYNZNXOXY RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3706:" 59H\\LHLXJY RMIMXPZ RNHNXPYQZ RLHNHRGTFUGWHXH RSGUH RRGTIVIXH RNPOPSOUNVM RSOTOVPVY RUNWPWX RVMWNYOZOXPXY RJYLYNZO[QZVYXY",3707:" 38H\\KHMFPGUGZF RLGOHTHWG RKHOIRIVHZF RZFYHWKSOQRPUPXQ[ RRQQTQWRZ RUMSPRSRVSYQ[",3708:" 71H\\LILO RMJMN RNINO RLINISHUGVF RSHTHVIVO RUGWHWN RVFWGYHZHXIXO RLONOVRXR RXOVONRLR RLRLXJY RMSMXPZ RNRNXPYQZ RVRVY RWSWX RXRXY RJYLYNZO[QZVYXY",3709:" 60H\\LHLQJR RMIMROS RNHNQPRQR RLHNHSGUF RSGTHVIVY RTGWIWX RUFVGXHZHXIXY RJRKRMSNTOSQRUQVQ RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3710:" 11LXRXPZR[TZRX RRYQZSZRY",3711:" 14LXR^R\\PZRXSZS\\R^P_ RRYQZR[RY",3712:" 22LXRMPORPTORM RRNQOSORN RRXPZR[TZRX RRYQZSZRY",3713:" 25LXRMPORPTORM RRNQOSORN RR^R\\PZRXSZS\\R^P_ RRYQZR[RY",3714:" 30LXRFQGOHQIRT RRISHRGQHRIRT RRFSGUHSIRT RRXPZR[TZRX RRYQZSZRY",3715:" 51I[LJMHNGQFSFVGWHXJXLWNUPSQ RMJNH RVHWIWMVN RLJNKNIOGQF RSFUGVIVMUOSQ RRQRTSQQQRT RRXPZR[TZRX RRYQZSZRY",3716:" 14LXTFRGQIQKRMTKRIRG RRJRLSKRJ",3717:" 14LXRLRJPHRFSHSJRLPM RRGQHRIRG",3718:" 62E_YNZO[O\\N RXOYP[P RXPYQZQ[P\\N RYNST RRUL[HVNP ROOSKOFJLPRTXVZX[Z[[Z\\X RLZIV RRKOG RKLPQTWVYXZ[Z RMZIU RRLNG RKKQQUWVXXY[Y\\X",3719:" 60H\\PBP_ RTBT_ RTFVGWIWKYJXHWGTFPFMGKIKLLNOPURWSXUXXWZ RXJWH RLLMNOOUQWRXT RMYLW RMGLILKMMONUPXRY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XSZ ROYQZ",3920:" 27MWRHPFQJQXPYR[ RRHRXQYRZSYRX RRHTFSJSXTYR[ RNMQM RSMVM",3921:" 40I[KOLOMPMYP[UY RMNNONYPZ RKOMMOOOXRZ RVMXOWPWXXYYY RVPWOVNUOVPVYWZ RVMTOUPUYW[YY",3922:" 36I[LMMOMXQ[SYWW RMNNONXQZ RLMNNOOOWRYSY RVMXOWPWW RVPWOVNUOVPVW RVMTOUPUX",3923:" 59E_HMIOIXM[OYQX RINJOJXMZ RHMJNKOKWNYOY RRMPOQPQXU[WY[W RRPSORNQORPRXUZ RRMTOSPSWVYWY RZM\\O[P[W RZP[OZNYOZPZW RZMXOYPYX",3924:" 39I[LONPUZV[XY RMNOOUYWZ RLONMONVXXY RXMVMVOXOXMVOSS RQUNYL[N[NYLYL[ RNTQT RSTVT",3925:" 49I[KOLOMPMYP[UY RMNNONYPZ RKOMMOOOXRZ RVMXOWPW]V_U`SaQaO`MaObQa RVPWOVNUOVPV^U_ RPaNa RVMTOUPU^T`Sa",3926:" 43L[RNOPOORNTMWOWSRU RTNVOVS RRNUPUSTT RRUWWW]V_U`SaQaO`MaObQa RVWV^U_ RPaNa RTVUWU^T`Sa"},ct={"\\frac":{glyph:0,arity:2,flags:{}},"\\binom":{glyph:0,arity:2,flags:{}},"\\sqrt":{glyph:2267,arity:1,flags:{opt:!0,xfl:!0,yfl:!0}},"^":{glyph:0,arity:1,flags:{}},_:{glyph:0,arity:1,flags:{}},"(":{glyph:2221,arity:0,flags:{yfl:!0}},")":{glyph:2222,arity:0,flags:{yfl:!0}},"[":{glyph:2223,arity:0,flags:{yfl:!0}},"]":{glyph:2224,arity:0,flags:{yfl:!0}},"\\langle":{glyph:2227,arity:0,flags:{yfl:!0}},"\\rangle":{glyph:2228,arity:0,flags:{yfl:!0}},"|":{glyph:2229,arity:0,flags:{yfl:!0}},"\\|":{glyph:2230,arity:0,flags:{yfl:!0}},"\\{":{glyph:2225,arity:0,flags:{yfl:!0}},"\\}":{glyph:2226,arity:0,flags:{yfl:!0}},"\\#":{glyph:2275,arity:0,flags:{}},"\\$":{glyph:2274,arity:0,flags:{}},"\\&":{glyph:2273,arity:0,flags:{}},"\\%":{glyph:2271,arity:0,flags:{}},"\\begin":{glyph:0,arity:1,flags:{}},"\\end":{glyph:0,arity:1,flags:{}},"\\left":{glyph:0,arity:1,flags:{}},"\\right":{glyph:0,arity:1,flags:{}},"\\middle":{glyph:0,arity:1,flags:{}},"\\cdot":{glyph:2236,arity:0,flags:{}},"\\pm":{glyph:2233,arity:0,flags:{}},"\\mp":{glyph:2234,arity:0,flags:{}},"\\times":{glyph:2235,arity:0,flags:{}},"\\div":{glyph:2237,arity:0,flags:{}},"\\leqq":{glyph:2243,arity:0,flags:{}},"\\geqq":{glyph:2244,arity:0,flags:{}},"\\leq":{glyph:2243,arity:0,flags:{}},"\\geq":{glyph:2244,arity:0,flags:{}},"\\propto":{glyph:2245,arity:0,flags:{}},"\\sim":{glyph:2246,arity:0,flags:{}},"\\equiv":{glyph:2240,arity:0,flags:{}},"\\dagger":{glyph:2277,arity:0,flags:{}},"\\ddagger":{glyph:2278,arity:0,flags:{}},"\\ell":{glyph:662,arity:0,flags:{}},"\\vec":{glyph:2261,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\overrightarrow":{glyph:2261,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\overleftarrow":{glyph:2263,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\bar":{glyph:2231,arity:1,flags:{hat:!0,xfl:!0}},"\\overline":{glyph:2231,arity:1,flags:{hat:!0,xfl:!0}},"\\widehat":{glyph:2247,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\hat":{glyph:2247,arity:1,flags:{hat:!0}},"\\acute":{glyph:2248,arity:1,flags:{hat:!0}},"\\grave":{glyph:2249,arity:1,flags:{hat:!0}},"\\breve":{glyph:2250,arity:1,flags:{hat:!0}},"\\tilde":{glyph:2246,arity:1,flags:{hat:!0}},"\\underline":{glyph:2231,arity:1,flags:{mat:!0,xfl:!0}},"\\not":{glyph:2220,arity:1,flags:{}},"\\neq":{glyph:2239,arity:1,flags:{}},"\\ne":{glyph:2239,arity:1,flags:{}},"\\exists":{glyph:2279,arity:0,flags:{}},"\\in":{glyph:2260,arity:0,flags:{}},"\\subset":{glyph:2256,arity:0,flags:{}},"\\supset":{glyph:2258,arity:0,flags:{}},"\\cup":{glyph:2257,arity:0,flags:{}},"\\cap":{glyph:2259,arity:0,flags:{}},"\\infty":{glyph:2270,arity:0,flags:{}},"\\partial":{glyph:2265,arity:0,flags:{}},"\\nabla":{glyph:2266,arity:0,flags:{}},"\\aleph":{glyph:2077,arity:0,flags:{}},"\\wp":{glyph:2190,arity:0,flags:{}},"\\therefore":{glyph:740,arity:0,flags:{}},"\\mid":{glyph:2229,arity:0,flags:{}},"\\sum":{glyph:2402,arity:0,flags:{big:!0}},"\\prod":{glyph:2401,arity:0,flags:{big:!0}},"\\bigoplus":{glyph:2284,arity:0,flags:{big:!0}},"\\bigodot":{glyph:2281,arity:0,flags:{big:!0}},"\\int":{glyph:2412,arity:0,flags:{yfl:!0}},"\\oint":{glyph:2269,arity:0,flags:{yfl:!0}},"\\oplus":{glyph:1284,arity:0,flags:{}},"\\odot":{glyph:1281,arity:0,flags:{}},"\\perp":{glyph:738,arity:0,flags:{}},"\\angle":{glyph:739,arity:0,flags:{}},"\\triangle":{glyph:842,arity:0,flags:{}},"\\Box":{glyph:841,arity:0,flags:{}},"\\rightarrow":{glyph:2261,arity:0,flags:{}},"\\to":{glyph:2261,arity:0,flags:{}},"\\leftarrow":{glyph:2263,arity:0,flags:{}},"\\gets":{glyph:2263,arity:0,flags:{}},"\\circ":{glyph:902,arity:0,flags:{}},"\\bigcirc":{glyph:904,arity:0,flags:{}},"\\bullet":{glyph:828,arity:0,flags:{}},"\\star":{glyph:856,arity:0,flags:{}},"\\diamond":{glyph:743,arity:0,flags:{}},"\\ast":{glyph:728,arity:0,flags:{}},"\\log":{glyph:0,arity:0,flags:{txt:!0}},"\\ln":{glyph:0,arity:0,flags:{txt:!0}},"\\exp":{glyph:0,arity:0,flags:{txt:!0}},"\\mod":{glyph:0,arity:0,flags:{txt:!0}},"\\lim":{glyph:0,arity:0,flags:{txt:!0,big:!0}},"\\sin":{glyph:0,arity:0,flags:{txt:!0}},"\\cos":{glyph:0,arity:0,flags:{txt:!0}},"\\tan":{glyph:0,arity:0,flags:{txt:!0}},"\\csc":{glyph:0,arity:0,flags:{txt:!0}},"\\sec":{glyph:0,arity:0,flags:{txt:!0}},"\\cot":{glyph:0,arity:0,flags:{txt:!0}},"\\sinh":{glyph:0,arity:0,flags:{txt:!0}},"\\cosh":{glyph:0,arity:0,flags:{txt:!0}},"\\tanh":{glyph:0,arity:0,flags:{txt:!0}},"\\csch":{glyph:0,arity:0,flags:{txt:!0}},"\\sech":{glyph:0,arity:0,flags:{txt:!0}},"\\coth":{glyph:0,arity:0,flags:{txt:!0}},"\\arcsin":{glyph:0,arity:0,flags:{txt:!0}},"\\arccos":{glyph:0,arity:0,flags:{txt:!0}},"\\arctan":{glyph:0,arity:0,flags:{txt:!0}},"\\arccsc":{glyph:0,arity:0,flags:{txt:!0}},"\\arcsec":{glyph:0,arity:0,flags:{txt:!0}},"\\arccot":{glyph:0,arity:0,flags:{txt:!0}},"\\text":{glyph:0,arity:1,flags:{}},"\\mathnormal":{glyph:0,arity:1,flags:{}},"\\mathrm":{glyph:0,arity:1,flags:{}},"\\mathit":{glyph:0,arity:1,flags:{}},"\\mathbf":{glyph:0,arity:1,flags:{}},"\\mathsf":{glyph:0,arity:1,flags:{}},"\\mathtt":{glyph:0,arity:1,flags:{}},"\\mathfrak":{glyph:0,arity:1,flags:{}},"\\mathcal":{glyph:0,arity:1,flags:{}},"\\mathbb":{glyph:0,arity:1,flags:{}},"\\mathscr":{glyph:0,arity:1,flags:{}},"\\rm":{glyph:0,arity:1,flags:{}},"\\it":{glyph:0,arity:1,flags:{}},"\\bf":{glyph:0,arity:1,flags:{}},"\\sf":{glyph:0,arity:1,flags:{}},"\\tt":{glyph:0,arity:1,flags:{}},"\\frak":{glyph:0,arity:1,flags:{}},"\\cal":{glyph:0,arity:1,flags:{}},"\\bb":{glyph:0,arity:1,flags:{}},"\\scr":{glyph:0,arity:1,flags:{}},"\\quad":{glyph:0,arity:0,flags:{}},"\\,":{glyph:0,arity:0,flags:{}},"\\.":{glyph:0,arity:0,flags:{}},"\\;":{glyph:0,arity:0,flags:{}},"\\!":{glyph:0,arity:0,flags:{}},"\\alpha":{glyph:2127,flags:{}},"\\beta":{glyph:2128,flags:{}},"\\gamma":{glyph:2129,flags:{}},"\\delta":{glyph:2130,flags:{}},"\\varepsilon":{glyph:2131,flags:{}},"\\zeta":{glyph:2132,flags:{}},"\\eta":{glyph:2133,flags:{}},"\\vartheta":{glyph:2134,flags:{}},"\\iota":{glyph:2135,flags:{}},"\\kappa":{glyph:2136,flags:{}},"\\lambda":{glyph:2137,flags:{}},"\\mu":{glyph:2138,flags:{}},"\\nu":{glyph:2139,flags:{}},"\\xi":{glyph:2140,flags:{}},"\\omicron":{glyph:2141,flags:{}},"\\pi":{glyph:2142,flags:{}},"\\rho":{glyph:2143,flags:{}},"\\sigma":{glyph:2144,flags:{}},"\\tau":{glyph:2145,flags:{}},"\\upsilon":{glyph:2146,flags:{}},"\\varphi":{glyph:2147,flags:{}},"\\chi":{glyph:2148,flags:{}},"\\psi":{glyph:2149,flags:{}},"\\omega":{glyph:2150,flags:{}},"\\epsilon":{glyph:2184,flags:{}},"\\theta":{glyph:2185,flags:{}},"\\phi":{glyph:2186,flags:{}},"\\varsigma":{glyph:2187,flags:{}},"\\Alpha":{glyph:2027,flags:{}},"\\Beta":{glyph:2028,flags:{}},"\\Gamma":{glyph:2029,flags:{}},"\\Delta":{glyph:2030,flags:{}},"\\Epsilon":{glyph:2031,flags:{}},"\\Zeta":{glyph:2032,flags:{}},"\\Eta":{glyph:2033,flags:{}},"\\Theta":{glyph:2034,flags:{}},"\\Iota":{glyph:2035,flags:{}},"\\Kappa":{glyph:2036,flags:{}},"\\Lambda":{glyph:2037,flags:{}},"\\Mu":{glyph:2038,flags:{}},"\\Nu":{glyph:2039,flags:{}},"\\Xi":{glyph:2040,flags:{}},"\\Omicron":{glyph:2041,flags:{}},"\\Pi":{glyph:2042,flags:{}},"\\Rho":{glyph:2043,flags:{}},"\\Sigma":{glyph:2044,flags:{}},"\\Tau":{glyph:2045,flags:{}},"\\Upsilon":{glyph:2046,flags:{}},"\\Phi":{glyph:2047,flags:{}},"\\Chi":{glyph:2048,flags:{}},"\\Psi":{glyph:2049,flags:{}},"\\Omega":{glyph:2050,flags:{}}};function Fi(s,t="math"){const e=s.charCodeAt(0);if(65<=e&&e<=90){const i=e-65;return t=="text"||t=="rm"?i+2001:t=="tt"?i+501:t=="bf"||t=="bb"?i+3001:t=="sf"?i+2501:t=="frak"?i+3301:t=="scr"||t=="cal"?i+2551:i+2051}if(97<=e&&e<=122){const i=e-97;return t=="text"||t=="rm"?i+2101:t=="tt"?i+601:t=="bf"||t=="bb"?i+3101:t=="sf"?i+2601:t=="frak"?i+3401:t=="scr"||t=="cal"?i+2651:i+2151}if(48<=e&&e<=57){const i=e-48;return t=="it"?i+2750:t=="bf"?i+3200:t=="tt"?i+700:i+2200}return{".":2210,",":2211,":":2212,";":2213,"!":2214,"?":2215,"'":2216,'"':2217,"*":2219,"/":2220,"-":2231,"+":2232,"=":2238,"<":2241,">":2242,"~":2246,"@":2273,"\\":804}[s]}const te={SUB_SUP_SCALE:.5,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function yo(s){s=s.replace(/\n/g," ");let t=0;const e=[];let i="";for(;t<s.length;)s[t]==" "?i.length&&(e.push(i),i=""):s[t]=="\\"?i.length==1&&i[0]=="\\"?(i+=s[t],e.push(i),i=""):(i.length&&e.push(i),i=s[t]):/[A-Za-z0-9\.]/.test(s[t])?i+=s[t]:(i.length&&i!="\\"&&(e.push(i),i=""),i+=s[t],e.push(i),i=""),t++;return i.length&&e.push(i),e}function Go(s){return{type:ct[s]?"symb":"char",mode:"math",text:s,chld:[],bbox:null}}function ki(s){let t=0,e={type:"node",text:"",mode:"math",chld:[],bbox:null};function i(){if(s[t]!="[")return null;let r=0,o=t;for(;o<s.length;){if(s[o]=="[")r++;else if(s[o]=="]"&&(r--,!r))break;o++}const l=ki(s.slice(t+1,o));return t=o,l}function n(r){let o=t,l=o,a=0,R=0;const c=[];for(;o<s.length;){if(s[o]=="{")a||(l=o),a++;else if(s[o]=="}"){if(a--,!a&&(c.push(ki(s.slice(l+1,o))),R++,R==r))break}else if(a==0&&(c.push(Go(s[o])),R++,R==r))break;o++}return t=o,c}for(t=0;t<s.length;t++){const r=ct[s[t]],o={type:"",text:s[t],mode:"math",chld:[],bbox:null};if(r)if(r.arity){t++,o.type="func";let l=null;r.flags.opt&&(l=i(),l&&t++);const a=n(r.arity);o.chld=a,l&&o.chld.push(l)}else o.type="symb";else s[t]=="{"?(o.type="node",o.text="",o.chld=n(1)):o.type="char";e.chld.push(o)}return e.chld.length==1&&(e=e.chld[0]),e}function jn(s){let t=0;for(;t<s.length;){if(s[t].text=="\\begin"){let e;for(e=t;e<s.length&&s[e].text!="\\end";e++);const i=s.splice(t+1,e-(t+1));jn(i),s[t].text=s[t].chld[0].text,s[t].chld=i,s.splice(t+1,1)}t++}}function At(s,t,e,i,n,r){if(e==null&&(e=t),!!s.bbox){r&&(s.bbox.x*=t,s.bbox.y*=e),s.bbox.w*=t,s.bbox.h*=e;for(let o=0;o<s.chld.length;o++)At(s.chld[o],t,e,0,0,!0);s.bbox.x+=i,s.bbox.y+=n}}function ts(s){let t=1/0,e=-1/0,i=1/0,n=-1/0;for(let r=0;r<s.length;r++)!s[r].bbox||(t=Math.min(t,s[r].bbox.x),i=Math.min(i,s[r].bbox.y),e=Math.max(e,s[r].bbox.x+s[r].bbox.w),n=Math.max(n,s[r].bbox.y+s[r].bbox.h));return{x:t,y:i,w:e-t,h:n-i}}function vo(s){if(!s.length)return null;const t=ts(s);for(let i=0;i<s.length;i++)!s[i].bbox||(s[i].bbox.x-=t.x,s[i].bbox.y-=t.y);return{type:"node",text:"",mode:"math",chld:s,bbox:t}}function Jo(s,t="center"){for(let R=0;R<s.length;R++)if(s[R].text=="^"||s[R].text=="'"){let c=0,u=R;for(;u>0&&(s[u].text=="^"||s[u].text=="_"||s[u].text=="'");)u--;c=s[u].bbox.y,s[R].text=="'"?s[R].bbox.y=c:(At(s[R],te.SUB_SUP_SCALE,null,0,0),ct[s[u].text]&&ct[s[u].text].flags.big?s[R].bbox.y=c-s[R].bbox.h:s[u].text=="\\int"?s[R].bbox.y=c:s[R].bbox.y=c-s[R].bbox.h/2)}else if(s[R].text=="_"){let c=1,u=R;for(;u>0&&(s[u].text=="^"||s[u].text=="_"||s[u].text=="'");)u--;c=s[u].bbox.y+s[u].bbox.h,At(s[R],te.SUB_SUP_SCALE,null,0,0),ct[s[u].text]&&ct[s[u].text].flags.big?s[R].bbox.y=c:s[u].text=="\\int"?s[R].bbox.y=c-s[R].bbox.h:s[R].bbox.y=c-s[R].bbox.h/2}function e(R,c,u,d,g){let L=R,O=g,P=1/0,M=-1/0;for(;d>0?L<s.length:L>=0;){if(s[L].text==c)O++;else if(s[L].text==u){if(O--,O==0)break}else s[L].text=="^"||s[L].text=="_"||s[L].bbox&&(P=Math.min(P,s[L].bbox.y),M=Math.max(M,s[L].bbox.y+s[L].bbox.h));L+=d}return[P,M]}for(let R=0;R<s.length;R++)if(s[R].text=="\\left"){const[c,u]=e(R,"\\left","\\right",1,0);c!=1/0&&u!=-1/0&&(s[R].bbox.y=c,At(s[R],1,(u-c)/s[R].bbox.h,0,0))}else if(s[R].text=="\\right"){const[c,u]=e(R,"\\right","\\left",-1,0);c!=1/0&&u!=-1/0&&(s[R].bbox.y=c,At(s[R],1,(u-c)/s[R].bbox.h,0,0))}else if(s[R].text=="\\middle"){const[c,u]=e(R,"\\right","\\left",-1,1),[d,g]=e(R,"\\left","\\right",1,1),L=Math.min(c,d),O=Math.max(u,g);L!=1/0&&O!=-1/0&&(s[R].bbox.y=L,At(s[R],1,(O-L)/s[R].bbox.h,0,0))}if(!s.some(R=>R.text=="&"||R.text=="\\\\"))return;const i=[];let n=[],r=[];for(let R=0;R<s.length;R++)s[R].text=="&"?(n.push(r),r=[]):s[R].text=="\\\\"?(r.length&&(n.push(r),r=[]),i.push(n),n=[]):r.push(s[R]);r.length&&n.push(r),n.length&&i.push(n);const o=[],l=[];for(let R=0;R<i.length;R++){const c=[];for(let u=0;u<i[R].length;u++){const d=vo(i[R][u]);d&&(o[u]=o[u]||0,o[u]=Math.max(d.bbox.w+1,o[u])),c[u]=d}l.push(c)}const a=[];for(let R=0;R<l.length;R++){let c=1/0,u=-1/0;for(let d=0;d<l[R].length;d++)!l[R][d]||(c=Math.min(c,l[R][d].bbox.y),u=Math.max(u,l[R][d].bbox.y+l[R][d].bbox.h));a.push([c,u])}for(let R=0;R<a.length;R++)(a[R][0]==1/0||a[R][1]==1/0)&&(a[R][0]=R==0?0:a[R-1][1],a[R][1]=a[R][0]+2);for(let R=1;R<l.length;R++){const c=a[R-1][1]-a[R][0]+te.LINE_SPACING;for(let u=0;u<l[R].length;u++)l[R][u]&&(l[R][u].bbox.y+=c);a[R][0]+=c,a[R][1]+=c}s.splice(0,s.length);for(let R=0;R<l.length;R++){let c=0;for(let u=0;u<l[R].length;u++){const d=l[R][u];if(!d){c+=o[u];continue}d.bbox.x+=c,c+=o[u]-d.bbox.w,t=="center"?d.bbox.x+=(o[u]-d.bbox.w)/2:t=="left"||(t=="right"||t=="equation"&&u!=l[R].length-1)&&(d.bbox.x+=o[u]-d.bbox.w),s.push(d)}}}function ge(s,t="math"){var i,n,r;const e=(i={"\\text":"text","\\mathnormal":"math","\\mathrm":"rm","\\mathit":"it","\\mathbf":"bf","\\mathsf":"sf","\\mathtt":"tt","\\mathfrak":"frak","\\mathcal":"cal","\\mathbb":"bb","\\mathscr":"scr","\\rm":"rm","\\it":"it","\\bf":"bf","\\sf":"tt","\\tt":"tt","\\frak":"frak","\\cal":"cal","\\bb":"bb","\\scr":"scr"}[s.text])!=null?i:t;if(!s.chld.length){if(ct[s.text])if(ct[s.text].flags.big)s.text=="\\lim"?s.bbox={x:0,y:0,w:3.5,h:2}:s.bbox={x:0,y:-.5,w:3,h:3};else if(ct[s.text].flags.txt){let o=0;for(let l=1;l<s.text.length;l++)o+=Ce(Fi(s.text[l],"text")).w;o/=16,s.bbox={x:0,y:0,w:o,h:2}}else if(ct[s.text].glyph){let o=Ce(ct[s.text].glyph).w;o/=16,s.text=="\\int"||s.text=="\\oint"?s.bbox={x:0,y:-1.5,w:o,h:5}:s.bbox={x:0,y:0,w:o,h:2}}else s.bbox={x:0,y:0,w:1,h:2};else{let o=0;for(let l=0;l<s.text.length;l++)!Ce(Fi(s.text[l],e))||(e=="tt"?o+=16:o+=Ce(Fi(s.text[l],e)).w);o/=16,s.bbox={x:0,y:0,w:o,h:2}}s.mode=e;return}if(s.text=="\\frac"){const o=s.chld[0],l=s.chld[1],a=te.FRAC_SCALE;ge(o),ge(l),o.bbox.x=0,o.bbox.y=0,l.bbox.x=0,l.bbox.y=0;const R=Math.max(o.bbox.w,l.bbox.w)*a;At(o,a,null,(R-o.bbox.w*a)/2,0),At(l,a,null,(R-l.bbox.w*a)/2,o.bbox.h+te.FRAC_SPACING),s.bbox={x:0,y:-o.bbox.h+1-te.FRAC_SPACING/2,w:R,h:o.bbox.h+l.bbox.h+te.FRAC_SPACING}}else if(s.text=="\\binom"){const o=s.chld[0],l=s.chld[1];ge(o),ge(l),o.bbox.x=0,o.bbox.y=0,l.bbox.x=0,l.bbox.y=0;const a=Math.max(o.bbox.w,l.bbox.w);At(o,1,null,(a-o.bbox.w)/2+1,0),At(l,1,null,(a-l.bbox.w)/2+1,o.bbox.h),s.bbox={x:0,y:-o.bbox.h+1,w:a+2,h:o.bbox.h+l.bbox.h}}else if(s.text=="\\sqrt"){const o=s.chld[0];ge(o);const l=s.chld[1];let a=0;l&&(ge(l),a=Math.max(l.bbox.w*te.SQRT_MAG_SCALE-.5,0),At(l,te.SQRT_MAG_SCALE,null,0,.5)),At(o,1,null,1+a,.5),s.bbox={x:0,y:2-o.bbox.h-.5,w:o.bbox.w+1+a,h:o.bbox.h+.5}}else if(ct[s.text]&&ct[s.text].flags.hat){const o=s.chld[0];ge(o);const l=o.bbox.y-.5;o.bbox.y=.5,s.bbox={x:0,y:l,w:o.bbox.w,h:o.bbox.h+.5}}else if(ct[s.text]&&ct[s.text].flags.mat){const o=s.chld[0];ge(o),s.bbox={x:0,y:0,w:o.bbox.w,h:o.bbox.h+.5}}else{let o=0,l=0,a=1;for(let L=0;L<s.chld.length;L++){const O=s.chld[L],P=(n={"\\quad":2,"\\,":2*3/18,"\\:":2*4/18,"\\;":2*5/18,"\\!":2*-3/18}[O.text])!=null?n:null;if(O.text=="\\\\"){l+=a,o=0,a=1;continue}else{if(O.text=="&")continue;if(P!=null){o+=P;continue}else{if(ge(O,e),At(O,1,null,o,l),O.text=="^"||O.text=="_"||O.text=="'"){let M=L;for(;M>0&&(s.chld[M].text=="^"||s.chld[M].text=="_"||s.chld[M].text=="'");)M--;const T=ct[s.chld[M].text]&&ct[s.chld[M].text].flags.big;if(O.text=="'"){let X=M+1,S=0;for(;X<L;)s.chld[X].text=="'"&&S++,X++;O.bbox.x=s.chld[M].bbox.x+s.chld[M].bbox.w+O.bbox.w*S,o=Math.max(o,O.bbox.x+O.bbox.w)}else if(T){const X=s.chld[M].bbox.x+(s.chld[M].bbox.w-O.bbox.w*te.SUB_SUP_SCALE)/2;O.bbox.x=X,o=Math.max(o,s.chld[M].bbox.x+s.chld[M].bbox.w+(O.bbox.w*te.SUB_SUP_SCALE-s.chld[M].bbox.w)/2)}else O.bbox.x=s.chld[M].bbox.x+s.chld[M].bbox.w,o=Math.max(o,O.bbox.x+O.bbox.w*te.SUB_SUP_SCALE)}else o+=O.bbox.w;t=="text"&&(o+=1),a=Math.max(O.bbox.y+O.bbox.h-l,a)}}}l+=a;const R={bmatrix:["[","]"],pmatrix:["(",")"],Bmatrix:["\\{","\\}"],cases:["\\{"]},c=(r={bmatrix:"center",pmatrix:"center",Bmatrix:"center",cases:"left",matrix:"center",aligned:"equation"}[s.text])!=null?r:"left",u=!!R[s.text],d=!!R[s.text]&&R[s.text].length>1;Jo(s.chld,c);const g=ts(s.chld);s.text=="\\text"&&(g.x-=1,g.w+=2);for(let L=0;L<s.chld.length;L++)At(s.chld[L],1,null,-g.x+(u?1.5:0),-g.y);s.bbox={x:0,y:0,w:g.w+1.5*Number(u)+1.5*Number(d),h:g.h},u&&s.chld.unshift({type:"symb",text:R[s.text][0],mode:s.mode,chld:[],bbox:{x:0,y:0,w:1,h:g.h}}),d&&s.chld.push({type:"symb",text:R[s.text][1],mode:s.mode,chld:[],bbox:{x:g.w+2,y:0,w:1,h:g.h}}),(u||d||s.text=="matrix")&&(s.type="node",s.text="",s.bbox.y-=(s.bbox.h-2)/2)}}function Ao(s){function t(i,n,r){const o=[];if(i.bbox){if(n+=i.bbox.x,r+=i.bbox.y,i.text=="\\frac"){const l=i.chld[1].bbox.y-(i.chld[0].bbox.y+i.chld[0].bbox.h),a={type:"symb",mode:i.mode,text:"\\bar",bbox:{x:n,y:r+(i.chld[1].bbox.y-l/2)-l/2,w:i.bbox.w,h:l},chld:[]};o.push(a)}else if(i.text=="\\sqrt"){const l=i.chld[0].bbox.y,a=Math.max(0,i.chld[0].bbox.x-i.chld[0].bbox.h/2),R={type:"symb",mode:i.mode,text:"\\sqrt",bbox:{x:n+a,y:r+l/2,w:i.chld[0].bbox.x-a,h:i.bbox.h-l/2},chld:[]};o.push(R),o.push({type:"symb",text:"\\bar",mode:i.mode,bbox:{x:n+i.chld[0].bbox.x,y:r,w:i.bbox.w-i.chld[0].bbox.x,h:l},chld:[]})}else if(i.text=="\\binom"){const l=Math.min(i.chld[0].bbox.x,i.chld[1].bbox.x),a={type:"symb",mode:i.mode,text:"(",bbox:{x:n,y:r,w:l,h:i.bbox.h},chld:[]};o.push(a),o.push({type:"symb",text:")",mode:i.mode,bbox:{x:n+i.bbox.w-l,y:r,w:l,h:i.bbox.h},chld:[]})}else if(ct[i.text]&&ct[i.text].flags.hat){const l=i.chld[0].bbox.y,a={type:"symb",mode:i.mode,text:i.text,bbox:{x:n,y:r,w:i.bbox.w,h:l},chld:[]};o.push(a)}else if(ct[i.text]&&ct[i.text].flags.mat){const l=i.chld[0].bbox.h,a={type:"symb",text:i.text,mode:i.mode,bbox:{x:n,y:r+l,w:i.bbox.w,h:i.bbox.h-l},chld:[]};o.push(a)}else if(i.type!="node"&&i.text!="^"&&i.text!="_"){const l={type:i.type=="func"?"symb":i.type,text:i.text,mode:i.mode,bbox:{x:n,y:r,w:i.bbox.w,h:i.bbox.h},chld:[]};o.push(l)}}for(let l=0;l<i.chld.length;l++){const a=t(i.chld[l],n,r);o.push(...a)}return o}const e=t(s,-s.bbox.x,-s.bbox.y);s.type="node",s.text="",s.chld=e}function Bo(s){const t=[];for(let e=0;e<s.chld.length;e++){const i=s.chld[e];let n=i.bbox.h/2,r=!1;if(ct[i.text]&&ct[i.text].flags.hat&&!ct[i.text].flags.xfl&&!ct[i.text].flags.yfl&&(n*=4,r=!0),ct[i.text]&&ct[i.text].glyph){const o=Ce(ct[i.text].glyph);for(let l=0;l<o.polylines.length;l++){const a=[];for(let R=0;R<o.polylines[l].length;R++){let c=o.polylines[l][R][0],u=o.polylines[l][R][1];if(ct[i.text].flags.xfl)c=(c-o.xmin)/Math.max(o.xmax-o.xmin,1)*i.bbox.w,c+=i.bbox.x;else if(o.w/16*n>i.bbox.w)c=c/Math.max(o.w,1)*i.bbox.w,c+=i.bbox.x;else{c=c/16*n;const d=(i.bbox.w-o.w/16*n)/2;c+=i.bbox.x+d}ct[i.text].flags.yfl?(u=(u-o.ymin)/Math.max(o.ymax-o.ymin,1)*i.bbox.h,u+=i.bbox.y):(u=u/16*n,r&&(u-=(o.ymax+o.ymin)/2/16*n),u+=i.bbox.y+i.bbox.h/2),a.push([c,u])}t.push(a)}}else if(ct[i.text]&&ct[i.text].flags.txt||i.type=="char"){let o=i.bbox.x;const l=!!(ct[i.text]&&ct[i.text].flags.txt);for(let a=Number(l);a<i.text.length;a++){const R=Ce(Fi(i.text[a],l?"text":i.mode));if(!R){console.warn("unmapped character: "+i.text[a]);continue}for(let c=0;c<R.polylines.length;c++){const u=[];for(let d=0;d<R.polylines[c].length;d++){let g=R.polylines[c][d][0],L=R.polylines[c][d][1];g/=16,L/=16,g*=n,L*=n,i.mode=="tt"&&(R.w>16?g*=16/R.w:g+=(16-R.w)/2/16),g+=o,L+=i.bbox.y+i.bbox.h/2,u.push([g,L])}t.push(u)}i.mode=="tt"?o+=n:o+=R.w/16*n}}}return t}function Le(s){return Math.round(s*100)/100}class ko{constructor(t){h(this,"_latex");h(this,"_tree");h(this,"_tokens");h(this,"_polylines");this._latex=t,this._tokens=yo(t),this._tree=ki(this._tokens),jn(this._tree.chld),ge(this._tree),Ao(this._tree),this._polylines=Bo(this._tree)}resolveScale(t){var o,l,a,R;if(t==null)return[16,16,16,16];let e=(o=t.SCALE_X)!=null?o:16,i=(l=t.SCALE_Y)!=null?l:16;if(t.MIN_CHAR_H!=null){let c=0;for(let d=0;d<this._tree.chld.length;d++){const g=this._tree.chld[d];(g.type=="char"||ct[g.text]&&(ct[g.text].flags.txt||!Object.keys(ct[g.text].flags).length))&&(c=Math.min(g.bbox.h,c))}const u=Math.max(1,t.MIN_CHAR_H/c);e*=u,i*=u}if(t.MAX_W!=null){const c=e;e=Math.min(e,t.MAX_W/this._tree.bbox.w),i*=e/c}if(t.MAX_H!=null){const c=i;i=Math.min(i,t.MAX_H/this._tree.bbox.h),e*=i/c}const n=(a=t.MARGIN_X)!=null?a:e,r=(R=t.MARGIN_Y)!=null?R:i;return[n,r,e,i]}polylines(t){t||(t={});const e=[],[i,n,r,o]=this.resolveScale(t);for(let l=0;l<this._polylines.length;l++){e.push([]);for(let a=0;a<this._polylines[l].length;a++){const[R,c]=this._polylines[l][a];e[e.length-1].push([i+R*r,n+c*o])}}return e}pathd(t){t||(t={});let e="";const[i,n,r,o]=this.resolveScale(t);for(let l=0;l<this._polylines.length;l++)for(let a=0;a<this._polylines[l].length;a++){const[R,c]=this._polylines[l][a];e+=a?"L":"M",e+=`${Le(i+R*r)} ${Le(n+c*o)}`}return e}svg(t){var R,c;t||(t={});const[e,i,n,r]=this.resolveScale(t),o=Le(this._tree.bbox.w*n+e*2),l=Le(this._tree.bbox.h*r+i*2);let a=`<svg
xmlns="http://www.w3.org/2000/svg"
width="${o}" height="${l}"
fill="none" stroke="${(R=t.FG_COLOR)!=null?R:"black"}" stroke-width="${(c=t.STROKE_W)!=null?c:1}"
stroke-linecap="round" stroke-linejoin="round"
>`;t.BG_COLOR&&(a+=`<rect x="${0}" y="${0}" width="${o}" height="${l}" fill="${t.BG_COLOR}" stroke="none"></rect>`),a+='<path d="';for(let u=0;u<this._polylines.length;u++){a+="M";for(let d=0;d<this._polylines[u].length;d++){const[g,L]=this._polylines[u][d];a+=Le(e+g*n)+" "+Le(i+L*r)+" "}}return a+='"/>',a+="</svg>",{svg:`data:image/svg+xml;base64,${window.btoa(a)}`,width:Math.ceil(o),height:Math.ceil(l)}}pdf(t){var u;t||(t={});const[e,i,n,r]=this.resolveScale(t),o=Le(this._tree.bbox.w*n+e*2),l=Le(this._tree.bbox.h*r+i*2);let a=`%PDF-1.1
%%\xA5\xB1\xEB
1 0 obj
<< /Type /Catalog
/Pages 2 0 R
>>endobj
2 0 obj
<< /Type /Pages
/Kids [3 0 R]
/Count 1
/MediaBox [0 0 ${o} ${l}]
>>
endobj
3 0 obj
<< /Type /Page
/Parent 2 0 R
/Resources
<< /Font
<< /F1
<< /Type /Font
/Subtype /Type1
/BaseFont /Times-Roman
>>
>>
>>
/Contents [`,R="",c=4;for(let d=0;d<this._polylines.length;d++){R+=`${c} 0 obj
<< /Length 0 >>
stream
1 j 1 J ${(u=t.STROKE_W)!=null?u:1} w
`;for(let g=0;g<this._polylines[d].length;g++){const[L,O]=this._polylines[d][g];R+=`${Le(e+L*n)} ${Le(l-(i+O*r))} ${g?"l":"m"} `}R+=`
S
endstream
endobj
`,a+=`${c} 0 R `,c++}return a+=`]
>>
endobj
`,R+=`
trailer
<< /Root 1 0 R
/Size 0
>>startxref
%%EOF
`,a+R}boxes(t){t||(t={});const[e,i,n,r]=this.resolveScale(t),o=[];for(let l=0;l<this._tree.chld.length;l++){const{x:a,y:R,w:c,h:u}=this._tree.chld[l].bbox;o.push({x:e+a*n,y:i+R*r,w:c*n,h:u*r})}return o}box(t){t||(t={});const[e,i,n,r]=this.resolveScale(t);return{x:e+this._tree.bbox.x*n,y:i+this._tree.bbox.y*r,w:this._tree.bbox.w*n,h:this._tree.bbox.h*r}}}class es extends qn{static convertLaTextToSVG(t){return new ko(t).svg({SCALE_X:10,SCALE_Y:10,MARGIN_X:0,MARGIN_Y:0})}render(t,e,i,n){const{scale:r}=this.options,o=e.width*r,l=e.height*r;if(this.imageCache.has(e.value)){const a=this.imageCache.get(e.value);t.drawImage(a,i,n,o,l)}else{const a=new Promise((R,c)=>{const u=new Image;u.src=e.laTexSVG,u.onload=()=>{t.drawImage(u,i,n,o,l),this.imageCache.set(e.value,u),R(e)},u.onerror=d=>{c(d)}});this.addImageObserver(a)}}}var oe;(function(s){s.UL="ul",s.OL="ol"})(oe||(oe={}));var re;(function(s){s.DISC="disc",s.CIRCLE="circle",s.SQUARE="square",s.CHECKBOX="checkbox"})(re||(re={}));var _i;(function(s){s.DECIMAL="decimal"})(_i||(_i={}));var Gt;(function(s){s[s.DISC=re.DISC]="DISC",s[s.CIRCLE=re.CIRCLE]="CIRCLE",s[s.SQUARE=re.SQUARE]="SQUARE",s[s.DECIMAL=_i.DECIMAL]="DECIMAL",s[s.CHECKBOX=re.CHECKBOX]="CHECKBOX"})(Gt||(Gt={}));const zi={[re.DISC]:"\u2022",[re.CIRCLE]:"\u25E6",[re.SQUARE]:"\u25AB\uFE0E",[re.CHECKBOX]:"\u2611\uFE0F"},_o={[oe.OL]:"ol",[oe.UL]:"ul"},zo={[Gt.DISC]:"disc",[Gt.CIRCLE]:"circle",[Gt.SQUARE]:"square",[Gt.DECIMAL]:"decimal",[Gt.CHECKBOX]:"checkbox"};var ht;(function(s){s.FIRST="first",s.SECOND="second",s.THIRD="third",s.FOURTH="fourth",s.FIFTH="fifth",s.SIXTH="sixth"})(ht||(ht={}));const $o={defaultFirstSize:26,defaultSecondSize:24,defaultThirdSize:22,defaultFourthSize:20,defaultFifthSize:18,defaultSixthSize:16},is={[ht.FIRST]:"defaultFirstSize",[ht.SECOND]:"defaultSecondSize",[ht.THIRD]:"defaultThirdSize",[ht.FOURTH]:"defaultFourthSize",[ht.FIFTH]:"defaultFifthSize",[ht.SIXTH]:"defaultSixthSize"},$i={[ht.FIRST]:1,[ht.SECOND]:2,[ht.THIRD]:3,[ht.FOURTH]:4,[ht.FIFTH]:5,[ht.SIXTH]:6},qo={H1:ht.FIRST,H2:ht.SECOND,H3:ht.THIRD,H4:ht.FOURTH,H5:ht.FIFTH,H6:ht.SIXTH};var dt;(function(s){s.TEXT="text",s.SELECT="select",s.CHECKBOX="checkbox",s.RADIO="radio",s.DATE="date"})(dt||(dt={}));var D;(function(s){s.PREFIX="prefix",s.POSTFIX="postfix",s.PLACEHOLDER="placeholder",s.VALUE="value",s.CHECKBOX="checkbox",s.RADIO="radio"})(D||(D={}));var qi;(function(s){s.ROW_START="rowStart",s.VALUE_START="valueStart"})(qi||(qi={}));var fi;(function(s){s.CONTAIN="contain",s.COVER="cover"})(fi||(fi={}));var pe;(function(s){s.REPEAT="repeat",s.NO_REPEAT="no-repeat",s.REPEAT_X="repeat-x",s.REPEAT_Y="repeat-y"})(pe||(pe={}));const jo={color:"#FFFFFF",image:"",size:fi.COVER,repeat:pe.NO_REPEAT,applyPageNumbers:[]};var It;(function(s){s.TOP="top",s.MIDDLE="middle",s.BOTTOM="bottom"})(It||(It={}));const tr={width:14,height:14,gap:5,lineWidth:1,fillStyle:"#5175f4",strokeStyle:"#ffffff",verticalAlign:It.BOTTOM},er={placeholderColor:"#9c9b9b",bracketColor:"#000000",prefix:"{",postfix:"}",borderWidth:1,borderColor:"#000000",activeBackgroundColor:""},ir={bottom:30,maxHeightRadio:Ue.HALF,disabled:!1,editable:!0},nr={opacity:.1,backgroundColor:"#E99D00",activeOpacity:.5,activeBackgroundColor:"#E99D00",disabled:!1},sr={top:30,maxHeightRadio:Ue.HALF,disabled:!1,editable:!0},or={disabled:!0,color:"#CCCCCC",lineWidth:1.5},rr={font:"Microsoft YaHei",fontSize:12,lineDash:[3,1]},ji={PAGE_NO:"{pageNo}",PAGE_COUNT:"{pageCount}"},lr={bottom:60,size:12,font:"Microsoft YaHei",color:"#000000",rowFlex:at.CENTER,format:ji.PAGE_NO,numberType:ei.ARABIC,disabled:!1,startPageNo:1,fromPageNo:0,maxPageNo:null},ar={data:"",color:"#DCDFE6",opacity:1,size:16,font:"Microsoft YaHei"},Rr={width:14,height:14,gap:5,lineWidth:1,fillStyle:"#5175f4",strokeStyle:"#000000",verticalAlign:It.BOTTOM},cr={lineWidth:1,strokeStyle:"#000000"},ur={tdPadding:[0,5,5,5],defaultTrMinHeight:42,defaultColMinWidth:40},tn={data:"",color:"#AEB5C0",opacity:.3,size:200,font:"Microsoft YaHei",repeat:!1,gap:[10,10]},dr={tipDisabled:!0};var pi;(function(s){s.PAGE="page",s.CONTINUITY="continuity"})(pi||(pi={}));const hr={size:12,font:"Microsoft YaHei",color:"#000000",disabled:!0,right:20,type:pi.CONTINUITY},gr={color:"#000000",lineWidth:1,padding:[0,5,0,5],disabled:!0};var le;(function(s){s.COMPONENT="component",s.MENU="menu",s.MAIN="main",s.FOOTER="footer",s.CONTEXTMENU="contextmenu",s.POPUP="popup",s.CATALOG="catalog",s.COMMENT="comment"})(le||(le={}));var Pe;(function(s){s.PAGE="page",s.TABLE="table"})(Pe||(Pe={}));var Rt;(function(s){s.EDIT="edit",s.CLEAN="clean",s.READONLY="readonly",s.FORM="form",s.PRINT="print",s.DESIGN="design"})(Rt||(Rt={}));var lt;(function(s){s.HEADER="header",s.MAIN="main",s.FOOTER="footer"})(lt||(lt={}));var me;(function(s){s.PAGING="paging",s.CONTINUITY="continuity"})(me||(me={}));var Oe;(function(s){s.VERTICAL="vertical",s.HORIZONTAL="horizontal"})(Oe||(Oe={}));var mi;(function(s){s.BREAK_ALL="break-all",s.BREAK_WORD="break-word"})(mi||(mi={}));var Ii;(function(s){s.SPEED="speed",s.COMPATIBILITY="compatibility"})(Ii||(Ii={}));function en(s={}){const t=E(E({},ur),s.table),e=E(E({},sr),s.header),i=E(E({},ir),s.footer),n=E(E({},lr),s.pageNumber),r=E(E({},tn),s.watermark),o=E(E({},er),s.control),l=E(E({},tr),s.checkbox),a=E(E({},Rr),s.radio),R=E(E({},Zo),s.cursor),c=E(E({},$o),s.title),u=E(E({},ar),s.placeholder),d=E(E({},nr),s.group),g=E(E({},rr),s.pageBreak),L=E(E({},dr),s.zone),O=E(E({},jo),s.background),P=E(E({},or),s.lineBreak),M=E(E({},cr),s.separator),T=E(E({},hr),s.lineNumber),X=E(E({},gr),s.pageBorder);return q(E({mode:Rt.EDIT,defaultType:"TEXT",defaultColor:"#000000",defaultFont:"Microsoft YaHei",defaultSize:16,minSize:5,maxSize:72,defaultRowMargin:1,defaultBasicRowMarginHeight:8,defaultTabWidth:32,width:794,height:1123,scale:1,pageGap:20,underlineColor:"#000000",strikeoutColor:"#FF0000",rangeAlpha:.6,rangeColor:"#AECBFA",rangeMinWidth:5,searchMatchAlpha:.6,searchMatchColor:"#FFFF00",searchNavigateMatchColor:"#AAD280",highlightAlpha:.6,resizerColor:"#4182D9",resizerSize:5,marginIndicatorSize:35,marginIndicatorColor:"#BABABA",margins:[100,120,100,120],pageMode:me.PAGING,renderMode:Ii.SPEED,defaultHyperlinkColor:"#0000FF",paperDirection:Oe.VERTICAL,inactiveAlpha:.6,historyMaxRecordCount:100,wordBreak:mi.BREAK_WORD,printPixelRatio:3,maskMargin:[0,0,0,0],letterClass:[Mo.ENGLISH],contextMenuDisableKeys:[],scrollContainerSelector:""},s),{table:t,header:e,footer:i,pageNumber:n,watermark:r,control:o,checkbox:l,radio:a,cursor:R,title:c,placeholder:u,group:d,pageBreak:g,zone:L,background:O,lineBreak:P,separator:M,lineNumber:T,pageBorder:X})}function ns(s){const t=[];for(let e=0;e<s.length;e++){const i=s[e],n=jt(i.value);for(let r=0;r<n.length;r++)t.push(q(E({},i),{value:n[r]}))}return t}function Bt(s,t){const{isHandleFirstElement:e=!0,isForceCompensation:i=!1,editorOptions:n}=t,r=s[0];(i||e&&(r==null?void 0:r.type)!==N.LIST&&((r==null?void 0:r.type)&&r.type!==N.TEXT||!Hi.test(r==null?void 0:r.value)))&&s.unshift({value:k});let o=0;for(;o<s.length;){let l=s[o];if(l.type===N.TITLE){s.splice(o,1);const a=l.valueList||[];if(Bt(a,q(E({},t),{isHandleFirstElement:!1,isForceCompensation:!1})),a.length){const R=Mt(),c=n.title;for(let u=0;u<a.length;u++){const d=a[u];d.title=l.title,l.level&&(d.titleId=R,d.level=l.level),os(d)&&(d.size||(d.size=c[is[d.level]]),d.bold===void 0&&(d.bold=!0)),s.splice(o,0,d),o++}}o--}else if(l.type===N.LIST){s.splice(o,1);const a=l.valueList||[];if(Bt(a,q(E({},t),{isHandleFirstElement:!0,isForceCompensation:!1})),a.length){const R=Mt();for(let c=0;c<a.length;c++){const u=a[c];u.listId=R,u.listType=l.listType,u.listStyle=l.listStyle,s.splice(o,0,u),o++}}o--}else if(l.type===N.TABLE){const a=Mt();if(l.id=a,l.trList){const{defaultTrMinHeight:R}=n.table;for(let c=0;c<l.trList.length;c++){const u=l.trList[c],d=Mt();u.id=d,(!u.minHeight||u.minHeight<R)&&(u.minHeight=R),u.height<u.minHeight&&(u.height=u.minHeight);for(let g=0;g<u.tdList.length;g++){const L=u.tdList[g],O=Mt();L.id=O,Bt(L.value,q(E({},t),{isHandleFirstElement:!0,isForceCompensation:!0}));for(let P=0;P<L.value.length;P++){const M=L.value[P];M.tdId=O,M.trId=d,M.tableId=a}}}}}else if(l.type===N.HYPERLINK){s.splice(o,1);const a=ns(l.valueList||[]);if(a.length){const R=Mt();for(let c=0;c<a.length;c++){const u=a[c];u.type=l.type,u.url=l.url,u.hyperlinkId=R,s.splice(o,0,u),o++}}o--}else if(l.type===N.DATE){s.splice(o,1);const a=ns(l.valueList||[]);if(a.length){const R=Mt();for(let c=0;c<a.length;c++){const u=a[c];u.type=l.type,u.dateFormat=l.dateFormat,u.dateId=R,s.splice(o,0,u),o++}}o--}else if(l.type===N.CONTROL){if(!l.control){o++;continue}const{prefix:a,postfix:R,value:c,placeholder:u,code:d,type:g,valueSets:L}=l.control,{editorOptions:{control:O,checkbox:P,radio:M}}=t,T=Mt();s.splice(o,1);const X=ne(l,[...$n,...Ze]),S=ne(l.control,fe),F=q(E({},S),{color:n.control.bracketColor}),W=jt(a||O.prefix);for(let Z=0;Z<W.length;Z++){const V=W[Z];s.splice(o,0,q(E(E({},X),F),{controlId:T,value:V,type:l.type,control:l.control,controlComponent:D.PREFIX})),o++}if(c&&c.length||g===dt.CHECKBOX||g===dt.RADIO||g===dt.SELECT&&d&&(!c||!c.length)){let Z=c||[];if(g===dt.CHECKBOX){const V=d?d.split(","):[];if(Array.isArray(L)&&L.length){const m=Z.reduce((Q,U)=>Q.concat(U.value.split("").map(f=>q(E({},U),{value:f}))),[]);let Y=0;for(let Q=0;Q<L.length;Q++){const U=L[Q];s.splice(o,0,q(E(E({},X),S),{controlId:T,value:"",type:l.type,control:l.control,controlComponent:D.CHECKBOX,checkbox:{code:U.code,value:V.includes(U.code)}})),o++;const f=jt(U.value);for(let b=0;b<f.length;b++){const G=f[b],x=b===f.length-1;s.splice(o,0,q(E(E(E({},X),S),m[Y]),{controlId:T,value:G===`
`?k:G,letterSpacing:x?P.gap:0,control:l.control,controlComponent:D.VALUE})),Y++,o++}}}}else if(g===dt.RADIO){if(Array.isArray(L)&&L.length){const V=Z.reduce((Y,Q)=>Y.concat(Q.value.split("").map(U=>q(E({},Q),{value:U}))),[]);let m=0;for(let Y=0;Y<L.length;Y++){const Q=L[Y];s.splice(o,0,q(E(E({},X),S),{controlId:T,value:"",type:l.type,control:l.control,controlComponent:D.RADIO,radio:{code:Q.code,value:d===Q.code}})),o++;const U=jt(Q.value);for(let f=0;f<U.length;f++){const b=U[f],G=f===U.length-1;s.splice(o,0,q(E(E(E({},X),S),V[m]),{controlId:T,value:b===`
`?k:b,letterSpacing:G?M.gap:0,control:l.control,controlComponent:D.VALUE})),m++,o++}}}}else{if((!c||!c.length)&&Array.isArray(L)&&L.length){const V=L.find(m=>m.code===d);V&&(Z=[{value:V.value}])}Bt(Z,q(E({},t),{isHandleFirstElement:!1,isForceCompensation:!1}));for(let V=0;V<Z.length;V++){const m=Z[V],Y=m.value;s.splice(o,0,q(E(E(E({},X),S),m),{controlId:T,value:Y===`
`?k:Y,type:m.type||N.TEXT,control:l.control,controlComponent:D.VALUE})),o++}}}else if(u){const Z=q(E({},S),{color:n.control.placeholderColor}),V=jt(u);for(let m=0;m<V.length;m++){const Y=V[m];s.splice(o,0,q(E(E({},X),Z),{controlId:T,value:Y===`
`?k:Y,type:l.type,control:l.control,controlComponent:D.PLACEHOLDER})),o++}}const I=jt(R||O.postfix);for(let Z=0;Z<I.length;Z++){const V=I[Z];s.splice(o,0,q(E(E({},X),F),{controlId:T,value:V,type:l.type,control:l.control,controlComponent:D.POSTFIX})),o++}o--}else if((!l.type||se.includes(l.type))&&l.value.length>1){s.splice(o,1);const a=jt(l.value);for(let R=0;R<a.length;R++)s.splice(o+R,0,q(E({},l),{value:a[R]}));l=s[o]}if((l.value===`
`||l.value==`\r
`)&&(l.value=k),(l.type===N.IMAGE||l.type===N.BLOCK)&&(l.id=Mt()),l.type===N.LATEX){const{svg:a,width:R,height:c}=es.convertLaTextToSVG(l.value);l.width=l.width||R,l.height=l.height||c,l.laTexSVG=a,l.id=Mt()}o++}}function Lr(s,t){const e=Object.keys(s),i=Object.keys(t);if(e.length!==i.length)return!1;for(let n=0;n<e.length;n++){const r=e[n];if(r!=="value"&&!(r==="groupIds"&&Array.isArray(s[r])&&Array.isArray(t[r])&&Wo(s[r],t[r]))&&s[r]!==t[r])return!1}return!0}function we(s,t={}){const{extraPickAttrs:e}=t,i=Do;e&&i.push(...e);const n={value:s.value===k?`
`:s.value};return i.forEach(r=>{const o=s[r];o!==void 0&&(n[r]=o)}),n}function Tt(s,t={}){const{extraPickAttrs:e}=t,i=Ot(s),n=[];let r=0;for(;r<i.length;){let o=i[r];if(r===0&&o.value===k&&!o.listId&&(!o.type||o.type===N.TEXT)){r++;continue}if(o.titleId&&o.level){const a=o.titleId;if(a){const R=o.level,c={type:N.TITLE,title:o.title,value:"",level:R},u=[];for(;r<i.length;){const d=i[r];if(a!==d.titleId){r--;break}delete d.level,delete d.title,u.push(d),r++}c.valueList=Tt(u,t),o=c}}else if(o.listId&&o.listType){const a=o.listId;if(a){const R=o.listType,c=o.listStyle,u={type:N.LIST,value:"",listId:a,listType:R,listStyle:c},d=[];for(;r<i.length;){const g=i[r];if(a!==g.listId){r--;break}delete g.listType,delete g.listStyle,d.push(g),r++}u.valueList=Tt(d,t),o=u}}else if(o.type===N.TABLE){if(o.pagingId){let a=r+1,R=0;for(;a<i.length;){const c=i[a];if(c.pagingId===o.pagingId)o.height+=c.height,o.trList.push(...c.trList),a++,R++;else break}r+=R}if(o.trList)for(let a=0;a<o.trList.length;a++){const R=o.trList[a];delete R.id;for(let c=0;c<R.tdList.length;c++){const u=R.tdList[c],d={colspan:u.colspan,rowspan:u.rowspan,value:Tt(u.value,t)};Ko.forEach(g=>{const L=u[g];L!==void 0&&(d[g]=L)}),R.tdList[c]=d}}}else if(o.type===N.HYPERLINK){const a=o.hyperlinkId;if(a){const R={type:N.HYPERLINK,value:"",url:o.url},c=[];for(;r<i.length;){const u=i[r];if(a!==u.hyperlinkId){r--;break}delete u.type,delete u.url,c.push(u),r++}R.valueList=Tt(c,t),o=R}}else if(o.type===N.DATE){const a=o.dateId;if(a){const R={type:N.DATE,value:"",dateFormat:o.dateFormat},c=[];for(;r<i.length;){const u=i[r];if(a!==u.dateId){r--;break}delete u.type,delete u.dateFormat,c.push(u),r++}R.valueList=Tt(c,t),o=R}}else if(o.controlId){const a=o.controlId;if(a){const R=ne(o,fe),c=E(E({},o.control),R),u=q(E({},ne(o,Ze)),{type:N.CONTROL,value:"",control:c,controlId:a}),d=[];for(;r<i.length;){const g=i[r];if(a!==g.controlId){r--;break}g.controlComponent===D.VALUE&&(delete g.control,delete g.controlId,d.push(g)),r++}u.control.value=Tt(d,t),o=we(u,{extraPickAttrs:e})}}const l=we(o,{extraPickAttrs:e});if(!o.type||o.type===N.TEXT||o.type===N.SUBSCRIPT||o.type===N.SUPERSCRIPT)for(;r<i.length;){const a=i[r+1];if(r++,a&&Lr(l,we(a,{extraPickAttrs:e}))){const R=a.value===k?`
`:a.value;l.value+=R}else break}else r++;n.push(l)}return n}function Or(s){switch(window.getComputedStyle(s).textAlign){case"left":case"start":return at.LEFT;case"center":return at.CENTER;case"right":case"end":return at.RIGHT;case"justify":return at.ALIGNMENT;case"justify-all":return at.JUSTIFY;default:return at.LEFT}}function ss(s){return s===at.ALIGNMENT?"justify":s}function Mr(s){switch(s){case at.LEFT:return"flex-start";case at.CENTER:return"center";case at.RIGHT:return"flex-end";case at.ALIGNMENT:case at.JUSTIFY:return"space-between";default:return"flex-start"}}function os(s){return!s.type||se.includes(s.type)}function He(s,t){const e=s[t];if(!e)return null;const i=s[t+1];return!e.listId&&e.value===k&&i&&i.value!==k?i:e}function Ht(s,t,e,i){var R,c,u;let n=He(s,e);if(!n)return;const{isBreakWhenWrap:r=!1,editorOptions:o}=i||{},{mode:l}=o||{};l!==Rt.DESIGN&&((R=n.title)==null?void 0:R.disabled)&&(n=Ne(n,Ji));let a=!1;for(let d=0;d<t.length;d++){const g=t[d];if(r&&!n.listId&&Hi.test(g.value)&&(a=!0),a||!n.listId&&g.type===N.LIST){const O=[...Si,...Ze];ni(O,n,g),(c=g.valueList)==null||c.forEach(P=>{ni(O,n,P)});continue}((u=g.valueList)==null?void 0:u.length)&&Ht(s,g.valueList,e,i);const L=[...$n];ye(g)||L.push(...Ze),ni(L,n,g)}}function Pr(s,t){let e="span";s.type===N.SUPERSCRIPT?e="sup":s.type===N.SUBSCRIPT&&(e="sub");const i=document.createElement(e);return i.style.fontFamily=s.font||t.defaultFont,s.rowFlex&&(i.style.textAlign=ss(s.rowFlex)),s.color&&(i.style.color=s.color),s.bold&&(i.style.fontWeight="600"),s.italic&&(i.style.fontStyle="italic"),i.style.fontSize=`${s.size||t.defaultSize}px`,s.highlight&&(i.style.backgroundColor=s.highlight),s.underline&&(i.style.textDecoration="underline"),s.strikeout&&(i.style.textDecoration+=" line-through"),i.innerText=s.value.replace(new RegExp(`${k}`,"g"),`
`),i}function rs(s){let t=0;const e=new Map;for(let i=0;i<s.length;i++){const n=s[i];if(i===0){if(n.checkbox)continue;n.value=n.value.replace(Hi,"")}if(n.listWrap){const r=e.get(t)||[];r.push(n),e.set(t,r)}else{const r=n.value.split(`
`);for(let o=0;o<r.length;o++){o>0&&(t+=1);const l=r[o],a=e.get(t)||[];a.push(q(E({},n),{value:l})),e.set(t,a)}}}return e}function Tr(s){var i;const t=[];if(!s.length)return t;let e=((i=s[0])==null?void 0:i.rowFlex)||null;t.push({rowFlex:e,data:[s[0]]});for(let n=1;n<s.length;n++){const r=s[n],o=r.rowFlex||null;e===o&&!ye(r)&&!ye(s[n-1])?t[t.length-1].data.push(r):(t.push({rowFlex:o,data:[r]}),e=o)}for(let n=0;n<t.length;n++){const r=t[n];r.data=Tt(r.data)}return t}function si(s,t){const e=en(t);function i(o){var a,R,c,u,d,g,L,O,P;const l=document.createElement("div");for(let M=0;M<o.length;M++){const T=o[M];if(T.type===N.TABLE){const X=document.createElement("table");X.setAttribute("cellSpacing","0"),X.setAttribute("cellpadding","0"),X.setAttribute("border","0");const S="1px solid #000000";!T.borderType||T.borderType===vt.ALL?(X.style.borderTop=S,X.style.borderLeft=S):T.borderType===vt.EXTERNAL&&(X.style.border=S),X.style.width=`${T.width}px`;const F=document.createElement("colgroup");for(let I=0;I<T.colgroup.length;I++){const Z=T.colgroup[I],V=document.createElement("col");V.setAttribute("width",`${Z.width}`),F.append(V)}X.append(F);const W=T.trList;for(let I=0;I<W.length;I++){const Z=document.createElement("tr"),V=W[I];Z.style.height=`${V.height}px`;for(let m=0;m<V.tdList.length;m++){const Y=document.createElement("td");(!T.borderType||T.borderType===vt.ALL)&&(Y.style.borderBottom=Y.style.borderRight="1px solid");const Q=V.tdList[m];Y.colSpan=Q.colspan,Y.rowSpan=Q.rowspan,Y.style.verticalAlign=Q.verticalAlign||"top",((a=Q.borderTypes)==null?void 0:a.includes(kt.TOP))&&(Y.style.borderTop=S),((R=Q.borderTypes)==null?void 0:R.includes(kt.RIGHT))&&(Y.style.borderRight=S),((c=Q.borderTypes)==null?void 0:c.includes(kt.BOTTOM))&&(Y.style.borderBottom=S),((u=Q.borderTypes)==null?void 0:u.includes(kt.LEFT))&&(Y.style.borderLeft=S);const U=si(Q.value,t);Y.innerHTML=U.innerHTML,Q.backgroundColor&&(Y.style.backgroundColor=Q.backgroundColor),Z.append(Y)}X.append(Z)}l.append(X)}else if(T.type===N.HYPERLINK){const X=document.createElement("a");X.innerText=T.valueList.map(S=>S.value).join(""),T.url&&(X.href=T.url),l.append(X)}else if(T.type===N.TITLE){const X=document.createElement(`h${$i[T.level]}`),S=i(T.valueList);X.innerHTML=S.innerHTML,l.append(X)}else if(T.type===N.LIST){const X=document.createElement(_o[T.listType]);T.listStyle&&(X.style.listStyleType=zo[T.listStyle]);const S=Tt(T.valueList);rs(S).forEach(W=>{const I=document.createElement("li"),Z=i(W);I.innerHTML=Z.innerHTML,X.append(I)}),l.append(X)}else if(T.type===N.IMAGE){const X=document.createElement("img");T.value&&(X.src=T.value,X.width=T.width,X.height=T.height),l.append(X)}else if(T.type===N.SEPARATOR){const X=document.createElement("hr");l.append(X)}else if(T.type===N.CHECKBOX){const X=document.createElement("input");X.type="checkbox",((d=T.checkbox)==null?void 0:d.value)&&X.setAttribute("checked","true"),l.append(X)}else if(T.type===N.RADIO){const X=document.createElement("input");X.type="radio",((g=T.radio)==null?void 0:g.value)&&X.setAttribute("checked","true"),l.append(X)}else if(T.type===N.TAB){const X=document.createElement("span");X.innerHTML=`${vn}${vn}`,l.append(X)}else if(T.type===N.CONTROL){const X=document.createElement("span"),S=i(((L=T.control)==null?void 0:L.value)||[]);X.innerHTML=S.innerHTML,l.append(X)}else if(!T.type||T.type===N.LATEX||se.includes(T.type)){let X="";if(T.type===N.DATE?X=((O=T.valueList)==null?void 0:O.map(F=>F.value).join(""))||"":X=T.value,!X)continue;const S=Pr(T,e);((P=o[M-1])==null?void 0:P.type)===N.TITLE&&(X=X.replace(/^\n/,"")),S.innerText=X.replace(new RegExp(`${k}`,"g"),`
`),l.append(S)}}return l}const n=document.createElement("div"),r=Tr(s);for(let o=0;o<r.length;o++){const l=r[o],a=!l.rowFlex||l.rowFlex===at.LEFT,R=document.createElement("div");if(!a){const c=l.data[0];ye(c)?(R.style.display="flex",R.style.justifyContent=Mr(c.rowFlex)):R.style.textAlign=ss(l.rowFlex)}R.innerHTML=i(l.data).innerHTML,a?R.childNodes.forEach(c=>{n.append(c.cloneNode(!0))}):n.append(R)}return n}function Sr(s){if(!s||s.nodeType!==3)return null;const t=s.parentNode,e=t.nodeName==="FONT"?t.parentNode:t,i=Or(e),n=s.textContent,r=window.getComputedStyle(e);if(!n||e.nodeName==="STYLE")return null;const o={value:n,color:r.color,bold:Number(r.fontWeight)>500,italic:r.fontStyle.includes("italic"),size:Math.floor(parseFloat(r.fontSize))};return e.nodeName==="SUB"||r.verticalAlign==="sub"?o.type=N.SUBSCRIPT:(e.nodeName==="SUP"||r.verticalAlign==="super")&&(o.type=N.SUPERSCRIPT),i!==at.LEFT&&(o.rowFlex=i),r.backgroundColor!=="rgba(0, 0, 0, 0)"&&(o.highlight=r.backgroundColor),r.textDecorationLine.includes("underline")&&(o.underline=!0),r.textDecorationLine.includes("line-through")&&(o.strikeout=!0),o}function oi(s,t){const e=[];function i(o){if(o.nodeType===3){const l=Sr(o);l&&e.push(l)}else if(o.nodeType===1){const l=o.childNodes;for(let a=0;a<l.length;a++){const R=l[a];if(R.nodeName==="BR")e.push({value:`
`});else if(R.nodeName==="A"){const c=R,u=c.innerText;u&&e.push({type:N.HYPERLINK,value:"",valueList:[{value:u}],url:c.href})}else if(/H[1-6]/.test(R.nodeName)){const u=oi(Xr(R,"div").outerHTML,t);e.push({value:"",type:N.TITLE,level:qo[R.nodeName],valueList:u}),R.nextSibling&&!xo.includes(R.nextSibling.nodeName)&&e.push({value:`
`})}else if(R.nodeName==="UL"||R.nodeName==="OL"){const c=R,u={value:"",type:N.LIST,valueList:[]};R.nodeName==="OL"?u.listType=oe.OL:(u.listType=oe.UL,u.listStyle=c.style.listStyleType),c.querySelectorAll("li").forEach(d=>{const g=oi(d.innerHTML,t);g.forEach(L=>{L.value===`
`&&(L.listWrap=!0)}),g.unshift({value:`
`}),u.valueList.push(...g)}),e.push(u)}else if(R.nodeName==="HR")e.push({value:`
`,type:N.SEPARATOR});else if(R.nodeName==="IMG"){const{src:c,width:u,height:d}=R;c&&u&&d&&e.push({width:u,height:d,value:c,type:N.IMAGE})}else if(R.nodeName==="TABLE"){const c=R,u={type:N.TABLE,value:`
`,colgroup:[],trList:[]};if(c.querySelectorAll("tr").forEach(d=>{const g=window.getComputedStyle(d).height.replace("px",""),L={height:Number(g),tdList:[]};d.querySelectorAll("th,td").forEach(O=>{const P=O,M=oi(P.innerHTML,t),T={colspan:P.colSpan,rowspan:P.rowSpan,value:M};P.style.backgroundColor&&(T.backgroundColor=P.style.backgroundColor),L.tdList.push(T)}),u.trList.push(L)}),u.trList.length){const d=u.trList[0].tdList.reduce((L,O)=>L+O.colspan,0),g=Math.ceil(t.innerWidth/d);for(let L=0;L<d;L++)u.colgroup.push({width:g});e.push(u)}}else R.nodeName==="INPUT"&&R.type===D.CHECKBOX?e.push({type:N.CHECKBOX,value:"",checkbox:{value:R.checked}}):R.nodeName==="INPUT"&&R.type===D.RADIO?e.push({type:N.RADIO,value:"",radio:{value:R.checked}}):(i(R),R.nodeType===1&&a!==l.length-1&&window.getComputedStyle(R).display==="block"&&e.push({value:`
`}))}}}const n=document.createElement("div");n.innerHTML=s,document.body.appendChild(n);const r=[];return n.childNodes.forEach(o=>{var l;o.nodeType!==1&&!((l=o.textContent)==null?void 0:l.trim())&&r.push(o)}),r.forEach(o=>o.remove()),i(n),n.remove(),e}function Wi(s){function t(e){var n,r,o,l,a;let i="";for(let R=0;R<e.length;R++){const c=e[R];if(c.type===N.TABLE){i+=`
`;const u=c.trList;for(let d=0;d<u.length;d++){const g=u[d];for(let L=0;L<g.tdList.length;L++){const O=g.tdList[L],P=t(Tt(O.value)),M=L===0,T=g.tdList.length-1===L;i+=`${M?"":" "}${P}${T?`
`:""}`}}}else if(c.type===N.TAB)i+=" ";else if(c.type===N.HYPERLINK)i+=c.valueList.map(u=>u.value).join("");else if(c.type===N.TITLE)i+=`${t(Tt(c.valueList))}`;else if(c.type===N.LIST){const u=Tt(c.valueList),d=rs(u);let g="";c.listType===oe.UL&&(g=zi[c.listStyle]),d.forEach((L,O)=>{const P=d.size-1===O;i+=`
${g||`${O+1}.`}${t(L)}${P?`
`:""}`})}else if(c.type===N.CHECKBOX)i+=((n=c.checkbox)==null?void 0:n.value)?"\u2611":"\u25A1";else if(c.type===N.RADIO)i+=((r=c.radio)==null?void 0:r.value)?"\u2609":"\u25CB";else if(!c.type||c.type===N.LATEX||se.includes(c.type)){let u="";c.type===N.CONTROL?u=((l=(o=c.control.value)==null?void 0:o[0])==null?void 0:l.value)||"":c.type===N.DATE?u=((a=c.valueList)==null?void 0:a.map(d=>d.value).join(""))||"":u=c.value,i+=u.replace(new RegExp(`${k}`,"g"),`
`)}}return i}return t(Tt(s))}function nn(s){return yi(s,["metrics","style"])}function ye(s){return!!(s==null?void 0:s.type)&&(bo.includes(s.type)||s.imgDisplay===et.INLINE)}function Xr(s,t){const e=document.createElement(t);for(let i=0;i<s.attributes.length;i++){const n=s.attributes[i];e.setAttribute(n.name,n.value)}return e.innerHTML=s.innerHTML,e}function ls(s){const t=[];for(let e=0;e<s.length;e++){const i=s[e];i.imgDisplay===et.SURROUND&&t.push(i)}return t}function Nr(s,t){var e;for(let i=s.length-1;i>=0;i--)((e=s[i].imgFloatPosition)==null?void 0:e.pageNo)===t&&s.splice(i,1)}function Fr(s){localStorage.setItem(vi,JSON.stringify({text:s.text,elementList:s.elementList}))}function as(){const s=localStorage.getItem(vi);return s?JSON.parse(s):null}function Rs(){localStorage.removeItem(vi)}function fr(s,t,e){if(!s&&!t&&!e.length)return;const i=new Blob([s],{type:"text/plain"}),n=new Blob([t],{type:"text/html"});if(window.ClipboardItem){const r=new ClipboardItem({[i.type]:i,[n.type]:n});window.navigator.clipboard.write([r])}else{const r=document.createElement("div");r.setAttribute("contenteditable","true"),r.innerHTML=t,document.body.append(r);const o=window.getSelection(),l=document.createRange(),a=document.createElement("span");a.innerText=`
`,r.append(a),l.selectNodeContents(r),o==null||o.removeAllRanges(),o==null||o.addRange(l),document.execCommand("copy"),r.remove()}Fr({text:s,elementList:e})}function cs(s,t){const e=si(s,t);document.body.append(e);const i=e.innerText;e.remove();const n=e.innerHTML;!i&&!n&&!s.length||fr(i,n,Tt(s))}function pr(s){let t=!1;for(let e=0;e<s.items.length;e++)if(s.items[e].kind==="file"){t=!0;break}return t}function sn(s,t){const e=s.getDraw();if(e.isReadonly()||e.isDisabled()||e.getControl().getIsDisabledPasteControl())return;const i=e.getRange(),{startIndex:n}=i.getRange(),r=e.getElementList();if(~n&&!i.getIsSelectAll()){const o=r[n];if((o==null?void 0:o.titleId)||(o==null?void 0:o.listId)){let l=0;for(;l<t.length;){const a=t[l];if(o.titleId&&/^\n/.test(a.value))break;if(Co.includes(a.type)){if(t.splice(l,1),a.valueList)for(let R=0;R<a.valueList.length;R++){const c=a.valueList[R];c.value===k||c.value===`
`||(t.splice(l,0,c),l++)}l--}l++}}Ht(r,t,n,{isBreakWhenWrap:!0,editorOptions:e.getOptions()})}e.insertElementList(t)}function us(s,t){const e=s.getDraw();if(e.isReadonly()||e.isDisabled())return;const i=oi(t,{innerWidth:e.getOriginalInnerWidth()});sn(s,i)}function on(s,t){const e=s.getDraw();if(e.isReadonly()||e.isDisabled())return;const i=e.getRange(),{startIndex:n}=i.getRange(),r=e.getElementList(),o=new FileReader;o.readAsDataURL(t),o.onload=()=>{const l=new Image,a=o.result;l.src=a,l.onload=()=>{const R={value:a,type:N.IMAGE,width:l.width,height:l.height};~n&&Ht(r,[R],n,{editorOptions:e.getOptions()}),e.insertElementList([R])}}}function mr(s,t){const e=s.getDraw();if(e.isReadonly()||e.isDisabled())return;const i=t.clipboardData;if(!i)return;const{paste:n}=e.getOverride();if(n){const o=n(t);if((o==null?void 0:o.preventDefault)!==!1)return}if(!pr(i)){const o=i.getData("text"),l=as();if(o===(l==null?void 0:l.text)){sn(s,l.elementList);return}}Rs();let r=!1;for(let o=0;o<i.items.length;o++)if(i.items[o].type==="text/html"){r=!0;break}for(let o=0;o<i.items.length;o++){const l=i.items[o];if(l.kind==="string"){if(l.type==="text/plain"&&!r){l.getAsString(a=>{s.input(a)});break}if(l.type==="text/html"&&r){l.getAsString(a=>{us(s,a)});break}}else if(l.kind==="file"&&l.type.includes("image")){const a=l.getAsFile();a&&on(s,a)}}}async function Ir(s,t){const e=s.getDraw();if(e.isReadonly()||e.isDisabled())return;const{paste:i}=e.getOverride();if(i){const o=i();if((o==null?void 0:o.preventDefault)!==!1)return}const n=await navigator.clipboard.readText(),r=as();if(n===(r==null?void 0:r.text)){sn(s,r.elementList);return}if(Rs(),t==null?void 0:t.isPlainText)n&&s.input(n);else{const o=await navigator.clipboard.read();let l=!1;for(const a of o)if(a.types.includes("text/html")){l=!0;break}for(const a of o)if(a.types.includes("text/plain")&&!l){const c=await(await a.getType("text/plain")).text();c&&s.input(c)}else if(a.types.includes("text/html")&&l){const c=await(await a.getType("text/html")).text();c&&us(s,c)}else if(a.types.some(R=>R.startsWith("image/"))){const R=a.types.find(u=>u.startsWith("image/")),c=await a.getType(R);on(s,c)}}}class Wr{constructor(t,e){h(this,"draw");h(this,"container");h(this,"agentCursorDom");h(this,"canvasEvent");this.draw=t,this.container=t.getContainer(),this.canvasEvent=e;const i=document.createElement("textarea");i.autocomplete="off",i.classList.add(`${_}-inputarea`),i.innerText="",this.container.append(i),this.agentCursorDom=i,i.onkeydown=n=>this._keyDown(n),i.oninput=An(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(t){this.canvasEvent.keydown(t)}_input(t){const e=t.data;!e||this.canvasEvent.input(e)}_paste(t){this.draw.isReadonly()||!t.clipboardData||(mr(this.canvasEvent,t),t.preventDefault())}_compositionstart(){this.canvasEvent.compositionstart()}_compositionend(t){this.canvasEvent.compositionend(t)}}class Vr{constructor(t,e){h(this,"ANIMATION_CLASS",`${_}-cursor--animation`);h(this,"draw");h(this,"container");h(this,"options");h(this,"position");h(this,"cursorDom");h(this,"cursorAgent");h(this,"blinkTimeout");this.draw=t,this.container=t.getContainer(),this.position=t.getPosition(),this.options=t.getOptions(),this.cursorDom=document.createElement("div"),this.cursorDom.classList.add(`${_}-cursor`),this.container.append(this.cursorDom),this.cursorAgent=new Wr(t,e),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)}focus(){const t=this.cursorAgent.getAgentCursorDom();document.activeElement!==t&&(t.focus(),t.setSelectionRange(0,0))}drawCursor(t){let e=this.position.getCursorPosition();if(!e)return;const{scale:i,cursor:n}=this.options,{color:r,width:o,isShow:l=!0,isBlink:a=!0,isFocus:R=!0,hitLineStartIndex:c}=E(E({},n),t),u=this.draw.getHeight(),d=this.draw.getPageGap();c&&(e=this.position.getPositionList()[c]);const{metrics:g,coordinate:{leftTop:L,rightTop:O},ascent:P,pageNo:M}=e,S=(this.draw.getZone().isMainActive()?M:this.draw.getPageNo())*(u+d),F=Uo*i,W=Math.min(g.height/4,F),I=g.height+W*2,Z=this.cursorAgent.getAgentCursorDom();R&&setTimeout(()=>{this.focus()});const V=g.boundingBoxDescent<0?0:g.boundingBoxDescent,m=L[1]+P+V-(I-W)+S,Y=c?L[0]:O[0];if(Z.style.left=`${Y}px`,Z.style.top=`${m+I-F}px`,!l){this.recoveryCursor();return}const Q=this.draw.isReadonly();this.cursorDom.style.width=`${o*i}px`,this.cursorDom.style.backgroundColor=r,this.cursorDom.style.left=`${Y}px`,this.cursorDom.style.top=`${m}px`,this.cursorDom.style.display=Q?"none":"block",this.cursorDom.style.height=`${I}px`,a?this._setBlinkTimeout():this._clearBlinkTimeout()}recoveryCursor(){this.cursorDom.style.display="none",this._clearBlinkTimeout()}moveCursorToVisible(t){const{cursorPosition:e,direction:i}=t;if(!e||!i)return;const{pageNo:n,coordinate:{leftTop:r,leftBottom:o}}=e,l=n*(this.draw.getHeight()+this.draw.getPageGap())+this.container.getBoundingClientRect().top,a=i===Kt.UP,R=o[0],c=a?r[1]+l:o[1]+l,u=Io(this.container),d={left:0,right:0,top:0,bottom:0};if(u===document.documentElement)d.right=window.innerWidth,d.bottom=window.innerHeight;else{const{left:L,right:O,top:P,bottom:M}=u.getBoundingClientRect();d.left=L,d.right=O,d.top=P,d.bottom=M}const{maskMargin:g}=this.options;if(d.top+=g[0],d.bottom-=g[2],!(R>=d.left&&R<=d.right&&c>=d.top&&c<=d.bottom)){const{scrollLeft:L,scrollTop:O}=u;a?u.scroll(L,O-(d.top-c)):u.scroll(L,O+c-d.bottom)}}}var rn;(function(s){s[s.LEFT=0]="LEFT",s[s.CENTER=1]="CENTER",s[s.RIGHT=2]="RIGHT"})(rn||(rn={}));const Qe=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),Yr=typeof navigator!="undefined"&&/iPad|iPhone/.test(navigator.userAgent);function Me(s){return Qe?s.metaKey:s.ctrlKey}var z;(function(s){s.Delete="Delete",s.Backspace="Backspace",s.Enter="Enter",s.Left="ArrowLeft",s.Right="ArrowRight",s.Up="ArrowUp",s.Down="ArrowDown",s.ESC="Escape",s.TAB="Tab",s.META="Meta",s.LEFT_BRACKET="[",s.RIGHT_BRACKET="]",s.COMMA=",",s.PERIOD=".",s.LEFT_ANGLE_BRACKET="<",s.RIGHT_ANGLE_BRACKET=">",s.EQUAL="=",s.MINUS="-",s.PLUS="+",s.A="a",s.B="b",s.C="c",s.D="d",s.E="e",s.F="f",s.G="g",s.H="h",s.I="i",s.J="j",s.K="k",s.L="l",s.M="m",s.N="n",s.O="o",s.P="p",s.Q="q",s.R="r",s.S="s",s.T="t",s.U="u",s.V="v",s.W="w",s.X="x",s.Y="y",s.Z="z",s.A_UPPERCASE="A",s.B_UPPERCASE="B",s.C_UPPERCASE="C",s.D_UPPERCASE="D",s.E_UPPERCASE="E",s.F_UPPERCASE="F",s.G_UPPERCASE="G",s.H_UPPERCASE="H",s.I_UPPERCASE="I",s.J_UPPERCASE="J",s.K_UPPERCASE="K",s.L_UPPERCASE="L",s.M_UPPERCASE="M",s.N_UPPERCASE="N",s.O_UPPERCASE="O",s.P_UPPERCASE="P",s.Q_UPPERCASE="Q",s.R_UPPERCASE="R",s.S_UPPERCASE="S",s.T_UPPERCASE="T",s.U_UPPERCASE="U",s.V_UPPERCASE="V",s.W_UPPERCASE="W",s.X_UPPERCASE="X",s.Y_UPPERCASE="Y",s.Z_UPPERCASE="Z",s.ZERO="0",s.ONE="1",s.TWO="2",s.THREE="3",s.FOUR="4",s.FIVE="5",s.SIX="6",s.SEVEN="7",s.EIGHT="8",s.NINE="9"})(z||(z={}));class Vi{constructor(t,e){h(this,"element");h(this,"control");this.element=t,this.control=e}setElement(t){this.element=t}getElement(){return this.element}getCode(){var t;return((t=this.element.control)==null?void 0:t.code)||null}getValue(){const t=this.control.getElementList(),{startIndex:e}=this.control.getRange(),i=t[e],n=[];let r=e;for(;r>0;){const l=t[r];if(l.controlId!==i.controlId||l.controlComponent===D.PREFIX)break;l.controlComponent===D.VALUE&&n.unshift(l),r--}let o=e+1;for(;o<t.length;){const l=t[o];if(l.controlId!==i.controlId||l.controlComponent===D.POSTFIX)break;l.controlComponent===D.VALUE&&n.push(l),o++}return n}setValue(){return-1}setSelect(t,e={},i={}){if(!i.isIgnoreDisabledRule&&this.control.getIsDisabledControl(e))return;const{control:n}=this.element,r=e.elementList||this.control.getElementList(),{startIndex:o}=e.range||this.control.getRange(),l=r[o];let a=o;for(;a>0;){const c=r[a];if(c.controlId!==l.controlId||c.controlComponent===D.PREFIX)break;if(c.controlComponent===D.CHECKBOX){const u=c.checkbox;u.value=t.includes(u.code)}a--}let R=o+1;for(;R<r.length;){const c=r[R];if(c.controlId!==l.controlId||c.controlComponent===D.POSTFIX)break;if(c.controlComponent===D.CHECKBOX){const u=c.checkbox;u.value=t.includes(u.code)}R++}n.code=t.join(","),this.control.repaintControl({curIndex:o,isSetCursor:!1})}keydown(t){if(this.control.getIsDisabledControl())return null;const e=this.control.getRange();this.control.shrinkBoundary();const{startIndex:i,endIndex:n}=e;return t.key===z.Backspace||t.key===z.Delete?this.control.removeControl(i):n}cut(){return-1}}class ln extends Vi{setSelect(t,e={},i={}){if(!i.isIgnoreDisabledRule&&this.control.getIsDisabledControl(e))return;const{control:n}=this.element,r=e.elementList||this.control.getElementList(),{startIndex:o}=e.range||this.control.getRange(),l=r[o];let a=o;for(;a>0;){const c=r[a];if(c.controlId!==l.controlId||c.controlComponent===D.PREFIX)break;if(c.controlComponent===D.RADIO){const u=c.radio;u.value=t.includes(u.code)}a--}let R=o+1;for(;R<r.length;){const c=r[R];if(c.controlId!==l.controlId||c.controlComponent===D.POSTFIX)break;if(c.controlComponent===D.RADIO){const u=c.radio;u.value=t.includes(u.code)}R++}n.code=t.join(","),this.control.repaintControl({curIndex:o,isSetCursor:!1})}}function ds(s){const t=s.getDraw(),e=t.getPosition(),i=t.getRange();s.isAllowDrag=!0,s.cacheRange=Ot(i.getRange()),s.cacheElementList=t.getElementList(),s.cachePositionList=e.getPositionList(),s.cachePositionContext=e.getPositionContext()}function hs(s,t){const{checkbox:e,control:i}=s;if(!i)t.getCheckboxParticle().setSelect(s);else{const n=(i==null?void 0:i.code)?i.code.split(","):[];if(e==null?void 0:e.value){const o=n.findIndex(l=>l===e.code);n.splice(o,1)}else(e==null?void 0:e.code)&&n.push(e.code);const r=t.getControl().getActiveControl();r instanceof Vi&&r.setSelect(n)}}function gs(s,t){const{radio:e,control:i}=s;if(!i)t.getRadioParticle().setSelect(s);else{const n=(e==null?void 0:e.code)?[e.code]:[],r=t.getControl().getActiveControl();r instanceof ln&&r.setSelect(n)}}function Ur(s,t){var U,f;if(s.button===rn.RIGHT)return;const e=t.getDraw(),i=e.isReadonly(),n=e.getRange(),r=e.getPosition();if(!t.isAllowDrag){const b=n.getRange();if(!i&&b.startIndex!==b.endIndex&&n.getIsPointInRange(s.offsetX,s.offsetY)){ds(t);return}}const l=s.target.dataset.index;l&&e.setPageNo(Number(l)),t.isAllowSelection=!0;const a=Ot(r.getPositionContext()),R=r.adjustPositionContext({x:s.offsetX,y:s.offsetY});if(!R)return;const{index:c,isDirectHit:u,isCheckbox:d,isRadio:g,isImage:L,isTable:O,tdValueIndex:P,hitLineStartIndex:M}=R;t.mouseDownStartPosition=q(E({},R),{index:O?P:c,x:s.offsetX,y:s.offsetY});const T=e.getElementList(),X=r.getPositionList(),S=O?P:c,F=T[S],W=!!(u&&L),I=!!(u&&d),Z=!!(u&&g);if(~c){let b=S,G=S;if(s.shiftKey){const{startIndex:x}=n.getRange();~x&&r.getPositionContext().tdId===a.tdId&&(S>x?b=x:G=x)}if(n.setRange(b,G),r.setCursorPosition(X[S]),I&&!i)hs(F,e);else if(Z&&!i)gs(F,e);else if(F.controlComponent===D.VALUE&&(((U=F.control)==null?void 0:U.type)===dt.CHECKBOX||((f=F.control)==null?void 0:f.type)===dt.RADIO)){let x=S;for(;x>0;){const y=T[x];if(y.controlComponent===D.CHECKBOX){hs(y,e);break}else if(y.controlComponent===D.RADIO){gs(y,e);break}x--}}else e.render({curIndex:S,isCompute:!1,isSubmitHistory:!1,isSetCursor:!W&&!I&&!Z});M&&t.getDraw().getCursor().drawCursor({hitLineStartIndex:M})}const V=e.getPreviewer();if(V.clearResizer(),W){const b={dragDisable:i||!F.controlId&&e.getMode()===Rt.FORM};F.type===N.LATEX&&(b.mime="svg",b.srcKey="laTexSVG"),V.drawResizer(F,X[S],b),e.getCursor().drawCursor({isShow:!1}),ds(t),(F.imgDisplay===et.SURROUND||F.imgDisplay===et.FLOAT_TOP||F.imgDisplay===et.FLOAT_BOTTOM)&&e.getImageParticle().createFloatImage(F)}const m=e.getTableTool();m.dispose(),O&&!i&&e.getMode()!==Rt.FORM&&m.render();const Y=e.getHyperlinkParticle();Y.clearHyperlinkPopup(),F.type===N.HYPERLINK&&(Me(s)?Y.openHyperlink(F):Y.drawHyperlinkPopup(F,X[S]));const Q=e.getDateParticle();Q.clearDatePicker(),F.type===N.DATE&&!i&&Q.renderDatePicker(F,X[S])}function Yi(s){const t=Mt();return Reflect.set(s,"dragId",t),t}function Ui(s,t){return t.findIndex(e=>e.dragId===s)}function Ls(s,t,e){const i=e.getDraw();if(s.imgDisplay===et.SURROUND||s.imgDisplay===et.FLOAT_TOP||s.imgDisplay===et.FLOAT_BOTTOM){const n=t.offsetX-e.mouseDownStartPosition.x,r=t.offsetY-e.mouseDownStartPosition.y,o=s.imgFloatPosition;s.imgFloatPosition={x:o.x+n,y:o.y+r,pageNo:i.getPageNo()}}i.getImageParticle().destroyFloatImage()}function Zr(s,t){var e,i,n,r;if(t.isAllowDrop){const o=t.getDraw();if(o.isReadonly()||o.isDisabled()){t.mousedown(s);return}const l=o.getPosition(),a=l.getPositionList(),R=l.getPositionContext(),c=o.getRange(),u=t.cacheRange,d=t.cacheElementList,g=t.cachePositionList,L=c.getRange(),O=u.startIndex===u.endIndex,P=O?u.startIndex-1:u.startIndex,M=u.endIndex;if(L.startIndex>=P&&L.endIndex<=M&&((e=t.cachePositionContext)==null?void 0:e.tdId)===R.tdId){o.clearSideEffect();let ft=!1,it=!1;if(O){const Et=d[M];if(Et.type===N.IMAGE||Et.type===N.LATEX){if(Ls(Et,s,t),Et.imgDisplay===et.SURROUND||Et.imgDisplay===et.FLOAT_TOP||Et.imgDisplay===et.FLOAT_BOTTOM)o.getPreviewer().drawResizer(Et),ft=!0;else{const $t=g[M];o.getPreviewer().drawResizer(Et,$t)}it=Et.imgDisplay===et.SURROUND}}c.replaceRange(E({},u)),o.render({isCompute:it,isSubmitHistory:ft,isSetCursor:!1});return}const T=d.slice(P+1,M+1),X=T.find(ft=>ft.controlId);if(X){const ft=d[P+1],it=d[M];if(!((!ft.controlId||ft.controlComponent===D.PREFIX)&&(!it.controlId||it.controlComponent===D.POSTFIX)||ft.controlId===it.controlId&&ft.controlComponent===D.PREFIX&&it.controlComponent===D.POSTFIX||((i=ft.control)==null?void 0:i.type)===dt.TEXT&&ft.controlComponent===D.VALUE&&((n=it.control)==null?void 0:n.type)===dt.TEXT&&it.controlComponent===D.VALUE)){o.render({curIndex:L.startIndex,isCompute:!1,isSubmitHistory:!1});return}}const S=o.getControl(),F=o.getElementList(),W=!X||!!F[L.startIndex].controlId||!S.getIsElementListContainFullControl(T),I=o.getOptions(),Z=T.map(ft=>{if(!ft.type||ft.type===N.TEXT){const it={value:ft.value},Et=Fe;return W||Et.push(...Ai),Et.forEach($t=>{const Qt=ft[$t];Qt!==void 0&&(it[$t]=Qt)}),it}else{let it=Ot(ft);return W&&(it=Ne(it,Ai)),Bt([it],{isHandleFirstElement:!1,editorOptions:I}),it}});Ht(F,Z,L.startIndex,{editorOptions:o.getOptions()});const V=d[P],m=g[P],Y=Yi(d[P]),Q=Yi(d[M]),U=Z.length;let f=L.startIndex,b=f+U;const G=S.getActiveControl();if(G&&d[f].controlComponent!==D.POSTFIX?(b=G.setValue(Z),f=b-U):o.spliceElementList(F,f+1,0,...Z),!~b){o.render({isSetCursor:!1});return}const x=Yi(F[f]),y=Yi(F[b]),J=Ui(Y,d),j=Ui(Q,d),st=d[j];st.controlId&&st.controlComponent!==D.POSTFIX?(c.replaceRange(q(E({},u),{startIndex:J,endIndex:j})),(r=S.getActiveControl())==null||r.cut()):o.spliceElementList(d,J+1,j-J);const Wt=F[L.startIndex],ot=a[L.startIndex];let $=R.index;$&&(Wt.tableId&&!V.tableId?m.index<$&&($-=U):!Wt.tableId&&V.tableId&&ot.index<$&&($+=U),l.setPositionContext(q(E({},R),{index:$})));const C=Ui(x,F),St=Ui(y,F);c.setRange(O?St:C,St,L.tableId,L.startTdIndex,L.endTdIndex,L.startTrIndex,L.endTrIndex),o.clearSideEffect();let A=null;if(O){const it=o.getElementList()[St];(it.type===N.IMAGE||it.type===N.LATEX)&&(Ls(it,s,t),A=it)}if(o.render({isSetCursor:!1}),A)if(A.imgDisplay===et.SURROUND||A.imgDisplay===et.FLOAT_TOP||A.imgDisplay===et.FLOAT_BOTTOM)o.getPreviewer().drawResizer(A);else{const it=l.getPositionList()[St];o.getPreviewer().drawResizer(A,it)}}else t.isAllowDrag&&t.mousedown(s)}function Qr(s,t){const i=t.getDraw().getPageContainer(),{x:n,y:r,width:o,height:l}=i.getBoundingClientRect();s.x>=n&&s.x<=n+o&&s.y>=r&&s.y<=r+l||t.setIsAllowSelection(!1)}function Dr(s,t){var S;const e=t.getDraw();if(t.isAllowDrag){const F=s.offsetX,W=s.offsetY,{startIndex:I,endIndex:Z}=t.cacheRange,V=t.cachePositionList;for(let Y=I+1;Y<=Z;Y++){const{coordinate:{leftTop:Q,rightBottom:U}}=V[Y];if(F>=Q[0]&&F<=U[0]&&W>=Q[1]&&W<=U[1])return}const m=(S=t.cacheRange)==null?void 0:S.startIndex;if(m){const Y=t.cacheElementList[m];(Y==null?void 0:Y.type)===N.IMAGE&&(Y.imgDisplay===et.SURROUND||Y.imgDisplay===et.FLOAT_TOP||Y.imgDisplay===et.FLOAT_BOTTOM)&&(e.getPreviewer().clearResizer(),e.getImageParticle().dragFloatImage(s.movementX,s.movementY))}t.dragover(s),t.isAllowDrop=!0;return}if(!t.isAllowSelection||!t.mouseDownStartPosition)return;const n=s.target.dataset.index;n&&e.setPageNo(Number(n));const o=e.getPosition().getPositionByXY({x:s.offsetX,y:s.offsetY});if(!~o.index)return;const{index:l,isTable:a,tdValueIndex:R,tdIndex:c,trIndex:u,tableId:d}=o,{index:g,isTable:L,tdIndex:O,trIndex:P,tableId:M}=t.mouseDownStartPosition,T=a?R:l,X=e.getRange();if(a&&L&&(c!==O||u!==P))X.setRange(T,T,d,O,c,P,u);else{let F=~T?T:0;if((L||a)&&M!==d)return;let W=g;if(W>F&&([W,F]=[F,W]),W===F)return;const I=e.getElementList(),Z=I[W+1],V=I[F];if((Z==null?void 0:Z.controlComponent)===D.PLACEHOLDER&&(V==null?void 0:V.controlComponent)===D.PLACEHOLDER&&Z.controlId===V.controlId)return;X.setRange(W,F)}e.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1})}function Kr(s,t){const e=t.getDraw();if(e.isReadonly())return;const i=e.getRange();if(!i.getIsCanInput())return;const{startIndex:n,endIndex:r,isCrossRowCol:o}=i.getRange(),l=e.getControl();let a;if(o){const R=e.getTableParticle().getRangeRowCol();if(!R)return;let c=!1;for(let u=0;u<R.length;u++){const d=R[u];for(let g=0;g<d.length;g++){const L=d[g];L.value.length>1&&(e.spliceElementList(L.value,1,L.value.length-1),c=!0)}}a=c?0:null}else if(l.getActiveControl()&&l.getIsRangeCanCaptureEvent())a=l.keydown(s);else{const c=e.getPosition().getCursorPosition();if(!c)return;const{index:u}=c,d=i.getIsCollapsed(),g=e.getElementList();if(d&&u===0){const O=g[u];if(O.value===k){O.listId&&e.getListParticle().unsetList(),s.preventDefault();return}}const L=g[n];if(d&&L.rowFlex&&L.value===k){const O=i.getRangeRowElementList();if(O){const P=g[n-1];O.forEach(M=>{M.rowFlex=P==null?void 0:P.rowFlex})}}d?e.spliceElementList(g,u,1):e.spliceElementList(g,n+1,r-n),a=d?u-1:n}e.getGlobalEvent().setCanvasEventAbility(),a===null?(i.setRange(n,n),e.render({curIndex:n,isSubmitHistory:!1})):(i.setRange(a,a),e.render({curIndex:a}))}function Er(s,t){var c;const e=t.getDraw();if(e.isReadonly())return;const i=e.getRange();if(!i.getIsCanInput())return;const{startIndex:n,endIndex:r,isCrossRowCol:o}=i.getRange(),l=e.getElementList(),a=e.getControl();let R;if(o){const u=e.getTableParticle().getRangeRowCol();if(!u)return;let d=!1;for(let g=0;g<u.length;g++){const L=u[g];for(let O=0;O<L.length;O++){const P=L[O];P.value.length>1&&(e.spliceElementList(P.value,1,P.value.length-1),d=!0)}}R=d?0:null}else if(a.getActiveControl()&&a.getIsRangeWithinControl())R=a.keydown(s);else if((c=l[r+1])==null?void 0:c.controlId)R=a.removeControl(r+1);else{const u=e.getPosition(),d=u.getCursorPosition();if(!d)return;const{index:g}=d,L=u.getPositionContext();if(L.isDirectHit&&L.isImage)e.spliceElementList(l,g,1),R=g-1;else{const O=i.getIsCollapsed();if(!O)e.spliceElementList(l,n+1,r-n);else{if(!l[g+1])return;e.spliceElementList(l,g+1,1)}R=O?g:n}}e.getGlobalEvent().setCanvasEventAbility(),R===null?(i.setRange(n,n),e.render({curIndex:n,isSubmitHistory:!1})):(i.setRange(R,R),e.render({curIndex:R}))}function br(s,t){var L,O;const e=t.getDraw();if(e.isReadonly())return;const i=e.getRange();if(!i.getIsCanInput())return;const{startIndex:n,endIndex:r}=i.getRange(),o=i.getIsCollapsed(),l=e.getElementList(),a=l[n],R=l[r];if(o&&R.listId&&R.value===k&&((L=l[r+1])==null?void 0:L.listId)!==R.listId){e.getListParticle().unsetList();return}const c={value:k};if(s.shiftKey&&a.listId&&(c.listWrap=!0),Ht(l,[c],n,{isBreakWhenWrap:!0,editorOptions:e.getOptions()}),!(R.titleId&&R.titleId!==((O=l[r+1])==null?void 0:O.titleId))){const P=He(l,r);if(P){const M=[...Ze];P.controlComponent!==D.POSTFIX&&M.push(...Fe),M.forEach(T=>{const X=P[T];X!==void 0&&(c[T]=X)})}}const u=e.getControl(),d=u.getActiveControl();let g;if(d&&u.getIsRangeWithinControl())g=u.setValue([c]);else{const M=e.getPosition().getCursorPosition();if(!M)return;const{index:T}=M;o?e.spliceElementList(l,T+1,0,c):e.spliceElementList(l,n+1,r-n,c),g=T+1}~g&&(i.setRange(g,g),e.render({curIndex:g})),s.preventDefault()}function xr(s,t){var X,S;const e=t.getDraw();if(e.isReadonly())return;const n=e.getPosition(),r=n.getCursorPosition();if(!r)return;const o=n.getPositionContext(),{index:l}=r;if(l<=0&&!o.isTable)return;const a=e.getRange(),{startIndex:R,endIndex:c}=a.getRange(),u=a.getIsCollapsed(),d=e.getElementList(),g=e.getControl();if(e.getMode()===Rt.FORM&&g.getActiveControl()&&((X=d[l])==null?void 0:X.controlComponent)===D.PREFIX){g.initNextControl({direction:Kt.UP});return}let L=1;if(Me(s)){const F=e.getLetterReg(),W=s.shiftKey&&!u&&R===(r==null?void 0:r.index)?c:R;if(F.test((S=d[W])==null?void 0:S.value)){let I=W-1;for(;I>0;){const Z=d[I];if(!F.test(Z.value))break;L++,I--}}}const O=R-L;let P=O,M=O;if(s.shiftKey&&r&&(R!==c?R===r.index?(P=R,M=c-L):(P=O,M=c):M=c),!s.shiftKey){const F=d[R];if(F.type===N.TABLE){const W=F.trList,I=W.length-1,Z=W[I],V=Z.tdList.length-1,m=Z.tdList[V];n.setPositionContext({isTable:!0,index:R,trIndex:I,tdIndex:V,tdId:m.id,trId:Z.id,tableId:F.id}),P=m.value.length-1,M=P,e.getTableTool().render()}else if(F.tableId&&R===0){const I=e.getOriginalElementList()[o.index].trList;t:for(let Z=0;Z<I.length;Z++){const V=I[Z];if(V.id!==F.trId)continue;const m=V.tdList;for(let Y=0;Y<m.length;Y++)if(m[Y].id===F.tdId){if(Z===0&&Y===0)n.setPositionContext({isTable:!1}),P=o.index-1,M=P,e.getTableTool().dispose();else{let U=Z,f=Y-1;f<0&&(U=Z-1,f=I[U].tdList.length-1);const b=I[U],G=b.tdList[f];n.setPositionContext({isTable:!0,index:o.index,trIndex:U,tdIndex:f,tdId:G.id,trId:b.id,tableId:F.tableId}),P=G.value.length-1,M=P,e.getTableTool().render()}break t}}}}if(!~P||!~M)return;a.setRange(P,M);const T=P===M;e.render({curIndex:T?P:void 0,isSetCursor:T,isSubmitHistory:!1,isCompute:!1}),s.preventDefault()}function Cr(s,t){var F,W;const e=t.getDraw();if(e.isReadonly())return;const n=e.getPosition(),r=n.getCursorPosition();if(!r)return;const{index:o}=r,l=n.getPositionList(),a=n.getPositionContext();if(o>l.length-1&&!a.isTable)return;const R=e.getRange(),{startIndex:c,endIndex:u}=R.getRange(),d=R.getIsCollapsed();let g=e.getElementList();const L=e.getControl();if(e.getMode()===Rt.FORM&&L.getActiveControl()&&((F=g[o+1])==null?void 0:F.controlComponent)===D.POSTFIX){L.initNextControl({direction:Kt.DOWN});return}let O=1;if(Me(s)){const I=e.getLetterReg(),Z=s.shiftKey&&!d&&c===(r==null?void 0:r.index)?u:c;if(I.test((W=g[Z+1])==null?void 0:W.value)){let V=Z+2;for(;V<g.length;){const m=g[V];if(!I.test(m.value))break;O++,V++}}}const P=u+O;let M=P,T=P;if(s.shiftKey&&r&&(c!==u?c===r.index?(M=c,T=P):(M=c+O,T=u):M=c),!s.shiftKey){const I=g[u],Z=g[u+1];if((Z==null?void 0:Z.type)===N.TABLE){const m=Z.trList[0],Y=m.tdList[0];n.setPositionContext({isTable:!0,index:u+1,trIndex:0,tdIndex:0,tdId:Y.id,trId:m.id,tableId:Z.id}),M=0,T=0,e.getTableTool().render()}else if(I.tableId&&!Z){const m=e.getOriginalElementList()[a.index].trList;t:for(let Y=0;Y<m.length;Y++){const Q=m[Y];if(Q.id!==I.trId)continue;const U=Q.tdList;for(let f=0;f<U.length;f++)if(U[f].id===I.tdId){if(Y===m.length-1&&f===U.length-1)n.setPositionContext({isTable:!1}),M=a.index,T=M,g=e.getElementList(),e.getTableTool().dispose();else{let G=Y,x=f+1;x>U.length-1&&(G=Y+1,x=0);const y=m[G],J=y.tdList[x];n.setPositionContext({isTable:!0,index:a.index,trIndex:G,tdIndex:x,tdId:J.id,trId:y.id,tableId:I.tableId}),M=0,T=M,e.getTableTool().render()}break t}}}}const X=g.length-1;if(M>X||T>X)return;R.setRange(M,T);const S=M===T;e.render({curIndex:S?M:void 0,isSetCursor:S,isSubmitHistory:!1,isCompute:!1}),s.preventDefault()}function wr(s,t){const e=t.getDraw();if(e.isReadonly())return;s.preventDefault();const n=e.getControl();if(n.getActiveControl()&&n.getIsRangeWithinControl())n.initNextControl({direction:s.shiftKey?Kt.UP:Kt.DOWN});else{const o={type:N.TAB,value:""},l=e.getRange(),{startIndex:a}=l.getRange(),R=e.getElementList();Ht(R,[o],a,{editorOptions:e.getOptions()}),e.insertElementList([o])}}function an(s){const{positionList:t,index:e,isUp:i,rowNo:n,cursorX:r}=s;let o=-1;const l=[];if(i){let a=e-1;for(;a>=0;){const R=t[a];if(a--,R.rowNo!==n){if(l[0]&&l[0].rowNo!==R.rowNo)break;l.unshift(R)}}}else{let a=e+1;for(;a<t.length;){const R=t[a];if(a++,R.rowNo!==n){if(l[0]&&l[0].rowNo!==R.rowNo)break;l.push(R)}}}for(let a=0;a<l.length;a++){const R=l[a],{coordinate:{leftTop:[c],rightTop:[u]}}=R;if(a===l.length-1&&(o=R.index),!(r<c||r>u)){o=R.index;break}}return o}function Hr(s,t){const e=t.getDraw();if(e.isReadonly())return;const n=e.getPosition(),r=n.getCursorPosition();if(!r)return;const o=e.getRange(),{startIndex:l,endIndex:a}=o.getRange();let R=n.getPositionList();const c=s.key===z.Up;let u=-1,d=-1;const g=n.getPositionContext();if(!s.shiftKey&&g.isTable&&(c&&r.rowIndex===0||!c&&r.rowIndex===e.getRowCount()-1)){const{index:O,trIndex:P,tdIndex:M,tableId:T}=g;if(c)if(P===0)n.setPositionContext({isTable:!1}),u=O-1,d=u,e.getTableTool().dispose();else{let X=-1,S=-1;const W=e.getOriginalElementList()[O].trList,I=W[P].tdList[M].colIndex;t:for(let m=P-1;m>=0;m--){const Q=W[m].tdList;for(let U=0;U<Q.length;U++){const f=Q[U];if(f.colIndex===I||f.colIndex+f.colspan-1>=I&&f.colIndex<=I){X=m,S=U;break t}}}if(!~X||!~S)return;const Z=W[X],V=Z.tdList[S];n.setPositionContext({isTable:!0,index:O,trIndex:X,tdIndex:S,tdId:V.id,trId:Z.id,tableId:T}),u=V.value.length-1,d=u,e.getTableTool().render()}else{const S=e.getOriginalElementList()[O].trList;if(P===S.length-1)n.setPositionContext({isTable:!1}),u=O,d=u,e.getTableTool().dispose();else{let F=-1,W=-1;const I=S[P].tdList[M].colIndex;t:for(let m=P+1;m<S.length;m++){const Q=S[m].tdList;for(let U=0;U<Q.length;U++){const f=Q[U];if(f.colIndex===I||f.colIndex+f.colspan-1>=I&&f.colIndex<=I){F=m,W=U;break t}}}if(!~F||!~W)return;const Z=S[F],V=Z.tdList[W];n.setPositionContext({isTable:!0,index:O,trIndex:F,tdIndex:W,tdId:V.id,trId:Z.id,tableId:T}),u=V.value.length-1,d=u,e.getTableTool().render()}}}else{let O=r;s.shiftKey&&(l===r.index?O=R[a]:O=R[l]);const{index:P,rowNo:M,rowIndex:T,coordinate:{rightTop:[X]}}=O;if(c&&T===0||!c&&T===e.getRowCount()-1)return;const S=an({positionList:R,index:P,rowNo:M,isUp:c,cursorX:X});if(S<0)return;u=S,d=S,s.shiftKey&&(l!==a?l===r.index?u=l:d=a:c?d=a:u=l);const W=e.getElementList()[S];if(W.type===N.TABLE){const{scale:I}=e.getOptions(),Z=e.getMargins(),V=W.trList;let m=-1,Y=-1,Q=-1;if(c){t:for(let U=V.length-1;U>=0;U--){const b=V[U].tdList;for(let G=0;G<b.length;G++){const x=b[G],y=x.x*I+Z[3],J=x.width*I;if(X>=y&&X<=y+J){const j=x.positionList,st=j[j.length-1],Wt=an({positionList:j,index:st.index+1,rowNo:st.rowNo-1,isUp:c,cursorX:X})||st.index;m=U,Y=G,Q=Wt;break t}}}}else{t:for(let U=0;U<V.length;U++){const b=V[U].tdList;for(let G=0;G<b.length;G++){const x=b[G],y=x.x*I+Z[3],J=x.width*I;if(X>=y&&X<=y+J){const j=x.positionList,st=an({positionList:j,index:-1,rowNo:-1,isUp:c,cursorX:X})||0;m=U,Y=G,Q=st;break t}}}}if(~m&&~Y&&~Q){const U=V[m],f=U.tdList[Y];n.setPositionContext({isTable:!0,index:S,trIndex:m,tdIndex:Y,tdId:f.id,trId:U.id,tableId:W.id}),u=Q,d=u,R=n.getPositionList(),e.getTableTool().render()}}}if(!~u||!~d)return;u>d&&([u,d]=[d,u]),o.setRange(u,d);const L=u===d;e.render({curIndex:L?u:void 0,isSetCursor:L,isSubmitHistory:!1,isCompute:!1}),e.getCursor().moveCursorToVisible({cursorPosition:R[c?u:d],direction:c?Kt.UP:Kt.DOWN})}function yr(s,t){if(t.isComposing)return;const e=t.getDraw();if(s.key===z.Backspace)Kr(s,t);else if(s.key===z.Delete)Er(s,t);else if(s.key===z.Enter)br(s,t);else if(s.key===z.Left)xr(s,t);else if(s.key===z.Right)Cr(s,t);else if(s.key===z.Up||s.key===z.Down)Hr(s,t);else if(Me(s)&&s.key===z.Z){if(e.isReadonly()&&e.getMode()!==Rt.FORM)return;e.getHistoryManager().undo(),s.preventDefault()}else if(Me(s)&&s.key===z.Y){if(e.isReadonly()&&e.getMode()!==Rt.FORM)return;e.getHistoryManager().redo(),s.preventDefault()}else if(Me(s)&&s.key===z.C)t.copy(),s.preventDefault();else if(Me(s)&&s.key===z.X)t.cut(),s.preventDefault();else if(Me(s)&&s.key===z.A)t.selectAll(),s.preventDefault();else if(Me(s)&&s.key===z.S){if(e.isReadonly())return;const i=e.getListener();i.saved&&i.saved(e.getValue());const n=e.getEventBus();n.isSubscribe("saved")&&n.emit("saved",e.getValue()),s.preventDefault()}else if(s.key===z.ESC){t.clearPainterStyle();const i=e.getZone();i.isMainActive()||i.setZone(lt.MAIN),s.preventDefault()}else s.key===z.TAB&&wr(s,t)}function Os(s,t){var F;const e=t.getDraw();if(e.isReadonly()||e.isDisabled())return;const n=e.getPosition().getCursorPosition();if(!s||!n)return;const r=t.isComposing;if(r&&((F=t.compositionInfo)==null?void 0:F.value)===s)return;const o=e.getRange();if(!o.getIsCanInput())return;Ms(t),r||e.getCursor().clearAgentDomValue();const{TEXT:l,HYPERLINK:a,SUBSCRIPT:R,SUPERSCRIPT:c,DATE:u}=N,d=s.replaceAll(`
`,k),{startIndex:g,endIndex:L}=o.getRange(),O=e.getElementList(),P=He(O,L);if(!P)return;const M=e.isDesignMode(),T=jt(d).map(W=>{var Z,V;const I={value:W};if(M||!((Z=P.title)==null?void 0:Z.disabled)&&!((V=P.control)==null?void 0:V.disabled)){const m=O[L+1];(!P.type||P.type===l||P.type===a&&(m==null?void 0:m.type)===a||P.type===u&&(m==null?void 0:m.type)===u||P.type===R&&(m==null?void 0:m.type)===R||P.type===c&&(m==null?void 0:m.type)===c)&&Qo.forEach(Y=>{if(Y==="groupIds"&&!(m==null?void 0:m.groupIds))return;const Q=P[Y];Q!==void 0&&(I[Y]=Q)}),r&&(I.underline=!0)}return I}),X=e.getControl();let S;if(X.getActiveControl()&&X.getIsRangeWithinControl())S=X.setValue(T);else{const W=g+1;g!==L&&e.spliceElementList(O,W,L-g),Ht(O,T,g,{editorOptions:e.getOptions()}),e.spliceElementList(O,W,0,...T),S=g+T.length}~S&&(o.setRange(S,S),e.render({curIndex:S,isSubmitHistory:!r})),r&&(t.compositionInfo={elementList:O,value:d,startIndex:S-T.length,endIndex:S})}function Ms(s){if(!s.compositionInfo)return;const{elementList:t,startIndex:e,endIndex:i}=s.compositionInfo;t.splice(e+1,i-e),s.getDraw().getRange().setRange(e,e),s.compositionInfo=null}function Gr(s){const t=s.getDraw(),e=t.getRange(),{startIndex:i,endIndex:n}=e.getRange();if(!~i&&!~i||t.isReadonly()||!e.getIsCanInput())return;const r=t.getElementList();let o=i,l=n;if(i===n){const d=t.getPosition().getPositionList(),g=d[i],L=g.rowNo,O=g.pageNo,P=[];for(let T=0;T<d.length;T++){const X=d[T];if(X.pageNo>O)break;X.pageNo===O&&X.rowNo===L&&P.push(T)}const M=P[0]-1;o=M<0?0:M,l=P[P.length-1]}const a=t.getOptions();cs(r.slice(o+1,l+1),a);const R=t.getControl();let c;R.getActiveControl()&&R.getIsRangeWithinControl()?c=R.cut():(t.spliceElementList(r,o+1,l-o),c=o),e.setRange(c,c),t.render({curIndex:c})}function vr(s){const t=s.getDraw(),{copy:e}=t.getOverride();if(e){const o=e();if((o==null?void 0:o.preventDefault)!==!1)return}const i=t.getRange();let n=null;if(i.getRange().isCrossRowCol){const o=i.getRangeTableElement();if(!o)return;const l=t.getTableParticle().getRangeRowCol();if(!l)return;const a={type:N.TABLE,value:"",colgroup:[],trList:[]},R=l[0],c=R[0].colIndex,u=R[R.length-1],d=u.colIndex+u.colspan-1;for(let g=c;g<=d;g++)a.colgroup.push(o.colgroup[g]);for(let g=0;g<l.length;g++){const L=l[g],O=o.trList[L[0].rowIndex],P={tdList:[],height:O.height,minHeight:O.minHeight};for(let M=0;M<L.length;M++)P.tdList.push(L[M]);a.trList.push(P)}n=Tt([a])}else n=i.getIsCollapsed()?i.getRangeRowElementList():i.getSelectionElementList();!(n==null?void 0:n.length)||cs(n,t.getOptions())}function Jr(s,t){var r,o;const e=t.getDraw(),{drop:i}=e.getOverride();if(i){const l=i(s);if((l==null?void 0:l.preventDefault)!==!1)return}s.preventDefault();const n=(r=s.dataTransfer)==null?void 0:r.getData("text");if(n)t.input(n);else{const l=(o=s.dataTransfer)==null?void 0:o.files;if(!l)return;for(let a=0;a<l.length;a++){const R=l[a];R.type.startsWith("image")&&on(t,R)}}}function Ar(s){var d;if(!Intl.Segmenter)return null;const t=s.getDraw(),e=t.getPosition().getCursorPosition();if(!e)return null;const n=t.getRange().getRangeParagraphInfo();if(!n)return null;const r=((d=n==null?void 0:n.elementList)==null?void 0:d.map(g=>!g.type||g.type!==N.CONTROL&&se.includes(g.type)?g.value:k).join(""))||"";if(!r)return null;const o=e.index,l=n.startIndex,R=new Intl.Segmenter(void 0,{granularity:"word"}).segment(r);let c=-1,u=-1;for(const{segment:g,index:L,isWordLike:O}of R){const P=L+l;if(O&&o>=P&&o<P+g.length){c=P-1,u=c+g.length;break}}return~c&&~u?{startIndex:c,endIndex:u}:null}function Br(s){const t=s.getDraw(),e=t.getPosition().getCursorPosition();if(!e)return null;const{value:i,index:n}=e,r=t.getLetterReg();let o=0,l=0;const a=wi.test(i);if(a||r.test(i)){const c=t.getElementList();let u=n-1;for(;u>0;){const g=c[u].value;if(a&&wi.test(g)||!a&&r.test(g))o++,u--;else break}let d=n+1;for(;d<c.length;){const g=c[d].value;if(a&&wi.test(g)||!a&&r.test(g))l++,d++;else break}}const R=n-o-1;return R<0?null:{startIndex:R,endIndex:n+l}}function kr(s,t){const e=s.getDraw(),i=e.getPosition(),n=i.getPositionByXY({x:t.offsetX,y:t.offsetY});if(n.isImage&&n.isDirectHit){e.getPreviewer().render();return}if(e.getIsPagingMode()&&!~n.index&&n.zone){e.getZone().setZone(n.zone),e.clearSideEffect(),i.setPositionContext({isTable:!1});return}if((n.isCheckbox||n.isRadio)&&n.isDirectHit)return;const r=e.getRange(),o=Ar(s)||Br(s);!o||(r.setRange(o.startIndex,o.endIndex),e.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1}),r.setRangeStyle())}function _r(s){var g,L;const t=s.getDraw(),i=t.getPosition().getCursorPosition();if(!i)return;const{index:n}=i,r=t.getElementList();let o=0,l=0,a=n-1;for(;a>0;){const O=r[a],P=r[a-1];if(O.value===k&&!O.listWrap||O.listId!==(P==null?void 0:P.listId)||O.titleId!==(P==null?void 0:P.titleId))break;o++,a--}let R=n+1;for(;R<r.length;){const O=r[R],P=r[R+1];if(O.value===k&&!O.listWrap||O.listId!==(P==null?void 0:P.listId)||O.titleId!==(P==null?void 0:P.titleId))break;l++,R++}const c=t.getRange();let u=n-o-1;if(((g=r[u])==null?void 0:g.value)!==k&&(u-=1),u<0)return;let d=n+l+1;(((L=r[d])==null?void 0:L.value)===k||d>r.length-1)&&(d-=1),c.setRange(u,d),t.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1})}var Ps={dblclick:kr,threeClick:_r};function zr(s){s.isComposing=!0}function $r(s,t){s.isComposing=!1;const e=s.getDraw();if(t.data)setTimeout(()=>{s.compositionInfo&&Os(t.data,s)},1);else{Ms(s);const n=e.getRange(),{endIndex:r}=n.getRange();e.render({curIndex:r,isSubmitHistory:!1})}e.getCursor().clearAgentDomValue()}var Ts={compositionstart:zr,compositionend:$r};function qr(s,t){const e=t.getDraw();if(e.isReadonly())return;s.preventDefault();const n=e.getPageContainer();if(!Mi(s.target,T=>T===n,!0))return;const l=s.target.dataset.index;l&&e.setPageNo(Number(l));const a=e.getPosition(),R=a.adjustPositionContext({x:s.offsetX,y:s.offsetY});if(!R)return;const{isTable:c,tdValueIndex:u,index:d}=R,g=a.getPositionList(),L=c?u:d;~d&&(e.getRange().setRange(L,L),a.setCursorPosition(g[L]));const O=e.getCursor(),{cursor:{dragColor:P,dragWidth:M}}=e.getOptions();O.drawCursor({width:M,color:P,isBlink:!1})}var jr={dragover:qr};class tl{constructor(t){h(this,"isAllowSelection");h(this,"isComposing");h(this,"compositionInfo");h(this,"isAllowDrag");h(this,"isAllowDrop");h(this,"cacheRange");h(this,"cacheElementList");h(this,"cachePositionList");h(this,"cachePositionContext");h(this,"mouseDownStartPosition");h(this,"draw");h(this,"pageContainer");h(this,"pageList");h(this,"range");h(this,"position");this.draw=t,this.pageContainer=t.getPageContainer(),this.pageList=t.getPageList(),this.range=this.draw.getRange(),this.position=this.draw.getPosition(),this.isAllowSelection=!1,this.isComposing=!1,this.compositionInfo=null,this.isAllowDrag=!1,this.isAllowDrop=!1,this.cacheRange=null,this.cacheElementList=null,this.cachePositionList=null,this.cachePositionContext=null,this.mouseDownStartPosition=null}getDraw(){return this.draw}register(){this.pageContainer.addEventListener("click",this.click.bind(this)),this.pageContainer.addEventListener("mousedown",this.mousedown.bind(this)),this.pageContainer.addEventListener("mouseup",this.mouseup.bind(this)),this.pageContainer.addEventListener("mouseleave",this.mouseleave.bind(this)),this.pageContainer.addEventListener("mousemove",this.mousemove.bind(this)),this.pageContainer.addEventListener("dblclick",this.dblclick.bind(this)),this.pageContainer.addEventListener("dragover",this.dragover.bind(this)),this.pageContainer.addEventListener("drop",this.drop.bind(this)),fo(this.pageContainer,this.threeClick.bind(this))}setIsAllowSelection(t){this.isAllowSelection=t,t||this.applyPainterStyle()}setIsAllowDrag(t){this.isAllowDrag=t,this.isAllowDrop=t}clearPainterStyle(){this.pageList.forEach(t=>{t.style.cursor="text"}),this.draw.setPainterStyle(null)}applyPainterStyle(){const t=this.draw.getPainterStyle();if(!t||this.draw.isReadonly()||this.draw.isDisabled())return;const i=this.range.getSelection();if(!i)return;const n=Object.keys(t);i.forEach(o=>{n.forEach(l=>{const a=l;o[a]=t[a]})}),this.draw.render({isSetCursor:!1});const r=this.draw.getPainterOptions();(!r||!r.isDblclick)&&this.clearPainterStyle()}selectAll(){const t=this.position.getPositionList();this.range.setRange(0,t.length-1),this.draw.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1})}mousemove(t){Dr(t,this)}mousedown(t){Ur(t,this)}click(){Yr&&!this.draw.isReadonly()&&this.draw.getCursor().getAgentDom().focus()}mouseup(t){Zr(t,this)}mouseleave(t){Qr(t,this)}keydown(t){yr(t,this)}dblclick(t){Ps.dblclick(this,t)}threeClick(){Ps.threeClick(this)}input(t){Os(t,this)}cut(){Gr(this)}copy(){vr(this)}compositionstart(){Ts.compositionstart(this)}compositionend(t){Ts.compositionend(this,t)}drop(t){Jr(t,this)}dragover(t){jr.dragover(t,this)}}class el{constructor(t,e){h(this,"draw");h(this,"options");h(this,"cursor");h(this,"canvasEvent");h(this,"range");h(this,"previewer");h(this,"tableTool");h(this,"hyperlinkParticle");h(this,"control");h(this,"dateParticle");h(this,"imageParticle");h(this,"dprMediaQueryList");h(this,"clearSideEffect",t=>{if(!this.cursor)return;const e=(t==null?void 0:t.composedPath()[0])||t.target,i=this.draw.getPageList();if(Mi(e,o=>i.includes(o),!0)){this.setRangeStyle();return}if(Mi(e,o=>!!o&&o.nodeType===1&&!!o.getAttribute(he),!0)){this.setRangeStyle(),this.watchCursorActive();return}this.cursor.recoveryCursor(),this.range.recoveryRangeStyle(),this.previewer.clearResizer(),this.tableTool.dispose(),this.hyperlinkParticle.clearHyperlinkPopup(),this.control.destroyControl(),this.dateParticle.clearDatePicker(),this.imageParticle.destroyFloatImage()});h(this,"setCanvasEventAbility",()=>{this.canvasEvent.setIsAllowDrag(!1),this.canvasEvent.setIsAllowSelection(!1)});h(this,"setRangeStyle",()=>{this.range.setRangeStyle()});h(this,"setPageScale",t=>{if(!t.ctrlKey)return;t.preventDefault();const{scale:e}=this.options;if(t.deltaY<0){const i=e*10+1;i<=30&&this.draw.setPageScale(i/10)}else{const i=e*10-1;i>=5&&this.draw.setPageScale(i/10)}});h(this,"_handleVisibilityChange",()=>{if(document.visibilityState==="visible"){const t=this.range.getRange(),e=!!~t.startIndex&&!!~t.endIndex&&t.startIndex===t.endIndex;this.range.replaceRange(t),this.draw.render({isSetCursor:e,isCompute:!1,isSubmitHistory:!1,curIndex:t.startIndex})}});h(this,"_handleDprChange",()=>{this.draw.setPageDevicePixel()});this.draw=t,this.options=t.getOptions(),this.canvasEvent=e,this.cursor=null,this.range=t.getRange(),this.previewer=t.getPreviewer(),this.tableTool=t.getTableTool(),this.hyperlinkParticle=t.getHyperlinkParticle(),this.dateParticle=t.getDateParticle(),this.imageParticle=t.getImageParticle(),this.control=t.getControl(),this.dprMediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`)}register(){this.cursor=this.draw.getCursor(),this.addEvent()}addEvent(){window.addEventListener("blur",this.clearSideEffect),document.addEventListener("keyup",this.setRangeStyle),document.addEventListener("click",this.clearSideEffect),document.addEventListener("mouseup",this.setCanvasEventAbility),document.addEventListener("wheel",this.setPageScale,{passive:!1}),document.addEventListener("visibilitychange",this._handleVisibilityChange),this.dprMediaQueryList.addEventListener("change",this._handleDprChange)}removeEvent(){window.removeEventListener("blur",this.clearSideEffect),document.removeEventListener("keyup",this.setRangeStyle),document.removeEventListener("click",this.clearSideEffect),document.removeEventListener("mouseup",this.setCanvasEventAbility),document.removeEventListener("wheel",this.setPageScale),document.removeEventListener("visibilitychange",this._handleVisibilityChange),this.dprMediaQueryList.removeEventListener("change",this._handleDprChange)}watchCursorActive(){!this.range.getIsCollapsed()||setTimeout(()=>{var t,e;((t=this.cursor)==null?void 0:t.getAgentIsActive())||(e=this.cursor)==null||e.drawCursor({isFocus:!1,isBlink:!1})})}}class il{constructor(t){h(this,"undoStack",[]);h(this,"redoStack",[]);h(this,"maxRecordCount");this.maxRecordCount=t.getOptions().historyMaxRecordCount+1}undo(){if(this.undoStack.length>1){const t=this.undoStack.pop();this.redoStack.push(t),this.undoStack.length&&this.undoStack[this.undoStack.length-1]()}}redo(){if(this.redoStack.length){const t=this.redoStack.pop();this.undoStack.push(t),t()}}execute(t){for(this.undoStack.push(t),this.redoStack.length&&(this.redoStack=[]);this.undoStack.length>this.maxRecordCount;)this.undoStack.shift()}isCanUndo(){return this.undoStack.length>1}isCanRedo(){return!!this.redoStack.length}isStackEmpty(){return!this.undoStack.length&&!this.redoStack.length}recovery(){this.undoStack=[],this.redoStack=[]}popUndo(){return this.undoStack.pop()}}class nl{constructor(t){h(this,"cursorPosition");h(this,"positionContext");h(this,"positionList");h(this,"floatPositionList");h(this,"draw");h(this,"eventBus");h(this,"options");this.positionList=[],this.floatPositionList=[],this.cursorPosition=null,this.positionContext={isTable:!1,isControl:!1},this.draw=t,this.eventBus=t.getEventBus(),this.options=t.getOptions()}getFloatPositionList(){return this.floatPositionList}getTablePositionList(t){const{index:e,trIndex:i,tdIndex:n}=this.positionContext;return t[e].trList[i].tdList[n].positionList||[]}getPositionList(){return this.positionContext.isTable?this.getTablePositionList(this.draw.getOriginalElementList()):this.getOriginalPositionList()}getMainPositionList(){return this.positionContext.isTable?this.getTablePositionList(this.draw.getOriginalMainElementList()):this.positionList}getOriginalPositionList(){const t=this.draw.getZone();return t.isHeaderActive()?this.draw.getHeader().getPositionList():t.isFooterActive()?this.draw.getFooter().getPositionList():this.positionList}getOriginalMainPositionList(){return this.positionList}getSelectionPositionList(){const{startIndex:t,endIndex:e}=this.draw.getRange().getRange();return t===e?null:this.getPositionList().slice(t+1,e+1)}setPositionList(t){this.positionList=t}setFloatPositionList(t){this.floatPositionList=t}computePageRowPosition(t){const{positionList:e,rowList:i,pageNo:n,startX:r,startY:o,startRowIndex:l,startIndex:a,innerWidth:R,zone:c}=t,{scale:u,table:{tdPadding:d}}=this.options;let g=r,L=o,O=a;for(let P=0;P<i.length;P++){const M=i[P];if(!M.isSurround){const S=M.width+(M.offsetX||0);M.rowFlex===at.CENTER?g+=(R-S)/2:M.rowFlex===at.RIGHT&&(g+=R-S)}g+=M.offsetX||0;const T=g,X=L;for(let S=0;S<M.elementList.length;S++){const F=M.elementList[S],W=F.metrics,I=F.imgDisplay!==et.INLINE&&F.type===N.IMAGE||F.type===N.LATEX?M.ascent-W.height:M.ascent;F.left&&(g+=F.left);const Z={pageNo:n,index:O,value:F.value,rowIndex:l+P,rowNo:P,metrics:W,left:F.left||0,ascent:I,lineHeight:M.height,isFirstLetter:S===0,isLastLetter:S===M.elementList.length-1,coordinate:{leftTop:[g,L],leftBottom:[g,L+M.height],rightTop:[g+W.width,L],rightBottom:[g+W.width,L+M.height]}};if(F.imgDisplay===et.SURROUND||F.imgDisplay===et.FLOAT_TOP||F.imgDisplay===et.FLOAT_BOTTOM){const V=e[e.length-1];V&&(Z.metrics=V.metrics,Z.coordinate=V.coordinate),F.imgFloatPosition||(F.imgFloatPosition={x:g,y:L,pageNo:n}),this.floatPositionList.push({pageNo:n,element:F,position:Z,isTable:t.isTable,index:t.index,tdIndex:t.tdIndex,trIndex:t.trIndex,tdValueIndex:O,zone:c})}if(e.push(Z),O++,g+=W.width,F.type===N.TABLE){const V=d[1]+d[3],m=d[0]+d[2];for(let Y=0;Y<F.trList.length;Y++){const Q=F.trList[Y];for(let U=0;U<Q.tdList.length;U++){const f=Q.tdList[U];f.positionList=[];const b=f.rowList,G=this.computePageRowPosition({positionList:f.positionList,rowList:b,pageNo:n,startRowIndex:0,startIndex:0,startX:(f.x+d[3])*u+T,startY:(f.y+d[0])*u+X,innerWidth:(f.width-V)*u,isTable:!0,index:O-1,tdIndex:U,trIndex:Y,zone:c});if(f.verticalAlign===It.MIDDLE||f.verticalAlign===It.BOTTOM){const x=b.reduce((j,st)=>j+st.height,0),y=(f.height-m)*u-x,J=f.verticalAlign===It.MIDDLE?y/2:y;Math.floor(J)>0&&f.positionList.forEach(j=>{const{coordinate:{leftTop:st,leftBottom:Wt,rightBottom:ot,rightTop:$}}=j;st[1]+=J,Wt[1]+=J,ot[1]+=J,$[1]+=J})}g=G.x,L=G.y}}g=T,L=X}}g=r,L+=M.height}return{x:g,y:L,index:O}}computePositionList(){var R;this.positionList=[];const t=this.draw.getInnerWidth(),e=this.draw.getPageRowList(),i=this.draw.getMargins(),n=i[3],o=this.draw.getHeader().getExtraHeight(),l=i[0]+o;let a=0;for(let c=0;c<e.length;c++){const u=e[c],d=(R=u[0])==null?void 0:R.startIndex;this.computePageRowPosition({positionList:this.positionList,rowList:u,pageNo:c,startRowIndex:a,startIndex:d,startX:n,startY:l,innerWidth:t}),a+=u.length}}computeRowPosition(t){const{row:e,innerWidth:i}=t,n=[];return this.computePageRowPosition({positionList:n,innerWidth:i,rowList:[Ot(e)],pageNo:0,startX:0,startY:0,startIndex:0,startRowIndex:0}),n}setCursorPosition(t){this.cursorPosition=t}getCursorPosition(){return this.cursorPosition}getPositionContext(){return this.positionContext}setPositionContext(t){this.eventBus.emit("positionContextChange",{value:t,oldValue:this.positionContext}),this.positionContext=t}getPositionByXY(t){var O,P,M,T,X;const{x:e,y:i,isTable:n}=t;let{elementList:r,positionList:o}=t;r||(r=this.draw.getOriginalElementList()),o||(o=this.getOriginalPositionList());const l=this.draw.getZone(),a=(O=t.pageNo)!=null?O:this.draw.getPageNo(),R=l.isMainActive(),c=R?a:0;if(!n){const S=this.getFloatPositionByXY(q(E({},t),{imgDisplays:[et.FLOAT_TOP,et.SURROUND]}));if(S)return S}for(let S=0;S<o.length;S++){const{index:F,pageNo:W,left:I,isFirstLetter:Z,coordinate:{leftTop:V,rightTop:m,leftBottom:Y}}=o[S];if(c===W){if(W>c)break;if(V[0]-I<=e&&m[0]>=e&&V[1]<=i&&Y[1]>=i){let Q=S;const U=r[S];if(U.type===N.TABLE)for(let b=0;b<U.trList.length;b++){const G=U.trList[b];for(let x=0;x<G.tdList.length;x++){const y=G.tdList[x],J=this.getPositionByXY({x:e,y:i,td:y,pageNo:a,tablePosition:o[S],isTable:!0,elementList:y.value,positionList:y.positionList});if(~J.index){const{index:j,hitLineStartIndex:st}=J,Wt=y.value[j];return{index:F,isCheckbox:J.isCheckbox||Wt.type===N.CHECKBOX||Wt.controlComponent===D.CHECKBOX,isRadio:Wt.type===N.RADIO||Wt.controlComponent===D.RADIO,isControl:!!Wt.controlId,isImage:J.isImage,isDirectHit:J.isDirectHit,isTable:!0,tdIndex:x,trIndex:b,tdValueIndex:j,tdId:y.id,trId:G.id,tableId:U.id,hitLineStartIndex:st}}}}if(U.type===N.IMAGE||U.type===N.LATEX)return{index:Q,isDirectHit:!0,isImage:!0};if(U.type===N.CHECKBOX||U.controlComponent===D.CHECKBOX)return{index:Q,isDirectHit:!0,isCheckbox:!0};if(U.type===N.RADIO||U.controlComponent===D.RADIO)return{index:Q,isDirectHit:!0,isRadio:!0};let f;if(r[F].value!==k){const b=m[0]-V[0];e<V[0]+b/2&&(Q=S-1,Z&&(f=S))}return{isDirectHit:!0,hitLineStartIndex:f,index:Q,isControl:!!U.controlId}}}}if(!n){const S=this.getFloatPositionByXY(q(E({},t),{imgDisplays:[et.FLOAT_BOTTOM]}));if(S)return S}let u=!1,d=-1,g;if(n){const{scale:S}=this.options,{td:F,tablePosition:W}=t;if(F&&W){const{leftTop:I}=W.coordinate,Z=F.x*S+I[0],V=F.y*S+I[1],m=F.width*S,Y=F.height*S;if(!(Z<e&&e<Z+m&&V<i&&i<V+Y))return{index:d}}}const L=o.filter(S=>S.isLastLetter&&S.pageNo===c);for(let S=0;S<L.length;S++){const{index:F,rowNo:W,coordinate:{leftTop:I,leftBottom:Z}}=L[S];if(i>I[1]&&i<=Z[1]){const V=o.findIndex(U=>U.pageNo===c&&U.rowNo===W),m=r[V],Y=o[V],Q=m.listStyle===Gt.CHECKBOX?this.options.margins[3]:Y.coordinate.leftTop[0];if(e<Q)~V?Y.value===k?d=V:(d=V-1,g=V):d=F;else{if(m.listStyle===Gt.CHECKBOX&&e<I[0])return{index:V,isDirectHit:!0,isCheckbox:!0};d=F}u=!0;break}}if(!u){const S=this.draw.getHeader(),F=S.getHeight(),W=S.getHeaderTop()+F,I=this.draw.getFooter(),V=this.draw.getHeight()-(I.getFooterBottom()+I.getHeight());if(R){if(i<W)return{index:-1,zone:lt.HEADER};if(i>V)return{index:-1,zone:lt.FOOTER}}else if(i<=V&&i>=W)return{index:-1,zone:lt.MAIN};const m=this.draw.getMargins();if(i<=m[0])for(let Y=0;Y<o.length;Y++){const Q=o[Y];if(Q.pageNo!==c||Q.rowNo!==0)continue;const{leftTop:U,rightTop:f}=Q.coordinate;if(e<=m[3]||e>=U[0]&&e<=f[0]||((P=o[Y+1])==null?void 0:P.rowNo)!==0)return{index:Q.index}}else{const Y=L[L.length-1];if(Y){const Q=Y.rowNo;for(let U=0;U<o.length;U++){const f=o[U];if(f.pageNo!==c||f.rowNo!==Q)continue;const{leftTop:b,rightTop:G}=f.coordinate;if(e<=m[3]||e>=b[0]&&e<=G[0]||((M=o[U+1])==null?void 0:M.rowNo)!==Q)return{index:f.index}}}}return{index:((T=L[L.length-1])==null?void 0:T.index)||o.length-1}}return{hitLineStartIndex:g,index:d,isControl:!!((X=r[d])==null?void 0:X.controlId)}}getFloatPositionByXY(t){var o;const{x:e,y:i}=t,n=(o=t.pageNo)!=null?o:this.draw.getPageNo(),r=this.draw.getZone().getZone();for(let l=0;l<this.floatPositionList.length;l++){const{position:a,element:R,isTable:c,index:u,trIndex:d,tdIndex:g,tdValueIndex:L,zone:O,pageNo:P}=this.floatPositionList[l];if(n===P&&R.type===N.IMAGE&&R.imgDisplay&&t.imgDisplays.includes(R.imgDisplay)&&(!O||O===r)){const M=R.imgFloatPosition;if(e>=M.x&&e<=M.x+R.width&&i>=M.y&&i<=M.y+R.height)return c?{index:u,isDirectHit:!0,isImage:!0,isTable:c,trIndex:d,tdIndex:g,tdValueIndex:L,tdId:R.tdId,trId:R.trId,tableId:R.tableId}:{index:a.index,isDirectHit:!0,isImage:!0}}}}adjustPositionContext(t){const e=this.getPositionByXY(t);if(!~e.index)return null;if(e.isControl&&this.draw.getMode()!==Rt.READONLY){const{index:O,isTable:P,trIndex:M,tdIndex:T,tdValueIndex:X}=e,S=this.draw.getControl(),{newIndex:F}=S.moveCursor({index:O,isTable:P,trIndex:M,tdIndex:T,tdValueIndex:X});P?e.tdValueIndex=F:e.index=F}const{index:i,isCheckbox:n,isRadio:r,isControl:o,isImage:l,isDirectHit:a,isTable:R,trIndex:c,tdIndex:u,tdId:d,trId:g,tableId:L}=e;return this.setPositionContext({isTable:R||!1,isCheckbox:n||!1,isRadio:r||!1,isControl:o||!1,isImage:l||!1,isDirectHit:a||!1,index:i,trIndex:c,tdIndex:u,tdId:d,trId:g,tableId:L}),e}setSurroundPosition(t){var c;const{pageNo:e,row:i,rowElement:n,rowElementRect:r,surroundElementList:o,availableWidth:l}=t;let a=r.x,R=0;if(o.length&&!ye(n)&&!((c=n.control)==null?void 0:c.minWidth))for(let u=0;u<o.length;u++){const d=o[u],g=d.imgFloatPosition;if(g.pageNo!==e)continue;const L=q(E({},g),{width:d.width,height:d.height});if(Yo(r,L)){i.isSurround=!0;const O=L.width+L.x-r.x;if(n.left=O,i.width+=O,R+=O,a=L.x+L.width,i.width+n.metrics.width>l){n.left=0,i.width-=R;break}}}return{x:a,rowIncreaseWidth:R}}}class sl{constructor(t){h(this,"draw");h(this,"options");h(this,"range");h(this,"listener");h(this,"eventBus");h(this,"position");h(this,"historyManager");this.draw=t,this.options=t.getOptions(),this.listener=t.getListener(),this.eventBus=t.getEventBus(),this.position=t.getPosition(),this.historyManager=t.getHistoryManager(),this.range={startIndex:-1,endIndex:-1}}getRange(){return this.range}clearRange(){this.setRange(-1,-1)}getIsCollapsed(){const{startIndex:t,endIndex:e}=this.range;return t===e}getIsSelection(){const{startIndex:t,endIndex:e}=this.range;return!~t&&!~e?!1:t!==e}getSelection(){const{startIndex:t,endIndex:e}=this.range;return t===e?null:this.draw.getElementList().slice(t+1,e+1)}getSelectionElementList(){if(this.range.isCrossRowCol){const t=this.draw.getTableParticle().getRangeRowCol();if(!t)return null;const e=[];for(let i=0;i<t.length;i++){const n=t[i];for(let r=0;r<n.length;r++){const o=n[r];e.push(...o.value)}}return e}return this.getSelection()}getTextLikeSelection(){const t=this.getSelection();return t?t.filter(e=>!e.type||se.includes(e.type)):null}getTextLikeSelectionElementList(){const t=this.getSelectionElementList();return t?t.filter(e=>!e.type||se.includes(e.type)):null}getRangeRow(){const{startIndex:t,endIndex:e}=this.range;if(!~t&&!~e)return null;const i=this.position.getPositionList(),n=new Map;for(let r=t;r<e+1;r++){const{pageNo:o,rowNo:l}=i[r],a=n.get(o);a?a.has(l)||a.add(l):n.set(o,new Set([l]))}return n}getRangeRowElementList(){const{startIndex:t,endIndex:e,isCrossRowCol:i}=this.range;if(!~t&&!~e)return null;if(i)return this.getSelectionElementList();const n=this.getRangeRow();if(!n)return null;const r=this.position.getPositionList(),o=this.draw.getElementList(),l=[];for(let a=0;a<r.length;a++){const R=r[a],c=n.get(R.pageNo);!c||c.has(R.rowNo)&&l.push(o[a])}return l}getRangeParagraph(){const{startIndex:t,endIndex:e}=this.range;if(!~t&&!~e)return null;const i=this.position.getPositionList(),n=this.draw.getElementList(),r=new Map;let o=t;for(;o>=0;){const{pageNo:R,rowNo:c}=i[o];let u=r.get(R);u||(u=[],r.set(R,u)),u.includes(c)||u.unshift(c);const d=n[o],g=n[o-1];if(d.value===k&&!d.listWrap||d.listId!==(g==null?void 0:g.listId)||d.titleId!==(g==null?void 0:g.titleId))break;o--}const l=t===e;if(!l){let R=t+1;for(;R<e;){const{pageNo:c,rowNo:u}=i[R];let d=r.get(c);d||(d=[],r.set(c,d)),d.includes(u)||d.push(u),R++}}let a=e;for(l&&n[t].value===k&&(a+=1);a<i.length;){const R=n[a],c=n[a+1];if(R.value===k&&!R.listWrap||R.listId!==(c==null?void 0:c.listId)||R.titleId!==(c==null?void 0:c.titleId))break;const{pageNo:u,rowNo:d}=i[a];let g=r.get(u);g||(g=[],r.set(u,g)),g.includes(d)||g.push(d),a++}return r}getRangeParagraphInfo(){const{startIndex:t,endIndex:e}=this.range;if(!~t&&!~e)return null;let i=-1;const n=[],r=this.getRangeParagraph();if(!r)return null;const o=this.draw.getElementList(),l=this.position.getPositionList();for(let a=0;a<l.length;a++){const R=l[a],c=r.get(R.pageNo);!c||c.includes(R.rowNo)&&(~i||(i=R.index),n.push(o[a]))}return n.length?{elementList:n,startIndex:i}:null}getRangeParagraphElementList(){var t;return((t=this.getRangeParagraphInfo())==null?void 0:t.elementList)||null}getRangeTableElement(){const t=this.position.getPositionContext();return t.isTable?this.draw.getOriginalElementList()[t.index]:null}getIsSelectAll(){const t=this.draw.getElementList(),{startIndex:e,endIndex:i}=this.range;return e===0&&t.length-1===i&&!this.position.getPositionContext().isTable}getIsPointInRange(t,e){const{startIndex:i,endIndex:n}=this.range,r=this.position.getPositionList();for(let o=i+1;o<=n&&r[o];o++){const{coordinate:{leftTop:a,rightBottom:R}}=r[o];if(t>=a[0]&&t<=R[0]&&e>=a[1]&&e<=R[1])return!0}return!1}getKeywordRangeList(t){const e=this.draw.getSearch().getMatchList(t,this.draw.getOriginalElementList()),i=new Map;for(const r of e){const o=i.get(r.groupId);if(o)o.endIndex+=1;else{const{type:l,groupId:a,tableId:R,index:c,tdIndex:u,trIndex:d}=r,g={startIndex:c,endIndex:c};l===Pe.TABLE&&(g.tableId=R,g.startTdIndex=u,g.endTdIndex=u,g.startTrIndex=d,g.endTrIndex=d),i.set(a,g)}}const n=[];return i.forEach(r=>{n.push(r)}),n}getIsCanInput(){const{startIndex:t,endIndex:e}=this.getRange();if(!~t&&!~e)return!1;if(t===e)return!0;const i=this.draw.getElementList(),n=i[t],r=i[e];return!n.controlId&&!r.controlId||(!n.controlId||n.controlComponent===D.POSTFIX)&&(!r.controlId||r.controlComponent===D.POSTFIX)||!!n.controlId&&r.controlId===n.controlId&&r.controlComponent!==D.POSTFIX}setRange(t,e,i,n,r,o,l){this.range.startIndex=t,this.range.endIndex=e,this.range.tableId=i,this.range.startTdIndex=n,this.range.endTdIndex=r,this.range.startTrIndex=o,this.range.endTrIndex=l,this.range.isCrossRowCol=!!(n||r||o||l),this.range.zone=this.draw.getZone().getZone();const a=this.draw.getControl();if(~t&&~e){const c=this.draw.getElementList()[t];if(c==null?void 0:c.controlId){a.initControl();return}}a.destroyControl()}replaceRange(t){this.setRange(t.startIndex,t.endIndex,t.tableId,t.startTdIndex,t.endTdIndex,t.startTrIndex,t.endTrIndex)}setRangeStyle(){var b,G;const t=this.listener.rangeStyleChange,e=this.eventBus.isSubscribe("rangeStyleChange");if(!t&&!e)return;const{startIndex:i,endIndex:n,isCrossRowCol:r}=this.range;if(!~i&&!~n)return;let o;if(r){const x=this.draw.getOriginalElementList(),y=this.position.getPositionContext();o=x[y.index]}else{const x=~n?n:0,y=this.draw.getElementList();o=He(y,x)}if(!o)return;const l=this.getSelection()||[o],a=o.type||N.TEXT,R=o.font||this.options.defaultFont,c=o.size||this.options.defaultSize,u=!~l.findIndex(x=>!x.bold),d=!~l.findIndex(x=>!x.italic),g=!~l.findIndex(x=>{var y;return!x.underline&&!((y=x.control)==null?void 0:y.underline)}),L=!~l.findIndex(x=>!x.strikeout),O=!~l.findIndex(x=>!x.aiEdit),P=o.color||null,M=o.highlight||null,T=o.rowFlex||null,X=(b=o.rowMargin)!=null?b:this.options.defaultRowMargin,S=o.dashArray||[],F=o.level||null,W=o.listType||null,I=o.listStyle||null,Z=g&&o.textDecoration||null,V=!!this.draw.getPainterStyle(),m=this.historyManager.isCanUndo(),Y=this.historyManager.isCanRedo(),Q=o.groupIds||null,U=(G=o.extension)!=null?G:null,f={type:a,undo:m,redo:Y,painter:V,font:R,size:c,bold:u,italic:d,underline:g,strikeout:L,aiEdit:O,color:P,highlight:M,rowFlex:T,rowMargin:X,dashArray:S,level:F,listType:W,listStyle:I,groupIds:Q,textDecoration:Z,extension:U};t&&t(f),e&&this.eventBus.emit("rangeStyleChange",f)}recoveryRangeStyle(){const t=this.listener.rangeStyleChange,e=this.eventBus.isSubscribe("rangeStyleChange");if(!t&&!e)return;const i=this.options.defaultFont,n=this.options.defaultSize,r=this.options.defaultRowMargin,o=!!this.draw.getPainterStyle(),l=this.historyManager.isCanUndo(),a=this.historyManager.isCanRedo(),R={type:null,undo:l,redo:a,painter:o,font:i,size:n,bold:!1,italic:!1,underline:!1,strikeout:!1,aiEdit:!1,color:null,highlight:null,rowFlex:null,rowMargin:r,dashArray:[],level:null,listType:null,listStyle:null,groupIds:null,textDecoration:null,extension:null};t&&t(R),e&&this.eventBus.emit("rangeStyleChange",R)}shrinkBoundary(t={}){const e=t.elementList||this.draw.getElementList(),i=t.range||this.getRange(),{startIndex:n,endIndex:r}=i;if(!~n&&!~r)return;const o=e[n],l=e[r];if(n===r){if(o.controlComponent===D.PLACEHOLDER){let a=n-1;for(;a>0;){const R=e[a];if(R.controlId!==o.controlId||R.controlComponent===D.PREFIX){i.startIndex=a,i.endIndex=a;break}a--}}}else{if(o.controlComponent===D.PLACEHOLDER||l.controlComponent===D.PLACEHOLDER){let a=r-1;for(;a>0;){const R=e[a];if(R.controlId!==l.controlId||R.controlComponent===D.PREFIX){i.startIndex=a,i.endIndex=a;return}a--}}if(o.controlComponent===D.PREFIX){let a=n+1;for(;a<e.length;){const R=e[a];if(R.controlId!==o.controlId||R.controlComponent===D.VALUE){i.startIndex=a-1;break}else if(R.controlComponent===D.PLACEHOLDER){i.startIndex=a-1,i.endIndex=a-1;return}a++}}if(l.controlComponent!==D.VALUE){let a=n-1;for(;a>0;){const R=e[a];if(R.controlId!==o.controlId||R.controlComponent===D.VALUE){i.startIndex=a;break}else if(R.controlComponent===D.PLACEHOLDER){i.startIndex=a,i.endIndex=a;return}a--}}}}render(t,e,i,n,r){t.save(),t.globalAlpha=this.options.rangeAlpha,t.fillStyle=this.options.rangeColor,t.fillRect(e,i,n,r),t.restore()}toString(){const t=this.getTextLikeSelection();return t?t.map(e=>e.value).join("").replace(new RegExp(k,"g"),""):""}}class ol{constructor(t){h(this,"draw");h(this,"options");h(this,"imageCache");this.draw=t,this.options=t.getOptions(),this.imageCache=new Map}_renderBackgroundColor(t,e,i,n){t.save(),t.fillStyle=e,t.fillRect(0,0,i,n),t.restore()}_drawImage(t,e,i,n){const{background:r,scale:o}=this.options;if(r.size===fi.CONTAIN){const l=e.width*o,a=e.height*o;if(!r.repeat||r.repeat===pe.NO_REPEAT)t.drawImage(e,0,0,l,a);else{let R=0,c=0;const u=r.repeat===pe.REPEAT||r.repeat===pe.REPEAT_X?Math.ceil(i*o/l):1,d=r.repeat===pe.REPEAT||r.repeat===pe.REPEAT_Y?Math.ceil(n*o/a):1;for(let g=0;g<u;g++){for(let L=0;L<d;L++)t.drawImage(e,R,c,l,a),c+=a;c=0,R+=l}}}else t.drawImage(e,0,0,i*o,n*o)}_renderBackgroundImage(t,e,i){const{background:n}=this.options,r=this.imageCache.get(n.image);if(r)this._drawImage(t,r,e,i);else{const o=new Image;o.setAttribute("crossOrigin","Anonymous"),o.src=n.image,o.onload=()=>{this.imageCache.set(n.image,o),this._drawImage(t,o,e,i),this.draw.render({isCompute:!1,isSubmitHistory:!1})}}}render(t,e){const{background:{image:i,color:n,applyPageNumbers:r}}=this.options;if(i&&(!(r==null?void 0:r.length)||r.includes(e))){const{width:o,height:l}=this.options;this._renderBackgroundImage(t,o,l)}else{const o=this.draw.getCanvasWidth(e),l=this.draw.getCanvasHeight(e);this._renderBackgroundColor(t,n,o,l)}}}class Rn{constructor(){h(this,"fillRect");h(this,"fillColor");h(this,"fillDecorationStyle");this.fillRect=this.clearFillInfo()}clearFillInfo(){return this.fillColor=void 0,this.fillDecorationStyle=void 0,this.fillRect={x:0,y:0,width:0,height:0},this.fillRect}recordFillInfo(t,e,i,n,r,o,l){const a=!this.fillRect.width;if(!a&&(this.fillColor!==o||this.fillDecorationStyle!==l)){this.render(t),this.clearFillInfo(),this.recordFillInfo(t,e,i,n,r,o,l);return}a&&(this.fillRect.x=e,this.fillRect.y=i),r&&this.fillRect.height<r&&(this.fillRect.height=r),this.fillRect.width+=n,this.fillColor=o,this.fillDecorationStyle=l}}class rl extends Rn{constructor(t){super();h(this,"options");this.options=t.getOptions()}render(t){if(!this.fillRect.width)return;const{highlightAlpha:e}=this.options,{x:i,y:n,width:r,height:o}=this.fillRect;t.save(),t.globalAlpha=e,t.fillStyle=this.fillColor,t.fillRect(i,n,r,o),t.restore(),this.clearFillInfo()}}class ll{constructor(t){h(this,"draw");h(this,"options");this.draw=t,this.options=t.getOptions()}render(t,e){const{marginIndicatorColor:i,pageMode:n}=this.options,r=this.draw.getWidth(),o=n===me.CONTINUITY?this.draw.getCanvasHeight(e)/this.draw.getPagePixelRatio():this.draw.getHeight(),l=this.draw.getMargins(),a=this.draw.getMarginIndicatorSize();t.save(),t.translate(.5,.5),t.strokeStyle=i,t.beginPath();const R=[l[3],l[0]],c=[r-l[1],l[0]],u=[l[3],o-l[2]],d=[r-l[1],o-l[2]];t.moveTo(R[0]-a,R[1]),t.lineTo(...R),t.lineTo(R[0],R[1]-a),t.moveTo(c[0]+a,c[1]),t.lineTo(...c),t.lineTo(c[0],c[1]-a),t.moveTo(u[0]-a,u[1]),t.lineTo(...u),t.lineTo(u[0],u[1]+a),t.moveTo(d[0]+a,d[1]),t.lineTo(...d),t.lineTo(d[0],d[1]+a),t.stroke(),t.restore()}}class al{constructor(t){h(this,"draw");h(this,"options");h(this,"position");h(this,"searchKeyword");h(this,"searchNavigateIndex");h(this,"searchMatchList");this.draw=t,this.options=t.getOptions(),this.position=t.getPosition(),this.searchNavigateIndex=null,this.searchKeyword=null,this.searchMatchList=[]}getSearchKeyword(){return this.searchKeyword}setSearchKeyword(t){this.searchKeyword=t,this.searchNavigateIndex=null}searchNavigatePre(){if(!this.searchMatchList.length||!this.searchKeyword)return null;if(this.searchNavigateIndex===null)this.searchNavigateIndex=0;else{let t=this.searchNavigateIndex-1,e=!1;const i=this.searchMatchList[this.searchNavigateIndex].groupId;for(;t>=0;){const n=this.searchMatchList[t];if(i!==n.groupId){e=!0,this.searchNavigateIndex=t-(this.searchKeyword.length-1);break}t--}if(!e){if(this.searchMatchList[this.searchMatchList.length-1].groupId===i)return null;this.searchNavigateIndex=this.searchMatchList.length-1-(this.searchKeyword.length-1)}}return this.searchNavigateIndex}searchNavigateNext(){if(!this.searchMatchList.length||!this.searchKeyword)return null;if(this.searchNavigateIndex===null)this.searchNavigateIndex=0;else{let t=this.searchNavigateIndex+1,e=!1;const i=this.searchMatchList[this.searchNavigateIndex].groupId;for(;t<this.searchMatchList.length;){const n=this.searchMatchList[t];if(i!==n.groupId){e=!0,this.searchNavigateIndex=t;break}t++}if(!e){if(this.searchMatchList[0].groupId===i)return null;this.searchNavigateIndex=0}}return this.searchNavigateIndex}searchNavigateScrollIntoView(t){const{coordinate:{leftTop:e,leftBottom:i,rightTop:n},pageNo:r}=t,o=this.draw.getHeight(),l=this.draw.getPageGap(),a=r*(o+l),R=document.createElement("div");R.style.position="absolute";const c=50;R.style.width=`${n[0]-e[0]+c}px`,R.style.height=`${i[1]-e[1]+c}px`,R.style.left=`${e[0]}px`,R.style.top=`${e[1]+a}px`,this.draw.getContainer().append(R),R.scrollIntoView(!1),R.remove()}getSearchNavigateIndexList(){return this.searchNavigateIndex===null||!this.searchKeyword?[]:new Array(this.searchKeyword.length).fill(this.searchNavigateIndex).map((t,e)=>t+e)}getSearchMatchList(){return this.searchMatchList}getSearchNavigateInfo(){if(!this.searchKeyword||!this.searchMatchList.length)return null;const t=this.searchNavigateIndex!==null?this.searchNavigateIndex/this.searchKeyword.length+1:0;let e=0,i=null;for(let n=0;n<this.searchMatchList.length;n++){const r=this.searchMatchList[n];i!==r.groupId&&(i=r.groupId,e+=1)}return{index:t,count:e}}getMatchList(t,e){const i=t.toLocaleLowerCase(),n=[],r=[],o=e.length,l=[];for(let u=0;u<o;u++)e[u].type===N.TABLE&&l.push(u);let a=0,R=0;for(;R<o-1;){const u=l.length?l[a]:o,d=e.slice(R,u);d.length&&r.push({index:R,type:Pe.PAGE,elementList:d});const g=e[u];g&&r.push({index:u,type:Pe.TABLE,elementList:[g]}),R=u+1,a++}function c(u,d,g,L){if(!u)return;const O=g.map(T=>!T.type||se.includes(T.type)&&T.controlComponent!==D.CHECKBOX?T.value:k).filter(Boolean).join("").toLocaleLowerCase(),P=[];let M=O.indexOf(u);for(;M!==-1;)P.push(M),M=O.indexOf(u,M+u.length);for(let T=0;T<P.length;T++){const X=P[T],S=Mt();for(let F=0;F<u.length;F++){const W=X+F+((L==null?void 0:L.startIndex)||0);n.push(E({type:d,index:W,groupId:S},L))}}}for(let u=0;u<r.length;u++){const d=r[u];if(d.type===Pe.TABLE){const g=d.elementList[0];for(let L=0;L<g.trList.length;L++){const O=g.trList[L];for(let P=0;P<O.tdList.length;P++){const M=O.tdList[P],T={tableId:g.id,tableIndex:d.index,trIndex:L,tdIndex:P,tdId:M.id};c(i,d.type,M.value,T)}}}else c(i,d.type,d.elementList,{startIndex:d.index})}return n}compute(t){this.searchMatchList=this.getMatchList(t,this.draw.getOriginalElementList())}render(t,e){var a,R;if(!this.searchMatchList||!this.searchMatchList.length||!this.searchKeyword)return;const{searchMatchAlpha:i,searchMatchColor:n,searchNavigateMatchColor:r}=this.options,o=this.position.getOriginalPositionList(),l=this.draw.getOriginalElementList();t.save(),t.globalAlpha=i;for(let c=0;c<this.searchMatchList.length;c++){const u=this.searchMatchList[c];let d=null;if(u.type===Pe.TABLE){const{tableIndex:W,trIndex:I,tdIndex:Z,index:V}=u;d=(R=(a=l[W])==null?void 0:a.trList[I].tdList[Z])==null?void 0:R.positionList[V]}else d=o[u.index];if(!d)continue;const{coordinate:{leftTop:g,leftBottom:L,rightTop:O},pageNo:P}=d;if(P!==e)continue;if(this.getSearchNavigateIndexList().includes(c)){t.fillStyle=r;const W=this.searchMatchList[c-1];(!W||W.groupId!==u.groupId)&&this.searchNavigateScrollIntoView(d)}else t.fillStyle=n;const T=g[0],X=g[1],S=O[0]-g[0],F=L[1]-g[1];t.fillRect(T,X,S,F)}t.restore()}}class Rl extends Rn{constructor(t){super();h(this,"options");this.options=t.getOptions()}render(t){if(!this.fillRect.width)return;const{scale:e,strikeoutColor:i}=this.options,{x:n,y:r,width:o}=this.fillRect;t.save(),t.lineWidth=e,t.strokeStyle=i;const l=r+.5;t.beginPath(),t.moveTo(n,l),t.lineTo(n+o,l),t.stroke(),t.restore(),this.clearFillInfo()}}var Ge;(function(s){s.SOLID="solid",s.DOUBLE="double",s.DASHED="dashed",s.DOTTED="dotted",s.WAVY="wavy"})(Ge||(Ge={}));var ve;(function(s){s.SOLID="solid",s.DASHED="dashed",s.DOTTED="dotted"})(ve||(ve={}));class cl extends Rn{constructor(t){super();h(this,"options");this.options=t.getOptions()}_drawLine(t,e,i,n,r){const o=e+n;switch(t.beginPath(),r){case ve.DASHED:t.setLineDash([3,1]);break;case ve.DOTTED:t.setLineDash([1,1]);break}t.moveTo(e,i),t.lineTo(o,i),t.stroke()}_drawDouble(t,e,i,n){const r=3,o=e+n,l=i+r*this.options.scale;t.beginPath(),t.moveTo(e,i),t.lineTo(o,i),t.stroke(),t.beginPath(),t.moveTo(e,l),t.lineTo(o,l),t.stroke()}_drawWave(t,e,i,n){const{scale:r}=this.options,o=1.2*r,l=1/r,a=i+2*o;t.beginPath();for(let R=0;R<n;R++){const c=o*Math.sin(l*R);t.lineTo(e+R,a+c)}t.stroke()}render(t){if(!this.fillRect.width)return;const{underlineColor:e,scale:i}=this.options,{x:n,y:r,width:o}=this.fillRect;t.save(),t.strokeStyle=this.fillColor||e,t.lineWidth=i;const l=Math.floor(r+2*t.lineWidth)+.5;switch(this.fillDecorationStyle){case Ge.WAVY:this._drawWave(t,n,l,o);break;case Ge.DOUBLE:this._drawDouble(t,n,l,o);break;case Ge.DASHED:this._drawLine(t,n,l,o,ve.DASHED);break;case Ge.DOTTED:this._drawLine(t,n,l,o,ve.DOTTED);break;default:this._drawLine(t,n,l,o);break}t.restore(),this.clearFillInfo()}}class ul{constructor(t){h(this,"draw");h(this,"options");h(this,"ctx");h(this,"curX");h(this,"curY");h(this,"text");h(this,"curStyle");h(this,"curColor");h(this,"cacheMeasureText");this.draw=t,this.options=t.getOptions(),this.ctx=t.getCtx(),this.curX=-1,this.curY=-1,this.text="",this.curStyle="",this.cacheMeasureText=new Map}measureBasisWord(t,e){t.save(),t.font=e;const i=this.measureText(t,{value:Po});return t.restore(),i}measureWord(t,e,i){const n=this.draw.getLetterReg();let r=0,o=e[i],l=i;for(;l<e.length;){const a=e[l];if(a.type&&a.type!==N.TEXT||!n.test(a.value)){o=a;break}r+=this.measureText(t,a).width,l++}return{width:r,endElement:o}}measurePunctuationWidth(t,e){return!e||!Oo.includes(e.value)?0:this.measureText(t,e).width}measureText(t,e){if(e.width){const o=t.measureText(e.value);return{width:e.width,actualBoundingBoxAscent:o.actualBoundingBoxAscent,actualBoundingBoxDescent:o.actualBoundingBoxDescent,actualBoundingBoxLeft:o.actualBoundingBoxLeft,actualBoundingBoxRight:o.actualBoundingBoxRight,fontBoundingBoxAscent:o.fontBoundingBoxAscent,fontBoundingBoxDescent:o.fontBoundingBoxDescent}}const i=`${e.value}${t.font}`,n=this.cacheMeasureText.get(i);if(n)return n;const r=t.measureText(e.value);return this.cacheMeasureText.set(i,r),r}complete(){this._render(),this.text=""}record(t,e,i,n){if(this.ctx=t,this.options.renderMode===Ii.COMPATIBILITY){this._setCurXY(i,n),this.text=e.value,this.curStyle=e.style,this.curColor=e.color,this.complete();return}this.text||this._setCurXY(i,n),(this.curStyle&&e.style!==this.curStyle||e.color!==this.curColor)&&(this.complete(),this._setCurXY(i,n)),this.text+=e.value,this.curStyle=e.style,this.curColor=e.color}_setCurXY(t,e){this.curX=t,this.curY=e}_render(){!this.text||!~this.curX||!~this.curX||(this.ctx.save(),this.ctx.font=this.curStyle,this.ctx.fillStyle=this.curColor||this.options.defaultColor,this.ctx.fillText(this.text,this.curX,this.curY),this.ctx.restore())}}class dl{constructor(t){h(this,"draw");h(this,"options");this.draw=t,this.options=t.getOptions()}render(t,e){const{scale:i,pageNumber:{size:n,font:r,color:o,rowFlex:l,numberType:a,format:R,startPageNo:c,fromPageNo:u}}=this.options;if(e<u)return;let d=R;const g=new RegExp(ji.PAGE_NO);if(g.test(d)){const W=e+c-u,I=a===ei.CHINESE?zn(W):`${W}`;d=d.replace(g,I)}const L=new RegExp(ji.PAGE_COUNT);if(L.test(d)){const W=this.draw.getPageCount()-u,I=a===ei.CHINESE?zn(W):`${W}`;d=d.replace(L,I)}const O=this.draw.getWidth(),P=this.draw.getHeight(),M=this.draw.getPageNumberBottom(),T=P-M;t.save(),t.fillStyle=o,t.font=`${n*i}px ${r}`;let X=0;const S=this.draw.getMargins(),{width:F}=t.measureText(d);l===at.CENTER?X=(O-F)/2:l===at.RIGHT?X=O-F-S[1]:X=S[3],t.fillText(d,X,T),t.restore()}}class hl{constructor(t){h(this,"draw");h(this,"options");h(this,"scrollContainer");h(this,"_observer",An(()=>{const{intersectionPageNo:t,visiblePageNoList:e}=this.getPageVisibleInfo();this.draw.setIntersectionPageNo(t),this.draw.setVisiblePageNoList(e)},150));this.draw=t,this.options=t.getOptions(),this.scrollContainer=this.getScrollContainer(),setTimeout(()=>{window.scrollY||this._observer()}),this._addEvent()}getScrollContainer(){return this.options.scrollContainerSelector&&document.querySelector(this.options.scrollContainerSelector)||document}_addEvent(){this.scrollContainer.addEventListener("scroll",this._observer)}removeEvent(){this.scrollContainer.removeEventListener("scroll",this._observer)}getElementVisibleInfo(t){const e=t.getBoundingClientRect(),i=this.scrollContainer===document?Math.max(document.documentElement.clientHeight,window.innerHeight):this.scrollContainer.clientHeight,n=Math.min(e.bottom,i)-Math.max(e.top,0);return{intersectionHeight:n>0?n:0}}getPageVisibleInfo(){const t=this.draw.getPageList(),e=[];let i=0,n=0;for(let r=0;r<t.length;r++){const o=t[r],{intersectionHeight:l}=this.getElementVisibleInfo(o);if(n&&!l)break;l&&e.push(r),l>n&&(n=l,i=r)}return{intersectionPageNo:i,visiblePageNoList:e}}}class gl{constructor(t){h(this,"step",5);h(this,"thresholdPoints",[70,40,10,20]);h(this,"selectionContainer");h(this,"rangeManager");h(this,"requestAnimationFrameId");h(this,"isMousedown");h(this,"isMoving");h(this,"clientWidth");h(this,"clientHeight");h(this,"containerRect");h(this,"_mousedown",()=>{if(this.isMousedown=!0,this.clientWidth=this.selectionContainer instanceof Document?document.documentElement.clientWidth:this.selectionContainer.clientWidth,this.clientHeight=this.selectionContainer instanceof Document?document.documentElement.clientHeight:this.selectionContainer.clientHeight,!(this.selectionContainer instanceof Document)){const t=this.selectionContainer.getBoundingClientRect();this.containerRect=t}});h(this,"_mouseup",()=>{this.isMousedown=!1,this._stopMove()});h(this,"_mousemove",t=>{if(!this.isMousedown||this.rangeManager.getIsCollapsed())return;let{x:e,y:i}=t;this.containerRect&&(e=e-this.containerRect.x,i=i-this.containerRect.y),i<this.thresholdPoints[0]?this._startMove(Kt.UP):this.clientHeight-i<=this.thresholdPoints[1]?this._startMove(Kt.DOWN):e<this.thresholdPoints[2]?this._startMove(Kt.LEFT):this.clientWidth-e<this.thresholdPoints[3]?this._startMove(Kt.RIGHT):this._stopMove()});this.rangeManager=t.getRange();const{scrollContainerSelector:e}=t.getOptions();this.selectionContainer=e&&document.querySelector(e)||document,this.requestAnimationFrameId=null,this.isMousedown=!1,this.isMoving=!1,this.clientWidth=0,this.clientHeight=0,this.containerRect=null,this._addEvent()}_addEvent(){const t=this.selectionContainer;t.addEventListener("mousedown",this._mousedown),t.addEventListener("mousemove",this._mousemove),t.addEventListener("mouseup",this._mouseup),document.addEventListener("mouseleave",this._mouseup)}removeEvent(){const t=this.selectionContainer;t.removeEventListener("mousedown",this._mousedown),t.removeEventListener("mousemove",this._mousemove),t.removeEventListener("mouseup",this._mouseup),document.removeEventListener("mouseleave",this._mouseup)}_move(t){const e=this.selectionContainer instanceof Document?window:this.selectionContainer,i=this.selectionContainer instanceof Document?window.scrollX:e.scrollLeft,n=this.selectionContainer instanceof Document?window.scrollY:e.scrollTop;t===Kt.DOWN?e.scrollTo(i,n+this.step):t===Kt.UP?e.scrollTo(i,n-this.step):t===Kt.LEFT?e.scrollTo(i-this.step,n):e.scrollTo(i+this.step,n),this.requestAnimationFrameId=window.requestAnimationFrame(this._move.bind(this,t))}_startMove(t){this.isMoving||(this.isMoving=!0,this._move(t))}_stopMove(){this.requestAnimationFrameId&&(window.cancelAnimationFrame(this.requestAnimationFrameId),this.requestAnimationFrameId=null,this.isMoving=!1)}}var vt;(function(s){s.ALL="all",s.EMPTY="empty",s.EXTERNAL="external",s.INTERNAL="internal",s.DASH="dash"})(vt||(vt={}));var kt;(function(s){s.TOP="top",s.RIGHT="right",s.BOTTOM="bottom",s.LEFT="left"})(kt||(kt={}));var Je;(function(s){s.FORWARD="forward",s.BACK="back"})(Je||(Je={}));class Ll{constructor(t){h(this,"draw");h(this,"range");h(this,"options");this.draw=t,this.range=t.getRange(),this.options=t.getOptions()}getTrListGroupByCol(t){var i;const e=Ot(t);for(let n=0;n<t.length;n++){const r=e[n];for(let o=r.tdList.length-1;o>=0;o--){const l=r.tdList[o],{rowspan:a,rowIndex:R,colIndex:c}=l,u=R+a-1;if(u!==o){const d=r.tdList.splice(o,1)[0];(i=e[u])==null||i.tdList.splice(c,0,d)}}}return e}getRangeRowCol(){const{isTable:t,index:e,trIndex:i,tdIndex:n}=this.draw.getPosition().getPositionContext();if(!t)return null;const{isCrossRowCol:r,startTdIndex:o,endTdIndex:l,startTrIndex:a,endTrIndex:R}=this.range.getRange(),d=this.draw.getOriginalElementList()[e].trList;if(!r)return[[d[i].tdList[n]]];let g=d[a].tdList[o],L=d[R].tdList[l];(g.x>L.x||g.y>L.y)&&([g,L]=[L,g]);const O=g.colIndex,P=L.colIndex+(L.colspan-1),M=g.rowIndex,T=L.rowIndex+(L.rowspan-1),X=[];for(let S=0;S<d.length;S++){const F=d[S],W=[];for(let I=0;I<F.tdList.length;I++){const Z=F.tdList[I],V=Z.colIndex,m=Z.rowIndex;V>=O&&V<=P&&m>=M&&m<=T&&W.push(Z)}W.length&&X.push(W)}return X.length?X:null}_drawOuterBorder(t){const{ctx:e,startX:i,startY:n,width:r,height:o,isDrawFullBorder:l}=t;e.beginPath();const a=Math.round(i),R=Math.round(n);e.translate(.5,.5),l?e.rect(a,R,r,o):(e.moveTo(a,R+o),e.lineTo(a,R),e.lineTo(a+r,R)),e.stroke(),e.translate(-.5,-.5)}_drawSlash(t,e,i,n){var c,u;const{scale:r}=this.options;t.save();const o=e.width*r,l=e.height*r,a=Math.round(e.x*r+i),R=Math.round(e.y*r+n);((c=e.slashTypes)==null?void 0:c.includes(Je.FORWARD))&&(t.moveTo(a+o,R),t.lineTo(a,R+l)),((u=e.slashTypes)==null?void 0:u.includes(Je.BACK))&&(t.moveTo(a,R),t.lineTo(a+o,R+l)),t.stroke(),t.restore()}_drawBorder(t,e,i,n){var L,O,P,M,T,X;const{colgroup:r,trList:o,borderType:l}=e;if(!r||!o)return;const{scale:a}=this.options,R=e.width*a,c=e.height*a,u=l===vt.EMPTY,d=l===vt.EXTERNAL,g=l===vt.INTERNAL;t.save(),l===vt.DASH&&t.setLineDash([3,3]),t.lineWidth=a,!u&&!g&&this._drawOuterBorder({ctx:t,startX:i,startY:n,width:R,height:c,isDrawFullBorder:d});for(let S=0;S<o.length;S++){const F=o[S];for(let W=0;W<F.tdList.length;W++){const I=F.tdList[W];if(((L=I.slashTypes)==null?void 0:L.length)&&this._drawSlash(t,I,i,n),!((O=I.borderTypes)==null?void 0:O.length)&&(u||d))continue;const Z=I.width*a,V=I.height*a,m=Math.round(I.x*a+i+Z),Y=Math.round(I.y*a+n);t.translate(.5,.5),t.beginPath(),((P=I.borderTypes)==null?void 0:P.includes(kt.TOP))&&(t.moveTo(m-Z,Y),t.lineTo(m,Y),t.stroke()),((M=I.borderTypes)==null?void 0:M.includes(kt.RIGHT))&&(t.moveTo(m,Y),t.lineTo(m,Y+V),t.stroke()),((T=I.borderTypes)==null?void 0:T.includes(kt.BOTTOM))&&(t.moveTo(m,Y+V),t.lineTo(m-Z,Y+V),t.stroke()),((X=I.borderTypes)==null?void 0:X.includes(kt.LEFT))&&(t.moveTo(m-Z,Y),t.lineTo(m-Z,Y+V),t.stroke()),!u&&!d&&((!g||I.colIndex+I.colspan<r.length)&&(t.moveTo(m,Y),t.lineTo(m,Y+V)),(!g||I.rowIndex+I.rowspan<o.length)&&(t.moveTo(m,Y+V),t.lineTo(m-Z,Y+V)),t.stroke()),t.translate(-.5,-.5)}}t.restore()}_drawBackgroundColor(t,e,i,n){const{trList:r}=e;if(!r)return;const{scale:o}=this.options;for(let l=0;l<r.length;l++){const a=r[l];for(let R=0;R<a.tdList.length;R++){const c=a.tdList[R];if(!c.backgroundColor)continue;t.save();const u=c.width*o,d=c.height*o,g=Math.round(c.x*o+i),L=Math.round(c.y*o+n);t.fillStyle=c.backgroundColor,t.fillRect(g,L,u,d),t.restore()}}}getTableWidth(t){return t.colgroup.reduce((e,i)=>e+i.width,0)}getTableHeight(t){const e=t.trList;return(e==null?void 0:e.length)?this.getTdListByColIndex(e,0).reduce((i,n)=>i+n.height,0):0}getRowCountByColIndex(t,e){return this.getTdListByColIndex(t,e).reduce((i,n)=>i+n.rowspan,0)}getTdListByColIndex(t,e){const i=[];for(let n=0;n<t.length;n++){const r=t[n].tdList;for(let o=0;o<r.length;o++){const l=r[o],a=l.colIndex,R=a+l.colspan-1;e>=a&&e<=R&&i.push(l)}}return i}getTdListByRowIndex(t,e){const i=[];for(let n=0;n<t.length;n++){const r=t[n].tdList;for(let o=0;o<r.length;o++){const l=r[o],a=l.rowIndex,R=a+l.rowspan-1;e>=a&&e<=R&&i.push(l)}}return i}computeRowColInfo(t){const{colgroup:e,trList:i}=t;if(!e||!i)return;let n=0;for(let r=0;r<i.length;r++){const o=i[r],l=i.length-1===r;for(let a=0;a<o.tdList.length;a++){const R=o.tdList[a];let c=0;if(i.length>1&&r!==0){const M=o.tdList[a-1],T=M?M.colIndex+M.colspan:a;for(let X=T;X<e.length;X++)if(this.getRowCountByColIndex(i.slice(0,r),X)===r){c=X;let F=0;for(let W=0;W<X;W++)F+=e[W].width;n=F;break}}else{const M=o.tdList[a-1];M&&(c=M.colIndex+M.colspan)}let u=0;for(let M=0;M<R.colspan;M++)u+=e[M+c].width;let d=0;for(let M=0;M<R.rowspan;M++)d+=(i[M+r]||i[r]).height;const g=o.tdList.length-1===a;let L=l;if(!L&&R.rowspan>1){const M=i.length-1-r;L=R.rowspan-1===M}const O=l&&g;R.isLastRowTd=g,R.isLastColTd=L,R.isLastTd=O,R.x=n;let P=0;for(let M=0;M<r;M++){const T=i[M].tdList;for(let X=0;X<T.length;X++){const S=T[X];if(c>=S.colIndex&&c<S.colIndex+S.colspan){P+=S.height;break}}}R.y=P,R.width=u,R.height=d,R.rowIndex=r,R.colIndex=c,R.trIndex=r,R.tdIndex=a,n+=u,g&&!O&&(n=0)}}}drawRange(t,e,i,n){const{scale:r,rangeAlpha:o,rangeColor:l}=this.options,{type:a,trList:R}=e;if(!R||a!==N.TABLE)return;const{isCrossRowCol:c,startTdIndex:u,endTdIndex:d,startTrIndex:g,endTrIndex:L}=this.range.getRange();if(!c)return;let O=R[g].tdList[u],P=R[L].tdList[d];(O.x>P.x||O.y>P.y)&&([O,P]=[P,O]);const M=O.colIndex,T=P.colIndex+(P.colspan-1),X=O.rowIndex,S=P.rowIndex+(P.rowspan-1);t.save();for(let F=0;F<R.length;F++){const W=R[F];for(let I=0;I<W.tdList.length;I++){const Z=W.tdList[I],V=Z.colIndex,m=Z.rowIndex;if(V>=M&&V<=T&&m>=X&&m<=S){const Y=Z.x*r,Q=Z.y*r,U=Z.width*r,f=Z.height*r;t.globalAlpha=o,t.fillStyle=l,t.fillRect(Y+i,Q+n,U,f)}}}t.restore()}render(t,e,i,n){this._drawBackgroundColor(t,e,i,n),this._drawBorder(t,e,i,n)}}var Te;(function(s){s.ROW="row",s.COL="col"})(Te||(Te={}));class Ol{constructor(t){h(this,"MIN_TD_WIDTH",20);h(this,"ROW_COL_OFFSET",18);h(this,"ROW_COL_QUICK_WIDTH",16);h(this,"ROW_COL_QUICK_OFFSET",5);h(this,"ROW_COL_QUICK_POSITION",this.ROW_COL_OFFSET+(this.ROW_COL_OFFSET-this.ROW_COL_QUICK_WIDTH)/2);h(this,"BORDER_VALUE",4);h(this,"TABLE_SELECT_OFFSET",20);h(this,"draw");h(this,"canvas");h(this,"options");h(this,"position");h(this,"range");h(this,"container");h(this,"toolRowContainer");h(this,"toolRowAddBtn");h(this,"toolColAddBtn");h(this,"toolTableSelectBtn");h(this,"toolColContainer");h(this,"toolBorderContainer");h(this,"anchorLine");h(this,"mousedownX");h(this,"mousedownY");this.draw=t,this.canvas=t.getPage(),this.options=t.getOptions(),this.position=t.getPosition(),this.range=t.getRange(),this.container=t.getContainer(),this.toolRowContainer=null,this.toolRowAddBtn=null,this.toolColAddBtn=null,this.toolTableSelectBtn=null,this.toolColContainer=null,this.toolBorderContainer=null,this.anchorLine=null,this.mousedownX=0,this.mousedownY=0}dispose(){var t,e,i,n,r,o;(t=this.toolRowContainer)==null||t.remove(),(e=this.toolRowAddBtn)==null||e.remove(),(i=this.toolColAddBtn)==null||i.remove(),(n=this.toolTableSelectBtn)==null||n.remove(),(r=this.toolColContainer)==null||r.remove(),(o=this.toolBorderContainer)==null||o.remove(),this.toolRowContainer=null,this.toolRowAddBtn=null,this.toolColAddBtn=null,this.toolTableSelectBtn=null,this.toolColContainer=null,this.toolBorderContainer=null}render(){const{isTable:t,index:e,trIndex:i,tdIndex:n}=this.position.getPositionContext();if(!t)return;this.dispose();const{scale:r}=this.options,o=this.draw.getOriginalElementList(),l=this.position.getOriginalPositionList(),a=o[e],R=l[e],{colgroup:c,trList:u}=a,{coordinate:{leftTop:d}}=R,g=this.draw.getHeight(),L=this.draw.getPageGap(),O=this.draw.getPageNo()*(g+L),P=d[0],M=d[1]+O,T=a.trList[i].tdList[n],X=T.rowIndex,S=T.colIndex,F=a.height*r,W=a.width*r,I=document.createElement("div");I.classList.add(`${_}-table-tool__select`),I.style.height=`${F*r}`,I.style.left=`${P}px`,I.style.top=`${M}px`,I.style.transform=`translate(-${this.TABLE_SELECT_OFFSET*r}px, ${-this.TABLE_SELECT_OFFSET*r}px)`,I.onclick=()=>{this.draw.getTableOperate().tableSelectAll()},this.container.append(I),this.toolTableSelectBtn=I;const Z=u.map(b=>b.height),V=document.createElement("div");V.classList.add(`${_}-table-tool__row`),V.style.transform=`translateX(-${this.ROW_COL_OFFSET*r}px)`;for(let b=0;b<Z.length;b++){const G=Z[b]*r,x=document.createElement("div");x.classList.add(`${_}-table-tool__row__item`),b===X&&x.classList.add("active"),x.onclick=()=>{const J=this.draw.getTableParticle().getTdListByRowIndex(u,b),j=J[0],st=J[J.length-1];this.position.setPositionContext({index:e,isTable:!0,trIndex:j.trIndex,tdIndex:j.tdIndex,tableId:a.id}),this.range.setRange(0,0,a.id,j.tdIndex,st.tdIndex,j.trIndex,st.trIndex),this.draw.render({curIndex:0,isCompute:!1,isSubmitHistory:!1}),this._setAnchorActive(V,b)};const y=document.createElement("div");y.classList.add(`${_}-table-tool__anchor`),y.onmousedown=J=>{this._mousedown({evt:J,element:a,index:b,order:Te.ROW})},x.append(y),x.style.height=`${G}px`,V.append(x)}V.style.left=`${P}px`,V.style.top=`${M}px`,this.container.append(V),this.toolRowContainer=V;const m=document.createElement("div");m.classList.add(`${_}-table-tool__quick__add`),m.style.height=`${F*r}`,m.style.left=`${P}px`,m.style.top=`${M+F}px`,m.style.transform=`translate(-${this.ROW_COL_QUICK_POSITION*r}px, ${this.ROW_COL_QUICK_OFFSET*r}px)`,m.onclick=()=>{this.position.setPositionContext({index:e,isTable:!0,trIndex:u.length-1,tdIndex:0,tableId:a.id}),this.draw.getTableOperate().insertTableBottomRow()},this.container.append(m),this.toolRowAddBtn=m;const Y=c.map(b=>b.width),Q=document.createElement("div");Q.classList.add(`${_}-table-tool__col`),Q.style.transform=`translateY(-${this.ROW_COL_OFFSET*r}px)`;for(let b=0;b<Y.length;b++){const G=Y[b]*r,x=document.createElement("div");x.classList.add(`${_}-table-tool__col__item`),b===S&&x.classList.add("active"),x.onclick=()=>{const J=this.draw.getTableParticle().getTdListByColIndex(u,b),j=J[0],st=J[J.length-1];this.position.setPositionContext({index:e,isTable:!0,trIndex:j.trIndex,tdIndex:j.tdIndex,tableId:a.id}),this.range.setRange(0,0,a.id,j.tdIndex,st.tdIndex,j.trIndex,st.trIndex),this.draw.render({curIndex:0,isCompute:!1,isSubmitHistory:!1}),this._setAnchorActive(Q,b)};const y=document.createElement("div");y.classList.add(`${_}-table-tool__anchor`),y.onmousedown=J=>{this._mousedown({evt:J,element:a,index:b,order:Te.COL})},x.append(y),x.style.width=`${G}px`,Q.append(x)}Q.style.left=`${P}px`,Q.style.top=`${M}px`,this.container.append(Q),this.toolColContainer=Q;const U=document.createElement("div");U.classList.add(`${_}-table-tool__quick__add`),U.style.height=`${F*r}`,U.style.left=`${P+W}px`,U.style.top=`${M}px`,U.style.transform=`translate(${this.ROW_COL_QUICK_OFFSET*r}px, -${this.ROW_COL_QUICK_POSITION*r}px)`,U.onclick=()=>{this.position.setPositionContext({index:e,isTable:!0,trIndex:0,tdIndex:u[0].tdList.length-1||0,tableId:a.id}),this.draw.getTableOperate().insertTableRightCol()},this.container.append(U),this.toolColAddBtn=U;const f=document.createElement("div");f.classList.add(`${_}-table-tool__border`),f.style.height=`${F}px`,f.style.width=`${W}px`,f.style.left=`${P}px`,f.style.top=`${M}px`;for(let b=0;b<u.length;b++){const G=u[b];for(let x=0;x<G.tdList.length;x++){const y=G.tdList[x],J=document.createElement("div");J.classList.add(`${_}-table-tool__border__row`),J.style.width=`${y.width*r}px`,J.style.height=`${this.BORDER_VALUE}px`,J.style.top=`${(y.y+y.height)*r-this.BORDER_VALUE/2}px`,J.style.left=`${y.x*r}px`,J.onmousedown=st=>{this._mousedown({evt:st,element:a,index:y.rowIndex+y.rowspan-1,order:Te.ROW})},f.appendChild(J);const j=document.createElement("div");j.classList.add(`${_}-table-tool__border__col`),j.style.width=`${this.BORDER_VALUE}px`,j.style.height=`${y.height*r}px`,j.style.top=`${y.y*r}px`,j.style.left=`${(y.x+y.width)*r-this.BORDER_VALUE/2}px`,j.onmousedown=st=>{this._mousedown({evt:st,element:a,index:y.colIndex+y.colspan-1,order:Te.COL})},f.appendChild(j)}}this.container.append(f),this.toolBorderContainer=f}_setAnchorActive(t,e){const i=t.children;for(let n=0;n<i.length;n++){const r=i[n];n===e?r.classList.add("active"):r.classList.remove("active")}}_mousedown(t){const{evt:e,index:i,order:n,element:r}=t;this.canvas=this.draw.getPage();const{scale:o}=this.options,l=this.draw.getWidth(),a=this.draw.getHeight(),R=this.draw.getPageGap(),c=this.draw.getPageNo()*(a+R);this.mousedownX=e.x,this.mousedownY=e.y;const u=e.target,d=this.canvas.getBoundingClientRect(),g=window.getComputedStyle(u).cursor;document.body.style.cursor=g,this.canvas.style.cursor=g;let L=0,O=0;const P=document.createElement("div");P.classList.add(`${_}-table-anchor__line`),n===Te.ROW?(P.classList.add(`${_}-table-anchor__line__row`),P.style.width=`${l}px`,L=0,O=c+this.mousedownY-d.top):(P.classList.add(`${_}-table-anchor__line__col`),P.style.height=`${a}px`,L=this.mousedownX-d.left,O=c),P.style.left=`${L}px`,P.style.top=`${O}px`,this.container.append(P),this.anchorLine=P;let M=0,T=0;const X=S=>{const F=this._mousemove(S,n,L,O);F&&(M=F.dx,T=F.dy)};document.addEventListener("mousemove",X),document.addEventListener("mouseup",()=>{var F;let S=!1;if(n===Te.ROW){const W=r.trList,I=W[i]||W[i-1],{defaultTrMinHeight:Z}=this.options.table;T<0&&I.height+T<Z&&(T=Z-I.height),T&&(I.height+=T,I.minHeight=I.height,S=!0)}else{const{colgroup:W}=r;if(W&&M){const I=this.draw.getInnerWidth(),Z=W[i].width;M<0&&Z+M<this.MIN_TD_WIDTH&&(M=this.MIN_TD_WIDTH-Z);const V=(F=W[i+1])==null?void 0:F.width;M>0&&V&&V-M<this.MIN_TD_WIDTH&&(M=V-this.MIN_TD_WIDTH);const m=Z+M;if(i===W.length-1){let Y=0;for(let Q=0;Q<W.length;Q++){const U=W[Q];Q===i+1&&(Y-=M),Q===i&&(Y+=m),Q!==i&&(Y+=U.width)}if(Y>I){const Q=r.width;M=I-Q}}M&&(W.length-1!==i&&(W[i+1].width-=M/o),W[i].width+=M/o,S=!0)}}S&&this.draw.render({isSetCursor:!1}),P.remove(),document.removeEventListener("mousemove",X),document.body.style.cursor="",this.canvas.style.cursor="text"},{once:!0}),e.preventDefault()}_mousemove(t,e,i,n){if(!this.anchorLine)return null;const r=t.x-this.mousedownX,o=t.y-this.mousedownY;return e===Te.ROW?this.anchorLine.style.top=`${n+o}px`:this.anchorLine.style.left=`${i+r}px`,t.preventDefault(),{dx:r,dy:o}}}class Ml{constructor(t){h(this,"draw");h(this,"options");h(this,"container");h(this,"hyperlinkPopupContainer");h(this,"hyperlinkDom");this.draw=t,this.options=t.getOptions(),this.container=t.getContainer();const{hyperlinkPopupContainer:e,hyperlinkDom:i}=this._createHyperlinkPopupDom();this.hyperlinkDom=i,this.hyperlinkPopupContainer=e}_createHyperlinkPopupDom(){const t=document.createElement("div");t.classList.add(`${_}-hyperlink-popup`);const e=document.createElement("a");return e.target="_blank",e.rel="noopener",t.append(e),this.container.append(t),{hyperlinkPopupContainer:t,hyperlinkDom:e}}drawHyperlinkPopup(t,e){const{coordinate:{leftTop:[i,n]},lineHeight:r}=e,o=this.draw.getHeight(),l=this.draw.getPageGap(),a=this.draw.getPageNo()*(o+l);this.hyperlinkPopupContainer.style.display="block",this.hyperlinkPopupContainer.style.left=`${i}px`,this.hyperlinkPopupContainer.style.top=`${n+a+r}px`;const R=t.url||"#";this.hyperlinkDom.href=R,this.hyperlinkDom.title=R,this.hyperlinkDom.innerText=R}clearHyperlinkPopup(){this.hyperlinkPopupContainer.style.display="none"}openHyperlink(t){const e=window.open(t.url,"_blank");e&&(e.opener=null)}render(t,e,i,n){t.save(),t.font=e.style,e.color||(e.color=this.options.defaultHyperlinkColor),t.fillStyle=e.color,e.underline===void 0&&(e.underline=!0),t.fillText(e.value,i,n),t.restore()}}class Pl{constructor(t,e){h(this,"draw");h(this,"position");h(this,"options");h(this,"elementList");h(this,"rowList");h(this,"positionList");this.draw=t,this.position=t.getPosition(),this.options=t.getOptions(),this.elementList=e||[],this.rowList=[],this.positionList=[]}getRowList(){return this.rowList}setElementList(t){this.elementList=t}getElementList(){return this.elementList}getPositionList(){return this.positionList}compute(){this.recovery(),this._computeRowList(),this._computePositionList()}recovery(){this.rowList=[],this.positionList=[]}_computeRowList(){const t=this.draw.getInnerWidth(),e=this.draw.getMargins(),i=ls(this.elementList);this.rowList=this.draw.computeRowList({startX:e[3],startY:this.getHeaderTop(),innerWidth:t,elementList:this.elementList,surroundElementList:i})}_computePositionList(){const t=this.getHeaderTop(),e=this.draw.getInnerWidth(),n=this.draw.getMargins()[3],r=t;this.position.computePageRowPosition({positionList:this.positionList,rowList:this.rowList,pageNo:0,startRowIndex:0,startIndex:0,startX:n,startY:r,innerWidth:e,zone:lt.HEADER})}getHeaderTop(){const{header:{top:t,disabled:e},scale:i}=this.options;return e?0:Math.floor(t*i)}getMaxHeight(){const{header:{maxHeightRadio:t}}=this.options,e=this.draw.getHeight();return Math.floor(e*Jn[t])}getHeight(){const t=this.getMaxHeight(),e=this.getRowHeight();return e>t?t:e}getRowHeight(){return this.rowList.reduce((t,e)=>t+e.height,0)}getExtraHeight(){const t=this.draw.getMargins(),e=this.getHeight(),n=this.getHeaderTop()+e-t[0];return n<=0?0:n}render(t,e){t.globalAlpha=1;const i=this.draw.getInnerWidth(),n=this.getMaxHeight(),r=[];let o=0;for(let l=0;l<this.rowList.length;l++){const a=this.rowList[l];if(o+a.height>n)break;r.push(a),o+=a.height}this.draw.drawRow(t,{elementList:this.elementList,positionList:this.positionList,rowList:r,pageNo:e,startIndex:0,innerWidth:i,zone:lt.HEADER})}}class Tl{getOffsetY(t){return-t.metrics.height/2}render(t,e,i,n){t.save(),t.font=e.style,e.color&&(t.fillStyle=e.color),t.fillText(e.value,i,n+this.getOffsetY(e)),t.restore()}}class Sl{getOffsetY(t){return t.metrics.height/2}render(t,e,i,n){t.save(),t.font=e.style,e.color&&(t.fillStyle=e.color),t.fillText(e.value,i,n+this.getOffsetY(e)),t.restore()}}class Xl{constructor(t){h(this,"options");this.options=t.getOptions()}render(t,e,i,n){var R;t.save();const{scale:r,separator:{lineWidth:o,strokeStyle:l}}=this.options;t.lineWidth=o*r,t.strokeStyle=e.color||l,((R=e.dashArray)==null?void 0:R.length)&&t.setLineDash(e.dashArray);const a=Math.round(n);t.translate(0,t.lineWidth/2),t.beginPath(),t.moveTo(i,a),t.lineTo(i+e.width*r,a),t.stroke(),t.restore()}}class Nl{constructor(t){h(this,"draw");h(this,"options");h(this,"i18n");this.draw=t,this.options=t.getOptions(),this.i18n=t.getI18n()}render(t,e,i,n){const{pageBreak:{font:r,fontSize:o,lineDash:l}}=this.options,a=this.i18n.t("pageBreak.displayName"),{scale:R,defaultRowMargin:c}=this.options,u=o*R,d=e.width*R,g=this.draw.getDefaultBasicRowMarginHeight()*c;t.save(),t.font=`${u}px ${r}`;const L=t.measureText(a),O=(d-L.width)/2;t.setLineDash(l),t.translate(0,.5+g),t.beginPath(),t.moveTo(i,n),t.lineTo(i+O,n),t.moveTo(i+O+L.width,n),t.lineTo(i+d,n),t.stroke(),t.fillText(a,i+O,n+L.actualBoundingBoxAscent-u/2),t.restore()}}class Fl{constructor(t){h(this,"draw");h(this,"options");this.draw=t,this.options=t.getOptions()}render(t){const{watermark:{data:e,opacity:i,font:n,size:r,color:o,repeat:l,gap:a},scale:R}=this.options,c=this.draw.getWidth(),u=this.draw.getHeight();t.save(),t.globalAlpha=i,t.font=`${r*R}px ${n}`;const d=t.measureText(e);if(l){const g=this.draw.getPagePixelRatio(),L=document.createElement("canvas"),O=L.getContext("2d"),P=d.width,M=d.actualBoundingBoxAscent+d.actualBoundingBoxDescent,T=Math.sqrt(Math.pow(P,2)+Math.pow(M,2)),X=T+2*a[0]*R,S=T+2*a[1]*R;L.width=X,L.height=S,L.style.width=`${X*g}px`,L.style.height=`${S*g}px`,O.translate(X/2,S/2),O.rotate(-45*Math.PI/180),O.translate(-X/2,-S/2),O.font=`${r*R}px ${n}`,O.fillStyle=o,O.fillText(e,(X-P)/2,(S-M)/2+d.actualBoundingBoxAscent);const F=t.createPattern(L,"repeat");F&&(t.fillStyle=F,t.fillRect(0,0,c,u))}else{const g=c/2,L=u/2;t.fillStyle=o,t.translate(g,L),t.rotate(-45*Math.PI/180),t.fillText(e,-d.width/2,d.actualBoundingBoxAscent-r/2)}t.restore()}}class fl{constructor(t){h(this,"draw");h(this,"options");h(this,"highlightList");h(this,"highlightMatchResult");this.draw=t.getDraw(),this.options=this.draw.getOptions(),this.highlightList=[],this.highlightMatchResult=[]}getHighlightMatchResult(){return this.highlightMatchResult}getHighlightList(){return this.highlightList}setHighlightList(t){this.highlightList=t}computeHighlightList(){const t=this.draw.getSearch(),e=(i,n)=>{let r=0;for(;r<i.length;){const o=i[r];if(r++,o.type===N.TABLE){const L=o.trList;for(let O=0;O<L.length;O++){const P=L[O];for(let M=0;M<P.tdList.length;M++){const T=P.tdList[M],X={tableId:o.id,tableIndex:r-1,trIndex:O,tdIndex:M,tdId:T.id};e(T.value,X)}}}const l=o==null?void 0:o.control;if(!l)continue;const a=this.highlightList.findIndex(L=>L.id===o.controlId||l.conceptId&&l.conceptId===L.conceptId);if(!~a)continue;const R=r;let c=r;for(;c<i.length&&i[c].controlId===o.controlId;)c++;r=c;const u=i.slice(R,c).map(L=>L.controlComponent===D.VALUE?L:{value:k}),d=this.highlightList[a],{ruleList:g}=d;for(let L=0;L<g.length;L++){const O=g[L],P=t.getMatchList(O.keyword,u);this.highlightMatchResult.push(...P.map(M=>q(E(E(E({},M),O),n),{index:M.index+R})))}}};this.highlightMatchResult=[],e(this.draw.getOriginalMainElementList())}renderHighlightList(t,e){var l,a,R;if(!((l=this.highlightMatchResult)==null?void 0:l.length))return;const{searchMatchAlpha:i,searchMatchColor:n}=this.options,r=this.draw.getPosition().getOriginalPositionList(),o=this.draw.getOriginalElementList();t.save();for(let c=0;c<this.highlightMatchResult.length;c++){const u=this.highlightMatchResult[c];let d=null;if(u.tableId){const{tableIndex:F,trIndex:W,tdIndex:I,index:Z}=u;d=(R=(a=o[F])==null?void 0:a.trList[W].tdList[I])==null?void 0:R.positionList[Z]}else d=r[u.index];if(!d)continue;const{coordinate:{leftTop:g,leftBottom:L,rightTop:O},pageNo:P}=d;if(P!==e)continue;t.fillStyle=u.backgroundColor||n,t.globalAlpha=u.alpha||i;const M=g[0],T=g[1],X=O[0]-g[0],S=L[1]-g[1];t.fillRect(M,T,X,S)}t.restore()}}class pl{constructor(t){h(this,"borderRect");h(this,"options");this.borderRect=this.clearBorderInfo(),this.options=t.getOptions()}clearBorderInfo(){return this.borderRect={x:0,y:0,width:0,height:0},this.borderRect}recordBorderInfo(t,e,i,n){!this.borderRect.width&&(this.borderRect.x=t,this.borderRect.y=e,this.borderRect.height=n),this.borderRect.width+=i}render(t){if(!this.borderRect.width)return;const{scale:e,control:{borderWidth:i,borderColor:n}}=this.options,{x:r,y:o,width:l,height:a}=this.borderRect;t.save(),t.translate(0,1*e),t.lineWidth=i*e,t.strokeStyle=n,t.beginPath(),t.rect(r,o,l,a),t.stroke(),t.restore(),this.clearBorderInfo()}}class ri{constructor(t,e){h(this,"element");h(this,"control");h(this,"isPopup");h(this,"selectDom");h(this,"options");this.options=e.getDraw().getOptions(),this.element=t,this.control=e,this.isPopup=!1,this.selectDom=null}setElement(t){this.element=t}getElement(){return this.element}getIsPopup(){return this.isPopup}getCode(){var t;return((t=this.element.control)==null?void 0:t.code)||null}getValue(t={}){const e=t.elementList||this.control.getElementList(),{startIndex:i}=t.range||this.control.getRange(),n=e[i],r=[];let o=i;for(;o>0;){const a=e[o];if(a.controlId!==n.controlId||a.controlComponent===D.PREFIX)break;a.controlComponent===D.VALUE&&r.unshift(a),o--}let l=i+1;for(;l<e.length;){const a=e[l];if(a.controlId!==n.controlId||a.controlComponent===D.POSTFIX)break;a.controlComponent===D.VALUE&&r.push(a),l++}return r}setValue(){return-1}keydown(t){if(this.control.getIsDisabledControl())return null;const e=this.control.getElementList(),i=this.control.getRange();this.control.shrinkBoundary();const{startIndex:n,endIndex:r}=i,o=e[n],l=e[r];if(t.key===z.Backspace)return n!==r?this.clearSelect():o.controlComponent===D.PREFIX||l.controlComponent===D.POSTFIX||o.controlComponent===D.PLACEHOLDER?this.control.removeControl(n):this.clearSelect();if(t.key===z.Delete){if(n!==r)return this.clearSelect();{const a=e[r+1];return o.controlComponent===D.PREFIX&&a.controlComponent===D.PLACEHOLDER||a.controlComponent===D.POSTFIX||o.controlComponent===D.PLACEHOLDER?this.control.removeControl(n):this.clearSelect()}}return r}cut(){if(this.control.getIsDisabledControl())return-1;this.control.shrinkBoundary();const{startIndex:t,endIndex:e}=this.control.getRange();return t===e?t:this.clearSelect()}clearSelect(t={},e={}){const{isIgnoreDisabledRule:i=!1,isAddPlaceholder:n=!0}=e;if(!i&&this.control.getIsDisabledControl(t))return-1;const r=t.elementList||this.control.getElementList(),{startIndex:o}=t.range||this.control.getRange(),l=r[o];let a=-1,R=-1,c=o;for(;c>0;){const g=r[c];if(g.controlId!==l.controlId||g.controlComponent===D.PREFIX){a=c;break}c--}let u=o+1;for(;u<r.length;){const g=r[u];if(g.controlId!==l.controlId||g.controlComponent===D.POSTFIX){R=u-1;break}u++}return!~a||!~R?-1:(this.control.getDraw().spliceElementList(r,a+1,R-a),n&&this.control.addPlaceholder(c,t),this.element.control.code=null,c)}setSelect(t,e={},i={}){if(!i.isIgnoreDisabledRule&&this.control.getIsDisabledControl(e))return;const n=e.elementList||this.control.getElementList(),r=e.range||this.control.getRange(),o=this.element.control,l=o.code;if(t===l){this.control.repaintControl({curIndex:r.startIndex,isCompute:!1,isSubmitHistory:!1}),this.destroy();return}const a=o.valueSets;if(!Array.isArray(a)||!a.length)return;const R=a.find(M=>M.code===t);if(!R)return;const c=this.getValue(e)[0],u=c?ne(c,Fe):ne(n[r.startIndex],fe),d=this.clearSelect(e,{isAddPlaceholder:!1});if(!~d)return;l||this.control.removePlaceholder(d,e);const g=Ne(n[d],Fe),L=d+1,O=jt(R.value),P=this.control.getDraw();for(let M=0;M<O.length;M++){const T=q(E(E({},u),g),{type:N.TEXT,value:O[M],controlComponent:D.VALUE});Ht(n,[T],d,{editorOptions:this.options}),P.spliceElementList(n,L+M,0,T)}if(o.code=t,!e.range){const M=L+O.length-1;this.control.repaintControl({curIndex:M}),this.destroy()}}_createSelectPopupDom(){const e=this.element.control.valueSets;if(!Array.isArray(e)||!e.length)return;const i=this.control.getPosition();if(!i)return;const n=document.createElement("div");n.classList.add(`${_}-select-control-popup`),n.setAttribute(he,le.POPUP);const r=document.createElement("ul");for(let u=0;u<e.length;u++){const d=e[u],g=document.createElement("li");this.getCode()===d.code&&g.classList.add("active"),g.onclick=()=>{this.setSelect(d.code)},g.append(document.createTextNode(d.value)),r.append(g)}n.append(r);const{coordinate:{leftTop:[o,l]},lineHeight:a}=i,R=this.control.getPreY();n.style.left=`${o}px`,n.style.top=`${l+R+a}px`,this.control.getContainer().append(n),this.selectDom=n}awake(){var i;if(this.isPopup||this.control.getIsDisabledControl())return;const{startIndex:t}=this.control.getRange();((i=this.control.getElementList()[t+1])==null?void 0:i.controlId)===this.element.controlId&&(this._createSelectPopupDom(),this.isPopup=!0)}destroy(){var t;!this.isPopup||((t=this.selectDom)==null||t.remove(),this.isPopup=!1)}}class Ss{constructor(t,e){h(this,"element");h(this,"control");h(this,"options");this.options=e.getDraw().getOptions(),this.element=t,this.control=e}setElement(t){this.element=t}getElement(){return this.element}getValue(t={}){const e=t.elementList||this.control.getElementList(),{startIndex:i}=t.range||this.control.getRange(),n=e[i],r=[];let o=i;for(;o>0;){const a=e[o];if(a.controlId!==n.controlId||a.controlComponent===D.PREFIX)break;a.controlComponent===D.VALUE&&r.unshift(a),o--}let l=i+1;for(;l<e.length;){const a=e[l];if(a.controlId!==n.controlId||a.controlComponent===D.POSTFIX)break;a.controlComponent===D.VALUE&&r.push(a),l++}return r}setValue(t,e={},i={}){if(!i.isIgnoreDisabledRule&&this.control.getIsDisabledControl(e))return-1;const n=e.elementList||this.control.getElementList(),r=e.range||this.control.getRange();this.control.shrinkBoundary(e);const{startIndex:o,endIndex:l}=r,a=this.control.getDraw();o!==l?a.spliceElementList(n,o+1,l-o):this.control.removePlaceholder(o,e);const R=n[o],c=R.type&&!se.includes(R.type)||R.controlComponent===D.PREFIX?ne(R,["control","controlId",...fe]):Ne(R,["type"]),u=r.startIndex+1;for(let d=0;d<t.length;d++){const g=q(E(E({},c),t[d]),{controlComponent:D.VALUE});Ht(n,[g],o,{editorOptions:this.options}),a.spliceElementList(n,u+d,0,g)}return u+t.length-1}clearValue(t={},e={}){if(!e.isIgnoreDisabledRule&&this.control.getIsDisabledControl(t))return-1;const i=t.elementList||this.control.getElementList(),n=t.range||this.control.getRange(),{startIndex:r,endIndex:o}=n;return this.control.getDraw().spliceElementList(i,r+1,o-r),this.getValue(t).length||this.control.addPlaceholder(r,t),r}keydown(t){if(this.control.getIsDisabledControl())return null;const e=this.control.getElementList(),i=this.control.getRange();this.control.shrinkBoundary();const{startIndex:n,endIndex:r}=i,o=e[n],l=e[r],a=this.control.getDraw();if(t.key===z.Backspace)return n!==r?(a.spliceElementList(e,n+1,r-n),this.getValue().length||this.control.addPlaceholder(n),n):o.controlComponent===D.PREFIX||l.controlComponent===D.POSTFIX||o.controlComponent===D.PLACEHOLDER?this.control.removeControl(n):(a.spliceElementList(e,n,1),this.getValue().length||this.control.addPlaceholder(n-1),n-1);if(t.key===z.Delete){if(n!==r)return a.spliceElementList(e,n+1,r-n),this.getValue().length||this.control.addPlaceholder(n),n;{const R=e[r+1];return o.controlComponent===D.PREFIX&&R.controlComponent===D.PLACEHOLDER||R.controlComponent===D.POSTFIX||o.controlComponent===D.PLACEHOLDER?this.control.removeControl(n):(a.spliceElementList(e,n+1,1),this.getValue().length||this.control.addPlaceholder(n),n)}}return r}cut(){if(this.control.getIsDisabledControl())return-1;this.control.shrinkBoundary();const{startIndex:t,endIndex:e}=this.control.getRange();if(t===e)return t;const i=this.control.getDraw(),n=this.control.getElementList();return i.spliceElementList(n,t+1,e-t),this.getValue().length||this.control.addPlaceholder(t),t}}class Xs{constructor(t,e={}){h(this,"draw");h(this,"options");h(this,"now");h(this,"dom");h(this,"renderOptions");h(this,"isDatePicker");h(this,"pickDate");h(this,"lang");this.draw=t,this.options=e,this.lang=this._getLang(),this.now=new Date,this.dom=this._createDom(),this.renderOptions=null,this.isDatePicker=!0,this.pickDate=null,this._bindEvent()}_createDom(){const t=document.createElement("div");t.classList.add(`${_}-date-container`),t.setAttribute(he,le.POPUP);const e=document.createElement("div");e.classList.add(`${_}-date-wrap`);const i=document.createElement("div");i.classList.add(`${_}-date-title`);const n=document.createElement("span");n.classList.add(`${_}-date-title__pre-year`),n.innerText="<<";const r=document.createElement("span");r.classList.add(`${_}-date-title__pre-month`),r.innerText="<";const o=document.createElement("span");o.classList.add(`${_}-date-title__now`);const l=document.createElement("span");l.classList.add(`${_}-date-title__next-month`),l.innerText=">";const a=document.createElement("span");a.classList.add(`${_}-date-title__next-year`),a.innerText=">>",i.append(n),i.append(r),i.append(o),i.append(l),i.append(a);const R=document.createElement("div");R.classList.add(`${_}-date-week`);const{weeks:{sun:c,mon:u,tue:d,wed:g,thu:L,fri:O,sat:P}}=this.lang;[c,u,d,g,L,O,P].forEach(Q=>{const U=document.createElement("span");U.innerText=`${Q}`,R.append(U)});const T=document.createElement("div");T.classList.add(`${_}-date-day`),e.append(i),e.append(R),e.append(T);const X=document.createElement("ul");X.classList.add(`${_}-time-wrap`);let S,F,W;[this.lang.hour,this.lang.minute,this.lang.second].forEach((Q,U)=>{const f=document.createElement("li"),b=document.createElement("span");b.innerText=Q,f.append(b);const G=document.createElement("ol"),x=U===0,y=U===1,J=x?24:60;for(let j=0;j<J;j++){const st=document.createElement("li");st.innerText=`${String(j).padStart(2,"0")}`,st.setAttribute("data-id",`${j}`),G.append(st)}x?S=G:y?F=G:W=G,f.append(G),X.append(f)});const Z=document.createElement("div");Z.classList.add(`${_}-date-menu`);const V=document.createElement("button");V.classList.add(`${_}-date-menu__time`),V.innerText=this.lang.timeSelect;const m=document.createElement("button");m.classList.add(`${_}-date-menu__now`),m.innerText=this.lang.now;const Y=document.createElement("button");return Y.classList.add(`${_}-date-menu__submit`),Y.innerText=this.lang.confirm,Z.append(V),Z.append(m),Z.append(Y),t.append(e),t.append(X),t.append(Z),this.draw.getContainer().append(t),{container:t,dateWrap:e,datePickerWeek:R,timeWrap:X,title:{preYear:n,preMonth:r,now:o,nextMonth:l,nextYear:a},day:T,time:{hour:S,minute:F,second:W},menu:{time:V,now:m,submit:Y}}}_bindEvent(){this.dom.title.preYear.onclick=()=>{this._preYear()},this.dom.title.preMonth.onclick=()=>{this._preMonth()},this.dom.title.nextMonth.onclick=()=>{this._nextMonth()},this.dom.title.nextYear.onclick=()=>{this._nextYear()},this.dom.menu.time.onclick=()=>{this.isDatePicker=!this.isDatePicker,this._toggleDateTimePicker()},this.dom.menu.now.onclick=()=>{this._now(),this._submit()},this.dom.menu.submit.onclick=()=>{this.dispose(),this._submit()},this.dom.time.hour.onclick=t=>{if(!this.pickDate)return;const i=t.target.dataset.id;!i||(this.pickDate.setHours(Number(i)),this._setTimePick(!1))},this.dom.time.minute.onclick=t=>{if(!this.pickDate)return;const i=t.target.dataset.id;!i||(this.pickDate.setMinutes(Number(i)),this._setTimePick(!1))},this.dom.time.second.onclick=t=>{if(!this.pickDate)return;const i=t.target.dataset.id;!i||(this.pickDate.setSeconds(Number(i)),this._setTimePick(!1))}}_setPosition(){if(!this.renderOptions)return;const{position:{coordinate:{leftTop:[t,e]},lineHeight:i,pageNo:n}}=this.renderOptions,r=this.draw.getHeight(),o=this.draw.getPageGap(),a=(n!=null?n:this.draw.getPageNo())*(r+o);this.dom.container.style.left=`${t}px`,this.dom.container.style.top=`${e+a+i}px`}isInvalidDate(t){return t.toDateString()==="Invalid Date"}_setValue(){var e;const t=(e=this.renderOptions)==null?void 0:e.value;if(t){const i=new Date(t);this.now=this.isInvalidDate(i)?new Date:i}else this.now=new Date;this.pickDate=new Date(this.now)}_getLang(){const t=this.draw.getI18n(),e=t.t.bind(t);return{now:e("datePicker.now"),confirm:e("datePicker.confirm"),return:e("datePicker.return"),timeSelect:e("datePicker.timeSelect"),weeks:{sun:e("datePicker.weeks.sun"),mon:e("datePicker.weeks.mon"),tue:e("datePicker.weeks.tue"),wed:e("datePicker.weeks.wed"),thu:e("datePicker.weeks.thu"),fri:e("datePicker.weeks.fri"),sat:e("datePicker.weeks.sat")},year:e("datePicker.year"),month:e("datePicker.month"),hour:e("datePicker.hour"),minute:e("datePicker.minute"),second:e("datePicker.second")}}_setLangChange(){this.dom.menu.time.innerText=this.lang.timeSelect,this.dom.menu.now.innerText=this.lang.now,this.dom.menu.submit.innerText=this.lang.confirm;const{weeks:{sun:t,mon:e,tue:i,wed:n,thu:r,fri:o,sat:l}}=this.lang,a=[t,e,i,n,r,o,l];this.dom.datePickerWeek.childNodes.forEach((d,g)=>{const L=d;L.innerText=a[g]});const R=this.dom.time.hour.previousElementSibling;R.innerText=this.lang.hour;const c=this.dom.time.minute.previousElementSibling;c.innerText=this.lang.minute;const u=this.dom.time.second.previousElementSibling;u.innerText=this.lang.second}_update(){const t=new Date,e=t.getFullYear(),i=t.getMonth()+1,n=t.getDate();let r=null,o=null,l=null;this.pickDate&&(r=this.pickDate.getFullYear(),o=this.pickDate.getMonth()+1,l=this.pickDate.getDate());const a=this.now.getFullYear(),R=this.now.getMonth()+1;this.dom.title.now.innerText=`${a}${this.lang.year} ${String(R).padStart(2,"0")}${this.lang.month}`;const u=new Date(a,R,0).getDate();let d=new Date(a,R-1,1).getDay();d===0&&(d=7);const g=new Date(a,R-1,0).getDate();this.dom.day.innerHTML="";const L=g-d+1;for(let P=L;P<=g;P++){const M=document.createElement("div");M.classList.add("disable"),M.innerText=`${P}`,M.onclick=()=>{const T=R-2;this.now=new Date(a,T,P),this._setDatePick(a,T,P)},this.dom.day.append(M)}for(let P=1;P<=u;P++){const M=document.createElement("div");e===a&&i===R&&n===P&&M.classList.add("active"),this.pickDate&&r===a&&o===R&&l===P&&M.classList.add("select"),M.innerText=`${P}`,M.onclick=T=>{const X=R-1;this.now=new Date(a,X,P),this._setDatePick(a,X,P),T.stopPropagation()},this.dom.day.append(M)}const O=6*7-d-u;for(let P=1;P<=O;P++){const M=document.createElement("div");M.classList.add("disable"),M.innerText=`${P}`,M.onclick=()=>{this.now=new Date(a,R,P),this._setDatePick(a,R,P)},this.dom.day.append(M)}}_toggleDateTimePicker(){this.isDatePicker?(this.dom.dateWrap.classList.add("active"),this.dom.timeWrap.classList.remove("active"),this.dom.menu.time.innerText=this.lang.timeSelect):(this.dom.dateWrap.classList.remove("active"),this.dom.timeWrap.classList.add("active"),this.dom.menu.time.innerText=this.lang.return,this._setTimePick())}_setDatePick(t,e,i){var n,r,o;this.now=new Date(t,e,i),(n=this.pickDate)==null||n.setFullYear(t),(r=this.pickDate)==null||r.setMonth(e),(o=this.pickDate)==null||o.setDate(i),this._update()}_setTimePick(t=!0){var c,u,d;const e=((c=this.pickDate)==null?void 0:c.getHours())||0,i=((u=this.pickDate)==null?void 0:u.getMinutes())||0,n=((d=this.pickDate)==null?void 0:d.getSeconds())||0,{hour:r,minute:o,second:l}=this.dom.time;[r,o,l].forEach(g=>{g.querySelectorAll("li").forEach(L=>L.classList.remove("active"))}),[[r,e],[o,i],[l,n]].forEach(([g,L])=>{const O=g.querySelector(`[data-id='${L}']`);O.classList.add("active"),t&&this._scrollIntoView(g,O)})}_scrollIntoView(t,e){if(!e){t.scrollTop=0;return}const i=[];let n=e.offsetParent;for(;n&&t!==n&&t.contains(n);)i.push(n),n=n.offsetParent;const r=e.offsetTop+i.reduce((R,c)=>R+c.offsetTop,0),o=r+e.offsetHeight,l=t.scrollTop,a=l+t.clientHeight;r<l?t.scrollTop=r:o>a&&(t.scrollTop=o-t.clientHeight)}_preMonth(){this.now.setMonth(this.now.getMonth()-1),this._update()}_nextMonth(){this.now.setMonth(this.now.getMonth()+1),this._update()}_preYear(){this.now.setFullYear(this.now.getFullYear()-1),this._update()}_nextYear(){this.now.setFullYear(this.now.getFullYear()+1),this._update()}_now(){this.pickDate=new Date,this.dispose()}_toggleVisible(t){t?this.dom.container.classList.add("active"):this.dom.container.classList.remove("active")}_submit(){var t;if(this.options.onSubmit&&this.pickDate){const e=(t=this.renderOptions)==null?void 0:t.dateFormat,i=this.formatDate(this.pickDate,e);this.options.onSubmit(i)}}formatDate(t,e="yyyy-MM-dd hh:mm:ss"){let i=e;const n={"y+":t.getFullYear().toString(),"M+":(t.getMonth()+1).toString(),"d+":t.getDate().toString(),"h+":t.getHours().toString(),"m+":t.getMinutes().toString(),"s+":t.getSeconds().toString()};for(const r in n){const o=new RegExp("("+r+")").exec(e),l=r;o&&(i=i.replace(o[1],o[1].length===1?n[l]:n[l].padStart(o[1].length,"0")))}return i}render(t){this.renderOptions=t,this.lang=this._getLang(),this._setLangChange(),this._setValue(),this._update(),this._setPosition(),this.isDatePicker=!0,this._toggleDateTimePicker(),this._toggleVisible(!0)}dispose(){this._toggleVisible(!1)}destroy(){this.dom.container.remove()}}class li{constructor(t,e){h(this,"draw");h(this,"element");h(this,"control");h(this,"isPopup");h(this,"datePicker");h(this,"options");const i=e.getDraw();this.draw=i,this.options=i.getOptions(),this.element=t,this.control=e,this.isPopup=!1,this.datePicker=null}setElement(t){this.element=t}getElement(){return this.element}getIsPopup(){return this.isPopup}getValueRange(t={}){const e=t.elementList||this.control.getElementList(),{startIndex:i}=t.range||this.control.getRange(),n=e[i];let r=i;for(;r>0;){const l=e[r];if(l.controlId!==n.controlId||l.controlComponent===D.PREFIX)break;r--}let o=i+1;for(;o<e.length;){const l=e[o];if(l.controlId!==n.controlId||l.controlComponent===D.POSTFIX)break;o++}return r===o?null:[r,o-1]}getValue(t={}){const e=t.elementList||this.control.getElementList(),i=this.getValueRange(t);if(!i)return[];const n=[],[r,o]=i;for(let l=r;l<=o;l++){const a=e[l];a.controlComponent===D.VALUE&&n.push(a)}return n}setValue(t,e={},i={}){if(!i.isIgnoreDisabledRule&&this.control.getIsDisabledControl(e))return-1;const n=e.elementList||this.control.getElementList(),r=e.range||this.control.getRange();this.control.shrinkBoundary(e);const{startIndex:o,endIndex:l}=r,a=this.control.getDraw();o!==l?a.spliceElementList(n,o+1,l-o):this.control.removePlaceholder(o,e);const R=n[o],c=R.type&&!se.includes(R.type)||R.controlComponent===D.PREFIX?ne(R,["control","controlId",...fe]):Ne(R,["type"]),u=r.startIndex+1;for(let d=0;d<t.length;d++){const g=q(E(E({},c),t[d]),{controlComponent:D.VALUE});Ht(n,[g],o,{editorOptions:this.options}),a.spliceElementList(n,u+d,0,g)}return u+t.length-1}clearSelect(t={},e={}){const{isIgnoreDisabledRule:i=!1,isAddPlaceholder:n=!0}=e;if(!i&&this.control.getIsDisabledControl(t))return-1;const r=this.getValueRange(t);if(!r)return-1;const[o,l]=r;if(!~o||!~l)return-1;const a=t.elementList||this.control.getElementList();return this.control.getDraw().spliceElementList(a,o+1,l-o),n&&this.control.addPlaceholder(o,t),o}setSelect(t,e={},i={}){if(!i.isIgnoreDisabledRule&&this.control.getIsDisabledControl(e))return;const n=e.elementList||this.control.getElementList(),r=e.range||this.control.getRange(),o=this.getValue(e)[0],l=o?ne(o,Fe):ne(n[r.startIndex],fe),a=this.clearSelect(e,{isAddPlaceholder:!1});if(!~a)return;const R=Ne(n[a],Fe),c=a+1,u=this.control.getDraw();for(let d=0;d<t.length;d++){const g=q(E(E({},l),R),{type:N.TEXT,value:t[d],controlComponent:D.VALUE});Ht(n,[g],a,{editorOptions:this.options}),u.spliceElementList(n,c+d,0,g)}if(!e.range){const d=c+t.length-1;this.control.repaintControl({curIndex:d}),this.destroy()}}keydown(t){if(this.control.getIsDisabledControl())return null;const e=this.control.getElementList(),i=this.control.getRange();this.control.shrinkBoundary();const{startIndex:n,endIndex:r}=i,o=e[n],l=e[r],a=this.control.getDraw();if(t.key===z.Backspace)return n!==r?(a.spliceElementList(e,n+1,r-n),this.getValue().length||this.control.addPlaceholder(n),n):o.controlComponent===D.PREFIX||l.controlComponent===D.POSTFIX||o.controlComponent===D.PLACEHOLDER?this.control.removeControl(n):(a.spliceElementList(e,n,1),this.getValue().length||this.control.addPlaceholder(n-1),n-1);if(t.key===z.Delete){if(n!==r)return a.spliceElementList(e,n+1,r-n),this.getValue().length||this.control.addPlaceholder(n),n;{const R=e[r+1];return o.controlComponent===D.PREFIX&&R.controlComponent===D.PLACEHOLDER||R.controlComponent===D.POSTFIX||o.controlComponent===D.PLACEHOLDER?this.control.removeControl(n):(a.spliceElementList(e,n+1,1),this.getValue().length||this.control.addPlaceholder(n),n)}}return r}cut(){if(this.control.getIsDisabledControl())return-1;this.control.shrinkBoundary();const{startIndex:t,endIndex:e}=this.control.getRange();if(t===e)return t;const i=this.control.getDraw(),n=this.control.getElementList();return i.spliceElementList(n,t+1,e-t),this.getValue().length||this.control.addPlaceholder(t),t}awake(){var o,l;if(this.isPopup||this.control.getIsDisabledControl())return;const t=this.control.getPosition();if(!t)return;const e=this.draw.getElementList(),{startIndex:i}=this.control.getRange();if(((o=e[i+1])==null?void 0:o.controlId)!==this.element.controlId)return;this.datePicker=new Xs(this.draw,{onSubmit:this._setDate.bind(this)});const n=this.getValue().map(a=>a.value).join("")||"",r=(l=this.element.control)==null?void 0:l.dateFormat;this.datePicker.render({value:n,position:t,dateFormat:r}),this.isPopup=!0}destroy(){var t;!this.isPopup||((t=this.datePicker)==null||t.destroy(),this.isPopup=!1)}_setDate(t){t?this.setSelect(t):this.clearSelect(),this.destroy()}}class ml{constructor(t){h(this,"controlBorder");h(this,"draw");h(this,"range");h(this,"listener");h(this,"eventBus");h(this,"controlSearch");h(this,"options");h(this,"controlOptions");h(this,"activeControl");this.controlBorder=new pl(t),this.draw=t,this.range=t.getRange(),this.listener=t.getListener(),this.eventBus=t.getEventBus(),this.controlSearch=new fl(this),this.options=t.getOptions(),this.controlOptions=this.options.control,this.activeControl=null}setHighlightList(t){this.controlSearch.setHighlightList(t)}computeHighlightList(){this.controlSearch.getHighlightList().length&&this.controlSearch.computeHighlightList()}renderHighlightList(t,e){this.controlSearch.getHighlightMatchResult().length&&this.controlSearch.renderHighlightList(t,e)}getDraw(){return this.draw}filterAssistElement(t){return t.filter(e=>{var i;if(e.type===N.TABLE){const n=e.trList;for(let r=0;r<n.length;r++){const o=n[r];for(let l=0;l<o.tdList.length;l++){const a=o.tdList[l];a.value=this.filterAssistElement(a.value)}}}return e.controlId?((i=e.control)==null?void 0:i.minWidth)&&(e.controlComponent===D.PREFIX||e.controlComponent===D.POSTFIX)?(e.value="",!0):e.controlComponent!==D.PREFIX&&e.controlComponent!==D.POSTFIX&&e.controlComponent!==D.PLACEHOLDER:!0})}getIsRangeCanCaptureEvent(){if(!this.activeControl)return!1;const{startIndex:t,endIndex:e}=this.getRange();if(!~t&&!~e)return!1;const i=this.getElementList(),n=i[t];if(t===e&&n.controlComponent===D.POSTFIX)return!0;const r=i[e];return!!(n.controlId&&n.controlId===r.controlId&&r.controlComponent!==D.POSTFIX)}getIsRangeInPostfix(){if(!this.activeControl)return!1;const{startIndex:t,endIndex:e}=this.getRange();return t!==e?!1:this.getElementList()[t].controlComponent===D.POSTFIX}getIsRangeWithinControl(){const{startIndex:t,endIndex:e}=this.getRange();if(!~t&&!~e)return!1;const i=this.getElementList(),n=i[t],r=i[e];return!!(n.controlId&&n.controlId===r.controlId&&r.controlComponent!==D.POSTFIX)}getIsElementListContainFullControl(t){if(!t.some(n=>n.controlId))return!1;let e=0,i=0;for(let n=0;n<t.length;n++){const r=t[n];r.controlComponent===D.PREFIX?e++:r.controlComponent===D.POSTFIX&&i++}return!e||!i?!1:e===i}getIsDisabledControl(t={}){var n,r;if(this.draw.isDesignMode()||!this.activeControl)return!1;const{startIndex:e,endIndex:i}=t.range||this.range.getRange();return e===i&&~e&&~i&&(t.elementList||this.getElementList())[e].controlComponent===D.POSTFIX?!1:!!((r=(n=this.activeControl.getElement())==null?void 0:n.control)==null?void 0:r.disabled)}getIsDisabledPasteControl(t={}){var n,r;if(this.draw.isDesignMode()||!this.activeControl)return!1;const{startIndex:e,endIndex:i}=t.range||this.range.getRange();return e===i&&~e&&~i&&(t.elementList||this.getElementList())[e].controlComponent===D.POSTFIX?!1:!!((r=(n=this.activeControl.getElement())==null?void 0:n.control)==null?void 0:r.pasteDisabled)}getContainer(){return this.draw.getContainer()}getElementList(){return this.draw.getElementList()}getPosition(){const t=this.draw.getPosition().getPositionList(),{endIndex:e}=this.range.getRange();return t[e]||null}getPreY(){var n,r;const t=this.draw.getHeight(),e=this.draw.getPageGap();return((r=(n=this.getPosition())==null?void 0:n.pageNo)!=null?r:this.draw.getPageNo())*(t+e)}getRange(){return this.range.getRange()}shrinkBoundary(t={}){this.range.shrinkBoundary(t)}getActiveControl(){return this.activeControl}initControl(){if(this.draw.isReadonly())return;const e=this.getElementList(),i=this.getRange(),n=e[i.startIndex];if(this.activeControl){(this.activeControl instanceof ri||this.activeControl instanceof li)&&(n.controlComponent===D.POSTFIX?this.activeControl.destroy():this.activeControl.awake());const o=this.activeControl.getElement();if(n.controlId===o.controlId)return}this.destroyControl();const r=n.control;if(r.type===dt.TEXT)this.activeControl=new Ss(n,this);else if(r.type===dt.SELECT){const o=new ri(n,this);this.activeControl=o,o.awake()}else if(r.type===dt.CHECKBOX)this.activeControl=new Vi(n,this);else if(r.type===dt.RADIO)this.activeControl=new ln(n,this);else if(r.type===dt.DATE){const o=new li(n,this);this.activeControl=o,o.awake()}Ti(()=>{var c;const o=this.listener.controlChange,l=this.eventBus.isSubscribe("controlChange");if(!o&&!l)return;let a;const R=(c=this.activeControl)==null?void 0:c.getValue();R&&R.length?a=Tt(R)[0].control:a=we(Ot(n)).control,o&&o(a),l&&this.eventBus.emit("controlChange",a)})}destroyControl(){this.activeControl&&((this.activeControl instanceof ri||this.activeControl instanceof li)&&this.activeControl.destroy(),this.activeControl=null,Ti(()=>{const t=this.listener.controlChange,e=this.eventBus.isSubscribe("controlChange");!t&&!e||(t&&t(null),e&&this.eventBus.emit("controlChange",null))}))}repaintControl(t={}){const{curIndex:e,isCompute:i=!0,isSubmitHistory:n=!0,isSetCursor:r=!0}=t;e===void 0?(this.range.clearRange(),this.draw.render({isCompute:i,isSubmitHistory:n,isSetCursor:!1})):(this.range.setRange(e,e),this.draw.render({curIndex:e,isCompute:i,isSetCursor:r,isSubmitHistory:n}))}reAwakeControl(){if(!this.activeControl)return;const t=this.getElementList(),e=this.getRange(),i=t[e.startIndex];this.activeControl.setElement(i),(this.activeControl instanceof li||this.activeControl instanceof ri)&&this.activeControl.getIsPopup()&&(this.activeControl.destroy(),this.activeControl.awake())}moveCursor(t){const{index:e,trIndex:i,tdIndex:n,tdValueIndex:r}=t;let o=this.draw.getOriginalElementList(),l;const a=t.isTable?r:e;if(t.isTable?(o=o[e].trList[i].tdList[n].value,l=o[r]):l=o[e],l.controlComponent===D.VALUE)return{newIndex:a,newElement:l};if(l.controlComponent===D.POSTFIX){let R=a+1;for(;R<o.length;){if(o[R].controlId!==l.controlId)return{newIndex:R-1,newElement:o[R-1]};R++}}else if(l.controlComponent===D.PREFIX){let R=a+1;for(;R<o.length;){const c=o[R];if(c.controlId!==l.controlId||c.controlComponent!==D.PREFIX)return{newIndex:R-1,newElement:o[R-1]};R++}}else if(l.controlComponent===D.PLACEHOLDER){let R=a-1;for(;R>0;){const c=o[R];if(c.controlId!==l.controlId||c.controlComponent===D.PREFIX)return{newIndex:R,newElement:o[R]};R--}}return{newIndex:a,newElement:l}}removeControl(t,e={}){const i=e.elementList||this.getElementList(),n=i[t];if(!this.draw.isDesignMode()){const{deletable:R=!0}=n.control;if(!R)return null}let r=-1,o=-1,l=t;for(;l>0;){if(i[l].controlId!==n.controlId){r=l;break}l--}let a=t+1;for(;a<i.length;){if(i[a].controlId!==n.controlId){o=a-1;break}a++}return a===i.length&&(o=a-1),!~r&&!~o?t:(r=~r?r:0,this.draw.spliceElementList(i,r+1,o-r),r)}removePlaceholder(t,e={}){const i=e.elementList||this.getElementList(),n=i[t],r=i[t+1];if(n.controlComponent===D.PLACEHOLDER||r.controlComponent===D.PLACEHOLDER){let o=!1,l=t;for(;l<i.length;){const a=i[l];if(a.controlId!==n.controlId)break;a.controlComponent===D.PLACEHOLDER?(o||(o=!0,this.draw.getHistoryManager().popUndo(),this.draw.submitHistory(t)),i.splice(l,1)):l++}}}addPlaceholder(t,e={}){const i=e.elementList||this.getElementList(),n=i[t],r=n.control;if(!r.placeholder)return;const o=jt(r.placeholder),l=ne(n,fe);for(let a=0;a<o.length;a++){const R=o[a],c=q(E({},l),{value:R,controlId:n.controlId,type:N.CONTROL,control:n.control,controlComponent:D.PLACEHOLDER,color:this.controlOptions.placeholderColor});Ht(i,[c],t,{editorOptions:this.options}),this.draw.spliceElementList(i,t+a+1,0,c)}}setValue(t){if(!this.activeControl)throw new Error("active control is null");return this.activeControl.setValue(t)}keydown(t){if(!this.activeControl)throw new Error("active control is null");return this.activeControl.keydown(t)}cut(){if(!this.activeControl)throw new Error("active control is null");return this.activeControl.cut()}getValueById(t){const{id:e,conceptId:i}=t,n=[];if(!e&&!i)return n;const r=(l,a)=>{let R=0;for(;R<l.length;){const c=l[R];if(R++,c.type===N.TABLE){const M=c.trList;for(let T=0;T<M.length;T++){const X=M[T];for(let S=0;S<X.tdList.length;S++){const F=X.tdList[S];r(F.value,a)}}}if(!c.control||e&&c.controlId!==e||i&&c.control.conceptId!==i)continue;const{type:u,code:d,valueSets:g}=c.control;let L=R,O="";const P=[];for(;L<l.length;){const M=l[L];if(M.controlId!==c.controlId)break;(u===dt.TEXT||u===dt.DATE)&&M.controlComponent===D.VALUE&&(O+=M.value,P.push(Ne(M,Ai))),L++}if(u===dt.TEXT||u===dt.DATE)n.push(q(E({},c.control),{zone:a,value:O||null,innerText:O||null,elementList:Tt(P)}));else if(u===dt.SELECT||u===dt.CHECKBOX||u===dt.RADIO){const M=d==null?void 0:d.split(",").map(T=>{var X;return(X=g==null?void 0:g.find(S=>S.code===T))==null?void 0:X.value}).filter(Boolean).join("");n.push(q(E({},c.control),{zone:a,value:d||null,innerText:M||null}))}R=L}},o=[{zone:lt.HEADER,elementList:this.draw.getHeaderElementList()},{zone:lt.MAIN,elementList:this.draw.getOriginalMainElementList()},{zone:lt.FOOTER,elementList:this.draw.getFooterElementList()}];for(const{zone:l,elementList:a}of o)r(a,l);return n}setValueById(t){let e=!1;const{id:i,conceptId:n,value:r}=t;if(!i&&!n)return;const o=a=>{let R=0;for(;R<a.length;){const c=a[R];if(R++,c.type===N.TABLE){const M=c.trList;for(let T=0;T<M.length;T++){const X=M[T];for(let S=0;S<X.tdList.length;S++){const F=X.tdList[S];o(F.value)}}}if(!c.control||i&&c.controlId!==i||n&&c.control.conceptId!==n)continue;e=!0;const{type:u}=c.control;let d=R;for(;d<a.length&&a[d].controlId===c.controlId;)d++;const L={range:{startIndex:R-1,endIndex:d-2},elementList:a},O={isIgnoreDisabledRule:!0};if(u===dt.TEXT){const M=Array.isArray(r)?r:[{value:r}];Bt(M,{isHandleFirstElement:!1,editorOptions:this.options});const T=new Ss(c,this);this.activeControl=T,r?T.setValue(M,L,O):T.clearValue(L,O)}else if(u===dt.SELECT){if(Array.isArray(r))continue;const M=new ri(c,this);this.activeControl=M,r?M.setSelect(r,L,O):M.clearSelect(L,O)}else if(u===dt.CHECKBOX){if(Array.isArray(r))continue;const M=new Vi(c,this);this.activeControl=M;const T=r?r.split(","):[];M.setSelect(T,L,O)}else if(u===dt.RADIO){if(Array.isArray(r))continue;const M=new ln(c,this);this.activeControl=M;const T=r?[r]:[];M.setSelect(T,L,O)}else if(u===dt.DATE){if(Array.isArray(r))continue;const M=new li(c,this);this.activeControl=M,r?M.setSelect(r,L,O):M.clearSelect(L,O)}this.activeControl=null;let P=R;for(;P<a.length&&a[P].controlId===c.controlId;)P++;R=P}};this.destroyControl();const l=[this.draw.getHeaderElementList(),this.draw.getOriginalMainElementList(),this.draw.getFooterElementList()];for(const a of l)o(a);e&&this.draw.render({isSetCursor:!1})}setExtensionById(t){const{id:e,conceptId:i,extension:n}=t;if(!e&&!i)return;const r=l=>{let a=0;for(;a<l.length;){const R=l[a];if(a++,R.type===N.TABLE){const u=R.trList;for(let d=0;d<u.length;d++){const g=u[d];for(let L=0;L<g.tdList.length;L++){const O=g.tdList[L];r(O.value)}}}if(!R.control||e&&R.controlId!==e||i&&R.control.conceptId!==i)continue;R.control.extension=n;let c=a;for(;c<l.length&&l[c].controlId===R.controlId;)c++;a=c}},o=[this.draw.getHeaderElementList(),this.draw.getOriginalMainElementList(),this.draw.getFooterElementList()];for(const l of o)r(l)}setPropertiesById(t){const{id:e,conceptId:i,properties:n}=t;if(!e&&!i)return;let r=!1;function o(a){let R=0;for(;R<a.length;){const c=a[R];if(R++,c.type===N.TABLE){const d=c.trList;for(let g=0;g<d.length;g++){const L=d[g];for(let O=0;O<L.tdList.length;O++){const P=L.tdList[O];o(P.value)}}}if(!c.control||e&&c.controlId!==e||i&&c.control.conceptId!==i)continue;r=!0,c.control=q(E(E({},c.control),n),{value:c.control.value}),fe.forEach(d=>{const g=n[d];g&&Reflect.set(c,d,g)});let u=R;for(;u<a.length&&a[u].controlId===c.controlId;)u++;R=u}}const l={header:this.draw.getHeaderElementList(),main:this.draw.getOriginalMainElementList(),footer:this.draw.getFooterElementList()};for(const a in l){const R=l[a];o(R)}if(!!r){for(const a in l){const R=a,c=Tt(l[R]);l[R]=c,Bt(c,{editorOptions:this.options,isForceCompensation:!0})}this.draw.setEditorData(l),this.draw.render({isSetCursor:!1})}}getList(){const t=[];function e(n){for(let r=0;r<n.length;r++){const o=n[r];if(o.type===N.TABLE){const l=o.trList;for(let a=0;a<l.length;a++){const R=l[a];for(let c=0;c<R.tdList.length;c++){const d=R.tdList[c].value;e(d)}}}if(o.controlId){const l=Ne(o,[...Ji,...Xi]);t.push(l)}}}const i=[this.draw.getHeader().getElementList(),this.draw.getOriginalMainElementList(),this.draw.getFooter().getElementList()];for(const n of i)e(n);return Tt(t,{extraPickAttrs:["controlId"]})}recordBorderInfo(t,e,i,n){this.controlBorder.recordBorderInfo(t,e,i,n)}drawBorder(t){this.controlBorder.render(t)}getPreControlContext(){if(!this.activeControl)return null;const e=this.draw.getPosition().getPositionContext();if(!e)return null;const i=this.activeControl.getElement();function n(a,R){for(let c=R;c>0;c--){const u=a[c];if(u.type===N.TABLE){const g=u.trList||[];for(let L=g.length-1;L>=0;L--){const O=g[L],P=O.tdList;for(let M=P.length-1;M>=0;M--){const T=P[M],X=n(T.value,T.value.length-1);if(X)return{positionContext:{isTable:!0,index:c,trIndex:L,tdIndex:M,tdId:T.id,trId:O.id,tableId:u.id},nextIndex:X.nextIndex}}}}if(!u.controlId||u.controlId===i.controlId)continue;let d=c;for(;d>0;){const g=a[d];if(g.controlComponent===D.VALUE||g.controlComponent===D.PREFIX)break;d--}return{positionContext:{isTable:!1},nextIndex:d}}return null}const{startIndex:r}=this.range.getRange(),o=this.getElementList(),l=n(o,r);if(l)return{positionContext:e.isTable?e:l.positionContext,nextIndex:l.nextIndex};if(i.tableId){const a=this.draw.getOriginalElementList(),{index:R,trIndex:c,tdIndex:u}=e,d=a[R].trList;for(let L=c;L>=0;L--){const O=d[L],P=O.tdList;for(let M=P.length-1;M>=0;M--){if(c===L&&M>=u)continue;const T=P[M],X=n(T.value,T.value.length-1);if(X)return{positionContext:{isTable:!0,index:e.index,trIndex:L,tdIndex:M,tdId:T.id,trId:O.id,tableId:i.tableId},nextIndex:X.nextIndex}}}const g=n(a,R-1);if(g)return{positionContext:{isTable:!1},nextIndex:g.nextIndex}}return null}getNextControlContext(){if(!this.activeControl)return null;const e=this.draw.getPosition().getPositionContext();if(!e)return null;const i=this.activeControl.getElement();function n(a,R){for(let c=R;c<a.length;c++){const u=a[c];if(u.type===N.TABLE){const d=u.trList||[];for(let g=0;g<d.length;g++){const L=d[g],O=L.tdList;for(let P=0;P<O.length;P++){const M=O[P],T=n(M.value,0);if(T)return{positionContext:{isTable:!0,index:c,trIndex:g,tdIndex:P,tdId:M.id,trId:L.id,tableId:u.id},nextIndex:T.nextIndex}}}}if(!(!u.controlId||u.controlId===i.controlId))return{positionContext:{isTable:!1},nextIndex:c}}return null}const{endIndex:r}=this.range.getRange(),o=this.getElementList(),l=n(o,r);if(l)return{positionContext:e.isTable?e:l.positionContext,nextIndex:l.nextIndex};if(i.tableId){const a=this.draw.getOriginalElementList(),{index:R,trIndex:c,tdIndex:u}=e,d=a[R].trList;for(let L=c;L<d.length;L++){const O=d[L],P=O.tdList;for(let M=0;M<P.length;M++){if(c===L&&M<=u)continue;const T=P[M],X=n(T.value,0);if(X)return{positionContext:{isTable:!0,index:e.index,trIndex:L,tdIndex:M,tdId:T.id,trId:O.id,tableId:i.tableId},nextIndex:X.nextIndex}}}const g=n(a,R+1);if(g)return{positionContext:{isTable:!1},nextIndex:g.nextIndex}}return null}initNextControl(t={}){const{direction:e=Kt.DOWN}=t;let i=null;if(e===Kt.UP?i=this.getPreControlContext():i=this.getNextControlContext(),!i)return;const{nextIndex:n,positionContext:r}=i,o=this.draw.getPosition();o.setPositionContext(r),this.draw.getRange().replaceRange({startIndex:n,endIndex:n}),this.draw.render({curIndex:n,isCompute:!1,isSetCursor:!0,isSubmitHistory:!1});const l=o.getPositionList();this.draw.getCursor().moveCursorToVisible({cursorPosition:l[n],direction:e})}setMinWidthControlInfo(t){var c,u,d,g,L;const{row:e,rowElement:i,controlRealWidth:n,availableWidth:r}=t;if(!((c=i.control)==null?void 0:c.minWidth))return;const{scale:o}=this.options,l=i.control.minWidth*o;let a=null;if(((u=i.control)==null?void 0:u.minWidth)&&(((d=i.control)==null?void 0:d.rowFlex)===at.CENTER||((g=i.control)==null?void 0:g.rowFlex)===at.RIGHT)){let O=i.metrics.width,P=e.elementList.length-1;for(;P>=0;){const M=e.elementList[P];if(O+=M.metrics.width,((L=e.elementList[P-1])==null?void 0:L.controlComponent)===D.PREFIX){a=M;break}P--}a&&O<l&&(i.control.rowFlex===at.CENTER?a.left=(l-O)/2:i.control.rowFlex===at.RIGHT&&(a.left=l-O-i.metrics.width))}const R=l-n;if(R>0){const O=(a==null?void 0:a.left)||0,P=r-e.width-i.metrics.width,M=Math.min(P,R);i.left=M-O,e.width+=M-O}}}class Il{constructor(t){h(this,"draw");h(this,"options");this.draw=t,this.options=t.getOptions()}setSelect(t){const{checkbox:e}=t;e?e.value=!e.value:t.checkbox={value:!0},this.draw.render({isCompute:!1,isSetCursor:!1})}render(t){const{ctx:e,x:i,index:n,row:r}=t;let{y:o}=t;const{checkbox:{gap:l,lineWidth:a,fillStyle:R,strokeStyle:c,verticalAlign:u},scale:d}=this.options,{metrics:g,checkbox:L}=r.elementList[n];if(u===It.TOP||u===It.MIDDLE){let X=n+1,S=null;for(;X<r.elementList.length&&(S=r.elementList[X],!(S.value!==k&&S.value!==Ci));)X++;if(S){const{metrics:{boundingBoxAscent:F,boundingBoxDescent:W}}=S,I=F+W;I>g.height&&(u===It.TOP?o-=F-g.height:u===It.MIDDLE&&(o-=(I-g.height)/2))}}const O=Math.round(i+l*d),P=Math.round(o-g.height+a),M=g.width-l*2*d,T=g.height;e.save(),e.beginPath(),e.translate(.5,.5),(L==null?void 0:L.value)?(e.lineWidth=a,e.strokeStyle=R,e.rect(O,P,M,T),e.stroke(),e.beginPath(),e.fillStyle=R,e.fillRect(O,P,M,T),e.beginPath(),e.strokeStyle=c,e.lineWidth=a*2*d,e.moveTo(O+2*d,P+T/2),e.lineTo(O+M/2,P+T-3*d),e.lineTo(O+M-2*d,P+3*d),e.stroke()):(e.lineWidth=a,e.rect(O,P,M,T),e.stroke()),e.closePath(),e.restore()}}class Wl{constructor(t){h(this,"draw");h(this,"options");this.draw=t,this.options=t.getOptions()}setSelect(t){const{radio:e}=t;e?e.value=!e.value:t.radio={value:!0},this.draw.render({isCompute:!1,isSetCursor:!1})}render(t){const{ctx:e,x:i,index:n,row:r}=t;let{y:o}=t;const{radio:{gap:l,lineWidth:a,fillStyle:R,strokeStyle:c,verticalAlign:u},scale:d}=this.options,{metrics:g,radio:L}=r.elementList[n];if(u===It.TOP||u===It.MIDDLE){let X=n+1,S=null;for(;X<r.elementList.length&&(S=r.elementList[X],!(S.value!==k&&S.value!==Ci));)X++;if(S){const{metrics:{boundingBoxAscent:F,boundingBoxDescent:W}}=S,I=F+W;I>g.height&&(u===It.TOP?o-=F-g.height:u===It.MIDDLE&&(o-=(I-g.height)/2))}}const O=Math.round(i+l*d),P=Math.round(o-g.height+a),M=g.width-l*2*d,T=g.height;e.save(),e.beginPath(),e.translate(.5,.5),e.strokeStyle=(L==null?void 0:L.value)?R:c,e.lineWidth=a,e.arc(O+M/2,P+T/2,M/2,0,Math.PI*2),e.stroke(),(L==null?void 0:L.value)&&(e.beginPath(),e.fillStyle=R,e.arc(O+M/2,P+T/2,M/3,0,Math.PI*2),e.fill()),e.closePath(),e.restore()}}const Ns="KCgpPT57KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3ZhciBmOyhmdW5jdGlvbih0KXt0LlRFWFQ9InRleHQiLHQuVEFCTEU9InRhYmxlIix0LkhZUEVSTElOSz0iaHlwZXJsaW5rIix0LkNPTlRST0w9ImNvbnRyb2wifSkoZnx8KGY9e30pKTt2YXIgcDsoZnVuY3Rpb24odCl7dC5WQUxVRT0idmFsdWUifSkocHx8KHA9e30pKTtjb25zdCBoPSJcdTIwMEIiLGc9YApgO2Z1bmN0aW9uIGEodCl7bGV0IGw9IiIsbj0wO2Zvcig7bjx0Lmxlbmd0aDspe2NvbnN0IG89dFtuXTtpZihvLnR5cGU9PT1mLlRBQkxFKXtpZihvLnRyTGlzdClmb3IobGV0IHI9MDtyPG8udHJMaXN0Lmxlbmd0aDtyKyspe2NvbnN0IHM9by50ckxpc3Rbcl07Zm9yKGxldCBlPTA7ZTxzLnRkTGlzdC5sZW5ndGg7ZSsrKXtjb25zdCBpPXMudGRMaXN0W2VdO2wrPWEoaS52YWx1ZSl9fX1lbHNlIGlmKG8udHlwZT09PWYuSFlQRVJMSU5LKXtjb25zdCByPW8uaHlwZXJsaW5rSWQscz1bXTtmb3IoO248dC5sZW5ndGg7KXtjb25zdCBlPXRbbl07aWYociE9PWUuaHlwZXJsaW5rSWQpe24tLTticmVha31kZWxldGUgZS50eXBlLHMucHVzaChlKSxuKyt9bCs9YShzKX1lbHNlIGlmKG8uY29udHJvbElkKXtjb25zdCByPW8uY29udHJvbElkLHM9W107Zm9yKDtuPHQubGVuZ3RoOyl7Y29uc3QgZT10W25dO2lmKHIhPT1lLmNvbnRyb2xJZCl7bi0tO2JyZWFrfWUuY29udHJvbENvbXBvbmVudD09PXAuVkFMVUUmJihkZWxldGUgZS5jb250cm9sSWQscy5wdXNoKGUpKSxuKyt9bCs9YShzKX1lbHNlKCFvLnR5cGV8fG8udHlwZT09PWYuVEVYVCkmJihsKz1vLnZhbHVlKTtuKyt9cmV0dXJuIGx9ZnVuY3Rpb24gZCh0KXtjb25zdCBsPVtdLG49L1swLTldLyxvPS9bQS1aYS16XS8scj0vXHMvO2xldCBzPSExLGU9ITEsaT0iIjtmdW5jdGlvbiB1KCl7aSYmKGwucHVzaChpKSxpPSIiKX1mb3IoY29uc3QgYyBvZiB0KW8udGVzdChjKT8oc3x8dSgpLGkrPWMscz0hMCxlPSExKTpuLnRlc3QoYyk/KGV8fHUoKSxpKz1jLHM9ITEsZT0hMCk6KHUoKSxzPSExLGU9ITEsci50ZXN0KGMpfHxsLnB1c2goYykpO3JldHVybiB1KCksbH1vbm1lc3NhZ2U9dD0+e2NvbnN0IGw9dC5kYXRhLG89YShsKS5yZXBsYWNlKG5ldyBSZWdFeHAoYF4ke2h9YCksIiIpLnJlcGxhY2UobmV3IFJlZ0V4cChoLCJnIiksZykscj1kKG8pO3Bvc3RNZXNzYWdlKHIubGVuZ3RoKX19KSgpO30pKCk7Cg==",Fs=typeof window!="undefined"&&window.Blob&&new Blob([atob(Ns)],{type:"text/javascript;charset=utf-8"});function Vl(){const s=Fs&&(window.URL||window.webkitURL).createObjectURL(Fs);try{return s?new Worker(s):new Worker("data:application/javascript;base64,"+Ns,{type:"module"})}finally{s&&(window.URL||window.webkitURL).revokeObjectURL(s)}}const fs="KCgpPT57KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3ZhciBhOyhmdW5jdGlvbih0KXt0LlRFWFQ9InRleHQiLHQuSU1BR0U9ImltYWdlIix0LlRBQkxFPSJ0YWJsZSIsd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LGM9e3R5cGU6YS5USVRMRSx2YWx1ZToiIixsZXZlbDplLHRpdGxlSWQ6byxwYWdlTm86dltpXS5wYWdlTm99LHI9W107Zm9yKDtpPG4ubGVuZ3RoOyl7Y29uc3QgdT1uW2ldO2lmKG8hPT11LnRpdGxlSWQpe2ktLTticmVha31yLnB1c2godSksaSsrfWMudmFsdWU9ci5maWx0ZXIodT0+ZCh1KSkubWFwKHU9PnUudmFsdWUpLmpvaW4oIiIpLnJlcGxhY2UobmV3IFJlZ0V4cChULCJnIiksIiIpLGcucHVzaChjKX1pKyt9aWYoIWcubGVuZ3RoKXJldHVybiBudWxsO2NvbnN0IGg9KHMsbyk9Pntjb25zdCBlPW8uc3ViQ2F0YWxvZ1tvLnN1YkNhdGFsb2cubGVuZ3RoLTFdLGM9SVtlPT1udWxsP3ZvaWQgMDplLmxldmVsXSxyPUlbcy5sZXZlbF07ZSYmcj5jP2gocyxlKTpvLnN1YkNhdGFsb2cucHVzaCh7aWQ6cy50aXRsZUlkLG5hbWU6cy52YWx1ZSxsZXZlbDpzLmxldmVsLHBhZ2VObzpzLnBhZ2VObyxzdWJDYXRhbG9nOltdfSl9LFI9W107Zm9yKGxldCBzPTA7czxnLmxlbmd0aDtzKyspe2NvbnN0IG89Z1tzXSxlPVJbUi5sZW5ndGgtMV0sYz1JW2U9PW51bGw/dm9pZCAwOmUubGV2ZWxdLHI9SVtvLmxldmVsXTtlJiZyPmM/aChvLGUpOlIucHVzaCh7aWQ6by50aXRsZUlkLG5hbWU6by52YWx1ZSxsZXZlbDpvLmxldmVsLHBhZ2VObzpvLnBhZ2VObyxzdWJDYXRhbG9nOltdfSl9cmV0dXJuIFJ9b25tZXNzYWdlPXQ9Pntjb25zdCBuPXQuZGF0YSx2PUwobik7cG9zdE1lc3NhZ2Uodil9fSkoKTt9KSgpOwo=",ps=typeof window!="undefined"&&window.Blob&&new Blob([atob(fs)],{type:"text/javascript;charset=utf-8"});function Yl(){const s=ps&&(window.URL||window.webkitURL).createObjectURL(ps);try{return s?new Worker(s):new Worker("data:application/javascript;base64,"+fs,{type:"module"})}finally{s&&(window.URL||window.webkitURL).revokeObjectURL(s)}}const ms="KCgpPT57KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3ZhciBuOyhmdW5jdGlvbihvKXtvLlRBQkxFPSJ0YWJsZSJ9KShufHwobj17fSkpO2Z1bmN0aW9uIGMobyl7Y29uc3QgdD1bXTtmb3IoY29uc3QgcyBvZiBvKXtpZihzLnR5cGU9PT1uLlRBQkxFKXtjb25zdCBlPXMudHJMaXN0O2ZvcihsZXQgcj0wO3I8ZS5sZW5ndGg7cisrKXtjb25zdCBpPWVbcl07Zm9yKGxldCB1PTA7dTxpLnRkTGlzdC5sZW5ndGg7dSsrKXtjb25zdCBkPWkudGRMaXN0W3VdO3QucHVzaCguLi5jKGQudmFsdWUpKX19fWlmKCEhcy5ncm91cElkcylmb3IoY29uc3QgZSBvZiBzLmdyb3VwSWRzKXQuaW5jbHVkZXMoZSl8fHQucHVzaChlKX1yZXR1cm4gdH1vbm1lc3NhZ2U9bz0+e2NvbnN0IHQ9by5kYXRhLHM9Yyh0KTtwb3N0TWVzc2FnZShzKX19KSgpO30pKCk7Cg==",Is=typeof window!="undefined"&&window.Blob&&new Blob([atob(ms)],{type:"text/javascript;charset=utf-8"});function Ul(){const s=Is&&(window.URL||window.webkitURL).createObjectURL(Is);try{return s?new Worker(s):new Worker("data:application/javascript;base64,"+ms,{type:"module"})}finally{s&&(window.URL||window.webkitURL).revokeObjectURL(s)}}class Zl{constructor(t){h(this,"draw");h(this,"wordCountWorker");h(this,"catalogWorker");h(this,"groupWorker");this.draw=t,this.wordCountWorker=new Vl,this.catalogWorker=new Yl,this.groupWorker=new Ul}getWordCount(){return new Promise((t,e)=>{this.wordCountWorker.onmessage=n=>{t(n.data)},this.wordCountWorker.onerror=n=>{e(n)};const i=this.draw.getOriginalMainElementList();this.wordCountWorker.postMessage(i)})}getCatalog(){return new Promise((t,e)=>{this.catalogWorker.onmessage=r=>{t(r.data)},this.catalogWorker.onerror=r=>{e(r)};const i=this.draw.getOriginalMainElementList(),n=this.draw.getPosition().getOriginalMainPositionList();this.catalogWorker.postMessage({elementList:i,positionList:n})})}getGroupIds(){return new Promise((t,e)=>{this.groupWorker.onmessage=n=>{t(n.data)},this.groupWorker.onerror=n=>{e(n)};const i=this.draw.getOriginalMainElementList();this.groupWorker.postMessage(i)})}}class Ql{constructor(t){h(this,"container");h(this,"canvas");h(this,"draw");h(this,"options");h(this,"curElement");h(this,"curElementSrc");h(this,"previewerDrawOption");h(this,"curPosition");h(this,"resizerSelection");h(this,"resizerHandleList");h(this,"resizerImageContainer");h(this,"resizerImage");h(this,"resizerSize");h(this,"width");h(this,"height");h(this,"mousedownX");h(this,"mousedownY");h(this,"curHandleIndex");h(this,"previewerContainer");h(this,"previewerImage");h(this,"_keydown",()=>{this.resizerSelection.style.display==="block"&&(this.clearResizer(),document.removeEventListener("keydown",this._keydown))});this.container=t.getContainer(),this.canvas=t.getPage(),this.draw=t,this.options=t.getOptions(),this.curElement=null,this.curElementSrc="",this.previewerDrawOption={},this.curPosition=null;const{resizerSelection:e,resizerHandleList:i,resizerImageContainer:n,resizerImage:r,resizerSize:o}=this._createResizerDom();this.resizerSelection=e,this.resizerHandleList=i,this.resizerImageContainer=n,this.resizerImage=r,this.resizerSize=o,this.width=0,this.height=0,this.mousedownX=0,this.mousedownY=0,this.curHandleIndex=0,this.previewerContainer=null,this.previewerImage=null}_getElementPosition(t,e=null){var R;let i=0,n=0;const r=this.draw.getHeight(),o=this.draw.getPageGap(),a=((R=e==null?void 0:e.pageNo)!=null?R:this.draw.getPageNo())*(r+o);if(t.imgFloatPosition)i=t.imgFloatPosition.x,n=t.imgFloatPosition.y+a;else if(e){const{coordinate:{leftTop:[c,u]},ascent:d}=e;i=c,n=u+a+d}return{x:i,y:n}}_createResizerDom(){const{scale:t}=this.options,e=document.createElement("div");e.classList.add(`${_}-resizer-selection`),e.style.display="none",e.style.borderColor=this.options.resizerColor,e.style.borderWidth=`${t}px`;const i=[];for(let a=0;a<8;a++){const R=document.createElement("div");R.style.background=this.options.resizerColor,R.classList.add("resizer-handle"),R.classList.add(`handle-${a}`),R.setAttribute("data-index",String(a)),R.onmousedown=this._mousedown.bind(this),e.append(R),i.push(R)}this.container.append(e);const n=document.createElement("div");n.classList.add(`${_}-resizer-size-view`);const r=document.createElement("span");n.append(r),e.append(n);const o=document.createElement("div");o.classList.add(`${_}-resizer-image`),o.style.display="none";const l=document.createElement("img");return o.append(l),this.container.append(o),{resizerSelection:e,resizerHandleList:i,resizerImageContainer:o,resizerImage:l,resizerSize:r}}_mousedown(t){if(this.canvas=this.draw.getPage(),!this.curElement)return;const{scale:e}=this.options;this.mousedownX=t.x,this.mousedownY=t.y;const i=t.target;this.curHandleIndex=Number(i.dataset.index);const n=window.getComputedStyle(i).cursor;document.body.style.cursor=n,this.canvas.style.cursor=n,this.resizerImage.src=this.curElementSrc,this.resizerImageContainer.style.display="block";const{x:r,y:o}=this._getElementPosition(this.curElement,this.curPosition);this.resizerImageContainer.style.left=`${r}px`,this.resizerImageContainer.style.top=`${o}px`,this.resizerImage.style.width=`${this.curElement.width*e}px`,this.resizerImage.style.height=`${this.curElement.height*e}px`;const l=this._mousemove.bind(this);document.addEventListener("mousemove",l),document.addEventListener("mouseup",()=>{var a;this.curElement&&!this.previewerDrawOption.dragDisable&&(this.curElement.width=this.width,this.curElement.height=this.height,this.draw.render({isSetCursor:!0,curIndex:(a=this.curPosition)==null?void 0:a.index})),this.resizerImageContainer.style.display="none",document.removeEventListener("mousemove",l),document.body.style.cursor="",this.canvas.style.cursor="text"},{once:!0}),t.preventDefault()}_mousemove(t){if(!this.curElement||this.previewerDrawOption.dragDisable)return;const{scale:e}=this.options;let i=0,n=0;switch(this.curHandleIndex){case 0:{const R=this.mousedownX-t.x,c=this.mousedownY-t.y;i=Math.cbrt(R**3+c**3),n=this.curElement.height*i/this.curElement.width}break;case 1:n=this.mousedownY-t.y;break;case 2:{const R=t.x-this.mousedownX,c=this.mousedownY-t.y;i=Math.cbrt(R**3+c**3),n=this.curElement.height*i/this.curElement.width}break;case 4:{const R=t.x-this.mousedownX,c=t.y-this.mousedownY;i=Math.cbrt(R**3+c**3),n=this.curElement.height*i/this.curElement.width}break;case 3:i=t.x-this.mousedownX;break;case 5:n=t.y-this.mousedownY;break;case 6:{const R=this.mousedownX-t.x,c=t.y-this.mousedownY;i=Math.cbrt(R**3+c**3),n=this.curElement.height*i/this.curElement.width}break;case 7:i=this.mousedownX-t.x;break}const r=this.curElement.width+i/e,o=this.curElement.height+n/e;if(r<=0||o<=0)return;this.width=r,this.height=o;const l=r*e,a=o*e;this.resizerImage.style.width=`${l}px`,this.resizerImage.style.height=`${a}px`,this._updateResizerRect(l,a),this._updateResizerSizeView(l,a),t.preventDefault()}_drawPreviewer(){const t=document.createElement("div");t.classList.add(`${_}-image-previewer`);const e=document.createElement("i");e.classList.add("image-close"),e.onclick=()=>{this._clearPreviewer()},t.append(e);const i=document.createElement("div");i.classList.add(`${_}-image-container`);const n=document.createElement("img");n.src=this.curElementSrc,n.draggable=!1,i.append(n),this.previewerImage=n,t.append(i);let r=0,o=0,l=1,a=0;const R=document.createElement("div");R.classList.add(`${_}-image-menu`);const c=document.createElement("i");c.classList.add("zoom-in"),c.onclick=()=>{l+=.1,this._setPreviewerTransform(l,a,r,o)},R.append(c);const u=document.createElement("i");u.onclick=()=>{l-.1<=.1||(l-=.1,this._setPreviewerTransform(l,a,r,o))},u.classList.add("zoom-out"),R.append(u);const d=document.createElement("i");d.classList.add("rotate"),d.onclick=()=>{a+=1,this._setPreviewerTransform(l,a,r,o)},R.append(d);const g=document.createElement("i");g.classList.add("original-size"),g.onclick=()=>{r=0,o=0,l=1,a=0,this._setPreviewerTransform(l,a,r,o)},R.append(g);const L=document.createElement("i");L.classList.add("image-download"),L.onclick=()=>{var X;const{mime:T}=this.previewerDrawOption;Bn(n.src,`${(X=this.curElement)==null?void 0:X.id}.${T||"png"}`)},R.append(L),t.append(R),this.previewerContainer=t,document.body.append(t);let O=0,P=0,M=!1;n.onmousedown=T=>{M=!0,O=T.x,P=T.y,t.style.cursor="move"},t.onmousemove=T=>{!M||(r+=T.x-O,o+=T.y-P,O=T.x,P=T.y,this._setPreviewerTransform(l,a,r,o))},t.onmouseup=()=>{M=!1,t.style.cursor="auto"},t.onwheel=T=>{if(T.preventDefault(),T.stopPropagation(),T.deltaY<0)l+=.1;else{if(l-.1<=.1)return;l-=.1}this._setPreviewerTransform(l,a,r,o)}}_setPreviewerTransform(t,e,i,n){!this.previewerImage||(this.previewerImage.style.left=`${i}px`,this.previewerImage.style.top=`${n}px`,this.previewerImage.style.transform=`scale(${t}) rotate(${e*90}deg)`)}_clearPreviewer(){var t;(t=this.previewerContainer)==null||t.remove(),this.previewerContainer=null,document.body.style.overflow="auto"}_updateResizerRect(t,e){const{resizerSize:i,scale:n}=this.options,r=this.draw.isReadonly();this.resizerSelection.style.width=`${t}px`,this.resizerSelection.style.height=`${e}px`;for(let o=0;o<8;o++){const l=o===0||o===6||o===7?-i:o===1||o===5?t/2:t-i,a=o===0||o===1||o===2?-i:o===3||o===7?e/2-i:e-i;this.resizerHandleList[o].style.transform=`scale(${n})`,this.resizerHandleList[o].style.left=`${l}px`,this.resizerHandleList[o].style.top=`${a}px`,this.resizerHandleList[o].style.display=r?"none":"block"}}_updateResizerSizeView(t,e){this.resizerSize.innerText=`${Math.round(t)} \xD7 ${Math.round(e)}`}render(){this._drawPreviewer(),document.body.style.overflow="hidden"}drawResizer(t,e=null,i={}){this.previewerDrawOption=i,this.curElementSrc=t[i.srcKey||"value"]||"",this.updateResizer(t,e),document.addEventListener("keydown",this._keydown)}updateResizer(t,e=null){const{scale:i}=this.options,n=t.width*i,r=t.height*i;this._updateResizerSizeView(n,r);const{x:o,y:l}=this._getElementPosition(t,e);this.resizerSelection.style.left=`${o}px`,this.resizerSelection.style.top=`${l}px`,this.resizerSelection.style.borderWidth=`${i}px`,this._updateResizerRect(n,r),this.resizerSelection.style.display="block",this.curElement=t,this.curPosition=e,this.width=n,this.height=r}clearResizer(){this.resizerSelection.style.display="none",document.removeEventListener("keydown",this._keydown)}}class Dl{constructor(t){h(this,"draw");h(this,"range");h(this,"datePicker");h(this,"options");this.draw=t,this.options=t.getOptions(),this.range=t.getRange(),this.datePicker=new Xs(t,{onSubmit:this._setValue.bind(this)})}_setValue(t){if(!t)return;const e=this.getDateElementRange();if(!e)return;const[i,n]=e,r=this.draw.getElementList(),o=r[i+1];this.draw.spliceElementList(r,i+1,n-i),this.range.setRange(i,i);const l={type:N.DATE,value:"",dateFormat:o.dateFormat,valueList:[{value:t}]};Ht(r,[l],i,{editorOptions:this.options}),this.draw.insertElementList([l])}getDateElementRange(){let t=-1,e=-1;const{startIndex:i,endIndex:n}=this.range.getRange();if(!~i&&!~n)return null;const r=this.draw.getElementList(),o=r[i];if(o.type!==N.DATE)return null;let l=i;for(;l>=0;){if(r[l].dateId!==o.dateId){t=l;break}l--}let a=i+1;for(;a<r.length;){if(r[a].dateId!==o.dateId){e=a-1;break}a++}return a===r.length&&(e=a-1),!~t||!~e?null:[t,e]}clearDatePicker(){this.datePicker.dispose()}renderDatePicker(t,e){const i=this.draw.getElementList(),n=this.getDateElementRange(),r=n?i.slice(n[0]+1,n[1]+1).map(o=>o.value).join(""):"";this.datePicker.render({value:r,position:e,dateFormat:t.dateFormat})}}var Ae;(function(s){s.IFRAME="iframe",s.VIDEO="video"})(Ae||(Ae={}));const gn=class{constructor(t){h(this,"element");this.element=t}_defineIframeProperties(t){Object.defineProperties(t,{parent:{get:()=>null},__POWERED_BY_CANVAS_EDITOR__:{get:()=>!0}})}render(t){var n,r;const e=this.element.block,i=document.createElement("iframe");i.setAttribute("data-id",this.element.id),i.sandbox.add(...gn.sandbox),i.style.border="none",i.style.width="100%",i.style.height="100%",((n=e.iframeBlock)==null?void 0:n.src)?i.src=e.iframeBlock.src:((r=e.iframeBlock)==null?void 0:r.srcdoc)&&(i.srcdoc=e.iframeBlock.srcdoc),t.append(i),this._defineIframeProperties(i.contentWindow)}};let cn=gn;h(cn,"sandbox",["allow-scripts","allow-same-origin"]);class Kl{constructor(t){h(this,"element");this.element=t}render(t){var n;const e=this.element.block,i=document.createElement("video");i.style.width="100%",i.style.height="100%",i.style.objectFit="contain",i.src=((n=e.videoBlock)==null?void 0:n.src)||"",i.controls=!0,i.crossOrigin="anonymous",t.append(i)}}class El{constructor(t,e){h(this,"draw");h(this,"element");h(this,"block");h(this,"blockContainer");h(this,"blockItem");this.draw=t.getDraw(),this.blockContainer=t.getBlockContainer(),this.element=e,this.block=null,this.blockItem=this._createBlockItem(),this.blockContainer.append(this.blockItem)}getBlockElement(){return this.element}_createBlockItem(){const t=document.createElement("div");return t.classList.add(`${_}-block-item`),t}render(){const t=this.element.block;t.type===Ae.IFRAME?(this.block=new cn(this.element),this.block.render(this.blockItem)):t.type===Ae.VIDEO&&(this.block=new Kl(this.element),this.block.render(this.blockItem))}setClientRects(t,e,i){const n=this.draw.getHeight(),r=this.draw.getPageGap(),o=t*(n+r),{metrics:l}=this.element;this.blockItem.style.width=`${l.width}px`,this.blockItem.style.height=`${l.height}px`,this.blockItem.style.left=`${e}px`,this.blockItem.style.top=`${o+i}px`}remove(){this.blockItem.remove()}}class bl{constructor(t){h(this,"draw");h(this,"container");h(this,"blockContainer");h(this,"blockMap");this.draw=t,this.container=t.getContainer(),this.blockMap=new Map,this.blockContainer=this._createBlockContainer(),this.container.append(this.blockContainer)}_createBlockContainer(){const t=document.createElement("div");return t.classList.add(`${_}-block-container`),t}getDraw(){return this.draw}getBlockContainer(){return this.blockContainer}render(t,e,i,n){const r=e.id,o=this.blockMap.get(r);if(o)o.setClientRects(t,i,n);else{const l=new El(this,e);l.render(),l.setClientRects(t,i,n),this.blockMap.set(r,l)}}clear(){if(!this.blockMap.size)return;const t=this.draw.getElementList(),e=[];for(let i=0;i<t.length;i++){const n=t[i];n.type===N.BLOCK&&e.push(n.id)}this.blockMap.forEach(i=>{const n=i.getBlockElement().id;e.includes(n)||(i.remove(),this.blockMap.delete(n))})}}const xl={global:{cut:"\u526A\u5207",copy:"\u590D\u5236",paste:"\u7C98\u8D34",selectAll:"\u5168\u9009",print:"\u6253\u5370"},control:{delete:"\u5220\u9664\u63A7\u4EF6"},hyperlink:{delete:"\u5220\u9664\u94FE\u63A5",cancel:"\u53D6\u6D88\u94FE\u63A5",edit:"\u7F16\u8F91\u94FE\u63A5"},image:{change:"\u66F4\u6539\u56FE\u7247",saveAs:"\u53E6\u5B58\u4E3A\u56FE\u7247",textWrap:"\u6587\u5B57\u73AF\u7ED5",textWrapType:{embed:"\u5D4C\u5165\u578B",upDown:"\u4E0A\u4E0B\u578B\u73AF\u7ED5",surround:"\u56DB\u5468\u578B\u73AF\u7ED5",floatTop:"\u6D6E\u4E8E\u6587\u5B57\u4E0A\u65B9",floatBottom:"\u886C\u4E8E\u6587\u5B57\u4E0B\u65B9"}},table:{insertRowCol:"\u63D2\u5165\u884C\u5217",insertTopRow:"\u4E0A\u65B9\u63D2\u51651\u884C",insertBottomRow:"\u4E0B\u65B9\u63D2\u51651\u884C",insertLeftCol:"\u5DE6\u4FA7\u63D2\u51651\u5217",insertRightCol:"\u53F3\u4FA7\u63D2\u51651\u5217",deleteRowCol:"\u5220\u9664\u884C\u5217",deleteRow:"\u5220\u96641\u884C",deleteCol:"\u5220\u96641\u5217",deleteTable:"\u5220\u9664\u6574\u4E2A\u8868\u683C",mergeCell:"\u5408\u5E76\u5355\u5143\u683C",mergeCancelCell:"\u53D6\u6D88\u5408\u5E76",verticalAlign:"\u5782\u76F4\u5BF9\u9F50",verticalAlignTop:"\u9876\u7AEF\u5BF9\u9F50",verticalAlignMiddle:"\u5782\u76F4\u5C45\u4E2D",verticalAlignBottom:"\u5E95\u7AEF\u5BF9\u9F50",border:"\u8868\u683C\u8FB9\u6846",borderAll:"\u6240\u6709\u6846\u7EBF",borderEmpty:"\u65E0\u6846\u7EBF",borderDash:"\u865A\u6846\u7EBF",borderExternal:"\u5916\u4FA7\u6846\u7EBF",borderInternal:"\u5185\u4FA7\u6846\u7EBF",borderTd:"\u5355\u5143\u683C\u8FB9\u6846",borderTdTop:"\u4E0A\u8FB9\u6846",borderTdRight:"\u53F3\u8FB9\u6846",borderTdBottom:"\u4E0B\u8FB9\u6846",borderTdLeft:"\u5DE6\u8FB9\u6846",borderTdForward:"\u6B63\u659C\u7EBF",borderTdBack:"\u53CD\u659C\u7EBF"}},Cl={now:"\u6B64\u523B",confirm:"\u786E\u5B9A",return:"\u8FD4\u56DE\u65E5\u671F",timeSelect:"\u65F6\u95F4\u9009\u62E9",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},year:"\u5E74",month:"\u6708",hour:"\u65F6",minute:"\u5206",second:"\u79D2"},wl={header:"\u9875\u7709",footer:"\u9875\u811A"},Hl={displayName:"\u5206\u9875\u7B26"},yl={headerTip:"\u53CC\u51FB\u7F16\u8F91\u9875\u7709",footerTip:"\u53CC\u51FB\u7F16\u8F91\u9875\u811A"};var un={contextmenu:xl,datePicker:Cl,frame:wl,pageBreak:Hl,zone:yl};const Gl={global:{cut:"Cut",copy:"Copy",paste:"Paste",selectAll:"Select all",print:"Print"},control:{delete:"Delete control"},hyperlink:{delete:"Delete hyperlink",cancel:"Cancel hyperlink",edit:"Edit hyperlink"},image:{change:"Change image",saveAs:"Save as image",textWrap:"Text wrap",textWrapType:{embed:"Embed",upDown:"Up down",surround:"Surround",floatTop:"Float above text",floatBottom:"Float below text"}},table:{insertRowCol:"Insert row col",insertTopRow:"Insert top 1 row",insertBottomRow:"Insert bottom 1 row",insertLeftCol:"Insert left 1 col",insertRightCol:"Insert right 1 col",deleteRowCol:"Delete row col",deleteRow:"Delete 1 row",deleteCol:"Delete 1 col",deleteTable:"Delete table",mergeCell:"Merge cell",mergeCancelCell:"Cancel merge cell",verticalAlign:"Vertical align",verticalAlignTop:"Top",verticalAlignMiddle:"Middle",verticalAlignBottom:"Bottom",border:"Table border",borderAll:"All",borderEmpty:"Empty",borderDash:"Dash",borderExternal:"External",borderInternal:"Internal",borderTd:"Table cell border",borderTdTop:"Top",borderTdRight:"Right",borderTdBottom:"Bottom",borderTdLeft:"Left",borderTdForward:"Forward",borderTdBack:"Back"}},vl={now:"Now",confirm:"Confirm",return:"Return",timeSelect:"Time select",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},year:" ",month:" ",hour:"Hour",minute:"Minute",second:"Second"},Jl={header:"Header",footer:"Footer"},Al={displayName:"Page Break"},Bl={headerTip:"Double click to edit header",footerTip:"Double click to edit footer"};var kl={contextmenu:Gl,datePicker:vl,frame:Jl,pageBreak:Al,zone:Bl};class _l{constructor(){h(this,"langMap",new Map([["zhCN",un],["en",kl]]));h(this,"currentLocale","zhCN")}registerLangMap(t,e){const i=this.langMap.get(t);this.langMap.set(t,_n(i||un,e))}getLocale(){return this.currentLocale}setLocale(t){this.currentLocale=t}getLang(){return this.langMap.get(this.currentLocale)||un}t(t){const e=t.split(".");let i="",n=this.getLang();for(let r=0;r<e.length;r++){const o=e[r],l=Reflect.get(n,o);if(l)i=n=l;else return""}return i}}class zl{constructor(){h(this,"promiseList");this.promiseList=[]}add(t){this.promiseList.push(t)}clearAll(){this.promiseList=[]}allSettled(){return Promise.allSettled(this.promiseList)}}class $l{constructor(t,e){h(this,"draw");h(this,"zone");h(this,"i18n");h(this,"container");h(this,"pageContainer");h(this,"isDisableMouseMove");h(this,"tipContainer");h(this,"tipContent");h(this,"currentMoveZone");this.draw=t,this.zone=e,this.i18n=t.getI18n(),this.container=t.getContainer(),this.pageContainer=t.getPageContainer();const{tipContainer:i,tipContent:n}=this._drawZoneTip();this.tipContainer=i,this.tipContent=n,this.isDisableMouseMove=!0,this.currentMoveZone=lt.MAIN;const r=[],{header:o,footer:l}=t.getOptions();o.disabled||r.push(lt.HEADER),l.disabled||r.push(lt.FOOTER),r.length&&this._watchMouseMoveZoneChange(r)}_watchMouseMoveZoneChange(t){this.pageContainer.addEventListener("mousemove",Fo(e=>{if(!(this.isDisableMouseMove||!this.draw.getIsPagingMode())&&!!e.offsetY)if(e.target instanceof HTMLCanvasElement){const i=this.zone.getZoneByY(e.offsetY);if(!t.includes(i)){this._updateZoneTip(!1);return}this.currentMoveZone=i,this._updateZoneTip(this.zone.getZone()===lt.MAIN&&(i===lt.HEADER||i===lt.FOOTER),e.x,e.y)}else this._updateZoneTip(!1)},250)),this.pageContainer.addEventListener("mouseenter",()=>{this.isDisableMouseMove=!1}),this.pageContainer.addEventListener("mouseleave",()=>{this.isDisableMouseMove=!0,this._updateZoneTip(!1)})}_drawZoneTip(){const t=document.createElement("div");t.classList.add(`${_}-zone-tip`);const e=document.createElement("span");return t.append(e),this.container.append(t),{tipContainer:t,tipContent:e}}_updateZoneTip(t,e,i){t?(this.tipContainer.classList.add("show"),this.tipContainer.style.left=`${e}px`,this.tipContainer.style.top=`${i}px`,this.tipContent.innerText=this.i18n.t(`zone.${this.currentMoveZone===lt.HEADER?"headerTip":"footerTip"}`)):this.tipContainer.classList.remove("show")}}class ql{constructor(t){h(this,"INDICATOR_PADDING",2);h(this,"INDICATOR_TITLE_TRANSLATE",[20,5]);h(this,"draw");h(this,"options");h(this,"i18n");h(this,"container");h(this,"currentZone");h(this,"indicatorContainer");this.draw=t,this.i18n=t.getI18n(),this.options=t.getOptions(),this.container=t.getContainer(),this.currentZone=lt.MAIN,this.indicatorContainer=null,this.options.zone.tipDisabled||new $l(t,this)}isHeaderActive(){return this.getZone()===lt.HEADER}isMainActive(){return this.getZone()===lt.MAIN}isFooterActive(){return this.getZone()===lt.FOOTER}getZone(){return this.currentZone}setZone(t){const{header:e,footer:i}=this.options;!e.editable&&t===lt.HEADER||!i.editable&&t===lt.FOOTER||this.currentZone!==t&&(this.currentZone=t,this.draw.getRange().clearRange(),this.draw.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1}),this.drawZoneIndicator(),Ti(()=>{const n=this.draw.getListener();n.zoneChange&&n.zoneChange(t);const r=this.draw.getEventBus();r.isSubscribe("zoneChange")&&r.emit("zoneChange",t)}))}getZoneByY(t){const e=this.draw.getHeader(),i=e.getHeaderTop()+e.getHeight(),n=this.draw.getFooter(),o=this.draw.getHeight()-(n.getFooterBottom()+n.getHeight());return t<i?lt.HEADER:t>o?lt.FOOTER:lt.MAIN}drawZoneIndicator(){if(this._clearZoneIndicator(),!this.isHeaderActive()&&!this.isFooterActive())return;const{scale:t}=this.options,e=this.isHeaderActive(),[i,n]=this.INDICATOR_TITLE_TRANSLATE,r=this.draw.getPageList(),o=this.draw.getMargins(),l=this.draw.getInnerWidth(),a=this.draw.getHeight(),R=this.draw.getPageGap(),c=a+R;this.indicatorContainer=document.createElement("div"),this.indicatorContainer.classList.add(`${_}-zone-indicator`);const u=this.draw.getHeader(),d=this.draw.getFooter(),g=e?u.getHeight():d.getHeight(),L=e?u.getHeaderTop():a-d.getFooterBottom()-g;for(let O=0;O<r.length;O++){const P=c*O+L,M=o[3]-this.INDICATOR_PADDING,T=o[3]+l+this.INDICATOR_PADDING,X=e?P-this.INDICATOR_PADDING:P+g+this.INDICATOR_PADDING,S=e?P+g+this.INDICATOR_PADDING:P-this.INDICATOR_PADDING,F=document.createElement("div");F.innerText=this.i18n.t(`frame.${e?"header":"footer"}`),F.style.top=`${S}px`,F.style.transform=`translate(${i*t}px, ${n*t}px) scale(${t})`,this.indicatorContainer.append(F);const W=document.createElement("span");W.classList.add(`${_}-zone-indicator-border__top`),W.style.top=`${X}px`,W.style.width=`${l}px`,W.style.marginLeft=`${o[3]}px`,this.indicatorContainer.append(W);const I=document.createElement("span");I.classList.add(`${_}-zone-indicator-border__left`),I.style.top=`${P}px`,I.style.height=`${g}px`,I.style.left=`${M}px`,this.indicatorContainer.append(I);const Z=document.createElement("span");Z.classList.add(`${_}-zone-indicator-border__bottom`),Z.style.top=`${S}px`,this.indicatorContainer.append(Z);const V=document.createElement("span");V.classList.add(`${_}-zone-indicator-border__right`),V.style.top=`${P}px`,V.style.height=`${g}px`,V.style.left=`${T}px`,this.indicatorContainer.append(V)}this.container.append(this.indicatorContainer)}_clearZoneIndicator(){var t;(t=this.indicatorContainer)==null||t.remove(),this.indicatorContainer=null}}class jl{constructor(t,e){h(this,"draw");h(this,"position");h(this,"options");h(this,"elementList");h(this,"rowList");h(this,"positionList");this.draw=t,this.position=t.getPosition(),this.options=t.getOptions(),this.elementList=e||[],this.rowList=[],this.positionList=[]}getRowList(){return this.rowList}setElementList(t){this.elementList=t}getElementList(){return this.elementList}getPositionList(){return this.positionList}compute(){this.recovery(),this._computeRowList(),this._computePositionList()}recovery(){this.rowList=[],this.positionList=[]}_computeRowList(){const t=this.draw.getInnerWidth();this.rowList=this.draw.computeRowList({innerWidth:t,elementList:this.elementList})}_computePositionList(){const t=this.getFooterBottom(),e=this.draw.getInnerWidth(),n=this.draw.getMargins()[3],r=this.draw.getHeight(),o=this.getHeight(),l=r-t-o;this.position.computePageRowPosition({positionList:this.positionList,rowList:this.rowList,pageNo:0,startRowIndex:0,startIndex:0,startX:n,startY:l,innerWidth:e,zone:lt.FOOTER})}getFooterBottom(){const{footer:{bottom:t,disabled:e},scale:i}=this.options;return e?0:Math.floor(t*i)}getMaxHeight(){const{footer:{maxHeightRadio:t}}=this.options,e=this.draw.getHeight();return Math.floor(e*Jn[t])}getHeight(){const t=this.getMaxHeight(),e=this.getRowHeight();return e>t?t:e}getRowHeight(){return this.rowList.reduce((t,e)=>t+e.height,0)}getExtraHeight(){const t=this.draw.getMargins(),e=this.getHeight(),n=this.getFooterBottom()+e-t[2];return n<=0?0:n}render(t,e){t.globalAlpha=1;const i=this.draw.getInnerWidth(),n=this.getMaxHeight(),r=[];let o=0;for(let l=0;l<this.rowList.length;l++){const a=this.rowList[l];if(o+a.height>n)break;r.push(a),o+=a.height}this.draw.drawRow(t,{elementList:this.elementList,positionList:this.positionList,rowList:r,pageNo:e,startIndex:0,innerWidth:i,zone:lt.FOOTER})}}class ta{constructor(t){h(this,"draw");h(this,"range");h(this,"options");h(this,"UN_COUNT_STYLE_WIDTH",20);h(this,"MEASURE_BASE_TEXT","0");h(this,"LIST_GAP",10);this.draw=t,this.range=t.getRange(),this.options=t.getOptions()}setList(t,e){if(this.draw.isReadonly())return;const{startIndex:n,endIndex:r}=this.range.getRange();if(!~n&&!~r)return;const o=this.range.getRangeParagraphElementList();if(!o||!o.length)return;if(o.find(u=>u.listType===t&&u.listStyle===e)||!t){this.unsetList();return}const a=Mt();o.forEach(u=>{u.listId=a,u.listType=t,u.listStyle=e});const R=n===r,c=R?r:n;this.draw.render({curIndex:c,isSetCursor:R})}unsetList(){var R;if(this.draw.isReadonly())return;const{startIndex:e,endIndex:i}=this.range.getRange();if(!~e&&!~i)return;const n=(R=this.range.getRangeParagraphElementList())==null?void 0:R.filter(c=>c.listId);if(!n||!n.length)return;const r=this.draw.getElementList(),o=r[i];if(o.listId){let c=i+1;for(;c<r.length;){const u=r[c];if(u.value===k&&!u.listWrap)break;if(u.listId!==o.listId){this.draw.spliceElementList(r,c,0,{value:k});break}c++}}n.forEach(c=>{delete c.listId,delete c.listType,delete c.listStyle,delete c.listWrap});const l=e===i,a=l?i:e;this.draw.render({curIndex:a,isSetCursor:l})}computeListStyle(t,e){const i=new Map;let n=0,r=e[n].listId,o=[];const l=e.length;for(;n<l;){const a=e[n];if(r&&r===a.listId)o.push(a);else if(a.listId&&a.listId!==r){if(o.length){const R=this.getListStyleWidth(t,o);i.set(r,R)}r=a.listId,o=r?[a]:[]}n++}if(o.length){const a=this.getListStyleWidth(t,o);i.set(r,a)}return i}getListStyleWidth(t,e){const{scale:i,checkbox:n}=this.options,r=e[0];if(r.listStyle&&r.listStyle!==Gt.DECIMAL)return r.listStyle===Gt.CHECKBOX?(n.width+this.LIST_GAP)*i:this.UN_COUNT_STYLE_WIDTH*i;const o=e.reduce((R,c)=>(c.value===k&&(R+=1),R),0);if(!o)return 0;const l=`${this.MEASURE_BASE_TEXT.repeat(String(o).length)}${z.PERIOD}`,a=t.measureText(l);return Math.ceil((a.width+this.LIST_GAP)*i)}drawListStyle(t,e,i){var T;const{elementList:n,offsetX:r,listIndex:o,ascent:l}=e,a=n[0];if(a.value!==k||a.listWrap)return;let R=0;const{defaultTabWidth:c,scale:u,defaultFont:d,defaultSize:g}=this.options;for(let X=1;X<n.length;X++){const S=n[X];if((S==null?void 0:S.type)!==N.TAB)break;R+=c*u}const{coordinate:{leftTop:[L,O]}}=i,P=L-r+R,M=O+l;if(a.listStyle===Gt.CHECKBOX){const{width:X,height:S,gap:F}=this.options.checkbox,W=q(E({},a),{checkbox:{value:!!((T=a.checkbox)==null?void 0:T.value)},metrics:q(E({},a.metrics),{width:(X+F*2)*u,height:S*u})});this.draw.getCheckboxParticle().render({ctx:t,x:P-F*u,y:M,index:0,row:q(E({},e),{elementList:[W,...e.elementList]})})}else{let X="";if(a.listType===oe.UL?X=zi[a.listStyle]||zi[re.DISC]:X=`${o+1}${z.PERIOD}`,!X)return;t.save(),t.font=`${g*u}px ${d}`,t.fillText(X,P,M),t.restore()}}}const Ln=class{constructor(t){h(this,"options");this.options=t.getOptions()}render(t,e,i,n){const{scale:r,lineBreak:{color:o,lineWidth:l}}=this.options;t.save(),t.beginPath();const a=n-Ln.HEIGHT*r/2,R=i+e.metrics.width;t.translate(R,a),t.scale(r,r),t.strokeStyle=o,t.lineWidth=l,t.lineCap="round",t.lineJoin="round",t.beginPath(),t.moveTo(8,0),t.lineTo(12,0),t.lineTo(12,6),t.lineTo(3,6),t.moveTo(3,6),t.lineTo(6,3),t.moveTo(3,6),t.lineTo(6,9),t.stroke(),t.closePath(),t.restore()}};let De=Ln;h(De,"WIDTH",12),h(De,"HEIGHT",9),h(De,"GAP",3);class ea{constructor(t){h(this,"draw");h(this,"position");h(this,"options");h(this,"elementList");h(this,"rowList");h(this,"positionList");this.draw=t,this.position=t.getPosition(),this.options=t.getOptions(),this.elementList=[],this.rowList=[],this.positionList=[]}_recovery(){this.elementList=[],this.rowList=[],this.positionList=[]}_compute(){this._computeRowList(),this._computePositionList()}_computeRowList(){const t=this.draw.getInnerWidth();this.rowList=this.draw.computeRowList({innerWidth:t,elementList:this.elementList})}_computePositionList(){const{lineBreak:t,scale:e}=this.options,i=this.draw.getHeader().getExtraHeight(),n=this.draw.getInnerWidth(),r=this.draw.getMargins();let o=r[3];t.disabled||(o+=(De.WIDTH+De.GAP)*e);const l=r[0]+i;this.position.computePageRowPosition({positionList:this.positionList,rowList:this.rowList,pageNo:0,startRowIndex:0,startIndex:0,startX:o,startY:l,innerWidth:n})}render(t){const{placeholder:{data:e,font:i,size:n,color:r,opacity:o}}=this.options;if(!e)return;this._recovery(),this.elementList=[{value:e,font:i,size:n,color:r}],Bt(this.elementList,{editorOptions:this.options,isForceCompensation:!0}),this._compute();const l=this.draw.getInnerWidth();t.save(),t.globalAlpha=o,this.draw.drawRow(t,{elementList:this.elementList,positionList:this.positionList,rowList:this.rowList,pageNo:0,startIndex:0,innerWidth:l,isDrawLineBreak:!1}),t.restore()}}class ia{constructor(t){h(this,"draw");h(this,"options");h(this,"range");h(this,"fillRectMap");this.draw=t,this.options=t.getOptions(),this.range=t.getRange(),this.fillRectMap=new Map}setGroup(){if(this.draw.isReadonly()||this.draw.getZone().getZone()!==lt.MAIN)return null;const t=this.range.getSelection();if(!t)return null;const e=Mt();return t.forEach(i=>{Array.isArray(i.groupIds)||(i.groupIds=[]),i.groupIds.push(e)}),this.draw.render({isSetCursor:!1,isCompute:!1}),e}getElementListByGroupId(t,e){var n,r;const i=[];for(let o=0;o<t.length;o++){const l=t[o];if(l.type===N.TABLE){const a=l.trList;for(let R=0;R<a.length;R++){const c=a[R];for(let u=0;u<c.tdList.length;u++){const d=c.tdList[u],g=this.getElementListByGroupId(d.value,e);if(g.length)return i.push(...g),i}}}if((n=l==null?void 0:l.groupIds)==null?void 0:n.includes(e)){i.push(l);const a=t[o+1];if(!((r=a==null?void 0:a.groupIds)==null?void 0:r.includes(e)))break}}return i}deleteGroup(t){if(this.draw.isReadonly())return;const e=this.draw.getOriginalMainElementList(),i=this.getElementListByGroupId(e,t);if(!!i.length){for(let n=0;n<i.length;n++){const r=i[n],o=r.groupIds,l=o.findIndex(a=>a===t);o.splice(l,1),o.length||delete r.groupIds}this.draw.render({isSetCursor:!1,isCompute:!1})}}getContextByGroupId(t,e){var i,n;for(let r=0;r<t.length;r++){const o=t[r];if(o.type===N.TABLE){const a=o.trList;for(let R=0;R<a.length;R++){const c=a[R];for(let u=0;u<c.tdList.length;u++){const d=c.tdList[u],g=this.getContextByGroupId(d.value,e);if(g)return q(E({},g),{isTable:!0,index:r,trIndex:R,tdIndex:u,tdId:d.id,trId:c.id,tableId:o.tableId})}}}const l=t[r+1];if(((i=o.groupIds)==null?void 0:i.includes(e))&&!((n=l==null?void 0:l.groupIds)==null?void 0:n.includes(e)))return{isTable:!1,startIndex:r,endIndex:r}}return null}clearFillInfo(){this.fillRectMap.clear()}recordFillInfo(t,e,i,n,r){const o=t.groupIds;if(!!o)for(const l of o){const a=this.fillRectMap.get(l);a?a.width+=n:this.fillRectMap.set(l,{x:e,y:i,width:n,height:r})}}render(t){var R;if(!this.fillRectMap.size)return;const e=this.range.getRange(),n=(R=this.draw.getElementList()[e.endIndex])==null?void 0:R.groupIds,{group:{backgroundColor:r,opacity:o,activeOpacity:l,activeBackgroundColor:a}}=this.options;t.save(),this.fillRectMap.forEach((c,u)=>{const{x:d,y:g,width:L,height:O}=c;(n==null?void 0:n.includes(u))?(t.globalAlpha=l,t.fillStyle=a):(t.globalAlpha=o,t.fillStyle=r),t.fillRect(d,g,L,O)}),t.restore(),this.clearFillInfo()}}class na{constructor(t){h(this,"draw");h(this,"eventBus");h(this,"pageContainer");this.draw=t,this.eventBus=this.draw.getEventBus(),this.pageContainer=this.draw.getPageContainer(),this.pageContainer.addEventListener("mousemove",this._mousemove.bind(this)),this.pageContainer.addEventListener("mouseenter",this._mouseenter.bind(this)),this.pageContainer.addEventListener("mouseleave",this._mouseleave.bind(this))}_mousemove(t){!this.eventBus.isSubscribe("mousemove")||this.eventBus.emit("mousemove",t)}_mouseenter(t){!this.eventBus.isSubscribe("mouseenter")||this.eventBus.emit("mouseenter",t)}_mouseleave(t){!this.eventBus.isSubscribe("mouseleave")||this.eventBus.emit("mouseleave",t)}}class sa{constructor(t){h(this,"draw");h(this,"options");this.draw=t,this.options=t.getOptions()}render(t,e){const{scale:i,lineNumber:{color:n,size:r,font:o,right:l,type:a}}=this.options,R=this.draw.getTextParticle(),c=this.draw.getMargins(),u=this.draw.getPosition().getOriginalMainPositionList(),g=this.draw.getPageRowList()[e];t.save(),t.fillStyle=n,t.font=`${r*i}px ${o}`;for(let L=0;L<g.length;L++){const O=g[L],{coordinate:{leftBottom:P}}=u[O.startIndex],M=a===pi.PAGE?L+1:O.rowIndex+1,T=R.measureText(t,{value:`${M}`}),X=c[3]-(T.width+l)*i,S=P[1]-T.actualBoundingBoxAscent*i;t.fillText(`${M}`,X,S)}t.restore()}}class oa{constructor(t){h(this,"draw");h(this,"header");h(this,"footer");h(this,"options");this.draw=t,this.header=t.getHeader(),this.footer=t.getFooter(),this.options=t.getOptions()}render(t){const{scale:e,pageBorder:{color:i,lineWidth:n,padding:r}}=this.options;t.save(),t.translate(.5,.5),t.strokeStyle=i,t.lineWidth=n*e;const o=this.draw.getMargins(),l=o[3]-r[3]*e,a=o[0]+this.header.getExtraHeight()-r[0]*e,R=this.draw.getInnerWidth()+(r[1]+r[3])*e,c=this.draw.getHeight()-a-this.footer.getExtraHeight()-o[2]+r[2]*e;t.rect(l,a,R,c),t.stroke(),t.restore()}}function ra(s,t){const{value:e,oldValue:i}=t;i.isTable&&!e.isTable&&s.getTableTool().dispose()}class la{constructor(t){h(this,"draw");h(this,"eventBus");this.draw=t,this.eventBus=t.getEventBus(),this.execute()}execute(){this.eventBus.on("positionContextChange",t=>{ra(this.draw,t)})}}class aa{constructor(t){h(this,"draw");h(this,"range");h(this,"position");h(this,"tableTool");h(this,"tableParticle");h(this,"options");this.draw=t,this.range=t.getRange(),this.position=t.getPosition(),this.tableTool=t.getTableTool(),this.tableParticle=t.getTableParticle(),this.options=t.getOptions()}insertTable(t,e){var L;const{startIndex:i,endIndex:n}=this.range.getRange();if(!~i&&!~n)return;const{defaultTrMinHeight:r}=this.options.table,o=this.draw.getElementList();let l=0;if((L=o[i])==null?void 0:L.listId){const O=this.position.getPositionList(),{rowIndex:P}=O[i],T=this.draw.getRowList()[P];l=(T==null?void 0:T.offsetX)||0}const a=this.draw.getContextInnerWidth()-l,R=[],c=a/e;for(let O=0;O<e;O++)R.push({width:c});const u=[];for(let O=0;O<t;O++){const P=[],M={height:r,tdList:P};for(let T=0;T<e;T++)P.push({colspan:1,rowspan:1,value:[]});u.push(M)}const d={type:N.TABLE,value:"",colgroup:R,trList:u};Bt([d],{editorOptions:this.options}),Ht(o,[d],i,{editorOptions:this.options});const g=i+1;this.draw.spliceElementList(o,g,i===n?0:n-i,d),this.range.setRange(g,g),this.draw.render({curIndex:g,isSetCursor:!1})}insertTableTopRow(){const t=this.position.getPositionContext();if(!t.isTable)return;const{index:e,trIndex:i,tableId:n}=t,o=this.draw.getOriginalElementList()[e],l=o.trList,a=l[i];if(a.tdList.length<o.colgroup.length){const u=a.tdList[0].rowIndex;for(let d=0;d<i;d++){const g=l[d];for(let L=0;L<g.tdList.length;L++){const O=g.tdList[L];O.rowspan>1&&O.rowIndex+O.rowspan>=u+1&&(O.rowspan+=1)}}}const R=Mt(),c={height:a.height,id:R,tdList:[]};for(let u=0;u<a.tdList.length;u++){const d=a.tdList[u],g=Mt();c.tdList.push({id:g,rowspan:1,colspan:d.colspan,value:[{value:k,size:16,tableId:n,trId:R,tdId:g}]})}l.splice(i,0,c),this.position.setPositionContext({isTable:!0,index:e,trIndex:i,tdIndex:0,tdId:c.tdList[0].id,trId:c.id,tableId:n}),this.range.setRange(0,0),this.draw.render({curIndex:0}),this.tableTool.render()}insertTableBottomRow(){const t=this.position.getPositionContext();if(!t.isTable)return;const{index:e,trIndex:i,tableId:n}=t,o=this.draw.getOriginalElementList()[e],l=o.trList,a=l[i],R=l.length-1===i?a:l[i+1];if(R.tdList.length<o.colgroup.length){const d=R.tdList[0].rowIndex;for(let g=0;g<i+1;g++){const L=l[g];for(let O=0;O<L.tdList.length;O++){const P=L.tdList[O];P.rowspan>1&&P.rowIndex+P.rowspan>=d+1&&(P.rowspan+=1)}}}const c=Mt(),u={height:R.height,id:c,tdList:[]};for(let d=0;d<R.tdList.length;d++){const g=R.tdList[d],L=Mt();u.tdList.push({id:L,rowspan:1,colspan:g.colspan,value:[{value:k,size:16,tableId:n,trId:c,tdId:L}]})}l.splice(i+1,0,u),this.position.setPositionContext({isTable:!0,index:e,trIndex:i+1,tdIndex:0,tdId:u.tdList[0].id,trId:u.id,tableId:o.id}),this.range.setRange(0,0),this.draw.render({curIndex:0})}adjustColWidth(t){if(t.type!==N.TABLE)return;const{defaultColMinWidth:e}=this.options.table,i=t.colgroup,n=i.reduce((o,l)=>o+l.width,0),r=this.draw.getOriginalInnerWidth();if(n>r){const o=i.filter(a=>a.width>e),l=(n-r)/o.length;for(let a=0;a<i.length;a++){const R=i[a];R.width-l>=e&&(R.width-=l)}}}insertTableLeftCol(){const t=this.position.getPositionContext();if(!t.isTable)return;const{index:e,tdIndex:i,tableId:n}=t,o=this.draw.getOriginalElementList()[e],l=o.trList,a=i;for(let u=0;u<l.length;u++){const d=l[u],g=Mt();d.tdList.splice(a,0,{id:g,rowspan:1,colspan:1,value:[{value:k,size:16,tableId:n,trId:d.id,tdId:g}]})}const{defaultColMinWidth:R}=this.options.table;o.colgroup.splice(a,0,{width:R}),this.adjustColWidth(o),this.position.setPositionContext({isTable:!0,index:e,trIndex:0,tdIndex:a,tdId:l[0].tdList[a].id,trId:l[0].id,tableId:n}),this.range.setRange(0,0),this.draw.render({curIndex:0}),this.tableTool.render()}insertTableRightCol(){const t=this.position.getPositionContext();if(!t.isTable)return;const{index:e,tdIndex:i,tableId:n}=t,o=this.draw.getOriginalElementList()[e],l=o.trList,a=i+1;for(let u=0;u<l.length;u++){const d=l[u],g=Mt();d.tdList.splice(a,0,{id:g,rowspan:1,colspan:1,value:[{value:k,size:16,tableId:n,trId:d.id,tdId:g}]})}const{defaultColMinWidth:R}=this.options.table;o.colgroup.splice(a,0,{width:R}),this.adjustColWidth(o),this.position.setPositionContext({isTable:!0,index:e,trIndex:0,tdIndex:a,tdId:l[0].tdList[a].id,trId:l[0].id,tableId:o.id}),this.range.setRange(0,0),this.draw.render({curIndex:0})}deleteTableRow(){const t=this.position.getPositionContext();if(!t.isTable)return;const{index:e,trIndex:i,tdIndex:n}=t,o=this.draw.getOriginalElementList()[e],l=o.trList,a=l[i],R=a.tdList[n].rowIndex;if(l.length<=1){this.deleteTable();return}for(let c=0;c<R;c++){const d=l[c].tdList;for(let g=0;g<d.length;g++){const L=d[g];L.rowIndex+L.rowspan>R&&L.rowspan--}}for(let c=0;c<a.tdList.length;c++){const u=a.tdList[c];if(u.rowspan>1){const d=Mt(),g=l[i+1];g.tdList.splice(c,0,{id:d,rowspan:u.rowspan-1,colspan:u.colspan,value:[{value:k,size:16,tableId:o.id,trId:g.id,tdId:d}]})}}l.splice(i,1),this.position.setPositionContext({isTable:!1}),this.range.clearRange(),this.draw.render({curIndex:t.index}),this.tableTool.dispose()}deleteTableCol(){var u;const t=this.position.getPositionContext();if(!t.isTable)return;const{index:e,tdIndex:i,trIndex:n}=t,o=this.draw.getOriginalElementList()[e],l=o.trList,R=l[n].tdList[i].colIndex;if(!l.find(d=>d.tdList.length>1)){this.deleteTable();return}for(let d=0;d<l.length;d++){const g=l[d];for(let L=0;L<g.tdList.length;L++){const O=g.tdList[L];O.colIndex<=R&&O.colIndex+O.colspan>R&&(O.colspan>1?O.colspan--:g.tdList.splice(L,1))}}(u=o.colgroup)==null||u.splice(R,1),this.position.setPositionContext({isTable:!1}),this.range.setRange(0,0),this.draw.render({curIndex:t.index}),this.tableTool.dispose()}deleteTable(){const t=this.position.getPositionContext();if(!t.isTable)return;this.draw.getOriginalElementList().splice(t.index,1);const i=t.index-1;this.position.setPositionContext({isTable:!1,index:i}),this.range.setRange(i,i),this.draw.render({curIndex:i}),this.tableTool.dispose()}mergeTableCell(){const t=this.position.getPositionContext();if(!t.isTable)return;const{isCrossRowCol:e,startTdIndex:i,endTdIndex:n,startTrIndex:r,endTrIndex:o}=this.range.getRange();if(!e)return;const{index:l}=t,c=this.draw.getOriginalElementList()[l].trList;let u=c[r].tdList[i],d=c[o].tdList[n];(u.x>d.x||u.y>d.y)&&([u,d]=[d,u]);const g=u.colIndex,L=d.colIndex+(d.colspan-1),O=u.rowIndex,P=d.rowIndex+(d.rowspan-1),M=[];for(let Q=0;Q<c.length;Q++){const U=c[Q],f=[];for(let b=0;b<U.tdList.length;b++){const G=U.tdList[b],x=G.colIndex,y=G.rowIndex;x>=g&&x<=L&&y>=O&&y<=P&&f.push(G)}f.length&&M.push(f)}if(!M.length)return;const T=M[M.length-1],X=M[0][0],S=T[T.length-1],F=X.x,W=X.y,I=S.x+S.width,Z=S.y+S.height;for(let Q=0;Q<M.length;Q++){const U=M[Q];for(let f=0;f<U.length;f++){const b=U[f],G=b.x,x=b.y,y=G+b.width,J=x+b.height;if(F>G||W>x||I<y||Z<J)return}}const V=[],m=M[0][0];for(let Q=0;Q<M.length;Q++){const U=M[Q];for(let f=0;f<U.length;f++){const b=U[f];Q===0&&f===0||V.push(b.id),Q===0&&f!==0&&(m.colspan+=b.colspan),Q!==0&&m.colIndex===b.colIndex&&(m.rowspan+=b.rowspan)}}for(let Q=0;Q<c.length;Q++){const U=c[Q];let f=0;for(;f<U.tdList.length;){const b=U.tdList[f];V.includes(b.id)&&(U.tdList.splice(f,1),f--),f++}}this.position.setPositionContext(q(E({},t),{trIndex:m.trIndex,tdIndex:m.tdIndex}));const Y=m.value.length-1;this.range.setRange(Y,Y),this.draw.render(),this.tableTool.render()}cancelMergeTableCell(){const t=this.position.getPositionContext();if(!t.isTable)return;const{index:e,tdIndex:i,trIndex:n}=t,o=this.draw.getOriginalElementList()[e],l=o.trList,a=l[n],R=a.tdList[i];if(R.rowspan===1&&R.colspan===1)return;const c=R.colspan;if(R.colspan>1){for(let d=1;d<R.colspan;d++){const g=Mt();a.tdList.splice(i+d,0,{id:g,rowspan:1,colspan:1,value:[{value:k,size:16,tableId:o.id,trId:a.id,tdId:g}]})}R.colspan=1}if(R.rowspan>1){for(let d=1;d<R.rowspan;d++){const g=l[n+d];for(let L=0;L<c;L++){const O=Mt();g.tdList.splice(R.colIndex,0,{id:O,rowspan:1,colspan:1,value:[{value:k,size:16,tableId:o.id,trId:g.id,tdId:O}]})}}R.rowspan=1}const u=R.value.length-1;this.range.setRange(u,u),this.draw.render(),this.tableTool.render()}tableTdVerticalAlign(t){const e=this.tableParticle.getRangeRowCol();if(!e)return;for(let n=0;n<e.length;n++){const r=e[n];for(let o=0;o<r.length;o++){const l=r[o];!l||l.verticalAlign===t||!l.verticalAlign&&t===It.TOP||(l.verticalAlign=t)}}const{endIndex:i}=this.range.getRange();this.draw.render({curIndex:i})}tableBorderType(t){const e=this.position.getPositionContext();if(!e.isTable)return;const{index:i}=e,r=this.draw.getOriginalElementList()[i];if(!r.borderType&&t===vt.ALL||r.borderType===t)return;r.borderType=t;const{endIndex:o}=this.range.getRange();this.draw.render({curIndex:o})}tableTdBorderType(t){const e=this.tableParticle.getRangeRowCol();if(!e)return;const i=e.flat(),n=i.some(o=>{var l;return!((l=o.borderTypes)==null?void 0:l.includes(t))});i.forEach(o=>{o.borderTypes||(o.borderTypes=[]);const l=o.borderTypes.findIndex(a=>a===t);n?~l||o.borderTypes.push(t):~l&&o.borderTypes.splice(l,1),o.borderTypes.length||delete o.borderTypes});const{endIndex:r}=this.range.getRange();this.draw.render({curIndex:r})}tableTdSlashType(t){const e=this.tableParticle.getRangeRowCol();if(!e)return;const i=e.flat(),n=i.some(o=>{var l;return!((l=o.slashTypes)==null?void 0:l.includes(t))});i.forEach(o=>{o.slashTypes||(o.slashTypes=[]);const l=o.slashTypes.findIndex(a=>a===t);n?~l||o.slashTypes.push(t):~l&&o.slashTypes.splice(l,1),o.slashTypes.length||delete o.slashTypes});const{endIndex:r}=this.range.getRange();this.draw.render({curIndex:r})}tableTdBackgroundColor(t){const e=this.tableParticle.getRangeRowCol();if(!e)return;for(let n=0;n<e.length;n++){const r=e[n];for(let o=0;o<r.length;o++){const l=r[o];l.backgroundColor=t}}const{endIndex:i}=this.range.getRange();this.range.setRange(i,i),this.draw.render({isCompute:!1})}tableSelectAll(){const t=this.position.getPositionContext(),{index:e,tableId:i,isTable:n}=t;if(!n||!i)return;const{startIndex:r,endIndex:o}=this.range.getRange(),a=this.draw.getOriginalElementList()[e].trList,R=a.length-1,c=a[R].tdList.length-1;this.range.replaceRange({startIndex:r,endIndex:o,tableId:i,startTdIndex:0,endTdIndex:c,startTrIndex:0,endTrIndex:R}),this.draw.render({isCompute:!1,isSubmitHistory:!1})}}class Ra{constructor(t,e,i,n,r,o){h(this,"container");h(this,"pageContainer");h(this,"pageList");h(this,"ctxList");h(this,"pageNo");h(this,"pagePixelRatio");h(this,"mode");h(this,"options");h(this,"position");h(this,"zone");h(this,"elementList");h(this,"listener");h(this,"eventBus");h(this,"override");h(this,"i18n");h(this,"canvasEvent");h(this,"globalEvent");h(this,"cursor");h(this,"range");h(this,"margin");h(this,"background");h(this,"search");h(this,"group");h(this,"underline");h(this,"strikeout");h(this,"highlight");h(this,"historyManager");h(this,"previewer");h(this,"imageParticle");h(this,"laTexParticle");h(this,"textParticle");h(this,"tableParticle");h(this,"tableTool");h(this,"tableOperate");h(this,"pageNumber");h(this,"lineNumber");h(this,"waterMark");h(this,"placeholder");h(this,"header");h(this,"footer");h(this,"hyperlinkParticle");h(this,"dateParticle");h(this,"separatorParticle");h(this,"pageBreakParticle");h(this,"superscriptParticle");h(this,"subscriptParticle");h(this,"checkboxParticle");h(this,"radioParticle");h(this,"blockParticle");h(this,"listParticle");h(this,"lineBreakParticle");h(this,"control");h(this,"pageBorder");h(this,"workerManager");h(this,"scrollObserver");h(this,"selectionObserver");h(this,"imageObserver");h(this,"LETTER_REG");h(this,"WORD_LIKE_REG");h(this,"rowList");h(this,"pageRowList");h(this,"painterStyle");h(this,"painterOptions");h(this,"visiblePageNoList");h(this,"intersectionPageNo");h(this,"lazyRenderIntersectionObserver");h(this,"printModeData");this.container=this._wrapContainer(t),this.pageList=[],this.ctxList=[],this.pageNo=0,this.pagePixelRatio=null,this.mode=e.mode,this.options=e,this.elementList=i.main,this.listener=n,this.eventBus=r,this.override=o,this._formatContainer(),this.pageContainer=this._createPageContainer(),this._createPage(0),this.i18n=new _l,this.historyManager=new il(this),this.position=new nl(this),this.zone=new ql(this),this.range=new sl(this),this.margin=new ll(this),this.background=new ol(this),this.search=new al(this),this.group=new ia(this),this.underline=new cl(this),this.strikeout=new Rl(this),this.highlight=new rl(this),this.previewer=new Ql(this),this.imageParticle=new qn(this),this.laTexParticle=new es(this),this.textParticle=new ul(this),this.tableParticle=new Ll(this),this.tableTool=new Ol(this),this.tableOperate=new aa(this),this.pageNumber=new dl(this),this.lineNumber=new sa(this),this.waterMark=new Fl(this),this.placeholder=new ea(this),this.header=new Pl(this,i.header),this.footer=new jl(this,i.footer),this.hyperlinkParticle=new Ml(this),this.dateParticle=new Dl(this),this.separatorParticle=new Xl(this),this.pageBreakParticle=new Nl(this),this.superscriptParticle=new Tl,this.subscriptParticle=new Sl,this.checkboxParticle=new Il(this),this.radioParticle=new Wl(this),this.blockParticle=new bl(this),this.listParticle=new ta(this),this.lineBreakParticle=new De(this),this.control=new ml(this),this.pageBorder=new oa(this),this.scrollObserver=new hl(this),this.selectionObserver=new gl(this),this.imageObserver=new zl,new na(this),this.canvasEvent=new tl(this),this.cursor=new Vr(this,this.canvasEvent),this.canvasEvent.register(),this.globalEvent=new el(this,this.canvasEvent),this.globalEvent.register(),this.workerManager=new Zl(this),new la(this);const{letterClass:l}=e;this.LETTER_REG=new RegExp(`[${l.join("")}]`),this.WORD_LIKE_REG=new RegExp(`${l.map(a=>`[^${a}][${a}]`).join("|")}`),this.rowList=[],this.pageRowList=[],this.painterStyle=null,this.painterOptions=null,this.visiblePageNoList=[],this.intersectionPageNo=0,this.lazyRenderIntersectionObserver=null,this.printModeData=null,this.render({isInit:!0,isSetCursor:!1,isFirstRender:!0})}getLetterReg(){return this.LETTER_REG}getMode(){return this.mode}setMode(t){if(this.mode!==t){if(t===Rt.PRINT){this.printModeData={header:this.header.getElementList(),main:this.elementList,footer:this.footer.getElementList()};const e=Ot(this.printModeData);["header","main","footer"].forEach(n=>{e[n]=this.control.filterAssistElement(e[n])}),this.setEditorData(e)}this.mode===Rt.PRINT&&this.printModeData&&(this.setEditorData(this.printModeData),this.printModeData=null),this.clearSideEffect(),this.range.clearRange(),this.mode=t,this.options.mode=t,this.render({isSetCursor:!1,isSubmitHistory:!1})}}isReadonly(){switch(this.mode){case Rt.DESIGN:return!1;case Rt.READONLY:case Rt.PRINT:return!0;case Rt.FORM:return!this.control.getIsRangeWithinControl();default:return!1}}isDisabled(){var r,o,l,a,R;if(this.mode===Rt.DESIGN)return!1;const{startIndex:t,endIndex:e}=this.range.getRange(),i=this.getElementList();if((r=this.getTd())==null?void 0:r.disabled)return!0;if(t===e){const c=i[t],u=i[t+1];return!!(((o=c==null?void 0:c.title)==null?void 0:o.disabled)&&((l=u==null?void 0:u.title)==null?void 0:l.disabled)||((a=c==null?void 0:c.control)==null?void 0:a.disabled)&&((R=u==null?void 0:u.control)==null?void 0:R.disabled))}return i.slice(t+1,e+1).some(c=>{var u,d;return((u=c.title)==null?void 0:u.disabled)||((d=c.control)==null?void 0:d.disabled)})}isDesignMode(){return this.mode===Rt.DESIGN}getOriginalWidth(){const{paperDirection:t,width:e,height:i}=this.options;return t===Oe.VERTICAL?e:i}getOriginalHeight(){const{paperDirection:t,width:e,height:i}=this.options;return t===Oe.VERTICAL?i:e}getWidth(){return Math.floor(this.getOriginalWidth()*this.options.scale)}getHeight(){return Math.floor(this.getOriginalHeight()*this.options.scale)}getMainHeight(){return this.getHeight()-this.getMainOuterHeight()}getMainOuterHeight(){const t=this.getMargins(),e=this.header.getExtraHeight(),i=this.footer.getExtraHeight();return t[0]+t[2]+e+i}getCanvasWidth(t=-1){return this.getPage(t).width}getCanvasHeight(t=-1){return this.getPage(t).height}getInnerWidth(){const t=this.getWidth(),e=this.getMargins();return t-e[1]-e[3]}getOriginalInnerWidth(){const t=this.getOriginalWidth(),e=this.getOriginalMargins();return t-e[1]-e[3]}getContextInnerWidth(){const t=this.position.getPositionContext();if(t.isTable){const{index:e,trIndex:i,tdIndex:n}=t,o=this.getOriginalElementList()[e].trList[i].tdList[n],l=this.getTdPadding();return o.width-l[1]-l[3]}return this.getOriginalInnerWidth()}getMargins(){return this.getOriginalMargins().map(t=>t*this.options.scale)}getOriginalMargins(){const{margins:t,paperDirection:e}=this.options;return e===Oe.VERTICAL?t:[t[1],t[2],t[3],t[0]]}getPageGap(){return this.options.pageGap*this.options.scale}getOriginalPageGap(){return this.options.pageGap}getPageNumberBottom(){const{pageNumber:{bottom:t},scale:e}=this.options;return t*e}getMarginIndicatorSize(){return this.options.marginIndicatorSize*this.options.scale}getDefaultBasicRowMarginHeight(){return this.options.defaultBasicRowMarginHeight*this.options.scale}getTdPadding(){const{table:{tdPadding:t},scale:e}=this.options;return t.map(i=>i*e)}getContainer(){return this.container}getPageContainer(){return this.pageContainer}getVisiblePageNoList(){return this.visiblePageNoList}setVisiblePageNoList(t){this.visiblePageNoList=t,this.listener.visiblePageNoListChange&&this.listener.visiblePageNoListChange(this.visiblePageNoList),this.eventBus.isSubscribe("visiblePageNoListChange")&&this.eventBus.emit("visiblePageNoListChange",this.visiblePageNoList)}getIntersectionPageNo(){return this.intersectionPageNo}setIntersectionPageNo(t){this.intersectionPageNo=t,this.listener.intersectionPageNoChange&&this.listener.intersectionPageNoChange(this.intersectionPageNo),this.eventBus.isSubscribe("intersectionPageNoChange")&&this.eventBus.emit("intersectionPageNoChange",this.intersectionPageNo)}getPageNo(){return this.pageNo}setPageNo(t){this.pageNo=t}getPage(t=-1){return this.pageList[~t?t:this.pageNo]}getPageList(){return this.pageList}getPageCount(){return this.pageList.length}getTableRowList(t){const e=this.position.getPositionContext(),{index:i,trIndex:n,tdIndex:r}=e;return t[i].trList[n].tdList[r].rowList}getOriginalRowList(){const t=this.getZone();return t.isHeaderActive()?this.header.getRowList():t.isFooterActive()?this.footer.getRowList():this.rowList}getRowList(){return this.position.getPositionContext().isTable?this.getTableRowList(this.getOriginalElementList()):this.getOriginalRowList()}getPageRowList(){return this.pageRowList}getCtx(){return this.ctxList[this.pageNo]}getOptions(){return this.options}getSearch(){return this.search}getGroup(){return this.group}getHistoryManager(){return this.historyManager}getPosition(){return this.position}getZone(){return this.zone}getRange(){return this.range}getLineBreakParticle(){return this.lineBreakParticle}getTextParticle(){return this.textParticle}getHeaderElementList(){return this.header.getElementList()}getTableElementList(t){var o;const e=this.position.getPositionContext(),{index:i,trIndex:n,tdIndex:r}=e;return((o=t[i].trList)==null?void 0:o[n].tdList[r].value)||[]}getElementList(){const t=this.position.getPositionContext(),e=this.getOriginalElementList();return t.isTable?this.getTableElementList(e):e}getMainElementList(){return this.position.getPositionContext().isTable?this.getTableElementList(this.elementList):this.elementList}getOriginalElementList(){const t=this.getZone();return t.isHeaderActive()?this.getHeaderElementList():t.isFooterActive()?this.getFooterElementList():this.elementList}getOriginalMainElementList(){return this.elementList}getFooterElementList(){return this.footer.getElementList()}getTd(){const t=this.position.getPositionContext(),{index:e,trIndex:i,tdIndex:n,isTable:r}=t;return r?this.getOriginalElementList()[e].trList[i].tdList[n]:null}insertElementList(t){if(!t.length||!this.range.getIsCanInput())return;const{startIndex:e,endIndex:i}=this.range.getRange();if(!~e&&!~i)return;Bt(t,{isHandleFirstElement:!1,editorOptions:this.options});let n=-1,r=this.control.getActiveControl();if(!r&&this.control.getIsRangeWithinControl()&&(this.control.initControl(),r=this.control.getActiveControl()),r&&this.control.getIsRangeWithinControl())n=r.setValue(t,void 0,{isIgnoreDisabledRule:!0});else{const o=this.getElementList(),l=e===i,a=e+1;l||this.spliceElementList(o,a,i-e),this.spliceElementList(o,a,0,...t),n=e+t.length;const R=o[a-1];t[0].listId&&R&&!R.listId&&(R==null?void 0:R.value)===k&&(!R.type||R.type===N.TEXT)&&(o.splice(e,1),n-=1)}~n&&(this.range.setRange(n,n),this.render({curIndex:n}))}appendElementList(t,e={}){if(!t.length)return;Bt(t,{isHandleFirstElement:!1,editorOptions:this.options});let i;const{isPrepend:n}=e;n?(this.elementList.splice(1,0,...t),i=t.length):(this.elementList.push(...t),i=this.elementList.length-1),this.range.setRange(i,i),this.render({curIndex:i})}spliceElementList(t,e,i,...n){var o,l,a,R;const r=this.isDesignMode();if(i>0){const c=e+i,u=t[c],d=u==null?void 0:u.listId;if(d&&((o=t[e-1])==null?void 0:o.listId)!==d){let g=c;for(;g<t.length;){const L=t[g];if(L.listId!==d||L.value===k)break;delete L.listId,delete L.listType,delete L.listStyle,g++}}if(this.control.getActiveControl())t.splice(e,i);else{const g=(l=this.getTd())==null?void 0:l.deletable;let L=c-1;for(;L>=e;){const O=t[L];(r||g!==!1&&((a=O==null?void 0:O.control)==null?void 0:a.deletable)!==!1&&((R=O==null?void 0:O.title)==null?void 0:R.deletable)!==!1)&&t.splice(L,1),L--}}}for(let c=0;c<n.length;c++)t.splice(e+c,0,n[c])}getCanvasEvent(){return this.canvasEvent}getGlobalEvent(){return this.globalEvent}getListener(){return this.listener}getEventBus(){return this.eventBus}getOverride(){return this.override}getCursor(){return this.cursor}getPreviewer(){return this.previewer}getImageParticle(){return this.imageParticle}getTableTool(){return this.tableTool}getTableOperate(){return this.tableOperate}getTableParticle(){return this.tableParticle}getHeader(){return this.header}getFooter(){return this.footer}getHyperlinkParticle(){return this.hyperlinkParticle}getDateParticle(){return this.dateParticle}getListParticle(){return this.listParticle}getCheckboxParticle(){return this.checkboxParticle}getRadioParticle(){return this.radioParticle}getControl(){return this.control}getWorkerManager(){return this.workerManager}getImageObserver(){return this.imageObserver}getI18n(){return this.i18n}getRowCount(){return this.getRowList().length}async getDataURL(t={}){const{pixelRatio:e,mode:i}=t;e&&this.setPagePixelRatio(e);const n=this.mode,r=!!i&&n!==i;r&&this.setMode(i),this.render({isLazy:!1,isCompute:!1,isSetCursor:!1,isSubmitHistory:!1}),await this.imageObserver.allSettled();const o=this.pageList.map(l=>l.toDataURL());return e&&this.setPagePixelRatio(null),r&&this.setMode(n),o}getPainterStyle(){return this.painterStyle&&Object.keys(this.painterStyle).length?this.painterStyle:null}getPainterOptions(){return this.painterOptions}setPainterStyle(t,e){this.painterStyle=t,this.painterOptions=e||null,this.getPainterStyle()&&this.pageList.forEach(i=>i.style.cursor="copy")}setDefaultRange(){!this.elementList.length||setTimeout(()=>{const t=this.elementList.length-1;this.range.setRange(t,t),this.range.setRangeStyle()})}getIsPagingMode(){return this.options.pageMode===me.PAGING}setPageMode(t){if(!t||this.options.pageMode===t)return;if(this.options.pageMode=t,t===me.PAGING){const{height:n}=this.options,r=this.getPagePixelRatio(),o=this.pageList[0];o.style.height=`${n}px`,o.height=n*r,this._initPageContext(this.ctxList[0])}else this._disconnectLazyRender(),this.header.recovery(),this.footer.recovery(),this.zone.setZone(lt.MAIN);const{startIndex:e}=this.range.getRange(),i=this.range.getIsCollapsed();this.render({isSetCursor:!0,curIndex:e,isSubmitHistory:!1}),i||this.cursor.drawCursor({isShow:!1}),setTimeout(()=>{this.listener.pageModeChange&&this.listener.pageModeChange(t),this.eventBus.isSubscribe("pageModeChange")&&this.eventBus.emit("pageModeChange",t)})}setPageScale(t){const e=this.getPagePixelRatio();this.options.scale=t;const i=this.getWidth(),n=this.getHeight();this.container.style.width=`${i}px`,this.pageList.forEach((o,l)=>{o.width=i*e,o.height=n*e,o.style.width=`${i}px`,o.style.height=`${n}px`,o.style.marginBottom=`${this.getPageGap()}px`,this._initPageContext(this.ctxList[l])});const r=this.position.getCursorPosition();this.render({isSubmitHistory:!1,isSetCursor:!!r,curIndex:r==null?void 0:r.index}),this.listener.pageScaleChange&&this.listener.pageScaleChange(t),this.eventBus.isSubscribe("pageScaleChange")&&this.eventBus.emit("pageScaleChange",t)}getPagePixelRatio(){return this.pagePixelRatio||window.devicePixelRatio}setPagePixelRatio(t){!this.pagePixelRatio&&t===window.devicePixelRatio||t===this.pagePixelRatio||(this.pagePixelRatio=t,this.setPageDevicePixel())}setPageDevicePixel(){const t=this.getPagePixelRatio(),e=this.getWidth(),i=this.getHeight();this.pageList.forEach((n,r)=>{n.width=e*t,n.height=i*t,this._initPageContext(this.ctxList[r])}),this.render({isSubmitHistory:!1,isSetCursor:!1})}setPaperSize(t,e){this.options.width=t,this.options.height=e;const i=this.getPagePixelRatio(),n=this.getWidth(),r=this.getHeight();this.container.style.width=`${n}px`,this.pageList.forEach((o,l)=>{o.width=n*i,o.height=r*i,o.style.width=`${n}px`,o.style.height=`${r}px`,this._initPageContext(this.ctxList[l])}),this.render({isSubmitHistory:!1,isSetCursor:!1})}setPaperDirection(t){const e=this.getPagePixelRatio();this.options.paperDirection=t;const i=this.getWidth(),n=this.getHeight();this.container.style.width=`${i}px`,this.pageList.forEach((r,o)=>{r.width=i*e,r.height=n*e,r.style.width=`${i}px`,r.style.height=`${n}px`,this._initPageContext(this.ctxList[o])}),this.render({isSubmitHistory:!1,isSetCursor:!1})}setPaperMargin(t){this.options.margins=t,this.render({isSubmitHistory:!1,isSetCursor:!1})}getValue(t={}){const{pageNo:e,extraPickAttrs:i}=t;let n=this.elementList;Number.isInteger(e)&&e>=0&&e<this.pageRowList.length&&(n=this.pageRowList[e].flatMap(o=>o.elementList));const r={header:Tt(this.getHeaderElementList(),{extraPickAttrs:i}),main:Tt(n,{extraPickAttrs:i}),footer:Tt(this.getFooterElementList(),{extraPickAttrs:i})};return{version:Lo,data:r,options:Ot(this.options)}}setValue(t,e){const{header:i,main:n,footer:r}=Ot(t);if(!i&&!n&&!r)return;const{isSetCursor:o=!1}=e||{};[i,n,r].forEach(R=>{!R||Bt(R,{editorOptions:this.options,isForceCompensation:!0})}),this.setEditorData({header:i,main:n,footer:r}),this.historyManager.recovery();const a=o?(n==null?void 0:n.length)?n.length-1:0:void 0;a!==void 0&&this.range.setRange(a,a),this.render({curIndex:a,isSetCursor:o,isFirstRender:!0})}setEditorData(t){const{header:e,main:i,footer:n}=t;e&&this.header.setElementList(e),i&&(this.elementList=i),n&&this.footer.setElementList(n)}_wrapContainer(t){const e=document.createElement("div");return t.append(e),e}_formatContainer(){this.container.style.position="relative",this.container.style.width=`${this.getWidth()}px`,this.container.setAttribute(he,le.MAIN)}_createPageContainer(){const t=document.createElement("div");return t.classList.add(`${_}-page-container`),this.container.append(t),t}_createPage(t){const e=this.getWidth(),i=this.getHeight(),n=document.createElement("canvas");n.style.width=`${e}px`,n.style.height=`${i}px`,n.style.display="block",n.style.backgroundColor="#ffffff",n.style.marginBottom=`${this.getPageGap()}px`,n.setAttribute("data-index",String(t)),this.pageContainer.append(n);const r=this.getPagePixelRatio();n.width=e*r,n.height=i*r,n.style.cursor="text";const o=n.getContext("2d");this._initPageContext(o),this.pageList.push(n),this.ctxList.push(o)}_initPageContext(t){const e=this.getPagePixelRatio();t.scale(e,e),t.letterSpacing="0px",t.wordSpacing="0px",t.direction="ltr"}getElementFont(t,e=1){const{defaultSize:i,defaultFont:n}=this.options,r=t.font||n,o=t.actualSize||t.size||i;return`${t.italic?"italic ":""}${t.bold?"bold ":""}${o*e}px ${r}`}getElementSize(t){return t.actualSize||t.size||this.options.defaultSize}getElementRowMargin(t){var r;const{defaultBasicRowMarginHeight:e,defaultRowMargin:i,scale:n}=this.options;return e*((r=t.rowMargin)!=null?r:i)*n}computeRowList(t){var Y,Q,U,f,b,G,x,y,J,j,st,Wt;const{innerWidth:e,elementList:i,isPagingMode:n=!1,isFromTable:r=!1,startX:o=0,startY:l=0,pageHeight:a=0,mainOuterHeight:R=0,surroundElementList:c=[]}=t,{defaultSize:u,defaultRowMargin:d,scale:g,table:{tdPadding:L},defaultTabWidth:O}=this.options,P=this.getDefaultBasicRowMarginHeight(),T=document.createElement("canvas").getContext("2d"),X=this.listParticle.computeListStyle(T,i),S=[];i.length&&S.push({width:0,height:0,ascent:0,elementList:[],startIndex:0,rowIndex:0,rowFlex:((Y=i==null?void 0:i[0])==null?void 0:Y.rowFlex)||((Q=i==null?void 0:i[1])==null?void 0:Q.rowFlex)});let F=o,W=l,I=0,Z,V=0,m=0;for(let ot=0;ot<i.length;ot++){const $=S[S.length-1],C=i[ot],St=P*((U=C.rowMargin)!=null?U:d),A={width:0,height:0,boundingBoxAscent:0,boundingBoxDescent:0},ft=$.offsetX||C.listId&&X.get(C.listId)||0,it=e-ft;if(F+=$.elementList.length===1?ft:0,C.type===N.IMAGE||C.type===N.LATEX){if(C.imgDisplay===et.SURROUND||C.imgDisplay===et.FLOAT_TOP||C.imgDisplay===et.FLOAT_BOTTOM)A.width=0,A.height=0,A.boundingBoxDescent=0;else{const ut=C.width*g,Yt=C.height*g;if(ut>it){const Lt=Yt*it/ut;C.width=it/g,C.height=Lt/g,A.width=it,A.height=Lt,A.boundingBoxDescent=Lt}else A.width=ut,A.height=Yt,A.boundingBoxDescent=Yt}A.boundingBoxAscent=0}else if(C.type===N.TABLE){const ut=L[1]+L[3],Yt=L[0]+L[2];if(C.pagingId){let Vt=ot+1,Ct=0;for(;Vt<i.length;){const pt=i[Vt];if(pt.pagingId===C.pagingId){const Nt=pt.trList.filter(Jt=>!Jt.pagingRepeat);C.trList.push(...Nt),C.height+=pt.height,Vt++,Ct++}else break}Ct&&i.splice(ot+1,Ct)}C.pagingIndex=(f=C.pagingIndex)!=null?f:0,this.tableParticle.computeRowColInfo(C);const Lt=C.trList;for(let Vt=0;Vt<Lt.length;Vt++){const Ct=Lt[Vt];for(let pt=0;pt<Ct.tdList.length;pt++){const Nt=Ct.tdList[pt],Jt=this.computeRowList({innerWidth:(Nt.width-ut)*g,elementList:Nt.value,isFromTable:!0,isPagingMode:n}),Ft=Jt.reduce((xt,Dt)=>xt+Dt.height,0);Nt.rowList=Jt;const Pt=Ft/g+Yt;if(Nt.height<Pt){const xt=Pt-Nt.height,Dt=Lt[Vt+Nt.rowspan-1];Dt.height+=xt,Dt.tdList.forEach(qt=>{qt.height+=xt})}let yt=0,bt=0,Ut=0;for(;Ut<Nt.rowspan;){const xt=Lt[Ut+Vt]||Lt[Vt];yt+=xt.minHeight,bt+=xt.height,Ut++}Nt.realMinHeight=yt,Nt.realHeight=bt,Nt.mainHeight=Pt}}const Zt=this.tableParticle.getTrListGroupByCol(Lt);for(let Vt=0;Vt<Zt.length;Vt++){const Ct=Zt[Vt];let pt=-1;for(let Nt=0;Nt<Ct.tdList.length;Nt++){const Jt=Ct.tdList[Nt],Ft=Jt.realHeight,Pt=Jt.mainHeight,yt=Jt.realMinHeight,bt=Pt<yt?Ft-yt:Ft-Pt;(!~pt||bt<pt)&&(pt=bt)}if(pt>0){const Nt=Lt[Vt];Nt.height-=pt,Nt.tdList.forEach(Jt=>{Jt.height-=pt})}}this.tableParticle.computeRowColInfo(C);const Ie=this.tableParticle.getTableHeight(C),$e=this.tableParticle.getTableWidth(C);C.width=$e,C.height=Ie;const qe=$e*g,je=Ie*g;if(A.width=qe,A.height=je,A.boundingBoxDescent=je,A.boundingBoxAscent=-St,((b=i[ot+1])==null?void 0:b.type)===N.TABLE&&(A.boundingBoxAscent-=St),n){const Vt=this.getHeight(),Ct=this.getMainOuterHeight();let pt=Ct;for(let Ft=0;Ft<S.length;Ft++){const Pt=S[Ft];Pt.height+pt>Vt||((G=S[Ft-1])==null?void 0:G.isPageBreak)?pt=Ct+Pt.height:pt+=Pt.height}const Nt=St*2*g,Jt=C.trList[0].height*g;if((pt+Jt+Nt>Vt||C.pagingIndex!==0&&C.trList[0].pagingRepeat)&&(pt=Ct),pt+Nt+je>Vt){const Ft=C.trList;let Pt=0,yt=0,bt=0;if(Ft.length>1)for(let Ut=0;Ut<Ft.length;Ut++){const xt=Ft[Ut],Dt=xt.height*g;if(pt+Nt+bt+Dt>Vt){const qt=xt.tdList.reduce((ce,Ke)=>ce+Ke.colspan,0);((x=C.colgroup)==null?void 0:x.length)!==qt&&(yt=0);break}else Pt=Ut+1,yt=Ft.length-Pt,bt+=Dt}if(yt){const Ut=Ft.splice(Pt,yt),xt=Ut.reduce((ue,We)=>ue+We.height,0),Dt=xt*g,qt=C.pagingId||Mt();C.pagingId=qt,C.height-=xt,A.height-=Dt,A.boundingBoxDescent-=Dt;const ce=Ot(C);ce.pagingId=qt,ce.pagingIndex=C.pagingIndex+1;const Ke=Ft.filter(ue=>ue.pagingRepeat);if(Ke.length){const ue=Ot(Ke);ue.forEach(We=>We.id=Mt()),Ut.unshift(...ue)}ce.trList=Ut,ce.id=Mt(),this.spliceElementList(i,ot+1,0,ce)}}if(C.pagingId){const Ft=this.position.getPositionContext();if(Ft.isTable){let Pt=-1,yt=-1,bt=ot;for(;bt<i.length;){const Ut=i[bt];if(Ut.pagingId!==C.pagingId)break;const xt=Ut.trList.findIndex(Dt=>Dt.id===Ft.trId);if(~xt){Pt=bt,yt=xt;break}bt++}~Pt&&(Ft.index=Pt,Ft.trIndex=yt,this.position.setPositionContext(Ft))}}}}else if(C.type===N.SEPARATOR){const{separator:{lineWidth:ut}}=this.options;C.width=it/g,A.width=it,A.height=ut*g,A.boundingBoxAscent=-St,A.boundingBoxDescent=-St+A.height}else if(C.type===N.PAGE_BREAK)C.width=it/g,A.width=it,A.height=u;else if(C.type===N.RADIO||C.controlComponent===D.RADIO){const{width:ut,height:Yt,gap:Lt}=this.options.radio,Zt=ut+Lt*2;C.width=Zt,A.width=Zt*g,A.height=Yt*g}else if(C.type===N.CHECKBOX||C.controlComponent===D.CHECKBOX){const{width:ut,height:Yt,gap:Lt}=this.options.checkbox,Zt=ut+Lt*2;C.width=Zt,A.width=Zt*g,A.height=Yt*g}else if(C.type===N.TAB)A.width=O*g,A.height=u*g,A.boundingBoxDescent=0,A.boundingBoxAscent=A.height;else if(C.type===N.BLOCK){if(!C.width)A.width=it;else{const ut=C.width*g;A.width=Math.min(ut,it)}A.height=C.height*g,A.boundingBoxDescent=A.height,A.boundingBoxAscent=0}else{const ut=C.size||u;(C.type===N.SUPERSCRIPT||C.type===N.SUBSCRIPT)&&(C.actualSize=Math.ceil(ut*.6)),A.height=(C.actualSize||ut)*g,T.font=this.getElementFont(C);const Yt=this.textParticle.measureText(T,C);A.width=Yt.width*g,C.letterSpacing&&(A.width+=C.letterSpacing*g),A.boundingBoxAscent=(C.value===k?C.size||u:Yt.actualBoundingBoxAscent)*g,A.boundingBoxDescent=Yt.actualBoundingBoxDescent*g,C.type===N.SUPERSCRIPT?A.boundingBoxAscent+=A.height/2:C.type===N.SUBSCRIPT&&(A.boundingBoxDescent+=A.height/2)}const Et=C.imgDisplay!==et.INLINE&&C.type===N.IMAGE||C.type===N.LATEX?A.height+St:A.boundingBoxAscent+St,$t=St+A.boundingBoxAscent+A.boundingBoxDescent+St,Qt=Object.assign(C,{metrics:A,left:0,style:this.getElementFont(C,g)});((y=Qt.control)==null?void 0:y.minWidth)&&(Qt.controlComponent&&(m+=A.width),Qt.controlComponent===D.POSTFIX&&(this.control.setMinWidthControlInfo({row:$,rowElement:Qt,availableWidth:it,controlRealWidth:m}),m=0));const gt=i[ot-1];let Se=i[ot+1],Re=$.width+A.width;if(this.options.wordBreak===mi.BREAK_WORD&&(!(gt==null?void 0:gt.type)||(gt==null?void 0:gt.type)===N.TEXT)&&(!C.type||C.type===N.TEXT)){const ut=`${(gt==null?void 0:gt.value)||""}${C.value}`;if(this.WORD_LIKE_REG.test(ut)){const{width:Lt,endElement:Zt}=this.textParticle.measureWord(T,i,ot),Ie=Lt*g;Ie<=it&&(Re+=Ie,Se=Zt)}Re+=this.textParticle.measurePunctuationWidth(T,Se)*g}C.listId&&(C.listId!==Z?V=0:C.value===k&&!C.listWrap&&V++),Z=C.listId;const Be=this.position.setSurroundPosition({pageNo:I,rowElement:Qt,row:$,rowElementRect:{x:F,y:W,height:$t,width:A.width},availableWidth:it,surroundElementList:c});F=Be.x,Re+=Be.rowIncreaseWidth,F+=A.width;const ke=C.type===N.SEPARATOR||C.type===N.TABLE||(gt==null?void 0:gt.type)===N.TABLE||(gt==null?void 0:gt.type)===N.BLOCK||C.type===N.BLOCK||(gt==null?void 0:gt.imgDisplay)===et.INLINE||C.imgDisplay===et.INLINE||(gt==null?void 0:gt.listId)!==C.listId||ot!==0&&C.value===k,_e=Re>it,ze=ke||_e;if(ze){const ut={width:A.width,height:$t,startIndex:ot,elementList:[Qt],ascent:Et,rowIndex:$.rowIndex+1,rowFlex:((J=i[ot])==null?void 0:J.rowFlex)||((j=i[ot+1])==null?void 0:j.rowFlex),isPageBreak:C.type===N.PAGE_BREAK};if(Qt.controlComponent!==D.PREFIX&&((st=Qt.control)==null?void 0:st.indentation)===qi.VALUE_START){const Yt=$.elementList.findIndex(Lt=>Lt.controlId===Qt.controlId&&Lt.controlComponent!==D.PREFIX);if(~Yt){const Zt=this.position.computeRowPosition({row:$,innerWidth:this.getInnerWidth()})[Yt];Zt&&(ut.offsetX=Zt.coordinate.leftTop[0])}}C.listId&&(ut.isList=!0,ut.offsetX=X.get(C.listId),ut.listIndex=V),S.push(ut)}else $.width+=A.width,ot===0&&ye(i[1])?($.height=P,$.ascent=P):$.height<$t&&($.height=$t,$.ascent=Et),$.elementList.push(Qt);if((ze||ot===i.length-1)&&($.isWidthNotEnough=_e&&!ke,!$.isSurround&&((gt==null?void 0:gt.rowFlex)===at.JUSTIFY||(gt==null?void 0:gt.rowFlex)===at.ALIGNMENT&&$.isWidthNotEnough))){const ut=((Wt=$.elementList[0])==null?void 0:Wt.value)===k?$.elementList.slice(1):$.elementList,Yt=(it-$.width)/(ut.length-1);for(let Lt=0;Lt<ut.length-1;Lt++){const Zt=ut[Lt];Zt.metrics.width+=Yt}$.width=it}if(ze){F=o,W+=$.height,n&&!r&&a&&(W-l+R+$t>a||C.type===N.PAGE_BREAK)&&(W=l,Nr(c,I),I+=1),Qt.left=0;const ut=S[S.length-1];F=this.position.setSurroundPosition({pageNo:I,rowElement:Qt,row:ut,rowElementRect:{x:F,y:W,height:$t,width:A.width},availableWidth:it,surroundElementList:c}).x,F+=A.width}}return S}_computePageList(){var a;const t=[[]],{pageMode:e,pageNumber:{maxPageNo:i}}=this.options,n=this.getHeight(),r=this.getMainOuterHeight();let o=r,l=0;if(e===me.CONTINUITY){t[0]=this.rowList,o+=this.rowList.reduce((d,g)=>d+g.height,0);const R=this.getPagePixelRatio(),c=this.pageList[0],u=Number(c.style.height.replace("px",""));if(o>u)c.style.height=`${o}px`,c.height=o*R;else{const d=o<n?n:o;c.style.height=`${d}px`,c.height=d*R}this._initPageContext(this.ctxList[0])}else for(let R=0;R<this.rowList.length;R++){const c=this.rowList[R];if(c.height+o>n||((a=this.rowList[R-1])==null?void 0:a.isPageBreak)){if(Number.isInteger(i)&&l>=i){this.elementList=this.elementList.slice(0,c.startIndex);break}o=r+c.height,t.push([c]),l++}else o+=c.height,t[l].push(c)}return t}_drawHighlight(t,e){var l;const{control:{activeBackgroundColor:i}}=this.options,{rowList:n,positionList:r}=e,o=(l=this.control.getActiveControl())==null?void 0:l.getElement();for(let a=0;a<n.length;a++){const R=n[a];for(let c=0;c<R.elementList.length;c++){const u=R.elementList[c],d=R.elementList[c-1];if(u.highlight||i&&o&&u.controlId===o.controlId&&!this.control.getIsRangeInPostfix()){d&&d.highlight&&d.highlight!==u.highlight&&this.highlight.render(t);const{coordinate:{leftTop:[g,L]}}=r[R.startIndex+c],O=u.left||0;this.highlight.recordFillInfo(t,g-O,L,u.metrics.width+O,R.height,u.highlight||i)}else(d==null?void 0:d.highlight)&&this.highlight.render(t)}this.highlight.render(t)}}drawRow(t,e){var T,X,S,F,W,I,Z;this._drawHighlight(t,e);const{scale:i,table:{tdPadding:n},group:r,lineBreak:o}=this.options,{rowList:l,pageNo:a,elementList:R,positionList:c,startIndex:u,zone:d,isDrawLineBreak:g=!o.disabled}=e,L=this.mode===Rt.PRINT,{isCrossRowCol:O,tableId:P}=this.range.getRange();let M=u;for(let V=0;V<l.length;V++){const m=l[V],Y={x:0,y:0,width:0,height:0};let Q=null;for(let U=0;U<m.elementList.length;U++){const f=m.elementList[U],b=f.metrics,{ascent:G,coordinate:{leftTop:[x,y]}}=c[m.startIndex+U],J=m.elementList[U-1];if(f.type===N.IMAGE)this.textParticle.complete(),f.imgDisplay!==et.SURROUND&&f.imgDisplay!==et.FLOAT_TOP&&f.imgDisplay!==et.FLOAT_BOTTOM&&this.imageParticle.render(t,f,x,y+G);else if(f.type===N.LATEX)this.textParticle.complete(),this.laTexParticle.render(t,f,x,y+G);else if(f.type===N.TABLE)O&&(Y.x=x,Y.y=y,Q=f),this.tableParticle.render(t,f,x,y);else if(f.type===N.HYPERLINK)this.textParticle.complete(),this.hyperlinkParticle.render(t,f,x,y+G);else if(f.type===N.DATE){const ot=m.elementList[U+1];(!J||J.dateId!==f.dateId)&&this.textParticle.complete(),this.textParticle.record(t,f,x,y+G),(!ot||ot.dateId!==f.dateId)&&this.textParticle.complete()}else f.type===N.SUPERSCRIPT?(this.textParticle.complete(),this.superscriptParticle.render(t,f,x,y+G)):f.type===N.SUBSCRIPT?(this.underline.render(t),this.textParticle.complete(),this.subscriptParticle.render(t,f,x,y+G)):f.type===N.SEPARATOR?this.separatorParticle.render(t,f,x,y):f.type===N.PAGE_BREAK?this.mode!==Rt.CLEAN&&!L&&this.pageBreakParticle.render(t,f,x,y):f.type===N.CHECKBOX||f.controlComponent===D.CHECKBOX?(this.textParticle.complete(),this.checkboxParticle.render({ctx:t,x,y:y+G,index:U,row:m})):f.type===N.RADIO||f.controlComponent===D.RADIO?(this.textParticle.complete(),this.radioParticle.render({ctx:t,x,y:y+G,index:U,row:m})):f.type===N.TAB?this.textParticle.complete():f.rowFlex===at.ALIGNMENT||f.rowFlex===at.JUSTIFY?(this.textParticle.record(t,f,x,y+G),this.textParticle.complete()):f.type===N.BLOCK?(this.textParticle.complete(),this.blockParticle.render(a,f,x,y)):(f.left&&this.textParticle.complete(),this.textParticle.record(t,f,x,y+G),(f.width||f.letterSpacing||No.test(f.value))&&this.textParticle.complete());if(g&&!L&&this.mode!==Rt.CLEAN&&!m.isWidthNotEnough&&U===m.elementList.length-1&&this.lineBreakParticle.render(t,f,x,y+m.height/2),(T=f.control)==null?void 0:T.border){((X=J==null?void 0:J.control)==null?void 0:X.border)&&J.controlId!==f.controlId&&this.control.drawBorder(t);const ot=this.getElementRowMargin(f);this.control.recordBorderInfo(x,y+ot,f.metrics.width,m.height-2*ot)}else((S=J==null?void 0:J.control)==null?void 0:S.border)&&this.control.drawBorder(t);if(f.underline||((F=f.control)==null?void 0:F.underline)){(J==null?void 0:J.type)===N.SUBSCRIPT&&f.type!==N.SUBSCRIPT&&this.underline.render(t);const ot=this.getElementRowMargin(f),$=f.left||0;let C=0;f.type===N.SUBSCRIPT&&(C=this.subscriptParticle.getOffsetY(f));const St=((W=f.control)==null?void 0:W.underline)?this.options.underlineColor:f.color;this.underline.recordFillInfo(t,x-$,y+m.height-ot+C,b.width+$,0,St,(I=f.textDecoration)==null?void 0:I.style)}else((J==null?void 0:J.underline)||((Z=J==null?void 0:J.control)==null?void 0:Z.underline))&&this.underline.render(t);if(f.strikeout){if(!f.type||se.includes(f.type)){J&&(J.type===N.SUBSCRIPT&&f.type!==N.SUBSCRIPT||J.type===N.SUPERSCRIPT&&f.type!==N.SUPERSCRIPT||this.getElementSize(J)!==this.getElementSize(f))&&this.strikeout.render(t);const ot=this.textParticle.measureBasisWord(t,this.getElementFont(f));let $=y+G+ot.actualBoundingBoxDescent*i-b.height/2;f.type===N.SUBSCRIPT?$+=this.subscriptParticle.getOffsetY(f):f.type===N.SUPERSCRIPT&&($+=this.superscriptParticle.getOffsetY(f)),this.strikeout.recordFillInfo(t,x,$,b.width)}}else(J==null?void 0:J.strikeout)&&this.strikeout.render(t);const{zone:j,startIndex:st,endIndex:Wt}=this.range.getRange();if(j===d&&st!==Wt&&st<=M&&M<=Wt){const ot=this.position.getPositionContext();if(!ot.isTable&&!f.tdId||ot.tdId===f.tdId)if(st===M){const $=R[st+1];$&&$.value===k&&(Y.x=x+b.width,Y.y=y,Y.height=m.height,Y.width+=this.options.rangeMinWidth)}else{let $=b.width;$===0&&m.elementList.length===1&&($=this.options.rangeMinWidth),Y.width||(Y.x=x,Y.y=y,Y.height=m.height),Y.width+=$}}if(!r.disabled&&f.groupIds&&this.group.recordFillInfo(f,x,y,b.width,m.height),M++,f.type===N.TABLE){const ot=n[1]+n[3];for(let $=0;$<f.trList.length;$++){const C=f.trList[$];for(let St=0;St<C.tdList.length;St++){const A=C.tdList[St];this.drawRow(t,{elementList:A.value,positionList:A.positionList,rowList:A.rowList,pageNo:a,startIndex:0,innerWidth:(A.width-ot)*i,zone:d,isDrawLineBreak:g})}}}}if(m.isList&&this.listParticle.drawListStyle(t,m,c[m.startIndex]),this.textParticle.complete(),this.control.drawBorder(t),this.underline.render(t),this.strikeout.render(t),this.group.render(t),!L){if(Y.width&&Y.height){const{x:U,y:f,width:b,height:G}=Y;this.range.render(t,U,f,b,G)}if(O&&Q&&Q.id===P){const{coordinate:{leftTop:[U,f]}}=c[m.startIndex];this.tableParticle.drawRange(t,Q,U,f)}}}}_drawFloat(t,e){const{scale:i}=this.options,n=this.position.getFloatPositionList(),{imgDisplays:r,pageNo:o}=e;for(let l=0;l<n.length;l++){const a=n[l],R=a.element;if((o===a.pageNo||a.zone===lt.HEADER||a.zone==lt.FOOTER)&&R.imgDisplay&&r.includes(R.imgDisplay)&&R.type===N.IMAGE){const c=R.imgFloatPosition;this.imageParticle.render(t,R,c.x*i,c.y*i)}}}_clearPage(t){const e=this.ctxList[t],i=this.pageList[t];e.clearRect(0,0,Math.max(i.width,this.getWidth()),Math.max(i.height,this.getHeight())),this.blockParticle.clear()}_drawPage(t){var P,M;const{elementList:e,positionList:i,rowList:n,pageNo:r}=t,{inactiveAlpha:o,pageMode:l,header:a,footer:R,pageNumber:c,lineNumber:u,pageBorder:d}=this.options,g=this.getInnerWidth(),L=this.ctxList[r];L.globalAlpha=this.zone.isMainActive()?1:o,this._clearPage(r),this.background.render(L,r),this.mode!==Rt.PRINT&&this.margin.render(L,r),this._drawFloat(L,{pageNo:r,imgDisplays:[et.FLOAT_BOTTOM]}),this.control.renderHighlightList(L,r);const O=(P=n[0])==null?void 0:P.startIndex;this.drawRow(L,{elementList:e,positionList:i,rowList:n,pageNo:r,startIndex:O,innerWidth:g,zone:lt.MAIN}),this.getIsPagingMode()&&(a.disabled||this.header.render(L,r),c.disabled||this.pageNumber.render(L,r),R.disabled||this.footer.render(L,r)),this._drawFloat(L,{pageNo:r,imgDisplays:[et.FLOAT_TOP,et.SURROUND]}),this.search.getSearchKeyword()&&this.search.render(L,r),l!==me.CONTINUITY&&this.options.watermark.data&&this.waterMark.render(L),this.elementList.length<=1&&!((M=this.elementList[0])==null?void 0:M.listId)&&this.placeholder.render(L),u.disabled||this.lineNumber.render(L,r),d.disabled||this.pageBorder.render(L)}_disconnectLazyRender(){var t;(t=this.lazyRenderIntersectionObserver)==null||t.disconnect()}_lazyRender(){const t=this.position.getOriginalMainPositionList(),e=this.getOriginalMainElementList();this._disconnectLazyRender(),this.lazyRenderIntersectionObserver=new IntersectionObserver(i=>{i.forEach(n=>{if(n.isIntersecting){const r=Number(n.target.dataset.index);this._drawPage({elementList:e,positionList:t,rowList:this.pageRowList[r],pageNo:r})}})}),this.pageList.forEach(i=>{this.lazyRenderIntersectionObserver.observe(i)})}_immediateRender(){const t=this.position.getOriginalMainPositionList(),e=this.getOriginalMainElementList();for(let i=0;i<this.pageRowList.length;i++)this._drawPage({elementList:e,positionList:t,rowList:this.pageRowList[i],pageNo:i})}render(t){const{header:e,footer:i}=this.options,{isSubmitHistory:n=!0,isSetCursor:r=!0,isCompute:o=!0,isLazy:l=!0,isInit:a=!1,isSourceHistory:R=!1,isFirstRender:c=!1}=t||{};let{curIndex:u}=t||{};const d=this.getInnerWidth(),g=this.getIsPagingMode(),L=this.pageRowList.length;if(o){this.position.setFloatPositionList([]),g&&(e.disabled||this.header.compute(),i.disabled||this.footer.compute());const M=this.getMargins(),T=this.getHeight(),X=this.header.getExtraHeight(),S=this.getMainOuterHeight(),F=M[3],W=M[0]+X,I=ls(this.elementList);this.rowList=this.computeRowList({startX:F,startY:W,pageHeight:T,mainOuterHeight:S,isPagingMode:g,innerWidth:d,surroundElementList:I,elementList:this.elementList}),this.pageRowList=this._computePageList(),this.position.computePositionList();const Z=this.search.getSearchKeyword();Z&&this.search.compute(Z),this.control.computeHighlightList()}this.imageObserver.clearAll(),this.cursor.recoveryCursor();for(let M=0;M<this.pageRowList.length;M++)this.pageList[M]||this._createPage(M);const O=this.pageRowList.length,P=this.pageList.length;if(P>O){const M=P-O;this.ctxList.splice(O,M),this.pageList.splice(O,M).forEach(T=>T.remove())}l&&g?this._lazyRender():this._immediateRender(),r?u=this.setCursor(u):this.range.getIsSelection()&&this.cursor.focus(),(n&&!c||u!==void 0&&this.historyManager.isStackEmpty())&&this.submitHistory(u),Ti(()=>{o&&this.control.getActiveControl()&&this.control.reAwakeControl(),o&&!this.isReadonly()&&this.position.getPositionContext().isTable&&this.tableTool.render(),o&&!this.zone.isMainActive()&&this.zone.drawZoneIndicator(),L!==this.pageRowList.length&&(this.listener.pageSizeChange&&this.listener.pageSizeChange(this.pageRowList.length),this.eventBus.isSubscribe("pageSizeChange")&&this.eventBus.emit("pageSizeChange",this.pageRowList.length)),(n||R)&&!a&&(this.listener.contentChange&&this.listener.contentChange(),this.eventBus.isSubscribe("contentChange")&&this.eventBus.emit("contentChange"))})}setCursor(t){var r;const e=this.position.getPositionContext(),i=this.position.getPositionList();if(e.isTable){const{index:o,trIndex:l,tdIndex:a}=e,c=(r=this.getOriginalElementList()[o].trList)==null?void 0:r[l].tdList[a].positionList;t===void 0&&c&&(t=c.length-1);const u=c==null?void 0:c[t];this.position.setCursorPosition(u||null)}else this.position.setCursorPosition(t!==void 0?i[t]:null);let n=!0;if(t!==void 0&&e.isImage&&e.isDirectHit){const l=this.getElementList()[t];if(Eo.includes(l.type)){n=!1;const a=this.position.getCursorPosition();this.previewer.updateResizer(l,a)}}return this.cursor.drawCursor({isShow:n}),t}submitHistory(t){const e=this.position.getPositionContext(),i=nn(this.elementList),n=nn(this.header.getElementList()),r=nn(this.footer.getElementList()),o=Ot(this.range.getRange()),l=this.pageNo,a=Ot(e),R=this.zone.getZone();this.historyManager.execute(()=>{this.zone.setZone(R),this.setPageNo(l),this.position.setPositionContext(Ot(a)),this.header.setElementList(Ot(n)),this.footer.setElementList(Ot(r)),this.elementList=Ot(i),this.range.replaceRange(Ot(o)),this.render({curIndex:t,isSubmitHistory:!1,isSourceHistory:!0})})}destroy(){this.container.remove(),this.globalEvent.removeEvent(),this.scrollObserver.removeEvent(),this.selectionObserver.removeEvent()}clearSideEffect(){this.getPreviewer().clearResizer(),this.getTableTool().dispose(),this.getHyperlinkParticle().clearHyperlinkPopup(),this.getDateParticle().clearDatePicker()}}class ca{constructor(t){h(this,"executeMode");h(this,"executeCut");h(this,"executeCopy");h(this,"executePaste");h(this,"executeSelectAll");h(this,"executeBackspace");h(this,"executeSetRange");h(this,"executeReplaceRange");h(this,"executeSetPositionContext");h(this,"executeForceUpdate");h(this,"executeBlur");h(this,"executeUndo");h(this,"executeRedo");h(this,"executePainter");h(this,"executeApplyPainterStyle");h(this,"executeFormat");h(this,"executeFont");h(this,"executeSize");h(this,"executeSizeAdd");h(this,"executeSizeMinus");h(this,"executeBold");h(this,"executeItalic");h(this,"executeUnderline");h(this,"executeStrikeout");h(this,"executeSuperscript");h(this,"executeSubscript");h(this,"executeAiEdit");h(this,"executeAiArticle");h(this,"executeColor");h(this,"executeHighlight");h(this,"executeTitle");h(this,"executeList");h(this,"executeRowFlex");h(this,"executeRowMargin");h(this,"executeInsertTable");h(this,"executeInsertTableTopRow");h(this,"executeInsertTableBottomRow");h(this,"executeInsertTableLeftCol");h(this,"executeInsertTableRightCol");h(this,"executeDeleteTableRow");h(this,"executeDeleteTableCol");h(this,"executeDeleteTable");h(this,"executeMergeTableCell");h(this,"executeCancelMergeTableCell");h(this,"executeTableTdVerticalAlign");h(this,"executeTableBorderType");h(this,"executeTableTdBorderType");h(this,"executeTableTdSlashType");h(this,"executeTableTdBackgroundColor");h(this,"executeTableSelectAll");h(this,"executeImage");h(this,"executeHyperlink");h(this,"executeDeleteHyperlink");h(this,"executeCancelHyperlink");h(this,"executeEditHyperlink");h(this,"executeSeparator");h(this,"executePageBreak");h(this,"executeAddWatermark");h(this,"executeDeleteWatermark");h(this,"executeSearch");h(this,"executeSearchNavigatePre");h(this,"executeSearchNavigateNext");h(this,"executeReplace");h(this,"executePrint");h(this,"executeReplaceImageElement");h(this,"executeSaveAsImageElement");h(this,"executeChangeImageDisplay");h(this,"executePageMode");h(this,"executePageScaleRecovery");h(this,"executePageScaleMinus");h(this,"executePageScaleAdd");h(this,"executePaperSize");h(this,"executePaperDirection");h(this,"executeSetPaperMargin");h(this,"executeInsertElementList");h(this,"executeAppendElementList");h(this,"executeUpdateElementById");h(this,"executeSetValue");h(this,"executeRemoveControl");h(this,"executeSetLocale");h(this,"executeLocationCatalog");h(this,"executeWordTool");h(this,"executeSetHTML");h(this,"executeSetGroup");h(this,"executeDeleteGroup");h(this,"executeLocationGroup");h(this,"executeSetZone");h(this,"executeSetControlValue");h(this,"executeSetControlExtension");h(this,"executeSetControlProperties");h(this,"executeSetControlHighlight");h(this,"executeLocationControl");h(this,"executeInsertControl");h(this,"executeUpdateOptions");h(this,"executeInsertTitle");h(this,"executeFocus");h(this,"getCatalog");h(this,"getImage");h(this,"getOptions");h(this,"getValue");h(this,"getHTML");h(this,"getText");h(this,"getWordCount");h(this,"getCursorPosition");h(this,"getRange");h(this,"getRangeText");h(this,"getRangeContext");h(this,"getRangeRow");h(this,"getRangeParagraph");h(this,"getKeywordRangeList");h(this,"getKeywordContext");h(this,"getPaperMargin");h(this,"getSearchNavigateInfo");h(this,"getLocale");h(this,"getGroupIds");h(this,"getControlValue");h(this,"getControlList");h(this,"getContainer");h(this,"getTitleValue");h(this,"getPositionContextByEvent");h(this,"getElementById");this.executeMode=t.mode.bind(t),this.executeCut=t.cut.bind(t),this.executeCopy=t.copy.bind(t),this.executePaste=t.paste.bind(t),this.executeSelectAll=t.selectAll.bind(t),this.executeBackspace=t.backspace.bind(t),this.executeSetRange=t.setRange.bind(t),this.executeReplaceRange=t.replaceRange.bind(t),this.executeSetPositionContext=t.setPositionContext.bind(t),this.executeForceUpdate=t.forceUpdate.bind(t),this.executeBlur=t.blur.bind(t),this.executeUndo=t.undo.bind(t),this.executeRedo=t.redo.bind(t),this.executePainter=t.painter.bind(t),this.executeApplyPainterStyle=t.applyPainterStyle.bind(t),this.executeFormat=t.format.bind(t),this.executeFont=t.font.bind(t),this.executeSize=t.size.bind(t),this.executeSizeAdd=t.sizeAdd.bind(t),this.executeSizeMinus=t.sizeMinus.bind(t),this.executeBold=t.bold.bind(t),this.executeItalic=t.italic.bind(t),this.executeUnderline=t.underline.bind(t),this.executeStrikeout=t.strikeout.bind(t),this.executeSuperscript=t.superscript.bind(t),this.executeSubscript=t.subscript.bind(t),this.executeAiEdit=t.aiEdit.bind(t),this.executeAiArticle=t.aiArticle.bind(t),this.executeColor=t.color.bind(t),this.executeHighlight=t.highlight.bind(t),this.executeTitle=t.title.bind(t),this.executeList=t.list.bind(t),this.executeRowFlex=t.rowFlex.bind(t),this.executeRowMargin=t.rowMargin.bind(t),this.executeInsertTable=t.insertTable.bind(t),this.executeInsertTableTopRow=t.insertTableTopRow.bind(t),this.executeInsertTableBottomRow=t.insertTableBottomRow.bind(t),this.executeInsertTableLeftCol=t.insertTableLeftCol.bind(t),this.executeInsertTableRightCol=t.insertTableRightCol.bind(t),this.executeDeleteTableRow=t.deleteTableRow.bind(t),this.executeDeleteTableCol=t.deleteTableCol.bind(t),this.executeDeleteTable=t.deleteTable.bind(t),this.executeMergeTableCell=t.mergeTableCell.bind(t),this.executeCancelMergeTableCell=t.cancelMergeTableCell.bind(t),this.executeTableTdVerticalAlign=t.tableTdVerticalAlign.bind(t),this.executeTableBorderType=t.tableBorderType.bind(t),this.executeTableTdBorderType=t.tableTdBorderType.bind(t),this.executeTableTdSlashType=t.tableTdSlashType.bind(t),this.executeTableTdBackgroundColor=t.tableTdBackgroundColor.bind(t),this.executeTableSelectAll=t.tableSelectAll.bind(t),this.executeImage=t.image.bind(t),this.executeHyperlink=t.hyperlink.bind(t),this.executeDeleteHyperlink=t.deleteHyperlink.bind(t),this.executeCancelHyperlink=t.cancelHyperlink.bind(t),this.executeEditHyperlink=t.editHyperlink.bind(t),this.executeSeparator=t.separator.bind(t),this.executePageBreak=t.pageBreak.bind(t),this.executeAddWatermark=t.addWatermark.bind(t),this.executeDeleteWatermark=t.deleteWatermark.bind(t),this.executeSearch=t.search.bind(t),this.executeSearchNavigatePre=t.searchNavigatePre.bind(t),this.executeSearchNavigateNext=t.searchNavigateNext.bind(t),this.executeReplace=t.replace.bind(t),this.executePrint=t.print.bind(t),this.executeReplaceImageElement=t.replaceImageElement.bind(t),this.executeSaveAsImageElement=t.saveAsImageElement.bind(t),this.executeChangeImageDisplay=t.changeImageDisplay.bind(t),this.executePageMode=t.pageMode.bind(t),this.executePageScaleRecovery=t.pageScaleRecovery.bind(t),this.executePageScaleMinus=t.pageScaleMinus.bind(t),this.executePageScaleAdd=t.pageScaleAdd.bind(t),this.executePaperSize=t.paperSize.bind(t),this.executePaperDirection=t.paperDirection.bind(t),this.executeSetPaperMargin=t.setPaperMargin.bind(t),this.executeInsertElementList=t.insertElementList.bind(t),this.executeAppendElementList=t.appendElementList.bind(t),this.executeUpdateElementById=t.updateElementById.bind(t),this.executeSetValue=t.setValue.bind(t),this.executeRemoveControl=t.removeControl.bind(t),this.executeSetLocale=t.setLocale.bind(t),this.executeLocationCatalog=t.locationCatalog.bind(t),this.executeWordTool=t.wordTool.bind(t),this.executeSetHTML=t.setHTML.bind(t),this.executeSetGroup=t.setGroup.bind(t),this.executeDeleteGroup=t.deleteGroup.bind(t),this.executeLocationGroup=t.locationGroup.bind(t),this.executeSetZone=t.setZone.bind(t),this.executeUpdateOptions=t.updateOptions.bind(t),this.executeInsertTitle=t.insertTitle.bind(t),this.executeFocus=t.focus.bind(t),this.getImage=t.getImage.bind(t),this.getOptions=t.getOptions.bind(t),this.getValue=t.getValue.bind(t),this.getHTML=t.getHTML.bind(t),this.getText=t.getText.bind(t),this.getWordCount=t.getWordCount.bind(t),this.getCursorPosition=t.getCursorPosition.bind(t),this.getRange=t.getRange.bind(t),this.getRangeText=t.getRangeText.bind(t),this.getRangeContext=t.getRangeContext.bind(t),this.getRangeRow=t.getRangeRow.bind(t),this.getRangeParagraph=t.getRangeParagraph.bind(t),this.getKeywordRangeList=t.getKeywordRangeList.bind(t),this.getKeywordContext=t.getKeywordContext.bind(t),this.getCatalog=t.getCatalog.bind(t),this.getPaperMargin=t.getPaperMargin.bind(t),this.getSearchNavigateInfo=t.getSearchNavigateInfo.bind(t),this.getLocale=t.getLocale.bind(t),this.getGroupIds=t.getGroupIds.bind(t),this.getContainer=t.getContainer.bind(t),this.getTitleValue=t.getTitleValue.bind(t),this.getPositionContextByEvent=t.getPositionContextByEvent.bind(t),this.getElementById=t.getElementById.bind(t),this.executeSetControlValue=t.setControlValue.bind(t),this.executeSetControlExtension=t.setControlExtension.bind(t),this.executeSetControlProperties=t.setControlProperties.bind(t),this.executeSetControlHighlight=t.setControlHighlight.bind(t),this.getControlValue=t.getControlValue.bind(t),this.getControlList=t.getControlList.bind(t),this.executeLocationControl=t.locationControl.bind(t),this.executeInsertControl=t.insertControl.bind(t)}}function ua(s,t){return s===1125&&t===1593?{size:"a3",width:"297mm",height:"420mm"}:s===794&&t===1123?{size:"a4",width:"210mm",height:"297mm"}:s===565&&t===796?{size:"a5",width:"148mm",height:"210mm"}:{size:"",width:`${s}px`,height:`${t}px`}}function da(s,t){const{width:e,height:i,direction:n=Oe.VERTICAL}=t,r=document.createElement("iframe");r.style.visibility="hidden",r.style.position="absolute",r.style.left="0",r.style.top="0",r.style.width="0",r.style.height="0",r.style.border="none",document.body.append(r);const o=r.contentWindow,l=o.document;l.open();const a=document.createElement("div"),R=ua(e,i);s.forEach(d=>{const g=document.createElement("img");g.style.width=n===Oe.HORIZONTAL?R.height:R.width,g.style.height=n===Oe.HORIZONTAL?R.width:R.height,g.src=d,a.append(g)});const c=document.createElement("style"),u=`
* {
margin: 0;
padding: 0;
}
@page {
margin: 0;
size: ${R.size} ${n===Oe.HORIZONTAL?"landscape":"portrait"};
}`;c.append(document.createTextNode(u)),setTimeout(()=>{l.write(`${c.outerHTML}${a.innerHTML}`),o.print(),l.close(),window.addEventListener("mouseover",()=>{r==null||r.remove()},{once:!0})})}class ha{constructor(t){h(this,"draw");h(this,"range");h(this,"position");h(this,"historyManager");h(this,"canvasEvent");h(this,"options");h(this,"control");h(this,"workerManager");h(this,"searchManager");h(this,"i18n");h(this,"zone");h(this,"tableOperate");this.draw=t,this.range=t.getRange(),this.position=t.getPosition(),this.historyManager=t.getHistoryManager(),this.canvasEvent=t.getCanvasEvent(),this.options=t.getOptions(),this.control=t.getControl(),this.workerManager=t.getWorkerManager(),this.searchManager=t.getSearch(),this.i18n=t.getI18n(),this.zone=t.getZone(),this.tableOperate=t.getTableOperate()}mode(t){this.draw.setMode(t)}cut(){this.draw.isReadonly()||this.draw.isDisabled()||this.canvasEvent.cut()}copy(){this.canvasEvent.copy()}paste(t){this.draw.isReadonly()||this.draw.isDisabled()||Ir(this.canvasEvent,t)}selectAll(){this.canvasEvent.selectAll()}backspace(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const e=this.draw.getElementList(),{startIndex:i,endIndex:n}=this.range.getRange(),r=i===n;if(r&&e[i].value===k&&i===0)return;r?this.draw.spliceElementList(e,i,1):this.draw.spliceElementList(e,i+1,n-i);const o=r?i-1:i;this.range.setRange(o,o),this.draw.render({curIndex:o})}setRange(t,e,i,n,r,o,l){if(t<0||e<0||e<t)return;this.range.setRange(t,e,i,n,r,o,l);const a=t===e;this.draw.render({curIndex:a?t:void 0,isCompute:!1,isSubmitHistory:!1,isSetCursor:a})}replaceRange(t){this.setRange(t.startIndex,t.endIndex,t.tableId,t.startTdIndex,t.endTdIndex,t.startTrIndex,t.endTrIndex)}setPositionContext(t){const{tableId:e,startTrIndex:i,startTdIndex:n}=t,r=this.draw.getOriginalElementList();if(e){const o=r.findIndex(c=>c.id===e);if(!~o)return;const a=r[o].trList[i],R=a.tdList[n];this.position.setPositionContext({isTable:!0,index:o,trIndex:i,tdIndex:n,tdId:R.id,trId:a.id,tableId:e})}else this.position.setPositionContext({isTable:!1})}forceUpdate(t){const{isSubmitHistory:e=!1}=t||{};this.range.clearRange(),this.draw.render({isSubmitHistory:e,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(t){if(!t.isDblclick&&this.draw.getPainterStyle()){this.canvasEvent.clearPainterStyle();return}const e=this.range.getSelection();if(!e)return;const i={};e.forEach(n=>{Fe.forEach(o=>{const l=o;i[l]===void 0&&(i[l]=n[l])})}),this.draw.setPainterStyle(i,t)}applyPainterStyle(){this.draw.isReadonly()||this.draw.isDisabled()||this.canvasEvent.applyPainterStyle()}format(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const e=this.range.getSelectionElementList();let i={},n=[];if(e==null?void 0:e.length)n=e,i={isSetCursor:!1};else{const{endIndex:r}=this.range.getRange(),l=this.draw.getElementList()[r];(l==null?void 0:l.value)===k&&(n.push(l),i={curIndex:r})}!n.length||(n.forEach(r=>{Fe.forEach(o=>{delete r[o]})}),this.draw.render(i))}font(t){if(this.draw.isReadonly()||this.draw.isDisabled())return;const i=this.range.getSelectionElementList();if(i==null?void 0:i.length)i.forEach(n=>{n.font=t}),this.draw.render({isSetCursor:!1});else{const{endIndex:n}=this.range.getRange(),o=this.draw.getElementList()[n];(o==null?void 0:o.value)===k&&(o.font=t,this.draw.render({curIndex:n,isCompute:!1}))}}size(t){const{minSize:e,maxSize:i,defaultSize:n}=this.options;if(t<e||t>i||this.draw.isReadonly()||this.draw.isDisabled())return;let o={},l=[];const a=this.range.getTextLikeSelectionElementList();if(a==null?void 0:a.length)l=a,o={isSetCursor:!1};else{const{endIndex:c}=this.range.getRange(),d=this.draw.getElementList()[c];(d==null?void 0:d.value)===k&&(l.push(d),o={curIndex:c})}if(!l.length)return;let R=!1;l.forEach(c=>{!c.size&&t===n||c.size&&c.size===t||(c.size=t,R=!0)}),R&&this.draw.render(o)}sizeAdd(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const e=this.range.getTextLikeSelectionElementList();let i={},n=[];if(e==null?void 0:e.length)n=e,i={isSetCursor:!1};else{const{endIndex:a}=this.range.getRange(),c=this.draw.getElementList()[a];(c==null?void 0:c.value)===k&&(n.push(c),i={curIndex:a})}if(!n.length)return;const{defaultSize:r,maxSize:o}=this.options;let l=!1;n.forEach(a=>{a.size||(a.size=r),!(a.size>=o)&&(a.size+2>o?a.size=o:a.size+=2,l=!0)}),l&&this.draw.render(i)}sizeMinus(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const e=this.range.getTextLikeSelectionElementList();let i={},n=[];if(e==null?void 0:e.length)n=e,i={isSetCursor:!1};else{const{endIndex:a}=this.range.getRange(),c=this.draw.getElementList()[a];(c==null?void 0:c.value)===k&&(n.push(c),i={curIndex:a})}if(!n.length)return;const{defaultSize:r,minSize:o}=this.options;let l=!1;n.forEach(a=>{a.size||(a.size=r),!(a.size<=o)&&(a.size-2<o?a.size=o:a.size-=2,l=!0)}),l&&this.draw.render(i)}bold(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const e=this.range.getSelectionElementList();if(e==null?void 0:e.length){const i=e.findIndex(n=>!n.bold);e.forEach(n=>{n.bold=!!~i}),this.draw.render({isSetCursor:!1})}else{const{endIndex:i}=this.range.getRange(),r=this.draw.getElementList()[i];(r==null?void 0:r.value)===k&&(r.bold=!r.bold,this.draw.render({curIndex:i,isCompute:!1}))}}italic(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const e=this.range.getSelectionElementList();if(e==null?void 0:e.length){const i=e.findIndex(n=>!n.italic);e.forEach(n=>{n.italic=!!~i}),this.draw.render({isSetCursor:!1})}else{const{endIndex:i}=this.range.getRange(),r=this.draw.getElementList()[i];(r==null?void 0:r.value)===k&&(r.italic=!r.italic,this.draw.render({curIndex:i,isCompute:!1}))}}underline(t){if(this.draw.isReadonly()||this.draw.isDisabled())return;const i=this.range.getSelectionElementList();if(i==null?void 0:i.length){const n=i.some(r=>!r.underline||!t&&r.textDecoration||t&&!r.textDecoration||t&&r.textDecoration&&!Vo(r.textDecoration,t));i.forEach(r=>{r.underline=n,n&&t?r.textDecoration=t:delete r.textDecoration}),this.draw.render({isSetCursor:!1,isCompute:!1})}else{const{endIndex:n}=this.range.getRange(),o=this.draw.getElementList()[n];(o==null?void 0:o.value)===k&&(o.underline=!o.underline,this.draw.render({curIndex:n,isCompute:!1}))}}strikeout(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const e=this.range.getSelectionElementList();if(e==null?void 0:e.length){const i=e.findIndex(n=>!n.strikeout);e.forEach(n=>{n.strikeout=!!~i}),this.draw.render({isSetCursor:!1,isCompute:!1})}else{const{endIndex:i}=this.range.getRange(),r=this.draw.getElementList()[i];(r==null?void 0:r.value)===k&&(r.strikeout=!r.strikeout,this.draw.render({curIndex:i,isCompute:!1}))}}superscript(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const e=this.range.getSelectionElementList();if(!e)return;const i=e.findIndex(n=>n.type===N.SUPERSCRIPT);e.forEach(n=>{~i?n.type===N.SUPERSCRIPT&&(n.type=N.TEXT,delete n.actualSize):(!n.type||n.type===N.TEXT||n.type===N.SUBSCRIPT)&&(n.type=N.SUPERSCRIPT)}),this.draw.render({isSetCursor:!1})}subscript(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const e=this.range.getSelectionElementList();if(!e)return;const i=e.findIndex(n=>n.type===N.SUBSCRIPT);e.forEach(n=>{~i?n.type===N.SUBSCRIPT&&(n.type=N.TEXT,delete n.actualSize):(!n.type||n.type===N.TEXT||n.type===N.SUPERSCRIPT)&&(n.type=N.SUBSCRIPT)}),this.draw.render({isSetCursor:!1})}aiArticle(t){if(this.selectAll(),this.draw.isReadonly()||this.draw.isDisabled())return;const i=this.range.getSelectionElementList();let n="";return i==null||i.forEach(r=>{n+=r.value}),n===""&&(this.setHTML({main:"<p> </p>"}),n=" "),this.search(n),this.replace(n+t),n}aiEdit(t,e){if(this.draw.isReadonly()||this.draw.isDisabled())return;const n=this.range.getSelectionElementList();if(!n)return;let r="";return n.forEach(o=>{r+=o.value}),this.search(r),t&&t=="creation_ask"?window.parent.postMessage({type:"aiCreater",data:{title:e,content:r},action:t},"*"):t&&r&&window.parent.postMessage({type:"aiCreater",data:r,action:t},"*"),r}color(t){if(this.draw.isReadonly()||this.draw.isDisabled())return;const i=this.range.getSelectionElementList();if(i==null?void 0:i.length)i.forEach(n=>{t?n.color=t:delete n.color}),this.draw.render({isSetCursor:!1,isCompute:!1});else{const{endIndex:n}=this.range.getRange(),o=this.draw.getElementList()[n];(o==null?void 0:o.value)===k&&(t?o.color=t:delete o.color,this.draw.render({curIndex:n,isCompute:!1}))}}highlight(t){if(this.draw.isReadonly()||this.draw.isDisabled())return;const i=this.range.getSelectionElementList();if(i==null?void 0:i.length)i.forEach(n=>{t?n.highlight=t:delete n.highlight}),this.draw.render({isSetCursor:!1,isCompute:!1});else{const{endIndex:n}=this.range.getRange(),o=this.draw.getElementList()[n];(o==null?void 0:o.value)===k&&(t?o.highlight=t:delete o.highlight,this.draw.render({curIndex:n,isCompute:!1}))}}title(t){if(this.draw.isReadonly()||this.draw.isDisabled())return;const{startIndex:i,endIndex:n}=this.range.getRange();if(!~i&&!~n)return;const r=this.draw.getElementList(),o=i===n?this.range.getRangeParagraphElementList():r.slice(i+1,n+1);if(!o||!o.length)return;const l=Mt(),a=this.draw.getOptions().title;o.forEach(u=>{!u.type&&u.value===k||(t?(u.level=t,u.titleId=l,os(u)&&(u.size=a[is[t]],u.bold=!0)):u.titleId&&(delete u.titleId,delete u.title,delete u.level,delete u.size,delete u.bold))});const R=i===n,c=R?n:i;this.draw.render({curIndex:c,isSetCursor:R})}list(t,e){this.draw.isReadonly()||this.draw.getListParticle().setList(t,e)}rowFlex(t){if(this.draw.isReadonly())return;const{startIndex:i,endIndex:n}=this.range.getRange();if(!~i&&!~n)return;const r=this.range.getRangeRowElementList();if(!r)return;r.forEach(a=>{a.rowFlex=t});const o=i===n,l=o?n:i;this.draw.render({curIndex:l,isSetCursor:o})}rowMargin(t){if(this.draw.isReadonly())return;const{startIndex:i,endIndex:n}=this.range.getRange();if(!~i&&!~n)return;const r=this.range.getRangeRowElementList();if(!r)return;r.forEach(a=>{a.rowMargin=t});const o=i===n,l=o?n:i;this.draw.render({curIndex:l,isSetCursor:o})}insertTable(t,e){this.draw.isReadonly()||this.draw.isDisabled()||this.control.getActiveControl()||this.tableOperate.insertTable(t,e)}insertTableTopRow(){this.draw.isReadonly()||this.tableOperate.insertTableTopRow()}insertTableBottomRow(){this.draw.isReadonly()||this.tableOperate.insertTableBottomRow()}insertTableLeftCol(){this.draw.isReadonly()||this.tableOperate.insertTableLeftCol()}insertTableRightCol(){this.draw.isReadonly()||this.tableOperate.insertTableRightCol()}deleteTableRow(){this.draw.isReadonly()||this.tableOperate.deleteTableRow()}deleteTableCol(){this.draw.isReadonly()||this.tableOperate.deleteTableCol()}deleteTable(){this.draw.isReadonly()||this.tableOperate.deleteTable()}mergeTableCell(){this.draw.isReadonly()||this.tableOperate.mergeTableCell()}cancelMergeTableCell(){this.draw.isReadonly()||this.tableOperate.cancelMergeTableCell()}tableTdVerticalAlign(t){this.draw.isReadonly()||this.tableOperate.tableTdVerticalAlign(t)}tableBorderType(t){this.draw.isReadonly()||this.tableOperate.tableBorderType(t)}tableTdBorderType(t){this.draw.isReadonly()||this.tableOperate.tableTdBorderType(t)}tableTdSlashType(t){this.draw.isReadonly()||this.tableOperate.tableTdSlashType(t)}tableTdBackgroundColor(t){this.draw.isReadonly()||this.tableOperate.tableTdBackgroundColor(t)}tableSelectAll(){this.tableOperate.tableSelectAll()}hyperlink(t){if(this.draw.isReadonly()||this.draw.isDisabled()||this.control.getActiveControl())return;const{startIndex:n,endIndex:r}=this.range.getRange();if(!~n&&!~r)return;const o=this.draw.getElementList(),{valueList:l,url:a}=t,R=Mt(),c=l==null?void 0:l.map(g=>({url:a,hyperlinkId:R,value:g.value,type:N.HYPERLINK}));if(!c)return;const u=n+1;Ht(o,c,n,{editorOptions:this.options}),this.draw.spliceElementList(o,u,n===r?0:r-n,...c);const d=u+c.length-1;this.range.setRange(d,d),this.draw.render({curIndex:d})}getHyperlinkRange(){let t=-1,e=-1;const{startIndex:i,endIndex:n}=this.range.getRange();if(!~i&&!~n)return null;const r=this.draw.getElementList(),o=r[i];if(o.type!==N.HYPERLINK)return null;let l=i;for(;l>0;){if(r[l].hyperlinkId!==o.hyperlinkId){t=l+1;break}l--}let a=i+1;for(;a<r.length;){if(r[a].hyperlinkId!==o.hyperlinkId){e=a-1;break}a++}return a===r.length&&(e=a-1),!~t||!~e?null:[t,e]}deleteHyperlink(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const e=this.getHyperlinkRange();if(!e)return;const i=this.draw.getElementList(),[n,r]=e;this.draw.spliceElementList(i,n,r-n+1),this.draw.getHyperlinkParticle().clearHyperlinkPopup();const o=n-1;this.range.setRange(o,o),this.draw.render({curIndex:o})}cancelHyperlink(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const e=this.getHyperlinkRange();if(!e)return;const i=this.draw.getElementList(),[n,r]=e;for(let l=n;l<=r;l++){const a=i[l];delete a.type,delete a.url,delete a.hyperlinkId,delete a.underline}this.draw.getHyperlinkParticle().clearHyperlinkPopup();const{endIndex:o}=this.range.getRange();this.draw.render({curIndex:o,isCompute:!1})}editHyperlink(t){if(this.draw.isReadonly()||this.draw.isDisabled())return;const i=this.getHyperlinkRange();if(!i)return;const n=this.draw.getElementList(),[r,o]=i;for(let a=r;a<=o;a++){const R=n[a];R.url=t}this.draw.getHyperlinkParticle().clearHyperlinkPopup();const{endIndex:l}=this.range.getRange();this.draw.render({curIndex:l,isCompute:!1})}separator(t){if(this.draw.isReadonly()||this.draw.isDisabled()||this.control.getActiveControl())return;const{startIndex:n,endIndex:r}=this.range.getRange();if(!~n&&!~r)return;const o=this.draw.getElementList();let l=-1;const a=o[r+1];if(a&&a.type===N.SEPARATOR){if(a.dashArray&&a.dashArray.join()===t.join())return;l=r,a.dashArray=t}else{const R={value:Gn,type:N.SEPARATOR,dashArray:t};Ht(o,[R],n,{editorOptions:this.options}),n!==0&&o[n].value===k?(this.draw.spliceElementList(o,n,1,R),l=n-1):(this.draw.spliceElementList(o,n+1,0,R),l=n)}this.range.setRange(l,l),this.draw.render({curIndex:l})}pageBreak(){this.draw.isReadonly()||this.draw.isDisabled()||this.control.getActiveControl()||this.insertElementList([{type:N.PAGE_BREAK,value:Gn}])}addWatermark(t){if(this.draw.isReadonly())return;const i=this.draw.getOptions(),{color:n,size:r,opacity:o,font:l,gap:a}=tn;i.watermark.data=t.data,i.watermark.color=t.color||n,i.watermark.size=t.size||r,i.watermark.opacity=t.opacity||o,i.watermark.font=t.font||l,i.watermark.repeat=!!t.repeat,i.watermark.gap=t.gap||a,this.draw.render({isSetCursor:!1,isSubmitHistory:!1,isCompute:!1})}deleteWatermark(){if(this.draw.isReadonly())return;const e=this.draw.getOptions();e.watermark&&e.watermark.data&&(e.watermark=E({},tn),this.draw.render({isSetCursor:!1,isSubmitHistory:!1,isCompute:!1}))}image(t){if(this.draw.isReadonly()||this.draw.isDisabled())return;const{startIndex:i,endIndex:n}=this.range.getRange();if(!~i&&!~n)return;const{value:r,width:o,height:l,imgDisplay:a}=t;this.insertElementList([{value:r,width:o,height:l,id:Mt(),type:N.IMAGE,imgDisplay:a}])}search(t){this.searchManager.setSearchKeyword(t),this.draw.render({isSetCursor:!1,isSubmitHistory:!1})}searchNavigatePre(){this.searchManager.searchNavigatePre()!==null&&this.draw.render({isSetCursor:!1,isSubmitHistory:!1,isCompute:!1,isLazy:!1})}searchNavigateNext(){this.searchManager.searchNavigateNext()!==null&&this.draw.render({isSetCursor:!1,isSubmitHistory:!1,isCompute:!1,isLazy:!1})}getSearchNavigateInfo(){return this.searchManager.getSearchNavigateInfo()}checkPayload(t){return!!(!t||t.includes(k))}replace(t){if(this.draw.isReadonly()||!t)return;const i=this.draw.getSearch().getSearchMatchList();if(!i.length)return;let n=0,r=0,o="",l="",a=-1;const R=this.draw.getOriginalElementList();for(let d=0;d<i.length;d++){const g=i[d];if(g.type===Pe.TABLE){const{tableIndex:L,trIndex:O,tdIndex:P,index:M,tdId:T}=g;l&&T!==l&&(r=0),l=T;const X=L+n,S=R[X].trList[O].tdList[P].value,F=M+r,W=S[F];if(o===g.groupId){this.draw.spliceElementList(S,F,1),r--;continue}for(let I=0;I<t.length;I++){const Z=t[I];I===0?W.value=Z:(this.draw.spliceElementList(S,F+I,0,q(E({},W),{value:Z})),r++)}}else{const L=g.index+n,O=R[L];if(O.type===N.CONTROL&&O.controlComponent!==D.VALUE)continue;if(~a||(a=d),o===g.groupId){this.draw.spliceElementList(R,L,1),n--;continue}for(let P=0;P<t.length;P++){const M=t[P];P===0?O.value=M:(this.draw.spliceElementList(R,L+P,0,q(E({},O),{value:M})),n++)}}o=g.groupId}if(!~a)return;const c=i[a],u=c.index+(t.length-1);if(c.type===Pe.TABLE){const{tableIndex:d,trIndex:g,tdIndex:L,index:O}=c,P=R[d].trList[g].tdList[L].value[O];this.position.setPositionContext({isTable:!0,index:d,trIndex:g,tdIndex:L,tdId:P.tdId,trId:P.trId,tableId:P.tableId})}else this.position.setPositionContext({isTable:!1});this.range.setRange(u,u),this.draw.render({curIndex:u})}async print(){const{scale:t,printPixelRatio:e,paperDirection:i,width:n,height:r}=this.options;t!==1&&this.draw.setPageScale(1);const o=await this.draw.getDataURL({pixelRatio:e,mode:Rt.PRINT});da(o,{width:n,height:r,direction:i}),t!==1&&this.draw.setPageScale(t)}replaceImageElement(t){const{startIndex:e}=this.range.getRange(),n=this.draw.getElementList()[e];!n||n.type!==N.IMAGE||(n.id=Mt(),n.value=t,this.draw.render({isSetCursor:!1}))}saveAsImageElement(){const{startIndex:t}=this.range.getRange(),i=this.draw.getElementList()[t];!i||i.type!==N.IMAGE||Bn(i.value,`${i.id}.png`)}changeImageDisplay(t,e){if(t.imgDisplay===e)return;t.imgDisplay=e;const{startIndex:i,endIndex:n}=this.range.getRange();if(e===et.SURROUND||e===et.FLOAT_TOP||e===et.FLOAT_BOTTOM){const r=this.position.getPositionList(),{pageNo:o,coordinate:{leftTop:l}}=r[i];t.imgFloatPosition={pageNo:o,x:l[0],y:l[1]}}else delete t.imgFloatPosition;this.draw.getPreviewer().clearResizer(),this.draw.render({isSetCursor:!0,curIndex:n})}getImage(t){return this.draw.getDataURL(t)}getOptions(){return this.options}getValue(t){return this.draw.getValue(t)}getHTML(){const t=this.options,e=this.draw.getHeaderElementList(),i=this.draw.getOriginalMainElementList(),n=this.draw.getFooterElementList();return{header:si(e,t).innerHTML,main:si(i,t).innerHTML,footer:si(n,t).innerHTML}}getText(){const t=this.draw.getHeaderElementList(),e=this.draw.getOriginalMainElementList(),i=this.draw.getFooterElementList();return{header:Wi(t),main:Wi(e),footer:Wi(i)}}getWordCount(){return this.workerManager.getWordCount()}getCursorPosition(){return this.position.getCursorPosition()}getRange(){return Ot(this.range.getRange())}getRangeText(){return this.range.toString()}getRangeContext(){const t=this.range.getRange(),{startIndex:e,endIndex:i}=t;if(!~e&&!~i)return null;const n=e===i,r=this.range.toString(),o=Tt(this.range.getSelectionElementList()||[]),l=this.draw.getElementList(),a=we(l[n?e:e+1],{extraPickAttrs:["id"]}),R=we(l[i],{extraPickAttrs:["id"]}),c=this.position.getPositionList(),u=c[e].pageNo,d=c[i].pageNo,g=[],L=this.draw.getOriginalHeight(),O=this.draw.getOriginalPageGap(),P=this.position.getSelectionPositionList();if(P){let m=null,Y=0,Q=null;for(let U=0;U<P.length;U++){const{rowNo:f,pageNo:b,coordinate:{leftTop:G,rightTop:x},lineHeight:y}=P[U];m===null||m!==f?(Q&&g.push(Q),Q={x:G[0],y:G[1]+b*(L+O),width:x[0]-G[0],height:y},m=f,Y=G[0]):Q.width=x[0]-Y,U===P.length-1&&Q&&g.push(Q)}}else{const Y=this.position.getPositionList()[i],{coordinate:{rightTop:Q},pageNo:U,lineHeight:f}=Y;g.push({x:Q[0],y:Q[1]+U*(L+O),width:0,height:f})}const M=this.draw.getZone().getZone(),{isTable:T,trIndex:X,tdIndex:S,index:F}=this.position.getPositionContext();let W=null;if(T){const Y=this.draw.getOriginalElementList()[F]||null;Y&&(W=Tt([Y])[0])}let I=null,Z=null,V=e-1;for(;V>0;){const m=l[V],Y=l[V-1];if(m.titleId&&m.titleId!==(Y==null?void 0:Y.titleId)){I=m.titleId,Z=c[V].pageNo;break}V--}return Ot({isCollapsed:n,startElement:a,endElement:R,startPageNo:u,endPageNo:d,rangeRects:g,zone:M,isTable:T,trIndex:X!=null?X:null,tdIndex:S!=null?S:null,tableElement:W,selectionText:r,selectionElementList:o,titleId:I,titleStartPageNo:Z})}getRangeRow(){const t=this.range.getRangeRowElementList();return t?Tt(t):null}getRangeParagraph(){const t=this.range.getRangeParagraphElementList();return t?Tt(t):null}getKeywordRangeList(t){return this.range.getKeywordRangeList(t)}getKeywordContext(t){var o,l,a,R;const e=this.getKeywordRangeList(t);if(!e.length)return null;const i=[],n=this.position.getOriginalMainPositionList(),r=this.draw.getOriginalMainElementList();for(let c=0;c<e.length;c++){const u=e[c],{startIndex:d,endIndex:g,tableId:L,startTrIndex:O,startTdIndex:P}=u;let M=n;if(u.tableId){const S=r.find(F=>F.id===L);S&&(M=((R=(a=(l=(o=S.trList)==null?void 0:o[O])==null?void 0:l.tdList)==null?void 0:a[P])==null?void 0:R.positionList)||[])}const T=Ot(M[d]),X=Ot(M[g]);i.push({range:u,startPosition:T,endPosition:X})}return i}pageMode(t){this.draw.setPageMode(t)}pageScaleRecovery(){const{scale:t}=this.options;t!==1&&this.draw.setPageScale(1)}pageScaleMinus(){const{scale:t}=this.options,e=t*10-1;e>=5&&this.draw.setPageScale(e/10)}pageScaleAdd(){const{scale:t}=this.options,e=t*10+1;e<=30&&this.draw.setPageScale(e/10)}paperSize(t,e){this.draw.setPaperSize(t,e)}paperDirection(t){this.draw.setPaperDirection(t)}getPaperMargin(){return this.options.margins}setPaperMargin(t){return this.draw.setPaperMargin(t)}insertElementList(t){if(!t.length||this.draw.isReadonly()||this.draw.isDisabled())return;const i=Ot(t),{startIndex:n}=this.range.getRange(),r=this.draw.getElementList();Ht(r,i,n,{isBreakWhenWrap:!0,editorOptions:this.options}),this.draw.insertElementList(i)}appendElementList(t,e){!t.length||this.draw.isReadonly()||this.draw.appendElementList(Ot(t),e)}updateElementById(t){const{id:e,conceptId:i}=t;if(!e&&!i)return;function n(o){for(let l=0;l<o.length;l++){const a=o[l];if(e&&a.id===e||i&&a.conceptId===i)return l}return-1}const r=[this.draw.getOriginalMainElementList,this.draw.getHeaderElementList,this.draw.getFooterElementList];for(const o of r){const l=o.call(this.draw),a=n(l);if(~a){l[a]=E(E({},l[a]),t.properties),Bt(Tt([l[a]]),{isHandleFirstElement:!1,editorOptions:this.options}),this.draw.render({isSetCursor:!1});break}}}getElementById(t){const{id:e,conceptId:i}=t,n=[];if(!e&&!i)return n;const r=l=>{let a=0;for(;a<l.length;){const R=l[a];a++,!(e&&R.controlId!==e||i&&R.conceptId!==i)&&n.push(R)}},o=[this.draw.getHeaderElementList(),this.draw.getOriginalMainElementList(),this.draw.getFooterElementList()];for(const l of o)r(l);return Tt(n,{extraPickAttrs:["id"]})}setValue(t,e){this.draw.setValue(t,e)}removeControl(){const{startIndex:t,endIndex:e}=this.range.getRange();if(t!==e||!this.draw.getElementList()[t].controlId)return;const o=this.draw.getControl().removeControl(t);o!==null&&(this.range.setRange(o,o),this.draw.render({curIndex:o}))}setLocale(t){this.i18n.setLocale(t)}getLocale(){return this.i18n.getLocale()}getCatalog(){return this.workerManager.getCatalog()}locationCatalog(t){var n;const e=this.draw.getMainElementList();let i=-1;for(let r=0;r<e.length;r++)if(e[r].titleId===t&&((n=e[r+1])==null?void 0:n.titleId)!==t){i=r;break}!~i||(this.range.setRange(i,i),this.draw.render({curIndex:i,isCompute:!1,isSubmitHistory:!1}))}wordTool(){const t=this.draw.getMainElementList();let e=!1;for(let i=0;i<t.length;i++)if(t[i].value===k)for(;i+1<t.length;){const r=t[i+1];if(r.value!==k&&r.value!==Ci)break;t.splice(i+1,1),e=!0}if(e)this.draw.render({isSetCursor:!1});else{const i=this.range.getIsCollapsed();this.draw.getCursor().drawCursor({isShow:i})}}setHTML(t){const{header:e,main:i,footer:n}=t,r=this.draw.getOriginalInnerWidth(),o=l=>l!==void 0?oi(l,{innerWidth:r}):void 0;this.setValue({header:o(e),main:o(i),footer:o(n)})}setGroup(){return this.draw.isReadonly()?null:this.draw.getGroup().setGroup()}deleteGroup(t){this.draw.isReadonly()||this.draw.getGroup().deleteGroup(t)}getGroupIds(){return this.draw.getWorkerManager().getGroupIds()}locationGroup(t){const e=this.draw.getOriginalMainElementList(),i=this.draw.getGroup().getContextByGroupId(e,t);if(!i)return;const{isTable:n,index:r,trIndex:o,tdIndex:l,tdId:a,trId:R,tableId:c,endIndex:u}=i;this.position.setPositionContext({isTable:n,index:r,trIndex:o,tdIndex:l,tdId:a,trId:R,tableId:c}),this.range.setRange(u,u),this.draw.render({curIndex:u,isCompute:!1,isSubmitHistory:!1})}setZone(t){this.draw.getZone().setZone(t)}getControlValue(t){return this.draw.getControl().getValueById(t)}setControlValue(t){this.draw.getControl().setValueById(t)}setControlExtension(t){this.draw.getControl().setExtensionById(t)}setControlProperties(t){this.draw.getControl().setPropertiesById(t)}setControlHighlight(t){this.draw.getControl().setHighlightList(t),this.draw.render({isSubmitHistory:!1})}updateOptions(t){const e=en(t);Object.entries(e).forEach(([i,n])=>{Reflect.set(this.options,i,n)}),this.forceUpdate()}getControlList(){return this.draw.getControl().getList()}locationControl(t,e){const i=(e==null?void 0:e.position)===ii.AFTER;function n(o,l){let a=0;for(;a<o.length;){const R=o[a];if(a++,R.type===N.TABLE){const u=R.trList;for(let d=0;d<u.length;d++){const g=u[d];for(let L=0;L<g.tdList.length;L++){const O=g.tdList[L],P=n(O.value,l);if(P)return q(E({},P),{positionContext:{isTable:!0,index:a-1,trIndex:d,tdIndex:L,tdId:R.tdId,trId:R.trId,tableId:R.tableId}})}}}if((R==null?void 0:R.controlId)!==t)continue;let c=a-1;if(!(i&&(c-=1,R.controlComponent!==D.PLACEHOLDER&&R.controlComponent!==D.POSTFIX)))return{zone:l,range:{startIndex:c,endIndex:c},positionContext:{isTable:!1}}}return null}const r=[{zone:lt.HEADER,elementList:this.draw.getHeaderElementList()},{zone:lt.MAIN,elementList:this.draw.getOriginalMainElementList()},{zone:lt.FOOTER,elementList:this.draw.getFooterElementList()}];for(const o of r){const l=n(o.elementList,o.zone);if(l){this.setZone(l.zone),this.position.setPositionContext(l.positionContext),this.range.replaceRange(l.range),this.draw.render({curIndex:l.range.startIndex,isCompute:!1,isSubmitHistory:!1});break}}}insertControl(t){if(this.draw.isReadonly()||this.draw.isDisabled())return;const i=Ot(t),{startIndex:n}=this.range.getRange(),r=this.draw.getElementList(),o=He(r,n);if(!o)return;const l=[...Si,...Ze,...Xi];ni(l,o,i),this.draw.insertElementList([i])}getContainer(){return this.draw.getContainer()}getTitleValue(t){const{conceptId:e}=t,i=[],n=(o,l)=>{var R;let a=0;for(;a<o.length;){const c=o[a];if(a++,c.type===N.TABLE){const g=c.trList;for(let L=0;L<g.length;L++){const O=g[L];for(let P=0;P<O.tdList.length;P++){const M=O.tdList[P];n(M.value,l)}}}if(((R=c==null?void 0:c.title)==null?void 0:R.conceptId)!==e)continue;const u=[];let d=a;for(;d<o.length;){const g=o[d];if(d++,c.titleId!==g.titleId){if(g.level&&$i[g.level]<=$i[c.level])break;u.push(g)}}i.push(q(E({},c.title),{value:Wi(u),elementList:Tt(u),zone:l})),a=d}},r=[{zone:lt.HEADER,elementList:this.draw.getHeaderElementList()},{zone:lt.MAIN,elementList:this.draw.getOriginalMainElementList()},{zone:lt.FOOTER,elementList:this.draw.getFooterElementList()}];for(const{zone:o,elementList:l}of r)n(l,o);return i}getPositionContextByEvent(t){var M,T,X;const e=(M=t.target)==null?void 0:M.dataset.index;if(!e)return null;const i=Number(e),n=this.position.getPositionByXY({x:t.offsetX,y:t.offsetY,pageNo:i}),{isDirectHit:r,isTable:o,index:l,trIndex:a,tdIndex:R,tdValueIndex:c,zone:u}=n;if(!r||u&&u!==this.zone.getZone())return null;let d=null;const g=this.draw.getOriginalElementList();let L=null;const O=this.position.getOriginalPositionList();if(o){const S=(T=g[l].trList)==null?void 0:T[a].tdList[R];d=(S==null?void 0:S.value[c])||null,L=((X=S==null?void 0:S.positionList)==null?void 0:X[c])||null}else d=g[l]||null,L=O[l]||null;let P=null;if(L){const{pageNo:S,coordinate:{leftTop:F,rightTop:W},lineHeight:I}=L,Z=this.draw.getOriginalHeight(),V=this.draw.getOriginalPageGap();P={x:F[0],y:F[1]+S*(Z+V),width:W[0]-F[0],height:I}}return{pageNo:i,element:d,rangeRect:P}}insertTitle(t){var a;if(this.draw.isReadonly()||this.draw.isDisabled())return;const i=Ot(t),{startIndex:n}=this.range.getRange(),r=this.draw.getElementList(),o=He(r,n);if(!o)return;const l=[...Si,...Ze,...Xi];(a=i.valueList)==null||a.forEach(R=>{ni(l,o,R)}),this.draw.insertElementList([i])}focus(t){const{position:e=ii.AFTER}=t||{},i=e===ii.BEFORE?0:this.draw.getOriginalMainElementList().length-1;this.range.setRange(i,i),this.draw.render({curIndex:i,isCompute:!1,isSubmitHistory:!1});const n=this.draw.getPosition().getPositionList();this.draw.getCursor().moveCursorToVisible({cursorPosition:n[i],direction:Kt.DOWN})}}class ga{constructor(){h(this,"rangeStyleChange");h(this,"visiblePageNoListChange");h(this,"intersectionPageNoChange");h(this,"pageSizeChange");h(this,"pageScaleChange");h(this,"saved");h(this,"contentChange");h(this,"controlChange");h(this,"pageModeChange");h(this,"zoneChange");this.rangeStyleChange=null,this.visiblePageNoListChange=null,this.intersectionPageNoChange=null,this.pageSizeChange=null,this.pageScaleChange=null,this.saved=null,this.contentChange=null,this.controlChange=null,this.pageModeChange=null,this.zoneChange=null}}class La{constructor(t){h(this,"contextMenuList");h(this,"getContextMenuList");h(this,"shortcutList");h(this,"langMap");const{contextMenu:e,shortcut:i,i18n:n}=t;this.contextMenuList=e.registerContextMenuList.bind(e),this.getContextMenuList=e.getContextMenuList.bind(e),this.shortcutList=i.registerShortcutList.bind(i),this.langMap=n.registerLangMap.bind(n)}}const Ws={SELECTED_TEXT:"%s"},ai={GLOBAL:{CUT:"globalCut",COPY:"globalCopy",PASTE:"globalPaste",SELECT_ALL:"globalSelectAll",PRINT:"globalPrint"},CONTROL:{DELETE:"controlDelete"},HYPERLINK:{DELETE:"hyperlinkDelete",CANCEL:"hyperlinkCancel",EDIT:"hyperlinkEdit"},IMAGE:{CHANGE:"imageChange",SAVE_AS:"imageSaveAs",TEXT_WRAP:"imageTextWrap",TEXT_WRAP_EMBED:"imageTextWrapEmbed",TEXT_WRAP_UP_DOWN:"imageTextWrapUpDown",TEXT_WRAP_SURROUND:"imageTextWrapSurround",TEXT_WRAP_FLOAT_TOP:"imageTextWrapFloatTop",TEXT_WRAP_FLOAT_BOTTOM:"imageTextWrapFloatBottom"},TABLE:{BORDER:"border",BORDER_ALL:"tableBorderAll",BORDER_EMPTY:"tableBorderEmpty",BORDER_DASH:"tableBorderDash",BORDER_EXTERNAL:"tableBorderExternal",BORDER_INTERNAL:"tableBorderInternal",BORDER_TD:"tableBorderTd",BORDER_TD_TOP:"tableBorderTdTop",BORDER_TD_RIGHT:"tableBorderTdRight",BORDER_TD_BOTTOM:"tableBorderTdBottom",BORDER_TD_LEFT:"tableBorderTdLeft",BORDER_TD_FORWARD:"tableBorderTdForward",BORDER_TD_BACK:"tableBorderTdBack",VERTICAL_ALIGN:"tableVerticalAlign",VERTICAL_ALIGN_TOP:"tableVerticalAlignTop",VERTICAL_ALIGN_MIDDLE:"tableVerticalAlignMiddle",VERTICAL_ALIGN_BOTTOM:"tableVerticalAlignBottom",INSERT_ROW_COL:"tableInsertRowCol",INSERT_TOP_ROW:"tableInsertTopRow",INSERT_BOTTOM_ROW:"tableInsertBottomRow",INSERT_LEFT_COL:"tableInsertLeftCol",INSERT_RIGHT_COL:"tableInsertRightCol",DELETE_ROW_COL:"tableDeleteRowCol",DELETE_ROW:"tableDeleteRow",DELETE_COL:"tableDeleteCol",DELETE_TABLE:"tableDeleteTable",MERGE_CELL:"tableMergeCell",CANCEL_MERGE_CELL:"tableCancelMergeCell"}},{CONTROL:{DELETE:Oa}}=ai,Ma=[{key:Oa,i18nPath:"contextmenu.control.delete",when:s=>{var t;return!s.isReadonly&&!s.editorHasSelection&&!!((t=s.startElement)==null?void 0:t.controlId)&&s.options.mode!==Rt.FORM},callback:s=>{s.executeRemoveControl()}}],{GLOBAL:{CUT:Pa,COPY:Ta,PASTE:Sa,SELECT_ALL:Xa,PRINT:Na}}=ai,Fa=[{key:Pa,i18nPath:"contextmenu.global.cut",shortCut:`${Qe?"\u2318":"Ctrl"} + X`,when:s=>!s.isReadonly,callback:s=>{s.executeCut()}},{key:Ta,i18nPath:"contextmenu.global.copy",shortCut:`${Qe?"\u2318":"Ctrl"} + C`,when:s=>s.editorHasSelection||s.isCrossRowCol,callback:s=>{s.executeCopy()}},{key:Sa,i18nPath:"contextmenu.global.paste",shortCut:`${Qe?"\u2318":"Ctrl"} + V`,when:s=>!s.isReadonly&&s.editorTextFocus,callback:s=>{s.executePaste()}},{key:Xa,i18nPath:"contextmenu.global.selectAll",shortCut:`${Qe?"\u2318":"Ctrl"} + A`,when:s=>s.editorTextFocus,callback:s=>{s.executeSelectAll()}},{isDivider:!0},{key:Na,i18nPath:"contextmenu.global.print",icon:"print",when:()=>!0,callback:s=>{s.executePrint()}}],{HYPERLINK:{DELETE:fa,CANCEL:pa,EDIT:ma}}=ai,Ia=[{key:fa,i18nPath:"contextmenu.hyperlink.delete",when:s=>{var t;return!s.isReadonly&&((t=s.startElement)==null?void 0:t.type)===N.HYPERLINK},callback:s=>{s.executeDeleteHyperlink()}},{key:pa,i18nPath:"contextmenu.hyperlink.cancel",when:s=>{var t;return!s.isReadonly&&((t=s.startElement)==null?void 0:t.type)===N.HYPERLINK},callback:s=>{s.executeCancelHyperlink()}},{key:ma,i18nPath:"contextmenu.hyperlink.edit",when:s=>{var t;return!s.isReadonly&&((t=s.startElement)==null?void 0:t.type)===N.HYPERLINK},callback:(s,t)=>{var i;const e=window.prompt("\u7F16\u8F91\u94FE\u63A5",(i=t.startElement)==null?void 0:i.url);e&&s.executeEditHyperlink(e)}}],{IMAGE:{CHANGE:Wa,SAVE_AS:Va,TEXT_WRAP:Ya,TEXT_WRAP_EMBED:Ua,TEXT_WRAP_UP_DOWN:Za,TEXT_WRAP_SURROUND:Qa,TEXT_WRAP_FLOAT_TOP:Da,TEXT_WRAP_FLOAT_BOTTOM:Ka}}=ai,Ea=[{key:Wa,i18nPath:"contextmenu.image.change",icon:"image-change",when:s=>{var t;return!s.isReadonly&&!s.editorHasSelection&&((t=s.startElement)==null?void 0:t.type)===N.IMAGE},callback:s=>{const t=document.createElement("input");t.type="file",t.accept=".png, .jpg, .jpeg",t.onchange=()=>{const e=t.files[0],i=new FileReader;i.readAsDataURL(e),i.onload=()=>{const n=i.result;s.executeReplaceImageElement(n)}},t.click()}},{key:Va,i18nPath:"contextmenu.image.saveAs",icon:"image",when:s=>{var t;return!s.editorHasSelection&&((t=s.startElement)==null?void 0:t.type)===N.IMAGE},callback:s=>{s.executeSaveAsImageElement()}},{key:Ya,i18nPath:"contextmenu.image.textWrap",when:s=>{var t;return!s.isReadonly&&!s.editorHasSelection&&((t=s.startElement)==null?void 0:t.type)===N.IMAGE},childMenus:[{key:Ua,i18nPath:"contextmenu.image.textWrapType.embed",when:()=>!0,callback:(s,t)=>{s.executeChangeImageDisplay(t.startElement,et.BLOCK)}},{key:Za,i18nPath:"contextmenu.image.textWrapType.upDown",when:()=>!0,callback:(s,t)=>{s.executeChangeImageDisplay(t.startElement,et.INLINE)}},{key:Qa,i18nPath:"contextmenu.image.textWrapType.surround",when:()=>!0,callback:(s,t)=>{s.executeChangeImageDisplay(t.startElement,et.SURROUND)}},{key:Da,i18nPath:"contextmenu.image.textWrapType.floatTop",when:()=>!0,callback:(s,t)=>{s.executeChangeImageDisplay(t.startElement,et.FLOAT_TOP)}},{key:Ka,i18nPath:"contextmenu.image.textWrapType.floatBottom",when:()=>!0,callback:(s,t)=>{s.executeChangeImageDisplay(t.startElement,et.FLOAT_BOTTOM)}}]}],{TABLE:{BORDER:ba,BORDER_ALL:xa,BORDER_EMPTY:Ca,BORDER_DASH:wa,BORDER_EXTERNAL:Ha,BORDER_INTERNAL:ya,BORDER_TD:Ga,BORDER_TD_TOP:va,BORDER_TD_LEFT:Ja,BORDER_TD_BOTTOM:Aa,BORDER_TD_RIGHT:Ba,BORDER_TD_BACK:ka,BORDER_TD_FORWARD:_a,VERTICAL_ALIGN:za,VERTICAL_ALIGN_TOP:$a,VERTICAL_ALIGN_MIDDLE:qa,VERTICAL_ALIGN_BOTTOM:ja,INSERT_ROW_COL:tR,INSERT_TOP_ROW:eR,INSERT_BOTTOM_ROW:iR,INSERT_LEFT_COL:nR,INSERT_RIGHT_COL:sR,DELETE_ROW_COL:oR,DELETE_ROW:rR,DELETE_COL:lR,DELETE_TABLE:aR,MERGE_CELL:RR,CANCEL_MERGE_CELL:cR}}=ai,uR=[{isDivider:!0},{key:ba,i18nPath:"contextmenu.table.border",icon:"border-all",when:s=>!s.isReadonly&&s.isInTable&&s.options.mode!==Rt.FORM,childMenus:[{key:xa,i18nPath:"contextmenu.table.borderAll",icon:"border-all",when:()=>!0,callback:s=>{s.executeTableBorderType(vt.ALL)}},{key:Ca,i18nPath:"contextmenu.table.borderEmpty",icon:"border-empty",when:()=>!0,callback:s=>{s.executeTableBorderType(vt.EMPTY)}},{key:wa,i18nPath:"contextmenu.table.borderDash",icon:"border-dash",when:()=>!0,callback:s=>{s.executeTableBorderType(vt.DASH)}},{key:Ha,i18nPath:"contextmenu.table.borderExternal",icon:"border-external",when:()=>!0,callback:s=>{s.executeTableBorderType(vt.EXTERNAL)}},{key:ya,i18nPath:"contextmenu.table.borderInternal",icon:"border-internal",when:()=>!0,callback:s=>{s.executeTableBorderType(vt.INTERNAL)}},{key:Ga,i18nPath:"contextmenu.table.borderTd",icon:"border-td",when:()=>!0,childMenus:[{key:va,i18nPath:"contextmenu.table.borderTdTop",icon:"border-td-top",when:()=>!0,callback:s=>{s.executeTableTdBorderType(kt.TOP)}},{key:Ba,i18nPath:"contextmenu.table.borderTdRight",icon:"border-td-right",when:()=>!0,callback:s=>{s.executeTableTdBorderType(kt.RIGHT)}},{key:Aa,i18nPath:"contextmenu.table.borderTdBottom",icon:"border-td-bottom",when:()=>!0,callback:s=>{s.executeTableTdBorderType(kt.BOTTOM)}},{key:Ja,i18nPath:"contextmenu.table.borderTdLeft",icon:"border-td-left",when:()=>!0,callback:s=>{s.executeTableTdBorderType(kt.LEFT)}},{key:_a,i18nPath:"contextmenu.table.borderTdForward",icon:"border-td-forward",when:()=>!0,callback:s=>{s.executeTableTdSlashType(Je.FORWARD)}},{key:ka,i18nPath:"contextmenu.table.borderTdBack",icon:"border-td-back",when:()=>!0,callback:s=>{s.executeTableTdSlashType(Je.BACK)}}]}]},{key:za,i18nPath:"contextmenu.table.verticalAlign",icon:"vertical-align",when:s=>!s.isReadonly&&s.isInTable&&s.options.mode!==Rt.FORM,childMenus:[{key:$a,i18nPath:"contextmenu.table.verticalAlignTop",icon:"vertical-align-top",when:()=>!0,callback:s=>{s.executeTableTdVerticalAlign(It.TOP)}},{key:qa,i18nPath:"contextmenu.table.verticalAlignMiddle",icon:"vertical-align-middle",when:()=>!0,callback:s=>{s.executeTableTdVerticalAlign(It.MIDDLE)}},{key:ja,i18nPath:"contextmenu.table.verticalAlignBottom",icon:"vertical-align-bottom",when:()=>!0,callback:s=>{s.executeTableTdVerticalAlign(It.BOTTOM)}}]},{key:tR,i18nPath:"contextmenu.table.insertRowCol",icon:"insert-row-col",when:s=>!s.isReadonly&&s.isInTable&&s.options.mode!==Rt.FORM,childMenus:[{key:eR,i18nPath:"contextmenu.table.insertTopRow",icon:"insert-top-row",when:()=>!0,callback:s=>{s.executeInsertTableTopRow()}},{key:iR,i18nPath:"contextmenu.table.insertBottomRow",icon:"insert-bottom-row",when:()=>!0,callback:s=>{s.executeInsertTableBottomRow()}},{key:nR,i18nPath:"contextmenu.table.insertLeftCol",icon:"insert-left-col",when:()=>!0,callback:s=>{s.executeInsertTableLeftCol()}},{key:sR,i18nPath:"contextmenu.table.insertRightCol",icon:"insert-right-col",when:()=>!0,callback:s=>{s.executeInsertTableRightCol()}}]},{key:oR,i18nPath:"contextmenu.table.deleteRowCol",icon:"delete-row-col",when:s=>!s.isReadonly&&s.isInTable&&s.options.mode!==Rt.FORM,childMenus:[{key:rR,i18nPath:"contextmenu.table.deleteRow",icon:"delete-row",when:()=>!0,callback:s=>{s.executeDeleteTableRow()}},{key:lR,i18nPath:"contextmenu.table.deleteCol",icon:"delete-col",when:()=>!0,callback:s=>{s.executeDeleteTableCol()}},{key:aR,i18nPath:"contextmenu.table.deleteTable",icon:"delete-table",when:()=>!0,callback:s=>{s.executeDeleteTable()}}]},{key:RR,i18nPath:"contextmenu.table.mergeCell",icon:"merge-cell",when:s=>!s.isReadonly&&s.isCrossRowCol&&s.options.mode!==Rt.FORM,callback:s=>{s.executeMergeTableCell()}},{key:cR,i18nPath:"contextmenu.table.mergeCancelCell",icon:"merge-cancel-cell",when:s=>!s.isReadonly&&s.isInTable&&s.options.mode!==Rt.FORM,callback:s=>{s.executeCancelMergeTableCell()}}];class dR{constructor(t,e){h(this,"options");h(this,"draw");h(this,"command");h(this,"range");h(this,"position");h(this,"i18n");h(this,"container");h(this,"contextMenuList");h(this,"contextMenuContainerList");h(this,"contextMenuRelationShip");h(this,"context");h(this,"_proxyContextMenuEvent",t=>{this.context=this._getContext();const e=this._filterMenuList(this.contextMenuList);e.some(n=>!n.isDivider)&&(this.dispose(),this._render({contextMenuList:e,left:t.x,top:t.y})),t.preventDefault()});h(this,"_handleSideEffect",t=>{if(this.contextMenuContainerList.length){const e=(t==null?void 0:t.composedPath()[0])||t.target;Mi(e,n=>!!n&&n.nodeType===1&&n.getAttribute(he)===le.CONTEXTMENU,!0)||this.dispose()}});this.options=t.getOptions(),this.draw=t,this.command=e,this.range=t.getRange(),this.position=t.getPosition(),this.i18n=t.getI18n(),this.container=t.getContainer(),this.context=null,this.contextMenuList=[...Fa,...uR,...Ea,...Ma,...Ia],this.contextMenuContainerList=[],this.contextMenuRelationShip=new Map,this._addEvent()}getContextMenuList(){return this.contextMenuList}_addEvent(){this.container.addEventListener("contextmenu",this._proxyContextMenuEvent),document.addEventListener("mousedown",this._handleSideEffect)}removeEvent(){this.container.removeEventListener("contextmenu",this._proxyContextMenuEvent),document.removeEventListener("mousedown",this._handleSideEffect)}_filterMenuList(t){var n;const{contextMenuDisableKeys:e}=this.options,i=[];for(let r=0;r<t.length;r++){const o=t[r];o.disable||o.key&&e.includes(o.key)||(o.isDivider||((n=o.when)==null?void 0:n.call(o,this.context)))&&i.push(o)}return i}_getContext(){const t=this.draw.isReadonly(),{isCrossRowCol:e,startIndex:i,endIndex:n}=this.range.getRange(),r=!!(~i||~n),o=r&&i!==n,{isTable:l,trIndex:a,tdIndex:R,index:c}=this.position.getPositionContext();let u=null;if(l){const T=this.draw.getOriginalElementList()[c]||null;T&&(u=Tt([T],{extraPickAttrs:["id"]})[0])}const d=l&&!!e,g=this.draw.getElementList(),L=g[i]||null,O=g[n]||null,P=this.draw.getZone().getZone();return{startElement:L,endElement:O,isReadonly:t,editorHasSelection:o,editorTextFocus:r,isCrossRowCol:d,zone:P,isInTable:l,trIndex:a!=null?a:null,tdIndex:R!=null?R:null,tableElement:u,options:this.options}}_createContextMenuContainer(){const t=document.createElement("div");return t.classList.add(`${_}-contextmenu-container`),t.setAttribute(he,le.CONTEXTMENU),this.container.append(t),t}_render(t){var P;const{contextMenuList:e,left:i,top:n,parentMenuContainer:r}=t,o=this._createContextMenuContainer(),l=document.createElement("div");l.classList.add(`${_}-contextmenu-content`);let a=null;r&&this.contextMenuRelationShip.set(r,o);for(let M=0;M<e.length;M++){const T=e[M];if(T.isDivider){if(M!==0&&M!==e.length-1&&!((P=e[M-1])==null?void 0:P.isDivider)){const X=document.createElement("div");X.classList.add(`${_}-contextmenu-divider`),l.append(X)}}else{const X=document.createElement("div");if(X.classList.add(`${_}-contextmenu-item`),T.childMenus){const I=this._filterMenuList(T.childMenus);I.some(V=>!V.isDivider)&&(X.classList.add(`${_}-contextmenu-sub-item`),X.onmouseenter=()=>{this._setHoverStatus(X,!0),this._removeSubMenu(o);const V=X.getBoundingClientRect(),m=V.left+V.width,Y=V.top;a=this._render({contextMenuList:I,left:m,top:Y,parentMenuContainer:o})},X.onmouseleave=V=>{(!a||!a.contains(V.relatedTarget))&&this._setHoverStatus(X,!1)})}else X.onmouseenter=()=>{this._setHoverStatus(X,!0),this._removeSubMenu(o)},X.onmouseleave=()=>{this._setHoverStatus(X,!1)},X.onclick=()=>{T.callback&&this.context&&T.callback(this.command,this.context),this.dispose()};const S=document.createElement("i");X.append(S),T.icon&&S.classList.add(`${_}-contextmenu-${T.icon}`);const F=document.createElement("span"),W=T.i18nPath?this._formatName(this.i18n.t(T.i18nPath)):this._formatName(T.name||"");if(F.append(document.createTextNode(W)),X.append(F),T.shortCut){const I=document.createElement("span");I.classList.add(`${_}-shortcut`),I.append(document.createTextNode(T.shortCut)),X.append(I)}l.append(X)}}o.append(l),o.style.display="block";const R=window.innerWidth,c=o.getBoundingClientRect(),u=c.width,d=i+u>R?i-u:i;o.style.left=`${d}px`;const g=window.innerHeight,L=c.height,O=n+L>g?n-L:n;return o.style.top=`${O}px`,this.contextMenuContainerList.push(o),o}_removeSubMenu(t){const e=this.contextMenuRelationShip.get(t);e&&(this._removeSubMenu(e),e.remove(),this.contextMenuRelationShip.delete(t))}_setHoverStatus(t,e){var i;e?((i=t.parentNode)==null||i.querySelectorAll(`${_}-contextmenu-item`).forEach(n=>n.classList.remove("hover")),t.classList.add("hover")):t.classList.remove("hover")}_formatName(t){const e=Object.values(Ws),i=new RegExp(`${e.join("|")}`);let n=t;if(i.test(n)){const r=new RegExp(Ws.SELECTED_TEXT,"g");if(r.test(n)){const o=this.range.toString();n=n.replace(r,o)}}return n}registerContextMenuList(t){this.contextMenuList.push(...t)}dispose(){this.contextMenuContainerList.forEach(t=>t.remove()),this.contextMenuContainerList=[],this.contextMenuRelationShip.clear()}}const hR=[{key:z.X,ctrl:!0,shift:!0,callback:s=>{s.executeStrikeout()}},{key:z.LEFT_BRACKET,mod:!0,callback:s=>{s.executeSizeAdd()}},{key:z.RIGHT_BRACKET,mod:!0,callback:s=>{s.executeSizeMinus()}},{key:z.B,mod:!0,callback:s=>{s.executeBold()}},{key:z.I,mod:!0,callback:s=>{s.executeItalic()}},{key:z.U,mod:!0,callback:s=>{s.executeUnderline()}},{key:Qe?z.COMMA:z.RIGHT_ANGLE_BRACKET,mod:!0,shift:!0,callback:s=>{s.executeSuperscript()}},{key:Qe?z.PERIOD:z.LEFT_ANGLE_BRACKET,mod:!0,shift:!0,callback:s=>{s.executeSubscript()}},{key:z.L,mod:!0,callback:s=>{s.executeRowFlex(at.LEFT)}},{key:z.E,mod:!0,callback:s=>{s.executeRowFlex(at.CENTER)}},{key:z.R,mod:!0,callback:s=>{s.executeRowFlex(at.RIGHT)}},{key:z.J,mod:!0,callback:s=>{s.executeRowFlex(at.ALIGNMENT)}},{key:z.J,mod:!0,shift:!0,callback:s=>{s.executeRowFlex(at.JUSTIFY)}}],gR=[{key:z.ZERO,alt:!0,ctrl:!0,callback:s=>{s.executeTitle(null)}},{key:z.ONE,alt:!0,ctrl:!0,callback:s=>{s.executeTitle(ht.FIRST)}},{key:z.TWO,alt:!0,ctrl:!0,callback:s=>{s.executeTitle(ht.SECOND)}},{key:z.THREE,alt:!0,ctrl:!0,callback:s=>{s.executeTitle(ht.THIRD)}},{key:z.FOUR,alt:!0,ctrl:!0,callback:s=>{s.executeTitle(ht.FOURTH)}},{key:z.FIVE,alt:!0,ctrl:!0,callback:s=>{s.executeTitle(ht.FIFTH)}},{key:z.SIX,alt:!0,ctrl:!0,callback:s=>{s.executeTitle(ht.SIXTH)}}],LR=[{key:z.I,shift:!0,mod:!0,callback:s=>{s.executeList(oe.UL,Gt.DISC)}},{key:z.U,shift:!0,mod:!0,callback:s=>{s.executeList(oe.OL)}}];class OR{constructor(t,e){h(this,"command");h(this,"globalShortcutList");h(this,"agentShortcutList");h(this,"_globalKeydown",t=>{!this.globalShortcutList.length||this._execute(t,this.globalShortcutList)});this.command=e,this.globalShortcutList=[],this.agentShortcutList=[],this._addShortcutList([...hR,...gR,...LR]),this._addEvent(),t.getCursor().getAgentDom().addEventListener("keydown",this._agentKeydown.bind(this))}_addEvent(){document.addEventListener("keydown",this._globalKeydown)}removeEvent(){document.removeEventListener("keydown",this._globalKeydown)}_addShortcutList(t){for(let e=t.length-1;e>=0;e--){const i=t[e];i.isGlobal?this.globalShortcutList.unshift(i):this.agentShortcutList.unshift(i)}}registerShortcutList(t){this._addShortcutList(t)}_agentKeydown(t){!this.agentShortcutList.length||this._execute(t,this.agentShortcutList)}_execute(t,e){var i;for(let n=0;n<e.length;n++){const r=e[n];if((r.mod?Me(t)===!!r.mod:t.ctrlKey===!!r.ctrl&&t.metaKey===!!r.meta)&&t.shiftKey===!!r.shift&&t.altKey===!!r.alt&&t.key.toLowerCase()===r.key.toLowerCase()){r.disable||((i=r==null?void 0:r.callback)==null||i.call(r,this.command),t.preventDefault());break}}}}class MR{constructor(t){h(this,"editor");this.editor=t}use(t,e){t(this.editor,e)}}class PR{constructor(){h(this,"eventHub");this.eventHub=new Map}on(t,e){if(!t||typeof e!="function")return;const i=this.eventHub.get(t)||new Set;i.add(e),this.eventHub.set(t,i)}emit(t,e){if(!t)return;const i=this.eventHub.get(t);if(!!i){if(i.size===1)return[...i][0](e);i.forEach(n=>n(e))}}off(t,e){if(!t||typeof e!="function")return;const i=this.eventHub.get(t);!i||i.delete(e)}isSubscribe(t){const e=this.eventHub.get(t);return!!e&&e.size>0}}class TR{constructor(){h(this,"paste");h(this,"copy");h(this,"drop")}}class SR{constructor(t,e,i={}){h(this,"command");h(this,"listener");h(this,"eventBus");h(this,"override");h(this,"register");h(this,"destroy");h(this,"use");const n=en(i);e=Ot(e);let r=[],o=[],l=[];Array.isArray(e)?o=e:(r=e.header||[],o=e.main,l=e.footer||[]),[r,o,l].forEach(g=>{Bt(g,{editorOptions:n,isForceCompensation:!0})}),this.listener=new ga,this.eventBus=new PR,this.override=new TR;const R=new Ra(t,n,{header:r,main:o,footer:l},this.listener,this.eventBus,this.override);this.command=new ca(new ha(R));const c=new dR(R,this.command),u=new OR(R,this.command);this.register=new La({contextMenu:c,shortcut:u,i18n:R.getI18n()}),this.destroy=()=>{R.destroy(),u.removeEvent(),c.removeEvent()};const d=new MR(this);this.use=d.use.bind(d)}}class _t{constructor(t){h(this,"options");h(this,"mask");h(this,"container");h(this,"inputList");this.options=t,this.mask=null,this.container=null,this.inputList=[],this._render()}_render(){var P;const{title:t,data:e,onClose:i,onCancel:n,onConfirm:r}=this.options,o=document.createElement("div");o.classList.add("dialog-mask"),o.setAttribute(he,le.COMPONENT),document.body.append(o);const l=document.createElement("div");l.classList.add("dialog-container"),l.setAttribute(he,le.COMPONENT);const a=document.createElement("div");a.classList.add("dialog"),l.append(a);const R=document.createElement("div");R.classList.add("dialog-title");const c=document.createElement("span");c.append(document.createTextNode(t));const u=document.createElement("i");u.onclick=()=>{i&&i(),this._dispose()},R.append(c),R.append(u),a.append(R);const d=document.createElement("div");d.classList.add("dialog-option");for(let M=0;M<e.length;M++){const T=e[M],X=document.createElement("div");if(X.classList.add("dialog-option__item"),T.label){const F=document.createElement("span");F.append(document.createTextNode(T.label)),X.append(F),T.required&&F.classList.add("dialog-option__item--require")}let S;T.type==="select"?(S=document.createElement("select"),(P=T.options)==null||P.forEach(F=>{const W=document.createElement("option");W.value=F.value,W.label=F.label,S.append(W)})):T.type==="textarea"?S=document.createElement("textarea"):(S=document.createElement("input"),S.type=T.type),T.width&&(S.style.width=`${T.width}px`),T.height&&(S.style.height=`${T.height}px`),S.name=T.name,S.value=T.value||"",S instanceof HTMLSelectElement||(S.placeholder=T.placeholder||""),X.append(S),d.append(X),this.inputList.push(S)}a.append(d);const g=document.createElement("div");g.classList.add("dialog-menu");const L=document.createElement("button");L.classList.add("dialog-menu__cancel"),L.append(document.createTextNode("\u53D6\u6D88")),L.type="button",L.onclick=()=>{n&&n(),this._dispose()},g.append(L);const O=document.createElement("button");O.append(document.createTextNode("\u786E\u5B9A")),O.type="submit",O.onclick=()=>{if(r){const M=this.inputList.map(T=>({name:T.name,value:T.value}));r(M)}this._dispose()},g.append(O),a.append(g),document.body.append(l),this.container=l,this.mask=o}_dispose(){var t,e;(t=this.mask)==null||t.remove(),(e=this.container)==null||e.remove()}}function XR(s){switch(s){case"comment":case"prolog":case"doctype":case"cdata":return{color:"#008000",italic:!0};case"namespace":return{opacity:.7};case"string":return{color:"#A31515"};case"punctuation":case"operator":return{color:"#393A34"};case"url":case"symbol":case"number":case"boolean":case"variable":case"constant":case"inserted":return{color:"#36acaa"};case"atrule":case"keyword":case"attr-value":return{color:"#0000ff"};case"function":return{color:"#b9a40a"};case"deleted":case"tag":return{color:"#9a050f"};case"selector":return{color:"#00009f"};case"important":return{color:"#e90",bold:!0};case"italic":return{italic:!0};case"class-name":case"property":return{color:"#2B91AF"};case"attr-name":case"regex":case"entity":return{color:"#ff0000"};default:return null}}function NR(s){const t=[];function e(i){for(let n=0;n<i.length;n++){const r=i[n];if(typeof r=="string")t.push({content:r});else if(Array.isArray(r.content))e(r.content);else{const{type:o,content:l}=r;typeof l=="string"&&t.push(E({type:o,content:l},XR(o)))}}}return e(s),t}class FR{constructor(t){h(this,"MAX_RECORD_COUNT",1e3);h(this,"DEFAULT_WIDTH",390);h(this,"DEFAULT_HEIGHT",180);h(this,"undoStack",[]);h(this,"x",0);h(this,"y",0);h(this,"isDrawing",!1);h(this,"isDrawn",!1);h(this,"linePoints",[]);h(this,"canvasWidth");h(this,"canvasHeight");h(this,"options");h(this,"mask");h(this,"container");h(this,"trashContainer");h(this,"undoContainer");h(this,"canvas");h(this,"ctx");h(this,"preTimeStamp");h(this,"dpr");this.options=t,this.preTimeStamp=0,this.dpr=window.devicePixelRatio,this.canvasWidth=(t.width||this.DEFAULT_WIDTH)*this.dpr,this.canvasHeight=(t.height||this.DEFAULT_HEIGHT)*this.dpr;const{mask:e,container:i,trashContainer:n,undoContainer:r,canvas:o}=this._render();this.mask=e,this.container=i,this.trashContainer=n,this.undoContainer=r,this.canvas=o,this.ctx=o.getContext("2d"),this.ctx.scale(this.dpr,this.dpr),this.ctx.lineCap="round",this._bindEvent(),this._clearUndoFn(),document.documentElement.classList.add("overflow-hidden"),document.body.classList.add("overflow-hidden"),this.container.classList.add("overflow-hidden")}_render(){const{onClose:t,onCancel:e,onConfirm:i}=this.options,n=document.createElement("div");n.classList.add("signature-mask"),n.setAttribute(he,le.COMPONENT),document.body.append(n);const r=document.createElement("div");r.classList.add("signature-container"),r.setAttribute(he,le.COMPONENT);const o=document.createElement("div");o.classList.add("signature"),r.append(o);const l=document.createElement("div");l.classList.add("signature-title");const a=document.createElement("span");a.append(document.createTextNode("\u63D2\u5165\u7B7E\u540D"));const R=document.createElement("i");R.onclick=()=>{t&&t(),this._dispose()},l.append(a),l.append(R),o.append(l);const c=document.createElement("div");c.classList.add("signature-operation");const u=document.createElement("div");u.classList.add("signature-operation__undo");const d=document.createElement("i"),g=document.createElement("span");g.innerText="\u64A4\u9500",u.append(d),u.append(g),c.append(u);const L=document.createElement("div");L.classList.add("signature-operation__trash");const O=document.createElement("i"),P=document.createElement("span");P.innerText="\u6E05\u7A7A",L.append(O),L.append(P),c.append(L),o.append(c);const M=document.createElement("div");M.classList.add("signature-canvas");const T=document.createElement("canvas");T.width=this.canvasWidth,T.height=this.canvasHeight,T.style.width=`${this.canvasWidth/this.dpr}px`,T.style.height=`${this.canvasHeight/this.dpr}px`,M.append(T),o.append(M);const X=document.createElement("div");X.classList.add("signature-menu");const S=document.createElement("button");S.classList.add("signature-menu__cancel"),S.append(document.createTextNode("\u53D6\u6D88")),S.type="button",S.onclick=()=>{e&&e(),this._dispose()},X.append(S);const F=document.createElement("button");return F.append(document.createTextNode("\u786E\u5B9A")),F.type="submit",F.onclick=()=>{i&&i(this._toData()),this._dispose()},X.append(F),o.append(X),document.body.append(r),this.container=r,this.mask=n,{mask:n,canvas:T,container:r,trashContainer:L,undoContainer:u}}_bindEvent(){this.trashContainer.onclick=this._clearCanvas.bind(this),this.undoContainer.onclick=this._undo.bind(this),this.canvas.onmousedown=this._startDraw.bind(this),this.canvas.onmousemove=this._draw.bind(this),this.container.onmouseup=this._stopDraw.bind(this),this.container.ontouchmove=this.registerTouchmove.bind(this),this.container.ontouchstart=this.registerTouchstart.bind(this),this.container.ontouchend=this.registerTouchend.bind(this)}_undo(){this.undoStack.length>1&&(this.undoStack.pop(),this.undoStack.length&&this.undoStack[this.undoStack.length-1]())}_saveUndoFn(t){for(this.undoStack.push(t);this.undoStack.length>this.MAX_RECORD_COUNT;)this.undoStack.shift()}_clearUndoFn(){const t=()=>{this.ctx.clearRect(0,0,this.canvasWidth,this.canvasHeight)};this.undoStack=[t]}_clearCanvas(){this._clearUndoFn(),this.ctx.clearRect(0,0,this.canvasWidth,this.canvasHeight)}_startDraw(t){this.isDrawing=!0,this.x=t.offsetX,this.y=t.offsetY,this.ctx.lineWidth=1}_draw(t){if(!this.isDrawing)return;const e=performance.now(),n=Math.sqrt(t.movementX**2+t.movementY**2)/(e-this.preTimeStamp),o=Math.min(5,Math.max(1,5-n*3)),l=.2;this.ctx.lineWidth=this.ctx.lineWidth*(1-l)+o*l;const{offsetX:a,offsetY:R}=t;this.ctx.beginPath(),this.ctx.moveTo(this.x,this.y),this.ctx.lineTo(a,R),this.ctx.stroke(),this.x=a,this.y=R,this.linePoints.push([a,R]),this.isDrawn=!0,this.preTimeStamp=e}_stopDraw(){if(this.isDrawing=!1,this.isDrawn){const t=this.ctx.getImageData(0,0,this.canvasWidth,this.canvasHeight),e=this;this._saveUndoFn(function(){e.ctx.clearRect(0,0,e.canvasWidth,e.canvasHeight),e.ctx.putImageData(t,0,0)}),this.isDrawn=!1}}_toData(){if(!this.linePoints.length)return null;const t=this.linePoints[0][0],e=this.linePoints[0][1];let i=t,n=e,r=t,o=e;for(let L=0;L<this.linePoints.length;L++){const O=this.linePoints[L];i>O[0]&&(i=O[0]),r<O[0]&&(r=O[0]),n>O[1]&&(n=O[1]),o<O[1]&&(o=O[1])}const l=this.ctx.lineWidth;i=i<l?0:i-l,n=n<l?0:n-l,r=r+l,o=o+l;const a=r-i,R=o-n,c=this.ctx.getImageData(i*this.dpr,n*this.dpr,a*this.dpr,R*this.dpr),u=document.createElement("canvas");return u.style.width=`${a}px`,u.style.height=`${R}px`,u.width=a*this.dpr,u.height=R*this.dpr,u.getContext("2d").putImageData(c,0,0),{value:u.toDataURL(),width:a,height:R}}registerTouchmove(t){this.registerTouchEvent(t,"mousemove")}registerTouchstart(t){this.registerTouchEvent(t,"mousedown")}registerTouchend(){const t=new MouseEvent("mouseup",{});this.canvas.dispatchEvent(t)}registerTouchEvent(t,e){const i=t.touches[0],n=new MouseEvent(e,{clientX:i.clientX,clientY:i.clientY});this.canvas.dispatchEvent(n)}_dispose(){this.mask.remove(),this.container.remove(),document.documentElement.classList.remove("overflow-hidden"),document.body.classList.remove("overflow-hidden")}}function fR(s,t){let e;return function(...i){e&&window.clearTimeout(e),e=window.setTimeout(()=>{s.apply(this,i)},t)}}function pR(s,t){if(!t){s.scrollTop=0;return}const e=[];let i=t.offsetParent;for(;i&&s!==i&&s.contains(i);)e.push(i),i=i.offsetParent;const n=t.offsetTop+e.reduce((a,R)=>a+R.offsetTop,0),r=n+t.offsetHeight,o=s.scrollTop,l=o+s.clientHeight;n<o?s.scrollTop=n:r>l&&(s.scrollTop=r-s.clientHeight)}function Vs(s){(window.requestIdleCallback||window.setTimeout)(()=>{s()})}function mR(s){return`data:image/svg+xml;base64,${btoa(decodeURIComponent(s.outerHTML))}`}function IR(s){const t=s.command;t.executeInsertBarcode1D=(e,i,n,r)=>{const o=document.createElement("svg");As(o,e,r),t.executeInsertElementList([{type:N.IMAGE,value:mR(o),width:i,height:n}])}}function WR(s){return`data:image/svg+xml;base64,${btoa(decodeURIComponent(s.outerHTML))}`}function VR(s){const t=s.command;t.executeInsertBarcode2D=(e,i,n,r)=>{const o=new ks;r||(r=new Map),r.has(xn.MARGIN)||r.set(xn.MARGIN,0);const l=o.write(e,i,n,r);l.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.executeInsertElementList([{type:N.IMAGE,value:WR(l),width:i,height:n}])},s.register.contextMenuList([{name:"\u8BC6\u522B\u4E8C\u7EF4\u7801\u94FE\u63A5",icon:"qrcode",when:e=>{var i;return e.startElement===e.endElement&&((i=e.startElement)==null?void 0:i.type)===N.IMAGE},callback:async(e,i)=>{var a;const n=(a=i.startElement)==null?void 0:a.value;if(!n)return;const l=(await new Bs().decodeFromImageUrl(n)).getText();new _t({title:"\u8BC6\u522B\u5185\u5BB9",data:[{type:"text",label:"\u8BC6\u522B\u5185\u5BB9",name:"name",placeholder:"\u8BF7\u8F93\u5165\u6587\u672C",value:l}]})}}])}var ae;(function(s){s.SIZE_ADD="size-add",s.SIZE_MINUS="size-minus",s.BOLD="bold",s.ITALIC="italic",s.UNDERLINE="underline",s.STRIKEOUT="strikeout",s.COLOR="color",s.HIGHLIGHT="highlight",s.AI_EDIT="ai-edit"})(ae||(ae={}));const zt="ce",ee={tips:'<svg t="1731999782807" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7508" width="16" height="16"><path d="M512 988.16c-78.848 0-143.36-64.512-143.36-143.36 0-17.408 13.312-30.72 30.72-30.72s30.72 13.312 30.72 30.72c0 45.056 36.864 81.92 81.92 81.92s81.92-36.864 81.92-81.92c0-17.408 13.312-30.72 30.72-30.72s30.72 13.312 30.72 30.72c0 78.848-64.512 143.36-143.36 143.36zM890.88 793.6H133.12c-45.056 0-81.92-36.864-81.92-81.92s36.864-81.92 81.92-81.92h62.464V403.456C195.584 229.376 337.92 87.04 512 87.04s316.416 142.336 316.416 316.416v226.304H890.88c45.056 0 81.92 36.864 81.92 81.92s-36.864 81.92-81.92 81.92z m-757.76-102.4c-11.264 0-20.48 9.216-20.48 20.48s9.216 20.48 20.48 20.48h757.76c11.264 0 20.48-9.216 20.48-20.48s-9.216-20.48-20.48-20.48h-93.184c-17.408 0-30.72-13.312-30.72-30.72V403.456c0-140.288-114.688-254.976-254.976-254.976S257.024 263.168 257.024 403.456v257.024c0 17.408-13.312 30.72-30.72 30.72H133.12z" p-id="7509" fill="#515151"></path><path d="M552.96 138.24h-81.92c-17.408 0-30.72-13.312-30.72-30.72 0-39.936 31.744-71.68 71.68-71.68s71.68 31.744 71.68 71.68c0 17.408-13.312 30.72-30.72 30.72z" p-id="7510" fill="#515151"></path></svg>',check:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"></path><path d="M10.0007 15.1709L19.1931 5.97852L20.6073 7.39273L10.0007 17.9993L3.63672 11.6354L5.05093 10.2212L10.0007 15.1709Z"></path></svg>',refresh:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" fill="currentColor"></path></svg>',aiPanelStart:'<svg t="1732001314260" class="icon" viewBox="0 0 1213 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="40479" width="16" height="16"><path d="M1004.046124 568.908272l-379.622349 358.119266a54.421386 54.421386 0 0 0 0.26547 80.399538c23.778543 22.185722 62.195869 22.071949 85.822715-0.227546l470.3373-443.67651A56.886466 56.886466 0 0 0 1213.57794 510.580683a54.876477 54.876477 0 0 0-17.634804-41.489196L716.466076 16.844083A63.561145 63.561145 0 0 0 630.681286 16.578612a54.421386 54.421386 0 0 0-0.26547 80.437463L1010.038165 455.135341H56.886466a56.886466 56.886466 0 0 0 0 113.772931h947.159658z" fill="#ffffff" p-id="40480"></path></svg>',aiPanelStop:'<svg t="1732173169193" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4263" width="16" height="16"><path d="M722.9375 933.875H301.0625a210.9375 210.9375 0 0 1-210.9375-210.9375V301.0625a210.9375 210.9375 0 0 1 210.9375-210.9375h421.875a210.9375 210.9375 0 0 1 210.9375 210.9375v421.875a210.9375 210.9375 0 0 1-210.9375 210.9375z" p-id="4264" fill="#ffffff"></path></svg>',addContent:'<svg t="1732001601983" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="41747" width="16" height="16"><path d="M1022.721598 853.802081v-298.123346a43.550895 43.550895 0 0 0-87.059176 0v299.146067a85.2268 85.2268 0 0 1-85.2268 85.2268H168.32293a85.2268 85.2268 0 0 1-85.2268-85.2268V172.030295a85.2268 85.2268 0 0 1 85.2268-85.226799h298.933a43.380441 43.380441 0 0 0 0-86.760883H170.4536a170.4536 170.4536 0 0 0-170.4536 170.4536v683.305868a170.4536 170.4536 0 0 0 170.4536 170.453599h681.814398a170.4536 170.4536 0 0 0 170.4536-170.453599zM724.598252 296.54665v173.436538a42.442946 42.442946 0 1 0 84.885893 0v-173.436538h171.604161a41.633292 41.633292 0 1 0 0-83.266583h-171.604161V42.48556a42.442946 42.442946 0 1 0-84.885893 0v170.794507h-173.053017a41.633292 41.633292 0 1 0 0 83.266583h173.053017z" fill="#515151" p-id="41748"></path></svg>',replace:'<svg t="1731999904401" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10318" width="16" height="16"><path d="M668.506 478.509l-42.425 42.425L697.146 592H449.573v60H842l-60-60zM449.573 688.509l60 60L623.067 862l42.425-42.426-71.065-71.065H842v-60H534.427z" fill="#515151" p-id="10319"></path><path d="M182 162v700h200v-60H242V222h540v250h60V162z" fill="#515151" p-id="10320"></path><path d="M322 302h380v60H322zM322 422h260v60H322z" fill="#515151" p-id="10321"></path></svg> ',cancle:'<svg t="1731999948759" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12341" width="16" height="16"><path d="M768 153.6h230.4a25.6 25.6 0 1 1 0 51.2H921.6v716.8a102.4 102.4 0 0 1-102.4 102.4H204.8a102.4 102.4 0 0 1-102.4-102.4V204.8H25.6a25.6 25.6 0 0 1 0-51.2H256V102.4a102.4 102.4 0 0 1 102.4-102.4h307.2a102.4 102.4 0 0 1 102.4 102.4v51.2z m-51.2 0V102.4a51.2 51.2 0 0 0-51.2-51.2H358.4a51.2 51.2 0 0 0-51.2 51.2v51.2h409.6zM153.6 204.8v716.8a51.2 51.2 0 0 0 51.2 51.2h614.4a51.2 51.2 0 0 0 51.2-51.2V204.8H153.6z" fill="#515151" p-id="12342"></path></svg>',optimize:'<svg t="1732000413328" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18919" width="16" height="16"><path d="M819.2 486.4L682.666667 328.533333c0-4.266667 0-8.533333-4.266667-12.8l-34.133333-226.133333c0-12.8-17.066667-21.333333-29.866667-17.066667L396.8 149.333333h-8.533333l-230.4-8.533333c-12.8 0-25.6 8.533333-21.333334 25.6l25.6 226.133333v8.533334L72.533333 597.333333c-4.266667 12.8 4.266667 25.6 17.066667 29.866667l200.533333 25.6c4.266667 0 8.533333 4.266667 12.8 8.533333l153.6 174.933334c8.533333 12.8 25.6 8.533333 34.133334-4.266667l123.733333-204.8c0-4.266667 4.266667-4.266667 8.533333-8.533333l187.733334-102.4c17.066667-4.266667 17.066667-21.333333 8.533333-29.866667z m-234.666667 59.733333c-17.066667 8.533333-29.866667 21.333333-38.4 38.4l-81.066666 128-93.866667-110.933333c-17.066667-21.333333-42.666667-34.133333-68.266667-34.133333L183.466667 554.666667l51.2-123.733334c8.533333-17.066667 8.533333-34.133333 8.533333-51.2l-17.066667-149.333333 157.866667 8.533333c12.8 0 29.866667 0 42.666667-4.266666l145.066666-51.2 25.6 145.066666c0 21.333333 8.533333 38.4 21.333334 55.466667l85.333333 98.133333-119.466667 64z" fill="#515151" p-id="18920"></path><path d="M633.6 690.944l60.373333-60.330667 193.066667 193.109334-60.330667 60.330666z" fill="#515151" p-id="18921"></path></svg>',checkGrammar:'<svg t="1732000545177" class="icon" viewBox="0 0 1116 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="25780" width="16" height="16"><path d="M952.463696 443.229454a172.080162 172.080162 0 0 0 108.410501-34.416032 145.407737 145.407737 0 0 0 54.205251-92.923288h-51.624048a98.946093 98.946093 0 0 1-39.578437 57.646854 122.176915 122.176915 0 0 1-72.273668 21.510021 108.410502 108.410502 0 0 1-92.062887-46.461644 209.077397 209.077397 0 0 1-34.416032-126.478919 209.937797 209.937797 0 0 1 34.416032-126.478919 108.410502 108.410502 0 0 1 92.062887-46.461644 112.712506 112.712506 0 0 1 72.273668 24.091223 114.433308 114.433308 0 0 1 40.438838 64.530061h51.624048a154.011745 154.011745 0 0 0-54.205251-99.806494A164.336555 164.336555 0 0 0 952.463696 0.123037a158.313749 158.313749 0 0 0-129.920523 59.367656A252.097437 252.097437 0 0 0 774.360728 221.246045a250.376635 250.376635 0 0 0 48.182445 161.755352 158.313749 158.313749 0 0 0 129.920523 60.228057z m-473.220445-56.786453h98.946093a107.550101 107.550101 0 0 0 65.390461-18.928818 67.111263 67.111263 0 0 0 23.230822-55.926053 65.390461 65.390461 0 0 0-23.230822-57.646854 119.595712 119.595712 0 0 0-73.134069-18.928818H479.243251z m0-329.53351v135.943328h78.296473a116.154109 116.154109 0 0 0 68.832065-17.208017 59.367656 59.367656 0 0 0 23.230822-50.763647 62.809259 62.809259 0 0 0-20.64962-49.903247 86.040081 86.040081 0 0 0-58.507255-18.068417z m106.6897 375.995153H428.479603V10.447847h154.872145a126.478919 126.478919 0 0 1 86.040081 28.393227 98.085692 98.085692 0 0 1 31.83483 77.436073 94.644089 94.644089 0 0 1-20.649619 59.367655 80.017275 80.017275 0 0 1-49.042846 31.83483v4.302004a98.946093 98.946093 0 0 1 86.040081 103.248097 109.270903 109.270903 0 0 1-36.136834 86.040081 147.988939 147.988939 0 0 1-95.50449 31.83483zM171.219761 81.861114l-6.022806 18.928818-15.487214 47.322044-22.370421 53.344851-15.487215 47.322044-6.022805 18.928818h133.362125L175.521765 81.861114z m123.037316 351.04353l-6.022806-18.068417-14.626814-42.159639-13.766413-42.15964-6.022805-18.068417H92.923287l-40.438838 120.456113H0L148.84934 10.447847h49.903247l147.988939 422.456797z" fill="#515151" p-id="25781"></path><path d="M290.815473 631.657231l-98.946093 83.458879 263.282648 308.88389 486.126457-437.944012-86.040081-95.50449-388.040765 348.462328-176.382166-207.356595z" fill="#515151" p-id="25782"></path></svg>',simplification:'<svg t="1732000724337" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="34332" width="16" height="16"><path d="M843.2 64 175.552 64c-101.248 0-110.08 116.864-110.08 116.864s0 606.848 0 675.776c0 68.928 110.08 103.36 110.08 103.36l495.296 0 287.616-283.2c0 0 0-417.984 0-504.896C958.528 84.992 843.2 64 843.2 64zM888.768 648.64c0 35.328-37.312 37.184-37.312 37.184s-85.376 0-126.976 0c-41.536 0-41.152 31.488-41.152 31.488s0 81.28 0 125.888c0 44.48-22.528 46.4-22.528 46.4s-418.048 0-468.992 0-56.448-43.456-56.448-43.456 0-591.808 0-648.768 56.448-67.392 56.448-67.392 579.904 2.88 633.216 2.88c53.248 0 63.744 63.744 63.744 63.744S888.768 613.184 888.768 648.64z" fill="#515151" p-id="34333"></path><path d="M754.752 373.696c0 19.264-15.488 34.752-34.688 34.752L300.288 408.448c-19.2 0-34.752-15.488-34.752-34.752l0 0c0-19.2 15.552-34.688 34.752-34.688l419.776 0C739.264 339.008 754.752 354.496 754.752 373.696L754.752 373.696z" fill="#515151" p-id="34334"></path><path d="M680.64 550.336c0 18.56-15.104 33.664-33.728 33.664L299.264 584c-18.56 0-33.664-15.104-33.664-33.664l0 0c0-18.752 15.104-33.792 33.664-33.792l347.648 0C665.472 516.48 680.64 531.584 680.64 550.336L680.64 550.336z" fill="#515151" p-id="34335"></path></svg>',richContent:'<svg t="1732000631383" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="28766" width="16" height="16"><path d="M451.733333 665.066667l-2.133333 118.933333c0 9.066667 6.933333 16 16 16h0.533333l117.866667-2.666667c2.133333 0 4.266667-1.066667 5.333333-2.133333l356.266667-356.266667c3.2-3.2 3.2-8 0-11.2L821.333333 303.466667c-1.6-1.6-3.733333-2.133333-5.866666-2.133334-2.133333 0-4.266667 1.066667-5.866667 2.133334L453.333333 659.733333c-0.533333 1.066667-1.6 3.2-1.6 5.333334z m63.466667 23.466666L816 387.733333l45.333333 45.333334-301.333333 300.8-45.866667 1.066666c0.533333 0 1.066667-46.4 1.066667-46.4zM661.333333 341.333333H320c-5.866667 0-10.666667-4.8-10.666667-10.666666V266.666667c0-5.866667 4.8-10.666667 10.666667-10.666667h341.333333c5.866667 0 10.666667 4.8 10.666667 10.666667v64c0 5.866667-4.8 10.666667-10.666667 10.666666zM490.133333 512H320c-5.866667 0-10.666667-4.8-10.666667-10.666667V437.333333c0-5.866667 4.8-10.666667 10.666667-10.666666h170.133333c5.866667 0 10.666667 4.8 10.666667 10.666666v64c0 5.866667-4.8 10.666667-10.666667 10.666667z" p-id="28767" fill="#515151"></path><path d="M757.333333 865.066667H224V160h533.333333v74.666667c0 5.866667 4.8 10.666667 10.666667 10.666666h64c5.866667 0 10.666667-4.8 10.666667-10.666666V106.666667c0-17.6-14.4-32-32-32H170.666667c-17.6 0-32 14.4-32 32v811.733333c0 17.6 14.4 32 32 32h640c17.6 0 32-14.4 32-32V736c0-5.866667-4.8-10.666667-10.666667-10.666667h-64c-5.866667 0-10.666667 4.8-10.666667 10.666667v129.066667z" p-id="28768" fill="#515151"></path></svg>',translation:'<svg t="1732000795334" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="38216" width="16" height="16"><path d="M608 416h288.00000001c35.36 0 63.99999999 28.48000002 63.99999999 64v416.00000001c0 35.36-28.48000002 63.99999999-63.99999999 63.99999999H480c-35.36 0-63.99999999-28.48000002-64-64.00000001v-287.99999999H127.99999999c-35.36 0-63.99999999-28.48000002-63.99999999-64V127.99999999c0-35.36 28.48000002-63.99999999 64.00000001-63.99999999h415.99999999c35.36 0 63.99999999 28.48000002 64 64.00000001v287.99999999z m0 64v64c0 35.36-28.48000002 63.99999999-64 64h-64v256.032c0 17.664 14.304 31.96800001 31.968 31.96799999H864a31.96800001 31.96800001 0 0 0 31.968-31.96799999V512a31.96800001 31.96800001 0 0 0-31.968-31.96800001H608zM127.99999999 159.968V512c0 17.664 14.304 31.96800001 31.96800001 31.96800001H512a31.96800001 31.96800001 0 0 0 31.96800001-31.96800001V160A31.96800001 31.96800001 0 0 0 512.032 127.99999999H160A31.96800001 31.96800001 0 0 0 127.99999999 159.968z m64.00000001 244.288V243.36h112.736V176h46.752c6.4 0.928 9.63200001 1.824 9.632 2.75200001a10.56000001 10.56000001 0 0 1-1.37600001 4.12799998c-2.75200001 7.328-4.128 16.032-4.12799999 26.11200001v34.368h119.648v156.768h-50.88000001v-20.64000001h-68.76799999v118.27200002H306.11199999v-118.27200002H238.752v24.76800001H192z m46.72-122.36800001v60.48000001h67.39200001V281.91999999H238.752z m185.66400001 60.48000001V281.91999999h-68.76800001v60.48000001h68.76799999z m203.83999999 488H575.99999999L668.128 575.99999999h64.64l89.344 254.40000002h-54.976l-19.264-53.66400001h-100.38399999l-19.23200001 53.632z m33.024-96.256h72.864l-34.368-108.608h-1.376l-37.12 108.608zM896.00000001 320h-64.00000001a128.00000001 128.00000001 0 0 0-128-128V127.99999999a192 192 0 0 1 191.99999999 192.00000001zM127.99999999 704h64.00000001a128.00000001 128.00000001 0 0 0 128 128v64.00000001a192 192 0 0 1-191.99999999-192.00000001z" fill="#515151" p-id="38217"></path></svg>',summary:'<svg t="1732001057788" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="39349" width="16" height="16"><path d="M794.168 517.746L746 469.574 499.4 792.73l-15.662 11.746-359.024 138.4-46.44-46.56 139.34-358.2 11.688-15.546 322.932-246.76-47.98-47.978L671.132 60.954l289.914 289.914z m-513.2 55.832l-74.2 190.738 195.326-195.328a52 52 0 1 1 50.912 50.912l-194.24 194.24L448.4 741.038l246.186-322.6-91.064-91.338z m325.11-345.746l188.09 188.09 65.054-65.054-188.09-188.09z" p-id="39350" fill="#515151"></path></svg>',outline:'<svg t="1732237907313" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4525" width="16" height="16"><path d="M960 256H192v256h128V448c0-38.4 25.6-64 64-64h448c38.4 0 64 25.6 64 64v128c0 38.4-25.6 64-64 64H384c-38.4 0-64-25.6-64-64H192v320h128v-64c0-38.4 25.6-64 64-64h448c38.4 0 64 25.6 64 64v128c0 38.4-25.6 64-64 64H384c-38.4 0-64-25.6-64-64H192c-38.4 0-64-25.6-64-64V256H64c-38.4 0-64-25.6-64-64V64c0-38.4 25.6-64 64-64h896c38.4 0 64 25.6 64 64v128c0 38.4-25.6 64-64 64zM384 576h448V448H384v128z m0 384h448v-128H384v128z m576-896H64v128h896V64z" fill="#2c2c2c" p-id="4526"></path></svg>',compose:'<svg t="1732238116599" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6445" width="16" height="16"><path d="M115.712 247.808h786.432c32.256 0 58.88-26.624 58.88-58.88 0-32.768-26.624-58.88-58.88-58.88H115.712c-32.768 0-58.88 26.624-58.88 58.88s26.624 58.88 58.88 58.88zM487.424 533.504c0-15.872-6.144-30.72-17.408-41.984-11.264-11.264-26.112-17.408-41.984-17.408h-312.32c-32.256 0-58.88 26.624-58.88 58.88 0 32.768 26.624 58.88 58.88 58.88h312.832c32.256 0.512 58.88-25.6 58.88-58.368zM241.152 819.712H115.712c-32.256 0-58.88 26.624-58.88 58.88 0 32.768 26.624 58.88 58.88 58.88h125.44c32.256 0 58.88-26.624 58.88-58.88 0-15.872-6.144-30.72-17.408-41.984-10.752-10.752-25.6-16.896-41.472-16.896zM930.816 389.632l-89.088-61.44c-28.672-21.504-68.096-15.872-90.624 11.776l-279.04 390.656c-7.168 10.24-10.752 22.528-10.752 34.816l2.048 130.048c1.536 21.504 18.944 38.4 40.448 38.4l5.12-0.512 0.512-0.512c2.56-0.512 4.608-1.024 7.168-1.536l124.416-42.496c12.288-4.096 22.528-11.264 29.696-21.504l279.04-390.144 1.024-1.536c8.704-14.336 11.776-31.232 7.68-47.616-3.584-15.36-13.312-29.184-27.648-38.4z m-87.04 62.976l-246.784 345.088-33.792 11.264-0.512-31.232L811.008 430.08l32.768 22.528z m-291.84 373.76z" p-id="6446" fill="#515151"></path></svg>'};function Ys(s,t,e){const i=document.createElement("div");i.classList.add(`${zt}-picker`),i.classList.add(`${zt}-${t}`);const n=document.createElement("div");n.classList.add(`${zt}-picker-container`);const r=document.createElement("div");n.append(r),i.append(n),s.append(i);const o="#000000",l=new _s({el:r,theme:"nano",useAsButton:!0,inline:!0,default:o,i18n:{"btn:save":"\u2713"},components:{preview:!0,opacity:!0,hue:!0,interaction:{input:!0,save:!0}}}),a=document.createElement("i");i.append(a);const R=document.createElement("span");R.style.backgroundColor=o,i.append(R),i.onclick=c=>{const u=c.target;n!==u&&!n.contains(u)&&l.show()},l.on("save",c=>{l.hide();const u=c.toHEXA().toString();R.style.backgroundColor=u,e(u)})}const YR=[{icon:ee.optimize,title:"\u4F18\u5316",key:"creation_optimization"},{icon:ee.checkGrammar,title:"\u7EA0\u9519",key:"creation_proofreading"},{icon:ee.richContent,title:"\u7EED\u5199",key:"creation_continuation"},"<hr/>",{icon:ee.translation,title:"\u7FFB\u8BD1",key:"creation_translation"},{icon:ee.summary,title:"\u603B\u7ED3",key:"creation_summarize"}];function UR(s,t,e){const i=document.createElement("div");i.classList.add(`${zt}-picker-ai`),i.classList.add(`${zt}-${t}`);const n=YR;i.innerHTML=`
<i id="${t}-btn"></i>
<div class="aie-container ce-picker-container ai-hide">
<div class="aie-ai-panel-body">
<div class="aie-ai-panel-body-content ai-hide">
<div class="loader" id="aiLoader">${ee.refresh}</div>
<textarea readonly id="aiTextarea"></textarea>
</div>
<div class="aie-ai-panel-body-input"><input id="inputOption" placeholder="\u544A\u8BC9 AI \u4E0B\u4E00\u6B65\u5E94\u8BE5\u5982\u4F55\uFF1F\u6BD4\u5982\uFF1A\u5E2E\u6211\u7FFB\u8BD1\u6210\u82F1\u8BED" type="text" />
<button id="goAskAi" >
<p id="aiStart">${ee.aiPanelStart}</p>
<p id="aiStop" class="ai-hide">${ee.aiPanelStop}</p>
</button></div>
<div class="aie-ai-panel-body-tips">
${ee.tips}
\u63D0\u793A\uFF1A\u60A8\u53EF\u4EE5\u5728\u4E0A\u9762\u8F93\u5165\u6587\u5B57\u6216\u8005\u9009\u62E9\u4E0B\u65B9\u7684\u64CD\u4F5C
</div>
</div>
<div class="aie-ai-panel-footer ai-hide" id="footer-one">
<div class="aie-ai-panel-footer-tips">
\u60A8\u53EF\u4EE5\u8FDB\u884C\u4EE5\u4E0B\u64CD\u4F5C:
</div>
<p id="insert">${ee.addContent}\u8FFD\u52A0</p>
<p id="replace">${ee.replace}\u66FF\u6362</p>
<hr/>
<p id="hide">${ee.cancle}\u820D\u5F03</p>
</div>
<!--aie-ai-panel-actions-->
<div class="aie-ai-panel-footer aie-ai-panel-actions" id="footer-two">
<div class="aie-ai-panel-footer-tips">\u60A8\u53EF\u4EE5\u8FDB\u884C\u4EE5\u4E0B\u64CD\u4F5C:</div>
${n.map(r=>typeof r=="string"?r:`<p id="ai-operate" data-type="${r.key}">${r.icon} ${r.title} </p>`).join("")}
</div>
</div>
`,s.append(i),ZR(s,e)}function Us(s){var e,i,n;const t=s.querySelector("#aiLoader");t==null||t.classList.remove("ai-hide"),(e=s.querySelector("#footer-one"))==null||e.classList.remove("ai-hide"),(i=s.querySelector("#footer-two"))==null||i.classList.add("ai-hide"),(n=s.querySelector(".aie-ai-panel-body-content"))==null||n.classList.remove("ai-hide"),s.querySelector("#aiStart").classList.add("ai-hide"),s.querySelector("#aiStop").classList.remove("ai-hide"),s.querySelector("#goAskAi").disabled=!0}function ZR(s,t){var n;const e=s.querySelector("#aiTextarea");(n=s.querySelector("#ai-edit-btn"))==null||n.addEventListener("click",()=>{const r=s.querySelector(`.${zt}-ai-edit`),o=r.classList.contains("ai-active");o?r.classList.remove("ai-active"):r.classList.add("ai-active");const l=s.querySelector(".aie-container");o?l==null||l.classList.add("ai-hide"):l==null||l.classList.remove("ai-hide")}),Array.from(s.querySelectorAll("#ai-operate")).forEach(r=>{r.addEventListener("click",()=>{Us(s);const o=r.getAttribute("data-type");t.command.executeAiEdit(o)})}),s.querySelector("#goAskAi").addEventListener("click",()=>{const r=s.querySelector("#inputOption");r.value&&(Us(s),t.command.executeAiEdit("creation_ask",r.value))}),s.querySelector("#replace").addEventListener("click",()=>{t.command.executeReplace(e.value)}),s.querySelector("#insert").addEventListener("click",()=>{const r=t.command.executeAiEdit("");t.command.executeReplace(r+e.value),t.command.executeSearch("")}),s.querySelector("#hide").addEventListener("click",()=>{t.command.executeSearch(""),Zs(s,t)})}function QR(s){const t=document.querySelector("#aiLoader"),e=document.querySelector("#aiTextarea");s.data&&(e.value=s.data),t==null||t.classList.add("ai-hide"),document.querySelector("#aiStart").classList.remove("ai-hide"),document.querySelector("#aiStop").classList.add("ai-hide"),document.querySelector("#goAskAi").disabled=!1}function Zs(s,t){var n,r,o,l,a;t.command.executeSearch(""),s.querySelector("#aiStart").classList.remove("ai-hide"),s.querySelector("#aiStop").classList.add("ai-hide"),s.querySelector("#goAskAi").disabled=!1,(n=s.querySelector(".aie-container"))==null||n.classList.add("ai-hide"),(r=s.querySelector(`.${zt}-ai-edit`))==null||r.classList.remove("ai-active"),(o=s.querySelector("#footer-one"))==null||o.classList.add("ai-hide"),(l=s.querySelector("#footer-two"))==null||l.classList.remove("ai-hide"),(a=s.querySelector(".aie-ai-panel-body-content"))==null||a.classList.add("ai-hide");const e=s.querySelector("#inputOption");e.value="";const i=s.querySelector("textarea");i.value=""}const DR=[{render(s,t){UR(s,ae.AI_EDIT,t)}},{isDivider:!0},{key:ae.SIZE_ADD,callback(s){s.command.executeSizeAdd()}},{key:ae.SIZE_MINUS,callback(s){s.command.executeSizeMinus()}},{isDivider:!0},{key:ae.BOLD,callback(s){s.command.executeBold()}},{key:ae.ITALIC,callback(s){s.command.executeItalic()}},{key:ae.UNDERLINE,callback(s){s.command.executeUnderline()}},{key:ae.STRIKEOUT,callback(s){s.command.executeStrikeout()}},{isDivider:!0},{render(s,t){Ys(s,ae.COLOR,e=>{t.command.executeColor(e)})}},{render(s,t){Ys(s,ae.HIGHLIGHT,e=>{t.command.executeHighlight(e)})}}];function KR(s){const t=document.createElement("div");t.classList.add(`${zt}-floating-toolbar`);for(const e of DR)if(e.render)e.render(t,s);else if(e.isDivider){const i=document.createElement("div");i.classList.add(`${zt}-divider`),t.append(i)}else{const{key:i,callback:n}=e,r=document.createElement("div");r.classList.add(`${zt}-${i}`);const o=document.createElement("i");r.append(o),r.onclick=()=>{n==null||n(s)},t.append(r)}return t}function dn(s,t){t?s.classList.remove("hide"):s.classList.add("hide")}function Zi(s,t){t?s.classList.add("active"):s.classList.remove("active")}function ER(s){const t=KR(s);s.command.getContainer().append(t),s.eventBus.on("rangeStyleChange",i=>{if(i.type===null){dn(t,!1);return}const n=s.command.getRangeContext();if(!n||n.isCollapsed||!n.rangeRects[0]){dn(t,!1),Zs(t,s);return}const r=n.rangeRects[0];t.style.left=`${r.x}px`,t.style.top=`${r.y+r.height}px`;const o=t.querySelector(`.${zt}-bold`);o&&Zi(o,i.bold);const l=t.querySelector(`.${zt}-italic`);l&&Zi(l,i.italic);const a=t.querySelector(`.${zt}-underline`);a&&Zi(a,i.underline);const R=t.querySelector(`.${zt}-strikeout`);R&&Zi(R,i.strikeout),dn(t,!0)})}const bR=6,xR=8.6,CR=40,wR={top:It.TOP,middle:It.MIDDLE,bottom:It.BOTTOM,distributed:It.TOP,justify:It.TOP};function HR(s){return async function(t){const e=new zs.Workbook;await e.xlsx.load(t.arrayBuffer);const i=[];e.eachSheet(function(n){var l;const r=n.columns.map(a=>({width:(a.width||xR)*bR})),o={type:N.TABLE,value:"",colgroup:r,trList:[]};n.eachRow((a,R)=>{var g,L,O,P,M,T;const c=R-1,u=a.model,d=[];if(!!Array.isArray(a.values)){for(let X=1;X<a.values.length;X++){const S=(g=u==null?void 0:u.cells)==null?void 0:g[X-1];if(S==null?void 0:S.master)continue;const F=S==null?void 0:S.style,W=S==null?void 0:S.value,I=wR[((L=F==null?void 0:F.alignment)==null?void 0:L.vertical)||"top"],Z=[],V=W==null?void 0:W.richText;V?V.forEach(U=>{var f,b,G,x,y;Z.push({value:U.text,bold:(f=U.font)==null?void 0:f.bold,italic:(b=U.font)==null?void 0:b.italic,size:(G=U.font)==null?void 0:G.size,strikeout:(x=U.font)==null?void 0:x.strike,underline:!!((y=U.font)==null?void 0:y.underline)})}):Z.push({value:(W==null?void 0:W.toString())||"",bold:(O=F==null?void 0:F.font)==null?void 0:O.bold,italic:(P=F==null?void 0:F.font)==null?void 0:P.italic,size:(M=F==null?void 0:F.font)==null?void 0:M.size,strikeout:(T=F==null?void 0:F.font)==null?void 0:T.strike});let m=1,Y=1;const Q=n.model.rows;for(let U=c;U<Q.length;U++){const f=Q[U].cells;for(let b=0;b<f.length;b++){if(U===c&&b===X-1)continue;f[b].master===(S==null?void 0:S.address)&&(U===c?m+=1:U>c&&b===X-1&&(Y+=1))}}d.push({colspan:m,rowspan:Y,verticalAlign:I,value:Z})}if(d.length){const X=(u==null?void 0:u.height)||CR;o.trList.push({height:X,minHeight:X,tdList:d})}}}),((l=o.trList)==null?void 0:l.length)&&i.push(o)}),i.length&&s.executeSetValue({main:i})}}function yR(s){const t=s.command;t.executeImportExcel=HR(t)}function GR(s,t){const e=document.createElement("a");e.href=window.URL.createObjectURL(s),e.download=t,e.click(),window.URL.revokeObjectURL(e.href)}const vR={[ht.FIRST]:xe.HEADING_1,[ht.SECOND]:xe.HEADING_2,[ht.THIRD]:xe.HEADING_3,[ht.FOURTH]:xe.HEADING_4,[ht.FIFTH]:xe.HEADING_5,[ht.SIXTH]:xe.HEADING_6};function hn(s){var t;return s.type===N.IMAGE?new so({type:"png",data:s.value,transformation:{width:s.width,height:s.height}}):s.type===N.HYPERLINK?new oo({children:[new Oi({text:(t=s.valueList)==null?void 0:t.map(e=>e.value).join(""),style:"Hyperlink"})],link:s.url}):s.type===N.TAB?new Oi({children:[new ro]}):s.type===N.LATEX?new lo(s.value):new Oi({font:s.font,text:s.value,bold:s.bold,size:`${(s.size||16)/.75}pt`,color:ao(s.color).hex()||"#000000",italics:s.italic,strike:s.strikeout,superScript:s.type===N.SUPERSCRIPT,subScript:s.type===N.SUBSCRIPT,underline:s.underline?{}:void 0})}function Qi(s){var n,r,o;const t=[];let e=[];function i(){e.length&&(t.push(new xi({children:e})),e=[])}for(let l=0;l<s.length;l++){const a=s[l];if(a.type===N.TITLE)i(),t.push(new xi({heading:vR[a.level],children:((n=a.valueList)==null?void 0:n.map(R=>hn(R)))||[]}));else if(a.type===N.LIST){i();const R=((r=a.valueList)==null?void 0:r.map(c=>c.value).join("").split(`
`).map((c,u)=>new xi({children:[new Oi({text:`${!a.listStyle||a.listStyle===Gt.DECIMAL?`${u+1}. `:"\u2022 "}${c}`})]})))||[];t.push(...R)}else if(a.type===N.TABLE){i();const{trList:R}=a,c=[];for(let u=0;u<R.length;u++){const d=R[u].tdList,g=[];for(let L=0;L<d.length;L++){const O=d[L];g.push(new to({columnSpan:O.colspan,rowSpan:O.rowspan,children:Qi(O.value)||[]}))}c.push(new eo({children:g}))}t.push(new io({rows:c,width:{size:"100%",type:no.PERCENTAGE}}))}else a.type===N.DATE?e.push(...((o=a.valueList)==null?void 0:o.map(R=>hn(R)))||[]):(/^\n/.test(a.value)&&(i(),a.value=a.value.replace(/^\n/,"")),e.push(hn(a)))}return i(),t}function JR(s){return function(t){const{fileName:e,isFile:i}=t,{data:{header:n,main:r,footer:o}}=s.getValue(),l=new $s({sections:[{headers:{default:new qs({children:Qi(n||[])})},footers:{default:new js({children:Qi(o||[])})},children:Qi(r||[])}]});i?Cn.toBlob(l).then(a=>{GR(a,`${e}.docx`)}):Cn.toBase64String(l).then(a=>{const R={data:JSON.stringify({content:a,title:e}),type:"exportDocx"};window.parent.postMessage(R,"*")})}}function Qs(s){if(s.children){const t=Ro.map(s.children,Qs);s=q(E({},s),{children:t})}return s.type==="paragraph"&&(s=AR(s)),s}function AR(s){return s.alignment==="center"&&!s.styleId?q(E({},s),{styleId:"Heading2"}):(s.text&&(s.text=s.text.replace(/\n/g,"<br>")),s.styleId==="Heading1"&&s.alignment==="center"?q(E({},s),{alignment:"center"}):s.styleId==="Heading2"&&s.alignment==="center"?q(E({},s),{alignment:"center"}):s.styleId==="Heading3"&&s.alignment==="center"?q(E({},s),{alignment:"center"}):s)}const BR=s=>new Promise(t=>{const e=document.createElement("div");e.innerHTML=s,setTimeout(()=>{t(e.innerHTML)},0)});function kR(s){return async function(t){const{arrayBuffer:e}=t,i=await wn.convertToHtml({arrayBuffer:e},{transformDocument:Qs,styleMap:["p[style-name='Normal'] => p","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh",`p[style-name='Section Title'] => h1:fresh
`,"p[style-name='Subsection Title'] => h2:fresh","p[style-name='Equation'] => span.math-display:fresh","p[style-name='Title'] => h1:fresh","p[style-name='Subtitle'] => h2:fresh","p[style-name='Quote'] => blockquote","p[style-name='List Paragraph'] => li","r[style-name='Emphasis'] => em","r[style-name='Strong'] => strong","r[style-name='Underline'] => u","r[style-name='Strikethrough'] => del","r[style-name='Comment Reference'] => sup","b => strong","i => em","u => u","strike => del","comment-reference => sup"],convertImage:wn.images.imgElement(function(r){return r.read("base64").then(function(o){return{src:"data:"+r.contentType+";base64,"+o}})})}),n=i.value.includes("<img")?await BR(i.value):i.value;s.executeSetHTML({main:n})}}function _R(s){const t=s.command;t.executeImportDocx=kR(t),t.executeExportDocx=JR(t)}window.onload=function(){const s=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),t=document.querySelector(".editor"),e=new SR(t,{header:[],main:ho,footer:[{value:"",size:12}]},go);e.use(IR),e.use(VR),e.use(ER),e.use(yR),e.use(_R);const i=document.querySelector("#file-docx"),n=document.querySelector("#file-excel");let r="";Reflect.set(window,"editor",e),window.addEventListener("click",p=>{const K=document.querySelector(".visible");!K||K.contains(p.target)||K.classList.remove("visible")},{capture:!0});const o=document.querySelector(".menu-item__undo");o.title=`\u64A4\u9500(${s?"\u2318":"Ctrl"}+Z)`,o.onclick=function(){console.log("undo"),e.command.executeUndo()};const l=document.querySelector(".menu-item__redo");l.title=`\u91CD\u505A(${s?"\u2318":"Ctrl"}+Y)`,l.onclick=function(){console.log("redo"),e.command.executeRedo()};const a=document.querySelector(".menu-item__painter");let R=!0,c;a.onclick=function(){R?(R=!1,c=window.setTimeout(()=>{console.log("painter-click"),R=!0,e.command.executePainter({isDblclick:!1})},200)):window.clearTimeout(c)},a.ondblclick=function(){console.log("painter-dblclick"),R=!0,window.clearTimeout(c),e.command.executePainter({isDblclick:!0})},document.querySelector(".menu-item__format").onclick=function(){console.log("format"),e.command.executeFormat()};const u=document.querySelector(".menu-item__font"),d=u.querySelector(".select"),g=u.querySelector(".options");u.onclick=function(){console.log("font"),g.classList.toggle("visible")},g.onclick=function(p){const K=p.target;e.command.executeFont(K.dataset.family)};const L=document.querySelector(".menu-item__size"),O=L.querySelector(".select"),P=L.querySelector(".options");L.title="\u8BBE\u7F6E\u5B57\u53F7",L.onclick=function(){console.log("size"),P.classList.toggle("visible")},P.onclick=function(p){const K=p.target;e.command.executeSize(Number(K.dataset.size))};const M=document.querySelector(".menu-item__size-add");M.title=`\u589E\u5927\u5B57\u53F7(${s?"\u2318":"Ctrl"}+[)`,M.onclick=function(){console.log("size-add"),e.command.executeSizeAdd()};const T=document.querySelector(".menu-item__size-minus");T.title=`\u51CF\u5C0F\u5B57\u53F7(${s?"\u2318":"Ctrl"}+])`,T.onclick=function(){console.log("size-minus"),e.command.executeSizeMinus()};const X=document.querySelector(".menu-item__bold");X.title=`\u52A0\u7C97(${s?"\u2318":"Ctrl"}+B)`,X.onclick=function(){console.log("bold"),e.command.executeBold()};const S=document.querySelector(".menu-item__italic");S.title=`\u659C\u4F53(${s?"\u2318":"Ctrl"}+I)`,S.onclick=function(){console.log("italic"),e.command.executeItalic()};const F=document.querySelector(".menu-item__underline");F.title=`\u4E0B\u5212\u7EBF(${s?"\u2318":"Ctrl"}+U)`;const W=F.querySelector(".options");F.querySelector(".select").onclick=function(){W.classList.toggle("visible")},F.querySelector("i").onclick=function(){console.log("underline"),e.command.executeUnderline(),W.classList.remove("visible")},F.querySelector("ul").onmousedown=function(p){const w=p.target.dataset.decorationStyle;e.command.executeUnderline({style:w}),W.classList.remove("visible")};const I=document.querySelector(".menu-item__strikeout");I.onclick=function(){console.log("strikeout"),e.command.executeStrikeout()};const Z=document.querySelector(".menu-item__superscript");Z.title=`\u4E0A\u6807(${s?"\u2318":"Ctrl"}+Shift+,)`,Z.onclick=function(){console.log("superscript"),e.command.executeSuperscript()};const V=document.querySelector(".menu-item__subscript");V.title=`\u4E0B\u6807(${s?"\u2318":"Ctrl"}+Shift+.)`,V.onclick=function(){console.log("subscript"),e.command.executeSubscript()};const m=document.querySelector("#color");m.oninput=function(){e.command.executeColor(m.value)};const Y=document.querySelector(".menu-item__color"),Q=Y.querySelector("span");Y.onclick=function(){console.log("color"),m.click()};const U=document.querySelector("#highlight");U.oninput=function(){e.command.executeHighlight(U.value)};const f=document.querySelector(".menu-item__highlight"),b=f.querySelector("span");f.onclick=function(){console.log("highlight"),U==null||U.click()};const G=document.querySelector(".menu-item__title"),x=G.querySelector(".select"),y=G.querySelector(".options");y.querySelectorAll("li").forEach((p,K)=>{p.title=`Ctrl+${s?"Option":"Alt"}+${K}`}),G.onclick=function(){console.log("title"),y.classList.toggle("visible")},y.onclick=function(p){const w=p.target.dataset.level;e.command.executeTitle(w||null)};const J=document.querySelector(".menu-item__left");J.title=`\u5DE6\u5BF9\u9F50(${s?"\u2318":"Ctrl"}+L)`,J.onclick=function(){console.log("left"),e.command.executeRowFlex(at.LEFT)};const j=document.querySelector(".menu-item__center");j.title=`\u5C45\u4E2D\u5BF9\u9F50(${s?"\u2318":"Ctrl"}+E)`,j.onclick=function(){console.log("center"),e.command.executeRowFlex(at.CENTER)};const st=document.querySelector(".menu-item__right");st.title=`\u53F3\u5BF9\u9F50(${s?"\u2318":"Ctrl"}+R)`,st.onclick=function(){console.log("right"),e.command.executeRowFlex(at.RIGHT)};const Wt=document.querySelector(".menu-item__alignment");Wt.title=`\u4E24\u7AEF\u5BF9\u9F50(${s?"\u2318":"Ctrl"}+J)`,Wt.onclick=function(){console.log("alignment"),e.command.executeRowFlex(at.ALIGNMENT)};const ot=document.querySelector(".menu-item__justify");ot.title=`\u5206\u6563\u5BF9\u9F50(${s?"\u2318":"Ctrl"}+Shift+J)`,ot.onclick=function(){console.log("justify"),e.command.executeRowFlex(at.JUSTIFY)};const $=document.querySelector(".menu-item__row-margin"),C=$.querySelector(".options");$.onclick=function(){console.log("row-margin"),C.classList.toggle("visible")},C.onclick=function(p){const K=p.target;e.command.executeRowMargin(Number(K.dataset.rowmargin))};const St=document.querySelector(".menu-item__list");St.title=`\u5217\u8868(${s?"\u2318":"Ctrl"}+Shift+U)`;const A=St.querySelector(".options");St.onclick=function(){console.log("list"),A.classList.toggle("visible")},A.onclick=function(p){const K=p.target,w=K.dataset.listType||null,v=K.dataset.listStyle;e.command.executeList(w,v)};const ft=document.querySelector(".menu-item__table"),it=document.querySelector(".menu-item__table__collapse"),Et=document.querySelector(".table-close"),$t=document.querySelector(".table-select"),Qt=document.querySelector(".table-panel"),gt=[];for(let p=0;p<10;p++){const K=document.createElement("tr");K.classList.add("table-row");const w=[];for(let v=0;v<10;v++){const H=document.createElement("td");H.classList.add("table-cel"),K.append(H),w.push(H)}Qt.append(K),gt.push(w)}let Se=0,Re=0;function Be(){gt.forEach(p=>{p.forEach(K=>K.classList.remove("active"))})}function ke(p){$t.innerText=p}function _e(){Be(),ke("\u63D2\u5165"),Se=0,Re=0,it.style.display="none"}ft.onclick=function(){console.log("table"),it.style.display="block"},Qt.onmousemove=function(p){const K=16,w=10,v=6,{offsetX:H,offsetY:B}=p;Be(),Se=Math.ceil(H/(K+v))||1,Re=Math.ceil(B/(K+w))||1,gt.forEach((tt,nt)=>{tt.forEach((rt,Xt)=>{Xt<Se&&nt<Re&&rt.classList.add("active")})}),ke(`${Re}\xD7${Se}`)},Et.onclick=function(){_e()},Qt.onclick=function(){e.command.executeInsertTable(Re,Se),_e()};const ze=document.querySelector(".menu-item__image"),ut=document.querySelector("#image");ze.onclick=function(){ut.click()},ut.onchange=function(){const p=ut.files[0],K=new FileReader;K.readAsDataURL(p),K.onload=function(){const w=new Image,v=K.result;w.src=v,w.onload=function(){e.command.executeImage({value:v,width:w.width,height:w.height}),ut.value=""}}};const Yt=document.querySelector(".menu-item__hyperlink");Yt.onclick=function(){console.log("hyperlink"),new _t({title:"\u8D85\u94FE\u63A5",data:[{type:"text",label:"\u6587\u672C",name:"name",required:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u672C",value:e.command.getRangeText()},{type:"text",label:"\u94FE\u63A5",name:"url",required:!0,placeholder:"\u8BF7\u8F93\u5165\u94FE\u63A5"}],onConfirm:p=>{var v,H;const K=(v=p.find(B=>B.name==="name"))==null?void 0:v.value;if(!K)return;const w=(H=p.find(B=>B.name==="url"))==null?void 0:H.value;!w||e.command.executeHyperlink({type:N.HYPERLINK,value:"",url:w,valueList:jt(K).map(B=>({value:B,size:16}))})}})};const Lt=document.querySelector(".menu-item__separator"),Zt=Lt.querySelector(".options");Lt.onclick=function(){console.log("separator"),Zt.classList.toggle("visible")},Zt.onmousedown=function(p){var H;let K=[];const v=(H=p.target.dataset.separator)==null?void 0:H.split(",").map(Number);v&&(v.every(tt=>tt===0)||(K=v)),e.command.executeSeparator(K)};const Ie=document.querySelector(".menu-item__page-break");Ie.onclick=function(){console.log("pageBreak"),e.command.executePageBreak()};const $e=document.querySelector(".menu-item__watermark"),qe=$e.querySelector(".options");$e.onclick=function(){console.log("watermark"),qe.classList.toggle("visible")},qe.onmousedown=function(p){const w=p.target.dataset.menu;qe.classList.toggle("visible"),w==="add"?new _t({title:"\u6C34\u5370",data:[{type:"text",label:"\u5185\u5BB9",name:"data",required:!0,placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},{type:"color",label:"\u989C\u8272",name:"color",required:!0,value:"#AEB5C0"},{type:"number",label:"\u5B57\u4F53\u5927\u5C0F",name:"size",required:!0,value:"120"},{type:"number",label:"\u900F\u660E\u5EA6",name:"opacity",required:!0,value:"0.3"},{type:"select",label:"\u91CD\u590D",name:"repeat",value:"0",required:!1,options:[{label:"\u4E0D\u91CD\u590D",value:"0"},{label:"\u91CD\u590D",value:"1"}]},{type:"number",label:"\u6C34\u5E73\u95F4\u9694",name:"horizontalGap",required:!1,value:"10"},{type:"number",label:"\u5782\u76F4\u95F4\u9694",name:"verticalGap",required:!1,value:"10"}],onConfirm:v=>{if(~v.findIndex(nt=>!nt.value))return;const B=v.reduce((nt,rt)=>(nt[rt.name]=rt.value,nt),{}),tt=B.repeat==="1";e.command.executeAddWatermark({data:B.data,color:B.color,size:Number(B.size),opacity:Number(B.opacity),repeat:tt,gap:tt&&B.horizontalGap&&B.verticalGap?[Number(B.horizontalGap),Number(B.verticalGap)]:void 0})}}):e.command.executeDeleteWatermark()};const je=document.querySelector(".menu-item__codeblock");je.onclick=function(){console.log("codeblock"),new _t({title:"\u4EE3\u7801\u5757",data:[{type:"textarea",name:"codeblock",placeholder:"\u8BF7\u8F93\u5165\u4EE3\u7801",width:500,height:300}],onConfirm:p=>{var B;const K=(B=p.find(tt=>tt.name==="codeblock"))==null?void 0:B.value;if(!K)return;const w=Hn.tokenize(K,Hn.languages.javascript),v=NR(w),H=[];for(let tt=0;tt<v.length;tt++){const nt=v[tt],rt=jt(nt.content);for(let Xt=0;Xt<rt.length;Xt++){const de={value:rt[Xt]};nt.color&&(de.color=nt.color),nt.bold&&(de.bold=!0),nt.italic&&(de.italic=!0),H.push(de)}}H.unshift({value:`
`}),e.command.executeInsertElementList(H)}})};const Vt=document.querySelector(".menu-item__control"),Ct=Vt.querySelector(".options");Vt.onclick=function(){console.log("control"),Ct.classList.toggle("visible")},Ct.onmousedown=function(p){Ct.classList.toggle("visible");const w=p.target.dataset.control;switch(w){case dt.TEXT:new _t({title:"\u6587\u672C\u63A7\u4EF6",data:[{type:"text",label:"\u5360\u4F4D\u7B26",name:"placeholder",required:!0,placeholder:"\u8BF7\u8F93\u5165\u5360\u4F4D\u7B26"},{type:"text",label:"\u9ED8\u8BA4\u503C",name:"value",placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u503C"}],onConfirm:v=>{var tt,nt;const H=(tt=v.find(rt=>rt.name==="placeholder"))==null?void 0:tt.value;if(!H)return;const B=((nt=v.find(rt=>rt.name==="value"))==null?void 0:nt.value)||"";e.command.executeInsertElementList([{type:N.CONTROL,value:"",control:{type:w,value:B?[{value:B}]:null,placeholder:H}}])}});break;case dt.SELECT:new _t({title:"\u5217\u4E3E\u63A7\u4EF6",data:[{type:"text",label:"\u5360\u4F4D\u7B26",name:"placeholder",required:!0,placeholder:"\u8BF7\u8F93\u5165\u5360\u4F4D\u7B26"},{type:"text",label:"\u9ED8\u8BA4\u503C",name:"code",placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u503C"},{type:"textarea",label:"\u503C\u96C6",name:"valueSets",required:!0,height:100,placeholder:`\u8BF7\u8F93\u5165\u503C\u96C6JSON\uFF0C\u4F8B\uFF1A
[{
"value":"\u6709",
"code":"98175"
}]`}],onConfirm:v=>{var nt,rt,Xt;const H=(nt=v.find(mt=>mt.name==="placeholder"))==null?void 0:nt.value;if(!H)return;const B=(rt=v.find(mt=>mt.name==="valueSets"))==null?void 0:rt.value;if(!B)return;const tt=(Xt=v.find(mt=>mt.name==="code"))==null?void 0:Xt.value;e.command.executeInsertElementList([{type:N.CONTROL,value:"",control:{type:w,code:tt,value:null,placeholder:H,valueSets:JSON.parse(B)}}])}});break;case dt.CHECKBOX:new _t({title:"\u590D\u9009\u6846\u63A7\u4EF6",data:[{type:"text",label:"\u9ED8\u8BA4\u503C",name:"code",placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u503C\uFF0C\u591A\u4E2A\u503C\u4EE5\u82F1\u6587\u9017\u53F7\u5206\u5272"},{type:"textarea",label:"\u503C\u96C6",name:"valueSets",required:!0,height:100,placeholder:`\u8BF7\u8F93\u5165\u503C\u96C6JSON\uFF0C\u4F8B\uFF1A
[{
"value":"\u6709",
"code":"98175"
}]`}],onConfirm:v=>{var tt,nt;const H=(tt=v.find(rt=>rt.name==="valueSets"))==null?void 0:tt.value;if(!H)return;const B=(nt=v.find(rt=>rt.name==="code"))==null?void 0:nt.value;e.command.executeInsertElementList([{type:N.CONTROL,value:"",control:{type:w,code:B,value:null,valueSets:JSON.parse(H)}}])}});break;case dt.RADIO:new _t({title:"\u5355\u9009\u6846\u63A7\u4EF6",data:[{type:"text",label:"\u9ED8\u8BA4\u503C",name:"code",placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u503C"},{type:"textarea",label:"\u503C\u96C6",name:"valueSets",required:!0,height:100,placeholder:`\u8BF7\u8F93\u5165\u503C\u96C6JSON\uFF0C\u4F8B\uFF1A
[{
"value":"\u6709",
"code":"98175"
}]`}],onConfirm:v=>{var tt,nt;const H=(tt=v.find(rt=>rt.name==="valueSets"))==null?void 0:tt.value;if(!H)return;const B=(nt=v.find(rt=>rt.name==="code"))==null?void 0:nt.value;e.command.executeInsertElementList([{type:N.CONTROL,value:"",control:{type:w,code:B,value:null,valueSets:JSON.parse(H)}}])}});break;case dt.DATE:new _t({title:"\u65E5\u671F\u63A7\u4EF6",data:[{type:"text",label:"\u5360\u4F4D\u7B26",name:"placeholder",required:!0,placeholder:"\u8BF7\u8F93\u5165\u5360\u4F4D\u7B26"},{type:"text",label:"\u9ED8\u8BA4\u503C",name:"value",placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u503C"},{type:"select",label:"\u65E5\u671F\u683C\u5F0F",name:"dateFormat",value:"yyyy-MM-dd hh:mm:ss",required:!0,options:[{label:"yyyy-MM-dd hh:mm:ss",value:"yyyy-MM-dd hh:mm:ss"},{label:"yyyy-MM-dd",value:"yyyy-MM-dd"}]}],onConfirm:v=>{var nt,rt,Xt;const H=(nt=v.find(mt=>mt.name==="placeholder"))==null?void 0:nt.value;if(!H)return;const B=((rt=v.find(mt=>mt.name==="value"))==null?void 0:rt.value)||"",tt=((Xt=v.find(mt=>mt.name==="dateFormat"))==null?void 0:Xt.value)||"";e.command.executeInsertElementList([{type:N.CONTROL,value:"",control:{type:w,dateFormat:tt,value:B?[{value:B}]:null,placeholder:H}}])}});break}};const pt=document.querySelector(".menu-item__checkbox");pt.onclick=function(){console.log("checkbox"),e.command.executeInsertElementList([{type:N.CHECKBOX,checkbox:{value:!1},value:""}])};const Nt=document.querySelector(".menu-item__radio");Nt.onclick=function(){console.log("radio"),e.command.executeInsertElementList([{type:N.RADIO,checkbox:{value:!1},value:""}])};const Jt=document.querySelector(".menu-item__latex");Jt.onclick=function(){console.log("LaTeX"),new _t({title:"LaTeX",data:[{type:"textarea",height:100,name:"value",placeholder:"\u8BF7\u8F93\u5165LaTeX\u6587\u672C"}],onConfirm:p=>{var w;const K=(w=p.find(v=>v.name==="value"))==null?void 0:w.value;!K||e.command.executeInsertElementList([{type:N.LATEX,value:K}])}})};const Ft=document.querySelector(".menu-item__date"),Pt=Ft.querySelector(".options");Ft.onclick=function(){console.log("date"),Pt.classList.toggle("visible");const p=document.body.getBoundingClientRect(),K=Pt.getBoundingClientRect();K.left+K.width>p.width?(Pt.style.right="0px",Pt.style.left="unset"):(Pt.style.right="unset",Pt.style.left="0px");const w=new Date,v=w.getFullYear().toString(),H=(w.getMonth()+1).toString().padStart(2,"0"),B=w.getDate().toString().padStart(2,"0"),tt=w.getHours().toString().padStart(2,"0"),nt=w.getMinutes().toString().padStart(2,"0"),rt=w.getSeconds().toString().padStart(2,"0"),Xt=`${v}-${H}-${B}`,mt=`${Xt} ${tt}:${nt}:${rt}`;Pt.querySelector("li:first-child").innerText=Xt,Pt.querySelector("li:last-child").innerText=mt},Pt.onmousedown=function(p){const K=p.target,w=K.dataset.format;Pt.classList.toggle("visible"),e.command.executeInsertElementList([{type:N.DATE,value:"",dateFormat:w,valueList:[{value:K.innerText.trim()}]}])};const yt=document.querySelector(".menu-item__block");yt.onclick=function(){console.log("block"),new _t({title:"\u5185\u5BB9\u5757",data:[{type:"select",label:"\u7C7B\u578B",name:"type",value:"iframe",required:!0,options:[{label:"\u7F51\u5740",value:"iframe"},{label:"\u89C6\u9891",value:"video"}]},{type:"number",label:"\u5BBD\u5EA6",name:"width",placeholder:"\u8BF7\u8F93\u5165\u5BBD\u5EA6\uFF08\u9ED8\u8BA4\u9875\u9762\u5185\u5BBD\u5EA6\uFF09"},{type:"number",label:"\u9AD8\u5EA6",name:"height",required:!0,placeholder:"\u8BF7\u8F93\u5165\u9AD8\u5EA6"},{type:"input",label:"\u5730\u5740",name:"src",required:!1,placeholder:"\u8BF7\u8F93\u5165\u5730\u5740"},{type:"textarea",label:"HTML",height:100,name:"srcdoc",required:!1,placeholder:"\u8BF7\u8F93\u5165HTML\u4EE3\u7801\uFF08\u4EC5\u7F51\u5740\u7C7B\u578B\u6709\u6548\uFF09"}],onConfirm:p=>{var rt,Xt,mt,de,ti;const K=(rt=p.find(wt=>wt.name==="type"))==null?void 0:rt.value;if(!K)return;const w=(Xt=p.find(wt=>wt.name==="width"))==null?void 0:Xt.value,v=(mt=p.find(wt=>wt.name==="height"))==null?void 0:mt.value;if(!v)return;const H=(de=p.find(wt=>wt.name==="src"))==null?void 0:de.value,B=(ti=p.find(wt=>wt.name==="srcdoc"))==null?void 0:ti.value,tt={type:K};if(tt.type===Ae.IFRAME){if(!H&&!B)return;tt.iframeBlock={src:H,srcdoc:B}}else if(tt.type===Ae.VIDEO){if(!H)return;tt.videoBlock={src:H}}const nt={type:N.BLOCK,value:"",height:Number(v),block:tt};w&&(nt.width=Number(w)),e.command.executeInsertElementList([nt])}})};const bt=document.querySelector(".menu-item__ai-edit"),Ut=document.querySelector(".menu-item__ai-edit-box"),xt=document.querySelector(".menu-item__ai-edit-box span"),Dt=document.querySelector(".ai-edit-outline-box"),qt=document.querySelector(".ai-edit-content-box"),ce=document.querySelector("#aiTitle"),Ke=document.querySelector("#aiSelect"),ue=document.querySelector("#watchOutline"),We=document.querySelector("#watchArticle"),On=document.querySelector("#outlineView"),Mn=document.querySelector("#articleView"),Ve=document.querySelector("#articleInsert"),Ye=document.querySelector("#createArticle"),Ri=document.querySelector("#outlineText"),ci=document.querySelector("#articleText"),Pn=document.querySelector("#articleLoader"),Di=document.querySelector("#outlineLoader");bt.title="ai\u5199\u4F5C",bt.onclick=function(){Ut.classList.contains("hide")?Ut.classList.remove("hide"):Ut.classList.add("hide")};function Tn(){Ut.classList.add("hide"),Ut.classList.remove("add-height"),Dt==null||Dt.classList.remove("hide"),qt==null||qt.classList.add("hide"),ui("outline"),ci.value="",Ri.value=""}xt.onclick=function(){Tn()},document.querySelector("#aiArticle").onclick=function(){const p=ce.value,K=Ke.value;p==""||K==""||(window.parent.postMessage({type:"aiCreater",data:{title:p,category:K},action:"creation_leader"},"*"),Dt==null||Dt.classList.add("hide"),qt==null||qt.classList.remove("hide"),Ut.classList.add("add-height"),Di.classList.remove("hide"))};function ui(p){switch(Ri.value==""&&Di.classList.remove("hide"),ci.value==""&&Pn.classList.remove("hide"),p){case"outline":ue.classList.add("active-ai"),We.classList.remove("active-ai"),Ye==null||Ye.classList.remove("hide"),Ve==null||Ve.classList.add("hide"),On.classList.remove("hide"),Mn.classList.add("hide");break;case"article":We.classList.add("active-ai"),ue.classList.remove("active-ai"),Ye==null||Ye.classList.add("hide"),Ve==null||Ve.classList.remove("hide"),On.classList.add("hide"),Mn.classList.remove("hide");break}}ue.onclick=()=>ui("outline"),We.onclick=()=>ui("article"),Ye.onclick=function(){ui("article"),window.parent.postMessage({type:"aiCreater",data:{title:ce.value,outline:Ri.value},action:"creation_builder"},"*")};function Sn(p,K){K=="outline"?(Ri.value=p,Di.classList.add("hide")):(ci.value=p,Pn.classList.add("hide"))}Ve.onclick=function(){const p=ci.value||"";e.command.executeAiArticle(p),Tn()};const ie=document.querySelector(".menu-item__search__collapse"),Xe=document.querySelector(".menu-item__search__collapse__search input"),Xn=document.querySelector(".menu-item__search__collapse__replace input"),di=document.querySelector(".menu-item__search");di.title=`\u641C\u7D22\u4E0E\u66FF\u6362(${s?"\u2318":"Ctrl"}+F)`;const Nn=ie.querySelector(".search-result");function Ee(){const p=e.command.getSearchNavigateInfo();if(p){const{index:K,count:w}=p;Nn.innerText=`${K}/${w}`}else Nn.innerText=""}di.onclick=function(){console.log("search"),ie.style.display="block";const p=document.body.getBoundingClientRect(),K=di.getBoundingClientRect(),w=ie.getBoundingClientRect();K.left+w.width>p.width?(ie.style.right="0px",ie.style.left="unset"):ie.style.right="unset",Xe.focus()},ie.querySelector("span").onclick=function(){ie.style.display="none",Xe.value="",Xn.value="",e.command.executeSearch(null),Ee()},Xe.oninput=function(){e.command.executeSearch(Xe.value||null),Ee()},Xe.onkeydown=function(p){p.key==="Enter"&&(e.command.executeSearch(Xe.value||null),Ee())},ie.querySelector("button").onclick=function(){const p=Xe.value,K=Xn.value;p&&K&&p!==K&&e.command.executeReplace(K)},ie.querySelector(".arrow-left").onclick=function(){e.command.executeSearchNavigatePre(),Ee()},ie.querySelector(".arrow-right").onclick=function(){e.command.executeSearchNavigateNext(),Ee()};const Fn=document.querySelector(".menu-item__print");Fn.title=`\u6253\u5370(${s?"\u2318":"Ctrl"}+P)`,Fn.onclick=function(){console.log("print"),e.command.executePrint()};const Ds=document.querySelector(".editor-option");Ds.onclick=function(){const p=e.command.getOptions();new _t({title:"\u7F16\u8F91\u5668\u914D\u7F6E",data:[{type:"textarea",name:"option",width:350,height:300,required:!0,value:JSON.stringify(p,null,2),placeholder:"\u8BF7\u8F93\u5165\u7F16\u8F91\u5668\u914D\u7F6E"}],onConfirm:K=>{var H;const w=(H=K.find(B=>B.name==="option"))==null?void 0:H.value;if(!w)return;const v=JSON.parse(w);e.command.executeUpdateOptions(v)}})};async function fn(){const p=await e.command.getCatalog(),K=document.querySelector(".catalog__main");if(K.innerHTML="",p){const w=(v,H)=>{for(let B=0;B<H.length;B++){const tt=H[B],nt=document.createElement("div");nt.classList.add("catalog-item");const rt=document.createElement("div");rt.classList.add("catalog-item__content");const Xt=document.createElement("span");Xt.innerText=tt.name,rt.append(Xt),rt.onclick=()=>{e.command.executeLocationCatalog(tt.id)},nt.append(rt),tt.subCatalog&&tt.subCatalog.length&&w(nt,tt.subCatalog),v.append(nt)}};w(K,p)}}let hi=!0;const pn=document.querySelector(".catalog"),Ks=document.querySelector(".catalog-mode"),Es=document.querySelector(".catalog__header__close"),mn=()=>{hi=!hi,hi?(pn.style.display="block",fn()):pn.style.display="none"};Ks.onclick=mn,Es.onclick=mn;const In=document.querySelector(".page-mode"),gi=In.querySelector(".options");In.onclick=function(){gi.classList.toggle("visible")},gi.onclick=function(p){const K=p.target;e.command.executePageMode(K.dataset.pageMode)},document.querySelector(".page-scale-percentage").onclick=function(){console.log("page-scale-recovery"),e.command.executePageScaleRecovery()},document.querySelector(".page-scale-minus").onclick=function(){console.log("page-scale-minus"),e.command.executePageScaleMinus()},document.querySelector(".page-scale-add").onclick=function(){console.log("page-scale-add"),e.command.executePageScaleAdd()};const Wn=document.querySelector(".paper-size"),Ki=Wn.querySelector(".options");Wn.onclick=function(){Ki.classList.toggle("visible")},Ki.onclick=function(p){const K=p.target,w=K.dataset.paperSize,[v,H]=w.split("*").map(Number);e.command.executePaperSize(v,H),Ki.querySelectorAll("li").forEach(B=>B.classList.remove("active")),K.classList.add("active")};const Vn=document.querySelector(".paper-direction"),Ei=Vn.querySelector(".options");Vn.onclick=function(){Ei.classList.toggle("visible")},Ei.onclick=function(p){const K=p.target,w=K.dataset.paperDirection;e.command.executePaperDirection(w),Ei.querySelectorAll("li").forEach(v=>v.classList.remove("active")),K.classList.add("active")};const bs=document.querySelector(".paper-margin");bs.onclick=function(){const[p,K,w,v]=e.command.getPaperMargin();new _t({title:"\u9875\u8FB9\u8DDD",data:[{type:"text",label:"\u4E0A\u8FB9\u8DDD",name:"top",required:!0,value:`${p}`,placeholder:"\u8BF7\u8F93\u5165\u4E0A\u8FB9\u8DDD"},{type:"text",label:"\u4E0B\u8FB9\u8DDD",name:"bottom",required:!0,value:`${w}`,placeholder:"\u8BF7\u8F93\u5165\u4E0B\u8FB9\u8DDD"},{type:"text",label:"\u5DE6\u8FB9\u8DDD",name:"left",required:!0,value:`${v}`,placeholder:"\u8BF7\u8F93\u5165\u5DE6\u8FB9\u8DDD"},{type:"text",label:"\u53F3\u8FB9\u8DDD",name:"right",required:!0,value:`${K}`,placeholder:"\u8BF7\u8F93\u5165\u53F3\u8FB9\u8DDD"}],onConfirm:H=>{var Xt,mt,de,ti;const B=(Xt=H.find(wt=>wt.name==="top"))==null?void 0:Xt.value;if(!B)return;const tt=(mt=H.find(wt=>wt.name==="bottom"))==null?void 0:mt.value;if(!tt)return;const nt=(de=H.find(wt=>wt.name==="left"))==null?void 0:de.value;if(!nt)return;const rt=(ti=H.find(wt=>wt.name==="right"))==null?void 0:ti.value;!rt||e.command.executeSetPaperMargin([Number(B),Number(rt),Number(tt),Number(nt)])}})};const Yn=document.querySelector(".fullscreen");Yn.onclick=Un,window.addEventListener("keydown",p=>{p.key==="F11"&&(Un(),p.preventDefault())}),document.addEventListener("fullscreenchange",()=>{Yn.classList.toggle("exist")});function Un(){console.log("fullscreen"),document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()}let Li=0;const Zn=[{mode:Rt.EDIT,name:"\u7F16\u8F91\u6A21\u5F0F"},{mode:Rt.CLEAN,name:"\u6E05\u6D01\u6A21\u5F0F"},{mode:Rt.READONLY,name:"\u53EA\u8BFB\u6A21\u5F0F"},{mode:Rt.FORM,name:"\u8868\u5355\u6A21\u5F0F"},{mode:Rt.PRINT,name:"\u6253\u5370\u6A21\u5F0F"},{mode:Rt.DESIGN,name:"\u8BBE\u8BA1\u6A21\u5F0F"}],Qn=document.querySelector(".editor-mode");Qn.onclick=function(){Li===Zn.length-1?Li=0:Li++;const{name:p,mode:K}=Zn[Li];Qn.innerText=p,e.command.executeMode(K);const w=K===Rt.READONLY,v=["search","print"];document.querySelectorAll(".menu-item>div").forEach(H=>{const B=H.dataset.menu;w&&(!B||!v.includes(B))?H.classList.add("disable"):H.classList.remove("disable")})};const be=document.querySelector(".comment");async function xs(){const p=await e.command.getGroupIds();for(const K of yn){const w=be.querySelector(`.comment-item[data-id='${K.id}']`);if(p.includes(K.id)){if(!w){const v=document.createElement("div");v.classList.add("comment-item"),v.setAttribute("data-id",K.id),v.onclick=()=>{e.command.executeLocationGroup(K.id)},be.append(v);const H=document.createElement("div");H.classList.add("comment-item__title"),H.append(document.createElement("span"));const B=document.createElement("span");B.innerText=K.rangeText,H.append(B);const tt=document.createElement("i");tt.onclick=()=>{e.command.executeDeleteGroup(K.id)},H.append(tt),v.append(H);const nt=document.createElement("div");nt.classList.add("comment-item__info");const rt=document.createElement("span");rt.innerText=K.userName;const Xt=document.createElement("span");Xt.innerText=K.createdDate,nt.append(rt),nt.append(Xt),v.append(nt);const mt=document.createElement("div");mt.classList.add("comment-item__content"),mt.innerText=K.content,v.append(mt),be.append(v)}}else w==null||w.remove()}}e.listener.rangeStyleChange=function(p){if(p.type===N.AIEDIT?bt.classList.add("active"):bt.classList.remove("active"),p.type===N.SUBSCRIPT?V.classList.add("active"):V.classList.remove("active"),p.type===N.SUPERSCRIPT?Z.classList.add("active"):Z.classList.remove("active"),p.type===N.SEPARATOR?Lt.classList.add("active"):Lt.classList.remove("active"),Zt.querySelectorAll("li").forEach(H=>H.classList.remove("active")),p.type===N.SEPARATOR){const H=p.dashArray.join(",")||"0,0",B=Zt.querySelector(`[data-separator='${H}']`);B&&B.classList.add("active")}g.querySelectorAll("li").forEach(H=>H.classList.remove("active"));const K=g.querySelector(`[data-family='${p.font}']`);K&&(d.innerText=K.innerText,d.style.fontFamily=p.font,K.classList.add("active")),P.querySelectorAll("li").forEach(H=>H.classList.remove("active"));const w=P.querySelector(`[data-size='${p.size}']`);if(w?(O.innerText=w.innerText,w.classList.add("active")):O.innerText=`${p.size}`,p.bold?X.classList.add("active"):X.classList.remove("active"),p.italic?S.classList.add("active"):S.classList.remove("active"),p.underline?F.classList.add("active"):F.classList.remove("active"),p.strikeout?I.classList.add("active"):I.classList.remove("active"),p.color?(Y.classList.add("active"),m.value=p.color,Q.style.backgroundColor=p.color):(Y.classList.remove("active"),m.value="#000000",Q.style.backgroundColor="#000000"),p.highlight?(f.classList.add("active"),U.value=p.highlight,b.style.backgroundColor=p.highlight):(f.classList.remove("active"),U.value="#ffff00",b.style.backgroundColor="#ffff00"),J.classList.remove("active"),j.classList.remove("active"),st.classList.remove("active"),Wt.classList.remove("active"),ot.classList.remove("active"),p.rowFlex&&p.rowFlex==="right"?st.classList.add("active"):p.rowFlex&&p.rowFlex==="center"?j.classList.add("active"):p.rowFlex&&p.rowFlex==="alignment"?Wt.classList.add("active"):p.rowFlex&&p.rowFlex==="justify"?ot.classList.add("active"):J.classList.add("active"),C.querySelectorAll("li").forEach(H=>H.classList.remove("active")),C.querySelector(`[data-rowmargin='${p.rowMargin}']`).classList.add("active"),p.undo?o.classList.remove("no-allow"):o.classList.add("no-allow"),p.redo?l.classList.remove("no-allow"):l.classList.add("no-allow"),p.painter?a.classList.add("active"):a.classList.remove("active"),y.querySelectorAll("li").forEach(H=>H.classList.remove("active")),p.level){const H=y.querySelector(`[data-level='${p.level}']`);x.innerText=H.innerText,H.classList.add("active")}else x.innerText="\u6B63\u6587",y.querySelector("li:first-child").classList.add("active");if(A.querySelectorAll("li").forEach(H=>H.classList.remove("active")),p.listType){St.classList.add("active");const H=p.listType,B=p.listType===oe.OL?Gt.DECIMAL:p.listType,tt=A.querySelector(`[data-list-type='${H}'][data-list-style='${B}']`);tt&&tt.classList.add("active")}else St.classList.remove("active");if(be.querySelectorAll(".comment-item").forEach(H=>{H.classList.remove("active")}),p.groupIds){const[H]=p.groupIds,B=be.querySelector(`.comment-item[data-id='${H}']`);B&&(B.classList.add("active"),pR(be,B))}},e.listener.visiblePageNoListChange=function(p){const K=p.map(w=>w+1).join("\u3001");document.querySelector(".page-no-list").innerText=K},e.listener.pageSizeChange=function(p){document.querySelector(".page-size").innerText=`${p}`},e.listener.intersectionPageNoChange=function(p){document.querySelector(".page-no").innerText=`${p+1}`},e.listener.pageScaleChange=function(p){document.querySelector(".page-scale-percentage").innerText=`${Math.floor(p*10*10)}%`},e.listener.controlChange=function(p){["table","hyperlink","separator","page-break","control"].forEach(w=>{const v=document.querySelector(`.menu-item__${w}`);p?v.classList.add("disable"):v.classList.remove("disable")})},e.listener.pageModeChange=function(p){const K=gi.querySelector(`[data-page-mode='${p}']`);gi.querySelectorAll("li").forEach(w=>w.classList.remove("active")),K.classList.add("active")};const Dn=async function(){const p=await e.command.getWordCount();document.querySelector(".word-count").innerText=`${p||0}`,hi&&Vs(()=>{fn()}),Vs(()=>{xs()})};e.listener.contentChange=fR(Dn,200),Dn(),e.listener.saved=function(p){console.log("elementList: ",p)},e.register.contextMenuList([{name:"\u63D2\u5165\u6761\u5F62\u7801",when:p=>!p.isReadonly&&p.editorTextFocus,callback:p=>{const K=window.prompt("\u8BF7\u8F93\u5165\u5185\u5BB9");p.executeInsertBarcode1D(K,200,100)}},{name:"\u63D2\u5165\u4E8C\u7EF4\u7801",when:p=>!p.isReadonly&&p.editorTextFocus,callback:p=>{const K=window.prompt("\u8BF7\u8F93\u5165\u5185\u5BB9");p.executeInsertBarcode2D(K,200,200)}},{name:"\u5BFC\u51FA\u6587\u6863",when:()=>!0,callback:p=>{r==""&&(r=window.prompt("\u8BF7\u8F93\u5165\u6587\u6863\u6807\u9898")),p.executeExportDocx({fileName:r,isFile:!0})}},{name:"\u5BFC\u5165\u6587\u6863",when:()=>!0,callback:()=>{i.click()}},{name:"\u5BFC\u5165excel",when:()=>!0,callback:()=>{n.click()}},{name:"\u6279\u6CE8",when:p=>!p.isReadonly&&p.editorHasSelection&&p.zone===lt.MAIN,callback:p=>{new _t({title:"\u6279\u6CE8",data:[{type:"textarea",label:"\u6279\u6CE8",height:100,name:"value",required:!0,placeholder:"\u8BF7\u8F93\u5165\u6279\u6CE8"}],onConfirm:K=>{var H;const w=(H=K.find(B=>B.name==="value"))==null?void 0:H.value;if(!w)return;const v=p.executeSetGroup();!v||yn.push({id:v,content:w,userName:"godoos",rangeText:p.getRangeText(),createdDate:new Date().toLocaleString()})}})}},{name:"\u7B7E\u540D",icon:"signature",when:p=>!p.isReadonly&&p.editorTextFocus,callback:p=>{new FR({onConfirm(K){if(!K)return;const{value:w,width:v,height:H}=K;!w||!v||!H||p.executeInsertElementList([{value:w,width:v,height:H,type:N.IMAGE}])}})}},{name:"\u683C\u5F0F\u6574\u7406",icon:"word-tool",when:p=>!p.isReadonly,callback:p=>{p.executeWordTool()}}]),n.onchange=()=>{var w;const p=(w=n==null?void 0:n.files)==null?void 0:w[0];if(!p)return;const K=new FileReader;K.onload=v=>{var B;const H=(B=v==null?void 0:v.target)==null?void 0:B.result;H instanceof ArrayBuffer&&e.command.executeImportExcel({arrayBuffer:H}),n.value=""},K.readAsArrayBuffer(p)},i.onchange=()=>{var w;const p=(w=i==null?void 0:i.files)==null?void 0:w[0];if(!p)return;const K=new FileReader;K.onload=v=>{var B;const H=(B=v==null?void 0:v.target)==null?void 0:B.result;H instanceof ArrayBuffer&&e.command.executeImportDocx({arrayBuffer:H}),i.value=""},K.readAsArrayBuffer(p)};const Kn=()=>{r==""&&(r=window.prompt("\u8BF7\u8F93\u5165\u6587\u6863\u6807\u9898")),console.log(r),e.command.executeExportDocx({fileName:r,isFile:!1})};e.register.shortcutList([{key:z.S,mod:!0,isGlobal:!0,callback:()=>{Kn()}},{key:z.P,mod:!0,isGlobal:!0,callback:p=>{p.executePrint()}},{key:z.F,mod:!0,isGlobal:!0,callback:p=>{const K=p.getRangeText();di.click(),K&&(Xe.value=K,e.command.executeSearch(K),Ee())}},{key:z.MINUS,ctrl:!0,isGlobal:!0,callback:p=>{p.executePageScaleMinus()}},{key:z.EQUAL,ctrl:!0,isGlobal:!0,callback:p=>{p.executePageScaleAdd()}},{key:z.ZERO,ctrl:!0,isGlobal:!0,callback:p=>{p.executePageScaleRecovery()}}]),document.querySelector(".menu-item__save").addEventListener("click",()=>{Kn()});const Cs=p=>{const K=window.atob(p),w=K.length,v=new Uint8Array(w);for(let H=0;H<w;H++)v[H]=K.charCodeAt(H);return v.buffer};function ws(p){if(p===""||p.trim()==="")return!1;try{return btoa(atob(p))==p}catch{return!1}}const En=p=>{const K=p.data;if(K.type==="start"){r=K.title;return}if(K.type==="init"){const w=K.data;if(!w||!w.title)return;r=w.title,ws(w.content)&&(w.content=Cs(w.content)),w.content instanceof ArrayBuffer?e.command.executeImportDocx({arrayBuffer:w.content}):alert("\u5BFC\u5165\u5931\u8D25");return}K.type=="aiReciver"&&(K.action=="creation_leader"?Sn(K.data,"outline"):K.action=="creation_builder"?Sn(K.data,"article"):QR(K))};window.parent.postMessage({type:"initSuccess"},"*"),window.addEventListener("message",En),window.addEventListener("unload",()=>{window.removeEventListener("message",En)})};