ht-emr 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.id="canvas-editor-style",e.appendChild(document.createTextNode(`.ce-select-control-popup{max-width:160px;min-width:69px;max-height:225px;position:absolute;z-index:1;border:1px solid #e4e7ed;border-radius:4px;background-color:#fff;box-shadow:0 2px 12px #0000001a;box-sizing:border-box;margin:5px 0;overflow-y:auto}.ce-select-control-popup ul{list-style:none;padding:3px 0;margin:0;box-sizing:border-box}.ce-select-control-popup ul li{font-size:13px;padding:0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#666;height:36px;line-height:36px;box-sizing:border-box;cursor:pointer}.ce-select-control-popup ul li:hover{background-color:#eef2fd}.ce-select-control-popup ul li.active{color:var(--COLOR-HOVER, #5175f4);font-weight:700}.ce-calculator{position:absolute;z-index:1;border:1px solid #e4e7ed;border-radius:4px;background-color:#fff;box-shadow:0 2px 12px #0000001a;box-sizing:border-box;margin:5px 0;padding:8px;width:200px}.ce-calculator-display{width:100%;height:40px;line-height:40px;text-align:right;padding:0 10px;margin-bottom:8px;border:1px solid #e4e7ed;border-radius:4px;background-color:#f5f7fa;font-size:16px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis}.ce-calculator-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.ce-calculator-button{width:100%;height:36px;border:1px solid #e4e7ed;border-radius:4px;background-color:#fff;font-size:14px;cursor:pointer;transition:all .2s;box-sizing:border-box}.ce-calculator-button:hover{background-color:#eef2fd;border-color:#c6d1ff}.ce-calculator-button:active{background-color:#e1e8ff}.ce-calculator-button.operator{background-color:#f5f7fa}.ce-calculator-button.operator:hover{background-color:#eef2fd}.ce-calculator-button.equal{background-color:var(--COLOR-HOVER, #5175f4);color:#fff;border-color:var(--COLOR-HOVER, #5175f4)}.ce-calculator-button.equal:hover{background-color:var(--COLOR-HOVER, #6a84ff);border-color:var(--COLOR-HOVER, #6a84ff)}.ce-calculator-button.utility{background-color:#f0f2f5}.ce-calculator-button.utility:hover{background-color:#e6e8eb}.ce-date-container{display:none;width:300px;overflow:hidden;left:0;right:0;position:absolute;z-index:1;color:#606266;background:#fff;border-radius:4px;padding:10px;-webkit-user-select:none;user-select:none;border:1px solid #e4e7ed;box-shadow:0 2px 12px #0000001a}.ce-date-container.active{display:block}.ce-date-wrap{display:none}.ce-date-wrap.active{display:block}.ce-date-title{display:flex;justify-content:center;align-items:center;text-align:center;color:#606266;font-size:16px}.ce-date-title>span{display:inline-block}.ce-date-title>span:not(.ce-date-title__now){font-family:cursive;cursor:pointer}.ce-date-title>span:not(.ce-date-title__now):hover{color:#5175f4}.ce-date-title .ce-date-title__pre-year,.ce-date-title .ce-date-title__pre-month{width:15%}.ce-date-title .ce-date-title__now{width:40%}.ce-date-title .ce-date-title__next-year,.ce-date-title .ce-date-title__next-month{width:15%}.ce-date-week{width:100%;display:flex;justify-content:center;margin-top:15px;padding-bottom:5px;border-bottom:1px solid #e4e7ed}.ce-date-week>span{list-style:none;width:calc(100%/7);text-align:center;color:#606266;font-size:14px}.ce-date-day{width:100%;display:flex;flex-wrap:wrap;align-items:center;margin-top:5px}.ce-date-day>div{width:calc(100%/7);height:40px;text-align:center;color:#606266;font-size:14px;cursor:pointer;line-height:40px;border-radius:4px}.ce-date-day>div:hover{color:#5175f4;opacity:.8}.ce-date-day>div.active{color:#5175f4;font-weight:700}.ce-date-day>div.disable{color:#c0c4cc}.ce-date-day>div.select{color:#fff;background-color:#5175f4}.ce-time-wrap{display:none;padding:10px;height:286px}.ce-time-wrap ::-webkit-scrollbar{width:0}.ce-time-wrap.active{display:flex}.ce-time-wrap li{list-style:none}.ce-time-wrap>li{width:33.3%;height:100%;text-align:center}.ce-time-wrap>li>span{transform:translateY(-5px);display:inline-block}.ce-time-wrap>li>ol{height:calc(100% - 20px);overflow-y:auto;border:1px solid #e2e2e2;position:relative}.ce-time-wrap>li:first-child>ol{border-right:0}.ce-time-wrap>li:last-child>ol{border-left:0}.ce-time-wrap>li>ol>li{line-height:30px;cursor:pointer;transition:all .3s}.ce-time-wrap>li>ol>li:hover{background-color:#eaeaea}.ce-time-wrap>li>ol>li.active{color:#fff;background:#5175f4}.ce-date-menu{width:100%;height:28px;display:flex;justify-content:flex-end;align-items:center;padding-top:10px;position:relative;border-top:1px solid #e4e7ed}.ce-date-menu button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #dcdfe6;color:#606266;appearance:none;text-align:center;box-sizing:border-box;outline:none;transition:.1s;font-weight:500;-webkit-user-select:none;user-select:none;padding:7px 15px;font-size:12px;border-radius:3px;margin:0 0 0 10px}.ce-date-menu button:hover{color:#5175f4;border-color:#5175f4}.ce-date-menu button.ce-date-menu__time{border:1px solid transparent;position:absolute;left:0;margin-left:0}.ce-date-menu button.ce-date-menu__time:hover{color:#5175f4}.ce-block-item{position:absolute;z-index:0;background-color:#fff;border:1px solid rgb(235 236 240)}.ce-block-item .ce-resizer-selection{width:100%;height:100%}.ce-block-item .ce-resizer-mask{position:absolute;inset:0;z-index:1;background-color:transparent}.ce-table-tool__row{position:absolute;width:12px;border-radius:6.5px;overflow:hidden;background-color:#e2e6ed}.ce-table-tool__row .ce-table-tool__row__item{width:100%;position:relative;cursor:pointer;transition:all .3s}.ce-table-tool__row .ce-table-tool__row__item:after{content:"";position:absolute;bottom:0;left:2px;width:8px;height:1px;background-color:#c0c6cf}.ce-table-tool__row .ce-table-tool__row__item:hover{background-color:#dadce0}.ce-table-tool__row .ce-table-tool__row__item:last-child:after{display:none}.ce-table-tool__quick__add{width:16px;height:16px;position:absolute;border-radius:50%;background-color:#e2e6ed;cursor:pointer}.ce-table-tool__quick__add:after{content:"+";color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-55%)}.ce-table-tool__select{width:16px;height:18px;position:absolute;border-radius:3px;cursor:pointer}.ce-table-tool__select:hover{background-color:#e2e6ed}.ce-table-tool__select:after{content:":::";color:#aaaaab;position:absolute;top:50%;left:50%;transform:translate(-75%,-50%) rotate(-90deg)}.ce-table-tool__col{position:absolute;height:12px;border-radius:6.5px;overflow:hidden;background-color:#e2e6ed;display:flex}.ce-table-tool__col .ce-table-tool__col__item{height:100%;position:relative;cursor:pointer;transition:all .3s}.ce-table-tool__col .ce-table-tool__col__item:after{content:"";position:absolute;top:2px;left:-1px;width:1px;height:8px;z-index:1;background-color:#c0c6cf}.ce-table-tool__col .ce-table-tool__col__item:hover{background-color:#dadce0}.ce-table-tool__col .ce-table-tool__col__item:first-child:after{display:none}.ce-table-tool__row .ce-table-tool__row__item.active,.ce-table-tool__col .ce-table-tool__col__item.active{background-color:#c4d7fa}.ce-table-tool__col .ce-table-tool__anchor{right:-5px;width:10px;height:12px;z-index:9;position:absolute;cursor:col-resize}.ce-table-tool__row .ce-table-tool__anchor{bottom:-5px;left:0;width:12px;height:10px;z-index:9;position:absolute;cursor:row-resize}.ce-table-anchor__line{z-index:9;position:absolute;border:1px dotted #000000}.ce-table-tool__border{position:absolute;z-index:1;background:transparent;pointer-events:none}.ce-table-tool__border__row{position:absolute;cursor:row-resize;pointer-events:auto}.ce-table-tool__border__col{position:absolute;cursor:col-resize;pointer-events:auto}.ce-resizer-selection{position:absolute;border:1px solid;pointer-events:none}.ce-resizer-selection .resizer-handle{position:absolute;z-index:9;width:10px;height:10px;box-shadow:0 1px 4px #0000004d;border-radius:5px;border:2px solid #ffffff;box-sizing:border-box;pointer-events:initial}.ce-resizer-selection .handle-0{cursor:nw-resize}.ce-resizer-selection .handle-1{cursor:n-resize}.ce-resizer-selection .handle-2{cursor:ne-resize}.ce-resizer-selection .handle-3{cursor:e-resize}.ce-resizer-selection .handle-4{cursor:se-resize}.ce-resizer-selection .handle-5{cursor:s-resize}.ce-resizer-selection .handle-6{cursor:sw-resize}.ce-resizer-selection .handle-7{cursor:w-resize}.ce-resizer-size-view{display:flex;align-items:center;height:20px;white-space:nowrap;position:absolute;z-index:9;top:-30px;left:0;opacity:.9;background-color:#000;padding:0 5px;border-radius:4px}.ce-resizer-size-view span{color:#fff;font-size:12px}.ce-resizer-image{position:absolute;opacity:.5}.ce-image-previewer{position:fixed;left:0;top:0;z-index:1000;width:100%;height:100%;overflow:hidden;background:#f2f4f7;display:flex;align-items:center;justify-content:center;animation:previewerAnimation .3s}@keyframes previewerAnimation{0%{opacity:.1}to{opacity:1}}.ce-image-previewer .image-close{width:24px;height:24px;display:inline-block;position:absolute;right:50px;top:30px;z-index:99;cursor:pointer;background:url("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M23.97%207l1.415%201.414-7.779%207.778%207.779%207.779-1.414%201.414-7.779-7.779-7.778%207.779L7%2023.97l7.778-7.779L7%208.414%208.414%207l7.778%207.778L23.971%207z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e") no-repeat;background-size:100% 100%;transition:all .3s;border-radius:50%}.ce-image-previewer .image-close:hover{background-color:#e2e6ed}.ce-image-previewer .ce-image-container{position:relative}.ce-image-previewer .ce-image-container img{cursor:move;position:relative}.ce-image-previewer .ce-image-menu{height:50px;position:absolute;bottom:50px;z-index:99;display:flex;align-items:center;justify-content:center}.ce-image-previewer .ce-image-menu i{width:32px;height:32px;margin:0 8px;cursor:pointer;display:inline-block;background-repeat:no-repeat;background-size:100% 100%;transition:all .3s;border-radius:50%}.ce-image-previewer .ce-image-menu i:hover{background-color:#e2e6ed}.ce-image-previewer .ce-image-menu i.zoom-in{background-image:url("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14%2014v-4h2v4h4v2h-4v4h-2v-4h-4v-2h4zm8.749%2010.163A11.952%2011.952%200%200115%2027C8.373%2027%203%2021.627%203%2015S8.373%203%2015%203s12%205.373%2012%2012c0%202.954-1.067%205.658-2.837%207.749l4.908%204.908-1.414%201.414-4.908-4.908zM15%2025c5.523%200%2010-4.477%2010-10S20.523%205%2015%205%205%209.477%205%2015s4.477%2010%2010%2010z'%20fill='%233D4757'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu i.zoom-out{background-image:url("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.749%2024.163A11.952%2011.952%200%200115%2027C8.373%2027%203%2021.627%203%2015S8.373%203%2015%203s12%205.373%2012%2012c0%202.954-1.067%205.658-2.837%207.749l4.908%204.908-1.414%201.414-4.908-4.908zM15%2025c5.523%200%2010-4.477%2010-10S20.523%205%2015%205%205%209.477%205%2015s4.477%2010%2010%2010zm-5-11h10v2H10v-2z'%20fill='%233D4757'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu i.rotate{background-image:url("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M16%204c6.627%200%2012%205.373%2012%2012a11.97%2011.97%200%2001-4%208.944V23h-.86A9.968%209.968%200%200026%2016c0-5.523-4.477-10-10-10S6%2010.477%206%2016c0%205.185%203.947%209.449%209%209.95v2.009C8.84%2027.451%204%2022.291%204%2016%204%209.373%209.373%204%2016%204z'%20fill-rule='nonzero'/%3e%3cpath%20d='M19.879%2027.328l1.767-6.717%204.95%204.95z'/%3e%3c/g%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu i.original-size{background-image:url("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%204h24v24H4V4zm2%202v20h20V6H6zm4%205h2v10h-2V11zm5%202h2v2h-2v-2zm0%204h2v2h-2v-2zm5-6h2v10h-2V11z'%20fill='%233D4757'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu i.image-download{background-image:url("data:image/svg+xml,%3csvg%20width='24'%20height='24'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.5%2015v3.5h15V15H21v5H3v-5h1.5zm8.232-11.226v9.196l4.05-4.05%201.06%201.06-5.834%205.834-5.833-5.833%201.06-1.06%203.998%203.996V3.774h1.5z'%20fill='%233D4757'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu .image-navigate{display:flex;align-items:center;justify-content:center}.ce-image-previewer .ce-image-menu i.image-pre{background-image:url("data:image/svg+xml,%3csvg%20width='20'%20height='20'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5%204.063L6.875%2010l5.625%205.938'%20stroke='%233D4757'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu i.image-next{background-image:url("data:image/svg+xml,%3csvg%20width='20'%20height='20'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.5%204.063L13.125%2010%207.5%2015.938'%20stroke='%233D4757'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu .image-count{color:#000;font-size:20px}.ce-image-previewer .ce-image-menu i.disabled{cursor:not-allowed;opacity:.5}.ce-contextmenu-container{z-index:9;position:fixed;display:none;padding:4px;overflow-x:hidden;overflow-y:auto;background:#fff;box-shadow:0 2px 12px #38383833;border:1px solid #e2e6ed;border-radius:2px}.ce-contextmenu-content{display:flex;flex-direction:column}.ce-contextmenu-content .ce-contextmenu-sub-item:after{position:absolute;content:"";width:16px;height:16px;right:12px;background:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M0%200h16v16H0z'/%3e%3cg%20fill='%23767C85'%3e%3cpath%20d='M7%2012.243l-.707-.707%204.243-4.243.707.707z'/%3e%3cpath%20d='M6.293%204.464L7%203.757%2011.243%208l-.707.707z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-content .ce-contextmenu-item{min-width:140px;padding:0 32px 0 16px;height:30px;display:flex;align-items:center;white-space:nowrap;box-sizing:border-box;cursor:pointer}.ce-contextmenu-content .ce-contextmenu-item.hover{background:#1937580a}.ce-contextmenu-content .ce-contextmenu-item span{max-width:300px;font-size:12px;color:#3d4757;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ce-contextmenu-content .ce-contextmenu-item span.ce-shortcut{color:#767c85;height:30px;flex:1;text-align:right;line-height:30px;margin-left:20px}.ce-contextmenu-content .ce-contextmenu-item i{width:16px;height:16px;vertical-align:middle;display:inline-block;background-repeat:no-repeat;background-size:100% 100%;flex-shrink:0;margin-right:8px}.ce-contextmenu-divider{background-color:#e2e6ed;margin:4px 16px;height:1px}.ce-contextmenu-print{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M12%204h-1V2H5v2H4V2a1%201%200%20011-1h6a1%201%200%20011%201v2zm0%205v4a1%201%200%2001-1%201H5a1%201%200%2001-1-1V9h1v4h6V9h1z'/%3e%3cpath%20d='M12%2012v-1h2V5H2v6h2v1H2a1%201%200%2001-1-1V5a1%201%200%20011-1h12a1%201%200%20011%201v6a1%201%200%2001-1%201h-2z'/%3e%3cpath%20d='M3%208h10v1H3zm8-2h2v1h-2z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-image{background-image:url("data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0'%20y='0'%20viewBox='0%200%2016%2016'%20xml:space='preserve'%3e%3cstyle%3e.st0{fill:%233d4757}%3c/style%3e%3cg%20id='_x30_0-公共_x2F_02工具栏_x2F_插入图片-16px-'%3e%3cg%20id='Group-19'%20transform='translate(1%201)'%3e%3cpath%20id='Combined-Shape'%20class='st0'%20d='M1%200h12c.6%200%201%20.4%201%201v11c0%20.6-.4%201-1%201H1c-.6%200-1-.4-1-1V1c0-.6.4-1%201-1zm0%201v11h12V1H1z'/%3e%3ccircle%20id='椭圆形'%20class='st0'%20cx='10'%20cy='4'%20r='1'/%3e%3cpath%20id='Path'%20class='st0'%20d='M8.5%2011.2l-4-4.1L1%2010.7V9.2c1.7-1.6%202.7-2.5%203-2.8.4-.5.7-.4%201%200L8.5%2010%2011%207.3c.4-.5.6-.5%201-.1l2%202.8v1.5l-2.5-3.4-3%203.1z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-image-change{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(2%204)'%20fill='%233D4757'%3e%3ccircle%20fill-rule='nonzero'%20cx='3'%20cy='1'%20r='1'/%3e%3cpath%20d='M7.473%208.223L3.47%204.107%200%207.667v-1.5C1.715%204.6%202.707%203.664%202.975%203.358c.402-.457.651-.39%201.042%200L7.473%207%209.96%204.349c.414-.462.62-.462%201.011-.071L13%207.06v1.5l-2.51-3.41-3.017%203.072z'/%3e%3c/g%3e%3cpath%20d='M6%201.5H1.5v12h13v-4V13a.5.5%200%2001-.5.5H2a.5.5%200%2001-.5-.5V2a.5.5%200%2001.5-.5h4zm8.5%208V6l-.5.5h1l-.5-.5v3.5zM6%201.5h4L9.5%201v1l.5-.5H6z'%20stroke='%233D4757'/%3e%3cpath%20d='M13.085%201.316l-3.814%204a1%201%200%20001.458%201.368l3.815-4a1%201%200%2010-1.459-1.368z'%20fill='%233D4757'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-insert-row-col{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20stroke='%233D4757'%20d='M8.5%205.5h6v4h-6z'/%3e%3cpath%20fill='%233D4757'%20d='M4%207v1h2V7zm-3%20.5L4%205v5zM1%201h12v1H1zm0%2012h12v1H1z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-insert-top-row{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20fill='%233D4757'%20d='M8%205H7v3h1zm-.5-3L10%205H5z'/%3e%3crect%20stroke='%233D4757'%20x='1.5'%20y='10.5'%20width='12'%20height='3'%20rx='1'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-insert-bottom-row{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20fill='%233D4757'%20d='M7%2011h1V8H7zm.5%203L5%2011h5z'/%3e%3crect%20stroke='%233D4757'%20x='1.5'%20y='2.5'%20width='12'%20height='3'%20rx='1'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-insert-left-col{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20fill='%233D4757'%20d='M11%207v1h3V7zm-3%20.5L11%205v5z'/%3e%3crect%20stroke='%233D4757'%20transform='rotate(90%204%207.5)'%20x='-2'%20y='6'%20width='12'%20height='3'%20rx='1'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-insert-right-col{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20fill='%233D4757'%20d='M5%208V7H2v1zm3-.5L5%2010V5z'/%3e%3crect%20stroke='%233D4757'%20transform='rotate(90%2012%207.5)'%20x='6'%20y='6'%20width='12'%20height='3'%20rx='1'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-delete-row-col{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20stroke='%23929AA8'%20d='M8.5%206.5h6v2h-6z'/%3e%3cpath%20fill='%233D4757'%20d='M2%2012h11v1H2zM2%202h11v1H2zm.63%203L7%209.35l-.635.65L2%205.63z'/%3e%3cpath%20fill='%233D4757'%20d='M2%209.363L6.355%205%207%205.707%202.695%2010z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-delete-row{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20stroke='%23929AA8'%20d='M8.5%205.5h6v4h-6z'/%3e%3cpath%20fill='%233D4757'%20d='M1%2013h12v1H1zM1%201h12v1H1zm0%204h1v1H1zm1%201h1v1H2zm1%201h1v1H3zm1-1h1v1H4zm1-1h1v1H5zM4%208h1v1H4zM2%208h1v1H2zm3%201h1v1H5zM1%209h1v1H1z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-delete-col{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20stroke='%23929AA8'%20d='M5.5%207.5v-6h4v6z'/%3e%3cpath%20fill='%233D4757'%20d='M13%2015V3h1v12zM1%2015V3h1v12zm4%200v-1h1v1zm1-1v-1h1v1zm1-1v-1h1v1zm-1-1v-1h1v1zm-1-1v-1h1v1zm3%201v-1h1v1zm0%202v-1h1v1zm1-3v-1h1v1zm0%204v-1h1v1z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-delete-table{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M14%2013h-1v-3H2v3H1v-3a1%201%200%20011-1h11a1%201%200%20011%201v3z'%20fill-rule='nonzero'/%3e%3cpath%20d='M5.625%202L10%206.375%209.375%207%205%202.625z'/%3e%3cpath%20d='M5%206.375L9.375%202l.625.625L5.625%207z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-merge-cell{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M6%201v1H2v11h4v1H2a1%201%200%2001-1-1V2a1%201%200%20011-1h4zm3%200h4a1%201%200%20011%201v11a1%201%200%2001-1%201H9v-1h4V2H9V1z'/%3e%3cpath%20fill-rule='nonzero'%20d='M6%201h1v4H6zm2%200h1v4H8z'/%3e%3cpath%20d='M8%207.5L10%206v3zm-1%200L5%206v3z'/%3e%3cpath%20d='M9%207h3v1H9zM3%207h3v1H3z'/%3e%3cpath%20fill-rule='nonzero'%20d='M8%2010h1v4H8zm-2%200h1v4H6z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-merge-cancel-cell{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M6%201v1H2v11h4v1H2a1%201%200%2001-1-1V2a1%201%200%20011-1h4zm3%200h4a1%201%200%20011%201v11a1%201%200%2001-1%201H9v-1h4V2H9V1z'/%3e%3cpath%20fill-rule='nonzero'%20d='M6%201h1v4H6zm2%200h1v4H8z'/%3e%3cpath%20d='M3%207.5L5%206v3zm9%200L10%206v3z'/%3e%3cpath%20d='M4%207h3v1H4zm4%200h3v1H8z'/%3e%3cpath%20fill-rule='nonzero'%20d='M8%2010h1v4H8zm-2%200h1v4H6z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-vertical-align{background-image:url("data:image/svg+xml,%3csvg%20height='16'%20viewBox='0%200%2016%2016'%20width='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2013h12v1H2zm0-3h8v1H2zm0-3h12v1H2zm0-6h12v1H2zm0%203h8v1H2z'%20fill='%233d4757'%20fill-rule='evenodd'/%3e%3c/svg%3e")}.ce-contextmenu-vertical-align-top{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%208H7v6h1zm-.5-3L10%208H5zM2%203h11v1H2z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e")}.ce-contextmenu-vertical-align-middle{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%2012H7v3h1zm-.5-3l2.5%203H5zM7%203h1V0H7zm.5%203L5%203h5zM2%207h11v1H2z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e")}.ce-contextmenu-vertical-align-bottom{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%209h1V3H7zm.5%203L5%209h5zM2%2013h11v1H2z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e")}.ce-contextmenu-border-all{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%233D4757'/%3e%3cpath%20fill='%233D4757'%20d='M3%208h11v1H3z'/%3e%3cpath%20fill='%233D4757'%20d='M9%203v11H8V3z'/%3e%3c/svg%3e")}.ce-contextmenu-border-empty{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13%203h-1V2h1a1%201%200%20011%201v1h-1V3zm-3-1v1H8.5v2h-1V3H6V2h4zM4%202v1H3v1H2V3a1%201%200%20011-1h1zM2%206h1v1.5h2v1H3V10H2V6zm0%206h1v1h1v1H3a1%201%200%2001-1-1v-1zm4%202v-1h1.5v-2h1v2H10v1H6zm6%200v-1h1v-1h1v1a1%201%200%2001-1%201h-1zm2-4h-1V8.5h-2v-1h2V6h1v4zM8.5%207.5v-1h-1v1h-1v1h1v1h1v-1h1v-1h-1z'%20fill='%23AAACB0'/%3e%3c/svg%3e")}.ce-contextmenu-border-dash{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13%203h-1V2h1a1%201%200%20011%201v1h-1V3zm-3-1v1H8.5v2h-1V3H6V2h4zM4%202v1H3v1H2V3a1%201%200%20011-1h1zM2%206h1v1.5h2v1H3V10H2V6zm0%206h1v1h1v1H3a1%201%200%2001-1-1v-1zm4%202v-1h1.5v-2h1v2H10v1H6zm6%200v-1h1v-1h1v1a1%201%200%2001-1%201h-1zm2-4h-1V8.5h-2v-1h2V6h1v4zM8.5%207.5v-1h-1v1h-1v1h1v1h1v-1h1v-1h-1z'%20fill='%23000000'/%3e%3c/svg%3e")}.ce-contextmenu-border-external{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%233D4757'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%205V3H8v2h1zm0%209v-2H8v2h1zM5%208H3v1h2V8zm9%200h-2v1h2V8zM9%207v1h1v1H9v1H8V9H7V8h1V7h1z'%20fill='%23AAACB0'/%3e%3c/svg%3e")}.ce-contextmenu-border-internal{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%205V3H8v2h1zm0%209v-2H8v2h1zM5%208H3v1h2V8zm9%200h-2v1h2V8zM9%207v1h1v1H9v1H8V9H7V8h1V7h1z'%20fill='%233D4757'/%3e%3c/svg%3e")}.ce-contextmenu-border-td{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20stroke='%233D4757'%20d='M8.5%202.5%20v6%20h-6'/%3e%3c/svg%3e")}.ce-contextmenu-border-td-top{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20stroke='%233D4757'%20stroke-width='2'%20d='M2.5%203%20h12'/%3e%3c/svg%3e")}.ce-contextmenu-border-td-left{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20stroke='%233D4757'%20stroke-width='2'%20d='M3%203%20v11'/%3e%3c/svg%3e")}.ce-contextmenu-border-td-bottom{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20stroke='%233D4757'%20stroke-width='2'%20d='M2.5%2014%20h12'/%3e%3c/svg%3e")}.ce-contextmenu-border-td-right{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20stroke='%233D4757'%20stroke-width='2'%20d='M14%203%20v11'/%3e%3c/svg%3e")}.ce-contextmenu-border-td-forward{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'%20/%3e%3cpath%20stroke='%233D4757'%20d='M14%203%20l-11%2011'%20/%3e%3c/svg%3e")}.ce-contextmenu-border-td-back{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'%20/%3e%3cpath%20stroke='%233D4757'%20d='M3%203%20l11%2011'%20/%3e%3c/svg%3e")}.ce-hyperlink-popup{background:#fff;box-shadow:0 2px 12px #626b8433;border-radius:2px;color:#3d4757;padding:12px 16px;position:absolute;z-index:1;text-align:center;display:none}.ce-hyperlink-popup a{min-width:100px;max-width:300px;font-size:12px;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;text-decoration:none;border-bottom-width:1px;border-bottom-style:solid;color:#00f}.ce-zone-indicator>div{padding:3px 6px;color:#000;font-size:12px;background:#dae7fc;position:absolute;transform-origin:0 0}.ce-zone-indicator-border__top,.ce-zone-indicator-border__bottom,.ce-zone-indicator-border__left,.ce-zone-indicator-border__right{display:block;position:absolute;z-index:0}.ce-zone-indicator-border__top{border-top:2px dashed rgb(238,238,238)}.ce-zone-indicator-border__bottom{border-top:2px dashed rgb(238,238,238);width:100%}.ce-zone-indicator-border__left{border-left:2px dashed rgb(238,238,238)}.ce-zone-indicator-border__right{border-right:2px dashed rgb(238,238,238)}.ce-zone-tip{display:none;align-items:center;height:30px;white-space:nowrap;position:fixed;opacity:.9;background-color:#000;padding:0 5px;border-radius:4px;z-index:9;transition:all .3s;outline:none;-webkit-user-select:none;user-select:none;pointer-events:none;transform:translate(10px,10px)}.ce-zone-tip.show{display:flex}.ce-zone-tip span{color:#fff;font-size:12px}.ce-inputarea{min-width:60px!important;min-height:0;margin:0;padding:0;left:0;top:0;letter-spacing:0;font-size:12px;position:absolute;z-index:-1;outline:none;resize:none;border:none;overflow:hidden;color:transparent;-webkit-user-select:none;user-select:none;caret-color:transparent;background-color:transparent;white-space:pre}.ce-cursor{width:1px;height:20px;left:0;right:0;position:absolute;outline:none;background-color:#000;pointer-events:none}.ce-cursor.ce-cursor--animation{animation-duration:1s;animation-iteration-count:infinite;animation-name:cursorAnimation}@keyframes cursorAnimation{0%{opacity:1}13%{opacity:0}50%{opacity:0}63%{opacity:1}to{opacity:1}}.ce-float-image{position:absolute;opacity:.5;pointer-events:none}.ce-button-input-modal{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.ce-button-input-modal__content{background:#fff;border-radius:8px;padding:20px;min-width:320px;max-width:480px;box-shadow:0 4px 20px #00000026}.ce-button-input-modal__title{font-size:14px;font-weight:500;color:#333;margin-bottom:12px}.ce-button-input-modal__textarea{width:100%;min-height:100px;padding:10px 12px;border:1px solid #dcdfe6;border-radius:4px;font-size:13px;line-height:1.5;resize:vertical;outline:none;box-sizing:border-box;font-family:inherit}.ce-button-input-modal__textarea:focus{border-color:#5175f4}.ce-button-input-modal__textarea::placeholder{color:#c0c4cc}.ce-button-input-modal__buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.ce-button-input-modal__cancel,.ce-button-input-modal__confirm{padding:8px 16px;font-size:13px;border-radius:4px;cursor:pointer;border:1px solid #dcdfe6;background:#fff;color:#606266;transition:all .2s}.ce-button-input-modal__cancel:hover{color:#5175f4;border-color:#5175f4}.ce-button-input-modal__confirm{background:#5175f4;border-color:#5175f4;color:#fff}.ce-button-input-modal__confirm:hover{background:#409eff;border-color:#409eff}.ce-button-edit-modal{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.ce-button-edit-modal__content{background:#fff;border-radius:8px;padding:20px;min-width:320px;max-width:480px;box-shadow:0 4px 20px #00000026}.ce-button-edit-modal__title{font-size:14px;font-weight:500;color:#333;margin-bottom:16px}.ce-button-edit-modal__form{display:flex;flex-direction:column;gap:12px}.ce-button-edit-modal__field{display:flex;align-items:center;gap:8px}.ce-button-edit-modal__field label{min-width:80px;font-size:13px;color:#606266}.ce-button-edit-modal__field input{flex:1;padding:8px 12px;border:1px solid #dcdfe6;border-radius:4px;font-size:13px;outline:none;box-sizing:border-box}.ce-button-edit-modal__field input:focus{border-color:#5175f4}.ce-button-edit-modal__field input::placeholder{color:#c0c4cc}.ce-button-edit-modal__buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.ce-button-edit-modal__cancel,.ce-button-edit-modal__confirm{padding:8px 16px;font-size:13px;border-radius:4px;cursor:pointer;border:1px solid #dcdfe6;background:#fff;color:#606266;transition:all .2s}.ce-button-edit-modal__cancel:hover{color:#5175f4;border-color:#5175f4}.ce-button-edit-modal__confirm{background:#5175f4;border-color:#5175f4;color:#fff}.ce-button-edit-modal__confirm:hover{background:#409eff;border-color:#409eff}.ce-number-input-modal{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.ce-number-input-modal__content{background:#fff;border-radius:8px;padding:20px;min-width:300px;max-width:400px;box-shadow:0 4px 20px #00000026}.ce-number-input-modal__title{font-size:14px;font-weight:500;color:#333;margin-bottom:12px}.ce-number-input-modal__hint{font-size:12px;color:#909399;margin-bottom:12px}.ce-number-input-modal__input{width:100%;padding:10px 12px;border:1px solid #dcdfe6;border-radius:4px;font-size:13px;outline:none;box-sizing:border-box}.ce-number-input-modal__input:focus{border-color:#5175f4}.ce-number-input-modal__input::placeholder{color:#c0c4cc}.ce-number-input-modal__error{font-size:12px;color:#f56c6c;margin-top:8px}.ce-number-input-modal__buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.ce-number-input-modal__cancel,.ce-number-input-modal__confirm{padding:8px 16px;font-size:13px;border-radius:4px;cursor:pointer;border:1px solid #dcdfe6;background:#fff;color:#606266;transition:all .2s}.ce-number-input-modal__cancel:hover{color:#5175f4;border-color:#5175f4}.ce-number-input-modal__confirm{background:#5175f4;border-color:#5175f4;color:#fff}.ce-number-input-modal__confirm:hover{background:#409eff;border-color:#409eff}.tooth-position-edit-modal,.tooth-position-create-modal{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000}.tooth-position-modal__mask{position:absolute;top:0;left:0;width:100%;height:100%;background:#00000080}.tooth-position-modal__container{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;min-width:400px;max-width:90vw}.tooth-position-modal__header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #e8e8e8}.tooth-position-modal__header span{font-size:16px;font-weight:500;color:#333}.tooth-position-modal__close{font-size:20px;cursor:pointer;color:#999;line-height:1}.tooth-position-modal__close:hover{color:#333}.tooth-position-modal__content{padding:20px;max-height:60vh;overflow-y:auto}.tooth-section{margin-bottom:20px}.tooth-section:last-child{margin-bottom:0}.tooth-section-title{font-size:14px;font-weight:500;color:#333;margin-bottom:12px;padding-left:8px;border-left:3px solid #1890ff}.tooth-row{display:flex;align-items:center;margin-bottom:8px}.tooth-row:last-child{margin-bottom:0}.tooth-row-label{width:30px;font-size:13px;color:#666}.tooth-buttons{display:flex;gap:8px;flex-wrap:wrap}.letter-buttons{margin-left:30px}.tooth-checkbox{display:flex;align-items:center;cursor:pointer}.tooth-checkbox input{display:none}.tooth-checkbox span{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #d9d9d9;border-radius:4px;background:#f5f5f5;font-size:14px;color:#333;transition:all .2s}.tooth-checkbox input:checked+span{background:#1890ff;border-color:#1890ff;color:#fff}.tooth-checkbox:hover span{border-color:#1890ff}.tooth-position-modal__footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 20px;border-top:1px solid #e8e8e8}.tooth-position-modal__footer .btn-cancel,.tooth-position-modal__footer .btn-confirm{padding:8px 20px;font-size:14px;border-radius:4px;cursor:pointer;border:1px solid #dcdfe6;background:#fff;color:#606266;transition:all .2s}.tooth-position-modal__footer .btn-cancel:hover{color:#1890ff;border-color:#1890ff}.tooth-position-modal__footer .btn-confirm{background:#1890ff;border-color:#1890ff;color:#fff}.tooth-position-modal__footer .btn-confirm:hover{background:#40a9ff;border-color:#40a9ff}.tooth-grid-container{display:flex;flex-direction:column;align-items:center;padding:15px 20px;background:#fafafa;border-radius:8px;margin-bottom:15px;position:relative}.tooth-quick-buttons{display:flex;gap:6px;margin-bottom:16px}.tooth-quick-buttons-left{display:flex;flex-direction:column;gap:6px;flex:1}.tooth-quick-buttons-row{display:flex;gap:6px}.tooth-quick-btn{padding:6px 12px;font-size:12px;border:1px solid #d9d9d9;border-radius:4px;cursor:pointer;background:#fff;color:#333;transition:all .2s;white-space:nowrap}.tooth-quick-btn:hover{border-color:#1890ff;color:#1890ff}.tooth-quick-btn.selected{background:#0ff;border-color:#0ff;color:#fff}.tooth-quick-btn--clear{background:#ff6b6b;border-color:#ff6b6b;color:#fff}.tooth-quick-btn--clear:hover{background:#ff5252;border-color:#ff5252;color:#fff}.tooth-grid-container:before{content:"";position:absolute;left:50%;top:20px;bottom:20px;width:2px;background:#000;transform:translate(-50%);z-index:1}.tooth-grid-container:after{content:"";position:absolute;left:20px;right:20px;top:50%;height:2px;background:#000;transform:translateY(-50%);z-index:1}.tooth-grid-letter-row,.tooth-grid-number-row{display:flex;align-items:center;justify-content:center;position:relative;z-index:2}.tooth-grid-half{display:flex;align-items:center;justify-content:center;gap:4px}.tooth-grid-half.left{justify-content:flex-end;padding-right:15px}.tooth-grid-half.right{justify-content:flex-start;padding-left:15px}.tooth-grid-divider-v,.tooth-grid-divider-h{display:none}.tooth-grid-number-item{width:34px;height:32px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;color:#333;cursor:pointer;background:#fff;transition:all .2s;box-sizing:border-box;border:1px solid #d9d9d9;border-radius:12px}.upper-number-row .tooth-grid-number-item{border-top:none;border-radius:0 0 12px 12px}.lower-number-row .tooth-grid-number-item{border-bottom:none;border-radius:12px 12px 0 0}.tooth-grid-number-item[data-value="1"],.tooth-grid-number-item[data-value="2"],.tooth-grid-number-item[data-value="3"]{border-radius:50px}.upper-number-row .tooth-grid-number-item[data-value="1"],.upper-number-row .tooth-grid-number-item[data-value="2"],.upper-number-row .tooth-grid-number-item[data-value="3"]{border-top:none!important;border-radius:0 0 50px 50px!important}.lower-number-row .tooth-grid-number-item[data-value="1"],.lower-number-row .tooth-grid-number-item[data-value="2"],.lower-number-row .tooth-grid-number-item[data-value="3"]{border-bottom:none!important;border-radius:50px 50px 0 0!important}.tooth-grid-number-item:hover{border-color:#1890ff;color:#1890ff}.tooth-grid-number-item.selected{background:#1890ff;border-color:#1890ff;color:#fff}.tooth-grid-letter-item{width:34px;height:32px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;color:#333;cursor:pointer;background:#fff;border:1px solid #d9d9d9;transition:all .2s;box-sizing:border-box;border-radius:12px}.upper-letter-row .tooth-grid-letter-item{border-top:none;border-radius:0 0 12px 12px}.lower-letter-row .tooth-grid-letter-item{border-bottom:none;border-radius:12px 12px 0 0}.tooth-grid-letter-item[data-value=A],.tooth-grid-letter-item[data-value=B],.tooth-grid-letter-item[data-value=C]{border-radius:50px}.upper-letter-row .tooth-grid-letter-item[data-value=A],.upper-letter-row .tooth-grid-letter-item[data-value=B],.upper-letter-row .tooth-grid-letter-item[data-value=C]{border-top:none!important;border-radius:0 0 50px 50px!important}.lower-letter-row .tooth-grid-letter-item[data-value=A],.lower-letter-row .tooth-grid-letter-item[data-value=B],.lower-letter-row .tooth-grid-letter-item[data-value=C]{border-bottom:none!important;border-radius:50px 50px 0 0!important}.tooth-grid-letter-item:hover{border-color:#1890ff;color:#1890ff}.tooth-grid-letter-item.selected{background:#1890ff;border-color:#1890ff;color:#fff}.tooth-grid-letter-row.hidden,.tooth-grid-number-row.hidden{display:none}.tooth-grid-letter-row{margin-bottom:8px}.tooth-grid-number-row.upper-number-row{margin-bottom:15px}.tooth-grid-number-row.lower-number-row{margin-top:15px}.tooth-grid-letter-row.lower-letter-row{margin-top:8px}.tooth-preview-section{padding-top:10px;border-top:1px solid #e8e8e8}.tooth-preview-title{font-size:14px;font-weight:500;color:#333;margin-bottom:12px}.tooth-preview-wrapper{display:flex;gap:15px}.tooth-preview-container{display:flex;justify-content:center;align-items:center;padding:10px;background:#fafafa;border-radius:8px;flex:1;min-height:60px}.tooth-preview-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:0;width:100%;min-height:70px;position:relative}.tooth-preview-grid:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:#000;transform:translate(-50%)}.tooth-preview-grid:after{content:"";position:absolute;top:50%;left:0;right:0;height:1px;background:#000;transform:translateY(-50%)}.tooth-preview-quadrant{display:flex;align-items:center;padding:5px 10px;font-size:12px;flex-wrap:wrap;gap:4px;justify-content:center}.tooth-preview-upper-left{justify-content:flex-end}.tooth-preview-upper-right{justify-content:flex-start}.tooth-preview-lower-left{justify-content:flex-end}.tooth-preview-lower-right{justify-content:flex-start}.tooth-preview-tooth{position:relative;display:inline;margin:0 4px}.tooth-preview-tooth-value{font-size:12px}.tooth-preview-tooth-value--deciduous{font-size:10px}.tooth-preview-tooth-bracket{font-size:12px}.tooth-preview-supernumerary{font-size:9px;vertical-align:super;margin:0 1px}.tooth-preview-surface{font-size:9px;vertical-align:super;margin-left:1px}.tooth-extra-panel{width:100px;display:flex;flex-direction:column;gap:10px}.tooth-surface-panel{background:#fafafa;border-radius:8px;padding:10px 20px}.tooth-surface-title{font-size:12px;font-weight:500;color:#333;margin-bottom:8px;text-align:center}.tooth-surface-grid{display:flex;flex-direction:column;gap:4px;align-items:center}.tooth-surface-row{display:flex;gap:4px;justify-content:center}.tooth-surface-item{width:30px;height:30px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:500;color:#333;cursor:pointer;background:#fff;border:1px dashed #d9d9d9;border-radius:5px;transition:all .2s;box-sizing:border-box}.tooth-surface-item--indent{margin-left:17px}.tooth-surface-item:hover{border-color:#1890ff;color:#1890ff}.tooth-surface-item.selected{background:#1890ff;border-color:#1890ff;border-style:solid;color:#fff}.tooth-supernumerary-panel{background:#fafafa;border-radius:8px;padding:10px 20px}.tooth-supernumerary-title{font-size:12px;font-weight:500;color:#333;margin-bottom:4px;text-align:center}.tooth-supernumerary-hint{font-size:10px;color:#999;font-weight:400}.tooth-supernumerary-grid{display:flex;gap:8px;justify-content:center;margin-top:8px}.tooth-supernumerary-item{width:30px;height:35px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:500;color:#333;cursor:pointer;background:#fff;border:1px solid #d9d9d9;border-bottom:none;border-radius:50px;transition:all .2s;box-sizing:border-box}.tooth-supernumerary-item:hover{border-color:#1890ff;color:#1890ff}.tooth-supernumerary-item.selected{background:#1890ff;border-color:#1890ff;color:#fff}.dialog-mask{position:fixed;left:0;top:0;width:100%;height:100%;opacity:.5;background:#000;z-index:99}.dialog-container{position:fixed;inset:0;overflow:auto;z-index:999;margin:0;display:flex;justify-content:center;align-items:center}.dialog{position:absolute;padding:0 30px 30px;background:#fff;box-shadow:0 2px 12px #38383833;border:1px solid #e2e6ed;border-radius:2px}.dialog-title{position:relative;border-bottom:1px solid #e2e6ed;margin-bottom:30px;height:60px;display:flex;align-items:center;justify-content:space-between}.dialog-title i{width:16px;height:16px;cursor:pointer;display:inline-block;background:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.9%208.192l4.242%204.243-.707.707L8.192%208.9%203.95%2013.142l-.707-.707%204.242-4.243L3.243%203.95l.707-.707%204.242%204.242%204.243-4.242.707.707L8.9%208.192z'%20fill='%236A6A6A'%20fill-rule='evenodd'/%3e%3c/svg%3e")}.dialog-option__item{margin-bottom:18px;display:flex;align-items:center;justify-content:space-between}.dialog-option__item span{margin-right:12px;font-size:14px;color:#3d4757;position:relative}.dialog-option__item input,.dialog-option__item textarea,.dialog-option__item select{width:276px;height:30px;border-radius:2px;border:1px solid #d3d3d3;min-height:30px;padding:5px;box-sizing:border-box;outline:none;appearance:none;-webkit-user-select:none;user-select:none;font-family:inherit}.dialog-option__item input:focus,.dialog-option__item textarea:focus{border-color:#4991f2}.dialog-option__item--require:before{content:"*";color:#f56c6c;margin-right:4px;position:absolute;left:-8px}.dialog-menu{display:flex;align-items:center;justify-content:flex-end}.dialog-menu button{position:relative;display:inline-block;border:1px solid #e2e6ed;border-radius:2px;background:#fff;line-height:22px;padding:0 16px;white-space:nowrap;cursor:pointer}.dialog-menu button:hover{background:#1937580a}.dialog-menu__cancel{margin-right:16px}.dialog-menu button[type=submit]{color:#fff;background:#4991f2;border-color:#4991f2}.dialog-menu button[type=submit]:hover{background:#5b9cf3;border-color:#5b9cf3}.dialog-radio-group{display:flex;flex-direction:column;gap:8px}.dialog-radio-group--horizontal{flex-direction:row;gap:16px}.dialog-radio-item{display:flex;align-items:center;cursor:pointer;font-size:14px;color:#3d4757}.dialog-radio-item input[type=radio]{width:16px;height:16px;margin:0 6px 0 0;cursor:pointer;appearance:auto}.dialog-radio-item span{margin:0}`)),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- const Ni = "0.7.0";
2
+ const Ni = "0.7.1";
3
3
  var hn;
