@univerjs-pro/ink 1.0.4 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x268f9c=_0x2d4e;(function(_0x49e474,_0x406e5f){const _0x4b8ad3=_0x2d4e,_0x57f3fc=_0x49e474();while(!![]){try{const _0x53662f=-parseInt(_0x4b8ad3(0x8d))/0x1*(parseInt(_0x4b8ad3(0x7d))/0x2)+parseInt(_0x4b8ad3(0x8b))/0x3*(-parseInt(_0x4b8ad3(0x82))/0x4)+parseInt(_0x4b8ad3(0x8a))/0x5*(parseInt(_0x4b8ad3(0x77))/0x6)+-parseInt(_0x4b8ad3(0x83))/0x7+-parseInt(_0x4b8ad3(0x7a))/0x8*(-parseInt(_0x4b8ad3(0x7f))/0x9)+parseInt(_0x4b8ad3(0xae))/0xa*(parseInt(_0x4b8ad3(0xaf))/0xb)+parseInt(_0x4b8ad3(0xa4))/0xc;if(_0x53662f===_0x406e5f)break;else _0x57f3fc['push'](_0x57f3fc['shift']());}catch(_0x75d0b9){_0x57f3fc['push'](_0x57f3fc['shift']());}}}(_0x2e07,0xf22f8),Object['defineProperty'](exports,Symbol[_0x268f9c(0x7c)],{'value':_0x268f9c(0x99)}));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']{[_0x268f9c(0xaa)](_0x269497){const _0x42a566=_0x268f9c;let _0x5b14fa=o(_0x269497);return _0x5b14fa&&this[_0x42a566(0x80)](_0x5b14fa,{'insertIndex':_0x269497[_0x42a566(0x85)]})?_0x5b14fa:null;}['getInks'](){const _0x40623b=_0x268f9c;return this['findElements']({'elementType':e[_0x40623b(0x90)][_0x40623b(0x88)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](f);}};function o(_0x5ac075,_0x4f0d4a){const _0x2afe1a=_0x268f9c;if(!c(_0x5ac075[_0x2afe1a(0x8e)])||_0x5ac075[_0x2afe1a(0x97)]!==void 0x0&&!c(_0x5ac075[_0x2afe1a(0x97)])||!l(_0x5ac075['style']))return null;let _0x3914c5=_0x5ac075[_0x2afe1a(0x9a)]??(_0x4f0d4a==null?void 0x0:_0x4f0d4a[_0x2afe1a(0x9a)]),_0x3d80c3=r[_0x2afe1a(0x9f)]['deepClone'](_0x5ac075[_0x2afe1a(0x8e)]),_0x2b9ba2=(0x0,n[_0x2afe1a(0x92)])({'model':_0x3d80c3,'style':_0x5ac075['style'],'tool':_0x5ac075[_0x2afe1a(0x96)],'sourceModel':_0x5ac075[_0x2afe1a(0x97)]?r[_0x2afe1a(0x9f)][_0x2afe1a(0x84)](_0x5ac075[_0x2afe1a(0x97)]):_0x3d80c3}),_0xe2f199=u(_0x4f0d4a==null?void 0x0:_0x4f0d4a[_0x2afe1a(0x78)]);return{'id':(_0x4f0d4a==null?void 0x0:_0x4f0d4a['id'])??_0x5ac075['id']??(0x0,r[_0x2afe1a(0xa5)])(0x6),'type':e[_0x2afe1a(0x90)][_0x2afe1a(0x88)],'transform':_0x2b9ba2[_0x2afe1a(0x8c)],'shapeData':_0x2b9ba2['shapeData'],'parentId':_0x3914c5??void 0x0,'laneId':_0x5ac075['laneId']===void 0x0?_0x4f0d4a==null?void 0x0:_0x4f0d4a[_0x2afe1a(0x95)]:_0x5ac075[_0x2afe1a(0x95)],'custom':{..._0xe2f199,'ink':_0x2b9ba2[_0x2afe1a(0xa2)]}};}function s(_0x40efb2){const _0x195544=_0x268f9c;return Number[_0x195544(0x89)](_0x40efb2['x'])&&Number[_0x195544(0x89)](_0x40efb2['y']);}function c(_0x3178b5){const _0x16ab53=_0x268f9c;if(_0x3178b5['kind']===_0x16ab53(0xa7)){let _0xd77d1f=new Set();return _0x3178b5['anchors'][_0x16ab53(0x76)]>=(_0x3178b5[_0x16ab53(0x79)]?0x3:0x2)&&_0x3178b5[_0x16ab53(0x98)][_0x16ab53(0x7e)](_0x1e423d=>{const _0x20a017=_0x16ab53;let _0x2d4a0d=_0x1e423d['id']['trim']()[_0x20a017(0x76)]>0x0&&!_0xd77d1f[_0x20a017(0x9b)](_0x1e423d['id'])&&s(_0x1e423d)&&(!_0x1e423d['in']||s(_0x1e423d['in']))&&(!_0x1e423d[_0x20a017(0x94)]||s(_0x1e423d['out']));return _0xd77d1f[_0x20a017(0xa0)](_0x1e423d['id']),_0x2d4a0d;});}return _0x3178b5[_0x16ab53(0x9c)][_0x16ab53(0x76)]>=0x2&&_0x3178b5['points']['every'](_0x377cd5=>s(_0x377cd5)&&Number[_0x16ab53(0x89)](_0x377cd5['t'])&&(_0x377cd5[_0x16ab53(0x87)]===void 0x0||Number[_0x16ab53(0x89)](_0x377cd5[_0x16ab53(0x87)])))&&Number[_0x16ab53(0x89)](_0x3178b5[_0x16ab53(0xad)])&&_0x3178b5[_0x16ab53(0xad)]>0x0&&Number[_0x16ab53(0x89)](_0x3178b5[_0x16ab53(0x9e)])&&_0x3178b5[_0x16ab53(0x9e)]>=0x0&&_0x3178b5[_0x16ab53(0x9e)]<=0x1;}function l(_0x230399){const _0x2cfe3a=_0x268f9c;return _0x230399===void 0x0||(_0x230399[_0x2cfe3a(0xad)]===void 0x0||Number[_0x2cfe3a(0x89)](_0x230399[_0x2cfe3a(0xad)])&&_0x230399['width']>0x0)&&(_0x230399[_0x2cfe3a(0x9e)]===void 0x0||Number[_0x2cfe3a(0x89)](_0x230399[_0x2cfe3a(0x9e)])&&_0x230399[_0x2cfe3a(0x9e)]>=0x0&&_0x230399[_0x2cfe3a(0x9e)]<=0x1);}function u(_0x4370c0){const _0x41aa43=_0x268f9c;return _0x4370c0&&typeof _0x4370c0==_0x41aa43(0x9d)&&!Array[_0x41aa43(0xa1)](_0x4370c0)?_0x4370c0:{};}function d(_0x343898){const _0x766cb1=_0x268f9c;let _0x22465f=u(_0x343898[_0x766cb1(0x78)])['ink'];if(!_0x22465f||typeof _0x22465f!='object'||Array[_0x766cb1(0xa1)](_0x22465f))return null;let _0x179715=_0x22465f;return _0x179715[_0x766cb1(0xa8)]===0x1&&_0x179715[_0x766cb1(0x97)]&&typeof _0x179715['sourceModel']==_0x766cb1(0x9d)?_0x179715:null;}function f(_0x3193f7){const _0x3a44cc=_0x268f9c;return _0x3193f7['type']===e[_0x3a44cc(0x90)][_0x3a44cc(0x88)]&&!!d(_0x3193f7);}function _0x2d4e(_0x5ddfda,_0x4ebe20){_0x5ddfda=_0x5ddfda-0x75;const _0x2e07d0=_0x2e07();let _0x2d4eb1=_0x2e07d0[_0x5ddfda];return _0x2d4eb1;}t[_0x268f9c(0xac)][_0x268f9c(0x7b)](a);const p={'Pen':'pen','Brush':_0x268f9c(0xa3),'Highlighter':_0x268f9c(0x86)},m={'Corner':_0x268f9c(0xab),'Smooth':_0x268f9c(0xa6),'Symmetric':'symmetric','Free':_0x268f9c(0x93)},h={'Anchor':_0x268f9c(0xa9),'In':'in','Out':_0x268f9c(0x94)};function _0x2e07(){const _0x4abf63=['parentId','has','points','object','opacity','Tools','add','isArray','ink','brush','690804bVrXOv','generateRandomId','smooth','pen','version','anchor','insertInk','corner','FBoard','width','10GDzQQp','18881126wllAah','FEnum','length','114CMeVFl','custom','closed','213544MQXmAR','extend','toStringTag','4450efNxGF','every','225lhfzYq','_addElement','BoardInkPointType','14860FDiQxt','4748548cqUALY','deepClone','insertIndex','highlighter','pressure','Shape','isFinite','377485OPBnWT','879bhdApA','transform','502lVuJgC','model','BoardInkTool','BoardElementType','BoardInkHandleKind','buildInkCustomShapePayload','free','out','laneId','tool','sourceModel','anchors','Module'];_0x2e07=function(){return _0x4abf63;};return _0x2e07();}var g=class extends i[_0x268f9c(0x75)]{get[_0x268f9c(0x8f)](){return p;}get['BoardInkPointType'](){return m;}get[_0x268f9c(0x91)](){return h;}};i[_0x268f9c(0x75)][_0x268f9c(0x7b)](g),exports[_0x268f9c(0x91)]=h,exports[_0x268f9c(0x81)]=m,exports[_0x268f9c(0x8f)]=p;
1
+ const _0xa4807d=_0x5c84;(function(_0x5c9bea,_0x3d36f2){const _0x7822a8=_0x5c84,_0x203515=_0x5c9bea();while(!![]){try{const _0x116367=-parseInt(_0x7822a8(0x10b))/0x1+parseInt(_0x7822a8(0xe6))/0x2+-parseInt(_0x7822a8(0xe4))/0x3*(-parseInt(_0x7822a8(0xf4))/0x4)+-parseInt(_0x7822a8(0x10a))/0x5+-parseInt(_0x7822a8(0xed))/0x6+parseInt(_0x7822a8(0xff))/0x7+-parseInt(_0x7822a8(0x107))/0x8*(-parseInt(_0x7822a8(0xf8))/0x9);if(_0x116367===_0x3d36f2)break;else _0x203515['push'](_0x203515['shift']());}catch(_0x26f3a7){_0x203515['push'](_0x203515['shift']());}}}(_0xb656,0xc73a4),Object[_0xa4807d(0x105)](exports,Symbol['toStringTag'],{'value':_0xa4807d(0xe2)}));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[_0xa4807d(0xfb)]{[_0xa4807d(0xfe)](_0x4e0d9d){const _0x486c5b=_0xa4807d;let _0x1b697e=o(_0x4e0d9d);return _0x1b697e&&this[_0x486c5b(0xf1)](_0x1b697e,{'insertIndex':_0x4e0d9d[_0x486c5b(0x108)]})?_0x1b697e:null;}[_0xa4807d(0xe3)](){const _0x56a348=_0xa4807d;return this[_0x56a348(0xdd)]({'elementType':e[_0x56a348(0xef)][_0x56a348(0xd9)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x56a348(0xfd)](f);}};function o(_0x1365cd,_0x22dc2e){const _0x35d7a6=_0xa4807d;if(!c(_0x1365cd[_0x35d7a6(0x106)])||_0x1365cd[_0x35d7a6(0xd8)]!==void 0x0&&!c(_0x1365cd['sourceModel'])||!l(_0x1365cd[_0x35d7a6(0x10d)]))return null;let _0x18fafa=_0x1365cd[_0x35d7a6(0xda)]??(_0x22dc2e==null?void 0x0:_0x22dc2e[_0x35d7a6(0xda)]),_0x30023e=r[_0x35d7a6(0xf2)][_0x35d7a6(0xec)](_0x1365cd['model']),_0x394e8c=(0x0,n[_0x35d7a6(0xdc)])({'model':_0x30023e,'style':_0x1365cd[_0x35d7a6(0x10d)],'tool':_0x1365cd[_0x35d7a6(0x10c)],'sourceModel':_0x1365cd[_0x35d7a6(0xd8)]?r[_0x35d7a6(0xf2)][_0x35d7a6(0xec)](_0x1365cd[_0x35d7a6(0xd8)]):_0x30023e}),_0x343d01=u(_0x22dc2e==null?void 0x0:_0x22dc2e[_0x35d7a6(0xf6)]);return{'id':(_0x22dc2e==null?void 0x0:_0x22dc2e['id'])??_0x1365cd['id']??(0x0,r[_0x35d7a6(0xd6)])(0x6),'type':e[_0x35d7a6(0xef)][_0x35d7a6(0xd9)],'transform':_0x394e8c['transform'],'shapeData':_0x394e8c[_0x35d7a6(0xee)],'parentId':_0x18fafa??void 0x0,'laneId':_0x1365cd[_0x35d7a6(0xdf)]===void 0x0?_0x22dc2e==null?void 0x0:_0x22dc2e[_0x35d7a6(0xdf)]:_0x1365cd[_0x35d7a6(0xdf)],'custom':{..._0x343d01,'ink':_0x394e8c['ink']}};}function s(_0x4f0c66){const _0x4a9205=_0xa4807d;return Number[_0x4a9205(0xf9)](_0x4f0c66['x'])&&Number[_0x4a9205(0xf9)](_0x4f0c66['y']);}function c(_0x5a84a6){const _0x48a35c=_0xa4807d;if(_0x5a84a6[_0x48a35c(0xd7)]===_0x48a35c(0x10e)){let _0x59e13c=new Set();return _0x5a84a6['anchors'][_0x48a35c(0x10f)]>=(_0x5a84a6[_0x48a35c(0xe9)]?0x3:0x2)&&_0x5a84a6[_0x48a35c(0x102)][_0x48a35c(0xde)](_0x5c553d=>{const _0x2dadec=_0x48a35c;let _0x44f625=_0x5c553d['id'][_0x2dadec(0x104)]()[_0x2dadec(0x10f)]>0x0&&!_0x59e13c[_0x2dadec(0xd5)](_0x5c553d['id'])&&s(_0x5c553d)&&(!_0x5c553d['in']||s(_0x5c553d['in']))&&(!_0x5c553d[_0x2dadec(0xfa)]||s(_0x5c553d[_0x2dadec(0xfa)]));return _0x59e13c[_0x2dadec(0x109)](_0x5c553d['id']),_0x44f625;});}return _0x5a84a6['points']['length']>=0x2&&_0x5a84a6[_0x48a35c(0xd4)][_0x48a35c(0xde)](_0x244929=>s(_0x244929)&&Number[_0x48a35c(0xf9)](_0x244929['t'])&&(_0x244929['pressure']===void 0x0||Number[_0x48a35c(0xf9)](_0x244929[_0x48a35c(0xf7)])))&&Number[_0x48a35c(0xf9)](_0x5a84a6[_0x48a35c(0xe0)])&&_0x5a84a6[_0x48a35c(0xe0)]>0x0&&Number[_0x48a35c(0xf9)](_0x5a84a6[_0x48a35c(0xf3)])&&_0x5a84a6[_0x48a35c(0xf3)]>=0x0&&_0x5a84a6[_0x48a35c(0xf3)]<=0x1;}function l(_0x18d9cd){const _0x57f036=_0xa4807d;return _0x18d9cd===void 0x0||(_0x18d9cd[_0x57f036(0xe0)]===void 0x0||Number[_0x57f036(0xf9)](_0x18d9cd[_0x57f036(0xe0)])&&_0x18d9cd[_0x57f036(0xe0)]>0x0)&&(_0x18d9cd['opacity']===void 0x0||Number[_0x57f036(0xf9)](_0x18d9cd[_0x57f036(0xf3)])&&_0x18d9cd[_0x57f036(0xf3)]>=0x0&&_0x18d9cd[_0x57f036(0xf3)]<=0x1);}function u(_0x562d5f){const _0x31c25f=_0xa4807d;return _0x562d5f&&typeof _0x562d5f==_0x31c25f(0x101)&&!Array[_0x31c25f(0xdb)](_0x562d5f)?_0x562d5f:{};}function d(_0x5280f0){const _0x1f7445=_0xa4807d;let _0x460a3c=u(_0x5280f0['custom'])['ink'];if(!_0x460a3c||typeof _0x460a3c!=_0x1f7445(0x101)||Array[_0x1f7445(0xdb)](_0x460a3c))return null;let _0x3c64a1=_0x460a3c;return _0x3c64a1[_0x1f7445(0xf0)]===0x1&&_0x3c64a1[_0x1f7445(0xd8)]&&typeof _0x3c64a1[_0x1f7445(0xd8)]==_0x1f7445(0x101)?_0x3c64a1:null;}function f(_0x3dbcb6){const _0x5360ce=_0xa4807d;return _0x3dbcb6[_0x5360ce(0x100)]===e[_0x5360ce(0xef)][_0x5360ce(0xd9)]&&!!d(_0x3dbcb6);}t[_0xa4807d(0xfb)][_0xa4807d(0xe5)](a);const p={'Pen':_0xa4807d(0x10e),'Brush':_0xa4807d(0xea),'Highlighter':'highlighter'},m={'Corner':'corner','Smooth':_0xa4807d(0x103),'Symmetric':'symmetric','Free':_0xa4807d(0xeb)},h={'Anchor':_0xa4807d(0xf5),'In':'in','Out':'out'};var g=class extends i[_0xa4807d(0xfc)]{get['BoardInkTool'](){return p;}get[_0xa4807d(0xe8)](){return m;}get[_0xa4807d(0xe1)](){return h;}};function _0xb656(){const _0x127b59=['style','pen','length','points','has','generateRandomId','kind','sourceModel','Shape','parentId','isArray','buildInkCustomShapePayload','findElements','every','laneId','width','BoardInkHandleKind','Module','getInks','277713vzFDjf','extend','3014786jBVhkX','BoardInkTool','BoardInkPointType','closed','brush','free','deepClone','5108160QIUSNj','shapeData','BoardElementType','version','_addElement','Tools','opacity','4kDQbHD','anchor','custom','pressure','265653RapIJW','isFinite','out','FBoard','FEnum','filter','insertInk','5031117cHTaXV','type','object','anchors','smooth','trim','defineProperty','model','56MDvqVG','insertIndex','add','2065995AiCZmq','444719zGoUYg','tool'];_0xb656=function(){return _0x127b59;};return _0xb656();}function _0x5c84(_0x157c0a,_0x5f3ff2){_0x157c0a=_0x157c0a-0xd4;const _0xb6566=_0xb656();let _0x5c84ff=_0xb6566[_0x157c0a];return _0x5c84ff;}i[_0xa4807d(0xfc)][_0xa4807d(0xe5)](g),exports[_0xa4807d(0xe1)]=h,exports[_0xa4807d(0xe8)]=m,exports[_0xa4807d(0xe7)]=p;
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x11e230=_0x3b57;(function(_0x471d5a,_0x13d7e3){const _0x424f35=_0x3b57,_0x3b3610=_0x471d5a();while(!![]){try{const _0x412cbc=parseInt(_0x424f35(0x14d))/0x1*(-parseInt(_0x424f35(0x13f))/0x2)+-parseInt(_0x424f35(0x162))/0x3*(parseInt(_0x424f35(0x16b))/0x4)+parseInt(_0x424f35(0x181))/0x5+parseInt(_0x424f35(0x17e))/0x6+parseInt(_0x424f35(0x152))/0x7+parseInt(_0x424f35(0x18a))/0x8+-parseInt(_0x424f35(0x186))/0x9;if(_0x412cbc===_0x13d7e3)break;else _0x3b3610['push'](_0x3b3610['shift']());}catch(_0x37fffd){_0x3b3610['push'](_0x3b3610['shift']());}}}(_0x3596,0x3ba1a),Object[_0x11e230(0x18d)](exports,Symbol[_0x11e230(0x185)],{'value':_0x11e230(0x140)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x52fc46){return{'x':_0x52fc46['x'],'y':_0x52fc46['y']};}function a(_0x2f181c){return{..._0x2f181c,'in':_0x2f181c['in']?i(_0x2f181c['in']):void 0x0,'out':_0x2f181c['out']?i(_0x2f181c['out']):void 0x0};}function o(_0xf1ab23){const _0x42e70e=_0x11e230;return{'kind':_0x42e70e(0x18e),'closed':_0xf1ab23[_0x42e70e(0x1a3)],'anchors':_0xf1ab23[_0x42e70e(0x177)][_0x42e70e(0x153)](a)};}function s(_0x151764,_0x35ad5d,_0x57ce14){return{'x':_0x151764['x']+(_0x35ad5d['x']-_0x151764['x'])*_0x57ce14,'y':_0x151764['y']+(_0x35ad5d['y']-_0x151764['y'])*_0x57ce14};}function c(_0x4c7a2a,_0x5566b1){const _0x86a803=_0x11e230;return Math[_0x86a803(0x1a0)](_0x4c7a2a['x']-_0x5566b1['x'],_0x4c7a2a['y']-_0x5566b1['y']);}function l(_0x473060){const _0x18edd5=_0x11e230;let _0x482c74=Math[_0x18edd5(0x1a0)](_0x473060['x'],_0x473060['y']);return _0x482c74<r?{'x':0x1,'y':0x0}:{'x':_0x473060['x']/_0x482c74,'y':_0x473060['y']/_0x482c74};}function u(_0x1b4f51,_0x37de1a,_0x2f482a=c(_0x1b4f51,_0x37de1a)){let _0x68ffcc=l({'x':_0x1b4f51['x']-_0x37de1a['x'],'y':_0x1b4f51['y']-_0x37de1a['y']});return{'x':_0x1b4f51['x']+_0x68ffcc['x']*_0x2f482a,'y':_0x1b4f51['y']+_0x68ffcc['y']*_0x2f482a};}function d(_0xff7fe,_0xe3ca44){const _0x1e42b0=_0x11e230;let {anchors:_0x1162c2}=_0xff7fe;return _0x1162c2[_0x1e42b0(0x141)]<0x2||_0xe3ca44<0x0?null:_0xe3ca44<_0x1162c2[_0x1e42b0(0x141)]-0x1?{'startIndex':_0xe3ca44,'endIndex':_0xe3ca44+0x1,'start':_0x1162c2[_0xe3ca44],'end':_0x1162c2[_0xe3ca44+0x1]}:_0xff7fe[_0x1e42b0(0x1a3)]&&_0xe3ca44===_0x1162c2[_0x1e42b0(0x141)]-0x1?{'startIndex':_0x1162c2['length']-0x1,'endIndex':0x0,'start':_0x1162c2[_0x1162c2[_0x1e42b0(0x141)]-0x1],'end':_0x1162c2[0x0]}:null;}function f(_0x16b4f1,_0x4a86f0){const _0x1380d1=_0x11e230;let _0x5dcbd0=d(_0x16b4f1,_0x4a86f0);return _0x5dcbd0?[_0x5dcbd0['start'],_0x5dcbd0[_0x1380d1(0x160)][_0x1380d1(0x178)]??_0x5dcbd0[_0x1380d1(0x160)],_0x5dcbd0[_0x1380d1(0x191)]['in']??_0x5dcbd0['end'],_0x5dcbd0[_0x1380d1(0x191)]]:null;}function ee(_0x170140,_0x4957fb){const _0xfc4162=_0x11e230;return _0x4957fb===_0xfc4162(0x180)?_0x170140:_0x170140[_0x4957fb]??null;}function p(_0x3359bf,_0x337d57,_0xb021b){const _0x383644=_0x11e230;return _0xb021b===_0x383644(0x180)||_0x3359bf[_0x383644(0x1a3)]?!0x0:_0xb021b==='in'?_0x337d57>0x0:_0x337d57<_0x3359bf[_0x383644(0x177)][_0x383644(0x141)]-0x1;}function m(_0x5f1806,_0x384dd1){let [_0x26e7eb,_0x3483d3,_0xa5ea15,_0xe4f425]=_0x5f1806,_0x31ce75=s(_0x26e7eb,_0x3483d3,_0x384dd1),_0x5b12ee=s(_0x3483d3,_0xa5ea15,_0x384dd1),_0x6ce637=s(_0xa5ea15,_0xe4f425,_0x384dd1);return s(s(_0x31ce75,_0x5b12ee,_0x384dd1),s(_0x5b12ee,_0x6ce637,_0x384dd1),_0x384dd1);}function _0x3b57(_0x99b10f,_0x5eb09b){_0x99b10f=_0x99b10f-0x134;const _0x359643=_0x3596();let _0x3b57a3=_0x359643[_0x99b10f];return _0x3b57a3;}function h(_0x45b48a,_0x13f2f7){let [_0x3f3e37,_0xafd6c7,_0x358de5,_0x1ba7bb]=_0x45b48a,_0x2e2e6e=s(_0x3f3e37,_0xafd6c7,_0x13f2f7),_0x34cc6b=s(_0xafd6c7,_0x358de5,_0x13f2f7),_0x5bc512=s(_0x358de5,_0x1ba7bb,_0x13f2f7),_0x47938e=s(_0x2e2e6e,_0x34cc6b,_0x13f2f7),_0x50ecb0=s(_0x34cc6b,_0x5bc512,_0x13f2f7),_0x19444d=s(_0x47938e,_0x50ecb0,_0x13f2f7);return{'left':[_0x3f3e37,_0x2e2e6e,_0x47938e,_0x19444d],'right':[_0x19444d,_0x50ecb0,_0x5bc512,_0x1ba7bb]};}function g(_0x73a0b7,_0x350ce3,_0x153760){const _0x325137=_0x11e230;let _0x9f9355=_0x153760['x']-_0x350ce3['x'],_0x47611c=_0x153760['y']-_0x350ce3['y'],_0x59d616=_0x9f9355*_0x9f9355+_0x47611c*_0x47611c,_0x94c164=_0x59d616<=r?0x0:Math[_0x325137(0x183)](0x0,Math[_0x325137(0x164)](0x1,((_0x73a0b7['x']-_0x350ce3['x'])*_0x9f9355+(_0x73a0b7['y']-_0x350ce3['y'])*_0x47611c)/_0x59d616)),_0x40dbe8={'x':_0x350ce3['x']+_0x9f9355*_0x94c164,'y':_0x350ce3['y']+_0x47611c*_0x94c164};return{'point':_0x40dbe8,'ratio':_0x94c164,'distance':c(_0x73a0b7,_0x40dbe8)};}function te(_0x276876,_0x30c5e3,_0xdb4048){const _0x4c515d=_0x11e230;return g(_0x276876,_0x30c5e3,_0xdb4048)[_0x4c515d(0x179)]**0x2;}function _0x3596(){const _0x2b7292=['object','deleteInkPenAnchor','defineProperty','pen','UniverInkPlugin','corner','end','iterator','_adapters','ShapeLineCapEnum','left','symmetric','findClosestInkPenSegment','ratio','registerAdapter','findIndex','points','kind','isInkPenHandleVisible','cycleInkPenAnchorPointType','none','hypot','startIndex','setConfig','closed','add','Rect','CommandType','color','createId','ink.host-adapter.service','ShapeLineJoinEnum','onStarting','top','ShapeLineTypeEnum','default','join','sqrt','registerCommand','33052RIgZSp','Module','length','1.0.4','function','push','anchorId','splice','string','_config','_configService','_commandService','type','symbol','19UEJdKV','ink.config','width','find','toDisposable','1643201MYNGgC','map','slice','pointType','NoFill','point','ICommandService','IConfigService','getInkPenPreviewModel','decorate','packageName','DependentOn','IInkHostAdapterService','insertInkPenAnchorAt','start','beginInkMode','24pKEoeJ','getOwnPropertyDescriptor','min','opacity','free','abs','SolidFill','right','UNIVER_UNKNOWN','222476JhERDi','@univerjs-pro/ink','smooth','ShapeFillEnum','norm','call','_injector','findClosestInkPenHandle','createCustomShape','convertBrushModelToPenModel','merge','ink.operation.start','anchors','out','distance','indexOf','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SolidLine','round','1695474KRWVnP','setInkPenAnchorPointType','anchor','827255kHoaDU','forEach','max','segmentIndex','toStringTag','1017855diMTTQ','get','UniverInstanceType','constructor','3468144dRZRSw'];_0x3596=function(){return _0x2b7292;};return _0x3596();}function _(_0x245313,_0x283f5d){const _0x5aa7cb=_0x11e230;if(_0x245313[_0x5aa7cb(0x141)]<=0x2)return _0x245313[_0x5aa7cb(0x153)](i);let _0x51f414=0x0,_0xd26f9=0x0,_0x1a3ab=_0x245313[0x0],_0x1dbacf=_0x245313[_0x245313[_0x5aa7cb(0x141)]-0x1],_0x290c06=_0x283f5d*_0x283f5d;for(let _0x13c687=0x1;_0x13c687<_0x245313[_0x5aa7cb(0x141)]-0x1;_0x13c687++){let _0x462570=te(_0x245313[_0x13c687],_0x1a3ab,_0x1dbacf);_0x462570>_0x51f414&&(_0x51f414=_0x462570,_0xd26f9=_0x13c687);}if(_0x51f414<=_0x290c06)return[i(_0x1a3ab),i(_0x1dbacf)];let _0x2fab46=_(_0x245313['slice'](0x0,_0xd26f9+0x1),_0x283f5d),_0x53a3fc=_(_0x245313['slice'](_0xd26f9),_0x283f5d);return[..._0x2fab46[_0x5aa7cb(0x154)](0x0,-0x1),..._0x53a3fc];}function ne(_0x2de056,_0x1f579e){let _0x47cb86=_0x2de056[_0x1f579e],_0x2430aa=_0x2de056[_0x1f579e+0x1],_0x44c133=_0x2de056[_0x1f579e-0x1]??_0x47cb86;return{'x':_0x47cb86['x']+(_0x2430aa['x']-_0x44c133['x'])/0x6,'y':_0x47cb86['y']+(_0x2430aa['y']-_0x44c133['y'])/0x6};}function v(_0xf69722,_0x44afd9){let _0x21132d=_0xf69722[_0x44afd9],_0x5c1957=_0xf69722[_0x44afd9-0x1],_0x1ae9ef=_0xf69722[_0x44afd9+0x1]??_0x21132d;return{'x':_0x21132d['x']-(_0x1ae9ef['x']-_0x5c1957['x'])/0x6,'y':_0x21132d['y']-(_0x1ae9ef['y']-_0x5c1957['y'])/0x6};}function y(_0x2d1e54,_0x2a3c13){const _0x2e3990=_0x11e230;let _0xf5d078=_0x2d1e54[_0x2e3990(0x177)][_0x2a3c13],_0x206fa9=_0x2d1e54[_0x2e3990(0x177)][_0x2a3c13-0x1]??(_0x2d1e54[_0x2e3990(0x1a3)]?_0x2d1e54['anchors'][_0x2d1e54[_0x2e3990(0x177)][_0x2e3990(0x141)]-0x1]:null),_0x42b1c4=_0x2d1e54[_0x2e3990(0x177)][_0x2a3c13+0x1]??(_0x2d1e54[_0x2e3990(0x1a3)]?_0x2d1e54[_0x2e3990(0x177)][0x0]:null),_0xbff2a5=_0x206fa9&&_0x42b1c4?l({'x':_0x42b1c4['x']-_0x206fa9['x'],'y':_0x42b1c4['y']-_0x206fa9['y']}):_0x42b1c4?l({'x':_0x42b1c4['x']-_0xf5d078['x'],'y':_0x42b1c4['y']-_0xf5d078['y']}):_0x206fa9?l({'x':_0xf5d078['x']-_0x206fa9['x'],'y':_0xf5d078['y']-_0x206fa9['y']}):{'x':0x1,'y':0x0},_0x10307b=_0x206fa9&&_0x42b1c4?Math[_0x2e3990(0x183)](0x32,c(_0x206fa9,_0x42b1c4)/0x4):0x32;return{'in':{'x':_0xf5d078['x']-_0xbff2a5['x']*_0x10307b,'y':_0xf5d078['y']-_0xbff2a5['y']*_0x10307b},'out':{'x':_0xf5d078['x']+_0xbff2a5['x']*_0x10307b,'y':_0xf5d078['y']+_0xbff2a5['y']*_0x10307b}};}function b(_0x323f40,_0x1c3eae){const _0x4234de=_0x11e230;let _0xe1bf35=_0x323f40[_0x1c3eae],_0x4cfec4=_0x1c3eae==='in'?_0x4234de(0x178):'in',_0x69fda8=_0x323f40[_0x4cfec4];if(_0xe1bf35){if(_0x323f40[_0x4234de(0x155)]===_0x4234de(0x196)){_0x323f40[_0x4cfec4]=u(_0x323f40,_0xe1bf35);return;}_0x323f40[_0x4234de(0x155)]==='smooth'&&(_0x323f40[_0x4cfec4]=u(_0x323f40,_0xe1bf35,_0x69fda8?c(_0x323f40,_0x69fda8):c(_0x323f40,_0xe1bf35)));}}function x(_0xcec411,_0x20d422){const _0xc55b9b=_0x11e230;let _0x3fddf6=o(_0xcec411);return!_0x20d422||_0x3fddf6['closed']||_0x3fddf6[_0xc55b9b(0x177)][_0xc55b9b(0x141)]===0x0||_0x3fddf6[_0xc55b9b(0x177)][_0xc55b9b(0x144)]({'id':'__ink-preview-anchor__','x':_0x20d422['x'],'y':_0x20d422['y'],'pointType':'corner'}),_0x3fddf6;}function re(_0x1d6d5b,_0x48a961={}){const _0x3673ca=_0x11e230;let _0x26be13=Math['max'](0x0,_0x48a961['tolerance']??Math['max'](0x4,_0x1d6d5b[_0x3673ca(0x14f)]*0.35)),_0x118c17=_0x48a961[_0x3673ca(0x135)]??(_0x335094=>'ink-centerline-'+_0x335094),_0x5718a7=_(_0x1d6d5b['points'],_0x26be13),_0x4808cc=_0x5718a7['map']((_0x482362,_0xa53d06)=>({'id':_0x118c17(_0xa53d06),'x':_0x482362['x'],'y':_0x482362['y'],'pointType':_0x3673ca(0x166)}));for(let _0x23f331=0x0;_0x23f331<_0x4808cc[_0x3673ca(0x141)]-0x1;_0x23f331++)_0x4808cc[_0x23f331][_0x3673ca(0x178)]=ne(_0x5718a7,_0x23f331),_0x4808cc[_0x23f331+0x1]['in']=v(_0x5718a7,_0x23f331+0x1);return{'kind':_0x3673ca(0x18e),'closed':!0x1,'anchors':_0x4808cc};}function ie(_0x32f5a0,_0x104e31,_0x4f5fa0){const _0x453ddc=_0x11e230;let _0x5f41a5=null,_0x51490a=[_0x453ddc(0x180),'in',_0x453ddc(0x178)];return _0x32f5a0['anchors'][_0x453ddc(0x182)]((_0x564c89,_0x4bb18e)=>{_0x51490a['forEach'](_0x2277c1=>{const _0x37845d=_0x3b57;if(!p(_0x32f5a0,_0x4bb18e,_0x2277c1))return;let _0x1f8435=ee(_0x564c89,_0x2277c1);if(!_0x1f8435)return;let _0x4a2ace=c(_0x104e31,_0x1f8435);_0x4a2ace>_0x4f5fa0||_0x5f41a5&&_0x4a2ace>=_0x5f41a5[_0x37845d(0x179)]||(_0x5f41a5={'handle':{'kind':_0x2277c1,'anchorId':_0x564c89['id']},'point':i(_0x1f8435),'distance':_0x4a2ace});});}),_0x5f41a5;}function S(_0x4e7f5d,_0x1a2844,_0x431ee0){const _0x402151=_0x11e230;let _0x90d000=null,_0x3e8b1c=_0x4e7f5d[_0x402151(0x1a3)]?_0x4e7f5d['anchors'][_0x402151(0x141)]:Math['max'](0x0,_0x4e7f5d[_0x402151(0x177)][_0x402151(0x141)]-0x1);for(let _0x1580ad=0x0;_0x1580ad<_0x3e8b1c;_0x1580ad++){let _0x3c79af=f(_0x4e7f5d,_0x1580ad);if(!_0x3c79af)continue;let _0x387af0=m(_0x3c79af,0x0);for(let _0x1e398c=0x1;_0x1e398c<=0x20;_0x1e398c++){let _0x1302ec=m(_0x3c79af,_0x1e398c/0x20),_0x571d66=g(_0x1a2844,_0x387af0,_0x1302ec),_0x238dce=(_0x1e398c-0x1+_0x571d66[_0x402151(0x198)])/0x20;(!_0x90d000||_0x571d66['distance']<_0x90d000['distance'])&&(_0x90d000={'segmentIndex':_0x1580ad,'t':_0x238dce,'point':_0x571d66[_0x402151(0x157)],'distance':_0x571d66[_0x402151(0x179)]}),_0x387af0=_0x1302ec;}}return _0x90d000&&_0x90d000[_0x402151(0x179)]<=_0x431ee0?_0x90d000:null;}function C(_0x9554c5,_0xa1928f,_0x5aa281){const _0x4e6197=_0x11e230;let _0x7acf09=o(_0x9554c5),_0x1f2d8b=d(_0x7acf09,_0xa1928f[_0x4e6197(0x184)]),_0x3a04c6=f(_0x7acf09,_0xa1928f[_0x4e6197(0x184)]);if(!_0x1f2d8b||!_0x3a04c6)return _0x7acf09;let _0x164228=h(_0x3a04c6,Math[_0x4e6197(0x183)](0x0,Math[_0x4e6197(0x164)](0x1,_0xa1928f['t']))),_0x398ed9={'id':_0x5aa281(),'x':_0x164228[_0x4e6197(0x195)][0x3]['x'],'y':_0x164228[_0x4e6197(0x195)][0x3]['y'],'in':i(_0x164228['left'][0x2]),'out':i(_0x164228[_0x4e6197(0x169)][0x1]),'pointType':_0x4e6197(0x166)};return _0x7acf09[_0x4e6197(0x177)][_0x1f2d8b[_0x4e6197(0x1a1)]]['out']=i(_0x164228[_0x4e6197(0x195)][0x1]),_0x7acf09['anchors'][_0x1f2d8b['endIndex']]['in']=i(_0x164228[_0x4e6197(0x169)][0x2]),_0x7acf09[_0x4e6197(0x177)][_0x4e6197(0x146)](_0x1f2d8b[_0x4e6197(0x1a1)]+0x1,0x0,_0x398ed9),_0x7acf09;}function w(_0x3a830b,_0x2d3696){const _0x2a6fb9=_0x11e230;let _0x3927f2=o(_0x3a830b);return _0x3927f2[_0x2a6fb9(0x177)]=_0x3927f2[_0x2a6fb9(0x177)]['filter'](_0x5df7ed=>_0x5df7ed['id']!==_0x2d3696),_0x3927f2[_0x2a6fb9(0x1a3)]&&_0x3927f2[_0x2a6fb9(0x177)][_0x2a6fb9(0x141)]<0x3&&(_0x3927f2[_0x2a6fb9(0x1a3)]=!0x1),_0x3927f2;}function T(_0x347be9,_0x35c286,_0x1c6797){const _0x323db1=_0x11e230;let _0x99d1d5=o(_0x347be9),_0x1d2def=_0x99d1d5[_0x323db1(0x177)][_0x323db1(0x19a)](_0x264f46=>_0x264f46['id']===_0x35c286),_0x1ac1c4=_0x99d1d5[_0x323db1(0x177)][_0x1d2def];if(!_0x1ac1c4)return _0x99d1d5;if(_0x1ac1c4[_0x323db1(0x155)]=_0x1c6797,_0x1c6797===_0x323db1(0x190))return delete _0x1ac1c4['in'],delete _0x1ac1c4[_0x323db1(0x178)],_0x99d1d5;let _0x1751d9=y(_0x99d1d5,_0x1d2def);if(_0x1ac1c4['in']=_0x1ac1c4['in']?i(_0x1ac1c4['in']):_0x1751d9['in'],_0x1ac1c4['out']=_0x1ac1c4[_0x323db1(0x178)]?i(_0x1ac1c4[_0x323db1(0x178)]):_0x1751d9[_0x323db1(0x178)],_0x1c6797===_0x323db1(0x196)){let _0x95d7c=Math[_0x323db1(0x183)](c(_0x1ac1c4,_0x1ac1c4['in']),c(_0x1ac1c4,_0x1ac1c4[_0x323db1(0x178)]),0x32),_0x194ecb=l({'x':_0x1ac1c4[_0x323db1(0x178)]['x']-_0x1ac1c4['x'],'y':_0x1ac1c4['out']['y']-_0x1ac1c4['y']});_0x1ac1c4[_0x323db1(0x178)]={'x':_0x1ac1c4['x']+_0x194ecb['x']*_0x95d7c,'y':_0x1ac1c4['y']+_0x194ecb['y']*_0x95d7c},_0x1ac1c4['in']={'x':_0x1ac1c4['x']-_0x194ecb['x']*_0x95d7c,'y':_0x1ac1c4['y']-_0x194ecb['y']*_0x95d7c};}else _0x1c6797===_0x323db1(0x16d)&&b(_0x1ac1c4,'out');return _0x99d1d5;}function E(_0x29ff3a,_0x38883e){const _0x3b8747=_0x11e230;let _0x16fdf2=_0x29ff3a[_0x3b8747(0x177)]['find'](_0x27cc23=>_0x27cc23['id']===_0x38883e),_0x4b9718=(_0x16fdf2==null?void 0x0:_0x16fdf2['pointType'])??_0x3b8747(0x190);return T(_0x29ff3a,_0x38883e,_0x4b9718===_0x3b8747(0x190)?'smooth':_0x4b9718===_0x3b8747(0x16d)?_0x3b8747(0x196):_0x4b9718===_0x3b8747(0x196)?_0x3b8747(0x166):'corner');}function ae(_0x129ba7,_0x5592fa,_0x21c0bd){const _0x3b350e=_0x11e230;let _0x57d93d=o(_0x129ba7),_0x182566=_0x57d93d[_0x3b350e(0x177)][_0x3b350e(0x150)](_0x1ada7c=>_0x1ada7c['id']===_0x5592fa[_0x3b350e(0x145)]);if(!_0x182566)return _0x57d93d;if(_0x5592fa[_0x3b350e(0x19c)]===_0x3b350e(0x180)){let _0x15b13a={'x':_0x21c0bd['x']-_0x182566['x'],'y':_0x21c0bd['y']-_0x182566['y']};return _0x182566['x']=_0x21c0bd['x'],_0x182566['y']=_0x21c0bd['y'],_0x182566['in']&&={'x':_0x182566['in']['x']+_0x15b13a['x'],'y':_0x182566['in']['y']+_0x15b13a['y']},_0x182566[_0x3b350e(0x178)]&&={'x':_0x182566[_0x3b350e(0x178)]['x']+_0x15b13a['x'],'y':_0x182566['out']['y']+_0x15b13a['y']},_0x57d93d;}return _0x182566[_0x5592fa['kind']]=i(_0x21c0bd),_0x182566['pointType']===_0x3b350e(0x190)&&(_0x182566[_0x3b350e(0x155)]='free'),b(_0x182566,_0x5592fa[_0x3b350e(0x19c)]),_0x57d93d;}const D=1e-9;function O(_0x3a4fcd){let _0x4d3766=Math['round'](_0x3a4fcd*0x2710)/0x2710;return Object['is'](_0x4d3766,-0x0)?'0':String(_0x4d3766);}function k(_0xaa7310){return O(_0xaa7310['x'])+'\x20'+O(_0xaa7310['y']);}function A(_0xa7b288,_0x5b73d9){return{'x':_0xa7b288['x']-_0x5b73d9['x'],'y':_0xa7b288['y']-_0x5b73d9['y']};}function j(_0x5dbdf9,_0x39f22f,_0x41c47c,_0x5e7ae5,_0x126653){let _0x50e60b=0x1-_0x126653;return{'x':_0x50e60b*_0x50e60b*_0x50e60b*_0x5dbdf9['x']+0x3*_0x50e60b*_0x50e60b*_0x126653*_0x39f22f['x']+0x3*_0x50e60b*_0x126653*_0x126653*_0x41c47c['x']+_0x126653*_0x126653*_0x126653*_0x5e7ae5['x'],'y':_0x50e60b*_0x50e60b*_0x50e60b*_0x5dbdf9['y']+0x3*_0x50e60b*_0x50e60b*_0x126653*_0x39f22f['y']+0x3*_0x50e60b*_0x126653*_0x126653*_0x41c47c['y']+_0x126653*_0x126653*_0x126653*_0x5e7ae5['y']};}function M(_0x4a7daa,_0xb3dcc3,_0x3fe32d,_0x3e161e){const _0x347e3c=_0x11e230;let _0x133630=-_0x4a7daa+0x3*_0xb3dcc3-0x3*_0x3fe32d+_0x3e161e,_0x33c7df=0x3*_0x4a7daa-0x6*_0xb3dcc3+0x3*_0x3fe32d,_0x22b1f3=-0x3*_0x4a7daa+0x3*_0xb3dcc3,_0x40275c=[];if(Math[_0x347e3c(0x167)](_0x133630)<D){if(Math[_0x347e3c(0x167)](_0x33c7df)<D)return _0x40275c;let _0x34008e=-_0x22b1f3/(0x2*_0x33c7df);return _0x34008e>0x0&&_0x34008e<0x1&&_0x40275c[_0x347e3c(0x144)](_0x34008e),_0x40275c;}let _0x473e67=_0x33c7df*_0x33c7df-0x3*_0x133630*_0x22b1f3;if(_0x473e67<0x0)return _0x40275c;let _0x5af240=Math[_0x347e3c(0x13d)](Math[_0x347e3c(0x183)](0x0,_0x473e67)),_0x2aa68f=(-_0x33c7df+_0x5af240)/(0x3*_0x133630),_0x5f4b84=(-_0x33c7df-_0x5af240)/(0x3*_0x133630);return _0x2aa68f>0x0&&_0x2aa68f<0x1&&_0x40275c[_0x347e3c(0x144)](_0x2aa68f),_0x5f4b84>0x0&&_0x5f4b84<0x1&&Math[_0x347e3c(0x167)](_0x5f4b84-_0x2aa68f)>D&&_0x40275c[_0x347e3c(0x144)](_0x5f4b84),_0x40275c;}function N(_0x38052e,_0x56d90d,_0x332bdc,_0x49fbeb,_0x17546c){const _0xfa1d7a=_0x11e230;_0x38052e['push'](_0x56d90d,_0x17546c),new Set([...M(_0x56d90d['x'],_0x332bdc['x'],_0x49fbeb['x'],_0x17546c['x']),...M(_0x56d90d['y'],_0x332bdc['y'],_0x49fbeb['y'],_0x17546c['y'])])[_0xfa1d7a(0x182)](_0x1b67b5=>{const _0x2b01f1=_0xfa1d7a;_0x38052e[_0x2b01f1(0x144)](j(_0x56d90d,_0x332bdc,_0x49fbeb,_0x17546c,_0x1b67b5));});}function P(_0x229ac8){const _0x28808a=_0x11e230;let _0x84e177=_0x229ac8[_0x28808a(0x177)];if(_0x84e177['length']<=0x1)return _0x84e177;let _0x3e81cf=[];for(let _0x5cc5c3=0x1;_0x5cc5c3<_0x84e177[_0x28808a(0x141)];_0x5cc5c3++){let _0x17b38a=_0x84e177[_0x5cc5c3-0x1],_0x3804d1=_0x84e177[_0x5cc5c3];N(_0x3e81cf,_0x17b38a,_0x17b38a[_0x28808a(0x178)]??_0x17b38a,_0x3804d1['in']??_0x3804d1,_0x3804d1);}if(_0x229ac8[_0x28808a(0x1a3)]&&_0x84e177[_0x28808a(0x141)]>0x1){let _0x16d93d=_0x84e177[_0x84e177[_0x28808a(0x141)]-0x1],_0x37f7e2=_0x84e177[0x0];N(_0x3e81cf,_0x16d93d,_0x16d93d[_0x28808a(0x178)]??_0x16d93d,_0x37f7e2['in']??_0x37f7e2,_0x37f7e2);}return _0x3e81cf;}function F(_0x14c8ec){const _0x3bd2a3=_0x11e230;let _0x6e99e3=_0x14c8ec['points'];if(_0x6e99e3['length']<=0x1)return _0x6e99e3;let _0x44c7dd=[];for(let _0x328966=0x0;_0x328966<_0x6e99e3[_0x3bd2a3(0x141)]-0x1;_0x328966++){let _0x32c04b=_0x6e99e3[_0x328966],_0x462d56=_0x6e99e3[_0x328966+0x1],_0x26bd1e=_0x6e99e3[_0x328966-0x1]??_0x32c04b,_0x80f487=_0x6e99e3[_0x328966+0x2]??_0x462d56;N(_0x44c7dd,_0x32c04b,{'x':_0x32c04b['x']+(_0x462d56['x']-_0x26bd1e['x'])/0x6,'y':_0x32c04b['y']+(_0x462d56['y']-_0x26bd1e['y'])/0x6},{'x':_0x462d56['x']-(_0x80f487['x']-_0x32c04b['x'])/0x6,'y':_0x462d56['y']-(_0x80f487['y']-_0x32c04b['y'])/0x6},_0x462d56);}return _0x44c7dd;}function I(_0x36ff1f){const _0x8a1be5=_0x11e230;return _0x36ff1f[_0x8a1be5(0x19c)]===_0x8a1be5(0x18e)?P(_0x36ff1f):F(_0x36ff1f);}function L(_0x13e55a){const _0x5cdee9=_0x11e230;let _0x226108=Math[_0x5cdee9(0x17d)](_0x13e55a*0x2710)/0x2710;return Object['is'](_0x226108,-0x0)?0x0:_0x226108;}function R(_0x574259){const _0x42df35=_0x11e230;let _0x3e76cd=I(_0x574259);if(_0x3e76cd[_0x42df35(0x141)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x49f7ab=Math[_0x42df35(0x164)](..._0x3e76cd[_0x42df35(0x153)](_0x28314d=>_0x28314d['x'])),_0x3d5b1c=Math[_0x42df35(0x164)](..._0x3e76cd['map'](_0x3ee210=>_0x3ee210['y'])),_0x3530bf=Math[_0x42df35(0x183)](..._0x3e76cd['map'](_0xc332e7=>_0xc332e7['x'])),_0x431018=Math[_0x42df35(0x183)](..._0x3e76cd[_0x42df35(0x153)](_0x1d7c20=>_0x1d7c20['y']));return{'left':L(_0x49f7ab),'top':L(_0x3d5b1c),'width':L(Math[_0x42df35(0x183)](0x1,_0x3530bf-_0x49f7ab)),'height':L(Math[_0x42df35(0x183)](0x1,_0x431018-_0x3d5b1c))};}function z(_0x5dd8d3,_0x1a9f6a){const _0xb30fb3=_0x11e230;let _0x4f5fc3=_0x5dd8d3[_0xb30fb3(0x177)];if(_0x4f5fc3[_0xb30fb3(0x141)]===0x0)return'';let _0x347614=['M\x20'+k(A(_0x4f5fc3[0x0],_0x1a9f6a))];for(let _0x3ec420=0x1;_0x3ec420<_0x4f5fc3[_0xb30fb3(0x141)];_0x3ec420++){let _0x585338=_0x4f5fc3[_0x3ec420-0x1],_0x52dd72=_0x4f5fc3[_0x3ec420],_0x3002bb=_0x585338['out']??_0x585338,_0x2f3e15=_0x52dd72['in']??_0x52dd72;_0x347614['push']('C\x20'+k(A(_0x3002bb,_0x1a9f6a))+'\x20'+k(A(_0x2f3e15,_0x1a9f6a))+'\x20'+k(A(_0x52dd72,_0x1a9f6a)));}if(_0x5dd8d3[_0xb30fb3(0x1a3)]&&_0x4f5fc3[_0xb30fb3(0x141)]>0x1){let _0x2aed32=_0x4f5fc3[_0x4f5fc3[_0xb30fb3(0x141)]-0x1],_0x3b2d07=_0x4f5fc3[0x0],_0x2b1a29=_0x2aed32[_0xb30fb3(0x178)]??_0x2aed32,_0x1c6dba=_0x3b2d07['in']??_0x3b2d07;_0x347614['push']('C\x20'+k(A(_0x2b1a29,_0x1a9f6a))+'\x20'+k(A(_0x1c6dba,_0x1a9f6a))+'\x20'+k(A(_0x3b2d07,_0x1a9f6a))),_0x347614['push']('Z');}return _0x347614[_0xb30fb3(0x13c)]('\x20');}function B(_0x425c29,_0x16a334){const _0x5b5b87=_0x11e230;let _0x491a7b=_0x425c29[_0x5b5b87(0x19b)]['map'](_0xa43558=>A(_0xa43558,_0x16a334));if(_0x491a7b['length']===0x0)return'';if(_0x491a7b['length']===0x1)return'M\x20'+k(_0x491a7b[0x0]);let _0xf3febd=['M\x20'+k(_0x491a7b[0x0])];for(let _0x4037a2=0x0;_0x4037a2<_0x491a7b[_0x5b5b87(0x141)]-0x1;_0x4037a2++){let _0x20093f=_0x491a7b[_0x4037a2],_0x3330a9=_0x491a7b[_0x4037a2+0x1],_0x5abd9a=_0x491a7b[_0x4037a2-0x1]??_0x20093f,_0x44e024=_0x491a7b[_0x4037a2+0x2]??_0x3330a9,_0x2b2043={'x':_0x20093f['x']+(_0x3330a9['x']-_0x5abd9a['x'])/0x6,'y':_0x20093f['y']+(_0x3330a9['y']-_0x5abd9a['y'])/0x6},_0x1135f8={'x':_0x3330a9['x']-(_0x44e024['x']-_0x20093f['x'])/0x6,'y':_0x3330a9['y']-(_0x44e024['y']-_0x20093f['y'])/0x6};_0xf3febd[_0x5b5b87(0x144)]('C\x20'+k(_0x2b2043)+'\x20'+k(_0x1135f8)+'\x20'+k(_0x3330a9));}return _0xf3febd[_0x5b5b87(0x13c)]('\x20');}function V(_0x24d13a,_0x525d3a){const _0x295651=_0x11e230;return _0x24d13a[_0x295651(0x19c)]===_0x295651(0x18e)?z(_0x24d13a,_0x525d3a):B(_0x24d13a,_0x525d3a);}function H(_0x5c8e8c,_0xdd1c3e){const _0x50d35e=_0x11e230;return _0xdd1c3e!=null&&_0xdd1c3e[_0x50d35e(0x134)]?_0xdd1c3e[_0x50d35e(0x134)]:_0x5c8e8c[_0x50d35e(0x19c)]==='pen'?'#f54a45':_0x5c8e8c['color'];}function U(_0x25be3a,_0x5203f5){const _0x5911e4=_0x11e230;return(_0x5203f5==null?void 0x0:_0x5203f5[_0x5911e4(0x14f)])===void 0x0?_0x25be3a['kind']==='pen'?0x2:_0x25be3a['width']:_0x5203f5['width'];}function W(_0xf93871,_0x5aaa50){const _0x55c0a9=_0x11e230;return(_0x5aaa50==null?void 0x0:_0x5aaa50[_0x55c0a9(0x165)])===void 0x0?_0xf93871[_0x55c0a9(0x19c)]===_0x55c0a9(0x18e)?void 0x0:_0xf93871[_0x55c0a9(0x165)]:_0x5aaa50[_0x55c0a9(0x165)];}function oe(_0x8ee1b0,_0x269a84){const _0x46760e=_0x11e230;let _0x544078=R(_0x8ee1b0),_0x3bc30e=V(_0x8ee1b0,{'x':_0x544078['left'],'y':_0x544078[_0x46760e(0x139)]}),_0x576d5c=_0x8ee1b0['kind']===_0x46760e(0x18e)&&_0x8ee1b0['closed'],_0x222271=_0x269a84==null?void 0x0:_0x269a84['fillColor'];return{'shapeType':e['ShapeTypeEnum'][_0x46760e(0x1a5)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x544078[_0x46760e(0x14f)],'h':_0x544078['height'],'fill':_0x576d5c?_0x46760e(0x16f):_0x46760e(0x19f),'stroke':!0x0,'data':_0x3bc30e,'dataArray':K(_0x8ee1b0,{'x':_0x544078[_0x46760e(0x195)],'y':_0x544078['top']})}]},'fill':_0x576d5c&&_0x222271?{'color':_0x222271,'fillType':e[_0x46760e(0x16e)][_0x46760e(0x168)]}:{'fillType':e[_0x46760e(0x16e)][_0x46760e(0x156)]},'stroke':{'color':H(_0x8ee1b0,_0x269a84),'width':U(_0x8ee1b0,_0x269a84),'opacity':W(_0x8ee1b0,_0x269a84),'lineStrokeType':e[_0x46760e(0x13a)][_0x46760e(0x17c)],'capType':e[_0x46760e(0x194)]['Round'],'lineJoinType':e[_0x46760e(0x137)]['Round']}};}function G(_0x4b637c,_0x3f4b87){return{'x':_0x4b637c['x']-_0x3f4b87['x'],'y':_0x4b637c['y']-_0x3f4b87['y']};}function K(_0x39092e,_0x5dd828){const _0x34c13e=_0x11e230;if(_0x39092e[_0x34c13e(0x19c)]===_0x34c13e(0x18e)){let _0x5a5cbb=_0x39092e[_0x34c13e(0x177)];if(_0x5a5cbb[_0x34c13e(0x141)]===0x0)return[];let _0x345229=G(_0x5a5cbb[0x0],_0x5dd828),_0x47200b=[{'command':'M','points':[_0x345229['x'],_0x345229['y']]}];for(let _0x1c9ccc=0x1;_0x1c9ccc<_0x5a5cbb['length'];_0x1c9ccc++){let _0xca82e6=_0x5a5cbb[_0x1c9ccc-0x1],_0x1f6ea7=_0x5a5cbb[_0x1c9ccc],_0x3119e1=G(_0xca82e6['out']??_0xca82e6,_0x5dd828),_0x30e2ae=G(_0x1f6ea7['in']??_0x1f6ea7,_0x5dd828),_0x540d25=G(_0x1f6ea7,_0x5dd828);_0x47200b[_0x34c13e(0x144)]({'command':'C','points':[_0x3119e1['x'],_0x3119e1['y'],_0x30e2ae['x'],_0x30e2ae['y'],_0x540d25['x'],_0x540d25['y']]});}if(_0x39092e['closed']&&_0x5a5cbb['length']>0x1){let _0x1ebcc0=_0x5a5cbb[_0x5a5cbb['length']-0x1],_0x338623=_0x5a5cbb[0x0],_0x57300a=G(_0x1ebcc0['out']??_0x1ebcc0,_0x5dd828),_0x507554=G(_0x338623['in']??_0x338623,_0x5dd828),_0x36dc5a=G(_0x338623,_0x5dd828);_0x47200b[_0x34c13e(0x144)]({'command':'C','points':[_0x57300a['x'],_0x57300a['y'],_0x507554['x'],_0x507554['y'],_0x36dc5a['x'],_0x36dc5a['y']]}),_0x47200b[_0x34c13e(0x144)]({'command':'z','points':[]});}return _0x47200b;}let _0x46f42e=_0x39092e[_0x34c13e(0x19b)][_0x34c13e(0x153)](_0x300cb1=>G(_0x300cb1,_0x5dd828));if(_0x46f42e[_0x34c13e(0x141)]===0x0)return[];let _0x2e54f5=[{'command':'M','points':[_0x46f42e[0x0]['x'],_0x46f42e[0x0]['y']]}];for(let _0x119d1d=0x0;_0x119d1d<_0x46f42e[_0x34c13e(0x141)]-0x1;_0x119d1d++){let _0x13d36f=_0x46f42e[_0x119d1d],_0x39c917=_0x46f42e[_0x119d1d+0x1],_0x549e34=_0x46f42e[_0x119d1d-0x1]??_0x13d36f,_0x1d1bae=_0x46f42e[_0x119d1d+0x2]??_0x39c917,_0x5b9bbe={'x':_0x13d36f['x']+(_0x39c917['x']-_0x549e34['x'])/0x6,'y':_0x13d36f['y']+(_0x39c917['y']-_0x549e34['y'])/0x6},_0x3cbbdb={'x':_0x39c917['x']-(_0x1d1bae['x']-_0x13d36f['x'])/0x6,'y':_0x39c917['y']-(_0x1d1bae['y']-_0x13d36f['y'])/0x6};_0x2e54f5['push']({'command':'C','points':[_0x5b9bbe['x'],_0x5b9bbe['y'],_0x3cbbdb['x'],_0x3cbbdb['y'],_0x39c917['x'],_0x39c917['y']]});}return _0x2e54f5;}function q(_0xabd2d1){const _0x4cf729=_0x11e230;let {model:_0xef64c0,sourceModel:_0x534d61=_0xef64c0,style:_0x2f77ac}=_0xabd2d1,_0x215fbb=_0xabd2d1['tool']??_0xef64c0[_0x4cf729(0x19c)],_0x5eb588=R(_0xef64c0),_0x261593=_0xef64c0[_0x4cf729(0x19c)]==='pen'&&_0x215fbb!==_0x4cf729(0x18e)?_0xef64c0:void 0x0;return{'transform':{..._0x5eb588,'rotation':0x0},'shapeData':oe(_0xef64c0,_0x2f77ac),'ink':{'version':0x1,'tool':_0x215fbb,'sourceModel':_0x534d61,..._0x261593?{'editModel':_0x261593}:{},'normalizedBounds':_0x5eb588}};}var se=_0x11e230(0x16c),ce=_0x11e230(0x142);function J(_0x34b3c9){'@babel/helpers - typeof';const _0x34a562=_0x11e230;return J=typeof Symbol==_0x34a562(0x143)&&typeof Symbol[_0x34a562(0x192)]==_0x34a562(0x14c)?function(_0x215d2d){return typeof _0x215d2d;}:function(_0x399bf5){const _0x2509ca=_0x34a562;return _0x399bf5&&typeof Symbol==_0x2509ca(0x143)&&_0x399bf5[_0x2509ca(0x189)]===Symbol&&_0x399bf5!==Symbol['prototype']?_0x2509ca(0x14c):typeof _0x399bf5;},J(_0x34b3c9);}function le(_0x2ece02,_0x36de46){const _0x71a844=_0x11e230;if(J(_0x2ece02)!=_0x71a844(0x18b)||!_0x2ece02)return _0x2ece02;var _0x2ccb87=_0x2ece02[Symbol['toPrimitive']];if(_0x2ccb87!==void 0x0){var _0x45f33c=_0x2ccb87[_0x71a844(0x170)](_0x2ece02,_0x36de46||_0x71a844(0x13b));if(J(_0x45f33c)!=_0x71a844(0x18b))return _0x45f33c;throw TypeError(_0x71a844(0x17b));}return(_0x36de46===_0x71a844(0x147)?String:Number)(_0x2ece02);}function ue(_0x1453ad){const _0xd33ed5=_0x11e230;var _0x163e5b=le(_0x1453ad,_0xd33ed5(0x147));return J(_0x163e5b)==_0xd33ed5(0x14c)?_0x163e5b:_0x163e5b+'';}function Y(_0x16dfd5,_0x583b8f,_0x1c9a60){const _0xb40ba7=_0x11e230;return(_0x583b8f=ue(_0x583b8f))in _0x16dfd5?Object[_0xb40ba7(0x18d)](_0x16dfd5,_0x583b8f,{'value':_0x1c9a60,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x16dfd5[_0x583b8f]=_0x1c9a60,_0x16dfd5;}const X=(0x0,n['createIdentifier'])(_0x11e230(0x136));var de=class{constructor(){const _0x5d9976=_0x11e230;Y(this,_0x5d9976(0x193),[]);}[_0x11e230(0x199)](_0x162174){const _0xc6e958=_0x11e230;return this['_adapters'][_0xc6e958(0x144)](_0x162174),(0x0,n[_0xc6e958(0x151)])(()=>{const _0x3a20ce=_0xc6e958;let _0x41dfac=this[_0x3a20ce(0x193)][_0x3a20ce(0x17a)](_0x162174);_0x41dfac>=0x0&&this[_0x3a20ce(0x193)][_0x3a20ce(0x146)](_0x41dfac,0x1);});}[_0x11e230(0x161)](_0x544d51){const _0x479cef=_0x11e230;for(let _0x79e212 of this['_adapters'])if(_0x79e212[_0x479cef(0x161)](_0x544d51))return!0x0;return!0x1;}async[_0x11e230(0x173)](_0x319406){const _0x3b0bf5=_0x11e230;for(let _0x30dd7e of this[_0x3b0bf5(0x193)])if(_0x30dd7e[_0x3b0bf5(0x173)]&&await _0x30dd7e[_0x3b0bf5(0x173)](_0x319406))return!0x0;return!0x1;}};const fe={'id':_0x11e230(0x176),'type':n[_0x11e230(0x1a6)]['OPERATION'],'handler':(_0x5f585e,_0xe21dfc)=>_0xe21dfc?_0x5f585e[_0x11e230(0x187)](X)['beginInkMode'](_0xe21dfc):!0x1},Z={};function Q(_0x411bc5,_0x3ec34d){return function(_0x29737d,_0x31651a){_0x3ec34d(_0x29737d,_0x31651a,_0x411bc5);};}function pe(_0x2a3939,_0x42268a,_0x2b0ca9,_0x52eb90){const _0x4b6c8b=_0x11e230;var _0x903c56=arguments['length'],_0x1dfdaa=_0x903c56<0x3?_0x42268a:_0x52eb90===null?_0x52eb90=Object[_0x4b6c8b(0x163)](_0x42268a,_0x2b0ca9):_0x52eb90,_0x427e8a;if(typeof Reflect=='object'&&typeof Reflect[_0x4b6c8b(0x15b)]==_0x4b6c8b(0x143))_0x1dfdaa=Reflect['decorate'](_0x2a3939,_0x42268a,_0x2b0ca9,_0x52eb90);else{for(var _0x2b1696=_0x2a3939['length']-0x1;_0x2b1696>=0x0;_0x2b1696--)(_0x427e8a=_0x2a3939[_0x2b1696])&&(_0x1dfdaa=(_0x903c56<0x3?_0x427e8a(_0x1dfdaa):_0x903c56>0x3?_0x427e8a(_0x42268a,_0x2b0ca9,_0x1dfdaa):_0x427e8a(_0x42268a,_0x2b0ca9))||_0x1dfdaa);}return _0x903c56>0x3&&_0x1dfdaa&&Object[_0x4b6c8b(0x18d)](_0x42268a,_0x2b0ca9,_0x1dfdaa),_0x1dfdaa;}let $=class extends n['Plugin']{constructor(_0x5f5447=Z,_0x38d4fd,_0x2d6404,_0x108b61){const _0x198611=_0x11e230;super(),this['_config']=_0x5f5447,this[_0x198611(0x171)]=_0x38d4fd,this[_0x198611(0x14a)]=_0x2d6404,this[_0x198611(0x149)]=_0x108b61;let {..._0x15a8c4}=(0x0,n[_0x198611(0x175)])({},Z,this[_0x198611(0x148)]);this['_configService'][_0x198611(0x1a2)](_0x198611(0x14e),_0x15a8c4);}[_0x11e230(0x138)](){const _0xf0c15e=_0x11e230;[[X,{'useClass':de}]][_0xf0c15e(0x182)](_0x215eac=>this[_0xf0c15e(0x171)][_0xf0c15e(0x1a4)](_0x215eac)),this['disposeWithMe'](this[_0xf0c15e(0x14a)][_0xf0c15e(0x13e)](fe));}};Y($,'pluginName','UNIVER_INK_PLUGIN'),Y($,_0x11e230(0x15c),se),Y($,'version',ce),Y($,_0x11e230(0x14b),n[_0x11e230(0x188)][_0x11e230(0x16a)]),$=pe([(0x0,n[_0x11e230(0x15d)])(t['UniverLicensePlugin']),Q(0x1,(0x0,n['Inject'])(n['Injector'])),Q(0x2,n[_0x11e230(0x158)]),Q(0x3,n[_0x11e230(0x159)])],$),exports[_0x11e230(0x15e)]=X,Object[_0x11e230(0x18d)](exports,_0x11e230(0x18f),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildInkCustomShapePayload']=q,exports[_0x11e230(0x174)]=re,exports[_0x11e230(0x19e)]=E,exports[_0x11e230(0x18c)]=w,exports[_0x11e230(0x172)]=ie,exports[_0x11e230(0x197)]=S,exports['getInkModelBounds']=R,exports[_0x11e230(0x15a)]=x,exports[_0x11e230(0x15f)]=C,exports[_0x11e230(0x19d)]=p,exports['moveInkPenAnchorPoint']=ae,exports[_0x11e230(0x17f)]=T;
1
+ const _0x269a64=_0x3421;(function(_0xa8186e,_0x41cd19){const _0x56c9b1=_0x3421,_0x2e6387=_0xa8186e();while(!![]){try{const _0x386ef6=parseInt(_0x56c9b1(0xed))/0x1+-parseInt(_0x56c9b1(0xec))/0x2+parseInt(_0x56c9b1(0x120))/0x3+parseInt(_0x56c9b1(0x10c))/0x4*(parseInt(_0x56c9b1(0x11b))/0x5)+-parseInt(_0x56c9b1(0x144))/0x6*(-parseInt(_0x56c9b1(0x133))/0x7)+-parseInt(_0x56c9b1(0xfc))/0x8+parseInt(_0x56c9b1(0x101))/0x9*(parseInt(_0x56c9b1(0xd2))/0xa);if(_0x386ef6===_0x41cd19)break;else _0x2e6387['push'](_0x2e6387['shift']());}catch(_0xae2f79){_0x2e6387['push'](_0x2e6387['shift']());}}}(_0x26a1,0xa8714),Object[_0x269a64(0x12b)](exports,Symbol[_0x269a64(0xf1)],{'value':'Module'}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x105120){return{'x':_0x105120['x'],'y':_0x105120['y']};}function a(_0x55b8ec){const _0x547f07=_0x269a64;return{..._0x55b8ec,'in':_0x55b8ec['in']?i(_0x55b8ec['in']):void 0x0,'out':_0x55b8ec[_0x547f07(0x148)]?i(_0x55b8ec[_0x547f07(0x148)]):void 0x0};}function o(_0x5233ba){const _0x27e043=_0x269a64;return{'kind':_0x27e043(0xe2),'closed':_0x5233ba[_0x27e043(0x13a)],'anchors':_0x5233ba[_0x27e043(0x13d)]['map'](a)};}function s(_0x30692d,_0x59bde8,_0x4bdf73){return{'x':_0x30692d['x']+(_0x59bde8['x']-_0x30692d['x'])*_0x4bdf73,'y':_0x30692d['y']+(_0x59bde8['y']-_0x30692d['y'])*_0x4bdf73};}function c(_0x23638c,_0x46dfac){const _0x43965e=_0x269a64;return Math[_0x43965e(0x14a)](_0x23638c['x']-_0x46dfac['x'],_0x23638c['y']-_0x46dfac['y']);}function l(_0x13eabb){const _0x54e3a5=_0x269a64;let _0x46a289=Math[_0x54e3a5(0x14a)](_0x13eabb['x'],_0x13eabb['y']);return _0x46a289<r?{'x':0x1,'y':0x0}:{'x':_0x13eabb['x']/_0x46a289,'y':_0x13eabb['y']/_0x46a289};}function u(_0x69d405,_0x3df8ea,_0x36b2df=c(_0x69d405,_0x3df8ea)){let _0xd787f0=l({'x':_0x69d405['x']-_0x3df8ea['x'],'y':_0x69d405['y']-_0x3df8ea['y']});return{'x':_0x69d405['x']+_0xd787f0['x']*_0x36b2df,'y':_0x69d405['y']+_0xd787f0['y']*_0x36b2df};}function d(_0x520357,_0x750295){const _0x13fcbc=_0x269a64;let {anchors:_0x2fc2d4}=_0x520357;return _0x2fc2d4[_0x13fcbc(0xf8)]<0x2||_0x750295<0x0?null:_0x750295<_0x2fc2d4[_0x13fcbc(0xf8)]-0x1?{'startIndex':_0x750295,'endIndex':_0x750295+0x1,'start':_0x2fc2d4[_0x750295],'end':_0x2fc2d4[_0x750295+0x1]}:_0x520357[_0x13fcbc(0x13a)]&&_0x750295===_0x2fc2d4['length']-0x1?{'startIndex':_0x2fc2d4[_0x13fcbc(0xf8)]-0x1,'endIndex':0x0,'start':_0x2fc2d4[_0x2fc2d4[_0x13fcbc(0xf8)]-0x1],'end':_0x2fc2d4[0x0]}:null;}function f(_0x3f2fb7,_0x3141e7){const _0x1e371c=_0x269a64;let _0x5e41e3=d(_0x3f2fb7,_0x3141e7);return _0x5e41e3?[_0x5e41e3[_0x1e371c(0x115)],_0x5e41e3['start']['out']??_0x5e41e3[_0x1e371c(0x115)],_0x5e41e3['end']['in']??_0x5e41e3[_0x1e371c(0x145)],_0x5e41e3['end']]:null;}function ee(_0x2b6dce,_0x2f7c72){const _0x4a922b=_0x269a64;return _0x2f7c72===_0x4a922b(0x12a)?_0x2b6dce:_0x2b6dce[_0x2f7c72]??null;}function p(_0x468924,_0x4f2ca0,_0x67658d){const _0x4b6cfb=_0x269a64;return _0x67658d==='anchor'||_0x468924[_0x4b6cfb(0x13a)]?!0x0:_0x67658d==='in'?_0x4f2ca0>0x0:_0x4f2ca0<_0x468924['anchors'][_0x4b6cfb(0xf8)]-0x1;}function m(_0x20536a,_0x19614f){let [_0x4721b0,_0x83666c,_0x287108,_0xc7bd9b]=_0x20536a,_0x49f434=s(_0x4721b0,_0x83666c,_0x19614f),_0x2714f7=s(_0x83666c,_0x287108,_0x19614f),_0xafe3f0=s(_0x287108,_0xc7bd9b,_0x19614f);return s(s(_0x49f434,_0x2714f7,_0x19614f),s(_0x2714f7,_0xafe3f0,_0x19614f),_0x19614f);}function h(_0x874ad5,_0x59e8e3){let [_0xe0140c,_0x20523e,_0x48201b,_0x9aead2]=_0x874ad5,_0x40cb7b=s(_0xe0140c,_0x20523e,_0x59e8e3),_0xd03713=s(_0x20523e,_0x48201b,_0x59e8e3),_0xa69944=s(_0x48201b,_0x9aead2,_0x59e8e3),_0xfc1d52=s(_0x40cb7b,_0xd03713,_0x59e8e3),_0x1cb42c=s(_0xd03713,_0xa69944,_0x59e8e3),_0x3af63d=s(_0xfc1d52,_0x1cb42c,_0x59e8e3);return{'left':[_0xe0140c,_0x40cb7b,_0xfc1d52,_0x3af63d],'right':[_0x3af63d,_0x1cb42c,_0xa69944,_0x9aead2]};}function g(_0x37ba25,_0x3970a5,_0x515b4a){let _0x48fb3f=_0x515b4a['x']-_0x3970a5['x'],_0x2f3c4e=_0x515b4a['y']-_0x3970a5['y'],_0x84750f=_0x48fb3f*_0x48fb3f+_0x2f3c4e*_0x2f3c4e,_0x33698b=_0x84750f<=r?0x0:Math['max'](0x0,Math['min'](0x1,((_0x37ba25['x']-_0x3970a5['x'])*_0x48fb3f+(_0x37ba25['y']-_0x3970a5['y'])*_0x2f3c4e)/_0x84750f)),_0x1f9534={'x':_0x3970a5['x']+_0x48fb3f*_0x33698b,'y':_0x3970a5['y']+_0x2f3c4e*_0x33698b};return{'point':_0x1f9534,'ratio':_0x33698b,'distance':c(_0x37ba25,_0x1f9534)};}function te(_0x519aec,_0x43cb9d,_0x459685){const _0x395553=_0x269a64;return g(_0x519aec,_0x43cb9d,_0x459685)[_0x395553(0x12e)]**0x2;}function _(_0x3d1e9a,_0x24b27d){const _0x41e44c=_0x269a64;if(_0x3d1e9a[_0x41e44c(0xf8)]<=0x2)return _0x3d1e9a[_0x41e44c(0xd4)](i);let _0x5c627b=0x0,_0x112c30=0x0,_0x5d624e=_0x3d1e9a[0x0],_0x231e5f=_0x3d1e9a[_0x3d1e9a[_0x41e44c(0xf8)]-0x1],_0x233dbf=_0x24b27d*_0x24b27d;for(let _0x39a157=0x1;_0x39a157<_0x3d1e9a[_0x41e44c(0xf8)]-0x1;_0x39a157++){let _0x462599=te(_0x3d1e9a[_0x39a157],_0x5d624e,_0x231e5f);_0x462599>_0x5c627b&&(_0x5c627b=_0x462599,_0x112c30=_0x39a157);}if(_0x5c627b<=_0x233dbf)return[i(_0x5d624e),i(_0x231e5f)];let _0x30cdf8=_(_0x3d1e9a[_0x41e44c(0xd6)](0x0,_0x112c30+0x1),_0x24b27d),_0x4434fb=_(_0x3d1e9a[_0x41e44c(0xd6)](_0x112c30),_0x24b27d);return[..._0x30cdf8[_0x41e44c(0xd6)](0x0,-0x1),..._0x4434fb];}function ne(_0x467b,_0x2a0755){let _0x1904bb=_0x467b[_0x2a0755],_0x262f02=_0x467b[_0x2a0755+0x1],_0x116127=_0x467b[_0x2a0755-0x1]??_0x1904bb;return{'x':_0x1904bb['x']+(_0x262f02['x']-_0x116127['x'])/0x6,'y':_0x1904bb['y']+(_0x262f02['y']-_0x116127['y'])/0x6};}function v(_0x57ac1f,_0x46f486){let _0x57b99c=_0x57ac1f[_0x46f486],_0x8b205e=_0x57ac1f[_0x46f486-0x1],_0x1c7f64=_0x57ac1f[_0x46f486+0x1]??_0x57b99c;return{'x':_0x57b99c['x']-(_0x1c7f64['x']-_0x8b205e['x'])/0x6,'y':_0x57b99c['y']-(_0x1c7f64['y']-_0x8b205e['y'])/0x6};}function y(_0x185e2b,_0x9e3889){const _0x1a1f7f=_0x269a64;let _0x3b92e4=_0x185e2b['anchors'][_0x9e3889],_0x5d6ebf=_0x185e2b[_0x1a1f7f(0x13d)][_0x9e3889-0x1]??(_0x185e2b[_0x1a1f7f(0x13a)]?_0x185e2b[_0x1a1f7f(0x13d)][_0x185e2b[_0x1a1f7f(0x13d)][_0x1a1f7f(0xf8)]-0x1]:null),_0x21d6b1=_0x185e2b[_0x1a1f7f(0x13d)][_0x9e3889+0x1]??(_0x185e2b[_0x1a1f7f(0x13a)]?_0x185e2b[_0x1a1f7f(0x13d)][0x0]:null),_0x4b1d72=_0x5d6ebf&&_0x21d6b1?l({'x':_0x21d6b1['x']-_0x5d6ebf['x'],'y':_0x21d6b1['y']-_0x5d6ebf['y']}):_0x21d6b1?l({'x':_0x21d6b1['x']-_0x3b92e4['x'],'y':_0x21d6b1['y']-_0x3b92e4['y']}):_0x5d6ebf?l({'x':_0x3b92e4['x']-_0x5d6ebf['x'],'y':_0x3b92e4['y']-_0x5d6ebf['y']}):{'x':0x1,'y':0x0},_0x87061f=_0x5d6ebf&&_0x21d6b1?Math['max'](0x32,c(_0x5d6ebf,_0x21d6b1)/0x4):0x32;return{'in':{'x':_0x3b92e4['x']-_0x4b1d72['x']*_0x87061f,'y':_0x3b92e4['y']-_0x4b1d72['y']*_0x87061f},'out':{'x':_0x3b92e4['x']+_0x4b1d72['x']*_0x87061f,'y':_0x3b92e4['y']+_0x4b1d72['y']*_0x87061f}};}function b(_0x370a89,_0x3ea1be){const _0x2d283c=_0x269a64;let _0x551f1d=_0x370a89[_0x3ea1be],_0x13a5c4=_0x3ea1be==='in'?_0x2d283c(0x148):'in',_0x582a37=_0x370a89[_0x13a5c4];_0x551f1d&&(_0x370a89[_0x2d283c(0x10b)]===_0x2d283c(0x127)?_0x370a89[_0x13a5c4]=u(_0x370a89,_0x551f1d):_0x370a89[_0x2d283c(0x10b)]==='smooth'&&(_0x370a89[_0x13a5c4]=u(_0x370a89,_0x551f1d,_0x582a37?c(_0x370a89,_0x582a37):c(_0x370a89,_0x551f1d))));}function x(_0x43ee32,_0x25fea7){const _0x26c0fd=_0x269a64;let _0x1a3f40=o(_0x43ee32);return!_0x25fea7||_0x1a3f40['closed']||_0x1a3f40[_0x26c0fd(0x13d)][_0x26c0fd(0xf8)]===0x0||_0x1a3f40['anchors'][_0x26c0fd(0xd9)]({'id':_0x26c0fd(0x119),'x':_0x25fea7['x'],'y':_0x25fea7['y'],'pointType':_0x26c0fd(0xea)}),_0x1a3f40;}function re(_0x288a58,_0x529ab6={}){const _0xc21941=_0x269a64;let _0x64984b=Math[_0xc21941(0x10d)](0x0,_0x529ab6[_0xc21941(0x135)]??Math[_0xc21941(0x10d)](0x4,_0x288a58[_0xc21941(0x11e)]*0.35)),_0x5a08f3=_0x529ab6[_0xc21941(0xde)]??(_0x43acd5=>'ink-centerline-'+_0x43acd5),_0x1511d2=_(_0x288a58[_0xc21941(0x149)],_0x64984b),_0x529613=_0x1511d2['map']((_0x2b3af6,_0x45bebd)=>({'id':_0x5a08f3(_0x45bebd),'x':_0x2b3af6['x'],'y':_0x2b3af6['y'],'pointType':_0xc21941(0x107)}));for(let _0x388900=0x0;_0x388900<_0x529613['length']-0x1;_0x388900++)_0x529613[_0x388900][_0xc21941(0x148)]=ne(_0x1511d2,_0x388900),_0x529613[_0x388900+0x1]['in']=v(_0x1511d2,_0x388900+0x1);return{'kind':_0xc21941(0xe2),'closed':!0x1,'anchors':_0x529613};}function ie(_0x502e65,_0x184df5,_0x4dab1a){const _0x4ee9a5=_0x269a64;let _0x565e3e=null,_0x5b8b5d=['anchor','in',_0x4ee9a5(0x148)];return _0x502e65[_0x4ee9a5(0x13d)]['forEach']((_0x376d92,_0x9e7483)=>{const _0xc1537b=_0x4ee9a5;_0x5b8b5d[_0xc1537b(0x103)](_0x10570=>{const _0x28e684=_0xc1537b;if(!p(_0x502e65,_0x9e7483,_0x10570))return;let _0x23b45f=ee(_0x376d92,_0x10570);if(!_0x23b45f)return;let _0x492dee=c(_0x184df5,_0x23b45f);_0x492dee>_0x4dab1a||_0x565e3e&&_0x492dee>=_0x565e3e[_0x28e684(0x12e)]||(_0x565e3e={'handle':{'kind':_0x10570,'anchorId':_0x376d92['id']},'point':i(_0x23b45f),'distance':_0x492dee});});}),_0x565e3e;}function S(_0x1e4b92,_0x250049,_0x1d8f94){const _0x5e9f96=_0x269a64;let _0x1d20c7=null,_0x2b93fc=_0x1e4b92[_0x5e9f96(0x13a)]?_0x1e4b92[_0x5e9f96(0x13d)]['length']:Math[_0x5e9f96(0x10d)](0x0,_0x1e4b92[_0x5e9f96(0x13d)][_0x5e9f96(0xf8)]-0x1);for(let _0x188ea2=0x0;_0x188ea2<_0x2b93fc;_0x188ea2++){let _0x1c62ca=f(_0x1e4b92,_0x188ea2);if(!_0x1c62ca)continue;let _0x3eba29=m(_0x1c62ca,0x0);for(let _0x3cf290=0x1;_0x3cf290<=0x20;_0x3cf290++){let _0x3a2fd9=m(_0x1c62ca,_0x3cf290/0x20),_0x3983ff=g(_0x250049,_0x3eba29,_0x3a2fd9),_0x3324fe=(_0x3cf290-0x1+_0x3983ff[_0x5e9f96(0x14c)])/0x20;(!_0x1d20c7||_0x3983ff['distance']<_0x1d20c7[_0x5e9f96(0x12e)])&&(_0x1d20c7={'segmentIndex':_0x188ea2,'t':_0x3324fe,'point':_0x3983ff[_0x5e9f96(0x128)],'distance':_0x3983ff[_0x5e9f96(0x12e)]}),_0x3eba29=_0x3a2fd9;}}return _0x1d20c7&&_0x1d20c7[_0x5e9f96(0x12e)]<=_0x1d8f94?_0x1d20c7:null;}function C(_0x3a23ed,_0x2b260c,_0x56da22){const _0x5dedae=_0x269a64;let _0x3ab69f=o(_0x3a23ed),_0x4ecbf7=d(_0x3ab69f,_0x2b260c[_0x5dedae(0x110)]),_0x1f46c8=f(_0x3ab69f,_0x2b260c[_0x5dedae(0x110)]);if(!_0x4ecbf7||!_0x1f46c8)return _0x3ab69f;let _0x16deaf=h(_0x1f46c8,Math[_0x5dedae(0x10d)](0x0,Math[_0x5dedae(0x137)](0x1,_0x2b260c['t']))),_0x14b352={'id':_0x56da22(),'x':_0x16deaf['left'][0x3]['x'],'y':_0x16deaf[_0x5dedae(0x117)][0x3]['y'],'in':i(_0x16deaf['left'][0x2]),'out':i(_0x16deaf[_0x5dedae(0xf0)][0x1]),'pointType':'free'};return _0x3ab69f[_0x5dedae(0x13d)][_0x4ecbf7['startIndex']][_0x5dedae(0x148)]=i(_0x16deaf[_0x5dedae(0x117)][0x1]),_0x3ab69f['anchors'][_0x4ecbf7[_0x5dedae(0xee)]]['in']=i(_0x16deaf[_0x5dedae(0xf0)][0x2]),_0x3ab69f[_0x5dedae(0x13d)][_0x5dedae(0xf5)](_0x4ecbf7[_0x5dedae(0x140)]+0x1,0x0,_0x14b352),_0x3ab69f;}function w(_0x3409d6,_0x29e03f){const _0x3ad5aa=_0x269a64;let _0x54ecb8=o(_0x3409d6);return _0x54ecb8[_0x3ad5aa(0x13d)]=_0x54ecb8[_0x3ad5aa(0x13d)][_0x3ad5aa(0x113)](_0x51f082=>_0x51f082['id']!==_0x29e03f),_0x54ecb8[_0x3ad5aa(0x13a)]&&_0x54ecb8[_0x3ad5aa(0x13d)]['length']<0x3&&(_0x54ecb8[_0x3ad5aa(0x13a)]=!0x1),_0x54ecb8;}function T(_0x591999,_0x3251d8,_0x3dc45c){const _0x16813c=_0x269a64;let _0x2bf2c7=o(_0x591999),_0x4e3696=_0x2bf2c7[_0x16813c(0x13d)]['findIndex'](_0x16fe10=>_0x16fe10['id']===_0x3251d8),_0x3151d2=_0x2bf2c7['anchors'][_0x4e3696];if(!_0x3151d2)return _0x2bf2c7;if(_0x3151d2[_0x16813c(0x10b)]=_0x3dc45c,_0x3dc45c==='corner')return delete _0x3151d2['in'],delete _0x3151d2['out'],_0x2bf2c7;let _0x8fb3ba=y(_0x2bf2c7,_0x4e3696);if(_0x3151d2['in']=_0x3151d2['in']?i(_0x3151d2['in']):_0x8fb3ba['in'],_0x3151d2['out']=_0x3151d2['out']?i(_0x3151d2['out']):_0x8fb3ba[_0x16813c(0x148)],_0x3dc45c==='symmetric'){let _0x44f030=Math[_0x16813c(0x10d)](c(_0x3151d2,_0x3151d2['in']),c(_0x3151d2,_0x3151d2[_0x16813c(0x148)]),0x32),_0x46380f=l({'x':_0x3151d2[_0x16813c(0x148)]['x']-_0x3151d2['x'],'y':_0x3151d2[_0x16813c(0x148)]['y']-_0x3151d2['y']});_0x3151d2[_0x16813c(0x148)]={'x':_0x3151d2['x']+_0x46380f['x']*_0x44f030,'y':_0x3151d2['y']+_0x46380f['y']*_0x44f030},_0x3151d2['in']={'x':_0x3151d2['x']-_0x46380f['x']*_0x44f030,'y':_0x3151d2['y']-_0x46380f['y']*_0x44f030};}else _0x3dc45c==='smooth'&&b(_0x3151d2,_0x16813c(0x148));return _0x2bf2c7;}function E(_0x4d9b92,_0x20bb22){const _0x426244=_0x269a64;let _0x32c8a5=_0x4d9b92[_0x426244(0x13d)]['find'](_0x1a6e86=>_0x1a6e86['id']===_0x20bb22),_0xf3d00e=(_0x32c8a5==null?void 0x0:_0x32c8a5[_0x426244(0x10b)])??_0x426244(0xea);return T(_0x4d9b92,_0x20bb22,_0xf3d00e===_0x426244(0xea)?'smooth':_0xf3d00e===_0x426244(0xdb)?_0x426244(0x127):_0xf3d00e===_0x426244(0x127)?_0x426244(0x107):_0x426244(0xea));}function ae(_0x5ed472,_0x234b41,_0x3e674b){const _0x2b4496=_0x269a64;let _0x45ceaa=o(_0x5ed472),_0x5489df=_0x45ceaa['anchors'][_0x2b4496(0xeb)](_0x5c8bb3=>_0x5c8bb3['id']===_0x234b41['anchorId']);if(!_0x5489df)return _0x45ceaa;if(_0x234b41[_0x2b4496(0xe4)]===_0x2b4496(0x12a)){let _0x1f3596={'x':_0x3e674b['x']-_0x5489df['x'],'y':_0x3e674b['y']-_0x5489df['y']};return _0x5489df['x']=_0x3e674b['x'],_0x5489df['y']=_0x3e674b['y'],_0x5489df['in']&&={'x':_0x5489df['in']['x']+_0x1f3596['x'],'y':_0x5489df['in']['y']+_0x1f3596['y']},_0x5489df['out']&&={'x':_0x5489df[_0x2b4496(0x148)]['x']+_0x1f3596['x'],'y':_0x5489df[_0x2b4496(0x148)]['y']+_0x1f3596['y']},_0x45ceaa;}return _0x5489df[_0x234b41['kind']]=i(_0x3e674b),_0x5489df[_0x2b4496(0x10b)]===_0x2b4496(0xea)&&(_0x5489df[_0x2b4496(0x10b)]=_0x2b4496(0x107)),b(_0x5489df,_0x234b41[_0x2b4496(0xe4)]),_0x45ceaa;}const D=1e-9;function O(_0x26719a){let _0xa0b530=Math['round'](_0x26719a*0x2710)/0x2710;return Object['is'](_0xa0b530,-0x0)?'0':String(_0xa0b530);}function k(_0x1ddf5e){return O(_0x1ddf5e['x'])+'\x20'+O(_0x1ddf5e['y']);}function A(_0x58cfe9,_0x46dd79){return{'x':_0x58cfe9['x']-_0x46dd79['x'],'y':_0x58cfe9['y']-_0x46dd79['y']};}function j(_0x256cee,_0x40b96f,_0x1f2353,_0x8da378,_0x17bf68){let _0x3f3239=0x1-_0x17bf68;return{'x':_0x3f3239*_0x3f3239*_0x3f3239*_0x256cee['x']+0x3*_0x3f3239*_0x3f3239*_0x17bf68*_0x40b96f['x']+0x3*_0x3f3239*_0x17bf68*_0x17bf68*_0x1f2353['x']+_0x17bf68*_0x17bf68*_0x17bf68*_0x8da378['x'],'y':_0x3f3239*_0x3f3239*_0x3f3239*_0x256cee['y']+0x3*_0x3f3239*_0x3f3239*_0x17bf68*_0x40b96f['y']+0x3*_0x3f3239*_0x17bf68*_0x17bf68*_0x1f2353['y']+_0x17bf68*_0x17bf68*_0x17bf68*_0x8da378['y']};}function M(_0x234c21,_0x1cef9d,_0x35ecc4,_0x319f6a){const _0x5198b3=_0x269a64;let _0x437075=-_0x234c21+0x3*_0x1cef9d-0x3*_0x35ecc4+_0x319f6a,_0x3b7ff2=0x3*_0x234c21-0x6*_0x1cef9d+0x3*_0x35ecc4,_0x62af92=-0x3*_0x234c21+0x3*_0x1cef9d,_0x4b1ad9=[];if(Math[_0x5198b3(0x132)](_0x437075)<D){if(Math[_0x5198b3(0x132)](_0x3b7ff2)<D)return _0x4b1ad9;let _0x5a82dc=-_0x62af92/(0x2*_0x3b7ff2);return _0x5a82dc>0x0&&_0x5a82dc<0x1&&_0x4b1ad9['push'](_0x5a82dc),_0x4b1ad9;}let _0x633d00=_0x3b7ff2*_0x3b7ff2-0x3*_0x437075*_0x62af92;if(_0x633d00<0x0)return _0x4b1ad9;let _0x4784c7=Math[_0x5198b3(0x108)](Math[_0x5198b3(0x10d)](0x0,_0x633d00)),_0x2267c6=(-_0x3b7ff2+_0x4784c7)/(0x3*_0x437075),_0x12a7bd=(-_0x3b7ff2-_0x4784c7)/(0x3*_0x437075);return _0x2267c6>0x0&&_0x2267c6<0x1&&_0x4b1ad9[_0x5198b3(0xd9)](_0x2267c6),_0x12a7bd>0x0&&_0x12a7bd<0x1&&Math[_0x5198b3(0x132)](_0x12a7bd-_0x2267c6)>D&&_0x4b1ad9[_0x5198b3(0xd9)](_0x12a7bd),_0x4b1ad9;}function N(_0x1d083f,_0x1af9dc,_0x573bf8,_0x17a4bf,_0x2e9edb){const _0x33bb11=_0x269a64;_0x1d083f['push'](_0x1af9dc,_0x2e9edb),new Set([...M(_0x1af9dc['x'],_0x573bf8['x'],_0x17a4bf['x'],_0x2e9edb['x']),...M(_0x1af9dc['y'],_0x573bf8['y'],_0x17a4bf['y'],_0x2e9edb['y'])])[_0x33bb11(0x103)](_0x10efd0=>{const _0x2be6de=_0x33bb11;_0x1d083f[_0x2be6de(0xd9)](j(_0x1af9dc,_0x573bf8,_0x17a4bf,_0x2e9edb,_0x10efd0));});}function P(_0x453bd8){const _0x452c3=_0x269a64;let _0x21cca4=_0x453bd8['anchors'];if(_0x21cca4[_0x452c3(0xf8)]<=0x1)return _0x21cca4;let _0x2eb477=[];for(let _0x176a35=0x1;_0x176a35<_0x21cca4[_0x452c3(0xf8)];_0x176a35++){let _0x13311d=_0x21cca4[_0x176a35-0x1],_0x4ead37=_0x21cca4[_0x176a35];N(_0x2eb477,_0x13311d,_0x13311d[_0x452c3(0x148)]??_0x13311d,_0x4ead37['in']??_0x4ead37,_0x4ead37);}if(_0x453bd8[_0x452c3(0x13a)]&&_0x21cca4[_0x452c3(0xf8)]>0x1){let _0x5bce14=_0x21cca4[_0x21cca4[_0x452c3(0xf8)]-0x1],_0x26d100=_0x21cca4[0x0];N(_0x2eb477,_0x5bce14,_0x5bce14[_0x452c3(0x148)]??_0x5bce14,_0x26d100['in']??_0x26d100,_0x26d100);}return _0x2eb477;}function F(_0x4e07ef){const _0x20db0b=_0x269a64;let _0x41d0b6=_0x4e07ef['points'];if(_0x41d0b6[_0x20db0b(0xf8)]<=0x1)return _0x41d0b6;let _0x12179c=[];for(let _0x3a6796=0x0;_0x3a6796<_0x41d0b6['length']-0x1;_0x3a6796++){let _0x180034=_0x41d0b6[_0x3a6796],_0x30d04b=_0x41d0b6[_0x3a6796+0x1],_0x4959c2=_0x41d0b6[_0x3a6796-0x1]??_0x180034,_0x54042a=_0x41d0b6[_0x3a6796+0x2]??_0x30d04b;N(_0x12179c,_0x180034,{'x':_0x180034['x']+(_0x30d04b['x']-_0x4959c2['x'])/0x6,'y':_0x180034['y']+(_0x30d04b['y']-_0x4959c2['y'])/0x6},{'x':_0x30d04b['x']-(_0x54042a['x']-_0x180034['x'])/0x6,'y':_0x30d04b['y']-(_0x54042a['y']-_0x180034['y'])/0x6},_0x30d04b);}return _0x12179c;}function I(_0x303513){const _0x253a61=_0x269a64;return _0x303513[_0x253a61(0xe4)]===_0x253a61(0xe2)?P(_0x303513):F(_0x303513);}function L(_0x5459f9){const _0x218fca=_0x269a64;let _0x106ad7=Math[_0x218fca(0x11c)](_0x5459f9*0x2710)/0x2710;return Object['is'](_0x106ad7,-0x0)?0x0:_0x106ad7;}function R(_0x33f785){const _0x335b43=_0x269a64;let _0x19549b=I(_0x33f785);if(_0x19549b[_0x335b43(0xf8)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x53595e=Math[_0x335b43(0x137)](..._0x19549b[_0x335b43(0xd4)](_0x65b7ae=>_0x65b7ae['x'])),_0x2bd408=Math[_0x335b43(0x137)](..._0x19549b[_0x335b43(0xd4)](_0x5740b6=>_0x5740b6['y'])),_0x1a50e1=Math[_0x335b43(0x10d)](..._0x19549b[_0x335b43(0xd4)](_0x40f13f=>_0x40f13f['x'])),_0x4f2fd6=Math['max'](..._0x19549b[_0x335b43(0xd4)](_0x43d429=>_0x43d429['y']));return{'left':L(_0x53595e),'top':L(_0x2bd408),'width':L(Math[_0x335b43(0x10d)](0x1,_0x1a50e1-_0x53595e)),'height':L(Math[_0x335b43(0x10d)](0x1,_0x4f2fd6-_0x2bd408))};}function z(_0x2f4a58,_0x3567eb){const _0x517c6f=_0x269a64;let _0x5dc345=_0x2f4a58['anchors'];if(_0x5dc345[_0x517c6f(0xf8)]===0x0)return'';let _0xb24f61=['M\x20'+k(A(_0x5dc345[0x0],_0x3567eb))];for(let _0x1ea50c=0x1;_0x1ea50c<_0x5dc345['length'];_0x1ea50c++){let _0x36fe8c=_0x5dc345[_0x1ea50c-0x1],_0x2dddda=_0x5dc345[_0x1ea50c],_0x1afbe7=_0x36fe8c[_0x517c6f(0x148)]??_0x36fe8c,_0x3b4add=_0x2dddda['in']??_0x2dddda;_0xb24f61[_0x517c6f(0xd9)]('C\x20'+k(A(_0x1afbe7,_0x3567eb))+'\x20'+k(A(_0x3b4add,_0x3567eb))+'\x20'+k(A(_0x2dddda,_0x3567eb)));}if(_0x2f4a58['closed']&&_0x5dc345[_0x517c6f(0xf8)]>0x1){let _0x51356c=_0x5dc345[_0x5dc345[_0x517c6f(0xf8)]-0x1],_0x5ca8bf=_0x5dc345[0x0],_0x2fea2c=_0x51356c[_0x517c6f(0x148)]??_0x51356c,_0x450168=_0x5ca8bf['in']??_0x5ca8bf;_0xb24f61[_0x517c6f(0xd9)]('C\x20'+k(A(_0x2fea2c,_0x3567eb))+'\x20'+k(A(_0x450168,_0x3567eb))+'\x20'+k(A(_0x5ca8bf,_0x3567eb))),_0xb24f61[_0x517c6f(0xd9)]('Z');}return _0xb24f61[_0x517c6f(0xe8)]('\x20');}function B(_0x10ac15,_0x412de7){const _0x40621e=_0x269a64;let _0xce7633=_0x10ac15['points'][_0x40621e(0xd4)](_0x53afec=>A(_0x53afec,_0x412de7));if(_0xce7633[_0x40621e(0xf8)]===0x0)return'';if(_0xce7633[_0x40621e(0xf8)]===0x1)return'M\x20'+k(_0xce7633[0x0]);let _0x37b949=['M\x20'+k(_0xce7633[0x0])];for(let _0x5337d7=0x0;_0x5337d7<_0xce7633[_0x40621e(0xf8)]-0x1;_0x5337d7++){let _0x393e85=_0xce7633[_0x5337d7],_0x191b0b=_0xce7633[_0x5337d7+0x1],_0x141508=_0xce7633[_0x5337d7-0x1]??_0x393e85,_0x1ffd0e=_0xce7633[_0x5337d7+0x2]??_0x191b0b,_0x4ed4a3={'x':_0x393e85['x']+(_0x191b0b['x']-_0x141508['x'])/0x6,'y':_0x393e85['y']+(_0x191b0b['y']-_0x141508['y'])/0x6},_0x1c1589={'x':_0x191b0b['x']-(_0x1ffd0e['x']-_0x393e85['x'])/0x6,'y':_0x191b0b['y']-(_0x1ffd0e['y']-_0x393e85['y'])/0x6};_0x37b949[_0x40621e(0xd9)]('C\x20'+k(_0x4ed4a3)+'\x20'+k(_0x1c1589)+'\x20'+k(_0x191b0b));}return _0x37b949[_0x40621e(0xe8)]('\x20');}function V(_0x4e23a2,_0x3ba6ed){const _0x52b065=_0x269a64;return _0x4e23a2[_0x52b065(0xe4)]===_0x52b065(0xe2)?z(_0x4e23a2,_0x3ba6ed):B(_0x4e23a2,_0x3ba6ed);}function H(_0x1bdc84,_0x2dc7e5){const _0x9ee15=_0x269a64;return _0x2dc7e5!=null&&_0x2dc7e5[_0x9ee15(0x114)]?_0x2dc7e5[_0x9ee15(0x114)]:_0x1bdc84[_0x9ee15(0xe4)]===_0x9ee15(0xe2)?_0x9ee15(0x13f):_0x1bdc84[_0x9ee15(0x114)];}function U(_0x1dd37b,_0x1c6236){const _0x4b0cdb=_0x269a64;return(_0x1c6236==null?void 0x0:_0x1c6236[_0x4b0cdb(0x11e)])===void 0x0?_0x1dd37b[_0x4b0cdb(0xe4)]===_0x4b0cdb(0xe2)?0x2:_0x1dd37b[_0x4b0cdb(0x11e)]:_0x1c6236['width'];}function W(_0x340462,_0x47e00d){const _0x1a6028=_0x269a64;return(_0x47e00d==null?void 0x0:_0x47e00d[_0x1a6028(0xdd)])===void 0x0?_0x340462[_0x1a6028(0xe4)]===_0x1a6028(0xe2)?void 0x0:_0x340462[_0x1a6028(0xdd)]:_0x47e00d['opacity'];}function oe(_0x3274fb,_0x3bc5c1){const _0x57f591=_0x269a64;let _0x155260=R(_0x3274fb),_0x3896a7=V(_0x3274fb,{'x':_0x155260[_0x57f591(0x117)],'y':_0x155260[_0x57f591(0x11d)]}),_0x5aacab=_0x3274fb[_0x57f591(0xe4)]===_0x57f591(0xe2)&&_0x3274fb[_0x57f591(0x13a)],_0x2152c1=_0x3bc5c1==null?void 0x0:_0x3bc5c1[_0x57f591(0x11a)];return{'shapeType':e['ShapeTypeEnum'][_0x57f591(0x136)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x155260[_0x57f591(0x11e)],'h':_0x155260['height'],'fill':_0x5aacab?_0x57f591(0x138):_0x57f591(0xf4),'stroke':!0x0,'data':_0x3896a7,'dataArray':K(_0x3274fb,{'x':_0x155260['left'],'y':_0x155260[_0x57f591(0x11d)]})}]},'fill':_0x5aacab&&_0x2152c1?{'color':_0x2152c1,'fillType':e[_0x57f591(0x123)][_0x57f591(0x129)]}:{'fillType':e[_0x57f591(0x123)]['NoFill']},'stroke':{'color':H(_0x3274fb,_0x3bc5c1),'width':U(_0x3274fb,_0x3bc5c1),'opacity':W(_0x3274fb,_0x3bc5c1),'lineStrokeType':e[_0x57f591(0x12d)]['SolidLine'],'capType':e[_0x57f591(0x10a)][_0x57f591(0x10f)],'lineJoinType':e[_0x57f591(0xd3)][_0x57f591(0x10f)]}};}function G(_0x2adca7,_0x25ea9e){return{'x':_0x2adca7['x']-_0x25ea9e['x'],'y':_0x2adca7['y']-_0x25ea9e['y']};}function K(_0x585be5,_0x1f5dc5){const _0x55b51c=_0x269a64;if(_0x585be5['kind']===_0x55b51c(0xe2)){let _0x34bd62=_0x585be5[_0x55b51c(0x13d)];if(_0x34bd62[_0x55b51c(0xf8)]===0x0)return[];let _0x4b22b7=G(_0x34bd62[0x0],_0x1f5dc5),_0x26896a=[{'command':'M','points':[_0x4b22b7['x'],_0x4b22b7['y']]}];for(let _0x308606=0x1;_0x308606<_0x34bd62[_0x55b51c(0xf8)];_0x308606++){let _0x23460c=_0x34bd62[_0x308606-0x1],_0x1efbb7=_0x34bd62[_0x308606],_0x18a815=G(_0x23460c[_0x55b51c(0x148)]??_0x23460c,_0x1f5dc5),_0x21aecd=G(_0x1efbb7['in']??_0x1efbb7,_0x1f5dc5),_0x2eb835=G(_0x1efbb7,_0x1f5dc5);_0x26896a[_0x55b51c(0xd9)]({'command':'C','points':[_0x18a815['x'],_0x18a815['y'],_0x21aecd['x'],_0x21aecd['y'],_0x2eb835['x'],_0x2eb835['y']]});}if(_0x585be5[_0x55b51c(0x13a)]&&_0x34bd62['length']>0x1){let _0x18b605=_0x34bd62[_0x34bd62[_0x55b51c(0xf8)]-0x1],_0xf90f73=_0x34bd62[0x0],_0x3be734=G(_0x18b605[_0x55b51c(0x148)]??_0x18b605,_0x1f5dc5),_0x1f0ee8=G(_0xf90f73['in']??_0xf90f73,_0x1f5dc5),_0x27fb17=G(_0xf90f73,_0x1f5dc5);_0x26896a[_0x55b51c(0xd9)]({'command':'C','points':[_0x3be734['x'],_0x3be734['y'],_0x1f0ee8['x'],_0x1f0ee8['y'],_0x27fb17['x'],_0x27fb17['y']]}),_0x26896a['push']({'command':'z','points':[]});}return _0x26896a;}let _0x1361a4=_0x585be5[_0x55b51c(0x149)][_0x55b51c(0xd4)](_0x693de=>G(_0x693de,_0x1f5dc5));if(_0x1361a4[_0x55b51c(0xf8)]===0x0)return[];let _0x55ec59=[{'command':'M','points':[_0x1361a4[0x0]['x'],_0x1361a4[0x0]['y']]}];for(let _0x4c3420=0x0;_0x4c3420<_0x1361a4['length']-0x1;_0x4c3420++){let _0xe7b08c=_0x1361a4[_0x4c3420],_0x24635b=_0x1361a4[_0x4c3420+0x1],_0x3189a7=_0x1361a4[_0x4c3420-0x1]??_0xe7b08c,_0x22c6e5=_0x1361a4[_0x4c3420+0x2]??_0x24635b,_0xbf1773={'x':_0xe7b08c['x']+(_0x24635b['x']-_0x3189a7['x'])/0x6,'y':_0xe7b08c['y']+(_0x24635b['y']-_0x3189a7['y'])/0x6},_0x198823={'x':_0x24635b['x']-(_0x22c6e5['x']-_0xe7b08c['x'])/0x6,'y':_0x24635b['y']-(_0x22c6e5['y']-_0xe7b08c['y'])/0x6};_0x55ec59[_0x55b51c(0xd9)]({'command':'C','points':[_0xbf1773['x'],_0xbf1773['y'],_0x198823['x'],_0x198823['y'],_0x24635b['x'],_0x24635b['y']]});}return _0x55ec59;}function q(_0x5a50fe){const _0x345baf=_0x269a64;let {model:_0x374dd1,sourceModel:_0xb590c4=_0x374dd1,style:_0x16fbbd}=_0x5a50fe,_0x3aa437=_0x5a50fe[_0x345baf(0x13c)]??_0x374dd1[_0x345baf(0xe4)],_0x371ca3=R(_0x374dd1),_0x196ae7=_0x374dd1[_0x345baf(0xe4)]===_0x345baf(0xe2)&&_0x3aa437!==_0x345baf(0xe2)?_0x374dd1:void 0x0;return{'transform':{..._0x371ca3,'rotation':0x0},'shapeData':oe(_0x374dd1,_0x16fbbd),'ink':{'version':0x1,'tool':_0x3aa437,'sourceModel':_0xb590c4,..._0x196ae7?{'editModel':_0x196ae7}:{},'normalizedBounds':_0x371ca3}};}var se=_0x269a64(0xfd),ce='1.2.0';function J(_0x75c811){'@babel/helpers - typeof';const _0x13ed13=_0x269a64;return J=typeof Symbol==_0x13ed13(0xd7)&&typeof Symbol[_0x13ed13(0xf9)]==_0x13ed13(0xe0)?function(_0x37bfb9){return typeof _0x37bfb9;}:function(_0x129bf9){const _0x4f5456=_0x13ed13;return _0x129bf9&&typeof Symbol=='function'&&_0x129bf9[_0x4f5456(0x142)]===Symbol&&_0x129bf9!==Symbol['prototype']?'symbol':typeof _0x129bf9;},J(_0x75c811);}function le(_0x2cb104,_0x4b58df){const _0x4c027b=_0x269a64;if(J(_0x2cb104)!=_0x4c027b(0x131)||!_0x2cb104)return _0x2cb104;var _0x210803=_0x2cb104[Symbol['toPrimitive']];if(_0x210803!==void 0x0){var _0x5c0cd7=_0x210803[_0x4c027b(0x112)](_0x2cb104,_0x4b58df||_0x4c027b(0x134));if(J(_0x5c0cd7)!=_0x4c027b(0x131))return _0x5c0cd7;throw TypeError(_0x4c027b(0x13e));}return(_0x4b58df===_0x4c027b(0xe5)?String:Number)(_0x2cb104);}function _0x3421(_0x33a07e,_0x4c0faf){_0x33a07e=_0x33a07e-0xd2;const _0x26a1e1=_0x26a1();let _0x3421a2=_0x26a1e1[_0x33a07e];return _0x3421a2;}function ue(_0x21fbe4){const _0x42919a=_0x269a64;var _0x2a44a0=le(_0x21fbe4,_0x42919a(0xe5));return J(_0x2a44a0)==_0x42919a(0xe0)?_0x2a44a0:_0x2a44a0+'';}function Y(_0x307f9f,_0x347c6e,_0x144b54){return(_0x347c6e=ue(_0x347c6e))in _0x307f9f?Object['defineProperty'](_0x307f9f,_0x347c6e,{'value':_0x144b54,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x307f9f[_0x347c6e]=_0x144b54,_0x307f9f;}const X=(0x0,n['createIdentifier'])(_0x269a64(0xd5));var de=class{constructor(){const _0x5b08c8=_0x269a64;Y(this,_0x5b08c8(0x111),[]);}['registerAdapter'](_0x8e4035){const _0x482cab=_0x269a64;return this['_adapters'][_0x482cab(0xd9)](_0x8e4035),(0x0,n['toDisposable'])(()=>{const _0x5c9639=_0x482cab;let _0x2a1015=this[_0x5c9639(0x111)]['indexOf'](_0x8e4035);_0x2a1015>=0x0&&this['_adapters'][_0x5c9639(0xf5)](_0x2a1015,0x1);});}[_0x269a64(0xe1)](_0x4907bf){const _0x11e9d6=_0x269a64;for(let _0x10318e of this[_0x11e9d6(0x111)])if(_0x10318e[_0x11e9d6(0xe1)](_0x4907bf))return!0x0;return!0x1;}async[_0x269a64(0xef)](_0x3651fc){const _0x47613c=_0x269a64;for(let _0x51cbe3 of this[_0x47613c(0x111)])if(_0x51cbe3['createCustomShape']&&await _0x51cbe3['createCustomShape'](_0x3651fc))return!0x0;return!0x1;}};const fe={'id':_0x269a64(0xf6),'type':n[_0x269a64(0xda)][_0x269a64(0x12c)],'handler':(_0xdcb6e1,_0x2c8db5)=>_0x2c8db5?_0xdcb6e1['get'](X)['beginInkMode'](_0x2c8db5):!0x1},Z={};function Q(_0x4807d9,_0xe5653a){return function(_0x4f8959,_0x55d2a2){_0xe5653a(_0x4f8959,_0x55d2a2,_0x4807d9);};}function pe(_0x10dd52,_0x16cac6,_0xcef145,_0x57906f){const _0x4be51e=_0x269a64;var _0xc15601=arguments[_0x4be51e(0xf8)],_0x2eba1e=_0xc15601<0x3?_0x16cac6:_0x57906f===null?_0x57906f=Object[_0x4be51e(0xf3)](_0x16cac6,_0xcef145):_0x57906f,_0x1c5b59;if(typeof Reflect=='object'&&typeof Reflect[_0x4be51e(0x14b)]==_0x4be51e(0xd7))_0x2eba1e=Reflect[_0x4be51e(0x14b)](_0x10dd52,_0x16cac6,_0xcef145,_0x57906f);else{for(var _0x40a763=_0x10dd52['length']-0x1;_0x40a763>=0x0;_0x40a763--)(_0x1c5b59=_0x10dd52[_0x40a763])&&(_0x2eba1e=(_0xc15601<0x3?_0x1c5b59(_0x2eba1e):_0xc15601>0x3?_0x1c5b59(_0x16cac6,_0xcef145,_0x2eba1e):_0x1c5b59(_0x16cac6,_0xcef145))||_0x2eba1e);}return _0xc15601>0x3&&_0x2eba1e&&Object['defineProperty'](_0x16cac6,_0xcef145,_0x2eba1e),_0x2eba1e;}function _0x26a1(){const _0x252bc7=['defineProperty','OPERATION','ShapeLineTypeEnum','distance','_injector','getInkPenPreviewModel','object','abs','408331NGqJQF','default','tolerance','Rect','min','norm','getInkModelBounds','closed','merge','tool','anchors','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','#f54a45','startIndex','type','constructor','Plugin','12pxjOnk','end','UniverLicensePlugin','UNIVER_UNKNOWN','out','points','hypot','decorate','ratio','90730nYuqwt','ShapeLineJoinEnum','map','ink.host-adapter.service','slice','function','deleteInkPenAnchor','push','CommandType','smooth','pluginName','opacity','createId','ink.config','symbol','beginInkMode','pen','registerCommand','kind','string','insertInkPenAnchorAt','findClosestInkPenHandle','join','_commandService','corner','find','1329818hSBHJH','1288440wGFPKA','endIndex','createCustomShape','right','toStringTag','setInkPenAnchorPointType','getOwnPropertyDescriptor','none','splice','ink.operation.start','disposeWithMe','length','iterator','findClosestInkPenSegment','IConfigService','4729472vuZLAH','@univerjs-pro/ink','UNIVER_INK_PLUGIN','cycleInkPenAnchorPointType','Injector','225GPWoLU','Inject','forEach','onStarting','convertBrushModelToPenModel','ICommandService','free','sqrt','isInkPenHandleVisible','ShapeLineCapEnum','pointType','306556CzDbpt','max','packageName','Round','segmentIndex','_adapters','call','filter','color','start','UniverInkPlugin','left','_configService','__ink-preview-anchor__','fillColor','5Gpuycu','round','top','width','UniverInstanceType','712389CxlvfE','_config','DependentOn','ShapeFillEnum','version','buildInkCustomShapePayload','IInkHostAdapterService','symmetric','point','SolidFill','anchor'];_0x26a1=function(){return _0x252bc7;};return _0x26a1();}let $=class extends n[_0x269a64(0x143)]{constructor(_0xfe11e3=Z,_0x423bfd,_0x38b5e7,_0x300677){const _0x4cbe5e=_0x269a64;super(),this[_0x4cbe5e(0x121)]=_0xfe11e3,this[_0x4cbe5e(0x12f)]=_0x423bfd,this['_commandService']=_0x38b5e7,this[_0x4cbe5e(0x118)]=_0x300677;let {..._0x32ef91}=(0x0,n[_0x4cbe5e(0x13b)])({},Z,this[_0x4cbe5e(0x121)]);this[_0x4cbe5e(0x118)]['setConfig'](_0x4cbe5e(0xdf),_0x32ef91);}[_0x269a64(0x104)](){const _0x1c2407=_0x269a64;[[X,{'useClass':de}]]['forEach'](_0x1c2711=>this[_0x1c2407(0x12f)]['add'](_0x1c2711)),this[_0x1c2407(0xf7)](this[_0x1c2407(0xe9)][_0x1c2407(0xe3)](fe));}};Y($,_0x269a64(0xdc),_0x269a64(0xfe)),Y($,_0x269a64(0x10e),se),Y($,_0x269a64(0x124),ce),Y($,_0x269a64(0x141),n[_0x269a64(0x11f)][_0x269a64(0x147)]),$=pe([(0x0,n[_0x269a64(0x122)])(t[_0x269a64(0x146)]),Q(0x1,(0x0,n[_0x269a64(0x102)])(n[_0x269a64(0x100)])),Q(0x2,n[_0x269a64(0x106)]),Q(0x3,n[_0x269a64(0xfb)])],$),exports[_0x269a64(0x126)]=X,Object[_0x269a64(0x12b)](exports,_0x269a64(0x116),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x269a64(0x125)]=q,exports[_0x269a64(0x105)]=re,exports[_0x269a64(0xff)]=E,exports[_0x269a64(0xd8)]=w,exports[_0x269a64(0xe7)]=ie,exports[_0x269a64(0xfa)]=S,exports[_0x269a64(0x139)]=R,exports[_0x269a64(0x130)]=x,exports[_0x269a64(0xe6)]=C,exports[_0x269a64(0x109)]=p,exports['moveInkPenAnchorPoint']=ae,exports[_0x269a64(0xf2)]=T;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x2eb4(_0x5b09c1,_0x311528){_0x5b09c1=_0x5b09c1-0x1ae;const _0x4831f2=_0x4831();let _0x2eb41c=_0x4831f2[_0x5b09c1];return _0x2eb41c;}const _0x313ec4=_0x2eb4;(function(_0x295ca4,_0x260241){const _0x2e15ca=_0x2eb4,_0x4635dd=_0x295ca4();while(!![]){try{const _0x1f97b3=-parseInt(_0x2e15ca(0x1be))/0x1+-parseInt(_0x2e15ca(0x1c0))/0x2*(-parseInt(_0x2e15ca(0x1d1))/0x3)+parseInt(_0x2e15ca(0x1d5))/0x4*(-parseInt(_0x2e15ca(0x1c9))/0x5)+-parseInt(_0x2e15ca(0x1bb))/0x6*(parseInt(_0x2e15ca(0x1d4))/0x7)+parseInt(_0x2e15ca(0x1b1))/0x8+-parseInt(_0x2e15ca(0x1b9))/0x9*(-parseInt(_0x2e15ca(0x1c5))/0xa)+-parseInt(_0x2e15ca(0x1b7))/0xb;if(_0x1f97b3===_0x260241)break;else _0x4635dd['push'](_0x4635dd['shift']());}catch(_0x35ee69){_0x4635dd['push'](_0x4635dd['shift']());}}}(_0x4831,0x48317));import{BoardElementType as _0xd1f536}from'@univerjs-pro/boards';import{FBoard as _0x2baa6c}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x45dfa4}from'@univerjs-pro/ink';import{Tools as _0x2b0355,generateRandomId as _0x4fe46f}from'@univerjs/core';function _0x4831(){const _0x511f4e=['1129256iUiRTO','every','corner','isFinite','free','deepClone','parentId','length','brush','object','BoardInkHandleKind','601264AuVxWz','width','laneId','out','BoardInkTool','anchor','462099SQLgGZ','pen','72PlDGDq','kind','24GTHkUb','sourceModel','add','151239OVFKEw','getInks','2nxbnIt','ink','opacity','custom','style','617020cwwwvs','isArray','anchors','extend','10fiwnWX','type','insertIndex','pressure','points','transform','smooth','closed','1674543xzqFRt','Shape','highlighter','128408yuOeQL'];_0x4831=function(){return _0x511f4e;};return _0x4831();}import{FEnum as _0x1641dd}from'@univerjs/core/facade';var o=class extends _0x2baa6c{['insertInk'](_0x582631){const _0x15c072=_0x2eb4;let _0x1a882d=s(_0x582631);return _0x1a882d&&this['_addElement'](_0x1a882d,{'insertIndex':_0x582631[_0x15c072(0x1cb)]})?_0x1a882d:null;}[_0x313ec4(0x1bf)](){return this['findElements']({'elementType':_0xd1f536['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](p);}};function s(_0x2875ef,_0x17ca5e){const _0x4c6ac2=_0x313ec4;if(!l(_0x2875ef['model'])||_0x2875ef[_0x4c6ac2(0x1bc)]!==void 0x0&&!l(_0x2875ef[_0x4c6ac2(0x1bc)])||!u(_0x2875ef[_0x4c6ac2(0x1c4)]))return null;let _0x207065=_0x2875ef[_0x4c6ac2(0x1db)]??(_0x17ca5e==null?void 0x0:_0x17ca5e[_0x4c6ac2(0x1db)]),_0x1933f6=_0x2b0355[_0x4c6ac2(0x1da)](_0x2875ef['model']),_0x7d2a58=_0x45dfa4({'model':_0x1933f6,'style':_0x2875ef['style'],'tool':_0x2875ef['tool'],'sourceModel':_0x2875ef[_0x4c6ac2(0x1bc)]?_0x2b0355[_0x4c6ac2(0x1da)](_0x2875ef[_0x4c6ac2(0x1bc)]):_0x1933f6}),_0x30921b=d(_0x17ca5e==null?void 0x0:_0x17ca5e[_0x4c6ac2(0x1c3)]);return{'id':(_0x17ca5e==null?void 0x0:_0x17ca5e['id'])??_0x2875ef['id']??_0x4fe46f(0x6),'type':_0xd1f536['Shape'],'transform':_0x7d2a58[_0x4c6ac2(0x1ce)],'shapeData':_0x7d2a58['shapeData'],'parentId':_0x207065??void 0x0,'laneId':_0x2875ef[_0x4c6ac2(0x1b3)]===void 0x0?_0x17ca5e==null?void 0x0:_0x17ca5e[_0x4c6ac2(0x1b3)]:_0x2875ef[_0x4c6ac2(0x1b3)],'custom':{..._0x30921b,'ink':_0x7d2a58[_0x4c6ac2(0x1c1)]}};}function c(_0x55f10f){const _0x206e91=_0x313ec4;return Number[_0x206e91(0x1d8)](_0x55f10f['x'])&&Number[_0x206e91(0x1d8)](_0x55f10f['y']);}function l(_0x4e610a){const _0x4b3a1d=_0x313ec4;if(_0x4e610a[_0x4b3a1d(0x1ba)]===_0x4b3a1d(0x1b8)){let _0x50b8f8=new Set();return _0x4e610a['anchors'][_0x4b3a1d(0x1dc)]>=(_0x4e610a[_0x4b3a1d(0x1d0)]?0x3:0x2)&&_0x4e610a[_0x4b3a1d(0x1c7)][_0x4b3a1d(0x1d6)](_0x30f3a6=>{const _0x413c66=_0x4b3a1d;let _0x1862f7=_0x30f3a6['id']['trim']()[_0x413c66(0x1dc)]>0x0&&!_0x50b8f8['has'](_0x30f3a6['id'])&&c(_0x30f3a6)&&(!_0x30f3a6['in']||c(_0x30f3a6['in']))&&(!_0x30f3a6['out']||c(_0x30f3a6[_0x413c66(0x1b4)]));return _0x50b8f8[_0x413c66(0x1bd)](_0x30f3a6['id']),_0x1862f7;});}return _0x4e610a[_0x4b3a1d(0x1cd)]['length']>=0x2&&_0x4e610a[_0x4b3a1d(0x1cd)][_0x4b3a1d(0x1d6)](_0x3cf0a6=>c(_0x3cf0a6)&&Number[_0x4b3a1d(0x1d8)](_0x3cf0a6['t'])&&(_0x3cf0a6[_0x4b3a1d(0x1cc)]===void 0x0||Number[_0x4b3a1d(0x1d8)](_0x3cf0a6[_0x4b3a1d(0x1cc)])))&&Number['isFinite'](_0x4e610a[_0x4b3a1d(0x1b2)])&&_0x4e610a[_0x4b3a1d(0x1b2)]>0x0&&Number['isFinite'](_0x4e610a[_0x4b3a1d(0x1c2)])&&_0x4e610a[_0x4b3a1d(0x1c2)]>=0x0&&_0x4e610a[_0x4b3a1d(0x1c2)]<=0x1;}function u(_0x566d8a){const _0x2351a5=_0x313ec4;return _0x566d8a===void 0x0||(_0x566d8a['width']===void 0x0||Number['isFinite'](_0x566d8a[_0x2351a5(0x1b2)])&&_0x566d8a[_0x2351a5(0x1b2)]>0x0)&&(_0x566d8a['opacity']===void 0x0||Number['isFinite'](_0x566d8a['opacity'])&&_0x566d8a[_0x2351a5(0x1c2)]>=0x0&&_0x566d8a[_0x2351a5(0x1c2)]<=0x1);}function d(_0x3f8fc2){const _0x5905fa=_0x313ec4;return _0x3f8fc2&&typeof _0x3f8fc2=='object'&&!Array[_0x5905fa(0x1c6)](_0x3f8fc2)?_0x3f8fc2:{};}function f(_0x4bb099){const _0x305c9f=_0x313ec4;let _0x4427f2=d(_0x4bb099[_0x305c9f(0x1c3)])[_0x305c9f(0x1c1)];if(!_0x4427f2||typeof _0x4427f2!='object'||Array[_0x305c9f(0x1c6)](_0x4427f2))return null;let _0x55720a=_0x4427f2;return _0x55720a['version']===0x1&&_0x55720a['sourceModel']&&typeof _0x55720a[_0x305c9f(0x1bc)]==_0x305c9f(0x1af)?_0x55720a:null;}function p(_0x293f26){const _0x219e56=_0x313ec4;return _0x293f26[_0x219e56(0x1ca)]===_0xd1f536[_0x219e56(0x1d2)]&&!!f(_0x293f26);}_0x2baa6c[_0x313ec4(0x1c8)](o);const m={'Pen':_0x313ec4(0x1b8),'Brush':_0x313ec4(0x1ae),'Highlighter':_0x313ec4(0x1d3)},h={'Corner':_0x313ec4(0x1d7),'Smooth':_0x313ec4(0x1cf),'Symmetric':'symmetric','Free':_0x313ec4(0x1d9)},g={'Anchor':_0x313ec4(0x1b6),'In':'in','Out':_0x313ec4(0x1b4)};var _=class extends _0x1641dd{get[_0x313ec4(0x1b5)](){return m;}get['BoardInkPointType'](){return h;}get[_0x313ec4(0x1b0)](){return g;}};_0x1641dd['extend'](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
1
+ const _0x16ff5b=_0x330d;(function(_0x6cc2a6,_0x2d6fe7){const _0x452d76=_0x330d,_0x2020e3=_0x6cc2a6();while(!![]){try{const _0x3be90e=parseInt(_0x452d76(0x113))/0x1*(parseInt(_0x452d76(0x11c))/0x2)+parseInt(_0x452d76(0x10d))/0x3*(parseInt(_0x452d76(0x11b))/0x4)+-parseInt(_0x452d76(0xef))/0x5*(parseInt(_0x452d76(0x119))/0x6)+parseInt(_0x452d76(0x108))/0x7+parseInt(_0x452d76(0x101))/0x8*(-parseInt(_0x452d76(0xec))/0x9)+parseInt(_0x452d76(0x104))/0xa*(-parseInt(_0x452d76(0x114))/0xb)+parseInt(_0x452d76(0x10b))/0xc;if(_0x3be90e===_0x2d6fe7)break;else _0x2020e3['push'](_0x2020e3['shift']());}catch(_0x1ef773){_0x2020e3['push'](_0x2020e3['shift']());}}}(_0x555c,0x48c81));import{BoardElementType as _0x4e293a}from'@univerjs-pro/boards';import{FBoard as _0x1ab7f9}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x4dcdda}from'@univerjs-pro/ink';import{Tools as _0x1b2b2e,generateRandomId as _0x5f1a90}from'@univerjs/core';import{FEnum as _0x42f1ff}from'@univerjs/core/facade';var o=class extends _0x1ab7f9{[_0x16ff5b(0x11f)](_0x474079){const _0x22725a=_0x16ff5b;let _0xcddca4=s(_0x474079);return _0xcddca4&&this[_0x22725a(0xfc)](_0xcddca4,{'insertIndex':_0x474079[_0x22725a(0xf7)]})?_0xcddca4:null;}[_0x16ff5b(0x10c)](){const _0x5b819c=_0x16ff5b;return this[_0x5b819c(0xf9)]({'elementType':_0x4e293a[_0x5b819c(0x10e)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](p);}};function s(_0x3f5f2a,_0xd68a4d){const _0x158659=_0x16ff5b;if(!l(_0x3f5f2a[_0x158659(0x100)])||_0x3f5f2a[_0x158659(0x111)]!==void 0x0&&!l(_0x3f5f2a[_0x158659(0x111)])||!u(_0x3f5f2a['style']))return null;let _0x319f8a=_0x3f5f2a[_0x158659(0xea)]??(_0xd68a4d==null?void 0x0:_0xd68a4d[_0x158659(0xea)]),_0x2703aa=_0x1b2b2e[_0x158659(0xff)](_0x3f5f2a[_0x158659(0x100)]),_0x414af4=_0x4dcdda({'model':_0x2703aa,'style':_0x3f5f2a['style'],'tool':_0x3f5f2a['tool'],'sourceModel':_0x3f5f2a[_0x158659(0x111)]?_0x1b2b2e['deepClone'](_0x3f5f2a[_0x158659(0x111)]):_0x2703aa}),_0x1d5a70=d(_0xd68a4d==null?void 0x0:_0xd68a4d[_0x158659(0xee)]);return{'id':(_0xd68a4d==null?void 0x0:_0xd68a4d['id'])??_0x3f5f2a['id']??_0x5f1a90(0x6),'type':_0x4e293a[_0x158659(0x10e)],'transform':_0x414af4[_0x158659(0xf0)],'shapeData':_0x414af4[_0x158659(0x118)],'parentId':_0x319f8a??void 0x0,'laneId':_0x3f5f2a[_0x158659(0xf6)]===void 0x0?_0xd68a4d==null?void 0x0:_0xd68a4d[_0x158659(0xf6)]:_0x3f5f2a[_0x158659(0xf6)],'custom':{..._0x1d5a70,'ink':_0x414af4['ink']}};}function c(_0x65a72f){const _0x3f3a2e=_0x16ff5b;return Number[_0x3f3a2e(0x11a)](_0x65a72f['x'])&&Number[_0x3f3a2e(0x11a)](_0x65a72f['y']);}function l(_0x313fd0){const _0x2e3328=_0x16ff5b;if(_0x313fd0[_0x2e3328(0x112)]===_0x2e3328(0xf4)){let _0x102b11=new Set();return _0x313fd0[_0x2e3328(0x110)][_0x2e3328(0x106)]>=(_0x313fd0['closed']?0x3:0x2)&&_0x313fd0[_0x2e3328(0x110)][_0x2e3328(0xf2)](_0x1791a5=>{const _0x5a5d40=_0x2e3328;let _0x5d3866=_0x1791a5['id'][_0x5a5d40(0xf8)]()[_0x5a5d40(0x106)]>0x0&&!_0x102b11['has'](_0x1791a5['id'])&&c(_0x1791a5)&&(!_0x1791a5['in']||c(_0x1791a5['in']))&&(!_0x1791a5[_0x5a5d40(0x103)]||c(_0x1791a5[_0x5a5d40(0x103)]));return _0x102b11[_0x5a5d40(0x107)](_0x1791a5['id']),_0x5d3866;});}return _0x313fd0[_0x2e3328(0x115)][_0x2e3328(0x106)]>=0x2&&_0x313fd0[_0x2e3328(0x115)][_0x2e3328(0xf2)](_0x8f979b=>c(_0x8f979b)&&Number[_0x2e3328(0x11a)](_0x8f979b['t'])&&(_0x8f979b[_0x2e3328(0x11d)]===void 0x0||Number[_0x2e3328(0x11a)](_0x8f979b[_0x2e3328(0x11d)])))&&Number['isFinite'](_0x313fd0[_0x2e3328(0xf5)])&&_0x313fd0['width']>0x0&&Number[_0x2e3328(0x11a)](_0x313fd0[_0x2e3328(0xfb)])&&_0x313fd0[_0x2e3328(0xfb)]>=0x0&&_0x313fd0[_0x2e3328(0xfb)]<=0x1;}function u(_0x10dc54){const _0x55dd3b=_0x16ff5b;return _0x10dc54===void 0x0||(_0x10dc54[_0x55dd3b(0xf5)]===void 0x0||Number[_0x55dd3b(0x11a)](_0x10dc54[_0x55dd3b(0xf5)])&&_0x10dc54[_0x55dd3b(0xf5)]>0x0)&&(_0x10dc54['opacity']===void 0x0||Number[_0x55dd3b(0x11a)](_0x10dc54[_0x55dd3b(0xfb)])&&_0x10dc54[_0x55dd3b(0xfb)]>=0x0&&_0x10dc54['opacity']<=0x1);}function d(_0x118588){const _0x32e573=_0x16ff5b;return _0x118588&&typeof _0x118588==_0x32e573(0xfe)&&!Array['isArray'](_0x118588)?_0x118588:{};}function f(_0x1bb104){const _0x7ff9a2=_0x16ff5b;let _0x58bd3b=d(_0x1bb104['custom'])[_0x7ff9a2(0x10f)];if(!_0x58bd3b||typeof _0x58bd3b!=_0x7ff9a2(0xfe)||Array[_0x7ff9a2(0x109)](_0x58bd3b))return null;let _0x5793d1=_0x58bd3b;return _0x5793d1[_0x7ff9a2(0x117)]===0x1&&_0x5793d1[_0x7ff9a2(0x111)]&&typeof _0x5793d1[_0x7ff9a2(0x111)]==_0x7ff9a2(0xfe)?_0x5793d1:null;}function p(_0x271c19){const _0x5aa76f=_0x16ff5b;return _0x271c19[_0x5aa76f(0xfd)]===_0x4e293a['Shape']&&!!f(_0x271c19);}_0x1ab7f9[_0x16ff5b(0xeb)](o);function _0x330d(_0x3483fe,_0x5a88db){_0x3483fe=_0x3483fe-0xea;const _0x555c07=_0x555c();let _0x330d5c=_0x555c07[_0x3483fe];return _0x330d5c;}function _0x555c(){const _0x331a71=['add','2988720sfGVos','isArray','highlighter','4038228dJzGzj','getInks','9MHGOtr','Shape','ink','anchors','sourceModel','kind','1khJcFi','9999axsGvD','points','corner','version','shapeData','1538952ePTLBI','isFinite','429920CafOxP','387370CVdgUo','pressure','free','insertInk','parentId','extend','9tLftkb','BoardInkHandleKind','custom','5NoTkKT','transform','smooth','every','anchor','pen','width','laneId','insertIndex','trim','findElements','BoardInkPointType','opacity','_addElement','type','object','deepClone','model','1407704YBRITD','BoardInkTool','out','6040qiZVvX','brush','length'];_0x555c=function(){return _0x331a71;};return _0x555c();}const m={'Pen':'pen','Brush':_0x16ff5b(0x105),'Highlighter':_0x16ff5b(0x10a)},h={'Corner':_0x16ff5b(0x116),'Smooth':_0x16ff5b(0xf1),'Symmetric':'symmetric','Free':_0x16ff5b(0x11e)},g={'Anchor':_0x16ff5b(0xf3),'In':'in','Out':'out'};var _=class extends _0x42f1ff{get[_0x16ff5b(0x102)](){return m;}get[_0x16ff5b(0xfa)](){return h;}get[_0x16ff5b(0xed)](){return g;}};_0x42f1ff[_0x16ff5b(0xeb)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4d5c9d=_0x1247;(function(_0x4fcfba,_0x2ec095){const _0x23f442=_0x1247,_0x535d77=_0x4fcfba();while(!![]){try{const _0x927dfa=-parseInt(_0x23f442(0x1db))/0x1+parseInt(_0x23f442(0x1bc))/0x2+-parseInt(_0x23f442(0x1af))/0x3+parseInt(_0x23f442(0x1d8))/0x4+parseInt(_0x23f442(0x1cb))/0x5*(parseInt(_0x23f442(0x1d1))/0x6)+-parseInt(_0x23f442(0x209))/0x7+-parseInt(_0x23f442(0x1c6))/0x8*(-parseInt(_0x23f442(0x1d3))/0x9);if(_0x927dfa===_0x2ec095)break;else _0x535d77['push'](_0x535d77['shift']());}catch(_0x3a0005){_0x535d77['push'](_0x535d77['shift']());}}}(_0x5e32,0xc703d));import{ShapeFillEnum as _0x1ab911,ShapeLineCapEnum as _0x52c57b,ShapeLineJoinEnum as _0x2ef3aa,ShapeLineTypeEnum as _0xb40238,ShapeTypeEnum as _0x49cd1d}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x57a878}from'@univerjs-pro/license';import{CommandType as _0x274185,DependentOn as _0x2f0a1b,ICommandService as _0x18c36a,IConfigService as _0x4e83c9,Inject as _0x304ec7,Injector as _0x404c68,Plugin as _0xd72275,UniverInstanceType as _0x5eeb86,createIdentifier as _0x5f2cbd,merge as _0xe94c79,toDisposable as _0x5a5fba}from'@univerjs/core';const g=0.0001;function _(_0x2cda97){return{'x':_0x2cda97['x'],'y':_0x2cda97['y']};}function v(_0x127e2e){const _0x97077b=_0x1247;return{..._0x127e2e,'in':_0x127e2e['in']?_(_0x127e2e['in']):void 0x0,'out':_0x127e2e[_0x97077b(0x1bb)]?_(_0x127e2e[_0x97077b(0x1bb)]):void 0x0};}function y(_0x4f0dab){const _0x2675e4=_0x1247;return{'kind':_0x2675e4(0x1d2),'closed':_0x4f0dab[_0x2675e4(0x1cf)],'anchors':_0x4f0dab[_0x2675e4(0x1f5)]['map'](v)};}function b(_0x595723,_0x278fb7,_0x1f97bb){return{'x':_0x595723['x']+(_0x278fb7['x']-_0x595723['x'])*_0x1f97bb,'y':_0x595723['y']+(_0x278fb7['y']-_0x595723['y'])*_0x1f97bb};}function x(_0x52f9bd,_0x4c9c24){const _0x2d7e56=_0x1247;return Math[_0x2d7e56(0x1c0)](_0x52f9bd['x']-_0x4c9c24['x'],_0x52f9bd['y']-_0x4c9c24['y']);}function S(_0x2dd696){const _0x47d1da=_0x1247;let _0x1b3a2d=Math[_0x47d1da(0x1c0)](_0x2dd696['x'],_0x2dd696['y']);return _0x1b3a2d<g?{'x':0x1,'y':0x0}:{'x':_0x2dd696['x']/_0x1b3a2d,'y':_0x2dd696['y']/_0x1b3a2d};}function C(_0x4f70bf,_0x3af8ff,_0x4ff15e=x(_0x4f70bf,_0x3af8ff)){let _0x5efc37=S({'x':_0x4f70bf['x']-_0x3af8ff['x'],'y':_0x4f70bf['y']-_0x3af8ff['y']});return{'x':_0x4f70bf['x']+_0x5efc37['x']*_0x4ff15e,'y':_0x4f70bf['y']+_0x5efc37['y']*_0x4ff15e};}function w(_0xb34253,_0x8d66ad){const _0x7600c9=_0x1247;let {anchors:_0xe1d492}=_0xb34253;return _0xe1d492[_0x7600c9(0x1ed)]<0x2||_0x8d66ad<0x0?null:_0x8d66ad<_0xe1d492[_0x7600c9(0x1ed)]-0x1?{'startIndex':_0x8d66ad,'endIndex':_0x8d66ad+0x1,'start':_0xe1d492[_0x8d66ad],'end':_0xe1d492[_0x8d66ad+0x1]}:_0xb34253[_0x7600c9(0x1cf)]&&_0x8d66ad===_0xe1d492[_0x7600c9(0x1ed)]-0x1?{'startIndex':_0xe1d492[_0x7600c9(0x1ed)]-0x1,'endIndex':0x0,'start':_0xe1d492[_0xe1d492[_0x7600c9(0x1ed)]-0x1],'end':_0xe1d492[0x0]}:null;}function T(_0x2ba707,_0x50f5b5){const _0x28be92=_0x1247;let _0x26ddfb=w(_0x2ba707,_0x50f5b5);return _0x26ddfb?[_0x26ddfb['start'],_0x26ddfb[_0x28be92(0x1fe)]['out']??_0x26ddfb[_0x28be92(0x1fe)],_0x26ddfb[_0x28be92(0x1eb)]['in']??_0x26ddfb[_0x28be92(0x1eb)],_0x26ddfb[_0x28be92(0x1eb)]]:null;}function te(_0x5a382c,_0x24d860){const _0x1e2d35=_0x1247;return _0x24d860===_0x1e2d35(0x20f)?_0x5a382c:_0x5a382c[_0x24d860]??null;}function E(_0x596289,_0x5acf97,_0x10b2f0){const _0x5619f7=_0x1247;return _0x10b2f0===_0x5619f7(0x20f)||_0x596289[_0x5619f7(0x1cf)]?!0x0:_0x10b2f0==='in'?_0x5acf97>0x0:_0x5acf97<_0x596289[_0x5619f7(0x1f5)][_0x5619f7(0x1ed)]-0x1;}function D(_0x4f0040,_0x13bd21){let [_0x252eea,_0x2ce951,_0x4f9223,_0x5d5248]=_0x4f0040,_0xf02cf5=b(_0x252eea,_0x2ce951,_0x13bd21),_0x223a05=b(_0x2ce951,_0x4f9223,_0x13bd21),_0x196670=b(_0x4f9223,_0x5d5248,_0x13bd21);return b(b(_0xf02cf5,_0x223a05,_0x13bd21),b(_0x223a05,_0x196670,_0x13bd21),_0x13bd21);}function ne(_0x1dd0a0,_0x229718){let [_0x4a12d7,_0x4a50c0,_0xe95602,_0x1b2a13]=_0x1dd0a0,_0x592b76=b(_0x4a12d7,_0x4a50c0,_0x229718),_0x4316bd=b(_0x4a50c0,_0xe95602,_0x229718),_0x3ec2ef=b(_0xe95602,_0x1b2a13,_0x229718),_0x253ff2=b(_0x592b76,_0x4316bd,_0x229718),_0x1723c4=b(_0x4316bd,_0x3ec2ef,_0x229718),_0x14a708=b(_0x253ff2,_0x1723c4,_0x229718);return{'left':[_0x4a12d7,_0x592b76,_0x253ff2,_0x14a708],'right':[_0x14a708,_0x1723c4,_0x3ec2ef,_0x1b2a13]};}function O(_0x3d3f0e,_0x137b38,_0x470fb0){const _0x14f27f=_0x1247;let _0x26f0cc=_0x470fb0['x']-_0x137b38['x'],_0x5c602e=_0x470fb0['y']-_0x137b38['y'],_0x313ad4=_0x26f0cc*_0x26f0cc+_0x5c602e*_0x5c602e,_0x56c323=_0x313ad4<=g?0x0:Math[_0x14f27f(0x202)](0x0,Math[_0x14f27f(0x1ef)](0x1,((_0x3d3f0e['x']-_0x137b38['x'])*_0x26f0cc+(_0x3d3f0e['y']-_0x137b38['y'])*_0x5c602e)/_0x313ad4)),_0x13a59d={'x':_0x137b38['x']+_0x26f0cc*_0x56c323,'y':_0x137b38['y']+_0x5c602e*_0x56c323};return{'point':_0x13a59d,'ratio':_0x56c323,'distance':x(_0x3d3f0e,_0x13a59d)};}function re(_0x452e85,_0x390eab,_0x241a2e){return O(_0x452e85,_0x390eab,_0x241a2e)['distance']**0x2;}function k(_0x5eaca1,_0x6f8b22){const _0x4326da=_0x1247;if(_0x5eaca1[_0x4326da(0x1ed)]<=0x2)return _0x5eaca1[_0x4326da(0x20d)](_);let _0x3c8dae=0x0,_0x5e955f=0x0,_0x391213=_0x5eaca1[0x0],_0xdcc947=_0x5eaca1[_0x5eaca1['length']-0x1],_0x3300c2=_0x6f8b22*_0x6f8b22;for(let _0x2cb846=0x1;_0x2cb846<_0x5eaca1[_0x4326da(0x1ed)]-0x1;_0x2cb846++){let _0x178e47=re(_0x5eaca1[_0x2cb846],_0x391213,_0xdcc947);_0x178e47>_0x3c8dae&&(_0x3c8dae=_0x178e47,_0x5e955f=_0x2cb846);}if(_0x3c8dae<=_0x3300c2)return[_(_0x391213),_(_0xdcc947)];let _0x25e7c9=k(_0x5eaca1[_0x4326da(0x1e5)](0x0,_0x5e955f+0x1),_0x6f8b22),_0x496446=k(_0x5eaca1[_0x4326da(0x1e5)](_0x5e955f),_0x6f8b22);return[..._0x25e7c9[_0x4326da(0x1e5)](0x0,-0x1),..._0x496446];}function ie(_0x10466c,_0x32a49b){let _0x4ddc0f=_0x10466c[_0x32a49b],_0x82b40c=_0x10466c[_0x32a49b+0x1],_0x3dd8d4=_0x10466c[_0x32a49b-0x1]??_0x4ddc0f;return{'x':_0x4ddc0f['x']+(_0x82b40c['x']-_0x3dd8d4['x'])/0x6,'y':_0x4ddc0f['y']+(_0x82b40c['y']-_0x3dd8d4['y'])/0x6};}function A(_0x4f1f7e,_0x506d01){let _0x61133f=_0x4f1f7e[_0x506d01],_0x16e00d=_0x4f1f7e[_0x506d01-0x1],_0x5ddeb8=_0x4f1f7e[_0x506d01+0x1]??_0x61133f;return{'x':_0x61133f['x']-(_0x5ddeb8['x']-_0x16e00d['x'])/0x6,'y':_0x61133f['y']-(_0x5ddeb8['y']-_0x16e00d['y'])/0x6};}function j(_0x2be232,_0x440c3b){const _0x202021=_0x1247;let _0x2e96e9=_0x2be232[_0x202021(0x1f5)][_0x440c3b],_0x4067ea=_0x2be232['anchors'][_0x440c3b-0x1]??(_0x2be232[_0x202021(0x1cf)]?_0x2be232[_0x202021(0x1f5)][_0x2be232[_0x202021(0x1f5)][_0x202021(0x1ed)]-0x1]:null),_0x29b911=_0x2be232[_0x202021(0x1f5)][_0x440c3b+0x1]??(_0x2be232[_0x202021(0x1cf)]?_0x2be232[_0x202021(0x1f5)][0x0]:null),_0x549e54=_0x4067ea&&_0x29b911?S({'x':_0x29b911['x']-_0x4067ea['x'],'y':_0x29b911['y']-_0x4067ea['y']}):_0x29b911?S({'x':_0x29b911['x']-_0x2e96e9['x'],'y':_0x29b911['y']-_0x2e96e9['y']}):_0x4067ea?S({'x':_0x2e96e9['x']-_0x4067ea['x'],'y':_0x2e96e9['y']-_0x4067ea['y']}):{'x':0x1,'y':0x0},_0x2e8b5c=_0x4067ea&&_0x29b911?Math[_0x202021(0x202)](0x32,x(_0x4067ea,_0x29b911)/0x4):0x32;return{'in':{'x':_0x2e96e9['x']-_0x549e54['x']*_0x2e8b5c,'y':_0x2e96e9['y']-_0x549e54['y']*_0x2e8b5c},'out':{'x':_0x2e96e9['x']+_0x549e54['x']*_0x2e8b5c,'y':_0x2e96e9['y']+_0x549e54['y']*_0x2e8b5c}};}function M(_0x33853b,_0x559357){const _0xe98d53=_0x1247;let _0x5a8f63=_0x33853b[_0x559357],_0x2c9f9a=_0x559357==='in'?'out':'in',_0x14c145=_0x33853b[_0x2c9f9a];if(_0x5a8f63){if(_0x33853b[_0xe98d53(0x1c7)]===_0xe98d53(0x1e8)){_0x33853b[_0x2c9f9a]=C(_0x33853b,_0x5a8f63);return;}_0x33853b[_0xe98d53(0x1c7)]===_0xe98d53(0x1e2)&&(_0x33853b[_0x2c9f9a]=C(_0x33853b,_0x5a8f63,_0x14c145?x(_0x33853b,_0x14c145):x(_0x33853b,_0x5a8f63)));}}function ae(_0x277839,_0xcf8269){const _0x167163=_0x1247;let _0x4bae76=y(_0x277839);return!_0xcf8269||_0x4bae76[_0x167163(0x1cf)]||_0x4bae76[_0x167163(0x1f5)][_0x167163(0x1ed)]===0x0||_0x4bae76['anchors'][_0x167163(0x1df)]({'id':_0x167163(0x203),'x':_0xcf8269['x'],'y':_0xcf8269['y'],'pointType':_0x167163(0x1c1)}),_0x4bae76;}function oe(_0x52dad7,_0x3152e9={}){const _0x5e6e11=_0x1247;let _0x635ab0=Math['max'](0x0,_0x3152e9['tolerance']??Math['max'](0x4,_0x52dad7['width']*0.35)),_0x4c7842=_0x3152e9[_0x5e6e11(0x1d6)]??(_0x287789=>'ink-centerline-'+_0x287789),_0x163b49=k(_0x52dad7['points'],_0x635ab0),_0x247ede=_0x163b49['map']((_0x123eda,_0x8430e4)=>({'id':_0x4c7842(_0x8430e4),'x':_0x123eda['x'],'y':_0x123eda['y'],'pointType':_0x5e6e11(0x20e)}));for(let _0x43d67e=0x0;_0x43d67e<_0x247ede[_0x5e6e11(0x1ed)]-0x1;_0x43d67e++)_0x247ede[_0x43d67e]['out']=ie(_0x163b49,_0x43d67e),_0x247ede[_0x43d67e+0x1]['in']=A(_0x163b49,_0x43d67e+0x1);return{'kind':_0x5e6e11(0x1d2),'closed':!0x1,'anchors':_0x247ede};}function se(_0xd65d76,_0x260f2a,_0x122b2e){const _0x54cada=_0x1247;let _0x311e37=null,_0x5aabf9=[_0x54cada(0x20f),'in',_0x54cada(0x1bb)];return _0xd65d76[_0x54cada(0x1f5)]['forEach']((_0x1a8fa2,_0x5092fb)=>{const _0x23b9e1=_0x54cada;_0x5aabf9[_0x23b9e1(0x1b3)](_0x9b76b3=>{const _0x295b8a=_0x23b9e1;if(!E(_0xd65d76,_0x5092fb,_0x9b76b3))return;let _0x591303=te(_0x1a8fa2,_0x9b76b3);if(!_0x591303)return;let _0x38d169=x(_0x260f2a,_0x591303);_0x38d169>_0x122b2e||_0x311e37&&_0x38d169>=_0x311e37[_0x295b8a(0x1ce)]||(_0x311e37={'handle':{'kind':_0x9b76b3,'anchorId':_0x1a8fa2['id']},'point':_(_0x591303),'distance':_0x38d169});});}),_0x311e37;}function ce(_0x456ec7,_0x1342ab,_0x5241e4){const _0x30e933=_0x1247;let _0x4f5f9a=null,_0x18e1df=_0x456ec7['closed']?_0x456ec7[_0x30e933(0x1f5)]['length']:Math[_0x30e933(0x202)](0x0,_0x456ec7['anchors'][_0x30e933(0x1ed)]-0x1);for(let _0x1c5331=0x0;_0x1c5331<_0x18e1df;_0x1c5331++){let _0x3b3342=T(_0x456ec7,_0x1c5331);if(!_0x3b3342)continue;let _0x2e5f17=D(_0x3b3342,0x0);for(let _0x53c210=0x1;_0x53c210<=0x20;_0x53c210++){let _0x348a90=D(_0x3b3342,_0x53c210/0x20),_0x31cbca=O(_0x1342ab,_0x2e5f17,_0x348a90),_0x585685=(_0x53c210-0x1+_0x31cbca[_0x30e933(0x1bd)])/0x20;(!_0x4f5f9a||_0x31cbca[_0x30e933(0x1ce)]<_0x4f5f9a['distance'])&&(_0x4f5f9a={'segmentIndex':_0x1c5331,'t':_0x585685,'point':_0x31cbca['point'],'distance':_0x31cbca[_0x30e933(0x1ce)]}),_0x2e5f17=_0x348a90;}}return _0x4f5f9a&&_0x4f5f9a['distance']<=_0x5241e4?_0x4f5f9a:null;}function le(_0x308173,_0x1d6259,_0x413623){const _0x42396a=_0x1247;let _0x5c34b9=y(_0x308173),_0x326a8f=w(_0x5c34b9,_0x1d6259[_0x42396a(0x1f6)]),_0x527886=T(_0x5c34b9,_0x1d6259[_0x42396a(0x1f6)]);if(!_0x326a8f||!_0x527886)return _0x5c34b9;let _0x43adc6=ne(_0x527886,Math[_0x42396a(0x202)](0x0,Math[_0x42396a(0x1ef)](0x1,_0x1d6259['t']))),_0x1fe348={'id':_0x413623(),'x':_0x43adc6[_0x42396a(0x1bf)][0x3]['x'],'y':_0x43adc6[_0x42396a(0x1bf)][0x3]['y'],'in':_(_0x43adc6[_0x42396a(0x1bf)][0x2]),'out':_(_0x43adc6['right'][0x1]),'pointType':_0x42396a(0x20e)};return _0x5c34b9[_0x42396a(0x1f5)][_0x326a8f[_0x42396a(0x1d4)]][_0x42396a(0x1bb)]=_(_0x43adc6['left'][0x1]),_0x5c34b9[_0x42396a(0x1f5)][_0x326a8f[_0x42396a(0x206)]]['in']=_(_0x43adc6[_0x42396a(0x1b2)][0x2]),_0x5c34b9[_0x42396a(0x1f5)][_0x42396a(0x1b9)](_0x326a8f['startIndex']+0x1,0x0,_0x1fe348),_0x5c34b9;}function ue(_0x4e6f4b,_0x4f3f96){const _0x59ccad=_0x1247;let _0x24bb7d=y(_0x4e6f4b);return _0x24bb7d[_0x59ccad(0x1f5)]=_0x24bb7d[_0x59ccad(0x1f5)][_0x59ccad(0x1c2)](_0x5f20b4=>_0x5f20b4['id']!==_0x4f3f96),_0x24bb7d[_0x59ccad(0x1cf)]&&_0x24bb7d[_0x59ccad(0x1f5)]['length']<0x3&&(_0x24bb7d[_0x59ccad(0x1cf)]=!0x1),_0x24bb7d;}function N(_0x39433b,_0x548243,_0x28e65a){const _0x480ed4=_0x1247;let _0x5af021=y(_0x39433b),_0x35e94b=_0x5af021[_0x480ed4(0x1f5)][_0x480ed4(0x1c9)](_0x5c1327=>_0x5c1327['id']===_0x548243),_0x44741d=_0x5af021[_0x480ed4(0x1f5)][_0x35e94b];if(!_0x44741d)return _0x5af021;if(_0x44741d[_0x480ed4(0x1c7)]=_0x28e65a,_0x28e65a===_0x480ed4(0x1c1))return delete _0x44741d['in'],delete _0x44741d[_0x480ed4(0x1bb)],_0x5af021;let _0x2e8346=j(_0x5af021,_0x35e94b);if(_0x44741d['in']=_0x44741d['in']?_(_0x44741d['in']):_0x2e8346['in'],_0x44741d['out']=_0x44741d[_0x480ed4(0x1bb)]?_(_0x44741d[_0x480ed4(0x1bb)]):_0x2e8346['out'],_0x28e65a===_0x480ed4(0x1e8)){let _0x4dfd64=Math[_0x480ed4(0x202)](x(_0x44741d,_0x44741d['in']),x(_0x44741d,_0x44741d[_0x480ed4(0x1bb)]),0x32),_0x5c4286=S({'x':_0x44741d[_0x480ed4(0x1bb)]['x']-_0x44741d['x'],'y':_0x44741d[_0x480ed4(0x1bb)]['y']-_0x44741d['y']});_0x44741d[_0x480ed4(0x1bb)]={'x':_0x44741d['x']+_0x5c4286['x']*_0x4dfd64,'y':_0x44741d['y']+_0x5c4286['y']*_0x4dfd64},_0x44741d['in']={'x':_0x44741d['x']-_0x5c4286['x']*_0x4dfd64,'y':_0x44741d['y']-_0x5c4286['y']*_0x4dfd64};}else _0x28e65a===_0x480ed4(0x1e2)&&M(_0x44741d,_0x480ed4(0x1bb));return _0x5af021;}function P(_0xa618a8,_0x463033){const _0x8be365=_0x1247;let _0x20aa60=_0xa618a8['anchors'][_0x8be365(0x1cd)](_0x18ad7c=>_0x18ad7c['id']===_0x463033),_0x1f9ae1=(_0x20aa60==null?void 0x0:_0x20aa60[_0x8be365(0x1c7)])??_0x8be365(0x1c1);return N(_0xa618a8,_0x463033,_0x1f9ae1==='corner'?_0x8be365(0x1e2):_0x1f9ae1==='smooth'?'symmetric':_0x1f9ae1===_0x8be365(0x1e8)?_0x8be365(0x20e):_0x8be365(0x1c1));}function F(_0x4a039a,_0x2b9371,_0x5f00e1){const _0x4791d9=_0x1247;let _0x3085ee=y(_0x4a039a),_0x5e2a5c=_0x3085ee[_0x4791d9(0x1f5)][_0x4791d9(0x1cd)](_0x58e062=>_0x58e062['id']===_0x2b9371[_0x4791d9(0x1f3)]);if(!_0x5e2a5c)return _0x3085ee;if(_0x2b9371[_0x4791d9(0x1fd)]==='anchor'){let _0xd638f3={'x':_0x5f00e1['x']-_0x5e2a5c['x'],'y':_0x5f00e1['y']-_0x5e2a5c['y']};return _0x5e2a5c['x']=_0x5f00e1['x'],_0x5e2a5c['y']=_0x5f00e1['y'],_0x5e2a5c['in']&&={'x':_0x5e2a5c['in']['x']+_0xd638f3['x'],'y':_0x5e2a5c['in']['y']+_0xd638f3['y']},_0x5e2a5c[_0x4791d9(0x1bb)]&&={'x':_0x5e2a5c[_0x4791d9(0x1bb)]['x']+_0xd638f3['x'],'y':_0x5e2a5c[_0x4791d9(0x1bb)]['y']+_0xd638f3['y']},_0x3085ee;}return _0x5e2a5c[_0x2b9371[_0x4791d9(0x1fd)]]=_(_0x5f00e1),_0x5e2a5c[_0x4791d9(0x1c7)]===_0x4791d9(0x1c1)&&(_0x5e2a5c[_0x4791d9(0x1c7)]=_0x4791d9(0x20e)),M(_0x5e2a5c,_0x2b9371[_0x4791d9(0x1fd)]),_0x3085ee;}const I=1e-9;function L(_0x3c3c6f){const _0x5240eb=_0x1247;let _0x3a1471=Math[_0x5240eb(0x1dd)](_0x3c3c6f*0x2710)/0x2710;return Object['is'](_0x3a1471,-0x0)?'0':String(_0x3a1471);}function R(_0x520fa0){return L(_0x520fa0['x'])+'\x20'+L(_0x520fa0['y']);}function z(_0x5446b6,_0x5c1f56){return{'x':_0x5446b6['x']-_0x5c1f56['x'],'y':_0x5446b6['y']-_0x5c1f56['y']};}function B(_0x1a5fe3,_0x40cfe4,_0x734106,_0xeffc3a,_0x304628){let _0x2ebf48=0x1-_0x304628;return{'x':_0x2ebf48*_0x2ebf48*_0x2ebf48*_0x1a5fe3['x']+0x3*_0x2ebf48*_0x2ebf48*_0x304628*_0x40cfe4['x']+0x3*_0x2ebf48*_0x304628*_0x304628*_0x734106['x']+_0x304628*_0x304628*_0x304628*_0xeffc3a['x'],'y':_0x2ebf48*_0x2ebf48*_0x2ebf48*_0x1a5fe3['y']+0x3*_0x2ebf48*_0x2ebf48*_0x304628*_0x40cfe4['y']+0x3*_0x2ebf48*_0x304628*_0x304628*_0x734106['y']+_0x304628*_0x304628*_0x304628*_0xeffc3a['y']};}function V(_0x22d728,_0xf1bceb,_0xaab2e7,_0x3150d){const _0xe3bf82=_0x1247;let _0x4963a0=-_0x22d728+0x3*_0xf1bceb-0x3*_0xaab2e7+_0x3150d,_0x3bff0e=0x3*_0x22d728-0x6*_0xf1bceb+0x3*_0xaab2e7,_0x4ffea5=-0x3*_0x22d728+0x3*_0xf1bceb,_0xb69f5d=[];if(Math['abs'](_0x4963a0)<I){if(Math[_0xe3bf82(0x1e3)](_0x3bff0e)<I)return _0xb69f5d;let _0x133d0e=-_0x4ffea5/(0x2*_0x3bff0e);return _0x133d0e>0x0&&_0x133d0e<0x1&&_0xb69f5d[_0xe3bf82(0x1df)](_0x133d0e),_0xb69f5d;}let _0x8eb0eb=_0x3bff0e*_0x3bff0e-0x3*_0x4963a0*_0x4ffea5;if(_0x8eb0eb<0x0)return _0xb69f5d;let _0x21174d=Math[_0xe3bf82(0x201)](Math[_0xe3bf82(0x202)](0x0,_0x8eb0eb)),_0x2c215f=(-_0x3bff0e+_0x21174d)/(0x3*_0x4963a0),_0x2ca7d4=(-_0x3bff0e-_0x21174d)/(0x3*_0x4963a0);return _0x2c215f>0x0&&_0x2c215f<0x1&&_0xb69f5d['push'](_0x2c215f),_0x2ca7d4>0x0&&_0x2ca7d4<0x1&&Math[_0xe3bf82(0x1e3)](_0x2ca7d4-_0x2c215f)>I&&_0xb69f5d[_0xe3bf82(0x1df)](_0x2ca7d4),_0xb69f5d;}function H(_0x1c13ff,_0xba6486,_0x12b2ed,_0x5a8d5d,_0xe60b72){const _0x367d44=_0x1247;_0x1c13ff[_0x367d44(0x1df)](_0xba6486,_0xe60b72),new Set([...V(_0xba6486['x'],_0x12b2ed['x'],_0x5a8d5d['x'],_0xe60b72['x']),...V(_0xba6486['y'],_0x12b2ed['y'],_0x5a8d5d['y'],_0xe60b72['y'])])[_0x367d44(0x1b3)](_0x4443f5=>{const _0x3e8b35=_0x367d44;_0x1c13ff[_0x3e8b35(0x1df)](B(_0xba6486,_0x12b2ed,_0x5a8d5d,_0xe60b72,_0x4443f5));});}function U(_0x2d4e99){const _0x159a8e=_0x1247;let _0xfe2a3a=_0x2d4e99[_0x159a8e(0x1f5)];if(_0xfe2a3a[_0x159a8e(0x1ed)]<=0x1)return _0xfe2a3a;let _0x46f4ed=[];for(let _0x2f3aa=0x1;_0x2f3aa<_0xfe2a3a[_0x159a8e(0x1ed)];_0x2f3aa++){let _0x4520fd=_0xfe2a3a[_0x2f3aa-0x1],_0x51134d=_0xfe2a3a[_0x2f3aa];H(_0x46f4ed,_0x4520fd,_0x4520fd[_0x159a8e(0x1bb)]??_0x4520fd,_0x51134d['in']??_0x51134d,_0x51134d);}if(_0x2d4e99['closed']&&_0xfe2a3a[_0x159a8e(0x1ed)]>0x1){let _0x14349e=_0xfe2a3a[_0xfe2a3a['length']-0x1],_0x3d8981=_0xfe2a3a[0x0];H(_0x46f4ed,_0x14349e,_0x14349e[_0x159a8e(0x1bb)]??_0x14349e,_0x3d8981['in']??_0x3d8981,_0x3d8981);}return _0x46f4ed;}function de(_0x44e1a1){const _0x11a065=_0x1247;let _0x14d706=_0x44e1a1[_0x11a065(0x208)];if(_0x14d706[_0x11a065(0x1ed)]<=0x1)return _0x14d706;let _0x37eccd=[];for(let _0x38c76f=0x0;_0x38c76f<_0x14d706[_0x11a065(0x1ed)]-0x1;_0x38c76f++){let _0x3d53c0=_0x14d706[_0x38c76f],_0x5c3a96=_0x14d706[_0x38c76f+0x1],_0x16f184=_0x14d706[_0x38c76f-0x1]??_0x3d53c0,_0x410d20=_0x14d706[_0x38c76f+0x2]??_0x5c3a96;H(_0x37eccd,_0x3d53c0,{'x':_0x3d53c0['x']+(_0x5c3a96['x']-_0x16f184['x'])/0x6,'y':_0x3d53c0['y']+(_0x5c3a96['y']-_0x16f184['y'])/0x6},{'x':_0x5c3a96['x']-(_0x410d20['x']-_0x3d53c0['x'])/0x6,'y':_0x5c3a96['y']-(_0x410d20['y']-_0x3d53c0['y'])/0x6},_0x5c3a96);}return _0x37eccd;}function fe(_0x1c6dba){const _0x259052=_0x1247;return _0x1c6dba[_0x259052(0x1fd)]===_0x259052(0x1d2)?U(_0x1c6dba):de(_0x1c6dba);}function W(_0x29f00a){const _0x4ea077=_0x1247;let _0x173a25=Math[_0x4ea077(0x1dd)](_0x29f00a*0x2710)/0x2710;return Object['is'](_0x173a25,-0x0)?0x0:_0x173a25;}function _0x5e32(){const _0x6b4596=['get','length','1.0.4','min','defineProperty','type','version','anchorId','norm','anchors','segmentIndex','opacity','height','_injector','object','_commandService','add','kind','start','UNIVER_UNKNOWN','onStarting','sqrt','max','__ink-preview-anchor__','join','symbol','endIndex','Rect','points','9772854ugicMH','_adapters','disposeWithMe','_config','map','free','anchor','ink.host-adapter.service','ink.config','3170100dmWcbD','fillColor','constructor','right','forEach','pluginName','@univerjs-pro/ink','Round','function','packageName','splice','iterator','out','831818YGeVfc','ratio','prototype','left','hypot','corner','filter','string','SolidFill','getOwnPropertyDescriptor','24FtfkoO','pointType','color','findIndex','default','2054105IMBKKN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','find','distance','closed','beginInkMode','6emhOSm','pen','8943147sEEyGH','startIndex','createCustomShape','createId','_configService','415744PpCgef','toPrimitive','registerAdapter','643728FfMiXI','setConfig','round','call','push','ink.operation.start','none','smooth','abs','indexOf','slice','NoFill','width','symmetric','tool','#f54a45','end'];_0x5e32=function(){return _0x6b4596;};return _0x5e32();}function _0x1247(_0x4ebae6,_0x51afc5){_0x4ebae6=_0x4ebae6-0x1ad;const _0x5e32d8=_0x5e32();let _0x12470c=_0x5e32d8[_0x4ebae6];return _0x12470c;}function G(_0x13fb34){const _0x4f0c20=_0x1247;let _0x107ea4=fe(_0x13fb34);if(_0x107ea4['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4cc750=Math['min'](..._0x107ea4['map'](_0x6619aa=>_0x6619aa['x'])),_0x17d386=Math[_0x4f0c20(0x1ef)](..._0x107ea4[_0x4f0c20(0x20d)](_0x4abcb4=>_0x4abcb4['y'])),_0x1b16b4=Math[_0x4f0c20(0x202)](..._0x107ea4['map'](_0x3f41d2=>_0x3f41d2['x'])),_0xcb32cd=Math[_0x4f0c20(0x202)](..._0x107ea4[_0x4f0c20(0x20d)](_0x59904e=>_0x59904e['y']));return{'left':W(_0x4cc750),'top':W(_0x17d386),'width':W(Math[_0x4f0c20(0x202)](0x1,_0x1b16b4-_0x4cc750)),'height':W(Math[_0x4f0c20(0x202)](0x1,_0xcb32cd-_0x17d386))};}function pe(_0x16ffbd,_0x506aca){const _0x4d1dfb=_0x1247;let _0x5b204c=_0x16ffbd[_0x4d1dfb(0x1f5)];if(_0x5b204c[_0x4d1dfb(0x1ed)]===0x0)return'';let _0x43588d=['M\x20'+R(z(_0x5b204c[0x0],_0x506aca))];for(let _0x3415d1=0x1;_0x3415d1<_0x5b204c[_0x4d1dfb(0x1ed)];_0x3415d1++){let _0x29b1a1=_0x5b204c[_0x3415d1-0x1],_0x3659ac=_0x5b204c[_0x3415d1],_0x4c30b2=_0x29b1a1[_0x4d1dfb(0x1bb)]??_0x29b1a1,_0x11f834=_0x3659ac['in']??_0x3659ac;_0x43588d[_0x4d1dfb(0x1df)]('C\x20'+R(z(_0x4c30b2,_0x506aca))+'\x20'+R(z(_0x11f834,_0x506aca))+'\x20'+R(z(_0x3659ac,_0x506aca)));}if(_0x16ffbd[_0x4d1dfb(0x1cf)]&&_0x5b204c[_0x4d1dfb(0x1ed)]>0x1){let _0xa4a418=_0x5b204c[_0x5b204c[_0x4d1dfb(0x1ed)]-0x1],_0xe0573=_0x5b204c[0x0],_0x182642=_0xa4a418[_0x4d1dfb(0x1bb)]??_0xa4a418,_0x4509b1=_0xe0573['in']??_0xe0573;_0x43588d[_0x4d1dfb(0x1df)]('C\x20'+R(z(_0x182642,_0x506aca))+'\x20'+R(z(_0x4509b1,_0x506aca))+'\x20'+R(z(_0xe0573,_0x506aca))),_0x43588d['push']('Z');}return _0x43588d[_0x4d1dfb(0x204)]('\x20');}function me(_0x17f697,_0x4a50af){const _0x58990b=_0x1247;let _0x33d50e=_0x17f697[_0x58990b(0x208)][_0x58990b(0x20d)](_0x506ddb=>z(_0x506ddb,_0x4a50af));if(_0x33d50e['length']===0x0)return'';if(_0x33d50e[_0x58990b(0x1ed)]===0x1)return'M\x20'+R(_0x33d50e[0x0]);let _0x10cc32=['M\x20'+R(_0x33d50e[0x0])];for(let _0x29251c=0x0;_0x29251c<_0x33d50e[_0x58990b(0x1ed)]-0x1;_0x29251c++){let _0x3a31be=_0x33d50e[_0x29251c],_0x4239cf=_0x33d50e[_0x29251c+0x1],_0x416d6b=_0x33d50e[_0x29251c-0x1]??_0x3a31be,_0x263443=_0x33d50e[_0x29251c+0x2]??_0x4239cf,_0x1c15da={'x':_0x3a31be['x']+(_0x4239cf['x']-_0x416d6b['x'])/0x6,'y':_0x3a31be['y']+(_0x4239cf['y']-_0x416d6b['y'])/0x6},_0x4b38de={'x':_0x4239cf['x']-(_0x263443['x']-_0x3a31be['x'])/0x6,'y':_0x4239cf['y']-(_0x263443['y']-_0x3a31be['y'])/0x6};_0x10cc32[_0x58990b(0x1df)]('C\x20'+R(_0x1c15da)+'\x20'+R(_0x4b38de)+'\x20'+R(_0x4239cf));}return _0x10cc32[_0x58990b(0x204)]('\x20');}function he(_0x45efc5,_0x1aa8e5){const _0x41ff42=_0x1247;return _0x45efc5['kind']===_0x41ff42(0x1d2)?pe(_0x45efc5,_0x1aa8e5):me(_0x45efc5,_0x1aa8e5);}function ge(_0x25df27,_0x127288){const _0x2449cc=_0x1247;return _0x127288!=null&&_0x127288[_0x2449cc(0x1c8)]?_0x127288['color']:_0x25df27[_0x2449cc(0x1fd)]===_0x2449cc(0x1d2)?_0x2449cc(0x1ea):_0x25df27[_0x2449cc(0x1c8)];}function _e(_0x2f7fd0,_0x55f884){const _0x189ca0=_0x1247;return(_0x55f884==null?void 0x0:_0x55f884['width'])===void 0x0?_0x2f7fd0[_0x189ca0(0x1fd)]===_0x189ca0(0x1d2)?0x2:_0x2f7fd0['width']:_0x55f884[_0x189ca0(0x1e7)];}function ve(_0x4b78e4,_0x1c9225){const _0x5c3791=_0x1247;return(_0x1c9225==null?void 0x0:_0x1c9225[_0x5c3791(0x1f7)])===void 0x0?_0x4b78e4[_0x5c3791(0x1fd)]===_0x5c3791(0x1d2)?void 0x0:_0x4b78e4['opacity']:_0x1c9225[_0x5c3791(0x1f7)];}function ye(_0x591fe8,_0x13d0ba){const _0x1e0b6d=_0x1247;let _0x35ec6c=G(_0x591fe8),_0x278053=he(_0x591fe8,{'x':_0x35ec6c[_0x1e0b6d(0x1bf)],'y':_0x35ec6c['top']}),_0x1c5fdc=_0x591fe8[_0x1e0b6d(0x1fd)]===_0x1e0b6d(0x1d2)&&_0x591fe8[_0x1e0b6d(0x1cf)],_0x16cf34=_0x13d0ba==null?void 0x0:_0x13d0ba[_0x1e0b6d(0x1b0)];return{'shapeType':_0x49cd1d[_0x1e0b6d(0x207)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x35ec6c['width'],'h':_0x35ec6c[_0x1e0b6d(0x1f8)],'fill':_0x1c5fdc?_0x1e0b6d(0x1f4):_0x1e0b6d(0x1e1),'stroke':!0x0,'data':_0x278053,'dataArray':be(_0x591fe8,{'x':_0x35ec6c[_0x1e0b6d(0x1bf)],'y':_0x35ec6c['top']})}]},'fill':_0x1c5fdc&&_0x16cf34?{'color':_0x16cf34,'fillType':_0x1ab911[_0x1e0b6d(0x1c4)]}:{'fillType':_0x1ab911[_0x1e0b6d(0x1e6)]},'stroke':{'color':ge(_0x591fe8,_0x13d0ba),'width':_e(_0x591fe8,_0x13d0ba),'opacity':ve(_0x591fe8,_0x13d0ba),'lineStrokeType':_0xb40238['SolidLine'],'capType':_0x52c57b[_0x1e0b6d(0x1b6)],'lineJoinType':_0x2ef3aa['Round']}};}function K(_0x25c047,_0x10945b){return{'x':_0x25c047['x']-_0x10945b['x'],'y':_0x25c047['y']-_0x10945b['y']};}function be(_0x49ae24,_0x3407d0){const _0x3f384c=_0x1247;if(_0x49ae24['kind']==='pen'){let _0x5af152=_0x49ae24[_0x3f384c(0x1f5)];if(_0x5af152[_0x3f384c(0x1ed)]===0x0)return[];let _0x3b818e=K(_0x5af152[0x0],_0x3407d0),_0x52062a=[{'command':'M','points':[_0x3b818e['x'],_0x3b818e['y']]}];for(let _0x189eb8=0x1;_0x189eb8<_0x5af152['length'];_0x189eb8++){let _0x41ff1b=_0x5af152[_0x189eb8-0x1],_0x4a50ee=_0x5af152[_0x189eb8],_0xbd7825=K(_0x41ff1b[_0x3f384c(0x1bb)]??_0x41ff1b,_0x3407d0),_0x266250=K(_0x4a50ee['in']??_0x4a50ee,_0x3407d0),_0x36b690=K(_0x4a50ee,_0x3407d0);_0x52062a['push']({'command':'C','points':[_0xbd7825['x'],_0xbd7825['y'],_0x266250['x'],_0x266250['y'],_0x36b690['x'],_0x36b690['y']]});}if(_0x49ae24[_0x3f384c(0x1cf)]&&_0x5af152[_0x3f384c(0x1ed)]>0x1){let _0x12bc0a=_0x5af152[_0x5af152['length']-0x1],_0x261cde=_0x5af152[0x0],_0x173658=K(_0x12bc0a['out']??_0x12bc0a,_0x3407d0),_0x3eb37e=K(_0x261cde['in']??_0x261cde,_0x3407d0),_0x5e4df2=K(_0x261cde,_0x3407d0);_0x52062a[_0x3f384c(0x1df)]({'command':'C','points':[_0x173658['x'],_0x173658['y'],_0x3eb37e['x'],_0x3eb37e['y'],_0x5e4df2['x'],_0x5e4df2['y']]}),_0x52062a[_0x3f384c(0x1df)]({'command':'z','points':[]});}return _0x52062a;}let _0x447ab4=_0x49ae24['points'][_0x3f384c(0x20d)](_0x3b9559=>K(_0x3b9559,_0x3407d0));if(_0x447ab4[_0x3f384c(0x1ed)]===0x0)return[];let _0x51a118=[{'command':'M','points':[_0x447ab4[0x0]['x'],_0x447ab4[0x0]['y']]}];for(let _0x1064e5=0x0;_0x1064e5<_0x447ab4['length']-0x1;_0x1064e5++){let _0x8547f7=_0x447ab4[_0x1064e5],_0x1ac900=_0x447ab4[_0x1064e5+0x1],_0x397300=_0x447ab4[_0x1064e5-0x1]??_0x8547f7,_0x25d6aa=_0x447ab4[_0x1064e5+0x2]??_0x1ac900,_0x120c79={'x':_0x8547f7['x']+(_0x1ac900['x']-_0x397300['x'])/0x6,'y':_0x8547f7['y']+(_0x1ac900['y']-_0x397300['y'])/0x6},_0x4a3ce1={'x':_0x1ac900['x']-(_0x25d6aa['x']-_0x8547f7['x'])/0x6,'y':_0x1ac900['y']-(_0x25d6aa['y']-_0x8547f7['y'])/0x6};_0x51a118[_0x3f384c(0x1df)]({'command':'C','points':[_0x120c79['x'],_0x120c79['y'],_0x4a3ce1['x'],_0x4a3ce1['y'],_0x1ac900['x'],_0x1ac900['y']]});}return _0x51a118;}function xe(_0x135e67){const _0x2240d5=_0x1247;let {model:_0x4a3419,sourceModel:_0x40ffa6=_0x4a3419,style:_0x27821f}=_0x135e67,_0x5b67e1=_0x135e67[_0x2240d5(0x1e9)]??_0x4a3419['kind'],_0x135f65=G(_0x4a3419),_0x1a8056=_0x4a3419[_0x2240d5(0x1fd)]===_0x2240d5(0x1d2)&&_0x5b67e1!=='pen'?_0x4a3419:void 0x0;return{'transform':{..._0x135f65,'rotation':0x0},'shapeData':ye(_0x4a3419,_0x27821f),'ink':{'version':0x1,'tool':_0x5b67e1,'sourceModel':_0x40ffa6,..._0x1a8056?{'editModel':_0x1a8056}:{},'normalizedBounds':_0x135f65}};}var Se=_0x4d5c9d(0x1b5),Ce=_0x4d5c9d(0x1ee);function q(_0x523eb3){'@babel/helpers - typeof';const _0x3aef37=_0x4d5c9d;return q=typeof Symbol==_0x3aef37(0x1b7)&&typeof Symbol[_0x3aef37(0x1ba)]==_0x3aef37(0x205)?function(_0x59cb69){return typeof _0x59cb69;}:function(_0x38333e){const _0x2ec18e=_0x3aef37;return _0x38333e&&typeof Symbol==_0x2ec18e(0x1b7)&&_0x38333e[_0x2ec18e(0x1b1)]===Symbol&&_0x38333e!==Symbol[_0x2ec18e(0x1be)]?'symbol':typeof _0x38333e;},q(_0x523eb3);}function we(_0x516bd9,_0x4c917f){const _0x42dce3=_0x4d5c9d;if(q(_0x516bd9)!=_0x42dce3(0x1fa)||!_0x516bd9)return _0x516bd9;var _0x5cb0d1=_0x516bd9[Symbol[_0x42dce3(0x1d9)]];if(_0x5cb0d1!==void 0x0){var _0x155937=_0x5cb0d1[_0x42dce3(0x1de)](_0x516bd9,_0x4c917f||_0x42dce3(0x1ca));if(q(_0x155937)!=_0x42dce3(0x1fa))return _0x155937;throw TypeError(_0x42dce3(0x1cc));}return(_0x4c917f===_0x42dce3(0x1c3)?String:Number)(_0x516bd9);}function J(_0x316c5b){const _0x934e81=_0x4d5c9d;var _0x11ab0c=we(_0x316c5b,_0x934e81(0x1c3));return q(_0x11ab0c)==_0x934e81(0x205)?_0x11ab0c:_0x11ab0c+'';}function Y(_0x1292fa,_0x169b40,_0xfb5be2){const _0x1573ed=_0x4d5c9d;return(_0x169b40=J(_0x169b40))in _0x1292fa?Object[_0x1573ed(0x1f0)](_0x1292fa,_0x169b40,{'value':_0xfb5be2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1292fa[_0x169b40]=_0xfb5be2,_0x1292fa;}const X=_0x5f2cbd(_0x4d5c9d(0x1ad));var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x4d5c9d(0x1da)](_0x9beaca){const _0x1fb571=_0x4d5c9d;return this[_0x1fb571(0x20a)][_0x1fb571(0x1df)](_0x9beaca),_0x5a5fba(()=>{const _0x64f852=_0x1fb571;let _0x17feb0=this[_0x64f852(0x20a)][_0x64f852(0x1e4)](_0x9beaca);_0x17feb0>=0x0&&this[_0x64f852(0x20a)][_0x64f852(0x1b9)](_0x17feb0,0x1);});}[_0x4d5c9d(0x1d0)](_0x1097ce){const _0x5c3a86=_0x4d5c9d;for(let _0x5e03b5 of this[_0x5c3a86(0x20a)])if(_0x5e03b5[_0x5c3a86(0x1d0)](_0x1097ce))return!0x0;return!0x1;}async[_0x4d5c9d(0x1d5)](_0x55619c){const _0x574625=_0x4d5c9d;for(let _0x570e6a of this['_adapters'])if(_0x570e6a['createCustomShape']&&await _0x570e6a[_0x574625(0x1d5)](_0x55619c))return!0x0;return!0x1;}};const Ee={'id':_0x4d5c9d(0x1e0),'type':_0x274185['OPERATION'],'handler':(_0x90e071,_0x25aab6)=>_0x25aab6?_0x90e071[_0x4d5c9d(0x1ec)](X)[_0x4d5c9d(0x1d0)](_0x25aab6):!0x1},Z={};function Q(_0x52643a,_0x30049b){return function(_0x3b837a,_0x44a9c6){_0x30049b(_0x3b837a,_0x44a9c6,_0x52643a);};}function De(_0x4c0535,_0x124e26,_0xdab5cd,_0x1b4623){const _0x4c4ad1=_0x4d5c9d;var _0x124e17=arguments[_0x4c4ad1(0x1ed)],_0x249b66=_0x124e17<0x3?_0x124e26:_0x1b4623===null?_0x1b4623=Object[_0x4c4ad1(0x1c5)](_0x124e26,_0xdab5cd):_0x1b4623,_0x15ca01;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x4c4ad1(0x1b7))_0x249b66=Reflect['decorate'](_0x4c0535,_0x124e26,_0xdab5cd,_0x1b4623);else{for(var _0x52ba24=_0x4c0535[_0x4c4ad1(0x1ed)]-0x1;_0x52ba24>=0x0;_0x52ba24--)(_0x15ca01=_0x4c0535[_0x52ba24])&&(_0x249b66=(_0x124e17<0x3?_0x15ca01(_0x249b66):_0x124e17>0x3?_0x15ca01(_0x124e26,_0xdab5cd,_0x249b66):_0x15ca01(_0x124e26,_0xdab5cd))||_0x249b66);}return _0x124e17>0x3&&_0x249b66&&Object[_0x4c4ad1(0x1f0)](_0x124e26,_0xdab5cd,_0x249b66),_0x249b66;}let $=class extends _0xd72275{constructor(_0x4e0fcd=Z,_0x4e9818,_0x212146,_0xde7c23){const _0xbcdfba=_0x4d5c9d;super(),this[_0xbcdfba(0x20c)]=_0x4e0fcd,this[_0xbcdfba(0x1f9)]=_0x4e9818,this[_0xbcdfba(0x1fb)]=_0x212146,this[_0xbcdfba(0x1d7)]=_0xde7c23;let {..._0x547ea9}=_0xe94c79({},Z,this[_0xbcdfba(0x20c)]);this[_0xbcdfba(0x1d7)][_0xbcdfba(0x1dc)](_0xbcdfba(0x1ae),_0x547ea9);}[_0x4d5c9d(0x200)](){const _0x4fcce1=_0x4d5c9d;[[X,{'useClass':Te}]]['forEach'](_0x5b972f=>this[_0x4fcce1(0x1f9)][_0x4fcce1(0x1fc)](_0x5b972f)),this[_0x4fcce1(0x20b)](this['_commandService']['registerCommand'](Ee));}};Y($,_0x4d5c9d(0x1b4),'UNIVER_INK_PLUGIN'),Y($,_0x4d5c9d(0x1b8),Se),Y($,_0x4d5c9d(0x1f2),Ce),Y($,_0x4d5c9d(0x1f1),_0x5eeb86[_0x4d5c9d(0x1ff)]),$=De([_0x2f0a1b(_0x57a878),Q(0x1,_0x304ec7(_0x404c68)),Q(0x2,_0x18c36a),Q(0x3,_0x4e83c9)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
1
+ const _0x428ca5=_0x34f4;(function(_0x2a7a23,_0x31913){const _0x260a18=_0x34f4,_0x10d146=_0x2a7a23();while(!![]){try{const _0x27909c=parseInt(_0x260a18(0x110))/0x1+-parseInt(_0x260a18(0xe3))/0x2*(parseInt(_0x260a18(0xfe))/0x3)+-parseInt(_0x260a18(0xda))/0x4*(parseInt(_0x260a18(0x12d))/0x5)+-parseInt(_0x260a18(0xe2))/0x6+parseInt(_0x260a18(0xeb))/0x7*(parseInt(_0x260a18(0xd8))/0x8)+parseInt(_0x260a18(0x10a))/0x9+-parseInt(_0x260a18(0xfb))/0xa*(parseInt(_0x260a18(0xfa))/0xb);if(_0x27909c===_0x31913)break;else _0x10d146['push'](_0x10d146['shift']());}catch(_0x4c031b){_0x10d146['push'](_0x10d146['shift']());}}}(_0x52c8,0x6d5e7));import{ShapeFillEnum as _0x1da015,ShapeLineCapEnum as _0x1d6166,ShapeLineJoinEnum as _0x439b44,ShapeLineTypeEnum as _0x5d98d2,ShapeTypeEnum as _0x9ecee9}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x44e568}from'@univerjs-pro/license';import{CommandType as _0x262274,DependentOn as _0x51330d,ICommandService as _0x2a482d,IConfigService as _0x37a4f2,Inject as _0x89bb4c,Injector as _0x169e64,Plugin as _0xd5747,UniverInstanceType as _0x57679c,createIdentifier as _0x290056,merge as _0x18dd0a,toDisposable as _0x243018}from'@univerjs/core';const g=0.0001;function _(_0x27b282){return{'x':_0x27b282['x'],'y':_0x27b282['y']};}function v(_0x431c4c){const _0x883d89=_0x34f4;return{..._0x431c4c,'in':_0x431c4c['in']?_(_0x431c4c['in']):void 0x0,'out':_0x431c4c[_0x883d89(0xe0)]?_(_0x431c4c[_0x883d89(0xe0)]):void 0x0};}function y(_0x30f9af){const _0x81267=_0x34f4;return{'kind':_0x81267(0x11e),'closed':_0x30f9af['closed'],'anchors':_0x30f9af[_0x81267(0x10d)][_0x81267(0xee)](v)};}function b(_0x4d4208,_0x3e6b00,_0x52e7c8){return{'x':_0x4d4208['x']+(_0x3e6b00['x']-_0x4d4208['x'])*_0x52e7c8,'y':_0x4d4208['y']+(_0x3e6b00['y']-_0x4d4208['y'])*_0x52e7c8};}function x(_0x2a10b2,_0x3bb84f){return Math['hypot'](_0x2a10b2['x']-_0x3bb84f['x'],_0x2a10b2['y']-_0x3bb84f['y']);}function S(_0x2ccd49){const _0x117a1c=_0x34f4;let _0x450be1=Math[_0x117a1c(0xf8)](_0x2ccd49['x'],_0x2ccd49['y']);return _0x450be1<g?{'x':0x1,'y':0x0}:{'x':_0x2ccd49['x']/_0x450be1,'y':_0x2ccd49['y']/_0x450be1};}function C(_0x39245c,_0x29e9a6,_0x3dc761=x(_0x39245c,_0x29e9a6)){let _0x264866=S({'x':_0x39245c['x']-_0x29e9a6['x'],'y':_0x39245c['y']-_0x29e9a6['y']});return{'x':_0x39245c['x']+_0x264866['x']*_0x3dc761,'y':_0x39245c['y']+_0x264866['y']*_0x3dc761};}function w(_0x27668a,_0x1d36d9){const _0x1c27a0=_0x34f4;let {anchors:_0x5bbda3}=_0x27668a;return _0x5bbda3['length']<0x2||_0x1d36d9<0x0?null:_0x1d36d9<_0x5bbda3[_0x1c27a0(0x12a)]-0x1?{'startIndex':_0x1d36d9,'endIndex':_0x1d36d9+0x1,'start':_0x5bbda3[_0x1d36d9],'end':_0x5bbda3[_0x1d36d9+0x1]}:_0x27668a[_0x1c27a0(0x108)]&&_0x1d36d9===_0x5bbda3['length']-0x1?{'startIndex':_0x5bbda3[_0x1c27a0(0x12a)]-0x1,'endIndex':0x0,'start':_0x5bbda3[_0x5bbda3[_0x1c27a0(0x12a)]-0x1],'end':_0x5bbda3[0x0]}:null;}function T(_0x453668,_0x323623){const _0x78facb=_0x34f4;let _0x4e1ef=w(_0x453668,_0x323623);return _0x4e1ef?[_0x4e1ef[_0x78facb(0x124)],_0x4e1ef[_0x78facb(0x124)][_0x78facb(0xe0)]??_0x4e1ef[_0x78facb(0x124)],_0x4e1ef['end']['in']??_0x4e1ef['end'],_0x4e1ef['end']]:null;}function te(_0x54f12d,_0x2a6d24){const _0x4e4746=_0x34f4;return _0x2a6d24===_0x4e4746(0xea)?_0x54f12d:_0x54f12d[_0x2a6d24]??null;}function E(_0x2c0d7b,_0x1c2156,_0x987321){const _0x480e84=_0x34f4;return _0x987321==='anchor'||_0x2c0d7b[_0x480e84(0x108)]?!0x0:_0x987321==='in'?_0x1c2156>0x0:_0x1c2156<_0x2c0d7b[_0x480e84(0x10d)][_0x480e84(0x12a)]-0x1;}function D(_0x45a996,_0x18502e){let [_0x7d9f2a,_0x14ed0d,_0x28ff51,_0x17141f]=_0x45a996,_0x134544=b(_0x7d9f2a,_0x14ed0d,_0x18502e),_0x1cb0c6=b(_0x14ed0d,_0x28ff51,_0x18502e),_0x435df4=b(_0x28ff51,_0x17141f,_0x18502e);return b(b(_0x134544,_0x1cb0c6,_0x18502e),b(_0x1cb0c6,_0x435df4,_0x18502e),_0x18502e);}function ne(_0x4b840c,_0x4f08c5){let [_0x44fe60,_0x1e1f40,_0x5b764a,_0x3584c8]=_0x4b840c,_0x116aac=b(_0x44fe60,_0x1e1f40,_0x4f08c5),_0x4567c5=b(_0x1e1f40,_0x5b764a,_0x4f08c5),_0x1eb00a=b(_0x5b764a,_0x3584c8,_0x4f08c5),_0x936904=b(_0x116aac,_0x4567c5,_0x4f08c5),_0x158a9c=b(_0x4567c5,_0x1eb00a,_0x4f08c5),_0x2c43b4=b(_0x936904,_0x158a9c,_0x4f08c5);return{'left':[_0x44fe60,_0x116aac,_0x936904,_0x2c43b4],'right':[_0x2c43b4,_0x158a9c,_0x1eb00a,_0x3584c8]};}function O(_0x1d0fd8,_0x7fd4d1,_0x4f42a8){const _0x43b7c8=_0x34f4;let _0x442bcf=_0x4f42a8['x']-_0x7fd4d1['x'],_0x3b7125=_0x4f42a8['y']-_0x7fd4d1['y'],_0x4b7eab=_0x442bcf*_0x442bcf+_0x3b7125*_0x3b7125,_0x498553=_0x4b7eab<=g?0x0:Math[_0x43b7c8(0x117)](0x0,Math[_0x43b7c8(0x122)](0x1,((_0x1d0fd8['x']-_0x7fd4d1['x'])*_0x442bcf+(_0x1d0fd8['y']-_0x7fd4d1['y'])*_0x3b7125)/_0x4b7eab)),_0x1c3f29={'x':_0x7fd4d1['x']+_0x442bcf*_0x498553,'y':_0x7fd4d1['y']+_0x3b7125*_0x498553};return{'point':_0x1c3f29,'ratio':_0x498553,'distance':x(_0x1d0fd8,_0x1c3f29)};}function re(_0x372356,_0x3553c7,_0x378449){return O(_0x372356,_0x3553c7,_0x378449)['distance']**0x2;}function k(_0x58cee5,_0x21c3f2){const _0x57b922=_0x34f4;if(_0x58cee5['length']<=0x2)return _0x58cee5[_0x57b922(0xee)](_);let _0x23f24e=0x0,_0x3cd684=0x0,_0x3afcc2=_0x58cee5[0x0],_0x111975=_0x58cee5[_0x58cee5[_0x57b922(0x12a)]-0x1],_0x5008e2=_0x21c3f2*_0x21c3f2;for(let _0x291ff6=0x1;_0x291ff6<_0x58cee5[_0x57b922(0x12a)]-0x1;_0x291ff6++){let _0x541f44=re(_0x58cee5[_0x291ff6],_0x3afcc2,_0x111975);_0x541f44>_0x23f24e&&(_0x23f24e=_0x541f44,_0x3cd684=_0x291ff6);}if(_0x23f24e<=_0x5008e2)return[_(_0x3afcc2),_(_0x111975)];let _0x141c65=k(_0x58cee5[_0x57b922(0x10f)](0x0,_0x3cd684+0x1),_0x21c3f2),_0x3c37f4=k(_0x58cee5[_0x57b922(0x10f)](_0x3cd684),_0x21c3f2);return[..._0x141c65[_0x57b922(0x10f)](0x0,-0x1),..._0x3c37f4];}function ie(_0x4859fe,_0x402e47){let _0x4e8a1f=_0x4859fe[_0x402e47],_0x2f919e=_0x4859fe[_0x402e47+0x1],_0x4360ad=_0x4859fe[_0x402e47-0x1]??_0x4e8a1f;return{'x':_0x4e8a1f['x']+(_0x2f919e['x']-_0x4360ad['x'])/0x6,'y':_0x4e8a1f['y']+(_0x2f919e['y']-_0x4360ad['y'])/0x6};}function A(_0x4c6a6f,_0x2fc288){let _0x3b1753=_0x4c6a6f[_0x2fc288],_0x179780=_0x4c6a6f[_0x2fc288-0x1],_0x2a1585=_0x4c6a6f[_0x2fc288+0x1]??_0x3b1753;return{'x':_0x3b1753['x']-(_0x2a1585['x']-_0x179780['x'])/0x6,'y':_0x3b1753['y']-(_0x2a1585['y']-_0x179780['y'])/0x6};}function j(_0x4a36b8,_0xfc973e){const _0x3ef262=_0x34f4;let _0x408436=_0x4a36b8['anchors'][_0xfc973e],_0x385c1d=_0x4a36b8[_0x3ef262(0x10d)][_0xfc973e-0x1]??(_0x4a36b8[_0x3ef262(0x108)]?_0x4a36b8[_0x3ef262(0x10d)][_0x4a36b8[_0x3ef262(0x10d)][_0x3ef262(0x12a)]-0x1]:null),_0x45ef95=_0x4a36b8[_0x3ef262(0x10d)][_0xfc973e+0x1]??(_0x4a36b8[_0x3ef262(0x108)]?_0x4a36b8[_0x3ef262(0x10d)][0x0]:null),_0x5ec821=_0x385c1d&&_0x45ef95?S({'x':_0x45ef95['x']-_0x385c1d['x'],'y':_0x45ef95['y']-_0x385c1d['y']}):_0x45ef95?S({'x':_0x45ef95['x']-_0x408436['x'],'y':_0x45ef95['y']-_0x408436['y']}):_0x385c1d?S({'x':_0x408436['x']-_0x385c1d['x'],'y':_0x408436['y']-_0x385c1d['y']}):{'x':0x1,'y':0x0},_0x5f131d=_0x385c1d&&_0x45ef95?Math[_0x3ef262(0x117)](0x32,x(_0x385c1d,_0x45ef95)/0x4):0x32;return{'in':{'x':_0x408436['x']-_0x5ec821['x']*_0x5f131d,'y':_0x408436['y']-_0x5ec821['y']*_0x5f131d},'out':{'x':_0x408436['x']+_0x5ec821['x']*_0x5f131d,'y':_0x408436['y']+_0x5ec821['y']*_0x5f131d}};}function M(_0x306e91,_0x31c41f){const _0x352b83=_0x34f4;let _0x55aadc=_0x306e91[_0x31c41f],_0x4753ca=_0x31c41f==='in'?_0x352b83(0xe0):'in',_0x1ec864=_0x306e91[_0x4753ca];_0x55aadc&&(_0x306e91[_0x352b83(0xf4)]==='symmetric'?_0x306e91[_0x4753ca]=C(_0x306e91,_0x55aadc):_0x306e91['pointType']===_0x352b83(0xe4)&&(_0x306e91[_0x4753ca]=C(_0x306e91,_0x55aadc,_0x1ec864?x(_0x306e91,_0x1ec864):x(_0x306e91,_0x55aadc))));}function ae(_0x43dc20,_0x5524fd){const _0x394a11=_0x34f4;let _0x39a7c5=y(_0x43dc20);return!_0x5524fd||_0x39a7c5[_0x394a11(0x108)]||_0x39a7c5[_0x394a11(0x10d)][_0x394a11(0x12a)]===0x0||_0x39a7c5[_0x394a11(0x10d)][_0x394a11(0x103)]({'id':_0x394a11(0x104),'x':_0x5524fd['x'],'y':_0x5524fd['y'],'pointType':_0x394a11(0xd9)}),_0x39a7c5;}function oe(_0x1fec87,_0x232b16={}){const _0xfda3a7=_0x34f4;let _0x8b2347=Math['max'](0x0,_0x232b16[_0xfda3a7(0x121)]??Math[_0xfda3a7(0x117)](0x4,_0x1fec87[_0xfda3a7(0x119)]*0.35)),_0x25c45c=_0x232b16[_0xfda3a7(0xe1)]??(_0x52abb0=>_0xfda3a7(0x137)+_0x52abb0),_0x504278=k(_0x1fec87[_0xfda3a7(0x128)],_0x8b2347),_0x34fa42=_0x504278[_0xfda3a7(0xee)]((_0x4518c2,_0x37a0e2)=>({'id':_0x25c45c(_0x37a0e2),'x':_0x4518c2['x'],'y':_0x4518c2['y'],'pointType':'free'}));for(let _0x321446=0x0;_0x321446<_0x34fa42[_0xfda3a7(0x12a)]-0x1;_0x321446++)_0x34fa42[_0x321446][_0xfda3a7(0xe0)]=ie(_0x504278,_0x321446),_0x34fa42[_0x321446+0x1]['in']=A(_0x504278,_0x321446+0x1);return{'kind':_0xfda3a7(0x11e),'closed':!0x1,'anchors':_0x34fa42};}function se(_0x34b1f9,_0x4088be,_0x4fddd7){const _0x4c0499=_0x34f4;let _0x51ff5c=null,_0x2b5849=[_0x4c0499(0xea),'in',_0x4c0499(0xe0)];return _0x34b1f9[_0x4c0499(0x10d)][_0x4c0499(0x11d)]((_0x564231,_0xd3da6d)=>{const _0xc12a21=_0x4c0499;_0x2b5849[_0xc12a21(0x11d)](_0x32295d=>{const _0x19ff1a=_0xc12a21;if(!E(_0x34b1f9,_0xd3da6d,_0x32295d))return;let _0x1fe30f=te(_0x564231,_0x32295d);if(!_0x1fe30f)return;let _0x3a9f94=x(_0x4088be,_0x1fe30f);_0x3a9f94>_0x4fddd7||_0x51ff5c&&_0x3a9f94>=_0x51ff5c[_0x19ff1a(0x11f)]||(_0x51ff5c={'handle':{'kind':_0x32295d,'anchorId':_0x564231['id']},'point':_(_0x1fe30f),'distance':_0x3a9f94});});}),_0x51ff5c;}function ce(_0x390141,_0x3ad76e,_0x25b80d){const _0xdce4e7=_0x34f4;let _0x1ed56d=null,_0x15bbb7=_0x390141[_0xdce4e7(0x108)]?_0x390141[_0xdce4e7(0x10d)]['length']:Math[_0xdce4e7(0x117)](0x0,_0x390141['anchors'][_0xdce4e7(0x12a)]-0x1);for(let _0x2b6fd5=0x0;_0x2b6fd5<_0x15bbb7;_0x2b6fd5++){let _0x788af=T(_0x390141,_0x2b6fd5);if(!_0x788af)continue;let _0x350714=D(_0x788af,0x0);for(let _0x2d3625=0x1;_0x2d3625<=0x20;_0x2d3625++){let _0x1bd4bd=D(_0x788af,_0x2d3625/0x20),_0x23b51d=O(_0x3ad76e,_0x350714,_0x1bd4bd),_0x308ec8=(_0x2d3625-0x1+_0x23b51d[_0xdce4e7(0x127)])/0x20;(!_0x1ed56d||_0x23b51d[_0xdce4e7(0x11f)]<_0x1ed56d[_0xdce4e7(0x11f)])&&(_0x1ed56d={'segmentIndex':_0x2b6fd5,'t':_0x308ec8,'point':_0x23b51d[_0xdce4e7(0xef)],'distance':_0x23b51d[_0xdce4e7(0x11f)]}),_0x350714=_0x1bd4bd;}}return _0x1ed56d&&_0x1ed56d['distance']<=_0x25b80d?_0x1ed56d:null;}function le(_0x5bc239,_0x4f122a,_0x2b6c37){const _0x32ea0b=_0x34f4;let _0x15a416=y(_0x5bc239),_0x57a4df=w(_0x15a416,_0x4f122a['segmentIndex']),_0x4c00ef=T(_0x15a416,_0x4f122a[_0x32ea0b(0xdb)]);if(!_0x57a4df||!_0x4c00ef)return _0x15a416;let _0x593c5a=ne(_0x4c00ef,Math[_0x32ea0b(0x117)](0x0,Math[_0x32ea0b(0x122)](0x1,_0x4f122a['t']))),_0x60809d={'id':_0x2b6c37(),'x':_0x593c5a['left'][0x3]['x'],'y':_0x593c5a[_0x32ea0b(0x134)][0x3]['y'],'in':_(_0x593c5a[_0x32ea0b(0x134)][0x2]),'out':_(_0x593c5a['right'][0x1]),'pointType':_0x32ea0b(0xf3)};return _0x15a416['anchors'][_0x57a4df[_0x32ea0b(0xf5)]][_0x32ea0b(0xe0)]=_(_0x593c5a['left'][0x1]),_0x15a416[_0x32ea0b(0x10d)][_0x57a4df[_0x32ea0b(0xff)]]['in']=_(_0x593c5a['right'][0x2]),_0x15a416[_0x32ea0b(0x10d)]['splice'](_0x57a4df[_0x32ea0b(0xf5)]+0x1,0x0,_0x60809d),_0x15a416;}function ue(_0x4325f9,_0x493098){const _0x336d8a=_0x34f4;let _0x6189dc=y(_0x4325f9);return _0x6189dc[_0x336d8a(0x10d)]=_0x6189dc['anchors'][_0x336d8a(0x101)](_0x2b6b93=>_0x2b6b93['id']!==_0x493098),_0x6189dc['closed']&&_0x6189dc[_0x336d8a(0x10d)][_0x336d8a(0x12a)]<0x3&&(_0x6189dc[_0x336d8a(0x108)]=!0x1),_0x6189dc;}function N(_0x22c8c1,_0x3b73ef,_0x45512e){const _0x3ce140=_0x34f4;let _0x33b10e=y(_0x22c8c1),_0x4b5cc8=_0x33b10e[_0x3ce140(0x10d)][_0x3ce140(0x120)](_0x1adcac=>_0x1adcac['id']===_0x3b73ef),_0x213548=_0x33b10e[_0x3ce140(0x10d)][_0x4b5cc8];if(!_0x213548)return _0x33b10e;if(_0x213548[_0x3ce140(0xf4)]=_0x45512e,_0x45512e==='corner')return delete _0x213548['in'],delete _0x213548[_0x3ce140(0xe0)],_0x33b10e;let _0x3ebc64=j(_0x33b10e,_0x4b5cc8);if(_0x213548['in']=_0x213548['in']?_(_0x213548['in']):_0x3ebc64['in'],_0x213548[_0x3ce140(0xe0)]=_0x213548[_0x3ce140(0xe0)]?_(_0x213548[_0x3ce140(0xe0)]):_0x3ebc64[_0x3ce140(0xe0)],_0x45512e===_0x3ce140(0xf1)){let _0x15ebff=Math[_0x3ce140(0x117)](x(_0x213548,_0x213548['in']),x(_0x213548,_0x213548[_0x3ce140(0xe0)]),0x32),_0x19f882=S({'x':_0x213548[_0x3ce140(0xe0)]['x']-_0x213548['x'],'y':_0x213548[_0x3ce140(0xe0)]['y']-_0x213548['y']});_0x213548[_0x3ce140(0xe0)]={'x':_0x213548['x']+_0x19f882['x']*_0x15ebff,'y':_0x213548['y']+_0x19f882['y']*_0x15ebff},_0x213548['in']={'x':_0x213548['x']-_0x19f882['x']*_0x15ebff,'y':_0x213548['y']-_0x19f882['y']*_0x15ebff};}else _0x45512e===_0x3ce140(0xe4)&&M(_0x213548,'out');return _0x33b10e;}function P(_0x33e8b3,_0x148f3e){const _0x219cab=_0x34f4;let _0x7e6e61=_0x33e8b3[_0x219cab(0x10d)]['find'](_0x6c5a17=>_0x6c5a17['id']===_0x148f3e),_0x36fac9=(_0x7e6e61==null?void 0x0:_0x7e6e61[_0x219cab(0xf4)])??'corner';return N(_0x33e8b3,_0x148f3e,_0x36fac9===_0x219cab(0xd9)?_0x219cab(0xe4):_0x36fac9===_0x219cab(0xe4)?'symmetric':_0x36fac9==='symmetric'?_0x219cab(0xf3):_0x219cab(0xd9));}function F(_0x503e20,_0x11c996,_0x26c33f){const _0x36686e=_0x34f4;let _0x22bade=y(_0x503e20),_0x45fb1f=_0x22bade['anchors']['find'](_0x2c568d=>_0x2c568d['id']===_0x11c996[_0x36686e(0x130)]);if(!_0x45fb1f)return _0x22bade;if(_0x11c996['kind']==='anchor'){let _0xa24b27={'x':_0x26c33f['x']-_0x45fb1f['x'],'y':_0x26c33f['y']-_0x45fb1f['y']};return _0x45fb1f['x']=_0x26c33f['x'],_0x45fb1f['y']=_0x26c33f['y'],_0x45fb1f['in']&&={'x':_0x45fb1f['in']['x']+_0xa24b27['x'],'y':_0x45fb1f['in']['y']+_0xa24b27['y']},_0x45fb1f[_0x36686e(0xe0)]&&={'x':_0x45fb1f['out']['x']+_0xa24b27['x'],'y':_0x45fb1f[_0x36686e(0xe0)]['y']+_0xa24b27['y']},_0x22bade;}return _0x45fb1f[_0x11c996[_0x36686e(0x116)]]=_(_0x26c33f),_0x45fb1f[_0x36686e(0xf4)]===_0x36686e(0xd9)&&(_0x45fb1f[_0x36686e(0xf4)]=_0x36686e(0xf3)),M(_0x45fb1f,_0x11c996['kind']),_0x22bade;}const I=1e-9;function L(_0x316173){const _0x3fdc01=_0x34f4;let _0x1e2988=Math[_0x3fdc01(0xdd)](_0x316173*0x2710)/0x2710;return Object['is'](_0x1e2988,-0x0)?'0':String(_0x1e2988);}function R(_0x30f47a){return L(_0x30f47a['x'])+'\x20'+L(_0x30f47a['y']);}function z(_0x138692,_0x45873d){return{'x':_0x138692['x']-_0x45873d['x'],'y':_0x138692['y']-_0x45873d['y']};}function B(_0x4c1a8d,_0x4cd957,_0x58c479,_0xf43e63,_0x30b59b){let _0xe881cf=0x1-_0x30b59b;return{'x':_0xe881cf*_0xe881cf*_0xe881cf*_0x4c1a8d['x']+0x3*_0xe881cf*_0xe881cf*_0x30b59b*_0x4cd957['x']+0x3*_0xe881cf*_0x30b59b*_0x30b59b*_0x58c479['x']+_0x30b59b*_0x30b59b*_0x30b59b*_0xf43e63['x'],'y':_0xe881cf*_0xe881cf*_0xe881cf*_0x4c1a8d['y']+0x3*_0xe881cf*_0xe881cf*_0x30b59b*_0x4cd957['y']+0x3*_0xe881cf*_0x30b59b*_0x30b59b*_0x58c479['y']+_0x30b59b*_0x30b59b*_0x30b59b*_0xf43e63['y']};}function V(_0x477b29,_0x228058,_0x45e47c,_0x3a8d6f){const _0x4cf181=_0x34f4;let _0x1a9c1e=-_0x477b29+0x3*_0x228058-0x3*_0x45e47c+_0x3a8d6f,_0x35db16=0x3*_0x477b29-0x6*_0x228058+0x3*_0x45e47c,_0x277b3f=-0x3*_0x477b29+0x3*_0x228058,_0x560894=[];if(Math['abs'](_0x1a9c1e)<I){if(Math[_0x4cf181(0x12c)](_0x35db16)<I)return _0x560894;let _0x4f70cc=-_0x277b3f/(0x2*_0x35db16);return _0x4f70cc>0x0&&_0x4f70cc<0x1&&_0x560894[_0x4cf181(0x103)](_0x4f70cc),_0x560894;}let _0x228231=_0x35db16*_0x35db16-0x3*_0x1a9c1e*_0x277b3f;if(_0x228231<0x0)return _0x560894;let _0x207192=Math[_0x4cf181(0x115)](Math[_0x4cf181(0x117)](0x0,_0x228231)),_0x28d17f=(-_0x35db16+_0x207192)/(0x3*_0x1a9c1e),_0x2c24ee=(-_0x35db16-_0x207192)/(0x3*_0x1a9c1e);return _0x28d17f>0x0&&_0x28d17f<0x1&&_0x560894[_0x4cf181(0x103)](_0x28d17f),_0x2c24ee>0x0&&_0x2c24ee<0x1&&Math['abs'](_0x2c24ee-_0x28d17f)>I&&_0x560894['push'](_0x2c24ee),_0x560894;}function H(_0x3aee92,_0x547328,_0xede317,_0x3b069e,_0x4a7deb){const _0x4b31cf=_0x34f4;_0x3aee92['push'](_0x547328,_0x4a7deb),new Set([...V(_0x547328['x'],_0xede317['x'],_0x3b069e['x'],_0x4a7deb['x']),...V(_0x547328['y'],_0xede317['y'],_0x3b069e['y'],_0x4a7deb['y'])])[_0x4b31cf(0x11d)](_0x5b2cd4=>{const _0x41f62c=_0x4b31cf;_0x3aee92[_0x41f62c(0x103)](B(_0x547328,_0xede317,_0x3b069e,_0x4a7deb,_0x5b2cd4));});}function U(_0x54afda){const _0x46e478=_0x34f4;let _0x6c6ede=_0x54afda[_0x46e478(0x10d)];if(_0x6c6ede['length']<=0x1)return _0x6c6ede;let _0x3fdd37=[];for(let _0x1a1146=0x1;_0x1a1146<_0x6c6ede[_0x46e478(0x12a)];_0x1a1146++){let _0x489591=_0x6c6ede[_0x1a1146-0x1],_0x3cc97d=_0x6c6ede[_0x1a1146];H(_0x3fdd37,_0x489591,_0x489591[_0x46e478(0xe0)]??_0x489591,_0x3cc97d['in']??_0x3cc97d,_0x3cc97d);}if(_0x54afda['closed']&&_0x6c6ede[_0x46e478(0x12a)]>0x1){let _0x3b1d90=_0x6c6ede[_0x6c6ede[_0x46e478(0x12a)]-0x1],_0x3f57f2=_0x6c6ede[0x0];H(_0x3fdd37,_0x3b1d90,_0x3b1d90[_0x46e478(0xe0)]??_0x3b1d90,_0x3f57f2['in']??_0x3f57f2,_0x3f57f2);}return _0x3fdd37;}function _0x52c8(){const _0x76cf91=['filter','get','push','__ink-preview-anchor__','UNIVER_INK_PLUGIN','_configService','registerAdapter','closed','setConfig','4022361aXPNCP','constructor','join','anchors','tool','slice','609368TWjUjx','#f54a45','ink.host-adapter.service','defineProperty','_adapters','sqrt','kind','max','type','width','function','version','Round','forEach','pen','distance','findIndex','tolerance','min','UNIVER_UNKNOWN','start','NoFill','top','ratio','points','_config','length','add','abs','3048620mYeYQA','object','SolidLine','anchorId','beginInkMode','Rect','_injector','left','registerCommand','opacity','ink-centerline-','color','2303144HOQZqG','corner','4dWDJXS','segmentIndex','createCustomShape','round','fillColor','indexOf','out','createId','270570UNustx','6vJljhz','smooth','OPERATION','iterator','symbol','onStarting','_commandService','anchor','21DRreEN','norm','default','map','point','@univerjs-pro/ink','symmetric','pluginName','free','pointType','startIndex','call','toPrimitive','hypot','decorate','165xyvoOf','527570QNkJgH','string','SolidFill','25827VLBpok','endIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x52c8=function(){return _0x76cf91;};return _0x52c8();}function de(_0x4efe31){const _0x25ae24=_0x34f4;let _0xdd7256=_0x4efe31[_0x25ae24(0x128)];if(_0xdd7256['length']<=0x1)return _0xdd7256;let _0x5eeb13=[];for(let _0x15e3cc=0x0;_0x15e3cc<_0xdd7256[_0x25ae24(0x12a)]-0x1;_0x15e3cc++){let _0x5a040a=_0xdd7256[_0x15e3cc],_0x195462=_0xdd7256[_0x15e3cc+0x1],_0x376e68=_0xdd7256[_0x15e3cc-0x1]??_0x5a040a,_0x797bc8=_0xdd7256[_0x15e3cc+0x2]??_0x195462;H(_0x5eeb13,_0x5a040a,{'x':_0x5a040a['x']+(_0x195462['x']-_0x376e68['x'])/0x6,'y':_0x5a040a['y']+(_0x195462['y']-_0x376e68['y'])/0x6},{'x':_0x195462['x']-(_0x797bc8['x']-_0x5a040a['x'])/0x6,'y':_0x195462['y']-(_0x797bc8['y']-_0x5a040a['y'])/0x6},_0x195462);}return _0x5eeb13;}function fe(_0xab68b6){const _0x23ecf7=_0x34f4;return _0xab68b6[_0x23ecf7(0x116)]===_0x23ecf7(0x11e)?U(_0xab68b6):de(_0xab68b6);}function W(_0x443cb5){const _0x321b68=_0x34f4;let _0x2579a4=Math[_0x321b68(0xdd)](_0x443cb5*0x2710)/0x2710;return Object['is'](_0x2579a4,-0x0)?0x0:_0x2579a4;}function G(_0x3b9fa2){const _0x5c99f1=_0x34f4;let _0x1ab821=fe(_0x3b9fa2);if(_0x1ab821[_0x5c99f1(0x12a)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x575ca7=Math[_0x5c99f1(0x122)](..._0x1ab821['map'](_0x1388dd=>_0x1388dd['x'])),_0xa8cf0a=Math[_0x5c99f1(0x122)](..._0x1ab821[_0x5c99f1(0xee)](_0x131eb9=>_0x131eb9['y'])),_0x3cce5b=Math[_0x5c99f1(0x117)](..._0x1ab821[_0x5c99f1(0xee)](_0x552835=>_0x552835['x'])),_0xc38b2f=Math[_0x5c99f1(0x117)](..._0x1ab821[_0x5c99f1(0xee)](_0xa50978=>_0xa50978['y']));return{'left':W(_0x575ca7),'top':W(_0xa8cf0a),'width':W(Math[_0x5c99f1(0x117)](0x1,_0x3cce5b-_0x575ca7)),'height':W(Math[_0x5c99f1(0x117)](0x1,_0xc38b2f-_0xa8cf0a))};}function pe(_0x47ce6a,_0x3f853b){const _0xdf60a0=_0x34f4;let _0x2940d7=_0x47ce6a[_0xdf60a0(0x10d)];if(_0x2940d7[_0xdf60a0(0x12a)]===0x0)return'';let _0x5bfc23=['M\x20'+R(z(_0x2940d7[0x0],_0x3f853b))];for(let _0x218845=0x1;_0x218845<_0x2940d7[_0xdf60a0(0x12a)];_0x218845++){let _0x442260=_0x2940d7[_0x218845-0x1],_0x25963b=_0x2940d7[_0x218845],_0xfde85b=_0x442260[_0xdf60a0(0xe0)]??_0x442260,_0x20e037=_0x25963b['in']??_0x25963b;_0x5bfc23[_0xdf60a0(0x103)]('C\x20'+R(z(_0xfde85b,_0x3f853b))+'\x20'+R(z(_0x20e037,_0x3f853b))+'\x20'+R(z(_0x25963b,_0x3f853b)));}if(_0x47ce6a[_0xdf60a0(0x108)]&&_0x2940d7[_0xdf60a0(0x12a)]>0x1){let _0x5eec34=_0x2940d7[_0x2940d7[_0xdf60a0(0x12a)]-0x1],_0x1e336b=_0x2940d7[0x0],_0x268fdb=_0x5eec34[_0xdf60a0(0xe0)]??_0x5eec34,_0x327d8f=_0x1e336b['in']??_0x1e336b;_0x5bfc23[_0xdf60a0(0x103)]('C\x20'+R(z(_0x268fdb,_0x3f853b))+'\x20'+R(z(_0x327d8f,_0x3f853b))+'\x20'+R(z(_0x1e336b,_0x3f853b))),_0x5bfc23[_0xdf60a0(0x103)]('Z');}return _0x5bfc23['join']('\x20');}function me(_0x2286c5,_0x514df1){const _0x1329ec=_0x34f4;let _0x1a4cdd=_0x2286c5[_0x1329ec(0x128)][_0x1329ec(0xee)](_0x5dd520=>z(_0x5dd520,_0x514df1));if(_0x1a4cdd[_0x1329ec(0x12a)]===0x0)return'';if(_0x1a4cdd[_0x1329ec(0x12a)]===0x1)return'M\x20'+R(_0x1a4cdd[0x0]);let _0x176bc8=['M\x20'+R(_0x1a4cdd[0x0])];for(let _0x484957=0x0;_0x484957<_0x1a4cdd[_0x1329ec(0x12a)]-0x1;_0x484957++){let _0x34e444=_0x1a4cdd[_0x484957],_0x25c020=_0x1a4cdd[_0x484957+0x1],_0x364a2e=_0x1a4cdd[_0x484957-0x1]??_0x34e444,_0x52a160=_0x1a4cdd[_0x484957+0x2]??_0x25c020,_0x5a38f3={'x':_0x34e444['x']+(_0x25c020['x']-_0x364a2e['x'])/0x6,'y':_0x34e444['y']+(_0x25c020['y']-_0x364a2e['y'])/0x6},_0x39d47d={'x':_0x25c020['x']-(_0x52a160['x']-_0x34e444['x'])/0x6,'y':_0x25c020['y']-(_0x52a160['y']-_0x34e444['y'])/0x6};_0x176bc8[_0x1329ec(0x103)]('C\x20'+R(_0x5a38f3)+'\x20'+R(_0x39d47d)+'\x20'+R(_0x25c020));}return _0x176bc8[_0x1329ec(0x10c)]('\x20');}function he(_0x13cbc0,_0x2e3dec){const _0x16f932=_0x34f4;return _0x13cbc0[_0x16f932(0x116)]===_0x16f932(0x11e)?pe(_0x13cbc0,_0x2e3dec):me(_0x13cbc0,_0x2e3dec);}function ge(_0xd354bc,_0x13c795){const _0x5c6286=_0x34f4;return _0x13c795!=null&&_0x13c795[_0x5c6286(0xd7)]?_0x13c795[_0x5c6286(0xd7)]:_0xd354bc[_0x5c6286(0x116)]===_0x5c6286(0x11e)?_0x5c6286(0x111):_0xd354bc[_0x5c6286(0xd7)];}function _e(_0x2fbc46,_0x47747b){const _0x1184ee=_0x34f4;return(_0x47747b==null?void 0x0:_0x47747b[_0x1184ee(0x119)])===void 0x0?_0x2fbc46[_0x1184ee(0x116)]==='pen'?0x2:_0x2fbc46[_0x1184ee(0x119)]:_0x47747b[_0x1184ee(0x119)];}function ve(_0x34506b,_0x456df7){const _0x223312=_0x34f4;return(_0x456df7==null?void 0x0:_0x456df7['opacity'])===void 0x0?_0x34506b['kind']==='pen'?void 0x0:_0x34506b[_0x223312(0x136)]:_0x456df7[_0x223312(0x136)];}function _0x34f4(_0x5e8668,_0x548cb6){_0x5e8668=_0x5e8668-0xd7;const _0x52c89a=_0x52c8();let _0x34f490=_0x52c89a[_0x5e8668];return _0x34f490;}function ye(_0x317f66,_0x1eb63f){const _0x5910ef=_0x34f4;let _0x229974=G(_0x317f66),_0x52ec0f=he(_0x317f66,{'x':_0x229974['left'],'y':_0x229974[_0x5910ef(0x126)]}),_0x46fbf9=_0x317f66[_0x5910ef(0x116)]===_0x5910ef(0x11e)&&_0x317f66[_0x5910ef(0x108)],_0x390cf7=_0x1eb63f==null?void 0x0:_0x1eb63f[_0x5910ef(0xde)];return{'shapeType':_0x9ecee9[_0x5910ef(0x132)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x229974[_0x5910ef(0x119)],'h':_0x229974['height'],'fill':_0x46fbf9?_0x5910ef(0xec):'none','stroke':!0x0,'data':_0x52ec0f,'dataArray':be(_0x317f66,{'x':_0x229974[_0x5910ef(0x134)],'y':_0x229974[_0x5910ef(0x126)]})}]},'fill':_0x46fbf9&&_0x390cf7?{'color':_0x390cf7,'fillType':_0x1da015[_0x5910ef(0xfd)]}:{'fillType':_0x1da015[_0x5910ef(0x125)]},'stroke':{'color':ge(_0x317f66,_0x1eb63f),'width':_e(_0x317f66,_0x1eb63f),'opacity':ve(_0x317f66,_0x1eb63f),'lineStrokeType':_0x5d98d2[_0x5910ef(0x12f)],'capType':_0x1d6166[_0x5910ef(0x11c)],'lineJoinType':_0x439b44[_0x5910ef(0x11c)]}};}function K(_0x38c8f0,_0x3e58da){return{'x':_0x38c8f0['x']-_0x3e58da['x'],'y':_0x38c8f0['y']-_0x3e58da['y']};}function be(_0x4b330d,_0x719918){const _0xbd57f2=_0x34f4;if(_0x4b330d[_0xbd57f2(0x116)]===_0xbd57f2(0x11e)){let _0x16fef1=_0x4b330d[_0xbd57f2(0x10d)];if(_0x16fef1[_0xbd57f2(0x12a)]===0x0)return[];let _0x1e200c=K(_0x16fef1[0x0],_0x719918),_0x5a854c=[{'command':'M','points':[_0x1e200c['x'],_0x1e200c['y']]}];for(let _0xb89288=0x1;_0xb89288<_0x16fef1['length'];_0xb89288++){let _0x1053e7=_0x16fef1[_0xb89288-0x1],_0x64166b=_0x16fef1[_0xb89288],_0x479c57=K(_0x1053e7[_0xbd57f2(0xe0)]??_0x1053e7,_0x719918),_0x21bd99=K(_0x64166b['in']??_0x64166b,_0x719918),_0x5418df=K(_0x64166b,_0x719918);_0x5a854c[_0xbd57f2(0x103)]({'command':'C','points':[_0x479c57['x'],_0x479c57['y'],_0x21bd99['x'],_0x21bd99['y'],_0x5418df['x'],_0x5418df['y']]});}if(_0x4b330d[_0xbd57f2(0x108)]&&_0x16fef1[_0xbd57f2(0x12a)]>0x1){let _0xe3b2d4=_0x16fef1[_0x16fef1['length']-0x1],_0x433c20=_0x16fef1[0x0],_0x393860=K(_0xe3b2d4[_0xbd57f2(0xe0)]??_0xe3b2d4,_0x719918),_0x315164=K(_0x433c20['in']??_0x433c20,_0x719918),_0x24d9f5=K(_0x433c20,_0x719918);_0x5a854c[_0xbd57f2(0x103)]({'command':'C','points':[_0x393860['x'],_0x393860['y'],_0x315164['x'],_0x315164['y'],_0x24d9f5['x'],_0x24d9f5['y']]}),_0x5a854c[_0xbd57f2(0x103)]({'command':'z','points':[]});}return _0x5a854c;}let _0x2d20bf=_0x4b330d['points'][_0xbd57f2(0xee)](_0x34d944=>K(_0x34d944,_0x719918));if(_0x2d20bf[_0xbd57f2(0x12a)]===0x0)return[];let _0x239de4=[{'command':'M','points':[_0x2d20bf[0x0]['x'],_0x2d20bf[0x0]['y']]}];for(let _0x4b7d3d=0x0;_0x4b7d3d<_0x2d20bf[_0xbd57f2(0x12a)]-0x1;_0x4b7d3d++){let _0x176ce4=_0x2d20bf[_0x4b7d3d],_0x59d0c2=_0x2d20bf[_0x4b7d3d+0x1],_0x39ef4f=_0x2d20bf[_0x4b7d3d-0x1]??_0x176ce4,_0x1c3a5e=_0x2d20bf[_0x4b7d3d+0x2]??_0x59d0c2,_0x58fd18={'x':_0x176ce4['x']+(_0x59d0c2['x']-_0x39ef4f['x'])/0x6,'y':_0x176ce4['y']+(_0x59d0c2['y']-_0x39ef4f['y'])/0x6},_0x470276={'x':_0x59d0c2['x']-(_0x1c3a5e['x']-_0x176ce4['x'])/0x6,'y':_0x59d0c2['y']-(_0x1c3a5e['y']-_0x176ce4['y'])/0x6};_0x239de4['push']({'command':'C','points':[_0x58fd18['x'],_0x58fd18['y'],_0x470276['x'],_0x470276['y'],_0x59d0c2['x'],_0x59d0c2['y']]});}return _0x239de4;}function xe(_0x12c644){const _0x13e3a2=_0x34f4;let {model:_0x3c3f62,sourceModel:_0x20c348=_0x3c3f62,style:_0x1ad5b5}=_0x12c644,_0x2ddbcd=_0x12c644[_0x13e3a2(0x10e)]??_0x3c3f62[_0x13e3a2(0x116)],_0x1066d0=G(_0x3c3f62),_0x4d6f7c=_0x3c3f62[_0x13e3a2(0x116)]==='pen'&&_0x2ddbcd!==_0x13e3a2(0x11e)?_0x3c3f62:void 0x0;return{'transform':{..._0x1066d0,'rotation':0x0},'shapeData':ye(_0x3c3f62,_0x1ad5b5),'ink':{'version':0x1,'tool':_0x2ddbcd,'sourceModel':_0x20c348,..._0x4d6f7c?{'editModel':_0x4d6f7c}:{},'normalizedBounds':_0x1066d0}};}var Se=_0x428ca5(0xf0),Ce='1.2.0';function q(_0x4ba76b){'@babel/helpers - typeof';const _0x384fb4=_0x428ca5;return q=typeof Symbol==_0x384fb4(0x11a)&&typeof Symbol[_0x384fb4(0xe6)]==_0x384fb4(0xe7)?function(_0x3a9b4e){return typeof _0x3a9b4e;}:function(_0x3aec00){const _0x542123=_0x384fb4;return _0x3aec00&&typeof Symbol==_0x542123(0x11a)&&_0x3aec00[_0x542123(0x10b)]===Symbol&&_0x3aec00!==Symbol['prototype']?_0x542123(0xe7):typeof _0x3aec00;},q(_0x4ba76b);}function we(_0x53d8f9,_0x29d70a){const _0x2cbfb0=_0x428ca5;if(q(_0x53d8f9)!=_0x2cbfb0(0x12e)||!_0x53d8f9)return _0x53d8f9;var _0x4bd9ac=_0x53d8f9[Symbol[_0x2cbfb0(0xf7)]];if(_0x4bd9ac!==void 0x0){var _0x51b7a4=_0x4bd9ac[_0x2cbfb0(0xf6)](_0x53d8f9,_0x29d70a||_0x2cbfb0(0xed));if(q(_0x51b7a4)!='object')return _0x51b7a4;throw TypeError(_0x2cbfb0(0x100));}return(_0x29d70a===_0x2cbfb0(0xfc)?String:Number)(_0x53d8f9);}function J(_0x2856c1){const _0x4d725f=_0x428ca5;var _0x478bc8=we(_0x2856c1,'string');return q(_0x478bc8)==_0x4d725f(0xe7)?_0x478bc8:_0x478bc8+'';}function Y(_0x438dd4,_0x3eff29,_0x371227){const _0x72379c=_0x428ca5;return(_0x3eff29=J(_0x3eff29))in _0x438dd4?Object[_0x72379c(0x113)](_0x438dd4,_0x3eff29,{'value':_0x371227,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x438dd4[_0x3eff29]=_0x371227,_0x438dd4;}const X=_0x290056(_0x428ca5(0x112));var Te=class{constructor(){const _0x1593a7=_0x428ca5;Y(this,_0x1593a7(0x114),[]);}[_0x428ca5(0x107)](_0x31351b){const _0x2baaea=_0x428ca5;return this[_0x2baaea(0x114)]['push'](_0x31351b),_0x243018(()=>{const _0x5cf8fd=_0x2baaea;let _0x3344f1=this[_0x5cf8fd(0x114)][_0x5cf8fd(0xdf)](_0x31351b);_0x3344f1>=0x0&&this[_0x5cf8fd(0x114)]['splice'](_0x3344f1,0x1);});}['beginInkMode'](_0x26f2aa){const _0x57ec38=_0x428ca5;for(let _0x372f66 of this[_0x57ec38(0x114)])if(_0x372f66[_0x57ec38(0x131)](_0x26f2aa))return!0x0;return!0x1;}async['createCustomShape'](_0x2decc2){const _0x3c3899=_0x428ca5;for(let _0x45a930 of this[_0x3c3899(0x114)])if(_0x45a930[_0x3c3899(0xdc)]&&await _0x45a930[_0x3c3899(0xdc)](_0x2decc2))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x262274[_0x428ca5(0xe5)],'handler':(_0x263eca,_0x10247d)=>_0x10247d?_0x263eca[_0x428ca5(0x102)](X)[_0x428ca5(0x131)](_0x10247d):!0x1},Z={};function Q(_0x4728ab,_0x58ce78){return function(_0x3c3c6f,_0x59dd04){_0x58ce78(_0x3c3c6f,_0x59dd04,_0x4728ab);};}function De(_0x19c24b,_0x3ecbbc,_0xdd64c7,_0x497fcc){const _0x1fa6fd=_0x428ca5;var _0x4557f7=arguments[_0x1fa6fd(0x12a)],_0x453c3=_0x4557f7<0x3?_0x3ecbbc:_0x497fcc===null?_0x497fcc=Object['getOwnPropertyDescriptor'](_0x3ecbbc,_0xdd64c7):_0x497fcc,_0x59ffc2;if(typeof Reflect=='object'&&typeof Reflect[_0x1fa6fd(0xf9)]==_0x1fa6fd(0x11a))_0x453c3=Reflect[_0x1fa6fd(0xf9)](_0x19c24b,_0x3ecbbc,_0xdd64c7,_0x497fcc);else{for(var _0x1840b8=_0x19c24b[_0x1fa6fd(0x12a)]-0x1;_0x1840b8>=0x0;_0x1840b8--)(_0x59ffc2=_0x19c24b[_0x1840b8])&&(_0x453c3=(_0x4557f7<0x3?_0x59ffc2(_0x453c3):_0x4557f7>0x3?_0x59ffc2(_0x3ecbbc,_0xdd64c7,_0x453c3):_0x59ffc2(_0x3ecbbc,_0xdd64c7))||_0x453c3);}return _0x4557f7>0x3&&_0x453c3&&Object['defineProperty'](_0x3ecbbc,_0xdd64c7,_0x453c3),_0x453c3;}let $=class extends _0xd5747{constructor(_0x5d28f2=Z,_0x48f601,_0x3081b0,_0x56b884){const _0x47b5de=_0x428ca5;super(),this['_config']=_0x5d28f2,this[_0x47b5de(0x133)]=_0x48f601,this[_0x47b5de(0xe9)]=_0x3081b0,this[_0x47b5de(0x106)]=_0x56b884;let {..._0x498b0e}=_0x18dd0a({},Z,this[_0x47b5de(0x129)]);this[_0x47b5de(0x106)][_0x47b5de(0x109)]('ink.config',_0x498b0e);}[_0x428ca5(0xe8)](){const _0x285104=_0x428ca5;[[X,{'useClass':Te}]][_0x285104(0x11d)](_0x1e0137=>this[_0x285104(0x133)][_0x285104(0x12b)](_0x1e0137)),this['disposeWithMe'](this['_commandService'][_0x285104(0x135)](Ee));}};Y($,_0x428ca5(0xf2),_0x428ca5(0x105)),Y($,'packageName',Se),Y($,_0x428ca5(0x11b),Ce),Y($,_0x428ca5(0x118),_0x57679c[_0x428ca5(0x123)]),$=De([_0x51330d(_0x44e568),Q(0x1,_0x89bb4c(_0x169e64)),Q(0x2,_0x2a482d),Q(0x3,_0x37a4f2)],$);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
- function _0x2eb4(_0x5b09c1,_0x311528){_0x5b09c1=_0x5b09c1-0x1ae;const _0x4831f2=_0x4831();let _0x2eb41c=_0x4831f2[_0x5b09c1];return _0x2eb41c;}const _0x313ec4=_0x2eb4;(function(_0x295ca4,_0x260241){const _0x2e15ca=_0x2eb4,_0x4635dd=_0x295ca4();while(!![]){try{const _0x1f97b3=-parseInt(_0x2e15ca(0x1be))/0x1+-parseInt(_0x2e15ca(0x1c0))/0x2*(-parseInt(_0x2e15ca(0x1d1))/0x3)+parseInt(_0x2e15ca(0x1d5))/0x4*(-parseInt(_0x2e15ca(0x1c9))/0x5)+-parseInt(_0x2e15ca(0x1bb))/0x6*(parseInt(_0x2e15ca(0x1d4))/0x7)+parseInt(_0x2e15ca(0x1b1))/0x8+-parseInt(_0x2e15ca(0x1b9))/0x9*(-parseInt(_0x2e15ca(0x1c5))/0xa)+-parseInt(_0x2e15ca(0x1b7))/0xb;if(_0x1f97b3===_0x260241)break;else _0x4635dd['push'](_0x4635dd['shift']());}catch(_0x35ee69){_0x4635dd['push'](_0x4635dd['shift']());}}}(_0x4831,0x48317));import{BoardElementType as _0xd1f536}from'@univerjs-pro/boards';import{FBoard as _0x2baa6c}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x45dfa4}from'@univerjs-pro/ink';import{Tools as _0x2b0355,generateRandomId as _0x4fe46f}from'@univerjs/core';function _0x4831(){const _0x511f4e=['1129256iUiRTO','every','corner','isFinite','free','deepClone','parentId','length','brush','object','BoardInkHandleKind','601264AuVxWz','width','laneId','out','BoardInkTool','anchor','462099SQLgGZ','pen','72PlDGDq','kind','24GTHkUb','sourceModel','add','151239OVFKEw','getInks','2nxbnIt','ink','opacity','custom','style','617020cwwwvs','isArray','anchors','extend','10fiwnWX','type','insertIndex','pressure','points','transform','smooth','closed','1674543xzqFRt','Shape','highlighter','128408yuOeQL'];_0x4831=function(){return _0x511f4e;};return _0x4831();}import{FEnum as _0x1641dd}from'@univerjs/core/facade';var o=class extends _0x2baa6c{['insertInk'](_0x582631){const _0x15c072=_0x2eb4;let _0x1a882d=s(_0x582631);return _0x1a882d&&this['_addElement'](_0x1a882d,{'insertIndex':_0x582631[_0x15c072(0x1cb)]})?_0x1a882d:null;}[_0x313ec4(0x1bf)](){return this['findElements']({'elementType':_0xd1f536['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](p);}};function s(_0x2875ef,_0x17ca5e){const _0x4c6ac2=_0x313ec4;if(!l(_0x2875ef['model'])||_0x2875ef[_0x4c6ac2(0x1bc)]!==void 0x0&&!l(_0x2875ef[_0x4c6ac2(0x1bc)])||!u(_0x2875ef[_0x4c6ac2(0x1c4)]))return null;let _0x207065=_0x2875ef[_0x4c6ac2(0x1db)]??(_0x17ca5e==null?void 0x0:_0x17ca5e[_0x4c6ac2(0x1db)]),_0x1933f6=_0x2b0355[_0x4c6ac2(0x1da)](_0x2875ef['model']),_0x7d2a58=_0x45dfa4({'model':_0x1933f6,'style':_0x2875ef['style'],'tool':_0x2875ef['tool'],'sourceModel':_0x2875ef[_0x4c6ac2(0x1bc)]?_0x2b0355[_0x4c6ac2(0x1da)](_0x2875ef[_0x4c6ac2(0x1bc)]):_0x1933f6}),_0x30921b=d(_0x17ca5e==null?void 0x0:_0x17ca5e[_0x4c6ac2(0x1c3)]);return{'id':(_0x17ca5e==null?void 0x0:_0x17ca5e['id'])??_0x2875ef['id']??_0x4fe46f(0x6),'type':_0xd1f536['Shape'],'transform':_0x7d2a58[_0x4c6ac2(0x1ce)],'shapeData':_0x7d2a58['shapeData'],'parentId':_0x207065??void 0x0,'laneId':_0x2875ef[_0x4c6ac2(0x1b3)]===void 0x0?_0x17ca5e==null?void 0x0:_0x17ca5e[_0x4c6ac2(0x1b3)]:_0x2875ef[_0x4c6ac2(0x1b3)],'custom':{..._0x30921b,'ink':_0x7d2a58[_0x4c6ac2(0x1c1)]}};}function c(_0x55f10f){const _0x206e91=_0x313ec4;return Number[_0x206e91(0x1d8)](_0x55f10f['x'])&&Number[_0x206e91(0x1d8)](_0x55f10f['y']);}function l(_0x4e610a){const _0x4b3a1d=_0x313ec4;if(_0x4e610a[_0x4b3a1d(0x1ba)]===_0x4b3a1d(0x1b8)){let _0x50b8f8=new Set();return _0x4e610a['anchors'][_0x4b3a1d(0x1dc)]>=(_0x4e610a[_0x4b3a1d(0x1d0)]?0x3:0x2)&&_0x4e610a[_0x4b3a1d(0x1c7)][_0x4b3a1d(0x1d6)](_0x30f3a6=>{const _0x413c66=_0x4b3a1d;let _0x1862f7=_0x30f3a6['id']['trim']()[_0x413c66(0x1dc)]>0x0&&!_0x50b8f8['has'](_0x30f3a6['id'])&&c(_0x30f3a6)&&(!_0x30f3a6['in']||c(_0x30f3a6['in']))&&(!_0x30f3a6['out']||c(_0x30f3a6[_0x413c66(0x1b4)]));return _0x50b8f8[_0x413c66(0x1bd)](_0x30f3a6['id']),_0x1862f7;});}return _0x4e610a[_0x4b3a1d(0x1cd)]['length']>=0x2&&_0x4e610a[_0x4b3a1d(0x1cd)][_0x4b3a1d(0x1d6)](_0x3cf0a6=>c(_0x3cf0a6)&&Number[_0x4b3a1d(0x1d8)](_0x3cf0a6['t'])&&(_0x3cf0a6[_0x4b3a1d(0x1cc)]===void 0x0||Number[_0x4b3a1d(0x1d8)](_0x3cf0a6[_0x4b3a1d(0x1cc)])))&&Number['isFinite'](_0x4e610a[_0x4b3a1d(0x1b2)])&&_0x4e610a[_0x4b3a1d(0x1b2)]>0x0&&Number['isFinite'](_0x4e610a[_0x4b3a1d(0x1c2)])&&_0x4e610a[_0x4b3a1d(0x1c2)]>=0x0&&_0x4e610a[_0x4b3a1d(0x1c2)]<=0x1;}function u(_0x566d8a){const _0x2351a5=_0x313ec4;return _0x566d8a===void 0x0||(_0x566d8a['width']===void 0x0||Number['isFinite'](_0x566d8a[_0x2351a5(0x1b2)])&&_0x566d8a[_0x2351a5(0x1b2)]>0x0)&&(_0x566d8a['opacity']===void 0x0||Number['isFinite'](_0x566d8a['opacity'])&&_0x566d8a[_0x2351a5(0x1c2)]>=0x0&&_0x566d8a[_0x2351a5(0x1c2)]<=0x1);}function d(_0x3f8fc2){const _0x5905fa=_0x313ec4;return _0x3f8fc2&&typeof _0x3f8fc2=='object'&&!Array[_0x5905fa(0x1c6)](_0x3f8fc2)?_0x3f8fc2:{};}function f(_0x4bb099){const _0x305c9f=_0x313ec4;let _0x4427f2=d(_0x4bb099[_0x305c9f(0x1c3)])[_0x305c9f(0x1c1)];if(!_0x4427f2||typeof _0x4427f2!='object'||Array[_0x305c9f(0x1c6)](_0x4427f2))return null;let _0x55720a=_0x4427f2;return _0x55720a['version']===0x1&&_0x55720a['sourceModel']&&typeof _0x55720a[_0x305c9f(0x1bc)]==_0x305c9f(0x1af)?_0x55720a:null;}function p(_0x293f26){const _0x219e56=_0x313ec4;return _0x293f26[_0x219e56(0x1ca)]===_0xd1f536[_0x219e56(0x1d2)]&&!!f(_0x293f26);}_0x2baa6c[_0x313ec4(0x1c8)](o);const m={'Pen':_0x313ec4(0x1b8),'Brush':_0x313ec4(0x1ae),'Highlighter':_0x313ec4(0x1d3)},h={'Corner':_0x313ec4(0x1d7),'Smooth':_0x313ec4(0x1cf),'Symmetric':'symmetric','Free':_0x313ec4(0x1d9)},g={'Anchor':_0x313ec4(0x1b6),'In':'in','Out':_0x313ec4(0x1b4)};var _=class extends _0x1641dd{get[_0x313ec4(0x1b5)](){return m;}get['BoardInkPointType'](){return h;}get[_0x313ec4(0x1b0)](){return g;}};_0x1641dd['extend'](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
1
+ const _0x16ff5b=_0x330d;(function(_0x6cc2a6,_0x2d6fe7){const _0x452d76=_0x330d,_0x2020e3=_0x6cc2a6();while(!![]){try{const _0x3be90e=parseInt(_0x452d76(0x113))/0x1*(parseInt(_0x452d76(0x11c))/0x2)+parseInt(_0x452d76(0x10d))/0x3*(parseInt(_0x452d76(0x11b))/0x4)+-parseInt(_0x452d76(0xef))/0x5*(parseInt(_0x452d76(0x119))/0x6)+parseInt(_0x452d76(0x108))/0x7+parseInt(_0x452d76(0x101))/0x8*(-parseInt(_0x452d76(0xec))/0x9)+parseInt(_0x452d76(0x104))/0xa*(-parseInt(_0x452d76(0x114))/0xb)+parseInt(_0x452d76(0x10b))/0xc;if(_0x3be90e===_0x2d6fe7)break;else _0x2020e3['push'](_0x2020e3['shift']());}catch(_0x1ef773){_0x2020e3['push'](_0x2020e3['shift']());}}}(_0x555c,0x48c81));import{BoardElementType as _0x4e293a}from'@univerjs-pro/boards';import{FBoard as _0x1ab7f9}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x4dcdda}from'@univerjs-pro/ink';import{Tools as _0x1b2b2e,generateRandomId as _0x5f1a90}from'@univerjs/core';import{FEnum as _0x42f1ff}from'@univerjs/core/facade';var o=class extends _0x1ab7f9{[_0x16ff5b(0x11f)](_0x474079){const _0x22725a=_0x16ff5b;let _0xcddca4=s(_0x474079);return _0xcddca4&&this[_0x22725a(0xfc)](_0xcddca4,{'insertIndex':_0x474079[_0x22725a(0xf7)]})?_0xcddca4:null;}[_0x16ff5b(0x10c)](){const _0x5b819c=_0x16ff5b;return this[_0x5b819c(0xf9)]({'elementType':_0x4e293a[_0x5b819c(0x10e)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](p);}};function s(_0x3f5f2a,_0xd68a4d){const _0x158659=_0x16ff5b;if(!l(_0x3f5f2a[_0x158659(0x100)])||_0x3f5f2a[_0x158659(0x111)]!==void 0x0&&!l(_0x3f5f2a[_0x158659(0x111)])||!u(_0x3f5f2a['style']))return null;let _0x319f8a=_0x3f5f2a[_0x158659(0xea)]??(_0xd68a4d==null?void 0x0:_0xd68a4d[_0x158659(0xea)]),_0x2703aa=_0x1b2b2e[_0x158659(0xff)](_0x3f5f2a[_0x158659(0x100)]),_0x414af4=_0x4dcdda({'model':_0x2703aa,'style':_0x3f5f2a['style'],'tool':_0x3f5f2a['tool'],'sourceModel':_0x3f5f2a[_0x158659(0x111)]?_0x1b2b2e['deepClone'](_0x3f5f2a[_0x158659(0x111)]):_0x2703aa}),_0x1d5a70=d(_0xd68a4d==null?void 0x0:_0xd68a4d[_0x158659(0xee)]);return{'id':(_0xd68a4d==null?void 0x0:_0xd68a4d['id'])??_0x3f5f2a['id']??_0x5f1a90(0x6),'type':_0x4e293a[_0x158659(0x10e)],'transform':_0x414af4[_0x158659(0xf0)],'shapeData':_0x414af4[_0x158659(0x118)],'parentId':_0x319f8a??void 0x0,'laneId':_0x3f5f2a[_0x158659(0xf6)]===void 0x0?_0xd68a4d==null?void 0x0:_0xd68a4d[_0x158659(0xf6)]:_0x3f5f2a[_0x158659(0xf6)],'custom':{..._0x1d5a70,'ink':_0x414af4['ink']}};}function c(_0x65a72f){const _0x3f3a2e=_0x16ff5b;return Number[_0x3f3a2e(0x11a)](_0x65a72f['x'])&&Number[_0x3f3a2e(0x11a)](_0x65a72f['y']);}function l(_0x313fd0){const _0x2e3328=_0x16ff5b;if(_0x313fd0[_0x2e3328(0x112)]===_0x2e3328(0xf4)){let _0x102b11=new Set();return _0x313fd0[_0x2e3328(0x110)][_0x2e3328(0x106)]>=(_0x313fd0['closed']?0x3:0x2)&&_0x313fd0[_0x2e3328(0x110)][_0x2e3328(0xf2)](_0x1791a5=>{const _0x5a5d40=_0x2e3328;let _0x5d3866=_0x1791a5['id'][_0x5a5d40(0xf8)]()[_0x5a5d40(0x106)]>0x0&&!_0x102b11['has'](_0x1791a5['id'])&&c(_0x1791a5)&&(!_0x1791a5['in']||c(_0x1791a5['in']))&&(!_0x1791a5[_0x5a5d40(0x103)]||c(_0x1791a5[_0x5a5d40(0x103)]));return _0x102b11[_0x5a5d40(0x107)](_0x1791a5['id']),_0x5d3866;});}return _0x313fd0[_0x2e3328(0x115)][_0x2e3328(0x106)]>=0x2&&_0x313fd0[_0x2e3328(0x115)][_0x2e3328(0xf2)](_0x8f979b=>c(_0x8f979b)&&Number[_0x2e3328(0x11a)](_0x8f979b['t'])&&(_0x8f979b[_0x2e3328(0x11d)]===void 0x0||Number[_0x2e3328(0x11a)](_0x8f979b[_0x2e3328(0x11d)])))&&Number['isFinite'](_0x313fd0[_0x2e3328(0xf5)])&&_0x313fd0['width']>0x0&&Number[_0x2e3328(0x11a)](_0x313fd0[_0x2e3328(0xfb)])&&_0x313fd0[_0x2e3328(0xfb)]>=0x0&&_0x313fd0[_0x2e3328(0xfb)]<=0x1;}function u(_0x10dc54){const _0x55dd3b=_0x16ff5b;return _0x10dc54===void 0x0||(_0x10dc54[_0x55dd3b(0xf5)]===void 0x0||Number[_0x55dd3b(0x11a)](_0x10dc54[_0x55dd3b(0xf5)])&&_0x10dc54[_0x55dd3b(0xf5)]>0x0)&&(_0x10dc54['opacity']===void 0x0||Number[_0x55dd3b(0x11a)](_0x10dc54[_0x55dd3b(0xfb)])&&_0x10dc54[_0x55dd3b(0xfb)]>=0x0&&_0x10dc54['opacity']<=0x1);}function d(_0x118588){const _0x32e573=_0x16ff5b;return _0x118588&&typeof _0x118588==_0x32e573(0xfe)&&!Array['isArray'](_0x118588)?_0x118588:{};}function f(_0x1bb104){const _0x7ff9a2=_0x16ff5b;let _0x58bd3b=d(_0x1bb104['custom'])[_0x7ff9a2(0x10f)];if(!_0x58bd3b||typeof _0x58bd3b!=_0x7ff9a2(0xfe)||Array[_0x7ff9a2(0x109)](_0x58bd3b))return null;let _0x5793d1=_0x58bd3b;return _0x5793d1[_0x7ff9a2(0x117)]===0x1&&_0x5793d1[_0x7ff9a2(0x111)]&&typeof _0x5793d1[_0x7ff9a2(0x111)]==_0x7ff9a2(0xfe)?_0x5793d1:null;}function p(_0x271c19){const _0x5aa76f=_0x16ff5b;return _0x271c19[_0x5aa76f(0xfd)]===_0x4e293a['Shape']&&!!f(_0x271c19);}_0x1ab7f9[_0x16ff5b(0xeb)](o);function _0x330d(_0x3483fe,_0x5a88db){_0x3483fe=_0x3483fe-0xea;const _0x555c07=_0x555c();let _0x330d5c=_0x555c07[_0x3483fe];return _0x330d5c;}function _0x555c(){const _0x331a71=['add','2988720sfGVos','isArray','highlighter','4038228dJzGzj','getInks','9MHGOtr','Shape','ink','anchors','sourceModel','kind','1khJcFi','9999axsGvD','points','corner','version','shapeData','1538952ePTLBI','isFinite','429920CafOxP','387370CVdgUo','pressure','free','insertInk','parentId','extend','9tLftkb','BoardInkHandleKind','custom','5NoTkKT','transform','smooth','every','anchor','pen','width','laneId','insertIndex','trim','findElements','BoardInkPointType','opacity','_addElement','type','object','deepClone','model','1407704YBRITD','BoardInkTool','out','6040qiZVvX','brush','length'];_0x555c=function(){return _0x331a71;};return _0x555c();}const m={'Pen':'pen','Brush':_0x16ff5b(0x105),'Highlighter':_0x16ff5b(0x10a)},h={'Corner':_0x16ff5b(0x116),'Smooth':_0x16ff5b(0xf1),'Symmetric':'symmetric','Free':_0x16ff5b(0x11e)},g={'Anchor':_0x16ff5b(0xf3),'In':'in','Out':'out'};var _=class extends _0x42f1ff{get[_0x16ff5b(0x102)](){return m;}get[_0x16ff5b(0xfa)](){return h;}get[_0x16ff5b(0xed)](){return g;}};_0x42f1ff[_0x16ff5b(0xeb)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4d5c9d=_0x1247;(function(_0x4fcfba,_0x2ec095){const _0x23f442=_0x1247,_0x535d77=_0x4fcfba();while(!![]){try{const _0x927dfa=-parseInt(_0x23f442(0x1db))/0x1+parseInt(_0x23f442(0x1bc))/0x2+-parseInt(_0x23f442(0x1af))/0x3+parseInt(_0x23f442(0x1d8))/0x4+parseInt(_0x23f442(0x1cb))/0x5*(parseInt(_0x23f442(0x1d1))/0x6)+-parseInt(_0x23f442(0x209))/0x7+-parseInt(_0x23f442(0x1c6))/0x8*(-parseInt(_0x23f442(0x1d3))/0x9);if(_0x927dfa===_0x2ec095)break;else _0x535d77['push'](_0x535d77['shift']());}catch(_0x3a0005){_0x535d77['push'](_0x535d77['shift']());}}}(_0x5e32,0xc703d));import{ShapeFillEnum as _0x1ab911,ShapeLineCapEnum as _0x52c57b,ShapeLineJoinEnum as _0x2ef3aa,ShapeLineTypeEnum as _0xb40238,ShapeTypeEnum as _0x49cd1d}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x57a878}from'@univerjs-pro/license';import{CommandType as _0x274185,DependentOn as _0x2f0a1b,ICommandService as _0x18c36a,IConfigService as _0x4e83c9,Inject as _0x304ec7,Injector as _0x404c68,Plugin as _0xd72275,UniverInstanceType as _0x5eeb86,createIdentifier as _0x5f2cbd,merge as _0xe94c79,toDisposable as _0x5a5fba}from'@univerjs/core';const g=0.0001;function _(_0x2cda97){return{'x':_0x2cda97['x'],'y':_0x2cda97['y']};}function v(_0x127e2e){const _0x97077b=_0x1247;return{..._0x127e2e,'in':_0x127e2e['in']?_(_0x127e2e['in']):void 0x0,'out':_0x127e2e[_0x97077b(0x1bb)]?_(_0x127e2e[_0x97077b(0x1bb)]):void 0x0};}function y(_0x4f0dab){const _0x2675e4=_0x1247;return{'kind':_0x2675e4(0x1d2),'closed':_0x4f0dab[_0x2675e4(0x1cf)],'anchors':_0x4f0dab[_0x2675e4(0x1f5)]['map'](v)};}function b(_0x595723,_0x278fb7,_0x1f97bb){return{'x':_0x595723['x']+(_0x278fb7['x']-_0x595723['x'])*_0x1f97bb,'y':_0x595723['y']+(_0x278fb7['y']-_0x595723['y'])*_0x1f97bb};}function x(_0x52f9bd,_0x4c9c24){const _0x2d7e56=_0x1247;return Math[_0x2d7e56(0x1c0)](_0x52f9bd['x']-_0x4c9c24['x'],_0x52f9bd['y']-_0x4c9c24['y']);}function S(_0x2dd696){const _0x47d1da=_0x1247;let _0x1b3a2d=Math[_0x47d1da(0x1c0)](_0x2dd696['x'],_0x2dd696['y']);return _0x1b3a2d<g?{'x':0x1,'y':0x0}:{'x':_0x2dd696['x']/_0x1b3a2d,'y':_0x2dd696['y']/_0x1b3a2d};}function C(_0x4f70bf,_0x3af8ff,_0x4ff15e=x(_0x4f70bf,_0x3af8ff)){let _0x5efc37=S({'x':_0x4f70bf['x']-_0x3af8ff['x'],'y':_0x4f70bf['y']-_0x3af8ff['y']});return{'x':_0x4f70bf['x']+_0x5efc37['x']*_0x4ff15e,'y':_0x4f70bf['y']+_0x5efc37['y']*_0x4ff15e};}function w(_0xb34253,_0x8d66ad){const _0x7600c9=_0x1247;let {anchors:_0xe1d492}=_0xb34253;return _0xe1d492[_0x7600c9(0x1ed)]<0x2||_0x8d66ad<0x0?null:_0x8d66ad<_0xe1d492[_0x7600c9(0x1ed)]-0x1?{'startIndex':_0x8d66ad,'endIndex':_0x8d66ad+0x1,'start':_0xe1d492[_0x8d66ad],'end':_0xe1d492[_0x8d66ad+0x1]}:_0xb34253[_0x7600c9(0x1cf)]&&_0x8d66ad===_0xe1d492[_0x7600c9(0x1ed)]-0x1?{'startIndex':_0xe1d492[_0x7600c9(0x1ed)]-0x1,'endIndex':0x0,'start':_0xe1d492[_0xe1d492[_0x7600c9(0x1ed)]-0x1],'end':_0xe1d492[0x0]}:null;}function T(_0x2ba707,_0x50f5b5){const _0x28be92=_0x1247;let _0x26ddfb=w(_0x2ba707,_0x50f5b5);return _0x26ddfb?[_0x26ddfb['start'],_0x26ddfb[_0x28be92(0x1fe)]['out']??_0x26ddfb[_0x28be92(0x1fe)],_0x26ddfb[_0x28be92(0x1eb)]['in']??_0x26ddfb[_0x28be92(0x1eb)],_0x26ddfb[_0x28be92(0x1eb)]]:null;}function te(_0x5a382c,_0x24d860){const _0x1e2d35=_0x1247;return _0x24d860===_0x1e2d35(0x20f)?_0x5a382c:_0x5a382c[_0x24d860]??null;}function E(_0x596289,_0x5acf97,_0x10b2f0){const _0x5619f7=_0x1247;return _0x10b2f0===_0x5619f7(0x20f)||_0x596289[_0x5619f7(0x1cf)]?!0x0:_0x10b2f0==='in'?_0x5acf97>0x0:_0x5acf97<_0x596289[_0x5619f7(0x1f5)][_0x5619f7(0x1ed)]-0x1;}function D(_0x4f0040,_0x13bd21){let [_0x252eea,_0x2ce951,_0x4f9223,_0x5d5248]=_0x4f0040,_0xf02cf5=b(_0x252eea,_0x2ce951,_0x13bd21),_0x223a05=b(_0x2ce951,_0x4f9223,_0x13bd21),_0x196670=b(_0x4f9223,_0x5d5248,_0x13bd21);return b(b(_0xf02cf5,_0x223a05,_0x13bd21),b(_0x223a05,_0x196670,_0x13bd21),_0x13bd21);}function ne(_0x1dd0a0,_0x229718){let [_0x4a12d7,_0x4a50c0,_0xe95602,_0x1b2a13]=_0x1dd0a0,_0x592b76=b(_0x4a12d7,_0x4a50c0,_0x229718),_0x4316bd=b(_0x4a50c0,_0xe95602,_0x229718),_0x3ec2ef=b(_0xe95602,_0x1b2a13,_0x229718),_0x253ff2=b(_0x592b76,_0x4316bd,_0x229718),_0x1723c4=b(_0x4316bd,_0x3ec2ef,_0x229718),_0x14a708=b(_0x253ff2,_0x1723c4,_0x229718);return{'left':[_0x4a12d7,_0x592b76,_0x253ff2,_0x14a708],'right':[_0x14a708,_0x1723c4,_0x3ec2ef,_0x1b2a13]};}function O(_0x3d3f0e,_0x137b38,_0x470fb0){const _0x14f27f=_0x1247;let _0x26f0cc=_0x470fb0['x']-_0x137b38['x'],_0x5c602e=_0x470fb0['y']-_0x137b38['y'],_0x313ad4=_0x26f0cc*_0x26f0cc+_0x5c602e*_0x5c602e,_0x56c323=_0x313ad4<=g?0x0:Math[_0x14f27f(0x202)](0x0,Math[_0x14f27f(0x1ef)](0x1,((_0x3d3f0e['x']-_0x137b38['x'])*_0x26f0cc+(_0x3d3f0e['y']-_0x137b38['y'])*_0x5c602e)/_0x313ad4)),_0x13a59d={'x':_0x137b38['x']+_0x26f0cc*_0x56c323,'y':_0x137b38['y']+_0x5c602e*_0x56c323};return{'point':_0x13a59d,'ratio':_0x56c323,'distance':x(_0x3d3f0e,_0x13a59d)};}function re(_0x452e85,_0x390eab,_0x241a2e){return O(_0x452e85,_0x390eab,_0x241a2e)['distance']**0x2;}function k(_0x5eaca1,_0x6f8b22){const _0x4326da=_0x1247;if(_0x5eaca1[_0x4326da(0x1ed)]<=0x2)return _0x5eaca1[_0x4326da(0x20d)](_);let _0x3c8dae=0x0,_0x5e955f=0x0,_0x391213=_0x5eaca1[0x0],_0xdcc947=_0x5eaca1[_0x5eaca1['length']-0x1],_0x3300c2=_0x6f8b22*_0x6f8b22;for(let _0x2cb846=0x1;_0x2cb846<_0x5eaca1[_0x4326da(0x1ed)]-0x1;_0x2cb846++){let _0x178e47=re(_0x5eaca1[_0x2cb846],_0x391213,_0xdcc947);_0x178e47>_0x3c8dae&&(_0x3c8dae=_0x178e47,_0x5e955f=_0x2cb846);}if(_0x3c8dae<=_0x3300c2)return[_(_0x391213),_(_0xdcc947)];let _0x25e7c9=k(_0x5eaca1[_0x4326da(0x1e5)](0x0,_0x5e955f+0x1),_0x6f8b22),_0x496446=k(_0x5eaca1[_0x4326da(0x1e5)](_0x5e955f),_0x6f8b22);return[..._0x25e7c9[_0x4326da(0x1e5)](0x0,-0x1),..._0x496446];}function ie(_0x10466c,_0x32a49b){let _0x4ddc0f=_0x10466c[_0x32a49b],_0x82b40c=_0x10466c[_0x32a49b+0x1],_0x3dd8d4=_0x10466c[_0x32a49b-0x1]??_0x4ddc0f;return{'x':_0x4ddc0f['x']+(_0x82b40c['x']-_0x3dd8d4['x'])/0x6,'y':_0x4ddc0f['y']+(_0x82b40c['y']-_0x3dd8d4['y'])/0x6};}function A(_0x4f1f7e,_0x506d01){let _0x61133f=_0x4f1f7e[_0x506d01],_0x16e00d=_0x4f1f7e[_0x506d01-0x1],_0x5ddeb8=_0x4f1f7e[_0x506d01+0x1]??_0x61133f;return{'x':_0x61133f['x']-(_0x5ddeb8['x']-_0x16e00d['x'])/0x6,'y':_0x61133f['y']-(_0x5ddeb8['y']-_0x16e00d['y'])/0x6};}function j(_0x2be232,_0x440c3b){const _0x202021=_0x1247;let _0x2e96e9=_0x2be232[_0x202021(0x1f5)][_0x440c3b],_0x4067ea=_0x2be232['anchors'][_0x440c3b-0x1]??(_0x2be232[_0x202021(0x1cf)]?_0x2be232[_0x202021(0x1f5)][_0x2be232[_0x202021(0x1f5)][_0x202021(0x1ed)]-0x1]:null),_0x29b911=_0x2be232[_0x202021(0x1f5)][_0x440c3b+0x1]??(_0x2be232[_0x202021(0x1cf)]?_0x2be232[_0x202021(0x1f5)][0x0]:null),_0x549e54=_0x4067ea&&_0x29b911?S({'x':_0x29b911['x']-_0x4067ea['x'],'y':_0x29b911['y']-_0x4067ea['y']}):_0x29b911?S({'x':_0x29b911['x']-_0x2e96e9['x'],'y':_0x29b911['y']-_0x2e96e9['y']}):_0x4067ea?S({'x':_0x2e96e9['x']-_0x4067ea['x'],'y':_0x2e96e9['y']-_0x4067ea['y']}):{'x':0x1,'y':0x0},_0x2e8b5c=_0x4067ea&&_0x29b911?Math[_0x202021(0x202)](0x32,x(_0x4067ea,_0x29b911)/0x4):0x32;return{'in':{'x':_0x2e96e9['x']-_0x549e54['x']*_0x2e8b5c,'y':_0x2e96e9['y']-_0x549e54['y']*_0x2e8b5c},'out':{'x':_0x2e96e9['x']+_0x549e54['x']*_0x2e8b5c,'y':_0x2e96e9['y']+_0x549e54['y']*_0x2e8b5c}};}function M(_0x33853b,_0x559357){const _0xe98d53=_0x1247;let _0x5a8f63=_0x33853b[_0x559357],_0x2c9f9a=_0x559357==='in'?'out':'in',_0x14c145=_0x33853b[_0x2c9f9a];if(_0x5a8f63){if(_0x33853b[_0xe98d53(0x1c7)]===_0xe98d53(0x1e8)){_0x33853b[_0x2c9f9a]=C(_0x33853b,_0x5a8f63);return;}_0x33853b[_0xe98d53(0x1c7)]===_0xe98d53(0x1e2)&&(_0x33853b[_0x2c9f9a]=C(_0x33853b,_0x5a8f63,_0x14c145?x(_0x33853b,_0x14c145):x(_0x33853b,_0x5a8f63)));}}function ae(_0x277839,_0xcf8269){const _0x167163=_0x1247;let _0x4bae76=y(_0x277839);return!_0xcf8269||_0x4bae76[_0x167163(0x1cf)]||_0x4bae76[_0x167163(0x1f5)][_0x167163(0x1ed)]===0x0||_0x4bae76['anchors'][_0x167163(0x1df)]({'id':_0x167163(0x203),'x':_0xcf8269['x'],'y':_0xcf8269['y'],'pointType':_0x167163(0x1c1)}),_0x4bae76;}function oe(_0x52dad7,_0x3152e9={}){const _0x5e6e11=_0x1247;let _0x635ab0=Math['max'](0x0,_0x3152e9['tolerance']??Math['max'](0x4,_0x52dad7['width']*0.35)),_0x4c7842=_0x3152e9[_0x5e6e11(0x1d6)]??(_0x287789=>'ink-centerline-'+_0x287789),_0x163b49=k(_0x52dad7['points'],_0x635ab0),_0x247ede=_0x163b49['map']((_0x123eda,_0x8430e4)=>({'id':_0x4c7842(_0x8430e4),'x':_0x123eda['x'],'y':_0x123eda['y'],'pointType':_0x5e6e11(0x20e)}));for(let _0x43d67e=0x0;_0x43d67e<_0x247ede[_0x5e6e11(0x1ed)]-0x1;_0x43d67e++)_0x247ede[_0x43d67e]['out']=ie(_0x163b49,_0x43d67e),_0x247ede[_0x43d67e+0x1]['in']=A(_0x163b49,_0x43d67e+0x1);return{'kind':_0x5e6e11(0x1d2),'closed':!0x1,'anchors':_0x247ede};}function se(_0xd65d76,_0x260f2a,_0x122b2e){const _0x54cada=_0x1247;let _0x311e37=null,_0x5aabf9=[_0x54cada(0x20f),'in',_0x54cada(0x1bb)];return _0xd65d76[_0x54cada(0x1f5)]['forEach']((_0x1a8fa2,_0x5092fb)=>{const _0x23b9e1=_0x54cada;_0x5aabf9[_0x23b9e1(0x1b3)](_0x9b76b3=>{const _0x295b8a=_0x23b9e1;if(!E(_0xd65d76,_0x5092fb,_0x9b76b3))return;let _0x591303=te(_0x1a8fa2,_0x9b76b3);if(!_0x591303)return;let _0x38d169=x(_0x260f2a,_0x591303);_0x38d169>_0x122b2e||_0x311e37&&_0x38d169>=_0x311e37[_0x295b8a(0x1ce)]||(_0x311e37={'handle':{'kind':_0x9b76b3,'anchorId':_0x1a8fa2['id']},'point':_(_0x591303),'distance':_0x38d169});});}),_0x311e37;}function ce(_0x456ec7,_0x1342ab,_0x5241e4){const _0x30e933=_0x1247;let _0x4f5f9a=null,_0x18e1df=_0x456ec7['closed']?_0x456ec7[_0x30e933(0x1f5)]['length']:Math[_0x30e933(0x202)](0x0,_0x456ec7['anchors'][_0x30e933(0x1ed)]-0x1);for(let _0x1c5331=0x0;_0x1c5331<_0x18e1df;_0x1c5331++){let _0x3b3342=T(_0x456ec7,_0x1c5331);if(!_0x3b3342)continue;let _0x2e5f17=D(_0x3b3342,0x0);for(let _0x53c210=0x1;_0x53c210<=0x20;_0x53c210++){let _0x348a90=D(_0x3b3342,_0x53c210/0x20),_0x31cbca=O(_0x1342ab,_0x2e5f17,_0x348a90),_0x585685=(_0x53c210-0x1+_0x31cbca[_0x30e933(0x1bd)])/0x20;(!_0x4f5f9a||_0x31cbca[_0x30e933(0x1ce)]<_0x4f5f9a['distance'])&&(_0x4f5f9a={'segmentIndex':_0x1c5331,'t':_0x585685,'point':_0x31cbca['point'],'distance':_0x31cbca[_0x30e933(0x1ce)]}),_0x2e5f17=_0x348a90;}}return _0x4f5f9a&&_0x4f5f9a['distance']<=_0x5241e4?_0x4f5f9a:null;}function le(_0x308173,_0x1d6259,_0x413623){const _0x42396a=_0x1247;let _0x5c34b9=y(_0x308173),_0x326a8f=w(_0x5c34b9,_0x1d6259[_0x42396a(0x1f6)]),_0x527886=T(_0x5c34b9,_0x1d6259[_0x42396a(0x1f6)]);if(!_0x326a8f||!_0x527886)return _0x5c34b9;let _0x43adc6=ne(_0x527886,Math[_0x42396a(0x202)](0x0,Math[_0x42396a(0x1ef)](0x1,_0x1d6259['t']))),_0x1fe348={'id':_0x413623(),'x':_0x43adc6[_0x42396a(0x1bf)][0x3]['x'],'y':_0x43adc6[_0x42396a(0x1bf)][0x3]['y'],'in':_(_0x43adc6[_0x42396a(0x1bf)][0x2]),'out':_(_0x43adc6['right'][0x1]),'pointType':_0x42396a(0x20e)};return _0x5c34b9[_0x42396a(0x1f5)][_0x326a8f[_0x42396a(0x1d4)]][_0x42396a(0x1bb)]=_(_0x43adc6['left'][0x1]),_0x5c34b9[_0x42396a(0x1f5)][_0x326a8f[_0x42396a(0x206)]]['in']=_(_0x43adc6[_0x42396a(0x1b2)][0x2]),_0x5c34b9[_0x42396a(0x1f5)][_0x42396a(0x1b9)](_0x326a8f['startIndex']+0x1,0x0,_0x1fe348),_0x5c34b9;}function ue(_0x4e6f4b,_0x4f3f96){const _0x59ccad=_0x1247;let _0x24bb7d=y(_0x4e6f4b);return _0x24bb7d[_0x59ccad(0x1f5)]=_0x24bb7d[_0x59ccad(0x1f5)][_0x59ccad(0x1c2)](_0x5f20b4=>_0x5f20b4['id']!==_0x4f3f96),_0x24bb7d[_0x59ccad(0x1cf)]&&_0x24bb7d[_0x59ccad(0x1f5)]['length']<0x3&&(_0x24bb7d[_0x59ccad(0x1cf)]=!0x1),_0x24bb7d;}function N(_0x39433b,_0x548243,_0x28e65a){const _0x480ed4=_0x1247;let _0x5af021=y(_0x39433b),_0x35e94b=_0x5af021[_0x480ed4(0x1f5)][_0x480ed4(0x1c9)](_0x5c1327=>_0x5c1327['id']===_0x548243),_0x44741d=_0x5af021[_0x480ed4(0x1f5)][_0x35e94b];if(!_0x44741d)return _0x5af021;if(_0x44741d[_0x480ed4(0x1c7)]=_0x28e65a,_0x28e65a===_0x480ed4(0x1c1))return delete _0x44741d['in'],delete _0x44741d[_0x480ed4(0x1bb)],_0x5af021;let _0x2e8346=j(_0x5af021,_0x35e94b);if(_0x44741d['in']=_0x44741d['in']?_(_0x44741d['in']):_0x2e8346['in'],_0x44741d['out']=_0x44741d[_0x480ed4(0x1bb)]?_(_0x44741d[_0x480ed4(0x1bb)]):_0x2e8346['out'],_0x28e65a===_0x480ed4(0x1e8)){let _0x4dfd64=Math[_0x480ed4(0x202)](x(_0x44741d,_0x44741d['in']),x(_0x44741d,_0x44741d[_0x480ed4(0x1bb)]),0x32),_0x5c4286=S({'x':_0x44741d[_0x480ed4(0x1bb)]['x']-_0x44741d['x'],'y':_0x44741d[_0x480ed4(0x1bb)]['y']-_0x44741d['y']});_0x44741d[_0x480ed4(0x1bb)]={'x':_0x44741d['x']+_0x5c4286['x']*_0x4dfd64,'y':_0x44741d['y']+_0x5c4286['y']*_0x4dfd64},_0x44741d['in']={'x':_0x44741d['x']-_0x5c4286['x']*_0x4dfd64,'y':_0x44741d['y']-_0x5c4286['y']*_0x4dfd64};}else _0x28e65a===_0x480ed4(0x1e2)&&M(_0x44741d,_0x480ed4(0x1bb));return _0x5af021;}function P(_0xa618a8,_0x463033){const _0x8be365=_0x1247;let _0x20aa60=_0xa618a8['anchors'][_0x8be365(0x1cd)](_0x18ad7c=>_0x18ad7c['id']===_0x463033),_0x1f9ae1=(_0x20aa60==null?void 0x0:_0x20aa60[_0x8be365(0x1c7)])??_0x8be365(0x1c1);return N(_0xa618a8,_0x463033,_0x1f9ae1==='corner'?_0x8be365(0x1e2):_0x1f9ae1==='smooth'?'symmetric':_0x1f9ae1===_0x8be365(0x1e8)?_0x8be365(0x20e):_0x8be365(0x1c1));}function F(_0x4a039a,_0x2b9371,_0x5f00e1){const _0x4791d9=_0x1247;let _0x3085ee=y(_0x4a039a),_0x5e2a5c=_0x3085ee[_0x4791d9(0x1f5)][_0x4791d9(0x1cd)](_0x58e062=>_0x58e062['id']===_0x2b9371[_0x4791d9(0x1f3)]);if(!_0x5e2a5c)return _0x3085ee;if(_0x2b9371[_0x4791d9(0x1fd)]==='anchor'){let _0xd638f3={'x':_0x5f00e1['x']-_0x5e2a5c['x'],'y':_0x5f00e1['y']-_0x5e2a5c['y']};return _0x5e2a5c['x']=_0x5f00e1['x'],_0x5e2a5c['y']=_0x5f00e1['y'],_0x5e2a5c['in']&&={'x':_0x5e2a5c['in']['x']+_0xd638f3['x'],'y':_0x5e2a5c['in']['y']+_0xd638f3['y']},_0x5e2a5c[_0x4791d9(0x1bb)]&&={'x':_0x5e2a5c[_0x4791d9(0x1bb)]['x']+_0xd638f3['x'],'y':_0x5e2a5c[_0x4791d9(0x1bb)]['y']+_0xd638f3['y']},_0x3085ee;}return _0x5e2a5c[_0x2b9371[_0x4791d9(0x1fd)]]=_(_0x5f00e1),_0x5e2a5c[_0x4791d9(0x1c7)]===_0x4791d9(0x1c1)&&(_0x5e2a5c[_0x4791d9(0x1c7)]=_0x4791d9(0x20e)),M(_0x5e2a5c,_0x2b9371[_0x4791d9(0x1fd)]),_0x3085ee;}const I=1e-9;function L(_0x3c3c6f){const _0x5240eb=_0x1247;let _0x3a1471=Math[_0x5240eb(0x1dd)](_0x3c3c6f*0x2710)/0x2710;return Object['is'](_0x3a1471,-0x0)?'0':String(_0x3a1471);}function R(_0x520fa0){return L(_0x520fa0['x'])+'\x20'+L(_0x520fa0['y']);}function z(_0x5446b6,_0x5c1f56){return{'x':_0x5446b6['x']-_0x5c1f56['x'],'y':_0x5446b6['y']-_0x5c1f56['y']};}function B(_0x1a5fe3,_0x40cfe4,_0x734106,_0xeffc3a,_0x304628){let _0x2ebf48=0x1-_0x304628;return{'x':_0x2ebf48*_0x2ebf48*_0x2ebf48*_0x1a5fe3['x']+0x3*_0x2ebf48*_0x2ebf48*_0x304628*_0x40cfe4['x']+0x3*_0x2ebf48*_0x304628*_0x304628*_0x734106['x']+_0x304628*_0x304628*_0x304628*_0xeffc3a['x'],'y':_0x2ebf48*_0x2ebf48*_0x2ebf48*_0x1a5fe3['y']+0x3*_0x2ebf48*_0x2ebf48*_0x304628*_0x40cfe4['y']+0x3*_0x2ebf48*_0x304628*_0x304628*_0x734106['y']+_0x304628*_0x304628*_0x304628*_0xeffc3a['y']};}function V(_0x22d728,_0xf1bceb,_0xaab2e7,_0x3150d){const _0xe3bf82=_0x1247;let _0x4963a0=-_0x22d728+0x3*_0xf1bceb-0x3*_0xaab2e7+_0x3150d,_0x3bff0e=0x3*_0x22d728-0x6*_0xf1bceb+0x3*_0xaab2e7,_0x4ffea5=-0x3*_0x22d728+0x3*_0xf1bceb,_0xb69f5d=[];if(Math['abs'](_0x4963a0)<I){if(Math[_0xe3bf82(0x1e3)](_0x3bff0e)<I)return _0xb69f5d;let _0x133d0e=-_0x4ffea5/(0x2*_0x3bff0e);return _0x133d0e>0x0&&_0x133d0e<0x1&&_0xb69f5d[_0xe3bf82(0x1df)](_0x133d0e),_0xb69f5d;}let _0x8eb0eb=_0x3bff0e*_0x3bff0e-0x3*_0x4963a0*_0x4ffea5;if(_0x8eb0eb<0x0)return _0xb69f5d;let _0x21174d=Math[_0xe3bf82(0x201)](Math[_0xe3bf82(0x202)](0x0,_0x8eb0eb)),_0x2c215f=(-_0x3bff0e+_0x21174d)/(0x3*_0x4963a0),_0x2ca7d4=(-_0x3bff0e-_0x21174d)/(0x3*_0x4963a0);return _0x2c215f>0x0&&_0x2c215f<0x1&&_0xb69f5d['push'](_0x2c215f),_0x2ca7d4>0x0&&_0x2ca7d4<0x1&&Math[_0xe3bf82(0x1e3)](_0x2ca7d4-_0x2c215f)>I&&_0xb69f5d[_0xe3bf82(0x1df)](_0x2ca7d4),_0xb69f5d;}function H(_0x1c13ff,_0xba6486,_0x12b2ed,_0x5a8d5d,_0xe60b72){const _0x367d44=_0x1247;_0x1c13ff[_0x367d44(0x1df)](_0xba6486,_0xe60b72),new Set([...V(_0xba6486['x'],_0x12b2ed['x'],_0x5a8d5d['x'],_0xe60b72['x']),...V(_0xba6486['y'],_0x12b2ed['y'],_0x5a8d5d['y'],_0xe60b72['y'])])[_0x367d44(0x1b3)](_0x4443f5=>{const _0x3e8b35=_0x367d44;_0x1c13ff[_0x3e8b35(0x1df)](B(_0xba6486,_0x12b2ed,_0x5a8d5d,_0xe60b72,_0x4443f5));});}function U(_0x2d4e99){const _0x159a8e=_0x1247;let _0xfe2a3a=_0x2d4e99[_0x159a8e(0x1f5)];if(_0xfe2a3a[_0x159a8e(0x1ed)]<=0x1)return _0xfe2a3a;let _0x46f4ed=[];for(let _0x2f3aa=0x1;_0x2f3aa<_0xfe2a3a[_0x159a8e(0x1ed)];_0x2f3aa++){let _0x4520fd=_0xfe2a3a[_0x2f3aa-0x1],_0x51134d=_0xfe2a3a[_0x2f3aa];H(_0x46f4ed,_0x4520fd,_0x4520fd[_0x159a8e(0x1bb)]??_0x4520fd,_0x51134d['in']??_0x51134d,_0x51134d);}if(_0x2d4e99['closed']&&_0xfe2a3a[_0x159a8e(0x1ed)]>0x1){let _0x14349e=_0xfe2a3a[_0xfe2a3a['length']-0x1],_0x3d8981=_0xfe2a3a[0x0];H(_0x46f4ed,_0x14349e,_0x14349e[_0x159a8e(0x1bb)]??_0x14349e,_0x3d8981['in']??_0x3d8981,_0x3d8981);}return _0x46f4ed;}function de(_0x44e1a1){const _0x11a065=_0x1247;let _0x14d706=_0x44e1a1[_0x11a065(0x208)];if(_0x14d706[_0x11a065(0x1ed)]<=0x1)return _0x14d706;let _0x37eccd=[];for(let _0x38c76f=0x0;_0x38c76f<_0x14d706[_0x11a065(0x1ed)]-0x1;_0x38c76f++){let _0x3d53c0=_0x14d706[_0x38c76f],_0x5c3a96=_0x14d706[_0x38c76f+0x1],_0x16f184=_0x14d706[_0x38c76f-0x1]??_0x3d53c0,_0x410d20=_0x14d706[_0x38c76f+0x2]??_0x5c3a96;H(_0x37eccd,_0x3d53c0,{'x':_0x3d53c0['x']+(_0x5c3a96['x']-_0x16f184['x'])/0x6,'y':_0x3d53c0['y']+(_0x5c3a96['y']-_0x16f184['y'])/0x6},{'x':_0x5c3a96['x']-(_0x410d20['x']-_0x3d53c0['x'])/0x6,'y':_0x5c3a96['y']-(_0x410d20['y']-_0x3d53c0['y'])/0x6},_0x5c3a96);}return _0x37eccd;}function fe(_0x1c6dba){const _0x259052=_0x1247;return _0x1c6dba[_0x259052(0x1fd)]===_0x259052(0x1d2)?U(_0x1c6dba):de(_0x1c6dba);}function W(_0x29f00a){const _0x4ea077=_0x1247;let _0x173a25=Math[_0x4ea077(0x1dd)](_0x29f00a*0x2710)/0x2710;return Object['is'](_0x173a25,-0x0)?0x0:_0x173a25;}function _0x5e32(){const _0x6b4596=['get','length','1.0.4','min','defineProperty','type','version','anchorId','norm','anchors','segmentIndex','opacity','height','_injector','object','_commandService','add','kind','start','UNIVER_UNKNOWN','onStarting','sqrt','max','__ink-preview-anchor__','join','symbol','endIndex','Rect','points','9772854ugicMH','_adapters','disposeWithMe','_config','map','free','anchor','ink.host-adapter.service','ink.config','3170100dmWcbD','fillColor','constructor','right','forEach','pluginName','@univerjs-pro/ink','Round','function','packageName','splice','iterator','out','831818YGeVfc','ratio','prototype','left','hypot','corner','filter','string','SolidFill','getOwnPropertyDescriptor','24FtfkoO','pointType','color','findIndex','default','2054105IMBKKN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','find','distance','closed','beginInkMode','6emhOSm','pen','8943147sEEyGH','startIndex','createCustomShape','createId','_configService','415744PpCgef','toPrimitive','registerAdapter','643728FfMiXI','setConfig','round','call','push','ink.operation.start','none','smooth','abs','indexOf','slice','NoFill','width','symmetric','tool','#f54a45','end'];_0x5e32=function(){return _0x6b4596;};return _0x5e32();}function _0x1247(_0x4ebae6,_0x51afc5){_0x4ebae6=_0x4ebae6-0x1ad;const _0x5e32d8=_0x5e32();let _0x12470c=_0x5e32d8[_0x4ebae6];return _0x12470c;}function G(_0x13fb34){const _0x4f0c20=_0x1247;let _0x107ea4=fe(_0x13fb34);if(_0x107ea4['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4cc750=Math['min'](..._0x107ea4['map'](_0x6619aa=>_0x6619aa['x'])),_0x17d386=Math[_0x4f0c20(0x1ef)](..._0x107ea4[_0x4f0c20(0x20d)](_0x4abcb4=>_0x4abcb4['y'])),_0x1b16b4=Math[_0x4f0c20(0x202)](..._0x107ea4['map'](_0x3f41d2=>_0x3f41d2['x'])),_0xcb32cd=Math[_0x4f0c20(0x202)](..._0x107ea4[_0x4f0c20(0x20d)](_0x59904e=>_0x59904e['y']));return{'left':W(_0x4cc750),'top':W(_0x17d386),'width':W(Math[_0x4f0c20(0x202)](0x1,_0x1b16b4-_0x4cc750)),'height':W(Math[_0x4f0c20(0x202)](0x1,_0xcb32cd-_0x17d386))};}function pe(_0x16ffbd,_0x506aca){const _0x4d1dfb=_0x1247;let _0x5b204c=_0x16ffbd[_0x4d1dfb(0x1f5)];if(_0x5b204c[_0x4d1dfb(0x1ed)]===0x0)return'';let _0x43588d=['M\x20'+R(z(_0x5b204c[0x0],_0x506aca))];for(let _0x3415d1=0x1;_0x3415d1<_0x5b204c[_0x4d1dfb(0x1ed)];_0x3415d1++){let _0x29b1a1=_0x5b204c[_0x3415d1-0x1],_0x3659ac=_0x5b204c[_0x3415d1],_0x4c30b2=_0x29b1a1[_0x4d1dfb(0x1bb)]??_0x29b1a1,_0x11f834=_0x3659ac['in']??_0x3659ac;_0x43588d[_0x4d1dfb(0x1df)]('C\x20'+R(z(_0x4c30b2,_0x506aca))+'\x20'+R(z(_0x11f834,_0x506aca))+'\x20'+R(z(_0x3659ac,_0x506aca)));}if(_0x16ffbd[_0x4d1dfb(0x1cf)]&&_0x5b204c[_0x4d1dfb(0x1ed)]>0x1){let _0xa4a418=_0x5b204c[_0x5b204c[_0x4d1dfb(0x1ed)]-0x1],_0xe0573=_0x5b204c[0x0],_0x182642=_0xa4a418[_0x4d1dfb(0x1bb)]??_0xa4a418,_0x4509b1=_0xe0573['in']??_0xe0573;_0x43588d[_0x4d1dfb(0x1df)]('C\x20'+R(z(_0x182642,_0x506aca))+'\x20'+R(z(_0x4509b1,_0x506aca))+'\x20'+R(z(_0xe0573,_0x506aca))),_0x43588d['push']('Z');}return _0x43588d[_0x4d1dfb(0x204)]('\x20');}function me(_0x17f697,_0x4a50af){const _0x58990b=_0x1247;let _0x33d50e=_0x17f697[_0x58990b(0x208)][_0x58990b(0x20d)](_0x506ddb=>z(_0x506ddb,_0x4a50af));if(_0x33d50e['length']===0x0)return'';if(_0x33d50e[_0x58990b(0x1ed)]===0x1)return'M\x20'+R(_0x33d50e[0x0]);let _0x10cc32=['M\x20'+R(_0x33d50e[0x0])];for(let _0x29251c=0x0;_0x29251c<_0x33d50e[_0x58990b(0x1ed)]-0x1;_0x29251c++){let _0x3a31be=_0x33d50e[_0x29251c],_0x4239cf=_0x33d50e[_0x29251c+0x1],_0x416d6b=_0x33d50e[_0x29251c-0x1]??_0x3a31be,_0x263443=_0x33d50e[_0x29251c+0x2]??_0x4239cf,_0x1c15da={'x':_0x3a31be['x']+(_0x4239cf['x']-_0x416d6b['x'])/0x6,'y':_0x3a31be['y']+(_0x4239cf['y']-_0x416d6b['y'])/0x6},_0x4b38de={'x':_0x4239cf['x']-(_0x263443['x']-_0x3a31be['x'])/0x6,'y':_0x4239cf['y']-(_0x263443['y']-_0x3a31be['y'])/0x6};_0x10cc32[_0x58990b(0x1df)]('C\x20'+R(_0x1c15da)+'\x20'+R(_0x4b38de)+'\x20'+R(_0x4239cf));}return _0x10cc32[_0x58990b(0x204)]('\x20');}function he(_0x45efc5,_0x1aa8e5){const _0x41ff42=_0x1247;return _0x45efc5['kind']===_0x41ff42(0x1d2)?pe(_0x45efc5,_0x1aa8e5):me(_0x45efc5,_0x1aa8e5);}function ge(_0x25df27,_0x127288){const _0x2449cc=_0x1247;return _0x127288!=null&&_0x127288[_0x2449cc(0x1c8)]?_0x127288['color']:_0x25df27[_0x2449cc(0x1fd)]===_0x2449cc(0x1d2)?_0x2449cc(0x1ea):_0x25df27[_0x2449cc(0x1c8)];}function _e(_0x2f7fd0,_0x55f884){const _0x189ca0=_0x1247;return(_0x55f884==null?void 0x0:_0x55f884['width'])===void 0x0?_0x2f7fd0[_0x189ca0(0x1fd)]===_0x189ca0(0x1d2)?0x2:_0x2f7fd0['width']:_0x55f884[_0x189ca0(0x1e7)];}function ve(_0x4b78e4,_0x1c9225){const _0x5c3791=_0x1247;return(_0x1c9225==null?void 0x0:_0x1c9225[_0x5c3791(0x1f7)])===void 0x0?_0x4b78e4[_0x5c3791(0x1fd)]===_0x5c3791(0x1d2)?void 0x0:_0x4b78e4['opacity']:_0x1c9225[_0x5c3791(0x1f7)];}function ye(_0x591fe8,_0x13d0ba){const _0x1e0b6d=_0x1247;let _0x35ec6c=G(_0x591fe8),_0x278053=he(_0x591fe8,{'x':_0x35ec6c[_0x1e0b6d(0x1bf)],'y':_0x35ec6c['top']}),_0x1c5fdc=_0x591fe8[_0x1e0b6d(0x1fd)]===_0x1e0b6d(0x1d2)&&_0x591fe8[_0x1e0b6d(0x1cf)],_0x16cf34=_0x13d0ba==null?void 0x0:_0x13d0ba[_0x1e0b6d(0x1b0)];return{'shapeType':_0x49cd1d[_0x1e0b6d(0x207)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x35ec6c['width'],'h':_0x35ec6c[_0x1e0b6d(0x1f8)],'fill':_0x1c5fdc?_0x1e0b6d(0x1f4):_0x1e0b6d(0x1e1),'stroke':!0x0,'data':_0x278053,'dataArray':be(_0x591fe8,{'x':_0x35ec6c[_0x1e0b6d(0x1bf)],'y':_0x35ec6c['top']})}]},'fill':_0x1c5fdc&&_0x16cf34?{'color':_0x16cf34,'fillType':_0x1ab911[_0x1e0b6d(0x1c4)]}:{'fillType':_0x1ab911[_0x1e0b6d(0x1e6)]},'stroke':{'color':ge(_0x591fe8,_0x13d0ba),'width':_e(_0x591fe8,_0x13d0ba),'opacity':ve(_0x591fe8,_0x13d0ba),'lineStrokeType':_0xb40238['SolidLine'],'capType':_0x52c57b[_0x1e0b6d(0x1b6)],'lineJoinType':_0x2ef3aa['Round']}};}function K(_0x25c047,_0x10945b){return{'x':_0x25c047['x']-_0x10945b['x'],'y':_0x25c047['y']-_0x10945b['y']};}function be(_0x49ae24,_0x3407d0){const _0x3f384c=_0x1247;if(_0x49ae24['kind']==='pen'){let _0x5af152=_0x49ae24[_0x3f384c(0x1f5)];if(_0x5af152[_0x3f384c(0x1ed)]===0x0)return[];let _0x3b818e=K(_0x5af152[0x0],_0x3407d0),_0x52062a=[{'command':'M','points':[_0x3b818e['x'],_0x3b818e['y']]}];for(let _0x189eb8=0x1;_0x189eb8<_0x5af152['length'];_0x189eb8++){let _0x41ff1b=_0x5af152[_0x189eb8-0x1],_0x4a50ee=_0x5af152[_0x189eb8],_0xbd7825=K(_0x41ff1b[_0x3f384c(0x1bb)]??_0x41ff1b,_0x3407d0),_0x266250=K(_0x4a50ee['in']??_0x4a50ee,_0x3407d0),_0x36b690=K(_0x4a50ee,_0x3407d0);_0x52062a['push']({'command':'C','points':[_0xbd7825['x'],_0xbd7825['y'],_0x266250['x'],_0x266250['y'],_0x36b690['x'],_0x36b690['y']]});}if(_0x49ae24[_0x3f384c(0x1cf)]&&_0x5af152[_0x3f384c(0x1ed)]>0x1){let _0x12bc0a=_0x5af152[_0x5af152['length']-0x1],_0x261cde=_0x5af152[0x0],_0x173658=K(_0x12bc0a['out']??_0x12bc0a,_0x3407d0),_0x3eb37e=K(_0x261cde['in']??_0x261cde,_0x3407d0),_0x5e4df2=K(_0x261cde,_0x3407d0);_0x52062a[_0x3f384c(0x1df)]({'command':'C','points':[_0x173658['x'],_0x173658['y'],_0x3eb37e['x'],_0x3eb37e['y'],_0x5e4df2['x'],_0x5e4df2['y']]}),_0x52062a[_0x3f384c(0x1df)]({'command':'z','points':[]});}return _0x52062a;}let _0x447ab4=_0x49ae24['points'][_0x3f384c(0x20d)](_0x3b9559=>K(_0x3b9559,_0x3407d0));if(_0x447ab4[_0x3f384c(0x1ed)]===0x0)return[];let _0x51a118=[{'command':'M','points':[_0x447ab4[0x0]['x'],_0x447ab4[0x0]['y']]}];for(let _0x1064e5=0x0;_0x1064e5<_0x447ab4['length']-0x1;_0x1064e5++){let _0x8547f7=_0x447ab4[_0x1064e5],_0x1ac900=_0x447ab4[_0x1064e5+0x1],_0x397300=_0x447ab4[_0x1064e5-0x1]??_0x8547f7,_0x25d6aa=_0x447ab4[_0x1064e5+0x2]??_0x1ac900,_0x120c79={'x':_0x8547f7['x']+(_0x1ac900['x']-_0x397300['x'])/0x6,'y':_0x8547f7['y']+(_0x1ac900['y']-_0x397300['y'])/0x6},_0x4a3ce1={'x':_0x1ac900['x']-(_0x25d6aa['x']-_0x8547f7['x'])/0x6,'y':_0x1ac900['y']-(_0x25d6aa['y']-_0x8547f7['y'])/0x6};_0x51a118[_0x3f384c(0x1df)]({'command':'C','points':[_0x120c79['x'],_0x120c79['y'],_0x4a3ce1['x'],_0x4a3ce1['y'],_0x1ac900['x'],_0x1ac900['y']]});}return _0x51a118;}function xe(_0x135e67){const _0x2240d5=_0x1247;let {model:_0x4a3419,sourceModel:_0x40ffa6=_0x4a3419,style:_0x27821f}=_0x135e67,_0x5b67e1=_0x135e67[_0x2240d5(0x1e9)]??_0x4a3419['kind'],_0x135f65=G(_0x4a3419),_0x1a8056=_0x4a3419[_0x2240d5(0x1fd)]===_0x2240d5(0x1d2)&&_0x5b67e1!=='pen'?_0x4a3419:void 0x0;return{'transform':{..._0x135f65,'rotation':0x0},'shapeData':ye(_0x4a3419,_0x27821f),'ink':{'version':0x1,'tool':_0x5b67e1,'sourceModel':_0x40ffa6,..._0x1a8056?{'editModel':_0x1a8056}:{},'normalizedBounds':_0x135f65}};}var Se=_0x4d5c9d(0x1b5),Ce=_0x4d5c9d(0x1ee);function q(_0x523eb3){'@babel/helpers - typeof';const _0x3aef37=_0x4d5c9d;return q=typeof Symbol==_0x3aef37(0x1b7)&&typeof Symbol[_0x3aef37(0x1ba)]==_0x3aef37(0x205)?function(_0x59cb69){return typeof _0x59cb69;}:function(_0x38333e){const _0x2ec18e=_0x3aef37;return _0x38333e&&typeof Symbol==_0x2ec18e(0x1b7)&&_0x38333e[_0x2ec18e(0x1b1)]===Symbol&&_0x38333e!==Symbol[_0x2ec18e(0x1be)]?'symbol':typeof _0x38333e;},q(_0x523eb3);}function we(_0x516bd9,_0x4c917f){const _0x42dce3=_0x4d5c9d;if(q(_0x516bd9)!=_0x42dce3(0x1fa)||!_0x516bd9)return _0x516bd9;var _0x5cb0d1=_0x516bd9[Symbol[_0x42dce3(0x1d9)]];if(_0x5cb0d1!==void 0x0){var _0x155937=_0x5cb0d1[_0x42dce3(0x1de)](_0x516bd9,_0x4c917f||_0x42dce3(0x1ca));if(q(_0x155937)!=_0x42dce3(0x1fa))return _0x155937;throw TypeError(_0x42dce3(0x1cc));}return(_0x4c917f===_0x42dce3(0x1c3)?String:Number)(_0x516bd9);}function J(_0x316c5b){const _0x934e81=_0x4d5c9d;var _0x11ab0c=we(_0x316c5b,_0x934e81(0x1c3));return q(_0x11ab0c)==_0x934e81(0x205)?_0x11ab0c:_0x11ab0c+'';}function Y(_0x1292fa,_0x169b40,_0xfb5be2){const _0x1573ed=_0x4d5c9d;return(_0x169b40=J(_0x169b40))in _0x1292fa?Object[_0x1573ed(0x1f0)](_0x1292fa,_0x169b40,{'value':_0xfb5be2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1292fa[_0x169b40]=_0xfb5be2,_0x1292fa;}const X=_0x5f2cbd(_0x4d5c9d(0x1ad));var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x4d5c9d(0x1da)](_0x9beaca){const _0x1fb571=_0x4d5c9d;return this[_0x1fb571(0x20a)][_0x1fb571(0x1df)](_0x9beaca),_0x5a5fba(()=>{const _0x64f852=_0x1fb571;let _0x17feb0=this[_0x64f852(0x20a)][_0x64f852(0x1e4)](_0x9beaca);_0x17feb0>=0x0&&this[_0x64f852(0x20a)][_0x64f852(0x1b9)](_0x17feb0,0x1);});}[_0x4d5c9d(0x1d0)](_0x1097ce){const _0x5c3a86=_0x4d5c9d;for(let _0x5e03b5 of this[_0x5c3a86(0x20a)])if(_0x5e03b5[_0x5c3a86(0x1d0)](_0x1097ce))return!0x0;return!0x1;}async[_0x4d5c9d(0x1d5)](_0x55619c){const _0x574625=_0x4d5c9d;for(let _0x570e6a of this['_adapters'])if(_0x570e6a['createCustomShape']&&await _0x570e6a[_0x574625(0x1d5)](_0x55619c))return!0x0;return!0x1;}};const Ee={'id':_0x4d5c9d(0x1e0),'type':_0x274185['OPERATION'],'handler':(_0x90e071,_0x25aab6)=>_0x25aab6?_0x90e071[_0x4d5c9d(0x1ec)](X)[_0x4d5c9d(0x1d0)](_0x25aab6):!0x1},Z={};function Q(_0x52643a,_0x30049b){return function(_0x3b837a,_0x44a9c6){_0x30049b(_0x3b837a,_0x44a9c6,_0x52643a);};}function De(_0x4c0535,_0x124e26,_0xdab5cd,_0x1b4623){const _0x4c4ad1=_0x4d5c9d;var _0x124e17=arguments[_0x4c4ad1(0x1ed)],_0x249b66=_0x124e17<0x3?_0x124e26:_0x1b4623===null?_0x1b4623=Object[_0x4c4ad1(0x1c5)](_0x124e26,_0xdab5cd):_0x1b4623,_0x15ca01;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x4c4ad1(0x1b7))_0x249b66=Reflect['decorate'](_0x4c0535,_0x124e26,_0xdab5cd,_0x1b4623);else{for(var _0x52ba24=_0x4c0535[_0x4c4ad1(0x1ed)]-0x1;_0x52ba24>=0x0;_0x52ba24--)(_0x15ca01=_0x4c0535[_0x52ba24])&&(_0x249b66=(_0x124e17<0x3?_0x15ca01(_0x249b66):_0x124e17>0x3?_0x15ca01(_0x124e26,_0xdab5cd,_0x249b66):_0x15ca01(_0x124e26,_0xdab5cd))||_0x249b66);}return _0x124e17>0x3&&_0x249b66&&Object[_0x4c4ad1(0x1f0)](_0x124e26,_0xdab5cd,_0x249b66),_0x249b66;}let $=class extends _0xd72275{constructor(_0x4e0fcd=Z,_0x4e9818,_0x212146,_0xde7c23){const _0xbcdfba=_0x4d5c9d;super(),this[_0xbcdfba(0x20c)]=_0x4e0fcd,this[_0xbcdfba(0x1f9)]=_0x4e9818,this[_0xbcdfba(0x1fb)]=_0x212146,this[_0xbcdfba(0x1d7)]=_0xde7c23;let {..._0x547ea9}=_0xe94c79({},Z,this[_0xbcdfba(0x20c)]);this[_0xbcdfba(0x1d7)][_0xbcdfba(0x1dc)](_0xbcdfba(0x1ae),_0x547ea9);}[_0x4d5c9d(0x200)](){const _0x4fcce1=_0x4d5c9d;[[X,{'useClass':Te}]]['forEach'](_0x5b972f=>this[_0x4fcce1(0x1f9)][_0x4fcce1(0x1fc)](_0x5b972f)),this[_0x4fcce1(0x20b)](this['_commandService']['registerCommand'](Ee));}};Y($,_0x4d5c9d(0x1b4),'UNIVER_INK_PLUGIN'),Y($,_0x4d5c9d(0x1b8),Se),Y($,_0x4d5c9d(0x1f2),Ce),Y($,_0x4d5c9d(0x1f1),_0x5eeb86[_0x4d5c9d(0x1ff)]),$=De([_0x2f0a1b(_0x57a878),Q(0x1,_0x304ec7(_0x404c68)),Q(0x2,_0x18c36a),Q(0x3,_0x4e83c9)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
1
+ const _0x428ca5=_0x34f4;(function(_0x2a7a23,_0x31913){const _0x260a18=_0x34f4,_0x10d146=_0x2a7a23();while(!![]){try{const _0x27909c=parseInt(_0x260a18(0x110))/0x1+-parseInt(_0x260a18(0xe3))/0x2*(parseInt(_0x260a18(0xfe))/0x3)+-parseInt(_0x260a18(0xda))/0x4*(parseInt(_0x260a18(0x12d))/0x5)+-parseInt(_0x260a18(0xe2))/0x6+parseInt(_0x260a18(0xeb))/0x7*(parseInt(_0x260a18(0xd8))/0x8)+parseInt(_0x260a18(0x10a))/0x9+-parseInt(_0x260a18(0xfb))/0xa*(parseInt(_0x260a18(0xfa))/0xb);if(_0x27909c===_0x31913)break;else _0x10d146['push'](_0x10d146['shift']());}catch(_0x4c031b){_0x10d146['push'](_0x10d146['shift']());}}}(_0x52c8,0x6d5e7));import{ShapeFillEnum as _0x1da015,ShapeLineCapEnum as _0x1d6166,ShapeLineJoinEnum as _0x439b44,ShapeLineTypeEnum as _0x5d98d2,ShapeTypeEnum as _0x9ecee9}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x44e568}from'@univerjs-pro/license';import{CommandType as _0x262274,DependentOn as _0x51330d,ICommandService as _0x2a482d,IConfigService as _0x37a4f2,Inject as _0x89bb4c,Injector as _0x169e64,Plugin as _0xd5747,UniverInstanceType as _0x57679c,createIdentifier as _0x290056,merge as _0x18dd0a,toDisposable as _0x243018}from'@univerjs/core';const g=0.0001;function _(_0x27b282){return{'x':_0x27b282['x'],'y':_0x27b282['y']};}function v(_0x431c4c){const _0x883d89=_0x34f4;return{..._0x431c4c,'in':_0x431c4c['in']?_(_0x431c4c['in']):void 0x0,'out':_0x431c4c[_0x883d89(0xe0)]?_(_0x431c4c[_0x883d89(0xe0)]):void 0x0};}function y(_0x30f9af){const _0x81267=_0x34f4;return{'kind':_0x81267(0x11e),'closed':_0x30f9af['closed'],'anchors':_0x30f9af[_0x81267(0x10d)][_0x81267(0xee)](v)};}function b(_0x4d4208,_0x3e6b00,_0x52e7c8){return{'x':_0x4d4208['x']+(_0x3e6b00['x']-_0x4d4208['x'])*_0x52e7c8,'y':_0x4d4208['y']+(_0x3e6b00['y']-_0x4d4208['y'])*_0x52e7c8};}function x(_0x2a10b2,_0x3bb84f){return Math['hypot'](_0x2a10b2['x']-_0x3bb84f['x'],_0x2a10b2['y']-_0x3bb84f['y']);}function S(_0x2ccd49){const _0x117a1c=_0x34f4;let _0x450be1=Math[_0x117a1c(0xf8)](_0x2ccd49['x'],_0x2ccd49['y']);return _0x450be1<g?{'x':0x1,'y':0x0}:{'x':_0x2ccd49['x']/_0x450be1,'y':_0x2ccd49['y']/_0x450be1};}function C(_0x39245c,_0x29e9a6,_0x3dc761=x(_0x39245c,_0x29e9a6)){let _0x264866=S({'x':_0x39245c['x']-_0x29e9a6['x'],'y':_0x39245c['y']-_0x29e9a6['y']});return{'x':_0x39245c['x']+_0x264866['x']*_0x3dc761,'y':_0x39245c['y']+_0x264866['y']*_0x3dc761};}function w(_0x27668a,_0x1d36d9){const _0x1c27a0=_0x34f4;let {anchors:_0x5bbda3}=_0x27668a;return _0x5bbda3['length']<0x2||_0x1d36d9<0x0?null:_0x1d36d9<_0x5bbda3[_0x1c27a0(0x12a)]-0x1?{'startIndex':_0x1d36d9,'endIndex':_0x1d36d9+0x1,'start':_0x5bbda3[_0x1d36d9],'end':_0x5bbda3[_0x1d36d9+0x1]}:_0x27668a[_0x1c27a0(0x108)]&&_0x1d36d9===_0x5bbda3['length']-0x1?{'startIndex':_0x5bbda3[_0x1c27a0(0x12a)]-0x1,'endIndex':0x0,'start':_0x5bbda3[_0x5bbda3[_0x1c27a0(0x12a)]-0x1],'end':_0x5bbda3[0x0]}:null;}function T(_0x453668,_0x323623){const _0x78facb=_0x34f4;let _0x4e1ef=w(_0x453668,_0x323623);return _0x4e1ef?[_0x4e1ef[_0x78facb(0x124)],_0x4e1ef[_0x78facb(0x124)][_0x78facb(0xe0)]??_0x4e1ef[_0x78facb(0x124)],_0x4e1ef['end']['in']??_0x4e1ef['end'],_0x4e1ef['end']]:null;}function te(_0x54f12d,_0x2a6d24){const _0x4e4746=_0x34f4;return _0x2a6d24===_0x4e4746(0xea)?_0x54f12d:_0x54f12d[_0x2a6d24]??null;}function E(_0x2c0d7b,_0x1c2156,_0x987321){const _0x480e84=_0x34f4;return _0x987321==='anchor'||_0x2c0d7b[_0x480e84(0x108)]?!0x0:_0x987321==='in'?_0x1c2156>0x0:_0x1c2156<_0x2c0d7b[_0x480e84(0x10d)][_0x480e84(0x12a)]-0x1;}function D(_0x45a996,_0x18502e){let [_0x7d9f2a,_0x14ed0d,_0x28ff51,_0x17141f]=_0x45a996,_0x134544=b(_0x7d9f2a,_0x14ed0d,_0x18502e),_0x1cb0c6=b(_0x14ed0d,_0x28ff51,_0x18502e),_0x435df4=b(_0x28ff51,_0x17141f,_0x18502e);return b(b(_0x134544,_0x1cb0c6,_0x18502e),b(_0x1cb0c6,_0x435df4,_0x18502e),_0x18502e);}function ne(_0x4b840c,_0x4f08c5){let [_0x44fe60,_0x1e1f40,_0x5b764a,_0x3584c8]=_0x4b840c,_0x116aac=b(_0x44fe60,_0x1e1f40,_0x4f08c5),_0x4567c5=b(_0x1e1f40,_0x5b764a,_0x4f08c5),_0x1eb00a=b(_0x5b764a,_0x3584c8,_0x4f08c5),_0x936904=b(_0x116aac,_0x4567c5,_0x4f08c5),_0x158a9c=b(_0x4567c5,_0x1eb00a,_0x4f08c5),_0x2c43b4=b(_0x936904,_0x158a9c,_0x4f08c5);return{'left':[_0x44fe60,_0x116aac,_0x936904,_0x2c43b4],'right':[_0x2c43b4,_0x158a9c,_0x1eb00a,_0x3584c8]};}function O(_0x1d0fd8,_0x7fd4d1,_0x4f42a8){const _0x43b7c8=_0x34f4;let _0x442bcf=_0x4f42a8['x']-_0x7fd4d1['x'],_0x3b7125=_0x4f42a8['y']-_0x7fd4d1['y'],_0x4b7eab=_0x442bcf*_0x442bcf+_0x3b7125*_0x3b7125,_0x498553=_0x4b7eab<=g?0x0:Math[_0x43b7c8(0x117)](0x0,Math[_0x43b7c8(0x122)](0x1,((_0x1d0fd8['x']-_0x7fd4d1['x'])*_0x442bcf+(_0x1d0fd8['y']-_0x7fd4d1['y'])*_0x3b7125)/_0x4b7eab)),_0x1c3f29={'x':_0x7fd4d1['x']+_0x442bcf*_0x498553,'y':_0x7fd4d1['y']+_0x3b7125*_0x498553};return{'point':_0x1c3f29,'ratio':_0x498553,'distance':x(_0x1d0fd8,_0x1c3f29)};}function re(_0x372356,_0x3553c7,_0x378449){return O(_0x372356,_0x3553c7,_0x378449)['distance']**0x2;}function k(_0x58cee5,_0x21c3f2){const _0x57b922=_0x34f4;if(_0x58cee5['length']<=0x2)return _0x58cee5[_0x57b922(0xee)](_);let _0x23f24e=0x0,_0x3cd684=0x0,_0x3afcc2=_0x58cee5[0x0],_0x111975=_0x58cee5[_0x58cee5[_0x57b922(0x12a)]-0x1],_0x5008e2=_0x21c3f2*_0x21c3f2;for(let _0x291ff6=0x1;_0x291ff6<_0x58cee5[_0x57b922(0x12a)]-0x1;_0x291ff6++){let _0x541f44=re(_0x58cee5[_0x291ff6],_0x3afcc2,_0x111975);_0x541f44>_0x23f24e&&(_0x23f24e=_0x541f44,_0x3cd684=_0x291ff6);}if(_0x23f24e<=_0x5008e2)return[_(_0x3afcc2),_(_0x111975)];let _0x141c65=k(_0x58cee5[_0x57b922(0x10f)](0x0,_0x3cd684+0x1),_0x21c3f2),_0x3c37f4=k(_0x58cee5[_0x57b922(0x10f)](_0x3cd684),_0x21c3f2);return[..._0x141c65[_0x57b922(0x10f)](0x0,-0x1),..._0x3c37f4];}function ie(_0x4859fe,_0x402e47){let _0x4e8a1f=_0x4859fe[_0x402e47],_0x2f919e=_0x4859fe[_0x402e47+0x1],_0x4360ad=_0x4859fe[_0x402e47-0x1]??_0x4e8a1f;return{'x':_0x4e8a1f['x']+(_0x2f919e['x']-_0x4360ad['x'])/0x6,'y':_0x4e8a1f['y']+(_0x2f919e['y']-_0x4360ad['y'])/0x6};}function A(_0x4c6a6f,_0x2fc288){let _0x3b1753=_0x4c6a6f[_0x2fc288],_0x179780=_0x4c6a6f[_0x2fc288-0x1],_0x2a1585=_0x4c6a6f[_0x2fc288+0x1]??_0x3b1753;return{'x':_0x3b1753['x']-(_0x2a1585['x']-_0x179780['x'])/0x6,'y':_0x3b1753['y']-(_0x2a1585['y']-_0x179780['y'])/0x6};}function j(_0x4a36b8,_0xfc973e){const _0x3ef262=_0x34f4;let _0x408436=_0x4a36b8['anchors'][_0xfc973e],_0x385c1d=_0x4a36b8[_0x3ef262(0x10d)][_0xfc973e-0x1]??(_0x4a36b8[_0x3ef262(0x108)]?_0x4a36b8[_0x3ef262(0x10d)][_0x4a36b8[_0x3ef262(0x10d)][_0x3ef262(0x12a)]-0x1]:null),_0x45ef95=_0x4a36b8[_0x3ef262(0x10d)][_0xfc973e+0x1]??(_0x4a36b8[_0x3ef262(0x108)]?_0x4a36b8[_0x3ef262(0x10d)][0x0]:null),_0x5ec821=_0x385c1d&&_0x45ef95?S({'x':_0x45ef95['x']-_0x385c1d['x'],'y':_0x45ef95['y']-_0x385c1d['y']}):_0x45ef95?S({'x':_0x45ef95['x']-_0x408436['x'],'y':_0x45ef95['y']-_0x408436['y']}):_0x385c1d?S({'x':_0x408436['x']-_0x385c1d['x'],'y':_0x408436['y']-_0x385c1d['y']}):{'x':0x1,'y':0x0},_0x5f131d=_0x385c1d&&_0x45ef95?Math[_0x3ef262(0x117)](0x32,x(_0x385c1d,_0x45ef95)/0x4):0x32;return{'in':{'x':_0x408436['x']-_0x5ec821['x']*_0x5f131d,'y':_0x408436['y']-_0x5ec821['y']*_0x5f131d},'out':{'x':_0x408436['x']+_0x5ec821['x']*_0x5f131d,'y':_0x408436['y']+_0x5ec821['y']*_0x5f131d}};}function M(_0x306e91,_0x31c41f){const _0x352b83=_0x34f4;let _0x55aadc=_0x306e91[_0x31c41f],_0x4753ca=_0x31c41f==='in'?_0x352b83(0xe0):'in',_0x1ec864=_0x306e91[_0x4753ca];_0x55aadc&&(_0x306e91[_0x352b83(0xf4)]==='symmetric'?_0x306e91[_0x4753ca]=C(_0x306e91,_0x55aadc):_0x306e91['pointType']===_0x352b83(0xe4)&&(_0x306e91[_0x4753ca]=C(_0x306e91,_0x55aadc,_0x1ec864?x(_0x306e91,_0x1ec864):x(_0x306e91,_0x55aadc))));}function ae(_0x43dc20,_0x5524fd){const _0x394a11=_0x34f4;let _0x39a7c5=y(_0x43dc20);return!_0x5524fd||_0x39a7c5[_0x394a11(0x108)]||_0x39a7c5[_0x394a11(0x10d)][_0x394a11(0x12a)]===0x0||_0x39a7c5[_0x394a11(0x10d)][_0x394a11(0x103)]({'id':_0x394a11(0x104),'x':_0x5524fd['x'],'y':_0x5524fd['y'],'pointType':_0x394a11(0xd9)}),_0x39a7c5;}function oe(_0x1fec87,_0x232b16={}){const _0xfda3a7=_0x34f4;let _0x8b2347=Math['max'](0x0,_0x232b16[_0xfda3a7(0x121)]??Math[_0xfda3a7(0x117)](0x4,_0x1fec87[_0xfda3a7(0x119)]*0.35)),_0x25c45c=_0x232b16[_0xfda3a7(0xe1)]??(_0x52abb0=>_0xfda3a7(0x137)+_0x52abb0),_0x504278=k(_0x1fec87[_0xfda3a7(0x128)],_0x8b2347),_0x34fa42=_0x504278[_0xfda3a7(0xee)]((_0x4518c2,_0x37a0e2)=>({'id':_0x25c45c(_0x37a0e2),'x':_0x4518c2['x'],'y':_0x4518c2['y'],'pointType':'free'}));for(let _0x321446=0x0;_0x321446<_0x34fa42[_0xfda3a7(0x12a)]-0x1;_0x321446++)_0x34fa42[_0x321446][_0xfda3a7(0xe0)]=ie(_0x504278,_0x321446),_0x34fa42[_0x321446+0x1]['in']=A(_0x504278,_0x321446+0x1);return{'kind':_0xfda3a7(0x11e),'closed':!0x1,'anchors':_0x34fa42};}function se(_0x34b1f9,_0x4088be,_0x4fddd7){const _0x4c0499=_0x34f4;let _0x51ff5c=null,_0x2b5849=[_0x4c0499(0xea),'in',_0x4c0499(0xe0)];return _0x34b1f9[_0x4c0499(0x10d)][_0x4c0499(0x11d)]((_0x564231,_0xd3da6d)=>{const _0xc12a21=_0x4c0499;_0x2b5849[_0xc12a21(0x11d)](_0x32295d=>{const _0x19ff1a=_0xc12a21;if(!E(_0x34b1f9,_0xd3da6d,_0x32295d))return;let _0x1fe30f=te(_0x564231,_0x32295d);if(!_0x1fe30f)return;let _0x3a9f94=x(_0x4088be,_0x1fe30f);_0x3a9f94>_0x4fddd7||_0x51ff5c&&_0x3a9f94>=_0x51ff5c[_0x19ff1a(0x11f)]||(_0x51ff5c={'handle':{'kind':_0x32295d,'anchorId':_0x564231['id']},'point':_(_0x1fe30f),'distance':_0x3a9f94});});}),_0x51ff5c;}function ce(_0x390141,_0x3ad76e,_0x25b80d){const _0xdce4e7=_0x34f4;let _0x1ed56d=null,_0x15bbb7=_0x390141[_0xdce4e7(0x108)]?_0x390141[_0xdce4e7(0x10d)]['length']:Math[_0xdce4e7(0x117)](0x0,_0x390141['anchors'][_0xdce4e7(0x12a)]-0x1);for(let _0x2b6fd5=0x0;_0x2b6fd5<_0x15bbb7;_0x2b6fd5++){let _0x788af=T(_0x390141,_0x2b6fd5);if(!_0x788af)continue;let _0x350714=D(_0x788af,0x0);for(let _0x2d3625=0x1;_0x2d3625<=0x20;_0x2d3625++){let _0x1bd4bd=D(_0x788af,_0x2d3625/0x20),_0x23b51d=O(_0x3ad76e,_0x350714,_0x1bd4bd),_0x308ec8=(_0x2d3625-0x1+_0x23b51d[_0xdce4e7(0x127)])/0x20;(!_0x1ed56d||_0x23b51d[_0xdce4e7(0x11f)]<_0x1ed56d[_0xdce4e7(0x11f)])&&(_0x1ed56d={'segmentIndex':_0x2b6fd5,'t':_0x308ec8,'point':_0x23b51d[_0xdce4e7(0xef)],'distance':_0x23b51d[_0xdce4e7(0x11f)]}),_0x350714=_0x1bd4bd;}}return _0x1ed56d&&_0x1ed56d['distance']<=_0x25b80d?_0x1ed56d:null;}function le(_0x5bc239,_0x4f122a,_0x2b6c37){const _0x32ea0b=_0x34f4;let _0x15a416=y(_0x5bc239),_0x57a4df=w(_0x15a416,_0x4f122a['segmentIndex']),_0x4c00ef=T(_0x15a416,_0x4f122a[_0x32ea0b(0xdb)]);if(!_0x57a4df||!_0x4c00ef)return _0x15a416;let _0x593c5a=ne(_0x4c00ef,Math[_0x32ea0b(0x117)](0x0,Math[_0x32ea0b(0x122)](0x1,_0x4f122a['t']))),_0x60809d={'id':_0x2b6c37(),'x':_0x593c5a['left'][0x3]['x'],'y':_0x593c5a[_0x32ea0b(0x134)][0x3]['y'],'in':_(_0x593c5a[_0x32ea0b(0x134)][0x2]),'out':_(_0x593c5a['right'][0x1]),'pointType':_0x32ea0b(0xf3)};return _0x15a416['anchors'][_0x57a4df[_0x32ea0b(0xf5)]][_0x32ea0b(0xe0)]=_(_0x593c5a['left'][0x1]),_0x15a416[_0x32ea0b(0x10d)][_0x57a4df[_0x32ea0b(0xff)]]['in']=_(_0x593c5a['right'][0x2]),_0x15a416[_0x32ea0b(0x10d)]['splice'](_0x57a4df[_0x32ea0b(0xf5)]+0x1,0x0,_0x60809d),_0x15a416;}function ue(_0x4325f9,_0x493098){const _0x336d8a=_0x34f4;let _0x6189dc=y(_0x4325f9);return _0x6189dc[_0x336d8a(0x10d)]=_0x6189dc['anchors'][_0x336d8a(0x101)](_0x2b6b93=>_0x2b6b93['id']!==_0x493098),_0x6189dc['closed']&&_0x6189dc[_0x336d8a(0x10d)][_0x336d8a(0x12a)]<0x3&&(_0x6189dc[_0x336d8a(0x108)]=!0x1),_0x6189dc;}function N(_0x22c8c1,_0x3b73ef,_0x45512e){const _0x3ce140=_0x34f4;let _0x33b10e=y(_0x22c8c1),_0x4b5cc8=_0x33b10e[_0x3ce140(0x10d)][_0x3ce140(0x120)](_0x1adcac=>_0x1adcac['id']===_0x3b73ef),_0x213548=_0x33b10e[_0x3ce140(0x10d)][_0x4b5cc8];if(!_0x213548)return _0x33b10e;if(_0x213548[_0x3ce140(0xf4)]=_0x45512e,_0x45512e==='corner')return delete _0x213548['in'],delete _0x213548[_0x3ce140(0xe0)],_0x33b10e;let _0x3ebc64=j(_0x33b10e,_0x4b5cc8);if(_0x213548['in']=_0x213548['in']?_(_0x213548['in']):_0x3ebc64['in'],_0x213548[_0x3ce140(0xe0)]=_0x213548[_0x3ce140(0xe0)]?_(_0x213548[_0x3ce140(0xe0)]):_0x3ebc64[_0x3ce140(0xe0)],_0x45512e===_0x3ce140(0xf1)){let _0x15ebff=Math[_0x3ce140(0x117)](x(_0x213548,_0x213548['in']),x(_0x213548,_0x213548[_0x3ce140(0xe0)]),0x32),_0x19f882=S({'x':_0x213548[_0x3ce140(0xe0)]['x']-_0x213548['x'],'y':_0x213548[_0x3ce140(0xe0)]['y']-_0x213548['y']});_0x213548[_0x3ce140(0xe0)]={'x':_0x213548['x']+_0x19f882['x']*_0x15ebff,'y':_0x213548['y']+_0x19f882['y']*_0x15ebff},_0x213548['in']={'x':_0x213548['x']-_0x19f882['x']*_0x15ebff,'y':_0x213548['y']-_0x19f882['y']*_0x15ebff};}else _0x45512e===_0x3ce140(0xe4)&&M(_0x213548,'out');return _0x33b10e;}function P(_0x33e8b3,_0x148f3e){const _0x219cab=_0x34f4;let _0x7e6e61=_0x33e8b3[_0x219cab(0x10d)]['find'](_0x6c5a17=>_0x6c5a17['id']===_0x148f3e),_0x36fac9=(_0x7e6e61==null?void 0x0:_0x7e6e61[_0x219cab(0xf4)])??'corner';return N(_0x33e8b3,_0x148f3e,_0x36fac9===_0x219cab(0xd9)?_0x219cab(0xe4):_0x36fac9===_0x219cab(0xe4)?'symmetric':_0x36fac9==='symmetric'?_0x219cab(0xf3):_0x219cab(0xd9));}function F(_0x503e20,_0x11c996,_0x26c33f){const _0x36686e=_0x34f4;let _0x22bade=y(_0x503e20),_0x45fb1f=_0x22bade['anchors']['find'](_0x2c568d=>_0x2c568d['id']===_0x11c996[_0x36686e(0x130)]);if(!_0x45fb1f)return _0x22bade;if(_0x11c996['kind']==='anchor'){let _0xa24b27={'x':_0x26c33f['x']-_0x45fb1f['x'],'y':_0x26c33f['y']-_0x45fb1f['y']};return _0x45fb1f['x']=_0x26c33f['x'],_0x45fb1f['y']=_0x26c33f['y'],_0x45fb1f['in']&&={'x':_0x45fb1f['in']['x']+_0xa24b27['x'],'y':_0x45fb1f['in']['y']+_0xa24b27['y']},_0x45fb1f[_0x36686e(0xe0)]&&={'x':_0x45fb1f['out']['x']+_0xa24b27['x'],'y':_0x45fb1f[_0x36686e(0xe0)]['y']+_0xa24b27['y']},_0x22bade;}return _0x45fb1f[_0x11c996[_0x36686e(0x116)]]=_(_0x26c33f),_0x45fb1f[_0x36686e(0xf4)]===_0x36686e(0xd9)&&(_0x45fb1f[_0x36686e(0xf4)]=_0x36686e(0xf3)),M(_0x45fb1f,_0x11c996['kind']),_0x22bade;}const I=1e-9;function L(_0x316173){const _0x3fdc01=_0x34f4;let _0x1e2988=Math[_0x3fdc01(0xdd)](_0x316173*0x2710)/0x2710;return Object['is'](_0x1e2988,-0x0)?'0':String(_0x1e2988);}function R(_0x30f47a){return L(_0x30f47a['x'])+'\x20'+L(_0x30f47a['y']);}function z(_0x138692,_0x45873d){return{'x':_0x138692['x']-_0x45873d['x'],'y':_0x138692['y']-_0x45873d['y']};}function B(_0x4c1a8d,_0x4cd957,_0x58c479,_0xf43e63,_0x30b59b){let _0xe881cf=0x1-_0x30b59b;return{'x':_0xe881cf*_0xe881cf*_0xe881cf*_0x4c1a8d['x']+0x3*_0xe881cf*_0xe881cf*_0x30b59b*_0x4cd957['x']+0x3*_0xe881cf*_0x30b59b*_0x30b59b*_0x58c479['x']+_0x30b59b*_0x30b59b*_0x30b59b*_0xf43e63['x'],'y':_0xe881cf*_0xe881cf*_0xe881cf*_0x4c1a8d['y']+0x3*_0xe881cf*_0xe881cf*_0x30b59b*_0x4cd957['y']+0x3*_0xe881cf*_0x30b59b*_0x30b59b*_0x58c479['y']+_0x30b59b*_0x30b59b*_0x30b59b*_0xf43e63['y']};}function V(_0x477b29,_0x228058,_0x45e47c,_0x3a8d6f){const _0x4cf181=_0x34f4;let _0x1a9c1e=-_0x477b29+0x3*_0x228058-0x3*_0x45e47c+_0x3a8d6f,_0x35db16=0x3*_0x477b29-0x6*_0x228058+0x3*_0x45e47c,_0x277b3f=-0x3*_0x477b29+0x3*_0x228058,_0x560894=[];if(Math['abs'](_0x1a9c1e)<I){if(Math[_0x4cf181(0x12c)](_0x35db16)<I)return _0x560894;let _0x4f70cc=-_0x277b3f/(0x2*_0x35db16);return _0x4f70cc>0x0&&_0x4f70cc<0x1&&_0x560894[_0x4cf181(0x103)](_0x4f70cc),_0x560894;}let _0x228231=_0x35db16*_0x35db16-0x3*_0x1a9c1e*_0x277b3f;if(_0x228231<0x0)return _0x560894;let _0x207192=Math[_0x4cf181(0x115)](Math[_0x4cf181(0x117)](0x0,_0x228231)),_0x28d17f=(-_0x35db16+_0x207192)/(0x3*_0x1a9c1e),_0x2c24ee=(-_0x35db16-_0x207192)/(0x3*_0x1a9c1e);return _0x28d17f>0x0&&_0x28d17f<0x1&&_0x560894[_0x4cf181(0x103)](_0x28d17f),_0x2c24ee>0x0&&_0x2c24ee<0x1&&Math['abs'](_0x2c24ee-_0x28d17f)>I&&_0x560894['push'](_0x2c24ee),_0x560894;}function H(_0x3aee92,_0x547328,_0xede317,_0x3b069e,_0x4a7deb){const _0x4b31cf=_0x34f4;_0x3aee92['push'](_0x547328,_0x4a7deb),new Set([...V(_0x547328['x'],_0xede317['x'],_0x3b069e['x'],_0x4a7deb['x']),...V(_0x547328['y'],_0xede317['y'],_0x3b069e['y'],_0x4a7deb['y'])])[_0x4b31cf(0x11d)](_0x5b2cd4=>{const _0x41f62c=_0x4b31cf;_0x3aee92[_0x41f62c(0x103)](B(_0x547328,_0xede317,_0x3b069e,_0x4a7deb,_0x5b2cd4));});}function U(_0x54afda){const _0x46e478=_0x34f4;let _0x6c6ede=_0x54afda[_0x46e478(0x10d)];if(_0x6c6ede['length']<=0x1)return _0x6c6ede;let _0x3fdd37=[];for(let _0x1a1146=0x1;_0x1a1146<_0x6c6ede[_0x46e478(0x12a)];_0x1a1146++){let _0x489591=_0x6c6ede[_0x1a1146-0x1],_0x3cc97d=_0x6c6ede[_0x1a1146];H(_0x3fdd37,_0x489591,_0x489591[_0x46e478(0xe0)]??_0x489591,_0x3cc97d['in']??_0x3cc97d,_0x3cc97d);}if(_0x54afda['closed']&&_0x6c6ede[_0x46e478(0x12a)]>0x1){let _0x3b1d90=_0x6c6ede[_0x6c6ede[_0x46e478(0x12a)]-0x1],_0x3f57f2=_0x6c6ede[0x0];H(_0x3fdd37,_0x3b1d90,_0x3b1d90[_0x46e478(0xe0)]??_0x3b1d90,_0x3f57f2['in']??_0x3f57f2,_0x3f57f2);}return _0x3fdd37;}function _0x52c8(){const _0x76cf91=['filter','get','push','__ink-preview-anchor__','UNIVER_INK_PLUGIN','_configService','registerAdapter','closed','setConfig','4022361aXPNCP','constructor','join','anchors','tool','slice','609368TWjUjx','#f54a45','ink.host-adapter.service','defineProperty','_adapters','sqrt','kind','max','type','width','function','version','Round','forEach','pen','distance','findIndex','tolerance','min','UNIVER_UNKNOWN','start','NoFill','top','ratio','points','_config','length','add','abs','3048620mYeYQA','object','SolidLine','anchorId','beginInkMode','Rect','_injector','left','registerCommand','opacity','ink-centerline-','color','2303144HOQZqG','corner','4dWDJXS','segmentIndex','createCustomShape','round','fillColor','indexOf','out','createId','270570UNustx','6vJljhz','smooth','OPERATION','iterator','symbol','onStarting','_commandService','anchor','21DRreEN','norm','default','map','point','@univerjs-pro/ink','symmetric','pluginName','free','pointType','startIndex','call','toPrimitive','hypot','decorate','165xyvoOf','527570QNkJgH','string','SolidFill','25827VLBpok','endIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x52c8=function(){return _0x76cf91;};return _0x52c8();}function de(_0x4efe31){const _0x25ae24=_0x34f4;let _0xdd7256=_0x4efe31[_0x25ae24(0x128)];if(_0xdd7256['length']<=0x1)return _0xdd7256;let _0x5eeb13=[];for(let _0x15e3cc=0x0;_0x15e3cc<_0xdd7256[_0x25ae24(0x12a)]-0x1;_0x15e3cc++){let _0x5a040a=_0xdd7256[_0x15e3cc],_0x195462=_0xdd7256[_0x15e3cc+0x1],_0x376e68=_0xdd7256[_0x15e3cc-0x1]??_0x5a040a,_0x797bc8=_0xdd7256[_0x15e3cc+0x2]??_0x195462;H(_0x5eeb13,_0x5a040a,{'x':_0x5a040a['x']+(_0x195462['x']-_0x376e68['x'])/0x6,'y':_0x5a040a['y']+(_0x195462['y']-_0x376e68['y'])/0x6},{'x':_0x195462['x']-(_0x797bc8['x']-_0x5a040a['x'])/0x6,'y':_0x195462['y']-(_0x797bc8['y']-_0x5a040a['y'])/0x6},_0x195462);}return _0x5eeb13;}function fe(_0xab68b6){const _0x23ecf7=_0x34f4;return _0xab68b6[_0x23ecf7(0x116)]===_0x23ecf7(0x11e)?U(_0xab68b6):de(_0xab68b6);}function W(_0x443cb5){const _0x321b68=_0x34f4;let _0x2579a4=Math[_0x321b68(0xdd)](_0x443cb5*0x2710)/0x2710;return Object['is'](_0x2579a4,-0x0)?0x0:_0x2579a4;}function G(_0x3b9fa2){const _0x5c99f1=_0x34f4;let _0x1ab821=fe(_0x3b9fa2);if(_0x1ab821[_0x5c99f1(0x12a)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x575ca7=Math[_0x5c99f1(0x122)](..._0x1ab821['map'](_0x1388dd=>_0x1388dd['x'])),_0xa8cf0a=Math[_0x5c99f1(0x122)](..._0x1ab821[_0x5c99f1(0xee)](_0x131eb9=>_0x131eb9['y'])),_0x3cce5b=Math[_0x5c99f1(0x117)](..._0x1ab821[_0x5c99f1(0xee)](_0x552835=>_0x552835['x'])),_0xc38b2f=Math[_0x5c99f1(0x117)](..._0x1ab821[_0x5c99f1(0xee)](_0xa50978=>_0xa50978['y']));return{'left':W(_0x575ca7),'top':W(_0xa8cf0a),'width':W(Math[_0x5c99f1(0x117)](0x1,_0x3cce5b-_0x575ca7)),'height':W(Math[_0x5c99f1(0x117)](0x1,_0xc38b2f-_0xa8cf0a))};}function pe(_0x47ce6a,_0x3f853b){const _0xdf60a0=_0x34f4;let _0x2940d7=_0x47ce6a[_0xdf60a0(0x10d)];if(_0x2940d7[_0xdf60a0(0x12a)]===0x0)return'';let _0x5bfc23=['M\x20'+R(z(_0x2940d7[0x0],_0x3f853b))];for(let _0x218845=0x1;_0x218845<_0x2940d7[_0xdf60a0(0x12a)];_0x218845++){let _0x442260=_0x2940d7[_0x218845-0x1],_0x25963b=_0x2940d7[_0x218845],_0xfde85b=_0x442260[_0xdf60a0(0xe0)]??_0x442260,_0x20e037=_0x25963b['in']??_0x25963b;_0x5bfc23[_0xdf60a0(0x103)]('C\x20'+R(z(_0xfde85b,_0x3f853b))+'\x20'+R(z(_0x20e037,_0x3f853b))+'\x20'+R(z(_0x25963b,_0x3f853b)));}if(_0x47ce6a[_0xdf60a0(0x108)]&&_0x2940d7[_0xdf60a0(0x12a)]>0x1){let _0x5eec34=_0x2940d7[_0x2940d7[_0xdf60a0(0x12a)]-0x1],_0x1e336b=_0x2940d7[0x0],_0x268fdb=_0x5eec34[_0xdf60a0(0xe0)]??_0x5eec34,_0x327d8f=_0x1e336b['in']??_0x1e336b;_0x5bfc23[_0xdf60a0(0x103)]('C\x20'+R(z(_0x268fdb,_0x3f853b))+'\x20'+R(z(_0x327d8f,_0x3f853b))+'\x20'+R(z(_0x1e336b,_0x3f853b))),_0x5bfc23[_0xdf60a0(0x103)]('Z');}return _0x5bfc23['join']('\x20');}function me(_0x2286c5,_0x514df1){const _0x1329ec=_0x34f4;let _0x1a4cdd=_0x2286c5[_0x1329ec(0x128)][_0x1329ec(0xee)](_0x5dd520=>z(_0x5dd520,_0x514df1));if(_0x1a4cdd[_0x1329ec(0x12a)]===0x0)return'';if(_0x1a4cdd[_0x1329ec(0x12a)]===0x1)return'M\x20'+R(_0x1a4cdd[0x0]);let _0x176bc8=['M\x20'+R(_0x1a4cdd[0x0])];for(let _0x484957=0x0;_0x484957<_0x1a4cdd[_0x1329ec(0x12a)]-0x1;_0x484957++){let _0x34e444=_0x1a4cdd[_0x484957],_0x25c020=_0x1a4cdd[_0x484957+0x1],_0x364a2e=_0x1a4cdd[_0x484957-0x1]??_0x34e444,_0x52a160=_0x1a4cdd[_0x484957+0x2]??_0x25c020,_0x5a38f3={'x':_0x34e444['x']+(_0x25c020['x']-_0x364a2e['x'])/0x6,'y':_0x34e444['y']+(_0x25c020['y']-_0x364a2e['y'])/0x6},_0x39d47d={'x':_0x25c020['x']-(_0x52a160['x']-_0x34e444['x'])/0x6,'y':_0x25c020['y']-(_0x52a160['y']-_0x34e444['y'])/0x6};_0x176bc8[_0x1329ec(0x103)]('C\x20'+R(_0x5a38f3)+'\x20'+R(_0x39d47d)+'\x20'+R(_0x25c020));}return _0x176bc8[_0x1329ec(0x10c)]('\x20');}function he(_0x13cbc0,_0x2e3dec){const _0x16f932=_0x34f4;return _0x13cbc0[_0x16f932(0x116)]===_0x16f932(0x11e)?pe(_0x13cbc0,_0x2e3dec):me(_0x13cbc0,_0x2e3dec);}function ge(_0xd354bc,_0x13c795){const _0x5c6286=_0x34f4;return _0x13c795!=null&&_0x13c795[_0x5c6286(0xd7)]?_0x13c795[_0x5c6286(0xd7)]:_0xd354bc[_0x5c6286(0x116)]===_0x5c6286(0x11e)?_0x5c6286(0x111):_0xd354bc[_0x5c6286(0xd7)];}function _e(_0x2fbc46,_0x47747b){const _0x1184ee=_0x34f4;return(_0x47747b==null?void 0x0:_0x47747b[_0x1184ee(0x119)])===void 0x0?_0x2fbc46[_0x1184ee(0x116)]==='pen'?0x2:_0x2fbc46[_0x1184ee(0x119)]:_0x47747b[_0x1184ee(0x119)];}function ve(_0x34506b,_0x456df7){const _0x223312=_0x34f4;return(_0x456df7==null?void 0x0:_0x456df7['opacity'])===void 0x0?_0x34506b['kind']==='pen'?void 0x0:_0x34506b[_0x223312(0x136)]:_0x456df7[_0x223312(0x136)];}function _0x34f4(_0x5e8668,_0x548cb6){_0x5e8668=_0x5e8668-0xd7;const _0x52c89a=_0x52c8();let _0x34f490=_0x52c89a[_0x5e8668];return _0x34f490;}function ye(_0x317f66,_0x1eb63f){const _0x5910ef=_0x34f4;let _0x229974=G(_0x317f66),_0x52ec0f=he(_0x317f66,{'x':_0x229974['left'],'y':_0x229974[_0x5910ef(0x126)]}),_0x46fbf9=_0x317f66[_0x5910ef(0x116)]===_0x5910ef(0x11e)&&_0x317f66[_0x5910ef(0x108)],_0x390cf7=_0x1eb63f==null?void 0x0:_0x1eb63f[_0x5910ef(0xde)];return{'shapeType':_0x9ecee9[_0x5910ef(0x132)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x229974[_0x5910ef(0x119)],'h':_0x229974['height'],'fill':_0x46fbf9?_0x5910ef(0xec):'none','stroke':!0x0,'data':_0x52ec0f,'dataArray':be(_0x317f66,{'x':_0x229974[_0x5910ef(0x134)],'y':_0x229974[_0x5910ef(0x126)]})}]},'fill':_0x46fbf9&&_0x390cf7?{'color':_0x390cf7,'fillType':_0x1da015[_0x5910ef(0xfd)]}:{'fillType':_0x1da015[_0x5910ef(0x125)]},'stroke':{'color':ge(_0x317f66,_0x1eb63f),'width':_e(_0x317f66,_0x1eb63f),'opacity':ve(_0x317f66,_0x1eb63f),'lineStrokeType':_0x5d98d2[_0x5910ef(0x12f)],'capType':_0x1d6166[_0x5910ef(0x11c)],'lineJoinType':_0x439b44[_0x5910ef(0x11c)]}};}function K(_0x38c8f0,_0x3e58da){return{'x':_0x38c8f0['x']-_0x3e58da['x'],'y':_0x38c8f0['y']-_0x3e58da['y']};}function be(_0x4b330d,_0x719918){const _0xbd57f2=_0x34f4;if(_0x4b330d[_0xbd57f2(0x116)]===_0xbd57f2(0x11e)){let _0x16fef1=_0x4b330d[_0xbd57f2(0x10d)];if(_0x16fef1[_0xbd57f2(0x12a)]===0x0)return[];let _0x1e200c=K(_0x16fef1[0x0],_0x719918),_0x5a854c=[{'command':'M','points':[_0x1e200c['x'],_0x1e200c['y']]}];for(let _0xb89288=0x1;_0xb89288<_0x16fef1['length'];_0xb89288++){let _0x1053e7=_0x16fef1[_0xb89288-0x1],_0x64166b=_0x16fef1[_0xb89288],_0x479c57=K(_0x1053e7[_0xbd57f2(0xe0)]??_0x1053e7,_0x719918),_0x21bd99=K(_0x64166b['in']??_0x64166b,_0x719918),_0x5418df=K(_0x64166b,_0x719918);_0x5a854c[_0xbd57f2(0x103)]({'command':'C','points':[_0x479c57['x'],_0x479c57['y'],_0x21bd99['x'],_0x21bd99['y'],_0x5418df['x'],_0x5418df['y']]});}if(_0x4b330d[_0xbd57f2(0x108)]&&_0x16fef1[_0xbd57f2(0x12a)]>0x1){let _0xe3b2d4=_0x16fef1[_0x16fef1['length']-0x1],_0x433c20=_0x16fef1[0x0],_0x393860=K(_0xe3b2d4[_0xbd57f2(0xe0)]??_0xe3b2d4,_0x719918),_0x315164=K(_0x433c20['in']??_0x433c20,_0x719918),_0x24d9f5=K(_0x433c20,_0x719918);_0x5a854c[_0xbd57f2(0x103)]({'command':'C','points':[_0x393860['x'],_0x393860['y'],_0x315164['x'],_0x315164['y'],_0x24d9f5['x'],_0x24d9f5['y']]}),_0x5a854c[_0xbd57f2(0x103)]({'command':'z','points':[]});}return _0x5a854c;}let _0x2d20bf=_0x4b330d['points'][_0xbd57f2(0xee)](_0x34d944=>K(_0x34d944,_0x719918));if(_0x2d20bf[_0xbd57f2(0x12a)]===0x0)return[];let _0x239de4=[{'command':'M','points':[_0x2d20bf[0x0]['x'],_0x2d20bf[0x0]['y']]}];for(let _0x4b7d3d=0x0;_0x4b7d3d<_0x2d20bf[_0xbd57f2(0x12a)]-0x1;_0x4b7d3d++){let _0x176ce4=_0x2d20bf[_0x4b7d3d],_0x59d0c2=_0x2d20bf[_0x4b7d3d+0x1],_0x39ef4f=_0x2d20bf[_0x4b7d3d-0x1]??_0x176ce4,_0x1c3a5e=_0x2d20bf[_0x4b7d3d+0x2]??_0x59d0c2,_0x58fd18={'x':_0x176ce4['x']+(_0x59d0c2['x']-_0x39ef4f['x'])/0x6,'y':_0x176ce4['y']+(_0x59d0c2['y']-_0x39ef4f['y'])/0x6},_0x470276={'x':_0x59d0c2['x']-(_0x1c3a5e['x']-_0x176ce4['x'])/0x6,'y':_0x59d0c2['y']-(_0x1c3a5e['y']-_0x176ce4['y'])/0x6};_0x239de4['push']({'command':'C','points':[_0x58fd18['x'],_0x58fd18['y'],_0x470276['x'],_0x470276['y'],_0x59d0c2['x'],_0x59d0c2['y']]});}return _0x239de4;}function xe(_0x12c644){const _0x13e3a2=_0x34f4;let {model:_0x3c3f62,sourceModel:_0x20c348=_0x3c3f62,style:_0x1ad5b5}=_0x12c644,_0x2ddbcd=_0x12c644[_0x13e3a2(0x10e)]??_0x3c3f62[_0x13e3a2(0x116)],_0x1066d0=G(_0x3c3f62),_0x4d6f7c=_0x3c3f62[_0x13e3a2(0x116)]==='pen'&&_0x2ddbcd!==_0x13e3a2(0x11e)?_0x3c3f62:void 0x0;return{'transform':{..._0x1066d0,'rotation':0x0},'shapeData':ye(_0x3c3f62,_0x1ad5b5),'ink':{'version':0x1,'tool':_0x2ddbcd,'sourceModel':_0x20c348,..._0x4d6f7c?{'editModel':_0x4d6f7c}:{},'normalizedBounds':_0x1066d0}};}var Se=_0x428ca5(0xf0),Ce='1.2.0';function q(_0x4ba76b){'@babel/helpers - typeof';const _0x384fb4=_0x428ca5;return q=typeof Symbol==_0x384fb4(0x11a)&&typeof Symbol[_0x384fb4(0xe6)]==_0x384fb4(0xe7)?function(_0x3a9b4e){return typeof _0x3a9b4e;}:function(_0x3aec00){const _0x542123=_0x384fb4;return _0x3aec00&&typeof Symbol==_0x542123(0x11a)&&_0x3aec00[_0x542123(0x10b)]===Symbol&&_0x3aec00!==Symbol['prototype']?_0x542123(0xe7):typeof _0x3aec00;},q(_0x4ba76b);}function we(_0x53d8f9,_0x29d70a){const _0x2cbfb0=_0x428ca5;if(q(_0x53d8f9)!=_0x2cbfb0(0x12e)||!_0x53d8f9)return _0x53d8f9;var _0x4bd9ac=_0x53d8f9[Symbol[_0x2cbfb0(0xf7)]];if(_0x4bd9ac!==void 0x0){var _0x51b7a4=_0x4bd9ac[_0x2cbfb0(0xf6)](_0x53d8f9,_0x29d70a||_0x2cbfb0(0xed));if(q(_0x51b7a4)!='object')return _0x51b7a4;throw TypeError(_0x2cbfb0(0x100));}return(_0x29d70a===_0x2cbfb0(0xfc)?String:Number)(_0x53d8f9);}function J(_0x2856c1){const _0x4d725f=_0x428ca5;var _0x478bc8=we(_0x2856c1,'string');return q(_0x478bc8)==_0x4d725f(0xe7)?_0x478bc8:_0x478bc8+'';}function Y(_0x438dd4,_0x3eff29,_0x371227){const _0x72379c=_0x428ca5;return(_0x3eff29=J(_0x3eff29))in _0x438dd4?Object[_0x72379c(0x113)](_0x438dd4,_0x3eff29,{'value':_0x371227,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x438dd4[_0x3eff29]=_0x371227,_0x438dd4;}const X=_0x290056(_0x428ca5(0x112));var Te=class{constructor(){const _0x1593a7=_0x428ca5;Y(this,_0x1593a7(0x114),[]);}[_0x428ca5(0x107)](_0x31351b){const _0x2baaea=_0x428ca5;return this[_0x2baaea(0x114)]['push'](_0x31351b),_0x243018(()=>{const _0x5cf8fd=_0x2baaea;let _0x3344f1=this[_0x5cf8fd(0x114)][_0x5cf8fd(0xdf)](_0x31351b);_0x3344f1>=0x0&&this[_0x5cf8fd(0x114)]['splice'](_0x3344f1,0x1);});}['beginInkMode'](_0x26f2aa){const _0x57ec38=_0x428ca5;for(let _0x372f66 of this[_0x57ec38(0x114)])if(_0x372f66[_0x57ec38(0x131)](_0x26f2aa))return!0x0;return!0x1;}async['createCustomShape'](_0x2decc2){const _0x3c3899=_0x428ca5;for(let _0x45a930 of this[_0x3c3899(0x114)])if(_0x45a930[_0x3c3899(0xdc)]&&await _0x45a930[_0x3c3899(0xdc)](_0x2decc2))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x262274[_0x428ca5(0xe5)],'handler':(_0x263eca,_0x10247d)=>_0x10247d?_0x263eca[_0x428ca5(0x102)](X)[_0x428ca5(0x131)](_0x10247d):!0x1},Z={};function Q(_0x4728ab,_0x58ce78){return function(_0x3c3c6f,_0x59dd04){_0x58ce78(_0x3c3c6f,_0x59dd04,_0x4728ab);};}function De(_0x19c24b,_0x3ecbbc,_0xdd64c7,_0x497fcc){const _0x1fa6fd=_0x428ca5;var _0x4557f7=arguments[_0x1fa6fd(0x12a)],_0x453c3=_0x4557f7<0x3?_0x3ecbbc:_0x497fcc===null?_0x497fcc=Object['getOwnPropertyDescriptor'](_0x3ecbbc,_0xdd64c7):_0x497fcc,_0x59ffc2;if(typeof Reflect=='object'&&typeof Reflect[_0x1fa6fd(0xf9)]==_0x1fa6fd(0x11a))_0x453c3=Reflect[_0x1fa6fd(0xf9)](_0x19c24b,_0x3ecbbc,_0xdd64c7,_0x497fcc);else{for(var _0x1840b8=_0x19c24b[_0x1fa6fd(0x12a)]-0x1;_0x1840b8>=0x0;_0x1840b8--)(_0x59ffc2=_0x19c24b[_0x1840b8])&&(_0x453c3=(_0x4557f7<0x3?_0x59ffc2(_0x453c3):_0x4557f7>0x3?_0x59ffc2(_0x3ecbbc,_0xdd64c7,_0x453c3):_0x59ffc2(_0x3ecbbc,_0xdd64c7))||_0x453c3);}return _0x4557f7>0x3&&_0x453c3&&Object['defineProperty'](_0x3ecbbc,_0xdd64c7,_0x453c3),_0x453c3;}let $=class extends _0xd5747{constructor(_0x5d28f2=Z,_0x48f601,_0x3081b0,_0x56b884){const _0x47b5de=_0x428ca5;super(),this['_config']=_0x5d28f2,this[_0x47b5de(0x133)]=_0x48f601,this[_0x47b5de(0xe9)]=_0x3081b0,this[_0x47b5de(0x106)]=_0x56b884;let {..._0x498b0e}=_0x18dd0a({},Z,this[_0x47b5de(0x129)]);this[_0x47b5de(0x106)][_0x47b5de(0x109)]('ink.config',_0x498b0e);}[_0x428ca5(0xe8)](){const _0x285104=_0x428ca5;[[X,{'useClass':Te}]][_0x285104(0x11d)](_0x1e0137=>this[_0x285104(0x133)][_0x285104(0x12b)](_0x1e0137)),this['disposeWithMe'](this['_commandService'][_0x285104(0x135)](Ee));}};Y($,_0x428ca5(0xf2),_0x428ca5(0x105)),Y($,'packageName',Se),Y($,_0x428ca5(0x11b),Ce),Y($,_0x428ca5(0x118),_0x57679c[_0x428ca5(0x123)]),$=De([_0x51330d(_0x44e568),Q(0x1,_0x89bb4c(_0x169e64)),Q(0x2,_0x2a482d),Q(0x3,_0x37a4f2)],$);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(_0x548e4c,_0x2fa16d){const _0xe1f449=_0x4359,_0x22befc=_0x548e4c();while(!![]){try{const _0xcae2bd=parseInt(_0xe1f449(0xa9))/0x1*(parseInt(_0xe1f449(0xc7))/0x2)+parseInt(_0xe1f449(0xa5))/0x3*(-parseInt(_0xe1f449(0x93))/0x4)+-parseInt(_0xe1f449(0x9d))/0x5*(-parseInt(_0xe1f449(0xab))/0x6)+-parseInt(_0xe1f449(0xd1))/0x7+-parseInt(_0xe1f449(0x9f))/0x8+parseInt(_0xe1f449(0xbe))/0x9*(-parseInt(_0xe1f449(0xa4))/0xa)+-parseInt(_0xe1f449(0xce))/0xb*(-parseInt(_0xe1f449(0x95))/0xc);if(_0xcae2bd===_0x2fa16d)break;else _0x22befc['push'](_0x22befc['shift']());}catch(_0x131358){_0x22befc['push'](_0x22befc['shift']());}}}(_0x5939,0x4db9b),function(_0xb402e5,_0x4a59b6){const _0x381053=_0x4359;typeof exports==_0x381053(0xcf)&&typeof module<'u'?_0x4a59b6(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x381053(0x99)&&define['amd']?define([_0x381053(0xcb),_0x381053(0xa0),_0x381053(0xbd),_0x381053(0x98),_0x381053(0x94),_0x381053(0xc2)],_0x4a59b6):(_0xb402e5=typeof globalThis<'u'?globalThis:_0xb402e5||self,_0x4a59b6(_0xb402e5[_0x381053(0xa6)]={},_0xb402e5['UniverProBoards'],_0xb402e5['UniverProBoardsFacade'],_0xb402e5[_0x381053(0xac)],_0xb402e5[_0x381053(0x96)],_0xb402e5[_0x381053(0xc4)]));}(this,function(_0x16e33d,_0x5e56ce,_0x408bfb,_0x51a5e1,_0x1a26c3,_0x104443){const _0x25f354=_0x4359;Object['defineProperty'](_0x16e33d,Symbol[_0x25f354(0xb2)],{'value':_0x25f354(0xb5)});var _0x253a1d=class extends _0x408bfb[_0x25f354(0x9a)]{[_0x25f354(0xae)](_0x578f7e){const _0x44a87c=_0x25f354;let _0x328a85=_0x35821a(_0x578f7e);return _0x328a85&&this[_0x44a87c(0xcc)](_0x328a85,{'insertIndex':_0x578f7e[_0x44a87c(0xa8)]})?_0x328a85:null;}[_0x25f354(0xaa)](){const _0xed8259=_0x25f354;return this[_0xed8259(0xa3)]({'elementType':_0x5e56ce[_0xed8259(0xb3)][_0xed8259(0xc5)],'includeHidden':!0x0,'includeLocked':!0x0})[_0xed8259(0xba)](_0x59d7c5);}};function _0x35821a(_0x56b9f7,_0x5901b8){const _0x4badba=_0x25f354;if(!_0x575e50(_0x56b9f7[_0x4badba(0xc3)])||_0x56b9f7[_0x4badba(0xd3)]!==void 0x0&&!_0x575e50(_0x56b9f7[_0x4badba(0xd3)])||!_0x2c6915(_0x56b9f7['style']))return null;let _0x588deb=_0x56b9f7[_0x4badba(0xa7)]??(_0x5901b8==null?void 0x0:_0x5901b8[_0x4badba(0xa7)]),_0x120a6c=_0x1a26c3[_0x4badba(0xc1)][_0x4badba(0xd0)](_0x56b9f7['model']),_0x276e81=(0x0,_0x51a5e1[_0x4badba(0xd2)])({'model':_0x120a6c,'style':_0x56b9f7[_0x4badba(0xcd)],'tool':_0x56b9f7['tool'],'sourceModel':_0x56b9f7[_0x4badba(0xd3)]?_0x1a26c3['Tools'][_0x4badba(0xd0)](_0x56b9f7[_0x4badba(0xd3)]):_0x120a6c}),_0x4f42cf=_0x3a156c(_0x5901b8==null?void 0x0:_0x5901b8['custom']);return{'id':(_0x5901b8==null?void 0x0:_0x5901b8['id'])??_0x56b9f7['id']??(0x0,_0x1a26c3[_0x4badba(0x91)])(0x6),'type':_0x5e56ce[_0x4badba(0xb3)][_0x4badba(0xc5)],'transform':_0x276e81[_0x4badba(0xaf)],'shapeData':_0x276e81[_0x4badba(0x92)],'parentId':_0x588deb??void 0x0,'laneId':_0x56b9f7['laneId']===void 0x0?_0x5901b8==null?void 0x0:_0x5901b8[_0x4badba(0xca)]:_0x56b9f7[_0x4badba(0xca)],'custom':{..._0x4f42cf,'ink':_0x276e81[_0x4badba(0x97)]}};}function _0x1b2e50(_0x423ca9){const _0x4f685d=_0x25f354;return Number[_0x4f685d(0xb9)](_0x423ca9['x'])&&Number[_0x4f685d(0xb9)](_0x423ca9['y']);}function _0x575e50(_0x565945){const _0x34fee4=_0x25f354;if(_0x565945[_0x34fee4(0xbc)]===_0x34fee4(0xad)){let _0x6f7fb5=new Set();return _0x565945[_0x34fee4(0xb1)][_0x34fee4(0xbb)]>=(_0x565945['closed']?0x3:0x2)&&_0x565945[_0x34fee4(0xb1)]['every'](_0x234850=>{const _0x6ce528=_0x34fee4;let _0x5bfa83=_0x234850['id']['trim']()[_0x6ce528(0xbb)]>0x0&&!_0x6f7fb5[_0x6ce528(0xb4)](_0x234850['id'])&&_0x1b2e50(_0x234850)&&(!_0x234850['in']||_0x1b2e50(_0x234850['in']))&&(!_0x234850[_0x6ce528(0xa2)]||_0x1b2e50(_0x234850[_0x6ce528(0xa2)]));return _0x6f7fb5['add'](_0x234850['id']),_0x5bfa83;});}return _0x565945['points'][_0x34fee4(0xbb)]>=0x2&&_0x565945[_0x34fee4(0x9b)][_0x34fee4(0x9e)](_0x828190=>_0x1b2e50(_0x828190)&&Number['isFinite'](_0x828190['t'])&&(_0x828190['pressure']===void 0x0||Number['isFinite'](_0x828190[_0x34fee4(0xc0)])))&&Number[_0x34fee4(0xb9)](_0x565945[_0x34fee4(0xbf)])&&_0x565945[_0x34fee4(0xbf)]>0x0&&Number[_0x34fee4(0xb9)](_0x565945[_0x34fee4(0x90)])&&_0x565945[_0x34fee4(0x90)]>=0x0&&_0x565945[_0x34fee4(0x90)]<=0x1;}function _0x2c6915(_0xd913a2){const _0x4e88e5=_0x25f354;return _0xd913a2===void 0x0||(_0xd913a2[_0x4e88e5(0xbf)]===void 0x0||Number['isFinite'](_0xd913a2['width'])&&_0xd913a2[_0x4e88e5(0xbf)]>0x0)&&(_0xd913a2[_0x4e88e5(0x90)]===void 0x0||Number[_0x4e88e5(0xb9)](_0xd913a2[_0x4e88e5(0x90)])&&_0xd913a2[_0x4e88e5(0x90)]>=0x0&&_0xd913a2['opacity']<=0x1);}function _0x3a156c(_0x15ded0){const _0x4c2ee9=_0x25f354;return _0x15ded0&&typeof _0x15ded0==_0x4c2ee9(0xcf)&&!Array[_0x4c2ee9(0xc9)](_0x15ded0)?_0x15ded0:{};}function _0x7ba680(_0x1b7603){const _0x1bbc56=_0x25f354;let _0x10a320=_0x3a156c(_0x1b7603[_0x1bbc56(0xb0)])[_0x1bbc56(0x97)];if(!_0x10a320||typeof _0x10a320!=_0x1bbc56(0xcf)||Array[_0x1bbc56(0xc9)](_0x10a320))return null;let _0x4f5956=_0x10a320;return _0x4f5956[_0x1bbc56(0xc6)]===0x1&&_0x4f5956[_0x1bbc56(0xd3)]&&typeof _0x4f5956[_0x1bbc56(0xd3)]==_0x1bbc56(0xcf)?_0x4f5956:null;}function _0x59d7c5(_0x95fabe){return _0x95fabe['type']===_0x5e56ce['BoardElementType']['Shape']&&!!_0x7ba680(_0x95fabe);}_0x408bfb[_0x25f354(0x9a)][_0x25f354(0xb6)](_0x253a1d);let _0x245808={'Pen':'pen','Brush':_0x25f354(0xa1),'Highlighter':'highlighter'},_0x1080c0={'Corner':'corner','Smooth':'smooth','Symmetric':_0x25f354(0x9c),'Free':'free'},_0x27423e={'Anchor':'anchor','In':'in','Out':_0x25f354(0xa2)};var _0x4b1a8c=class extends _0x104443[_0x25f354(0xb7)]{get['BoardInkTool'](){return _0x245808;}get[_0x25f354(0x8f)](){return _0x1080c0;}get['BoardInkHandleKind'](){return _0x27423e;}};_0x104443[_0x25f354(0xb7)][_0x25f354(0xb6)](_0x4b1a8c),_0x16e33d[_0x25f354(0xb8)]=_0x27423e,_0x16e33d[_0x25f354(0x8f)]=_0x1080c0,_0x16e33d[_0x25f354(0xc8)]=_0x245808;}));function _0x4359(_0x14a639,_0x1ca011){_0x14a639=_0x14a639-0x8f;const _0x593992=_0x5939();let _0x4359a5=_0x593992[_0x14a639];return _0x4359a5;}function _0x5939(){const _0x217f67=['out','findElements','5430rvsNnl','1869174YbeGWs','UniverProInkFacade','parentId','insertIndex','1Tppmhj','getInks','3786534pybDaO','UniverProInk','pen','insertInk','transform','custom','anchors','toStringTag','BoardElementType','has','Module','extend','FEnum','BoardInkHandleKind','isFinite','filter','length','kind','@univerjs-pro/boards/facade','9567DGgGCp','width','pressure','Tools','@univerjs/core/facade','model','UniverCoreFacade','Shape','version','516226StVRPO','BoardInkTool','isArray','laneId','exports','_addElement','style','17774735lVJicV','object','deepClone','3044545HhudBO','buildInkCustomShapePayload','sourceModel','BoardInkPointType','opacity','generateRandomId','shapeData','4OIrIzu','@univerjs/core','12bwPOlz','UniverCore','ink','@univerjs-pro/ink','function','FBoard','points','symmetric','5ardQoS','every','4412176BWVdGp','@univerjs-pro/boards','brush'];_0x5939=function(){return _0x217f67;};return _0x5939();}
1
+ function _0x2e17(_0x42f4e9,_0x361ffb){_0x42f4e9=_0x42f4e9-0x181;const _0x1251c9=_0x1251();let _0x2e17a3=_0x1251c9[_0x42f4e9];return _0x2e17a3;}function _0x1251(){const _0x14b6c4=['UniverProBoards','out','BoardInkHandleKind','BoardElementType','3JSUSUa','72549GiJwQZ','object','points','isFinite','free','opacity','transform','insertInk','brush','deepClone','Tools','ink','length','parentId','exports','style','sourceModel','FBoard','2715450WaMxtU','tool','add','model','UniverProInk','generateRandomId','insertIndex','isArray','highlighter','has','4552WIsguv','@univerjs/core','kind','UniverProBoardsFacade','anchors','width','@univerjs-pro/ink','Module','version','smooth','extend','filter','9299560cphdxm','5176822KTahcy','BoardInkPointType','@univerjs/core/facade','1660117OPLoNS','@univerjs-pro/boards/facade','7363518KgzVYU','pressure','amd','custom','corner','buildInkCustomShapePayload','1956036QXmlVy','laneId','defineProperty','@univerjs-pro/boards','BoardInkTool','Shape','toStringTag','shapeData'];_0x1251=function(){return _0x14b6c4;};return _0x1251();}(function(_0x46de42,_0x185669){const _0x4c6988=_0x2e17,_0x4894e7=_0x46de42();while(!![]){try{const _0x17e97d=-parseInt(_0x4c6988(0x1a4))/0x1+parseInt(_0x4c6988(0x18a))/0x2+parseInt(_0x4c6988(0x1b8))/0x3*(parseInt(_0x4c6988(0x1ac))/0x4)+-parseInt(_0x4c6988(0x1a0))/0x5+-parseInt(_0x4c6988(0x1a6))/0x6+-parseInt(_0x4c6988(0x1a1))/0x7+parseInt(_0x4c6988(0x194))/0x8*(parseInt(_0x4c6988(0x1b9))/0x9);if(_0x17e97d===_0x185669)break;else _0x4894e7['push'](_0x4894e7['shift']());}catch(_0x100203){_0x4894e7['push'](_0x4894e7['shift']());}}}(_0x1251,0xe71b7),function(_0x154beb,_0x407714){const _0x1dac71=_0x2e17;typeof exports==_0x1dac71(0x1ba)&&typeof module<'u'?_0x407714(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x1dac71(0x1a8)]?define([_0x1dac71(0x186),_0x1dac71(0x1af),_0x1dac71(0x1a5),_0x1dac71(0x19a),_0x1dac71(0x195),_0x1dac71(0x1a3)],_0x407714):(_0x154beb=typeof globalThis<'u'?globalThis:_0x154beb||self,_0x407714(_0x154beb['UniverProInkFacade']={},_0x154beb[_0x1dac71(0x1b4)],_0x154beb[_0x1dac71(0x197)],_0x154beb[_0x1dac71(0x18e)],_0x154beb['UniverCore'],_0x154beb['UniverCoreFacade']));}(this,function(_0x2520ab,_0x16db2c,_0x143eec,_0x45297d,_0x1bfc8f,_0x24ae4a){const _0x2f3472=_0x2e17;Object[_0x2f3472(0x1ae)](_0x2520ab,Symbol[_0x2f3472(0x1b2)],{'value':_0x2f3472(0x19b)});var _0x1c60d7=class extends _0x143eec[_0x2f3472(0x189)]{[_0x2f3472(0x1c0)](_0x557d37){const _0x480b57=_0x2f3472;let _0x272a05=_0x36ef34(_0x557d37);return _0x272a05&&this['_addElement'](_0x272a05,{'insertIndex':_0x557d37[_0x480b57(0x190)]})?_0x272a05:null;}['getInks'](){const _0x181f94=_0x2f3472;return this['findElements']({'elementType':_0x16db2c[_0x181f94(0x1b7)][_0x181f94(0x1b1)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x181f94(0x19f)](_0x41ae9b);}};function _0x36ef34(_0x3e70c3,_0x5a332b){const _0x257f76=_0x2f3472;if(!_0x1d29e2(_0x3e70c3[_0x257f76(0x18d)])||_0x3e70c3[_0x257f76(0x188)]!==void 0x0&&!_0x1d29e2(_0x3e70c3['sourceModel'])||!_0x40e015(_0x3e70c3[_0x257f76(0x187)]))return null;let _0x50bc87=_0x3e70c3[_0x257f76(0x185)]??(_0x5a332b==null?void 0x0:_0x5a332b['parentId']),_0x273d08=_0x1bfc8f[_0x257f76(0x182)][_0x257f76(0x181)](_0x3e70c3[_0x257f76(0x18d)]),_0x3f6110=(0x0,_0x45297d[_0x257f76(0x1ab)])({'model':_0x273d08,'style':_0x3e70c3[_0x257f76(0x187)],'tool':_0x3e70c3[_0x257f76(0x18b)],'sourceModel':_0x3e70c3[_0x257f76(0x188)]?_0x1bfc8f[_0x257f76(0x182)]['deepClone'](_0x3e70c3[_0x257f76(0x188)]):_0x273d08}),_0x4a9ba9=_0x202b58(_0x5a332b==null?void 0x0:_0x5a332b[_0x257f76(0x1a9)]);return{'id':(_0x5a332b==null?void 0x0:_0x5a332b['id'])??_0x3e70c3['id']??(0x0,_0x1bfc8f[_0x257f76(0x18f)])(0x6),'type':_0x16db2c[_0x257f76(0x1b7)][_0x257f76(0x1b1)],'transform':_0x3f6110[_0x257f76(0x1bf)],'shapeData':_0x3f6110[_0x257f76(0x1b3)],'parentId':_0x50bc87??void 0x0,'laneId':_0x3e70c3[_0x257f76(0x1ad)]===void 0x0?_0x5a332b==null?void 0x0:_0x5a332b['laneId']:_0x3e70c3[_0x257f76(0x1ad)],'custom':{..._0x4a9ba9,'ink':_0x3f6110[_0x257f76(0x183)]}};}function _0x6d881e(_0x565326){const _0x434611=_0x2f3472;return Number[_0x434611(0x1bc)](_0x565326['x'])&&Number[_0x434611(0x1bc)](_0x565326['y']);}function _0x1d29e2(_0x202629){const _0x5dfb9c=_0x2f3472;if(_0x202629[_0x5dfb9c(0x196)]==='pen'){let _0x41df61=new Set();return _0x202629['anchors'][_0x5dfb9c(0x184)]>=(_0x202629['closed']?0x3:0x2)&&_0x202629[_0x5dfb9c(0x198)]['every'](_0x2ff050=>{const _0x97c880=_0x5dfb9c;let _0x48e413=_0x2ff050['id']['trim']()[_0x97c880(0x184)]>0x0&&!_0x41df61[_0x97c880(0x193)](_0x2ff050['id'])&&_0x6d881e(_0x2ff050)&&(!_0x2ff050['in']||_0x6d881e(_0x2ff050['in']))&&(!_0x2ff050['out']||_0x6d881e(_0x2ff050[_0x97c880(0x1b5)]));return _0x41df61[_0x97c880(0x18c)](_0x2ff050['id']),_0x48e413;});}return _0x202629['points'][_0x5dfb9c(0x184)]>=0x2&&_0x202629[_0x5dfb9c(0x1bb)]['every'](_0x4547db=>_0x6d881e(_0x4547db)&&Number[_0x5dfb9c(0x1bc)](_0x4547db['t'])&&(_0x4547db[_0x5dfb9c(0x1a7)]===void 0x0||Number[_0x5dfb9c(0x1bc)](_0x4547db[_0x5dfb9c(0x1a7)])))&&Number['isFinite'](_0x202629[_0x5dfb9c(0x199)])&&_0x202629[_0x5dfb9c(0x199)]>0x0&&Number['isFinite'](_0x202629[_0x5dfb9c(0x1be)])&&_0x202629[_0x5dfb9c(0x1be)]>=0x0&&_0x202629[_0x5dfb9c(0x1be)]<=0x1;}function _0x40e015(_0x2d8a9){const _0xeaeef8=_0x2f3472;return _0x2d8a9===void 0x0||(_0x2d8a9[_0xeaeef8(0x199)]===void 0x0||Number[_0xeaeef8(0x1bc)](_0x2d8a9[_0xeaeef8(0x199)])&&_0x2d8a9[_0xeaeef8(0x199)]>0x0)&&(_0x2d8a9['opacity']===void 0x0||Number[_0xeaeef8(0x1bc)](_0x2d8a9[_0xeaeef8(0x1be)])&&_0x2d8a9[_0xeaeef8(0x1be)]>=0x0&&_0x2d8a9[_0xeaeef8(0x1be)]<=0x1);}function _0x202b58(_0x5e3bd6){const _0x400440=_0x2f3472;return _0x5e3bd6&&typeof _0x5e3bd6==_0x400440(0x1ba)&&!Array[_0x400440(0x191)](_0x5e3bd6)?_0x5e3bd6:{};}function _0x1acc37(_0xaa62ee){const _0xce3ec7=_0x2f3472;let _0x284630=_0x202b58(_0xaa62ee[_0xce3ec7(0x1a9)])[_0xce3ec7(0x183)];if(!_0x284630||typeof _0x284630!=_0xce3ec7(0x1ba)||Array[_0xce3ec7(0x191)](_0x284630))return null;let _0x5e3696=_0x284630;return _0x5e3696[_0xce3ec7(0x19c)]===0x1&&_0x5e3696[_0xce3ec7(0x188)]&&typeof _0x5e3696[_0xce3ec7(0x188)]==_0xce3ec7(0x1ba)?_0x5e3696:null;}function _0x41ae9b(_0xfe425b){const _0x5edf5a=_0x2f3472;return _0xfe425b['type']===_0x16db2c[_0x5edf5a(0x1b7)]['Shape']&&!!_0x1acc37(_0xfe425b);}_0x143eec[_0x2f3472(0x189)][_0x2f3472(0x19e)](_0x1c60d7);let _0x4a5ef3={'Pen':'pen','Brush':_0x2f3472(0x1c1),'Highlighter':_0x2f3472(0x192)},_0x41d868={'Corner':_0x2f3472(0x1aa),'Smooth':_0x2f3472(0x19d),'Symmetric':'symmetric','Free':_0x2f3472(0x1bd)},_0x42c4ef={'Anchor':'anchor','In':'in','Out':_0x2f3472(0x1b5)};var _0x1ef72a=class extends _0x24ae4a['FEnum']{get['BoardInkTool'](){return _0x4a5ef3;}get['BoardInkPointType'](){return _0x41d868;}get['BoardInkHandleKind'](){return _0x42c4ef;}};_0x24ae4a['FEnum']['extend'](_0x1ef72a),_0x2520ab[_0x2f3472(0x1b6)]=_0x42c4ef,_0x2520ab[_0x2f3472(0x1a2)]=_0x41d868,_0x2520ab[_0x2f3472(0x1b0)]=_0x4a5ef3;}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x297d97,_0x5d7c68){const _0x35e4a4=_0x4a9e,_0x29b2c1=_0x297d97();while(!![]){try{const _0x17c5c9=-parseInt(_0x35e4a4(0x1ad))/0x1*(-parseInt(_0x35e4a4(0x195))/0x2)+-parseInt(_0x35e4a4(0x18e))/0x3+-parseInt(_0x35e4a4(0x17e))/0x4*(-parseInt(_0x35e4a4(0x16c))/0x5)+-parseInt(_0x35e4a4(0x1bf))/0x6*(-parseInt(_0x35e4a4(0x1a3))/0x7)+parseInt(_0x35e4a4(0x186))/0x8+parseInt(_0x35e4a4(0x1b7))/0x9+parseInt(_0x35e4a4(0x181))/0xa*(-parseInt(_0x35e4a4(0x155))/0xb);if(_0x17c5c9===_0x5d7c68)break;else _0x29b2c1['push'](_0x29b2c1['shift']());}catch(_0x4d5a56){_0x29b2c1['push'](_0x29b2c1['shift']());}}}(_0x57f6,0x91ee1),function(_0x53d493,_0x3eae87){const _0x4d6786=_0x4a9e;typeof exports==_0x4d6786(0x1a2)&&typeof module<'u'?_0x3eae87(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x4d6786(0x14e)&&define['amd']?define([_0x4d6786(0x193),_0x4d6786(0x172),_0x4d6786(0x1a0),_0x4d6786(0x151)],_0x3eae87):(_0x53d493=typeof globalThis<'u'?globalThis:_0x53d493||self,_0x3eae87(_0x53d493[_0x4d6786(0x196)]={},_0x53d493[_0x4d6786(0x18d)],_0x53d493[_0x4d6786(0x15a)],_0x53d493['UniverCore']));}(this,function(_0x670508,_0x580dcc,_0x20125a,_0x36a853){const _0x3c2545=_0x4a9e;Object['defineProperty'](_0x670508,Symbol[_0x3c2545(0x1be)],{'value':'Module'});let _0x297de6=0.0001;function _0x64c29f(_0x766d4e){return{'x':_0x766d4e['x'],'y':_0x766d4e['y']};}function _0x28c29c(_0x52f2ab){const _0x1a5016=_0x3c2545;return{..._0x52f2ab,'in':_0x52f2ab['in']?_0x64c29f(_0x52f2ab['in']):void 0x0,'out':_0x52f2ab[_0x1a5016(0x15d)]?_0x64c29f(_0x52f2ab[_0x1a5016(0x15d)]):void 0x0};}function _0x31dd48(_0x4174b2){const _0x760e52=_0x3c2545;return{'kind':'pen','closed':_0x4174b2['closed'],'anchors':_0x4174b2[_0x760e52(0x17d)][_0x760e52(0x150)](_0x28c29c)};}function _0xdc7506(_0x145792,_0x1f1c22,_0xea000e){return{'x':_0x145792['x']+(_0x1f1c22['x']-_0x145792['x'])*_0xea000e,'y':_0x145792['y']+(_0x1f1c22['y']-_0x145792['y'])*_0xea000e};}function _0x3ef9f9(_0x10771b,_0x5c0d75){const _0x3b2884=_0x3c2545;return Math[_0x3b2884(0x1ac)](_0x10771b['x']-_0x5c0d75['x'],_0x10771b['y']-_0x5c0d75['y']);}function _0x45c673(_0x249210){const _0x173d6c=_0x3c2545;let _0xc256e2=Math[_0x173d6c(0x1ac)](_0x249210['x'],_0x249210['y']);return _0xc256e2<_0x297de6?{'x':0x1,'y':0x0}:{'x':_0x249210['x']/_0xc256e2,'y':_0x249210['y']/_0xc256e2};}function _0x5110bc(_0x52ba15,_0x529d03,_0x394402=_0x3ef9f9(_0x52ba15,_0x529d03)){let _0x4fcfb5=_0x45c673({'x':_0x52ba15['x']-_0x529d03['x'],'y':_0x52ba15['y']-_0x529d03['y']});return{'x':_0x52ba15['x']+_0x4fcfb5['x']*_0x394402,'y':_0x52ba15['y']+_0x4fcfb5['y']*_0x394402};}function _0x16cf20(_0x2b8a13,_0x51a9c7){const _0x27393e=_0x3c2545;let {anchors:_0x55d4b0}=_0x2b8a13;return _0x55d4b0['length']<0x2||_0x51a9c7<0x0?null:_0x51a9c7<_0x55d4b0[_0x27393e(0x182)]-0x1?{'startIndex':_0x51a9c7,'endIndex':_0x51a9c7+0x1,'start':_0x55d4b0[_0x51a9c7],'end':_0x55d4b0[_0x51a9c7+0x1]}:_0x2b8a13[_0x27393e(0x1a7)]&&_0x51a9c7===_0x55d4b0[_0x27393e(0x182)]-0x1?{'startIndex':_0x55d4b0[_0x27393e(0x182)]-0x1,'endIndex':0x0,'start':_0x55d4b0[_0x55d4b0[_0x27393e(0x182)]-0x1],'end':_0x55d4b0[0x0]}:null;}function _0x2c9c75(_0x6d20b6,_0x7c09d5){const _0x64d842=_0x3c2545;let _0x47ecf8=_0x16cf20(_0x6d20b6,_0x7c09d5);return _0x47ecf8?[_0x47ecf8['start'],_0x47ecf8[_0x64d842(0x1b2)]['out']??_0x47ecf8['start'],_0x47ecf8[_0x64d842(0x19c)]['in']??_0x47ecf8[_0x64d842(0x19c)],_0x47ecf8[_0x64d842(0x19c)]]:null;}function _0x2c6f9e(_0x346fc5,_0x54700c){const _0x3eee02=_0x3c2545;return _0x54700c===_0x3eee02(0x190)?_0x346fc5:_0x346fc5[_0x54700c]??null;}function _0x4b1ffc(_0x274ccb,_0xd0745,_0x4438cc){const _0x43fb68=_0x3c2545;return _0x4438cc===_0x43fb68(0x190)||_0x274ccb[_0x43fb68(0x1a7)]?!0x0:_0x4438cc==='in'?_0xd0745>0x0:_0xd0745<_0x274ccb[_0x43fb68(0x17d)][_0x43fb68(0x182)]-0x1;}function _0x32af97(_0x214e1d,_0x456c85){let [_0x347d58,_0x532acd,_0x4db885,_0x20e640]=_0x214e1d,_0x4b1b69=_0xdc7506(_0x347d58,_0x532acd,_0x456c85),_0x5ef008=_0xdc7506(_0x532acd,_0x4db885,_0x456c85),_0x12dc29=_0xdc7506(_0x4db885,_0x20e640,_0x456c85);return _0xdc7506(_0xdc7506(_0x4b1b69,_0x5ef008,_0x456c85),_0xdc7506(_0x5ef008,_0x12dc29,_0x456c85),_0x456c85);}function _0x3c1516(_0x551e3a,_0x5a0eb8){let [_0x405be5,_0x1374a1,_0xc91c48,_0x1f4d5d]=_0x551e3a,_0x17f50e=_0xdc7506(_0x405be5,_0x1374a1,_0x5a0eb8),_0x453727=_0xdc7506(_0x1374a1,_0xc91c48,_0x5a0eb8),_0x3cdbc1=_0xdc7506(_0xc91c48,_0x1f4d5d,_0x5a0eb8),_0x34a433=_0xdc7506(_0x17f50e,_0x453727,_0x5a0eb8),_0x51c349=_0xdc7506(_0x453727,_0x3cdbc1,_0x5a0eb8),_0x17dfe2=_0xdc7506(_0x34a433,_0x51c349,_0x5a0eb8);return{'left':[_0x405be5,_0x17f50e,_0x34a433,_0x17dfe2],'right':[_0x17dfe2,_0x51c349,_0x3cdbc1,_0x1f4d5d]};}function _0x5ab6a0(_0xb360cf,_0x4ff414,_0x516d62){let _0x29742d=_0x516d62['x']-_0x4ff414['x'],_0x34baa5=_0x516d62['y']-_0x4ff414['y'],_0x47e126=_0x29742d*_0x29742d+_0x34baa5*_0x34baa5,_0x4c34e6=_0x47e126<=_0x297de6?0x0:Math['max'](0x0,Math['min'](0x1,((_0xb360cf['x']-_0x4ff414['x'])*_0x29742d+(_0xb360cf['y']-_0x4ff414['y'])*_0x34baa5)/_0x47e126)),_0x1884d6={'x':_0x4ff414['x']+_0x29742d*_0x4c34e6,'y':_0x4ff414['y']+_0x34baa5*_0x4c34e6};return{'point':_0x1884d6,'ratio':_0x4c34e6,'distance':_0x3ef9f9(_0xb360cf,_0x1884d6)};}function _0x461c8e(_0x282db8,_0x5b6dcd,_0x2343a8){const _0x48f71a=_0x3c2545;return _0x5ab6a0(_0x282db8,_0x5b6dcd,_0x2343a8)[_0x48f71a(0x189)]**0x2;}function _0x4ab179(_0x4b5e79,_0x301f8a){const _0x11bf2e=_0x3c2545;if(_0x4b5e79[_0x11bf2e(0x182)]<=0x2)return _0x4b5e79[_0x11bf2e(0x150)](_0x64c29f);let _0x29639a=0x0,_0x5e3207=0x0,_0x12b962=_0x4b5e79[0x0],_0x9c54b=_0x4b5e79[_0x4b5e79[_0x11bf2e(0x182)]-0x1],_0x28fa67=_0x301f8a*_0x301f8a;for(let _0x25fabf=0x1;_0x25fabf<_0x4b5e79[_0x11bf2e(0x182)]-0x1;_0x25fabf++){let _0x5561b2=_0x461c8e(_0x4b5e79[_0x25fabf],_0x12b962,_0x9c54b);_0x5561b2>_0x29639a&&(_0x29639a=_0x5561b2,_0x5e3207=_0x25fabf);}if(_0x29639a<=_0x28fa67)return[_0x64c29f(_0x12b962),_0x64c29f(_0x9c54b)];let _0x188ad8=_0x4ab179(_0x4b5e79[_0x11bf2e(0x15b)](0x0,_0x5e3207+0x1),_0x301f8a),_0x58bc24=_0x4ab179(_0x4b5e79[_0x11bf2e(0x15b)](_0x5e3207),_0x301f8a);return[..._0x188ad8['slice'](0x0,-0x1),..._0x58bc24];}function _0x2f82f3(_0xd36325,_0x4e9200){let _0x58f586=_0xd36325[_0x4e9200],_0x52eea6=_0xd36325[_0x4e9200+0x1],_0x4e0d25=_0xd36325[_0x4e9200-0x1]??_0x58f586;return{'x':_0x58f586['x']+(_0x52eea6['x']-_0x4e0d25['x'])/0x6,'y':_0x58f586['y']+(_0x52eea6['y']-_0x4e0d25['y'])/0x6};}function _0xe4ce08(_0x2f1be7,_0x3a4d1a){let _0x4040a8=_0x2f1be7[_0x3a4d1a],_0x56b03b=_0x2f1be7[_0x3a4d1a-0x1],_0x227348=_0x2f1be7[_0x3a4d1a+0x1]??_0x4040a8;return{'x':_0x4040a8['x']-(_0x227348['x']-_0x56b03b['x'])/0x6,'y':_0x4040a8['y']-(_0x227348['y']-_0x56b03b['y'])/0x6};}function _0x1ea969(_0x2d866e,_0x36c280){const _0x2e8afd=_0x3c2545;let _0x4cb73c=_0x2d866e[_0x2e8afd(0x17d)][_0x36c280],_0x1acad1=_0x2d866e[_0x2e8afd(0x17d)][_0x36c280-0x1]??(_0x2d866e['closed']?_0x2d866e['anchors'][_0x2d866e[_0x2e8afd(0x17d)][_0x2e8afd(0x182)]-0x1]:null),_0x2a4433=_0x2d866e['anchors'][_0x36c280+0x1]??(_0x2d866e['closed']?_0x2d866e[_0x2e8afd(0x17d)][0x0]:null),_0x591769=_0x1acad1&&_0x2a4433?_0x45c673({'x':_0x2a4433['x']-_0x1acad1['x'],'y':_0x2a4433['y']-_0x1acad1['y']}):_0x2a4433?_0x45c673({'x':_0x2a4433['x']-_0x4cb73c['x'],'y':_0x2a4433['y']-_0x4cb73c['y']}):_0x1acad1?_0x45c673({'x':_0x4cb73c['x']-_0x1acad1['x'],'y':_0x4cb73c['y']-_0x1acad1['y']}):{'x':0x1,'y':0x0},_0x275f02=_0x1acad1&&_0x2a4433?Math['max'](0x32,_0x3ef9f9(_0x1acad1,_0x2a4433)/0x4):0x32;return{'in':{'x':_0x4cb73c['x']-_0x591769['x']*_0x275f02,'y':_0x4cb73c['y']-_0x591769['y']*_0x275f02},'out':{'x':_0x4cb73c['x']+_0x591769['x']*_0x275f02,'y':_0x4cb73c['y']+_0x591769['y']*_0x275f02}};}function _0x3329b1(_0x496003,_0x5439a8){const _0x55cd43=_0x3c2545;let _0x4bbbf6=_0x496003[_0x5439a8],_0x1c533e=_0x5439a8==='in'?_0x55cd43(0x15d):'in',_0x2062f2=_0x496003[_0x1c533e];if(_0x4bbbf6){if(_0x496003[_0x55cd43(0x19a)]===_0x55cd43(0x16d)){_0x496003[_0x1c533e]=_0x5110bc(_0x496003,_0x4bbbf6);return;}_0x496003['pointType']===_0x55cd43(0x16a)&&(_0x496003[_0x1c533e]=_0x5110bc(_0x496003,_0x4bbbf6,_0x2062f2?_0x3ef9f9(_0x496003,_0x2062f2):_0x3ef9f9(_0x496003,_0x4bbbf6)));}}function _0x45ba48(_0x1fb557,_0x2f95f0){const _0x48a238=_0x3c2545;let _0x29b437=_0x31dd48(_0x1fb557);return!_0x2f95f0||_0x29b437[_0x48a238(0x1a7)]||_0x29b437[_0x48a238(0x17d)][_0x48a238(0x182)]===0x0||_0x29b437[_0x48a238(0x17d)][_0x48a238(0x17c)]({'id':_0x48a238(0x158),'x':_0x2f95f0['x'],'y':_0x2f95f0['y'],'pointType':_0x48a238(0x191)}),_0x29b437;}function _0x39f5f7(_0x371b1e,_0x49dd05={}){const _0x43f381=_0x3c2545;let _0x365fbc=Math[_0x43f381(0x1ba)](0x0,_0x49dd05[_0x43f381(0x180)]??Math['max'](0x4,_0x371b1e[_0x43f381(0x14f)]*0.35)),_0xf1d60d=_0x49dd05['createId']??(_0x47272c=>_0x43f381(0x14c)+_0x47272c),_0x168483=_0x4ab179(_0x371b1e['points'],_0x365fbc),_0x3a6107=_0x168483['map']((_0x8ee404,_0x57610a)=>({'id':_0xf1d60d(_0x57610a),'x':_0x8ee404['x'],'y':_0x8ee404['y'],'pointType':_0x43f381(0x1c1)}));for(let _0x101c9d=0x0;_0x101c9d<_0x3a6107[_0x43f381(0x182)]-0x1;_0x101c9d++)_0x3a6107[_0x101c9d][_0x43f381(0x15d)]=_0x2f82f3(_0x168483,_0x101c9d),_0x3a6107[_0x101c9d+0x1]['in']=_0xe4ce08(_0x168483,_0x101c9d+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x3a6107};}function _0x509209(_0x11e70d,_0x2c2d4c,_0x4d0e8d){const _0x352078=_0x3c2545;let _0x1652fa=null,_0x1b493e=[_0x352078(0x190),'in',_0x352078(0x15d)];return _0x11e70d[_0x352078(0x17d)][_0x352078(0x162)]((_0x2122f7,_0x367a67)=>{const _0x2332b6=_0x352078;_0x1b493e[_0x2332b6(0x162)](_0x46c103=>{const _0x50e0b7=_0x2332b6;if(!_0x4b1ffc(_0x11e70d,_0x367a67,_0x46c103))return;let _0x464d1d=_0x2c6f9e(_0x2122f7,_0x46c103);if(!_0x464d1d)return;let _0x306d61=_0x3ef9f9(_0x2c2d4c,_0x464d1d);_0x306d61>_0x4d0e8d||_0x1652fa&&_0x306d61>=_0x1652fa[_0x50e0b7(0x189)]||(_0x1652fa={'handle':{'kind':_0x46c103,'anchorId':_0x2122f7['id']},'point':_0x64c29f(_0x464d1d),'distance':_0x306d61});});}),_0x1652fa;}function _0x591e55(_0x10c6d3,_0x59863b,_0x560e16){const _0x46ab4f=_0x3c2545;let _0x1e547e=null,_0x2e9979=_0x10c6d3[_0x46ab4f(0x1a7)]?_0x10c6d3['anchors'][_0x46ab4f(0x182)]:Math[_0x46ab4f(0x1ba)](0x0,_0x10c6d3[_0x46ab4f(0x17d)]['length']-0x1);for(let _0x327b88=0x0;_0x327b88<_0x2e9979;_0x327b88++){let _0x4fc10e=_0x2c9c75(_0x10c6d3,_0x327b88);if(!_0x4fc10e)continue;let _0x39c0d8=_0x32af97(_0x4fc10e,0x0);for(let _0x486b1e=0x1;_0x486b1e<=0x20;_0x486b1e++){let _0x437bc1=_0x32af97(_0x4fc10e,_0x486b1e/0x20),_0x463999=_0x5ab6a0(_0x59863b,_0x39c0d8,_0x437bc1),_0x55b6ba=(_0x486b1e-0x1+_0x463999[_0x46ab4f(0x1a9)])/0x20;(!_0x1e547e||_0x463999[_0x46ab4f(0x189)]<_0x1e547e[_0x46ab4f(0x189)])&&(_0x1e547e={'segmentIndex':_0x327b88,'t':_0x55b6ba,'point':_0x463999[_0x46ab4f(0x185)],'distance':_0x463999[_0x46ab4f(0x189)]}),_0x39c0d8=_0x437bc1;}}return _0x1e547e&&_0x1e547e[_0x46ab4f(0x189)]<=_0x560e16?_0x1e547e:null;}function _0x4d91d7(_0x109b79,_0x5e3fe2,_0x5590d4){const _0x3cbc97=_0x3c2545;let _0x2a3e32=_0x31dd48(_0x109b79),_0x20c8fc=_0x16cf20(_0x2a3e32,_0x5e3fe2[_0x3cbc97(0x1a1)]),_0x307ccc=_0x2c9c75(_0x2a3e32,_0x5e3fe2[_0x3cbc97(0x1a1)]);if(!_0x20c8fc||!_0x307ccc)return _0x2a3e32;let _0x1e7f51=_0x3c1516(_0x307ccc,Math[_0x3cbc97(0x1ba)](0x0,Math[_0x3cbc97(0x1b8)](0x1,_0x5e3fe2['t']))),_0x23aa69={'id':_0x5590d4(),'x':_0x1e7f51['left'][0x3]['x'],'y':_0x1e7f51[_0x3cbc97(0x175)][0x3]['y'],'in':_0x64c29f(_0x1e7f51[_0x3cbc97(0x175)][0x2]),'out':_0x64c29f(_0x1e7f51[_0x3cbc97(0x1b0)][0x1]),'pointType':'free'};return _0x2a3e32[_0x3cbc97(0x17d)][_0x20c8fc[_0x3cbc97(0x169)]]['out']=_0x64c29f(_0x1e7f51['left'][0x1]),_0x2a3e32[_0x3cbc97(0x17d)][_0x20c8fc['endIndex']]['in']=_0x64c29f(_0x1e7f51[_0x3cbc97(0x1b0)][0x2]),_0x2a3e32[_0x3cbc97(0x17d)]['splice'](_0x20c8fc[_0x3cbc97(0x169)]+0x1,0x0,_0x23aa69),_0x2a3e32;}function _0x31899b(_0x17752f,_0x5ab4d7){const _0x2c32d8=_0x3c2545;let _0x11cc13=_0x31dd48(_0x17752f);return _0x11cc13[_0x2c32d8(0x17d)]=_0x11cc13['anchors']['filter'](_0x38ce63=>_0x38ce63['id']!==_0x5ab4d7),_0x11cc13[_0x2c32d8(0x1a7)]&&_0x11cc13[_0x2c32d8(0x17d)]['length']<0x3&&(_0x11cc13[_0x2c32d8(0x1a7)]=!0x1),_0x11cc13;}function _0x33299d(_0x4a19bd,_0x5e4b93,_0x132d89){const _0x2a66ad=_0x3c2545;let _0x5e68e8=_0x31dd48(_0x4a19bd),_0x208d30=_0x5e68e8['anchors'][_0x2a66ad(0x1c5)](_0x4892b6=>_0x4892b6['id']===_0x5e4b93),_0x3814ea=_0x5e68e8[_0x2a66ad(0x17d)][_0x208d30];if(!_0x3814ea)return _0x5e68e8;if(_0x3814ea['pointType']=_0x132d89,_0x132d89===_0x2a66ad(0x191))return delete _0x3814ea['in'],delete _0x3814ea[_0x2a66ad(0x15d)],_0x5e68e8;let _0xad19d3=_0x1ea969(_0x5e68e8,_0x208d30);if(_0x3814ea['in']=_0x3814ea['in']?_0x64c29f(_0x3814ea['in']):_0xad19d3['in'],_0x3814ea[_0x2a66ad(0x15d)]=_0x3814ea[_0x2a66ad(0x15d)]?_0x64c29f(_0x3814ea[_0x2a66ad(0x15d)]):_0xad19d3[_0x2a66ad(0x15d)],_0x132d89===_0x2a66ad(0x16d)){let _0x4211c7=Math[_0x2a66ad(0x1ba)](_0x3ef9f9(_0x3814ea,_0x3814ea['in']),_0x3ef9f9(_0x3814ea,_0x3814ea[_0x2a66ad(0x15d)]),0x32),_0x13f2b0=_0x45c673({'x':_0x3814ea[_0x2a66ad(0x15d)]['x']-_0x3814ea['x'],'y':_0x3814ea[_0x2a66ad(0x15d)]['y']-_0x3814ea['y']});_0x3814ea[_0x2a66ad(0x15d)]={'x':_0x3814ea['x']+_0x13f2b0['x']*_0x4211c7,'y':_0x3814ea['y']+_0x13f2b0['y']*_0x4211c7},_0x3814ea['in']={'x':_0x3814ea['x']-_0x13f2b0['x']*_0x4211c7,'y':_0x3814ea['y']-_0x13f2b0['y']*_0x4211c7};}else _0x132d89===_0x2a66ad(0x16a)&&_0x3329b1(_0x3814ea,_0x2a66ad(0x15d));return _0x5e68e8;}function _0x457c74(_0x135e7d,_0x398b3b){const _0x1c93cf=_0x3c2545;let _0x3fc031=_0x135e7d[_0x1c93cf(0x17d)][_0x1c93cf(0x184)](_0x22fd06=>_0x22fd06['id']===_0x398b3b),_0x485934=(_0x3fc031==null?void 0x0:_0x3fc031['pointType'])??_0x1c93cf(0x191);return _0x33299d(_0x135e7d,_0x398b3b,_0x485934==='corner'?_0x1c93cf(0x16a):_0x485934===_0x1c93cf(0x16a)?_0x1c93cf(0x16d):_0x485934===_0x1c93cf(0x16d)?'free':_0x1c93cf(0x191));}function _0x4f6b32(_0x162174,_0x1d146d,_0x24fd76){const _0x1130d9=_0x3c2545;let _0x18a1cb=_0x31dd48(_0x162174),_0x4cb4d7=_0x18a1cb['anchors'][_0x1130d9(0x184)](_0x22003d=>_0x22003d['id']===_0x1d146d[_0x1130d9(0x157)]);if(!_0x4cb4d7)return _0x18a1cb;if(_0x1d146d[_0x1130d9(0x19b)]==='anchor'){let _0x416241={'x':_0x24fd76['x']-_0x4cb4d7['x'],'y':_0x24fd76['y']-_0x4cb4d7['y']};return _0x4cb4d7['x']=_0x24fd76['x'],_0x4cb4d7['y']=_0x24fd76['y'],_0x4cb4d7['in']&&={'x':_0x4cb4d7['in']['x']+_0x416241['x'],'y':_0x4cb4d7['in']['y']+_0x416241['y']},_0x4cb4d7[_0x1130d9(0x15d)]&&={'x':_0x4cb4d7[_0x1130d9(0x15d)]['x']+_0x416241['x'],'y':_0x4cb4d7[_0x1130d9(0x15d)]['y']+_0x416241['y']},_0x18a1cb;}return _0x4cb4d7[_0x1d146d[_0x1130d9(0x19b)]]=_0x64c29f(_0x24fd76),_0x4cb4d7[_0x1130d9(0x19a)]===_0x1130d9(0x191)&&(_0x4cb4d7[_0x1130d9(0x19a)]='free'),_0x3329b1(_0x4cb4d7,_0x1d146d[_0x1130d9(0x19b)]),_0x18a1cb;}let _0x232421=1e-9;function _0x3aee73(_0x2542a0){const _0x57b4a4=_0x3c2545;let _0x21c4fa=Math[_0x57b4a4(0x188)](_0x2542a0*0x2710)/0x2710;return Object['is'](_0x21c4fa,-0x0)?'0':String(_0x21c4fa);}function _0x1ae803(_0x3164e0){return _0x3aee73(_0x3164e0['x'])+'\x20'+_0x3aee73(_0x3164e0['y']);}function _0x31676e(_0x1695cb,_0x321b7a){return{'x':_0x1695cb['x']-_0x321b7a['x'],'y':_0x1695cb['y']-_0x321b7a['y']};}function _0x4d507d(_0x176f1e,_0x4b88a6,_0x9fc40a,_0x5bd483,_0x4aea5b){let _0x4534cb=0x1-_0x4aea5b;return{'x':_0x4534cb*_0x4534cb*_0x4534cb*_0x176f1e['x']+0x3*_0x4534cb*_0x4534cb*_0x4aea5b*_0x4b88a6['x']+0x3*_0x4534cb*_0x4aea5b*_0x4aea5b*_0x9fc40a['x']+_0x4aea5b*_0x4aea5b*_0x4aea5b*_0x5bd483['x'],'y':_0x4534cb*_0x4534cb*_0x4534cb*_0x176f1e['y']+0x3*_0x4534cb*_0x4534cb*_0x4aea5b*_0x4b88a6['y']+0x3*_0x4534cb*_0x4aea5b*_0x4aea5b*_0x9fc40a['y']+_0x4aea5b*_0x4aea5b*_0x4aea5b*_0x5bd483['y']};}function _0xf6283e(_0x5ad25f,_0x388b83,_0x5a753b,_0xf27f7a){const _0x37b288=_0x3c2545;let _0x36ec19=-_0x5ad25f+0x3*_0x388b83-0x3*_0x5a753b+_0xf27f7a,_0x1656ce=0x3*_0x5ad25f-0x6*_0x388b83+0x3*_0x5a753b,_0x36aef8=-0x3*_0x5ad25f+0x3*_0x388b83,_0x5e5f7c=[];if(Math[_0x37b288(0x14d)](_0x36ec19)<_0x232421){if(Math[_0x37b288(0x14d)](_0x1656ce)<_0x232421)return _0x5e5f7c;let _0x4c5504=-_0x36aef8/(0x2*_0x1656ce);return _0x4c5504>0x0&&_0x4c5504<0x1&&_0x5e5f7c[_0x37b288(0x17c)](_0x4c5504),_0x5e5f7c;}let _0xc94b11=_0x1656ce*_0x1656ce-0x3*_0x36ec19*_0x36aef8;if(_0xc94b11<0x0)return _0x5e5f7c;let _0x69fa55=Math[_0x37b288(0x1b9)](Math[_0x37b288(0x1ba)](0x0,_0xc94b11)),_0x3fa7ef=(-_0x1656ce+_0x69fa55)/(0x3*_0x36ec19),_0x2977cd=(-_0x1656ce-_0x69fa55)/(0x3*_0x36ec19);return _0x3fa7ef>0x0&&_0x3fa7ef<0x1&&_0x5e5f7c[_0x37b288(0x17c)](_0x3fa7ef),_0x2977cd>0x0&&_0x2977cd<0x1&&Math[_0x37b288(0x14d)](_0x2977cd-_0x3fa7ef)>_0x232421&&_0x5e5f7c['push'](_0x2977cd),_0x5e5f7c;}function _0x1472b4(_0x222553,_0x71ed2b,_0x1397e1,_0x40732b,_0x138c42){const _0x4e354a=_0x3c2545;_0x222553[_0x4e354a(0x17c)](_0x71ed2b,_0x138c42),new Set([..._0xf6283e(_0x71ed2b['x'],_0x1397e1['x'],_0x40732b['x'],_0x138c42['x']),..._0xf6283e(_0x71ed2b['y'],_0x1397e1['y'],_0x40732b['y'],_0x138c42['y'])])[_0x4e354a(0x162)](_0x221ce3=>{_0x222553['push'](_0x4d507d(_0x71ed2b,_0x1397e1,_0x40732b,_0x138c42,_0x221ce3));});}function _0x4bd6b6(_0x587f4b){const _0x169b1c=_0x3c2545;let _0x51a14f=_0x587f4b['anchors'];if(_0x51a14f[_0x169b1c(0x182)]<=0x1)return _0x51a14f;let _0x5985ff=[];for(let _0x261c91=0x1;_0x261c91<_0x51a14f[_0x169b1c(0x182)];_0x261c91++){let _0x2016b8=_0x51a14f[_0x261c91-0x1],_0x2d160b=_0x51a14f[_0x261c91];_0x1472b4(_0x5985ff,_0x2016b8,_0x2016b8[_0x169b1c(0x15d)]??_0x2016b8,_0x2d160b['in']??_0x2d160b,_0x2d160b);}if(_0x587f4b['closed']&&_0x51a14f[_0x169b1c(0x182)]>0x1){let _0x4e9e7f=_0x51a14f[_0x51a14f[_0x169b1c(0x182)]-0x1],_0x17d321=_0x51a14f[0x0];_0x1472b4(_0x5985ff,_0x4e9e7f,_0x4e9e7f[_0x169b1c(0x15d)]??_0x4e9e7f,_0x17d321['in']??_0x17d321,_0x17d321);}return _0x5985ff;}function _0x2d1370(_0x1f5497){const _0x4b6691=_0x3c2545;let _0x8767f1=_0x1f5497[_0x4b6691(0x156)];if(_0x8767f1[_0x4b6691(0x182)]<=0x1)return _0x8767f1;let _0x486604=[];for(let _0x1203cf=0x0;_0x1203cf<_0x8767f1[_0x4b6691(0x182)]-0x1;_0x1203cf++){let _0x346a3d=_0x8767f1[_0x1203cf],_0x11ca80=_0x8767f1[_0x1203cf+0x1],_0x37d29e=_0x8767f1[_0x1203cf-0x1]??_0x346a3d,_0x255ae0=_0x8767f1[_0x1203cf+0x2]??_0x11ca80;_0x1472b4(_0x486604,_0x346a3d,{'x':_0x346a3d['x']+(_0x11ca80['x']-_0x37d29e['x'])/0x6,'y':_0x346a3d['y']+(_0x11ca80['y']-_0x37d29e['y'])/0x6},{'x':_0x11ca80['x']-(_0x255ae0['x']-_0x346a3d['x'])/0x6,'y':_0x11ca80['y']-(_0x255ae0['y']-_0x346a3d['y'])/0x6},_0x11ca80);}return _0x486604;}function _0x48870c(_0x1d7501){const _0x29d091=_0x3c2545;return _0x1d7501[_0x29d091(0x19b)]===_0x29d091(0x197)?_0x4bd6b6(_0x1d7501):_0x2d1370(_0x1d7501);}function _0x17c8d9(_0x3b312d){const _0x583ea5=_0x3c2545;let _0x270ecb=Math[_0x583ea5(0x188)](_0x3b312d*0x2710)/0x2710;return Object['is'](_0x270ecb,-0x0)?0x0:_0x270ecb;}function _0x555e96(_0x2e41ea){const _0x54303b=_0x3c2545;let _0x3fc799=_0x48870c(_0x2e41ea);if(_0x3fc799[_0x54303b(0x182)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3c0eed=Math[_0x54303b(0x1b8)](..._0x3fc799[_0x54303b(0x150)](_0x14ace2=>_0x14ace2['x'])),_0x349261=Math[_0x54303b(0x1b8)](..._0x3fc799[_0x54303b(0x150)](_0x143591=>_0x143591['y'])),_0x1a8750=Math[_0x54303b(0x1ba)](..._0x3fc799[_0x54303b(0x150)](_0x3ec3cd=>_0x3ec3cd['x'])),_0x4e4ae2=Math['max'](..._0x3fc799[_0x54303b(0x150)](_0x25032a=>_0x25032a['y']));return{'left':_0x17c8d9(_0x3c0eed),'top':_0x17c8d9(_0x349261),'width':_0x17c8d9(Math[_0x54303b(0x1ba)](0x1,_0x1a8750-_0x3c0eed)),'height':_0x17c8d9(Math[_0x54303b(0x1ba)](0x1,_0x4e4ae2-_0x349261))};}function _0x177ffd(_0x3acb79,_0x5c0652){const _0x1b3dc3=_0x3c2545;let _0x91e015=_0x3acb79[_0x1b3dc3(0x17d)];if(_0x91e015['length']===0x0)return'';let _0x2ccb87=['M\x20'+_0x1ae803(_0x31676e(_0x91e015[0x0],_0x5c0652))];for(let _0xdcc6bc=0x1;_0xdcc6bc<_0x91e015[_0x1b3dc3(0x182)];_0xdcc6bc++){let _0x490a94=_0x91e015[_0xdcc6bc-0x1],_0x1ffb68=_0x91e015[_0xdcc6bc],_0x35c706=_0x490a94[_0x1b3dc3(0x15d)]??_0x490a94,_0x302744=_0x1ffb68['in']??_0x1ffb68;_0x2ccb87['push']('C\x20'+_0x1ae803(_0x31676e(_0x35c706,_0x5c0652))+'\x20'+_0x1ae803(_0x31676e(_0x302744,_0x5c0652))+'\x20'+_0x1ae803(_0x31676e(_0x1ffb68,_0x5c0652)));}if(_0x3acb79[_0x1b3dc3(0x1a7)]&&_0x91e015[_0x1b3dc3(0x182)]>0x1){let _0x3eeed3=_0x91e015[_0x91e015['length']-0x1],_0xfb175b=_0x91e015[0x0],_0xa733b4=_0x3eeed3[_0x1b3dc3(0x15d)]??_0x3eeed3,_0x4a0ba8=_0xfb175b['in']??_0xfb175b;_0x2ccb87['push']('C\x20'+_0x1ae803(_0x31676e(_0xa733b4,_0x5c0652))+'\x20'+_0x1ae803(_0x31676e(_0x4a0ba8,_0x5c0652))+'\x20'+_0x1ae803(_0x31676e(_0xfb175b,_0x5c0652))),_0x2ccb87['push']('Z');}return _0x2ccb87[_0x1b3dc3(0x15e)]('\x20');}function _0x3c3170(_0x3a70cc,_0x2e7508){const _0x1f9ff7=_0x3c2545;let _0x32338c=_0x3a70cc['points'][_0x1f9ff7(0x150)](_0x3ae64c=>_0x31676e(_0x3ae64c,_0x2e7508));if(_0x32338c[_0x1f9ff7(0x182)]===0x0)return'';if(_0x32338c['length']===0x1)return'M\x20'+_0x1ae803(_0x32338c[0x0]);let _0x87202f=['M\x20'+_0x1ae803(_0x32338c[0x0])];for(let _0xa38c89=0x0;_0xa38c89<_0x32338c['length']-0x1;_0xa38c89++){let _0x5d930e=_0x32338c[_0xa38c89],_0x16a68d=_0x32338c[_0xa38c89+0x1],_0xa6e1bb=_0x32338c[_0xa38c89-0x1]??_0x5d930e,_0x4e54f1=_0x32338c[_0xa38c89+0x2]??_0x16a68d,_0x924173={'x':_0x5d930e['x']+(_0x16a68d['x']-_0xa6e1bb['x'])/0x6,'y':_0x5d930e['y']+(_0x16a68d['y']-_0xa6e1bb['y'])/0x6},_0x2aed43={'x':_0x16a68d['x']-(_0x4e54f1['x']-_0x5d930e['x'])/0x6,'y':_0x16a68d['y']-(_0x4e54f1['y']-_0x5d930e['y'])/0x6};_0x87202f[_0x1f9ff7(0x17c)]('C\x20'+_0x1ae803(_0x924173)+'\x20'+_0x1ae803(_0x2aed43)+'\x20'+_0x1ae803(_0x16a68d));}return _0x87202f[_0x1f9ff7(0x15e)]('\x20');}function _0x4c644d(_0x1dd3e8,_0x2d938f){const _0xe8e3bb=_0x3c2545;return _0x1dd3e8[_0xe8e3bb(0x19b)]===_0xe8e3bb(0x197)?_0x177ffd(_0x1dd3e8,_0x2d938f):_0x3c3170(_0x1dd3e8,_0x2d938f);}function _0x1f39af(_0x4b37a8,_0x36b893){const _0x8d6956=_0x3c2545;return _0x36b893!=null&&_0x36b893[_0x8d6956(0x1a6)]?_0x36b893[_0x8d6956(0x1a6)]:_0x4b37a8['kind']===_0x8d6956(0x197)?_0x8d6956(0x1ae):_0x4b37a8[_0x8d6956(0x1a6)];}function _0x2b3c02(_0xc9edc7,_0x129859){const _0x1d2df1=_0x3c2545;return(_0x129859==null?void 0x0:_0x129859[_0x1d2df1(0x14f)])===void 0x0?_0xc9edc7[_0x1d2df1(0x19b)]===_0x1d2df1(0x197)?0x2:_0xc9edc7[_0x1d2df1(0x14f)]:_0x129859['width'];}function _0x304e77(_0x3db892,_0x136397){const _0x458c46=_0x3c2545;return(_0x136397==null?void 0x0:_0x136397[_0x458c46(0x1c0)])===void 0x0?_0x3db892['kind']===_0x458c46(0x197)?void 0x0:_0x3db892[_0x458c46(0x1c0)]:_0x136397[_0x458c46(0x1c0)];}function _0x3b4b4d(_0xb42be7,_0x5de02c){const _0x54a214=_0x3c2545;let _0x4df828=_0x555e96(_0xb42be7),_0x3b88b2=_0x4c644d(_0xb42be7,{'x':_0x4df828['left'],'y':_0x4df828[_0x54a214(0x15c)]}),_0x489c6a=_0xb42be7[_0x54a214(0x19b)]==='pen'&&_0xb42be7['closed'],_0x160b40=_0x5de02c==null?void 0x0:_0x5de02c[_0x54a214(0x17f)];return{'shapeType':_0x580dcc['ShapeTypeEnum'][_0x54a214(0x179)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x4df828[_0x54a214(0x14f)],'h':_0x4df828[_0x54a214(0x1af)],'fill':_0x489c6a?_0x54a214(0x163):_0x54a214(0x161),'stroke':!0x0,'data':_0x3b88b2,'dataArray':_0x172229(_0xb42be7,{'x':_0x4df828[_0x54a214(0x175)],'y':_0x4df828[_0x54a214(0x15c)]})}]},'fill':_0x489c6a&&_0x160b40?{'color':_0x160b40,'fillType':_0x580dcc['ShapeFillEnum']['SolidFill']}:{'fillType':_0x580dcc['ShapeFillEnum'][_0x54a214(0x1bc)]},'stroke':{'color':_0x1f39af(_0xb42be7,_0x5de02c),'width':_0x2b3c02(_0xb42be7,_0x5de02c),'opacity':_0x304e77(_0xb42be7,_0x5de02c),'lineStrokeType':_0x580dcc[_0x54a214(0x18c)][_0x54a214(0x18a)],'capType':_0x580dcc['ShapeLineCapEnum'][_0x54a214(0x19d)],'lineJoinType':_0x580dcc[_0x54a214(0x164)][_0x54a214(0x19d)]}};}function _0x15c759(_0x1d10b0,_0x34f557){return{'x':_0x1d10b0['x']-_0x34f557['x'],'y':_0x1d10b0['y']-_0x34f557['y']};}function _0x172229(_0x3e7731,_0x1b0576){const _0x280791=_0x3c2545;if(_0x3e7731[_0x280791(0x19b)]==='pen'){let _0x331a6e=_0x3e7731[_0x280791(0x17d)];if(_0x331a6e[_0x280791(0x182)]===0x0)return[];let _0x32c2aa=_0x15c759(_0x331a6e[0x0],_0x1b0576),_0x2a4244=[{'command':'M','points':[_0x32c2aa['x'],_0x32c2aa['y']]}];for(let _0x5de43b=0x1;_0x5de43b<_0x331a6e[_0x280791(0x182)];_0x5de43b++){let _0x2ef527=_0x331a6e[_0x5de43b-0x1],_0x585695=_0x331a6e[_0x5de43b],_0xe3c61=_0x15c759(_0x2ef527[_0x280791(0x15d)]??_0x2ef527,_0x1b0576),_0x485a52=_0x15c759(_0x585695['in']??_0x585695,_0x1b0576),_0x3ea967=_0x15c759(_0x585695,_0x1b0576);_0x2a4244[_0x280791(0x17c)]({'command':'C','points':[_0xe3c61['x'],_0xe3c61['y'],_0x485a52['x'],_0x485a52['y'],_0x3ea967['x'],_0x3ea967['y']]});}if(_0x3e7731[_0x280791(0x1a7)]&&_0x331a6e[_0x280791(0x182)]>0x1){let _0x57f022=_0x331a6e[_0x331a6e[_0x280791(0x182)]-0x1],_0x5c1151=_0x331a6e[0x0],_0x3c5687=_0x15c759(_0x57f022['out']??_0x57f022,_0x1b0576),_0x197ad2=_0x15c759(_0x5c1151['in']??_0x5c1151,_0x1b0576),_0x72b0b8=_0x15c759(_0x5c1151,_0x1b0576);_0x2a4244[_0x280791(0x17c)]({'command':'C','points':[_0x3c5687['x'],_0x3c5687['y'],_0x197ad2['x'],_0x197ad2['y'],_0x72b0b8['x'],_0x72b0b8['y']]}),_0x2a4244[_0x280791(0x17c)]({'command':'z','points':[]});}return _0x2a4244;}let _0x219e83=_0x3e7731['points'][_0x280791(0x150)](_0x286f38=>_0x15c759(_0x286f38,_0x1b0576));if(_0x219e83[_0x280791(0x182)]===0x0)return[];let _0x5939a9=[{'command':'M','points':[_0x219e83[0x0]['x'],_0x219e83[0x0]['y']]}];for(let _0x420ec2=0x0;_0x420ec2<_0x219e83[_0x280791(0x182)]-0x1;_0x420ec2++){let _0x2a98cf=_0x219e83[_0x420ec2],_0x13d688=_0x219e83[_0x420ec2+0x1],_0x94bc71=_0x219e83[_0x420ec2-0x1]??_0x2a98cf,_0x2e3b68=_0x219e83[_0x420ec2+0x2]??_0x13d688,_0x4ed6cb={'x':_0x2a98cf['x']+(_0x13d688['x']-_0x94bc71['x'])/0x6,'y':_0x2a98cf['y']+(_0x13d688['y']-_0x94bc71['y'])/0x6},_0x2a7b6a={'x':_0x13d688['x']-(_0x2e3b68['x']-_0x2a98cf['x'])/0x6,'y':_0x13d688['y']-(_0x2e3b68['y']-_0x2a98cf['y'])/0x6};_0x5939a9[_0x280791(0x17c)]({'command':'C','points':[_0x4ed6cb['x'],_0x4ed6cb['y'],_0x2a7b6a['x'],_0x2a7b6a['y'],_0x13d688['x'],_0x13d688['y']]});}return _0x5939a9;}function _0x1d38b9(_0x3b71de){const _0x18e8bc=_0x3c2545;let {model:_0x31d72a,sourceModel:_0x33056b=_0x31d72a,style:_0x69b8dc}=_0x3b71de,_0xcca558=_0x3b71de[_0x18e8bc(0x1a5)]??_0x31d72a[_0x18e8bc(0x19b)],_0x10e3c7=_0x555e96(_0x31d72a),_0x19537d=_0x31d72a[_0x18e8bc(0x19b)]===_0x18e8bc(0x197)&&_0xcca558!==_0x18e8bc(0x197)?_0x31d72a:void 0x0;return{'transform':{..._0x10e3c7,'rotation':0x0},'shapeData':_0x3b4b4d(_0x31d72a,_0x69b8dc),'ink':{'version':0x1,'tool':_0xcca558,'sourceModel':_0x33056b,..._0x19537d?{'editModel':_0x19537d}:{},'normalizedBounds':_0x10e3c7}};}var _0x3cc119='@univerjs-pro/ink',_0x2fab56=_0x3c2545(0x15f);function _0xa1e4eb(_0x334789){'@babel/helpers - typeof';const _0x59213e=_0x3c2545;return _0xa1e4eb=typeof Symbol=='function'&&typeof Symbol[_0x59213e(0x1b3)]==_0x59213e(0x166)?function(_0xf45fc6){return typeof _0xf45fc6;}:function(_0xf7180){const _0x5b0402=_0x59213e;return _0xf7180&&typeof Symbol==_0x5b0402(0x14e)&&_0xf7180['constructor']===Symbol&&_0xf7180!==Symbol[_0x5b0402(0x171)]?_0x5b0402(0x166):typeof _0xf7180;},_0xa1e4eb(_0x334789);}function _0x43f437(_0x5d05b2,_0x1b7ac0){const _0x12f714=_0x3c2545;if(_0xa1e4eb(_0x5d05b2)!='object'||!_0x5d05b2)return _0x5d05b2;var _0x5b9d5b=_0x5d05b2[Symbol['toPrimitive']];if(_0x5b9d5b!==void 0x0){var _0x467309=_0x5b9d5b[_0x12f714(0x152)](_0x5d05b2,_0x1b7ac0||_0x12f714(0x177));if(_0xa1e4eb(_0x467309)!=_0x12f714(0x1a2))return _0x467309;throw TypeError(_0x12f714(0x176));}return(_0x1b7ac0==='string'?String:Number)(_0x5d05b2);}function _0x3a1aa5(_0x13aa59){const _0x5964f9=_0x3c2545;var _0x1cd9c1=_0x43f437(_0x13aa59,_0x5964f9(0x1bb));return _0xa1e4eb(_0x1cd9c1)==_0x5964f9(0x166)?_0x1cd9c1:_0x1cd9c1+'';}function _0x10c45e(_0x4551b7,_0x26924b,_0x225c5a){const _0x4a9f74=_0x3c2545;return(_0x26924b=_0x3a1aa5(_0x26924b))in _0x4551b7?Object[_0x4a9f74(0x1b5)](_0x4551b7,_0x26924b,{'value':_0x225c5a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4551b7[_0x26924b]=_0x225c5a,_0x4551b7;}let _0x1d588a=(0x0,_0x36a853[_0x3c2545(0x19f)])('ink.host-adapter.service');var _0x2ee723=class{constructor(){_0x10c45e(this,'_adapters',[]);}[_0x3c2545(0x199)](_0xd743e2){const _0x358e92=_0x3c2545;return this[_0x358e92(0x1c4)]['push'](_0xd743e2),(0x0,_0x36a853['toDisposable'])(()=>{const _0x3658fc=_0x358e92;let _0x248c8f=this[_0x3658fc(0x1c4)][_0x3658fc(0x1b6)](_0xd743e2);_0x248c8f>=0x0&&this[_0x3658fc(0x1c4)][_0x3658fc(0x1b1)](_0x248c8f,0x1);});}[_0x3c2545(0x198)](_0x59cb89){const _0x205404=_0x3c2545;for(let _0x429431 of this['_adapters'])if(_0x429431[_0x205404(0x198)](_0x59cb89))return!0x0;return!0x1;}async[_0x3c2545(0x168)](_0x54c984){const _0x20d8a8=_0x3c2545;for(let _0x13b040 of this['_adapters'])if(_0x13b040[_0x20d8a8(0x168)]&&await _0x13b040[_0x20d8a8(0x168)](_0x54c984))return!0x0;return!0x1;}};let _0x1abe8f={'id':_0x3c2545(0x16b),'type':_0x36a853['CommandType'][_0x3c2545(0x173)],'handler':(_0x2f5992,_0x5cffed)=>_0x5cffed?_0x2f5992['get'](_0x1d588a)[_0x3c2545(0x198)](_0x5cffed):!0x1},_0x582c94={};function _0x4eb6c6(_0x3ff237,_0x560420){return function(_0x13cee0,_0x26038b){_0x560420(_0x13cee0,_0x26038b,_0x3ff237);};}function _0x1c5d10(_0x55e7a1,_0x395c58,_0xf42dca,_0x49dd22){const _0x1a3d29=_0x3c2545;var _0xd4e4f5=arguments['length'],_0x29765d=_0xd4e4f5<0x3?_0x395c58:_0x49dd22===null?_0x49dd22=Object['getOwnPropertyDescriptor'](_0x395c58,_0xf42dca):_0x49dd22,_0x442f05;if(typeof Reflect==_0x1a3d29(0x1a2)&&typeof Reflect['decorate']==_0x1a3d29(0x14e))_0x29765d=Reflect[_0x1a3d29(0x1ab)](_0x55e7a1,_0x395c58,_0xf42dca,_0x49dd22);else{for(var _0x485b69=_0x55e7a1[_0x1a3d29(0x182)]-0x1;_0x485b69>=0x0;_0x485b69--)(_0x442f05=_0x55e7a1[_0x485b69])&&(_0x29765d=(_0xd4e4f5<0x3?_0x442f05(_0x29765d):_0xd4e4f5>0x3?_0x442f05(_0x395c58,_0xf42dca,_0x29765d):_0x442f05(_0x395c58,_0xf42dca))||_0x29765d);}return _0xd4e4f5>0x3&&_0x29765d&&Object[_0x1a3d29(0x1b5)](_0x395c58,_0xf42dca,_0x29765d),_0x29765d;}let _0x22de9b=class extends _0x36a853[_0x3c2545(0x194)]{constructor(_0x12a224=_0x582c94,_0x53823a,_0x44c147,_0x3e096d){const _0x3b16d8=_0x3c2545;super(),this['_config']=_0x12a224,this[_0x3b16d8(0x18b)]=_0x53823a,this[_0x3b16d8(0x160)]=_0x44c147,this[_0x3b16d8(0x192)]=_0x3e096d;let {..._0x301cc7}=(0x0,_0x36a853['merge'])({},_0x582c94,this['_config']);this['_configService'][_0x3b16d8(0x18f)]('ink.config',_0x301cc7);}[_0x3c2545(0x1a4)](){const _0xa51c90=_0x3c2545;[[_0x1d588a,{'useClass':_0x2ee723}]][_0xa51c90(0x162)](_0x6d85ea=>this[_0xa51c90(0x18b)][_0xa51c90(0x1c7)](_0x6d85ea)),this[_0xa51c90(0x1c8)](this[_0xa51c90(0x160)]['registerCommand'](_0x1abe8f));}};_0x10c45e(_0x22de9b,_0x3c2545(0x17a),_0x3c2545(0x1aa)),_0x10c45e(_0x22de9b,_0x3c2545(0x167),_0x3cc119),_0x10c45e(_0x22de9b,'version',_0x2fab56),_0x10c45e(_0x22de9b,_0x3c2545(0x1c2),_0x36a853[_0x3c2545(0x187)][_0x3c2545(0x170)]),_0x22de9b=_0x1c5d10([(0x0,_0x36a853['DependentOn'])(_0x20125a[_0x3c2545(0x178)]),_0x4eb6c6(0x1,(0x0,_0x36a853[_0x3c2545(0x159)])(_0x36a853[_0x3c2545(0x154)])),_0x4eb6c6(0x2,_0x36a853[_0x3c2545(0x174)]),_0x4eb6c6(0x3,_0x36a853[_0x3c2545(0x1bd)])],_0x22de9b),_0x670508[_0x3c2545(0x183)]=_0x1d588a,Object[_0x3c2545(0x1b5)](_0x670508,'UniverInkPlugin',{'enumerable':!0x0,'get':function(){return _0x22de9b;}}),_0x670508[_0x3c2545(0x19e)]=_0x1d38b9,_0x670508['convertBrushModelToPenModel']=_0x39f5f7,_0x670508[_0x3c2545(0x1c3)]=_0x457c74,_0x670508[_0x3c2545(0x1b4)]=_0x31899b,_0x670508[_0x3c2545(0x165)]=_0x509209,_0x670508[_0x3c2545(0x16e)]=_0x591e55,_0x670508[_0x3c2545(0x16f)]=_0x555e96,_0x670508[_0x3c2545(0x153)]=_0x45ba48,_0x670508[_0x3c2545(0x17b)]=_0x4d91d7,_0x670508[_0x3c2545(0x1a8)]=_0x4b1ffc,_0x670508[_0x3c2545(0x1c6)]=_0x4f6b32,_0x670508['setInkPenAnchorPointType']=_0x33299d;}));function _0x4a9e(_0xb17f30,_0x36227){_0xb17f30=_0xb17f30-0x14c;const _0x57f64d=_0x57f6();let _0x4a9e72=_0x57f64d[_0xb17f30];return _0x4a9e72;}function _0x57f6(){const _0x519d71=['free','type','cycleInkPenAnchorPointType','_adapters','findIndex','moveInkPenAnchorPoint','add','disposeWithMe','ink-centerline-','abs','function','width','map','@univerjs/core','call','getInkPenPreviewModel','Injector','737gopIZy','points','anchorId','__ink-preview-anchor__','Inject','UniverProLicense','slice','top','out','join','1.0.4','_commandService','none','forEach','norm','ShapeLineJoinEnum','findClosestInkPenHandle','symbol','packageName','createCustomShape','startIndex','smooth','ink.operation.start','407405SNiZlk','symmetric','findClosestInkPenSegment','getInkModelBounds','UNIVER_UNKNOWN','prototype','@univerjs-pro/engine-shape','OPERATION','ICommandService','left','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','default','UniverLicensePlugin','Rect','pluginName','insertInkPenAnchorAt','push','anchors','24GpMLob','fillColor','tolerance','253690ZlOCGZ','length','IInkHostAdapterService','find','point','829640ZNxdZR','UniverInstanceType','round','distance','SolidLine','_injector','ShapeLineTypeEnum','UniverProEngineShape','1120155EzqeCd','setConfig','anchor','corner','_configService','exports','Plugin','2LyNMqq','UniverProInk','pen','beginInkMode','registerAdapter','pointType','kind','end','Round','buildInkCustomShapePayload','createIdentifier','@univerjs-pro/license','segmentIndex','object','1562722ZJKfSd','onStarting','tool','color','closed','isInkPenHandleVisible','ratio','UNIVER_INK_PLUGIN','decorate','hypot','385544rFyAPt','#f54a45','height','right','splice','start','iterator','deleteInkPenAnchor','defineProperty','indexOf','5188248mcWfob','min','sqrt','max','string','NoFill','IConfigService','toStringTag','30fHoxXC','opacity'];_0x57f6=function(){return _0x519d71;};return _0x57f6();}
1
+ function _0x48cf(){const _0x5512a=['findClosestInkPenSegment','ShapeFillEnum','tool','join','UniverCore','norm','toPrimitive','DependentOn','anchorId','indexOf','1866832WrVawb','UniverProLicense','disposeWithMe','sqrt','prototype','2410gCykXe','decorate','max','pointType','_config','string','opacity','1.2.0','forEach','kind','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs-pro/engine-shape','fillColor','defineProperty','free','find','push','getInkPenPreviewModel','SolidLine','symmetric','Module','hypot','onStarting','endIndex','ink.host-adapter.service','7RWowtm','get','version','NoFill','IInkHostAdapterService','width','toStringTag','11vOZFaE','segmentIndex','createId','pen','SolidFill','smooth','abs','ShapeLineJoinEnum','245832fDixmI','1623044QlfKNq','convertBrushModelToPenModel','toDisposable','length','slice','function','min','buildInkCustomShapePayload','call','anchors','329502dmdaGh','OPERATION','UniverInstanceType','constructor','5rnhUlo','round','2867775OAlwxT','default','IConfigService','@univerjs-pro/ink','ink-centerline-','UniverProInk','_injector','ShapeTypeEnum','symbol','Round','corner','left','UNIVER_INK_PLUGIN','beginInkMode','packageName','start','createCustomShape','_adapters','end','_configService','7158070dKhwAv','color','map','startIndex','@univerjs-pro/license','right','ShapeLineTypeEnum','UniverLicensePlugin','splice','anchor','setInkPenAnchorPointType','ink.operation.start','cycleInkPenAnchorPointType','#f54a45','out','923dzpFhk','distance','iterator','point','Injector','deleteInkPenAnchor','filter','Rect','ICommandService','UniverInkPlugin','260AcRHUL','object','ShapeLineCapEnum','closed','points','top','9yKXpjD','_commandService'];_0x48cf=function(){return _0x5512a;};return _0x48cf();}function _0x5020(_0x337e34,_0x2789b4){_0x337e34=_0x337e34-0x168;const _0x48cf31=_0x48cf();let _0x50200b=_0x48cf31[_0x337e34];return _0x50200b;}(function(_0x5609c5,_0x40b4bc){const _0x1eb630=_0x5020,_0x2f9e06=_0x5609c5();while(!![]){try{const _0x170e48=parseInt(_0x1eb630(0x182))/0x1*(-parseInt(_0x1eb630(0x199))/0x2)+parseInt(_0x1eb630(0x1d2))/0x3+parseInt(_0x1eb630(0x1c2))/0x4*(parseInt(_0x1eb630(0x1d0))/0x5)+parseInt(_0x1eb630(0x1cc))/0x6*(-parseInt(_0x1eb630(0x1b2))/0x7)+-parseInt(_0x1eb630(0x194))/0x8*(-parseInt(_0x1eb630(0x188))/0x9)+-parseInt(_0x1eb630(0x169))/0xa*(-parseInt(_0x1eb630(0x1b9))/0xb)+-parseInt(_0x1eb630(0x1c1))/0xc*(parseInt(_0x1eb630(0x178))/0xd);if(_0x170e48===_0x40b4bc)break;else _0x2f9e06['push'](_0x2f9e06['shift']());}catch(_0x5b4a65){_0x2f9e06['push'](_0x2f9e06['shift']());}}}(_0x48cf,0x772bc),function(_0x5443e8,_0x509924){const _0x491c3a=_0x5020;typeof exports==_0x491c3a(0x183)&&typeof module<'u'?_0x509924(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x491c3a(0x1c7)&&define['amd']?define(['exports',_0x491c3a(0x1a4),_0x491c3a(0x16d),'@univerjs/core'],_0x509924):(_0x5443e8=typeof globalThis<'u'?globalThis:_0x5443e8||self,_0x509924(_0x5443e8[_0x491c3a(0x1d7)]={},_0x5443e8['UniverProEngineShape'],_0x5443e8[_0x491c3a(0x195)],_0x5443e8[_0x491c3a(0x18e)]));}(this,function(_0x5199c0,_0x44e042,_0x298c72,_0x11bd66){const _0x4b5f8d=_0x5020;Object[_0x4b5f8d(0x1a6)](_0x5199c0,Symbol[_0x4b5f8d(0x1b8)],{'value':_0x4b5f8d(0x1ad)});let _0x4a852d=0.0001;function _0x1bb78c(_0x2f8670){return{'x':_0x2f8670['x'],'y':_0x2f8670['y']};}function _0x4d9d42(_0x50cdd1){const _0x3c2339=_0x4b5f8d;return{..._0x50cdd1,'in':_0x50cdd1['in']?_0x1bb78c(_0x50cdd1['in']):void 0x0,'out':_0x50cdd1[_0x3c2339(0x177)]?_0x1bb78c(_0x50cdd1[_0x3c2339(0x177)]):void 0x0};}function _0x2ffb8a(_0x4c13f8){const _0x36f90a=_0x4b5f8d;return{'kind':_0x36f90a(0x1bc),'closed':_0x4c13f8[_0x36f90a(0x185)],'anchors':_0x4c13f8[_0x36f90a(0x1cb)][_0x36f90a(0x16b)](_0x4d9d42)};}function _0x4c5e72(_0x379fa3,_0x5d36dc,_0x2db572){return{'x':_0x379fa3['x']+(_0x5d36dc['x']-_0x379fa3['x'])*_0x2db572,'y':_0x379fa3['y']+(_0x5d36dc['y']-_0x379fa3['y'])*_0x2db572};}function _0x1f90c5(_0x47ab50,_0x2184ca){const _0xe2cede=_0x4b5f8d;return Math[_0xe2cede(0x1ae)](_0x47ab50['x']-_0x2184ca['x'],_0x47ab50['y']-_0x2184ca['y']);}function _0x4285f3(_0x3140a6){let _0x374880=Math['hypot'](_0x3140a6['x'],_0x3140a6['y']);return _0x374880<_0x4a852d?{'x':0x1,'y':0x0}:{'x':_0x3140a6['x']/_0x374880,'y':_0x3140a6['y']/_0x374880};}function _0x3cc879(_0x195b59,_0x505b4a,_0x1b333b=_0x1f90c5(_0x195b59,_0x505b4a)){let _0x384690=_0x4285f3({'x':_0x195b59['x']-_0x505b4a['x'],'y':_0x195b59['y']-_0x505b4a['y']});return{'x':_0x195b59['x']+_0x384690['x']*_0x1b333b,'y':_0x195b59['y']+_0x384690['y']*_0x1b333b};}function _0x4e3d47(_0x3d83ca,_0x53bd1b){const _0x1a32d2=_0x4b5f8d;let {anchors:_0x144b45}=_0x3d83ca;return _0x144b45['length']<0x2||_0x53bd1b<0x0?null:_0x53bd1b<_0x144b45[_0x1a32d2(0x1c5)]-0x1?{'startIndex':_0x53bd1b,'endIndex':_0x53bd1b+0x1,'start':_0x144b45[_0x53bd1b],'end':_0x144b45[_0x53bd1b+0x1]}:_0x3d83ca['closed']&&_0x53bd1b===_0x144b45['length']-0x1?{'startIndex':_0x144b45[_0x1a32d2(0x1c5)]-0x1,'endIndex':0x0,'start':_0x144b45[_0x144b45[_0x1a32d2(0x1c5)]-0x1],'end':_0x144b45[0x0]}:null;}function _0x4140ea(_0x1e0027,_0x52a6ef){const _0x5daf9d=_0x4b5f8d;let _0x45a77c=_0x4e3d47(_0x1e0027,_0x52a6ef);return _0x45a77c?[_0x45a77c[_0x5daf9d(0x1e1)],_0x45a77c['start'][_0x5daf9d(0x177)]??_0x45a77c[_0x5daf9d(0x1e1)],_0x45a77c[_0x5daf9d(0x1e4)]['in']??_0x45a77c['end'],_0x45a77c[_0x5daf9d(0x1e4)]]:null;}function _0x14fb80(_0x546e0f,_0x30f074){const _0x3aebda=_0x4b5f8d;return _0x30f074===_0x3aebda(0x172)?_0x546e0f:_0x546e0f[_0x30f074]??null;}function _0x2084de(_0x5b7f35,_0x4e7be2,_0x1100b3){const _0x9a59d6=_0x4b5f8d;return _0x1100b3==='anchor'||_0x5b7f35[_0x9a59d6(0x185)]?!0x0:_0x1100b3==='in'?_0x4e7be2>0x0:_0x4e7be2<_0x5b7f35['anchors'][_0x9a59d6(0x1c5)]-0x1;}function _0x198444(_0x10e6f0,_0x54ea41){let [_0x592af9,_0x5e07fe,_0x52ba9d,_0x1a4b20]=_0x10e6f0,_0x5aab36=_0x4c5e72(_0x592af9,_0x5e07fe,_0x54ea41),_0x329856=_0x4c5e72(_0x5e07fe,_0x52ba9d,_0x54ea41),_0x2aacc4=_0x4c5e72(_0x52ba9d,_0x1a4b20,_0x54ea41);return _0x4c5e72(_0x4c5e72(_0x5aab36,_0x329856,_0x54ea41),_0x4c5e72(_0x329856,_0x2aacc4,_0x54ea41),_0x54ea41);}function _0xd973f9(_0x4d39bd,_0x94d78e){let [_0x31767f,_0x12ddfa,_0x45f35e,_0x2ae486]=_0x4d39bd,_0x29f88c=_0x4c5e72(_0x31767f,_0x12ddfa,_0x94d78e),_0xaece30=_0x4c5e72(_0x12ddfa,_0x45f35e,_0x94d78e),_0x217089=_0x4c5e72(_0x45f35e,_0x2ae486,_0x94d78e),_0x16ba0d=_0x4c5e72(_0x29f88c,_0xaece30,_0x94d78e),_0xdbf8e8=_0x4c5e72(_0xaece30,_0x217089,_0x94d78e),_0x543a67=_0x4c5e72(_0x16ba0d,_0xdbf8e8,_0x94d78e);return{'left':[_0x31767f,_0x29f88c,_0x16ba0d,_0x543a67],'right':[_0x543a67,_0xdbf8e8,_0x217089,_0x2ae486]};}function _0x6655d9(_0x1bbd11,_0x4dcc30,_0x11d0e9){const _0x2ab5b7=_0x4b5f8d;let _0x16b81a=_0x11d0e9['x']-_0x4dcc30['x'],_0x415eb1=_0x11d0e9['y']-_0x4dcc30['y'],_0x2019e=_0x16b81a*_0x16b81a+_0x415eb1*_0x415eb1,_0x2fb090=_0x2019e<=_0x4a852d?0x0:Math[_0x2ab5b7(0x19b)](0x0,Math[_0x2ab5b7(0x1c8)](0x1,((_0x1bbd11['x']-_0x4dcc30['x'])*_0x16b81a+(_0x1bbd11['y']-_0x4dcc30['y'])*_0x415eb1)/_0x2019e)),_0x30a41c={'x':_0x4dcc30['x']+_0x16b81a*_0x2fb090,'y':_0x4dcc30['y']+_0x415eb1*_0x2fb090};return{'point':_0x30a41c,'ratio':_0x2fb090,'distance':_0x1f90c5(_0x1bbd11,_0x30a41c)};}function _0x1d687f(_0x108664,_0x33af25,_0x3dbc8d){const _0x4d4859=_0x4b5f8d;return _0x6655d9(_0x108664,_0x33af25,_0x3dbc8d)[_0x4d4859(0x179)]**0x2;}function _0x10018a(_0x47bc67,_0x320a24){const _0x1fbf22=_0x4b5f8d;if(_0x47bc67[_0x1fbf22(0x1c5)]<=0x2)return _0x47bc67[_0x1fbf22(0x16b)](_0x1bb78c);let _0x311cc7=0x0,_0x11e17f=0x0,_0x79ad17=_0x47bc67[0x0],_0x459b87=_0x47bc67[_0x47bc67[_0x1fbf22(0x1c5)]-0x1],_0x50f03d=_0x320a24*_0x320a24;for(let _0x71171b=0x1;_0x71171b<_0x47bc67['length']-0x1;_0x71171b++){let _0x14a3e2=_0x1d687f(_0x47bc67[_0x71171b],_0x79ad17,_0x459b87);_0x14a3e2>_0x311cc7&&(_0x311cc7=_0x14a3e2,_0x11e17f=_0x71171b);}if(_0x311cc7<=_0x50f03d)return[_0x1bb78c(_0x79ad17),_0x1bb78c(_0x459b87)];let _0x4243dc=_0x10018a(_0x47bc67[_0x1fbf22(0x1c6)](0x0,_0x11e17f+0x1),_0x320a24),_0x111f1d=_0x10018a(_0x47bc67['slice'](_0x11e17f),_0x320a24);return[..._0x4243dc['slice'](0x0,-0x1),..._0x111f1d];}function _0x5c59c9(_0x52d5be,_0x534e29){let _0x2ad6e5=_0x52d5be[_0x534e29],_0x58cc0a=_0x52d5be[_0x534e29+0x1],_0x3c20d5=_0x52d5be[_0x534e29-0x1]??_0x2ad6e5;return{'x':_0x2ad6e5['x']+(_0x58cc0a['x']-_0x3c20d5['x'])/0x6,'y':_0x2ad6e5['y']+(_0x58cc0a['y']-_0x3c20d5['y'])/0x6};}function _0x471ef9(_0x44ab4d,_0x48b0ee){let _0x34e4f8=_0x44ab4d[_0x48b0ee],_0x48906e=_0x44ab4d[_0x48b0ee-0x1],_0x4d1e8a=_0x44ab4d[_0x48b0ee+0x1]??_0x34e4f8;return{'x':_0x34e4f8['x']-(_0x4d1e8a['x']-_0x48906e['x'])/0x6,'y':_0x34e4f8['y']-(_0x4d1e8a['y']-_0x48906e['y'])/0x6};}function _0x33ea3f(_0x492993,_0x2d6f05){const _0x112b12=_0x4b5f8d;let _0x2b6f06=_0x492993[_0x112b12(0x1cb)][_0x2d6f05],_0x4e1f18=_0x492993[_0x112b12(0x1cb)][_0x2d6f05-0x1]??(_0x492993['closed']?_0x492993[_0x112b12(0x1cb)][_0x492993['anchors'][_0x112b12(0x1c5)]-0x1]:null),_0x465de8=_0x492993[_0x112b12(0x1cb)][_0x2d6f05+0x1]??(_0x492993[_0x112b12(0x185)]?_0x492993[_0x112b12(0x1cb)][0x0]:null),_0x3e26dc=_0x4e1f18&&_0x465de8?_0x4285f3({'x':_0x465de8['x']-_0x4e1f18['x'],'y':_0x465de8['y']-_0x4e1f18['y']}):_0x465de8?_0x4285f3({'x':_0x465de8['x']-_0x2b6f06['x'],'y':_0x465de8['y']-_0x2b6f06['y']}):_0x4e1f18?_0x4285f3({'x':_0x2b6f06['x']-_0x4e1f18['x'],'y':_0x2b6f06['y']-_0x4e1f18['y']}):{'x':0x1,'y':0x0},_0x43a11f=_0x4e1f18&&_0x465de8?Math['max'](0x32,_0x1f90c5(_0x4e1f18,_0x465de8)/0x4):0x32;return{'in':{'x':_0x2b6f06['x']-_0x3e26dc['x']*_0x43a11f,'y':_0x2b6f06['y']-_0x3e26dc['y']*_0x43a11f},'out':{'x':_0x2b6f06['x']+_0x3e26dc['x']*_0x43a11f,'y':_0x2b6f06['y']+_0x3e26dc['y']*_0x43a11f}};}function _0x47eca7(_0x142740,_0x4d9982){const _0x187ee1=_0x4b5f8d;let _0x1ae206=_0x142740[_0x4d9982],_0x565e4d=_0x4d9982==='in'?_0x187ee1(0x177):'in',_0x29dec5=_0x142740[_0x565e4d];_0x1ae206&&(_0x142740['pointType']===_0x187ee1(0x1ac)?_0x142740[_0x565e4d]=_0x3cc879(_0x142740,_0x1ae206):_0x142740[_0x187ee1(0x19c)]===_0x187ee1(0x1be)&&(_0x142740[_0x565e4d]=_0x3cc879(_0x142740,_0x1ae206,_0x29dec5?_0x1f90c5(_0x142740,_0x29dec5):_0x1f90c5(_0x142740,_0x1ae206))));}function _0x15af0b(_0xc904c9,_0x46e6f8){const _0x47390f=_0x4b5f8d;let _0x5a0fae=_0x2ffb8a(_0xc904c9);return!_0x46e6f8||_0x5a0fae['closed']||_0x5a0fae['anchors'][_0x47390f(0x1c5)]===0x0||_0x5a0fae['anchors']['push']({'id':'__ink-preview-anchor__','x':_0x46e6f8['x'],'y':_0x46e6f8['y'],'pointType':_0x47390f(0x1dc)}),_0x5a0fae;}function _0x372455(_0x1e3ed4,_0x637011={}){const _0x22f8ce=_0x4b5f8d;let _0x53e4e6=Math[_0x22f8ce(0x19b)](0x0,_0x637011['tolerance']??Math[_0x22f8ce(0x19b)](0x4,_0x1e3ed4[_0x22f8ce(0x1b7)]*0.35)),_0x154f5b=_0x637011[_0x22f8ce(0x1bb)]??(_0x109fee=>_0x22f8ce(0x1d6)+_0x109fee),_0x5bd1ea=_0x10018a(_0x1e3ed4[_0x22f8ce(0x186)],_0x53e4e6),_0x27f3f6=_0x5bd1ea[_0x22f8ce(0x16b)]((_0x3e137e,_0x2138de)=>({'id':_0x154f5b(_0x2138de),'x':_0x3e137e['x'],'y':_0x3e137e['y'],'pointType':_0x22f8ce(0x1a7)}));for(let _0x1ebc35=0x0;_0x1ebc35<_0x27f3f6[_0x22f8ce(0x1c5)]-0x1;_0x1ebc35++)_0x27f3f6[_0x1ebc35][_0x22f8ce(0x177)]=_0x5c59c9(_0x5bd1ea,_0x1ebc35),_0x27f3f6[_0x1ebc35+0x1]['in']=_0x471ef9(_0x5bd1ea,_0x1ebc35+0x1);return{'kind':_0x22f8ce(0x1bc),'closed':!0x1,'anchors':_0x27f3f6};}function _0x6ab892(_0xa676c6,_0x499afa,_0x27079a){const _0x22b37d=_0x4b5f8d;let _0xb1ecf8=null,_0x32f5a3=['anchor','in',_0x22b37d(0x177)];return _0xa676c6[_0x22b37d(0x1cb)][_0x22b37d(0x1a1)]((_0x542ffb,_0x5f1a14)=>{const _0x4a67ea=_0x22b37d;_0x32f5a3[_0x4a67ea(0x1a1)](_0x9fb9b7=>{if(!_0x2084de(_0xa676c6,_0x5f1a14,_0x9fb9b7))return;let _0x1f492a=_0x14fb80(_0x542ffb,_0x9fb9b7);if(!_0x1f492a)return;let _0x3f8ff6=_0x1f90c5(_0x499afa,_0x1f492a);_0x3f8ff6>_0x27079a||_0xb1ecf8&&_0x3f8ff6>=_0xb1ecf8['distance']||(_0xb1ecf8={'handle':{'kind':_0x9fb9b7,'anchorId':_0x542ffb['id']},'point':_0x1bb78c(_0x1f492a),'distance':_0x3f8ff6});});}),_0xb1ecf8;}function _0x591ccc(_0x42b84a,_0xe58555,_0x9fe05a){const _0x354335=_0x4b5f8d;let _0x59f3ad=null,_0x19ad69=_0x42b84a['closed']?_0x42b84a[_0x354335(0x1cb)]['length']:Math['max'](0x0,_0x42b84a[_0x354335(0x1cb)][_0x354335(0x1c5)]-0x1);for(let _0xe4908f=0x0;_0xe4908f<_0x19ad69;_0xe4908f++){let _0x3d5e9d=_0x4140ea(_0x42b84a,_0xe4908f);if(!_0x3d5e9d)continue;let _0x51eb15=_0x198444(_0x3d5e9d,0x0);for(let _0x3e5b50=0x1;_0x3e5b50<=0x20;_0x3e5b50++){let _0x352c3b=_0x198444(_0x3d5e9d,_0x3e5b50/0x20),_0x3b2108=_0x6655d9(_0xe58555,_0x51eb15,_0x352c3b),_0x3c59f5=(_0x3e5b50-0x1+_0x3b2108['ratio'])/0x20;(!_0x59f3ad||_0x3b2108[_0x354335(0x179)]<_0x59f3ad['distance'])&&(_0x59f3ad={'segmentIndex':_0xe4908f,'t':_0x3c59f5,'point':_0x3b2108[_0x354335(0x17b)],'distance':_0x3b2108['distance']}),_0x51eb15=_0x352c3b;}}return _0x59f3ad&&_0x59f3ad[_0x354335(0x179)]<=_0x9fe05a?_0x59f3ad:null;}function _0xe07201(_0x488c3a,_0x1c06d8,_0x27d417){const _0x350a35=_0x4b5f8d;let _0xb588c5=_0x2ffb8a(_0x488c3a),_0x291805=_0x4e3d47(_0xb588c5,_0x1c06d8[_0x350a35(0x1ba)]),_0x275ab0=_0x4140ea(_0xb588c5,_0x1c06d8[_0x350a35(0x1ba)]);if(!_0x291805||!_0x275ab0)return _0xb588c5;let _0x15286d=_0xd973f9(_0x275ab0,Math[_0x350a35(0x19b)](0x0,Math[_0x350a35(0x1c8)](0x1,_0x1c06d8['t']))),_0x5e36e0={'id':_0x27d417(),'x':_0x15286d[_0x350a35(0x1dd)][0x3]['x'],'y':_0x15286d[_0x350a35(0x1dd)][0x3]['y'],'in':_0x1bb78c(_0x15286d[_0x350a35(0x1dd)][0x2]),'out':_0x1bb78c(_0x15286d['right'][0x1]),'pointType':_0x350a35(0x1a7)};return _0xb588c5[_0x350a35(0x1cb)][_0x291805['startIndex']][_0x350a35(0x177)]=_0x1bb78c(_0x15286d[_0x350a35(0x1dd)][0x1]),_0xb588c5[_0x350a35(0x1cb)][_0x291805[_0x350a35(0x1b0)]]['in']=_0x1bb78c(_0x15286d[_0x350a35(0x16e)][0x2]),_0xb588c5[_0x350a35(0x1cb)][_0x350a35(0x171)](_0x291805[_0x350a35(0x16c)]+0x1,0x0,_0x5e36e0),_0xb588c5;}function _0x1e3fda(_0x5b216f,_0x34778f){const _0x2a6d25=_0x4b5f8d;let _0x38e6ad=_0x2ffb8a(_0x5b216f);return _0x38e6ad['anchors']=_0x38e6ad[_0x2a6d25(0x1cb)][_0x2a6d25(0x17e)](_0x436869=>_0x436869['id']!==_0x34778f),_0x38e6ad[_0x2a6d25(0x185)]&&_0x38e6ad[_0x2a6d25(0x1cb)][_0x2a6d25(0x1c5)]<0x3&&(_0x38e6ad[_0x2a6d25(0x185)]=!0x1),_0x38e6ad;}function _0x13f1a2(_0x3467b5,_0x1b6ec8,_0x3a2507){const _0x2627d8=_0x4b5f8d;let _0x59af2c=_0x2ffb8a(_0x3467b5),_0x5f37fc=_0x59af2c[_0x2627d8(0x1cb)]['findIndex'](_0x5952d0=>_0x5952d0['id']===_0x1b6ec8),_0x1c7816=_0x59af2c['anchors'][_0x5f37fc];if(!_0x1c7816)return _0x59af2c;if(_0x1c7816[_0x2627d8(0x19c)]=_0x3a2507,_0x3a2507===_0x2627d8(0x1dc))return delete _0x1c7816['in'],delete _0x1c7816[_0x2627d8(0x177)],_0x59af2c;let _0x496af8=_0x33ea3f(_0x59af2c,_0x5f37fc);if(_0x1c7816['in']=_0x1c7816['in']?_0x1bb78c(_0x1c7816['in']):_0x496af8['in'],_0x1c7816[_0x2627d8(0x177)]=_0x1c7816['out']?_0x1bb78c(_0x1c7816['out']):_0x496af8[_0x2627d8(0x177)],_0x3a2507===_0x2627d8(0x1ac)){let _0x230dd8=Math[_0x2627d8(0x19b)](_0x1f90c5(_0x1c7816,_0x1c7816['in']),_0x1f90c5(_0x1c7816,_0x1c7816[_0x2627d8(0x177)]),0x32),_0x9281a9=_0x4285f3({'x':_0x1c7816[_0x2627d8(0x177)]['x']-_0x1c7816['x'],'y':_0x1c7816['out']['y']-_0x1c7816['y']});_0x1c7816['out']={'x':_0x1c7816['x']+_0x9281a9['x']*_0x230dd8,'y':_0x1c7816['y']+_0x9281a9['y']*_0x230dd8},_0x1c7816['in']={'x':_0x1c7816['x']-_0x9281a9['x']*_0x230dd8,'y':_0x1c7816['y']-_0x9281a9['y']*_0x230dd8};}else _0x3a2507==='smooth'&&_0x47eca7(_0x1c7816,_0x2627d8(0x177));return _0x59af2c;}function _0x1fab29(_0x52c714,_0x2e688f){const _0x55b13f=_0x4b5f8d;let _0x29679a=_0x52c714[_0x55b13f(0x1cb)][_0x55b13f(0x1a8)](_0x452a2e=>_0x452a2e['id']===_0x2e688f),_0x512ec5=(_0x29679a==null?void 0x0:_0x29679a[_0x55b13f(0x19c)])??_0x55b13f(0x1dc);return _0x13f1a2(_0x52c714,_0x2e688f,_0x512ec5===_0x55b13f(0x1dc)?_0x55b13f(0x1be):_0x512ec5===_0x55b13f(0x1be)?_0x55b13f(0x1ac):_0x512ec5===_0x55b13f(0x1ac)?_0x55b13f(0x1a7):_0x55b13f(0x1dc));}function _0x4c35c9(_0x5221b3,_0x1cf072,_0x4da862){const _0x4226bf=_0x4b5f8d;let _0x512f0b=_0x2ffb8a(_0x5221b3),_0x433918=_0x512f0b['anchors'][_0x4226bf(0x1a8)](_0x3a3a32=>_0x3a3a32['id']===_0x1cf072[_0x4226bf(0x192)]);if(!_0x433918)return _0x512f0b;if(_0x1cf072[_0x4226bf(0x1a2)]===_0x4226bf(0x172)){let _0x2b2559={'x':_0x4da862['x']-_0x433918['x'],'y':_0x4da862['y']-_0x433918['y']};return _0x433918['x']=_0x4da862['x'],_0x433918['y']=_0x4da862['y'],_0x433918['in']&&={'x':_0x433918['in']['x']+_0x2b2559['x'],'y':_0x433918['in']['y']+_0x2b2559['y']},_0x433918[_0x4226bf(0x177)]&&={'x':_0x433918[_0x4226bf(0x177)]['x']+_0x2b2559['x'],'y':_0x433918[_0x4226bf(0x177)]['y']+_0x2b2559['y']},_0x512f0b;}return _0x433918[_0x1cf072[_0x4226bf(0x1a2)]]=_0x1bb78c(_0x4da862),_0x433918[_0x4226bf(0x19c)]===_0x4226bf(0x1dc)&&(_0x433918['pointType']=_0x4226bf(0x1a7)),_0x47eca7(_0x433918,_0x1cf072[_0x4226bf(0x1a2)]),_0x512f0b;}let _0x5094a4=1e-9;function _0x1fed24(_0x14a9d5){const _0x2c7cc4=_0x4b5f8d;let _0x570cdb=Math[_0x2c7cc4(0x1d1)](_0x14a9d5*0x2710)/0x2710;return Object['is'](_0x570cdb,-0x0)?'0':String(_0x570cdb);}function _0x5a172d(_0x274b1f){return _0x1fed24(_0x274b1f['x'])+'\x20'+_0x1fed24(_0x274b1f['y']);}function _0x1d3ccb(_0xd949c8,_0x3ccbd9){return{'x':_0xd949c8['x']-_0x3ccbd9['x'],'y':_0xd949c8['y']-_0x3ccbd9['y']};}function _0x1efd32(_0xc5e820,_0xcdeb68,_0xf9a4c1,_0x407fdd,_0x2fb836){let _0x5ef9d0=0x1-_0x2fb836;return{'x':_0x5ef9d0*_0x5ef9d0*_0x5ef9d0*_0xc5e820['x']+0x3*_0x5ef9d0*_0x5ef9d0*_0x2fb836*_0xcdeb68['x']+0x3*_0x5ef9d0*_0x2fb836*_0x2fb836*_0xf9a4c1['x']+_0x2fb836*_0x2fb836*_0x2fb836*_0x407fdd['x'],'y':_0x5ef9d0*_0x5ef9d0*_0x5ef9d0*_0xc5e820['y']+0x3*_0x5ef9d0*_0x5ef9d0*_0x2fb836*_0xcdeb68['y']+0x3*_0x5ef9d0*_0x2fb836*_0x2fb836*_0xf9a4c1['y']+_0x2fb836*_0x2fb836*_0x2fb836*_0x407fdd['y']};}function _0x16c304(_0x44671f,_0x563f0e,_0x413629,_0x46eeb5){const _0x22452d=_0x4b5f8d;let _0x2d6d46=-_0x44671f+0x3*_0x563f0e-0x3*_0x413629+_0x46eeb5,_0x50c843=0x3*_0x44671f-0x6*_0x563f0e+0x3*_0x413629,_0x7e5455=-0x3*_0x44671f+0x3*_0x563f0e,_0xfe759a=[];if(Math[_0x22452d(0x1bf)](_0x2d6d46)<_0x5094a4){if(Math['abs'](_0x50c843)<_0x5094a4)return _0xfe759a;let _0x4506eb=-_0x7e5455/(0x2*_0x50c843);return _0x4506eb>0x0&&_0x4506eb<0x1&&_0xfe759a[_0x22452d(0x1a9)](_0x4506eb),_0xfe759a;}let _0x4ebbc2=_0x50c843*_0x50c843-0x3*_0x2d6d46*_0x7e5455;if(_0x4ebbc2<0x0)return _0xfe759a;let _0x2a45bd=Math[_0x22452d(0x197)](Math[_0x22452d(0x19b)](0x0,_0x4ebbc2)),_0x514191=(-_0x50c843+_0x2a45bd)/(0x3*_0x2d6d46),_0x3542c9=(-_0x50c843-_0x2a45bd)/(0x3*_0x2d6d46);return _0x514191>0x0&&_0x514191<0x1&&_0xfe759a[_0x22452d(0x1a9)](_0x514191),_0x3542c9>0x0&&_0x3542c9<0x1&&Math['abs'](_0x3542c9-_0x514191)>_0x5094a4&&_0xfe759a['push'](_0x3542c9),_0xfe759a;}function _0x21e1d0(_0x3151a5,_0x2a4b0b,_0x116078,_0x537258,_0x4cfa7a){const _0x368557=_0x4b5f8d;_0x3151a5[_0x368557(0x1a9)](_0x2a4b0b,_0x4cfa7a),new Set([..._0x16c304(_0x2a4b0b['x'],_0x116078['x'],_0x537258['x'],_0x4cfa7a['x']),..._0x16c304(_0x2a4b0b['y'],_0x116078['y'],_0x537258['y'],_0x4cfa7a['y'])])[_0x368557(0x1a1)](_0x4b22c4=>{const _0x105742=_0x368557;_0x3151a5[_0x105742(0x1a9)](_0x1efd32(_0x2a4b0b,_0x116078,_0x537258,_0x4cfa7a,_0x4b22c4));});}function _0x4306b2(_0x3b0966){const _0x4542e9=_0x4b5f8d;let _0x112d0b=_0x3b0966[_0x4542e9(0x1cb)];if(_0x112d0b['length']<=0x1)return _0x112d0b;let _0x2356cc=[];for(let _0x1b65e0=0x1;_0x1b65e0<_0x112d0b[_0x4542e9(0x1c5)];_0x1b65e0++){let _0x59892b=_0x112d0b[_0x1b65e0-0x1],_0xd4cb79=_0x112d0b[_0x1b65e0];_0x21e1d0(_0x2356cc,_0x59892b,_0x59892b[_0x4542e9(0x177)]??_0x59892b,_0xd4cb79['in']??_0xd4cb79,_0xd4cb79);}if(_0x3b0966[_0x4542e9(0x185)]&&_0x112d0b[_0x4542e9(0x1c5)]>0x1){let _0x1bc067=_0x112d0b[_0x112d0b['length']-0x1],_0x343159=_0x112d0b[0x0];_0x21e1d0(_0x2356cc,_0x1bc067,_0x1bc067[_0x4542e9(0x177)]??_0x1bc067,_0x343159['in']??_0x343159,_0x343159);}return _0x2356cc;}function _0xb814f9(_0x4eee21){const _0x2e2920=_0x4b5f8d;let _0x55ae36=_0x4eee21['points'];if(_0x55ae36[_0x2e2920(0x1c5)]<=0x1)return _0x55ae36;let _0x3df9f1=[];for(let _0x291f02=0x0;_0x291f02<_0x55ae36['length']-0x1;_0x291f02++){let _0x49f23a=_0x55ae36[_0x291f02],_0x3e2b9b=_0x55ae36[_0x291f02+0x1],_0x5d4300=_0x55ae36[_0x291f02-0x1]??_0x49f23a,_0x43a4e0=_0x55ae36[_0x291f02+0x2]??_0x3e2b9b;_0x21e1d0(_0x3df9f1,_0x49f23a,{'x':_0x49f23a['x']+(_0x3e2b9b['x']-_0x5d4300['x'])/0x6,'y':_0x49f23a['y']+(_0x3e2b9b['y']-_0x5d4300['y'])/0x6},{'x':_0x3e2b9b['x']-(_0x43a4e0['x']-_0x49f23a['x'])/0x6,'y':_0x3e2b9b['y']-(_0x43a4e0['y']-_0x49f23a['y'])/0x6},_0x3e2b9b);}return _0x3df9f1;}function _0x2bd326(_0x56da9e){const _0x5a162d=_0x4b5f8d;return _0x56da9e[_0x5a162d(0x1a2)]===_0x5a162d(0x1bc)?_0x4306b2(_0x56da9e):_0xb814f9(_0x56da9e);}function _0xc3c344(_0x3c2498){const _0x49646c=_0x4b5f8d;let _0x2136a0=Math[_0x49646c(0x1d1)](_0x3c2498*0x2710)/0x2710;return Object['is'](_0x2136a0,-0x0)?0x0:_0x2136a0;}function _0x6c99a9(_0x2f24d6){const _0x4a272b=_0x4b5f8d;let _0x1caa82=_0x2bd326(_0x2f24d6);if(_0x1caa82[_0x4a272b(0x1c5)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x5dfbc7=Math[_0x4a272b(0x1c8)](..._0x1caa82[_0x4a272b(0x16b)](_0x3a7652=>_0x3a7652['x'])),_0x703fc5=Math[_0x4a272b(0x1c8)](..._0x1caa82[_0x4a272b(0x16b)](_0x541044=>_0x541044['y'])),_0x51d11a=Math[_0x4a272b(0x19b)](..._0x1caa82[_0x4a272b(0x16b)](_0x5dfc84=>_0x5dfc84['x'])),_0x52e309=Math[_0x4a272b(0x19b)](..._0x1caa82[_0x4a272b(0x16b)](_0x226193=>_0x226193['y']));return{'left':_0xc3c344(_0x5dfbc7),'top':_0xc3c344(_0x703fc5),'width':_0xc3c344(Math[_0x4a272b(0x19b)](0x1,_0x51d11a-_0x5dfbc7)),'height':_0xc3c344(Math['max'](0x1,_0x52e309-_0x703fc5))};}function _0x431d4b(_0x14dffb,_0x448f76){const _0x17948e=_0x4b5f8d;let _0x13d44b=_0x14dffb['anchors'];if(_0x13d44b['length']===0x0)return'';let _0x17686f=['M\x20'+_0x5a172d(_0x1d3ccb(_0x13d44b[0x0],_0x448f76))];for(let _0x1c72c=0x1;_0x1c72c<_0x13d44b[_0x17948e(0x1c5)];_0x1c72c++){let _0x2a8809=_0x13d44b[_0x1c72c-0x1],_0x2acf1d=_0x13d44b[_0x1c72c],_0x438203=_0x2a8809[_0x17948e(0x177)]??_0x2a8809,_0x2b7a29=_0x2acf1d['in']??_0x2acf1d;_0x17686f[_0x17948e(0x1a9)]('C\x20'+_0x5a172d(_0x1d3ccb(_0x438203,_0x448f76))+'\x20'+_0x5a172d(_0x1d3ccb(_0x2b7a29,_0x448f76))+'\x20'+_0x5a172d(_0x1d3ccb(_0x2acf1d,_0x448f76)));}if(_0x14dffb['closed']&&_0x13d44b[_0x17948e(0x1c5)]>0x1){let _0x5dffee=_0x13d44b[_0x13d44b[_0x17948e(0x1c5)]-0x1],_0x191f40=_0x13d44b[0x0],_0xe00553=_0x5dffee['out']??_0x5dffee,_0xc3c963=_0x191f40['in']??_0x191f40;_0x17686f[_0x17948e(0x1a9)]('C\x20'+_0x5a172d(_0x1d3ccb(_0xe00553,_0x448f76))+'\x20'+_0x5a172d(_0x1d3ccb(_0xc3c963,_0x448f76))+'\x20'+_0x5a172d(_0x1d3ccb(_0x191f40,_0x448f76))),_0x17686f['push']('Z');}return _0x17686f['join']('\x20');}function _0x697320(_0x5ddfe1,_0x15cec1){const _0x3878cb=_0x4b5f8d;let _0x13e095=_0x5ddfe1[_0x3878cb(0x186)][_0x3878cb(0x16b)](_0x9c73b2=>_0x1d3ccb(_0x9c73b2,_0x15cec1));if(_0x13e095['length']===0x0)return'';if(_0x13e095[_0x3878cb(0x1c5)]===0x1)return'M\x20'+_0x5a172d(_0x13e095[0x0]);let _0x2bf0f5=['M\x20'+_0x5a172d(_0x13e095[0x0])];for(let _0x4946d4=0x0;_0x4946d4<_0x13e095[_0x3878cb(0x1c5)]-0x1;_0x4946d4++){let _0x4b4e7c=_0x13e095[_0x4946d4],_0x7e37bf=_0x13e095[_0x4946d4+0x1],_0x2d14d8=_0x13e095[_0x4946d4-0x1]??_0x4b4e7c,_0x376618=_0x13e095[_0x4946d4+0x2]??_0x7e37bf,_0xc6f52c={'x':_0x4b4e7c['x']+(_0x7e37bf['x']-_0x2d14d8['x'])/0x6,'y':_0x4b4e7c['y']+(_0x7e37bf['y']-_0x2d14d8['y'])/0x6},_0x45b7cc={'x':_0x7e37bf['x']-(_0x376618['x']-_0x4b4e7c['x'])/0x6,'y':_0x7e37bf['y']-(_0x376618['y']-_0x4b4e7c['y'])/0x6};_0x2bf0f5[_0x3878cb(0x1a9)]('C\x20'+_0x5a172d(_0xc6f52c)+'\x20'+_0x5a172d(_0x45b7cc)+'\x20'+_0x5a172d(_0x7e37bf));}return _0x2bf0f5[_0x3878cb(0x18d)]('\x20');}function _0x27394e(_0x1fe347,_0xfdd277){const _0x2b74cd=_0x4b5f8d;return _0x1fe347[_0x2b74cd(0x1a2)]===_0x2b74cd(0x1bc)?_0x431d4b(_0x1fe347,_0xfdd277):_0x697320(_0x1fe347,_0xfdd277);}function _0x3fadd9(_0x2bf679,_0x1ddbf5){const _0x5c21ed=_0x4b5f8d;return _0x1ddbf5!=null&&_0x1ddbf5[_0x5c21ed(0x16a)]?_0x1ddbf5[_0x5c21ed(0x16a)]:_0x2bf679['kind']===_0x5c21ed(0x1bc)?_0x5c21ed(0x176):_0x2bf679[_0x5c21ed(0x16a)];}function _0x1a566b(_0x5f2ed1,_0x3f7cd5){const _0x18f00f=_0x4b5f8d;return(_0x3f7cd5==null?void 0x0:_0x3f7cd5[_0x18f00f(0x1b7)])===void 0x0?_0x5f2ed1[_0x18f00f(0x1a2)]===_0x18f00f(0x1bc)?0x2:_0x5f2ed1[_0x18f00f(0x1b7)]:_0x3f7cd5[_0x18f00f(0x1b7)];}function _0x363330(_0x5bbd95,_0x3c64cf){const _0x220686=_0x4b5f8d;return(_0x3c64cf==null?void 0x0:_0x3c64cf['opacity'])===void 0x0?_0x5bbd95[_0x220686(0x1a2)]==='pen'?void 0x0:_0x5bbd95[_0x220686(0x19f)]:_0x3c64cf[_0x220686(0x19f)];}function _0x4649c2(_0x3463bd,_0x4851b7){const _0x88463f=_0x4b5f8d;let _0x39735b=_0x6c99a9(_0x3463bd),_0xd4842f=_0x27394e(_0x3463bd,{'x':_0x39735b[_0x88463f(0x1dd)],'y':_0x39735b[_0x88463f(0x187)]}),_0x53882e=_0x3463bd['kind']==='pen'&&_0x3463bd[_0x88463f(0x185)],_0x16b896=_0x4851b7==null?void 0x0:_0x4851b7[_0x88463f(0x1a5)];return{'shapeType':_0x44e042[_0x88463f(0x1d9)][_0x88463f(0x17f)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x39735b['width'],'h':_0x39735b['height'],'fill':_0x53882e?_0x88463f(0x18f):'none','stroke':!0x0,'data':_0xd4842f,'dataArray':_0x5e57b1(_0x3463bd,{'x':_0x39735b['left'],'y':_0x39735b['top']})}]},'fill':_0x53882e&&_0x16b896?{'color':_0x16b896,'fillType':_0x44e042[_0x88463f(0x18b)][_0x88463f(0x1bd)]}:{'fillType':_0x44e042[_0x88463f(0x18b)][_0x88463f(0x1b5)]},'stroke':{'color':_0x3fadd9(_0x3463bd,_0x4851b7),'width':_0x1a566b(_0x3463bd,_0x4851b7),'opacity':_0x363330(_0x3463bd,_0x4851b7),'lineStrokeType':_0x44e042[_0x88463f(0x16f)][_0x88463f(0x1ab)],'capType':_0x44e042[_0x88463f(0x184)][_0x88463f(0x1db)],'lineJoinType':_0x44e042[_0x88463f(0x1c0)]['Round']}};}function _0xbf94c7(_0x1cc55c,_0x5edc39){return{'x':_0x1cc55c['x']-_0x5edc39['x'],'y':_0x1cc55c['y']-_0x5edc39['y']};}function _0x5e57b1(_0x549bf5,_0x4070f4){const _0x55f657=_0x4b5f8d;if(_0x549bf5[_0x55f657(0x1a2)]===_0x55f657(0x1bc)){let _0x485c61=_0x549bf5[_0x55f657(0x1cb)];if(_0x485c61[_0x55f657(0x1c5)]===0x0)return[];let _0xf9cc22=_0xbf94c7(_0x485c61[0x0],_0x4070f4),_0x1633c1=[{'command':'M','points':[_0xf9cc22['x'],_0xf9cc22['y']]}];for(let _0x1579a3=0x1;_0x1579a3<_0x485c61['length'];_0x1579a3++){let _0x358c6d=_0x485c61[_0x1579a3-0x1],_0x184a2=_0x485c61[_0x1579a3],_0x40d514=_0xbf94c7(_0x358c6d['out']??_0x358c6d,_0x4070f4),_0x115d1d=_0xbf94c7(_0x184a2['in']??_0x184a2,_0x4070f4),_0x2083c8=_0xbf94c7(_0x184a2,_0x4070f4);_0x1633c1[_0x55f657(0x1a9)]({'command':'C','points':[_0x40d514['x'],_0x40d514['y'],_0x115d1d['x'],_0x115d1d['y'],_0x2083c8['x'],_0x2083c8['y']]});}if(_0x549bf5['closed']&&_0x485c61[_0x55f657(0x1c5)]>0x1){let _0x2d0e72=_0x485c61[_0x485c61[_0x55f657(0x1c5)]-0x1],_0x4e554a=_0x485c61[0x0],_0xab9c30=_0xbf94c7(_0x2d0e72[_0x55f657(0x177)]??_0x2d0e72,_0x4070f4),_0x35ff13=_0xbf94c7(_0x4e554a['in']??_0x4e554a,_0x4070f4),_0x4dc799=_0xbf94c7(_0x4e554a,_0x4070f4);_0x1633c1[_0x55f657(0x1a9)]({'command':'C','points':[_0xab9c30['x'],_0xab9c30['y'],_0x35ff13['x'],_0x35ff13['y'],_0x4dc799['x'],_0x4dc799['y']]}),_0x1633c1['push']({'command':'z','points':[]});}return _0x1633c1;}let _0x4d4e4e=_0x549bf5['points']['map'](_0x2311ef=>_0xbf94c7(_0x2311ef,_0x4070f4));if(_0x4d4e4e[_0x55f657(0x1c5)]===0x0)return[];let _0x3c6b4a=[{'command':'M','points':[_0x4d4e4e[0x0]['x'],_0x4d4e4e[0x0]['y']]}];for(let _0xdfee90=0x0;_0xdfee90<_0x4d4e4e['length']-0x1;_0xdfee90++){let _0x555f2d=_0x4d4e4e[_0xdfee90],_0x343aa6=_0x4d4e4e[_0xdfee90+0x1],_0x3d4a41=_0x4d4e4e[_0xdfee90-0x1]??_0x555f2d,_0x27a5ed=_0x4d4e4e[_0xdfee90+0x2]??_0x343aa6,_0x408e9b={'x':_0x555f2d['x']+(_0x343aa6['x']-_0x3d4a41['x'])/0x6,'y':_0x555f2d['y']+(_0x343aa6['y']-_0x3d4a41['y'])/0x6},_0xd14de={'x':_0x343aa6['x']-(_0x27a5ed['x']-_0x555f2d['x'])/0x6,'y':_0x343aa6['y']-(_0x27a5ed['y']-_0x555f2d['y'])/0x6};_0x3c6b4a[_0x55f657(0x1a9)]({'command':'C','points':[_0x408e9b['x'],_0x408e9b['y'],_0xd14de['x'],_0xd14de['y'],_0x343aa6['x'],_0x343aa6['y']]});}return _0x3c6b4a;}function _0x80b26c(_0x1c4ef2){const _0x304a08=_0x4b5f8d;let {model:_0x59ae86,sourceModel:_0x35824d=_0x59ae86,style:_0x2a1f2e}=_0x1c4ef2,_0x124b62=_0x1c4ef2[_0x304a08(0x18c)]??_0x59ae86[_0x304a08(0x1a2)],_0x2ccabc=_0x6c99a9(_0x59ae86),_0x2f2499=_0x59ae86[_0x304a08(0x1a2)]===_0x304a08(0x1bc)&&_0x124b62!==_0x304a08(0x1bc)?_0x59ae86:void 0x0;return{'transform':{..._0x2ccabc,'rotation':0x0},'shapeData':_0x4649c2(_0x59ae86,_0x2a1f2e),'ink':{'version':0x1,'tool':_0x124b62,'sourceModel':_0x35824d,..._0x2f2499?{'editModel':_0x2f2499}:{},'normalizedBounds':_0x2ccabc}};}var _0x28c0f4=_0x4b5f8d(0x1d5),_0x46cfa3=_0x4b5f8d(0x1a0);function _0x110de8(_0x40f14d){'@babel/helpers - typeof';const _0x11ee67=_0x4b5f8d;return _0x110de8=typeof Symbol==_0x11ee67(0x1c7)&&typeof Symbol[_0x11ee67(0x17a)]==_0x11ee67(0x1da)?function(_0x51ab9b){return typeof _0x51ab9b;}:function(_0x5f4651){const _0xc4dbd=_0x11ee67;return _0x5f4651&&typeof Symbol==_0xc4dbd(0x1c7)&&_0x5f4651[_0xc4dbd(0x1cf)]===Symbol&&_0x5f4651!==Symbol[_0xc4dbd(0x198)]?_0xc4dbd(0x1da):typeof _0x5f4651;},_0x110de8(_0x40f14d);}function _0x2a47df(_0x3476d1,_0x352984){const _0x3b5d2e=_0x4b5f8d;if(_0x110de8(_0x3476d1)!=_0x3b5d2e(0x183)||!_0x3476d1)return _0x3476d1;var _0x1f010a=_0x3476d1[Symbol[_0x3b5d2e(0x190)]];if(_0x1f010a!==void 0x0){var _0x501369=_0x1f010a[_0x3b5d2e(0x1ca)](_0x3476d1,_0x352984||_0x3b5d2e(0x1d3));if(_0x110de8(_0x501369)!=_0x3b5d2e(0x183))return _0x501369;throw TypeError(_0x3b5d2e(0x1a3));}return(_0x352984===_0x3b5d2e(0x19e)?String:Number)(_0x3476d1);}function _0x5cb14c(_0x56edd5){const _0x47d468=_0x4b5f8d;var _0x267daa=_0x2a47df(_0x56edd5,'string');return _0x110de8(_0x267daa)==_0x47d468(0x1da)?_0x267daa:_0x267daa+'';}function _0x2f841d(_0x2a7384,_0x3a1fac,_0x24bec3){const _0x4fd01e=_0x4b5f8d;return(_0x3a1fac=_0x5cb14c(_0x3a1fac))in _0x2a7384?Object[_0x4fd01e(0x1a6)](_0x2a7384,_0x3a1fac,{'value':_0x24bec3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2a7384[_0x3a1fac]=_0x24bec3,_0x2a7384;}let _0x11bd0f=(0x0,_0x11bd66['createIdentifier'])(_0x4b5f8d(0x1b1));var _0x38c2ac=class{constructor(){const _0x327668=_0x4b5f8d;_0x2f841d(this,_0x327668(0x1e3),[]);}['registerAdapter'](_0xea2b33){const _0x23e4e8=_0x4b5f8d;return this[_0x23e4e8(0x1e3)][_0x23e4e8(0x1a9)](_0xea2b33),(0x0,_0x11bd66[_0x23e4e8(0x1c4)])(()=>{const _0x16f809=_0x23e4e8;let _0x30d46c=this[_0x16f809(0x1e3)][_0x16f809(0x193)](_0xea2b33);_0x30d46c>=0x0&&this['_adapters'][_0x16f809(0x171)](_0x30d46c,0x1);});}['beginInkMode'](_0x24c626){const _0xd884c3=_0x4b5f8d;for(let _0x390223 of this[_0xd884c3(0x1e3)])if(_0x390223[_0xd884c3(0x1df)](_0x24c626))return!0x0;return!0x1;}async[_0x4b5f8d(0x1e2)](_0x4d8e76){const _0x33dc3e=_0x4b5f8d;for(let _0x221fcd of this[_0x33dc3e(0x1e3)])if(_0x221fcd[_0x33dc3e(0x1e2)]&&await _0x221fcd['createCustomShape'](_0x4d8e76))return!0x0;return!0x1;}};let _0x3e73f3={'id':_0x4b5f8d(0x174),'type':_0x11bd66['CommandType'][_0x4b5f8d(0x1cd)],'handler':(_0x2022ad,_0x142f62)=>_0x142f62?_0x2022ad[_0x4b5f8d(0x1b3)](_0x11bd0f)[_0x4b5f8d(0x1df)](_0x142f62):!0x1},_0x15ebdb={};function _0xc59892(_0x405f8f,_0x1a3afd){return function(_0x7552f0,_0x21e5c3){_0x1a3afd(_0x7552f0,_0x21e5c3,_0x405f8f);};}function _0x1b967c(_0x42c250,_0x54be9a,_0x5a4153,_0x2dcf1b){const _0x1bf93f=_0x4b5f8d;var _0xdb9d2f=arguments[_0x1bf93f(0x1c5)],_0x17a43d=_0xdb9d2f<0x3?_0x54be9a:_0x2dcf1b===null?_0x2dcf1b=Object['getOwnPropertyDescriptor'](_0x54be9a,_0x5a4153):_0x2dcf1b,_0x39269c;if(typeof Reflect==_0x1bf93f(0x183)&&typeof Reflect['decorate']==_0x1bf93f(0x1c7))_0x17a43d=Reflect[_0x1bf93f(0x19a)](_0x42c250,_0x54be9a,_0x5a4153,_0x2dcf1b);else{for(var _0x30ca84=_0x42c250[_0x1bf93f(0x1c5)]-0x1;_0x30ca84>=0x0;_0x30ca84--)(_0x39269c=_0x42c250[_0x30ca84])&&(_0x17a43d=(_0xdb9d2f<0x3?_0x39269c(_0x17a43d):_0xdb9d2f>0x3?_0x39269c(_0x54be9a,_0x5a4153,_0x17a43d):_0x39269c(_0x54be9a,_0x5a4153))||_0x17a43d);}return _0xdb9d2f>0x3&&_0x17a43d&&Object[_0x1bf93f(0x1a6)](_0x54be9a,_0x5a4153,_0x17a43d),_0x17a43d;}let _0x471dfb=class extends _0x11bd66['Plugin']{constructor(_0x3b6979=_0x15ebdb,_0x15ac70,_0x43b37a,_0x88cd30){const _0x4f8a11=_0x4b5f8d;super(),this[_0x4f8a11(0x19d)]=_0x3b6979,this[_0x4f8a11(0x1d8)]=_0x15ac70,this['_commandService']=_0x43b37a,this['_configService']=_0x88cd30;let {..._0x1f709d}=(0x0,_0x11bd66['merge'])({},_0x15ebdb,this['_config']);this[_0x4f8a11(0x168)]['setConfig']('ink.config',_0x1f709d);}[_0x4b5f8d(0x1af)](){const _0x1ba45a=_0x4b5f8d;[[_0x11bd0f,{'useClass':_0x38c2ac}]][_0x1ba45a(0x1a1)](_0xe2bbf5=>this[_0x1ba45a(0x1d8)]['add'](_0xe2bbf5)),this[_0x1ba45a(0x196)](this[_0x1ba45a(0x189)]['registerCommand'](_0x3e73f3));}};_0x2f841d(_0x471dfb,'pluginName',_0x4b5f8d(0x1de)),_0x2f841d(_0x471dfb,_0x4b5f8d(0x1e0),_0x28c0f4),_0x2f841d(_0x471dfb,_0x4b5f8d(0x1b4),_0x46cfa3),_0x2f841d(_0x471dfb,'type',_0x11bd66[_0x4b5f8d(0x1ce)]['UNIVER_UNKNOWN']),_0x471dfb=_0x1b967c([(0x0,_0x11bd66[_0x4b5f8d(0x191)])(_0x298c72[_0x4b5f8d(0x170)]),_0xc59892(0x1,(0x0,_0x11bd66['Inject'])(_0x11bd66[_0x4b5f8d(0x17c)])),_0xc59892(0x2,_0x11bd66[_0x4b5f8d(0x180)]),_0xc59892(0x3,_0x11bd66[_0x4b5f8d(0x1d4)])],_0x471dfb),_0x5199c0[_0x4b5f8d(0x1b6)]=_0x11bd0f,Object['defineProperty'](_0x5199c0,_0x4b5f8d(0x181),{'enumerable':!0x0,'get':function(){return _0x471dfb;}}),_0x5199c0[_0x4b5f8d(0x1c9)]=_0x80b26c,_0x5199c0[_0x4b5f8d(0x1c3)]=_0x372455,_0x5199c0[_0x4b5f8d(0x175)]=_0x1fab29,_0x5199c0[_0x4b5f8d(0x17d)]=_0x1e3fda,_0x5199c0['findClosestInkPenHandle']=_0x6ab892,_0x5199c0[_0x4b5f8d(0x18a)]=_0x591ccc,_0x5199c0['getInkModelBounds']=_0x6c99a9,_0x5199c0[_0x4b5f8d(0x1aa)]=_0x15af0b,_0x5199c0['insertInkPenAnchorAt']=_0xe07201,_0x5199c0['isInkPenHandleVisible']=_0x2084de,_0x5199c0['moveInkPenAnchorPoint']=_0x4c35c9,_0x5199c0[_0x4b5f8d(0x173)]=_0x13f1a2;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/ink",
3
- "version": "1.0.4",
3
+ "version": "1.2.0",
4
4
  "private": false,
5
5
  "description": "Reusable ink model and geometry integration for Univer.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -58,15 +58,15 @@
58
58
  "lib"
59
59
  ],
60
60
  "dependencies": {
61
- "@univerjs-pro/boards": "1.0.4",
62
- "@univerjs-pro/engine-shape": "1.0.4",
63
- "@univerjs-pro/license": "1.0.4",
64
- "@univerjs/core": "1.0.4"
61
+ "@univerjs-pro/boards": "1.2.0",
62
+ "@univerjs-pro/engine-shape": "1.2.0",
63
+ "@univerjs-pro/license": "1.2.0",
64
+ "@univerjs/core": "1.2.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@univerjs-infra/shared": "1.0.4",
67
+ "@univerjs-infra/shared": "1.2.0",
68
68
  "typescript": "^6.0.3",
69
- "vitest": "^5.0.0"
69
+ "vitest": "^5.0.4"
70
70
  },
71
71
  "scripts": {
72
72
  "test": "vitest run",