@univerjs-pro/ink 1.0.4 → 1.1.0
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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x454bac=_0x17e3;(function(_0x5e0621,_0xc888b5){const _0x4d8a3f=_0x17e3,_0x568941=_0x5e0621();while(!![]){try{const _0x66fd6f=parseInt(_0x4d8a3f(0x15c))/0x1*(-parseInt(_0x4d8a3f(0x142))/0x2)+parseInt(_0x4d8a3f(0x149))/0x3*(-parseInt(_0x4d8a3f(0x13c))/0x4)+parseInt(_0x4d8a3f(0x148))/0x5*(parseInt(_0x4d8a3f(0x171))/0x6)+-parseInt(_0x4d8a3f(0x159))/0x7+-parseInt(_0x4d8a3f(0x168))/0x8*(-parseInt(_0x4d8a3f(0x13b))/0x9)+parseInt(_0x4d8a3f(0x14e))/0xa+parseInt(_0x4d8a3f(0x167))/0xb;if(_0x66fd6f===_0xc888b5)break;else _0x568941['push'](_0x568941['shift']());}catch(_0x22eb1a){_0x568941['push'](_0x568941['shift']());}}}(_0x32bd,0x8a996),Object[_0x454bac(0x152)](exports,Symbol[_0x454bac(0x160)],{'value':_0x454bac(0x139)}));function _0x32bd(){const _0x242d85=['extend','BoardInkHandleKind','length','free','anchors','buildInkCustomShapePayload','brush','laneId','324sDvJfh','smooth','type','isFinite','points','version','findElements','object','Module','insertInk','9tgvhJC','84BikxIM','add','deepClone','filter','model','ink','8encssq','pressure','has','style','anchor','parentId','68035ZPfwLW','153393hOlLwB','every','corner','custom','Shape','10550750VTQOKw','pen','isArray','BoardInkPointType','defineProperty','highlighter','BoardElementType','tool','width','FBoard','Tools','7192479SvraeE','closed','FEnum','193533HpIKON','sourceModel','opacity','transform','toStringTag','insertIndex','kind','out','BoardInkTool','getInks','symmetric','11397848cQaOoI','4936488oYqzrR'];_0x32bd=function(){return _0x242d85;};return _0x32bd();}function _0x17e3(_0x4b44ab,_0x1d3845){_0x4b44ab=_0x4b44ab-0x135;const _0x32bd16=_0x32bd();let _0x17e388=_0x32bd16[_0x4b44ab];return _0x17e388;}let e=require('@univerjs-pro/boards'),t=require('@univerjs-pro/boards/facade'),n=require('@univerjs-pro/ink'),r=require('@univerjs/core'),i=require('@univerjs/core/facade');var a=class extends t['FBoard']{[_0x454bac(0x13a)](_0xd9fdef){const _0x473c58=_0x454bac;let _0x3470df=o(_0xd9fdef);return _0x3470df&&this['_addElement'](_0x3470df,{'insertIndex':_0xd9fdef[_0x473c58(0x161)]})?_0x3470df:null;}[_0x454bac(0x165)](){const _0x35cebd=_0x454bac;return this[_0x35cebd(0x137)]({'elementType':e['BoardElementType']['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x35cebd(0x13f)](f);}};function o(_0x3b3c20,_0x3f2611){const _0x3c86fc=_0x454bac;if(!c(_0x3b3c20['model'])||_0x3b3c20[_0x3c86fc(0x15d)]!==void 0x0&&!c(_0x3b3c20[_0x3c86fc(0x15d)])||!l(_0x3b3c20[_0x3c86fc(0x145)]))return null;let _0x1ac143=_0x3b3c20['parentId']??(_0x3f2611==null?void 0x0:_0x3f2611[_0x3c86fc(0x147)]),_0x4b91a4=r[_0x3c86fc(0x158)][_0x3c86fc(0x13e)](_0x3b3c20[_0x3c86fc(0x140)]),_0x2c8d7c=(0x0,n[_0x3c86fc(0x16e)])({'model':_0x4b91a4,'style':_0x3b3c20[_0x3c86fc(0x145)],'tool':_0x3b3c20[_0x3c86fc(0x155)],'sourceModel':_0x3b3c20[_0x3c86fc(0x15d)]?r[_0x3c86fc(0x158)][_0x3c86fc(0x13e)](_0x3b3c20['sourceModel']):_0x4b91a4}),_0x154d95=u(_0x3f2611==null?void 0x0:_0x3f2611['custom']);return{'id':(_0x3f2611==null?void 0x0:_0x3f2611['id'])??_0x3b3c20['id']??(0x0,r['generateRandomId'])(0x6),'type':e[_0x3c86fc(0x154)][_0x3c86fc(0x14d)],'transform':_0x2c8d7c[_0x3c86fc(0x15f)],'shapeData':_0x2c8d7c['shapeData'],'parentId':_0x1ac143??void 0x0,'laneId':_0x3b3c20[_0x3c86fc(0x170)]===void 0x0?_0x3f2611==null?void 0x0:_0x3f2611[_0x3c86fc(0x170)]:_0x3b3c20[_0x3c86fc(0x170)],'custom':{..._0x154d95,'ink':_0x2c8d7c[_0x3c86fc(0x141)]}};}function s(_0x3c1ce5){const _0x23f8d0=_0x454bac;return Number['isFinite'](_0x3c1ce5['x'])&&Number[_0x23f8d0(0x174)](_0x3c1ce5['y']);}function c(_0x26512f){const _0x35c2a3=_0x454bac;if(_0x26512f[_0x35c2a3(0x162)]===_0x35c2a3(0x14f)){let _0x54584b=new Set();return _0x26512f[_0x35c2a3(0x16d)][_0x35c2a3(0x16b)]>=(_0x26512f[_0x35c2a3(0x15a)]?0x3:0x2)&&_0x26512f[_0x35c2a3(0x16d)][_0x35c2a3(0x14a)](_0x2ba245=>{const _0xa34567=_0x35c2a3;let _0x345f78=_0x2ba245['id']['trim']()[_0xa34567(0x16b)]>0x0&&!_0x54584b[_0xa34567(0x144)](_0x2ba245['id'])&&s(_0x2ba245)&&(!_0x2ba245['in']||s(_0x2ba245['in']))&&(!_0x2ba245[_0xa34567(0x163)]||s(_0x2ba245[_0xa34567(0x163)]));return _0x54584b[_0xa34567(0x13d)](_0x2ba245['id']),_0x345f78;});}return _0x26512f[_0x35c2a3(0x135)][_0x35c2a3(0x16b)]>=0x2&&_0x26512f['points'][_0x35c2a3(0x14a)](_0x5d696b=>s(_0x5d696b)&&Number[_0x35c2a3(0x174)](_0x5d696b['t'])&&(_0x5d696b[_0x35c2a3(0x143)]===void 0x0||Number['isFinite'](_0x5d696b[_0x35c2a3(0x143)])))&&Number[_0x35c2a3(0x174)](_0x26512f[_0x35c2a3(0x156)])&&_0x26512f['width']>0x0&&Number['isFinite'](_0x26512f['opacity'])&&_0x26512f[_0x35c2a3(0x15e)]>=0x0&&_0x26512f[_0x35c2a3(0x15e)]<=0x1;}function l(_0x5d7af2){const _0x2c0f16=_0x454bac;return _0x5d7af2===void 0x0||(_0x5d7af2['width']===void 0x0||Number[_0x2c0f16(0x174)](_0x5d7af2[_0x2c0f16(0x156)])&&_0x5d7af2[_0x2c0f16(0x156)]>0x0)&&(_0x5d7af2[_0x2c0f16(0x15e)]===void 0x0||Number['isFinite'](_0x5d7af2[_0x2c0f16(0x15e)])&&_0x5d7af2[_0x2c0f16(0x15e)]>=0x0&&_0x5d7af2['opacity']<=0x1);}function u(_0x1f4082){const _0x4c5a16=_0x454bac;return _0x1f4082&&typeof _0x1f4082==_0x4c5a16(0x138)&&!Array['isArray'](_0x1f4082)?_0x1f4082:{};}function d(_0x224a29){const _0x470a29=_0x454bac;let _0x1c23fe=u(_0x224a29[_0x470a29(0x14c)])[_0x470a29(0x141)];if(!_0x1c23fe||typeof _0x1c23fe!=_0x470a29(0x138)||Array[_0x470a29(0x150)](_0x1c23fe))return null;let _0x1ac1e2=_0x1c23fe;return _0x1ac1e2[_0x470a29(0x136)]===0x1&&_0x1ac1e2[_0x470a29(0x15d)]&&typeof _0x1ac1e2[_0x470a29(0x15d)]==_0x470a29(0x138)?_0x1ac1e2:null;}function f(_0x499f85){const _0x3b8e29=_0x454bac;return _0x499f85[_0x3b8e29(0x173)]===e['BoardElementType'][_0x3b8e29(0x14d)]&&!!d(_0x499f85);}t[_0x454bac(0x157)][_0x454bac(0x169)](a);const p={'Pen':'pen','Brush':_0x454bac(0x16f),'Highlighter':_0x454bac(0x153)},m={'Corner':_0x454bac(0x14b),'Smooth':_0x454bac(0x172),'Symmetric':_0x454bac(0x166),'Free':_0x454bac(0x16c)},h={'Anchor':_0x454bac(0x146),'In':'in','Out':'out'};var g=class extends i[_0x454bac(0x15b)]{get[_0x454bac(0x164)](){return p;}get[_0x454bac(0x151)](){return m;}get[_0x454bac(0x16a)](){return h;}};i['FEnum']['extend'](g),exports[_0x454bac(0x16a)]=h,exports[_0x454bac(0x151)]=m,exports[_0x454bac(0x164)]=p;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x11e230=_0x3b57;(function(_0x471d5a,_0x13d7e3){const _0x424f35=_0x3b57,_0x3b3610=_0x471d5a();while(!![]){try{const _0x412cbc=parseInt(_0x424f35(0x14d))/0x1*(-parseInt(_0x424f35(0x13f))/0x2)+-parseInt(_0x424f35(0x162))/0x3*(parseInt(_0x424f35(0x16b))/0x4)+parseInt(_0x424f35(0x181))/0x5+parseInt(_0x424f35(0x17e))/0x6+parseInt(_0x424f35(0x152))/0x7+parseInt(_0x424f35(0x18a))/0x8+-parseInt(_0x424f35(0x186))/0x9;if(_0x412cbc===_0x13d7e3)break;else _0x3b3610['push'](_0x3b3610['shift']());}catch(_0x37fffd){_0x3b3610['push'](_0x3b3610['shift']());}}}(_0x3596,0x3ba1a),Object[_0x11e230(0x18d)](exports,Symbol[_0x11e230(0x185)],{'value':_0x11e230(0x140)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x52fc46){return{'x':_0x52fc46['x'],'y':_0x52fc46['y']};}function a(_0x2f181c){return{..._0x2f181c,'in':_0x2f181c['in']?i(_0x2f181c['in']):void 0x0,'out':_0x2f181c['out']?i(_0x2f181c['out']):void 0x0};}function o(_0xf1ab23){const _0x42e70e=_0x11e230;return{'kind':_0x42e70e(0x18e),'closed':_0xf1ab23[_0x42e70e(0x1a3)],'anchors':_0xf1ab23[_0x42e70e(0x177)][_0x42e70e(0x153)](a)};}function s(_0x151764,_0x35ad5d,_0x57ce14){return{'x':_0x151764['x']+(_0x35ad5d['x']-_0x151764['x'])*_0x57ce14,'y':_0x151764['y']+(_0x35ad5d['y']-_0x151764['y'])*_0x57ce14};}function c(_0x4c7a2a,_0x5566b1){const _0x86a803=_0x11e230;return Math[_0x86a803(0x1a0)](_0x4c7a2a['x']-_0x5566b1['x'],_0x4c7a2a['y']-_0x5566b1['y']);}function l(_0x473060){const _0x18edd5=_0x11e230;let _0x482c74=Math[_0x18edd5(0x1a0)](_0x473060['x'],_0x473060['y']);return _0x482c74<r?{'x':0x1,'y':0x0}:{'x':_0x473060['x']/_0x482c74,'y':_0x473060['y']/_0x482c74};}function u(_0x1b4f51,_0x37de1a,_0x2f482a=c(_0x1b4f51,_0x37de1a)){let _0x68ffcc=l({'x':_0x1b4f51['x']-_0x37de1a['x'],'y':_0x1b4f51['y']-_0x37de1a['y']});return{'x':_0x1b4f51['x']+_0x68ffcc['x']*_0x2f482a,'y':_0x1b4f51['y']+_0x68ffcc['y']*_0x2f482a};}function d(_0xff7fe,_0xe3ca44){const _0x1e42b0=_0x11e230;let {anchors:_0x1162c2}=_0xff7fe;return _0x1162c2[_0x1e42b0(0x141)]<0x2||_0xe3ca44<0x0?null:_0xe3ca44<_0x1162c2[_0x1e42b0(0x141)]-0x1?{'startIndex':_0xe3ca44,'endIndex':_0xe3ca44+0x1,'start':_0x1162c2[_0xe3ca44],'end':_0x1162c2[_0xe3ca44+0x1]}:_0xff7fe[_0x1e42b0(0x1a3)]&&_0xe3ca44===_0x1162c2[_0x1e42b0(0x141)]-0x1?{'startIndex':_0x1162c2['length']-0x1,'endIndex':0x0,'start':_0x1162c2[_0x1162c2[_0x1e42b0(0x141)]-0x1],'end':_0x1162c2[0x0]}:null;}function f(_0x16b4f1,_0x4a86f0){const _0x1380d1=_0x11e230;let _0x5dcbd0=d(_0x16b4f1,_0x4a86f0);return _0x5dcbd0?[_0x5dcbd0['start'],_0x5dcbd0[_0x1380d1(0x160)][_0x1380d1(0x178)]??_0x5dcbd0[_0x1380d1(0x160)],_0x5dcbd0[_0x1380d1(0x191)]['in']??_0x5dcbd0['end'],_0x5dcbd0[_0x1380d1(0x191)]]:null;}function ee(_0x170140,_0x4957fb){const _0xfc4162=_0x11e230;return _0x4957fb===_0xfc4162(0x180)?_0x170140:_0x170140[_0x4957fb]??null;}function p(_0x3359bf,_0x337d57,_0xb021b){const _0x383644=_0x11e230;return _0xb021b===_0x383644(0x180)||_0x3359bf[_0x383644(0x1a3)]?!0x0:_0xb021b==='in'?_0x337d57>0x0:_0x337d57<_0x3359bf[_0x383644(0x177)][_0x383644(0x141)]-0x1;}function m(_0x5f1806,_0x384dd1){let [_0x26e7eb,_0x3483d3,_0xa5ea15,_0xe4f425]=_0x5f1806,_0x31ce75=s(_0x26e7eb,_0x3483d3,_0x384dd1),_0x5b12ee=s(_0x3483d3,_0xa5ea15,_0x384dd1),_0x6ce637=s(_0xa5ea15,_0xe4f425,_0x384dd1);return s(s(_0x31ce75,_0x5b12ee,_0x384dd1),s(_0x5b12ee,_0x6ce637,_0x384dd1),_0x384dd1);}function _0x3b57(_0x99b10f,_0x5eb09b){_0x99b10f=_0x99b10f-0x134;const _0x359643=_0x3596();let _0x3b57a3=_0x359643[_0x99b10f];return _0x3b57a3;}function h(_0x45b48a,_0x13f2f7){let [_0x3f3e37,_0xafd6c7,_0x358de5,_0x1ba7bb]=_0x45b48a,_0x2e2e6e=s(_0x3f3e37,_0xafd6c7,_0x13f2f7),_0x34cc6b=s(_0xafd6c7,_0x358de5,_0x13f2f7),_0x5bc512=s(_0x358de5,_0x1ba7bb,_0x13f2f7),_0x47938e=s(_0x2e2e6e,_0x34cc6b,_0x13f2f7),_0x50ecb0=s(_0x34cc6b,_0x5bc512,_0x13f2f7),_0x19444d=s(_0x47938e,_0x50ecb0,_0x13f2f7);return{'left':[_0x3f3e37,_0x2e2e6e,_0x47938e,_0x19444d],'right':[_0x19444d,_0x50ecb0,_0x5bc512,_0x1ba7bb]};}function g(_0x73a0b7,_0x350ce3,_0x153760){const _0x325137=_0x11e230;let _0x9f9355=_0x153760['x']-_0x350ce3['x'],_0x47611c=_0x153760['y']-_0x350ce3['y'],_0x59d616=_0x9f9355*_0x9f9355+_0x47611c*_0x47611c,_0x94c164=_0x59d616<=r?0x0:Math[_0x325137(0x183)](0x0,Math[_0x325137(0x164)](0x1,((_0x73a0b7['x']-_0x350ce3['x'])*_0x9f9355+(_0x73a0b7['y']-_0x350ce3['y'])*_0x47611c)/_0x59d616)),_0x40dbe8={'x':_0x350ce3['x']+_0x9f9355*_0x94c164,'y':_0x350ce3['y']+_0x47611c*_0x94c164};return{'point':_0x40dbe8,'ratio':_0x94c164,'distance':c(_0x73a0b7,_0x40dbe8)};}function te(_0x276876,_0x30c5e3,_0xdb4048){const _0x4c515d=_0x11e230;return g(_0x276876,_0x30c5e3,_0xdb4048)[_0x4c515d(0x179)]**0x2;}function _0x3596(){const _0x2b7292=['object','deleteInkPenAnchor','defineProperty','pen','UniverInkPlugin','corner','end','iterator','_adapters','ShapeLineCapEnum','left','symmetric','findClosestInkPenSegment','ratio','registerAdapter','findIndex','points','kind','isInkPenHandleVisible','cycleInkPenAnchorPointType','none','hypot','startIndex','setConfig','closed','add','Rect','CommandType','color','createId','ink.host-adapter.service','ShapeLineJoinEnum','onStarting','top','ShapeLineTypeEnum','default','join','sqrt','registerCommand','33052RIgZSp','Module','length','1.0.4','function','push','anchorId','splice','string','_config','_configService','_commandService','type','symbol','19UEJdKV','ink.config','width','find','toDisposable','1643201MYNGgC','map','slice','pointType','NoFill','point','ICommandService','IConfigService','getInkPenPreviewModel','decorate','packageName','DependentOn','IInkHostAdapterService','insertInkPenAnchorAt','start','beginInkMode','24pKEoeJ','getOwnPropertyDescriptor','min','opacity','free','abs','SolidFill','right','UNIVER_UNKNOWN','222476JhERDi','@univerjs-pro/ink','smooth','ShapeFillEnum','norm','call','_injector','findClosestInkPenHandle','createCustomShape','convertBrushModelToPenModel','merge','ink.operation.start','anchors','out','distance','indexOf','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SolidLine','round','1695474KRWVnP','setInkPenAnchorPointType','anchor','827255kHoaDU','forEach','max','segmentIndex','toStringTag','1017855diMTTQ','get','UniverInstanceType','constructor','3468144dRZRSw'];_0x3596=function(){return _0x2b7292;};return _0x3596();}function _(_0x245313,_0x283f5d){const _0x5aa7cb=_0x11e230;if(_0x245313[_0x5aa7cb(0x141)]<=0x2)return _0x245313[_0x5aa7cb(0x153)](i);let _0x51f414=0x0,_0xd26f9=0x0,_0x1a3ab=_0x245313[0x0],_0x1dbacf=_0x245313[_0x245313[_0x5aa7cb(0x141)]-0x1],_0x290c06=_0x283f5d*_0x283f5d;for(let _0x13c687=0x1;_0x13c687<_0x245313[_0x5aa7cb(0x141)]-0x1;_0x13c687++){let _0x462570=te(_0x245313[_0x13c687],_0x1a3ab,_0x1dbacf);_0x462570>_0x51f414&&(_0x51f414=_0x462570,_0xd26f9=_0x13c687);}if(_0x51f414<=_0x290c06)return[i(_0x1a3ab),i(_0x1dbacf)];let _0x2fab46=_(_0x245313['slice'](0x0,_0xd26f9+0x1),_0x283f5d),_0x53a3fc=_(_0x245313['slice'](_0xd26f9),_0x283f5d);return[..._0x2fab46[_0x5aa7cb(0x154)](0x0,-0x1),..._0x53a3fc];}function ne(_0x2de056,_0x1f579e){let _0x47cb86=_0x2de056[_0x1f579e],_0x2430aa=_0x2de056[_0x1f579e+0x1],_0x44c133=_0x2de056[_0x1f579e-0x1]??_0x47cb86;return{'x':_0x47cb86['x']+(_0x2430aa['x']-_0x44c133['x'])/0x6,'y':_0x47cb86['y']+(_0x2430aa['y']-_0x44c133['y'])/0x6};}function v(_0xf69722,_0x44afd9){let _0x21132d=_0xf69722[_0x44afd9],_0x5c1957=_0xf69722[_0x44afd9-0x1],_0x1ae9ef=_0xf69722[_0x44afd9+0x1]??_0x21132d;return{'x':_0x21132d['x']-(_0x1ae9ef['x']-_0x5c1957['x'])/0x6,'y':_0x21132d['y']-(_0x1ae9ef['y']-_0x5c1957['y'])/0x6};}function y(_0x2d1e54,_0x2a3c13){const _0x2e3990=_0x11e230;let _0xf5d078=_0x2d1e54[_0x2e3990(0x177)][_0x2a3c13],_0x206fa9=_0x2d1e54[_0x2e3990(0x177)][_0x2a3c13-0x1]??(_0x2d1e54[_0x2e3990(0x1a3)]?_0x2d1e54['anchors'][_0x2d1e54[_0x2e3990(0x177)][_0x2e3990(0x141)]-0x1]:null),_0x42b1c4=_0x2d1e54[_0x2e3990(0x177)][_0x2a3c13+0x1]??(_0x2d1e54[_0x2e3990(0x1a3)]?_0x2d1e54[_0x2e3990(0x177)][0x0]:null),_0xbff2a5=_0x206fa9&&_0x42b1c4?l({'x':_0x42b1c4['x']-_0x206fa9['x'],'y':_0x42b1c4['y']-_0x206fa9['y']}):_0x42b1c4?l({'x':_0x42b1c4['x']-_0xf5d078['x'],'y':_0x42b1c4['y']-_0xf5d078['y']}):_0x206fa9?l({'x':_0xf5d078['x']-_0x206fa9['x'],'y':_0xf5d078['y']-_0x206fa9['y']}):{'x':0x1,'y':0x0},_0x10307b=_0x206fa9&&_0x42b1c4?Math[_0x2e3990(0x183)](0x32,c(_0x206fa9,_0x42b1c4)/0x4):0x32;return{'in':{'x':_0xf5d078['x']-_0xbff2a5['x']*_0x10307b,'y':_0xf5d078['y']-_0xbff2a5['y']*_0x10307b},'out':{'x':_0xf5d078['x']+_0xbff2a5['x']*_0x10307b,'y':_0xf5d078['y']+_0xbff2a5['y']*_0x10307b}};}function b(_0x323f40,_0x1c3eae){const _0x4234de=_0x11e230;let _0xe1bf35=_0x323f40[_0x1c3eae],_0x4cfec4=_0x1c3eae==='in'?_0x4234de(0x178):'in',_0x69fda8=_0x323f40[_0x4cfec4];if(_0xe1bf35){if(_0x323f40[_0x4234de(0x155)]===_0x4234de(0x196)){_0x323f40[_0x4cfec4]=u(_0x323f40,_0xe1bf35);return;}_0x323f40[_0x4234de(0x155)]==='smooth'&&(_0x323f40[_0x4cfec4]=u(_0x323f40,_0xe1bf35,_0x69fda8?c(_0x323f40,_0x69fda8):c(_0x323f40,_0xe1bf35)));}}function x(_0xcec411,_0x20d422){const _0xc55b9b=_0x11e230;let _0x3fddf6=o(_0xcec411);return!_0x20d422||_0x3fddf6['closed']||_0x3fddf6[_0xc55b9b(0x177)][_0xc55b9b(0x141)]===0x0||_0x3fddf6[_0xc55b9b(0x177)][_0xc55b9b(0x144)]({'id':'__ink-preview-anchor__','x':_0x20d422['x'],'y':_0x20d422['y'],'pointType':'corner'}),_0x3fddf6;}function re(_0x1d6d5b,_0x48a961={}){const _0x3673ca=_0x11e230;let _0x26be13=Math['max'](0x0,_0x48a961['tolerance']??Math['max'](0x4,_0x1d6d5b[_0x3673ca(0x14f)]*0.35)),_0x118c17=_0x48a961[_0x3673ca(0x135)]??(_0x335094=>'ink-centerline-'+_0x335094),_0x5718a7=_(_0x1d6d5b['points'],_0x26be13),_0x4808cc=_0x5718a7['map']((_0x482362,_0xa53d06)=>({'id':_0x118c17(_0xa53d06),'x':_0x482362['x'],'y':_0x482362['y'],'pointType':_0x3673ca(0x166)}));for(let _0x23f331=0x0;_0x23f331<_0x4808cc[_0x3673ca(0x141)]-0x1;_0x23f331++)_0x4808cc[_0x23f331][_0x3673ca(0x178)]=ne(_0x5718a7,_0x23f331),_0x4808cc[_0x23f331+0x1]['in']=v(_0x5718a7,_0x23f331+0x1);return{'kind':_0x3673ca(0x18e),'closed':!0x1,'anchors':_0x4808cc};}function ie(_0x32f5a0,_0x104e31,_0x4f5fa0){const _0x453ddc=_0x11e230;let _0x5f41a5=null,_0x51490a=[_0x453ddc(0x180),'in',_0x453ddc(0x178)];return _0x32f5a0['anchors'][_0x453ddc(0x182)]((_0x564c89,_0x4bb18e)=>{_0x51490a['forEach'](_0x2277c1=>{const _0x37845d=_0x3b57;if(!p(_0x32f5a0,_0x4bb18e,_0x2277c1))return;let _0x1f8435=ee(_0x564c89,_0x2277c1);if(!_0x1f8435)return;let _0x4a2ace=c(_0x104e31,_0x1f8435);_0x4a2ace>_0x4f5fa0||_0x5f41a5&&_0x4a2ace>=_0x5f41a5[_0x37845d(0x179)]||(_0x5f41a5={'handle':{'kind':_0x2277c1,'anchorId':_0x564c89['id']},'point':i(_0x1f8435),'distance':_0x4a2ace});});}),_0x5f41a5;}function S(_0x4e7f5d,_0x1a2844,_0x431ee0){const _0x402151=_0x11e230;let _0x90d000=null,_0x3e8b1c=_0x4e7f5d[_0x402151(0x1a3)]?_0x4e7f5d['anchors'][_0x402151(0x141)]:Math['max'](0x0,_0x4e7f5d[_0x402151(0x177)][_0x402151(0x141)]-0x1);for(let _0x1580ad=0x0;_0x1580ad<_0x3e8b1c;_0x1580ad++){let _0x3c79af=f(_0x4e7f5d,_0x1580ad);if(!_0x3c79af)continue;let _0x387af0=m(_0x3c79af,0x0);for(let _0x1e398c=0x1;_0x1e398c<=0x20;_0x1e398c++){let _0x1302ec=m(_0x3c79af,_0x1e398c/0x20),_0x571d66=g(_0x1a2844,_0x387af0,_0x1302ec),_0x238dce=(_0x1e398c-0x1+_0x571d66[_0x402151(0x198)])/0x20;(!_0x90d000||_0x571d66['distance']<_0x90d000['distance'])&&(_0x90d000={'segmentIndex':_0x1580ad,'t':_0x238dce,'point':_0x571d66[_0x402151(0x157)],'distance':_0x571d66[_0x402151(0x179)]}),_0x387af0=_0x1302ec;}}return _0x90d000&&_0x90d000[_0x402151(0x179)]<=_0x431ee0?_0x90d000:null;}function C(_0x9554c5,_0xa1928f,_0x5aa281){const _0x4e6197=_0x11e230;let _0x7acf09=o(_0x9554c5),_0x1f2d8b=d(_0x7acf09,_0xa1928f[_0x4e6197(0x184)]),_0x3a04c6=f(_0x7acf09,_0xa1928f[_0x4e6197(0x184)]);if(!_0x1f2d8b||!_0x3a04c6)return _0x7acf09;let _0x164228=h(_0x3a04c6,Math[_0x4e6197(0x183)](0x0,Math[_0x4e6197(0x164)](0x1,_0xa1928f['t']))),_0x398ed9={'id':_0x5aa281(),'x':_0x164228[_0x4e6197(0x195)][0x3]['x'],'y':_0x164228[_0x4e6197(0x195)][0x3]['y'],'in':i(_0x164228['left'][0x2]),'out':i(_0x164228[_0x4e6197(0x169)][0x1]),'pointType':_0x4e6197(0x166)};return _0x7acf09[_0x4e6197(0x177)][_0x1f2d8b[_0x4e6197(0x1a1)]]['out']=i(_0x164228[_0x4e6197(0x195)][0x1]),_0x7acf09['anchors'][_0x1f2d8b['endIndex']]['in']=i(_0x164228[_0x4e6197(0x169)][0x2]),_0x7acf09[_0x4e6197(0x177)][_0x4e6197(0x146)](_0x1f2d8b[_0x4e6197(0x1a1)]+0x1,0x0,_0x398ed9),_0x7acf09;}function w(_0x3a830b,_0x2d3696){const _0x2a6fb9=_0x11e230;let _0x3927f2=o(_0x3a830b);return _0x3927f2[_0x2a6fb9(0x177)]=_0x3927f2[_0x2a6fb9(0x177)]['filter'](_0x5df7ed=>_0x5df7ed['id']!==_0x2d3696),_0x3927f2[_0x2a6fb9(0x1a3)]&&_0x3927f2[_0x2a6fb9(0x177)][_0x2a6fb9(0x141)]<0x3&&(_0x3927f2[_0x2a6fb9(0x1a3)]=!0x1),_0x3927f2;}function T(_0x347be9,_0x35c286,_0x1c6797){const _0x323db1=_0x11e230;let _0x99d1d5=o(_0x347be9),_0x1d2def=_0x99d1d5[_0x323db1(0x177)][_0x323db1(0x19a)](_0x264f46=>_0x264f46['id']===_0x35c286),_0x1ac1c4=_0x99d1d5[_0x323db1(0x177)][_0x1d2def];if(!_0x1ac1c4)return _0x99d1d5;if(_0x1ac1c4[_0x323db1(0x155)]=_0x1c6797,_0x1c6797===_0x323db1(0x190))return delete _0x1ac1c4['in'],delete _0x1ac1c4[_0x323db1(0x178)],_0x99d1d5;let _0x1751d9=y(_0x99d1d5,_0x1d2def);if(_0x1ac1c4['in']=_0x1ac1c4['in']?i(_0x1ac1c4['in']):_0x1751d9['in'],_0x1ac1c4['out']=_0x1ac1c4[_0x323db1(0x178)]?i(_0x1ac1c4[_0x323db1(0x178)]):_0x1751d9[_0x323db1(0x178)],_0x1c6797===_0x323db1(0x196)){let _0x95d7c=Math[_0x323db1(0x183)](c(_0x1ac1c4,_0x1ac1c4['in']),c(_0x1ac1c4,_0x1ac1c4[_0x323db1(0x178)]),0x32),_0x194ecb=l({'x':_0x1ac1c4[_0x323db1(0x178)]['x']-_0x1ac1c4['x'],'y':_0x1ac1c4['out']['y']-_0x1ac1c4['y']});_0x1ac1c4[_0x323db1(0x178)]={'x':_0x1ac1c4['x']+_0x194ecb['x']*_0x95d7c,'y':_0x1ac1c4['y']+_0x194ecb['y']*_0x95d7c},_0x1ac1c4['in']={'x':_0x1ac1c4['x']-_0x194ecb['x']*_0x95d7c,'y':_0x1ac1c4['y']-_0x194ecb['y']*_0x95d7c};}else _0x1c6797===_0x323db1(0x16d)&&b(_0x1ac1c4,'out');return _0x99d1d5;}function E(_0x29ff3a,_0x38883e){const _0x3b8747=_0x11e230;let _0x16fdf2=_0x29ff3a[_0x3b8747(0x177)]['find'](_0x27cc23=>_0x27cc23['id']===_0x38883e),_0x4b9718=(_0x16fdf2==null?void 0x0:_0x16fdf2['pointType'])??_0x3b8747(0x190);return T(_0x29ff3a,_0x38883e,_0x4b9718===_0x3b8747(0x190)?'smooth':_0x4b9718===_0x3b8747(0x16d)?_0x3b8747(0x196):_0x4b9718===_0x3b8747(0x196)?_0x3b8747(0x166):'corner');}function ae(_0x129ba7,_0x5592fa,_0x21c0bd){const _0x3b350e=_0x11e230;let _0x57d93d=o(_0x129ba7),_0x182566=_0x57d93d[_0x3b350e(0x177)][_0x3b350e(0x150)](_0x1ada7c=>_0x1ada7c['id']===_0x5592fa[_0x3b350e(0x145)]);if(!_0x182566)return _0x57d93d;if(_0x5592fa[_0x3b350e(0x19c)]===_0x3b350e(0x180)){let _0x15b13a={'x':_0x21c0bd['x']-_0x182566['x'],'y':_0x21c0bd['y']-_0x182566['y']};return _0x182566['x']=_0x21c0bd['x'],_0x182566['y']=_0x21c0bd['y'],_0x182566['in']&&={'x':_0x182566['in']['x']+_0x15b13a['x'],'y':_0x182566['in']['y']+_0x15b13a['y']},_0x182566[_0x3b350e(0x178)]&&={'x':_0x182566[_0x3b350e(0x178)]['x']+_0x15b13a['x'],'y':_0x182566['out']['y']+_0x15b13a['y']},_0x57d93d;}return _0x182566[_0x5592fa['kind']]=i(_0x21c0bd),_0x182566['pointType']===_0x3b350e(0x190)&&(_0x182566[_0x3b350e(0x155)]='free'),b(_0x182566,_0x5592fa[_0x3b350e(0x19c)]),_0x57d93d;}const D=1e-9;function O(_0x3a4fcd){let _0x4d3766=Math['round'](_0x3a4fcd*0x2710)/0x2710;return Object['is'](_0x4d3766,-0x0)?'0':String(_0x4d3766);}function k(_0xaa7310){return O(_0xaa7310['x'])+'\x20'+O(_0xaa7310['y']);}function A(_0xa7b288,_0x5b73d9){return{'x':_0xa7b288['x']-_0x5b73d9['x'],'y':_0xa7b288['y']-_0x5b73d9['y']};}function j(_0x5dbdf9,_0x39f22f,_0x41c47c,_0x5e7ae5,_0x126653){let _0x50e60b=0x1-_0x126653;return{'x':_0x50e60b*_0x50e60b*_0x50e60b*_0x5dbdf9['x']+0x3*_0x50e60b*_0x50e60b*_0x126653*_0x39f22f['x']+0x3*_0x50e60b*_0x126653*_0x126653*_0x41c47c['x']+_0x126653*_0x126653*_0x126653*_0x5e7ae5['x'],'y':_0x50e60b*_0x50e60b*_0x50e60b*_0x5dbdf9['y']+0x3*_0x50e60b*_0x50e60b*_0x126653*_0x39f22f['y']+0x3*_0x50e60b*_0x126653*_0x126653*_0x41c47c['y']+_0x126653*_0x126653*_0x126653*_0x5e7ae5['y']};}function M(_0x4a7daa,_0xb3dcc3,_0x3fe32d,_0x3e161e){const _0x347e3c=_0x11e230;let _0x133630=-_0x4a7daa+0x3*_0xb3dcc3-0x3*_0x3fe32d+_0x3e161e,_0x33c7df=0x3*_0x4a7daa-0x6*_0xb3dcc3+0x3*_0x3fe32d,_0x22b1f3=-0x3*_0x4a7daa+0x3*_0xb3dcc3,_0x40275c=[];if(Math[_0x347e3c(0x167)](_0x133630)<D){if(Math[_0x347e3c(0x167)](_0x33c7df)<D)return _0x40275c;let _0x34008e=-_0x22b1f3/(0x2*_0x33c7df);return _0x34008e>0x0&&_0x34008e<0x1&&_0x40275c[_0x347e3c(0x144)](_0x34008e),_0x40275c;}let _0x473e67=_0x33c7df*_0x33c7df-0x3*_0x133630*_0x22b1f3;if(_0x473e67<0x0)return _0x40275c;let _0x5af240=Math[_0x347e3c(0x13d)](Math[_0x347e3c(0x183)](0x0,_0x473e67)),_0x2aa68f=(-_0x33c7df+_0x5af240)/(0x3*_0x133630),_0x5f4b84=(-_0x33c7df-_0x5af240)/(0x3*_0x133630);return _0x2aa68f>0x0&&_0x2aa68f<0x1&&_0x40275c[_0x347e3c(0x144)](_0x2aa68f),_0x5f4b84>0x0&&_0x5f4b84<0x1&&Math[_0x347e3c(0x167)](_0x5f4b84-_0x2aa68f)>D&&_0x40275c[_0x347e3c(0x144)](_0x5f4b84),_0x40275c;}function N(_0x38052e,_0x56d90d,_0x332bdc,_0x49fbeb,_0x17546c){const _0xfa1d7a=_0x11e230;_0x38052e['push'](_0x56d90d,_0x17546c),new Set([...M(_0x56d90d['x'],_0x332bdc['x'],_0x49fbeb['x'],_0x17546c['x']),...M(_0x56d90d['y'],_0x332bdc['y'],_0x49fbeb['y'],_0x17546c['y'])])[_0xfa1d7a(0x182)](_0x1b67b5=>{const _0x2b01f1=_0xfa1d7a;_0x38052e[_0x2b01f1(0x144)](j(_0x56d90d,_0x332bdc,_0x49fbeb,_0x17546c,_0x1b67b5));});}function P(_0x229ac8){const _0x28808a=_0x11e230;let _0x84e177=_0x229ac8[_0x28808a(0x177)];if(_0x84e177['length']<=0x1)return _0x84e177;let _0x3e81cf=[];for(let _0x5cc5c3=0x1;_0x5cc5c3<_0x84e177[_0x28808a(0x141)];_0x5cc5c3++){let _0x17b38a=_0x84e177[_0x5cc5c3-0x1],_0x3804d1=_0x84e177[_0x5cc5c3];N(_0x3e81cf,_0x17b38a,_0x17b38a[_0x28808a(0x178)]??_0x17b38a,_0x3804d1['in']??_0x3804d1,_0x3804d1);}if(_0x229ac8[_0x28808a(0x1a3)]&&_0x84e177[_0x28808a(0x141)]>0x1){let _0x16d93d=_0x84e177[_0x84e177[_0x28808a(0x141)]-0x1],_0x37f7e2=_0x84e177[0x0];N(_0x3e81cf,_0x16d93d,_0x16d93d[_0x28808a(0x178)]??_0x16d93d,_0x37f7e2['in']??_0x37f7e2,_0x37f7e2);}return _0x3e81cf;}function F(_0x14c8ec){const _0x3bd2a3=_0x11e230;let _0x6e99e3=_0x14c8ec['points'];if(_0x6e99e3['length']<=0x1)return _0x6e99e3;let _0x44c7dd=[];for(let _0x328966=0x0;_0x328966<_0x6e99e3[_0x3bd2a3(0x141)]-0x1;_0x328966++){let _0x32c04b=_0x6e99e3[_0x328966],_0x462d56=_0x6e99e3[_0x328966+0x1],_0x26bd1e=_0x6e99e3[_0x328966-0x1]??_0x32c04b,_0x80f487=_0x6e99e3[_0x328966+0x2]??_0x462d56;N(_0x44c7dd,_0x32c04b,{'x':_0x32c04b['x']+(_0x462d56['x']-_0x26bd1e['x'])/0x6,'y':_0x32c04b['y']+(_0x462d56['y']-_0x26bd1e['y'])/0x6},{'x':_0x462d56['x']-(_0x80f487['x']-_0x32c04b['x'])/0x6,'y':_0x462d56['y']-(_0x80f487['y']-_0x32c04b['y'])/0x6},_0x462d56);}return _0x44c7dd;}function I(_0x36ff1f){const _0x8a1be5=_0x11e230;return _0x36ff1f[_0x8a1be5(0x19c)]===_0x8a1be5(0x18e)?P(_0x36ff1f):F(_0x36ff1f);}function L(_0x13e55a){const _0x5cdee9=_0x11e230;let _0x226108=Math[_0x5cdee9(0x17d)](_0x13e55a*0x2710)/0x2710;return Object['is'](_0x226108,-0x0)?0x0:_0x226108;}function R(_0x574259){const _0x42df35=_0x11e230;let _0x3e76cd=I(_0x574259);if(_0x3e76cd[_0x42df35(0x141)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x49f7ab=Math[_0x42df35(0x164)](..._0x3e76cd[_0x42df35(0x153)](_0x28314d=>_0x28314d['x'])),_0x3d5b1c=Math[_0x42df35(0x164)](..._0x3e76cd['map'](_0x3ee210=>_0x3ee210['y'])),_0x3530bf=Math[_0x42df35(0x183)](..._0x3e76cd['map'](_0xc332e7=>_0xc332e7['x'])),_0x431018=Math[_0x42df35(0x183)](..._0x3e76cd[_0x42df35(0x153)](_0x1d7c20=>_0x1d7c20['y']));return{'left':L(_0x49f7ab),'top':L(_0x3d5b1c),'width':L(Math[_0x42df35(0x183)](0x1,_0x3530bf-_0x49f7ab)),'height':L(Math[_0x42df35(0x183)](0x1,_0x431018-_0x3d5b1c))};}function z(_0x5dd8d3,_0x1a9f6a){const _0xb30fb3=_0x11e230;let _0x4f5fc3=_0x5dd8d3[_0xb30fb3(0x177)];if(_0x4f5fc3[_0xb30fb3(0x141)]===0x0)return'';let _0x347614=['M\x20'+k(A(_0x4f5fc3[0x0],_0x1a9f6a))];for(let _0x3ec420=0x1;_0x3ec420<_0x4f5fc3[_0xb30fb3(0x141)];_0x3ec420++){let _0x585338=_0x4f5fc3[_0x3ec420-0x1],_0x52dd72=_0x4f5fc3[_0x3ec420],_0x3002bb=_0x585338['out']??_0x585338,_0x2f3e15=_0x52dd72['in']??_0x52dd72;_0x347614['push']('C\x20'+k(A(_0x3002bb,_0x1a9f6a))+'\x20'+k(A(_0x2f3e15,_0x1a9f6a))+'\x20'+k(A(_0x52dd72,_0x1a9f6a)));}if(_0x5dd8d3[_0xb30fb3(0x1a3)]&&_0x4f5fc3[_0xb30fb3(0x141)]>0x1){let _0x2aed32=_0x4f5fc3[_0x4f5fc3[_0xb30fb3(0x141)]-0x1],_0x3b2d07=_0x4f5fc3[0x0],_0x2b1a29=_0x2aed32[_0xb30fb3(0x178)]??_0x2aed32,_0x1c6dba=_0x3b2d07['in']??_0x3b2d07;_0x347614['push']('C\x20'+k(A(_0x2b1a29,_0x1a9f6a))+'\x20'+k(A(_0x1c6dba,_0x1a9f6a))+'\x20'+k(A(_0x3b2d07,_0x1a9f6a))),_0x347614['push']('Z');}return _0x347614[_0xb30fb3(0x13c)]('\x20');}function B(_0x425c29,_0x16a334){const _0x5b5b87=_0x11e230;let _0x491a7b=_0x425c29[_0x5b5b87(0x19b)]['map'](_0xa43558=>A(_0xa43558,_0x16a334));if(_0x491a7b['length']===0x0)return'';if(_0x491a7b['length']===0x1)return'M\x20'+k(_0x491a7b[0x0]);let _0xf3febd=['M\x20'+k(_0x491a7b[0x0])];for(let _0x4037a2=0x0;_0x4037a2<_0x491a7b[_0x5b5b87(0x141)]-0x1;_0x4037a2++){let _0x20093f=_0x491a7b[_0x4037a2],_0x3330a9=_0x491a7b[_0x4037a2+0x1],_0x5abd9a=_0x491a7b[_0x4037a2-0x1]??_0x20093f,_0x44e024=_0x491a7b[_0x4037a2+0x2]??_0x3330a9,_0x2b2043={'x':_0x20093f['x']+(_0x3330a9['x']-_0x5abd9a['x'])/0x6,'y':_0x20093f['y']+(_0x3330a9['y']-_0x5abd9a['y'])/0x6},_0x1135f8={'x':_0x3330a9['x']-(_0x44e024['x']-_0x20093f['x'])/0x6,'y':_0x3330a9['y']-(_0x44e024['y']-_0x20093f['y'])/0x6};_0xf3febd[_0x5b5b87(0x144)]('C\x20'+k(_0x2b2043)+'\x20'+k(_0x1135f8)+'\x20'+k(_0x3330a9));}return _0xf3febd[_0x5b5b87(0x13c)]('\x20');}function V(_0x24d13a,_0x525d3a){const _0x295651=_0x11e230;return _0x24d13a[_0x295651(0x19c)]===_0x295651(0x18e)?z(_0x24d13a,_0x525d3a):B(_0x24d13a,_0x525d3a);}function H(_0x5c8e8c,_0xdd1c3e){const _0x50d35e=_0x11e230;return _0xdd1c3e!=null&&_0xdd1c3e[_0x50d35e(0x134)]?_0xdd1c3e[_0x50d35e(0x134)]:_0x5c8e8c[_0x50d35e(0x19c)]==='pen'?'#f54a45':_0x5c8e8c['color'];}function U(_0x25be3a,_0x5203f5){const _0x5911e4=_0x11e230;return(_0x5203f5==null?void 0x0:_0x5203f5[_0x5911e4(0x14f)])===void 0x0?_0x25be3a['kind']==='pen'?0x2:_0x25be3a['width']:_0x5203f5['width'];}function W(_0xf93871,_0x5aaa50){const _0x55c0a9=_0x11e230;return(_0x5aaa50==null?void 0x0:_0x5aaa50[_0x55c0a9(0x165)])===void 0x0?_0xf93871[_0x55c0a9(0x19c)]===_0x55c0a9(0x18e)?void 0x0:_0xf93871[_0x55c0a9(0x165)]:_0x5aaa50[_0x55c0a9(0x165)];}function oe(_0x8ee1b0,_0x269a84){const _0x46760e=_0x11e230;let _0x544078=R(_0x8ee1b0),_0x3bc30e=V(_0x8ee1b0,{'x':_0x544078['left'],'y':_0x544078[_0x46760e(0x139)]}),_0x576d5c=_0x8ee1b0['kind']===_0x46760e(0x18e)&&_0x8ee1b0['closed'],_0x222271=_0x269a84==null?void 0x0:_0x269a84['fillColor'];return{'shapeType':e['ShapeTypeEnum'][_0x46760e(0x1a5)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x544078[_0x46760e(0x14f)],'h':_0x544078['height'],'fill':_0x576d5c?_0x46760e(0x16f):_0x46760e(0x19f),'stroke':!0x0,'data':_0x3bc30e,'dataArray':K(_0x8ee1b0,{'x':_0x544078[_0x46760e(0x195)],'y':_0x544078['top']})}]},'fill':_0x576d5c&&_0x222271?{'color':_0x222271,'fillType':e[_0x46760e(0x16e)][_0x46760e(0x168)]}:{'fillType':e[_0x46760e(0x16e)][_0x46760e(0x156)]},'stroke':{'color':H(_0x8ee1b0,_0x269a84),'width':U(_0x8ee1b0,_0x269a84),'opacity':W(_0x8ee1b0,_0x269a84),'lineStrokeType':e[_0x46760e(0x13a)][_0x46760e(0x17c)],'capType':e[_0x46760e(0x194)]['Round'],'lineJoinType':e[_0x46760e(0x137)]['Round']}};}function G(_0x4b637c,_0x3f4b87){return{'x':_0x4b637c['x']-_0x3f4b87['x'],'y':_0x4b637c['y']-_0x3f4b87['y']};}function K(_0x39092e,_0x5dd828){const _0x34c13e=_0x11e230;if(_0x39092e[_0x34c13e(0x19c)]===_0x34c13e(0x18e)){let _0x5a5cbb=_0x39092e[_0x34c13e(0x177)];if(_0x5a5cbb[_0x34c13e(0x141)]===0x0)return[];let _0x345229=G(_0x5a5cbb[0x0],_0x5dd828),_0x47200b=[{'command':'M','points':[_0x345229['x'],_0x345229['y']]}];for(let _0x1c9ccc=0x1;_0x1c9ccc<_0x5a5cbb['length'];_0x1c9ccc++){let _0xca82e6=_0x5a5cbb[_0x1c9ccc-0x1],_0x1f6ea7=_0x5a5cbb[_0x1c9ccc],_0x3119e1=G(_0xca82e6['out']??_0xca82e6,_0x5dd828),_0x30e2ae=G(_0x1f6ea7['in']??_0x1f6ea7,_0x5dd828),_0x540d25=G(_0x1f6ea7,_0x5dd828);_0x47200b[_0x34c13e(0x144)]({'command':'C','points':[_0x3119e1['x'],_0x3119e1['y'],_0x30e2ae['x'],_0x30e2ae['y'],_0x540d25['x'],_0x540d25['y']]});}if(_0x39092e['closed']&&_0x5a5cbb['length']>0x1){let _0x1ebcc0=_0x5a5cbb[_0x5a5cbb['length']-0x1],_0x338623=_0x5a5cbb[0x0],_0x57300a=G(_0x1ebcc0['out']??_0x1ebcc0,_0x5dd828),_0x507554=G(_0x338623['in']??_0x338623,_0x5dd828),_0x36dc5a=G(_0x338623,_0x5dd828);_0x47200b[_0x34c13e(0x144)]({'command':'C','points':[_0x57300a['x'],_0x57300a['y'],_0x507554['x'],_0x507554['y'],_0x36dc5a['x'],_0x36dc5a['y']]}),_0x47200b[_0x34c13e(0x144)]({'command':'z','points':[]});}return _0x47200b;}let _0x46f42e=_0x39092e[_0x34c13e(0x19b)][_0x34c13e(0x153)](_0x300cb1=>G(_0x300cb1,_0x5dd828));if(_0x46f42e[_0x34c13e(0x141)]===0x0)return[];let _0x2e54f5=[{'command':'M','points':[_0x46f42e[0x0]['x'],_0x46f42e[0x0]['y']]}];for(let _0x119d1d=0x0;_0x119d1d<_0x46f42e[_0x34c13e(0x141)]-0x1;_0x119d1d++){let _0x13d36f=_0x46f42e[_0x119d1d],_0x39c917=_0x46f42e[_0x119d1d+0x1],_0x549e34=_0x46f42e[_0x119d1d-0x1]??_0x13d36f,_0x1d1bae=_0x46f42e[_0x119d1d+0x2]??_0x39c917,_0x5b9bbe={'x':_0x13d36f['x']+(_0x39c917['x']-_0x549e34['x'])/0x6,'y':_0x13d36f['y']+(_0x39c917['y']-_0x549e34['y'])/0x6},_0x3cbbdb={'x':_0x39c917['x']-(_0x1d1bae['x']-_0x13d36f['x'])/0x6,'y':_0x39c917['y']-(_0x1d1bae['y']-_0x13d36f['y'])/0x6};_0x2e54f5['push']({'command':'C','points':[_0x5b9bbe['x'],_0x5b9bbe['y'],_0x3cbbdb['x'],_0x3cbbdb['y'],_0x39c917['x'],_0x39c917['y']]});}return _0x2e54f5;}function q(_0xabd2d1){const _0x4cf729=_0x11e230;let {model:_0xef64c0,sourceModel:_0x534d61=_0xef64c0,style:_0x2f77ac}=_0xabd2d1,_0x215fbb=_0xabd2d1['tool']??_0xef64c0[_0x4cf729(0x19c)],_0x5eb588=R(_0xef64c0),_0x261593=_0xef64c0[_0x4cf729(0x19c)]==='pen'&&_0x215fbb!==_0x4cf729(0x18e)?_0xef64c0:void 0x0;return{'transform':{..._0x5eb588,'rotation':0x0},'shapeData':oe(_0xef64c0,_0x2f77ac),'ink':{'version':0x1,'tool':_0x215fbb,'sourceModel':_0x534d61,..._0x261593?{'editModel':_0x261593}:{},'normalizedBounds':_0x5eb588}};}var se=_0x11e230(0x16c),ce=_0x11e230(0x142);function J(_0x34b3c9){'@babel/helpers - typeof';const _0x34a562=_0x11e230;return J=typeof Symbol==_0x34a562(0x143)&&typeof Symbol[_0x34a562(0x192)]==_0x34a562(0x14c)?function(_0x215d2d){return typeof _0x215d2d;}:function(_0x399bf5){const _0x2509ca=_0x34a562;return _0x399bf5&&typeof Symbol==_0x2509ca(0x143)&&_0x399bf5[_0x2509ca(0x189)]===Symbol&&_0x399bf5!==Symbol['prototype']?_0x2509ca(0x14c):typeof _0x399bf5;},J(_0x34b3c9);}function le(_0x2ece02,_0x36de46){const _0x71a844=_0x11e230;if(J(_0x2ece02)!=_0x71a844(0x18b)||!_0x2ece02)return _0x2ece02;var _0x2ccb87=_0x2ece02[Symbol['toPrimitive']];if(_0x2ccb87!==void 0x0){var _0x45f33c=_0x2ccb87[_0x71a844(0x170)](_0x2ece02,_0x36de46||_0x71a844(0x13b));if(J(_0x45f33c)!=_0x71a844(0x18b))return _0x45f33c;throw TypeError(_0x71a844(0x17b));}return(_0x36de46===_0x71a844(0x147)?String:Number)(_0x2ece02);}function ue(_0x1453ad){const _0xd33ed5=_0x11e230;var _0x163e5b=le(_0x1453ad,_0xd33ed5(0x147));return J(_0x163e5b)==_0xd33ed5(0x14c)?_0x163e5b:_0x163e5b+'';}function Y(_0x16dfd5,_0x583b8f,_0x1c9a60){const _0xb40ba7=_0x11e230;return(_0x583b8f=ue(_0x583b8f))in _0x16dfd5?Object[_0xb40ba7(0x18d)](_0x16dfd5,_0x583b8f,{'value':_0x1c9a60,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x16dfd5[_0x583b8f]=_0x1c9a60,_0x16dfd5;}const X=(0x0,n['createIdentifier'])(_0x11e230(0x136));var de=class{constructor(){const _0x5d9976=_0x11e230;Y(this,_0x5d9976(0x193),[]);}[_0x11e230(0x199)](_0x162174){const _0xc6e958=_0x11e230;return this['_adapters'][_0xc6e958(0x144)](_0x162174),(0x0,n[_0xc6e958(0x151)])(()=>{const _0x3a20ce=_0xc6e958;let _0x41dfac=this[_0x3a20ce(0x193)][_0x3a20ce(0x17a)](_0x162174);_0x41dfac>=0x0&&this[_0x3a20ce(0x193)][_0x3a20ce(0x146)](_0x41dfac,0x1);});}[_0x11e230(0x161)](_0x544d51){const _0x479cef=_0x11e230;for(let _0x79e212 of this['_adapters'])if(_0x79e212[_0x479cef(0x161)](_0x544d51))return!0x0;return!0x1;}async[_0x11e230(0x173)](_0x319406){const _0x3b0bf5=_0x11e230;for(let _0x30dd7e of this[_0x3b0bf5(0x193)])if(_0x30dd7e[_0x3b0bf5(0x173)]&&await _0x30dd7e[_0x3b0bf5(0x173)](_0x319406))return!0x0;return!0x1;}};const fe={'id':_0x11e230(0x176),'type':n[_0x11e230(0x1a6)]['OPERATION'],'handler':(_0x5f585e,_0xe21dfc)=>_0xe21dfc?_0x5f585e[_0x11e230(0x187)](X)['beginInkMode'](_0xe21dfc):!0x1},Z={};function Q(_0x411bc5,_0x3ec34d){return function(_0x29737d,_0x31651a){_0x3ec34d(_0x29737d,_0x31651a,_0x411bc5);};}function pe(_0x2a3939,_0x42268a,_0x2b0ca9,_0x52eb90){const _0x4b6c8b=_0x11e230;var _0x903c56=arguments['length'],_0x1dfdaa=_0x903c56<0x3?_0x42268a:_0x52eb90===null?_0x52eb90=Object[_0x4b6c8b(0x163)](_0x42268a,_0x2b0ca9):_0x52eb90,_0x427e8a;if(typeof Reflect=='object'&&typeof Reflect[_0x4b6c8b(0x15b)]==_0x4b6c8b(0x143))_0x1dfdaa=Reflect['decorate'](_0x2a3939,_0x42268a,_0x2b0ca9,_0x52eb90);else{for(var _0x2b1696=_0x2a3939['length']-0x1;_0x2b1696>=0x0;_0x2b1696--)(_0x427e8a=_0x2a3939[_0x2b1696])&&(_0x1dfdaa=(_0x903c56<0x3?_0x427e8a(_0x1dfdaa):_0x903c56>0x3?_0x427e8a(_0x42268a,_0x2b0ca9,_0x1dfdaa):_0x427e8a(_0x42268a,_0x2b0ca9))||_0x1dfdaa);}return _0x903c56>0x3&&_0x1dfdaa&&Object[_0x4b6c8b(0x18d)](_0x42268a,_0x2b0ca9,_0x1dfdaa),_0x1dfdaa;}let $=class extends n['Plugin']{constructor(_0x5f5447=Z,_0x38d4fd,_0x2d6404,_0x108b61){const _0x198611=_0x11e230;super(),this['_config']=_0x5f5447,this[_0x198611(0x171)]=_0x38d4fd,this[_0x198611(0x14a)]=_0x2d6404,this[_0x198611(0x149)]=_0x108b61;let {..._0x15a8c4}=(0x0,n[_0x198611(0x175)])({},Z,this[_0x198611(0x148)]);this['_configService'][_0x198611(0x1a2)](_0x198611(0x14e),_0x15a8c4);}[_0x11e230(0x138)](){const _0xf0c15e=_0x11e230;[[X,{'useClass':de}]][_0xf0c15e(0x182)](_0x215eac=>this[_0xf0c15e(0x171)][_0xf0c15e(0x1a4)](_0x215eac)),this['disposeWithMe'](this[_0xf0c15e(0x14a)][_0xf0c15e(0x13e)](fe));}};Y($,'pluginName','UNIVER_INK_PLUGIN'),Y($,_0x11e230(0x15c),se),Y($,'version',ce),Y($,_0x11e230(0x14b),n[_0x11e230(0x188)][_0x11e230(0x16a)]),$=pe([(0x0,n[_0x11e230(0x15d)])(t['UniverLicensePlugin']),Q(0x1,(0x0,n['Inject'])(n['Injector'])),Q(0x2,n[_0x11e230(0x158)]),Q(0x3,n[_0x11e230(0x159)])],$),exports[_0x11e230(0x15e)]=X,Object[_0x11e230(0x18d)](exports,_0x11e230(0x18f),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildInkCustomShapePayload']=q,exports[_0x11e230(0x174)]=re,exports[_0x11e230(0x19e)]=E,exports[_0x11e230(0x18c)]=w,exports[_0x11e230(0x172)]=ie,exports[_0x11e230(0x197)]=S,exports['getInkModelBounds']=R,exports[_0x11e230(0x15a)]=x,exports[_0x11e230(0x15f)]=C,exports[_0x11e230(0x19d)]=p,exports['moveInkPenAnchorPoint']=ae,exports[_0x11e230(0x17f)]=T;
|
|
1
|
+
const _0x4ebf33=_0x3356;(function(_0x5ce6ad,_0x3aeea2){const _0x353020=_0x3356,_0x5f48f3=_0x5ce6ad();while(!![]){try{const _0x5d9b79=-parseInt(_0x353020(0x11e))/0x1+parseInt(_0x353020(0xdd))/0x2+-parseInt(_0x353020(0x10b))/0x3*(parseInt(_0x353020(0xac))/0x4)+-parseInt(_0x353020(0xd2))/0x5*(parseInt(_0x353020(0xe3))/0x6)+-parseInt(_0x353020(0xce))/0x7*(parseInt(_0x353020(0x106))/0x8)+parseInt(_0x353020(0xf4))/0x9*(-parseInt(_0x353020(0xf8))/0xa)+parseInt(_0x353020(0xe4))/0xb*(parseInt(_0x353020(0xf9))/0xc);if(_0x5d9b79===_0x3aeea2)break;else _0x5f48f3['push'](_0x5f48f3['shift']());}catch(_0xf01e42){_0x5f48f3['push'](_0x5f48f3['shift']());}}}(_0x27dd,0x367c0),Object['defineProperty'](exports,Symbol[_0x4ebf33(0x11c)],{'value':_0x4ebf33(0xcb)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x1cf3b3){return{'x':_0x1cf3b3['x'],'y':_0x1cf3b3['y']};}function a(_0x35e403){return{..._0x35e403,'in':_0x35e403['in']?i(_0x35e403['in']):void 0x0,'out':_0x35e403['out']?i(_0x35e403['out']):void 0x0};}function o(_0x33b883){const _0x1b2c90=_0x4ebf33;return{'kind':_0x1b2c90(0xcf),'closed':_0x33b883[_0x1b2c90(0xe9)],'anchors':_0x33b883[_0x1b2c90(0xc8)][_0x1b2c90(0xee)](a)};}function s(_0xb70350,_0x42bebc,_0x3bf2e7){return{'x':_0xb70350['x']+(_0x42bebc['x']-_0xb70350['x'])*_0x3bf2e7,'y':_0xb70350['y']+(_0x42bebc['y']-_0xb70350['y'])*_0x3bf2e7};}function c(_0x5a3022,_0x215442){const _0x42a25f=_0x4ebf33;return Math[_0x42a25f(0xfa)](_0x5a3022['x']-_0x215442['x'],_0x5a3022['y']-_0x215442['y']);}function l(_0x5c6346){let _0x2880cd=Math['hypot'](_0x5c6346['x'],_0x5c6346['y']);return _0x2880cd<r?{'x':0x1,'y':0x0}:{'x':_0x5c6346['x']/_0x2880cd,'y':_0x5c6346['y']/_0x2880cd};}function u(_0x8a72fc,_0x3144a0,_0x56f264=c(_0x8a72fc,_0x3144a0)){let _0x414db7=l({'x':_0x8a72fc['x']-_0x3144a0['x'],'y':_0x8a72fc['y']-_0x3144a0['y']});return{'x':_0x8a72fc['x']+_0x414db7['x']*_0x56f264,'y':_0x8a72fc['y']+_0x414db7['y']*_0x56f264};}function d(_0x39cd22,_0x18d88f){const _0x374419=_0x4ebf33;let {anchors:_0x4767a8}=_0x39cd22;return _0x4767a8[_0x374419(0xf3)]<0x2||_0x18d88f<0x0?null:_0x18d88f<_0x4767a8[_0x374419(0xf3)]-0x1?{'startIndex':_0x18d88f,'endIndex':_0x18d88f+0x1,'start':_0x4767a8[_0x18d88f],'end':_0x4767a8[_0x18d88f+0x1]}:_0x39cd22[_0x374419(0xe9)]&&_0x18d88f===_0x4767a8['length']-0x1?{'startIndex':_0x4767a8[_0x374419(0xf3)]-0x1,'endIndex':0x0,'start':_0x4767a8[_0x4767a8[_0x374419(0xf3)]-0x1],'end':_0x4767a8[0x0]}:null;}function f(_0x1bada6,_0x48054a){const _0x19c560=_0x4ebf33;let _0x382bbe=d(_0x1bada6,_0x48054a);return _0x382bbe?[_0x382bbe[_0x19c560(0xb8)],_0x382bbe[_0x19c560(0xb8)][_0x19c560(0xb3)]??_0x382bbe[_0x19c560(0xb8)],_0x382bbe[_0x19c560(0xab)]['in']??_0x382bbe[_0x19c560(0xab)],_0x382bbe['end']]:null;}function ee(_0x56b1e0,_0x26bdcc){const _0x3a129c=_0x4ebf33;return _0x26bdcc===_0x3a129c(0xc5)?_0x56b1e0:_0x56b1e0[_0x26bdcc]??null;}function p(_0x4ea54f,_0x5bbfab,_0xed7f9a){const _0x5a1625=_0x4ebf33;return _0xed7f9a==='anchor'||_0x4ea54f[_0x5a1625(0xe9)]?!0x0:_0xed7f9a==='in'?_0x5bbfab>0x0:_0x5bbfab<_0x4ea54f[_0x5a1625(0xc8)][_0x5a1625(0xf3)]-0x1;}function m(_0xbdbd47,_0x26f31c){let [_0x4a4aaf,_0x24b63d,_0x209c0,_0x5d41e7]=_0xbdbd47,_0x47ae11=s(_0x4a4aaf,_0x24b63d,_0x26f31c),_0x13e49e=s(_0x24b63d,_0x209c0,_0x26f31c),_0x2e4b19=s(_0x209c0,_0x5d41e7,_0x26f31c);return s(s(_0x47ae11,_0x13e49e,_0x26f31c),s(_0x13e49e,_0x2e4b19,_0x26f31c),_0x26f31c);}function h(_0x36a355,_0xc06b14){let [_0x3b9b9a,_0x4f1c83,_0x30a16b,_0x5913d9]=_0x36a355,_0x220e37=s(_0x3b9b9a,_0x4f1c83,_0xc06b14),_0xb4df94=s(_0x4f1c83,_0x30a16b,_0xc06b14),_0x3f0623=s(_0x30a16b,_0x5913d9,_0xc06b14),_0x178361=s(_0x220e37,_0xb4df94,_0xc06b14),_0x343e52=s(_0xb4df94,_0x3f0623,_0xc06b14),_0x2c4412=s(_0x178361,_0x343e52,_0xc06b14);return{'left':[_0x3b9b9a,_0x220e37,_0x178361,_0x2c4412],'right':[_0x2c4412,_0x343e52,_0x3f0623,_0x5913d9]};}function _0x27dd(){const _0x4d172d=['IConfigService','end','129304bhSszV','filter','min','NoFill','abs','endIndex','push','out','@univerjs-pro/ink','createCustomShape','ShapeLineTypeEnum','moveInkPenAnchorPoint','start','getInkModelBounds','findIndex','anchorId','ink.host-adapter.service','cycleInkPenAnchorPointType','fillColor','version','Injector','ShapeTypeEnum','string','Round','UniverLicensePlugin','anchor','iterator','color','anchors','Plugin','ratio','Module','packageName','right','2197685zHzSII','pen','DependentOn','join','961420wYXIpY','corner','getOwnPropertyDescriptor','merge','function','startIndex','_adapters','opacity','disposeWithMe','deleteInkPenAnchor','pointType','209060aiJxaj','kind','1.1.0','find','SolidFill','pluginName','6BWCmpu','11jCjkxU','add','tolerance','Inject','indexOf','closed','ink-centerline-','ShapeLineCapEnum','_configService','free','map','ink.config','buildInkCustomShapePayload','_config','SolidLine','length','410751LgwGVQ','UNIVER_UNKNOWN','prototype','ShapeFillEnum','70oSArmZ','15606012bZoJzy','hypot','toPrimitive','top','setConfig','points','Rect','findClosestInkPenSegment','none','findClosestInkPenHandle','smooth','CommandType','createIdentifier','8fJzvTs','UniverInkPlugin','UniverInstanceType','ShapeLineJoinEnum','distance','15pDVaSs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createId','sqrt','slice','symbol','round','defineProperty','get','call','UNIVER_INK_PLUGIN','object','default','forEach','symmetric','width','ICommandService','toStringTag','__ink-preview-anchor__','194521HlhfsX','isInkPenHandleVisible','left','type','beginInkMode','tool','_injector','max','decorate'];_0x27dd=function(){return _0x4d172d;};return _0x27dd();}function g(_0x31ce47,_0x4ea4ac,_0x24c20d){const _0x4e107e=_0x4ebf33;let _0x2a3bce=_0x24c20d['x']-_0x4ea4ac['x'],_0x1292c3=_0x24c20d['y']-_0x4ea4ac['y'],_0x38e96b=_0x2a3bce*_0x2a3bce+_0x1292c3*_0x1292c3,_0x3ea08e=_0x38e96b<=r?0x0:Math[_0x4e107e(0x125)](0x0,Math[_0x4e107e(0xae)](0x1,((_0x31ce47['x']-_0x4ea4ac['x'])*_0x2a3bce+(_0x31ce47['y']-_0x4ea4ac['y'])*_0x1292c3)/_0x38e96b)),_0x3082b1={'x':_0x4ea4ac['x']+_0x2a3bce*_0x3ea08e,'y':_0x4ea4ac['y']+_0x1292c3*_0x3ea08e};return{'point':_0x3082b1,'ratio':_0x3ea08e,'distance':c(_0x31ce47,_0x3082b1)};}function te(_0x292d84,_0x1cfcd9,_0x2a2ef4){const _0x2e976f=_0x4ebf33;return g(_0x292d84,_0x1cfcd9,_0x2a2ef4)[_0x2e976f(0x10a)]**0x2;}function _(_0xcb6e84,_0x3e70a8){const _0x4d9c8b=_0x4ebf33;if(_0xcb6e84['length']<=0x2)return _0xcb6e84[_0x4d9c8b(0xee)](i);let _0x18dbac=0x0,_0x3b8cb1=0x0,_0x56e89f=_0xcb6e84[0x0],_0x52afc0=_0xcb6e84[_0xcb6e84[_0x4d9c8b(0xf3)]-0x1],_0x102c70=_0x3e70a8*_0x3e70a8;for(let _0x18e70b=0x1;_0x18e70b<_0xcb6e84[_0x4d9c8b(0xf3)]-0x1;_0x18e70b++){let _0x1434ef=te(_0xcb6e84[_0x18e70b],_0x56e89f,_0x52afc0);_0x1434ef>_0x18dbac&&(_0x18dbac=_0x1434ef,_0x3b8cb1=_0x18e70b);}if(_0x18dbac<=_0x102c70)return[i(_0x56e89f),i(_0x52afc0)];let _0x5f1785=_(_0xcb6e84[_0x4d9c8b(0x10f)](0x0,_0x3b8cb1+0x1),_0x3e70a8),_0x179e31=_(_0xcb6e84[_0x4d9c8b(0x10f)](_0x3b8cb1),_0x3e70a8);return[..._0x5f1785['slice'](0x0,-0x1),..._0x179e31];}function ne(_0x1dfe90,_0x4f364f){let _0x531eb4=_0x1dfe90[_0x4f364f],_0x23b1c1=_0x1dfe90[_0x4f364f+0x1],_0x1a2e6c=_0x1dfe90[_0x4f364f-0x1]??_0x531eb4;return{'x':_0x531eb4['x']+(_0x23b1c1['x']-_0x1a2e6c['x'])/0x6,'y':_0x531eb4['y']+(_0x23b1c1['y']-_0x1a2e6c['y'])/0x6};}function v(_0x423fdc,_0x775e62){let _0x38c6b7=_0x423fdc[_0x775e62],_0x3705c3=_0x423fdc[_0x775e62-0x1],_0x453681=_0x423fdc[_0x775e62+0x1]??_0x38c6b7;return{'x':_0x38c6b7['x']-(_0x453681['x']-_0x3705c3['x'])/0x6,'y':_0x38c6b7['y']-(_0x453681['y']-_0x3705c3['y'])/0x6};}function y(_0x188bc2,_0x71d9cc){const _0x2fc325=_0x4ebf33;let _0x89e78c=_0x188bc2[_0x2fc325(0xc8)][_0x71d9cc],_0x19dde7=_0x188bc2[_0x2fc325(0xc8)][_0x71d9cc-0x1]??(_0x188bc2['closed']?_0x188bc2[_0x2fc325(0xc8)][_0x188bc2[_0x2fc325(0xc8)][_0x2fc325(0xf3)]-0x1]:null),_0x145c0c=_0x188bc2[_0x2fc325(0xc8)][_0x71d9cc+0x1]??(_0x188bc2[_0x2fc325(0xe9)]?_0x188bc2[_0x2fc325(0xc8)][0x0]:null),_0x5129ce=_0x19dde7&&_0x145c0c?l({'x':_0x145c0c['x']-_0x19dde7['x'],'y':_0x145c0c['y']-_0x19dde7['y']}):_0x145c0c?l({'x':_0x145c0c['x']-_0x89e78c['x'],'y':_0x145c0c['y']-_0x89e78c['y']}):_0x19dde7?l({'x':_0x89e78c['x']-_0x19dde7['x'],'y':_0x89e78c['y']-_0x19dde7['y']}):{'x':0x1,'y':0x0},_0x2bdad0=_0x19dde7&&_0x145c0c?Math[_0x2fc325(0x125)](0x32,c(_0x19dde7,_0x145c0c)/0x4):0x32;return{'in':{'x':_0x89e78c['x']-_0x5129ce['x']*_0x2bdad0,'y':_0x89e78c['y']-_0x5129ce['y']*_0x2bdad0},'out':{'x':_0x89e78c['x']+_0x5129ce['x']*_0x2bdad0,'y':_0x89e78c['y']+_0x5129ce['y']*_0x2bdad0}};}function b(_0x1e350e,_0x4f156e){const _0x2cdaa9=_0x4ebf33;let _0x55d2ca=_0x1e350e[_0x4f156e],_0x10dcd9=_0x4f156e==='in'?'out':'in',_0x4682e7=_0x1e350e[_0x10dcd9];_0x55d2ca&&(_0x1e350e[_0x2cdaa9(0xdc)]===_0x2cdaa9(0x119)?_0x1e350e[_0x10dcd9]=u(_0x1e350e,_0x55d2ca):_0x1e350e['pointType']===_0x2cdaa9(0x103)&&(_0x1e350e[_0x10dcd9]=u(_0x1e350e,_0x55d2ca,_0x4682e7?c(_0x1e350e,_0x4682e7):c(_0x1e350e,_0x55d2ca))));}function x(_0x2fe907,_0x463db3){const _0x778c4a=_0x4ebf33;let _0x2e0f20=o(_0x2fe907);return!_0x463db3||_0x2e0f20[_0x778c4a(0xe9)]||_0x2e0f20[_0x778c4a(0xc8)][_0x778c4a(0xf3)]===0x0||_0x2e0f20[_0x778c4a(0xc8)]['push']({'id':_0x778c4a(0x11d),'x':_0x463db3['x'],'y':_0x463db3['y'],'pointType':_0x778c4a(0xd3)}),_0x2e0f20;}function re(_0x42d2f8,_0xd58144={}){const _0x9bbdf4=_0x4ebf33;let _0x2b8faa=Math[_0x9bbdf4(0x125)](0x0,_0xd58144[_0x9bbdf4(0xe6)]??Math[_0x9bbdf4(0x125)](0x4,_0x42d2f8[_0x9bbdf4(0x11a)]*0.35)),_0x5e44f1=_0xd58144[_0x9bbdf4(0x10d)]??(_0x2f566e=>_0x9bbdf4(0xea)+_0x2f566e),_0x19495e=_(_0x42d2f8['points'],_0x2b8faa),_0x1cfc18=_0x19495e[_0x9bbdf4(0xee)]((_0x4f3f2d,_0xfea4c7)=>({'id':_0x5e44f1(_0xfea4c7),'x':_0x4f3f2d['x'],'y':_0x4f3f2d['y'],'pointType':'free'}));for(let _0x3e0777=0x0;_0x3e0777<_0x1cfc18[_0x9bbdf4(0xf3)]-0x1;_0x3e0777++)_0x1cfc18[_0x3e0777][_0x9bbdf4(0xb3)]=ne(_0x19495e,_0x3e0777),_0x1cfc18[_0x3e0777+0x1]['in']=v(_0x19495e,_0x3e0777+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x1cfc18};}function ie(_0x24f309,_0x45efab,_0x5ee281){const _0xfd2d3f=_0x4ebf33;let _0x479dcd=null,_0x285065=[_0xfd2d3f(0xc5),'in',_0xfd2d3f(0xb3)];return _0x24f309[_0xfd2d3f(0xc8)][_0xfd2d3f(0x118)]((_0x1d5d83,_0x3c385d)=>{const _0xc38616=_0xfd2d3f;_0x285065[_0xc38616(0x118)](_0x29eb46=>{const _0xf4e60d=_0xc38616;if(!p(_0x24f309,_0x3c385d,_0x29eb46))return;let _0x1298a7=ee(_0x1d5d83,_0x29eb46);if(!_0x1298a7)return;let _0x40c540=c(_0x45efab,_0x1298a7);_0x40c540>_0x5ee281||_0x479dcd&&_0x40c540>=_0x479dcd[_0xf4e60d(0x10a)]||(_0x479dcd={'handle':{'kind':_0x29eb46,'anchorId':_0x1d5d83['id']},'point':i(_0x1298a7),'distance':_0x40c540});});}),_0x479dcd;}function S(_0x3a7c20,_0x564026,_0x560597){const _0x69c178=_0x4ebf33;let _0x21ee30=null,_0x39b7be=_0x3a7c20[_0x69c178(0xe9)]?_0x3a7c20[_0x69c178(0xc8)][_0x69c178(0xf3)]:Math[_0x69c178(0x125)](0x0,_0x3a7c20[_0x69c178(0xc8)][_0x69c178(0xf3)]-0x1);for(let _0x38dd8a=0x0;_0x38dd8a<_0x39b7be;_0x38dd8a++){let _0x324428=f(_0x3a7c20,_0x38dd8a);if(!_0x324428)continue;let _0x3e90c0=m(_0x324428,0x0);for(let _0x2d629e=0x1;_0x2d629e<=0x20;_0x2d629e++){let _0x285c2e=m(_0x324428,_0x2d629e/0x20),_0x5b6452=g(_0x564026,_0x3e90c0,_0x285c2e),_0x4b2c67=(_0x2d629e-0x1+_0x5b6452[_0x69c178(0xca)])/0x20;(!_0x21ee30||_0x5b6452[_0x69c178(0x10a)]<_0x21ee30[_0x69c178(0x10a)])&&(_0x21ee30={'segmentIndex':_0x38dd8a,'t':_0x4b2c67,'point':_0x5b6452['point'],'distance':_0x5b6452['distance']}),_0x3e90c0=_0x285c2e;}}return _0x21ee30&&_0x21ee30[_0x69c178(0x10a)]<=_0x560597?_0x21ee30:null;}function C(_0x4e98c2,_0x2fd456,_0x554683){const _0x27af7c=_0x4ebf33;let _0x35e601=o(_0x4e98c2),_0x2a5971=d(_0x35e601,_0x2fd456['segmentIndex']),_0x1d6bfd=f(_0x35e601,_0x2fd456['segmentIndex']);if(!_0x2a5971||!_0x1d6bfd)return _0x35e601;let _0x567644=h(_0x1d6bfd,Math[_0x27af7c(0x125)](0x0,Math[_0x27af7c(0xae)](0x1,_0x2fd456['t']))),_0x419726={'id':_0x554683(),'x':_0x567644['left'][0x3]['x'],'y':_0x567644[_0x27af7c(0x120)][0x3]['y'],'in':i(_0x567644[_0x27af7c(0x120)][0x2]),'out':i(_0x567644[_0x27af7c(0xcd)][0x1]),'pointType':'free'};return _0x35e601[_0x27af7c(0xc8)][_0x2a5971[_0x27af7c(0xd7)]][_0x27af7c(0xb3)]=i(_0x567644['left'][0x1]),_0x35e601[_0x27af7c(0xc8)][_0x2a5971[_0x27af7c(0xb1)]]['in']=i(_0x567644[_0x27af7c(0xcd)][0x2]),_0x35e601[_0x27af7c(0xc8)]['splice'](_0x2a5971[_0x27af7c(0xd7)]+0x1,0x0,_0x419726),_0x35e601;}function w(_0x3fbefa,_0x4aadf2){const _0x254b27=_0x4ebf33;let _0x2b31ae=o(_0x3fbefa);return _0x2b31ae[_0x254b27(0xc8)]=_0x2b31ae[_0x254b27(0xc8)][_0x254b27(0xad)](_0x54ccde=>_0x54ccde['id']!==_0x4aadf2),_0x2b31ae[_0x254b27(0xe9)]&&_0x2b31ae[_0x254b27(0xc8)][_0x254b27(0xf3)]<0x3&&(_0x2b31ae[_0x254b27(0xe9)]=!0x1),_0x2b31ae;}function T(_0x100f1e,_0x22277b,_0x5ac2a8){const _0x3c7d3b=_0x4ebf33;let _0x571b8d=o(_0x100f1e),_0x391b0e=_0x571b8d[_0x3c7d3b(0xc8)][_0x3c7d3b(0xba)](_0x3ec3a8=>_0x3ec3a8['id']===_0x22277b),_0x459a72=_0x571b8d[_0x3c7d3b(0xc8)][_0x391b0e];if(!_0x459a72)return _0x571b8d;if(_0x459a72[_0x3c7d3b(0xdc)]=_0x5ac2a8,_0x5ac2a8===_0x3c7d3b(0xd3))return delete _0x459a72['in'],delete _0x459a72[_0x3c7d3b(0xb3)],_0x571b8d;let _0x5fcfd9=y(_0x571b8d,_0x391b0e);if(_0x459a72['in']=_0x459a72['in']?i(_0x459a72['in']):_0x5fcfd9['in'],_0x459a72[_0x3c7d3b(0xb3)]=_0x459a72[_0x3c7d3b(0xb3)]?i(_0x459a72[_0x3c7d3b(0xb3)]):_0x5fcfd9[_0x3c7d3b(0xb3)],_0x5ac2a8==='symmetric'){let _0xbc0048=Math[_0x3c7d3b(0x125)](c(_0x459a72,_0x459a72['in']),c(_0x459a72,_0x459a72[_0x3c7d3b(0xb3)]),0x32),_0x207c0d=l({'x':_0x459a72[_0x3c7d3b(0xb3)]['x']-_0x459a72['x'],'y':_0x459a72[_0x3c7d3b(0xb3)]['y']-_0x459a72['y']});_0x459a72['out']={'x':_0x459a72['x']+_0x207c0d['x']*_0xbc0048,'y':_0x459a72['y']+_0x207c0d['y']*_0xbc0048},_0x459a72['in']={'x':_0x459a72['x']-_0x207c0d['x']*_0xbc0048,'y':_0x459a72['y']-_0x207c0d['y']*_0xbc0048};}else _0x5ac2a8===_0x3c7d3b(0x103)&&b(_0x459a72,'out');return _0x571b8d;}function E(_0x4b79ac,_0x24f2fb){const _0x368ddc=_0x4ebf33;let _0x21d7e8=_0x4b79ac[_0x368ddc(0xc8)][_0x368ddc(0xe0)](_0x170e65=>_0x170e65['id']===_0x24f2fb),_0x133b46=(_0x21d7e8==null?void 0x0:_0x21d7e8[_0x368ddc(0xdc)])??'corner';return T(_0x4b79ac,_0x24f2fb,_0x133b46===_0x368ddc(0xd3)?_0x368ddc(0x103):_0x133b46===_0x368ddc(0x103)?_0x368ddc(0x119):_0x133b46==='symmetric'?_0x368ddc(0xed):_0x368ddc(0xd3));}function ae(_0x1937d8,_0x973715,_0xf67554){const _0x565ab3=_0x4ebf33;let _0x3ea58d=o(_0x1937d8),_0xff095a=_0x3ea58d['anchors']['find'](_0x64f189=>_0x64f189['id']===_0x973715[_0x565ab3(0xbb)]);if(!_0xff095a)return _0x3ea58d;if(_0x973715[_0x565ab3(0xde)]===_0x565ab3(0xc5)){let _0x1c1062={'x':_0xf67554['x']-_0xff095a['x'],'y':_0xf67554['y']-_0xff095a['y']};return _0xff095a['x']=_0xf67554['x'],_0xff095a['y']=_0xf67554['y'],_0xff095a['in']&&={'x':_0xff095a['in']['x']+_0x1c1062['x'],'y':_0xff095a['in']['y']+_0x1c1062['y']},_0xff095a['out']&&={'x':_0xff095a[_0x565ab3(0xb3)]['x']+_0x1c1062['x'],'y':_0xff095a[_0x565ab3(0xb3)]['y']+_0x1c1062['y']},_0x3ea58d;}return _0xff095a[_0x973715[_0x565ab3(0xde)]]=i(_0xf67554),_0xff095a[_0x565ab3(0xdc)]===_0x565ab3(0xd3)&&(_0xff095a[_0x565ab3(0xdc)]=_0x565ab3(0xed)),b(_0xff095a,_0x973715[_0x565ab3(0xde)]),_0x3ea58d;}const D=1e-9;function O(_0x126f99){const _0x55f1d2=_0x4ebf33;let _0xa9b81d=Math[_0x55f1d2(0x111)](_0x126f99*0x2710)/0x2710;return Object['is'](_0xa9b81d,-0x0)?'0':String(_0xa9b81d);}function k(_0xe569ea){return O(_0xe569ea['x'])+'\x20'+O(_0xe569ea['y']);}function A(_0x50a205,_0x4c17b7){return{'x':_0x50a205['x']-_0x4c17b7['x'],'y':_0x50a205['y']-_0x4c17b7['y']};}function j(_0x3abdec,_0x5f3537,_0x86f6e9,_0x44c94e,_0x527a34){let _0x224a2d=0x1-_0x527a34;return{'x':_0x224a2d*_0x224a2d*_0x224a2d*_0x3abdec['x']+0x3*_0x224a2d*_0x224a2d*_0x527a34*_0x5f3537['x']+0x3*_0x224a2d*_0x527a34*_0x527a34*_0x86f6e9['x']+_0x527a34*_0x527a34*_0x527a34*_0x44c94e['x'],'y':_0x224a2d*_0x224a2d*_0x224a2d*_0x3abdec['y']+0x3*_0x224a2d*_0x224a2d*_0x527a34*_0x5f3537['y']+0x3*_0x224a2d*_0x527a34*_0x527a34*_0x86f6e9['y']+_0x527a34*_0x527a34*_0x527a34*_0x44c94e['y']};}function M(_0x2e71fe,_0x25ffed,_0xce8523,_0x4b7c58){const _0x434d6f=_0x4ebf33;let _0x523977=-_0x2e71fe+0x3*_0x25ffed-0x3*_0xce8523+_0x4b7c58,_0x599c07=0x3*_0x2e71fe-0x6*_0x25ffed+0x3*_0xce8523,_0x4b4075=-0x3*_0x2e71fe+0x3*_0x25ffed,_0x346148=[];if(Math[_0x434d6f(0xb0)](_0x523977)<D){if(Math[_0x434d6f(0xb0)](_0x599c07)<D)return _0x346148;let _0x3f276b=-_0x4b4075/(0x2*_0x599c07);return _0x3f276b>0x0&&_0x3f276b<0x1&&_0x346148[_0x434d6f(0xb2)](_0x3f276b),_0x346148;}let _0x1bb173=_0x599c07*_0x599c07-0x3*_0x523977*_0x4b4075;if(_0x1bb173<0x0)return _0x346148;let _0x367093=Math[_0x434d6f(0x10e)](Math['max'](0x0,_0x1bb173)),_0x434ab4=(-_0x599c07+_0x367093)/(0x3*_0x523977),_0x77c832=(-_0x599c07-_0x367093)/(0x3*_0x523977);return _0x434ab4>0x0&&_0x434ab4<0x1&&_0x346148['push'](_0x434ab4),_0x77c832>0x0&&_0x77c832<0x1&&Math[_0x434d6f(0xb0)](_0x77c832-_0x434ab4)>D&&_0x346148['push'](_0x77c832),_0x346148;}function N(_0x2e498f,_0x32bfd6,_0x3f8f2f,_0x2e9c74,_0x10655f){const _0x53dfa1=_0x4ebf33;_0x2e498f[_0x53dfa1(0xb2)](_0x32bfd6,_0x10655f),new Set([...M(_0x32bfd6['x'],_0x3f8f2f['x'],_0x2e9c74['x'],_0x10655f['x']),...M(_0x32bfd6['y'],_0x3f8f2f['y'],_0x2e9c74['y'],_0x10655f['y'])])[_0x53dfa1(0x118)](_0x1ce771=>{const _0x3a0bd=_0x53dfa1;_0x2e498f[_0x3a0bd(0xb2)](j(_0x32bfd6,_0x3f8f2f,_0x2e9c74,_0x10655f,_0x1ce771));});}function P(_0x4b25e0){const _0x55461e=_0x4ebf33;let _0x10ecdb=_0x4b25e0[_0x55461e(0xc8)];if(_0x10ecdb[_0x55461e(0xf3)]<=0x1)return _0x10ecdb;let _0xd5f53d=[];for(let _0x46b399=0x1;_0x46b399<_0x10ecdb[_0x55461e(0xf3)];_0x46b399++){let _0x7e2040=_0x10ecdb[_0x46b399-0x1],_0xbd37e3=_0x10ecdb[_0x46b399];N(_0xd5f53d,_0x7e2040,_0x7e2040[_0x55461e(0xb3)]??_0x7e2040,_0xbd37e3['in']??_0xbd37e3,_0xbd37e3);}if(_0x4b25e0['closed']&&_0x10ecdb[_0x55461e(0xf3)]>0x1){let _0x200a2a=_0x10ecdb[_0x10ecdb[_0x55461e(0xf3)]-0x1],_0x850efa=_0x10ecdb[0x0];N(_0xd5f53d,_0x200a2a,_0x200a2a[_0x55461e(0xb3)]??_0x200a2a,_0x850efa['in']??_0x850efa,_0x850efa);}return _0xd5f53d;}function F(_0x258682){const _0x50c65e=_0x4ebf33;let _0x48c3fd=_0x258682['points'];if(_0x48c3fd['length']<=0x1)return _0x48c3fd;let _0x5412ac=[];for(let _0x30824a=0x0;_0x30824a<_0x48c3fd[_0x50c65e(0xf3)]-0x1;_0x30824a++){let _0x2663a0=_0x48c3fd[_0x30824a],_0x4bade6=_0x48c3fd[_0x30824a+0x1],_0x3a220f=_0x48c3fd[_0x30824a-0x1]??_0x2663a0,_0x358ae4=_0x48c3fd[_0x30824a+0x2]??_0x4bade6;N(_0x5412ac,_0x2663a0,{'x':_0x2663a0['x']+(_0x4bade6['x']-_0x3a220f['x'])/0x6,'y':_0x2663a0['y']+(_0x4bade6['y']-_0x3a220f['y'])/0x6},{'x':_0x4bade6['x']-(_0x358ae4['x']-_0x2663a0['x'])/0x6,'y':_0x4bade6['y']-(_0x358ae4['y']-_0x2663a0['y'])/0x6},_0x4bade6);}return _0x5412ac;}function I(_0x3185be){const _0xf589=_0x4ebf33;return _0x3185be[_0xf589(0xde)]===_0xf589(0xcf)?P(_0x3185be):F(_0x3185be);}function L(_0x366763){let _0x2ddba3=Math['round'](_0x366763*0x2710)/0x2710;return Object['is'](_0x2ddba3,-0x0)?0x0:_0x2ddba3;}function R(_0x1612f9){const _0xc25400=_0x4ebf33;let _0x3c7c35=I(_0x1612f9);if(_0x3c7c35[_0xc25400(0xf3)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x531d60=Math['min'](..._0x3c7c35[_0xc25400(0xee)](_0x5c3467=>_0x5c3467['x'])),_0x3675e8=Math[_0xc25400(0xae)](..._0x3c7c35['map'](_0x48f516=>_0x48f516['y'])),_0xf0739=Math[_0xc25400(0x125)](..._0x3c7c35['map'](_0x46aade=>_0x46aade['x'])),_0x33db6e=Math['max'](..._0x3c7c35[_0xc25400(0xee)](_0x21565b=>_0x21565b['y']));return{'left':L(_0x531d60),'top':L(_0x3675e8),'width':L(Math[_0xc25400(0x125)](0x1,_0xf0739-_0x531d60)),'height':L(Math['max'](0x1,_0x33db6e-_0x3675e8))};}function z(_0x4e0383,_0x7f4eb8){const _0x17d7ac=_0x4ebf33;let _0x4ffcc7=_0x4e0383[_0x17d7ac(0xc8)];if(_0x4ffcc7[_0x17d7ac(0xf3)]===0x0)return'';let _0x4841a3=['M\x20'+k(A(_0x4ffcc7[0x0],_0x7f4eb8))];for(let _0x53c86a=0x1;_0x53c86a<_0x4ffcc7['length'];_0x53c86a++){let _0xdb287a=_0x4ffcc7[_0x53c86a-0x1],_0x11adda=_0x4ffcc7[_0x53c86a],_0x259edf=_0xdb287a['out']??_0xdb287a,_0x58c342=_0x11adda['in']??_0x11adda;_0x4841a3[_0x17d7ac(0xb2)]('C\x20'+k(A(_0x259edf,_0x7f4eb8))+'\x20'+k(A(_0x58c342,_0x7f4eb8))+'\x20'+k(A(_0x11adda,_0x7f4eb8)));}if(_0x4e0383[_0x17d7ac(0xe9)]&&_0x4ffcc7[_0x17d7ac(0xf3)]>0x1){let _0x261147=_0x4ffcc7[_0x4ffcc7['length']-0x1],_0x174b61=_0x4ffcc7[0x0],_0x4d9f1e=_0x261147['out']??_0x261147,_0x3a2f74=_0x174b61['in']??_0x174b61;_0x4841a3['push']('C\x20'+k(A(_0x4d9f1e,_0x7f4eb8))+'\x20'+k(A(_0x3a2f74,_0x7f4eb8))+'\x20'+k(A(_0x174b61,_0x7f4eb8))),_0x4841a3[_0x17d7ac(0xb2)]('Z');}return _0x4841a3['join']('\x20');}function B(_0x35c4d8,_0x19ad76){const _0x39a619=_0x4ebf33;let _0x320eff=_0x35c4d8[_0x39a619(0xfe)]['map'](_0x5b4e16=>A(_0x5b4e16,_0x19ad76));if(_0x320eff[_0x39a619(0xf3)]===0x0)return'';if(_0x320eff[_0x39a619(0xf3)]===0x1)return'M\x20'+k(_0x320eff[0x0]);let _0x7be0e5=['M\x20'+k(_0x320eff[0x0])];for(let _0x5c7ab0=0x0;_0x5c7ab0<_0x320eff[_0x39a619(0xf3)]-0x1;_0x5c7ab0++){let _0x120386=_0x320eff[_0x5c7ab0],_0x109b7b=_0x320eff[_0x5c7ab0+0x1],_0x208300=_0x320eff[_0x5c7ab0-0x1]??_0x120386,_0x4be09f=_0x320eff[_0x5c7ab0+0x2]??_0x109b7b,_0x26115e={'x':_0x120386['x']+(_0x109b7b['x']-_0x208300['x'])/0x6,'y':_0x120386['y']+(_0x109b7b['y']-_0x208300['y'])/0x6},_0x470ea6={'x':_0x109b7b['x']-(_0x4be09f['x']-_0x120386['x'])/0x6,'y':_0x109b7b['y']-(_0x4be09f['y']-_0x120386['y'])/0x6};_0x7be0e5[_0x39a619(0xb2)]('C\x20'+k(_0x26115e)+'\x20'+k(_0x470ea6)+'\x20'+k(_0x109b7b));}return _0x7be0e5[_0x39a619(0xd1)]('\x20');}function V(_0x57a74e,_0x4b47f2){const _0x541eb3=_0x4ebf33;return _0x57a74e[_0x541eb3(0xde)]==='pen'?z(_0x57a74e,_0x4b47f2):B(_0x57a74e,_0x4b47f2);}function H(_0x574c2b,_0xc5c918){const _0x3c4ce3=_0x4ebf33;return _0xc5c918!=null&&_0xc5c918[_0x3c4ce3(0xc7)]?_0xc5c918[_0x3c4ce3(0xc7)]:_0x574c2b[_0x3c4ce3(0xde)]===_0x3c4ce3(0xcf)?'#f54a45':_0x574c2b[_0x3c4ce3(0xc7)];}function U(_0x28954d,_0x38e42a){const _0xcd2375=_0x4ebf33;return(_0x38e42a==null?void 0x0:_0x38e42a[_0xcd2375(0x11a)])===void 0x0?_0x28954d[_0xcd2375(0xde)]===_0xcd2375(0xcf)?0x2:_0x28954d[_0xcd2375(0x11a)]:_0x38e42a[_0xcd2375(0x11a)];}function W(_0x49738b,_0x3630fe){const _0x39636b=_0x4ebf33;return(_0x3630fe==null?void 0x0:_0x3630fe[_0x39636b(0xd9)])===void 0x0?_0x49738b['kind']==='pen'?void 0x0:_0x49738b[_0x39636b(0xd9)]:_0x3630fe['opacity'];}function oe(_0x149377,_0x1801e7){const _0x531cb0=_0x4ebf33;let _0x31c6c3=R(_0x149377),_0x499ada=V(_0x149377,{'x':_0x31c6c3[_0x531cb0(0x120)],'y':_0x31c6c3[_0x531cb0(0xfc)]}),_0xf7398a=_0x149377['kind']===_0x531cb0(0xcf)&&_0x149377[_0x531cb0(0xe9)],_0x1bbc03=_0x1801e7==null?void 0x0:_0x1801e7[_0x531cb0(0xbe)];return{'shapeType':e[_0x531cb0(0xc1)][_0x531cb0(0xff)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x31c6c3[_0x531cb0(0x11a)],'h':_0x31c6c3['height'],'fill':_0xf7398a?'norm':_0x531cb0(0x101),'stroke':!0x0,'data':_0x499ada,'dataArray':K(_0x149377,{'x':_0x31c6c3['left'],'y':_0x31c6c3['top']})}]},'fill':_0xf7398a&&_0x1bbc03?{'color':_0x1bbc03,'fillType':e[_0x531cb0(0xf7)][_0x531cb0(0xe1)]}:{'fillType':e['ShapeFillEnum'][_0x531cb0(0xaf)]},'stroke':{'color':H(_0x149377,_0x1801e7),'width':U(_0x149377,_0x1801e7),'opacity':W(_0x149377,_0x1801e7),'lineStrokeType':e[_0x531cb0(0xb6)][_0x531cb0(0xf2)],'capType':e[_0x531cb0(0xeb)][_0x531cb0(0xc3)],'lineJoinType':e[_0x531cb0(0x109)][_0x531cb0(0xc3)]}};}function G(_0x9f6a8f,_0x8a3066){return{'x':_0x9f6a8f['x']-_0x8a3066['x'],'y':_0x9f6a8f['y']-_0x8a3066['y']};}function K(_0x23c0f3,_0x5b427d){const _0x26d4f0=_0x4ebf33;if(_0x23c0f3[_0x26d4f0(0xde)]===_0x26d4f0(0xcf)){let _0x42909e=_0x23c0f3[_0x26d4f0(0xc8)];if(_0x42909e['length']===0x0)return[];let _0x4286d2=G(_0x42909e[0x0],_0x5b427d),_0x379689=[{'command':'M','points':[_0x4286d2['x'],_0x4286d2['y']]}];for(let _0x2c3d97=0x1;_0x2c3d97<_0x42909e[_0x26d4f0(0xf3)];_0x2c3d97++){let _0x566cd7=_0x42909e[_0x2c3d97-0x1],_0x393f82=_0x42909e[_0x2c3d97],_0x4cb713=G(_0x566cd7[_0x26d4f0(0xb3)]??_0x566cd7,_0x5b427d),_0x3df3ea=G(_0x393f82['in']??_0x393f82,_0x5b427d),_0xaeaf73=G(_0x393f82,_0x5b427d);_0x379689[_0x26d4f0(0xb2)]({'command':'C','points':[_0x4cb713['x'],_0x4cb713['y'],_0x3df3ea['x'],_0x3df3ea['y'],_0xaeaf73['x'],_0xaeaf73['y']]});}if(_0x23c0f3[_0x26d4f0(0xe9)]&&_0x42909e[_0x26d4f0(0xf3)]>0x1){let _0x3d9439=_0x42909e[_0x42909e[_0x26d4f0(0xf3)]-0x1],_0x2bacfd=_0x42909e[0x0],_0x3bad3d=G(_0x3d9439[_0x26d4f0(0xb3)]??_0x3d9439,_0x5b427d),_0x14c7b3=G(_0x2bacfd['in']??_0x2bacfd,_0x5b427d),_0x4cdb1a=G(_0x2bacfd,_0x5b427d);_0x379689[_0x26d4f0(0xb2)]({'command':'C','points':[_0x3bad3d['x'],_0x3bad3d['y'],_0x14c7b3['x'],_0x14c7b3['y'],_0x4cdb1a['x'],_0x4cdb1a['y']]}),_0x379689[_0x26d4f0(0xb2)]({'command':'z','points':[]});}return _0x379689;}let _0x2523b3=_0x23c0f3['points'][_0x26d4f0(0xee)](_0x19ff56=>G(_0x19ff56,_0x5b427d));if(_0x2523b3['length']===0x0)return[];let _0x3a6c0b=[{'command':'M','points':[_0x2523b3[0x0]['x'],_0x2523b3[0x0]['y']]}];for(let _0x19bf59=0x0;_0x19bf59<_0x2523b3[_0x26d4f0(0xf3)]-0x1;_0x19bf59++){let _0x24e9fd=_0x2523b3[_0x19bf59],_0x486167=_0x2523b3[_0x19bf59+0x1],_0x13f79b=_0x2523b3[_0x19bf59-0x1]??_0x24e9fd,_0x232d5b=_0x2523b3[_0x19bf59+0x2]??_0x486167,_0x59d987={'x':_0x24e9fd['x']+(_0x486167['x']-_0x13f79b['x'])/0x6,'y':_0x24e9fd['y']+(_0x486167['y']-_0x13f79b['y'])/0x6},_0x5ed827={'x':_0x486167['x']-(_0x232d5b['x']-_0x24e9fd['x'])/0x6,'y':_0x486167['y']-(_0x232d5b['y']-_0x24e9fd['y'])/0x6};_0x3a6c0b['push']({'command':'C','points':[_0x59d987['x'],_0x59d987['y'],_0x5ed827['x'],_0x5ed827['y'],_0x486167['x'],_0x486167['y']]});}return _0x3a6c0b;}function q(_0x4db9c5){const _0x5e1956=_0x4ebf33;let {model:_0x22f77b,sourceModel:_0x589ef9=_0x22f77b,style:_0x54169b}=_0x4db9c5,_0x5d940e=_0x4db9c5[_0x5e1956(0x123)]??_0x22f77b[_0x5e1956(0xde)],_0x3044ac=R(_0x22f77b),_0x1cea92=_0x22f77b[_0x5e1956(0xde)]===_0x5e1956(0xcf)&&_0x5d940e!==_0x5e1956(0xcf)?_0x22f77b:void 0x0;return{'transform':{..._0x3044ac,'rotation':0x0},'shapeData':oe(_0x22f77b,_0x54169b),'ink':{'version':0x1,'tool':_0x5d940e,'sourceModel':_0x589ef9,..._0x1cea92?{'editModel':_0x1cea92}:{},'normalizedBounds':_0x3044ac}};}var se=_0x4ebf33(0xb4),ce=_0x4ebf33(0xdf);function J(_0x4b289b){'@babel/helpers - typeof';const _0xe6da87=_0x4ebf33;return J=typeof Symbol==_0xe6da87(0xd6)&&typeof Symbol[_0xe6da87(0xc6)]==_0xe6da87(0x110)?function(_0x872bc7){return typeof _0x872bc7;}:function(_0x413767){const _0x4ee626=_0xe6da87;return _0x413767&&typeof Symbol==_0x4ee626(0xd6)&&_0x413767['constructor']===Symbol&&_0x413767!==Symbol[_0x4ee626(0xf6)]?_0x4ee626(0x110):typeof _0x413767;},J(_0x4b289b);}function le(_0x572844,_0x2f1b8a){const _0x258d01=_0x4ebf33;if(J(_0x572844)!=_0x258d01(0x116)||!_0x572844)return _0x572844;var _0x5f45cc=_0x572844[Symbol[_0x258d01(0xfb)]];if(_0x5f45cc!==void 0x0){var _0x1e63c2=_0x5f45cc[_0x258d01(0x114)](_0x572844,_0x2f1b8a||_0x258d01(0x117));if(J(_0x1e63c2)!='object')return _0x1e63c2;throw TypeError(_0x258d01(0x10c));}return(_0x2f1b8a===_0x258d01(0xc2)?String:Number)(_0x572844);}function ue(_0x5dead4){const _0x4fa7b3=_0x4ebf33;var _0x1dad8e=le(_0x5dead4,_0x4fa7b3(0xc2));return J(_0x1dad8e)==_0x4fa7b3(0x110)?_0x1dad8e:_0x1dad8e+'';}function Y(_0x2493bc,_0x3d0146,_0xa56015){const _0x2bf9ce=_0x4ebf33;return(_0x3d0146=ue(_0x3d0146))in _0x2493bc?Object[_0x2bf9ce(0x112)](_0x2493bc,_0x3d0146,{'value':_0xa56015,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2493bc[_0x3d0146]=_0xa56015,_0x2493bc;}const X=(0x0,n[_0x4ebf33(0x105)])(_0x4ebf33(0xbc));var de=class{constructor(){Y(this,'_adapters',[]);}['registerAdapter'](_0x3ca5ea){const _0x2ea2e9=_0x4ebf33;return this[_0x2ea2e9(0xd8)]['push'](_0x3ca5ea),(0x0,n['toDisposable'])(()=>{const _0x24a64b=_0x2ea2e9;let _0x2dbd8f=this['_adapters'][_0x24a64b(0xe8)](_0x3ca5ea);_0x2dbd8f>=0x0&&this[_0x24a64b(0xd8)]['splice'](_0x2dbd8f,0x1);});}[_0x4ebf33(0x122)](_0x388fbd){const _0x41019d=_0x4ebf33;for(let _0x32f173 of this['_adapters'])if(_0x32f173[_0x41019d(0x122)](_0x388fbd))return!0x0;return!0x1;}async[_0x4ebf33(0xb5)](_0x5c3655){const _0x1b4e8b=_0x4ebf33;for(let _0x220da8 of this[_0x1b4e8b(0xd8)])if(_0x220da8[_0x1b4e8b(0xb5)]&&await _0x220da8[_0x1b4e8b(0xb5)](_0x5c3655))return!0x0;return!0x1;}};function _0x3356(_0x36aafd,_0x37f232){_0x36aafd=_0x36aafd-0xab;const _0x27dd2f=_0x27dd();let _0x3356e1=_0x27dd2f[_0x36aafd];return _0x3356e1;}const fe={'id':'ink.operation.start','type':n[_0x4ebf33(0x104)]['OPERATION'],'handler':(_0x96e69c,_0x343260)=>_0x343260?_0x96e69c[_0x4ebf33(0x113)](X)[_0x4ebf33(0x122)](_0x343260):!0x1},Z={};function Q(_0x47b078,_0x71d4e2){return function(_0x2730c7,_0x31f90a){_0x71d4e2(_0x2730c7,_0x31f90a,_0x47b078);};}function pe(_0x4fc3b3,_0xa7cfbe,_0x385895,_0x3cde1e){const _0x49884d=_0x4ebf33;var _0x32251f=arguments[_0x49884d(0xf3)],_0x1f9602=_0x32251f<0x3?_0xa7cfbe:_0x3cde1e===null?_0x3cde1e=Object[_0x49884d(0xd4)](_0xa7cfbe,_0x385895):_0x3cde1e,_0x1dddb6;if(typeof Reflect==_0x49884d(0x116)&&typeof Reflect['decorate']==_0x49884d(0xd6))_0x1f9602=Reflect[_0x49884d(0x126)](_0x4fc3b3,_0xa7cfbe,_0x385895,_0x3cde1e);else{for(var _0x3e4a42=_0x4fc3b3[_0x49884d(0xf3)]-0x1;_0x3e4a42>=0x0;_0x3e4a42--)(_0x1dddb6=_0x4fc3b3[_0x3e4a42])&&(_0x1f9602=(_0x32251f<0x3?_0x1dddb6(_0x1f9602):_0x32251f>0x3?_0x1dddb6(_0xa7cfbe,_0x385895,_0x1f9602):_0x1dddb6(_0xa7cfbe,_0x385895))||_0x1f9602);}return _0x32251f>0x3&&_0x1f9602&&Object[_0x49884d(0x112)](_0xa7cfbe,_0x385895,_0x1f9602),_0x1f9602;}let $=class extends n[_0x4ebf33(0xc9)]{constructor(_0x1e2503=Z,_0x189603,_0x466d4b,_0x3bb590){const _0x47ecbf=_0x4ebf33;super(),this[_0x47ecbf(0xf1)]=_0x1e2503,this['_injector']=_0x189603,this['_commandService']=_0x466d4b,this['_configService']=_0x3bb590;let {..._0x5a7e5a}=(0x0,n[_0x47ecbf(0xd5)])({},Z,this['_config']);this[_0x47ecbf(0xec)][_0x47ecbf(0xfd)](_0x47ecbf(0xef),_0x5a7e5a);}['onStarting'](){const _0x4fe41e=_0x4ebf33;[[X,{'useClass':de}]][_0x4fe41e(0x118)](_0xafbd7f=>this[_0x4fe41e(0x124)][_0x4fe41e(0xe5)](_0xafbd7f)),this[_0x4fe41e(0xda)](this['_commandService']['registerCommand'](fe));}};Y($,_0x4ebf33(0xe2),_0x4ebf33(0x115)),Y($,_0x4ebf33(0xcc),se),Y($,_0x4ebf33(0xbf),ce),Y($,_0x4ebf33(0x121),n[_0x4ebf33(0x108)][_0x4ebf33(0xf5)]),$=pe([(0x0,n[_0x4ebf33(0xd0)])(t[_0x4ebf33(0xc4)]),Q(0x1,(0x0,n[_0x4ebf33(0xe7)])(n[_0x4ebf33(0xc0)])),Q(0x2,n[_0x4ebf33(0x11b)]),Q(0x3,n[_0x4ebf33(0x127)])],$),exports['IInkHostAdapterService']=X,Object['defineProperty'](exports,_0x4ebf33(0x107),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4ebf33(0xf0)]=q,exports['convertBrushModelToPenModel']=re,exports[_0x4ebf33(0xbd)]=E,exports[_0x4ebf33(0xdb)]=w,exports[_0x4ebf33(0x102)]=ie,exports[_0x4ebf33(0x100)]=S,exports[_0x4ebf33(0xb9)]=R,exports['getInkPenPreviewModel']=x,exports['insertInkPenAnchorAt']=C,exports[_0x4ebf33(0x11f)]=p,exports[_0x4ebf33(0xb7)]=ae,exports['setInkPenAnchorPointType']=T;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x1b33c4=_0xffea;(function(_0x3d8c84,_0x49724c){const _0x305397=_0xffea,_0x2ea665=_0x3d8c84();while(!![]){try{const _0x142300=parseInt(_0x305397(0x1d1))/0x1+parseInt(_0x305397(0x1d9))/0x2*(parseInt(_0x305397(0x1fd))/0x3)+parseInt(_0x305397(0x1f3))/0x4+parseInt(_0x305397(0x1e7))/0x5+parseInt(_0x305397(0x1d8))/0x6+parseInt(_0x305397(0x1e6))/0x7+parseInt(_0x305397(0x1dd))/0x8*(-parseInt(_0x305397(0x1de))/0x9);if(_0x142300===_0x49724c)break;else _0x2ea665['push'](_0x2ea665['shift']());}catch(_0x111a1a){_0x2ea665['push'](_0x2ea665['shift']());}}}(_0xeb0e,0xa4e76));import{BoardElementType as _0x3da64e}from'@univerjs-pro/boards';import{FBoard as _0x2a1d57}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x17664a}from'@univerjs-pro/ink';import{Tools as _0x4d5ca2,generateRandomId as _0x2086e2}from'@univerjs/core';import{FEnum as _0x2dc3a1}from'@univerjs/core/facade';function _0xffea(_0x2de029,_0x41ccf7){_0x2de029=_0x2de029-0x1d1;const _0xeb0e67=_0xeb0e();let _0xffeaf9=_0xeb0e67[_0x2de029];return _0xffeaf9;}var o=class extends _0x2a1d57{[_0x1b33c4(0x1f4)](_0x899dc2){const _0x5e7132=_0x1b33c4;let _0x2f3a76=s(_0x899dc2);return _0x2f3a76&&this['_addElement'](_0x2f3a76,{'insertIndex':_0x899dc2[_0x5e7132(0x1fe)]})?_0x2f3a76:null;}[_0x1b33c4(0x1d5)](){const _0x33324e=_0x1b33c4;return this[_0x33324e(0x1db)]({'elementType':_0x3da64e[_0x33324e(0x1f0)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x33324e(0x1e2)](p);}};function s(_0x4ad296,_0x4ad11f){const _0x2fc941=_0x1b33c4;if(!l(_0x4ad296[_0x2fc941(0x1e9)])||_0x4ad296[_0x2fc941(0x1fb)]!==void 0x0&&!l(_0x4ad296[_0x2fc941(0x1fb)])||!u(_0x4ad296[_0x2fc941(0x1f2)]))return null;let _0x2f6dfe=_0x4ad296[_0x2fc941(0x1e1)]??(_0x4ad11f==null?void 0x0:_0x4ad11f[_0x2fc941(0x1e1)]),_0x175a5e=_0x4d5ca2[_0x2fc941(0x1dc)](_0x4ad296['model']),_0x245e76=_0x17664a({'model':_0x175a5e,'style':_0x4ad296['style'],'tool':_0x4ad296['tool'],'sourceModel':_0x4ad296['sourceModel']?_0x4d5ca2[_0x2fc941(0x1dc)](_0x4ad296[_0x2fc941(0x1fb)]):_0x175a5e}),_0x492fb0=d(_0x4ad11f==null?void 0x0:_0x4ad11f['custom']);return{'id':(_0x4ad11f==null?void 0x0:_0x4ad11f['id'])??_0x4ad296['id']??_0x2086e2(0x6),'type':_0x3da64e[_0x2fc941(0x1f0)],'transform':_0x245e76[_0x2fc941(0x1f8)],'shapeData':_0x245e76['shapeData'],'parentId':_0x2f6dfe??void 0x0,'laneId':_0x4ad296[_0x2fc941(0x1ff)]===void 0x0?_0x4ad11f==null?void 0x0:_0x4ad11f['laneId']:_0x4ad296['laneId'],'custom':{..._0x492fb0,'ink':_0x245e76[_0x2fc941(0x1f6)]}};}function _0xeb0e(){const _0x5eae82=['deepClone','226832KIVqoU','711eYZQmN','trim','add','parentId','filter','BoardInkPointType','free','every','72548iivabU','3214060PGsKIa','highlighter','model','opacity','extend','object','has','length','out','Shape','anchor','style','3101672BQBwKz','insertInk','pen','ink','width','transform','type','anchors','sourceModel','version','64533pkFfGR','insertIndex','laneId','points','BoardInkHandleKind','777695dsLgSW','pressure','closed','isFinite','getInks','smooth','BoardInkTool','2318748PSlTCQ','30LCODfO','custom','findElements'];_0xeb0e=function(){return _0x5eae82;};return _0xeb0e();}function c(_0x558eb9){const _0xec3408=_0x1b33c4;return Number[_0xec3408(0x1d4)](_0x558eb9['x'])&&Number[_0xec3408(0x1d4)](_0x558eb9['y']);}function l(_0x3a9664){const _0x44a5e4=_0x1b33c4;if(_0x3a9664['kind']===_0x44a5e4(0x1f5)){let _0x54de90=new Set();return _0x3a9664[_0x44a5e4(0x1fa)][_0x44a5e4(0x1ee)]>=(_0x3a9664[_0x44a5e4(0x1d3)]?0x3:0x2)&&_0x3a9664[_0x44a5e4(0x1fa)][_0x44a5e4(0x1e5)](_0x58b8ee=>{const _0x453f87=_0x44a5e4;let _0x49157f=_0x58b8ee['id'][_0x453f87(0x1df)]()[_0x453f87(0x1ee)]>0x0&&!_0x54de90[_0x453f87(0x1ed)](_0x58b8ee['id'])&&c(_0x58b8ee)&&(!_0x58b8ee['in']||c(_0x58b8ee['in']))&&(!_0x58b8ee[_0x453f87(0x1ef)]||c(_0x58b8ee[_0x453f87(0x1ef)]));return _0x54de90[_0x453f87(0x1e0)](_0x58b8ee['id']),_0x49157f;});}return _0x3a9664[_0x44a5e4(0x200)][_0x44a5e4(0x1ee)]>=0x2&&_0x3a9664[_0x44a5e4(0x200)][_0x44a5e4(0x1e5)](_0x4a7aff=>c(_0x4a7aff)&&Number['isFinite'](_0x4a7aff['t'])&&(_0x4a7aff['pressure']===void 0x0||Number[_0x44a5e4(0x1d4)](_0x4a7aff[_0x44a5e4(0x1d2)])))&&Number[_0x44a5e4(0x1d4)](_0x3a9664[_0x44a5e4(0x1f7)])&&_0x3a9664[_0x44a5e4(0x1f7)]>0x0&&Number[_0x44a5e4(0x1d4)](_0x3a9664[_0x44a5e4(0x1ea)])&&_0x3a9664['opacity']>=0x0&&_0x3a9664[_0x44a5e4(0x1ea)]<=0x1;}function u(_0x1275e4){const _0x41c5b4=_0x1b33c4;return _0x1275e4===void 0x0||(_0x1275e4[_0x41c5b4(0x1f7)]===void 0x0||Number[_0x41c5b4(0x1d4)](_0x1275e4[_0x41c5b4(0x1f7)])&&_0x1275e4[_0x41c5b4(0x1f7)]>0x0)&&(_0x1275e4[_0x41c5b4(0x1ea)]===void 0x0||Number[_0x41c5b4(0x1d4)](_0x1275e4[_0x41c5b4(0x1ea)])&&_0x1275e4['opacity']>=0x0&&_0x1275e4[_0x41c5b4(0x1ea)]<=0x1);}function d(_0x3bc335){const _0x52741d=_0x1b33c4;return _0x3bc335&&typeof _0x3bc335==_0x52741d(0x1ec)&&!Array['isArray'](_0x3bc335)?_0x3bc335:{};}function f(_0x17b752){const _0xf1bb7c=_0x1b33c4;let _0x4683ba=d(_0x17b752[_0xf1bb7c(0x1da)])[_0xf1bb7c(0x1f6)];if(!_0x4683ba||typeof _0x4683ba!=_0xf1bb7c(0x1ec)||Array['isArray'](_0x4683ba))return null;let _0x371eea=_0x4683ba;return _0x371eea[_0xf1bb7c(0x1fc)]===0x1&&_0x371eea['sourceModel']&&typeof _0x371eea[_0xf1bb7c(0x1fb)]==_0xf1bb7c(0x1ec)?_0x371eea:null;}function p(_0x50e9a7){const _0x253188=_0x1b33c4;return _0x50e9a7[_0x253188(0x1f9)]===_0x3da64e[_0x253188(0x1f0)]&&!!f(_0x50e9a7);}_0x2a1d57['extend'](o);const m={'Pen':'pen','Brush':'brush','Highlighter':_0x1b33c4(0x1e8)},h={'Corner':'corner','Smooth':_0x1b33c4(0x1d6),'Symmetric':'symmetric','Free':_0x1b33c4(0x1e4)},g={'Anchor':_0x1b33c4(0x1f1),'In':'in','Out':_0x1b33c4(0x1ef)};var _=class extends _0x2dc3a1{get[_0x1b33c4(0x1d7)](){return m;}get[_0x1b33c4(0x1e3)](){return h;}get[_0x1b33c4(0x201)](){return g;}};_0x2dc3a1[_0x1b33c4(0x1eb)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4d5c9d=_0x1247;(function(_0x4fcfba,_0x2ec095){const _0x23f442=_0x1247,_0x535d77=_0x4fcfba();while(!![]){try{const _0x927dfa=-parseInt(_0x23f442(0x1db))/0x1+parseInt(_0x23f442(0x1bc))/0x2+-parseInt(_0x23f442(0x1af))/0x3+parseInt(_0x23f442(0x1d8))/0x4+parseInt(_0x23f442(0x1cb))/0x5*(parseInt(_0x23f442(0x1d1))/0x6)+-parseInt(_0x23f442(0x209))/0x7+-parseInt(_0x23f442(0x1c6))/0x8*(-parseInt(_0x23f442(0x1d3))/0x9);if(_0x927dfa===_0x2ec095)break;else _0x535d77['push'](_0x535d77['shift']());}catch(_0x3a0005){_0x535d77['push'](_0x535d77['shift']());}}}(_0x5e32,0xc703d));import{ShapeFillEnum as _0x1ab911,ShapeLineCapEnum as _0x52c57b,ShapeLineJoinEnum as _0x2ef3aa,ShapeLineTypeEnum as _0xb40238,ShapeTypeEnum as _0x49cd1d}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x57a878}from'@univerjs-pro/license';import{CommandType as _0x274185,DependentOn as _0x2f0a1b,ICommandService as _0x18c36a,IConfigService as _0x4e83c9,Inject as _0x304ec7,Injector as _0x404c68,Plugin as _0xd72275,UniverInstanceType as _0x5eeb86,createIdentifier as _0x5f2cbd,merge as _0xe94c79,toDisposable as _0x5a5fba}from'@univerjs/core';const g=0.0001;function _(_0x2cda97){return{'x':_0x2cda97['x'],'y':_0x2cda97['y']};}function v(_0x127e2e){const _0x97077b=_0x1247;return{..._0x127e2e,'in':_0x127e2e['in']?_(_0x127e2e['in']):void 0x0,'out':_0x127e2e[_0x97077b(0x1bb)]?_(_0x127e2e[_0x97077b(0x1bb)]):void 0x0};}function y(_0x4f0dab){const _0x2675e4=_0x1247;return{'kind':_0x2675e4(0x1d2),'closed':_0x4f0dab[_0x2675e4(0x1cf)],'anchors':_0x4f0dab[_0x2675e4(0x1f5)]['map'](v)};}function b(_0x595723,_0x278fb7,_0x1f97bb){return{'x':_0x595723['x']+(_0x278fb7['x']-_0x595723['x'])*_0x1f97bb,'y':_0x595723['y']+(_0x278fb7['y']-_0x595723['y'])*_0x1f97bb};}function x(_0x52f9bd,_0x4c9c24){const _0x2d7e56=_0x1247;return Math[_0x2d7e56(0x1c0)](_0x52f9bd['x']-_0x4c9c24['x'],_0x52f9bd['y']-_0x4c9c24['y']);}function S(_0x2dd696){const _0x47d1da=_0x1247;let _0x1b3a2d=Math[_0x47d1da(0x1c0)](_0x2dd696['x'],_0x2dd696['y']);return _0x1b3a2d<g?{'x':0x1,'y':0x0}:{'x':_0x2dd696['x']/_0x1b3a2d,'y':_0x2dd696['y']/_0x1b3a2d};}function C(_0x4f70bf,_0x3af8ff,_0x4ff15e=x(_0x4f70bf,_0x3af8ff)){let _0x5efc37=S({'x':_0x4f70bf['x']-_0x3af8ff['x'],'y':_0x4f70bf['y']-_0x3af8ff['y']});return{'x':_0x4f70bf['x']+_0x5efc37['x']*_0x4ff15e,'y':_0x4f70bf['y']+_0x5efc37['y']*_0x4ff15e};}function w(_0xb34253,_0x8d66ad){const _0x7600c9=_0x1247;let {anchors:_0xe1d492}=_0xb34253;return _0xe1d492[_0x7600c9(0x1ed)]<0x2||_0x8d66ad<0x0?null:_0x8d66ad<_0xe1d492[_0x7600c9(0x1ed)]-0x1?{'startIndex':_0x8d66ad,'endIndex':_0x8d66ad+0x1,'start':_0xe1d492[_0x8d66ad],'end':_0xe1d492[_0x8d66ad+0x1]}:_0xb34253[_0x7600c9(0x1cf)]&&_0x8d66ad===_0xe1d492[_0x7600c9(0x1ed)]-0x1?{'startIndex':_0xe1d492[_0x7600c9(0x1ed)]-0x1,'endIndex':0x0,'start':_0xe1d492[_0xe1d492[_0x7600c9(0x1ed)]-0x1],'end':_0xe1d492[0x0]}:null;}function T(_0x2ba707,_0x50f5b5){const _0x28be92=_0x1247;let _0x26ddfb=w(_0x2ba707,_0x50f5b5);return _0x26ddfb?[_0x26ddfb['start'],_0x26ddfb[_0x28be92(0x1fe)]['out']??_0x26ddfb[_0x28be92(0x1fe)],_0x26ddfb[_0x28be92(0x1eb)]['in']??_0x26ddfb[_0x28be92(0x1eb)],_0x26ddfb[_0x28be92(0x1eb)]]:null;}function te(_0x5a382c,_0x24d860){const _0x1e2d35=_0x1247;return _0x24d860===_0x1e2d35(0x20f)?_0x5a382c:_0x5a382c[_0x24d860]??null;}function E(_0x596289,_0x5acf97,_0x10b2f0){const _0x5619f7=_0x1247;return _0x10b2f0===_0x5619f7(0x20f)||_0x596289[_0x5619f7(0x1cf)]?!0x0:_0x10b2f0==='in'?_0x5acf97>0x0:_0x5acf97<_0x596289[_0x5619f7(0x1f5)][_0x5619f7(0x1ed)]-0x1;}function D(_0x4f0040,_0x13bd21){let [_0x252eea,_0x2ce951,_0x4f9223,_0x5d5248]=_0x4f0040,_0xf02cf5=b(_0x252eea,_0x2ce951,_0x13bd21),_0x223a05=b(_0x2ce951,_0x4f9223,_0x13bd21),_0x196670=b(_0x4f9223,_0x5d5248,_0x13bd21);return b(b(_0xf02cf5,_0x223a05,_0x13bd21),b(_0x223a05,_0x196670,_0x13bd21),_0x13bd21);}function ne(_0x1dd0a0,_0x229718){let [_0x4a12d7,_0x4a50c0,_0xe95602,_0x1b2a13]=_0x1dd0a0,_0x592b76=b(_0x4a12d7,_0x4a50c0,_0x229718),_0x4316bd=b(_0x4a50c0,_0xe95602,_0x229718),_0x3ec2ef=b(_0xe95602,_0x1b2a13,_0x229718),_0x253ff2=b(_0x592b76,_0x4316bd,_0x229718),_0x1723c4=b(_0x4316bd,_0x3ec2ef,_0x229718),_0x14a708=b(_0x253ff2,_0x1723c4,_0x229718);return{'left':[_0x4a12d7,_0x592b76,_0x253ff2,_0x14a708],'right':[_0x14a708,_0x1723c4,_0x3ec2ef,_0x1b2a13]};}function O(_0x3d3f0e,_0x137b38,_0x470fb0){const _0x14f27f=_0x1247;let _0x26f0cc=_0x470fb0['x']-_0x137b38['x'],_0x5c602e=_0x470fb0['y']-_0x137b38['y'],_0x313ad4=_0x26f0cc*_0x26f0cc+_0x5c602e*_0x5c602e,_0x56c323=_0x313ad4<=g?0x0:Math[_0x14f27f(0x202)](0x0,Math[_0x14f27f(0x1ef)](0x1,((_0x3d3f0e['x']-_0x137b38['x'])*_0x26f0cc+(_0x3d3f0e['y']-_0x137b38['y'])*_0x5c602e)/_0x313ad4)),_0x13a59d={'x':_0x137b38['x']+_0x26f0cc*_0x56c323,'y':_0x137b38['y']+_0x5c602e*_0x56c323};return{'point':_0x13a59d,'ratio':_0x56c323,'distance':x(_0x3d3f0e,_0x13a59d)};}function re(_0x452e85,_0x390eab,_0x241a2e){return O(_0x452e85,_0x390eab,_0x241a2e)['distance']**0x2;}function k(_0x5eaca1,_0x6f8b22){const _0x4326da=_0x1247;if(_0x5eaca1[_0x4326da(0x1ed)]<=0x2)return _0x5eaca1[_0x4326da(0x20d)](_);let _0x3c8dae=0x0,_0x5e955f=0x0,_0x391213=_0x5eaca1[0x0],_0xdcc947=_0x5eaca1[_0x5eaca1['length']-0x1],_0x3300c2=_0x6f8b22*_0x6f8b22;for(let _0x2cb846=0x1;_0x2cb846<_0x5eaca1[_0x4326da(0x1ed)]-0x1;_0x2cb846++){let _0x178e47=re(_0x5eaca1[_0x2cb846],_0x391213,_0xdcc947);_0x178e47>_0x3c8dae&&(_0x3c8dae=_0x178e47,_0x5e955f=_0x2cb846);}if(_0x3c8dae<=_0x3300c2)return[_(_0x391213),_(_0xdcc947)];let _0x25e7c9=k(_0x5eaca1[_0x4326da(0x1e5)](0x0,_0x5e955f+0x1),_0x6f8b22),_0x496446=k(_0x5eaca1[_0x4326da(0x1e5)](_0x5e955f),_0x6f8b22);return[..._0x25e7c9[_0x4326da(0x1e5)](0x0,-0x1),..._0x496446];}function ie(_0x10466c,_0x32a49b){let _0x4ddc0f=_0x10466c[_0x32a49b],_0x82b40c=_0x10466c[_0x32a49b+0x1],_0x3dd8d4=_0x10466c[_0x32a49b-0x1]??_0x4ddc0f;return{'x':_0x4ddc0f['x']+(_0x82b40c['x']-_0x3dd8d4['x'])/0x6,'y':_0x4ddc0f['y']+(_0x82b40c['y']-_0x3dd8d4['y'])/0x6};}function A(_0x4f1f7e,_0x506d01){let _0x61133f=_0x4f1f7e[_0x506d01],_0x16e00d=_0x4f1f7e[_0x506d01-0x1],_0x5ddeb8=_0x4f1f7e[_0x506d01+0x1]??_0x61133f;return{'x':_0x61133f['x']-(_0x5ddeb8['x']-_0x16e00d['x'])/0x6,'y':_0x61133f['y']-(_0x5ddeb8['y']-_0x16e00d['y'])/0x6};}function j(_0x2be232,_0x440c3b){const _0x202021=_0x1247;let _0x2e96e9=_0x2be232[_0x202021(0x1f5)][_0x440c3b],_0x4067ea=_0x2be232['anchors'][_0x440c3b-0x1]??(_0x2be232[_0x202021(0x1cf)]?_0x2be232[_0x202021(0x1f5)][_0x2be232[_0x202021(0x1f5)][_0x202021(0x1ed)]-0x1]:null),_0x29b911=_0x2be232[_0x202021(0x1f5)][_0x440c3b+0x1]??(_0x2be232[_0x202021(0x1cf)]?_0x2be232[_0x202021(0x1f5)][0x0]:null),_0x549e54=_0x4067ea&&_0x29b911?S({'x':_0x29b911['x']-_0x4067ea['x'],'y':_0x29b911['y']-_0x4067ea['y']}):_0x29b911?S({'x':_0x29b911['x']-_0x2e96e9['x'],'y':_0x29b911['y']-_0x2e96e9['y']}):_0x4067ea?S({'x':_0x2e96e9['x']-_0x4067ea['x'],'y':_0x2e96e9['y']-_0x4067ea['y']}):{'x':0x1,'y':0x0},_0x2e8b5c=_0x4067ea&&_0x29b911?Math[_0x202021(0x202)](0x32,x(_0x4067ea,_0x29b911)/0x4):0x32;return{'in':{'x':_0x2e96e9['x']-_0x549e54['x']*_0x2e8b5c,'y':_0x2e96e9['y']-_0x549e54['y']*_0x2e8b5c},'out':{'x':_0x2e96e9['x']+_0x549e54['x']*_0x2e8b5c,'y':_0x2e96e9['y']+_0x549e54['y']*_0x2e8b5c}};}function M(_0x33853b,_0x559357){const _0xe98d53=_0x1247;let _0x5a8f63=_0x33853b[_0x559357],_0x2c9f9a=_0x559357==='in'?'out':'in',_0x14c145=_0x33853b[_0x2c9f9a];if(_0x5a8f63){if(_0x33853b[_0xe98d53(0x1c7)]===_0xe98d53(0x1e8)){_0x33853b[_0x2c9f9a]=C(_0x33853b,_0x5a8f63);return;}_0x33853b[_0xe98d53(0x1c7)]===_0xe98d53(0x1e2)&&(_0x33853b[_0x2c9f9a]=C(_0x33853b,_0x5a8f63,_0x14c145?x(_0x33853b,_0x14c145):x(_0x33853b,_0x5a8f63)));}}function ae(_0x277839,_0xcf8269){const _0x167163=_0x1247;let _0x4bae76=y(_0x277839);return!_0xcf8269||_0x4bae76[_0x167163(0x1cf)]||_0x4bae76[_0x167163(0x1f5)][_0x167163(0x1ed)]===0x0||_0x4bae76['anchors'][_0x167163(0x1df)]({'id':_0x167163(0x203),'x':_0xcf8269['x'],'y':_0xcf8269['y'],'pointType':_0x167163(0x1c1)}),_0x4bae76;}function oe(_0x52dad7,_0x3152e9={}){const _0x5e6e11=_0x1247;let _0x635ab0=Math['max'](0x0,_0x3152e9['tolerance']??Math['max'](0x4,_0x52dad7['width']*0.35)),_0x4c7842=_0x3152e9[_0x5e6e11(0x1d6)]??(_0x287789=>'ink-centerline-'+_0x287789),_0x163b49=k(_0x52dad7['points'],_0x635ab0),_0x247ede=_0x163b49['map']((_0x123eda,_0x8430e4)=>({'id':_0x4c7842(_0x8430e4),'x':_0x123eda['x'],'y':_0x123eda['y'],'pointType':_0x5e6e11(0x20e)}));for(let _0x43d67e=0x0;_0x43d67e<_0x247ede[_0x5e6e11(0x1ed)]-0x1;_0x43d67e++)_0x247ede[_0x43d67e]['out']=ie(_0x163b49,_0x43d67e),_0x247ede[_0x43d67e+0x1]['in']=A(_0x163b49,_0x43d67e+0x1);return{'kind':_0x5e6e11(0x1d2),'closed':!0x1,'anchors':_0x247ede};}function se(_0xd65d76,_0x260f2a,_0x122b2e){const _0x54cada=_0x1247;let _0x311e37=null,_0x5aabf9=[_0x54cada(0x20f),'in',_0x54cada(0x1bb)];return _0xd65d76[_0x54cada(0x1f5)]['forEach']((_0x1a8fa2,_0x5092fb)=>{const _0x23b9e1=_0x54cada;_0x5aabf9[_0x23b9e1(0x1b3)](_0x9b76b3=>{const _0x295b8a=_0x23b9e1;if(!E(_0xd65d76,_0x5092fb,_0x9b76b3))return;let _0x591303=te(_0x1a8fa2,_0x9b76b3);if(!_0x591303)return;let _0x38d169=x(_0x260f2a,_0x591303);_0x38d169>_0x122b2e||_0x311e37&&_0x38d169>=_0x311e37[_0x295b8a(0x1ce)]||(_0x311e37={'handle':{'kind':_0x9b76b3,'anchorId':_0x1a8fa2['id']},'point':_(_0x591303),'distance':_0x38d169});});}),_0x311e37;}function ce(_0x456ec7,_0x1342ab,_0x5241e4){const _0x30e933=_0x1247;let _0x4f5f9a=null,_0x18e1df=_0x456ec7['closed']?_0x456ec7[_0x30e933(0x1f5)]['length']:Math[_0x30e933(0x202)](0x0,_0x456ec7['anchors'][_0x30e933(0x1ed)]-0x1);for(let _0x1c5331=0x0;_0x1c5331<_0x18e1df;_0x1c5331++){let _0x3b3342=T(_0x456ec7,_0x1c5331);if(!_0x3b3342)continue;let _0x2e5f17=D(_0x3b3342,0x0);for(let _0x53c210=0x1;_0x53c210<=0x20;_0x53c210++){let _0x348a90=D(_0x3b3342,_0x53c210/0x20),_0x31cbca=O(_0x1342ab,_0x2e5f17,_0x348a90),_0x585685=(_0x53c210-0x1+_0x31cbca[_0x30e933(0x1bd)])/0x20;(!_0x4f5f9a||_0x31cbca[_0x30e933(0x1ce)]<_0x4f5f9a['distance'])&&(_0x4f5f9a={'segmentIndex':_0x1c5331,'t':_0x585685,'point':_0x31cbca['point'],'distance':_0x31cbca[_0x30e933(0x1ce)]}),_0x2e5f17=_0x348a90;}}return _0x4f5f9a&&_0x4f5f9a['distance']<=_0x5241e4?_0x4f5f9a:null;}function le(_0x308173,_0x1d6259,_0x413623){const _0x42396a=_0x1247;let _0x5c34b9=y(_0x308173),_0x326a8f=w(_0x5c34b9,_0x1d6259[_0x42396a(0x1f6)]),_0x527886=T(_0x5c34b9,_0x1d6259[_0x42396a(0x1f6)]);if(!_0x326a8f||!_0x527886)return _0x5c34b9;let _0x43adc6=ne(_0x527886,Math[_0x42396a(0x202)](0x0,Math[_0x42396a(0x1ef)](0x1,_0x1d6259['t']))),_0x1fe348={'id':_0x413623(),'x':_0x43adc6[_0x42396a(0x1bf)][0x3]['x'],'y':_0x43adc6[_0x42396a(0x1bf)][0x3]['y'],'in':_(_0x43adc6[_0x42396a(0x1bf)][0x2]),'out':_(_0x43adc6['right'][0x1]),'pointType':_0x42396a(0x20e)};return _0x5c34b9[_0x42396a(0x1f5)][_0x326a8f[_0x42396a(0x1d4)]][_0x42396a(0x1bb)]=_(_0x43adc6['left'][0x1]),_0x5c34b9[_0x42396a(0x1f5)][_0x326a8f[_0x42396a(0x206)]]['in']=_(_0x43adc6[_0x42396a(0x1b2)][0x2]),_0x5c34b9[_0x42396a(0x1f5)][_0x42396a(0x1b9)](_0x326a8f['startIndex']+0x1,0x0,_0x1fe348),_0x5c34b9;}function ue(_0x4e6f4b,_0x4f3f96){const _0x59ccad=_0x1247;let _0x24bb7d=y(_0x4e6f4b);return _0x24bb7d[_0x59ccad(0x1f5)]=_0x24bb7d[_0x59ccad(0x1f5)][_0x59ccad(0x1c2)](_0x5f20b4=>_0x5f20b4['id']!==_0x4f3f96),_0x24bb7d[_0x59ccad(0x1cf)]&&_0x24bb7d[_0x59ccad(0x1f5)]['length']<0x3&&(_0x24bb7d[_0x59ccad(0x1cf)]=!0x1),_0x24bb7d;}function N(_0x39433b,_0x548243,_0x28e65a){const _0x480ed4=_0x1247;let _0x5af021=y(_0x39433b),_0x35e94b=_0x5af021[_0x480ed4(0x1f5)][_0x480ed4(0x1c9)](_0x5c1327=>_0x5c1327['id']===_0x548243),_0x44741d=_0x5af021[_0x480ed4(0x1f5)][_0x35e94b];if(!_0x44741d)return _0x5af021;if(_0x44741d[_0x480ed4(0x1c7)]=_0x28e65a,_0x28e65a===_0x480ed4(0x1c1))return delete _0x44741d['in'],delete _0x44741d[_0x480ed4(0x1bb)],_0x5af021;let _0x2e8346=j(_0x5af021,_0x35e94b);if(_0x44741d['in']=_0x44741d['in']?_(_0x44741d['in']):_0x2e8346['in'],_0x44741d['out']=_0x44741d[_0x480ed4(0x1bb)]?_(_0x44741d[_0x480ed4(0x1bb)]):_0x2e8346['out'],_0x28e65a===_0x480ed4(0x1e8)){let _0x4dfd64=Math[_0x480ed4(0x202)](x(_0x44741d,_0x44741d['in']),x(_0x44741d,_0x44741d[_0x480ed4(0x1bb)]),0x32),_0x5c4286=S({'x':_0x44741d[_0x480ed4(0x1bb)]['x']-_0x44741d['x'],'y':_0x44741d[_0x480ed4(0x1bb)]['y']-_0x44741d['y']});_0x44741d[_0x480ed4(0x1bb)]={'x':_0x44741d['x']+_0x5c4286['x']*_0x4dfd64,'y':_0x44741d['y']+_0x5c4286['y']*_0x4dfd64},_0x44741d['in']={'x':_0x44741d['x']-_0x5c4286['x']*_0x4dfd64,'y':_0x44741d['y']-_0x5c4286['y']*_0x4dfd64};}else _0x28e65a===_0x480ed4(0x1e2)&&M(_0x44741d,_0x480ed4(0x1bb));return _0x5af021;}function P(_0xa618a8,_0x463033){const _0x8be365=_0x1247;let _0x20aa60=_0xa618a8['anchors'][_0x8be365(0x1cd)](_0x18ad7c=>_0x18ad7c['id']===_0x463033),_0x1f9ae1=(_0x20aa60==null?void 0x0:_0x20aa60[_0x8be365(0x1c7)])??_0x8be365(0x1c1);return N(_0xa618a8,_0x463033,_0x1f9ae1==='corner'?_0x8be365(0x1e2):_0x1f9ae1==='smooth'?'symmetric':_0x1f9ae1===_0x8be365(0x1e8)?_0x8be365(0x20e):_0x8be365(0x1c1));}function F(_0x4a039a,_0x2b9371,_0x5f00e1){const _0x4791d9=_0x1247;let _0x3085ee=y(_0x4a039a),_0x5e2a5c=_0x3085ee[_0x4791d9(0x1f5)][_0x4791d9(0x1cd)](_0x58e062=>_0x58e062['id']===_0x2b9371[_0x4791d9(0x1f3)]);if(!_0x5e2a5c)return _0x3085ee;if(_0x2b9371[_0x4791d9(0x1fd)]==='anchor'){let _0xd638f3={'x':_0x5f00e1['x']-_0x5e2a5c['x'],'y':_0x5f00e1['y']-_0x5e2a5c['y']};return _0x5e2a5c['x']=_0x5f00e1['x'],_0x5e2a5c['y']=_0x5f00e1['y'],_0x5e2a5c['in']&&={'x':_0x5e2a5c['in']['x']+_0xd638f3['x'],'y':_0x5e2a5c['in']['y']+_0xd638f3['y']},_0x5e2a5c[_0x4791d9(0x1bb)]&&={'x':_0x5e2a5c[_0x4791d9(0x1bb)]['x']+_0xd638f3['x'],'y':_0x5e2a5c[_0x4791d9(0x1bb)]['y']+_0xd638f3['y']},_0x3085ee;}return _0x5e2a5c[_0x2b9371[_0x4791d9(0x1fd)]]=_(_0x5f00e1),_0x5e2a5c[_0x4791d9(0x1c7)]===_0x4791d9(0x1c1)&&(_0x5e2a5c[_0x4791d9(0x1c7)]=_0x4791d9(0x20e)),M(_0x5e2a5c,_0x2b9371[_0x4791d9(0x1fd)]),_0x3085ee;}const I=1e-9;function L(_0x3c3c6f){const _0x5240eb=_0x1247;let _0x3a1471=Math[_0x5240eb(0x1dd)](_0x3c3c6f*0x2710)/0x2710;return Object['is'](_0x3a1471,-0x0)?'0':String(_0x3a1471);}function R(_0x520fa0){return L(_0x520fa0['x'])+'\x20'+L(_0x520fa0['y']);}function z(_0x5446b6,_0x5c1f56){return{'x':_0x5446b6['x']-_0x5c1f56['x'],'y':_0x5446b6['y']-_0x5c1f56['y']};}function B(_0x1a5fe3,_0x40cfe4,_0x734106,_0xeffc3a,_0x304628){let _0x2ebf48=0x1-_0x304628;return{'x':_0x2ebf48*_0x2ebf48*_0x2ebf48*_0x1a5fe3['x']+0x3*_0x2ebf48*_0x2ebf48*_0x304628*_0x40cfe4['x']+0x3*_0x2ebf48*_0x304628*_0x304628*_0x734106['x']+_0x304628*_0x304628*_0x304628*_0xeffc3a['x'],'y':_0x2ebf48*_0x2ebf48*_0x2ebf48*_0x1a5fe3['y']+0x3*_0x2ebf48*_0x2ebf48*_0x304628*_0x40cfe4['y']+0x3*_0x2ebf48*_0x304628*_0x304628*_0x734106['y']+_0x304628*_0x304628*_0x304628*_0xeffc3a['y']};}function V(_0x22d728,_0xf1bceb,_0xaab2e7,_0x3150d){const _0xe3bf82=_0x1247;let _0x4963a0=-_0x22d728+0x3*_0xf1bceb-0x3*_0xaab2e7+_0x3150d,_0x3bff0e=0x3*_0x22d728-0x6*_0xf1bceb+0x3*_0xaab2e7,_0x4ffea5=-0x3*_0x22d728+0x3*_0xf1bceb,_0xb69f5d=[];if(Math['abs'](_0x4963a0)<I){if(Math[_0xe3bf82(0x1e3)](_0x3bff0e)<I)return _0xb69f5d;let _0x133d0e=-_0x4ffea5/(0x2*_0x3bff0e);return _0x133d0e>0x0&&_0x133d0e<0x1&&_0xb69f5d[_0xe3bf82(0x1df)](_0x133d0e),_0xb69f5d;}let _0x8eb0eb=_0x3bff0e*_0x3bff0e-0x3*_0x4963a0*_0x4ffea5;if(_0x8eb0eb<0x0)return _0xb69f5d;let _0x21174d=Math[_0xe3bf82(0x201)](Math[_0xe3bf82(0x202)](0x0,_0x8eb0eb)),_0x2c215f=(-_0x3bff0e+_0x21174d)/(0x3*_0x4963a0),_0x2ca7d4=(-_0x3bff0e-_0x21174d)/(0x3*_0x4963a0);return _0x2c215f>0x0&&_0x2c215f<0x1&&_0xb69f5d['push'](_0x2c215f),_0x2ca7d4>0x0&&_0x2ca7d4<0x1&&Math[_0xe3bf82(0x1e3)](_0x2ca7d4-_0x2c215f)>I&&_0xb69f5d[_0xe3bf82(0x1df)](_0x2ca7d4),_0xb69f5d;}function H(_0x1c13ff,_0xba6486,_0x12b2ed,_0x5a8d5d,_0xe60b72){const _0x367d44=_0x1247;_0x1c13ff[_0x367d44(0x1df)](_0xba6486,_0xe60b72),new Set([...V(_0xba6486['x'],_0x12b2ed['x'],_0x5a8d5d['x'],_0xe60b72['x']),...V(_0xba6486['y'],_0x12b2ed['y'],_0x5a8d5d['y'],_0xe60b72['y'])])[_0x367d44(0x1b3)](_0x4443f5=>{const _0x3e8b35=_0x367d44;_0x1c13ff[_0x3e8b35(0x1df)](B(_0xba6486,_0x12b2ed,_0x5a8d5d,_0xe60b72,_0x4443f5));});}function U(_0x2d4e99){const _0x159a8e=_0x1247;let _0xfe2a3a=_0x2d4e99[_0x159a8e(0x1f5)];if(_0xfe2a3a[_0x159a8e(0x1ed)]<=0x1)return _0xfe2a3a;let _0x46f4ed=[];for(let _0x2f3aa=0x1;_0x2f3aa<_0xfe2a3a[_0x159a8e(0x1ed)];_0x2f3aa++){let _0x4520fd=_0xfe2a3a[_0x2f3aa-0x1],_0x51134d=_0xfe2a3a[_0x2f3aa];H(_0x46f4ed,_0x4520fd,_0x4520fd[_0x159a8e(0x1bb)]??_0x4520fd,_0x51134d['in']??_0x51134d,_0x51134d);}if(_0x2d4e99['closed']&&_0xfe2a3a[_0x159a8e(0x1ed)]>0x1){let _0x14349e=_0xfe2a3a[_0xfe2a3a['length']-0x1],_0x3d8981=_0xfe2a3a[0x0];H(_0x46f4ed,_0x14349e,_0x14349e[_0x159a8e(0x1bb)]??_0x14349e,_0x3d8981['in']??_0x3d8981,_0x3d8981);}return _0x46f4ed;}function de(_0x44e1a1){const _0x11a065=_0x1247;let _0x14d706=_0x44e1a1[_0x11a065(0x208)];if(_0x14d706[_0x11a065(0x1ed)]<=0x1)return _0x14d706;let _0x37eccd=[];for(let _0x38c76f=0x0;_0x38c76f<_0x14d706[_0x11a065(0x1ed)]-0x1;_0x38c76f++){let _0x3d53c0=_0x14d706[_0x38c76f],_0x5c3a96=_0x14d706[_0x38c76f+0x1],_0x16f184=_0x14d706[_0x38c76f-0x1]??_0x3d53c0,_0x410d20=_0x14d706[_0x38c76f+0x2]??_0x5c3a96;H(_0x37eccd,_0x3d53c0,{'x':_0x3d53c0['x']+(_0x5c3a96['x']-_0x16f184['x'])/0x6,'y':_0x3d53c0['y']+(_0x5c3a96['y']-_0x16f184['y'])/0x6},{'x':_0x5c3a96['x']-(_0x410d20['x']-_0x3d53c0['x'])/0x6,'y':_0x5c3a96['y']-(_0x410d20['y']-_0x3d53c0['y'])/0x6},_0x5c3a96);}return _0x37eccd;}function fe(_0x1c6dba){const _0x259052=_0x1247;return _0x1c6dba[_0x259052(0x1fd)]===_0x259052(0x1d2)?U(_0x1c6dba):de(_0x1c6dba);}function W(_0x29f00a){const _0x4ea077=_0x1247;let _0x173a25=Math[_0x4ea077(0x1dd)](_0x29f00a*0x2710)/0x2710;return Object['is'](_0x173a25,-0x0)?0x0:_0x173a25;}function _0x5e32(){const _0x6b4596=['get','length','1.0.4','min','defineProperty','type','version','anchorId','norm','anchors','segmentIndex','opacity','height','_injector','object','_commandService','add','kind','start','UNIVER_UNKNOWN','onStarting','sqrt','max','__ink-preview-anchor__','join','symbol','endIndex','Rect','points','9772854ugicMH','_adapters','disposeWithMe','_config','map','free','anchor','ink.host-adapter.service','ink.config','3170100dmWcbD','fillColor','constructor','right','forEach','pluginName','@univerjs-pro/ink','Round','function','packageName','splice','iterator','out','831818YGeVfc','ratio','prototype','left','hypot','corner','filter','string','SolidFill','getOwnPropertyDescriptor','24FtfkoO','pointType','color','findIndex','default','2054105IMBKKN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','find','distance','closed','beginInkMode','6emhOSm','pen','8943147sEEyGH','startIndex','createCustomShape','createId','_configService','415744PpCgef','toPrimitive','registerAdapter','643728FfMiXI','setConfig','round','call','push','ink.operation.start','none','smooth','abs','indexOf','slice','NoFill','width','symmetric','tool','#f54a45','end'];_0x5e32=function(){return _0x6b4596;};return _0x5e32();}function _0x1247(_0x4ebae6,_0x51afc5){_0x4ebae6=_0x4ebae6-0x1ad;const _0x5e32d8=_0x5e32();let _0x12470c=_0x5e32d8[_0x4ebae6];return _0x12470c;}function G(_0x13fb34){const _0x4f0c20=_0x1247;let _0x107ea4=fe(_0x13fb34);if(_0x107ea4['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4cc750=Math['min'](..._0x107ea4['map'](_0x6619aa=>_0x6619aa['x'])),_0x17d386=Math[_0x4f0c20(0x1ef)](..._0x107ea4[_0x4f0c20(0x20d)](_0x4abcb4=>_0x4abcb4['y'])),_0x1b16b4=Math[_0x4f0c20(0x202)](..._0x107ea4['map'](_0x3f41d2=>_0x3f41d2['x'])),_0xcb32cd=Math[_0x4f0c20(0x202)](..._0x107ea4[_0x4f0c20(0x20d)](_0x59904e=>_0x59904e['y']));return{'left':W(_0x4cc750),'top':W(_0x17d386),'width':W(Math[_0x4f0c20(0x202)](0x1,_0x1b16b4-_0x4cc750)),'height':W(Math[_0x4f0c20(0x202)](0x1,_0xcb32cd-_0x17d386))};}function pe(_0x16ffbd,_0x506aca){const _0x4d1dfb=_0x1247;let _0x5b204c=_0x16ffbd[_0x4d1dfb(0x1f5)];if(_0x5b204c[_0x4d1dfb(0x1ed)]===0x0)return'';let _0x43588d=['M\x20'+R(z(_0x5b204c[0x0],_0x506aca))];for(let _0x3415d1=0x1;_0x3415d1<_0x5b204c[_0x4d1dfb(0x1ed)];_0x3415d1++){let _0x29b1a1=_0x5b204c[_0x3415d1-0x1],_0x3659ac=_0x5b204c[_0x3415d1],_0x4c30b2=_0x29b1a1[_0x4d1dfb(0x1bb)]??_0x29b1a1,_0x11f834=_0x3659ac['in']??_0x3659ac;_0x43588d[_0x4d1dfb(0x1df)]('C\x20'+R(z(_0x4c30b2,_0x506aca))+'\x20'+R(z(_0x11f834,_0x506aca))+'\x20'+R(z(_0x3659ac,_0x506aca)));}if(_0x16ffbd[_0x4d1dfb(0x1cf)]&&_0x5b204c[_0x4d1dfb(0x1ed)]>0x1){let _0xa4a418=_0x5b204c[_0x5b204c[_0x4d1dfb(0x1ed)]-0x1],_0xe0573=_0x5b204c[0x0],_0x182642=_0xa4a418[_0x4d1dfb(0x1bb)]??_0xa4a418,_0x4509b1=_0xe0573['in']??_0xe0573;_0x43588d[_0x4d1dfb(0x1df)]('C\x20'+R(z(_0x182642,_0x506aca))+'\x20'+R(z(_0x4509b1,_0x506aca))+'\x20'+R(z(_0xe0573,_0x506aca))),_0x43588d['push']('Z');}return _0x43588d[_0x4d1dfb(0x204)]('\x20');}function me(_0x17f697,_0x4a50af){const _0x58990b=_0x1247;let _0x33d50e=_0x17f697[_0x58990b(0x208)][_0x58990b(0x20d)](_0x506ddb=>z(_0x506ddb,_0x4a50af));if(_0x33d50e['length']===0x0)return'';if(_0x33d50e[_0x58990b(0x1ed)]===0x1)return'M\x20'+R(_0x33d50e[0x0]);let _0x10cc32=['M\x20'+R(_0x33d50e[0x0])];for(let _0x29251c=0x0;_0x29251c<_0x33d50e[_0x58990b(0x1ed)]-0x1;_0x29251c++){let _0x3a31be=_0x33d50e[_0x29251c],_0x4239cf=_0x33d50e[_0x29251c+0x1],_0x416d6b=_0x33d50e[_0x29251c-0x1]??_0x3a31be,_0x263443=_0x33d50e[_0x29251c+0x2]??_0x4239cf,_0x1c15da={'x':_0x3a31be['x']+(_0x4239cf['x']-_0x416d6b['x'])/0x6,'y':_0x3a31be['y']+(_0x4239cf['y']-_0x416d6b['y'])/0x6},_0x4b38de={'x':_0x4239cf['x']-(_0x263443['x']-_0x3a31be['x'])/0x6,'y':_0x4239cf['y']-(_0x263443['y']-_0x3a31be['y'])/0x6};_0x10cc32[_0x58990b(0x1df)]('C\x20'+R(_0x1c15da)+'\x20'+R(_0x4b38de)+'\x20'+R(_0x4239cf));}return _0x10cc32[_0x58990b(0x204)]('\x20');}function he(_0x45efc5,_0x1aa8e5){const _0x41ff42=_0x1247;return _0x45efc5['kind']===_0x41ff42(0x1d2)?pe(_0x45efc5,_0x1aa8e5):me(_0x45efc5,_0x1aa8e5);}function ge(_0x25df27,_0x127288){const _0x2449cc=_0x1247;return _0x127288!=null&&_0x127288[_0x2449cc(0x1c8)]?_0x127288['color']:_0x25df27[_0x2449cc(0x1fd)]===_0x2449cc(0x1d2)?_0x2449cc(0x1ea):_0x25df27[_0x2449cc(0x1c8)];}function _e(_0x2f7fd0,_0x55f884){const _0x189ca0=_0x1247;return(_0x55f884==null?void 0x0:_0x55f884['width'])===void 0x0?_0x2f7fd0[_0x189ca0(0x1fd)]===_0x189ca0(0x1d2)?0x2:_0x2f7fd0['width']:_0x55f884[_0x189ca0(0x1e7)];}function ve(_0x4b78e4,_0x1c9225){const _0x5c3791=_0x1247;return(_0x1c9225==null?void 0x0:_0x1c9225[_0x5c3791(0x1f7)])===void 0x0?_0x4b78e4[_0x5c3791(0x1fd)]===_0x5c3791(0x1d2)?void 0x0:_0x4b78e4['opacity']:_0x1c9225[_0x5c3791(0x1f7)];}function ye(_0x591fe8,_0x13d0ba){const _0x1e0b6d=_0x1247;let _0x35ec6c=G(_0x591fe8),_0x278053=he(_0x591fe8,{'x':_0x35ec6c[_0x1e0b6d(0x1bf)],'y':_0x35ec6c['top']}),_0x1c5fdc=_0x591fe8[_0x1e0b6d(0x1fd)]===_0x1e0b6d(0x1d2)&&_0x591fe8[_0x1e0b6d(0x1cf)],_0x16cf34=_0x13d0ba==null?void 0x0:_0x13d0ba[_0x1e0b6d(0x1b0)];return{'shapeType':_0x49cd1d[_0x1e0b6d(0x207)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x35ec6c['width'],'h':_0x35ec6c[_0x1e0b6d(0x1f8)],'fill':_0x1c5fdc?_0x1e0b6d(0x1f4):_0x1e0b6d(0x1e1),'stroke':!0x0,'data':_0x278053,'dataArray':be(_0x591fe8,{'x':_0x35ec6c[_0x1e0b6d(0x1bf)],'y':_0x35ec6c['top']})}]},'fill':_0x1c5fdc&&_0x16cf34?{'color':_0x16cf34,'fillType':_0x1ab911[_0x1e0b6d(0x1c4)]}:{'fillType':_0x1ab911[_0x1e0b6d(0x1e6)]},'stroke':{'color':ge(_0x591fe8,_0x13d0ba),'width':_e(_0x591fe8,_0x13d0ba),'opacity':ve(_0x591fe8,_0x13d0ba),'lineStrokeType':_0xb40238['SolidLine'],'capType':_0x52c57b[_0x1e0b6d(0x1b6)],'lineJoinType':_0x2ef3aa['Round']}};}function K(_0x25c047,_0x10945b){return{'x':_0x25c047['x']-_0x10945b['x'],'y':_0x25c047['y']-_0x10945b['y']};}function be(_0x49ae24,_0x3407d0){const _0x3f384c=_0x1247;if(_0x49ae24['kind']==='pen'){let _0x5af152=_0x49ae24[_0x3f384c(0x1f5)];if(_0x5af152[_0x3f384c(0x1ed)]===0x0)return[];let _0x3b818e=K(_0x5af152[0x0],_0x3407d0),_0x52062a=[{'command':'M','points':[_0x3b818e['x'],_0x3b818e['y']]}];for(let _0x189eb8=0x1;_0x189eb8<_0x5af152['length'];_0x189eb8++){let _0x41ff1b=_0x5af152[_0x189eb8-0x1],_0x4a50ee=_0x5af152[_0x189eb8],_0xbd7825=K(_0x41ff1b[_0x3f384c(0x1bb)]??_0x41ff1b,_0x3407d0),_0x266250=K(_0x4a50ee['in']??_0x4a50ee,_0x3407d0),_0x36b690=K(_0x4a50ee,_0x3407d0);_0x52062a['push']({'command':'C','points':[_0xbd7825['x'],_0xbd7825['y'],_0x266250['x'],_0x266250['y'],_0x36b690['x'],_0x36b690['y']]});}if(_0x49ae24[_0x3f384c(0x1cf)]&&_0x5af152[_0x3f384c(0x1ed)]>0x1){let _0x12bc0a=_0x5af152[_0x5af152['length']-0x1],_0x261cde=_0x5af152[0x0],_0x173658=K(_0x12bc0a['out']??_0x12bc0a,_0x3407d0),_0x3eb37e=K(_0x261cde['in']??_0x261cde,_0x3407d0),_0x5e4df2=K(_0x261cde,_0x3407d0);_0x52062a[_0x3f384c(0x1df)]({'command':'C','points':[_0x173658['x'],_0x173658['y'],_0x3eb37e['x'],_0x3eb37e['y'],_0x5e4df2['x'],_0x5e4df2['y']]}),_0x52062a[_0x3f384c(0x1df)]({'command':'z','points':[]});}return _0x52062a;}let _0x447ab4=_0x49ae24['points'][_0x3f384c(0x20d)](_0x3b9559=>K(_0x3b9559,_0x3407d0));if(_0x447ab4[_0x3f384c(0x1ed)]===0x0)return[];let _0x51a118=[{'command':'M','points':[_0x447ab4[0x0]['x'],_0x447ab4[0x0]['y']]}];for(let _0x1064e5=0x0;_0x1064e5<_0x447ab4['length']-0x1;_0x1064e5++){let _0x8547f7=_0x447ab4[_0x1064e5],_0x1ac900=_0x447ab4[_0x1064e5+0x1],_0x397300=_0x447ab4[_0x1064e5-0x1]??_0x8547f7,_0x25d6aa=_0x447ab4[_0x1064e5+0x2]??_0x1ac900,_0x120c79={'x':_0x8547f7['x']+(_0x1ac900['x']-_0x397300['x'])/0x6,'y':_0x8547f7['y']+(_0x1ac900['y']-_0x397300['y'])/0x6},_0x4a3ce1={'x':_0x1ac900['x']-(_0x25d6aa['x']-_0x8547f7['x'])/0x6,'y':_0x1ac900['y']-(_0x25d6aa['y']-_0x8547f7['y'])/0x6};_0x51a118[_0x3f384c(0x1df)]({'command':'C','points':[_0x120c79['x'],_0x120c79['y'],_0x4a3ce1['x'],_0x4a3ce1['y'],_0x1ac900['x'],_0x1ac900['y']]});}return _0x51a118;}function xe(_0x135e67){const _0x2240d5=_0x1247;let {model:_0x4a3419,sourceModel:_0x40ffa6=_0x4a3419,style:_0x27821f}=_0x135e67,_0x5b67e1=_0x135e67[_0x2240d5(0x1e9)]??_0x4a3419['kind'],_0x135f65=G(_0x4a3419),_0x1a8056=_0x4a3419[_0x2240d5(0x1fd)]===_0x2240d5(0x1d2)&&_0x5b67e1!=='pen'?_0x4a3419:void 0x0;return{'transform':{..._0x135f65,'rotation':0x0},'shapeData':ye(_0x4a3419,_0x27821f),'ink':{'version':0x1,'tool':_0x5b67e1,'sourceModel':_0x40ffa6,..._0x1a8056?{'editModel':_0x1a8056}:{},'normalizedBounds':_0x135f65}};}var Se=_0x4d5c9d(0x1b5),Ce=_0x4d5c9d(0x1ee);function q(_0x523eb3){'@babel/helpers - typeof';const _0x3aef37=_0x4d5c9d;return q=typeof Symbol==_0x3aef37(0x1b7)&&typeof Symbol[_0x3aef37(0x1ba)]==_0x3aef37(0x205)?function(_0x59cb69){return typeof _0x59cb69;}:function(_0x38333e){const _0x2ec18e=_0x3aef37;return _0x38333e&&typeof Symbol==_0x2ec18e(0x1b7)&&_0x38333e[_0x2ec18e(0x1b1)]===Symbol&&_0x38333e!==Symbol[_0x2ec18e(0x1be)]?'symbol':typeof _0x38333e;},q(_0x523eb3);}function we(_0x516bd9,_0x4c917f){const _0x42dce3=_0x4d5c9d;if(q(_0x516bd9)!=_0x42dce3(0x1fa)||!_0x516bd9)return _0x516bd9;var _0x5cb0d1=_0x516bd9[Symbol[_0x42dce3(0x1d9)]];if(_0x5cb0d1!==void 0x0){var _0x155937=_0x5cb0d1[_0x42dce3(0x1de)](_0x516bd9,_0x4c917f||_0x42dce3(0x1ca));if(q(_0x155937)!=_0x42dce3(0x1fa))return _0x155937;throw TypeError(_0x42dce3(0x1cc));}return(_0x4c917f===_0x42dce3(0x1c3)?String:Number)(_0x516bd9);}function J(_0x316c5b){const _0x934e81=_0x4d5c9d;var _0x11ab0c=we(_0x316c5b,_0x934e81(0x1c3));return q(_0x11ab0c)==_0x934e81(0x205)?_0x11ab0c:_0x11ab0c+'';}function Y(_0x1292fa,_0x169b40,_0xfb5be2){const _0x1573ed=_0x4d5c9d;return(_0x169b40=J(_0x169b40))in _0x1292fa?Object[_0x1573ed(0x1f0)](_0x1292fa,_0x169b40,{'value':_0xfb5be2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1292fa[_0x169b40]=_0xfb5be2,_0x1292fa;}const X=_0x5f2cbd(_0x4d5c9d(0x1ad));var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x4d5c9d(0x1da)](_0x9beaca){const _0x1fb571=_0x4d5c9d;return this[_0x1fb571(0x20a)][_0x1fb571(0x1df)](_0x9beaca),_0x5a5fba(()=>{const _0x64f852=_0x1fb571;let _0x17feb0=this[_0x64f852(0x20a)][_0x64f852(0x1e4)](_0x9beaca);_0x17feb0>=0x0&&this[_0x64f852(0x20a)][_0x64f852(0x1b9)](_0x17feb0,0x1);});}[_0x4d5c9d(0x1d0)](_0x1097ce){const _0x5c3a86=_0x4d5c9d;for(let _0x5e03b5 of this[_0x5c3a86(0x20a)])if(_0x5e03b5[_0x5c3a86(0x1d0)](_0x1097ce))return!0x0;return!0x1;}async[_0x4d5c9d(0x1d5)](_0x55619c){const _0x574625=_0x4d5c9d;for(let _0x570e6a of this['_adapters'])if(_0x570e6a['createCustomShape']&&await _0x570e6a[_0x574625(0x1d5)](_0x55619c))return!0x0;return!0x1;}};const Ee={'id':_0x4d5c9d(0x1e0),'type':_0x274185['OPERATION'],'handler':(_0x90e071,_0x25aab6)=>_0x25aab6?_0x90e071[_0x4d5c9d(0x1ec)](X)[_0x4d5c9d(0x1d0)](_0x25aab6):!0x1},Z={};function Q(_0x52643a,_0x30049b){return function(_0x3b837a,_0x44a9c6){_0x30049b(_0x3b837a,_0x44a9c6,_0x52643a);};}function De(_0x4c0535,_0x124e26,_0xdab5cd,_0x1b4623){const _0x4c4ad1=_0x4d5c9d;var _0x124e17=arguments[_0x4c4ad1(0x1ed)],_0x249b66=_0x124e17<0x3?_0x124e26:_0x1b4623===null?_0x1b4623=Object[_0x4c4ad1(0x1c5)](_0x124e26,_0xdab5cd):_0x1b4623,_0x15ca01;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x4c4ad1(0x1b7))_0x249b66=Reflect['decorate'](_0x4c0535,_0x124e26,_0xdab5cd,_0x1b4623);else{for(var _0x52ba24=_0x4c0535[_0x4c4ad1(0x1ed)]-0x1;_0x52ba24>=0x0;_0x52ba24--)(_0x15ca01=_0x4c0535[_0x52ba24])&&(_0x249b66=(_0x124e17<0x3?_0x15ca01(_0x249b66):_0x124e17>0x3?_0x15ca01(_0x124e26,_0xdab5cd,_0x249b66):_0x15ca01(_0x124e26,_0xdab5cd))||_0x249b66);}return _0x124e17>0x3&&_0x249b66&&Object[_0x4c4ad1(0x1f0)](_0x124e26,_0xdab5cd,_0x249b66),_0x249b66;}let $=class extends _0xd72275{constructor(_0x4e0fcd=Z,_0x4e9818,_0x212146,_0xde7c23){const _0xbcdfba=_0x4d5c9d;super(),this[_0xbcdfba(0x20c)]=_0x4e0fcd,this[_0xbcdfba(0x1f9)]=_0x4e9818,this[_0xbcdfba(0x1fb)]=_0x212146,this[_0xbcdfba(0x1d7)]=_0xde7c23;let {..._0x547ea9}=_0xe94c79({},Z,this[_0xbcdfba(0x20c)]);this[_0xbcdfba(0x1d7)][_0xbcdfba(0x1dc)](_0xbcdfba(0x1ae),_0x547ea9);}[_0x4d5c9d(0x200)](){const _0x4fcce1=_0x4d5c9d;[[X,{'useClass':Te}]]['forEach'](_0x5b972f=>this[_0x4fcce1(0x1f9)][_0x4fcce1(0x1fc)](_0x5b972f)),this[_0x4fcce1(0x20b)](this['_commandService']['registerCommand'](Ee));}};Y($,_0x4d5c9d(0x1b4),'UNIVER_INK_PLUGIN'),Y($,_0x4d5c9d(0x1b8),Se),Y($,_0x4d5c9d(0x1f2),Ce),Y($,_0x4d5c9d(0x1f1),_0x5eeb86[_0x4d5c9d(0x1ff)]),$=De([_0x2f0a1b(_0x57a878),Q(0x1,_0x304ec7(_0x404c68)),Q(0x2,_0x18c36a),Q(0x3,_0x4e83c9)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
|
|
1
|
+
const _0x43396f=_0x5b63;(function(_0x4c39c7,_0xda322d){const _0x232cbc=_0x5b63,_0x2be235=_0x4c39c7();while(!![]){try{const _0x28d0f5=-parseInt(_0x232cbc(0x1b5))/0x1+parseInt(_0x232cbc(0x1ab))/0x2*(-parseInt(_0x232cbc(0x1cb))/0x3)+-parseInt(_0x232cbc(0x1df))/0x4*(-parseInt(_0x232cbc(0x19c))/0x5)+-parseInt(_0x232cbc(0x1cc))/0x6*(-parseInt(_0x232cbc(0x1c4))/0x7)+-parseInt(_0x232cbc(0x1b7))/0x8*(-parseInt(_0x232cbc(0x1c7))/0x9)+-parseInt(_0x232cbc(0x1e7))/0xa*(-parseInt(_0x232cbc(0x1d0))/0xb)+-parseInt(_0x232cbc(0x1c9))/0xc;if(_0x28d0f5===_0xda322d)break;else _0x2be235['push'](_0x2be235['shift']());}catch(_0xa02555){_0x2be235['push'](_0x2be235['shift']());}}}(_0x2e72,0x2f376));import{ShapeFillEnum as _0x1415aa,ShapeLineCapEnum as _0x470397,ShapeLineJoinEnum as _0x34e189,ShapeLineTypeEnum as _0x2148f9,ShapeTypeEnum as _0x46da06}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x5cf441}from'@univerjs-pro/license';import{CommandType as _0x291e91,DependentOn as _0x40586b,ICommandService as _0x1fafaa,IConfigService as _0x214ca1,Inject as _0x4a0035,Injector as _0x5e60e7,Plugin as _0x23a329,UniverInstanceType as _0x4b2236,createIdentifier as _0x3acfc4,merge as _0x488fc2,toDisposable as _0x5c9d22}from'@univerjs/core';const g=0.0001;function _(_0x4ec654){return{'x':_0x4ec654['x'],'y':_0x4ec654['y']};}function v(_0x29d4c8){const _0x1144ff=_0x5b63;return{..._0x29d4c8,'in':_0x29d4c8['in']?_(_0x29d4c8['in']):void 0x0,'out':_0x29d4c8[_0x1144ff(0x1e5)]?_(_0x29d4c8[_0x1144ff(0x1e5)]):void 0x0};}function y(_0x975f0){const _0x549241=_0x5b63;return{'kind':_0x549241(0x1dc),'closed':_0x975f0['closed'],'anchors':_0x975f0[_0x549241(0x1f0)][_0x549241(0x196)](v)};}function b(_0x47445f,_0x552e91,_0x45e702){return{'x':_0x47445f['x']+(_0x552e91['x']-_0x47445f['x'])*_0x45e702,'y':_0x47445f['y']+(_0x552e91['y']-_0x47445f['y'])*_0x45e702};}function x(_0x4239f2,_0x2e359c){const _0x3d644b=_0x5b63;return Math[_0x3d644b(0x1ca)](_0x4239f2['x']-_0x2e359c['x'],_0x4239f2['y']-_0x2e359c['y']);}function S(_0x4e1cc6){let _0x47a728=Math['hypot'](_0x4e1cc6['x'],_0x4e1cc6['y']);return _0x47a728<g?{'x':0x1,'y':0x0}:{'x':_0x4e1cc6['x']/_0x47a728,'y':_0x4e1cc6['y']/_0x47a728};}function C(_0x2c4165,_0x7cf372,_0x1a625b=x(_0x2c4165,_0x7cf372)){let _0x42174e=S({'x':_0x2c4165['x']-_0x7cf372['x'],'y':_0x2c4165['y']-_0x7cf372['y']});return{'x':_0x2c4165['x']+_0x42174e['x']*_0x1a625b,'y':_0x2c4165['y']+_0x42174e['y']*_0x1a625b};}function w(_0x361a5c,_0x4153ef){const _0x2af2f7=_0x5b63;let {anchors:_0x31dbbe}=_0x361a5c;return _0x31dbbe[_0x2af2f7(0x1ad)]<0x2||_0x4153ef<0x0?null:_0x4153ef<_0x31dbbe[_0x2af2f7(0x1ad)]-0x1?{'startIndex':_0x4153ef,'endIndex':_0x4153ef+0x1,'start':_0x31dbbe[_0x4153ef],'end':_0x31dbbe[_0x4153ef+0x1]}:_0x361a5c['closed']&&_0x4153ef===_0x31dbbe[_0x2af2f7(0x1ad)]-0x1?{'startIndex':_0x31dbbe[_0x2af2f7(0x1ad)]-0x1,'endIndex':0x0,'start':_0x31dbbe[_0x31dbbe[_0x2af2f7(0x1ad)]-0x1],'end':_0x31dbbe[0x0]}:null;}function T(_0x4ee2f4,_0x269f1a){const _0x49dacf=_0x5b63;let _0x4b740a=w(_0x4ee2f4,_0x269f1a);return _0x4b740a?[_0x4b740a['start'],_0x4b740a['start'][_0x49dacf(0x1e5)]??_0x4b740a[_0x49dacf(0x1c6)],_0x4b740a['end']['in']??_0x4b740a[_0x49dacf(0x1b6)],_0x4b740a[_0x49dacf(0x1b6)]]:null;}function te(_0x2dd2df,_0x1aad87){const _0x31a03d=_0x5b63;return _0x1aad87===_0x31a03d(0x1ee)?_0x2dd2df:_0x2dd2df[_0x1aad87]??null;}function E(_0x186b29,_0x3c5daf,_0x64e68){const _0x3a9a78=_0x5b63;return _0x64e68===_0x3a9a78(0x1ee)||_0x186b29[_0x3a9a78(0x192)]?!0x0:_0x64e68==='in'?_0x3c5daf>0x0:_0x3c5daf<_0x186b29[_0x3a9a78(0x1f0)][_0x3a9a78(0x1ad)]-0x1;}function D(_0x3aa310,_0x5cce6e){let [_0x507bf3,_0x212d02,_0x1750a1,_0x1098c2]=_0x3aa310,_0x171bae=b(_0x507bf3,_0x212d02,_0x5cce6e),_0x29cd81=b(_0x212d02,_0x1750a1,_0x5cce6e),_0x5ba6b4=b(_0x1750a1,_0x1098c2,_0x5cce6e);return b(b(_0x171bae,_0x29cd81,_0x5cce6e),b(_0x29cd81,_0x5ba6b4,_0x5cce6e),_0x5cce6e);}function ne(_0x425162,_0x9db1fc){let [_0x3cb3eb,_0x345d80,_0xff87cb,_0x35154e]=_0x425162,_0xfa8fd1=b(_0x3cb3eb,_0x345d80,_0x9db1fc),_0x2835e3=b(_0x345d80,_0xff87cb,_0x9db1fc),_0x1a8089=b(_0xff87cb,_0x35154e,_0x9db1fc),_0x2c73b4=b(_0xfa8fd1,_0x2835e3,_0x9db1fc),_0x51e7f5=b(_0x2835e3,_0x1a8089,_0x9db1fc),_0x3d8224=b(_0x2c73b4,_0x51e7f5,_0x9db1fc);return{'left':[_0x3cb3eb,_0xfa8fd1,_0x2c73b4,_0x3d8224],'right':[_0x3d8224,_0x51e7f5,_0x1a8089,_0x35154e]};}function O(_0x1da999,_0x3e50b8,_0x5d2a6f){const _0x422541=_0x5b63;let _0x1efa5c=_0x5d2a6f['x']-_0x3e50b8['x'],_0x4fccbc=_0x5d2a6f['y']-_0x3e50b8['y'],_0x2e2b47=_0x1efa5c*_0x1efa5c+_0x4fccbc*_0x4fccbc,_0x4491ea=_0x2e2b47<=g?0x0:Math[_0x422541(0x1c5)](0x0,Math[_0x422541(0x1de)](0x1,((_0x1da999['x']-_0x3e50b8['x'])*_0x1efa5c+(_0x1da999['y']-_0x3e50b8['y'])*_0x4fccbc)/_0x2e2b47)),_0x465e22={'x':_0x3e50b8['x']+_0x1efa5c*_0x4491ea,'y':_0x3e50b8['y']+_0x4fccbc*_0x4491ea};return{'point':_0x465e22,'ratio':_0x4491ea,'distance':x(_0x1da999,_0x465e22)};}function re(_0x3cff44,_0x1d2224,_0x12ee58){const _0x20d29b=_0x5b63;return O(_0x3cff44,_0x1d2224,_0x12ee58)[_0x20d29b(0x1a2)]**0x2;}function k(_0x138460,_0x2d1853){const _0x2c2f3f=_0x5b63;if(_0x138460[_0x2c2f3f(0x1ad)]<=0x2)return _0x138460['map'](_);let _0x3e1b2d=0x0,_0x14b18e=0x0,_0x5eeb76=_0x138460[0x0],_0x1bbf4b=_0x138460[_0x138460[_0x2c2f3f(0x1ad)]-0x1],_0x3923c9=_0x2d1853*_0x2d1853;for(let _0x231204=0x1;_0x231204<_0x138460['length']-0x1;_0x231204++){let _0x4d01a6=re(_0x138460[_0x231204],_0x5eeb76,_0x1bbf4b);_0x4d01a6>_0x3e1b2d&&(_0x3e1b2d=_0x4d01a6,_0x14b18e=_0x231204);}if(_0x3e1b2d<=_0x3923c9)return[_(_0x5eeb76),_(_0x1bbf4b)];let _0x3eda5c=k(_0x138460[_0x2c2f3f(0x1ac)](0x0,_0x14b18e+0x1),_0x2d1853),_0xa5f11a=k(_0x138460[_0x2c2f3f(0x1ac)](_0x14b18e),_0x2d1853);return[..._0x3eda5c['slice'](0x0,-0x1),..._0xa5f11a];}function ie(_0x1b7adf,_0x2f2ada){let _0x3b78b5=_0x1b7adf[_0x2f2ada],_0x35f91b=_0x1b7adf[_0x2f2ada+0x1],_0x4a7258=_0x1b7adf[_0x2f2ada-0x1]??_0x3b78b5;return{'x':_0x3b78b5['x']+(_0x35f91b['x']-_0x4a7258['x'])/0x6,'y':_0x3b78b5['y']+(_0x35f91b['y']-_0x4a7258['y'])/0x6};}function A(_0x2a4cb0,_0x3f14ca){let _0x40aaf7=_0x2a4cb0[_0x3f14ca],_0x4de17b=_0x2a4cb0[_0x3f14ca-0x1],_0x35921f=_0x2a4cb0[_0x3f14ca+0x1]??_0x40aaf7;return{'x':_0x40aaf7['x']-(_0x35921f['x']-_0x4de17b['x'])/0x6,'y':_0x40aaf7['y']-(_0x35921f['y']-_0x4de17b['y'])/0x6};}function j(_0x408c38,_0x50395c){const _0x5e790e=_0x5b63;let _0x52d51b=_0x408c38['anchors'][_0x50395c],_0x5f4790=_0x408c38[_0x5e790e(0x1f0)][_0x50395c-0x1]??(_0x408c38[_0x5e790e(0x192)]?_0x408c38['anchors'][_0x408c38[_0x5e790e(0x1f0)][_0x5e790e(0x1ad)]-0x1]:null),_0x70b51c=_0x408c38[_0x5e790e(0x1f0)][_0x50395c+0x1]??(_0x408c38[_0x5e790e(0x192)]?_0x408c38[_0x5e790e(0x1f0)][0x0]:null),_0x3dd1b7=_0x5f4790&&_0x70b51c?S({'x':_0x70b51c['x']-_0x5f4790['x'],'y':_0x70b51c['y']-_0x5f4790['y']}):_0x70b51c?S({'x':_0x70b51c['x']-_0x52d51b['x'],'y':_0x70b51c['y']-_0x52d51b['y']}):_0x5f4790?S({'x':_0x52d51b['x']-_0x5f4790['x'],'y':_0x52d51b['y']-_0x5f4790['y']}):{'x':0x1,'y':0x0},_0x39e097=_0x5f4790&&_0x70b51c?Math[_0x5e790e(0x1c5)](0x32,x(_0x5f4790,_0x70b51c)/0x4):0x32;return{'in':{'x':_0x52d51b['x']-_0x3dd1b7['x']*_0x39e097,'y':_0x52d51b['y']-_0x3dd1b7['y']*_0x39e097},'out':{'x':_0x52d51b['x']+_0x3dd1b7['x']*_0x39e097,'y':_0x52d51b['y']+_0x3dd1b7['y']*_0x39e097}};}function M(_0xde4f53,_0x543632){const _0x211b55=_0x5b63;let _0x3bbe5a=_0xde4f53[_0x543632],_0x436761=_0x543632==='in'?'out':'in',_0x2577be=_0xde4f53[_0x436761];_0x3bbe5a&&(_0xde4f53[_0x211b55(0x1ba)]===_0x211b55(0x1da)?_0xde4f53[_0x436761]=C(_0xde4f53,_0x3bbe5a):_0xde4f53[_0x211b55(0x1ba)]===_0x211b55(0x1a6)&&(_0xde4f53[_0x436761]=C(_0xde4f53,_0x3bbe5a,_0x2577be?x(_0xde4f53,_0x2577be):x(_0xde4f53,_0x3bbe5a))));}function ae(_0x361f78,_0x4b0a66){const _0x3e0528=_0x5b63;let _0x21564a=y(_0x361f78);return!_0x4b0a66||_0x21564a[_0x3e0528(0x192)]||_0x21564a[_0x3e0528(0x1f0)][_0x3e0528(0x1ad)]===0x0||_0x21564a[_0x3e0528(0x1f0)][_0x3e0528(0x199)]({'id':_0x3e0528(0x1e9),'x':_0x4b0a66['x'],'y':_0x4b0a66['y'],'pointType':_0x3e0528(0x1c8)}),_0x21564a;}function oe(_0x171597,_0x23ad12={}){const _0x585999=_0x5b63;let _0x33fb6a=Math[_0x585999(0x1c5)](0x0,_0x23ad12['tolerance']??Math['max'](0x4,_0x171597[_0x585999(0x1c3)]*0.35)),_0xa8f2a6=_0x23ad12[_0x585999(0x1a8)]??(_0x10e982=>'ink-centerline-'+_0x10e982),_0x2b86f1=k(_0x171597[_0x585999(0x195)],_0x33fb6a),_0x5406e1=_0x2b86f1['map']((_0x28bbfa,_0x2ff424)=>({'id':_0xa8f2a6(_0x2ff424),'x':_0x28bbfa['x'],'y':_0x28bbfa['y'],'pointType':_0x585999(0x1ea)}));for(let _0x235b0d=0x0;_0x235b0d<_0x5406e1[_0x585999(0x1ad)]-0x1;_0x235b0d++)_0x5406e1[_0x235b0d][_0x585999(0x1e5)]=ie(_0x2b86f1,_0x235b0d),_0x5406e1[_0x235b0d+0x1]['in']=A(_0x2b86f1,_0x235b0d+0x1);return{'kind':_0x585999(0x1dc),'closed':!0x1,'anchors':_0x5406e1};}function se(_0x58fda9,_0x4d3928,_0x51dcbb){const _0x17c666=_0x5b63;let _0x44aca8=null,_0x5bc17b=[_0x17c666(0x1ee),'in',_0x17c666(0x1e5)];return _0x58fda9[_0x17c666(0x1f0)][_0x17c666(0x19e)]((_0x360f6a,_0x42da95)=>{const _0x15339=_0x17c666;_0x5bc17b[_0x15339(0x19e)](_0x55de48=>{const _0x1beed8=_0x15339;if(!E(_0x58fda9,_0x42da95,_0x55de48))return;let _0x4799f3=te(_0x360f6a,_0x55de48);if(!_0x4799f3)return;let _0x1dfcb1=x(_0x4d3928,_0x4799f3);_0x1dfcb1>_0x51dcbb||_0x44aca8&&_0x1dfcb1>=_0x44aca8[_0x1beed8(0x1a2)]||(_0x44aca8={'handle':{'kind':_0x55de48,'anchorId':_0x360f6a['id']},'point':_(_0x4799f3),'distance':_0x1dfcb1});});}),_0x44aca8;}function ce(_0x25c6f9,_0x936968,_0x217cd5){const _0x162939=_0x5b63;let _0x300196=null,_0x3b5600=_0x25c6f9[_0x162939(0x192)]?_0x25c6f9[_0x162939(0x1f0)]['length']:Math['max'](0x0,_0x25c6f9['anchors']['length']-0x1);for(let _0xdd6ac4=0x0;_0xdd6ac4<_0x3b5600;_0xdd6ac4++){let _0x513128=T(_0x25c6f9,_0xdd6ac4);if(!_0x513128)continue;let _0x3fa3d0=D(_0x513128,0x0);for(let _0x21494c=0x1;_0x21494c<=0x20;_0x21494c++){let _0x5a1a35=D(_0x513128,_0x21494c/0x20),_0x3ea94b=O(_0x936968,_0x3fa3d0,_0x5a1a35),_0xbd4031=(_0x21494c-0x1+_0x3ea94b['ratio'])/0x20;(!_0x300196||_0x3ea94b[_0x162939(0x1a2)]<_0x300196['distance'])&&(_0x300196={'segmentIndex':_0xdd6ac4,'t':_0xbd4031,'point':_0x3ea94b[_0x162939(0x1e0)],'distance':_0x3ea94b[_0x162939(0x1a2)]}),_0x3fa3d0=_0x5a1a35;}}return _0x300196&&_0x300196[_0x162939(0x1a2)]<=_0x217cd5?_0x300196:null;}function le(_0x617879,_0x40d83e,_0x1830be){const _0x465052=_0x5b63;let _0xe7e6a2=y(_0x617879),_0x19456e=w(_0xe7e6a2,_0x40d83e['segmentIndex']),_0x3d2114=T(_0xe7e6a2,_0x40d83e[_0x465052(0x1af)]);if(!_0x19456e||!_0x3d2114)return _0xe7e6a2;let _0xf3e387=ne(_0x3d2114,Math['max'](0x0,Math['min'](0x1,_0x40d83e['t']))),_0x52463f={'id':_0x1830be(),'x':_0xf3e387[_0x465052(0x1ce)][0x3]['x'],'y':_0xf3e387[_0x465052(0x1ce)][0x3]['y'],'in':_(_0xf3e387[_0x465052(0x1ce)][0x2]),'out':_(_0xf3e387[_0x465052(0x1d4)][0x1]),'pointType':_0x465052(0x1ea)};return _0xe7e6a2[_0x465052(0x1f0)][_0x19456e[_0x465052(0x1d1)]][_0x465052(0x1e5)]=_(_0xf3e387['left'][0x1]),_0xe7e6a2['anchors'][_0x19456e[_0x465052(0x1cf)]]['in']=_(_0xf3e387[_0x465052(0x1d4)][0x2]),_0xe7e6a2[_0x465052(0x1f0)]['splice'](_0x19456e[_0x465052(0x1d1)]+0x1,0x0,_0x52463f),_0xe7e6a2;}function ue(_0x2a5859,_0x214708){const _0x30fadd=_0x5b63;let _0x4b1f8d=y(_0x2a5859);return _0x4b1f8d['anchors']=_0x4b1f8d[_0x30fadd(0x1f0)]['filter'](_0x31d649=>_0x31d649['id']!==_0x214708),_0x4b1f8d['closed']&&_0x4b1f8d[_0x30fadd(0x1f0)][_0x30fadd(0x1ad)]<0x3&&(_0x4b1f8d[_0x30fadd(0x192)]=!0x1),_0x4b1f8d;}function _0x5b63(_0x5d7baa,_0xe0f7b1){_0x5d7baa=_0x5d7baa-0x192;const _0x2e7274=_0x2e72();let _0x5b6305=_0x2e7274[_0x5d7baa];return _0x5b6305;}function N(_0x4e91ce,_0x29da09,_0x56f6d4){const _0xcef981=_0x5b63;let _0x1580e8=y(_0x4e91ce),_0x46fe69=_0x1580e8[_0xcef981(0x1f0)][_0xcef981(0x1cd)](_0x13e044=>_0x13e044['id']===_0x29da09),_0x437eac=_0x1580e8[_0xcef981(0x1f0)][_0x46fe69];if(!_0x437eac)return _0x1580e8;if(_0x437eac[_0xcef981(0x1ba)]=_0x56f6d4,_0x56f6d4==='corner')return delete _0x437eac['in'],delete _0x437eac[_0xcef981(0x1e5)],_0x1580e8;let _0x516e33=j(_0x1580e8,_0x46fe69);if(_0x437eac['in']=_0x437eac['in']?_(_0x437eac['in']):_0x516e33['in'],_0x437eac[_0xcef981(0x1e5)]=_0x437eac[_0xcef981(0x1e5)]?_(_0x437eac[_0xcef981(0x1e5)]):_0x516e33[_0xcef981(0x1e5)],_0x56f6d4===_0xcef981(0x1da)){let _0x1e4ec2=Math[_0xcef981(0x1c5)](x(_0x437eac,_0x437eac['in']),x(_0x437eac,_0x437eac[_0xcef981(0x1e5)]),0x32),_0x55293d=S({'x':_0x437eac[_0xcef981(0x1e5)]['x']-_0x437eac['x'],'y':_0x437eac[_0xcef981(0x1e5)]['y']-_0x437eac['y']});_0x437eac['out']={'x':_0x437eac['x']+_0x55293d['x']*_0x1e4ec2,'y':_0x437eac['y']+_0x55293d['y']*_0x1e4ec2},_0x437eac['in']={'x':_0x437eac['x']-_0x55293d['x']*_0x1e4ec2,'y':_0x437eac['y']-_0x55293d['y']*_0x1e4ec2};}else _0x56f6d4==='smooth'&&M(_0x437eac,_0xcef981(0x1e5));return _0x1580e8;}function P(_0x3b045a,_0xcdb09e){const _0x45f1ba=_0x5b63;let _0x1ec69d=_0x3b045a[_0x45f1ba(0x1f0)][_0x45f1ba(0x1b9)](_0x2a6b10=>_0x2a6b10['id']===_0xcdb09e),_0x3862a2=(_0x1ec69d==null?void 0x0:_0x1ec69d[_0x45f1ba(0x1ba)])??_0x45f1ba(0x1c8);return N(_0x3b045a,_0xcdb09e,_0x3862a2==='corner'?_0x45f1ba(0x1a6):_0x3862a2===_0x45f1ba(0x1a6)?_0x45f1ba(0x1da):_0x3862a2===_0x45f1ba(0x1da)?_0x45f1ba(0x1ea):_0x45f1ba(0x1c8));}function F(_0x1740c2,_0x2c61fc,_0x14584b){const _0x434dbc=_0x5b63;let _0x241490=y(_0x1740c2),_0x3909a8=_0x241490['anchors']['find'](_0x3caa35=>_0x3caa35['id']===_0x2c61fc['anchorId']);if(!_0x3909a8)return _0x241490;if(_0x2c61fc[_0x434dbc(0x1b4)]===_0x434dbc(0x1ee)){let _0x592235={'x':_0x14584b['x']-_0x3909a8['x'],'y':_0x14584b['y']-_0x3909a8['y']};return _0x3909a8['x']=_0x14584b['x'],_0x3909a8['y']=_0x14584b['y'],_0x3909a8['in']&&={'x':_0x3909a8['in']['x']+_0x592235['x'],'y':_0x3909a8['in']['y']+_0x592235['y']},_0x3909a8[_0x434dbc(0x1e5)]&&={'x':_0x3909a8[_0x434dbc(0x1e5)]['x']+_0x592235['x'],'y':_0x3909a8['out']['y']+_0x592235['y']},_0x241490;}return _0x3909a8[_0x2c61fc[_0x434dbc(0x1b4)]]=_(_0x14584b),_0x3909a8[_0x434dbc(0x1ba)]===_0x434dbc(0x1c8)&&(_0x3909a8[_0x434dbc(0x1ba)]=_0x434dbc(0x1ea)),M(_0x3909a8,_0x2c61fc[_0x434dbc(0x1b4)]),_0x241490;}const I=1e-9;function L(_0x1af70c){const _0x3fe7f2=_0x5b63;let _0x5dd935=Math[_0x3fe7f2(0x197)](_0x1af70c*0x2710)/0x2710;return Object['is'](_0x5dd935,-0x0)?'0':String(_0x5dd935);}function R(_0x38220b){return L(_0x38220b['x'])+'\x20'+L(_0x38220b['y']);}function z(_0x30ce80,_0x175b51){return{'x':_0x30ce80['x']-_0x175b51['x'],'y':_0x30ce80['y']-_0x175b51['y']};}function B(_0x4b816f,_0x3915b3,_0x5c78b8,_0x17cfe7,_0x1816ec){let _0x56581d=0x1-_0x1816ec;return{'x':_0x56581d*_0x56581d*_0x56581d*_0x4b816f['x']+0x3*_0x56581d*_0x56581d*_0x1816ec*_0x3915b3['x']+0x3*_0x56581d*_0x1816ec*_0x1816ec*_0x5c78b8['x']+_0x1816ec*_0x1816ec*_0x1816ec*_0x17cfe7['x'],'y':_0x56581d*_0x56581d*_0x56581d*_0x4b816f['y']+0x3*_0x56581d*_0x56581d*_0x1816ec*_0x3915b3['y']+0x3*_0x56581d*_0x1816ec*_0x1816ec*_0x5c78b8['y']+_0x1816ec*_0x1816ec*_0x1816ec*_0x17cfe7['y']};}function V(_0x18e54d,_0x5813d1,_0x545969,_0x32312c){const _0x41c53f=_0x5b63;let _0x4b9f73=-_0x18e54d+0x3*_0x5813d1-0x3*_0x545969+_0x32312c,_0x14e391=0x3*_0x18e54d-0x6*_0x5813d1+0x3*_0x545969,_0x39476b=-0x3*_0x18e54d+0x3*_0x5813d1,_0x466e48=[];if(Math[_0x41c53f(0x1ef)](_0x4b9f73)<I){if(Math[_0x41c53f(0x1ef)](_0x14e391)<I)return _0x466e48;let _0x47b5c2=-_0x39476b/(0x2*_0x14e391);return _0x47b5c2>0x0&&_0x47b5c2<0x1&&_0x466e48[_0x41c53f(0x199)](_0x47b5c2),_0x466e48;}let _0x4691fd=_0x14e391*_0x14e391-0x3*_0x4b9f73*_0x39476b;if(_0x4691fd<0x0)return _0x466e48;let _0x567805=Math[_0x41c53f(0x1eb)](Math[_0x41c53f(0x1c5)](0x0,_0x4691fd)),_0x336e74=(-_0x14e391+_0x567805)/(0x3*_0x4b9f73),_0x579f5b=(-_0x14e391-_0x567805)/(0x3*_0x4b9f73);return _0x336e74>0x0&&_0x336e74<0x1&&_0x466e48['push'](_0x336e74),_0x579f5b>0x0&&_0x579f5b<0x1&&Math[_0x41c53f(0x1ef)](_0x579f5b-_0x336e74)>I&&_0x466e48['push'](_0x579f5b),_0x466e48;}function H(_0x5ced87,_0xf5e7c,_0x2aebb5,_0x146f57,_0xef08be){const _0x55dcce=_0x5b63;_0x5ced87[_0x55dcce(0x199)](_0xf5e7c,_0xef08be),new Set([...V(_0xf5e7c['x'],_0x2aebb5['x'],_0x146f57['x'],_0xef08be['x']),...V(_0xf5e7c['y'],_0x2aebb5['y'],_0x146f57['y'],_0xef08be['y'])])['forEach'](_0x5de4d9=>{const _0x34e751=_0x55dcce;_0x5ced87[_0x34e751(0x199)](B(_0xf5e7c,_0x2aebb5,_0x146f57,_0xef08be,_0x5de4d9));});}function U(_0x1333aa){const _0x7e9915=_0x5b63;let _0x2986be=_0x1333aa[_0x7e9915(0x1f0)];if(_0x2986be[_0x7e9915(0x1ad)]<=0x1)return _0x2986be;let _0x5cbc52=[];for(let _0x35e4b6=0x1;_0x35e4b6<_0x2986be[_0x7e9915(0x1ad)];_0x35e4b6++){let _0x18fb54=_0x2986be[_0x35e4b6-0x1],_0x37b667=_0x2986be[_0x35e4b6];H(_0x5cbc52,_0x18fb54,_0x18fb54[_0x7e9915(0x1e5)]??_0x18fb54,_0x37b667['in']??_0x37b667,_0x37b667);}if(_0x1333aa[_0x7e9915(0x192)]&&_0x2986be[_0x7e9915(0x1ad)]>0x1){let _0x2ef0cf=_0x2986be[_0x2986be[_0x7e9915(0x1ad)]-0x1],_0x39d297=_0x2986be[0x0];H(_0x5cbc52,_0x2ef0cf,_0x2ef0cf[_0x7e9915(0x1e5)]??_0x2ef0cf,_0x39d297['in']??_0x39d297,_0x39d297);}return _0x5cbc52;}function de(_0x4e31a3){const _0x2bbfe9=_0x5b63;let _0x604d13=_0x4e31a3[_0x2bbfe9(0x195)];if(_0x604d13[_0x2bbfe9(0x1ad)]<=0x1)return _0x604d13;let _0x4dfb6b=[];for(let _0x151291=0x0;_0x151291<_0x604d13['length']-0x1;_0x151291++){let _0xecb5ef=_0x604d13[_0x151291],_0x3c0222=_0x604d13[_0x151291+0x1],_0x1472b0=_0x604d13[_0x151291-0x1]??_0xecb5ef,_0x45ea24=_0x604d13[_0x151291+0x2]??_0x3c0222;H(_0x4dfb6b,_0xecb5ef,{'x':_0xecb5ef['x']+(_0x3c0222['x']-_0x1472b0['x'])/0x6,'y':_0xecb5ef['y']+(_0x3c0222['y']-_0x1472b0['y'])/0x6},{'x':_0x3c0222['x']-(_0x45ea24['x']-_0xecb5ef['x'])/0x6,'y':_0x3c0222['y']-(_0x45ea24['y']-_0xecb5ef['y'])/0x6},_0x3c0222);}return _0x4dfb6b;}function fe(_0x172440){const _0x6fc696=_0x5b63;return _0x172440[_0x6fc696(0x1b4)]===_0x6fc696(0x1dc)?U(_0x172440):de(_0x172440);}function W(_0x4e2575){const _0x4fcd51=_0x5b63;let _0x4d4ea1=Math[_0x4fcd51(0x197)](_0x4e2575*0x2710)/0x2710;return Object['is'](_0x4d4ea1,-0x0)?0x0:_0x4d4ea1;}function G(_0x332840){const _0x1a3809=_0x5b63;let _0x23f35e=fe(_0x332840);if(_0x23f35e[_0x1a3809(0x1ad)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3211cf=Math['min'](..._0x23f35e[_0x1a3809(0x196)](_0x9432b5=>_0x9432b5['x'])),_0x11de0d=Math['min'](..._0x23f35e[_0x1a3809(0x196)](_0x3d21bd=>_0x3d21bd['y'])),_0x4de426=Math[_0x1a3809(0x1c5)](..._0x23f35e['map'](_0x466622=>_0x466622['x'])),_0x1d9d91=Math['max'](..._0x23f35e['map'](_0x201f1f=>_0x201f1f['y']));return{'left':W(_0x3211cf),'top':W(_0x11de0d),'width':W(Math['max'](0x1,_0x4de426-_0x3211cf)),'height':W(Math['max'](0x1,_0x1d9d91-_0x11de0d))};}function pe(_0x521836,_0x4fdbc0){const _0x34b0a2=_0x5b63;let _0x19e0a9=_0x521836['anchors'];if(_0x19e0a9[_0x34b0a2(0x1ad)]===0x0)return'';let _0x1d8e3d=['M\x20'+R(z(_0x19e0a9[0x0],_0x4fdbc0))];for(let _0x487fe1=0x1;_0x487fe1<_0x19e0a9[_0x34b0a2(0x1ad)];_0x487fe1++){let _0x5ec2ca=_0x19e0a9[_0x487fe1-0x1],_0x18235d=_0x19e0a9[_0x487fe1],_0x2acc6a=_0x5ec2ca[_0x34b0a2(0x1e5)]??_0x5ec2ca,_0x2a898c=_0x18235d['in']??_0x18235d;_0x1d8e3d[_0x34b0a2(0x199)]('C\x20'+R(z(_0x2acc6a,_0x4fdbc0))+'\x20'+R(z(_0x2a898c,_0x4fdbc0))+'\x20'+R(z(_0x18235d,_0x4fdbc0)));}if(_0x521836[_0x34b0a2(0x192)]&&_0x19e0a9[_0x34b0a2(0x1ad)]>0x1){let _0x3b31e9=_0x19e0a9[_0x19e0a9[_0x34b0a2(0x1ad)]-0x1],_0x29554c=_0x19e0a9[0x0],_0x1cdd63=_0x3b31e9[_0x34b0a2(0x1e5)]??_0x3b31e9,_0x5a814c=_0x29554c['in']??_0x29554c;_0x1d8e3d['push']('C\x20'+R(z(_0x1cdd63,_0x4fdbc0))+'\x20'+R(z(_0x5a814c,_0x4fdbc0))+'\x20'+R(z(_0x29554c,_0x4fdbc0))),_0x1d8e3d[_0x34b0a2(0x199)]('Z');}return _0x1d8e3d[_0x34b0a2(0x1d8)]('\x20');}function me(_0x259bd0,_0x1ef7ae){const _0x551ef0=_0x5b63;let _0x20ac1d=_0x259bd0[_0x551ef0(0x195)]['map'](_0x566651=>z(_0x566651,_0x1ef7ae));if(_0x20ac1d[_0x551ef0(0x1ad)]===0x0)return'';if(_0x20ac1d[_0x551ef0(0x1ad)]===0x1)return'M\x20'+R(_0x20ac1d[0x0]);let _0x5483c5=['M\x20'+R(_0x20ac1d[0x0])];for(let _0x5364da=0x0;_0x5364da<_0x20ac1d[_0x551ef0(0x1ad)]-0x1;_0x5364da++){let _0x256ccf=_0x20ac1d[_0x5364da],_0x52948f=_0x20ac1d[_0x5364da+0x1],_0x1997a1=_0x20ac1d[_0x5364da-0x1]??_0x256ccf,_0x14a1f7=_0x20ac1d[_0x5364da+0x2]??_0x52948f,_0x2d57bb={'x':_0x256ccf['x']+(_0x52948f['x']-_0x1997a1['x'])/0x6,'y':_0x256ccf['y']+(_0x52948f['y']-_0x1997a1['y'])/0x6},_0x3bcc5d={'x':_0x52948f['x']-(_0x14a1f7['x']-_0x256ccf['x'])/0x6,'y':_0x52948f['y']-(_0x14a1f7['y']-_0x256ccf['y'])/0x6};_0x5483c5[_0x551ef0(0x199)]('C\x20'+R(_0x2d57bb)+'\x20'+R(_0x3bcc5d)+'\x20'+R(_0x52948f));}return _0x5483c5[_0x551ef0(0x1d8)]('\x20');}function he(_0x37b641,_0x2ba77b){const _0x32ea8e=_0x5b63;return _0x37b641[_0x32ea8e(0x1b4)]==='pen'?pe(_0x37b641,_0x2ba77b):me(_0x37b641,_0x2ba77b);}function ge(_0x5a2fcc,_0xa3d057){const _0x1acc2e=_0x5b63;return _0xa3d057!=null&&_0xa3d057['color']?_0xa3d057[_0x1acc2e(0x1bb)]:_0x5a2fcc[_0x1acc2e(0x1b4)]===_0x1acc2e(0x1dc)?_0x1acc2e(0x1e2):_0x5a2fcc[_0x1acc2e(0x1bb)];}function _e(_0x3b9d70,_0x752241){const _0x109c0b=_0x5b63;return(_0x752241==null?void 0x0:_0x752241[_0x109c0b(0x1c3)])===void 0x0?_0x3b9d70[_0x109c0b(0x1b4)]===_0x109c0b(0x1dc)?0x2:_0x3b9d70[_0x109c0b(0x1c3)]:_0x752241[_0x109c0b(0x1c3)];}function ve(_0x2e92c3,_0x560d3c){const _0x48d22d=_0x5b63;return(_0x560d3c==null?void 0x0:_0x560d3c[_0x48d22d(0x1d2)])===void 0x0?_0x2e92c3[_0x48d22d(0x1b4)]===_0x48d22d(0x1dc)?void 0x0:_0x2e92c3[_0x48d22d(0x1d2)]:_0x560d3c['opacity'];}function _0x2e72(){const _0x3c1992=['10SlBgBP','Round','__ink-preview-anchor__','free','sqrt','_adapters','getOwnPropertyDescriptor','anchor','abs','anchors','decorate','default','closed','UNIVER_UNKNOWN','add','points','map','round','@univerjs-pro/ink','push','defineProperty','get','5Xmqjmh','tool','forEach','onStarting','ink.config','constructor','distance','type','iterator','_commandService','smooth','setConfig','createId','registerCommand','none','982mVvxAD','slice','length','_config','segmentIndex','function','Rect','pluginName','height','kind','316670DyGKJa','end','3704tRkUlk','version','find','pointType','color','splice','UNIVER_INK_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createCustomShape','NoFill','_configService','top','width','1239jCYypZ','max','start','3213NglzJw','corner','1199100VKswAW','hypot','171ICMRdA','1878XpbfCG','findIndex','left','endIndex','2225542HhWfXU','startIndex','opacity','disposeWithMe','right','OPERATION','packageName','indexOf','join','symbol','symmetric','beginInkMode','pen','ink.operation.start','min','859864gbakIV','point','SolidFill','#f54a45','1.1.0','object','out','string'];_0x2e72=function(){return _0x3c1992;};return _0x2e72();}function ye(_0x131423,_0x19c971){const _0x5184b9=_0x5b63;let _0x1b6b28=G(_0x131423),_0x1b42fa=he(_0x131423,{'x':_0x1b6b28[_0x5184b9(0x1ce)],'y':_0x1b6b28['top']}),_0x47d6ed=_0x131423['kind']==='pen'&&_0x131423['closed'],_0xb0a7fc=_0x19c971==null?void 0x0:_0x19c971['fillColor'];return{'shapeType':_0x46da06[_0x5184b9(0x1b1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1b6b28[_0x5184b9(0x1c3)],'h':_0x1b6b28[_0x5184b9(0x1b3)],'fill':_0x47d6ed?'norm':_0x5184b9(0x1aa),'stroke':!0x0,'data':_0x1b42fa,'dataArray':be(_0x131423,{'x':_0x1b6b28['left'],'y':_0x1b6b28[_0x5184b9(0x1c2)]})}]},'fill':_0x47d6ed&&_0xb0a7fc?{'color':_0xb0a7fc,'fillType':_0x1415aa[_0x5184b9(0x1e1)]}:{'fillType':_0x1415aa[_0x5184b9(0x1c0)]},'stroke':{'color':ge(_0x131423,_0x19c971),'width':_e(_0x131423,_0x19c971),'opacity':ve(_0x131423,_0x19c971),'lineStrokeType':_0x2148f9['SolidLine'],'capType':_0x470397['Round'],'lineJoinType':_0x34e189[_0x5184b9(0x1e8)]}};}function K(_0x182e0e,_0x8f2a71){return{'x':_0x182e0e['x']-_0x8f2a71['x'],'y':_0x182e0e['y']-_0x8f2a71['y']};}function be(_0x5948b9,_0x101a36){const _0x2de9fd=_0x5b63;if(_0x5948b9[_0x2de9fd(0x1b4)]===_0x2de9fd(0x1dc)){let _0x2684f9=_0x5948b9['anchors'];if(_0x2684f9['length']===0x0)return[];let _0x270b4e=K(_0x2684f9[0x0],_0x101a36),_0x5d0528=[{'command':'M','points':[_0x270b4e['x'],_0x270b4e['y']]}];for(let _0xcf056b=0x1;_0xcf056b<_0x2684f9[_0x2de9fd(0x1ad)];_0xcf056b++){let _0x3f163e=_0x2684f9[_0xcf056b-0x1],_0x18a7bd=_0x2684f9[_0xcf056b],_0x46b10e=K(_0x3f163e[_0x2de9fd(0x1e5)]??_0x3f163e,_0x101a36),_0x1663e2=K(_0x18a7bd['in']??_0x18a7bd,_0x101a36),_0x4dd78a=K(_0x18a7bd,_0x101a36);_0x5d0528[_0x2de9fd(0x199)]({'command':'C','points':[_0x46b10e['x'],_0x46b10e['y'],_0x1663e2['x'],_0x1663e2['y'],_0x4dd78a['x'],_0x4dd78a['y']]});}if(_0x5948b9[_0x2de9fd(0x192)]&&_0x2684f9[_0x2de9fd(0x1ad)]>0x1){let _0x2cd089=_0x2684f9[_0x2684f9[_0x2de9fd(0x1ad)]-0x1],_0x4fc80e=_0x2684f9[0x0],_0x5cdbc4=K(_0x2cd089[_0x2de9fd(0x1e5)]??_0x2cd089,_0x101a36),_0x2ff460=K(_0x4fc80e['in']??_0x4fc80e,_0x101a36),_0x2d8ee0=K(_0x4fc80e,_0x101a36);_0x5d0528[_0x2de9fd(0x199)]({'command':'C','points':[_0x5cdbc4['x'],_0x5cdbc4['y'],_0x2ff460['x'],_0x2ff460['y'],_0x2d8ee0['x'],_0x2d8ee0['y']]}),_0x5d0528[_0x2de9fd(0x199)]({'command':'z','points':[]});}return _0x5d0528;}let _0x5669d2=_0x5948b9[_0x2de9fd(0x195)]['map'](_0x4caf9d=>K(_0x4caf9d,_0x101a36));if(_0x5669d2['length']===0x0)return[];let _0x4c784c=[{'command':'M','points':[_0x5669d2[0x0]['x'],_0x5669d2[0x0]['y']]}];for(let _0xa6d83f=0x0;_0xa6d83f<_0x5669d2['length']-0x1;_0xa6d83f++){let _0x285a50=_0x5669d2[_0xa6d83f],_0x5f44af=_0x5669d2[_0xa6d83f+0x1],_0x39e52b=_0x5669d2[_0xa6d83f-0x1]??_0x285a50,_0x44ce54=_0x5669d2[_0xa6d83f+0x2]??_0x5f44af,_0x5a7713={'x':_0x285a50['x']+(_0x5f44af['x']-_0x39e52b['x'])/0x6,'y':_0x285a50['y']+(_0x5f44af['y']-_0x39e52b['y'])/0x6},_0x51106e={'x':_0x5f44af['x']-(_0x44ce54['x']-_0x285a50['x'])/0x6,'y':_0x5f44af['y']-(_0x44ce54['y']-_0x285a50['y'])/0x6};_0x4c784c[_0x2de9fd(0x199)]({'command':'C','points':[_0x5a7713['x'],_0x5a7713['y'],_0x51106e['x'],_0x51106e['y'],_0x5f44af['x'],_0x5f44af['y']]});}return _0x4c784c;}function xe(_0x3de858){const _0x1e6861=_0x5b63;let {model:_0x1f53ef,sourceModel:_0x1d9dc1=_0x1f53ef,style:_0x1a49da}=_0x3de858,_0xfa98f2=_0x3de858[_0x1e6861(0x19d)]??_0x1f53ef[_0x1e6861(0x1b4)],_0x53d9f1=G(_0x1f53ef),_0x1696c0=_0x1f53ef[_0x1e6861(0x1b4)]===_0x1e6861(0x1dc)&&_0xfa98f2!==_0x1e6861(0x1dc)?_0x1f53ef:void 0x0;return{'transform':{..._0x53d9f1,'rotation':0x0},'shapeData':ye(_0x1f53ef,_0x1a49da),'ink':{'version':0x1,'tool':_0xfa98f2,'sourceModel':_0x1d9dc1,..._0x1696c0?{'editModel':_0x1696c0}:{},'normalizedBounds':_0x53d9f1}};}var Se=_0x43396f(0x198),Ce=_0x43396f(0x1e3);function q(_0x327fcd){'@babel/helpers - typeof';const _0x555e03=_0x43396f;return q=typeof Symbol==_0x555e03(0x1b0)&&typeof Symbol[_0x555e03(0x1a4)]==_0x555e03(0x1d9)?function(_0x4653e8){return typeof _0x4653e8;}:function(_0x565e75){const _0x7cb9ff=_0x555e03;return _0x565e75&&typeof Symbol=='function'&&_0x565e75[_0x7cb9ff(0x1a1)]===Symbol&&_0x565e75!==Symbol['prototype']?_0x7cb9ff(0x1d9):typeof _0x565e75;},q(_0x327fcd);}function we(_0x4638e5,_0x37d457){const _0x50103e=_0x43396f;if(q(_0x4638e5)!=_0x50103e(0x1e4)||!_0x4638e5)return _0x4638e5;var _0x37cf59=_0x4638e5[Symbol['toPrimitive']];if(_0x37cf59!==void 0x0){var _0x3deef9=_0x37cf59['call'](_0x4638e5,_0x37d457||_0x50103e(0x1f2));if(q(_0x3deef9)!='object')return _0x3deef9;throw TypeError(_0x50103e(0x1be));}return(_0x37d457==='string'?String:Number)(_0x4638e5);}function J(_0x3960c5){const _0x1fef8a=_0x43396f;var _0x1727fe=we(_0x3960c5,_0x1fef8a(0x1e6));return q(_0x1727fe)==_0x1fef8a(0x1d9)?_0x1727fe:_0x1727fe+'';}function Y(_0x12dba5,_0x2776c5,_0x330d02){const _0x5a3df0=_0x43396f;return(_0x2776c5=J(_0x2776c5))in _0x12dba5?Object[_0x5a3df0(0x19a)](_0x12dba5,_0x2776c5,{'value':_0x330d02,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12dba5[_0x2776c5]=_0x330d02,_0x12dba5;}const X=_0x3acfc4('ink.host-adapter.service');var Te=class{constructor(){const _0x4e989f=_0x43396f;Y(this,_0x4e989f(0x1ec),[]);}['registerAdapter'](_0x5e717d){const _0x5e17a1=_0x43396f;return this[_0x5e17a1(0x1ec)]['push'](_0x5e717d),_0x5c9d22(()=>{const _0x12a85d=_0x5e17a1;let _0x54eaca=this[_0x12a85d(0x1ec)][_0x12a85d(0x1d7)](_0x5e717d);_0x54eaca>=0x0&&this[_0x12a85d(0x1ec)][_0x12a85d(0x1bc)](_0x54eaca,0x1);});}[_0x43396f(0x1db)](_0x7e3f30){const _0x1c01a4=_0x43396f;for(let _0x1c865b of this[_0x1c01a4(0x1ec)])if(_0x1c865b[_0x1c01a4(0x1db)](_0x7e3f30))return!0x0;return!0x1;}async[_0x43396f(0x1bf)](_0xd4e7d1){const _0x166569=_0x43396f;for(let _0x3480a0 of this[_0x166569(0x1ec)])if(_0x3480a0['createCustomShape']&&await _0x3480a0[_0x166569(0x1bf)](_0xd4e7d1))return!0x0;return!0x1;}};const Ee={'id':_0x43396f(0x1dd),'type':_0x291e91[_0x43396f(0x1d5)],'handler':(_0x49ed18,_0x1900b9)=>_0x1900b9?_0x49ed18[_0x43396f(0x19b)](X)[_0x43396f(0x1db)](_0x1900b9):!0x1},Z={};function Q(_0x2808e4,_0x55d7cf){return function(_0x3d85b5,_0x568f41){_0x55d7cf(_0x3d85b5,_0x568f41,_0x2808e4);};}function De(_0x28cd73,_0x2bc677,_0x408c17,_0x54cf2f){const _0xb63aa=_0x43396f;var _0xf34f97=arguments['length'],_0x24dc5f=_0xf34f97<0x3?_0x2bc677:_0x54cf2f===null?_0x54cf2f=Object[_0xb63aa(0x1ed)](_0x2bc677,_0x408c17):_0x54cf2f,_0x4f1b7f;if(typeof Reflect=='object'&&typeof Reflect[_0xb63aa(0x1f1)]==_0xb63aa(0x1b0))_0x24dc5f=Reflect[_0xb63aa(0x1f1)](_0x28cd73,_0x2bc677,_0x408c17,_0x54cf2f);else{for(var _0x1c165b=_0x28cd73[_0xb63aa(0x1ad)]-0x1;_0x1c165b>=0x0;_0x1c165b--)(_0x4f1b7f=_0x28cd73[_0x1c165b])&&(_0x24dc5f=(_0xf34f97<0x3?_0x4f1b7f(_0x24dc5f):_0xf34f97>0x3?_0x4f1b7f(_0x2bc677,_0x408c17,_0x24dc5f):_0x4f1b7f(_0x2bc677,_0x408c17))||_0x24dc5f);}return _0xf34f97>0x3&&_0x24dc5f&&Object[_0xb63aa(0x19a)](_0x2bc677,_0x408c17,_0x24dc5f),_0x24dc5f;}let $=class extends _0x23a329{constructor(_0x328372=Z,_0x23b94c,_0x15efc2,_0x554d0f){const _0x3e6b0f=_0x43396f;super(),this[_0x3e6b0f(0x1ae)]=_0x328372,this['_injector']=_0x23b94c,this['_commandService']=_0x15efc2,this[_0x3e6b0f(0x1c1)]=_0x554d0f;let {..._0x2cd050}=_0x488fc2({},Z,this['_config']);this[_0x3e6b0f(0x1c1)][_0x3e6b0f(0x1a7)](_0x3e6b0f(0x1a0),_0x2cd050);}[_0x43396f(0x19f)](){const _0x493d37=_0x43396f;[[X,{'useClass':Te}]][_0x493d37(0x19e)](_0x1a4d5e=>this['_injector'][_0x493d37(0x194)](_0x1a4d5e)),this[_0x493d37(0x1d3)](this[_0x493d37(0x1a5)][_0x493d37(0x1a9)](Ee));}};Y($,_0x43396f(0x1b2),_0x43396f(0x1bd)),Y($,_0x43396f(0x1d6),Se),Y($,_0x43396f(0x1b8),Ce),Y($,_0x43396f(0x1a3),_0x4b2236[_0x43396f(0x193)]),$=De([_0x40586b(_0x5cf441),Q(0x1,_0x4a0035(_0x5e60e7)),Q(0x2,_0x1fafaa),Q(0x3,_0x214ca1)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x1b33c4=_0xffea;(function(_0x3d8c84,_0x49724c){const _0x305397=_0xffea,_0x2ea665=_0x3d8c84();while(!![]){try{const _0x142300=parseInt(_0x305397(0x1d1))/0x1+parseInt(_0x305397(0x1d9))/0x2*(parseInt(_0x305397(0x1fd))/0x3)+parseInt(_0x305397(0x1f3))/0x4+parseInt(_0x305397(0x1e7))/0x5+parseInt(_0x305397(0x1d8))/0x6+parseInt(_0x305397(0x1e6))/0x7+parseInt(_0x305397(0x1dd))/0x8*(-parseInt(_0x305397(0x1de))/0x9);if(_0x142300===_0x49724c)break;else _0x2ea665['push'](_0x2ea665['shift']());}catch(_0x111a1a){_0x2ea665['push'](_0x2ea665['shift']());}}}(_0xeb0e,0xa4e76));import{BoardElementType as _0x3da64e}from'@univerjs-pro/boards';import{FBoard as _0x2a1d57}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x17664a}from'@univerjs-pro/ink';import{Tools as _0x4d5ca2,generateRandomId as _0x2086e2}from'@univerjs/core';import{FEnum as _0x2dc3a1}from'@univerjs/core/facade';function _0xffea(_0x2de029,_0x41ccf7){_0x2de029=_0x2de029-0x1d1;const _0xeb0e67=_0xeb0e();let _0xffeaf9=_0xeb0e67[_0x2de029];return _0xffeaf9;}var o=class extends _0x2a1d57{[_0x1b33c4(0x1f4)](_0x899dc2){const _0x5e7132=_0x1b33c4;let _0x2f3a76=s(_0x899dc2);return _0x2f3a76&&this['_addElement'](_0x2f3a76,{'insertIndex':_0x899dc2[_0x5e7132(0x1fe)]})?_0x2f3a76:null;}[_0x1b33c4(0x1d5)](){const _0x33324e=_0x1b33c4;return this[_0x33324e(0x1db)]({'elementType':_0x3da64e[_0x33324e(0x1f0)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x33324e(0x1e2)](p);}};function s(_0x4ad296,_0x4ad11f){const _0x2fc941=_0x1b33c4;if(!l(_0x4ad296[_0x2fc941(0x1e9)])||_0x4ad296[_0x2fc941(0x1fb)]!==void 0x0&&!l(_0x4ad296[_0x2fc941(0x1fb)])||!u(_0x4ad296[_0x2fc941(0x1f2)]))return null;let _0x2f6dfe=_0x4ad296[_0x2fc941(0x1e1)]??(_0x4ad11f==null?void 0x0:_0x4ad11f[_0x2fc941(0x1e1)]),_0x175a5e=_0x4d5ca2[_0x2fc941(0x1dc)](_0x4ad296['model']),_0x245e76=_0x17664a({'model':_0x175a5e,'style':_0x4ad296['style'],'tool':_0x4ad296['tool'],'sourceModel':_0x4ad296['sourceModel']?_0x4d5ca2[_0x2fc941(0x1dc)](_0x4ad296[_0x2fc941(0x1fb)]):_0x175a5e}),_0x492fb0=d(_0x4ad11f==null?void 0x0:_0x4ad11f['custom']);return{'id':(_0x4ad11f==null?void 0x0:_0x4ad11f['id'])??_0x4ad296['id']??_0x2086e2(0x6),'type':_0x3da64e[_0x2fc941(0x1f0)],'transform':_0x245e76[_0x2fc941(0x1f8)],'shapeData':_0x245e76['shapeData'],'parentId':_0x2f6dfe??void 0x0,'laneId':_0x4ad296[_0x2fc941(0x1ff)]===void 0x0?_0x4ad11f==null?void 0x0:_0x4ad11f['laneId']:_0x4ad296['laneId'],'custom':{..._0x492fb0,'ink':_0x245e76[_0x2fc941(0x1f6)]}};}function _0xeb0e(){const _0x5eae82=['deepClone','226832KIVqoU','711eYZQmN','trim','add','parentId','filter','BoardInkPointType','free','every','72548iivabU','3214060PGsKIa','highlighter','model','opacity','extend','object','has','length','out','Shape','anchor','style','3101672BQBwKz','insertInk','pen','ink','width','transform','type','anchors','sourceModel','version','64533pkFfGR','insertIndex','laneId','points','BoardInkHandleKind','777695dsLgSW','pressure','closed','isFinite','getInks','smooth','BoardInkTool','2318748PSlTCQ','30LCODfO','custom','findElements'];_0xeb0e=function(){return _0x5eae82;};return _0xeb0e();}function c(_0x558eb9){const _0xec3408=_0x1b33c4;return Number[_0xec3408(0x1d4)](_0x558eb9['x'])&&Number[_0xec3408(0x1d4)](_0x558eb9['y']);}function l(_0x3a9664){const _0x44a5e4=_0x1b33c4;if(_0x3a9664['kind']===_0x44a5e4(0x1f5)){let _0x54de90=new Set();return _0x3a9664[_0x44a5e4(0x1fa)][_0x44a5e4(0x1ee)]>=(_0x3a9664[_0x44a5e4(0x1d3)]?0x3:0x2)&&_0x3a9664[_0x44a5e4(0x1fa)][_0x44a5e4(0x1e5)](_0x58b8ee=>{const _0x453f87=_0x44a5e4;let _0x49157f=_0x58b8ee['id'][_0x453f87(0x1df)]()[_0x453f87(0x1ee)]>0x0&&!_0x54de90[_0x453f87(0x1ed)](_0x58b8ee['id'])&&c(_0x58b8ee)&&(!_0x58b8ee['in']||c(_0x58b8ee['in']))&&(!_0x58b8ee[_0x453f87(0x1ef)]||c(_0x58b8ee[_0x453f87(0x1ef)]));return _0x54de90[_0x453f87(0x1e0)](_0x58b8ee['id']),_0x49157f;});}return _0x3a9664[_0x44a5e4(0x200)][_0x44a5e4(0x1ee)]>=0x2&&_0x3a9664[_0x44a5e4(0x200)][_0x44a5e4(0x1e5)](_0x4a7aff=>c(_0x4a7aff)&&Number['isFinite'](_0x4a7aff['t'])&&(_0x4a7aff['pressure']===void 0x0||Number[_0x44a5e4(0x1d4)](_0x4a7aff[_0x44a5e4(0x1d2)])))&&Number[_0x44a5e4(0x1d4)](_0x3a9664[_0x44a5e4(0x1f7)])&&_0x3a9664[_0x44a5e4(0x1f7)]>0x0&&Number[_0x44a5e4(0x1d4)](_0x3a9664[_0x44a5e4(0x1ea)])&&_0x3a9664['opacity']>=0x0&&_0x3a9664[_0x44a5e4(0x1ea)]<=0x1;}function u(_0x1275e4){const _0x41c5b4=_0x1b33c4;return _0x1275e4===void 0x0||(_0x1275e4[_0x41c5b4(0x1f7)]===void 0x0||Number[_0x41c5b4(0x1d4)](_0x1275e4[_0x41c5b4(0x1f7)])&&_0x1275e4[_0x41c5b4(0x1f7)]>0x0)&&(_0x1275e4[_0x41c5b4(0x1ea)]===void 0x0||Number[_0x41c5b4(0x1d4)](_0x1275e4[_0x41c5b4(0x1ea)])&&_0x1275e4['opacity']>=0x0&&_0x1275e4[_0x41c5b4(0x1ea)]<=0x1);}function d(_0x3bc335){const _0x52741d=_0x1b33c4;return _0x3bc335&&typeof _0x3bc335==_0x52741d(0x1ec)&&!Array['isArray'](_0x3bc335)?_0x3bc335:{};}function f(_0x17b752){const _0xf1bb7c=_0x1b33c4;let _0x4683ba=d(_0x17b752[_0xf1bb7c(0x1da)])[_0xf1bb7c(0x1f6)];if(!_0x4683ba||typeof _0x4683ba!=_0xf1bb7c(0x1ec)||Array['isArray'](_0x4683ba))return null;let _0x371eea=_0x4683ba;return _0x371eea[_0xf1bb7c(0x1fc)]===0x1&&_0x371eea['sourceModel']&&typeof _0x371eea[_0xf1bb7c(0x1fb)]==_0xf1bb7c(0x1ec)?_0x371eea:null;}function p(_0x50e9a7){const _0x253188=_0x1b33c4;return _0x50e9a7[_0x253188(0x1f9)]===_0x3da64e[_0x253188(0x1f0)]&&!!f(_0x50e9a7);}_0x2a1d57['extend'](o);const m={'Pen':'pen','Brush':'brush','Highlighter':_0x1b33c4(0x1e8)},h={'Corner':'corner','Smooth':_0x1b33c4(0x1d6),'Symmetric':'symmetric','Free':_0x1b33c4(0x1e4)},g={'Anchor':_0x1b33c4(0x1f1),'In':'in','Out':_0x1b33c4(0x1ef)};var _=class extends _0x2dc3a1{get[_0x1b33c4(0x1d7)](){return m;}get[_0x1b33c4(0x1e3)](){return h;}get[_0x1b33c4(0x201)](){return g;}};_0x2dc3a1[_0x1b33c4(0x1eb)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4d5c9d=_0x1247;(function(_0x4fcfba,_0x2ec095){const _0x23f442=_0x1247,_0x535d77=_0x4fcfba();while(!![]){try{const _0x927dfa=-parseInt(_0x23f442(0x1db))/0x1+parseInt(_0x23f442(0x1bc))/0x2+-parseInt(_0x23f442(0x1af))/0x3+parseInt(_0x23f442(0x1d8))/0x4+parseInt(_0x23f442(0x1cb))/0x5*(parseInt(_0x23f442(0x1d1))/0x6)+-parseInt(_0x23f442(0x209))/0x7+-parseInt(_0x23f442(0x1c6))/0x8*(-parseInt(_0x23f442(0x1d3))/0x9);if(_0x927dfa===_0x2ec095)break;else _0x535d77['push'](_0x535d77['shift']());}catch(_0x3a0005){_0x535d77['push'](_0x535d77['shift']());}}}(_0x5e32,0xc703d));import{ShapeFillEnum as _0x1ab911,ShapeLineCapEnum as _0x52c57b,ShapeLineJoinEnum as _0x2ef3aa,ShapeLineTypeEnum as _0xb40238,ShapeTypeEnum as _0x49cd1d}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x57a878}from'@univerjs-pro/license';import{CommandType as _0x274185,DependentOn as _0x2f0a1b,ICommandService as _0x18c36a,IConfigService as _0x4e83c9,Inject as _0x304ec7,Injector as _0x404c68,Plugin as _0xd72275,UniverInstanceType as _0x5eeb86,createIdentifier as _0x5f2cbd,merge as _0xe94c79,toDisposable as _0x5a5fba}from'@univerjs/core';const g=0.0001;function _(_0x2cda97){return{'x':_0x2cda97['x'],'y':_0x2cda97['y']};}function v(_0x127e2e){const _0x97077b=_0x1247;return{..._0x127e2e,'in':_0x127e2e['in']?_(_0x127e2e['in']):void 0x0,'out':_0x127e2e[_0x97077b(0x1bb)]?_(_0x127e2e[_0x97077b(0x1bb)]):void 0x0};}function y(_0x4f0dab){const _0x2675e4=_0x1247;return{'kind':_0x2675e4(0x1d2),'closed':_0x4f0dab[_0x2675e4(0x1cf)],'anchors':_0x4f0dab[_0x2675e4(0x1f5)]['map'](v)};}function b(_0x595723,_0x278fb7,_0x1f97bb){return{'x':_0x595723['x']+(_0x278fb7['x']-_0x595723['x'])*_0x1f97bb,'y':_0x595723['y']+(_0x278fb7['y']-_0x595723['y'])*_0x1f97bb};}function x(_0x52f9bd,_0x4c9c24){const _0x2d7e56=_0x1247;return Math[_0x2d7e56(0x1c0)](_0x52f9bd['x']-_0x4c9c24['x'],_0x52f9bd['y']-_0x4c9c24['y']);}function S(_0x2dd696){const _0x47d1da=_0x1247;let _0x1b3a2d=Math[_0x47d1da(0x1c0)](_0x2dd696['x'],_0x2dd696['y']);return _0x1b3a2d<g?{'x':0x1,'y':0x0}:{'x':_0x2dd696['x']/_0x1b3a2d,'y':_0x2dd696['y']/_0x1b3a2d};}function C(_0x4f70bf,_0x3af8ff,_0x4ff15e=x(_0x4f70bf,_0x3af8ff)){let _0x5efc37=S({'x':_0x4f70bf['x']-_0x3af8ff['x'],'y':_0x4f70bf['y']-_0x3af8ff['y']});return{'x':_0x4f70bf['x']+_0x5efc37['x']*_0x4ff15e,'y':_0x4f70bf['y']+_0x5efc37['y']*_0x4ff15e};}function w(_0xb34253,_0x8d66ad){const _0x7600c9=_0x1247;let {anchors:_0xe1d492}=_0xb34253;return _0xe1d492[_0x7600c9(0x1ed)]<0x2||_0x8d66ad<0x0?null:_0x8d66ad<_0xe1d492[_0x7600c9(0x1ed)]-0x1?{'startIndex':_0x8d66ad,'endIndex':_0x8d66ad+0x1,'start':_0xe1d492[_0x8d66ad],'end':_0xe1d492[_0x8d66ad+0x1]}:_0xb34253[_0x7600c9(0x1cf)]&&_0x8d66ad===_0xe1d492[_0x7600c9(0x1ed)]-0x1?{'startIndex':_0xe1d492[_0x7600c9(0x1ed)]-0x1,'endIndex':0x0,'start':_0xe1d492[_0xe1d492[_0x7600c9(0x1ed)]-0x1],'end':_0xe1d492[0x0]}:null;}function T(_0x2ba707,_0x50f5b5){const _0x28be92=_0x1247;let _0x26ddfb=w(_0x2ba707,_0x50f5b5);return _0x26ddfb?[_0x26ddfb['start'],_0x26ddfb[_0x28be92(0x1fe)]['out']??_0x26ddfb[_0x28be92(0x1fe)],_0x26ddfb[_0x28be92(0x1eb)]['in']??_0x26ddfb[_0x28be92(0x1eb)],_0x26ddfb[_0x28be92(0x1eb)]]:null;}function te(_0x5a382c,_0x24d860){const _0x1e2d35=_0x1247;return _0x24d860===_0x1e2d35(0x20f)?_0x5a382c:_0x5a382c[_0x24d860]??null;}function E(_0x596289,_0x5acf97,_0x10b2f0){const _0x5619f7=_0x1247;return _0x10b2f0===_0x5619f7(0x20f)||_0x596289[_0x5619f7(0x1cf)]?!0x0:_0x10b2f0==='in'?_0x5acf97>0x0:_0x5acf97<_0x596289[_0x5619f7(0x1f5)][_0x5619f7(0x1ed)]-0x1;}function D(_0x4f0040,_0x13bd21){let [_0x252eea,_0x2ce951,_0x4f9223,_0x5d5248]=_0x4f0040,_0xf02cf5=b(_0x252eea,_0x2ce951,_0x13bd21),_0x223a05=b(_0x2ce951,_0x4f9223,_0x13bd21),_0x196670=b(_0x4f9223,_0x5d5248,_0x13bd21);return b(b(_0xf02cf5,_0x223a05,_0x13bd21),b(_0x223a05,_0x196670,_0x13bd21),_0x13bd21);}function ne(_0x1dd0a0,_0x229718){let [_0x4a12d7,_0x4a50c0,_0xe95602,_0x1b2a13]=_0x1dd0a0,_0x592b76=b(_0x4a12d7,_0x4a50c0,_0x229718),_0x4316bd=b(_0x4a50c0,_0xe95602,_0x229718),_0x3ec2ef=b(_0xe95602,_0x1b2a13,_0x229718),_0x253ff2=b(_0x592b76,_0x4316bd,_0x229718),_0x1723c4=b(_0x4316bd,_0x3ec2ef,_0x229718),_0x14a708=b(_0x253ff2,_0x1723c4,_0x229718);return{'left':[_0x4a12d7,_0x592b76,_0x253ff2,_0x14a708],'right':[_0x14a708,_0x1723c4,_0x3ec2ef,_0x1b2a13]};}function O(_0x3d3f0e,_0x137b38,_0x470fb0){const _0x14f27f=_0x1247;let _0x26f0cc=_0x470fb0['x']-_0x137b38['x'],_0x5c602e=_0x470fb0['y']-_0x137b38['y'],_0x313ad4=_0x26f0cc*_0x26f0cc+_0x5c602e*_0x5c602e,_0x56c323=_0x313ad4<=g?0x0:Math[_0x14f27f(0x202)](0x0,Math[_0x14f27f(0x1ef)](0x1,((_0x3d3f0e['x']-_0x137b38['x'])*_0x26f0cc+(_0x3d3f0e['y']-_0x137b38['y'])*_0x5c602e)/_0x313ad4)),_0x13a59d={'x':_0x137b38['x']+_0x26f0cc*_0x56c323,'y':_0x137b38['y']+_0x5c602e*_0x56c323};return{'point':_0x13a59d,'ratio':_0x56c323,'distance':x(_0x3d3f0e,_0x13a59d)};}function re(_0x452e85,_0x390eab,_0x241a2e){return O(_0x452e85,_0x390eab,_0x241a2e)['distance']**0x2;}function k(_0x5eaca1,_0x6f8b22){const _0x4326da=_0x1247;if(_0x5eaca1[_0x4326da(0x1ed)]<=0x2)return _0x5eaca1[_0x4326da(0x20d)](_);let _0x3c8dae=0x0,_0x5e955f=0x0,_0x391213=_0x5eaca1[0x0],_0xdcc947=_0x5eaca1[_0x5eaca1['length']-0x1],_0x3300c2=_0x6f8b22*_0x6f8b22;for(let _0x2cb846=0x1;_0x2cb846<_0x5eaca1[_0x4326da(0x1ed)]-0x1;_0x2cb846++){let _0x178e47=re(_0x5eaca1[_0x2cb846],_0x391213,_0xdcc947);_0x178e47>_0x3c8dae&&(_0x3c8dae=_0x178e47,_0x5e955f=_0x2cb846);}if(_0x3c8dae<=_0x3300c2)return[_(_0x391213),_(_0xdcc947)];let _0x25e7c9=k(_0x5eaca1[_0x4326da(0x1e5)](0x0,_0x5e955f+0x1),_0x6f8b22),_0x496446=k(_0x5eaca1[_0x4326da(0x1e5)](_0x5e955f),_0x6f8b22);return[..._0x25e7c9[_0x4326da(0x1e5)](0x0,-0x1),..._0x496446];}function ie(_0x10466c,_0x32a49b){let _0x4ddc0f=_0x10466c[_0x32a49b],_0x82b40c=_0x10466c[_0x32a49b+0x1],_0x3dd8d4=_0x10466c[_0x32a49b-0x1]??_0x4ddc0f;return{'x':_0x4ddc0f['x']+(_0x82b40c['x']-_0x3dd8d4['x'])/0x6,'y':_0x4ddc0f['y']+(_0x82b40c['y']-_0x3dd8d4['y'])/0x6};}function A(_0x4f1f7e,_0x506d01){let _0x61133f=_0x4f1f7e[_0x506d01],_0x16e00d=_0x4f1f7e[_0x506d01-0x1],_0x5ddeb8=_0x4f1f7e[_0x506d01+0x1]??_0x61133f;return{'x':_0x61133f['x']-(_0x5ddeb8['x']-_0x16e00d['x'])/0x6,'y':_0x61133f['y']-(_0x5ddeb8['y']-_0x16e00d['y'])/0x6};}function j(_0x2be232,_0x440c3b){const _0x202021=_0x1247;let _0x2e96e9=_0x2be232[_0x202021(0x1f5)][_0x440c3b],_0x4067ea=_0x2be232['anchors'][_0x440c3b-0x1]??(_0x2be232[_0x202021(0x1cf)]?_0x2be232[_0x202021(0x1f5)][_0x2be232[_0x202021(0x1f5)][_0x202021(0x1ed)]-0x1]:null),_0x29b911=_0x2be232[_0x202021(0x1f5)][_0x440c3b+0x1]??(_0x2be232[_0x202021(0x1cf)]?_0x2be232[_0x202021(0x1f5)][0x0]:null),_0x549e54=_0x4067ea&&_0x29b911?S({'x':_0x29b911['x']-_0x4067ea['x'],'y':_0x29b911['y']-_0x4067ea['y']}):_0x29b911?S({'x':_0x29b911['x']-_0x2e96e9['x'],'y':_0x29b911['y']-_0x2e96e9['y']}):_0x4067ea?S({'x':_0x2e96e9['x']-_0x4067ea['x'],'y':_0x2e96e9['y']-_0x4067ea['y']}):{'x':0x1,'y':0x0},_0x2e8b5c=_0x4067ea&&_0x29b911?Math[_0x202021(0x202)](0x32,x(_0x4067ea,_0x29b911)/0x4):0x32;return{'in':{'x':_0x2e96e9['x']-_0x549e54['x']*_0x2e8b5c,'y':_0x2e96e9['y']-_0x549e54['y']*_0x2e8b5c},'out':{'x':_0x2e96e9['x']+_0x549e54['x']*_0x2e8b5c,'y':_0x2e96e9['y']+_0x549e54['y']*_0x2e8b5c}};}function M(_0x33853b,_0x559357){const _0xe98d53=_0x1247;let _0x5a8f63=_0x33853b[_0x559357],_0x2c9f9a=_0x559357==='in'?'out':'in',_0x14c145=_0x33853b[_0x2c9f9a];if(_0x5a8f63){if(_0x33853b[_0xe98d53(0x1c7)]===_0xe98d53(0x1e8)){_0x33853b[_0x2c9f9a]=C(_0x33853b,_0x5a8f63);return;}_0x33853b[_0xe98d53(0x1c7)]===_0xe98d53(0x1e2)&&(_0x33853b[_0x2c9f9a]=C(_0x33853b,_0x5a8f63,_0x14c145?x(_0x33853b,_0x14c145):x(_0x33853b,_0x5a8f63)));}}function ae(_0x277839,_0xcf8269){const _0x167163=_0x1247;let _0x4bae76=y(_0x277839);return!_0xcf8269||_0x4bae76[_0x167163(0x1cf)]||_0x4bae76[_0x167163(0x1f5)][_0x167163(0x1ed)]===0x0||_0x4bae76['anchors'][_0x167163(0x1df)]({'id':_0x167163(0x203),'x':_0xcf8269['x'],'y':_0xcf8269['y'],'pointType':_0x167163(0x1c1)}),_0x4bae76;}function oe(_0x52dad7,_0x3152e9={}){const _0x5e6e11=_0x1247;let _0x635ab0=Math['max'](0x0,_0x3152e9['tolerance']??Math['max'](0x4,_0x52dad7['width']*0.35)),_0x4c7842=_0x3152e9[_0x5e6e11(0x1d6)]??(_0x287789=>'ink-centerline-'+_0x287789),_0x163b49=k(_0x52dad7['points'],_0x635ab0),_0x247ede=_0x163b49['map']((_0x123eda,_0x8430e4)=>({'id':_0x4c7842(_0x8430e4),'x':_0x123eda['x'],'y':_0x123eda['y'],'pointType':_0x5e6e11(0x20e)}));for(let _0x43d67e=0x0;_0x43d67e<_0x247ede[_0x5e6e11(0x1ed)]-0x1;_0x43d67e++)_0x247ede[_0x43d67e]['out']=ie(_0x163b49,_0x43d67e),_0x247ede[_0x43d67e+0x1]['in']=A(_0x163b49,_0x43d67e+0x1);return{'kind':_0x5e6e11(0x1d2),'closed':!0x1,'anchors':_0x247ede};}function se(_0xd65d76,_0x260f2a,_0x122b2e){const _0x54cada=_0x1247;let _0x311e37=null,_0x5aabf9=[_0x54cada(0x20f),'in',_0x54cada(0x1bb)];return _0xd65d76[_0x54cada(0x1f5)]['forEach']((_0x1a8fa2,_0x5092fb)=>{const _0x23b9e1=_0x54cada;_0x5aabf9[_0x23b9e1(0x1b3)](_0x9b76b3=>{const _0x295b8a=_0x23b9e1;if(!E(_0xd65d76,_0x5092fb,_0x9b76b3))return;let _0x591303=te(_0x1a8fa2,_0x9b76b3);if(!_0x591303)return;let _0x38d169=x(_0x260f2a,_0x591303);_0x38d169>_0x122b2e||_0x311e37&&_0x38d169>=_0x311e37[_0x295b8a(0x1ce)]||(_0x311e37={'handle':{'kind':_0x9b76b3,'anchorId':_0x1a8fa2['id']},'point':_(_0x591303),'distance':_0x38d169});});}),_0x311e37;}function ce(_0x456ec7,_0x1342ab,_0x5241e4){const _0x30e933=_0x1247;let _0x4f5f9a=null,_0x18e1df=_0x456ec7['closed']?_0x456ec7[_0x30e933(0x1f5)]['length']:Math[_0x30e933(0x202)](0x0,_0x456ec7['anchors'][_0x30e933(0x1ed)]-0x1);for(let _0x1c5331=0x0;_0x1c5331<_0x18e1df;_0x1c5331++){let _0x3b3342=T(_0x456ec7,_0x1c5331);if(!_0x3b3342)continue;let _0x2e5f17=D(_0x3b3342,0x0);for(let _0x53c210=0x1;_0x53c210<=0x20;_0x53c210++){let _0x348a90=D(_0x3b3342,_0x53c210/0x20),_0x31cbca=O(_0x1342ab,_0x2e5f17,_0x348a90),_0x585685=(_0x53c210-0x1+_0x31cbca[_0x30e933(0x1bd)])/0x20;(!_0x4f5f9a||_0x31cbca[_0x30e933(0x1ce)]<_0x4f5f9a['distance'])&&(_0x4f5f9a={'segmentIndex':_0x1c5331,'t':_0x585685,'point':_0x31cbca['point'],'distance':_0x31cbca[_0x30e933(0x1ce)]}),_0x2e5f17=_0x348a90;}}return _0x4f5f9a&&_0x4f5f9a['distance']<=_0x5241e4?_0x4f5f9a:null;}function le(_0x308173,_0x1d6259,_0x413623){const _0x42396a=_0x1247;let _0x5c34b9=y(_0x308173),_0x326a8f=w(_0x5c34b9,_0x1d6259[_0x42396a(0x1f6)]),_0x527886=T(_0x5c34b9,_0x1d6259[_0x42396a(0x1f6)]);if(!_0x326a8f||!_0x527886)return _0x5c34b9;let _0x43adc6=ne(_0x527886,Math[_0x42396a(0x202)](0x0,Math[_0x42396a(0x1ef)](0x1,_0x1d6259['t']))),_0x1fe348={'id':_0x413623(),'x':_0x43adc6[_0x42396a(0x1bf)][0x3]['x'],'y':_0x43adc6[_0x42396a(0x1bf)][0x3]['y'],'in':_(_0x43adc6[_0x42396a(0x1bf)][0x2]),'out':_(_0x43adc6['right'][0x1]),'pointType':_0x42396a(0x20e)};return _0x5c34b9[_0x42396a(0x1f5)][_0x326a8f[_0x42396a(0x1d4)]][_0x42396a(0x1bb)]=_(_0x43adc6['left'][0x1]),_0x5c34b9[_0x42396a(0x1f5)][_0x326a8f[_0x42396a(0x206)]]['in']=_(_0x43adc6[_0x42396a(0x1b2)][0x2]),_0x5c34b9[_0x42396a(0x1f5)][_0x42396a(0x1b9)](_0x326a8f['startIndex']+0x1,0x0,_0x1fe348),_0x5c34b9;}function ue(_0x4e6f4b,_0x4f3f96){const _0x59ccad=_0x1247;let _0x24bb7d=y(_0x4e6f4b);return _0x24bb7d[_0x59ccad(0x1f5)]=_0x24bb7d[_0x59ccad(0x1f5)][_0x59ccad(0x1c2)](_0x5f20b4=>_0x5f20b4['id']!==_0x4f3f96),_0x24bb7d[_0x59ccad(0x1cf)]&&_0x24bb7d[_0x59ccad(0x1f5)]['length']<0x3&&(_0x24bb7d[_0x59ccad(0x1cf)]=!0x1),_0x24bb7d;}function N(_0x39433b,_0x548243,_0x28e65a){const _0x480ed4=_0x1247;let _0x5af021=y(_0x39433b),_0x35e94b=_0x5af021[_0x480ed4(0x1f5)][_0x480ed4(0x1c9)](_0x5c1327=>_0x5c1327['id']===_0x548243),_0x44741d=_0x5af021[_0x480ed4(0x1f5)][_0x35e94b];if(!_0x44741d)return _0x5af021;if(_0x44741d[_0x480ed4(0x1c7)]=_0x28e65a,_0x28e65a===_0x480ed4(0x1c1))return delete _0x44741d['in'],delete _0x44741d[_0x480ed4(0x1bb)],_0x5af021;let _0x2e8346=j(_0x5af021,_0x35e94b);if(_0x44741d['in']=_0x44741d['in']?_(_0x44741d['in']):_0x2e8346['in'],_0x44741d['out']=_0x44741d[_0x480ed4(0x1bb)]?_(_0x44741d[_0x480ed4(0x1bb)]):_0x2e8346['out'],_0x28e65a===_0x480ed4(0x1e8)){let _0x4dfd64=Math[_0x480ed4(0x202)](x(_0x44741d,_0x44741d['in']),x(_0x44741d,_0x44741d[_0x480ed4(0x1bb)]),0x32),_0x5c4286=S({'x':_0x44741d[_0x480ed4(0x1bb)]['x']-_0x44741d['x'],'y':_0x44741d[_0x480ed4(0x1bb)]['y']-_0x44741d['y']});_0x44741d[_0x480ed4(0x1bb)]={'x':_0x44741d['x']+_0x5c4286['x']*_0x4dfd64,'y':_0x44741d['y']+_0x5c4286['y']*_0x4dfd64},_0x44741d['in']={'x':_0x44741d['x']-_0x5c4286['x']*_0x4dfd64,'y':_0x44741d['y']-_0x5c4286['y']*_0x4dfd64};}else _0x28e65a===_0x480ed4(0x1e2)&&M(_0x44741d,_0x480ed4(0x1bb));return _0x5af021;}function P(_0xa618a8,_0x463033){const _0x8be365=_0x1247;let _0x20aa60=_0xa618a8['anchors'][_0x8be365(0x1cd)](_0x18ad7c=>_0x18ad7c['id']===_0x463033),_0x1f9ae1=(_0x20aa60==null?void 0x0:_0x20aa60[_0x8be365(0x1c7)])??_0x8be365(0x1c1);return N(_0xa618a8,_0x463033,_0x1f9ae1==='corner'?_0x8be365(0x1e2):_0x1f9ae1==='smooth'?'symmetric':_0x1f9ae1===_0x8be365(0x1e8)?_0x8be365(0x20e):_0x8be365(0x1c1));}function F(_0x4a039a,_0x2b9371,_0x5f00e1){const _0x4791d9=_0x1247;let _0x3085ee=y(_0x4a039a),_0x5e2a5c=_0x3085ee[_0x4791d9(0x1f5)][_0x4791d9(0x1cd)](_0x58e062=>_0x58e062['id']===_0x2b9371[_0x4791d9(0x1f3)]);if(!_0x5e2a5c)return _0x3085ee;if(_0x2b9371[_0x4791d9(0x1fd)]==='anchor'){let _0xd638f3={'x':_0x5f00e1['x']-_0x5e2a5c['x'],'y':_0x5f00e1['y']-_0x5e2a5c['y']};return _0x5e2a5c['x']=_0x5f00e1['x'],_0x5e2a5c['y']=_0x5f00e1['y'],_0x5e2a5c['in']&&={'x':_0x5e2a5c['in']['x']+_0xd638f3['x'],'y':_0x5e2a5c['in']['y']+_0xd638f3['y']},_0x5e2a5c[_0x4791d9(0x1bb)]&&={'x':_0x5e2a5c[_0x4791d9(0x1bb)]['x']+_0xd638f3['x'],'y':_0x5e2a5c[_0x4791d9(0x1bb)]['y']+_0xd638f3['y']},_0x3085ee;}return _0x5e2a5c[_0x2b9371[_0x4791d9(0x1fd)]]=_(_0x5f00e1),_0x5e2a5c[_0x4791d9(0x1c7)]===_0x4791d9(0x1c1)&&(_0x5e2a5c[_0x4791d9(0x1c7)]=_0x4791d9(0x20e)),M(_0x5e2a5c,_0x2b9371[_0x4791d9(0x1fd)]),_0x3085ee;}const I=1e-9;function L(_0x3c3c6f){const _0x5240eb=_0x1247;let _0x3a1471=Math[_0x5240eb(0x1dd)](_0x3c3c6f*0x2710)/0x2710;return Object['is'](_0x3a1471,-0x0)?'0':String(_0x3a1471);}function R(_0x520fa0){return L(_0x520fa0['x'])+'\x20'+L(_0x520fa0['y']);}function z(_0x5446b6,_0x5c1f56){return{'x':_0x5446b6['x']-_0x5c1f56['x'],'y':_0x5446b6['y']-_0x5c1f56['y']};}function B(_0x1a5fe3,_0x40cfe4,_0x734106,_0xeffc3a,_0x304628){let _0x2ebf48=0x1-_0x304628;return{'x':_0x2ebf48*_0x2ebf48*_0x2ebf48*_0x1a5fe3['x']+0x3*_0x2ebf48*_0x2ebf48*_0x304628*_0x40cfe4['x']+0x3*_0x2ebf48*_0x304628*_0x304628*_0x734106['x']+_0x304628*_0x304628*_0x304628*_0xeffc3a['x'],'y':_0x2ebf48*_0x2ebf48*_0x2ebf48*_0x1a5fe3['y']+0x3*_0x2ebf48*_0x2ebf48*_0x304628*_0x40cfe4['y']+0x3*_0x2ebf48*_0x304628*_0x304628*_0x734106['y']+_0x304628*_0x304628*_0x304628*_0xeffc3a['y']};}function V(_0x22d728,_0xf1bceb,_0xaab2e7,_0x3150d){const _0xe3bf82=_0x1247;let _0x4963a0=-_0x22d728+0x3*_0xf1bceb-0x3*_0xaab2e7+_0x3150d,_0x3bff0e=0x3*_0x22d728-0x6*_0xf1bceb+0x3*_0xaab2e7,_0x4ffea5=-0x3*_0x22d728+0x3*_0xf1bceb,_0xb69f5d=[];if(Math['abs'](_0x4963a0)<I){if(Math[_0xe3bf82(0x1e3)](_0x3bff0e)<I)return _0xb69f5d;let _0x133d0e=-_0x4ffea5/(0x2*_0x3bff0e);return _0x133d0e>0x0&&_0x133d0e<0x1&&_0xb69f5d[_0xe3bf82(0x1df)](_0x133d0e),_0xb69f5d;}let _0x8eb0eb=_0x3bff0e*_0x3bff0e-0x3*_0x4963a0*_0x4ffea5;if(_0x8eb0eb<0x0)return _0xb69f5d;let _0x21174d=Math[_0xe3bf82(0x201)](Math[_0xe3bf82(0x202)](0x0,_0x8eb0eb)),_0x2c215f=(-_0x3bff0e+_0x21174d)/(0x3*_0x4963a0),_0x2ca7d4=(-_0x3bff0e-_0x21174d)/(0x3*_0x4963a0);return _0x2c215f>0x0&&_0x2c215f<0x1&&_0xb69f5d['push'](_0x2c215f),_0x2ca7d4>0x0&&_0x2ca7d4<0x1&&Math[_0xe3bf82(0x1e3)](_0x2ca7d4-_0x2c215f)>I&&_0xb69f5d[_0xe3bf82(0x1df)](_0x2ca7d4),_0xb69f5d;}function H(_0x1c13ff,_0xba6486,_0x12b2ed,_0x5a8d5d,_0xe60b72){const _0x367d44=_0x1247;_0x1c13ff[_0x367d44(0x1df)](_0xba6486,_0xe60b72),new Set([...V(_0xba6486['x'],_0x12b2ed['x'],_0x5a8d5d['x'],_0xe60b72['x']),...V(_0xba6486['y'],_0x12b2ed['y'],_0x5a8d5d['y'],_0xe60b72['y'])])[_0x367d44(0x1b3)](_0x4443f5=>{const _0x3e8b35=_0x367d44;_0x1c13ff[_0x3e8b35(0x1df)](B(_0xba6486,_0x12b2ed,_0x5a8d5d,_0xe60b72,_0x4443f5));});}function U(_0x2d4e99){const _0x159a8e=_0x1247;let _0xfe2a3a=_0x2d4e99[_0x159a8e(0x1f5)];if(_0xfe2a3a[_0x159a8e(0x1ed)]<=0x1)return _0xfe2a3a;let _0x46f4ed=[];for(let _0x2f3aa=0x1;_0x2f3aa<_0xfe2a3a[_0x159a8e(0x1ed)];_0x2f3aa++){let _0x4520fd=_0xfe2a3a[_0x2f3aa-0x1],_0x51134d=_0xfe2a3a[_0x2f3aa];H(_0x46f4ed,_0x4520fd,_0x4520fd[_0x159a8e(0x1bb)]??_0x4520fd,_0x51134d['in']??_0x51134d,_0x51134d);}if(_0x2d4e99['closed']&&_0xfe2a3a[_0x159a8e(0x1ed)]>0x1){let _0x14349e=_0xfe2a3a[_0xfe2a3a['length']-0x1],_0x3d8981=_0xfe2a3a[0x0];H(_0x46f4ed,_0x14349e,_0x14349e[_0x159a8e(0x1bb)]??_0x14349e,_0x3d8981['in']??_0x3d8981,_0x3d8981);}return _0x46f4ed;}function de(_0x44e1a1){const _0x11a065=_0x1247;let _0x14d706=_0x44e1a1[_0x11a065(0x208)];if(_0x14d706[_0x11a065(0x1ed)]<=0x1)return _0x14d706;let _0x37eccd=[];for(let _0x38c76f=0x0;_0x38c76f<_0x14d706[_0x11a065(0x1ed)]-0x1;_0x38c76f++){let _0x3d53c0=_0x14d706[_0x38c76f],_0x5c3a96=_0x14d706[_0x38c76f+0x1],_0x16f184=_0x14d706[_0x38c76f-0x1]??_0x3d53c0,_0x410d20=_0x14d706[_0x38c76f+0x2]??_0x5c3a96;H(_0x37eccd,_0x3d53c0,{'x':_0x3d53c0['x']+(_0x5c3a96['x']-_0x16f184['x'])/0x6,'y':_0x3d53c0['y']+(_0x5c3a96['y']-_0x16f184['y'])/0x6},{'x':_0x5c3a96['x']-(_0x410d20['x']-_0x3d53c0['x'])/0x6,'y':_0x5c3a96['y']-(_0x410d20['y']-_0x3d53c0['y'])/0x6},_0x5c3a96);}return _0x37eccd;}function fe(_0x1c6dba){const _0x259052=_0x1247;return _0x1c6dba[_0x259052(0x1fd)]===_0x259052(0x1d2)?U(_0x1c6dba):de(_0x1c6dba);}function W(_0x29f00a){const _0x4ea077=_0x1247;let _0x173a25=Math[_0x4ea077(0x1dd)](_0x29f00a*0x2710)/0x2710;return Object['is'](_0x173a25,-0x0)?0x0:_0x173a25;}function _0x5e32(){const _0x6b4596=['get','length','1.0.4','min','defineProperty','type','version','anchorId','norm','anchors','segmentIndex','opacity','height','_injector','object','_commandService','add','kind','start','UNIVER_UNKNOWN','onStarting','sqrt','max','__ink-preview-anchor__','join','symbol','endIndex','Rect','points','9772854ugicMH','_adapters','disposeWithMe','_config','map','free','anchor','ink.host-adapter.service','ink.config','3170100dmWcbD','fillColor','constructor','right','forEach','pluginName','@univerjs-pro/ink','Round','function','packageName','splice','iterator','out','831818YGeVfc','ratio','prototype','left','hypot','corner','filter','string','SolidFill','getOwnPropertyDescriptor','24FtfkoO','pointType','color','findIndex','default','2054105IMBKKN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','find','distance','closed','beginInkMode','6emhOSm','pen','8943147sEEyGH','startIndex','createCustomShape','createId','_configService','415744PpCgef','toPrimitive','registerAdapter','643728FfMiXI','setConfig','round','call','push','ink.operation.start','none','smooth','abs','indexOf','slice','NoFill','width','symmetric','tool','#f54a45','end'];_0x5e32=function(){return _0x6b4596;};return _0x5e32();}function _0x1247(_0x4ebae6,_0x51afc5){_0x4ebae6=_0x4ebae6-0x1ad;const _0x5e32d8=_0x5e32();let _0x12470c=_0x5e32d8[_0x4ebae6];return _0x12470c;}function G(_0x13fb34){const _0x4f0c20=_0x1247;let _0x107ea4=fe(_0x13fb34);if(_0x107ea4['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4cc750=Math['min'](..._0x107ea4['map'](_0x6619aa=>_0x6619aa['x'])),_0x17d386=Math[_0x4f0c20(0x1ef)](..._0x107ea4[_0x4f0c20(0x20d)](_0x4abcb4=>_0x4abcb4['y'])),_0x1b16b4=Math[_0x4f0c20(0x202)](..._0x107ea4['map'](_0x3f41d2=>_0x3f41d2['x'])),_0xcb32cd=Math[_0x4f0c20(0x202)](..._0x107ea4[_0x4f0c20(0x20d)](_0x59904e=>_0x59904e['y']));return{'left':W(_0x4cc750),'top':W(_0x17d386),'width':W(Math[_0x4f0c20(0x202)](0x1,_0x1b16b4-_0x4cc750)),'height':W(Math[_0x4f0c20(0x202)](0x1,_0xcb32cd-_0x17d386))};}function pe(_0x16ffbd,_0x506aca){const _0x4d1dfb=_0x1247;let _0x5b204c=_0x16ffbd[_0x4d1dfb(0x1f5)];if(_0x5b204c[_0x4d1dfb(0x1ed)]===0x0)return'';let _0x43588d=['M\x20'+R(z(_0x5b204c[0x0],_0x506aca))];for(let _0x3415d1=0x1;_0x3415d1<_0x5b204c[_0x4d1dfb(0x1ed)];_0x3415d1++){let _0x29b1a1=_0x5b204c[_0x3415d1-0x1],_0x3659ac=_0x5b204c[_0x3415d1],_0x4c30b2=_0x29b1a1[_0x4d1dfb(0x1bb)]??_0x29b1a1,_0x11f834=_0x3659ac['in']??_0x3659ac;_0x43588d[_0x4d1dfb(0x1df)]('C\x20'+R(z(_0x4c30b2,_0x506aca))+'\x20'+R(z(_0x11f834,_0x506aca))+'\x20'+R(z(_0x3659ac,_0x506aca)));}if(_0x16ffbd[_0x4d1dfb(0x1cf)]&&_0x5b204c[_0x4d1dfb(0x1ed)]>0x1){let _0xa4a418=_0x5b204c[_0x5b204c[_0x4d1dfb(0x1ed)]-0x1],_0xe0573=_0x5b204c[0x0],_0x182642=_0xa4a418[_0x4d1dfb(0x1bb)]??_0xa4a418,_0x4509b1=_0xe0573['in']??_0xe0573;_0x43588d[_0x4d1dfb(0x1df)]('C\x20'+R(z(_0x182642,_0x506aca))+'\x20'+R(z(_0x4509b1,_0x506aca))+'\x20'+R(z(_0xe0573,_0x506aca))),_0x43588d['push']('Z');}return _0x43588d[_0x4d1dfb(0x204)]('\x20');}function me(_0x17f697,_0x4a50af){const _0x58990b=_0x1247;let _0x33d50e=_0x17f697[_0x58990b(0x208)][_0x58990b(0x20d)](_0x506ddb=>z(_0x506ddb,_0x4a50af));if(_0x33d50e['length']===0x0)return'';if(_0x33d50e[_0x58990b(0x1ed)]===0x1)return'M\x20'+R(_0x33d50e[0x0]);let _0x10cc32=['M\x20'+R(_0x33d50e[0x0])];for(let _0x29251c=0x0;_0x29251c<_0x33d50e[_0x58990b(0x1ed)]-0x1;_0x29251c++){let _0x3a31be=_0x33d50e[_0x29251c],_0x4239cf=_0x33d50e[_0x29251c+0x1],_0x416d6b=_0x33d50e[_0x29251c-0x1]??_0x3a31be,_0x263443=_0x33d50e[_0x29251c+0x2]??_0x4239cf,_0x1c15da={'x':_0x3a31be['x']+(_0x4239cf['x']-_0x416d6b['x'])/0x6,'y':_0x3a31be['y']+(_0x4239cf['y']-_0x416d6b['y'])/0x6},_0x4b38de={'x':_0x4239cf['x']-(_0x263443['x']-_0x3a31be['x'])/0x6,'y':_0x4239cf['y']-(_0x263443['y']-_0x3a31be['y'])/0x6};_0x10cc32[_0x58990b(0x1df)]('C\x20'+R(_0x1c15da)+'\x20'+R(_0x4b38de)+'\x20'+R(_0x4239cf));}return _0x10cc32[_0x58990b(0x204)]('\x20');}function he(_0x45efc5,_0x1aa8e5){const _0x41ff42=_0x1247;return _0x45efc5['kind']===_0x41ff42(0x1d2)?pe(_0x45efc5,_0x1aa8e5):me(_0x45efc5,_0x1aa8e5);}function ge(_0x25df27,_0x127288){const _0x2449cc=_0x1247;return _0x127288!=null&&_0x127288[_0x2449cc(0x1c8)]?_0x127288['color']:_0x25df27[_0x2449cc(0x1fd)]===_0x2449cc(0x1d2)?_0x2449cc(0x1ea):_0x25df27[_0x2449cc(0x1c8)];}function _e(_0x2f7fd0,_0x55f884){const _0x189ca0=_0x1247;return(_0x55f884==null?void 0x0:_0x55f884['width'])===void 0x0?_0x2f7fd0[_0x189ca0(0x1fd)]===_0x189ca0(0x1d2)?0x2:_0x2f7fd0['width']:_0x55f884[_0x189ca0(0x1e7)];}function ve(_0x4b78e4,_0x1c9225){const _0x5c3791=_0x1247;return(_0x1c9225==null?void 0x0:_0x1c9225[_0x5c3791(0x1f7)])===void 0x0?_0x4b78e4[_0x5c3791(0x1fd)]===_0x5c3791(0x1d2)?void 0x0:_0x4b78e4['opacity']:_0x1c9225[_0x5c3791(0x1f7)];}function ye(_0x591fe8,_0x13d0ba){const _0x1e0b6d=_0x1247;let _0x35ec6c=G(_0x591fe8),_0x278053=he(_0x591fe8,{'x':_0x35ec6c[_0x1e0b6d(0x1bf)],'y':_0x35ec6c['top']}),_0x1c5fdc=_0x591fe8[_0x1e0b6d(0x1fd)]===_0x1e0b6d(0x1d2)&&_0x591fe8[_0x1e0b6d(0x1cf)],_0x16cf34=_0x13d0ba==null?void 0x0:_0x13d0ba[_0x1e0b6d(0x1b0)];return{'shapeType':_0x49cd1d[_0x1e0b6d(0x207)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x35ec6c['width'],'h':_0x35ec6c[_0x1e0b6d(0x1f8)],'fill':_0x1c5fdc?_0x1e0b6d(0x1f4):_0x1e0b6d(0x1e1),'stroke':!0x0,'data':_0x278053,'dataArray':be(_0x591fe8,{'x':_0x35ec6c[_0x1e0b6d(0x1bf)],'y':_0x35ec6c['top']})}]},'fill':_0x1c5fdc&&_0x16cf34?{'color':_0x16cf34,'fillType':_0x1ab911[_0x1e0b6d(0x1c4)]}:{'fillType':_0x1ab911[_0x1e0b6d(0x1e6)]},'stroke':{'color':ge(_0x591fe8,_0x13d0ba),'width':_e(_0x591fe8,_0x13d0ba),'opacity':ve(_0x591fe8,_0x13d0ba),'lineStrokeType':_0xb40238['SolidLine'],'capType':_0x52c57b[_0x1e0b6d(0x1b6)],'lineJoinType':_0x2ef3aa['Round']}};}function K(_0x25c047,_0x10945b){return{'x':_0x25c047['x']-_0x10945b['x'],'y':_0x25c047['y']-_0x10945b['y']};}function be(_0x49ae24,_0x3407d0){const _0x3f384c=_0x1247;if(_0x49ae24['kind']==='pen'){let _0x5af152=_0x49ae24[_0x3f384c(0x1f5)];if(_0x5af152[_0x3f384c(0x1ed)]===0x0)return[];let _0x3b818e=K(_0x5af152[0x0],_0x3407d0),_0x52062a=[{'command':'M','points':[_0x3b818e['x'],_0x3b818e['y']]}];for(let _0x189eb8=0x1;_0x189eb8<_0x5af152['length'];_0x189eb8++){let _0x41ff1b=_0x5af152[_0x189eb8-0x1],_0x4a50ee=_0x5af152[_0x189eb8],_0xbd7825=K(_0x41ff1b[_0x3f384c(0x1bb)]??_0x41ff1b,_0x3407d0),_0x266250=K(_0x4a50ee['in']??_0x4a50ee,_0x3407d0),_0x36b690=K(_0x4a50ee,_0x3407d0);_0x52062a['push']({'command':'C','points':[_0xbd7825['x'],_0xbd7825['y'],_0x266250['x'],_0x266250['y'],_0x36b690['x'],_0x36b690['y']]});}if(_0x49ae24[_0x3f384c(0x1cf)]&&_0x5af152[_0x3f384c(0x1ed)]>0x1){let _0x12bc0a=_0x5af152[_0x5af152['length']-0x1],_0x261cde=_0x5af152[0x0],_0x173658=K(_0x12bc0a['out']??_0x12bc0a,_0x3407d0),_0x3eb37e=K(_0x261cde['in']??_0x261cde,_0x3407d0),_0x5e4df2=K(_0x261cde,_0x3407d0);_0x52062a[_0x3f384c(0x1df)]({'command':'C','points':[_0x173658['x'],_0x173658['y'],_0x3eb37e['x'],_0x3eb37e['y'],_0x5e4df2['x'],_0x5e4df2['y']]}),_0x52062a[_0x3f384c(0x1df)]({'command':'z','points':[]});}return _0x52062a;}let _0x447ab4=_0x49ae24['points'][_0x3f384c(0x20d)](_0x3b9559=>K(_0x3b9559,_0x3407d0));if(_0x447ab4[_0x3f384c(0x1ed)]===0x0)return[];let _0x51a118=[{'command':'M','points':[_0x447ab4[0x0]['x'],_0x447ab4[0x0]['y']]}];for(let _0x1064e5=0x0;_0x1064e5<_0x447ab4['length']-0x1;_0x1064e5++){let _0x8547f7=_0x447ab4[_0x1064e5],_0x1ac900=_0x447ab4[_0x1064e5+0x1],_0x397300=_0x447ab4[_0x1064e5-0x1]??_0x8547f7,_0x25d6aa=_0x447ab4[_0x1064e5+0x2]??_0x1ac900,_0x120c79={'x':_0x8547f7['x']+(_0x1ac900['x']-_0x397300['x'])/0x6,'y':_0x8547f7['y']+(_0x1ac900['y']-_0x397300['y'])/0x6},_0x4a3ce1={'x':_0x1ac900['x']-(_0x25d6aa['x']-_0x8547f7['x'])/0x6,'y':_0x1ac900['y']-(_0x25d6aa['y']-_0x8547f7['y'])/0x6};_0x51a118[_0x3f384c(0x1df)]({'command':'C','points':[_0x120c79['x'],_0x120c79['y'],_0x4a3ce1['x'],_0x4a3ce1['y'],_0x1ac900['x'],_0x1ac900['y']]});}return _0x51a118;}function xe(_0x135e67){const _0x2240d5=_0x1247;let {model:_0x4a3419,sourceModel:_0x40ffa6=_0x4a3419,style:_0x27821f}=_0x135e67,_0x5b67e1=_0x135e67[_0x2240d5(0x1e9)]??_0x4a3419['kind'],_0x135f65=G(_0x4a3419),_0x1a8056=_0x4a3419[_0x2240d5(0x1fd)]===_0x2240d5(0x1d2)&&_0x5b67e1!=='pen'?_0x4a3419:void 0x0;return{'transform':{..._0x135f65,'rotation':0x0},'shapeData':ye(_0x4a3419,_0x27821f),'ink':{'version':0x1,'tool':_0x5b67e1,'sourceModel':_0x40ffa6,..._0x1a8056?{'editModel':_0x1a8056}:{},'normalizedBounds':_0x135f65}};}var Se=_0x4d5c9d(0x1b5),Ce=_0x4d5c9d(0x1ee);function q(_0x523eb3){'@babel/helpers - typeof';const _0x3aef37=_0x4d5c9d;return q=typeof Symbol==_0x3aef37(0x1b7)&&typeof Symbol[_0x3aef37(0x1ba)]==_0x3aef37(0x205)?function(_0x59cb69){return typeof _0x59cb69;}:function(_0x38333e){const _0x2ec18e=_0x3aef37;return _0x38333e&&typeof Symbol==_0x2ec18e(0x1b7)&&_0x38333e[_0x2ec18e(0x1b1)]===Symbol&&_0x38333e!==Symbol[_0x2ec18e(0x1be)]?'symbol':typeof _0x38333e;},q(_0x523eb3);}function we(_0x516bd9,_0x4c917f){const _0x42dce3=_0x4d5c9d;if(q(_0x516bd9)!=_0x42dce3(0x1fa)||!_0x516bd9)return _0x516bd9;var _0x5cb0d1=_0x516bd9[Symbol[_0x42dce3(0x1d9)]];if(_0x5cb0d1!==void 0x0){var _0x155937=_0x5cb0d1[_0x42dce3(0x1de)](_0x516bd9,_0x4c917f||_0x42dce3(0x1ca));if(q(_0x155937)!=_0x42dce3(0x1fa))return _0x155937;throw TypeError(_0x42dce3(0x1cc));}return(_0x4c917f===_0x42dce3(0x1c3)?String:Number)(_0x516bd9);}function J(_0x316c5b){const _0x934e81=_0x4d5c9d;var _0x11ab0c=we(_0x316c5b,_0x934e81(0x1c3));return q(_0x11ab0c)==_0x934e81(0x205)?_0x11ab0c:_0x11ab0c+'';}function Y(_0x1292fa,_0x169b40,_0xfb5be2){const _0x1573ed=_0x4d5c9d;return(_0x169b40=J(_0x169b40))in _0x1292fa?Object[_0x1573ed(0x1f0)](_0x1292fa,_0x169b40,{'value':_0xfb5be2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1292fa[_0x169b40]=_0xfb5be2,_0x1292fa;}const X=_0x5f2cbd(_0x4d5c9d(0x1ad));var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x4d5c9d(0x1da)](_0x9beaca){const _0x1fb571=_0x4d5c9d;return this[_0x1fb571(0x20a)][_0x1fb571(0x1df)](_0x9beaca),_0x5a5fba(()=>{const _0x64f852=_0x1fb571;let _0x17feb0=this[_0x64f852(0x20a)][_0x64f852(0x1e4)](_0x9beaca);_0x17feb0>=0x0&&this[_0x64f852(0x20a)][_0x64f852(0x1b9)](_0x17feb0,0x1);});}[_0x4d5c9d(0x1d0)](_0x1097ce){const _0x5c3a86=_0x4d5c9d;for(let _0x5e03b5 of this[_0x5c3a86(0x20a)])if(_0x5e03b5[_0x5c3a86(0x1d0)](_0x1097ce))return!0x0;return!0x1;}async[_0x4d5c9d(0x1d5)](_0x55619c){const _0x574625=_0x4d5c9d;for(let _0x570e6a of this['_adapters'])if(_0x570e6a['createCustomShape']&&await _0x570e6a[_0x574625(0x1d5)](_0x55619c))return!0x0;return!0x1;}};const Ee={'id':_0x4d5c9d(0x1e0),'type':_0x274185['OPERATION'],'handler':(_0x90e071,_0x25aab6)=>_0x25aab6?_0x90e071[_0x4d5c9d(0x1ec)](X)[_0x4d5c9d(0x1d0)](_0x25aab6):!0x1},Z={};function Q(_0x52643a,_0x30049b){return function(_0x3b837a,_0x44a9c6){_0x30049b(_0x3b837a,_0x44a9c6,_0x52643a);};}function De(_0x4c0535,_0x124e26,_0xdab5cd,_0x1b4623){const _0x4c4ad1=_0x4d5c9d;var _0x124e17=arguments[_0x4c4ad1(0x1ed)],_0x249b66=_0x124e17<0x3?_0x124e26:_0x1b4623===null?_0x1b4623=Object[_0x4c4ad1(0x1c5)](_0x124e26,_0xdab5cd):_0x1b4623,_0x15ca01;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x4c4ad1(0x1b7))_0x249b66=Reflect['decorate'](_0x4c0535,_0x124e26,_0xdab5cd,_0x1b4623);else{for(var _0x52ba24=_0x4c0535[_0x4c4ad1(0x1ed)]-0x1;_0x52ba24>=0x0;_0x52ba24--)(_0x15ca01=_0x4c0535[_0x52ba24])&&(_0x249b66=(_0x124e17<0x3?_0x15ca01(_0x249b66):_0x124e17>0x3?_0x15ca01(_0x124e26,_0xdab5cd,_0x249b66):_0x15ca01(_0x124e26,_0xdab5cd))||_0x249b66);}return _0x124e17>0x3&&_0x249b66&&Object[_0x4c4ad1(0x1f0)](_0x124e26,_0xdab5cd,_0x249b66),_0x249b66;}let $=class extends _0xd72275{constructor(_0x4e0fcd=Z,_0x4e9818,_0x212146,_0xde7c23){const _0xbcdfba=_0x4d5c9d;super(),this[_0xbcdfba(0x20c)]=_0x4e0fcd,this[_0xbcdfba(0x1f9)]=_0x4e9818,this[_0xbcdfba(0x1fb)]=_0x212146,this[_0xbcdfba(0x1d7)]=_0xde7c23;let {..._0x547ea9}=_0xe94c79({},Z,this[_0xbcdfba(0x20c)]);this[_0xbcdfba(0x1d7)][_0xbcdfba(0x1dc)](_0xbcdfba(0x1ae),_0x547ea9);}[_0x4d5c9d(0x200)](){const _0x4fcce1=_0x4d5c9d;[[X,{'useClass':Te}]]['forEach'](_0x5b972f=>this[_0x4fcce1(0x1f9)][_0x4fcce1(0x1fc)](_0x5b972f)),this[_0x4fcce1(0x20b)](this['_commandService']['registerCommand'](Ee));}};Y($,_0x4d5c9d(0x1b4),'UNIVER_INK_PLUGIN'),Y($,_0x4d5c9d(0x1b8),Se),Y($,_0x4d5c9d(0x1f2),Ce),Y($,_0x4d5c9d(0x1f1),_0x5eeb86[_0x4d5c9d(0x1ff)]),$=De([_0x2f0a1b(_0x57a878),Q(0x1,_0x304ec7(_0x404c68)),Q(0x2,_0x18c36a),Q(0x3,_0x4e83c9)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
|
|
1
|
+
const _0x43396f=_0x5b63;(function(_0x4c39c7,_0xda322d){const _0x232cbc=_0x5b63,_0x2be235=_0x4c39c7();while(!![]){try{const _0x28d0f5=-parseInt(_0x232cbc(0x1b5))/0x1+parseInt(_0x232cbc(0x1ab))/0x2*(-parseInt(_0x232cbc(0x1cb))/0x3)+-parseInt(_0x232cbc(0x1df))/0x4*(-parseInt(_0x232cbc(0x19c))/0x5)+-parseInt(_0x232cbc(0x1cc))/0x6*(-parseInt(_0x232cbc(0x1c4))/0x7)+-parseInt(_0x232cbc(0x1b7))/0x8*(-parseInt(_0x232cbc(0x1c7))/0x9)+-parseInt(_0x232cbc(0x1e7))/0xa*(-parseInt(_0x232cbc(0x1d0))/0xb)+-parseInt(_0x232cbc(0x1c9))/0xc;if(_0x28d0f5===_0xda322d)break;else _0x2be235['push'](_0x2be235['shift']());}catch(_0xa02555){_0x2be235['push'](_0x2be235['shift']());}}}(_0x2e72,0x2f376));import{ShapeFillEnum as _0x1415aa,ShapeLineCapEnum as _0x470397,ShapeLineJoinEnum as _0x34e189,ShapeLineTypeEnum as _0x2148f9,ShapeTypeEnum as _0x46da06}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x5cf441}from'@univerjs-pro/license';import{CommandType as _0x291e91,DependentOn as _0x40586b,ICommandService as _0x1fafaa,IConfigService as _0x214ca1,Inject as _0x4a0035,Injector as _0x5e60e7,Plugin as _0x23a329,UniverInstanceType as _0x4b2236,createIdentifier as _0x3acfc4,merge as _0x488fc2,toDisposable as _0x5c9d22}from'@univerjs/core';const g=0.0001;function _(_0x4ec654){return{'x':_0x4ec654['x'],'y':_0x4ec654['y']};}function v(_0x29d4c8){const _0x1144ff=_0x5b63;return{..._0x29d4c8,'in':_0x29d4c8['in']?_(_0x29d4c8['in']):void 0x0,'out':_0x29d4c8[_0x1144ff(0x1e5)]?_(_0x29d4c8[_0x1144ff(0x1e5)]):void 0x0};}function y(_0x975f0){const _0x549241=_0x5b63;return{'kind':_0x549241(0x1dc),'closed':_0x975f0['closed'],'anchors':_0x975f0[_0x549241(0x1f0)][_0x549241(0x196)](v)};}function b(_0x47445f,_0x552e91,_0x45e702){return{'x':_0x47445f['x']+(_0x552e91['x']-_0x47445f['x'])*_0x45e702,'y':_0x47445f['y']+(_0x552e91['y']-_0x47445f['y'])*_0x45e702};}function x(_0x4239f2,_0x2e359c){const _0x3d644b=_0x5b63;return Math[_0x3d644b(0x1ca)](_0x4239f2['x']-_0x2e359c['x'],_0x4239f2['y']-_0x2e359c['y']);}function S(_0x4e1cc6){let _0x47a728=Math['hypot'](_0x4e1cc6['x'],_0x4e1cc6['y']);return _0x47a728<g?{'x':0x1,'y':0x0}:{'x':_0x4e1cc6['x']/_0x47a728,'y':_0x4e1cc6['y']/_0x47a728};}function C(_0x2c4165,_0x7cf372,_0x1a625b=x(_0x2c4165,_0x7cf372)){let _0x42174e=S({'x':_0x2c4165['x']-_0x7cf372['x'],'y':_0x2c4165['y']-_0x7cf372['y']});return{'x':_0x2c4165['x']+_0x42174e['x']*_0x1a625b,'y':_0x2c4165['y']+_0x42174e['y']*_0x1a625b};}function w(_0x361a5c,_0x4153ef){const _0x2af2f7=_0x5b63;let {anchors:_0x31dbbe}=_0x361a5c;return _0x31dbbe[_0x2af2f7(0x1ad)]<0x2||_0x4153ef<0x0?null:_0x4153ef<_0x31dbbe[_0x2af2f7(0x1ad)]-0x1?{'startIndex':_0x4153ef,'endIndex':_0x4153ef+0x1,'start':_0x31dbbe[_0x4153ef],'end':_0x31dbbe[_0x4153ef+0x1]}:_0x361a5c['closed']&&_0x4153ef===_0x31dbbe[_0x2af2f7(0x1ad)]-0x1?{'startIndex':_0x31dbbe[_0x2af2f7(0x1ad)]-0x1,'endIndex':0x0,'start':_0x31dbbe[_0x31dbbe[_0x2af2f7(0x1ad)]-0x1],'end':_0x31dbbe[0x0]}:null;}function T(_0x4ee2f4,_0x269f1a){const _0x49dacf=_0x5b63;let _0x4b740a=w(_0x4ee2f4,_0x269f1a);return _0x4b740a?[_0x4b740a['start'],_0x4b740a['start'][_0x49dacf(0x1e5)]??_0x4b740a[_0x49dacf(0x1c6)],_0x4b740a['end']['in']??_0x4b740a[_0x49dacf(0x1b6)],_0x4b740a[_0x49dacf(0x1b6)]]:null;}function te(_0x2dd2df,_0x1aad87){const _0x31a03d=_0x5b63;return _0x1aad87===_0x31a03d(0x1ee)?_0x2dd2df:_0x2dd2df[_0x1aad87]??null;}function E(_0x186b29,_0x3c5daf,_0x64e68){const _0x3a9a78=_0x5b63;return _0x64e68===_0x3a9a78(0x1ee)||_0x186b29[_0x3a9a78(0x192)]?!0x0:_0x64e68==='in'?_0x3c5daf>0x0:_0x3c5daf<_0x186b29[_0x3a9a78(0x1f0)][_0x3a9a78(0x1ad)]-0x1;}function D(_0x3aa310,_0x5cce6e){let [_0x507bf3,_0x212d02,_0x1750a1,_0x1098c2]=_0x3aa310,_0x171bae=b(_0x507bf3,_0x212d02,_0x5cce6e),_0x29cd81=b(_0x212d02,_0x1750a1,_0x5cce6e),_0x5ba6b4=b(_0x1750a1,_0x1098c2,_0x5cce6e);return b(b(_0x171bae,_0x29cd81,_0x5cce6e),b(_0x29cd81,_0x5ba6b4,_0x5cce6e),_0x5cce6e);}function ne(_0x425162,_0x9db1fc){let [_0x3cb3eb,_0x345d80,_0xff87cb,_0x35154e]=_0x425162,_0xfa8fd1=b(_0x3cb3eb,_0x345d80,_0x9db1fc),_0x2835e3=b(_0x345d80,_0xff87cb,_0x9db1fc),_0x1a8089=b(_0xff87cb,_0x35154e,_0x9db1fc),_0x2c73b4=b(_0xfa8fd1,_0x2835e3,_0x9db1fc),_0x51e7f5=b(_0x2835e3,_0x1a8089,_0x9db1fc),_0x3d8224=b(_0x2c73b4,_0x51e7f5,_0x9db1fc);return{'left':[_0x3cb3eb,_0xfa8fd1,_0x2c73b4,_0x3d8224],'right':[_0x3d8224,_0x51e7f5,_0x1a8089,_0x35154e]};}function O(_0x1da999,_0x3e50b8,_0x5d2a6f){const _0x422541=_0x5b63;let _0x1efa5c=_0x5d2a6f['x']-_0x3e50b8['x'],_0x4fccbc=_0x5d2a6f['y']-_0x3e50b8['y'],_0x2e2b47=_0x1efa5c*_0x1efa5c+_0x4fccbc*_0x4fccbc,_0x4491ea=_0x2e2b47<=g?0x0:Math[_0x422541(0x1c5)](0x0,Math[_0x422541(0x1de)](0x1,((_0x1da999['x']-_0x3e50b8['x'])*_0x1efa5c+(_0x1da999['y']-_0x3e50b8['y'])*_0x4fccbc)/_0x2e2b47)),_0x465e22={'x':_0x3e50b8['x']+_0x1efa5c*_0x4491ea,'y':_0x3e50b8['y']+_0x4fccbc*_0x4491ea};return{'point':_0x465e22,'ratio':_0x4491ea,'distance':x(_0x1da999,_0x465e22)};}function re(_0x3cff44,_0x1d2224,_0x12ee58){const _0x20d29b=_0x5b63;return O(_0x3cff44,_0x1d2224,_0x12ee58)[_0x20d29b(0x1a2)]**0x2;}function k(_0x138460,_0x2d1853){const _0x2c2f3f=_0x5b63;if(_0x138460[_0x2c2f3f(0x1ad)]<=0x2)return _0x138460['map'](_);let _0x3e1b2d=0x0,_0x14b18e=0x0,_0x5eeb76=_0x138460[0x0],_0x1bbf4b=_0x138460[_0x138460[_0x2c2f3f(0x1ad)]-0x1],_0x3923c9=_0x2d1853*_0x2d1853;for(let _0x231204=0x1;_0x231204<_0x138460['length']-0x1;_0x231204++){let _0x4d01a6=re(_0x138460[_0x231204],_0x5eeb76,_0x1bbf4b);_0x4d01a6>_0x3e1b2d&&(_0x3e1b2d=_0x4d01a6,_0x14b18e=_0x231204);}if(_0x3e1b2d<=_0x3923c9)return[_(_0x5eeb76),_(_0x1bbf4b)];let _0x3eda5c=k(_0x138460[_0x2c2f3f(0x1ac)](0x0,_0x14b18e+0x1),_0x2d1853),_0xa5f11a=k(_0x138460[_0x2c2f3f(0x1ac)](_0x14b18e),_0x2d1853);return[..._0x3eda5c['slice'](0x0,-0x1),..._0xa5f11a];}function ie(_0x1b7adf,_0x2f2ada){let _0x3b78b5=_0x1b7adf[_0x2f2ada],_0x35f91b=_0x1b7adf[_0x2f2ada+0x1],_0x4a7258=_0x1b7adf[_0x2f2ada-0x1]??_0x3b78b5;return{'x':_0x3b78b5['x']+(_0x35f91b['x']-_0x4a7258['x'])/0x6,'y':_0x3b78b5['y']+(_0x35f91b['y']-_0x4a7258['y'])/0x6};}function A(_0x2a4cb0,_0x3f14ca){let _0x40aaf7=_0x2a4cb0[_0x3f14ca],_0x4de17b=_0x2a4cb0[_0x3f14ca-0x1],_0x35921f=_0x2a4cb0[_0x3f14ca+0x1]??_0x40aaf7;return{'x':_0x40aaf7['x']-(_0x35921f['x']-_0x4de17b['x'])/0x6,'y':_0x40aaf7['y']-(_0x35921f['y']-_0x4de17b['y'])/0x6};}function j(_0x408c38,_0x50395c){const _0x5e790e=_0x5b63;let _0x52d51b=_0x408c38['anchors'][_0x50395c],_0x5f4790=_0x408c38[_0x5e790e(0x1f0)][_0x50395c-0x1]??(_0x408c38[_0x5e790e(0x192)]?_0x408c38['anchors'][_0x408c38[_0x5e790e(0x1f0)][_0x5e790e(0x1ad)]-0x1]:null),_0x70b51c=_0x408c38[_0x5e790e(0x1f0)][_0x50395c+0x1]??(_0x408c38[_0x5e790e(0x192)]?_0x408c38[_0x5e790e(0x1f0)][0x0]:null),_0x3dd1b7=_0x5f4790&&_0x70b51c?S({'x':_0x70b51c['x']-_0x5f4790['x'],'y':_0x70b51c['y']-_0x5f4790['y']}):_0x70b51c?S({'x':_0x70b51c['x']-_0x52d51b['x'],'y':_0x70b51c['y']-_0x52d51b['y']}):_0x5f4790?S({'x':_0x52d51b['x']-_0x5f4790['x'],'y':_0x52d51b['y']-_0x5f4790['y']}):{'x':0x1,'y':0x0},_0x39e097=_0x5f4790&&_0x70b51c?Math[_0x5e790e(0x1c5)](0x32,x(_0x5f4790,_0x70b51c)/0x4):0x32;return{'in':{'x':_0x52d51b['x']-_0x3dd1b7['x']*_0x39e097,'y':_0x52d51b['y']-_0x3dd1b7['y']*_0x39e097},'out':{'x':_0x52d51b['x']+_0x3dd1b7['x']*_0x39e097,'y':_0x52d51b['y']+_0x3dd1b7['y']*_0x39e097}};}function M(_0xde4f53,_0x543632){const _0x211b55=_0x5b63;let _0x3bbe5a=_0xde4f53[_0x543632],_0x436761=_0x543632==='in'?'out':'in',_0x2577be=_0xde4f53[_0x436761];_0x3bbe5a&&(_0xde4f53[_0x211b55(0x1ba)]===_0x211b55(0x1da)?_0xde4f53[_0x436761]=C(_0xde4f53,_0x3bbe5a):_0xde4f53[_0x211b55(0x1ba)]===_0x211b55(0x1a6)&&(_0xde4f53[_0x436761]=C(_0xde4f53,_0x3bbe5a,_0x2577be?x(_0xde4f53,_0x2577be):x(_0xde4f53,_0x3bbe5a))));}function ae(_0x361f78,_0x4b0a66){const _0x3e0528=_0x5b63;let _0x21564a=y(_0x361f78);return!_0x4b0a66||_0x21564a[_0x3e0528(0x192)]||_0x21564a[_0x3e0528(0x1f0)][_0x3e0528(0x1ad)]===0x0||_0x21564a[_0x3e0528(0x1f0)][_0x3e0528(0x199)]({'id':_0x3e0528(0x1e9),'x':_0x4b0a66['x'],'y':_0x4b0a66['y'],'pointType':_0x3e0528(0x1c8)}),_0x21564a;}function oe(_0x171597,_0x23ad12={}){const _0x585999=_0x5b63;let _0x33fb6a=Math[_0x585999(0x1c5)](0x0,_0x23ad12['tolerance']??Math['max'](0x4,_0x171597[_0x585999(0x1c3)]*0.35)),_0xa8f2a6=_0x23ad12[_0x585999(0x1a8)]??(_0x10e982=>'ink-centerline-'+_0x10e982),_0x2b86f1=k(_0x171597[_0x585999(0x195)],_0x33fb6a),_0x5406e1=_0x2b86f1['map']((_0x28bbfa,_0x2ff424)=>({'id':_0xa8f2a6(_0x2ff424),'x':_0x28bbfa['x'],'y':_0x28bbfa['y'],'pointType':_0x585999(0x1ea)}));for(let _0x235b0d=0x0;_0x235b0d<_0x5406e1[_0x585999(0x1ad)]-0x1;_0x235b0d++)_0x5406e1[_0x235b0d][_0x585999(0x1e5)]=ie(_0x2b86f1,_0x235b0d),_0x5406e1[_0x235b0d+0x1]['in']=A(_0x2b86f1,_0x235b0d+0x1);return{'kind':_0x585999(0x1dc),'closed':!0x1,'anchors':_0x5406e1};}function se(_0x58fda9,_0x4d3928,_0x51dcbb){const _0x17c666=_0x5b63;let _0x44aca8=null,_0x5bc17b=[_0x17c666(0x1ee),'in',_0x17c666(0x1e5)];return _0x58fda9[_0x17c666(0x1f0)][_0x17c666(0x19e)]((_0x360f6a,_0x42da95)=>{const _0x15339=_0x17c666;_0x5bc17b[_0x15339(0x19e)](_0x55de48=>{const _0x1beed8=_0x15339;if(!E(_0x58fda9,_0x42da95,_0x55de48))return;let _0x4799f3=te(_0x360f6a,_0x55de48);if(!_0x4799f3)return;let _0x1dfcb1=x(_0x4d3928,_0x4799f3);_0x1dfcb1>_0x51dcbb||_0x44aca8&&_0x1dfcb1>=_0x44aca8[_0x1beed8(0x1a2)]||(_0x44aca8={'handle':{'kind':_0x55de48,'anchorId':_0x360f6a['id']},'point':_(_0x4799f3),'distance':_0x1dfcb1});});}),_0x44aca8;}function ce(_0x25c6f9,_0x936968,_0x217cd5){const _0x162939=_0x5b63;let _0x300196=null,_0x3b5600=_0x25c6f9[_0x162939(0x192)]?_0x25c6f9[_0x162939(0x1f0)]['length']:Math['max'](0x0,_0x25c6f9['anchors']['length']-0x1);for(let _0xdd6ac4=0x0;_0xdd6ac4<_0x3b5600;_0xdd6ac4++){let _0x513128=T(_0x25c6f9,_0xdd6ac4);if(!_0x513128)continue;let _0x3fa3d0=D(_0x513128,0x0);for(let _0x21494c=0x1;_0x21494c<=0x20;_0x21494c++){let _0x5a1a35=D(_0x513128,_0x21494c/0x20),_0x3ea94b=O(_0x936968,_0x3fa3d0,_0x5a1a35),_0xbd4031=(_0x21494c-0x1+_0x3ea94b['ratio'])/0x20;(!_0x300196||_0x3ea94b[_0x162939(0x1a2)]<_0x300196['distance'])&&(_0x300196={'segmentIndex':_0xdd6ac4,'t':_0xbd4031,'point':_0x3ea94b[_0x162939(0x1e0)],'distance':_0x3ea94b[_0x162939(0x1a2)]}),_0x3fa3d0=_0x5a1a35;}}return _0x300196&&_0x300196[_0x162939(0x1a2)]<=_0x217cd5?_0x300196:null;}function le(_0x617879,_0x40d83e,_0x1830be){const _0x465052=_0x5b63;let _0xe7e6a2=y(_0x617879),_0x19456e=w(_0xe7e6a2,_0x40d83e['segmentIndex']),_0x3d2114=T(_0xe7e6a2,_0x40d83e[_0x465052(0x1af)]);if(!_0x19456e||!_0x3d2114)return _0xe7e6a2;let _0xf3e387=ne(_0x3d2114,Math['max'](0x0,Math['min'](0x1,_0x40d83e['t']))),_0x52463f={'id':_0x1830be(),'x':_0xf3e387[_0x465052(0x1ce)][0x3]['x'],'y':_0xf3e387[_0x465052(0x1ce)][0x3]['y'],'in':_(_0xf3e387[_0x465052(0x1ce)][0x2]),'out':_(_0xf3e387[_0x465052(0x1d4)][0x1]),'pointType':_0x465052(0x1ea)};return _0xe7e6a2[_0x465052(0x1f0)][_0x19456e[_0x465052(0x1d1)]][_0x465052(0x1e5)]=_(_0xf3e387['left'][0x1]),_0xe7e6a2['anchors'][_0x19456e[_0x465052(0x1cf)]]['in']=_(_0xf3e387[_0x465052(0x1d4)][0x2]),_0xe7e6a2[_0x465052(0x1f0)]['splice'](_0x19456e[_0x465052(0x1d1)]+0x1,0x0,_0x52463f),_0xe7e6a2;}function ue(_0x2a5859,_0x214708){const _0x30fadd=_0x5b63;let _0x4b1f8d=y(_0x2a5859);return _0x4b1f8d['anchors']=_0x4b1f8d[_0x30fadd(0x1f0)]['filter'](_0x31d649=>_0x31d649['id']!==_0x214708),_0x4b1f8d['closed']&&_0x4b1f8d[_0x30fadd(0x1f0)][_0x30fadd(0x1ad)]<0x3&&(_0x4b1f8d[_0x30fadd(0x192)]=!0x1),_0x4b1f8d;}function _0x5b63(_0x5d7baa,_0xe0f7b1){_0x5d7baa=_0x5d7baa-0x192;const _0x2e7274=_0x2e72();let _0x5b6305=_0x2e7274[_0x5d7baa];return _0x5b6305;}function N(_0x4e91ce,_0x29da09,_0x56f6d4){const _0xcef981=_0x5b63;let _0x1580e8=y(_0x4e91ce),_0x46fe69=_0x1580e8[_0xcef981(0x1f0)][_0xcef981(0x1cd)](_0x13e044=>_0x13e044['id']===_0x29da09),_0x437eac=_0x1580e8[_0xcef981(0x1f0)][_0x46fe69];if(!_0x437eac)return _0x1580e8;if(_0x437eac[_0xcef981(0x1ba)]=_0x56f6d4,_0x56f6d4==='corner')return delete _0x437eac['in'],delete _0x437eac[_0xcef981(0x1e5)],_0x1580e8;let _0x516e33=j(_0x1580e8,_0x46fe69);if(_0x437eac['in']=_0x437eac['in']?_(_0x437eac['in']):_0x516e33['in'],_0x437eac[_0xcef981(0x1e5)]=_0x437eac[_0xcef981(0x1e5)]?_(_0x437eac[_0xcef981(0x1e5)]):_0x516e33[_0xcef981(0x1e5)],_0x56f6d4===_0xcef981(0x1da)){let _0x1e4ec2=Math[_0xcef981(0x1c5)](x(_0x437eac,_0x437eac['in']),x(_0x437eac,_0x437eac[_0xcef981(0x1e5)]),0x32),_0x55293d=S({'x':_0x437eac[_0xcef981(0x1e5)]['x']-_0x437eac['x'],'y':_0x437eac[_0xcef981(0x1e5)]['y']-_0x437eac['y']});_0x437eac['out']={'x':_0x437eac['x']+_0x55293d['x']*_0x1e4ec2,'y':_0x437eac['y']+_0x55293d['y']*_0x1e4ec2},_0x437eac['in']={'x':_0x437eac['x']-_0x55293d['x']*_0x1e4ec2,'y':_0x437eac['y']-_0x55293d['y']*_0x1e4ec2};}else _0x56f6d4==='smooth'&&M(_0x437eac,_0xcef981(0x1e5));return _0x1580e8;}function P(_0x3b045a,_0xcdb09e){const _0x45f1ba=_0x5b63;let _0x1ec69d=_0x3b045a[_0x45f1ba(0x1f0)][_0x45f1ba(0x1b9)](_0x2a6b10=>_0x2a6b10['id']===_0xcdb09e),_0x3862a2=(_0x1ec69d==null?void 0x0:_0x1ec69d[_0x45f1ba(0x1ba)])??_0x45f1ba(0x1c8);return N(_0x3b045a,_0xcdb09e,_0x3862a2==='corner'?_0x45f1ba(0x1a6):_0x3862a2===_0x45f1ba(0x1a6)?_0x45f1ba(0x1da):_0x3862a2===_0x45f1ba(0x1da)?_0x45f1ba(0x1ea):_0x45f1ba(0x1c8));}function F(_0x1740c2,_0x2c61fc,_0x14584b){const _0x434dbc=_0x5b63;let _0x241490=y(_0x1740c2),_0x3909a8=_0x241490['anchors']['find'](_0x3caa35=>_0x3caa35['id']===_0x2c61fc['anchorId']);if(!_0x3909a8)return _0x241490;if(_0x2c61fc[_0x434dbc(0x1b4)]===_0x434dbc(0x1ee)){let _0x592235={'x':_0x14584b['x']-_0x3909a8['x'],'y':_0x14584b['y']-_0x3909a8['y']};return _0x3909a8['x']=_0x14584b['x'],_0x3909a8['y']=_0x14584b['y'],_0x3909a8['in']&&={'x':_0x3909a8['in']['x']+_0x592235['x'],'y':_0x3909a8['in']['y']+_0x592235['y']},_0x3909a8[_0x434dbc(0x1e5)]&&={'x':_0x3909a8[_0x434dbc(0x1e5)]['x']+_0x592235['x'],'y':_0x3909a8['out']['y']+_0x592235['y']},_0x241490;}return _0x3909a8[_0x2c61fc[_0x434dbc(0x1b4)]]=_(_0x14584b),_0x3909a8[_0x434dbc(0x1ba)]===_0x434dbc(0x1c8)&&(_0x3909a8[_0x434dbc(0x1ba)]=_0x434dbc(0x1ea)),M(_0x3909a8,_0x2c61fc[_0x434dbc(0x1b4)]),_0x241490;}const I=1e-9;function L(_0x1af70c){const _0x3fe7f2=_0x5b63;let _0x5dd935=Math[_0x3fe7f2(0x197)](_0x1af70c*0x2710)/0x2710;return Object['is'](_0x5dd935,-0x0)?'0':String(_0x5dd935);}function R(_0x38220b){return L(_0x38220b['x'])+'\x20'+L(_0x38220b['y']);}function z(_0x30ce80,_0x175b51){return{'x':_0x30ce80['x']-_0x175b51['x'],'y':_0x30ce80['y']-_0x175b51['y']};}function B(_0x4b816f,_0x3915b3,_0x5c78b8,_0x17cfe7,_0x1816ec){let _0x56581d=0x1-_0x1816ec;return{'x':_0x56581d*_0x56581d*_0x56581d*_0x4b816f['x']+0x3*_0x56581d*_0x56581d*_0x1816ec*_0x3915b3['x']+0x3*_0x56581d*_0x1816ec*_0x1816ec*_0x5c78b8['x']+_0x1816ec*_0x1816ec*_0x1816ec*_0x17cfe7['x'],'y':_0x56581d*_0x56581d*_0x56581d*_0x4b816f['y']+0x3*_0x56581d*_0x56581d*_0x1816ec*_0x3915b3['y']+0x3*_0x56581d*_0x1816ec*_0x1816ec*_0x5c78b8['y']+_0x1816ec*_0x1816ec*_0x1816ec*_0x17cfe7['y']};}function V(_0x18e54d,_0x5813d1,_0x545969,_0x32312c){const _0x41c53f=_0x5b63;let _0x4b9f73=-_0x18e54d+0x3*_0x5813d1-0x3*_0x545969+_0x32312c,_0x14e391=0x3*_0x18e54d-0x6*_0x5813d1+0x3*_0x545969,_0x39476b=-0x3*_0x18e54d+0x3*_0x5813d1,_0x466e48=[];if(Math[_0x41c53f(0x1ef)](_0x4b9f73)<I){if(Math[_0x41c53f(0x1ef)](_0x14e391)<I)return _0x466e48;let _0x47b5c2=-_0x39476b/(0x2*_0x14e391);return _0x47b5c2>0x0&&_0x47b5c2<0x1&&_0x466e48[_0x41c53f(0x199)](_0x47b5c2),_0x466e48;}let _0x4691fd=_0x14e391*_0x14e391-0x3*_0x4b9f73*_0x39476b;if(_0x4691fd<0x0)return _0x466e48;let _0x567805=Math[_0x41c53f(0x1eb)](Math[_0x41c53f(0x1c5)](0x0,_0x4691fd)),_0x336e74=(-_0x14e391+_0x567805)/(0x3*_0x4b9f73),_0x579f5b=(-_0x14e391-_0x567805)/(0x3*_0x4b9f73);return _0x336e74>0x0&&_0x336e74<0x1&&_0x466e48['push'](_0x336e74),_0x579f5b>0x0&&_0x579f5b<0x1&&Math[_0x41c53f(0x1ef)](_0x579f5b-_0x336e74)>I&&_0x466e48['push'](_0x579f5b),_0x466e48;}function H(_0x5ced87,_0xf5e7c,_0x2aebb5,_0x146f57,_0xef08be){const _0x55dcce=_0x5b63;_0x5ced87[_0x55dcce(0x199)](_0xf5e7c,_0xef08be),new Set([...V(_0xf5e7c['x'],_0x2aebb5['x'],_0x146f57['x'],_0xef08be['x']),...V(_0xf5e7c['y'],_0x2aebb5['y'],_0x146f57['y'],_0xef08be['y'])])['forEach'](_0x5de4d9=>{const _0x34e751=_0x55dcce;_0x5ced87[_0x34e751(0x199)](B(_0xf5e7c,_0x2aebb5,_0x146f57,_0xef08be,_0x5de4d9));});}function U(_0x1333aa){const _0x7e9915=_0x5b63;let _0x2986be=_0x1333aa[_0x7e9915(0x1f0)];if(_0x2986be[_0x7e9915(0x1ad)]<=0x1)return _0x2986be;let _0x5cbc52=[];for(let _0x35e4b6=0x1;_0x35e4b6<_0x2986be[_0x7e9915(0x1ad)];_0x35e4b6++){let _0x18fb54=_0x2986be[_0x35e4b6-0x1],_0x37b667=_0x2986be[_0x35e4b6];H(_0x5cbc52,_0x18fb54,_0x18fb54[_0x7e9915(0x1e5)]??_0x18fb54,_0x37b667['in']??_0x37b667,_0x37b667);}if(_0x1333aa[_0x7e9915(0x192)]&&_0x2986be[_0x7e9915(0x1ad)]>0x1){let _0x2ef0cf=_0x2986be[_0x2986be[_0x7e9915(0x1ad)]-0x1],_0x39d297=_0x2986be[0x0];H(_0x5cbc52,_0x2ef0cf,_0x2ef0cf[_0x7e9915(0x1e5)]??_0x2ef0cf,_0x39d297['in']??_0x39d297,_0x39d297);}return _0x5cbc52;}function de(_0x4e31a3){const _0x2bbfe9=_0x5b63;let _0x604d13=_0x4e31a3[_0x2bbfe9(0x195)];if(_0x604d13[_0x2bbfe9(0x1ad)]<=0x1)return _0x604d13;let _0x4dfb6b=[];for(let _0x151291=0x0;_0x151291<_0x604d13['length']-0x1;_0x151291++){let _0xecb5ef=_0x604d13[_0x151291],_0x3c0222=_0x604d13[_0x151291+0x1],_0x1472b0=_0x604d13[_0x151291-0x1]??_0xecb5ef,_0x45ea24=_0x604d13[_0x151291+0x2]??_0x3c0222;H(_0x4dfb6b,_0xecb5ef,{'x':_0xecb5ef['x']+(_0x3c0222['x']-_0x1472b0['x'])/0x6,'y':_0xecb5ef['y']+(_0x3c0222['y']-_0x1472b0['y'])/0x6},{'x':_0x3c0222['x']-(_0x45ea24['x']-_0xecb5ef['x'])/0x6,'y':_0x3c0222['y']-(_0x45ea24['y']-_0xecb5ef['y'])/0x6},_0x3c0222);}return _0x4dfb6b;}function fe(_0x172440){const _0x6fc696=_0x5b63;return _0x172440[_0x6fc696(0x1b4)]===_0x6fc696(0x1dc)?U(_0x172440):de(_0x172440);}function W(_0x4e2575){const _0x4fcd51=_0x5b63;let _0x4d4ea1=Math[_0x4fcd51(0x197)](_0x4e2575*0x2710)/0x2710;return Object['is'](_0x4d4ea1,-0x0)?0x0:_0x4d4ea1;}function G(_0x332840){const _0x1a3809=_0x5b63;let _0x23f35e=fe(_0x332840);if(_0x23f35e[_0x1a3809(0x1ad)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3211cf=Math['min'](..._0x23f35e[_0x1a3809(0x196)](_0x9432b5=>_0x9432b5['x'])),_0x11de0d=Math['min'](..._0x23f35e[_0x1a3809(0x196)](_0x3d21bd=>_0x3d21bd['y'])),_0x4de426=Math[_0x1a3809(0x1c5)](..._0x23f35e['map'](_0x466622=>_0x466622['x'])),_0x1d9d91=Math['max'](..._0x23f35e['map'](_0x201f1f=>_0x201f1f['y']));return{'left':W(_0x3211cf),'top':W(_0x11de0d),'width':W(Math['max'](0x1,_0x4de426-_0x3211cf)),'height':W(Math['max'](0x1,_0x1d9d91-_0x11de0d))};}function pe(_0x521836,_0x4fdbc0){const _0x34b0a2=_0x5b63;let _0x19e0a9=_0x521836['anchors'];if(_0x19e0a9[_0x34b0a2(0x1ad)]===0x0)return'';let _0x1d8e3d=['M\x20'+R(z(_0x19e0a9[0x0],_0x4fdbc0))];for(let _0x487fe1=0x1;_0x487fe1<_0x19e0a9[_0x34b0a2(0x1ad)];_0x487fe1++){let _0x5ec2ca=_0x19e0a9[_0x487fe1-0x1],_0x18235d=_0x19e0a9[_0x487fe1],_0x2acc6a=_0x5ec2ca[_0x34b0a2(0x1e5)]??_0x5ec2ca,_0x2a898c=_0x18235d['in']??_0x18235d;_0x1d8e3d[_0x34b0a2(0x199)]('C\x20'+R(z(_0x2acc6a,_0x4fdbc0))+'\x20'+R(z(_0x2a898c,_0x4fdbc0))+'\x20'+R(z(_0x18235d,_0x4fdbc0)));}if(_0x521836[_0x34b0a2(0x192)]&&_0x19e0a9[_0x34b0a2(0x1ad)]>0x1){let _0x3b31e9=_0x19e0a9[_0x19e0a9[_0x34b0a2(0x1ad)]-0x1],_0x29554c=_0x19e0a9[0x0],_0x1cdd63=_0x3b31e9[_0x34b0a2(0x1e5)]??_0x3b31e9,_0x5a814c=_0x29554c['in']??_0x29554c;_0x1d8e3d['push']('C\x20'+R(z(_0x1cdd63,_0x4fdbc0))+'\x20'+R(z(_0x5a814c,_0x4fdbc0))+'\x20'+R(z(_0x29554c,_0x4fdbc0))),_0x1d8e3d[_0x34b0a2(0x199)]('Z');}return _0x1d8e3d[_0x34b0a2(0x1d8)]('\x20');}function me(_0x259bd0,_0x1ef7ae){const _0x551ef0=_0x5b63;let _0x20ac1d=_0x259bd0[_0x551ef0(0x195)]['map'](_0x566651=>z(_0x566651,_0x1ef7ae));if(_0x20ac1d[_0x551ef0(0x1ad)]===0x0)return'';if(_0x20ac1d[_0x551ef0(0x1ad)]===0x1)return'M\x20'+R(_0x20ac1d[0x0]);let _0x5483c5=['M\x20'+R(_0x20ac1d[0x0])];for(let _0x5364da=0x0;_0x5364da<_0x20ac1d[_0x551ef0(0x1ad)]-0x1;_0x5364da++){let _0x256ccf=_0x20ac1d[_0x5364da],_0x52948f=_0x20ac1d[_0x5364da+0x1],_0x1997a1=_0x20ac1d[_0x5364da-0x1]??_0x256ccf,_0x14a1f7=_0x20ac1d[_0x5364da+0x2]??_0x52948f,_0x2d57bb={'x':_0x256ccf['x']+(_0x52948f['x']-_0x1997a1['x'])/0x6,'y':_0x256ccf['y']+(_0x52948f['y']-_0x1997a1['y'])/0x6},_0x3bcc5d={'x':_0x52948f['x']-(_0x14a1f7['x']-_0x256ccf['x'])/0x6,'y':_0x52948f['y']-(_0x14a1f7['y']-_0x256ccf['y'])/0x6};_0x5483c5[_0x551ef0(0x199)]('C\x20'+R(_0x2d57bb)+'\x20'+R(_0x3bcc5d)+'\x20'+R(_0x52948f));}return _0x5483c5[_0x551ef0(0x1d8)]('\x20');}function he(_0x37b641,_0x2ba77b){const _0x32ea8e=_0x5b63;return _0x37b641[_0x32ea8e(0x1b4)]==='pen'?pe(_0x37b641,_0x2ba77b):me(_0x37b641,_0x2ba77b);}function ge(_0x5a2fcc,_0xa3d057){const _0x1acc2e=_0x5b63;return _0xa3d057!=null&&_0xa3d057['color']?_0xa3d057[_0x1acc2e(0x1bb)]:_0x5a2fcc[_0x1acc2e(0x1b4)]===_0x1acc2e(0x1dc)?_0x1acc2e(0x1e2):_0x5a2fcc[_0x1acc2e(0x1bb)];}function _e(_0x3b9d70,_0x752241){const _0x109c0b=_0x5b63;return(_0x752241==null?void 0x0:_0x752241[_0x109c0b(0x1c3)])===void 0x0?_0x3b9d70[_0x109c0b(0x1b4)]===_0x109c0b(0x1dc)?0x2:_0x3b9d70[_0x109c0b(0x1c3)]:_0x752241[_0x109c0b(0x1c3)];}function ve(_0x2e92c3,_0x560d3c){const _0x48d22d=_0x5b63;return(_0x560d3c==null?void 0x0:_0x560d3c[_0x48d22d(0x1d2)])===void 0x0?_0x2e92c3[_0x48d22d(0x1b4)]===_0x48d22d(0x1dc)?void 0x0:_0x2e92c3[_0x48d22d(0x1d2)]:_0x560d3c['opacity'];}function _0x2e72(){const _0x3c1992=['10SlBgBP','Round','__ink-preview-anchor__','free','sqrt','_adapters','getOwnPropertyDescriptor','anchor','abs','anchors','decorate','default','closed','UNIVER_UNKNOWN','add','points','map','round','@univerjs-pro/ink','push','defineProperty','get','5Xmqjmh','tool','forEach','onStarting','ink.config','constructor','distance','type','iterator','_commandService','smooth','setConfig','createId','registerCommand','none','982mVvxAD','slice','length','_config','segmentIndex','function','Rect','pluginName','height','kind','316670DyGKJa','end','3704tRkUlk','version','find','pointType','color','splice','UNIVER_INK_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createCustomShape','NoFill','_configService','top','width','1239jCYypZ','max','start','3213NglzJw','corner','1199100VKswAW','hypot','171ICMRdA','1878XpbfCG','findIndex','left','endIndex','2225542HhWfXU','startIndex','opacity','disposeWithMe','right','OPERATION','packageName','indexOf','join','symbol','symmetric','beginInkMode','pen','ink.operation.start','min','859864gbakIV','point','SolidFill','#f54a45','1.1.0','object','out','string'];_0x2e72=function(){return _0x3c1992;};return _0x2e72();}function ye(_0x131423,_0x19c971){const _0x5184b9=_0x5b63;let _0x1b6b28=G(_0x131423),_0x1b42fa=he(_0x131423,{'x':_0x1b6b28[_0x5184b9(0x1ce)],'y':_0x1b6b28['top']}),_0x47d6ed=_0x131423['kind']==='pen'&&_0x131423['closed'],_0xb0a7fc=_0x19c971==null?void 0x0:_0x19c971['fillColor'];return{'shapeType':_0x46da06[_0x5184b9(0x1b1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1b6b28[_0x5184b9(0x1c3)],'h':_0x1b6b28[_0x5184b9(0x1b3)],'fill':_0x47d6ed?'norm':_0x5184b9(0x1aa),'stroke':!0x0,'data':_0x1b42fa,'dataArray':be(_0x131423,{'x':_0x1b6b28['left'],'y':_0x1b6b28[_0x5184b9(0x1c2)]})}]},'fill':_0x47d6ed&&_0xb0a7fc?{'color':_0xb0a7fc,'fillType':_0x1415aa[_0x5184b9(0x1e1)]}:{'fillType':_0x1415aa[_0x5184b9(0x1c0)]},'stroke':{'color':ge(_0x131423,_0x19c971),'width':_e(_0x131423,_0x19c971),'opacity':ve(_0x131423,_0x19c971),'lineStrokeType':_0x2148f9['SolidLine'],'capType':_0x470397['Round'],'lineJoinType':_0x34e189[_0x5184b9(0x1e8)]}};}function K(_0x182e0e,_0x8f2a71){return{'x':_0x182e0e['x']-_0x8f2a71['x'],'y':_0x182e0e['y']-_0x8f2a71['y']};}function be(_0x5948b9,_0x101a36){const _0x2de9fd=_0x5b63;if(_0x5948b9[_0x2de9fd(0x1b4)]===_0x2de9fd(0x1dc)){let _0x2684f9=_0x5948b9['anchors'];if(_0x2684f9['length']===0x0)return[];let _0x270b4e=K(_0x2684f9[0x0],_0x101a36),_0x5d0528=[{'command':'M','points':[_0x270b4e['x'],_0x270b4e['y']]}];for(let _0xcf056b=0x1;_0xcf056b<_0x2684f9[_0x2de9fd(0x1ad)];_0xcf056b++){let _0x3f163e=_0x2684f9[_0xcf056b-0x1],_0x18a7bd=_0x2684f9[_0xcf056b],_0x46b10e=K(_0x3f163e[_0x2de9fd(0x1e5)]??_0x3f163e,_0x101a36),_0x1663e2=K(_0x18a7bd['in']??_0x18a7bd,_0x101a36),_0x4dd78a=K(_0x18a7bd,_0x101a36);_0x5d0528[_0x2de9fd(0x199)]({'command':'C','points':[_0x46b10e['x'],_0x46b10e['y'],_0x1663e2['x'],_0x1663e2['y'],_0x4dd78a['x'],_0x4dd78a['y']]});}if(_0x5948b9[_0x2de9fd(0x192)]&&_0x2684f9[_0x2de9fd(0x1ad)]>0x1){let _0x2cd089=_0x2684f9[_0x2684f9[_0x2de9fd(0x1ad)]-0x1],_0x4fc80e=_0x2684f9[0x0],_0x5cdbc4=K(_0x2cd089[_0x2de9fd(0x1e5)]??_0x2cd089,_0x101a36),_0x2ff460=K(_0x4fc80e['in']??_0x4fc80e,_0x101a36),_0x2d8ee0=K(_0x4fc80e,_0x101a36);_0x5d0528[_0x2de9fd(0x199)]({'command':'C','points':[_0x5cdbc4['x'],_0x5cdbc4['y'],_0x2ff460['x'],_0x2ff460['y'],_0x2d8ee0['x'],_0x2d8ee0['y']]}),_0x5d0528[_0x2de9fd(0x199)]({'command':'z','points':[]});}return _0x5d0528;}let _0x5669d2=_0x5948b9[_0x2de9fd(0x195)]['map'](_0x4caf9d=>K(_0x4caf9d,_0x101a36));if(_0x5669d2['length']===0x0)return[];let _0x4c784c=[{'command':'M','points':[_0x5669d2[0x0]['x'],_0x5669d2[0x0]['y']]}];for(let _0xa6d83f=0x0;_0xa6d83f<_0x5669d2['length']-0x1;_0xa6d83f++){let _0x285a50=_0x5669d2[_0xa6d83f],_0x5f44af=_0x5669d2[_0xa6d83f+0x1],_0x39e52b=_0x5669d2[_0xa6d83f-0x1]??_0x285a50,_0x44ce54=_0x5669d2[_0xa6d83f+0x2]??_0x5f44af,_0x5a7713={'x':_0x285a50['x']+(_0x5f44af['x']-_0x39e52b['x'])/0x6,'y':_0x285a50['y']+(_0x5f44af['y']-_0x39e52b['y'])/0x6},_0x51106e={'x':_0x5f44af['x']-(_0x44ce54['x']-_0x285a50['x'])/0x6,'y':_0x5f44af['y']-(_0x44ce54['y']-_0x285a50['y'])/0x6};_0x4c784c[_0x2de9fd(0x199)]({'command':'C','points':[_0x5a7713['x'],_0x5a7713['y'],_0x51106e['x'],_0x51106e['y'],_0x5f44af['x'],_0x5f44af['y']]});}return _0x4c784c;}function xe(_0x3de858){const _0x1e6861=_0x5b63;let {model:_0x1f53ef,sourceModel:_0x1d9dc1=_0x1f53ef,style:_0x1a49da}=_0x3de858,_0xfa98f2=_0x3de858[_0x1e6861(0x19d)]??_0x1f53ef[_0x1e6861(0x1b4)],_0x53d9f1=G(_0x1f53ef),_0x1696c0=_0x1f53ef[_0x1e6861(0x1b4)]===_0x1e6861(0x1dc)&&_0xfa98f2!==_0x1e6861(0x1dc)?_0x1f53ef:void 0x0;return{'transform':{..._0x53d9f1,'rotation':0x0},'shapeData':ye(_0x1f53ef,_0x1a49da),'ink':{'version':0x1,'tool':_0xfa98f2,'sourceModel':_0x1d9dc1,..._0x1696c0?{'editModel':_0x1696c0}:{},'normalizedBounds':_0x53d9f1}};}var Se=_0x43396f(0x198),Ce=_0x43396f(0x1e3);function q(_0x327fcd){'@babel/helpers - typeof';const _0x555e03=_0x43396f;return q=typeof Symbol==_0x555e03(0x1b0)&&typeof Symbol[_0x555e03(0x1a4)]==_0x555e03(0x1d9)?function(_0x4653e8){return typeof _0x4653e8;}:function(_0x565e75){const _0x7cb9ff=_0x555e03;return _0x565e75&&typeof Symbol=='function'&&_0x565e75[_0x7cb9ff(0x1a1)]===Symbol&&_0x565e75!==Symbol['prototype']?_0x7cb9ff(0x1d9):typeof _0x565e75;},q(_0x327fcd);}function we(_0x4638e5,_0x37d457){const _0x50103e=_0x43396f;if(q(_0x4638e5)!=_0x50103e(0x1e4)||!_0x4638e5)return _0x4638e5;var _0x37cf59=_0x4638e5[Symbol['toPrimitive']];if(_0x37cf59!==void 0x0){var _0x3deef9=_0x37cf59['call'](_0x4638e5,_0x37d457||_0x50103e(0x1f2));if(q(_0x3deef9)!='object')return _0x3deef9;throw TypeError(_0x50103e(0x1be));}return(_0x37d457==='string'?String:Number)(_0x4638e5);}function J(_0x3960c5){const _0x1fef8a=_0x43396f;var _0x1727fe=we(_0x3960c5,_0x1fef8a(0x1e6));return q(_0x1727fe)==_0x1fef8a(0x1d9)?_0x1727fe:_0x1727fe+'';}function Y(_0x12dba5,_0x2776c5,_0x330d02){const _0x5a3df0=_0x43396f;return(_0x2776c5=J(_0x2776c5))in _0x12dba5?Object[_0x5a3df0(0x19a)](_0x12dba5,_0x2776c5,{'value':_0x330d02,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12dba5[_0x2776c5]=_0x330d02,_0x12dba5;}const X=_0x3acfc4('ink.host-adapter.service');var Te=class{constructor(){const _0x4e989f=_0x43396f;Y(this,_0x4e989f(0x1ec),[]);}['registerAdapter'](_0x5e717d){const _0x5e17a1=_0x43396f;return this[_0x5e17a1(0x1ec)]['push'](_0x5e717d),_0x5c9d22(()=>{const _0x12a85d=_0x5e17a1;let _0x54eaca=this[_0x12a85d(0x1ec)][_0x12a85d(0x1d7)](_0x5e717d);_0x54eaca>=0x0&&this[_0x12a85d(0x1ec)][_0x12a85d(0x1bc)](_0x54eaca,0x1);});}[_0x43396f(0x1db)](_0x7e3f30){const _0x1c01a4=_0x43396f;for(let _0x1c865b of this[_0x1c01a4(0x1ec)])if(_0x1c865b[_0x1c01a4(0x1db)](_0x7e3f30))return!0x0;return!0x1;}async[_0x43396f(0x1bf)](_0xd4e7d1){const _0x166569=_0x43396f;for(let _0x3480a0 of this[_0x166569(0x1ec)])if(_0x3480a0['createCustomShape']&&await _0x3480a0[_0x166569(0x1bf)](_0xd4e7d1))return!0x0;return!0x1;}};const Ee={'id':_0x43396f(0x1dd),'type':_0x291e91[_0x43396f(0x1d5)],'handler':(_0x49ed18,_0x1900b9)=>_0x1900b9?_0x49ed18[_0x43396f(0x19b)](X)[_0x43396f(0x1db)](_0x1900b9):!0x1},Z={};function Q(_0x2808e4,_0x55d7cf){return function(_0x3d85b5,_0x568f41){_0x55d7cf(_0x3d85b5,_0x568f41,_0x2808e4);};}function De(_0x28cd73,_0x2bc677,_0x408c17,_0x54cf2f){const _0xb63aa=_0x43396f;var _0xf34f97=arguments['length'],_0x24dc5f=_0xf34f97<0x3?_0x2bc677:_0x54cf2f===null?_0x54cf2f=Object[_0xb63aa(0x1ed)](_0x2bc677,_0x408c17):_0x54cf2f,_0x4f1b7f;if(typeof Reflect=='object'&&typeof Reflect[_0xb63aa(0x1f1)]==_0xb63aa(0x1b0))_0x24dc5f=Reflect[_0xb63aa(0x1f1)](_0x28cd73,_0x2bc677,_0x408c17,_0x54cf2f);else{for(var _0x1c165b=_0x28cd73[_0xb63aa(0x1ad)]-0x1;_0x1c165b>=0x0;_0x1c165b--)(_0x4f1b7f=_0x28cd73[_0x1c165b])&&(_0x24dc5f=(_0xf34f97<0x3?_0x4f1b7f(_0x24dc5f):_0xf34f97>0x3?_0x4f1b7f(_0x2bc677,_0x408c17,_0x24dc5f):_0x4f1b7f(_0x2bc677,_0x408c17))||_0x24dc5f);}return _0xf34f97>0x3&&_0x24dc5f&&Object[_0xb63aa(0x19a)](_0x2bc677,_0x408c17,_0x24dc5f),_0x24dc5f;}let $=class extends _0x23a329{constructor(_0x328372=Z,_0x23b94c,_0x15efc2,_0x554d0f){const _0x3e6b0f=_0x43396f;super(),this[_0x3e6b0f(0x1ae)]=_0x328372,this['_injector']=_0x23b94c,this['_commandService']=_0x15efc2,this[_0x3e6b0f(0x1c1)]=_0x554d0f;let {..._0x2cd050}=_0x488fc2({},Z,this['_config']);this[_0x3e6b0f(0x1c1)][_0x3e6b0f(0x1a7)](_0x3e6b0f(0x1a0),_0x2cd050);}[_0x43396f(0x19f)](){const _0x493d37=_0x43396f;[[X,{'useClass':Te}]][_0x493d37(0x19e)](_0x1a4d5e=>this['_injector'][_0x493d37(0x194)](_0x1a4d5e)),this[_0x493d37(0x1d3)](this[_0x493d37(0x1a5)][_0x493d37(0x1a9)](Ee));}};Y($,_0x43396f(0x1b2),_0x43396f(0x1bd)),Y($,_0x43396f(0x1d6),Se),Y($,_0x43396f(0x1b8),Ce),Y($,_0x43396f(0x1a3),_0x4b2236[_0x43396f(0x193)]),$=De([_0x40586b(_0x5cf441),Q(0x1,_0x4a0035(_0x5e60e7)),Q(0x2,_0x1fafaa),Q(0x3,_0x214ca1)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2b3e(_0x4f4c4d,_0x24e96f){_0x4f4c4d=_0x4f4c4d-0xc1;const _0x257397=_0x2573();let _0x2b3e1b=_0x257397[_0x4f4c4d];return _0x2b3e1b;}function _0x2573(){const _0x3671ba=['parentId','function','FBoard','closed','115410YRIlpl','has','46402KaJmtF','type','Tools','pen','trim','buildInkCustomShapePayload','anchor','BoardInkHandleKind','1198280PBFkKs','custom','BoardElementType','version','tool','generateRandomId','3009710zffBUP','add','free','pressure','Module','15juONNa','80BGPTAl','UniverProInk','FEnum','transform','UniverCoreFacade','points','48DUijlL','highlighter','BoardInkPointType','out','opacity','object','_addElement','Shape','32805YHAYXQ','@univerjs/core/facade','sourceModel','defineProperty','symmetric','laneId','isFinite','width','24JmkvYi','exports','UniverProInkFacade','length','UniverProBoardsFacade','extend','toStringTag','findElements','filter','isArray','style','every','@univerjs-pro/boards','22484hYckzD','shapeData','getInks','model','36486xaxKtS','anchors','@univerjs/core','insertInk','BoardInkTool'];_0x2573=function(){return _0x3671ba;};return _0x2573();}(function(_0x41791b,_0x38591a){const _0x586806=_0x2b3e,_0x141aa7=_0x41791b();while(!![]){try{const _0x865a91=-parseInt(_0x586806(0xc7))/0x1*(-parseInt(_0x586806(0xfa))/0x2)+parseInt(_0x586806(0xef))/0x3*(parseInt(_0x586806(0xc8))/0x4)+parseInt(_0x586806(0xf8))/0x5+-parseInt(_0x586806(0xde))/0x6*(parseInt(_0x586806(0xeb))/0x7)+parseInt(_0x586806(0xce))/0x8*(-parseInt(_0x586806(0xd6))/0x9)+-parseInt(_0x586806(0x102))/0xa+-parseInt(_0x586806(0xc2))/0xb;if(_0x865a91===_0x38591a)break;else _0x141aa7['push'](_0x141aa7['shift']());}catch(_0x1412e8){_0x141aa7['push'](_0x141aa7['shift']());}}}(_0x2573,0x2d745),function(_0x5bd358,_0x20853b){const _0x3178d9=_0x2b3e;typeof exports==_0x3178d9(0xd3)&&typeof module<'u'?_0x20853b(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x3178d9(0xf5)&&define['amd']?define([_0x3178d9(0xdf),_0x3178d9(0xea),'@univerjs-pro/boards/facade','@univerjs-pro/ink',_0x3178d9(0xf1),_0x3178d9(0xd7)],_0x20853b):(_0x5bd358=typeof globalThis<'u'?globalThis:_0x5bd358||self,_0x20853b(_0x5bd358[_0x3178d9(0xe0)]={},_0x5bd358['UniverProBoards'],_0x5bd358[_0x3178d9(0xe2)],_0x5bd358[_0x3178d9(0xc9)],_0x5bd358['UniverCore'],_0x5bd358[_0x3178d9(0xcc)]));}(this,function(_0x76d76,_0x20e730,_0x4cf887,_0x2c6fcb,_0x57d191,_0x5e49d5){const _0x274df9=_0x2b3e;Object[_0x274df9(0xd9)](_0x76d76,Symbol[_0x274df9(0xe4)],{'value':_0x274df9(0xc6)});var _0x552fc6=class extends _0x4cf887[_0x274df9(0xf6)]{[_0x274df9(0xf2)](_0x25f3d9){const _0x47a70a=_0x274df9;let _0xac9ee3=_0x2616d0(_0x25f3d9);return _0xac9ee3&&this[_0x47a70a(0xd4)](_0xac9ee3,{'insertIndex':_0x25f3d9['insertIndex']})?_0xac9ee3:null;}[_0x274df9(0xed)](){const _0x344b44=_0x274df9;return this[_0x344b44(0xe5)]({'elementType':_0x20e730[_0x344b44(0x104)][_0x344b44(0xd5)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x344b44(0xe6)](_0x3a3bfc);}};function _0x2616d0(_0xa313f4,_0x2a9b46){const _0x4682db=_0x274df9;if(!_0x1386e1(_0xa313f4[_0x4682db(0xee)])||_0xa313f4[_0x4682db(0xd8)]!==void 0x0&&!_0x1386e1(_0xa313f4[_0x4682db(0xd8)])||!_0x106190(_0xa313f4[_0x4682db(0xe8)]))return null;let _0x48fbc2=_0xa313f4[_0x4682db(0xf4)]??(_0x2a9b46==null?void 0x0:_0x2a9b46[_0x4682db(0xf4)]),_0x18222b=_0x57d191[_0x4682db(0xfc)]['deepClone'](_0xa313f4[_0x4682db(0xee)]),_0x22271e=(0x0,_0x2c6fcb[_0x4682db(0xff)])({'model':_0x18222b,'style':_0xa313f4[_0x4682db(0xe8)],'tool':_0xa313f4[_0x4682db(0x106)],'sourceModel':_0xa313f4[_0x4682db(0xd8)]?_0x57d191[_0x4682db(0xfc)]['deepClone'](_0xa313f4['sourceModel']):_0x18222b}),_0x5bd8e3=_0x29159a(_0x2a9b46==null?void 0x0:_0x2a9b46['custom']);return{'id':(_0x2a9b46==null?void 0x0:_0x2a9b46['id'])??_0xa313f4['id']??(0x0,_0x57d191[_0x4682db(0xc1)])(0x6),'type':_0x20e730[_0x4682db(0x104)][_0x4682db(0xd5)],'transform':_0x22271e[_0x4682db(0xcb)],'shapeData':_0x22271e[_0x4682db(0xec)],'parentId':_0x48fbc2??void 0x0,'laneId':_0xa313f4['laneId']===void 0x0?_0x2a9b46==null?void 0x0:_0x2a9b46['laneId']:_0xa313f4[_0x4682db(0xdb)],'custom':{..._0x5bd8e3,'ink':_0x22271e['ink']}};}function _0x4b058d(_0x1e0c09){const _0x5cd543=_0x274df9;return Number[_0x5cd543(0xdc)](_0x1e0c09['x'])&&Number[_0x5cd543(0xdc)](_0x1e0c09['y']);}function _0x1386e1(_0x515189){const _0x41a9f6=_0x274df9;if(_0x515189['kind']===_0x41a9f6(0xfd)){let _0x1c8ed=new Set();return _0x515189[_0x41a9f6(0xf0)]['length']>=(_0x515189[_0x41a9f6(0xf7)]?0x3:0x2)&&_0x515189[_0x41a9f6(0xf0)][_0x41a9f6(0xe9)](_0x580af5=>{const _0x2a4ca3=_0x41a9f6;let _0x9faf43=_0x580af5['id'][_0x2a4ca3(0xfe)]()[_0x2a4ca3(0xe1)]>0x0&&!_0x1c8ed[_0x2a4ca3(0xf9)](_0x580af5['id'])&&_0x4b058d(_0x580af5)&&(!_0x580af5['in']||_0x4b058d(_0x580af5['in']))&&(!_0x580af5['out']||_0x4b058d(_0x580af5[_0x2a4ca3(0xd1)]));return _0x1c8ed[_0x2a4ca3(0xc3)](_0x580af5['id']),_0x9faf43;});}return _0x515189[_0x41a9f6(0xcd)][_0x41a9f6(0xe1)]>=0x2&&_0x515189[_0x41a9f6(0xcd)][_0x41a9f6(0xe9)](_0xef1df0=>_0x4b058d(_0xef1df0)&&Number[_0x41a9f6(0xdc)](_0xef1df0['t'])&&(_0xef1df0[_0x41a9f6(0xc5)]===void 0x0||Number['isFinite'](_0xef1df0['pressure'])))&&Number[_0x41a9f6(0xdc)](_0x515189[_0x41a9f6(0xdd)])&&_0x515189['width']>0x0&&Number[_0x41a9f6(0xdc)](_0x515189['opacity'])&&_0x515189['opacity']>=0x0&&_0x515189['opacity']<=0x1;}function _0x106190(_0x397bfe){const _0x620155=_0x274df9;return _0x397bfe===void 0x0||(_0x397bfe[_0x620155(0xdd)]===void 0x0||Number[_0x620155(0xdc)](_0x397bfe['width'])&&_0x397bfe[_0x620155(0xdd)]>0x0)&&(_0x397bfe['opacity']===void 0x0||Number['isFinite'](_0x397bfe['opacity'])&&_0x397bfe['opacity']>=0x0&&_0x397bfe[_0x620155(0xd2)]<=0x1);}function _0x29159a(_0x2f5b6c){const _0x3d0489=_0x274df9;return _0x2f5b6c&&typeof _0x2f5b6c==_0x3d0489(0xd3)&&!Array['isArray'](_0x2f5b6c)?_0x2f5b6c:{};}function _0x95d607(_0xb838e0){const _0x10986f=_0x274df9;let _0x77a174=_0x29159a(_0xb838e0[_0x10986f(0x103)])['ink'];if(!_0x77a174||typeof _0x77a174!=_0x10986f(0xd3)||Array[_0x10986f(0xe7)](_0x77a174))return null;let _0x5f2a04=_0x77a174;return _0x5f2a04[_0x10986f(0x105)]===0x1&&_0x5f2a04[_0x10986f(0xd8)]&&typeof _0x5f2a04[_0x10986f(0xd8)]==_0x10986f(0xd3)?_0x5f2a04:null;}function _0x3a3bfc(_0x2f6b1c){const _0x80cef=_0x274df9;return _0x2f6b1c[_0x80cef(0xfb)]===_0x20e730[_0x80cef(0x104)]['Shape']&&!!_0x95d607(_0x2f6b1c);}_0x4cf887[_0x274df9(0xf6)][_0x274df9(0xe3)](_0x552fc6);let _0xef4525={'Pen':'pen','Brush':'brush','Highlighter':_0x274df9(0xcf)},_0x13da80={'Corner':'corner','Smooth':'smooth','Symmetric':_0x274df9(0xda),'Free':_0x274df9(0xc4)},_0x20b884={'Anchor':_0x274df9(0x100),'In':'in','Out':_0x274df9(0xd1)};var _0x345261=class extends _0x5e49d5[_0x274df9(0xca)]{get[_0x274df9(0xf3)](){return _0xef4525;}get[_0x274df9(0xd0)](){return _0x13da80;}get[_0x274df9(0x101)](){return _0x20b884;}};_0x5e49d5[_0x274df9(0xca)]['extend'](_0x345261),_0x76d76[_0x274df9(0x101)]=_0x20b884,_0x76d76['BoardInkPointType']=_0x13da80,_0x76d76[_0x274df9(0xf3)]=_0xef4525;}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x297d97,_0x5d7c68){const _0x35e4a4=_0x4a9e,_0x29b2c1=_0x297d97();while(!![]){try{const _0x17c5c9=-parseInt(_0x35e4a4(0x1ad))/0x1*(-parseInt(_0x35e4a4(0x195))/0x2)+-parseInt(_0x35e4a4(0x18e))/0x3+-parseInt(_0x35e4a4(0x17e))/0x4*(-parseInt(_0x35e4a4(0x16c))/0x5)+-parseInt(_0x35e4a4(0x1bf))/0x6*(-parseInt(_0x35e4a4(0x1a3))/0x7)+parseInt(_0x35e4a4(0x186))/0x8+parseInt(_0x35e4a4(0x1b7))/0x9+parseInt(_0x35e4a4(0x181))/0xa*(-parseInt(_0x35e4a4(0x155))/0xb);if(_0x17c5c9===_0x5d7c68)break;else _0x29b2c1['push'](_0x29b2c1['shift']());}catch(_0x4d5a56){_0x29b2c1['push'](_0x29b2c1['shift']());}}}(_0x57f6,0x91ee1),function(_0x53d493,_0x3eae87){const _0x4d6786=_0x4a9e;typeof exports==_0x4d6786(0x1a2)&&typeof module<'u'?_0x3eae87(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x4d6786(0x14e)&&define['amd']?define([_0x4d6786(0x193),_0x4d6786(0x172),_0x4d6786(0x1a0),_0x4d6786(0x151)],_0x3eae87):(_0x53d493=typeof globalThis<'u'?globalThis:_0x53d493||self,_0x3eae87(_0x53d493[_0x4d6786(0x196)]={},_0x53d493[_0x4d6786(0x18d)],_0x53d493[_0x4d6786(0x15a)],_0x53d493['UniverCore']));}(this,function(_0x670508,_0x580dcc,_0x20125a,_0x36a853){const _0x3c2545=_0x4a9e;Object['defineProperty'](_0x670508,Symbol[_0x3c2545(0x1be)],{'value':'Module'});let _0x297de6=0.0001;function _0x64c29f(_0x766d4e){return{'x':_0x766d4e['x'],'y':_0x766d4e['y']};}function _0x28c29c(_0x52f2ab){const _0x1a5016=_0x3c2545;return{..._0x52f2ab,'in':_0x52f2ab['in']?_0x64c29f(_0x52f2ab['in']):void 0x0,'out':_0x52f2ab[_0x1a5016(0x15d)]?_0x64c29f(_0x52f2ab[_0x1a5016(0x15d)]):void 0x0};}function _0x31dd48(_0x4174b2){const _0x760e52=_0x3c2545;return{'kind':'pen','closed':_0x4174b2['closed'],'anchors':_0x4174b2[_0x760e52(0x17d)][_0x760e52(0x150)](_0x28c29c)};}function _0xdc7506(_0x145792,_0x1f1c22,_0xea000e){return{'x':_0x145792['x']+(_0x1f1c22['x']-_0x145792['x'])*_0xea000e,'y':_0x145792['y']+(_0x1f1c22['y']-_0x145792['y'])*_0xea000e};}function _0x3ef9f9(_0x10771b,_0x5c0d75){const _0x3b2884=_0x3c2545;return Math[_0x3b2884(0x1ac)](_0x10771b['x']-_0x5c0d75['x'],_0x10771b['y']-_0x5c0d75['y']);}function _0x45c673(_0x249210){const _0x173d6c=_0x3c2545;let _0xc256e2=Math[_0x173d6c(0x1ac)](_0x249210['x'],_0x249210['y']);return _0xc256e2<_0x297de6?{'x':0x1,'y':0x0}:{'x':_0x249210['x']/_0xc256e2,'y':_0x249210['y']/_0xc256e2};}function _0x5110bc(_0x52ba15,_0x529d03,_0x394402=_0x3ef9f9(_0x52ba15,_0x529d03)){let _0x4fcfb5=_0x45c673({'x':_0x52ba15['x']-_0x529d03['x'],'y':_0x52ba15['y']-_0x529d03['y']});return{'x':_0x52ba15['x']+_0x4fcfb5['x']*_0x394402,'y':_0x52ba15['y']+_0x4fcfb5['y']*_0x394402};}function _0x16cf20(_0x2b8a13,_0x51a9c7){const _0x27393e=_0x3c2545;let {anchors:_0x55d4b0}=_0x2b8a13;return _0x55d4b0['length']<0x2||_0x51a9c7<0x0?null:_0x51a9c7<_0x55d4b0[_0x27393e(0x182)]-0x1?{'startIndex':_0x51a9c7,'endIndex':_0x51a9c7+0x1,'start':_0x55d4b0[_0x51a9c7],'end':_0x55d4b0[_0x51a9c7+0x1]}:_0x2b8a13[_0x27393e(0x1a7)]&&_0x51a9c7===_0x55d4b0[_0x27393e(0x182)]-0x1?{'startIndex':_0x55d4b0[_0x27393e(0x182)]-0x1,'endIndex':0x0,'start':_0x55d4b0[_0x55d4b0[_0x27393e(0x182)]-0x1],'end':_0x55d4b0[0x0]}:null;}function _0x2c9c75(_0x6d20b6,_0x7c09d5){const _0x64d842=_0x3c2545;let _0x47ecf8=_0x16cf20(_0x6d20b6,_0x7c09d5);return _0x47ecf8?[_0x47ecf8['start'],_0x47ecf8[_0x64d842(0x1b2)]['out']??_0x47ecf8['start'],_0x47ecf8[_0x64d842(0x19c)]['in']??_0x47ecf8[_0x64d842(0x19c)],_0x47ecf8[_0x64d842(0x19c)]]:null;}function _0x2c6f9e(_0x346fc5,_0x54700c){const _0x3eee02=_0x3c2545;return _0x54700c===_0x3eee02(0x190)?_0x346fc5:_0x346fc5[_0x54700c]??null;}function _0x4b1ffc(_0x274ccb,_0xd0745,_0x4438cc){const _0x43fb68=_0x3c2545;return _0x4438cc===_0x43fb68(0x190)||_0x274ccb[_0x43fb68(0x1a7)]?!0x0:_0x4438cc==='in'?_0xd0745>0x0:_0xd0745<_0x274ccb[_0x43fb68(0x17d)][_0x43fb68(0x182)]-0x1;}function _0x32af97(_0x214e1d,_0x456c85){let [_0x347d58,_0x532acd,_0x4db885,_0x20e640]=_0x214e1d,_0x4b1b69=_0xdc7506(_0x347d58,_0x532acd,_0x456c85),_0x5ef008=_0xdc7506(_0x532acd,_0x4db885,_0x456c85),_0x12dc29=_0xdc7506(_0x4db885,_0x20e640,_0x456c85);return _0xdc7506(_0xdc7506(_0x4b1b69,_0x5ef008,_0x456c85),_0xdc7506(_0x5ef008,_0x12dc29,_0x456c85),_0x456c85);}function _0x3c1516(_0x551e3a,_0x5a0eb8){let [_0x405be5,_0x1374a1,_0xc91c48,_0x1f4d5d]=_0x551e3a,_0x17f50e=_0xdc7506(_0x405be5,_0x1374a1,_0x5a0eb8),_0x453727=_0xdc7506(_0x1374a1,_0xc91c48,_0x5a0eb8),_0x3cdbc1=_0xdc7506(_0xc91c48,_0x1f4d5d,_0x5a0eb8),_0x34a433=_0xdc7506(_0x17f50e,_0x453727,_0x5a0eb8),_0x51c349=_0xdc7506(_0x453727,_0x3cdbc1,_0x5a0eb8),_0x17dfe2=_0xdc7506(_0x34a433,_0x51c349,_0x5a0eb8);return{'left':[_0x405be5,_0x17f50e,_0x34a433,_0x17dfe2],'right':[_0x17dfe2,_0x51c349,_0x3cdbc1,_0x1f4d5d]};}function _0x5ab6a0(_0xb360cf,_0x4ff414,_0x516d62){let _0x29742d=_0x516d62['x']-_0x4ff414['x'],_0x34baa5=_0x516d62['y']-_0x4ff414['y'],_0x47e126=_0x29742d*_0x29742d+_0x34baa5*_0x34baa5,_0x4c34e6=_0x47e126<=_0x297de6?0x0:Math['max'](0x0,Math['min'](0x1,((_0xb360cf['x']-_0x4ff414['x'])*_0x29742d+(_0xb360cf['y']-_0x4ff414['y'])*_0x34baa5)/_0x47e126)),_0x1884d6={'x':_0x4ff414['x']+_0x29742d*_0x4c34e6,'y':_0x4ff414['y']+_0x34baa5*_0x4c34e6};return{'point':_0x1884d6,'ratio':_0x4c34e6,'distance':_0x3ef9f9(_0xb360cf,_0x1884d6)};}function _0x461c8e(_0x282db8,_0x5b6dcd,_0x2343a8){const _0x48f71a=_0x3c2545;return _0x5ab6a0(_0x282db8,_0x5b6dcd,_0x2343a8)[_0x48f71a(0x189)]**0x2;}function _0x4ab179(_0x4b5e79,_0x301f8a){const _0x11bf2e=_0x3c2545;if(_0x4b5e79[_0x11bf2e(0x182)]<=0x2)return _0x4b5e79[_0x11bf2e(0x150)](_0x64c29f);let _0x29639a=0x0,_0x5e3207=0x0,_0x12b962=_0x4b5e79[0x0],_0x9c54b=_0x4b5e79[_0x4b5e79[_0x11bf2e(0x182)]-0x1],_0x28fa67=_0x301f8a*_0x301f8a;for(let _0x25fabf=0x1;_0x25fabf<_0x4b5e79[_0x11bf2e(0x182)]-0x1;_0x25fabf++){let _0x5561b2=_0x461c8e(_0x4b5e79[_0x25fabf],_0x12b962,_0x9c54b);_0x5561b2>_0x29639a&&(_0x29639a=_0x5561b2,_0x5e3207=_0x25fabf);}if(_0x29639a<=_0x28fa67)return[_0x64c29f(_0x12b962),_0x64c29f(_0x9c54b)];let _0x188ad8=_0x4ab179(_0x4b5e79[_0x11bf2e(0x15b)](0x0,_0x5e3207+0x1),_0x301f8a),_0x58bc24=_0x4ab179(_0x4b5e79[_0x11bf2e(0x15b)](_0x5e3207),_0x301f8a);return[..._0x188ad8['slice'](0x0,-0x1),..._0x58bc24];}function _0x2f82f3(_0xd36325,_0x4e9200){let _0x58f586=_0xd36325[_0x4e9200],_0x52eea6=_0xd36325[_0x4e9200+0x1],_0x4e0d25=_0xd36325[_0x4e9200-0x1]??_0x58f586;return{'x':_0x58f586['x']+(_0x52eea6['x']-_0x4e0d25['x'])/0x6,'y':_0x58f586['y']+(_0x52eea6['y']-_0x4e0d25['y'])/0x6};}function _0xe4ce08(_0x2f1be7,_0x3a4d1a){let _0x4040a8=_0x2f1be7[_0x3a4d1a],_0x56b03b=_0x2f1be7[_0x3a4d1a-0x1],_0x227348=_0x2f1be7[_0x3a4d1a+0x1]??_0x4040a8;return{'x':_0x4040a8['x']-(_0x227348['x']-_0x56b03b['x'])/0x6,'y':_0x4040a8['y']-(_0x227348['y']-_0x56b03b['y'])/0x6};}function _0x1ea969(_0x2d866e,_0x36c280){const _0x2e8afd=_0x3c2545;let _0x4cb73c=_0x2d866e[_0x2e8afd(0x17d)][_0x36c280],_0x1acad1=_0x2d866e[_0x2e8afd(0x17d)][_0x36c280-0x1]??(_0x2d866e['closed']?_0x2d866e['anchors'][_0x2d866e[_0x2e8afd(0x17d)][_0x2e8afd(0x182)]-0x1]:null),_0x2a4433=_0x2d866e['anchors'][_0x36c280+0x1]??(_0x2d866e['closed']?_0x2d866e[_0x2e8afd(0x17d)][0x0]:null),_0x591769=_0x1acad1&&_0x2a4433?_0x45c673({'x':_0x2a4433['x']-_0x1acad1['x'],'y':_0x2a4433['y']-_0x1acad1['y']}):_0x2a4433?_0x45c673({'x':_0x2a4433['x']-_0x4cb73c['x'],'y':_0x2a4433['y']-_0x4cb73c['y']}):_0x1acad1?_0x45c673({'x':_0x4cb73c['x']-_0x1acad1['x'],'y':_0x4cb73c['y']-_0x1acad1['y']}):{'x':0x1,'y':0x0},_0x275f02=_0x1acad1&&_0x2a4433?Math['max'](0x32,_0x3ef9f9(_0x1acad1,_0x2a4433)/0x4):0x32;return{'in':{'x':_0x4cb73c['x']-_0x591769['x']*_0x275f02,'y':_0x4cb73c['y']-_0x591769['y']*_0x275f02},'out':{'x':_0x4cb73c['x']+_0x591769['x']*_0x275f02,'y':_0x4cb73c['y']+_0x591769['y']*_0x275f02}};}function _0x3329b1(_0x496003,_0x5439a8){const _0x55cd43=_0x3c2545;let _0x4bbbf6=_0x496003[_0x5439a8],_0x1c533e=_0x5439a8==='in'?_0x55cd43(0x15d):'in',_0x2062f2=_0x496003[_0x1c533e];if(_0x4bbbf6){if(_0x496003[_0x55cd43(0x19a)]===_0x55cd43(0x16d)){_0x496003[_0x1c533e]=_0x5110bc(_0x496003,_0x4bbbf6);return;}_0x496003['pointType']===_0x55cd43(0x16a)&&(_0x496003[_0x1c533e]=_0x5110bc(_0x496003,_0x4bbbf6,_0x2062f2?_0x3ef9f9(_0x496003,_0x2062f2):_0x3ef9f9(_0x496003,_0x4bbbf6)));}}function _0x45ba48(_0x1fb557,_0x2f95f0){const _0x48a238=_0x3c2545;let _0x29b437=_0x31dd48(_0x1fb557);return!_0x2f95f0||_0x29b437[_0x48a238(0x1a7)]||_0x29b437[_0x48a238(0x17d)][_0x48a238(0x182)]===0x0||_0x29b437[_0x48a238(0x17d)][_0x48a238(0x17c)]({'id':_0x48a238(0x158),'x':_0x2f95f0['x'],'y':_0x2f95f0['y'],'pointType':_0x48a238(0x191)}),_0x29b437;}function _0x39f5f7(_0x371b1e,_0x49dd05={}){const _0x43f381=_0x3c2545;let _0x365fbc=Math[_0x43f381(0x1ba)](0x0,_0x49dd05[_0x43f381(0x180)]??Math['max'](0x4,_0x371b1e[_0x43f381(0x14f)]*0.35)),_0xf1d60d=_0x49dd05['createId']??(_0x47272c=>_0x43f381(0x14c)+_0x47272c),_0x168483=_0x4ab179(_0x371b1e['points'],_0x365fbc),_0x3a6107=_0x168483['map']((_0x8ee404,_0x57610a)=>({'id':_0xf1d60d(_0x57610a),'x':_0x8ee404['x'],'y':_0x8ee404['y'],'pointType':_0x43f381(0x1c1)}));for(let _0x101c9d=0x0;_0x101c9d<_0x3a6107[_0x43f381(0x182)]-0x1;_0x101c9d++)_0x3a6107[_0x101c9d][_0x43f381(0x15d)]=_0x2f82f3(_0x168483,_0x101c9d),_0x3a6107[_0x101c9d+0x1]['in']=_0xe4ce08(_0x168483,_0x101c9d+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x3a6107};}function _0x509209(_0x11e70d,_0x2c2d4c,_0x4d0e8d){const _0x352078=_0x3c2545;let _0x1652fa=null,_0x1b493e=[_0x352078(0x190),'in',_0x352078(0x15d)];return _0x11e70d[_0x352078(0x17d)][_0x352078(0x162)]((_0x2122f7,_0x367a67)=>{const _0x2332b6=_0x352078;_0x1b493e[_0x2332b6(0x162)](_0x46c103=>{const _0x50e0b7=_0x2332b6;if(!_0x4b1ffc(_0x11e70d,_0x367a67,_0x46c103))return;let _0x464d1d=_0x2c6f9e(_0x2122f7,_0x46c103);if(!_0x464d1d)return;let _0x306d61=_0x3ef9f9(_0x2c2d4c,_0x464d1d);_0x306d61>_0x4d0e8d||_0x1652fa&&_0x306d61>=_0x1652fa[_0x50e0b7(0x189)]||(_0x1652fa={'handle':{'kind':_0x46c103,'anchorId':_0x2122f7['id']},'point':_0x64c29f(_0x464d1d),'distance':_0x306d61});});}),_0x1652fa;}function _0x591e55(_0x10c6d3,_0x59863b,_0x560e16){const _0x46ab4f=_0x3c2545;let _0x1e547e=null,_0x2e9979=_0x10c6d3[_0x46ab4f(0x1a7)]?_0x10c6d3['anchors'][_0x46ab4f(0x182)]:Math[_0x46ab4f(0x1ba)](0x0,_0x10c6d3[_0x46ab4f(0x17d)]['length']-0x1);for(let _0x327b88=0x0;_0x327b88<_0x2e9979;_0x327b88++){let _0x4fc10e=_0x2c9c75(_0x10c6d3,_0x327b88);if(!_0x4fc10e)continue;let _0x39c0d8=_0x32af97(_0x4fc10e,0x0);for(let _0x486b1e=0x1;_0x486b1e<=0x20;_0x486b1e++){let _0x437bc1=_0x32af97(_0x4fc10e,_0x486b1e/0x20),_0x463999=_0x5ab6a0(_0x59863b,_0x39c0d8,_0x437bc1),_0x55b6ba=(_0x486b1e-0x1+_0x463999[_0x46ab4f(0x1a9)])/0x20;(!_0x1e547e||_0x463999[_0x46ab4f(0x189)]<_0x1e547e[_0x46ab4f(0x189)])&&(_0x1e547e={'segmentIndex':_0x327b88,'t':_0x55b6ba,'point':_0x463999[_0x46ab4f(0x185)],'distance':_0x463999[_0x46ab4f(0x189)]}),_0x39c0d8=_0x437bc1;}}return _0x1e547e&&_0x1e547e[_0x46ab4f(0x189)]<=_0x560e16?_0x1e547e:null;}function _0x4d91d7(_0x109b79,_0x5e3fe2,_0x5590d4){const _0x3cbc97=_0x3c2545;let _0x2a3e32=_0x31dd48(_0x109b79),_0x20c8fc=_0x16cf20(_0x2a3e32,_0x5e3fe2[_0x3cbc97(0x1a1)]),_0x307ccc=_0x2c9c75(_0x2a3e32,_0x5e3fe2[_0x3cbc97(0x1a1)]);if(!_0x20c8fc||!_0x307ccc)return _0x2a3e32;let _0x1e7f51=_0x3c1516(_0x307ccc,Math[_0x3cbc97(0x1ba)](0x0,Math[_0x3cbc97(0x1b8)](0x1,_0x5e3fe2['t']))),_0x23aa69={'id':_0x5590d4(),'x':_0x1e7f51['left'][0x3]['x'],'y':_0x1e7f51[_0x3cbc97(0x175)][0x3]['y'],'in':_0x64c29f(_0x1e7f51[_0x3cbc97(0x175)][0x2]),'out':_0x64c29f(_0x1e7f51[_0x3cbc97(0x1b0)][0x1]),'pointType':'free'};return _0x2a3e32[_0x3cbc97(0x17d)][_0x20c8fc[_0x3cbc97(0x169)]]['out']=_0x64c29f(_0x1e7f51['left'][0x1]),_0x2a3e32[_0x3cbc97(0x17d)][_0x20c8fc['endIndex']]['in']=_0x64c29f(_0x1e7f51[_0x3cbc97(0x1b0)][0x2]),_0x2a3e32[_0x3cbc97(0x17d)]['splice'](_0x20c8fc[_0x3cbc97(0x169)]+0x1,0x0,_0x23aa69),_0x2a3e32;}function _0x31899b(_0x17752f,_0x5ab4d7){const _0x2c32d8=_0x3c2545;let _0x11cc13=_0x31dd48(_0x17752f);return _0x11cc13[_0x2c32d8(0x17d)]=_0x11cc13['anchors']['filter'](_0x38ce63=>_0x38ce63['id']!==_0x5ab4d7),_0x11cc13[_0x2c32d8(0x1a7)]&&_0x11cc13[_0x2c32d8(0x17d)]['length']<0x3&&(_0x11cc13[_0x2c32d8(0x1a7)]=!0x1),_0x11cc13;}function _0x33299d(_0x4a19bd,_0x5e4b93,_0x132d89){const _0x2a66ad=_0x3c2545;let _0x5e68e8=_0x31dd48(_0x4a19bd),_0x208d30=_0x5e68e8['anchors'][_0x2a66ad(0x1c5)](_0x4892b6=>_0x4892b6['id']===_0x5e4b93),_0x3814ea=_0x5e68e8[_0x2a66ad(0x17d)][_0x208d30];if(!_0x3814ea)return _0x5e68e8;if(_0x3814ea['pointType']=_0x132d89,_0x132d89===_0x2a66ad(0x191))return delete _0x3814ea['in'],delete _0x3814ea[_0x2a66ad(0x15d)],_0x5e68e8;let _0xad19d3=_0x1ea969(_0x5e68e8,_0x208d30);if(_0x3814ea['in']=_0x3814ea['in']?_0x64c29f(_0x3814ea['in']):_0xad19d3['in'],_0x3814ea[_0x2a66ad(0x15d)]=_0x3814ea[_0x2a66ad(0x15d)]?_0x64c29f(_0x3814ea[_0x2a66ad(0x15d)]):_0xad19d3[_0x2a66ad(0x15d)],_0x132d89===_0x2a66ad(0x16d)){let _0x4211c7=Math[_0x2a66ad(0x1ba)](_0x3ef9f9(_0x3814ea,_0x3814ea['in']),_0x3ef9f9(_0x3814ea,_0x3814ea[_0x2a66ad(0x15d)]),0x32),_0x13f2b0=_0x45c673({'x':_0x3814ea[_0x2a66ad(0x15d)]['x']-_0x3814ea['x'],'y':_0x3814ea[_0x2a66ad(0x15d)]['y']-_0x3814ea['y']});_0x3814ea[_0x2a66ad(0x15d)]={'x':_0x3814ea['x']+_0x13f2b0['x']*_0x4211c7,'y':_0x3814ea['y']+_0x13f2b0['y']*_0x4211c7},_0x3814ea['in']={'x':_0x3814ea['x']-_0x13f2b0['x']*_0x4211c7,'y':_0x3814ea['y']-_0x13f2b0['y']*_0x4211c7};}else _0x132d89===_0x2a66ad(0x16a)&&_0x3329b1(_0x3814ea,_0x2a66ad(0x15d));return _0x5e68e8;}function _0x457c74(_0x135e7d,_0x398b3b){const _0x1c93cf=_0x3c2545;let _0x3fc031=_0x135e7d[_0x1c93cf(0x17d)][_0x1c93cf(0x184)](_0x22fd06=>_0x22fd06['id']===_0x398b3b),_0x485934=(_0x3fc031==null?void 0x0:_0x3fc031['pointType'])??_0x1c93cf(0x191);return _0x33299d(_0x135e7d,_0x398b3b,_0x485934==='corner'?_0x1c93cf(0x16a):_0x485934===_0x1c93cf(0x16a)?_0x1c93cf(0x16d):_0x485934===_0x1c93cf(0x16d)?'free':_0x1c93cf(0x191));}function _0x4f6b32(_0x162174,_0x1d146d,_0x24fd76){const _0x1130d9=_0x3c2545;let _0x18a1cb=_0x31dd48(_0x162174),_0x4cb4d7=_0x18a1cb['anchors'][_0x1130d9(0x184)](_0x22003d=>_0x22003d['id']===_0x1d146d[_0x1130d9(0x157)]);if(!_0x4cb4d7)return _0x18a1cb;if(_0x1d146d[_0x1130d9(0x19b)]==='anchor'){let _0x416241={'x':_0x24fd76['x']-_0x4cb4d7['x'],'y':_0x24fd76['y']-_0x4cb4d7['y']};return _0x4cb4d7['x']=_0x24fd76['x'],_0x4cb4d7['y']=_0x24fd76['y'],_0x4cb4d7['in']&&={'x':_0x4cb4d7['in']['x']+_0x416241['x'],'y':_0x4cb4d7['in']['y']+_0x416241['y']},_0x4cb4d7[_0x1130d9(0x15d)]&&={'x':_0x4cb4d7[_0x1130d9(0x15d)]['x']+_0x416241['x'],'y':_0x4cb4d7[_0x1130d9(0x15d)]['y']+_0x416241['y']},_0x18a1cb;}return _0x4cb4d7[_0x1d146d[_0x1130d9(0x19b)]]=_0x64c29f(_0x24fd76),_0x4cb4d7[_0x1130d9(0x19a)]===_0x1130d9(0x191)&&(_0x4cb4d7[_0x1130d9(0x19a)]='free'),_0x3329b1(_0x4cb4d7,_0x1d146d[_0x1130d9(0x19b)]),_0x18a1cb;}let _0x232421=1e-9;function _0x3aee73(_0x2542a0){const _0x57b4a4=_0x3c2545;let _0x21c4fa=Math[_0x57b4a4(0x188)](_0x2542a0*0x2710)/0x2710;return Object['is'](_0x21c4fa,-0x0)?'0':String(_0x21c4fa);}function _0x1ae803(_0x3164e0){return _0x3aee73(_0x3164e0['x'])+'\x20'+_0x3aee73(_0x3164e0['y']);}function _0x31676e(_0x1695cb,_0x321b7a){return{'x':_0x1695cb['x']-_0x321b7a['x'],'y':_0x1695cb['y']-_0x321b7a['y']};}function _0x4d507d(_0x176f1e,_0x4b88a6,_0x9fc40a,_0x5bd483,_0x4aea5b){let _0x4534cb=0x1-_0x4aea5b;return{'x':_0x4534cb*_0x4534cb*_0x4534cb*_0x176f1e['x']+0x3*_0x4534cb*_0x4534cb*_0x4aea5b*_0x4b88a6['x']+0x3*_0x4534cb*_0x4aea5b*_0x4aea5b*_0x9fc40a['x']+_0x4aea5b*_0x4aea5b*_0x4aea5b*_0x5bd483['x'],'y':_0x4534cb*_0x4534cb*_0x4534cb*_0x176f1e['y']+0x3*_0x4534cb*_0x4534cb*_0x4aea5b*_0x4b88a6['y']+0x3*_0x4534cb*_0x4aea5b*_0x4aea5b*_0x9fc40a['y']+_0x4aea5b*_0x4aea5b*_0x4aea5b*_0x5bd483['y']};}function _0xf6283e(_0x5ad25f,_0x388b83,_0x5a753b,_0xf27f7a){const _0x37b288=_0x3c2545;let _0x36ec19=-_0x5ad25f+0x3*_0x388b83-0x3*_0x5a753b+_0xf27f7a,_0x1656ce=0x3*_0x5ad25f-0x6*_0x388b83+0x3*_0x5a753b,_0x36aef8=-0x3*_0x5ad25f+0x3*_0x388b83,_0x5e5f7c=[];if(Math[_0x37b288(0x14d)](_0x36ec19)<_0x232421){if(Math[_0x37b288(0x14d)](_0x1656ce)<_0x232421)return _0x5e5f7c;let _0x4c5504=-_0x36aef8/(0x2*_0x1656ce);return _0x4c5504>0x0&&_0x4c5504<0x1&&_0x5e5f7c[_0x37b288(0x17c)](_0x4c5504),_0x5e5f7c;}let _0xc94b11=_0x1656ce*_0x1656ce-0x3*_0x36ec19*_0x36aef8;if(_0xc94b11<0x0)return _0x5e5f7c;let _0x69fa55=Math[_0x37b288(0x1b9)](Math[_0x37b288(0x1ba)](0x0,_0xc94b11)),_0x3fa7ef=(-_0x1656ce+_0x69fa55)/(0x3*_0x36ec19),_0x2977cd=(-_0x1656ce-_0x69fa55)/(0x3*_0x36ec19);return _0x3fa7ef>0x0&&_0x3fa7ef<0x1&&_0x5e5f7c[_0x37b288(0x17c)](_0x3fa7ef),_0x2977cd>0x0&&_0x2977cd<0x1&&Math[_0x37b288(0x14d)](_0x2977cd-_0x3fa7ef)>_0x232421&&_0x5e5f7c['push'](_0x2977cd),_0x5e5f7c;}function _0x1472b4(_0x222553,_0x71ed2b,_0x1397e1,_0x40732b,_0x138c42){const _0x4e354a=_0x3c2545;_0x222553[_0x4e354a(0x17c)](_0x71ed2b,_0x138c42),new Set([..._0xf6283e(_0x71ed2b['x'],_0x1397e1['x'],_0x40732b['x'],_0x138c42['x']),..._0xf6283e(_0x71ed2b['y'],_0x1397e1['y'],_0x40732b['y'],_0x138c42['y'])])[_0x4e354a(0x162)](_0x221ce3=>{_0x222553['push'](_0x4d507d(_0x71ed2b,_0x1397e1,_0x40732b,_0x138c42,_0x221ce3));});}function _0x4bd6b6(_0x587f4b){const _0x169b1c=_0x3c2545;let _0x51a14f=_0x587f4b['anchors'];if(_0x51a14f[_0x169b1c(0x182)]<=0x1)return _0x51a14f;let _0x5985ff=[];for(let _0x261c91=0x1;_0x261c91<_0x51a14f[_0x169b1c(0x182)];_0x261c91++){let _0x2016b8=_0x51a14f[_0x261c91-0x1],_0x2d160b=_0x51a14f[_0x261c91];_0x1472b4(_0x5985ff,_0x2016b8,_0x2016b8[_0x169b1c(0x15d)]??_0x2016b8,_0x2d160b['in']??_0x2d160b,_0x2d160b);}if(_0x587f4b['closed']&&_0x51a14f[_0x169b1c(0x182)]>0x1){let _0x4e9e7f=_0x51a14f[_0x51a14f[_0x169b1c(0x182)]-0x1],_0x17d321=_0x51a14f[0x0];_0x1472b4(_0x5985ff,_0x4e9e7f,_0x4e9e7f[_0x169b1c(0x15d)]??_0x4e9e7f,_0x17d321['in']??_0x17d321,_0x17d321);}return _0x5985ff;}function _0x2d1370(_0x1f5497){const _0x4b6691=_0x3c2545;let _0x8767f1=_0x1f5497[_0x4b6691(0x156)];if(_0x8767f1[_0x4b6691(0x182)]<=0x1)return _0x8767f1;let _0x486604=[];for(let _0x1203cf=0x0;_0x1203cf<_0x8767f1[_0x4b6691(0x182)]-0x1;_0x1203cf++){let _0x346a3d=_0x8767f1[_0x1203cf],_0x11ca80=_0x8767f1[_0x1203cf+0x1],_0x37d29e=_0x8767f1[_0x1203cf-0x1]??_0x346a3d,_0x255ae0=_0x8767f1[_0x1203cf+0x2]??_0x11ca80;_0x1472b4(_0x486604,_0x346a3d,{'x':_0x346a3d['x']+(_0x11ca80['x']-_0x37d29e['x'])/0x6,'y':_0x346a3d['y']+(_0x11ca80['y']-_0x37d29e['y'])/0x6},{'x':_0x11ca80['x']-(_0x255ae0['x']-_0x346a3d['x'])/0x6,'y':_0x11ca80['y']-(_0x255ae0['y']-_0x346a3d['y'])/0x6},_0x11ca80);}return _0x486604;}function _0x48870c(_0x1d7501){const _0x29d091=_0x3c2545;return _0x1d7501[_0x29d091(0x19b)]===_0x29d091(0x197)?_0x4bd6b6(_0x1d7501):_0x2d1370(_0x1d7501);}function _0x17c8d9(_0x3b312d){const _0x583ea5=_0x3c2545;let _0x270ecb=Math[_0x583ea5(0x188)](_0x3b312d*0x2710)/0x2710;return Object['is'](_0x270ecb,-0x0)?0x0:_0x270ecb;}function _0x555e96(_0x2e41ea){const _0x54303b=_0x3c2545;let _0x3fc799=_0x48870c(_0x2e41ea);if(_0x3fc799[_0x54303b(0x182)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3c0eed=Math[_0x54303b(0x1b8)](..._0x3fc799[_0x54303b(0x150)](_0x14ace2=>_0x14ace2['x'])),_0x349261=Math[_0x54303b(0x1b8)](..._0x3fc799[_0x54303b(0x150)](_0x143591=>_0x143591['y'])),_0x1a8750=Math[_0x54303b(0x1ba)](..._0x3fc799[_0x54303b(0x150)](_0x3ec3cd=>_0x3ec3cd['x'])),_0x4e4ae2=Math['max'](..._0x3fc799[_0x54303b(0x150)](_0x25032a=>_0x25032a['y']));return{'left':_0x17c8d9(_0x3c0eed),'top':_0x17c8d9(_0x349261),'width':_0x17c8d9(Math[_0x54303b(0x1ba)](0x1,_0x1a8750-_0x3c0eed)),'height':_0x17c8d9(Math[_0x54303b(0x1ba)](0x1,_0x4e4ae2-_0x349261))};}function _0x177ffd(_0x3acb79,_0x5c0652){const _0x1b3dc3=_0x3c2545;let _0x91e015=_0x3acb79[_0x1b3dc3(0x17d)];if(_0x91e015['length']===0x0)return'';let _0x2ccb87=['M\x20'+_0x1ae803(_0x31676e(_0x91e015[0x0],_0x5c0652))];for(let _0xdcc6bc=0x1;_0xdcc6bc<_0x91e015[_0x1b3dc3(0x182)];_0xdcc6bc++){let _0x490a94=_0x91e015[_0xdcc6bc-0x1],_0x1ffb68=_0x91e015[_0xdcc6bc],_0x35c706=_0x490a94[_0x1b3dc3(0x15d)]??_0x490a94,_0x302744=_0x1ffb68['in']??_0x1ffb68;_0x2ccb87['push']('C\x20'+_0x1ae803(_0x31676e(_0x35c706,_0x5c0652))+'\x20'+_0x1ae803(_0x31676e(_0x302744,_0x5c0652))+'\x20'+_0x1ae803(_0x31676e(_0x1ffb68,_0x5c0652)));}if(_0x3acb79[_0x1b3dc3(0x1a7)]&&_0x91e015[_0x1b3dc3(0x182)]>0x1){let _0x3eeed3=_0x91e015[_0x91e015['length']-0x1],_0xfb175b=_0x91e015[0x0],_0xa733b4=_0x3eeed3[_0x1b3dc3(0x15d)]??_0x3eeed3,_0x4a0ba8=_0xfb175b['in']??_0xfb175b;_0x2ccb87['push']('C\x20'+_0x1ae803(_0x31676e(_0xa733b4,_0x5c0652))+'\x20'+_0x1ae803(_0x31676e(_0x4a0ba8,_0x5c0652))+'\x20'+_0x1ae803(_0x31676e(_0xfb175b,_0x5c0652))),_0x2ccb87['push']('Z');}return _0x2ccb87[_0x1b3dc3(0x15e)]('\x20');}function _0x3c3170(_0x3a70cc,_0x2e7508){const _0x1f9ff7=_0x3c2545;let _0x32338c=_0x3a70cc['points'][_0x1f9ff7(0x150)](_0x3ae64c=>_0x31676e(_0x3ae64c,_0x2e7508));if(_0x32338c[_0x1f9ff7(0x182)]===0x0)return'';if(_0x32338c['length']===0x1)return'M\x20'+_0x1ae803(_0x32338c[0x0]);let _0x87202f=['M\x20'+_0x1ae803(_0x32338c[0x0])];for(let _0xa38c89=0x0;_0xa38c89<_0x32338c['length']-0x1;_0xa38c89++){let _0x5d930e=_0x32338c[_0xa38c89],_0x16a68d=_0x32338c[_0xa38c89+0x1],_0xa6e1bb=_0x32338c[_0xa38c89-0x1]??_0x5d930e,_0x4e54f1=_0x32338c[_0xa38c89+0x2]??_0x16a68d,_0x924173={'x':_0x5d930e['x']+(_0x16a68d['x']-_0xa6e1bb['x'])/0x6,'y':_0x5d930e['y']+(_0x16a68d['y']-_0xa6e1bb['y'])/0x6},_0x2aed43={'x':_0x16a68d['x']-(_0x4e54f1['x']-_0x5d930e['x'])/0x6,'y':_0x16a68d['y']-(_0x4e54f1['y']-_0x5d930e['y'])/0x6};_0x87202f[_0x1f9ff7(0x17c)]('C\x20'+_0x1ae803(_0x924173)+'\x20'+_0x1ae803(_0x2aed43)+'\x20'+_0x1ae803(_0x16a68d));}return _0x87202f[_0x1f9ff7(0x15e)]('\x20');}function _0x4c644d(_0x1dd3e8,_0x2d938f){const _0xe8e3bb=_0x3c2545;return _0x1dd3e8[_0xe8e3bb(0x19b)]===_0xe8e3bb(0x197)?_0x177ffd(_0x1dd3e8,_0x2d938f):_0x3c3170(_0x1dd3e8,_0x2d938f);}function _0x1f39af(_0x4b37a8,_0x36b893){const _0x8d6956=_0x3c2545;return _0x36b893!=null&&_0x36b893[_0x8d6956(0x1a6)]?_0x36b893[_0x8d6956(0x1a6)]:_0x4b37a8['kind']===_0x8d6956(0x197)?_0x8d6956(0x1ae):_0x4b37a8[_0x8d6956(0x1a6)];}function _0x2b3c02(_0xc9edc7,_0x129859){const _0x1d2df1=_0x3c2545;return(_0x129859==null?void 0x0:_0x129859[_0x1d2df1(0x14f)])===void 0x0?_0xc9edc7[_0x1d2df1(0x19b)]===_0x1d2df1(0x197)?0x2:_0xc9edc7[_0x1d2df1(0x14f)]:_0x129859['width'];}function _0x304e77(_0x3db892,_0x136397){const _0x458c46=_0x3c2545;return(_0x136397==null?void 0x0:_0x136397[_0x458c46(0x1c0)])===void 0x0?_0x3db892['kind']===_0x458c46(0x197)?void 0x0:_0x3db892[_0x458c46(0x1c0)]:_0x136397[_0x458c46(0x1c0)];}function _0x3b4b4d(_0xb42be7,_0x5de02c){const _0x54a214=_0x3c2545;let _0x4df828=_0x555e96(_0xb42be7),_0x3b88b2=_0x4c644d(_0xb42be7,{'x':_0x4df828['left'],'y':_0x4df828[_0x54a214(0x15c)]}),_0x489c6a=_0xb42be7[_0x54a214(0x19b)]==='pen'&&_0xb42be7['closed'],_0x160b40=_0x5de02c==null?void 0x0:_0x5de02c[_0x54a214(0x17f)];return{'shapeType':_0x580dcc['ShapeTypeEnum'][_0x54a214(0x179)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x4df828[_0x54a214(0x14f)],'h':_0x4df828[_0x54a214(0x1af)],'fill':_0x489c6a?_0x54a214(0x163):_0x54a214(0x161),'stroke':!0x0,'data':_0x3b88b2,'dataArray':_0x172229(_0xb42be7,{'x':_0x4df828[_0x54a214(0x175)],'y':_0x4df828[_0x54a214(0x15c)]})}]},'fill':_0x489c6a&&_0x160b40?{'color':_0x160b40,'fillType':_0x580dcc['ShapeFillEnum']['SolidFill']}:{'fillType':_0x580dcc['ShapeFillEnum'][_0x54a214(0x1bc)]},'stroke':{'color':_0x1f39af(_0xb42be7,_0x5de02c),'width':_0x2b3c02(_0xb42be7,_0x5de02c),'opacity':_0x304e77(_0xb42be7,_0x5de02c),'lineStrokeType':_0x580dcc[_0x54a214(0x18c)][_0x54a214(0x18a)],'capType':_0x580dcc['ShapeLineCapEnum'][_0x54a214(0x19d)],'lineJoinType':_0x580dcc[_0x54a214(0x164)][_0x54a214(0x19d)]}};}function _0x15c759(_0x1d10b0,_0x34f557){return{'x':_0x1d10b0['x']-_0x34f557['x'],'y':_0x1d10b0['y']-_0x34f557['y']};}function _0x172229(_0x3e7731,_0x1b0576){const _0x280791=_0x3c2545;if(_0x3e7731[_0x280791(0x19b)]==='pen'){let _0x331a6e=_0x3e7731[_0x280791(0x17d)];if(_0x331a6e[_0x280791(0x182)]===0x0)return[];let _0x32c2aa=_0x15c759(_0x331a6e[0x0],_0x1b0576),_0x2a4244=[{'command':'M','points':[_0x32c2aa['x'],_0x32c2aa['y']]}];for(let _0x5de43b=0x1;_0x5de43b<_0x331a6e[_0x280791(0x182)];_0x5de43b++){let _0x2ef527=_0x331a6e[_0x5de43b-0x1],_0x585695=_0x331a6e[_0x5de43b],_0xe3c61=_0x15c759(_0x2ef527[_0x280791(0x15d)]??_0x2ef527,_0x1b0576),_0x485a52=_0x15c759(_0x585695['in']??_0x585695,_0x1b0576),_0x3ea967=_0x15c759(_0x585695,_0x1b0576);_0x2a4244[_0x280791(0x17c)]({'command':'C','points':[_0xe3c61['x'],_0xe3c61['y'],_0x485a52['x'],_0x485a52['y'],_0x3ea967['x'],_0x3ea967['y']]});}if(_0x3e7731[_0x280791(0x1a7)]&&_0x331a6e[_0x280791(0x182)]>0x1){let _0x57f022=_0x331a6e[_0x331a6e[_0x280791(0x182)]-0x1],_0x5c1151=_0x331a6e[0x0],_0x3c5687=_0x15c759(_0x57f022['out']??_0x57f022,_0x1b0576),_0x197ad2=_0x15c759(_0x5c1151['in']??_0x5c1151,_0x1b0576),_0x72b0b8=_0x15c759(_0x5c1151,_0x1b0576);_0x2a4244[_0x280791(0x17c)]({'command':'C','points':[_0x3c5687['x'],_0x3c5687['y'],_0x197ad2['x'],_0x197ad2['y'],_0x72b0b8['x'],_0x72b0b8['y']]}),_0x2a4244[_0x280791(0x17c)]({'command':'z','points':[]});}return _0x2a4244;}let _0x219e83=_0x3e7731['points'][_0x280791(0x150)](_0x286f38=>_0x15c759(_0x286f38,_0x1b0576));if(_0x219e83[_0x280791(0x182)]===0x0)return[];let _0x5939a9=[{'command':'M','points':[_0x219e83[0x0]['x'],_0x219e83[0x0]['y']]}];for(let _0x420ec2=0x0;_0x420ec2<_0x219e83[_0x280791(0x182)]-0x1;_0x420ec2++){let _0x2a98cf=_0x219e83[_0x420ec2],_0x13d688=_0x219e83[_0x420ec2+0x1],_0x94bc71=_0x219e83[_0x420ec2-0x1]??_0x2a98cf,_0x2e3b68=_0x219e83[_0x420ec2+0x2]??_0x13d688,_0x4ed6cb={'x':_0x2a98cf['x']+(_0x13d688['x']-_0x94bc71['x'])/0x6,'y':_0x2a98cf['y']+(_0x13d688['y']-_0x94bc71['y'])/0x6},_0x2a7b6a={'x':_0x13d688['x']-(_0x2e3b68['x']-_0x2a98cf['x'])/0x6,'y':_0x13d688['y']-(_0x2e3b68['y']-_0x2a98cf['y'])/0x6};_0x5939a9[_0x280791(0x17c)]({'command':'C','points':[_0x4ed6cb['x'],_0x4ed6cb['y'],_0x2a7b6a['x'],_0x2a7b6a['y'],_0x13d688['x'],_0x13d688['y']]});}return _0x5939a9;}function _0x1d38b9(_0x3b71de){const _0x18e8bc=_0x3c2545;let {model:_0x31d72a,sourceModel:_0x33056b=_0x31d72a,style:_0x69b8dc}=_0x3b71de,_0xcca558=_0x3b71de[_0x18e8bc(0x1a5)]??_0x31d72a[_0x18e8bc(0x19b)],_0x10e3c7=_0x555e96(_0x31d72a),_0x19537d=_0x31d72a[_0x18e8bc(0x19b)]===_0x18e8bc(0x197)&&_0xcca558!==_0x18e8bc(0x197)?_0x31d72a:void 0x0;return{'transform':{..._0x10e3c7,'rotation':0x0},'shapeData':_0x3b4b4d(_0x31d72a,_0x69b8dc),'ink':{'version':0x1,'tool':_0xcca558,'sourceModel':_0x33056b,..._0x19537d?{'editModel':_0x19537d}:{},'normalizedBounds':_0x10e3c7}};}var _0x3cc119='@univerjs-pro/ink',_0x2fab56=_0x3c2545(0x15f);function _0xa1e4eb(_0x334789){'@babel/helpers - typeof';const _0x59213e=_0x3c2545;return _0xa1e4eb=typeof Symbol=='function'&&typeof Symbol[_0x59213e(0x1b3)]==_0x59213e(0x166)?function(_0xf45fc6){return typeof _0xf45fc6;}:function(_0xf7180){const _0x5b0402=_0x59213e;return _0xf7180&&typeof Symbol==_0x5b0402(0x14e)&&_0xf7180['constructor']===Symbol&&_0xf7180!==Symbol[_0x5b0402(0x171)]?_0x5b0402(0x166):typeof _0xf7180;},_0xa1e4eb(_0x334789);}function _0x43f437(_0x5d05b2,_0x1b7ac0){const _0x12f714=_0x3c2545;if(_0xa1e4eb(_0x5d05b2)!='object'||!_0x5d05b2)return _0x5d05b2;var _0x5b9d5b=_0x5d05b2[Symbol['toPrimitive']];if(_0x5b9d5b!==void 0x0){var _0x467309=_0x5b9d5b[_0x12f714(0x152)](_0x5d05b2,_0x1b7ac0||_0x12f714(0x177));if(_0xa1e4eb(_0x467309)!=_0x12f714(0x1a2))return _0x467309;throw TypeError(_0x12f714(0x176));}return(_0x1b7ac0==='string'?String:Number)(_0x5d05b2);}function _0x3a1aa5(_0x13aa59){const _0x5964f9=_0x3c2545;var _0x1cd9c1=_0x43f437(_0x13aa59,_0x5964f9(0x1bb));return _0xa1e4eb(_0x1cd9c1)==_0x5964f9(0x166)?_0x1cd9c1:_0x1cd9c1+'';}function _0x10c45e(_0x4551b7,_0x26924b,_0x225c5a){const _0x4a9f74=_0x3c2545;return(_0x26924b=_0x3a1aa5(_0x26924b))in _0x4551b7?Object[_0x4a9f74(0x1b5)](_0x4551b7,_0x26924b,{'value':_0x225c5a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4551b7[_0x26924b]=_0x225c5a,_0x4551b7;}let _0x1d588a=(0x0,_0x36a853[_0x3c2545(0x19f)])('ink.host-adapter.service');var _0x2ee723=class{constructor(){_0x10c45e(this,'_adapters',[]);}[_0x3c2545(0x199)](_0xd743e2){const _0x358e92=_0x3c2545;return this[_0x358e92(0x1c4)]['push'](_0xd743e2),(0x0,_0x36a853['toDisposable'])(()=>{const _0x3658fc=_0x358e92;let _0x248c8f=this[_0x3658fc(0x1c4)][_0x3658fc(0x1b6)](_0xd743e2);_0x248c8f>=0x0&&this[_0x3658fc(0x1c4)][_0x3658fc(0x1b1)](_0x248c8f,0x1);});}[_0x3c2545(0x198)](_0x59cb89){const _0x205404=_0x3c2545;for(let _0x429431 of this['_adapters'])if(_0x429431[_0x205404(0x198)](_0x59cb89))return!0x0;return!0x1;}async[_0x3c2545(0x168)](_0x54c984){const _0x20d8a8=_0x3c2545;for(let _0x13b040 of this['_adapters'])if(_0x13b040[_0x20d8a8(0x168)]&&await _0x13b040[_0x20d8a8(0x168)](_0x54c984))return!0x0;return!0x1;}};let _0x1abe8f={'id':_0x3c2545(0x16b),'type':_0x36a853['CommandType'][_0x3c2545(0x173)],'handler':(_0x2f5992,_0x5cffed)=>_0x5cffed?_0x2f5992['get'](_0x1d588a)[_0x3c2545(0x198)](_0x5cffed):!0x1},_0x582c94={};function _0x4eb6c6(_0x3ff237,_0x560420){return function(_0x13cee0,_0x26038b){_0x560420(_0x13cee0,_0x26038b,_0x3ff237);};}function _0x1c5d10(_0x55e7a1,_0x395c58,_0xf42dca,_0x49dd22){const _0x1a3d29=_0x3c2545;var _0xd4e4f5=arguments['length'],_0x29765d=_0xd4e4f5<0x3?_0x395c58:_0x49dd22===null?_0x49dd22=Object['getOwnPropertyDescriptor'](_0x395c58,_0xf42dca):_0x49dd22,_0x442f05;if(typeof Reflect==_0x1a3d29(0x1a2)&&typeof Reflect['decorate']==_0x1a3d29(0x14e))_0x29765d=Reflect[_0x1a3d29(0x1ab)](_0x55e7a1,_0x395c58,_0xf42dca,_0x49dd22);else{for(var _0x485b69=_0x55e7a1[_0x1a3d29(0x182)]-0x1;_0x485b69>=0x0;_0x485b69--)(_0x442f05=_0x55e7a1[_0x485b69])&&(_0x29765d=(_0xd4e4f5<0x3?_0x442f05(_0x29765d):_0xd4e4f5>0x3?_0x442f05(_0x395c58,_0xf42dca,_0x29765d):_0x442f05(_0x395c58,_0xf42dca))||_0x29765d);}return _0xd4e4f5>0x3&&_0x29765d&&Object[_0x1a3d29(0x1b5)](_0x395c58,_0xf42dca,_0x29765d),_0x29765d;}let _0x22de9b=class extends _0x36a853[_0x3c2545(0x194)]{constructor(_0x12a224=_0x582c94,_0x53823a,_0x44c147,_0x3e096d){const _0x3b16d8=_0x3c2545;super(),this['_config']=_0x12a224,this[_0x3b16d8(0x18b)]=_0x53823a,this[_0x3b16d8(0x160)]=_0x44c147,this[_0x3b16d8(0x192)]=_0x3e096d;let {..._0x301cc7}=(0x0,_0x36a853['merge'])({},_0x582c94,this['_config']);this['_configService'][_0x3b16d8(0x18f)]('ink.config',_0x301cc7);}[_0x3c2545(0x1a4)](){const _0xa51c90=_0x3c2545;[[_0x1d588a,{'useClass':_0x2ee723}]][_0xa51c90(0x162)](_0x6d85ea=>this[_0xa51c90(0x18b)][_0xa51c90(0x1c7)](_0x6d85ea)),this[_0xa51c90(0x1c8)](this[_0xa51c90(0x160)]['registerCommand'](_0x1abe8f));}};_0x10c45e(_0x22de9b,_0x3c2545(0x17a),_0x3c2545(0x1aa)),_0x10c45e(_0x22de9b,_0x3c2545(0x167),_0x3cc119),_0x10c45e(_0x22de9b,'version',_0x2fab56),_0x10c45e(_0x22de9b,_0x3c2545(0x1c2),_0x36a853[_0x3c2545(0x187)][_0x3c2545(0x170)]),_0x22de9b=_0x1c5d10([(0x0,_0x36a853['DependentOn'])(_0x20125a[_0x3c2545(0x178)]),_0x4eb6c6(0x1,(0x0,_0x36a853[_0x3c2545(0x159)])(_0x36a853[_0x3c2545(0x154)])),_0x4eb6c6(0x2,_0x36a853[_0x3c2545(0x174)]),_0x4eb6c6(0x3,_0x36a853[_0x3c2545(0x1bd)])],_0x22de9b),_0x670508[_0x3c2545(0x183)]=_0x1d588a,Object[_0x3c2545(0x1b5)](_0x670508,'UniverInkPlugin',{'enumerable':!0x0,'get':function(){return _0x22de9b;}}),_0x670508[_0x3c2545(0x19e)]=_0x1d38b9,_0x670508['convertBrushModelToPenModel']=_0x39f5f7,_0x670508[_0x3c2545(0x1c3)]=_0x457c74,_0x670508[_0x3c2545(0x1b4)]=_0x31899b,_0x670508[_0x3c2545(0x165)]=_0x509209,_0x670508[_0x3c2545(0x16e)]=_0x591e55,_0x670508[_0x3c2545(0x16f)]=_0x555e96,_0x670508[_0x3c2545(0x153)]=_0x45ba48,_0x670508[_0x3c2545(0x17b)]=_0x4d91d7,_0x670508[_0x3c2545(0x1a8)]=_0x4b1ffc,_0x670508[_0x3c2545(0x1c6)]=_0x4f6b32,_0x670508['setInkPenAnchorPointType']=_0x33299d;}));function _0x4a9e(_0xb17f30,_0x36227){_0xb17f30=_0xb17f30-0x14c;const _0x57f64d=_0x57f6();let _0x4a9e72=_0x57f64d[_0xb17f30];return _0x4a9e72;}function _0x57f6(){const _0x519d71=['free','type','cycleInkPenAnchorPointType','_adapters','findIndex','moveInkPenAnchorPoint','add','disposeWithMe','ink-centerline-','abs','function','width','map','@univerjs/core','call','getInkPenPreviewModel','Injector','737gopIZy','points','anchorId','__ink-preview-anchor__','Inject','UniverProLicense','slice','top','out','join','1.0.4','_commandService','none','forEach','norm','ShapeLineJoinEnum','findClosestInkPenHandle','symbol','packageName','createCustomShape','startIndex','smooth','ink.operation.start','407405SNiZlk','symmetric','findClosestInkPenSegment','getInkModelBounds','UNIVER_UNKNOWN','prototype','@univerjs-pro/engine-shape','OPERATION','ICommandService','left','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','default','UniverLicensePlugin','Rect','pluginName','insertInkPenAnchorAt','push','anchors','24GpMLob','fillColor','tolerance','253690ZlOCGZ','length','IInkHostAdapterService','find','point','829640ZNxdZR','UniverInstanceType','round','distance','SolidLine','_injector','ShapeLineTypeEnum','UniverProEngineShape','1120155EzqeCd','setConfig','anchor','corner','_configService','exports','Plugin','2LyNMqq','UniverProInk','pen','beginInkMode','registerAdapter','pointType','kind','end','Round','buildInkCustomShapePayload','createIdentifier','@univerjs-pro/license','segmentIndex','object','1562722ZJKfSd','onStarting','tool','color','closed','isInkPenHandleVisible','ratio','UNIVER_INK_PLUGIN','decorate','hypot','385544rFyAPt','#f54a45','height','right','splice','start','iterator','deleteInkPenAnchor','defineProperty','indexOf','5188248mcWfob','min','sqrt','max','string','NoFill','IConfigService','toStringTag','30fHoxXC','opacity'];_0x57f6=function(){return _0x519d71;};return _0x57f6();}
|
|
1
|
+
function _0x2948(){const _0x2c304e=['@univerjs-pro/engine-shape','UniverInstanceType','_commandService','_config','CommandType','getOwnPropertyDescriptor','toPrimitive','ICommandService','createCustomShape','kind','splice','join','setInkPenAnchorPointType','color','version','max','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ink-centerline-','5386792rYnWSZ','ShapeLineCapEnum','prototype','ink.operation.start','type','string','forEach','Round','ink.host-adapter.service','1506253ngmLjH','Rect','UniverProLicense','35ECArET','width','Plugin','findClosestInkPenHandle','pluginName','#f54a45','push','smooth','onStarting','ink.config','abs','object','IConfigService','UniverInkPlugin','packageName','UNIVER_UNKNOWN','defineProperty','points','left','ShapeLineJoinEnum','tolerance','OPERATION','cycleInkPenAnchorPointType','SolidFill','_configService','_injector','add','@univerjs-pro/ink','1281510NYTXrV','decorate','20ChjRqQ','2160106cNRzir','distance','right','UniverCore','anchor','171828zRhpTa','endIndex','toStringTag','registerAdapter','fillColor','symmetric','4109289cCiGIX','top','default','DependentOn','exports','norm','start','startIndex','segmentIndex','beginInkMode','hypot','42gdaKgd','anchors','UNIVER_INK_PLUGIN','createId','isInkPenHandleVisible','amd','Injector','map','out','SolidLine','UniverProInk','function','indexOf','pen','round','corner','buildInkCustomShapePayload','_adapters','symbol','ShapeFillEnum','disposeWithMe','slice','ShapeTypeEnum','getInkModelBounds','UniverProEngineShape','pointType','find','min','closed','findClosestInkPenSegment','moveInkPenAnchorPoint','insertInkPenAnchorAt','Module','length','iterator','UniverLicensePlugin','end','point','@univerjs-pro/license','1401205XIYkUz','call','free','opacity'];_0x2948=function(){return _0x2c304e;};return _0x2948();}function _0x1077(_0x5895d8,_0x49de0b){_0x5895d8=_0x5895d8-0x15c;const _0x29485b=_0x2948();let _0x1077fa=_0x29485b[_0x5895d8];return _0x1077fa;}(function(_0x45cc2a,_0x95e22d){const _0xbeffa9=_0x1077,_0x2553e8=_0x45cc2a();while(!![]){try{const _0x8db7ab=parseInt(_0xbeffa9(0x190))/0x1+parseInt(_0xbeffa9(0x1d1))/0x2+-parseInt(_0xbeffa9(0x15e))/0x3+-parseInt(_0xbeffa9(0x1d6))/0x4*(-parseInt(_0xbeffa9(0x1b2))/0x5)+parseInt(_0xbeffa9(0x169))/0x6*(-parseInt(_0xbeffa9(0x1af))/0x7)+parseInt(_0xbeffa9(0x1a6))/0x8+-parseInt(_0xbeffa9(0x1ce))/0x9*(-parseInt(_0xbeffa9(0x1d0))/0xa);if(_0x8db7ab===_0x95e22d)break;else _0x2553e8['push'](_0x2553e8['shift']());}catch(_0x2dd9b0){_0x2553e8['push'](_0x2553e8['shift']());}}}(_0x2948,0xd2f46),function(_0x4117db,_0x3092e6){const _0x4f15d3=_0x1077;typeof exports==_0x4f15d3(0x1bd)&&typeof module<'u'?_0x3092e6(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x4f15d3(0x174)&&define[_0x4f15d3(0x16e)]?define([_0x4f15d3(0x162),_0x4f15d3(0x194),_0x4f15d3(0x18f),'@univerjs/core'],_0x3092e6):(_0x4117db=typeof globalThis<'u'?globalThis:_0x4117db||self,_0x3092e6(_0x4117db[_0x4f15d3(0x173)]={},_0x4117db[_0x4f15d3(0x181)],_0x4117db[_0x4f15d3(0x1b1)],_0x4117db[_0x4f15d3(0x1d4)]));}(this,function(_0x4dd190,_0x578d4f,_0x356d8f,_0x1d0f37){const _0x4e38a9=_0x1077;Object[_0x4e38a9(0x1c2)](_0x4dd190,Symbol[_0x4e38a9(0x1d8)],{'value':_0x4e38a9(0x189)});let _0x3c56f3=0.0001;function _0xe8a5eb(_0x347ad9){return{'x':_0x347ad9['x'],'y':_0x347ad9['y']};}function _0x9b2196(_0x37014c){return{..._0x37014c,'in':_0x37014c['in']?_0xe8a5eb(_0x37014c['in']):void 0x0,'out':_0x37014c['out']?_0xe8a5eb(_0x37014c['out']):void 0x0};}function _0xf61b07(_0x2217c4){const _0x50efe8=_0x4e38a9;return{'kind':_0x50efe8(0x176),'closed':_0x2217c4[_0x50efe8(0x185)],'anchors':_0x2217c4[_0x50efe8(0x16a)][_0x50efe8(0x170)](_0x9b2196)};}function _0x3b34b7(_0x55714b,_0x4d9a8a,_0x4b0b96){return{'x':_0x55714b['x']+(_0x4d9a8a['x']-_0x55714b['x'])*_0x4b0b96,'y':_0x55714b['y']+(_0x4d9a8a['y']-_0x55714b['y'])*_0x4b0b96};}function _0x170211(_0xfc3e87,_0xa77f92){return Math['hypot'](_0xfc3e87['x']-_0xa77f92['x'],_0xfc3e87['y']-_0xa77f92['y']);}function _0x43cf75(_0x4ab7af){const _0x1c7eda=_0x4e38a9;let _0x5f0339=Math[_0x1c7eda(0x168)](_0x4ab7af['x'],_0x4ab7af['y']);return _0x5f0339<_0x3c56f3?{'x':0x1,'y':0x0}:{'x':_0x4ab7af['x']/_0x5f0339,'y':_0x4ab7af['y']/_0x5f0339};}function _0x508ee7(_0x2a5490,_0x2c7249,_0x307812=_0x170211(_0x2a5490,_0x2c7249)){let _0x3e53b1=_0x43cf75({'x':_0x2a5490['x']-_0x2c7249['x'],'y':_0x2a5490['y']-_0x2c7249['y']});return{'x':_0x2a5490['x']+_0x3e53b1['x']*_0x307812,'y':_0x2a5490['y']+_0x3e53b1['y']*_0x307812};}function _0x16b07b(_0x9adae5,_0x2152ef){const _0x13034c=_0x4e38a9;let {anchors:_0x70ec62}=_0x9adae5;return _0x70ec62[_0x13034c(0x18a)]<0x2||_0x2152ef<0x0?null:_0x2152ef<_0x70ec62['length']-0x1?{'startIndex':_0x2152ef,'endIndex':_0x2152ef+0x1,'start':_0x70ec62[_0x2152ef],'end':_0x70ec62[_0x2152ef+0x1]}:_0x9adae5[_0x13034c(0x185)]&&_0x2152ef===_0x70ec62[_0x13034c(0x18a)]-0x1?{'startIndex':_0x70ec62['length']-0x1,'endIndex':0x0,'start':_0x70ec62[_0x70ec62[_0x13034c(0x18a)]-0x1],'end':_0x70ec62[0x0]}:null;}function _0x54080c(_0x4b47d8,_0xe61d3c){const _0x4355de=_0x4e38a9;let _0x27b3cc=_0x16b07b(_0x4b47d8,_0xe61d3c);return _0x27b3cc?[_0x27b3cc[_0x4355de(0x164)],_0x27b3cc[_0x4355de(0x164)][_0x4355de(0x171)]??_0x27b3cc[_0x4355de(0x164)],_0x27b3cc[_0x4355de(0x18d)]['in']??_0x27b3cc[_0x4355de(0x18d)],_0x27b3cc[_0x4355de(0x18d)]]:null;}function _0x54413c(_0x48fe84,_0x7a8b49){return _0x7a8b49==='anchor'?_0x48fe84:_0x48fe84[_0x7a8b49]??null;}function _0x2ea2f6(_0xf405d1,_0x6e71bf,_0x196a46){const _0x52904a=_0x4e38a9;return _0x196a46==='anchor'||_0xf405d1[_0x52904a(0x185)]?!0x0:_0x196a46==='in'?_0x6e71bf>0x0:_0x6e71bf<_0xf405d1[_0x52904a(0x16a)][_0x52904a(0x18a)]-0x1;}function _0x5b7549(_0x427cc2,_0x1a88ff){let [_0x10cc28,_0x2582e7,_0x3ccf50,_0x5a90aa]=_0x427cc2,_0x24378d=_0x3b34b7(_0x10cc28,_0x2582e7,_0x1a88ff),_0x57ff8c=_0x3b34b7(_0x2582e7,_0x3ccf50,_0x1a88ff),_0x1414e9=_0x3b34b7(_0x3ccf50,_0x5a90aa,_0x1a88ff);return _0x3b34b7(_0x3b34b7(_0x24378d,_0x57ff8c,_0x1a88ff),_0x3b34b7(_0x57ff8c,_0x1414e9,_0x1a88ff),_0x1a88ff);}function _0x31af5b(_0x13f3a8,_0x269262){let [_0x548b33,_0x1178c4,_0x4c6f3c,_0x3d3207]=_0x13f3a8,_0x6ed588=_0x3b34b7(_0x548b33,_0x1178c4,_0x269262),_0x517f9f=_0x3b34b7(_0x1178c4,_0x4c6f3c,_0x269262),_0xfee068=_0x3b34b7(_0x4c6f3c,_0x3d3207,_0x269262),_0x5c8507=_0x3b34b7(_0x6ed588,_0x517f9f,_0x269262),_0x1b51e8=_0x3b34b7(_0x517f9f,_0xfee068,_0x269262),_0x42b3eb=_0x3b34b7(_0x5c8507,_0x1b51e8,_0x269262);return{'left':[_0x548b33,_0x6ed588,_0x5c8507,_0x42b3eb],'right':[_0x42b3eb,_0x1b51e8,_0xfee068,_0x3d3207]};}function _0x49ab6f(_0x326778,_0x3abafe,_0xf9f143){const _0x432293=_0x4e38a9;let _0x2ca007=_0xf9f143['x']-_0x3abafe['x'],_0x4a3c5a=_0xf9f143['y']-_0x3abafe['y'],_0x374b4a=_0x2ca007*_0x2ca007+_0x4a3c5a*_0x4a3c5a,_0x2bfaf0=_0x374b4a<=_0x3c56f3?0x0:Math[_0x432293(0x1a3)](0x0,Math[_0x432293(0x184)](0x1,((_0x326778['x']-_0x3abafe['x'])*_0x2ca007+(_0x326778['y']-_0x3abafe['y'])*_0x4a3c5a)/_0x374b4a)),_0x271758={'x':_0x3abafe['x']+_0x2ca007*_0x2bfaf0,'y':_0x3abafe['y']+_0x4a3c5a*_0x2bfaf0};return{'point':_0x271758,'ratio':_0x2bfaf0,'distance':_0x170211(_0x326778,_0x271758)};}function _0x3c8fa8(_0x2db08e,_0x335fbf,_0x4f72d7){const _0x5bfdfc=_0x4e38a9;return _0x49ab6f(_0x2db08e,_0x335fbf,_0x4f72d7)[_0x5bfdfc(0x1d2)]**0x2;}function _0x49ae55(_0x20b328,_0x14ff28){const _0x9eab1a=_0x4e38a9;if(_0x20b328[_0x9eab1a(0x18a)]<=0x2)return _0x20b328[_0x9eab1a(0x170)](_0xe8a5eb);let _0x59be1d=0x0,_0x316359=0x0,_0x587926=_0x20b328[0x0],_0x4b3c83=_0x20b328[_0x20b328['length']-0x1],_0x3a91d3=_0x14ff28*_0x14ff28;for(let _0x41fd07=0x1;_0x41fd07<_0x20b328[_0x9eab1a(0x18a)]-0x1;_0x41fd07++){let _0x103587=_0x3c8fa8(_0x20b328[_0x41fd07],_0x587926,_0x4b3c83);_0x103587>_0x59be1d&&(_0x59be1d=_0x103587,_0x316359=_0x41fd07);}if(_0x59be1d<=_0x3a91d3)return[_0xe8a5eb(_0x587926),_0xe8a5eb(_0x4b3c83)];let _0x2488ac=_0x49ae55(_0x20b328['slice'](0x0,_0x316359+0x1),_0x14ff28),_0x122a10=_0x49ae55(_0x20b328[_0x9eab1a(0x17e)](_0x316359),_0x14ff28);return[..._0x2488ac['slice'](0x0,-0x1),..._0x122a10];}function _0x120ae2(_0x2ccd95,_0x1ee371){let _0x254305=_0x2ccd95[_0x1ee371],_0x75f379=_0x2ccd95[_0x1ee371+0x1],_0x37faba=_0x2ccd95[_0x1ee371-0x1]??_0x254305;return{'x':_0x254305['x']+(_0x75f379['x']-_0x37faba['x'])/0x6,'y':_0x254305['y']+(_0x75f379['y']-_0x37faba['y'])/0x6};}function _0x26633b(_0xed58,_0x16a25b){let _0x36d50c=_0xed58[_0x16a25b],_0x450090=_0xed58[_0x16a25b-0x1],_0x4290e0=_0xed58[_0x16a25b+0x1]??_0x36d50c;return{'x':_0x36d50c['x']-(_0x4290e0['x']-_0x450090['x'])/0x6,'y':_0x36d50c['y']-(_0x4290e0['y']-_0x450090['y'])/0x6};}function _0x410d17(_0x4365dc,_0x4eaa1e){const _0x4c8787=_0x4e38a9;let _0x78176c=_0x4365dc['anchors'][_0x4eaa1e],_0x367483=_0x4365dc[_0x4c8787(0x16a)][_0x4eaa1e-0x1]??(_0x4365dc['closed']?_0x4365dc['anchors'][_0x4365dc['anchors'][_0x4c8787(0x18a)]-0x1]:null),_0x5359fa=_0x4365dc['anchors'][_0x4eaa1e+0x1]??(_0x4365dc['closed']?_0x4365dc[_0x4c8787(0x16a)][0x0]:null),_0x24d904=_0x367483&&_0x5359fa?_0x43cf75({'x':_0x5359fa['x']-_0x367483['x'],'y':_0x5359fa['y']-_0x367483['y']}):_0x5359fa?_0x43cf75({'x':_0x5359fa['x']-_0x78176c['x'],'y':_0x5359fa['y']-_0x78176c['y']}):_0x367483?_0x43cf75({'x':_0x78176c['x']-_0x367483['x'],'y':_0x78176c['y']-_0x367483['y']}):{'x':0x1,'y':0x0},_0xd25f72=_0x367483&&_0x5359fa?Math[_0x4c8787(0x1a3)](0x32,_0x170211(_0x367483,_0x5359fa)/0x4):0x32;return{'in':{'x':_0x78176c['x']-_0x24d904['x']*_0xd25f72,'y':_0x78176c['y']-_0x24d904['y']*_0xd25f72},'out':{'x':_0x78176c['x']+_0x24d904['x']*_0xd25f72,'y':_0x78176c['y']+_0x24d904['y']*_0xd25f72}};}function _0x36ae8f(_0x36a07f,_0x1c80e9){const _0x39dbfd=_0x4e38a9;let _0xa289f=_0x36a07f[_0x1c80e9],_0x29d00b=_0x1c80e9==='in'?_0x39dbfd(0x171):'in',_0x2c4406=_0x36a07f[_0x29d00b];_0xa289f&&(_0x36a07f['pointType']===_0x39dbfd(0x15d)?_0x36a07f[_0x29d00b]=_0x508ee7(_0x36a07f,_0xa289f):_0x36a07f[_0x39dbfd(0x182)]===_0x39dbfd(0x1b9)&&(_0x36a07f[_0x29d00b]=_0x508ee7(_0x36a07f,_0xa289f,_0x2c4406?_0x170211(_0x36a07f,_0x2c4406):_0x170211(_0x36a07f,_0xa289f))));}function _0x3007fb(_0x50aa88,_0x2f5e8e){const _0xa0452c=_0x4e38a9;let _0x24a950=_0xf61b07(_0x50aa88);return!_0x2f5e8e||_0x24a950['closed']||_0x24a950[_0xa0452c(0x16a)][_0xa0452c(0x18a)]===0x0||_0x24a950[_0xa0452c(0x16a)]['push']({'id':'__ink-preview-anchor__','x':_0x2f5e8e['x'],'y':_0x2f5e8e['y'],'pointType':_0xa0452c(0x178)}),_0x24a950;}function _0x1920f4(_0x22c795,_0x87d921={}){const _0x259cd9=_0x4e38a9;let _0x498b7f=Math['max'](0x0,_0x87d921[_0x259cd9(0x1c6)]??Math[_0x259cd9(0x1a3)](0x4,_0x22c795[_0x259cd9(0x1b3)]*0.35)),_0x3f0ecb=_0x87d921[_0x259cd9(0x16c)]??(_0x4e3bed=>_0x259cd9(0x1a5)+_0x4e3bed),_0x3b8097=_0x49ae55(_0x22c795[_0x259cd9(0x1c3)],_0x498b7f),_0x5e9dd=_0x3b8097[_0x259cd9(0x170)]((_0xa92502,_0x2f7a36)=>({'id':_0x3f0ecb(_0x2f7a36),'x':_0xa92502['x'],'y':_0xa92502['y'],'pointType':_0x259cd9(0x192)}));for(let _0x3ac11c=0x0;_0x3ac11c<_0x5e9dd[_0x259cd9(0x18a)]-0x1;_0x3ac11c++)_0x5e9dd[_0x3ac11c][_0x259cd9(0x171)]=_0x120ae2(_0x3b8097,_0x3ac11c),_0x5e9dd[_0x3ac11c+0x1]['in']=_0x26633b(_0x3b8097,_0x3ac11c+0x1);return{'kind':_0x259cd9(0x176),'closed':!0x1,'anchors':_0x5e9dd};}function _0x1e5948(_0x4faf33,_0x1f33cd,_0x41c2c3){const _0xd2d231=_0x4e38a9;let _0x47df6d=null,_0x2cb6ff=[_0xd2d231(0x1d5),'in',_0xd2d231(0x171)];return _0x4faf33[_0xd2d231(0x16a)][_0xd2d231(0x1ac)]((_0x14f7ed,_0x27dadd)=>{const _0x2548d8=_0xd2d231;_0x2cb6ff[_0x2548d8(0x1ac)](_0x473f19=>{const _0x3ee369=_0x2548d8;if(!_0x2ea2f6(_0x4faf33,_0x27dadd,_0x473f19))return;let _0x101f12=_0x54413c(_0x14f7ed,_0x473f19);if(!_0x101f12)return;let _0x1c6486=_0x170211(_0x1f33cd,_0x101f12);_0x1c6486>_0x41c2c3||_0x47df6d&&_0x1c6486>=_0x47df6d[_0x3ee369(0x1d2)]||(_0x47df6d={'handle':{'kind':_0x473f19,'anchorId':_0x14f7ed['id']},'point':_0xe8a5eb(_0x101f12),'distance':_0x1c6486});});}),_0x47df6d;}function _0x23b578(_0x31c4e5,_0x177638,_0x1fa8ee){const _0x164f51=_0x4e38a9;let _0x100ffc=null,_0x382f4d=_0x31c4e5['closed']?_0x31c4e5['anchors'][_0x164f51(0x18a)]:Math['max'](0x0,_0x31c4e5[_0x164f51(0x16a)][_0x164f51(0x18a)]-0x1);for(let _0x22ad79=0x0;_0x22ad79<_0x382f4d;_0x22ad79++){let _0x271861=_0x54080c(_0x31c4e5,_0x22ad79);if(!_0x271861)continue;let _0x505d01=_0x5b7549(_0x271861,0x0);for(let _0x466010=0x1;_0x466010<=0x20;_0x466010++){let _0x3f3bf6=_0x5b7549(_0x271861,_0x466010/0x20),_0x45763b=_0x49ab6f(_0x177638,_0x505d01,_0x3f3bf6),_0x2aea9e=(_0x466010-0x1+_0x45763b['ratio'])/0x20;(!_0x100ffc||_0x45763b['distance']<_0x100ffc[_0x164f51(0x1d2)])&&(_0x100ffc={'segmentIndex':_0x22ad79,'t':_0x2aea9e,'point':_0x45763b[_0x164f51(0x18e)],'distance':_0x45763b[_0x164f51(0x1d2)]}),_0x505d01=_0x3f3bf6;}}return _0x100ffc&&_0x100ffc[_0x164f51(0x1d2)]<=_0x1fa8ee?_0x100ffc:null;}function _0x1fa9a8(_0x5fe668,_0x41093,_0x35a261){const _0x3b618f=_0x4e38a9;let _0x5c892b=_0xf61b07(_0x5fe668),_0x447067=_0x16b07b(_0x5c892b,_0x41093[_0x3b618f(0x166)]),_0x222eb9=_0x54080c(_0x5c892b,_0x41093['segmentIndex']);if(!_0x447067||!_0x222eb9)return _0x5c892b;let _0x17d836=_0x31af5b(_0x222eb9,Math[_0x3b618f(0x1a3)](0x0,Math[_0x3b618f(0x184)](0x1,_0x41093['t']))),_0x25d017={'id':_0x35a261(),'x':_0x17d836['left'][0x3]['x'],'y':_0x17d836[_0x3b618f(0x1c4)][0x3]['y'],'in':_0xe8a5eb(_0x17d836[_0x3b618f(0x1c4)][0x2]),'out':_0xe8a5eb(_0x17d836[_0x3b618f(0x1d3)][0x1]),'pointType':_0x3b618f(0x192)};return _0x5c892b['anchors'][_0x447067[_0x3b618f(0x165)]][_0x3b618f(0x171)]=_0xe8a5eb(_0x17d836[_0x3b618f(0x1c4)][0x1]),_0x5c892b[_0x3b618f(0x16a)][_0x447067[_0x3b618f(0x1d7)]]['in']=_0xe8a5eb(_0x17d836[_0x3b618f(0x1d3)][0x2]),_0x5c892b['anchors']['splice'](_0x447067[_0x3b618f(0x165)]+0x1,0x0,_0x25d017),_0x5c892b;}function _0x571ff4(_0x2e9455,_0x536af6){const _0x5e50da=_0x4e38a9;let _0x5f1342=_0xf61b07(_0x2e9455);return _0x5f1342['anchors']=_0x5f1342['anchors']['filter'](_0x17d4bf=>_0x17d4bf['id']!==_0x536af6),_0x5f1342[_0x5e50da(0x185)]&&_0x5f1342['anchors']['length']<0x3&&(_0x5f1342[_0x5e50da(0x185)]=!0x1),_0x5f1342;}function _0x3aa496(_0x7625f3,_0x2910b8,_0x20f3ef){const _0x857251=_0x4e38a9;let _0x1680eb=_0xf61b07(_0x7625f3),_0x23b913=_0x1680eb[_0x857251(0x16a)]['findIndex'](_0xbfa20d=>_0xbfa20d['id']===_0x2910b8),_0x368141=_0x1680eb[_0x857251(0x16a)][_0x23b913];if(!_0x368141)return _0x1680eb;if(_0x368141[_0x857251(0x182)]=_0x20f3ef,_0x20f3ef===_0x857251(0x178))return delete _0x368141['in'],delete _0x368141[_0x857251(0x171)],_0x1680eb;let _0xa1f4ab=_0x410d17(_0x1680eb,_0x23b913);if(_0x368141['in']=_0x368141['in']?_0xe8a5eb(_0x368141['in']):_0xa1f4ab['in'],_0x368141['out']=_0x368141['out']?_0xe8a5eb(_0x368141['out']):_0xa1f4ab[_0x857251(0x171)],_0x20f3ef===_0x857251(0x15d)){let _0x302ec5=Math[_0x857251(0x1a3)](_0x170211(_0x368141,_0x368141['in']),_0x170211(_0x368141,_0x368141[_0x857251(0x171)]),0x32),_0x1fa7fe=_0x43cf75({'x':_0x368141['out']['x']-_0x368141['x'],'y':_0x368141['out']['y']-_0x368141['y']});_0x368141[_0x857251(0x171)]={'x':_0x368141['x']+_0x1fa7fe['x']*_0x302ec5,'y':_0x368141['y']+_0x1fa7fe['y']*_0x302ec5},_0x368141['in']={'x':_0x368141['x']-_0x1fa7fe['x']*_0x302ec5,'y':_0x368141['y']-_0x1fa7fe['y']*_0x302ec5};}else _0x20f3ef==='smooth'&&_0x36ae8f(_0x368141,_0x857251(0x171));return _0x1680eb;}function _0x4481db(_0x3f4868,_0x46aadb){const _0x281819=_0x4e38a9;let _0x4be044=_0x3f4868['anchors']['find'](_0x42f3b5=>_0x42f3b5['id']===_0x46aadb),_0x200073=(_0x4be044==null?void 0x0:_0x4be044[_0x281819(0x182)])??_0x281819(0x178);return _0x3aa496(_0x3f4868,_0x46aadb,_0x200073===_0x281819(0x178)?'smooth':_0x200073===_0x281819(0x1b9)?_0x281819(0x15d):_0x200073===_0x281819(0x15d)?_0x281819(0x192):'corner');}function _0x147bc9(_0x2ac2e0,_0xa1fc6a,_0x38b38f){const _0x39e99e=_0x4e38a9;let _0x2a9035=_0xf61b07(_0x2ac2e0),_0x58b9e3=_0x2a9035[_0x39e99e(0x16a)][_0x39e99e(0x183)](_0x58ac01=>_0x58ac01['id']===_0xa1fc6a['anchorId']);if(!_0x58b9e3)return _0x2a9035;if(_0xa1fc6a['kind']===_0x39e99e(0x1d5)){let _0x4e7b88={'x':_0x38b38f['x']-_0x58b9e3['x'],'y':_0x38b38f['y']-_0x58b9e3['y']};return _0x58b9e3['x']=_0x38b38f['x'],_0x58b9e3['y']=_0x38b38f['y'],_0x58b9e3['in']&&={'x':_0x58b9e3['in']['x']+_0x4e7b88['x'],'y':_0x58b9e3['in']['y']+_0x4e7b88['y']},_0x58b9e3['out']&&={'x':_0x58b9e3['out']['x']+_0x4e7b88['x'],'y':_0x58b9e3[_0x39e99e(0x171)]['y']+_0x4e7b88['y']},_0x2a9035;}return _0x58b9e3[_0xa1fc6a[_0x39e99e(0x19d)]]=_0xe8a5eb(_0x38b38f),_0x58b9e3[_0x39e99e(0x182)]===_0x39e99e(0x178)&&(_0x58b9e3[_0x39e99e(0x182)]=_0x39e99e(0x192)),_0x36ae8f(_0x58b9e3,_0xa1fc6a[_0x39e99e(0x19d)]),_0x2a9035;}let _0x3961a4=1e-9;function _0x1daabf(_0x33841e){const _0x35c422=_0x4e38a9;let _0x56cae7=Math[_0x35c422(0x177)](_0x33841e*0x2710)/0x2710;return Object['is'](_0x56cae7,-0x0)?'0':String(_0x56cae7);}function _0x2f0797(_0x47bb38){return _0x1daabf(_0x47bb38['x'])+'\x20'+_0x1daabf(_0x47bb38['y']);}function _0x21f681(_0x5bd93d,_0x488728){return{'x':_0x5bd93d['x']-_0x488728['x'],'y':_0x5bd93d['y']-_0x488728['y']};}function _0x1d2111(_0x4cc233,_0x3c721d,_0x4957e2,_0xfb9699,_0x821c9a){let _0x5c7845=0x1-_0x821c9a;return{'x':_0x5c7845*_0x5c7845*_0x5c7845*_0x4cc233['x']+0x3*_0x5c7845*_0x5c7845*_0x821c9a*_0x3c721d['x']+0x3*_0x5c7845*_0x821c9a*_0x821c9a*_0x4957e2['x']+_0x821c9a*_0x821c9a*_0x821c9a*_0xfb9699['x'],'y':_0x5c7845*_0x5c7845*_0x5c7845*_0x4cc233['y']+0x3*_0x5c7845*_0x5c7845*_0x821c9a*_0x3c721d['y']+0x3*_0x5c7845*_0x821c9a*_0x821c9a*_0x4957e2['y']+_0x821c9a*_0x821c9a*_0x821c9a*_0xfb9699['y']};}function _0x120186(_0x3866f1,_0x5a9dcc,_0xc98aed,_0x3bf1c8){const _0x2e6130=_0x4e38a9;let _0x3addd4=-_0x3866f1+0x3*_0x5a9dcc-0x3*_0xc98aed+_0x3bf1c8,_0x2a6a2f=0x3*_0x3866f1-0x6*_0x5a9dcc+0x3*_0xc98aed,_0x47e63b=-0x3*_0x3866f1+0x3*_0x5a9dcc,_0x5c5cad=[];if(Math['abs'](_0x3addd4)<_0x3961a4){if(Math[_0x2e6130(0x1bc)](_0x2a6a2f)<_0x3961a4)return _0x5c5cad;let _0xb3e3c2=-_0x47e63b/(0x2*_0x2a6a2f);return _0xb3e3c2>0x0&&_0xb3e3c2<0x1&&_0x5c5cad[_0x2e6130(0x1b8)](_0xb3e3c2),_0x5c5cad;}let _0x567a8a=_0x2a6a2f*_0x2a6a2f-0x3*_0x3addd4*_0x47e63b;if(_0x567a8a<0x0)return _0x5c5cad;let _0x512167=Math['sqrt'](Math[_0x2e6130(0x1a3)](0x0,_0x567a8a)),_0x4fd001=(-_0x2a6a2f+_0x512167)/(0x3*_0x3addd4),_0x1c2ae2=(-_0x2a6a2f-_0x512167)/(0x3*_0x3addd4);return _0x4fd001>0x0&&_0x4fd001<0x1&&_0x5c5cad[_0x2e6130(0x1b8)](_0x4fd001),_0x1c2ae2>0x0&&_0x1c2ae2<0x1&&Math[_0x2e6130(0x1bc)](_0x1c2ae2-_0x4fd001)>_0x3961a4&&_0x5c5cad[_0x2e6130(0x1b8)](_0x1c2ae2),_0x5c5cad;}function _0x523186(_0x7f3d5c,_0x40f992,_0x190601,_0x37d65b,_0x3e37e3){const _0x1dc48d=_0x4e38a9;_0x7f3d5c[_0x1dc48d(0x1b8)](_0x40f992,_0x3e37e3),new Set([..._0x120186(_0x40f992['x'],_0x190601['x'],_0x37d65b['x'],_0x3e37e3['x']),..._0x120186(_0x40f992['y'],_0x190601['y'],_0x37d65b['y'],_0x3e37e3['y'])])['forEach'](_0x775de7=>{const _0xa8a816=_0x1dc48d;_0x7f3d5c[_0xa8a816(0x1b8)](_0x1d2111(_0x40f992,_0x190601,_0x37d65b,_0x3e37e3,_0x775de7));});}function _0xd788e3(_0x53ad4f){const _0x4e8fa2=_0x4e38a9;let _0x8401b=_0x53ad4f[_0x4e8fa2(0x16a)];if(_0x8401b[_0x4e8fa2(0x18a)]<=0x1)return _0x8401b;let _0x24cda4=[];for(let _0x611fa5=0x1;_0x611fa5<_0x8401b['length'];_0x611fa5++){let _0xb41a88=_0x8401b[_0x611fa5-0x1],_0x3dbdfa=_0x8401b[_0x611fa5];_0x523186(_0x24cda4,_0xb41a88,_0xb41a88['out']??_0xb41a88,_0x3dbdfa['in']??_0x3dbdfa,_0x3dbdfa);}if(_0x53ad4f['closed']&&_0x8401b[_0x4e8fa2(0x18a)]>0x1){let _0x29619b=_0x8401b[_0x8401b['length']-0x1],_0x1776d5=_0x8401b[0x0];_0x523186(_0x24cda4,_0x29619b,_0x29619b[_0x4e8fa2(0x171)]??_0x29619b,_0x1776d5['in']??_0x1776d5,_0x1776d5);}return _0x24cda4;}function _0xa3ce09(_0x1351b9){const _0x173a72=_0x4e38a9;let _0x2468db=_0x1351b9[_0x173a72(0x1c3)];if(_0x2468db[_0x173a72(0x18a)]<=0x1)return _0x2468db;let _0xa5f69a=[];for(let _0x34fa22=0x0;_0x34fa22<_0x2468db[_0x173a72(0x18a)]-0x1;_0x34fa22++){let _0x4c0fff=_0x2468db[_0x34fa22],_0x4cb362=_0x2468db[_0x34fa22+0x1],_0x92608b=_0x2468db[_0x34fa22-0x1]??_0x4c0fff,_0x257aab=_0x2468db[_0x34fa22+0x2]??_0x4cb362;_0x523186(_0xa5f69a,_0x4c0fff,{'x':_0x4c0fff['x']+(_0x4cb362['x']-_0x92608b['x'])/0x6,'y':_0x4c0fff['y']+(_0x4cb362['y']-_0x92608b['y'])/0x6},{'x':_0x4cb362['x']-(_0x257aab['x']-_0x4c0fff['x'])/0x6,'y':_0x4cb362['y']-(_0x257aab['y']-_0x4c0fff['y'])/0x6},_0x4cb362);}return _0xa5f69a;}function _0x2f8c6d(_0x9849b1){const _0x5eea94=_0x4e38a9;return _0x9849b1[_0x5eea94(0x19d)]===_0x5eea94(0x176)?_0xd788e3(_0x9849b1):_0xa3ce09(_0x9849b1);}function _0x1b6983(_0x2bb948){let _0x27777d=Math['round'](_0x2bb948*0x2710)/0x2710;return Object['is'](_0x27777d,-0x0)?0x0:_0x27777d;}function _0x43f7f6(_0x5f4530){const _0x8e4634=_0x4e38a9;let _0x5778a9=_0x2f8c6d(_0x5f4530);if(_0x5778a9[_0x8e4634(0x18a)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4b6031=Math[_0x8e4634(0x184)](..._0x5778a9[_0x8e4634(0x170)](_0x1bde37=>_0x1bde37['x'])),_0x4ca602=Math[_0x8e4634(0x184)](..._0x5778a9[_0x8e4634(0x170)](_0x56ad56=>_0x56ad56['y'])),_0x14bf20=Math[_0x8e4634(0x1a3)](..._0x5778a9[_0x8e4634(0x170)](_0x216386=>_0x216386['x'])),_0x131e47=Math[_0x8e4634(0x1a3)](..._0x5778a9['map'](_0x45166c=>_0x45166c['y']));return{'left':_0x1b6983(_0x4b6031),'top':_0x1b6983(_0x4ca602),'width':_0x1b6983(Math[_0x8e4634(0x1a3)](0x1,_0x14bf20-_0x4b6031)),'height':_0x1b6983(Math[_0x8e4634(0x1a3)](0x1,_0x131e47-_0x4ca602))};}function _0x3f48ce(_0x37d1c1,_0x27da52){const _0x342a76=_0x4e38a9;let _0x47025e=_0x37d1c1[_0x342a76(0x16a)];if(_0x47025e[_0x342a76(0x18a)]===0x0)return'';let _0x2314d5=['M\x20'+_0x2f0797(_0x21f681(_0x47025e[0x0],_0x27da52))];for(let _0x436c4d=0x1;_0x436c4d<_0x47025e[_0x342a76(0x18a)];_0x436c4d++){let _0x552661=_0x47025e[_0x436c4d-0x1],_0x5540f7=_0x47025e[_0x436c4d],_0x56ea5d=_0x552661[_0x342a76(0x171)]??_0x552661,_0x51c984=_0x5540f7['in']??_0x5540f7;_0x2314d5[_0x342a76(0x1b8)]('C\x20'+_0x2f0797(_0x21f681(_0x56ea5d,_0x27da52))+'\x20'+_0x2f0797(_0x21f681(_0x51c984,_0x27da52))+'\x20'+_0x2f0797(_0x21f681(_0x5540f7,_0x27da52)));}if(_0x37d1c1[_0x342a76(0x185)]&&_0x47025e['length']>0x1){let _0x53beb9=_0x47025e[_0x47025e[_0x342a76(0x18a)]-0x1],_0x196d41=_0x47025e[0x0],_0xa7d08a=_0x53beb9[_0x342a76(0x171)]??_0x53beb9,_0x3a220f=_0x196d41['in']??_0x196d41;_0x2314d5[_0x342a76(0x1b8)]('C\x20'+_0x2f0797(_0x21f681(_0xa7d08a,_0x27da52))+'\x20'+_0x2f0797(_0x21f681(_0x3a220f,_0x27da52))+'\x20'+_0x2f0797(_0x21f681(_0x196d41,_0x27da52))),_0x2314d5['push']('Z');}return _0x2314d5[_0x342a76(0x19f)]('\x20');}function _0x3ad25a(_0x3a6bd9,_0x4358ab){const _0x46d3d9=_0x4e38a9;let _0x440924=_0x3a6bd9[_0x46d3d9(0x1c3)][_0x46d3d9(0x170)](_0x5da778=>_0x21f681(_0x5da778,_0x4358ab));if(_0x440924[_0x46d3d9(0x18a)]===0x0)return'';if(_0x440924[_0x46d3d9(0x18a)]===0x1)return'M\x20'+_0x2f0797(_0x440924[0x0]);let _0x119a14=['M\x20'+_0x2f0797(_0x440924[0x0])];for(let _0x1acaa1=0x0;_0x1acaa1<_0x440924[_0x46d3d9(0x18a)]-0x1;_0x1acaa1++){let _0x3b5839=_0x440924[_0x1acaa1],_0x10d6de=_0x440924[_0x1acaa1+0x1],_0x1e8ee7=_0x440924[_0x1acaa1-0x1]??_0x3b5839,_0x33381a=_0x440924[_0x1acaa1+0x2]??_0x10d6de,_0x266ff2={'x':_0x3b5839['x']+(_0x10d6de['x']-_0x1e8ee7['x'])/0x6,'y':_0x3b5839['y']+(_0x10d6de['y']-_0x1e8ee7['y'])/0x6},_0x190f81={'x':_0x10d6de['x']-(_0x33381a['x']-_0x3b5839['x'])/0x6,'y':_0x10d6de['y']-(_0x33381a['y']-_0x3b5839['y'])/0x6};_0x119a14[_0x46d3d9(0x1b8)]('C\x20'+_0x2f0797(_0x266ff2)+'\x20'+_0x2f0797(_0x190f81)+'\x20'+_0x2f0797(_0x10d6de));}return _0x119a14[_0x46d3d9(0x19f)]('\x20');}function _0xc3c4f3(_0xcb552a,_0x10fb15){const _0x21a861=_0x4e38a9;return _0xcb552a[_0x21a861(0x19d)]===_0x21a861(0x176)?_0x3f48ce(_0xcb552a,_0x10fb15):_0x3ad25a(_0xcb552a,_0x10fb15);}function _0x55a71b(_0x2e1437,_0x11348f){const _0x1e90c6=_0x4e38a9;return _0x11348f!=null&&_0x11348f['color']?_0x11348f[_0x1e90c6(0x1a1)]:_0x2e1437['kind']===_0x1e90c6(0x176)?_0x1e90c6(0x1b7):_0x2e1437[_0x1e90c6(0x1a1)];}function _0x2dd779(_0x41b3f3,_0x2cc30c){const _0x57033c=_0x4e38a9;return(_0x2cc30c==null?void 0x0:_0x2cc30c[_0x57033c(0x1b3)])===void 0x0?_0x41b3f3['kind']===_0x57033c(0x176)?0x2:_0x41b3f3[_0x57033c(0x1b3)]:_0x2cc30c['width'];}function _0x2923b7(_0x3de4fc,_0x3e2796){const _0x298b3a=_0x4e38a9;return(_0x3e2796==null?void 0x0:_0x3e2796['opacity'])===void 0x0?_0x3de4fc[_0x298b3a(0x19d)]==='pen'?void 0x0:_0x3de4fc[_0x298b3a(0x193)]:_0x3e2796['opacity'];}function _0x4c3d34(_0x50d9bd,_0xcc7175){const _0x1a160e=_0x4e38a9;let _0x3e8316=_0x43f7f6(_0x50d9bd),_0xecd23=_0xc3c4f3(_0x50d9bd,{'x':_0x3e8316[_0x1a160e(0x1c4)],'y':_0x3e8316[_0x1a160e(0x15f)]}),_0x430b15=_0x50d9bd[_0x1a160e(0x19d)]===_0x1a160e(0x176)&&_0x50d9bd[_0x1a160e(0x185)],_0x2d8049=_0xcc7175==null?void 0x0:_0xcc7175[_0x1a160e(0x15c)];return{'shapeType':_0x578d4f[_0x1a160e(0x17f)][_0x1a160e(0x1b0)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3e8316[_0x1a160e(0x1b3)],'h':_0x3e8316['height'],'fill':_0x430b15?_0x1a160e(0x163):'none','stroke':!0x0,'data':_0xecd23,'dataArray':_0x3dbe09(_0x50d9bd,{'x':_0x3e8316[_0x1a160e(0x1c4)],'y':_0x3e8316[_0x1a160e(0x15f)]})}]},'fill':_0x430b15&&_0x2d8049?{'color':_0x2d8049,'fillType':_0x578d4f[_0x1a160e(0x17c)][_0x1a160e(0x1c9)]}:{'fillType':_0x578d4f[_0x1a160e(0x17c)]['NoFill']},'stroke':{'color':_0x55a71b(_0x50d9bd,_0xcc7175),'width':_0x2dd779(_0x50d9bd,_0xcc7175),'opacity':_0x2923b7(_0x50d9bd,_0xcc7175),'lineStrokeType':_0x578d4f['ShapeLineTypeEnum'][_0x1a160e(0x172)],'capType':_0x578d4f[_0x1a160e(0x1a7)][_0x1a160e(0x1ad)],'lineJoinType':_0x578d4f[_0x1a160e(0x1c5)][_0x1a160e(0x1ad)]}};}function _0x291408(_0x249cad,_0x1ce80e){return{'x':_0x249cad['x']-_0x1ce80e['x'],'y':_0x249cad['y']-_0x1ce80e['y']};}function _0x3dbe09(_0x4f4416,_0x1a02e9){const _0x47d493=_0x4e38a9;if(_0x4f4416[_0x47d493(0x19d)]==='pen'){let _0x3feffe=_0x4f4416[_0x47d493(0x16a)];if(_0x3feffe['length']===0x0)return[];let _0x51921a=_0x291408(_0x3feffe[0x0],_0x1a02e9),_0x4d130d=[{'command':'M','points':[_0x51921a['x'],_0x51921a['y']]}];for(let _0x3cdad1=0x1;_0x3cdad1<_0x3feffe[_0x47d493(0x18a)];_0x3cdad1++){let _0x40acb3=_0x3feffe[_0x3cdad1-0x1],_0x1476a4=_0x3feffe[_0x3cdad1],_0x2a1d6a=_0x291408(_0x40acb3[_0x47d493(0x171)]??_0x40acb3,_0x1a02e9),_0x55bf38=_0x291408(_0x1476a4['in']??_0x1476a4,_0x1a02e9),_0x14efc1=_0x291408(_0x1476a4,_0x1a02e9);_0x4d130d[_0x47d493(0x1b8)]({'command':'C','points':[_0x2a1d6a['x'],_0x2a1d6a['y'],_0x55bf38['x'],_0x55bf38['y'],_0x14efc1['x'],_0x14efc1['y']]});}if(_0x4f4416[_0x47d493(0x185)]&&_0x3feffe['length']>0x1){let _0x21a81c=_0x3feffe[_0x3feffe[_0x47d493(0x18a)]-0x1],_0x3fc506=_0x3feffe[0x0],_0x13b083=_0x291408(_0x21a81c[_0x47d493(0x171)]??_0x21a81c,_0x1a02e9),_0x4134f4=_0x291408(_0x3fc506['in']??_0x3fc506,_0x1a02e9),_0x2eff72=_0x291408(_0x3fc506,_0x1a02e9);_0x4d130d['push']({'command':'C','points':[_0x13b083['x'],_0x13b083['y'],_0x4134f4['x'],_0x4134f4['y'],_0x2eff72['x'],_0x2eff72['y']]}),_0x4d130d[_0x47d493(0x1b8)]({'command':'z','points':[]});}return _0x4d130d;}let _0x2fe3b0=_0x4f4416[_0x47d493(0x1c3)]['map'](_0x591fe5=>_0x291408(_0x591fe5,_0x1a02e9));if(_0x2fe3b0[_0x47d493(0x18a)]===0x0)return[];let _0x60a5fc=[{'command':'M','points':[_0x2fe3b0[0x0]['x'],_0x2fe3b0[0x0]['y']]}];for(let _0x22f744=0x0;_0x22f744<_0x2fe3b0['length']-0x1;_0x22f744++){let _0x3f5b2e=_0x2fe3b0[_0x22f744],_0x40033a=_0x2fe3b0[_0x22f744+0x1],_0x5a46b3=_0x2fe3b0[_0x22f744-0x1]??_0x3f5b2e,_0x24b303=_0x2fe3b0[_0x22f744+0x2]??_0x40033a,_0x3210cd={'x':_0x3f5b2e['x']+(_0x40033a['x']-_0x5a46b3['x'])/0x6,'y':_0x3f5b2e['y']+(_0x40033a['y']-_0x5a46b3['y'])/0x6},_0x455747={'x':_0x40033a['x']-(_0x24b303['x']-_0x3f5b2e['x'])/0x6,'y':_0x40033a['y']-(_0x24b303['y']-_0x3f5b2e['y'])/0x6};_0x60a5fc[_0x47d493(0x1b8)]({'command':'C','points':[_0x3210cd['x'],_0x3210cd['y'],_0x455747['x'],_0x455747['y'],_0x40033a['x'],_0x40033a['y']]});}return _0x60a5fc;}function _0x3d018b(_0x372778){const _0x303dc0=_0x4e38a9;let {model:_0x10c79b,sourceModel:_0x1872a6=_0x10c79b,style:_0x2ba73d}=_0x372778,_0x2e89c6=_0x372778['tool']??_0x10c79b[_0x303dc0(0x19d)],_0x24ec8f=_0x43f7f6(_0x10c79b),_0x5de053=_0x10c79b['kind']===_0x303dc0(0x176)&&_0x2e89c6!==_0x303dc0(0x176)?_0x10c79b:void 0x0;return{'transform':{..._0x24ec8f,'rotation':0x0},'shapeData':_0x4c3d34(_0x10c79b,_0x2ba73d),'ink':{'version':0x1,'tool':_0x2e89c6,'sourceModel':_0x1872a6,..._0x5de053?{'editModel':_0x5de053}:{},'normalizedBounds':_0x24ec8f}};}var _0x283b12=_0x4e38a9(0x1cd),_0x588dcf='1.1.0';function _0xfa633a(_0x4e9ddc){'@babel/helpers - typeof';const _0x419f0d=_0x4e38a9;return _0xfa633a=typeof Symbol=='function'&&typeof Symbol[_0x419f0d(0x18b)]==_0x419f0d(0x17b)?function(_0x253b55){return typeof _0x253b55;}:function(_0x280724){const _0x125b3a=_0x419f0d;return _0x280724&&typeof Symbol==_0x125b3a(0x174)&&_0x280724['constructor']===Symbol&&_0x280724!==Symbol[_0x125b3a(0x1a8)]?'symbol':typeof _0x280724;},_0xfa633a(_0x4e9ddc);}function _0x3d927a(_0x36715f,_0x4f713c){const _0xe4a611=_0x4e38a9;if(_0xfa633a(_0x36715f)!=_0xe4a611(0x1bd)||!_0x36715f)return _0x36715f;var _0x22caff=_0x36715f[Symbol[_0xe4a611(0x19a)]];if(_0x22caff!==void 0x0){var _0x3f110f=_0x22caff[_0xe4a611(0x191)](_0x36715f,_0x4f713c||_0xe4a611(0x160));if(_0xfa633a(_0x3f110f)!=_0xe4a611(0x1bd))return _0x3f110f;throw TypeError(_0xe4a611(0x1a4));}return(_0x4f713c===_0xe4a611(0x1ab)?String:Number)(_0x36715f);}function _0x247aae(_0x47db4c){const _0x8c82e8=_0x4e38a9;var _0x1a9237=_0x3d927a(_0x47db4c,_0x8c82e8(0x1ab));return _0xfa633a(_0x1a9237)=='symbol'?_0x1a9237:_0x1a9237+'';}function _0x230d2a(_0x175492,_0x4259ca,_0x5eaa1c){const _0x59f26c=_0x4e38a9;return(_0x4259ca=_0x247aae(_0x4259ca))in _0x175492?Object[_0x59f26c(0x1c2)](_0x175492,_0x4259ca,{'value':_0x5eaa1c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x175492[_0x4259ca]=_0x5eaa1c,_0x175492;}let _0x20701a=(0x0,_0x1d0f37['createIdentifier'])(_0x4e38a9(0x1ae));var _0x8e1f60=class{constructor(){const _0x423f92=_0x4e38a9;_0x230d2a(this,_0x423f92(0x17a),[]);}[_0x4e38a9(0x1d9)](_0x5de9e8){const _0x3c44cc=_0x4e38a9;return this[_0x3c44cc(0x17a)]['push'](_0x5de9e8),(0x0,_0x1d0f37['toDisposable'])(()=>{const _0x1e0240=_0x3c44cc;let _0x5047f4=this[_0x1e0240(0x17a)][_0x1e0240(0x175)](_0x5de9e8);_0x5047f4>=0x0&&this['_adapters'][_0x1e0240(0x19e)](_0x5047f4,0x1);});}[_0x4e38a9(0x167)](_0x157220){const _0x27dff4=_0x4e38a9;for(let _0x52d87d of this[_0x27dff4(0x17a)])if(_0x52d87d['beginInkMode'](_0x157220))return!0x0;return!0x1;}async[_0x4e38a9(0x19c)](_0x5b318e){const _0xd76358=_0x4e38a9;for(let _0x1e02a6 of this[_0xd76358(0x17a)])if(_0x1e02a6[_0xd76358(0x19c)]&&await _0x1e02a6['createCustomShape'](_0x5b318e))return!0x0;return!0x1;}};let _0x958287={'id':_0x4e38a9(0x1a9),'type':_0x1d0f37[_0x4e38a9(0x198)][_0x4e38a9(0x1c7)],'handler':(_0x353085,_0x1dd131)=>_0x1dd131?_0x353085['get'](_0x20701a)['beginInkMode'](_0x1dd131):!0x1},_0x36f7be={};function _0x1eacf4(_0x10d1e5,_0xb081a7){return function(_0x3066f4,_0x161a2e){_0xb081a7(_0x3066f4,_0x161a2e,_0x10d1e5);};}function _0x10e221(_0xbba19e,_0x16be48,_0x3313ed,_0x2dc907){const _0x476e93=_0x4e38a9;var _0x383068=arguments[_0x476e93(0x18a)],_0x5e4324=_0x383068<0x3?_0x16be48:_0x2dc907===null?_0x2dc907=Object[_0x476e93(0x199)](_0x16be48,_0x3313ed):_0x2dc907,_0x13d8d1;if(typeof Reflect==_0x476e93(0x1bd)&&typeof Reflect[_0x476e93(0x1cf)]==_0x476e93(0x174))_0x5e4324=Reflect[_0x476e93(0x1cf)](_0xbba19e,_0x16be48,_0x3313ed,_0x2dc907);else{for(var _0x569e87=_0xbba19e[_0x476e93(0x18a)]-0x1;_0x569e87>=0x0;_0x569e87--)(_0x13d8d1=_0xbba19e[_0x569e87])&&(_0x5e4324=(_0x383068<0x3?_0x13d8d1(_0x5e4324):_0x383068>0x3?_0x13d8d1(_0x16be48,_0x3313ed,_0x5e4324):_0x13d8d1(_0x16be48,_0x3313ed))||_0x5e4324);}return _0x383068>0x3&&_0x5e4324&&Object[_0x476e93(0x1c2)](_0x16be48,_0x3313ed,_0x5e4324),_0x5e4324;}let _0x52a115=class extends _0x1d0f37[_0x4e38a9(0x1b4)]{constructor(_0x2b1587=_0x36f7be,_0x554e81,_0x52668f,_0x59b433){const _0x2c5e9a=_0x4e38a9;super(),this[_0x2c5e9a(0x197)]=_0x2b1587,this[_0x2c5e9a(0x1cb)]=_0x554e81,this[_0x2c5e9a(0x196)]=_0x52668f,this[_0x2c5e9a(0x1ca)]=_0x59b433;let {..._0x855ebd}=(0x0,_0x1d0f37['merge'])({},_0x36f7be,this[_0x2c5e9a(0x197)]);this[_0x2c5e9a(0x1ca)]['setConfig'](_0x2c5e9a(0x1bb),_0x855ebd);}[_0x4e38a9(0x1ba)](){const _0x16181f=_0x4e38a9;[[_0x20701a,{'useClass':_0x8e1f60}]][_0x16181f(0x1ac)](_0x4b304a=>this['_injector'][_0x16181f(0x1cc)](_0x4b304a)),this[_0x16181f(0x17d)](this['_commandService']['registerCommand'](_0x958287));}};_0x230d2a(_0x52a115,_0x4e38a9(0x1b6),_0x4e38a9(0x16b)),_0x230d2a(_0x52a115,_0x4e38a9(0x1c0),_0x283b12),_0x230d2a(_0x52a115,_0x4e38a9(0x1a2),_0x588dcf),_0x230d2a(_0x52a115,_0x4e38a9(0x1aa),_0x1d0f37[_0x4e38a9(0x195)][_0x4e38a9(0x1c1)]),_0x52a115=_0x10e221([(0x0,_0x1d0f37[_0x4e38a9(0x161)])(_0x356d8f[_0x4e38a9(0x18c)]),_0x1eacf4(0x1,(0x0,_0x1d0f37['Inject'])(_0x1d0f37[_0x4e38a9(0x16f)])),_0x1eacf4(0x2,_0x1d0f37[_0x4e38a9(0x19b)]),_0x1eacf4(0x3,_0x1d0f37[_0x4e38a9(0x1be)])],_0x52a115),_0x4dd190['IInkHostAdapterService']=_0x20701a,Object[_0x4e38a9(0x1c2)](_0x4dd190,_0x4e38a9(0x1bf),{'enumerable':!0x0,'get':function(){return _0x52a115;}}),_0x4dd190[_0x4e38a9(0x179)]=_0x3d018b,_0x4dd190['convertBrushModelToPenModel']=_0x1920f4,_0x4dd190[_0x4e38a9(0x1c8)]=_0x4481db,_0x4dd190['deleteInkPenAnchor']=_0x571ff4,_0x4dd190[_0x4e38a9(0x1b5)]=_0x1e5948,_0x4dd190[_0x4e38a9(0x186)]=_0x23b578,_0x4dd190[_0x4e38a9(0x180)]=_0x43f7f6,_0x4dd190['getInkPenPreviewModel']=_0x3007fb,_0x4dd190[_0x4e38a9(0x188)]=_0x1fa9a8,_0x4dd190[_0x4e38a9(0x16d)]=_0x2ea2f6,_0x4dd190[_0x4e38a9(0x187)]=_0x147bc9,_0x4dd190[_0x4e38a9(0x1a0)]=_0x3aa496;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/ink",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Reusable ink model and geometry integration for Univer.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -58,15 +58,15 @@
|
|
|
58
58
|
"lib"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@univerjs-pro/boards": "1.0
|
|
62
|
-
"@univerjs-pro/engine-shape": "1.0
|
|
63
|
-
"@univerjs-pro/license": "1.0
|
|
64
|
-
"@univerjs/core": "1.0
|
|
61
|
+
"@univerjs-pro/boards": "1.1.0",
|
|
62
|
+
"@univerjs-pro/engine-shape": "1.1.0",
|
|
63
|
+
"@univerjs-pro/license": "1.1.0",
|
|
64
|
+
"@univerjs/core": "1.1.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@univerjs-infra/shared": "1.0
|
|
67
|
+
"@univerjs-infra/shared": "1.1.0",
|
|
68
68
|
"typescript": "^6.0.3",
|
|
69
|
-
"vitest": "^5.0.
|
|
69
|
+
"vitest": "^5.0.4"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"test": "vitest run",
|