4
4
  (function(o) {
5
5
  o.HALF = "half", o.ONE_THIRD = "one-third", o.QUARTER = "quarter";
@@ -12,10 +12,10 @@ var Rt;
12
12
  (function(o) {
13
13
  o.INLINE = "inline", o.BLOCK = "block", o.SURROUND = "surround", o.FLOAT_TOP = "float-top", o.FLOAT_BOTTOM = "float-bottom";
14
14
  })(Rt || (Rt = {}));
15
- var jt;
15
+ var Jt;
16
16
  (function(o) {
17
17
  o.BEFORE = "before", o.AFTER = "after", o.OUTER_BEFORE = "outer-before", o.OUTER_AFTER = "outer-after";
18
- })(jt || (jt = {}));
18
+ })(Jt || (Jt = {}));
19
19
  var ii;
20
20
  (function(o) {
21
21
  o.ROW = "row", o.COLUMN = "column";
@@ -3346,10 +3346,10 @@ var Ge;
3346
3346
  (function(o) {
3347
3347
  o.IFRAME = "iframe", o.VIDEO = "video";
3348
3348
  })(Ge || (Ge = {}));
3349
- var U;
3349
+ var y;
3350
3350
  (function(o) {
3351
3351
  o.TEXT = "text", o.SELECT = "select", o.CHECKBOX = "checkbox", o.RADIO = "radio", o.DATE = "date", o.NUMBER = "number", o.TEXTFIELD = "TextField", o.BUTTON = "button", o.MENSTRUAL_HISTORY = "menstrualHistory";
3352
- })(U || (U = {}));
3352
+ })(y || (y = {}));
3353
3353
  var f;
