ht-emr 0.7.48 → 0.7.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas-editor.js +664 -666
- package/dist/canvas-editor.umd.cjs +42 -42
- package/package.json +1 -1
package/dist/canvas-editor.js
CHANGED
|
@@ -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;display:flex;flex-direction:column;overflow:hidden}.ce-select-control-search{display:block;width:calc(100% - 16px);height:28px;margin:8px;padding:0 8px;border:1px solid #dcdfe6;border-radius:3px;outline:none;box-sizing:border-box;color:#606266;font-size:13px;line-height:28px}.ce-select-control-search:focus{border-color:var(--COLOR-HOVER, #5175f4)}.ce-select-control-popup ul{list-style:none;padding:3px 0;margin:0;min-height:0;overflow-y:auto;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,.ce-select-control-popup ul li.keyboard-active{background-color:#eef2fd}.ce-select-control-popup ul li.active{color:var(--COLOR-HOVER, #5175f4);font-weight:700}.ce-select-control-popup ul li.ce-select-control-empty{color:#909399;cursor:default;text-align:center}.ce-select-control-popup ul li.ce-select-control-empty:hover{background-color:transparent}.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:transparent;display:flex;justify-content:center;align-items:center;z-index:2000}.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:transparent;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:transparent;display:flex;justify-content:center;align-items:center;z-index:2000}.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__container{position:relative;top:auto;left:auto;transform:none;background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;min-width:400px;max-width:90vw;max-height:calc(100vh - 48px);display:flex;flex-direction:column;pointer-events:auto}.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}.ce-button-input-modal,.ce-button-edit-modal,.ce-number-input-modal,.tooth-position-edit-modal,.tooth-position-create-modal{inset:0;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;overflow:auto;background:transparent;pointer-events:none}.ce-button-input-modal__content,.ce-button-edit-modal__content,.ce-number-input-modal__content,.tooth-position-modal__container{pointer-events:auto}.ce-button-input-modal__content,.ce-button-edit-modal__content,.ce-number-input-modal__content{max-height:calc(100vh - 48px);overflow:auto}.tooth-position-modal__mask{display:none}.tooth-position-modal__container{position:relative;top:auto;left:auto;transform:none;display:flex;flex-direction:column;max-height:calc(100vh - 48px)}.ant-modal-mask{display:none!important}.ant-modal-wrap{position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;box-sizing:border-box!important;overflow:auto!important;pointer-events:none!important}.ant-modal{top:auto!important;margin:0!important;padding-bottom:0!important;max-width:calc(100vw - 48px)!important;max-height:calc(100vh - 48px)!important;pointer-events:auto!important}.ant-modal-content{max-height:calc(100vh - 48px)!important;overflow:auto!important}.dialog-mask{display:none}.dialog-container{position:fixed;inset:0;overflow:auto;z-index:999;margin:0;padding:24px;box-sizing:border-box;display:flex;justify-content:center;align-items:center;pointer-events:none}.dialog{position:relative;padding:0 30px 30px;background:#fff;box-shadow:0 2px 12px #38383833;border:1px solid #e2e6ed;border-radius:2px;max-height:calc(100vh - 48px);overflow:auto;pointer-events:auto}.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 xs = "0.7.
|
|
2
|
+
const xs = "0.7.49";
|
|
3
3
|
var Jn;
|
|
4
4
|
(function(o) {
|
|
5
5
|
o.HALF = "half", o.ONE_THIRD = "one-third", o.QUARTER = "quarter";
|
|
@@ -21,7 +21,7 @@ var ns;
|
|
|
21
21
|
o.ROW = "row", o.COLUMN = "column";
|
|
22
22
|
})(ns || (ns = {}));
|
|
23
23
|
const _ = "", Ir = `
|
|
24
|
-
`, bs = " ", mr = " ",
|
|
24
|
+
`, bs = " ", mr = " ", Wa = [
|
|
25
25
|
"·",
|
|
26
26
|
"、",
|
|
27
27
|
":",
|
|
@@ -52,14 +52,14 @@ const _ = "", Ir = `
|
|
|
52
52
|
DUTCH: "A-Za-zÀàÁáÂâÄäÈèÉéÊêËëÌìÍíÎîÏïÓóÒòÔôÖöÙùÛûÜü",
|
|
53
53
|
SWEDISH: "A-Za-zÅåÄäÖö",
|
|
54
54
|
GREEK: "ΑαΒβΓγΔδΕεΖζΗηΘθΙιΚκΛλΜμΝνΞξΟοΠπΡρΣσςΤτΥυΦφΧχΨψΩω"
|
|
55
|
-
},
|
|
55
|
+
}, Ya = "中";
|
|
56
56
|
var kt;
|
|
57
57
|
(function(o) {
|
|
58
58
|
o.LEFT = "left", o.CENTER = "center", o.RIGHT = "right", o.ALIGNMENT = "alignment", o.JUSTIFY = "justify";
|
|
59
59
|
})(kt || (kt = {}));
|
|
60
|
-
const Qi = /[0-9.]/, Ya = /[\uD800-\uDBFF][\uDC00-\uDFFF]/, Ua = /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g, wa = new RegExp(`${Ua.source}|${Ya.source}`, "g"), va = /[、,。?!;:……「」“”‘’*()【】〔〕〖〗〘〙〚〛《》———﹝﹞–—\\/·.,!?;:`~<>()[\]{}'"|]/, ys = new RegExp(`^[${_}
|
|
61
|
-
]`),
|
|
62
|
-
function
|
|
60
|
+
const Qi = /[0-9.]/, Ua = /[\uD800-\uDBFF][\uDC00-\uDFFF]/, wa = /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g, Za = new RegExp(`${wa.source}|${Ua.source}`, "g"), va = /[、,。?!;:……「」“”‘’*()【】〔〕〖〗〘〙〚〛《》———﹝﹞–—\\/·.,!?;:`~<>()[\]{}'"|]/, ys = new RegExp(`^[${_}
|
|
61
|
+
]`), Qa = /\s/;
|
|
62
|
+
function Ha(o, t) {
|
|
63
63
|
let e;
|
|
64
64
|
return function(...n) {
|
|
65
65
|
e && window.clearTimeout(e), e = window.setTimeout(() => {
|
|
@@ -67,7 +67,7 @@ function Qa(o, t) {
|
|
|
67
67
|
}, t);
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Ka(o, t) {
|
|
71
71
|
let e = 0, n;
|
|
72
72
|
return function(...i) {
|
|
73
73
|
const r = Date.now();
|
|
@@ -112,7 +112,7 @@ function Lt() {
|
|
|
112
112
|
}
|
|
113
113
|
return o() + o() + "-" + o() + "-" + o() + "-" + o() + "-" + o() + o() + o();
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function Zt(o) {
|
|
116
116
|
const t = [];
|
|
117
117
|
if (Intl.Segmenter) {
|
|
118
118
|
const n = new Intl.Segmenter().segment(o);
|
|
@@ -120,7 +120,7 @@ function vt(o) {
|
|
|
120
120
|
t.push(i);
|
|
121
121
|
} else {
|
|
122
122
|
const e = /* @__PURE__ */ new Map();
|
|
123
|
-
for (const i of o.matchAll(
|
|
123
|
+
for (const i of o.matchAll(Za))
|
|
124
124
|
e.set(i.index, i[0]);
|
|
125
125
|
let n = 0;
|
|
126
126
|
for (; n < o.length; ) {
|
|
@@ -134,10 +134,10 @@ function rl(o, t) {
|
|
|
134
134
|
const e = document.createElement("a");
|
|
135
135
|
e.href = o, e.download = t, e.click();
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
|
|
137
|
+
function Aa(o, t) {
|
|
138
|
+
_a(3, o, t);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function _a(o, t, e) {
|
|
141
141
|
let n = 0, i = 0, r = null, s = null;
|
|
142
142
|
const l = function(a) {
|
|
143
143
|
const c = (/* @__PURE__ */ new Date()).getTime(), u = r !== null && s !== null && Math.abs(a.clientX - r) <= 5 && Math.abs(a.clientY - s) <= 5;
|
|
@@ -154,7 +154,7 @@ function is(o) {
|
|
|
154
154
|
function ss(o) {
|
|
155
155
|
return Object.prototype.toString.call(o) === "[object Number]";
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Ba(o) {
|
|
158
158
|
return Object.prototype.toString.call(o) === "[object String]";
|
|
159
159
|
}
|
|
160
160
|
function ll(o, t) {
|
|
@@ -182,7 +182,7 @@ function Vs(o) {
|
|
|
182
182
|
o();
|
|
183
183
|
}, 0);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Ga(o) {
|
|
186
186
|
const t = [
|
|
187
187
|
"零",
|
|
188
188
|
"一",
|
|
@@ -246,11 +246,11 @@ function Ye(o, t) {
|
|
|
246
246
|
t.includes(n) || (e[n] = o[n]);
|
|
247
247
|
return e;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function ka(o) {
|
|
250
250
|
const e = new TextEncoder().encode(o), n = Array.from(e, (r) => String.fromCharCode(r));
|
|
251
251
|
return window.btoa(n.join(""));
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function Ja(o) {
|
|
254
254
|
let t = o.parentElement;
|
|
255
255
|
for (; t; ) {
|
|
256
256
|
const n = window.getComputedStyle(t).getPropertyValue("overflow-y");
|
|
@@ -263,13 +263,13 @@ function ka(o) {
|
|
|
263
263
|
function al(o, t) {
|
|
264
264
|
return o.length !== t.length ? !1 : !o.some((e) => !t.includes(e));
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function $a(o, t) {
|
|
267
267
|
if (!ai(o) || !ai(t))
|
|
268
268
|
return !1;
|
|
269
269
|
const e = Object.keys(o), n = Object.keys(t);
|
|
270
270
|
return e.length !== n.length ? !1 : !e.some((i) => t[i] !== o[i]);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function za(o, t) {
|
|
273
273
|
const e = o.x, n = o.x + o.width, i = o.y, r = o.y + o.height, s = t.x, l = t.x + t.width, a = t.y, c = t.y + t.height;
|
|
274
274
|
return !(e > l || n < s || i > c || r < a);
|
|
275
275
|
}
|
|
@@ -310,11 +310,11 @@ function rs(o, t) {
|
|
|
310
310
|
function ge() {
|
|
311
311
|
return typeof performance < "u" && performance.now ? performance.now() : Date.now();
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function ja(o, t) {
|
|
314
314
|
return o.performance.enabled && t >= o.performance.threshold;
|
|
315
315
|
}
|
|
316
316
|
function Ws(o, t, e, n = [], i) {
|
|
317
|
-
if (!
|
|
317
|
+
if (!ja(o, e))
|
|
318
318
|
return;
|
|
319
319
|
const r = {
|
|
320
320
|
duration: Number(e.toFixed(2)),
|
|
@@ -326,7 +326,7 @@ function Ws(o, t, e, n = [], i) {
|
|
|
326
326
|
};
|
|
327
327
|
console.log(`[canvas-editor perf] ${t}`, r);
|
|
328
328
|
}
|
|
329
|
-
const ul = 12,
|
|
329
|
+
const ul = 12, qa = {
|
|
330
330
|
width: 1,
|
|
331
331
|
color: "#000000",
|
|
332
332
|
dragWidth: 2,
|
|
@@ -354,7 +354,7 @@ var oe;
|
|
|
354
354
|
(function(o) {
|
|
355
355
|
o.UP = "top", o.DOWN = "down", o.LEFT = "left", o.RIGHT = "right";
|
|
356
356
|
})(oe || (oe = {}));
|
|
357
|
-
const An = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent),
|
|
357
|
+
const An = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), tc = typeof navigator < "u" && /iPad|iPhone/.test(navigator.userAgent), ec = /Mobile|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), nc = typeof navigator < "u" && /Firefox/.test(navigator.userAgent);
|
|
358
358
|
var P;
|
|
359
359
|
(function(o) {
|
|
360
360
|
o.TEXT = "text", o.TEXTFIELD = "TextField", o.BUTTON = "button", o.IMAGE = "image", o.TABLE = "table", o.HYPERLINK = "hyperlink", o.SUPERSCRIPT = "superscript", o.SUBSCRIPT = "subscript", o.SEPARATOR = "separator", o.PAGE_BREAK = "pageBreak", o.CONTROL = "control", o.AREA = "area", o.CHECKBOX = "checkbox", o.RADIO = "radio", o.LATEX = "latex", o.TAB = "tab", o.DATE = "date", o.BLOCK = "block", o.TITLE = "title", o.LIST = "list", o.SPLIT_TAG = "splitTag", o.LABEL = "label", o.MENSTRUAL_HISTORY = "menstrualHistory", o.FETAL_HEART_POSITION = "fetalHeartPosition", o.TOOTH_POSITION = "toothPosition", o.SPECIAL_SYMBOLS = "specialSymbols", o.MACRO = "macro", o.CUSTOM_MACRO = "customMacro", o.REUSABLE_ITEM = "reusableItem", o.SUB_TEMPLATE = "subTemplate";
|
|
@@ -377,7 +377,7 @@ const Ge = [
|
|
|
377
377
|
"rowFlex",
|
|
378
378
|
"vertical",
|
|
379
379
|
"rowMargin"
|
|
380
|
-
],
|
|
380
|
+
], oc = [
|
|
381
381
|
"type",
|
|
382
382
|
"font",
|
|
383
383
|
"size",
|
|
@@ -405,7 +405,7 @@ const Ge = [
|
|
|
405
405
|
"newElEditPerson",
|
|
406
406
|
"deleteTime",
|
|
407
407
|
"newElEditTime"
|
|
408
|
-
],
|
|
408
|
+
], ic = [
|
|
409
409
|
"type",
|
|
410
410
|
"font",
|
|
411
411
|
"size",
|
|
@@ -483,7 +483,7 @@ const Ge = [
|
|
|
483
483
|
"subTemplateRelation",
|
|
484
484
|
"subTemplateConditions",
|
|
485
485
|
"subTemplateExpanded"
|
|
486
|
-
],
|
|
486
|
+
], sc = [
|
|
487
487
|
"conceptId",
|
|
488
488
|
"extension",
|
|
489
489
|
"externalId",
|
|
@@ -533,15 +533,15 @@ const Ge = [
|
|
|
533
533
|
P.SUPERSCRIPT,
|
|
534
534
|
P.CONTROL,
|
|
535
535
|
P.DATE
|
|
536
|
-
],
|
|
536
|
+
], rc = [
|
|
537
537
|
P.IMAGE,
|
|
538
538
|
P.LATEX
|
|
539
|
-
],
|
|
539
|
+
], lc = [
|
|
540
540
|
P.BLOCK,
|
|
541
541
|
P.PAGE_BREAK,
|
|
542
542
|
P.SEPARATOR,
|
|
543
543
|
P.TABLE
|
|
544
|
-
],
|
|
544
|
+
], ac = ["HR", "TABLE", "UL", "OL"], cc = [
|
|
545
545
|
P.TITLE,
|
|
546
546
|
P.LIST
|
|
547
547
|
];
|
|
@@ -639,7 +639,7 @@ class dl {
|
|
|
639
639
|
</pattern>
|
|
640
640
|
</defs>
|
|
641
641
|
</svg>`, l = new Image();
|
|
642
|
-
return l.src = `data:image/svg+xml;base64,${
|
|
642
|
+
return l.src = `data:image/svg+xml;base64,${ka(s)}`, l;
|
|
643
643
|
}
|
|
644
644
|
_drawImageWithCrop(t, e, n, i, r, s, l) {
|
|
645
645
|
if (n.imgCrop) {
|
|
@@ -699,10 +699,10 @@ class dl {
|
|
|
699
699
|
}
|
|
700
700
|
const Go = 82;
|
|
701
701
|
function io(o) {
|
|
702
|
-
return cs[o] == null &&
|
|
702
|
+
return cs[o] == null && uc(o), cs[o];
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
const t =
|
|
704
|
+
function uc(o) {
|
|
705
|
+
const t = dc[o];
|
|
706
706
|
if (t == null)
|
|
707
707
|
return;
|
|
708
708
|
const e = t.substring(3, 5), n = 1 * e.charCodeAt(0) - Go, i = 1 * e.charCodeAt(1) - Go, r = t.substring(5), s = [[]];
|
|
@@ -726,7 +726,7 @@ function cc(o) {
|
|
|
726
726
|
polylines: s
|
|
727
727
|
};
|
|
728
728
|
}
|
|
729
|
-
const cs = {},
|
|
729
|
+
const cs = {}, dc = {
|
|
730
730
|
1: " 9MWRMNV RRMVV RPSTS",
|
|
731
731
|
2: " 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",
|
|
732
732
|
3: " 11MXVNTMRMPNOPOSPURVTVVU",
|
|
@@ -2549,14 +2549,14 @@ function ni(o, t = "math") {
|
|
|
2549
2549
|
"\\": 804
|
|
2550
2550
|
}[o];
|
|
2551
2551
|
}
|
|
2552
|
-
const
|
|
2552
|
+
const Ze = {
|
|
2553
2553
|
SUB_SUP_SCALE: 0.5,
|
|
2554
2554
|
SQRT_MAG_SCALE: 0.5,
|
|
2555
2555
|
FRAC_SCALE: 0.85,
|
|
2556
2556
|
LINE_SPACING: 0.5,
|
|
2557
2557
|
FRAC_SPACING: 0.4
|
|
2558
2558
|
};
|
|
2559
|
-
function
|
|
2559
|
+
function hc(o) {
|
|
2560
2560
|
o = o.replace(/\n/g, " ");
|
|
2561
2561
|
let t = 0;
|
|
2562
2562
|
const e = [];
|
|
@@ -2565,7 +2565,7 @@ function dc(o) {
|
|
|
2565
2565
|
o[t] == " " ? n.length && (e.push(n), n = "") : o[t] == "\\" ? n.length == 1 && n[0] == "\\" ? (n += o[t], e.push(n), n = "") : (n.length && e.push(n), n = o[t]) : /[A-Za-z0-9\.]/.test(o[t]) ? n += o[t] : (n.length && n != "\\" && (e.push(n), n = ""), n += o[t], e.push(n), n = ""), t++;
|
|
2566
2566
|
return n.length && e.push(n), e;
|
|
2567
2567
|
}
|
|
2568
|
-
function
|
|
2568
|
+
function Rc(o) {
|
|
2569
2569
|
return {
|
|
2570
2570
|
type: Qt[o] ? "symb" : "char",
|
|
2571
2571
|
mode: "math",
|
|
@@ -2607,7 +2607,7 @@ function us(o) {
|
|
|
2607
2607
|
else if (o[s] == "}") {
|
|
2608
2608
|
if (a--, !a && (u.push(us(o.slice(l + 1, s))), c++, c == r))
|
|
2609
2609
|
break;
|
|
2610
|
-
} else if (a == 0 && (u.push(
|
|
2610
|
+
} else if (a == 0 && (u.push(Rc(o[s])), c++, c == r))
|
|
2611
2611
|
break;
|
|
2612
2612
|
s++;
|
|
2613
2613
|
}
|
|
@@ -2664,7 +2664,7 @@ function Rl(o) {
|
|
|
2664
2664
|
o[r].bbox && (t = Math.min(t, o[r].bbox.x), n = Math.min(n, o[r].bbox.y), e = Math.max(e, o[r].bbox.x + o[r].bbox.w), i = Math.max(i, o[r].bbox.y + o[r].bbox.h));
|
|
2665
2665
|
return { x: t, y: n, w: e - t, h: i - n };
|
|
2666
2666
|
}
|
|
2667
|
-
function
|
|
2667
|
+
function gc(o) {
|
|
2668
2668
|
if (!o.length)
|
|
2669
2669
|
return null;
|
|
2670
2670
|
const t = Rl(o);
|
|
@@ -2678,18 +2678,18 @@ function Rc(o) {
|
|
|
2678
2678
|
bbox: t
|
|
2679
2679
|
};
|
|
2680
2680
|
}
|
|
2681
|
-
function
|
|
2681
|
+
function fc(o, t = "center") {
|
|
2682
2682
|
for (let c = 0; c < o.length; c++)
|
|
2683
2683
|
if (o[c].text == "^" || o[c].text == "'") {
|
|
2684
2684
|
let u = 0, h = c;
|
|
2685
2685
|
for (; h > 0 && (o[h].text == "^" || o[h].text == "_" || o[h].text == "'"); )
|
|
2686
2686
|
h--;
|
|
2687
|
-
u = o[h].bbox.y, o[c].text == "'" ? o[c].bbox.y = u : (be(o[c],
|
|
2687
|
+
u = o[h].bbox.y, o[c].text == "'" ? o[c].bbox.y = u : (be(o[c], Ze.SUB_SUP_SCALE, null, 0, 0), Qt[o[h].text] && Qt[o[h].text].flags.big ? o[c].bbox.y = u - o[c].bbox.h : o[h].text == "\\int" ? o[c].bbox.y = u : o[c].bbox.y = u - o[c].bbox.h / 2);
|
|
2688
2688
|
} else if (o[c].text == "_") {
|
|
2689
2689
|
let u = 1, h = c;
|
|
2690
2690
|
for (; h > 0 && (o[h].text == "^" || o[h].text == "_" || o[h].text == "'"); )
|
|
2691
2691
|
h--;
|
|
2692
|
-
u = o[h].bbox.y + o[h].bbox.h, be(o[c],
|
|
2692
|
+
u = o[h].bbox.y + o[h].bbox.h, be(o[c], Ze.SUB_SUP_SCALE, null, 0, 0), Qt[o[h].text] && Qt[o[h].text].flags.big ? o[c].bbox.y = u : o[h].text == "\\int" ? o[c].bbox.y = u - o[c].bbox.h : o[c].bbox.y = u - o[c].bbox.h / 2;
|
|
2693
2693
|
}
|
|
2694
2694
|
function e(c, u, h, d, f) {
|
|
2695
2695
|
let g = c, p = f, I = 1 / 0, m = -1 / 0;
|
|
@@ -2726,7 +2726,7 @@ function gc(o, t = "center") {
|
|
|
2726
2726
|
for (let c = 0; c < n.length; c++) {
|
|
2727
2727
|
const u = [];
|
|
2728
2728
|
for (let h = 0; h < n[c].length; h++) {
|
|
2729
|
-
const d =
|
|
2729
|
+
const d = gc(n[c][h]);
|
|
2730
2730
|
d && (s[h] = s[h] || 0, s[h] = Math.max(d.bbox.w + 1, s[h])), u[h] = d;
|
|
2731
2731
|
}
|
|
2732
2732
|
l.push(u);
|
|
@@ -2741,7 +2741,7 @@ function gc(o, t = "center") {
|
|
|
2741
2741
|
for (let c = 0; c < a.length; c++)
|
|
2742
2742
|
(a[c][0] == 1 / 0 || a[c][1] == 1 / 0) && (a[c][0] = c == 0 ? 0 : a[c - 1][1], a[c][1] = a[c][0] + 2);
|
|
2743
2743
|
for (let c = 1; c < l.length; c++) {
|
|
2744
|
-
const u = a[c - 1][1] - a[c][0] +
|
|
2744
|
+
const u = a[c - 1][1] - a[c][0] + Ze.LINE_SPACING;
|
|
2745
2745
|
for (let h = 0; h < l[c].length; h++)
|
|
2746
2746
|
l[c][h] && (l[c][h].bbox.y += u);
|
|
2747
2747
|
a[c][0] += u, a[c][1] += u;
|
|
@@ -2806,7 +2806,7 @@ function en(o, t = "math") {
|
|
|
2806
2806
|
return;
|
|
2807
2807
|
}
|
|
2808
2808
|
if (o.text == "\\frac") {
|
|
2809
|
-
const n = o.chld[0], i = o.chld[1], r =
|
|
2809
|
+
const n = o.chld[0], i = o.chld[1], r = Ze.FRAC_SCALE;
|
|
2810
2810
|
en(n), en(i), n.bbox.x = 0, n.bbox.y = 0, i.bbox.x = 0, i.bbox.y = 0;
|
|
2811
2811
|
const s = Math.max(n.bbox.w, i.bbox.w) * r;
|
|
2812
2812
|
be(n, r, null, (s - n.bbox.w * r) / 2, 0), be(
|
|
@@ -2815,12 +2815,12 @@ function en(o, t = "math") {
|
|
|
2815
2815
|
// @ts-ignore
|
|
2816
2816
|
null,
|
|
2817
2817
|
(s - i.bbox.w * r) / 2,
|
|
2818
|
-
n.bbox.h +
|
|
2818
|
+
n.bbox.h + Ze.FRAC_SPACING
|
|
2819
2819
|
), o.bbox = {
|
|
2820
2820
|
x: 0,
|
|
2821
|
-
y: -n.bbox.h + 1 -
|
|
2821
|
+
y: -n.bbox.h + 1 - Ze.FRAC_SPACING / 2,
|
|
2822
2822
|
w: s,
|
|
2823
|
-
h: n.bbox.h + i.bbox.h +
|
|
2823
|
+
h: n.bbox.h + i.bbox.h + Ze.FRAC_SPACING
|
|
2824
2824
|
};
|
|
2825
2825
|
} else if (o.text == "\\binom") {
|
|
2826
2826
|
const n = o.chld[0], i = o.chld[1];
|
|
@@ -2832,7 +2832,7 @@ function en(o, t = "math") {
|
|
|
2832
2832
|
en(n);
|
|
2833
2833
|
const i = o.chld[1];
|
|
2834
2834
|
let r = 0;
|
|
2835
|
-
i && (en(i), r = Math.max(i.bbox.w *
|
|
2835
|
+
i && (en(i), r = Math.max(i.bbox.w * Ze.SQRT_MAG_SCALE - 0.5, 0), be(i, Ze.SQRT_MAG_SCALE, null, 0, 0.5)), be(n, 1, null, 1 + r, 0.5), o.bbox = {
|
|
2836
2836
|
x: 0,
|
|
2837
2837
|
y: 2 - n.bbox.h - 0.5,
|
|
2838
2838
|
w: n.bbox.w + 1 + r,
|
|
@@ -2877,10 +2877,10 @@ function en(o, t = "math") {
|
|
|
2877
2877
|
o.chld[I].text == "'" && m++, I++;
|
|
2878
2878
|
d.bbox.x = o.chld[g].bbox.x + o.chld[g].bbox.w + d.bbox.w * m, n = Math.max(n, d.bbox.x + d.bbox.w);
|
|
2879
2879
|
} else if (p) {
|
|
2880
|
-
const I = o.chld[g].bbox.x + (o.chld[g].bbox.w - d.bbox.w *
|
|
2881
|
-
d.bbox.x = I, n = Math.max(n, o.chld[g].bbox.x + o.chld[g].bbox.w + (d.bbox.w *
|
|
2880
|
+
const I = o.chld[g].bbox.x + (o.chld[g].bbox.w - d.bbox.w * Ze.SUB_SUP_SCALE) / 2;
|
|
2881
|
+
d.bbox.x = I, n = Math.max(n, o.chld[g].bbox.x + o.chld[g].bbox.w + (d.bbox.w * Ze.SUB_SUP_SCALE - o.chld[g].bbox.w) / 2);
|
|
2882
2882
|
} else
|
|
2883
|
-
d.bbox.x = o.chld[g].bbox.x + o.chld[g].bbox.w, n = Math.max(n, d.bbox.x + d.bbox.w *
|
|
2883
|
+
d.bbox.x = o.chld[g].bbox.x + o.chld[g].bbox.w, n = Math.max(n, d.bbox.x + d.bbox.w * Ze.SUB_SUP_SCALE);
|
|
2884
2884
|
} else
|
|
2885
2885
|
n += d.bbox.w;
|
|
2886
2886
|
t == "text" && (n += 1), r = Math.max(d.bbox.y + d.bbox.h - i, r);
|
|
@@ -2901,7 +2901,7 @@ function en(o, t = "math") {
|
|
|
2901
2901
|
matrix: "center",
|
|
2902
2902
|
aligned: "equation"
|
|
2903
2903
|
}[o.text] ?? "left", a = !!s[o.text], c = !!s[o.text] && s[o.text].length > 1;
|
|
2904
|
-
|
|
2904
|
+
fc(o.chld, l);
|
|
2905
2905
|
const u = Rl(o.chld);
|
|
2906
2906
|
o.text == "\\text" && (u.x -= 1, u.w += 2);
|
|
2907
2907
|
for (let h = 0; h < o.chld.length; h++)
|
|
@@ -2926,7 +2926,7 @@ function en(o, t = "math") {
|
|
|
2926
2926
|
}), (a || c || o.text == "matrix") && (o.type = "node", o.text = "", o.bbox.y -= (o.bbox.h - 2) / 2);
|
|
2927
2927
|
}
|
|
2928
2928
|
}
|
|
2929
|
-
function
|
|
2929
|
+
function pc(o) {
|
|
2930
2930
|
function t(n, i, r) {
|
|
2931
2931
|
const s = [];
|
|
2932
2932
|
if (n.bbox) {
|
|
@@ -3047,7 +3047,7 @@ function fc(o) {
|
|
|
3047
3047
|
const e = t(o, -o.bbox.x, -o.bbox.y);
|
|
3048
3048
|
o.type = "node", o.text = "", o.chld = e;
|
|
3049
3049
|
}
|
|
3050
|
-
function
|
|
3050
|
+
function Tc(o) {
|
|
3051
3051
|
const t = [];
|
|
3052
3052
|
for (let e = 0; e < o.chld.length; e++) {
|
|
3053
3053
|
const n = o.chld[e];
|
|
@@ -3106,13 +3106,13 @@ function pc(o) {
|
|
|
3106
3106
|
function tn(o) {
|
|
3107
3107
|
return Math.round(o * 100) / 100;
|
|
3108
3108
|
}
|
|
3109
|
-
class
|
|
3109
|
+
class Ic {
|
|
3110
3110
|
_latex;
|
|
3111
3111
|
_tree;
|
|
3112
3112
|
_tokens;
|
|
3113
3113
|
_polylines;
|
|
3114
3114
|
constructor(t) {
|
|
3115
|
-
this._latex = t, this._tokens =
|
|
3115
|
+
this._latex = t, this._tokens = hc(t), this._tree = us(this._tokens), hl(this._tree.chld), en(this._tree), pc(this._tree), this._polylines = Tc(this._tree);
|
|
3116
3116
|
}
|
|
3117
3117
|
resolveScale(t) {
|
|
3118
3118
|
if (t == null)
|
|
@@ -3263,7 +3263,7 @@ trailer
|
|
|
3263
3263
|
}
|
|
3264
3264
|
class gl extends dl {
|
|
3265
3265
|
static convertLaTextToSVG(t) {
|
|
3266
|
-
return new
|
|
3266
|
+
return new Ic(t).svg({
|
|
3267
3267
|
SCALE_X: 10,
|
|
3268
3268
|
SCALE_Y: 10,
|
|
3269
3269
|
MARGIN_X: 0,
|
|
@@ -3304,17 +3304,17 @@ var Fe;
|
|
|
3304
3304
|
(function(o) {
|
|
3305
3305
|
o.DISC = "disc", o.CIRCLE = "circle", o.SQUARE = "square", o.DECIMAL = "decimal", o.CHECKBOX = "checkbox";
|
|
3306
3306
|
})(Fe || (Fe = {}));
|
|
3307
|
-
const
|
|
3307
|
+
const mc = {
|
|
3308
3308
|
inheritStyle: !1
|
|
3309
3309
|
}, ds = {
|
|
3310
3310
|
[Bn.DISC]: "•",
|
|
3311
3311
|
[Bn.CIRCLE]: "◦",
|
|
3312
3312
|
[Bn.SQUARE]: "▫︎",
|
|
3313
3313
|
[Bn.CHECKBOX]: "☑️"
|
|
3314
|
-
},
|
|
3314
|
+
}, Lc = {
|
|
3315
3315
|
[cn.OL]: "ol",
|
|
3316
3316
|
[cn.UL]: "ul"
|
|
3317
|
-
},
|
|
3317
|
+
}, Pc = {
|
|
3318
3318
|
[Fe.DISC]: "disc",
|
|
3319
3319
|
[Fe.CIRCLE]: "circle",
|
|
3320
3320
|
[Fe.SQUARE]: "square",
|
|
@@ -3325,7 +3325,7 @@ var ae;
|
|
|
3325
3325
|
(function(o) {
|
|
3326
3326
|
o.FIRST = "first", o.SECOND = "second", o.THIRD = "third", o.FOURTH = "fourth", o.FIFTH = "fifth", o.SIXTH = "sixth";
|
|
3327
3327
|
})(ae || (ae = {}));
|
|
3328
|
-
const
|
|
3328
|
+
const Ec = {
|
|
3329
3329
|
defaultFirstSize: 26,
|
|
3330
3330
|
defaultSecondSize: 24,
|
|
3331
3331
|
defaultThirdSize: 22,
|
|
@@ -3346,7 +3346,7 @@ const Pc = {
|
|
|
3346
3346
|
[ae.FOURTH]: 4,
|
|
3347
3347
|
[ae.FIFTH]: 5,
|
|
3348
3348
|
[ae.SIXTH]: 6
|
|
3349
|
-
},
|
|
3349
|
+
}, Oc = {
|
|
3350
3350
|
H1: ae.FIRST,
|
|
3351
3351
|
H2: ae.SECOND,
|
|
3352
3352
|
H3: ae.THIRD,
|
|
@@ -3430,7 +3430,7 @@ var xn;
|
|
|
3430
3430
|
(function(o) {
|
|
3431
3431
|
o.REPEAT = "repeat", o.NO_REPEAT = "no-repeat", o.REPEAT_X = "repeat-x", o.REPEAT_Y = "repeat-y";
|
|
3432
3432
|
})(xn || (xn = {}));
|
|
3433
|
-
const
|
|
3433
|
+
const Mc = {
|
|
3434
3434
|
color: "#FFFFFF",
|
|
3435
3435
|
image: "",
|
|
3436
3436
|
size: Ri.COVER,
|
|
@@ -3441,7 +3441,7 @@ var ue;
|
|
|
3441
3441
|
(function(o) {
|
|
3442
3442
|
o.TOP = "top", o.MIDDLE = "middle", o.BOTTOM = "bottom";
|
|
3443
3443
|
})(ue || (ue = {}));
|
|
3444
|
-
const
|
|
3444
|
+
const Sc = {
|
|
3445
3445
|
width: 14,
|
|
3446
3446
|
height: 14,
|
|
3447
3447
|
gap: 5,
|
|
@@ -3449,7 +3449,7 @@ const Mc = {
|
|
|
3449
3449
|
fillStyle: "#5175f4",
|
|
3450
3450
|
strokeStyle: "#ffffff",
|
|
3451
3451
|
verticalAlign: ue.BOTTOM
|
|
3452
|
-
},
|
|
3452
|
+
}, Dc = {
|
|
3453
3453
|
placeholderColor: "#9c9b9b",
|
|
3454
3454
|
bracketColor: "#2284FE",
|
|
3455
3455
|
textFixColor: "blue",
|
|
@@ -3467,47 +3467,47 @@ const Mc = {
|
|
|
3467
3467
|
existValueBackgroundColor: "",
|
|
3468
3468
|
noValueBackgroundColor: "",
|
|
3469
3469
|
inlineControlBackgroundColor: "#BFF7D7"
|
|
3470
|
-
},
|
|
3470
|
+
}, Cc = {
|
|
3471
3471
|
bottom: 30,
|
|
3472
3472
|
inactiveAlpha: 1,
|
|
3473
3473
|
maxHeightRadio: Jn.HALF,
|
|
3474
3474
|
disabled: !1,
|
|
3475
3475
|
editable: !0
|
|
3476
|
-
},
|
|
3476
|
+
}, Fc = {
|
|
3477
3477
|
opacity: 0.1,
|
|
3478
3478
|
backgroundColor: "#E99D00",
|
|
3479
3479
|
activeOpacity: 0.5,
|
|
3480
3480
|
activeBackgroundColor: "#E99D00",
|
|
3481
3481
|
disabled: !1,
|
|
3482
3482
|
deletable: !0
|
|
3483
|
-
},
|
|
3483
|
+
}, Xc = {
|
|
3484
3484
|
top: 30,
|
|
3485
3485
|
inactiveAlpha: 1,
|
|
3486
3486
|
maxHeightRadio: Jn.HALF,
|
|
3487
3487
|
disabled: !1,
|
|
3488
3488
|
editable: !0
|
|
3489
|
-
},
|
|
3489
|
+
}, Nc = {
|
|
3490
3490
|
defaultColor: "#1976d2",
|
|
3491
3491
|
defaultBackgroundColor: "#e3f2fd",
|
|
3492
3492
|
defaultBorderRadius: 4,
|
|
3493
3493
|
defaultPadding: [4, 4, 4, 4]
|
|
3494
|
-
},
|
|
3494
|
+
}, xc = {
|
|
3495
3495
|
color: "#666666",
|
|
3496
3496
|
font: "Microsoft YaHei",
|
|
3497
3497
|
size: 12,
|
|
3498
3498
|
top: 5
|
|
3499
|
-
},
|
|
3499
|
+
}, bc = {
|
|
3500
3500
|
disabled: !0,
|
|
3501
3501
|
color: "#CCCCCC",
|
|
3502
3502
|
lineWidth: 1.5
|
|
3503
|
-
},
|
|
3503
|
+
}, yc = {
|
|
3504
3504
|
font: "Microsoft YaHei",
|
|
3505
3505
|
fontSize: 12,
|
|
3506
3506
|
lineDash: [3, 1]
|
|
3507
3507
|
}, yo = {
|
|
3508
3508
|
PAGE_NO: "{pageNo}",
|
|
3509
3509
|
PAGE_COUNT: "{pageCount}"
|
|
3510
|
-
},
|
|
3510
|
+
}, Vc = {
|
|
3511
3511
|
bottom: 60,
|
|
3512
3512
|
size: 12,
|
|
3513
3513
|
font: "Microsoft YaHei",
|
|
@@ -3525,7 +3525,7 @@ const Mc = {
|
|
|
3525
3525
|
opacity: 1,
|
|
3526
3526
|
size: 16,
|
|
3527
3527
|
font: "Microsoft YaHei"
|
|
3528
|
-
},
|
|
3528
|
+
}, Wc = {
|
|
3529
3529
|
width: 14,
|
|
3530
3530
|
height: 14,
|
|
3531
3531
|
gap: 5,
|
|
@@ -3533,10 +3533,10 @@ const Mc = {
|
|
|
3533
3533
|
fillStyle: "#5175f4",
|
|
3534
3534
|
strokeStyle: "#000000",
|
|
3535
3535
|
verticalAlign: ue.BOTTOM
|
|
3536
|
-
},
|
|
3536
|
+
}, Yc = {
|
|
3537
3537
|
lineWidth: 1,
|
|
3538
3538
|
strokeStyle: "#000000"
|
|
3539
|
-
},
|
|
3539
|
+
}, Uc = {
|
|
3540
3540
|
tdPadding: [5, 5, 5, 5],
|
|
3541
3541
|
defaultTrMinHeight: 24,
|
|
3542
3542
|
defaultColMinWidth: 40,
|
|
@@ -3559,14 +3559,14 @@ const gs = {
|
|
|
3559
3559
|
repeat: !1,
|
|
3560
3560
|
gap: [10, 10],
|
|
3561
3561
|
numberType: bo.ARABIC
|
|
3562
|
-
},
|
|
3562
|
+
}, wc = {
|
|
3563
3563
|
tipDisabled: !0
|
|
3564
3564
|
};
|
|
3565
3565
|
var gi;
|
|
3566
3566
|
(function(o) {
|
|
3567
3567
|
o.PAGE = "page", o.CONTINUITY = "continuity";
|
|
3568
3568
|
})(gi || (gi = {}));
|
|
3569
|
-
const
|
|
3569
|
+
const Zc = {
|
|
3570
3570
|
size: 12,
|
|
3571
3571
|
font: "Microsoft YaHei",
|
|
3572
3572
|
color: "#000000",
|
|
@@ -3578,92 +3578,92 @@ const wc = {
|
|
|
3578
3578
|
lineWidth: 1,
|
|
3579
3579
|
padding: [0, 5, 0, 5],
|
|
3580
3580
|
disabled: !0
|
|
3581
|
-
},
|
|
3581
|
+
}, Qc = {
|
|
3582
3582
|
top: 0,
|
|
3583
3583
|
left: 5
|
|
3584
|
-
},
|
|
3584
|
+
}, Hc = {
|
|
3585
3585
|
defaultLineColor: "#000000",
|
|
3586
3586
|
defaultLineWidth: 2
|
|
3587
|
-
},
|
|
3587
|
+
}, Kc = {
|
|
3588
3588
|
disabled: !0,
|
|
3589
3589
|
color: "#CCCCCC",
|
|
3590
3590
|
radius: 1
|
|
3591
3591
|
};
|
|
3592
3592
|
function Di(o = {}) {
|
|
3593
3593
|
const t = {
|
|
3594
|
-
...
|
|
3594
|
+
...Uc,
|
|
3595
3595
|
...o.table
|
|
3596
3596
|
}, e = {
|
|
3597
|
-
...
|
|
3597
|
+
...Xc,
|
|
3598
3598
|
...o.header
|
|
3599
3599
|
}, n = {
|
|
3600
|
-
...
|
|
3600
|
+
...Cc,
|
|
3601
3601
|
...o.footer
|
|
3602
3602
|
}, i = {
|
|
3603
|
-
...
|
|
3603
|
+
...Vc,
|
|
3604
3604
|
...o.pageNumber
|
|
3605
3605
|
}, r = {
|
|
3606
3606
|
...gs,
|
|
3607
3607
|
...o.watermark
|
|
3608
3608
|
}, s = {
|
|
3609
|
-
...
|
|
3609
|
+
...Dc,
|
|
3610
3610
|
...o.control
|
|
3611
3611
|
}, l = {
|
|
3612
|
-
...
|
|
3612
|
+
...Sc,
|
|
3613
3613
|
...o.checkbox
|
|
3614
3614
|
}, a = {
|
|
3615
|
-
...
|
|
3615
|
+
...Wc,
|
|
3616
3616
|
...o.radio
|
|
3617
3617
|
}, c = {
|
|
3618
|
-
...
|
|
3618
|
+
...qa,
|
|
3619
3619
|
...o.cursor
|
|
3620
3620
|
}, u = {
|
|
3621
|
-
...
|
|
3621
|
+
...Ec,
|
|
3622
3622
|
...o.title
|
|
3623
3623
|
}, h = {
|
|
3624
3624
|
...pl,
|
|
3625
3625
|
...o.placeholder
|
|
3626
3626
|
}, d = {
|
|
3627
|
-
...
|
|
3627
|
+
...Fc,
|
|
3628
3628
|
...o.group
|
|
3629
3629
|
}, f = {
|
|
3630
|
-
...
|
|
3630
|
+
...yc,
|
|
3631
3631
|
...o.pageBreak
|
|
3632
3632
|
}, g = {
|
|
3633
|
-
...
|
|
3633
|
+
...wc,
|
|
3634
3634
|
...o.zone
|
|
3635
3635
|
}, p = {
|
|
3636
|
-
...
|
|
3636
|
+
...Mc,
|
|
3637
3637
|
...o.background
|
|
3638
3638
|
}, I = {
|
|
3639
|
-
...
|
|
3639
|
+
...bc,
|
|
3640
3640
|
...o.lineBreak
|
|
3641
3641
|
}, m = {
|
|
3642
|
-
...
|
|
3642
|
+
...Kc,
|
|
3643
3643
|
...o.whiteSpace
|
|
3644
3644
|
}, L = {
|
|
3645
|
-
...
|
|
3645
|
+
...Yc,
|
|
3646
3646
|
...o.separator
|
|
3647
3647
|
}, T = {
|
|
3648
|
-
...
|
|
3648
|
+
...Zc,
|
|
3649
3649
|
...o.lineNumber
|
|
3650
3650
|
}, O = {
|
|
3651
3651
|
...vc,
|
|
3652
3652
|
...o.pageBorder
|
|
3653
3653
|
}, S = {
|
|
3654
|
-
...
|
|
3654
|
+
...Qc,
|
|
3655
3655
|
...o.badge
|
|
3656
3656
|
}, M = {
|
|
3657
|
-
...
|
|
3657
|
+
...Hc,
|
|
3658
3658
|
...o.graffiti
|
|
3659
3659
|
}, F = {
|
|
3660
|
-
...
|
|
3660
|
+
...Nc,
|
|
3661
3661
|
...o.label
|
|
3662
3662
|
}, N = {
|
|
3663
|
-
...
|
|
3663
|
+
...xc,
|
|
3664
3664
|
...o.imgCaption
|
|
3665
3665
|
}, w = {
|
|
3666
|
-
...
|
|
3666
|
+
...mc,
|
|
3667
3667
|
...o.list
|
|
3668
3668
|
}, V = {
|
|
3669
3669
|
print: {
|
|
@@ -3762,16 +3762,16 @@ function Di(o = {}) {
|
|
|
3762
3762
|
}
|
|
3763
3763
|
};
|
|
3764
3764
|
}
|
|
3765
|
-
const Tl = /* @__PURE__ */ new Map(),
|
|
3765
|
+
const Tl = /* @__PURE__ */ new Map(), Ac = [
|
|
3766
3766
|
b.SELECT,
|
|
3767
3767
|
b.DATE,
|
|
3768
3768
|
b.CHECKBOX,
|
|
3769
3769
|
b.RADIO
|
|
3770
3770
|
];
|
|
3771
3771
|
function Ae(o, t) {
|
|
3772
|
-
return o &&
|
|
3772
|
+
return o && Ac.includes(o) ? [""] : Zt(t);
|
|
3773
3773
|
}
|
|
3774
|
-
function
|
|
3774
|
+
function Il(o) {
|
|
3775
3775
|
return Tl.get(o);
|
|
3776
3776
|
}
|
|
3777
3777
|
function ko(o, t) {
|
|
@@ -3780,13 +3780,13 @@ function ko(o, t) {
|
|
|
3780
3780
|
function fs(o) {
|
|
3781
3781
|
const t = [];
|
|
3782
3782
|
for (let e = 0; e < o.length; e++) {
|
|
3783
|
-
const n = o[e], i =
|
|
3783
|
+
const n = o[e], i = Zt(n.value);
|
|
3784
3784
|
for (let r = 0; r < i.length; r++)
|
|
3785
3785
|
t.push({ ...n, value: i[r] });
|
|
3786
3786
|
}
|
|
3787
3787
|
return t;
|
|
3788
3788
|
}
|
|
3789
|
-
const
|
|
3789
|
+
const ml = /* @__PURE__ */ new Set([
|
|
3790
3790
|
R.PREFIX,
|
|
3791
3791
|
R.POSTFIX,
|
|
3792
3792
|
R.PRE_TEXT,
|
|
@@ -3820,11 +3820,11 @@ function Ce(o) {
|
|
|
3820
3820
|
return o?.buttonValueLayout === !0;
|
|
3821
3821
|
}
|
|
3822
3822
|
function Gn(o, t) {
|
|
3823
|
-
const e =
|
|
3823
|
+
const e = Zt(o), n = fo(t?.valueLayout), i = n.indentChars > 0;
|
|
3824
3824
|
if (!n.newline && !i || !e.length)
|
|
3825
3825
|
return e.map((a) => ({ value: a }));
|
|
3826
3826
|
const r = [], s = (a, c = !1) => {
|
|
3827
|
-
|
|
3827
|
+
Zt(a).forEach((u, h) => {
|
|
3828
3828
|
const d = { value: u, buttonValueLayout: !0 };
|
|
3829
3829
|
c && h === 0 && Object.assign(d, {
|
|
3830
3830
|
buttonValueLayoutPrefixOffset: !0
|
|
@@ -3856,7 +3856,7 @@ function Jo(o) {
|
|
|
3856
3856
|
highlight: void 0
|
|
3857
3857
|
};
|
|
3858
3858
|
}
|
|
3859
|
-
function
|
|
3859
|
+
function Ll(o) {
|
|
3860
3860
|
return o === K.READONLY;
|
|
3861
3861
|
}
|
|
3862
3862
|
function Gc(o) {
|
|
@@ -3896,7 +3896,7 @@ function Ts(o, t) {
|
|
|
3896
3896
|
"newElEditTime",
|
|
3897
3897
|
"color"
|
|
3898
3898
|
]) : {};
|
|
3899
|
-
return
|
|
3899
|
+
return Zt(e).map((i) => ({
|
|
3900
3900
|
...n,
|
|
3901
3901
|
type: P.TEXT,
|
|
3902
3902
|
value: i === `
|
|
@@ -3910,7 +3910,7 @@ function fi(o) {
|
|
|
3910
3910
|
const e = o.multiSelectDelimiter || ",";
|
|
3911
3911
|
return t.map((n) => o.valueSets?.find((i) => i.code === n)?.value).filter((n) => !!n).join(e);
|
|
3912
3912
|
}
|
|
3913
|
-
function
|
|
3913
|
+
function Pl(o) {
|
|
3914
3914
|
return o.type === P.REUSABLE_ITEM ? an(o.reusableItemConfig?.value || "", [
|
|
3915
3915
|
o.label || ""
|
|
3916
3916
|
]) : o.type === P.CUSTOM_MACRO ? an(o.macroConfig?.value || o.value || "", [
|
|
@@ -3943,7 +3943,7 @@ function Jc(o) {
|
|
|
3943
3943
|
return n || (o.type === b.SELECT ? an(fi(o), t) : "");
|
|
3944
3944
|
}
|
|
3945
3945
|
function Ci(o) {
|
|
3946
|
-
return pe(o) || o.controlComponent &&
|
|
3946
|
+
return pe(o) || o.controlComponent && ml.has(o.controlComponent) ? "" : o.type === P.CONTROL ? Jc(o.control) : o.type === P.MACRO || o.type === P.CUSTOM_MACRO || o.type === P.REUSABLE_ITEM ? Pl(o) : o.type === P.TABLE ? o.trList?.map((t) => t.tdList.map((e) => pi(e.value || [])).join(" ")).join(`
|
|
3947
3947
|
`) || "" : o.type === P.TAB ? " " : o.valueList?.length ? pi(o.valueList) : o.value || "";
|
|
3948
3948
|
}
|
|
3949
3949
|
function pi(o) {
|
|
@@ -3988,7 +3988,7 @@ function Is(o) {
|
|
|
3988
3988
|
function po(o = []) {
|
|
3989
3989
|
const t = [];
|
|
3990
3990
|
return o.forEach((e) => {
|
|
3991
|
-
if (pe(e) || e.controlComponent &&
|
|
3991
|
+
if (pe(e) || e.controlComponent && ml.has(e.controlComponent))
|
|
3992
3992
|
return;
|
|
3993
3993
|
if (e.type === P.TABLE) {
|
|
3994
3994
|
const i = ut(e);
|
|
@@ -4004,7 +4004,7 @@ function po(o = []) {
|
|
|
4004
4004
|
return;
|
|
4005
4005
|
}
|
|
4006
4006
|
if (e.type === P.MACRO || e.type === P.CUSTOM_MACRO || e.type === P.REUSABLE_ITEM) {
|
|
4007
|
-
t.push(...Ts(
|
|
4007
|
+
t.push(...Ts(Pl(e), e));
|
|
4008
4008
|
return;
|
|
4009
4009
|
}
|
|
4010
4010
|
if (e.valueList?.length) {
|
|
@@ -4160,7 +4160,7 @@ function le(o, t) {
|
|
|
4160
4160
|
}, w = {
|
|
4161
4161
|
...F,
|
|
4162
4162
|
color: void 0
|
|
4163
|
-
}, V =
|
|
4163
|
+
}, V = Zt(a || L.preTextFix);
|
|
4164
4164
|
for (let y = 0; y < V.length; y++) {
|
|
4165
4165
|
const W = V[y];
|
|
4166
4166
|
o.splice(s, 0, {
|
|
@@ -4174,7 +4174,7 @@ function le(o, t) {
|
|
|
4174
4174
|
}), s++;
|
|
4175
4175
|
}
|
|
4176
4176
|
if (u) {
|
|
4177
|
-
const y =
|
|
4177
|
+
const y = Zt(u);
|
|
4178
4178
|
for (let W = 0; W < y.length; W++) {
|
|
4179
4179
|
const X = y[W];
|
|
4180
4180
|
o.splice(s, 0, {
|
|
@@ -4210,16 +4210,16 @@ function le(o, t) {
|
|
|
4210
4210
|
value: W.includes(U.code)
|
|
4211
4211
|
}
|
|
4212
4212
|
}), s++;
|
|
4213
|
-
const x =
|
|
4213
|
+
const x = Zt(U.value);
|
|
4214
4214
|
for (let Q = 0; Q < x.length; Q++) {
|
|
4215
|
-
const
|
|
4215
|
+
const Z = x[Q], H = Q === x.length - 1;
|
|
4216
4216
|
o.splice(s, 0, {
|
|
4217
4217
|
...M,
|
|
4218
4218
|
...w,
|
|
4219
4219
|
...X[D],
|
|
4220
4220
|
controlId: S,
|
|
4221
|
-
value:
|
|
4222
|
-
` ? _ :
|
|
4221
|
+
value: Z === `
|
|
4222
|
+
` ? _ : Z,
|
|
4223
4223
|
letterSpacing: H ? T.gap : 0,
|
|
4224
4224
|
control: l.control,
|
|
4225
4225
|
controlComponent: R.VALUE
|
|
@@ -4246,9 +4246,9 @@ function le(o, t) {
|
|
|
4246
4246
|
value: g === E.code
|
|
4247
4247
|
}
|
|
4248
4248
|
}), s++;
|
|
4249
|
-
const U =
|
|
4249
|
+
const U = Zt(E.value);
|
|
4250
4250
|
for (let x = 0; x < U.length; x++) {
|
|
4251
|
-
const Q = U[x],
|
|
4251
|
+
const Q = U[x], Z = x === U.length - 1;
|
|
4252
4252
|
o.splice(s, 0, {
|
|
4253
4253
|
...M,
|
|
4254
4254
|
...w,
|
|
@@ -4256,7 +4256,7 @@ function le(o, t) {
|
|
|
4256
4256
|
controlId: S,
|
|
4257
4257
|
value: Q === `
|
|
4258
4258
|
` ? _ : Q,
|
|
4259
|
-
letterSpacing:
|
|
4259
|
+
letterSpacing: Z ? O.gap : 0,
|
|
4260
4260
|
control: l.control,
|
|
4261
4261
|
controlComponent: R.VALUE
|
|
4262
4262
|
}), X++, s++;
|
|
@@ -4289,12 +4289,12 @@ function le(o, t) {
|
|
|
4289
4289
|
for (let X = 0; X < y.length; X++) {
|
|
4290
4290
|
const D = y[X];
|
|
4291
4291
|
if (D.type === P.CONTROL && D.control) {
|
|
4292
|
-
const E = D, U = E.controlId || Lt(), x = E.control?.value || [], Q = E.control?.placeholder || "",
|
|
4292
|
+
const E = D, U = E.controlId || Lt(), x = E.control?.value || [], Q = E.control?.placeholder || "", Z = E.control?.type, H = Z === b.TEXTFIELD, Y = Z === b.TEXT || Z === b.NUMBER, $ = Z === b.CHECKBOX, G = Z === b.RADIO, A = Z === b.BUTTON, B = H ? R.PRETEXTFIX : R.PREFIX, nt = H ? R.POSTTEXTFIX : R.POSTFIX, j = {
|
|
4293
4293
|
...M,
|
|
4294
4294
|
controlId: U,
|
|
4295
4295
|
type: P.CONTROL,
|
|
4296
4296
|
control: E.control
|
|
4297
|
-
}, Yt = H ? i.control.textFixColor : Y ? "#87d068" : A ? to().color : i.control.bracketColor, At = A ? to().highlight : void 0, Ne = H ? E.control?.preTextFix || L.preTextFix : E.control?.prefix || L.prefix, ce = Ae(
|
|
4297
|
+
}, Yt = H ? i.control.textFixColor : Y ? "#87d068" : A ? to().color : i.control.bracketColor, At = A ? to().highlight : void 0, Ne = H ? E.control?.preTextFix || L.preTextFix : E.control?.prefix || L.prefix, ce = Ae(Z, Ne);
|
|
4298
4298
|
for (let q = 0; q < ce.length; q++)
|
|
4299
4299
|
o.splice(s, 0, {
|
|
4300
4300
|
...j,
|
|
@@ -4322,7 +4322,7 @@ function le(o, t) {
|
|
|
4322
4322
|
}), s++;
|
|
4323
4323
|
}
|
|
4324
4324
|
} else {
|
|
4325
|
-
const J = Ki(E.control), z =
|
|
4325
|
+
const J = Ki(E.control), z = Zt(J);
|
|
4326
4326
|
for (let at = 0; at < z.length; at++) {
|
|
4327
4327
|
const tt = z[at];
|
|
4328
4328
|
o.splice(s, 0, {
|
|
@@ -4349,7 +4349,7 @@ function le(o, t) {
|
|
|
4349
4349
|
value: z.includes(tt.code)
|
|
4350
4350
|
}
|
|
4351
4351
|
}), s++;
|
|
4352
|
-
const Rt =
|
|
4352
|
+
const Rt = Zt(tt.value || "");
|
|
4353
4353
|
for (let ft = 0; ft < Rt.length; ft++) {
|
|
4354
4354
|
const xt = Rt[ft], Xt = ft === Rt.length - 1;
|
|
4355
4355
|
o.splice(s, 0, {
|
|
@@ -4377,7 +4377,7 @@ function le(o, t) {
|
|
|
4377
4377
|
value: J === at.code
|
|
4378
4378
|
}
|
|
4379
4379
|
}), s++;
|
|
4380
|
-
const tt =
|
|
4380
|
+
const tt = Zt(at.value || "");
|
|
4381
4381
|
for (let Rt = 0; Rt < tt.length; Rt++) {
|
|
4382
4382
|
const ft = tt[Rt], xt = Rt === tt.length - 1;
|
|
4383
4383
|
o.splice(s, 0, {
|
|
@@ -4439,13 +4439,13 @@ function le(o, t) {
|
|
|
4439
4439
|
if (tt.length === 0) {
|
|
4440
4440
|
const mt = z.control?.placeholder || "";
|
|
4441
4441
|
if (mt) {
|
|
4442
|
-
const Tt =
|
|
4443
|
-
for (let
|
|
4442
|
+
const Tt = Zt(mt);
|
|
4443
|
+
for (let vt = 0; vt < Tt.length; vt++)
|
|
4444
4444
|
o.splice(s, 0, {
|
|
4445
4445
|
...Xt,
|
|
4446
4446
|
color: i.control.placeholderColor,
|
|
4447
4447
|
originControlId: U,
|
|
4448
|
-
value: Tt[
|
|
4448
|
+
value: Tt[vt],
|
|
4449
4449
|
controlComponent: R.PLACEHOLDER
|
|
4450
4450
|
}), s++;
|
|
4451
4451
|
}
|
|
@@ -4488,7 +4488,7 @@ function le(o, t) {
|
|
|
4488
4488
|
}
|
|
4489
4489
|
}
|
|
4490
4490
|
else if (Q) {
|
|
4491
|
-
const q =
|
|
4491
|
+
const q = Zt(Q);
|
|
4492
4492
|
for (let J = 0; J < q.length; J++)
|
|
4493
4493
|
o.splice(s, 0, {
|
|
4494
4494
|
...j,
|
|
@@ -4497,8 +4497,8 @@ function le(o, t) {
|
|
|
4497
4497
|
value: q[J],
|
|
4498
4498
|
controlComponent: R.PLACEHOLDER
|
|
4499
4499
|
}), s++;
|
|
4500
|
-
} else if ((
|
|
4501
|
-
const J =
|
|
4500
|
+
} else if ((Z === b.SELECT || Z === b.DATE || Z === b.NUMBER) && !E.control?.code && Q) {
|
|
4501
|
+
const J = Zt(Q);
|
|
4502
4502
|
for (let z = 0; z < J.length; z++)
|
|
4503
4503
|
o.splice(s, 0, {
|
|
4504
4504
|
...j,
|
|
@@ -4508,7 +4508,7 @@ function le(o, t) {
|
|
|
4508
4508
|
controlComponent: R.PLACEHOLDER
|
|
4509
4509
|
}), s++;
|
|
4510
4510
|
}
|
|
4511
|
-
const Le = H ? E.control?.postTextFix || L.postTextFix : E.control?.postfix || L.postfix, it = Ae(
|
|
4511
|
+
const Le = H ? E.control?.postTextFix || L.postTextFix : E.control?.postfix || L.postfix, it = Ae(Z, Le);
|
|
4512
4512
|
for (let q = 0; q < it.length; q++)
|
|
4513
4513
|
o.splice(s, 0, {
|
|
4514
4514
|
...j,
|
|
@@ -4537,7 +4537,7 @@ function le(o, t) {
|
|
|
4537
4537
|
type: D.type
|
|
4538
4538
|
}), s++;
|
|
4539
4539
|
} else {
|
|
4540
|
-
const E = m === b.BUTTON ? Gn(D.value || "", l.control) :
|
|
4540
|
+
const E = m === b.BUTTON ? Gn(D.value || "", l.control) : Zt(D.value || "").map((U) => ({ value: U }));
|
|
4541
4541
|
for (let U = 0; U < E.length; U++) {
|
|
4542
4542
|
const x = E[U];
|
|
4543
4543
|
o.splice(s, 0, {
|
|
@@ -4562,7 +4562,7 @@ function le(o, t) {
|
|
|
4562
4562
|
const y = {
|
|
4563
4563
|
...F,
|
|
4564
4564
|
color: i.control.placeholderColor
|
|
4565
|
-
}, W =
|
|
4565
|
+
}, W = Zt(f);
|
|
4566
4566
|
for (let X = 0; X < W.length; X++) {
|
|
4567
4567
|
const D = W[X];
|
|
4568
4568
|
o.splice(s, 0, {
|
|
@@ -4578,7 +4578,7 @@ function le(o, t) {
|
|
|
4578
4578
|
}
|
|
4579
4579
|
}
|
|
4580
4580
|
if (h) {
|
|
4581
|
-
const y =
|
|
4581
|
+
const y = Zt(h);
|
|
4582
4582
|
for (let W = 0; W < y.length; W++) {
|
|
4583
4583
|
const X = y[W];
|
|
4584
4584
|
o.splice(s, 0, {
|
|
@@ -4592,7 +4592,7 @@ function le(o, t) {
|
|
|
4592
4592
|
}), s++;
|
|
4593
4593
|
}
|
|
4594
4594
|
}
|
|
4595
|
-
const C =
|
|
4595
|
+
const C = Zt(c || L.postTextFix);
|
|
4596
4596
|
for (let y = 0; y < C.length; y++) {
|
|
4597
4597
|
const W = C[y];
|
|
4598
4598
|
o.splice(s, 0, {
|
|
@@ -4634,7 +4634,7 @@ function le(o, t) {
|
|
|
4634
4634
|
}), s++;
|
|
4635
4635
|
}
|
|
4636
4636
|
if (u) {
|
|
4637
|
-
const y =
|
|
4637
|
+
const y = Zt(u);
|
|
4638
4638
|
for (let W = 0; W < y.length; W++) {
|
|
4639
4639
|
const X = y[W];
|
|
4640
4640
|
o.splice(s, 0, {
|
|
@@ -4670,16 +4670,16 @@ function le(o, t) {
|
|
|
4670
4670
|
value: W.includes(U.code)
|
|
4671
4671
|
}
|
|
4672
4672
|
}), s++;
|
|
4673
|
-
const x =
|
|
4673
|
+
const x = Zt(U.value);
|
|
4674
4674
|
for (let Q = 0; Q < x.length; Q++) {
|
|
4675
|
-
const
|
|
4675
|
+
const Z = x[Q], H = Q === x.length - 1;
|
|
4676
4676
|
o.splice(s, 0, {
|
|
4677
4677
|
...S,
|
|
4678
4678
|
...N,
|
|
4679
4679
|
...X[D],
|
|
4680
4680
|
controlId: O,
|
|
4681
|
-
value:
|
|
4682
|
-
` ? _ :
|
|
4681
|
+
value: Z === `
|
|
4682
|
+
` ? _ : Z,
|
|
4683
4683
|
letterSpacing: H ? L.gap : 0,
|
|
4684
4684
|
control: l.control,
|
|
4685
4685
|
controlComponent: R.VALUE
|
|
@@ -4706,9 +4706,9 @@ function le(o, t) {
|
|
|
4706
4706
|
value: g === E.code
|
|
4707
4707
|
}
|
|
4708
4708
|
}), s++;
|
|
4709
|
-
const U =
|
|
4709
|
+
const U = Zt(E.value);
|
|
4710
4710
|
for (let x = 0; x < U.length; x++) {
|
|
4711
|
-
const Q = U[x],
|
|
4711
|
+
const Q = U[x], Z = x === U.length - 1;
|
|
4712
4712
|
o.splice(s, 0, {
|
|
4713
4713
|
...S,
|
|
4714
4714
|
...N,
|
|
@@ -4716,7 +4716,7 @@ function le(o, t) {
|
|
|
4716
4716
|
controlId: O,
|
|
4717
4717
|
value: Q === `
|
|
4718
4718
|
` ? _ : Q,
|
|
4719
|
-
letterSpacing:
|
|
4719
|
+
letterSpacing: Z ? T.gap : 0,
|
|
4720
4720
|
control: l.control,
|
|
4721
4721
|
controlComponent: R.VALUE
|
|
4722
4722
|
}), X++, s++;
|
|
@@ -4749,12 +4749,12 @@ function le(o, t) {
|
|
|
4749
4749
|
for (let X = 0; X < y.length; X++) {
|
|
4750
4750
|
const D = y[X];
|
|
4751
4751
|
if (D.type === P.CONTROL && D.control) {
|
|
4752
|
-
const E = D, U = E.controlId || Lt(), x = E.control?.value || [], Q = E.control?.placeholder || "",
|
|
4752
|
+
const E = D, U = E.controlId || Lt(), x = E.control?.value || [], Q = E.control?.placeholder || "", Z = E.control?.type, H = Z === b.TEXTFIELD, Y = Z === b.TEXT || Z === b.NUMBER, $ = Z === b.CHECKBOX, G = Z === b.RADIO, A = Z === b.BUTTON, B = H ? R.PRETEXTFIX : R.PREFIX, nt = H ? R.POSTTEXTFIX : R.POSTFIX, j = {
|
|
4753
4753
|
...S,
|
|
4754
4754
|
controlId: U,
|
|
4755
4755
|
type: P.CONTROL,
|
|
4756
4756
|
control: E.control
|
|
4757
|
-
}, Yt = H ? i.control.textFixColor : Y ? "#87d068" : A ? to().color : i.control.bracketColor, At = A ? to().highlight : void 0, Ne = H ? E.control?.preTextFix || m.preTextFix : E.control?.prefix || m.prefix, ce = Ae(
|
|
4757
|
+
}, Yt = H ? i.control.textFixColor : Y ? "#87d068" : A ? to().color : i.control.bracketColor, At = A ? to().highlight : void 0, Ne = H ? E.control?.preTextFix || m.preTextFix : E.control?.prefix || m.prefix, ce = Ae(Z, Ne);
|
|
4758
4758
|
for (let q = 0; q < ce.length; q++)
|
|
4759
4759
|
o.splice(s, 0, {
|
|
4760
4760
|
...j,
|
|
@@ -4782,7 +4782,7 @@ function le(o, t) {
|
|
|
4782
4782
|
}), s++;
|
|
4783
4783
|
}
|
|
4784
4784
|
} else {
|
|
4785
|
-
const J = Ki(E.control), z =
|
|
4785
|
+
const J = Ki(E.control), z = Zt(J);
|
|
4786
4786
|
for (let at = 0; at < z.length; at++) {
|
|
4787
4787
|
const tt = z[at];
|
|
4788
4788
|
o.splice(s, 0, {
|
|
@@ -4810,7 +4810,7 @@ function le(o, t) {
|
|
|
4810
4810
|
value: z.includes(tt.code)
|
|
4811
4811
|
}
|
|
4812
4812
|
}), s++;
|
|
4813
|
-
const Rt =
|
|
4813
|
+
const Rt = Zt(tt.value || "");
|
|
4814
4814
|
for (let ft = 0; ft < Rt.length; ft++) {
|
|
4815
4815
|
const xt = Rt[ft], Xt = ft === Rt.length - 1;
|
|
4816
4816
|
o.splice(s, 0, {
|
|
@@ -4839,7 +4839,7 @@ function le(o, t) {
|
|
|
4839
4839
|
value: J === at.code
|
|
4840
4840
|
}
|
|
4841
4841
|
}), s++;
|
|
4842
|
-
const tt =
|
|
4842
|
+
const tt = Zt(at.value || "");
|
|
4843
4843
|
for (let Rt = 0; Rt < tt.length; Rt++) {
|
|
4844
4844
|
const ft = tt[Rt], xt = Rt === tt.length - 1;
|
|
4845
4845
|
o.splice(s, 0, {
|
|
@@ -4897,13 +4897,13 @@ function le(o, t) {
|
|
|
4897
4897
|
if (tt.length === 0) {
|
|
4898
4898
|
const mt = z.control?.placeholder || "";
|
|
4899
4899
|
if (mt) {
|
|
4900
|
-
const Tt =
|
|
4901
|
-
for (let
|
|
4900
|
+
const Tt = Zt(mt);
|
|
4901
|
+
for (let vt = 0; vt < Tt.length; vt++)
|
|
4902
4902
|
o.splice(s, 0, {
|
|
4903
4903
|
...Xt,
|
|
4904
4904
|
color: i.control.placeholderColor,
|
|
4905
4905
|
originControlId: U,
|
|
4906
|
-
value: Tt[
|
|
4906
|
+
value: Tt[vt],
|
|
4907
4907
|
controlComponent: R.PLACEHOLDER
|
|
4908
4908
|
}), s++;
|
|
4909
4909
|
}
|
|
@@ -4929,7 +4929,7 @@ function le(o, t) {
|
|
|
4929
4929
|
}), s++;
|
|
4930
4930
|
}
|
|
4931
4931
|
else if (Q) {
|
|
4932
|
-
const q =
|
|
4932
|
+
const q = Zt(Q);
|
|
4933
4933
|
for (let J = 0; J < q.length; J++)
|
|
4934
4934
|
o.splice(s, 0, {
|
|
4935
4935
|
...j,
|
|
@@ -4938,8 +4938,8 @@ function le(o, t) {
|
|
|
4938
4938
|
value: q[J],
|
|
4939
4939
|
controlComponent: R.PLACEHOLDER
|
|
4940
4940
|
}), s++;
|
|
4941
|
-
} else if ((
|
|
4942
|
-
const J =
|
|
4941
|
+
} else if ((Z === b.SELECT || Z === b.DATE || Z === b.NUMBER) && !E.control?.code && Q) {
|
|
4942
|
+
const J = Zt(Q);
|
|
4943
4943
|
for (let z = 0; z < J.length; z++)
|
|
4944
4944
|
o.splice(s, 0, {
|
|
4945
4945
|
...j,
|
|
@@ -4949,7 +4949,7 @@ function le(o, t) {
|
|
|
4949
4949
|
controlComponent: R.PLACEHOLDER
|
|
4950
4950
|
}), s++;
|
|
4951
4951
|
}
|
|
4952
|
-
const Le = H ? E.control?.postTextFix || m.postTextFix : E.control?.postfix || m.postfix, it = Ae(
|
|
4952
|
+
const Le = H ? E.control?.postTextFix || m.postTextFix : E.control?.postfix || m.postfix, it = Ae(Z, Le);
|
|
4953
4953
|
for (let q = 0; q < it.length; q++)
|
|
4954
4954
|
o.splice(s, 0, {
|
|
4955
4955
|
...j,
|
|
@@ -4982,7 +4982,7 @@ function le(o, t) {
|
|
|
4982
4982
|
type: D.type
|
|
4983
4983
|
}), s++;
|
|
4984
4984
|
} else {
|
|
4985
|
-
const E = p === b.BUTTON ? Gn(D.value || "", l.control) :
|
|
4985
|
+
const E = p === b.BUTTON ? Gn(D.value || "", l.control) : Zt(D.value || "").map((U) => ({ value: U }));
|
|
4986
4986
|
for (let U = 0; U < E.length; U++) {
|
|
4987
4987
|
const x = E[U];
|
|
4988
4988
|
o.splice(s, 0, {
|
|
@@ -5007,7 +5007,7 @@ function le(o, t) {
|
|
|
5007
5007
|
const y = {
|
|
5008
5008
|
...M,
|
|
5009
5009
|
color: i.control.placeholderColor
|
|
5010
|
-
}, W =
|
|
5010
|
+
}, W = Zt(w);
|
|
5011
5011
|
for (let X = 0; X < W.length; X++) {
|
|
5012
5012
|
const D = W[X];
|
|
5013
5013
|
o.splice(s, 0, {
|
|
@@ -5023,7 +5023,7 @@ function le(o, t) {
|
|
|
5023
5023
|
}
|
|
5024
5024
|
}
|
|
5025
5025
|
if (h) {
|
|
5026
|
-
const y =
|
|
5026
|
+
const y = Zt(h);
|
|
5027
5027
|
for (let W = 0; W < y.length; W++) {
|
|
5028
5028
|
const X = y[W];
|
|
5029
5029
|
o.splice(s, 0, {
|
|
@@ -5055,7 +5055,7 @@ function le(o, t) {
|
|
|
5055
5055
|
}
|
|
5056
5056
|
} else if ((!l.type || Ue.includes(l.type)) && l.type !== P.SPECIAL_SYMBOLS && l.value?.length > 1) {
|
|
5057
5057
|
o.splice(s, 1);
|
|
5058
|
-
const a =
|
|
5058
|
+
const a = Zt(l.value);
|
|
5059
5059
|
for (let c = 0; c < a.length; c++)
|
|
5060
5060
|
o.splice(s + c, 0, { ...l, value: a[c] });
|
|
5061
5061
|
l = o[s];
|
|
@@ -5081,7 +5081,7 @@ function zc(o, t) {
|
|
|
5081
5081
|
return !0;
|
|
5082
5082
|
}
|
|
5083
5083
|
function bn(o, t = {}) {
|
|
5084
|
-
const { extraPickAttrs: e } = t, n = [...
|
|
5084
|
+
const { extraPickAttrs: e } = t, n = [...ic];
|
|
5085
5085
|
e && n.push(...e);
|
|
5086
5086
|
const i = {
|
|
5087
5087
|
value: o?.value === _ ? `
|
|
@@ -5223,7 +5223,7 @@ function Kt(o, t = {}) {
|
|
|
5223
5223
|
isClassifyArea: !1
|
|
5224
5224
|
})
|
|
5225
5225
|
};
|
|
5226
|
-
|
|
5226
|
+
sc.forEach((T) => {
|
|
5227
5227
|
const O = m[T];
|
|
5228
5228
|
O !== void 0 && (L[T] = O);
|
|
5229
5229
|
}), p.tdList[I] = L;
|
|
@@ -5321,8 +5321,8 @@ function Kt(o, t = {}) {
|
|
|
5321
5321
|
if (D || E && (F.controlComponent === R.CHECKBOX || F.controlComponent === R.RADIO)) {
|
|
5322
5322
|
const U = I(M + 1, F.controlId, W, y);
|
|
5323
5323
|
if (U !== -1) {
|
|
5324
|
-
const x = s.slice(M, U + 1).map((
|
|
5325
|
-
const H = ut(
|
|
5324
|
+
const x = s.slice(M, U + 1).map((Z) => {
|
|
5325
|
+
const H = ut(Z);
|
|
5326
5326
|
return delete H.originControlId, H;
|
|
5327
5327
|
}), Q = Kt(x, t);
|
|
5328
5328
|
Q.length > 0 && S.push(Q[0]), M = U + 1;
|
|
@@ -5489,7 +5489,7 @@ function Kt(o, t = {}) {
|
|
|
5489
5489
|
}
|
|
5490
5490
|
return l;
|
|
5491
5491
|
}
|
|
5492
|
-
function
|
|
5492
|
+
function El(o) {
|
|
5493
5493
|
switch (window.getComputedStyle(o).textAlign) {
|
|
5494
5494
|
case "left":
|
|
5495
5495
|
case "start":
|
|
@@ -5507,7 +5507,7 @@ function Pl(o) {
|
|
|
5507
5507
|
return kt.LEFT;
|
|
5508
5508
|
}
|
|
5509
5509
|
}
|
|
5510
|
-
function
|
|
5510
|
+
function Ol(o) {
|
|
5511
5511
|
return o === kt.ALIGNMENT ? "justify" : o;
|
|
5512
5512
|
}
|
|
5513
5513
|
function jc(o) {
|
|
@@ -5570,10 +5570,10 @@ function tu(o, t) {
|
|
|
5570
5570
|
let e = "span";
|
|
5571
5571
|
o.type === P.SUPERSCRIPT ? e = "sup" : o.type === P.SUBSCRIPT && (e = "sub");
|
|
5572
5572
|
const n = document.createElement(e);
|
|
5573
|
-
return n.style.fontFamily = o.font || t.defaultFont, o.rowFlex && (n.style.textAlign =
|
|
5573
|
+
return n.style.fontFamily = o.font || t.defaultFont, o.rowFlex && (n.style.textAlign = Ol(o.rowFlex)), o.color && (n.style.color = o.color), o.bold && (n.style.fontWeight = "600"), o.italic && (n.style.fontStyle = "italic"), n.style.fontSize = `${o.size || t.defaultSize}px`, o.highlight && (n.style.backgroundColor = o.highlight), o.underline && (n.style.textDecoration = "underline", n.style.textDecorationStyle = o.textDecoration?.style || "solid"), o.strikeout && (n.style.textDecoration += " line-through"), o.type && n.setAttribute("data-type", o.type), o.rowMargin && (n.style.lineHeight = (o.rowMargin ?? t.defaultRowMargin).toString()), n.innerText = o.value.replace(new RegExp(`${_}`, "g"), `
|
|
5574
5574
|
`), n;
|
|
5575
5575
|
}
|
|
5576
|
-
function
|
|
5576
|
+
function Ml(o) {
|
|
5577
5577
|
let t = 0;
|
|
5578
5578
|
const e = /* @__PURE__ */ new Map();
|
|
5579
5579
|
for (let n = 0; n < o.length; n++) {
|
|
@@ -5624,7 +5624,7 @@ function eu(o) {
|
|
|
5624
5624
|
return t;
|
|
5625
5625
|
}
|
|
5626
5626
|
function Fo(o, t) {
|
|
5627
|
-
const e = Di(t), n =
|
|
5627
|
+
const e = Di(t), n = Ll(e.mode) ? po(Kt(o, { editorOptions: e })) : o;
|
|
5628
5628
|
function i(l) {
|
|
5629
5629
|
const a = document.createElement("div");
|
|
5630
5630
|
for (let c = 0; c < l.length; c++) {
|
|
@@ -5662,10 +5662,10 @@ function Fo(o, t) {
|
|
|
5662
5662
|
const h = document.createElement(`h${hs[u.level]}`), d = i(u.valueList);
|
|
5663
5663
|
h.innerHTML = d.innerHTML, a.append(h);
|
|
5664
5664
|
} else if (u.type === P.LIST) {
|
|
5665
|
-
const h = document.createElement(
|
|
5666
|
-
u.listStyle && (h.style.listStyleType =
|
|
5665
|
+
const h = document.createElement(Lc[u.listType]);
|
|
5666
|
+
u.listStyle && (h.style.listStyleType = Pc[u.listStyle]);
|
|
5667
5667
|
const d = Kt(u.valueList);
|
|
5668
|
-
|
|
5668
|
+
Ml(d).forEach((g) => {
|
|
5669
5669
|
const p = document.createElement("li"), I = i(g);
|
|
5670
5670
|
p.innerHTML = I.innerHTML, h.append(p);
|
|
5671
5671
|
}), a.append(h);
|
|
@@ -5720,7 +5720,7 @@ function Fo(o, t) {
|
|
|
5720
5720
|
const a = s[l], c = !a.rowFlex || a.rowFlex === kt.LEFT, u = document.createElement("div");
|
|
5721
5721
|
if (!c) {
|
|
5722
5722
|
const h = a.data[0];
|
|
5723
|
-
To(h) ? (u.style.display = "flex", u.style.justifyContent = jc(h.rowFlex)) : (u.style.textAlign =
|
|
5723
|
+
To(h) ? (u.style.display = "flex", u.style.justifyContent = jc(h.rowFlex)) : (u.style.textAlign = Ol(a.rowFlex), a.rowFlex === "justify" && (u.style.textAlignLast = "justify"));
|
|
5724
5724
|
}
|
|
5725
5725
|
u.innerHTML = i(a.data).innerHTML, c ? u.childNodes.forEach((h) => {
|
|
5726
5726
|
r.append(h.cloneNode(!0));
|
|
@@ -5731,7 +5731,7 @@ function Fo(o, t) {
|
|
|
5731
5731
|
function nu(o) {
|
|
5732
5732
|
if (!o || o.nodeType !== 3)
|
|
5733
5733
|
return null;
|
|
5734
|
-
const t = o.parentNode, e = t.nodeName === "FONT" ? t.parentNode : t, n =
|
|
5734
|
+
const t = o.parentNode, e = t.nodeName === "FONT" ? t.parentNode : t, n = El(e), i = o.textContent, r = window.getComputedStyle(e);
|
|
5735
5735
|
if (!i || e.nodeName === "STYLE")
|
|
5736
5736
|
return null;
|
|
5737
5737
|
const s = {
|
|
@@ -5775,9 +5775,9 @@ function Xo(o, t) {
|
|
|
5775
5775
|
e.push({
|
|
5776
5776
|
value: "",
|
|
5777
5777
|
type: P.TITLE,
|
|
5778
|
-
level:
|
|
5778
|
+
level: Oc[h.nodeName],
|
|
5779
5779
|
valueList: f
|
|
5780
|
-
}), h.nextSibling && !
|
|
5780
|
+
}), h.nextSibling && !ac.includes(h.nextSibling.nodeName) && e.push({
|
|
5781
5781
|
value: `
|
|
5782
5782
|
`
|
|
5783
5783
|
});
|
|
@@ -5810,7 +5810,7 @@ function Xo(o, t) {
|
|
|
5810
5810
|
height: g,
|
|
5811
5811
|
value: d,
|
|
5812
5812
|
type: P.IMAGE,
|
|
5813
|
-
rowFlex:
|
|
5813
|
+
rowFlex: El(h.parentElement)
|
|
5814
5814
|
});
|
|
5815
5815
|
} else if (h.nodeName === "VIDEO") {
|
|
5816
5816
|
const { src: d, width: f, height: g } = h;
|
|
@@ -5914,7 +5914,7 @@ function so(o, t) {
|
|
|
5914
5914
|
const e = t ? Di(t) : void 0;
|
|
5915
5915
|
if (e?.mode === K.COMPARE)
|
|
5916
5916
|
return Is(o);
|
|
5917
|
-
const n =
|
|
5917
|
+
const n = Ll(e?.mode) ? po(Kt(o, { editorOptions: e })) : Kt(o);
|
|
5918
5918
|
function i(r) {
|
|
5919
5919
|
let s = "";
|
|
5920
5920
|
for (let l = 0; l < r.length; l++) {
|
|
@@ -5938,7 +5938,7 @@ function so(o, t) {
|
|
|
5938
5938
|
else if (a.type === P.TITLE)
|
|
5939
5939
|
s += `${i(Kt(a.valueList))}`;
|
|
5940
5940
|
else if (a.type === P.LIST) {
|
|
5941
|
-
const c = Kt(a.valueList), u =
|
|
5941
|
+
const c = Kt(a.valueList), u = Ml(c);
|
|
5942
5942
|
let h = "";
|
|
5943
5943
|
a.listType === cn.UL && (h = ds[a.listStyle]), u.forEach((d, f) => {
|
|
5944
5944
|
const g = u.size - 1 === f;
|
|
@@ -5971,7 +5971,7 @@ function Ai(o) {
|
|
|
5971
5971
|
]);
|
|
5972
5972
|
}
|
|
5973
5973
|
function To(o) {
|
|
5974
|
-
return !!o?.type && (
|
|
5974
|
+
return !!o?.type && (lc.includes(o.type) || o.imgDisplay === Et.INLINE);
|
|
5975
5975
|
}
|
|
5976
5976
|
function ou(o, t) {
|
|
5977
5977
|
const e = document.createElement(t);
|
|
@@ -6014,29 +6014,29 @@ function Io(o, t, e = Ee.BEFORE) {
|
|
|
6014
6014
|
}
|
|
6015
6015
|
return n;
|
|
6016
6016
|
}
|
|
6017
|
-
const
|
|
6018
|
-
function
|
|
6017
|
+
const Sl = `${Si}-control`;
|
|
6018
|
+
function Dl(o) {
|
|
6019
6019
|
localStorage.setItem(Si, JSON.stringify({
|
|
6020
6020
|
text: o.text,
|
|
6021
6021
|
elementList: o.elementList
|
|
6022
6022
|
}));
|
|
6023
6023
|
}
|
|
6024
|
-
function
|
|
6024
|
+
function Cl() {
|
|
6025
6025
|
const o = localStorage.getItem(Si);
|
|
6026
6026
|
return o ? JSON.parse(o) : null;
|
|
6027
6027
|
}
|
|
6028
|
-
function
|
|
6028
|
+
function Fl() {
|
|
6029
6029
|
localStorage.removeItem(Si);
|
|
6030
6030
|
}
|
|
6031
6031
|
function su(o) {
|
|
6032
|
-
localStorage.setItem(
|
|
6032
|
+
localStorage.setItem(Sl, JSON.stringify(o));
|
|
6033
6033
|
}
|
|
6034
|
-
function
|
|
6035
|
-
const o = localStorage.getItem(
|
|
6034
|
+
function Xl() {
|
|
6035
|
+
const o = localStorage.getItem(Sl);
|
|
6036
6036
|
return o ? JSON.parse(o) : null;
|
|
6037
6037
|
}
|
|
6038
6038
|
function ru() {
|
|
6039
|
-
return !!
|
|
6039
|
+
return !!Xl()?.element;
|
|
6040
6040
|
}
|
|
6041
6041
|
async function lu(o, t, e) {
|
|
6042
6042
|
if (!o && !t && !e.length)
|
|
@@ -6055,7 +6055,7 @@ async function lu(o, t, e) {
|
|
|
6055
6055
|
a.innerText = `
|
|
6056
6056
|
`, r.append(a), l.selectNodeContents(r), s?.removeAllRanges(), s?.addRange(l), document.execCommand("copy"), r.remove();
|
|
6057
6057
|
}
|
|
6058
|
-
|
|
6058
|
+
Dl({ text: o, elementList: e });
|
|
6059
6059
|
}
|
|
6060
6060
|
async function au(o) {
|
|
6061
6061
|
if (!o)
|
|
@@ -6072,9 +6072,9 @@ async function au(o) {
|
|
|
6072
6072
|
}
|
|
6073
6073
|
else
|
|
6074
6074
|
e();
|
|
6075
|
-
|
|
6075
|
+
Dl({ text: o, elementList: t });
|
|
6076
6076
|
}
|
|
6077
|
-
async function
|
|
6077
|
+
async function Nl(o, t) {
|
|
6078
6078
|
const e = Fo(o, t);
|
|
6079
6079
|
document.body.append(e);
|
|
6080
6080
|
const n = e.innerText;
|
|
@@ -6104,7 +6104,7 @@ function ws(o, t) {
|
|
|
6104
6104
|
const a = t[l];
|
|
6105
6105
|
if (s.titleId && /^\n/.test(a.value))
|
|
6106
6106
|
break;
|
|
6107
|
-
if (
|
|
6107
|
+
if (cc.includes(a.type)) {
|
|
6108
6108
|
if (t.splice(l, 1), a.valueList)
|
|
6109
6109
|
for (let c = 0; c < a.valueList.length; c++) {
|
|
6110
6110
|
const u = a.valueList[c];
|
|
@@ -6123,7 +6123,7 @@ function ws(o, t) {
|
|
|
6123
6123
|
}
|
|
6124
6124
|
e.insertElementList(t);
|
|
6125
6125
|
}
|
|
6126
|
-
function
|
|
6126
|
+
function xl(o, t) {
|
|
6127
6127
|
const e = o.getDraw();
|
|
6128
6128
|
if (e.isReadonly() || e.isDisabled())
|
|
6129
6129
|
return;
|
|
@@ -6132,7 +6132,7 @@ function Nl(o, t) {
|
|
|
6132
6132
|
});
|
|
6133
6133
|
ws(o, n);
|
|
6134
6134
|
}
|
|
6135
|
-
function
|
|
6135
|
+
function Zs(o, t) {
|
|
6136
6136
|
const e = o.getDraw();
|
|
6137
6137
|
if (e.isReadonly() || e.isDisabled())
|
|
6138
6138
|
return;
|
|
@@ -6163,13 +6163,13 @@ function uu(o, t) {
|
|
|
6163
6163
|
if (i && i(t)?.preventDefault !== !1)
|
|
6164
6164
|
return;
|
|
6165
6165
|
if (!cu(n)) {
|
|
6166
|
-
const s = n.getData("text"), l =
|
|
6166
|
+
const s = n.getData("text"), l = Cl();
|
|
6167
6167
|
if (l && ci(s) === ci(l.text)) {
|
|
6168
6168
|
ws(o, l.elementList);
|
|
6169
6169
|
return;
|
|
6170
6170
|
}
|
|
6171
6171
|
}
|
|
6172
|
-
|
|
6172
|
+
Fl();
|
|
6173
6173
|
let r = !1;
|
|
6174
6174
|
for (let s = 0; s < n.items.length; s++)
|
|
6175
6175
|
if (n.items[s].type === "text/html") {
|
|
@@ -6187,13 +6187,13 @@ function uu(o, t) {
|
|
|
6187
6187
|
}
|
|
6188
6188
|
if (l.type === "text/html" && r) {
|
|
6189
6189
|
l.getAsString((a) => {
|
|
6190
|
-
|
|
6190
|
+
xl(o, a);
|
|
6191
6191
|
});
|
|
6192
6192
|
break;
|
|
6193
6193
|
}
|
|
6194
6194
|
} else if (l.kind === "file" && l.type.includes("image")) {
|
|
6195
6195
|
const a = l.getAsFile();
|
|
6196
|
-
a &&
|
|
6196
|
+
a && Zs(o, a);
|
|
6197
6197
|
}
|
|
6198
6198
|
}
|
|
6199
6199
|
}
|
|
@@ -6204,12 +6204,12 @@ async function du(o, t) {
|
|
|
6204
6204
|
const { paste: n } = e.getOverride();
|
|
6205
6205
|
if (n && n()?.preventDefault !== !1)
|
|
6206
6206
|
return;
|
|
6207
|
-
const i = await navigator.clipboard.readText(), r =
|
|
6207
|
+
const i = await navigator.clipboard.readText(), r = Cl();
|
|
6208
6208
|
if (r && ci(i) === ci(r.text)) {
|
|
6209
6209
|
ws(o, r.elementList);
|
|
6210
6210
|
return;
|
|
6211
6211
|
}
|
|
6212
|
-
if (
|
|
6212
|
+
if (Fl(), t?.isPlainText)
|
|
6213
6213
|
i && o.input(i);
|
|
6214
6214
|
else {
|
|
6215
6215
|
const s = await navigator.clipboard.read();
|
|
@@ -6225,10 +6225,10 @@ async function du(o, t) {
|
|
|
6225
6225
|
u && o.input(u);
|
|
6226
6226
|
} else if (a.types.includes("text/html") && l) {
|
|
6227
6227
|
const u = await (await a.getType("text/html")).text();
|
|
6228
|
-
u &&
|
|
6228
|
+
u && xl(o, u);
|
|
6229
6229
|
} else if (a.types.some((c) => c.startsWith("image/"))) {
|
|
6230
6230
|
const c = a.types.find((h) => h.startsWith("image/")), u = await a.getType(c);
|
|
6231
|
-
|
|
6231
|
+
Zs(o, u);
|
|
6232
6232
|
}
|
|
6233
6233
|
}
|
|
6234
6234
|
}
|
|
@@ -6453,7 +6453,7 @@ class Ru {
|
|
|
6453
6453
|
* 在web端允许聚焦以确保键盘事件能够被捕获。
|
|
6454
6454
|
*/
|
|
6455
6455
|
focus() {
|
|
6456
|
-
if (
|
|
6456
|
+
if (ec && this.draw.isReadonly())
|
|
6457
6457
|
return;
|
|
6458
6458
|
const t = this.cursorAgent.getAgentCursorDom();
|
|
6459
6459
|
document.activeElement !== t && (t.focus(), t.setSelectionRange(0, 0));
|
|
@@ -6509,7 +6509,7 @@ class Ru {
|
|
|
6509
6509
|
const { cursorPosition: e, direction: n } = t;
|
|
6510
6510
|
if (!e || !n)
|
|
6511
6511
|
return;
|
|
6512
|
-
const { pageNo: i, coordinate: { leftTop: r, leftBottom: s } } = e, l =
|
|
6512
|
+
const { pageNo: i, coordinate: { leftTop: r, leftBottom: s } } = e, l = Ja(this.container), a = {
|
|
6513
6513
|
left: 0,
|
|
6514
6514
|
right: 0,
|
|
6515
6515
|
top: 0,
|
|
@@ -6720,11 +6720,11 @@ function gu(o, t) {
|
|
|
6720
6720
|
const N = e.getElementList(), w = s.getPositionList(), V = S ? M : f;
|
|
6721
6721
|
let C;
|
|
6722
6722
|
S ? C = e.getTd().value[M] : C = N[V];
|
|
6723
|
-
const y = S && e.getTd()?.value || N, W = S && e.getTd()?.positionList || w, X = !!(g && L), D = !!(g && p), E = !!(g && I), U = !!(g && T), x = !!(g && O), Q = (
|
|
6724
|
-
if (!
|
|
6723
|
+
const y = S && e.getTd()?.value || N, W = S && e.getTd()?.positionList || w, X = !!(g && L), D = !!(g && p), E = !!(g && I), U = !!(g && T), x = !!(g && O), Q = (v) => v && (v.type === P.MACRO || v.type === P.CUSTOM_MACRO || v.type === P.REUSABLE_ITEM || v.type === P.SUB_TEMPLATE || v.type === P.MENSTRUAL_HISTORY || v.type === P.FETAL_HEART_POSITION || v.type === P.TOOTH_POSITION || v.type === P.LIST || v.type === P.SPECIAL_SYMBOLS), Z = (v) => v && !!v.originControlId && !!v.controlId, H = (v) => !!(v && v.originControlId && v.controlId && (v.controlComponent === R.POSTFIX || v.controlComponent === R.POSTTEXTFIX || v.controlComponent === R.POST_TEXT || v.controlComponent === R.PLACEHOLDER)), Y = (v) => !!(v && v.originControlId && v.controlId && (v.controlComponent === R.PREFIX || v.controlComponent === R.PRE_TEXT || v.controlComponent === R.PRETEXTFIX || v.controlComponent === R.PRETEXTFIX_TEXT || v.controlComponent === R.PLACEHOLDER)), $ = (v) => {
|
|
6724
|
+
if (!v)
|
|
6725
6725
|
return null;
|
|
6726
6726
|
const k = /* @__PURE__ */ new Set();
|
|
6727
|
-
let st =
|
|
6727
|
+
let st = v, gt = null;
|
|
6728
6728
|
for (; st && !k.has(st); ) {
|
|
6729
6729
|
k.add(st);
|
|
6730
6730
|
let Dt;
|
|
@@ -6740,96 +6740,96 @@ function gu(o, t) {
|
|
|
6740
6740
|
return gt;
|
|
6741
6741
|
}, G = e.getMode() === K.FORM, A = G && C?.control?.type === b.TEXT, B = G && !A ? e.getControl().getActiveTextControlLimit() : null;
|
|
6742
6742
|
let nt = V;
|
|
6743
|
-
const j = (
|
|
6743
|
+
const j = (v, k) => !!v && !!k && v.controlId === k, Yt = (v, k, st) => {
|
|
6744
6744
|
if (st) {
|
|
6745
6745
|
for (let gt = k; gt >= 0; gt--) {
|
|
6746
|
-
const Dt =
|
|
6746
|
+
const Dt = v[gt];
|
|
6747
6747
|
if (j(Dt, st) && !Dt.originControlId && Dt.control?.type)
|
|
6748
6748
|
return Dt.control.type;
|
|
6749
6749
|
if (Dt.controlId && Dt.controlId !== st && Dt.originControlId !== st)
|
|
6750
6750
|
break;
|
|
6751
6751
|
}
|
|
6752
|
-
for (let gt = k + 1; gt <
|
|
6753
|
-
const Dt =
|
|
6752
|
+
for (let gt = k + 1; gt < v.length; gt++) {
|
|
6753
|
+
const Dt = v[gt];
|
|
6754
6754
|
if (j(Dt, st) && !Dt.originControlId && Dt.control?.type)
|
|
6755
6755
|
return Dt.control.type;
|
|
6756
6756
|
if (Dt.controlId && Dt.controlId !== st && Dt.originControlId !== st)
|
|
6757
6757
|
break;
|
|
6758
6758
|
}
|
|
6759
6759
|
}
|
|
6760
|
-
}, At = (
|
|
6760
|
+
}, At = (v, k) => !!(G && v?.controlId && !v.originControlId && Yt(y, k, v.controlId) === b.TEXTFIELD), Ne = (v, k) => !!(G && v?.controlId && !v.originControlId && (Yt(y, k, v.controlId) === b.TEXT || Yt(y, k, v.controlId) === b.NUMBER)), ce = W[V], Le = y[V - 1], it = y[V + 1], q = 6, J = [
|
|
6761
6761
|
b.SELECT,
|
|
6762
6762
|
b.DATE,
|
|
6763
6763
|
b.BUTTON
|
|
6764
|
-
], z = (
|
|
6765
|
-
if (
|
|
6766
|
-
return
|
|
6767
|
-
if (
|
|
6764
|
+
], z = (v, k) => !!(v?.controlId && v.controlId === k?.controlId && (v.originControlId || null) === (k.originControlId || null)), at = (v, k) => {
|
|
6765
|
+
if (v?.control?.type)
|
|
6766
|
+
return v.control.type;
|
|
6767
|
+
if (v?.controlId) {
|
|
6768
6768
|
for (let st = k; st >= 0; st--) {
|
|
6769
6769
|
const gt = y[st];
|
|
6770
|
-
if (!z(
|
|
6770
|
+
if (!z(v, gt))
|
|
6771
6771
|
break;
|
|
6772
6772
|
if (gt.control?.type)
|
|
6773
6773
|
return gt.control.type;
|
|
6774
6774
|
}
|
|
6775
6775
|
for (let st = k + 1; st < y.length; st++) {
|
|
6776
6776
|
const gt = y[st];
|
|
6777
|
-
if (!z(
|
|
6777
|
+
if (!z(v, gt))
|
|
6778
6778
|
break;
|
|
6779
6779
|
if (gt.control?.type)
|
|
6780
6780
|
return gt.control.type;
|
|
6781
6781
|
}
|
|
6782
6782
|
}
|
|
6783
|
-
}, tt = (
|
|
6784
|
-
const st = at(
|
|
6783
|
+
}, tt = (v, k) => {
|
|
6784
|
+
const st = at(v, k);
|
|
6785
6785
|
return !!(st && J.includes(st));
|
|
6786
|
-
}, Rt = (
|
|
6787
|
-
if (!
|
|
6786
|
+
}, Rt = (v) => !!(v && (v.controlComponent === R.POSTFIX || v.controlComponent === R.POST_TEXT || v.controlComponent === R.POSTTEXTFIX || v.controlComponent === R.POSTTEXTFIX_TEXT)), ft = (v) => !!(v && (v.controlComponent === R.PREFIX || v.controlComponent === R.PRE_TEXT || v.controlComponent === R.PRETEXTFIX || v.controlComponent === R.PRETEXTFIX_TEXT)), xt = (v, k) => {
|
|
6787
|
+
if (!v?.controlId)
|
|
6788
6788
|
return -1;
|
|
6789
6789
|
for (let st = k; st >= 0; st--) {
|
|
6790
6790
|
const gt = y[st];
|
|
6791
|
-
if (!z(
|
|
6791
|
+
if (!z(v, gt))
|
|
6792
6792
|
break;
|
|
6793
6793
|
if (gt.controlComponent === R.VALUE)
|
|
6794
6794
|
return st;
|
|
6795
6795
|
}
|
|
6796
6796
|
for (let st = k + 1; st < y.length; st++) {
|
|
6797
6797
|
const gt = y[st];
|
|
6798
|
-
if (!z(
|
|
6798
|
+
if (!z(v, gt))
|
|
6799
6799
|
break;
|
|
6800
6800
|
if (gt.controlComponent === R.VALUE)
|
|
6801
6801
|
return st;
|
|
6802
6802
|
}
|
|
6803
6803
|
return -1;
|
|
6804
|
-
}, Xt = (
|
|
6805
|
-
if (!
|
|
6804
|
+
}, Xt = (v, k) => {
|
|
6805
|
+
if (!v)
|
|
6806
6806
|
return !1;
|
|
6807
|
-
if (
|
|
6807
|
+
if (v.controlComponent === R.VALUE || v.controlComponent === R.PLACEHOLDER)
|
|
6808
6808
|
return !0;
|
|
6809
|
-
const st = at(
|
|
6810
|
-
return !!(gt && Dt &&
|
|
6811
|
-
}, Vt = (
|
|
6812
|
-
const k = W[
|
|
6809
|
+
const st = at(v, k), gt = st === b.SELECT || st === b.DATE, Dt = v.controlComponent === R.PRE_TEXT || v.controlComponent === R.PRETEXTFIX_TEXT || v.controlComponent === R.TEXTFIXLABEL;
|
|
6810
|
+
return !!(gt && Dt && v.value && xt(v, k) === -1);
|
|
6811
|
+
}, Vt = (v) => {
|
|
6812
|
+
const k = W[v];
|
|
6813
6813
|
if (!k)
|
|
6814
6814
|
return !1;
|
|
6815
6815
|
const { coordinate: { leftTop: st, rightTop: gt, leftBottom: Dt } } = k;
|
|
6816
6816
|
return o.offsetX >= st[0] && o.offsetX < gt[0] && o.offsetY >= st[1] && o.offsetY <= Dt[1];
|
|
6817
|
-
}, Ft = (
|
|
6818
|
-
if (e.getMode() !== K.EDIT || !
|
|
6817
|
+
}, Ft = (v, k) => {
|
|
6818
|
+
if (e.getMode() !== K.EDIT || !v?.originControlId || v.controlComponent !== R.VALUE || at(v, k) !== b.BUTTON || v.control?.buttonText || Yt(y, k, v.originControlId) !== b.TEXTFIELD || !Vt(k))
|
|
6819
6819
|
return !1;
|
|
6820
6820
|
let st = -1;
|
|
6821
|
-
for (let
|
|
6822
|
-
const gn = y[
|
|
6823
|
-
if (!z(
|
|
6821
|
+
for (let Zn = k; Zn < y.length; Zn++) {
|
|
6822
|
+
const gn = y[Zn];
|
|
6823
|
+
if (!z(v, gn))
|
|
6824
6824
|
break;
|
|
6825
|
-
const je = W[
|
|
6826
|
-
gn.controlComponent === R.VALUE && je && je.coordinate.rightTop[0] > je.coordinate.leftTop[0] && (st =
|
|
6825
|
+
const je = W[Zn];
|
|
6826
|
+
gn.controlComponent === R.VALUE && je && je.coordinate.rightTop[0] > je.coordinate.leftTop[0] && (st = Zn);
|
|
6827
6827
|
}
|
|
6828
6828
|
if (st === -1)
|
|
6829
6829
|
return !1;
|
|
6830
6830
|
const gt = W[st], { coordinate: { leftTop: Dt, rightTop: te, leftBottom: Gt } } = gt;
|
|
6831
6831
|
return o.offsetX >= Dt[0] - 2 && o.offsetX <= te[0] && o.offsetY >= Dt[1] && o.offsetY <= Gt[1];
|
|
6832
|
-
}, Ut = (
|
|
6832
|
+
}, Ut = (v, k) => !(!g || !tt(v, k) || !Vt(k) || Ft(v, k) || !Xt(v, k) || Rt(v) || ft(v) && !v?.value), wt = () => [
|
|
6833
6833
|
h.isTable ? h.tdValueIndex : h.index,
|
|
6834
6834
|
V,
|
|
6835
6835
|
V + 1,
|
|
@@ -6839,59 +6839,59 @@ function gu(o, t) {
|
|
|
6839
6839
|
].filter((k, st, gt) => typeof k == "number" && k >= 0 && k < y.length && gt.indexOf(k) === st), se = () => {
|
|
6840
6840
|
if (!g)
|
|
6841
6841
|
return null;
|
|
6842
|
-
for (const
|
|
6843
|
-
const k = y[
|
|
6844
|
-
if (Ut(k,
|
|
6845
|
-
return { element: k, index:
|
|
6842
|
+
for (const v of wt()) {
|
|
6843
|
+
const k = y[v];
|
|
6844
|
+
if (Ut(k, v))
|
|
6845
|
+
return { element: k, index: v };
|
|
6846
6846
|
}
|
|
6847
6847
|
return null;
|
|
6848
6848
|
}, mt = () => {
|
|
6849
6849
|
if (!g)
|
|
6850
6850
|
return -1;
|
|
6851
|
-
for (const
|
|
6852
|
-
if (Ft(y[
|
|
6853
|
-
return
|
|
6851
|
+
for (const v of wt())
|
|
6852
|
+
if (Ft(y[v], v))
|
|
6853
|
+
return v;
|
|
6854
6854
|
return -1;
|
|
6855
|
-
}, Tt = (
|
|
6856
|
-
const k = y[
|
|
6857
|
-
let st =
|
|
6858
|
-
for (let gt =
|
|
6855
|
+
}, Tt = (v) => {
|
|
6856
|
+
const k = y[v];
|
|
6857
|
+
let st = v;
|
|
6858
|
+
for (let gt = v + 1; gt < y.length && z(k, y[gt]); gt++)
|
|
6859
6859
|
st = gt;
|
|
6860
6860
|
return st;
|
|
6861
|
-
},
|
|
6862
|
-
const k = y[
|
|
6863
|
-
if (!Ce(k) || at(k,
|
|
6864
|
-
return
|
|
6865
|
-
let st =
|
|
6866
|
-
for (let gt =
|
|
6861
|
+
}, vt = (v) => {
|
|
6862
|
+
const k = y[v];
|
|
6863
|
+
if (!Ce(k) || at(k, v) !== b.BUTTON || k.control?.buttonText || k.control?.editable === !1)
|
|
6864
|
+
return v;
|
|
6865
|
+
let st = v;
|
|
6866
|
+
for (let gt = v + 1; gt < y.length; gt++) {
|
|
6867
6867
|
const Dt = y[gt];
|
|
6868
6868
|
if (!z(k, Dt) || !Ce(Dt))
|
|
6869
6869
|
break;
|
|
6870
6870
|
st = gt;
|
|
6871
6871
|
}
|
|
6872
6872
|
return st;
|
|
6873
|
-
}, bt = wt().some((
|
|
6874
|
-
const k = y[
|
|
6875
|
-
if (!st || !Ne(k,
|
|
6873
|
+
}, bt = wt().some((v) => tt(y[v], v)), Nt = se(), yt = mt(), $t = (v) => (v?.control?.type === b.TEXTFIELD || v?.control?.type === b.TEXT) && (v.controlComponent === R.POSTFIX || v.controlComponent === R.POST_TEXT || v.controlComponent === R.POSTTEXTFIX || v.controlComponent === R.POSTTEXTFIX_TEXT), Te = (v) => v?.type === P.CONTROL && (v.controlComponent === R.POSTFIX || v.controlComponent === R.POST_TEXT || v.controlComponent === R.POSTTEXTFIX || v.controlComponent === R.POSTTEXTFIX_TEXT), Mt = (v) => v?.type === P.CONTROL && (v.controlComponent === R.PREFIX || v.controlComponent === R.PRE_TEXT || v.controlComponent === R.PRETEXTFIX || v.controlComponent === R.PRETEXTFIX_TEXT), lt = (v, k) => !!(e.getMode() === K.EDIT && v?.originControlId && $t(v) && k?.controlId === v.originControlId && !k.originControlId && k.control?.type === b.TEXTFIELD && $t(k)), _t = (v, k) => !!(e.getMode() === K.EDIT && v?.originControlId && $t(v) && k?.controlId === v.originControlId && !k.originControlId && k.control?.type === b.TEXTFIELD && k.controlComponent === R.VALUE), Bt = (v, k, st) => !!(e.getMode() === K.EDIT && v?.originControlId && st?.originControlId === v.originControlId && v.controlId && st.controlId && v.controlId !== st.controlId && Te(v) && Mt(st) && Yt(y, k, v.originControlId) === b.TEXTFIELD), It = lt(C, it), Ct = _t(C, it), Ot = Bt(C, V, it), rt = Bt(Le, V - 1, C), ot = !!(e.getMode() === K.EDIT && m && g && $t(C) && !It && !Ct && !Ot && Le?.controlId === C.controlId && (Le.originControlId || null) === (C.originControlId || null) && (Le.controlComponent === R.VALUE || Le.controlComponent === R.PLACEHOLDER)), qt = (v, k, st) => !!(G && H(v) && Yt(y, k, v?.originControlId) === st && (st === b.TEXTFIELD ? At(y[k + 1], k + 1) : Ne(y[k + 1], k + 1))), Pe = (v, k, st) => !!(G && Y(v) && Yt(y, k, v?.originControlId) === st && (st === b.TEXTFIELD ? At(y[k - 1], k - 1) : Ne(y[k - 1], k - 1))), De = qt(C, V, b.TEXTFIELD), ne = !!(G && ce && At(C, V) && qt(Le, V - 1, b.TEXTFIELD) && o.offsetX <= ce.coordinate.leftTop[0] + q), re = !!(G && ce && At(C, V) && Pe(it, V + 1, b.TEXTFIELD) && o.offsetX >= ce.coordinate.rightTop[0] - q), qn = !!(G && ce && De && o.offsetX > ce.coordinate.rightTop[0]), Fn = !!(G && ce && Y(C) && Yt(y, V, C.originControlId) === b.TEXTFIELD && At(Le, V - 1) && o.offsetX < ce.coordinate.leftTop[0]), Ve = At(C, V) || De || ne || re || qn || Fn, Ke = qt(C, V, b.TEXT), cr = (v) => {
|
|
6874
|
+
const k = y[v], st = w[v];
|
|
6875
|
+
if (!st || !Ne(k, v))
|
|
6876
6876
|
return -1;
|
|
6877
|
-
const gt = y[
|
|
6878
|
-
return !qt(gt,
|
|
6879
|
-
},
|
|
6880
|
-
if (It || Ct || Ot ? nt = V : rt || ot ? nt = Math.max(V - 1, 0) : dr ? nt =
|
|
6881
|
-
nt =
|
|
6882
|
-
const
|
|
6877
|
+
const gt = y[v - 1];
|
|
6878
|
+
return !qt(gt, v - 1, b.TEXT) || o.offsetX > st.coordinate.leftTop[0] + q ? -1 : v - 1;
|
|
6879
|
+
}, Zi = cr(V), ur = cr(V - 1), dr = Zi !== -1 || ur !== -1, hr = !!(G && ce && Y(C) && Yt(y, V, C.originControlId) === b.TEXT && Ne(Le, V - 1) && o.offsetX < ce.coordinate.leftTop[0]), ya = !!(G && ce && Ne(C, V) && Pe(it, V + 1, b.TEXT) && o.offsetX >= ce.coordinate.rightTop[0] - q), Va = Ke || dr || hr || ya;
|
|
6880
|
+
if (It || Ct || Ot ? nt = V : rt || ot ? nt = Math.max(V - 1, 0) : dr ? nt = Zi !== -1 ? Zi : ur : hr && (nt = Math.max(V - 1, 0)), Nt) {
|
|
6881
|
+
nt = vt(Nt.index);
|
|
6882
|
+
const v = s.getPositionContext();
|
|
6883
6883
|
s.setPositionContext({
|
|
6884
|
-
...
|
|
6884
|
+
...v,
|
|
6885
6885
|
// 表格上下文的 index 指向顶层表格,单元格内索引只用于 range。
|
|
6886
|
-
index:
|
|
6886
|
+
index: v.isTable ? v.index : nt,
|
|
6887
6887
|
isControl: !0,
|
|
6888
6888
|
isDirectHit: !0
|
|
6889
6889
|
});
|
|
6890
6890
|
} else yt !== -1 ? nt = Tt(yt) : tt(C, V) && ce && !Vt(V) && o.offsetX > ce.coordinate.rightTop[0] && (nt = Tt(V));
|
|
6891
6891
|
let Rr = !1;
|
|
6892
6892
|
if (G && B?.parentControlId && C?.controlId === B.parentControlId && !C?.originControlId)
|
|
6893
|
-
for (let
|
|
6894
|
-
const k = N[
|
|
6893
|
+
for (let v = V; v >= 0; v--) {
|
|
6894
|
+
const k = N[v];
|
|
6895
6895
|
if (j(k, B.parentControlId)) {
|
|
6896
6896
|
k.control?.type === b.TEXTFIELD && (Rr = !0);
|
|
6897
6897
|
break;
|
|
@@ -6901,21 +6901,21 @@ function gu(o, t) {
|
|
|
6901
6901
|
}
|
|
6902
6902
|
const gr = !!(B && (!C?.controlId || C.controlId === B.controlId && (C.originControlId || null) === B.originControlId || B.parentControlId && C.controlId === B.parentControlId && !C.originControlId && Rr));
|
|
6903
6903
|
if (G && !A && (C?.controlId || C?.originControlId)) {
|
|
6904
|
-
let
|
|
6904
|
+
let v;
|
|
6905
6905
|
const k = C.originControlId || C.controlId;
|
|
6906
6906
|
for (let st = V; st >= 0; st--) {
|
|
6907
6907
|
const gt = N[st];
|
|
6908
6908
|
if (j(gt, k) && gt.control?.type) {
|
|
6909
|
-
|
|
6909
|
+
v = gt.control.type;
|
|
6910
6910
|
break;
|
|
6911
6911
|
}
|
|
6912
6912
|
if (gt.controlId !== C.controlId && gt.controlId !== k)
|
|
6913
6913
|
break;
|
|
6914
6914
|
}
|
|
6915
|
-
if (
|
|
6916
|
-
if (
|
|
6915
|
+
if (v !== b.TEXT) {
|
|
6916
|
+
if (v === b.TEXTFIELD) {
|
|
6917
6917
|
const st = C.controlComponent;
|
|
6918
|
-
if (!
|
|
6918
|
+
if (!Z(C)) {
|
|
6919
6919
|
if (!(C.controlComponent === R.VALUE && Q(C))) {
|
|
6920
6920
|
if (st === R.PRETEXTFIX || st === R.PRETEXTFIX_TEXT || st === R.POSTTEXTFIX || st === R.POSTTEXTFIX_TEXT || st === R.TEXTFIXLABEL || st === R.PREFIX || st === R.POSTFIX || st === R.PRE_TEXT || st === R.POST_TEXT || st === R.PLACEHOLDER)
|
|
6921
6921
|
for (let gt = V + 1; gt < N.length; gt++) {
|
|
@@ -6977,16 +6977,16 @@ function gu(o, t) {
|
|
|
6977
6977
|
});
|
|
6978
6978
|
else if (~f && !i) {
|
|
6979
6979
|
gr && (nt = Math.min(Math.max(nt, B.startIndex), B.endIndex));
|
|
6980
|
-
let
|
|
6980
|
+
let v = nt, k = nt;
|
|
6981
6981
|
if (o.shiftKey) {
|
|
6982
6982
|
const { startIndex: Dt } = r.getRange();
|
|
6983
|
-
~Dt && s.getPositionContext().tdId === u.tdId && (V > Dt ?
|
|
6983
|
+
~Dt && s.getPositionContext().tdId === u.tdId && (V > Dt ? v = Dt : k = Dt);
|
|
6984
6984
|
}
|
|
6985
|
-
gr && (
|
|
6985
|
+
gr && (v = Math.min(Math.max(v, B.startIndex), B.endIndex), k = Math.min(Math.max(k, B.startIndex), B.endIndex), nt = Math.min(Math.max(nt, B.startIndex), B.endIndex));
|
|
6986
6986
|
const st = e.getControl(), gt = !!Nt;
|
|
6987
|
-
st.setPopupAwakeDisabled(o.button === Kn.RIGHT ||
|
|
6987
|
+
st.setPopupAwakeDisabled(o.button === Kn.RIGHT || Va && !gt || bt && !gt);
|
|
6988
6988
|
try {
|
|
6989
|
-
r.setRange(
|
|
6989
|
+
r.setRange(v, k);
|
|
6990
6990
|
} finally {
|
|
6991
6991
|
st.setPopupAwakeDisabled(!1);
|
|
6992
6992
|
}
|
|
@@ -7041,9 +7041,9 @@ function gu(o, t) {
|
|
|
7041
7041
|
}
|
|
7042
7042
|
je && (Gt = !1);
|
|
7043
7043
|
}
|
|
7044
|
-
const _o = Gt && Q(C),
|
|
7044
|
+
const _o = Gt && Q(C), Zn = x && !_o ? nt : void 0;
|
|
7045
7045
|
e.render({
|
|
7046
|
-
curIndex: x && !_o ?
|
|
7046
|
+
curIndex: x && !_o ? Zn : nt,
|
|
7047
7047
|
isCompute: !1,
|
|
7048
7048
|
isSubmitHistory: !1,
|
|
7049
7049
|
isSetCursor: !X && !D && !E && !(te && G) && !_o
|
|
@@ -7063,13 +7063,13 @@ function gu(o, t) {
|
|
|
7063
7063
|
evt: o,
|
|
7064
7064
|
element: C
|
|
7065
7065
|
}), x && (C.type === P.MACRO || C.type === P.CUSTOM_MACRO || C.type === P.REUSABLE_ITEM)) {
|
|
7066
|
-
const
|
|
7067
|
-
if (
|
|
7066
|
+
const v = e.getMode();
|
|
7067
|
+
if (v === K.EDIT && C.type === P.CUSTOM_MACRO)
|
|
7068
7068
|
ze.isSubscribe("macroClick") && ze.emit("macroClick", {
|
|
7069
7069
|
evt: o,
|
|
7070
7070
|
element: C
|
|
7071
7071
|
});
|
|
7072
|
-
else if (
|
|
7072
|
+
else if (v === K.FORM && o.button === Kn.LEFT) {
|
|
7073
7073
|
let k = !1;
|
|
7074
7074
|
(C.type === P.CUSTOM_MACRO || C.type === P.REUSABLE_ITEM) && (o.preventDefault(), k = e.getMacroParticle().activateInlineEditor(C, V, o.offsetX)), !k && ze.isSubscribe("macroValueChange") && ze.emit("macroValueChange", {
|
|
7075
7075
|
evt: o,
|
|
@@ -7084,11 +7084,11 @@ function gu(o, t) {
|
|
|
7084
7084
|
const fr = e.getPreviewer();
|
|
7085
7085
|
if (fr.clearResizer(), X) {
|
|
7086
7086
|
if (!e.isPrintLikeMode()) {
|
|
7087
|
-
const
|
|
7087
|
+
const v = {
|
|
7088
7088
|
// 只读或控件外表单模式禁用拖拽
|
|
7089
7089
|
dragDisable: n || !C.controlId && e.getMode() === K.FORM
|
|
7090
7090
|
};
|
|
7091
|
-
C.type === P.LATEX && (
|
|
7091
|
+
C.type === P.LATEX && (v.mime = "svg", v.srcKey = "laTexSVG"), fr.drawResizer(C, w[V], v), e.getCursor().drawCursor({
|
|
7092
7092
|
isShow: !1
|
|
7093
7093
|
}), Fr(t), (C.imgDisplay === Et.SURROUND || C.imgDisplay === Et.FLOAT_TOP || C.imgDisplay === Et.FLOAT_BOTTOM) && e.getImageParticle().createFloatImage(C);
|
|
7094
7094
|
}
|
|
@@ -7099,8 +7099,8 @@ function gu(o, t) {
|
|
|
7099
7099
|
}
|
|
7100
7100
|
const pr = e.getTableTool();
|
|
7101
7101
|
pr.dispose(), S && !n && pr.render();
|
|
7102
|
-
const
|
|
7103
|
-
|
|
7102
|
+
const vi = e.getHyperlinkParticle();
|
|
7103
|
+
vi.clearHyperlinkPopup(), C.type === P.HYPERLINK && (sn(o) ? vi.openHyperlink(C) : vi.drawHyperlinkPopup(C, w[V]));
|
|
7104
7104
|
const Tr = e.getDateParticle();
|
|
7105
7105
|
Tr.clearDatePicker(), C.type === P.DATE && !n && Tr.renderDatePicker(C, w[V]), e.getMenstrualHistoryParticle().clearMenstrualHistoryEditor(), e.getFetalHeartPositionParticle().clearFetalHeartPositionEditor(), e.getToothPositionParticle().clearToothPositionEditor();
|
|
7106
7106
|
}
|
|
@@ -7211,9 +7211,9 @@ function fu(o, t) {
|
|
|
7211
7211
|
}
|
|
7212
7212
|
A && e.spliceElementList(a, E + 1, U - E);
|
|
7213
7213
|
}
|
|
7214
|
-
const Q = L[h.startIndex],
|
|
7214
|
+
const Q = L[h.startIndex], Z = i[h.startIndex];
|
|
7215
7215
|
let H = r.index;
|
|
7216
|
-
H && (Q.tableId && !M.tableId ? F.index < H && (H -= V) : !Q.tableId && M.tableId &&
|
|
7216
|
+
H && (Q.tableId && !M.tableId ? F.index < H && (H -= V) : !Q.tableId && M.tableId && Z.index < H && (H += V), n.setPositionContext({
|
|
7217
7217
|
...r,
|
|
7218
7218
|
index: H
|
|
7219
7219
|
}));
|
|
@@ -7258,7 +7258,7 @@ function Tu(o, t) {
|
|
|
7258
7258
|
...a,
|
|
7259
7259
|
isTable: !0,
|
|
7260
7260
|
index: a.index
|
|
7261
|
-
}) : null, E = a.isTable && D?.value || e.getElementList(), U = a.isTable && D?.positionList || l.getPositionList(), x = a.isTable ? a.tdValueIndex : a.index, Q = e.getMode(),
|
|
7261
|
+
}) : null, E = a.isTable && D?.value || e.getElementList(), U = a.isTable && D?.positionList || l.getPositionList(), x = a.isTable ? a.tdValueIndex : a.index, Q = e.getMode(), Z = Q === K.EDIT || Q === K.FORM, H = [
|
|
7262
7262
|
x,
|
|
7263
7263
|
x + 1,
|
|
7264
7264
|
x - 1,
|
|
@@ -7270,7 +7270,7 @@ function Tu(o, t) {
|
|
|
7270
7270
|
return !1;
|
|
7271
7271
|
const { coordinate: { leftTop: nt, rightTop: j, leftBottom: Yt } } = B;
|
|
7272
7272
|
return j[0] > nt[0] && o.offsetX >= nt[0] && o.offsetX < j[0] && o.offsetY >= nt[1] && o.offsetY <= Yt[1];
|
|
7273
|
-
}, $ =
|
|
7273
|
+
}, $ = Z && H.some((A) => {
|
|
7274
7274
|
const nt = E[A]?.control?.type;
|
|
7275
7275
|
return nt !== b.SELECT && nt !== b.DATE ? !1 : Y(A);
|
|
7276
7276
|
}), G = H.some((A) => {
|
|
@@ -7291,9 +7291,9 @@ function Tu(o, t) {
|
|
|
7291
7291
|
if (D >= Y[0] && D <= $[0] && E >= Y[1] && E <= $[1])
|
|
7292
7292
|
return;
|
|
7293
7293
|
}
|
|
7294
|
-
const
|
|
7295
|
-
if (
|
|
7296
|
-
const H = t.cacheElementList[
|
|
7294
|
+
const Z = t.cacheRange?.startIndex;
|
|
7295
|
+
if (Z) {
|
|
7296
|
+
const H = t.cacheElementList[Z];
|
|
7297
7297
|
H?.type === P.IMAGE && (H.imgDisplay === Et.SURROUND || H.imgDisplay === Et.FLOAT_TOP || H.imgDisplay === Et.FLOAT_BOTTOM) && (e.getPreviewer().clearResizer(), e.getImageParticle().dragFloatImage(o.movementX, o.movementY));
|
|
7298
7298
|
}
|
|
7299
7299
|
t.dragover(o), t.isAllowDrop = !0;
|
|
@@ -7418,16 +7418,16 @@ function Tu(o, t) {
|
|
|
7418
7418
|
}
|
|
7419
7419
|
}
|
|
7420
7420
|
}
|
|
7421
|
-
let
|
|
7421
|
+
let Z;
|
|
7422
7422
|
if (X) {
|
|
7423
7423
|
const [H, Y] = X.sort(($, G) => $.index - G.index);
|
|
7424
|
-
|
|
7424
|
+
Z = {
|
|
7425
7425
|
originalId: X[0].originalId ?? X[1].originalId,
|
|
7426
7426
|
startIndex: H.index,
|
|
7427
7427
|
endIndex: Y.index
|
|
7428
|
-
}, H.isCurrent ? (E = H.index, D = H.length - 1) : (E = 0, D =
|
|
7428
|
+
}, H.isCurrent ? (E = H.index, D = H.length - 1) : (E = 0, D = Z.endIndex - Y.startIndex);
|
|
7429
7429
|
}
|
|
7430
|
-
W.setRange(E, D, void 0, void 0, void 0, void 0, void 0,
|
|
7430
|
+
W.setRange(E, D, void 0, void 0, void 0, void 0, void 0, Z);
|
|
7431
7431
|
}
|
|
7432
7432
|
e.render({
|
|
7433
7433
|
isSubmitHistory: !1,
|
|
@@ -7471,7 +7471,7 @@ function Iu(o, t) {
|
|
|
7471
7471
|
}
|
|
7472
7472
|
return null;
|
|
7473
7473
|
}
|
|
7474
|
-
function
|
|
7474
|
+
function bl(o, t, e) {
|
|
7475
7475
|
const n = o[t];
|
|
7476
7476
|
n.subTemplateExpanded = !1, n.hide = !1;
|
|
7477
7477
|
let i = t + 1;
|
|
@@ -7488,7 +7488,7 @@ function mu(o) {
|
|
|
7488
7488
|
for (; s > 0; ) {
|
|
7489
7489
|
const l = i[s];
|
|
7490
7490
|
if (l.type === P.SUB_TEMPLATE && l.subTemplateExpanded) {
|
|
7491
|
-
const u =
|
|
7491
|
+
const u = bl(i, s, t);
|
|
7492
7492
|
n.startIndex = u, n.endIndex = u, e.replaceRange(n);
|
|
7493
7493
|
const h = t.getPosition(), d = h.getPositionList();
|
|
7494
7494
|
h.setCursorPosition(d[u]);
|
|
@@ -7563,7 +7563,7 @@ function Pu(o, t) {
|
|
|
7563
7563
|
if (h?.subTemplateParentId) {
|
|
7564
7564
|
const X = Iu(c, r - 1);
|
|
7565
7565
|
if (X) {
|
|
7566
|
-
const D =
|
|
7566
|
+
const D = bl(c, X.labelIndex, e);
|
|
7567
7567
|
e.getGlobalEvent().setCanvasEventAbility(), n.setRange(D, D), e.render({
|
|
7568
7568
|
curIndex: D
|
|
7569
7569
|
});
|
|
@@ -7728,7 +7728,7 @@ function Pu(o, t) {
|
|
|
7728
7728
|
curIndex: a
|
|
7729
7729
|
}));
|
|
7730
7730
|
}
|
|
7731
|
-
function
|
|
7731
|
+
function yl(o, t, e) {
|
|
7732
7732
|
const n = o[t];
|
|
7733
7733
|
n.subTemplateExpanded = !1, n.hide = !1;
|
|
7734
7734
|
let i = t + 1;
|
|
@@ -7745,7 +7745,7 @@ function Eu(o) {
|
|
|
7745
7745
|
for (; s < i.length; ) {
|
|
7746
7746
|
const l = i[s];
|
|
7747
7747
|
if (l.type === P.SUB_TEMPLATE && l.subTemplateExpanded) {
|
|
7748
|
-
|
|
7748
|
+
yl(i, s, t);
|
|
7749
7749
|
return;
|
|
7750
7750
|
}
|
|
7751
7751
|
let a = null;
|
|
@@ -7792,7 +7792,7 @@ function Ou(o, t) {
|
|
|
7792
7792
|
break;
|
|
7793
7793
|
}
|
|
7794
7794
|
}
|
|
7795
|
-
d !== -1 ? u =
|
|
7795
|
+
d !== -1 ? u = yl(a, d, e) : u = null;
|
|
7796
7796
|
} else {
|
|
7797
7797
|
e.removeSplitTdOtherRangeElements();
|
|
7798
7798
|
const h = e.getPosition(), d = h.getCursorPosition();
|
|
@@ -8129,10 +8129,10 @@ function Du(o, t) {
|
|
|
8129
8129
|
else {
|
|
8130
8130
|
const x = e.getOriginalElementList()[a.index].trList;
|
|
8131
8131
|
t: for (let Q = 0; Q < x.length; Q++) {
|
|
8132
|
-
const
|
|
8133
|
-
if (
|
|
8132
|
+
const Z = x[Q];
|
|
8133
|
+
if (Z.id !== W.trId)
|
|
8134
8134
|
continue;
|
|
8135
|
-
const H =
|
|
8135
|
+
const H = Z.tdList;
|
|
8136
8136
|
for (let Y = 0; Y < H.length; Y++)
|
|
8137
8137
|
if (H[Y].id === W.tdId) {
|
|
8138
8138
|
if (Q === x.length - 1 && Y === H.length - 1)
|
|
@@ -8367,8 +8367,8 @@ function Fu(o, t) {
|
|
|
8367
8367
|
for (let E = 0; E < D.length; E++) {
|
|
8368
8368
|
const U = D[E], x = U.x * F + N[3], Q = U.width * F;
|
|
8369
8369
|
if (T >= x && T <= x + Q) {
|
|
8370
|
-
const
|
|
8371
|
-
positionList:
|
|
8370
|
+
const Z = U.positionList, H = Z[Z.length - 1], Y = Bi({
|
|
8371
|
+
positionList: Z,
|
|
8372
8372
|
index: H.index + 1,
|
|
8373
8373
|
rowNo: H.rowNo - 1,
|
|
8374
8374
|
isUp: u,
|
|
@@ -8385,8 +8385,8 @@ function Fu(o, t) {
|
|
|
8385
8385
|
for (let E = 0; E < D.length; E++) {
|
|
8386
8386
|
const U = D[E], x = U.x * F + N[3], Q = U.width * F;
|
|
8387
8387
|
if (T >= x && T <= x + Q) {
|
|
8388
|
-
const
|
|
8389
|
-
positionList:
|
|
8388
|
+
const Z = U.positionList, H = Bi({
|
|
8389
|
+
positionList: Z,
|
|
8390
8390
|
index: -1,
|
|
8391
8391
|
rowNo: -1,
|
|
8392
8392
|
isUp: u,
|
|
@@ -8569,14 +8569,14 @@ function Xn(o, t, e) {
|
|
|
8569
8569
|
function fn(o, t) {
|
|
8570
8570
|
return !!o && !!t && o.controlId === t;
|
|
8571
8571
|
}
|
|
8572
|
-
function
|
|
8572
|
+
function Vl(o, t) {
|
|
8573
8573
|
if (t)
|
|
8574
8574
|
return o.find((e) => e.controlId === t && !e.originControlId && !!e.control?.type);
|
|
8575
8575
|
}
|
|
8576
8576
|
function Vr(o, t, e) {
|
|
8577
8577
|
if (!t?.originControlId || e?.originControlId !== t.originControlId || !t.controlId || !e.controlId || t.controlId === e.controlId || !_e(t) || !mi(e))
|
|
8578
8578
|
return;
|
|
8579
|
-
const n =
|
|
8579
|
+
const n = Vl(o, t.originControlId);
|
|
8580
8580
|
if (n?.control?.type === b.TEXTFIELD)
|
|
8581
8581
|
return n;
|
|
8582
8582
|
}
|
|
@@ -8669,10 +8669,10 @@ function Ps(o, t, e = "input") {
|
|
|
8669
8669
|
const V = g.getDefaultStyle() || t.compositionInfo?.defaultStyle || null, C = t.compositionInfo?.perfStartTime, y = wu(t, i.getElementList());
|
|
8670
8670
|
f || i.getCursor().clearAgentDomValue();
|
|
8671
8671
|
const { TEXT: W, HYPERLINK: X, SUBSCRIPT: D, SUPERSCRIPT: E, DATE: U, TAB: x } = P, Q = o.replaceAll(`
|
|
8672
|
-
`, _), { startIndex:
|
|
8672
|
+
`, _), { startIndex: Z, endIndex: H } = g.getRange(), Y = g.getRangeAnchorStyle(y, Z);
|
|
8673
8673
|
if (!Y)
|
|
8674
8674
|
return;
|
|
8675
|
-
const $ =
|
|
8675
|
+
const $ = Z > 0 ? y[Z - 1] : null, G = !!(Y.controlId || Y.control), B = {
|
|
8676
8676
|
...!G && $ ? $ : Y,
|
|
8677
8677
|
...V
|
|
8678
8678
|
}, nt = i.isDesignMode(), j = y[H + 1], Yt = Xn(y, Y.originControlId, i.getMode()), At = Xn(y, j?.originControlId, i.getMode()), Ne = !Y.originControlId && !j?.originControlId && _e(Y) && mi(j) && !!Y.controlId && !!j.controlId && Y.controlId !== j.controlId, ce = Oo(Y) && Gi(j) && !Yt && !At, Le = i.getMode() === K.EDIT ? Vr(y, Y, j) : void 0, it = !!Y.originControlId && _e(Y) && j?.controlId === Y.originControlId && !j.originControlId && j.control?.type === b.TEXTFIELD && _e(j), q = !!Y.originControlId && _e(Y) && j?.controlId === Y.originControlId && !j.originControlId && j.control?.type === b.TEXTFIELD && j.controlComponent === R.VALUE, z = !!Yt && Yt === At && !!Y.controlId && !!j?.controlId && Y.controlId !== j.controlId && (Oo(Y) || Gi(j)) ? Yt : null;
|
|
@@ -8710,7 +8710,7 @@ function Ps(o, t, e = "input") {
|
|
|
8710
8710
|
for (let Bt = Mt + 1; Bt < y.length && ft(lt, y[Bt]); Bt++)
|
|
8711
8711
|
_t = Bt;
|
|
8712
8712
|
return _t;
|
|
8713
|
-
}, Ft = !!(Xt(Y,
|
|
8713
|
+
}, Ft = !!(Xt(Y, Z) && Y.controlComponent === R.VALUE && !Y.originControlId && ft(Y, j) && _e(j) && !j?.value), wt = !!((Xt(Y, Z) || xt(Y, Z) === b.NUMBER) && Y.controlComponent === R.VALUE && Y.originControlId && ft(Y, j) && _e(j)) ? Xn(y, Y.originControlId, i.getMode()) : null, se = Vl(y, wt), mt = at || tt || Ft, Tt = mt ? {
|
|
8714
8714
|
...Y,
|
|
8715
8715
|
type: void 0,
|
|
8716
8716
|
control: void 0,
|
|
@@ -8720,19 +8720,19 @@ function Ps(o, t, e = "input") {
|
|
|
8720
8720
|
// 使用默认颜色而不是继承控件的颜色
|
|
8721
8721
|
color: s.defaultColor,
|
|
8722
8722
|
highlight: void 0
|
|
8723
|
-
} : Y,
|
|
8723
|
+
} : Y, vt = mt || G ? Tt : B, bt = Zt(Q).map((Mt) => {
|
|
8724
8724
|
const lt = {
|
|
8725
8725
|
value: Mt
|
|
8726
8726
|
};
|
|
8727
|
-
if (nt || !
|
|
8727
|
+
if (nt || !vt.title?.disabled && !vt.control?.disabled) {
|
|
8728
8728
|
const _t = y[H + 1];
|
|
8729
|
-
(!
|
|
8729
|
+
(!vt.type || vt.type === W || vt.type === X && _t?.type === X || vt.type === U && _t?.type === U || vt.type === D && _t?.type === D || vt.type === E && _t?.type === E) && oc.forEach((Bt) => {
|
|
8730
8730
|
if (Bt === "groupIds" && !_t?.groupIds)
|
|
8731
8731
|
return;
|
|
8732
|
-
const It =
|
|
8732
|
+
const It = vt[Bt];
|
|
8733
8733
|
It !== void 0 && (lt[Bt] = It);
|
|
8734
|
-
}), (V ||
|
|
8735
|
-
const It = V?.[Bt] ||
|
|
8734
|
+
}), (V || vt.type === x) && Ge.forEach((Bt) => {
|
|
8735
|
+
const It = V?.[Bt] || vt[Bt];
|
|
8736
8736
|
It !== void 0 && (lt[Bt] = It);
|
|
8737
8737
|
}), f && (lt.underline = !0);
|
|
8738
8738
|
}
|
|
@@ -8748,7 +8748,7 @@ function Ps(o, t, e = "input") {
|
|
|
8748
8748
|
if (!Ct)
|
|
8749
8749
|
return lt;
|
|
8750
8750
|
let Ot = null;
|
|
8751
|
-
for (let rt =
|
|
8751
|
+
for (let rt = Z; rt >= 0; rt--) {
|
|
8752
8752
|
const ot = y[rt];
|
|
8753
8753
|
if (fn(ot, Ct) && ot.control) {
|
|
8754
8754
|
Ot = ot.control;
|
|
@@ -8759,7 +8759,7 @@ function Ps(o, t, e = "input") {
|
|
|
8759
8759
|
} else if (Bt && !lt.controlId) {
|
|
8760
8760
|
if (j?.controlId && j.controlId !== Y.controlId)
|
|
8761
8761
|
if (j.controlComponent === R.PREFIX || j.controlComponent === R.PRETEXTFIX)
|
|
8762
|
-
for (let Ct =
|
|
8762
|
+
for (let Ct = Z; Ct >= 0; Ct--) {
|
|
8763
8763
|
const Ot = y[Ct];
|
|
8764
8764
|
if (Ot.controlId === Y.controlId && (Ot.controlComponent === R.PREFIX || Ot.controlComponent === R.PRETEXTFIX)) {
|
|
8765
8765
|
for (let rt = Ct - 1; rt >= 0; rt--) {
|
|
@@ -8776,7 +8776,7 @@ function Ps(o, t, e = "input") {
|
|
|
8776
8776
|
}
|
|
8777
8777
|
else (j.controlComponent === R.POSTFIX || j.controlComponent === R.POSTTEXTFIX) && (lt.controlId = j.controlId, lt.controlComponent = R.VALUE, j.control && (lt.control = j.control));
|
|
8778
8778
|
if (!lt.controlId)
|
|
8779
|
-
for (let Ct =
|
|
8779
|
+
for (let Ct = Z; Ct >= 0; Ct--) {
|
|
8780
8780
|
const Ot = y[Ct];
|
|
8781
8781
|
if (Ot.controlId === Y.controlId && (Ot.controlComponent === R.PREFIX || Ot.controlComponent === R.PRETEXTFIX)) {
|
|
8782
8782
|
for (let rt = Ct - 1; rt >= 0; rt--) {
|
|
@@ -8795,7 +8795,7 @@ function Ps(o, t, e = "input") {
|
|
|
8795
8795
|
const Ct = Y.controlId;
|
|
8796
8796
|
let Ot = Y.control;
|
|
8797
8797
|
if (!Ot)
|
|
8798
|
-
for (let rt =
|
|
8798
|
+
for (let rt = Z; rt >= 0; rt--) {
|
|
8799
8799
|
const ot = y[rt];
|
|
8800
8800
|
if (ot.controlId === Ct && ot.control && (Ot = ot.control, ot.controlComponent === R.PREFIX || ot.controlComponent === R.PRETEXTFIX))
|
|
8801
8801
|
break;
|
|
@@ -8804,7 +8804,7 @@ function Ps(o, t, e = "input") {
|
|
|
8804
8804
|
} else if (Y.controlId) {
|
|
8805
8805
|
let Ct = Y.control;
|
|
8806
8806
|
if (!Ct)
|
|
8807
|
-
for (let Ot =
|
|
8807
|
+
for (let Ot = Z; Ot >= 0; Ot--) {
|
|
8808
8808
|
const rt = y[Ot];
|
|
8809
8809
|
if (fn(rt, Y.controlId) && rt.control) {
|
|
8810
8810
|
Ct = rt.control;
|
|
@@ -8836,14 +8836,14 @@ function Ps(o, t, e = "input") {
|
|
|
8836
8836
|
let Nt;
|
|
8837
8837
|
const yt = l[u], $t = l[u + 1], Te = l[u - 1];
|
|
8838
8838
|
if (f)
|
|
8839
|
-
Nt =
|
|
8839
|
+
Nt = Z;
|
|
8840
8840
|
else {
|
|
8841
8841
|
const Mt = (rt) => {
|
|
8842
8842
|
if (bt?.length)
|
|
8843
8843
|
for (let ot = 0; ot < bt.length; ot++)
|
|
8844
8844
|
y.splice(rt + ot, 0, bt[ot]);
|
|
8845
8845
|
return rt + bt.length - 1;
|
|
8846
|
-
}, lt =
|
|
8846
|
+
}, lt = Z + 1, _t = Ft ? Vt(Z) + 1 : lt, Bt = () => {
|
|
8847
8847
|
let rt = null, ot, qt = null;
|
|
8848
8848
|
const Pe = i.getMode() === K.EDIT ? Vr(l, yt, $t) : void 0;
|
|
8849
8849
|
if (Pe?.controlId ? (rt = Pe.controlId, ot = Pe.control?.type) : i.getMode() === K.EDIT && Oo(yt) && $t?.controlId === yt.originControlId && !$t.originControlId && $t.control?.type === b.TEXTFIELD && ($t.controlComponent === R.VALUE || _e($t)) ? (rt = yt.originControlId, ot = b.TEXTFIELD) : Oo(yt) ? rt = Xn(l, yt.originControlId, i.getMode()) : Gi($t) ? rt = Xn(l, $t.originControlId, i.getMode()) : z ? rt = z : yt?.control?.type === b.TEXT && yt.controlId && !yt.originControlId && _e(yt) && Te?.originControlId === yt.controlId && (rt = yt.controlId, qt = {
|
|
@@ -8883,10 +8883,10 @@ function Ps(o, t, e = "input") {
|
|
|
8883
8883
|
boundaryRange: qt
|
|
8884
8884
|
};
|
|
8885
8885
|
}, It = L?.getElement(), Ct = !!(It?.control?.type === b.BUTTON && !It.control?.buttonText && It.control?.editable !== !1 && r.getIsRangeWithinControl());
|
|
8886
|
-
|
|
8886
|
+
Z !== H && !Ct && (i.removeSplitTdOtherRangeElements(), i.spliceElementList(y, lt, H - Z));
|
|
8887
8887
|
const Ot = Bt();
|
|
8888
8888
|
if (wt && se?.control) {
|
|
8889
|
-
const rt = Vt(
|
|
8889
|
+
const rt = Vt(Z);
|
|
8890
8890
|
bt.forEach((ot) => {
|
|
8891
8891
|
ki(ot, wt, se.control, s.defaultColor);
|
|
8892
8892
|
}), fe(y, bt, rt, {
|
|
@@ -8902,7 +8902,7 @@ function Ps(o, t, e = "input") {
|
|
|
8902
8902
|
startIndex: u,
|
|
8903
8903
|
endIndex: De
|
|
8904
8904
|
} : {
|
|
8905
|
-
startIndex:
|
|
8905
|
+
startIndex: Z,
|
|
8906
8906
|
endIndex: H
|
|
8907
8907
|
});
|
|
8908
8908
|
m(re.startIndex, re.endIndex), Pe && Pe.getElement()?.controlId === rt && (Pe.getElement()?.control?.type === b.TEXT || Pe.getElement()?.control?.type === b.TEXTFIELD) ? (bt.forEach((qn) => {
|
|
@@ -8969,13 +8969,13 @@ function Ps(o, t, e = "input") {
|
|
|
8969
8969
|
}
|
|
8970
8970
|
else if ((yt?.control?.type === b.SELECT || $t?.control?.type === b.SELECT) && L?.getElement()?.control?.type === b.SELECT && r.getIsRangeWithinControl()) {
|
|
8971
8971
|
const rt = r.getActiveControl();
|
|
8972
|
-
rt && typeof rt.awake == "function" && rt.awake(), Nt =
|
|
8972
|
+
rt && typeof rt.awake == "function" && rt.awake(), Nt = Z;
|
|
8973
8973
|
} else if (L?.getElement()?.control?.type === b.DATE && r.getIsRangeWithinControl()) {
|
|
8974
8974
|
const rt = r.getActiveControl();
|
|
8975
|
-
rt && typeof rt.awake == "function" && rt.awake(), Nt =
|
|
8976
|
-
} else !mt && (yt?.control?.type === b.BUTTON || $t?.control?.type === b.BUTTON) ? L?.getElement()?.control?.type === b.BUTTON && L.getElement()?.control?.editable !== !1 && r.getIsRangeWithinControl() ? (Nt = r.setValue(bt), r.emitControlContentChange()) : Nt =
|
|
8975
|
+
rt && typeof rt.awake == "function" && rt.awake(), Nt = Z;
|
|
8976
|
+
} else !mt && (yt?.control?.type === b.BUTTON || $t?.control?.type === b.BUTTON) ? L?.getElement()?.control?.type === b.BUTTON && L.getElement()?.control?.editable !== !1 && r.getIsRangeWithinControl() ? (Nt = r.setValue(bt), r.emitControlContentChange()) : Nt = Z : L && r.getIsRangeWithinControl() ? (Nt = r.setValue(bt), r.emitControlContentChange()) : (yt?.type === "control" || $t?.type === "control") && !mt ? Nt = Mt(lt) : (fe(y, bt, Z, {
|
|
8977
8977
|
editorOptions: s
|
|
8978
|
-
}), i.spliceElementList(y, lt, 0, bt), Nt =
|
|
8978
|
+
}), i.spliceElementList(y, lt, 0, bt), Nt = Z + bt.length);
|
|
8979
8979
|
}
|
|
8980
8980
|
if (~Nt && !f) {
|
|
8981
8981
|
const Mt = ge() - n, lt = ge();
|
|
@@ -9017,7 +9017,7 @@ function wu(o, t) {
|
|
|
9017
9017
|
const { startIndex: e, endIndex: n } = o.compositionInfo;
|
|
9018
9018
|
return e !== n && (o.getDraw().removeSplitTdOtherRangeElements(), o.getDraw().spliceElementList(t, e + 1, n - e), o.getDraw().getRange().setRange(e, e)), o.compositionInfo = null, t;
|
|
9019
9019
|
}
|
|
9020
|
-
async function
|
|
9020
|
+
async function Zu(o) {
|
|
9021
9021
|
const t = o.getDraw(), e = t.getRange(), { startIndex: n, endIndex: i } = e.getRange();
|
|
9022
9022
|
if (!~n && !~n || t.isReadonly() || !e.getIsCanInput())
|
|
9023
9023
|
return;
|
|
@@ -9035,12 +9035,12 @@ async function vu(o) {
|
|
|
9035
9035
|
s = m < 0 ? 0 : m, l = I[I.length - 1];
|
|
9036
9036
|
}
|
|
9037
9037
|
const a = t.getOptions();
|
|
9038
|
-
await
|
|
9038
|
+
await Nl(r.slice(s + 1, l + 1), a);
|
|
9039
9039
|
const c = t.getControl();
|
|
9040
9040
|
let u;
|
|
9041
9041
|
c.getActiveControl() && c.getIsRangeWithinControl() ? (u = c.cut(), c.emitControlContentChange()) : (t.spliceElementList(r, s + 1, l - s), u = s), e.setRange(u, u), t.render({ curIndex: u });
|
|
9042
9042
|
}
|
|
9043
|
-
function
|
|
9043
|
+
function vu(o) {
|
|
9044
9044
|
return o.replace(/^(?:\r\n|\r|\n)+|(?:\r\n|\r|\n)+$/g, "");
|
|
9045
9045
|
}
|
|
9046
9046
|
async function Qu(o, t) {
|
|
@@ -9079,10 +9079,10 @@ async function Qu(o, t) {
|
|
|
9079
9079
|
l = s.getIsCollapsed() ? s.getRangeRowElementList() : s.getSelectionElementList();
|
|
9080
9080
|
if (i && l?.length) {
|
|
9081
9081
|
const c = so(l, e.getOptions());
|
|
9082
|
-
await au(n ?
|
|
9082
|
+
await au(n ? vu(c) : c);
|
|
9083
9083
|
return;
|
|
9084
9084
|
}
|
|
9085
|
-
l?.length && await
|
|
9085
|
+
l?.length && await Nl(l, e.getOptions());
|
|
9086
9086
|
}
|
|
9087
9087
|
function Hu(o, t) {
|
|
9088
9088
|
const e = t.getDraw(), { drop: n } = e.getOverride();
|
|
@@ -9098,11 +9098,11 @@ function Hu(o, t) {
|
|
|
9098
9098
|
return;
|
|
9099
9099
|
for (let s = 0; s < r.length; s++) {
|
|
9100
9100
|
const l = r[s];
|
|
9101
|
-
l.type.startsWith("image") &&
|
|
9101
|
+
l.type.startsWith("image") && Zs(t, l);
|
|
9102
9102
|
}
|
|
9103
9103
|
}
|
|
9104
9104
|
}
|
|
9105
|
-
function
|
|
9105
|
+
function Wl(o) {
|
|
9106
9106
|
if (!Intl.Segmenter)
|
|
9107
9107
|
return null;
|
|
9108
9108
|
const t = o.getDraw(), e = t.getPosition().getCursorPosition();
|
|
@@ -9208,7 +9208,7 @@ function _u(o, t) {
|
|
|
9208
9208
|
}
|
|
9209
9209
|
if ((i.isCheckbox || i.isRadio) && i.isDirectHit)
|
|
9210
9210
|
return;
|
|
9211
|
-
const s = e.getRange(), l =
|
|
9211
|
+
const s = e.getRange(), l = Wl(o) || Ku(o);
|
|
9212
9212
|
l && (s.setRange(l.startIndex, l.endIndex), e.render({
|
|
9213
9213
|
isSubmitHistory: !1,
|
|
9214
9214
|
isSetCursor: !1,
|
|
@@ -9287,7 +9287,7 @@ function Ju(o, t) {
|
|
|
9287
9287
|
return;
|
|
9288
9288
|
}
|
|
9289
9289
|
if (t.data)
|
|
9290
|
-
o.compositionInfo && (o.compositionInfo.perfStartTime = e),
|
|
9290
|
+
o.compositionInfo && (o.compositionInfo.perfStartTime = e), nc ? setTimeout(() => {
|
|
9291
9291
|
o.compositionInfo && Ps(t.data, o, "compositionend");
|
|
9292
9292
|
}, 1) : o.compositionInfo && Ps(t.data, o, "compositionend");
|
|
9293
9293
|
else {
|
|
@@ -9399,7 +9399,7 @@ class qu {
|
|
|
9399
9399
|
* 为页面容器绑定所有必要的事件监听器。
|
|
9400
9400
|
*/
|
|
9401
9401
|
register() {
|
|
9402
|
-
this.pageContainer.addEventListener("click", this.click.bind(this)), this.pageContainer.addEventListener("mousedown", this.mousedown.bind(this)), this.pageContainer.addEventListener("mouseup", this.mouseup.bind(this)), this.pageContainer.addEventListener("mouseleave", this.mouseleave.bind(this)), this.pageContainer.addEventListener("mousemove", this.mousemove.bind(this)), this.pageContainer.addEventListener("dblclick", this.dblclick.bind(this)), this.pageContainer.addEventListener("dragover", this.dragover.bind(this)), this.pageContainer.addEventListener("drop", this.drop.bind(this)),
|
|
9402
|
+
this.pageContainer.addEventListener("click", this.click.bind(this)), this.pageContainer.addEventListener("mousedown", this.mousedown.bind(this)), this.pageContainer.addEventListener("mouseup", this.mouseup.bind(this)), this.pageContainer.addEventListener("mouseleave", this.mouseleave.bind(this)), this.pageContainer.addEventListener("mousemove", this.mousemove.bind(this)), this.pageContainer.addEventListener("dblclick", this.dblclick.bind(this)), this.pageContainer.addEventListener("dragover", this.dragover.bind(this)), this.pageContainer.addEventListener("drop", this.drop.bind(this)), Aa(this.pageContainer, this.threeClick.bind(this));
|
|
9403
9403
|
}
|
|
9404
9404
|
/**
|
|
9405
9405
|
* 设置是否允许选区操作
|
|
@@ -9436,7 +9436,7 @@ class qu {
|
|
|
9436
9436
|
return;
|
|
9437
9437
|
let n = this.range.getSelection();
|
|
9438
9438
|
if (!n) {
|
|
9439
|
-
const s =
|
|
9439
|
+
const s = Wl(this);
|
|
9440
9440
|
s && (n = this.draw.getElementList().slice(s.startIndex + 1, s.endIndex + 1));
|
|
9441
9441
|
}
|
|
9442
9442
|
if (!n)
|
|
@@ -9489,7 +9489,7 @@ class qu {
|
|
|
9489
9489
|
* 在iOS系统上,需要用户主动触发才能弹出键盘。
|
|
9490
9490
|
*/
|
|
9491
9491
|
click() {
|
|
9492
|
-
this.draw.isInteractionSuspended() ||
|
|
9492
|
+
this.draw.isInteractionSuspended() || tc && !this.draw.isReadonly() && this.draw.getCursor().getAgentDom().focus();
|
|
9493
9493
|
}
|
|
9494
9494
|
/**
|
|
9495
9495
|
* 处理鼠标释放事件
|
|
@@ -9539,7 +9539,7 @@ class qu {
|
|
|
9539
9539
|
* 处理剪切操作
|
|
9540
9540
|
*/
|
|
9541
9541
|
async cut() {
|
|
9542
|
-
this.draw.isInteractionSuspended() || await
|
|
9542
|
+
this.draw.isInteractionSuspended() || await Zu(this);
|
|
9543
9543
|
}
|
|
9544
9544
|
/**
|
|
9545
9545
|
* 处理复制操作
|
|
@@ -9887,7 +9887,7 @@ class od {
|
|
|
9887
9887
|
zone: u
|
|
9888
9888
|
});
|
|
9889
9889
|
if (U.verticalAlign === ue.MIDDLE || U.verticalAlign === ue.BOTTOM) {
|
|
9890
|
-
const
|
|
9890
|
+
const Z = x.reduce(($, G) => $ + G.height, 0), H = (U.height - W) * h - Z, Y = U.verticalAlign === ue.MIDDLE ? H / 2 : H;
|
|
9891
9891
|
Math.floor(Y) > 0 && U.positionList.forEach(($) => {
|
|
9892
9892
|
const { coordinate: { leftTop: G, leftBottom: A, rightBottom: B, rightTop: nt } } = $;
|
|
9893
9893
|
G[1] += Y, A[1] += Y, B[1] += Y, nt[1] += Y;
|
|
@@ -10327,7 +10327,7 @@ class od {
|
|
|
10327
10327
|
width: d.width * e,
|
|
10328
10328
|
height: d.height * e
|
|
10329
10329
|
};
|
|
10330
|
-
if (
|
|
10330
|
+
if (za(s, g)) {
|
|
10331
10331
|
i.isSurround = !0;
|
|
10332
10332
|
const p = g.width + g.x - s.x;
|
|
10333
10333
|
if (r.left = p, i.width += p, u += p, c = g.x + g.width, i.width + r.metrics.width > a) {
|
|
@@ -11096,7 +11096,7 @@ class sd {
|
|
|
11096
11096
|
}
|
|
11097
11097
|
}
|
|
11098
11098
|
}
|
|
11099
|
-
class
|
|
11099
|
+
class vs {
|
|
11100
11100
|
fillRect;
|
|
11101
11101
|
fillColor;
|
|
11102
11102
|
fillDecorationStyle;
|
|
@@ -11120,7 +11120,7 @@ class Zs {
|
|
|
11120
11120
|
a && (this.fillRect.x = e, this.fillRect.y = n), r && this.fillRect.height < r && (this.fillRect.height = r), this.fillRect.width += i, this.fillColor = s, this.fillDecorationStyle = l;
|
|
11121
11121
|
}
|
|
11122
11122
|
}
|
|
11123
|
-
class rd extends
|
|
11123
|
+
class rd extends vs {
|
|
11124
11124
|
options;
|
|
11125
11125
|
constructor(t) {
|
|
11126
11126
|
super(), this.options = t.getOptions();
|
|
@@ -11438,7 +11438,7 @@ class ad {
|
|
|
11438
11438
|
});
|
|
11439
11439
|
}
|
|
11440
11440
|
}
|
|
11441
|
-
class cd extends
|
|
11441
|
+
class cd extends vs {
|
|
11442
11442
|
options;
|
|
11443
11443
|
constructor(t) {
|
|
11444
11444
|
super(), this.options = t.getOptions();
|
|
@@ -11460,7 +11460,7 @@ var ro;
|
|
|
11460
11460
|
(function(o) {
|
|
11461
11461
|
o.SOLID = "solid", o.DASHED = "dashed", o.DOTTED = "dotted";
|
|
11462
11462
|
})(ro || (ro = {}));
|
|
11463
|
-
class ud extends
|
|
11463
|
+
class ud extends vs {
|
|
11464
11464
|
options;
|
|
11465
11465
|
constructor(t) {
|
|
11466
11466
|
super(), this.options = t.getOptions();
|
|
@@ -11535,7 +11535,7 @@ class dd {
|
|
|
11535
11535
|
measureBasisWord(t, e) {
|
|
11536
11536
|
t.save(), t.font = e;
|
|
11537
11537
|
const n = this.measureText(t, {
|
|
11538
|
-
value:
|
|
11538
|
+
value: Ya
|
|
11539
11539
|
});
|
|
11540
11540
|
return t.restore(), n;
|
|
11541
11541
|
}
|
|
@@ -11572,7 +11572,7 @@ class dd {
|
|
|
11572
11572
|
};
|
|
11573
11573
|
}
|
|
11574
11574
|
measurePunctuationWidth(t, e) {
|
|
11575
|
-
return !e || !
|
|
11575
|
+
return !e || !Wa.includes(e.value) ? 0 : (t.font = this.draw.getElementFont(e), this.measureText(t, e).width);
|
|
11576
11576
|
}
|
|
11577
11577
|
measureText(t, e) {
|
|
11578
11578
|
if (e.width) {
|
|
@@ -11620,7 +11620,7 @@ class mo {
|
|
|
11620
11620
|
this.draw = t, this.options = t.getOptions();
|
|
11621
11621
|
}
|
|
11622
11622
|
static formatNumberPlaceholder(t, e, n, i) {
|
|
11623
|
-
const r = i === bo.CHINESE ?
|
|
11623
|
+
const r = i === bo.CHINESE ? Ga(e) : `${e}`;
|
|
11624
11624
|
return t.replace(n, r);
|
|
11625
11625
|
}
|
|
11626
11626
|
render(t, e) {
|
|
@@ -11677,7 +11677,7 @@ class hd {
|
|
|
11677
11677
|
visiblePageNoList: e
|
|
11678
11678
|
};
|
|
11679
11679
|
}
|
|
11680
|
-
_observer =
|
|
11680
|
+
_observer = Ha(() => {
|
|
11681
11681
|
const { intersectionPageNo: t, visiblePageNoList: e } = this.getPageVisibleInfo();
|
|
11682
11682
|
this.draw.setIntersectionPageNo(t), this.draw.setVisiblePageNoList(e);
|
|
11683
11683
|
}, 150);
|
|
@@ -12111,7 +12111,7 @@ class fd {
|
|
|
12111
12111
|
for (let E = 0; E < w.length; E++) {
|
|
12112
12112
|
const U = w[E] * a, x = document.createElement("div");
|
|
12113
12113
|
x.classList.add(`${ct}-table-tool__row__item`), E === O && x.classList.add("active"), x.onclick = () => {
|
|
12114
|
-
const
|
|
12114
|
+
const Z = this.draw.getTableParticle().getTdListByRowIndex(d, E), H = Z[0], Y = Z[Z.length - 1];
|
|
12115
12115
|
this.position.setPositionContext({
|
|
12116
12116
|
index: e,
|
|
12117
12117
|
isTable: !0,
|
|
@@ -12125,9 +12125,9 @@ class fd {
|
|
|
12125
12125
|
}), this._setAnchorActive(V, E);
|
|
12126
12126
|
};
|
|
12127
12127
|
const Q = document.createElement("div");
|
|
12128
|
-
Q.classList.add(`${ct}-table-tool__anchor`), Q.onmousedown = (
|
|
12128
|
+
Q.classList.add(`${ct}-table-tool__anchor`), Q.onmousedown = (Z) => {
|
|
12129
12129
|
this._mousedown({
|
|
12130
|
-
evt:
|
|
12130
|
+
evt: Z,
|
|
12131
12131
|
element: l,
|
|
12132
12132
|
index: E,
|
|
12133
12133
|
order: nn.ROW
|
|
@@ -12150,7 +12150,7 @@ class fd {
|
|
|
12150
12150
|
for (let E = 0; E < y.length; E++) {
|
|
12151
12151
|
const U = y[E] * a, x = document.createElement("div");
|
|
12152
12152
|
x.classList.add(`${ct}-table-tool__col__item`), E === S && x.classList.add("active"), x.onclick = () => {
|
|
12153
|
-
const
|
|
12153
|
+
const Z = this.draw.getTableParticle().getTdListByColIndex(d, E), H = Z[0], Y = Z[Z.length - 1];
|
|
12154
12154
|
this.position.setPositionContext({
|
|
12155
12155
|
index: e,
|
|
12156
12156
|
isTable: !0,
|
|
@@ -12164,9 +12164,9 @@ class fd {
|
|
|
12164
12164
|
}), this._setAnchorActive(W, E);
|
|
12165
12165
|
};
|
|
12166
12166
|
const Q = document.createElement("div");
|
|
12167
|
-
Q.classList.add(`${ct}-table-tool__anchor`), Q.onmousedown = (
|
|
12167
|
+
Q.classList.add(`${ct}-table-tool__anchor`), Q.onmousedown = (Z) => {
|
|
12168
12168
|
this._mousedown({
|
|
12169
|
-
evt:
|
|
12169
|
+
evt: Z,
|
|
12170
12170
|
element: l,
|
|
12171
12171
|
index: E,
|
|
12172
12172
|
order: nn.COL
|
|
@@ -12189,15 +12189,15 @@ class fd {
|
|
|
12189
12189
|
for (let E = 0; E < d.length; E++) {
|
|
12190
12190
|
const U = d[E];
|
|
12191
12191
|
for (let x = 0; x < U.tdList.length; x++) {
|
|
12192
|
-
const Q = U.tdList[x],
|
|
12193
|
-
|
|
12192
|
+
const Q = U.tdList[x], Z = document.createElement("div");
|
|
12193
|
+
Z.classList.add(`${ct}-table-tool__border__row`), Z.style.width = `${Q.width * a}px`, Z.style.height = `${this.BORDER_VALUE}px`, Z.style.top = `${(Q.y + Q.height) * a - this.BORDER_VALUE / 2}px`, Z.style.left = `${Q.x * a}px`, Z.onmousedown = (Y) => {
|
|
12194
12194
|
this._mousedown({
|
|
12195
12195
|
evt: Y,
|
|
12196
12196
|
element: l,
|
|
12197
12197
|
index: Q.rowIndex + Q.rowspan - 1,
|
|
12198
12198
|
order: nn.ROW
|
|
12199
12199
|
});
|
|
12200
|
-
}, D.appendChild(
|
|
12200
|
+
}, D.appendChild(Z);
|
|
12201
12201
|
const H = document.createElement("div");
|
|
12202
12202
|
if (H.classList.add(`${ct}-table-tool__border__col`), H.style.width = `${this.BORDER_VALUE}px`, H.style.height = `${Q.height * a}px`, H.style.top = `${Q.y * a}px`, H.style.left = `${(Q.x + Q.width) * a - this.BORDER_VALUE / 2}px`, H.onmousedown = (Y) => {
|
|
12203
12203
|
this._mousedown({
|
|
@@ -12261,8 +12261,8 @@ class fd {
|
|
|
12261
12261
|
y < 0 && U * l + y < this.MIN_TD_WIDTH * l && (y = this.MIN_TD_WIDTH * l - U * l);
|
|
12262
12262
|
const x = E[n + 1]?.width;
|
|
12263
12263
|
if (y > 0 && x && x * l - y < this.MIN_TD_WIDTH * l && (y = x * l - this.MIN_TD_WIDTH * l), n === E.length - 1) {
|
|
12264
|
-
const
|
|
12265
|
-
|
|
12264
|
+
const Z = I + (r.translateX || 0) * l + r.width * l;
|
|
12265
|
+
Z + y > S && (y = S - Z);
|
|
12266
12266
|
}
|
|
12267
12267
|
y && (E.length - 1 !== n && (E[n + 1].width -= y / l), E[n].width += y / l, D = !0);
|
|
12268
12268
|
}
|
|
@@ -12328,7 +12328,7 @@ class Td {
|
|
|
12328
12328
|
t.beginPath(), t.moveTo(e + s, n), t.lineTo(e + i - s, n), t.quadraticCurveTo(e + i, n, e + i, n + s), t.lineTo(e + i, n + r - s), t.quadraticCurveTo(e + i, n + r, e + i - s, n + r), t.lineTo(e + s, n + r), t.quadraticCurveTo(e, n + r, e, n + r - s), t.lineTo(e, n + s), t.quadraticCurveTo(e, n, e + s, n), t.closePath();
|
|
12329
12329
|
}
|
|
12330
12330
|
}
|
|
12331
|
-
const
|
|
12331
|
+
const vn = /[\r\n\u200B]/;
|
|
12332
12332
|
class Id {
|
|
12333
12333
|
options;
|
|
12334
12334
|
draw;
|
|
@@ -12526,7 +12526,7 @@ class Id {
|
|
|
12526
12526
|
_renderPlainText(t, e, n, i, r) {
|
|
12527
12527
|
t.save(), t.font = e.style, t.fillStyle = e.color || "#000000", t.textBaseline = "alphabetic";
|
|
12528
12528
|
const s = this._getMacroLineHeight(e);
|
|
12529
|
-
r.split(
|
|
12529
|
+
r.split(vn).forEach((l, a) => {
|
|
12530
12530
|
t.fillText(l, n, i + a * s);
|
|
12531
12531
|
}), t.restore();
|
|
12532
12532
|
}
|
|
@@ -12549,7 +12549,7 @@ class Id {
|
|
|
12549
12549
|
_renderTextControl(t, e, n, i, r) {
|
|
12550
12550
|
const { control: s } = this.options, { placeholderColor: l } = s;
|
|
12551
12551
|
t.save(), t.font = e.style;
|
|
12552
|
-
const c = `请输入${e.label || ""}`, h = (r || c).split(
|
|
12552
|
+
const c = `请输入${e.label || ""}`, h = (r || c).split(vn), d = this._getMacroLineHeight(e), f = h.map((m) => t.measureText(m)), g = f[f.length - 1];
|
|
12553
12553
|
t.fillStyle = this._getControlColor(e), t.textBaseline = "alphabetic", t.fillText("[", n, i);
|
|
12554
12554
|
const p = n + t.measureText("[").width;
|
|
12555
12555
|
this._renderTextSelection(t, e, p, i, r, d), t.fillStyle = r ? this._getValueColor(e) : l, h.forEach((m, L) => {
|
|
@@ -12645,9 +12645,9 @@ class Id {
|
|
|
12645
12645
|
return;
|
|
12646
12646
|
const i = this.draw.getCtx();
|
|
12647
12647
|
i.save(), i.font = this.draw.getElementFont(e);
|
|
12648
|
-
const r = Array.from(this._getInlineEditorValue(e)), s = this._getMacroLineStart(r, t.cursorOffset), l = r.slice(s, t.cursorOffset).join(""), a = r.slice(0, t.cursorOffset).filter((M) =>
|
|
12648
|
+
const r = Array.from(this._getInlineEditorValue(e)), s = this._getMacroLineStart(r, t.cursorOffset), l = r.slice(s, t.cursorOffset).join(""), a = r.slice(0, t.cursorOffset).filter((M) => vn.test(M)).length, c = n.coordinate.leftTop[0] + i.measureText("[").width + i.measureText(l).width;
|
|
12649
12649
|
i.restore();
|
|
12650
|
-
const u = this.draw.getCursor(), h = u.getCursorDom(), { scale: d } = this.options, f = this._getMacroLineHeight(e), g = ul * d, p = Math.min(f / 4, g), I = f + p * 2, m = r.filter((M) =>
|
|
12650
|
+
const u = this.draw.getCursor(), h = u.getCursorDom(), { scale: d } = this.options, f = this._getMacroLineHeight(e), g = ul * d, p = Math.min(f / 4, g), I = f + p * 2, m = r.filter((M) => vn.test(M)).length + 1, L = Math.max(n.metrics.boundingBoxDescent - f * (m - 1), 0), T = n.pageNo * (this.draw.getHeight() + this.draw.getPageGap()), O = n.coordinate.leftTop[1] + n.ascent + L - (I - p) + a * f + T, S = u.getAgentDom();
|
|
12651
12651
|
h.style.left = `${c}px`, h.style.top = `${O}px`, h.style.height = `${I}px`, h.style.backgroundColor = this._getControlColor(e), h.style.display = "block", S.style.left = `${c}px`, S.style.top = `${O + I - g}px`;
|
|
12652
12652
|
}
|
|
12653
12653
|
_renderTextSelection(t, e, n, i, r, s) {
|
|
@@ -12660,7 +12660,7 @@ class Id {
|
|
|
12660
12660
|
const u = Array.from(r);
|
|
12661
12661
|
let d = this._getMacroLineStart(u, a);
|
|
12662
12662
|
for (; d <= c; ) {
|
|
12663
|
-
const f = u.findIndex((m, L) => L >= d &&
|
|
12663
|
+
const f = u.findIndex((m, L) => L >= d && vn.test(m)), g = f === -1 ? u.length : f, p = Math.max(a, d), I = Math.min(c, g);
|
|
12664
12664
|
if (p < I) {
|
|
12665
12665
|
const m = u.slice(d, p).join(""), L = u.slice(p, I).join(""), T = t.measureText(L || m);
|
|
12666
12666
|
t.save(), t.globalAlpha = 0.2, t.fillStyle = this._getControlColor(e), t.fillRect(n + t.measureText(m).width, i + this._getMacroLineIndex(u, d) * s - T.actualBoundingBoxAscent, t.measureText(L).width, T.actualBoundingBoxAscent + T.actualBoundingBoxDescent), t.restore();
|
|
@@ -12676,12 +12676,12 @@ class Id {
|
|
|
12676
12676
|
}
|
|
12677
12677
|
_getMacroLineStart(t, e) {
|
|
12678
12678
|
for (let n = Math.min(e - 1, t.length - 1); n >= 0; n--)
|
|
12679
|
-
if (
|
|
12679
|
+
if (vn.test(t[n]))
|
|
12680
12680
|
return n + 1;
|
|
12681
12681
|
return 0;
|
|
12682
12682
|
}
|
|
12683
12683
|
_getMacroLineIndex(t, e) {
|
|
12684
|
-
return t.slice(0, e).filter((n) =>
|
|
12684
|
+
return t.slice(0, e).filter((n) => vn.test(n)).length;
|
|
12685
12685
|
}
|
|
12686
12686
|
_getIsActiveElement(t, e) {
|
|
12687
12687
|
const n = this._getInlineEditorElement(e);
|
|
@@ -13122,12 +13122,12 @@ class Fd {
|
|
|
13122
13122
|
}
|
|
13123
13123
|
if (!M.length)
|
|
13124
13124
|
continue;
|
|
13125
|
-
const F = S.coordinate.leftTop, N = S.coordinate.rightTop, w = S.coordinate.leftBottom, V = S.coordinate.rightBottom, C = Math.min(F[0], w[0]), y = Math.max(N[0], V[0]), W = Math.min(F[1], N[1]), X = Math.max(w[1], V[1]), D = S.metrics.boundingBoxAscent + S.metrics.boundingBoxDescent, E = W + S.ascent - S.metrics.boundingBoxAscent, U = D > 0 ? E : W, x = D > 0 ? E + D : X, Q = this._isButtonElement(T),
|
|
13125
|
+
const F = S.coordinate.leftTop, N = S.coordinate.rightTop, w = S.coordinate.leftBottom, V = S.coordinate.rightBottom, C = Math.min(F[0], w[0]), y = Math.max(N[0], V[0]), W = Math.min(F[1], N[1]), X = Math.max(w[1], V[1]), D = S.metrics.boundingBoxAscent + S.metrics.boundingBoxDescent, E = W + S.ascent - S.metrics.boundingBoxAscent, U = D > 0 ? E : W, x = D > 0 ? E + D : X, Q = this._isButtonElement(T), Z = p ? Math.max(C, Math.min(y, m)) : y;
|
|
13126
13126
|
for (let H = 0; H < M.length; H++) {
|
|
13127
13127
|
const { markIndex: Y, controlId: $ } = M[H], G = `${Y}:${$}:${f.startIndex}`, A = g.get(G), B = { x: C, y: U, right: y, bottom: x };
|
|
13128
13128
|
if (A) {
|
|
13129
13129
|
const nt = this._mergeBounds(A, B);
|
|
13130
|
-
A.x = nt.x, A.y = nt.y, A.width = Math.max(1, nt.right - nt.x), A.height = Math.max(1, nt.bottom - nt.y), Q || (A.hasUnderline ? (A.underlineX = Math.min(A.underlineX, C), A.underlineY = Math.max(A.underlineY, x + $i), A.underlineRight = Math.max(A.underlineRight,
|
|
13130
|
+
A.x = nt.x, A.y = nt.y, A.width = Math.max(1, nt.right - nt.x), A.height = Math.max(1, nt.bottom - nt.y), Q || (A.hasUnderline ? (A.underlineX = Math.min(A.underlineX, C), A.underlineY = Math.max(A.underlineY, x + $i), A.underlineRight = Math.max(A.underlineRight, Z)) : (A.underlineX = C, A.underlineY = x + $i, A.underlineRight = Z), A.hasUnderline = !0);
|
|
13131
13131
|
} else
|
|
13132
13132
|
g.set(G, {
|
|
13133
13133
|
mark: this.marks[Y],
|
|
@@ -13140,7 +13140,7 @@ class Fd {
|
|
|
13140
13140
|
font: T.style || this.draw.getElementFont(T, this.options.scale),
|
|
13141
13141
|
underlineX: C,
|
|
13142
13142
|
underlineY: x + $i,
|
|
13143
|
-
underlineRight:
|
|
13143
|
+
underlineRight: Z,
|
|
13144
13144
|
hasUnderline: !Q,
|
|
13145
13145
|
drawLeft: !1,
|
|
13146
13146
|
drawRight: !1,
|
|
@@ -13476,7 +13476,7 @@ class Mo {
|
|
|
13476
13476
|
if (!~p)
|
|
13477
13477
|
return;
|
|
13478
13478
|
a || this.control.removePlaceholder(p, e);
|
|
13479
|
-
const I = Ye(i[p], Ge), m = p + 1, L =
|
|
13479
|
+
const I = Ye(i[p], Ge), m = p + 1, L = Zt(d), T = this.control.getDraw();
|
|
13480
13480
|
for (let O = 0; O < L.length; O++) {
|
|
13481
13481
|
const S = {
|
|
13482
13482
|
...g,
|
|
@@ -13572,12 +13572,12 @@ class Mo {
|
|
|
13572
13572
|
this.isPopup && (this.selectDom?.remove(), this.isPopup = !1);
|
|
13573
13573
|
}
|
|
13574
13574
|
}
|
|
13575
|
-
var
|
|
13575
|
+
var Yl;
|
|
13576
13576
|
function dt() {
|
|
13577
|
-
return
|
|
13577
|
+
return Yl.apply(null, arguments);
|
|
13578
13578
|
}
|
|
13579
13579
|
function Nd(o) {
|
|
13580
|
-
|
|
13580
|
+
Yl = o;
|
|
13581
13581
|
}
|
|
13582
13582
|
function ke(o) {
|
|
13583
13583
|
return o instanceof Array || Object.prototype.toString.call(o) === "[object Array]";
|
|
@@ -13603,10 +13603,10 @@ function xe(o) {
|
|
|
13603
13603
|
function Sn(o) {
|
|
13604
13604
|
return typeof o == "number" || Object.prototype.toString.call(o) === "[object Number]";
|
|
13605
13605
|
}
|
|
13606
|
-
function
|
|
13606
|
+
function vo(o) {
|
|
13607
13607
|
return o instanceof Date || Object.prototype.toString.call(o) === "[object Date]";
|
|
13608
13608
|
}
|
|
13609
|
-
function
|
|
13609
|
+
function Ul(o, t) {
|
|
13610
13610
|
var e = [], n, i = o.length;
|
|
13611
13611
|
for (n = 0; n < i; ++n)
|
|
13612
13612
|
e.push(t(o[n], n));
|
|
@@ -13618,7 +13618,7 @@ function Yn(o, t) {
|
|
|
13618
13618
|
return zt(t, "toString") && (o.toString = t.toString), zt(t, "valueOf") && (o.valueOf = t.valueOf), o;
|
|
13619
13619
|
}
|
|
13620
13620
|
function hn(o, t, e, n) {
|
|
13621
|
-
return
|
|
13621
|
+
return ra(o, t, e, n, !0).utc();
|
|
13622
13622
|
}
|
|
13623
13623
|
function xd() {
|
|
13624
13624
|
return {
|
|
@@ -13679,7 +13679,7 @@ function Qo(o) {
|
|
|
13679
13679
|
function Je(o) {
|
|
13680
13680
|
return o instanceof Qo || o != null && o._isAMomentObject != null;
|
|
13681
13681
|
}
|
|
13682
|
-
function
|
|
13682
|
+
function wl(o) {
|
|
13683
13683
|
dt.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + o);
|
|
13684
13684
|
}
|
|
13685
13685
|
function Qe(o, t) {
|
|
@@ -13698,7 +13698,7 @@ function Qe(o, t) {
|
|
|
13698
13698
|
i = arguments[r];
|
|
13699
13699
|
n.push(i);
|
|
13700
13700
|
}
|
|
13701
|
-
|
|
13701
|
+
wl(
|
|
13702
13702
|
o + `
|
|
13703
13703
|
Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
13704
13704
|
` + new Error().stack
|
|
@@ -13708,8 +13708,8 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
13708
13708
|
}, t);
|
|
13709
13709
|
}
|
|
13710
13710
|
var wr = {};
|
|
13711
|
-
function
|
|
13712
|
-
dt.deprecationHandler != null && dt.deprecationHandler(o, t), wr[o] || (
|
|
13711
|
+
function Zl(o, t) {
|
|
13712
|
+
dt.deprecationHandler != null && dt.deprecationHandler(o, t), wr[o] || (wl(t), wr[o] = !0);
|
|
13713
13713
|
}
|
|
13714
13714
|
dt.suppressDeprecationWarnings = !1;
|
|
13715
13715
|
dt.deprecationHandler = null;
|
|
@@ -13815,8 +13815,8 @@ function wd(o) {
|
|
|
13815
13815
|
return n === "MMMM" || n === "MM" || n === "DD" || n === "dddd" ? n.slice(1) : n;
|
|
13816
13816
|
}).join(""), this._longDateFormat[o]);
|
|
13817
13817
|
}
|
|
13818
|
-
var
|
|
13819
|
-
function
|
|
13818
|
+
var Zd = "Invalid date";
|
|
13819
|
+
function vd() {
|
|
13820
13820
|
return this._invalidDate;
|
|
13821
13821
|
}
|
|
13822
13822
|
var Qd = "%d", Hd = /\d{1,2}/;
|
|
@@ -13849,7 +13849,7 @@ function Bd(o, t) {
|
|
|
13849
13849
|
var e = this._relativeTime[o > 0 ? "future" : "past"];
|
|
13850
13850
|
return Rn(e) ? e(t) : e.replace(/%s/i, t);
|
|
13851
13851
|
}
|
|
13852
|
-
var
|
|
13852
|
+
var Zr = {
|
|
13853
13853
|
D: "date",
|
|
13854
13854
|
dates: "date",
|
|
13855
13855
|
date: "date",
|
|
@@ -13900,7 +13900,7 @@ var vr = {
|
|
|
13900
13900
|
year: "year"
|
|
13901
13901
|
};
|
|
13902
13902
|
function He(o) {
|
|
13903
|
-
return typeof o == "string" ?
|
|
13903
|
+
return typeof o == "string" ? Zr[o] || Zr[o.toLowerCase()] : void 0;
|
|
13904
13904
|
}
|
|
13905
13905
|
function Bs(o) {
|
|
13906
13906
|
var t = {}, e, n;
|
|
@@ -13934,7 +13934,7 @@ function kd(o) {
|
|
|
13934
13934
|
return n.priority - i.priority;
|
|
13935
13935
|
}), t;
|
|
13936
13936
|
}
|
|
13937
|
-
var
|
|
13937
|
+
var Ql = /\d/, we = /\d\d/, Hl = /\d{3}/, Gs = /\d{4}/, Xi = /[+-]?\d{6}/, he = /\d\d?/, Kl = /\d\d\d\d?/, Al = /\d\d\d\d\d\d?/, Ni = /\d{1,3}/, ks = /\d{1,4}/, xi = /[+-]?\d{1,6}/, Lo = /\d+/, bi = /[+-]?\d+/, Jd = /Z|[+-]\d\d:?\d\d/gi, yi = /Z|[+-]\d\d(?::?\d\d)?/gi, $d = /[+-]?\d+(\.\d{1,3})?/, Ho = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Po = /^[1-9]\d?/, Js = /^([1-9]\d|\d)/, Li;
|
|
13938
13938
|
Li = {};
|
|
13939
13939
|
function ht(o, t, e) {
|
|
13940
13940
|
Li[o] = Rn(t) ? t : function(n, i) {
|
|
@@ -13957,12 +13957,12 @@ function jd(o) {
|
|
|
13957
13957
|
function En(o) {
|
|
13958
13958
|
return o.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
13959
13959
|
}
|
|
13960
|
-
function
|
|
13960
|
+
function ve(o) {
|
|
13961
13961
|
return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
|
|
13962
13962
|
}
|
|
13963
13963
|
function Ht(o) {
|
|
13964
13964
|
var t = +o, e = 0;
|
|
13965
|
-
return t !== 0 && isFinite(t) && (e =
|
|
13965
|
+
return t !== 0 && isFinite(t) && (e = ve(t)), e;
|
|
13966
13966
|
}
|
|
13967
13967
|
var Ss = {};
|
|
13968
13968
|
function ee(o, t) {
|
|
@@ -14015,13 +14015,13 @@ function No(o) {
|
|
|
14015
14015
|
dt.parseTwoDigitYear = function(o) {
|
|
14016
14016
|
return Ht(o) + (Ht(o) > 68 ? 1900 : 2e3);
|
|
14017
14017
|
};
|
|
14018
|
-
var
|
|
14018
|
+
var _l = Eo("FullYear", !0);
|
|
14019
14019
|
function nh() {
|
|
14020
14020
|
return Vi(this.year());
|
|
14021
14021
|
}
|
|
14022
14022
|
function Eo(o, t) {
|
|
14023
14023
|
return function(e) {
|
|
14024
|
-
return e != null ? (
|
|
14024
|
+
return e != null ? (Bl(this, o, e), dt.updateOffset(this, t), this) : Wo(this, o);
|
|
14025
14025
|
};
|
|
14026
14026
|
}
|
|
14027
14027
|
function Wo(o, t) {
|
|
@@ -14049,7 +14049,7 @@ function Wo(o, t) {
|
|
|
14049
14049
|
return NaN;
|
|
14050
14050
|
}
|
|
14051
14051
|
}
|
|
14052
|
-
function
|
|
14052
|
+
function Bl(o, t, e) {
|
|
14053
14053
|
var n, i, r, s, l;
|
|
14054
14054
|
if (!(!o.isValid() || isNaN(e))) {
|
|
14055
14055
|
switch (n = o._d, i = o._isUTC, t) {
|
|
@@ -14132,12 +14132,12 @@ ee(["MMM", "MMMM"], function(o, t, e, n) {
|
|
|
14132
14132
|
});
|
|
14133
14133
|
var rh = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
14134
14134
|
"_"
|
|
14135
|
-
),
|
|
14135
|
+
), Gl = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), kl = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, lh = Ho, ah = Ho;
|
|
14136
14136
|
function ch(o, t) {
|
|
14137
|
-
return o ? ke(this._months) ? this._months[o.month()] : this._months[(this._months.isFormat ||
|
|
14137
|
+
return o ? ke(this._months) ? this._months[o.month()] : this._months[(this._months.isFormat || kl).test(t) ? "format" : "standalone"][o.month()] : ke(this._months) ? this._months : this._months.standalone;
|
|
14138
14138
|
}
|
|
14139
14139
|
function uh(o, t) {
|
|
14140
|
-
return o ? ke(this._monthsShort) ? this._monthsShort[o.month()] : this._monthsShort[
|
|
14140
|
+
return o ? ke(this._monthsShort) ? this._monthsShort[o.month()] : this._monthsShort[kl.test(t) ? "format" : "standalone"][o.month()] : ke(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
|
|
14141
14141
|
}
|
|
14142
14142
|
function dh(o, t, e) {
|
|
14143
14143
|
var n, i, r, s = o.toLocaleLowerCase();
|
|
@@ -14168,7 +14168,7 @@ function hh(o, t, e) {
|
|
|
14168
14168
|
return n;
|
|
14169
14169
|
}
|
|
14170
14170
|
}
|
|
14171
|
-
function
|
|
14171
|
+
function Jl(o, t) {
|
|
14172
14172
|
if (!o.isValid())
|
|
14173
14173
|
return o;
|
|
14174
14174
|
if (typeof t == "string") {
|
|
@@ -14180,19 +14180,19 @@ function kl(o, t) {
|
|
|
14180
14180
|
var e = t, n = o.date();
|
|
14181
14181
|
return n = n < 29 ? n : Math.min(n, $s(o.year(), e)), o._isUTC ? o._d.setUTCMonth(e, n) : o._d.setMonth(e, n), o;
|
|
14182
14182
|
}
|
|
14183
|
-
function
|
|
14184
|
-
return o != null ? (
|
|
14183
|
+
function $l(o) {
|
|
14184
|
+
return o != null ? (Jl(this, o), dt.updateOffset(this, !0), this) : Wo(this, "Month");
|
|
14185
14185
|
}
|
|
14186
14186
|
function Rh() {
|
|
14187
14187
|
return $s(this.year(), this.month());
|
|
14188
14188
|
}
|
|
14189
14189
|
function gh(o) {
|
|
14190
|
-
return this._monthsParseExact ? (zt(this, "_monthsRegex") ||
|
|
14190
|
+
return this._monthsParseExact ? (zt(this, "_monthsRegex") || zl.call(this), o ? this._monthsShortStrictRegex : this._monthsShortRegex) : (zt(this, "_monthsShortRegex") || (this._monthsShortRegex = lh), this._monthsShortStrictRegex && o ? this._monthsShortStrictRegex : this._monthsShortRegex);
|
|
14191
14191
|
}
|
|
14192
14192
|
function fh(o) {
|
|
14193
|
-
return this._monthsParseExact ? (zt(this, "_monthsRegex") ||
|
|
14193
|
+
return this._monthsParseExact ? (zt(this, "_monthsRegex") || zl.call(this), o ? this._monthsStrictRegex : this._monthsRegex) : (zt(this, "_monthsRegex") || (this._monthsRegex = ah), this._monthsStrictRegex && o ? this._monthsStrictRegex : this._monthsRegex);
|
|
14194
14194
|
}
|
|
14195
|
-
function
|
|
14195
|
+
function zl() {
|
|
14196
14196
|
function o(a, c) {
|
|
14197
14197
|
return c.length - a.length;
|
|
14198
14198
|
}
|
|
@@ -14219,7 +14219,7 @@ function Pi(o, t, e) {
|
|
|
14219
14219
|
var n = 7 + t - e, i = (7 + Yo(o, 0, n).getUTCDay() - t) % 7;
|
|
14220
14220
|
return -i + n - 1;
|
|
14221
14221
|
}
|
|
14222
|
-
function
|
|
14222
|
+
function jl(o, t, e, n, i) {
|
|
14223
14223
|
var r = (7 + e - n) % 7, s = Pi(o, n, i), l = 1 + 7 * (t - 1) + r + s, a, c;
|
|
14224
14224
|
return l <= 0 ? (a = o - 1, c = No(a) + l) : l > No(o) ? (a = o + 1, c = l - No(o)) : (a = o, c = l), {
|
|
14225
14225
|
year: a,
|
|
@@ -14312,7 +14312,7 @@ function Mh(o, t) {
|
|
|
14312
14312
|
function zs(o, t) {
|
|
14313
14313
|
return o.slice(t, 7).concat(o.slice(0, t));
|
|
14314
14314
|
}
|
|
14315
|
-
var Sh = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
14315
|
+
var Sh = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), ql = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Dh = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Ch = Ho, Fh = Ho, Xh = Ho;
|
|
14316
14316
|
function Nh(o, t) {
|
|
14317
14317
|
var e = ke(this._weekdays) ? this._weekdays : this._weekdays[o && o !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
|
|
14318
14318
|
return o === !0 ? zs(e, this._week.dow) : o ? e[o.day()] : e;
|
|
@@ -14384,10 +14384,10 @@ function Uh(o) {
|
|
|
14384
14384
|
function wh(o) {
|
|
14385
14385
|
return this._weekdaysParseExact ? (zt(this, "_weekdaysRegex") || js.call(this), o ? this._weekdaysStrictRegex : this._weekdaysRegex) : (zt(this, "_weekdaysRegex") || (this._weekdaysRegex = Ch), this._weekdaysStrictRegex && o ? this._weekdaysStrictRegex : this._weekdaysRegex);
|
|
14386
14386
|
}
|
|
14387
|
-
function
|
|
14387
|
+
function Zh(o) {
|
|
14388
14388
|
return this._weekdaysParseExact ? (zt(this, "_weekdaysRegex") || js.call(this), o ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (zt(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Fh), this._weekdaysShortStrictRegex && o ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
|
|
14389
14389
|
}
|
|
14390
|
-
function
|
|
14390
|
+
function vh(o) {
|
|
14391
14391
|
return this._weekdaysParseExact ? (zt(this, "_weekdaysRegex") || js.call(this), o ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (zt(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Xh), this._weekdaysMinStrictRegex && o ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
|
|
14392
14392
|
}
|
|
14393
14393
|
function js() {
|
|
@@ -14429,7 +14429,7 @@ Pt("Hmm", 0, 0, function() {
|
|
|
14429
14429
|
Pt("Hmmss", 0, 0, function() {
|
|
14430
14430
|
return "" + this.hours() + dn(this.minutes(), 2) + dn(this.seconds(), 2);
|
|
14431
14431
|
});
|
|
14432
|
-
function
|
|
14432
|
+
function ta(o, t) {
|
|
14433
14433
|
Pt(o, 0, 0, function() {
|
|
14434
14434
|
return this.localeData().meridiem(
|
|
14435
14435
|
this.hours(),
|
|
@@ -14438,23 +14438,23 @@ function ql(o, t) {
|
|
|
14438
14438
|
);
|
|
14439
14439
|
});
|
|
14440
14440
|
}
|
|
14441
|
-
|
|
14442
|
-
|
|
14443
|
-
function
|
|
14441
|
+
ta("a", !0);
|
|
14442
|
+
ta("A", !1);
|
|
14443
|
+
function ea(o, t) {
|
|
14444
14444
|
return t._meridiemParse;
|
|
14445
14445
|
}
|
|
14446
|
-
ht("a",
|
|
14447
|
-
ht("A",
|
|
14446
|
+
ht("a", ea);
|
|
14447
|
+
ht("A", ea);
|
|
14448
14448
|
ht("H", he, Js);
|
|
14449
14449
|
ht("h", he, Po);
|
|
14450
14450
|
ht("k", he, Po);
|
|
14451
14451
|
ht("HH", he, we);
|
|
14452
14452
|
ht("hh", he, we);
|
|
14453
14453
|
ht("kk", he, we);
|
|
14454
|
-
ht("hmm",
|
|
14455
|
-
ht("hmmss",
|
|
14456
|
-
ht("Hmm",
|
|
14457
|
-
ht("Hmmss",
|
|
14454
|
+
ht("hmm", Kl);
|
|
14455
|
+
ht("hmmss", Al);
|
|
14456
|
+
ht("Hmm", Kl);
|
|
14457
|
+
ht("Hmmss", Al);
|
|
14458
14458
|
ee(["H", "HH"], Oe);
|
|
14459
14459
|
ee(["k", "kk"], function(o, t, e) {
|
|
14460
14460
|
var n = Ht(o);
|
|
@@ -14489,19 +14489,19 @@ var Kh = /[ap]\.?m?\.?/i, Ah = Eo("Hours", !0);
|
|
|
14489
14489
|
function _h(o, t, e) {
|
|
14490
14490
|
return o > 11 ? e ? "pm" : "PM" : e ? "am" : "AM";
|
|
14491
14491
|
}
|
|
14492
|
-
var
|
|
14492
|
+
var na = {
|
|
14493
14493
|
calendar: yd,
|
|
14494
14494
|
longDateFormat: Ud,
|
|
14495
|
-
invalidDate:
|
|
14495
|
+
invalidDate: Zd,
|
|
14496
14496
|
ordinal: Qd,
|
|
14497
14497
|
dayOfMonthOrdinalParse: Hd,
|
|
14498
14498
|
relativeTime: Ad,
|
|
14499
14499
|
months: rh,
|
|
14500
|
-
monthsShort:
|
|
14500
|
+
monthsShort: Gl,
|
|
14501
14501
|
week: Ih,
|
|
14502
14502
|
weekdays: Sh,
|
|
14503
14503
|
weekdaysMin: Dh,
|
|
14504
|
-
weekdaysShort:
|
|
14504
|
+
weekdaysShort: ql,
|
|
14505
14505
|
meridiemParse: Kh
|
|
14506
14506
|
}, Re = {}, So = {}, wo;
|
|
14507
14507
|
function Bh(o, t) {
|
|
@@ -14511,12 +14511,12 @@ function Bh(o, t) {
|
|
|
14511
14511
|
return e;
|
|
14512
14512
|
return n;
|
|
14513
14513
|
}
|
|
14514
|
-
function
|
|
14514
|
+
function vr(o) {
|
|
14515
14515
|
return o && o.toLowerCase().replace("_", "-");
|
|
14516
14516
|
}
|
|
14517
14517
|
function Gh(o) {
|
|
14518
14518
|
for (var t = 0, e, n, i, r; t < o.length; ) {
|
|
14519
|
-
for (r =
|
|
14519
|
+
for (r = vr(o[t]).split("-"), e = r.length, n = vr(o[t + 1]), n = n ? n.split("-") : null; e > 0; ) {
|
|
14520
14520
|
if (i = Wi(r.slice(0, e).join("-")), i)
|
|
14521
14521
|
return i;
|
|
14522
14522
|
if (n && n.length >= e && Bh(r, n) >= e - 1)
|
|
@@ -14548,9 +14548,9 @@ function wn(o, t) {
|
|
|
14548
14548
|
}
|
|
14549
14549
|
function tr(o, t) {
|
|
14550
14550
|
if (t !== null) {
|
|
14551
|
-
var e, n =
|
|
14551
|
+
var e, n = na;
|
|
14552
14552
|
if (t.abbr = o, Re[o] != null)
|
|
14553
|
-
|
|
14553
|
+
Zl(
|
|
14554
14554
|
"defineLocaleOverride",
|
|
14555
14555
|
"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
|
|
14556
14556
|
), n = Re[o]._config;
|
|
@@ -14572,7 +14572,7 @@ function tr(o, t) {
|
|
|
14572
14572
|
}
|
|
14573
14573
|
function Jh(o, t) {
|
|
14574
14574
|
if (t != null) {
|
|
14575
|
-
var e, n, i =
|
|
14575
|
+
var e, n, i = na;
|
|
14576
14576
|
Re[o] != null && Re[o].parentLocale != null ? Re[o].set(Os(Re[o]._config, t)) : (n = Wi(o), n != null && (i = n._config), t = Os(i, t), n == null && (t.abbr = o), e = new As(t), e.parentLocale = Re[o], Re[o] = e), wn(o);
|
|
14577
14577
|
} else
|
|
14578
14578
|
Re[o] != null && (Re[o].parentLocale != null ? (Re[o] = Re[o].parentLocale, o === wn() && wn(o)) : Re[o] != null && delete Re[o]);
|
|
@@ -14632,7 +14632,7 @@ var zh = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
14632
14632
|
PDT: -420,
|
|
14633
14633
|
PST: -480
|
|
14634
14634
|
};
|
|
14635
|
-
function
|
|
14635
|
+
function oa(o) {
|
|
14636
14636
|
var t, e, n = o._i, i = zh.exec(n) || jh.exec(n), r, s, l, a, c = qo.length, u = qi.length;
|
|
14637
14637
|
if (i) {
|
|
14638
14638
|
for (Wt(o).iso = !0, t = 0, e = c; t < e; t++)
|
|
@@ -14673,7 +14673,7 @@ function na(o) {
|
|
|
14673
14673
|
function oR(o, t, e, n, i, r) {
|
|
14674
14674
|
var s = [
|
|
14675
14675
|
iR(o),
|
|
14676
|
-
|
|
14676
|
+
Gl.indexOf(t),
|
|
14677
14677
|
parseInt(e, 10),
|
|
14678
14678
|
parseInt(n, 10),
|
|
14679
14679
|
parseInt(i, 10)
|
|
@@ -14689,7 +14689,7 @@ function sR(o) {
|
|
|
14689
14689
|
}
|
|
14690
14690
|
function rR(o, t, e) {
|
|
14691
14691
|
if (o) {
|
|
14692
|
-
var n =
|
|
14692
|
+
var n = ql.indexOf(o), i = new Date(
|
|
14693
14693
|
t[0],
|
|
14694
14694
|
t[1],
|
|
14695
14695
|
t[2]
|
|
@@ -14707,7 +14707,7 @@ function lR(o, t, e) {
|
|
|
14707
14707
|
var n = parseInt(e, 10), i = n % 100, r = (n - i) / 100;
|
|
14708
14708
|
return r * 60 + i;
|
|
14709
14709
|
}
|
|
14710
|
-
function
|
|
14710
|
+
function ia(o) {
|
|
14711
14711
|
var t = eR.exec(sR(o._i)), e;
|
|
14712
14712
|
if (t) {
|
|
14713
14713
|
if (e = oR(
|
|
@@ -14729,11 +14729,11 @@ function aR(o) {
|
|
|
14729
14729
|
o._d = /* @__PURE__ */ new Date(+t[1]);
|
|
14730
14730
|
return;
|
|
14731
14731
|
}
|
|
14732
|
-
if (
|
|
14732
|
+
if (oa(o), o._isValid === !1)
|
|
14733
14733
|
delete o._isValid;
|
|
14734
14734
|
else
|
|
14735
14735
|
return;
|
|
14736
|
-
if (
|
|
14736
|
+
if (ia(o), o._isValid === !1)
|
|
14737
14737
|
delete o._isValid;
|
|
14738
14738
|
else
|
|
14739
14739
|
return;
|
|
@@ -14775,7 +14775,7 @@ function uR(o) {
|
|
|
14775
14775
|
t.GG,
|
|
14776
14776
|
o._a[Se],
|
|
14777
14777
|
Uo(de(), 1, 4).year
|
|
14778
|
-
), n = no(t.W, 1), i = no(t.E, 1), (i < 1 || i > 7) && (a = !0)) : (r = o._locale._week.dow, s = o._locale._week.doy, c = Uo(de(), r, s), e = no(t.gg, o._a[Se], c.year), n = no(t.w, c.week), t.d != null ? (i = t.d, (i < 0 || i > 6) && (a = !0)) : t.e != null ? (i = t.e + r, (t.e < 0 || t.e > 6) && (a = !0)) : i = r), n < 1 || n > On(e, r, s) ? Wt(o)._overflowWeeks = !0 : a != null ? Wt(o)._overflowWeekday = !0 : (l =
|
|
14778
|
+
), n = no(t.W, 1), i = no(t.E, 1), (i < 1 || i > 7) && (a = !0)) : (r = o._locale._week.dow, s = o._locale._week.doy, c = Uo(de(), r, s), e = no(t.gg, o._a[Se], c.year), n = no(t.w, c.week), t.d != null ? (i = t.d, (i < 0 || i > 6) && (a = !0)) : t.e != null ? (i = t.e + r, (t.e < 0 || t.e > 6) && (a = !0)) : i = r), n < 1 || n > On(e, r, s) ? Wt(o)._overflowWeeks = !0 : a != null ? Wt(o)._overflowWeekday = !0 : (l = jl(e, n, i, r, s), o._a[Se] = l.year, o._dayOfYear = l.dayOfYear);
|
|
14779
14779
|
}
|
|
14780
14780
|
dt.ISO_8601 = function() {
|
|
14781
14781
|
};
|
|
@@ -14783,11 +14783,11 @@ dt.RFC_2822 = function() {
|
|
|
14783
14783
|
};
|
|
14784
14784
|
function or(o) {
|
|
14785
14785
|
if (o._f === dt.ISO_8601) {
|
|
14786
|
-
|
|
14786
|
+
oa(o);
|
|
14787
14787
|
return;
|
|
14788
14788
|
}
|
|
14789
14789
|
if (o._f === dt.RFC_2822) {
|
|
14790
|
-
|
|
14790
|
+
ia(o);
|
|
14791
14791
|
return;
|
|
14792
14792
|
}
|
|
14793
14793
|
o._a = [], Wt(o).empty = !0;
|
|
@@ -14819,7 +14819,7 @@ function hR(o) {
|
|
|
14819
14819
|
function RR(o) {
|
|
14820
14820
|
if (!o._d) {
|
|
14821
14821
|
var t = Bs(o._i), e = t.day === void 0 ? t.date : t.day;
|
|
14822
|
-
o._a =
|
|
14822
|
+
o._a = Ul(
|
|
14823
14823
|
[t.year, t.month, e, t.hour, t.minute, t.second, t.millisecond],
|
|
14824
14824
|
function(n) {
|
|
14825
14825
|
return n && parseInt(n, 10);
|
|
@@ -14828,25 +14828,25 @@ function RR(o) {
|
|
|
14828
14828
|
}
|
|
14829
14829
|
}
|
|
14830
14830
|
function gR(o) {
|
|
14831
|
-
var t = new Qo(er(
|
|
14831
|
+
var t = new Qo(er(sa(o)));
|
|
14832
14832
|
return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
|
|
14833
14833
|
}
|
|
14834
|
-
function
|
|
14834
|
+
function sa(o) {
|
|
14835
14835
|
var t = o._i, e = o._f;
|
|
14836
|
-
return o._locale = o._locale || Dn(o._l), t === null || e === void 0 && t === "" ? Fi({ nullInput: !0 }) : (typeof t == "string" && (o._i = t = o._locale.preparse(t)), Je(t) ? new Qo(er(t)) : (
|
|
14836
|
+
return o._locale = o._locale || Dn(o._l), t === null || e === void 0 && t === "" ? Fi({ nullInput: !0 }) : (typeof t == "string" && (o._i = t = o._locale.preparse(t)), Je(t) ? new Qo(er(t)) : (vo(t) ? o._d = t : ke(e) ? hR(o) : e ? or(o) : fR(o), Hs(o) || (o._d = null), o));
|
|
14837
14837
|
}
|
|
14838
14838
|
function fR(o) {
|
|
14839
14839
|
var t = o._i;
|
|
14840
|
-
xe(t) ? o._d = new Date(dt.now()) :
|
|
14840
|
+
xe(t) ? o._d = new Date(dt.now()) : vo(t) ? o._d = new Date(t.valueOf()) : typeof t == "string" ? aR(o) : ke(t) ? (o._a = Ul(t.slice(0), function(e) {
|
|
14841
14841
|
return parseInt(e, 10);
|
|
14842
14842
|
}), nr(o)) : $n(t) ? RR(o) : Sn(t) ? o._d = new Date(t) : dt.createFromInputFallback(o);
|
|
14843
14843
|
}
|
|
14844
|
-
function
|
|
14844
|
+
function ra(o, t, e, n, i) {
|
|
14845
14845
|
var r = {};
|
|
14846
14846
|
return (t === !0 || t === !1) && (n = t, t = void 0), (e === !0 || e === !1) && (n = e, e = void 0), ($n(o) && Qs(o) || ke(o) && o.length === 0) && (o = void 0), r._isAMomentObject = !0, r._useUTC = r._isUTC = i, r._l = e, r._i = o, r._f = t, r._strict = n, gR(r);
|
|
14847
14847
|
}
|
|
14848
14848
|
function de(o, t, e, n) {
|
|
14849
|
-
return
|
|
14849
|
+
return ra(o, t, e, n, !1);
|
|
14850
14850
|
}
|
|
14851
14851
|
var pR = Qe(
|
|
14852
14852
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
@@ -14861,7 +14861,7 @@ var pR = Qe(
|
|
|
14861
14861
|
return this.isValid() && o.isValid() ? o > this ? this : o : Fi();
|
|
14862
14862
|
}
|
|
14863
14863
|
);
|
|
14864
|
-
function
|
|
14864
|
+
function la(o, t) {
|
|
14865
14865
|
var e, n;
|
|
14866
14866
|
if (t.length === 1 && ke(t[0]) && (t = t[0]), !t.length)
|
|
14867
14867
|
return de();
|
|
@@ -14871,11 +14871,11 @@ function ra(o, t) {
|
|
|
14871
14871
|
}
|
|
14872
14872
|
function IR() {
|
|
14873
14873
|
var o = [].slice.call(arguments, 0);
|
|
14874
|
-
return
|
|
14874
|
+
return la("isBefore", o);
|
|
14875
14875
|
}
|
|
14876
14876
|
function mR() {
|
|
14877
14877
|
var o = [].slice.call(arguments, 0);
|
|
14878
|
-
return
|
|
14878
|
+
return la("isAfter", o);
|
|
14879
14879
|
}
|
|
14880
14880
|
var LR = function() {
|
|
14881
14881
|
return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
|
|
@@ -14927,14 +14927,14 @@ function MR(o, t, e) {
|
|
|
14927
14927
|
Ht(o[s]) !== Ht(t[s]) && r++;
|
|
14928
14928
|
return r + i;
|
|
14929
14929
|
}
|
|
14930
|
-
function
|
|
14930
|
+
function aa(o, t) {
|
|
14931
14931
|
Pt(o, 0, 0, function() {
|
|
14932
14932
|
var e = this.utcOffset(), n = "+";
|
|
14933
14933
|
return e < 0 && (e = -e, n = "-"), n + dn(~~(e / 60), 2) + t + dn(~~e % 60, 2);
|
|
14934
14934
|
});
|
|
14935
14935
|
}
|
|
14936
|
-
|
|
14937
|
-
|
|
14936
|
+
aa("Z", ":");
|
|
14937
|
+
aa("ZZ", "");
|
|
14938
14938
|
ht("Z", yi);
|
|
14939
14939
|
ht("ZZ", yi);
|
|
14940
14940
|
ee(["Z", "ZZ"], function(o, t, e) {
|
|
@@ -14947,7 +14947,7 @@ function ir(o, t) {
|
|
|
14947
14947
|
}
|
|
14948
14948
|
function sr(o, t) {
|
|
14949
14949
|
var e, n;
|
|
14950
|
-
return t._isUTC ? (e = t.clone(), n = (Je(o) ||
|
|
14950
|
+
return t._isUTC ? (e = t.clone(), n = (Je(o) || vo(o) ? o.valueOf() : de(o).valueOf()) - e.valueOf(), e._d.setTime(e._d.valueOf() + n), dt.updateOffset(e, !1), e) : de(o).local();
|
|
14951
14951
|
}
|
|
14952
14952
|
function Cs(o) {
|
|
14953
14953
|
return -Math.round(o._d.getTimezoneOffset());
|
|
@@ -14963,7 +14963,7 @@ function DR(o, t, e) {
|
|
|
14963
14963
|
if (o = ir(yi, o), o === null)
|
|
14964
14964
|
return this;
|
|
14965
14965
|
} else Math.abs(o) < 16 && !e && (o = o * 60);
|
|
14966
|
-
return !this._isUTC && t && (i = Cs(this)), this._offset = o, this._isUTC = !0, i != null && this.add(i, "m"), n !== o && (!t || this._changeInProgress ?
|
|
14966
|
+
return !this._isUTC && t && (i = Cs(this)), this._offset = o, this._isUTC = !0, i != null && this.add(i, "m"), n !== o && (!t || this._changeInProgress ? da(
|
|
14967
14967
|
this,
|
|
14968
14968
|
$e(o - n, "m"),
|
|
14969
14969
|
1,
|
|
@@ -15000,7 +15000,7 @@ function yR() {
|
|
|
15000
15000
|
if (!xe(this._isDSTShifted))
|
|
15001
15001
|
return this._isDSTShifted;
|
|
15002
15002
|
var o = {}, t;
|
|
15003
|
-
return Ks(o, this), o =
|
|
15003
|
+
return Ks(o, this), o = sa(o), o._a ? (t = o._isUTC ? hn(o._a) : de(o._a), this._isDSTShifted = this.isValid() && MR(o._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
15004
15004
|
}
|
|
15005
15005
|
function VR() {
|
|
15006
15006
|
return this.isValid() ? !this._isUTC : !1;
|
|
@@ -15008,7 +15008,7 @@ function VR() {
|
|
|
15008
15008
|
function WR() {
|
|
15009
15009
|
return this.isValid() ? this._isUTC : !1;
|
|
15010
15010
|
}
|
|
15011
|
-
function
|
|
15011
|
+
function ca() {
|
|
15012
15012
|
return this.isValid() ? this._isUTC && this._offset === 0 : !1;
|
|
15013
15013
|
}
|
|
15014
15014
|
var YR = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, UR = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
@@ -15053,25 +15053,25 @@ function wR(o, t) {
|
|
|
15053
15053
|
var e;
|
|
15054
15054
|
return o.isValid() && t.isValid() ? (t = sr(t, o), o.isBefore(t) ? e = Qr(o, t) : (e = Qr(t, o), e.milliseconds = -e.milliseconds, e.months = -e.months), e) : { milliseconds: 0, months: 0 };
|
|
15055
15055
|
}
|
|
15056
|
-
function
|
|
15056
|
+
function ua(o, t) {
|
|
15057
15057
|
return function(e, n) {
|
|
15058
15058
|
var i, r;
|
|
15059
|
-
return n !== null && !isNaN(+n) && (
|
|
15059
|
+
return n !== null && !isNaN(+n) && (Zl(
|
|
15060
15060
|
t,
|
|
15061
15061
|
"moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
|
15062
|
-
), r = e, e = n, n = r), i = $e(e, n),
|
|
15062
|
+
), r = e, e = n, n = r), i = $e(e, n), da(this, i, o), this;
|
|
15063
15063
|
};
|
|
15064
15064
|
}
|
|
15065
|
-
function
|
|
15065
|
+
function da(o, t, e, n) {
|
|
15066
15066
|
var i = t._milliseconds, r = Ds(t._days), s = Ds(t._months);
|
|
15067
|
-
o.isValid() && (n = n ?? !0, s &&
|
|
15067
|
+
o.isValid() && (n = n ?? !0, s && Jl(o, Wo(o, "Month") + s * e), r && Bl(o, "Date", Wo(o, "Date") + r * e), i && o._d.setTime(o._d.valueOf() + i * e), n && dt.updateOffset(o, r || s));
|
|
15068
15068
|
}
|
|
15069
|
-
var
|
|
15070
|
-
function
|
|
15069
|
+
var ZR = ua(1, "add"), vR = ua(-1, "subtract");
|
|
15070
|
+
function ha(o) {
|
|
15071
15071
|
return typeof o == "string" || o instanceof String;
|
|
15072
15072
|
}
|
|
15073
15073
|
function QR(o) {
|
|
15074
|
-
return Je(o) ||
|
|
15074
|
+
return Je(o) || vo(o) || ha(o) || Sn(o) || KR(o) || HR(o) || o === null || o === void 0;
|
|
15075
15075
|
}
|
|
15076
15076
|
function HR(o) {
|
|
15077
15077
|
var t = $n(o) && !Qs(o), e = !1, n = [
|
|
@@ -15107,7 +15107,7 @@ function HR(o) {
|
|
|
15107
15107
|
function KR(o) {
|
|
15108
15108
|
var t = ke(o), e = !1;
|
|
15109
15109
|
return t && (e = o.filter(function(n) {
|
|
15110
|
-
return !Sn(n) &&
|
|
15110
|
+
return !Sn(n) && ha(o);
|
|
15111
15111
|
}).length === 0), t && e;
|
|
15112
15112
|
}
|
|
15113
15113
|
function AR(o) {
|
|
@@ -15198,7 +15198,7 @@ function tg(o, t, e) {
|
|
|
15198
15198
|
default:
|
|
15199
15199
|
r = this - n;
|
|
15200
15200
|
}
|
|
15201
|
-
return e ? r :
|
|
15201
|
+
return e ? r : ve(r);
|
|
15202
15202
|
}
|
|
15203
15203
|
function ri(o, t) {
|
|
15204
15204
|
if (o.date() < t.date())
|
|
@@ -15246,34 +15246,34 @@ function lg(o, t) {
|
|
|
15246
15246
|
function ag(o) {
|
|
15247
15247
|
return this.to(de(), o);
|
|
15248
15248
|
}
|
|
15249
|
-
function
|
|
15249
|
+
function Ra(o) {
|
|
15250
15250
|
var t;
|
|
15251
15251
|
return o === void 0 ? this._locale._abbr : (t = Dn(o), t != null && (this._locale = t), this);
|
|
15252
15252
|
}
|
|
15253
|
-
var
|
|
15253
|
+
var ga = Qe(
|
|
15254
15254
|
"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
|
|
15255
15255
|
function(o) {
|
|
15256
15256
|
return o === void 0 ? this.localeData() : this.locale(o);
|
|
15257
15257
|
}
|
|
15258
15258
|
);
|
|
15259
|
-
function
|
|
15259
|
+
function fa() {
|
|
15260
15260
|
return this._locale;
|
|
15261
15261
|
}
|
|
15262
|
-
var Ei = 1e3, uo = 60 * Ei, Oi = 60 * uo,
|
|
15262
|
+
var Ei = 1e3, uo = 60 * Ei, Oi = 60 * uo, pa = (365 * 400 + 97) * 24 * Oi;
|
|
15263
15263
|
function ho(o, t) {
|
|
15264
15264
|
return (o % t + t) % t;
|
|
15265
15265
|
}
|
|
15266
|
-
function pa(o, t, e) {
|
|
15267
|
-
return o < 100 && o >= 0 ? new Date(o + 400, t, e) - fa : new Date(o, t, e).valueOf();
|
|
15268
|
-
}
|
|
15269
15266
|
function Ta(o, t, e) {
|
|
15270
|
-
return o < 100 && o >= 0 ? Date
|
|
15267
|
+
return o < 100 && o >= 0 ? new Date(o + 400, t, e) - pa : new Date(o, t, e).valueOf();
|
|
15268
|
+
}
|
|
15269
|
+
function Ia(o, t, e) {
|
|
15270
|
+
return o < 100 && o >= 0 ? Date.UTC(o + 400, t, e) - pa : Date.UTC(o, t, e);
|
|
15271
15271
|
}
|
|
15272
15272
|
function cg(o) {
|
|
15273
15273
|
var t, e;
|
|
15274
15274
|
if (o = He(o), o === void 0 || o === "millisecond" || !this.isValid())
|
|
15275
15275
|
return this;
|
|
15276
|
-
switch (e = this._isUTC ?
|
|
15276
|
+
switch (e = this._isUTC ? Ia : Ta, o) {
|
|
15277
15277
|
case "year":
|
|
15278
15278
|
t = e(this.year(), 0, 1);
|
|
15279
15279
|
break;
|
|
@@ -15324,7 +15324,7 @@ function ug(o) {
|
|
|
15324
15324
|
var t, e;
|
|
15325
15325
|
if (o = He(o), o === void 0 || o === "millisecond" || !this.isValid())
|
|
15326
15326
|
return this;
|
|
15327
|
-
switch (e = this._isUTC ?
|
|
15327
|
+
switch (e = this._isUTC ? Ia : Ta, o) {
|
|
15328
15328
|
case "year":
|
|
15329
15329
|
t = e(this.year() + 1, 0, 1) - 1;
|
|
15330
15330
|
break;
|
|
@@ -15585,7 +15585,7 @@ Ko(["gg", "GG"], function(o, t, e, n) {
|
|
|
15585
15585
|
t[n] = dt.parseTwoDigitYear(o);
|
|
15586
15586
|
});
|
|
15587
15587
|
function Vg(o) {
|
|
15588
|
-
return
|
|
15588
|
+
return ma.call(
|
|
15589
15589
|
this,
|
|
15590
15590
|
o,
|
|
15591
15591
|
this.week(),
|
|
@@ -15595,7 +15595,7 @@ function Vg(o) {
|
|
|
15595
15595
|
);
|
|
15596
15596
|
}
|
|
15597
15597
|
function Wg(o) {
|
|
15598
|
-
return
|
|
15598
|
+
return ma.call(
|
|
15599
15599
|
this,
|
|
15600
15600
|
o,
|
|
15601
15601
|
this.isoWeek(),
|
|
@@ -15614,20 +15614,20 @@ function wg() {
|
|
|
15614
15614
|
var o = this.localeData()._week;
|
|
15615
15615
|
return On(this.year(), o.dow, o.doy);
|
|
15616
15616
|
}
|
|
15617
|
-
function
|
|
15617
|
+
function Zg() {
|
|
15618
15618
|
var o = this.localeData()._week;
|
|
15619
15619
|
return On(this.weekYear(), o.dow, o.doy);
|
|
15620
15620
|
}
|
|
15621
|
-
function
|
|
15621
|
+
function ma(o, t, e, n, i) {
|
|
15622
15622
|
var r;
|
|
15623
|
-
return o == null ? Uo(this, n, i).year : (r = On(o, n, i), t > r && (t = r),
|
|
15623
|
+
return o == null ? Uo(this, n, i).year : (r = On(o, n, i), t > r && (t = r), vg.call(this, o, t, e, n, i));
|
|
15624
15624
|
}
|
|
15625
|
-
function
|
|
15626
|
-
var r =
|
|
15625
|
+
function vg(o, t, e, n, i) {
|
|
15626
|
+
var r = jl(o, t, e, n, i), s = Yo(r.year, 0, r.dayOfYear);
|
|
15627
15627
|
return this.year(s.getUTCFullYear()), this.month(s.getUTCMonth()), this.date(s.getUTCDate()), this;
|
|
15628
15628
|
}
|
|
15629
15629
|
Pt("Q", 0, "Qo", "quarter");
|
|
15630
|
-
ht("Q",
|
|
15630
|
+
ht("Q", Ql);
|
|
15631
15631
|
ee("Q", function(o, t) {
|
|
15632
15632
|
t[mn] = (Ht(o) - 1) * 3;
|
|
15633
15633
|
});
|
|
@@ -15644,10 +15644,10 @@ ee(["D", "DD"], rn);
|
|
|
15644
15644
|
ee("Do", function(o, t) {
|
|
15645
15645
|
t[rn] = Ht(o.match(he)[0]);
|
|
15646
15646
|
});
|
|
15647
|
-
var
|
|
15647
|
+
var La = Eo("Date", !0);
|
|
15648
15648
|
Pt("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
15649
15649
|
ht("DDD", Ni);
|
|
15650
|
-
ht("DDDD",
|
|
15650
|
+
ht("DDDD", Hl);
|
|
15651
15651
|
ee(["DDD", "DDDD"], function(o, t, e) {
|
|
15652
15652
|
e._dayOfYear = Ht(o);
|
|
15653
15653
|
});
|
|
@@ -15692,10 +15692,10 @@ Pt(0, ["SSSSSSSS", 8], 0, function() {
|
|
|
15692
15692
|
Pt(0, ["SSSSSSSSS", 9], 0, function() {
|
|
15693
15693
|
return this.millisecond() * 1e6;
|
|
15694
15694
|
});
|
|
15695
|
-
ht("S", Ni,
|
|
15695
|
+
ht("S", Ni, Ql);
|
|
15696
15696
|
ht("SS", Ni, we);
|
|
15697
|
-
ht("SSS", Ni,
|
|
15698
|
-
var Un,
|
|
15697
|
+
ht("SSS", Ni, Hl);
|
|
15698
|
+
var Un, Pa;
|
|
15699
15699
|
for (Un = "SSSS"; Un.length <= 9; Un += "S")
|
|
15700
15700
|
ht(Un, Lo);
|
|
15701
15701
|
function _g(o, t) {
|
|
@@ -15703,7 +15703,7 @@ function _g(o, t) {
|
|
|
15703
15703
|
}
|
|
15704
15704
|
for (Un = "S"; Un.length <= 9; Un += "S")
|
|
15705
15705
|
ee(Un, _g);
|
|
15706
|
-
|
|
15706
|
+
Pa = Eo("Milliseconds", !1);
|
|
15707
15707
|
Pt("z", 0, 0, "zoneAbbr");
|
|
15708
15708
|
Pt("zz", 0, 0, "zoneName");
|
|
15709
15709
|
function Bg() {
|
|
@@ -15713,7 +15713,7 @@ function Gg() {
|
|
|
15713
15713
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
15714
15714
|
}
|
|
15715
15715
|
var et = Qo.prototype;
|
|
15716
|
-
et.add =
|
|
15716
|
+
et.add = ZR;
|
|
15717
15717
|
et.calendar = BR;
|
|
15718
15718
|
et.clone = GR;
|
|
15719
15719
|
et.diff = tg;
|
|
@@ -15732,15 +15732,15 @@ et.isSame = zR;
|
|
|
15732
15732
|
et.isSameOrAfter = jR;
|
|
15733
15733
|
et.isSameOrBefore = qR;
|
|
15734
15734
|
et.isValid = Tg;
|
|
15735
|
-
et.lang =
|
|
15736
|
-
et.locale =
|
|
15737
|
-
et.localeData =
|
|
15735
|
+
et.lang = ga;
|
|
15736
|
+
et.locale = Ra;
|
|
15737
|
+
et.localeData = fa;
|
|
15738
15738
|
et.max = TR;
|
|
15739
15739
|
et.min = pR;
|
|
15740
15740
|
et.parsingFlags = Ig;
|
|
15741
15741
|
et.set = ih;
|
|
15742
15742
|
et.startOf = cg;
|
|
15743
|
-
et.subtract =
|
|
15743
|
+
et.subtract = vR;
|
|
15744
15744
|
et.toArray = gg;
|
|
15745
15745
|
et.toObject = fg;
|
|
15746
15746
|
et.toDate = Rg;
|
|
@@ -15758,20 +15758,20 @@ et.eraName = Mg;
|
|
|
15758
15758
|
et.eraNarrow = Sg;
|
|
15759
15759
|
et.eraAbbr = Dg;
|
|
15760
15760
|
et.eraYear = Cg;
|
|
15761
|
-
et.year =
|
|
15761
|
+
et.year = _l;
|
|
15762
15762
|
et.isLeapYear = nh;
|
|
15763
15763
|
et.weekYear = Vg;
|
|
15764
15764
|
et.isoWeekYear = Wg;
|
|
15765
15765
|
et.quarter = et.quarters = Qg;
|
|
15766
|
-
et.month =
|
|
15766
|
+
et.month = $l;
|
|
15767
15767
|
et.daysInMonth = Rh;
|
|
15768
15768
|
et.week = et.weeks = Ph;
|
|
15769
15769
|
et.isoWeek = et.isoWeeks = Eh;
|
|
15770
15770
|
et.weeksInYear = wg;
|
|
15771
|
-
et.weeksInWeekYear =
|
|
15771
|
+
et.weeksInWeekYear = Zg;
|
|
15772
15772
|
et.isoWeeksInYear = Yg;
|
|
15773
15773
|
et.isoWeeksInISOWeekYear = Ug;
|
|
15774
|
-
et.date =
|
|
15774
|
+
et.date = La;
|
|
15775
15775
|
et.day = et.days = Wh;
|
|
15776
15776
|
et.weekday = Yh;
|
|
15777
15777
|
et.isoWeekday = Uh;
|
|
@@ -15779,7 +15779,7 @@ et.dayOfYear = Hg;
|
|
|
15779
15779
|
et.hour = et.hours = Ah;
|
|
15780
15780
|
et.minute = et.minutes = Kg;
|
|
15781
15781
|
et.second = et.seconds = Ag;
|
|
15782
|
-
et.millisecond = et.milliseconds =
|
|
15782
|
+
et.millisecond = et.milliseconds = Pa;
|
|
15783
15783
|
et.utcOffset = DR;
|
|
15784
15784
|
et.utc = FR;
|
|
15785
15785
|
et.local = XR;
|
|
@@ -15788,21 +15788,21 @@ et.hasAlignedHourOffset = xR;
|
|
|
15788
15788
|
et.isDST = bR;
|
|
15789
15789
|
et.isLocal = VR;
|
|
15790
15790
|
et.isUtcOffset = WR;
|
|
15791
|
-
et.isUtc =
|
|
15792
|
-
et.isUTC =
|
|
15791
|
+
et.isUtc = ca;
|
|
15792
|
+
et.isUTC = ca;
|
|
15793
15793
|
et.zoneAbbr = Bg;
|
|
15794
15794
|
et.zoneName = Gg;
|
|
15795
15795
|
et.dates = Qe(
|
|
15796
15796
|
"dates accessor is deprecated. Use date instead.",
|
|
15797
|
-
|
|
15797
|
+
La
|
|
15798
15798
|
);
|
|
15799
15799
|
et.months = Qe(
|
|
15800
15800
|
"months accessor is deprecated. Use month instead",
|
|
15801
|
-
|
|
15801
|
+
$l
|
|
15802
15802
|
);
|
|
15803
15803
|
et.years = Qe(
|
|
15804
15804
|
"years accessor is deprecated. Use year instead",
|
|
15805
|
-
|
|
15805
|
+
_l
|
|
15806
15806
|
);
|
|
15807
15807
|
et.zone = Qe(
|
|
15808
15808
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
@@ -15818,16 +15818,16 @@ function kg(o) {
|
|
|
15818
15818
|
function Jg() {
|
|
15819
15819
|
return de.apply(null, arguments).parseZone();
|
|
15820
15820
|
}
|
|
15821
|
-
function
|
|
15821
|
+
function Ea(o) {
|
|
15822
15822
|
return o;
|
|
15823
15823
|
}
|
|
15824
15824
|
var jt = As.prototype;
|
|
15825
15825
|
jt.calendar = Vd;
|
|
15826
15826
|
jt.longDateFormat = wd;
|
|
15827
|
-
jt.invalidDate =
|
|
15827
|
+
jt.invalidDate = vd;
|
|
15828
15828
|
jt.ordinal = Kd;
|
|
15829
|
-
jt.preparse =
|
|
15830
|
-
jt.postformat =
|
|
15829
|
+
jt.preparse = Ea;
|
|
15830
|
+
jt.postformat = Ea;
|
|
15831
15831
|
jt.relativeTime = _d;
|
|
15832
15832
|
jt.pastFuture = Bd;
|
|
15833
15833
|
jt.set = bd;
|
|
@@ -15850,15 +15850,15 @@ jt.weekdaysMin = bh;
|
|
|
15850
15850
|
jt.weekdaysShort = xh;
|
|
15851
15851
|
jt.weekdaysParse = Vh;
|
|
15852
15852
|
jt.weekdaysRegex = wh;
|
|
15853
|
-
jt.weekdaysShortRegex =
|
|
15854
|
-
jt.weekdaysMinRegex =
|
|
15853
|
+
jt.weekdaysShortRegex = Zh;
|
|
15854
|
+
jt.weekdaysMinRegex = vh;
|
|
15855
15855
|
jt.isPM = Hh;
|
|
15856
15856
|
jt.meridiem = _h;
|
|
15857
15857
|
function Mi(o, t, e, n) {
|
|
15858
15858
|
var i = Dn(), r = hn().set(n, t);
|
|
15859
15859
|
return i[e](r, o);
|
|
15860
15860
|
}
|
|
15861
|
-
function
|
|
15861
|
+
function Oa(o, t, e) {
|
|
15862
15862
|
if (Sn(o) && (t = o, o = void 0), o = o || "", t != null)
|
|
15863
15863
|
return Mi(o, t, e, "month");
|
|
15864
15864
|
var n, i = [];
|
|
@@ -15876,10 +15876,10 @@ function ar(o, t, e, n) {
|
|
|
15876
15876
|
return l;
|
|
15877
15877
|
}
|
|
15878
15878
|
function $g(o, t) {
|
|
15879
|
-
return
|
|
15879
|
+
return Oa(o, t, "months");
|
|
15880
15880
|
}
|
|
15881
15881
|
function zg(o, t) {
|
|
15882
|
-
return
|
|
15882
|
+
return Oa(o, t, "monthsShort");
|
|
15883
15883
|
}
|
|
15884
15884
|
function jg(o, t, e) {
|
|
15885
15885
|
return ar(o, t, e, "weekdays");
|
|
@@ -15928,24 +15928,24 @@ function ef() {
|
|
|
15928
15928
|
var o = this._data;
|
|
15929
15929
|
return this._milliseconds = pn(this._milliseconds), this._days = pn(this._days), this._months = pn(this._months), o.milliseconds = pn(o.milliseconds), o.seconds = pn(o.seconds), o.minutes = pn(o.minutes), o.hours = pn(o.hours), o.months = pn(o.months), o.years = pn(o.years), this;
|
|
15930
15930
|
}
|
|
15931
|
-
function
|
|
15931
|
+
function Ma(o, t, e, n) {
|
|
15932
15932
|
var i = $e(t, e);
|
|
15933
15933
|
return o._milliseconds += n * i._milliseconds, o._days += n * i._days, o._months += n * i._months, o._bubble();
|
|
15934
15934
|
}
|
|
15935
15935
|
function nf(o, t) {
|
|
15936
|
-
return
|
|
15936
|
+
return Ma(this, o, t, 1);
|
|
15937
15937
|
}
|
|
15938
15938
|
function of(o, t) {
|
|
15939
|
-
return
|
|
15939
|
+
return Ma(this, o, t, -1);
|
|
15940
15940
|
}
|
|
15941
15941
|
function Hr(o) {
|
|
15942
15942
|
return o < 0 ? Math.floor(o) : Math.ceil(o);
|
|
15943
15943
|
}
|
|
15944
15944
|
function sf() {
|
|
15945
15945
|
var o = this._milliseconds, t = this._days, e = this._months, n = this._data, i, r, s, l, a;
|
|
15946
|
-
return o >= 0 && t >= 0 && e >= 0 || o <= 0 && t <= 0 && e <= 0 || (o += Hr(Fs(e) + t) * 864e5, t = 0, e = 0), n.milliseconds = o % 1e3, i =
|
|
15946
|
+
return o >= 0 && t >= 0 && e >= 0 || o <= 0 && t <= 0 && e <= 0 || (o += Hr(Fs(e) + t) * 864e5, t = 0, e = 0), n.milliseconds = o % 1e3, i = ve(o / 1e3), n.seconds = i % 60, r = ve(i / 60), n.minutes = r % 60, s = ve(r / 60), n.hours = s % 24, t += ve(s / 24), a = ve(Sa(t)), e += a, t -= Hr(Fs(a)), l = ve(e / 12), e %= 12, n.days = t, n.months = e, n.years = l, this;
|
|
15947
15947
|
}
|
|
15948
|
-
function
|
|
15948
|
+
function Sa(o) {
|
|
15949
15949
|
return o * 4800 / 146097;
|
|
15950
15950
|
}
|
|
15951
15951
|
function Fs(o) {
|
|
@@ -15956,7 +15956,7 @@ function rf(o) {
|
|
|
15956
15956
|
return NaN;
|
|
15957
15957
|
var t, e, n = this._milliseconds;
|
|
15958
15958
|
if (o = He(o), o === "month" || o === "quarter" || o === "year")
|
|
15959
|
-
switch (t = this._days + n / 864e5, e = this._months +
|
|
15959
|
+
switch (t = this._days + n / 864e5, e = this._months + Sa(t), o) {
|
|
15960
15960
|
case "month":
|
|
15961
15961
|
return e;
|
|
15962
15962
|
case "quarter":
|
|
@@ -15988,7 +15988,7 @@ function Cn(o) {
|
|
|
15988
15988
|
return this.as(o);
|
|
15989
15989
|
};
|
|
15990
15990
|
}
|
|
15991
|
-
var
|
|
15991
|
+
var Da = Cn("ms"), lf = Cn("s"), af = Cn("m"), cf = Cn("h"), uf = Cn("d"), df = Cn("w"), hf = Cn("M"), Rf = Cn("Q"), gf = Cn("y"), ff = Da;
|
|
15992
15992
|
function pf() {
|
|
15993
15993
|
return $e(this);
|
|
15994
15994
|
}
|
|
@@ -16002,7 +16002,7 @@ function jn(o) {
|
|
|
16002
16002
|
}
|
|
16003
16003
|
var If = jn("milliseconds"), mf = jn("seconds"), Lf = jn("minutes"), Pf = jn("hours"), Ef = jn("days"), Of = jn("months"), Mf = jn("years");
|
|
16004
16004
|
function Sf() {
|
|
16005
|
-
return
|
|
16005
|
+
return ve(this.days() / 7);
|
|
16006
16006
|
}
|
|
16007
16007
|
var In = Math.round, lo = {
|
|
16008
16008
|
ss: 44,
|
|
@@ -16047,7 +16047,7 @@ function wi() {
|
|
|
16047
16047
|
if (!this.isValid())
|
|
16048
16048
|
return this.localeData().invalidDate();
|
|
16049
16049
|
var o = ts(this._milliseconds) / 1e3, t = ts(this._days), e = ts(this._months), n, i, r, s, l = this.asSeconds(), a, c, u, h;
|
|
16050
|
-
return l ? (n =
|
|
16050
|
+
return l ? (n = ve(o / 60), i = ve(n / 60), o %= 60, n %= 60, r = ve(e / 12), e %= 12, s = o ? o.toFixed(3).replace(/\.?0+$/, "") : "", a = l < 0 ? "-" : "", c = eo(this._months) !== eo(l) ? "-" : "", u = eo(this._days) !== eo(l) ? "-" : "", h = eo(this._milliseconds) !== eo(l) ? "-" : "", a + "P" + (r ? c + r + "Y" : "") + (e ? c + e + "M" : "") + (t ? u + t + "D" : "") + (i || n || o ? "T" : "") + (i ? h + i + "H" : "") + (n ? h + n + "M" : "") + (o ? h + s + "S" : "")) : "P0D";
|
|
16051
16051
|
}
|
|
16052
16052
|
var Jt = Yi.prototype;
|
|
16053
16053
|
Jt.isValid = ER;
|
|
@@ -16055,7 +16055,7 @@ Jt.abs = ef;
|
|
|
16055
16055
|
Jt.add = nf;
|
|
16056
16056
|
Jt.subtract = of;
|
|
16057
16057
|
Jt.as = rf;
|
|
16058
|
-
Jt.asMilliseconds =
|
|
16058
|
+
Jt.asMilliseconds = Da;
|
|
16059
16059
|
Jt.asSeconds = lf;
|
|
16060
16060
|
Jt.asMinutes = af;
|
|
16061
16061
|
Jt.asHours = cf;
|
|
@@ -16080,13 +16080,13 @@ Jt.humanize = Nf;
|
|
|
16080
16080
|
Jt.toISOString = wi;
|
|
16081
16081
|
Jt.toString = wi;
|
|
16082
16082
|
Jt.toJSON = wi;
|
|
16083
|
-
Jt.locale =
|
|
16084
|
-
Jt.localeData =
|
|
16083
|
+
Jt.locale = Ra;
|
|
16084
|
+
Jt.localeData = fa;
|
|
16085
16085
|
Jt.toIsoString = Qe(
|
|
16086
16086
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
16087
16087
|
wi
|
|
16088
16088
|
);
|
|
16089
|
-
Jt.lang =
|
|
16089
|
+
Jt.lang = ga;
|
|
16090
16090
|
Pt("X", 0, 0, "unix");
|
|
16091
16091
|
Pt("x", 0, 0, "valueOf");
|
|
16092
16092
|
ht("x", bi);
|
|
@@ -16106,7 +16106,7 @@ dt.now = LR;
|
|
|
16106
16106
|
dt.utc = hn;
|
|
16107
16107
|
dt.unix = kg;
|
|
16108
16108
|
dt.months = $g;
|
|
16109
|
-
dt.isDate =
|
|
16109
|
+
dt.isDate = vo;
|
|
16110
16110
|
dt.locale = wn;
|
|
16111
16111
|
dt.invalid = Fi;
|
|
16112
16112
|
dt.duration = $e;
|
|
@@ -16258,13 +16258,13 @@ class Xs {
|
|
|
16258
16258
|
type: P.CONTROL,
|
|
16259
16259
|
control: y.control,
|
|
16260
16260
|
originControlId: u
|
|
16261
|
-
},
|
|
16261
|
+
}, Z = E ? R.PRETEXTFIX : R.PREFIX, H = E ? R.POSTTEXTFIX : R.POSTFIX, Y = E ? y.control?.preTextFix || this.options.control.preTextFix : y.control?.prefix || this.options.control.prefix;
|
|
16262
16262
|
for (let G = 0; G < Y.length; G++) {
|
|
16263
16263
|
const A = {
|
|
16264
16264
|
...Q,
|
|
16265
16265
|
color: U,
|
|
16266
16266
|
value: Y[G],
|
|
16267
|
-
controlComponent:
|
|
16267
|
+
controlComponent: Z
|
|
16268
16268
|
};
|
|
16269
16269
|
w(A);
|
|
16270
16270
|
}
|
|
@@ -16368,7 +16368,7 @@ class Xs {
|
|
|
16368
16368
|
keydown(t) {
|
|
16369
16369
|
if (this.control.getIsDisabledControl())
|
|
16370
16370
|
return null;
|
|
16371
|
-
const e = this.control.getElementList(), n = this.control.getRange(), i = (Q) => !!(Q?.type === P.IMAGE && Q.controlId && Q.controlComponent === R.VALUE), r = (Q,
|
|
16371
|
+
const e = this.control.getElementList(), n = this.control.getRange(), i = (Q) => !!(Q?.type === P.IMAGE && Q.controlId && Q.controlComponent === R.VALUE), r = (Q, Z) => {
|
|
16372
16372
|
const H = e[Q];
|
|
16373
16373
|
if (!i(H))
|
|
16374
16374
|
return null;
|
|
@@ -16377,7 +16377,7 @@ class Xs {
|
|
|
16377
16377
|
const A = e.findIndex((B) => B.controlId === Y && (B.originControlId || null) === $ && (B.controlComponent === R.PREFIX || B.controlComponent === R.PRE_TEXT));
|
|
16378
16378
|
A >= 0 && this.control.addPlaceholder(A);
|
|
16379
16379
|
}
|
|
16380
|
-
return Math.max(0,
|
|
16380
|
+
return Math.max(0, Z);
|
|
16381
16381
|
};
|
|
16382
16382
|
this.control.shrinkBoundary();
|
|
16383
16383
|
const { startIndex: s, endIndex: l } = n, a = e[s], c = e[l], u = this.control.getDraw(), h = e[l + 1];
|
|
@@ -16390,18 +16390,18 @@ class Xs {
|
|
|
16390
16390
|
if (t.key === pt.Delete) {
|
|
16391
16391
|
const Q = i(a) ? s : i(h) ? l + 1 : -1;
|
|
16392
16392
|
if (Q >= 0) {
|
|
16393
|
-
const
|
|
16394
|
-
return r(Q,
|
|
16393
|
+
const Z = Q === s ? Q : Q - 1;
|
|
16394
|
+
return r(Q, Z);
|
|
16395
16395
|
}
|
|
16396
16396
|
}
|
|
16397
16397
|
}
|
|
16398
16398
|
const d = this.options.mode === K.FORM, f = this.element.controlId || a.controlId, g = this.element.originControlId || a.originControlId || null, p = (Q) => {
|
|
16399
16399
|
if (!Q)
|
|
16400
16400
|
return null;
|
|
16401
|
-
const
|
|
16401
|
+
const Z = /* @__PURE__ */ new Set();
|
|
16402
16402
|
let H = Q, Y = null;
|
|
16403
|
-
for (; H && !
|
|
16404
|
-
|
|
16403
|
+
for (; H && !Z.has(H); ) {
|
|
16404
|
+
Z.add(H);
|
|
16405
16405
|
let $;
|
|
16406
16406
|
for (let G = 0; G < e.length; G++) {
|
|
16407
16407
|
const A = e[G];
|
|
@@ -16414,11 +16414,11 @@ class Xs {
|
|
|
16414
16414
|
}
|
|
16415
16415
|
return Y;
|
|
16416
16416
|
}, I = p(g), m = !!I, L = a.controlId === f && (a.originControlId || null) === g, T = a.controlComponent === R.VALUE, O = (Q) => {
|
|
16417
|
-
for (let
|
|
16418
|
-
const H = e[
|
|
16417
|
+
for (let Z = s - 1; Z >= 0; Z--) {
|
|
16418
|
+
const H = e[Z];
|
|
16419
16419
|
if (H.controlId === Q && !H.originControlId) {
|
|
16420
16420
|
if (H.controlComponent === R.VALUE || H.controlComponent === R.PLACEHOLDER)
|
|
16421
|
-
return
|
|
16421
|
+
return Z;
|
|
16422
16422
|
if (H.controlComponent === R.PREFIX || H.controlComponent === R.PRE_TEXT || H.controlComponent === R.PRETEXTFIX || H.controlComponent === R.PRETEXTFIX_TEXT)
|
|
16423
16423
|
break;
|
|
16424
16424
|
}
|
|
@@ -16426,25 +16426,25 @@ class Xs {
|
|
|
16426
16426
|
break;
|
|
16427
16427
|
}
|
|
16428
16428
|
return -1;
|
|
16429
|
-
}, S = (Q,
|
|
16429
|
+
}, S = (Q, Z) => {
|
|
16430
16430
|
for (let H = Q; H >= 0; H--) {
|
|
16431
16431
|
const Y = e[H];
|
|
16432
|
-
if (Y.controlId ===
|
|
16432
|
+
if (Y.controlId === Z && !Y.originControlId && (Y.controlComponent === R.VALUE || Y.controlComponent === R.PLACEHOLDER || Y.controlComponent === R.PREFIX || Y.controlComponent === R.PRE_TEXT || Y.controlComponent === R.PRETEXTFIX || Y.controlComponent === R.PRETEXTFIX_TEXT))
|
|
16433
16433
|
return H;
|
|
16434
|
-
if (Y.controlId && Y.controlId !==
|
|
16434
|
+
if (Y.controlId && Y.controlId !== Z && Y.originControlId !== Z)
|
|
16435
16435
|
break;
|
|
16436
16436
|
}
|
|
16437
16437
|
for (let H = Q + 1; H < e.length; H++) {
|
|
16438
16438
|
const Y = e[H];
|
|
16439
|
-
if (Y.controlId ===
|
|
16439
|
+
if (Y.controlId === Z && !Y.originControlId && (Y.controlComponent === R.VALUE || Y.controlComponent === R.PLACEHOLDER || Y.controlComponent === R.POSTFIX || Y.controlComponent === R.POST_TEXT || Y.controlComponent === R.POSTTEXTFIX || Y.controlComponent === R.POSTTEXTFIX_TEXT))
|
|
16440
16440
|
return H;
|
|
16441
|
-
if (Y.controlId && Y.controlId !==
|
|
16441
|
+
if (Y.controlId && Y.controlId !== Z && Y.originControlId !== Z)
|
|
16442
16442
|
break;
|
|
16443
16443
|
}
|
|
16444
16444
|
return Q;
|
|
16445
16445
|
}, F = m && L && (a.controlComponent === R.PREFIX || a.controlComponent === R.PRE_TEXT || a.controlComponent === R.PRETEXTFIX || a.controlComponent === R.PRETEXTFIX_TEXT || a.controlComponent === R.POSTFIX || a.controlComponent === R.POST_TEXT || a.controlComponent === R.POSTTEXTFIX || a.controlComponent === R.POSTTEXTFIX_TEXT || a.controlComponent === R.PLACEHOLDER || a.controlComponent === R.TEXTFIXLABEL), N = e[l + 1], w = !!N?.originControlId && !!N?.controlId && N.originControlId !== N.controlId && (N.controlComponent === R.PREFIX || N.controlComponent === R.PRE_TEXT || N.controlComponent === R.PRETEXTFIX || N.controlComponent === R.PRETEXTFIX_TEXT || N.controlComponent === R.PLACEHOLDER || N.controlComponent === R.TEXTFIXLABEL), V = !!N?.originControlId && !!N?.controlId && N.originControlId !== N.controlId && (N.controlComponent === R.PREFIX || N.controlComponent === R.PRE_TEXT || N.controlComponent === R.PRETEXTFIX || N.controlComponent === R.PRETEXTFIX_TEXT || N.controlComponent === R.POSTFIX || N.controlComponent === R.POST_TEXT || N.controlComponent === R.POSTTEXTFIX || N.controlComponent === R.POSTTEXTFIX_TEXT || N.controlComponent === R.PLACEHOLDER || N.controlComponent === R.TEXTFIXLABEL), C = (Q) => this.options.mode === K.FORM ? s : this.control.removeControl(Q), y = a.controlComponent === R.VALUE && !a.originControlId && !!N?.originControlId && !!f && p(N.originControlId) === f, W = (Q) => !!Q && Q.controlId === a.controlId && (Q.originControlId || null) === (a.originControlId || null), X = (Q) => Q?.controlComponent === R.POSTFIX || Q?.controlComponent === R.POST_TEXT || Q?.controlComponent === R.POSTTEXTFIX || Q?.controlComponent === R.POSTTEXTFIX_TEXT, D = () => {
|
|
16446
|
-
const Q = a.controlId,
|
|
16447
|
-
return u.spliceElementList(e, s, 1), e.some((Y) => Y.controlId === Q && (Y.originControlId || null) ===
|
|
16446
|
+
const Q = a.controlId, Z = a.originControlId || null;
|
|
16447
|
+
return u.spliceElementList(e, s, 1), e.some((Y) => Y.controlId === Q && (Y.originControlId || null) === Z && Y.controlComponent === R.VALUE) || this.control.addPlaceholder(s - 1), Math.max(s - 1, 0);
|
|
16448
16448
|
}, E = a.controlComponent === R.VALUE && !!a.originControlId && W(N) && X(N), U = !!f && !this.control.getIsExistValueByElementListIndex(e, s), x = () => {
|
|
16449
16449
|
if (a.controlComponent !== R.VALUE)
|
|
16450
16450
|
return null;
|
|
@@ -16458,14 +16458,14 @@ class Xs {
|
|
|
16458
16458
|
break;
|
|
16459
16459
|
}
|
|
16460
16460
|
}
|
|
16461
|
-
const
|
|
16462
|
-
if (!
|
|
16461
|
+
const Z = e[Q];
|
|
16462
|
+
if (!Z || Z.strikeout)
|
|
16463
16463
|
return null;
|
|
16464
|
-
|
|
16464
|
+
Z.strikeout = !0, Z.deletePerson = "SWJ", Z.deleteTime = dt(/* @__PURE__ */ new Date()).format("YYYY-MM-DD HH:mm:ss");
|
|
16465
16465
|
let H = Math.max(Q - 1, 0);
|
|
16466
16466
|
for (let Y = Q - 1; Y >= 0; Y--) {
|
|
16467
16467
|
const $ = e[Y];
|
|
16468
|
-
if (!($.controlId ===
|
|
16468
|
+
if (!($.controlId === Z.controlId && ($.originControlId || null) === (Z.originControlId || null))) {
|
|
16469
16469
|
H = Y;
|
|
16470
16470
|
break;
|
|
16471
16471
|
}
|
|
@@ -16494,16 +16494,16 @@ class Xs {
|
|
|
16494
16494
|
if (s === l && U && (a.controlComponent === R.PLACEHOLDER || a.controlComponent === R.POSTFIX || a.controlComponent === R.POST_TEXT || a.controlComponent === R.POSTTEXTFIX || a.controlComponent === R.POSTTEXTFIX_TEXT))
|
|
16495
16495
|
return s;
|
|
16496
16496
|
if (d && s === l && I && !L && (a.controlComponent === R.POSTFIX || a.controlComponent === R.POST_TEXT || a.controlComponent === R.POSTTEXTFIX || a.controlComponent === R.POSTTEXTFIX_TEXT)) {
|
|
16497
|
-
const
|
|
16498
|
-
return
|
|
16497
|
+
const Z = O(I);
|
|
16498
|
+
return Z >= 0 ? Z : s;
|
|
16499
16499
|
}
|
|
16500
16500
|
if (s === l && F && !(d && a.controlComponent === R.VALUE && !a.originControlId))
|
|
16501
16501
|
return C(s);
|
|
16502
16502
|
if (this.options.mode === K.FORM && this.options.modeRule.form.deleteTraceEnabled && (!m || T)) {
|
|
16503
16503
|
if (s === l && a.controlComponent === R.VALUE) {
|
|
16504
|
-
const
|
|
16505
|
-
if (
|
|
16506
|
-
return
|
|
16504
|
+
const Z = x();
|
|
16505
|
+
if (Z !== null)
|
|
16506
|
+
return Z;
|
|
16507
16507
|
}
|
|
16508
16508
|
return a.controlComponent === R.PREFIX || a.controlComponent === R.PRE_TEXT || a.controlComponent === R.PLACEHOLDER ? s : this.strikeout();
|
|
16509
16509
|
} else {
|
|
@@ -16511,11 +16511,11 @@ class Xs {
|
|
|
16511
16511
|
return s;
|
|
16512
16512
|
if (s !== l) {
|
|
16513
16513
|
u.spliceElementList(e, s + 1, l - s);
|
|
16514
|
-
const
|
|
16515
|
-
return (
|
|
16514
|
+
const Z = e[s + 1];
|
|
16515
|
+
return (Z?.controlComponent === R.POSTFIX || Z?.controlComponent === R.POST_TEXT || Z?.controlComponent === R.POSTTEXTFIX || Z?.controlComponent === R.POSTTEXTFIX_TEXT) && this.control.addPlaceholder(s), s === 0 && e[0].type === P.SPLIT_TAG ? u.fixPosition(!0) ?? s : s;
|
|
16516
16516
|
} else {
|
|
16517
|
-
const
|
|
16518
|
-
return !a.originControlId &&
|
|
16517
|
+
const Z = e[s - 1], H = e[s + 1];
|
|
16518
|
+
return !a.originControlId && Z?.controlId === a.controlId && Z?.originControlId === a.originControlId && Z?.controlComponent === R.VALUE && (a.controlComponent === R.POSTFIX || a.controlComponent === R.POST_TEXT || a.controlComponent === R.POSTTEXTFIX || a.controlComponent === R.POSTTEXTFIX_TEXT) && this.options.mode !== K.FORM ? (u.spliceElementList(e, s - 1, 1), this.getValue().length || this.control.addPlaceholder(s - 2), s - 2) : X(H) ? H.originControlId ? E ? D() : y ? (u.spliceElementList(e, s, 1), this.getValue().length || this.control.addPlaceholder(s - 1), S(Math.max(s - 1, 0), a.controlId)) : C(s) : (u.spliceElementList(e, s, 1), this.control.addPlaceholder(s - 1), S(Math.max(s - 1, 0), a.controlId)) : (u.spliceElementList(e, s, 1), s === 1 && e[0].type === P.SPLIT_TAG || s === 0 ? u.fixPosition(!0) ?? s - 1 : S(Math.max(s - 1, 0), a.controlId));
|
|
16519
16519
|
}
|
|
16520
16520
|
}
|
|
16521
16521
|
} else if (t.key === pt.Delete) {
|
|
@@ -16529,8 +16529,8 @@ class Xs {
|
|
|
16529
16529
|
}
|
|
16530
16530
|
return C(l + 1);
|
|
16531
16531
|
}
|
|
16532
|
-
const Q = e[l + 1],
|
|
16533
|
-
if (this.options.mode === K.FORM && this.options.modeRule.form.deleteTraceEnabled && (!
|
|
16532
|
+
const Q = e[l + 1], Z = !!a.originControlId;
|
|
16533
|
+
if (this.options.mode === K.FORM && this.options.modeRule.form.deleteTraceEnabled && (!Z || a.controlComponent === R.VALUE))
|
|
16534
16534
|
return c.controlComponent === R.POSTFIX || c.controlComponent === R.POST_TEXT || c.controlComponent === R.POSTTEXTFIX || c.controlComponent === R.POSTTEXTFIX_TEXT || a.controlComponent === R.PLACEHOLDER ? l : Q?.controlComponent === R.POSTFIX || Q?.controlComponent === R.POST_TEXT || Q?.controlComponent === R.POSTTEXTFIX || Q?.controlComponent === R.POSTTEXTFIX_TEXT ? Q.originControlId ? y ? (u.spliceElementList(e, s + 1, 1), this.getValue().length || this.control.addPlaceholder(s), s) : C(s + 1) : (u.spliceElementList(e, s + 1, 1), this.control.addPlaceholder(s), s) : this.strikeout();
|
|
16535
16535
|
{
|
|
16536
16536
|
const Y = e[l + 1];
|
|
@@ -16662,7 +16662,7 @@ class Xs {
|
|
|
16662
16662
|
}
|
|
16663
16663
|
}
|
|
16664
16664
|
}
|
|
16665
|
-
class
|
|
16665
|
+
class Ca {
|
|
16666
16666
|
draw;
|
|
16667
16667
|
options;
|
|
16668
16668
|
now;
|
|
@@ -16707,9 +16707,9 @@ class Da {
|
|
|
16707
16707
|
const X = document.createElement("li"), D = document.createElement("span");
|
|
16708
16708
|
D.innerText = y, X.append(D);
|
|
16709
16709
|
const E = document.createElement("ol"), U = W === 0, x = W === 1, Q = U ? 24 : 60;
|
|
16710
|
-
for (let
|
|
16710
|
+
for (let Z = 0; Z < Q; Z++) {
|
|
16711
16711
|
const H = document.createElement("li");
|
|
16712
|
-
H.innerText = `${String(
|
|
16712
|
+
H.innerText = `${String(Z).padStart(2, "0")}`, H.setAttribute("data-id", `${Z}`), E.append(H);
|
|
16713
16713
|
}
|
|
16714
16714
|
U ? O = E : x ? S = E : M = E, X.append(E), T.append(X);
|
|
16715
16715
|
});
|
|
@@ -17077,7 +17077,7 @@ class Co {
|
|
|
17077
17077
|
const e = this.draw.getElementList(), { startIndex: n } = this.control.getRange();
|
|
17078
17078
|
if (e[n + 1]?.controlId !== this.element.controlId)
|
|
17079
17079
|
return;
|
|
17080
|
-
this.datePicker = new
|
|
17080
|
+
this.datePicker = new Ca(this.draw, {
|
|
17081
17081
|
onSubmit: this._setDate.bind(this)
|
|
17082
17082
|
});
|
|
17083
17083
|
const i = this.getValue().map((s) => s.value).join("") || "", r = this.element.control?.dateFormat;
|
|
@@ -17567,7 +17567,7 @@ class zn {
|
|
|
17567
17567
|
splitButtonBusinessElements(t) {
|
|
17568
17568
|
const e = [];
|
|
17569
17569
|
return t.forEach((n) => {
|
|
17570
|
-
Ce(n) ||
|
|
17570
|
+
Ce(n) || Zt(n.value === _ ? `
|
|
17571
17571
|
` : n.value || "").forEach((i) => {
|
|
17572
17572
|
e.push(this.toButtonBusinessElement({
|
|
17573
17573
|
...n,
|
|
@@ -17829,7 +17829,7 @@ class zn {
|
|
|
17829
17829
|
i.length && i.sort((u, h) => h.index - u.index).forEach((u) => {
|
|
17830
17830
|
n.splice(u.index, 1);
|
|
17831
17831
|
});
|
|
17832
|
-
const c =
|
|
17832
|
+
const c = Zt(e);
|
|
17833
17833
|
!c.length || l && !i.length || a < 0 || c.forEach((u, h) => {
|
|
17834
17834
|
const d = {
|
|
17835
17835
|
...ie(r, [
|
|
@@ -19474,7 +19474,7 @@ class Wf {
|
|
|
19474
19474
|
}
|
|
19475
19475
|
if (c)
|
|
19476
19476
|
return;
|
|
19477
|
-
const h =
|
|
19477
|
+
const h = Zt(s), d = ie(i, Me), f = l + 1;
|
|
19478
19478
|
for (let g = 0; g < h.length; g++) {
|
|
19479
19479
|
const p = h[g], I = {
|
|
19480
19480
|
...d,
|
|
@@ -19677,7 +19677,7 @@ class Wf {
|
|
|
19677
19677
|
this.activeControl = T, is(h) ? (h.length && le(h, {
|
|
19678
19678
|
isHandleFirstElement: !1,
|
|
19679
19679
|
editorOptions: this.options
|
|
19680
|
-
}), T.setValue(h, I, m)) :
|
|
19680
|
+
}), T.setValue(h, I, m)) : Ba(h) ? T.setSelect(h, I, m) : T.clearSelect(I, m);
|
|
19681
19681
|
} else if (f === b.NUMBER) {
|
|
19682
19682
|
const T = Array.isArray(h) ? h : h ? [{ value: h }] : [];
|
|
19683
19683
|
T.length && le(T, {
|
|
@@ -20295,10 +20295,10 @@ function _r(o, t) {
|
|
|
20295
20295
|
}
|
|
20296
20296
|
return l.some((c) => r !== "all" && c.source !== r ? !1 : a.test(c.value));
|
|
20297
20297
|
}
|
|
20298
|
-
function
|
|
20298
|
+
function Zf(o, t, e = "and") {
|
|
20299
20299
|
return o?.length ? e === "or" ? o.some((n) => _r(n, t)) : o.every((n) => _r(n, t)) : !0;
|
|
20300
20300
|
}
|
|
20301
|
-
class
|
|
20301
|
+
class vf {
|
|
20302
20302
|
draw;
|
|
20303
20303
|
options;
|
|
20304
20304
|
constructor(t) {
|
|
@@ -20613,14 +20613,12 @@ class Hf {
|
|
|
20613
20613
|
cycleMin: g.querySelector("#mh-edit-cycleMin")?.value || "",
|
|
20614
20614
|
cycleMax: g.querySelector("#mh-edit-cycleMax")?.value || ""
|
|
20615
20615
|
}, this.clearMenstrualHistoryEditor();
|
|
20616
|
-
const
|
|
20617
|
-
|
|
20618
|
-
|
|
20619
|
-
|
|
20620
|
-
|
|
20621
|
-
|
|
20622
|
-
};
|
|
20623
|
-
this.draw.spliceElementList(m, L, 0, [T]), this.draw.getControl().destroyControl(), this.draw.getRange().clearRange(), this.draw.render({
|
|
20616
|
+
const L = this.draw.getElementList()[e.index], T = L?.type === P.MENSTRUAL_HISTORY ? L : t;
|
|
20617
|
+
if (T.menstrualData = I, T.id) {
|
|
20618
|
+
const O = Il(T.id);
|
|
20619
|
+
O && (O.menstrualData = I);
|
|
20620
|
+
}
|
|
20621
|
+
this.draw.getControl().destroyControl(), this.draw.getRange().clearRange(), this.draw.render({
|
|
20624
20622
|
isSetCursor: !1,
|
|
20625
20623
|
isCompute: !0
|
|
20626
20624
|
});
|
|
@@ -20871,8 +20869,8 @@ class Af {
|
|
|
20871
20869
|
} else {
|
|
20872
20870
|
e.font = `${U}px "Microsoft YaHei", sans-serif`;
|
|
20873
20871
|
const Q = e.measureText(D).width;
|
|
20874
|
-
let
|
|
20875
|
-
return W.length > 0 && (e.font = `${u}px "Microsoft YaHei", sans-serif`, H = W.join(","),
|
|
20872
|
+
let Z = 0, H = "";
|
|
20873
|
+
return W.length > 0 && (e.font = `${u}px "Microsoft YaHei", sans-serif`, H = W.join(","), Z = e.measureText(H).width + g / 2, e.font = `${U}px "Microsoft YaHei", sans-serif`), V === "right" ? (x = N - Q, W.length > 0 && (e.font = `${u}px "Microsoft YaHei", sans-serif`, e.fillText(H, x - Z - g / 2, w - U * 0.4), e.font = `${U}px "Microsoft YaHei", sans-serif`), e.textAlign = "left", e.fillStyle = this.options.defaultColor, e.fillText(D, x, w), N - Q - Z - h) : (e.textAlign = "left", e.fillStyle = this.options.defaultColor, e.fillText(D, x, w), x += Q, W.length > 0 && (e.font = `${u}px "Microsoft YaHei", sans-serif`, e.fillText(H, x + g / 2, w - U * 0.4), x += Z), x + h);
|
|
20876
20874
|
}
|
|
20877
20875
|
}, S = (M, F, N, w, V, C) => {
|
|
20878
20876
|
let y = w;
|
|
@@ -21500,7 +21498,7 @@ class Af {
|
|
|
21500
21498
|
});
|
|
21501
21499
|
}
|
|
21502
21500
|
}
|
|
21503
|
-
const
|
|
21501
|
+
const Fa = '(function(){"use strict";function f(i){let s="",n=0;for(;n<i.length;){const t=i[n];if(t.type==="table"){if(t.trList)for(let l=0;l<t.trList.length;l++){const o=t.trList[l];for(let e=0;e<o.tdList.length;e++){const r=o.tdList[e];s+=f(r.value)}}}else if(t.type==="hyperlink"){const l=t.hyperlinkId,o=[];for(;n<i.length;){const e=i[n];if(l!==e.hyperlinkId){n--;break}delete e.type,o.push(e),n++}s+=f(o)}else if(t.controlId){if(!t.control?.hide){const l=t.controlId,o=[];for(;n<i.length;){const e=i[n];if(l!==e.controlId){n--;break}e.controlComponent==="value"&&(delete e.controlId,o.push(e)),n++}s+=f(o)}}else(!t.type||t.type==="text")&&!t.area?.hide&&(s+=t.value);n++}return s}function p(i){const s=[],n=/[0-9]/,t=/[A-Za-z]/,l=/\\s/;let o=!1,e=!1,r="";function a(){r&&(s.push(r),r="")}for(const c of i)t.test(c)?(o||a(),r+=c,o=!0,e=!1):n.test(c)?(e||a(),r+=c,o=!1,e=!0):(a(),o=!1,e=!1,l.test(c)||s.push(c));return a(),s}onmessage=i=>{const s=i.data,t=f(s).replace(new RegExp("^"),"").replace(new RegExp("","g"),`\n`),l=p(t);postMessage(l.length)}})();\n', kr = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Fa], { type: "text/javascript;charset=utf-8" });
|
|
21504
21502
|
function _f(o) {
|
|
21505
21503
|
let t;
|
|
21506
21504
|
try {
|
|
@@ -21513,15 +21511,15 @@ function _f(o) {
|
|
|
21513
21511
|
}), e;
|
|
21514
21512
|
} catch {
|
|
21515
21513
|
return new Worker(
|
|
21516
|
-
"data:text/javascript;charset=utf-8," + encodeURIComponent(
|
|
21514
|
+
"data:text/javascript;charset=utf-8," + encodeURIComponent(Fa),
|
|
21517
21515
|
{
|
|
21518
21516
|
name: o?.name
|
|
21519
21517
|
}
|
|
21520
21518
|
);
|
|
21521
21519
|
}
|
|
21522
21520
|
}
|
|
21523
|
-
const
|
|
21524
|
-
`, Jr = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",
|
|
21521
|
+
const Xa = `(function(){"use strict";const v={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6},E=["text","hyperlink","subscript","superscript","control","date","label"],L="";function m(c){return!c.type||E.includes(c.type)}function I(c){const{elementList:r,positionList:d}=c,p=[];let u=0;for(;u<r.length;){const t=r[u],l=(e,n,s)=>{const g=e.titleId,a={type:"title",value:"",level:e.level,titleId:g,pageNo:d[u].pageNo},o=[];for(;s<n.length;){const i=n[s];if(g!==i.titleId){s--;break}o.push(i),s++}return a.value=o.filter(i=>m(i)).map(i=>i.value).join("").replace(new RegExp(L,"g"),""),{position:s,titleElement:a}};if(t.titleId){const{position:e,titleElement:n}=l(t,r,u);u=e,p.push(n)}if(t.type==="table"){const e=t.trList;for(let n=0;n<e.length;n++){const s=e[n];for(let g=0;g<s.tdList.length;g++){const a=s.tdList[g].value;if(a.length>1){let o=1;for(;o<a.length;){if(a[o]?.titleId){const{titleElement:i,position:N}=l(a[o],a,o);p.push(i),o=N}o++}}}}}u++}if(!p.length)return null;const f=(t,l)=>{const e=l.subCatalog[l.subCatalog.length-1],n=v[e?.level],s=v[t.level];e&&s>n?f(t,e):l.subCatalog.push({id:t.titleId,name:t.value,level:t.level,pageNo:t.pageNo,subCatalog:[]})},h=[];for(let t=0;t<p.length;t++){const l=p[t],e=h[h.length-1],n=v[e?.level],s=v[l.level];e&&s>n?f(l,e):h.push({id:l.titleId,name:l.value,level:l.level,pageNo:l.pageNo,subCatalog:[]})}return h}onmessage=c=>{const r=c.data,d=I(r);postMessage(d)}})();
|
|
21522
|
+
`, Jr = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Xa], { type: "text/javascript;charset=utf-8" });
|
|
21525
21523
|
function Bf(o) {
|
|
21526
21524
|
let t;
|
|
21527
21525
|
try {
|
|
@@ -21534,15 +21532,15 @@ function Bf(o) {
|
|
|
21534
21532
|
}), e;
|
|
21535
21533
|
} catch {
|
|
21536
21534
|
return new Worker(
|
|
21537
|
-
"data:text/javascript;charset=utf-8," + encodeURIComponent(
|
|
21535
|
+
"data:text/javascript;charset=utf-8," + encodeURIComponent(Xa),
|
|
21538
21536
|
{
|
|
21539
21537
|
name: o?.name
|
|
21540
21538
|
}
|
|
21541
21539
|
);
|
|
21542
21540
|
}
|
|
21543
21541
|
}
|
|
21544
|
-
const
|
|
21545
|
-
`, $r = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",
|
|
21542
|
+
const Na = `(function(){"use strict";function u(e){const t=[];for(const s of e){if(s.type==="table"){const o=s.trList;for(let n=0;n<o.length;n++){const c=o[n];for(let r=0;r<c.tdList.length;r++){const i=c.tdList[r];t.push(...u(i.value))}}}if(s.groupIds)for(const o of s.groupIds)t.includes(o)||t.push(o)}return t}onmessage=e=>{const t=e.data,s=u(t);postMessage(s)}})();
|
|
21543
|
+
`, $r = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Na], { type: "text/javascript;charset=utf-8" });
|
|
21546
21544
|
function Gf(o) {
|
|
21547
21545
|
let t;
|
|
21548
21546
|
try {
|
|
@@ -21555,14 +21553,14 @@ function Gf(o) {
|
|
|
21555
21553
|
}), e;
|
|
21556
21554
|
} catch {
|
|
21557
21555
|
return new Worker(
|
|
21558
|
-
"data:text/javascript;charset=utf-8," + encodeURIComponent(
|
|
21556
|
+
"data:text/javascript;charset=utf-8," + encodeURIComponent(Na),
|
|
21559
21557
|
{
|
|
21560
21558
|
name: o?.name
|
|
21561
21559
|
}
|
|
21562
21560
|
);
|
|
21563
21561
|
}
|
|
21564
21562
|
}
|
|
21565
|
-
const Na = '(function(){"use strict";var H=(D=>(D.HALF="half",D.ONE_THIRD="one-third",D.QUARTER="quarter",D))(H||{}),K=(D=>(D.ARABIC="arabic",D.CHINESE="chinese",D))(K||{});const y="";H.HALF+"",1/2,H.ONE_THIRD+"",1/3,H.QUARTER+"",1/4;const uD=/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/,FD=/[#*0-9]\\uFE0F?\\u20E3|[\\xA9\\xAE\\u203C\\u2049\\u2122\\u2139\\u2194-\\u2199\\u21A9\\u21AA\\u231A\\u231B\\u2328\\u23CF\\u23ED-\\u23EF\\u23F1\\u23F2\\u23F8-\\u23FA\\u24C2\\u25AA\\u25AB\\u25B6\\u25C0\\u25FB\\u25FC\\u25FE\\u2600-\\u2604\\u260E\\u2611\\u2614\\u2615\\u2618\\u2620\\u2622\\u2623\\u2626\\u262A\\u262E\\u262F\\u2638-\\u263A\\u2640\\u2642\\u2648-\\u2653\\u265F\\u2660\\u2663\\u2665\\u2666\\u2668\\u267B\\u267E\\u267F\\u2692\\u2694-\\u2697\\u2699\\u269B\\u269C\\u26A0\\u26A7\\u26AA\\u26B0\\u26B1\\u26BD\\u26BE\\u26C4\\u26C8\\u26CF\\u26D1\\u26E9\\u26F0-\\u26F5\\u26F7\\u26F8\\u26FA\\u2702\\u2708\\u2709\\u270F\\u2712\\u2714\\u2716\\u271D\\u2721\\u2733\\u2734\\u2744\\u2747\\u2757\\u2763\\u27A1\\u2934\\u2935\\u2B05-\\u2B07\\u2B1B\\u2B1C\\u2B55\\u3030\\u303D\\u3297\\u3299]\\uFE0F?|[\\u261D\\u270C\\u270D](?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?|[\\u270A\\u270B](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\u23E9-\\u23EC\\u23F0\\u23F3\\u25FD\\u2693\\u26A1\\u26AB\\u26C5\\u26CE\\u26D4\\u26EA\\u26FD\\u2705\\u2728\\u274C\\u274E\\u2753-\\u2755\\u2795-\\u2797\\u27B0\\u27BF\\u2B50]|\\u26D3\\uFE0F?(?:\\u200D\\uD83D\\uDCA5)?|\\u26F9(?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\u2764\\uFE0F?(?:\\u200D(?:\\uD83D\\uDD25|\\uD83E\\uDE79))?|\\uD83C(?:[\\uDC04\\uDD70\\uDD71\\uDD7E\\uDD7F\\uDE02\\uDE37\\uDF21\\uDF24-\\uDF2C\\uDF36\\uDF7D\\uDF96\\uDF97\\uDF99-\\uDF9B\\uDF9E\\uDF9F\\uDFCD\\uDFCE\\uDFD4-\\uDFDF\\uDFF5\\uDFF7]\\uFE0F?|[\\uDF85\\uDFC2\\uDFC7](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDFC4\\uDFCA](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDFCB\\uDFCC](?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDCCF\\uDD8E\\uDD91-\\uDD9A\\uDE01\\uDE1A\\uDE2F\\uDE32-\\uDE36\\uDE38-\\uDE3A\\uDE50\\uDE51\\uDF00-\\uDF20\\uDF2D-\\uDF35\\uDF37-\\uDF43\\uDF45-\\uDF4A\\uDF4C-\\uDF7C\\uDF7E-\\uDF84\\uDF86-\\uDF93\\uDFA0-\\uDFC1\\uDFC5\\uDFC6\\uDFC8\\uDFC9\\uDFCF-\\uDFD3\\uDFE0-\\uDFF0\\uDFF8-\\uDFFF]|\\uDDE6\\uD83C[\\uDDE8-\\uDDEC\\uDDEE\\uDDF1\\uDDF2\\uDDF4\\uDDF6-\\uDDFA\\uDDFC\\uDDFD\\uDDFF]|\\uDDE7\\uD83C[\\uDDE6\\uDDE7\\uDDE9-\\uDDEF\\uDDF1-\\uDDF4\\uDDF6-\\uDDF9\\uDDFB\\uDDFC\\uDDFE\\uDDFF]|\\uDDE8\\uD83C[\\uDDE6\\uDDE8\\uDDE9\\uDDEB-\\uDDEE\\uDDF0-\\uDDF5\\uDDF7\\uDDFA-\\uDDFF]|\\uDDE9\\uD83C[\\uDDEA\\uDDEC\\uDDEF\\uDDF0\\uDDF2\\uDDF4\\uDDFF]|\\uDDEA\\uD83C[\\uDDE6\\uDDE8\\uDDEA\\uDDEC\\uDDED\\uDDF7-\\uDDFA]|\\uDDEB\\uD83C[\\uDDEE-\\uDDF0\\uDDF2\\uDDF4\\uDDF7]|\\uDDEC\\uD83C[\\uDDE6\\uDDE7\\uDDE9-\\uDDEE\\uDDF1-\\uDDF3\\uDDF5-\\uDDFA\\uDDFC\\uDDFE]|\\uDDED\\uD83C[\\uDDF0\\uDDF2\\uDDF3\\uDDF7\\uDDF9\\uDDFA]|\\uDDEE\\uD83C[\\uDDE8-\\uDDEA\\uDDF1-\\uDDF4\\uDDF6-\\uDDF9]|\\uDDEF\\uD83C[\\uDDEA\\uDDF2\\uDDF4\\uDDF5]|\\uDDF0\\uD83C[\\uDDEA\\uDDEC-\\uDDEE\\uDDF2\\uDDF3\\uDDF5\\uDDF7\\uDDFC\\uDDFE\\uDDFF]|\\uDDF1\\uD83C[\\uDDE6-\\uDDE8\\uDDEE\\uDDF0\\uDDF7-\\uDDFB\\uDDFE]|\\uDDF2\\uD83C[\\uDDE6\\uDDE8-\\uDDED\\uDDF0-\\uDDFF]|\\uDDF3\\uD83C[\\uDDE6\\uDDE8\\uDDEA-\\uDDEC\\uDDEE\\uDDF1\\uDDF4\\uDDF5\\uDDF7\\uDDFA\\uDDFF]|\\uDDF4\\uD83C\\uDDF2|\\uDDF5\\uD83C[\\uDDE6\\uDDEA-\\uDDED\\uDDF0-\\uDDF3\\uDDF7-\\uDDF9\\uDDFC\\uDDFE]|\\uDDF6\\uD83C\\uDDE6|\\uDDF7\\uD83C[\\uDDEA\\uDDF4\\uDDF8\\uDDFA\\uDDFC]|\\uDDF8\\uD83C[\\uDDE6-\\uDDEA\\uDDEC-\\uDDF4\\uDDF7-\\uDDF9\\uDDFB\\uDDFD-\\uDDFF]|\\uDDF9\\uD83C[\\uDDE6\\uDDE8\\uDDE9\\uDDEB-\\uDDED\\uDDEF-\\uDDF4\\uDDF7\\uDDF9\\uDDFB\\uDDFC\\uDDFF]|\\uDDFA\\uD83C[\\uDDE6\\uDDEC\\uDDF2\\uDDF3\\uDDF8\\uDDFE\\uDDFF]|\\uDDFB\\uD83C[\\uDDE6\\uDDE8\\uDDEA\\uDDEC\\uDDEE\\uDDF3\\uDDFA]|\\uDDFC\\uD83C[\\uDDEB\\uDDF8]|\\uDDFD\\uD83C\\uDDF0|\\uDDFE\\uD83C[\\uDDEA\\uDDF9]|\\uDDFF\\uD83C[\\uDDE6\\uDDF2\\uDDFC]|\\uDF44(?:\\u200D\\uD83D\\uDFEB)?|\\uDF4B(?:\\u200D\\uD83D\\uDFE9)?|\\uDFC3(?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D(?:[\\u2640\\u2642]\\uFE0F?(?:\\u200D\\u27A1\\uFE0F?)?|\\u27A1\\uFE0F?))?|\\uDFF3\\uFE0F?(?:\\u200D(?:\\u26A7\\uFE0F?|\\uD83C\\uDF08))?|\\uDFF4(?:\\u200D\\u2620\\uFE0F?|\\uDB40\\uDC67\\uDB40\\uDC62\\uDB40(?:\\uDC65\\uDB40\\uDC6E\\uDB40\\uDC67|\\uDC73\\uDB40\\uDC63\\uDB40\\uDC74|\\uDC77\\uDB40\\uDC6C\\uDB40\\uDC73)\\uDB40\\uDC7F)?)|\\uD83D(?:[\\uDC3F\\uDCFD\\uDD49\\uDD4A\\uDD6F\\uDD70\\uDD73\\uDD76-\\uDD79\\uDD87\\uDD8A-\\uDD8D\\uDDA5\\uDDA8\\uDDB1\\uDDB2\\uDDBC\\uDDC2-\\uDDC4\\uDDD1-\\uDDD3\\uDDDC-\\uDDDE\\uDDE1\\uDDE3\\uDDE8\\uDDEF\\uDDF3\\uDDFA\\uDECB\\uDECD-\\uDECF\\uDEE0-\\uDEE5\\uDEE9\\uDEF0\\uDEF3]\\uFE0F?|[\\uDC42\\uDC43\\uDC46-\\uDC50\\uDC66\\uDC67\\uDC6B-\\uDC6D\\uDC72\\uDC74-\\uDC76\\uDC78\\uDC7C\\uDC83\\uDC85\\uDC8F\\uDC91\\uDCAA\\uDD7A\\uDD95\\uDD96\\uDE4C\\uDE4F\\uDEC0\\uDECC](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDC6E\\uDC70\\uDC71\\uDC73\\uDC77\\uDC81\\uDC82\\uDC86\\uDC87\\uDE45-\\uDE47\\uDE4B\\uDE4D\\uDE4E\\uDEA3\\uDEB4\\uDEB5](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDD74\\uDD90](?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDC00-\\uDC07\\uDC09-\\uDC14\\uDC16-\\uDC25\\uDC27-\\uDC3A\\uDC3C-\\uDC3E\\uDC40\\uDC44\\uDC45\\uDC51-\\uDC65\\uDC6A\\uDC79-\\uDC7B\\uDC7D-\\uDC80\\uDC84\\uDC88-\\uDC8E\\uDC90\\uDC92-\\uDCA9\\uDCAB-\\uDCFC\\uDCFF-\\uDD3D\\uDD4B-\\uDD4E\\uDD50-\\uDD67\\uDDA4\\uDDFB-\\uDE2D\\uDE2F-\\uDE34\\uDE37-\\uDE41\\uDE43\\uDE44\\uDE48-\\uDE4A\\uDE80-\\uDEA2\\uDEA4-\\uDEB3\\uDEB7-\\uDEBF\\uDEC1-\\uDEC5\\uDED0-\\uDED2\\uDED5-\\uDED7\\uDEDC-\\uDEDF\\uDEEB\\uDEEC\\uDEF4-\\uDEFC\\uDFE0-\\uDFEB\\uDFF0]|\\uDC08(?:\\u200D\\u2B1B)?|\\uDC15(?:\\u200D\\uD83E\\uDDBA)?|\\uDC26(?:\\u200D(?:\\u2B1B|\\uD83D\\uDD25))?|\\uDC3B(?:\\u200D\\u2744\\uFE0F?)?|\\uDC41\\uFE0F?(?:\\u200D\\uD83D\\uDDE8\\uFE0F?)?|\\uDC68(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDC68\\uDC69]\\u200D\\uD83D(?:\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?)|[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?)|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFC-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFE])))?))?|\\uDC69(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?[\\uDC68\\uDC69]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?|\\uDC69\\u200D\\uD83D(?:\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?))|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFC-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB-\\uDFFE])))?))?|\\uDC6F(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\uDD75(?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\uDE2E(?:\\u200D\\uD83D\\uDCA8)?|\\uDE35(?:\\u200D\\uD83D\\uDCAB)?|\\uDE36(?:\\u200D\\uD83C\\uDF2B\\uFE0F?)?|\\uDE42(?:\\u200D[\\u2194\\u2195]\\uFE0F?)?|\\uDEB6(?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D(?:[\\u2640\\u2642]\\uFE0F?(?:\\u200D\\u27A1\\uFE0F?)?|\\u27A1\\uFE0F?))?)|\\uD83E(?:[\\uDD0C\\uDD0F\\uDD18-\\uDD1F\\uDD30-\\uDD34\\uDD36\\uDD77\\uDDB5\\uDDB6\\uDDBB\\uDDD2\\uDDD3\\uDDD5\\uDEC3-\\uDEC5\\uDEF0\\uDEF2-\\uDEF8](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDD26\\uDD35\\uDD37-\\uDD39\\uDD3D\\uDD3E\\uDDB8\\uDDB9\\uDDCD\\uDDCF\\uDDD4\\uDDD6-\\uDDDD](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDDDE\\uDDDF](?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDD0D\\uDD0E\\uDD10-\\uDD17\\uDD20-\\uDD25\\uDD27-\\uDD2F\\uDD3A\\uDD3F-\\uDD45\\uDD47-\\uDD76\\uDD78-\\uDDB4\\uDDB7\\uDDBA\\uDDBC-\\uDDCC\\uDDD0\\uDDE0-\\uDDFF\\uDE70-\\uDE7C\\uDE80-\\uDE88\\uDE90-\\uDEBD\\uDEBF-\\uDEC2\\uDECE-\\uDEDB\\uDEE0-\\uDEE8]|\\uDD3C(?:\\u200D[\\u2640\\u2642]\\uFE0F?|\\uD83C[\\uDFFB-\\uDFFF])?|\\uDDCE(?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D(?:[\\u2640\\u2642]\\uFE0F?(?:\\u200D\\u27A1\\uFE0F?)?|\\u27A1\\uFE0F?))?|\\uDDD1(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1|\\uDDD1\\u200D\\uD83E\\uDDD2(?:\\u200D\\uD83E\\uDDD2)?|\\uDDD2(?:\\u200D\\uD83E\\uDDD2)?))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFC-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB\\uDFFD-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFD\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFE]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?))?|\\uDEF1(?:\\uD83C(?:\\uDFFB(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFC-\\uDFFF])?|\\uDFFC(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])?|\\uDFFD(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])?|\\uDFFE(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])?|\\uDFFF(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB-\\uDFFE])?))?)/g,tD=new RegExp(`${FD.source}|${uD.source}`,"g");function g(D){if(typeof structuredClone=="function")return structuredClone(D);if(!D||typeof D!="object")return D;let r={};return Array.isArray(D)?r=D.map(i=>g(i)):Object.keys(D).forEach(i=>{r[i]=g(D[i])}),r}function eD(D){const r=[];if(Intl.Segmenter){const T=new Intl.Segmenter().segment(D);for(const{segment:d}of T)r.push(d)}else{const i=new Map;for(const d of D.matchAll(tD))i.set(d.index,d[0]);let T=0;for(;T<D.length;){const d=i.get(T);d?(r.push(d),T+=d.length):(r.push(D[T]),T++)}}return r}function _(D,r){const i={};for(const T in D)r.includes(T)&&(i[T]=D[T]);return i}function ED(D,r){return D.length!==r.length?!1:!D.some(i=>!r.includes(i))}var t=(D=>(D.TEXT="text",D.TEXTFIELD="TextField",D.BUTTON="button",D.IMAGE="image",D.TABLE="table",D.HYPERLINK="hyperlink",D.SUPERSCRIPT="superscript",D.SUBSCRIPT="subscript",D.SEPARATOR="separator",D.PAGE_BREAK="pageBreak",D.CONTROL="control",D.AREA="area",D.CHECKBOX="checkbox",D.RADIO="radio",D.LATEX="latex",D.TAB="tab",D.DATE="date",D.BLOCK="block",D.TITLE="title",D.LIST="list",D.SPLIT_TAG="splitTag",D.LABEL="label",D.MENSTRUAL_HISTORY="menstrualHistory",D.FETAL_HEART_POSITION="fetalHeartPosition",D.TOOTH_POSITION="toothPosition",D.SPECIAL_SYMBOLS="specialSymbols",D.MACRO="macro",D.CUSTOM_MACRO="customMacro",D.REUSABLE_ITEM="reusableItem",D.SUB_TEMPLATE="subTemplate",D))(t||{});const N=["rowFlex","vertical","rowMargin"],CD=["type","font","size","bold","color","italic","highlight","underline","strikeout","rowFlex","vertical","rowMargin","dashArray","trList","tdPadding","tableEditable","tableToolDisabled","borderType","borderColor","borderWidth","borderExternalWidth","translateX","width","height","url","colgroup","valueList","control","checkbox","radio","dateFormat","block","level","title","listType","listStyle","listWrap","groupIds","conceptId","imgDisplay","imgFloatPosition","imgToolDisabled","imgPreviewDisabled","imgCrop","imgCaption","textDecoration","extension","externalId","areaId","area","hide","label","labelId","lineWidth","deletePerson","newElEditPerson","deleteTime","newElEditTime","dictCode","macroConfig","menstrualData","menstrualHistoryId","fetalHeartData","fetalHeartPositionId","toothPositionData","toothPositionId","reusableItemConfig","templateId","subTemplateContent","subTemplateRelation","subTemplateConditions","subTemplateExpanded"],oD=["conceptId","extension","externalId","verticalAlign","backgroundColor","borderTypes","slashTypes","disabled","deletable"],Y=["font","size","bold","highlight","italic","strikeout","deletePerson","newElEditPerson","deleteTime","color","newElEditTime"];t.TEXT,t.HYPERLINK,t.SUBSCRIPT,t.SUPERSCRIPT,t.CONTROL,t.DATE,t.IMAGE,t.LATEX,t.BLOCK,t.PAGE_BREAK,t.SEPARATOR,t.TABLE,t.TITLE,t.LIST;var G=(D=>(D.UL="ul",D.OL="ol",D))(G||{}),k=(D=>(D.DISC="disc",D.CIRCLE="circle",D.SQUARE="square",D.CHECKBOX="checkbox",D))(k||{}),m=(D=>(D.DISC="disc",D.CIRCLE="circle",D.SQUARE="square",D.DECIMAL="decimal",D.CHECKBOX="checkbox",D))(m||{});k.DISC+"",k.CIRCLE+"",k.SQUARE+"",k.CHECKBOX+"",G.OL+"",G.UL+"",m.DISC+"",m.CIRCLE+"",m.SQUARE+"",m.DECIMAL+"",m.CHECKBOX+"";var p=(D=>(D.FIRST="first",D.SECOND="second",D.THIRD="third",D.FOURTH="fourth",D.FIFTH="fifth",D.SIXTH="sixth",D))(p||{});p.FIRST+"",p.SECOND+"",p.THIRD+"",p.FOURTH+"",p.FIFTH+"",p.SIXTH+"",p.FIRST+"",p.SECOND+"",p.THIRD+"",p.FOURTH+"",p.FIFTH+"",p.SIXTH+"",p.FIRST,p.SECOND,p.THIRD,p.FOURTH,p.FIFTH,p.SIXTH;var h=(D=>(D.TEXT="text",D.SELECT="select",D.CHECKBOX="checkbox",D.RADIO="radio",D.DATE="date",D.NUMBER="number",D.TEXTFIELD="TextField",D.BUTTON="button",D.MENSTRUAL_HISTORY="menstrualHistory",D))(h||{}),F=(D=>(D.PREFIX="prefix",D.POSTFIX="postfix",D.PRE_TEXT="preText",D.PRETEXTFIX="preTextFix",D.PRETEXTFIX_TEXT="preTextFixText",D.POSTTEXTFIX="postTextFix",D.POSTTEXTFIX_TEXT="postTextFixText",D.POST_TEXT="postText",D.PLACEHOLDER="placeholder",D.TEXTFIXLABEL="textFixLabel",D.VALUE="value",D.DELETEPERSON="deletePerson",D.CHECKBOX="checkbox",D.RADIO="radio",D.UNDERLINE="underline",D))(F||{}),q=(D=>(D.LEFT="left",D.CENTER="center",D.RIGHT="right",D.ALIGNMENT="alignment",D.JUSTIFY="justify",D))(q||{}),W=(D=>(D.CONTAIN="contain",D.COVER="cover",D))(W||{}),Z=(D=>(D.REPEAT="repeat",D.NO_REPEAT="no-repeat",D.REPEAT_X="repeat-x",D.REPEAT_Y="repeat-y",D))(Z||{});W.COVER,Z.NO_REPEAT;var z=(D=>(D.TOP="top",D.MIDDLE="middle",D.BOTTOM="bottom",D))(z||{});z.BOTTOM,H.HALF,H.HALF,q.CENTER,K.ARABIC,z.BOTTOM;var J=(D=>(D.TEXT="text",D.IMAGE="image",D))(J||{});J.TEXT,K.ARABIC;var $=(D=>(D.PAGE="page",D.CONTINUITY="continuity",D))($||{});$.CONTINUITY;const nD=[h.SELECT,h.DATE,h.CHECKBOX,h.RADIO];function rD(D,r){return D&&nD.includes(D)?[""]:eD(r)}F.PREFIX,F.POSTFIX,F.PRE_TEXT,F.POST_TEXT,F.PRETEXTFIX,F.PRETEXTFIX_TEXT,F.POSTTEXTFIX,F.POSTTEXTFIX_TEXT,F.PLACEHOLDER,F.TEXTFIXLABEL,F.CHECKBOX,F.RADIO,F.UNDERLINE;function lD(D){return D?.buttonValueLayout===!0}function iD(D,r){const i=Object.keys(D),T=Object.keys(r);if(i.length!==T.length)return!1;for(let d=0;d<i.length;d++){const f=i[d];if(f!=="value"&&!(f==="groupIds"&&Array.isArray(D[f])&&Array.isArray(r[f])&&ED(D[f],r[f]))&&D[f]!==r[f])return!1}return!0}function U(D,r={}){const{extraPickAttrs:i}=r,T=[...CD];i&&T.push(...i);const d={value:D?.value===y?`\n`:D?.value};return D&&T.forEach(f=>{const s=D[f];s!==void 0&&(d[f]=s)}),d}function P(D,r={}){const{extraPickAttrs:i,isClassifyArea:T=!1,isClone:d=!0,editorOptions:f}=r,s=(d?g(D):D).filter(u=>u.type!==t.SPLIT_TAG),M=[];let E=0;const sD=u=>u===F.PREFIX||u===F.PRETEXTFIX||u===F.PRETEXTFIX_TEXT||u===F.PRE_TEXT,cD=u=>{const L=f?.control;switch(u.controlComponent){case F.PRETEXTFIX:return u.control?.preTextFix||L?.preTextFix||"";case F.PRETEXTFIX_TEXT:return u.control?.preTextFixText||L?.preTextFixText||"";case F.PRE_TEXT:return u.control?.preText||"";default:return u.control?.prefix||L?.prefix||""}},BD=(u,L)=>{if(u.value!==y||!u.controlId||!sD(u.controlComponent)||!L||L.controlId!==u.controlId||(L.originControlId||null)!==(u.originControlId||null)||L.controlComponent!==u.controlComponent||L.value===y)return!1;const o=u.control?.type;return rD(o,cD(u))[0]!==`\n`};for(;E<s.length;){let u=s[E];if(BD(u,s[E+1])&&(u=g(u),delete u.type,delete u.control,delete u.controlId,delete u.originControlId,delete u.controlComponent),E===0&&u.value===y&&!u.listId&&(!u.type||u.type===t.TEXT)){E++;continue}if(u.areaId){const o=u.areaId,A=u.area,c=[];for(;E<s.length;){const C=s[E];if(o!==C.areaId){E--;break}delete C.area,delete C.areaId,c.push(C),E++}const l=P(c,r);if(T){const C={type:t.AREA,value:"",areaId:o,area:A};C.valueList=l,u=C}else{M.splice(E,0,...l);continue}}else if(u.titleId&&u.level){const o=u.titleId;if(o){const A=u.level,c={type:t.TITLE,title:u.title,titleId:o,value:"",level:A},l=[];for(;E<s.length;){const C=s[E];if(o!==C.titleId){E--;break}delete C.level,delete C.title,l.push(C),E++}c.valueList=P(l,r),u=c}}else if(u.listId&&u.listType){const o=u.listId;if(o){const A=u.listType,c=u.listStyle,l=u?.label,C={type:t.LIST,value:"",label:l||"",listId:o,listType:A,listStyle:c},B=[];for(;E<s.length;){const n=s[E];if(o!==n.listId){E--;break}delete n.listType,delete n.listStyle,B.push(n),E++}C.valueList=P(B,r),u=C}}else if(u.type===t.TABLE){if(u.pagingId){let o=E+1,A=0;for(;o<s.length;){const c=s[o];if(c.pagingId===u.pagingId){u.height+=c.height;const l=c.trList.filter(C=>!C.pagingRepeat).filter(C=>(C.tdList=C.tdList.filter(B=>{if(B.originalId){for(let n=0;n<u.trList.length;n++){const a=u.trList[n].tdList.find(({id:e})=>e===B.originalId);if(a){B.value[0]?.type===t.SPLIT_TAG&&B.value.splice(0,1),a.value.push(...B.value),a.rowspan=a.originalRowspan??a.rowspan;break}}return!1}return!0}),!C.originalId));u.trList.push(...l),u.trList?.forEach(C=>C.minHeight=C.originalMinHeight??C.minHeight),o++,A++}else break}E+=A}if(u.trList)for(let o=0;o<u.trList.length;o++){const A=u.trList[o];delete A.id;for(let c=0;c<A.tdList.length;c++){const l=A.tdList[c],C={colspan:l.colspan,rowspan:l.rowspan,value:P(l.value,{...r,isClassifyArea:!1})};oD.forEach(B=>{const n=l[B];n!==void 0&&(C[B]=n)}),A.tdList[c]=C}}}else if(u.type===t.HYPERLINK){const o=u.hyperlinkId;if(o){const A={type:t.HYPERLINK,value:"",url:u.url},c=[];for(;E<s.length;){const l=s[E];if(o!==l.hyperlinkId){E--;break}delete l.type,delete l.url,c.push(l),E++}A.valueList=P(c,r),u=A}}else if(u.type===t.DATE){const o=u.dateId;if(o){const A={type:t.DATE,value:"",dateFormat:u.dateFormat},c=[];for(;E<s.length;){const l=s[E];if(o!==l.dateId){E--;break}delete l.type,delete l.dateFormat,c.push(l),E++}A.valueList=P(c,r),u=A}}else if(u.type!==t.BUTTON){if(u.controlId){const o=u.controlId;if(!(u.controlComponent===F.PREFIX||u.controlComponent===F.PRETEXTFIX||u.controlComponent===F.PRETEXTFIX_TEXT)&&u.controlComponent===F.VALUE){if(u.type===t.MENSTRUAL_HISTORY||u.type===t.FETAL_HEART_POSITION||u.type===t.TOOTH_POSITION||u.type===t.IMAGE||u.type===t.MACRO||u.type===t.CUSTOM_MACRO||u.type===t.REUSABLE_ITEM||u.type===t.LIST||u.type===t.SPECIAL_SYMBOLS){let B=!1;for(let n=E-1;n>=0;n--){const I=s[n],a=I.controlComponent===F.PREFIX||I.controlComponent===F.PRETEXTFIX||I.controlComponent===F.PRETEXTFIX_TEXT;if(I.controlId===o&&a){B=!0;break}if(I.controlId!==o)break}if(!B){const n=g(u);delete n.controlId,delete n.control,delete n.controlComponent,delete n.originControlId,M.push(n),E++;continue}}E++;continue}if(u.controlComponent===F.PLACEHOLDER||u.controlComponent===F.POSTFIX||u.controlComponent===F.POSTTEXTFIX||u.controlComponent===F.POSTTEXTFIX_TEXT||u.controlComponent===F.POST_TEXT||u.controlComponent===F.PRE_TEXT||u.controlComponent===F.CHECKBOX||u.controlComponent===F.RADIO){E++;continue}const c=(C,B,n,I)=>{if(I===h.CHECKBOX||I===h.RADIO){let e=-1;for(let X=C;X<s.length&&s[X].controlId===B;X++)e=X;return e}const a=n?[F.POSTTEXTFIX,F.POSTTEXTFIX_TEXT]:[F.POSTFIX];for(let e=C;e<s.length;e++){const X=s[e];if(X.controlId===B&&a.includes(X.controlComponent))return e}return-1},l=(C,B,n)=>{const I=[];let a=C;for(;a<=B;){const e=s[a];if(lD(e)){a++;continue}if(e.controlId&&e.controlId!==n&&e.control){const O=e.control?.type,x=O===h.TEXTFIELD,R=x?F.PRETEXTFIX:F.PREFIX,v=e.controlComponent===R,b=O===h.CHECKBOX||O===h.RADIO;if(v||b&&(e.controlComponent===F.CHECKBOX||e.controlComponent===F.RADIO)){const S=c(a+1,e.controlId,x,O);if(S!==-1){const Q=s.slice(a,S+1).map(aD=>{const DD=g(aD);return delete DD.originControlId,DD}),w=P(Q,r);w.length>0&&I.push(w[0]),a=S+1;continue}}}if(!(e.controlId===n&&(e.controlComponent===F.VALUE||!e.controlComponent)&&(!e.originControlId||e.originControlId===n)||e.originControlId===n&&e.controlComponent===F.VALUE||e.controlId===n&&(e.controlComponent===F.CHECKBOX||e.controlComponent===F.RADIO)&&!e.originControlId)){a++;continue}if(e.type===t.MENSTRUAL_HISTORY||e.type===t.FETAL_HEART_POSITION||e.type===t.TOOTH_POSITION||e.type===t.IMAGE||e.type===t.MACRO||e.type===t.CUSTOM_MACRO||e.type===t.REUSABLE_ITEM||e.type===t.SUB_TEMPLATE||e.type===t.LIST||e.type===t.SPECIAL_SYMBOLS){const O=g(e);delete O.controlId,delete O.control,delete O.controlComponent,delete O.originControlId,I.push(O),a++;continue}if(e.controlComponent===F.CHECKBOX||e.controlComponent===F.RADIO){I.push(g(e)),a++;continue}const j=u.control?.type;if(j===h.CHECKBOX||j===h.RADIO){let O=a-1,x=!1;for(;O>=C-1;){const R=s[O];if(R.controlId===n&&!R.originControlId)if(R.controlComponent===F.CHECKBOX){x=R.checkbox?.value===!0;break}else if(R.controlComponent===F.RADIO){x=R.radio?.value===!0;break}else if(R.controlComponent===F.VALUE){O--;continue}else break;O--}if(x){const R={value:e.value||""},v=[...N,"color","bold","italic","underline","strikeout","size","font","highlight","textDecoration"];for(const b of v){const S=e[b];if(S!==void 0){if(b==="color"&&f){const Q=f.control?.bracketColor,w=f.control?.placeholderColor;if(S===Q||S===w)continue}R[b]=S}}I.push(R)}}else{const O={value:e.value||""},x=[...N,"color","bold","italic","underline","strikeout","size","font","highlight","textDecoration"];for(const R of x){const v=e[R];if(v!==void 0){if(R==="color"&&f){const b=f.control?.bracketColor,S=f.control?.placeholderColor;if(v===b||v===S)continue}O[R]=v}}I.push(O)}a++}return I};if(u.controlComponent===F.PREFIX){const C=u.control?.type===h.TEXTFIELD,B=c(E+1,o,C);if(B!==-1){const n=l(E+1,B-1,o),I=_(u,Y),e=u.control?.type===h.BUTTON&&!u.control?.buttonText?n.length?n:null:n,X={...u.control,...I,value:e},V={..._(u,N),type:t.CONTROL,value:"",control:X,controlId:o};u=U(V,{extraPickAttrs:i}),E=B}}if(u.controlComponent===F.PRETEXTFIX){const C=c(E+1,o,!0);if(C!==-1){const B=l(E+1,C-1,o),n=_(u,Y),I={...u.control,...n,value:B},a={..._(u,N),type:t.CONTROL,value:"",control:I,controlId:o};u=U(a,{extraPickAttrs:i}),E=C}}if(u.controlComponent===F.PRETEXTFIX_TEXT){const C=c(E+1,o,!0);if(C!==-1){const B=l(E+1,C-1,o),n=_(u,Y),I={...u.control,...n,value:B},a={..._(u,N),type:t.CONTROL,value:"",control:I,controlId:o};u=U(a,{extraPickAttrs:i}),E=C}}}}const L=U(u,{extraPickAttrs:i});if(!u.type||u.type===t.TEXT||u.type===t.SUBSCRIPT||u.type===t.SUPERSCRIPT)for(;E<s.length;){const o=s[E+1];if(E++,o&&iD(L,U(o,{extraPickAttrs:i}))){const A=o.value===y?`\n`:o.value;L.value+=A}else break}else E++;M.push(L)}return M}onmessage=D=>{const r=D.data,{options:i,data:T}=r,{extraPickAttrs:d=[]}=i||{},f={header:P(T.header,{extraPickAttrs:d,isClone:!1}),main:P(T.main,{extraPickAttrs:d,isClassifyArea:!0,isClone:!1}),footer:P(T.footer,{extraPickAttrs:d,isClone:!1})};postMessage(f)}})();\n', zr = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Na], { type: "text/javascript;charset=utf-8" });
|
|
21563
|
+
const xa = '(function(){"use strict";var H=(D=>(D.HALF="half",D.ONE_THIRD="one-third",D.QUARTER="quarter",D))(H||{}),K=(D=>(D.ARABIC="arabic",D.CHINESE="chinese",D))(K||{});const y="";H.HALF+"",1/2,H.ONE_THIRD+"",1/3,H.QUARTER+"",1/4;const uD=/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/,FD=/[#*0-9]\\uFE0F?\\u20E3|[\\xA9\\xAE\\u203C\\u2049\\u2122\\u2139\\u2194-\\u2199\\u21A9\\u21AA\\u231A\\u231B\\u2328\\u23CF\\u23ED-\\u23EF\\u23F1\\u23F2\\u23F8-\\u23FA\\u24C2\\u25AA\\u25AB\\u25B6\\u25C0\\u25FB\\u25FC\\u25FE\\u2600-\\u2604\\u260E\\u2611\\u2614\\u2615\\u2618\\u2620\\u2622\\u2623\\u2626\\u262A\\u262E\\u262F\\u2638-\\u263A\\u2640\\u2642\\u2648-\\u2653\\u265F\\u2660\\u2663\\u2665\\u2666\\u2668\\u267B\\u267E\\u267F\\u2692\\u2694-\\u2697\\u2699\\u269B\\u269C\\u26A0\\u26A7\\u26AA\\u26B0\\u26B1\\u26BD\\u26BE\\u26C4\\u26C8\\u26CF\\u26D1\\u26E9\\u26F0-\\u26F5\\u26F7\\u26F8\\u26FA\\u2702\\u2708\\u2709\\u270F\\u2712\\u2714\\u2716\\u271D\\u2721\\u2733\\u2734\\u2744\\u2747\\u2757\\u2763\\u27A1\\u2934\\u2935\\u2B05-\\u2B07\\u2B1B\\u2B1C\\u2B55\\u3030\\u303D\\u3297\\u3299]\\uFE0F?|[\\u261D\\u270C\\u270D](?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?|[\\u270A\\u270B](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\u23E9-\\u23EC\\u23F0\\u23F3\\u25FD\\u2693\\u26A1\\u26AB\\u26C5\\u26CE\\u26D4\\u26EA\\u26FD\\u2705\\u2728\\u274C\\u274E\\u2753-\\u2755\\u2795-\\u2797\\u27B0\\u27BF\\u2B50]|\\u26D3\\uFE0F?(?:\\u200D\\uD83D\\uDCA5)?|\\u26F9(?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\u2764\\uFE0F?(?:\\u200D(?:\\uD83D\\uDD25|\\uD83E\\uDE79))?|\\uD83C(?:[\\uDC04\\uDD70\\uDD71\\uDD7E\\uDD7F\\uDE02\\uDE37\\uDF21\\uDF24-\\uDF2C\\uDF36\\uDF7D\\uDF96\\uDF97\\uDF99-\\uDF9B\\uDF9E\\uDF9F\\uDFCD\\uDFCE\\uDFD4-\\uDFDF\\uDFF5\\uDFF7]\\uFE0F?|[\\uDF85\\uDFC2\\uDFC7](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDFC4\\uDFCA](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDFCB\\uDFCC](?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDCCF\\uDD8E\\uDD91-\\uDD9A\\uDE01\\uDE1A\\uDE2F\\uDE32-\\uDE36\\uDE38-\\uDE3A\\uDE50\\uDE51\\uDF00-\\uDF20\\uDF2D-\\uDF35\\uDF37-\\uDF43\\uDF45-\\uDF4A\\uDF4C-\\uDF7C\\uDF7E-\\uDF84\\uDF86-\\uDF93\\uDFA0-\\uDFC1\\uDFC5\\uDFC6\\uDFC8\\uDFC9\\uDFCF-\\uDFD3\\uDFE0-\\uDFF0\\uDFF8-\\uDFFF]|\\uDDE6\\uD83C[\\uDDE8-\\uDDEC\\uDDEE\\uDDF1\\uDDF2\\uDDF4\\uDDF6-\\uDDFA\\uDDFC\\uDDFD\\uDDFF]|\\uDDE7\\uD83C[\\uDDE6\\uDDE7\\uDDE9-\\uDDEF\\uDDF1-\\uDDF4\\uDDF6-\\uDDF9\\uDDFB\\uDDFC\\uDDFE\\uDDFF]|\\uDDE8\\uD83C[\\uDDE6\\uDDE8\\uDDE9\\uDDEB-\\uDDEE\\uDDF0-\\uDDF5\\uDDF7\\uDDFA-\\uDDFF]|\\uDDE9\\uD83C[\\uDDEA\\uDDEC\\uDDEF\\uDDF0\\uDDF2\\uDDF4\\uDDFF]|\\uDDEA\\uD83C[\\uDDE6\\uDDE8\\uDDEA\\uDDEC\\uDDED\\uDDF7-\\uDDFA]|\\uDDEB\\uD83C[\\uDDEE-\\uDDF0\\uDDF2\\uDDF4\\uDDF7]|\\uDDEC\\uD83C[\\uDDE6\\uDDE7\\uDDE9-\\uDDEE\\uDDF1-\\uDDF3\\uDDF5-\\uDDFA\\uDDFC\\uDDFE]|\\uDDED\\uD83C[\\uDDF0\\uDDF2\\uDDF3\\uDDF7\\uDDF9\\uDDFA]|\\uDDEE\\uD83C[\\uDDE8-\\uDDEA\\uDDF1-\\uDDF4\\uDDF6-\\uDDF9]|\\uDDEF\\uD83C[\\uDDEA\\uDDF2\\uDDF4\\uDDF5]|\\uDDF0\\uD83C[\\uDDEA\\uDDEC-\\uDDEE\\uDDF2\\uDDF3\\uDDF5\\uDDF7\\uDDFC\\uDDFE\\uDDFF]|\\uDDF1\\uD83C[\\uDDE6-\\uDDE8\\uDDEE\\uDDF0\\uDDF7-\\uDDFB\\uDDFE]|\\uDDF2\\uD83C[\\uDDE6\\uDDE8-\\uDDED\\uDDF0-\\uDDFF]|\\uDDF3\\uD83C[\\uDDE6\\uDDE8\\uDDEA-\\uDDEC\\uDDEE\\uDDF1\\uDDF4\\uDDF5\\uDDF7\\uDDFA\\uDDFF]|\\uDDF4\\uD83C\\uDDF2|\\uDDF5\\uD83C[\\uDDE6\\uDDEA-\\uDDED\\uDDF0-\\uDDF3\\uDDF7-\\uDDF9\\uDDFC\\uDDFE]|\\uDDF6\\uD83C\\uDDE6|\\uDDF7\\uD83C[\\uDDEA\\uDDF4\\uDDF8\\uDDFA\\uDDFC]|\\uDDF8\\uD83C[\\uDDE6-\\uDDEA\\uDDEC-\\uDDF4\\uDDF7-\\uDDF9\\uDDFB\\uDDFD-\\uDDFF]|\\uDDF9\\uD83C[\\uDDE6\\uDDE8\\uDDE9\\uDDEB-\\uDDED\\uDDEF-\\uDDF4\\uDDF7\\uDDF9\\uDDFB\\uDDFC\\uDDFF]|\\uDDFA\\uD83C[\\uDDE6\\uDDEC\\uDDF2\\uDDF3\\uDDF8\\uDDFE\\uDDFF]|\\uDDFB\\uD83C[\\uDDE6\\uDDE8\\uDDEA\\uDDEC\\uDDEE\\uDDF3\\uDDFA]|\\uDDFC\\uD83C[\\uDDEB\\uDDF8]|\\uDDFD\\uD83C\\uDDF0|\\uDDFE\\uD83C[\\uDDEA\\uDDF9]|\\uDDFF\\uD83C[\\uDDE6\\uDDF2\\uDDFC]|\\uDF44(?:\\u200D\\uD83D\\uDFEB)?|\\uDF4B(?:\\u200D\\uD83D\\uDFE9)?|\\uDFC3(?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D(?:[\\u2640\\u2642]\\uFE0F?(?:\\u200D\\u27A1\\uFE0F?)?|\\u27A1\\uFE0F?))?|\\uDFF3\\uFE0F?(?:\\u200D(?:\\u26A7\\uFE0F?|\\uD83C\\uDF08))?|\\uDFF4(?:\\u200D\\u2620\\uFE0F?|\\uDB40\\uDC67\\uDB40\\uDC62\\uDB40(?:\\uDC65\\uDB40\\uDC6E\\uDB40\\uDC67|\\uDC73\\uDB40\\uDC63\\uDB40\\uDC74|\\uDC77\\uDB40\\uDC6C\\uDB40\\uDC73)\\uDB40\\uDC7F)?)|\\uD83D(?:[\\uDC3F\\uDCFD\\uDD49\\uDD4A\\uDD6F\\uDD70\\uDD73\\uDD76-\\uDD79\\uDD87\\uDD8A-\\uDD8D\\uDDA5\\uDDA8\\uDDB1\\uDDB2\\uDDBC\\uDDC2-\\uDDC4\\uDDD1-\\uDDD3\\uDDDC-\\uDDDE\\uDDE1\\uDDE3\\uDDE8\\uDDEF\\uDDF3\\uDDFA\\uDECB\\uDECD-\\uDECF\\uDEE0-\\uDEE5\\uDEE9\\uDEF0\\uDEF3]\\uFE0F?|[\\uDC42\\uDC43\\uDC46-\\uDC50\\uDC66\\uDC67\\uDC6B-\\uDC6D\\uDC72\\uDC74-\\uDC76\\uDC78\\uDC7C\\uDC83\\uDC85\\uDC8F\\uDC91\\uDCAA\\uDD7A\\uDD95\\uDD96\\uDE4C\\uDE4F\\uDEC0\\uDECC](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDC6E\\uDC70\\uDC71\\uDC73\\uDC77\\uDC81\\uDC82\\uDC86\\uDC87\\uDE45-\\uDE47\\uDE4B\\uDE4D\\uDE4E\\uDEA3\\uDEB4\\uDEB5](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDD74\\uDD90](?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDC00-\\uDC07\\uDC09-\\uDC14\\uDC16-\\uDC25\\uDC27-\\uDC3A\\uDC3C-\\uDC3E\\uDC40\\uDC44\\uDC45\\uDC51-\\uDC65\\uDC6A\\uDC79-\\uDC7B\\uDC7D-\\uDC80\\uDC84\\uDC88-\\uDC8E\\uDC90\\uDC92-\\uDCA9\\uDCAB-\\uDCFC\\uDCFF-\\uDD3D\\uDD4B-\\uDD4E\\uDD50-\\uDD67\\uDDA4\\uDDFB-\\uDE2D\\uDE2F-\\uDE34\\uDE37-\\uDE41\\uDE43\\uDE44\\uDE48-\\uDE4A\\uDE80-\\uDEA2\\uDEA4-\\uDEB3\\uDEB7-\\uDEBF\\uDEC1-\\uDEC5\\uDED0-\\uDED2\\uDED5-\\uDED7\\uDEDC-\\uDEDF\\uDEEB\\uDEEC\\uDEF4-\\uDEFC\\uDFE0-\\uDFEB\\uDFF0]|\\uDC08(?:\\u200D\\u2B1B)?|\\uDC15(?:\\u200D\\uD83E\\uDDBA)?|\\uDC26(?:\\u200D(?:\\u2B1B|\\uD83D\\uDD25))?|\\uDC3B(?:\\u200D\\u2744\\uFE0F?)?|\\uDC41\\uFE0F?(?:\\u200D\\uD83D\\uDDE8\\uFE0F?)?|\\uDC68(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDC68\\uDC69]\\u200D\\uD83D(?:\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?)|[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?)|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFC-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFE])))?))?|\\uDC69(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?[\\uDC68\\uDC69]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?|\\uDC69\\u200D\\uD83D(?:\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?))|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFC-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB-\\uDFFE])))?))?|\\uDC6F(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\uDD75(?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\uDE2E(?:\\u200D\\uD83D\\uDCA8)?|\\uDE35(?:\\u200D\\uD83D\\uDCAB)?|\\uDE36(?:\\u200D\\uD83C\\uDF2B\\uFE0F?)?|\\uDE42(?:\\u200D[\\u2194\\u2195]\\uFE0F?)?|\\uDEB6(?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D(?:[\\u2640\\u2642]\\uFE0F?(?:\\u200D\\u27A1\\uFE0F?)?|\\u27A1\\uFE0F?))?)|\\uD83E(?:[\\uDD0C\\uDD0F\\uDD18-\\uDD1F\\uDD30-\\uDD34\\uDD36\\uDD77\\uDDB5\\uDDB6\\uDDBB\\uDDD2\\uDDD3\\uDDD5\\uDEC3-\\uDEC5\\uDEF0\\uDEF2-\\uDEF8](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDD26\\uDD35\\uDD37-\\uDD39\\uDD3D\\uDD3E\\uDDB8\\uDDB9\\uDDCD\\uDDCF\\uDDD4\\uDDD6-\\uDDDD](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDDDE\\uDDDF](?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDD0D\\uDD0E\\uDD10-\\uDD17\\uDD20-\\uDD25\\uDD27-\\uDD2F\\uDD3A\\uDD3F-\\uDD45\\uDD47-\\uDD76\\uDD78-\\uDDB4\\uDDB7\\uDDBA\\uDDBC-\\uDDCC\\uDDD0\\uDDE0-\\uDDFF\\uDE70-\\uDE7C\\uDE80-\\uDE88\\uDE90-\\uDEBD\\uDEBF-\\uDEC2\\uDECE-\\uDEDB\\uDEE0-\\uDEE8]|\\uDD3C(?:\\u200D[\\u2640\\u2642]\\uFE0F?|\\uD83C[\\uDFFB-\\uDFFF])?|\\uDDCE(?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D(?:[\\u2640\\u2642]\\uFE0F?(?:\\u200D\\u27A1\\uFE0F?)?|\\u27A1\\uFE0F?))?|\\uDDD1(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1|\\uDDD1\\u200D\\uD83E\\uDDD2(?:\\u200D\\uD83E\\uDDD2)?|\\uDDD2(?:\\u200D\\uD83E\\uDDD2)?))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFC-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB\\uDFFD-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFD\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFE]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?))?|\\uDEF1(?:\\uD83C(?:\\uDFFB(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFC-\\uDFFF])?|\\uDFFC(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])?|\\uDFFD(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])?|\\uDFFE(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])?|\\uDFFF(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB-\\uDFFE])?))?)/g,tD=new RegExp(`${FD.source}|${uD.source}`,"g");function g(D){if(typeof structuredClone=="function")return structuredClone(D);if(!D||typeof D!="object")return D;let r={};return Array.isArray(D)?r=D.map(i=>g(i)):Object.keys(D).forEach(i=>{r[i]=g(D[i])}),r}function eD(D){const r=[];if(Intl.Segmenter){const T=new Intl.Segmenter().segment(D);for(const{segment:d}of T)r.push(d)}else{const i=new Map;for(const d of D.matchAll(tD))i.set(d.index,d[0]);let T=0;for(;T<D.length;){const d=i.get(T);d?(r.push(d),T+=d.length):(r.push(D[T]),T++)}}return r}function _(D,r){const i={};for(const T in D)r.includes(T)&&(i[T]=D[T]);return i}function ED(D,r){return D.length!==r.length?!1:!D.some(i=>!r.includes(i))}var t=(D=>(D.TEXT="text",D.TEXTFIELD="TextField",D.BUTTON="button",D.IMAGE="image",D.TABLE="table",D.HYPERLINK="hyperlink",D.SUPERSCRIPT="superscript",D.SUBSCRIPT="subscript",D.SEPARATOR="separator",D.PAGE_BREAK="pageBreak",D.CONTROL="control",D.AREA="area",D.CHECKBOX="checkbox",D.RADIO="radio",D.LATEX="latex",D.TAB="tab",D.DATE="date",D.BLOCK="block",D.TITLE="title",D.LIST="list",D.SPLIT_TAG="splitTag",D.LABEL="label",D.MENSTRUAL_HISTORY="menstrualHistory",D.FETAL_HEART_POSITION="fetalHeartPosition",D.TOOTH_POSITION="toothPosition",D.SPECIAL_SYMBOLS="specialSymbols",D.MACRO="macro",D.CUSTOM_MACRO="customMacro",D.REUSABLE_ITEM="reusableItem",D.SUB_TEMPLATE="subTemplate",D))(t||{});const N=["rowFlex","vertical","rowMargin"],CD=["type","font","size","bold","color","italic","highlight","underline","strikeout","rowFlex","vertical","rowMargin","dashArray","trList","tdPadding","tableEditable","tableToolDisabled","borderType","borderColor","borderWidth","borderExternalWidth","translateX","width","height","url","colgroup","valueList","control","checkbox","radio","dateFormat","block","level","title","listType","listStyle","listWrap","groupIds","conceptId","imgDisplay","imgFloatPosition","imgToolDisabled","imgPreviewDisabled","imgCrop","imgCaption","textDecoration","extension","externalId","areaId","area","hide","label","labelId","lineWidth","deletePerson","newElEditPerson","deleteTime","newElEditTime","dictCode","macroConfig","menstrualData","menstrualHistoryId","fetalHeartData","fetalHeartPositionId","toothPositionData","toothPositionId","reusableItemConfig","templateId","subTemplateContent","subTemplateRelation","subTemplateConditions","subTemplateExpanded"],oD=["conceptId","extension","externalId","verticalAlign","backgroundColor","borderTypes","slashTypes","disabled","deletable"],Y=["font","size","bold","highlight","italic","strikeout","deletePerson","newElEditPerson","deleteTime","color","newElEditTime"];t.TEXT,t.HYPERLINK,t.SUBSCRIPT,t.SUPERSCRIPT,t.CONTROL,t.DATE,t.IMAGE,t.LATEX,t.BLOCK,t.PAGE_BREAK,t.SEPARATOR,t.TABLE,t.TITLE,t.LIST;var G=(D=>(D.UL="ul",D.OL="ol",D))(G||{}),k=(D=>(D.DISC="disc",D.CIRCLE="circle",D.SQUARE="square",D.CHECKBOX="checkbox",D))(k||{}),m=(D=>(D.DISC="disc",D.CIRCLE="circle",D.SQUARE="square",D.DECIMAL="decimal",D.CHECKBOX="checkbox",D))(m||{});k.DISC+"",k.CIRCLE+"",k.SQUARE+"",k.CHECKBOX+"",G.OL+"",G.UL+"",m.DISC+"",m.CIRCLE+"",m.SQUARE+"",m.DECIMAL+"",m.CHECKBOX+"";var p=(D=>(D.FIRST="first",D.SECOND="second",D.THIRD="third",D.FOURTH="fourth",D.FIFTH="fifth",D.SIXTH="sixth",D))(p||{});p.FIRST+"",p.SECOND+"",p.THIRD+"",p.FOURTH+"",p.FIFTH+"",p.SIXTH+"",p.FIRST+"",p.SECOND+"",p.THIRD+"",p.FOURTH+"",p.FIFTH+"",p.SIXTH+"",p.FIRST,p.SECOND,p.THIRD,p.FOURTH,p.FIFTH,p.SIXTH;var h=(D=>(D.TEXT="text",D.SELECT="select",D.CHECKBOX="checkbox",D.RADIO="radio",D.DATE="date",D.NUMBER="number",D.TEXTFIELD="TextField",D.BUTTON="button",D.MENSTRUAL_HISTORY="menstrualHistory",D))(h||{}),F=(D=>(D.PREFIX="prefix",D.POSTFIX="postfix",D.PRE_TEXT="preText",D.PRETEXTFIX="preTextFix",D.PRETEXTFIX_TEXT="preTextFixText",D.POSTTEXTFIX="postTextFix",D.POSTTEXTFIX_TEXT="postTextFixText",D.POST_TEXT="postText",D.PLACEHOLDER="placeholder",D.TEXTFIXLABEL="textFixLabel",D.VALUE="value",D.DELETEPERSON="deletePerson",D.CHECKBOX="checkbox",D.RADIO="radio",D.UNDERLINE="underline",D))(F||{}),q=(D=>(D.LEFT="left",D.CENTER="center",D.RIGHT="right",D.ALIGNMENT="alignment",D.JUSTIFY="justify",D))(q||{}),W=(D=>(D.CONTAIN="contain",D.COVER="cover",D))(W||{}),Z=(D=>(D.REPEAT="repeat",D.NO_REPEAT="no-repeat",D.REPEAT_X="repeat-x",D.REPEAT_Y="repeat-y",D))(Z||{});W.COVER,Z.NO_REPEAT;var z=(D=>(D.TOP="top",D.MIDDLE="middle",D.BOTTOM="bottom",D))(z||{});z.BOTTOM,H.HALF,H.HALF,q.CENTER,K.ARABIC,z.BOTTOM;var J=(D=>(D.TEXT="text",D.IMAGE="image",D))(J||{});J.TEXT,K.ARABIC;var $=(D=>(D.PAGE="page",D.CONTINUITY="continuity",D))($||{});$.CONTINUITY;const nD=[h.SELECT,h.DATE,h.CHECKBOX,h.RADIO];function rD(D,r){return D&&nD.includes(D)?[""]:eD(r)}F.PREFIX,F.POSTFIX,F.PRE_TEXT,F.POST_TEXT,F.PRETEXTFIX,F.PRETEXTFIX_TEXT,F.POSTTEXTFIX,F.POSTTEXTFIX_TEXT,F.PLACEHOLDER,F.TEXTFIXLABEL,F.CHECKBOX,F.RADIO,F.UNDERLINE;function lD(D){return D?.buttonValueLayout===!0}function iD(D,r){const i=Object.keys(D),T=Object.keys(r);if(i.length!==T.length)return!1;for(let d=0;d<i.length;d++){const f=i[d];if(f!=="value"&&!(f==="groupIds"&&Array.isArray(D[f])&&Array.isArray(r[f])&&ED(D[f],r[f]))&&D[f]!==r[f])return!1}return!0}function U(D,r={}){const{extraPickAttrs:i}=r,T=[...CD];i&&T.push(...i);const d={value:D?.value===y?`\n`:D?.value};return D&&T.forEach(f=>{const s=D[f];s!==void 0&&(d[f]=s)}),d}function P(D,r={}){const{extraPickAttrs:i,isClassifyArea:T=!1,isClone:d=!0,editorOptions:f}=r,s=(d?g(D):D).filter(u=>u.type!==t.SPLIT_TAG),M=[];let E=0;const sD=u=>u===F.PREFIX||u===F.PRETEXTFIX||u===F.PRETEXTFIX_TEXT||u===F.PRE_TEXT,cD=u=>{const L=f?.control;switch(u.controlComponent){case F.PRETEXTFIX:return u.control?.preTextFix||L?.preTextFix||"";case F.PRETEXTFIX_TEXT:return u.control?.preTextFixText||L?.preTextFixText||"";case F.PRE_TEXT:return u.control?.preText||"";default:return u.control?.prefix||L?.prefix||""}},BD=(u,L)=>{if(u.value!==y||!u.controlId||!sD(u.controlComponent)||!L||L.controlId!==u.controlId||(L.originControlId||null)!==(u.originControlId||null)||L.controlComponent!==u.controlComponent||L.value===y)return!1;const o=u.control?.type;return rD(o,cD(u))[0]!==`\n`};for(;E<s.length;){let u=s[E];if(BD(u,s[E+1])&&(u=g(u),delete u.type,delete u.control,delete u.controlId,delete u.originControlId,delete u.controlComponent),E===0&&u.value===y&&!u.listId&&(!u.type||u.type===t.TEXT)){E++;continue}if(u.areaId){const o=u.areaId,A=u.area,c=[];for(;E<s.length;){const C=s[E];if(o!==C.areaId){E--;break}delete C.area,delete C.areaId,c.push(C),E++}const l=P(c,r);if(T){const C={type:t.AREA,value:"",areaId:o,area:A};C.valueList=l,u=C}else{M.splice(E,0,...l);continue}}else if(u.titleId&&u.level){const o=u.titleId;if(o){const A=u.level,c={type:t.TITLE,title:u.title,titleId:o,value:"",level:A},l=[];for(;E<s.length;){const C=s[E];if(o!==C.titleId){E--;break}delete C.level,delete C.title,l.push(C),E++}c.valueList=P(l,r),u=c}}else if(u.listId&&u.listType){const o=u.listId;if(o){const A=u.listType,c=u.listStyle,l=u?.label,C={type:t.LIST,value:"",label:l||"",listId:o,listType:A,listStyle:c},B=[];for(;E<s.length;){const n=s[E];if(o!==n.listId){E--;break}delete n.listType,delete n.listStyle,B.push(n),E++}C.valueList=P(B,r),u=C}}else if(u.type===t.TABLE){if(u.pagingId){let o=E+1,A=0;for(;o<s.length;){const c=s[o];if(c.pagingId===u.pagingId){u.height+=c.height;const l=c.trList.filter(C=>!C.pagingRepeat).filter(C=>(C.tdList=C.tdList.filter(B=>{if(B.originalId){for(let n=0;n<u.trList.length;n++){const a=u.trList[n].tdList.find(({id:e})=>e===B.originalId);if(a){B.value[0]?.type===t.SPLIT_TAG&&B.value.splice(0,1),a.value.push(...B.value),a.rowspan=a.originalRowspan??a.rowspan;break}}return!1}return!0}),!C.originalId));u.trList.push(...l),u.trList?.forEach(C=>C.minHeight=C.originalMinHeight??C.minHeight),o++,A++}else break}E+=A}if(u.trList)for(let o=0;o<u.trList.length;o++){const A=u.trList[o];delete A.id;for(let c=0;c<A.tdList.length;c++){const l=A.tdList[c],C={colspan:l.colspan,rowspan:l.rowspan,value:P(l.value,{...r,isClassifyArea:!1})};oD.forEach(B=>{const n=l[B];n!==void 0&&(C[B]=n)}),A.tdList[c]=C}}}else if(u.type===t.HYPERLINK){const o=u.hyperlinkId;if(o){const A={type:t.HYPERLINK,value:"",url:u.url},c=[];for(;E<s.length;){const l=s[E];if(o!==l.hyperlinkId){E--;break}delete l.type,delete l.url,c.push(l),E++}A.valueList=P(c,r),u=A}}else if(u.type===t.DATE){const o=u.dateId;if(o){const A={type:t.DATE,value:"",dateFormat:u.dateFormat},c=[];for(;E<s.length;){const l=s[E];if(o!==l.dateId){E--;break}delete l.type,delete l.dateFormat,c.push(l),E++}A.valueList=P(c,r),u=A}}else if(u.type!==t.BUTTON){if(u.controlId){const o=u.controlId;if(!(u.controlComponent===F.PREFIX||u.controlComponent===F.PRETEXTFIX||u.controlComponent===F.PRETEXTFIX_TEXT)&&u.controlComponent===F.VALUE){if(u.type===t.MENSTRUAL_HISTORY||u.type===t.FETAL_HEART_POSITION||u.type===t.TOOTH_POSITION||u.type===t.IMAGE||u.type===t.MACRO||u.type===t.CUSTOM_MACRO||u.type===t.REUSABLE_ITEM||u.type===t.LIST||u.type===t.SPECIAL_SYMBOLS){let B=!1;for(let n=E-1;n>=0;n--){const I=s[n],a=I.controlComponent===F.PREFIX||I.controlComponent===F.PRETEXTFIX||I.controlComponent===F.PRETEXTFIX_TEXT;if(I.controlId===o&&a){B=!0;break}if(I.controlId!==o)break}if(!B){const n=g(u);delete n.controlId,delete n.control,delete n.controlComponent,delete n.originControlId,M.push(n),E++;continue}}E++;continue}if(u.controlComponent===F.PLACEHOLDER||u.controlComponent===F.POSTFIX||u.controlComponent===F.POSTTEXTFIX||u.controlComponent===F.POSTTEXTFIX_TEXT||u.controlComponent===F.POST_TEXT||u.controlComponent===F.PRE_TEXT||u.controlComponent===F.CHECKBOX||u.controlComponent===F.RADIO){E++;continue}const c=(C,B,n,I)=>{if(I===h.CHECKBOX||I===h.RADIO){let e=-1;for(let X=C;X<s.length&&s[X].controlId===B;X++)e=X;return e}const a=n?[F.POSTTEXTFIX,F.POSTTEXTFIX_TEXT]:[F.POSTFIX];for(let e=C;e<s.length;e++){const X=s[e];if(X.controlId===B&&a.includes(X.controlComponent))return e}return-1},l=(C,B,n)=>{const I=[];let a=C;for(;a<=B;){const e=s[a];if(lD(e)){a++;continue}if(e.controlId&&e.controlId!==n&&e.control){const O=e.control?.type,x=O===h.TEXTFIELD,R=x?F.PRETEXTFIX:F.PREFIX,v=e.controlComponent===R,b=O===h.CHECKBOX||O===h.RADIO;if(v||b&&(e.controlComponent===F.CHECKBOX||e.controlComponent===F.RADIO)){const S=c(a+1,e.controlId,x,O);if(S!==-1){const Q=s.slice(a,S+1).map(aD=>{const DD=g(aD);return delete DD.originControlId,DD}),w=P(Q,r);w.length>0&&I.push(w[0]),a=S+1;continue}}}if(!(e.controlId===n&&(e.controlComponent===F.VALUE||!e.controlComponent)&&(!e.originControlId||e.originControlId===n)||e.originControlId===n&&e.controlComponent===F.VALUE||e.controlId===n&&(e.controlComponent===F.CHECKBOX||e.controlComponent===F.RADIO)&&!e.originControlId)){a++;continue}if(e.type===t.MENSTRUAL_HISTORY||e.type===t.FETAL_HEART_POSITION||e.type===t.TOOTH_POSITION||e.type===t.IMAGE||e.type===t.MACRO||e.type===t.CUSTOM_MACRO||e.type===t.REUSABLE_ITEM||e.type===t.SUB_TEMPLATE||e.type===t.LIST||e.type===t.SPECIAL_SYMBOLS){const O=g(e);delete O.controlId,delete O.control,delete O.controlComponent,delete O.originControlId,I.push(O),a++;continue}if(e.controlComponent===F.CHECKBOX||e.controlComponent===F.RADIO){I.push(g(e)),a++;continue}const j=u.control?.type;if(j===h.CHECKBOX||j===h.RADIO){let O=a-1,x=!1;for(;O>=C-1;){const R=s[O];if(R.controlId===n&&!R.originControlId)if(R.controlComponent===F.CHECKBOX){x=R.checkbox?.value===!0;break}else if(R.controlComponent===F.RADIO){x=R.radio?.value===!0;break}else if(R.controlComponent===F.VALUE){O--;continue}else break;O--}if(x){const R={value:e.value||""},v=[...N,"color","bold","italic","underline","strikeout","size","font","highlight","textDecoration"];for(const b of v){const S=e[b];if(S!==void 0){if(b==="color"&&f){const Q=f.control?.bracketColor,w=f.control?.placeholderColor;if(S===Q||S===w)continue}R[b]=S}}I.push(R)}}else{const O={value:e.value||""},x=[...N,"color","bold","italic","underline","strikeout","size","font","highlight","textDecoration"];for(const R of x){const v=e[R];if(v!==void 0){if(R==="color"&&f){const b=f.control?.bracketColor,S=f.control?.placeholderColor;if(v===b||v===S)continue}O[R]=v}}I.push(O)}a++}return I};if(u.controlComponent===F.PREFIX){const C=u.control?.type===h.TEXTFIELD,B=c(E+1,o,C);if(B!==-1){const n=l(E+1,B-1,o),I=_(u,Y),e=u.control?.type===h.BUTTON&&!u.control?.buttonText?n.length?n:null:n,X={...u.control,...I,value:e},V={..._(u,N),type:t.CONTROL,value:"",control:X,controlId:o};u=U(V,{extraPickAttrs:i}),E=B}}if(u.controlComponent===F.PRETEXTFIX){const C=c(E+1,o,!0);if(C!==-1){const B=l(E+1,C-1,o),n=_(u,Y),I={...u.control,...n,value:B},a={..._(u,N),type:t.CONTROL,value:"",control:I,controlId:o};u=U(a,{extraPickAttrs:i}),E=C}}if(u.controlComponent===F.PRETEXTFIX_TEXT){const C=c(E+1,o,!0);if(C!==-1){const B=l(E+1,C-1,o),n=_(u,Y),I={...u.control,...n,value:B},a={..._(u,N),type:t.CONTROL,value:"",control:I,controlId:o};u=U(a,{extraPickAttrs:i}),E=C}}}}const L=U(u,{extraPickAttrs:i});if(!u.type||u.type===t.TEXT||u.type===t.SUBSCRIPT||u.type===t.SUPERSCRIPT)for(;E<s.length;){const o=s[E+1];if(E++,o&&iD(L,U(o,{extraPickAttrs:i}))){const A=o.value===y?`\n`:o.value;L.value+=A}else break}else E++;M.push(L)}return M}onmessage=D=>{const r=D.data,{options:i,data:T}=r,{extraPickAttrs:d=[]}=i||{},f={header:P(T.header,{extraPickAttrs:d,isClone:!1}),main:P(T.main,{extraPickAttrs:d,isClassifyArea:!0,isClone:!1}),footer:P(T.footer,{extraPickAttrs:d,isClone:!1})};postMessage(f)}})();\n', zr = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", xa], { type: "text/javascript;charset=utf-8" });
|
|
21566
21564
|
function kf(o) {
|
|
21567
21565
|
let t;
|
|
21568
21566
|
try {
|
|
@@ -21575,7 +21573,7 @@ function kf(o) {
|
|
|
21575
21573
|
}), e;
|
|
21576
21574
|
} catch {
|
|
21577
21575
|
return new Worker(
|
|
21578
|
-
"data:text/javascript;charset=utf-8," + encodeURIComponent(
|
|
21576
|
+
"data:text/javascript;charset=utf-8," + encodeURIComponent(xa),
|
|
21579
21577
|
{
|
|
21580
21578
|
name: o?.name
|
|
21581
21579
|
}
|
|
@@ -21903,7 +21901,7 @@ class zf {
|
|
|
21903
21901
|
datePicker;
|
|
21904
21902
|
options;
|
|
21905
21903
|
constructor(t) {
|
|
21906
|
-
this.draw = t, this.options = t.getOptions(), this.range = t.getRange(), this.datePicker = new
|
|
21904
|
+
this.draw = t, this.options = t.getOptions(), this.range = t.getRange(), this.datePicker = new Ca(t, {
|
|
21907
21905
|
onSubmit: this._setValue.bind(this)
|
|
21908
21906
|
});
|
|
21909
21907
|
}
|
|
@@ -22264,7 +22262,7 @@ class fp {
|
|
|
22264
22262
|
s.disabled || r.push(St.HEADER), l.disabled || r.push(St.FOOTER), r.length && this._watchMouseMoveZoneChange(r);
|
|
22265
22263
|
}
|
|
22266
22264
|
_watchMouseMoveZoneChange(t) {
|
|
22267
|
-
this.pageContainer.addEventListener("mousemove",
|
|
22265
|
+
this.pageContainer.addEventListener("mousemove", Ka((e) => {
|
|
22268
22266
|
if (!(this.isDisableMouseMove || !this.draw.getIsPagingMode())) {
|
|
22269
22267
|
if (this.draw.getMode() !== K.EDIT) {
|
|
22270
22268
|
this._updateZoneTip(!1);
|
|
@@ -22614,7 +22612,7 @@ class Ip {
|
|
|
22614
22612
|
}
|
|
22615
22613
|
}
|
|
22616
22614
|
}
|
|
22617
|
-
class
|
|
22615
|
+
class Zo {
|
|
22618
22616
|
options;
|
|
22619
22617
|
static WIDTH = 12;
|
|
22620
22618
|
static HEIGHT = 9;
|
|
@@ -22626,11 +22624,11 @@ class vo {
|
|
|
22626
22624
|
render(t, e, n, i) {
|
|
22627
22625
|
const { scale: r, lineBreak: { color: s, lineWidth: l } } = this.options;
|
|
22628
22626
|
t.save(), t.beginPath();
|
|
22629
|
-
const a = i -
|
|
22627
|
+
const a = i - Zo.HEIGHT * r / 2, c = n + e.metrics.width;
|
|
22630
22628
|
t.translate(c, a), t.scale(r, r), t.strokeStyle = s, t.lineWidth = l, t.lineCap = "round", t.lineJoin = "round", t.beginPath(), t.moveTo(8, 0), t.lineTo(12, 0), t.lineTo(12, 6), t.lineTo(3, 6), t.moveTo(3, 6), t.lineTo(6, 3), t.moveTo(3, 6), t.lineTo(6, 9), t.stroke(), t.closePath(), t.restore();
|
|
22631
22629
|
}
|
|
22632
22630
|
}
|
|
22633
|
-
class
|
|
22631
|
+
class ba {
|
|
22634
22632
|
draw;
|
|
22635
22633
|
position;
|
|
22636
22634
|
options;
|
|
@@ -22656,7 +22654,7 @@ class xa {
|
|
|
22656
22654
|
_computePositionList(t) {
|
|
22657
22655
|
const { lineBreak: e, scale: n } = this.options, i = this.draw.getHeader().getExtraHeight(), r = this.draw.getInnerWidth(), s = this.draw.getMargins();
|
|
22658
22656
|
let l = s[3];
|
|
22659
|
-
e.disabled || (l += (
|
|
22657
|
+
e.disabled || (l += (Zo.WIDTH + Zo.GAP) * n);
|
|
22660
22658
|
const a = t?.startY || s[0] + i;
|
|
22661
22659
|
this.position.computePageRowPosition({
|
|
22662
22660
|
positionList: this.positionList,
|
|
@@ -23232,8 +23230,8 @@ class Dp {
|
|
|
23232
23230
|
for (let W = 0; W < m.length; W++) {
|
|
23233
23231
|
const X = m[W];
|
|
23234
23232
|
for (let D = 0; D < X.length; D++) {
|
|
23235
|
-
const E = X[D], U = E.x, x = E.y, Q = U + E.width,
|
|
23236
|
-
if (S > U || M > x || F < Q || N <
|
|
23233
|
+
const E = X[D], U = E.x, x = E.y, Q = U + E.width, Z = x + E.height;
|
|
23234
|
+
if (S > U || M > x || F < Q || N < Z)
|
|
23237
23235
|
return;
|
|
23238
23236
|
}
|
|
23239
23237
|
}
|
|
@@ -23246,8 +23244,8 @@ class Dp {
|
|
|
23246
23244
|
w.push(E.id);
|
|
23247
23245
|
const x = E.value.length > 1 ? 0 : 1;
|
|
23248
23246
|
for (let Q = x; Q < E.value.length; Q++) {
|
|
23249
|
-
const
|
|
23250
|
-
yn(_n, C,
|
|
23247
|
+
const Z = E.value[Q];
|
|
23248
|
+
yn(_n, C, Z), V.value.push(Z);
|
|
23251
23249
|
}
|
|
23252
23250
|
}
|
|
23253
23251
|
W === 0 && D !== 0 && (V.colspan += E.colspan), W !== 0 && V.colIndex === E.colIndex && (V.rowspan += E.rowspan);
|
|
@@ -23644,7 +23642,7 @@ class Cp {
|
|
|
23644
23642
|
continue;
|
|
23645
23643
|
t.translate(0.5, 0.5);
|
|
23646
23644
|
const c = a[0], u = a[a.length - 1], h = n[3], d = Math.ceil(c.coordinate.leftTop[1]), f = Math.ceil(u.coordinate.rightBottom[1] - d);
|
|
23647
|
-
t.textBaseline = "middle", s.backgroundColor && (t.fillStyle = s.backgroundColor, t.fillRect(h, d, i, f)), s.borderColor && (t.strokeStyle = s.borderColor, t.strokeRect(h, d, i, f)), s.placeholder && l.length <= 1 && new
|
|
23645
|
+
t.textBaseline = "middle", s.backgroundColor && (t.fillStyle = s.backgroundColor, t.fillRect(h, d, i, f)), s.borderColor && (t.strokeStyle = s.borderColor, t.strokeRect(h, d, i, f)), s.placeholder && l.length <= 1 && new ba(this.draw).render(t, {
|
|
23648
23646
|
placeholder: {
|
|
23649
23647
|
...pl,
|
|
23650
23648
|
...s.placeholder
|
|
@@ -24082,7 +24080,7 @@ class xp {
|
|
|
24082
24080
|
* @param override - 覆盖器
|
|
24083
24081
|
*/
|
|
24084
24082
|
constructor(t, e, n, i, r, s) {
|
|
24085
|
-
this.container = this._wrapContainer(t), this.pageList = [], this.ctxList = [], this.pageNo = 0, this.renderCount = 0, this.pagePixelRatio = null, this.mode = e.mode, this.options = e, this.elementList = n.main, this.listener = i, this.eventBus = r, this.override = s, this._formatContainer(), this.pageContainer = this._createPageContainer(), this._createPage(0), this.i18n = new Rp(e.locale), this.historyManager = new nd(this), this.position = new od(this), this.zone = new pp(this), this.range = new id(this), this.margin = new ld(this), this.background = new sd(this), this.badge = new Fp(this), this.search = new ad(this), this.group = new mp(this), this.area = new Cp(this), this.underline = new ud(this), this.strikeout = new cd(this), this.highlight = new rd(this), this.previewer = new $f(this), this.imageParticle = new dl(this), this.laTexParticle = new gl(this), this.textParticle = new dd(this), this.tableParticle = new gd(this), this.tableTool = new fd(this), this.tableOperate = new Dp(this), this.pageNumber = new mo(this), this.lineNumber = new Ep(this), this.waterMark = new Md(this), this.placeholder = new
|
|
24083
|
+
this.container = this._wrapContainer(t), this.pageList = [], this.ctxList = [], this.pageNo = 0, this.renderCount = 0, this.pagePixelRatio = null, this.mode = e.mode, this.options = e, this.elementList = n.main, this.listener = i, this.eventBus = r, this.override = s, this._formatContainer(), this.pageContainer = this._createPageContainer(), this._createPage(0), this.i18n = new Rp(e.locale), this.historyManager = new nd(this), this.position = new od(this), this.zone = new pp(this), this.range = new id(this), this.margin = new ld(this), this.background = new sd(this), this.badge = new Fp(this), this.search = new ad(this), this.group = new mp(this), this.area = new Cp(this), this.underline = new ud(this), this.strikeout = new cd(this), this.highlight = new rd(this), this.previewer = new $f(this), this.imageParticle = new dl(this), this.laTexParticle = new gl(this), this.textParticle = new dd(this), this.tableParticle = new gd(this), this.tableTool = new fd(this), this.tableOperate = new Dp(this), this.pageNumber = new mo(this), this.lineNumber = new Ep(this), this.waterMark = new Md(this), this.placeholder = new ba(this), this.header = new md(this, n.header), this.footer = new Tp(this, n.footer), this.hyperlinkParticle = new pd(this), this.labelParticle = new Td(this), this.macroParticle = new Id(this), this.dateParticle = new zf(this), this.separatorParticle = new Ed(this), this.pageBreakParticle = new Od(this), this.superscriptParticle = new Ld(), this.subscriptParticle = new Pd(), this.checkboxParticle = new vf(this), this.radioParticle = new Qf(this), this.menstrualHistoryParticle = new Hf(this), this.fetalHeartPositionParticle = new Kf(this), this.toothPositionParticle = new Af(this), this.blockParticle = new qf(this), this.listParticle = new Ip(this), this.lineBreakParticle = new Zo(this), this.whiteSpaceParticle = new Lp(this), this.control = new Wf(this), this.pageBorder = new Op(this), this.graffiti = new Xp(this, n.graffiti), this.scrollObserver = new hd(this), this.selectionObserver = new Rd(this), this.imageObserver = new gp(), new Pp(this), this.canvasEvent = new qu(this), this.cursor = new Ru(this, this.canvasEvent), this.canvasEvent.register(), this.globalEvent = new ed(this, this.canvasEvent), this.globalEvent.register(), this.workerManager = new Jf(this), new Sp(this);
|
|
24086
24084
|
const { letterClass: l } = e;
|
|
24087
24085
|
this.LETTER_REG = new RegExp(`[${l.join("")}]`), this.WORD_LIKE_REG = new RegExp(`${l.map((a) => `[^${a}][${a}]`).join("|")}`), this.rowList = [], this.pageRowList = [], this.painterStyle = null, this.painterOptions = null, this.visiblePageNoList = [], this.intersectionPageNo = 0, this.lazyRenderIntersectionObserver = null, this.printModeData = null, this.readonlyModeData = null, this.interactionPaused = !1, this.overlayActiveCount = 0, this.globalShortcutSuspended = !1, this.isPrintLikeMode() && this.setPrintData(), this.mode === K.READONLY && this.setReadonlyData(), this.mode, K.FORM, this.render({
|
|
24088
24086
|
isInit: !0,
|
|
@@ -24411,7 +24409,7 @@ class xp {
|
|
|
24411
24409
|
if (this.mode === K.EDIT && a)
|
|
24412
24410
|
r = this.syncSubTemplateExpandedState(i, s, l, !0, !0) || r;
|
|
24413
24411
|
else if ((this.mode === K.FORM || this.isPrintLikeMode()) && a) {
|
|
24414
|
-
const c = e ?
|
|
24412
|
+
const c = e ? Zf(l.subTemplateConditions, e, l.subTemplateRelation) : !1;
|
|
24415
24413
|
r = this.syncSubTemplateExpandedState(i, s, l, c, !0) || r;
|
|
24416
24414
|
} else if ((this.mode === K.FORM || this.isPrintLikeMode()) && !a) {
|
|
24417
24415
|
const c = l.subTemplateExpanded === !0;
|
|
@@ -25627,7 +25625,7 @@ class xp {
|
|
|
25627
25625
|
height: 0,
|
|
25628
25626
|
boundingBoxAscent: 0,
|
|
25629
25627
|
boundingBoxDescent: 0
|
|
25630
|
-
}, Q = D.offsetX || E.listId && O.get(E.listId) || 0,
|
|
25628
|
+
}, Q = D.offsetX || E.listId && O.get(E.listId) || 0, Z = e - Q, H = D.elementList.length === 1;
|
|
25631
25629
|
if (N += H ? Q : 0, w += H && D.offsetY || 0, (E.control?.type === b.TEXTFIELD || E.control?.type === b.TEXT) && !this.isDesignMode() && (E.controlComponent === R.PRETEXTFIX || E.controlComponent === R.PRETEXTFIX_TEXT || E.controlComponent === R.POSTTEXTFIX || E.controlComponent === R.POSTTEXTFIX_TEXT || E.controlComponent === R.TEXTFIXLABEL || E.controlComponent === R.PLACEHOLDER || E.controlComponent === R.PREFIX || E.controlComponent === R.POSTFIX)) {
|
|
25632
25630
|
const it = E.control?.type === b.TEXTFIELD, q = E.controlId, J = !!q && !!M?.has(q);
|
|
25633
25631
|
if (it) {
|
|
@@ -25646,9 +25644,9 @@ class xp {
|
|
|
25646
25644
|
x.width = 0, x.height = 0, x.boundingBoxDescent = 0;
|
|
25647
25645
|
else {
|
|
25648
25646
|
const it = E.width * d, q = E.height * d;
|
|
25649
|
-
if (it >
|
|
25650
|
-
const J = q *
|
|
25651
|
-
E.width =
|
|
25647
|
+
if (it > Z) {
|
|
25648
|
+
const J = q * Z / it;
|
|
25649
|
+
E.width = Z / d, E.height = J / d, x.width = Z, x.height = J, x.boundingBoxDescent = J;
|
|
25652
25650
|
} else
|
|
25653
25651
|
x.width = it, x.height = q, x.boundingBoxDescent = q;
|
|
25654
25652
|
if (E.imgCaption?.value) {
|
|
@@ -25711,8 +25709,8 @@ class xp {
|
|
|
25711
25709
|
const Ft = E.trList;
|
|
25712
25710
|
let Ut = 0, wt = 0, se = 0;
|
|
25713
25711
|
for (let mt = 0; mt < Ft.length; mt++) {
|
|
25714
|
-
const Tt = Ft[mt],
|
|
25715
|
-
if (ft + xt + se +
|
|
25712
|
+
const Tt = Ft[mt], vt = Tt.height * d;
|
|
25713
|
+
if (ft + xt + se + vt > tt) {
|
|
25716
25714
|
const bt = Tt;
|
|
25717
25715
|
let Nt = 0;
|
|
25718
25716
|
const yt = {
|
|
@@ -25787,19 +25785,19 @@ class xp {
|
|
|
25787
25785
|
break;
|
|
25788
25786
|
}
|
|
25789
25787
|
}
|
|
25790
|
-
Ut = mt + 1, wt = Ft.length - Ut, se +=
|
|
25788
|
+
Ut = mt + 1, wt = Ft.length - Ut, se += vt, Vt -= vt;
|
|
25791
25789
|
}
|
|
25792
25790
|
if (wt) {
|
|
25793
25791
|
const mt = Ft.splice(Ut, wt), Tt = E.pagingId || Lt();
|
|
25794
25792
|
E.pagingId = Tt;
|
|
25795
|
-
const
|
|
25796
|
-
|
|
25793
|
+
const vt = ut(E);
|
|
25794
|
+
vt.originalId = E.originalId ?? E.id, vt.pagingId = Tt, vt.pagingIndex = E.pagingIndex + 1;
|
|
25797
25795
|
const bt = Ft.filter(($t) => $t.pagingRepeat);
|
|
25798
25796
|
if (bt.length) {
|
|
25799
25797
|
const $t = ut(bt);
|
|
25800
25798
|
$t.forEach((Te) => Te.id = Lt()), mt.unshift(...$t);
|
|
25801
25799
|
}
|
|
25802
|
-
|
|
25800
|
+
vt.trList = mt, vt.id = Lt(), vt.trList?.forEach(($t) => {
|
|
25803
25801
|
$t.tdList.forEach((Te) => {
|
|
25804
25802
|
if (delete Te.valueStartIndex, Te.linkTdPrevId) {
|
|
25805
25803
|
const Mt = this.getTdById(Te.linkTdPrevId);
|
|
@@ -25808,9 +25806,9 @@ class xp {
|
|
|
25808
25806
|
...Te.value
|
|
25809
25807
|
]);
|
|
25810
25808
|
}
|
|
25811
|
-
Te.value.forEach((Mt) => this.updateElementTableInfo(Mt,
|
|
25809
|
+
Te.value.forEach((Mt) => this.updateElementTableInfo(Mt, vt, $t, Te));
|
|
25812
25810
|
});
|
|
25813
|
-
}), this.spliceElementList(n, X + 1, 0, [
|
|
25811
|
+
}), this.spliceElementList(n, X + 1, 0, [vt]), this.tableParticle.computeTrHeight(E);
|
|
25814
25812
|
const Nt = this.tableParticle.getTableHeight(E), yt = Nt * d;
|
|
25815
25813
|
E.height = Nt, x.height = yt, x.boundingBoxDescent = yt;
|
|
25816
25814
|
}
|
|
@@ -25823,7 +25821,7 @@ class xp {
|
|
|
25823
25821
|
const mt = n[se];
|
|
25824
25822
|
if (mt.pagingId !== E.pagingId)
|
|
25825
25823
|
break;
|
|
25826
|
-
const Tt = mt.trList.findIndex((
|
|
25824
|
+
const Tt = mt.trList.findIndex((vt) => vt.id === Ft.trId);
|
|
25827
25825
|
if (~Tt) {
|
|
25828
25826
|
Ut = se, wt = Tt;
|
|
25829
25827
|
break;
|
|
@@ -25837,9 +25835,9 @@ class xp {
|
|
|
25837
25835
|
this.initTableElementIndex(E, X);
|
|
25838
25836
|
} else if (E.type === P.SEPARATOR) {
|
|
25839
25837
|
const { separator: { lineWidth: it } } = this.options, q = E.lineWidth || it;
|
|
25840
|
-
E.width =
|
|
25838
|
+
E.width = Z / d, x.width = Z, x.height = q * d, x.boundingBoxAscent = -U, x.boundingBoxDescent = -U + x.height;
|
|
25841
25839
|
} else if (E.type === P.PAGE_BREAK)
|
|
25842
|
-
E.width =
|
|
25840
|
+
E.width = Z / d, x.width = Z, x.height = h;
|
|
25843
25841
|
else if (E.type === P.RADIO || E.controlComponent === R.RADIO) {
|
|
25844
25842
|
const { width: it, height: q, gap: J } = this.options.radio, z = it + J * (E.controlComponent ? 1 : 2);
|
|
25845
25843
|
E.width = z, x.width = z * d, x.height = q * d;
|
|
@@ -25859,10 +25857,10 @@ class xp {
|
|
|
25859
25857
|
x.width = I * d, x.height = h * d, x.boundingBoxDescent = 0, x.boundingBoxAscent = this.textParticle.getBasisWordBoundingBoxAscent(T, T.font);
|
|
25860
25858
|
else if (E.type === P.BLOCK) {
|
|
25861
25859
|
if (!E.width)
|
|
25862
|
-
x.width =
|
|
25860
|
+
x.width = Z;
|
|
25863
25861
|
else {
|
|
25864
25862
|
const it = E.width * d;
|
|
25865
|
-
x.width = Math.min(it,
|
|
25863
|
+
x.width = Math.min(it, Z);
|
|
25866
25864
|
}
|
|
25867
25865
|
x.height = E.height * d, x.boundingBoxDescent = x.height, x.boundingBoxAscent = 0;
|
|
25868
25866
|
} else if (E.type === P.LABEL) {
|
|
@@ -25944,7 +25942,7 @@ class xp {
|
|
|
25944
25942
|
G.control?.minWidth && (G.controlComponent && (W += x.width), G.controlComponent === R.POSTFIX && (this.control.setMinWidthControlInfo({
|
|
25945
25943
|
row: D,
|
|
25946
25944
|
rowElement: G,
|
|
25947
|
-
availableWidth:
|
|
25945
|
+
availableWidth: Z,
|
|
25948
25946
|
controlRealWidth: W
|
|
25949
25947
|
}), W = 0));
|
|
25950
25948
|
const B = n[X - 1];
|
|
@@ -25953,7 +25951,7 @@ class xp {
|
|
|
25953
25951
|
const it = `${B?.value || ""}${E.value}`;
|
|
25954
25952
|
if (this.WORD_LIKE_REG.test(it)) {
|
|
25955
25953
|
const { width: J, endElement: z } = this.textParticle.measureWord(T, n, X), at = J * d;
|
|
25956
|
-
z && at <=
|
|
25954
|
+
z && at <= Z ? (j += at, nt = z) : B && (j += at);
|
|
25957
25955
|
}
|
|
25958
25956
|
const q = this.textParticle.measurePunctuationWidth(T, nt);
|
|
25959
25957
|
j += q * d;
|
|
@@ -25969,7 +25967,7 @@ class xp {
|
|
|
25969
25967
|
height: $,
|
|
25970
25968
|
width: A
|
|
25971
25969
|
},
|
|
25972
|
-
availableWidth:
|
|
25970
|
+
availableWidth: Z,
|
|
25973
25971
|
surroundElementList: u
|
|
25974
25972
|
});
|
|
25975
25973
|
N = Yt.x, j += Yt.rowIncreaseWidth, N += A;
|
|
@@ -25995,10 +25993,10 @@ class xp {
|
|
|
25995
25993
|
J += tt.width * d;
|
|
25996
25994
|
}
|
|
25997
25995
|
}
|
|
25998
|
-
At = D.width + J >
|
|
25996
|
+
At = D.width + J > Z;
|
|
25999
25997
|
}
|
|
26000
25998
|
}
|
|
26001
|
-
const Ne = E.type === P.SEPARATOR || E.type === P.TABLE || B?.type === P.TABLE || B?.type === P.CUSTOM_MACRO && Hn.test(B.macroConfig?.value || "") || B?.type === P.REUSABLE_ITEM && Hn.test(B.reusableItemConfig?.value || "") || B?.type === P.BLOCK || E.type === P.BLOCK || B?.imgDisplay === Et.INLINE || E.imgDisplay === Et.INLINE || B?.listId !== E.listId || B?.areaId !== E.areaId && !E.area?.hide || E.control?.flexDirection === ns.COLUMN && (E.controlComponent === R.CHECKBOX || E.controlComponent === R.RADIO) && B?.controlComponent === R.VALUE || X !== 0 && E.value === _ && !E.area?.hide || At, ce = j >
|
|
25999
|
+
const Ne = E.type === P.SEPARATOR || E.type === P.TABLE || B?.type === P.TABLE || B?.type === P.CUSTOM_MACRO && Hn.test(B.macroConfig?.value || "") || B?.type === P.REUSABLE_ITEM && Hn.test(B.reusableItemConfig?.value || "") || B?.type === P.BLOCK || E.type === P.BLOCK || B?.imgDisplay === Et.INLINE || E.imgDisplay === Et.INLINE || B?.listId !== E.listId || B?.areaId !== E.areaId && !E.area?.hide || E.control?.flexDirection === ns.COLUMN && (E.controlComponent === R.CHECKBOX || E.controlComponent === R.RADIO) && B?.controlComponent === R.VALUE || X !== 0 && E.value === _ && !E.area?.hide || At, ce = j > Z, Le = Ne || ce;
|
|
26002
26000
|
if (Le) {
|
|
26003
26001
|
const it = {
|
|
26004
26002
|
width: A,
|
|
@@ -26024,12 +26022,12 @@ class xp {
|
|
|
26024
26022
|
} else
|
|
26025
26023
|
D.width += A, X === 0 && (To(n[1]) || n[1]?.areaId) ? (D.height = m, D.ascent = m) : D.height < $ && (D.height = $, D.ascent = Y), D.elementList.push(G);
|
|
26026
26024
|
if ((Le || X === n.length - 1) && (D.isWidthNotEnough = ce && !Ne, !D.isSurround && (B?.rowFlex === kt.JUSTIFY || B?.rowFlex === kt.ALIGNMENT && D.isWidthNotEnough))) {
|
|
26027
|
-
const it = D.elementList[0]?.value === _ ? D.elementList.slice(1) : D.elementList, q = (
|
|
26025
|
+
const it = D.elementList[0]?.value === _ ? D.elementList.slice(1) : D.elementList, q = (Z - D.width) / (it.length - 1);
|
|
26028
26026
|
for (let J = 0; J < it.length - 1; J++) {
|
|
26029
26027
|
const z = it[J];
|
|
26030
26028
|
z.metrics.width += q;
|
|
26031
26029
|
}
|
|
26032
|
-
D.width =
|
|
26030
|
+
D.width = Z;
|
|
26033
26031
|
}
|
|
26034
26032
|
if (Le) {
|
|
26035
26033
|
N = s, w += D.height, i && !r && a && (w - l + c + $ > a || E.type === P.PAGE_BREAK) && (w = l, iu(u, V), V += 1), G.left = 0;
|
|
@@ -26044,7 +26042,7 @@ class xp {
|
|
|
26044
26042
|
height: $,
|
|
26045
26043
|
width: A
|
|
26046
26044
|
},
|
|
26047
|
-
availableWidth:
|
|
26045
|
+
availableWidth: Z,
|
|
26048
26046
|
surroundElementList: u
|
|
26049
26047
|
}).x, N += A;
|
|
26050
26048
|
}
|
|
@@ -26249,7 +26247,7 @@ class xp {
|
|
|
26249
26247
|
const Y = C.buttonValueLayoutPrefixOffset === !0;
|
|
26250
26248
|
(C.left || Y) && this.textParticle.complete(), this.textParticle.record(t, C, X, D + W), (Y || C.width || C.letterSpacing || va.test(C.value)) && this.textParticle.complete();
|
|
26251
26249
|
}
|
|
26252
|
-
if (g && !m && this.mode !== K.CLEAN && !F.isWidthNotEnough && V === F.elementList.length - 1 && this.lineBreakParticle.render(t, C, X, D + F.height / 2), I &&
|
|
26250
|
+
if (g && !m && this.mode !== K.CLEAN && !F.isWidthNotEnough && V === F.elementList.length - 1 && this.lineBreakParticle.render(t, C, X, D + F.height / 2), I && Qa.test(C.value) && this.whiteSpaceParticle.render(t, C, X, D + F.height / 2), C.control?.border) {
|
|
26253
26251
|
E?.control?.border && E.controlId !== C.controlId && this.control.drawBorder(t);
|
|
26254
26252
|
const Y = this.getElementRowMargin(C);
|
|
26255
26253
|
this.control.recordBorderInfo(X, D + Y, C.metrics.width, F.height - 2 * Y);
|
|
@@ -26275,8 +26273,8 @@ class xp {
|
|
|
26275
26273
|
}
|
|
26276
26274
|
} else E?.strikeout && this.strikeout.render(t);
|
|
26277
26275
|
const { zone: U, splitTdRange: x } = this.range.getRange();
|
|
26278
|
-
let { startIndex: Q, endIndex:
|
|
26279
|
-
if (p && x && [p.originalId, p.id].includes(x.originalId) && (H = !0, Q = x.startIndex - (p.valueStartIndex ?? 0),
|
|
26276
|
+
let { startIndex: Q, endIndex: Z } = this.range.getRange(), H = !1;
|
|
26277
|
+
if (p && x && [p.originalId, p.id].includes(x.originalId) && (H = !0, Q = x.startIndex - (p.valueStartIndex ?? 0), Z = x.endIndex - (p.valueStartIndex ?? 0)), U === f && Q !== Z && Q <= S && S <= Z) {
|
|
26280
26278
|
const Y = this.position.getPositionContext();
|
|
26281
26279
|
if (!Y.isTable && !C.tdId || // positionContext.tdId === element.tdId
|
|
26282
26280
|
Y.tdId === C.tdId || H)
|
|
@@ -26448,7 +26446,7 @@ class xp {
|
|
|
26448
26446
|
this.footer.compute(), i("footer.compute", A);
|
|
26449
26447
|
}
|
|
26450
26448
|
}
|
|
26451
|
-
const X = this.getMargins(), D = this.getHeight(), E = this.header.getExtraHeight(), U = this.getMainOuterHeight(), x = X[3], Q = X[0] + E,
|
|
26449
|
+
const X = this.getMargins(), D = this.getHeight(), E = this.header.getExtraHeight(), U = this.getMainOuterHeight(), x = X[3], Q = X[0] + E, Z = Us(this.elementList), H = ge();
|
|
26452
26450
|
this.rowList = this.computeRowList({
|
|
26453
26451
|
startX: x,
|
|
26454
26452
|
startY: Q,
|
|
@@ -26456,7 +26454,7 @@ class xp {
|
|
|
26456
26454
|
mainOuterHeight: U,
|
|
26457
26455
|
isPagingMode: N,
|
|
26458
26456
|
innerWidth: F,
|
|
26459
|
-
surroundElementList:
|
|
26457
|
+
surroundElementList: Z,
|
|
26460
26458
|
elementList: this.elementList
|
|
26461
26459
|
}), i("computeRowList", H);
|
|
26462
26460
|
const Y = ge();
|
|
@@ -26580,7 +26578,7 @@ class xp {
|
|
|
26580
26578
|
let r = !0;
|
|
26581
26579
|
if (t !== void 0 && e.isImage && e.isDirectHit) {
|
|
26582
26580
|
const s = i[t];
|
|
26583
|
-
if (s &&
|
|
26581
|
+
if (s && rc.includes(s.type)) {
|
|
26584
26582
|
r = !1;
|
|
26585
26583
|
const l = this.position.getCursorPosition();
|
|
26586
26584
|
this.previewer.updateResizer(s, l);
|
|
@@ -27082,7 +27080,7 @@ class wp {
|
|
|
27082
27080
|
i.length && i.sort((u, h) => h.index - u.index).forEach((u) => {
|
|
27083
27081
|
t.splice(u.index, 1);
|
|
27084
27082
|
});
|
|
27085
|
-
const c =
|
|
27083
|
+
const c = Zt(n);
|
|
27086
27084
|
!c.length || l && !i.length || a < 0 || c.forEach((u, h) => {
|
|
27087
27085
|
const d = {
|
|
27088
27086
|
...ie(r, me),
|
|
@@ -27312,7 +27310,7 @@ class wp {
|
|
|
27312
27310
|
pasteControl() {
|
|
27313
27311
|
if (this.draw.isReadonly() || this.draw.isDisabled())
|
|
27314
27312
|
return;
|
|
27315
|
-
const e =
|
|
27313
|
+
const e = Xl();
|
|
27316
27314
|
if (!e?.element)
|
|
27317
27315
|
return;
|
|
27318
27316
|
const { startIndex: n, endIndex: i } = this.range.getRange();
|
|
@@ -27654,7 +27652,7 @@ class wp {
|
|
|
27654
27652
|
hide: !1
|
|
27655
27653
|
});
|
|
27656
27654
|
for (let L = 0; L < s.length; L++) {
|
|
27657
|
-
const T = s[L], O = s.length > 1 ? `${L + 1}.${T.value}` : T.value, S =
|
|
27655
|
+
const T = s[L], O = s.length > 1 ? `${L + 1}.${T.value}` : T.value, S = Zt(O);
|
|
27658
27656
|
for (let M = 0; M < S.length; M++)
|
|
27659
27657
|
f.push({
|
|
27660
27658
|
value: S[M],
|
|
@@ -27838,7 +27836,7 @@ class wp {
|
|
|
27838
27836
|
return;
|
|
27839
27837
|
const r = this.range.getSelectionElementList();
|
|
27840
27838
|
if (r?.length) {
|
|
27841
|
-
const s = r.some((l) => !l.underline || !t && l.textDecoration || t && !l.textDecoration || t && l.textDecoration &&
|
|
27839
|
+
const s = r.some((l) => !l.underline || !t && l.textDecoration || t && !l.textDecoration || t && l.textDecoration && !$a(l.textDecoration, t));
|
|
27842
27840
|
r.forEach((l) => {
|
|
27843
27841
|
l.underline = s, s && t ? l.textDecoration = t : delete l.textDecoration;
|
|
27844
27842
|
}), this.draw.render({
|
|
@@ -28414,7 +28412,7 @@ class wp {
|
|
|
28414
28412
|
this.draw.getCursor().getHitLineStartIndex() || (O = L?.elementList[0]?.value === _ ? d?.index - L?.startIndex : d?.index - L?.startIndex + 1), d === f ? S = O : S = T.elementList[0]?.value === _ ? f.index - T.startIndex : f.index - T.startIndex + 1;
|
|
28415
28413
|
const M = [], F = this.draw.getOriginalHeight(), N = this.draw.getOriginalPageGap(), w = this.position.getSelectionPositionList();
|
|
28416
28414
|
if (w) {
|
|
28417
|
-
let Q = null,
|
|
28415
|
+
let Q = null, Z = 0, H = null;
|
|
28418
28416
|
for (let Y = 0; Y < w.length; Y++) {
|
|
28419
28417
|
const { rowNo: $, pageNo: G, coordinate: { leftTop: A, rightTop: B }, lineHeight: nt } = w[Y];
|
|
28420
28418
|
Q === null || Q !== $ ? (H && M.push(H), H = {
|
|
@@ -28422,10 +28420,10 @@ class wp {
|
|
|
28422
28420
|
y: A[1] + G * (F + N),
|
|
28423
28421
|
width: B[0] - A[0],
|
|
28424
28422
|
height: nt
|
|
28425
|
-
}, Q = $,
|
|
28423
|
+
}, Q = $, Z = A[0]) : H.width = B[0] - Z, Y === w.length - 1 && H && M.push(H);
|
|
28426
28424
|
}
|
|
28427
28425
|
} else {
|
|
28428
|
-
const
|
|
28426
|
+
const Z = this.position.getPositionList()[n], { coordinate: { rightTop: H }, pageNo: Y, lineHeight: $ } = Z;
|
|
28429
28427
|
M.push({
|
|
28430
28428
|
x: H[0],
|
|
28431
28429
|
y: H[1] + Y * (F + N),
|
|
@@ -28436,13 +28434,13 @@ class wp {
|
|
|
28436
28434
|
const V = this.draw.getZone().getZone(), { isTable: C, trIndex: y, tdIndex: W, index: X } = this.position.getPositionContext();
|
|
28437
28435
|
let D = null;
|
|
28438
28436
|
if (C) {
|
|
28439
|
-
const
|
|
28440
|
-
|
|
28437
|
+
const Z = this.draw.getOriginalElementList()[X] || null;
|
|
28438
|
+
Z && (D = Kt([Z])[0]);
|
|
28441
28439
|
}
|
|
28442
28440
|
let E = null, U = null, x = e - 1;
|
|
28443
28441
|
for (; x > 0; ) {
|
|
28444
|
-
const Q = l[x],
|
|
28445
|
-
if (Q.titleId && Q.titleId !==
|
|
28442
|
+
const Q = l[x], Z = l[x - 1];
|
|
28443
|
+
if (Q.titleId && Q.titleId !== Z?.titleId) {
|
|
28446
28444
|
E = Q.titleId, U = h[x].pageNo;
|
|
28447
28445
|
break;
|
|
28448
28446
|
}
|
|
@@ -28597,7 +28595,7 @@ class wp {
|
|
|
28597
28595
|
const { elementList: a, index: c, isInsideControl: u } = i[l], h = a[c], d = h.controlId && h.controlComponent === R.VALUE;
|
|
28598
28596
|
if (u || d) {
|
|
28599
28597
|
if (Object.assign(h, t.properties), h.id) {
|
|
28600
|
-
const f =
|
|
28598
|
+
const f = Il(h.id);
|
|
28601
28599
|
f && Object.assign(f, t.properties);
|
|
28602
28600
|
}
|
|
28603
28601
|
} else {
|
|
@@ -29628,7 +29626,7 @@ class wp {
|
|
|
29628
29626
|
}
|
|
29629
29627
|
}
|
|
29630
29628
|
}
|
|
29631
|
-
class
|
|
29629
|
+
class Zp {
|
|
29632
29630
|
rangeStyleChange;
|
|
29633
29631
|
visiblePageNoListChange;
|
|
29634
29632
|
intersectionPageNoChange;
|
|
@@ -29644,7 +29642,7 @@ class vp {
|
|
|
29644
29642
|
this.rangeStyleChange = null, this.visiblePageNoListChange = null, this.intersectionPageNoChange = null, this.pageSizeChange = null, this.pageScaleChange = null, this.saved = null, this.contentChange = null, this.controlChange = null, this.controlContentChange = null, this.pageModeChange = null, this.zoneChange = null;
|
|
29645
29643
|
}
|
|
29646
29644
|
}
|
|
29647
|
-
class
|
|
29645
|
+
class vp {
|
|
29648
29646
|
contextMenu;
|
|
29649
29647
|
contextMenuList;
|
|
29650
29648
|
getContextMenuList;
|
|
@@ -29927,7 +29925,7 @@ const kp = [
|
|
|
29927
29925
|
}
|
|
29928
29926
|
]
|
|
29929
29927
|
}
|
|
29930
|
-
], { TABLE: { BORDER: gT, BORDER_ALL: fT, BORDER_EMPTY: pT, BORDER_DASH: TT, BORDER_EXTERNAL: IT, BORDER_INTERNAL: mT, BORDER_TD: LT, BORDER_TD_TOP: PT, BORDER_TD_LEFT: ET, BORDER_TD_BOTTOM: OT, BORDER_TD_RIGHT: MT, BORDER_TD_BACK: ST, BORDER_TD_FORWARD: DT, VERTICAL_ALIGN: CT, VERTICAL_ALIGN_TOP: FT, VERTICAL_ALIGN_MIDDLE: XT, VERTICAL_ALIGN_BOTTOM: NT, INSERT_ROW_COL: xT, INSERT_TOP_ROW: bT, INSERT_BOTTOM_ROW: yT, INSERT_LEFT_COL: VT, INSERT_RIGHT_COL: WT, DELETE_ROW_COL: YT, DELETE_ROW: UT, DELETE_COL: wT, DELETE_TABLE:
|
|
29928
|
+
], { TABLE: { BORDER: gT, BORDER_ALL: fT, BORDER_EMPTY: pT, BORDER_DASH: TT, BORDER_EXTERNAL: IT, BORDER_INTERNAL: mT, BORDER_TD: LT, BORDER_TD_TOP: PT, BORDER_TD_LEFT: ET, BORDER_TD_BOTTOM: OT, BORDER_TD_RIGHT: MT, BORDER_TD_BACK: ST, BORDER_TD_FORWARD: DT, VERTICAL_ALIGN: CT, VERTICAL_ALIGN_TOP: FT, VERTICAL_ALIGN_MIDDLE: XT, VERTICAL_ALIGN_BOTTOM: NT, INSERT_ROW_COL: xT, INSERT_TOP_ROW: bT, INSERT_BOTTOM_ROW: yT, INSERT_LEFT_COL: VT, INSERT_RIGHT_COL: WT, DELETE_ROW_COL: YT, DELETE_ROW: UT, DELETE_COL: wT, DELETE_TABLE: ZT, MERGE_CELL: vT, CANCEL_MERGE_CELL: QT } } = Ao, HT = [
|
|
29931
29929
|
{
|
|
29932
29930
|
isDivider: !0
|
|
29933
29931
|
},
|
|
@@ -30150,7 +30148,7 @@ const kp = [
|
|
|
30150
30148
|
}
|
|
30151
30149
|
},
|
|
30152
30150
|
{
|
|
30153
|
-
key:
|
|
30151
|
+
key: ZT,
|
|
30154
30152
|
i18nPath: "contextmenu.table.deleteTable",
|
|
30155
30153
|
icon: "delete-table",
|
|
30156
30154
|
when: () => !0,
|
|
@@ -30161,7 +30159,7 @@ const kp = [
|
|
|
30161
30159
|
]
|
|
30162
30160
|
},
|
|
30163
30161
|
{
|
|
30164
|
-
key:
|
|
30162
|
+
key: vT,
|
|
30165
30163
|
i18nPath: "contextmenu.table.mergeCell",
|
|
30166
30164
|
icon: "merge-cell",
|
|
30167
30165
|
when: (o) => !o.isReadonly && o.isCrossRowCol,
|
|
@@ -30672,7 +30670,7 @@ class eI {
|
|
|
30672
30670
|
editorOptions: i,
|
|
30673
30671
|
isForceCompensation: !0
|
|
30674
30672
|
});
|
|
30675
|
-
}), this.version = xs, this.listener = new
|
|
30673
|
+
}), this.version = xs, this.listener = new Zp(), this.eventBus = new JT(), this.override = new $T(), this.draw = new xp(t, i, {
|
|
30676
30674
|
header: r,
|
|
30677
30675
|
main: s,
|
|
30678
30676
|
footer: l,
|
|
@@ -30681,7 +30679,7 @@ class eI {
|
|
|
30681
30679
|
const u = this.draw;
|
|
30682
30680
|
this.command = new bp(new wp(u)), u.setCommand(this.command);
|
|
30683
30681
|
const h = new KT(u, this.command), d = new GT(u, this.command);
|
|
30684
|
-
this.register = new
|
|
30682
|
+
this.register = new vp({
|
|
30685
30683
|
contextMenu: h,
|
|
30686
30684
|
shortcut: d,
|
|
30687
30685
|
i18n: u.getI18n()
|
|
@@ -30777,5 +30775,5 @@ export {
|
|
|
30777
30775
|
eI as default,
|
|
30778
30776
|
Xo as getElementListByHTML,
|
|
30779
30777
|
so as getTextFromElementList,
|
|
30780
|
-
|
|
30778
|
+
Zt as splitText
|
|
30781
30779
|
};
|