@univerjs-pro/ink 1.0.0-alpha.4 → 1.0.0-alpha.5

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 CHANGED
@@ -1 +1 @@
1
- const _0xcf70dc=_0x5dd9;(function(_0x38561e,_0x2456e5){const _0x4aed16=_0x5dd9,_0xc05984=_0x38561e();while(!![]){try{const _0x4a95eb=parseInt(_0x4aed16(0x106))/0x1+parseInt(_0x4aed16(0x12c))/0x2+-parseInt(_0x4aed16(0x116))/0x3*(-parseInt(_0x4aed16(0x11e))/0x4)+-parseInt(_0x4aed16(0x125))/0x5+-parseInt(_0x4aed16(0x113))/0x6*(parseInt(_0x4aed16(0x119))/0x7)+parseInt(_0x4aed16(0x103))/0x8+parseInt(_0x4aed16(0x108))/0x9*(-parseInt(_0x4aed16(0x135))/0xa);if(_0x4a95eb===_0x2456e5)break;else _0xc05984['push'](_0xc05984['shift']());}catch(_0x37cee1){_0xc05984['push'](_0xc05984['shift']());}}}(_0x2e5d,0xa43ea),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0xcf70dc(0x105)}));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[_0xcf70dc(0x115)]{['insertInk'](_0x171bba){const _0x50c8e9=_0xcf70dc;let _0x5edbed=o(_0x171bba);return _0x5edbed&&this[_0x50c8e9(0x123)](_0x5edbed,{'insertIndex':_0x171bba[_0x50c8e9(0x12f)]})?_0x5edbed:null;}[_0xcf70dc(0x10b)](){const _0x1703fc=_0xcf70dc;return this[_0x1703fc(0x137)]({'elementType':e[_0x1703fc(0x131)][_0x1703fc(0x12a)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](f);}};function o(_0x1f9219,_0x5b8110){const _0x3e1ac3=_0xcf70dc;var _0x44ebe9,_0x1f38e8,_0x2290d6;if(!c(_0x1f9219[_0x3e1ac3(0x10f)])||_0x1f9219[_0x3e1ac3(0x10d)]!==void 0x0&&!c(_0x1f9219[_0x3e1ac3(0x10d)])||!l(_0x1f9219[_0x3e1ac3(0x128)]))return null;let _0x4dc891=(_0x44ebe9=_0x1f9219[_0x3e1ac3(0x10e)])==null?_0x5b8110==null?void 0x0:_0x5b8110['parentId']:_0x44ebe9,_0x3780ec=r[_0x3e1ac3(0x11d)]['deepClone'](_0x1f9219[_0x3e1ac3(0x10f)]),_0x114721=(0x0,n['buildInkCustomShapePayload'])({'model':_0x3780ec,'style':_0x1f9219[_0x3e1ac3(0x128)],'tool':_0x1f9219[_0x3e1ac3(0x109)],'sourceModel':_0x1f9219['sourceModel']?r[_0x3e1ac3(0x11d)][_0x3e1ac3(0x12e)](_0x1f9219['sourceModel']):_0x3780ec}),_0x36888a=u(_0x5b8110==null?void 0x0:_0x5b8110['custom']);return{'id':(_0x1f38e8=(_0x2290d6=_0x5b8110==null?void 0x0:_0x5b8110['id'])==null?_0x1f9219['id']:_0x2290d6)==null?(0x0,r['generateRandomId'])(0x6):_0x1f38e8,'type':e['BoardElementType'][_0x3e1ac3(0x12a)],'transform':_0x114721['transform'],'shapeData':_0x114721[_0x3e1ac3(0x11c)],'parentId':_0x4dc891==null?void 0x0:_0x4dc891,'laneId':_0x1f9219[_0x3e1ac3(0x133)]===void 0x0?_0x5b8110==null?void 0x0:_0x5b8110['laneId']:_0x1f9219[_0x3e1ac3(0x133)],'custom':{..._0x36888a,'ink':_0x114721['ink']}};}function s(_0x15143b){const _0x4e80e2=_0xcf70dc;return Number['isFinite'](_0x15143b['x'])&&Number[_0x4e80e2(0x104)](_0x15143b['y']);}function c(_0x38c98a){const _0xdc905=_0xcf70dc;if(_0x38c98a[_0xdc905(0x10a)]===_0xdc905(0x110)){let _0x2aceb5=new Set();return _0x38c98a['anchors']['length']>=(_0x38c98a['closed']?0x3:0x2)&&_0x38c98a[_0xdc905(0x136)][_0xdc905(0x10c)](_0x4ac648=>{const _0x19ec14=_0xdc905;let _0x32d3cb=_0x4ac648['id']['trim']()['length']>0x0&&!_0x2aceb5[_0x19ec14(0x114)](_0x4ac648['id'])&&s(_0x4ac648)&&(!_0x4ac648['in']||s(_0x4ac648['in']))&&(!_0x4ac648[_0x19ec14(0x132)]||s(_0x4ac648[_0x19ec14(0x132)]));return _0x2aceb5[_0x19ec14(0x134)](_0x4ac648['id']),_0x32d3cb;});}return _0x38c98a['points'][_0xdc905(0x112)]>=0x2&&_0x38c98a['points'][_0xdc905(0x10c)](_0x1e8d3a=>s(_0x1e8d3a)&&Number['isFinite'](_0x1e8d3a['t'])&&(_0x1e8d3a[_0xdc905(0x11b)]===void 0x0||Number[_0xdc905(0x104)](_0x1e8d3a[_0xdc905(0x11b)])))&&Number[_0xdc905(0x104)](_0x38c98a[_0xdc905(0x107)])&&_0x38c98a[_0xdc905(0x107)]>0x0&&Number[_0xdc905(0x104)](_0x38c98a[_0xdc905(0x111)])&&_0x38c98a[_0xdc905(0x111)]>=0x0&&_0x38c98a[_0xdc905(0x111)]<=0x1;}function l(_0x42e44a){const _0x283c1a=_0xcf70dc;return _0x42e44a===void 0x0||(_0x42e44a['width']===void 0x0||Number[_0x283c1a(0x104)](_0x42e44a[_0x283c1a(0x107)])&&_0x42e44a['width']>0x0)&&(_0x42e44a['opacity']===void 0x0||Number[_0x283c1a(0x104)](_0x42e44a['opacity'])&&_0x42e44a[_0x283c1a(0x111)]>=0x0&&_0x42e44a['opacity']<=0x1);}function _0x5dd9(_0x3b61b2,_0x1552fb){_0x3b61b2=_0x3b61b2-0x103;const _0x2e5db3=_0x2e5d();let _0x5dd993=_0x2e5db3[_0x3b61b2];return _0x5dd993;}function _0x2e5d(){const _0xdcba63=['addElement','symmetric','704250eewjLk','anchor','version','style','smooth','Shape','extend','1193348ZlYaCF','BoardInkPointType','deepClone','insertIndex','free','BoardElementType','out','laneId','add','78830XrfTKh','anchors','findElements','corner','custom','BoardInkTool','3761560HBZfPT','isFinite','Module','603988wTrhwN','width','657fBTVzZ','tool','kind','getInks','every','sourceModel','parentId','model','pen','opacity','length','6486906axfepV','has','FBoard','2398047eEzXYB','brush','BoardInkHandleKind','7gHpwjn','FEnum','pressure','shapeData','Tools','4NucSFj','ink','isArray','object','highlighter'];_0x2e5d=function(){return _0xdcba63;};return _0x2e5d();}function u(_0x26c1c3){const _0xf0da66=_0xcf70dc;return _0x26c1c3&&typeof _0x26c1c3==_0xf0da66(0x121)&&!Array['isArray'](_0x26c1c3)?_0x26c1c3:{};}function d(_0x270a67){const _0x5c5c73=_0xcf70dc;let _0x42462c=u(_0x270a67[_0x5c5c73(0x139)])[_0x5c5c73(0x11f)];if(!_0x42462c||typeof _0x42462c!='object'||Array[_0x5c5c73(0x120)](_0x42462c))return null;let _0x4c22d3=_0x42462c;return _0x4c22d3[_0x5c5c73(0x127)]===0x1&&_0x4c22d3[_0x5c5c73(0x10d)]&&typeof _0x4c22d3['sourceModel']==_0x5c5c73(0x121)?_0x4c22d3:null;}function f(_0x42e9ee){return _0x42e9ee['type']===e['BoardElementType']['Shape']&&!!d(_0x42e9ee);}t['FBoard'][_0xcf70dc(0x12b)](a);const p={'Pen':'pen','Brush':_0xcf70dc(0x117),'Highlighter':_0xcf70dc(0x122)},m={'Corner':_0xcf70dc(0x138),'Smooth':_0xcf70dc(0x129),'Symmetric':_0xcf70dc(0x124),'Free':_0xcf70dc(0x130)},h={'Anchor':_0xcf70dc(0x126),'In':'in','Out':_0xcf70dc(0x132)};var g=class extends i[_0xcf70dc(0x11a)]{get[_0xcf70dc(0x13a)](){return p;}get[_0xcf70dc(0x12d)](){return m;}get['BoardInkHandleKind'](){return h;}};i[_0xcf70dc(0x11a)][_0xcf70dc(0x12b)](g),exports[_0xcf70dc(0x118)]=h,exports[_0xcf70dc(0x12d)]=m,exports[_0xcf70dc(0x13a)]=p;
1
+ const _0x565ec9=_0x19e4;(function(_0x1c34ad,_0x3979dd){const _0x3f5cd9=_0x19e4,_0x34e871=_0x1c34ad();while(!![]){try{const _0x42e60e=-parseInt(_0x3f5cd9(0xc4))/0x1*(-parseInt(_0x3f5cd9(0xe0))/0x2)+-parseInt(_0x3f5cd9(0xd2))/0x3+-parseInt(_0x3f5cd9(0xd3))/0x4*(parseInt(_0x3f5cd9(0xf3))/0x5)+parseInt(_0x3f5cd9(0xef))/0x6+-parseInt(_0x3f5cd9(0xf8))/0x7*(parseInt(_0x3f5cd9(0xfa))/0x8)+parseInt(_0x3f5cd9(0xf9))/0x9*(parseInt(_0x3f5cd9(0xf2))/0xa)+-parseInt(_0x3f5cd9(0xc0))/0xb*(-parseInt(_0x3f5cd9(0xed))/0xc);if(_0x42e60e===_0x3979dd)break;else _0x34e871['push'](_0x34e871['shift']());}catch(_0x4ea4d2){_0x34e871['push'](_0x34e871['shift']());}}}(_0x59e8,0xa17d7),Object[_0x565ec9(0xd0)](exports,Symbol[_0x565ec9(0xe5)],{'value':'Module'}));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']{[_0x565ec9(0xc9)](_0x4bf8cd){let _0x4e0258=o(_0x4bf8cd);return _0x4e0258&&this['addElement'](_0x4e0258,{'insertIndex':_0x4bf8cd['insertIndex']})?_0x4e0258:null;}[_0x565ec9(0xc3)](){const _0x5b7bab=_0x565ec9;return this[_0x5b7bab(0xde)]({'elementType':e['BoardElementType'][_0x5b7bab(0xc5)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x5b7bab(0xcd)](f);}};function o(_0x2a1c65,_0x1e8f86){const _0x2f5401=_0x565ec9;var _0x22c9fc,_0x4a4b72,_0x3ddd85;if(!c(_0x2a1c65[_0x2f5401(0xec)])||_0x2a1c65[_0x2f5401(0xd5)]!==void 0x0&&!c(_0x2a1c65[_0x2f5401(0xd5)])||!l(_0x2a1c65['style']))return null;let _0x5eb932=(_0x22c9fc=_0x2a1c65[_0x2f5401(0xd8)])==null?_0x1e8f86==null?void 0x0:_0x1e8f86['parentId']:_0x22c9fc,_0x1bcc8e=r['Tools']['deepClone'](_0x2a1c65[_0x2f5401(0xec)]),_0x2f5ce7=(0x0,n[_0x2f5401(0xc1)])({'model':_0x1bcc8e,'style':_0x2a1c65[_0x2f5401(0xcc)],'tool':_0x2a1c65[_0x2f5401(0xda)],'sourceModel':_0x2a1c65['sourceModel']?r[_0x2f5401(0xca)][_0x2f5401(0xdf)](_0x2a1c65[_0x2f5401(0xd5)]):_0x1bcc8e}),_0x3bffa1=u(_0x1e8f86==null?void 0x0:_0x1e8f86[_0x2f5401(0xd7)]);return{'id':(_0x4a4b72=(_0x3ddd85=_0x1e8f86==null?void 0x0:_0x1e8f86['id'])==null?_0x2a1c65['id']:_0x3ddd85)==null?(0x0,r[_0x2f5401(0xe8)])(0x6):_0x4a4b72,'type':e[_0x2f5401(0xeb)][_0x2f5401(0xc5)],'transform':_0x2f5ce7[_0x2f5401(0xd1)],'shapeData':_0x2f5ce7['shapeData'],'parentId':_0x5eb932==null?void 0x0:_0x5eb932,'laneId':_0x2a1c65['laneId']===void 0x0?_0x1e8f86==null?void 0x0:_0x1e8f86[_0x2f5401(0xe3)]:_0x2a1c65[_0x2f5401(0xe3)],'custom':{..._0x3bffa1,'ink':_0x2f5ce7['ink']}};}function s(_0x28f5ab){const _0xf87f8=_0x565ec9;return Number[_0xf87f8(0xee)](_0x28f5ab['x'])&&Number['isFinite'](_0x28f5ab['y']);}function c(_0x29459a){const _0x3888be=_0x565ec9;if(_0x29459a[_0x3888be(0xf1)]==='pen'){let _0x592c70=new Set();return _0x29459a['anchors'][_0x3888be(0xcf)]>=(_0x29459a[_0x3888be(0xe1)]?0x3:0x2)&&_0x29459a[_0x3888be(0xc7)]['every'](_0x11f850=>{const _0x8bee13=_0x3888be;let _0x58046f=_0x11f850['id']['trim']()['length']>0x0&&!_0x592c70[_0x8bee13(0xf4)](_0x11f850['id'])&&s(_0x11f850)&&(!_0x11f850['in']||s(_0x11f850['in']))&&(!_0x11f850[_0x8bee13(0xdb)]||s(_0x11f850['out']));return _0x592c70['add'](_0x11f850['id']),_0x58046f;});}return _0x29459a[_0x3888be(0xe4)][_0x3888be(0xcf)]>=0x2&&_0x29459a[_0x3888be(0xe4)][_0x3888be(0xf5)](_0x5e77be=>s(_0x5e77be)&&Number[_0x3888be(0xee)](_0x5e77be['t'])&&(_0x5e77be[_0x3888be(0xd4)]===void 0x0||Number[_0x3888be(0xee)](_0x5e77be[_0x3888be(0xd4)])))&&Number[_0x3888be(0xee)](_0x29459a[_0x3888be(0xd9)])&&_0x29459a[_0x3888be(0xd9)]>0x0&&Number[_0x3888be(0xee)](_0x29459a[_0x3888be(0xc2)])&&_0x29459a[_0x3888be(0xc2)]>=0x0&&_0x29459a[_0x3888be(0xc2)]<=0x1;}function l(_0x4fff08){const _0x2ec7a4=_0x565ec9;return _0x4fff08===void 0x0||(_0x4fff08[_0x2ec7a4(0xd9)]===void 0x0||Number[_0x2ec7a4(0xee)](_0x4fff08['width'])&&_0x4fff08['width']>0x0)&&(_0x4fff08[_0x2ec7a4(0xc2)]===void 0x0||Number[_0x2ec7a4(0xee)](_0x4fff08[_0x2ec7a4(0xc2)])&&_0x4fff08[_0x2ec7a4(0xc2)]>=0x0&&_0x4fff08[_0x2ec7a4(0xc2)]<=0x1);}function u(_0x3b2b16){const _0x339a76=_0x565ec9;return _0x3b2b16&&typeof _0x3b2b16=='object'&&!Array[_0x339a76(0xce)](_0x3b2b16)?_0x3b2b16:{};}function d(_0x2ef614){const _0x47640a=_0x565ec9;let _0x5d93cb=u(_0x2ef614[_0x47640a(0xd7)])[_0x47640a(0xf6)];if(!_0x5d93cb||typeof _0x5d93cb!=_0x47640a(0xf0)||Array[_0x47640a(0xce)](_0x5d93cb))return null;let _0x1457e3=_0x5d93cb;return _0x1457e3[_0x47640a(0xe9)]===0x1&&_0x1457e3[_0x47640a(0xd5)]&&typeof _0x1457e3[_0x47640a(0xd5)]==_0x47640a(0xf0)?_0x1457e3:null;}function f(_0x5f2907){const _0x7c51b=_0x565ec9;return _0x5f2907[_0x7c51b(0xea)]===e[_0x7c51b(0xeb)][_0x7c51b(0xc5)]&&!!d(_0x5f2907);}function _0x59e8(){const _0x3c0a90=['filter','isArray','length','defineProperty','transform','371241MTjJlk','804612QWMAOE','pressure','sourceModel','free','custom','parentId','width','tool','out','anchor','smooth','findElements','deepClone','4OwnXNB','closed','corner','laneId','points','toStringTag','BoardInkTool','extend','generateRandomId','version','type','BoardElementType','model','24888nrnelh','isFinite','101364vqQiTE','object','kind','5990YHQKJc','25nyNwmJ','has','every','ink','symmetric','350iGJpoo','15453gptjvE','204696jATwsV','FBoard','10615MAvgjO','buildInkCustomShapePayload','opacity','getInks','11769sqJGkp','Shape','BoardInkPointType','anchors','FEnum','insertInk','Tools','pen','style'];_0x59e8=function(){return _0x3c0a90;};return _0x59e8();}t[_0x565ec9(0xbf)]['extend'](a);function _0x19e4(_0x50abc9,_0x3b4009){_0x50abc9=_0x50abc9-0xbf;const _0x59e86d=_0x59e8();let _0x19e4cb=_0x59e86d[_0x50abc9];return _0x19e4cb;}const p={'Pen':_0x565ec9(0xcb),'Brush':'brush','Highlighter':'highlighter'},m={'Corner':_0x565ec9(0xe2),'Smooth':_0x565ec9(0xdd),'Symmetric':_0x565ec9(0xf7),'Free':_0x565ec9(0xd6)},h={'Anchor':_0x565ec9(0xdc),'In':'in','Out':_0x565ec9(0xdb)};var g=class extends i[_0x565ec9(0xc8)]{get[_0x565ec9(0xe6)](){return p;}get['BoardInkPointType'](){return m;}get['BoardInkHandleKind'](){return h;}};i[_0x565ec9(0xc8)][_0x565ec9(0xe7)](g),exports['BoardInkHandleKind']=h,exports[_0x565ec9(0xc6)]=m,exports[_0x565ec9(0xe6)]=p;
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3109a9=_0x520f;(function(_0x5a51cd,_0x51540b){const _0x1cf140=_0x520f,_0x406604=_0x5a51cd();while(!![]){try{const _0x340119=-parseInt(_0x1cf140(0x216))/0x1+parseInt(_0x1cf140(0x23b))/0x2*(parseInt(_0x1cf140(0x1e9))/0x3)+parseInt(_0x1cf140(0x1f6))/0x4+-parseInt(_0x1cf140(0x232))/0x5*(-parseInt(_0x1cf140(0x239))/0x6)+parseInt(_0x1cf140(0x1e5))/0x7+parseInt(_0x1cf140(0x20b))/0x8+parseInt(_0x1cf140(0x1fd))/0x9*(-parseInt(_0x1cf140(0x21c))/0xa);if(_0x340119===_0x51540b)break;else _0x406604['push'](_0x406604['shift']());}catch(_0x5919a1){_0x406604['push'](_0x406604['shift']());}}}(_0x57c1,0xc2b99),Object[_0x3109a9(0x21f)](exports,Symbol['toStringTag'],{'value':_0x3109a9(0x1fe)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x27aac1){return{'x':_0x27aac1['x'],'y':_0x27aac1['y']};}function a(_0x34a5a4){const _0xdfe6bd=_0x3109a9;return{..._0x34a5a4,'in':_0x34a5a4['in']?i(_0x34a5a4['in']):void 0x0,'out':_0x34a5a4[_0xdfe6bd(0x217)]?i(_0x34a5a4[_0xdfe6bd(0x217)]):void 0x0};}function o(_0x87ddf6){const _0x40267d=_0x3109a9;return{'kind':_0x40267d(0x1f8),'closed':_0x87ddf6[_0x40267d(0x223)],'anchors':_0x87ddf6['anchors'][_0x40267d(0x1e8)](a)};}function s(_0x2d48cb,_0x5b7b6c,_0x22cc54){return{'x':_0x2d48cb['x']+(_0x5b7b6c['x']-_0x2d48cb['x'])*_0x22cc54,'y':_0x2d48cb['y']+(_0x5b7b6c['y']-_0x2d48cb['y'])*_0x22cc54};}function c(_0x835707,_0x1f513f){const _0x26c2f2=_0x3109a9;return Math[_0x26c2f2(0x24a)](_0x835707['x']-_0x1f513f['x'],_0x835707['y']-_0x1f513f['y']);}function l(_0x54fecb){const _0x5161c6=_0x3109a9;let _0x32cebf=Math[_0x5161c6(0x24a)](_0x54fecb['x'],_0x54fecb['y']);return _0x32cebf<r?{'x':0x1,'y':0x0}:{'x':_0x54fecb['x']/_0x32cebf,'y':_0x54fecb['y']/_0x32cebf};}function u(_0x4d7fe4,_0x3c3baa,_0x15ac2d=c(_0x4d7fe4,_0x3c3baa)){let _0x27b9fc=l({'x':_0x4d7fe4['x']-_0x3c3baa['x'],'y':_0x4d7fe4['y']-_0x3c3baa['y']});return{'x':_0x4d7fe4['x']+_0x27b9fc['x']*_0x15ac2d,'y':_0x4d7fe4['y']+_0x27b9fc['y']*_0x15ac2d};}function d(_0x4ec607,_0x299691){const _0x537f69=_0x3109a9;let {anchors:_0x4e7272}=_0x4ec607;return _0x4e7272[_0x537f69(0x238)]<0x2||_0x299691<0x0?null:_0x299691<_0x4e7272['length']-0x1?{'startIndex':_0x299691,'endIndex':_0x299691+0x1,'start':_0x4e7272[_0x299691],'end':_0x4e7272[_0x299691+0x1]}:_0x4ec607['closed']&&_0x299691===_0x4e7272[_0x537f69(0x238)]-0x1?{'startIndex':_0x4e7272[_0x537f69(0x238)]-0x1,'endIndex':0x0,'start':_0x4e7272[_0x4e7272['length']-0x1],'end':_0x4e7272[0x0]}:null;}function f(_0x39a612,_0x375ff0){const _0x50ec8e=_0x3109a9;var _0x256b3b,_0x414f6c;let _0x51bce0=d(_0x39a612,_0x375ff0);return _0x51bce0?[_0x51bce0[_0x50ec8e(0x237)],(_0x256b3b=_0x51bce0[_0x50ec8e(0x237)][_0x50ec8e(0x217)])==null?_0x51bce0[_0x50ec8e(0x237)]:_0x256b3b,(_0x414f6c=_0x51bce0[_0x50ec8e(0x1f5)]['in'])==null?_0x51bce0[_0x50ec8e(0x1f5)]:_0x414f6c,_0x51bce0[_0x50ec8e(0x1f5)]]:null;}function ee(_0x4ac6b5,_0x2f7df3){const _0x544cc3=_0x3109a9;var _0x1f45bd;return _0x2f7df3===_0x544cc3(0x21a)?_0x4ac6b5:(_0x1f45bd=_0x4ac6b5[_0x2f7df3])==null?null:_0x1f45bd;}function p(_0x479b44,_0x1d0619,_0x227cf7){const _0x182c8c=_0x3109a9;return _0x227cf7===_0x182c8c(0x21a)||_0x479b44[_0x182c8c(0x223)]?!0x0:_0x227cf7==='in'?_0x1d0619>0x0:_0x1d0619<_0x479b44[_0x182c8c(0x220)]['length']-0x1;}function m(_0x1eda6f,_0x53df4a){let [_0x18f290,_0x243ef6,_0x103a67,_0x40c25b]=_0x1eda6f,_0x417b27=s(_0x18f290,_0x243ef6,_0x53df4a),_0x36f6fd=s(_0x243ef6,_0x103a67,_0x53df4a),_0x1976eb=s(_0x103a67,_0x40c25b,_0x53df4a);return s(s(_0x417b27,_0x36f6fd,_0x53df4a),s(_0x36f6fd,_0x1976eb,_0x53df4a),_0x53df4a);}function h(_0x1ab30d,_0x43a592){let [_0x5d6e86,_0x49ab00,_0x4c1abe,_0x504f96]=_0x1ab30d,_0x4f66bd=s(_0x5d6e86,_0x49ab00,_0x43a592),_0x59b350=s(_0x49ab00,_0x4c1abe,_0x43a592),_0x28e466=s(_0x4c1abe,_0x504f96,_0x43a592),_0x33bd9f=s(_0x4f66bd,_0x59b350,_0x43a592),_0x21d833=s(_0x59b350,_0x28e466,_0x43a592),_0x483d7c=s(_0x33bd9f,_0x21d833,_0x43a592);return{'left':[_0x5d6e86,_0x4f66bd,_0x33bd9f,_0x483d7c],'right':[_0x483d7c,_0x21d833,_0x28e466,_0x504f96]};}function g(_0x51e47c,_0x3a7aa2,_0x24b35f){const _0xe19f2c=_0x3109a9;let _0x20315d=_0x24b35f['x']-_0x3a7aa2['x'],_0x27c18f=_0x24b35f['y']-_0x3a7aa2['y'],_0x5767ce=_0x20315d*_0x20315d+_0x27c18f*_0x27c18f,_0x274e8a=_0x5767ce<=r?0x0:Math[_0xe19f2c(0x240)](0x0,Math[_0xe19f2c(0x212)](0x1,((_0x51e47c['x']-_0x3a7aa2['x'])*_0x20315d+(_0x51e47c['y']-_0x3a7aa2['y'])*_0x27c18f)/_0x5767ce)),_0x1daadc={'x':_0x3a7aa2['x']+_0x20315d*_0x274e8a,'y':_0x3a7aa2['y']+_0x27c18f*_0x274e8a};return{'point':_0x1daadc,'ratio':_0x274e8a,'distance':c(_0x51e47c,_0x1daadc)};}function te(_0x376afe,_0x6e1815,_0xbf314c){const _0x541229=_0x3109a9;return g(_0x376afe,_0x6e1815,_0xbf314c)[_0x541229(0x1e7)]**0x2;}function _(_0x3c8d35,_0x4814df){const _0x1a3d39=_0x3109a9;if(_0x3c8d35['length']<=0x2)return _0x3c8d35[_0x1a3d39(0x1e8)](i);let _0x288eb1=0x0,_0x373d7b=0x0,_0x24789a=_0x3c8d35[0x0],_0x5b0cd0=_0x3c8d35[_0x3c8d35[_0x1a3d39(0x238)]-0x1],_0x1760f4=_0x4814df*_0x4814df;for(let _0x57ba8b=0x1;_0x57ba8b<_0x3c8d35['length']-0x1;_0x57ba8b++){let _0x1eb5e9=te(_0x3c8d35[_0x57ba8b],_0x24789a,_0x5b0cd0);_0x1eb5e9>_0x288eb1&&(_0x288eb1=_0x1eb5e9,_0x373d7b=_0x57ba8b);}if(_0x288eb1<=_0x1760f4)return[i(_0x24789a),i(_0x5b0cd0)];let _0x64a615=_(_0x3c8d35[_0x1a3d39(0x1da)](0x0,_0x373d7b+0x1),_0x4814df),_0x2c2a36=_(_0x3c8d35['slice'](_0x373d7b),_0x4814df);return[..._0x64a615[_0x1a3d39(0x1da)](0x0,-0x1),..._0x2c2a36];}function ne(_0x4d2521,_0x1b4353){var _0x3faf05;let _0x1abd23=_0x4d2521[_0x1b4353],_0x2bdf01=_0x4d2521[_0x1b4353+0x1],_0x38e1a5=(_0x3faf05=_0x4d2521[_0x1b4353-0x1])==null?_0x1abd23:_0x3faf05;return{'x':_0x1abd23['x']+(_0x2bdf01['x']-_0x38e1a5['x'])/0x6,'y':_0x1abd23['y']+(_0x2bdf01['y']-_0x38e1a5['y'])/0x6};}function v(_0x27f4f4,_0x28855d){var _0x1cc770;let _0xba0a72=_0x27f4f4[_0x28855d],_0x599a43=_0x27f4f4[_0x28855d-0x1],_0x2d67ec=(_0x1cc770=_0x27f4f4[_0x28855d+0x1])==null?_0xba0a72:_0x1cc770;return{'x':_0xba0a72['x']-(_0x2d67ec['x']-_0x599a43['x'])/0x6,'y':_0xba0a72['y']-(_0x2d67ec['y']-_0x599a43['y'])/0x6};}function _0x520f(_0x1eb9f4,_0x4d3a16){_0x1eb9f4=_0x1eb9f4-0x1d6;const _0x57c1c5=_0x57c1();let _0x520f82=_0x57c1c5[_0x1eb9f4];return _0x520f82;}function y(_0x24308b,_0x4c354f){const _0x51502a=_0x3109a9;var _0x1689fd,_0x4b8359;let _0x4d769e=_0x24308b[_0x51502a(0x220)][_0x4c354f],_0x4db44d=(_0x1689fd=_0x24308b[_0x51502a(0x220)][_0x4c354f-0x1])==null?_0x24308b[_0x51502a(0x223)]?_0x24308b[_0x51502a(0x220)][_0x24308b[_0x51502a(0x220)][_0x51502a(0x238)]-0x1]:null:_0x1689fd,_0x1f493e=(_0x4b8359=_0x24308b['anchors'][_0x4c354f+0x1])==null?_0x24308b[_0x51502a(0x223)]?_0x24308b[_0x51502a(0x220)][0x0]:null:_0x4b8359,_0x54c294=_0x4db44d&&_0x1f493e?l({'x':_0x1f493e['x']-_0x4db44d['x'],'y':_0x1f493e['y']-_0x4db44d['y']}):_0x1f493e?l({'x':_0x1f493e['x']-_0x4d769e['x'],'y':_0x1f493e['y']-_0x4d769e['y']}):_0x4db44d?l({'x':_0x4d769e['x']-_0x4db44d['x'],'y':_0x4d769e['y']-_0x4db44d['y']}):{'x':0x1,'y':0x0},_0x3bcb0f=_0x4db44d&&_0x1f493e?Math[_0x51502a(0x240)](0x32,c(_0x4db44d,_0x1f493e)/0x4):0x32;return{'in':{'x':_0x4d769e['x']-_0x54c294['x']*_0x3bcb0f,'y':_0x4d769e['y']-_0x54c294['y']*_0x3bcb0f},'out':{'x':_0x4d769e['x']+_0x54c294['x']*_0x3bcb0f,'y':_0x4d769e['y']+_0x54c294['y']*_0x3bcb0f}};}function b(_0x17b5e4,_0x2aa00b){const _0x135e4e=_0x3109a9;let _0x5e49a7=_0x17b5e4[_0x2aa00b],_0x35833c=_0x2aa00b==='in'?_0x135e4e(0x217):'in',_0x20e8a3=_0x17b5e4[_0x35833c];if(_0x5e49a7){if(_0x17b5e4[_0x135e4e(0x20d)]===_0x135e4e(0x21e)){_0x17b5e4[_0x35833c]=u(_0x17b5e4,_0x5e49a7);return;}_0x17b5e4['pointType']===_0x135e4e(0x20c)&&(_0x17b5e4[_0x35833c]=u(_0x17b5e4,_0x5e49a7,_0x20e8a3?c(_0x17b5e4,_0x20e8a3):c(_0x17b5e4,_0x5e49a7)));}}function x(_0x4d8ea8,_0x4b2283){const _0x3bcb22=_0x3109a9;let _0x5144e0=o(_0x4d8ea8);return!_0x4b2283||_0x5144e0['closed']||_0x5144e0[_0x3bcb22(0x220)][_0x3bcb22(0x238)]===0x0||_0x5144e0[_0x3bcb22(0x220)]['push']({'id':_0x3bcb22(0x1ee),'x':_0x4b2283['x'],'y':_0x4b2283['y'],'pointType':_0x3bcb22(0x244)}),_0x5144e0;}function re(_0x5bd699,_0x446ad3={}){const _0x1bfd33=_0x3109a9;var _0x53a4d5,_0x34ede4;let _0x2396e5=Math[_0x1bfd33(0x240)](0x0,(_0x53a4d5=_0x446ad3['tolerance'])==null?Math[_0x1bfd33(0x240)](0x4,_0x5bd699[_0x1bfd33(0x206)]*0.35):_0x53a4d5),_0x5d441d=(_0x34ede4=_0x446ad3[_0x1bfd33(0x21d)])==null?_0x86acdb=>'ink-centerline-'+_0x86acdb:_0x34ede4,_0x246824=_(_0x5bd699[_0x1bfd33(0x1df)],_0x2396e5),_0x543f81=_0x246824[_0x1bfd33(0x1e8)]((_0x536e8d,_0x3bf04c)=>({'id':_0x5d441d(_0x3bf04c),'x':_0x536e8d['x'],'y':_0x536e8d['y'],'pointType':_0x1bfd33(0x1ed)}));for(let _0x500a50=0x0;_0x500a50<_0x543f81[_0x1bfd33(0x238)]-0x1;_0x500a50++)_0x543f81[_0x500a50]['out']=ne(_0x246824,_0x500a50),_0x543f81[_0x500a50+0x1]['in']=v(_0x246824,_0x500a50+0x1);return{'kind':_0x1bfd33(0x1f8),'closed':!0x1,'anchors':_0x543f81};}function ie(_0x2ce317,_0x6afed2,_0x5c04d2){const _0x2559d7=_0x3109a9;let _0x309777=null,_0x1ff99b=[_0x2559d7(0x21a),'in','out'];return _0x2ce317[_0x2559d7(0x220)][_0x2559d7(0x1d7)]((_0x5d7ad1,_0x10caeb)=>{const _0x408d77=_0x2559d7;_0x1ff99b[_0x408d77(0x1d7)](_0x4ed8fb=>{const _0x44b12e=_0x408d77;if(!p(_0x2ce317,_0x10caeb,_0x4ed8fb))return;let _0x58d559=ee(_0x5d7ad1,_0x4ed8fb);if(!_0x58d559)return;let _0x5c5dba=c(_0x6afed2,_0x58d559);_0x5c5dba>_0x5c04d2||_0x309777&&_0x5c5dba>=_0x309777[_0x44b12e(0x1e7)]||(_0x309777={'handle':{'kind':_0x4ed8fb,'anchorId':_0x5d7ad1['id']},'point':i(_0x58d559),'distance':_0x5c5dba});});}),_0x309777;}function S(_0x141d0d,_0x1fab7e,_0x37ecbf){const _0x5b87d2=_0x3109a9;let _0x5ae30b=null,_0x5c22bd=_0x141d0d['closed']?_0x141d0d[_0x5b87d2(0x220)][_0x5b87d2(0x238)]:Math['max'](0x0,_0x141d0d[_0x5b87d2(0x220)][_0x5b87d2(0x238)]-0x1);for(let _0x48ea97=0x0;_0x48ea97<_0x5c22bd;_0x48ea97++){let _0x504811=f(_0x141d0d,_0x48ea97);if(!_0x504811)continue;let _0x46df7d=m(_0x504811,0x0);for(let _0x56461b=0x1;_0x56461b<=0x20;_0x56461b++){let _0x4b5bd0=m(_0x504811,_0x56461b/0x20),_0x2a0705=g(_0x1fab7e,_0x46df7d,_0x4b5bd0),_0x3c13dc=(_0x56461b-0x1+_0x2a0705['ratio'])/0x20;(!_0x5ae30b||_0x2a0705[_0x5b87d2(0x1e7)]<_0x5ae30b[_0x5b87d2(0x1e7)])&&(_0x5ae30b={'segmentIndex':_0x48ea97,'t':_0x3c13dc,'point':_0x2a0705[_0x5b87d2(0x21b)],'distance':_0x2a0705[_0x5b87d2(0x1e7)]}),_0x46df7d=_0x4b5bd0;}}return _0x5ae30b&&_0x5ae30b[_0x5b87d2(0x1e7)]<=_0x37ecbf?_0x5ae30b:null;}function C(_0xf46e7f,_0x2ab5ab,_0x4aee06){const _0x29bfd7=_0x3109a9;let _0x11b5d6=o(_0xf46e7f),_0x43011a=d(_0x11b5d6,_0x2ab5ab[_0x29bfd7(0x211)]),_0x265ffd=f(_0x11b5d6,_0x2ab5ab['segmentIndex']);if(!_0x43011a||!_0x265ffd)return _0x11b5d6;let _0x4ab36e=h(_0x265ffd,Math[_0x29bfd7(0x240)](0x0,Math['min'](0x1,_0x2ab5ab['t']))),_0x18d503={'id':_0x4aee06(),'x':_0x4ab36e[_0x29bfd7(0x23e)][0x3]['x'],'y':_0x4ab36e['left'][0x3]['y'],'in':i(_0x4ab36e[_0x29bfd7(0x23e)][0x2]),'out':i(_0x4ab36e[_0x29bfd7(0x234)][0x1]),'pointType':'free'};return _0x11b5d6[_0x29bfd7(0x220)][_0x43011a[_0x29bfd7(0x20a)]][_0x29bfd7(0x217)]=i(_0x4ab36e[_0x29bfd7(0x23e)][0x1]),_0x11b5d6[_0x29bfd7(0x220)][_0x43011a['endIndex']]['in']=i(_0x4ab36e[_0x29bfd7(0x234)][0x2]),_0x11b5d6[_0x29bfd7(0x220)][_0x29bfd7(0x1ea)](_0x43011a['startIndex']+0x1,0x0,_0x18d503),_0x11b5d6;}function w(_0x2f5aa7,_0x1d05af){const _0x12c469=_0x3109a9;let _0x5437f8=o(_0x2f5aa7);return _0x5437f8[_0x12c469(0x220)]=_0x5437f8[_0x12c469(0x220)][_0x12c469(0x23a)](_0x29bfd9=>_0x29bfd9['id']!==_0x1d05af),_0x5437f8[_0x12c469(0x223)]&&_0x5437f8[_0x12c469(0x220)][_0x12c469(0x238)]<0x3&&(_0x5437f8[_0x12c469(0x223)]=!0x1),_0x5437f8;}function T(_0x16314a,_0x3c04b6,_0x7eaa7d){const _0x7e5c75=_0x3109a9;let _0x5e5626=o(_0x16314a),_0xed390d=_0x5e5626[_0x7e5c75(0x220)][_0x7e5c75(0x213)](_0x15dc49=>_0x15dc49['id']===_0x3c04b6),_0x244b64=_0x5e5626[_0x7e5c75(0x220)][_0xed390d];if(!_0x244b64)return _0x5e5626;if(_0x244b64[_0x7e5c75(0x20d)]=_0x7eaa7d,_0x7eaa7d===_0x7e5c75(0x244))return delete _0x244b64['in'],delete _0x244b64[_0x7e5c75(0x217)],_0x5e5626;let _0x23b679=y(_0x5e5626,_0xed390d);if(_0x244b64['in']=_0x244b64['in']?i(_0x244b64['in']):_0x23b679['in'],_0x244b64[_0x7e5c75(0x217)]=_0x244b64[_0x7e5c75(0x217)]?i(_0x244b64[_0x7e5c75(0x217)]):_0x23b679[_0x7e5c75(0x217)],_0x7eaa7d===_0x7e5c75(0x21e)){let _0x5876fe=Math['max'](c(_0x244b64,_0x244b64['in']),c(_0x244b64,_0x244b64[_0x7e5c75(0x217)]),0x32),_0x271642=l({'x':_0x244b64[_0x7e5c75(0x217)]['x']-_0x244b64['x'],'y':_0x244b64[_0x7e5c75(0x217)]['y']-_0x244b64['y']});_0x244b64[_0x7e5c75(0x217)]={'x':_0x244b64['x']+_0x271642['x']*_0x5876fe,'y':_0x244b64['y']+_0x271642['y']*_0x5876fe},_0x244b64['in']={'x':_0x244b64['x']-_0x271642['x']*_0x5876fe,'y':_0x244b64['y']-_0x271642['y']*_0x5876fe};}else _0x7eaa7d===_0x7e5c75(0x20c)&&b(_0x244b64,_0x7e5c75(0x217));return _0x5e5626;}function E(_0x1478fe,_0x298170){const _0x23298c=_0x3109a9;var _0x453393;let _0x472bc4=_0x1478fe['anchors'][_0x23298c(0x205)](_0x226823=>_0x226823['id']===_0x298170),_0x3bc09c=(_0x453393=_0x472bc4==null?void 0x0:_0x472bc4[_0x23298c(0x20d)])==null?_0x23298c(0x244):_0x453393;return T(_0x1478fe,_0x298170,_0x3bc09c===_0x23298c(0x244)?_0x23298c(0x20c):_0x3bc09c==='smooth'?'symmetric':_0x3bc09c===_0x23298c(0x21e)?'free':_0x23298c(0x244));}function ae(_0x1a84e7,_0x54d916,_0x313a66){const _0x404cfb=_0x3109a9;let _0x254d1c=o(_0x1a84e7),_0x187e3=_0x254d1c[_0x404cfb(0x220)]['find'](_0x1c723d=>_0x1c723d['id']===_0x54d916['anchorId']);if(!_0x187e3)return _0x254d1c;if(_0x54d916['kind']===_0x404cfb(0x21a)){let _0x2a5f39={'x':_0x313a66['x']-_0x187e3['x'],'y':_0x313a66['y']-_0x187e3['y']};return _0x187e3['x']=_0x313a66['x'],_0x187e3['y']=_0x313a66['y'],_0x187e3['in']&&(_0x187e3['in']={'x':_0x187e3['in']['x']+_0x2a5f39['x'],'y':_0x187e3['in']['y']+_0x2a5f39['y']}),_0x187e3[_0x404cfb(0x217)]&&(_0x187e3[_0x404cfb(0x217)]={'x':_0x187e3[_0x404cfb(0x217)]['x']+_0x2a5f39['x'],'y':_0x187e3[_0x404cfb(0x217)]['y']+_0x2a5f39['y']}),_0x254d1c;}return _0x187e3[_0x54d916['kind']]=i(_0x313a66),_0x187e3['pointType']===_0x404cfb(0x244)&&(_0x187e3[_0x404cfb(0x20d)]=_0x404cfb(0x1ed)),b(_0x187e3,_0x54d916[_0x404cfb(0x1e6)]),_0x254d1c;}const D=1e-9;function O(_0x48737d){const _0x13152d=_0x3109a9;let _0x1a3e38=Math[_0x13152d(0x200)](_0x48737d*0x2710)/0x2710;return Object['is'](_0x1a3e38,-0x0)?'0':String(_0x1a3e38);}function k(_0x3be15c){return O(_0x3be15c['x'])+'\x20'+O(_0x3be15c['y']);}function A(_0x51afae,_0x344430){return{'x':_0x51afae['x']-_0x344430['x'],'y':_0x51afae['y']-_0x344430['y']};}function j(_0x45fb1a,_0x452bbb,_0x253e5c,_0x99a27e,_0x33478c){let _0x801b93=0x1-_0x33478c;return{'x':_0x801b93*_0x801b93*_0x801b93*_0x45fb1a['x']+0x3*_0x801b93*_0x801b93*_0x33478c*_0x452bbb['x']+0x3*_0x801b93*_0x33478c*_0x33478c*_0x253e5c['x']+_0x33478c*_0x33478c*_0x33478c*_0x99a27e['x'],'y':_0x801b93*_0x801b93*_0x801b93*_0x45fb1a['y']+0x3*_0x801b93*_0x801b93*_0x33478c*_0x452bbb['y']+0x3*_0x801b93*_0x33478c*_0x33478c*_0x253e5c['y']+_0x33478c*_0x33478c*_0x33478c*_0x99a27e['y']};}function M(_0x144983,_0x283ba3,_0x5d646,_0xb8d469){const _0x43ae85=_0x3109a9;let _0x6805a=-_0x144983+0x3*_0x283ba3-0x3*_0x5d646+_0xb8d469,_0x57b644=0x3*_0x144983-0x6*_0x283ba3+0x3*_0x5d646,_0x14db2f=-0x3*_0x144983+0x3*_0x283ba3,_0x51f160=[];if(Math['abs'](_0x6805a)<D){if(Math[_0x43ae85(0x208)](_0x57b644)<D)return _0x51f160;let _0x2ab3ce=-_0x14db2f/(0x2*_0x57b644);return _0x2ab3ce>0x0&&_0x2ab3ce<0x1&&_0x51f160['push'](_0x2ab3ce),_0x51f160;}let _0x19dfbe=_0x57b644*_0x57b644-0x3*_0x6805a*_0x14db2f;if(_0x19dfbe<0x0)return _0x51f160;let _0x3a5d5a=Math['sqrt'](Math[_0x43ae85(0x240)](0x0,_0x19dfbe)),_0x5ac217=(-_0x57b644+_0x3a5d5a)/(0x3*_0x6805a),_0x11f507=(-_0x57b644-_0x3a5d5a)/(0x3*_0x6805a);return _0x5ac217>0x0&&_0x5ac217<0x1&&_0x51f160[_0x43ae85(0x1de)](_0x5ac217),_0x11f507>0x0&&_0x11f507<0x1&&Math[_0x43ae85(0x208)](_0x11f507-_0x5ac217)>D&&_0x51f160[_0x43ae85(0x1de)](_0x11f507),_0x51f160;}function N(_0x4a291f,_0x3f6495,_0x5566f5,_0x55da0a,_0x5bdbaa){const _0x116aeb=_0x3109a9;_0x4a291f[_0x116aeb(0x1de)](_0x3f6495,_0x5bdbaa),new Set([...M(_0x3f6495['x'],_0x5566f5['x'],_0x55da0a['x'],_0x5bdbaa['x']),...M(_0x3f6495['y'],_0x5566f5['y'],_0x55da0a['y'],_0x5bdbaa['y'])])[_0x116aeb(0x1d7)](_0x4d4a9f=>{const _0x110ca0=_0x116aeb;_0x4a291f[_0x110ca0(0x1de)](j(_0x3f6495,_0x5566f5,_0x55da0a,_0x5bdbaa,_0x4d4a9f));});}function P(_0x6eea75){const _0x99b6eb=_0x3109a9;let _0x56da39=_0x6eea75[_0x99b6eb(0x220)];if(_0x56da39[_0x99b6eb(0x238)]<=0x1)return _0x56da39;let _0x350821=[];for(let _0x29c453=0x1;_0x29c453<_0x56da39['length'];_0x29c453++){var _0x203a2c,_0x479062;let _0x3fa86=_0x56da39[_0x29c453-0x1],_0xae687e=_0x56da39[_0x29c453];N(_0x350821,_0x3fa86,(_0x203a2c=_0x3fa86['out'])==null?_0x3fa86:_0x203a2c,(_0x479062=_0xae687e['in'])==null?_0xae687e:_0x479062,_0xae687e);}if(_0x6eea75[_0x99b6eb(0x223)]&&_0x56da39[_0x99b6eb(0x238)]>0x1){var _0x540a79,_0x5b506a;let _0x4c1fc0=_0x56da39[_0x56da39[_0x99b6eb(0x238)]-0x1],_0x2f315f=_0x56da39[0x0];N(_0x350821,_0x4c1fc0,(_0x540a79=_0x4c1fc0[_0x99b6eb(0x217)])==null?_0x4c1fc0:_0x540a79,(_0x5b506a=_0x2f315f['in'])==null?_0x2f315f:_0x5b506a,_0x2f315f);}return _0x350821;}function F(_0x5a9576){const _0x2ab172=_0x3109a9;let _0x3ceef4=_0x5a9576[_0x2ab172(0x1df)];if(_0x3ceef4[_0x2ab172(0x238)]<=0x1)return _0x3ceef4;let _0x30b8fb=[];for(let _0x2d9459=0x0;_0x2d9459<_0x3ceef4[_0x2ab172(0x238)]-0x1;_0x2d9459++){var _0x37573b,_0x33d106;let _0x280d19=_0x3ceef4[_0x2d9459],_0x2bb484=_0x3ceef4[_0x2d9459+0x1],_0x2818b2=(_0x37573b=_0x3ceef4[_0x2d9459-0x1])==null?_0x280d19:_0x37573b,_0x13ee5d=(_0x33d106=_0x3ceef4[_0x2d9459+0x2])==null?_0x2bb484:_0x33d106;N(_0x30b8fb,_0x280d19,{'x':_0x280d19['x']+(_0x2bb484['x']-_0x2818b2['x'])/0x6,'y':_0x280d19['y']+(_0x2bb484['y']-_0x2818b2['y'])/0x6},{'x':_0x2bb484['x']-(_0x13ee5d['x']-_0x280d19['x'])/0x6,'y':_0x2bb484['y']-(_0x13ee5d['y']-_0x280d19['y'])/0x6},_0x2bb484);}return _0x30b8fb;}function I(_0x1f7b51){const _0x44269f=_0x3109a9;return _0x1f7b51[_0x44269f(0x1e6)]==='pen'?P(_0x1f7b51):F(_0x1f7b51);}function L(_0x2273ae){let _0x21cb50=Math['round'](_0x2273ae*0x2710)/0x2710;return Object['is'](_0x21cb50,-0x0)?0x0:_0x21cb50;}function R(_0x7dfacb){const _0x19f065=_0x3109a9;let _0x3f297f=I(_0x7dfacb);if(_0x3f297f[_0x19f065(0x238)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x17615e=Math[_0x19f065(0x212)](..._0x3f297f[_0x19f065(0x1e8)](_0x16b420=>_0x16b420['x'])),_0x26979f=Math[_0x19f065(0x212)](..._0x3f297f['map'](_0x157312=>_0x157312['y'])),_0x2aa985=Math['max'](..._0x3f297f[_0x19f065(0x1e8)](_0x4e63ba=>_0x4e63ba['x'])),_0x129265=Math[_0x19f065(0x240)](..._0x3f297f[_0x19f065(0x1e8)](_0x31306d=>_0x31306d['y']));return{'left':L(_0x17615e),'top':L(_0x26979f),'width':L(Math[_0x19f065(0x240)](0x1,_0x2aa985-_0x17615e)),'height':L(Math[_0x19f065(0x240)](0x1,_0x129265-_0x26979f))};}function z(_0x5b0b59,_0x53d849){const _0x3c20a0=_0x3109a9;let _0x53bd1f=_0x5b0b59[_0x3c20a0(0x220)];if(_0x53bd1f[_0x3c20a0(0x238)]===0x0)return'';let _0x16850a=['M\x20'+k(A(_0x53bd1f[0x0],_0x53d849))];for(let _0x3a71dd=0x1;_0x3a71dd<_0x53bd1f[_0x3c20a0(0x238)];_0x3a71dd++){var _0x204312,_0x528201;let _0x4168bc=_0x53bd1f[_0x3a71dd-0x1],_0x2541b0=_0x53bd1f[_0x3a71dd],_0x4fc152=(_0x204312=_0x4168bc['out'])==null?_0x4168bc:_0x204312,_0x95eec5=(_0x528201=_0x2541b0['in'])==null?_0x2541b0:_0x528201;_0x16850a['push']('C\x20'+k(A(_0x4fc152,_0x53d849))+'\x20'+k(A(_0x95eec5,_0x53d849))+'\x20'+k(A(_0x2541b0,_0x53d849)));}if(_0x5b0b59['closed']&&_0x53bd1f[_0x3c20a0(0x238)]>0x1){var _0x370864,_0x54215e;let _0x67ec6c=_0x53bd1f[_0x53bd1f['length']-0x1],_0x2c38b1=_0x53bd1f[0x0],_0x1743cd=(_0x370864=_0x67ec6c[_0x3c20a0(0x217)])==null?_0x67ec6c:_0x370864,_0x45effc=(_0x54215e=_0x2c38b1['in'])==null?_0x2c38b1:_0x54215e;_0x16850a['push']('C\x20'+k(A(_0x1743cd,_0x53d849))+'\x20'+k(A(_0x45effc,_0x53d849))+'\x20'+k(A(_0x2c38b1,_0x53d849))),_0x16850a['push']('Z');}return _0x16850a[_0x3c20a0(0x233)]('\x20');}function _0x57c1(){const _0x18e5b1=['ShapeLineTypeEnum','version','insertInkPenAnchorAt','object','top','fillColor','registerAdapter','ShapeLineJoinEnum','Rect','10zVOaks','join','right','Inject','_adapters','start','length','939282vTQWba','filter','2052XuRPMG','onStarting','type','left','setInkPenAnchorPointType','max','Round','ShapeFillEnum','getInkPenPreviewModel','corner','UniverInkPlugin','tool','OPERATION','height','1.0.0-alpha.4','hypot','color','UNIVER_INK_PLUGIN','convertBrushModelToPenModel','forEach','_configService','toPrimitive','slice','ink.config','symbol','ink.operation.start','push','points','merge','Plugin','get','isInkPenHandleVisible','none','4531639VRuikq','kind','distance','map','792QvmGVN','splice','createCustomShape','UNIVER_UNKNOWN','free','__ink-preview-anchor__','#f54a45','opacity','CommandType','function','moveInkPenAnchorPoint','decorate','end','2718040qYaUCj','call','pen','_commandService','prototype','_config','constructor','1017jLgQIf','Module','ink.host-adapter.service','round','DependentOn','pluginName','_injector','getInkModelBounds','find','width','cycleInkPenAnchorPointType','abs','registerCommand','startIndex','478040FPvbBz','smooth','pointType','IConfigService','getOwnPropertyDescriptor','buildInkCustomShapePayload','segmentIndex','min','findIndex','findClosestInkPenSegment','ICommandService','18486jEDbgE','out','SolidFill','createIdentifier','anchor','point','102170KRCJCY','createId','symmetric','defineProperty','anchors','default','beginInkMode','closed','SolidLine','ShapeTypeEnum','toDisposable','indexOf','iterator'];_0x57c1=function(){return _0x18e5b1;};return _0x57c1();}function B(_0x3f66f0,_0x726ca){const _0x2bbf7b=_0x3109a9;let _0x128cc8=_0x3f66f0[_0x2bbf7b(0x1df)][_0x2bbf7b(0x1e8)](_0x4c96e0=>A(_0x4c96e0,_0x726ca));if(_0x128cc8['length']===0x0)return'';if(_0x128cc8[_0x2bbf7b(0x238)]===0x1)return'M\x20'+k(_0x128cc8[0x0]);let _0x53fedf=['M\x20'+k(_0x128cc8[0x0])];for(let _0x4019c1=0x0;_0x4019c1<_0x128cc8[_0x2bbf7b(0x238)]-0x1;_0x4019c1++){var _0x44cd30,_0x29afa0;let _0x10095=_0x128cc8[_0x4019c1],_0x231733=_0x128cc8[_0x4019c1+0x1],_0x28eb42=(_0x44cd30=_0x128cc8[_0x4019c1-0x1])==null?_0x10095:_0x44cd30,_0x2d3c54=(_0x29afa0=_0x128cc8[_0x4019c1+0x2])==null?_0x231733:_0x29afa0,_0x4b56e9={'x':_0x10095['x']+(_0x231733['x']-_0x28eb42['x'])/0x6,'y':_0x10095['y']+(_0x231733['y']-_0x28eb42['y'])/0x6},_0x4c332d={'x':_0x231733['x']-(_0x2d3c54['x']-_0x10095['x'])/0x6,'y':_0x231733['y']-(_0x2d3c54['y']-_0x10095['y'])/0x6};_0x53fedf[_0x2bbf7b(0x1de)]('C\x20'+k(_0x4b56e9)+'\x20'+k(_0x4c332d)+'\x20'+k(_0x231733));}return _0x53fedf['join']('\x20');}function V(_0x17b91f,_0xed7e50){const _0x891eac=_0x3109a9;return _0x17b91f['kind']===_0x891eac(0x1f8)?z(_0x17b91f,_0xed7e50):B(_0x17b91f,_0xed7e50);}function H(_0x4eaa43,_0x15c232){const _0x6ba06f=_0x3109a9;return _0x15c232!=null&&_0x15c232[_0x6ba06f(0x24b)]?_0x15c232[_0x6ba06f(0x24b)]:_0x4eaa43[_0x6ba06f(0x1e6)]===_0x6ba06f(0x1f8)?_0x6ba06f(0x1ef):_0x4eaa43['color'];}function U(_0x56896e,_0x4a7b88){const _0x583f98=_0x3109a9;return(_0x4a7b88==null?void 0x0:_0x4a7b88['width'])===void 0x0?_0x56896e['kind']==='pen'?0x2:_0x56896e[_0x583f98(0x206)]:_0x4a7b88['width'];}function W(_0x2319dc,_0xe82fcb){const _0x3bfde5=_0x3109a9;return(_0xe82fcb==null?void 0x0:_0xe82fcb[_0x3bfde5(0x1f0)])===void 0x0?_0x2319dc['kind']===_0x3bfde5(0x1f8)?void 0x0:_0x2319dc['opacity']:_0xe82fcb[_0x3bfde5(0x1f0)];}function oe(_0x189568,_0x36cb63){const _0x13e461=_0x3109a9;let _0x298dbe=R(_0x189568),_0x5a9ad8=V(_0x189568,{'x':_0x298dbe[_0x13e461(0x23e)],'y':_0x298dbe['top']}),_0x36669a=_0x189568['kind']===_0x13e461(0x1f8)&&_0x189568[_0x13e461(0x223)],_0x7c2300=_0x36cb63==null?void 0x0:_0x36cb63[_0x13e461(0x22e)];return{'shapeType':e[_0x13e461(0x225)][_0x13e461(0x231)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x298dbe['width'],'h':_0x298dbe[_0x13e461(0x248)],'fill':_0x36669a?'norm':_0x13e461(0x1e4),'stroke':!0x0,'data':_0x5a9ad8,'dataArray':K(_0x189568,{'x':_0x298dbe[_0x13e461(0x23e)],'y':_0x298dbe[_0x13e461(0x22d)]})}]},'fill':_0x36669a&&_0x7c2300?{'color':_0x7c2300,'fillType':e[_0x13e461(0x242)][_0x13e461(0x218)]}:{'fillType':e[_0x13e461(0x242)]['NoFill']},'stroke':{'color':H(_0x189568,_0x36cb63),'width':U(_0x189568,_0x36cb63),'opacity':W(_0x189568,_0x36cb63),'lineStrokeType':e[_0x13e461(0x229)][_0x13e461(0x224)],'capType':e['ShapeLineCapEnum'][_0x13e461(0x241)],'lineJoinType':e[_0x13e461(0x230)][_0x13e461(0x241)]}};}function G(_0x437e66,_0x11e337){return{'x':_0x437e66['x']-_0x11e337['x'],'y':_0x437e66['y']-_0x11e337['y']};}function K(_0x4a6d78,_0x56fee8){const _0x2ace17=_0x3109a9;if(_0x4a6d78[_0x2ace17(0x1e6)]==='pen'){let _0x58b23b=_0x4a6d78[_0x2ace17(0x220)];if(_0x58b23b['length']===0x0)return[];let _0x3a4a23=G(_0x58b23b[0x0],_0x56fee8),_0x244d7e=[{'command':'M','points':[_0x3a4a23['x'],_0x3a4a23['y']]}];for(let _0x12d0d0=0x1;_0x12d0d0<_0x58b23b[_0x2ace17(0x238)];_0x12d0d0++){var _0xbdc6bb,_0x2e5b94;let _0x27ec65=_0x58b23b[_0x12d0d0-0x1],_0x281fab=_0x58b23b[_0x12d0d0],_0x4e8073=G((_0xbdc6bb=_0x27ec65[_0x2ace17(0x217)])==null?_0x27ec65:_0xbdc6bb,_0x56fee8),_0x382ab8=G((_0x2e5b94=_0x281fab['in'])==null?_0x281fab:_0x2e5b94,_0x56fee8),_0x5f2f2e=G(_0x281fab,_0x56fee8);_0x244d7e[_0x2ace17(0x1de)]({'command':'C','points':[_0x4e8073['x'],_0x4e8073['y'],_0x382ab8['x'],_0x382ab8['y'],_0x5f2f2e['x'],_0x5f2f2e['y']]});}if(_0x4a6d78['closed']&&_0x58b23b[_0x2ace17(0x238)]>0x1){var _0xd7c945,_0x34e454;let _0x21c285=_0x58b23b[_0x58b23b[_0x2ace17(0x238)]-0x1],_0x5688a7=_0x58b23b[0x0],_0x555a43=G((_0xd7c945=_0x21c285[_0x2ace17(0x217)])==null?_0x21c285:_0xd7c945,_0x56fee8),_0x3ecb38=G((_0x34e454=_0x5688a7['in'])==null?_0x5688a7:_0x34e454,_0x56fee8),_0x621633=G(_0x5688a7,_0x56fee8);_0x244d7e[_0x2ace17(0x1de)]({'command':'C','points':[_0x555a43['x'],_0x555a43['y'],_0x3ecb38['x'],_0x3ecb38['y'],_0x621633['x'],_0x621633['y']]}),_0x244d7e[_0x2ace17(0x1de)]({'command':'z','points':[]});}return _0x244d7e;}let _0x5563c8=_0x4a6d78[_0x2ace17(0x1df)][_0x2ace17(0x1e8)](_0x2fd393=>G(_0x2fd393,_0x56fee8));if(_0x5563c8[_0x2ace17(0x238)]===0x0)return[];let _0x226652=[{'command':'M','points':[_0x5563c8[0x0]['x'],_0x5563c8[0x0]['y']]}];for(let _0x371649=0x0;_0x371649<_0x5563c8['length']-0x1;_0x371649++){var _0x35039e,_0x17393b;let _0x58a106=_0x5563c8[_0x371649],_0xeaca03=_0x5563c8[_0x371649+0x1],_0xb68224=(_0x35039e=_0x5563c8[_0x371649-0x1])==null?_0x58a106:_0x35039e,_0x405aae=(_0x17393b=_0x5563c8[_0x371649+0x2])==null?_0xeaca03:_0x17393b,_0x7c6bc={'x':_0x58a106['x']+(_0xeaca03['x']-_0xb68224['x'])/0x6,'y':_0x58a106['y']+(_0xeaca03['y']-_0xb68224['y'])/0x6},_0x3d8979={'x':_0xeaca03['x']-(_0x405aae['x']-_0x58a106['x'])/0x6,'y':_0xeaca03['y']-(_0x405aae['y']-_0x58a106['y'])/0x6};_0x226652[_0x2ace17(0x1de)]({'command':'C','points':[_0x7c6bc['x'],_0x7c6bc['y'],_0x3d8979['x'],_0x3d8979['y'],_0xeaca03['x'],_0xeaca03['y']]});}return _0x226652;}function q(_0x55009b){const _0x464911=_0x3109a9;var _0x207e20;let {model:_0x27f03a,sourceModel:_0x1b6ba4=_0x27f03a,style:_0xaa5a1b}=_0x55009b,_0x3ba1b8=(_0x207e20=_0x55009b[_0x464911(0x246)])==null?_0x27f03a[_0x464911(0x1e6)]:_0x207e20,_0x18c14b=R(_0x27f03a),_0x413225=_0x27f03a[_0x464911(0x1e6)]===_0x464911(0x1f8)&&_0x3ba1b8!==_0x464911(0x1f8)?_0x27f03a:void 0x0;return{'transform':{..._0x18c14b,'rotation':0x0},'shapeData':oe(_0x27f03a,_0xaa5a1b),'ink':{'version':0x1,'tool':_0x3ba1b8,'sourceModel':_0x1b6ba4,..._0x413225?{'editModel':_0x413225}:{},'normalizedBounds':_0x18c14b}};}var se='@univerjs-pro/ink',ce=_0x3109a9(0x249);function J(_0x41226f){'@babel/helpers - typeof';const _0x2ebe03=_0x3109a9;return J=typeof Symbol==_0x2ebe03(0x1f2)&&typeof Symbol[_0x2ebe03(0x228)]==_0x2ebe03(0x1dc)?function(_0x4a475e){return typeof _0x4a475e;}:function(_0x530678){const _0x13dc17=_0x2ebe03;return _0x530678&&typeof Symbol=='function'&&_0x530678[_0x13dc17(0x1fc)]===Symbol&&_0x530678!==Symbol[_0x13dc17(0x1fa)]?'symbol':typeof _0x530678;},J(_0x41226f);}function le(_0x458536,_0x5abe69){const _0x94928f=_0x3109a9;if(J(_0x458536)!=_0x94928f(0x22c)||!_0x458536)return _0x458536;var _0x1da11e=_0x458536[Symbol[_0x94928f(0x1d9)]];if(_0x1da11e!==void 0x0){var _0xc1783b=_0x1da11e[_0x94928f(0x1f7)](_0x458536,_0x5abe69||_0x94928f(0x221));if(J(_0xc1783b)!=_0x94928f(0x22c))return _0xc1783b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5abe69==='string'?String:Number)(_0x458536);}function ue(_0x48ff9e){const _0xf5cb60=_0x3109a9;var _0x571264=le(_0x48ff9e,'string');return J(_0x571264)==_0xf5cb60(0x1dc)?_0x571264:_0x571264+'';}function Y(_0x6cf1fe,_0x57ac87,_0xb6aa6b){const _0x440bba=_0x3109a9;return(_0x57ac87=ue(_0x57ac87))in _0x6cf1fe?Object[_0x440bba(0x21f)](_0x6cf1fe,_0x57ac87,{'value':_0xb6aa6b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x6cf1fe[_0x57ac87]=_0xb6aa6b,_0x6cf1fe;}const X=(0x0,n[_0x3109a9(0x219)])(_0x3109a9(0x1ff));var de=class{constructor(){const _0x513128=_0x3109a9;Y(this,_0x513128(0x236),[]);}[_0x3109a9(0x22f)](_0xabdea9){const _0x8cd4e4=_0x3109a9;return this[_0x8cd4e4(0x236)][_0x8cd4e4(0x1de)](_0xabdea9),(0x0,n[_0x8cd4e4(0x226)])(()=>{const _0x4bcf32=_0x8cd4e4;let _0xb5c5ba=this['_adapters'][_0x4bcf32(0x227)](_0xabdea9);_0xb5c5ba>=0x0&&this[_0x4bcf32(0x236)][_0x4bcf32(0x1ea)](_0xb5c5ba,0x1);});}[_0x3109a9(0x222)](_0xb1ba46){const _0x24ca30=_0x3109a9;for(let _0x4b8652 of this['_adapters'])if(_0x4b8652[_0x24ca30(0x222)](_0xb1ba46))return!0x0;return!0x1;}async[_0x3109a9(0x1eb)](_0xee260e){const _0x4d307f=_0x3109a9;for(let _0x40a9a4 of this[_0x4d307f(0x236)])if(_0x40a9a4[_0x4d307f(0x1eb)]&&await _0x40a9a4['createCustomShape'](_0xee260e))return!0x0;return!0x1;}};const fe={'id':_0x3109a9(0x1dd),'type':n[_0x3109a9(0x1f1)][_0x3109a9(0x247)],'handler':(_0x1c589e,_0x303035)=>_0x303035?_0x1c589e[_0x3109a9(0x1e2)](X)[_0x3109a9(0x222)](_0x303035):!0x1},Z={};function Q(_0x149a3e,_0x519d41){return function(_0x36d11a,_0x21374b){_0x519d41(_0x36d11a,_0x21374b,_0x149a3e);};}function pe(_0x55ac60,_0x342e18,_0xf4525d,_0x1b8dbd){const _0x1e74e8=_0x3109a9;var _0x37a73e=arguments[_0x1e74e8(0x238)],_0x1224e4=_0x37a73e<0x3?_0x342e18:_0x1b8dbd===null?_0x1b8dbd=Object[_0x1e74e8(0x20f)](_0x342e18,_0xf4525d):_0x1b8dbd,_0x578506;if(typeof Reflect==_0x1e74e8(0x22c)&&typeof Reflect[_0x1e74e8(0x1f4)]==_0x1e74e8(0x1f2))_0x1224e4=Reflect['decorate'](_0x55ac60,_0x342e18,_0xf4525d,_0x1b8dbd);else{for(var _0x2ac146=_0x55ac60[_0x1e74e8(0x238)]-0x1;_0x2ac146>=0x0;_0x2ac146--)(_0x578506=_0x55ac60[_0x2ac146])&&(_0x1224e4=(_0x37a73e<0x3?_0x578506(_0x1224e4):_0x37a73e>0x3?_0x578506(_0x342e18,_0xf4525d,_0x1224e4):_0x578506(_0x342e18,_0xf4525d))||_0x1224e4);}return _0x37a73e>0x3&&_0x1224e4&&Object[_0x1e74e8(0x21f)](_0x342e18,_0xf4525d,_0x1224e4),_0x1224e4;}let $=class extends n[_0x3109a9(0x1e1)]{constructor(_0x12f941=Z,_0xbe824,_0x37e4b7,_0x3b03bd){const _0x352873=_0x3109a9;super(),this[_0x352873(0x1fb)]=_0x12f941,this['_injector']=_0xbe824,this[_0x352873(0x1f9)]=_0x37e4b7,this[_0x352873(0x1d8)]=_0x3b03bd;let {..._0x44bc2f}=(0x0,n[_0x352873(0x1e0)])({},Z,this['_config']);this[_0x352873(0x1d8)]['setConfig'](_0x352873(0x1db),_0x44bc2f);}[_0x3109a9(0x23c)](){const _0x1ea146=_0x3109a9;[[X,{'useClass':de}]][_0x1ea146(0x1d7)](_0x445081=>this[_0x1ea146(0x203)]['add'](_0x445081)),this['disposeWithMe'](this[_0x1ea146(0x1f9)][_0x1ea146(0x209)](fe));}};Y($,_0x3109a9(0x202),_0x3109a9(0x24c)),Y($,'packageName',se),Y($,_0x3109a9(0x22a),ce),Y($,_0x3109a9(0x23d),n['UniverInstanceType'][_0x3109a9(0x1ec)]),$=pe([(0x0,n[_0x3109a9(0x201)])(t['UniverLicensePlugin']),Q(0x1,(0x0,n[_0x3109a9(0x235)])(n['Injector'])),Q(0x2,n[_0x3109a9(0x215)]),Q(0x3,n[_0x3109a9(0x20e)])],$),exports['IInkHostAdapterService']=X,Object[_0x3109a9(0x21f)](exports,_0x3109a9(0x245),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x3109a9(0x210)]=q,exports[_0x3109a9(0x1d6)]=re,exports[_0x3109a9(0x207)]=E,exports['deleteInkPenAnchor']=w,exports['findClosestInkPenHandle']=ie,exports[_0x3109a9(0x214)]=S,exports[_0x3109a9(0x204)]=R,exports[_0x3109a9(0x243)]=x,exports[_0x3109a9(0x22b)]=C,exports[_0x3109a9(0x1e3)]=p,exports[_0x3109a9(0x1f3)]=ae,exports[_0x3109a9(0x23f)]=T;
1
+ const _0x30af30=_0x5cce;(function(_0x117468,_0x41b8a2){const _0x4e7bea=_0x5cce,_0xf0da40=_0x117468();while(!![]){try{const _0x457a55=parseInt(_0x4e7bea(0xe4))/0x1+parseInt(_0x4e7bea(0x105))/0x2+-parseInt(_0x4e7bea(0xbd))/0x3+-parseInt(_0x4e7bea(0xfa))/0x4+-parseInt(_0x4e7bea(0xc2))/0x5+-parseInt(_0x4e7bea(0xfb))/0x6*(parseInt(_0x4e7bea(0xe7))/0x7)+-parseInt(_0x4e7bea(0x103))/0x8*(-parseInt(_0x4e7bea(0xca))/0x9);if(_0x457a55===_0x41b8a2)break;else _0xf0da40['push'](_0xf0da40['shift']());}catch(_0x209ec9){_0xf0da40['push'](_0xf0da40['shift']());}}}(_0x26c7,0xafa9a),Object[_0x30af30(0xf9)](exports,Symbol['toStringTag'],{'value':_0x30af30(0xe8)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x538f14){return{'x':_0x538f14['x'],'y':_0x538f14['y']};}function a(_0x46adb3){const _0x2c179c=_0x30af30;return{..._0x46adb3,'in':_0x46adb3['in']?i(_0x46adb3['in']):void 0x0,'out':_0x46adb3[_0x2c179c(0x114)]?i(_0x46adb3[_0x2c179c(0x114)]):void 0x0};}function o(_0x79045e){const _0x348b68=_0x30af30;return{'kind':_0x348b68(0xd8),'closed':_0x79045e['closed'],'anchors':_0x79045e[_0x348b68(0x10a)][_0x348b68(0x100)](a)};}function s(_0x394b99,_0x49b304,_0x1ddcd4){return{'x':_0x394b99['x']+(_0x49b304['x']-_0x394b99['x'])*_0x1ddcd4,'y':_0x394b99['y']+(_0x49b304['y']-_0x394b99['y'])*_0x1ddcd4};}function c(_0x1f9ede,_0x58cf32){const _0x59a330=_0x30af30;return Math[_0x59a330(0x11d)](_0x1f9ede['x']-_0x58cf32['x'],_0x1f9ede['y']-_0x58cf32['y']);}function l(_0x3dd049){const _0x3f4ecb=_0x30af30;let _0x2a524b=Math[_0x3f4ecb(0x11d)](_0x3dd049['x'],_0x3dd049['y']);return _0x2a524b<r?{'x':0x1,'y':0x0}:{'x':_0x3dd049['x']/_0x2a524b,'y':_0x3dd049['y']/_0x2a524b};}function u(_0x3d34d6,_0x2c13cb,_0x420d02=c(_0x3d34d6,_0x2c13cb)){let _0x19c886=l({'x':_0x3d34d6['x']-_0x2c13cb['x'],'y':_0x3d34d6['y']-_0x2c13cb['y']});return{'x':_0x3d34d6['x']+_0x19c886['x']*_0x420d02,'y':_0x3d34d6['y']+_0x19c886['y']*_0x420d02};}function d(_0x57983a,_0x2b7fec){const _0x224c34=_0x30af30;let {anchors:_0x5753a7}=_0x57983a;return _0x5753a7[_0x224c34(0x109)]<0x2||_0x2b7fec<0x0?null:_0x2b7fec<_0x5753a7[_0x224c34(0x109)]-0x1?{'startIndex':_0x2b7fec,'endIndex':_0x2b7fec+0x1,'start':_0x5753a7[_0x2b7fec],'end':_0x5753a7[_0x2b7fec+0x1]}:_0x57983a['closed']&&_0x2b7fec===_0x5753a7['length']-0x1?{'startIndex':_0x5753a7[_0x224c34(0x109)]-0x1,'endIndex':0x0,'start':_0x5753a7[_0x5753a7['length']-0x1],'end':_0x5753a7[0x0]}:null;}function _0x26c7(){const _0x29fe77=['Round','_injector','_adapters','find','string','pluginName','__ink-preview-anchor__','SolidFill','start','push','tool','prototype','ink.operation.start','defineProperty','2917324UiOvpU','6GMkaon','anchor','Inject','findClosestInkPenSegment','onStarting','map','slice','indexOf','144mcoZBN','ShapeFillEnum','2236452DLGMwm','UNIVER_INK_PLUGIN','registerCommand','endIndex','length','anchors','ICommandService','Rect','round','default','toPrimitive','opacity','DependentOn','symmetric','_config','out','color','points','registerAdapter','setInkPenAnchorPointType','ink-centerline-','createCustomShape','get','toDisposable','hypot','call','ShapeLineTypeEnum','UniverInkPlugin','decorate','corner','deleteInkPenAnchor','forEach','norm','ShapeTypeEnum','anchorId','setConfig','beginInkMode','IConfigService','findClosestInkPenHandle','UniverLicensePlugin','insertInkPenAnchorAt','function','fillColor','moveInkPenAnchorPoint','sqrt','@univerjs-pro/ink','createIdentifier','4199655aEqWSH','min','pointType','disposeWithMe','ShapeLineCapEnum','2041495mUdFRl','constructor','splice','distance','object','findIndex','filter','end','1249470lpiVYf','getInkPenPreviewModel','height','type','startIndex','iterator','free','cycleInkPenAnchorPointType','kind','none','SolidLine','segmentIndex','_configService','join','pen','add','Injector','symbol','UniverInstanceType','max','CommandType','UNIVER_UNKNOWN','merge','closed','_commandService','buildInkCustomShapePayload','359706tjobEU','left','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','5038901brBVib','Module','top','width','smooth'];_0x26c7=function(){return _0x29fe77;};return _0x26c7();}function f(_0x417336,_0x5a4596){const _0x2518ca=_0x30af30;var _0x576475,_0x2960f8;let _0x42088f=d(_0x417336,_0x5a4596);return _0x42088f?[_0x42088f['start'],(_0x576475=_0x42088f[_0x2518ca(0xf4)]['out'])==null?_0x42088f[_0x2518ca(0xf4)]:_0x576475,(_0x2960f8=_0x42088f[_0x2518ca(0xc9)]['in'])==null?_0x42088f[_0x2518ca(0xc9)]:_0x2960f8,_0x42088f[_0x2518ca(0xc9)]]:null;}function ee(_0x25cb54,_0x4c8bf1){const _0x1c860c=_0x30af30;var _0x34a0e2;return _0x4c8bf1===_0x1c860c(0xfc)?_0x25cb54:(_0x34a0e2=_0x25cb54[_0x4c8bf1])==null?null:_0x34a0e2;}function p(_0x2c1425,_0x1a1d73,_0x23e423){const _0x569d10=_0x30af30;return _0x23e423===_0x569d10(0xfc)||_0x2c1425[_0x569d10(0xe1)]?!0x0:_0x23e423==='in'?_0x1a1d73>0x0:_0x1a1d73<_0x2c1425[_0x569d10(0x10a)][_0x569d10(0x109)]-0x1;}function m(_0x379a91,_0x45f137){let [_0x563a88,_0x31f7a1,_0x5b5ba0,_0xf4b63f]=_0x379a91,_0x3600d3=s(_0x563a88,_0x31f7a1,_0x45f137),_0xed7b5b=s(_0x31f7a1,_0x5b5ba0,_0x45f137),_0x2b0c77=s(_0x5b5ba0,_0xf4b63f,_0x45f137);return s(s(_0x3600d3,_0xed7b5b,_0x45f137),s(_0xed7b5b,_0x2b0c77,_0x45f137),_0x45f137);}function h(_0x1b541c,_0x2b6a59){let [_0x555eae,_0x453dc9,_0x5d699,_0x49cf0b]=_0x1b541c,_0x5866cf=s(_0x555eae,_0x453dc9,_0x2b6a59),_0x2f8770=s(_0x453dc9,_0x5d699,_0x2b6a59),_0x29786c=s(_0x5d699,_0x49cf0b,_0x2b6a59),_0x443aca=s(_0x5866cf,_0x2f8770,_0x2b6a59),_0x4f8e40=s(_0x2f8770,_0x29786c,_0x2b6a59),_0x125be1=s(_0x443aca,_0x4f8e40,_0x2b6a59);return{'left':[_0x555eae,_0x5866cf,_0x443aca,_0x125be1],'right':[_0x125be1,_0x4f8e40,_0x29786c,_0x49cf0b]};}function g(_0x84d3a8,_0xb89711,_0x581e9d){const _0x4755b9=_0x30af30;let _0x4e4fd1=_0x581e9d['x']-_0xb89711['x'],_0x573516=_0x581e9d['y']-_0xb89711['y'],_0x3bc0ca=_0x4e4fd1*_0x4e4fd1+_0x573516*_0x573516,_0x56b43f=_0x3bc0ca<=r?0x0:Math['max'](0x0,Math[_0x4755b9(0xbe)](0x1,((_0x84d3a8['x']-_0xb89711['x'])*_0x4e4fd1+(_0x84d3a8['y']-_0xb89711['y'])*_0x573516)/_0x3bc0ca)),_0x55b195={'x':_0xb89711['x']+_0x4e4fd1*_0x56b43f,'y':_0xb89711['y']+_0x573516*_0x56b43f};return{'point':_0x55b195,'ratio':_0x56b43f,'distance':c(_0x84d3a8,_0x55b195)};}function te(_0x1a23ea,_0x22476,_0x1bd2ef){const _0x33031b=_0x30af30;return g(_0x1a23ea,_0x22476,_0x1bd2ef)[_0x33031b(0xc5)]**0x2;}function _(_0xd7c8ec,_0x4ec215){const _0x2e8841=_0x30af30;if(_0xd7c8ec[_0x2e8841(0x109)]<=0x2)return _0xd7c8ec[_0x2e8841(0x100)](i);let _0xf08070=0x0,_0x3a3e4f=0x0,_0x19d907=_0xd7c8ec[0x0],_0x282231=_0xd7c8ec[_0xd7c8ec['length']-0x1],_0x4f1fbb=_0x4ec215*_0x4ec215;for(let _0x14d587=0x1;_0x14d587<_0xd7c8ec[_0x2e8841(0x109)]-0x1;_0x14d587++){let _0x333eed=te(_0xd7c8ec[_0x14d587],_0x19d907,_0x282231);_0x333eed>_0xf08070&&(_0xf08070=_0x333eed,_0x3a3e4f=_0x14d587);}if(_0xf08070<=_0x4f1fbb)return[i(_0x19d907),i(_0x282231)];let _0x102ea1=_(_0xd7c8ec['slice'](0x0,_0x3a3e4f+0x1),_0x4ec215),_0x1359d5=_(_0xd7c8ec[_0x2e8841(0x101)](_0x3a3e4f),_0x4ec215);return[..._0x102ea1[_0x2e8841(0x101)](0x0,-0x1),..._0x1359d5];}function ne(_0x12f0d5,_0x2802e6){var _0x169a38;let _0x45a365=_0x12f0d5[_0x2802e6],_0x274d70=_0x12f0d5[_0x2802e6+0x1],_0x3cbaa0=(_0x169a38=_0x12f0d5[_0x2802e6-0x1])==null?_0x45a365:_0x169a38;return{'x':_0x45a365['x']+(_0x274d70['x']-_0x3cbaa0['x'])/0x6,'y':_0x45a365['y']+(_0x274d70['y']-_0x3cbaa0['y'])/0x6};}function v(_0x4f3b1d,_0x253fd4){var _0x28d454;let _0x5d423d=_0x4f3b1d[_0x253fd4],_0x54837a=_0x4f3b1d[_0x253fd4-0x1],_0x52eebc=(_0x28d454=_0x4f3b1d[_0x253fd4+0x1])==null?_0x5d423d:_0x28d454;return{'x':_0x5d423d['x']-(_0x52eebc['x']-_0x54837a['x'])/0x6,'y':_0x5d423d['y']-(_0x52eebc['y']-_0x54837a['y'])/0x6};}function y(_0x387335,_0x17e202){const _0x482be2=_0x30af30;var _0x386dbd,_0x23ff1d;let _0x434cf5=_0x387335[_0x482be2(0x10a)][_0x17e202],_0xaf85b5=(_0x386dbd=_0x387335[_0x482be2(0x10a)][_0x17e202-0x1])==null?_0x387335[_0x482be2(0xe1)]?_0x387335[_0x482be2(0x10a)][_0x387335[_0x482be2(0x10a)][_0x482be2(0x109)]-0x1]:null:_0x386dbd,_0x21edf8=(_0x23ff1d=_0x387335[_0x482be2(0x10a)][_0x17e202+0x1])==null?_0x387335['closed']?_0x387335[_0x482be2(0x10a)][0x0]:null:_0x23ff1d,_0x2e3e3d=_0xaf85b5&&_0x21edf8?l({'x':_0x21edf8['x']-_0xaf85b5['x'],'y':_0x21edf8['y']-_0xaf85b5['y']}):_0x21edf8?l({'x':_0x21edf8['x']-_0x434cf5['x'],'y':_0x21edf8['y']-_0x434cf5['y']}):_0xaf85b5?l({'x':_0x434cf5['x']-_0xaf85b5['x'],'y':_0x434cf5['y']-_0xaf85b5['y']}):{'x':0x1,'y':0x0},_0x5f118e=_0xaf85b5&&_0x21edf8?Math['max'](0x32,c(_0xaf85b5,_0x21edf8)/0x4):0x32;return{'in':{'x':_0x434cf5['x']-_0x2e3e3d['x']*_0x5f118e,'y':_0x434cf5['y']-_0x2e3e3d['y']*_0x5f118e},'out':{'x':_0x434cf5['x']+_0x2e3e3d['x']*_0x5f118e,'y':_0x434cf5['y']+_0x2e3e3d['y']*_0x5f118e}};}function b(_0x43673d,_0x1beaeb){const _0x3f8908=_0x30af30;let _0x1638b0=_0x43673d[_0x1beaeb],_0x3dfaff=_0x1beaeb==='in'?_0x3f8908(0x114):'in',_0x5eb37e=_0x43673d[_0x3dfaff];if(_0x1638b0){if(_0x43673d[_0x3f8908(0xbf)]===_0x3f8908(0x112)){_0x43673d[_0x3dfaff]=u(_0x43673d,_0x1638b0);return;}_0x43673d[_0x3f8908(0xbf)]===_0x3f8908(0xeb)&&(_0x43673d[_0x3dfaff]=u(_0x43673d,_0x1638b0,_0x5eb37e?c(_0x43673d,_0x5eb37e):c(_0x43673d,_0x1638b0)));}}function x(_0xf2778a,_0x220e37){const _0x9d014b=_0x30af30;let _0x1895aa=o(_0xf2778a);return!_0x220e37||_0x1895aa[_0x9d014b(0xe1)]||_0x1895aa[_0x9d014b(0x10a)]['length']===0x0||_0x1895aa[_0x9d014b(0x10a)]['push']({'id':_0x9d014b(0xf2),'x':_0x220e37['x'],'y':_0x220e37['y'],'pointType':_0x9d014b(0x122)}),_0x1895aa;}function re(_0x892b57,_0x1e5549={}){const _0x2a3320=_0x30af30;var _0x1d9114,_0x3afa40;let _0x2f96e8=Math[_0x2a3320(0xdd)](0x0,(_0x1d9114=_0x1e5549['tolerance'])==null?Math['max'](0x4,_0x892b57[_0x2a3320(0xea)]*0.35):_0x1d9114),_0x5c3b69=(_0x3afa40=_0x1e5549['createId'])==null?_0x548f7c=>_0x2a3320(0x119)+_0x548f7c:_0x3afa40,_0xe03d55=_(_0x892b57[_0x2a3320(0x116)],_0x2f96e8),_0x4428e7=_0xe03d55[_0x2a3320(0x100)]((_0x12f63e,_0x3ebddd)=>({'id':_0x5c3b69(_0x3ebddd),'x':_0x12f63e['x'],'y':_0x12f63e['y'],'pointType':'free'}));for(let _0x3cb257=0x0;_0x3cb257<_0x4428e7[_0x2a3320(0x109)]-0x1;_0x3cb257++)_0x4428e7[_0x3cb257][_0x2a3320(0x114)]=ne(_0xe03d55,_0x3cb257),_0x4428e7[_0x3cb257+0x1]['in']=v(_0xe03d55,_0x3cb257+0x1);return{'kind':_0x2a3320(0xd8),'closed':!0x1,'anchors':_0x4428e7};}function ie(_0xce3982,_0x1ab536,_0x49694a){const _0x43c7ed=_0x30af30;let _0x1b13e5=null,_0x5d6b85=[_0x43c7ed(0xfc),'in',_0x43c7ed(0x114)];return _0xce3982[_0x43c7ed(0x10a)][_0x43c7ed(0x124)]((_0x625e30,_0x511c99)=>{_0x5d6b85['forEach'](_0x2438ee=>{if(!p(_0xce3982,_0x511c99,_0x2438ee))return;let _0x215816=ee(_0x625e30,_0x2438ee);if(!_0x215816)return;let _0x19ad17=c(_0x1ab536,_0x215816);_0x19ad17>_0x49694a||_0x1b13e5&&_0x19ad17>=_0x1b13e5['distance']||(_0x1b13e5={'handle':{'kind':_0x2438ee,'anchorId':_0x625e30['id']},'point':i(_0x215816),'distance':_0x19ad17});});}),_0x1b13e5;}function S(_0x5863cb,_0x19dd00,_0x158b46){const _0x10bc23=_0x30af30;let _0x80edc8=null,_0x2cbcbe=_0x5863cb['closed']?_0x5863cb['anchors'][_0x10bc23(0x109)]:Math['max'](0x0,_0x5863cb['anchors']['length']-0x1);for(let _0xcb4694=0x0;_0xcb4694<_0x2cbcbe;_0xcb4694++){let _0x565b35=f(_0x5863cb,_0xcb4694);if(!_0x565b35)continue;let _0xa6c397=m(_0x565b35,0x0);for(let _0xf67ecc=0x1;_0xf67ecc<=0x20;_0xf67ecc++){let _0x4a4850=m(_0x565b35,_0xf67ecc/0x20),_0x302e22=g(_0x19dd00,_0xa6c397,_0x4a4850),_0x16e757=(_0xf67ecc-0x1+_0x302e22['ratio'])/0x20;(!_0x80edc8||_0x302e22[_0x10bc23(0xc5)]<_0x80edc8[_0x10bc23(0xc5)])&&(_0x80edc8={'segmentIndex':_0xcb4694,'t':_0x16e757,'point':_0x302e22['point'],'distance':_0x302e22[_0x10bc23(0xc5)]}),_0xa6c397=_0x4a4850;}}return _0x80edc8&&_0x80edc8[_0x10bc23(0xc5)]<=_0x158b46?_0x80edc8:null;}function _0x5cce(_0x3f8556,_0x2f8e10){_0x3f8556=_0x3f8556-0xae;const _0x26c7e3=_0x26c7();let _0x5cce71=_0x26c7e3[_0x3f8556];return _0x5cce71;}function C(_0x3c369b,_0x25050c,_0x1e460e){const _0x51014e=_0x30af30;let _0x2ee9b5=o(_0x3c369b),_0x11e76a=d(_0x2ee9b5,_0x25050c[_0x51014e(0xd5)]),_0x2ee308=f(_0x2ee9b5,_0x25050c[_0x51014e(0xd5)]);if(!_0x11e76a||!_0x2ee308)return _0x2ee9b5;let _0x35a967=h(_0x2ee308,Math[_0x51014e(0xdd)](0x0,Math[_0x51014e(0xbe)](0x1,_0x25050c['t']))),_0x8a3e06={'id':_0x1e460e(),'x':_0x35a967[_0x51014e(0xe5)][0x3]['x'],'y':_0x35a967['left'][0x3]['y'],'in':i(_0x35a967[_0x51014e(0xe5)][0x2]),'out':i(_0x35a967['right'][0x1]),'pointType':'free'};return _0x2ee9b5[_0x51014e(0x10a)][_0x11e76a['startIndex']]['out']=i(_0x35a967[_0x51014e(0xe5)][0x1]),_0x2ee9b5[_0x51014e(0x10a)][_0x11e76a[_0x51014e(0x108)]]['in']=i(_0x35a967['right'][0x2]),_0x2ee9b5[_0x51014e(0x10a)][_0x51014e(0xc4)](_0x11e76a[_0x51014e(0xce)]+0x1,0x0,_0x8a3e06),_0x2ee9b5;}function w(_0x3f736c,_0x776d48){const _0xc5b81f=_0x30af30;let _0x4b3717=o(_0x3f736c);return _0x4b3717['anchors']=_0x4b3717[_0xc5b81f(0x10a)][_0xc5b81f(0xc8)](_0x16d38a=>_0x16d38a['id']!==_0x776d48),_0x4b3717[_0xc5b81f(0xe1)]&&_0x4b3717[_0xc5b81f(0x10a)][_0xc5b81f(0x109)]<0x3&&(_0x4b3717[_0xc5b81f(0xe1)]=!0x1),_0x4b3717;}function T(_0x3d9430,_0x1d4d52,_0x3ea0e1){const _0x597b9e=_0x30af30;let _0xc11b95=o(_0x3d9430),_0xed0288=_0xc11b95[_0x597b9e(0x10a)][_0x597b9e(0xc7)](_0x378e99=>_0x378e99['id']===_0x1d4d52),_0x314a06=_0xc11b95[_0x597b9e(0x10a)][_0xed0288];if(!_0x314a06)return _0xc11b95;if(_0x314a06[_0x597b9e(0xbf)]=_0x3ea0e1,_0x3ea0e1===_0x597b9e(0x122))return delete _0x314a06['in'],delete _0x314a06[_0x597b9e(0x114)],_0xc11b95;let _0x27b1e5=y(_0xc11b95,_0xed0288);if(_0x314a06['in']=_0x314a06['in']?i(_0x314a06['in']):_0x27b1e5['in'],_0x314a06['out']=_0x314a06['out']?i(_0x314a06[_0x597b9e(0x114)]):_0x27b1e5[_0x597b9e(0x114)],_0x3ea0e1===_0x597b9e(0x112)){let _0x28de2d=Math[_0x597b9e(0xdd)](c(_0x314a06,_0x314a06['in']),c(_0x314a06,_0x314a06[_0x597b9e(0x114)]),0x32),_0x476be0=l({'x':_0x314a06[_0x597b9e(0x114)]['x']-_0x314a06['x'],'y':_0x314a06[_0x597b9e(0x114)]['y']-_0x314a06['y']});_0x314a06[_0x597b9e(0x114)]={'x':_0x314a06['x']+_0x476be0['x']*_0x28de2d,'y':_0x314a06['y']+_0x476be0['y']*_0x28de2d},_0x314a06['in']={'x':_0x314a06['x']-_0x476be0['x']*_0x28de2d,'y':_0x314a06['y']-_0x476be0['y']*_0x28de2d};}else _0x3ea0e1===_0x597b9e(0xeb)&&b(_0x314a06,_0x597b9e(0x114));return _0xc11b95;}function E(_0x54816e,_0x333e46){const _0x1da103=_0x30af30;var _0x3c4e3e;let _0x27007a=_0x54816e[_0x1da103(0x10a)][_0x1da103(0xef)](_0x3710f8=>_0x3710f8['id']===_0x333e46),_0x51def8=(_0x3c4e3e=_0x27007a==null?void 0x0:_0x27007a['pointType'])==null?'corner':_0x3c4e3e;return T(_0x54816e,_0x333e46,_0x51def8===_0x1da103(0x122)?'smooth':_0x51def8===_0x1da103(0xeb)?_0x1da103(0x112):_0x51def8===_0x1da103(0x112)?_0x1da103(0xd0):_0x1da103(0x122));}function ae(_0x3399e7,_0x13cc92,_0xd32cae){const _0x2fc8fc=_0x30af30;let _0x450da=o(_0x3399e7),_0x3340a1=_0x450da[_0x2fc8fc(0x10a)][_0x2fc8fc(0xef)](_0x2dffdf=>_0x2dffdf['id']===_0x13cc92[_0x2fc8fc(0xb0)]);if(!_0x3340a1)return _0x450da;if(_0x13cc92[_0x2fc8fc(0xd2)]===_0x2fc8fc(0xfc)){let _0x87a14={'x':_0xd32cae['x']-_0x3340a1['x'],'y':_0xd32cae['y']-_0x3340a1['y']};return _0x3340a1['x']=_0xd32cae['x'],_0x3340a1['y']=_0xd32cae['y'],_0x3340a1['in']&&(_0x3340a1['in']={'x':_0x3340a1['in']['x']+_0x87a14['x'],'y':_0x3340a1['in']['y']+_0x87a14['y']}),_0x3340a1['out']&&(_0x3340a1[_0x2fc8fc(0x114)]={'x':_0x3340a1[_0x2fc8fc(0x114)]['x']+_0x87a14['x'],'y':_0x3340a1[_0x2fc8fc(0x114)]['y']+_0x87a14['y']}),_0x450da;}return _0x3340a1[_0x13cc92[_0x2fc8fc(0xd2)]]=i(_0xd32cae),_0x3340a1['pointType']===_0x2fc8fc(0x122)&&(_0x3340a1[_0x2fc8fc(0xbf)]=_0x2fc8fc(0xd0)),b(_0x3340a1,_0x13cc92['kind']),_0x450da;}const D=1e-9;function O(_0x109295){const _0x1c0a3c=_0x30af30;let _0x463326=Math[_0x1c0a3c(0x10d)](_0x109295*0x2710)/0x2710;return Object['is'](_0x463326,-0x0)?'0':String(_0x463326);}function k(_0x38d48c){return O(_0x38d48c['x'])+'\x20'+O(_0x38d48c['y']);}function A(_0x45fbaf,_0x3951ed){return{'x':_0x45fbaf['x']-_0x3951ed['x'],'y':_0x45fbaf['y']-_0x3951ed['y']};}function j(_0x5e9a88,_0x5ac9c7,_0xa0d96e,_0x2149c4,_0x42b32e){let _0x448817=0x1-_0x42b32e;return{'x':_0x448817*_0x448817*_0x448817*_0x5e9a88['x']+0x3*_0x448817*_0x448817*_0x42b32e*_0x5ac9c7['x']+0x3*_0x448817*_0x42b32e*_0x42b32e*_0xa0d96e['x']+_0x42b32e*_0x42b32e*_0x42b32e*_0x2149c4['x'],'y':_0x448817*_0x448817*_0x448817*_0x5e9a88['y']+0x3*_0x448817*_0x448817*_0x42b32e*_0x5ac9c7['y']+0x3*_0x448817*_0x42b32e*_0x42b32e*_0xa0d96e['y']+_0x42b32e*_0x42b32e*_0x42b32e*_0x2149c4['y']};}function M(_0x27e8b9,_0x250b1c,_0x10dbf8,_0x3083b0){const _0x15064e=_0x30af30;let _0x18cd9b=-_0x27e8b9+0x3*_0x250b1c-0x3*_0x10dbf8+_0x3083b0,_0x269e77=0x3*_0x27e8b9-0x6*_0x250b1c+0x3*_0x10dbf8,_0x2e1579=-0x3*_0x27e8b9+0x3*_0x250b1c,_0x2c90eb=[];if(Math['abs'](_0x18cd9b)<D){if(Math['abs'](_0x269e77)<D)return _0x2c90eb;let _0x17d5b4=-_0x2e1579/(0x2*_0x269e77);return _0x17d5b4>0x0&&_0x17d5b4<0x1&&_0x2c90eb['push'](_0x17d5b4),_0x2c90eb;}let _0x23448d=_0x269e77*_0x269e77-0x3*_0x18cd9b*_0x2e1579;if(_0x23448d<0x0)return _0x2c90eb;let _0x5c2631=Math[_0x15064e(0xba)](Math[_0x15064e(0xdd)](0x0,_0x23448d)),_0x57119e=(-_0x269e77+_0x5c2631)/(0x3*_0x18cd9b),_0x1e1664=(-_0x269e77-_0x5c2631)/(0x3*_0x18cd9b);return _0x57119e>0x0&&_0x57119e<0x1&&_0x2c90eb[_0x15064e(0xf5)](_0x57119e),_0x1e1664>0x0&&_0x1e1664<0x1&&Math['abs'](_0x1e1664-_0x57119e)>D&&_0x2c90eb['push'](_0x1e1664),_0x2c90eb;}function N(_0xba0ec2,_0x395626,_0xdf703c,_0x21554f,_0x56405f){const _0x36886a=_0x30af30;_0xba0ec2[_0x36886a(0xf5)](_0x395626,_0x56405f),new Set([...M(_0x395626['x'],_0xdf703c['x'],_0x21554f['x'],_0x56405f['x']),...M(_0x395626['y'],_0xdf703c['y'],_0x21554f['y'],_0x56405f['y'])])['forEach'](_0x4e2cee=>{const _0x1f6407=_0x36886a;_0xba0ec2[_0x1f6407(0xf5)](j(_0x395626,_0xdf703c,_0x21554f,_0x56405f,_0x4e2cee));});}function P(_0x5ae775){const _0x5a762c=_0x30af30;let _0x32c12c=_0x5ae775[_0x5a762c(0x10a)];if(_0x32c12c[_0x5a762c(0x109)]<=0x1)return _0x32c12c;let _0x4a21b3=[];for(let _0x5c759a=0x1;_0x5c759a<_0x32c12c[_0x5a762c(0x109)];_0x5c759a++){var _0x551518,_0x244506;let _0x1298e6=_0x32c12c[_0x5c759a-0x1],_0x53c23b=_0x32c12c[_0x5c759a];N(_0x4a21b3,_0x1298e6,(_0x551518=_0x1298e6[_0x5a762c(0x114)])==null?_0x1298e6:_0x551518,(_0x244506=_0x53c23b['in'])==null?_0x53c23b:_0x244506,_0x53c23b);}if(_0x5ae775['closed']&&_0x32c12c[_0x5a762c(0x109)]>0x1){var _0x17d9b3,_0x56761c;let _0x39d9e9=_0x32c12c[_0x32c12c[_0x5a762c(0x109)]-0x1],_0x234e9c=_0x32c12c[0x0];N(_0x4a21b3,_0x39d9e9,(_0x17d9b3=_0x39d9e9[_0x5a762c(0x114)])==null?_0x39d9e9:_0x17d9b3,(_0x56761c=_0x234e9c['in'])==null?_0x234e9c:_0x56761c,_0x234e9c);}return _0x4a21b3;}function F(_0x530ad4){const _0x29f511=_0x30af30;let _0x5a9cd7=_0x530ad4[_0x29f511(0x116)];if(_0x5a9cd7[_0x29f511(0x109)]<=0x1)return _0x5a9cd7;let _0x26dc32=[];for(let _0x20bb3b=0x0;_0x20bb3b<_0x5a9cd7[_0x29f511(0x109)]-0x1;_0x20bb3b++){var _0x38cd15,_0x4e915b;let _0x27f14b=_0x5a9cd7[_0x20bb3b],_0x501765=_0x5a9cd7[_0x20bb3b+0x1],_0x4363d3=(_0x38cd15=_0x5a9cd7[_0x20bb3b-0x1])==null?_0x27f14b:_0x38cd15,_0x4d6b1e=(_0x4e915b=_0x5a9cd7[_0x20bb3b+0x2])==null?_0x501765:_0x4e915b;N(_0x26dc32,_0x27f14b,{'x':_0x27f14b['x']+(_0x501765['x']-_0x4363d3['x'])/0x6,'y':_0x27f14b['y']+(_0x501765['y']-_0x4363d3['y'])/0x6},{'x':_0x501765['x']-(_0x4d6b1e['x']-_0x27f14b['x'])/0x6,'y':_0x501765['y']-(_0x4d6b1e['y']-_0x27f14b['y'])/0x6},_0x501765);}return _0x26dc32;}function I(_0x5e6857){const _0xf16c9c=_0x30af30;return _0x5e6857[_0xf16c9c(0xd2)]===_0xf16c9c(0xd8)?P(_0x5e6857):F(_0x5e6857);}function L(_0x2cc489){const _0x15d200=_0x30af30;let _0x1920d7=Math[_0x15d200(0x10d)](_0x2cc489*0x2710)/0x2710;return Object['is'](_0x1920d7,-0x0)?0x0:_0x1920d7;}function R(_0x599529){const _0x23d667=_0x30af30;let _0x4e2c90=I(_0x599529);if(_0x4e2c90['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x130d17=Math[_0x23d667(0xbe)](..._0x4e2c90[_0x23d667(0x100)](_0x346dc7=>_0x346dc7['x'])),_0x223eb8=Math['min'](..._0x4e2c90[_0x23d667(0x100)](_0x4f6df2=>_0x4f6df2['y'])),_0x340439=Math['max'](..._0x4e2c90['map'](_0x1b3b69=>_0x1b3b69['x'])),_0x2c0e52=Math[_0x23d667(0xdd)](..._0x4e2c90['map'](_0x219ee9=>_0x219ee9['y']));return{'left':L(_0x130d17),'top':L(_0x223eb8),'width':L(Math[_0x23d667(0xdd)](0x1,_0x340439-_0x130d17)),'height':L(Math[_0x23d667(0xdd)](0x1,_0x2c0e52-_0x223eb8))};}function z(_0x3d2a8d,_0x5e5691){const _0x1b8445=_0x30af30;let _0x153ebf=_0x3d2a8d[_0x1b8445(0x10a)];if(_0x153ebf['length']===0x0)return'';let _0x28fbe8=['M\x20'+k(A(_0x153ebf[0x0],_0x5e5691))];for(let _0x1ee271=0x1;_0x1ee271<_0x153ebf[_0x1b8445(0x109)];_0x1ee271++){var _0x4db8b7,_0x1007a3;let _0x531e10=_0x153ebf[_0x1ee271-0x1],_0x340c1e=_0x153ebf[_0x1ee271],_0x2fe2c1=(_0x4db8b7=_0x531e10[_0x1b8445(0x114)])==null?_0x531e10:_0x4db8b7,_0x464987=(_0x1007a3=_0x340c1e['in'])==null?_0x340c1e:_0x1007a3;_0x28fbe8['push']('C\x20'+k(A(_0x2fe2c1,_0x5e5691))+'\x20'+k(A(_0x464987,_0x5e5691))+'\x20'+k(A(_0x340c1e,_0x5e5691)));}if(_0x3d2a8d['closed']&&_0x153ebf[_0x1b8445(0x109)]>0x1){var _0x1122d0,_0x197c32;let _0x58b3fe=_0x153ebf[_0x153ebf[_0x1b8445(0x109)]-0x1],_0x2eb2fb=_0x153ebf[0x0],_0x23eb24=(_0x1122d0=_0x58b3fe[_0x1b8445(0x114)])==null?_0x58b3fe:_0x1122d0,_0x39a77d=(_0x197c32=_0x2eb2fb['in'])==null?_0x2eb2fb:_0x197c32;_0x28fbe8[_0x1b8445(0xf5)]('C\x20'+k(A(_0x23eb24,_0x5e5691))+'\x20'+k(A(_0x39a77d,_0x5e5691))+'\x20'+k(A(_0x2eb2fb,_0x5e5691))),_0x28fbe8[_0x1b8445(0xf5)]('Z');}return _0x28fbe8[_0x1b8445(0xd7)]('\x20');}function B(_0x28187c,_0x405052){const _0x23bf41=_0x30af30;let _0x52958c=_0x28187c[_0x23bf41(0x116)][_0x23bf41(0x100)](_0x5a47e4=>A(_0x5a47e4,_0x405052));if(_0x52958c['length']===0x0)return'';if(_0x52958c[_0x23bf41(0x109)]===0x1)return'M\x20'+k(_0x52958c[0x0]);let _0x33ec4b=['M\x20'+k(_0x52958c[0x0])];for(let _0x1bbc09=0x0;_0x1bbc09<_0x52958c[_0x23bf41(0x109)]-0x1;_0x1bbc09++){var _0x255405,_0x487b4e;let _0x2f49ec=_0x52958c[_0x1bbc09],_0x369c49=_0x52958c[_0x1bbc09+0x1],_0x4b3234=(_0x255405=_0x52958c[_0x1bbc09-0x1])==null?_0x2f49ec:_0x255405,_0x1085f9=(_0x487b4e=_0x52958c[_0x1bbc09+0x2])==null?_0x369c49:_0x487b4e,_0x1ef4bd={'x':_0x2f49ec['x']+(_0x369c49['x']-_0x4b3234['x'])/0x6,'y':_0x2f49ec['y']+(_0x369c49['y']-_0x4b3234['y'])/0x6},_0x2a9eb0={'x':_0x369c49['x']-(_0x1085f9['x']-_0x2f49ec['x'])/0x6,'y':_0x369c49['y']-(_0x1085f9['y']-_0x2f49ec['y'])/0x6};_0x33ec4b['push']('C\x20'+k(_0x1ef4bd)+'\x20'+k(_0x2a9eb0)+'\x20'+k(_0x369c49));}return _0x33ec4b[_0x23bf41(0xd7)]('\x20');}function V(_0x435e33,_0x503b6d){const _0x6ee77d=_0x30af30;return _0x435e33[_0x6ee77d(0xd2)]===_0x6ee77d(0xd8)?z(_0x435e33,_0x503b6d):B(_0x435e33,_0x503b6d);}function H(_0x47ce1b,_0x36e973){const _0x8b49e9=_0x30af30;return _0x36e973!=null&&_0x36e973[_0x8b49e9(0x115)]?_0x36e973[_0x8b49e9(0x115)]:_0x47ce1b[_0x8b49e9(0xd2)]==='pen'?'#f54a45':_0x47ce1b[_0x8b49e9(0x115)];}function U(_0x32d003,_0x381143){const _0x1dab71=_0x30af30;return(_0x381143==null?void 0x0:_0x381143[_0x1dab71(0xea)])===void 0x0?_0x32d003[_0x1dab71(0xd2)]===_0x1dab71(0xd8)?0x2:_0x32d003[_0x1dab71(0xea)]:_0x381143[_0x1dab71(0xea)];}function W(_0x4a04ab,_0x5ef138){const _0x2d6c0c=_0x30af30;return(_0x5ef138==null?void 0x0:_0x5ef138['opacity'])===void 0x0?_0x4a04ab[_0x2d6c0c(0xd2)]==='pen'?void 0x0:_0x4a04ab[_0x2d6c0c(0x110)]:_0x5ef138[_0x2d6c0c(0x110)];}function oe(_0x3fff4a,_0x565146){const _0x50d4fd=_0x30af30;let _0x345587=R(_0x3fff4a),_0x36ff37=V(_0x3fff4a,{'x':_0x345587[_0x50d4fd(0xe5)],'y':_0x345587[_0x50d4fd(0xe9)]}),_0x46fe7e=_0x3fff4a[_0x50d4fd(0xd2)]==='pen'&&_0x3fff4a[_0x50d4fd(0xe1)],_0x1dc8a4=_0x565146==null?void 0x0:_0x565146[_0x50d4fd(0xb8)];return{'shapeType':e[_0x50d4fd(0xaf)][_0x50d4fd(0x10c)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x345587[_0x50d4fd(0xea)],'h':_0x345587[_0x50d4fd(0xcc)],'fill':_0x46fe7e?_0x50d4fd(0xae):_0x50d4fd(0xd3),'stroke':!0x0,'data':_0x36ff37,'dataArray':K(_0x3fff4a,{'x':_0x345587[_0x50d4fd(0xe5)],'y':_0x345587[_0x50d4fd(0xe9)]})}]},'fill':_0x46fe7e&&_0x1dc8a4?{'color':_0x1dc8a4,'fillType':e[_0x50d4fd(0x104)][_0x50d4fd(0xf3)]}:{'fillType':e[_0x50d4fd(0x104)]['NoFill']},'stroke':{'color':H(_0x3fff4a,_0x565146),'width':U(_0x3fff4a,_0x565146),'opacity':W(_0x3fff4a,_0x565146),'lineStrokeType':e[_0x50d4fd(0x11f)][_0x50d4fd(0xd4)],'capType':e[_0x50d4fd(0xc1)][_0x50d4fd(0xec)],'lineJoinType':e['ShapeLineJoinEnum'][_0x50d4fd(0xec)]}};}function G(_0x40241f,_0x3e0740){return{'x':_0x40241f['x']-_0x3e0740['x'],'y':_0x40241f['y']-_0x3e0740['y']};}function K(_0x69af48,_0x196830){const _0x17a958=_0x30af30;if(_0x69af48[_0x17a958(0xd2)]===_0x17a958(0xd8)){let _0x3e7cd6=_0x69af48[_0x17a958(0x10a)];if(_0x3e7cd6['length']===0x0)return[];let _0x1ad086=G(_0x3e7cd6[0x0],_0x196830),_0x282269=[{'command':'M','points':[_0x1ad086['x'],_0x1ad086['y']]}];for(let _0x427644=0x1;_0x427644<_0x3e7cd6[_0x17a958(0x109)];_0x427644++){var _0x1fcfce,_0x301d8f;let _0x5d3865=_0x3e7cd6[_0x427644-0x1],_0x3ad068=_0x3e7cd6[_0x427644],_0x2182b5=G((_0x1fcfce=_0x5d3865[_0x17a958(0x114)])==null?_0x5d3865:_0x1fcfce,_0x196830),_0x48b3ef=G((_0x301d8f=_0x3ad068['in'])==null?_0x3ad068:_0x301d8f,_0x196830),_0x14712e=G(_0x3ad068,_0x196830);_0x282269[_0x17a958(0xf5)]({'command':'C','points':[_0x2182b5['x'],_0x2182b5['y'],_0x48b3ef['x'],_0x48b3ef['y'],_0x14712e['x'],_0x14712e['y']]});}if(_0x69af48[_0x17a958(0xe1)]&&_0x3e7cd6[_0x17a958(0x109)]>0x1){var _0x944814,_0x289b26;let _0x957bcb=_0x3e7cd6[_0x3e7cd6[_0x17a958(0x109)]-0x1],_0xae8307=_0x3e7cd6[0x0],_0x5a2702=G((_0x944814=_0x957bcb[_0x17a958(0x114)])==null?_0x957bcb:_0x944814,_0x196830),_0x2fe8c9=G((_0x289b26=_0xae8307['in'])==null?_0xae8307:_0x289b26,_0x196830),_0x17184b=G(_0xae8307,_0x196830);_0x282269['push']({'command':'C','points':[_0x5a2702['x'],_0x5a2702['y'],_0x2fe8c9['x'],_0x2fe8c9['y'],_0x17184b['x'],_0x17184b['y']]}),_0x282269[_0x17a958(0xf5)]({'command':'z','points':[]});}return _0x282269;}let _0x307d6c=_0x69af48[_0x17a958(0x116)]['map'](_0x40fe3a=>G(_0x40fe3a,_0x196830));if(_0x307d6c[_0x17a958(0x109)]===0x0)return[];let _0xdcfb3e=[{'command':'M','points':[_0x307d6c[0x0]['x'],_0x307d6c[0x0]['y']]}];for(let _0x326ff1=0x0;_0x326ff1<_0x307d6c['length']-0x1;_0x326ff1++){var _0x2b9b41,_0x2db467;let _0x2c0027=_0x307d6c[_0x326ff1],_0x440842=_0x307d6c[_0x326ff1+0x1],_0x341411=(_0x2b9b41=_0x307d6c[_0x326ff1-0x1])==null?_0x2c0027:_0x2b9b41,_0x300b56=(_0x2db467=_0x307d6c[_0x326ff1+0x2])==null?_0x440842:_0x2db467,_0x40acfa={'x':_0x2c0027['x']+(_0x440842['x']-_0x341411['x'])/0x6,'y':_0x2c0027['y']+(_0x440842['y']-_0x341411['y'])/0x6},_0x122cdc={'x':_0x440842['x']-(_0x300b56['x']-_0x2c0027['x'])/0x6,'y':_0x440842['y']-(_0x300b56['y']-_0x2c0027['y'])/0x6};_0xdcfb3e['push']({'command':'C','points':[_0x40acfa['x'],_0x40acfa['y'],_0x122cdc['x'],_0x122cdc['y'],_0x440842['x'],_0x440842['y']]});}return _0xdcfb3e;}function q(_0x3fc525){const _0x41ac02=_0x30af30;var _0xcc9c19;let {model:_0x502304,sourceModel:_0x2e3df8=_0x502304,style:_0xbca427}=_0x3fc525,_0x573b81=(_0xcc9c19=_0x3fc525[_0x41ac02(0xf6)])==null?_0x502304[_0x41ac02(0xd2)]:_0xcc9c19,_0x4783a1=R(_0x502304),_0x1b9648=_0x502304[_0x41ac02(0xd2)]===_0x41ac02(0xd8)&&_0x573b81!=='pen'?_0x502304:void 0x0;return{'transform':{..._0x4783a1,'rotation':0x0},'shapeData':oe(_0x502304,_0xbca427),'ink':{'version':0x1,'tool':_0x573b81,'sourceModel':_0x2e3df8,..._0x1b9648?{'editModel':_0x1b9648}:{},'normalizedBounds':_0x4783a1}};}var se=_0x30af30(0xbb),ce='1.0.0-alpha.5';function J(_0x2e37ba){'@babel/helpers - typeof';const _0x4c5188=_0x30af30;return J=typeof Symbol==_0x4c5188(0xb7)&&typeof Symbol[_0x4c5188(0xcf)]==_0x4c5188(0xdb)?function(_0x2064a7){return typeof _0x2064a7;}:function(_0x320ea0){const _0x2854d6=_0x4c5188;return _0x320ea0&&typeof Symbol==_0x2854d6(0xb7)&&_0x320ea0[_0x2854d6(0xc3)]===Symbol&&_0x320ea0!==Symbol[_0x2854d6(0xf7)]?_0x2854d6(0xdb):typeof _0x320ea0;},J(_0x2e37ba);}function le(_0x37ca37,_0xd67947){const _0x400f11=_0x30af30;if(J(_0x37ca37)!=_0x400f11(0xc6)||!_0x37ca37)return _0x37ca37;var _0x459a1c=_0x37ca37[Symbol[_0x400f11(0x10f)]];if(_0x459a1c!==void 0x0){var _0x489db2=_0x459a1c[_0x400f11(0x11e)](_0x37ca37,_0xd67947||_0x400f11(0x10e));if(J(_0x489db2)!='object')return _0x489db2;throw TypeError(_0x400f11(0xe6));}return(_0xd67947===_0x400f11(0xf0)?String:Number)(_0x37ca37);}function ue(_0x11cdda){const _0x134ddf=_0x30af30;var _0x10e4f7=le(_0x11cdda,_0x134ddf(0xf0));return J(_0x10e4f7)==_0x134ddf(0xdb)?_0x10e4f7:_0x10e4f7+'';}function Y(_0x46dc2f,_0x3979ac,_0x454cd9){const _0x4cf8e0=_0x30af30;return(_0x3979ac=ue(_0x3979ac))in _0x46dc2f?Object[_0x4cf8e0(0xf9)](_0x46dc2f,_0x3979ac,{'value':_0x454cd9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46dc2f[_0x3979ac]=_0x454cd9,_0x46dc2f;}const X=(0x0,n[_0x30af30(0xbc)])('ink.host-adapter.service');var de=class{constructor(){Y(this,'_adapters',[]);}[_0x30af30(0x117)](_0x4ec81f){const _0x57d9f6=_0x30af30;return this[_0x57d9f6(0xee)][_0x57d9f6(0xf5)](_0x4ec81f),(0x0,n[_0x57d9f6(0x11c)])(()=>{const _0x27cba7=_0x57d9f6;let _0x2eb754=this[_0x27cba7(0xee)][_0x27cba7(0x102)](_0x4ec81f);_0x2eb754>=0x0&&this[_0x27cba7(0xee)][_0x27cba7(0xc4)](_0x2eb754,0x1);});}[_0x30af30(0xb2)](_0x38048d){const _0x4427b9=_0x30af30;for(let _0x42c7d7 of this[_0x4427b9(0xee)])if(_0x42c7d7[_0x4427b9(0xb2)](_0x38048d))return!0x0;return!0x1;}async[_0x30af30(0x11a)](_0x3e81b1){const _0x3d73bb=_0x30af30;for(let _0xb9b333 of this[_0x3d73bb(0xee)])if(_0xb9b333['createCustomShape']&&await _0xb9b333[_0x3d73bb(0x11a)](_0x3e81b1))return!0x0;return!0x1;}};const fe={'id':_0x30af30(0xf8),'type':n[_0x30af30(0xde)]['OPERATION'],'handler':(_0x37fa07,_0x39124d)=>_0x39124d?_0x37fa07[_0x30af30(0x11b)](X)[_0x30af30(0xb2)](_0x39124d):!0x1},Z={};function Q(_0x426ab,_0x33ad67){return function(_0x2d03ce,_0x494561){_0x33ad67(_0x2d03ce,_0x494561,_0x426ab);};}function pe(_0x5c6307,_0x391d65,_0x1f1d27,_0x1a0d56){const _0x2150e1=_0x30af30;var _0x99354c=arguments[_0x2150e1(0x109)],_0x47090f=_0x99354c<0x3?_0x391d65:_0x1a0d56===null?_0x1a0d56=Object['getOwnPropertyDescriptor'](_0x391d65,_0x1f1d27):_0x1a0d56,_0x486fdd;if(typeof Reflect=='object'&&typeof Reflect[_0x2150e1(0x121)]==_0x2150e1(0xb7))_0x47090f=Reflect[_0x2150e1(0x121)](_0x5c6307,_0x391d65,_0x1f1d27,_0x1a0d56);else{for(var _0x54d5f7=_0x5c6307[_0x2150e1(0x109)]-0x1;_0x54d5f7>=0x0;_0x54d5f7--)(_0x486fdd=_0x5c6307[_0x54d5f7])&&(_0x47090f=(_0x99354c<0x3?_0x486fdd(_0x47090f):_0x99354c>0x3?_0x486fdd(_0x391d65,_0x1f1d27,_0x47090f):_0x486fdd(_0x391d65,_0x1f1d27))||_0x47090f);}return _0x99354c>0x3&&_0x47090f&&Object[_0x2150e1(0xf9)](_0x391d65,_0x1f1d27,_0x47090f),_0x47090f;}let $=class extends n['Plugin']{constructor(_0x3fe5b2=Z,_0x1ee381,_0x5d7c98,_0x5a9f30){const _0x1ebcbe=_0x30af30;super(),this[_0x1ebcbe(0x113)]=_0x3fe5b2,this[_0x1ebcbe(0xed)]=_0x1ee381,this[_0x1ebcbe(0xe2)]=_0x5d7c98,this[_0x1ebcbe(0xd6)]=_0x5a9f30;let {..._0x1483c3}=(0x0,n[_0x1ebcbe(0xe0)])({},Z,this['_config']);this[_0x1ebcbe(0xd6)][_0x1ebcbe(0xb1)]('ink.config',_0x1483c3);}[_0x30af30(0xff)](){const _0x4816a3=_0x30af30;[[X,{'useClass':de}]][_0x4816a3(0x124)](_0x1a5be0=>this[_0x4816a3(0xed)][_0x4816a3(0xd9)](_0x1a5be0)),this[_0x4816a3(0xc0)](this[_0x4816a3(0xe2)][_0x4816a3(0x107)](fe));}};Y($,_0x30af30(0xf1),_0x30af30(0x106)),Y($,'packageName',se),Y($,'version',ce),Y($,_0x30af30(0xcd),n[_0x30af30(0xdc)][_0x30af30(0xdf)]),$=pe([(0x0,n[_0x30af30(0x111)])(t[_0x30af30(0xb5)]),Q(0x1,(0x0,n[_0x30af30(0xfd)])(n[_0x30af30(0xda)])),Q(0x2,n[_0x30af30(0x10b)]),Q(0x3,n[_0x30af30(0xb3)])],$),exports['IInkHostAdapterService']=X,Object[_0x30af30(0xf9)](exports,_0x30af30(0x120),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x30af30(0xe3)]=q,exports['convertBrushModelToPenModel']=re,exports[_0x30af30(0xd1)]=E,exports[_0x30af30(0x123)]=w,exports[_0x30af30(0xb4)]=ie,exports[_0x30af30(0xfe)]=S,exports['getInkModelBounds']=R,exports[_0x30af30(0xcb)]=x,exports[_0x30af30(0xb6)]=C,exports['isInkPenHandleVisible']=p,exports[_0x30af30(0xb9)]=ae,exports[_0x30af30(0x118)]=T;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2cfa6e=_0xd57f;(function(_0xa6c3d,_0x5a3e6f){const _0x57964c=_0xd57f,_0x368bfd=_0xa6c3d();while(!![]){try{const _0x319c34=parseInt(_0x57964c(0x1f6))/0x1*(-parseInt(_0x57964c(0x1ee))/0x2)+-parseInt(_0x57964c(0x1ff))/0x3+-parseInt(_0x57964c(0x200))/0x4*(parseInt(_0x57964c(0x203))/0x5)+-parseInt(_0x57964c(0x1f3))/0x6+-parseInt(_0x57964c(0x1e6))/0x7*(parseInt(_0x57964c(0x1f0))/0x8)+-parseInt(_0x57964c(0x1f1))/0x9+parseInt(_0x57964c(0x20f))/0xa;if(_0x319c34===_0x5a3e6f)break;else _0x368bfd['push'](_0x368bfd['shift']());}catch(_0x512c0f){_0x368bfd['push'](_0x368bfd['shift']());}}}(_0x2dfd,0x49c63));import{BoardElementType as _0x4e7b15}from'@univerjs-pro/boards';import{FBoard as _0xebe1c}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x31666b}from'@univerjs-pro/ink';import{Tools as _0x447e92,generateRandomId as _0x34bf1c}from'@univerjs/core';import{FEnum as _0x5bba3f}from'@univerjs/core/facade';var o=class extends _0xebe1c{[_0x2cfa6e(0x1fc)](_0x17d32f){const _0x500168=_0x2cfa6e;let _0x258762=s(_0x17d32f);return _0x258762&&this[_0x500168(0x206)](_0x258762,{'insertIndex':_0x17d32f[_0x500168(0x1e2)]})?_0x258762:null;}['getInks'](){const _0x5e79e4=_0x2cfa6e;return this[_0x5e79e4(0x1e3)]({'elementType':_0x4e7b15[_0x5e79e4(0x1f2)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x5e79e4(0x1f5)](p);}};function s(_0x4653d1,_0x5e12fd){const _0x3309f8=_0x2cfa6e;var _0xea6977,_0x2c217b,_0xf4e382;if(!l(_0x4653d1[_0x3309f8(0x1ea)])||_0x4653d1[_0x3309f8(0x1f4)]!==void 0x0&&!l(_0x4653d1[_0x3309f8(0x1f4)])||!u(_0x4653d1[_0x3309f8(0x20a)]))return null;let _0x2d33b7=(_0xea6977=_0x4653d1['parentId'])==null?_0x5e12fd==null?void 0x0:_0x5e12fd[_0x3309f8(0x201)]:_0xea6977,_0x336461=_0x447e92[_0x3309f8(0x20d)](_0x4653d1[_0x3309f8(0x1ea)]),_0x259f25=_0x31666b({'model':_0x336461,'style':_0x4653d1[_0x3309f8(0x20a)],'tool':_0x4653d1[_0x3309f8(0x210)],'sourceModel':_0x4653d1['sourceModel']?_0x447e92[_0x3309f8(0x20d)](_0x4653d1[_0x3309f8(0x1f4)]):_0x336461}),_0x7b3cc0=d(_0x5e12fd==null?void 0x0:_0x5e12fd[_0x3309f8(0x1e1)]);return{'id':(_0x2c217b=(_0xf4e382=_0x5e12fd==null?void 0x0:_0x5e12fd['id'])==null?_0x4653d1['id']:_0xf4e382)==null?_0x34bf1c(0x6):_0x2c217b,'type':_0x4e7b15[_0x3309f8(0x1f2)],'transform':_0x259f25[_0x3309f8(0x1e4)],'shapeData':_0x259f25[_0x3309f8(0x1ef)],'parentId':_0x2d33b7==null?void 0x0:_0x2d33b7,'laneId':_0x4653d1[_0x3309f8(0x205)]===void 0x0?_0x5e12fd==null?void 0x0:_0x5e12fd['laneId']:_0x4653d1[_0x3309f8(0x205)],'custom':{..._0x7b3cc0,'ink':_0x259f25[_0x3309f8(0x1f9)]}};}function _0xd57f(_0x203831,_0x4dce9f){_0x203831=_0x203831-0x1e1;const _0x2dfd8e=_0x2dfd();let _0xd57f3a=_0x2dfd8e[_0x203831];return _0xd57f3a;}function c(_0x4c2ae3){const _0x199240=_0x2cfa6e;return Number[_0x199240(0x1eb)](_0x4c2ae3['x'])&&Number['isFinite'](_0x4c2ae3['y']);}function l(_0x5b629a){const _0x11f44e=_0x2cfa6e;if(_0x5b629a[_0x11f44e(0x20c)]===_0x11f44e(0x20b)){let _0x178184=new Set();return _0x5b629a[_0x11f44e(0x1ed)][_0x11f44e(0x202)]>=(_0x5b629a['closed']?0x3:0x2)&&_0x5b629a['anchors']['every'](_0x2d6af8=>{const _0x34fe97=_0x11f44e;let _0xc2ec57=_0x2d6af8['id'][_0x34fe97(0x1fe)]()['length']>0x0&&!_0x178184[_0x34fe97(0x207)](_0x2d6af8['id'])&&c(_0x2d6af8)&&(!_0x2d6af8['in']||c(_0x2d6af8['in']))&&(!_0x2d6af8['out']||c(_0x2d6af8[_0x34fe97(0x1fa)]));return _0x178184['add'](_0x2d6af8['id']),_0xc2ec57;});}return _0x5b629a[_0x11f44e(0x1f7)][_0x11f44e(0x202)]>=0x2&&_0x5b629a[_0x11f44e(0x1f7)][_0x11f44e(0x1fd)](_0x5e74a5=>c(_0x5e74a5)&&Number[_0x11f44e(0x1eb)](_0x5e74a5['t'])&&(_0x5e74a5['pressure']===void 0x0||Number[_0x11f44e(0x1eb)](_0x5e74a5[_0x11f44e(0x20e)])))&&Number[_0x11f44e(0x1eb)](_0x5b629a[_0x11f44e(0x1e9)])&&_0x5b629a[_0x11f44e(0x1e9)]>0x0&&Number['isFinite'](_0x5b629a[_0x11f44e(0x212)])&&_0x5b629a[_0x11f44e(0x212)]>=0x0&&_0x5b629a[_0x11f44e(0x212)]<=0x1;}function _0x2dfd(){const _0x4a9e71=['BoardInkTool','style','pen','kind','deepClone','pressure','24855820VLhNJn','tool','extend','opacity','custom','insertIndex','findElements','transform','type','26677jcZtik','brush','free','width','model','isFinite','object','anchors','13484HTyUTS','shapeData','608xdWkGe','5131485DrDRAB','Shape','1096494pHmHXN','sourceModel','filter','82lQdqxy','points','BoardInkPointType','ink','out','version','insertInk','every','trim','539628sPYcnA','4guTYbO','parentId','length','2040665bblXrM','anchor','laneId','addElement','has','isArray'];_0x2dfd=function(){return _0x4a9e71;};return _0x2dfd();}function u(_0x3e2ff8){const _0x586cb2=_0x2cfa6e;return _0x3e2ff8===void 0x0||(_0x3e2ff8[_0x586cb2(0x1e9)]===void 0x0||Number[_0x586cb2(0x1eb)](_0x3e2ff8['width'])&&_0x3e2ff8['width']>0x0)&&(_0x3e2ff8[_0x586cb2(0x212)]===void 0x0||Number[_0x586cb2(0x1eb)](_0x3e2ff8['opacity'])&&_0x3e2ff8['opacity']>=0x0&&_0x3e2ff8[_0x586cb2(0x212)]<=0x1);}function d(_0x98b6a8){const _0x1b9060=_0x2cfa6e;return _0x98b6a8&&typeof _0x98b6a8==_0x1b9060(0x1ec)&&!Array[_0x1b9060(0x208)](_0x98b6a8)?_0x98b6a8:{};}function f(_0x5a9907){const _0x26ff84=_0x2cfa6e;let _0x43ce2c=d(_0x5a9907[_0x26ff84(0x1e1)])[_0x26ff84(0x1f9)];if(!_0x43ce2c||typeof _0x43ce2c!=_0x26ff84(0x1ec)||Array[_0x26ff84(0x208)](_0x43ce2c))return null;let _0x58d784=_0x43ce2c;return _0x58d784[_0x26ff84(0x1fb)]===0x1&&_0x58d784[_0x26ff84(0x1f4)]&&typeof _0x58d784[_0x26ff84(0x1f4)]=='object'?_0x58d784:null;}function p(_0x49aef5){const _0x5271a0=_0x2cfa6e;return _0x49aef5[_0x5271a0(0x1e5)]===_0x4e7b15['Shape']&&!!f(_0x49aef5);}_0xebe1c[_0x2cfa6e(0x211)](o);const m={'Pen':'pen','Brush':_0x2cfa6e(0x1e7),'Highlighter':'highlighter'},h={'Corner':'corner','Smooth':'smooth','Symmetric':'symmetric','Free':_0x2cfa6e(0x1e8)},g={'Anchor':_0x2cfa6e(0x204),'In':'in','Out':_0x2cfa6e(0x1fa)};var _=class extends _0x5bba3f{get[_0x2cfa6e(0x209)](){return m;}get[_0x2cfa6e(0x1f8)](){return h;}get['BoardInkHandleKind'](){return g;}};_0x5bba3f['extend'](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
1
+ const _0x525814=_0x4e45;(function(_0x408dc1,_0x160f1f){const _0x2dcb88=_0x4e45,_0x2e485d=_0x408dc1();while(!![]){try{const _0x49ba32=-parseInt(_0x2dcb88(0xd0))/0x1+-parseInt(_0x2dcb88(0xd2))/0x2+parseInt(_0x2dcb88(0xd8))/0x3+-parseInt(_0x2dcb88(0xaf))/0x4+parseInt(_0x2dcb88(0xb1))/0x5+parseInt(_0x2dcb88(0xce))/0x6*(parseInt(_0x2dcb88(0xd1))/0x7)+-parseInt(_0x2dcb88(0xb7))/0x8*(-parseInt(_0x2dcb88(0xbc))/0x9);if(_0x49ba32===_0x160f1f)break;else _0x2e485d['push'](_0x2e485d['shift']());}catch(_0x39af4f){_0x2e485d['push'](_0x2e485d['shift']());}}}(_0x21eb,0xe60aa));import{BoardElementType as _0x55b8b6}from'@univerjs-pro/boards';import{FBoard as _0x2c50cd}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x353af6}from'@univerjs-pro/ink';import{Tools as _0xd1ba4b,generateRandomId as _0x57464c}from'@univerjs/core';import{FEnum as _0x2652ab}from'@univerjs/core/facade';var o=class extends _0x2c50cd{[_0x525814(0xd5)](_0x4a95f7){const _0x50ea36=_0x525814;let _0x2e1e74=s(_0x4a95f7);return _0x2e1e74&&this['addElement'](_0x2e1e74,{'insertIndex':_0x4a95f7[_0x50ea36(0xab)]})?_0x2e1e74:null;}[_0x525814(0xcd)](){const _0x34ee35=_0x525814;return this['findElements']({'elementType':_0x55b8b6['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x34ee35(0xb0)](p);}};function _0x4e45(_0x43a7cf,_0x4de9ee){_0x43a7cf=_0x43a7cf-0xa7;const _0x21eb0c=_0x21eb();let _0x4e45f8=_0x21eb0c[_0x43a7cf];return _0x4e45f8;}function s(_0x114ec4,_0x53f49a){const _0x32a01b=_0x525814;var _0x456dc3,_0x100fb6,_0x5e5ec7;if(!l(_0x114ec4['model'])||_0x114ec4['sourceModel']!==void 0x0&&!l(_0x114ec4[_0x32a01b(0xad)])||!u(_0x114ec4[_0x32a01b(0xb4)]))return null;let _0x12eb4a=(_0x456dc3=_0x114ec4['parentId'])==null?_0x53f49a==null?void 0x0:_0x53f49a[_0x32a01b(0xbf)]:_0x456dc3,_0x2b177e=_0xd1ba4b['deepClone'](_0x114ec4[_0x32a01b(0xc5)]),_0x616cd1=_0x353af6({'model':_0x2b177e,'style':_0x114ec4[_0x32a01b(0xb4)],'tool':_0x114ec4['tool'],'sourceModel':_0x114ec4[_0x32a01b(0xad)]?_0xd1ba4b['deepClone'](_0x114ec4[_0x32a01b(0xad)]):_0x2b177e}),_0x5b5f0c=d(_0x53f49a==null?void 0x0:_0x53f49a[_0x32a01b(0xcf)]);return{'id':(_0x100fb6=(_0x5e5ec7=_0x53f49a==null?void 0x0:_0x53f49a['id'])==null?_0x114ec4['id']:_0x5e5ec7)==null?_0x57464c(0x6):_0x100fb6,'type':_0x55b8b6[_0x32a01b(0xb2)],'transform':_0x616cd1['transform'],'shapeData':_0x616cd1[_0x32a01b(0xd7)],'parentId':_0x12eb4a==null?void 0x0:_0x12eb4a,'laneId':_0x114ec4[_0x32a01b(0xc6)]===void 0x0?_0x53f49a==null?void 0x0:_0x53f49a['laneId']:_0x114ec4['laneId'],'custom':{..._0x5b5f0c,'ink':_0x616cd1['ink']}};}function c(_0x5cf138){const _0x5758ad=_0x525814;return Number['isFinite'](_0x5cf138['x'])&&Number[_0x5758ad(0xd3)](_0x5cf138['y']);}function l(_0x432d2b){const _0x468c8a=_0x525814;if(_0x432d2b[_0x468c8a(0xc3)]===_0x468c8a(0xb5)){let _0x25d769=new Set();return _0x432d2b['anchors'][_0x468c8a(0xbe)]>=(_0x432d2b[_0x468c8a(0xb8)]?0x3:0x2)&&_0x432d2b[_0x468c8a(0xc8)][_0x468c8a(0xd6)](_0x3d9579=>{const _0x42b8cf=_0x468c8a;let _0xc84869=_0x3d9579['id']['trim']()[_0x42b8cf(0xbe)]>0x0&&!_0x25d769[_0x42b8cf(0xc1)](_0x3d9579['id'])&&c(_0x3d9579)&&(!_0x3d9579['in']||c(_0x3d9579['in']))&&(!_0x3d9579[_0x42b8cf(0xac)]||c(_0x3d9579['out']));return _0x25d769['add'](_0x3d9579['id']),_0xc84869;});}return _0x432d2b[_0x468c8a(0xcc)][_0x468c8a(0xbe)]>=0x2&&_0x432d2b['points'][_0x468c8a(0xd6)](_0x4aa43c=>c(_0x4aa43c)&&Number['isFinite'](_0x4aa43c['t'])&&(_0x4aa43c[_0x468c8a(0xb9)]===void 0x0||Number[_0x468c8a(0xd3)](_0x4aa43c['pressure'])))&&Number['isFinite'](_0x432d2b[_0x468c8a(0xc7)])&&_0x432d2b[_0x468c8a(0xc7)]>0x0&&Number[_0x468c8a(0xd3)](_0x432d2b[_0x468c8a(0xc0)])&&_0x432d2b[_0x468c8a(0xc0)]>=0x0&&_0x432d2b[_0x468c8a(0xc0)]<=0x1;}function u(_0x1d4a75){const _0x4a0734=_0x525814;return _0x1d4a75===void 0x0||(_0x1d4a75['width']===void 0x0||Number['isFinite'](_0x1d4a75[_0x4a0734(0xc7)])&&_0x1d4a75['width']>0x0)&&(_0x1d4a75[_0x4a0734(0xc0)]===void 0x0||Number[_0x4a0734(0xd3)](_0x1d4a75[_0x4a0734(0xc0)])&&_0x1d4a75[_0x4a0734(0xc0)]>=0x0&&_0x1d4a75[_0x4a0734(0xc0)]<=0x1);}function d(_0x4e44be){return _0x4e44be&&typeof _0x4e44be=='object'&&!Array['isArray'](_0x4e44be)?_0x4e44be:{};}function f(_0x242149){const _0x539956=_0x525814;let _0x2bae49=d(_0x242149[_0x539956(0xcf)])[_0x539956(0xbb)];if(!_0x2bae49||typeof _0x2bae49!=_0x539956(0xb3)||Array[_0x539956(0xbd)](_0x2bae49))return null;let _0x11b8b9=_0x2bae49;return _0x11b8b9[_0x539956(0xa7)]===0x1&&_0x11b8b9[_0x539956(0xad)]&&typeof _0x11b8b9[_0x539956(0xad)]=='object'?_0x11b8b9:null;}function p(_0x11552d){const _0x301c34=_0x525814;return _0x11552d[_0x301c34(0xae)]===_0x55b8b6[_0x301c34(0xb2)]&&!!f(_0x11552d);}_0x2c50cd['extend'](o);const m={'Pen':_0x525814(0xb5),'Brush':_0x525814(0xba),'Highlighter':_0x525814(0xb6)},h={'Corner':_0x525814(0xc2),'Smooth':_0x525814(0xc9),'Symmetric':_0x525814(0xcb),'Free':_0x525814(0xc4)},g={'Anchor':_0x525814(0xa8),'In':'in','Out':_0x525814(0xac)};var _=class extends _0x2652ab{get[_0x525814(0xa9)](){return m;}get[_0x525814(0xca)](){return h;}get[_0x525814(0xaa)](){return g;}};function _0x21eb(){const _0x122626=['object','style','pen','highlighter','72OugIvA','closed','pressure','brush','ink','1902213fpqJKx','isArray','length','parentId','opacity','has','corner','kind','free','model','laneId','width','anchors','smooth','BoardInkPointType','symmetric','points','getInks','1266fKemzc','custom','961911jgZdLS','4333rYSQdR','1310118LSdpVm','isFinite','extend','insertInk','every','shapeData','1869561pFPvDD','version','anchor','BoardInkTool','BoardInkHandleKind','insertIndex','out','sourceModel','type','2909508zTnuul','filter','3152940KMdtIA','Shape'];_0x21eb=function(){return _0x122626;};return _0x21eb();}_0x2652ab[_0x525814(0xd4)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2e3b56=_0x2d27;(function(_0x4c131a,_0xc0d08c){const _0x3c99fd=_0x2d27,_0x244389=_0x4c131a();while(!![]){try{const _0x589aa8=-parseInt(_0x3c99fd(0x141))/0x1+-parseInt(_0x3c99fd(0x117))/0x2+-parseInt(_0x3c99fd(0x136))/0x3*(-parseInt(_0x3c99fd(0x14d))/0x4)+-parseInt(_0x3c99fd(0x134))/0x5*(-parseInt(_0x3c99fd(0x150))/0x6)+parseInt(_0x3c99fd(0x14a))/0x7*(parseInt(_0x3c99fd(0x14c))/0x8)+parseInt(_0x3c99fd(0x104))/0x9+-parseInt(_0x3c99fd(0xff))/0xa;if(_0x589aa8===_0xc0d08c)break;else _0x244389['push'](_0x244389['shift']());}catch(_0x4669aa){_0x244389['push'](_0x244389['shift']());}}}(_0x247f,0xd5749));import{ShapeFillEnum as _0x49ffcc,ShapeLineCapEnum as _0x159578,ShapeLineJoinEnum as _0x424331,ShapeLineTypeEnum as _0x56f9e7,ShapeTypeEnum as _0x497e0c}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x28261b}from'@univerjs-pro/license';import{CommandType as _0x1a46d0,DependentOn as _0x4e5fed,ICommandService as _0xb74673,IConfigService as _0xec36e4,Inject as _0x36e470,Injector as _0x80316c,Plugin as _0x5b9715,UniverInstanceType as _0x2c0ee9,createIdentifier as _0x1b5b97,merge as _0x48ad06,toDisposable as _0x1d67f1}from'@univerjs/core';const g=0.0001;function _(_0x93d90e){return{'x':_0x93d90e['x'],'y':_0x93d90e['y']};}function v(_0x2f80e2){const _0x48f252=_0x2d27;return{..._0x2f80e2,'in':_0x2f80e2['in']?_(_0x2f80e2['in']):void 0x0,'out':_0x2f80e2[_0x48f252(0x12d)]?_(_0x2f80e2[_0x48f252(0x12d)]):void 0x0};}function y(_0x3dd440){const _0x4e56b8=_0x2d27;return{'kind':_0x4e56b8(0x135),'closed':_0x3dd440[_0x4e56b8(0xf3)],'anchors':_0x3dd440[_0x4e56b8(0xf6)][_0x4e56b8(0x118)](v)};}function b(_0x7d5dc5,_0x15bbd2,_0x5b3e5b){return{'x':_0x7d5dc5['x']+(_0x15bbd2['x']-_0x7d5dc5['x'])*_0x5b3e5b,'y':_0x7d5dc5['y']+(_0x15bbd2['y']-_0x7d5dc5['y'])*_0x5b3e5b};}function x(_0x5e0605,_0xba7a24){const _0x3a05da=_0x2d27;return Math[_0x3a05da(0x13f)](_0x5e0605['x']-_0xba7a24['x'],_0x5e0605['y']-_0xba7a24['y']);}function S(_0x3e5676){let _0x2c0eab=Math['hypot'](_0x3e5676['x'],_0x3e5676['y']);return _0x2c0eab<g?{'x':0x1,'y':0x0}:{'x':_0x3e5676['x']/_0x2c0eab,'y':_0x3e5676['y']/_0x2c0eab};}function C(_0x562caf,_0x226fd2,_0x1c68a7=x(_0x562caf,_0x226fd2)){let _0x5f39ea=S({'x':_0x562caf['x']-_0x226fd2['x'],'y':_0x562caf['y']-_0x226fd2['y']});return{'x':_0x562caf['x']+_0x5f39ea['x']*_0x1c68a7,'y':_0x562caf['y']+_0x5f39ea['y']*_0x1c68a7};}function w(_0x12e1a1,_0xc9f4eb){const _0x29efe8=_0x2d27;let {anchors:_0x32538a}=_0x12e1a1;return _0x32538a[_0x29efe8(0xfd)]<0x2||_0xc9f4eb<0x0?null:_0xc9f4eb<_0x32538a[_0x29efe8(0xfd)]-0x1?{'startIndex':_0xc9f4eb,'endIndex':_0xc9f4eb+0x1,'start':_0x32538a[_0xc9f4eb],'end':_0x32538a[_0xc9f4eb+0x1]}:_0x12e1a1[_0x29efe8(0xf3)]&&_0xc9f4eb===_0x32538a[_0x29efe8(0xfd)]-0x1?{'startIndex':_0x32538a[_0x29efe8(0xfd)]-0x1,'endIndex':0x0,'start':_0x32538a[_0x32538a[_0x29efe8(0xfd)]-0x1],'end':_0x32538a[0x0]}:null;}function T(_0x3af419,_0x5a2f28){const _0x28472f=_0x2d27;var _0xe45d6d,_0x3c9187;let _0x312b4a=w(_0x3af419,_0x5a2f28);return _0x312b4a?[_0x312b4a['start'],(_0xe45d6d=_0x312b4a[_0x28472f(0x13d)]['out'])==null?_0x312b4a[_0x28472f(0x13d)]:_0xe45d6d,(_0x3c9187=_0x312b4a[_0x28472f(0x12a)]['in'])==null?_0x312b4a['end']:_0x3c9187,_0x312b4a[_0x28472f(0x12a)]]:null;}function te(_0x23930b,_0x56f055){var _0x93976d;return _0x56f055==='anchor'?_0x23930b:(_0x93976d=_0x23930b[_0x56f055])==null?null:_0x93976d;}function E(_0x309a8f,_0x328de8,_0x41bfca){const _0x196086=_0x2d27;return _0x41bfca===_0x196086(0x14b)||_0x309a8f['closed']?!0x0:_0x41bfca==='in'?_0x328de8>0x0:_0x328de8<_0x309a8f[_0x196086(0xf6)][_0x196086(0xfd)]-0x1;}function D(_0x3da967,_0x59837c){let [_0x3062f1,_0x41b561,_0x5912d9,_0x2c96f2]=_0x3da967,_0x281ee8=b(_0x3062f1,_0x41b561,_0x59837c),_0x3a35ca=b(_0x41b561,_0x5912d9,_0x59837c),_0x40e013=b(_0x5912d9,_0x2c96f2,_0x59837c);return b(b(_0x281ee8,_0x3a35ca,_0x59837c),b(_0x3a35ca,_0x40e013,_0x59837c),_0x59837c);}function ne(_0x4e717d,_0x4be864){let [_0x5c90b8,_0x1b56b7,_0x5d0e53,_0x133020]=_0x4e717d,_0x1e418e=b(_0x5c90b8,_0x1b56b7,_0x4be864),_0x105a3d=b(_0x1b56b7,_0x5d0e53,_0x4be864),_0x17a6f6=b(_0x5d0e53,_0x133020,_0x4be864),_0x50d6f0=b(_0x1e418e,_0x105a3d,_0x4be864),_0x25b650=b(_0x105a3d,_0x17a6f6,_0x4be864),_0x4324a4=b(_0x50d6f0,_0x25b650,_0x4be864);return{'left':[_0x5c90b8,_0x1e418e,_0x50d6f0,_0x4324a4],'right':[_0x4324a4,_0x25b650,_0x17a6f6,_0x133020]};}function O(_0x568316,_0x8fe576,_0x24e20c){const _0x2a6fb9=_0x2d27;let _0x1217c4=_0x24e20c['x']-_0x8fe576['x'],_0x50afb7=_0x24e20c['y']-_0x8fe576['y'],_0x3d2ba6=_0x1217c4*_0x1217c4+_0x50afb7*_0x50afb7,_0x5a48f2=_0x3d2ba6<=g?0x0:Math[_0x2a6fb9(0x12c)](0x0,Math[_0x2a6fb9(0x101)](0x1,((_0x568316['x']-_0x8fe576['x'])*_0x1217c4+(_0x568316['y']-_0x8fe576['y'])*_0x50afb7)/_0x3d2ba6)),_0x281122={'x':_0x8fe576['x']+_0x1217c4*_0x5a48f2,'y':_0x8fe576['y']+_0x50afb7*_0x5a48f2};return{'point':_0x281122,'ratio':_0x5a48f2,'distance':x(_0x568316,_0x281122)};}function re(_0x8929f2,_0x19c3a7,_0x3f059c){const _0xf6fdb3=_0x2d27;return O(_0x8929f2,_0x19c3a7,_0x3f059c)[_0xf6fdb3(0x124)]**0x2;}function k(_0x44a6b9,_0x1f14a8){const _0x21b679=_0x2d27;if(_0x44a6b9['length']<=0x2)return _0x44a6b9[_0x21b679(0x118)](_);let _0x2b772b=0x0,_0x623dbd=0x0,_0x17c922=_0x44a6b9[0x0],_0x13b4c0=_0x44a6b9[_0x44a6b9[_0x21b679(0xfd)]-0x1],_0x4f0163=_0x1f14a8*_0x1f14a8;for(let _0x49e9fe=0x1;_0x49e9fe<_0x44a6b9[_0x21b679(0xfd)]-0x1;_0x49e9fe++){let _0x65de19=re(_0x44a6b9[_0x49e9fe],_0x17c922,_0x13b4c0);_0x65de19>_0x2b772b&&(_0x2b772b=_0x65de19,_0x623dbd=_0x49e9fe);}if(_0x2b772b<=_0x4f0163)return[_(_0x17c922),_(_0x13b4c0)];let _0x229531=k(_0x44a6b9[_0x21b679(0x145)](0x0,_0x623dbd+0x1),_0x1f14a8),_0x535a3c=k(_0x44a6b9[_0x21b679(0x145)](_0x623dbd),_0x1f14a8);return[..._0x229531[_0x21b679(0x145)](0x0,-0x1),..._0x535a3c];}function ie(_0x3a3897,_0x49285e){var _0xd3c9f5;let _0x3966eb=_0x3a3897[_0x49285e],_0x316a82=_0x3a3897[_0x49285e+0x1],_0x3fd794=(_0xd3c9f5=_0x3a3897[_0x49285e-0x1])==null?_0x3966eb:_0xd3c9f5;return{'x':_0x3966eb['x']+(_0x316a82['x']-_0x3fd794['x'])/0x6,'y':_0x3966eb['y']+(_0x316a82['y']-_0x3fd794['y'])/0x6};}function _0x247f(){const _0x26e9bc=['@univerjs-pro/ink','prototype','length','packageName','7567630prCMQm','abs','min','push','version','10429299ZjHrLH','registerCommand','find','getOwnPropertyDescriptor','toPrimitive','endIndex','#f54a45','symmetric','UNIVER_UNKNOWN','object','norm','width','ink.operation.start','kind','function','splice','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ink-centerline-','constructor','541956zKekGH','map','UNIVER_INK_PLUGIN','free','fillColor','call','right','get','string','left','ink.host-adapter.service','onStarting','pointType','distance','createCustomShape','findIndex','1.0.0-alpha.4','beginInkMode','disposeWithMe','end','sqrt','max','out','add','startIndex','Round','height','_injector','filter','95XEbvsi','pen','797925RjAFqT','_config','point','opacity','segmentIndex','_adapters','top','start','round','hypot','createId','1642436CuQJDo','join','points','smooth','slice','iterator','OPERATION','_configService','defineProperty','18536IyuewX','anchor','4408WoluzB','12rgDCWn','symbol','decorate','40644afCmFH','__ink-preview-anchor__','closed','type','color','anchors','ratio','forEach','corner','SolidFill'];_0x247f=function(){return _0x26e9bc;};return _0x247f();}function A(_0x29dfd6,_0x4ad533){var _0x1d655e;let _0x2db7b9=_0x29dfd6[_0x4ad533],_0xb0196e=_0x29dfd6[_0x4ad533-0x1],_0x48cf2c=(_0x1d655e=_0x29dfd6[_0x4ad533+0x1])==null?_0x2db7b9:_0x1d655e;return{'x':_0x2db7b9['x']-(_0x48cf2c['x']-_0xb0196e['x'])/0x6,'y':_0x2db7b9['y']-(_0x48cf2c['y']-_0xb0196e['y'])/0x6};}function _0x2d27(_0x46a514,_0x325767){_0x46a514=_0x46a514-0xf2;const _0x247f78=_0x247f();let _0x2d2719=_0x247f78[_0x46a514];return _0x2d2719;}function j(_0x312d14,_0x3bfc1d){const _0x1bad7c=_0x2d27;var _0x243b5a,_0x4d1069;let _0x481987=_0x312d14[_0x1bad7c(0xf6)][_0x3bfc1d],_0x2745e6=(_0x243b5a=_0x312d14[_0x1bad7c(0xf6)][_0x3bfc1d-0x1])==null?_0x312d14[_0x1bad7c(0xf3)]?_0x312d14['anchors'][_0x312d14['anchors']['length']-0x1]:null:_0x243b5a,_0x2d48eb=(_0x4d1069=_0x312d14[_0x1bad7c(0xf6)][_0x3bfc1d+0x1])==null?_0x312d14['closed']?_0x312d14[_0x1bad7c(0xf6)][0x0]:null:_0x4d1069,_0x4b010d=_0x2745e6&&_0x2d48eb?S({'x':_0x2d48eb['x']-_0x2745e6['x'],'y':_0x2d48eb['y']-_0x2745e6['y']}):_0x2d48eb?S({'x':_0x2d48eb['x']-_0x481987['x'],'y':_0x2d48eb['y']-_0x481987['y']}):_0x2745e6?S({'x':_0x481987['x']-_0x2745e6['x'],'y':_0x481987['y']-_0x2745e6['y']}):{'x':0x1,'y':0x0},_0x527a9b=_0x2745e6&&_0x2d48eb?Math[_0x1bad7c(0x12c)](0x32,x(_0x2745e6,_0x2d48eb)/0x4):0x32;return{'in':{'x':_0x481987['x']-_0x4b010d['x']*_0x527a9b,'y':_0x481987['y']-_0x4b010d['y']*_0x527a9b},'out':{'x':_0x481987['x']+_0x4b010d['x']*_0x527a9b,'y':_0x481987['y']+_0x4b010d['y']*_0x527a9b}};}function M(_0x4b61f5,_0x47e9ac){const _0x57a79f=_0x2d27;let _0x30fa9f=_0x4b61f5[_0x47e9ac],_0xf1448a=_0x47e9ac==='in'?_0x57a79f(0x12d):'in',_0xf05aad=_0x4b61f5[_0xf1448a];if(_0x30fa9f){if(_0x4b61f5[_0x57a79f(0x123)]===_0x57a79f(0x10b)){_0x4b61f5[_0xf1448a]=C(_0x4b61f5,_0x30fa9f);return;}_0x4b61f5[_0x57a79f(0x123)]===_0x57a79f(0x144)&&(_0x4b61f5[_0xf1448a]=C(_0x4b61f5,_0x30fa9f,_0xf05aad?x(_0x4b61f5,_0xf05aad):x(_0x4b61f5,_0x30fa9f)));}}function ae(_0x45c0c5,_0x5b49bd){const _0x382031=_0x2d27;let _0x5207be=y(_0x45c0c5);return!_0x5b49bd||_0x5207be[_0x382031(0xf3)]||_0x5207be[_0x382031(0xf6)]['length']===0x0||_0x5207be['anchors'][_0x382031(0x102)]({'id':_0x382031(0xf2),'x':_0x5b49bd['x'],'y':_0x5b49bd['y'],'pointType':_0x382031(0xf9)}),_0x5207be;}function oe(_0x535ee3,_0x1039f0={}){const _0x15eef8=_0x2d27;var _0x553c01,_0x4656e4;let _0x28b242=Math['max'](0x0,(_0x553c01=_0x1039f0['tolerance'])==null?Math[_0x15eef8(0x12c)](0x4,_0x535ee3[_0x15eef8(0x10f)]*0.35):_0x553c01),_0x3c3ed4=(_0x4656e4=_0x1039f0[_0x15eef8(0x140)])==null?_0x36f06b=>_0x15eef8(0x115)+_0x36f06b:_0x4656e4,_0x841f46=k(_0x535ee3['points'],_0x28b242),_0x627a69=_0x841f46[_0x15eef8(0x118)]((_0x27d562,_0x17cad3)=>({'id':_0x3c3ed4(_0x17cad3),'x':_0x27d562['x'],'y':_0x27d562['y'],'pointType':_0x15eef8(0x11a)}));for(let _0x218981=0x0;_0x218981<_0x627a69[_0x15eef8(0xfd)]-0x1;_0x218981++)_0x627a69[_0x218981]['out']=ie(_0x841f46,_0x218981),_0x627a69[_0x218981+0x1]['in']=A(_0x841f46,_0x218981+0x1);return{'kind':_0x15eef8(0x135),'closed':!0x1,'anchors':_0x627a69};}function se(_0xc5e94,_0x328f48,_0x2ed2f1){const _0x3544be=_0x2d27;let _0x47c61b=null,_0x36d925=[_0x3544be(0x14b),'in',_0x3544be(0x12d)];return _0xc5e94['anchors'][_0x3544be(0xf8)]((_0x54050a,_0x4d5eba)=>{const _0x445449=_0x3544be;_0x36d925[_0x445449(0xf8)](_0x45b0a7=>{const _0x1b5d52=_0x445449;if(!E(_0xc5e94,_0x4d5eba,_0x45b0a7))return;let _0x39e85a=te(_0x54050a,_0x45b0a7);if(!_0x39e85a)return;let _0x59b90a=x(_0x328f48,_0x39e85a);_0x59b90a>_0x2ed2f1||_0x47c61b&&_0x59b90a>=_0x47c61b[_0x1b5d52(0x124)]||(_0x47c61b={'handle':{'kind':_0x45b0a7,'anchorId':_0x54050a['id']},'point':_(_0x39e85a),'distance':_0x59b90a});});}),_0x47c61b;}function ce(_0x2aa1a6,_0xa24ba6,_0x50bd04){const _0x408f8b=_0x2d27;let _0x52aa9d=null,_0x1d8d3e=_0x2aa1a6[_0x408f8b(0xf3)]?_0x2aa1a6['anchors'][_0x408f8b(0xfd)]:Math['max'](0x0,_0x2aa1a6[_0x408f8b(0xf6)][_0x408f8b(0xfd)]-0x1);for(let _0x9e90ec=0x0;_0x9e90ec<_0x1d8d3e;_0x9e90ec++){let _0x15eef5=T(_0x2aa1a6,_0x9e90ec);if(!_0x15eef5)continue;let _0x3f7911=D(_0x15eef5,0x0);for(let _0x212ca8=0x1;_0x212ca8<=0x20;_0x212ca8++){let _0xd40039=D(_0x15eef5,_0x212ca8/0x20),_0x8ab98c=O(_0xa24ba6,_0x3f7911,_0xd40039),_0x1f0163=(_0x212ca8-0x1+_0x8ab98c[_0x408f8b(0xf7)])/0x20;(!_0x52aa9d||_0x8ab98c[_0x408f8b(0x124)]<_0x52aa9d[_0x408f8b(0x124)])&&(_0x52aa9d={'segmentIndex':_0x9e90ec,'t':_0x1f0163,'point':_0x8ab98c[_0x408f8b(0x138)],'distance':_0x8ab98c[_0x408f8b(0x124)]}),_0x3f7911=_0xd40039;}}return _0x52aa9d&&_0x52aa9d[_0x408f8b(0x124)]<=_0x50bd04?_0x52aa9d:null;}function le(_0x24fc32,_0x232477,_0x4366c5){const _0x59f0ac=_0x2d27;let _0x3e97e3=y(_0x24fc32),_0x3ceb53=w(_0x3e97e3,_0x232477[_0x59f0ac(0x13a)]),_0xafa24a=T(_0x3e97e3,_0x232477[_0x59f0ac(0x13a)]);if(!_0x3ceb53||!_0xafa24a)return _0x3e97e3;let _0x377481=ne(_0xafa24a,Math[_0x59f0ac(0x12c)](0x0,Math[_0x59f0ac(0x101)](0x1,_0x232477['t']))),_0x1c360d={'id':_0x4366c5(),'x':_0x377481[_0x59f0ac(0x120)][0x3]['x'],'y':_0x377481[_0x59f0ac(0x120)][0x3]['y'],'in':_(_0x377481[_0x59f0ac(0x120)][0x2]),'out':_(_0x377481['right'][0x1]),'pointType':_0x59f0ac(0x11a)};return _0x3e97e3['anchors'][_0x3ceb53[_0x59f0ac(0x12f)]][_0x59f0ac(0x12d)]=_(_0x377481[_0x59f0ac(0x120)][0x1]),_0x3e97e3['anchors'][_0x3ceb53[_0x59f0ac(0x109)]]['in']=_(_0x377481[_0x59f0ac(0x11d)][0x2]),_0x3e97e3['anchors']['splice'](_0x3ceb53['startIndex']+0x1,0x0,_0x1c360d),_0x3e97e3;}function ue(_0x1d304b,_0x2dcbdb){const _0x5e0eab=_0x2d27;let _0x28febf=y(_0x1d304b);return _0x28febf[_0x5e0eab(0xf6)]=_0x28febf[_0x5e0eab(0xf6)][_0x5e0eab(0x133)](_0x5063e0=>_0x5063e0['id']!==_0x2dcbdb),_0x28febf[_0x5e0eab(0xf3)]&&_0x28febf[_0x5e0eab(0xf6)]['length']<0x3&&(_0x28febf[_0x5e0eab(0xf3)]=!0x1),_0x28febf;}function N(_0x1b48c3,_0x58d544,_0x3da1f7){const _0x8c2eec=_0x2d27;let _0x9f07e2=y(_0x1b48c3),_0x32a433=_0x9f07e2['anchors'][_0x8c2eec(0x126)](_0x1886ea=>_0x1886ea['id']===_0x58d544),_0x332257=_0x9f07e2[_0x8c2eec(0xf6)][_0x32a433];if(!_0x332257)return _0x9f07e2;if(_0x332257['pointType']=_0x3da1f7,_0x3da1f7===_0x8c2eec(0xf9))return delete _0x332257['in'],delete _0x332257['out'],_0x9f07e2;let _0x3364a2=j(_0x9f07e2,_0x32a433);if(_0x332257['in']=_0x332257['in']?_(_0x332257['in']):_0x3364a2['in'],_0x332257[_0x8c2eec(0x12d)]=_0x332257[_0x8c2eec(0x12d)]?_(_0x332257['out']):_0x3364a2[_0x8c2eec(0x12d)],_0x3da1f7===_0x8c2eec(0x10b)){let _0x1678a1=Math['max'](x(_0x332257,_0x332257['in']),x(_0x332257,_0x332257[_0x8c2eec(0x12d)]),0x32),_0x5c06a6=S({'x':_0x332257[_0x8c2eec(0x12d)]['x']-_0x332257['x'],'y':_0x332257[_0x8c2eec(0x12d)]['y']-_0x332257['y']});_0x332257[_0x8c2eec(0x12d)]={'x':_0x332257['x']+_0x5c06a6['x']*_0x1678a1,'y':_0x332257['y']+_0x5c06a6['y']*_0x1678a1},_0x332257['in']={'x':_0x332257['x']-_0x5c06a6['x']*_0x1678a1,'y':_0x332257['y']-_0x5c06a6['y']*_0x1678a1};}else _0x3da1f7==='smooth'&&M(_0x332257,_0x8c2eec(0x12d));return _0x9f07e2;}function P(_0x4646d0,_0x580530){const _0x5d7d61=_0x2d27;var _0x50d22c;let _0x26240d=_0x4646d0[_0x5d7d61(0xf6)][_0x5d7d61(0x106)](_0xa8876f=>_0xa8876f['id']===_0x580530),_0x4f02cd=(_0x50d22c=_0x26240d==null?void 0x0:_0x26240d['pointType'])==null?'corner':_0x50d22c;return N(_0x4646d0,_0x580530,_0x4f02cd===_0x5d7d61(0xf9)?'smooth':_0x4f02cd===_0x5d7d61(0x144)?_0x5d7d61(0x10b):_0x4f02cd===_0x5d7d61(0x10b)?'free':_0x5d7d61(0xf9));}function F(_0x40c323,_0x29c665,_0x209330){const _0x374045=_0x2d27;let _0x1b8478=y(_0x40c323),_0xea8a60=_0x1b8478[_0x374045(0xf6)][_0x374045(0x106)](_0x49529d=>_0x49529d['id']===_0x29c665['anchorId']);if(!_0xea8a60)return _0x1b8478;if(_0x29c665[_0x374045(0x111)]===_0x374045(0x14b)){let _0x462301={'x':_0x209330['x']-_0xea8a60['x'],'y':_0x209330['y']-_0xea8a60['y']};return _0xea8a60['x']=_0x209330['x'],_0xea8a60['y']=_0x209330['y'],_0xea8a60['in']&&(_0xea8a60['in']={'x':_0xea8a60['in']['x']+_0x462301['x'],'y':_0xea8a60['in']['y']+_0x462301['y']}),_0xea8a60[_0x374045(0x12d)]&&(_0xea8a60[_0x374045(0x12d)]={'x':_0xea8a60[_0x374045(0x12d)]['x']+_0x462301['x'],'y':_0xea8a60[_0x374045(0x12d)]['y']+_0x462301['y']}),_0x1b8478;}return _0xea8a60[_0x29c665['kind']]=_(_0x209330),_0xea8a60['pointType']===_0x374045(0xf9)&&(_0xea8a60[_0x374045(0x123)]=_0x374045(0x11a)),M(_0xea8a60,_0x29c665['kind']),_0x1b8478;}const I=1e-9;function L(_0x117846){let _0x125e9d=Math['round'](_0x117846*0x2710)/0x2710;return Object['is'](_0x125e9d,-0x0)?'0':String(_0x125e9d);}function R(_0x3d9356){return L(_0x3d9356['x'])+'\x20'+L(_0x3d9356['y']);}function z(_0x436733,_0x41e7e1){return{'x':_0x436733['x']-_0x41e7e1['x'],'y':_0x436733['y']-_0x41e7e1['y']};}function B(_0x4f1811,_0x3e9e16,_0x5631bf,_0x27f88b,_0x14fa00){let _0x48045a=0x1-_0x14fa00;return{'x':_0x48045a*_0x48045a*_0x48045a*_0x4f1811['x']+0x3*_0x48045a*_0x48045a*_0x14fa00*_0x3e9e16['x']+0x3*_0x48045a*_0x14fa00*_0x14fa00*_0x5631bf['x']+_0x14fa00*_0x14fa00*_0x14fa00*_0x27f88b['x'],'y':_0x48045a*_0x48045a*_0x48045a*_0x4f1811['y']+0x3*_0x48045a*_0x48045a*_0x14fa00*_0x3e9e16['y']+0x3*_0x48045a*_0x14fa00*_0x14fa00*_0x5631bf['y']+_0x14fa00*_0x14fa00*_0x14fa00*_0x27f88b['y']};}function V(_0xc4a6bb,_0x13cdbd,_0x3b91ea,_0x1e62d0){const _0x235fb2=_0x2d27;let _0x59a549=-_0xc4a6bb+0x3*_0x13cdbd-0x3*_0x3b91ea+_0x1e62d0,_0x28f729=0x3*_0xc4a6bb-0x6*_0x13cdbd+0x3*_0x3b91ea,_0x98b950=-0x3*_0xc4a6bb+0x3*_0x13cdbd,_0x39248c=[];if(Math[_0x235fb2(0x100)](_0x59a549)<I){if(Math[_0x235fb2(0x100)](_0x28f729)<I)return _0x39248c;let _0x27ec85=-_0x98b950/(0x2*_0x28f729);return _0x27ec85>0x0&&_0x27ec85<0x1&&_0x39248c[_0x235fb2(0x102)](_0x27ec85),_0x39248c;}let _0xcad79a=_0x28f729*_0x28f729-0x3*_0x59a549*_0x98b950;if(_0xcad79a<0x0)return _0x39248c;let _0xca5800=Math[_0x235fb2(0x12b)](Math[_0x235fb2(0x12c)](0x0,_0xcad79a)),_0x40d2b9=(-_0x28f729+_0xca5800)/(0x3*_0x59a549),_0x595e36=(-_0x28f729-_0xca5800)/(0x3*_0x59a549);return _0x40d2b9>0x0&&_0x40d2b9<0x1&&_0x39248c['push'](_0x40d2b9),_0x595e36>0x0&&_0x595e36<0x1&&Math[_0x235fb2(0x100)](_0x595e36-_0x40d2b9)>I&&_0x39248c[_0x235fb2(0x102)](_0x595e36),_0x39248c;}function H(_0x4910e0,_0x44fd6b,_0x19f924,_0x856b9e,_0x26afec){const _0x4220e6=_0x2d27;_0x4910e0[_0x4220e6(0x102)](_0x44fd6b,_0x26afec),new Set([...V(_0x44fd6b['x'],_0x19f924['x'],_0x856b9e['x'],_0x26afec['x']),...V(_0x44fd6b['y'],_0x19f924['y'],_0x856b9e['y'],_0x26afec['y'])])['forEach'](_0x297f6a=>{const _0x402b5d=_0x4220e6;_0x4910e0[_0x402b5d(0x102)](B(_0x44fd6b,_0x19f924,_0x856b9e,_0x26afec,_0x297f6a));});}function U(_0x9e5b31){const _0x228a31=_0x2d27;let _0x23ab92=_0x9e5b31['anchors'];if(_0x23ab92['length']<=0x1)return _0x23ab92;let _0x24c613=[];for(let _0xe9d1cc=0x1;_0xe9d1cc<_0x23ab92[_0x228a31(0xfd)];_0xe9d1cc++){var _0x249320,_0x3ebdc5;let _0x5416e6=_0x23ab92[_0xe9d1cc-0x1],_0x484ee3=_0x23ab92[_0xe9d1cc];H(_0x24c613,_0x5416e6,(_0x249320=_0x5416e6['out'])==null?_0x5416e6:_0x249320,(_0x3ebdc5=_0x484ee3['in'])==null?_0x484ee3:_0x3ebdc5,_0x484ee3);}if(_0x9e5b31[_0x228a31(0xf3)]&&_0x23ab92[_0x228a31(0xfd)]>0x1){var _0xa48706,_0x85e96a;let _0x25b267=_0x23ab92[_0x23ab92[_0x228a31(0xfd)]-0x1],_0x2ca612=_0x23ab92[0x0];H(_0x24c613,_0x25b267,(_0xa48706=_0x25b267[_0x228a31(0x12d)])==null?_0x25b267:_0xa48706,(_0x85e96a=_0x2ca612['in'])==null?_0x2ca612:_0x85e96a,_0x2ca612);}return _0x24c613;}function de(_0x58a96a){const _0x30b7c0=_0x2d27;let _0x5d8af7=_0x58a96a[_0x30b7c0(0x143)];if(_0x5d8af7[_0x30b7c0(0xfd)]<=0x1)return _0x5d8af7;let _0x6e3779=[];for(let _0x1677b4=0x0;_0x1677b4<_0x5d8af7[_0x30b7c0(0xfd)]-0x1;_0x1677b4++){var _0x7a1805,_0x26e9e1;let _0x3c74ec=_0x5d8af7[_0x1677b4],_0xa88980=_0x5d8af7[_0x1677b4+0x1],_0x577e7c=(_0x7a1805=_0x5d8af7[_0x1677b4-0x1])==null?_0x3c74ec:_0x7a1805,_0x1a9fa3=(_0x26e9e1=_0x5d8af7[_0x1677b4+0x2])==null?_0xa88980:_0x26e9e1;H(_0x6e3779,_0x3c74ec,{'x':_0x3c74ec['x']+(_0xa88980['x']-_0x577e7c['x'])/0x6,'y':_0x3c74ec['y']+(_0xa88980['y']-_0x577e7c['y'])/0x6},{'x':_0xa88980['x']-(_0x1a9fa3['x']-_0x3c74ec['x'])/0x6,'y':_0xa88980['y']-(_0x1a9fa3['y']-_0x3c74ec['y'])/0x6},_0xa88980);}return _0x6e3779;}function fe(_0x33e4f9){const _0x478b36=_0x2d27;return _0x33e4f9['kind']===_0x478b36(0x135)?U(_0x33e4f9):de(_0x33e4f9);}function W(_0x5d90ce){const _0x106ceb=_0x2d27;let _0x3e98c4=Math[_0x106ceb(0x13e)](_0x5d90ce*0x2710)/0x2710;return Object['is'](_0x3e98c4,-0x0)?0x0:_0x3e98c4;}function G(_0x24141b){const _0x15b0eb=_0x2d27;let _0x1ade8a=fe(_0x24141b);if(_0x1ade8a[_0x15b0eb(0xfd)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x45ca80=Math['min'](..._0x1ade8a[_0x15b0eb(0x118)](_0x1b7d25=>_0x1b7d25['x'])),_0x46a414=Math[_0x15b0eb(0x101)](..._0x1ade8a['map'](_0x705e05=>_0x705e05['y'])),_0x34d7f8=Math[_0x15b0eb(0x12c)](..._0x1ade8a[_0x15b0eb(0x118)](_0x82c095=>_0x82c095['x'])),_0x1f3f88=Math[_0x15b0eb(0x12c)](..._0x1ade8a[_0x15b0eb(0x118)](_0x535faa=>_0x535faa['y']));return{'left':W(_0x45ca80),'top':W(_0x46a414),'width':W(Math[_0x15b0eb(0x12c)](0x1,_0x34d7f8-_0x45ca80)),'height':W(Math[_0x15b0eb(0x12c)](0x1,_0x1f3f88-_0x46a414))};}function pe(_0xa8d8f4,_0x2b0cd9){const _0x4e5175=_0x2d27;let _0x2cfd00=_0xa8d8f4[_0x4e5175(0xf6)];if(_0x2cfd00[_0x4e5175(0xfd)]===0x0)return'';let _0x11b554=['M\x20'+R(z(_0x2cfd00[0x0],_0x2b0cd9))];for(let _0x503007=0x1;_0x503007<_0x2cfd00[_0x4e5175(0xfd)];_0x503007++){var _0x3b3e90,_0x35552b;let _0x2e6325=_0x2cfd00[_0x503007-0x1],_0x33aae5=_0x2cfd00[_0x503007],_0xe60940=(_0x3b3e90=_0x2e6325[_0x4e5175(0x12d)])==null?_0x2e6325:_0x3b3e90,_0x4d4dc7=(_0x35552b=_0x33aae5['in'])==null?_0x33aae5:_0x35552b;_0x11b554[_0x4e5175(0x102)]('C\x20'+R(z(_0xe60940,_0x2b0cd9))+'\x20'+R(z(_0x4d4dc7,_0x2b0cd9))+'\x20'+R(z(_0x33aae5,_0x2b0cd9)));}if(_0xa8d8f4[_0x4e5175(0xf3)]&&_0x2cfd00[_0x4e5175(0xfd)]>0x1){var _0x1c7e8c,_0x8ac50b;let _0x4e085b=_0x2cfd00[_0x2cfd00[_0x4e5175(0xfd)]-0x1],_0x4e8889=_0x2cfd00[0x0],_0x37249d=(_0x1c7e8c=_0x4e085b[_0x4e5175(0x12d)])==null?_0x4e085b:_0x1c7e8c,_0x4f6674=(_0x8ac50b=_0x4e8889['in'])==null?_0x4e8889:_0x8ac50b;_0x11b554[_0x4e5175(0x102)]('C\x20'+R(z(_0x37249d,_0x2b0cd9))+'\x20'+R(z(_0x4f6674,_0x2b0cd9))+'\x20'+R(z(_0x4e8889,_0x2b0cd9))),_0x11b554['push']('Z');}return _0x11b554[_0x4e5175(0x142)]('\x20');}function me(_0x1cc52a,_0x4a4d69){const _0x347c54=_0x2d27;let _0x30c287=_0x1cc52a[_0x347c54(0x143)][_0x347c54(0x118)](_0x54d188=>z(_0x54d188,_0x4a4d69));if(_0x30c287['length']===0x0)return'';if(_0x30c287[_0x347c54(0xfd)]===0x1)return'M\x20'+R(_0x30c287[0x0]);let _0x1b7e5e=['M\x20'+R(_0x30c287[0x0])];for(let _0x17ca42=0x0;_0x17ca42<_0x30c287[_0x347c54(0xfd)]-0x1;_0x17ca42++){var _0x121d5b,_0x14a5fe;let _0x7749b8=_0x30c287[_0x17ca42],_0x56d6d2=_0x30c287[_0x17ca42+0x1],_0x305900=(_0x121d5b=_0x30c287[_0x17ca42-0x1])==null?_0x7749b8:_0x121d5b,_0x3bc6c5=(_0x14a5fe=_0x30c287[_0x17ca42+0x2])==null?_0x56d6d2:_0x14a5fe,_0x349f2f={'x':_0x7749b8['x']+(_0x56d6d2['x']-_0x305900['x'])/0x6,'y':_0x7749b8['y']+(_0x56d6d2['y']-_0x305900['y'])/0x6},_0x747410={'x':_0x56d6d2['x']-(_0x3bc6c5['x']-_0x7749b8['x'])/0x6,'y':_0x56d6d2['y']-(_0x3bc6c5['y']-_0x7749b8['y'])/0x6};_0x1b7e5e['push']('C\x20'+R(_0x349f2f)+'\x20'+R(_0x747410)+'\x20'+R(_0x56d6d2));}return _0x1b7e5e[_0x347c54(0x142)]('\x20');}function he(_0x533e88,_0xce93b7){const _0x1cc5da=_0x2d27;return _0x533e88[_0x1cc5da(0x111)]==='pen'?pe(_0x533e88,_0xce93b7):me(_0x533e88,_0xce93b7);}function ge(_0x23ed3d,_0x58921a){const _0x1d6f02=_0x2d27;return _0x58921a!=null&&_0x58921a[_0x1d6f02(0xf5)]?_0x58921a['color']:_0x23ed3d[_0x1d6f02(0x111)]===_0x1d6f02(0x135)?_0x1d6f02(0x10a):_0x23ed3d[_0x1d6f02(0xf5)];}function _e(_0x539814,_0x365c2d){const _0x599da3=_0x2d27;return(_0x365c2d==null?void 0x0:_0x365c2d[_0x599da3(0x10f)])===void 0x0?_0x539814[_0x599da3(0x111)]===_0x599da3(0x135)?0x2:_0x539814[_0x599da3(0x10f)]:_0x365c2d[_0x599da3(0x10f)];}function ve(_0xb5c25d,_0x30f7d6){const _0x3524ae=_0x2d27;return(_0x30f7d6==null?void 0x0:_0x30f7d6[_0x3524ae(0x139)])===void 0x0?_0xb5c25d[_0x3524ae(0x111)]==='pen'?void 0x0:_0xb5c25d[_0x3524ae(0x139)]:_0x30f7d6[_0x3524ae(0x139)];}function ye(_0x5702f1,_0x2e8105){const _0x2225d7=_0x2d27;let _0x3eb7bb=G(_0x5702f1),_0x17e9a4=he(_0x5702f1,{'x':_0x3eb7bb[_0x2225d7(0x120)],'y':_0x3eb7bb[_0x2225d7(0x13c)]}),_0x18a039=_0x5702f1[_0x2225d7(0x111)]===_0x2225d7(0x135)&&_0x5702f1['closed'],_0x4cde2d=_0x2e8105==null?void 0x0:_0x2e8105[_0x2225d7(0x11b)];return{'shapeType':_0x497e0c['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3eb7bb[_0x2225d7(0x10f)],'h':_0x3eb7bb[_0x2225d7(0x131)],'fill':_0x18a039?_0x2225d7(0x10e):'none','stroke':!0x0,'data':_0x17e9a4,'dataArray':be(_0x5702f1,{'x':_0x3eb7bb[_0x2225d7(0x120)],'y':_0x3eb7bb[_0x2225d7(0x13c)]})}]},'fill':_0x18a039&&_0x4cde2d?{'color':_0x4cde2d,'fillType':_0x49ffcc[_0x2225d7(0xfa)]}:{'fillType':_0x49ffcc['NoFill']},'stroke':{'color':ge(_0x5702f1,_0x2e8105),'width':_e(_0x5702f1,_0x2e8105),'opacity':ve(_0x5702f1,_0x2e8105),'lineStrokeType':_0x56f9e7['SolidLine'],'capType':_0x159578[_0x2225d7(0x130)],'lineJoinType':_0x424331[_0x2225d7(0x130)]}};}function K(_0x39a490,_0x928a39){return{'x':_0x39a490['x']-_0x928a39['x'],'y':_0x39a490['y']-_0x928a39['y']};}function be(_0x267e5b,_0x392ec2){const _0x129fd7=_0x2d27;if(_0x267e5b[_0x129fd7(0x111)]===_0x129fd7(0x135)){let _0x1b3e52=_0x267e5b[_0x129fd7(0xf6)];if(_0x1b3e52['length']===0x0)return[];let _0x5535e1=K(_0x1b3e52[0x0],_0x392ec2),_0xcec6e9=[{'command':'M','points':[_0x5535e1['x'],_0x5535e1['y']]}];for(let _0x5d3ea3=0x1;_0x5d3ea3<_0x1b3e52['length'];_0x5d3ea3++){var _0x3b9b5d,_0x33dadb;let _0x2ab6ce=_0x1b3e52[_0x5d3ea3-0x1],_0x3fb24d=_0x1b3e52[_0x5d3ea3],_0x1c7fae=K((_0x3b9b5d=_0x2ab6ce[_0x129fd7(0x12d)])==null?_0x2ab6ce:_0x3b9b5d,_0x392ec2),_0x8494a6=K((_0x33dadb=_0x3fb24d['in'])==null?_0x3fb24d:_0x33dadb,_0x392ec2),_0x35926c=K(_0x3fb24d,_0x392ec2);_0xcec6e9[_0x129fd7(0x102)]({'command':'C','points':[_0x1c7fae['x'],_0x1c7fae['y'],_0x8494a6['x'],_0x8494a6['y'],_0x35926c['x'],_0x35926c['y']]});}if(_0x267e5b[_0x129fd7(0xf3)]&&_0x1b3e52[_0x129fd7(0xfd)]>0x1){var _0x2a70f1,_0x328eaa;let _0x1448bc=_0x1b3e52[_0x1b3e52['length']-0x1],_0x31d3d1=_0x1b3e52[0x0],_0x5b0bdb=K((_0x2a70f1=_0x1448bc[_0x129fd7(0x12d)])==null?_0x1448bc:_0x2a70f1,_0x392ec2),_0x80f16c=K((_0x328eaa=_0x31d3d1['in'])==null?_0x31d3d1:_0x328eaa,_0x392ec2),_0x4373f3=K(_0x31d3d1,_0x392ec2);_0xcec6e9[_0x129fd7(0x102)]({'command':'C','points':[_0x5b0bdb['x'],_0x5b0bdb['y'],_0x80f16c['x'],_0x80f16c['y'],_0x4373f3['x'],_0x4373f3['y']]}),_0xcec6e9['push']({'command':'z','points':[]});}return _0xcec6e9;}let _0x3d16cb=_0x267e5b[_0x129fd7(0x143)]['map'](_0x487c8a=>K(_0x487c8a,_0x392ec2));if(_0x3d16cb[_0x129fd7(0xfd)]===0x0)return[];let _0x316801=[{'command':'M','points':[_0x3d16cb[0x0]['x'],_0x3d16cb[0x0]['y']]}];for(let _0x1bcfaa=0x0;_0x1bcfaa<_0x3d16cb[_0x129fd7(0xfd)]-0x1;_0x1bcfaa++){var _0xd7bf1b,_0x37d8c0;let _0x46fde8=_0x3d16cb[_0x1bcfaa],_0x4c40b2=_0x3d16cb[_0x1bcfaa+0x1],_0x49f7d2=(_0xd7bf1b=_0x3d16cb[_0x1bcfaa-0x1])==null?_0x46fde8:_0xd7bf1b,_0x750b3e=(_0x37d8c0=_0x3d16cb[_0x1bcfaa+0x2])==null?_0x4c40b2:_0x37d8c0,_0x2f9cfd={'x':_0x46fde8['x']+(_0x4c40b2['x']-_0x49f7d2['x'])/0x6,'y':_0x46fde8['y']+(_0x4c40b2['y']-_0x49f7d2['y'])/0x6},_0x485d38={'x':_0x4c40b2['x']-(_0x750b3e['x']-_0x46fde8['x'])/0x6,'y':_0x4c40b2['y']-(_0x750b3e['y']-_0x46fde8['y'])/0x6};_0x316801[_0x129fd7(0x102)]({'command':'C','points':[_0x2f9cfd['x'],_0x2f9cfd['y'],_0x485d38['x'],_0x485d38['y'],_0x4c40b2['x'],_0x4c40b2['y']]});}return _0x316801;}function xe(_0x2eff88){const _0x423e2c=_0x2d27;var _0x431223;let {model:_0x5dd4f7,sourceModel:_0x138319=_0x5dd4f7,style:_0x5402e5}=_0x2eff88,_0x46dbc7=(_0x431223=_0x2eff88['tool'])==null?_0x5dd4f7[_0x423e2c(0x111)]:_0x431223,_0x5027c3=G(_0x5dd4f7),_0x3f23d7=_0x5dd4f7[_0x423e2c(0x111)]===_0x423e2c(0x135)&&_0x46dbc7!==_0x423e2c(0x135)?_0x5dd4f7:void 0x0;return{'transform':{..._0x5027c3,'rotation':0x0},'shapeData':ye(_0x5dd4f7,_0x5402e5),'ink':{'version':0x1,'tool':_0x46dbc7,'sourceModel':_0x138319,..._0x3f23d7?{'editModel':_0x3f23d7}:{},'normalizedBounds':_0x5027c3}};}var Se=_0x2e3b56(0xfb),Ce=_0x2e3b56(0x127);function q(_0x15a6c4){'@babel/helpers - typeof';const _0x121911=_0x2e3b56;return q=typeof Symbol==_0x121911(0x112)&&typeof Symbol[_0x121911(0x146)]==_0x121911(0x14e)?function(_0x2717da){return typeof _0x2717da;}:function(_0x1cf911){const _0x363bb7=_0x121911;return _0x1cf911&&typeof Symbol==_0x363bb7(0x112)&&_0x1cf911[_0x363bb7(0x116)]===Symbol&&_0x1cf911!==Symbol[_0x363bb7(0xfc)]?_0x363bb7(0x14e):typeof _0x1cf911;},q(_0x15a6c4);}function we(_0x2a395d,_0xcc3944){const _0x4baa95=_0x2e3b56;if(q(_0x2a395d)!=_0x4baa95(0x10d)||!_0x2a395d)return _0x2a395d;var _0x897942=_0x2a395d[Symbol[_0x4baa95(0x108)]];if(_0x897942!==void 0x0){var _0x29a689=_0x897942[_0x4baa95(0x11c)](_0x2a395d,_0xcc3944||'default');if(q(_0x29a689)!=_0x4baa95(0x10d))return _0x29a689;throw TypeError(_0x4baa95(0x114));}return(_0xcc3944===_0x4baa95(0x11f)?String:Number)(_0x2a395d);}function J(_0x390cb1){const _0x2a7360=_0x2e3b56;var _0x5c7633=we(_0x390cb1,_0x2a7360(0x11f));return q(_0x5c7633)==_0x2a7360(0x14e)?_0x5c7633:_0x5c7633+'';}function Y(_0x3320b4,_0x2b8406,_0x8fc579){const _0x21f6a1=_0x2e3b56;return(_0x2b8406=J(_0x2b8406))in _0x3320b4?Object[_0x21f6a1(0x149)](_0x3320b4,_0x2b8406,{'value':_0x8fc579,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3320b4[_0x2b8406]=_0x8fc579,_0x3320b4;}const X=_0x1b5b97(_0x2e3b56(0x121));var Te=class{constructor(){const _0x183049=_0x2e3b56;Y(this,_0x183049(0x13b),[]);}['registerAdapter'](_0x955f68){const _0x533c1a=_0x2e3b56;return this[_0x533c1a(0x13b)][_0x533c1a(0x102)](_0x955f68),_0x1d67f1(()=>{const _0x16e06c=_0x533c1a;let _0xb7e258=this[_0x16e06c(0x13b)]['indexOf'](_0x955f68);_0xb7e258>=0x0&&this['_adapters'][_0x16e06c(0x113)](_0xb7e258,0x1);});}[_0x2e3b56(0x128)](_0x24e0f3){const _0x2a0eed=_0x2e3b56;for(let _0x5ee148 of this[_0x2a0eed(0x13b)])if(_0x5ee148['beginInkMode'](_0x24e0f3))return!0x0;return!0x1;}async[_0x2e3b56(0x125)](_0xcc520b){const _0x390fb7=_0x2e3b56;for(let _0x439083 of this[_0x390fb7(0x13b)])if(_0x439083['createCustomShape']&&await _0x439083['createCustomShape'](_0xcc520b))return!0x0;return!0x1;}};const Ee={'id':_0x2e3b56(0x110),'type':_0x1a46d0[_0x2e3b56(0x147)],'handler':(_0x5b43ec,_0x29d535)=>_0x29d535?_0x5b43ec[_0x2e3b56(0x11e)](X)[_0x2e3b56(0x128)](_0x29d535):!0x1},Z={};function Q(_0x56d189,_0x4f2578){return function(_0x171553,_0x33247e){_0x4f2578(_0x171553,_0x33247e,_0x56d189);};}function De(_0x3f8a83,_0x4f9f9c,_0x349a3c,_0x5c7adc){const _0x17fcee=_0x2e3b56;var _0xa8e9ab=arguments['length'],_0x131abc=_0xa8e9ab<0x3?_0x4f9f9c:_0x5c7adc===null?_0x5c7adc=Object[_0x17fcee(0x107)](_0x4f9f9c,_0x349a3c):_0x5c7adc,_0x1db57b;if(typeof Reflect==_0x17fcee(0x10d)&&typeof Reflect[_0x17fcee(0x14f)]==_0x17fcee(0x112))_0x131abc=Reflect[_0x17fcee(0x14f)](_0x3f8a83,_0x4f9f9c,_0x349a3c,_0x5c7adc);else{for(var _0x2703c4=_0x3f8a83[_0x17fcee(0xfd)]-0x1;_0x2703c4>=0x0;_0x2703c4--)(_0x1db57b=_0x3f8a83[_0x2703c4])&&(_0x131abc=(_0xa8e9ab<0x3?_0x1db57b(_0x131abc):_0xa8e9ab>0x3?_0x1db57b(_0x4f9f9c,_0x349a3c,_0x131abc):_0x1db57b(_0x4f9f9c,_0x349a3c))||_0x131abc);}return _0xa8e9ab>0x3&&_0x131abc&&Object['defineProperty'](_0x4f9f9c,_0x349a3c,_0x131abc),_0x131abc;}let $=class extends _0x5b9715{constructor(_0x204bbf=Z,_0x12161d,_0x2c29ac,_0x4c8f75){const _0x2ba8ec=_0x2e3b56;super(),this[_0x2ba8ec(0x137)]=_0x204bbf,this[_0x2ba8ec(0x132)]=_0x12161d,this['_commandService']=_0x2c29ac,this[_0x2ba8ec(0x148)]=_0x4c8f75;let {..._0x3fd52e}=_0x48ad06({},Z,this[_0x2ba8ec(0x137)]);this[_0x2ba8ec(0x148)]['setConfig']('ink.config',_0x3fd52e);}[_0x2e3b56(0x122)](){const _0x29072c=_0x2e3b56;[[X,{'useClass':Te}]]['forEach'](_0x59fea0=>this[_0x29072c(0x132)][_0x29072c(0x12e)](_0x59fea0)),this[_0x29072c(0x129)](this['_commandService'][_0x29072c(0x105)](Ee));}};Y($,'pluginName',_0x2e3b56(0x119)),Y($,_0x2e3b56(0xfe),Se),Y($,_0x2e3b56(0x103),Ce),Y($,_0x2e3b56(0xf4),_0x2c0ee9[_0x2e3b56(0x10c)]),$=De([_0x4e5fed(_0x28261b),Q(0x1,_0x36e470(_0x80316c)),Q(0x2,_0xb74673),Q(0x3,_0xec36e4)],$);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 _0x4602de=_0x1211;(function(_0x3f01a0,_0x472b08){const _0x2445e8=_0x1211,_0x4562da=_0x3f01a0();while(!![]){try{const _0x4575c4=-parseInt(_0x2445e8(0x1ba))/0x1*(-parseInt(_0x2445e8(0x206))/0x2)+parseInt(_0x2445e8(0x1d7))/0x3+parseInt(_0x2445e8(0x217))/0x4*(-parseInt(_0x2445e8(0x210))/0x5)+parseInt(_0x2445e8(0x20e))/0x6+parseInt(_0x2445e8(0x1c9))/0x7+-parseInt(_0x2445e8(0x213))/0x8*(parseInt(_0x2445e8(0x1cc))/0x9)+-parseInt(_0x2445e8(0x1cf))/0xa;if(_0x4575c4===_0x472b08)break;else _0x4562da['push'](_0x4562da['shift']());}catch(_0x188e55){_0x4562da['push'](_0x4562da['shift']());}}}(_0x4eef,0x9928f));import{ShapeFillEnum as _0x5d1bec,ShapeLineCapEnum as _0x65358a,ShapeLineJoinEnum as _0x3afe2a,ShapeLineTypeEnum as _0x2298b9,ShapeTypeEnum as _0x46339a}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x1c9fb0}from'@univerjs-pro/license';import{CommandType as _0x3e6dda,DependentOn as _0x21f9f4,ICommandService as _0x44cbdf,IConfigService as _0x74df07,Inject as _0x83b12a,Injector as _0x4b9262,Plugin as _0x1732ef,UniverInstanceType as _0x2f3686,createIdentifier as _0x113c29,merge as _0x2ec470,toDisposable as _0x373e13}from'@univerjs/core';const g=0.0001;function _(_0x1b06f7){return{'x':_0x1b06f7['x'],'y':_0x1b06f7['y']};}function v(_0x5d28a2){const _0x330627=_0x1211;return{..._0x5d28a2,'in':_0x5d28a2['in']?_(_0x5d28a2['in']):void 0x0,'out':_0x5d28a2[_0x330627(0x1c1)]?_(_0x5d28a2[_0x330627(0x1c1)]):void 0x0};}function y(_0xc1f21){const _0x5050ee=_0x1211;return{'kind':_0x5050ee(0x218),'closed':_0xc1f21['closed'],'anchors':_0xc1f21['anchors'][_0x5050ee(0x1c4)](v)};}function b(_0xa62ba8,_0x5ab06c,_0x227782){return{'x':_0xa62ba8['x']+(_0x5ab06c['x']-_0xa62ba8['x'])*_0x227782,'y':_0xa62ba8['y']+(_0x5ab06c['y']-_0xa62ba8['y'])*_0x227782};}function x(_0x5f0414,_0x1f50bd){return Math['hypot'](_0x5f0414['x']-_0x1f50bd['x'],_0x5f0414['y']-_0x1f50bd['y']);}function S(_0x213cda){const _0x144da7=_0x1211;let _0x3dcf61=Math[_0x144da7(0x20c)](_0x213cda['x'],_0x213cda['y']);return _0x3dcf61<g?{'x':0x1,'y':0x0}:{'x':_0x213cda['x']/_0x3dcf61,'y':_0x213cda['y']/_0x3dcf61};}function C(_0x3e5920,_0xf56ed9,_0x121ffe=x(_0x3e5920,_0xf56ed9)){let _0x1d0337=S({'x':_0x3e5920['x']-_0xf56ed9['x'],'y':_0x3e5920['y']-_0xf56ed9['y']});return{'x':_0x3e5920['x']+_0x1d0337['x']*_0x121ffe,'y':_0x3e5920['y']+_0x1d0337['y']*_0x121ffe};}function w(_0x56412d,_0x86d914){const _0x3b549c=_0x1211;let {anchors:_0x412221}=_0x56412d;return _0x412221[_0x3b549c(0x1e2)]<0x2||_0x86d914<0x0?null:_0x86d914<_0x412221[_0x3b549c(0x1e2)]-0x1?{'startIndex':_0x86d914,'endIndex':_0x86d914+0x1,'start':_0x412221[_0x86d914],'end':_0x412221[_0x86d914+0x1]}:_0x56412d[_0x3b549c(0x1e0)]&&_0x86d914===_0x412221[_0x3b549c(0x1e2)]-0x1?{'startIndex':_0x412221[_0x3b549c(0x1e2)]-0x1,'endIndex':0x0,'start':_0x412221[_0x412221['length']-0x1],'end':_0x412221[0x0]}:null;}function T(_0x24a0f9,_0x56c8e2){const _0x2e2c3d=_0x1211;var _0x409124,_0x13be96;let _0x1ccda2=w(_0x24a0f9,_0x56c8e2);return _0x1ccda2?[_0x1ccda2['start'],(_0x409124=_0x1ccda2[_0x2e2c3d(0x1fe)][_0x2e2c3d(0x1c1)])==null?_0x1ccda2[_0x2e2c3d(0x1fe)]:_0x409124,(_0x13be96=_0x1ccda2[_0x2e2c3d(0x1bc)]['in'])==null?_0x1ccda2[_0x2e2c3d(0x1bc)]:_0x13be96,_0x1ccda2['end']]:null;}function te(_0x1293cf,_0x5e9d9f){const _0xf2c0b1=_0x1211;var _0x54ac7d;return _0x5e9d9f===_0xf2c0b1(0x1d2)?_0x1293cf:(_0x54ac7d=_0x1293cf[_0x5e9d9f])==null?null:_0x54ac7d;}function E(_0x39b74e,_0x1e87f3,_0x5f40eb){const _0x21bc2d=_0x1211;return _0x5f40eb===_0x21bc2d(0x1d2)||_0x39b74e[_0x21bc2d(0x1e0)]?!0x0:_0x5f40eb==='in'?_0x1e87f3>0x0:_0x1e87f3<_0x39b74e[_0x21bc2d(0x208)]['length']-0x1;}function D(_0xc4a363,_0x24e3ca){let [_0xd205a5,_0x521857,_0x53649d,_0x1cd8b1]=_0xc4a363,_0x5349ff=b(_0xd205a5,_0x521857,_0x24e3ca),_0x19de0c=b(_0x521857,_0x53649d,_0x24e3ca),_0x48bd15=b(_0x53649d,_0x1cd8b1,_0x24e3ca);return b(b(_0x5349ff,_0x19de0c,_0x24e3ca),b(_0x19de0c,_0x48bd15,_0x24e3ca),_0x24e3ca);}function ne(_0x269afc,_0x34cc31){let [_0x125bb2,_0x2dfe57,_0x2d7d5b,_0x1ef5e0]=_0x269afc,_0x1b0e66=b(_0x125bb2,_0x2dfe57,_0x34cc31),_0x3277a6=b(_0x2dfe57,_0x2d7d5b,_0x34cc31),_0xd4755=b(_0x2d7d5b,_0x1ef5e0,_0x34cc31),_0x29c81b=b(_0x1b0e66,_0x3277a6,_0x34cc31),_0x1cab8d=b(_0x3277a6,_0xd4755,_0x34cc31),_0x2fec16=b(_0x29c81b,_0x1cab8d,_0x34cc31);return{'left':[_0x125bb2,_0x1b0e66,_0x29c81b,_0x2fec16],'right':[_0x2fec16,_0x1cab8d,_0xd4755,_0x1ef5e0]};}function O(_0x4409ec,_0x537a41,_0x15fc26){const _0x24a829=_0x1211;let _0x53ae1d=_0x15fc26['x']-_0x537a41['x'],_0x372f42=_0x15fc26['y']-_0x537a41['y'],_0x72ede=_0x53ae1d*_0x53ae1d+_0x372f42*_0x372f42,_0x4e3ceb=_0x72ede<=g?0x0:Math[_0x24a829(0x1f0)](0x0,Math[_0x24a829(0x20d)](0x1,((_0x4409ec['x']-_0x537a41['x'])*_0x53ae1d+(_0x4409ec['y']-_0x537a41['y'])*_0x372f42)/_0x72ede)),_0x46eee2={'x':_0x537a41['x']+_0x53ae1d*_0x4e3ceb,'y':_0x537a41['y']+_0x372f42*_0x4e3ceb};return{'point':_0x46eee2,'ratio':_0x4e3ceb,'distance':x(_0x4409ec,_0x46eee2)};}function re(_0x36345e,_0x5ad9c1,_0x3319f7){const _0xf80425=_0x1211;return O(_0x36345e,_0x5ad9c1,_0x3319f7)[_0xf80425(0x204)]**0x2;}function k(_0x4497aa,_0x570873){const _0x598e87=_0x1211;if(_0x4497aa[_0x598e87(0x1e2)]<=0x2)return _0x4497aa[_0x598e87(0x1c4)](_);let _0x2d0246=0x0,_0x433d3b=0x0,_0x4c83cd=_0x4497aa[0x0],_0x3748c6=_0x4497aa[_0x4497aa[_0x598e87(0x1e2)]-0x1],_0x54fc76=_0x570873*_0x570873;for(let _0x542c3e=0x1;_0x542c3e<_0x4497aa[_0x598e87(0x1e2)]-0x1;_0x542c3e++){let _0x5178d3=re(_0x4497aa[_0x542c3e],_0x4c83cd,_0x3748c6);_0x5178d3>_0x2d0246&&(_0x2d0246=_0x5178d3,_0x433d3b=_0x542c3e);}if(_0x2d0246<=_0x54fc76)return[_(_0x4c83cd),_(_0x3748c6)];let _0xb53819=k(_0x4497aa[_0x598e87(0x1f7)](0x0,_0x433d3b+0x1),_0x570873),_0x14145d=k(_0x4497aa[_0x598e87(0x1f7)](_0x433d3b),_0x570873);return[..._0xb53819[_0x598e87(0x1f7)](0x0,-0x1),..._0x14145d];}function ie(_0x56ba6f,_0x3d7b96){var _0x1690d5;let _0x1a53e6=_0x56ba6f[_0x3d7b96],_0x3b16b8=_0x56ba6f[_0x3d7b96+0x1],_0x12b1d4=(_0x1690d5=_0x56ba6f[_0x3d7b96-0x1])==null?_0x1a53e6:_0x1690d5;return{'x':_0x1a53e6['x']+(_0x3b16b8['x']-_0x12b1d4['x'])/0x6,'y':_0x1a53e6['y']+(_0x3b16b8['y']-_0x12b1d4['y'])/0x6};}function A(_0x4c3d51,_0x3ae085){var _0x469239;let _0xcdb1e2=_0x4c3d51[_0x3ae085],_0x30ba79=_0x4c3d51[_0x3ae085-0x1],_0x2d4a8e=(_0x469239=_0x4c3d51[_0x3ae085+0x1])==null?_0xcdb1e2:_0x469239;return{'x':_0xcdb1e2['x']-(_0x2d4a8e['x']-_0x30ba79['x'])/0x6,'y':_0xcdb1e2['y']-(_0x2d4a8e['y']-_0x30ba79['y'])/0x6};}function j(_0x5f26c4,_0x3c9cfa){const _0x30fc1a=_0x1211;var _0x2cc730,_0x695b47;let _0x30963b=_0x5f26c4[_0x30fc1a(0x208)][_0x3c9cfa],_0xf75166=(_0x2cc730=_0x5f26c4['anchors'][_0x3c9cfa-0x1])==null?_0x5f26c4[_0x30fc1a(0x1e0)]?_0x5f26c4['anchors'][_0x5f26c4[_0x30fc1a(0x208)][_0x30fc1a(0x1e2)]-0x1]:null:_0x2cc730,_0x3d2d63=(_0x695b47=_0x5f26c4['anchors'][_0x3c9cfa+0x1])==null?_0x5f26c4[_0x30fc1a(0x1e0)]?_0x5f26c4[_0x30fc1a(0x208)][0x0]:null:_0x695b47,_0x5ac22f=_0xf75166&&_0x3d2d63?S({'x':_0x3d2d63['x']-_0xf75166['x'],'y':_0x3d2d63['y']-_0xf75166['y']}):_0x3d2d63?S({'x':_0x3d2d63['x']-_0x30963b['x'],'y':_0x3d2d63['y']-_0x30963b['y']}):_0xf75166?S({'x':_0x30963b['x']-_0xf75166['x'],'y':_0x30963b['y']-_0xf75166['y']}):{'x':0x1,'y':0x0},_0xea00=_0xf75166&&_0x3d2d63?Math[_0x30fc1a(0x1f0)](0x32,x(_0xf75166,_0x3d2d63)/0x4):0x32;return{'in':{'x':_0x30963b['x']-_0x5ac22f['x']*_0xea00,'y':_0x30963b['y']-_0x5ac22f['y']*_0xea00},'out':{'x':_0x30963b['x']+_0x5ac22f['x']*_0xea00,'y':_0x30963b['y']+_0x5ac22f['y']*_0xea00}};}function M(_0x4e7123,_0x19710d){const _0x192e47=_0x1211;let _0x47150d=_0x4e7123[_0x19710d],_0x17b5c5=_0x19710d==='in'?_0x192e47(0x1c1):'in',_0xb4b260=_0x4e7123[_0x17b5c5];if(_0x47150d){if(_0x4e7123[_0x192e47(0x1ca)]==='symmetric'){_0x4e7123[_0x17b5c5]=C(_0x4e7123,_0x47150d);return;}_0x4e7123[_0x192e47(0x1ca)]===_0x192e47(0x1fb)&&(_0x4e7123[_0x17b5c5]=C(_0x4e7123,_0x47150d,_0xb4b260?x(_0x4e7123,_0xb4b260):x(_0x4e7123,_0x47150d)));}}function ae(_0x399272,_0x300b72){const _0x295697=_0x1211;let _0x3e60aa=y(_0x399272);return!_0x300b72||_0x3e60aa[_0x295697(0x1e0)]||_0x3e60aa['anchors'][_0x295697(0x1e2)]===0x0||_0x3e60aa[_0x295697(0x208)][_0x295697(0x20b)]({'id':'__ink-preview-anchor__','x':_0x300b72['x'],'y':_0x300b72['y'],'pointType':_0x295697(0x1d0)}),_0x3e60aa;}function oe(_0x886504,_0x164bba={}){const _0x46c4df=_0x1211;var _0x5c3f72,_0x42c755;let _0xd45713=Math['max'](0x0,(_0x5c3f72=_0x164bba[_0x46c4df(0x1c2)])==null?Math[_0x46c4df(0x1f0)](0x4,_0x886504[_0x46c4df(0x1e6)]*0.35):_0x5c3f72),_0x3a33da=(_0x42c755=_0x164bba[_0x46c4df(0x211)])==null?_0x14739f=>'ink-centerline-'+_0x14739f:_0x42c755,_0x5b45f7=k(_0x886504[_0x46c4df(0x1c5)],_0xd45713),_0x2f31ea=_0x5b45f7['map']((_0x361d49,_0x301cc1)=>({'id':_0x3a33da(_0x301cc1),'x':_0x361d49['x'],'y':_0x361d49['y'],'pointType':'free'}));for(let _0x2bdfe1=0x0;_0x2bdfe1<_0x2f31ea[_0x46c4df(0x1e2)]-0x1;_0x2bdfe1++)_0x2f31ea[_0x2bdfe1][_0x46c4df(0x1c1)]=ie(_0x5b45f7,_0x2bdfe1),_0x2f31ea[_0x2bdfe1+0x1]['in']=A(_0x5b45f7,_0x2bdfe1+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x2f31ea};}function se(_0x257145,_0x2d28a6,_0x540b63){const _0x74eb19=_0x1211;let _0x5a4344=null,_0x333014=['anchor','in',_0x74eb19(0x1c1)];return _0x257145[_0x74eb19(0x208)]['forEach']((_0x159be7,_0x43724b)=>{const _0x39482a=_0x74eb19;_0x333014[_0x39482a(0x1eb)](_0x4b7b87=>{const _0x28aadd=_0x39482a;if(!E(_0x257145,_0x43724b,_0x4b7b87))return;let _0x11daf2=te(_0x159be7,_0x4b7b87);if(!_0x11daf2)return;let _0xb0b9f4=x(_0x2d28a6,_0x11daf2);_0xb0b9f4>_0x540b63||_0x5a4344&&_0xb0b9f4>=_0x5a4344[_0x28aadd(0x204)]||(_0x5a4344={'handle':{'kind':_0x4b7b87,'anchorId':_0x159be7['id']},'point':_(_0x11daf2),'distance':_0xb0b9f4});});}),_0x5a4344;}function ce(_0x2f4669,_0x4a01bb,_0xf8532d){const _0x3d06b4=_0x1211;let _0x1cf6e5=null,_0x424aae=_0x2f4669[_0x3d06b4(0x1e0)]?_0x2f4669[_0x3d06b4(0x208)]['length']:Math[_0x3d06b4(0x1f0)](0x0,_0x2f4669[_0x3d06b4(0x208)][_0x3d06b4(0x1e2)]-0x1);for(let _0x438b3d=0x0;_0x438b3d<_0x424aae;_0x438b3d++){let _0xa1baef=T(_0x2f4669,_0x438b3d);if(!_0xa1baef)continue;let _0x5a8c61=D(_0xa1baef,0x0);for(let _0x1c3df9=0x1;_0x1c3df9<=0x20;_0x1c3df9++){let _0x2de5d7=D(_0xa1baef,_0x1c3df9/0x20),_0x55ba1f=O(_0x4a01bb,_0x5a8c61,_0x2de5d7),_0x535d41=(_0x1c3df9-0x1+_0x55ba1f[_0x3d06b4(0x201)])/0x20;(!_0x1cf6e5||_0x55ba1f[_0x3d06b4(0x204)]<_0x1cf6e5[_0x3d06b4(0x204)])&&(_0x1cf6e5={'segmentIndex':_0x438b3d,'t':_0x535d41,'point':_0x55ba1f[_0x3d06b4(0x205)],'distance':_0x55ba1f[_0x3d06b4(0x204)]}),_0x5a8c61=_0x2de5d7;}}return _0x1cf6e5&&_0x1cf6e5[_0x3d06b4(0x204)]<=_0xf8532d?_0x1cf6e5:null;}function le(_0x3fb92d,_0x128497,_0x2f749b){const _0x7f4f23=_0x1211;let _0x1a9ee0=y(_0x3fb92d),_0x394f0f=w(_0x1a9ee0,_0x128497[_0x7f4f23(0x1fd)]),_0x1e25ae=T(_0x1a9ee0,_0x128497['segmentIndex']);if(!_0x394f0f||!_0x1e25ae)return _0x1a9ee0;let _0x31dfcf=ne(_0x1e25ae,Math[_0x7f4f23(0x1f0)](0x0,Math[_0x7f4f23(0x20d)](0x1,_0x128497['t']))),_0x2a9439={'id':_0x2f749b(),'x':_0x31dfcf['left'][0x3]['x'],'y':_0x31dfcf['left'][0x3]['y'],'in':_(_0x31dfcf[_0x7f4f23(0x1ea)][0x2]),'out':_(_0x31dfcf[_0x7f4f23(0x1be)][0x1]),'pointType':'free'};return _0x1a9ee0['anchors'][_0x394f0f[_0x7f4f23(0x1ef)]]['out']=_(_0x31dfcf[_0x7f4f23(0x1ea)][0x1]),_0x1a9ee0[_0x7f4f23(0x208)][_0x394f0f[_0x7f4f23(0x1f2)]]['in']=_(_0x31dfcf[_0x7f4f23(0x1be)][0x2]),_0x1a9ee0[_0x7f4f23(0x208)][_0x7f4f23(0x1e9)](_0x394f0f[_0x7f4f23(0x1ef)]+0x1,0x0,_0x2a9439),_0x1a9ee0;}function ue(_0x29689b,_0xb58bb9){const _0x12af36=_0x1211;let _0x2ff724=y(_0x29689b);return _0x2ff724[_0x12af36(0x208)]=_0x2ff724[_0x12af36(0x208)][_0x12af36(0x1f5)](_0x412bcd=>_0x412bcd['id']!==_0xb58bb9),_0x2ff724['closed']&&_0x2ff724['anchors'][_0x12af36(0x1e2)]<0x3&&(_0x2ff724['closed']=!0x1),_0x2ff724;}function N(_0x1b95dc,_0x452f7c,_0x2d0da4){const _0x2ac18c=_0x1211;let _0xbd07b8=y(_0x1b95dc),_0xdf433a=_0xbd07b8[_0x2ac18c(0x208)][_0x2ac18c(0x1d8)](_0x33bb3d=>_0x33bb3d['id']===_0x452f7c),_0x4766e5=_0xbd07b8[_0x2ac18c(0x208)][_0xdf433a];if(!_0x4766e5)return _0xbd07b8;if(_0x4766e5[_0x2ac18c(0x1ca)]=_0x2d0da4,_0x2d0da4===_0x2ac18c(0x1d0))return delete _0x4766e5['in'],delete _0x4766e5[_0x2ac18c(0x1c1)],_0xbd07b8;let _0x4ab650=j(_0xbd07b8,_0xdf433a);if(_0x4766e5['in']=_0x4766e5['in']?_(_0x4766e5['in']):_0x4ab650['in'],_0x4766e5[_0x2ac18c(0x1c1)]=_0x4766e5[_0x2ac18c(0x1c1)]?_(_0x4766e5[_0x2ac18c(0x1c1)]):_0x4ab650['out'],_0x2d0da4==='symmetric'){let _0x3b9cb0=Math[_0x2ac18c(0x1f0)](x(_0x4766e5,_0x4766e5['in']),x(_0x4766e5,_0x4766e5[_0x2ac18c(0x1c1)]),0x32),_0x5bff36=S({'x':_0x4766e5[_0x2ac18c(0x1c1)]['x']-_0x4766e5['x'],'y':_0x4766e5[_0x2ac18c(0x1c1)]['y']-_0x4766e5['y']});_0x4766e5['out']={'x':_0x4766e5['x']+_0x5bff36['x']*_0x3b9cb0,'y':_0x4766e5['y']+_0x5bff36['y']*_0x3b9cb0},_0x4766e5['in']={'x':_0x4766e5['x']-_0x5bff36['x']*_0x3b9cb0,'y':_0x4766e5['y']-_0x5bff36['y']*_0x3b9cb0};}else _0x2d0da4===_0x2ac18c(0x1fb)&&M(_0x4766e5,'out');return _0xbd07b8;}function P(_0x54aa08,_0x7ffa3a){const _0x39c7e6=_0x1211;var _0x2d548c;let _0x51d1f1=_0x54aa08[_0x39c7e6(0x208)][_0x39c7e6(0x1f3)](_0x4e2fcc=>_0x4e2fcc['id']===_0x7ffa3a),_0x591db9=(_0x2d548c=_0x51d1f1==null?void 0x0:_0x51d1f1[_0x39c7e6(0x1ca)])==null?_0x39c7e6(0x1d0):_0x2d548c;return N(_0x54aa08,_0x7ffa3a,_0x591db9===_0x39c7e6(0x1d0)?_0x39c7e6(0x1fb):_0x591db9===_0x39c7e6(0x1fb)?_0x39c7e6(0x1de):_0x591db9===_0x39c7e6(0x1de)?'free':_0x39c7e6(0x1d0));}function F(_0x2b9e1f,_0x56c7aa,_0x26a2a0){const _0x1dab27=_0x1211;let _0xc44bde=y(_0x2b9e1f),_0x27e436=_0xc44bde[_0x1dab27(0x208)][_0x1dab27(0x1f3)](_0x1ea924=>_0x1ea924['id']===_0x56c7aa['anchorId']);if(!_0x27e436)return _0xc44bde;if(_0x56c7aa[_0x1dab27(0x1f8)]===_0x1dab27(0x1d2)){let _0x39f456={'x':_0x26a2a0['x']-_0x27e436['x'],'y':_0x26a2a0['y']-_0x27e436['y']};return _0x27e436['x']=_0x26a2a0['x'],_0x27e436['y']=_0x26a2a0['y'],_0x27e436['in']&&(_0x27e436['in']={'x':_0x27e436['in']['x']+_0x39f456['x'],'y':_0x27e436['in']['y']+_0x39f456['y']}),_0x27e436[_0x1dab27(0x1c1)]&&(_0x27e436[_0x1dab27(0x1c1)]={'x':_0x27e436[_0x1dab27(0x1c1)]['x']+_0x39f456['x'],'y':_0x27e436[_0x1dab27(0x1c1)]['y']+_0x39f456['y']}),_0xc44bde;}return _0x27e436[_0x56c7aa['kind']]=_(_0x26a2a0),_0x27e436[_0x1dab27(0x1ca)]===_0x1dab27(0x1d0)&&(_0x27e436['pointType']=_0x1dab27(0x1f1)),M(_0x27e436,_0x56c7aa[_0x1dab27(0x1f8)]),_0xc44bde;}const I=1e-9;function L(_0x541be4){let _0x3c36af=Math['round'](_0x541be4*0x2710)/0x2710;return Object['is'](_0x3c36af,-0x0)?'0':String(_0x3c36af);}function R(_0x4c1145){return L(_0x4c1145['x'])+'\x20'+L(_0x4c1145['y']);}function z(_0x1de858,_0x3fc130){return{'x':_0x1de858['x']-_0x3fc130['x'],'y':_0x1de858['y']-_0x3fc130['y']};}function B(_0x241449,_0x550f5b,_0x1cef1b,_0x1a92ff,_0x553fac){let _0x414655=0x1-_0x553fac;return{'x':_0x414655*_0x414655*_0x414655*_0x241449['x']+0x3*_0x414655*_0x414655*_0x553fac*_0x550f5b['x']+0x3*_0x414655*_0x553fac*_0x553fac*_0x1cef1b['x']+_0x553fac*_0x553fac*_0x553fac*_0x1a92ff['x'],'y':_0x414655*_0x414655*_0x414655*_0x241449['y']+0x3*_0x414655*_0x414655*_0x553fac*_0x550f5b['y']+0x3*_0x414655*_0x553fac*_0x553fac*_0x1cef1b['y']+_0x553fac*_0x553fac*_0x553fac*_0x1a92ff['y']};}function V(_0x3d1ece,_0x345da1,_0x4494f0,_0x4e1c7d){const _0x5b0fea=_0x1211;let _0x2b2437=-_0x3d1ece+0x3*_0x345da1-0x3*_0x4494f0+_0x4e1c7d,_0x2fc981=0x3*_0x3d1ece-0x6*_0x345da1+0x3*_0x4494f0,_0x44d4e4=-0x3*_0x3d1ece+0x3*_0x345da1,_0x34331a=[];if(Math[_0x5b0fea(0x1e4)](_0x2b2437)<I){if(Math['abs'](_0x2fc981)<I)return _0x34331a;let _0x287154=-_0x44d4e4/(0x2*_0x2fc981);return _0x287154>0x0&&_0x287154<0x1&&_0x34331a[_0x5b0fea(0x20b)](_0x287154),_0x34331a;}let _0x2792aa=_0x2fc981*_0x2fc981-0x3*_0x2b2437*_0x44d4e4;if(_0x2792aa<0x0)return _0x34331a;let _0x6dd9c4=Math['sqrt'](Math['max'](0x0,_0x2792aa)),_0x14e6b1=(-_0x2fc981+_0x6dd9c4)/(0x3*_0x2b2437),_0x238582=(-_0x2fc981-_0x6dd9c4)/(0x3*_0x2b2437);return _0x14e6b1>0x0&&_0x14e6b1<0x1&&_0x34331a[_0x5b0fea(0x20b)](_0x14e6b1),_0x238582>0x0&&_0x238582<0x1&&Math['abs'](_0x238582-_0x14e6b1)>I&&_0x34331a['push'](_0x238582),_0x34331a;}function _0x1211(_0x50ed2e,_0xe8e419){_0x50ed2e=_0x50ed2e-0x1ba;const _0x4eef04=_0x4eef();let _0x121192=_0x4eef04[_0x50ed2e];return _0x121192;}function H(_0x4f601d,_0x2224c5,_0x46cadd,_0x1987c1,_0x36900f){const _0x573c7e=_0x1211;_0x4f601d[_0x573c7e(0x20b)](_0x2224c5,_0x36900f),new Set([...V(_0x2224c5['x'],_0x46cadd['x'],_0x1987c1['x'],_0x36900f['x']),...V(_0x2224c5['y'],_0x46cadd['y'],_0x1987c1['y'],_0x36900f['y'])])[_0x573c7e(0x1eb)](_0x2aeff6=>{const _0x30aae2=_0x573c7e;_0x4f601d[_0x30aae2(0x20b)](B(_0x2224c5,_0x46cadd,_0x1987c1,_0x36900f,_0x2aeff6));});}function U(_0x1c2ad0){const _0x4b8f70=_0x1211;let _0x532f0f=_0x1c2ad0[_0x4b8f70(0x208)];if(_0x532f0f['length']<=0x1)return _0x532f0f;let _0x3cf711=[];for(let _0x6de75a=0x1;_0x6de75a<_0x532f0f[_0x4b8f70(0x1e2)];_0x6de75a++){var _0x2d4159,_0x1d3f32;let _0x42ce86=_0x532f0f[_0x6de75a-0x1],_0x3e729c=_0x532f0f[_0x6de75a];H(_0x3cf711,_0x42ce86,(_0x2d4159=_0x42ce86[_0x4b8f70(0x1c1)])==null?_0x42ce86:_0x2d4159,(_0x1d3f32=_0x3e729c['in'])==null?_0x3e729c:_0x1d3f32,_0x3e729c);}if(_0x1c2ad0['closed']&&_0x532f0f[_0x4b8f70(0x1e2)]>0x1){var _0x30eb6b,_0xed4e9f;let _0x43247a=_0x532f0f[_0x532f0f[_0x4b8f70(0x1e2)]-0x1],_0x25e565=_0x532f0f[0x0];H(_0x3cf711,_0x43247a,(_0x30eb6b=_0x43247a[_0x4b8f70(0x1c1)])==null?_0x43247a:_0x30eb6b,(_0xed4e9f=_0x25e565['in'])==null?_0x25e565:_0xed4e9f,_0x25e565);}return _0x3cf711;}function de(_0x75b221){const _0x2e8f98=_0x1211;let _0x4912c2=_0x75b221[_0x2e8f98(0x1c5)];if(_0x4912c2[_0x2e8f98(0x1e2)]<=0x1)return _0x4912c2;let _0x3dcfc6=[];for(let _0x5ef848=0x0;_0x5ef848<_0x4912c2[_0x2e8f98(0x1e2)]-0x1;_0x5ef848++){var _0x8dcc5c,_0x2081ce;let _0x871f0f=_0x4912c2[_0x5ef848],_0x239bdb=_0x4912c2[_0x5ef848+0x1],_0x546780=(_0x8dcc5c=_0x4912c2[_0x5ef848-0x1])==null?_0x871f0f:_0x8dcc5c,_0x344ea5=(_0x2081ce=_0x4912c2[_0x5ef848+0x2])==null?_0x239bdb:_0x2081ce;H(_0x3dcfc6,_0x871f0f,{'x':_0x871f0f['x']+(_0x239bdb['x']-_0x546780['x'])/0x6,'y':_0x871f0f['y']+(_0x239bdb['y']-_0x546780['y'])/0x6},{'x':_0x239bdb['x']-(_0x344ea5['x']-_0x871f0f['x'])/0x6,'y':_0x239bdb['y']-(_0x344ea5['y']-_0x871f0f['y'])/0x6},_0x239bdb);}return _0x3dcfc6;}function fe(_0x9f0f16){const _0x3f3ed5=_0x1211;return _0x9f0f16['kind']===_0x3f3ed5(0x218)?U(_0x9f0f16):de(_0x9f0f16);}function W(_0x22537b){const _0x4abce3=_0x1211;let _0x4a4690=Math[_0x4abce3(0x20f)](_0x22537b*0x2710)/0x2710;return Object['is'](_0x4a4690,-0x0)?0x0:_0x4a4690;}function G(_0x529191){const _0x59a956=_0x1211;let _0x256152=fe(_0x529191);if(_0x256152['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x467b54=Math[_0x59a956(0x20d)](..._0x256152[_0x59a956(0x1c4)](_0x5c79ff=>_0x5c79ff['x'])),_0xc4946b=Math[_0x59a956(0x20d)](..._0x256152[_0x59a956(0x1c4)](_0x142167=>_0x142167['y'])),_0x5aa992=Math[_0x59a956(0x1f0)](..._0x256152[_0x59a956(0x1c4)](_0x7c0829=>_0x7c0829['x'])),_0xe8ac3e=Math['max'](..._0x256152['map'](_0x17e09c=>_0x17e09c['y']));return{'left':W(_0x467b54),'top':W(_0xc4946b),'width':W(Math['max'](0x1,_0x5aa992-_0x467b54)),'height':W(Math[_0x59a956(0x1f0)](0x1,_0xe8ac3e-_0xc4946b))};}function pe(_0x3e2b30,_0x124fb7){const _0x74e596=_0x1211;let _0x47cf4c=_0x3e2b30[_0x74e596(0x208)];if(_0x47cf4c[_0x74e596(0x1e2)]===0x0)return'';let _0x95e36d=['M\x20'+R(z(_0x47cf4c[0x0],_0x124fb7))];for(let _0x4ee1e5=0x1;_0x4ee1e5<_0x47cf4c[_0x74e596(0x1e2)];_0x4ee1e5++){var _0x343f97,_0xb4b90e;let _0x27a4d4=_0x47cf4c[_0x4ee1e5-0x1],_0x4bce27=_0x47cf4c[_0x4ee1e5],_0x338c1b=(_0x343f97=_0x27a4d4[_0x74e596(0x1c1)])==null?_0x27a4d4:_0x343f97,_0x1e3317=(_0xb4b90e=_0x4bce27['in'])==null?_0x4bce27:_0xb4b90e;_0x95e36d[_0x74e596(0x20b)]('C\x20'+R(z(_0x338c1b,_0x124fb7))+'\x20'+R(z(_0x1e3317,_0x124fb7))+'\x20'+R(z(_0x4bce27,_0x124fb7)));}if(_0x3e2b30[_0x74e596(0x1e0)]&&_0x47cf4c[_0x74e596(0x1e2)]>0x1){var _0x127d8f,_0x391377;let _0x36dfda=_0x47cf4c[_0x47cf4c[_0x74e596(0x1e2)]-0x1],_0x1618b2=_0x47cf4c[0x0],_0xafc868=(_0x127d8f=_0x36dfda[_0x74e596(0x1c1)])==null?_0x36dfda:_0x127d8f,_0x1de550=(_0x391377=_0x1618b2['in'])==null?_0x1618b2:_0x391377;_0x95e36d[_0x74e596(0x20b)]('C\x20'+R(z(_0xafc868,_0x124fb7))+'\x20'+R(z(_0x1de550,_0x124fb7))+'\x20'+R(z(_0x1618b2,_0x124fb7))),_0x95e36d[_0x74e596(0x20b)]('Z');}return _0x95e36d['join']('\x20');}function me(_0x16c425,_0x5c128b){const _0x38b1ff=_0x1211;let _0x265969=_0x16c425[_0x38b1ff(0x1c5)][_0x38b1ff(0x1c4)](_0xaed080=>z(_0xaed080,_0x5c128b));if(_0x265969[_0x38b1ff(0x1e2)]===0x0)return'';if(_0x265969[_0x38b1ff(0x1e2)]===0x1)return'M\x20'+R(_0x265969[0x0]);let _0x5bc61b=['M\x20'+R(_0x265969[0x0])];for(let _0x4ca555=0x0;_0x4ca555<_0x265969[_0x38b1ff(0x1e2)]-0x1;_0x4ca555++){var _0xc7926b,_0x19feba;let _0x445dca=_0x265969[_0x4ca555],_0x3792ed=_0x265969[_0x4ca555+0x1],_0x4b6c96=(_0xc7926b=_0x265969[_0x4ca555-0x1])==null?_0x445dca:_0xc7926b,_0x17cfc5=(_0x19feba=_0x265969[_0x4ca555+0x2])==null?_0x3792ed:_0x19feba,_0x14c2c2={'x':_0x445dca['x']+(_0x3792ed['x']-_0x4b6c96['x'])/0x6,'y':_0x445dca['y']+(_0x3792ed['y']-_0x4b6c96['y'])/0x6},_0x19d58a={'x':_0x3792ed['x']-(_0x17cfc5['x']-_0x445dca['x'])/0x6,'y':_0x3792ed['y']-(_0x17cfc5['y']-_0x445dca['y'])/0x6};_0x5bc61b[_0x38b1ff(0x20b)]('C\x20'+R(_0x14c2c2)+'\x20'+R(_0x19d58a)+'\x20'+R(_0x3792ed));}return _0x5bc61b['join']('\x20');}function he(_0x3bd850,_0x5b0f86){const _0x3179ab=_0x1211;return _0x3bd850[_0x3179ab(0x1f8)]===_0x3179ab(0x218)?pe(_0x3bd850,_0x5b0f86):me(_0x3bd850,_0x5b0f86);}function ge(_0x57783c,_0x578a2a){const _0x2572b8=_0x1211;return _0x578a2a!=null&&_0x578a2a[_0x2572b8(0x202)]?_0x578a2a['color']:_0x57783c[_0x2572b8(0x1f8)]===_0x2572b8(0x218)?_0x2572b8(0x1d9):_0x57783c[_0x2572b8(0x202)];}function _e(_0x112a65,_0x5bdcf7){const _0x1f50d3=_0x1211;return(_0x5bdcf7==null?void 0x0:_0x5bdcf7[_0x1f50d3(0x1e6)])===void 0x0?_0x112a65['kind']==='pen'?0x2:_0x112a65[_0x1f50d3(0x1e6)]:_0x5bdcf7[_0x1f50d3(0x1e6)];}function ve(_0x599071,_0x2a1419){return(_0x2a1419==null?void 0x0:_0x2a1419['opacity'])===void 0x0?_0x599071['kind']==='pen'?void 0x0:_0x599071['opacity']:_0x2a1419['opacity'];}function ye(_0x3c585a,_0x6ea5f3){const _0x39e5dd=_0x1211;let _0x385a5e=G(_0x3c585a),_0x5ab225=he(_0x3c585a,{'x':_0x385a5e['left'],'y':_0x385a5e[_0x39e5dd(0x216)]}),_0x58a50c=_0x3c585a['kind']===_0x39e5dd(0x218)&&_0x3c585a[_0x39e5dd(0x1e0)],_0xbd4be8=_0x6ea5f3==null?void 0x0:_0x6ea5f3[_0x39e5dd(0x1e8)];return{'shapeType':_0x46339a[_0x39e5dd(0x1e3)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x385a5e['width'],'h':_0x385a5e[_0x39e5dd(0x1df)],'fill':_0x58a50c?_0x39e5dd(0x1e1):_0x39e5dd(0x1ec),'stroke':!0x0,'data':_0x5ab225,'dataArray':be(_0x3c585a,{'x':_0x385a5e[_0x39e5dd(0x1ea)],'y':_0x385a5e[_0x39e5dd(0x216)]})}]},'fill':_0x58a50c&&_0xbd4be8?{'color':_0xbd4be8,'fillType':_0x5d1bec[_0x39e5dd(0x1e7)]}:{'fillType':_0x5d1bec[_0x39e5dd(0x207)]},'stroke':{'color':ge(_0x3c585a,_0x6ea5f3),'width':_e(_0x3c585a,_0x6ea5f3),'opacity':ve(_0x3c585a,_0x6ea5f3),'lineStrokeType':_0x2298b9[_0x39e5dd(0x209)],'capType':_0x65358a['Round'],'lineJoinType':_0x3afe2a[_0x39e5dd(0x203)]}};}function K(_0x32c7ff,_0x2801d5){return{'x':_0x32c7ff['x']-_0x2801d5['x'],'y':_0x32c7ff['y']-_0x2801d5['y']};}function be(_0x2930cd,_0x1b786f){const _0x321054=_0x1211;if(_0x2930cd[_0x321054(0x1f8)]===_0x321054(0x218)){let _0xa547a7=_0x2930cd[_0x321054(0x208)];if(_0xa547a7['length']===0x0)return[];let _0x279dcd=K(_0xa547a7[0x0],_0x1b786f),_0x376d48=[{'command':'M','points':[_0x279dcd['x'],_0x279dcd['y']]}];for(let _0x5d9ba7=0x1;_0x5d9ba7<_0xa547a7[_0x321054(0x1e2)];_0x5d9ba7++){var _0x2bda0c,_0x1845b6;let _0x21ea08=_0xa547a7[_0x5d9ba7-0x1],_0x1e56e0=_0xa547a7[_0x5d9ba7],_0xfebf11=K((_0x2bda0c=_0x21ea08[_0x321054(0x1c1)])==null?_0x21ea08:_0x2bda0c,_0x1b786f),_0x5141fa=K((_0x1845b6=_0x1e56e0['in'])==null?_0x1e56e0:_0x1845b6,_0x1b786f),_0x17b306=K(_0x1e56e0,_0x1b786f);_0x376d48['push']({'command':'C','points':[_0xfebf11['x'],_0xfebf11['y'],_0x5141fa['x'],_0x5141fa['y'],_0x17b306['x'],_0x17b306['y']]});}if(_0x2930cd[_0x321054(0x1e0)]&&_0xa547a7[_0x321054(0x1e2)]>0x1){var _0x455314,_0xd8fe87;let _0x40a46b=_0xa547a7[_0xa547a7[_0x321054(0x1e2)]-0x1],_0x56f055=_0xa547a7[0x0],_0x36dec7=K((_0x455314=_0x40a46b['out'])==null?_0x40a46b:_0x455314,_0x1b786f),_0x3cea01=K((_0xd8fe87=_0x56f055['in'])==null?_0x56f055:_0xd8fe87,_0x1b786f),_0x37d2d9=K(_0x56f055,_0x1b786f);_0x376d48[_0x321054(0x20b)]({'command':'C','points':[_0x36dec7['x'],_0x36dec7['y'],_0x3cea01['x'],_0x3cea01['y'],_0x37d2d9['x'],_0x37d2d9['y']]}),_0x376d48[_0x321054(0x20b)]({'command':'z','points':[]});}return _0x376d48;}let _0x4bf39c=_0x2930cd[_0x321054(0x1c5)][_0x321054(0x1c4)](_0x2a50ac=>K(_0x2a50ac,_0x1b786f));if(_0x4bf39c[_0x321054(0x1e2)]===0x0)return[];let _0x42a2eb=[{'command':'M','points':[_0x4bf39c[0x0]['x'],_0x4bf39c[0x0]['y']]}];for(let _0x2eb88b=0x0;_0x2eb88b<_0x4bf39c[_0x321054(0x1e2)]-0x1;_0x2eb88b++){var _0x5271fe,_0x1e9e16;let _0x4a856f=_0x4bf39c[_0x2eb88b],_0x5a1c20=_0x4bf39c[_0x2eb88b+0x1],_0xd3b4ad=(_0x5271fe=_0x4bf39c[_0x2eb88b-0x1])==null?_0x4a856f:_0x5271fe,_0x3fc1c1=(_0x1e9e16=_0x4bf39c[_0x2eb88b+0x2])==null?_0x5a1c20:_0x1e9e16,_0x2138b6={'x':_0x4a856f['x']+(_0x5a1c20['x']-_0xd3b4ad['x'])/0x6,'y':_0x4a856f['y']+(_0x5a1c20['y']-_0xd3b4ad['y'])/0x6},_0x30c6a8={'x':_0x5a1c20['x']-(_0x3fc1c1['x']-_0x4a856f['x'])/0x6,'y':_0x5a1c20['y']-(_0x3fc1c1['y']-_0x4a856f['y'])/0x6};_0x42a2eb[_0x321054(0x20b)]({'command':'C','points':[_0x2138b6['x'],_0x2138b6['y'],_0x30c6a8['x'],_0x30c6a8['y'],_0x5a1c20['x'],_0x5a1c20['y']]});}return _0x42a2eb;}function xe(_0x43204b){const _0x180ace=_0x1211;var _0x3e228f;let {model:_0xa3d708,sourceModel:_0x24778f=_0xa3d708,style:_0x170177}=_0x43204b,_0x194a95=(_0x3e228f=_0x43204b[_0x180ace(0x215)])==null?_0xa3d708['kind']:_0x3e228f,_0x2525c9=G(_0xa3d708),_0x3214d8=_0xa3d708[_0x180ace(0x1f8)]==='pen'&&_0x194a95!=='pen'?_0xa3d708:void 0x0;return{'transform':{..._0x2525c9,'rotation':0x0},'shapeData':ye(_0xa3d708,_0x170177),'ink':{'version':0x1,'tool':_0x194a95,'sourceModel':_0x24778f,..._0x3214d8?{'editModel':_0x3214d8}:{},'normalizedBounds':_0x2525c9}};}var Se=_0x4602de(0x1c0),Ce=_0x4602de(0x1c7);function q(_0x3db7cb){'@babel/helpers - typeof';const _0xe4ad9e=_0x4602de;return q=typeof Symbol=='function'&&typeof Symbol[_0xe4ad9e(0x1f4)]==_0xe4ad9e(0x214)?function(_0x12e51e){return typeof _0x12e51e;}:function(_0x3d0599){const _0x129da7=_0xe4ad9e;return _0x3d0599&&typeof Symbol=='function'&&_0x3d0599[_0x129da7(0x1bf)]===Symbol&&_0x3d0599!==Symbol[_0x129da7(0x1ff)]?_0x129da7(0x214):typeof _0x3d0599;},q(_0x3db7cb);}function we(_0x4616bb,_0x3450ed){const _0x308030=_0x4602de;if(q(_0x4616bb)!='object'||!_0x4616bb)return _0x4616bb;var _0x37d4fd=_0x4616bb[Symbol[_0x308030(0x1bd)]];if(_0x37d4fd!==void 0x0){var _0x1337d6=_0x37d4fd[_0x308030(0x1c6)](_0x4616bb,_0x3450ed||_0x308030(0x1d1));if(q(_0x1337d6)!=_0x308030(0x1ce))return _0x1337d6;throw TypeError(_0x308030(0x1e5));}return(_0x3450ed===_0x308030(0x1cd)?String:Number)(_0x4616bb);}function J(_0x2cf7d5){var _0x2588a4=we(_0x2cf7d5,'string');return q(_0x2588a4)=='symbol'?_0x2588a4:_0x2588a4+'';}function Y(_0x2c7ade,_0x497417,_0x5a1879){const _0x58d322=_0x4602de;return(_0x497417=J(_0x497417))in _0x2c7ade?Object[_0x58d322(0x1d3)](_0x2c7ade,_0x497417,{'value':_0x5a1879,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2c7ade[_0x497417]=_0x5a1879,_0x2c7ade;}const X=_0x113c29(_0x4602de(0x1ee));function _0x4eef(){const _0x496427=['registerCommand','8wQWMzo','symbol','tool','top','100292uigght','pen','1025282PXmaBs','UNIVER_UNKNOWN','end','toPrimitive','right','constructor','@univerjs-pro/ink','out','tolerance','_config','map','points','call','1.0.0-alpha.5','_configService','3181017VlRlDb','pointType','ink.operation.start','3458565PsOtLJ','string','object','9535700nxXkRG','corner','default','anchor','defineProperty','createCustomShape','get','_adapters','2624610OdnZzg','findIndex','#f54a45','pluginName','version','disposeWithMe','_injector','symmetric','height','closed','norm','length','Rect','abs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','width','SolidFill','fillColor','splice','left','forEach','none','add','ink.host-adapter.service','startIndex','max','free','endIndex','find','iterator','filter','decorate','slice','kind','beginInkMode','OPERATION','smooth','getOwnPropertyDescriptor','segmentIndex','start','prototype','type','ratio','color','Round','distance','point','2cOGgSL','NoFill','anchors','SolidLine','_commandService','push','hypot','min','973326xGVAaR','round','110sAsyTy','createId'];_0x4eef=function(){return _0x496427;};return _0x4eef();}var Te=class{constructor(){const _0x13fc70=_0x4602de;Y(this,_0x13fc70(0x1d6),[]);}['registerAdapter'](_0x21da3f){const _0x542b73=_0x4602de;return this['_adapters'][_0x542b73(0x20b)](_0x21da3f),_0x373e13(()=>{const _0x1f15f7=_0x542b73;let _0x1a116b=this[_0x1f15f7(0x1d6)]['indexOf'](_0x21da3f);_0x1a116b>=0x0&&this['_adapters'][_0x1f15f7(0x1e9)](_0x1a116b,0x1);});}[_0x4602de(0x1f9)](_0x5db213){const _0x15ac98=_0x4602de;for(let _0x324ad8 of this['_adapters'])if(_0x324ad8[_0x15ac98(0x1f9)](_0x5db213))return!0x0;return!0x1;}async[_0x4602de(0x1d4)](_0x548593){const _0x17606c=_0x4602de;for(let _0x4ccc14 of this[_0x17606c(0x1d6)])if(_0x4ccc14[_0x17606c(0x1d4)]&&await _0x4ccc14[_0x17606c(0x1d4)](_0x548593))return!0x0;return!0x1;}};const Ee={'id':_0x4602de(0x1cb),'type':_0x3e6dda[_0x4602de(0x1fa)],'handler':(_0x3a5dbd,_0x2585f5)=>_0x2585f5?_0x3a5dbd[_0x4602de(0x1d5)](X)[_0x4602de(0x1f9)](_0x2585f5):!0x1},Z={};function Q(_0x932558,_0x2acae1){return function(_0x1c3776,_0x1cc47c){_0x2acae1(_0x1c3776,_0x1cc47c,_0x932558);};}function De(_0x382d75,_0x1a89e1,_0x88ebdb,_0x174c17){const _0x450c75=_0x4602de;var _0x167094=arguments['length'],_0x1012ae=_0x167094<0x3?_0x1a89e1:_0x174c17===null?_0x174c17=Object[_0x450c75(0x1fc)](_0x1a89e1,_0x88ebdb):_0x174c17,_0x5abb30;if(typeof Reflect==_0x450c75(0x1ce)&&typeof Reflect[_0x450c75(0x1f6)]=='function')_0x1012ae=Reflect[_0x450c75(0x1f6)](_0x382d75,_0x1a89e1,_0x88ebdb,_0x174c17);else{for(var _0x5857d2=_0x382d75[_0x450c75(0x1e2)]-0x1;_0x5857d2>=0x0;_0x5857d2--)(_0x5abb30=_0x382d75[_0x5857d2])&&(_0x1012ae=(_0x167094<0x3?_0x5abb30(_0x1012ae):_0x167094>0x3?_0x5abb30(_0x1a89e1,_0x88ebdb,_0x1012ae):_0x5abb30(_0x1a89e1,_0x88ebdb))||_0x1012ae);}return _0x167094>0x3&&_0x1012ae&&Object[_0x450c75(0x1d3)](_0x1a89e1,_0x88ebdb,_0x1012ae),_0x1012ae;}let $=class extends _0x1732ef{constructor(_0x49581a=Z,_0x2251c4,_0x2e4743,_0x25a73b){const _0x4a00e1=_0x4602de;super(),this['_config']=_0x49581a,this[_0x4a00e1(0x1dd)]=_0x2251c4,this[_0x4a00e1(0x20a)]=_0x2e4743,this[_0x4a00e1(0x1c8)]=_0x25a73b;let {..._0x2bde7d}=_0x2ec470({},Z,this[_0x4a00e1(0x1c3)]);this['_configService']['setConfig']('ink.config',_0x2bde7d);}['onStarting'](){const _0x5791bb=_0x4602de;[[X,{'useClass':Te}]][_0x5791bb(0x1eb)](_0x1192e8=>this[_0x5791bb(0x1dd)][_0x5791bb(0x1ed)](_0x1192e8)),this[_0x5791bb(0x1dc)](this[_0x5791bb(0x20a)][_0x5791bb(0x212)](Ee));}};Y($,_0x4602de(0x1da),'UNIVER_INK_PLUGIN'),Y($,'packageName',Se),Y($,_0x4602de(0x1db),Ce),Y($,_0x4602de(0x200),_0x2f3686[_0x4602de(0x1bb)]),$=De([_0x21f9f4(_0x1c9fb0),Q(0x1,_0x83b12a(_0x4b9262)),Q(0x2,_0x44cbdf),Q(0x3,_0x74df07)],$);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
- const _0x2cfa6e=_0xd57f;(function(_0xa6c3d,_0x5a3e6f){const _0x57964c=_0xd57f,_0x368bfd=_0xa6c3d();while(!![]){try{const _0x319c34=parseInt(_0x57964c(0x1f6))/0x1*(-parseInt(_0x57964c(0x1ee))/0x2)+-parseInt(_0x57964c(0x1ff))/0x3+-parseInt(_0x57964c(0x200))/0x4*(parseInt(_0x57964c(0x203))/0x5)+-parseInt(_0x57964c(0x1f3))/0x6+-parseInt(_0x57964c(0x1e6))/0x7*(parseInt(_0x57964c(0x1f0))/0x8)+-parseInt(_0x57964c(0x1f1))/0x9+parseInt(_0x57964c(0x20f))/0xa;if(_0x319c34===_0x5a3e6f)break;else _0x368bfd['push'](_0x368bfd['shift']());}catch(_0x512c0f){_0x368bfd['push'](_0x368bfd['shift']());}}}(_0x2dfd,0x49c63));import{BoardElementType as _0x4e7b15}from'@univerjs-pro/boards';import{FBoard as _0xebe1c}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x31666b}from'@univerjs-pro/ink';import{Tools as _0x447e92,generateRandomId as _0x34bf1c}from'@univerjs/core';import{FEnum as _0x5bba3f}from'@univerjs/core/facade';var o=class extends _0xebe1c{[_0x2cfa6e(0x1fc)](_0x17d32f){const _0x500168=_0x2cfa6e;let _0x258762=s(_0x17d32f);return _0x258762&&this[_0x500168(0x206)](_0x258762,{'insertIndex':_0x17d32f[_0x500168(0x1e2)]})?_0x258762:null;}['getInks'](){const _0x5e79e4=_0x2cfa6e;return this[_0x5e79e4(0x1e3)]({'elementType':_0x4e7b15[_0x5e79e4(0x1f2)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x5e79e4(0x1f5)](p);}};function s(_0x4653d1,_0x5e12fd){const _0x3309f8=_0x2cfa6e;var _0xea6977,_0x2c217b,_0xf4e382;if(!l(_0x4653d1[_0x3309f8(0x1ea)])||_0x4653d1[_0x3309f8(0x1f4)]!==void 0x0&&!l(_0x4653d1[_0x3309f8(0x1f4)])||!u(_0x4653d1[_0x3309f8(0x20a)]))return null;let _0x2d33b7=(_0xea6977=_0x4653d1['parentId'])==null?_0x5e12fd==null?void 0x0:_0x5e12fd[_0x3309f8(0x201)]:_0xea6977,_0x336461=_0x447e92[_0x3309f8(0x20d)](_0x4653d1[_0x3309f8(0x1ea)]),_0x259f25=_0x31666b({'model':_0x336461,'style':_0x4653d1[_0x3309f8(0x20a)],'tool':_0x4653d1[_0x3309f8(0x210)],'sourceModel':_0x4653d1['sourceModel']?_0x447e92[_0x3309f8(0x20d)](_0x4653d1[_0x3309f8(0x1f4)]):_0x336461}),_0x7b3cc0=d(_0x5e12fd==null?void 0x0:_0x5e12fd[_0x3309f8(0x1e1)]);return{'id':(_0x2c217b=(_0xf4e382=_0x5e12fd==null?void 0x0:_0x5e12fd['id'])==null?_0x4653d1['id']:_0xf4e382)==null?_0x34bf1c(0x6):_0x2c217b,'type':_0x4e7b15[_0x3309f8(0x1f2)],'transform':_0x259f25[_0x3309f8(0x1e4)],'shapeData':_0x259f25[_0x3309f8(0x1ef)],'parentId':_0x2d33b7==null?void 0x0:_0x2d33b7,'laneId':_0x4653d1[_0x3309f8(0x205)]===void 0x0?_0x5e12fd==null?void 0x0:_0x5e12fd['laneId']:_0x4653d1[_0x3309f8(0x205)],'custom':{..._0x7b3cc0,'ink':_0x259f25[_0x3309f8(0x1f9)]}};}function _0xd57f(_0x203831,_0x4dce9f){_0x203831=_0x203831-0x1e1;const _0x2dfd8e=_0x2dfd();let _0xd57f3a=_0x2dfd8e[_0x203831];return _0xd57f3a;}function c(_0x4c2ae3){const _0x199240=_0x2cfa6e;return Number[_0x199240(0x1eb)](_0x4c2ae3['x'])&&Number['isFinite'](_0x4c2ae3['y']);}function l(_0x5b629a){const _0x11f44e=_0x2cfa6e;if(_0x5b629a[_0x11f44e(0x20c)]===_0x11f44e(0x20b)){let _0x178184=new Set();return _0x5b629a[_0x11f44e(0x1ed)][_0x11f44e(0x202)]>=(_0x5b629a['closed']?0x3:0x2)&&_0x5b629a['anchors']['every'](_0x2d6af8=>{const _0x34fe97=_0x11f44e;let _0xc2ec57=_0x2d6af8['id'][_0x34fe97(0x1fe)]()['length']>0x0&&!_0x178184[_0x34fe97(0x207)](_0x2d6af8['id'])&&c(_0x2d6af8)&&(!_0x2d6af8['in']||c(_0x2d6af8['in']))&&(!_0x2d6af8['out']||c(_0x2d6af8[_0x34fe97(0x1fa)]));return _0x178184['add'](_0x2d6af8['id']),_0xc2ec57;});}return _0x5b629a[_0x11f44e(0x1f7)][_0x11f44e(0x202)]>=0x2&&_0x5b629a[_0x11f44e(0x1f7)][_0x11f44e(0x1fd)](_0x5e74a5=>c(_0x5e74a5)&&Number[_0x11f44e(0x1eb)](_0x5e74a5['t'])&&(_0x5e74a5['pressure']===void 0x0||Number[_0x11f44e(0x1eb)](_0x5e74a5[_0x11f44e(0x20e)])))&&Number[_0x11f44e(0x1eb)](_0x5b629a[_0x11f44e(0x1e9)])&&_0x5b629a[_0x11f44e(0x1e9)]>0x0&&Number['isFinite'](_0x5b629a[_0x11f44e(0x212)])&&_0x5b629a[_0x11f44e(0x212)]>=0x0&&_0x5b629a[_0x11f44e(0x212)]<=0x1;}function _0x2dfd(){const _0x4a9e71=['BoardInkTool','style','pen','kind','deepClone','pressure','24855820VLhNJn','tool','extend','opacity','custom','insertIndex','findElements','transform','type','26677jcZtik','brush','free','width','model','isFinite','object','anchors','13484HTyUTS','shapeData','608xdWkGe','5131485DrDRAB','Shape','1096494pHmHXN','sourceModel','filter','82lQdqxy','points','BoardInkPointType','ink','out','version','insertInk','every','trim','539628sPYcnA','4guTYbO','parentId','length','2040665bblXrM','anchor','laneId','addElement','has','isArray'];_0x2dfd=function(){return _0x4a9e71;};return _0x2dfd();}function u(_0x3e2ff8){const _0x586cb2=_0x2cfa6e;return _0x3e2ff8===void 0x0||(_0x3e2ff8[_0x586cb2(0x1e9)]===void 0x0||Number[_0x586cb2(0x1eb)](_0x3e2ff8['width'])&&_0x3e2ff8['width']>0x0)&&(_0x3e2ff8[_0x586cb2(0x212)]===void 0x0||Number[_0x586cb2(0x1eb)](_0x3e2ff8['opacity'])&&_0x3e2ff8['opacity']>=0x0&&_0x3e2ff8[_0x586cb2(0x212)]<=0x1);}function d(_0x98b6a8){const _0x1b9060=_0x2cfa6e;return _0x98b6a8&&typeof _0x98b6a8==_0x1b9060(0x1ec)&&!Array[_0x1b9060(0x208)](_0x98b6a8)?_0x98b6a8:{};}function f(_0x5a9907){const _0x26ff84=_0x2cfa6e;let _0x43ce2c=d(_0x5a9907[_0x26ff84(0x1e1)])[_0x26ff84(0x1f9)];if(!_0x43ce2c||typeof _0x43ce2c!=_0x26ff84(0x1ec)||Array[_0x26ff84(0x208)](_0x43ce2c))return null;let _0x58d784=_0x43ce2c;return _0x58d784[_0x26ff84(0x1fb)]===0x1&&_0x58d784[_0x26ff84(0x1f4)]&&typeof _0x58d784[_0x26ff84(0x1f4)]=='object'?_0x58d784:null;}function p(_0x49aef5){const _0x5271a0=_0x2cfa6e;return _0x49aef5[_0x5271a0(0x1e5)]===_0x4e7b15['Shape']&&!!f(_0x49aef5);}_0xebe1c[_0x2cfa6e(0x211)](o);const m={'Pen':'pen','Brush':_0x2cfa6e(0x1e7),'Highlighter':'highlighter'},h={'Corner':'corner','Smooth':'smooth','Symmetric':'symmetric','Free':_0x2cfa6e(0x1e8)},g={'Anchor':_0x2cfa6e(0x204),'In':'in','Out':_0x2cfa6e(0x1fa)};var _=class extends _0x5bba3f{get[_0x2cfa6e(0x209)](){return m;}get[_0x2cfa6e(0x1f8)](){return h;}get['BoardInkHandleKind'](){return g;}};_0x5bba3f['extend'](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
1
+ const _0x525814=_0x4e45;(function(_0x408dc1,_0x160f1f){const _0x2dcb88=_0x4e45,_0x2e485d=_0x408dc1();while(!![]){try{const _0x49ba32=-parseInt(_0x2dcb88(0xd0))/0x1+-parseInt(_0x2dcb88(0xd2))/0x2+parseInt(_0x2dcb88(0xd8))/0x3+-parseInt(_0x2dcb88(0xaf))/0x4+parseInt(_0x2dcb88(0xb1))/0x5+parseInt(_0x2dcb88(0xce))/0x6*(parseInt(_0x2dcb88(0xd1))/0x7)+-parseInt(_0x2dcb88(0xb7))/0x8*(-parseInt(_0x2dcb88(0xbc))/0x9);if(_0x49ba32===_0x160f1f)break;else _0x2e485d['push'](_0x2e485d['shift']());}catch(_0x39af4f){_0x2e485d['push'](_0x2e485d['shift']());}}}(_0x21eb,0xe60aa));import{BoardElementType as _0x55b8b6}from'@univerjs-pro/boards';import{FBoard as _0x2c50cd}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x353af6}from'@univerjs-pro/ink';import{Tools as _0xd1ba4b,generateRandomId as _0x57464c}from'@univerjs/core';import{FEnum as _0x2652ab}from'@univerjs/core/facade';var o=class extends _0x2c50cd{[_0x525814(0xd5)](_0x4a95f7){const _0x50ea36=_0x525814;let _0x2e1e74=s(_0x4a95f7);return _0x2e1e74&&this['addElement'](_0x2e1e74,{'insertIndex':_0x4a95f7[_0x50ea36(0xab)]})?_0x2e1e74:null;}[_0x525814(0xcd)](){const _0x34ee35=_0x525814;return this['findElements']({'elementType':_0x55b8b6['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x34ee35(0xb0)](p);}};function _0x4e45(_0x43a7cf,_0x4de9ee){_0x43a7cf=_0x43a7cf-0xa7;const _0x21eb0c=_0x21eb();let _0x4e45f8=_0x21eb0c[_0x43a7cf];return _0x4e45f8;}function s(_0x114ec4,_0x53f49a){const _0x32a01b=_0x525814;var _0x456dc3,_0x100fb6,_0x5e5ec7;if(!l(_0x114ec4['model'])||_0x114ec4['sourceModel']!==void 0x0&&!l(_0x114ec4[_0x32a01b(0xad)])||!u(_0x114ec4[_0x32a01b(0xb4)]))return null;let _0x12eb4a=(_0x456dc3=_0x114ec4['parentId'])==null?_0x53f49a==null?void 0x0:_0x53f49a[_0x32a01b(0xbf)]:_0x456dc3,_0x2b177e=_0xd1ba4b['deepClone'](_0x114ec4[_0x32a01b(0xc5)]),_0x616cd1=_0x353af6({'model':_0x2b177e,'style':_0x114ec4[_0x32a01b(0xb4)],'tool':_0x114ec4['tool'],'sourceModel':_0x114ec4[_0x32a01b(0xad)]?_0xd1ba4b['deepClone'](_0x114ec4[_0x32a01b(0xad)]):_0x2b177e}),_0x5b5f0c=d(_0x53f49a==null?void 0x0:_0x53f49a[_0x32a01b(0xcf)]);return{'id':(_0x100fb6=(_0x5e5ec7=_0x53f49a==null?void 0x0:_0x53f49a['id'])==null?_0x114ec4['id']:_0x5e5ec7)==null?_0x57464c(0x6):_0x100fb6,'type':_0x55b8b6[_0x32a01b(0xb2)],'transform':_0x616cd1['transform'],'shapeData':_0x616cd1[_0x32a01b(0xd7)],'parentId':_0x12eb4a==null?void 0x0:_0x12eb4a,'laneId':_0x114ec4[_0x32a01b(0xc6)]===void 0x0?_0x53f49a==null?void 0x0:_0x53f49a['laneId']:_0x114ec4['laneId'],'custom':{..._0x5b5f0c,'ink':_0x616cd1['ink']}};}function c(_0x5cf138){const _0x5758ad=_0x525814;return Number['isFinite'](_0x5cf138['x'])&&Number[_0x5758ad(0xd3)](_0x5cf138['y']);}function l(_0x432d2b){const _0x468c8a=_0x525814;if(_0x432d2b[_0x468c8a(0xc3)]===_0x468c8a(0xb5)){let _0x25d769=new Set();return _0x432d2b['anchors'][_0x468c8a(0xbe)]>=(_0x432d2b[_0x468c8a(0xb8)]?0x3:0x2)&&_0x432d2b[_0x468c8a(0xc8)][_0x468c8a(0xd6)](_0x3d9579=>{const _0x42b8cf=_0x468c8a;let _0xc84869=_0x3d9579['id']['trim']()[_0x42b8cf(0xbe)]>0x0&&!_0x25d769[_0x42b8cf(0xc1)](_0x3d9579['id'])&&c(_0x3d9579)&&(!_0x3d9579['in']||c(_0x3d9579['in']))&&(!_0x3d9579[_0x42b8cf(0xac)]||c(_0x3d9579['out']));return _0x25d769['add'](_0x3d9579['id']),_0xc84869;});}return _0x432d2b[_0x468c8a(0xcc)][_0x468c8a(0xbe)]>=0x2&&_0x432d2b['points'][_0x468c8a(0xd6)](_0x4aa43c=>c(_0x4aa43c)&&Number['isFinite'](_0x4aa43c['t'])&&(_0x4aa43c[_0x468c8a(0xb9)]===void 0x0||Number[_0x468c8a(0xd3)](_0x4aa43c['pressure'])))&&Number['isFinite'](_0x432d2b[_0x468c8a(0xc7)])&&_0x432d2b[_0x468c8a(0xc7)]>0x0&&Number[_0x468c8a(0xd3)](_0x432d2b[_0x468c8a(0xc0)])&&_0x432d2b[_0x468c8a(0xc0)]>=0x0&&_0x432d2b[_0x468c8a(0xc0)]<=0x1;}function u(_0x1d4a75){const _0x4a0734=_0x525814;return _0x1d4a75===void 0x0||(_0x1d4a75['width']===void 0x0||Number['isFinite'](_0x1d4a75[_0x4a0734(0xc7)])&&_0x1d4a75['width']>0x0)&&(_0x1d4a75[_0x4a0734(0xc0)]===void 0x0||Number[_0x4a0734(0xd3)](_0x1d4a75[_0x4a0734(0xc0)])&&_0x1d4a75[_0x4a0734(0xc0)]>=0x0&&_0x1d4a75[_0x4a0734(0xc0)]<=0x1);}function d(_0x4e44be){return _0x4e44be&&typeof _0x4e44be=='object'&&!Array['isArray'](_0x4e44be)?_0x4e44be:{};}function f(_0x242149){const _0x539956=_0x525814;let _0x2bae49=d(_0x242149[_0x539956(0xcf)])[_0x539956(0xbb)];if(!_0x2bae49||typeof _0x2bae49!=_0x539956(0xb3)||Array[_0x539956(0xbd)](_0x2bae49))return null;let _0x11b8b9=_0x2bae49;return _0x11b8b9[_0x539956(0xa7)]===0x1&&_0x11b8b9[_0x539956(0xad)]&&typeof _0x11b8b9[_0x539956(0xad)]=='object'?_0x11b8b9:null;}function p(_0x11552d){const _0x301c34=_0x525814;return _0x11552d[_0x301c34(0xae)]===_0x55b8b6[_0x301c34(0xb2)]&&!!f(_0x11552d);}_0x2c50cd['extend'](o);const m={'Pen':_0x525814(0xb5),'Brush':_0x525814(0xba),'Highlighter':_0x525814(0xb6)},h={'Corner':_0x525814(0xc2),'Smooth':_0x525814(0xc9),'Symmetric':_0x525814(0xcb),'Free':_0x525814(0xc4)},g={'Anchor':_0x525814(0xa8),'In':'in','Out':_0x525814(0xac)};var _=class extends _0x2652ab{get[_0x525814(0xa9)](){return m;}get[_0x525814(0xca)](){return h;}get[_0x525814(0xaa)](){return g;}};function _0x21eb(){const _0x122626=['object','style','pen','highlighter','72OugIvA','closed','pressure','brush','ink','1902213fpqJKx','isArray','length','parentId','opacity','has','corner','kind','free','model','laneId','width','anchors','smooth','BoardInkPointType','symmetric','points','getInks','1266fKemzc','custom','961911jgZdLS','4333rYSQdR','1310118LSdpVm','isFinite','extend','insertInk','every','shapeData','1869561pFPvDD','version','anchor','BoardInkTool','BoardInkHandleKind','insertIndex','out','sourceModel','type','2909508zTnuul','filter','3152940KMdtIA','Shape'];_0x21eb=function(){return _0x122626;};return _0x21eb();}_0x2652ab[_0x525814(0xd4)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2e3b56=_0x2d27;(function(_0x4c131a,_0xc0d08c){const _0x3c99fd=_0x2d27,_0x244389=_0x4c131a();while(!![]){try{const _0x589aa8=-parseInt(_0x3c99fd(0x141))/0x1+-parseInt(_0x3c99fd(0x117))/0x2+-parseInt(_0x3c99fd(0x136))/0x3*(-parseInt(_0x3c99fd(0x14d))/0x4)+-parseInt(_0x3c99fd(0x134))/0x5*(-parseInt(_0x3c99fd(0x150))/0x6)+parseInt(_0x3c99fd(0x14a))/0x7*(parseInt(_0x3c99fd(0x14c))/0x8)+parseInt(_0x3c99fd(0x104))/0x9+-parseInt(_0x3c99fd(0xff))/0xa;if(_0x589aa8===_0xc0d08c)break;else _0x244389['push'](_0x244389['shift']());}catch(_0x4669aa){_0x244389['push'](_0x244389['shift']());}}}(_0x247f,0xd5749));import{ShapeFillEnum as _0x49ffcc,ShapeLineCapEnum as _0x159578,ShapeLineJoinEnum as _0x424331,ShapeLineTypeEnum as _0x56f9e7,ShapeTypeEnum as _0x497e0c}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x28261b}from'@univerjs-pro/license';import{CommandType as _0x1a46d0,DependentOn as _0x4e5fed,ICommandService as _0xb74673,IConfigService as _0xec36e4,Inject as _0x36e470,Injector as _0x80316c,Plugin as _0x5b9715,UniverInstanceType as _0x2c0ee9,createIdentifier as _0x1b5b97,merge as _0x48ad06,toDisposable as _0x1d67f1}from'@univerjs/core';const g=0.0001;function _(_0x93d90e){return{'x':_0x93d90e['x'],'y':_0x93d90e['y']};}function v(_0x2f80e2){const _0x48f252=_0x2d27;return{..._0x2f80e2,'in':_0x2f80e2['in']?_(_0x2f80e2['in']):void 0x0,'out':_0x2f80e2[_0x48f252(0x12d)]?_(_0x2f80e2[_0x48f252(0x12d)]):void 0x0};}function y(_0x3dd440){const _0x4e56b8=_0x2d27;return{'kind':_0x4e56b8(0x135),'closed':_0x3dd440[_0x4e56b8(0xf3)],'anchors':_0x3dd440[_0x4e56b8(0xf6)][_0x4e56b8(0x118)](v)};}function b(_0x7d5dc5,_0x15bbd2,_0x5b3e5b){return{'x':_0x7d5dc5['x']+(_0x15bbd2['x']-_0x7d5dc5['x'])*_0x5b3e5b,'y':_0x7d5dc5['y']+(_0x15bbd2['y']-_0x7d5dc5['y'])*_0x5b3e5b};}function x(_0x5e0605,_0xba7a24){const _0x3a05da=_0x2d27;return Math[_0x3a05da(0x13f)](_0x5e0605['x']-_0xba7a24['x'],_0x5e0605['y']-_0xba7a24['y']);}function S(_0x3e5676){let _0x2c0eab=Math['hypot'](_0x3e5676['x'],_0x3e5676['y']);return _0x2c0eab<g?{'x':0x1,'y':0x0}:{'x':_0x3e5676['x']/_0x2c0eab,'y':_0x3e5676['y']/_0x2c0eab};}function C(_0x562caf,_0x226fd2,_0x1c68a7=x(_0x562caf,_0x226fd2)){let _0x5f39ea=S({'x':_0x562caf['x']-_0x226fd2['x'],'y':_0x562caf['y']-_0x226fd2['y']});return{'x':_0x562caf['x']+_0x5f39ea['x']*_0x1c68a7,'y':_0x562caf['y']+_0x5f39ea['y']*_0x1c68a7};}function w(_0x12e1a1,_0xc9f4eb){const _0x29efe8=_0x2d27;let {anchors:_0x32538a}=_0x12e1a1;return _0x32538a[_0x29efe8(0xfd)]<0x2||_0xc9f4eb<0x0?null:_0xc9f4eb<_0x32538a[_0x29efe8(0xfd)]-0x1?{'startIndex':_0xc9f4eb,'endIndex':_0xc9f4eb+0x1,'start':_0x32538a[_0xc9f4eb],'end':_0x32538a[_0xc9f4eb+0x1]}:_0x12e1a1[_0x29efe8(0xf3)]&&_0xc9f4eb===_0x32538a[_0x29efe8(0xfd)]-0x1?{'startIndex':_0x32538a[_0x29efe8(0xfd)]-0x1,'endIndex':0x0,'start':_0x32538a[_0x32538a[_0x29efe8(0xfd)]-0x1],'end':_0x32538a[0x0]}:null;}function T(_0x3af419,_0x5a2f28){const _0x28472f=_0x2d27;var _0xe45d6d,_0x3c9187;let _0x312b4a=w(_0x3af419,_0x5a2f28);return _0x312b4a?[_0x312b4a['start'],(_0xe45d6d=_0x312b4a[_0x28472f(0x13d)]['out'])==null?_0x312b4a[_0x28472f(0x13d)]:_0xe45d6d,(_0x3c9187=_0x312b4a[_0x28472f(0x12a)]['in'])==null?_0x312b4a['end']:_0x3c9187,_0x312b4a[_0x28472f(0x12a)]]:null;}function te(_0x23930b,_0x56f055){var _0x93976d;return _0x56f055==='anchor'?_0x23930b:(_0x93976d=_0x23930b[_0x56f055])==null?null:_0x93976d;}function E(_0x309a8f,_0x328de8,_0x41bfca){const _0x196086=_0x2d27;return _0x41bfca===_0x196086(0x14b)||_0x309a8f['closed']?!0x0:_0x41bfca==='in'?_0x328de8>0x0:_0x328de8<_0x309a8f[_0x196086(0xf6)][_0x196086(0xfd)]-0x1;}function D(_0x3da967,_0x59837c){let [_0x3062f1,_0x41b561,_0x5912d9,_0x2c96f2]=_0x3da967,_0x281ee8=b(_0x3062f1,_0x41b561,_0x59837c),_0x3a35ca=b(_0x41b561,_0x5912d9,_0x59837c),_0x40e013=b(_0x5912d9,_0x2c96f2,_0x59837c);return b(b(_0x281ee8,_0x3a35ca,_0x59837c),b(_0x3a35ca,_0x40e013,_0x59837c),_0x59837c);}function ne(_0x4e717d,_0x4be864){let [_0x5c90b8,_0x1b56b7,_0x5d0e53,_0x133020]=_0x4e717d,_0x1e418e=b(_0x5c90b8,_0x1b56b7,_0x4be864),_0x105a3d=b(_0x1b56b7,_0x5d0e53,_0x4be864),_0x17a6f6=b(_0x5d0e53,_0x133020,_0x4be864),_0x50d6f0=b(_0x1e418e,_0x105a3d,_0x4be864),_0x25b650=b(_0x105a3d,_0x17a6f6,_0x4be864),_0x4324a4=b(_0x50d6f0,_0x25b650,_0x4be864);return{'left':[_0x5c90b8,_0x1e418e,_0x50d6f0,_0x4324a4],'right':[_0x4324a4,_0x25b650,_0x17a6f6,_0x133020]};}function O(_0x568316,_0x8fe576,_0x24e20c){const _0x2a6fb9=_0x2d27;let _0x1217c4=_0x24e20c['x']-_0x8fe576['x'],_0x50afb7=_0x24e20c['y']-_0x8fe576['y'],_0x3d2ba6=_0x1217c4*_0x1217c4+_0x50afb7*_0x50afb7,_0x5a48f2=_0x3d2ba6<=g?0x0:Math[_0x2a6fb9(0x12c)](0x0,Math[_0x2a6fb9(0x101)](0x1,((_0x568316['x']-_0x8fe576['x'])*_0x1217c4+(_0x568316['y']-_0x8fe576['y'])*_0x50afb7)/_0x3d2ba6)),_0x281122={'x':_0x8fe576['x']+_0x1217c4*_0x5a48f2,'y':_0x8fe576['y']+_0x50afb7*_0x5a48f2};return{'point':_0x281122,'ratio':_0x5a48f2,'distance':x(_0x568316,_0x281122)};}function re(_0x8929f2,_0x19c3a7,_0x3f059c){const _0xf6fdb3=_0x2d27;return O(_0x8929f2,_0x19c3a7,_0x3f059c)[_0xf6fdb3(0x124)]**0x2;}function k(_0x44a6b9,_0x1f14a8){const _0x21b679=_0x2d27;if(_0x44a6b9['length']<=0x2)return _0x44a6b9[_0x21b679(0x118)](_);let _0x2b772b=0x0,_0x623dbd=0x0,_0x17c922=_0x44a6b9[0x0],_0x13b4c0=_0x44a6b9[_0x44a6b9[_0x21b679(0xfd)]-0x1],_0x4f0163=_0x1f14a8*_0x1f14a8;for(let _0x49e9fe=0x1;_0x49e9fe<_0x44a6b9[_0x21b679(0xfd)]-0x1;_0x49e9fe++){let _0x65de19=re(_0x44a6b9[_0x49e9fe],_0x17c922,_0x13b4c0);_0x65de19>_0x2b772b&&(_0x2b772b=_0x65de19,_0x623dbd=_0x49e9fe);}if(_0x2b772b<=_0x4f0163)return[_(_0x17c922),_(_0x13b4c0)];let _0x229531=k(_0x44a6b9[_0x21b679(0x145)](0x0,_0x623dbd+0x1),_0x1f14a8),_0x535a3c=k(_0x44a6b9[_0x21b679(0x145)](_0x623dbd),_0x1f14a8);return[..._0x229531[_0x21b679(0x145)](0x0,-0x1),..._0x535a3c];}function ie(_0x3a3897,_0x49285e){var _0xd3c9f5;let _0x3966eb=_0x3a3897[_0x49285e],_0x316a82=_0x3a3897[_0x49285e+0x1],_0x3fd794=(_0xd3c9f5=_0x3a3897[_0x49285e-0x1])==null?_0x3966eb:_0xd3c9f5;return{'x':_0x3966eb['x']+(_0x316a82['x']-_0x3fd794['x'])/0x6,'y':_0x3966eb['y']+(_0x316a82['y']-_0x3fd794['y'])/0x6};}function _0x247f(){const _0x26e9bc=['@univerjs-pro/ink','prototype','length','packageName','7567630prCMQm','abs','min','push','version','10429299ZjHrLH','registerCommand','find','getOwnPropertyDescriptor','toPrimitive','endIndex','#f54a45','symmetric','UNIVER_UNKNOWN','object','norm','width','ink.operation.start','kind','function','splice','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ink-centerline-','constructor','541956zKekGH','map','UNIVER_INK_PLUGIN','free','fillColor','call','right','get','string','left','ink.host-adapter.service','onStarting','pointType','distance','createCustomShape','findIndex','1.0.0-alpha.4','beginInkMode','disposeWithMe','end','sqrt','max','out','add','startIndex','Round','height','_injector','filter','95XEbvsi','pen','797925RjAFqT','_config','point','opacity','segmentIndex','_adapters','top','start','round','hypot','createId','1642436CuQJDo','join','points','smooth','slice','iterator','OPERATION','_configService','defineProperty','18536IyuewX','anchor','4408WoluzB','12rgDCWn','symbol','decorate','40644afCmFH','__ink-preview-anchor__','closed','type','color','anchors','ratio','forEach','corner','SolidFill'];_0x247f=function(){return _0x26e9bc;};return _0x247f();}function A(_0x29dfd6,_0x4ad533){var _0x1d655e;let _0x2db7b9=_0x29dfd6[_0x4ad533],_0xb0196e=_0x29dfd6[_0x4ad533-0x1],_0x48cf2c=(_0x1d655e=_0x29dfd6[_0x4ad533+0x1])==null?_0x2db7b9:_0x1d655e;return{'x':_0x2db7b9['x']-(_0x48cf2c['x']-_0xb0196e['x'])/0x6,'y':_0x2db7b9['y']-(_0x48cf2c['y']-_0xb0196e['y'])/0x6};}function _0x2d27(_0x46a514,_0x325767){_0x46a514=_0x46a514-0xf2;const _0x247f78=_0x247f();let _0x2d2719=_0x247f78[_0x46a514];return _0x2d2719;}function j(_0x312d14,_0x3bfc1d){const _0x1bad7c=_0x2d27;var _0x243b5a,_0x4d1069;let _0x481987=_0x312d14[_0x1bad7c(0xf6)][_0x3bfc1d],_0x2745e6=(_0x243b5a=_0x312d14[_0x1bad7c(0xf6)][_0x3bfc1d-0x1])==null?_0x312d14[_0x1bad7c(0xf3)]?_0x312d14['anchors'][_0x312d14['anchors']['length']-0x1]:null:_0x243b5a,_0x2d48eb=(_0x4d1069=_0x312d14[_0x1bad7c(0xf6)][_0x3bfc1d+0x1])==null?_0x312d14['closed']?_0x312d14[_0x1bad7c(0xf6)][0x0]:null:_0x4d1069,_0x4b010d=_0x2745e6&&_0x2d48eb?S({'x':_0x2d48eb['x']-_0x2745e6['x'],'y':_0x2d48eb['y']-_0x2745e6['y']}):_0x2d48eb?S({'x':_0x2d48eb['x']-_0x481987['x'],'y':_0x2d48eb['y']-_0x481987['y']}):_0x2745e6?S({'x':_0x481987['x']-_0x2745e6['x'],'y':_0x481987['y']-_0x2745e6['y']}):{'x':0x1,'y':0x0},_0x527a9b=_0x2745e6&&_0x2d48eb?Math[_0x1bad7c(0x12c)](0x32,x(_0x2745e6,_0x2d48eb)/0x4):0x32;return{'in':{'x':_0x481987['x']-_0x4b010d['x']*_0x527a9b,'y':_0x481987['y']-_0x4b010d['y']*_0x527a9b},'out':{'x':_0x481987['x']+_0x4b010d['x']*_0x527a9b,'y':_0x481987['y']+_0x4b010d['y']*_0x527a9b}};}function M(_0x4b61f5,_0x47e9ac){const _0x57a79f=_0x2d27;let _0x30fa9f=_0x4b61f5[_0x47e9ac],_0xf1448a=_0x47e9ac==='in'?_0x57a79f(0x12d):'in',_0xf05aad=_0x4b61f5[_0xf1448a];if(_0x30fa9f){if(_0x4b61f5[_0x57a79f(0x123)]===_0x57a79f(0x10b)){_0x4b61f5[_0xf1448a]=C(_0x4b61f5,_0x30fa9f);return;}_0x4b61f5[_0x57a79f(0x123)]===_0x57a79f(0x144)&&(_0x4b61f5[_0xf1448a]=C(_0x4b61f5,_0x30fa9f,_0xf05aad?x(_0x4b61f5,_0xf05aad):x(_0x4b61f5,_0x30fa9f)));}}function ae(_0x45c0c5,_0x5b49bd){const _0x382031=_0x2d27;let _0x5207be=y(_0x45c0c5);return!_0x5b49bd||_0x5207be[_0x382031(0xf3)]||_0x5207be[_0x382031(0xf6)]['length']===0x0||_0x5207be['anchors'][_0x382031(0x102)]({'id':_0x382031(0xf2),'x':_0x5b49bd['x'],'y':_0x5b49bd['y'],'pointType':_0x382031(0xf9)}),_0x5207be;}function oe(_0x535ee3,_0x1039f0={}){const _0x15eef8=_0x2d27;var _0x553c01,_0x4656e4;let _0x28b242=Math['max'](0x0,(_0x553c01=_0x1039f0['tolerance'])==null?Math[_0x15eef8(0x12c)](0x4,_0x535ee3[_0x15eef8(0x10f)]*0.35):_0x553c01),_0x3c3ed4=(_0x4656e4=_0x1039f0[_0x15eef8(0x140)])==null?_0x36f06b=>_0x15eef8(0x115)+_0x36f06b:_0x4656e4,_0x841f46=k(_0x535ee3['points'],_0x28b242),_0x627a69=_0x841f46[_0x15eef8(0x118)]((_0x27d562,_0x17cad3)=>({'id':_0x3c3ed4(_0x17cad3),'x':_0x27d562['x'],'y':_0x27d562['y'],'pointType':_0x15eef8(0x11a)}));for(let _0x218981=0x0;_0x218981<_0x627a69[_0x15eef8(0xfd)]-0x1;_0x218981++)_0x627a69[_0x218981]['out']=ie(_0x841f46,_0x218981),_0x627a69[_0x218981+0x1]['in']=A(_0x841f46,_0x218981+0x1);return{'kind':_0x15eef8(0x135),'closed':!0x1,'anchors':_0x627a69};}function se(_0xc5e94,_0x328f48,_0x2ed2f1){const _0x3544be=_0x2d27;let _0x47c61b=null,_0x36d925=[_0x3544be(0x14b),'in',_0x3544be(0x12d)];return _0xc5e94['anchors'][_0x3544be(0xf8)]((_0x54050a,_0x4d5eba)=>{const _0x445449=_0x3544be;_0x36d925[_0x445449(0xf8)](_0x45b0a7=>{const _0x1b5d52=_0x445449;if(!E(_0xc5e94,_0x4d5eba,_0x45b0a7))return;let _0x39e85a=te(_0x54050a,_0x45b0a7);if(!_0x39e85a)return;let _0x59b90a=x(_0x328f48,_0x39e85a);_0x59b90a>_0x2ed2f1||_0x47c61b&&_0x59b90a>=_0x47c61b[_0x1b5d52(0x124)]||(_0x47c61b={'handle':{'kind':_0x45b0a7,'anchorId':_0x54050a['id']},'point':_(_0x39e85a),'distance':_0x59b90a});});}),_0x47c61b;}function ce(_0x2aa1a6,_0xa24ba6,_0x50bd04){const _0x408f8b=_0x2d27;let _0x52aa9d=null,_0x1d8d3e=_0x2aa1a6[_0x408f8b(0xf3)]?_0x2aa1a6['anchors'][_0x408f8b(0xfd)]:Math['max'](0x0,_0x2aa1a6[_0x408f8b(0xf6)][_0x408f8b(0xfd)]-0x1);for(let _0x9e90ec=0x0;_0x9e90ec<_0x1d8d3e;_0x9e90ec++){let _0x15eef5=T(_0x2aa1a6,_0x9e90ec);if(!_0x15eef5)continue;let _0x3f7911=D(_0x15eef5,0x0);for(let _0x212ca8=0x1;_0x212ca8<=0x20;_0x212ca8++){let _0xd40039=D(_0x15eef5,_0x212ca8/0x20),_0x8ab98c=O(_0xa24ba6,_0x3f7911,_0xd40039),_0x1f0163=(_0x212ca8-0x1+_0x8ab98c[_0x408f8b(0xf7)])/0x20;(!_0x52aa9d||_0x8ab98c[_0x408f8b(0x124)]<_0x52aa9d[_0x408f8b(0x124)])&&(_0x52aa9d={'segmentIndex':_0x9e90ec,'t':_0x1f0163,'point':_0x8ab98c[_0x408f8b(0x138)],'distance':_0x8ab98c[_0x408f8b(0x124)]}),_0x3f7911=_0xd40039;}}return _0x52aa9d&&_0x52aa9d[_0x408f8b(0x124)]<=_0x50bd04?_0x52aa9d:null;}function le(_0x24fc32,_0x232477,_0x4366c5){const _0x59f0ac=_0x2d27;let _0x3e97e3=y(_0x24fc32),_0x3ceb53=w(_0x3e97e3,_0x232477[_0x59f0ac(0x13a)]),_0xafa24a=T(_0x3e97e3,_0x232477[_0x59f0ac(0x13a)]);if(!_0x3ceb53||!_0xafa24a)return _0x3e97e3;let _0x377481=ne(_0xafa24a,Math[_0x59f0ac(0x12c)](0x0,Math[_0x59f0ac(0x101)](0x1,_0x232477['t']))),_0x1c360d={'id':_0x4366c5(),'x':_0x377481[_0x59f0ac(0x120)][0x3]['x'],'y':_0x377481[_0x59f0ac(0x120)][0x3]['y'],'in':_(_0x377481[_0x59f0ac(0x120)][0x2]),'out':_(_0x377481['right'][0x1]),'pointType':_0x59f0ac(0x11a)};return _0x3e97e3['anchors'][_0x3ceb53[_0x59f0ac(0x12f)]][_0x59f0ac(0x12d)]=_(_0x377481[_0x59f0ac(0x120)][0x1]),_0x3e97e3['anchors'][_0x3ceb53[_0x59f0ac(0x109)]]['in']=_(_0x377481[_0x59f0ac(0x11d)][0x2]),_0x3e97e3['anchors']['splice'](_0x3ceb53['startIndex']+0x1,0x0,_0x1c360d),_0x3e97e3;}function ue(_0x1d304b,_0x2dcbdb){const _0x5e0eab=_0x2d27;let _0x28febf=y(_0x1d304b);return _0x28febf[_0x5e0eab(0xf6)]=_0x28febf[_0x5e0eab(0xf6)][_0x5e0eab(0x133)](_0x5063e0=>_0x5063e0['id']!==_0x2dcbdb),_0x28febf[_0x5e0eab(0xf3)]&&_0x28febf[_0x5e0eab(0xf6)]['length']<0x3&&(_0x28febf[_0x5e0eab(0xf3)]=!0x1),_0x28febf;}function N(_0x1b48c3,_0x58d544,_0x3da1f7){const _0x8c2eec=_0x2d27;let _0x9f07e2=y(_0x1b48c3),_0x32a433=_0x9f07e2['anchors'][_0x8c2eec(0x126)](_0x1886ea=>_0x1886ea['id']===_0x58d544),_0x332257=_0x9f07e2[_0x8c2eec(0xf6)][_0x32a433];if(!_0x332257)return _0x9f07e2;if(_0x332257['pointType']=_0x3da1f7,_0x3da1f7===_0x8c2eec(0xf9))return delete _0x332257['in'],delete _0x332257['out'],_0x9f07e2;let _0x3364a2=j(_0x9f07e2,_0x32a433);if(_0x332257['in']=_0x332257['in']?_(_0x332257['in']):_0x3364a2['in'],_0x332257[_0x8c2eec(0x12d)]=_0x332257[_0x8c2eec(0x12d)]?_(_0x332257['out']):_0x3364a2[_0x8c2eec(0x12d)],_0x3da1f7===_0x8c2eec(0x10b)){let _0x1678a1=Math['max'](x(_0x332257,_0x332257['in']),x(_0x332257,_0x332257[_0x8c2eec(0x12d)]),0x32),_0x5c06a6=S({'x':_0x332257[_0x8c2eec(0x12d)]['x']-_0x332257['x'],'y':_0x332257[_0x8c2eec(0x12d)]['y']-_0x332257['y']});_0x332257[_0x8c2eec(0x12d)]={'x':_0x332257['x']+_0x5c06a6['x']*_0x1678a1,'y':_0x332257['y']+_0x5c06a6['y']*_0x1678a1},_0x332257['in']={'x':_0x332257['x']-_0x5c06a6['x']*_0x1678a1,'y':_0x332257['y']-_0x5c06a6['y']*_0x1678a1};}else _0x3da1f7==='smooth'&&M(_0x332257,_0x8c2eec(0x12d));return _0x9f07e2;}function P(_0x4646d0,_0x580530){const _0x5d7d61=_0x2d27;var _0x50d22c;let _0x26240d=_0x4646d0[_0x5d7d61(0xf6)][_0x5d7d61(0x106)](_0xa8876f=>_0xa8876f['id']===_0x580530),_0x4f02cd=(_0x50d22c=_0x26240d==null?void 0x0:_0x26240d['pointType'])==null?'corner':_0x50d22c;return N(_0x4646d0,_0x580530,_0x4f02cd===_0x5d7d61(0xf9)?'smooth':_0x4f02cd===_0x5d7d61(0x144)?_0x5d7d61(0x10b):_0x4f02cd===_0x5d7d61(0x10b)?'free':_0x5d7d61(0xf9));}function F(_0x40c323,_0x29c665,_0x209330){const _0x374045=_0x2d27;let _0x1b8478=y(_0x40c323),_0xea8a60=_0x1b8478[_0x374045(0xf6)][_0x374045(0x106)](_0x49529d=>_0x49529d['id']===_0x29c665['anchorId']);if(!_0xea8a60)return _0x1b8478;if(_0x29c665[_0x374045(0x111)]===_0x374045(0x14b)){let _0x462301={'x':_0x209330['x']-_0xea8a60['x'],'y':_0x209330['y']-_0xea8a60['y']};return _0xea8a60['x']=_0x209330['x'],_0xea8a60['y']=_0x209330['y'],_0xea8a60['in']&&(_0xea8a60['in']={'x':_0xea8a60['in']['x']+_0x462301['x'],'y':_0xea8a60['in']['y']+_0x462301['y']}),_0xea8a60[_0x374045(0x12d)]&&(_0xea8a60[_0x374045(0x12d)]={'x':_0xea8a60[_0x374045(0x12d)]['x']+_0x462301['x'],'y':_0xea8a60[_0x374045(0x12d)]['y']+_0x462301['y']}),_0x1b8478;}return _0xea8a60[_0x29c665['kind']]=_(_0x209330),_0xea8a60['pointType']===_0x374045(0xf9)&&(_0xea8a60[_0x374045(0x123)]=_0x374045(0x11a)),M(_0xea8a60,_0x29c665['kind']),_0x1b8478;}const I=1e-9;function L(_0x117846){let _0x125e9d=Math['round'](_0x117846*0x2710)/0x2710;return Object['is'](_0x125e9d,-0x0)?'0':String(_0x125e9d);}function R(_0x3d9356){return L(_0x3d9356['x'])+'\x20'+L(_0x3d9356['y']);}function z(_0x436733,_0x41e7e1){return{'x':_0x436733['x']-_0x41e7e1['x'],'y':_0x436733['y']-_0x41e7e1['y']};}function B(_0x4f1811,_0x3e9e16,_0x5631bf,_0x27f88b,_0x14fa00){let _0x48045a=0x1-_0x14fa00;return{'x':_0x48045a*_0x48045a*_0x48045a*_0x4f1811['x']+0x3*_0x48045a*_0x48045a*_0x14fa00*_0x3e9e16['x']+0x3*_0x48045a*_0x14fa00*_0x14fa00*_0x5631bf['x']+_0x14fa00*_0x14fa00*_0x14fa00*_0x27f88b['x'],'y':_0x48045a*_0x48045a*_0x48045a*_0x4f1811['y']+0x3*_0x48045a*_0x48045a*_0x14fa00*_0x3e9e16['y']+0x3*_0x48045a*_0x14fa00*_0x14fa00*_0x5631bf['y']+_0x14fa00*_0x14fa00*_0x14fa00*_0x27f88b['y']};}function V(_0xc4a6bb,_0x13cdbd,_0x3b91ea,_0x1e62d0){const _0x235fb2=_0x2d27;let _0x59a549=-_0xc4a6bb+0x3*_0x13cdbd-0x3*_0x3b91ea+_0x1e62d0,_0x28f729=0x3*_0xc4a6bb-0x6*_0x13cdbd+0x3*_0x3b91ea,_0x98b950=-0x3*_0xc4a6bb+0x3*_0x13cdbd,_0x39248c=[];if(Math[_0x235fb2(0x100)](_0x59a549)<I){if(Math[_0x235fb2(0x100)](_0x28f729)<I)return _0x39248c;let _0x27ec85=-_0x98b950/(0x2*_0x28f729);return _0x27ec85>0x0&&_0x27ec85<0x1&&_0x39248c[_0x235fb2(0x102)](_0x27ec85),_0x39248c;}let _0xcad79a=_0x28f729*_0x28f729-0x3*_0x59a549*_0x98b950;if(_0xcad79a<0x0)return _0x39248c;let _0xca5800=Math[_0x235fb2(0x12b)](Math[_0x235fb2(0x12c)](0x0,_0xcad79a)),_0x40d2b9=(-_0x28f729+_0xca5800)/(0x3*_0x59a549),_0x595e36=(-_0x28f729-_0xca5800)/(0x3*_0x59a549);return _0x40d2b9>0x0&&_0x40d2b9<0x1&&_0x39248c['push'](_0x40d2b9),_0x595e36>0x0&&_0x595e36<0x1&&Math[_0x235fb2(0x100)](_0x595e36-_0x40d2b9)>I&&_0x39248c[_0x235fb2(0x102)](_0x595e36),_0x39248c;}function H(_0x4910e0,_0x44fd6b,_0x19f924,_0x856b9e,_0x26afec){const _0x4220e6=_0x2d27;_0x4910e0[_0x4220e6(0x102)](_0x44fd6b,_0x26afec),new Set([...V(_0x44fd6b['x'],_0x19f924['x'],_0x856b9e['x'],_0x26afec['x']),...V(_0x44fd6b['y'],_0x19f924['y'],_0x856b9e['y'],_0x26afec['y'])])['forEach'](_0x297f6a=>{const _0x402b5d=_0x4220e6;_0x4910e0[_0x402b5d(0x102)](B(_0x44fd6b,_0x19f924,_0x856b9e,_0x26afec,_0x297f6a));});}function U(_0x9e5b31){const _0x228a31=_0x2d27;let _0x23ab92=_0x9e5b31['anchors'];if(_0x23ab92['length']<=0x1)return _0x23ab92;let _0x24c613=[];for(let _0xe9d1cc=0x1;_0xe9d1cc<_0x23ab92[_0x228a31(0xfd)];_0xe9d1cc++){var _0x249320,_0x3ebdc5;let _0x5416e6=_0x23ab92[_0xe9d1cc-0x1],_0x484ee3=_0x23ab92[_0xe9d1cc];H(_0x24c613,_0x5416e6,(_0x249320=_0x5416e6['out'])==null?_0x5416e6:_0x249320,(_0x3ebdc5=_0x484ee3['in'])==null?_0x484ee3:_0x3ebdc5,_0x484ee3);}if(_0x9e5b31[_0x228a31(0xf3)]&&_0x23ab92[_0x228a31(0xfd)]>0x1){var _0xa48706,_0x85e96a;let _0x25b267=_0x23ab92[_0x23ab92[_0x228a31(0xfd)]-0x1],_0x2ca612=_0x23ab92[0x0];H(_0x24c613,_0x25b267,(_0xa48706=_0x25b267[_0x228a31(0x12d)])==null?_0x25b267:_0xa48706,(_0x85e96a=_0x2ca612['in'])==null?_0x2ca612:_0x85e96a,_0x2ca612);}return _0x24c613;}function de(_0x58a96a){const _0x30b7c0=_0x2d27;let _0x5d8af7=_0x58a96a[_0x30b7c0(0x143)];if(_0x5d8af7[_0x30b7c0(0xfd)]<=0x1)return _0x5d8af7;let _0x6e3779=[];for(let _0x1677b4=0x0;_0x1677b4<_0x5d8af7[_0x30b7c0(0xfd)]-0x1;_0x1677b4++){var _0x7a1805,_0x26e9e1;let _0x3c74ec=_0x5d8af7[_0x1677b4],_0xa88980=_0x5d8af7[_0x1677b4+0x1],_0x577e7c=(_0x7a1805=_0x5d8af7[_0x1677b4-0x1])==null?_0x3c74ec:_0x7a1805,_0x1a9fa3=(_0x26e9e1=_0x5d8af7[_0x1677b4+0x2])==null?_0xa88980:_0x26e9e1;H(_0x6e3779,_0x3c74ec,{'x':_0x3c74ec['x']+(_0xa88980['x']-_0x577e7c['x'])/0x6,'y':_0x3c74ec['y']+(_0xa88980['y']-_0x577e7c['y'])/0x6},{'x':_0xa88980['x']-(_0x1a9fa3['x']-_0x3c74ec['x'])/0x6,'y':_0xa88980['y']-(_0x1a9fa3['y']-_0x3c74ec['y'])/0x6},_0xa88980);}return _0x6e3779;}function fe(_0x33e4f9){const _0x478b36=_0x2d27;return _0x33e4f9['kind']===_0x478b36(0x135)?U(_0x33e4f9):de(_0x33e4f9);}function W(_0x5d90ce){const _0x106ceb=_0x2d27;let _0x3e98c4=Math[_0x106ceb(0x13e)](_0x5d90ce*0x2710)/0x2710;return Object['is'](_0x3e98c4,-0x0)?0x0:_0x3e98c4;}function G(_0x24141b){const _0x15b0eb=_0x2d27;let _0x1ade8a=fe(_0x24141b);if(_0x1ade8a[_0x15b0eb(0xfd)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x45ca80=Math['min'](..._0x1ade8a[_0x15b0eb(0x118)](_0x1b7d25=>_0x1b7d25['x'])),_0x46a414=Math[_0x15b0eb(0x101)](..._0x1ade8a['map'](_0x705e05=>_0x705e05['y'])),_0x34d7f8=Math[_0x15b0eb(0x12c)](..._0x1ade8a[_0x15b0eb(0x118)](_0x82c095=>_0x82c095['x'])),_0x1f3f88=Math[_0x15b0eb(0x12c)](..._0x1ade8a[_0x15b0eb(0x118)](_0x535faa=>_0x535faa['y']));return{'left':W(_0x45ca80),'top':W(_0x46a414),'width':W(Math[_0x15b0eb(0x12c)](0x1,_0x34d7f8-_0x45ca80)),'height':W(Math[_0x15b0eb(0x12c)](0x1,_0x1f3f88-_0x46a414))};}function pe(_0xa8d8f4,_0x2b0cd9){const _0x4e5175=_0x2d27;let _0x2cfd00=_0xa8d8f4[_0x4e5175(0xf6)];if(_0x2cfd00[_0x4e5175(0xfd)]===0x0)return'';let _0x11b554=['M\x20'+R(z(_0x2cfd00[0x0],_0x2b0cd9))];for(let _0x503007=0x1;_0x503007<_0x2cfd00[_0x4e5175(0xfd)];_0x503007++){var _0x3b3e90,_0x35552b;let _0x2e6325=_0x2cfd00[_0x503007-0x1],_0x33aae5=_0x2cfd00[_0x503007],_0xe60940=(_0x3b3e90=_0x2e6325[_0x4e5175(0x12d)])==null?_0x2e6325:_0x3b3e90,_0x4d4dc7=(_0x35552b=_0x33aae5['in'])==null?_0x33aae5:_0x35552b;_0x11b554[_0x4e5175(0x102)]('C\x20'+R(z(_0xe60940,_0x2b0cd9))+'\x20'+R(z(_0x4d4dc7,_0x2b0cd9))+'\x20'+R(z(_0x33aae5,_0x2b0cd9)));}if(_0xa8d8f4[_0x4e5175(0xf3)]&&_0x2cfd00[_0x4e5175(0xfd)]>0x1){var _0x1c7e8c,_0x8ac50b;let _0x4e085b=_0x2cfd00[_0x2cfd00[_0x4e5175(0xfd)]-0x1],_0x4e8889=_0x2cfd00[0x0],_0x37249d=(_0x1c7e8c=_0x4e085b[_0x4e5175(0x12d)])==null?_0x4e085b:_0x1c7e8c,_0x4f6674=(_0x8ac50b=_0x4e8889['in'])==null?_0x4e8889:_0x8ac50b;_0x11b554[_0x4e5175(0x102)]('C\x20'+R(z(_0x37249d,_0x2b0cd9))+'\x20'+R(z(_0x4f6674,_0x2b0cd9))+'\x20'+R(z(_0x4e8889,_0x2b0cd9))),_0x11b554['push']('Z');}return _0x11b554[_0x4e5175(0x142)]('\x20');}function me(_0x1cc52a,_0x4a4d69){const _0x347c54=_0x2d27;let _0x30c287=_0x1cc52a[_0x347c54(0x143)][_0x347c54(0x118)](_0x54d188=>z(_0x54d188,_0x4a4d69));if(_0x30c287['length']===0x0)return'';if(_0x30c287[_0x347c54(0xfd)]===0x1)return'M\x20'+R(_0x30c287[0x0]);let _0x1b7e5e=['M\x20'+R(_0x30c287[0x0])];for(let _0x17ca42=0x0;_0x17ca42<_0x30c287[_0x347c54(0xfd)]-0x1;_0x17ca42++){var _0x121d5b,_0x14a5fe;let _0x7749b8=_0x30c287[_0x17ca42],_0x56d6d2=_0x30c287[_0x17ca42+0x1],_0x305900=(_0x121d5b=_0x30c287[_0x17ca42-0x1])==null?_0x7749b8:_0x121d5b,_0x3bc6c5=(_0x14a5fe=_0x30c287[_0x17ca42+0x2])==null?_0x56d6d2:_0x14a5fe,_0x349f2f={'x':_0x7749b8['x']+(_0x56d6d2['x']-_0x305900['x'])/0x6,'y':_0x7749b8['y']+(_0x56d6d2['y']-_0x305900['y'])/0x6},_0x747410={'x':_0x56d6d2['x']-(_0x3bc6c5['x']-_0x7749b8['x'])/0x6,'y':_0x56d6d2['y']-(_0x3bc6c5['y']-_0x7749b8['y'])/0x6};_0x1b7e5e['push']('C\x20'+R(_0x349f2f)+'\x20'+R(_0x747410)+'\x20'+R(_0x56d6d2));}return _0x1b7e5e[_0x347c54(0x142)]('\x20');}function he(_0x533e88,_0xce93b7){const _0x1cc5da=_0x2d27;return _0x533e88[_0x1cc5da(0x111)]==='pen'?pe(_0x533e88,_0xce93b7):me(_0x533e88,_0xce93b7);}function ge(_0x23ed3d,_0x58921a){const _0x1d6f02=_0x2d27;return _0x58921a!=null&&_0x58921a[_0x1d6f02(0xf5)]?_0x58921a['color']:_0x23ed3d[_0x1d6f02(0x111)]===_0x1d6f02(0x135)?_0x1d6f02(0x10a):_0x23ed3d[_0x1d6f02(0xf5)];}function _e(_0x539814,_0x365c2d){const _0x599da3=_0x2d27;return(_0x365c2d==null?void 0x0:_0x365c2d[_0x599da3(0x10f)])===void 0x0?_0x539814[_0x599da3(0x111)]===_0x599da3(0x135)?0x2:_0x539814[_0x599da3(0x10f)]:_0x365c2d[_0x599da3(0x10f)];}function ve(_0xb5c25d,_0x30f7d6){const _0x3524ae=_0x2d27;return(_0x30f7d6==null?void 0x0:_0x30f7d6[_0x3524ae(0x139)])===void 0x0?_0xb5c25d[_0x3524ae(0x111)]==='pen'?void 0x0:_0xb5c25d[_0x3524ae(0x139)]:_0x30f7d6[_0x3524ae(0x139)];}function ye(_0x5702f1,_0x2e8105){const _0x2225d7=_0x2d27;let _0x3eb7bb=G(_0x5702f1),_0x17e9a4=he(_0x5702f1,{'x':_0x3eb7bb[_0x2225d7(0x120)],'y':_0x3eb7bb[_0x2225d7(0x13c)]}),_0x18a039=_0x5702f1[_0x2225d7(0x111)]===_0x2225d7(0x135)&&_0x5702f1['closed'],_0x4cde2d=_0x2e8105==null?void 0x0:_0x2e8105[_0x2225d7(0x11b)];return{'shapeType':_0x497e0c['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3eb7bb[_0x2225d7(0x10f)],'h':_0x3eb7bb[_0x2225d7(0x131)],'fill':_0x18a039?_0x2225d7(0x10e):'none','stroke':!0x0,'data':_0x17e9a4,'dataArray':be(_0x5702f1,{'x':_0x3eb7bb[_0x2225d7(0x120)],'y':_0x3eb7bb[_0x2225d7(0x13c)]})}]},'fill':_0x18a039&&_0x4cde2d?{'color':_0x4cde2d,'fillType':_0x49ffcc[_0x2225d7(0xfa)]}:{'fillType':_0x49ffcc['NoFill']},'stroke':{'color':ge(_0x5702f1,_0x2e8105),'width':_e(_0x5702f1,_0x2e8105),'opacity':ve(_0x5702f1,_0x2e8105),'lineStrokeType':_0x56f9e7['SolidLine'],'capType':_0x159578[_0x2225d7(0x130)],'lineJoinType':_0x424331[_0x2225d7(0x130)]}};}function K(_0x39a490,_0x928a39){return{'x':_0x39a490['x']-_0x928a39['x'],'y':_0x39a490['y']-_0x928a39['y']};}function be(_0x267e5b,_0x392ec2){const _0x129fd7=_0x2d27;if(_0x267e5b[_0x129fd7(0x111)]===_0x129fd7(0x135)){let _0x1b3e52=_0x267e5b[_0x129fd7(0xf6)];if(_0x1b3e52['length']===0x0)return[];let _0x5535e1=K(_0x1b3e52[0x0],_0x392ec2),_0xcec6e9=[{'command':'M','points':[_0x5535e1['x'],_0x5535e1['y']]}];for(let _0x5d3ea3=0x1;_0x5d3ea3<_0x1b3e52['length'];_0x5d3ea3++){var _0x3b9b5d,_0x33dadb;let _0x2ab6ce=_0x1b3e52[_0x5d3ea3-0x1],_0x3fb24d=_0x1b3e52[_0x5d3ea3],_0x1c7fae=K((_0x3b9b5d=_0x2ab6ce[_0x129fd7(0x12d)])==null?_0x2ab6ce:_0x3b9b5d,_0x392ec2),_0x8494a6=K((_0x33dadb=_0x3fb24d['in'])==null?_0x3fb24d:_0x33dadb,_0x392ec2),_0x35926c=K(_0x3fb24d,_0x392ec2);_0xcec6e9[_0x129fd7(0x102)]({'command':'C','points':[_0x1c7fae['x'],_0x1c7fae['y'],_0x8494a6['x'],_0x8494a6['y'],_0x35926c['x'],_0x35926c['y']]});}if(_0x267e5b[_0x129fd7(0xf3)]&&_0x1b3e52[_0x129fd7(0xfd)]>0x1){var _0x2a70f1,_0x328eaa;let _0x1448bc=_0x1b3e52[_0x1b3e52['length']-0x1],_0x31d3d1=_0x1b3e52[0x0],_0x5b0bdb=K((_0x2a70f1=_0x1448bc[_0x129fd7(0x12d)])==null?_0x1448bc:_0x2a70f1,_0x392ec2),_0x80f16c=K((_0x328eaa=_0x31d3d1['in'])==null?_0x31d3d1:_0x328eaa,_0x392ec2),_0x4373f3=K(_0x31d3d1,_0x392ec2);_0xcec6e9[_0x129fd7(0x102)]({'command':'C','points':[_0x5b0bdb['x'],_0x5b0bdb['y'],_0x80f16c['x'],_0x80f16c['y'],_0x4373f3['x'],_0x4373f3['y']]}),_0xcec6e9['push']({'command':'z','points':[]});}return _0xcec6e9;}let _0x3d16cb=_0x267e5b[_0x129fd7(0x143)]['map'](_0x487c8a=>K(_0x487c8a,_0x392ec2));if(_0x3d16cb[_0x129fd7(0xfd)]===0x0)return[];let _0x316801=[{'command':'M','points':[_0x3d16cb[0x0]['x'],_0x3d16cb[0x0]['y']]}];for(let _0x1bcfaa=0x0;_0x1bcfaa<_0x3d16cb[_0x129fd7(0xfd)]-0x1;_0x1bcfaa++){var _0xd7bf1b,_0x37d8c0;let _0x46fde8=_0x3d16cb[_0x1bcfaa],_0x4c40b2=_0x3d16cb[_0x1bcfaa+0x1],_0x49f7d2=(_0xd7bf1b=_0x3d16cb[_0x1bcfaa-0x1])==null?_0x46fde8:_0xd7bf1b,_0x750b3e=(_0x37d8c0=_0x3d16cb[_0x1bcfaa+0x2])==null?_0x4c40b2:_0x37d8c0,_0x2f9cfd={'x':_0x46fde8['x']+(_0x4c40b2['x']-_0x49f7d2['x'])/0x6,'y':_0x46fde8['y']+(_0x4c40b2['y']-_0x49f7d2['y'])/0x6},_0x485d38={'x':_0x4c40b2['x']-(_0x750b3e['x']-_0x46fde8['x'])/0x6,'y':_0x4c40b2['y']-(_0x750b3e['y']-_0x46fde8['y'])/0x6};_0x316801[_0x129fd7(0x102)]({'command':'C','points':[_0x2f9cfd['x'],_0x2f9cfd['y'],_0x485d38['x'],_0x485d38['y'],_0x4c40b2['x'],_0x4c40b2['y']]});}return _0x316801;}function xe(_0x2eff88){const _0x423e2c=_0x2d27;var _0x431223;let {model:_0x5dd4f7,sourceModel:_0x138319=_0x5dd4f7,style:_0x5402e5}=_0x2eff88,_0x46dbc7=(_0x431223=_0x2eff88['tool'])==null?_0x5dd4f7[_0x423e2c(0x111)]:_0x431223,_0x5027c3=G(_0x5dd4f7),_0x3f23d7=_0x5dd4f7[_0x423e2c(0x111)]===_0x423e2c(0x135)&&_0x46dbc7!==_0x423e2c(0x135)?_0x5dd4f7:void 0x0;return{'transform':{..._0x5027c3,'rotation':0x0},'shapeData':ye(_0x5dd4f7,_0x5402e5),'ink':{'version':0x1,'tool':_0x46dbc7,'sourceModel':_0x138319,..._0x3f23d7?{'editModel':_0x3f23d7}:{},'normalizedBounds':_0x5027c3}};}var Se=_0x2e3b56(0xfb),Ce=_0x2e3b56(0x127);function q(_0x15a6c4){'@babel/helpers - typeof';const _0x121911=_0x2e3b56;return q=typeof Symbol==_0x121911(0x112)&&typeof Symbol[_0x121911(0x146)]==_0x121911(0x14e)?function(_0x2717da){return typeof _0x2717da;}:function(_0x1cf911){const _0x363bb7=_0x121911;return _0x1cf911&&typeof Symbol==_0x363bb7(0x112)&&_0x1cf911[_0x363bb7(0x116)]===Symbol&&_0x1cf911!==Symbol[_0x363bb7(0xfc)]?_0x363bb7(0x14e):typeof _0x1cf911;},q(_0x15a6c4);}function we(_0x2a395d,_0xcc3944){const _0x4baa95=_0x2e3b56;if(q(_0x2a395d)!=_0x4baa95(0x10d)||!_0x2a395d)return _0x2a395d;var _0x897942=_0x2a395d[Symbol[_0x4baa95(0x108)]];if(_0x897942!==void 0x0){var _0x29a689=_0x897942[_0x4baa95(0x11c)](_0x2a395d,_0xcc3944||'default');if(q(_0x29a689)!=_0x4baa95(0x10d))return _0x29a689;throw TypeError(_0x4baa95(0x114));}return(_0xcc3944===_0x4baa95(0x11f)?String:Number)(_0x2a395d);}function J(_0x390cb1){const _0x2a7360=_0x2e3b56;var _0x5c7633=we(_0x390cb1,_0x2a7360(0x11f));return q(_0x5c7633)==_0x2a7360(0x14e)?_0x5c7633:_0x5c7633+'';}function Y(_0x3320b4,_0x2b8406,_0x8fc579){const _0x21f6a1=_0x2e3b56;return(_0x2b8406=J(_0x2b8406))in _0x3320b4?Object[_0x21f6a1(0x149)](_0x3320b4,_0x2b8406,{'value':_0x8fc579,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3320b4[_0x2b8406]=_0x8fc579,_0x3320b4;}const X=_0x1b5b97(_0x2e3b56(0x121));var Te=class{constructor(){const _0x183049=_0x2e3b56;Y(this,_0x183049(0x13b),[]);}['registerAdapter'](_0x955f68){const _0x533c1a=_0x2e3b56;return this[_0x533c1a(0x13b)][_0x533c1a(0x102)](_0x955f68),_0x1d67f1(()=>{const _0x16e06c=_0x533c1a;let _0xb7e258=this[_0x16e06c(0x13b)]['indexOf'](_0x955f68);_0xb7e258>=0x0&&this['_adapters'][_0x16e06c(0x113)](_0xb7e258,0x1);});}[_0x2e3b56(0x128)](_0x24e0f3){const _0x2a0eed=_0x2e3b56;for(let _0x5ee148 of this[_0x2a0eed(0x13b)])if(_0x5ee148['beginInkMode'](_0x24e0f3))return!0x0;return!0x1;}async[_0x2e3b56(0x125)](_0xcc520b){const _0x390fb7=_0x2e3b56;for(let _0x439083 of this[_0x390fb7(0x13b)])if(_0x439083['createCustomShape']&&await _0x439083['createCustomShape'](_0xcc520b))return!0x0;return!0x1;}};const Ee={'id':_0x2e3b56(0x110),'type':_0x1a46d0[_0x2e3b56(0x147)],'handler':(_0x5b43ec,_0x29d535)=>_0x29d535?_0x5b43ec[_0x2e3b56(0x11e)](X)[_0x2e3b56(0x128)](_0x29d535):!0x1},Z={};function Q(_0x56d189,_0x4f2578){return function(_0x171553,_0x33247e){_0x4f2578(_0x171553,_0x33247e,_0x56d189);};}function De(_0x3f8a83,_0x4f9f9c,_0x349a3c,_0x5c7adc){const _0x17fcee=_0x2e3b56;var _0xa8e9ab=arguments['length'],_0x131abc=_0xa8e9ab<0x3?_0x4f9f9c:_0x5c7adc===null?_0x5c7adc=Object[_0x17fcee(0x107)](_0x4f9f9c,_0x349a3c):_0x5c7adc,_0x1db57b;if(typeof Reflect==_0x17fcee(0x10d)&&typeof Reflect[_0x17fcee(0x14f)]==_0x17fcee(0x112))_0x131abc=Reflect[_0x17fcee(0x14f)](_0x3f8a83,_0x4f9f9c,_0x349a3c,_0x5c7adc);else{for(var _0x2703c4=_0x3f8a83[_0x17fcee(0xfd)]-0x1;_0x2703c4>=0x0;_0x2703c4--)(_0x1db57b=_0x3f8a83[_0x2703c4])&&(_0x131abc=(_0xa8e9ab<0x3?_0x1db57b(_0x131abc):_0xa8e9ab>0x3?_0x1db57b(_0x4f9f9c,_0x349a3c,_0x131abc):_0x1db57b(_0x4f9f9c,_0x349a3c))||_0x131abc);}return _0xa8e9ab>0x3&&_0x131abc&&Object['defineProperty'](_0x4f9f9c,_0x349a3c,_0x131abc),_0x131abc;}let $=class extends _0x5b9715{constructor(_0x204bbf=Z,_0x12161d,_0x2c29ac,_0x4c8f75){const _0x2ba8ec=_0x2e3b56;super(),this[_0x2ba8ec(0x137)]=_0x204bbf,this[_0x2ba8ec(0x132)]=_0x12161d,this['_commandService']=_0x2c29ac,this[_0x2ba8ec(0x148)]=_0x4c8f75;let {..._0x3fd52e}=_0x48ad06({},Z,this[_0x2ba8ec(0x137)]);this[_0x2ba8ec(0x148)]['setConfig']('ink.config',_0x3fd52e);}[_0x2e3b56(0x122)](){const _0x29072c=_0x2e3b56;[[X,{'useClass':Te}]]['forEach'](_0x59fea0=>this[_0x29072c(0x132)][_0x29072c(0x12e)](_0x59fea0)),this[_0x29072c(0x129)](this['_commandService'][_0x29072c(0x105)](Ee));}};Y($,'pluginName',_0x2e3b56(0x119)),Y($,_0x2e3b56(0xfe),Se),Y($,_0x2e3b56(0x103),Ce),Y($,_0x2e3b56(0xf4),_0x2c0ee9[_0x2e3b56(0x10c)]),$=De([_0x4e5fed(_0x28261b),Q(0x1,_0x36e470(_0x80316c)),Q(0x2,_0xb74673),Q(0x3,_0xec36e4)],$);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 _0x4602de=_0x1211;(function(_0x3f01a0,_0x472b08){const _0x2445e8=_0x1211,_0x4562da=_0x3f01a0();while(!![]){try{const _0x4575c4=-parseInt(_0x2445e8(0x1ba))/0x1*(-parseInt(_0x2445e8(0x206))/0x2)+parseInt(_0x2445e8(0x1d7))/0x3+parseInt(_0x2445e8(0x217))/0x4*(-parseInt(_0x2445e8(0x210))/0x5)+parseInt(_0x2445e8(0x20e))/0x6+parseInt(_0x2445e8(0x1c9))/0x7+-parseInt(_0x2445e8(0x213))/0x8*(parseInt(_0x2445e8(0x1cc))/0x9)+-parseInt(_0x2445e8(0x1cf))/0xa;if(_0x4575c4===_0x472b08)break;else _0x4562da['push'](_0x4562da['shift']());}catch(_0x188e55){_0x4562da['push'](_0x4562da['shift']());}}}(_0x4eef,0x9928f));import{ShapeFillEnum as _0x5d1bec,ShapeLineCapEnum as _0x65358a,ShapeLineJoinEnum as _0x3afe2a,ShapeLineTypeEnum as _0x2298b9,ShapeTypeEnum as _0x46339a}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x1c9fb0}from'@univerjs-pro/license';import{CommandType as _0x3e6dda,DependentOn as _0x21f9f4,ICommandService as _0x44cbdf,IConfigService as _0x74df07,Inject as _0x83b12a,Injector as _0x4b9262,Plugin as _0x1732ef,UniverInstanceType as _0x2f3686,createIdentifier as _0x113c29,merge as _0x2ec470,toDisposable as _0x373e13}from'@univerjs/core';const g=0.0001;function _(_0x1b06f7){return{'x':_0x1b06f7['x'],'y':_0x1b06f7['y']};}function v(_0x5d28a2){const _0x330627=_0x1211;return{..._0x5d28a2,'in':_0x5d28a2['in']?_(_0x5d28a2['in']):void 0x0,'out':_0x5d28a2[_0x330627(0x1c1)]?_(_0x5d28a2[_0x330627(0x1c1)]):void 0x0};}function y(_0xc1f21){const _0x5050ee=_0x1211;return{'kind':_0x5050ee(0x218),'closed':_0xc1f21['closed'],'anchors':_0xc1f21['anchors'][_0x5050ee(0x1c4)](v)};}function b(_0xa62ba8,_0x5ab06c,_0x227782){return{'x':_0xa62ba8['x']+(_0x5ab06c['x']-_0xa62ba8['x'])*_0x227782,'y':_0xa62ba8['y']+(_0x5ab06c['y']-_0xa62ba8['y'])*_0x227782};}function x(_0x5f0414,_0x1f50bd){return Math['hypot'](_0x5f0414['x']-_0x1f50bd['x'],_0x5f0414['y']-_0x1f50bd['y']);}function S(_0x213cda){const _0x144da7=_0x1211;let _0x3dcf61=Math[_0x144da7(0x20c)](_0x213cda['x'],_0x213cda['y']);return _0x3dcf61<g?{'x':0x1,'y':0x0}:{'x':_0x213cda['x']/_0x3dcf61,'y':_0x213cda['y']/_0x3dcf61};}function C(_0x3e5920,_0xf56ed9,_0x121ffe=x(_0x3e5920,_0xf56ed9)){let _0x1d0337=S({'x':_0x3e5920['x']-_0xf56ed9['x'],'y':_0x3e5920['y']-_0xf56ed9['y']});return{'x':_0x3e5920['x']+_0x1d0337['x']*_0x121ffe,'y':_0x3e5920['y']+_0x1d0337['y']*_0x121ffe};}function w(_0x56412d,_0x86d914){const _0x3b549c=_0x1211;let {anchors:_0x412221}=_0x56412d;return _0x412221[_0x3b549c(0x1e2)]<0x2||_0x86d914<0x0?null:_0x86d914<_0x412221[_0x3b549c(0x1e2)]-0x1?{'startIndex':_0x86d914,'endIndex':_0x86d914+0x1,'start':_0x412221[_0x86d914],'end':_0x412221[_0x86d914+0x1]}:_0x56412d[_0x3b549c(0x1e0)]&&_0x86d914===_0x412221[_0x3b549c(0x1e2)]-0x1?{'startIndex':_0x412221[_0x3b549c(0x1e2)]-0x1,'endIndex':0x0,'start':_0x412221[_0x412221['length']-0x1],'end':_0x412221[0x0]}:null;}function T(_0x24a0f9,_0x56c8e2){const _0x2e2c3d=_0x1211;var _0x409124,_0x13be96;let _0x1ccda2=w(_0x24a0f9,_0x56c8e2);return _0x1ccda2?[_0x1ccda2['start'],(_0x409124=_0x1ccda2[_0x2e2c3d(0x1fe)][_0x2e2c3d(0x1c1)])==null?_0x1ccda2[_0x2e2c3d(0x1fe)]:_0x409124,(_0x13be96=_0x1ccda2[_0x2e2c3d(0x1bc)]['in'])==null?_0x1ccda2[_0x2e2c3d(0x1bc)]:_0x13be96,_0x1ccda2['end']]:null;}function te(_0x1293cf,_0x5e9d9f){const _0xf2c0b1=_0x1211;var _0x54ac7d;return _0x5e9d9f===_0xf2c0b1(0x1d2)?_0x1293cf:(_0x54ac7d=_0x1293cf[_0x5e9d9f])==null?null:_0x54ac7d;}function E(_0x39b74e,_0x1e87f3,_0x5f40eb){const _0x21bc2d=_0x1211;return _0x5f40eb===_0x21bc2d(0x1d2)||_0x39b74e[_0x21bc2d(0x1e0)]?!0x0:_0x5f40eb==='in'?_0x1e87f3>0x0:_0x1e87f3<_0x39b74e[_0x21bc2d(0x208)]['length']-0x1;}function D(_0xc4a363,_0x24e3ca){let [_0xd205a5,_0x521857,_0x53649d,_0x1cd8b1]=_0xc4a363,_0x5349ff=b(_0xd205a5,_0x521857,_0x24e3ca),_0x19de0c=b(_0x521857,_0x53649d,_0x24e3ca),_0x48bd15=b(_0x53649d,_0x1cd8b1,_0x24e3ca);return b(b(_0x5349ff,_0x19de0c,_0x24e3ca),b(_0x19de0c,_0x48bd15,_0x24e3ca),_0x24e3ca);}function ne(_0x269afc,_0x34cc31){let [_0x125bb2,_0x2dfe57,_0x2d7d5b,_0x1ef5e0]=_0x269afc,_0x1b0e66=b(_0x125bb2,_0x2dfe57,_0x34cc31),_0x3277a6=b(_0x2dfe57,_0x2d7d5b,_0x34cc31),_0xd4755=b(_0x2d7d5b,_0x1ef5e0,_0x34cc31),_0x29c81b=b(_0x1b0e66,_0x3277a6,_0x34cc31),_0x1cab8d=b(_0x3277a6,_0xd4755,_0x34cc31),_0x2fec16=b(_0x29c81b,_0x1cab8d,_0x34cc31);return{'left':[_0x125bb2,_0x1b0e66,_0x29c81b,_0x2fec16],'right':[_0x2fec16,_0x1cab8d,_0xd4755,_0x1ef5e0]};}function O(_0x4409ec,_0x537a41,_0x15fc26){const _0x24a829=_0x1211;let _0x53ae1d=_0x15fc26['x']-_0x537a41['x'],_0x372f42=_0x15fc26['y']-_0x537a41['y'],_0x72ede=_0x53ae1d*_0x53ae1d+_0x372f42*_0x372f42,_0x4e3ceb=_0x72ede<=g?0x0:Math[_0x24a829(0x1f0)](0x0,Math[_0x24a829(0x20d)](0x1,((_0x4409ec['x']-_0x537a41['x'])*_0x53ae1d+(_0x4409ec['y']-_0x537a41['y'])*_0x372f42)/_0x72ede)),_0x46eee2={'x':_0x537a41['x']+_0x53ae1d*_0x4e3ceb,'y':_0x537a41['y']+_0x372f42*_0x4e3ceb};return{'point':_0x46eee2,'ratio':_0x4e3ceb,'distance':x(_0x4409ec,_0x46eee2)};}function re(_0x36345e,_0x5ad9c1,_0x3319f7){const _0xf80425=_0x1211;return O(_0x36345e,_0x5ad9c1,_0x3319f7)[_0xf80425(0x204)]**0x2;}function k(_0x4497aa,_0x570873){const _0x598e87=_0x1211;if(_0x4497aa[_0x598e87(0x1e2)]<=0x2)return _0x4497aa[_0x598e87(0x1c4)](_);let _0x2d0246=0x0,_0x433d3b=0x0,_0x4c83cd=_0x4497aa[0x0],_0x3748c6=_0x4497aa[_0x4497aa[_0x598e87(0x1e2)]-0x1],_0x54fc76=_0x570873*_0x570873;for(let _0x542c3e=0x1;_0x542c3e<_0x4497aa[_0x598e87(0x1e2)]-0x1;_0x542c3e++){let _0x5178d3=re(_0x4497aa[_0x542c3e],_0x4c83cd,_0x3748c6);_0x5178d3>_0x2d0246&&(_0x2d0246=_0x5178d3,_0x433d3b=_0x542c3e);}if(_0x2d0246<=_0x54fc76)return[_(_0x4c83cd),_(_0x3748c6)];let _0xb53819=k(_0x4497aa[_0x598e87(0x1f7)](0x0,_0x433d3b+0x1),_0x570873),_0x14145d=k(_0x4497aa[_0x598e87(0x1f7)](_0x433d3b),_0x570873);return[..._0xb53819[_0x598e87(0x1f7)](0x0,-0x1),..._0x14145d];}function ie(_0x56ba6f,_0x3d7b96){var _0x1690d5;let _0x1a53e6=_0x56ba6f[_0x3d7b96],_0x3b16b8=_0x56ba6f[_0x3d7b96+0x1],_0x12b1d4=(_0x1690d5=_0x56ba6f[_0x3d7b96-0x1])==null?_0x1a53e6:_0x1690d5;return{'x':_0x1a53e6['x']+(_0x3b16b8['x']-_0x12b1d4['x'])/0x6,'y':_0x1a53e6['y']+(_0x3b16b8['y']-_0x12b1d4['y'])/0x6};}function A(_0x4c3d51,_0x3ae085){var _0x469239;let _0xcdb1e2=_0x4c3d51[_0x3ae085],_0x30ba79=_0x4c3d51[_0x3ae085-0x1],_0x2d4a8e=(_0x469239=_0x4c3d51[_0x3ae085+0x1])==null?_0xcdb1e2:_0x469239;return{'x':_0xcdb1e2['x']-(_0x2d4a8e['x']-_0x30ba79['x'])/0x6,'y':_0xcdb1e2['y']-(_0x2d4a8e['y']-_0x30ba79['y'])/0x6};}function j(_0x5f26c4,_0x3c9cfa){const _0x30fc1a=_0x1211;var _0x2cc730,_0x695b47;let _0x30963b=_0x5f26c4[_0x30fc1a(0x208)][_0x3c9cfa],_0xf75166=(_0x2cc730=_0x5f26c4['anchors'][_0x3c9cfa-0x1])==null?_0x5f26c4[_0x30fc1a(0x1e0)]?_0x5f26c4['anchors'][_0x5f26c4[_0x30fc1a(0x208)][_0x30fc1a(0x1e2)]-0x1]:null:_0x2cc730,_0x3d2d63=(_0x695b47=_0x5f26c4['anchors'][_0x3c9cfa+0x1])==null?_0x5f26c4[_0x30fc1a(0x1e0)]?_0x5f26c4[_0x30fc1a(0x208)][0x0]:null:_0x695b47,_0x5ac22f=_0xf75166&&_0x3d2d63?S({'x':_0x3d2d63['x']-_0xf75166['x'],'y':_0x3d2d63['y']-_0xf75166['y']}):_0x3d2d63?S({'x':_0x3d2d63['x']-_0x30963b['x'],'y':_0x3d2d63['y']-_0x30963b['y']}):_0xf75166?S({'x':_0x30963b['x']-_0xf75166['x'],'y':_0x30963b['y']-_0xf75166['y']}):{'x':0x1,'y':0x0},_0xea00=_0xf75166&&_0x3d2d63?Math[_0x30fc1a(0x1f0)](0x32,x(_0xf75166,_0x3d2d63)/0x4):0x32;return{'in':{'x':_0x30963b['x']-_0x5ac22f['x']*_0xea00,'y':_0x30963b['y']-_0x5ac22f['y']*_0xea00},'out':{'x':_0x30963b['x']+_0x5ac22f['x']*_0xea00,'y':_0x30963b['y']+_0x5ac22f['y']*_0xea00}};}function M(_0x4e7123,_0x19710d){const _0x192e47=_0x1211;let _0x47150d=_0x4e7123[_0x19710d],_0x17b5c5=_0x19710d==='in'?_0x192e47(0x1c1):'in',_0xb4b260=_0x4e7123[_0x17b5c5];if(_0x47150d){if(_0x4e7123[_0x192e47(0x1ca)]==='symmetric'){_0x4e7123[_0x17b5c5]=C(_0x4e7123,_0x47150d);return;}_0x4e7123[_0x192e47(0x1ca)]===_0x192e47(0x1fb)&&(_0x4e7123[_0x17b5c5]=C(_0x4e7123,_0x47150d,_0xb4b260?x(_0x4e7123,_0xb4b260):x(_0x4e7123,_0x47150d)));}}function ae(_0x399272,_0x300b72){const _0x295697=_0x1211;let _0x3e60aa=y(_0x399272);return!_0x300b72||_0x3e60aa[_0x295697(0x1e0)]||_0x3e60aa['anchors'][_0x295697(0x1e2)]===0x0||_0x3e60aa[_0x295697(0x208)][_0x295697(0x20b)]({'id':'__ink-preview-anchor__','x':_0x300b72['x'],'y':_0x300b72['y'],'pointType':_0x295697(0x1d0)}),_0x3e60aa;}function oe(_0x886504,_0x164bba={}){const _0x46c4df=_0x1211;var _0x5c3f72,_0x42c755;let _0xd45713=Math['max'](0x0,(_0x5c3f72=_0x164bba[_0x46c4df(0x1c2)])==null?Math[_0x46c4df(0x1f0)](0x4,_0x886504[_0x46c4df(0x1e6)]*0.35):_0x5c3f72),_0x3a33da=(_0x42c755=_0x164bba[_0x46c4df(0x211)])==null?_0x14739f=>'ink-centerline-'+_0x14739f:_0x42c755,_0x5b45f7=k(_0x886504[_0x46c4df(0x1c5)],_0xd45713),_0x2f31ea=_0x5b45f7['map']((_0x361d49,_0x301cc1)=>({'id':_0x3a33da(_0x301cc1),'x':_0x361d49['x'],'y':_0x361d49['y'],'pointType':'free'}));for(let _0x2bdfe1=0x0;_0x2bdfe1<_0x2f31ea[_0x46c4df(0x1e2)]-0x1;_0x2bdfe1++)_0x2f31ea[_0x2bdfe1][_0x46c4df(0x1c1)]=ie(_0x5b45f7,_0x2bdfe1),_0x2f31ea[_0x2bdfe1+0x1]['in']=A(_0x5b45f7,_0x2bdfe1+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x2f31ea};}function se(_0x257145,_0x2d28a6,_0x540b63){const _0x74eb19=_0x1211;let _0x5a4344=null,_0x333014=['anchor','in',_0x74eb19(0x1c1)];return _0x257145[_0x74eb19(0x208)]['forEach']((_0x159be7,_0x43724b)=>{const _0x39482a=_0x74eb19;_0x333014[_0x39482a(0x1eb)](_0x4b7b87=>{const _0x28aadd=_0x39482a;if(!E(_0x257145,_0x43724b,_0x4b7b87))return;let _0x11daf2=te(_0x159be7,_0x4b7b87);if(!_0x11daf2)return;let _0xb0b9f4=x(_0x2d28a6,_0x11daf2);_0xb0b9f4>_0x540b63||_0x5a4344&&_0xb0b9f4>=_0x5a4344[_0x28aadd(0x204)]||(_0x5a4344={'handle':{'kind':_0x4b7b87,'anchorId':_0x159be7['id']},'point':_(_0x11daf2),'distance':_0xb0b9f4});});}),_0x5a4344;}function ce(_0x2f4669,_0x4a01bb,_0xf8532d){const _0x3d06b4=_0x1211;let _0x1cf6e5=null,_0x424aae=_0x2f4669[_0x3d06b4(0x1e0)]?_0x2f4669[_0x3d06b4(0x208)]['length']:Math[_0x3d06b4(0x1f0)](0x0,_0x2f4669[_0x3d06b4(0x208)][_0x3d06b4(0x1e2)]-0x1);for(let _0x438b3d=0x0;_0x438b3d<_0x424aae;_0x438b3d++){let _0xa1baef=T(_0x2f4669,_0x438b3d);if(!_0xa1baef)continue;let _0x5a8c61=D(_0xa1baef,0x0);for(let _0x1c3df9=0x1;_0x1c3df9<=0x20;_0x1c3df9++){let _0x2de5d7=D(_0xa1baef,_0x1c3df9/0x20),_0x55ba1f=O(_0x4a01bb,_0x5a8c61,_0x2de5d7),_0x535d41=(_0x1c3df9-0x1+_0x55ba1f[_0x3d06b4(0x201)])/0x20;(!_0x1cf6e5||_0x55ba1f[_0x3d06b4(0x204)]<_0x1cf6e5[_0x3d06b4(0x204)])&&(_0x1cf6e5={'segmentIndex':_0x438b3d,'t':_0x535d41,'point':_0x55ba1f[_0x3d06b4(0x205)],'distance':_0x55ba1f[_0x3d06b4(0x204)]}),_0x5a8c61=_0x2de5d7;}}return _0x1cf6e5&&_0x1cf6e5[_0x3d06b4(0x204)]<=_0xf8532d?_0x1cf6e5:null;}function le(_0x3fb92d,_0x128497,_0x2f749b){const _0x7f4f23=_0x1211;let _0x1a9ee0=y(_0x3fb92d),_0x394f0f=w(_0x1a9ee0,_0x128497[_0x7f4f23(0x1fd)]),_0x1e25ae=T(_0x1a9ee0,_0x128497['segmentIndex']);if(!_0x394f0f||!_0x1e25ae)return _0x1a9ee0;let _0x31dfcf=ne(_0x1e25ae,Math[_0x7f4f23(0x1f0)](0x0,Math[_0x7f4f23(0x20d)](0x1,_0x128497['t']))),_0x2a9439={'id':_0x2f749b(),'x':_0x31dfcf['left'][0x3]['x'],'y':_0x31dfcf['left'][0x3]['y'],'in':_(_0x31dfcf[_0x7f4f23(0x1ea)][0x2]),'out':_(_0x31dfcf[_0x7f4f23(0x1be)][0x1]),'pointType':'free'};return _0x1a9ee0['anchors'][_0x394f0f[_0x7f4f23(0x1ef)]]['out']=_(_0x31dfcf[_0x7f4f23(0x1ea)][0x1]),_0x1a9ee0[_0x7f4f23(0x208)][_0x394f0f[_0x7f4f23(0x1f2)]]['in']=_(_0x31dfcf[_0x7f4f23(0x1be)][0x2]),_0x1a9ee0[_0x7f4f23(0x208)][_0x7f4f23(0x1e9)](_0x394f0f[_0x7f4f23(0x1ef)]+0x1,0x0,_0x2a9439),_0x1a9ee0;}function ue(_0x29689b,_0xb58bb9){const _0x12af36=_0x1211;let _0x2ff724=y(_0x29689b);return _0x2ff724[_0x12af36(0x208)]=_0x2ff724[_0x12af36(0x208)][_0x12af36(0x1f5)](_0x412bcd=>_0x412bcd['id']!==_0xb58bb9),_0x2ff724['closed']&&_0x2ff724['anchors'][_0x12af36(0x1e2)]<0x3&&(_0x2ff724['closed']=!0x1),_0x2ff724;}function N(_0x1b95dc,_0x452f7c,_0x2d0da4){const _0x2ac18c=_0x1211;let _0xbd07b8=y(_0x1b95dc),_0xdf433a=_0xbd07b8[_0x2ac18c(0x208)][_0x2ac18c(0x1d8)](_0x33bb3d=>_0x33bb3d['id']===_0x452f7c),_0x4766e5=_0xbd07b8[_0x2ac18c(0x208)][_0xdf433a];if(!_0x4766e5)return _0xbd07b8;if(_0x4766e5[_0x2ac18c(0x1ca)]=_0x2d0da4,_0x2d0da4===_0x2ac18c(0x1d0))return delete _0x4766e5['in'],delete _0x4766e5[_0x2ac18c(0x1c1)],_0xbd07b8;let _0x4ab650=j(_0xbd07b8,_0xdf433a);if(_0x4766e5['in']=_0x4766e5['in']?_(_0x4766e5['in']):_0x4ab650['in'],_0x4766e5[_0x2ac18c(0x1c1)]=_0x4766e5[_0x2ac18c(0x1c1)]?_(_0x4766e5[_0x2ac18c(0x1c1)]):_0x4ab650['out'],_0x2d0da4==='symmetric'){let _0x3b9cb0=Math[_0x2ac18c(0x1f0)](x(_0x4766e5,_0x4766e5['in']),x(_0x4766e5,_0x4766e5[_0x2ac18c(0x1c1)]),0x32),_0x5bff36=S({'x':_0x4766e5[_0x2ac18c(0x1c1)]['x']-_0x4766e5['x'],'y':_0x4766e5[_0x2ac18c(0x1c1)]['y']-_0x4766e5['y']});_0x4766e5['out']={'x':_0x4766e5['x']+_0x5bff36['x']*_0x3b9cb0,'y':_0x4766e5['y']+_0x5bff36['y']*_0x3b9cb0},_0x4766e5['in']={'x':_0x4766e5['x']-_0x5bff36['x']*_0x3b9cb0,'y':_0x4766e5['y']-_0x5bff36['y']*_0x3b9cb0};}else _0x2d0da4===_0x2ac18c(0x1fb)&&M(_0x4766e5,'out');return _0xbd07b8;}function P(_0x54aa08,_0x7ffa3a){const _0x39c7e6=_0x1211;var _0x2d548c;let _0x51d1f1=_0x54aa08[_0x39c7e6(0x208)][_0x39c7e6(0x1f3)](_0x4e2fcc=>_0x4e2fcc['id']===_0x7ffa3a),_0x591db9=(_0x2d548c=_0x51d1f1==null?void 0x0:_0x51d1f1[_0x39c7e6(0x1ca)])==null?_0x39c7e6(0x1d0):_0x2d548c;return N(_0x54aa08,_0x7ffa3a,_0x591db9===_0x39c7e6(0x1d0)?_0x39c7e6(0x1fb):_0x591db9===_0x39c7e6(0x1fb)?_0x39c7e6(0x1de):_0x591db9===_0x39c7e6(0x1de)?'free':_0x39c7e6(0x1d0));}function F(_0x2b9e1f,_0x56c7aa,_0x26a2a0){const _0x1dab27=_0x1211;let _0xc44bde=y(_0x2b9e1f),_0x27e436=_0xc44bde[_0x1dab27(0x208)][_0x1dab27(0x1f3)](_0x1ea924=>_0x1ea924['id']===_0x56c7aa['anchorId']);if(!_0x27e436)return _0xc44bde;if(_0x56c7aa[_0x1dab27(0x1f8)]===_0x1dab27(0x1d2)){let _0x39f456={'x':_0x26a2a0['x']-_0x27e436['x'],'y':_0x26a2a0['y']-_0x27e436['y']};return _0x27e436['x']=_0x26a2a0['x'],_0x27e436['y']=_0x26a2a0['y'],_0x27e436['in']&&(_0x27e436['in']={'x':_0x27e436['in']['x']+_0x39f456['x'],'y':_0x27e436['in']['y']+_0x39f456['y']}),_0x27e436[_0x1dab27(0x1c1)]&&(_0x27e436[_0x1dab27(0x1c1)]={'x':_0x27e436[_0x1dab27(0x1c1)]['x']+_0x39f456['x'],'y':_0x27e436[_0x1dab27(0x1c1)]['y']+_0x39f456['y']}),_0xc44bde;}return _0x27e436[_0x56c7aa['kind']]=_(_0x26a2a0),_0x27e436[_0x1dab27(0x1ca)]===_0x1dab27(0x1d0)&&(_0x27e436['pointType']=_0x1dab27(0x1f1)),M(_0x27e436,_0x56c7aa[_0x1dab27(0x1f8)]),_0xc44bde;}const I=1e-9;function L(_0x541be4){let _0x3c36af=Math['round'](_0x541be4*0x2710)/0x2710;return Object['is'](_0x3c36af,-0x0)?'0':String(_0x3c36af);}function R(_0x4c1145){return L(_0x4c1145['x'])+'\x20'+L(_0x4c1145['y']);}function z(_0x1de858,_0x3fc130){return{'x':_0x1de858['x']-_0x3fc130['x'],'y':_0x1de858['y']-_0x3fc130['y']};}function B(_0x241449,_0x550f5b,_0x1cef1b,_0x1a92ff,_0x553fac){let _0x414655=0x1-_0x553fac;return{'x':_0x414655*_0x414655*_0x414655*_0x241449['x']+0x3*_0x414655*_0x414655*_0x553fac*_0x550f5b['x']+0x3*_0x414655*_0x553fac*_0x553fac*_0x1cef1b['x']+_0x553fac*_0x553fac*_0x553fac*_0x1a92ff['x'],'y':_0x414655*_0x414655*_0x414655*_0x241449['y']+0x3*_0x414655*_0x414655*_0x553fac*_0x550f5b['y']+0x3*_0x414655*_0x553fac*_0x553fac*_0x1cef1b['y']+_0x553fac*_0x553fac*_0x553fac*_0x1a92ff['y']};}function V(_0x3d1ece,_0x345da1,_0x4494f0,_0x4e1c7d){const _0x5b0fea=_0x1211;let _0x2b2437=-_0x3d1ece+0x3*_0x345da1-0x3*_0x4494f0+_0x4e1c7d,_0x2fc981=0x3*_0x3d1ece-0x6*_0x345da1+0x3*_0x4494f0,_0x44d4e4=-0x3*_0x3d1ece+0x3*_0x345da1,_0x34331a=[];if(Math[_0x5b0fea(0x1e4)](_0x2b2437)<I){if(Math['abs'](_0x2fc981)<I)return _0x34331a;let _0x287154=-_0x44d4e4/(0x2*_0x2fc981);return _0x287154>0x0&&_0x287154<0x1&&_0x34331a[_0x5b0fea(0x20b)](_0x287154),_0x34331a;}let _0x2792aa=_0x2fc981*_0x2fc981-0x3*_0x2b2437*_0x44d4e4;if(_0x2792aa<0x0)return _0x34331a;let _0x6dd9c4=Math['sqrt'](Math['max'](0x0,_0x2792aa)),_0x14e6b1=(-_0x2fc981+_0x6dd9c4)/(0x3*_0x2b2437),_0x238582=(-_0x2fc981-_0x6dd9c4)/(0x3*_0x2b2437);return _0x14e6b1>0x0&&_0x14e6b1<0x1&&_0x34331a[_0x5b0fea(0x20b)](_0x14e6b1),_0x238582>0x0&&_0x238582<0x1&&Math['abs'](_0x238582-_0x14e6b1)>I&&_0x34331a['push'](_0x238582),_0x34331a;}function _0x1211(_0x50ed2e,_0xe8e419){_0x50ed2e=_0x50ed2e-0x1ba;const _0x4eef04=_0x4eef();let _0x121192=_0x4eef04[_0x50ed2e];return _0x121192;}function H(_0x4f601d,_0x2224c5,_0x46cadd,_0x1987c1,_0x36900f){const _0x573c7e=_0x1211;_0x4f601d[_0x573c7e(0x20b)](_0x2224c5,_0x36900f),new Set([...V(_0x2224c5['x'],_0x46cadd['x'],_0x1987c1['x'],_0x36900f['x']),...V(_0x2224c5['y'],_0x46cadd['y'],_0x1987c1['y'],_0x36900f['y'])])[_0x573c7e(0x1eb)](_0x2aeff6=>{const _0x30aae2=_0x573c7e;_0x4f601d[_0x30aae2(0x20b)](B(_0x2224c5,_0x46cadd,_0x1987c1,_0x36900f,_0x2aeff6));});}function U(_0x1c2ad0){const _0x4b8f70=_0x1211;let _0x532f0f=_0x1c2ad0[_0x4b8f70(0x208)];if(_0x532f0f['length']<=0x1)return _0x532f0f;let _0x3cf711=[];for(let _0x6de75a=0x1;_0x6de75a<_0x532f0f[_0x4b8f70(0x1e2)];_0x6de75a++){var _0x2d4159,_0x1d3f32;let _0x42ce86=_0x532f0f[_0x6de75a-0x1],_0x3e729c=_0x532f0f[_0x6de75a];H(_0x3cf711,_0x42ce86,(_0x2d4159=_0x42ce86[_0x4b8f70(0x1c1)])==null?_0x42ce86:_0x2d4159,(_0x1d3f32=_0x3e729c['in'])==null?_0x3e729c:_0x1d3f32,_0x3e729c);}if(_0x1c2ad0['closed']&&_0x532f0f[_0x4b8f70(0x1e2)]>0x1){var _0x30eb6b,_0xed4e9f;let _0x43247a=_0x532f0f[_0x532f0f[_0x4b8f70(0x1e2)]-0x1],_0x25e565=_0x532f0f[0x0];H(_0x3cf711,_0x43247a,(_0x30eb6b=_0x43247a[_0x4b8f70(0x1c1)])==null?_0x43247a:_0x30eb6b,(_0xed4e9f=_0x25e565['in'])==null?_0x25e565:_0xed4e9f,_0x25e565);}return _0x3cf711;}function de(_0x75b221){const _0x2e8f98=_0x1211;let _0x4912c2=_0x75b221[_0x2e8f98(0x1c5)];if(_0x4912c2[_0x2e8f98(0x1e2)]<=0x1)return _0x4912c2;let _0x3dcfc6=[];for(let _0x5ef848=0x0;_0x5ef848<_0x4912c2[_0x2e8f98(0x1e2)]-0x1;_0x5ef848++){var _0x8dcc5c,_0x2081ce;let _0x871f0f=_0x4912c2[_0x5ef848],_0x239bdb=_0x4912c2[_0x5ef848+0x1],_0x546780=(_0x8dcc5c=_0x4912c2[_0x5ef848-0x1])==null?_0x871f0f:_0x8dcc5c,_0x344ea5=(_0x2081ce=_0x4912c2[_0x5ef848+0x2])==null?_0x239bdb:_0x2081ce;H(_0x3dcfc6,_0x871f0f,{'x':_0x871f0f['x']+(_0x239bdb['x']-_0x546780['x'])/0x6,'y':_0x871f0f['y']+(_0x239bdb['y']-_0x546780['y'])/0x6},{'x':_0x239bdb['x']-(_0x344ea5['x']-_0x871f0f['x'])/0x6,'y':_0x239bdb['y']-(_0x344ea5['y']-_0x871f0f['y'])/0x6},_0x239bdb);}return _0x3dcfc6;}function fe(_0x9f0f16){const _0x3f3ed5=_0x1211;return _0x9f0f16['kind']===_0x3f3ed5(0x218)?U(_0x9f0f16):de(_0x9f0f16);}function W(_0x22537b){const _0x4abce3=_0x1211;let _0x4a4690=Math[_0x4abce3(0x20f)](_0x22537b*0x2710)/0x2710;return Object['is'](_0x4a4690,-0x0)?0x0:_0x4a4690;}function G(_0x529191){const _0x59a956=_0x1211;let _0x256152=fe(_0x529191);if(_0x256152['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x467b54=Math[_0x59a956(0x20d)](..._0x256152[_0x59a956(0x1c4)](_0x5c79ff=>_0x5c79ff['x'])),_0xc4946b=Math[_0x59a956(0x20d)](..._0x256152[_0x59a956(0x1c4)](_0x142167=>_0x142167['y'])),_0x5aa992=Math[_0x59a956(0x1f0)](..._0x256152[_0x59a956(0x1c4)](_0x7c0829=>_0x7c0829['x'])),_0xe8ac3e=Math['max'](..._0x256152['map'](_0x17e09c=>_0x17e09c['y']));return{'left':W(_0x467b54),'top':W(_0xc4946b),'width':W(Math['max'](0x1,_0x5aa992-_0x467b54)),'height':W(Math[_0x59a956(0x1f0)](0x1,_0xe8ac3e-_0xc4946b))};}function pe(_0x3e2b30,_0x124fb7){const _0x74e596=_0x1211;let _0x47cf4c=_0x3e2b30[_0x74e596(0x208)];if(_0x47cf4c[_0x74e596(0x1e2)]===0x0)return'';let _0x95e36d=['M\x20'+R(z(_0x47cf4c[0x0],_0x124fb7))];for(let _0x4ee1e5=0x1;_0x4ee1e5<_0x47cf4c[_0x74e596(0x1e2)];_0x4ee1e5++){var _0x343f97,_0xb4b90e;let _0x27a4d4=_0x47cf4c[_0x4ee1e5-0x1],_0x4bce27=_0x47cf4c[_0x4ee1e5],_0x338c1b=(_0x343f97=_0x27a4d4[_0x74e596(0x1c1)])==null?_0x27a4d4:_0x343f97,_0x1e3317=(_0xb4b90e=_0x4bce27['in'])==null?_0x4bce27:_0xb4b90e;_0x95e36d[_0x74e596(0x20b)]('C\x20'+R(z(_0x338c1b,_0x124fb7))+'\x20'+R(z(_0x1e3317,_0x124fb7))+'\x20'+R(z(_0x4bce27,_0x124fb7)));}if(_0x3e2b30[_0x74e596(0x1e0)]&&_0x47cf4c[_0x74e596(0x1e2)]>0x1){var _0x127d8f,_0x391377;let _0x36dfda=_0x47cf4c[_0x47cf4c[_0x74e596(0x1e2)]-0x1],_0x1618b2=_0x47cf4c[0x0],_0xafc868=(_0x127d8f=_0x36dfda[_0x74e596(0x1c1)])==null?_0x36dfda:_0x127d8f,_0x1de550=(_0x391377=_0x1618b2['in'])==null?_0x1618b2:_0x391377;_0x95e36d[_0x74e596(0x20b)]('C\x20'+R(z(_0xafc868,_0x124fb7))+'\x20'+R(z(_0x1de550,_0x124fb7))+'\x20'+R(z(_0x1618b2,_0x124fb7))),_0x95e36d[_0x74e596(0x20b)]('Z');}return _0x95e36d['join']('\x20');}function me(_0x16c425,_0x5c128b){const _0x38b1ff=_0x1211;let _0x265969=_0x16c425[_0x38b1ff(0x1c5)][_0x38b1ff(0x1c4)](_0xaed080=>z(_0xaed080,_0x5c128b));if(_0x265969[_0x38b1ff(0x1e2)]===0x0)return'';if(_0x265969[_0x38b1ff(0x1e2)]===0x1)return'M\x20'+R(_0x265969[0x0]);let _0x5bc61b=['M\x20'+R(_0x265969[0x0])];for(let _0x4ca555=0x0;_0x4ca555<_0x265969[_0x38b1ff(0x1e2)]-0x1;_0x4ca555++){var _0xc7926b,_0x19feba;let _0x445dca=_0x265969[_0x4ca555],_0x3792ed=_0x265969[_0x4ca555+0x1],_0x4b6c96=(_0xc7926b=_0x265969[_0x4ca555-0x1])==null?_0x445dca:_0xc7926b,_0x17cfc5=(_0x19feba=_0x265969[_0x4ca555+0x2])==null?_0x3792ed:_0x19feba,_0x14c2c2={'x':_0x445dca['x']+(_0x3792ed['x']-_0x4b6c96['x'])/0x6,'y':_0x445dca['y']+(_0x3792ed['y']-_0x4b6c96['y'])/0x6},_0x19d58a={'x':_0x3792ed['x']-(_0x17cfc5['x']-_0x445dca['x'])/0x6,'y':_0x3792ed['y']-(_0x17cfc5['y']-_0x445dca['y'])/0x6};_0x5bc61b[_0x38b1ff(0x20b)]('C\x20'+R(_0x14c2c2)+'\x20'+R(_0x19d58a)+'\x20'+R(_0x3792ed));}return _0x5bc61b['join']('\x20');}function he(_0x3bd850,_0x5b0f86){const _0x3179ab=_0x1211;return _0x3bd850[_0x3179ab(0x1f8)]===_0x3179ab(0x218)?pe(_0x3bd850,_0x5b0f86):me(_0x3bd850,_0x5b0f86);}function ge(_0x57783c,_0x578a2a){const _0x2572b8=_0x1211;return _0x578a2a!=null&&_0x578a2a[_0x2572b8(0x202)]?_0x578a2a['color']:_0x57783c[_0x2572b8(0x1f8)]===_0x2572b8(0x218)?_0x2572b8(0x1d9):_0x57783c[_0x2572b8(0x202)];}function _e(_0x112a65,_0x5bdcf7){const _0x1f50d3=_0x1211;return(_0x5bdcf7==null?void 0x0:_0x5bdcf7[_0x1f50d3(0x1e6)])===void 0x0?_0x112a65['kind']==='pen'?0x2:_0x112a65[_0x1f50d3(0x1e6)]:_0x5bdcf7[_0x1f50d3(0x1e6)];}function ve(_0x599071,_0x2a1419){return(_0x2a1419==null?void 0x0:_0x2a1419['opacity'])===void 0x0?_0x599071['kind']==='pen'?void 0x0:_0x599071['opacity']:_0x2a1419['opacity'];}function ye(_0x3c585a,_0x6ea5f3){const _0x39e5dd=_0x1211;let _0x385a5e=G(_0x3c585a),_0x5ab225=he(_0x3c585a,{'x':_0x385a5e['left'],'y':_0x385a5e[_0x39e5dd(0x216)]}),_0x58a50c=_0x3c585a['kind']===_0x39e5dd(0x218)&&_0x3c585a[_0x39e5dd(0x1e0)],_0xbd4be8=_0x6ea5f3==null?void 0x0:_0x6ea5f3[_0x39e5dd(0x1e8)];return{'shapeType':_0x46339a[_0x39e5dd(0x1e3)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x385a5e['width'],'h':_0x385a5e[_0x39e5dd(0x1df)],'fill':_0x58a50c?_0x39e5dd(0x1e1):_0x39e5dd(0x1ec),'stroke':!0x0,'data':_0x5ab225,'dataArray':be(_0x3c585a,{'x':_0x385a5e[_0x39e5dd(0x1ea)],'y':_0x385a5e[_0x39e5dd(0x216)]})}]},'fill':_0x58a50c&&_0xbd4be8?{'color':_0xbd4be8,'fillType':_0x5d1bec[_0x39e5dd(0x1e7)]}:{'fillType':_0x5d1bec[_0x39e5dd(0x207)]},'stroke':{'color':ge(_0x3c585a,_0x6ea5f3),'width':_e(_0x3c585a,_0x6ea5f3),'opacity':ve(_0x3c585a,_0x6ea5f3),'lineStrokeType':_0x2298b9[_0x39e5dd(0x209)],'capType':_0x65358a['Round'],'lineJoinType':_0x3afe2a[_0x39e5dd(0x203)]}};}function K(_0x32c7ff,_0x2801d5){return{'x':_0x32c7ff['x']-_0x2801d5['x'],'y':_0x32c7ff['y']-_0x2801d5['y']};}function be(_0x2930cd,_0x1b786f){const _0x321054=_0x1211;if(_0x2930cd[_0x321054(0x1f8)]===_0x321054(0x218)){let _0xa547a7=_0x2930cd[_0x321054(0x208)];if(_0xa547a7['length']===0x0)return[];let _0x279dcd=K(_0xa547a7[0x0],_0x1b786f),_0x376d48=[{'command':'M','points':[_0x279dcd['x'],_0x279dcd['y']]}];for(let _0x5d9ba7=0x1;_0x5d9ba7<_0xa547a7[_0x321054(0x1e2)];_0x5d9ba7++){var _0x2bda0c,_0x1845b6;let _0x21ea08=_0xa547a7[_0x5d9ba7-0x1],_0x1e56e0=_0xa547a7[_0x5d9ba7],_0xfebf11=K((_0x2bda0c=_0x21ea08[_0x321054(0x1c1)])==null?_0x21ea08:_0x2bda0c,_0x1b786f),_0x5141fa=K((_0x1845b6=_0x1e56e0['in'])==null?_0x1e56e0:_0x1845b6,_0x1b786f),_0x17b306=K(_0x1e56e0,_0x1b786f);_0x376d48['push']({'command':'C','points':[_0xfebf11['x'],_0xfebf11['y'],_0x5141fa['x'],_0x5141fa['y'],_0x17b306['x'],_0x17b306['y']]});}if(_0x2930cd[_0x321054(0x1e0)]&&_0xa547a7[_0x321054(0x1e2)]>0x1){var _0x455314,_0xd8fe87;let _0x40a46b=_0xa547a7[_0xa547a7[_0x321054(0x1e2)]-0x1],_0x56f055=_0xa547a7[0x0],_0x36dec7=K((_0x455314=_0x40a46b['out'])==null?_0x40a46b:_0x455314,_0x1b786f),_0x3cea01=K((_0xd8fe87=_0x56f055['in'])==null?_0x56f055:_0xd8fe87,_0x1b786f),_0x37d2d9=K(_0x56f055,_0x1b786f);_0x376d48[_0x321054(0x20b)]({'command':'C','points':[_0x36dec7['x'],_0x36dec7['y'],_0x3cea01['x'],_0x3cea01['y'],_0x37d2d9['x'],_0x37d2d9['y']]}),_0x376d48[_0x321054(0x20b)]({'command':'z','points':[]});}return _0x376d48;}let _0x4bf39c=_0x2930cd[_0x321054(0x1c5)][_0x321054(0x1c4)](_0x2a50ac=>K(_0x2a50ac,_0x1b786f));if(_0x4bf39c[_0x321054(0x1e2)]===0x0)return[];let _0x42a2eb=[{'command':'M','points':[_0x4bf39c[0x0]['x'],_0x4bf39c[0x0]['y']]}];for(let _0x2eb88b=0x0;_0x2eb88b<_0x4bf39c[_0x321054(0x1e2)]-0x1;_0x2eb88b++){var _0x5271fe,_0x1e9e16;let _0x4a856f=_0x4bf39c[_0x2eb88b],_0x5a1c20=_0x4bf39c[_0x2eb88b+0x1],_0xd3b4ad=(_0x5271fe=_0x4bf39c[_0x2eb88b-0x1])==null?_0x4a856f:_0x5271fe,_0x3fc1c1=(_0x1e9e16=_0x4bf39c[_0x2eb88b+0x2])==null?_0x5a1c20:_0x1e9e16,_0x2138b6={'x':_0x4a856f['x']+(_0x5a1c20['x']-_0xd3b4ad['x'])/0x6,'y':_0x4a856f['y']+(_0x5a1c20['y']-_0xd3b4ad['y'])/0x6},_0x30c6a8={'x':_0x5a1c20['x']-(_0x3fc1c1['x']-_0x4a856f['x'])/0x6,'y':_0x5a1c20['y']-(_0x3fc1c1['y']-_0x4a856f['y'])/0x6};_0x42a2eb[_0x321054(0x20b)]({'command':'C','points':[_0x2138b6['x'],_0x2138b6['y'],_0x30c6a8['x'],_0x30c6a8['y'],_0x5a1c20['x'],_0x5a1c20['y']]});}return _0x42a2eb;}function xe(_0x43204b){const _0x180ace=_0x1211;var _0x3e228f;let {model:_0xa3d708,sourceModel:_0x24778f=_0xa3d708,style:_0x170177}=_0x43204b,_0x194a95=(_0x3e228f=_0x43204b[_0x180ace(0x215)])==null?_0xa3d708['kind']:_0x3e228f,_0x2525c9=G(_0xa3d708),_0x3214d8=_0xa3d708[_0x180ace(0x1f8)]==='pen'&&_0x194a95!=='pen'?_0xa3d708:void 0x0;return{'transform':{..._0x2525c9,'rotation':0x0},'shapeData':ye(_0xa3d708,_0x170177),'ink':{'version':0x1,'tool':_0x194a95,'sourceModel':_0x24778f,..._0x3214d8?{'editModel':_0x3214d8}:{},'normalizedBounds':_0x2525c9}};}var Se=_0x4602de(0x1c0),Ce=_0x4602de(0x1c7);function q(_0x3db7cb){'@babel/helpers - typeof';const _0xe4ad9e=_0x4602de;return q=typeof Symbol=='function'&&typeof Symbol[_0xe4ad9e(0x1f4)]==_0xe4ad9e(0x214)?function(_0x12e51e){return typeof _0x12e51e;}:function(_0x3d0599){const _0x129da7=_0xe4ad9e;return _0x3d0599&&typeof Symbol=='function'&&_0x3d0599[_0x129da7(0x1bf)]===Symbol&&_0x3d0599!==Symbol[_0x129da7(0x1ff)]?_0x129da7(0x214):typeof _0x3d0599;},q(_0x3db7cb);}function we(_0x4616bb,_0x3450ed){const _0x308030=_0x4602de;if(q(_0x4616bb)!='object'||!_0x4616bb)return _0x4616bb;var _0x37d4fd=_0x4616bb[Symbol[_0x308030(0x1bd)]];if(_0x37d4fd!==void 0x0){var _0x1337d6=_0x37d4fd[_0x308030(0x1c6)](_0x4616bb,_0x3450ed||_0x308030(0x1d1));if(q(_0x1337d6)!=_0x308030(0x1ce))return _0x1337d6;throw TypeError(_0x308030(0x1e5));}return(_0x3450ed===_0x308030(0x1cd)?String:Number)(_0x4616bb);}function J(_0x2cf7d5){var _0x2588a4=we(_0x2cf7d5,'string');return q(_0x2588a4)=='symbol'?_0x2588a4:_0x2588a4+'';}function Y(_0x2c7ade,_0x497417,_0x5a1879){const _0x58d322=_0x4602de;return(_0x497417=J(_0x497417))in _0x2c7ade?Object[_0x58d322(0x1d3)](_0x2c7ade,_0x497417,{'value':_0x5a1879,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2c7ade[_0x497417]=_0x5a1879,_0x2c7ade;}const X=_0x113c29(_0x4602de(0x1ee));function _0x4eef(){const _0x496427=['registerCommand','8wQWMzo','symbol','tool','top','100292uigght','pen','1025282PXmaBs','UNIVER_UNKNOWN','end','toPrimitive','right','constructor','@univerjs-pro/ink','out','tolerance','_config','map','points','call','1.0.0-alpha.5','_configService','3181017VlRlDb','pointType','ink.operation.start','3458565PsOtLJ','string','object','9535700nxXkRG','corner','default','anchor','defineProperty','createCustomShape','get','_adapters','2624610OdnZzg','findIndex','#f54a45','pluginName','version','disposeWithMe','_injector','symmetric','height','closed','norm','length','Rect','abs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','width','SolidFill','fillColor','splice','left','forEach','none','add','ink.host-adapter.service','startIndex','max','free','endIndex','find','iterator','filter','decorate','slice','kind','beginInkMode','OPERATION','smooth','getOwnPropertyDescriptor','segmentIndex','start','prototype','type','ratio','color','Round','distance','point','2cOGgSL','NoFill','anchors','SolidLine','_commandService','push','hypot','min','973326xGVAaR','round','110sAsyTy','createId'];_0x4eef=function(){return _0x496427;};return _0x4eef();}var Te=class{constructor(){const _0x13fc70=_0x4602de;Y(this,_0x13fc70(0x1d6),[]);}['registerAdapter'](_0x21da3f){const _0x542b73=_0x4602de;return this['_adapters'][_0x542b73(0x20b)](_0x21da3f),_0x373e13(()=>{const _0x1f15f7=_0x542b73;let _0x1a116b=this[_0x1f15f7(0x1d6)]['indexOf'](_0x21da3f);_0x1a116b>=0x0&&this['_adapters'][_0x1f15f7(0x1e9)](_0x1a116b,0x1);});}[_0x4602de(0x1f9)](_0x5db213){const _0x15ac98=_0x4602de;for(let _0x324ad8 of this['_adapters'])if(_0x324ad8[_0x15ac98(0x1f9)](_0x5db213))return!0x0;return!0x1;}async[_0x4602de(0x1d4)](_0x548593){const _0x17606c=_0x4602de;for(let _0x4ccc14 of this[_0x17606c(0x1d6)])if(_0x4ccc14[_0x17606c(0x1d4)]&&await _0x4ccc14[_0x17606c(0x1d4)](_0x548593))return!0x0;return!0x1;}};const Ee={'id':_0x4602de(0x1cb),'type':_0x3e6dda[_0x4602de(0x1fa)],'handler':(_0x3a5dbd,_0x2585f5)=>_0x2585f5?_0x3a5dbd[_0x4602de(0x1d5)](X)[_0x4602de(0x1f9)](_0x2585f5):!0x1},Z={};function Q(_0x932558,_0x2acae1){return function(_0x1c3776,_0x1cc47c){_0x2acae1(_0x1c3776,_0x1cc47c,_0x932558);};}function De(_0x382d75,_0x1a89e1,_0x88ebdb,_0x174c17){const _0x450c75=_0x4602de;var _0x167094=arguments['length'],_0x1012ae=_0x167094<0x3?_0x1a89e1:_0x174c17===null?_0x174c17=Object[_0x450c75(0x1fc)](_0x1a89e1,_0x88ebdb):_0x174c17,_0x5abb30;if(typeof Reflect==_0x450c75(0x1ce)&&typeof Reflect[_0x450c75(0x1f6)]=='function')_0x1012ae=Reflect[_0x450c75(0x1f6)](_0x382d75,_0x1a89e1,_0x88ebdb,_0x174c17);else{for(var _0x5857d2=_0x382d75[_0x450c75(0x1e2)]-0x1;_0x5857d2>=0x0;_0x5857d2--)(_0x5abb30=_0x382d75[_0x5857d2])&&(_0x1012ae=(_0x167094<0x3?_0x5abb30(_0x1012ae):_0x167094>0x3?_0x5abb30(_0x1a89e1,_0x88ebdb,_0x1012ae):_0x5abb30(_0x1a89e1,_0x88ebdb))||_0x1012ae);}return _0x167094>0x3&&_0x1012ae&&Object[_0x450c75(0x1d3)](_0x1a89e1,_0x88ebdb,_0x1012ae),_0x1012ae;}let $=class extends _0x1732ef{constructor(_0x49581a=Z,_0x2251c4,_0x2e4743,_0x25a73b){const _0x4a00e1=_0x4602de;super(),this['_config']=_0x49581a,this[_0x4a00e1(0x1dd)]=_0x2251c4,this[_0x4a00e1(0x20a)]=_0x2e4743,this[_0x4a00e1(0x1c8)]=_0x25a73b;let {..._0x2bde7d}=_0x2ec470({},Z,this[_0x4a00e1(0x1c3)]);this['_configService']['setConfig']('ink.config',_0x2bde7d);}['onStarting'](){const _0x5791bb=_0x4602de;[[X,{'useClass':Te}]][_0x5791bb(0x1eb)](_0x1192e8=>this[_0x5791bb(0x1dd)][_0x5791bb(0x1ed)](_0x1192e8)),this[_0x5791bb(0x1dc)](this[_0x5791bb(0x20a)][_0x5791bb(0x212)](Ee));}};Y($,_0x4602de(0x1da),'UNIVER_INK_PLUGIN'),Y($,'packageName',Se),Y($,_0x4602de(0x1db),Ce),Y($,_0x4602de(0x200),_0x2f3686[_0x4602de(0x1bb)]),$=De([_0x21f9f4(_0x1c9fb0),Q(0x1,_0x83b12a(_0x4b9262)),Q(0x2,_0x44cbdf),Q(0x3,_0x74df07)],$);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 _0x5583(_0x407a9b,_0x227ec8){_0x407a9b=_0x407a9b-0xf3;const _0x2dc5cf=_0x2dc5();let _0x55830b=_0x2dc5cf[_0x407a9b];return _0x55830b;}(function(_0x22db14,_0x425209){const _0x3df7da=_0x5583,_0x46a755=_0x22db14();while(!![]){try{const _0xeb94b8=parseInt(_0x3df7da(0x117))/0x1*(parseInt(_0x3df7da(0xfa))/0x2)+-parseInt(_0x3df7da(0x116))/0x3+parseInt(_0x3df7da(0x102))/0x4*(parseInt(_0x3df7da(0xf4))/0x5)+parseInt(_0x3df7da(0x111))/0x6+-parseInt(_0x3df7da(0xfb))/0x7+parseInt(_0x3df7da(0x118))/0x8+-parseInt(_0x3df7da(0x106))/0x9;if(_0xeb94b8===_0x425209)break;else _0x46a755['push'](_0x46a755['shift']());}catch(_0x4257cd){_0x46a755['push'](_0x46a755['shift']());}}}(_0x2dc5,0x76d4d),function(_0x4ea036,_0x1138a7){const _0x38a6ad=_0x5583;typeof exports=='object'&&typeof module<'u'?_0x1138a7(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x38a6ad(0x11a)&&define[_0x38a6ad(0x104)]?define([_0x38a6ad(0x129),'@univerjs-pro/boards','@univerjs-pro/boards/facade','@univerjs-pro/ink',_0x38a6ad(0xf5),_0x38a6ad(0x110)],_0x1138a7):(_0x4ea036=typeof globalThis<'u'?globalThis:_0x4ea036||self,_0x1138a7(_0x4ea036[_0x38a6ad(0xff)]={},_0x4ea036[_0x38a6ad(0x10c)],_0x4ea036['UniverProBoardsFacade'],_0x4ea036['UniverProInk'],_0x4ea036[_0x38a6ad(0x105)],_0x4ea036['UniverCoreFacade']));}(this,function(_0x49e13a,_0x5e487e,_0x11c76d,_0x5234ef,_0x140246,_0x5e5dde){const _0x5b0ffb=_0x5583;Object[_0x5b0ffb(0x120)](_0x49e13a,Symbol[_0x5b0ffb(0x107)],{'value':_0x5b0ffb(0x101)});var _0xa3f3ad=class extends _0x11c76d[_0x5b0ffb(0x119)]{[_0x5b0ffb(0x114)](_0x4f85c6){const _0x48c6c9=_0x5b0ffb;let _0x162750=_0x94c236(_0x4f85c6);return _0x162750&&this[_0x48c6c9(0xfe)](_0x162750,{'insertIndex':_0x4f85c6['insertIndex']})?_0x162750:null;}[_0x5b0ffb(0x10e)](){const _0x2032a4=_0x5b0ffb;return this['findElements']({'elementType':_0x5e487e[_0x2032a4(0xfc)][_0x2032a4(0x11f)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](_0x10ea94);}};function _0x94c236(_0x2b9f67,_0x22af19){const _0x239ebb=_0x5b0ffb;var _0xd55013,_0x35d03e,_0x4d41d4;if(!_0xca5f61(_0x2b9f67[_0x239ebb(0x10d)])||_0x2b9f67[_0x239ebb(0x126)]!==void 0x0&&!_0xca5f61(_0x2b9f67[_0x239ebb(0x126)])||!_0x525136(_0x2b9f67[_0x239ebb(0x103)]))return null;let _0x3c5c8d=(_0xd55013=_0x2b9f67[_0x239ebb(0x131)])==null?_0x22af19==null?void 0x0:_0x22af19[_0x239ebb(0x131)]:_0xd55013,_0x14b42e=_0x140246['Tools']['deepClone'](_0x2b9f67[_0x239ebb(0x10d)]),_0x1581b0=(0x0,_0x5234ef[_0x239ebb(0x124)])({'model':_0x14b42e,'style':_0x2b9f67[_0x239ebb(0x103)],'tool':_0x2b9f67[_0x239ebb(0x100)],'sourceModel':_0x2b9f67[_0x239ebb(0x126)]?_0x140246[_0x239ebb(0xfd)]['deepClone'](_0x2b9f67[_0x239ebb(0x126)]):_0x14b42e}),_0x4a1974=_0x39bfd9(_0x22af19==null?void 0x0:_0x22af19[_0x239ebb(0x12e)]);return{'id':(_0x35d03e=(_0x4d41d4=_0x22af19==null?void 0x0:_0x22af19['id'])==null?_0x2b9f67['id']:_0x4d41d4)==null?(0x0,_0x140246['generateRandomId'])(0x6):_0x35d03e,'type':_0x5e487e[_0x239ebb(0xfc)][_0x239ebb(0x11f)],'transform':_0x1581b0[_0x239ebb(0x12a)],'shapeData':_0x1581b0['shapeData'],'parentId':_0x3c5c8d==null?void 0x0:_0x3c5c8d,'laneId':_0x2b9f67[_0x239ebb(0x113)]===void 0x0?_0x22af19==null?void 0x0:_0x22af19['laneId']:_0x2b9f67[_0x239ebb(0x113)],'custom':{..._0x4a1974,'ink':_0x1581b0[_0x239ebb(0x112)]}};}function _0x1dac45(_0x57f22){const _0x1e50f4=_0x5b0ffb;return Number[_0x1e50f4(0xf6)](_0x57f22['x'])&&Number[_0x1e50f4(0xf6)](_0x57f22['y']);}function _0xca5f61(_0x444c49){const _0x1f8761=_0x5b0ffb;if(_0x444c49[_0x1f8761(0x122)]===_0x1f8761(0x128)){let _0x2ce135=new Set();return _0x444c49[_0x1f8761(0x11c)][_0x1f8761(0x10a)]>=(_0x444c49[_0x1f8761(0x108)]?0x3:0x2)&&_0x444c49[_0x1f8761(0x11c)]['every'](_0x4c5977=>{const _0x4c8b3d=_0x1f8761;let _0x242a99=_0x4c5977['id'][_0x4c8b3d(0x125)]()[_0x4c8b3d(0x10a)]>0x0&&!_0x2ce135[_0x4c8b3d(0x12f)](_0x4c5977['id'])&&_0x1dac45(_0x4c5977)&&(!_0x4c5977['in']||_0x1dac45(_0x4c5977['in']))&&(!_0x4c5977[_0x4c8b3d(0x12c)]||_0x1dac45(_0x4c5977[_0x4c8b3d(0x12c)]));return _0x2ce135[_0x4c8b3d(0xf9)](_0x4c5977['id']),_0x242a99;});}return _0x444c49[_0x1f8761(0x127)]['length']>=0x2&&_0x444c49[_0x1f8761(0x127)][_0x1f8761(0xf8)](_0x5ade51=>_0x1dac45(_0x5ade51)&&Number['isFinite'](_0x5ade51['t'])&&(_0x5ade51[_0x1f8761(0x11d)]===void 0x0||Number[_0x1f8761(0xf6)](_0x5ade51['pressure'])))&&Number['isFinite'](_0x444c49[_0x1f8761(0x130)])&&_0x444c49[_0x1f8761(0x130)]>0x0&&Number[_0x1f8761(0xf6)](_0x444c49['opacity'])&&_0x444c49['opacity']>=0x0&&_0x444c49[_0x1f8761(0x109)]<=0x1;}function _0x525136(_0x394780){const _0x33b44d=_0x5b0ffb;return _0x394780===void 0x0||(_0x394780[_0x33b44d(0x130)]===void 0x0||Number['isFinite'](_0x394780['width'])&&_0x394780[_0x33b44d(0x130)]>0x0)&&(_0x394780[_0x33b44d(0x109)]===void 0x0||Number[_0x33b44d(0xf6)](_0x394780[_0x33b44d(0x109)])&&_0x394780[_0x33b44d(0x109)]>=0x0&&_0x394780[_0x33b44d(0x109)]<=0x1);}function _0x39bfd9(_0xa1fc07){const _0x59af15=_0x5b0ffb;return _0xa1fc07&&typeof _0xa1fc07==_0x59af15(0x121)&&!Array[_0x59af15(0x12d)](_0xa1fc07)?_0xa1fc07:{};}function _0x1dd2c9(_0x3b5cb7){const _0x1f6b3f=_0x5b0ffb;let _0x5871f5=_0x39bfd9(_0x3b5cb7[_0x1f6b3f(0x12e)])[_0x1f6b3f(0x112)];if(!_0x5871f5||typeof _0x5871f5!='object'||Array[_0x1f6b3f(0x12d)](_0x5871f5))return null;let _0x40218d=_0x5871f5;return _0x40218d[_0x1f6b3f(0x12b)]===0x1&&_0x40218d[_0x1f6b3f(0x126)]&&typeof _0x40218d[_0x1f6b3f(0x126)]==_0x1f6b3f(0x121)?_0x40218d:null;}function _0x10ea94(_0x26176a){const _0x2ee9ac=_0x5b0ffb;return _0x26176a['type']===_0x5e487e[_0x2ee9ac(0xfc)][_0x2ee9ac(0x11f)]&&!!_0x1dd2c9(_0x26176a);}_0x11c76d[_0x5b0ffb(0x119)][_0x5b0ffb(0x115)](_0xa3f3ad);let _0x4738d8={'Pen':'pen','Brush':_0x5b0ffb(0xf3),'Highlighter':_0x5b0ffb(0x11e)},_0x25ecd3={'Corner':_0x5b0ffb(0xf7),'Smooth':_0x5b0ffb(0x11b),'Symmetric':'symmetric','Free':_0x5b0ffb(0x123)},_0x2d839b={'Anchor':'anchor','In':'in','Out':_0x5b0ffb(0x12c)};var _0x4e063f=class extends _0x5e5dde[_0x5b0ffb(0x132)]{get[_0x5b0ffb(0x10b)](){return _0x4738d8;}get[_0x5b0ffb(0x10f)](){return _0x25ecd3;}get['BoardInkHandleKind'](){return _0x2d839b;}};_0x5e5dde['FEnum'][_0x5b0ffb(0x115)](_0x4e063f),_0x49e13a['BoardInkHandleKind']=_0x2d839b,_0x49e13a[_0x5b0ffb(0x10f)]=_0x25ecd3,_0x49e13a[_0x5b0ffb(0x10b)]=_0x4738d8;}));function _0x2dc5(){const _0x23446b=['FEnum','brush','5PezJpL','@univerjs/core','isFinite','corner','every','add','12410ETodbV','702009leOZQY','BoardElementType','Tools','addElement','UniverProInkFacade','tool','Module','1846088ooXgmZ','style','amd','UniverCore','19119375NkljYS','toStringTag','closed','opacity','length','BoardInkTool','UniverProBoards','model','getInks','BoardInkPointType','@univerjs/core/facade','5802156wCHNOq','ink','laneId','insertInk','extend','1651755sIogTa','153zgUKNK','7072536BwGzml','FBoard','function','smooth','anchors','pressure','highlighter','Shape','defineProperty','object','kind','free','buildInkCustomShapePayload','trim','sourceModel','points','pen','exports','transform','version','out','isArray','custom','has','width','parentId'];_0x2dc5=function(){return _0x23446b;};return _0x2dc5();}
1
+ function _0x37a2(_0x2e941e,_0x5bfb87){_0x2e941e=_0x2e941e-0x74;const _0x60e10c=_0x60e1();let _0x37a268=_0x60e10c[_0x2e941e];return _0x37a268;}function _0x60e1(){const _0x4c159a=['anchor','Shape','Tools','UniverProInkFacade','function','points','BoardInkPointType','findElements','18tyCkJl','UniverCore','every','symmetric','UniverProBoards','Module','3554136JfCawF','addElement','has','kind','FBoard','@univerjs-pro/boards','BoardElementType','isFinite','1957743zDjaaS','@univerjs/core','2035880AvVSXp','ink','generateRandomId','deepClone','width','insertInk','3885lMGLTS','560922HhZYIA','sourceModel','BoardInkTool','FEnum','filter','length','UniverCoreFacade','UniverProBoardsFacade','buildInkCustomShapePayload','539955GlFOee','defineProperty','anchors','BoardInkHandleKind','version','opacity','tool','highlighter','object','out','type','trim','custom','pressure','80TSHZSU','style','extend','brush','exports','parentId','isArray','transform','add','UniverProInk','insertIndex','shapeData','model','laneId','20824722lnPaWG'];_0x60e1=function(){return _0x4c159a;};return _0x60e1();}(function(_0x10afa3,_0x1cdd36){const _0x47e7b7=_0x37a2,_0x287adf=_0x10afa3();while(!![]){try{const _0x3533f7=parseInt(_0x47e7b7(0xa4))/0x1+-parseInt(_0x47e7b7(0x9b))/0x2+-parseInt(_0x47e7b7(0x92))/0x3+parseInt(_0x47e7b7(0xb2))/0x4*(parseInt(_0x47e7b7(0x9a))/0x5)+parseInt(_0x47e7b7(0x84))/0x6*(-parseInt(_0x47e7b7(0x94))/0x7)+-parseInt(_0x47e7b7(0x8a))/0x8+parseInt(_0x47e7b7(0x7b))/0x9;if(_0x3533f7===_0x1cdd36)break;else _0x287adf['push'](_0x287adf['shift']());}catch(_0x1158d0){_0x287adf['push'](_0x287adf['shift']());}}}(_0x60e1,0x97404),function(_0xd7dc93,_0x318c70){const _0x568c84=_0x37a2;typeof exports==_0x568c84(0xac)&&typeof module<'u'?_0x318c70(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x568c84(0x80)&&define['amd']?define([_0x568c84(0xb6),_0x568c84(0x8f),'@univerjs-pro/boards/facade','@univerjs-pro/ink',_0x568c84(0x93),'@univerjs/core/facade'],_0x318c70):(_0xd7dc93=typeof globalThis<'u'?globalThis:_0xd7dc93||self,_0x318c70(_0xd7dc93[_0x568c84(0x7f)]={},_0xd7dc93[_0x568c84(0x88)],_0xd7dc93[_0x568c84(0xa2)],_0xd7dc93[_0x568c84(0x76)],_0xd7dc93[_0x568c84(0x85)],_0xd7dc93[_0x568c84(0xa1)]));}(this,function(_0x18ec7b,_0x5b8a52,_0x202a6c,_0x540a82,_0x5e91af,_0x5227fb){const _0x19dddf=_0x37a2;Object[_0x19dddf(0xa5)](_0x18ec7b,Symbol['toStringTag'],{'value':_0x19dddf(0x89)});var _0x72253=class extends _0x202a6c[_0x19dddf(0x8e)]{[_0x19dddf(0x99)](_0x58d394){const _0x4407a4=_0x19dddf;let _0x4a4a1a=_0x5bba81(_0x58d394);return _0x4a4a1a&&this[_0x4407a4(0x8b)](_0x4a4a1a,{'insertIndex':_0x58d394[_0x4407a4(0x77)]})?_0x4a4a1a:null;}['getInks'](){const _0x2be070=_0x19dddf;return this[_0x2be070(0x83)]({'elementType':_0x5b8a52['BoardElementType']['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x2be070(0x9f)](_0x13c5e9);}};function _0x5bba81(_0x4fea51,_0x3635e1){const _0x3573bf=_0x19dddf;var _0x14d5db,_0x5f190a,_0x6e3dd8;if(!_0x23d160(_0x4fea51[_0x3573bf(0x79)])||_0x4fea51[_0x3573bf(0x9c)]!==void 0x0&&!_0x23d160(_0x4fea51[_0x3573bf(0x9c)])||!_0x212ad0(_0x4fea51[_0x3573bf(0xb3)]))return null;let _0x38de8e=(_0x14d5db=_0x4fea51[_0x3573bf(0xb7)])==null?_0x3635e1==null?void 0x0:_0x3635e1[_0x3573bf(0xb7)]:_0x14d5db,_0x54993b=_0x5e91af[_0x3573bf(0x7e)]['deepClone'](_0x4fea51[_0x3573bf(0x79)]),_0x4f7652=(0x0,_0x540a82[_0x3573bf(0xa3)])({'model':_0x54993b,'style':_0x4fea51[_0x3573bf(0xb3)],'tool':_0x4fea51[_0x3573bf(0xaa)],'sourceModel':_0x4fea51[_0x3573bf(0x9c)]?_0x5e91af[_0x3573bf(0x7e)][_0x3573bf(0x97)](_0x4fea51[_0x3573bf(0x9c)]):_0x54993b}),_0x2a0f04=_0x4ddc39(_0x3635e1==null?void 0x0:_0x3635e1[_0x3573bf(0xb0)]);return{'id':(_0x5f190a=(_0x6e3dd8=_0x3635e1==null?void 0x0:_0x3635e1['id'])==null?_0x4fea51['id']:_0x6e3dd8)==null?(0x0,_0x5e91af[_0x3573bf(0x96)])(0x6):_0x5f190a,'type':_0x5b8a52[_0x3573bf(0x90)][_0x3573bf(0x7d)],'transform':_0x4f7652[_0x3573bf(0x74)],'shapeData':_0x4f7652[_0x3573bf(0x78)],'parentId':_0x38de8e==null?void 0x0:_0x38de8e,'laneId':_0x4fea51[_0x3573bf(0x7a)]===void 0x0?_0x3635e1==null?void 0x0:_0x3635e1[_0x3573bf(0x7a)]:_0x4fea51[_0x3573bf(0x7a)],'custom':{..._0x2a0f04,'ink':_0x4f7652[_0x3573bf(0x95)]}};}function _0x23adda(_0x4fae85){const _0x5714ab=_0x19dddf;return Number[_0x5714ab(0x91)](_0x4fae85['x'])&&Number[_0x5714ab(0x91)](_0x4fae85['y']);}function _0x23d160(_0x172149){const _0x1d0f67=_0x19dddf;if(_0x172149[_0x1d0f67(0x8d)]==='pen'){let _0xa76b05=new Set();return _0x172149[_0x1d0f67(0xa6)][_0x1d0f67(0xa0)]>=(_0x172149['closed']?0x3:0x2)&&_0x172149['anchors']['every'](_0x221b11=>{const _0x3ded8e=_0x1d0f67;let _0x4b7678=_0x221b11['id'][_0x3ded8e(0xaf)]()[_0x3ded8e(0xa0)]>0x0&&!_0xa76b05[_0x3ded8e(0x8c)](_0x221b11['id'])&&_0x23adda(_0x221b11)&&(!_0x221b11['in']||_0x23adda(_0x221b11['in']))&&(!_0x221b11[_0x3ded8e(0xad)]||_0x23adda(_0x221b11[_0x3ded8e(0xad)]));return _0xa76b05[_0x3ded8e(0x75)](_0x221b11['id']),_0x4b7678;});}return _0x172149[_0x1d0f67(0x81)][_0x1d0f67(0xa0)]>=0x2&&_0x172149[_0x1d0f67(0x81)][_0x1d0f67(0x86)](_0x45c9b4=>_0x23adda(_0x45c9b4)&&Number[_0x1d0f67(0x91)](_0x45c9b4['t'])&&(_0x45c9b4[_0x1d0f67(0xb1)]===void 0x0||Number[_0x1d0f67(0x91)](_0x45c9b4['pressure'])))&&Number['isFinite'](_0x172149[_0x1d0f67(0x98)])&&_0x172149['width']>0x0&&Number['isFinite'](_0x172149['opacity'])&&_0x172149[_0x1d0f67(0xa9)]>=0x0&&_0x172149[_0x1d0f67(0xa9)]<=0x1;}function _0x212ad0(_0x499639){const _0x301de4=_0x19dddf;return _0x499639===void 0x0||(_0x499639[_0x301de4(0x98)]===void 0x0||Number[_0x301de4(0x91)](_0x499639[_0x301de4(0x98)])&&_0x499639['width']>0x0)&&(_0x499639['opacity']===void 0x0||Number['isFinite'](_0x499639[_0x301de4(0xa9)])&&_0x499639[_0x301de4(0xa9)]>=0x0&&_0x499639[_0x301de4(0xa9)]<=0x1);}function _0x4ddc39(_0x363b36){const _0x436881=_0x19dddf;return _0x363b36&&typeof _0x363b36=='object'&&!Array[_0x436881(0xb8)](_0x363b36)?_0x363b36:{};}function _0x1fa47f(_0x2d1f8c){const _0x8a1d73=_0x19dddf;let _0x231518=_0x4ddc39(_0x2d1f8c[_0x8a1d73(0xb0)])[_0x8a1d73(0x95)];if(!_0x231518||typeof _0x231518!=_0x8a1d73(0xac)||Array[_0x8a1d73(0xb8)](_0x231518))return null;let _0x3e6d75=_0x231518;return _0x3e6d75[_0x8a1d73(0xa8)]===0x1&&_0x3e6d75[_0x8a1d73(0x9c)]&&typeof _0x3e6d75[_0x8a1d73(0x9c)]=='object'?_0x3e6d75:null;}function _0x13c5e9(_0x1d7032){const _0x1b0a10=_0x19dddf;return _0x1d7032[_0x1b0a10(0xae)]===_0x5b8a52[_0x1b0a10(0x90)][_0x1b0a10(0x7d)]&&!!_0x1fa47f(_0x1d7032);}_0x202a6c[_0x19dddf(0x8e)][_0x19dddf(0xb4)](_0x72253);let _0x34ab00={'Pen':'pen','Brush':_0x19dddf(0xb5),'Highlighter':_0x19dddf(0xab)},_0x3e5c22={'Corner':'corner','Smooth':'smooth','Symmetric':_0x19dddf(0x87),'Free':'free'},_0x3060c5={'Anchor':_0x19dddf(0x7c),'In':'in','Out':_0x19dddf(0xad)};var _0x30ad2c=class extends _0x5227fb[_0x19dddf(0x9e)]{get[_0x19dddf(0x9d)](){return _0x34ab00;}get['BoardInkPointType'](){return _0x3e5c22;}get[_0x19dddf(0xa7)](){return _0x3060c5;}};_0x5227fb[_0x19dddf(0x9e)]['extend'](_0x30ad2c),_0x18ec7b[_0x19dddf(0xa7)]=_0x3060c5,_0x18ec7b[_0x19dddf(0x82)]=_0x3e5c22,_0x18ec7b['BoardInkTool']=_0x34ab00;}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xb1f5(_0x1cb5f7,_0x261bd9){_0x1cb5f7=_0x1cb5f7-0x109;const _0x4c1d89=_0x4c1d();let _0xb1f575=_0x4c1d89[_0x1cb5f7];return _0xb1f575;}(function(_0x65922d,_0x322184){const _0x2712de=_0xb1f5,_0x1c0694=_0x65922d();while(!![]){try{const _0x467f3c=-parseInt(_0x2712de(0x181))/0x1*(parseInt(_0x2712de(0x12b))/0x2)+-parseInt(_0x2712de(0x15d))/0x3*(-parseInt(_0x2712de(0x177))/0x4)+parseInt(_0x2712de(0x172))/0x5+parseInt(_0x2712de(0x14d))/0x6+parseInt(_0x2712de(0x125))/0x7+-parseInt(_0x2712de(0x158))/0x8+-parseInt(_0x2712de(0x166))/0x9;if(_0x467f3c===_0x322184)break;else _0x1c0694['push'](_0x1c0694['shift']());}catch(_0x2c95d7){_0x1c0694['push'](_0x1c0694['shift']());}}}(_0x4c1d,0x79b9e),function(_0x34e9a7,_0x16e5b5){const _0x3654c4=_0xb1f5;typeof exports==_0x3654c4(0x17b)&&typeof module<'u'?_0x16e5b5(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x3654c4(0x146)&&define['amd']?define([_0x3654c4(0x126),'@univerjs-pro/engine-shape','@univerjs-pro/license','@univerjs/core'],_0x16e5b5):(_0x34e9a7=typeof globalThis<'u'?globalThis:_0x34e9a7||self,_0x16e5b5(_0x34e9a7[_0x3654c4(0x178)]={},_0x34e9a7[_0x3654c4(0x180)],_0x34e9a7[_0x3654c4(0x11d)],_0x34e9a7[_0x3654c4(0x15c)]));}(this,function(_0x2d8532,_0x5c9201,_0x4e0fe3,_0x35b9de){const _0x288907=_0xb1f5;Object['defineProperty'](_0x2d8532,Symbol['toStringTag'],{'value':_0x288907(0x144)});let _0x4c8476=0.0001;function _0xcf82aa(_0x1f253c){return{'x':_0x1f253c['x'],'y':_0x1f253c['y']};}function _0x3d2be8(_0x40d866){const _0x457dd4=_0x288907;return{..._0x40d866,'in':_0x40d866['in']?_0xcf82aa(_0x40d866['in']):void 0x0,'out':_0x40d866[_0x457dd4(0x16b)]?_0xcf82aa(_0x40d866[_0x457dd4(0x16b)]):void 0x0};}function _0x3d806d(_0x32b142){const _0x17acf4=_0x288907;return{'kind':_0x17acf4(0x17f),'closed':_0x32b142[_0x17acf4(0x13f)],'anchors':_0x32b142[_0x17acf4(0x124)]['map'](_0x3d2be8)};}function _0x3e063d(_0x1f9b16,_0x5e35bc,_0x29bd3d){return{'x':_0x1f9b16['x']+(_0x5e35bc['x']-_0x1f9b16['x'])*_0x29bd3d,'y':_0x1f9b16['y']+(_0x5e35bc['y']-_0x1f9b16['y'])*_0x29bd3d};}function _0xc331d8(_0x1218db,_0x10bab0){const _0x3d2cf5=_0x288907;return Math[_0x3d2cf5(0x13e)](_0x1218db['x']-_0x10bab0['x'],_0x1218db['y']-_0x10bab0['y']);}function _0x120876(_0x2ad250){const _0x5d0c76=_0x288907;let _0x327f7d=Math[_0x5d0c76(0x13e)](_0x2ad250['x'],_0x2ad250['y']);return _0x327f7d<_0x4c8476?{'x':0x1,'y':0x0}:{'x':_0x2ad250['x']/_0x327f7d,'y':_0x2ad250['y']/_0x327f7d};}function _0x3ff2e4(_0xce8b1e,_0x40f2dd,_0x516b5d=_0xc331d8(_0xce8b1e,_0x40f2dd)){let _0x4e2bc5=_0x120876({'x':_0xce8b1e['x']-_0x40f2dd['x'],'y':_0xce8b1e['y']-_0x40f2dd['y']});return{'x':_0xce8b1e['x']+_0x4e2bc5['x']*_0x516b5d,'y':_0xce8b1e['y']+_0x4e2bc5['y']*_0x516b5d};}function _0x272c24(_0x46c30f,_0x37e14e){const _0x234085=_0x288907;let {anchors:_0xb1467a}=_0x46c30f;return _0xb1467a[_0x234085(0x12e)]<0x2||_0x37e14e<0x0?null:_0x37e14e<_0xb1467a[_0x234085(0x12e)]-0x1?{'startIndex':_0x37e14e,'endIndex':_0x37e14e+0x1,'start':_0xb1467a[_0x37e14e],'end':_0xb1467a[_0x37e14e+0x1]}:_0x46c30f[_0x234085(0x13f)]&&_0x37e14e===_0xb1467a[_0x234085(0x12e)]-0x1?{'startIndex':_0xb1467a['length']-0x1,'endIndex':0x0,'start':_0xb1467a[_0xb1467a[_0x234085(0x12e)]-0x1],'end':_0xb1467a[0x0]}:null;}function _0x51571f(_0x5bf4b2,_0x124529){const _0x2fffb5=_0x288907;var _0x57f8c2,_0x357b1b;let _0x439afa=_0x272c24(_0x5bf4b2,_0x124529);return _0x439afa?[_0x439afa[_0x2fffb5(0x173)],(_0x57f8c2=_0x439afa[_0x2fffb5(0x173)][_0x2fffb5(0x16b)])==null?_0x439afa[_0x2fffb5(0x173)]:_0x57f8c2,(_0x357b1b=_0x439afa[_0x2fffb5(0x14e)]['in'])==null?_0x439afa[_0x2fffb5(0x14e)]:_0x357b1b,_0x439afa[_0x2fffb5(0x14e)]]:null;}function _0x223728(_0x3e3c6d,_0x267850){const _0x1bd7f9=_0x288907;var _0x25df53;return _0x267850===_0x1bd7f9(0x149)?_0x3e3c6d:(_0x25df53=_0x3e3c6d[_0x267850])==null?null:_0x25df53;}function _0x10c467(_0x29280f,_0x350ddd,_0x1c2eb3){const _0x516d76=_0x288907;return _0x1c2eb3===_0x516d76(0x149)||_0x29280f['closed']?!0x0:_0x1c2eb3==='in'?_0x350ddd>0x0:_0x350ddd<_0x29280f['anchors'][_0x516d76(0x12e)]-0x1;}function _0x235ebb(_0x3eab0c,_0x589ce7){let [_0x3ce35a,_0xe0ca16,_0x47e644,_0x5b9cc1]=_0x3eab0c,_0x12b559=_0x3e063d(_0x3ce35a,_0xe0ca16,_0x589ce7),_0x55477c=_0x3e063d(_0xe0ca16,_0x47e644,_0x589ce7),_0x13f009=_0x3e063d(_0x47e644,_0x5b9cc1,_0x589ce7);return _0x3e063d(_0x3e063d(_0x12b559,_0x55477c,_0x589ce7),_0x3e063d(_0x55477c,_0x13f009,_0x589ce7),_0x589ce7);}function _0xfefcc5(_0x540ccd,_0x3de7d0){let [_0x35e264,_0x4fbb19,_0x1c6fd6,_0x117c05]=_0x540ccd,_0x55eea4=_0x3e063d(_0x35e264,_0x4fbb19,_0x3de7d0),_0x29335d=_0x3e063d(_0x4fbb19,_0x1c6fd6,_0x3de7d0),_0x179e17=_0x3e063d(_0x1c6fd6,_0x117c05,_0x3de7d0),_0x42f6d4=_0x3e063d(_0x55eea4,_0x29335d,_0x3de7d0),_0x330b79=_0x3e063d(_0x29335d,_0x179e17,_0x3de7d0),_0x33844c=_0x3e063d(_0x42f6d4,_0x330b79,_0x3de7d0);return{'left':[_0x35e264,_0x55eea4,_0x42f6d4,_0x33844c],'right':[_0x33844c,_0x330b79,_0x179e17,_0x117c05]};}function _0x17efc0(_0x3b4a60,_0x25e102,_0x41b67b){const _0x34dbe3=_0x288907;let _0x3decae=_0x41b67b['x']-_0x25e102['x'],_0x32aec1=_0x41b67b['y']-_0x25e102['y'],_0x247cb6=_0x3decae*_0x3decae+_0x32aec1*_0x32aec1,_0x1964a7=_0x247cb6<=_0x4c8476?0x0:Math[_0x34dbe3(0x176)](0x0,Math[_0x34dbe3(0x183)](0x1,((_0x3b4a60['x']-_0x25e102['x'])*_0x3decae+(_0x3b4a60['y']-_0x25e102['y'])*_0x32aec1)/_0x247cb6)),_0x1d971c={'x':_0x25e102['x']+_0x3decae*_0x1964a7,'y':_0x25e102['y']+_0x32aec1*_0x1964a7};return{'point':_0x1d971c,'ratio':_0x1964a7,'distance':_0xc331d8(_0x3b4a60,_0x1d971c)};}function _0x184403(_0x501e7b,_0x59d1cb,_0x27cd5a){return _0x17efc0(_0x501e7b,_0x59d1cb,_0x27cd5a)['distance']**0x2;}function _0x14eff0(_0xe43bed,_0x5c6c74){const _0x34a802=_0x288907;if(_0xe43bed[_0x34a802(0x12e)]<=0x2)return _0xe43bed[_0x34a802(0x118)](_0xcf82aa);let _0x30ac33=0x0,_0x2ed862=0x0,_0x26e7f3=_0xe43bed[0x0],_0x309870=_0xe43bed[_0xe43bed[_0x34a802(0x12e)]-0x1],_0x4916fe=_0x5c6c74*_0x5c6c74;for(let _0x5dd9cb=0x1;_0x5dd9cb<_0xe43bed[_0x34a802(0x12e)]-0x1;_0x5dd9cb++){let _0x3d7e83=_0x184403(_0xe43bed[_0x5dd9cb],_0x26e7f3,_0x309870);_0x3d7e83>_0x30ac33&&(_0x30ac33=_0x3d7e83,_0x2ed862=_0x5dd9cb);}if(_0x30ac33<=_0x4916fe)return[_0xcf82aa(_0x26e7f3),_0xcf82aa(_0x309870)];let _0x4858da=_0x14eff0(_0xe43bed[_0x34a802(0x164)](0x0,_0x2ed862+0x1),_0x5c6c74),_0x5cca4b=_0x14eff0(_0xe43bed['slice'](_0x2ed862),_0x5c6c74);return[..._0x4858da[_0x34a802(0x164)](0x0,-0x1),..._0x5cca4b];}function _0x5aa822(_0x35355a,_0x17de94){var _0x1b0a10;let _0x3a77f3=_0x35355a[_0x17de94],_0x1870e3=_0x35355a[_0x17de94+0x1],_0x311c5b=(_0x1b0a10=_0x35355a[_0x17de94-0x1])==null?_0x3a77f3:_0x1b0a10;return{'x':_0x3a77f3['x']+(_0x1870e3['x']-_0x311c5b['x'])/0x6,'y':_0x3a77f3['y']+(_0x1870e3['y']-_0x311c5b['y'])/0x6};}function _0x743f9e(_0x45e68c,_0x307790){var _0x36ec80;let _0x4983d0=_0x45e68c[_0x307790],_0x37df61=_0x45e68c[_0x307790-0x1],_0x50c5cf=(_0x36ec80=_0x45e68c[_0x307790+0x1])==null?_0x4983d0:_0x36ec80;return{'x':_0x4983d0['x']-(_0x50c5cf['x']-_0x37df61['x'])/0x6,'y':_0x4983d0['y']-(_0x50c5cf['y']-_0x37df61['y'])/0x6};}function _0x130d9e(_0x2daa2f,_0x267d7e){const _0x2bbfb4=_0x288907;var _0x5a6142,_0x3263d0;let _0x54d958=_0x2daa2f['anchors'][_0x267d7e],_0x2f981f=(_0x5a6142=_0x2daa2f['anchors'][_0x267d7e-0x1])==null?_0x2daa2f[_0x2bbfb4(0x13f)]?_0x2daa2f[_0x2bbfb4(0x124)][_0x2daa2f['anchors'][_0x2bbfb4(0x12e)]-0x1]:null:_0x5a6142,_0x46d769=(_0x3263d0=_0x2daa2f['anchors'][_0x267d7e+0x1])==null?_0x2daa2f[_0x2bbfb4(0x13f)]?_0x2daa2f[_0x2bbfb4(0x124)][0x0]:null:_0x3263d0,_0xdcc5df=_0x2f981f&&_0x46d769?_0x120876({'x':_0x46d769['x']-_0x2f981f['x'],'y':_0x46d769['y']-_0x2f981f['y']}):_0x46d769?_0x120876({'x':_0x46d769['x']-_0x54d958['x'],'y':_0x46d769['y']-_0x54d958['y']}):_0x2f981f?_0x120876({'x':_0x54d958['x']-_0x2f981f['x'],'y':_0x54d958['y']-_0x2f981f['y']}):{'x':0x1,'y':0x0},_0x365286=_0x2f981f&&_0x46d769?Math[_0x2bbfb4(0x176)](0x32,_0xc331d8(_0x2f981f,_0x46d769)/0x4):0x32;return{'in':{'x':_0x54d958['x']-_0xdcc5df['x']*_0x365286,'y':_0x54d958['y']-_0xdcc5df['y']*_0x365286},'out':{'x':_0x54d958['x']+_0xdcc5df['x']*_0x365286,'y':_0x54d958['y']+_0xdcc5df['y']*_0x365286}};}function _0x4c29fa(_0x58996d,_0x411101){const _0x363440=_0x288907;let _0xb7cd5e=_0x58996d[_0x411101],_0x54b0d2=_0x411101==='in'?_0x363440(0x16b):'in',_0xf8f0e1=_0x58996d[_0x54b0d2];if(_0xb7cd5e){if(_0x58996d[_0x363440(0x16a)]==='symmetric'){_0x58996d[_0x54b0d2]=_0x3ff2e4(_0x58996d,_0xb7cd5e);return;}_0x58996d[_0x363440(0x16a)]==='smooth'&&(_0x58996d[_0x54b0d2]=_0x3ff2e4(_0x58996d,_0xb7cd5e,_0xf8f0e1?_0xc331d8(_0x58996d,_0xf8f0e1):_0xc331d8(_0x58996d,_0xb7cd5e)));}}function _0x558d06(_0x5ca3d9,_0xc50940){const _0x3a51ef=_0x288907;let _0x304c2e=_0x3d806d(_0x5ca3d9);return!_0xc50940||_0x304c2e[_0x3a51ef(0x13f)]||_0x304c2e[_0x3a51ef(0x124)][_0x3a51ef(0x12e)]===0x0||_0x304c2e[_0x3a51ef(0x124)][_0x3a51ef(0x14f)]({'id':_0x3a51ef(0x13a),'x':_0xc50940['x'],'y':_0xc50940['y'],'pointType':_0x3a51ef(0x119)}),_0x304c2e;}function _0x5c42f7(_0x1d9689,_0x4a746a={}){const _0x4cce77=_0x288907;var _0x129a82,_0x16f250;let _0x29077c=Math[_0x4cce77(0x176)](0x0,(_0x129a82=_0x4a746a['tolerance'])==null?Math[_0x4cce77(0x176)](0x4,_0x1d9689[_0x4cce77(0x140)]*0.35):_0x129a82),_0x391eec=(_0x16f250=_0x4a746a[_0x4cce77(0x175)])==null?_0x33974f=>_0x4cce77(0x10b)+_0x33974f:_0x16f250,_0x7da0ff=_0x14eff0(_0x1d9689[_0x4cce77(0x109)],_0x29077c),_0x3b019b=_0x7da0ff[_0x4cce77(0x118)]((_0x2c8cbd,_0x38a2b7)=>({'id':_0x391eec(_0x38a2b7),'x':_0x2c8cbd['x'],'y':_0x2c8cbd['y'],'pointType':_0x4cce77(0x12f)}));for(let _0x580144=0x0;_0x580144<_0x3b019b[_0x4cce77(0x12e)]-0x1;_0x580144++)_0x3b019b[_0x580144][_0x4cce77(0x16b)]=_0x5aa822(_0x7da0ff,_0x580144),_0x3b019b[_0x580144+0x1]['in']=_0x743f9e(_0x7da0ff,_0x580144+0x1);return{'kind':_0x4cce77(0x17f),'closed':!0x1,'anchors':_0x3b019b};}function _0x284e47(_0x1d7884,_0x3c14e1,_0x325da5){const _0x2f3e8f=_0x288907;let _0x455939=null,_0x5347a8=[_0x2f3e8f(0x149),'in',_0x2f3e8f(0x16b)];return _0x1d7884[_0x2f3e8f(0x124)][_0x2f3e8f(0x182)]((_0x47f2b6,_0x48ebc4)=>{const _0x18c11c=_0x2f3e8f;_0x5347a8[_0x18c11c(0x182)](_0x39a303=>{const _0x325d2f=_0x18c11c;if(!_0x10c467(_0x1d7884,_0x48ebc4,_0x39a303))return;let _0x330851=_0x223728(_0x47f2b6,_0x39a303);if(!_0x330851)return;let _0x428fbd=_0xc331d8(_0x3c14e1,_0x330851);_0x428fbd>_0x325da5||_0x455939&&_0x428fbd>=_0x455939[_0x325d2f(0x10d)]||(_0x455939={'handle':{'kind':_0x39a303,'anchorId':_0x47f2b6['id']},'point':_0xcf82aa(_0x330851),'distance':_0x428fbd});});}),_0x455939;}function _0x1c0434(_0x284c0c,_0x1da2db,_0x408b72){const _0x5aa0de=_0x288907;let _0x2c1c97=null,_0x33eef2=_0x284c0c[_0x5aa0de(0x13f)]?_0x284c0c[_0x5aa0de(0x124)][_0x5aa0de(0x12e)]:Math[_0x5aa0de(0x176)](0x0,_0x284c0c['anchors'][_0x5aa0de(0x12e)]-0x1);for(let _0x8b8d7c=0x0;_0x8b8d7c<_0x33eef2;_0x8b8d7c++){let _0x535829=_0x51571f(_0x284c0c,_0x8b8d7c);if(!_0x535829)continue;let _0x45df=_0x235ebb(_0x535829,0x0);for(let _0x397a61=0x1;_0x397a61<=0x20;_0x397a61++){let _0x4159bc=_0x235ebb(_0x535829,_0x397a61/0x20),_0x3c27dd=_0x17efc0(_0x1da2db,_0x45df,_0x4159bc),_0x40daed=(_0x397a61-0x1+_0x3c27dd[_0x5aa0de(0x169)])/0x20;(!_0x2c1c97||_0x3c27dd[_0x5aa0de(0x10d)]<_0x2c1c97['distance'])&&(_0x2c1c97={'segmentIndex':_0x8b8d7c,'t':_0x40daed,'point':_0x3c27dd[_0x5aa0de(0x156)],'distance':_0x3c27dd[_0x5aa0de(0x10d)]}),_0x45df=_0x4159bc;}}return _0x2c1c97&&_0x2c1c97['distance']<=_0x408b72?_0x2c1c97:null;}function _0x7d9f18(_0x37b744,_0x4a1ad3,_0x5ab138){const _0x39a6a2=_0x288907;let _0x3dc04b=_0x3d806d(_0x37b744),_0x4881da=_0x272c24(_0x3dc04b,_0x4a1ad3[_0x39a6a2(0x12d)]),_0x186dcc=_0x51571f(_0x3dc04b,_0x4a1ad3['segmentIndex']);if(!_0x4881da||!_0x186dcc)return _0x3dc04b;let _0x1d58ea=_0xfefcc5(_0x186dcc,Math[_0x39a6a2(0x176)](0x0,Math[_0x39a6a2(0x183)](0x1,_0x4a1ad3['t']))),_0x506f30={'id':_0x5ab138(),'x':_0x1d58ea[_0x39a6a2(0x171)][0x3]['x'],'y':_0x1d58ea[_0x39a6a2(0x171)][0x3]['y'],'in':_0xcf82aa(_0x1d58ea[_0x39a6a2(0x171)][0x2]),'out':_0xcf82aa(_0x1d58ea[_0x39a6a2(0x179)][0x1]),'pointType':_0x39a6a2(0x12f)};return _0x3dc04b['anchors'][_0x4881da[_0x39a6a2(0x16c)]]['out']=_0xcf82aa(_0x1d58ea['left'][0x1]),_0x3dc04b[_0x39a6a2(0x124)][_0x4881da['endIndex']]['in']=_0xcf82aa(_0x1d58ea[_0x39a6a2(0x179)][0x2]),_0x3dc04b[_0x39a6a2(0x124)]['splice'](_0x4881da[_0x39a6a2(0x16c)]+0x1,0x0,_0x506f30),_0x3dc04b;}function _0x3b0b62(_0x400e75,_0x153835){const _0x1c494a=_0x288907;let _0x3eddc2=_0x3d806d(_0x400e75);return _0x3eddc2[_0x1c494a(0x124)]=_0x3eddc2[_0x1c494a(0x124)][_0x1c494a(0x157)](_0x109649=>_0x109649['id']!==_0x153835),_0x3eddc2[_0x1c494a(0x13f)]&&_0x3eddc2[_0x1c494a(0x124)][_0x1c494a(0x12e)]<0x3&&(_0x3eddc2[_0x1c494a(0x13f)]=!0x1),_0x3eddc2;}function _0x162bc7(_0x46d043,_0x122b3c,_0x776cab){const _0x12d204=_0x288907;let _0x5f4f49=_0x3d806d(_0x46d043),_0x7afabb=_0x5f4f49['anchors'][_0x12d204(0x151)](_0x5d6d92=>_0x5d6d92['id']===_0x122b3c),_0xca3823=_0x5f4f49['anchors'][_0x7afabb];if(!_0xca3823)return _0x5f4f49;if(_0xca3823[_0x12d204(0x16a)]=_0x776cab,_0x776cab==='corner')return delete _0xca3823['in'],delete _0xca3823[_0x12d204(0x16b)],_0x5f4f49;let _0x41b9ba=_0x130d9e(_0x5f4f49,_0x7afabb);if(_0xca3823['in']=_0xca3823['in']?_0xcf82aa(_0xca3823['in']):_0x41b9ba['in'],_0xca3823['out']=_0xca3823[_0x12d204(0x16b)]?_0xcf82aa(_0xca3823[_0x12d204(0x16b)]):_0x41b9ba[_0x12d204(0x16b)],_0x776cab===_0x12d204(0x114)){let _0x4b20db=Math[_0x12d204(0x176)](_0xc331d8(_0xca3823,_0xca3823['in']),_0xc331d8(_0xca3823,_0xca3823[_0x12d204(0x16b)]),0x32),_0x3f1a75=_0x120876({'x':_0xca3823[_0x12d204(0x16b)]['x']-_0xca3823['x'],'y':_0xca3823[_0x12d204(0x16b)]['y']-_0xca3823['y']});_0xca3823[_0x12d204(0x16b)]={'x':_0xca3823['x']+_0x3f1a75['x']*_0x4b20db,'y':_0xca3823['y']+_0x3f1a75['y']*_0x4b20db},_0xca3823['in']={'x':_0xca3823['x']-_0x3f1a75['x']*_0x4b20db,'y':_0xca3823['y']-_0x3f1a75['y']*_0x4b20db};}else _0x776cab===_0x12d204(0x115)&&_0x4c29fa(_0xca3823,'out');return _0x5f4f49;}function _0x47cb00(_0x1fce46,_0x193913){const _0x2cf2b3=_0x288907;var _0x29c510;let _0x3a5bea=_0x1fce46[_0x2cf2b3(0x124)][_0x2cf2b3(0x11e)](_0x31da35=>_0x31da35['id']===_0x193913),_0xe069b2=(_0x29c510=_0x3a5bea==null?void 0x0:_0x3a5bea[_0x2cf2b3(0x16a)])==null?_0x2cf2b3(0x119):_0x29c510;return _0x162bc7(_0x1fce46,_0x193913,_0xe069b2===_0x2cf2b3(0x119)?_0x2cf2b3(0x115):_0xe069b2===_0x2cf2b3(0x115)?_0x2cf2b3(0x114):_0xe069b2===_0x2cf2b3(0x114)?_0x2cf2b3(0x12f):_0x2cf2b3(0x119));}function _0x44099b(_0x2c0265,_0x478977,_0x57160e){const _0x59c75b=_0x288907;let _0x5413b4=_0x3d806d(_0x2c0265),_0x1e2369=_0x5413b4['anchors'][_0x59c75b(0x11e)](_0x2da7ff=>_0x2da7ff['id']===_0x478977['anchorId']);if(!_0x1e2369)return _0x5413b4;if(_0x478977[_0x59c75b(0x15b)]===_0x59c75b(0x149)){let _0x1f6c03={'x':_0x57160e['x']-_0x1e2369['x'],'y':_0x57160e['y']-_0x1e2369['y']};return _0x1e2369['x']=_0x57160e['x'],_0x1e2369['y']=_0x57160e['y'],_0x1e2369['in']&&(_0x1e2369['in']={'x':_0x1e2369['in']['x']+_0x1f6c03['x'],'y':_0x1e2369['in']['y']+_0x1f6c03['y']}),_0x1e2369['out']&&(_0x1e2369[_0x59c75b(0x16b)]={'x':_0x1e2369[_0x59c75b(0x16b)]['x']+_0x1f6c03['x'],'y':_0x1e2369['out']['y']+_0x1f6c03['y']}),_0x5413b4;}return _0x1e2369[_0x478977[_0x59c75b(0x15b)]]=_0xcf82aa(_0x57160e),_0x1e2369['pointType']===_0x59c75b(0x119)&&(_0x1e2369[_0x59c75b(0x16a)]='free'),_0x4c29fa(_0x1e2369,_0x478977[_0x59c75b(0x15b)]),_0x5413b4;}let _0x14d15c=1e-9;function _0x43c3aa(_0x541080){const _0x37ca9e=_0x288907;let _0xbe91e9=Math[_0x37ca9e(0x17e)](_0x541080*0x2710)/0x2710;return Object['is'](_0xbe91e9,-0x0)?'0':String(_0xbe91e9);}function _0x57d032(_0x5ed798){return _0x43c3aa(_0x5ed798['x'])+'\x20'+_0x43c3aa(_0x5ed798['y']);}function _0x22b46d(_0x8e85a7,_0x57e869){return{'x':_0x8e85a7['x']-_0x57e869['x'],'y':_0x8e85a7['y']-_0x57e869['y']};}function _0x2a7f75(_0x168971,_0x2bcfc9,_0x34b0ee,_0xebcef0,_0x27103d){let _0x5d61bf=0x1-_0x27103d;return{'x':_0x5d61bf*_0x5d61bf*_0x5d61bf*_0x168971['x']+0x3*_0x5d61bf*_0x5d61bf*_0x27103d*_0x2bcfc9['x']+0x3*_0x5d61bf*_0x27103d*_0x27103d*_0x34b0ee['x']+_0x27103d*_0x27103d*_0x27103d*_0xebcef0['x'],'y':_0x5d61bf*_0x5d61bf*_0x5d61bf*_0x168971['y']+0x3*_0x5d61bf*_0x5d61bf*_0x27103d*_0x2bcfc9['y']+0x3*_0x5d61bf*_0x27103d*_0x27103d*_0x34b0ee['y']+_0x27103d*_0x27103d*_0x27103d*_0xebcef0['y']};}function _0x46da5c(_0x37e900,_0x2608b9,_0x5abe1d,_0x375522){const _0x4407f2=_0x288907;let _0xa2581f=-_0x37e900+0x3*_0x2608b9-0x3*_0x5abe1d+_0x375522,_0x2ccae2=0x3*_0x37e900-0x6*_0x2608b9+0x3*_0x5abe1d,_0x4e149f=-0x3*_0x37e900+0x3*_0x2608b9,_0x3a67c6=[];if(Math['abs'](_0xa2581f)<_0x14d15c){if(Math[_0x4407f2(0x121)](_0x2ccae2)<_0x14d15c)return _0x3a67c6;let _0x5a49d6=-_0x4e149f/(0x2*_0x2ccae2);return _0x5a49d6>0x0&&_0x5a49d6<0x1&&_0x3a67c6[_0x4407f2(0x14f)](_0x5a49d6),_0x3a67c6;}let _0x304385=_0x2ccae2*_0x2ccae2-0x3*_0xa2581f*_0x4e149f;if(_0x304385<0x0)return _0x3a67c6;let _0x51df24=Math[_0x4407f2(0x135)](Math[_0x4407f2(0x176)](0x0,_0x304385)),_0x5c9638=(-_0x2ccae2+_0x51df24)/(0x3*_0xa2581f),_0x278a94=(-_0x2ccae2-_0x51df24)/(0x3*_0xa2581f);return _0x5c9638>0x0&&_0x5c9638<0x1&&_0x3a67c6[_0x4407f2(0x14f)](_0x5c9638),_0x278a94>0x0&&_0x278a94<0x1&&Math[_0x4407f2(0x121)](_0x278a94-_0x5c9638)>_0x14d15c&&_0x3a67c6[_0x4407f2(0x14f)](_0x278a94),_0x3a67c6;}function _0x55a613(_0xd78fe,_0x2cb1a7,_0x3bc7bc,_0x189a77,_0x5e1b73){const _0x1eb119=_0x288907;_0xd78fe[_0x1eb119(0x14f)](_0x2cb1a7,_0x5e1b73),new Set([..._0x46da5c(_0x2cb1a7['x'],_0x3bc7bc['x'],_0x189a77['x'],_0x5e1b73['x']),..._0x46da5c(_0x2cb1a7['y'],_0x3bc7bc['y'],_0x189a77['y'],_0x5e1b73['y'])])['forEach'](_0x22eb83=>{const _0x124bee=_0x1eb119;_0xd78fe[_0x124bee(0x14f)](_0x2a7f75(_0x2cb1a7,_0x3bc7bc,_0x189a77,_0x5e1b73,_0x22eb83));});}function _0x1bec23(_0x15652e){const _0x3ed656=_0x288907;let _0x6d7b5a=_0x15652e[_0x3ed656(0x124)];if(_0x6d7b5a['length']<=0x1)return _0x6d7b5a;let _0x54da2b=[];for(let _0x49090e=0x1;_0x49090e<_0x6d7b5a[_0x3ed656(0x12e)];_0x49090e++){var _0x52f83a,_0x3dec83;let _0x4d529a=_0x6d7b5a[_0x49090e-0x1],_0x3ac7eb=_0x6d7b5a[_0x49090e];_0x55a613(_0x54da2b,_0x4d529a,(_0x52f83a=_0x4d529a[_0x3ed656(0x16b)])==null?_0x4d529a:_0x52f83a,(_0x3dec83=_0x3ac7eb['in'])==null?_0x3ac7eb:_0x3dec83,_0x3ac7eb);}if(_0x15652e[_0x3ed656(0x13f)]&&_0x6d7b5a[_0x3ed656(0x12e)]>0x1){var _0xd2c99f,_0xc0c767;let _0x42e5cd=_0x6d7b5a[_0x6d7b5a[_0x3ed656(0x12e)]-0x1],_0x3f6346=_0x6d7b5a[0x0];_0x55a613(_0x54da2b,_0x42e5cd,(_0xd2c99f=_0x42e5cd[_0x3ed656(0x16b)])==null?_0x42e5cd:_0xd2c99f,(_0xc0c767=_0x3f6346['in'])==null?_0x3f6346:_0xc0c767,_0x3f6346);}return _0x54da2b;}function _0x4627fe(_0x42f618){const _0x586478=_0x288907;let _0x57b484=_0x42f618[_0x586478(0x109)];if(_0x57b484[_0x586478(0x12e)]<=0x1)return _0x57b484;let _0xe65ce8=[];for(let _0x5ac0d0=0x0;_0x5ac0d0<_0x57b484[_0x586478(0x12e)]-0x1;_0x5ac0d0++){var _0x46fe3b,_0x49eb87;let _0x548d3e=_0x57b484[_0x5ac0d0],_0x1eab2a=_0x57b484[_0x5ac0d0+0x1],_0x59d790=(_0x46fe3b=_0x57b484[_0x5ac0d0-0x1])==null?_0x548d3e:_0x46fe3b,_0x5853ea=(_0x49eb87=_0x57b484[_0x5ac0d0+0x2])==null?_0x1eab2a:_0x49eb87;_0x55a613(_0xe65ce8,_0x548d3e,{'x':_0x548d3e['x']+(_0x1eab2a['x']-_0x59d790['x'])/0x6,'y':_0x548d3e['y']+(_0x1eab2a['y']-_0x59d790['y'])/0x6},{'x':_0x1eab2a['x']-(_0x5853ea['x']-_0x548d3e['x'])/0x6,'y':_0x1eab2a['y']-(_0x5853ea['y']-_0x548d3e['y'])/0x6},_0x1eab2a);}return _0xe65ce8;}function _0x41fe7c(_0x5e62d1){const _0x6af501=_0x288907;return _0x5e62d1['kind']===_0x6af501(0x17f)?_0x1bec23(_0x5e62d1):_0x4627fe(_0x5e62d1);}function _0x2da717(_0x5b12cc){const _0x4180f6=_0x288907;let _0x2f7e8b=Math[_0x4180f6(0x17e)](_0x5b12cc*0x2710)/0x2710;return Object['is'](_0x2f7e8b,-0x0)?0x0:_0x2f7e8b;}function _0x4b9251(_0x413017){const _0x194e3b=_0x288907;let _0x2284c8=_0x41fe7c(_0x413017);if(_0x2284c8['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x2343f3=Math[_0x194e3b(0x183)](..._0x2284c8[_0x194e3b(0x118)](_0x599a8c=>_0x599a8c['x'])),_0x220a38=Math[_0x194e3b(0x183)](..._0x2284c8[_0x194e3b(0x118)](_0x5a9172=>_0x5a9172['y'])),_0x5796b5=Math[_0x194e3b(0x176)](..._0x2284c8[_0x194e3b(0x118)](_0x448148=>_0x448148['x'])),_0x39bd41=Math[_0x194e3b(0x176)](..._0x2284c8[_0x194e3b(0x118)](_0x58988b=>_0x58988b['y']));return{'left':_0x2da717(_0x2343f3),'top':_0x2da717(_0x220a38),'width':_0x2da717(Math['max'](0x1,_0x5796b5-_0x2343f3)),'height':_0x2da717(Math['max'](0x1,_0x39bd41-_0x220a38))};}function _0x141fe5(_0x17c8e1,_0x5ede23){const _0x3d4138=_0x288907;let _0x29c9c8=_0x17c8e1[_0x3d4138(0x124)];if(_0x29c9c8['length']===0x0)return'';let _0x1d42e9=['M\x20'+_0x57d032(_0x22b46d(_0x29c9c8[0x0],_0x5ede23))];for(let _0x262068=0x1;_0x262068<_0x29c9c8[_0x3d4138(0x12e)];_0x262068++){var _0x54a810,_0x12b376;let _0x26be1f=_0x29c9c8[_0x262068-0x1],_0x44ba74=_0x29c9c8[_0x262068],_0x2db356=(_0x54a810=_0x26be1f[_0x3d4138(0x16b)])==null?_0x26be1f:_0x54a810,_0x3fdfca=(_0x12b376=_0x44ba74['in'])==null?_0x44ba74:_0x12b376;_0x1d42e9['push']('C\x20'+_0x57d032(_0x22b46d(_0x2db356,_0x5ede23))+'\x20'+_0x57d032(_0x22b46d(_0x3fdfca,_0x5ede23))+'\x20'+_0x57d032(_0x22b46d(_0x44ba74,_0x5ede23)));}if(_0x17c8e1['closed']&&_0x29c9c8['length']>0x1){var _0x5c953e,_0x11f47c;let _0x4c0f2b=_0x29c9c8[_0x29c9c8['length']-0x1],_0x3f9db7=_0x29c9c8[0x0],_0x12962b=(_0x5c953e=_0x4c0f2b[_0x3d4138(0x16b)])==null?_0x4c0f2b:_0x5c953e,_0x58d5d6=(_0x11f47c=_0x3f9db7['in'])==null?_0x3f9db7:_0x11f47c;_0x1d42e9[_0x3d4138(0x14f)]('C\x20'+_0x57d032(_0x22b46d(_0x12962b,_0x5ede23))+'\x20'+_0x57d032(_0x22b46d(_0x58d5d6,_0x5ede23))+'\x20'+_0x57d032(_0x22b46d(_0x3f9db7,_0x5ede23))),_0x1d42e9[_0x3d4138(0x14f)]('Z');}return _0x1d42e9['join']('\x20');}function _0x45a704(_0x278495,_0xce5408){const _0x2e67cd=_0x288907;let _0x3c735d=_0x278495[_0x2e67cd(0x109)][_0x2e67cd(0x118)](_0xb5b19=>_0x22b46d(_0xb5b19,_0xce5408));if(_0x3c735d[_0x2e67cd(0x12e)]===0x0)return'';if(_0x3c735d[_0x2e67cd(0x12e)]===0x1)return'M\x20'+_0x57d032(_0x3c735d[0x0]);let _0x44df8f=['M\x20'+_0x57d032(_0x3c735d[0x0])];for(let _0x3343e0=0x0;_0x3343e0<_0x3c735d[_0x2e67cd(0x12e)]-0x1;_0x3343e0++){var _0x17b5ba,_0xd47891;let _0x5dc9e6=_0x3c735d[_0x3343e0],_0x4599cc=_0x3c735d[_0x3343e0+0x1],_0x356d69=(_0x17b5ba=_0x3c735d[_0x3343e0-0x1])==null?_0x5dc9e6:_0x17b5ba,_0x42b055=(_0xd47891=_0x3c735d[_0x3343e0+0x2])==null?_0x4599cc:_0xd47891,_0x219be4={'x':_0x5dc9e6['x']+(_0x4599cc['x']-_0x356d69['x'])/0x6,'y':_0x5dc9e6['y']+(_0x4599cc['y']-_0x356d69['y'])/0x6},_0x2e6923={'x':_0x4599cc['x']-(_0x42b055['x']-_0x5dc9e6['x'])/0x6,'y':_0x4599cc['y']-(_0x42b055['y']-_0x5dc9e6['y'])/0x6};_0x44df8f['push']('C\x20'+_0x57d032(_0x219be4)+'\x20'+_0x57d032(_0x2e6923)+'\x20'+_0x57d032(_0x4599cc));}return _0x44df8f['join']('\x20');}function _0x1e428d(_0x31dbd5,_0x31d0be){const _0x29a4c6=_0x288907;return _0x31dbd5[_0x29a4c6(0x15b)]===_0x29a4c6(0x17f)?_0x141fe5(_0x31dbd5,_0x31d0be):_0x45a704(_0x31dbd5,_0x31d0be);}function _0x2f1f36(_0x850d06,_0x59c455){const _0x14e405=_0x288907;return _0x59c455!=null&&_0x59c455[_0x14e405(0x133)]?_0x59c455['color']:_0x850d06[_0x14e405(0x15b)]===_0x14e405(0x17f)?'#f54a45':_0x850d06['color'];}function _0x54a9ae(_0x7ddebf,_0x4346c9){const _0x297f5a=_0x288907;return(_0x4346c9==null?void 0x0:_0x4346c9[_0x297f5a(0x140)])===void 0x0?_0x7ddebf[_0x297f5a(0x15b)]===_0x297f5a(0x17f)?0x2:_0x7ddebf[_0x297f5a(0x140)]:_0x4346c9[_0x297f5a(0x140)];}function _0x41ea8f(_0x49058c,_0x26016e){const _0x5a47ed=_0x288907;return(_0x26016e==null?void 0x0:_0x26016e[_0x5a47ed(0x167)])===void 0x0?_0x49058c[_0x5a47ed(0x15b)]===_0x5a47ed(0x17f)?void 0x0:_0x49058c[_0x5a47ed(0x167)]:_0x26016e['opacity'];}function _0x7af9c4(_0x2535fe,_0x8c6b7d){const _0xf5b67e=_0x288907;let _0x540982=_0x4b9251(_0x2535fe),_0x4beb89=_0x1e428d(_0x2535fe,{'x':_0x540982['left'],'y':_0x540982[_0xf5b67e(0x123)]}),_0x597d2f=_0x2535fe[_0xf5b67e(0x15b)]===_0xf5b67e(0x17f)&&_0x2535fe[_0xf5b67e(0x13f)],_0x4e96d1=_0x8c6b7d==null?void 0x0:_0x8c6b7d['fillColor'];return{'shapeType':_0x5c9201[_0xf5b67e(0x10f)][_0xf5b67e(0x145)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x540982[_0xf5b67e(0x140)],'h':_0x540982[_0xf5b67e(0x15a)],'fill':_0x597d2f?_0xf5b67e(0x10c):_0xf5b67e(0x174),'stroke':!0x0,'data':_0x4beb89,'dataArray':_0x25c5b1(_0x2535fe,{'x':_0x540982[_0xf5b67e(0x171)],'y':_0x540982[_0xf5b67e(0x123)]})}]},'fill':_0x597d2f&&_0x4e96d1?{'color':_0x4e96d1,'fillType':_0x5c9201['ShapeFillEnum'][_0xf5b67e(0x16d)]}:{'fillType':_0x5c9201[_0xf5b67e(0x129)][_0xf5b67e(0x111)]},'stroke':{'color':_0x2f1f36(_0x2535fe,_0x8c6b7d),'width':_0x54a9ae(_0x2535fe,_0x8c6b7d),'opacity':_0x41ea8f(_0x2535fe,_0x8c6b7d),'lineStrokeType':_0x5c9201['ShapeLineTypeEnum'][_0xf5b67e(0x117)],'capType':_0x5c9201['ShapeLineCapEnum'][_0xf5b67e(0x155)],'lineJoinType':_0x5c9201[_0xf5b67e(0x11f)][_0xf5b67e(0x155)]}};}function _0x213ffd(_0xe29d5d,_0x3ea59a){return{'x':_0xe29d5d['x']-_0x3ea59a['x'],'y':_0xe29d5d['y']-_0x3ea59a['y']};}function _0x25c5b1(_0x124ca2,_0x2c0e06){const _0x3a7bea=_0x288907;if(_0x124ca2['kind']==='pen'){let _0x1128a7=_0x124ca2[_0x3a7bea(0x124)];if(_0x1128a7[_0x3a7bea(0x12e)]===0x0)return[];let _0x424254=_0x213ffd(_0x1128a7[0x0],_0x2c0e06),_0x407dc1=[{'command':'M','points':[_0x424254['x'],_0x424254['y']]}];for(let _0x2368ee=0x1;_0x2368ee<_0x1128a7[_0x3a7bea(0x12e)];_0x2368ee++){var _0x46110b,_0x539bae;let _0x5011d5=_0x1128a7[_0x2368ee-0x1],_0x5e7daf=_0x1128a7[_0x2368ee],_0x53e874=_0x213ffd((_0x46110b=_0x5011d5[_0x3a7bea(0x16b)])==null?_0x5011d5:_0x46110b,_0x2c0e06),_0x3929d9=_0x213ffd((_0x539bae=_0x5e7daf['in'])==null?_0x5e7daf:_0x539bae,_0x2c0e06),_0x168794=_0x213ffd(_0x5e7daf,_0x2c0e06);_0x407dc1[_0x3a7bea(0x14f)]({'command':'C','points':[_0x53e874['x'],_0x53e874['y'],_0x3929d9['x'],_0x3929d9['y'],_0x168794['x'],_0x168794['y']]});}if(_0x124ca2[_0x3a7bea(0x13f)]&&_0x1128a7[_0x3a7bea(0x12e)]>0x1){var _0x11cdef,_0x24d0f7;let _0x105932=_0x1128a7[_0x1128a7[_0x3a7bea(0x12e)]-0x1],_0x24a090=_0x1128a7[0x0],_0x4040f3=_0x213ffd((_0x11cdef=_0x105932[_0x3a7bea(0x16b)])==null?_0x105932:_0x11cdef,_0x2c0e06),_0xb6ba51=_0x213ffd((_0x24d0f7=_0x24a090['in'])==null?_0x24a090:_0x24d0f7,_0x2c0e06),_0x215914=_0x213ffd(_0x24a090,_0x2c0e06);_0x407dc1[_0x3a7bea(0x14f)]({'command':'C','points':[_0x4040f3['x'],_0x4040f3['y'],_0xb6ba51['x'],_0xb6ba51['y'],_0x215914['x'],_0x215914['y']]}),_0x407dc1['push']({'command':'z','points':[]});}return _0x407dc1;}let _0x1ed61a=_0x124ca2[_0x3a7bea(0x109)][_0x3a7bea(0x118)](_0x2874b9=>_0x213ffd(_0x2874b9,_0x2c0e06));if(_0x1ed61a[_0x3a7bea(0x12e)]===0x0)return[];let _0x43566d=[{'command':'M','points':[_0x1ed61a[0x0]['x'],_0x1ed61a[0x0]['y']]}];for(let _0x18e7a5=0x0;_0x18e7a5<_0x1ed61a[_0x3a7bea(0x12e)]-0x1;_0x18e7a5++){var _0xa4a7bf,_0x2b8ea2;let _0x29e2b6=_0x1ed61a[_0x18e7a5],_0x155de5=_0x1ed61a[_0x18e7a5+0x1],_0xa30cef=(_0xa4a7bf=_0x1ed61a[_0x18e7a5-0x1])==null?_0x29e2b6:_0xa4a7bf,_0x4f7b91=(_0x2b8ea2=_0x1ed61a[_0x18e7a5+0x2])==null?_0x155de5:_0x2b8ea2,_0x39a9a2={'x':_0x29e2b6['x']+(_0x155de5['x']-_0xa30cef['x'])/0x6,'y':_0x29e2b6['y']+(_0x155de5['y']-_0xa30cef['y'])/0x6},_0x5271e0={'x':_0x155de5['x']-(_0x4f7b91['x']-_0x29e2b6['x'])/0x6,'y':_0x155de5['y']-(_0x4f7b91['y']-_0x29e2b6['y'])/0x6};_0x43566d[_0x3a7bea(0x14f)]({'command':'C','points':[_0x39a9a2['x'],_0x39a9a2['y'],_0x5271e0['x'],_0x5271e0['y'],_0x155de5['x'],_0x155de5['y']]});}return _0x43566d;}function _0x16f8ca(_0x112b4e){const _0x1e9d51=_0x288907;var _0x455da7;let {model:_0x39389d,sourceModel:_0x43e279=_0x39389d,style:_0x20af98}=_0x112b4e,_0xd6a854=(_0x455da7=_0x112b4e[_0x1e9d51(0x154)])==null?_0x39389d[_0x1e9d51(0x15b)]:_0x455da7,_0xbe53c7=_0x4b9251(_0x39389d),_0xe8aa80=_0x39389d['kind']==='pen'&&_0xd6a854!==_0x1e9d51(0x17f)?_0x39389d:void 0x0;return{'transform':{..._0xbe53c7,'rotation':0x0},'shapeData':_0x7af9c4(_0x39389d,_0x20af98),'ink':{'version':0x1,'tool':_0xd6a854,'sourceModel':_0x43e279,..._0xe8aa80?{'editModel':_0xe8aa80}:{},'normalizedBounds':_0xbe53c7}};}var _0x2cd7fd=_0x288907(0x13b),_0x32545f=_0x288907(0x162);function _0x3a53cc(_0x4fb1fd){'@babel/helpers - typeof';const _0x430d8e=_0x288907;return _0x3a53cc=typeof Symbol==_0x430d8e(0x146)&&typeof Symbol['iterator']==_0x430d8e(0x136)?function(_0x287c9f){return typeof _0x287c9f;}:function(_0x1655bf){const _0x2f722c=_0x430d8e;return _0x1655bf&&typeof Symbol==_0x2f722c(0x146)&&_0x1655bf[_0x2f722c(0x16f)]===Symbol&&_0x1655bf!==Symbol[_0x2f722c(0x11c)]?_0x2f722c(0x136):typeof _0x1655bf;},_0x3a53cc(_0x4fb1fd);}function _0x5db685(_0x5a5d4b,_0x256e3b){const _0x25cbfa=_0x288907;if(_0x3a53cc(_0x5a5d4b)!=_0x25cbfa(0x17b)||!_0x5a5d4b)return _0x5a5d4b;var _0x505053=_0x5a5d4b[Symbol[_0x25cbfa(0x120)]];if(_0x505053!==void 0x0){var _0xf7c69=_0x505053[_0x25cbfa(0x17c)](_0x5a5d4b,_0x256e3b||_0x25cbfa(0x147));if(_0x3a53cc(_0xf7c69)!='object')return _0xf7c69;throw TypeError(_0x25cbfa(0x165));}return(_0x256e3b===_0x25cbfa(0x148)?String:Number)(_0x5a5d4b);}function _0x52bae3(_0x4dd04a){const _0x539057=_0x288907;var _0x17cacf=_0x5db685(_0x4dd04a,_0x539057(0x148));return _0x3a53cc(_0x17cacf)==_0x539057(0x136)?_0x17cacf:_0x17cacf+'';}function _0x4c2059(_0x1ef720,_0x5bc1b9,_0x52e1b8){const _0x47d653=_0x288907;return(_0x5bc1b9=_0x52bae3(_0x5bc1b9))in _0x1ef720?Object[_0x47d653(0x122)](_0x1ef720,_0x5bc1b9,{'value':_0x52e1b8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1ef720[_0x5bc1b9]=_0x52e1b8,_0x1ef720;}let _0x1a6a00=(0x0,_0x35b9de[_0x288907(0x116)])(_0x288907(0x160));var _0x508626=class{constructor(){const _0x4434cc=_0x288907;_0x4c2059(this,_0x4434cc(0x138),[]);}[_0x288907(0x112)](_0x49d189){const _0x3fa50d=_0x288907;return this[_0x3fa50d(0x138)][_0x3fa50d(0x14f)](_0x49d189),(0x0,_0x35b9de[_0x3fa50d(0x10a)])(()=>{const _0x325232=_0x3fa50d;let _0x127720=this['_adapters'][_0x325232(0x17d)](_0x49d189);_0x127720>=0x0&&this['_adapters'][_0x325232(0x137)](_0x127720,0x1);});}[_0x288907(0x16e)](_0x5e9613){const _0x57824f=_0x288907;for(let _0x3eff51 of this[_0x57824f(0x138)])if(_0x3eff51['beginInkMode'](_0x5e9613))return!0x0;return!0x1;}async[_0x288907(0x141)](_0x5e51f2){const _0x420751=_0x288907;for(let _0x4744f0 of this['_adapters'])if(_0x4744f0[_0x420751(0x141)]&&await _0x4744f0[_0x420751(0x141)](_0x5e51f2))return!0x0;return!0x1;}};let _0x44b596={'id':_0x288907(0x17a),'type':_0x35b9de[_0x288907(0x168)][_0x288907(0x12a)],'handler':(_0x534eaf,_0x55067d)=>_0x55067d?_0x534eaf[_0x288907(0x11b)](_0x1a6a00)[_0x288907(0x16e)](_0x55067d):!0x1},_0x111154={};function _0x581858(_0x1dbea0,_0x5a633d){return function(_0x5bc980,_0x14149f){_0x5a633d(_0x5bc980,_0x14149f,_0x1dbea0);};}function _0x57c883(_0xc7802a,_0xdf421e,_0x2ec9c5,_0x1d17e4){const _0x56bc9b=_0x288907;var _0x5d7d7a=arguments[_0x56bc9b(0x12e)],_0x18364f=_0x5d7d7a<0x3?_0xdf421e:_0x1d17e4===null?_0x1d17e4=Object['getOwnPropertyDescriptor'](_0xdf421e,_0x2ec9c5):_0x1d17e4,_0x6785fc;if(typeof Reflect==_0x56bc9b(0x17b)&&typeof Reflect[_0x56bc9b(0x113)]==_0x56bc9b(0x146))_0x18364f=Reflect[_0x56bc9b(0x113)](_0xc7802a,_0xdf421e,_0x2ec9c5,_0x1d17e4);else{for(var _0x16b89e=_0xc7802a[_0x56bc9b(0x12e)]-0x1;_0x16b89e>=0x0;_0x16b89e--)(_0x6785fc=_0xc7802a[_0x16b89e])&&(_0x18364f=(_0x5d7d7a<0x3?_0x6785fc(_0x18364f):_0x5d7d7a>0x3?_0x6785fc(_0xdf421e,_0x2ec9c5,_0x18364f):_0x6785fc(_0xdf421e,_0x2ec9c5))||_0x18364f);}return _0x5d7d7a>0x3&&_0x18364f&&Object['defineProperty'](_0xdf421e,_0x2ec9c5,_0x18364f),_0x18364f;}let _0xc11d35=class extends _0x35b9de[_0x288907(0x110)]{constructor(_0x28da3e=_0x111154,_0x3ff796,_0x26503c,_0x10c4c9){const _0xfa1e28=_0x288907;super(),this[_0xfa1e28(0x170)]=_0x28da3e,this['_injector']=_0x3ff796,this[_0xfa1e28(0x14b)]=_0x26503c,this[_0xfa1e28(0x12c)]=_0x10c4c9;let {..._0x4bbf92}=(0x0,_0x35b9de[_0xfa1e28(0x14a)])({},_0x111154,this['_config']);this[_0xfa1e28(0x12c)][_0xfa1e28(0x15f)]('ink.config',_0x4bbf92);}[_0x288907(0x13c)](){const _0x207643=_0x288907;[[_0x1a6a00,{'useClass':_0x508626}]]['forEach'](_0x1ed01b=>this[_0x207643(0x127)]['add'](_0x1ed01b)),this['disposeWithMe'](this[_0x207643(0x14b)]['registerCommand'](_0x44b596));}};_0x4c2059(_0xc11d35,_0x288907(0x152),'UNIVER_INK_PLUGIN'),_0x4c2059(_0xc11d35,_0x288907(0x161),_0x2cd7fd),_0x4c2059(_0xc11d35,_0x288907(0x163),_0x32545f),_0x4c2059(_0xc11d35,_0x288907(0x11a),_0x35b9de[_0x288907(0x159)][_0x288907(0x132)]),_0xc11d35=_0x57c883([(0x0,_0x35b9de[_0x288907(0x142)])(_0x4e0fe3[_0x288907(0x128)]),_0x581858(0x1,(0x0,_0x35b9de[_0x288907(0x15e)])(_0x35b9de[_0x288907(0x153)])),_0x581858(0x2,_0x35b9de['ICommandService']),_0x581858(0x3,_0x35b9de['IConfigService'])],_0xc11d35),_0x2d8532[_0x288907(0x143)]=_0x1a6a00,Object[_0x288907(0x122)](_0x2d8532,_0x288907(0x131),{'enumerable':!0x0,'get':function(){return _0xc11d35;}}),_0x2d8532['buildInkCustomShapePayload']=_0x16f8ca,_0x2d8532[_0x288907(0x10e)]=_0x5c42f7,_0x2d8532['cycleInkPenAnchorPointType']=_0x47cb00,_0x2d8532['deleteInkPenAnchor']=_0x3b0b62,_0x2d8532[_0x288907(0x13d)]=_0x284e47,_0x2d8532[_0x288907(0x139)]=_0x1c0434,_0x2d8532[_0x288907(0x134)]=_0x4b9251,_0x2d8532[_0x288907(0x14c)]=_0x558d06,_0x2d8532[_0x288907(0x130)]=_0x7d9f18,_0x2d8532['isInkPenHandleVisible']=_0x10c467,_0x2d8532[_0x288907(0x150)]=_0x44099b,_0x2d8532['setInkPenAnchorPointType']=_0x162bc7;}));function _0x4c1d(){const _0x211e45=['Round','point','filter','5398960vfHjTw','UniverInstanceType','height','kind','UniverCore','15rYIdNH','Inject','setConfig','ink.host-adapter.service','packageName','1.0.0-alpha.4','version','slice','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','7869933MEABwW','opacity','CommandType','ratio','pointType','out','startIndex','SolidFill','beginInkMode','constructor','_config','left','3121520OxEnLw','start','none','createId','max','193580MCIWav','UniverProInk','right','ink.operation.start','object','call','indexOf','round','pen','UniverProEngineShape','544PvpRLJ','forEach','min','points','toDisposable','ink-centerline-','norm','distance','convertBrushModelToPenModel','ShapeTypeEnum','Plugin','NoFill','registerAdapter','decorate','symmetric','smooth','createIdentifier','SolidLine','map','corner','type','get','prototype','UniverProLicense','find','ShapeLineJoinEnum','toPrimitive','abs','defineProperty','top','anchors','2446780WZEQXz','exports','_injector','UniverLicensePlugin','ShapeFillEnum','OPERATION','578zhwlXc','_configService','segmentIndex','length','free','insertInkPenAnchorAt','UniverInkPlugin','UNIVER_UNKNOWN','color','getInkModelBounds','sqrt','symbol','splice','_adapters','findClosestInkPenSegment','__ink-preview-anchor__','@univerjs-pro/ink','onStarting','findClosestInkPenHandle','hypot','closed','width','createCustomShape','DependentOn','IInkHostAdapterService','Module','Rect','function','default','string','anchor','merge','_commandService','getInkPenPreviewModel','5935764sGYrzc','end','push','moveInkPenAnchorPoint','findIndex','pluginName','Injector','tool'];_0x4c1d=function(){return _0x211e45;};return _0x4c1d();}
1
+ function _0x5227(_0x181a5c,_0x27dcf1){_0x181a5c=_0x181a5c-0x10f;const _0x502304=_0x5023();let _0x52278d=_0x502304[_0x181a5c];return _0x52278d;}function _0x5023(){const _0x1b4d51=['@univerjs-pro/ink','segmentIndex','kind','anchorId','onStarting','beginInkMode','slice','closed','distance','Module','object','188yhspPF','UniverInkPlugin','corner','toStringTag','UniverInstanceType','_configService','pluginName','__ink-preview-anchor__','9wjjXbg','push','isInkPenHandleVisible','fillColor','setInkPenAnchorPointType','ink.host-adapter.service','@univerjs/core','9437010IGmYxq','join','map','end','length','norm','call','filter','722552DFGToO','startIndex','prototype','OPERATION','7QutKSr','symbol','amd','UNIVER_UNKNOWN','indexOf','out','findClosestInkPenSegment','abs','start','Round','770hHdWjq','444671SfOCce','toDisposable','merge','type','exports','splice','defineProperty','ShapeLineCapEnum','points','ShapeTypeEnum','width','packageName','forEach','IInkHostAdapterService','max','hypot','height','ICommandService','createId','registerAdapter','cycleInkPenAnchorPointType','UNIVER_INK_PLUGIN','46830tqMYzW','min','Inject','_commandService','_injector','anchor','decorate','free','@univerjs-pro/engine-shape','left','buildInkCustomShapePayload','Rect','none','UniverLicensePlugin','ShapeLineTypeEnum','1.0.0-alpha.5','#f54a45','ShapeFillEnum','version','6548fSicGV','Injector','smooth','color','registerCommand','setConfig','10608tfbXLA','pointType','getInkModelBounds','opacity','toPrimitive','UniverCore','CommandType','round','sqrt','symmetric','createCustomShape','endIndex','top','ink-centerline-','function','UniverProInk','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','find','UniverProEngineShape','@univerjs-pro/license','_config','createIdentifier','2351330Iqskjm','findIndex','ShapeLineJoinEnum','_adapters','pen','anchors','moveInkPenAnchorPoint'];_0x5023=function(){return _0x1b4d51;};return _0x5023();}(function(_0x3a6ccf,_0x17d4a4){const _0x1d5682=_0x5227,_0x40133b=_0x3a6ccf();while(!![]){try{const _0x7d0cfe=-parseInt(_0x1d5682(0x150))/0x1+-parseInt(_0x1d5682(0x12a))/0x2*(-parseInt(_0x1d5682(0x17f))/0x3)+parseInt(_0x1d5682(0x179))/0x4*(-parseInt(_0x1d5682(0x14f))/0x5)+-parseInt(_0x1d5682(0x166))/0x6+-parseInt(_0x1d5682(0x145))/0x7*(-parseInt(_0x1d5682(0x141))/0x8)+-parseInt(_0x1d5682(0x132))/0x9*(parseInt(_0x1d5682(0x118))/0xa)+parseInt(_0x1d5682(0x139))/0xb;if(_0x7d0cfe===_0x17d4a4)break;else _0x40133b['push'](_0x40133b['shift']());}catch(_0x4f87fb){_0x40133b['push'](_0x40133b['shift']());}}}(_0x5023,0x533aa),function(_0x4ecaf3,_0xa6743f){const _0xa9054f=_0x5227;typeof exports==_0xa9054f(0x129)&&typeof module<'u'?_0xa6743f(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0xa9054f(0x110)&&define[_0xa9054f(0x147)]?define([_0xa9054f(0x154),_0xa9054f(0x16e),_0xa9054f(0x115),_0xa9054f(0x138)],_0xa6743f):(_0x4ecaf3=typeof globalThis<'u'?globalThis:_0x4ecaf3||self,_0xa6743f(_0x4ecaf3[_0xa9054f(0x111)]={},_0x4ecaf3[_0xa9054f(0x114)],_0x4ecaf3['UniverProLicense'],_0x4ecaf3[_0xa9054f(0x184)]));}(this,function(_0x2ae93c,_0x383e6d,_0xb63ae8,_0x3c4216){const _0x23f9ff=_0x5227;Object[_0x23f9ff(0x156)](_0x2ae93c,Symbol[_0x23f9ff(0x12d)],{'value':_0x23f9ff(0x128)});let _0x12269a=0.0001;function _0x11da20(_0x5a8ede){return{'x':_0x5a8ede['x'],'y':_0x5a8ede['y']};}function _0x1cd352(_0x515f7f){const _0x2fdec6=_0x23f9ff;return{..._0x515f7f,'in':_0x515f7f['in']?_0x11da20(_0x515f7f['in']):void 0x0,'out':_0x515f7f[_0x2fdec6(0x14a)]?_0x11da20(_0x515f7f[_0x2fdec6(0x14a)]):void 0x0};}function _0x2d6319(_0x44be13){const _0x1bc5d3=_0x23f9ff;return{'kind':_0x1bc5d3(0x11c),'closed':_0x44be13[_0x1bc5d3(0x126)],'anchors':_0x44be13[_0x1bc5d3(0x11d)][_0x1bc5d3(0x13b)](_0x1cd352)};}function _0x5bd287(_0x2c51a3,_0x14051b,_0x4b03ad){return{'x':_0x2c51a3['x']+(_0x14051b['x']-_0x2c51a3['x'])*_0x4b03ad,'y':_0x2c51a3['y']+(_0x14051b['y']-_0x2c51a3['y'])*_0x4b03ad};}function _0x4a4a5a(_0x290928,_0x17f60d){return Math['hypot'](_0x290928['x']-_0x17f60d['x'],_0x290928['y']-_0x17f60d['y']);}function _0x56a257(_0x8fc788){const _0x5a293d=_0x23f9ff;let _0x12c483=Math[_0x5a293d(0x15f)](_0x8fc788['x'],_0x8fc788['y']);return _0x12c483<_0x12269a?{'x':0x1,'y':0x0}:{'x':_0x8fc788['x']/_0x12c483,'y':_0x8fc788['y']/_0x12c483};}function _0x2830c7(_0x135542,_0x2752b,_0x410eb2=_0x4a4a5a(_0x135542,_0x2752b)){let _0x4f6e87=_0x56a257({'x':_0x135542['x']-_0x2752b['x'],'y':_0x135542['y']-_0x2752b['y']});return{'x':_0x135542['x']+_0x4f6e87['x']*_0x410eb2,'y':_0x135542['y']+_0x4f6e87['y']*_0x410eb2};}function _0xd81a24(_0x4fe92b,_0x4f130d){const _0x1ccc72=_0x23f9ff;let {anchors:_0x5ddeae}=_0x4fe92b;return _0x5ddeae['length']<0x2||_0x4f130d<0x0?null:_0x4f130d<_0x5ddeae['length']-0x1?{'startIndex':_0x4f130d,'endIndex':_0x4f130d+0x1,'start':_0x5ddeae[_0x4f130d],'end':_0x5ddeae[_0x4f130d+0x1]}:_0x4fe92b[_0x1ccc72(0x126)]&&_0x4f130d===_0x5ddeae[_0x1ccc72(0x13d)]-0x1?{'startIndex':_0x5ddeae[_0x1ccc72(0x13d)]-0x1,'endIndex':0x0,'start':_0x5ddeae[_0x5ddeae[_0x1ccc72(0x13d)]-0x1],'end':_0x5ddeae[0x0]}:null;}function _0x2792ff(_0x350a92,_0x427231){const _0x2c8d3d=_0x23f9ff;var _0x11fcca,_0x125bcc;let _0x32a6e1=_0xd81a24(_0x350a92,_0x427231);return _0x32a6e1?[_0x32a6e1[_0x2c8d3d(0x14d)],(_0x11fcca=_0x32a6e1[_0x2c8d3d(0x14d)]['out'])==null?_0x32a6e1[_0x2c8d3d(0x14d)]:_0x11fcca,(_0x125bcc=_0x32a6e1[_0x2c8d3d(0x13c)]['in'])==null?_0x32a6e1[_0x2c8d3d(0x13c)]:_0x125bcc,_0x32a6e1[_0x2c8d3d(0x13c)]]:null;}function _0x184b1b(_0x2e7575,_0x49c0a7){var _0x80a793;return _0x49c0a7==='anchor'?_0x2e7575:(_0x80a793=_0x2e7575[_0x49c0a7])==null?null:_0x80a793;}function _0x514d33(_0x3e034e,_0x12a291,_0x34d5ec){const _0x5125cb=_0x23f9ff;return _0x34d5ec===_0x5125cb(0x16b)||_0x3e034e[_0x5125cb(0x126)]?!0x0:_0x34d5ec==='in'?_0x12a291>0x0:_0x12a291<_0x3e034e['anchors'][_0x5125cb(0x13d)]-0x1;}function _0x96e224(_0x1b9955,_0xe17c73){let [_0x1c6a56,_0x1473aa,_0x7ca4f8,_0x21251b]=_0x1b9955,_0x9d1c2e=_0x5bd287(_0x1c6a56,_0x1473aa,_0xe17c73),_0x13a9d3=_0x5bd287(_0x1473aa,_0x7ca4f8,_0xe17c73),_0x2dac58=_0x5bd287(_0x7ca4f8,_0x21251b,_0xe17c73);return _0x5bd287(_0x5bd287(_0x9d1c2e,_0x13a9d3,_0xe17c73),_0x5bd287(_0x13a9d3,_0x2dac58,_0xe17c73),_0xe17c73);}function _0x24e57a(_0x30d399,_0x565786){let [_0x27e8e7,_0x2e00c4,_0xac9b9a,_0x4fb238]=_0x30d399,_0x1e1c2d=_0x5bd287(_0x27e8e7,_0x2e00c4,_0x565786),_0x4520cc=_0x5bd287(_0x2e00c4,_0xac9b9a,_0x565786),_0x4d90c4=_0x5bd287(_0xac9b9a,_0x4fb238,_0x565786),_0x14d556=_0x5bd287(_0x1e1c2d,_0x4520cc,_0x565786),_0x8a8f71=_0x5bd287(_0x4520cc,_0x4d90c4,_0x565786),_0xccb516=_0x5bd287(_0x14d556,_0x8a8f71,_0x565786);return{'left':[_0x27e8e7,_0x1e1c2d,_0x14d556,_0xccb516],'right':[_0xccb516,_0x8a8f71,_0x4d90c4,_0x4fb238]};}function _0x516014(_0x431670,_0x5b5626,_0x26df5d){const _0x1b476b=_0x23f9ff;let _0x56c100=_0x26df5d['x']-_0x5b5626['x'],_0x148df3=_0x26df5d['y']-_0x5b5626['y'],_0x39c500=_0x56c100*_0x56c100+_0x148df3*_0x148df3,_0x351c11=_0x39c500<=_0x12269a?0x0:Math['max'](0x0,Math[_0x1b476b(0x167)](0x1,((_0x431670['x']-_0x5b5626['x'])*_0x56c100+(_0x431670['y']-_0x5b5626['y'])*_0x148df3)/_0x39c500)),_0x41d50a={'x':_0x5b5626['x']+_0x56c100*_0x351c11,'y':_0x5b5626['y']+_0x148df3*_0x351c11};return{'point':_0x41d50a,'ratio':_0x351c11,'distance':_0x4a4a5a(_0x431670,_0x41d50a)};}function _0x34e4f0(_0x26318a,_0x5ec77f,_0x11a62e){const _0x3da6bf=_0x23f9ff;return _0x516014(_0x26318a,_0x5ec77f,_0x11a62e)[_0x3da6bf(0x127)]**0x2;}function _0x3e9f25(_0x2babef,_0x15ec56){const _0x765b34=_0x23f9ff;if(_0x2babef[_0x765b34(0x13d)]<=0x2)return _0x2babef['map'](_0x11da20);let _0x202730=0x0,_0x5df5c4=0x0,_0x55288c=_0x2babef[0x0],_0x2548b3=_0x2babef[_0x2babef[_0x765b34(0x13d)]-0x1],_0xa9914e=_0x15ec56*_0x15ec56;for(let _0x921e96=0x1;_0x921e96<_0x2babef[_0x765b34(0x13d)]-0x1;_0x921e96++){let _0x56259c=_0x34e4f0(_0x2babef[_0x921e96],_0x55288c,_0x2548b3);_0x56259c>_0x202730&&(_0x202730=_0x56259c,_0x5df5c4=_0x921e96);}if(_0x202730<=_0xa9914e)return[_0x11da20(_0x55288c),_0x11da20(_0x2548b3)];let _0x49efea=_0x3e9f25(_0x2babef[_0x765b34(0x125)](0x0,_0x5df5c4+0x1),_0x15ec56),_0x335919=_0x3e9f25(_0x2babef[_0x765b34(0x125)](_0x5df5c4),_0x15ec56);return[..._0x49efea['slice'](0x0,-0x1),..._0x335919];}function _0x2d020c(_0x1afa13,_0x195194){var _0x116d47;let _0x3847f1=_0x1afa13[_0x195194],_0x556baf=_0x1afa13[_0x195194+0x1],_0x156eaa=(_0x116d47=_0x1afa13[_0x195194-0x1])==null?_0x3847f1:_0x116d47;return{'x':_0x3847f1['x']+(_0x556baf['x']-_0x156eaa['x'])/0x6,'y':_0x3847f1['y']+(_0x556baf['y']-_0x156eaa['y'])/0x6};}function _0x4847f7(_0x46ba8e,_0x30b6ce){var _0x2e3266;let _0x205bb1=_0x46ba8e[_0x30b6ce],_0x338143=_0x46ba8e[_0x30b6ce-0x1],_0x386a15=(_0x2e3266=_0x46ba8e[_0x30b6ce+0x1])==null?_0x205bb1:_0x2e3266;return{'x':_0x205bb1['x']-(_0x386a15['x']-_0x338143['x'])/0x6,'y':_0x205bb1['y']-(_0x386a15['y']-_0x338143['y'])/0x6};}function _0x51ca40(_0x27c940,_0x8d5103){const _0x8c6099=_0x23f9ff;var _0x94304f,_0x40cdc1;let _0x1dd6c6=_0x27c940[_0x8c6099(0x11d)][_0x8d5103],_0x4dad01=(_0x94304f=_0x27c940[_0x8c6099(0x11d)][_0x8d5103-0x1])==null?_0x27c940[_0x8c6099(0x126)]?_0x27c940[_0x8c6099(0x11d)][_0x27c940[_0x8c6099(0x11d)][_0x8c6099(0x13d)]-0x1]:null:_0x94304f,_0xcb1fe9=(_0x40cdc1=_0x27c940[_0x8c6099(0x11d)][_0x8d5103+0x1])==null?_0x27c940[_0x8c6099(0x126)]?_0x27c940['anchors'][0x0]:null:_0x40cdc1,_0x49cc06=_0x4dad01&&_0xcb1fe9?_0x56a257({'x':_0xcb1fe9['x']-_0x4dad01['x'],'y':_0xcb1fe9['y']-_0x4dad01['y']}):_0xcb1fe9?_0x56a257({'x':_0xcb1fe9['x']-_0x1dd6c6['x'],'y':_0xcb1fe9['y']-_0x1dd6c6['y']}):_0x4dad01?_0x56a257({'x':_0x1dd6c6['x']-_0x4dad01['x'],'y':_0x1dd6c6['y']-_0x4dad01['y']}):{'x':0x1,'y':0x0},_0x319cfb=_0x4dad01&&_0xcb1fe9?Math['max'](0x32,_0x4a4a5a(_0x4dad01,_0xcb1fe9)/0x4):0x32;return{'in':{'x':_0x1dd6c6['x']-_0x49cc06['x']*_0x319cfb,'y':_0x1dd6c6['y']-_0x49cc06['y']*_0x319cfb},'out':{'x':_0x1dd6c6['x']+_0x49cc06['x']*_0x319cfb,'y':_0x1dd6c6['y']+_0x49cc06['y']*_0x319cfb}};}function _0x5c846d(_0x2e5459,_0x1b5d7e){const _0x395ce3=_0x23f9ff;let _0x33fb1d=_0x2e5459[_0x1b5d7e],_0x1493bb=_0x1b5d7e==='in'?'out':'in',_0x19cd3a=_0x2e5459[_0x1493bb];if(_0x33fb1d){if(_0x2e5459['pointType']==='symmetric'){_0x2e5459[_0x1493bb]=_0x2830c7(_0x2e5459,_0x33fb1d);return;}_0x2e5459['pointType']===_0x395ce3(0x17b)&&(_0x2e5459[_0x1493bb]=_0x2830c7(_0x2e5459,_0x33fb1d,_0x19cd3a?_0x4a4a5a(_0x2e5459,_0x19cd3a):_0x4a4a5a(_0x2e5459,_0x33fb1d)));}}function _0x42b6e8(_0x16b003,_0x33e6a4){const _0xd71226=_0x23f9ff;let _0x51440d=_0x2d6319(_0x16b003);return!_0x33e6a4||_0x51440d['closed']||_0x51440d[_0xd71226(0x11d)][_0xd71226(0x13d)]===0x0||_0x51440d[_0xd71226(0x11d)][_0xd71226(0x133)]({'id':_0xd71226(0x131),'x':_0x33e6a4['x'],'y':_0x33e6a4['y'],'pointType':'corner'}),_0x51440d;}function _0x95bfa1(_0x4bd01f,_0x460bd2={}){const _0x50fdec=_0x23f9ff;var _0x19cad9,_0x42d571;let _0xa4794a=Math[_0x50fdec(0x15e)](0x0,(_0x19cad9=_0x460bd2['tolerance'])==null?Math['max'](0x4,_0x4bd01f['width']*0.35):_0x19cad9),_0xd3b446=(_0x42d571=_0x460bd2[_0x50fdec(0x162)])==null?_0x445ea8=>_0x50fdec(0x10f)+_0x445ea8:_0x42d571,_0x1d329e=_0x3e9f25(_0x4bd01f[_0x50fdec(0x158)],_0xa4794a),_0x13977f=_0x1d329e[_0x50fdec(0x13b)]((_0x349d00,_0x35f20a)=>({'id':_0xd3b446(_0x35f20a),'x':_0x349d00['x'],'y':_0x349d00['y'],'pointType':_0x50fdec(0x16d)}));for(let _0x86e258=0x0;_0x86e258<_0x13977f[_0x50fdec(0x13d)]-0x1;_0x86e258++)_0x13977f[_0x86e258][_0x50fdec(0x14a)]=_0x2d020c(_0x1d329e,_0x86e258),_0x13977f[_0x86e258+0x1]['in']=_0x4847f7(_0x1d329e,_0x86e258+0x1);return{'kind':_0x50fdec(0x11c),'closed':!0x1,'anchors':_0x13977f};}function _0x31d540(_0x42163e,_0x29afe4,_0x46dfe3){const _0x16633f=_0x23f9ff;let _0x3fd14c=null,_0x465757=['anchor','in',_0x16633f(0x14a)];return _0x42163e['anchors'][_0x16633f(0x15c)]((_0x4805ae,_0x4000a9)=>{const _0x16001a=_0x16633f;_0x465757[_0x16001a(0x15c)](_0x2f90b3=>{const _0x18159d=_0x16001a;if(!_0x514d33(_0x42163e,_0x4000a9,_0x2f90b3))return;let _0x384722=_0x184b1b(_0x4805ae,_0x2f90b3);if(!_0x384722)return;let _0x41aa92=_0x4a4a5a(_0x29afe4,_0x384722);_0x41aa92>_0x46dfe3||_0x3fd14c&&_0x41aa92>=_0x3fd14c[_0x18159d(0x127)]||(_0x3fd14c={'handle':{'kind':_0x2f90b3,'anchorId':_0x4805ae['id']},'point':_0x11da20(_0x384722),'distance':_0x41aa92});});}),_0x3fd14c;}function _0x53ff64(_0x276ba3,_0x957144,_0x50508d){const _0x4d326e=_0x23f9ff;let _0x251d1c=null,_0x446638=_0x276ba3['closed']?_0x276ba3[_0x4d326e(0x11d)]['length']:Math[_0x4d326e(0x15e)](0x0,_0x276ba3[_0x4d326e(0x11d)][_0x4d326e(0x13d)]-0x1);for(let _0x2f48f3=0x0;_0x2f48f3<_0x446638;_0x2f48f3++){let _0x2f911a=_0x2792ff(_0x276ba3,_0x2f48f3);if(!_0x2f911a)continue;let _0x5a1ac9=_0x96e224(_0x2f911a,0x0);for(let _0x31c676=0x1;_0x31c676<=0x20;_0x31c676++){let _0x3c65e7=_0x96e224(_0x2f911a,_0x31c676/0x20),_0x29dc40=_0x516014(_0x957144,_0x5a1ac9,_0x3c65e7),_0x3cc6c5=(_0x31c676-0x1+_0x29dc40['ratio'])/0x20;(!_0x251d1c||_0x29dc40[_0x4d326e(0x127)]<_0x251d1c[_0x4d326e(0x127)])&&(_0x251d1c={'segmentIndex':_0x2f48f3,'t':_0x3cc6c5,'point':_0x29dc40['point'],'distance':_0x29dc40['distance']}),_0x5a1ac9=_0x3c65e7;}}return _0x251d1c&&_0x251d1c[_0x4d326e(0x127)]<=_0x50508d?_0x251d1c:null;}function _0x5e32b0(_0x3e7211,_0x57e7e5,_0xe42550){const _0x593803=_0x23f9ff;let _0x142a31=_0x2d6319(_0x3e7211),_0x4a740a=_0xd81a24(_0x142a31,_0x57e7e5[_0x593803(0x120)]),_0x277954=_0x2792ff(_0x142a31,_0x57e7e5[_0x593803(0x120)]);if(!_0x4a740a||!_0x277954)return _0x142a31;let _0x5968c6=_0x24e57a(_0x277954,Math[_0x593803(0x15e)](0x0,Math[_0x593803(0x167)](0x1,_0x57e7e5['t']))),_0x335f7d={'id':_0xe42550(),'x':_0x5968c6[_0x593803(0x16f)][0x3]['x'],'y':_0x5968c6[_0x593803(0x16f)][0x3]['y'],'in':_0x11da20(_0x5968c6[_0x593803(0x16f)][0x2]),'out':_0x11da20(_0x5968c6['right'][0x1]),'pointType':'free'};return _0x142a31[_0x593803(0x11d)][_0x4a740a[_0x593803(0x142)]][_0x593803(0x14a)]=_0x11da20(_0x5968c6[_0x593803(0x16f)][0x1]),_0x142a31['anchors'][_0x4a740a[_0x593803(0x18a)]]['in']=_0x11da20(_0x5968c6['right'][0x2]),_0x142a31['anchors'][_0x593803(0x155)](_0x4a740a[_0x593803(0x142)]+0x1,0x0,_0x335f7d),_0x142a31;}function _0x31d78b(_0x30b5ba,_0x4364f2){const _0x1a9538=_0x23f9ff;let _0x5d6012=_0x2d6319(_0x30b5ba);return _0x5d6012[_0x1a9538(0x11d)]=_0x5d6012[_0x1a9538(0x11d)][_0x1a9538(0x140)](_0x5b12a0=>_0x5b12a0['id']!==_0x4364f2),_0x5d6012[_0x1a9538(0x126)]&&_0x5d6012[_0x1a9538(0x11d)][_0x1a9538(0x13d)]<0x3&&(_0x5d6012[_0x1a9538(0x126)]=!0x1),_0x5d6012;}function _0x3a7e54(_0x3e8736,_0xe16535,_0x8d2b13){const _0x10a115=_0x23f9ff;let _0x31fabc=_0x2d6319(_0x3e8736),_0x3bc74f=_0x31fabc[_0x10a115(0x11d)][_0x10a115(0x119)](_0x5ce552=>_0x5ce552['id']===_0xe16535),_0x39f984=_0x31fabc[_0x10a115(0x11d)][_0x3bc74f];if(!_0x39f984)return _0x31fabc;if(_0x39f984[_0x10a115(0x180)]=_0x8d2b13,_0x8d2b13===_0x10a115(0x12c))return delete _0x39f984['in'],delete _0x39f984[_0x10a115(0x14a)],_0x31fabc;let _0x2873e6=_0x51ca40(_0x31fabc,_0x3bc74f);if(_0x39f984['in']=_0x39f984['in']?_0x11da20(_0x39f984['in']):_0x2873e6['in'],_0x39f984[_0x10a115(0x14a)]=_0x39f984[_0x10a115(0x14a)]?_0x11da20(_0x39f984[_0x10a115(0x14a)]):_0x2873e6[_0x10a115(0x14a)],_0x8d2b13===_0x10a115(0x188)){let _0x13eea5=Math[_0x10a115(0x15e)](_0x4a4a5a(_0x39f984,_0x39f984['in']),_0x4a4a5a(_0x39f984,_0x39f984[_0x10a115(0x14a)]),0x32),_0x1bbf8a=_0x56a257({'x':_0x39f984[_0x10a115(0x14a)]['x']-_0x39f984['x'],'y':_0x39f984['out']['y']-_0x39f984['y']});_0x39f984[_0x10a115(0x14a)]={'x':_0x39f984['x']+_0x1bbf8a['x']*_0x13eea5,'y':_0x39f984['y']+_0x1bbf8a['y']*_0x13eea5},_0x39f984['in']={'x':_0x39f984['x']-_0x1bbf8a['x']*_0x13eea5,'y':_0x39f984['y']-_0x1bbf8a['y']*_0x13eea5};}else _0x8d2b13===_0x10a115(0x17b)&&_0x5c846d(_0x39f984,'out');return _0x31fabc;}function _0x2f5c1d(_0x21a4c2,_0x5e510e){const _0x32d578=_0x23f9ff;var _0x4af894;let _0x481fe4=_0x21a4c2[_0x32d578(0x11d)][_0x32d578(0x113)](_0x27dd12=>_0x27dd12['id']===_0x5e510e),_0x38d461=(_0x4af894=_0x481fe4==null?void 0x0:_0x481fe4[_0x32d578(0x180)])==null?'corner':_0x4af894;return _0x3a7e54(_0x21a4c2,_0x5e510e,_0x38d461==='corner'?'smooth':_0x38d461===_0x32d578(0x17b)?'symmetric':_0x38d461===_0x32d578(0x188)?'free':'corner');}function _0x54cc69(_0x35cabb,_0x282c52,_0x569f94){const _0x26f4f7=_0x23f9ff;let _0x3df726=_0x2d6319(_0x35cabb),_0x26dfcc=_0x3df726['anchors'][_0x26f4f7(0x113)](_0x352a90=>_0x352a90['id']===_0x282c52[_0x26f4f7(0x122)]);if(!_0x26dfcc)return _0x3df726;if(_0x282c52[_0x26f4f7(0x121)]===_0x26f4f7(0x16b)){let _0x4ca199={'x':_0x569f94['x']-_0x26dfcc['x'],'y':_0x569f94['y']-_0x26dfcc['y']};return _0x26dfcc['x']=_0x569f94['x'],_0x26dfcc['y']=_0x569f94['y'],_0x26dfcc['in']&&(_0x26dfcc['in']={'x':_0x26dfcc['in']['x']+_0x4ca199['x'],'y':_0x26dfcc['in']['y']+_0x4ca199['y']}),_0x26dfcc['out']&&(_0x26dfcc[_0x26f4f7(0x14a)]={'x':_0x26dfcc[_0x26f4f7(0x14a)]['x']+_0x4ca199['x'],'y':_0x26dfcc[_0x26f4f7(0x14a)]['y']+_0x4ca199['y']}),_0x3df726;}return _0x26dfcc[_0x282c52['kind']]=_0x11da20(_0x569f94),_0x26dfcc[_0x26f4f7(0x180)]===_0x26f4f7(0x12c)&&(_0x26dfcc[_0x26f4f7(0x180)]='free'),_0x5c846d(_0x26dfcc,_0x282c52['kind']),_0x3df726;}let _0x4728ee=1e-9;function _0x1ea1d1(_0x1496f1){const _0x2572ef=_0x23f9ff;let _0x4ab686=Math[_0x2572ef(0x186)](_0x1496f1*0x2710)/0x2710;return Object['is'](_0x4ab686,-0x0)?'0':String(_0x4ab686);}function _0x1cc548(_0x4f0de5){return _0x1ea1d1(_0x4f0de5['x'])+'\x20'+_0x1ea1d1(_0x4f0de5['y']);}function _0x56f4ef(_0x37e125,_0x394bba){return{'x':_0x37e125['x']-_0x394bba['x'],'y':_0x37e125['y']-_0x394bba['y']};}function _0x5747d7(_0x5405bb,_0x1265ef,_0x25abe2,_0x257da6,_0x5580d9){let _0x19cdc8=0x1-_0x5580d9;return{'x':_0x19cdc8*_0x19cdc8*_0x19cdc8*_0x5405bb['x']+0x3*_0x19cdc8*_0x19cdc8*_0x5580d9*_0x1265ef['x']+0x3*_0x19cdc8*_0x5580d9*_0x5580d9*_0x25abe2['x']+_0x5580d9*_0x5580d9*_0x5580d9*_0x257da6['x'],'y':_0x19cdc8*_0x19cdc8*_0x19cdc8*_0x5405bb['y']+0x3*_0x19cdc8*_0x19cdc8*_0x5580d9*_0x1265ef['y']+0x3*_0x19cdc8*_0x5580d9*_0x5580d9*_0x25abe2['y']+_0x5580d9*_0x5580d9*_0x5580d9*_0x257da6['y']};}function _0xe02c92(_0xa70dbd,_0x2f542f,_0xfe087d,_0x2bb659){const _0xa86577=_0x23f9ff;let _0x5a0de2=-_0xa70dbd+0x3*_0x2f542f-0x3*_0xfe087d+_0x2bb659,_0x3067cd=0x3*_0xa70dbd-0x6*_0x2f542f+0x3*_0xfe087d,_0x7ad2c0=-0x3*_0xa70dbd+0x3*_0x2f542f,_0x33a361=[];if(Math[_0xa86577(0x14c)](_0x5a0de2)<_0x4728ee){if(Math[_0xa86577(0x14c)](_0x3067cd)<_0x4728ee)return _0x33a361;let _0x5e2438=-_0x7ad2c0/(0x2*_0x3067cd);return _0x5e2438>0x0&&_0x5e2438<0x1&&_0x33a361['push'](_0x5e2438),_0x33a361;}let _0x5c9de8=_0x3067cd*_0x3067cd-0x3*_0x5a0de2*_0x7ad2c0;if(_0x5c9de8<0x0)return _0x33a361;let _0x15b8eb=Math[_0xa86577(0x187)](Math[_0xa86577(0x15e)](0x0,_0x5c9de8)),_0x5ceeaf=(-_0x3067cd+_0x15b8eb)/(0x3*_0x5a0de2),_0x596019=(-_0x3067cd-_0x15b8eb)/(0x3*_0x5a0de2);return _0x5ceeaf>0x0&&_0x5ceeaf<0x1&&_0x33a361[_0xa86577(0x133)](_0x5ceeaf),_0x596019>0x0&&_0x596019<0x1&&Math[_0xa86577(0x14c)](_0x596019-_0x5ceeaf)>_0x4728ee&&_0x33a361['push'](_0x596019),_0x33a361;}function _0x5adbed(_0x5a1411,_0x7702f2,_0x8783d6,_0x26b6b6,_0x386b2b){const _0x328aef=_0x23f9ff;_0x5a1411[_0x328aef(0x133)](_0x7702f2,_0x386b2b),new Set([..._0xe02c92(_0x7702f2['x'],_0x8783d6['x'],_0x26b6b6['x'],_0x386b2b['x']),..._0xe02c92(_0x7702f2['y'],_0x8783d6['y'],_0x26b6b6['y'],_0x386b2b['y'])])[_0x328aef(0x15c)](_0x36ab21=>{const _0x4feb06=_0x328aef;_0x5a1411[_0x4feb06(0x133)](_0x5747d7(_0x7702f2,_0x8783d6,_0x26b6b6,_0x386b2b,_0x36ab21));});}function _0x2b9b17(_0x501d7a){const _0x302eae=_0x23f9ff;let _0x59ee64=_0x501d7a[_0x302eae(0x11d)];if(_0x59ee64[_0x302eae(0x13d)]<=0x1)return _0x59ee64;let _0x6775a6=[];for(let _0x5a23e5=0x1;_0x5a23e5<_0x59ee64[_0x302eae(0x13d)];_0x5a23e5++){var _0x3882f0,_0x95f1ad;let _0x11d856=_0x59ee64[_0x5a23e5-0x1],_0x3f2306=_0x59ee64[_0x5a23e5];_0x5adbed(_0x6775a6,_0x11d856,(_0x3882f0=_0x11d856[_0x302eae(0x14a)])==null?_0x11d856:_0x3882f0,(_0x95f1ad=_0x3f2306['in'])==null?_0x3f2306:_0x95f1ad,_0x3f2306);}if(_0x501d7a['closed']&&_0x59ee64[_0x302eae(0x13d)]>0x1){var _0x1f4f40,_0x53b2b3;let _0x50240d=_0x59ee64[_0x59ee64['length']-0x1],_0xb21850=_0x59ee64[0x0];_0x5adbed(_0x6775a6,_0x50240d,(_0x1f4f40=_0x50240d[_0x302eae(0x14a)])==null?_0x50240d:_0x1f4f40,(_0x53b2b3=_0xb21850['in'])==null?_0xb21850:_0x53b2b3,_0xb21850);}return _0x6775a6;}function _0x53548c(_0x2f2b76){const _0x1b325b=_0x23f9ff;let _0x489004=_0x2f2b76['points'];if(_0x489004['length']<=0x1)return _0x489004;let _0x44a242=[];for(let _0x23b7c3=0x0;_0x23b7c3<_0x489004[_0x1b325b(0x13d)]-0x1;_0x23b7c3++){var _0x1abd18,_0x37b794;let _0x41ed6a=_0x489004[_0x23b7c3],_0x145ae9=_0x489004[_0x23b7c3+0x1],_0x588d75=(_0x1abd18=_0x489004[_0x23b7c3-0x1])==null?_0x41ed6a:_0x1abd18,_0x367ee9=(_0x37b794=_0x489004[_0x23b7c3+0x2])==null?_0x145ae9:_0x37b794;_0x5adbed(_0x44a242,_0x41ed6a,{'x':_0x41ed6a['x']+(_0x145ae9['x']-_0x588d75['x'])/0x6,'y':_0x41ed6a['y']+(_0x145ae9['y']-_0x588d75['y'])/0x6},{'x':_0x145ae9['x']-(_0x367ee9['x']-_0x41ed6a['x'])/0x6,'y':_0x145ae9['y']-(_0x367ee9['y']-_0x41ed6a['y'])/0x6},_0x145ae9);}return _0x44a242;}function _0x3986e5(_0x17d9a4){const _0x4ebeee=_0x23f9ff;return _0x17d9a4[_0x4ebeee(0x121)]==='pen'?_0x2b9b17(_0x17d9a4):_0x53548c(_0x17d9a4);}function _0x26e333(_0x18c6ad){const _0x4bc759=_0x23f9ff;let _0x32a332=Math[_0x4bc759(0x186)](_0x18c6ad*0x2710)/0x2710;return Object['is'](_0x32a332,-0x0)?0x0:_0x32a332;}function _0x4dcb65(_0x35ae20){const _0x2e62fd=_0x23f9ff;let _0x33b2be=_0x3986e5(_0x35ae20);if(_0x33b2be[_0x2e62fd(0x13d)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x51abee=Math[_0x2e62fd(0x167)](..._0x33b2be[_0x2e62fd(0x13b)](_0x3f0c9c=>_0x3f0c9c['x'])),_0x3b5dfe=Math[_0x2e62fd(0x167)](..._0x33b2be['map'](_0x2ff6ca=>_0x2ff6ca['y'])),_0x1b19d3=Math[_0x2e62fd(0x15e)](..._0x33b2be[_0x2e62fd(0x13b)](_0x1bcdfe=>_0x1bcdfe['x'])),_0xb982ae=Math[_0x2e62fd(0x15e)](..._0x33b2be[_0x2e62fd(0x13b)](_0x3e9745=>_0x3e9745['y']));return{'left':_0x26e333(_0x51abee),'top':_0x26e333(_0x3b5dfe),'width':_0x26e333(Math[_0x2e62fd(0x15e)](0x1,_0x1b19d3-_0x51abee)),'height':_0x26e333(Math[_0x2e62fd(0x15e)](0x1,_0xb982ae-_0x3b5dfe))};}function _0x2566bc(_0x17c50a,_0x128967){const _0x3f01f8=_0x23f9ff;let _0x5e8ea1=_0x17c50a[_0x3f01f8(0x11d)];if(_0x5e8ea1['length']===0x0)return'';let _0x44110a=['M\x20'+_0x1cc548(_0x56f4ef(_0x5e8ea1[0x0],_0x128967))];for(let _0x2c119c=0x1;_0x2c119c<_0x5e8ea1[_0x3f01f8(0x13d)];_0x2c119c++){var _0x510972,_0x1180df;let _0xe09fa3=_0x5e8ea1[_0x2c119c-0x1],_0x2ec340=_0x5e8ea1[_0x2c119c],_0x528aa3=(_0x510972=_0xe09fa3[_0x3f01f8(0x14a)])==null?_0xe09fa3:_0x510972,_0x24a75a=(_0x1180df=_0x2ec340['in'])==null?_0x2ec340:_0x1180df;_0x44110a['push']('C\x20'+_0x1cc548(_0x56f4ef(_0x528aa3,_0x128967))+'\x20'+_0x1cc548(_0x56f4ef(_0x24a75a,_0x128967))+'\x20'+_0x1cc548(_0x56f4ef(_0x2ec340,_0x128967)));}if(_0x17c50a[_0x3f01f8(0x126)]&&_0x5e8ea1[_0x3f01f8(0x13d)]>0x1){var _0x206f08,_0x102989;let _0x1d1f64=_0x5e8ea1[_0x5e8ea1['length']-0x1],_0x28c5aa=_0x5e8ea1[0x0],_0xf760a4=(_0x206f08=_0x1d1f64[_0x3f01f8(0x14a)])==null?_0x1d1f64:_0x206f08,_0x76d7c8=(_0x102989=_0x28c5aa['in'])==null?_0x28c5aa:_0x102989;_0x44110a[_0x3f01f8(0x133)]('C\x20'+_0x1cc548(_0x56f4ef(_0xf760a4,_0x128967))+'\x20'+_0x1cc548(_0x56f4ef(_0x76d7c8,_0x128967))+'\x20'+_0x1cc548(_0x56f4ef(_0x28c5aa,_0x128967))),_0x44110a['push']('Z');}return _0x44110a[_0x3f01f8(0x13a)]('\x20');}function _0x5c6ccd(_0x59277a,_0x34f78a){const _0x29b8bf=_0x23f9ff;let _0x544981=_0x59277a[_0x29b8bf(0x158)]['map'](_0x2333fd=>_0x56f4ef(_0x2333fd,_0x34f78a));if(_0x544981[_0x29b8bf(0x13d)]===0x0)return'';if(_0x544981[_0x29b8bf(0x13d)]===0x1)return'M\x20'+_0x1cc548(_0x544981[0x0]);let _0x1ef7bf=['M\x20'+_0x1cc548(_0x544981[0x0])];for(let _0x2576f9=0x0;_0x2576f9<_0x544981[_0x29b8bf(0x13d)]-0x1;_0x2576f9++){var _0x510c11,_0x974a2a;let _0x29dee0=_0x544981[_0x2576f9],_0x5d0c1e=_0x544981[_0x2576f9+0x1],_0x3dd17c=(_0x510c11=_0x544981[_0x2576f9-0x1])==null?_0x29dee0:_0x510c11,_0x2ed8cd=(_0x974a2a=_0x544981[_0x2576f9+0x2])==null?_0x5d0c1e:_0x974a2a,_0x224cac={'x':_0x29dee0['x']+(_0x5d0c1e['x']-_0x3dd17c['x'])/0x6,'y':_0x29dee0['y']+(_0x5d0c1e['y']-_0x3dd17c['y'])/0x6},_0x54cfa0={'x':_0x5d0c1e['x']-(_0x2ed8cd['x']-_0x29dee0['x'])/0x6,'y':_0x5d0c1e['y']-(_0x2ed8cd['y']-_0x29dee0['y'])/0x6};_0x1ef7bf[_0x29b8bf(0x133)]('C\x20'+_0x1cc548(_0x224cac)+'\x20'+_0x1cc548(_0x54cfa0)+'\x20'+_0x1cc548(_0x5d0c1e));}return _0x1ef7bf['join']('\x20');}function _0x3fc1f2(_0x3c487c,_0x5d709a){const _0x2b0bcb=_0x23f9ff;return _0x3c487c[_0x2b0bcb(0x121)]===_0x2b0bcb(0x11c)?_0x2566bc(_0x3c487c,_0x5d709a):_0x5c6ccd(_0x3c487c,_0x5d709a);}function _0x480ee9(_0x52e678,_0xc14fcd){const _0x16cf36=_0x23f9ff;return _0xc14fcd!=null&&_0xc14fcd[_0x16cf36(0x17c)]?_0xc14fcd[_0x16cf36(0x17c)]:_0x52e678['kind']===_0x16cf36(0x11c)?_0x16cf36(0x176):_0x52e678[_0x16cf36(0x17c)];}function _0x48a0d5(_0x4ed7a6,_0x2237a9){const _0x1d666b=_0x23f9ff;return(_0x2237a9==null?void 0x0:_0x2237a9[_0x1d666b(0x15a)])===void 0x0?_0x4ed7a6[_0x1d666b(0x121)]==='pen'?0x2:_0x4ed7a6[_0x1d666b(0x15a)]:_0x2237a9[_0x1d666b(0x15a)];}function _0x54c92e(_0x3926cc,_0x51b87e){const _0x200cb6=_0x23f9ff;return(_0x51b87e==null?void 0x0:_0x51b87e[_0x200cb6(0x182)])===void 0x0?_0x3926cc[_0x200cb6(0x121)]==='pen'?void 0x0:_0x3926cc[_0x200cb6(0x182)]:_0x51b87e[_0x200cb6(0x182)];}function _0x588893(_0x33faf8,_0x549a48){const _0x53eedf=_0x23f9ff;let _0x406ac5=_0x4dcb65(_0x33faf8),_0x3fd61e=_0x3fc1f2(_0x33faf8,{'x':_0x406ac5['left'],'y':_0x406ac5['top']}),_0x40ea7d=_0x33faf8[_0x53eedf(0x121)]===_0x53eedf(0x11c)&&_0x33faf8[_0x53eedf(0x126)],_0x216af7=_0x549a48==null?void 0x0:_0x549a48[_0x53eedf(0x135)];return{'shapeType':_0x383e6d[_0x53eedf(0x159)][_0x53eedf(0x171)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x406ac5[_0x53eedf(0x15a)],'h':_0x406ac5[_0x53eedf(0x160)],'fill':_0x40ea7d?_0x53eedf(0x13e):_0x53eedf(0x172),'stroke':!0x0,'data':_0x3fd61e,'dataArray':_0xccf2bc(_0x33faf8,{'x':_0x406ac5[_0x53eedf(0x16f)],'y':_0x406ac5[_0x53eedf(0x18b)]})}]},'fill':_0x40ea7d&&_0x216af7?{'color':_0x216af7,'fillType':_0x383e6d[_0x53eedf(0x177)]['SolidFill']}:{'fillType':_0x383e6d['ShapeFillEnum']['NoFill']},'stroke':{'color':_0x480ee9(_0x33faf8,_0x549a48),'width':_0x48a0d5(_0x33faf8,_0x549a48),'opacity':_0x54c92e(_0x33faf8,_0x549a48),'lineStrokeType':_0x383e6d[_0x53eedf(0x174)]['SolidLine'],'capType':_0x383e6d[_0x53eedf(0x157)]['Round'],'lineJoinType':_0x383e6d[_0x53eedf(0x11a)][_0x53eedf(0x14e)]}};}function _0x5141dc(_0x3264cf,_0x17cc4e){return{'x':_0x3264cf['x']-_0x17cc4e['x'],'y':_0x3264cf['y']-_0x17cc4e['y']};}function _0xccf2bc(_0x33cf5e,_0x45da68){const _0x875064=_0x23f9ff;if(_0x33cf5e[_0x875064(0x121)]==='pen'){let _0x11fc5c=_0x33cf5e[_0x875064(0x11d)];if(_0x11fc5c[_0x875064(0x13d)]===0x0)return[];let _0x35a706=_0x5141dc(_0x11fc5c[0x0],_0x45da68),_0x4b27dd=[{'command':'M','points':[_0x35a706['x'],_0x35a706['y']]}];for(let _0x10909e=0x1;_0x10909e<_0x11fc5c[_0x875064(0x13d)];_0x10909e++){var _0x394f53,_0x290e9f;let _0x1ed774=_0x11fc5c[_0x10909e-0x1],_0x56336f=_0x11fc5c[_0x10909e],_0x56d71b=_0x5141dc((_0x394f53=_0x1ed774['out'])==null?_0x1ed774:_0x394f53,_0x45da68),_0x39886c=_0x5141dc((_0x290e9f=_0x56336f['in'])==null?_0x56336f:_0x290e9f,_0x45da68),_0x5f5301=_0x5141dc(_0x56336f,_0x45da68);_0x4b27dd[_0x875064(0x133)]({'command':'C','points':[_0x56d71b['x'],_0x56d71b['y'],_0x39886c['x'],_0x39886c['y'],_0x5f5301['x'],_0x5f5301['y']]});}if(_0x33cf5e[_0x875064(0x126)]&&_0x11fc5c[_0x875064(0x13d)]>0x1){var _0x1b6227,_0x2b39b0;let _0x39de6a=_0x11fc5c[_0x11fc5c[_0x875064(0x13d)]-0x1],_0x58796b=_0x11fc5c[0x0],_0x5e7b93=_0x5141dc((_0x1b6227=_0x39de6a[_0x875064(0x14a)])==null?_0x39de6a:_0x1b6227,_0x45da68),_0x2e4a7a=_0x5141dc((_0x2b39b0=_0x58796b['in'])==null?_0x58796b:_0x2b39b0,_0x45da68),_0x3838bb=_0x5141dc(_0x58796b,_0x45da68);_0x4b27dd[_0x875064(0x133)]({'command':'C','points':[_0x5e7b93['x'],_0x5e7b93['y'],_0x2e4a7a['x'],_0x2e4a7a['y'],_0x3838bb['x'],_0x3838bb['y']]}),_0x4b27dd['push']({'command':'z','points':[]});}return _0x4b27dd;}let _0x4e4136=_0x33cf5e['points'][_0x875064(0x13b)](_0x3ae26c=>_0x5141dc(_0x3ae26c,_0x45da68));if(_0x4e4136['length']===0x0)return[];let _0x2d6296=[{'command':'M','points':[_0x4e4136[0x0]['x'],_0x4e4136[0x0]['y']]}];for(let _0x2b8312=0x0;_0x2b8312<_0x4e4136[_0x875064(0x13d)]-0x1;_0x2b8312++){var _0x35aa2c,_0x2e329f;let _0x31db25=_0x4e4136[_0x2b8312],_0x417c2e=_0x4e4136[_0x2b8312+0x1],_0x2ac303=(_0x35aa2c=_0x4e4136[_0x2b8312-0x1])==null?_0x31db25:_0x35aa2c,_0x23f1f0=(_0x2e329f=_0x4e4136[_0x2b8312+0x2])==null?_0x417c2e:_0x2e329f,_0x1790e6={'x':_0x31db25['x']+(_0x417c2e['x']-_0x2ac303['x'])/0x6,'y':_0x31db25['y']+(_0x417c2e['y']-_0x2ac303['y'])/0x6},_0x31ec5a={'x':_0x417c2e['x']-(_0x23f1f0['x']-_0x31db25['x'])/0x6,'y':_0x417c2e['y']-(_0x23f1f0['y']-_0x31db25['y'])/0x6};_0x2d6296[_0x875064(0x133)]({'command':'C','points':[_0x1790e6['x'],_0x1790e6['y'],_0x31ec5a['x'],_0x31ec5a['y'],_0x417c2e['x'],_0x417c2e['y']]});}return _0x2d6296;}function _0xdd7e30(_0x65323){const _0x81767e=_0x23f9ff;var _0x274c1e;let {model:_0x46b38f,sourceModel:_0x63a6a1=_0x46b38f,style:_0x39bf7f}=_0x65323,_0x4b0bb2=(_0x274c1e=_0x65323['tool'])==null?_0x46b38f[_0x81767e(0x121)]:_0x274c1e,_0x3e0fa3=_0x4dcb65(_0x46b38f),_0x23a567=_0x46b38f[_0x81767e(0x121)]==='pen'&&_0x4b0bb2!==_0x81767e(0x11c)?_0x46b38f:void 0x0;return{'transform':{..._0x3e0fa3,'rotation':0x0},'shapeData':_0x588893(_0x46b38f,_0x39bf7f),'ink':{'version':0x1,'tool':_0x4b0bb2,'sourceModel':_0x63a6a1,..._0x23a567?{'editModel':_0x23a567}:{},'normalizedBounds':_0x3e0fa3}};}var _0x2e378a=_0x23f9ff(0x11f),_0x304436=_0x23f9ff(0x175);function _0x18201e(_0x1d866c){'@babel/helpers - typeof';const _0x3151c5=_0x23f9ff;return _0x18201e=typeof Symbol==_0x3151c5(0x110)&&typeof Symbol['iterator']=='symbol'?function(_0xb3c4c1){return typeof _0xb3c4c1;}:function(_0xc505ab){const _0x275434=_0x3151c5;return _0xc505ab&&typeof Symbol=='function'&&_0xc505ab['constructor']===Symbol&&_0xc505ab!==Symbol[_0x275434(0x143)]?_0x275434(0x146):typeof _0xc505ab;},_0x18201e(_0x1d866c);}function _0x562060(_0x5d48df,_0xf578ae){const _0x59d0c1=_0x23f9ff;if(_0x18201e(_0x5d48df)!=_0x59d0c1(0x129)||!_0x5d48df)return _0x5d48df;var _0x420ca5=_0x5d48df[Symbol[_0x59d0c1(0x183)]];if(_0x420ca5!==void 0x0){var _0x319321=_0x420ca5[_0x59d0c1(0x13f)](_0x5d48df,_0xf578ae||'default');if(_0x18201e(_0x319321)!=_0x59d0c1(0x129))return _0x319321;throw TypeError(_0x59d0c1(0x112));}return(_0xf578ae==='string'?String:Number)(_0x5d48df);}function _0x53514a(_0x4fb0ee){var _0x2cecce=_0x562060(_0x4fb0ee,'string');return _0x18201e(_0x2cecce)=='symbol'?_0x2cecce:_0x2cecce+'';}function _0x2122c2(_0x2cf544,_0x39c08c,_0x1605d7){const _0x5810fd=_0x23f9ff;return(_0x39c08c=_0x53514a(_0x39c08c))in _0x2cf544?Object[_0x5810fd(0x156)](_0x2cf544,_0x39c08c,{'value':_0x1605d7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2cf544[_0x39c08c]=_0x1605d7,_0x2cf544;}let _0x1ed639=(0x0,_0x3c4216[_0x23f9ff(0x117)])(_0x23f9ff(0x137));var _0x2be810=class{constructor(){const _0x1b7e45=_0x23f9ff;_0x2122c2(this,_0x1b7e45(0x11b),[]);}[_0x23f9ff(0x163)](_0x35b635){const _0x451e50=_0x23f9ff;return this['_adapters'][_0x451e50(0x133)](_0x35b635),(0x0,_0x3c4216[_0x451e50(0x151)])(()=>{const _0x555d13=_0x451e50;let _0x1ca62b=this[_0x555d13(0x11b)][_0x555d13(0x149)](_0x35b635);_0x1ca62b>=0x0&&this[_0x555d13(0x11b)][_0x555d13(0x155)](_0x1ca62b,0x1);});}[_0x23f9ff(0x124)](_0x1e2a23){const _0x22cc79=_0x23f9ff;for(let _0x3c77b7 of this[_0x22cc79(0x11b)])if(_0x3c77b7[_0x22cc79(0x124)](_0x1e2a23))return!0x0;return!0x1;}async[_0x23f9ff(0x189)](_0x1cb918){const _0x515c0a=_0x23f9ff;for(let _0x112083 of this[_0x515c0a(0x11b)])if(_0x112083[_0x515c0a(0x189)]&&await _0x112083[_0x515c0a(0x189)](_0x1cb918))return!0x0;return!0x1;}};let _0x544e3d={'id':'ink.operation.start','type':_0x3c4216[_0x23f9ff(0x185)][_0x23f9ff(0x144)],'handler':(_0x32de60,_0x1e24f0)=>_0x1e24f0?_0x32de60['get'](_0x1ed639)[_0x23f9ff(0x124)](_0x1e24f0):!0x1},_0x52d8e4={};function _0x3e729c(_0x1b5750,_0x100fe9){return function(_0x51b5af,_0x1265cd){_0x100fe9(_0x51b5af,_0x1265cd,_0x1b5750);};}function _0x1e5c68(_0x15b980,_0x3f73a9,_0x511d82,_0x3fe382){const _0x4477c3=_0x23f9ff;var _0x5da1d2=arguments[_0x4477c3(0x13d)],_0x59c715=_0x5da1d2<0x3?_0x3f73a9:_0x3fe382===null?_0x3fe382=Object['getOwnPropertyDescriptor'](_0x3f73a9,_0x511d82):_0x3fe382,_0x396630;if(typeof Reflect==_0x4477c3(0x129)&&typeof Reflect[_0x4477c3(0x16c)]=='function')_0x59c715=Reflect[_0x4477c3(0x16c)](_0x15b980,_0x3f73a9,_0x511d82,_0x3fe382);else{for(var _0x40df7c=_0x15b980['length']-0x1;_0x40df7c>=0x0;_0x40df7c--)(_0x396630=_0x15b980[_0x40df7c])&&(_0x59c715=(_0x5da1d2<0x3?_0x396630(_0x59c715):_0x5da1d2>0x3?_0x396630(_0x3f73a9,_0x511d82,_0x59c715):_0x396630(_0x3f73a9,_0x511d82))||_0x59c715);}return _0x5da1d2>0x3&&_0x59c715&&Object[_0x4477c3(0x156)](_0x3f73a9,_0x511d82,_0x59c715),_0x59c715;}let _0x570a97=class extends _0x3c4216['Plugin']{constructor(_0x4447b8=_0x52d8e4,_0x45c685,_0x2c9b20,_0x2c0cfc){const _0x2abccb=_0x23f9ff;super(),this[_0x2abccb(0x116)]=_0x4447b8,this[_0x2abccb(0x16a)]=_0x45c685,this[_0x2abccb(0x169)]=_0x2c9b20,this[_0x2abccb(0x12f)]=_0x2c0cfc;let {..._0x2e1d56}=(0x0,_0x3c4216[_0x2abccb(0x152)])({},_0x52d8e4,this[_0x2abccb(0x116)]);this[_0x2abccb(0x12f)][_0x2abccb(0x17e)]('ink.config',_0x2e1d56);}[_0x23f9ff(0x123)](){const _0x46eb28=_0x23f9ff;[[_0x1ed639,{'useClass':_0x2be810}]][_0x46eb28(0x15c)](_0x3ce581=>this[_0x46eb28(0x16a)]['add'](_0x3ce581)),this['disposeWithMe'](this[_0x46eb28(0x169)][_0x46eb28(0x17d)](_0x544e3d));}};_0x2122c2(_0x570a97,_0x23f9ff(0x130),_0x23f9ff(0x165)),_0x2122c2(_0x570a97,_0x23f9ff(0x15b),_0x2e378a),_0x2122c2(_0x570a97,_0x23f9ff(0x178),_0x304436),_0x2122c2(_0x570a97,_0x23f9ff(0x153),_0x3c4216[_0x23f9ff(0x12e)][_0x23f9ff(0x148)]),_0x570a97=_0x1e5c68([(0x0,_0x3c4216['DependentOn'])(_0xb63ae8[_0x23f9ff(0x173)]),_0x3e729c(0x1,(0x0,_0x3c4216[_0x23f9ff(0x168)])(_0x3c4216[_0x23f9ff(0x17a)])),_0x3e729c(0x2,_0x3c4216[_0x23f9ff(0x161)]),_0x3e729c(0x3,_0x3c4216['IConfigService'])],_0x570a97),_0x2ae93c[_0x23f9ff(0x15d)]=_0x1ed639,Object[_0x23f9ff(0x156)](_0x2ae93c,_0x23f9ff(0x12b),{'enumerable':!0x0,'get':function(){return _0x570a97;}}),_0x2ae93c[_0x23f9ff(0x170)]=_0xdd7e30,_0x2ae93c['convertBrushModelToPenModel']=_0x95bfa1,_0x2ae93c[_0x23f9ff(0x164)]=_0x2f5c1d,_0x2ae93c['deleteInkPenAnchor']=_0x31d78b,_0x2ae93c['findClosestInkPenHandle']=_0x31d540,_0x2ae93c[_0x23f9ff(0x14b)]=_0x53ff64,_0x2ae93c[_0x23f9ff(0x181)]=_0x4dcb65,_0x2ae93c['getInkPenPreviewModel']=_0x42b6e8,_0x2ae93c['insertInkPenAnchorAt']=_0x5e32b0,_0x2ae93c[_0x23f9ff(0x134)]=_0x514d33,_0x2ae93c[_0x23f9ff(0x11e)]=_0x54cc69,_0x2ae93c[_0x23f9ff(0x136)]=_0x3a7e54;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/ink",
3
- "version": "1.0.0-alpha.4",
3
+ "version": "1.0.0-alpha.5",
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.0-alpha.4",
62
- "@univerjs-pro/engine-shape": "1.0.0-alpha.4",
63
- "@univerjs-pro/license": "1.0.0-alpha.4",
64
- "@univerjs/core": "1.0.0-alpha.4"
61
+ "@univerjs-pro/boards": "1.0.0-alpha.5",
62
+ "@univerjs-pro/engine-shape": "1.0.0-alpha.5",
63
+ "@univerjs-pro/license": "1.0.0-alpha.5",
64
+ "@univerjs/core": "1.0.0-alpha.5"
65
65
  },
66
66
  "devDependencies": {
67
67
  "typescript": "^6.0.3",
68
68
  "vitest": "^4.1.10",
69
- "@univerjs-infra/shared": "1.0.0-alpha.4"
69
+ "@univerjs-infra/shared": "1.0.0-alpha.5"
70
70
  },
71
71
  "scripts": {
72
72
  "test": "vitest run",