3354
3354
  (function(o) {
3355
3355
  o.PREFIX = "prefix", o.POSTFIX = "postfix", o.PRE_TEXT = "preText", o.PRETEXTFIX = "preTextFix", o.PRETEXTFIX_TEXT = "preTextFixText", o.POSTTEXTFIX = "postTextFix", o.POSTTEXTFIX_TEXT = "postTextFixText", o.POST_TEXT = "postText", o.PLACEHOLDER = "placeholder", o.TEXTFIXLABEL = "textFixLabel", o.VALUE = "value", o.DELETEPERSON = "deletePerson", o.CHECKBOX = "checkbox", o.RADIO = "radio", o.UNDERLINE = "underline";
@@ -3425,10 +3425,10 @@ const ia = {
3425
3425
  repeat: je.NO_REPEAT,
3426
3426
  applyPageNumbers: []
3427
3427
  };
3428
- var Bt;
3428
+ var $t;
3429
3429
  (function(o) {
3430
3430
  o.TOP = "top", o.MIDDLE = "middle", o.BOTTOM = "bottom";
3431
- })(Bt || (Bt = {}));
3431
+ })($t || ($t = {}));
3432
3432
  const sa = {
3433
3433
  width: 14,
3434
3434
  height: 14,
@@ -3436,7 +3436,7 @@ const sa = {
3436
3436
  lineWidth: 1,
3437
3437
  fillStyle: "#5175f4",
3438
3438
  strokeStyle: "#ffffff",
3439
- verticalAlign: Bt.BOTTOM
3439
+ verticalAlign: $t.BOTTOM
3440
3440
  }, ra = {
3441
3441
  placeholderColor: "#9c9b9b",
3442
3442
  bracketColor: "#2284FE",
@@ -3519,7 +3519,7 @@ const sa = {
3519
3519
  lineWidth: 1,
3520
3520
  fillStyle: "#5175f4",
3521
3521
  strokeStyle: "#000000",
3522
- verticalAlign: Bt.BOTTOM
3522
+ verticalAlign: $t.BOTTOM
3523
3523
  }, pa = {
3524
3524
  lineWidth: 1,
3525
3525
  strokeStyle: "#000000"
@@ -3931,12 +3931,12 @@ function Qt(o, t) {
3931
3931
  }), s++;
3932
3932
  }
3933
3933
  }
3934
- if (R && R.length || m === U.CHECKBOX || m === U.RADIO || m === U.SELECT && g && (!R || !R.length)) {
3934
+ if (R && R.length || m === y.CHECKBOX || m === y.RADIO || m === y.SELECT && g && (!R || !R.length)) {
3935
3935
  let x = R ? ht(R) : [];
3936
- if (m === U.CHECKBOX) {
3936
+ if (m === y.CHECKBOX) {
3937
3937
  const F = g ? g.split(",") : [];
3938
3938
  if (Array.isArray(T) && T.length) {
3939
- const S = x.reduce((V, W) => V.concat(W.value.split("").map((y) => ({ ...W, value: y }))), []);
3939
+ const S = x.reduce((V, W) => V.concat(W.value.split("").map((U) => ({ ...W, value: U }))), []);
3940
3940
  let M = 0;
3941
3941
  for (let V = 0; V < T.length; V++) {
3942
3942
  const W = T[V];
@@ -3953,9 +3953,9 @@ function Qt(o, t) {
3953
3953
  value: F.includes(W.code)
3954
3954
  }
3955
3955
  }), s++;
3956
- const y = ft(W.value);
3957
- for (let w = 0; w < y.length; w++) {
3958
- const v = y[w], J = w === y.length - 1;
3956
+ const U = ft(W.value);
3957
+ for (let w = 0; w < U.length; w++) {
3958
+ const v = U[w], J = w === U.length - 1;
3959
3959
  o.splice(s, 0, {
3960
3960
  ...E,
3961
3961
  ...Y,
@@ -3970,7 +3970,7 @@ function Qt(o, t) {
3970
3970
  }
3971
3971
  }
3972
3972
  }
3973
- } else if (m === U.RADIO) {
3973
+ } else if (m === y.RADIO) {
3974
3974
  if (Array.isArray(T) && T.length) {
3975
3975
  const F = x.reduce((M, V) => M.concat(V.value.split("").map((W) => ({ ...V, value: W }))), []);
3976
3976
  let S = 0;
@@ -3990,8 +3990,8 @@ function Qt(o, t) {
3990
3990
  }
3991
3991
  }), s++;
3992
3992
  const W = ft(V.value);
3993
- for (let y = 0; y < W.length; y++) {
3994
- const w = W[y], v = y === W.length - 1;
3993
+ for (let U = 0; U < W.length; U++) {
3994
+ const w = W[U], v = U === W.length - 1;
3995
3995
  o.splice(s, 0, {
3996
3996
  ...E,
3997
3997
  ...Y,
@@ -4030,7 +4030,7 @@ function Qt(o, t) {
4030
4030
  for (let F = 0; F < x.length; F++) {
4031
4031
  const S = x[F];
4032
4032
  if (S.type === O.CONTROL && S.control) {
4033
- const M = S, V = M.controlId || ut(), W = M.control?.value || [], y = M.control?.placeholder || "", w = M.control?.type, v = w === U.TEXTFIELD, J = w === U.TEXT, G = w === U.CHECKBOX, ot = w === U.RADIO, ct = w === U.BUTTON, it = v ? f.PRETEXTFIX : f.PREFIX, st = v ? f.POSTTEXTFIX : f.POSTFIX, et = {
4033
+ const M = S, V = M.controlId || ut(), W = M.control?.value || [], U = M.control?.placeholder || "", w = M.control?.type, v = w === y.TEXTFIELD, J = w === y.TEXT, G = w === y.CHECKBOX, ot = w === y.RADIO, ct = w === y.BUTTON, it = v ? f.PRETEXTFIX : f.PREFIX, st = v ? f.POSTTEXTFIX : f.POSTFIX, et = {
4034
4034
  ...E,
4035
4035
  controlId: V,
4036
4036
  type: O.CONTROL,
@@ -4119,7 +4119,7 @@ function Qt(o, t) {
4119
4119
  for (let Z = 0; Z < W.length; Z++) {
4120
4120
  const Q = W[Z];
4121
4121
  if (Q.type === O.CONTROL && Q.control) {
4122
- const z = Q, k = z.controlId || ut(), B = z.control?.value || [], q = z.control?.type === U.TEXTFIELD, j = z.control?.type === U.TEXT, St = {
4122
+ const z = Q, k = z.controlId || ut(), B = z.control?.value || [], q = z.control?.type === y.TEXTFIELD, j = z.control?.type === y.TEXT, St = {
4123
4123
  ...et,
4124
4124
  controlId: k,
4125
4125
  control: z.control
@@ -4164,12 +4164,12 @@ function Qt(o, t) {
4164
4164
  const Pt = z.control?.placeholder || "";
4165
4165
  if (Pt) {
4166
4166
  const Et = ft(Pt);
4167
- for (let Jt = 0; Jt < Et.length; Jt++)
4167
+ for (let Bt = 0; Bt < Et.length; Bt++)
4168
4168
  o.splice(s, 0, {
4169
4169
  ...St,
4170
4170
  color: i.control.placeholderColor,
4171
4171
  originControlId: V,
4172
- value: Et[Jt],
4172
+ value: Et[Bt],
4173
4173
  controlComponent: f.PLACEHOLDER
4174
4174
  }), s++;
4175
4175
  }
@@ -4211,8 +4211,8 @@ function Qt(o, t) {
4211
4211
  s++;
4212
4212
  }
4213
4213
  }
4214
- else if (y) {
4215
- const Z = ft(y);
4214
+ else if (U) {
4215
+ const Z = ft(U);
4216
4216
  for (let Q = 0; Q < Z.length; Q++)
4217
4217
  o.splice(s, 0, {
4218
4218
  ...et,
@@ -4221,8 +4221,8 @@ function Qt(o, t) {
4221
4221
  value: Z[Q],
4222
4222
  controlComponent: f.PLACEHOLDER
4223
4223
  }), s++;
4224
- } else if ((w === U.SELECT || w === U.DATE || w === U.NUMBER) && !M.control?.code && y) {
4225
- const Q = ft(y);
4224
+ } else if ((w === y.SELECT || w === y.DATE || w === y.NUMBER) && !M.control?.code && U) {
4225
+ const Q = ft(U);
4226
4226
  for (let z = 0; z < Q.length; z++)
4227
4227
  o.splice(s, 0, {
4228
4228
  ...et,
@@ -4335,8 +4335,8 @@ function Qt(o, t) {
4335
4335
  ...de
4336
4336
  ]), E = _t(l.control, ie), b = {
4337
4337
  ...E,
4338
- color: p === U.TEXT ? "#87d068" : p === U.BUTTON ? "transparent" : i.control.bracketColor,
4339
- highlight: p === U.BUTTON ? "#1677FF" : void 0
4338
+ color: p === y.TEXT ? "#87d068" : p === y.BUTTON ? "transparent" : i.control.bracketColor,
4339
+ highlight: p === y.BUTTON ? "#1677FF" : void 0
4340
4340
  }, C = {
4341
4341
  ...E,
4342
4342
  color: void 0
@@ -4369,9 +4369,9 @@ function Qt(o, t) {
4369
4369
  }), s++;
4370
4370
  }
4371
4371
  }
4372
- if (R && R.length || p === U.CHECKBOX || p === U.RADIO || p === U.BUTTON || p === U.SELECT && g && (!R || !R.length)) {
4372
+ if (R && R.length || p === y.CHECKBOX || p === y.RADIO || p === y.BUTTON || p === y.SELECT && g && (!R || !R.length)) {
4373
4373
  let N = R ? ht(R) : [];
4374
- if (p === U.CHECKBOX) {
4374
+ if (p === y.CHECKBOX) {
4375
4375
  const x = g ? g.split(",") : [];
4376
4376
  if (Array.isArray(T) && T.length) {
4377
4377
  const F = N.reduce((M, V) => M.concat(V.value.split("").map((W) => ({ ...V, value: W }))), []);
@@ -4392,8 +4392,8 @@ function Qt(o, t) {
4392
4392
  }
4393
4393
  }), s++;
4394
4394
  const W = ft(V.value);
4395
- for (let y = 0; y < W.length; y++) {
4396
- const w = W[y], v = y === W.length - 1;
4395
+ for (let U = 0; U < W.length; U++) {
4396
+ const w = W[U], v = U === W.length - 1;
4397
4397
  o.splice(s, 0, {
4398
4398
  ...X,
4399
4399
  ...C,
@@ -4408,7 +4408,7 @@ function Qt(o, t) {
4408
4408
  }
4409
4409
  }
4410
4410
  }
4411
- } else if (p === U.RADIO) {
4411
+ } else if (p === y.RADIO) {
4412
4412
  if (Array.isArray(T) && T.length) {
4413
4413
  const x = N.reduce((S, M) => S.concat(M.value.split("").map((V) => ({ ...M, value: V }))), []);
4414
4414
  let F = 0;
@@ -4429,14 +4429,14 @@ function Qt(o, t) {
4429
4429
  }), s++;
4430
4430
  const V = ft(M.value);
4431
4431
  for (let W = 0; W < V.length; W++) {
4432
- const y = V[W], w = W === V.length - 1;
4432
+ const U = V[W], w = W === V.length - 1;
4433
4433
  o.splice(s, 0, {
4434
4434
  ...X,
4435
4435
  ...C,
4436
4436
  ...x[F],
4437
4437
  controlId: P,
4438
- value: y === `
4439
- ` ? A : y,
4438
+ value: U === `
4439
+ ` ? A : U,
4440
4440
  letterSpacing: w ? L.gap : 0,
4441
4441
  control: l.control,
4442
4442
  controlComponent: f.VALUE
@@ -4445,7 +4445,7 @@ function Qt(o, t) {
4445
4445
  }
4446
4446
  }
4447
4447
  } else {
4448
- if (p === U.BUTTON) {
4448
+ if (p === y.BUTTON) {
4449
4449
  const x = l.control.buttonLabel || l.control.label || "按钮", F = ft(x);
4450
4450
  for (let S = 0; S < F.length; S++) {
4451
4451
  const M = F[S];
@@ -4482,11 +4482,11 @@ function Qt(o, t) {
4482
4482
  ]);
4483
4483
  }
4484
4484
  }
4485
- if (p !== U.BUTTON)
4485
+ if (p !== y.BUTTON)
4486
4486
  for (let x = 0; x < N.length; x++) {
4487
4487
  const F = N[x];
4488
4488
  if (F.type === O.CONTROL && F.control) {
4489
- const S = F, M = S.controlId || ut(), V = S.control?.value || [], W = S.control?.placeholder || "", y = S.control?.type, w = y === U.TEXTFIELD, v = y === U.TEXT, J = y === U.CHECKBOX, G = y === U.RADIO, ot = y === U.BUTTON, ct = w ? f.PRETEXTFIX : f.PREFIX, it = w ? f.POSTTEXTFIX : f.POSTFIX, st = {
4489
+ const S = F, M = S.controlId || ut(), V = S.control?.value || [], W = S.control?.placeholder || "", U = S.control?.type, w = U === y.TEXTFIELD, v = U === y.TEXT, J = U === y.CHECKBOX, G = U === y.RADIO, ot = U === y.BUTTON, ct = w ? f.PRETEXTFIX : f.PREFIX, it = w ? f.POSTTEXTFIX : f.POSTFIX, st = {
4490
4490
  ...X,
4491
4491
  controlId: M,
4492
4492
  type: O.CONTROL,
@@ -4577,7 +4577,7 @@ function Qt(o, t) {
4577
4577
  for (let K = 0; K < V.length; K++) {
4578
4578
  const Z = V[K];
4579
4579
  if (Z.type === O.CONTROL && Z.control) {
4580
- const Q = Z, z = Q.controlId || ut(), k = Q.control?.value || [], B = Q.control?.type === U.TEXTFIELD, q = Q.control?.type === U.TEXT, j = {
4580
+ const Q = Z, z = Q.controlId || ut(), k = Q.control?.value || [], B = Q.control?.type === y.TEXTFIELD, q = Q.control?.type === y.TEXT, j = {
4581
4581
  ...st,
4582
4582
  controlId: z,
4583
4583
  control: Q.control
@@ -4646,7 +4646,7 @@ function Qt(o, t) {
4646
4646
  value: K[Z],
4647
4647
  controlComponent: f.PLACEHOLDER
4648
4648
  }), s++;
4649
- } else if ((y === U.SELECT || y === U.DATE || y === U.NUMBER) && !S.control?.code && W) {
4649
+ } else if ((U === y.SELECT || U === y.DATE || U === y.NUMBER) && !S.control?.code && W) {
4650
4650
  const Z = ft(W);
4651
4651
  for (let Q = 0; Q < Z.length; Q++)
4652
4652
  o.splice(s, 0, {
@@ -4980,7 +4980,7 @@ function Ct(o, t = {}) {
4980
4980
  continue;
4981
4981
  }
4982
4982
  const h = (p, T, m, I) => {
4983
- if (I === U.CHECKBOX || I === U.RADIO) {
4983
+ if (I === y.CHECKBOX || I === y.RADIO) {
4984
4984
  let P = -1;
4985
4985
  for (let X = p; X < s.length && s[X].controlId === T; X++)
4986
4986
  P = X;
@@ -4999,13 +4999,13 @@ function Ct(o, t = {}) {
4999
4999
  for (; L <= T; ) {
5000
5000
  const P = s[L];
5001
5001
  if (P.controlId && P.controlId !== m && P.control) {
5002
- const Y = P.control?.type, D = Y === U.TEXTFIELD, N = D ? f.PRETEXTFIX : f.PREFIX, x = P.controlComponent === N, F = Y === U.CHECKBOX || Y === U.RADIO;
5002
+ const Y = P.control?.type, D = Y === y.TEXTFIELD, N = D ? f.PRETEXTFIX : f.PREFIX, x = P.controlComponent === N, F = Y === y.CHECKBOX || Y === y.RADIO;
5003
5003
  if (x || F && (P.controlComponent === f.CHECKBOX || P.controlComponent === f.RADIO)) {
5004
5004
  const S = h(L + 1, P.controlId, D, Y);
5005
5005
  if (S !== -1) {
5006
5006
  const M = s.slice(L, S + 1).map((W) => {
5007
- const y = ht(W);
5008
- return delete y.originControlId, y;
5007
+ const U = ht(W);
5008
+ return delete U.originControlId, U;
5009
5009
  }), V = Ct(M, t);
5010
5010
  V.length > 0 && I.push(V[0]), L = S + 1;
5011
5011
  continue;
@@ -5027,7 +5027,7 @@ function Ct(o, t = {}) {
5027
5027
  continue;
5028
5028
  }
5029
5029
  const b = c.control?.type;
5030
- if (b === U.CHECKBOX || b === U.RADIO) {
5030
+ if (b === y.CHECKBOX || b === y.RADIO) {
5031
5031
  let Y = L - 1, D = !1;
5032
5032
  for (; Y >= p - 1; ) {
5033
5033
  const N = s[Y];
@@ -5102,7 +5102,7 @@ function Ct(o, t = {}) {
5102
5102
  return I;
5103
5103
  };
5104
5104
  if (c.controlComponent === f.PREFIX) {
5105
- const p = c.control?.type === U.TEXTFIELD, T = h(a + 1, u, p);
5105
+ const p = c.control?.type === y.TEXTFIELD, T = h(a + 1, u, p);
5106
5106
  if (T !== -1) {
5107
5107
  const m = g(a + 1, T - 1, u), I = _t(c, ie), L = {
5108
5108
  ...c.control,
@@ -5674,11 +5674,11 @@ function Va(o, t) {
5674
5674
  function te(o) {
5675
5675
  return o ? !!(o.hide || o.control?.hide || o.area?.hide) : !0;
5676
5676
  }
5677
- function xn(o, t, e = jt.BEFORE) {
5677
+ function xn(o, t, e = Jt.BEFORE) {
5678
5678
  if (!te(o[t]))
5679
5679
  return t;
5680
5680
  let n = t;
5681
- if (e === jt.BEFORE)
5681
+ if (e === Jt.BEFORE)
5682
5682
  for (n = t - 1; n > 0; ) {
5683
5683
  if (!te(o[n]))
5684
5684
  return n;
@@ -6378,9 +6378,9 @@ function Ka(o, t) {
6378
6378
  const X = e.getElementList(), E = r.getPositionList(), b = I ? L : u;
6379
6379
  let C;
6380
6380
  I ? C = e.getTd().value[L] : C = X[b];
6381
- const Y = !!(R && p), D = !!(R && h), N = !!(R && g), x = !!(R && T), F = !!(R && m), S = (rt) => rt && (rt.type === O.MACRO || rt.type === O.CUSTOM_MACRO || rt.type === O.REUSABLE_ITEM || rt.type === O.SUB_TEMPLATE || rt.type === O.MENSTRUAL_HISTORY || rt.type === O.FETAL_HEART_POSITION || rt.type === O.TOOTH_POSITION || rt.type === O.LIST || rt.type === O.SPECIAL_SYMBOLS), M = (rt) => rt && !!rt.originControlId && !!rt.controlId, V = (rt) => rt && !!rt.originControlId && !!rt.controlId && (rt.controlComponent === f.POSTFIX || rt.controlComponent === f.POSTTEXTFIX || rt.controlComponent === f.POST_TEXT || rt.controlComponent === f.PLACEHOLDER), W = e.getMode() === H.FORM, y = W ? e.getControl().getActiveTextControlLimit() : null;
6381
+ const Y = !!(R && p), D = !!(R && h), N = !!(R && g), x = !!(R && T), F = !!(R && m), S = (rt) => rt && (rt.type === O.MACRO || rt.type === O.CUSTOM_MACRO || rt.type === O.REUSABLE_ITEM || rt.type === O.SUB_TEMPLATE || rt.type === O.MENSTRUAL_HISTORY || rt.type === O.FETAL_HEART_POSITION || rt.type === O.TOOTH_POSITION || rt.type === O.LIST || rt.type === O.SPECIAL_SYMBOLS), M = (rt) => rt && !!rt.originControlId && !!rt.controlId, V = (rt) => rt && !!rt.originControlId && !!rt.controlId && (rt.controlComponent === f.POSTFIX || rt.controlComponent === f.POSTTEXTFIX || rt.controlComponent === f.POST_TEXT || rt.controlComponent === f.PLACEHOLDER), W = e.getMode() === H.FORM, U = W ? e.getControl().getActiveTextControlLimit() : null;
6382
6382
  let w = b;
6383
- const v = !!(y && (!C?.controlId || C.controlId === y.controlId && (C.originControlId || null) === y.originControlId || y.parentControlId && C.controlId === y.parentControlId && !C.originControlId));
6383
+ const v = !!(U && (!C?.controlId || C.controlId === U.controlId && (C.originControlId || null) === U.originControlId || U.parentControlId && C.controlId === U.parentControlId && !C.originControlId));
6384
6384
  if (W && (C?.controlId || C?.originControlId)) {
6385
6385
  let rt;
6386
6386
  const Tt = C.originControlId || C.controlId;
@@ -6393,9 +6393,9 @@ function Ka(o, t) {
6393
6393
  if (_.controlId !== C.controlId && _.controlId !== Tt)
6394
6394
  break;
6395
6395
  }
6396
- if (rt === U.TEXT && M(C))
6396
+ if (rt === y.TEXT && M(C))
6397
6397
  C.controlComponent === f.PREFIX || C.controlComponent === f.PRE_TEXT || C.controlComponent === f.PRETEXTFIX || C.controlComponent === f.PRETEXTFIX_TEXT ? w = Math.max(b - 1, 0) : (C.controlComponent === f.POSTFIX || C.controlComponent === f.POST_TEXT || C.controlComponent === f.POSTTEXTFIX || C.controlComponent === f.POSTTEXTFIX_TEXT) && (w = b);
6398
- else if (rt === U.TEXTFIELD) {
6398
+ else if (rt === y.TEXTFIELD) {
6399
6399
  const mt = C.controlComponent;
6400
6400
  if (!M(C)) {
6401
6401
  if (!(b > 0 && V(X[b - 1]))) {
@@ -6453,17 +6453,17 @@ function Ka(o, t) {
6453
6453
  }
6454
6454
  }
6455
6455
  if (~u) {
6456
- v && (w = Math.min(Math.max(w, y.startIndex), y.endIndex));
6456
+ v && (w = Math.min(Math.max(w, U.startIndex), U.endIndex));
6457
6457
  let rt = w, Tt = w;
6458
6458
  if (o.shiftKey) {
6459
6459
  const { startIndex: mt } = i.getRange();
6460
6460
  ~mt && r.getPositionContext().tdId === c.tdId && (b > mt ? rt = mt : Tt = mt);
6461
6461
  }
6462
- if (v && (rt = Math.min(Math.max(rt, y.startIndex), y.endIndex), Tt = Math.min(Math.max(Tt, y.startIndex), y.endIndex), w = Math.min(Math.max(w, y.startIndex), y.endIndex)), i.setRange(rt, Tt), r.setCursorPosition(E[w]), n = e.isReadonly(), D && !n)
6462
+ if (v && (rt = Math.min(Math.max(rt, U.startIndex), U.endIndex), Tt = Math.min(Math.max(Tt, U.startIndex), U.endIndex), w = Math.min(Math.max(w, U.startIndex), U.endIndex)), i.setRange(rt, Tt), r.setCursorPosition(E[w]), n = e.isReadonly(), D && !n)
6463
6463
  ps(C, e);
6464
6464
  else if (N && !n)
6465
6465
  Ts(C, e);
6466
- else if (C.controlComponent === f.VALUE && (C.control?.type === U.CHECKBOX || C.control?.type === U.RADIO)) {
6466
+ else if (C.controlComponent === f.VALUE && (C.control?.type === y.CHECKBOX || C.control?.type === y.RADIO)) {
6467
6467
  let mt = b;
6468
6468
  for (; mt > 0; ) {
6469
6469
  const _ = X[mt];
@@ -6477,14 +6477,14 @@ function Ka(o, t) {
6477
6477
  mt--;
6478
6478
  }
6479
6479
  } else {
6480
- const mt = C?.control?.type === U.BUTTON && !C.control?.buttonText, _ = R && mt;
6480
+ const mt = C?.control?.type === y.BUTTON && !C.control?.buttonText, _ = R && mt;
6481
6481
  let K = !1;
6482
6482
  if (W && C?.controlId && C?.controlComponent === f.VALUE && !C.originControlId)
6483
6483
  for (let k = b; k >= 0; k--) {
6484
6484
  const B = X[k];
6485
6485
  if (B.controlId !== C.controlId)
6486
6486
  break;
6487
- if (B.control?.type === U.TEXTFIELD) {
6487
+ if (B.control?.type === y.TEXTFIELD) {
6488
6488
  K = !0;
6489
6489
  break;
6490
6490
  }
@@ -6499,7 +6499,7 @@ function Ka(o, t) {
6499
6499
  const z = X[w];
6500
6500
  if (!n && R && z?.controlId && o.button === Pn.LEFT) {
6501
6501
  const B = e.getControl().getActiveControl(), q = B?.getElement()?.control?.type;
6502
- B && (q === U.NUMBER || q === U.SELECT) && B.getElement()?.controlId === z.controlId && z.controlComponent !== f.POSTFIX && z.controlComponent !== f.POSTTEXTFIX && z.controlComponent !== f.POSTTEXTFIX_TEXT && z.controlComponent !== f.POST_TEXT && typeof B.awake == "function" && B.awake();
6502
+ B && (q === y.NUMBER || q === y.SELECT) && B.getElement()?.controlId === z.controlId && z.controlComponent !== f.POSTFIX && z.controlComponent !== f.POSTTEXTFIX && z.controlComponent !== f.POSTTEXTFIX_TEXT && z.controlComponent !== f.POST_TEXT && typeof B.awake == "function" && B.awake();
6503
6503
  }
6504
6504
  }
6505
6505
  P && t.getDraw().getCursor().drawCursor({
@@ -6609,7 +6609,7 @@ function Ha(o, t) {
6609
6609
  const p = a.slice(h + 1, g + 1), T = p.find((it) => it.controlId);
6610
6610
  if (T) {
6611
6611
  const it = a[h + 1], st = a[g];
6612
- if (!((!it.controlId || it.controlComponent === f.PREFIX) && (!st.controlId || st.controlComponent === f.POSTFIX) || it.controlId === st.controlId && it.controlComponent === f.PREFIX && st.controlComponent === f.POSTFIX || it.control?.type === U.TEXT && it.controlComponent === f.VALUE && st.control?.type === U.TEXT && st.controlComponent === f.VALUE)) {
6612
+ if (!((!it.controlId || it.controlComponent === f.PREFIX) && (!st.controlId || st.controlComponent === f.POSTFIX) || it.controlId === st.controlId && it.controlComponent === f.PREFIX && st.controlComponent === f.POSTFIX || it.control?.type === y.TEXT && it.controlComponent === f.VALUE && st.control?.type === y.TEXT && st.controlComponent === f.VALUE)) {
6613
6613
  e.render({
6614
6614
  curIndex: u.startIndex,
6615
6615
  isCompute: !1,
@@ -6647,8 +6647,8 @@ function Ha(o, t) {
6647
6647
  });
6648
6648
  return;
6649
6649
  }
6650
- const S = ao(I[N]), M = ao(I[x]), V = co(C, a), W = co(Y, a), y = a[W];
6651
- if (y.controlId && y.controlComponent !== f.POSTFIX)
6650
+ const S = ao(I[N]), M = ao(I[x]), V = co(C, a), W = co(Y, a), U = a[W];
6651
+ if (U.controlId && U.controlComponent !== f.POSTFIX)
6652
6652
  s.replaceRange({
6653
6653
  ...l,
6654
6654
  startIndex: V,
@@ -6706,13 +6706,13 @@ function Ga(o, t) {
6706
6706
  });
6707
6707
  if (~a.index) {
6708
6708
  const S = e.getElementList(), M = a.isTable ? a.tdValueIndex : a.index, V = S[M];
6709
- V?.control?.type === U.BUTTON && !V.control?.buttonText ? s && (s.style.cursor = "pointer") : s && (s.style.cursor = "text");
6709
+ V?.control?.type === y.BUTTON && !V.control?.buttonText ? s && (s.style.cursor = "pointer") : s && (s.style.cursor = "text");
6710
6710
  } else
6711
6711
  s && (s.style.cursor = "text");
6712
6712
  if (t.isAllowDrag) {
6713
- const S = o.offsetX, M = o.offsetY, { startIndex: V, endIndex: W } = t.cacheRange, y = t.cachePositionList;
6713
+ const S = o.offsetX, M = o.offsetY, { startIndex: V, endIndex: W } = t.cacheRange, U = t.cachePositionList;
6714
6714
  for (let v = V + 1; v <= W; v++) {
6715
- const { coordinate: { leftTop: J, rightBottom: G } } = y[v];
6715
+ const { coordinate: { leftTop: J, rightBottom: G } } = U[v];
6716
6716
  if (S >= J[0] && S <= G[0] && M >= J[1] && M <= G[1])
6717
6717
  return;
6718
6718
  }
@@ -6805,7 +6805,7 @@ function Ga(o, t) {
6805
6805
  const v = n.getActiveTextControlLimit();
6806
6806
  v && (M = Math.min(Math.max(M, v.startIndex), v.endIndex), S = Math.min(Math.max(S, v.startIndex), v.endIndex));
6807
6807
  const J = e.getElementList(), G = J[M], ot = J[S];
6808
- if (G?.control?.type === U.TEXTFIELD || ot?.control?.type === U.TEXTFIELD) {
6808
+ if (G?.control?.type === y.TEXTFIELD || ot?.control?.type === y.TEXTFIELD) {
6809
6809
  const ct = G?.controlId || ot?.controlId;
6810
6810
  if (ct) {
6811
6811
  let it = -1, st = -1;
@@ -7107,7 +7107,7 @@ function za(o, t) {
7107
7107
  }), o.shiftKey && c.areaId && c.areaId !== l[r + 1]?.areaId && (d = Ie(d, dn)), !(l[i + 1]?.titleId && (!a.titleId || a.titleId !== l[i + 1]?.titleId)) && !(c.titleId && c.titleId !== l[r + 1]?.titleId)) {
7108
7108
  const T = n.getRangeAnchorStyle(l, r);
7109
7109
  if (T) {
7110
- const m = [...de], I = T.controlComponent === f.POSTFIX || T.controlComponent === f.POSTTEXTFIX || T.controlComponent === f.POSTTEXTFIX_TEXT || T.controlComponent === f.POST_TEXT, L = T.control?.type === U.BUTTON && !T.control?.buttonText;
7110
+ const m = [...de], I = T.controlComponent === f.POSTFIX || T.controlComponent === f.POSTTEXTFIX || T.controlComponent === f.POSTTEXTFIX_TEXT || T.controlComponent === f.POST_TEXT, L = T.control?.type === y.BUTTON && !T.control?.buttonText;
7111
7111
  !I && !L && m.push(...Ve), m.forEach((P) => {
7112
7112
  const X = T[P];
7113
7113
  X !== void 0 && (d[P] = X);
@@ -7117,7 +7117,7 @@ function za(o, t) {
7117
7117
  const u = e.getControl(), R = u.getActiveControl();
7118
7118
  let h;
7119
7119
  const g = R?.getElement();
7120
- if (g?.control?.type === U.BUTTON && !g.control?.buttonText && g?.controlId) {
7120
+ if (g?.control?.type === y.BUTTON && !g.control?.buttonText && g?.controlId) {
7121
7121
  const T = g.controlId;
7122
7122
  let m = r;
7123
7123
  for (; m + 1 < l.length && l[m + 1]?.controlId === T; )
@@ -7197,7 +7197,7 @@ function ja(o, t) {
7197
7197
  const F = R[x];
7198
7198
  if (F.controlId !== D)
7199
7199
  break;
7200
- if (F.control?.type === U.TEXTFIELD) {
7200
+ if (F.control?.type === y.TEXTFIELD) {
7201
7201
  N = !0;
7202
7202
  break;
7203
7203
  }
@@ -7343,7 +7343,7 @@ function qa(o, t) {
7343
7343
  const M = h[S];
7344
7344
  if (M.controlId !== x)
7345
7345
  break;
7346
- if (M.control?.type === U.TEXTFIELD) {
7346
+ if (M.control?.type === y.TEXTFIELD) {
7347
7347
  F = !0;
7348
7348
  break;
7349
7349
  }
@@ -7390,10 +7390,10 @@ function qa(o, t) {
7390
7390
  else {
7391
7391
  const V = e.getOriginalElementList()[a.index].trList;
7392
7392
  t: for (let W = 0; W < V.length; W++) {
7393
- const y = V[W];
7394
- if (y.id !== N.trId)
7393
+ const U = V[W];
7394
+ if (U.id !== N.trId)
7395
7395
  continue;
7396
- const w = y.tdList;
7396
+ const w = U.tdList;
7397
7397
  for (let v = 0; v < w.length; v++)
7398
7398
  if (w[v].id === N.tdId) {
7399
7399
  if (W === V.length - 1 && v === w.length - 1)
@@ -7424,7 +7424,7 @@ function qa(o, t) {
7424
7424
  if (E > C || b > C)
7425
7425
  return;
7426
7426
  const Y = e.getElementList();
7427
- E = xn(Y, E, jt.AFTER), b = xn(Y, b, jt.AFTER), c.setRange(E, b);
7427
+ E = xn(Y, E, Jt.AFTER), b = xn(Y, b, Jt.AFTER), c.setRange(E, b);
7428
7428
  const D = E === b;
7429
7429
  e.updateTableTool(), e.render({
7430
7430
  curIndex: D ? E : void 0,
@@ -7621,8 +7621,8 @@ function ec(o, t) {
7621
7621
  t: for (let F = Y.length - 1; F >= 0; F--) {
7622
7622
  const M = Y[F].tdList;
7623
7623
  for (let V = 0; V < M.length; V++) {
7624
- const W = M[V], y = W.x * b + C[3], w = W.width * b;
7625
- if (L >= y && L <= y + w) {
7624
+ const W = M[V], U = W.x * b + C[3], w = W.width * b;
7625
+ if (L >= U && L <= U + w) {
7626
7626
  const v = W.positionList, J = v[v.length - 1], G = zo({
7627
7627
  positionList: v,
7628
7628
  index: J.index + 1,
@@ -7639,8 +7639,8 @@ function ec(o, t) {
7639
7639
  t: for (let F = 0; F < Y.length; F++) {
7640
7640
  const M = Y[F].tdList;
7641
7641
  for (let V = 0; V < M.length; V++) {
7642
- const W = M[V], y = W.x * b + C[3], w = W.width * b;
7643
- if (L >= y && L <= y + w) {
7642
+ const W = M[V], U = W.x * b + C[3], w = W.width * b;
7643
+ if (L >= U && L <= U + w) {
7644
7644
  const v = W.positionList, J = zo({
7645
7645
  positionList: v,
7646
7646
  index: -1,
@@ -7777,7 +7777,7 @@ function mi(o, t, e = "input") {
7777
7777
  const B = Q[k];
7778
7778
  if (B.controlId !== z.controlId || B.originControlId)
7779
7779
  break;
7780
- if (B.control?.type === U.TEXTFIELD)
7780
+ if (B.control?.type === y.TEXTFIELD)
7781
7781
  return;
7782
7782
  }
7783
7783
  }
@@ -7788,8 +7788,8 @@ function mi(o, t, e = "input") {
7788
7788
  `, A), { startIndex: S, endIndex: M } = g.getRange(), V = g.getRangeAnchorStyle(E, S);
7789
7789
  if (!V)
7790
7790
  return;
7791
- const W = S > 0 ? E[S - 1] : null, y = !!(V.controlId || V.control), v = {
7792
- ...!y && W ? W : V,
7791
+ const W = S > 0 ? E[S - 1] : null, U = !!(V.controlId || V.control), v = {
7792
+ ...!U && W ? W : V,
7793
7793
  ...P
7794
7794
  }, J = i.isDesignMode(), G = E[M + 1], ot = rc(G) && !G?.originControlId, ct = lc(V) && !V.originControlId || V.type === O.CONTROL && V.controlComponent === f.VALUE && G?.type !== O.CONTROL && !V.originControlId, it = ot || ct, st = it ? {
7795
7795
  ...V,
@@ -7801,7 +7801,7 @@ function mi(o, t, e = "input") {
7801
7801
  // 使用默认颜色而不是继承控件的颜色
7802
7802
  color: s.defaultColor,
7803
7803
  highlight: void 0
7804
- } : V, et = it || y ? st : v, pt = ft(F).map((_) => {
7804
+ } : V, et = it || U ? st : v, pt = ft(F).map((_) => {
7805
7805
  const K = {
7806
7806
  value: _
7807
7807
  };
@@ -7920,10 +7920,10 @@ function mi(o, t, e = "input") {
7920
7920
  rt = _(K);
7921
7921
  else if (Tt?.originControlId && (Tt?.controlComponent === "postfix" || Tt?.controlComponent === "postTextFix"))
7922
7922
  rt = _(K);
7923
- else if ((Tt?.control?.type === U.NUMBER || mt?.control?.type === U.NUMBER) && r.getActiveControl()?.getElement()?.control?.type === U.NUMBER && r.getIsRangeWithinControl()) {
7923
+ else if ((Tt?.control?.type === y.NUMBER || mt?.control?.type === y.NUMBER) && r.getActiveControl()?.getElement()?.control?.type === y.NUMBER && r.getIsRangeWithinControl()) {
7924
7924
  const Z = r.getActiveControl();
7925
7925
  Z && typeof Z.awake == "function" && Z.awake(), rt = S;
7926
- } else if ((Tt?.control?.type === U.SELECT || mt?.control?.type === U.SELECT) && r.getActiveControl()?.getElement()?.control?.type === U.SELECT && r.getIsRangeWithinControl()) {
7926
+ } else if ((Tt?.control?.type === y.SELECT || mt?.control?.type === y.SELECT) && r.getActiveControl()?.getElement()?.control?.type === y.SELECT && r.getIsRangeWithinControl()) {
7927
7927
  const Z = r.getActiveControl();
7928
7928
  Z && typeof Z.awake == "function" && Z.awake(), rt = S;
7929
7929
  } else Tt?.control?.type === "button" || mt?.control?.type === "button" ? (Tt?.control || mt?.control)?.buttonText ? rt = S : r.getActiveControl() && r.getIsRangeWithinControl() ? (r.removePlaceholder(S, { elementList: E }), rt = r.setValue(pt), r.emitControlContentChange()) : rt = S : r.getActiveControl() && r.getIsRangeWithinControl() ? (r.removePlaceholder(S, { elementList: E }), rt = r.setValue(pt), r.emitControlContentChange()) : (Tt?.type === "control" || mt?.type === "control") && !it ? rt = _(K) : (At(E, pt, S, {
@@ -8771,8 +8771,8 @@ class Xc {
8771
8771
  trIndex: x,
8772
8772
  zone: d
8773
8773
  });
8774
- if (M.verticalAlign === Bt.MIDDLE || M.verticalAlign === Bt.BOTTOM) {
8775
- const y = V.reduce((J, G) => J + G.height, 0), w = (M.height - N) * u - y, v = M.verticalAlign === Bt.MIDDLE ? w / 2 : w;
8774
+ if (M.verticalAlign === $t.MIDDLE || M.verticalAlign === $t.BOTTOM) {
8775
+ const U = V.reduce((J, G) => J + G.height, 0), w = (M.height - N) * u - U, v = M.verticalAlign === $t.MIDDLE ? w / 2 : w;
8776
8776
  Math.floor(v) > 0 && M.positionList.forEach((J) => {
8777
8777
  const { coordinate: { leftTop: G, leftBottom: ot, rightBottom: ct, rightTop: it } } = J;
8778
8778
  G[1] += v, ot[1] += v, ct[1] += v, it[1] += v;
@@ -10958,8 +10958,8 @@ class yc {
10958
10958
  const Y = R.map((V) => V.height), D = document.createElement("div");
10959
10959
  D.classList.add(`${tt}-table-tool__row`), D.style.transform = `translateX(-${this.ROW_COL_OFFSET * a}px)`;
10960
10960
  for (let V = 0; V < Y.length; V++) {
10961
- const W = Y[V] * a, y = document.createElement("div");
10962
- y.classList.add(`${tt}-table-tool__row__item`), V === P && y.classList.add("active"), y.onclick = () => {
10961
+ const W = Y[V] * a, U = document.createElement("div");
10962
+ U.classList.add(`${tt}-table-tool__row__item`), V === P && U.classList.add("active"), U.onclick = () => {
10963
10963
  const v = this.draw.getTableParticle().getTdListByRowIndex(R, V), J = v[0], G = v[v.length - 1];
10964
10964
  this.position.setPositionContext({
10965
10965
  index: e,
@@ -10981,7 +10981,7 @@ class yc {
10981
10981
  index: V,
10982
10982
  order: Ne.ROW
10983
10983
  });
10984
- }, y.append(w), y.style.height = `${W}px`, D.append(y);
10984
+ }, U.append(w), U.style.height = `${W}px`, D.append(U);
10985
10985
  }
10986
10986
  D.style.left = `${m}px`, D.style.top = `${I}px`, this.container.append(D), this.toolRowContainer = D;
10987
10987
  const N = document.createElement("div");
@@ -10997,8 +10997,8 @@ class yc {
10997
10997
  const x = u.map((V) => V.width), F = document.createElement("div");
10998
10998
  F.classList.add(`${tt}-table-tool__col`), F.style.transform = `translateY(-${this.ROW_COL_OFFSET * a}px)`;
10999
10999
  for (let V = 0; V < x.length; V++) {
11000
- const W = x[V] * a, y = document.createElement("div");
11001
- y.classList.add(`${tt}-table-tool__col__item`), V === X && y.classList.add("active"), y.onclick = () => {
11000
+ const W = x[V] * a, U = document.createElement("div");
11001
+ U.classList.add(`${tt}-table-tool__col__item`), V === X && U.classList.add("active"), U.onclick = () => {
11002
11002
  const v = this.draw.getTableParticle().getTdListByColIndex(R, V), J = v[0], G = v[v.length - 1];
11003
11003
  this.position.setPositionContext({
11004
11004
  index: e,
@@ -11020,7 +11020,7 @@ class yc {
11020
11020
  index: V,
11021
11021
  order: Ne.COL
11022
11022
  });
11023
- }, y.append(w), y.style.width = `${W}px`, F.append(y);
11023
+ }, U.append(w), U.style.width = `${W}px`, F.append(U);
11024
11024
  }
11025
11025
  F.style.left = `${m}px`, F.style.top = `${I}px`, this.container.append(F), this.toolColContainer = F;
11026
11026
  const S = document.createElement("div");
@@ -11037,8 +11037,8 @@ class yc {
11037
11037
  M.classList.add(`${tt}-table-tool__border`), M.style.height = `${E}px`, M.style.width = `${b}px`, M.style.left = `${m}px`, M.style.top = `${I}px`;
11038
11038
  for (let V = 0; V < R.length; V++) {
11039
11039
  const W = R[V];
11040
- for (let y = 0; y < W.tdList.length; y++) {
11041
- const w = W.tdList[y], v = document.createElement("div");
11040
+ for (let U = 0; U < W.tdList.length; U++) {
11041
+ const w = W.tdList[U], v = document.createElement("div");
11042
11042
  v.classList.add(`${tt}-table-tool__border__row`), v.style.width = `${w.width * a}px`, v.style.height = `${this.BORDER_VALUE}px`, v.style.top = `${(w.y + w.height) * a - this.BORDER_VALUE / 2}px`, v.style.left = `${w.x * a}px`, v.onmousedown = (G) => {
11043
11043
  this._mousedown({
11044
11044
  evt: G,
@@ -11096,8 +11096,8 @@ class yc {
11096
11096
  document.addEventListener("mousemove", S), document.addEventListener("mouseup", () => {
11097
11097
  let M = !1;
11098
11098
  if (i === Ne.ROW) {
11099
- const V = r.trList, W = V[n] || V[n - 1], { defaultTrMinHeight: y } = this.options.table;
11100
- F < 0 && W.height + F < y && (F = y - W.height), F && (W.height += F, W.minHeight = W.height, M = !0);
11099
+ const V = r.trList, W = V[n] || V[n - 1], { defaultTrMinHeight: U } = this.options.table;
11100
+ F < 0 && W.height + F < U && (F = U - W.height), F && (W.height += F, W.minHeight = W.height, M = !0);
11101
11101
  } else {
11102
11102
  const { colgroup: V } = r;
11103
11103
  if (V && x)
@@ -11108,8 +11108,8 @@ class yc {
11108
11108
  } else {
11109
11109
  const W = V[n].width;
11110
11110
  x < 0 && W * l + x < this.MIN_TD_WIDTH * l && (x = this.MIN_TD_WIDTH * l - W * l);
11111
- const y = V[n + 1]?.width;
11112
- if (x > 0 && y && y * l - x < this.MIN_TD_WIDTH * l && (x = y * l - this.MIN_TD_WIDTH * l), n === V.length - 1) {
11111
+ const U = V[n + 1]?.width;
11112
+ if (x > 0 && U && U * l - x < this.MIN_TD_WIDTH * l && (x = U * l - this.MIN_TD_WIDTH * l), n === V.length - 1) {
11113
11113
  const v = T + (r.translateX || 0) * l + r.width * l;
11114
11114
  v + x > X && (x = X - v);
11115
11115
  }
@@ -12381,7 +12381,7 @@ function md(o, t, e) {
12381
12381
  function Qo(o) {
12382
12382
  return o % 4 === 0 && o % 100 !== 0 || o % 400 === 0;
12383
12383
  }
12384
- var ee = 0, He = 1, be = 2, $t = 3, Le = 4, _e = 5, Rn = 6, Ld = 7, Id = 8;
12384
+ var ee = 0, He = 1, be = 2, zt = 3, Le = 4, _e = 5, Rn = 6, Ld = 7, Id = 8;
12385
12385
  dt("Y", 0, 0, function() {
12386
12386
  var o = this.year();
12387
12387
  return o <= 9999 ? De(o, 4) : "+" + o;
@@ -12853,32 +12853,32 @@ lt("hmm", Ir);
12853
12853
  lt("hmmss", Pr);
12854
12854
  lt("Hmm", Ir);
12855
12855
  lt("Hmmss", Pr);
12856
- xt(["H", "HH"], $t);
12856
+ xt(["H", "HH"], zt);
12857
12857
  xt(["k", "kk"], function(o, t, e) {
12858
12858
  var n = Mt(o);
12859
- t[$t] = n === 24 ? 0 : n;
12859
+ t[zt] = n === 24 ? 0 : n;
12860
12860
  });
12861
12861
  xt(["a", "A"], function(o, t, e) {
12862
12862
  e._isPm = e._locale.isPM(o), e._meridiem = o;
12863
12863
  });
12864
12864
  xt(["h", "hh"], function(o, t, e) {
12865
- t[$t] = Mt(o), Lt(e).bigHour = !0;
12865
+ t[zt] = Mt(o), Lt(e).bigHour = !0;
12866
12866
  });
12867
12867
  xt("hmm", function(o, t, e) {
12868
12868
  var n = o.length - 2;
12869
- t[$t] = Mt(o.substr(0, n)), t[Le] = Mt(o.substr(n)), Lt(e).bigHour = !0;
12869
+ t[zt] = Mt(o.substr(0, n)), t[Le] = Mt(o.substr(n)), Lt(e).bigHour = !0;
12870
12870
  });
12871
12871
  xt("hmmss", function(o, t, e) {
12872
12872
  var n = o.length - 4, i = o.length - 2;
12873
- t[$t] = Mt(o.substr(0, n)), t[Le] = Mt(o.substr(n, 2)), t[_e] = Mt(o.substr(i)), Lt(e).bigHour = !0;
12873
+ t[zt] = Mt(o.substr(0, n)), t[Le] = Mt(o.substr(n, 2)), t[_e] = Mt(o.substr(i)), Lt(e).bigHour = !0;
12874
12874
  });
12875
12875
  xt("Hmm", function(o, t, e) {
12876
12876
  var n = o.length - 2;
12877
- t[$t] = Mt(o.substr(0, n)), t[Le] = Mt(o.substr(n));
12877
+ t[zt] = Mt(o.substr(0, n)), t[Le] = Mt(o.substr(n));
12878
12878
  });
12879
12879
  xt("Hmmss", function(o, t, e) {
12880
12880
  var n = o.length - 4, i = o.length - 2;
12881
- t[$t] = Mt(o.substr(0, n)), t[Le] = Mt(o.substr(n, 2)), t[_e] = Mt(o.substr(i));
12881
+ t[zt] = Mt(o.substr(0, n)), t[Le] = Mt(o.substr(n, 2)), t[_e] = Mt(o.substr(i));
12882
12882
  });
12883
12883
  function lu(o) {
12884
12884
  return (o + "").toLowerCase().charAt(0) === "p";
@@ -12992,7 +12992,7 @@ function fu() {
12992
12992
  }
12993
12993
  function ji(o) {
12994
12994
  var t, e = o._a;
12995
- return e && Lt(o).overflow === -2 && (t = e[He] < 0 || e[He] > 11 ? He : e[be] < 1 || e[be] > ki(e[ee], e[He]) ? be : e[$t] < 0 || e[$t] > 24 || e[$t] === 24 && (e[Le] !== 0 || e[_e] !== 0 || e[Rn] !== 0) ? $t : e[Le] < 0 || e[Le] > 59 ? Le : e[_e] < 0 || e[_e] > 59 ? _e : e[Rn] < 0 || e[Rn] > 999 ? Rn : -1, Lt(o)._overflowDayOfYear && (t < ee || t > be) && (t = be), Lt(o)._overflowWeeks && t === -1 && (t = Ld), Lt(o)._overflowWeekday && t === -1 && (t = Id), Lt(o).overflow = t), o;
12995
+ return e && Lt(o).overflow === -2 && (t = e[He] < 0 || e[He] > 11 ? He : e[be] < 1 || e[be] > ki(e[ee], e[He]) ? be : e[zt] < 0 || e[zt] > 24 || e[zt] === 24 && (e[Le] !== 0 || e[_e] !== 0 || e[Rn] !== 0) ? zt : e[Le] < 0 || e[Le] > 59 ? Le : e[_e] < 0 || e[_e] > 59 ? _e : e[Rn] < 0 || e[Rn] > 999 ? Rn : -1, Lt(o)._overflowDayOfYear && (t < ee || t > be) && (t = be), Lt(o)._overflowWeeks && t === -1 && (t = Ld), Lt(o)._overflowWeekday && t === -1 && (t = Id), Lt(o).overflow = t), o;
12996
12996
  }
12997
12997
  var pu = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Tu = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, mu = /Z|[+-]\d\d(?::?\d\d)?/, Ro = [
12998
12998
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
@@ -13161,10 +13161,10 @@ function qi(o) {
13161
13161
  o._a[t] = n[t] = i[t];
13162
13162
  for (; t < 7; t++)
13163
13163
  o._a[t] = n[t] = o._a[t] == null ? t === 2 ? 1 : 0 : o._a[t];
13164
- o._a[$t] === 24 && o._a[Le] === 0 && o._a[_e] === 0 && o._a[Rn] === 0 && (o._nextDay = !0, o._a[$t] = 0), o._d = (o._useUTC ? zn : Dd).apply(
13164
+ o._a[zt] === 24 && o._a[Le] === 0 && o._a[_e] === 0 && o._a[Rn] === 0 && (o._nextDay = !0, o._a[zt] = 0), o._d = (o._useUTC ? zn : Dd).apply(
13165
13165
  null,
13166
13166
  n
13167
- ), r = o._useUTC ? o._d.getUTCDay() : o._d.getDay(), o._tzm != null && o._d.setUTCMinutes(o._d.getUTCMinutes() - o._tzm), o._nextDay && (o._a[$t] = 24), o._w && typeof o._w.d < "u" && o._w.d !== r && (Lt(o).weekdayMismatch = !0);
13167
+ ), r = o._useUTC ? o._d.getUTCDay() : o._d.getDay(), o._tzm != null && o._d.setUTCMinutes(o._d.getUTCMinutes() - o._tzm), o._nextDay && (o._a[zt] = 24), o._w && typeof o._w.d < "u" && o._w.d !== r && (Lt(o).weekdayMismatch = !0);
13168
13168
  }
13169
13169
  }
13170
13170
  function Cu(o) {
@@ -13194,9 +13194,9 @@ function ts(o) {
13194
13194
  r = i[e], n = (t.match(pd(r, o)) || [])[0], n && (s = t.substr(0, t.indexOf(n)), s.length > 0 && Lt(o).unusedInput.push(s), t = t.slice(
13195
13195
  t.indexOf(n) + n.length
13196
13196
  ), a += n.length), En[r] ? (n ? Lt(o).empty = !1 : Lt(o).unusedTokens.push(r), md(r, n, o)) : o._strict && !n && Lt(o).unusedTokens.push(r);
13197
- Lt(o).charsLeftOver = l - a, t.length > 0 && Lt(o).unusedInput.push(t), o._a[$t] <= 12 && Lt(o).bigHour === !0 && o._a[$t] > 0 && (Lt(o).bigHour = void 0), Lt(o).parsedDateParts = o._a.slice(0), Lt(o).meridiem = o._meridiem, o._a[$t] = bu(
13197
+ Lt(o).charsLeftOver = l - a, t.length > 0 && Lt(o).unusedInput.push(t), o._a[zt] <= 12 && Lt(o).bigHour === !0 && o._a[zt] > 0 && (Lt(o).bigHour = void 0), Lt(o).parsedDateParts = o._a.slice(0), Lt(o).meridiem = o._meridiem, o._a[zt] = bu(
13198
13198
  o._locale,
13199
- o._a[$t],
13199
+ o._a[zt],
13200
13200
  o._meridiem
13201
13201
  ), c = Lt(o).era, c !== null && (o._a[ee] = o._locale.erasConvertYear(c, o._a[ee])), qi(o), ji(o);
13202
13202
  }
@@ -13419,7 +13419,7 @@ function Me(o, t) {
13419
13419
  } : Be(o) || !isNaN(+o) ? (e = {}, t ? e[t] = +o : e.milliseconds = +o) : (n = eR.exec(o)) ? (i = n[1] === "-" ? -1 : 1, e = {
13420
13420
  y: 0,
13421
13421
  d: Mt(n[be]) * i,
13422
- h: Mt(n[$t]) * i,
13422
+ h: Mt(n[zt]) * i,
13423
13423
  m: Mt(n[Le]) * i,
13424
13424
  s: Mt(n[_e]) * i,
13425
13425
  ms: Mt(Mi(n[Rn] * 1e3)) * i
@@ -14637,7 +14637,7 @@ class Ei {
14637
14637
  for (let m = 0; m < t.length; m++) {
14638
14638
  const I = t[m];
14639
14639
  if (I.type === O.CONTROL && I.control) {
14640
- const L = I, P = L.controlId || ut(), X = L.control?.value || [], E = L.control?.type === U.TEXTFIELD, b = {
14640
+ const L = I, P = L.controlId || ut(), X = L.control?.value || [], E = L.control?.type === y.TEXTFIELD, b = {
14641
14641
  ...u,
14642
14642
  controlId: P,
14643
14643
  type: O.CONTROL,
@@ -14864,12 +14864,12 @@ class il {
14864
14864
  [this.lang.hour, this.lang.minute, this.lang.second].forEach((x, F) => {
14865
14865
  const S = document.createElement("li"), M = document.createElement("span");
14866
14866
  M.innerText = x, S.append(M);
14867
- const V = document.createElement("ol"), W = F === 0, y = F === 1, w = W ? 24 : 60;
14867
+ const V = document.createElement("ol"), W = F === 0, U = F === 1, w = W ? 24 : 60;
14868
14868
  for (let v = 0; v < w; v++) {
14869
14869
  const J = document.createElement("li");
14870
14870
  J.innerText = `${String(v).padStart(2, "0")}`, J.setAttribute("data-id", `${v}`), V.append(J);
14871
14871
  }
14872
- W ? P = V : y ? X = V : E = V, S.append(V), L.append(S);
14872
+ W ? P = V : U ? X = V : E = V, S.append(V), L.append(S);
14873
14873
  });
14874
14874
  const C = document.createElement("div");
14875
14875
  C.classList.add(`${tt}-date-menu`);
@@ -15750,7 +15750,7 @@ class fn {
15750
15750
  const e = this.control.getElementList(), n = this.control.getRange();
15751
15751
  this.control.shrinkBoundary();
15752
15752
  const { endIndex: i } = n, r = e[i];
15753
- return !!r?.originControlId && !!r?.controlId && r.originControlId !== r.controlId && r.control?.type === U.BUTTON && !r.control?.buttonText && (t.key === at.Backspace || t.key === at.Delete) ? this.control.removeControl(i) : r?.controlComponent === "value" && r.control?.type === "button" && r.control?.buttonText ? t.key === at.Backspace || t.key === at.Delete ? (r.controlId && this.removeByValue(e, r.controlId), i) : null : (t.key === at.Backspace && r?.controlComponent === "value" && r.control?.type === "button" && !r.control?.buttonText, null);
15753
+ return !!r?.originControlId && !!r?.controlId && r.originControlId !== r.controlId && r.control?.type === y.BUTTON && !r.control?.buttonText && (t.key === at.Backspace || t.key === at.Delete) ? this.control.removeControl(i) : r?.controlComponent === "value" && r.control?.type === "button" && r.control?.buttonText ? t.key === at.Backspace || t.key === at.Delete ? (r.controlId && this.removeByValue(e, r.controlId), i) : null : (t.key === at.Backspace && r?.controlComponent === "value" && r.control?.type === "button" && !r.control?.buttonText, null);
15754
15754
  }
15755
15755
  // 删除按钮延展开的文字
15756
15756
  removeByValue(t, e) {
@@ -16038,7 +16038,7 @@ class Fs {
16038
16038
  for (let m = 0; m < t.length; m++) {
16039
16039
  const I = t[m];
16040
16040
  if (I.type === O.CONTROL && I.control) {
16041
- const L = I, P = L.controlId || ut(), X = L.control?.value || [], E = L.control?.type === U.TEXTFIELD, b = {
16041
+ const L = I, P = L.controlId || ut(), X = L.control?.value || [], E = L.control?.type === y.TEXTFIELD, b = {
16042
16042
  ...h,
16043
16043
  controlId: P,
16044
16044
  type: O.CONTROL,
@@ -16117,7 +16117,7 @@ class Fs {
16117
16117
  return this.control.removeControl(i - 1);
16118
16118
  }
16119
16119
  this.control.shrinkBoundary();
16120
- const { startIndex: s, endIndex: l } = n, a = e[s], c = this.control.getDraw(), d = e[l + 1], u = !!a?.originControlId && !!a?.controlId && a.originControlId !== a.controlId, R = u && (a.controlComponent === f.PREFIX || a.controlComponent === f.PRE_TEXT || a.controlComponent === f.PRETEXTFIX || a.controlComponent === f.PRETEXTFIX_TEXT || a.controlComponent === f.POSTFIX || a.controlComponent === f.POST_TEXT || a.controlComponent === f.POSTTEXTFIX || a.controlComponent === f.POSTTEXTFIX_TEXT || a.controlComponent === f.PLACEHOLDER || a.controlComponent === f.TEXTFIXLABEL), h = u && a.control?.type === U.BUTTON && a.controlComponent === f.VALUE, g = !!d?.originControlId && !!d?.controlId && d.originControlId !== d.controlId && (d.controlComponent === f.PREFIX || d.controlComponent === f.PRE_TEXT || d.controlComponent === f.PRETEXTFIX || d.controlComponent === f.PRETEXTFIX_TEXT || d.controlComponent === f.PLACEHOLDER || d.controlComponent === f.TEXTFIXLABEL), p = !!d?.originControlId && !!d?.controlId && d.originControlId !== d.controlId && d.control?.type === U.BUTTON;
16120
+ const { startIndex: s, endIndex: l } = n, a = e[s], c = this.control.getDraw(), d = e[l + 1], u = !!a?.originControlId && !!a?.controlId && a.originControlId !== a.controlId, R = u && (a.controlComponent === f.PREFIX || a.controlComponent === f.PRE_TEXT || a.controlComponent === f.PRETEXTFIX || a.controlComponent === f.PRETEXTFIX_TEXT || a.controlComponent === f.POSTFIX || a.controlComponent === f.POST_TEXT || a.controlComponent === f.POSTTEXTFIX || a.controlComponent === f.POSTTEXTFIX_TEXT || a.controlComponent === f.PLACEHOLDER || a.controlComponent === f.TEXTFIXLABEL), h = u && a.control?.type === y.BUTTON && a.controlComponent === f.VALUE, g = !!d?.originControlId && !!d?.controlId && d.originControlId !== d.controlId && (d.controlComponent === f.PREFIX || d.controlComponent === f.PRE_TEXT || d.controlComponent === f.PRETEXTFIX || d.controlComponent === f.PRETEXTFIX_TEXT || d.controlComponent === f.PLACEHOLDER || d.controlComponent === f.TEXTFIXLABEL), p = !!d?.originControlId && !!d?.controlId && d.originControlId !== d.controlId && d.control?.type === y.BUTTON;
16121
16121
  if (t.key === at.Backspace) {
16122
16122
  if (s === l && (R || h))
16123
16123
  return this.control.removeControl(s);
@@ -16536,7 +16536,7 @@ class jh {
16536
16536
  }
16537
16537
  if (!e.controlId)
16538
16538
  return !0;
16539
- if (e.control?.type === U.MENSTRUAL_HISTORY && this.options.mode === H.PRINT && (e.controlComponent === f.PREFIX || e.controlComponent === f.POSTFIX) || e.control?.type === U.SELECT && this.options.mode === H.PRINT && (e.controlComponent === f.PREFIX || e.controlComponent === f.POSTFIX) || e.control?.type === U.NUMBER && this.options.mode === H.PRINT && (e.controlComponent === f.PREFIX || e.controlComponent === f.POSTFIX) || e.control?.type === U.TEXT && this.options.mode === H.PRINT && e.strikeout && e.deletePerson)
16539
+ if (e.control?.type === y.MENSTRUAL_HISTORY && this.options.mode === H.PRINT && (e.controlComponent === f.PREFIX || e.controlComponent === f.POSTFIX) || e.control?.type === y.SELECT && this.options.mode === H.PRINT && (e.controlComponent === f.PREFIX || e.controlComponent === f.POSTFIX) || e.control?.type === y.NUMBER && this.options.mode === H.PRINT && (e.controlComponent === f.PREFIX || e.controlComponent === f.POSTFIX) || e.control?.type === y.TEXT && this.options.mode === H.PRINT && e.strikeout && e.deletePerson)
16540
16540
  return !1;
16541
16541
  if (e.control?.minWidth) {
16542
16542
  if (e.controlComponent === f.PREFIX || e.controlComponent === f.POSTFIX)
@@ -16753,7 +16753,7 @@ class jh {
16753
16753
  const n = t[e];
16754
16754
  if (!n.controlId)
16755
16755
  return !1;
16756
- if (n.control?.type === U.CHECKBOX || n.control?.type === U.RADIO)
16756
+ if (n.control?.type === y.CHECKBOX || n.control?.type === y.RADIO)
16757
16757
  return !!n.control?.code;
16758
16758
  if (n.controlComponent === f.VALUE)
16759
16759
  return !0;
@@ -16851,7 +16851,7 @@ class jh {
16851
16851
  if (!this.activeControl)
16852
16852
  return null;
16853
16853
  const t = this.activeControl.getElement(), e = t?.controlId, n = t?.originControlId || null;
16854
- if (!e || t.control?.type !== U.TEXT)
16854
+ if (!e || t.control?.type !== y.TEXT)
16855
16855
  return null;
16856
16856
  const i = this.getElementList(), r = n || null;
16857
16857
  let s = -1, l = -1, a = -1, c = -1;
@@ -16872,7 +16872,7 @@ class jh {
16872
16872
  }
16873
16873
  getActiveNestedTextLimit() {
16874
16874
  const t = this.getActiveTextControlLimit();
16875
- return !t?.parentControlId || !this.getElementList().some((n) => n.controlId === t.parentControlId && !n.originControlId && n.control?.type === U.TEXTFIELD) ? null : {
16875
+ return !t?.parentControlId || !this.getElementList().some((n) => n.controlId === t.parentControlId && !n.originControlId && n.control?.type === y.TEXTFIELD) ? null : {
16876
16876
  controlId: t.controlId,
16877
16877
  parentControlId: t.parentControlId,
16878
16878
  startIndex: t.startIndex,
@@ -16932,7 +16932,7 @@ class jh {
16932
16932
  this.updateActiveControlValue(), this.preElement = n;
16933
16933
  return;
16934
16934
  }
16935
- if (n.originControlId && n.originControlId === R && !(this.activeControl.getElement()?.control?.type === U.TEXTFIELD && n.controlId !== R)) {
16935
+ if (n.originControlId && n.originControlId === R && !(this.activeControl.getElement()?.control?.type === y.TEXTFIELD && n.controlId !== R)) {
16936
16936
  this.updateActiveControlValue(), this.preElement = n;
16937
16937
  return;
16938
16938
  }
@@ -16991,47 +16991,47 @@ class jh {
16991
16991
  }
16992
16992
  if (!r)
16993
16993
  return;
16994
- if (r?.type === U.TEXTFIELD && this.draw.getMode() !== H.EDIT)
16994
+ if (r?.type === y.TEXTFIELD && this.draw.getMode() !== H.EDIT)
16995
16995
  if (n.originControlId) {
16996
16996
  const d = n.controlId;
16997
16997
  for (let u = this.range.getRange().startIndex; u >= 0; u--) {
16998
16998
  const R = t[u];
16999
- if (R.controlId === d && R.originControlId === n.originControlId && R.control && R.control.type !== U.TEXTFIELD) {
16999
+ if (R.controlId === d && R.originControlId === n.originControlId && R.control && R.control.type !== y.TEXTFIELD) {
17000
17000
  r = R.control, s = R;
17001
17001
  break;
17002
17002
  }
17003
17003
  if (R.controlComponent === f.PREFIX || R.controlComponent === f.PRETEXTFIX)
17004
17004
  break;
17005
17005
  }
17006
- if (r?.type === U.TEXTFIELD)
17006
+ if (r?.type === y.TEXTFIELD)
17007
17007
  return;
17008
17008
  } else
17009
17009
  return;
17010
17010
  const l = this.draw.getPosition().getPositionContext(), a = this.range.getRange().startIndex, c = !!(l.isDirectHit && l.index === a && t[l.index]?.controlId === s.controlId);
17011
- if (r?.type === U.TEXTFIELD)
17011
+ if (r?.type === y.TEXTFIELD)
17012
17012
  this.activeControl = new Fs(s, this);
17013
- else if (r.type === U.TEXT)
17013
+ else if (r.type === y.TEXT)
17014
17014
  this.activeControl = new Ei(s, this);
17015
- else if (r.type === U.SELECT) {
17015
+ else if (r.type === y.SELECT) {
17016
17016
  const d = new wn(s, this);
17017
17017
  this.activeControl = d, (c || this.draw.getMode() === H.FORM) && d.awake();
17018
- } else if (r.type === U.CHECKBOX)
17018
+ } else if (r.type === y.CHECKBOX)
17019
17019
  this.activeControl = new No(s, this);
17020
- else if (r.type === U.RADIO)
17020
+ else if (r.type === y.RADIO)
17021
17021
  this.activeControl = new Ti(s, this);
17022
- else if (r.type === U.DATE) {
17022
+ else if (r.type === y.DATE) {
17023
17023
  const d = new vn(s, this);
17024
17024
  this.activeControl = d, d.awake();
17025
- } else if (r.type === U.NUMBER) {
17025
+ } else if (r.type === y.NUMBER) {
17026
17026
  const d = new Kn(s, this);
17027
17027
  this.activeControl = d, c && d.awake();
17028
- } else if (r.type === U.BUTTON) {
17028
+ } else if (r.type === y.BUTTON) {
17029
17029
  const d = new fn(s, this);
17030
17030
  if (this.activeControl = d, c) {
17031
17031
  d.awake();
17032
17032
  return;
17033
17033
  }
17034
- } else if (r.type === U.MENSTRUAL_HISTORY) {
17034
+ } else if (r.type === y.MENSTRUAL_HISTORY) {
17035
17035
  const d = new Cs(s, this);
17036
17036
  this.activeControl = d, d.awake();
17037
17037
  }
@@ -17115,7 +17115,7 @@ class jh {
17115
17115
  const { index: e, trIndex: n, tdIndex: i, tdValueIndex: r } = t;
17116
17116
  let s = this.draw.getOriginalElementList(), l;
17117
17117
  const a = t.isTable ? r : e;
17118
- if (t.isTable ? (s = s[e].trList[n].tdList[i].value, l = s[r]) : l = s[e], l.control?.hide || l.area?.hide) {
17118
+ if (t.isTable ? (s = s[e].trList[n].tdList[i].value, l = s[r]) : l = s[e], l.hide || l.control?.hide || l.area?.hide) {
17119
17119
  const c = xn(s, a);
17120
17120
  return {
17121
17121
  newIndex: c,
@@ -17218,7 +17218,7 @@ class jh {
17218
17218
  return null;
17219
17219
  }
17220
17220
  let r = -1, s = -1;
17221
- const l = !!i.originControlId, a = i.controlId, c = i.originControlId, d = i.control?.type === U.BUTTON && !i.control?.buttonText ? `${a}_text` : "";
17221
+ const l = !!i.originControlId, a = i.controlId, c = i.originControlId, d = i.control?.type === y.BUTTON && !i.control?.buttonText ? `${a}_text` : "";
17222
17222
  let u = t;
17223
17223
  for (; u >= 0; ) {
17224
17224
  const L = n[u];
@@ -17243,12 +17243,12 @@ class jh {
17243
17243
  return t;
17244
17244
  r = ~r ? r : 0;
17245
17245
  const h = n[r + 1], g = h.control, p = g?.type && [
17246
- U.TEXT,
17247
- U.TEXTFIELD,
17248
- U.DATE,
17249
- U.NUMBER,
17250
- U.SELECT,
17251
- U.BUTTON
17246
+ y.TEXT,
17247
+ y.TEXTFIELD,
17248
+ y.DATE,
17249
+ y.NUMBER,
17250
+ y.SELECT,
17251
+ y.BUTTON
17252
17252
  ].includes(g.type);
17253
17253
  let T = n[0]?.type === O.SPLIT_TAG;
17254
17254
  if (!e.removeNext && p && !l && h.controlComponent !== f.PREFIX && h.type !== O.SPLIT_TAG)
@@ -17438,9 +17438,9 @@ class jh {
17438
17438
  const P = d[m];
17439
17439
  if (P.controlId !== h.controlId)
17440
17440
  break;
17441
- (g === U.TEXT || g === U.TEXTFIELD || g === U.DATE || g === U.NUMBER) && P.controlComponent === f.VALUE && (I += P.value, L.push(Ie(P, ai))), m++;
17441
+ (g === y.TEXT || g === y.TEXTFIELD || g === y.DATE || g === y.NUMBER) && P.controlComponent === f.VALUE && (I += P.value, L.push(Ie(P, ai))), m++;
17442
17442
  }
17443
- if (g === U.TEXT || g === U.TEXTFIELD || g === U.DATE || g === U.NUMBER)
17443
+ if (g === y.TEXT || g === y.TEXTFIELD || g === y.DATE || g === y.NUMBER)
17444
17444
  s.push({
17445
17445
  ...h.control,
17446
17446
  zone: u,
@@ -17448,7 +17448,7 @@ class jh {
17448
17448
  innerText: I || null,
17449
17449
  elementList: Ct(L)
17450
17450
  });
17451
- else if (g === U.SELECT || g === U.CHECKBOX || g === U.RADIO) {
17451
+ else if (g === y.SELECT || g === y.CHECKBOX || g === y.RADIO) {
17452
17452
  const P = p?.split(",").map((X) => T?.find((E) => E.code === X)?.value).filter(Boolean).join("");
17453
17453
  s.push({
17454
17454
  ...h.control,
@@ -17517,7 +17517,7 @@ class jh {
17517
17517
  isIgnoreDisabledRule: !0,
17518
17518
  isIgnoreDeletedRule: !0
17519
17519
  };
17520
- if (h === U.TEXTFIELD) {
17520
+ if (h === y.TEXTFIELD) {
17521
17521
  const L = Array.isArray(u) ? u : u ? [{ value: u }] : [];
17522
17522
  L.length && Qt(L, {
17523
17523
  isHandleFirstElement: !1,
@@ -17525,7 +17525,7 @@ class jh {
17525
17525
  });
17526
17526
  const P = new Fs(c, this);
17527
17527
  this.activeControl = P, L.length ? P.setValue(L, T, m) : P.clearValue(T, m);
17528
- } else if (h === U.TEXT) {
17528
+ } else if (h === y.TEXT) {
17529
17529
  const L = Array.isArray(u) ? u : u ? [{ value: u }] : [];
17530
17530
  L.length && Qt(L, {
17531
17531
  isHandleFirstElement: !1,
@@ -17533,32 +17533,32 @@ class jh {
17533
17533
  });
17534
17534
  const P = new Ei(c, this);
17535
17535
  this.activeControl = P, L.length ? P.setValue(L, T, m) : P.clearValue(T, m);
17536
- } else if (h === U.SELECT) {
17536
+ } else if (h === y.SELECT) {
17537
17537
  if (Array.isArray(u))
17538
17538
  continue;
17539
17539
  const L = new wn(c, this);
17540
17540
  this.activeControl = L, u ? L.setSelect(u, T, m) : L.clearSelect(T, m);
17541
- } else if (h === U.CHECKBOX) {
17541
+ } else if (h === y.CHECKBOX) {
17542
17542
  if (Array.isArray(u))
17543
17543
  continue;
17544
17544
  const L = new No(c, this);
17545
17545
  this.activeControl = L;
17546
17546
  const P = u ? u.split(",") : [];
17547
17547
  L.setSelect(P, T, m);
17548
- } else if (h === U.RADIO) {
17548
+ } else if (h === y.RADIO) {
17549
17549
  if (Array.isArray(u))
17550
17550
  continue;
17551
17551
  const L = new Ti(c, this);
17552
17552
  this.activeControl = L;
17553
17553
  const P = u ? [u] : [];
17554
17554
  L.setSelect(P, T, m);
17555
- } else if (h === U.DATE) {
17555
+ } else if (h === y.DATE) {
17556
17556
  const L = new vn(c, this);
17557
17557
  this.activeControl = L, ri(u) ? (u.length && Qt(u, {
17558
17558
  isHandleFirstElement: !1,
17559
17559
  editorOptions: this.options
17560
17560
  }), L.setValue(u, T, m)) : Xl(u) ? L.setSelect(u, T, m) : L.clearSelect(T, m);
17561
- } else if (h === U.NUMBER) {
17561
+ } else if (h === y.NUMBER) {
17562
17562
  const L = Array.isArray(u) ? u : u ? [{ value: u }] : [];
17563
17563
  L.length && Qt(L, {
17564
17564
  isHandleFirstElement: !1,
@@ -17566,7 +17566,7 @@ class jh {
17566
17566
  });
17567
17567
  const P = new Kn(c, this);
17568
17568
  this.activeControl = P, L.length ? P.setValue(L, T, m) : P.clearValue(T, m);
17569
- } else if (h === U.BUTTON) {
17569
+ } else if (h === y.BUTTON) {
17570
17570
  const L = Array.isArray(u) ? u : u ? [{ value: u }] : [];
17571
17571
  L.length && Qt(L, {
17572
17572
  isHandleFirstElement: !1,
@@ -17675,7 +17675,7 @@ class jh {
17675
17675
  }), ie.forEach((h) => {
17676
17676
  const g = d[h];
17677
17677
  g && Reflect.set(a, h, g);
17678
- }), a.control?.type === U.NUMBER && d.numberExclusiveOptions) {
17678
+ }), a.control?.type === y.NUMBER && d.numberExclusiveOptions) {
17679
17679
  const h = {
17680
17680
  ...a.control.numberExclusiveOptions,
17681
17681
  ...d.numberExclusiveOptions
@@ -17843,7 +17843,7 @@ class jh {
17843
17843
  return r;
17844
17844
  }
17845
17845
  isNavigableControlElement(t, e) {
17846
- return !t?.controlId || !t.control ? !1 : this.options.mode !== H.FORM ? !0 : !(te(t) || e?.disabled || t.area?.mode === Cn.READONLY || t.control.disabled || t.control.readonly || t.control.buttonText || t.control.type === U.TEXTFIELD && !t.originControlId);
17846
+ return !t?.controlId || !t.control ? !1 : this.options.mode !== H.FORM ? !0 : !(te(t) || e?.disabled || t.area?.mode === Cn.READONLY || t.control.disabled || t.control.readonly || t.control.buttonText || t.control.type === y.TEXTFIELD && !t.originControlId);
17847
17847
  }
17848
17848
  getOrderedNavigableControlContexts() {
17849
17849
  const t = [], e = (n, i, r) => {
@@ -18010,7 +18010,7 @@ function sl(o, t) {
18010
18010
  }
18011
18011
  function tg(o) {
18012
18012
  const t = o.control;
18013
- return t ? t.type === U.TEXT || t.type === U.TEXTFIELD || t.type === U.DATE || t.type === U.NUMBER ? In(t.value || []) || null : (t.type === U.SELECT || t.type === U.CHECKBOX || t.type === U.RADIO) && t.code?.split(",").map((e) => t.valueSets?.find((n) => n.code === e)?.value).filter(Boolean).join("") || null : null;
18013
+ return t ? t.type === y.TEXT || t.type === y.TEXTFIELD || t.type === y.DATE || t.type === y.NUMBER ? In(t.value || []) || null : (t.type === y.SELECT || t.type === y.CHECKBOX || t.type === y.RADIO) && t.code?.split(",").map((e) => t.valueSets?.find((n) => n.code === e)?.value).filter(Boolean).join("") || null : null;
18014
18014
  }
18015
18015
  function eg(o) {
18016
18016
  const t = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = (r, s, l) => {
@@ -18070,13 +18070,13 @@ class og {
18070
18070
  const { ctx: e, x: n, index: i, row: r } = t;
18071
18071
  let { y: s } = t;
18072
18072
  const { checkbox: { gap: l, lineWidth: a, fillStyle: c, strokeStyle: d, verticalAlign: u }, scale: R } = this.options, { metrics: h, checkbox: g } = r.elementList[i];
18073
- if (u === Bt.TOP || u === Bt.MIDDLE) {
18073
+ if (u === $t.TOP || u === $t.MIDDLE) {
18074
18074
  let L = i + 1, P = null;
18075
18075
  for (; L < r.elementList.length && (P = r.elementList[L], !(P.value !== A && P.value !== Fi)); )
18076
18076
  L++;
18077
18077
  if (P) {
18078
18078
  const { metrics: { boundingBoxAscent: X, boundingBoxDescent: E } } = P, b = X + E;
18079
- b > h.height && (u === Bt.TOP ? s -= X - h.height : u === Bt.MIDDLE && (s -= (b - h.height) / 2));
18079
+ b > h.height && (u === $t.TOP ? s -= X - h.height : u === $t.MIDDLE && (s -= (b - h.height) / 2));
18080
18080
  }
18081
18081
  }
18082
18082
  const p = Math.round(n + l * R), T = Math.round(s - h.height + a), m = h.width - l * 2 * R, I = h.height;
@@ -18102,13 +18102,13 @@ class ig {
18102
18102
  const { ctx: e, x: n, index: i, row: r } = t;
18103
18103
  let { y: s } = t;
18104
18104
  const { radio: { gap: l, lineWidth: a, fillStyle: c, strokeStyle: d, verticalAlign: u }, scale: R } = this.options, { metrics: h, radio: g } = r.elementList[i];
18105
- if (u === Bt.TOP || u === Bt.MIDDLE) {
18105
+ if (u === $t.TOP || u === $t.MIDDLE) {
18106
18106
  let L = i + 1, P = null;
18107
18107
  for (; L < r.elementList.length && (P = r.elementList[L], !(P.value !== A && P.value !== Fi)); )
18108
18108
  L++;
18109
18109
  if (P) {
18110
18110
  const { metrics: { boundingBoxAscent: X, boundingBoxDescent: E } } = P, b = X + E;
18111
- b > h.height && (u === Bt.TOP ? s -= X - h.height : u === Bt.MIDDLE && (s -= (b - h.height) / 2));
18111
+ b > h.height && (u === $t.TOP ? s -= X - h.height : u === $t.MIDDLE && (s -= (b - h.height) / 2));
18112
18112
  }
18113
18113
  }
18114
18114
  const p = Math.round(n + l * R), T = Math.round(s - h.height + a), m = h.width - l * 2 * R, I = h.height;
@@ -18611,7 +18611,7 @@ class lg {
18611
18611
  const P = (E, b, C, Y, D) => {
18612
18612
  const N = p(E, b), x = s?.toothSurfaceMap?.[N] || [], F = Vs.filter((w) => x.includes(w)), S = s?.supernumeraryToothMap?.[N], M = b.toString(), W = typeof b == "string" ? c : a;
18613
18613
  e.font = `${W}px "Microsoft YaHei", sans-serif`, e.textBaseline = "middle";
18614
- let y = C;
18614
+ let U = C;
18615
18615
  if (S) {
18616
18616
  e.font = `${W}px "Microsoft YaHei", sans-serif`;
18617
18617
  const G = e.measureText("(").width, ot = e.measureText(M).width;
@@ -18620,12 +18620,12 @@ class lg {
18620
18620
  let it = G + ot + G;
18621
18621
  it += ct + g;
18622
18622
  let st = 0, et = "";
18623
- return F.length > 0 && (e.font = `${d}px "Microsoft YaHei", sans-serif`, et = F.join(","), st = e.measureText(et).width + g / 2), D === "right" ? (y = C - it, F.length > 0 && (e.font = `${d}px "Microsoft YaHei", sans-serif`, e.fillText(et, y - st - g / 2, Y - W * 0.4)), e.font = `${W}px "Microsoft YaHei", sans-serif`, e.textAlign = "left", e.fillStyle = this.options.defaultColor, e.fillText("(", y, Y), y += G, e.font = `${d}px "Microsoft YaHei", sans-serif`, S === "Si" && (e.fillText("S", y, Y - W * 0.4), y += ct + g), e.font = `${W}px "Microsoft YaHei", sans-serif`, e.fillText(M, y, Y), y += ot, S === "iS" && (e.font = `${d}px "Microsoft YaHei", sans-serif`, e.fillText("S", y, Y - W * 0.4), y += ct), e.font = `${W}px "Microsoft YaHei", sans-serif`, e.fillText(")", y, Y), C - it - st - u) : (e.font = `${W}px "Microsoft YaHei", sans-serif`, e.textAlign = "left", e.fillStyle = this.options.defaultColor, e.fillText("(", y, Y), y += G, e.font = `${d}px "Microsoft YaHei", sans-serif`, S === "Si" && (e.fillText("S", y, Y - W * 0.4), y += ct + g), e.font = `${W}px "Microsoft YaHei", sans-serif`, e.fillText(M, y, Y), y += ot, S === "iS" && (e.font = `${d}px "Microsoft YaHei", sans-serif`, e.fillText("S", y, Y - W * 0.4), y += ct), e.font = `${W}px "Microsoft YaHei", sans-serif`, e.fillText(")", y, Y), y += G, F.length > 0 && (e.font = `${d}px "Microsoft YaHei", sans-serif`, e.fillText(et, y + g / 2, Y - W * 0.4), y += st), y + u);
18623
+ return F.length > 0 && (e.font = `${d}px "Microsoft YaHei", sans-serif`, et = F.join(","), st = e.measureText(et).width + g / 2), D === "right" ? (U = C - it, F.length > 0 && (e.font = `${d}px "Microsoft YaHei", sans-serif`, e.fillText(et, U - st - g / 2, Y - W * 0.4)), e.font = `${W}px "Microsoft YaHei", sans-serif`, e.textAlign = "left", e.fillStyle = this.options.defaultColor, e.fillText("(", U, Y), U += G, e.font = `${d}px "Microsoft YaHei", sans-serif`, S === "Si" && (e.fillText("S", U, Y - W * 0.4), U += ct + g), e.font = `${W}px "Microsoft YaHei", sans-serif`, e.fillText(M, U, Y), U += ot, S === "iS" && (e.font = `${d}px "Microsoft YaHei", sans-serif`, e.fillText("S", U, Y - W * 0.4), U += ct), e.font = `${W}px "Microsoft YaHei", sans-serif`, e.fillText(")", U, Y), C - it - st - u) : (e.font = `${W}px "Microsoft YaHei", sans-serif`, e.textAlign = "left", e.fillStyle = this.options.defaultColor, e.fillText("(", U, Y), U += G, e.font = `${d}px "Microsoft YaHei", sans-serif`, S === "Si" && (e.fillText("S", U, Y - W * 0.4), U += ct + g), e.font = `${W}px "Microsoft YaHei", sans-serif`, e.fillText(M, U, Y), U += ot, S === "iS" && (e.font = `${d}px "Microsoft YaHei", sans-serif`, e.fillText("S", U, Y - W * 0.4), U += ct), e.font = `${W}px "Microsoft YaHei", sans-serif`, e.fillText(")", U, Y), U += G, F.length > 0 && (e.font = `${d}px "Microsoft YaHei", sans-serif`, e.fillText(et, U + g / 2, Y - W * 0.4), U += st), U + u);
18624
18624
  } else {
18625
18625
  e.font = `${W}px "Microsoft YaHei", sans-serif`;
18626
18626
  const w = e.measureText(M).width;
18627
18627
  let v = 0, J = "";
18628
- return F.length > 0 && (e.font = `${d}px "Microsoft YaHei", sans-serif`, J = F.join(","), v = e.measureText(J).width + g / 2, e.font = `${W}px "Microsoft YaHei", sans-serif`), D === "right" ? (y = C - w, F.length > 0 && (e.font = `${d}px "Microsoft YaHei", sans-serif`, e.fillText(J, y - v - g / 2, Y - W * 0.4), e.font = `${W}px "Microsoft YaHei", sans-serif`), e.textAlign = "left", e.fillStyle = this.options.defaultColor, e.fillText(M, y, Y), C - w - v - u) : (e.textAlign = "left", e.fillStyle = this.options.defaultColor, e.fillText(M, y, Y), y += w, F.length > 0 && (e.font = `${d}px "Microsoft YaHei", sans-serif`, e.fillText(J, y + g / 2, Y - W * 0.4), y += v), y + u);
18628
+ return F.length > 0 && (e.font = `${d}px "Microsoft YaHei", sans-serif`, J = F.join(","), v = e.measureText(J).width + g / 2, e.font = `${W}px "Microsoft YaHei", sans-serif`), D === "right" ? (U = C - w, F.length > 0 && (e.font = `${d}px "Microsoft YaHei", sans-serif`, e.fillText(J, U - v - g / 2, Y - W * 0.4), e.font = `${W}px "Microsoft YaHei", sans-serif`), e.textAlign = "left", e.fillStyle = this.options.defaultColor, e.fillText(M, U, Y), C - w - v - u) : (e.textAlign = "left", e.fillStyle = this.options.defaultColor, e.fillText(M, U, Y), U += w, F.length > 0 && (e.font = `${d}px "Microsoft YaHei", sans-serif`, e.fillText(J, U + g / 2, Y - W * 0.4), U += v), U + u);
18629
18629
  }
18630
18630
  }, X = (E, b, C, Y, D, N) => {
18631
18631
  let x = Y;
@@ -20971,8 +20971,8 @@ class vg {
20971
20971
  for (let F = 0; F < d.length; F++) {
20972
20972
  const S = d[F], M = [];
20973
20973
  for (let V = 0; V < S.tdList.length; V++) {
20974
- const W = S.tdList[V], y = W.colIndex, w = W.rowIndex;
20975
- y >= h && y <= g && w >= p && w <= T && M.push(W);
20974
+ const W = S.tdList[V], U = W.colIndex, w = W.rowIndex;
20975
+ U >= h && U <= g && w >= p && w <= T && M.push(W);
20976
20976
  }
20977
20977
  M.length && m.push(M);
20978
20978
  }
@@ -20982,8 +20982,8 @@ class vg {
20982
20982
  for (let F = 0; F < m.length; F++) {
20983
20983
  const S = m[F];
20984
20984
  for (let M = 0; M < S.length; M++) {
20985
- const V = S[M], W = V.x, y = V.y, w = W + V.width, v = y + V.height;
20986
- if (X > W || E > y || b < w || C < v)
20985
+ const V = S[M], W = V.x, U = V.y, w = W + V.width, v = U + V.height;
20986
+ if (X > W || E > U || b < w || C < v)
20987
20987
  return;
20988
20988
  }
20989
20989
  }
@@ -20994,8 +20994,8 @@ class vg {
20994
20994
  const V = S[M];
20995
20995
  if (!(F === 0 && M === 0)) {
20996
20996
  Y.push(V.id);
20997
- const y = V.value.length > 1 ? 0 : 1;
20998
- for (let w = y; w < V.value.length; w++) {
20997
+ const U = V.value.length > 1 ? 0 : 1;
20998
+ for (let w = U; w < V.value.length; w++) {
20999
20999
  const v = V.value[w];
21000
21000
  tn(Sn, N, v), D.value.push(v);
21001
21001
  }
@@ -21162,7 +21162,7 @@ class vg {
21162
21162
  const r = e[i];
21163
21163
  for (let s = 0; s < r.length; s++) {
21164
21164
  const l = r[s];
21165
- !l || l.verticalAlign === t || !l.verticalAlign && t === Bt.TOP || (l.verticalAlign = t);
21165
+ !l || l.verticalAlign === t || !l.verticalAlign && t === $t.TOP || (l.verticalAlign = t);
21166
21166
  }
21167
21167
  }
21168
21168
  const { endIndex: n } = this.range.getRange();
@@ -21359,7 +21359,7 @@ class Kg {
21359
21359
  if (!d[a] || !d[c])
21360
21360
  return null;
21361
21361
  this.range.setRange(s.startIndex, s.endIndex);
21362
- } else if (r === jt.BEFORE)
21362
+ } else if (r === Jt.BEFORE)
21363
21363
  this.range.setRange(0, 0);
21364
21364
  else {
21365
21365
  const c = this.draw.getOriginalMainElementList().length - 1;
@@ -21433,13 +21433,13 @@ class Kg {
21433
21433
  const n = this.draw.getOriginalMainElementList();
21434
21434
  for (let i = 0; i < n.length; i++) {
21435
21435
  const r = n[i];
21436
- if (e?.position === jt.OUTER_BEFORE) {
21436
+ if (e?.position === Jt.OUTER_BEFORE) {
21437
21437
  if (n[i + 1]?.areaId !== t)
21438
21438
  continue;
21439
- } else if (e?.position === jt.AFTER) {
21439
+ } else if (e?.position === Jt.AFTER) {
21440
21440
  if (!(r.areaId === t && n[i + 1]?.areaId !== t))
21441
21441
  continue;
21442
- } else if (e?.position === jt.OUTER_AFTER) {
21442
+ } else if (e?.position === Jt.OUTER_AFTER) {
21443
21443
  if (!(r.areaId !== t && n[i - 1]?.areaId === t))
21444
21444
  continue;
21445
21445
  } else if (r.areaId !== t)
@@ -21976,7 +21976,7 @@ class Ag {
21976
21976
  for (const a of l.trList)
21977
21977
  for (const c of a.tdList)
21978
21978
  this.hideTextFieldWhitespace(c.value, e);
21979
- l.control?.type === U.TEXTFIELD && l.controlComponent === f.VALUE && n(l.value) && (l.hide = e);
21979
+ l.control?.type === y.TEXTFIELD && l.controlComponent === f.VALUE && n(l.value) && (l.hide = e);
21980
21980
  }
21981
21981
  })(t);
21982
21982
  }
@@ -22041,13 +22041,13 @@ class Ag {
22041
22041
  */
22042
22042
  updateTextFieldPlaceholderVisibility(t, e, n) {
22043
22043
  const i = [
22044
- U.TEXT,
22045
- U.TEXTFIELD,
22046
- U.SELECT,
22047
- U.DATE,
22048
- U.CHECKBOX,
22049
- U.RADIO,
22050
- U.NUMBER
22044
+ y.TEXT,
22045
+ y.TEXTFIELD,
22046
+ y.SELECT,
22047
+ y.DATE,
22048
+ y.CHECKBOX,
22049
+ y.RADIO,
22050
+ y.NUMBER
22051
22051
  ];
22052
22052
  ((s) => {
22053
22053
  let l = 0;
@@ -22119,7 +22119,7 @@ class Ag {
22119
22119
  case H.FORM:
22120
22120
  if (this.control.getIsRangeWithinControl()) {
22121
22121
  const t = this.getElementList(), { startIndex: e } = this.range.getRange();
22122
- if (t[e]?.control?.type === U.TEXTFIELD)
22122
+ if (t[e]?.control?.type === y.TEXTFIELD)
22123
22123
  return !0;
22124
22124
  }
22125
22125
  return !this.control.getIsRangeWithinControl();
@@ -22766,7 +22766,7 @@ class Ag {
22766
22766
  if (u?.controlComponent === f.PRE_TEXT || u?.controlComponent === f.POST_TEXT || u?.controlComponent === f.PREFIX || u?.controlComponent === f.POSTFIX)
22767
22767
  for (let g = 0; g < t.length; g++)
22768
22768
  t[g].control || (t[g].color = this.options.defaultColor);
22769
- c && (a[n]?.control?.type === U.TEXTFIELD || a[n]?.control?.type === U.TEXT) && this.control.removePlaceholder(n), c || this.newSpliceElementList(a, d, i - n);
22769
+ c && (a[n]?.control?.type === y.TEXTFIELD || a[n]?.control?.type === y.TEXT) && this.control.removePlaceholder(n), c || this.newSpliceElementList(a, d, i - n);
22770
22770
  const h = a[n]?.controlId || a[n - 1]?.controlId || a[n + 1]?.controlId;
22771
22771
  for (let g = 0; g < t.length; g++) {
22772
22772
  if (t[g]?.control?.type == "button" && !t[g]?.control?.buttonText && (t[g]?.controlComponent === "prefix" || t[g]?.controlComponent === "postfix" ? (t[g].color = "transparent", t[g].highlight = "#1677FF") : (t[g].color = "#fff", t[g].highlight = "#1677FF")), t[g]?.type === O.MENSTRUAL_HISTORY || t[g]?.type === O.FETAL_HEART_POSITION || t[g]?.type === O.TOOTH_POSITION || t[g]?.type === O.MACRO || t[g]?.type === O.CUSTOM_MACRO || t[g]?.type === O.REUSABLE_ITEM || t[g]?.type === O.SUB_TEMPLATE || t[g]?.type === O.SPECIAL_SYMBOLS) {
@@ -23189,9 +23189,9 @@ class Ag {
23189
23189
  height: 0,
23190
23190
  boundingBoxAscent: 0,
23191
23191
  boundingBoxDescent: 0
23192
- }, y = S.offsetX || M.listId && P.get(M.listId) || 0, w = e - y, v = S.elementList.length === 1;
23193
- if (b += v ? y : 0, C += v && S.offsetY || 0, (M.control?.type === U.TEXTFIELD || M.control?.type === U.TEXT) && !this.isDesignMode() && (M.controlComponent === f.PRETEXTFIX || M.controlComponent === f.PRETEXTFIX_TEXT || M.controlComponent === f.POSTTEXTFIX || M.controlComponent === f.POSTTEXTFIX_TEXT || M.controlComponent === f.TEXTFIXLABEL || M.controlComponent === f.PLACEHOLDER || M.controlComponent === f.PREFIX || M.controlComponent === f.POSTFIX)) {
23194
- const _ = M.control?.type === U.TEXTFIELD, K = M.controlId, Z = !!K && !!E?.has(K);
23192
+ }, U = S.offsetX || M.listId && P.get(M.listId) || 0, w = e - U, v = S.elementList.length === 1;
23193
+ if (b += v ? U : 0, C += v && S.offsetY || 0, (M.control?.type === y.TEXTFIELD || M.control?.type === y.TEXT) && !this.isDesignMode() && (M.controlComponent === f.PRETEXTFIX || M.controlComponent === f.PRETEXTFIX_TEXT || M.controlComponent === f.POSTTEXTFIX || M.controlComponent === f.POSTTEXTFIX_TEXT || M.controlComponent === f.TEXTFIXLABEL || M.controlComponent === f.PLACEHOLDER || M.controlComponent === f.PREFIX || M.controlComponent === f.POSTFIX)) {
23194
+ const _ = M.control?.type === y.TEXTFIELD, K = M.controlId, Z = !!K && !!E?.has(K);
23195
23195
  _ ? this.mode === H.EDIT ? M.hide = !1 : M.hide = !0 : this.mode === H.EDIT ? M.hide = !1 : this.mode === H.FORM ? M.controlComponent === f.PLACEHOLDER || M.controlComponent === f.TEXTFIXLABEL ? M.hide = Z : M.hide = !1 : M.hide = !0;
23196
23196
  }
23197
23197
  if (te(M) && !this.isDesignMode()) {
@@ -23267,8 +23267,8 @@ class Ag {
23267
23267
  const Xt = M.trList;
23268
23268
  let Ut = 0, vt = 0, Vt = 0;
23269
23269
  for (let Pt = 0; Pt < Xt.length; Pt++) {
23270
- const Et = Xt[Pt], Jt = Et.height * R;
23271
- if (q + j + Vt + Jt > k) {
23270
+ const Et = Xt[Pt], Bt = Et.height * R;
23271
+ if (q + j + Vt + Bt > k) {
23272
23272
  const kt = Et;
23273
23273
  let we = 0;
23274
23274
  const ce = {
@@ -23279,14 +23279,14 @@ class Ag {
23279
23279
  tdList: M.colgroup.map((Ot, he) => {
23280
23280
  if (we--, we > 0)
23281
23281
  return;
23282
- const zt = kt.tdList.find((Ze) => Ze.colIndex === he), se = zt ?? this.tableParticle.findPreRowSpanTd(Xt, Pt, he);
23283
- zt && (we = zt.colspan);
23282
+ const jt = kt.tdList.find((Ze) => Ze.colIndex === he), se = jt ?? this.tableParticle.findPreRowSpanTd(Xt, Pt, he);
23283
+ jt && (we = jt.colspan);
23284
23284
  const ln = ut();
23285
- return se.originalRowspan = se.rowspan, zt ? {
23286
- ...zt,
23285
+ return se.originalRowspan = se.rowspan, jt ? {
23286
+ ...jt,
23287
23287
  id: ln,
23288
- originalId: zt.originalId ?? zt.id,
23289
- linkTdPrevId: zt.id,
23288
+ originalId: jt.originalId ?? jt.id,
23289
+ linkTdPrevId: jt.id,
23290
23290
  tdIndex: he,
23291
23291
  original: se
23292
23292
  } : {
@@ -23304,7 +23304,7 @@ class Ag {
23304
23304
  }).filter((Ot) => !!Ot)
23305
23305
  }, me = ce.tdList, qt = me.map((Ot) => Ot.original);
23306
23306
  qt.forEach((Ot, he) => {
23307
- const zt = [];
23307
+ const jt = [];
23308
23308
  let se = Yt;
23309
23309
  if (Ot.rowspan > 1) {
23310
23310
  const Ze = Xt.slice(Ot.trIndex, Ot.trIndex + Pt - Ot.trIndex);
@@ -23312,10 +23312,10 @@ class Ag {
23312
23312
  }
23313
23313
  for (; Ot.mainHeight * R > se && Ot.rowList?.length; ) {
23314
23314
  const Ze = Ot.rowList.pop();
23315
- Ot.value.splice(Ot.value.length - Ze.elementList.length), zt.unshift(Ze), Ot.mainHeight -= Ze.height;
23315
+ Ot.value.splice(Ot.value.length - Ze.elementList.length), jt.unshift(Ze), Ot.mainHeight -= Ze.height;
23316
23316
  }
23317
23317
  const ln = me[he];
23318
- ln.rowList = zt, ln.value = zt.map((Ze) => Ze.elementList).flat();
23318
+ ln.rowList = jt, ln.value = jt.map((Ze) => Ze.elementList).flat();
23319
23319
  });
23320
23320
  let Se = !0;
23321
23321
  const Go = kt.tdList.some((Ot) => Ot.rowList?.length), rs = ce.tdList.some((Ot) => Ot.rowList?.length), Ao = kt.minHeight > Yt;
@@ -23330,12 +23330,12 @@ class Ag {
23330
23330
  if (Ot.rowspan > 1) {
23331
23331
  const he = Ot.rowspan - (Pt - Ot.trIndex);
23332
23332
  Ot.rowspan = Pt - Ot.trIndex + (Go ? 1 : 0);
23333
- const zt = ce.tdList.find((se) => se.colIndex === Ot.colIndex);
23334
- Go ? zt.rowspan = he : (zt.original.linkTdNextId = zt.id, kt.tdList.push({
23333
+ const jt = ce.tdList.find((se) => se.colIndex === Ot.colIndex);
23334
+ Go ? jt.rowspan = he : (jt.original.linkTdNextId = jt.id, kt.tdList.push({
23335
23335
  ...Ot,
23336
- ...zt,
23336
+ ...jt,
23337
23337
  rowspan: he
23338
- }), kt.tdList.sort((se, ln) => se.colIndex - ln.colIndex), zt.value = []);
23338
+ }), kt.tdList.sort((se, ln) => se.colIndex - ln.colIndex), jt.value = []);
23339
23339
  }
23340
23340
  }), Se && qt.forEach((Ot, he) => {
23341
23341
  Ot.value.push(...me[he].value);
@@ -23343,19 +23343,19 @@ class Ag {
23343
23343
  break;
23344
23344
  }
23345
23345
  }
23346
- Ut = Pt + 1, vt = Xt.length - Ut, Vt += Jt, Yt -= Jt;
23346
+ Ut = Pt + 1, vt = Xt.length - Ut, Vt += Bt, Yt -= Bt;
23347
23347
  }
23348
23348
  if (vt) {
23349
23349
  const Pt = Xt.splice(Ut, vt), Et = M.pagingId || ut();
23350
23350
  M.pagingId = Et;
23351
- const Jt = ht(M);
23352
- Jt.originalId = M.originalId ?? M.id, Jt.pagingId = Et, Jt.pagingIndex = M.pagingIndex + 1;
23351
+ const Bt = ht(M);
23352
+ Bt.originalId = M.originalId ?? M.id, Bt.pagingId = Et, Bt.pagingIndex = M.pagingIndex + 1;
23353
23353
  const kt = Xt.filter((me) => me.pagingRepeat);
23354
23354
  if (kt.length) {
23355
23355
  const me = ht(kt);
23356
23356
  me.forEach((qt) => qt.id = ut()), Pt.unshift(...me);
23357
23357
  }
23358
- Jt.trList = Pt, Jt.id = ut(), Jt.trList?.forEach((me) => {
23358
+ Bt.trList = Pt, Bt.id = ut(), Bt.trList?.forEach((me) => {
23359
23359
  me.tdList.forEach((qt) => {
23360
23360
  if (delete qt.valueStartIndex, qt.linkTdPrevId) {
23361
23361
  const Se = this.getTdById(qt.linkTdPrevId);
@@ -23364,9 +23364,9 @@ class Ag {
23364
23364
  ...qt.value
23365
23365
  ]);
23366
23366
  }
23367
- qt.value.forEach((Se) => this.updateElementTableInfo(Se, Jt, me, qt));
23367
+ qt.value.forEach((Se) => this.updateElementTableInfo(Se, Bt, me, qt));
23368
23368
  });
23369
- }), this.spliceElementList(n, F + 1, 0, [Jt]), this.tableParticle.computeTrHeight(M);
23369
+ }), this.spliceElementList(n, F + 1, 0, [Bt]), this.tableParticle.computeTrHeight(M);
23370
23370
  const we = this.tableParticle.getTableHeight(M), ce = we * R;
23371
23371
  M.height = we, W.height = ce, W.boundingBoxDescent = ce;
23372
23372
  }
@@ -23379,7 +23379,7 @@ class Ag {
23379
23379
  const Pt = n[Vt];
23380
23380
  if (Pt.pagingId !== M.pagingId)
23381
23381
  break;
23382
- const Et = Pt.trList.findIndex((Jt) => Jt.id === Xt.trId);
23382
+ const Et = Pt.trList.findIndex((Bt) => Bt.id === Xt.trId);
23383
23383
  if (~Et) {
23384
23384
  Ut = Vt, vt = Et;
23385
23385
  break;
@@ -23525,9 +23525,9 @@ class Ag {
23525
23525
  });
23526
23526
  b = et.x, st += et.rowIncreaseWidth, b += W.width;
23527
23527
  let pt = !1;
23528
- if (this.mode === H.FORM && M.control?.type === U.BUTTON && M.controlComponent === f.PREFIX && S.elementList.filter((_) => _.controlId !== M.controlId).length > 0) {
23528
+ if (this.mode === H.FORM && M.control?.type === y.BUTTON && M.controlComponent === f.PREFIX && S.elementList.filter((_) => _.controlId !== M.controlId).length > 0) {
23529
23529
  const _ = M.controlId;
23530
- if (n.some((Z) => Z.controlId === `${_}_text` && Z.control?.type === U.BUTTON)) {
23530
+ if (n.some((Z) => Z.controlId === `${_}_text` && Z.control?.type === y.BUTTON)) {
23531
23531
  let Z = 0;
23532
23532
  for (let Q = F; Q < n.length; Q++) {
23533
23533
  const z = n[Q];
@@ -23608,7 +23608,7 @@ class Ag {
23608
23608
  const e = /* @__PURE__ */ new Set();
23609
23609
  for (let i = 0; i < t.length; i++) {
23610
23610
  const r = t[i];
23611
- r.controlId && (r.control?.type === U.TEXT || r.control?.type === U.TEXTFIELD) && e.add(r.controlId);
23611
+ r.controlId && (r.control?.type === y.TEXT || r.control?.type === y.TEXTFIELD) && e.add(r.controlId);
23612
23612
  }
23613
23613
  const n = /* @__PURE__ */ new Set();
23614
23614
  for (let i = 0; i < t.length; i++) {
@@ -23751,18 +23751,18 @@ class Ag {
23751
23751
  const G = this.getElementRowMargin(N);
23752
23752
  this.control.recordBorderInfo(S, M + G, N.metrics.width, b.height - 2 * G);
23753
23753
  } else V?.control?.border && this.control.drawBorder(t);
23754
- if (N.control?.type === U.TEXT) {
23754
+ if (N.control?.type === y.TEXT) {
23755
23755
  const G = N.controlComponent === f.VALUE, ot = N.controlComponent === f.POSTFIX || N.controlComponent === f.POST_TEXT;
23756
23756
  G && N.control?.underline && ((!V || V.controlId !== N.controlId || V.controlComponent !== f.VALUE && V.controlComponent !== f.PLACEHOLDER) && this.control.startTextFieldUnderline(N.controlId, S, M + b.height), this.control.recordTextFieldUnderlineWidth(N.metrics.width)), ot && this.control.drawTextFieldUnderline(t);
23757
- } else V?.control?.type === U.TEXT && this.control.drawTextFieldUnderline(t);
23758
- if ((N.underline || N.control?.underline) && N.controlComponent !== f.PLACEHOLDER && !(N.control?.type === U.TEXT && N.control?.underline)) {
23757
+ } else V?.control?.type === y.TEXT && this.control.drawTextFieldUnderline(t);
23758
+ if ((N.underline || N.control?.underline) && N.controlComponent !== f.PLACEHOLDER && !(N.control?.type === y.TEXT && N.control?.underline)) {
23759
23759
  V?.type === O.SUBSCRIPT && N.type !== O.SUBSCRIPT && this.underline.render(t);
23760
23760
  const G = this.getElementRowMargin(N), ot = N.left || 0;
23761
23761
  let ct = 0;
23762
23762
  N.type === O.SUBSCRIPT && (ct = this.subscriptParticle.getOffsetY(N));
23763
23763
  const it = N.control?.underline ? this.options.underlineColor : N.color;
23764
23764
  this.underline.recordFillInfo(t, S - ot, M + b.height - G + ct, x.width + ot, 0, it, N.textDecoration?.style);
23765
- } else (V?.underline || V?.control?.underline) && (V?.control?.type === U.TEXT && V?.control?.underline || this.underline.render(t));
23765
+ } else (V?.underline || V?.control?.underline) && (V?.control?.type === y.TEXT && V?.control?.underline || this.underline.render(t));
23766
23766
  if (N.strikeout) {
23767
23767
  if (!N.type || ue.includes(N.type)) {
23768
23768
  V && (V.type === O.SUBSCRIPT && N.type !== O.SUBSCRIPT || V.type === O.SUPERSCRIPT && N.type !== O.SUPERSCRIPT || this.getElementSize(V) !== this.getElementSize(N)) && this.strikeout.render(t);
@@ -23771,9 +23771,9 @@ class Ag {
23771
23771
  N.type === O.SUBSCRIPT ? ot += this.subscriptParticle.getOffsetY(N) : N.type === O.SUPERSCRIPT && (ot += this.superscriptParticle.getOffsetY(N)), this.strikeout.recordFillInfo(t, S, ot, x.width);
23772
23772
  }
23773
23773
  } else V?.strikeout && this.strikeout.render(t);
23774
- const { zone: W, splitTdRange: y } = this.range.getRange();
23774
+ const { zone: W, splitTdRange: U } = this.range.getRange();
23775
23775
  let { startIndex: w, endIndex: v } = this.range.getRange(), J = !1;
23776
- if (p && y && [p.originalId, p.id].includes(y.originalId) && (J = !0, w = y.startIndex - (p.valueStartIndex ?? 0), v = y.endIndex - (p.valueStartIndex ?? 0)), W === h && w !== v && w <= X && X <= v) {
23776
+ if (p && U && [p.originalId, p.id].includes(U.originalId) && (J = !0, w = U.startIndex - (p.valueStartIndex ?? 0), v = U.endIndex - (p.valueStartIndex ?? 0)), W === h && w !== v && w <= X && X <= v) {
23777
23777
  const G = this.position.getPositionContext();
23778
23778
  if (!G.isTable && !N.tdId || // positionContext.tdId === element.tdId
23779
23779
  G.tdId === N.tdId || J)
@@ -23917,8 +23917,8 @@ class Ag {
23917
23917
  let { endIndex: l } = this.range.getRange();
23918
23918
  const { isCrossRowCol: a } = this.range.getRange();
23919
23919
  if (!a && ~l) {
23920
- const S = this.getElementList(), M = xn(S, l);
23921
- M !== l && !te(S[M]) && (this.range.setRange(M, M), l = M);
23920
+ const S = this.getElementList(), M = S[l], W = M?.type === O.SUB_TEMPLATE && M.subTemplateExpanded ? Jt.AFTER : Jt.BEFORE, U = xn(S, l, W);
23921
+ U !== l && !te(S[U]) && (this.range.setRange(U, U), l = U);
23922
23922
  }
23923
23923
  let c;
23924
23924
  const d = this.position.getPositionContext();
@@ -23944,9 +23944,9 @@ class Ag {
23944
23944
  this.footer.compute(), i("footer.compute", it);
23945
23945
  }
23946
23946
  }
23947
- const S = this.getMargins(), M = this.getHeight(), V = this.header.getExtraHeight(), W = this.getMainOuterHeight(), y = S[3], w = S[0] + V, v = Yi(this.elementList), J = Kt();
23947
+ const S = this.getMargins(), M = this.getHeight(), V = this.header.getExtraHeight(), W = this.getMainOuterHeight(), U = S[3], w = S[0] + V, v = Yi(this.elementList), J = Kt();
23948
23948
  this.rowList = this.computeRowList({
23949
- startX: y,
23949
+ startX: U,
23950
23950
  startY: w,
23951
23951
  pageHeight: M,
23952
23952
  mainOuterHeight: W,
@@ -23987,11 +23987,11 @@ class Ag {
23987
23987
  if (P && c?.tableId) {
23988
23988
  const { index: S } = d, V = this.getOriginalElementList()[S];
23989
23989
  if (c.tableId !== V?.id) {
23990
- const y = this.findTableChildrenElement(!0, c.tableId, c);
23991
- y && d.index !== y.originalIndex && (d.index = y.originalIndex, d.tableId = y.table.id, d.trIndex = y.trIndex, d.trId = y.tr.id, d.tdIndex = y.tdIndex, d.tdId = y.td.id, X = y.elementIndex, this.position.setPositionContext(d), this.range.setRange(X, X), this.updateTableTool());
23990
+ const U = this.findTableChildrenElement(!0, c.tableId, c);
23991
+ U && d.index !== U.originalIndex && (d.index = U.originalIndex, d.tableId = U.table.id, d.trIndex = U.trIndex, d.trId = U.tr.id, d.tdIndex = U.tdIndex, d.tdId = U.td.id, X = U.elementIndex, this.position.setPositionContext(d), this.range.setRange(X, X), this.updateTableTool());
23992
23992
  }
23993
23993
  const W = this.getElementList();
23994
- W[l] !== c && (X = W.findIndex((y) => y === c));
23994
+ W[l] !== c && (X = W.findIndex((U) => U === c));
23995
23995
  }
23996
23996
  X = this.setCursor(X);
23997
23997
  } else this.range.getIsSelection() && this.cursor.focus();
@@ -24448,7 +24448,7 @@ function Bg(o, t) {
24448
24448
  });
24449
24449
  });
24450
24450
  }
24451
- const $g = [U.TEXT, U.TEXTFIELD], Qs = [
24451
+ const $g = [y.TEXT, y.TEXTFIELD], Qs = [
24452
24452
  "id",
24453
24453
  "titleId",
24454
24454
  "listId",
@@ -24549,7 +24549,7 @@ class qg {
24549
24549
  return null;
24550
24550
  for (let l = t; l >= 0; l--) {
24551
24551
  const a = e[l];
24552
- if (a.controlId === s && a.control?.type === U.TEXTFIELD && (a.controlComponent === f.PRETEXTFIX || a.controlComponent === f.PRETEXTFIX_TEXT || a.controlComponent === f.PREFIX || a.controlComponent === f.PRE_TEXT))
24552
+ if (a.controlId === s && a.control?.type === y.TEXTFIELD && (a.controlComponent === f.PRETEXTFIX || a.controlComponent === f.PRETEXTFIX_TEXT || a.controlComponent === f.PREFIX || a.controlComponent === f.PRE_TEXT))
24553
24553
  return s;
24554
24554
  }
24555
24555
  return null;
@@ -24605,7 +24605,7 @@ class qg {
24605
24605
  if (T?.control?.type && $g.includes(T.control.type) && this.control.getIsRangeWithinControl()) {
24606
24606
  R = !0, h = T.controlId;
24607
24607
  const L = r[n];
24608
- g && (L?.control?.type === U.TEXTFIELD || L?.control?.type === U.TEXT) && this.control.removePlaceholder(n);
24608
+ g && (L?.control?.type === y.TEXTFIELD || L?.control?.type === y.TEXT) && this.control.removePlaceholder(n);
24609
24609
  } else if (T?.controlId) {
24610
24610
  const L = jg(r, T.controlId, T.originControlId);
24611
24611
  ~L && (c = L, d = L, u = L);
@@ -25728,14 +25728,14 @@ class qg {
25728
25728
  const v = this.draw.getOriginalElementList()[S] || null;
25729
25729
  v && (M = Ct([v])[0]);
25730
25730
  }
25731
- let V = null, W = null, y = e - 1;
25732
- for (; y > 0; ) {
25733
- const w = l[y], v = l[y - 1];
25731
+ let V = null, W = null, U = e - 1;
25732
+ for (; U > 0; ) {
25733
+ const w = l[U], v = l[U - 1];
25734
25734
  if (w.titleId && w.titleId !== v?.titleId) {
25735
- V = w.titleId, W = u[y].pageNo;
25735
+ V = w.titleId, W = u[U].pageNo;
25736
25736
  break;
25737
25737
  }
25738
- y--;
25738
+ U--;
25739
25739
  }
25740
25740
  return ht({
25741
25741
  isCollapsed: i,
@@ -26221,12 +26221,12 @@ class qg {
26221
26221
  if (a?.controlId !== t)
26222
26222
  continue;
26223
26223
  let c = l - 1;
26224
- if (e?.position === jt.OUTER_AFTER) {
26224
+ if (e?.position === Jt.OUTER_AFTER) {
26225
26225
  if (!(a.controlComponent === f.POSTFIX && r[l + 1]?.controlComponent !== f.POST_TEXT))
26226
26226
  continue;
26227
- } else if (e?.position === jt.OUTER_BEFORE)
26227
+ } else if (e?.position === Jt.OUTER_BEFORE)
26228
26228
  c -= 1;
26229
- else if (e?.position === jt.AFTER) {
26229
+ else if (e?.position === Jt.AFTER) {
26230
26230
  if (c -= 1, a.controlComponent !== f.PLACEHOLDER && a.controlComponent !== f.POSTFIX && a.controlComponent !== f.POST_TEXT)
26231
26231
  continue;
26232
26232
  } else if (a.controlComponent !== f.PREFIX && a.controlComponent !== f.PRE_TEXT || r[l]?.controlComponent === f.PREFIX || r[l]?.controlComponent === f.PRE_TEXT)
@@ -26299,7 +26299,7 @@ class qg {
26299
26299
  if (R.controlId !== l.controlId)
26300
26300
  break;
26301
26301
  if (R.controlComponent === f.PRETEXTFIX || R.controlComponent === f.PRETEXTFIX_TEXT) {
26302
- R.control?.type === U.TEXTFIELD && (c = !0);
26302
+ R.control?.type === y.TEXTFIELD && (c = !0);
26303
26303
  break;
26304
26304
  }
26305
26305
  }
@@ -26311,12 +26311,12 @@ class qg {
26311
26311
  if (h.controlId !== u.controlId)
26312
26312
  break;
26313
26313
  if (h.controlComponent === f.PRETEXTFIX || h.controlComponent === f.PRETEXTFIX_TEXT) {
26314
- h.control?.type === U.TEXTFIELD && (c = !0);
26314
+ h.control?.type === y.TEXTFIELD && (c = !0);
26315
26315
  break;
26316
26316
  }
26317
26317
  }
26318
26318
  }
26319
- if (c && t.control?.type === U.TEXTFIELD)
26319
+ if (c && t.control?.type === y.TEXTFIELD)
26320
26320
  return;
26321
26321
  const d = [
26322
26322
  ...Sn,
@@ -26444,17 +26444,17 @@ class qg {
26444
26444
  }), this.draw.insertElementList([n]);
26445
26445
  }
26446
26446
  focus(t) {
26447
- const { position: e = jt.AFTER, isMoveCursorToVisible: n = !0, rowNo: i, range: r } = t || {};
26447
+ const { position: e = Jt.AFTER, isMoveCursorToVisible: n = !0, rowNo: i, range: r } = t || {};
26448
26448
  let s = -1;
26449
26449
  if (r)
26450
- this.range.replaceRange(r), s = e === jt.BEFORE ? r.startIndex : r.endIndex;
26450
+ this.range.replaceRange(r), s = e === Jt.BEFORE ? r.startIndex : r.endIndex;
26451
26451
  else if (li(i)) {
26452
26452
  const a = this.draw.getOriginalRowList();
26453
- if (s = e === jt.BEFORE ? a[i]?.startIndex : a[i + 1]?.startIndex - 1, !li(s))
26453
+ if (s = e === Jt.BEFORE ? a[i]?.startIndex : a[i + 1]?.startIndex - 1, !li(s))
26454
26454
  return;
26455
26455
  this.range.setRange(s, s);
26456
26456
  } else
26457
- s = e === jt.BEFORE ? 0 : this.draw.getOriginalMainElementList().length - 1, this.range.setRange(s, s);
26457
+ s = e === Jt.BEFORE ? 0 : this.draw.getOriginalMainElementList().length - 1, this.range.setRange(s, s);
26458
26458
  const l = {
26459
26459
  isCompute: !1,
26460
26460
  isSetCursor: !1,
@@ -26472,7 +26472,7 @@ class qg {
26472
26472
  this.draw.getArea().setAreaProperties(t);
26473
26473
  }
26474
26474
  locationArea(t, e) {
26475
- if (e?.isAppendLastLineBreak && e?.position === jt.OUTER_AFTER) {
26475
+ if (e?.isAppendLastLineBreak && e?.position === Jt.OUTER_AFTER) {
26476
26476
  const r = this.draw.getOriginalMainElementList();
26477
26477
  r[r.length - 1].areaId === t && this.draw.appendElementList([
26478
26478
  {
@@ -26954,7 +26954,7 @@ const vs = {
26954
26954
  function Ks(o, t) {
26955
26955
  if (t !== H.EDIT)
26956
26956
  return !1;
26957
- const n = o?.control?.type, i = o?.controlComponent, r = n === U.TEXT || n === U.TEXTFIELD || n === U.NUMBER || n === U.SELECT || n === U.DATE || n === U.CHECKBOX || n === U.RADIO || n === U.BUTTON, s = i === "prefix" || i === "preText" || i === "preTextFix" || i === "textFixLabel" || n === U.BUTTON && i === "value";
26957
+ const n = o?.control?.type, i = o?.controlComponent, r = n === y.TEXT || n === y.TEXTFIELD || n === y.NUMBER || n === y.SELECT || n === y.DATE || n === y.CHECKBOX || n === y.RADIO || n === y.BUTTON, s = i === "prefix" || i === "preText" || i === "preTextFix" || i === "textFixLabel" || n === y.BUTTON && i === "value";
26958
26958
  return r && s;
26959
26959
  }
26960
26960
  const lf = [
@@ -27271,7 +27271,7 @@ const lf = [
27271
27271
  icon: "vertical-align-top",
27272
27272
  when: () => !0,
27273
27273
  callback: (o) => {
27274
- o.executeTableTdVerticalAlign(Bt.TOP);
27274
+ o.executeTableTdVerticalAlign($t.TOP);
27275
27275
  }
27276
27276
  },
27277
27277
  {
@@ -27280,7 +27280,7 @@ const lf = [
27280
27280
  icon: "vertical-align-middle",
27281
27281
  when: () => !0,
27282
27282
  callback: (o) => {
27283
- o.executeTableTdVerticalAlign(Bt.MIDDLE);
27283
+ o.executeTableTdVerticalAlign($t.MIDDLE);
27284
27284
  }
27285
27285
  },
27286
27286
  {
@@ -27289,7 +27289,7 @@ const lf = [
27289
27289
  icon: "vertical-align-bottom",
27290
27290
  when: () => !0,
27291
27291
  callback: (o) => {
27292
- o.executeTableTdVerticalAlign(Bt.BOTTOM);
27292
+ o.executeTableTdVerticalAlign($t.BOTTOM);
27293
27293
  }
27294
27294
  }
27295
27295
  ]
@@ -27950,7 +27950,7 @@ export {
27950
27950
  f as ControlComponent,
27951
27951
  gi as ControlIndentation,
27952
27952
  Po as ControlState,
27953
- U as ControlType,
27953
+ y as ControlType,
27954
27954
  xo as EDITOR_CLIPBOARD,
27955
27955
  Je as EDITOR_COMPONENT,
27956
27956
  dp as Editor,
@@ -27967,7 +27967,7 @@ export {
27967
27967
  Xo as LineNumberType,
27968
27968
  ne as ListStyle,
27969
27969
  xe as ListType,
27970
- jt as LocationPosition,
27970
+ Jt as LocationPosition,
27971
27971
  hn as MaxHeightRatio,
27972
27972
  kn as NumberType,
27973
27973
  en as PageMode,
@@ -27979,7 +27979,7 @@ export {
27979
27979
  Wn as TdSlash,
27980
27980
  nn as TextDecorationStyle,
27981
27981
  Dt as TitleLevel,
27982
- Bt as VerticalAlign,
27982
+ $t as VerticalAlign,
27983
27983
  Bn as WatermarkType,
27984
27984
  Oo as WordBreak,
27985
27985
  _n as createDomFromElementList,