@univerjs-pro/ink 1.0.0-rc.0 → 1.0.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 _0x5e2b7f=_0x40c8;(function(_0xd3435f,_0x32ec19){const _0x3a7558=_0x40c8,_0x5e3e9d=_0xd3435f();while(!![]){try{const _0x45ef0a=parseInt(_0x3a7558(0xa5))/0x1*(parseInt(_0x3a7558(0xc4))/0x2)+parseInt(_0x3a7558(0x91))/0x3*(parseInt(_0x3a7558(0xad))/0x4)+parseInt(_0x3a7558(0xbe))/0x5+-parseInt(_0x3a7558(0xaf))/0x6*(parseInt(_0x3a7558(0x88))/0x7)+parseInt(_0x3a7558(0x8f))/0x8+-parseInt(_0x3a7558(0xa4))/0x9+-parseInt(_0x3a7558(0x97))/0xa*(-parseInt(_0x3a7558(0xae))/0xb);if(_0x45ef0a===_0x32ec19)break;else _0x5e3e9d['push'](_0x5e3e9d['shift']());}catch(_0x66960d){_0x5e3e9d['push'](_0x5e3e9d['shift']());}}}(_0x1bb5,0x4c0c3),Object[_0x5e2b7f(0xbc)](exports,Symbol[_0x5e2b7f(0x93)],{'value':_0x5e2b7f(0xb0)}));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');function _0x40c8(_0x5ecf33,_0x5caff8){_0x5ecf33=_0x5ecf33-0x87;const _0x1bb579=_0x1bb5();let _0x40c8c1=_0x1bb579[_0x5ecf33];return _0x40c8c1;}var a=class extends t['FBoard']{[_0x5e2b7f(0x96)](_0x446546){const _0x1ea0cb=_0x5e2b7f;let _0x251b69=o(_0x446546);return _0x251b69&&this['_addElement'](_0x251b69,{'insertIndex':_0x446546[_0x1ea0cb(0x9a)]})?_0x251b69:null;}[_0x5e2b7f(0x98)](){const _0x1a21b8=_0x5e2b7f;return this[_0x1a21b8(0xa7)]({'elementType':e[_0x1a21b8(0xac)][_0x1a21b8(0xc5)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x1a21b8(0xb6)](f);}};function _0x1bb5(){const _0x23fdbe=['deepClone','filter','pen','tool','extend','BoardInkPointType','BoardInkTool','defineProperty','points','1035530QMikyg','highlighter','width','every','model','anchor','26aEcwxW','Shape','isArray','465017KrKewb','BoardInkHandleKind','laneId','has','ink','type','out','1284224NtzGVm','object','1034922Ylcoeo','pressure','toStringTag','brush','free','insertInk','1030MxBkLi','getInks','length','insertIndex','FBoard','smooth','generateRandomId','trim','symmetric','isFinite','parentId','buildInkCustomShapePayload','version','3930804zbefDz','9935rrEOwk','closed','findElements','Tools','sourceModel','FEnum','custom','BoardElementType','4eGHxUG','4202KdZJeL','12TghxAI','Module','shapeData','transform','opacity','anchors'];_0x1bb5=function(){return _0x23fdbe;};return _0x1bb5();}function o(_0x23be5b,_0xad5a2a){const _0x84307=_0x5e2b7f;if(!c(_0x23be5b['model'])||_0x23be5b[_0x84307(0xa9)]!==void 0x0&&!c(_0x23be5b[_0x84307(0xa9)])||!l(_0x23be5b['style']))return null;let _0x5b1220=_0x23be5b[_0x84307(0xa1)]??(_0xad5a2a==null?void 0x0:_0xad5a2a[_0x84307(0xa1)]),_0x57b947=r[_0x84307(0xa8)][_0x84307(0xb5)](_0x23be5b[_0x84307(0xc2)]),_0x209980=(0x0,n[_0x84307(0xa2)])({'model':_0x57b947,'style':_0x23be5b['style'],'tool':_0x23be5b[_0x84307(0xb8)],'sourceModel':_0x23be5b[_0x84307(0xa9)]?r[_0x84307(0xa8)][_0x84307(0xb5)](_0x23be5b['sourceModel']):_0x57b947}),_0x4864de=u(_0xad5a2a==null?void 0x0:_0xad5a2a[_0x84307(0xab)]);return{'id':(_0xad5a2a==null?void 0x0:_0xad5a2a['id'])??_0x23be5b['id']??(0x0,r[_0x84307(0x9d)])(0x6),'type':e[_0x84307(0xac)]['Shape'],'transform':_0x209980[_0x84307(0xb2)],'shapeData':_0x209980[_0x84307(0xb1)],'parentId':_0x5b1220??void 0x0,'laneId':_0x23be5b[_0x84307(0x8a)]===void 0x0?_0xad5a2a==null?void 0x0:_0xad5a2a[_0x84307(0x8a)]:_0x23be5b[_0x84307(0x8a)],'custom':{..._0x4864de,'ink':_0x209980[_0x84307(0x8c)]}};}function s(_0x22af9c){const _0x5e60bc=_0x5e2b7f;return Number[_0x5e60bc(0xa0)](_0x22af9c['x'])&&Number['isFinite'](_0x22af9c['y']);}function c(_0x3f2309){const _0x4683b0=_0x5e2b7f;if(_0x3f2309['kind']===_0x4683b0(0xb7)){let _0x4191b4=new Set();return _0x3f2309[_0x4683b0(0xb4)][_0x4683b0(0x99)]>=(_0x3f2309[_0x4683b0(0xa6)]?0x3:0x2)&&_0x3f2309['anchors']['every'](_0x8346dc=>{const _0x44ade6=_0x4683b0;let _0x125756=_0x8346dc['id'][_0x44ade6(0x9e)]()[_0x44ade6(0x99)]>0x0&&!_0x4191b4[_0x44ade6(0x8b)](_0x8346dc['id'])&&s(_0x8346dc)&&(!_0x8346dc['in']||s(_0x8346dc['in']))&&(!_0x8346dc[_0x44ade6(0x8e)]||s(_0x8346dc['out']));return _0x4191b4['add'](_0x8346dc['id']),_0x125756;});}return _0x3f2309[_0x4683b0(0xbd)][_0x4683b0(0x99)]>=0x2&&_0x3f2309['points'][_0x4683b0(0xc1)](_0xf1afc7=>s(_0xf1afc7)&&Number[_0x4683b0(0xa0)](_0xf1afc7['t'])&&(_0xf1afc7[_0x4683b0(0x92)]===void 0x0||Number[_0x4683b0(0xa0)](_0xf1afc7[_0x4683b0(0x92)])))&&Number[_0x4683b0(0xa0)](_0x3f2309[_0x4683b0(0xc0)])&&_0x3f2309[_0x4683b0(0xc0)]>0x0&&Number[_0x4683b0(0xa0)](_0x3f2309[_0x4683b0(0xb3)])&&_0x3f2309['opacity']>=0x0&&_0x3f2309['opacity']<=0x1;}function l(_0xaee09f){const _0xc7e960=_0x5e2b7f;return _0xaee09f===void 0x0||(_0xaee09f[_0xc7e960(0xc0)]===void 0x0||Number[_0xc7e960(0xa0)](_0xaee09f['width'])&&_0xaee09f[_0xc7e960(0xc0)]>0x0)&&(_0xaee09f[_0xc7e960(0xb3)]===void 0x0||Number[_0xc7e960(0xa0)](_0xaee09f[_0xc7e960(0xb3)])&&_0xaee09f[_0xc7e960(0xb3)]>=0x0&&_0xaee09f[_0xc7e960(0xb3)]<=0x1);}function u(_0x2cc503){const _0x5bc97f=_0x5e2b7f;return _0x2cc503&&typeof _0x2cc503==_0x5bc97f(0x90)&&!Array[_0x5bc97f(0x87)](_0x2cc503)?_0x2cc503:{};}function d(_0x4e9cdd){const _0x1b3627=_0x5e2b7f;let _0x55a0ad=u(_0x4e9cdd[_0x1b3627(0xab)])[_0x1b3627(0x8c)];if(!_0x55a0ad||typeof _0x55a0ad!='object'||Array['isArray'](_0x55a0ad))return null;let _0x480da8=_0x55a0ad;return _0x480da8[_0x1b3627(0xa3)]===0x1&&_0x480da8['sourceModel']&&typeof _0x480da8[_0x1b3627(0xa9)]=='object'?_0x480da8:null;}function f(_0x2b1332){const _0x3dab7b=_0x5e2b7f;return _0x2b1332[_0x3dab7b(0x8d)]===e[_0x3dab7b(0xac)][_0x3dab7b(0xc5)]&&!!d(_0x2b1332);}t[_0x5e2b7f(0x9b)][_0x5e2b7f(0xb9)](a);const p={'Pen':_0x5e2b7f(0xb7),'Brush':_0x5e2b7f(0x94),'Highlighter':_0x5e2b7f(0xbf)},m={'Corner':'corner','Smooth':_0x5e2b7f(0x9c),'Symmetric':_0x5e2b7f(0x9f),'Free':_0x5e2b7f(0x95)},h={'Anchor':_0x5e2b7f(0xc3),'In':'in','Out':_0x5e2b7f(0x8e)};var g=class extends i[_0x5e2b7f(0xaa)]{get['BoardInkTool'](){return p;}get[_0x5e2b7f(0xba)](){return m;}get[_0x5e2b7f(0x89)](){return h;}};i[_0x5e2b7f(0xaa)][_0x5e2b7f(0xb9)](g),exports['BoardInkHandleKind']=h,exports[_0x5e2b7f(0xba)]=m,exports[_0x5e2b7f(0xbb)]=p;
1
+ function _0x3c69(_0x84ae97,_0x3e1409){_0x84ae97=_0x84ae97-0x65;const _0x19378a=_0x1937();let _0x3c691c=_0x19378a[_0x84ae97];return _0x3c691c;}const _0x15c691=_0x3c69;(function(_0x3f6835,_0xfbf65f){const _0x1e163c=_0x3c69,_0x21b90b=_0x3f6835();while(!![]){try{const _0x498380=parseInt(_0x1e163c(0x6b))/0x1+-parseInt(_0x1e163c(0x94))/0x2+parseInt(_0x1e163c(0x7c))/0x3*(parseInt(_0x1e163c(0x71))/0x4)+parseInt(_0x1e163c(0xa0))/0x5*(parseInt(_0x1e163c(0x7d))/0x6)+parseInt(_0x1e163c(0x95))/0x7*(parseInt(_0x1e163c(0x8f))/0x8)+-parseInt(_0x1e163c(0x7f))/0x9+-parseInt(_0x1e163c(0x6a))/0xa*(parseInt(_0x1e163c(0x8d))/0xb);if(_0x498380===_0xfbf65f)break;else _0x21b90b['push'](_0x21b90b['shift']());}catch(_0x3268a4){_0x21b90b['push'](_0x21b90b['shift']());}}}(_0x1937,0x84d93),Object[_0x15c691(0x83)](exports,Symbol[_0x15c691(0x69)],{'value':'Module'}));let e=require('@univerjs-pro/boards'),t=require('@univerjs-pro/boards/facade'),n=require('@univerjs-pro/ink'),r=require('@univerjs/core'),i=require('@univerjs/core/facade');var a=class extends t[_0x15c691(0x6e)]{[_0x15c691(0x9f)](_0x2fcf8e){const _0x513a7a=_0x15c691;let _0x4ca552=o(_0x2fcf8e);return _0x4ca552&&this[_0x513a7a(0x6d)](_0x4ca552,{'insertIndex':_0x2fcf8e[_0x513a7a(0x7a)]})?_0x4ca552:null;}[_0x15c691(0x85)](){const _0x55cffd=_0x15c691;return this[_0x55cffd(0x67)]({'elementType':e[_0x55cffd(0x90)][_0x55cffd(0x78)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x55cffd(0x91)](f);}};function o(_0x93b508,_0x4f31e5){const _0x2ab5c4=_0x15c691;if(!c(_0x93b508[_0x2ab5c4(0x77)])||_0x93b508['sourceModel']!==void 0x0&&!c(_0x93b508[_0x2ab5c4(0x99)])||!l(_0x93b508[_0x2ab5c4(0x87)]))return null;let _0x37dded=_0x93b508[_0x2ab5c4(0x70)]??(_0x4f31e5==null?void 0x0:_0x4f31e5[_0x2ab5c4(0x70)]),_0x179fed=r[_0x2ab5c4(0xa2)][_0x2ab5c4(0x72)](_0x93b508['model']),_0x3a5088=(0x0,n[_0x2ab5c4(0x84)])({'model':_0x179fed,'style':_0x93b508[_0x2ab5c4(0x87)],'tool':_0x93b508['tool'],'sourceModel':_0x93b508['sourceModel']?r[_0x2ab5c4(0xa2)][_0x2ab5c4(0x72)](_0x93b508[_0x2ab5c4(0x99)]):_0x179fed}),_0x5d2e37=u(_0x4f31e5==null?void 0x0:_0x4f31e5['custom']);return{'id':(_0x4f31e5==null?void 0x0:_0x4f31e5['id'])??_0x93b508['id']??(0x0,r[_0x2ab5c4(0x9c)])(0x6),'type':e[_0x2ab5c4(0x90)][_0x2ab5c4(0x78)],'transform':_0x3a5088['transform'],'shapeData':_0x3a5088[_0x2ab5c4(0x66)],'parentId':_0x37dded??void 0x0,'laneId':_0x93b508[_0x2ab5c4(0x79)]===void 0x0?_0x4f31e5==null?void 0x0:_0x4f31e5[_0x2ab5c4(0x79)]:_0x93b508[_0x2ab5c4(0x79)],'custom':{..._0x5d2e37,'ink':_0x3a5088[_0x2ab5c4(0x98)]}};}function s(_0x19612d){const _0x352c93=_0x15c691;return Number[_0x352c93(0x93)](_0x19612d['x'])&&Number[_0x352c93(0x93)](_0x19612d['y']);}function c(_0x150993){const _0x188d73=_0x15c691;if(_0x150993['kind']===_0x188d73(0x8c)){let _0xfd7916=new Set();return _0x150993[_0x188d73(0x75)][_0x188d73(0x88)]>=(_0x150993[_0x188d73(0x7b)]?0x3:0x2)&&_0x150993[_0x188d73(0x75)][_0x188d73(0x6c)](_0xa21b9d=>{const _0x43150e=_0x188d73;let _0x33e92b=_0xa21b9d['id'][_0x43150e(0x9b)]()[_0x43150e(0x88)]>0x0&&!_0xfd7916[_0x43150e(0x96)](_0xa21b9d['id'])&&s(_0xa21b9d)&&(!_0xa21b9d['in']||s(_0xa21b9d['in']))&&(!_0xa21b9d['out']||s(_0xa21b9d[_0x43150e(0x73)]));return _0xfd7916[_0x43150e(0x8e)](_0xa21b9d['id']),_0x33e92b;});}return _0x150993[_0x188d73(0x9a)][_0x188d73(0x88)]>=0x2&&_0x150993['points'][_0x188d73(0x6c)](_0x264022=>s(_0x264022)&&Number[_0x188d73(0x93)](_0x264022['t'])&&(_0x264022[_0x188d73(0x65)]===void 0x0||Number[_0x188d73(0x93)](_0x264022[_0x188d73(0x65)])))&&Number[_0x188d73(0x93)](_0x150993[_0x188d73(0x6f)])&&_0x150993[_0x188d73(0x6f)]>0x0&&Number[_0x188d73(0x93)](_0x150993['opacity'])&&_0x150993['opacity']>=0x0&&_0x150993[_0x188d73(0x7e)]<=0x1;}function l(_0x16015d){const _0x4cea29=_0x15c691;return _0x16015d===void 0x0||(_0x16015d[_0x4cea29(0x6f)]===void 0x0||Number[_0x4cea29(0x93)](_0x16015d[_0x4cea29(0x6f)])&&_0x16015d[_0x4cea29(0x6f)]>0x0)&&(_0x16015d[_0x4cea29(0x7e)]===void 0x0||Number['isFinite'](_0x16015d[_0x4cea29(0x7e)])&&_0x16015d[_0x4cea29(0x7e)]>=0x0&&_0x16015d[_0x4cea29(0x7e)]<=0x1);}function u(_0x4d63bd){const _0x217044=_0x15c691;return _0x4d63bd&&typeof _0x4d63bd==_0x217044(0x82)&&!Array[_0x217044(0x86)](_0x4d63bd)?_0x4d63bd:{};}function d(_0x476a61){const _0x5cb4ee=_0x15c691;let _0x29aa1e=u(_0x476a61['custom'])[_0x5cb4ee(0x98)];if(!_0x29aa1e||typeof _0x29aa1e!=_0x5cb4ee(0x82)||Array[_0x5cb4ee(0x86)](_0x29aa1e))return null;let _0x49ed65=_0x29aa1e;return _0x49ed65[_0x5cb4ee(0x97)]===0x1&&_0x49ed65[_0x5cb4ee(0x99)]&&typeof _0x49ed65['sourceModel']=='object'?_0x49ed65:null;}function f(_0x202912){const _0x2f9cd0=_0x15c691;return _0x202912[_0x2f9cd0(0x81)]===e[_0x2f9cd0(0x90)][_0x2f9cd0(0x78)]&&!!d(_0x202912);}t[_0x15c691(0x6e)][_0x15c691(0x8a)](a);const p={'Pen':_0x15c691(0x8c),'Brush':_0x15c691(0x92),'Highlighter':_0x15c691(0x80)},m={'Corner':'corner','Smooth':_0x15c691(0x9e),'Symmetric':_0x15c691(0x76),'Free':_0x15c691(0x9d)},h={'Anchor':_0x15c691(0x8b),'In':'in','Out':_0x15c691(0x73)};function _0x1937(){const _0x2f8a8d=['shapeData','findElements','FEnum','toStringTag','2309820hDGhUo','942504XNelIS','every','_addElement','FBoard','width','parentId','260hZNtnv','deepClone','out','BoardInkTool','anchors','symmetric','model','Shape','laneId','insertIndex','closed','7260WPfSen','8922tNeBxH','opacity','8415036MRLfoX','highlighter','type','object','defineProperty','buildInkCustomShapePayload','getInks','isArray','style','length','BoardInkPointType','extend','anchor','pen','11QEIflU','add','8FQitOT','BoardElementType','filter','brush','isFinite','739938OxuDBj','377279VeVnDo','has','version','ink','sourceModel','points','trim','generateRandomId','free','smooth','insertInk','3115SBgCvW','BoardInkHandleKind','Tools','pressure'];_0x1937=function(){return _0x2f8a8d;};return _0x1937();}var g=class extends i['FEnum']{get[_0x15c691(0x74)](){return p;}get[_0x15c691(0x89)](){return m;}get[_0x15c691(0xa1)](){return h;}};i[_0x15c691(0x68)]['extend'](g),exports[_0x15c691(0xa1)]=h,exports[_0x15c691(0x89)]=m,exports[_0x15c691(0x74)]=p;
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3e7182=_0x4f05;(function(_0x59ade,_0x75a211){const _0x5bb0af=_0x4f05,_0x475bc5=_0x59ade();while(!![]){try{const _0xce48d9=-parseInt(_0x5bb0af(0x194))/0x1*(-parseInt(_0x5bb0af(0x1be))/0x2)+parseInt(_0x5bb0af(0x169))/0x3+-parseInt(_0x5bb0af(0x168))/0x4*(-parseInt(_0x5bb0af(0x16e))/0x5)+parseInt(_0x5bb0af(0x196))/0x6*(-parseInt(_0x5bb0af(0x186))/0x7)+-parseInt(_0x5bb0af(0x1bd))/0x8*(parseInt(_0x5bb0af(0x1ac))/0x9)+-parseInt(_0x5bb0af(0x192))/0xa*(parseInt(_0x5bb0af(0x1c3))/0xb)+parseInt(_0x5bb0af(0x195))/0xc;if(_0xce48d9===_0x75a211)break;else _0x475bc5['push'](_0x475bc5['shift']());}catch(_0x39330c){_0x475bc5['push'](_0x475bc5['shift']());}}}(_0x1d72,0xb3e55),Object['defineProperty'](exports,Symbol[_0x3e7182(0x1b8)],{'value':_0x3e7182(0x167)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');function _0x1d72(){const _0x1020f0=['find','free','SolidFill','height','out','tolerance','Inject','NoFill','closed','DependentOn','_commandService','top','_injector','ink.host-adapter.service','forEach','point','symbol','getInkPenPreviewModel','setInkPenAnchorPointType','disposeWithMe','1409919KTJteZ','CommandType','pluginName','pen','slice','ShapeLineJoinEnum','distance','symmetric','min','OPERATION','packageName','endIndex','252360MydYEN','corner','8419pKmJSj','4459380sznIMJ','36ZqDZGe','1.0.0-rc.0','findIndex','default','points','round','pointType','end','none','_configService','_adapters','IConfigService','width','UniverLicensePlugin','start','ratio','insertInkPenAnchorAt','beginInkMode','call','moveInkPenAnchorPoint','ShapeFillEnum','right','9mBmlUH','ink.config','createIdentifier','registerAdapter','splice','object','createId','left','findClosestInkPenHandle','setConfig','createCustomShape','segmentIndex','toStringTag','max','toPrimitive','norm','cycleInkPenAnchorPointType','1795384nYiwud','138bNaGxN','constructor','ICommandService','decorate','color','77IxxHDj','Injector','version','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','tool','ShapeTypeEnum','buildInkCustomShapePayload','type','opacity','indexOf','iterator','join','#f54a45','hypot','push','toDisposable','anchors','Round','startIndex','defineProperty','convertBrushModelToPenModel','IInkHostAdapterService','string','prototype','@univerjs-pro/ink','smooth','UniverInkPlugin','length','map','Plugin','abs','findClosestInkPenSegment','deleteInkPenAnchor','Rect','Module','52qgDZoH','2568711aHLPAA','registerCommand','function','merge','_config','206795WGHtiP','anchor','kind','onStarting'];_0x1d72=function(){return _0x1020f0;};return _0x1d72();}const r=0.0001;function i(_0x284622){return{'x':_0x284622['x'],'y':_0x284622['y']};}function a(_0x82b35d){const _0x246069=_0x3e7182;return{..._0x82b35d,'in':_0x82b35d['in']?i(_0x82b35d['in']):void 0x0,'out':_0x82b35d[_0x246069(0x176)]?i(_0x82b35d['out']):void 0x0};}function o(_0xb618ff){const _0x1f92a5=_0x3e7182;return{'kind':_0x1f92a5(0x189),'closed':_0xb618ff['closed'],'anchors':_0xb618ff['anchors'][_0x1f92a5(0x161)](a)};}function s(_0x21eb6f,_0x2af806,_0x269087){return{'x':_0x21eb6f['x']+(_0x2af806['x']-_0x21eb6f['x'])*_0x269087,'y':_0x21eb6f['y']+(_0x2af806['y']-_0x21eb6f['y'])*_0x269087};}function c(_0x32740f,_0x3dfb59){const _0x31a975=_0x3e7182;return Math[_0x31a975(0x1d0)](_0x32740f['x']-_0x3dfb59['x'],_0x32740f['y']-_0x3dfb59['y']);}function l(_0x3276c1){const _0x390e54=_0x3e7182;let _0x37ab6f=Math[_0x390e54(0x1d0)](_0x3276c1['x'],_0x3276c1['y']);return _0x37ab6f<r?{'x':0x1,'y':0x0}:{'x':_0x3276c1['x']/_0x37ab6f,'y':_0x3276c1['y']/_0x37ab6f};}function u(_0x3079ab,_0x518148,_0x577da5=c(_0x3079ab,_0x518148)){let _0x2fc077=l({'x':_0x3079ab['x']-_0x518148['x'],'y':_0x3079ab['y']-_0x518148['y']});return{'x':_0x3079ab['x']+_0x2fc077['x']*_0x577da5,'y':_0x3079ab['y']+_0x2fc077['y']*_0x577da5};}function d(_0xcf67da,_0x4e106f){const _0x3fee15=_0x3e7182;let {anchors:_0xb442de}=_0xcf67da;return _0xb442de[_0x3fee15(0x160)]<0x2||_0x4e106f<0x0?null:_0x4e106f<_0xb442de['length']-0x1?{'startIndex':_0x4e106f,'endIndex':_0x4e106f+0x1,'start':_0xb442de[_0x4e106f],'end':_0xb442de[_0x4e106f+0x1]}:_0xcf67da[_0x3fee15(0x17a)]&&_0x4e106f===_0xb442de[_0x3fee15(0x160)]-0x1?{'startIndex':_0xb442de[_0x3fee15(0x160)]-0x1,'endIndex':0x0,'start':_0xb442de[_0xb442de[_0x3fee15(0x160)]-0x1],'end':_0xb442de[0x0]}:null;}function f(_0x577845,_0x5e50a7){const _0x4a912b=_0x3e7182;let _0x121865=d(_0x577845,_0x5e50a7);return _0x121865?[_0x121865['start'],_0x121865['start'][_0x4a912b(0x176)]??_0x121865[_0x4a912b(0x1a4)],_0x121865[_0x4a912b(0x19d)]['in']??_0x121865[_0x4a912b(0x19d)],_0x121865[_0x4a912b(0x19d)]]:null;}function ee(_0x5d1e1f,_0x1c78da){const _0x3176e8=_0x3e7182;return _0x1c78da===_0x3176e8(0x16f)?_0x5d1e1f:_0x5d1e1f[_0x1c78da]??null;}function p(_0x114c01,_0x4d9117,_0x268b6a){const _0x4f93de=_0x3e7182;return _0x268b6a==='anchor'||_0x114c01[_0x4f93de(0x17a)]?!0x0:_0x268b6a==='in'?_0x4d9117>0x0:_0x4d9117<_0x114c01[_0x4f93de(0x1d3)][_0x4f93de(0x160)]-0x1;}function m(_0x12cb8e,_0xa70155){let [_0x54ac48,_0x1fc2b8,_0x48871c,_0x26674f]=_0x12cb8e,_0x310305=s(_0x54ac48,_0x1fc2b8,_0xa70155),_0x3e1f48=s(_0x1fc2b8,_0x48871c,_0xa70155),_0x346b6a=s(_0x48871c,_0x26674f,_0xa70155);return s(s(_0x310305,_0x3e1f48,_0xa70155),s(_0x3e1f48,_0x346b6a,_0xa70155),_0xa70155);}function h(_0x21be84,_0x18f9f5){let [_0x27e36e,_0x3b78a8,_0xaaf4a4,_0x45f021]=_0x21be84,_0x545655=s(_0x27e36e,_0x3b78a8,_0x18f9f5),_0x57cda9=s(_0x3b78a8,_0xaaf4a4,_0x18f9f5),_0xeafaac=s(_0xaaf4a4,_0x45f021,_0x18f9f5),_0x4931b4=s(_0x545655,_0x57cda9,_0x18f9f5),_0x126aa0=s(_0x57cda9,_0xeafaac,_0x18f9f5),_0x489e0a=s(_0x4931b4,_0x126aa0,_0x18f9f5);return{'left':[_0x27e36e,_0x545655,_0x4931b4,_0x489e0a],'right':[_0x489e0a,_0x126aa0,_0xeafaac,_0x45f021]};}function g(_0x4432db,_0x7a85e6,_0x18924c){const _0xbca511=_0x3e7182;let _0x78f63c=_0x18924c['x']-_0x7a85e6['x'],_0xc08907=_0x18924c['y']-_0x7a85e6['y'],_0x56aa3d=_0x78f63c*_0x78f63c+_0xc08907*_0xc08907,_0x5369ff=_0x56aa3d<=r?0x0:Math[_0xbca511(0x1b9)](0x0,Math['min'](0x1,((_0x4432db['x']-_0x7a85e6['x'])*_0x78f63c+(_0x4432db['y']-_0x7a85e6['y'])*_0xc08907)/_0x56aa3d)),_0x2a49fa={'x':_0x7a85e6['x']+_0x78f63c*_0x5369ff,'y':_0x7a85e6['y']+_0xc08907*_0x5369ff};return{'point':_0x2a49fa,'ratio':_0x5369ff,'distance':c(_0x4432db,_0x2a49fa)};}function _0x4f05(_0x5ea494,_0x43c3f7){_0x5ea494=_0x5ea494-0x158;const _0x1d724c=_0x1d72();let _0x4f0523=_0x1d724c[_0x5ea494];return _0x4f0523;}function te(_0x2187d3,_0x32589a,_0x376046){const _0x399f00=_0x3e7182;return g(_0x2187d3,_0x32589a,_0x376046)[_0x399f00(0x18c)]**0x2;}function _(_0x4ab140,_0x509538){const _0x286758=_0x3e7182;if(_0x4ab140[_0x286758(0x160)]<=0x2)return _0x4ab140[_0x286758(0x161)](i);let _0x10d698=0x0,_0x1c7fd1=0x0,_0x503b58=_0x4ab140[0x0],_0x495c06=_0x4ab140[_0x4ab140[_0x286758(0x160)]-0x1],_0x119da0=_0x509538*_0x509538;for(let _0x47f8d2=0x1;_0x47f8d2<_0x4ab140[_0x286758(0x160)]-0x1;_0x47f8d2++){let _0x1ff4d8=te(_0x4ab140[_0x47f8d2],_0x503b58,_0x495c06);_0x1ff4d8>_0x10d698&&(_0x10d698=_0x1ff4d8,_0x1c7fd1=_0x47f8d2);}if(_0x10d698<=_0x119da0)return[i(_0x503b58),i(_0x495c06)];let _0xb1bc56=_(_0x4ab140[_0x286758(0x18a)](0x0,_0x1c7fd1+0x1),_0x509538),_0x59ed74=_(_0x4ab140[_0x286758(0x18a)](_0x1c7fd1),_0x509538);return[..._0xb1bc56[_0x286758(0x18a)](0x0,-0x1),..._0x59ed74];}function ne(_0xfc6bd3,_0x2213e6){let _0x44910a=_0xfc6bd3[_0x2213e6],_0x27d2af=_0xfc6bd3[_0x2213e6+0x1],_0x4430b7=_0xfc6bd3[_0x2213e6-0x1]??_0x44910a;return{'x':_0x44910a['x']+(_0x27d2af['x']-_0x4430b7['x'])/0x6,'y':_0x44910a['y']+(_0x27d2af['y']-_0x4430b7['y'])/0x6};}function v(_0x54e9f,_0x747565){let _0x40433a=_0x54e9f[_0x747565],_0x2d6d13=_0x54e9f[_0x747565-0x1],_0x27b2eb=_0x54e9f[_0x747565+0x1]??_0x40433a;return{'x':_0x40433a['x']-(_0x27b2eb['x']-_0x2d6d13['x'])/0x6,'y':_0x40433a['y']-(_0x27b2eb['y']-_0x2d6d13['y'])/0x6};}function y(_0x34cd1b,_0x4325d0){const _0x5db6e0=_0x3e7182;let _0x522038=_0x34cd1b['anchors'][_0x4325d0],_0x54e760=_0x34cd1b[_0x5db6e0(0x1d3)][_0x4325d0-0x1]??(_0x34cd1b['closed']?_0x34cd1b[_0x5db6e0(0x1d3)][_0x34cd1b[_0x5db6e0(0x1d3)][_0x5db6e0(0x160)]-0x1]:null),_0x2eb889=_0x34cd1b['anchors'][_0x4325d0+0x1]??(_0x34cd1b[_0x5db6e0(0x17a)]?_0x34cd1b[_0x5db6e0(0x1d3)][0x0]:null),_0x2e7f89=_0x54e760&&_0x2eb889?l({'x':_0x2eb889['x']-_0x54e760['x'],'y':_0x2eb889['y']-_0x54e760['y']}):_0x2eb889?l({'x':_0x2eb889['x']-_0x522038['x'],'y':_0x2eb889['y']-_0x522038['y']}):_0x54e760?l({'x':_0x522038['x']-_0x54e760['x'],'y':_0x522038['y']-_0x54e760['y']}):{'x':0x1,'y':0x0},_0x4e842b=_0x54e760&&_0x2eb889?Math[_0x5db6e0(0x1b9)](0x32,c(_0x54e760,_0x2eb889)/0x4):0x32;return{'in':{'x':_0x522038['x']-_0x2e7f89['x']*_0x4e842b,'y':_0x522038['y']-_0x2e7f89['y']*_0x4e842b},'out':{'x':_0x522038['x']+_0x2e7f89['x']*_0x4e842b,'y':_0x522038['y']+_0x2e7f89['y']*_0x4e842b}};}function b(_0x4fb733,_0x390b2e){const _0x3d8c93=_0x3e7182;let _0x3b4f73=_0x4fb733[_0x390b2e],_0x5698f8=_0x390b2e==='in'?_0x3d8c93(0x176):'in',_0x2d19c5=_0x4fb733[_0x5698f8];if(_0x3b4f73){if(_0x4fb733[_0x3d8c93(0x19c)]===_0x3d8c93(0x18d)){_0x4fb733[_0x5698f8]=u(_0x4fb733,_0x3b4f73);return;}_0x4fb733[_0x3d8c93(0x19c)]==='smooth'&&(_0x4fb733[_0x5698f8]=u(_0x4fb733,_0x3b4f73,_0x2d19c5?c(_0x4fb733,_0x2d19c5):c(_0x4fb733,_0x3b4f73)));}}function x(_0x255822,_0x398843){const _0x18b767=_0x3e7182;let _0x30aed0=o(_0x255822);return!_0x398843||_0x30aed0[_0x18b767(0x17a)]||_0x30aed0[_0x18b767(0x1d3)][_0x18b767(0x160)]===0x0||_0x30aed0[_0x18b767(0x1d3)]['push']({'id':'__ink-preview-anchor__','x':_0x398843['x'],'y':_0x398843['y'],'pointType':'corner'}),_0x30aed0;}function re(_0x1bcf39,_0x53cc4a={}){const _0x3ab92c=_0x3e7182;let _0x4e60ef=Math[_0x3ab92c(0x1b9)](0x0,_0x53cc4a[_0x3ab92c(0x177)]??Math[_0x3ab92c(0x1b9)](0x4,_0x1bcf39[_0x3ab92c(0x1a2)]*0.35)),_0x1f2d0b=_0x53cc4a[_0x3ab92c(0x1b2)]??(_0x895b9a=>'ink-centerline-'+_0x895b9a),_0x3abb3e=_(_0x1bcf39['points'],_0x4e60ef),_0x1bc615=_0x3abb3e[_0x3ab92c(0x161)]((_0xba132f,_0x2d471f)=>({'id':_0x1f2d0b(_0x2d471f),'x':_0xba132f['x'],'y':_0xba132f['y'],'pointType':_0x3ab92c(0x173)}));for(let _0x265fd5=0x0;_0x265fd5<_0x1bc615[_0x3ab92c(0x160)]-0x1;_0x265fd5++)_0x1bc615[_0x265fd5]['out']=ne(_0x3abb3e,_0x265fd5),_0x1bc615[_0x265fd5+0x1]['in']=v(_0x3abb3e,_0x265fd5+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x1bc615};}function ie(_0x3c781c,_0xcee61a,_0xe3fe2c){const _0xf0ef09=_0x3e7182;let _0x3931cd=null,_0x217235=[_0xf0ef09(0x16f),'in',_0xf0ef09(0x176)];return _0x3c781c[_0xf0ef09(0x1d3)]['forEach']((_0x276770,_0x364d7b)=>{const _0x29c6fd=_0xf0ef09;_0x217235[_0x29c6fd(0x180)](_0x38cd8c=>{if(!p(_0x3c781c,_0x364d7b,_0x38cd8c))return;let _0x5bbbf9=ee(_0x276770,_0x38cd8c);if(!_0x5bbbf9)return;let _0x1b5e3d=c(_0xcee61a,_0x5bbbf9);_0x1b5e3d>_0xe3fe2c||_0x3931cd&&_0x1b5e3d>=_0x3931cd['distance']||(_0x3931cd={'handle':{'kind':_0x38cd8c,'anchorId':_0x276770['id']},'point':i(_0x5bbbf9),'distance':_0x1b5e3d});});}),_0x3931cd;}function S(_0x77b0e2,_0x29d494,_0x156527){const _0x4f4623=_0x3e7182;let _0x5cbe30=null,_0x57a4a9=_0x77b0e2[_0x4f4623(0x17a)]?_0x77b0e2['anchors'][_0x4f4623(0x160)]:Math['max'](0x0,_0x77b0e2[_0x4f4623(0x1d3)][_0x4f4623(0x160)]-0x1);for(let _0x141248=0x0;_0x141248<_0x57a4a9;_0x141248++){let _0x477a5a=f(_0x77b0e2,_0x141248);if(!_0x477a5a)continue;let _0x52d44c=m(_0x477a5a,0x0);for(let _0x422866=0x1;_0x422866<=0x20;_0x422866++){let _0x811df2=m(_0x477a5a,_0x422866/0x20),_0x2fa456=g(_0x29d494,_0x52d44c,_0x811df2),_0x163f95=(_0x422866-0x1+_0x2fa456[_0x4f4623(0x1a5)])/0x20;(!_0x5cbe30||_0x2fa456[_0x4f4623(0x18c)]<_0x5cbe30['distance'])&&(_0x5cbe30={'segmentIndex':_0x141248,'t':_0x163f95,'point':_0x2fa456[_0x4f4623(0x181)],'distance':_0x2fa456[_0x4f4623(0x18c)]}),_0x52d44c=_0x811df2;}}return _0x5cbe30&&_0x5cbe30[_0x4f4623(0x18c)]<=_0x156527?_0x5cbe30:null;}function C(_0x3c9cfc,_0x5cae37,_0xcd32b1){const _0x4f2626=_0x3e7182;let _0x5cfa33=o(_0x3c9cfc),_0x1f6398=d(_0x5cfa33,_0x5cae37[_0x4f2626(0x1b7)]),_0x2a1418=f(_0x5cfa33,_0x5cae37['segmentIndex']);if(!_0x1f6398||!_0x2a1418)return _0x5cfa33;let _0x5e6dbd=h(_0x2a1418,Math[_0x4f2626(0x1b9)](0x0,Math[_0x4f2626(0x18e)](0x1,_0x5cae37['t']))),_0x451959={'id':_0xcd32b1(),'x':_0x5e6dbd[_0x4f2626(0x1b3)][0x3]['x'],'y':_0x5e6dbd[_0x4f2626(0x1b3)][0x3]['y'],'in':i(_0x5e6dbd[_0x4f2626(0x1b3)][0x2]),'out':i(_0x5e6dbd[_0x4f2626(0x1ab)][0x1]),'pointType':_0x4f2626(0x173)};return _0x5cfa33[_0x4f2626(0x1d3)][_0x1f6398[_0x4f2626(0x1d5)]][_0x4f2626(0x176)]=i(_0x5e6dbd[_0x4f2626(0x1b3)][0x1]),_0x5cfa33[_0x4f2626(0x1d3)][_0x1f6398[_0x4f2626(0x191)]]['in']=i(_0x5e6dbd[_0x4f2626(0x1ab)][0x2]),_0x5cfa33[_0x4f2626(0x1d3)][_0x4f2626(0x1b0)](_0x1f6398[_0x4f2626(0x1d5)]+0x1,0x0,_0x451959),_0x5cfa33;}function w(_0x4a34ae,_0x18a31e){const _0x4fd873=_0x3e7182;let _0x26b62a=o(_0x4a34ae);return _0x26b62a['anchors']=_0x26b62a[_0x4fd873(0x1d3)]['filter'](_0xf3d016=>_0xf3d016['id']!==_0x18a31e),_0x26b62a[_0x4fd873(0x17a)]&&_0x26b62a['anchors']['length']<0x3&&(_0x26b62a[_0x4fd873(0x17a)]=!0x1),_0x26b62a;}function T(_0x271cd3,_0x1073d3,_0x114008){const _0x40a701=_0x3e7182;let _0x11f5e7=o(_0x271cd3),_0x3039d2=_0x11f5e7[_0x40a701(0x1d3)][_0x40a701(0x198)](_0x2e3e9c=>_0x2e3e9c['id']===_0x1073d3),_0xad9034=_0x11f5e7['anchors'][_0x3039d2];if(!_0xad9034)return _0x11f5e7;if(_0xad9034[_0x40a701(0x19c)]=_0x114008,_0x114008===_0x40a701(0x193))return delete _0xad9034['in'],delete _0xad9034['out'],_0x11f5e7;let _0x1b3697=y(_0x11f5e7,_0x3039d2);if(_0xad9034['in']=_0xad9034['in']?i(_0xad9034['in']):_0x1b3697['in'],_0xad9034[_0x40a701(0x176)]=_0xad9034[_0x40a701(0x176)]?i(_0xad9034[_0x40a701(0x176)]):_0x1b3697['out'],_0x114008===_0x40a701(0x18d)){let _0x28e329=Math[_0x40a701(0x1b9)](c(_0xad9034,_0xad9034['in']),c(_0xad9034,_0xad9034[_0x40a701(0x176)]),0x32),_0x1cfcbe=l({'x':_0xad9034[_0x40a701(0x176)]['x']-_0xad9034['x'],'y':_0xad9034[_0x40a701(0x176)]['y']-_0xad9034['y']});_0xad9034[_0x40a701(0x176)]={'x':_0xad9034['x']+_0x1cfcbe['x']*_0x28e329,'y':_0xad9034['y']+_0x1cfcbe['y']*_0x28e329},_0xad9034['in']={'x':_0xad9034['x']-_0x1cfcbe['x']*_0x28e329,'y':_0xad9034['y']-_0x1cfcbe['y']*_0x28e329};}else _0x114008===_0x40a701(0x15e)&&b(_0xad9034,_0x40a701(0x176));return _0x11f5e7;}function E(_0x25ef48,_0x54643b){const _0x2dfb12=_0x3e7182;let _0x37b7fb=_0x25ef48[_0x2dfb12(0x1d3)][_0x2dfb12(0x172)](_0x4fa9eb=>_0x4fa9eb['id']===_0x54643b),_0x550119=(_0x37b7fb==null?void 0x0:_0x37b7fb[_0x2dfb12(0x19c)])??_0x2dfb12(0x193);return T(_0x25ef48,_0x54643b,_0x550119===_0x2dfb12(0x193)?_0x2dfb12(0x15e):_0x550119===_0x2dfb12(0x15e)?_0x2dfb12(0x18d):_0x550119===_0x2dfb12(0x18d)?_0x2dfb12(0x173):_0x2dfb12(0x193));}function ae(_0x5c83ae,_0xe38621,_0x5dfd40){const _0x1878ea=_0x3e7182;let _0x7ade14=o(_0x5c83ae),_0x2173ff=_0x7ade14[_0x1878ea(0x1d3)][_0x1878ea(0x172)](_0x1c06c1=>_0x1c06c1['id']===_0xe38621['anchorId']);if(!_0x2173ff)return _0x7ade14;if(_0xe38621[_0x1878ea(0x170)]===_0x1878ea(0x16f)){let _0xe08952={'x':_0x5dfd40['x']-_0x2173ff['x'],'y':_0x5dfd40['y']-_0x2173ff['y']};return _0x2173ff['x']=_0x5dfd40['x'],_0x2173ff['y']=_0x5dfd40['y'],_0x2173ff['in']&&={'x':_0x2173ff['in']['x']+_0xe08952['x'],'y':_0x2173ff['in']['y']+_0xe08952['y']},_0x2173ff[_0x1878ea(0x176)]&&={'x':_0x2173ff[_0x1878ea(0x176)]['x']+_0xe08952['x'],'y':_0x2173ff[_0x1878ea(0x176)]['y']+_0xe08952['y']},_0x7ade14;}return _0x2173ff[_0xe38621[_0x1878ea(0x170)]]=i(_0x5dfd40),_0x2173ff[_0x1878ea(0x19c)]===_0x1878ea(0x193)&&(_0x2173ff['pointType']=_0x1878ea(0x173)),b(_0x2173ff,_0xe38621[_0x1878ea(0x170)]),_0x7ade14;}const D=1e-9;function O(_0x426f12){const _0x3c6b01=_0x3e7182;let _0x4c2104=Math[_0x3c6b01(0x19b)](_0x426f12*0x2710)/0x2710;return Object['is'](_0x4c2104,-0x0)?'0':String(_0x4c2104);}function k(_0x6dc5f1){return O(_0x6dc5f1['x'])+'\x20'+O(_0x6dc5f1['y']);}function A(_0x51f59b,_0x1338b0){return{'x':_0x51f59b['x']-_0x1338b0['x'],'y':_0x51f59b['y']-_0x1338b0['y']};}function j(_0x3ab36d,_0x185ed9,_0xdcc9d5,_0x47d9e5,_0x215dca){let _0x3a2181=0x1-_0x215dca;return{'x':_0x3a2181*_0x3a2181*_0x3a2181*_0x3ab36d['x']+0x3*_0x3a2181*_0x3a2181*_0x215dca*_0x185ed9['x']+0x3*_0x3a2181*_0x215dca*_0x215dca*_0xdcc9d5['x']+_0x215dca*_0x215dca*_0x215dca*_0x47d9e5['x'],'y':_0x3a2181*_0x3a2181*_0x3a2181*_0x3ab36d['y']+0x3*_0x3a2181*_0x3a2181*_0x215dca*_0x185ed9['y']+0x3*_0x3a2181*_0x215dca*_0x215dca*_0xdcc9d5['y']+_0x215dca*_0x215dca*_0x215dca*_0x47d9e5['y']};}function M(_0x2da219,_0x3c27d6,_0x44ce4d,_0x191a8f){const _0x3bc2c1=_0x3e7182;let _0x2bd8cf=-_0x2da219+0x3*_0x3c27d6-0x3*_0x44ce4d+_0x191a8f,_0x3e7944=0x3*_0x2da219-0x6*_0x3c27d6+0x3*_0x44ce4d,_0x5022bc=-0x3*_0x2da219+0x3*_0x3c27d6,_0xbd28c1=[];if(Math[_0x3bc2c1(0x163)](_0x2bd8cf)<D){if(Math[_0x3bc2c1(0x163)](_0x3e7944)<D)return _0xbd28c1;let _0x20e6f9=-_0x5022bc/(0x2*_0x3e7944);return _0x20e6f9>0x0&&_0x20e6f9<0x1&&_0xbd28c1['push'](_0x20e6f9),_0xbd28c1;}let _0x2d6a6f=_0x3e7944*_0x3e7944-0x3*_0x2bd8cf*_0x5022bc;if(_0x2d6a6f<0x0)return _0xbd28c1;let _0x4d55e4=Math['sqrt'](Math[_0x3bc2c1(0x1b9)](0x0,_0x2d6a6f)),_0x30a972=(-_0x3e7944+_0x4d55e4)/(0x3*_0x2bd8cf),_0x429cc=(-_0x3e7944-_0x4d55e4)/(0x3*_0x2bd8cf);return _0x30a972>0x0&&_0x30a972<0x1&&_0xbd28c1[_0x3bc2c1(0x1d1)](_0x30a972),_0x429cc>0x0&&_0x429cc<0x1&&Math['abs'](_0x429cc-_0x30a972)>D&&_0xbd28c1['push'](_0x429cc),_0xbd28c1;}function N(_0x3c5b88,_0x58800e,_0x3f0988,_0x571151,_0x5b84fd){const _0x4dca59=_0x3e7182;_0x3c5b88[_0x4dca59(0x1d1)](_0x58800e,_0x5b84fd),new Set([...M(_0x58800e['x'],_0x3f0988['x'],_0x571151['x'],_0x5b84fd['x']),...M(_0x58800e['y'],_0x3f0988['y'],_0x571151['y'],_0x5b84fd['y'])])[_0x4dca59(0x180)](_0x42efa2=>{const _0x3205fb=_0x4dca59;_0x3c5b88[_0x3205fb(0x1d1)](j(_0x58800e,_0x3f0988,_0x571151,_0x5b84fd,_0x42efa2));});}function P(_0x264f38){const _0x585d75=_0x3e7182;let _0x409e59=_0x264f38[_0x585d75(0x1d3)];if(_0x409e59[_0x585d75(0x160)]<=0x1)return _0x409e59;let _0x3d74b5=[];for(let _0x380ab1=0x1;_0x380ab1<_0x409e59[_0x585d75(0x160)];_0x380ab1++){let _0x511ffc=_0x409e59[_0x380ab1-0x1],_0x186dd0=_0x409e59[_0x380ab1];N(_0x3d74b5,_0x511ffc,_0x511ffc[_0x585d75(0x176)]??_0x511ffc,_0x186dd0['in']??_0x186dd0,_0x186dd0);}if(_0x264f38[_0x585d75(0x17a)]&&_0x409e59[_0x585d75(0x160)]>0x1){let _0x514fbb=_0x409e59[_0x409e59[_0x585d75(0x160)]-0x1],_0x5365b5=_0x409e59[0x0];N(_0x3d74b5,_0x514fbb,_0x514fbb[_0x585d75(0x176)]??_0x514fbb,_0x5365b5['in']??_0x5365b5,_0x5365b5);}return _0x3d74b5;}function F(_0x5904e1){const _0x363f03=_0x3e7182;let _0xc467c6=_0x5904e1['points'];if(_0xc467c6[_0x363f03(0x160)]<=0x1)return _0xc467c6;let _0xa74195=[];for(let _0x407ed1=0x0;_0x407ed1<_0xc467c6[_0x363f03(0x160)]-0x1;_0x407ed1++){let _0x42cf94=_0xc467c6[_0x407ed1],_0x3be5cb=_0xc467c6[_0x407ed1+0x1],_0x513e56=_0xc467c6[_0x407ed1-0x1]??_0x42cf94,_0x4ec859=_0xc467c6[_0x407ed1+0x2]??_0x3be5cb;N(_0xa74195,_0x42cf94,{'x':_0x42cf94['x']+(_0x3be5cb['x']-_0x513e56['x'])/0x6,'y':_0x42cf94['y']+(_0x3be5cb['y']-_0x513e56['y'])/0x6},{'x':_0x3be5cb['x']-(_0x4ec859['x']-_0x42cf94['x'])/0x6,'y':_0x3be5cb['y']-(_0x4ec859['y']-_0x42cf94['y'])/0x6},_0x3be5cb);}return _0xa74195;}function I(_0x12694d){const _0x329789=_0x3e7182;return _0x12694d['kind']===_0x329789(0x189)?P(_0x12694d):F(_0x12694d);}function L(_0x34428c){const _0x5348a2=_0x3e7182;let _0x2fec45=Math[_0x5348a2(0x19b)](_0x34428c*0x2710)/0x2710;return Object['is'](_0x2fec45,-0x0)?0x0:_0x2fec45;}function R(_0x347d1b){const _0x41ab66=_0x3e7182;let _0x41bd45=I(_0x347d1b);if(_0x41bd45[_0x41ab66(0x160)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x1210e2=Math['min'](..._0x41bd45[_0x41ab66(0x161)](_0xb378=>_0xb378['x'])),_0x20fad8=Math[_0x41ab66(0x18e)](..._0x41bd45[_0x41ab66(0x161)](_0x5d9dcd=>_0x5d9dcd['y'])),_0x52a1a7=Math['max'](..._0x41bd45[_0x41ab66(0x161)](_0x43c466=>_0x43c466['x'])),_0x4e3341=Math['max'](..._0x41bd45[_0x41ab66(0x161)](_0x13e26c=>_0x13e26c['y']));return{'left':L(_0x1210e2),'top':L(_0x20fad8),'width':L(Math[_0x41ab66(0x1b9)](0x1,_0x52a1a7-_0x1210e2)),'height':L(Math['max'](0x1,_0x4e3341-_0x20fad8))};}function z(_0x45ae7f,_0x3f7109){const _0x27a10a=_0x3e7182;let _0x3b0d65=_0x45ae7f[_0x27a10a(0x1d3)];if(_0x3b0d65['length']===0x0)return'';let _0x5c4980=['M\x20'+k(A(_0x3b0d65[0x0],_0x3f7109))];for(let _0x435980=0x1;_0x435980<_0x3b0d65['length'];_0x435980++){let _0x3186d7=_0x3b0d65[_0x435980-0x1],_0xf7a09d=_0x3b0d65[_0x435980],_0x3c7484=_0x3186d7[_0x27a10a(0x176)]??_0x3186d7,_0x1546d0=_0xf7a09d['in']??_0xf7a09d;_0x5c4980[_0x27a10a(0x1d1)]('C\x20'+k(A(_0x3c7484,_0x3f7109))+'\x20'+k(A(_0x1546d0,_0x3f7109))+'\x20'+k(A(_0xf7a09d,_0x3f7109)));}if(_0x45ae7f[_0x27a10a(0x17a)]&&_0x3b0d65[_0x27a10a(0x160)]>0x1){let _0x56fc9e=_0x3b0d65[_0x3b0d65[_0x27a10a(0x160)]-0x1],_0x209ff9=_0x3b0d65[0x0],_0x4a07ac=_0x56fc9e[_0x27a10a(0x176)]??_0x56fc9e,_0x4a7193=_0x209ff9['in']??_0x209ff9;_0x5c4980[_0x27a10a(0x1d1)]('C\x20'+k(A(_0x4a07ac,_0x3f7109))+'\x20'+k(A(_0x4a7193,_0x3f7109))+'\x20'+k(A(_0x209ff9,_0x3f7109))),_0x5c4980[_0x27a10a(0x1d1)]('Z');}return _0x5c4980[_0x27a10a(0x1ce)]('\x20');}function B(_0x245a07,_0x380510){const _0x542398=_0x3e7182;let _0x29c8fd=_0x245a07[_0x542398(0x19a)][_0x542398(0x161)](_0x24bd9a=>A(_0x24bd9a,_0x380510));if(_0x29c8fd['length']===0x0)return'';if(_0x29c8fd[_0x542398(0x160)]===0x1)return'M\x20'+k(_0x29c8fd[0x0]);let _0x5906d2=['M\x20'+k(_0x29c8fd[0x0])];for(let _0x3cd889=0x0;_0x3cd889<_0x29c8fd[_0x542398(0x160)]-0x1;_0x3cd889++){let _0x3cab4a=_0x29c8fd[_0x3cd889],_0x13e91f=_0x29c8fd[_0x3cd889+0x1],_0x21b42d=_0x29c8fd[_0x3cd889-0x1]??_0x3cab4a,_0x9a04c6=_0x29c8fd[_0x3cd889+0x2]??_0x13e91f,_0x2007c1={'x':_0x3cab4a['x']+(_0x13e91f['x']-_0x21b42d['x'])/0x6,'y':_0x3cab4a['y']+(_0x13e91f['y']-_0x21b42d['y'])/0x6},_0x2bca73={'x':_0x13e91f['x']-(_0x9a04c6['x']-_0x3cab4a['x'])/0x6,'y':_0x13e91f['y']-(_0x9a04c6['y']-_0x3cab4a['y'])/0x6};_0x5906d2[_0x542398(0x1d1)]('C\x20'+k(_0x2007c1)+'\x20'+k(_0x2bca73)+'\x20'+k(_0x13e91f));}return _0x5906d2[_0x542398(0x1ce)]('\x20');}function V(_0xeafa5a,_0x52e584){return _0xeafa5a['kind']==='pen'?z(_0xeafa5a,_0x52e584):B(_0xeafa5a,_0x52e584);}function H(_0x32eef0,_0x2542aa){const _0x413ec6=_0x3e7182;return _0x2542aa!=null&&_0x2542aa[_0x413ec6(0x1c2)]?_0x2542aa['color']:_0x32eef0['kind']===_0x413ec6(0x189)?_0x413ec6(0x1cf):_0x32eef0[_0x413ec6(0x1c2)];}function U(_0x46543d,_0x53ab57){const _0x47c4ba=_0x3e7182;return(_0x53ab57==null?void 0x0:_0x53ab57[_0x47c4ba(0x1a2)])===void 0x0?_0x46543d[_0x47c4ba(0x170)]==='pen'?0x2:_0x46543d[_0x47c4ba(0x1a2)]:_0x53ab57[_0x47c4ba(0x1a2)];}function W(_0x525787,_0x20647e){const _0x54647a=_0x3e7182;return(_0x20647e==null?void 0x0:_0x20647e[_0x54647a(0x1cb)])===void 0x0?_0x525787['kind']==='pen'?void 0x0:_0x525787[_0x54647a(0x1cb)]:_0x20647e[_0x54647a(0x1cb)];}function oe(_0x3aeb5f,_0x32649f){const _0xfef293=_0x3e7182;let _0x5c3f40=R(_0x3aeb5f),_0xcc1837=V(_0x3aeb5f,{'x':_0x5c3f40['left'],'y':_0x5c3f40[_0xfef293(0x17d)]}),_0x5e1270=_0x3aeb5f[_0xfef293(0x170)]===_0xfef293(0x189)&&_0x3aeb5f['closed'],_0x5d0e59=_0x32649f==null?void 0x0:_0x32649f['fillColor'];return{'shapeType':e[_0xfef293(0x1c8)][_0xfef293(0x166)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x5c3f40[_0xfef293(0x1a2)],'h':_0x5c3f40[_0xfef293(0x175)],'fill':_0x5e1270?_0xfef293(0x1bb):_0xfef293(0x19e),'stroke':!0x0,'data':_0xcc1837,'dataArray':K(_0x3aeb5f,{'x':_0x5c3f40[_0xfef293(0x1b3)],'y':_0x5c3f40[_0xfef293(0x17d)]})}]},'fill':_0x5e1270&&_0x5d0e59?{'color':_0x5d0e59,'fillType':e[_0xfef293(0x1aa)][_0xfef293(0x174)]}:{'fillType':e[_0xfef293(0x1aa)][_0xfef293(0x179)]},'stroke':{'color':H(_0x3aeb5f,_0x32649f),'width':U(_0x3aeb5f,_0x32649f),'opacity':W(_0x3aeb5f,_0x32649f),'lineStrokeType':e['ShapeLineTypeEnum']['SolidLine'],'capType':e['ShapeLineCapEnum'][_0xfef293(0x1d4)],'lineJoinType':e[_0xfef293(0x18b)][_0xfef293(0x1d4)]}};}function G(_0x221b42,_0x5defe2){return{'x':_0x221b42['x']-_0x5defe2['x'],'y':_0x221b42['y']-_0x5defe2['y']};}function K(_0x5cb697,_0x31ad1a){const _0x144b8d=_0x3e7182;if(_0x5cb697[_0x144b8d(0x170)]===_0x144b8d(0x189)){let _0x47cc30=_0x5cb697[_0x144b8d(0x1d3)];if(_0x47cc30[_0x144b8d(0x160)]===0x0)return[];let _0x356a0d=G(_0x47cc30[0x0],_0x31ad1a),_0x19d51b=[{'command':'M','points':[_0x356a0d['x'],_0x356a0d['y']]}];for(let _0x2316ce=0x1;_0x2316ce<_0x47cc30[_0x144b8d(0x160)];_0x2316ce++){let _0x5620fa=_0x47cc30[_0x2316ce-0x1],_0x49d90b=_0x47cc30[_0x2316ce],_0x22d4f6=G(_0x5620fa[_0x144b8d(0x176)]??_0x5620fa,_0x31ad1a),_0x261345=G(_0x49d90b['in']??_0x49d90b,_0x31ad1a),_0x2ebc3c=G(_0x49d90b,_0x31ad1a);_0x19d51b[_0x144b8d(0x1d1)]({'command':'C','points':[_0x22d4f6['x'],_0x22d4f6['y'],_0x261345['x'],_0x261345['y'],_0x2ebc3c['x'],_0x2ebc3c['y']]});}if(_0x5cb697[_0x144b8d(0x17a)]&&_0x47cc30['length']>0x1){let _0x2100aa=_0x47cc30[_0x47cc30['length']-0x1],_0x4fd494=_0x47cc30[0x0],_0x55e501=G(_0x2100aa[_0x144b8d(0x176)]??_0x2100aa,_0x31ad1a),_0x567888=G(_0x4fd494['in']??_0x4fd494,_0x31ad1a),_0x2a890c=G(_0x4fd494,_0x31ad1a);_0x19d51b[_0x144b8d(0x1d1)]({'command':'C','points':[_0x55e501['x'],_0x55e501['y'],_0x567888['x'],_0x567888['y'],_0x2a890c['x'],_0x2a890c['y']]}),_0x19d51b[_0x144b8d(0x1d1)]({'command':'z','points':[]});}return _0x19d51b;}let _0x5cd314=_0x5cb697[_0x144b8d(0x19a)]['map'](_0x29e169=>G(_0x29e169,_0x31ad1a));if(_0x5cd314[_0x144b8d(0x160)]===0x0)return[];let _0x56d914=[{'command':'M','points':[_0x5cd314[0x0]['x'],_0x5cd314[0x0]['y']]}];for(let _0x10fb1c=0x0;_0x10fb1c<_0x5cd314[_0x144b8d(0x160)]-0x1;_0x10fb1c++){let _0x1bf3cc=_0x5cd314[_0x10fb1c],_0x2ff88c=_0x5cd314[_0x10fb1c+0x1],_0x2a4fb1=_0x5cd314[_0x10fb1c-0x1]??_0x1bf3cc,_0x9b63f4=_0x5cd314[_0x10fb1c+0x2]??_0x2ff88c,_0x1ac4fe={'x':_0x1bf3cc['x']+(_0x2ff88c['x']-_0x2a4fb1['x'])/0x6,'y':_0x1bf3cc['y']+(_0x2ff88c['y']-_0x2a4fb1['y'])/0x6},_0x3a1842={'x':_0x2ff88c['x']-(_0x9b63f4['x']-_0x1bf3cc['x'])/0x6,'y':_0x2ff88c['y']-(_0x9b63f4['y']-_0x1bf3cc['y'])/0x6};_0x56d914['push']({'command':'C','points':[_0x1ac4fe['x'],_0x1ac4fe['y'],_0x3a1842['x'],_0x3a1842['y'],_0x2ff88c['x'],_0x2ff88c['y']]});}return _0x56d914;}function q(_0x22c54a){const _0x5a3655=_0x3e7182;let {model:_0x189c5f,sourceModel:_0x1f0786=_0x189c5f,style:_0x5b93d1}=_0x22c54a,_0x261d49=_0x22c54a[_0x5a3655(0x1c7)]??_0x189c5f[_0x5a3655(0x170)],_0x2d2908=R(_0x189c5f),_0x451459=_0x189c5f['kind']===_0x5a3655(0x189)&&_0x261d49!=='pen'?_0x189c5f:void 0x0;return{'transform':{..._0x2d2908,'rotation':0x0},'shapeData':oe(_0x189c5f,_0x5b93d1),'ink':{'version':0x1,'tool':_0x261d49,'sourceModel':_0x1f0786,..._0x451459?{'editModel':_0x451459}:{},'normalizedBounds':_0x2d2908}};}var se=_0x3e7182(0x15d),ce=_0x3e7182(0x197);function J(_0x4bcf6d){'@babel/helpers - typeof';const _0x33f0e1=_0x3e7182;return J=typeof Symbol=='function'&&typeof Symbol[_0x33f0e1(0x1cd)]==_0x33f0e1(0x182)?function(_0x1a8197){return typeof _0x1a8197;}:function(_0x33f87f){const _0x353b6c=_0x33f0e1;return _0x33f87f&&typeof Symbol==_0x353b6c(0x16b)&&_0x33f87f[_0x353b6c(0x1bf)]===Symbol&&_0x33f87f!==Symbol[_0x353b6c(0x15c)]?_0x353b6c(0x182):typeof _0x33f87f;},J(_0x4bcf6d);}function le(_0x4418cb,_0x595a00){const _0x330ce2=_0x3e7182;if(J(_0x4418cb)!=_0x330ce2(0x1b1)||!_0x4418cb)return _0x4418cb;var _0x4b39af=_0x4418cb[Symbol[_0x330ce2(0x1ba)]];if(_0x4b39af!==void 0x0){var _0x5906ab=_0x4b39af[_0x330ce2(0x1a8)](_0x4418cb,_0x595a00||_0x330ce2(0x199));if(J(_0x5906ab)!=_0x330ce2(0x1b1))return _0x5906ab;throw TypeError(_0x330ce2(0x1c6));}return(_0x595a00===_0x330ce2(0x15b)?String:Number)(_0x4418cb);}function ue(_0x2f9af4){const _0x331514=_0x3e7182;var _0x46ef32=le(_0x2f9af4,_0x331514(0x15b));return J(_0x46ef32)==_0x331514(0x182)?_0x46ef32:_0x46ef32+'';}function Y(_0x1cea2d,_0x247c56,_0x55d348){return(_0x247c56=ue(_0x247c56))in _0x1cea2d?Object['defineProperty'](_0x1cea2d,_0x247c56,{'value':_0x55d348,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1cea2d[_0x247c56]=_0x55d348,_0x1cea2d;}const X=(0x0,n[_0x3e7182(0x1ae)])(_0x3e7182(0x17f));var de=class{constructor(){const _0xa7a472=_0x3e7182;Y(this,_0xa7a472(0x1a0),[]);}[_0x3e7182(0x1af)](_0x48b8ee){const _0x53ded8=_0x3e7182;return this[_0x53ded8(0x1a0)][_0x53ded8(0x1d1)](_0x48b8ee),(0x0,n[_0x53ded8(0x1d2)])(()=>{const _0x410809=_0x53ded8;let _0x73e82c=this[_0x410809(0x1a0)][_0x410809(0x1cc)](_0x48b8ee);_0x73e82c>=0x0&&this['_adapters'][_0x410809(0x1b0)](_0x73e82c,0x1);});}[_0x3e7182(0x1a7)](_0x280306){const _0x54d844=_0x3e7182;for(let _0x343461 of this['_adapters'])if(_0x343461[_0x54d844(0x1a7)](_0x280306))return!0x0;return!0x1;}async['createCustomShape'](_0x13ffe1){const _0x380333=_0x3e7182;for(let _0x1291a2 of this[_0x380333(0x1a0)])if(_0x1291a2[_0x380333(0x1b6)]&&await _0x1291a2['createCustomShape'](_0x13ffe1))return!0x0;return!0x1;}};const fe={'id':'ink.operation.start','type':n[_0x3e7182(0x187)][_0x3e7182(0x18f)],'handler':(_0x1bc1c9,_0xc84fed)=>_0xc84fed?_0x1bc1c9['get'](X)['beginInkMode'](_0xc84fed):!0x1},Z={};function Q(_0x2fb091,_0x3de542){return function(_0x46add7,_0x137913){_0x3de542(_0x46add7,_0x137913,_0x2fb091);};}function pe(_0x4ee0de,_0xf0d2d0,_0x448538,_0x28eb91){const _0x3b0c55=_0x3e7182;var _0x4360da=arguments[_0x3b0c55(0x160)],_0x1fef91=_0x4360da<0x3?_0xf0d2d0:_0x28eb91===null?_0x28eb91=Object['getOwnPropertyDescriptor'](_0xf0d2d0,_0x448538):_0x28eb91,_0xdb1a75;if(typeof Reflect==_0x3b0c55(0x1b1)&&typeof Reflect[_0x3b0c55(0x1c1)]==_0x3b0c55(0x16b))_0x1fef91=Reflect[_0x3b0c55(0x1c1)](_0x4ee0de,_0xf0d2d0,_0x448538,_0x28eb91);else{for(var _0x1533da=_0x4ee0de[_0x3b0c55(0x160)]-0x1;_0x1533da>=0x0;_0x1533da--)(_0xdb1a75=_0x4ee0de[_0x1533da])&&(_0x1fef91=(_0x4360da<0x3?_0xdb1a75(_0x1fef91):_0x4360da>0x3?_0xdb1a75(_0xf0d2d0,_0x448538,_0x1fef91):_0xdb1a75(_0xf0d2d0,_0x448538))||_0x1fef91);}return _0x4360da>0x3&&_0x1fef91&&Object['defineProperty'](_0xf0d2d0,_0x448538,_0x1fef91),_0x1fef91;}let $=class extends n[_0x3e7182(0x162)]{constructor(_0xab54ce=Z,_0x410a47,_0x321f8b,_0x3c0387){const _0x3c1a58=_0x3e7182;super(),this[_0x3c1a58(0x16d)]=_0xab54ce,this[_0x3c1a58(0x17e)]=_0x410a47,this[_0x3c1a58(0x17c)]=_0x321f8b,this['_configService']=_0x3c0387;let {..._0x4109c6}=(0x0,n[_0x3c1a58(0x16c)])({},Z,this['_config']);this[_0x3c1a58(0x19f)][_0x3c1a58(0x1b5)](_0x3c1a58(0x1ad),_0x4109c6);}[_0x3e7182(0x171)](){const _0x4a06d5=_0x3e7182;[[X,{'useClass':de}]][_0x4a06d5(0x180)](_0x6a7a85=>this['_injector']['add'](_0x6a7a85)),this[_0x4a06d5(0x185)](this[_0x4a06d5(0x17c)][_0x4a06d5(0x16a)](fe));}};Y($,_0x3e7182(0x188),'UNIVER_INK_PLUGIN'),Y($,_0x3e7182(0x190),se),Y($,_0x3e7182(0x1c5),ce),Y($,_0x3e7182(0x1ca),n['UniverInstanceType']['UNIVER_UNKNOWN']),$=pe([(0x0,n[_0x3e7182(0x17b)])(t[_0x3e7182(0x1a3)]),Q(0x1,(0x0,n[_0x3e7182(0x178)])(n[_0x3e7182(0x1c4)])),Q(0x2,n[_0x3e7182(0x1c0)]),Q(0x3,n[_0x3e7182(0x1a1)])],$),exports[_0x3e7182(0x15a)]=X,Object[_0x3e7182(0x158)](exports,_0x3e7182(0x15f),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x3e7182(0x1c9)]=q,exports[_0x3e7182(0x159)]=re,exports[_0x3e7182(0x1bc)]=E,exports[_0x3e7182(0x165)]=w,exports[_0x3e7182(0x1b4)]=ie,exports[_0x3e7182(0x164)]=S,exports['getInkModelBounds']=R,exports[_0x3e7182(0x183)]=x,exports[_0x3e7182(0x1a6)]=C,exports['isInkPenHandleVisible']=p,exports[_0x3e7182(0x1a9)]=ae,exports[_0x3e7182(0x184)]=T;
1
+ const _0x4433f9=_0x3cdc;(function(_0xf28318,_0xd6a56){const _0x5b4825=_0x3cdc,_0x3dbb53=_0xf28318();while(!![]){try{const _0x52c0df=parseInt(_0x5b4825(0x1d1))/0x1*(-parseInt(_0x5b4825(0x1e0))/0x2)+-parseInt(_0x5b4825(0x1f0))/0x3*(parseInt(_0x5b4825(0x203))/0x4)+parseInt(_0x5b4825(0x228))/0x5*(-parseInt(_0x5b4825(0x1ea))/0x6)+parseInt(_0x5b4825(0x229))/0x7+-parseInt(_0x5b4825(0x21f))/0x8+parseInt(_0x5b4825(0x200))/0x9+parseInt(_0x5b4825(0x22a))/0xa;if(_0x52c0df===_0xd6a56)break;else _0x3dbb53['push'](_0x3dbb53['shift']());}catch(_0x28b03f){_0x3dbb53['push'](_0x3dbb53['shift']());}}}(_0x3bc4,0xbb42e),Object[_0x4433f9(0x1fa)](exports,Symbol[_0x4433f9(0x23c)],{'value':_0x4433f9(0x1fe)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x3b31d0){return{'x':_0x3b31d0['x'],'y':_0x3b31d0['y']};}function a(_0x99cae0){const _0x2cd751=_0x4433f9;return{..._0x99cae0,'in':_0x99cae0['in']?i(_0x99cae0['in']):void 0x0,'out':_0x99cae0[_0x2cd751(0x22e)]?i(_0x99cae0['out']):void 0x0};}function o(_0x1794d0){const _0x2ec0e0=_0x4433f9;return{'kind':'pen','closed':_0x1794d0[_0x2ec0e0(0x207)],'anchors':_0x1794d0[_0x2ec0e0(0x239)][_0x2ec0e0(0x1da)](a)};}function s(_0xa41259,_0x4132b6,_0x16bb80){return{'x':_0xa41259['x']+(_0x4132b6['x']-_0xa41259['x'])*_0x16bb80,'y':_0xa41259['y']+(_0x4132b6['y']-_0xa41259['y'])*_0x16bb80};}function c(_0x56796c,_0x4e2cd9){const _0x59561b=_0x4433f9;return Math[_0x59561b(0x1f5)](_0x56796c['x']-_0x4e2cd9['x'],_0x56796c['y']-_0x4e2cd9['y']);}function l(_0x3877fd){let _0x2ae24d=Math['hypot'](_0x3877fd['x'],_0x3877fd['y']);return _0x2ae24d<r?{'x':0x1,'y':0x0}:{'x':_0x3877fd['x']/_0x2ae24d,'y':_0x3877fd['y']/_0x2ae24d};}function u(_0x24b901,_0x377d33,_0x4c512a=c(_0x24b901,_0x377d33)){let _0x5f4f31=l({'x':_0x24b901['x']-_0x377d33['x'],'y':_0x24b901['y']-_0x377d33['y']});return{'x':_0x24b901['x']+_0x5f4f31['x']*_0x4c512a,'y':_0x24b901['y']+_0x5f4f31['y']*_0x4c512a};}function d(_0x1a127c,_0x2f080d){const _0x4ab283=_0x4433f9;let {anchors:_0x4f5886}=_0x1a127c;return _0x4f5886[_0x4ab283(0x211)]<0x2||_0x2f080d<0x0?null:_0x2f080d<_0x4f5886[_0x4ab283(0x211)]-0x1?{'startIndex':_0x2f080d,'endIndex':_0x2f080d+0x1,'start':_0x4f5886[_0x2f080d],'end':_0x4f5886[_0x2f080d+0x1]}:_0x1a127c[_0x4ab283(0x207)]&&_0x2f080d===_0x4f5886[_0x4ab283(0x211)]-0x1?{'startIndex':_0x4f5886[_0x4ab283(0x211)]-0x1,'endIndex':0x0,'start':_0x4f5886[_0x4f5886['length']-0x1],'end':_0x4f5886[0x0]}:null;}function f(_0x20e473,_0x3a30f0){const _0x11bca6=_0x4433f9;let _0x3d1427=d(_0x20e473,_0x3a30f0);return _0x3d1427?[_0x3d1427[_0x11bca6(0x1f7)],_0x3d1427[_0x11bca6(0x1f7)]['out']??_0x3d1427[_0x11bca6(0x1f7)],_0x3d1427[_0x11bca6(0x20c)]['in']??_0x3d1427[_0x11bca6(0x20c)],_0x3d1427[_0x11bca6(0x20c)]]:null;}function ee(_0x10c436,_0x15a044){const _0x4d1b3b=_0x4433f9;return _0x15a044===_0x4d1b3b(0x23b)?_0x10c436:_0x10c436[_0x15a044]??null;}function p(_0x4d6aac,_0x12f9e6,_0xb9ccd5){const _0x1c26ba=_0x4433f9;return _0xb9ccd5==='anchor'||_0x4d6aac[_0x1c26ba(0x207)]?!0x0:_0xb9ccd5==='in'?_0x12f9e6>0x0:_0x12f9e6<_0x4d6aac[_0x1c26ba(0x239)]['length']-0x1;}function m(_0x2bf9cf,_0x4e47be){let [_0x1a67e5,_0x547db1,_0x591bf7,_0x5d02e3]=_0x2bf9cf,_0x2ecf2b=s(_0x1a67e5,_0x547db1,_0x4e47be),_0x3d4ef5=s(_0x547db1,_0x591bf7,_0x4e47be),_0x310705=s(_0x591bf7,_0x5d02e3,_0x4e47be);return s(s(_0x2ecf2b,_0x3d4ef5,_0x4e47be),s(_0x3d4ef5,_0x310705,_0x4e47be),_0x4e47be);}function h(_0x25ae4d,_0x3cacad){let [_0x3de6de,_0x1524ff,_0x5b1844,_0x2bad4c]=_0x25ae4d,_0x11dadd=s(_0x3de6de,_0x1524ff,_0x3cacad),_0x5eafb5=s(_0x1524ff,_0x5b1844,_0x3cacad),_0x7a52d4=s(_0x5b1844,_0x2bad4c,_0x3cacad),_0x2cf9ad=s(_0x11dadd,_0x5eafb5,_0x3cacad),_0x1c6278=s(_0x5eafb5,_0x7a52d4,_0x3cacad),_0x4e0db0=s(_0x2cf9ad,_0x1c6278,_0x3cacad);return{'left':[_0x3de6de,_0x11dadd,_0x2cf9ad,_0x4e0db0],'right':[_0x4e0db0,_0x1c6278,_0x7a52d4,_0x2bad4c]};}function g(_0x18a382,_0x139657,_0x50d622){const _0x20bab7=_0x4433f9;let _0x3b9d58=_0x50d622['x']-_0x139657['x'],_0x2c63bb=_0x50d622['y']-_0x139657['y'],_0x3b3143=_0x3b9d58*_0x3b9d58+_0x2c63bb*_0x2c63bb,_0x182d06=_0x3b3143<=r?0x0:Math[_0x20bab7(0x1e9)](0x0,Math[_0x20bab7(0x201)](0x1,((_0x18a382['x']-_0x139657['x'])*_0x3b9d58+(_0x18a382['y']-_0x139657['y'])*_0x2c63bb)/_0x3b3143)),_0x32aad5={'x':_0x139657['x']+_0x3b9d58*_0x182d06,'y':_0x139657['y']+_0x2c63bb*_0x182d06};return{'point':_0x32aad5,'ratio':_0x182d06,'distance':c(_0x18a382,_0x32aad5)};}function te(_0x5ade7c,_0x291bcb,_0x22c80e){const _0x5a4f8a=_0x4433f9;return g(_0x5ade7c,_0x291bcb,_0x22c80e)[_0x5a4f8a(0x1f4)]**0x2;}function _(_0x942770,_0x3cf47e){const _0x334761=_0x4433f9;if(_0x942770[_0x334761(0x211)]<=0x2)return _0x942770[_0x334761(0x1da)](i);let _0x2e56f8=0x0,_0x40cc58=0x0,_0x52a8b1=_0x942770[0x0],_0x59a4a3=_0x942770[_0x942770[_0x334761(0x211)]-0x1],_0x44acab=_0x3cf47e*_0x3cf47e;for(let _0x27bd6d=0x1;_0x27bd6d<_0x942770['length']-0x1;_0x27bd6d++){let _0x2890f3=te(_0x942770[_0x27bd6d],_0x52a8b1,_0x59a4a3);_0x2890f3>_0x2e56f8&&(_0x2e56f8=_0x2890f3,_0x40cc58=_0x27bd6d);}if(_0x2e56f8<=_0x44acab)return[i(_0x52a8b1),i(_0x59a4a3)];let _0x14e645=_(_0x942770[_0x334761(0x23e)](0x0,_0x40cc58+0x1),_0x3cf47e),_0x3936a2=_(_0x942770[_0x334761(0x23e)](_0x40cc58),_0x3cf47e);return[..._0x14e645[_0x334761(0x23e)](0x0,-0x1),..._0x3936a2];}function ne(_0x4e621c,_0x5ad6ed){let _0x55610e=_0x4e621c[_0x5ad6ed],_0x4aba85=_0x4e621c[_0x5ad6ed+0x1],_0x226066=_0x4e621c[_0x5ad6ed-0x1]??_0x55610e;return{'x':_0x55610e['x']+(_0x4aba85['x']-_0x226066['x'])/0x6,'y':_0x55610e['y']+(_0x4aba85['y']-_0x226066['y'])/0x6};}function v(_0x50174b,_0x11af96){let _0x3cb398=_0x50174b[_0x11af96],_0x4ce10e=_0x50174b[_0x11af96-0x1],_0xebb98f=_0x50174b[_0x11af96+0x1]??_0x3cb398;return{'x':_0x3cb398['x']-(_0xebb98f['x']-_0x4ce10e['x'])/0x6,'y':_0x3cb398['y']-(_0xebb98f['y']-_0x4ce10e['y'])/0x6};}function y(_0x262911,_0x7d936){const _0x374436=_0x4433f9;let _0x401d27=_0x262911[_0x374436(0x239)][_0x7d936],_0x6b7357=_0x262911[_0x374436(0x239)][_0x7d936-0x1]??(_0x262911[_0x374436(0x207)]?_0x262911[_0x374436(0x239)][_0x262911[_0x374436(0x239)][_0x374436(0x211)]-0x1]:null),_0x250c60=_0x262911[_0x374436(0x239)][_0x7d936+0x1]??(_0x262911['closed']?_0x262911['anchors'][0x0]:null),_0x5fd7e2=_0x6b7357&&_0x250c60?l({'x':_0x250c60['x']-_0x6b7357['x'],'y':_0x250c60['y']-_0x6b7357['y']}):_0x250c60?l({'x':_0x250c60['x']-_0x401d27['x'],'y':_0x250c60['y']-_0x401d27['y']}):_0x6b7357?l({'x':_0x401d27['x']-_0x6b7357['x'],'y':_0x401d27['y']-_0x6b7357['y']}):{'x':0x1,'y':0x0},_0x161389=_0x6b7357&&_0x250c60?Math[_0x374436(0x1e9)](0x32,c(_0x6b7357,_0x250c60)/0x4):0x32;return{'in':{'x':_0x401d27['x']-_0x5fd7e2['x']*_0x161389,'y':_0x401d27['y']-_0x5fd7e2['y']*_0x161389},'out':{'x':_0x401d27['x']+_0x5fd7e2['x']*_0x161389,'y':_0x401d27['y']+_0x5fd7e2['y']*_0x161389}};}function b(_0x304583,_0x1fbaa3){const _0x2ab80b=_0x4433f9;let _0x32f496=_0x304583[_0x1fbaa3],_0x29201c=_0x1fbaa3==='in'?'out':'in',_0x33a168=_0x304583[_0x29201c];if(_0x32f496){if(_0x304583['pointType']==='symmetric'){_0x304583[_0x29201c]=u(_0x304583,_0x32f496);return;}_0x304583[_0x2ab80b(0x237)]==='smooth'&&(_0x304583[_0x29201c]=u(_0x304583,_0x32f496,_0x33a168?c(_0x304583,_0x33a168):c(_0x304583,_0x32f496)));}}function x(_0x47674a,_0x8eac5b){const _0x237cd2=_0x4433f9;let _0xe7012a=o(_0x47674a);return!_0x8eac5b||_0xe7012a[_0x237cd2(0x207)]||_0xe7012a[_0x237cd2(0x239)][_0x237cd2(0x211)]===0x0||_0xe7012a[_0x237cd2(0x239)]['push']({'id':_0x237cd2(0x1f9),'x':_0x8eac5b['x'],'y':_0x8eac5b['y'],'pointType':_0x237cd2(0x1db)}),_0xe7012a;}function re(_0x2ed4b3,_0x3d73f2={}){const _0x35b872=_0x4433f9;let _0xbc4b47=Math['max'](0x0,_0x3d73f2[_0x35b872(0x1d3)]??Math[_0x35b872(0x1e9)](0x4,_0x2ed4b3[_0x35b872(0x1f8)]*0.35)),_0x25d021=_0x3d73f2['createId']??(_0x4fa7b9=>_0x35b872(0x238)+_0x4fa7b9),_0x4b9b42=_(_0x2ed4b3['points'],_0xbc4b47),_0x5d972c=_0x4b9b42['map']((_0x53f581,_0x37c57e)=>({'id':_0x25d021(_0x37c57e),'x':_0x53f581['x'],'y':_0x53f581['y'],'pointType':_0x35b872(0x1ed)}));for(let _0x51ee24=0x0;_0x51ee24<_0x5d972c[_0x35b872(0x211)]-0x1;_0x51ee24++)_0x5d972c[_0x51ee24][_0x35b872(0x22e)]=ne(_0x4b9b42,_0x51ee24),_0x5d972c[_0x51ee24+0x1]['in']=v(_0x4b9b42,_0x51ee24+0x1);return{'kind':_0x35b872(0x23d),'closed':!0x1,'anchors':_0x5d972c};}function ie(_0x2d2159,_0x25edb9,_0x11595d){const _0x56d3f4=_0x4433f9;let _0x6ae50c=null,_0x54e294=[_0x56d3f4(0x23b),'in',_0x56d3f4(0x22e)];return _0x2d2159['anchors'][_0x56d3f4(0x20b)]((_0x552172,_0x558390)=>{const _0x285c6a=_0x56d3f4;_0x54e294[_0x285c6a(0x20b)](_0xb47346=>{if(!p(_0x2d2159,_0x558390,_0xb47346))return;let _0x4a6934=ee(_0x552172,_0xb47346);if(!_0x4a6934)return;let _0x53f09a=c(_0x25edb9,_0x4a6934);_0x53f09a>_0x11595d||_0x6ae50c&&_0x53f09a>=_0x6ae50c['distance']||(_0x6ae50c={'handle':{'kind':_0xb47346,'anchorId':_0x552172['id']},'point':i(_0x4a6934),'distance':_0x53f09a});});}),_0x6ae50c;}function S(_0x5e32fa,_0x51c643,_0x1bd979){const _0x5f31c0=_0x4433f9;let _0x4b211f=null,_0x54da2c=_0x5e32fa[_0x5f31c0(0x207)]?_0x5e32fa[_0x5f31c0(0x239)][_0x5f31c0(0x211)]:Math[_0x5f31c0(0x1e9)](0x0,_0x5e32fa[_0x5f31c0(0x239)][_0x5f31c0(0x211)]-0x1);for(let _0x243b3b=0x0;_0x243b3b<_0x54da2c;_0x243b3b++){let _0x5d5d0a=f(_0x5e32fa,_0x243b3b);if(!_0x5d5d0a)continue;let _0x3661c1=m(_0x5d5d0a,0x0);for(let _0x151bb2=0x1;_0x151bb2<=0x20;_0x151bb2++){let _0x69416=m(_0x5d5d0a,_0x151bb2/0x20),_0x2837cc=g(_0x51c643,_0x3661c1,_0x69416),_0x2ce2ff=(_0x151bb2-0x1+_0x2837cc['ratio'])/0x20;(!_0x4b211f||_0x2837cc[_0x5f31c0(0x1f4)]<_0x4b211f[_0x5f31c0(0x1f4)])&&(_0x4b211f={'segmentIndex':_0x243b3b,'t':_0x2ce2ff,'point':_0x2837cc['point'],'distance':_0x2837cc[_0x5f31c0(0x1f4)]}),_0x3661c1=_0x69416;}}return _0x4b211f&&_0x4b211f['distance']<=_0x1bd979?_0x4b211f:null;}function C(_0x24b325,_0xb035fd,_0x4091c9){const _0x4df3f8=_0x4433f9;let _0x76bde0=o(_0x24b325),_0x24931e=d(_0x76bde0,_0xb035fd[_0x4df3f8(0x21d)]),_0x21ef10=f(_0x76bde0,_0xb035fd['segmentIndex']);if(!_0x24931e||!_0x21ef10)return _0x76bde0;let _0x4547e7=h(_0x21ef10,Math['max'](0x0,Math[_0x4df3f8(0x201)](0x1,_0xb035fd['t']))),_0x58ff50={'id':_0x4091c9(),'x':_0x4547e7[_0x4df3f8(0x21a)][0x3]['x'],'y':_0x4547e7[_0x4df3f8(0x21a)][0x3]['y'],'in':i(_0x4547e7['left'][0x2]),'out':i(_0x4547e7['right'][0x1]),'pointType':_0x4df3f8(0x1ed)};return _0x76bde0['anchors'][_0x24931e[_0x4df3f8(0x1ee)]]['out']=i(_0x4547e7[_0x4df3f8(0x21a)][0x1]),_0x76bde0['anchors'][_0x24931e[_0x4df3f8(0x208)]]['in']=i(_0x4547e7[_0x4df3f8(0x219)][0x2]),_0x76bde0['anchors']['splice'](_0x24931e[_0x4df3f8(0x1ee)]+0x1,0x0,_0x58ff50),_0x76bde0;}function w(_0x48ab98,_0x27023b){const _0x3d01c8=_0x4433f9;let _0x204a5a=o(_0x48ab98);return _0x204a5a['anchors']=_0x204a5a[_0x3d01c8(0x239)][_0x3d01c8(0x22d)](_0x1cb025=>_0x1cb025['id']!==_0x27023b),_0x204a5a[_0x3d01c8(0x207)]&&_0x204a5a['anchors'][_0x3d01c8(0x211)]<0x3&&(_0x204a5a[_0x3d01c8(0x207)]=!0x1),_0x204a5a;}function T(_0xf8336a,_0x58bdb0,_0x40901e){const _0x44979a=_0x4433f9;let _0x1fc9f0=o(_0xf8336a),_0x2356cd=_0x1fc9f0[_0x44979a(0x239)][_0x44979a(0x223)](_0x566f67=>_0x566f67['id']===_0x58bdb0),_0x16c259=_0x1fc9f0[_0x44979a(0x239)][_0x2356cd];if(!_0x16c259)return _0x1fc9f0;if(_0x16c259[_0x44979a(0x237)]=_0x40901e,_0x40901e===_0x44979a(0x1db))return delete _0x16c259['in'],delete _0x16c259['out'],_0x1fc9f0;let _0xac84f6=y(_0x1fc9f0,_0x2356cd);if(_0x16c259['in']=_0x16c259['in']?i(_0x16c259['in']):_0xac84f6['in'],_0x16c259[_0x44979a(0x22e)]=_0x16c259['out']?i(_0x16c259[_0x44979a(0x22e)]):_0xac84f6[_0x44979a(0x22e)],_0x40901e==='symmetric'){let _0x10aa0c=Math['max'](c(_0x16c259,_0x16c259['in']),c(_0x16c259,_0x16c259[_0x44979a(0x22e)]),0x32),_0x5cbbf5=l({'x':_0x16c259[_0x44979a(0x22e)]['x']-_0x16c259['x'],'y':_0x16c259['out']['y']-_0x16c259['y']});_0x16c259[_0x44979a(0x22e)]={'x':_0x16c259['x']+_0x5cbbf5['x']*_0x10aa0c,'y':_0x16c259['y']+_0x5cbbf5['y']*_0x10aa0c},_0x16c259['in']={'x':_0x16c259['x']-_0x5cbbf5['x']*_0x10aa0c,'y':_0x16c259['y']-_0x5cbbf5['y']*_0x10aa0c};}else _0x40901e===_0x44979a(0x206)&&b(_0x16c259,'out');return _0x1fc9f0;}function E(_0x30f049,_0x5bd527){const _0x30bb96=_0x4433f9;let _0x1229af=_0x30f049[_0x30bb96(0x239)][_0x30bb96(0x218)](_0x848a=>_0x848a['id']===_0x5bd527),_0x54f34c=(_0x1229af==null?void 0x0:_0x1229af[_0x30bb96(0x237)])??_0x30bb96(0x1db);return T(_0x30f049,_0x5bd527,_0x54f34c===_0x30bb96(0x1db)?_0x30bb96(0x206):_0x54f34c===_0x30bb96(0x206)?_0x30bb96(0x1e7):_0x54f34c===_0x30bb96(0x1e7)?'free':_0x30bb96(0x1db));}function ae(_0x253851,_0x2023c5,_0x15d9a9){const _0x3235a1=_0x4433f9;let _0x13105c=o(_0x253851),_0x4f3f61=_0x13105c['anchors'][_0x3235a1(0x218)](_0x211f44=>_0x211f44['id']===_0x2023c5['anchorId']);if(!_0x4f3f61)return _0x13105c;if(_0x2023c5[_0x3235a1(0x1dd)]===_0x3235a1(0x23b)){let _0x7c67ac={'x':_0x15d9a9['x']-_0x4f3f61['x'],'y':_0x15d9a9['y']-_0x4f3f61['y']};return _0x4f3f61['x']=_0x15d9a9['x'],_0x4f3f61['y']=_0x15d9a9['y'],_0x4f3f61['in']&&={'x':_0x4f3f61['in']['x']+_0x7c67ac['x'],'y':_0x4f3f61['in']['y']+_0x7c67ac['y']},_0x4f3f61['out']&&={'x':_0x4f3f61[_0x3235a1(0x22e)]['x']+_0x7c67ac['x'],'y':_0x4f3f61[_0x3235a1(0x22e)]['y']+_0x7c67ac['y']},_0x13105c;}return _0x4f3f61[_0x2023c5['kind']]=i(_0x15d9a9),_0x4f3f61[_0x3235a1(0x237)]===_0x3235a1(0x1db)&&(_0x4f3f61[_0x3235a1(0x237)]=_0x3235a1(0x1ed)),b(_0x4f3f61,_0x2023c5[_0x3235a1(0x1dd)]),_0x13105c;}const D=1e-9;function O(_0x41fdb){const _0x5c3b8f=_0x4433f9;let _0x4745fa=Math[_0x5c3b8f(0x20d)](_0x41fdb*0x2710)/0x2710;return Object['is'](_0x4745fa,-0x0)?'0':String(_0x4745fa);}function k(_0x5bee67){return O(_0x5bee67['x'])+'\x20'+O(_0x5bee67['y']);}function A(_0x514eb7,_0x48a3f7){return{'x':_0x514eb7['x']-_0x48a3f7['x'],'y':_0x514eb7['y']-_0x48a3f7['y']};}function j(_0x3d56ad,_0x275556,_0x13ee4f,_0x224432,_0x5f410e){let _0x30c52e=0x1-_0x5f410e;return{'x':_0x30c52e*_0x30c52e*_0x30c52e*_0x3d56ad['x']+0x3*_0x30c52e*_0x30c52e*_0x5f410e*_0x275556['x']+0x3*_0x30c52e*_0x5f410e*_0x5f410e*_0x13ee4f['x']+_0x5f410e*_0x5f410e*_0x5f410e*_0x224432['x'],'y':_0x30c52e*_0x30c52e*_0x30c52e*_0x3d56ad['y']+0x3*_0x30c52e*_0x30c52e*_0x5f410e*_0x275556['y']+0x3*_0x30c52e*_0x5f410e*_0x5f410e*_0x13ee4f['y']+_0x5f410e*_0x5f410e*_0x5f410e*_0x224432['y']};}function M(_0x3fe064,_0x49a106,_0x20b6ef,_0x65ed23){const _0x20796d=_0x4433f9;let _0x4e4500=-_0x3fe064+0x3*_0x49a106-0x3*_0x20b6ef+_0x65ed23,_0x4b34aa=0x3*_0x3fe064-0x6*_0x49a106+0x3*_0x20b6ef,_0x51c128=-0x3*_0x3fe064+0x3*_0x49a106,_0x488fe6=[];if(Math['abs'](_0x4e4500)<D){if(Math[_0x20796d(0x1d4)](_0x4b34aa)<D)return _0x488fe6;let _0x144e15=-_0x51c128/(0x2*_0x4b34aa);return _0x144e15>0x0&&_0x144e15<0x1&&_0x488fe6[_0x20796d(0x202)](_0x144e15),_0x488fe6;}let _0x5ca036=_0x4b34aa*_0x4b34aa-0x3*_0x4e4500*_0x51c128;if(_0x5ca036<0x0)return _0x488fe6;let _0x1ea684=Math[_0x20796d(0x1e5)](Math[_0x20796d(0x1e9)](0x0,_0x5ca036)),_0x1d459a=(-_0x4b34aa+_0x1ea684)/(0x3*_0x4e4500),_0x3591a3=(-_0x4b34aa-_0x1ea684)/(0x3*_0x4e4500);return _0x1d459a>0x0&&_0x1d459a<0x1&&_0x488fe6[_0x20796d(0x202)](_0x1d459a),_0x3591a3>0x0&&_0x3591a3<0x1&&Math[_0x20796d(0x1d4)](_0x3591a3-_0x1d459a)>D&&_0x488fe6[_0x20796d(0x202)](_0x3591a3),_0x488fe6;}function N(_0x1d9289,_0x192423,_0x2ee1dd,_0x15ba94,_0x2b788d){const _0x56d1a7=_0x4433f9;_0x1d9289[_0x56d1a7(0x202)](_0x192423,_0x2b788d),new Set([...M(_0x192423['x'],_0x2ee1dd['x'],_0x15ba94['x'],_0x2b788d['x']),...M(_0x192423['y'],_0x2ee1dd['y'],_0x15ba94['y'],_0x2b788d['y'])])[_0x56d1a7(0x20b)](_0x3cfb79=>{_0x1d9289['push'](j(_0x192423,_0x2ee1dd,_0x15ba94,_0x2b788d,_0x3cfb79));});}function P(_0x3133ce){const _0x55920d=_0x4433f9;let _0x2dd47e=_0x3133ce[_0x55920d(0x239)];if(_0x2dd47e[_0x55920d(0x211)]<=0x1)return _0x2dd47e;let _0x1beeca=[];for(let _0x32140b=0x1;_0x32140b<_0x2dd47e[_0x55920d(0x211)];_0x32140b++){let _0xe137ac=_0x2dd47e[_0x32140b-0x1],_0x295b6e=_0x2dd47e[_0x32140b];N(_0x1beeca,_0xe137ac,_0xe137ac[_0x55920d(0x22e)]??_0xe137ac,_0x295b6e['in']??_0x295b6e,_0x295b6e);}if(_0x3133ce[_0x55920d(0x207)]&&_0x2dd47e[_0x55920d(0x211)]>0x1){let _0x385144=_0x2dd47e[_0x2dd47e['length']-0x1],_0x1e9f28=_0x2dd47e[0x0];N(_0x1beeca,_0x385144,_0x385144[_0x55920d(0x22e)]??_0x385144,_0x1e9f28['in']??_0x1e9f28,_0x1e9f28);}return _0x1beeca;}function F(_0x2384b6){const _0x28701a=_0x4433f9;let _0x491b48=_0x2384b6[_0x28701a(0x224)];if(_0x491b48['length']<=0x1)return _0x491b48;let _0x3c51c7=[];for(let _0x27d4eb=0x0;_0x27d4eb<_0x491b48['length']-0x1;_0x27d4eb++){let _0x2c88ea=_0x491b48[_0x27d4eb],_0x5ad0cb=_0x491b48[_0x27d4eb+0x1],_0x44a192=_0x491b48[_0x27d4eb-0x1]??_0x2c88ea,_0x4d28ca=_0x491b48[_0x27d4eb+0x2]??_0x5ad0cb;N(_0x3c51c7,_0x2c88ea,{'x':_0x2c88ea['x']+(_0x5ad0cb['x']-_0x44a192['x'])/0x6,'y':_0x2c88ea['y']+(_0x5ad0cb['y']-_0x44a192['y'])/0x6},{'x':_0x5ad0cb['x']-(_0x4d28ca['x']-_0x2c88ea['x'])/0x6,'y':_0x5ad0cb['y']-(_0x4d28ca['y']-_0x2c88ea['y'])/0x6},_0x5ad0cb);}return _0x3c51c7;}function I(_0xbcd6f8){const _0x59f0ed=_0x4433f9;return _0xbcd6f8[_0x59f0ed(0x1dd)]===_0x59f0ed(0x23d)?P(_0xbcd6f8):F(_0xbcd6f8);}function L(_0xc5c44d){const _0x486030=_0x4433f9;let _0x4e7465=Math[_0x486030(0x20d)](_0xc5c44d*0x2710)/0x2710;return Object['is'](_0x4e7465,-0x0)?0x0:_0x4e7465;}function R(_0x669f9f){const _0xe543ea=_0x4433f9;let _0x55a1b0=I(_0x669f9f);if(_0x55a1b0[_0xe543ea(0x211)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x5a3e18=Math[_0xe543ea(0x201)](..._0x55a1b0[_0xe543ea(0x1da)](_0x537229=>_0x537229['x'])),_0x13475e=Math[_0xe543ea(0x201)](..._0x55a1b0[_0xe543ea(0x1da)](_0x1d135c=>_0x1d135c['y'])),_0x12c5d2=Math[_0xe543ea(0x1e9)](..._0x55a1b0['map'](_0x224437=>_0x224437['x'])),_0x18ae7b=Math[_0xe543ea(0x1e9)](..._0x55a1b0[_0xe543ea(0x1da)](_0x42b54d=>_0x42b54d['y']));return{'left':L(_0x5a3e18),'top':L(_0x13475e),'width':L(Math['max'](0x1,_0x12c5d2-_0x5a3e18)),'height':L(Math[_0xe543ea(0x1e9)](0x1,_0x18ae7b-_0x13475e))};}function z(_0x3da000,_0x2ce34a){const _0x18dcd1=_0x4433f9;let _0x537bdf=_0x3da000['anchors'];if(_0x537bdf[_0x18dcd1(0x211)]===0x0)return'';let _0x4f7cde=['M\x20'+k(A(_0x537bdf[0x0],_0x2ce34a))];for(let _0xd27c3f=0x1;_0xd27c3f<_0x537bdf[_0x18dcd1(0x211)];_0xd27c3f++){let _0x11558e=_0x537bdf[_0xd27c3f-0x1],_0x6db62a=_0x537bdf[_0xd27c3f],_0xc88b2=_0x11558e[_0x18dcd1(0x22e)]??_0x11558e,_0x9e9d80=_0x6db62a['in']??_0x6db62a;_0x4f7cde['push']('C\x20'+k(A(_0xc88b2,_0x2ce34a))+'\x20'+k(A(_0x9e9d80,_0x2ce34a))+'\x20'+k(A(_0x6db62a,_0x2ce34a)));}if(_0x3da000['closed']&&_0x537bdf[_0x18dcd1(0x211)]>0x1){let _0x51c8d3=_0x537bdf[_0x537bdf[_0x18dcd1(0x211)]-0x1],_0x5d3bdd=_0x537bdf[0x0],_0x5df831=_0x51c8d3[_0x18dcd1(0x22e)]??_0x51c8d3,_0x3139c2=_0x5d3bdd['in']??_0x5d3bdd;_0x4f7cde[_0x18dcd1(0x202)]('C\x20'+k(A(_0x5df831,_0x2ce34a))+'\x20'+k(A(_0x3139c2,_0x2ce34a))+'\x20'+k(A(_0x5d3bdd,_0x2ce34a))),_0x4f7cde[_0x18dcd1(0x202)]('Z');}return _0x4f7cde['join']('\x20');}function B(_0x13411b,_0x410e9d){const _0x375025=_0x4433f9;let _0x21b20d=_0x13411b[_0x375025(0x224)][_0x375025(0x1da)](_0x224701=>A(_0x224701,_0x410e9d));if(_0x21b20d[_0x375025(0x211)]===0x0)return'';if(_0x21b20d['length']===0x1)return'M\x20'+k(_0x21b20d[0x0]);let _0x29cc54=['M\x20'+k(_0x21b20d[0x0])];for(let _0x3be646=0x0;_0x3be646<_0x21b20d[_0x375025(0x211)]-0x1;_0x3be646++){let _0x517270=_0x21b20d[_0x3be646],_0x16f7df=_0x21b20d[_0x3be646+0x1],_0x39e2ef=_0x21b20d[_0x3be646-0x1]??_0x517270,_0x1fc811=_0x21b20d[_0x3be646+0x2]??_0x16f7df,_0x3a6017={'x':_0x517270['x']+(_0x16f7df['x']-_0x39e2ef['x'])/0x6,'y':_0x517270['y']+(_0x16f7df['y']-_0x39e2ef['y'])/0x6},_0x5aee96={'x':_0x16f7df['x']-(_0x1fc811['x']-_0x517270['x'])/0x6,'y':_0x16f7df['y']-(_0x1fc811['y']-_0x517270['y'])/0x6};_0x29cc54[_0x375025(0x202)]('C\x20'+k(_0x3a6017)+'\x20'+k(_0x5aee96)+'\x20'+k(_0x16f7df));}return _0x29cc54[_0x375025(0x1d5)]('\x20');}function V(_0x57d581,_0x577e0c){const _0x3c5885=_0x4433f9;return _0x57d581[_0x3c5885(0x1dd)]===_0x3c5885(0x23d)?z(_0x57d581,_0x577e0c):B(_0x57d581,_0x577e0c);}function H(_0x5b83f0,_0x13d2f5){const _0x32d171=_0x4433f9;return _0x13d2f5!=null&&_0x13d2f5['color']?_0x13d2f5[_0x32d171(0x22b)]:_0x5b83f0[_0x32d171(0x1dd)]===_0x32d171(0x23d)?'#f54a45':_0x5b83f0[_0x32d171(0x22b)];}function U(_0x121182,_0x6fc792){const _0x2454ae=_0x4433f9;return(_0x6fc792==null?void 0x0:_0x6fc792[_0x2454ae(0x1f8)])===void 0x0?_0x121182[_0x2454ae(0x1dd)]===_0x2454ae(0x23d)?0x2:_0x121182[_0x2454ae(0x1f8)]:_0x6fc792[_0x2454ae(0x1f8)];}function _0x3bc4(){const _0x2a3cb1=['buildInkCustomShapePayload','none','createIdentifier','UniverLicensePlugin','find','right','left','call','add','segmentIndex','DependentOn','10594856DDKGNt','norm','decorate','_commandService','findIndex','points','object','beginInkMode','disposeWithMe','1408170uwsIyx','1558914sjOrqj','39570860RLZGiy','color','CommandType','filter','out','convertBrushModelToPenModel','_configService','type','opacity','_adapters','toDisposable','function','1.0.0','pointType','ink-centerline-','anchors','OPERATION','anchor','toStringTag','pen','slice','444408qcNKiG','deleteInkPenAnchor','tolerance','abs','join','createCustomShape','UNIVER_UNKNOWN','indexOf','ShapeLineJoinEnum','map','corner','get','kind','iterator','symbol','2XKHVce','ShapeLineTypeEnum','Injector','moveInkPenAnchorPoint','merge','sqrt','onStarting','symmetric','UniverInkPlugin','max','12jQJfko','_config','ICommandService','free','startIndex','string','1842057rLqAbn','SolidFill','UNIVER_INK_PLUGIN','UniverInstanceType','distance','hypot','packageName','start','width','__ink-preview-anchor__','defineProperty','ink.host-adapter.service','insertInkPenAnchorAt','Round','Module','Plugin','1325745uCNXPW','min','push','8VbKCCW','ink.config','default','smooth','closed','endIndex','getOwnPropertyDescriptor','findClosestInkPenHandle','forEach','end','round','Rect','_injector','@univerjs-pro/ink','length','ShapeFillEnum','registerCommand'];_0x3bc4=function(){return _0x2a3cb1;};return _0x3bc4();}function W(_0x41aa78,_0x27f1fc){const _0x3552f6=_0x4433f9;return(_0x27f1fc==null?void 0x0:_0x27f1fc['opacity'])===void 0x0?_0x41aa78[_0x3552f6(0x1dd)]===_0x3552f6(0x23d)?void 0x0:_0x41aa78[_0x3552f6(0x232)]:_0x27f1fc[_0x3552f6(0x232)];}function oe(_0x3c5cdd,_0x14c4c4){const _0x20558a=_0x4433f9;let _0x5a57ba=R(_0x3c5cdd),_0x2f3099=V(_0x3c5cdd,{'x':_0x5a57ba[_0x20558a(0x21a)],'y':_0x5a57ba['top']}),_0x11b48e=_0x3c5cdd[_0x20558a(0x1dd)]===_0x20558a(0x23d)&&_0x3c5cdd['closed'],_0x3c5d82=_0x14c4c4==null?void 0x0:_0x14c4c4['fillColor'];return{'shapeType':e['ShapeTypeEnum'][_0x20558a(0x20e)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x5a57ba[_0x20558a(0x1f8)],'h':_0x5a57ba['height'],'fill':_0x11b48e?_0x20558a(0x220):_0x20558a(0x215),'stroke':!0x0,'data':_0x2f3099,'dataArray':K(_0x3c5cdd,{'x':_0x5a57ba[_0x20558a(0x21a)],'y':_0x5a57ba['top']})}]},'fill':_0x11b48e&&_0x3c5d82?{'color':_0x3c5d82,'fillType':e[_0x20558a(0x212)][_0x20558a(0x1f1)]}:{'fillType':e[_0x20558a(0x212)]['NoFill']},'stroke':{'color':H(_0x3c5cdd,_0x14c4c4),'width':U(_0x3c5cdd,_0x14c4c4),'opacity':W(_0x3c5cdd,_0x14c4c4),'lineStrokeType':e[_0x20558a(0x1e1)]['SolidLine'],'capType':e['ShapeLineCapEnum']['Round'],'lineJoinType':e[_0x20558a(0x1d9)][_0x20558a(0x1fd)]}};}function G(_0x6872e9,_0x2d0c01){return{'x':_0x6872e9['x']-_0x2d0c01['x'],'y':_0x6872e9['y']-_0x2d0c01['y']};}function K(_0x1edd06,_0x52a717){const _0x1a76e1=_0x4433f9;if(_0x1edd06['kind']===_0x1a76e1(0x23d)){let _0xd77ae2=_0x1edd06[_0x1a76e1(0x239)];if(_0xd77ae2['length']===0x0)return[];let _0xfd4a3c=G(_0xd77ae2[0x0],_0x52a717),_0x194bf9=[{'command':'M','points':[_0xfd4a3c['x'],_0xfd4a3c['y']]}];for(let _0x321e07=0x1;_0x321e07<_0xd77ae2['length'];_0x321e07++){let _0x5e3f4f=_0xd77ae2[_0x321e07-0x1],_0x4d9edc=_0xd77ae2[_0x321e07],_0x56f1da=G(_0x5e3f4f['out']??_0x5e3f4f,_0x52a717),_0x3275a6=G(_0x4d9edc['in']??_0x4d9edc,_0x52a717),_0x403bcc=G(_0x4d9edc,_0x52a717);_0x194bf9['push']({'command':'C','points':[_0x56f1da['x'],_0x56f1da['y'],_0x3275a6['x'],_0x3275a6['y'],_0x403bcc['x'],_0x403bcc['y']]});}if(_0x1edd06['closed']&&_0xd77ae2[_0x1a76e1(0x211)]>0x1){let _0x3c21a4=_0xd77ae2[_0xd77ae2['length']-0x1],_0x427009=_0xd77ae2[0x0],_0xb2fa63=G(_0x3c21a4[_0x1a76e1(0x22e)]??_0x3c21a4,_0x52a717),_0x595890=G(_0x427009['in']??_0x427009,_0x52a717),_0x1a888c=G(_0x427009,_0x52a717);_0x194bf9[_0x1a76e1(0x202)]({'command':'C','points':[_0xb2fa63['x'],_0xb2fa63['y'],_0x595890['x'],_0x595890['y'],_0x1a888c['x'],_0x1a888c['y']]}),_0x194bf9['push']({'command':'z','points':[]});}return _0x194bf9;}let _0x44ae44=_0x1edd06[_0x1a76e1(0x224)][_0x1a76e1(0x1da)](_0x32bd8a=>G(_0x32bd8a,_0x52a717));if(_0x44ae44[_0x1a76e1(0x211)]===0x0)return[];let _0xdd89d4=[{'command':'M','points':[_0x44ae44[0x0]['x'],_0x44ae44[0x0]['y']]}];for(let _0x812885=0x0;_0x812885<_0x44ae44['length']-0x1;_0x812885++){let _0x340df8=_0x44ae44[_0x812885],_0x4cb200=_0x44ae44[_0x812885+0x1],_0x5cc68d=_0x44ae44[_0x812885-0x1]??_0x340df8,_0x96ae69=_0x44ae44[_0x812885+0x2]??_0x4cb200,_0x562f8f={'x':_0x340df8['x']+(_0x4cb200['x']-_0x5cc68d['x'])/0x6,'y':_0x340df8['y']+(_0x4cb200['y']-_0x5cc68d['y'])/0x6},_0x5058c2={'x':_0x4cb200['x']-(_0x96ae69['x']-_0x340df8['x'])/0x6,'y':_0x4cb200['y']-(_0x96ae69['y']-_0x340df8['y'])/0x6};_0xdd89d4[_0x1a76e1(0x202)]({'command':'C','points':[_0x562f8f['x'],_0x562f8f['y'],_0x5058c2['x'],_0x5058c2['y'],_0x4cb200['x'],_0x4cb200['y']]});}return _0xdd89d4;}function q(_0x302e56){const _0x287a52=_0x4433f9;let {model:_0x107555,sourceModel:_0x3d000f=_0x107555,style:_0x3f21cf}=_0x302e56,_0x2417da=_0x302e56['tool']??_0x107555[_0x287a52(0x1dd)],_0x3bcb74=R(_0x107555),_0x2f7d47=_0x107555[_0x287a52(0x1dd)]===_0x287a52(0x23d)&&_0x2417da!=='pen'?_0x107555:void 0x0;return{'transform':{..._0x3bcb74,'rotation':0x0},'shapeData':oe(_0x107555,_0x3f21cf),'ink':{'version':0x1,'tool':_0x2417da,'sourceModel':_0x3d000f,..._0x2f7d47?{'editModel':_0x2f7d47}:{},'normalizedBounds':_0x3bcb74}};}var se=_0x4433f9(0x210),ce=_0x4433f9(0x236);function J(_0x4f2eb0){'@babel/helpers - typeof';const _0x1a727f=_0x4433f9;return J=typeof Symbol==_0x1a727f(0x235)&&typeof Symbol[_0x1a727f(0x1de)]==_0x1a727f(0x1df)?function(_0x20639d){return typeof _0x20639d;}:function(_0x2a7cdd){const _0x4d6947=_0x1a727f;return _0x2a7cdd&&typeof Symbol=='function'&&_0x2a7cdd['constructor']===Symbol&&_0x2a7cdd!==Symbol['prototype']?_0x4d6947(0x1df):typeof _0x2a7cdd;},J(_0x4f2eb0);}function le(_0x1023c0,_0x5d54d8){const _0x2e3d4c=_0x4433f9;if(J(_0x1023c0)!=_0x2e3d4c(0x225)||!_0x1023c0)return _0x1023c0;var _0x2a5e8f=_0x1023c0[Symbol['toPrimitive']];if(_0x2a5e8f!==void 0x0){var _0x17334b=_0x2a5e8f[_0x2e3d4c(0x21b)](_0x1023c0,_0x5d54d8||_0x2e3d4c(0x205));if(J(_0x17334b)!=_0x2e3d4c(0x225))return _0x17334b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5d54d8===_0x2e3d4c(0x1ef)?String:Number)(_0x1023c0);}function ue(_0x43d6ee){const _0xd90315=_0x4433f9;var _0x333a5c=le(_0x43d6ee,'string');return J(_0x333a5c)==_0xd90315(0x1df)?_0x333a5c:_0x333a5c+'';}function _0x3cdc(_0x4c3b69,_0x31a3b1){_0x4c3b69=_0x4c3b69-0x1d1;const _0x3bc491=_0x3bc4();let _0x3cdcc2=_0x3bc491[_0x4c3b69];return _0x3cdcc2;}function Y(_0x473df3,_0x403dbe,_0x3e519e){const _0x2bdb3d=_0x4433f9;return(_0x403dbe=ue(_0x403dbe))in _0x473df3?Object[_0x2bdb3d(0x1fa)](_0x473df3,_0x403dbe,{'value':_0x3e519e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x473df3[_0x403dbe]=_0x3e519e,_0x473df3;}const X=(0x0,n[_0x4433f9(0x216)])(_0x4433f9(0x1fb));var de=class{constructor(){const _0x39c7c8=_0x4433f9;Y(this,_0x39c7c8(0x233),[]);}['registerAdapter'](_0x33ef77){const _0x4a423a=_0x4433f9;return this[_0x4a423a(0x233)][_0x4a423a(0x202)](_0x33ef77),(0x0,n[_0x4a423a(0x234)])(()=>{const _0x4941d4=_0x4a423a;let _0x55f692=this[_0x4941d4(0x233)][_0x4941d4(0x1d8)](_0x33ef77);_0x55f692>=0x0&&this[_0x4941d4(0x233)]['splice'](_0x55f692,0x1);});}['beginInkMode'](_0x4b3a95){const _0x5cfcc8=_0x4433f9;for(let _0x1c8f14 of this[_0x5cfcc8(0x233)])if(_0x1c8f14[_0x5cfcc8(0x226)](_0x4b3a95))return!0x0;return!0x1;}async[_0x4433f9(0x1d6)](_0x4bcc12){const _0x373399=_0x4433f9;for(let _0x17cb98 of this[_0x373399(0x233)])if(_0x17cb98['createCustomShape']&&await _0x17cb98[_0x373399(0x1d6)](_0x4bcc12))return!0x0;return!0x1;}};const fe={'id':'ink.operation.start','type':n[_0x4433f9(0x22c)][_0x4433f9(0x23a)],'handler':(_0x156f04,_0x17bca3)=>_0x17bca3?_0x156f04[_0x4433f9(0x1dc)](X)['beginInkMode'](_0x17bca3):!0x1},Z={};function Q(_0x2eec5c,_0x344c02){return function(_0x5677cd,_0x256810){_0x344c02(_0x5677cd,_0x256810,_0x2eec5c);};}function pe(_0x20fbee,_0x39e6eb,_0x9c1df1,_0x40667b){const _0x595edc=_0x4433f9;var _0x206e95=arguments[_0x595edc(0x211)],_0x1f9e81=_0x206e95<0x3?_0x39e6eb:_0x40667b===null?_0x40667b=Object[_0x595edc(0x209)](_0x39e6eb,_0x9c1df1):_0x40667b,_0x4a33fb;if(typeof Reflect==_0x595edc(0x225)&&typeof Reflect['decorate']=='function')_0x1f9e81=Reflect[_0x595edc(0x221)](_0x20fbee,_0x39e6eb,_0x9c1df1,_0x40667b);else{for(var _0x3ce9ee=_0x20fbee[_0x595edc(0x211)]-0x1;_0x3ce9ee>=0x0;_0x3ce9ee--)(_0x4a33fb=_0x20fbee[_0x3ce9ee])&&(_0x1f9e81=(_0x206e95<0x3?_0x4a33fb(_0x1f9e81):_0x206e95>0x3?_0x4a33fb(_0x39e6eb,_0x9c1df1,_0x1f9e81):_0x4a33fb(_0x39e6eb,_0x9c1df1))||_0x1f9e81);}return _0x206e95>0x3&&_0x1f9e81&&Object[_0x595edc(0x1fa)](_0x39e6eb,_0x9c1df1,_0x1f9e81),_0x1f9e81;}let $=class extends n[_0x4433f9(0x1ff)]{constructor(_0x19c60a=Z,_0x17720f,_0x523ff2,_0x3ee346){const _0x1b6625=_0x4433f9;super(),this[_0x1b6625(0x1eb)]=_0x19c60a,this[_0x1b6625(0x20f)]=_0x17720f,this[_0x1b6625(0x222)]=_0x523ff2,this[_0x1b6625(0x230)]=_0x3ee346;let {..._0x35a50e}=(0x0,n[_0x1b6625(0x1e4)])({},Z,this['_config']);this[_0x1b6625(0x230)]['setConfig'](_0x1b6625(0x204),_0x35a50e);}[_0x4433f9(0x1e6)](){const _0x5694a1=_0x4433f9;[[X,{'useClass':de}]][_0x5694a1(0x20b)](_0x146d96=>this['_injector'][_0x5694a1(0x21c)](_0x146d96)),this[_0x5694a1(0x227)](this[_0x5694a1(0x222)][_0x5694a1(0x213)](fe));}};Y($,'pluginName',_0x4433f9(0x1f2)),Y($,_0x4433f9(0x1f6),se),Y($,'version',ce),Y($,_0x4433f9(0x231),n[_0x4433f9(0x1f3)][_0x4433f9(0x1d7)]),$=pe([(0x0,n[_0x4433f9(0x21e)])(t[_0x4433f9(0x217)]),Q(0x1,(0x0,n['Inject'])(n[_0x4433f9(0x1e2)])),Q(0x2,n[_0x4433f9(0x1ec)]),Q(0x3,n['IConfigService'])],$),exports['IInkHostAdapterService']=X,Object['defineProperty'](exports,_0x4433f9(0x1e8),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4433f9(0x214)]=q,exports[_0x4433f9(0x22f)]=re,exports['cycleInkPenAnchorPointType']=E,exports[_0x4433f9(0x1d2)]=w,exports[_0x4433f9(0x20a)]=ie,exports['findClosestInkPenSegment']=S,exports['getInkModelBounds']=R,exports['getInkPenPreviewModel']=x,exports[_0x4433f9(0x1fc)]=C,exports['isInkPenHandleVisible']=p,exports[_0x4433f9(0x1e3)]=ae,exports['setInkPenAnchorPointType']=T;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x338c12=_0x2fdb;(function(_0x1a2c1d,_0x53976f){const _0x84a236=_0x2fdb,_0xb734fb=_0x1a2c1d();while(!![]){try{const _0x3ed01f=parseInt(_0x84a236(0x152))/0x1*(parseInt(_0x84a236(0x177))/0x2)+parseInt(_0x84a236(0x149))/0x3*(-parseInt(_0x84a236(0x16c))/0x4)+-parseInt(_0x84a236(0x16f))/0x5*(-parseInt(_0x84a236(0x169))/0x6)+-parseInt(_0x84a236(0x158))/0x7+-parseInt(_0x84a236(0x16e))/0x8+-parseInt(_0x84a236(0x176))/0x9*(-parseInt(_0x84a236(0x160))/0xa)+parseInt(_0x84a236(0x144))/0xb*(-parseInt(_0x84a236(0x150))/0xc);if(_0x3ed01f===_0x53976f)break;else _0xb734fb['push'](_0xb734fb['shift']());}catch(_0x1db3a8){_0xb734fb['push'](_0xb734fb['shift']());}}}(_0x5c13,0xc2cd8));import{BoardElementType as _0xaa2e6b}from'@univerjs-pro/boards';import{FBoard as _0x2b82da}from'@univerjs-pro/boards/facade';function _0x2fdb(_0x5e3bd5,_0x24cd01){_0x5e3bd5=_0x5e3bd5-0x144;const _0x5c1374=_0x5c13();let _0x2fdbc4=_0x5c1374[_0x5e3bd5];return _0x2fdbc4;}import{buildInkCustomShapePayload as _0x33bdf5}from'@univerjs-pro/ink';function _0x5c13(){const _0xac1b37=['filter','10239066CSQZMA','2PwnPLx','575751PMWuCa','trim','smooth','shapeData','insertInk','6QdAoga','opacity','corner','out','BoardInkHandleKind','anchors','sourceModel','132IUOdzw','isFinite','768214YifZId','findElements','custom','Shape','width','symmetric','2551780QBncsf','kind','insertIndex','_addElement','model','style','anchor','extend','10symymH','BoardInkPointType','length','version','laneId','parentId','object','highlighter','transform','6aJUWvI','deepClone','isArray','859748mhFlQq','pressure','5825360XMlPYF','4951795HVrrKM','pen','getInks','points','every','ink'];_0x5c13=function(){return _0xac1b37;};return _0x5c13();}import{Tools as _0x487151,generateRandomId as _0x38bb3c}from'@univerjs/core';import{FEnum as _0x4bf51c}from'@univerjs/core/facade';var o=class extends _0x2b82da{[_0x338c12(0x148)](_0x13394d){const _0x4e1eb6=_0x338c12;let _0x5cdf0e=s(_0x13394d);return _0x5cdf0e&&this[_0x4e1eb6(0x15b)](_0x5cdf0e,{'insertIndex':_0x13394d[_0x4e1eb6(0x15a)]})?_0x5cdf0e:null;}[_0x338c12(0x171)](){const _0x45a1ba=_0x338c12;return this[_0x45a1ba(0x153)]({'elementType':_0xaa2e6b[_0x45a1ba(0x155)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x45a1ba(0x175)](p);}};function s(_0x530eb4,_0x5dba62){const _0x128663=_0x338c12;if(!l(_0x530eb4['model'])||_0x530eb4[_0x128663(0x14f)]!==void 0x0&&!l(_0x530eb4[_0x128663(0x14f)])||!u(_0x530eb4[_0x128663(0x15d)]))return null;let _0x5c5870=_0x530eb4[_0x128663(0x165)]??(_0x5dba62==null?void 0x0:_0x5dba62[_0x128663(0x165)]),_0x55fd79=_0x487151[_0x128663(0x16a)](_0x530eb4[_0x128663(0x15c)]),_0x14ed07=_0x33bdf5({'model':_0x55fd79,'style':_0x530eb4[_0x128663(0x15d)],'tool':_0x530eb4['tool'],'sourceModel':_0x530eb4[_0x128663(0x14f)]?_0x487151[_0x128663(0x16a)](_0x530eb4[_0x128663(0x14f)]):_0x55fd79}),_0x5f3b19=d(_0x5dba62==null?void 0x0:_0x5dba62[_0x128663(0x154)]);return{'id':(_0x5dba62==null?void 0x0:_0x5dba62['id'])??_0x530eb4['id']??_0x38bb3c(0x6),'type':_0xaa2e6b[_0x128663(0x155)],'transform':_0x14ed07[_0x128663(0x168)],'shapeData':_0x14ed07[_0x128663(0x147)],'parentId':_0x5c5870??void 0x0,'laneId':_0x530eb4[_0x128663(0x164)]===void 0x0?_0x5dba62==null?void 0x0:_0x5dba62[_0x128663(0x164)]:_0x530eb4[_0x128663(0x164)],'custom':{..._0x5f3b19,'ink':_0x14ed07['ink']}};}function c(_0x4015af){const _0x3dbe0d=_0x338c12;return Number[_0x3dbe0d(0x151)](_0x4015af['x'])&&Number['isFinite'](_0x4015af['y']);}function l(_0x14ee07){const _0x10daad=_0x338c12;if(_0x14ee07[_0x10daad(0x159)]===_0x10daad(0x170)){let _0xe0813b=new Set();return _0x14ee07[_0x10daad(0x14e)][_0x10daad(0x162)]>=(_0x14ee07['closed']?0x3:0x2)&&_0x14ee07[_0x10daad(0x14e)][_0x10daad(0x173)](_0x4b7961=>{const _0x179680=_0x10daad;let _0x1bb50b=_0x4b7961['id'][_0x179680(0x145)]()['length']>0x0&&!_0xe0813b['has'](_0x4b7961['id'])&&c(_0x4b7961)&&(!_0x4b7961['in']||c(_0x4b7961['in']))&&(!_0x4b7961[_0x179680(0x14c)]||c(_0x4b7961[_0x179680(0x14c)]));return _0xe0813b['add'](_0x4b7961['id']),_0x1bb50b;});}return _0x14ee07[_0x10daad(0x172)]['length']>=0x2&&_0x14ee07[_0x10daad(0x172)][_0x10daad(0x173)](_0x467f9b=>c(_0x467f9b)&&Number[_0x10daad(0x151)](_0x467f9b['t'])&&(_0x467f9b['pressure']===void 0x0||Number[_0x10daad(0x151)](_0x467f9b[_0x10daad(0x16d)])))&&Number[_0x10daad(0x151)](_0x14ee07[_0x10daad(0x156)])&&_0x14ee07[_0x10daad(0x156)]>0x0&&Number[_0x10daad(0x151)](_0x14ee07[_0x10daad(0x14a)])&&_0x14ee07[_0x10daad(0x14a)]>=0x0&&_0x14ee07[_0x10daad(0x14a)]<=0x1;}function u(_0x17497b){const _0x41cbc8=_0x338c12;return _0x17497b===void 0x0||(_0x17497b['width']===void 0x0||Number[_0x41cbc8(0x151)](_0x17497b['width'])&&_0x17497b[_0x41cbc8(0x156)]>0x0)&&(_0x17497b[_0x41cbc8(0x14a)]===void 0x0||Number['isFinite'](_0x17497b[_0x41cbc8(0x14a)])&&_0x17497b[_0x41cbc8(0x14a)]>=0x0&&_0x17497b['opacity']<=0x1);}function d(_0xf9c931){const _0x483a18=_0x338c12;return _0xf9c931&&typeof _0xf9c931==_0x483a18(0x166)&&!Array[_0x483a18(0x16b)](_0xf9c931)?_0xf9c931:{};}function f(_0x5b8ab7){const _0x2f2f75=_0x338c12;let _0x1d3672=d(_0x5b8ab7['custom'])[_0x2f2f75(0x174)];if(!_0x1d3672||typeof _0x1d3672!=_0x2f2f75(0x166)||Array['isArray'](_0x1d3672))return null;let _0x168ebc=_0x1d3672;return _0x168ebc[_0x2f2f75(0x163)]===0x1&&_0x168ebc[_0x2f2f75(0x14f)]&&typeof _0x168ebc[_0x2f2f75(0x14f)]==_0x2f2f75(0x166)?_0x168ebc:null;}function p(_0x3a4e9c){const _0x1f0085=_0x338c12;return _0x3a4e9c['type']===_0xaa2e6b[_0x1f0085(0x155)]&&!!f(_0x3a4e9c);}_0x2b82da['extend'](o);const m={'Pen':_0x338c12(0x170),'Brush':'brush','Highlighter':_0x338c12(0x167)},h={'Corner':_0x338c12(0x14b),'Smooth':_0x338c12(0x146),'Symmetric':_0x338c12(0x157),'Free':'free'},g={'Anchor':_0x338c12(0x15e),'In':'in','Out':_0x338c12(0x14c)};var _=class extends _0x4bf51c{get['BoardInkTool'](){return m;}get[_0x338c12(0x161)](){return h;}get[_0x338c12(0x14d)](){return g;}};_0x4bf51c[_0x338c12(0x15f)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
1
+ const _0x360078=_0x4dcb;(function(_0xe55fd3,_0x225c0e){const _0xf3f90b=_0x4dcb,_0x209f71=_0xe55fd3();while(!![]){try{const _0x5d39b6=parseInt(_0xf3f90b(0xde))/0x1*(-parseInt(_0xf3f90b(0xd8))/0x2)+parseInt(_0xf3f90b(0xae))/0x3*(parseInt(_0xf3f90b(0xd3))/0x4)+-parseInt(_0xf3f90b(0xb2))/0x5*(parseInt(_0xf3f90b(0xc3))/0x6)+-parseInt(_0xf3f90b(0xb9))/0x7+parseInt(_0xf3f90b(0xaf))/0x8+-parseInt(_0xf3f90b(0xd6))/0x9*(-parseInt(_0xf3f90b(0xb6))/0xa)+parseInt(_0xf3f90b(0xcd))/0xb;if(_0x5d39b6===_0x225c0e)break;else _0x209f71['push'](_0x209f71['shift']());}catch(_0x5630e4){_0x209f71['push'](_0x209f71['shift']());}}}(_0x113a,0x5b63e));import{BoardElementType as _0xa12d71}from'@univerjs-pro/boards';import{FBoard as _0x2e20aa}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x35690a}from'@univerjs-pro/ink';import{Tools as _0x183eee,generateRandomId as _0x523f62}from'@univerjs/core';import{FEnum as _0x3ea712}from'@univerjs/core/facade';var o=class extends _0x2e20aa{[_0x360078(0xb3)](_0x679201){const _0x5c9e4f=_0x360078;let _0x3b210e=s(_0x679201);return _0x3b210e&&this['_addElement'](_0x3b210e,{'insertIndex':_0x679201[_0x5c9e4f(0xd2)]})?_0x3b210e:null;}[_0x360078(0xc4)](){const _0x2487a5=_0x360078;return this[_0x2487a5(0xb0)]({'elementType':_0xa12d71['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x2487a5(0xb8)](p);}};function s(_0x2cb3e8,_0x58707a){const _0x3e95a8=_0x360078;if(!l(_0x2cb3e8[_0x3e95a8(0xbb)])||_0x2cb3e8[_0x3e95a8(0xc5)]!==void 0x0&&!l(_0x2cb3e8[_0x3e95a8(0xc5)])||!u(_0x2cb3e8['style']))return null;let _0x1448fc=_0x2cb3e8[_0x3e95a8(0xb1)]??(_0x58707a==null?void 0x0:_0x58707a['parentId']),_0x51f2b4=_0x183eee['deepClone'](_0x2cb3e8[_0x3e95a8(0xbb)]),_0xdd551d=_0x35690a({'model':_0x51f2b4,'style':_0x2cb3e8[_0x3e95a8(0xdb)],'tool':_0x2cb3e8[_0x3e95a8(0xd9)],'sourceModel':_0x2cb3e8[_0x3e95a8(0xc5)]?_0x183eee[_0x3e95a8(0xbe)](_0x2cb3e8['sourceModel']):_0x51f2b4}),_0x47d165=d(_0x58707a==null?void 0x0:_0x58707a['custom']);return{'id':(_0x58707a==null?void 0x0:_0x58707a['id'])??_0x2cb3e8['id']??_0x523f62(0x6),'type':_0xa12d71['Shape'],'transform':_0xdd551d[_0x3e95a8(0xda)],'shapeData':_0xdd551d['shapeData'],'parentId':_0x1448fc??void 0x0,'laneId':_0x2cb3e8[_0x3e95a8(0xd0)]===void 0x0?_0x58707a==null?void 0x0:_0x58707a['laneId']:_0x2cb3e8[_0x3e95a8(0xd0)],'custom':{..._0x47d165,'ink':_0xdd551d[_0x3e95a8(0xdf)]}};}function c(_0x2a2294){const _0x702223=_0x360078;return Number[_0x702223(0xe0)](_0x2a2294['x'])&&Number[_0x702223(0xe0)](_0x2a2294['y']);}function l(_0x653695){const _0x362b32=_0x360078;if(_0x653695[_0x362b32(0xdc)]===_0x362b32(0xbc)){let _0x3705b7=new Set();return _0x653695[_0x362b32(0xd1)][_0x362b32(0xd4)]>=(_0x653695[_0x362b32(0xc2)]?0x3:0x2)&&_0x653695[_0x362b32(0xd1)][_0x362b32(0xc0)](_0x4e77e1=>{const _0x256df5=_0x362b32;let _0x2fc419=_0x4e77e1['id'][_0x256df5(0xbf)]()[_0x256df5(0xd4)]>0x0&&!_0x3705b7[_0x256df5(0xc7)](_0x4e77e1['id'])&&c(_0x4e77e1)&&(!_0x4e77e1['in']||c(_0x4e77e1['in']))&&(!_0x4e77e1[_0x256df5(0xc6)]||c(_0x4e77e1['out']));return _0x3705b7['add'](_0x4e77e1['id']),_0x2fc419;});}return _0x653695['points'][_0x362b32(0xd4)]>=0x2&&_0x653695[_0x362b32(0xe1)][_0x362b32(0xc0)](_0x1dbb4b=>c(_0x1dbb4b)&&Number[_0x362b32(0xe0)](_0x1dbb4b['t'])&&(_0x1dbb4b['pressure']===void 0x0||Number[_0x362b32(0xe0)](_0x1dbb4b[_0x362b32(0xcc)])))&&Number[_0x362b32(0xe0)](_0x653695['width'])&&_0x653695['width']>0x0&&Number[_0x362b32(0xe0)](_0x653695[_0x362b32(0xce)])&&_0x653695[_0x362b32(0xce)]>=0x0&&_0x653695['opacity']<=0x1;}function u(_0xa819a9){const _0x5d7fbb=_0x360078;return _0xa819a9===void 0x0||(_0xa819a9[_0x5d7fbb(0xcb)]===void 0x0||Number[_0x5d7fbb(0xe0)](_0xa819a9[_0x5d7fbb(0xcb)])&&_0xa819a9[_0x5d7fbb(0xcb)]>0x0)&&(_0xa819a9['opacity']===void 0x0||Number[_0x5d7fbb(0xe0)](_0xa819a9[_0x5d7fbb(0xce)])&&_0xa819a9[_0x5d7fbb(0xce)]>=0x0&&_0xa819a9[_0x5d7fbb(0xce)]<=0x1);}function d(_0x798f76){const _0x1d8726=_0x360078;return _0x798f76&&typeof _0x798f76==_0x1d8726(0xcf)&&!Array[_0x1d8726(0xba)](_0x798f76)?_0x798f76:{};}function f(_0x380d0d){const _0x4af4e2=_0x360078;let _0xe83ea0=d(_0x380d0d[_0x4af4e2(0xd5)])[_0x4af4e2(0xdf)];if(!_0xe83ea0||typeof _0xe83ea0!=_0x4af4e2(0xcf)||Array[_0x4af4e2(0xba)](_0xe83ea0))return null;let _0x4ae4c2=_0xe83ea0;return _0x4ae4c2[_0x4af4e2(0xdd)]===0x1&&_0x4ae4c2[_0x4af4e2(0xc5)]&&typeof _0x4ae4c2[_0x4af4e2(0xc5)]==_0x4af4e2(0xcf)?_0x4ae4c2:null;}function _0x4dcb(_0x5a1c22,_0x51b8b9){_0x5a1c22=_0x5a1c22-0xae;const _0x113a43=_0x113a();let _0x4dcb49=_0x113a43[_0x5a1c22];return _0x4dcb49;}function _0x113a(){const _0x11ad9a=['findElements','parentId','1865cSSjeo','insertInk','Shape','BoardInkPointType','10kpQRzl','symmetric','filter','3059868kORSlH','isArray','model','pen','extend','deepClone','trim','every','BoardInkTool','closed','186svaeNr','getInks','sourceModel','out','has','BoardInkHandleKind','corner','anchor','width','pressure','6985869gyVWUb','opacity','object','laneId','anchors','insertIndex','204cBkTvv','length','custom','4556043SDdkjR','highlighter','237682ELxVEx','tool','transform','style','kind','version','5yPNemX','ink','isFinite','points','type','8601ucaMvY','1037624kPZeyQ'];_0x113a=function(){return _0x11ad9a;};return _0x113a();}function p(_0x1880e8){const _0x450f6b=_0x360078;return _0x1880e8[_0x450f6b(0xe2)]===_0xa12d71[_0x450f6b(0xb4)]&&!!f(_0x1880e8);}_0x2e20aa[_0x360078(0xbd)](o);const m={'Pen':_0x360078(0xbc),'Brush':'brush','Highlighter':_0x360078(0xd7)},h={'Corner':_0x360078(0xc9),'Smooth':'smooth','Symmetric':_0x360078(0xb7),'Free':'free'},g={'Anchor':_0x360078(0xca),'In':'in','Out':_0x360078(0xc6)};var _=class extends _0x3ea712{get[_0x360078(0xc1)](){return m;}get[_0x360078(0xb5)](){return h;}get[_0x360078(0xc8)](){return g;}};_0x3ea712[_0x360078(0xbd)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x12824f=_0xfb34;(function(_0x37201b,_0x3535da){const _0x40fc02=_0xfb34,_0x1e0d17=_0x37201b();while(!![]){try{const _0x17b839=parseInt(_0x40fc02(0x160))/0x1+-parseInt(_0x40fc02(0x147))/0x2+parseInt(_0x40fc02(0x130))/0x3+parseInt(_0x40fc02(0x16d))/0x4*(-parseInt(_0x40fc02(0x143))/0x5)+-parseInt(_0x40fc02(0x16a))/0x6+parseInt(_0x40fc02(0x12f))/0x7+-parseInt(_0x40fc02(0x175))/0x8;if(_0x17b839===_0x3535da)break;else _0x1e0d17['push'](_0x1e0d17['shift']());}catch(_0x3acd14){_0x1e0d17['push'](_0x1e0d17['shift']());}}}(_0x5ecd,0xf29d8));import{ShapeFillEnum as _0x3d9285,ShapeLineCapEnum as _0x4a7b4e,ShapeLineJoinEnum as _0x127e75,ShapeLineTypeEnum as _0x53320d,ShapeTypeEnum as _0x4aa715}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x5a8579}from'@univerjs-pro/license';import{CommandType as _0x5b45d3,DependentOn as _0x17b879,ICommandService as _0x46d0bf,IConfigService as _0x5cf97d,Inject as _0x19a3e6,Injector as _0x24e31f,Plugin as _0x19d734,UniverInstanceType as _0x212eed,createIdentifier as _0x276103,merge as _0x110d4d,toDisposable as _0x297405}from'@univerjs/core';const g=0.0001;function _(_0x4dc8){return{'x':_0x4dc8['x'],'y':_0x4dc8['y']};}function v(_0x5a8eed){const _0x191ea3=_0xfb34;return{..._0x5a8eed,'in':_0x5a8eed['in']?_(_0x5a8eed['in']):void 0x0,'out':_0x5a8eed[_0x191ea3(0x15f)]?_(_0x5a8eed['out']):void 0x0};}function y(_0x379030){const _0x30401a=_0xfb34;return{'kind':_0x30401a(0x13b),'closed':_0x379030[_0x30401a(0x12a)],'anchors':_0x379030['anchors'][_0x30401a(0x134)](v)};}function b(_0x125ee1,_0x9e222c,_0x141f32){return{'x':_0x125ee1['x']+(_0x9e222c['x']-_0x125ee1['x'])*_0x141f32,'y':_0x125ee1['y']+(_0x9e222c['y']-_0x125ee1['y'])*_0x141f32};}function x(_0x231eef,_0x3f5b6e){const _0x415dd6=_0xfb34;return Math[_0x415dd6(0x17c)](_0x231eef['x']-_0x3f5b6e['x'],_0x231eef['y']-_0x3f5b6e['y']);}function S(_0x57a83d){const _0x5c4376=_0xfb34;let _0x7682d1=Math[_0x5c4376(0x17c)](_0x57a83d['x'],_0x57a83d['y']);return _0x7682d1<g?{'x':0x1,'y':0x0}:{'x':_0x57a83d['x']/_0x7682d1,'y':_0x57a83d['y']/_0x7682d1};}function C(_0x29764c,_0x580a54,_0x4fa854=x(_0x29764c,_0x580a54)){let _0x382168=S({'x':_0x29764c['x']-_0x580a54['x'],'y':_0x29764c['y']-_0x580a54['y']});return{'x':_0x29764c['x']+_0x382168['x']*_0x4fa854,'y':_0x29764c['y']+_0x382168['y']*_0x4fa854};}function w(_0x500a45,_0x4e8795){const _0x562c0c=_0xfb34;let {anchors:_0xff583b}=_0x500a45;return _0xff583b['length']<0x2||_0x4e8795<0x0?null:_0x4e8795<_0xff583b[_0x562c0c(0x169)]-0x1?{'startIndex':_0x4e8795,'endIndex':_0x4e8795+0x1,'start':_0xff583b[_0x4e8795],'end':_0xff583b[_0x4e8795+0x1]}:_0x500a45[_0x562c0c(0x12a)]&&_0x4e8795===_0xff583b[_0x562c0c(0x169)]-0x1?{'startIndex':_0xff583b[_0x562c0c(0x169)]-0x1,'endIndex':0x0,'start':_0xff583b[_0xff583b[_0x562c0c(0x169)]-0x1],'end':_0xff583b[0x0]}:null;}function _0x5ecd(){const _0x41ca23=['smooth','tolerance','beginInkMode','registerAdapter','NoFill','symbol','right','color','anchor','startIndex','point','anchors','get','ink.operation.start','out','1880690LsprwB','norm','constructor','iterator','segmentIndex','abs','decorate','defineProperty','@univerjs-pro/ink','length','10596306rSLVkC','filter','indexOf','3532RaACpf','endIndex','onStarting','_configService','Round','find','height','top','748512drNLkb','ink-centerline-','Rect','OPERATION','packageName','createId','round','hypot','kind','anchorId','_commandService','distance','symmetric','max','_config','prototype','none','slice','splice','createCustomShape','closed','forEach','opacity','min','default','11589788lcESiz','2569590yxJxaJ','disposeWithMe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','#f54a45','map','corner','_injector','ratio','pointType','function','points','pen','width','registerCommand','tool','push','start','free','version','5155NTOpNZ','string','end','SolidLine','1258328UbldYb','left','ink.config','sqrt','toPrimitive','_adapters','getOwnPropertyDescriptor','join','object','UNIVER_INK_PLUGIN'];_0x5ecd=function(){return _0x41ca23;};return _0x5ecd();}function T(_0x36015e,_0x2d8034){const _0x5ca842=_0xfb34;let _0x88bc1e=w(_0x36015e,_0x2d8034);return _0x88bc1e?[_0x88bc1e[_0x5ca842(0x140)],_0x88bc1e['start'][_0x5ca842(0x15f)]??_0x88bc1e[_0x5ca842(0x140)],_0x88bc1e[_0x5ca842(0x145)]['in']??_0x88bc1e[_0x5ca842(0x145)],_0x88bc1e[_0x5ca842(0x145)]]:null;}function te(_0x9e35,_0x44135a){const _0x3b63b6=_0xfb34;return _0x44135a===_0x3b63b6(0x159)?_0x9e35:_0x9e35[_0x44135a]??null;}function E(_0x163406,_0x45fb39,_0x647eac){const _0x3b086a=_0xfb34;return _0x647eac==='anchor'||_0x163406[_0x3b086a(0x12a)]?!0x0:_0x647eac==='in'?_0x45fb39>0x0:_0x45fb39<_0x163406[_0x3b086a(0x15c)][_0x3b086a(0x169)]-0x1;}function D(_0x4dca95,_0x4e703e){let [_0x455e9a,_0x42f831,_0x1b8a08,_0x5bbf7f]=_0x4dca95,_0x4c14b4=b(_0x455e9a,_0x42f831,_0x4e703e),_0x29e01d=b(_0x42f831,_0x1b8a08,_0x4e703e),_0x1b9477=b(_0x1b8a08,_0x5bbf7f,_0x4e703e);return b(b(_0x4c14b4,_0x29e01d,_0x4e703e),b(_0x29e01d,_0x1b9477,_0x4e703e),_0x4e703e);}function ne(_0x2de1ce,_0x413104){let [_0x4db72a,_0x598872,_0x49657e,_0x2763b6]=_0x2de1ce,_0x44dec4=b(_0x4db72a,_0x598872,_0x413104),_0x2e7729=b(_0x598872,_0x49657e,_0x413104),_0x20f252=b(_0x49657e,_0x2763b6,_0x413104),_0x4a23c5=b(_0x44dec4,_0x2e7729,_0x413104),_0x1c0a5e=b(_0x2e7729,_0x20f252,_0x413104),_0xf5a83f=b(_0x4a23c5,_0x1c0a5e,_0x413104);return{'left':[_0x4db72a,_0x44dec4,_0x4a23c5,_0xf5a83f],'right':[_0xf5a83f,_0x1c0a5e,_0x20f252,_0x2763b6]};}function O(_0x22b024,_0xd86a6f,_0x30dcec){const _0x4c76c4=_0xfb34;let _0x1cf7f8=_0x30dcec['x']-_0xd86a6f['x'],_0x57c7f8=_0x30dcec['y']-_0xd86a6f['y'],_0x42e8e5=_0x1cf7f8*_0x1cf7f8+_0x57c7f8*_0x57c7f8,_0x15a886=_0x42e8e5<=g?0x0:Math['max'](0x0,Math[_0x4c76c4(0x12d)](0x1,((_0x22b024['x']-_0xd86a6f['x'])*_0x1cf7f8+(_0x22b024['y']-_0xd86a6f['y'])*_0x57c7f8)/_0x42e8e5)),_0xd5d034={'x':_0xd86a6f['x']+_0x1cf7f8*_0x15a886,'y':_0xd86a6f['y']+_0x57c7f8*_0x15a886};return{'point':_0xd5d034,'ratio':_0x15a886,'distance':x(_0x22b024,_0xd5d034)};}function re(_0x57bf76,_0x57fef2,_0x58f621){const _0x3a9fca=_0xfb34;return O(_0x57bf76,_0x57fef2,_0x58f621)[_0x3a9fca(0x121)]**0x2;}function k(_0x3d9cb8,_0x22eade){const _0x56fb56=_0xfb34;if(_0x3d9cb8[_0x56fb56(0x169)]<=0x2)return _0x3d9cb8[_0x56fb56(0x134)](_);let _0x1eaa2c=0x0,_0x20db1a=0x0,_0xf38245=_0x3d9cb8[0x0],_0xcc0706=_0x3d9cb8[_0x3d9cb8[_0x56fb56(0x169)]-0x1],_0x21b180=_0x22eade*_0x22eade;for(let _0xd88136=0x1;_0xd88136<_0x3d9cb8[_0x56fb56(0x169)]-0x1;_0xd88136++){let _0x2c9b04=re(_0x3d9cb8[_0xd88136],_0xf38245,_0xcc0706);_0x2c9b04>_0x1eaa2c&&(_0x1eaa2c=_0x2c9b04,_0x20db1a=_0xd88136);}if(_0x1eaa2c<=_0x21b180)return[_(_0xf38245),_(_0xcc0706)];let _0x265ffc=k(_0x3d9cb8[_0x56fb56(0x127)](0x0,_0x20db1a+0x1),_0x22eade),_0x392a67=k(_0x3d9cb8['slice'](_0x20db1a),_0x22eade);return[..._0x265ffc['slice'](0x0,-0x1),..._0x392a67];}function ie(_0x5abbb0,_0x292144){let _0x73f008=_0x5abbb0[_0x292144],_0x17061c=_0x5abbb0[_0x292144+0x1],_0x339766=_0x5abbb0[_0x292144-0x1]??_0x73f008;return{'x':_0x73f008['x']+(_0x17061c['x']-_0x339766['x'])/0x6,'y':_0x73f008['y']+(_0x17061c['y']-_0x339766['y'])/0x6};}function A(_0x4e2bd2,_0x24fda7){let _0x3764db=_0x4e2bd2[_0x24fda7],_0x7b6501=_0x4e2bd2[_0x24fda7-0x1],_0x5ae195=_0x4e2bd2[_0x24fda7+0x1]??_0x3764db;return{'x':_0x3764db['x']-(_0x5ae195['x']-_0x7b6501['x'])/0x6,'y':_0x3764db['y']-(_0x5ae195['y']-_0x7b6501['y'])/0x6};}function j(_0x36d05f,_0xb33b06){const _0x434fed=_0xfb34;let _0x3fb079=_0x36d05f['anchors'][_0xb33b06],_0x16e36d=_0x36d05f['anchors'][_0xb33b06-0x1]??(_0x36d05f[_0x434fed(0x12a)]?_0x36d05f[_0x434fed(0x15c)][_0x36d05f['anchors'][_0x434fed(0x169)]-0x1]:null),_0x2d48c8=_0x36d05f[_0x434fed(0x15c)][_0xb33b06+0x1]??(_0x36d05f[_0x434fed(0x12a)]?_0x36d05f[_0x434fed(0x15c)][0x0]:null),_0x5b8def=_0x16e36d&&_0x2d48c8?S({'x':_0x2d48c8['x']-_0x16e36d['x'],'y':_0x2d48c8['y']-_0x16e36d['y']}):_0x2d48c8?S({'x':_0x2d48c8['x']-_0x3fb079['x'],'y':_0x2d48c8['y']-_0x3fb079['y']}):_0x16e36d?S({'x':_0x3fb079['x']-_0x16e36d['x'],'y':_0x3fb079['y']-_0x16e36d['y']}):{'x':0x1,'y':0x0},_0x59ba2b=_0x16e36d&&_0x2d48c8?Math['max'](0x32,x(_0x16e36d,_0x2d48c8)/0x4):0x32;return{'in':{'x':_0x3fb079['x']-_0x5b8def['x']*_0x59ba2b,'y':_0x3fb079['y']-_0x5b8def['y']*_0x59ba2b},'out':{'x':_0x3fb079['x']+_0x5b8def['x']*_0x59ba2b,'y':_0x3fb079['y']+_0x5b8def['y']*_0x59ba2b}};}function M(_0x465307,_0x53fa7d){const _0x2ee77e=_0xfb34;let _0x2f1d5a=_0x465307[_0x53fa7d],_0x409422=_0x53fa7d==='in'?_0x2ee77e(0x15f):'in',_0x490242=_0x465307[_0x409422];if(_0x2f1d5a){if(_0x465307['pointType']===_0x2ee77e(0x122)){_0x465307[_0x409422]=C(_0x465307,_0x2f1d5a);return;}_0x465307[_0x2ee77e(0x138)]==='smooth'&&(_0x465307[_0x409422]=C(_0x465307,_0x2f1d5a,_0x490242?x(_0x465307,_0x490242):x(_0x465307,_0x2f1d5a)));}}function ae(_0x573efd,_0x38eac5){const _0x4432ac=_0xfb34;let _0x270420=y(_0x573efd);return!_0x38eac5||_0x270420[_0x4432ac(0x12a)]||_0x270420[_0x4432ac(0x15c)][_0x4432ac(0x169)]===0x0||_0x270420[_0x4432ac(0x15c)]['push']({'id':'__ink-preview-anchor__','x':_0x38eac5['x'],'y':_0x38eac5['y'],'pointType':'corner'}),_0x270420;}function oe(_0x27d520,_0x597068={}){const _0x1c15ae=_0xfb34;let _0x3f4f7f=Math[_0x1c15ae(0x123)](0x0,_0x597068[_0x1c15ae(0x152)]??Math[_0x1c15ae(0x123)](0x4,_0x27d520[_0x1c15ae(0x13c)]*0.35)),_0x1f87d8=_0x597068[_0x1c15ae(0x17a)]??(_0x56d711=>_0x1c15ae(0x176)+_0x56d711),_0x3bcb77=k(_0x27d520[_0x1c15ae(0x13a)],_0x3f4f7f),_0x33f090=_0x3bcb77['map']((_0x128b33,_0xeaee5c)=>({'id':_0x1f87d8(_0xeaee5c),'x':_0x128b33['x'],'y':_0x128b33['y'],'pointType':_0x1c15ae(0x141)}));for(let _0x42138d=0x0;_0x42138d<_0x33f090[_0x1c15ae(0x169)]-0x1;_0x42138d++)_0x33f090[_0x42138d]['out']=ie(_0x3bcb77,_0x42138d),_0x33f090[_0x42138d+0x1]['in']=A(_0x3bcb77,_0x42138d+0x1);return{'kind':_0x1c15ae(0x13b),'closed':!0x1,'anchors':_0x33f090};}function se(_0x116306,_0x3b0a79,_0x37214e){const _0x582ef8=_0xfb34;let _0x4a0807=null,_0x402d52=['anchor','in',_0x582ef8(0x15f)];return _0x116306[_0x582ef8(0x15c)]['forEach']((_0x9f32be,_0x58859e)=>{_0x402d52['forEach'](_0x1dc52f=>{const _0x5f00ea=_0xfb34;if(!E(_0x116306,_0x58859e,_0x1dc52f))return;let _0x2ae29c=te(_0x9f32be,_0x1dc52f);if(!_0x2ae29c)return;let _0x3ba76b=x(_0x3b0a79,_0x2ae29c);_0x3ba76b>_0x37214e||_0x4a0807&&_0x3ba76b>=_0x4a0807[_0x5f00ea(0x121)]||(_0x4a0807={'handle':{'kind':_0x1dc52f,'anchorId':_0x9f32be['id']},'point':_(_0x2ae29c),'distance':_0x3ba76b});});}),_0x4a0807;}function ce(_0x16b21a,_0x56a04c,_0x29635c){const _0x2eaa14=_0xfb34;let _0x3e3609=null,_0x4d2eac=_0x16b21a['closed']?_0x16b21a[_0x2eaa14(0x15c)][_0x2eaa14(0x169)]:Math[_0x2eaa14(0x123)](0x0,_0x16b21a[_0x2eaa14(0x15c)][_0x2eaa14(0x169)]-0x1);for(let _0x3b1b81=0x0;_0x3b1b81<_0x4d2eac;_0x3b1b81++){let _0x743e3a=T(_0x16b21a,_0x3b1b81);if(!_0x743e3a)continue;let _0x4a0285=D(_0x743e3a,0x0);for(let _0x2ab11d=0x1;_0x2ab11d<=0x20;_0x2ab11d++){let _0x3e6995=D(_0x743e3a,_0x2ab11d/0x20),_0xd8b160=O(_0x56a04c,_0x4a0285,_0x3e6995),_0x4d6173=(_0x2ab11d-0x1+_0xd8b160[_0x2eaa14(0x137)])/0x20;(!_0x3e3609||_0xd8b160['distance']<_0x3e3609[_0x2eaa14(0x121)])&&(_0x3e3609={'segmentIndex':_0x3b1b81,'t':_0x4d6173,'point':_0xd8b160[_0x2eaa14(0x15b)],'distance':_0xd8b160[_0x2eaa14(0x121)]}),_0x4a0285=_0x3e6995;}}return _0x3e3609&&_0x3e3609[_0x2eaa14(0x121)]<=_0x29635c?_0x3e3609:null;}function le(_0x5c0cd0,_0x26da36,_0x115bce){const _0x18fd77=_0xfb34;let _0x3096d8=y(_0x5c0cd0),_0x365dd4=w(_0x3096d8,_0x26da36[_0x18fd77(0x164)]),_0x7d51ad=T(_0x3096d8,_0x26da36['segmentIndex']);if(!_0x365dd4||!_0x7d51ad)return _0x3096d8;let _0x4b6e71=ne(_0x7d51ad,Math[_0x18fd77(0x123)](0x0,Math[_0x18fd77(0x12d)](0x1,_0x26da36['t']))),_0x54d8f7={'id':_0x115bce(),'x':_0x4b6e71[_0x18fd77(0x148)][0x3]['x'],'y':_0x4b6e71[_0x18fd77(0x148)][0x3]['y'],'in':_(_0x4b6e71[_0x18fd77(0x148)][0x2]),'out':_(_0x4b6e71['right'][0x1]),'pointType':_0x18fd77(0x141)};return _0x3096d8[_0x18fd77(0x15c)][_0x365dd4[_0x18fd77(0x15a)]][_0x18fd77(0x15f)]=_(_0x4b6e71[_0x18fd77(0x148)][0x1]),_0x3096d8[_0x18fd77(0x15c)][_0x365dd4[_0x18fd77(0x16e)]]['in']=_(_0x4b6e71[_0x18fd77(0x157)][0x2]),_0x3096d8[_0x18fd77(0x15c)][_0x18fd77(0x128)](_0x365dd4[_0x18fd77(0x15a)]+0x1,0x0,_0x54d8f7),_0x3096d8;}function ue(_0x1168a2,_0x5aff59){const _0x3a61ee=_0xfb34;let _0x3b89bb=y(_0x1168a2);return _0x3b89bb['anchors']=_0x3b89bb[_0x3a61ee(0x15c)][_0x3a61ee(0x16b)](_0x2f4a47=>_0x2f4a47['id']!==_0x5aff59),_0x3b89bb[_0x3a61ee(0x12a)]&&_0x3b89bb[_0x3a61ee(0x15c)]['length']<0x3&&(_0x3b89bb[_0x3a61ee(0x12a)]=!0x1),_0x3b89bb;}function N(_0x413ca2,_0x363103,_0x471f07){const _0x2fd4f2=_0xfb34;let _0x4f8f40=y(_0x413ca2),_0x3ab0c9=_0x4f8f40[_0x2fd4f2(0x15c)]['findIndex'](_0x307b8f=>_0x307b8f['id']===_0x363103),_0x561738=_0x4f8f40[_0x2fd4f2(0x15c)][_0x3ab0c9];if(!_0x561738)return _0x4f8f40;if(_0x561738[_0x2fd4f2(0x138)]=_0x471f07,_0x471f07===_0x2fd4f2(0x135))return delete _0x561738['in'],delete _0x561738[_0x2fd4f2(0x15f)],_0x4f8f40;let _0x235145=j(_0x4f8f40,_0x3ab0c9);if(_0x561738['in']=_0x561738['in']?_(_0x561738['in']):_0x235145['in'],_0x561738[_0x2fd4f2(0x15f)]=_0x561738['out']?_(_0x561738['out']):_0x235145[_0x2fd4f2(0x15f)],_0x471f07===_0x2fd4f2(0x122)){let _0x22c872=Math[_0x2fd4f2(0x123)](x(_0x561738,_0x561738['in']),x(_0x561738,_0x561738[_0x2fd4f2(0x15f)]),0x32),_0x25925e=S({'x':_0x561738['out']['x']-_0x561738['x'],'y':_0x561738[_0x2fd4f2(0x15f)]['y']-_0x561738['y']});_0x561738[_0x2fd4f2(0x15f)]={'x':_0x561738['x']+_0x25925e['x']*_0x22c872,'y':_0x561738['y']+_0x25925e['y']*_0x22c872},_0x561738['in']={'x':_0x561738['x']-_0x25925e['x']*_0x22c872,'y':_0x561738['y']-_0x25925e['y']*_0x22c872};}else _0x471f07===_0x2fd4f2(0x151)&&M(_0x561738,_0x2fd4f2(0x15f));return _0x4f8f40;}function P(_0x3ea508,_0x5107e8){const _0x4bea2f=_0xfb34;let _0x4df642=_0x3ea508[_0x4bea2f(0x15c)][_0x4bea2f(0x172)](_0x13f662=>_0x13f662['id']===_0x5107e8),_0x59c04a=(_0x4df642==null?void 0x0:_0x4df642[_0x4bea2f(0x138)])??'corner';return N(_0x3ea508,_0x5107e8,_0x59c04a==='corner'?_0x4bea2f(0x151):_0x59c04a===_0x4bea2f(0x151)?_0x4bea2f(0x122):_0x59c04a===_0x4bea2f(0x122)?'free':_0x4bea2f(0x135));}function F(_0x544eaf,_0x575373,_0xd68f48){const _0x4d1695=_0xfb34;let _0x1daaac=y(_0x544eaf),_0x289af1=_0x1daaac['anchors']['find'](_0x4067f2=>_0x4067f2['id']===_0x575373[_0x4d1695(0x11f)]);if(!_0x289af1)return _0x1daaac;if(_0x575373[_0x4d1695(0x11e)]==='anchor'){let _0x2b73c5={'x':_0xd68f48['x']-_0x289af1['x'],'y':_0xd68f48['y']-_0x289af1['y']};return _0x289af1['x']=_0xd68f48['x'],_0x289af1['y']=_0xd68f48['y'],_0x289af1['in']&&={'x':_0x289af1['in']['x']+_0x2b73c5['x'],'y':_0x289af1['in']['y']+_0x2b73c5['y']},_0x289af1[_0x4d1695(0x15f)]&&={'x':_0x289af1[_0x4d1695(0x15f)]['x']+_0x2b73c5['x'],'y':_0x289af1['out']['y']+_0x2b73c5['y']},_0x1daaac;}return _0x289af1[_0x575373[_0x4d1695(0x11e)]]=_(_0xd68f48),_0x289af1[_0x4d1695(0x138)]===_0x4d1695(0x135)&&(_0x289af1[_0x4d1695(0x138)]='free'),M(_0x289af1,_0x575373['kind']),_0x1daaac;}const I=1e-9;function L(_0x3436e8){const _0x4767c9=_0xfb34;let _0x36b857=Math[_0x4767c9(0x17b)](_0x3436e8*0x2710)/0x2710;return Object['is'](_0x36b857,-0x0)?'0':String(_0x36b857);}function R(_0x42ac74){return L(_0x42ac74['x'])+'\x20'+L(_0x42ac74['y']);}function z(_0x44891f,_0x4bd96f){return{'x':_0x44891f['x']-_0x4bd96f['x'],'y':_0x44891f['y']-_0x4bd96f['y']};}function B(_0x59b28c,_0x578fef,_0x23119e,_0x309e59,_0x429a9c){let _0x130ab6=0x1-_0x429a9c;return{'x':_0x130ab6*_0x130ab6*_0x130ab6*_0x59b28c['x']+0x3*_0x130ab6*_0x130ab6*_0x429a9c*_0x578fef['x']+0x3*_0x130ab6*_0x429a9c*_0x429a9c*_0x23119e['x']+_0x429a9c*_0x429a9c*_0x429a9c*_0x309e59['x'],'y':_0x130ab6*_0x130ab6*_0x130ab6*_0x59b28c['y']+0x3*_0x130ab6*_0x130ab6*_0x429a9c*_0x578fef['y']+0x3*_0x130ab6*_0x429a9c*_0x429a9c*_0x23119e['y']+_0x429a9c*_0x429a9c*_0x429a9c*_0x309e59['y']};}function V(_0x267d11,_0x260039,_0x5e0036,_0xa32ffc){const _0x44fc4c=_0xfb34;let _0x3b0fb2=-_0x267d11+0x3*_0x260039-0x3*_0x5e0036+_0xa32ffc,_0x2bc1dd=0x3*_0x267d11-0x6*_0x260039+0x3*_0x5e0036,_0x11d51d=-0x3*_0x267d11+0x3*_0x260039,_0x20e4b8=[];if(Math[_0x44fc4c(0x165)](_0x3b0fb2)<I){if(Math['abs'](_0x2bc1dd)<I)return _0x20e4b8;let _0x377c75=-_0x11d51d/(0x2*_0x2bc1dd);return _0x377c75>0x0&&_0x377c75<0x1&&_0x20e4b8[_0x44fc4c(0x13f)](_0x377c75),_0x20e4b8;}let _0x3d02c3=_0x2bc1dd*_0x2bc1dd-0x3*_0x3b0fb2*_0x11d51d;if(_0x3d02c3<0x0)return _0x20e4b8;let _0x105aa7=Math[_0x44fc4c(0x14a)](Math[_0x44fc4c(0x123)](0x0,_0x3d02c3)),_0x54ede7=(-_0x2bc1dd+_0x105aa7)/(0x3*_0x3b0fb2),_0x1aa6fa=(-_0x2bc1dd-_0x105aa7)/(0x3*_0x3b0fb2);return _0x54ede7>0x0&&_0x54ede7<0x1&&_0x20e4b8[_0x44fc4c(0x13f)](_0x54ede7),_0x1aa6fa>0x0&&_0x1aa6fa<0x1&&Math[_0x44fc4c(0x165)](_0x1aa6fa-_0x54ede7)>I&&_0x20e4b8[_0x44fc4c(0x13f)](_0x1aa6fa),_0x20e4b8;}function H(_0x526bb7,_0x319bf5,_0x19101b,_0x8ef6f3,_0x5ed795){const _0x1b00a9=_0xfb34;_0x526bb7['push'](_0x319bf5,_0x5ed795),new Set([...V(_0x319bf5['x'],_0x19101b['x'],_0x8ef6f3['x'],_0x5ed795['x']),...V(_0x319bf5['y'],_0x19101b['y'],_0x8ef6f3['y'],_0x5ed795['y'])])[_0x1b00a9(0x12b)](_0x4bcc87=>{const _0x4819c1=_0x1b00a9;_0x526bb7[_0x4819c1(0x13f)](B(_0x319bf5,_0x19101b,_0x8ef6f3,_0x5ed795,_0x4bcc87));});}function U(_0x1d40ca){const _0x5cca3c=_0xfb34;let _0x5814ad=_0x1d40ca['anchors'];if(_0x5814ad[_0x5cca3c(0x169)]<=0x1)return _0x5814ad;let _0x378656=[];for(let _0x22bf71=0x1;_0x22bf71<_0x5814ad[_0x5cca3c(0x169)];_0x22bf71++){let _0x69020e=_0x5814ad[_0x22bf71-0x1],_0x45884d=_0x5814ad[_0x22bf71];H(_0x378656,_0x69020e,_0x69020e[_0x5cca3c(0x15f)]??_0x69020e,_0x45884d['in']??_0x45884d,_0x45884d);}if(_0x1d40ca[_0x5cca3c(0x12a)]&&_0x5814ad[_0x5cca3c(0x169)]>0x1){let _0x42e91a=_0x5814ad[_0x5814ad[_0x5cca3c(0x169)]-0x1],_0x1d8e0c=_0x5814ad[0x0];H(_0x378656,_0x42e91a,_0x42e91a['out']??_0x42e91a,_0x1d8e0c['in']??_0x1d8e0c,_0x1d8e0c);}return _0x378656;}function de(_0x5efabb){const _0x20a2bc=_0xfb34;let _0x1f45e9=_0x5efabb['points'];if(_0x1f45e9[_0x20a2bc(0x169)]<=0x1)return _0x1f45e9;let _0x4bd307=[];for(let _0x4e269e=0x0;_0x4e269e<_0x1f45e9[_0x20a2bc(0x169)]-0x1;_0x4e269e++){let _0x3e0599=_0x1f45e9[_0x4e269e],_0x56cd97=_0x1f45e9[_0x4e269e+0x1],_0x28f2f7=_0x1f45e9[_0x4e269e-0x1]??_0x3e0599,_0x226430=_0x1f45e9[_0x4e269e+0x2]??_0x56cd97;H(_0x4bd307,_0x3e0599,{'x':_0x3e0599['x']+(_0x56cd97['x']-_0x28f2f7['x'])/0x6,'y':_0x3e0599['y']+(_0x56cd97['y']-_0x28f2f7['y'])/0x6},{'x':_0x56cd97['x']-(_0x226430['x']-_0x3e0599['x'])/0x6,'y':_0x56cd97['y']-(_0x226430['y']-_0x3e0599['y'])/0x6},_0x56cd97);}return _0x4bd307;}function fe(_0x2b5f35){const _0x54c17e=_0xfb34;return _0x2b5f35[_0x54c17e(0x11e)]===_0x54c17e(0x13b)?U(_0x2b5f35):de(_0x2b5f35);}function W(_0x10cc16){const _0x7fbaa1=_0xfb34;let _0x37e7ef=Math[_0x7fbaa1(0x17b)](_0x10cc16*0x2710)/0x2710;return Object['is'](_0x37e7ef,-0x0)?0x0:_0x37e7ef;}function G(_0x55a2c3){const _0x54e03e=_0xfb34;let _0x31413e=fe(_0x55a2c3);if(_0x31413e[_0x54e03e(0x169)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x2827b3=Math['min'](..._0x31413e[_0x54e03e(0x134)](_0x6ae168=>_0x6ae168['x'])),_0x20f669=Math[_0x54e03e(0x12d)](..._0x31413e[_0x54e03e(0x134)](_0x2d2c6b=>_0x2d2c6b['y'])),_0x3d44f4=Math[_0x54e03e(0x123)](..._0x31413e[_0x54e03e(0x134)](_0x1537c2=>_0x1537c2['x'])),_0x325a20=Math['max'](..._0x31413e[_0x54e03e(0x134)](_0x209b5a=>_0x209b5a['y']));return{'left':W(_0x2827b3),'top':W(_0x20f669),'width':W(Math['max'](0x1,_0x3d44f4-_0x2827b3)),'height':W(Math['max'](0x1,_0x325a20-_0x20f669))};}function _0xfb34(_0x1d67e9,_0xa8872d){_0x1d67e9=_0x1d67e9-0x11e;const _0x5ecdc2=_0x5ecd();let _0xfb340e=_0x5ecdc2[_0x1d67e9];return _0xfb340e;}function pe(_0x28958b,_0x3af3b8){const _0x1ceeba=_0xfb34;let _0x3037a8=_0x28958b['anchors'];if(_0x3037a8[_0x1ceeba(0x169)]===0x0)return'';let _0x5ce66d=['M\x20'+R(z(_0x3037a8[0x0],_0x3af3b8))];for(let _0x5b1ea9=0x1;_0x5b1ea9<_0x3037a8[_0x1ceeba(0x169)];_0x5b1ea9++){let _0x2e839c=_0x3037a8[_0x5b1ea9-0x1],_0x30619a=_0x3037a8[_0x5b1ea9],_0x352395=_0x2e839c[_0x1ceeba(0x15f)]??_0x2e839c,_0x4bd8bd=_0x30619a['in']??_0x30619a;_0x5ce66d[_0x1ceeba(0x13f)]('C\x20'+R(z(_0x352395,_0x3af3b8))+'\x20'+R(z(_0x4bd8bd,_0x3af3b8))+'\x20'+R(z(_0x30619a,_0x3af3b8)));}if(_0x28958b[_0x1ceeba(0x12a)]&&_0x3037a8[_0x1ceeba(0x169)]>0x1){let _0x534b55=_0x3037a8[_0x3037a8[_0x1ceeba(0x169)]-0x1],_0x117291=_0x3037a8[0x0],_0x576698=_0x534b55[_0x1ceeba(0x15f)]??_0x534b55,_0x417e56=_0x117291['in']??_0x117291;_0x5ce66d[_0x1ceeba(0x13f)]('C\x20'+R(z(_0x576698,_0x3af3b8))+'\x20'+R(z(_0x417e56,_0x3af3b8))+'\x20'+R(z(_0x117291,_0x3af3b8))),_0x5ce66d[_0x1ceeba(0x13f)]('Z');}return _0x5ce66d[_0x1ceeba(0x14e)]('\x20');}function me(_0x2bfe73,_0x528dad){const _0x6c1ae2=_0xfb34;let _0x57044a=_0x2bfe73['points'][_0x6c1ae2(0x134)](_0x1f9167=>z(_0x1f9167,_0x528dad));if(_0x57044a[_0x6c1ae2(0x169)]===0x0)return'';if(_0x57044a['length']===0x1)return'M\x20'+R(_0x57044a[0x0]);let _0x57a346=['M\x20'+R(_0x57044a[0x0])];for(let _0x4f1c0f=0x0;_0x4f1c0f<_0x57044a[_0x6c1ae2(0x169)]-0x1;_0x4f1c0f++){let _0x5354df=_0x57044a[_0x4f1c0f],_0x3ba180=_0x57044a[_0x4f1c0f+0x1],_0x5c94ce=_0x57044a[_0x4f1c0f-0x1]??_0x5354df,_0x2686c3=_0x57044a[_0x4f1c0f+0x2]??_0x3ba180,_0x90dac3={'x':_0x5354df['x']+(_0x3ba180['x']-_0x5c94ce['x'])/0x6,'y':_0x5354df['y']+(_0x3ba180['y']-_0x5c94ce['y'])/0x6},_0xb99974={'x':_0x3ba180['x']-(_0x2686c3['x']-_0x5354df['x'])/0x6,'y':_0x3ba180['y']-(_0x2686c3['y']-_0x5354df['y'])/0x6};_0x57a346[_0x6c1ae2(0x13f)]('C\x20'+R(_0x90dac3)+'\x20'+R(_0xb99974)+'\x20'+R(_0x3ba180));}return _0x57a346[_0x6c1ae2(0x14e)]('\x20');}function he(_0x3a771b,_0x12afda){const _0x103e45=_0xfb34;return _0x3a771b[_0x103e45(0x11e)]===_0x103e45(0x13b)?pe(_0x3a771b,_0x12afda):me(_0x3a771b,_0x12afda);}function ge(_0x184851,_0x5a7baa){const _0x2f19c6=_0xfb34;return _0x5a7baa!=null&&_0x5a7baa['color']?_0x5a7baa[_0x2f19c6(0x158)]:_0x184851[_0x2f19c6(0x11e)]===_0x2f19c6(0x13b)?_0x2f19c6(0x133):_0x184851[_0x2f19c6(0x158)];}function _e(_0x5c26ac,_0x397b31){const _0x44f9aa=_0xfb34;return(_0x397b31==null?void 0x0:_0x397b31['width'])===void 0x0?_0x5c26ac['kind']===_0x44f9aa(0x13b)?0x2:_0x5c26ac[_0x44f9aa(0x13c)]:_0x397b31[_0x44f9aa(0x13c)];}function ve(_0x19f478,_0x3356df){const _0x3a0c0f=_0xfb34;return(_0x3356df==null?void 0x0:_0x3356df[_0x3a0c0f(0x12c)])===void 0x0?_0x19f478[_0x3a0c0f(0x11e)]==='pen'?void 0x0:_0x19f478[_0x3a0c0f(0x12c)]:_0x3356df['opacity'];}function ye(_0x2d62fd,_0x304670){const _0x1efda2=_0xfb34;let _0xf38616=G(_0x2d62fd),_0x538d40=he(_0x2d62fd,{'x':_0xf38616['left'],'y':_0xf38616[_0x1efda2(0x174)]}),_0x3f4908=_0x2d62fd[_0x1efda2(0x11e)]===_0x1efda2(0x13b)&&_0x2d62fd[_0x1efda2(0x12a)],_0x397cc1=_0x304670==null?void 0x0:_0x304670['fillColor'];return{'shapeType':_0x4aa715[_0x1efda2(0x177)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0xf38616[_0x1efda2(0x13c)],'h':_0xf38616[_0x1efda2(0x173)],'fill':_0x3f4908?_0x1efda2(0x161):_0x1efda2(0x126),'stroke':!0x0,'data':_0x538d40,'dataArray':be(_0x2d62fd,{'x':_0xf38616['left'],'y':_0xf38616[_0x1efda2(0x174)]})}]},'fill':_0x3f4908&&_0x397cc1?{'color':_0x397cc1,'fillType':_0x3d9285['SolidFill']}:{'fillType':_0x3d9285[_0x1efda2(0x155)]},'stroke':{'color':ge(_0x2d62fd,_0x304670),'width':_e(_0x2d62fd,_0x304670),'opacity':ve(_0x2d62fd,_0x304670),'lineStrokeType':_0x53320d[_0x1efda2(0x146)],'capType':_0x4a7b4e[_0x1efda2(0x171)],'lineJoinType':_0x127e75[_0x1efda2(0x171)]}};}function K(_0xb70e3,_0x355490){return{'x':_0xb70e3['x']-_0x355490['x'],'y':_0xb70e3['y']-_0x355490['y']};}function be(_0x2c8e8c,_0x2d684f){const _0xddc849=_0xfb34;if(_0x2c8e8c[_0xddc849(0x11e)]===_0xddc849(0x13b)){let _0x5f3f2f=_0x2c8e8c['anchors'];if(_0x5f3f2f[_0xddc849(0x169)]===0x0)return[];let _0x163fa1=K(_0x5f3f2f[0x0],_0x2d684f),_0x101a10=[{'command':'M','points':[_0x163fa1['x'],_0x163fa1['y']]}];for(let _0x14062d=0x1;_0x14062d<_0x5f3f2f[_0xddc849(0x169)];_0x14062d++){let _0x55edc5=_0x5f3f2f[_0x14062d-0x1],_0x7bd807=_0x5f3f2f[_0x14062d],_0x48c016=K(_0x55edc5['out']??_0x55edc5,_0x2d684f),_0x3105b3=K(_0x7bd807['in']??_0x7bd807,_0x2d684f),_0x3660bc=K(_0x7bd807,_0x2d684f);_0x101a10['push']({'command':'C','points':[_0x48c016['x'],_0x48c016['y'],_0x3105b3['x'],_0x3105b3['y'],_0x3660bc['x'],_0x3660bc['y']]});}if(_0x2c8e8c[_0xddc849(0x12a)]&&_0x5f3f2f[_0xddc849(0x169)]>0x1){let _0x3ec656=_0x5f3f2f[_0x5f3f2f[_0xddc849(0x169)]-0x1],_0x19ab0a=_0x5f3f2f[0x0],_0x46b4e2=K(_0x3ec656[_0xddc849(0x15f)]??_0x3ec656,_0x2d684f),_0x48e0bd=K(_0x19ab0a['in']??_0x19ab0a,_0x2d684f),_0x337e25=K(_0x19ab0a,_0x2d684f);_0x101a10[_0xddc849(0x13f)]({'command':'C','points':[_0x46b4e2['x'],_0x46b4e2['y'],_0x48e0bd['x'],_0x48e0bd['y'],_0x337e25['x'],_0x337e25['y']]}),_0x101a10['push']({'command':'z','points':[]});}return _0x101a10;}let _0x2ca072=_0x2c8e8c[_0xddc849(0x13a)][_0xddc849(0x134)](_0x3d4c5c=>K(_0x3d4c5c,_0x2d684f));if(_0x2ca072[_0xddc849(0x169)]===0x0)return[];let _0x4f57db=[{'command':'M','points':[_0x2ca072[0x0]['x'],_0x2ca072[0x0]['y']]}];for(let _0x545f60=0x0;_0x545f60<_0x2ca072[_0xddc849(0x169)]-0x1;_0x545f60++){let _0x3c4165=_0x2ca072[_0x545f60],_0x5a3859=_0x2ca072[_0x545f60+0x1],_0x7f9ae7=_0x2ca072[_0x545f60-0x1]??_0x3c4165,_0x4d3387=_0x2ca072[_0x545f60+0x2]??_0x5a3859,_0x19bbf1={'x':_0x3c4165['x']+(_0x5a3859['x']-_0x7f9ae7['x'])/0x6,'y':_0x3c4165['y']+(_0x5a3859['y']-_0x7f9ae7['y'])/0x6},_0xaf45cb={'x':_0x5a3859['x']-(_0x4d3387['x']-_0x3c4165['x'])/0x6,'y':_0x5a3859['y']-(_0x4d3387['y']-_0x3c4165['y'])/0x6};_0x4f57db[_0xddc849(0x13f)]({'command':'C','points':[_0x19bbf1['x'],_0x19bbf1['y'],_0xaf45cb['x'],_0xaf45cb['y'],_0x5a3859['x'],_0x5a3859['y']]});}return _0x4f57db;}function xe(_0x4d2de5){const _0x2ae7a7=_0xfb34;let {model:_0x356675,sourceModel:_0x476dc3=_0x356675,style:_0x228d5f}=_0x4d2de5,_0x320a35=_0x4d2de5[_0x2ae7a7(0x13e)]??_0x356675[_0x2ae7a7(0x11e)],_0x1df080=G(_0x356675),_0x11d716=_0x356675[_0x2ae7a7(0x11e)]===_0x2ae7a7(0x13b)&&_0x320a35!==_0x2ae7a7(0x13b)?_0x356675:void 0x0;return{'transform':{..._0x1df080,'rotation':0x0},'shapeData':ye(_0x356675,_0x228d5f),'ink':{'version':0x1,'tool':_0x320a35,'sourceModel':_0x476dc3,..._0x11d716?{'editModel':_0x11d716}:{},'normalizedBounds':_0x1df080}};}var Se=_0x12824f(0x168),Ce='1.0.0-rc.0';function q(_0x1284b6){'@babel/helpers - typeof';const _0x114b7c=_0x12824f;return q=typeof Symbol==_0x114b7c(0x139)&&typeof Symbol[_0x114b7c(0x163)]==_0x114b7c(0x156)?function(_0xc8c90e){return typeof _0xc8c90e;}:function(_0x4a2388){const _0x1ca709=_0x114b7c;return _0x4a2388&&typeof Symbol==_0x1ca709(0x139)&&_0x4a2388[_0x1ca709(0x162)]===Symbol&&_0x4a2388!==Symbol[_0x1ca709(0x125)]?_0x1ca709(0x156):typeof _0x4a2388;},q(_0x1284b6);}function we(_0x16642d,_0x5e3726){const _0x4605ce=_0x12824f;if(q(_0x16642d)!='object'||!_0x16642d)return _0x16642d;var _0x8a85d1=_0x16642d[Symbol[_0x4605ce(0x14b)]];if(_0x8a85d1!==void 0x0){var _0x7fa7cc=_0x8a85d1['call'](_0x16642d,_0x5e3726||_0x4605ce(0x12e));if(q(_0x7fa7cc)!=_0x4605ce(0x14f))return _0x7fa7cc;throw TypeError(_0x4605ce(0x132));}return(_0x5e3726===_0x4605ce(0x144)?String:Number)(_0x16642d);}function J(_0x4a242d){const _0x13c9ea=_0x12824f;var _0x428652=we(_0x4a242d,_0x13c9ea(0x144));return q(_0x428652)==_0x13c9ea(0x156)?_0x428652:_0x428652+'';}function Y(_0x6e450,_0x30418b,_0x45ed00){const _0x1fcfc4=_0x12824f;return(_0x30418b=J(_0x30418b))in _0x6e450?Object[_0x1fcfc4(0x167)](_0x6e450,_0x30418b,{'value':_0x45ed00,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x6e450[_0x30418b]=_0x45ed00,_0x6e450;}const X=_0x276103('ink.host-adapter.service');var Te=class{constructor(){const _0x1a757a=_0x12824f;Y(this,_0x1a757a(0x14c),[]);}[_0x12824f(0x154)](_0x62b286){const _0x12bd43=_0x12824f;return this[_0x12bd43(0x14c)][_0x12bd43(0x13f)](_0x62b286),_0x297405(()=>{const _0x5eba52=_0x12bd43;let _0x50c808=this['_adapters'][_0x5eba52(0x16c)](_0x62b286);_0x50c808>=0x0&&this[_0x5eba52(0x14c)][_0x5eba52(0x128)](_0x50c808,0x1);});}['beginInkMode'](_0x3e7e43){const _0xc7e8a8=_0x12824f;for(let _0x357f0a of this['_adapters'])if(_0x357f0a[_0xc7e8a8(0x153)](_0x3e7e43))return!0x0;return!0x1;}async[_0x12824f(0x129)](_0x226cfa){const _0x1bb35e=_0x12824f;for(let _0x4d5376 of this[_0x1bb35e(0x14c)])if(_0x4d5376[_0x1bb35e(0x129)]&&await _0x4d5376['createCustomShape'](_0x226cfa))return!0x0;return!0x1;}};const Ee={'id':_0x12824f(0x15e),'type':_0x5b45d3[_0x12824f(0x178)],'handler':(_0x1b2182,_0x5149c2)=>_0x5149c2?_0x1b2182[_0x12824f(0x15d)](X)[_0x12824f(0x153)](_0x5149c2):!0x1},Z={};function Q(_0x1c1d7e,_0x5aff32){return function(_0x5448dd,_0x5ad8e5){_0x5aff32(_0x5448dd,_0x5ad8e5,_0x1c1d7e);};}function De(_0x5c2ec3,_0x4651f0,_0x571f8e,_0x6fff3e){const _0x2ac89c=_0x12824f;var _0x288927=arguments[_0x2ac89c(0x169)],_0x57c82a=_0x288927<0x3?_0x4651f0:_0x6fff3e===null?_0x6fff3e=Object[_0x2ac89c(0x14d)](_0x4651f0,_0x571f8e):_0x6fff3e,_0x2a9872;if(typeof Reflect==_0x2ac89c(0x14f)&&typeof Reflect[_0x2ac89c(0x166)]==_0x2ac89c(0x139))_0x57c82a=Reflect['decorate'](_0x5c2ec3,_0x4651f0,_0x571f8e,_0x6fff3e);else{for(var _0x251240=_0x5c2ec3[_0x2ac89c(0x169)]-0x1;_0x251240>=0x0;_0x251240--)(_0x2a9872=_0x5c2ec3[_0x251240])&&(_0x57c82a=(_0x288927<0x3?_0x2a9872(_0x57c82a):_0x288927>0x3?_0x2a9872(_0x4651f0,_0x571f8e,_0x57c82a):_0x2a9872(_0x4651f0,_0x571f8e))||_0x57c82a);}return _0x288927>0x3&&_0x57c82a&&Object[_0x2ac89c(0x167)](_0x4651f0,_0x571f8e,_0x57c82a),_0x57c82a;}let $=class extends _0x19d734{constructor(_0x17ef9d=Z,_0x578ca8,_0x41f82a,_0x120c86){const _0x410b2f=_0x12824f;super(),this[_0x410b2f(0x124)]=_0x17ef9d,this[_0x410b2f(0x136)]=_0x578ca8,this[_0x410b2f(0x120)]=_0x41f82a,this[_0x410b2f(0x170)]=_0x120c86;let {..._0x3b78f9}=_0x110d4d({},Z,this['_config']);this['_configService']['setConfig'](_0x410b2f(0x149),_0x3b78f9);}[_0x12824f(0x16f)](){const _0x4d0b88=_0x12824f;[[X,{'useClass':Te}]][_0x4d0b88(0x12b)](_0x3b9556=>this[_0x4d0b88(0x136)]['add'](_0x3b9556)),this[_0x4d0b88(0x131)](this[_0x4d0b88(0x120)][_0x4d0b88(0x13d)](Ee));}};Y($,'pluginName',_0x12824f(0x150)),Y($,_0x12824f(0x179),Se),Y($,_0x12824f(0x142),Ce),Y($,'type',_0x212eed['UNIVER_UNKNOWN']),$=De([_0x17b879(_0x5a8579),Q(0x1,_0x19a3e6(_0x24e31f)),Q(0x2,_0x46d0bf),Q(0x3,_0x5cf97d)],$);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 _0x262661=_0x5c0c;(function(_0x1f5ee0,_0x3e3c54){const _0x435ed9=_0x5c0c,_0x493e2f=_0x1f5ee0();while(!![]){try{const _0x2fdd5b=parseInt(_0x435ed9(0x219))/0x1+parseInt(_0x435ed9(0x1c4))/0x2*(-parseInt(_0x435ed9(0x1ec))/0x3)+parseInt(_0x435ed9(0x1c1))/0x4*(-parseInt(_0x435ed9(0x1cc))/0x5)+-parseInt(_0x435ed9(0x21a))/0x6+parseInt(_0x435ed9(0x205))/0x7+-parseInt(_0x435ed9(0x1d4))/0x8+parseInt(_0x435ed9(0x206))/0x9;if(_0x2fdd5b===_0x3e3c54)break;else _0x493e2f['push'](_0x493e2f['shift']());}catch(_0x3ca147){_0x493e2f['push'](_0x493e2f['shift']());}}}(_0x16b5,0xa762d));import{ShapeFillEnum as _0x38ff12,ShapeLineCapEnum as _0x123408,ShapeLineJoinEnum as _0xbfe652,ShapeLineTypeEnum as _0x5adb7e,ShapeTypeEnum as _0x1d1c53}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x129a17}from'@univerjs-pro/license';import{CommandType as _0x5f3ab0,DependentOn as _0x1618e7,ICommandService as _0x5d7d4c,IConfigService as _0x386cd3,Inject as _0x336086,Injector as _0x4ecae0,Plugin as _0xe68393,UniverInstanceType as _0x192c47,createIdentifier as _0xcd3cc4,merge as _0x1e52ff,toDisposable as _0x6c9088}from'@univerjs/core';const g=0.0001;function _(_0x41040e){return{'x':_0x41040e['x'],'y':_0x41040e['y']};}function v(_0x3c498b){const _0x241602=_0x5c0c;return{..._0x3c498b,'in':_0x3c498b['in']?_(_0x3c498b['in']):void 0x0,'out':_0x3c498b[_0x241602(0x1cd)]?_(_0x3c498b[_0x241602(0x1cd)]):void 0x0};}function y(_0x55b83c){const _0x170064=_0x5c0c;return{'kind':_0x170064(0x1ef),'closed':_0x55b83c['closed'],'anchors':_0x55b83c[_0x170064(0x201)][_0x170064(0x1c3)](v)};}function b(_0x47d217,_0x152b04,_0x5f47f3){return{'x':_0x47d217['x']+(_0x152b04['x']-_0x47d217['x'])*_0x5f47f3,'y':_0x47d217['y']+(_0x152b04['y']-_0x47d217['y'])*_0x5f47f3};}function x(_0x4d976f,_0x2a33a1){const _0x48f8ac=_0x5c0c;return Math[_0x48f8ac(0x1f1)](_0x4d976f['x']-_0x2a33a1['x'],_0x4d976f['y']-_0x2a33a1['y']);}function S(_0x57bf02){const _0x3c765b=_0x5c0c;let _0x3b3530=Math[_0x3c765b(0x1f1)](_0x57bf02['x'],_0x57bf02['y']);return _0x3b3530<g?{'x':0x1,'y':0x0}:{'x':_0x57bf02['x']/_0x3b3530,'y':_0x57bf02['y']/_0x3b3530};}function C(_0x2aa132,_0xe8a867,_0x12dac1=x(_0x2aa132,_0xe8a867)){let _0x2c956a=S({'x':_0x2aa132['x']-_0xe8a867['x'],'y':_0x2aa132['y']-_0xe8a867['y']});return{'x':_0x2aa132['x']+_0x2c956a['x']*_0x12dac1,'y':_0x2aa132['y']+_0x2c956a['y']*_0x12dac1};}function w(_0x1c107a,_0x4a0943){const _0x5eb65f=_0x5c0c;let {anchors:_0x4af7c4}=_0x1c107a;return _0x4af7c4[_0x5eb65f(0x1fc)]<0x2||_0x4a0943<0x0?null:_0x4a0943<_0x4af7c4[_0x5eb65f(0x1fc)]-0x1?{'startIndex':_0x4a0943,'endIndex':_0x4a0943+0x1,'start':_0x4af7c4[_0x4a0943],'end':_0x4af7c4[_0x4a0943+0x1]}:_0x1c107a['closed']&&_0x4a0943===_0x4af7c4[_0x5eb65f(0x1fc)]-0x1?{'startIndex':_0x4af7c4[_0x5eb65f(0x1fc)]-0x1,'endIndex':0x0,'start':_0x4af7c4[_0x4af7c4[_0x5eb65f(0x1fc)]-0x1],'end':_0x4af7c4[0x0]}:null;}function T(_0x83240b,_0x579e1c){const _0x2e0ac1=_0x5c0c;let _0xa31a2e=w(_0x83240b,_0x579e1c);return _0xa31a2e?[_0xa31a2e['start'],_0xa31a2e[_0x2e0ac1(0x21d)][_0x2e0ac1(0x1cd)]??_0xa31a2e[_0x2e0ac1(0x21d)],_0xa31a2e[_0x2e0ac1(0x1c6)]['in']??_0xa31a2e[_0x2e0ac1(0x1c6)],_0xa31a2e['end']]:null;}function te(_0x4948c8,_0x112c11){const _0x56b7d6=_0x5c0c;return _0x112c11===_0x56b7d6(0x1fd)?_0x4948c8:_0x4948c8[_0x112c11]??null;}function E(_0x10d058,_0x144405,_0x1acb68){const _0x2a3f9d=_0x5c0c;return _0x1acb68===_0x2a3f9d(0x1fd)||_0x10d058[_0x2a3f9d(0x209)]?!0x0:_0x1acb68==='in'?_0x144405>0x0:_0x144405<_0x10d058[_0x2a3f9d(0x201)][_0x2a3f9d(0x1fc)]-0x1;}function D(_0x132b8b,_0x5517a5){let [_0x3c4027,_0x8d9236,_0x5a79db,_0x58e251]=_0x132b8b,_0x1afe6a=b(_0x3c4027,_0x8d9236,_0x5517a5),_0x133079=b(_0x8d9236,_0x5a79db,_0x5517a5),_0x1d326c=b(_0x5a79db,_0x58e251,_0x5517a5);return b(b(_0x1afe6a,_0x133079,_0x5517a5),b(_0x133079,_0x1d326c,_0x5517a5),_0x5517a5);}function ne(_0x18870a,_0x1b6ec4){let [_0x5d1b9d,_0x47935c,_0x593652,_0x4f3b16]=_0x18870a,_0x1eb0cd=b(_0x5d1b9d,_0x47935c,_0x1b6ec4),_0x28db30=b(_0x47935c,_0x593652,_0x1b6ec4),_0x5180a2=b(_0x593652,_0x4f3b16,_0x1b6ec4),_0x4fd217=b(_0x1eb0cd,_0x28db30,_0x1b6ec4),_0x38f4bf=b(_0x28db30,_0x5180a2,_0x1b6ec4),_0x33d709=b(_0x4fd217,_0x38f4bf,_0x1b6ec4);return{'left':[_0x5d1b9d,_0x1eb0cd,_0x4fd217,_0x33d709],'right':[_0x33d709,_0x38f4bf,_0x5180a2,_0x4f3b16]};}function O(_0x290e8d,_0x6b199f,_0x281fd6){const _0x1aaf0c=_0x5c0c;let _0x413683=_0x281fd6['x']-_0x6b199f['x'],_0x19ea85=_0x281fd6['y']-_0x6b199f['y'],_0x44e6e6=_0x413683*_0x413683+_0x19ea85*_0x19ea85,_0x1b5894=_0x44e6e6<=g?0x0:Math[_0x1aaf0c(0x1e2)](0x0,Math[_0x1aaf0c(0x20e)](0x1,((_0x290e8d['x']-_0x6b199f['x'])*_0x413683+(_0x290e8d['y']-_0x6b199f['y'])*_0x19ea85)/_0x44e6e6)),_0x1080df={'x':_0x6b199f['x']+_0x413683*_0x1b5894,'y':_0x6b199f['y']+_0x19ea85*_0x1b5894};return{'point':_0x1080df,'ratio':_0x1b5894,'distance':x(_0x290e8d,_0x1080df)};}function re(_0x688a36,_0x33d926,_0x34d504){return O(_0x688a36,_0x33d926,_0x34d504)['distance']**0x2;}function k(_0x5d35ff,_0x3fb182){const _0xd8a59c=_0x5c0c;if(_0x5d35ff['length']<=0x2)return _0x5d35ff[_0xd8a59c(0x1c3)](_);let _0x577feb=0x0,_0x1434ac=0x0,_0x1bd064=_0x5d35ff[0x0],_0x10d2db=_0x5d35ff[_0x5d35ff['length']-0x1],_0x466b1b=_0x3fb182*_0x3fb182;for(let _0x13b661=0x1;_0x13b661<_0x5d35ff[_0xd8a59c(0x1fc)]-0x1;_0x13b661++){let _0x363724=re(_0x5d35ff[_0x13b661],_0x1bd064,_0x10d2db);_0x363724>_0x577feb&&(_0x577feb=_0x363724,_0x1434ac=_0x13b661);}if(_0x577feb<=_0x466b1b)return[_(_0x1bd064),_(_0x10d2db)];let _0x49f1da=k(_0x5d35ff[_0xd8a59c(0x1ca)](0x0,_0x1434ac+0x1),_0x3fb182),_0x339a33=k(_0x5d35ff[_0xd8a59c(0x1ca)](_0x1434ac),_0x3fb182);return[..._0x49f1da[_0xd8a59c(0x1ca)](0x0,-0x1),..._0x339a33];}function ie(_0x1467a1,_0xa454ed){let _0x19472d=_0x1467a1[_0xa454ed],_0x5c1722=_0x1467a1[_0xa454ed+0x1],_0x1a7bf4=_0x1467a1[_0xa454ed-0x1]??_0x19472d;return{'x':_0x19472d['x']+(_0x5c1722['x']-_0x1a7bf4['x'])/0x6,'y':_0x19472d['y']+(_0x5c1722['y']-_0x1a7bf4['y'])/0x6};}function A(_0x3ff132,_0x52b422){let _0x1a5cae=_0x3ff132[_0x52b422],_0x102bb1=_0x3ff132[_0x52b422-0x1],_0x27e391=_0x3ff132[_0x52b422+0x1]??_0x1a5cae;return{'x':_0x1a5cae['x']-(_0x27e391['x']-_0x102bb1['x'])/0x6,'y':_0x1a5cae['y']-(_0x27e391['y']-_0x102bb1['y'])/0x6};}function j(_0x26ba96,_0xdd3040){const _0x4becf3=_0x5c0c;let _0x728940=_0x26ba96[_0x4becf3(0x201)][_0xdd3040],_0x20245b=_0x26ba96['anchors'][_0xdd3040-0x1]??(_0x26ba96[_0x4becf3(0x209)]?_0x26ba96[_0x4becf3(0x201)][_0x26ba96[_0x4becf3(0x201)][_0x4becf3(0x1fc)]-0x1]:null),_0x2a993a=_0x26ba96[_0x4becf3(0x201)][_0xdd3040+0x1]??(_0x26ba96[_0x4becf3(0x209)]?_0x26ba96[_0x4becf3(0x201)][0x0]:null),_0x310704=_0x20245b&&_0x2a993a?S({'x':_0x2a993a['x']-_0x20245b['x'],'y':_0x2a993a['y']-_0x20245b['y']}):_0x2a993a?S({'x':_0x2a993a['x']-_0x728940['x'],'y':_0x2a993a['y']-_0x728940['y']}):_0x20245b?S({'x':_0x728940['x']-_0x20245b['x'],'y':_0x728940['y']-_0x20245b['y']}):{'x':0x1,'y':0x0},_0x57fc47=_0x20245b&&_0x2a993a?Math[_0x4becf3(0x1e2)](0x32,x(_0x20245b,_0x2a993a)/0x4):0x32;return{'in':{'x':_0x728940['x']-_0x310704['x']*_0x57fc47,'y':_0x728940['y']-_0x310704['y']*_0x57fc47},'out':{'x':_0x728940['x']+_0x310704['x']*_0x57fc47,'y':_0x728940['y']+_0x310704['y']*_0x57fc47}};}function M(_0x5a4c24,_0x2f566c){const _0x35fa31=_0x5c0c;let _0x22aee2=_0x5a4c24[_0x2f566c],_0x5ddd59=_0x2f566c==='in'?'out':'in',_0xd38f31=_0x5a4c24[_0x5ddd59];if(_0x22aee2){if(_0x5a4c24['pointType']===_0x35fa31(0x1cf)){_0x5a4c24[_0x5ddd59]=C(_0x5a4c24,_0x22aee2);return;}_0x5a4c24[_0x35fa31(0x1d5)]===_0x35fa31(0x21e)&&(_0x5a4c24[_0x5ddd59]=C(_0x5a4c24,_0x22aee2,_0xd38f31?x(_0x5a4c24,_0xd38f31):x(_0x5a4c24,_0x22aee2)));}}function ae(_0x4850e4,_0x3c49de){const _0x18de32=_0x5c0c;let _0xfc5556=y(_0x4850e4);return!_0x3c49de||_0xfc5556['closed']||_0xfc5556[_0x18de32(0x201)][_0x18de32(0x1fc)]===0x0||_0xfc5556[_0x18de32(0x201)][_0x18de32(0x21c)]({'id':_0x18de32(0x1d0),'x':_0x3c49de['x'],'y':_0x3c49de['y'],'pointType':'corner'}),_0xfc5556;}function oe(_0x110e24,_0x29652d={}){const _0x46e41c=_0x5c0c;let _0x114872=Math[_0x46e41c(0x1e2)](0x0,_0x29652d[_0x46e41c(0x20a)]??Math[_0x46e41c(0x1e2)](0x4,_0x110e24[_0x46e41c(0x20f)]*0.35)),_0x27262a=_0x29652d[_0x46e41c(0x20c)]??(_0x20683a=>_0x46e41c(0x1bc)+_0x20683a),_0x1567b0=k(_0x110e24[_0x46e41c(0x1dc)],_0x114872),_0x2fd7a6=_0x1567b0[_0x46e41c(0x1c3)]((_0x48b4da,_0x5d3f90)=>({'id':_0x27262a(_0x5d3f90),'x':_0x48b4da['x'],'y':_0x48b4da['y'],'pointType':_0x46e41c(0x215)}));for(let _0x4a35fe=0x0;_0x4a35fe<_0x2fd7a6[_0x46e41c(0x1fc)]-0x1;_0x4a35fe++)_0x2fd7a6[_0x4a35fe][_0x46e41c(0x1cd)]=ie(_0x1567b0,_0x4a35fe),_0x2fd7a6[_0x4a35fe+0x1]['in']=A(_0x1567b0,_0x4a35fe+0x1);return{'kind':_0x46e41c(0x1ef),'closed':!0x1,'anchors':_0x2fd7a6};}function se(_0x2a430e,_0x3286c3,_0x42f02e){const _0x3508f4=_0x5c0c;let _0xe43791=null,_0x2182e3=[_0x3508f4(0x1fd),'in',_0x3508f4(0x1cd)];return _0x2a430e['anchors'][_0x3508f4(0x212)]((_0x2152b8,_0x3fbec6)=>{_0x2182e3['forEach'](_0x13e80a=>{const _0x2ecc0a=_0x5c0c;if(!E(_0x2a430e,_0x3fbec6,_0x13e80a))return;let _0x528378=te(_0x2152b8,_0x13e80a);if(!_0x528378)return;let _0x1d5fd6=x(_0x3286c3,_0x528378);_0x1d5fd6>_0x42f02e||_0xe43791&&_0x1d5fd6>=_0xe43791[_0x2ecc0a(0x1f7)]||(_0xe43791={'handle':{'kind':_0x13e80a,'anchorId':_0x2152b8['id']},'point':_(_0x528378),'distance':_0x1d5fd6});});}),_0xe43791;}function ce(_0x5f1832,_0x493376,_0x2823f3){const _0xa48a91=_0x5c0c;let _0x37c9b7=null,_0xefb11a=_0x5f1832[_0xa48a91(0x209)]?_0x5f1832[_0xa48a91(0x201)][_0xa48a91(0x1fc)]:Math[_0xa48a91(0x1e2)](0x0,_0x5f1832[_0xa48a91(0x201)]['length']-0x1);for(let _0x17fdc7=0x0;_0x17fdc7<_0xefb11a;_0x17fdc7++){let _0x59cad2=T(_0x5f1832,_0x17fdc7);if(!_0x59cad2)continue;let _0x402dba=D(_0x59cad2,0x0);for(let _0x51cc12=0x1;_0x51cc12<=0x20;_0x51cc12++){let _0x7a1cb2=D(_0x59cad2,_0x51cc12/0x20),_0x54ee45=O(_0x493376,_0x402dba,_0x7a1cb2),_0x23d1ed=(_0x51cc12-0x1+_0x54ee45[_0xa48a91(0x1e7)])/0x20;(!_0x37c9b7||_0x54ee45[_0xa48a91(0x1f7)]<_0x37c9b7[_0xa48a91(0x1f7)])&&(_0x37c9b7={'segmentIndex':_0x17fdc7,'t':_0x23d1ed,'point':_0x54ee45[_0xa48a91(0x1c7)],'distance':_0x54ee45[_0xa48a91(0x1f7)]}),_0x402dba=_0x7a1cb2;}}return _0x37c9b7&&_0x37c9b7[_0xa48a91(0x1f7)]<=_0x2823f3?_0x37c9b7:null;}function le(_0x2cee55,_0x3930b3,_0x5c5a31){const _0x4f0fe0=_0x5c0c;let _0x1f3109=y(_0x2cee55),_0x21b904=w(_0x1f3109,_0x3930b3[_0x4f0fe0(0x1e5)]),_0x363983=T(_0x1f3109,_0x3930b3[_0x4f0fe0(0x1e5)]);if(!_0x21b904||!_0x363983)return _0x1f3109;let _0x33f4c4=ne(_0x363983,Math[_0x4f0fe0(0x1e2)](0x0,Math[_0x4f0fe0(0x20e)](0x1,_0x3930b3['t']))),_0xf208a6={'id':_0x5c5a31(),'x':_0x33f4c4['left'][0x3]['x'],'y':_0x33f4c4[_0x4f0fe0(0x1db)][0x3]['y'],'in':_(_0x33f4c4[_0x4f0fe0(0x1db)][0x2]),'out':_(_0x33f4c4[_0x4f0fe0(0x1ed)][0x1]),'pointType':_0x4f0fe0(0x215)};return _0x1f3109[_0x4f0fe0(0x201)][_0x21b904[_0x4f0fe0(0x1ee)]][_0x4f0fe0(0x1cd)]=_(_0x33f4c4['left'][0x1]),_0x1f3109[_0x4f0fe0(0x201)][_0x21b904[_0x4f0fe0(0x1e9)]]['in']=_(_0x33f4c4[_0x4f0fe0(0x1ed)][0x2]),_0x1f3109[_0x4f0fe0(0x201)]['splice'](_0x21b904['startIndex']+0x1,0x0,_0xf208a6),_0x1f3109;}function ue(_0x9e772b,_0x16d4ee){const _0x5c35d9=_0x5c0c;let _0x55f369=y(_0x9e772b);return _0x55f369[_0x5c35d9(0x201)]=_0x55f369[_0x5c35d9(0x201)][_0x5c35d9(0x1f5)](_0x7deb90=>_0x7deb90['id']!==_0x16d4ee),_0x55f369[_0x5c35d9(0x209)]&&_0x55f369[_0x5c35d9(0x201)][_0x5c35d9(0x1fc)]<0x3&&(_0x55f369['closed']=!0x1),_0x55f369;}function N(_0x4518d8,_0x1415e0,_0x44dd9a){const _0x13b4a1=_0x5c0c;let _0x2ffc1c=y(_0x4518d8),_0x159e98=_0x2ffc1c[_0x13b4a1(0x201)][_0x13b4a1(0x1d2)](_0x23aaec=>_0x23aaec['id']===_0x1415e0),_0x2d1e94=_0x2ffc1c['anchors'][_0x159e98];if(!_0x2d1e94)return _0x2ffc1c;if(_0x2d1e94['pointType']=_0x44dd9a,_0x44dd9a===_0x13b4a1(0x1ff))return delete _0x2d1e94['in'],delete _0x2d1e94[_0x13b4a1(0x1cd)],_0x2ffc1c;let _0x562152=j(_0x2ffc1c,_0x159e98);if(_0x2d1e94['in']=_0x2d1e94['in']?_(_0x2d1e94['in']):_0x562152['in'],_0x2d1e94[_0x13b4a1(0x1cd)]=_0x2d1e94[_0x13b4a1(0x1cd)]?_(_0x2d1e94['out']):_0x562152['out'],_0x44dd9a===_0x13b4a1(0x1cf)){let _0x3eaa28=Math[_0x13b4a1(0x1e2)](x(_0x2d1e94,_0x2d1e94['in']),x(_0x2d1e94,_0x2d1e94[_0x13b4a1(0x1cd)]),0x32),_0x5e13b1=S({'x':_0x2d1e94[_0x13b4a1(0x1cd)]['x']-_0x2d1e94['x'],'y':_0x2d1e94['out']['y']-_0x2d1e94['y']});_0x2d1e94[_0x13b4a1(0x1cd)]={'x':_0x2d1e94['x']+_0x5e13b1['x']*_0x3eaa28,'y':_0x2d1e94['y']+_0x5e13b1['y']*_0x3eaa28},_0x2d1e94['in']={'x':_0x2d1e94['x']-_0x5e13b1['x']*_0x3eaa28,'y':_0x2d1e94['y']-_0x5e13b1['y']*_0x3eaa28};}else _0x44dd9a===_0x13b4a1(0x21e)&&M(_0x2d1e94,_0x13b4a1(0x1cd));return _0x2ffc1c;}function P(_0x31d1ee,_0x22fe65){const _0x49b2d6=_0x5c0c;let _0x2e005e=_0x31d1ee[_0x49b2d6(0x201)]['find'](_0x406756=>_0x406756['id']===_0x22fe65),_0x23e7a3=(_0x2e005e==null?void 0x0:_0x2e005e['pointType'])??_0x49b2d6(0x1ff);return N(_0x31d1ee,_0x22fe65,_0x23e7a3==='corner'?'smooth':_0x23e7a3===_0x49b2d6(0x21e)?_0x49b2d6(0x1cf):_0x23e7a3===_0x49b2d6(0x1cf)?_0x49b2d6(0x215):'corner');}function F(_0x5b7984,_0x428b04,_0x4cb977){const _0x563f34=_0x5c0c;let _0x574c3a=y(_0x5b7984),_0x53aafd=_0x574c3a[_0x563f34(0x201)][_0x563f34(0x1c5)](_0x50d45c=>_0x50d45c['id']===_0x428b04[_0x563f34(0x1dd)]);if(!_0x53aafd)return _0x574c3a;if(_0x428b04[_0x563f34(0x1f8)]===_0x563f34(0x1fd)){let _0x3e3efb={'x':_0x4cb977['x']-_0x53aafd['x'],'y':_0x4cb977['y']-_0x53aafd['y']};return _0x53aafd['x']=_0x4cb977['x'],_0x53aafd['y']=_0x4cb977['y'],_0x53aafd['in']&&={'x':_0x53aafd['in']['x']+_0x3e3efb['x'],'y':_0x53aafd['in']['y']+_0x3e3efb['y']},_0x53aafd[_0x563f34(0x1cd)]&&={'x':_0x53aafd[_0x563f34(0x1cd)]['x']+_0x3e3efb['x'],'y':_0x53aafd['out']['y']+_0x3e3efb['y']},_0x574c3a;}return _0x53aafd[_0x428b04['kind']]=_(_0x4cb977),_0x53aafd[_0x563f34(0x1d5)]==='corner'&&(_0x53aafd[_0x563f34(0x1d5)]=_0x563f34(0x215)),M(_0x53aafd,_0x428b04[_0x563f34(0x1f8)]),_0x574c3a;}const I=1e-9;function L(_0xf5e7ce){const _0x1c942d=_0x5c0c;let _0x3cb7e2=Math[_0x1c942d(0x1d6)](_0xf5e7ce*0x2710)/0x2710;return Object['is'](_0x3cb7e2,-0x0)?'0':String(_0x3cb7e2);}function R(_0x5b9ab2){return L(_0x5b9ab2['x'])+'\x20'+L(_0x5b9ab2['y']);}function z(_0x1c9bf6,_0x185518){return{'x':_0x1c9bf6['x']-_0x185518['x'],'y':_0x1c9bf6['y']-_0x185518['y']};}function B(_0x4bc8a7,_0x5aa30b,_0xcb56ec,_0x5ee6af,_0x82c9a4){let _0x2e5941=0x1-_0x82c9a4;return{'x':_0x2e5941*_0x2e5941*_0x2e5941*_0x4bc8a7['x']+0x3*_0x2e5941*_0x2e5941*_0x82c9a4*_0x5aa30b['x']+0x3*_0x2e5941*_0x82c9a4*_0x82c9a4*_0xcb56ec['x']+_0x82c9a4*_0x82c9a4*_0x82c9a4*_0x5ee6af['x'],'y':_0x2e5941*_0x2e5941*_0x2e5941*_0x4bc8a7['y']+0x3*_0x2e5941*_0x2e5941*_0x82c9a4*_0x5aa30b['y']+0x3*_0x2e5941*_0x82c9a4*_0x82c9a4*_0xcb56ec['y']+_0x82c9a4*_0x82c9a4*_0x82c9a4*_0x5ee6af['y']};}function _0x16b5(){const _0x40f63e=['length','anchor','abs','corner','setConfig','anchors','prototype','ink.config','join','5171558PsIdCS','14325570wgORYR','SolidLine','string','closed','tolerance','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createId','UNIVER_UNKNOWN','min','width','registerAdapter','defineProperty','forEach','splice','none','free','Rect','_commandService','toPrimitive','797632DJezDl','7879524CehCCE','onStarting','push','start','smooth','ink-centerline-','symbol','add','function','Round','492gulpcy','packageName','map','216164VwfXVn','find','end','point','_injector','top','slice','_config','2415GerItA','out','createCustomShape','symmetric','__ink-preview-anchor__','1.0.0','findIndex','type','6829728gPWJcq','pointType','round','object','iterator','opacity','sqrt','left','points','anchorId','_adapters','@univerjs-pro/ink','decorate','OPERATION','max','height','NoFill','segmentIndex','UNIVER_INK_PLUGIN','ratio','tool','endIndex','constructor','color','6pQKvLn','right','startIndex','pen','registerCommand','hypot','default','pluginName','get','filter','beginInkMode','distance','kind','norm','version','ink.operation.start'];_0x16b5=function(){return _0x40f63e;};return _0x16b5();}function V(_0x842fc0,_0x39c1cc,_0x296558,_0x22fedd){const _0x5da72a=_0x5c0c;let _0x86b305=-_0x842fc0+0x3*_0x39c1cc-0x3*_0x296558+_0x22fedd,_0x1192d8=0x3*_0x842fc0-0x6*_0x39c1cc+0x3*_0x296558,_0x31f63d=-0x3*_0x842fc0+0x3*_0x39c1cc,_0x53543f=[];if(Math[_0x5da72a(0x1fe)](_0x86b305)<I){if(Math[_0x5da72a(0x1fe)](_0x1192d8)<I)return _0x53543f;let _0x3b5e85=-_0x31f63d/(0x2*_0x1192d8);return _0x3b5e85>0x0&&_0x3b5e85<0x1&&_0x53543f['push'](_0x3b5e85),_0x53543f;}let _0x3f8219=_0x1192d8*_0x1192d8-0x3*_0x86b305*_0x31f63d;if(_0x3f8219<0x0)return _0x53543f;let _0x1ac936=Math[_0x5da72a(0x1da)](Math[_0x5da72a(0x1e2)](0x0,_0x3f8219)),_0x2d0f76=(-_0x1192d8+_0x1ac936)/(0x3*_0x86b305),_0x1aa843=(-_0x1192d8-_0x1ac936)/(0x3*_0x86b305);return _0x2d0f76>0x0&&_0x2d0f76<0x1&&_0x53543f[_0x5da72a(0x21c)](_0x2d0f76),_0x1aa843>0x0&&_0x1aa843<0x1&&Math[_0x5da72a(0x1fe)](_0x1aa843-_0x2d0f76)>I&&_0x53543f['push'](_0x1aa843),_0x53543f;}function _0x5c0c(_0x43bd8a,_0x82232c){_0x43bd8a=_0x43bd8a-0x1bc;const _0x16b58d=_0x16b5();let _0x5c0cf2=_0x16b58d[_0x43bd8a];return _0x5c0cf2;}function H(_0x641b78,_0x5e9a04,_0x24d17d,_0x39f9f9,_0x1ace94){const _0x50664e=_0x5c0c;_0x641b78['push'](_0x5e9a04,_0x1ace94),new Set([...V(_0x5e9a04['x'],_0x24d17d['x'],_0x39f9f9['x'],_0x1ace94['x']),...V(_0x5e9a04['y'],_0x24d17d['y'],_0x39f9f9['y'],_0x1ace94['y'])])[_0x50664e(0x212)](_0x5c7830=>{const _0x680e21=_0x50664e;_0x641b78[_0x680e21(0x21c)](B(_0x5e9a04,_0x24d17d,_0x39f9f9,_0x1ace94,_0x5c7830));});}function U(_0x33d446){const _0x78d47d=_0x5c0c;let _0x4f02d6=_0x33d446['anchors'];if(_0x4f02d6['length']<=0x1)return _0x4f02d6;let _0x3fb3a7=[];for(let _0x260d1d=0x1;_0x260d1d<_0x4f02d6[_0x78d47d(0x1fc)];_0x260d1d++){let _0x368245=_0x4f02d6[_0x260d1d-0x1],_0x468ad9=_0x4f02d6[_0x260d1d];H(_0x3fb3a7,_0x368245,_0x368245[_0x78d47d(0x1cd)]??_0x368245,_0x468ad9['in']??_0x468ad9,_0x468ad9);}if(_0x33d446['closed']&&_0x4f02d6[_0x78d47d(0x1fc)]>0x1){let _0x11491b=_0x4f02d6[_0x4f02d6[_0x78d47d(0x1fc)]-0x1],_0x535819=_0x4f02d6[0x0];H(_0x3fb3a7,_0x11491b,_0x11491b['out']??_0x11491b,_0x535819['in']??_0x535819,_0x535819);}return _0x3fb3a7;}function de(_0x12ed25){const _0x46bda2=_0x5c0c;let _0x58a3f=_0x12ed25[_0x46bda2(0x1dc)];if(_0x58a3f[_0x46bda2(0x1fc)]<=0x1)return _0x58a3f;let _0x5ef4d6=[];for(let _0x571e8a=0x0;_0x571e8a<_0x58a3f[_0x46bda2(0x1fc)]-0x1;_0x571e8a++){let _0xe358c1=_0x58a3f[_0x571e8a],_0x13a729=_0x58a3f[_0x571e8a+0x1],_0x5047b2=_0x58a3f[_0x571e8a-0x1]??_0xe358c1,_0x5c93d2=_0x58a3f[_0x571e8a+0x2]??_0x13a729;H(_0x5ef4d6,_0xe358c1,{'x':_0xe358c1['x']+(_0x13a729['x']-_0x5047b2['x'])/0x6,'y':_0xe358c1['y']+(_0x13a729['y']-_0x5047b2['y'])/0x6},{'x':_0x13a729['x']-(_0x5c93d2['x']-_0xe358c1['x'])/0x6,'y':_0x13a729['y']-(_0x5c93d2['y']-_0xe358c1['y'])/0x6},_0x13a729);}return _0x5ef4d6;}function fe(_0x508cf3){const _0x16a945=_0x5c0c;return _0x508cf3[_0x16a945(0x1f8)]===_0x16a945(0x1ef)?U(_0x508cf3):de(_0x508cf3);}function W(_0x43ae2d){const _0x450191=_0x5c0c;let _0x39dda3=Math[_0x450191(0x1d6)](_0x43ae2d*0x2710)/0x2710;return Object['is'](_0x39dda3,-0x0)?0x0:_0x39dda3;}function G(_0x4987f3){const _0x2ea740=_0x5c0c;let _0x382d09=fe(_0x4987f3);if(_0x382d09[_0x2ea740(0x1fc)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x50bd36=Math['min'](..._0x382d09[_0x2ea740(0x1c3)](_0x5d1230=>_0x5d1230['x'])),_0xacf575=Math[_0x2ea740(0x20e)](..._0x382d09[_0x2ea740(0x1c3)](_0x153809=>_0x153809['y'])),_0x52b1f3=Math[_0x2ea740(0x1e2)](..._0x382d09['map'](_0x55a84c=>_0x55a84c['x'])),_0xada904=Math['max'](..._0x382d09[_0x2ea740(0x1c3)](_0x2a7660=>_0x2a7660['y']));return{'left':W(_0x50bd36),'top':W(_0xacf575),'width':W(Math['max'](0x1,_0x52b1f3-_0x50bd36)),'height':W(Math[_0x2ea740(0x1e2)](0x1,_0xada904-_0xacf575))};}function pe(_0x42d3e0,_0x5a766d){const _0x47c588=_0x5c0c;let _0x449123=_0x42d3e0[_0x47c588(0x201)];if(_0x449123[_0x47c588(0x1fc)]===0x0)return'';let _0x1ad93d=['M\x20'+R(z(_0x449123[0x0],_0x5a766d))];for(let _0x286a79=0x1;_0x286a79<_0x449123[_0x47c588(0x1fc)];_0x286a79++){let _0x467c6f=_0x449123[_0x286a79-0x1],_0x453f14=_0x449123[_0x286a79],_0x2591b8=_0x467c6f[_0x47c588(0x1cd)]??_0x467c6f,_0x1ac997=_0x453f14['in']??_0x453f14;_0x1ad93d[_0x47c588(0x21c)]('C\x20'+R(z(_0x2591b8,_0x5a766d))+'\x20'+R(z(_0x1ac997,_0x5a766d))+'\x20'+R(z(_0x453f14,_0x5a766d)));}if(_0x42d3e0['closed']&&_0x449123[_0x47c588(0x1fc)]>0x1){let _0x33cf1d=_0x449123[_0x449123[_0x47c588(0x1fc)]-0x1],_0x5946bd=_0x449123[0x0],_0x15fcef=_0x33cf1d['out']??_0x33cf1d,_0xa0f9cc=_0x5946bd['in']??_0x5946bd;_0x1ad93d[_0x47c588(0x21c)]('C\x20'+R(z(_0x15fcef,_0x5a766d))+'\x20'+R(z(_0xa0f9cc,_0x5a766d))+'\x20'+R(z(_0x5946bd,_0x5a766d))),_0x1ad93d[_0x47c588(0x21c)]('Z');}return _0x1ad93d[_0x47c588(0x204)]('\x20');}function me(_0x177092,_0x40e283){const _0x235c09=_0x5c0c;let _0x3a7872=_0x177092[_0x235c09(0x1dc)][_0x235c09(0x1c3)](_0x40e079=>z(_0x40e079,_0x40e283));if(_0x3a7872[_0x235c09(0x1fc)]===0x0)return'';if(_0x3a7872['length']===0x1)return'M\x20'+R(_0x3a7872[0x0]);let _0x53466a=['M\x20'+R(_0x3a7872[0x0])];for(let _0x38c1d6=0x0;_0x38c1d6<_0x3a7872[_0x235c09(0x1fc)]-0x1;_0x38c1d6++){let _0x559d78=_0x3a7872[_0x38c1d6],_0x5ecdc5=_0x3a7872[_0x38c1d6+0x1],_0x5b0abd=_0x3a7872[_0x38c1d6-0x1]??_0x559d78,_0x35fb09=_0x3a7872[_0x38c1d6+0x2]??_0x5ecdc5,_0x14e047={'x':_0x559d78['x']+(_0x5ecdc5['x']-_0x5b0abd['x'])/0x6,'y':_0x559d78['y']+(_0x5ecdc5['y']-_0x5b0abd['y'])/0x6},_0x97b7b8={'x':_0x5ecdc5['x']-(_0x35fb09['x']-_0x559d78['x'])/0x6,'y':_0x5ecdc5['y']-(_0x35fb09['y']-_0x559d78['y'])/0x6};_0x53466a[_0x235c09(0x21c)]('C\x20'+R(_0x14e047)+'\x20'+R(_0x97b7b8)+'\x20'+R(_0x5ecdc5));}return _0x53466a[_0x235c09(0x204)]('\x20');}function he(_0x2519d2,_0x982ce3){const _0x1346cf=_0x5c0c;return _0x2519d2[_0x1346cf(0x1f8)]==='pen'?pe(_0x2519d2,_0x982ce3):me(_0x2519d2,_0x982ce3);}function ge(_0x473e9f,_0x4a1fc8){const _0x10df6f=_0x5c0c;return _0x4a1fc8!=null&&_0x4a1fc8['color']?_0x4a1fc8[_0x10df6f(0x1eb)]:_0x473e9f[_0x10df6f(0x1f8)]==='pen'?'#f54a45':_0x473e9f['color'];}function _e(_0x4b8a58,_0x523e3a){const _0x2efc78=_0x5c0c;return(_0x523e3a==null?void 0x0:_0x523e3a[_0x2efc78(0x20f)])===void 0x0?_0x4b8a58['kind']===_0x2efc78(0x1ef)?0x2:_0x4b8a58[_0x2efc78(0x20f)]:_0x523e3a[_0x2efc78(0x20f)];}function ve(_0x483f0b,_0x2dada5){const _0x332604=_0x5c0c;return(_0x2dada5==null?void 0x0:_0x2dada5[_0x332604(0x1d9)])===void 0x0?_0x483f0b['kind']===_0x332604(0x1ef)?void 0x0:_0x483f0b['opacity']:_0x2dada5[_0x332604(0x1d9)];}function ye(_0x286a18,_0x999a6b){const _0xc257a7=_0x5c0c;let _0x519e22=G(_0x286a18),_0x273157=he(_0x286a18,{'x':_0x519e22['left'],'y':_0x519e22[_0xc257a7(0x1c9)]}),_0xa00663=_0x286a18[_0xc257a7(0x1f8)]==='pen'&&_0x286a18[_0xc257a7(0x209)],_0x2c8a62=_0x999a6b==null?void 0x0:_0x999a6b['fillColor'];return{'shapeType':_0x1d1c53[_0xc257a7(0x216)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x519e22[_0xc257a7(0x20f)],'h':_0x519e22[_0xc257a7(0x1e3)],'fill':_0xa00663?_0xc257a7(0x1f9):_0xc257a7(0x214),'stroke':!0x0,'data':_0x273157,'dataArray':be(_0x286a18,{'x':_0x519e22[_0xc257a7(0x1db)],'y':_0x519e22[_0xc257a7(0x1c9)]})}]},'fill':_0xa00663&&_0x2c8a62?{'color':_0x2c8a62,'fillType':_0x38ff12['SolidFill']}:{'fillType':_0x38ff12[_0xc257a7(0x1e4)]},'stroke':{'color':ge(_0x286a18,_0x999a6b),'width':_e(_0x286a18,_0x999a6b),'opacity':ve(_0x286a18,_0x999a6b),'lineStrokeType':_0x5adb7e[_0xc257a7(0x207)],'capType':_0x123408['Round'],'lineJoinType':_0xbfe652[_0xc257a7(0x1c0)]}};}function K(_0x2f81b0,_0x21807e){return{'x':_0x2f81b0['x']-_0x21807e['x'],'y':_0x2f81b0['y']-_0x21807e['y']};}function be(_0x3a8b8c,_0x370cbc){const _0x19060f=_0x5c0c;if(_0x3a8b8c[_0x19060f(0x1f8)]===_0x19060f(0x1ef)){let _0x26a4de=_0x3a8b8c[_0x19060f(0x201)];if(_0x26a4de[_0x19060f(0x1fc)]===0x0)return[];let _0x1336c9=K(_0x26a4de[0x0],_0x370cbc),_0x4774d9=[{'command':'M','points':[_0x1336c9['x'],_0x1336c9['y']]}];for(let _0x10ecb6=0x1;_0x10ecb6<_0x26a4de[_0x19060f(0x1fc)];_0x10ecb6++){let _0x2f35a9=_0x26a4de[_0x10ecb6-0x1],_0x5455e9=_0x26a4de[_0x10ecb6],_0x1039e3=K(_0x2f35a9['out']??_0x2f35a9,_0x370cbc),_0x567d62=K(_0x5455e9['in']??_0x5455e9,_0x370cbc),_0x1c9937=K(_0x5455e9,_0x370cbc);_0x4774d9[_0x19060f(0x21c)]({'command':'C','points':[_0x1039e3['x'],_0x1039e3['y'],_0x567d62['x'],_0x567d62['y'],_0x1c9937['x'],_0x1c9937['y']]});}if(_0x3a8b8c[_0x19060f(0x209)]&&_0x26a4de['length']>0x1){let _0x5b2b3b=_0x26a4de[_0x26a4de['length']-0x1],_0x50853a=_0x26a4de[0x0],_0x54a256=K(_0x5b2b3b[_0x19060f(0x1cd)]??_0x5b2b3b,_0x370cbc),_0x44d435=K(_0x50853a['in']??_0x50853a,_0x370cbc),_0x3dace3=K(_0x50853a,_0x370cbc);_0x4774d9['push']({'command':'C','points':[_0x54a256['x'],_0x54a256['y'],_0x44d435['x'],_0x44d435['y'],_0x3dace3['x'],_0x3dace3['y']]}),_0x4774d9[_0x19060f(0x21c)]({'command':'z','points':[]});}return _0x4774d9;}let _0x3de465=_0x3a8b8c[_0x19060f(0x1dc)]['map'](_0x45bb66=>K(_0x45bb66,_0x370cbc));if(_0x3de465[_0x19060f(0x1fc)]===0x0)return[];let _0x4b0d78=[{'command':'M','points':[_0x3de465[0x0]['x'],_0x3de465[0x0]['y']]}];for(let _0x171c78=0x0;_0x171c78<_0x3de465[_0x19060f(0x1fc)]-0x1;_0x171c78++){let _0x51bfb7=_0x3de465[_0x171c78],_0x977006=_0x3de465[_0x171c78+0x1],_0x5ccf74=_0x3de465[_0x171c78-0x1]??_0x51bfb7,_0x538cb1=_0x3de465[_0x171c78+0x2]??_0x977006,_0x3726b7={'x':_0x51bfb7['x']+(_0x977006['x']-_0x5ccf74['x'])/0x6,'y':_0x51bfb7['y']+(_0x977006['y']-_0x5ccf74['y'])/0x6},_0x6ecdc4={'x':_0x977006['x']-(_0x538cb1['x']-_0x51bfb7['x'])/0x6,'y':_0x977006['y']-(_0x538cb1['y']-_0x51bfb7['y'])/0x6};_0x4b0d78[_0x19060f(0x21c)]({'command':'C','points':[_0x3726b7['x'],_0x3726b7['y'],_0x6ecdc4['x'],_0x6ecdc4['y'],_0x977006['x'],_0x977006['y']]});}return _0x4b0d78;}function xe(_0x2f3c14){const _0x86905=_0x5c0c;let {model:_0x3aaf40,sourceModel:_0x578b8b=_0x3aaf40,style:_0xd8ffd2}=_0x2f3c14,_0x336aa3=_0x2f3c14[_0x86905(0x1e8)]??_0x3aaf40['kind'],_0x39456b=G(_0x3aaf40),_0x42caeb=_0x3aaf40[_0x86905(0x1f8)]==='pen'&&_0x336aa3!==_0x86905(0x1ef)?_0x3aaf40:void 0x0;return{'transform':{..._0x39456b,'rotation':0x0},'shapeData':ye(_0x3aaf40,_0xd8ffd2),'ink':{'version':0x1,'tool':_0x336aa3,'sourceModel':_0x578b8b,..._0x42caeb?{'editModel':_0x42caeb}:{},'normalizedBounds':_0x39456b}};}var Se=_0x262661(0x1df),Ce=_0x262661(0x1d1);function q(_0x2f17e4){'@babel/helpers - typeof';const _0x2b3ea2=_0x262661;return q=typeof Symbol==_0x2b3ea2(0x1bf)&&typeof Symbol[_0x2b3ea2(0x1d8)]==_0x2b3ea2(0x1bd)?function(_0x15d5cd){return typeof _0x15d5cd;}:function(_0x36b1e5){const _0x5c61fa=_0x2b3ea2;return _0x36b1e5&&typeof Symbol==_0x5c61fa(0x1bf)&&_0x36b1e5[_0x5c61fa(0x1ea)]===Symbol&&_0x36b1e5!==Symbol[_0x5c61fa(0x202)]?_0x5c61fa(0x1bd):typeof _0x36b1e5;},q(_0x2f17e4);}function we(_0x5c92bb,_0x2d128b){const _0x1d0aba=_0x262661;if(q(_0x5c92bb)!=_0x1d0aba(0x1d7)||!_0x5c92bb)return _0x5c92bb;var _0x5b53eb=_0x5c92bb[Symbol[_0x1d0aba(0x218)]];if(_0x5b53eb!==void 0x0){var _0x18a871=_0x5b53eb['call'](_0x5c92bb,_0x2d128b||_0x1d0aba(0x1f2));if(q(_0x18a871)!=_0x1d0aba(0x1d7))return _0x18a871;throw TypeError(_0x1d0aba(0x20b));}return(_0x2d128b==='string'?String:Number)(_0x5c92bb);}function J(_0x189e1e){const _0x24579c=_0x262661;var _0x5a31d9=we(_0x189e1e,_0x24579c(0x208));return q(_0x5a31d9)==_0x24579c(0x1bd)?_0x5a31d9:_0x5a31d9+'';}function Y(_0x5a7cac,_0xf7dde3,_0x10d66e){return(_0xf7dde3=J(_0xf7dde3))in _0x5a7cac?Object['defineProperty'](_0x5a7cac,_0xf7dde3,{'value':_0x10d66e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5a7cac[_0xf7dde3]=_0x10d66e,_0x5a7cac;}const X=_0xcd3cc4('ink.host-adapter.service');var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x262661(0x210)](_0x26b700){const _0x13834a=_0x262661;return this[_0x13834a(0x1de)][_0x13834a(0x21c)](_0x26b700),_0x6c9088(()=>{const _0x588e31=_0x13834a;let _0x170bc7=this[_0x588e31(0x1de)]['indexOf'](_0x26b700);_0x170bc7>=0x0&&this[_0x588e31(0x1de)][_0x588e31(0x213)](_0x170bc7,0x1);});}[_0x262661(0x1f6)](_0x269808){for(let _0x3316ae of this['_adapters'])if(_0x3316ae['beginInkMode'](_0x269808))return!0x0;return!0x1;}async[_0x262661(0x1ce)](_0x56743e){const _0x56b79b=_0x262661;for(let _0x57ed09 of this[_0x56b79b(0x1de)])if(_0x57ed09['createCustomShape']&&await _0x57ed09[_0x56b79b(0x1ce)](_0x56743e))return!0x0;return!0x1;}};const Ee={'id':_0x262661(0x1fb),'type':_0x5f3ab0[_0x262661(0x1e1)],'handler':(_0x4aa9bc,_0x1771e2)=>_0x1771e2?_0x4aa9bc[_0x262661(0x1f4)](X)[_0x262661(0x1f6)](_0x1771e2):!0x1},Z={};function Q(_0x2c4daf,_0x257f05){return function(_0x3c23ae,_0x55d34b){_0x257f05(_0x3c23ae,_0x55d34b,_0x2c4daf);};}function De(_0xa98d20,_0x35ca01,_0x6adbc8,_0x41a38a){const _0x36b646=_0x262661;var _0xcd28a6=arguments[_0x36b646(0x1fc)],_0x3f69ea=_0xcd28a6<0x3?_0x35ca01:_0x41a38a===null?_0x41a38a=Object['getOwnPropertyDescriptor'](_0x35ca01,_0x6adbc8):_0x41a38a,_0x2bb95a;if(typeof Reflect==_0x36b646(0x1d7)&&typeof Reflect['decorate']==_0x36b646(0x1bf))_0x3f69ea=Reflect[_0x36b646(0x1e0)](_0xa98d20,_0x35ca01,_0x6adbc8,_0x41a38a);else{for(var _0x2c5c7d=_0xa98d20[_0x36b646(0x1fc)]-0x1;_0x2c5c7d>=0x0;_0x2c5c7d--)(_0x2bb95a=_0xa98d20[_0x2c5c7d])&&(_0x3f69ea=(_0xcd28a6<0x3?_0x2bb95a(_0x3f69ea):_0xcd28a6>0x3?_0x2bb95a(_0x35ca01,_0x6adbc8,_0x3f69ea):_0x2bb95a(_0x35ca01,_0x6adbc8))||_0x3f69ea);}return _0xcd28a6>0x3&&_0x3f69ea&&Object[_0x36b646(0x211)](_0x35ca01,_0x6adbc8,_0x3f69ea),_0x3f69ea;}let $=class extends _0xe68393{constructor(_0x5cff54=Z,_0x3b9363,_0x3990ea,_0x38a982){const _0x1df77f=_0x262661;super(),this[_0x1df77f(0x1cb)]=_0x5cff54,this[_0x1df77f(0x1c8)]=_0x3b9363,this[_0x1df77f(0x217)]=_0x3990ea,this['_configService']=_0x38a982;let {..._0x398c78}=_0x1e52ff({},Z,this[_0x1df77f(0x1cb)]);this['_configService'][_0x1df77f(0x200)](_0x1df77f(0x203),_0x398c78);}[_0x262661(0x21b)](){const _0x188dff=_0x262661;[[X,{'useClass':Te}]][_0x188dff(0x212)](_0x2364e3=>this[_0x188dff(0x1c8)][_0x188dff(0x1be)](_0x2364e3)),this['disposeWithMe'](this[_0x188dff(0x217)][_0x188dff(0x1f0)](Ee));}};Y($,_0x262661(0x1f3),_0x262661(0x1e6)),Y($,_0x262661(0x1c2),Se),Y($,_0x262661(0x1fa),Ce),Y($,_0x262661(0x1d3),_0x192c47[_0x262661(0x20d)]),$=De([_0x1618e7(_0x129a17),Q(0x1,_0x336086(_0x4ecae0)),Q(0x2,_0x5d7d4c),Q(0x3,_0x386cd3)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x338c12=_0x2fdb;(function(_0x1a2c1d,_0x53976f){const _0x84a236=_0x2fdb,_0xb734fb=_0x1a2c1d();while(!![]){try{const _0x3ed01f=parseInt(_0x84a236(0x152))/0x1*(parseInt(_0x84a236(0x177))/0x2)+parseInt(_0x84a236(0x149))/0x3*(-parseInt(_0x84a236(0x16c))/0x4)+-parseInt(_0x84a236(0x16f))/0x5*(-parseInt(_0x84a236(0x169))/0x6)+-parseInt(_0x84a236(0x158))/0x7+-parseInt(_0x84a236(0x16e))/0x8+-parseInt(_0x84a236(0x176))/0x9*(-parseInt(_0x84a236(0x160))/0xa)+parseInt(_0x84a236(0x144))/0xb*(-parseInt(_0x84a236(0x150))/0xc);if(_0x3ed01f===_0x53976f)break;else _0xb734fb['push'](_0xb734fb['shift']());}catch(_0x1db3a8){_0xb734fb['push'](_0xb734fb['shift']());}}}(_0x5c13,0xc2cd8));import{BoardElementType as _0xaa2e6b}from'@univerjs-pro/boards';import{FBoard as _0x2b82da}from'@univerjs-pro/boards/facade';function _0x2fdb(_0x5e3bd5,_0x24cd01){_0x5e3bd5=_0x5e3bd5-0x144;const _0x5c1374=_0x5c13();let _0x2fdbc4=_0x5c1374[_0x5e3bd5];return _0x2fdbc4;}import{buildInkCustomShapePayload as _0x33bdf5}from'@univerjs-pro/ink';function _0x5c13(){const _0xac1b37=['filter','10239066CSQZMA','2PwnPLx','575751PMWuCa','trim','smooth','shapeData','insertInk','6QdAoga','opacity','corner','out','BoardInkHandleKind','anchors','sourceModel','132IUOdzw','isFinite','768214YifZId','findElements','custom','Shape','width','symmetric','2551780QBncsf','kind','insertIndex','_addElement','model','style','anchor','extend','10symymH','BoardInkPointType','length','version','laneId','parentId','object','highlighter','transform','6aJUWvI','deepClone','isArray','859748mhFlQq','pressure','5825360XMlPYF','4951795HVrrKM','pen','getInks','points','every','ink'];_0x5c13=function(){return _0xac1b37;};return _0x5c13();}import{Tools as _0x487151,generateRandomId as _0x38bb3c}from'@univerjs/core';import{FEnum as _0x4bf51c}from'@univerjs/core/facade';var o=class extends _0x2b82da{[_0x338c12(0x148)](_0x13394d){const _0x4e1eb6=_0x338c12;let _0x5cdf0e=s(_0x13394d);return _0x5cdf0e&&this[_0x4e1eb6(0x15b)](_0x5cdf0e,{'insertIndex':_0x13394d[_0x4e1eb6(0x15a)]})?_0x5cdf0e:null;}[_0x338c12(0x171)](){const _0x45a1ba=_0x338c12;return this[_0x45a1ba(0x153)]({'elementType':_0xaa2e6b[_0x45a1ba(0x155)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x45a1ba(0x175)](p);}};function s(_0x530eb4,_0x5dba62){const _0x128663=_0x338c12;if(!l(_0x530eb4['model'])||_0x530eb4[_0x128663(0x14f)]!==void 0x0&&!l(_0x530eb4[_0x128663(0x14f)])||!u(_0x530eb4[_0x128663(0x15d)]))return null;let _0x5c5870=_0x530eb4[_0x128663(0x165)]??(_0x5dba62==null?void 0x0:_0x5dba62[_0x128663(0x165)]),_0x55fd79=_0x487151[_0x128663(0x16a)](_0x530eb4[_0x128663(0x15c)]),_0x14ed07=_0x33bdf5({'model':_0x55fd79,'style':_0x530eb4[_0x128663(0x15d)],'tool':_0x530eb4['tool'],'sourceModel':_0x530eb4[_0x128663(0x14f)]?_0x487151[_0x128663(0x16a)](_0x530eb4[_0x128663(0x14f)]):_0x55fd79}),_0x5f3b19=d(_0x5dba62==null?void 0x0:_0x5dba62[_0x128663(0x154)]);return{'id':(_0x5dba62==null?void 0x0:_0x5dba62['id'])??_0x530eb4['id']??_0x38bb3c(0x6),'type':_0xaa2e6b[_0x128663(0x155)],'transform':_0x14ed07[_0x128663(0x168)],'shapeData':_0x14ed07[_0x128663(0x147)],'parentId':_0x5c5870??void 0x0,'laneId':_0x530eb4[_0x128663(0x164)]===void 0x0?_0x5dba62==null?void 0x0:_0x5dba62[_0x128663(0x164)]:_0x530eb4[_0x128663(0x164)],'custom':{..._0x5f3b19,'ink':_0x14ed07['ink']}};}function c(_0x4015af){const _0x3dbe0d=_0x338c12;return Number[_0x3dbe0d(0x151)](_0x4015af['x'])&&Number['isFinite'](_0x4015af['y']);}function l(_0x14ee07){const _0x10daad=_0x338c12;if(_0x14ee07[_0x10daad(0x159)]===_0x10daad(0x170)){let _0xe0813b=new Set();return _0x14ee07[_0x10daad(0x14e)][_0x10daad(0x162)]>=(_0x14ee07['closed']?0x3:0x2)&&_0x14ee07[_0x10daad(0x14e)][_0x10daad(0x173)](_0x4b7961=>{const _0x179680=_0x10daad;let _0x1bb50b=_0x4b7961['id'][_0x179680(0x145)]()['length']>0x0&&!_0xe0813b['has'](_0x4b7961['id'])&&c(_0x4b7961)&&(!_0x4b7961['in']||c(_0x4b7961['in']))&&(!_0x4b7961[_0x179680(0x14c)]||c(_0x4b7961[_0x179680(0x14c)]));return _0xe0813b['add'](_0x4b7961['id']),_0x1bb50b;});}return _0x14ee07[_0x10daad(0x172)]['length']>=0x2&&_0x14ee07[_0x10daad(0x172)][_0x10daad(0x173)](_0x467f9b=>c(_0x467f9b)&&Number[_0x10daad(0x151)](_0x467f9b['t'])&&(_0x467f9b['pressure']===void 0x0||Number[_0x10daad(0x151)](_0x467f9b[_0x10daad(0x16d)])))&&Number[_0x10daad(0x151)](_0x14ee07[_0x10daad(0x156)])&&_0x14ee07[_0x10daad(0x156)]>0x0&&Number[_0x10daad(0x151)](_0x14ee07[_0x10daad(0x14a)])&&_0x14ee07[_0x10daad(0x14a)]>=0x0&&_0x14ee07[_0x10daad(0x14a)]<=0x1;}function u(_0x17497b){const _0x41cbc8=_0x338c12;return _0x17497b===void 0x0||(_0x17497b['width']===void 0x0||Number[_0x41cbc8(0x151)](_0x17497b['width'])&&_0x17497b[_0x41cbc8(0x156)]>0x0)&&(_0x17497b[_0x41cbc8(0x14a)]===void 0x0||Number['isFinite'](_0x17497b[_0x41cbc8(0x14a)])&&_0x17497b[_0x41cbc8(0x14a)]>=0x0&&_0x17497b['opacity']<=0x1);}function d(_0xf9c931){const _0x483a18=_0x338c12;return _0xf9c931&&typeof _0xf9c931==_0x483a18(0x166)&&!Array[_0x483a18(0x16b)](_0xf9c931)?_0xf9c931:{};}function f(_0x5b8ab7){const _0x2f2f75=_0x338c12;let _0x1d3672=d(_0x5b8ab7['custom'])[_0x2f2f75(0x174)];if(!_0x1d3672||typeof _0x1d3672!=_0x2f2f75(0x166)||Array['isArray'](_0x1d3672))return null;let _0x168ebc=_0x1d3672;return _0x168ebc[_0x2f2f75(0x163)]===0x1&&_0x168ebc[_0x2f2f75(0x14f)]&&typeof _0x168ebc[_0x2f2f75(0x14f)]==_0x2f2f75(0x166)?_0x168ebc:null;}function p(_0x3a4e9c){const _0x1f0085=_0x338c12;return _0x3a4e9c['type']===_0xaa2e6b[_0x1f0085(0x155)]&&!!f(_0x3a4e9c);}_0x2b82da['extend'](o);const m={'Pen':_0x338c12(0x170),'Brush':'brush','Highlighter':_0x338c12(0x167)},h={'Corner':_0x338c12(0x14b),'Smooth':_0x338c12(0x146),'Symmetric':_0x338c12(0x157),'Free':'free'},g={'Anchor':_0x338c12(0x15e),'In':'in','Out':_0x338c12(0x14c)};var _=class extends _0x4bf51c{get['BoardInkTool'](){return m;}get[_0x338c12(0x161)](){return h;}get[_0x338c12(0x14d)](){return g;}};_0x4bf51c[_0x338c12(0x15f)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
1
+ const _0x360078=_0x4dcb;(function(_0xe55fd3,_0x225c0e){const _0xf3f90b=_0x4dcb,_0x209f71=_0xe55fd3();while(!![]){try{const _0x5d39b6=parseInt(_0xf3f90b(0xde))/0x1*(-parseInt(_0xf3f90b(0xd8))/0x2)+parseInt(_0xf3f90b(0xae))/0x3*(parseInt(_0xf3f90b(0xd3))/0x4)+-parseInt(_0xf3f90b(0xb2))/0x5*(parseInt(_0xf3f90b(0xc3))/0x6)+-parseInt(_0xf3f90b(0xb9))/0x7+parseInt(_0xf3f90b(0xaf))/0x8+-parseInt(_0xf3f90b(0xd6))/0x9*(-parseInt(_0xf3f90b(0xb6))/0xa)+parseInt(_0xf3f90b(0xcd))/0xb;if(_0x5d39b6===_0x225c0e)break;else _0x209f71['push'](_0x209f71['shift']());}catch(_0x5630e4){_0x209f71['push'](_0x209f71['shift']());}}}(_0x113a,0x5b63e));import{BoardElementType as _0xa12d71}from'@univerjs-pro/boards';import{FBoard as _0x2e20aa}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x35690a}from'@univerjs-pro/ink';import{Tools as _0x183eee,generateRandomId as _0x523f62}from'@univerjs/core';import{FEnum as _0x3ea712}from'@univerjs/core/facade';var o=class extends _0x2e20aa{[_0x360078(0xb3)](_0x679201){const _0x5c9e4f=_0x360078;let _0x3b210e=s(_0x679201);return _0x3b210e&&this['_addElement'](_0x3b210e,{'insertIndex':_0x679201[_0x5c9e4f(0xd2)]})?_0x3b210e:null;}[_0x360078(0xc4)](){const _0x2487a5=_0x360078;return this[_0x2487a5(0xb0)]({'elementType':_0xa12d71['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x2487a5(0xb8)](p);}};function s(_0x2cb3e8,_0x58707a){const _0x3e95a8=_0x360078;if(!l(_0x2cb3e8[_0x3e95a8(0xbb)])||_0x2cb3e8[_0x3e95a8(0xc5)]!==void 0x0&&!l(_0x2cb3e8[_0x3e95a8(0xc5)])||!u(_0x2cb3e8['style']))return null;let _0x1448fc=_0x2cb3e8[_0x3e95a8(0xb1)]??(_0x58707a==null?void 0x0:_0x58707a['parentId']),_0x51f2b4=_0x183eee['deepClone'](_0x2cb3e8[_0x3e95a8(0xbb)]),_0xdd551d=_0x35690a({'model':_0x51f2b4,'style':_0x2cb3e8[_0x3e95a8(0xdb)],'tool':_0x2cb3e8[_0x3e95a8(0xd9)],'sourceModel':_0x2cb3e8[_0x3e95a8(0xc5)]?_0x183eee[_0x3e95a8(0xbe)](_0x2cb3e8['sourceModel']):_0x51f2b4}),_0x47d165=d(_0x58707a==null?void 0x0:_0x58707a['custom']);return{'id':(_0x58707a==null?void 0x0:_0x58707a['id'])??_0x2cb3e8['id']??_0x523f62(0x6),'type':_0xa12d71['Shape'],'transform':_0xdd551d[_0x3e95a8(0xda)],'shapeData':_0xdd551d['shapeData'],'parentId':_0x1448fc??void 0x0,'laneId':_0x2cb3e8[_0x3e95a8(0xd0)]===void 0x0?_0x58707a==null?void 0x0:_0x58707a['laneId']:_0x2cb3e8[_0x3e95a8(0xd0)],'custom':{..._0x47d165,'ink':_0xdd551d[_0x3e95a8(0xdf)]}};}function c(_0x2a2294){const _0x702223=_0x360078;return Number[_0x702223(0xe0)](_0x2a2294['x'])&&Number[_0x702223(0xe0)](_0x2a2294['y']);}function l(_0x653695){const _0x362b32=_0x360078;if(_0x653695[_0x362b32(0xdc)]===_0x362b32(0xbc)){let _0x3705b7=new Set();return _0x653695[_0x362b32(0xd1)][_0x362b32(0xd4)]>=(_0x653695[_0x362b32(0xc2)]?0x3:0x2)&&_0x653695[_0x362b32(0xd1)][_0x362b32(0xc0)](_0x4e77e1=>{const _0x256df5=_0x362b32;let _0x2fc419=_0x4e77e1['id'][_0x256df5(0xbf)]()[_0x256df5(0xd4)]>0x0&&!_0x3705b7[_0x256df5(0xc7)](_0x4e77e1['id'])&&c(_0x4e77e1)&&(!_0x4e77e1['in']||c(_0x4e77e1['in']))&&(!_0x4e77e1[_0x256df5(0xc6)]||c(_0x4e77e1['out']));return _0x3705b7['add'](_0x4e77e1['id']),_0x2fc419;});}return _0x653695['points'][_0x362b32(0xd4)]>=0x2&&_0x653695[_0x362b32(0xe1)][_0x362b32(0xc0)](_0x1dbb4b=>c(_0x1dbb4b)&&Number[_0x362b32(0xe0)](_0x1dbb4b['t'])&&(_0x1dbb4b['pressure']===void 0x0||Number[_0x362b32(0xe0)](_0x1dbb4b[_0x362b32(0xcc)])))&&Number[_0x362b32(0xe0)](_0x653695['width'])&&_0x653695['width']>0x0&&Number[_0x362b32(0xe0)](_0x653695[_0x362b32(0xce)])&&_0x653695[_0x362b32(0xce)]>=0x0&&_0x653695['opacity']<=0x1;}function u(_0xa819a9){const _0x5d7fbb=_0x360078;return _0xa819a9===void 0x0||(_0xa819a9[_0x5d7fbb(0xcb)]===void 0x0||Number[_0x5d7fbb(0xe0)](_0xa819a9[_0x5d7fbb(0xcb)])&&_0xa819a9[_0x5d7fbb(0xcb)]>0x0)&&(_0xa819a9['opacity']===void 0x0||Number[_0x5d7fbb(0xe0)](_0xa819a9[_0x5d7fbb(0xce)])&&_0xa819a9[_0x5d7fbb(0xce)]>=0x0&&_0xa819a9[_0x5d7fbb(0xce)]<=0x1);}function d(_0x798f76){const _0x1d8726=_0x360078;return _0x798f76&&typeof _0x798f76==_0x1d8726(0xcf)&&!Array[_0x1d8726(0xba)](_0x798f76)?_0x798f76:{};}function f(_0x380d0d){const _0x4af4e2=_0x360078;let _0xe83ea0=d(_0x380d0d[_0x4af4e2(0xd5)])[_0x4af4e2(0xdf)];if(!_0xe83ea0||typeof _0xe83ea0!=_0x4af4e2(0xcf)||Array[_0x4af4e2(0xba)](_0xe83ea0))return null;let _0x4ae4c2=_0xe83ea0;return _0x4ae4c2[_0x4af4e2(0xdd)]===0x1&&_0x4ae4c2[_0x4af4e2(0xc5)]&&typeof _0x4ae4c2[_0x4af4e2(0xc5)]==_0x4af4e2(0xcf)?_0x4ae4c2:null;}function _0x4dcb(_0x5a1c22,_0x51b8b9){_0x5a1c22=_0x5a1c22-0xae;const _0x113a43=_0x113a();let _0x4dcb49=_0x113a43[_0x5a1c22];return _0x4dcb49;}function _0x113a(){const _0x11ad9a=['findElements','parentId','1865cSSjeo','insertInk','Shape','BoardInkPointType','10kpQRzl','symmetric','filter','3059868kORSlH','isArray','model','pen','extend','deepClone','trim','every','BoardInkTool','closed','186svaeNr','getInks','sourceModel','out','has','BoardInkHandleKind','corner','anchor','width','pressure','6985869gyVWUb','opacity','object','laneId','anchors','insertIndex','204cBkTvv','length','custom','4556043SDdkjR','highlighter','237682ELxVEx','tool','transform','style','kind','version','5yPNemX','ink','isFinite','points','type','8601ucaMvY','1037624kPZeyQ'];_0x113a=function(){return _0x11ad9a;};return _0x113a();}function p(_0x1880e8){const _0x450f6b=_0x360078;return _0x1880e8[_0x450f6b(0xe2)]===_0xa12d71[_0x450f6b(0xb4)]&&!!f(_0x1880e8);}_0x2e20aa[_0x360078(0xbd)](o);const m={'Pen':_0x360078(0xbc),'Brush':'brush','Highlighter':_0x360078(0xd7)},h={'Corner':_0x360078(0xc9),'Smooth':'smooth','Symmetric':_0x360078(0xb7),'Free':'free'},g={'Anchor':_0x360078(0xca),'In':'in','Out':_0x360078(0xc6)};var _=class extends _0x3ea712{get[_0x360078(0xc1)](){return m;}get[_0x360078(0xb5)](){return h;}get[_0x360078(0xc8)](){return g;}};_0x3ea712[_0x360078(0xbd)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x12824f=_0xfb34;(function(_0x37201b,_0x3535da){const _0x40fc02=_0xfb34,_0x1e0d17=_0x37201b();while(!![]){try{const _0x17b839=parseInt(_0x40fc02(0x160))/0x1+-parseInt(_0x40fc02(0x147))/0x2+parseInt(_0x40fc02(0x130))/0x3+parseInt(_0x40fc02(0x16d))/0x4*(-parseInt(_0x40fc02(0x143))/0x5)+-parseInt(_0x40fc02(0x16a))/0x6+parseInt(_0x40fc02(0x12f))/0x7+-parseInt(_0x40fc02(0x175))/0x8;if(_0x17b839===_0x3535da)break;else _0x1e0d17['push'](_0x1e0d17['shift']());}catch(_0x3acd14){_0x1e0d17['push'](_0x1e0d17['shift']());}}}(_0x5ecd,0xf29d8));import{ShapeFillEnum as _0x3d9285,ShapeLineCapEnum as _0x4a7b4e,ShapeLineJoinEnum as _0x127e75,ShapeLineTypeEnum as _0x53320d,ShapeTypeEnum as _0x4aa715}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x5a8579}from'@univerjs-pro/license';import{CommandType as _0x5b45d3,DependentOn as _0x17b879,ICommandService as _0x46d0bf,IConfigService as _0x5cf97d,Inject as _0x19a3e6,Injector as _0x24e31f,Plugin as _0x19d734,UniverInstanceType as _0x212eed,createIdentifier as _0x276103,merge as _0x110d4d,toDisposable as _0x297405}from'@univerjs/core';const g=0.0001;function _(_0x4dc8){return{'x':_0x4dc8['x'],'y':_0x4dc8['y']};}function v(_0x5a8eed){const _0x191ea3=_0xfb34;return{..._0x5a8eed,'in':_0x5a8eed['in']?_(_0x5a8eed['in']):void 0x0,'out':_0x5a8eed[_0x191ea3(0x15f)]?_(_0x5a8eed['out']):void 0x0};}function y(_0x379030){const _0x30401a=_0xfb34;return{'kind':_0x30401a(0x13b),'closed':_0x379030[_0x30401a(0x12a)],'anchors':_0x379030['anchors'][_0x30401a(0x134)](v)};}function b(_0x125ee1,_0x9e222c,_0x141f32){return{'x':_0x125ee1['x']+(_0x9e222c['x']-_0x125ee1['x'])*_0x141f32,'y':_0x125ee1['y']+(_0x9e222c['y']-_0x125ee1['y'])*_0x141f32};}function x(_0x231eef,_0x3f5b6e){const _0x415dd6=_0xfb34;return Math[_0x415dd6(0x17c)](_0x231eef['x']-_0x3f5b6e['x'],_0x231eef['y']-_0x3f5b6e['y']);}function S(_0x57a83d){const _0x5c4376=_0xfb34;let _0x7682d1=Math[_0x5c4376(0x17c)](_0x57a83d['x'],_0x57a83d['y']);return _0x7682d1<g?{'x':0x1,'y':0x0}:{'x':_0x57a83d['x']/_0x7682d1,'y':_0x57a83d['y']/_0x7682d1};}function C(_0x29764c,_0x580a54,_0x4fa854=x(_0x29764c,_0x580a54)){let _0x382168=S({'x':_0x29764c['x']-_0x580a54['x'],'y':_0x29764c['y']-_0x580a54['y']});return{'x':_0x29764c['x']+_0x382168['x']*_0x4fa854,'y':_0x29764c['y']+_0x382168['y']*_0x4fa854};}function w(_0x500a45,_0x4e8795){const _0x562c0c=_0xfb34;let {anchors:_0xff583b}=_0x500a45;return _0xff583b['length']<0x2||_0x4e8795<0x0?null:_0x4e8795<_0xff583b[_0x562c0c(0x169)]-0x1?{'startIndex':_0x4e8795,'endIndex':_0x4e8795+0x1,'start':_0xff583b[_0x4e8795],'end':_0xff583b[_0x4e8795+0x1]}:_0x500a45[_0x562c0c(0x12a)]&&_0x4e8795===_0xff583b[_0x562c0c(0x169)]-0x1?{'startIndex':_0xff583b[_0x562c0c(0x169)]-0x1,'endIndex':0x0,'start':_0xff583b[_0xff583b[_0x562c0c(0x169)]-0x1],'end':_0xff583b[0x0]}:null;}function _0x5ecd(){const _0x41ca23=['smooth','tolerance','beginInkMode','registerAdapter','NoFill','symbol','right','color','anchor','startIndex','point','anchors','get','ink.operation.start','out','1880690LsprwB','norm','constructor','iterator','segmentIndex','abs','decorate','defineProperty','@univerjs-pro/ink','length','10596306rSLVkC','filter','indexOf','3532RaACpf','endIndex','onStarting','_configService','Round','find','height','top','748512drNLkb','ink-centerline-','Rect','OPERATION','packageName','createId','round','hypot','kind','anchorId','_commandService','distance','symmetric','max','_config','prototype','none','slice','splice','createCustomShape','closed','forEach','opacity','min','default','11589788lcESiz','2569590yxJxaJ','disposeWithMe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','#f54a45','map','corner','_injector','ratio','pointType','function','points','pen','width','registerCommand','tool','push','start','free','version','5155NTOpNZ','string','end','SolidLine','1258328UbldYb','left','ink.config','sqrt','toPrimitive','_adapters','getOwnPropertyDescriptor','join','object','UNIVER_INK_PLUGIN'];_0x5ecd=function(){return _0x41ca23;};return _0x5ecd();}function T(_0x36015e,_0x2d8034){const _0x5ca842=_0xfb34;let _0x88bc1e=w(_0x36015e,_0x2d8034);return _0x88bc1e?[_0x88bc1e[_0x5ca842(0x140)],_0x88bc1e['start'][_0x5ca842(0x15f)]??_0x88bc1e[_0x5ca842(0x140)],_0x88bc1e[_0x5ca842(0x145)]['in']??_0x88bc1e[_0x5ca842(0x145)],_0x88bc1e[_0x5ca842(0x145)]]:null;}function te(_0x9e35,_0x44135a){const _0x3b63b6=_0xfb34;return _0x44135a===_0x3b63b6(0x159)?_0x9e35:_0x9e35[_0x44135a]??null;}function E(_0x163406,_0x45fb39,_0x647eac){const _0x3b086a=_0xfb34;return _0x647eac==='anchor'||_0x163406[_0x3b086a(0x12a)]?!0x0:_0x647eac==='in'?_0x45fb39>0x0:_0x45fb39<_0x163406[_0x3b086a(0x15c)][_0x3b086a(0x169)]-0x1;}function D(_0x4dca95,_0x4e703e){let [_0x455e9a,_0x42f831,_0x1b8a08,_0x5bbf7f]=_0x4dca95,_0x4c14b4=b(_0x455e9a,_0x42f831,_0x4e703e),_0x29e01d=b(_0x42f831,_0x1b8a08,_0x4e703e),_0x1b9477=b(_0x1b8a08,_0x5bbf7f,_0x4e703e);return b(b(_0x4c14b4,_0x29e01d,_0x4e703e),b(_0x29e01d,_0x1b9477,_0x4e703e),_0x4e703e);}function ne(_0x2de1ce,_0x413104){let [_0x4db72a,_0x598872,_0x49657e,_0x2763b6]=_0x2de1ce,_0x44dec4=b(_0x4db72a,_0x598872,_0x413104),_0x2e7729=b(_0x598872,_0x49657e,_0x413104),_0x20f252=b(_0x49657e,_0x2763b6,_0x413104),_0x4a23c5=b(_0x44dec4,_0x2e7729,_0x413104),_0x1c0a5e=b(_0x2e7729,_0x20f252,_0x413104),_0xf5a83f=b(_0x4a23c5,_0x1c0a5e,_0x413104);return{'left':[_0x4db72a,_0x44dec4,_0x4a23c5,_0xf5a83f],'right':[_0xf5a83f,_0x1c0a5e,_0x20f252,_0x2763b6]};}function O(_0x22b024,_0xd86a6f,_0x30dcec){const _0x4c76c4=_0xfb34;let _0x1cf7f8=_0x30dcec['x']-_0xd86a6f['x'],_0x57c7f8=_0x30dcec['y']-_0xd86a6f['y'],_0x42e8e5=_0x1cf7f8*_0x1cf7f8+_0x57c7f8*_0x57c7f8,_0x15a886=_0x42e8e5<=g?0x0:Math['max'](0x0,Math[_0x4c76c4(0x12d)](0x1,((_0x22b024['x']-_0xd86a6f['x'])*_0x1cf7f8+(_0x22b024['y']-_0xd86a6f['y'])*_0x57c7f8)/_0x42e8e5)),_0xd5d034={'x':_0xd86a6f['x']+_0x1cf7f8*_0x15a886,'y':_0xd86a6f['y']+_0x57c7f8*_0x15a886};return{'point':_0xd5d034,'ratio':_0x15a886,'distance':x(_0x22b024,_0xd5d034)};}function re(_0x57bf76,_0x57fef2,_0x58f621){const _0x3a9fca=_0xfb34;return O(_0x57bf76,_0x57fef2,_0x58f621)[_0x3a9fca(0x121)]**0x2;}function k(_0x3d9cb8,_0x22eade){const _0x56fb56=_0xfb34;if(_0x3d9cb8[_0x56fb56(0x169)]<=0x2)return _0x3d9cb8[_0x56fb56(0x134)](_);let _0x1eaa2c=0x0,_0x20db1a=0x0,_0xf38245=_0x3d9cb8[0x0],_0xcc0706=_0x3d9cb8[_0x3d9cb8[_0x56fb56(0x169)]-0x1],_0x21b180=_0x22eade*_0x22eade;for(let _0xd88136=0x1;_0xd88136<_0x3d9cb8[_0x56fb56(0x169)]-0x1;_0xd88136++){let _0x2c9b04=re(_0x3d9cb8[_0xd88136],_0xf38245,_0xcc0706);_0x2c9b04>_0x1eaa2c&&(_0x1eaa2c=_0x2c9b04,_0x20db1a=_0xd88136);}if(_0x1eaa2c<=_0x21b180)return[_(_0xf38245),_(_0xcc0706)];let _0x265ffc=k(_0x3d9cb8[_0x56fb56(0x127)](0x0,_0x20db1a+0x1),_0x22eade),_0x392a67=k(_0x3d9cb8['slice'](_0x20db1a),_0x22eade);return[..._0x265ffc['slice'](0x0,-0x1),..._0x392a67];}function ie(_0x5abbb0,_0x292144){let _0x73f008=_0x5abbb0[_0x292144],_0x17061c=_0x5abbb0[_0x292144+0x1],_0x339766=_0x5abbb0[_0x292144-0x1]??_0x73f008;return{'x':_0x73f008['x']+(_0x17061c['x']-_0x339766['x'])/0x6,'y':_0x73f008['y']+(_0x17061c['y']-_0x339766['y'])/0x6};}function A(_0x4e2bd2,_0x24fda7){let _0x3764db=_0x4e2bd2[_0x24fda7],_0x7b6501=_0x4e2bd2[_0x24fda7-0x1],_0x5ae195=_0x4e2bd2[_0x24fda7+0x1]??_0x3764db;return{'x':_0x3764db['x']-(_0x5ae195['x']-_0x7b6501['x'])/0x6,'y':_0x3764db['y']-(_0x5ae195['y']-_0x7b6501['y'])/0x6};}function j(_0x36d05f,_0xb33b06){const _0x434fed=_0xfb34;let _0x3fb079=_0x36d05f['anchors'][_0xb33b06],_0x16e36d=_0x36d05f['anchors'][_0xb33b06-0x1]??(_0x36d05f[_0x434fed(0x12a)]?_0x36d05f[_0x434fed(0x15c)][_0x36d05f['anchors'][_0x434fed(0x169)]-0x1]:null),_0x2d48c8=_0x36d05f[_0x434fed(0x15c)][_0xb33b06+0x1]??(_0x36d05f[_0x434fed(0x12a)]?_0x36d05f[_0x434fed(0x15c)][0x0]:null),_0x5b8def=_0x16e36d&&_0x2d48c8?S({'x':_0x2d48c8['x']-_0x16e36d['x'],'y':_0x2d48c8['y']-_0x16e36d['y']}):_0x2d48c8?S({'x':_0x2d48c8['x']-_0x3fb079['x'],'y':_0x2d48c8['y']-_0x3fb079['y']}):_0x16e36d?S({'x':_0x3fb079['x']-_0x16e36d['x'],'y':_0x3fb079['y']-_0x16e36d['y']}):{'x':0x1,'y':0x0},_0x59ba2b=_0x16e36d&&_0x2d48c8?Math['max'](0x32,x(_0x16e36d,_0x2d48c8)/0x4):0x32;return{'in':{'x':_0x3fb079['x']-_0x5b8def['x']*_0x59ba2b,'y':_0x3fb079['y']-_0x5b8def['y']*_0x59ba2b},'out':{'x':_0x3fb079['x']+_0x5b8def['x']*_0x59ba2b,'y':_0x3fb079['y']+_0x5b8def['y']*_0x59ba2b}};}function M(_0x465307,_0x53fa7d){const _0x2ee77e=_0xfb34;let _0x2f1d5a=_0x465307[_0x53fa7d],_0x409422=_0x53fa7d==='in'?_0x2ee77e(0x15f):'in',_0x490242=_0x465307[_0x409422];if(_0x2f1d5a){if(_0x465307['pointType']===_0x2ee77e(0x122)){_0x465307[_0x409422]=C(_0x465307,_0x2f1d5a);return;}_0x465307[_0x2ee77e(0x138)]==='smooth'&&(_0x465307[_0x409422]=C(_0x465307,_0x2f1d5a,_0x490242?x(_0x465307,_0x490242):x(_0x465307,_0x2f1d5a)));}}function ae(_0x573efd,_0x38eac5){const _0x4432ac=_0xfb34;let _0x270420=y(_0x573efd);return!_0x38eac5||_0x270420[_0x4432ac(0x12a)]||_0x270420[_0x4432ac(0x15c)][_0x4432ac(0x169)]===0x0||_0x270420[_0x4432ac(0x15c)]['push']({'id':'__ink-preview-anchor__','x':_0x38eac5['x'],'y':_0x38eac5['y'],'pointType':'corner'}),_0x270420;}function oe(_0x27d520,_0x597068={}){const _0x1c15ae=_0xfb34;let _0x3f4f7f=Math[_0x1c15ae(0x123)](0x0,_0x597068[_0x1c15ae(0x152)]??Math[_0x1c15ae(0x123)](0x4,_0x27d520[_0x1c15ae(0x13c)]*0.35)),_0x1f87d8=_0x597068[_0x1c15ae(0x17a)]??(_0x56d711=>_0x1c15ae(0x176)+_0x56d711),_0x3bcb77=k(_0x27d520[_0x1c15ae(0x13a)],_0x3f4f7f),_0x33f090=_0x3bcb77['map']((_0x128b33,_0xeaee5c)=>({'id':_0x1f87d8(_0xeaee5c),'x':_0x128b33['x'],'y':_0x128b33['y'],'pointType':_0x1c15ae(0x141)}));for(let _0x42138d=0x0;_0x42138d<_0x33f090[_0x1c15ae(0x169)]-0x1;_0x42138d++)_0x33f090[_0x42138d]['out']=ie(_0x3bcb77,_0x42138d),_0x33f090[_0x42138d+0x1]['in']=A(_0x3bcb77,_0x42138d+0x1);return{'kind':_0x1c15ae(0x13b),'closed':!0x1,'anchors':_0x33f090};}function se(_0x116306,_0x3b0a79,_0x37214e){const _0x582ef8=_0xfb34;let _0x4a0807=null,_0x402d52=['anchor','in',_0x582ef8(0x15f)];return _0x116306[_0x582ef8(0x15c)]['forEach']((_0x9f32be,_0x58859e)=>{_0x402d52['forEach'](_0x1dc52f=>{const _0x5f00ea=_0xfb34;if(!E(_0x116306,_0x58859e,_0x1dc52f))return;let _0x2ae29c=te(_0x9f32be,_0x1dc52f);if(!_0x2ae29c)return;let _0x3ba76b=x(_0x3b0a79,_0x2ae29c);_0x3ba76b>_0x37214e||_0x4a0807&&_0x3ba76b>=_0x4a0807[_0x5f00ea(0x121)]||(_0x4a0807={'handle':{'kind':_0x1dc52f,'anchorId':_0x9f32be['id']},'point':_(_0x2ae29c),'distance':_0x3ba76b});});}),_0x4a0807;}function ce(_0x16b21a,_0x56a04c,_0x29635c){const _0x2eaa14=_0xfb34;let _0x3e3609=null,_0x4d2eac=_0x16b21a['closed']?_0x16b21a[_0x2eaa14(0x15c)][_0x2eaa14(0x169)]:Math[_0x2eaa14(0x123)](0x0,_0x16b21a[_0x2eaa14(0x15c)][_0x2eaa14(0x169)]-0x1);for(let _0x3b1b81=0x0;_0x3b1b81<_0x4d2eac;_0x3b1b81++){let _0x743e3a=T(_0x16b21a,_0x3b1b81);if(!_0x743e3a)continue;let _0x4a0285=D(_0x743e3a,0x0);for(let _0x2ab11d=0x1;_0x2ab11d<=0x20;_0x2ab11d++){let _0x3e6995=D(_0x743e3a,_0x2ab11d/0x20),_0xd8b160=O(_0x56a04c,_0x4a0285,_0x3e6995),_0x4d6173=(_0x2ab11d-0x1+_0xd8b160[_0x2eaa14(0x137)])/0x20;(!_0x3e3609||_0xd8b160['distance']<_0x3e3609[_0x2eaa14(0x121)])&&(_0x3e3609={'segmentIndex':_0x3b1b81,'t':_0x4d6173,'point':_0xd8b160[_0x2eaa14(0x15b)],'distance':_0xd8b160[_0x2eaa14(0x121)]}),_0x4a0285=_0x3e6995;}}return _0x3e3609&&_0x3e3609[_0x2eaa14(0x121)]<=_0x29635c?_0x3e3609:null;}function le(_0x5c0cd0,_0x26da36,_0x115bce){const _0x18fd77=_0xfb34;let _0x3096d8=y(_0x5c0cd0),_0x365dd4=w(_0x3096d8,_0x26da36[_0x18fd77(0x164)]),_0x7d51ad=T(_0x3096d8,_0x26da36['segmentIndex']);if(!_0x365dd4||!_0x7d51ad)return _0x3096d8;let _0x4b6e71=ne(_0x7d51ad,Math[_0x18fd77(0x123)](0x0,Math[_0x18fd77(0x12d)](0x1,_0x26da36['t']))),_0x54d8f7={'id':_0x115bce(),'x':_0x4b6e71[_0x18fd77(0x148)][0x3]['x'],'y':_0x4b6e71[_0x18fd77(0x148)][0x3]['y'],'in':_(_0x4b6e71[_0x18fd77(0x148)][0x2]),'out':_(_0x4b6e71['right'][0x1]),'pointType':_0x18fd77(0x141)};return _0x3096d8[_0x18fd77(0x15c)][_0x365dd4[_0x18fd77(0x15a)]][_0x18fd77(0x15f)]=_(_0x4b6e71[_0x18fd77(0x148)][0x1]),_0x3096d8[_0x18fd77(0x15c)][_0x365dd4[_0x18fd77(0x16e)]]['in']=_(_0x4b6e71[_0x18fd77(0x157)][0x2]),_0x3096d8[_0x18fd77(0x15c)][_0x18fd77(0x128)](_0x365dd4[_0x18fd77(0x15a)]+0x1,0x0,_0x54d8f7),_0x3096d8;}function ue(_0x1168a2,_0x5aff59){const _0x3a61ee=_0xfb34;let _0x3b89bb=y(_0x1168a2);return _0x3b89bb['anchors']=_0x3b89bb[_0x3a61ee(0x15c)][_0x3a61ee(0x16b)](_0x2f4a47=>_0x2f4a47['id']!==_0x5aff59),_0x3b89bb[_0x3a61ee(0x12a)]&&_0x3b89bb[_0x3a61ee(0x15c)]['length']<0x3&&(_0x3b89bb[_0x3a61ee(0x12a)]=!0x1),_0x3b89bb;}function N(_0x413ca2,_0x363103,_0x471f07){const _0x2fd4f2=_0xfb34;let _0x4f8f40=y(_0x413ca2),_0x3ab0c9=_0x4f8f40[_0x2fd4f2(0x15c)]['findIndex'](_0x307b8f=>_0x307b8f['id']===_0x363103),_0x561738=_0x4f8f40[_0x2fd4f2(0x15c)][_0x3ab0c9];if(!_0x561738)return _0x4f8f40;if(_0x561738[_0x2fd4f2(0x138)]=_0x471f07,_0x471f07===_0x2fd4f2(0x135))return delete _0x561738['in'],delete _0x561738[_0x2fd4f2(0x15f)],_0x4f8f40;let _0x235145=j(_0x4f8f40,_0x3ab0c9);if(_0x561738['in']=_0x561738['in']?_(_0x561738['in']):_0x235145['in'],_0x561738[_0x2fd4f2(0x15f)]=_0x561738['out']?_(_0x561738['out']):_0x235145[_0x2fd4f2(0x15f)],_0x471f07===_0x2fd4f2(0x122)){let _0x22c872=Math[_0x2fd4f2(0x123)](x(_0x561738,_0x561738['in']),x(_0x561738,_0x561738[_0x2fd4f2(0x15f)]),0x32),_0x25925e=S({'x':_0x561738['out']['x']-_0x561738['x'],'y':_0x561738[_0x2fd4f2(0x15f)]['y']-_0x561738['y']});_0x561738[_0x2fd4f2(0x15f)]={'x':_0x561738['x']+_0x25925e['x']*_0x22c872,'y':_0x561738['y']+_0x25925e['y']*_0x22c872},_0x561738['in']={'x':_0x561738['x']-_0x25925e['x']*_0x22c872,'y':_0x561738['y']-_0x25925e['y']*_0x22c872};}else _0x471f07===_0x2fd4f2(0x151)&&M(_0x561738,_0x2fd4f2(0x15f));return _0x4f8f40;}function P(_0x3ea508,_0x5107e8){const _0x4bea2f=_0xfb34;let _0x4df642=_0x3ea508[_0x4bea2f(0x15c)][_0x4bea2f(0x172)](_0x13f662=>_0x13f662['id']===_0x5107e8),_0x59c04a=(_0x4df642==null?void 0x0:_0x4df642[_0x4bea2f(0x138)])??'corner';return N(_0x3ea508,_0x5107e8,_0x59c04a==='corner'?_0x4bea2f(0x151):_0x59c04a===_0x4bea2f(0x151)?_0x4bea2f(0x122):_0x59c04a===_0x4bea2f(0x122)?'free':_0x4bea2f(0x135));}function F(_0x544eaf,_0x575373,_0xd68f48){const _0x4d1695=_0xfb34;let _0x1daaac=y(_0x544eaf),_0x289af1=_0x1daaac['anchors']['find'](_0x4067f2=>_0x4067f2['id']===_0x575373[_0x4d1695(0x11f)]);if(!_0x289af1)return _0x1daaac;if(_0x575373[_0x4d1695(0x11e)]==='anchor'){let _0x2b73c5={'x':_0xd68f48['x']-_0x289af1['x'],'y':_0xd68f48['y']-_0x289af1['y']};return _0x289af1['x']=_0xd68f48['x'],_0x289af1['y']=_0xd68f48['y'],_0x289af1['in']&&={'x':_0x289af1['in']['x']+_0x2b73c5['x'],'y':_0x289af1['in']['y']+_0x2b73c5['y']},_0x289af1[_0x4d1695(0x15f)]&&={'x':_0x289af1[_0x4d1695(0x15f)]['x']+_0x2b73c5['x'],'y':_0x289af1['out']['y']+_0x2b73c5['y']},_0x1daaac;}return _0x289af1[_0x575373[_0x4d1695(0x11e)]]=_(_0xd68f48),_0x289af1[_0x4d1695(0x138)]===_0x4d1695(0x135)&&(_0x289af1[_0x4d1695(0x138)]='free'),M(_0x289af1,_0x575373['kind']),_0x1daaac;}const I=1e-9;function L(_0x3436e8){const _0x4767c9=_0xfb34;let _0x36b857=Math[_0x4767c9(0x17b)](_0x3436e8*0x2710)/0x2710;return Object['is'](_0x36b857,-0x0)?'0':String(_0x36b857);}function R(_0x42ac74){return L(_0x42ac74['x'])+'\x20'+L(_0x42ac74['y']);}function z(_0x44891f,_0x4bd96f){return{'x':_0x44891f['x']-_0x4bd96f['x'],'y':_0x44891f['y']-_0x4bd96f['y']};}function B(_0x59b28c,_0x578fef,_0x23119e,_0x309e59,_0x429a9c){let _0x130ab6=0x1-_0x429a9c;return{'x':_0x130ab6*_0x130ab6*_0x130ab6*_0x59b28c['x']+0x3*_0x130ab6*_0x130ab6*_0x429a9c*_0x578fef['x']+0x3*_0x130ab6*_0x429a9c*_0x429a9c*_0x23119e['x']+_0x429a9c*_0x429a9c*_0x429a9c*_0x309e59['x'],'y':_0x130ab6*_0x130ab6*_0x130ab6*_0x59b28c['y']+0x3*_0x130ab6*_0x130ab6*_0x429a9c*_0x578fef['y']+0x3*_0x130ab6*_0x429a9c*_0x429a9c*_0x23119e['y']+_0x429a9c*_0x429a9c*_0x429a9c*_0x309e59['y']};}function V(_0x267d11,_0x260039,_0x5e0036,_0xa32ffc){const _0x44fc4c=_0xfb34;let _0x3b0fb2=-_0x267d11+0x3*_0x260039-0x3*_0x5e0036+_0xa32ffc,_0x2bc1dd=0x3*_0x267d11-0x6*_0x260039+0x3*_0x5e0036,_0x11d51d=-0x3*_0x267d11+0x3*_0x260039,_0x20e4b8=[];if(Math[_0x44fc4c(0x165)](_0x3b0fb2)<I){if(Math['abs'](_0x2bc1dd)<I)return _0x20e4b8;let _0x377c75=-_0x11d51d/(0x2*_0x2bc1dd);return _0x377c75>0x0&&_0x377c75<0x1&&_0x20e4b8[_0x44fc4c(0x13f)](_0x377c75),_0x20e4b8;}let _0x3d02c3=_0x2bc1dd*_0x2bc1dd-0x3*_0x3b0fb2*_0x11d51d;if(_0x3d02c3<0x0)return _0x20e4b8;let _0x105aa7=Math[_0x44fc4c(0x14a)](Math[_0x44fc4c(0x123)](0x0,_0x3d02c3)),_0x54ede7=(-_0x2bc1dd+_0x105aa7)/(0x3*_0x3b0fb2),_0x1aa6fa=(-_0x2bc1dd-_0x105aa7)/(0x3*_0x3b0fb2);return _0x54ede7>0x0&&_0x54ede7<0x1&&_0x20e4b8[_0x44fc4c(0x13f)](_0x54ede7),_0x1aa6fa>0x0&&_0x1aa6fa<0x1&&Math[_0x44fc4c(0x165)](_0x1aa6fa-_0x54ede7)>I&&_0x20e4b8[_0x44fc4c(0x13f)](_0x1aa6fa),_0x20e4b8;}function H(_0x526bb7,_0x319bf5,_0x19101b,_0x8ef6f3,_0x5ed795){const _0x1b00a9=_0xfb34;_0x526bb7['push'](_0x319bf5,_0x5ed795),new Set([...V(_0x319bf5['x'],_0x19101b['x'],_0x8ef6f3['x'],_0x5ed795['x']),...V(_0x319bf5['y'],_0x19101b['y'],_0x8ef6f3['y'],_0x5ed795['y'])])[_0x1b00a9(0x12b)](_0x4bcc87=>{const _0x4819c1=_0x1b00a9;_0x526bb7[_0x4819c1(0x13f)](B(_0x319bf5,_0x19101b,_0x8ef6f3,_0x5ed795,_0x4bcc87));});}function U(_0x1d40ca){const _0x5cca3c=_0xfb34;let _0x5814ad=_0x1d40ca['anchors'];if(_0x5814ad[_0x5cca3c(0x169)]<=0x1)return _0x5814ad;let _0x378656=[];for(let _0x22bf71=0x1;_0x22bf71<_0x5814ad[_0x5cca3c(0x169)];_0x22bf71++){let _0x69020e=_0x5814ad[_0x22bf71-0x1],_0x45884d=_0x5814ad[_0x22bf71];H(_0x378656,_0x69020e,_0x69020e[_0x5cca3c(0x15f)]??_0x69020e,_0x45884d['in']??_0x45884d,_0x45884d);}if(_0x1d40ca[_0x5cca3c(0x12a)]&&_0x5814ad[_0x5cca3c(0x169)]>0x1){let _0x42e91a=_0x5814ad[_0x5814ad[_0x5cca3c(0x169)]-0x1],_0x1d8e0c=_0x5814ad[0x0];H(_0x378656,_0x42e91a,_0x42e91a['out']??_0x42e91a,_0x1d8e0c['in']??_0x1d8e0c,_0x1d8e0c);}return _0x378656;}function de(_0x5efabb){const _0x20a2bc=_0xfb34;let _0x1f45e9=_0x5efabb['points'];if(_0x1f45e9[_0x20a2bc(0x169)]<=0x1)return _0x1f45e9;let _0x4bd307=[];for(let _0x4e269e=0x0;_0x4e269e<_0x1f45e9[_0x20a2bc(0x169)]-0x1;_0x4e269e++){let _0x3e0599=_0x1f45e9[_0x4e269e],_0x56cd97=_0x1f45e9[_0x4e269e+0x1],_0x28f2f7=_0x1f45e9[_0x4e269e-0x1]??_0x3e0599,_0x226430=_0x1f45e9[_0x4e269e+0x2]??_0x56cd97;H(_0x4bd307,_0x3e0599,{'x':_0x3e0599['x']+(_0x56cd97['x']-_0x28f2f7['x'])/0x6,'y':_0x3e0599['y']+(_0x56cd97['y']-_0x28f2f7['y'])/0x6},{'x':_0x56cd97['x']-(_0x226430['x']-_0x3e0599['x'])/0x6,'y':_0x56cd97['y']-(_0x226430['y']-_0x3e0599['y'])/0x6},_0x56cd97);}return _0x4bd307;}function fe(_0x2b5f35){const _0x54c17e=_0xfb34;return _0x2b5f35[_0x54c17e(0x11e)]===_0x54c17e(0x13b)?U(_0x2b5f35):de(_0x2b5f35);}function W(_0x10cc16){const _0x7fbaa1=_0xfb34;let _0x37e7ef=Math[_0x7fbaa1(0x17b)](_0x10cc16*0x2710)/0x2710;return Object['is'](_0x37e7ef,-0x0)?0x0:_0x37e7ef;}function G(_0x55a2c3){const _0x54e03e=_0xfb34;let _0x31413e=fe(_0x55a2c3);if(_0x31413e[_0x54e03e(0x169)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x2827b3=Math['min'](..._0x31413e[_0x54e03e(0x134)](_0x6ae168=>_0x6ae168['x'])),_0x20f669=Math[_0x54e03e(0x12d)](..._0x31413e[_0x54e03e(0x134)](_0x2d2c6b=>_0x2d2c6b['y'])),_0x3d44f4=Math[_0x54e03e(0x123)](..._0x31413e[_0x54e03e(0x134)](_0x1537c2=>_0x1537c2['x'])),_0x325a20=Math['max'](..._0x31413e[_0x54e03e(0x134)](_0x209b5a=>_0x209b5a['y']));return{'left':W(_0x2827b3),'top':W(_0x20f669),'width':W(Math['max'](0x1,_0x3d44f4-_0x2827b3)),'height':W(Math['max'](0x1,_0x325a20-_0x20f669))};}function _0xfb34(_0x1d67e9,_0xa8872d){_0x1d67e9=_0x1d67e9-0x11e;const _0x5ecdc2=_0x5ecd();let _0xfb340e=_0x5ecdc2[_0x1d67e9];return _0xfb340e;}function pe(_0x28958b,_0x3af3b8){const _0x1ceeba=_0xfb34;let _0x3037a8=_0x28958b['anchors'];if(_0x3037a8[_0x1ceeba(0x169)]===0x0)return'';let _0x5ce66d=['M\x20'+R(z(_0x3037a8[0x0],_0x3af3b8))];for(let _0x5b1ea9=0x1;_0x5b1ea9<_0x3037a8[_0x1ceeba(0x169)];_0x5b1ea9++){let _0x2e839c=_0x3037a8[_0x5b1ea9-0x1],_0x30619a=_0x3037a8[_0x5b1ea9],_0x352395=_0x2e839c[_0x1ceeba(0x15f)]??_0x2e839c,_0x4bd8bd=_0x30619a['in']??_0x30619a;_0x5ce66d[_0x1ceeba(0x13f)]('C\x20'+R(z(_0x352395,_0x3af3b8))+'\x20'+R(z(_0x4bd8bd,_0x3af3b8))+'\x20'+R(z(_0x30619a,_0x3af3b8)));}if(_0x28958b[_0x1ceeba(0x12a)]&&_0x3037a8[_0x1ceeba(0x169)]>0x1){let _0x534b55=_0x3037a8[_0x3037a8[_0x1ceeba(0x169)]-0x1],_0x117291=_0x3037a8[0x0],_0x576698=_0x534b55[_0x1ceeba(0x15f)]??_0x534b55,_0x417e56=_0x117291['in']??_0x117291;_0x5ce66d[_0x1ceeba(0x13f)]('C\x20'+R(z(_0x576698,_0x3af3b8))+'\x20'+R(z(_0x417e56,_0x3af3b8))+'\x20'+R(z(_0x117291,_0x3af3b8))),_0x5ce66d[_0x1ceeba(0x13f)]('Z');}return _0x5ce66d[_0x1ceeba(0x14e)]('\x20');}function me(_0x2bfe73,_0x528dad){const _0x6c1ae2=_0xfb34;let _0x57044a=_0x2bfe73['points'][_0x6c1ae2(0x134)](_0x1f9167=>z(_0x1f9167,_0x528dad));if(_0x57044a[_0x6c1ae2(0x169)]===0x0)return'';if(_0x57044a['length']===0x1)return'M\x20'+R(_0x57044a[0x0]);let _0x57a346=['M\x20'+R(_0x57044a[0x0])];for(let _0x4f1c0f=0x0;_0x4f1c0f<_0x57044a[_0x6c1ae2(0x169)]-0x1;_0x4f1c0f++){let _0x5354df=_0x57044a[_0x4f1c0f],_0x3ba180=_0x57044a[_0x4f1c0f+0x1],_0x5c94ce=_0x57044a[_0x4f1c0f-0x1]??_0x5354df,_0x2686c3=_0x57044a[_0x4f1c0f+0x2]??_0x3ba180,_0x90dac3={'x':_0x5354df['x']+(_0x3ba180['x']-_0x5c94ce['x'])/0x6,'y':_0x5354df['y']+(_0x3ba180['y']-_0x5c94ce['y'])/0x6},_0xb99974={'x':_0x3ba180['x']-(_0x2686c3['x']-_0x5354df['x'])/0x6,'y':_0x3ba180['y']-(_0x2686c3['y']-_0x5354df['y'])/0x6};_0x57a346[_0x6c1ae2(0x13f)]('C\x20'+R(_0x90dac3)+'\x20'+R(_0xb99974)+'\x20'+R(_0x3ba180));}return _0x57a346[_0x6c1ae2(0x14e)]('\x20');}function he(_0x3a771b,_0x12afda){const _0x103e45=_0xfb34;return _0x3a771b[_0x103e45(0x11e)]===_0x103e45(0x13b)?pe(_0x3a771b,_0x12afda):me(_0x3a771b,_0x12afda);}function ge(_0x184851,_0x5a7baa){const _0x2f19c6=_0xfb34;return _0x5a7baa!=null&&_0x5a7baa['color']?_0x5a7baa[_0x2f19c6(0x158)]:_0x184851[_0x2f19c6(0x11e)]===_0x2f19c6(0x13b)?_0x2f19c6(0x133):_0x184851[_0x2f19c6(0x158)];}function _e(_0x5c26ac,_0x397b31){const _0x44f9aa=_0xfb34;return(_0x397b31==null?void 0x0:_0x397b31['width'])===void 0x0?_0x5c26ac['kind']===_0x44f9aa(0x13b)?0x2:_0x5c26ac[_0x44f9aa(0x13c)]:_0x397b31[_0x44f9aa(0x13c)];}function ve(_0x19f478,_0x3356df){const _0x3a0c0f=_0xfb34;return(_0x3356df==null?void 0x0:_0x3356df[_0x3a0c0f(0x12c)])===void 0x0?_0x19f478[_0x3a0c0f(0x11e)]==='pen'?void 0x0:_0x19f478[_0x3a0c0f(0x12c)]:_0x3356df['opacity'];}function ye(_0x2d62fd,_0x304670){const _0x1efda2=_0xfb34;let _0xf38616=G(_0x2d62fd),_0x538d40=he(_0x2d62fd,{'x':_0xf38616['left'],'y':_0xf38616[_0x1efda2(0x174)]}),_0x3f4908=_0x2d62fd[_0x1efda2(0x11e)]===_0x1efda2(0x13b)&&_0x2d62fd[_0x1efda2(0x12a)],_0x397cc1=_0x304670==null?void 0x0:_0x304670['fillColor'];return{'shapeType':_0x4aa715[_0x1efda2(0x177)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0xf38616[_0x1efda2(0x13c)],'h':_0xf38616[_0x1efda2(0x173)],'fill':_0x3f4908?_0x1efda2(0x161):_0x1efda2(0x126),'stroke':!0x0,'data':_0x538d40,'dataArray':be(_0x2d62fd,{'x':_0xf38616['left'],'y':_0xf38616[_0x1efda2(0x174)]})}]},'fill':_0x3f4908&&_0x397cc1?{'color':_0x397cc1,'fillType':_0x3d9285['SolidFill']}:{'fillType':_0x3d9285[_0x1efda2(0x155)]},'stroke':{'color':ge(_0x2d62fd,_0x304670),'width':_e(_0x2d62fd,_0x304670),'opacity':ve(_0x2d62fd,_0x304670),'lineStrokeType':_0x53320d[_0x1efda2(0x146)],'capType':_0x4a7b4e[_0x1efda2(0x171)],'lineJoinType':_0x127e75[_0x1efda2(0x171)]}};}function K(_0xb70e3,_0x355490){return{'x':_0xb70e3['x']-_0x355490['x'],'y':_0xb70e3['y']-_0x355490['y']};}function be(_0x2c8e8c,_0x2d684f){const _0xddc849=_0xfb34;if(_0x2c8e8c[_0xddc849(0x11e)]===_0xddc849(0x13b)){let _0x5f3f2f=_0x2c8e8c['anchors'];if(_0x5f3f2f[_0xddc849(0x169)]===0x0)return[];let _0x163fa1=K(_0x5f3f2f[0x0],_0x2d684f),_0x101a10=[{'command':'M','points':[_0x163fa1['x'],_0x163fa1['y']]}];for(let _0x14062d=0x1;_0x14062d<_0x5f3f2f[_0xddc849(0x169)];_0x14062d++){let _0x55edc5=_0x5f3f2f[_0x14062d-0x1],_0x7bd807=_0x5f3f2f[_0x14062d],_0x48c016=K(_0x55edc5['out']??_0x55edc5,_0x2d684f),_0x3105b3=K(_0x7bd807['in']??_0x7bd807,_0x2d684f),_0x3660bc=K(_0x7bd807,_0x2d684f);_0x101a10['push']({'command':'C','points':[_0x48c016['x'],_0x48c016['y'],_0x3105b3['x'],_0x3105b3['y'],_0x3660bc['x'],_0x3660bc['y']]});}if(_0x2c8e8c[_0xddc849(0x12a)]&&_0x5f3f2f[_0xddc849(0x169)]>0x1){let _0x3ec656=_0x5f3f2f[_0x5f3f2f[_0xddc849(0x169)]-0x1],_0x19ab0a=_0x5f3f2f[0x0],_0x46b4e2=K(_0x3ec656[_0xddc849(0x15f)]??_0x3ec656,_0x2d684f),_0x48e0bd=K(_0x19ab0a['in']??_0x19ab0a,_0x2d684f),_0x337e25=K(_0x19ab0a,_0x2d684f);_0x101a10[_0xddc849(0x13f)]({'command':'C','points':[_0x46b4e2['x'],_0x46b4e2['y'],_0x48e0bd['x'],_0x48e0bd['y'],_0x337e25['x'],_0x337e25['y']]}),_0x101a10['push']({'command':'z','points':[]});}return _0x101a10;}let _0x2ca072=_0x2c8e8c[_0xddc849(0x13a)][_0xddc849(0x134)](_0x3d4c5c=>K(_0x3d4c5c,_0x2d684f));if(_0x2ca072[_0xddc849(0x169)]===0x0)return[];let _0x4f57db=[{'command':'M','points':[_0x2ca072[0x0]['x'],_0x2ca072[0x0]['y']]}];for(let _0x545f60=0x0;_0x545f60<_0x2ca072[_0xddc849(0x169)]-0x1;_0x545f60++){let _0x3c4165=_0x2ca072[_0x545f60],_0x5a3859=_0x2ca072[_0x545f60+0x1],_0x7f9ae7=_0x2ca072[_0x545f60-0x1]??_0x3c4165,_0x4d3387=_0x2ca072[_0x545f60+0x2]??_0x5a3859,_0x19bbf1={'x':_0x3c4165['x']+(_0x5a3859['x']-_0x7f9ae7['x'])/0x6,'y':_0x3c4165['y']+(_0x5a3859['y']-_0x7f9ae7['y'])/0x6},_0xaf45cb={'x':_0x5a3859['x']-(_0x4d3387['x']-_0x3c4165['x'])/0x6,'y':_0x5a3859['y']-(_0x4d3387['y']-_0x3c4165['y'])/0x6};_0x4f57db[_0xddc849(0x13f)]({'command':'C','points':[_0x19bbf1['x'],_0x19bbf1['y'],_0xaf45cb['x'],_0xaf45cb['y'],_0x5a3859['x'],_0x5a3859['y']]});}return _0x4f57db;}function xe(_0x4d2de5){const _0x2ae7a7=_0xfb34;let {model:_0x356675,sourceModel:_0x476dc3=_0x356675,style:_0x228d5f}=_0x4d2de5,_0x320a35=_0x4d2de5[_0x2ae7a7(0x13e)]??_0x356675[_0x2ae7a7(0x11e)],_0x1df080=G(_0x356675),_0x11d716=_0x356675[_0x2ae7a7(0x11e)]===_0x2ae7a7(0x13b)&&_0x320a35!==_0x2ae7a7(0x13b)?_0x356675:void 0x0;return{'transform':{..._0x1df080,'rotation':0x0},'shapeData':ye(_0x356675,_0x228d5f),'ink':{'version':0x1,'tool':_0x320a35,'sourceModel':_0x476dc3,..._0x11d716?{'editModel':_0x11d716}:{},'normalizedBounds':_0x1df080}};}var Se=_0x12824f(0x168),Ce='1.0.0-rc.0';function q(_0x1284b6){'@babel/helpers - typeof';const _0x114b7c=_0x12824f;return q=typeof Symbol==_0x114b7c(0x139)&&typeof Symbol[_0x114b7c(0x163)]==_0x114b7c(0x156)?function(_0xc8c90e){return typeof _0xc8c90e;}:function(_0x4a2388){const _0x1ca709=_0x114b7c;return _0x4a2388&&typeof Symbol==_0x1ca709(0x139)&&_0x4a2388[_0x1ca709(0x162)]===Symbol&&_0x4a2388!==Symbol[_0x1ca709(0x125)]?_0x1ca709(0x156):typeof _0x4a2388;},q(_0x1284b6);}function we(_0x16642d,_0x5e3726){const _0x4605ce=_0x12824f;if(q(_0x16642d)!='object'||!_0x16642d)return _0x16642d;var _0x8a85d1=_0x16642d[Symbol[_0x4605ce(0x14b)]];if(_0x8a85d1!==void 0x0){var _0x7fa7cc=_0x8a85d1['call'](_0x16642d,_0x5e3726||_0x4605ce(0x12e));if(q(_0x7fa7cc)!=_0x4605ce(0x14f))return _0x7fa7cc;throw TypeError(_0x4605ce(0x132));}return(_0x5e3726===_0x4605ce(0x144)?String:Number)(_0x16642d);}function J(_0x4a242d){const _0x13c9ea=_0x12824f;var _0x428652=we(_0x4a242d,_0x13c9ea(0x144));return q(_0x428652)==_0x13c9ea(0x156)?_0x428652:_0x428652+'';}function Y(_0x6e450,_0x30418b,_0x45ed00){const _0x1fcfc4=_0x12824f;return(_0x30418b=J(_0x30418b))in _0x6e450?Object[_0x1fcfc4(0x167)](_0x6e450,_0x30418b,{'value':_0x45ed00,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x6e450[_0x30418b]=_0x45ed00,_0x6e450;}const X=_0x276103('ink.host-adapter.service');var Te=class{constructor(){const _0x1a757a=_0x12824f;Y(this,_0x1a757a(0x14c),[]);}[_0x12824f(0x154)](_0x62b286){const _0x12bd43=_0x12824f;return this[_0x12bd43(0x14c)][_0x12bd43(0x13f)](_0x62b286),_0x297405(()=>{const _0x5eba52=_0x12bd43;let _0x50c808=this['_adapters'][_0x5eba52(0x16c)](_0x62b286);_0x50c808>=0x0&&this[_0x5eba52(0x14c)][_0x5eba52(0x128)](_0x50c808,0x1);});}['beginInkMode'](_0x3e7e43){const _0xc7e8a8=_0x12824f;for(let _0x357f0a of this['_adapters'])if(_0x357f0a[_0xc7e8a8(0x153)](_0x3e7e43))return!0x0;return!0x1;}async[_0x12824f(0x129)](_0x226cfa){const _0x1bb35e=_0x12824f;for(let _0x4d5376 of this[_0x1bb35e(0x14c)])if(_0x4d5376[_0x1bb35e(0x129)]&&await _0x4d5376['createCustomShape'](_0x226cfa))return!0x0;return!0x1;}};const Ee={'id':_0x12824f(0x15e),'type':_0x5b45d3[_0x12824f(0x178)],'handler':(_0x1b2182,_0x5149c2)=>_0x5149c2?_0x1b2182[_0x12824f(0x15d)](X)[_0x12824f(0x153)](_0x5149c2):!0x1},Z={};function Q(_0x1c1d7e,_0x5aff32){return function(_0x5448dd,_0x5ad8e5){_0x5aff32(_0x5448dd,_0x5ad8e5,_0x1c1d7e);};}function De(_0x5c2ec3,_0x4651f0,_0x571f8e,_0x6fff3e){const _0x2ac89c=_0x12824f;var _0x288927=arguments[_0x2ac89c(0x169)],_0x57c82a=_0x288927<0x3?_0x4651f0:_0x6fff3e===null?_0x6fff3e=Object[_0x2ac89c(0x14d)](_0x4651f0,_0x571f8e):_0x6fff3e,_0x2a9872;if(typeof Reflect==_0x2ac89c(0x14f)&&typeof Reflect[_0x2ac89c(0x166)]==_0x2ac89c(0x139))_0x57c82a=Reflect['decorate'](_0x5c2ec3,_0x4651f0,_0x571f8e,_0x6fff3e);else{for(var _0x251240=_0x5c2ec3[_0x2ac89c(0x169)]-0x1;_0x251240>=0x0;_0x251240--)(_0x2a9872=_0x5c2ec3[_0x251240])&&(_0x57c82a=(_0x288927<0x3?_0x2a9872(_0x57c82a):_0x288927>0x3?_0x2a9872(_0x4651f0,_0x571f8e,_0x57c82a):_0x2a9872(_0x4651f0,_0x571f8e))||_0x57c82a);}return _0x288927>0x3&&_0x57c82a&&Object[_0x2ac89c(0x167)](_0x4651f0,_0x571f8e,_0x57c82a),_0x57c82a;}let $=class extends _0x19d734{constructor(_0x17ef9d=Z,_0x578ca8,_0x41f82a,_0x120c86){const _0x410b2f=_0x12824f;super(),this[_0x410b2f(0x124)]=_0x17ef9d,this[_0x410b2f(0x136)]=_0x578ca8,this[_0x410b2f(0x120)]=_0x41f82a,this[_0x410b2f(0x170)]=_0x120c86;let {..._0x3b78f9}=_0x110d4d({},Z,this['_config']);this['_configService']['setConfig'](_0x410b2f(0x149),_0x3b78f9);}[_0x12824f(0x16f)](){const _0x4d0b88=_0x12824f;[[X,{'useClass':Te}]][_0x4d0b88(0x12b)](_0x3b9556=>this[_0x4d0b88(0x136)]['add'](_0x3b9556)),this[_0x4d0b88(0x131)](this[_0x4d0b88(0x120)][_0x4d0b88(0x13d)](Ee));}};Y($,'pluginName',_0x12824f(0x150)),Y($,_0x12824f(0x179),Se),Y($,_0x12824f(0x142),Ce),Y($,'type',_0x212eed['UNIVER_UNKNOWN']),$=De([_0x17b879(_0x5a8579),Q(0x1,_0x19a3e6(_0x24e31f)),Q(0x2,_0x46d0bf),Q(0x3,_0x5cf97d)],$);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 _0x262661=_0x5c0c;(function(_0x1f5ee0,_0x3e3c54){const _0x435ed9=_0x5c0c,_0x493e2f=_0x1f5ee0();while(!![]){try{const _0x2fdd5b=parseInt(_0x435ed9(0x219))/0x1+parseInt(_0x435ed9(0x1c4))/0x2*(-parseInt(_0x435ed9(0x1ec))/0x3)+parseInt(_0x435ed9(0x1c1))/0x4*(-parseInt(_0x435ed9(0x1cc))/0x5)+-parseInt(_0x435ed9(0x21a))/0x6+parseInt(_0x435ed9(0x205))/0x7+-parseInt(_0x435ed9(0x1d4))/0x8+parseInt(_0x435ed9(0x206))/0x9;if(_0x2fdd5b===_0x3e3c54)break;else _0x493e2f['push'](_0x493e2f['shift']());}catch(_0x3ca147){_0x493e2f['push'](_0x493e2f['shift']());}}}(_0x16b5,0xa762d));import{ShapeFillEnum as _0x38ff12,ShapeLineCapEnum as _0x123408,ShapeLineJoinEnum as _0xbfe652,ShapeLineTypeEnum as _0x5adb7e,ShapeTypeEnum as _0x1d1c53}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x129a17}from'@univerjs-pro/license';import{CommandType as _0x5f3ab0,DependentOn as _0x1618e7,ICommandService as _0x5d7d4c,IConfigService as _0x386cd3,Inject as _0x336086,Injector as _0x4ecae0,Plugin as _0xe68393,UniverInstanceType as _0x192c47,createIdentifier as _0xcd3cc4,merge as _0x1e52ff,toDisposable as _0x6c9088}from'@univerjs/core';const g=0.0001;function _(_0x41040e){return{'x':_0x41040e['x'],'y':_0x41040e['y']};}function v(_0x3c498b){const _0x241602=_0x5c0c;return{..._0x3c498b,'in':_0x3c498b['in']?_(_0x3c498b['in']):void 0x0,'out':_0x3c498b[_0x241602(0x1cd)]?_(_0x3c498b[_0x241602(0x1cd)]):void 0x0};}function y(_0x55b83c){const _0x170064=_0x5c0c;return{'kind':_0x170064(0x1ef),'closed':_0x55b83c['closed'],'anchors':_0x55b83c[_0x170064(0x201)][_0x170064(0x1c3)](v)};}function b(_0x47d217,_0x152b04,_0x5f47f3){return{'x':_0x47d217['x']+(_0x152b04['x']-_0x47d217['x'])*_0x5f47f3,'y':_0x47d217['y']+(_0x152b04['y']-_0x47d217['y'])*_0x5f47f3};}function x(_0x4d976f,_0x2a33a1){const _0x48f8ac=_0x5c0c;return Math[_0x48f8ac(0x1f1)](_0x4d976f['x']-_0x2a33a1['x'],_0x4d976f['y']-_0x2a33a1['y']);}function S(_0x57bf02){const _0x3c765b=_0x5c0c;let _0x3b3530=Math[_0x3c765b(0x1f1)](_0x57bf02['x'],_0x57bf02['y']);return _0x3b3530<g?{'x':0x1,'y':0x0}:{'x':_0x57bf02['x']/_0x3b3530,'y':_0x57bf02['y']/_0x3b3530};}function C(_0x2aa132,_0xe8a867,_0x12dac1=x(_0x2aa132,_0xe8a867)){let _0x2c956a=S({'x':_0x2aa132['x']-_0xe8a867['x'],'y':_0x2aa132['y']-_0xe8a867['y']});return{'x':_0x2aa132['x']+_0x2c956a['x']*_0x12dac1,'y':_0x2aa132['y']+_0x2c956a['y']*_0x12dac1};}function w(_0x1c107a,_0x4a0943){const _0x5eb65f=_0x5c0c;let {anchors:_0x4af7c4}=_0x1c107a;return _0x4af7c4[_0x5eb65f(0x1fc)]<0x2||_0x4a0943<0x0?null:_0x4a0943<_0x4af7c4[_0x5eb65f(0x1fc)]-0x1?{'startIndex':_0x4a0943,'endIndex':_0x4a0943+0x1,'start':_0x4af7c4[_0x4a0943],'end':_0x4af7c4[_0x4a0943+0x1]}:_0x1c107a['closed']&&_0x4a0943===_0x4af7c4[_0x5eb65f(0x1fc)]-0x1?{'startIndex':_0x4af7c4[_0x5eb65f(0x1fc)]-0x1,'endIndex':0x0,'start':_0x4af7c4[_0x4af7c4[_0x5eb65f(0x1fc)]-0x1],'end':_0x4af7c4[0x0]}:null;}function T(_0x83240b,_0x579e1c){const _0x2e0ac1=_0x5c0c;let _0xa31a2e=w(_0x83240b,_0x579e1c);return _0xa31a2e?[_0xa31a2e['start'],_0xa31a2e[_0x2e0ac1(0x21d)][_0x2e0ac1(0x1cd)]??_0xa31a2e[_0x2e0ac1(0x21d)],_0xa31a2e[_0x2e0ac1(0x1c6)]['in']??_0xa31a2e[_0x2e0ac1(0x1c6)],_0xa31a2e['end']]:null;}function te(_0x4948c8,_0x112c11){const _0x56b7d6=_0x5c0c;return _0x112c11===_0x56b7d6(0x1fd)?_0x4948c8:_0x4948c8[_0x112c11]??null;}function E(_0x10d058,_0x144405,_0x1acb68){const _0x2a3f9d=_0x5c0c;return _0x1acb68===_0x2a3f9d(0x1fd)||_0x10d058[_0x2a3f9d(0x209)]?!0x0:_0x1acb68==='in'?_0x144405>0x0:_0x144405<_0x10d058[_0x2a3f9d(0x201)][_0x2a3f9d(0x1fc)]-0x1;}function D(_0x132b8b,_0x5517a5){let [_0x3c4027,_0x8d9236,_0x5a79db,_0x58e251]=_0x132b8b,_0x1afe6a=b(_0x3c4027,_0x8d9236,_0x5517a5),_0x133079=b(_0x8d9236,_0x5a79db,_0x5517a5),_0x1d326c=b(_0x5a79db,_0x58e251,_0x5517a5);return b(b(_0x1afe6a,_0x133079,_0x5517a5),b(_0x133079,_0x1d326c,_0x5517a5),_0x5517a5);}function ne(_0x18870a,_0x1b6ec4){let [_0x5d1b9d,_0x47935c,_0x593652,_0x4f3b16]=_0x18870a,_0x1eb0cd=b(_0x5d1b9d,_0x47935c,_0x1b6ec4),_0x28db30=b(_0x47935c,_0x593652,_0x1b6ec4),_0x5180a2=b(_0x593652,_0x4f3b16,_0x1b6ec4),_0x4fd217=b(_0x1eb0cd,_0x28db30,_0x1b6ec4),_0x38f4bf=b(_0x28db30,_0x5180a2,_0x1b6ec4),_0x33d709=b(_0x4fd217,_0x38f4bf,_0x1b6ec4);return{'left':[_0x5d1b9d,_0x1eb0cd,_0x4fd217,_0x33d709],'right':[_0x33d709,_0x38f4bf,_0x5180a2,_0x4f3b16]};}function O(_0x290e8d,_0x6b199f,_0x281fd6){const _0x1aaf0c=_0x5c0c;let _0x413683=_0x281fd6['x']-_0x6b199f['x'],_0x19ea85=_0x281fd6['y']-_0x6b199f['y'],_0x44e6e6=_0x413683*_0x413683+_0x19ea85*_0x19ea85,_0x1b5894=_0x44e6e6<=g?0x0:Math[_0x1aaf0c(0x1e2)](0x0,Math[_0x1aaf0c(0x20e)](0x1,((_0x290e8d['x']-_0x6b199f['x'])*_0x413683+(_0x290e8d['y']-_0x6b199f['y'])*_0x19ea85)/_0x44e6e6)),_0x1080df={'x':_0x6b199f['x']+_0x413683*_0x1b5894,'y':_0x6b199f['y']+_0x19ea85*_0x1b5894};return{'point':_0x1080df,'ratio':_0x1b5894,'distance':x(_0x290e8d,_0x1080df)};}function re(_0x688a36,_0x33d926,_0x34d504){return O(_0x688a36,_0x33d926,_0x34d504)['distance']**0x2;}function k(_0x5d35ff,_0x3fb182){const _0xd8a59c=_0x5c0c;if(_0x5d35ff['length']<=0x2)return _0x5d35ff[_0xd8a59c(0x1c3)](_);let _0x577feb=0x0,_0x1434ac=0x0,_0x1bd064=_0x5d35ff[0x0],_0x10d2db=_0x5d35ff[_0x5d35ff['length']-0x1],_0x466b1b=_0x3fb182*_0x3fb182;for(let _0x13b661=0x1;_0x13b661<_0x5d35ff[_0xd8a59c(0x1fc)]-0x1;_0x13b661++){let _0x363724=re(_0x5d35ff[_0x13b661],_0x1bd064,_0x10d2db);_0x363724>_0x577feb&&(_0x577feb=_0x363724,_0x1434ac=_0x13b661);}if(_0x577feb<=_0x466b1b)return[_(_0x1bd064),_(_0x10d2db)];let _0x49f1da=k(_0x5d35ff[_0xd8a59c(0x1ca)](0x0,_0x1434ac+0x1),_0x3fb182),_0x339a33=k(_0x5d35ff[_0xd8a59c(0x1ca)](_0x1434ac),_0x3fb182);return[..._0x49f1da[_0xd8a59c(0x1ca)](0x0,-0x1),..._0x339a33];}function ie(_0x1467a1,_0xa454ed){let _0x19472d=_0x1467a1[_0xa454ed],_0x5c1722=_0x1467a1[_0xa454ed+0x1],_0x1a7bf4=_0x1467a1[_0xa454ed-0x1]??_0x19472d;return{'x':_0x19472d['x']+(_0x5c1722['x']-_0x1a7bf4['x'])/0x6,'y':_0x19472d['y']+(_0x5c1722['y']-_0x1a7bf4['y'])/0x6};}function A(_0x3ff132,_0x52b422){let _0x1a5cae=_0x3ff132[_0x52b422],_0x102bb1=_0x3ff132[_0x52b422-0x1],_0x27e391=_0x3ff132[_0x52b422+0x1]??_0x1a5cae;return{'x':_0x1a5cae['x']-(_0x27e391['x']-_0x102bb1['x'])/0x6,'y':_0x1a5cae['y']-(_0x27e391['y']-_0x102bb1['y'])/0x6};}function j(_0x26ba96,_0xdd3040){const _0x4becf3=_0x5c0c;let _0x728940=_0x26ba96[_0x4becf3(0x201)][_0xdd3040],_0x20245b=_0x26ba96['anchors'][_0xdd3040-0x1]??(_0x26ba96[_0x4becf3(0x209)]?_0x26ba96[_0x4becf3(0x201)][_0x26ba96[_0x4becf3(0x201)][_0x4becf3(0x1fc)]-0x1]:null),_0x2a993a=_0x26ba96[_0x4becf3(0x201)][_0xdd3040+0x1]??(_0x26ba96[_0x4becf3(0x209)]?_0x26ba96[_0x4becf3(0x201)][0x0]:null),_0x310704=_0x20245b&&_0x2a993a?S({'x':_0x2a993a['x']-_0x20245b['x'],'y':_0x2a993a['y']-_0x20245b['y']}):_0x2a993a?S({'x':_0x2a993a['x']-_0x728940['x'],'y':_0x2a993a['y']-_0x728940['y']}):_0x20245b?S({'x':_0x728940['x']-_0x20245b['x'],'y':_0x728940['y']-_0x20245b['y']}):{'x':0x1,'y':0x0},_0x57fc47=_0x20245b&&_0x2a993a?Math[_0x4becf3(0x1e2)](0x32,x(_0x20245b,_0x2a993a)/0x4):0x32;return{'in':{'x':_0x728940['x']-_0x310704['x']*_0x57fc47,'y':_0x728940['y']-_0x310704['y']*_0x57fc47},'out':{'x':_0x728940['x']+_0x310704['x']*_0x57fc47,'y':_0x728940['y']+_0x310704['y']*_0x57fc47}};}function M(_0x5a4c24,_0x2f566c){const _0x35fa31=_0x5c0c;let _0x22aee2=_0x5a4c24[_0x2f566c],_0x5ddd59=_0x2f566c==='in'?'out':'in',_0xd38f31=_0x5a4c24[_0x5ddd59];if(_0x22aee2){if(_0x5a4c24['pointType']===_0x35fa31(0x1cf)){_0x5a4c24[_0x5ddd59]=C(_0x5a4c24,_0x22aee2);return;}_0x5a4c24[_0x35fa31(0x1d5)]===_0x35fa31(0x21e)&&(_0x5a4c24[_0x5ddd59]=C(_0x5a4c24,_0x22aee2,_0xd38f31?x(_0x5a4c24,_0xd38f31):x(_0x5a4c24,_0x22aee2)));}}function ae(_0x4850e4,_0x3c49de){const _0x18de32=_0x5c0c;let _0xfc5556=y(_0x4850e4);return!_0x3c49de||_0xfc5556['closed']||_0xfc5556[_0x18de32(0x201)][_0x18de32(0x1fc)]===0x0||_0xfc5556[_0x18de32(0x201)][_0x18de32(0x21c)]({'id':_0x18de32(0x1d0),'x':_0x3c49de['x'],'y':_0x3c49de['y'],'pointType':'corner'}),_0xfc5556;}function oe(_0x110e24,_0x29652d={}){const _0x46e41c=_0x5c0c;let _0x114872=Math[_0x46e41c(0x1e2)](0x0,_0x29652d[_0x46e41c(0x20a)]??Math[_0x46e41c(0x1e2)](0x4,_0x110e24[_0x46e41c(0x20f)]*0.35)),_0x27262a=_0x29652d[_0x46e41c(0x20c)]??(_0x20683a=>_0x46e41c(0x1bc)+_0x20683a),_0x1567b0=k(_0x110e24[_0x46e41c(0x1dc)],_0x114872),_0x2fd7a6=_0x1567b0[_0x46e41c(0x1c3)]((_0x48b4da,_0x5d3f90)=>({'id':_0x27262a(_0x5d3f90),'x':_0x48b4da['x'],'y':_0x48b4da['y'],'pointType':_0x46e41c(0x215)}));for(let _0x4a35fe=0x0;_0x4a35fe<_0x2fd7a6[_0x46e41c(0x1fc)]-0x1;_0x4a35fe++)_0x2fd7a6[_0x4a35fe][_0x46e41c(0x1cd)]=ie(_0x1567b0,_0x4a35fe),_0x2fd7a6[_0x4a35fe+0x1]['in']=A(_0x1567b0,_0x4a35fe+0x1);return{'kind':_0x46e41c(0x1ef),'closed':!0x1,'anchors':_0x2fd7a6};}function se(_0x2a430e,_0x3286c3,_0x42f02e){const _0x3508f4=_0x5c0c;let _0xe43791=null,_0x2182e3=[_0x3508f4(0x1fd),'in',_0x3508f4(0x1cd)];return _0x2a430e['anchors'][_0x3508f4(0x212)]((_0x2152b8,_0x3fbec6)=>{_0x2182e3['forEach'](_0x13e80a=>{const _0x2ecc0a=_0x5c0c;if(!E(_0x2a430e,_0x3fbec6,_0x13e80a))return;let _0x528378=te(_0x2152b8,_0x13e80a);if(!_0x528378)return;let _0x1d5fd6=x(_0x3286c3,_0x528378);_0x1d5fd6>_0x42f02e||_0xe43791&&_0x1d5fd6>=_0xe43791[_0x2ecc0a(0x1f7)]||(_0xe43791={'handle':{'kind':_0x13e80a,'anchorId':_0x2152b8['id']},'point':_(_0x528378),'distance':_0x1d5fd6});});}),_0xe43791;}function ce(_0x5f1832,_0x493376,_0x2823f3){const _0xa48a91=_0x5c0c;let _0x37c9b7=null,_0xefb11a=_0x5f1832[_0xa48a91(0x209)]?_0x5f1832[_0xa48a91(0x201)][_0xa48a91(0x1fc)]:Math[_0xa48a91(0x1e2)](0x0,_0x5f1832[_0xa48a91(0x201)]['length']-0x1);for(let _0x17fdc7=0x0;_0x17fdc7<_0xefb11a;_0x17fdc7++){let _0x59cad2=T(_0x5f1832,_0x17fdc7);if(!_0x59cad2)continue;let _0x402dba=D(_0x59cad2,0x0);for(let _0x51cc12=0x1;_0x51cc12<=0x20;_0x51cc12++){let _0x7a1cb2=D(_0x59cad2,_0x51cc12/0x20),_0x54ee45=O(_0x493376,_0x402dba,_0x7a1cb2),_0x23d1ed=(_0x51cc12-0x1+_0x54ee45[_0xa48a91(0x1e7)])/0x20;(!_0x37c9b7||_0x54ee45[_0xa48a91(0x1f7)]<_0x37c9b7[_0xa48a91(0x1f7)])&&(_0x37c9b7={'segmentIndex':_0x17fdc7,'t':_0x23d1ed,'point':_0x54ee45[_0xa48a91(0x1c7)],'distance':_0x54ee45[_0xa48a91(0x1f7)]}),_0x402dba=_0x7a1cb2;}}return _0x37c9b7&&_0x37c9b7[_0xa48a91(0x1f7)]<=_0x2823f3?_0x37c9b7:null;}function le(_0x2cee55,_0x3930b3,_0x5c5a31){const _0x4f0fe0=_0x5c0c;let _0x1f3109=y(_0x2cee55),_0x21b904=w(_0x1f3109,_0x3930b3[_0x4f0fe0(0x1e5)]),_0x363983=T(_0x1f3109,_0x3930b3[_0x4f0fe0(0x1e5)]);if(!_0x21b904||!_0x363983)return _0x1f3109;let _0x33f4c4=ne(_0x363983,Math[_0x4f0fe0(0x1e2)](0x0,Math[_0x4f0fe0(0x20e)](0x1,_0x3930b3['t']))),_0xf208a6={'id':_0x5c5a31(),'x':_0x33f4c4['left'][0x3]['x'],'y':_0x33f4c4[_0x4f0fe0(0x1db)][0x3]['y'],'in':_(_0x33f4c4[_0x4f0fe0(0x1db)][0x2]),'out':_(_0x33f4c4[_0x4f0fe0(0x1ed)][0x1]),'pointType':_0x4f0fe0(0x215)};return _0x1f3109[_0x4f0fe0(0x201)][_0x21b904[_0x4f0fe0(0x1ee)]][_0x4f0fe0(0x1cd)]=_(_0x33f4c4['left'][0x1]),_0x1f3109[_0x4f0fe0(0x201)][_0x21b904[_0x4f0fe0(0x1e9)]]['in']=_(_0x33f4c4[_0x4f0fe0(0x1ed)][0x2]),_0x1f3109[_0x4f0fe0(0x201)]['splice'](_0x21b904['startIndex']+0x1,0x0,_0xf208a6),_0x1f3109;}function ue(_0x9e772b,_0x16d4ee){const _0x5c35d9=_0x5c0c;let _0x55f369=y(_0x9e772b);return _0x55f369[_0x5c35d9(0x201)]=_0x55f369[_0x5c35d9(0x201)][_0x5c35d9(0x1f5)](_0x7deb90=>_0x7deb90['id']!==_0x16d4ee),_0x55f369[_0x5c35d9(0x209)]&&_0x55f369[_0x5c35d9(0x201)][_0x5c35d9(0x1fc)]<0x3&&(_0x55f369['closed']=!0x1),_0x55f369;}function N(_0x4518d8,_0x1415e0,_0x44dd9a){const _0x13b4a1=_0x5c0c;let _0x2ffc1c=y(_0x4518d8),_0x159e98=_0x2ffc1c[_0x13b4a1(0x201)][_0x13b4a1(0x1d2)](_0x23aaec=>_0x23aaec['id']===_0x1415e0),_0x2d1e94=_0x2ffc1c['anchors'][_0x159e98];if(!_0x2d1e94)return _0x2ffc1c;if(_0x2d1e94['pointType']=_0x44dd9a,_0x44dd9a===_0x13b4a1(0x1ff))return delete _0x2d1e94['in'],delete _0x2d1e94[_0x13b4a1(0x1cd)],_0x2ffc1c;let _0x562152=j(_0x2ffc1c,_0x159e98);if(_0x2d1e94['in']=_0x2d1e94['in']?_(_0x2d1e94['in']):_0x562152['in'],_0x2d1e94[_0x13b4a1(0x1cd)]=_0x2d1e94[_0x13b4a1(0x1cd)]?_(_0x2d1e94['out']):_0x562152['out'],_0x44dd9a===_0x13b4a1(0x1cf)){let _0x3eaa28=Math[_0x13b4a1(0x1e2)](x(_0x2d1e94,_0x2d1e94['in']),x(_0x2d1e94,_0x2d1e94[_0x13b4a1(0x1cd)]),0x32),_0x5e13b1=S({'x':_0x2d1e94[_0x13b4a1(0x1cd)]['x']-_0x2d1e94['x'],'y':_0x2d1e94['out']['y']-_0x2d1e94['y']});_0x2d1e94[_0x13b4a1(0x1cd)]={'x':_0x2d1e94['x']+_0x5e13b1['x']*_0x3eaa28,'y':_0x2d1e94['y']+_0x5e13b1['y']*_0x3eaa28},_0x2d1e94['in']={'x':_0x2d1e94['x']-_0x5e13b1['x']*_0x3eaa28,'y':_0x2d1e94['y']-_0x5e13b1['y']*_0x3eaa28};}else _0x44dd9a===_0x13b4a1(0x21e)&&M(_0x2d1e94,_0x13b4a1(0x1cd));return _0x2ffc1c;}function P(_0x31d1ee,_0x22fe65){const _0x49b2d6=_0x5c0c;let _0x2e005e=_0x31d1ee[_0x49b2d6(0x201)]['find'](_0x406756=>_0x406756['id']===_0x22fe65),_0x23e7a3=(_0x2e005e==null?void 0x0:_0x2e005e['pointType'])??_0x49b2d6(0x1ff);return N(_0x31d1ee,_0x22fe65,_0x23e7a3==='corner'?'smooth':_0x23e7a3===_0x49b2d6(0x21e)?_0x49b2d6(0x1cf):_0x23e7a3===_0x49b2d6(0x1cf)?_0x49b2d6(0x215):'corner');}function F(_0x5b7984,_0x428b04,_0x4cb977){const _0x563f34=_0x5c0c;let _0x574c3a=y(_0x5b7984),_0x53aafd=_0x574c3a[_0x563f34(0x201)][_0x563f34(0x1c5)](_0x50d45c=>_0x50d45c['id']===_0x428b04[_0x563f34(0x1dd)]);if(!_0x53aafd)return _0x574c3a;if(_0x428b04[_0x563f34(0x1f8)]===_0x563f34(0x1fd)){let _0x3e3efb={'x':_0x4cb977['x']-_0x53aafd['x'],'y':_0x4cb977['y']-_0x53aafd['y']};return _0x53aafd['x']=_0x4cb977['x'],_0x53aafd['y']=_0x4cb977['y'],_0x53aafd['in']&&={'x':_0x53aafd['in']['x']+_0x3e3efb['x'],'y':_0x53aafd['in']['y']+_0x3e3efb['y']},_0x53aafd[_0x563f34(0x1cd)]&&={'x':_0x53aafd[_0x563f34(0x1cd)]['x']+_0x3e3efb['x'],'y':_0x53aafd['out']['y']+_0x3e3efb['y']},_0x574c3a;}return _0x53aafd[_0x428b04['kind']]=_(_0x4cb977),_0x53aafd[_0x563f34(0x1d5)]==='corner'&&(_0x53aafd[_0x563f34(0x1d5)]=_0x563f34(0x215)),M(_0x53aafd,_0x428b04[_0x563f34(0x1f8)]),_0x574c3a;}const I=1e-9;function L(_0xf5e7ce){const _0x1c942d=_0x5c0c;let _0x3cb7e2=Math[_0x1c942d(0x1d6)](_0xf5e7ce*0x2710)/0x2710;return Object['is'](_0x3cb7e2,-0x0)?'0':String(_0x3cb7e2);}function R(_0x5b9ab2){return L(_0x5b9ab2['x'])+'\x20'+L(_0x5b9ab2['y']);}function z(_0x1c9bf6,_0x185518){return{'x':_0x1c9bf6['x']-_0x185518['x'],'y':_0x1c9bf6['y']-_0x185518['y']};}function B(_0x4bc8a7,_0x5aa30b,_0xcb56ec,_0x5ee6af,_0x82c9a4){let _0x2e5941=0x1-_0x82c9a4;return{'x':_0x2e5941*_0x2e5941*_0x2e5941*_0x4bc8a7['x']+0x3*_0x2e5941*_0x2e5941*_0x82c9a4*_0x5aa30b['x']+0x3*_0x2e5941*_0x82c9a4*_0x82c9a4*_0xcb56ec['x']+_0x82c9a4*_0x82c9a4*_0x82c9a4*_0x5ee6af['x'],'y':_0x2e5941*_0x2e5941*_0x2e5941*_0x4bc8a7['y']+0x3*_0x2e5941*_0x2e5941*_0x82c9a4*_0x5aa30b['y']+0x3*_0x2e5941*_0x82c9a4*_0x82c9a4*_0xcb56ec['y']+_0x82c9a4*_0x82c9a4*_0x82c9a4*_0x5ee6af['y']};}function _0x16b5(){const _0x40f63e=['length','anchor','abs','corner','setConfig','anchors','prototype','ink.config','join','5171558PsIdCS','14325570wgORYR','SolidLine','string','closed','tolerance','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createId','UNIVER_UNKNOWN','min','width','registerAdapter','defineProperty','forEach','splice','none','free','Rect','_commandService','toPrimitive','797632DJezDl','7879524CehCCE','onStarting','push','start','smooth','ink-centerline-','symbol','add','function','Round','492gulpcy','packageName','map','216164VwfXVn','find','end','point','_injector','top','slice','_config','2415GerItA','out','createCustomShape','symmetric','__ink-preview-anchor__','1.0.0','findIndex','type','6829728gPWJcq','pointType','round','object','iterator','opacity','sqrt','left','points','anchorId','_adapters','@univerjs-pro/ink','decorate','OPERATION','max','height','NoFill','segmentIndex','UNIVER_INK_PLUGIN','ratio','tool','endIndex','constructor','color','6pQKvLn','right','startIndex','pen','registerCommand','hypot','default','pluginName','get','filter','beginInkMode','distance','kind','norm','version','ink.operation.start'];_0x16b5=function(){return _0x40f63e;};return _0x16b5();}function V(_0x842fc0,_0x39c1cc,_0x296558,_0x22fedd){const _0x5da72a=_0x5c0c;let _0x86b305=-_0x842fc0+0x3*_0x39c1cc-0x3*_0x296558+_0x22fedd,_0x1192d8=0x3*_0x842fc0-0x6*_0x39c1cc+0x3*_0x296558,_0x31f63d=-0x3*_0x842fc0+0x3*_0x39c1cc,_0x53543f=[];if(Math[_0x5da72a(0x1fe)](_0x86b305)<I){if(Math[_0x5da72a(0x1fe)](_0x1192d8)<I)return _0x53543f;let _0x3b5e85=-_0x31f63d/(0x2*_0x1192d8);return _0x3b5e85>0x0&&_0x3b5e85<0x1&&_0x53543f['push'](_0x3b5e85),_0x53543f;}let _0x3f8219=_0x1192d8*_0x1192d8-0x3*_0x86b305*_0x31f63d;if(_0x3f8219<0x0)return _0x53543f;let _0x1ac936=Math[_0x5da72a(0x1da)](Math[_0x5da72a(0x1e2)](0x0,_0x3f8219)),_0x2d0f76=(-_0x1192d8+_0x1ac936)/(0x3*_0x86b305),_0x1aa843=(-_0x1192d8-_0x1ac936)/(0x3*_0x86b305);return _0x2d0f76>0x0&&_0x2d0f76<0x1&&_0x53543f[_0x5da72a(0x21c)](_0x2d0f76),_0x1aa843>0x0&&_0x1aa843<0x1&&Math[_0x5da72a(0x1fe)](_0x1aa843-_0x2d0f76)>I&&_0x53543f['push'](_0x1aa843),_0x53543f;}function _0x5c0c(_0x43bd8a,_0x82232c){_0x43bd8a=_0x43bd8a-0x1bc;const _0x16b58d=_0x16b5();let _0x5c0cf2=_0x16b58d[_0x43bd8a];return _0x5c0cf2;}function H(_0x641b78,_0x5e9a04,_0x24d17d,_0x39f9f9,_0x1ace94){const _0x50664e=_0x5c0c;_0x641b78['push'](_0x5e9a04,_0x1ace94),new Set([...V(_0x5e9a04['x'],_0x24d17d['x'],_0x39f9f9['x'],_0x1ace94['x']),...V(_0x5e9a04['y'],_0x24d17d['y'],_0x39f9f9['y'],_0x1ace94['y'])])[_0x50664e(0x212)](_0x5c7830=>{const _0x680e21=_0x50664e;_0x641b78[_0x680e21(0x21c)](B(_0x5e9a04,_0x24d17d,_0x39f9f9,_0x1ace94,_0x5c7830));});}function U(_0x33d446){const _0x78d47d=_0x5c0c;let _0x4f02d6=_0x33d446['anchors'];if(_0x4f02d6['length']<=0x1)return _0x4f02d6;let _0x3fb3a7=[];for(let _0x260d1d=0x1;_0x260d1d<_0x4f02d6[_0x78d47d(0x1fc)];_0x260d1d++){let _0x368245=_0x4f02d6[_0x260d1d-0x1],_0x468ad9=_0x4f02d6[_0x260d1d];H(_0x3fb3a7,_0x368245,_0x368245[_0x78d47d(0x1cd)]??_0x368245,_0x468ad9['in']??_0x468ad9,_0x468ad9);}if(_0x33d446['closed']&&_0x4f02d6[_0x78d47d(0x1fc)]>0x1){let _0x11491b=_0x4f02d6[_0x4f02d6[_0x78d47d(0x1fc)]-0x1],_0x535819=_0x4f02d6[0x0];H(_0x3fb3a7,_0x11491b,_0x11491b['out']??_0x11491b,_0x535819['in']??_0x535819,_0x535819);}return _0x3fb3a7;}function de(_0x12ed25){const _0x46bda2=_0x5c0c;let _0x58a3f=_0x12ed25[_0x46bda2(0x1dc)];if(_0x58a3f[_0x46bda2(0x1fc)]<=0x1)return _0x58a3f;let _0x5ef4d6=[];for(let _0x571e8a=0x0;_0x571e8a<_0x58a3f[_0x46bda2(0x1fc)]-0x1;_0x571e8a++){let _0xe358c1=_0x58a3f[_0x571e8a],_0x13a729=_0x58a3f[_0x571e8a+0x1],_0x5047b2=_0x58a3f[_0x571e8a-0x1]??_0xe358c1,_0x5c93d2=_0x58a3f[_0x571e8a+0x2]??_0x13a729;H(_0x5ef4d6,_0xe358c1,{'x':_0xe358c1['x']+(_0x13a729['x']-_0x5047b2['x'])/0x6,'y':_0xe358c1['y']+(_0x13a729['y']-_0x5047b2['y'])/0x6},{'x':_0x13a729['x']-(_0x5c93d2['x']-_0xe358c1['x'])/0x6,'y':_0x13a729['y']-(_0x5c93d2['y']-_0xe358c1['y'])/0x6},_0x13a729);}return _0x5ef4d6;}function fe(_0x508cf3){const _0x16a945=_0x5c0c;return _0x508cf3[_0x16a945(0x1f8)]===_0x16a945(0x1ef)?U(_0x508cf3):de(_0x508cf3);}function W(_0x43ae2d){const _0x450191=_0x5c0c;let _0x39dda3=Math[_0x450191(0x1d6)](_0x43ae2d*0x2710)/0x2710;return Object['is'](_0x39dda3,-0x0)?0x0:_0x39dda3;}function G(_0x4987f3){const _0x2ea740=_0x5c0c;let _0x382d09=fe(_0x4987f3);if(_0x382d09[_0x2ea740(0x1fc)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x50bd36=Math['min'](..._0x382d09[_0x2ea740(0x1c3)](_0x5d1230=>_0x5d1230['x'])),_0xacf575=Math[_0x2ea740(0x20e)](..._0x382d09[_0x2ea740(0x1c3)](_0x153809=>_0x153809['y'])),_0x52b1f3=Math[_0x2ea740(0x1e2)](..._0x382d09['map'](_0x55a84c=>_0x55a84c['x'])),_0xada904=Math['max'](..._0x382d09[_0x2ea740(0x1c3)](_0x2a7660=>_0x2a7660['y']));return{'left':W(_0x50bd36),'top':W(_0xacf575),'width':W(Math['max'](0x1,_0x52b1f3-_0x50bd36)),'height':W(Math[_0x2ea740(0x1e2)](0x1,_0xada904-_0xacf575))};}function pe(_0x42d3e0,_0x5a766d){const _0x47c588=_0x5c0c;let _0x449123=_0x42d3e0[_0x47c588(0x201)];if(_0x449123[_0x47c588(0x1fc)]===0x0)return'';let _0x1ad93d=['M\x20'+R(z(_0x449123[0x0],_0x5a766d))];for(let _0x286a79=0x1;_0x286a79<_0x449123[_0x47c588(0x1fc)];_0x286a79++){let _0x467c6f=_0x449123[_0x286a79-0x1],_0x453f14=_0x449123[_0x286a79],_0x2591b8=_0x467c6f[_0x47c588(0x1cd)]??_0x467c6f,_0x1ac997=_0x453f14['in']??_0x453f14;_0x1ad93d[_0x47c588(0x21c)]('C\x20'+R(z(_0x2591b8,_0x5a766d))+'\x20'+R(z(_0x1ac997,_0x5a766d))+'\x20'+R(z(_0x453f14,_0x5a766d)));}if(_0x42d3e0['closed']&&_0x449123[_0x47c588(0x1fc)]>0x1){let _0x33cf1d=_0x449123[_0x449123[_0x47c588(0x1fc)]-0x1],_0x5946bd=_0x449123[0x0],_0x15fcef=_0x33cf1d['out']??_0x33cf1d,_0xa0f9cc=_0x5946bd['in']??_0x5946bd;_0x1ad93d[_0x47c588(0x21c)]('C\x20'+R(z(_0x15fcef,_0x5a766d))+'\x20'+R(z(_0xa0f9cc,_0x5a766d))+'\x20'+R(z(_0x5946bd,_0x5a766d))),_0x1ad93d[_0x47c588(0x21c)]('Z');}return _0x1ad93d[_0x47c588(0x204)]('\x20');}function me(_0x177092,_0x40e283){const _0x235c09=_0x5c0c;let _0x3a7872=_0x177092[_0x235c09(0x1dc)][_0x235c09(0x1c3)](_0x40e079=>z(_0x40e079,_0x40e283));if(_0x3a7872[_0x235c09(0x1fc)]===0x0)return'';if(_0x3a7872['length']===0x1)return'M\x20'+R(_0x3a7872[0x0]);let _0x53466a=['M\x20'+R(_0x3a7872[0x0])];for(let _0x38c1d6=0x0;_0x38c1d6<_0x3a7872[_0x235c09(0x1fc)]-0x1;_0x38c1d6++){let _0x559d78=_0x3a7872[_0x38c1d6],_0x5ecdc5=_0x3a7872[_0x38c1d6+0x1],_0x5b0abd=_0x3a7872[_0x38c1d6-0x1]??_0x559d78,_0x35fb09=_0x3a7872[_0x38c1d6+0x2]??_0x5ecdc5,_0x14e047={'x':_0x559d78['x']+(_0x5ecdc5['x']-_0x5b0abd['x'])/0x6,'y':_0x559d78['y']+(_0x5ecdc5['y']-_0x5b0abd['y'])/0x6},_0x97b7b8={'x':_0x5ecdc5['x']-(_0x35fb09['x']-_0x559d78['x'])/0x6,'y':_0x5ecdc5['y']-(_0x35fb09['y']-_0x559d78['y'])/0x6};_0x53466a[_0x235c09(0x21c)]('C\x20'+R(_0x14e047)+'\x20'+R(_0x97b7b8)+'\x20'+R(_0x5ecdc5));}return _0x53466a[_0x235c09(0x204)]('\x20');}function he(_0x2519d2,_0x982ce3){const _0x1346cf=_0x5c0c;return _0x2519d2[_0x1346cf(0x1f8)]==='pen'?pe(_0x2519d2,_0x982ce3):me(_0x2519d2,_0x982ce3);}function ge(_0x473e9f,_0x4a1fc8){const _0x10df6f=_0x5c0c;return _0x4a1fc8!=null&&_0x4a1fc8['color']?_0x4a1fc8[_0x10df6f(0x1eb)]:_0x473e9f[_0x10df6f(0x1f8)]==='pen'?'#f54a45':_0x473e9f['color'];}function _e(_0x4b8a58,_0x523e3a){const _0x2efc78=_0x5c0c;return(_0x523e3a==null?void 0x0:_0x523e3a[_0x2efc78(0x20f)])===void 0x0?_0x4b8a58['kind']===_0x2efc78(0x1ef)?0x2:_0x4b8a58[_0x2efc78(0x20f)]:_0x523e3a[_0x2efc78(0x20f)];}function ve(_0x483f0b,_0x2dada5){const _0x332604=_0x5c0c;return(_0x2dada5==null?void 0x0:_0x2dada5[_0x332604(0x1d9)])===void 0x0?_0x483f0b['kind']===_0x332604(0x1ef)?void 0x0:_0x483f0b['opacity']:_0x2dada5[_0x332604(0x1d9)];}function ye(_0x286a18,_0x999a6b){const _0xc257a7=_0x5c0c;let _0x519e22=G(_0x286a18),_0x273157=he(_0x286a18,{'x':_0x519e22['left'],'y':_0x519e22[_0xc257a7(0x1c9)]}),_0xa00663=_0x286a18[_0xc257a7(0x1f8)]==='pen'&&_0x286a18[_0xc257a7(0x209)],_0x2c8a62=_0x999a6b==null?void 0x0:_0x999a6b['fillColor'];return{'shapeType':_0x1d1c53[_0xc257a7(0x216)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x519e22[_0xc257a7(0x20f)],'h':_0x519e22[_0xc257a7(0x1e3)],'fill':_0xa00663?_0xc257a7(0x1f9):_0xc257a7(0x214),'stroke':!0x0,'data':_0x273157,'dataArray':be(_0x286a18,{'x':_0x519e22[_0xc257a7(0x1db)],'y':_0x519e22[_0xc257a7(0x1c9)]})}]},'fill':_0xa00663&&_0x2c8a62?{'color':_0x2c8a62,'fillType':_0x38ff12['SolidFill']}:{'fillType':_0x38ff12[_0xc257a7(0x1e4)]},'stroke':{'color':ge(_0x286a18,_0x999a6b),'width':_e(_0x286a18,_0x999a6b),'opacity':ve(_0x286a18,_0x999a6b),'lineStrokeType':_0x5adb7e[_0xc257a7(0x207)],'capType':_0x123408['Round'],'lineJoinType':_0xbfe652[_0xc257a7(0x1c0)]}};}function K(_0x2f81b0,_0x21807e){return{'x':_0x2f81b0['x']-_0x21807e['x'],'y':_0x2f81b0['y']-_0x21807e['y']};}function be(_0x3a8b8c,_0x370cbc){const _0x19060f=_0x5c0c;if(_0x3a8b8c[_0x19060f(0x1f8)]===_0x19060f(0x1ef)){let _0x26a4de=_0x3a8b8c[_0x19060f(0x201)];if(_0x26a4de[_0x19060f(0x1fc)]===0x0)return[];let _0x1336c9=K(_0x26a4de[0x0],_0x370cbc),_0x4774d9=[{'command':'M','points':[_0x1336c9['x'],_0x1336c9['y']]}];for(let _0x10ecb6=0x1;_0x10ecb6<_0x26a4de[_0x19060f(0x1fc)];_0x10ecb6++){let _0x2f35a9=_0x26a4de[_0x10ecb6-0x1],_0x5455e9=_0x26a4de[_0x10ecb6],_0x1039e3=K(_0x2f35a9['out']??_0x2f35a9,_0x370cbc),_0x567d62=K(_0x5455e9['in']??_0x5455e9,_0x370cbc),_0x1c9937=K(_0x5455e9,_0x370cbc);_0x4774d9[_0x19060f(0x21c)]({'command':'C','points':[_0x1039e3['x'],_0x1039e3['y'],_0x567d62['x'],_0x567d62['y'],_0x1c9937['x'],_0x1c9937['y']]});}if(_0x3a8b8c[_0x19060f(0x209)]&&_0x26a4de['length']>0x1){let _0x5b2b3b=_0x26a4de[_0x26a4de['length']-0x1],_0x50853a=_0x26a4de[0x0],_0x54a256=K(_0x5b2b3b[_0x19060f(0x1cd)]??_0x5b2b3b,_0x370cbc),_0x44d435=K(_0x50853a['in']??_0x50853a,_0x370cbc),_0x3dace3=K(_0x50853a,_0x370cbc);_0x4774d9['push']({'command':'C','points':[_0x54a256['x'],_0x54a256['y'],_0x44d435['x'],_0x44d435['y'],_0x3dace3['x'],_0x3dace3['y']]}),_0x4774d9[_0x19060f(0x21c)]({'command':'z','points':[]});}return _0x4774d9;}let _0x3de465=_0x3a8b8c[_0x19060f(0x1dc)]['map'](_0x45bb66=>K(_0x45bb66,_0x370cbc));if(_0x3de465[_0x19060f(0x1fc)]===0x0)return[];let _0x4b0d78=[{'command':'M','points':[_0x3de465[0x0]['x'],_0x3de465[0x0]['y']]}];for(let _0x171c78=0x0;_0x171c78<_0x3de465[_0x19060f(0x1fc)]-0x1;_0x171c78++){let _0x51bfb7=_0x3de465[_0x171c78],_0x977006=_0x3de465[_0x171c78+0x1],_0x5ccf74=_0x3de465[_0x171c78-0x1]??_0x51bfb7,_0x538cb1=_0x3de465[_0x171c78+0x2]??_0x977006,_0x3726b7={'x':_0x51bfb7['x']+(_0x977006['x']-_0x5ccf74['x'])/0x6,'y':_0x51bfb7['y']+(_0x977006['y']-_0x5ccf74['y'])/0x6},_0x6ecdc4={'x':_0x977006['x']-(_0x538cb1['x']-_0x51bfb7['x'])/0x6,'y':_0x977006['y']-(_0x538cb1['y']-_0x51bfb7['y'])/0x6};_0x4b0d78[_0x19060f(0x21c)]({'command':'C','points':[_0x3726b7['x'],_0x3726b7['y'],_0x6ecdc4['x'],_0x6ecdc4['y'],_0x977006['x'],_0x977006['y']]});}return _0x4b0d78;}function xe(_0x2f3c14){const _0x86905=_0x5c0c;let {model:_0x3aaf40,sourceModel:_0x578b8b=_0x3aaf40,style:_0xd8ffd2}=_0x2f3c14,_0x336aa3=_0x2f3c14[_0x86905(0x1e8)]??_0x3aaf40['kind'],_0x39456b=G(_0x3aaf40),_0x42caeb=_0x3aaf40[_0x86905(0x1f8)]==='pen'&&_0x336aa3!==_0x86905(0x1ef)?_0x3aaf40:void 0x0;return{'transform':{..._0x39456b,'rotation':0x0},'shapeData':ye(_0x3aaf40,_0xd8ffd2),'ink':{'version':0x1,'tool':_0x336aa3,'sourceModel':_0x578b8b,..._0x42caeb?{'editModel':_0x42caeb}:{},'normalizedBounds':_0x39456b}};}var Se=_0x262661(0x1df),Ce=_0x262661(0x1d1);function q(_0x2f17e4){'@babel/helpers - typeof';const _0x2b3ea2=_0x262661;return q=typeof Symbol==_0x2b3ea2(0x1bf)&&typeof Symbol[_0x2b3ea2(0x1d8)]==_0x2b3ea2(0x1bd)?function(_0x15d5cd){return typeof _0x15d5cd;}:function(_0x36b1e5){const _0x5c61fa=_0x2b3ea2;return _0x36b1e5&&typeof Symbol==_0x5c61fa(0x1bf)&&_0x36b1e5[_0x5c61fa(0x1ea)]===Symbol&&_0x36b1e5!==Symbol[_0x5c61fa(0x202)]?_0x5c61fa(0x1bd):typeof _0x36b1e5;},q(_0x2f17e4);}function we(_0x5c92bb,_0x2d128b){const _0x1d0aba=_0x262661;if(q(_0x5c92bb)!=_0x1d0aba(0x1d7)||!_0x5c92bb)return _0x5c92bb;var _0x5b53eb=_0x5c92bb[Symbol[_0x1d0aba(0x218)]];if(_0x5b53eb!==void 0x0){var _0x18a871=_0x5b53eb['call'](_0x5c92bb,_0x2d128b||_0x1d0aba(0x1f2));if(q(_0x18a871)!=_0x1d0aba(0x1d7))return _0x18a871;throw TypeError(_0x1d0aba(0x20b));}return(_0x2d128b==='string'?String:Number)(_0x5c92bb);}function J(_0x189e1e){const _0x24579c=_0x262661;var _0x5a31d9=we(_0x189e1e,_0x24579c(0x208));return q(_0x5a31d9)==_0x24579c(0x1bd)?_0x5a31d9:_0x5a31d9+'';}function Y(_0x5a7cac,_0xf7dde3,_0x10d66e){return(_0xf7dde3=J(_0xf7dde3))in _0x5a7cac?Object['defineProperty'](_0x5a7cac,_0xf7dde3,{'value':_0x10d66e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5a7cac[_0xf7dde3]=_0x10d66e,_0x5a7cac;}const X=_0xcd3cc4('ink.host-adapter.service');var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x262661(0x210)](_0x26b700){const _0x13834a=_0x262661;return this[_0x13834a(0x1de)][_0x13834a(0x21c)](_0x26b700),_0x6c9088(()=>{const _0x588e31=_0x13834a;let _0x170bc7=this[_0x588e31(0x1de)]['indexOf'](_0x26b700);_0x170bc7>=0x0&&this[_0x588e31(0x1de)][_0x588e31(0x213)](_0x170bc7,0x1);});}[_0x262661(0x1f6)](_0x269808){for(let _0x3316ae of this['_adapters'])if(_0x3316ae['beginInkMode'](_0x269808))return!0x0;return!0x1;}async[_0x262661(0x1ce)](_0x56743e){const _0x56b79b=_0x262661;for(let _0x57ed09 of this[_0x56b79b(0x1de)])if(_0x57ed09['createCustomShape']&&await _0x57ed09[_0x56b79b(0x1ce)](_0x56743e))return!0x0;return!0x1;}};const Ee={'id':_0x262661(0x1fb),'type':_0x5f3ab0[_0x262661(0x1e1)],'handler':(_0x4aa9bc,_0x1771e2)=>_0x1771e2?_0x4aa9bc[_0x262661(0x1f4)](X)[_0x262661(0x1f6)](_0x1771e2):!0x1},Z={};function Q(_0x2c4daf,_0x257f05){return function(_0x3c23ae,_0x55d34b){_0x257f05(_0x3c23ae,_0x55d34b,_0x2c4daf);};}function De(_0xa98d20,_0x35ca01,_0x6adbc8,_0x41a38a){const _0x36b646=_0x262661;var _0xcd28a6=arguments[_0x36b646(0x1fc)],_0x3f69ea=_0xcd28a6<0x3?_0x35ca01:_0x41a38a===null?_0x41a38a=Object['getOwnPropertyDescriptor'](_0x35ca01,_0x6adbc8):_0x41a38a,_0x2bb95a;if(typeof Reflect==_0x36b646(0x1d7)&&typeof Reflect['decorate']==_0x36b646(0x1bf))_0x3f69ea=Reflect[_0x36b646(0x1e0)](_0xa98d20,_0x35ca01,_0x6adbc8,_0x41a38a);else{for(var _0x2c5c7d=_0xa98d20[_0x36b646(0x1fc)]-0x1;_0x2c5c7d>=0x0;_0x2c5c7d--)(_0x2bb95a=_0xa98d20[_0x2c5c7d])&&(_0x3f69ea=(_0xcd28a6<0x3?_0x2bb95a(_0x3f69ea):_0xcd28a6>0x3?_0x2bb95a(_0x35ca01,_0x6adbc8,_0x3f69ea):_0x2bb95a(_0x35ca01,_0x6adbc8))||_0x3f69ea);}return _0xcd28a6>0x3&&_0x3f69ea&&Object[_0x36b646(0x211)](_0x35ca01,_0x6adbc8,_0x3f69ea),_0x3f69ea;}let $=class extends _0xe68393{constructor(_0x5cff54=Z,_0x3b9363,_0x3990ea,_0x38a982){const _0x1df77f=_0x262661;super(),this[_0x1df77f(0x1cb)]=_0x5cff54,this[_0x1df77f(0x1c8)]=_0x3b9363,this[_0x1df77f(0x217)]=_0x3990ea,this['_configService']=_0x38a982;let {..._0x398c78}=_0x1e52ff({},Z,this[_0x1df77f(0x1cb)]);this['_configService'][_0x1df77f(0x200)](_0x1df77f(0x203),_0x398c78);}[_0x262661(0x21b)](){const _0x188dff=_0x262661;[[X,{'useClass':Te}]][_0x188dff(0x212)](_0x2364e3=>this[_0x188dff(0x1c8)][_0x188dff(0x1be)](_0x2364e3)),this['disposeWithMe'](this[_0x188dff(0x217)][_0x188dff(0x1f0)](Ee));}};Y($,_0x262661(0x1f3),_0x262661(0x1e6)),Y($,_0x262661(0x1c2),Se),Y($,_0x262661(0x1fa),Ce),Y($,_0x262661(0x1d3),_0x192c47[_0x262661(0x20d)]),$=De([_0x1618e7(_0x129a17),Q(0x1,_0x336086(_0x4ecae0)),Q(0x2,_0x5d7d4c),Q(0x3,_0x386cd3)],$);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 _0x2cbd(_0x57acf2,_0x2efb16){_0x57acf2=_0x57acf2-0x1c5;const _0x26dde1=_0x26dd();let _0x2cbdc1=_0x26dde1[_0x57acf2];return _0x2cbdc1;}function _0x26dd(){const _0x559c06=['Shape','deepClone','@univerjs/core/facade','extend','642660GOCXmk','type','isArray','473SuQUXd','@univerjs-pro/boards','shapeData','length','generateRandomId','anchor','isFinite','custom','highlighter','6201kFqmbQ','filter','function','trim','transform','buildInkCustomShapePayload','points','findElements','2630iXwEqg','smooth','defineProperty','3mCheik','UniverProInkFacade','@univerjs/core','exports','UniverProInk','pen','opacity','toStringTag','BoardInkPointType','Tools','UniverCoreFacade','FEnum','insertIndex','sourceModel','every','453116JKxDZz','style','BoardElementType','10975mFPPBv','model','UniverProBoards','ink','Module','laneId','105RbqlqJ','430881TziIkZ','anchors','tool','out','UniverProBoardsFacade','kind','UniverCore','width','_addElement','202968ZTKMBb','222RDUroi','FBoard','78924QIsmLu','version','pressure','BoardInkTool','has','closed','object','parentId'];_0x26dd=function(){return _0x559c06;};return _0x26dd();}(function(_0x39c771,_0x45d110){const _0x346e94=_0x2cbd,_0x5778e4=_0x39c771();while(!![]){try{const _0x1a7b9c=parseInt(_0x346e94(0x1dd))/0x1+-parseInt(_0x346e94(0x1f5))/0x2*(-parseInt(_0x346e94(0x20c))/0x3)+-parseInt(_0x346e94(0x1d3))/0x4+parseInt(_0x346e94(0x1d6))/0x5*(parseInt(_0x346e94(0x1e7))/0x6)+-parseInt(_0x346e94(0x1dc))/0x7*(parseInt(_0x346e94(0x1e6))/0x8)+parseInt(_0x346e94(0x201))/0x9*(parseInt(_0x346e94(0x209))/0xa)+-parseInt(_0x346e94(0x1f8))/0xb*(parseInt(_0x346e94(0x1e9))/0xc);if(_0x1a7b9c===_0x45d110)break;else _0x5778e4['push'](_0x5778e4['shift']());}catch(_0x169be4){_0x5778e4['push'](_0x5778e4['shift']());}}}(_0x26dd,0x3a19a),function(_0x24f7e3,_0x239bc9){const _0x1ef8ab=_0x2cbd;typeof exports=='object'&&typeof module<'u'?_0x239bc9(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x1ef8ab(0x203)&&define['amd']?define([_0x1ef8ab(0x1c7),_0x1ef8ab(0x1f9),'@univerjs-pro/boards/facade','@univerjs-pro/ink',_0x1ef8ab(0x1c6),_0x1ef8ab(0x1f3)],_0x239bc9):(_0x24f7e3=typeof globalThis<'u'?globalThis:_0x24f7e3||self,_0x239bc9(_0x24f7e3[_0x1ef8ab(0x1c5)]={},_0x24f7e3[_0x1ef8ab(0x1d8)],_0x24f7e3[_0x1ef8ab(0x1e1)],_0x24f7e3[_0x1ef8ab(0x1c8)],_0x24f7e3[_0x1ef8ab(0x1e3)],_0x24f7e3[_0x1ef8ab(0x1ce)]));}(this,function(_0x2de97e,_0x408bb6,_0x52becd,_0x202ed9,_0x295017,_0x424d67){const _0x1df268=_0x2cbd;Object[_0x1df268(0x20b)](_0x2de97e,Symbol[_0x1df268(0x1cb)],{'value':_0x1df268(0x1da)});var _0x49ad66=class extends _0x52becd[_0x1df268(0x1e8)]{['insertInk'](_0x9b9c11){const _0x5e31f7=_0x1df268;let _0x3373bc=_0x3f2f73(_0x9b9c11);return _0x3373bc&&this[_0x5e31f7(0x1e5)](_0x3373bc,{'insertIndex':_0x9b9c11[_0x5e31f7(0x1d0)]})?_0x3373bc:null;}['getInks'](){const _0x1adfd8=_0x1df268;return this[_0x1adfd8(0x208)]({'elementType':_0x408bb6['BoardElementType'][_0x1adfd8(0x1f1)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x1adfd8(0x202)](_0x41b5ba);}};function _0x3f2f73(_0x1f51ee,_0x582e4c){const _0x1c0444=_0x1df268;if(!_0x5d9319(_0x1f51ee[_0x1c0444(0x1d7)])||_0x1f51ee[_0x1c0444(0x1d1)]!==void 0x0&&!_0x5d9319(_0x1f51ee[_0x1c0444(0x1d1)])||!_0x26d723(_0x1f51ee[_0x1c0444(0x1d4)]))return null;let _0x14992b=_0x1f51ee[_0x1c0444(0x1f0)]??(_0x582e4c==null?void 0x0:_0x582e4c[_0x1c0444(0x1f0)]),_0x11b2f9=_0x295017['Tools'][_0x1c0444(0x1f2)](_0x1f51ee['model']),_0xc8aa58=(0x0,_0x202ed9[_0x1c0444(0x206)])({'model':_0x11b2f9,'style':_0x1f51ee[_0x1c0444(0x1d4)],'tool':_0x1f51ee[_0x1c0444(0x1df)],'sourceModel':_0x1f51ee['sourceModel']?_0x295017[_0x1c0444(0x1cd)][_0x1c0444(0x1f2)](_0x1f51ee[_0x1c0444(0x1d1)]):_0x11b2f9}),_0x4f8654=_0x3dfcf3(_0x582e4c==null?void 0x0:_0x582e4c[_0x1c0444(0x1ff)]);return{'id':(_0x582e4c==null?void 0x0:_0x582e4c['id'])??_0x1f51ee['id']??(0x0,_0x295017[_0x1c0444(0x1fc)])(0x6),'type':_0x408bb6[_0x1c0444(0x1d5)][_0x1c0444(0x1f1)],'transform':_0xc8aa58[_0x1c0444(0x205)],'shapeData':_0xc8aa58[_0x1c0444(0x1fa)],'parentId':_0x14992b??void 0x0,'laneId':_0x1f51ee['laneId']===void 0x0?_0x582e4c==null?void 0x0:_0x582e4c[_0x1c0444(0x1db)]:_0x1f51ee[_0x1c0444(0x1db)],'custom':{..._0x4f8654,'ink':_0xc8aa58[_0x1c0444(0x1d9)]}};}function _0x1edf61(_0x187f72){const _0xa387ad=_0x1df268;return Number[_0xa387ad(0x1fe)](_0x187f72['x'])&&Number['isFinite'](_0x187f72['y']);}function _0x5d9319(_0x1f24b1){const _0x69e1d2=_0x1df268;if(_0x1f24b1[_0x69e1d2(0x1e2)]===_0x69e1d2(0x1c9)){let _0x35c9d3=new Set();return _0x1f24b1[_0x69e1d2(0x1de)][_0x69e1d2(0x1fb)]>=(_0x1f24b1[_0x69e1d2(0x1ee)]?0x3:0x2)&&_0x1f24b1['anchors'][_0x69e1d2(0x1d2)](_0x31f0e9=>{const _0x32bca9=_0x69e1d2;let _0x562a79=_0x31f0e9['id'][_0x32bca9(0x204)]()[_0x32bca9(0x1fb)]>0x0&&!_0x35c9d3[_0x32bca9(0x1ed)](_0x31f0e9['id'])&&_0x1edf61(_0x31f0e9)&&(!_0x31f0e9['in']||_0x1edf61(_0x31f0e9['in']))&&(!_0x31f0e9[_0x32bca9(0x1e0)]||_0x1edf61(_0x31f0e9['out']));return _0x35c9d3['add'](_0x31f0e9['id']),_0x562a79;});}return _0x1f24b1[_0x69e1d2(0x207)][_0x69e1d2(0x1fb)]>=0x2&&_0x1f24b1['points'][_0x69e1d2(0x1d2)](_0x2a1785=>_0x1edf61(_0x2a1785)&&Number['isFinite'](_0x2a1785['t'])&&(_0x2a1785[_0x69e1d2(0x1eb)]===void 0x0||Number['isFinite'](_0x2a1785[_0x69e1d2(0x1eb)])))&&Number[_0x69e1d2(0x1fe)](_0x1f24b1[_0x69e1d2(0x1e4)])&&_0x1f24b1[_0x69e1d2(0x1e4)]>0x0&&Number[_0x69e1d2(0x1fe)](_0x1f24b1[_0x69e1d2(0x1ca)])&&_0x1f24b1[_0x69e1d2(0x1ca)]>=0x0&&_0x1f24b1[_0x69e1d2(0x1ca)]<=0x1;}function _0x26d723(_0x511df1){const _0x31b442=_0x1df268;return _0x511df1===void 0x0||(_0x511df1[_0x31b442(0x1e4)]===void 0x0||Number['isFinite'](_0x511df1[_0x31b442(0x1e4)])&&_0x511df1[_0x31b442(0x1e4)]>0x0)&&(_0x511df1[_0x31b442(0x1ca)]===void 0x0||Number['isFinite'](_0x511df1[_0x31b442(0x1ca)])&&_0x511df1['opacity']>=0x0&&_0x511df1[_0x31b442(0x1ca)]<=0x1);}function _0x3dfcf3(_0xb5d9f0){return _0xb5d9f0&&typeof _0xb5d9f0=='object'&&!Array['isArray'](_0xb5d9f0)?_0xb5d9f0:{};}function _0x3ce0f7(_0x1cdc8f){const _0x1f2176=_0x1df268;let _0x24974b=_0x3dfcf3(_0x1cdc8f[_0x1f2176(0x1ff)])[_0x1f2176(0x1d9)];if(!_0x24974b||typeof _0x24974b!=_0x1f2176(0x1ef)||Array[_0x1f2176(0x1f7)](_0x24974b))return null;let _0x38cb7c=_0x24974b;return _0x38cb7c[_0x1f2176(0x1ea)]===0x1&&_0x38cb7c[_0x1f2176(0x1d1)]&&typeof _0x38cb7c[_0x1f2176(0x1d1)]==_0x1f2176(0x1ef)?_0x38cb7c:null;}function _0x41b5ba(_0x11b5bc){const _0x5b4078=_0x1df268;return _0x11b5bc[_0x5b4078(0x1f6)]===_0x408bb6[_0x5b4078(0x1d5)][_0x5b4078(0x1f1)]&&!!_0x3ce0f7(_0x11b5bc);}_0x52becd[_0x1df268(0x1e8)][_0x1df268(0x1f4)](_0x49ad66);let _0x34ba9b={'Pen':'pen','Brush':'brush','Highlighter':_0x1df268(0x200)},_0x1f1b4c={'Corner':'corner','Smooth':_0x1df268(0x20a),'Symmetric':'symmetric','Free':'free'},_0xf449c1={'Anchor':_0x1df268(0x1fd),'In':'in','Out':'out'};var _0x3d295a=class extends _0x424d67['FEnum']{get[_0x1df268(0x1ec)](){return _0x34ba9b;}get[_0x1df268(0x1cc)](){return _0x1f1b4c;}get['BoardInkHandleKind'](){return _0xf449c1;}};_0x424d67[_0x1df268(0x1cf)]['extend'](_0x3d295a),_0x2de97e['BoardInkHandleKind']=_0xf449c1,_0x2de97e[_0x1df268(0x1cc)]=_0x1f1b4c,_0x2de97e['BoardInkTool']=_0x34ba9b;}));
1
+ function _0x16e4(_0xf8d99c,_0xd0c44f){_0xf8d99c=_0xf8d99c-0x88;const _0x4693ba=_0x4693();let _0x16e4fb=_0x4693ba[_0xf8d99c];return _0x16e4fb;}(function(_0xc3080d,_0x1dd126){const _0x278463=_0x16e4,_0x39764b=_0xc3080d();while(!![]){try{const _0x44960a=-parseInt(_0x278463(0x96))/0x1*(parseInt(_0x278463(0xa7))/0x2)+-parseInt(_0x278463(0xc9))/0x3*(-parseInt(_0x278463(0xb7))/0x4)+-parseInt(_0x278463(0xc1))/0x5+parseInt(_0x278463(0xbe))/0x6*(-parseInt(_0x278463(0xb3))/0x7)+parseInt(_0x278463(0xc5))/0x8*(-parseInt(_0x278463(0xaf))/0x9)+parseInt(_0x278463(0xbf))/0xa+parseInt(_0x278463(0xb9))/0xb;if(_0x44960a===_0x1dd126)break;else _0x39764b['push'](_0x39764b['shift']());}catch(_0x4f5b){_0x39764b['push'](_0x39764b['shift']());}}}(_0x4693,0x73ae8),function(_0x6f9a7,_0x2dac8){const _0x3f0b2f=_0x16e4;typeof exports=='object'&&typeof module<'u'?_0x2dac8(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[_0x3f0b2f(0xbc)]?define([_0x3f0b2f(0xc7),_0x3f0b2f(0x9a),_0x3f0b2f(0xae),'@univerjs-pro/ink',_0x3f0b2f(0x91),_0x3f0b2f(0xbd)],_0x2dac8):(_0x6f9a7=typeof globalThis<'u'?globalThis:_0x6f9a7||self,_0x2dac8(_0x6f9a7['UniverProInkFacade']={},_0x6f9a7[_0x3f0b2f(0xb5)],_0x6f9a7[_0x3f0b2f(0xa5)],_0x6f9a7['UniverProInk'],_0x6f9a7[_0x3f0b2f(0x9d)],_0x6f9a7[_0x3f0b2f(0xb4)]));}(this,function(_0x52da5e,_0x3d18e0,_0x1add2f,_0x5efc4f,_0x25ec2b,_0x1ae66f){const _0x448659=_0x16e4;Object[_0x448659(0xba)](_0x52da5e,Symbol['toStringTag'],{'value':_0x448659(0xc8)});var _0x2db91c=class extends _0x1add2f[_0x448659(0x8b)]{[_0x448659(0x8e)](_0x2b05f6){const _0x56f008=_0x448659;let _0x248b0b=_0x1570a4(_0x2b05f6);return _0x248b0b&&this[_0x56f008(0xa0)](_0x248b0b,{'insertIndex':_0x2b05f6[_0x56f008(0xb0)]})?_0x248b0b:null;}[_0x448659(0xa2)](){const _0x3e52f7=_0x448659;return this[_0x3e52f7(0x88)]({'elementType':_0x3d18e0[_0x3e52f7(0x92)]['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x3e52f7(0x98)](_0x4e0194);}};function _0x1570a4(_0x201a63,_0x103211){const _0xadc224=_0x448659;if(!_0x182aee(_0x201a63[_0xadc224(0x9c)])||_0x201a63['sourceModel']!==void 0x0&&!_0x182aee(_0x201a63['sourceModel'])||!_0x17ae8d(_0x201a63[_0xadc224(0xb6)]))return null;let _0x225984=_0x201a63[_0xadc224(0xcb)]??(_0x103211==null?void 0x0:_0x103211[_0xadc224(0xcb)]),_0x3dffa5=_0x25ec2b[_0xadc224(0xb2)][_0xadc224(0xc3)](_0x201a63[_0xadc224(0x9c)]),_0x66e73e=(0x0,_0x5efc4f[_0xadc224(0xa3)])({'model':_0x3dffa5,'style':_0x201a63[_0xadc224(0xb6)],'tool':_0x201a63[_0xadc224(0x8d)],'sourceModel':_0x201a63[_0xadc224(0x93)]?_0x25ec2b[_0xadc224(0xb2)][_0xadc224(0xc3)](_0x201a63[_0xadc224(0x93)]):_0x3dffa5}),_0x554fdd=_0x174acd(_0x103211==null?void 0x0:_0x103211[_0xadc224(0xaa)]);return{'id':(_0x103211==null?void 0x0:_0x103211['id'])??_0x201a63['id']??(0x0,_0x25ec2b['generateRandomId'])(0x6),'type':_0x3d18e0['BoardElementType']['Shape'],'transform':_0x66e73e['transform'],'shapeData':_0x66e73e[_0xadc224(0x99)],'parentId':_0x225984??void 0x0,'laneId':_0x201a63[_0xadc224(0x89)]===void 0x0?_0x103211==null?void 0x0:_0x103211[_0xadc224(0x89)]:_0x201a63[_0xadc224(0x89)],'custom':{..._0x554fdd,'ink':_0x66e73e[_0xadc224(0xa6)]}};}function _0x15c597(_0x127073){const _0x1fe5f3=_0x448659;return Number['isFinite'](_0x127073['x'])&&Number[_0x1fe5f3(0xcd)](_0x127073['y']);}function _0x182aee(_0x392632){const _0x22fdee=_0x448659;if(_0x392632[_0x22fdee(0xad)]===_0x22fdee(0x95)){let _0x3d97c2=new Set();return _0x392632[_0x22fdee(0xc4)][_0x22fdee(0xb8)]>=(_0x392632[_0x22fdee(0xa1)]?0x3:0x2)&&_0x392632[_0x22fdee(0xc4)][_0x22fdee(0xab)](_0x4ea5b8=>{const _0x10af7c=_0x22fdee;let _0x31f933=_0x4ea5b8['id'][_0x10af7c(0xa4)]()[_0x10af7c(0xb8)]>0x0&&!_0x3d97c2[_0x10af7c(0x9b)](_0x4ea5b8['id'])&&_0x15c597(_0x4ea5b8)&&(!_0x4ea5b8['in']||_0x15c597(_0x4ea5b8['in']))&&(!_0x4ea5b8[_0x10af7c(0xc6)]||_0x15c597(_0x4ea5b8['out']));return _0x3d97c2[_0x10af7c(0xa8)](_0x4ea5b8['id']),_0x31f933;});}return _0x392632[_0x22fdee(0xbb)][_0x22fdee(0xb8)]>=0x2&&_0x392632[_0x22fdee(0xbb)][_0x22fdee(0xab)](_0x277326=>_0x15c597(_0x277326)&&Number[_0x22fdee(0xcd)](_0x277326['t'])&&(_0x277326['pressure']===void 0x0||Number[_0x22fdee(0xcd)](_0x277326[_0x22fdee(0x97)])))&&Number[_0x22fdee(0xcd)](_0x392632[_0x22fdee(0xcf)])&&_0x392632['width']>0x0&&Number[_0x22fdee(0xcd)](_0x392632['opacity'])&&_0x392632[_0x22fdee(0xca)]>=0x0&&_0x392632['opacity']<=0x1;}function _0x17ae8d(_0x205431){const _0x39285c=_0x448659;return _0x205431===void 0x0||(_0x205431[_0x39285c(0xcf)]===void 0x0||Number['isFinite'](_0x205431['width'])&&_0x205431['width']>0x0)&&(_0x205431['opacity']===void 0x0||Number[_0x39285c(0xcd)](_0x205431[_0x39285c(0xca)])&&_0x205431[_0x39285c(0xca)]>=0x0&&_0x205431[_0x39285c(0xca)]<=0x1);}function _0x174acd(_0x435e02){return _0x435e02&&typeof _0x435e02=='object'&&!Array['isArray'](_0x435e02)?_0x435e02:{};}function _0x2265f3(_0x5bc128){const _0x304520=_0x448659;let _0xb2dc76=_0x174acd(_0x5bc128[_0x304520(0xaa)])[_0x304520(0xa6)];if(!_0xb2dc76||typeof _0xb2dc76!=_0x304520(0x8c)||Array[_0x304520(0xcc)](_0xb2dc76))return null;let _0x31268e=_0xb2dc76;return _0x31268e['version']===0x1&&_0x31268e[_0x304520(0x93)]&&typeof _0x31268e[_0x304520(0x93)]==_0x304520(0x8c)?_0x31268e:null;}function _0x4e0194(_0xe5e39b){const _0x4cdcdb=_0x448659;return _0xe5e39b[_0x4cdcdb(0x94)]===_0x3d18e0[_0x4cdcdb(0x92)][_0x4cdcdb(0xc0)]&&!!_0x2265f3(_0xe5e39b);}_0x1add2f['FBoard'][_0x448659(0x8a)](_0x2db91c);let _0x4dd779={'Pen':'pen','Brush':_0x448659(0xac),'Highlighter':_0x448659(0xa9)},_0x2690f7={'Corner':_0x448659(0x9f),'Smooth':_0x448659(0x9e),'Symmetric':_0x448659(0xb1),'Free':'free'},_0x1ffe8c={'Anchor':_0x448659(0xc2),'In':'in','Out':_0x448659(0xc6)};var _0x21b847=class extends _0x1ae66f['FEnum']{get['BoardInkTool'](){return _0x4dd779;}get['BoardInkPointType'](){return _0x2690f7;}get[_0x448659(0x90)](){return _0x1ffe8c;}};_0x1ae66f[_0x448659(0xce)]['extend'](_0x21b847),_0x52da5e[_0x448659(0x90)]=_0x1ffe8c,_0x52da5e['BoardInkPointType']=_0x2690f7,_0x52da5e[_0x448659(0x8f)]=_0x4dd779;}));function _0x4693(){const _0x3b1c12=['1708469VcKyrU','UniverCoreFacade','UniverProBoards','style','957788vqXNMr','length','687753plEera','defineProperty','points','amd','@univerjs/core/facade','6uOqxHt','9080370ivkgqs','Shape','693415EYZbuk','anchor','deepClone','anchors','39488lpDQfU','out','exports','Module','9UrtlXs','opacity','parentId','isArray','isFinite','FEnum','width','findElements','laneId','extend','FBoard','object','tool','insertInk','BoardInkTool','BoardInkHandleKind','@univerjs/core','BoardElementType','sourceModel','type','pen','69RPXWZu','pressure','filter','shapeData','@univerjs-pro/boards','has','model','UniverCore','smooth','corner','_addElement','closed','getInks','buildInkCustomShapePayload','trim','UniverProBoardsFacade','ink','17830wlMGEf','add','highlighter','custom','every','brush','kind','@univerjs-pro/boards/facade','396leXnQk','insertIndex','symmetric','Tools'];_0x4693=function(){return _0x3b1c12;};return _0x4693();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x25ea(){const _0x5b27ee=['function','697815hSGEAE','anchors','248hmujvX','onStarting','merge','@univerjs-pro/ink','pointType','UniverLicensePlugin','Round','corner','setInkPenAnchorPointType','version','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','tolerance','left','packageName','anchor','forEach','free','@univerjs-pro/engine-shape','iterator','find','none','moveInkPenAnchorPoint','Module','2519582CrFgMz','SolidFill','createCustomShape','4683VBVOIw','color','findClosestInkPenHandle','min','out','max','ink.host-adapter.service','1151094OKpALf','UniverProLicense','distance','endIndex','symbol','findIndex','ShapeLineJoinEnum','_injector','1.0.0-rc.0','Injector','createIdentifier','UniverInkPlugin','2708VfOFUe','norm','amd','pen','691470ZVURNB','defineProperty','cycleInkPenAnchorPointType','registerCommand','ShapeLineCapEnum','registerAdapter','indexOf','Rect','Plugin','slice','map','103439hfBMHL','call','Inject','ink-centerline-','start','kind','points','convertBrushModelToPenModel','pluginName','push','symmetric','disposeWithMe','getOwnPropertyDescriptor','#f54a45','_commandService','UniverProInk','abs','constructor','right','getInkPenPreviewModel','object','IConfigService','decorate','add','createId','join','point','splice','height','closed','type','sqrt','width','_config','ShapeLineTypeEnum','toStringTag','buildInkCustomShapePayload','length','OPERATION','startIndex','findClosestInkPenSegment','getInkModelBounds','get','ICommandService','_adapters','ink.config','ShapeFillEnum','setConfig','DependentOn','default','top','end','ratio','opacity','smooth','segmentIndex','14094747brjWAX','IInkHostAdapterService','beginInkMode','hypot','string','anchorId','ink.operation.start'];_0x25ea=function(){return _0x5b27ee;};return _0x25ea();}function _0x3ef5(_0x2d0fef,_0x2c4234){_0x2d0fef=_0x2d0fef-0xb1;const _0x25eac8=_0x25ea();let _0x3ef5dc=_0x25eac8[_0x2d0fef];return _0x3ef5dc;}(function(_0xa8173a,_0x1c2f4d){const _0x3fe469=_0x3ef5,_0x4e9840=_0xa8173a();while(!![]){try{const _0x34f915=-parseInt(_0x3fe469(0x115))/0x1+parseInt(_0x3fe469(0x12e))/0x2+-parseInt(_0x3fe469(0xb3))/0x3*(parseInt(_0x3fe469(0xc6))/0x4)+parseInt(_0x3fe469(0xca))/0x5+parseInt(_0x3fe469(0xba))/0x6+parseInt(_0x3fe469(0xd5))/0x7*(-parseInt(_0x3fe469(0x117))/0x8)+parseInt(_0x3fe469(0x10d))/0x9;if(_0x34f915===_0x1c2f4d)break;else _0x4e9840['push'](_0x4e9840['shift']());}catch(_0x5a7f58){_0x4e9840['push'](_0x4e9840['shift']());}}}(_0x25ea,0xe64d6),function(_0x4c31f2,_0x5bf5e9){const _0x314bbd=_0x3ef5;typeof exports==_0x314bbd(0xe9)&&typeof module<'u'?_0x5bf5e9(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x314bbd(0x114)&&define[_0x314bbd(0xc8)]?define(['exports',_0x314bbd(0x128),'@univerjs-pro/license','@univerjs/core'],_0x5bf5e9):(_0x4c31f2=typeof globalThis<'u'?globalThis:_0x4c31f2||self,_0x5bf5e9(_0x4c31f2[_0x314bbd(0xe4)]={},_0x4c31f2['UniverProEngineShape'],_0x4c31f2[_0x314bbd(0xbb)],_0x4c31f2['UniverCore']));}(this,function(_0x22a964,_0x1c7ef5,_0x24b977,_0x3fd204){const _0x4914aa=_0x3ef5;Object['defineProperty'](_0x22a964,Symbol[_0x4914aa(0xf8)],{'value':_0x4914aa(0x12d)});let _0x1378f5=0.0001;function _0x1a6b37(_0x111484){return{'x':_0x111484['x'],'y':_0x111484['y']};}function _0x5108c2(_0x3a7949){const _0x26e443=_0x4914aa;return{..._0x3a7949,'in':_0x3a7949['in']?_0x1a6b37(_0x3a7949['in']):void 0x0,'out':_0x3a7949[_0x26e443(0xb7)]?_0x1a6b37(_0x3a7949['out']):void 0x0};}function _0x20d180(_0x334932){const _0x1b05f1=_0x4914aa;return{'kind':'pen','closed':_0x334932[_0x1b05f1(0xf2)],'anchors':_0x334932[_0x1b05f1(0x116)][_0x1b05f1(0xd4)](_0x5108c2)};}function _0x3306e7(_0x407e7d,_0x38ecec,_0x55d80c){return{'x':_0x407e7d['x']+(_0x38ecec['x']-_0x407e7d['x'])*_0x55d80c,'y':_0x407e7d['y']+(_0x38ecec['y']-_0x407e7d['y'])*_0x55d80c};}function _0x2e8bc9(_0x555819,_0x32dda8){const _0x5bd4b1=_0x4914aa;return Math[_0x5bd4b1(0x110)](_0x555819['x']-_0x32dda8['x'],_0x555819['y']-_0x32dda8['y']);}function _0x448b51(_0x10fe0f){const _0x26393b=_0x4914aa;let _0x5122a0=Math[_0x26393b(0x110)](_0x10fe0f['x'],_0x10fe0f['y']);return _0x5122a0<_0x1378f5?{'x':0x1,'y':0x0}:{'x':_0x10fe0f['x']/_0x5122a0,'y':_0x10fe0f['y']/_0x5122a0};}function _0x3f56c3(_0x50ba13,_0x4fb38a,_0x12685f=_0x2e8bc9(_0x50ba13,_0x4fb38a)){let _0x25fa85=_0x448b51({'x':_0x50ba13['x']-_0x4fb38a['x'],'y':_0x50ba13['y']-_0x4fb38a['y']});return{'x':_0x50ba13['x']+_0x25fa85['x']*_0x12685f,'y':_0x50ba13['y']+_0x25fa85['y']*_0x12685f};}function _0x3b8076(_0x44a4df,_0x4804cf){const _0xa3a6d6=_0x4914aa;let {anchors:_0xa97a85}=_0x44a4df;return _0xa97a85['length']<0x2||_0x4804cf<0x0?null:_0x4804cf<_0xa97a85[_0xa3a6d6(0xfa)]-0x1?{'startIndex':_0x4804cf,'endIndex':_0x4804cf+0x1,'start':_0xa97a85[_0x4804cf],'end':_0xa97a85[_0x4804cf+0x1]}:_0x44a4df[_0xa3a6d6(0xf2)]&&_0x4804cf===_0xa97a85[_0xa3a6d6(0xfa)]-0x1?{'startIndex':_0xa97a85['length']-0x1,'endIndex':0x0,'start':_0xa97a85[_0xa97a85[_0xa3a6d6(0xfa)]-0x1],'end':_0xa97a85[0x0]}:null;}function _0x34b386(_0x2f8be6,_0x46395a){const _0x5bc609=_0x4914aa;let _0x445da8=_0x3b8076(_0x2f8be6,_0x46395a);return _0x445da8?[_0x445da8['start'],_0x445da8[_0x5bc609(0xd9)][_0x5bc609(0xb7)]??_0x445da8[_0x5bc609(0xd9)],_0x445da8['end']['in']??_0x445da8[_0x5bc609(0x108)],_0x445da8[_0x5bc609(0x108)]]:null;}function _0x31a171(_0x1ad97a,_0x4fbc7b){const _0x1ea1e8=_0x4914aa;return _0x4fbc7b===_0x1ea1e8(0x125)?_0x1ad97a:_0x1ad97a[_0x4fbc7b]??null;}function _0x106664(_0x103387,_0x265e95,_0xa269fa){const _0x1223ac=_0x4914aa;return _0xa269fa===_0x1223ac(0x125)||_0x103387[_0x1223ac(0xf2)]?!0x0:_0xa269fa==='in'?_0x265e95>0x0:_0x265e95<_0x103387[_0x1223ac(0x116)][_0x1223ac(0xfa)]-0x1;}function _0x34c9d9(_0x3b31ca,_0x24ad5e){let [_0x5acbfc,_0x24fe36,_0x22a239,_0x2d5440]=_0x3b31ca,_0x2adb11=_0x3306e7(_0x5acbfc,_0x24fe36,_0x24ad5e),_0x4aa6c8=_0x3306e7(_0x24fe36,_0x22a239,_0x24ad5e),_0x4bdf72=_0x3306e7(_0x22a239,_0x2d5440,_0x24ad5e);return _0x3306e7(_0x3306e7(_0x2adb11,_0x4aa6c8,_0x24ad5e),_0x3306e7(_0x4aa6c8,_0x4bdf72,_0x24ad5e),_0x24ad5e);}function _0x4bd012(_0x3fce35,_0x25c2f8){let [_0x36ff29,_0x1e78b2,_0x5d7899,_0x4fecd9]=_0x3fce35,_0x4bd2ee=_0x3306e7(_0x36ff29,_0x1e78b2,_0x25c2f8),_0x4dfd43=_0x3306e7(_0x1e78b2,_0x5d7899,_0x25c2f8),_0x27f36c=_0x3306e7(_0x5d7899,_0x4fecd9,_0x25c2f8),_0x4810a3=_0x3306e7(_0x4bd2ee,_0x4dfd43,_0x25c2f8),_0x445a4b=_0x3306e7(_0x4dfd43,_0x27f36c,_0x25c2f8),_0x23ce11=_0x3306e7(_0x4810a3,_0x445a4b,_0x25c2f8);return{'left':[_0x36ff29,_0x4bd2ee,_0x4810a3,_0x23ce11],'right':[_0x23ce11,_0x445a4b,_0x27f36c,_0x4fecd9]};}function _0x23a4d1(_0x1f77b0,_0x2a1e8d,_0x1b7bc9){const _0x3e74fc=_0x4914aa;let _0x2884ab=_0x1b7bc9['x']-_0x2a1e8d['x'],_0x1d0b90=_0x1b7bc9['y']-_0x2a1e8d['y'],_0x4737d5=_0x2884ab*_0x2884ab+_0x1d0b90*_0x1d0b90,_0x241ffa=_0x4737d5<=_0x1378f5?0x0:Math[_0x3e74fc(0xb8)](0x0,Math['min'](0x1,((_0x1f77b0['x']-_0x2a1e8d['x'])*_0x2884ab+(_0x1f77b0['y']-_0x2a1e8d['y'])*_0x1d0b90)/_0x4737d5)),_0x4608f5={'x':_0x2a1e8d['x']+_0x2884ab*_0x241ffa,'y':_0x2a1e8d['y']+_0x1d0b90*_0x241ffa};return{'point':_0x4608f5,'ratio':_0x241ffa,'distance':_0x2e8bc9(_0x1f77b0,_0x4608f5)};}function _0x3beea8(_0xe9d37c,_0x5c4b74,_0x80ee3c){const _0x1130de=_0x4914aa;return _0x23a4d1(_0xe9d37c,_0x5c4b74,_0x80ee3c)[_0x1130de(0xbc)]**0x2;}function _0x203482(_0x3058d2,_0x2def59){const _0x4ef50b=_0x4914aa;if(_0x3058d2[_0x4ef50b(0xfa)]<=0x2)return _0x3058d2[_0x4ef50b(0xd4)](_0x1a6b37);let _0x63691f=0x0,_0x2f9d14=0x0,_0x2cdd31=_0x3058d2[0x0],_0x2e3e27=_0x3058d2[_0x3058d2[_0x4ef50b(0xfa)]-0x1],_0xb54b11=_0x2def59*_0x2def59;for(let _0x45eaae=0x1;_0x45eaae<_0x3058d2['length']-0x1;_0x45eaae++){let _0xe165e0=_0x3beea8(_0x3058d2[_0x45eaae],_0x2cdd31,_0x2e3e27);_0xe165e0>_0x63691f&&(_0x63691f=_0xe165e0,_0x2f9d14=_0x45eaae);}if(_0x63691f<=_0xb54b11)return[_0x1a6b37(_0x2cdd31),_0x1a6b37(_0x2e3e27)];let _0x2ceacc=_0x203482(_0x3058d2['slice'](0x0,_0x2f9d14+0x1),_0x2def59),_0x4b1b51=_0x203482(_0x3058d2[_0x4ef50b(0xd3)](_0x2f9d14),_0x2def59);return[..._0x2ceacc['slice'](0x0,-0x1),..._0x4b1b51];}function _0x1bb992(_0x1e0e7a,_0x575a9d){let _0x290617=_0x1e0e7a[_0x575a9d],_0x37c8a1=_0x1e0e7a[_0x575a9d+0x1],_0x964dd4=_0x1e0e7a[_0x575a9d-0x1]??_0x290617;return{'x':_0x290617['x']+(_0x37c8a1['x']-_0x964dd4['x'])/0x6,'y':_0x290617['y']+(_0x37c8a1['y']-_0x964dd4['y'])/0x6};}function _0x40c926(_0x14cee0,_0x16205a){let _0x2a29b4=_0x14cee0[_0x16205a],_0x456cd9=_0x14cee0[_0x16205a-0x1],_0x281406=_0x14cee0[_0x16205a+0x1]??_0x2a29b4;return{'x':_0x2a29b4['x']-(_0x281406['x']-_0x456cd9['x'])/0x6,'y':_0x2a29b4['y']-(_0x281406['y']-_0x456cd9['y'])/0x6};}function _0x3a3a3e(_0x314d72,_0x1a212e){const _0x38d01f=_0x4914aa;let _0x20ddab=_0x314d72[_0x38d01f(0x116)][_0x1a212e],_0x42b1ab=_0x314d72[_0x38d01f(0x116)][_0x1a212e-0x1]??(_0x314d72[_0x38d01f(0xf2)]?_0x314d72[_0x38d01f(0x116)][_0x314d72[_0x38d01f(0x116)][_0x38d01f(0xfa)]-0x1]:null),_0x4ac64f=_0x314d72[_0x38d01f(0x116)][_0x1a212e+0x1]??(_0x314d72['closed']?_0x314d72['anchors'][0x0]:null),_0x50e071=_0x42b1ab&&_0x4ac64f?_0x448b51({'x':_0x4ac64f['x']-_0x42b1ab['x'],'y':_0x4ac64f['y']-_0x42b1ab['y']}):_0x4ac64f?_0x448b51({'x':_0x4ac64f['x']-_0x20ddab['x'],'y':_0x4ac64f['y']-_0x20ddab['y']}):_0x42b1ab?_0x448b51({'x':_0x20ddab['x']-_0x42b1ab['x'],'y':_0x20ddab['y']-_0x42b1ab['y']}):{'x':0x1,'y':0x0},_0xb867ee=_0x42b1ab&&_0x4ac64f?Math[_0x38d01f(0xb8)](0x32,_0x2e8bc9(_0x42b1ab,_0x4ac64f)/0x4):0x32;return{'in':{'x':_0x20ddab['x']-_0x50e071['x']*_0xb867ee,'y':_0x20ddab['y']-_0x50e071['y']*_0xb867ee},'out':{'x':_0x20ddab['x']+_0x50e071['x']*_0xb867ee,'y':_0x20ddab['y']+_0x50e071['y']*_0xb867ee}};}function _0x143883(_0x2b1aa2,_0xb24160){const _0x555ce4=_0x4914aa;let _0x498ef8=_0x2b1aa2[_0xb24160],_0x564787=_0xb24160==='in'?'out':'in',_0x378ba6=_0x2b1aa2[_0x564787];if(_0x498ef8){if(_0x2b1aa2[_0x555ce4(0x11b)]==='symmetric'){_0x2b1aa2[_0x564787]=_0x3f56c3(_0x2b1aa2,_0x498ef8);return;}_0x2b1aa2[_0x555ce4(0x11b)]===_0x555ce4(0x10b)&&(_0x2b1aa2[_0x564787]=_0x3f56c3(_0x2b1aa2,_0x498ef8,_0x378ba6?_0x2e8bc9(_0x2b1aa2,_0x378ba6):_0x2e8bc9(_0x2b1aa2,_0x498ef8)));}}function _0x5dbcf4(_0x4f52af,_0x2e5620){const _0x5eb71b=_0x4914aa;let _0x58d7a9=_0x20d180(_0x4f52af);return!_0x2e5620||_0x58d7a9['closed']||_0x58d7a9[_0x5eb71b(0x116)][_0x5eb71b(0xfa)]===0x0||_0x58d7a9[_0x5eb71b(0x116)][_0x5eb71b(0xde)]({'id':'__ink-preview-anchor__','x':_0x2e5620['x'],'y':_0x2e5620['y'],'pointType':_0x5eb71b(0x11e)}),_0x58d7a9;}function _0x271e2b(_0x2f5152,_0x17c68a={}){const _0x206ff6=_0x4914aa;let _0x42b9c8=Math['max'](0x0,_0x17c68a[_0x206ff6(0x122)]??Math[_0x206ff6(0xb8)](0x4,_0x2f5152[_0x206ff6(0xf5)]*0.35)),_0x1d9eda=_0x17c68a[_0x206ff6(0xed)]??(_0x2cefb2=>_0x206ff6(0xd8)+_0x2cefb2),_0x472d3c=_0x203482(_0x2f5152[_0x206ff6(0xdb)],_0x42b9c8),_0x4ae012=_0x472d3c[_0x206ff6(0xd4)]((_0x57c0f8,_0x548da0)=>({'id':_0x1d9eda(_0x548da0),'x':_0x57c0f8['x'],'y':_0x57c0f8['y'],'pointType':_0x206ff6(0x127)}));for(let _0x2b81f0=0x0;_0x2b81f0<_0x4ae012['length']-0x1;_0x2b81f0++)_0x4ae012[_0x2b81f0][_0x206ff6(0xb7)]=_0x1bb992(_0x472d3c,_0x2b81f0),_0x4ae012[_0x2b81f0+0x1]['in']=_0x40c926(_0x472d3c,_0x2b81f0+0x1);return{'kind':_0x206ff6(0xc9),'closed':!0x1,'anchors':_0x4ae012};}function _0x2b5870(_0x17b2a6,_0x299987,_0x570de4){const _0x130c84=_0x4914aa;let _0x182165=null,_0x32f429=[_0x130c84(0x125),'in','out'];return _0x17b2a6['anchors'][_0x130c84(0x126)]((_0x2a1b64,_0x227a98)=>{_0x32f429['forEach'](_0x3277e7=>{if(!_0x106664(_0x17b2a6,_0x227a98,_0x3277e7))return;let _0xc8e015=_0x31a171(_0x2a1b64,_0x3277e7);if(!_0xc8e015)return;let _0x4a200a=_0x2e8bc9(_0x299987,_0xc8e015);_0x4a200a>_0x570de4||_0x182165&&_0x4a200a>=_0x182165['distance']||(_0x182165={'handle':{'kind':_0x3277e7,'anchorId':_0x2a1b64['id']},'point':_0x1a6b37(_0xc8e015),'distance':_0x4a200a});});}),_0x182165;}function _0x587f4f(_0x208456,_0x4bbbc8,_0x5a1c2a){const _0x296c76=_0x4914aa;let _0x5d2b80=null,_0x1f1984=_0x208456['closed']?_0x208456[_0x296c76(0x116)][_0x296c76(0xfa)]:Math[_0x296c76(0xb8)](0x0,_0x208456[_0x296c76(0x116)][_0x296c76(0xfa)]-0x1);for(let _0x10fcb3=0x0;_0x10fcb3<_0x1f1984;_0x10fcb3++){let _0x599d26=_0x34b386(_0x208456,_0x10fcb3);if(!_0x599d26)continue;let _0x13cf05=_0x34c9d9(_0x599d26,0x0);for(let _0x117fb7=0x1;_0x117fb7<=0x20;_0x117fb7++){let _0xaa9b38=_0x34c9d9(_0x599d26,_0x117fb7/0x20),_0x3d5a36=_0x23a4d1(_0x4bbbc8,_0x13cf05,_0xaa9b38),_0x416a59=(_0x117fb7-0x1+_0x3d5a36[_0x296c76(0x109)])/0x20;(!_0x5d2b80||_0x3d5a36[_0x296c76(0xbc)]<_0x5d2b80[_0x296c76(0xbc)])&&(_0x5d2b80={'segmentIndex':_0x10fcb3,'t':_0x416a59,'point':_0x3d5a36[_0x296c76(0xef)],'distance':_0x3d5a36[_0x296c76(0xbc)]}),_0x13cf05=_0xaa9b38;}}return _0x5d2b80&&_0x5d2b80[_0x296c76(0xbc)]<=_0x5a1c2a?_0x5d2b80:null;}function _0x307f2f(_0x44c351,_0x4f7dfa,_0x4aceef){const _0x211c3e=_0x4914aa;let _0x3477e4=_0x20d180(_0x44c351),_0x4fc10d=_0x3b8076(_0x3477e4,_0x4f7dfa[_0x211c3e(0x10c)]),_0x3575a5=_0x34b386(_0x3477e4,_0x4f7dfa[_0x211c3e(0x10c)]);if(!_0x4fc10d||!_0x3575a5)return _0x3477e4;let _0x238516=_0x4bd012(_0x3575a5,Math[_0x211c3e(0xb8)](0x0,Math[_0x211c3e(0xb6)](0x1,_0x4f7dfa['t']))),_0xb1bb4e={'id':_0x4aceef(),'x':_0x238516['left'][0x3]['x'],'y':_0x238516[_0x211c3e(0x123)][0x3]['y'],'in':_0x1a6b37(_0x238516[_0x211c3e(0x123)][0x2]),'out':_0x1a6b37(_0x238516[_0x211c3e(0xe7)][0x1]),'pointType':_0x211c3e(0x127)};return _0x3477e4[_0x211c3e(0x116)][_0x4fc10d[_0x211c3e(0xfc)]]['out']=_0x1a6b37(_0x238516['left'][0x1]),_0x3477e4['anchors'][_0x4fc10d[_0x211c3e(0xbd)]]['in']=_0x1a6b37(_0x238516[_0x211c3e(0xe7)][0x2]),_0x3477e4['anchors'][_0x211c3e(0xf0)](_0x4fc10d[_0x211c3e(0xfc)]+0x1,0x0,_0xb1bb4e),_0x3477e4;}function _0x287003(_0xb535a2,_0x15382c){const _0x52381d=_0x4914aa;let _0x5e0d70=_0x20d180(_0xb535a2);return _0x5e0d70[_0x52381d(0x116)]=_0x5e0d70[_0x52381d(0x116)]['filter'](_0x512ec4=>_0x512ec4['id']!==_0x15382c),_0x5e0d70[_0x52381d(0xf2)]&&_0x5e0d70[_0x52381d(0x116)][_0x52381d(0xfa)]<0x3&&(_0x5e0d70[_0x52381d(0xf2)]=!0x1),_0x5e0d70;}function _0x1e8b24(_0x1c70b1,_0x28df95,_0x45b150){const _0x38527f=_0x4914aa;let _0x484136=_0x20d180(_0x1c70b1),_0x4863cd=_0x484136[_0x38527f(0x116)][_0x38527f(0xbf)](_0x59828c=>_0x59828c['id']===_0x28df95),_0x3474ae=_0x484136['anchors'][_0x4863cd];if(!_0x3474ae)return _0x484136;if(_0x3474ae['pointType']=_0x45b150,_0x45b150===_0x38527f(0x11e))return delete _0x3474ae['in'],delete _0x3474ae[_0x38527f(0xb7)],_0x484136;let _0x586958=_0x3a3a3e(_0x484136,_0x4863cd);if(_0x3474ae['in']=_0x3474ae['in']?_0x1a6b37(_0x3474ae['in']):_0x586958['in'],_0x3474ae['out']=_0x3474ae['out']?_0x1a6b37(_0x3474ae[_0x38527f(0xb7)]):_0x586958['out'],_0x45b150===_0x38527f(0xdf)){let _0x23d701=Math[_0x38527f(0xb8)](_0x2e8bc9(_0x3474ae,_0x3474ae['in']),_0x2e8bc9(_0x3474ae,_0x3474ae[_0x38527f(0xb7)]),0x32),_0x140b54=_0x448b51({'x':_0x3474ae['out']['x']-_0x3474ae['x'],'y':_0x3474ae[_0x38527f(0xb7)]['y']-_0x3474ae['y']});_0x3474ae[_0x38527f(0xb7)]={'x':_0x3474ae['x']+_0x140b54['x']*_0x23d701,'y':_0x3474ae['y']+_0x140b54['y']*_0x23d701},_0x3474ae['in']={'x':_0x3474ae['x']-_0x140b54['x']*_0x23d701,'y':_0x3474ae['y']-_0x140b54['y']*_0x23d701};}else _0x45b150===_0x38527f(0x10b)&&_0x143883(_0x3474ae,'out');return _0x484136;}function _0x31b374(_0x67c7cf,_0x370623){const _0x5a64cc=_0x4914aa;let _0x40827f=_0x67c7cf[_0x5a64cc(0x116)]['find'](_0x53711d=>_0x53711d['id']===_0x370623),_0x7044c8=(_0x40827f==null?void 0x0:_0x40827f[_0x5a64cc(0x11b)])??_0x5a64cc(0x11e);return _0x1e8b24(_0x67c7cf,_0x370623,_0x7044c8==='corner'?_0x5a64cc(0x10b):_0x7044c8===_0x5a64cc(0x10b)?_0x5a64cc(0xdf):_0x7044c8===_0x5a64cc(0xdf)?_0x5a64cc(0x127):_0x5a64cc(0x11e));}function _0x2bbc96(_0x1e28fe,_0x52db0a,_0x17e404){const _0x42e5c4=_0x4914aa;let _0x28ddef=_0x20d180(_0x1e28fe),_0x15f063=_0x28ddef[_0x42e5c4(0x116)][_0x42e5c4(0x12a)](_0x3d65ee=>_0x3d65ee['id']===_0x52db0a[_0x42e5c4(0x112)]);if(!_0x15f063)return _0x28ddef;if(_0x52db0a[_0x42e5c4(0xda)]===_0x42e5c4(0x125)){let _0x999a4f={'x':_0x17e404['x']-_0x15f063['x'],'y':_0x17e404['y']-_0x15f063['y']};return _0x15f063['x']=_0x17e404['x'],_0x15f063['y']=_0x17e404['y'],_0x15f063['in']&&={'x':_0x15f063['in']['x']+_0x999a4f['x'],'y':_0x15f063['in']['y']+_0x999a4f['y']},_0x15f063[_0x42e5c4(0xb7)]&&={'x':_0x15f063[_0x42e5c4(0xb7)]['x']+_0x999a4f['x'],'y':_0x15f063[_0x42e5c4(0xb7)]['y']+_0x999a4f['y']},_0x28ddef;}return _0x15f063[_0x52db0a[_0x42e5c4(0xda)]]=_0x1a6b37(_0x17e404),_0x15f063['pointType']==='corner'&&(_0x15f063['pointType']=_0x42e5c4(0x127)),_0x143883(_0x15f063,_0x52db0a[_0x42e5c4(0xda)]),_0x28ddef;}let _0x151d6d=1e-9;function _0xa9a3d8(_0x3fd915){let _0x38ad64=Math['round'](_0x3fd915*0x2710)/0x2710;return Object['is'](_0x38ad64,-0x0)?'0':String(_0x38ad64);}function _0xab3133(_0x21b48c){return _0xa9a3d8(_0x21b48c['x'])+'\x20'+_0xa9a3d8(_0x21b48c['y']);}function _0xac8a33(_0x162cc8,_0x4da772){return{'x':_0x162cc8['x']-_0x4da772['x'],'y':_0x162cc8['y']-_0x4da772['y']};}function _0x26c9e9(_0x89480e,_0x1ac3a2,_0x46be8a,_0x2fa9a3,_0x4c57f8){let _0x791f26=0x1-_0x4c57f8;return{'x':_0x791f26*_0x791f26*_0x791f26*_0x89480e['x']+0x3*_0x791f26*_0x791f26*_0x4c57f8*_0x1ac3a2['x']+0x3*_0x791f26*_0x4c57f8*_0x4c57f8*_0x46be8a['x']+_0x4c57f8*_0x4c57f8*_0x4c57f8*_0x2fa9a3['x'],'y':_0x791f26*_0x791f26*_0x791f26*_0x89480e['y']+0x3*_0x791f26*_0x791f26*_0x4c57f8*_0x1ac3a2['y']+0x3*_0x791f26*_0x4c57f8*_0x4c57f8*_0x46be8a['y']+_0x4c57f8*_0x4c57f8*_0x4c57f8*_0x2fa9a3['y']};}function _0x1e44dd(_0x3d0cb9,_0x1442e1,_0x4d0f5e,_0x239181){const _0x39828c=_0x4914aa;let _0x3f9506=-_0x3d0cb9+0x3*_0x1442e1-0x3*_0x4d0f5e+_0x239181,_0x1b34c0=0x3*_0x3d0cb9-0x6*_0x1442e1+0x3*_0x4d0f5e,_0x39240b=-0x3*_0x3d0cb9+0x3*_0x1442e1,_0x1180ac=[];if(Math[_0x39828c(0xe5)](_0x3f9506)<_0x151d6d){if(Math[_0x39828c(0xe5)](_0x1b34c0)<_0x151d6d)return _0x1180ac;let _0xd06bcc=-_0x39240b/(0x2*_0x1b34c0);return _0xd06bcc>0x0&&_0xd06bcc<0x1&&_0x1180ac['push'](_0xd06bcc),_0x1180ac;}let _0x537af8=_0x1b34c0*_0x1b34c0-0x3*_0x3f9506*_0x39240b;if(_0x537af8<0x0)return _0x1180ac;let _0x392d72=Math[_0x39828c(0xf4)](Math[_0x39828c(0xb8)](0x0,_0x537af8)),_0x226779=(-_0x1b34c0+_0x392d72)/(0x3*_0x3f9506),_0x502628=(-_0x1b34c0-_0x392d72)/(0x3*_0x3f9506);return _0x226779>0x0&&_0x226779<0x1&&_0x1180ac[_0x39828c(0xde)](_0x226779),_0x502628>0x0&&_0x502628<0x1&&Math[_0x39828c(0xe5)](_0x502628-_0x226779)>_0x151d6d&&_0x1180ac[_0x39828c(0xde)](_0x502628),_0x1180ac;}function _0x36c26d(_0x1f06f5,_0x3824cc,_0x969347,_0x2232d3,_0x43293c){const _0x2f9c4e=_0x4914aa;_0x1f06f5[_0x2f9c4e(0xde)](_0x3824cc,_0x43293c),new Set([..._0x1e44dd(_0x3824cc['x'],_0x969347['x'],_0x2232d3['x'],_0x43293c['x']),..._0x1e44dd(_0x3824cc['y'],_0x969347['y'],_0x2232d3['y'],_0x43293c['y'])])[_0x2f9c4e(0x126)](_0x39e687=>{_0x1f06f5['push'](_0x26c9e9(_0x3824cc,_0x969347,_0x2232d3,_0x43293c,_0x39e687));});}function _0x3a4ba5(_0x3b8087){const _0x480784=_0x4914aa;let _0x3437db=_0x3b8087[_0x480784(0x116)];if(_0x3437db[_0x480784(0xfa)]<=0x1)return _0x3437db;let _0x30cba3=[];for(let _0x2d8e3d=0x1;_0x2d8e3d<_0x3437db[_0x480784(0xfa)];_0x2d8e3d++){let _0x17be10=_0x3437db[_0x2d8e3d-0x1],_0x35ae2d=_0x3437db[_0x2d8e3d];_0x36c26d(_0x30cba3,_0x17be10,_0x17be10[_0x480784(0xb7)]??_0x17be10,_0x35ae2d['in']??_0x35ae2d,_0x35ae2d);}if(_0x3b8087[_0x480784(0xf2)]&&_0x3437db[_0x480784(0xfa)]>0x1){let _0x3d4b8d=_0x3437db[_0x3437db['length']-0x1],_0x9114ed=_0x3437db[0x0];_0x36c26d(_0x30cba3,_0x3d4b8d,_0x3d4b8d[_0x480784(0xb7)]??_0x3d4b8d,_0x9114ed['in']??_0x9114ed,_0x9114ed);}return _0x30cba3;}function _0x52f3e7(_0x39f550){const _0x58c991=_0x4914aa;let _0x2fd0ed=_0x39f550[_0x58c991(0xdb)];if(_0x2fd0ed[_0x58c991(0xfa)]<=0x1)return _0x2fd0ed;let _0x171189=[];for(let _0x2792e2=0x0;_0x2792e2<_0x2fd0ed[_0x58c991(0xfa)]-0x1;_0x2792e2++){let _0x549817=_0x2fd0ed[_0x2792e2],_0xcc4f19=_0x2fd0ed[_0x2792e2+0x1],_0x576777=_0x2fd0ed[_0x2792e2-0x1]??_0x549817,_0x2184a8=_0x2fd0ed[_0x2792e2+0x2]??_0xcc4f19;_0x36c26d(_0x171189,_0x549817,{'x':_0x549817['x']+(_0xcc4f19['x']-_0x576777['x'])/0x6,'y':_0x549817['y']+(_0xcc4f19['y']-_0x576777['y'])/0x6},{'x':_0xcc4f19['x']-(_0x2184a8['x']-_0x549817['x'])/0x6,'y':_0xcc4f19['y']-(_0x2184a8['y']-_0x549817['y'])/0x6},_0xcc4f19);}return _0x171189;}function _0x2565ab(_0x23f87e){const _0x218e26=_0x4914aa;return _0x23f87e[_0x218e26(0xda)]==='pen'?_0x3a4ba5(_0x23f87e):_0x52f3e7(_0x23f87e);}function _0x5189b3(_0x4da4fa){let _0x7143c0=Math['round'](_0x4da4fa*0x2710)/0x2710;return Object['is'](_0x7143c0,-0x0)?0x0:_0x7143c0;}function _0x5ca7be(_0x271a31){const _0x3f44cb=_0x4914aa;let _0x10cc9c=_0x2565ab(_0x271a31);if(_0x10cc9c[_0x3f44cb(0xfa)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x467089=Math[_0x3f44cb(0xb6)](..._0x10cc9c[_0x3f44cb(0xd4)](_0xdbd407=>_0xdbd407['x'])),_0x37388e=Math[_0x3f44cb(0xb6)](..._0x10cc9c[_0x3f44cb(0xd4)](_0x7be451=>_0x7be451['y'])),_0x1d9d67=Math['max'](..._0x10cc9c[_0x3f44cb(0xd4)](_0x2f4fb1=>_0x2f4fb1['x'])),_0x349514=Math[_0x3f44cb(0xb8)](..._0x10cc9c[_0x3f44cb(0xd4)](_0x3397cf=>_0x3397cf['y']));return{'left':_0x5189b3(_0x467089),'top':_0x5189b3(_0x37388e),'width':_0x5189b3(Math[_0x3f44cb(0xb8)](0x1,_0x1d9d67-_0x467089)),'height':_0x5189b3(Math[_0x3f44cb(0xb8)](0x1,_0x349514-_0x37388e))};}function _0x4fe7de(_0x53c200,_0x34094c){const _0x5799f3=_0x4914aa;let _0x558fb9=_0x53c200[_0x5799f3(0x116)];if(_0x558fb9['length']===0x0)return'';let _0x390574=['M\x20'+_0xab3133(_0xac8a33(_0x558fb9[0x0],_0x34094c))];for(let _0xb539c1=0x1;_0xb539c1<_0x558fb9[_0x5799f3(0xfa)];_0xb539c1++){let _0x2bc483=_0x558fb9[_0xb539c1-0x1],_0x2f0ebf=_0x558fb9[_0xb539c1],_0x3ef2a4=_0x2bc483[_0x5799f3(0xb7)]??_0x2bc483,_0x2d388d=_0x2f0ebf['in']??_0x2f0ebf;_0x390574[_0x5799f3(0xde)]('C\x20'+_0xab3133(_0xac8a33(_0x3ef2a4,_0x34094c))+'\x20'+_0xab3133(_0xac8a33(_0x2d388d,_0x34094c))+'\x20'+_0xab3133(_0xac8a33(_0x2f0ebf,_0x34094c)));}if(_0x53c200[_0x5799f3(0xf2)]&&_0x558fb9[_0x5799f3(0xfa)]>0x1){let _0xb9d446=_0x558fb9[_0x558fb9[_0x5799f3(0xfa)]-0x1],_0x5e0cd5=_0x558fb9[0x0],_0x1bcbd2=_0xb9d446[_0x5799f3(0xb7)]??_0xb9d446,_0x7c9ef=_0x5e0cd5['in']??_0x5e0cd5;_0x390574['push']('C\x20'+_0xab3133(_0xac8a33(_0x1bcbd2,_0x34094c))+'\x20'+_0xab3133(_0xac8a33(_0x7c9ef,_0x34094c))+'\x20'+_0xab3133(_0xac8a33(_0x5e0cd5,_0x34094c))),_0x390574['push']('Z');}return _0x390574[_0x5799f3(0xee)]('\x20');}function _0x42f66e(_0x69010b,_0x410a41){const _0x34d8c7=_0x4914aa;let _0x55f080=_0x69010b['points'][_0x34d8c7(0xd4)](_0x118b35=>_0xac8a33(_0x118b35,_0x410a41));if(_0x55f080['length']===0x0)return'';if(_0x55f080[_0x34d8c7(0xfa)]===0x1)return'M\x20'+_0xab3133(_0x55f080[0x0]);let _0x34df2e=['M\x20'+_0xab3133(_0x55f080[0x0])];for(let _0x3a7fdb=0x0;_0x3a7fdb<_0x55f080[_0x34d8c7(0xfa)]-0x1;_0x3a7fdb++){let _0xb1fc8f=_0x55f080[_0x3a7fdb],_0x127913=_0x55f080[_0x3a7fdb+0x1],_0x366c69=_0x55f080[_0x3a7fdb-0x1]??_0xb1fc8f,_0x1c38fc=_0x55f080[_0x3a7fdb+0x2]??_0x127913,_0x2c69d1={'x':_0xb1fc8f['x']+(_0x127913['x']-_0x366c69['x'])/0x6,'y':_0xb1fc8f['y']+(_0x127913['y']-_0x366c69['y'])/0x6},_0x1b2cab={'x':_0x127913['x']-(_0x1c38fc['x']-_0xb1fc8f['x'])/0x6,'y':_0x127913['y']-(_0x1c38fc['y']-_0xb1fc8f['y'])/0x6};_0x34df2e[_0x34d8c7(0xde)]('C\x20'+_0xab3133(_0x2c69d1)+'\x20'+_0xab3133(_0x1b2cab)+'\x20'+_0xab3133(_0x127913));}return _0x34df2e[_0x34d8c7(0xee)]('\x20');}function _0x235eed(_0x5d8080,_0x1b7094){const _0x524047=_0x4914aa;return _0x5d8080[_0x524047(0xda)]===_0x524047(0xc9)?_0x4fe7de(_0x5d8080,_0x1b7094):_0x42f66e(_0x5d8080,_0x1b7094);}function _0x345c8a(_0x3635d9,_0x508841){const _0x5c4b83=_0x4914aa;return _0x508841!=null&&_0x508841[_0x5c4b83(0xb4)]?_0x508841['color']:_0x3635d9['kind']===_0x5c4b83(0xc9)?_0x5c4b83(0xe2):_0x3635d9['color'];}function _0x36d538(_0x9b8b01,_0x1d1e8a){const _0xc9c915=_0x4914aa;return(_0x1d1e8a==null?void 0x0:_0x1d1e8a[_0xc9c915(0xf5)])===void 0x0?_0x9b8b01[_0xc9c915(0xda)]===_0xc9c915(0xc9)?0x2:_0x9b8b01[_0xc9c915(0xf5)]:_0x1d1e8a['width'];}function _0xcb1826(_0x12e645,_0x2f735a){const _0x8ec7fe=_0x4914aa;return(_0x2f735a==null?void 0x0:_0x2f735a[_0x8ec7fe(0x10a)])===void 0x0?_0x12e645[_0x8ec7fe(0xda)]==='pen'?void 0x0:_0x12e645['opacity']:_0x2f735a['opacity'];}function _0x347997(_0x42de5b,_0x137d9b){const _0x327f1b=_0x4914aa;let _0x2fa4d4=_0x5ca7be(_0x42de5b),_0x507a6f=_0x235eed(_0x42de5b,{'x':_0x2fa4d4['left'],'y':_0x2fa4d4[_0x327f1b(0x107)]}),_0x4cc628=_0x42de5b[_0x327f1b(0xda)]==='pen'&&_0x42de5b['closed'],_0x14817c=_0x137d9b==null?void 0x0:_0x137d9b['fillColor'];return{'shapeType':_0x1c7ef5['ShapeTypeEnum'][_0x327f1b(0xd1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x2fa4d4[_0x327f1b(0xf5)],'h':_0x2fa4d4[_0x327f1b(0xf1)],'fill':_0x4cc628?_0x327f1b(0xc7):_0x327f1b(0x12b),'stroke':!0x0,'data':_0x507a6f,'dataArray':_0x217e87(_0x42de5b,{'x':_0x2fa4d4[_0x327f1b(0x123)],'y':_0x2fa4d4[_0x327f1b(0x107)]})}]},'fill':_0x4cc628&&_0x14817c?{'color':_0x14817c,'fillType':_0x1c7ef5[_0x327f1b(0x103)][_0x327f1b(0xb1)]}:{'fillType':_0x1c7ef5[_0x327f1b(0x103)]['NoFill']},'stroke':{'color':_0x345c8a(_0x42de5b,_0x137d9b),'width':_0x36d538(_0x42de5b,_0x137d9b),'opacity':_0xcb1826(_0x42de5b,_0x137d9b),'lineStrokeType':_0x1c7ef5[_0x327f1b(0xf7)]['SolidLine'],'capType':_0x1c7ef5[_0x327f1b(0xce)][_0x327f1b(0x11d)],'lineJoinType':_0x1c7ef5[_0x327f1b(0xc0)][_0x327f1b(0x11d)]}};}function _0x19f629(_0xedd7b8,_0x48ea6b){return{'x':_0xedd7b8['x']-_0x48ea6b['x'],'y':_0xedd7b8['y']-_0x48ea6b['y']};}function _0x217e87(_0x15ff0b,_0x188ff1){const _0x160ee5=_0x4914aa;if(_0x15ff0b[_0x160ee5(0xda)]===_0x160ee5(0xc9)){let _0x5f46cf=_0x15ff0b[_0x160ee5(0x116)];if(_0x5f46cf['length']===0x0)return[];let _0x53a0b5=_0x19f629(_0x5f46cf[0x0],_0x188ff1),_0x5466ab=[{'command':'M','points':[_0x53a0b5['x'],_0x53a0b5['y']]}];for(let _0x1524d3=0x1;_0x1524d3<_0x5f46cf[_0x160ee5(0xfa)];_0x1524d3++){let _0x228db3=_0x5f46cf[_0x1524d3-0x1],_0x4be604=_0x5f46cf[_0x1524d3],_0x42fd25=_0x19f629(_0x228db3[_0x160ee5(0xb7)]??_0x228db3,_0x188ff1),_0x1f39b1=_0x19f629(_0x4be604['in']??_0x4be604,_0x188ff1),_0x48a0a5=_0x19f629(_0x4be604,_0x188ff1);_0x5466ab[_0x160ee5(0xde)]({'command':'C','points':[_0x42fd25['x'],_0x42fd25['y'],_0x1f39b1['x'],_0x1f39b1['y'],_0x48a0a5['x'],_0x48a0a5['y']]});}if(_0x15ff0b['closed']&&_0x5f46cf[_0x160ee5(0xfa)]>0x1){let _0x1f1cbe=_0x5f46cf[_0x5f46cf[_0x160ee5(0xfa)]-0x1],_0x4005ab=_0x5f46cf[0x0],_0x4ccd4f=_0x19f629(_0x1f1cbe[_0x160ee5(0xb7)]??_0x1f1cbe,_0x188ff1),_0x21282d=_0x19f629(_0x4005ab['in']??_0x4005ab,_0x188ff1),_0x279731=_0x19f629(_0x4005ab,_0x188ff1);_0x5466ab[_0x160ee5(0xde)]({'command':'C','points':[_0x4ccd4f['x'],_0x4ccd4f['y'],_0x21282d['x'],_0x21282d['y'],_0x279731['x'],_0x279731['y']]}),_0x5466ab[_0x160ee5(0xde)]({'command':'z','points':[]});}return _0x5466ab;}let _0x19aa18=_0x15ff0b['points'][_0x160ee5(0xd4)](_0x142ac5=>_0x19f629(_0x142ac5,_0x188ff1));if(_0x19aa18['length']===0x0)return[];let _0x4190c3=[{'command':'M','points':[_0x19aa18[0x0]['x'],_0x19aa18[0x0]['y']]}];for(let _0x5118d9=0x0;_0x5118d9<_0x19aa18['length']-0x1;_0x5118d9++){let _0x54b68b=_0x19aa18[_0x5118d9],_0x83d236=_0x19aa18[_0x5118d9+0x1],_0x41adfe=_0x19aa18[_0x5118d9-0x1]??_0x54b68b,_0x270bdb=_0x19aa18[_0x5118d9+0x2]??_0x83d236,_0x299c={'x':_0x54b68b['x']+(_0x83d236['x']-_0x41adfe['x'])/0x6,'y':_0x54b68b['y']+(_0x83d236['y']-_0x41adfe['y'])/0x6},_0x55841f={'x':_0x83d236['x']-(_0x270bdb['x']-_0x54b68b['x'])/0x6,'y':_0x83d236['y']-(_0x270bdb['y']-_0x54b68b['y'])/0x6};_0x4190c3[_0x160ee5(0xde)]({'command':'C','points':[_0x299c['x'],_0x299c['y'],_0x55841f['x'],_0x55841f['y'],_0x83d236['x'],_0x83d236['y']]});}return _0x4190c3;}function _0x29e5d5(_0x1a5353){const _0x1c2350=_0x4914aa;let {model:_0x37a86a,sourceModel:_0x49622f=_0x37a86a,style:_0x51d25f}=_0x1a5353,_0x312e66=_0x1a5353['tool']??_0x37a86a[_0x1c2350(0xda)],_0x3ce364=_0x5ca7be(_0x37a86a),_0x1f1697=_0x37a86a[_0x1c2350(0xda)]==='pen'&&_0x312e66!==_0x1c2350(0xc9)?_0x37a86a:void 0x0;return{'transform':{..._0x3ce364,'rotation':0x0},'shapeData':_0x347997(_0x37a86a,_0x51d25f),'ink':{'version':0x1,'tool':_0x312e66,'sourceModel':_0x49622f,..._0x1f1697?{'editModel':_0x1f1697}:{},'normalizedBounds':_0x3ce364}};}var _0x2f3300=_0x4914aa(0x11a),_0x4f11c3=_0x4914aa(0xc2);function _0xf79e1c(_0x5cab91){'@babel/helpers - typeof';const _0x1ce0c7=_0x4914aa;return _0xf79e1c=typeof Symbol==_0x1ce0c7(0x114)&&typeof Symbol[_0x1ce0c7(0x129)]=='symbol'?function(_0x23712d){return typeof _0x23712d;}:function(_0x2f9015){const _0x13aea0=_0x1ce0c7;return _0x2f9015&&typeof Symbol==_0x13aea0(0x114)&&_0x2f9015[_0x13aea0(0xe6)]===Symbol&&_0x2f9015!==Symbol['prototype']?_0x13aea0(0xbe):typeof _0x2f9015;},_0xf79e1c(_0x5cab91);}function _0x2cf09a(_0xd30d0e,_0x51ea5b){const _0x356dbd=_0x4914aa;if(_0xf79e1c(_0xd30d0e)!=_0x356dbd(0xe9)||!_0xd30d0e)return _0xd30d0e;var _0xd354cf=_0xd30d0e[Symbol['toPrimitive']];if(_0xd354cf!==void 0x0){var _0x10d3ad=_0xd354cf[_0x356dbd(0xd6)](_0xd30d0e,_0x51ea5b||_0x356dbd(0x106));if(_0xf79e1c(_0x10d3ad)!=_0x356dbd(0xe9))return _0x10d3ad;throw TypeError(_0x356dbd(0x121));}return(_0x51ea5b===_0x356dbd(0x111)?String:Number)(_0xd30d0e);}function _0x34fd52(_0x375dbc){const _0xbe4506=_0x4914aa;var _0x43c769=_0x2cf09a(_0x375dbc,_0xbe4506(0x111));return _0xf79e1c(_0x43c769)==_0xbe4506(0xbe)?_0x43c769:_0x43c769+'';}function _0x31416e(_0x57b0e1,_0x4cb38a,_0x1d96ec){return(_0x4cb38a=_0x34fd52(_0x4cb38a))in _0x57b0e1?Object['defineProperty'](_0x57b0e1,_0x4cb38a,{'value':_0x1d96ec,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57b0e1[_0x4cb38a]=_0x1d96ec,_0x57b0e1;}let _0x7a5ee5=(0x0,_0x3fd204[_0x4914aa(0xc4)])(_0x4914aa(0xb9));var _0x11d438=class{constructor(){const _0x50691a=_0x4914aa;_0x31416e(this,_0x50691a(0x101),[]);}[_0x4914aa(0xcf)](_0x161ad0){const _0x11b393=_0x4914aa;return this[_0x11b393(0x101)][_0x11b393(0xde)](_0x161ad0),(0x0,_0x3fd204['toDisposable'])(()=>{const _0x4914f4=_0x11b393;let _0xf638b2=this[_0x4914f4(0x101)][_0x4914f4(0xd0)](_0x161ad0);_0xf638b2>=0x0&&this['_adapters']['splice'](_0xf638b2,0x1);});}[_0x4914aa(0x10f)](_0x4f843a){const _0x10210b=_0x4914aa;for(let _0x2095cd of this[_0x10210b(0x101)])if(_0x2095cd['beginInkMode'](_0x4f843a))return!0x0;return!0x1;}async[_0x4914aa(0xb2)](_0x36a8e6){const _0x28b981=_0x4914aa;for(let _0xc4a108 of this[_0x28b981(0x101)])if(_0xc4a108[_0x28b981(0xb2)]&&await _0xc4a108['createCustomShape'](_0x36a8e6))return!0x0;return!0x1;}};let _0x236135={'id':_0x4914aa(0x113),'type':_0x3fd204['CommandType'][_0x4914aa(0xfb)],'handler':(_0x40ebf0,_0xc01e92)=>_0xc01e92?_0x40ebf0[_0x4914aa(0xff)](_0x7a5ee5)['beginInkMode'](_0xc01e92):!0x1},_0x2d8a19={};function _0x2bce3f(_0x12b8db,_0x1be2bd){return function(_0x4114b2,_0x176310){_0x1be2bd(_0x4114b2,_0x176310,_0x12b8db);};}function _0x18f066(_0x48b03a,_0x484042,_0xec285e,_0x4d177b){const _0x101be4=_0x4914aa;var _0x3b41d1=arguments['length'],_0x14bfb3=_0x3b41d1<0x3?_0x484042:_0x4d177b===null?_0x4d177b=Object[_0x101be4(0xe1)](_0x484042,_0xec285e):_0x4d177b,_0x5e4dd6;if(typeof Reflect==_0x101be4(0xe9)&&typeof Reflect['decorate']=='function')_0x14bfb3=Reflect[_0x101be4(0xeb)](_0x48b03a,_0x484042,_0xec285e,_0x4d177b);else{for(var _0x587133=_0x48b03a[_0x101be4(0xfa)]-0x1;_0x587133>=0x0;_0x587133--)(_0x5e4dd6=_0x48b03a[_0x587133])&&(_0x14bfb3=(_0x3b41d1<0x3?_0x5e4dd6(_0x14bfb3):_0x3b41d1>0x3?_0x5e4dd6(_0x484042,_0xec285e,_0x14bfb3):_0x5e4dd6(_0x484042,_0xec285e))||_0x14bfb3);}return _0x3b41d1>0x3&&_0x14bfb3&&Object[_0x101be4(0xcb)](_0x484042,_0xec285e,_0x14bfb3),_0x14bfb3;}let _0x34b6b7=class extends _0x3fd204[_0x4914aa(0xd2)]{constructor(_0x3b90b2=_0x2d8a19,_0x385495,_0x357671,_0x471837){const _0x5c2cf7=_0x4914aa;super(),this[_0x5c2cf7(0xf6)]=_0x3b90b2,this[_0x5c2cf7(0xc1)]=_0x385495,this[_0x5c2cf7(0xe3)]=_0x357671,this['_configService']=_0x471837;let {..._0x23fecd}=(0x0,_0x3fd204[_0x5c2cf7(0x119)])({},_0x2d8a19,this[_0x5c2cf7(0xf6)]);this['_configService'][_0x5c2cf7(0x104)](_0x5c2cf7(0x102),_0x23fecd);}[_0x4914aa(0x118)](){const _0x47e633=_0x4914aa;[[_0x7a5ee5,{'useClass':_0x11d438}]][_0x47e633(0x126)](_0x3d73e9=>this[_0x47e633(0xc1)][_0x47e633(0xec)](_0x3d73e9)),this[_0x47e633(0xe0)](this['_commandService'][_0x47e633(0xcd)](_0x236135));}};_0x31416e(_0x34b6b7,_0x4914aa(0xdd),'UNIVER_INK_PLUGIN'),_0x31416e(_0x34b6b7,_0x4914aa(0x124),_0x2f3300),_0x31416e(_0x34b6b7,_0x4914aa(0x120),_0x4f11c3),_0x31416e(_0x34b6b7,_0x4914aa(0xf3),_0x3fd204['UniverInstanceType']['UNIVER_UNKNOWN']),_0x34b6b7=_0x18f066([(0x0,_0x3fd204[_0x4914aa(0x105)])(_0x24b977[_0x4914aa(0x11c)]),_0x2bce3f(0x1,(0x0,_0x3fd204[_0x4914aa(0xd7)])(_0x3fd204[_0x4914aa(0xc3)])),_0x2bce3f(0x2,_0x3fd204[_0x4914aa(0x100)]),_0x2bce3f(0x3,_0x3fd204[_0x4914aa(0xea)])],_0x34b6b7),_0x22a964[_0x4914aa(0x10e)]=_0x7a5ee5,Object[_0x4914aa(0xcb)](_0x22a964,_0x4914aa(0xc5),{'enumerable':!0x0,'get':function(){return _0x34b6b7;}}),_0x22a964[_0x4914aa(0xf9)]=_0x29e5d5,_0x22a964[_0x4914aa(0xdc)]=_0x271e2b,_0x22a964[_0x4914aa(0xcc)]=_0x31b374,_0x22a964['deleteInkPenAnchor']=_0x287003,_0x22a964[_0x4914aa(0xb5)]=_0x2b5870,_0x22a964[_0x4914aa(0xfd)]=_0x587f4f,_0x22a964[_0x4914aa(0xfe)]=_0x5ca7be,_0x22a964[_0x4914aa(0xe8)]=_0x5dbcf4,_0x22a964['insertInkPenAnchorAt']=_0x307f2f,_0x22a964['isInkPenHandleVisible']=_0x106664,_0x22a964[_0x4914aa(0x12c)]=_0x2bbc96,_0x22a964[_0x4914aa(0x11f)]=_0x1e8b24;}));
1
+ function _0x3e82(_0x56f9cf,_0x586844){_0x56f9cf=_0x56f9cf-0x15d;const _0x1168c2=_0x1168();let _0x3e823f=_0x1168c2[_0x56f9cf];return _0x3e823f;}function _0x1168(){const _0x3ea9b6=['default','1801655IcBMvm','UniverProLicense','add','registerCommand','isInkPenHandleVisible','abs','beginInkMode','ICommandService','6zZfbGS','UniverCore','SolidFill','1051551pDeMBo','@univerjs-pro/engine-shape','@univerjs-pro/license','1.0.0','SolidLine','toDisposable','min','function','cycleInkPenAnchorPointType','free','UNIVER_INK_PLUGIN','points','string','10572390lpjJXz','convertBrushModelToPenModel','4tJbRmw','constructor','5819570SzZror','defineProperty','join','@univerjs-pro/ink','filter','closed','onStarting','left','hypot','UniverInkPlugin','slice','deleteInkPenAnchor','opacity','toStringTag','round','56AEoCHW','getInkModelBounds','_configService','out','splice','distance','_commandService','symbol','ShapeLineTypeEnum','12BbARXw','Rect','116171xyyvQQ','symmetric','CommandType','ShapeLineCapEnum','Round','pointType','merge','length','IInkHostAdapterService','start','map','getOwnPropertyDescriptor','__ink-preview-anchor__','width','_adapters','ratio','object','color','forEach','none','push','anchor','get','_injector','IConfigService','disposeWithMe','indexOf','height','kind','prototype','96785rIdBNM','type','createId','#f54a45','startIndex','UniverProInk','_config','Module','call','amd','ShapeFillEnum','findIndex','findClosestInkPenHandle','find','smooth','setInkPenAnchorPointType','exports','Injector','findClosestInkPenSegment','UniverInstanceType','end','createCustomShape','decorate','pen','norm','pluginName','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UNIVER_UNKNOWN','105776tBJwIm','fillColor','ink.host-adapter.service','version','12POpobV','Inject','corner','11JovVZk','max','createIdentifier','anchors','ShapeLineJoinEnum'];_0x1168=function(){return _0x3ea9b6;};return _0x1168();}(function(_0x1a7bc2,_0x8408aa){const _0x36e8d6=_0x3e82,_0x414656=_0x1a7bc2();while(!![]){try{const _0x1713e9=-parseInt(_0x36e8d6(0x185))/0x1*(parseInt(_0x36e8d6(0x1d4))/0x2)+parseInt(_0x36e8d6(0x1d7))/0x3*(parseInt(_0x36e8d6(0x169))/0x4)+-parseInt(_0x36e8d6(0x1cc))/0x5*(parseInt(_0x36e8d6(0x1c3))/0x6)+-parseInt(_0x36e8d6(0x17a))/0x7*(parseInt(_0x36e8d6(0x1bf))/0x8)+parseInt(_0x36e8d6(0x167))/0x9+-parseInt(_0x36e8d6(0x16b))/0xa*(-parseInt(_0x36e8d6(0x1c6))/0xb)+-parseInt(_0x36e8d6(0x183))/0xc*(parseInt(_0x36e8d6(0x1a3))/0xd);if(_0x1713e9===_0x8408aa)break;else _0x414656['push'](_0x414656['shift']());}catch(_0x417713){_0x414656['push'](_0x414656['shift']());}}}(_0x1168,0xe1c74),function(_0x20fb4d,_0x484e9c){const _0x3043dc=_0x3e82;typeof exports==_0x3043dc(0x195)&&typeof module<'u'?_0x484e9c(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define=='function'&&define[_0x3043dc(0x1ac)]?define([_0x3043dc(0x1b3),_0x3043dc(0x1d8),_0x3043dc(0x1d9),'@univerjs/core'],_0x484e9c):(_0x20fb4d=typeof globalThis<'u'?globalThis:_0x20fb4d||self,_0x484e9c(_0x20fb4d[_0x3043dc(0x1a8)]={},_0x20fb4d['UniverProEngineShape'],_0x20fb4d[_0x3043dc(0x1cd)],_0x20fb4d[_0x3043dc(0x1d5)]));}(this,function(_0x2d23a4,_0xce6247,_0x27d04f,_0x24f568){const _0x209049=_0x3e82;Object['defineProperty'](_0x2d23a4,Symbol[_0x209049(0x178)],{'value':_0x209049(0x1aa)});let _0x3f61c7=0.0001;function _0x408be4(_0x1dd197){return{'x':_0x1dd197['x'],'y':_0x1dd197['y']};}function _0x1b2d1c(_0x10abf8){const _0x287196=_0x209049;return{..._0x10abf8,'in':_0x10abf8['in']?_0x408be4(_0x10abf8['in']):void 0x0,'out':_0x10abf8[_0x287196(0x17d)]?_0x408be4(_0x10abf8[_0x287196(0x17d)]):void 0x0};}function _0x17dbfb(_0x1b94d8){const _0x44a955=_0x209049;return{'kind':_0x44a955(0x1ba),'closed':_0x1b94d8[_0x44a955(0x170)],'anchors':_0x1b94d8['anchors']['map'](_0x1b2d1c)};}function _0x45c5f6(_0x183e34,_0x13bb75,_0x288517){return{'x':_0x183e34['x']+(_0x13bb75['x']-_0x183e34['x'])*_0x288517,'y':_0x183e34['y']+(_0x13bb75['y']-_0x183e34['y'])*_0x288517};}function _0x2a3c48(_0x5af807,_0x216432){const _0xce3b83=_0x209049;return Math[_0xce3b83(0x173)](_0x5af807['x']-_0x216432['x'],_0x5af807['y']-_0x216432['y']);}function _0x4ba9db(_0xbc14e4){const _0x1ea6d4=_0x209049;let _0x501492=Math[_0x1ea6d4(0x173)](_0xbc14e4['x'],_0xbc14e4['y']);return _0x501492<_0x3f61c7?{'x':0x1,'y':0x0}:{'x':_0xbc14e4['x']/_0x501492,'y':_0xbc14e4['y']/_0x501492};}function _0x149d31(_0x27c9a1,_0x56c501,_0x45b632=_0x2a3c48(_0x27c9a1,_0x56c501)){let _0x869f60=_0x4ba9db({'x':_0x27c9a1['x']-_0x56c501['x'],'y':_0x27c9a1['y']-_0x56c501['y']});return{'x':_0x27c9a1['x']+_0x869f60['x']*_0x45b632,'y':_0x27c9a1['y']+_0x869f60['y']*_0x45b632};}function _0x3a1ced(_0x4db42f,_0x90df13){const _0x578f40=_0x209049;let {anchors:_0x1fc606}=_0x4db42f;return _0x1fc606[_0x578f40(0x18c)]<0x2||_0x90df13<0x0?null:_0x90df13<_0x1fc606[_0x578f40(0x18c)]-0x1?{'startIndex':_0x90df13,'endIndex':_0x90df13+0x1,'start':_0x1fc606[_0x90df13],'end':_0x1fc606[_0x90df13+0x1]}:_0x4db42f[_0x578f40(0x170)]&&_0x90df13===_0x1fc606[_0x578f40(0x18c)]-0x1?{'startIndex':_0x1fc606['length']-0x1,'endIndex':0x0,'start':_0x1fc606[_0x1fc606[_0x578f40(0x18c)]-0x1],'end':_0x1fc606[0x0]}:null;}function _0x534204(_0x561788,_0x22d3b6){const _0x192ce8=_0x209049;let _0x3d4c45=_0x3a1ced(_0x561788,_0x22d3b6);return _0x3d4c45?[_0x3d4c45[_0x192ce8(0x18e)],_0x3d4c45[_0x192ce8(0x18e)][_0x192ce8(0x17d)]??_0x3d4c45[_0x192ce8(0x18e)],_0x3d4c45[_0x192ce8(0x1b7)]['in']??_0x3d4c45[_0x192ce8(0x1b7)],_0x3d4c45[_0x192ce8(0x1b7)]]:null;}function _0x309698(_0x47b854,_0x2ac25a){const _0x50b9bd=_0x209049;return _0x2ac25a===_0x50b9bd(0x19a)?_0x47b854:_0x47b854[_0x2ac25a]??null;}function _0x506eed(_0x188561,_0x1c6988,_0x585918){const _0x31b543=_0x209049;return _0x585918===_0x31b543(0x19a)||_0x188561[_0x31b543(0x170)]?!0x0:_0x585918==='in'?_0x1c6988>0x0:_0x1c6988<_0x188561[_0x31b543(0x1c9)][_0x31b543(0x18c)]-0x1;}function _0x4b7e70(_0x40b1b5,_0x352256){let [_0x142d2a,_0x3be972,_0x52b87e,_0x2c70ff]=_0x40b1b5,_0x3f9173=_0x45c5f6(_0x142d2a,_0x3be972,_0x352256),_0x118b37=_0x45c5f6(_0x3be972,_0x52b87e,_0x352256),_0x3385e0=_0x45c5f6(_0x52b87e,_0x2c70ff,_0x352256);return _0x45c5f6(_0x45c5f6(_0x3f9173,_0x118b37,_0x352256),_0x45c5f6(_0x118b37,_0x3385e0,_0x352256),_0x352256);}function _0x33a473(_0x2b1632,_0x5c0fbf){let [_0x28b644,_0x2135c7,_0x153d72,_0x4f99dd]=_0x2b1632,_0x58d79e=_0x45c5f6(_0x28b644,_0x2135c7,_0x5c0fbf),_0x1943aa=_0x45c5f6(_0x2135c7,_0x153d72,_0x5c0fbf),_0x2e8236=_0x45c5f6(_0x153d72,_0x4f99dd,_0x5c0fbf),_0x333a7e=_0x45c5f6(_0x58d79e,_0x1943aa,_0x5c0fbf),_0x318002=_0x45c5f6(_0x1943aa,_0x2e8236,_0x5c0fbf),_0x24b688=_0x45c5f6(_0x333a7e,_0x318002,_0x5c0fbf);return{'left':[_0x28b644,_0x58d79e,_0x333a7e,_0x24b688],'right':[_0x24b688,_0x318002,_0x2e8236,_0x4f99dd]};}function _0x363282(_0x500010,_0x3207cb,_0x1ae4c6){const _0x25e61f=_0x209049;let _0x4af537=_0x1ae4c6['x']-_0x3207cb['x'],_0x59429c=_0x1ae4c6['y']-_0x3207cb['y'],_0x167360=_0x4af537*_0x4af537+_0x59429c*_0x59429c,_0x213f83=_0x167360<=_0x3f61c7?0x0:Math[_0x25e61f(0x1c7)](0x0,Math[_0x25e61f(0x160)](0x1,((_0x500010['x']-_0x3207cb['x'])*_0x4af537+(_0x500010['y']-_0x3207cb['y'])*_0x59429c)/_0x167360)),_0x579f81={'x':_0x3207cb['x']+_0x4af537*_0x213f83,'y':_0x3207cb['y']+_0x59429c*_0x213f83};return{'point':_0x579f81,'ratio':_0x213f83,'distance':_0x2a3c48(_0x500010,_0x579f81)};}function _0x1f1740(_0x5c6591,_0x4b0ff1,_0x16b319){return _0x363282(_0x5c6591,_0x4b0ff1,_0x16b319)['distance']**0x2;}function _0x5ae2d8(_0x1c5993,_0x509c34){const _0x46c87c=_0x209049;if(_0x1c5993[_0x46c87c(0x18c)]<=0x2)return _0x1c5993[_0x46c87c(0x18f)](_0x408be4);let _0x2f501b=0x0,_0x5a8a23=0x0,_0x5592ba=_0x1c5993[0x0],_0x1a8a82=_0x1c5993[_0x1c5993[_0x46c87c(0x18c)]-0x1],_0x1d4a21=_0x509c34*_0x509c34;for(let _0x1995bb=0x1;_0x1995bb<_0x1c5993[_0x46c87c(0x18c)]-0x1;_0x1995bb++){let _0x1a189b=_0x1f1740(_0x1c5993[_0x1995bb],_0x5592ba,_0x1a8a82);_0x1a189b>_0x2f501b&&(_0x2f501b=_0x1a189b,_0x5a8a23=_0x1995bb);}if(_0x2f501b<=_0x1d4a21)return[_0x408be4(_0x5592ba),_0x408be4(_0x1a8a82)];let _0x545fd2=_0x5ae2d8(_0x1c5993[_0x46c87c(0x175)](0x0,_0x5a8a23+0x1),_0x509c34),_0x432e08=_0x5ae2d8(_0x1c5993[_0x46c87c(0x175)](_0x5a8a23),_0x509c34);return[..._0x545fd2[_0x46c87c(0x175)](0x0,-0x1),..._0x432e08];}function _0x2be4ec(_0xc5ea9e,_0x155631){let _0x23ce21=_0xc5ea9e[_0x155631],_0x87fae1=_0xc5ea9e[_0x155631+0x1],_0x4306d4=_0xc5ea9e[_0x155631-0x1]??_0x23ce21;return{'x':_0x23ce21['x']+(_0x87fae1['x']-_0x4306d4['x'])/0x6,'y':_0x23ce21['y']+(_0x87fae1['y']-_0x4306d4['y'])/0x6};}function _0x58ba62(_0x5eacaf,_0x35463d){let _0x1f48ba=_0x5eacaf[_0x35463d],_0x22d5f3=_0x5eacaf[_0x35463d-0x1],_0x4323d7=_0x5eacaf[_0x35463d+0x1]??_0x1f48ba;return{'x':_0x1f48ba['x']-(_0x4323d7['x']-_0x22d5f3['x'])/0x6,'y':_0x1f48ba['y']-(_0x4323d7['y']-_0x22d5f3['y'])/0x6};}function _0x498536(_0x26df9e,_0x2edf29){const _0x56cf17=_0x209049;let _0x3a2af9=_0x26df9e['anchors'][_0x2edf29],_0x530efc=_0x26df9e[_0x56cf17(0x1c9)][_0x2edf29-0x1]??(_0x26df9e[_0x56cf17(0x170)]?_0x26df9e[_0x56cf17(0x1c9)][_0x26df9e[_0x56cf17(0x1c9)][_0x56cf17(0x18c)]-0x1]:null),_0x88e31a=_0x26df9e[_0x56cf17(0x1c9)][_0x2edf29+0x1]??(_0x26df9e[_0x56cf17(0x170)]?_0x26df9e[_0x56cf17(0x1c9)][0x0]:null),_0x115f73=_0x530efc&&_0x88e31a?_0x4ba9db({'x':_0x88e31a['x']-_0x530efc['x'],'y':_0x88e31a['y']-_0x530efc['y']}):_0x88e31a?_0x4ba9db({'x':_0x88e31a['x']-_0x3a2af9['x'],'y':_0x88e31a['y']-_0x3a2af9['y']}):_0x530efc?_0x4ba9db({'x':_0x3a2af9['x']-_0x530efc['x'],'y':_0x3a2af9['y']-_0x530efc['y']}):{'x':0x1,'y':0x0},_0x85c7ba=_0x530efc&&_0x88e31a?Math['max'](0x32,_0x2a3c48(_0x530efc,_0x88e31a)/0x4):0x32;return{'in':{'x':_0x3a2af9['x']-_0x115f73['x']*_0x85c7ba,'y':_0x3a2af9['y']-_0x115f73['y']*_0x85c7ba},'out':{'x':_0x3a2af9['x']+_0x115f73['x']*_0x85c7ba,'y':_0x3a2af9['y']+_0x115f73['y']*_0x85c7ba}};}function _0x1924e4(_0x227792,_0xbe6a9d){const _0x12a7f4=_0x209049;let _0x3fef69=_0x227792[_0xbe6a9d],_0x2f4687=_0xbe6a9d==='in'?'out':'in',_0x10fd38=_0x227792[_0x2f4687];if(_0x3fef69){if(_0x227792['pointType']==='symmetric'){_0x227792[_0x2f4687]=_0x149d31(_0x227792,_0x3fef69);return;}_0x227792[_0x12a7f4(0x18a)]===_0x12a7f4(0x1b1)&&(_0x227792[_0x2f4687]=_0x149d31(_0x227792,_0x3fef69,_0x10fd38?_0x2a3c48(_0x227792,_0x10fd38):_0x2a3c48(_0x227792,_0x3fef69)));}}function _0x124485(_0x1827c1,_0x58c30b){const _0x2b1536=_0x209049;let _0x23618e=_0x17dbfb(_0x1827c1);return!_0x58c30b||_0x23618e[_0x2b1536(0x170)]||_0x23618e[_0x2b1536(0x1c9)][_0x2b1536(0x18c)]===0x0||_0x23618e[_0x2b1536(0x1c9)][_0x2b1536(0x199)]({'id':_0x2b1536(0x191),'x':_0x58c30b['x'],'y':_0x58c30b['y'],'pointType':_0x2b1536(0x1c5)}),_0x23618e;}function _0x10ce34(_0x1d3197,_0x313339={}){const _0xca39=_0x209049;let _0x9706c7=Math['max'](0x0,_0x313339['tolerance']??Math[_0xca39(0x1c7)](0x4,_0x1d3197[_0xca39(0x192)]*0.35)),_0x1d13d6=_0x313339[_0xca39(0x1a5)]??(_0xcf0dbd=>'ink-centerline-'+_0xcf0dbd),_0xa9ea1b=_0x5ae2d8(_0x1d3197[_0xca39(0x165)],_0x9706c7),_0x5dfbe2=_0xa9ea1b[_0xca39(0x18f)]((_0x4bbb79,_0x9888b9)=>({'id':_0x1d13d6(_0x9888b9),'x':_0x4bbb79['x'],'y':_0x4bbb79['y'],'pointType':_0xca39(0x163)}));for(let _0x312e83=0x0;_0x312e83<_0x5dfbe2[_0xca39(0x18c)]-0x1;_0x312e83++)_0x5dfbe2[_0x312e83]['out']=_0x2be4ec(_0xa9ea1b,_0x312e83),_0x5dfbe2[_0x312e83+0x1]['in']=_0x58ba62(_0xa9ea1b,_0x312e83+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x5dfbe2};}function _0x471f5a(_0xd0288a,_0x78059d,_0x2bff90){const _0x226190=_0x209049;let _0x2153a3=null,_0x4ca22d=[_0x226190(0x19a),'in',_0x226190(0x17d)];return _0xd0288a[_0x226190(0x1c9)][_0x226190(0x197)]((_0x5c4e56,_0x31ec83)=>{const _0xff3fae=_0x226190;_0x4ca22d[_0xff3fae(0x197)](_0x25cb7d=>{const _0x635936=_0xff3fae;if(!_0x506eed(_0xd0288a,_0x31ec83,_0x25cb7d))return;let _0x1e31ab=_0x309698(_0x5c4e56,_0x25cb7d);if(!_0x1e31ab)return;let _0x286ccb=_0x2a3c48(_0x78059d,_0x1e31ab);_0x286ccb>_0x2bff90||_0x2153a3&&_0x286ccb>=_0x2153a3[_0x635936(0x17f)]||(_0x2153a3={'handle':{'kind':_0x25cb7d,'anchorId':_0x5c4e56['id']},'point':_0x408be4(_0x1e31ab),'distance':_0x286ccb});});}),_0x2153a3;}function _0x585eea(_0x5e679d,_0x266438,_0x285786){const _0x56d2ec=_0x209049;let _0x179717=null,_0x5ba211=_0x5e679d['closed']?_0x5e679d[_0x56d2ec(0x1c9)]['length']:Math[_0x56d2ec(0x1c7)](0x0,_0x5e679d['anchors'][_0x56d2ec(0x18c)]-0x1);for(let _0x59b4b7=0x0;_0x59b4b7<_0x5ba211;_0x59b4b7++){let _0x126619=_0x534204(_0x5e679d,_0x59b4b7);if(!_0x126619)continue;let _0x1866a1=_0x4b7e70(_0x126619,0x0);for(let _0x8f176b=0x1;_0x8f176b<=0x20;_0x8f176b++){let _0x2242ea=_0x4b7e70(_0x126619,_0x8f176b/0x20),_0x142d3a=_0x363282(_0x266438,_0x1866a1,_0x2242ea),_0xc82c50=(_0x8f176b-0x1+_0x142d3a[_0x56d2ec(0x194)])/0x20;(!_0x179717||_0x142d3a[_0x56d2ec(0x17f)]<_0x179717[_0x56d2ec(0x17f)])&&(_0x179717={'segmentIndex':_0x59b4b7,'t':_0xc82c50,'point':_0x142d3a['point'],'distance':_0x142d3a['distance']}),_0x1866a1=_0x2242ea;}}return _0x179717&&_0x179717[_0x56d2ec(0x17f)]<=_0x285786?_0x179717:null;}function _0x1e19bd(_0xaf0b9c,_0x29df55,_0x271779){const _0x1a06aa=_0x209049;let _0x3a99a9=_0x17dbfb(_0xaf0b9c),_0x6a5d69=_0x3a1ced(_0x3a99a9,_0x29df55['segmentIndex']),_0x2e80bf=_0x534204(_0x3a99a9,_0x29df55['segmentIndex']);if(!_0x6a5d69||!_0x2e80bf)return _0x3a99a9;let _0x148dea=_0x33a473(_0x2e80bf,Math['max'](0x0,Math[_0x1a06aa(0x160)](0x1,_0x29df55['t']))),_0x3b99d9={'id':_0x271779(),'x':_0x148dea[_0x1a06aa(0x172)][0x3]['x'],'y':_0x148dea[_0x1a06aa(0x172)][0x3]['y'],'in':_0x408be4(_0x148dea['left'][0x2]),'out':_0x408be4(_0x148dea['right'][0x1]),'pointType':'free'};return _0x3a99a9[_0x1a06aa(0x1c9)][_0x6a5d69[_0x1a06aa(0x1a7)]]['out']=_0x408be4(_0x148dea[_0x1a06aa(0x172)][0x1]),_0x3a99a9[_0x1a06aa(0x1c9)][_0x6a5d69['endIndex']]['in']=_0x408be4(_0x148dea['right'][0x2]),_0x3a99a9[_0x1a06aa(0x1c9)]['splice'](_0x6a5d69[_0x1a06aa(0x1a7)]+0x1,0x0,_0x3b99d9),_0x3a99a9;}function _0x13a497(_0x356d9f,_0x5d00dc){const _0x3c2217=_0x209049;let _0x322c79=_0x17dbfb(_0x356d9f);return _0x322c79[_0x3c2217(0x1c9)]=_0x322c79[_0x3c2217(0x1c9)][_0x3c2217(0x16f)](_0x18a4f8=>_0x18a4f8['id']!==_0x5d00dc),_0x322c79[_0x3c2217(0x170)]&&_0x322c79[_0x3c2217(0x1c9)]['length']<0x3&&(_0x322c79[_0x3c2217(0x170)]=!0x1),_0x322c79;}function _0x3ac87e(_0x18df4c,_0x16cf54,_0x10495a){const _0x55654d=_0x209049;let _0x2c03a3=_0x17dbfb(_0x18df4c),_0x3a9db7=_0x2c03a3[_0x55654d(0x1c9)][_0x55654d(0x1ae)](_0x5ba2b1=>_0x5ba2b1['id']===_0x16cf54),_0x1c85c9=_0x2c03a3['anchors'][_0x3a9db7];if(!_0x1c85c9)return _0x2c03a3;if(_0x1c85c9['pointType']=_0x10495a,_0x10495a===_0x55654d(0x1c5))return delete _0x1c85c9['in'],delete _0x1c85c9[_0x55654d(0x17d)],_0x2c03a3;let _0x4144a0=_0x498536(_0x2c03a3,_0x3a9db7);if(_0x1c85c9['in']=_0x1c85c9['in']?_0x408be4(_0x1c85c9['in']):_0x4144a0['in'],_0x1c85c9[_0x55654d(0x17d)]=_0x1c85c9['out']?_0x408be4(_0x1c85c9[_0x55654d(0x17d)]):_0x4144a0[_0x55654d(0x17d)],_0x10495a===_0x55654d(0x186)){let _0x47a3c8=Math['max'](_0x2a3c48(_0x1c85c9,_0x1c85c9['in']),_0x2a3c48(_0x1c85c9,_0x1c85c9['out']),0x32),_0x1a09f0=_0x4ba9db({'x':_0x1c85c9[_0x55654d(0x17d)]['x']-_0x1c85c9['x'],'y':_0x1c85c9[_0x55654d(0x17d)]['y']-_0x1c85c9['y']});_0x1c85c9[_0x55654d(0x17d)]={'x':_0x1c85c9['x']+_0x1a09f0['x']*_0x47a3c8,'y':_0x1c85c9['y']+_0x1a09f0['y']*_0x47a3c8},_0x1c85c9['in']={'x':_0x1c85c9['x']-_0x1a09f0['x']*_0x47a3c8,'y':_0x1c85c9['y']-_0x1a09f0['y']*_0x47a3c8};}else _0x10495a===_0x55654d(0x1b1)&&_0x1924e4(_0x1c85c9,_0x55654d(0x17d));return _0x2c03a3;}function _0x1dbc80(_0x384264,_0xc2eba4){const _0x3ac203=_0x209049;let _0x45ecbd=_0x384264[_0x3ac203(0x1c9)][_0x3ac203(0x1b0)](_0x5545c9=>_0x5545c9['id']===_0xc2eba4),_0x15f3ea=(_0x45ecbd==null?void 0x0:_0x45ecbd[_0x3ac203(0x18a)])??_0x3ac203(0x1c5);return _0x3ac87e(_0x384264,_0xc2eba4,_0x15f3ea===_0x3ac203(0x1c5)?_0x3ac203(0x1b1):_0x15f3ea===_0x3ac203(0x1b1)?_0x3ac203(0x186):_0x15f3ea==='symmetric'?'free':_0x3ac203(0x1c5));}function _0x24cca5(_0x4c2e77,_0x1d6e8c,_0x57c173){const _0x53df4a=_0x209049;let _0x4ef9d4=_0x17dbfb(_0x4c2e77),_0x58690e=_0x4ef9d4[_0x53df4a(0x1c9)][_0x53df4a(0x1b0)](_0x3366eb=>_0x3366eb['id']===_0x1d6e8c['anchorId']);if(!_0x58690e)return _0x4ef9d4;if(_0x1d6e8c[_0x53df4a(0x1a1)]===_0x53df4a(0x19a)){let _0x4196f3={'x':_0x57c173['x']-_0x58690e['x'],'y':_0x57c173['y']-_0x58690e['y']};return _0x58690e['x']=_0x57c173['x'],_0x58690e['y']=_0x57c173['y'],_0x58690e['in']&&={'x':_0x58690e['in']['x']+_0x4196f3['x'],'y':_0x58690e['in']['y']+_0x4196f3['y']},_0x58690e[_0x53df4a(0x17d)]&&={'x':_0x58690e[_0x53df4a(0x17d)]['x']+_0x4196f3['x'],'y':_0x58690e['out']['y']+_0x4196f3['y']},_0x4ef9d4;}return _0x58690e[_0x1d6e8c[_0x53df4a(0x1a1)]]=_0x408be4(_0x57c173),_0x58690e[_0x53df4a(0x18a)]===_0x53df4a(0x1c5)&&(_0x58690e[_0x53df4a(0x18a)]=_0x53df4a(0x163)),_0x1924e4(_0x58690e,_0x1d6e8c[_0x53df4a(0x1a1)]),_0x4ef9d4;}let _0x64ac07=1e-9;function _0x3ed278(_0x4fcbc5){const _0x47c38b=_0x209049;let _0x384f58=Math[_0x47c38b(0x179)](_0x4fcbc5*0x2710)/0x2710;return Object['is'](_0x384f58,-0x0)?'0':String(_0x384f58);}function _0x5998c7(_0x21d87e){return _0x3ed278(_0x21d87e['x'])+'\x20'+_0x3ed278(_0x21d87e['y']);}function _0x493209(_0x1dd466,_0x30c9cb){return{'x':_0x1dd466['x']-_0x30c9cb['x'],'y':_0x1dd466['y']-_0x30c9cb['y']};}function _0x2996f6(_0x49b736,_0x240f16,_0x85b345,_0x2a0c05,_0x1c7631){let _0x78cd68=0x1-_0x1c7631;return{'x':_0x78cd68*_0x78cd68*_0x78cd68*_0x49b736['x']+0x3*_0x78cd68*_0x78cd68*_0x1c7631*_0x240f16['x']+0x3*_0x78cd68*_0x1c7631*_0x1c7631*_0x85b345['x']+_0x1c7631*_0x1c7631*_0x1c7631*_0x2a0c05['x'],'y':_0x78cd68*_0x78cd68*_0x78cd68*_0x49b736['y']+0x3*_0x78cd68*_0x78cd68*_0x1c7631*_0x240f16['y']+0x3*_0x78cd68*_0x1c7631*_0x1c7631*_0x85b345['y']+_0x1c7631*_0x1c7631*_0x1c7631*_0x2a0c05['y']};}function _0x49eb41(_0x523bcf,_0x55922a,_0x3f6146,_0x1d6cb5){const _0xab73d1=_0x209049;let _0xc495b5=-_0x523bcf+0x3*_0x55922a-0x3*_0x3f6146+_0x1d6cb5,_0x24f224=0x3*_0x523bcf-0x6*_0x55922a+0x3*_0x3f6146,_0x3952f2=-0x3*_0x523bcf+0x3*_0x55922a,_0x1a2ba6=[];if(Math[_0xab73d1(0x1d1)](_0xc495b5)<_0x64ac07){if(Math[_0xab73d1(0x1d1)](_0x24f224)<_0x64ac07)return _0x1a2ba6;let _0x5d3cca=-_0x3952f2/(0x2*_0x24f224);return _0x5d3cca>0x0&&_0x5d3cca<0x1&&_0x1a2ba6[_0xab73d1(0x199)](_0x5d3cca),_0x1a2ba6;}let _0x4487a9=_0x24f224*_0x24f224-0x3*_0xc495b5*_0x3952f2;if(_0x4487a9<0x0)return _0x1a2ba6;let _0x3aa279=Math['sqrt'](Math[_0xab73d1(0x1c7)](0x0,_0x4487a9)),_0x508b62=(-_0x24f224+_0x3aa279)/(0x3*_0xc495b5),_0x121e1a=(-_0x24f224-_0x3aa279)/(0x3*_0xc495b5);return _0x508b62>0x0&&_0x508b62<0x1&&_0x1a2ba6[_0xab73d1(0x199)](_0x508b62),_0x121e1a>0x0&&_0x121e1a<0x1&&Math[_0xab73d1(0x1d1)](_0x121e1a-_0x508b62)>_0x64ac07&&_0x1a2ba6[_0xab73d1(0x199)](_0x121e1a),_0x1a2ba6;}function _0x425b3f(_0x3ff0ad,_0x337d15,_0x2b1dc8,_0x4f6a6f,_0x493356){const _0x2fe95a=_0x209049;_0x3ff0ad[_0x2fe95a(0x199)](_0x337d15,_0x493356),new Set([..._0x49eb41(_0x337d15['x'],_0x2b1dc8['x'],_0x4f6a6f['x'],_0x493356['x']),..._0x49eb41(_0x337d15['y'],_0x2b1dc8['y'],_0x4f6a6f['y'],_0x493356['y'])])[_0x2fe95a(0x197)](_0x311b24=>{const _0x29b27a=_0x2fe95a;_0x3ff0ad[_0x29b27a(0x199)](_0x2996f6(_0x337d15,_0x2b1dc8,_0x4f6a6f,_0x493356,_0x311b24));});}function _0x228368(_0x58f46f){const _0x5327db=_0x209049;let _0x595d08=_0x58f46f['anchors'];if(_0x595d08[_0x5327db(0x18c)]<=0x1)return _0x595d08;let _0x4552b9=[];for(let _0x4a1233=0x1;_0x4a1233<_0x595d08['length'];_0x4a1233++){let _0x326d0d=_0x595d08[_0x4a1233-0x1],_0x944464=_0x595d08[_0x4a1233];_0x425b3f(_0x4552b9,_0x326d0d,_0x326d0d[_0x5327db(0x17d)]??_0x326d0d,_0x944464['in']??_0x944464,_0x944464);}if(_0x58f46f[_0x5327db(0x170)]&&_0x595d08[_0x5327db(0x18c)]>0x1){let _0x2e5375=_0x595d08[_0x595d08[_0x5327db(0x18c)]-0x1],_0x5a2c06=_0x595d08[0x0];_0x425b3f(_0x4552b9,_0x2e5375,_0x2e5375[_0x5327db(0x17d)]??_0x2e5375,_0x5a2c06['in']??_0x5a2c06,_0x5a2c06);}return _0x4552b9;}function _0x5033a(_0xc448e0){const _0x1022be=_0x209049;let _0x1df21d=_0xc448e0['points'];if(_0x1df21d[_0x1022be(0x18c)]<=0x1)return _0x1df21d;let _0x2194dd=[];for(let _0x377c46=0x0;_0x377c46<_0x1df21d[_0x1022be(0x18c)]-0x1;_0x377c46++){let _0x212fe5=_0x1df21d[_0x377c46],_0x42405a=_0x1df21d[_0x377c46+0x1],_0x115332=_0x1df21d[_0x377c46-0x1]??_0x212fe5,_0x14c287=_0x1df21d[_0x377c46+0x2]??_0x42405a;_0x425b3f(_0x2194dd,_0x212fe5,{'x':_0x212fe5['x']+(_0x42405a['x']-_0x115332['x'])/0x6,'y':_0x212fe5['y']+(_0x42405a['y']-_0x115332['y'])/0x6},{'x':_0x42405a['x']-(_0x14c287['x']-_0x212fe5['x'])/0x6,'y':_0x42405a['y']-(_0x14c287['y']-_0x212fe5['y'])/0x6},_0x42405a);}return _0x2194dd;}function _0x505fb5(_0x22d8ea){const _0x5df308=_0x209049;return _0x22d8ea[_0x5df308(0x1a1)]===_0x5df308(0x1ba)?_0x228368(_0x22d8ea):_0x5033a(_0x22d8ea);}function _0x1a3aed(_0x419d69){const _0x210ab7=_0x209049;let _0x5dcd5f=Math[_0x210ab7(0x179)](_0x419d69*0x2710)/0x2710;return Object['is'](_0x5dcd5f,-0x0)?0x0:_0x5dcd5f;}function _0x3884d2(_0x7aacb6){const _0x478141=_0x209049;let _0x52fc41=_0x505fb5(_0x7aacb6);if(_0x52fc41[_0x478141(0x18c)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0xf802f3=Math['min'](..._0x52fc41[_0x478141(0x18f)](_0x3eb8b8=>_0x3eb8b8['x'])),_0x35b971=Math['min'](..._0x52fc41[_0x478141(0x18f)](_0x3e2106=>_0x3e2106['y'])),_0x5ef701=Math['max'](..._0x52fc41['map'](_0x4f05ed=>_0x4f05ed['x'])),_0xdbdf24=Math[_0x478141(0x1c7)](..._0x52fc41[_0x478141(0x18f)](_0x1dde8d=>_0x1dde8d['y']));return{'left':_0x1a3aed(_0xf802f3),'top':_0x1a3aed(_0x35b971),'width':_0x1a3aed(Math['max'](0x1,_0x5ef701-_0xf802f3)),'height':_0x1a3aed(Math[_0x478141(0x1c7)](0x1,_0xdbdf24-_0x35b971))};}function _0x306487(_0x3e5abe,_0x479f8c){const _0x451926=_0x209049;let _0x537a19=_0x3e5abe[_0x451926(0x1c9)];if(_0x537a19[_0x451926(0x18c)]===0x0)return'';let _0x5d48e5=['M\x20'+_0x5998c7(_0x493209(_0x537a19[0x0],_0x479f8c))];for(let _0x2be979=0x1;_0x2be979<_0x537a19['length'];_0x2be979++){let _0x2e8d74=_0x537a19[_0x2be979-0x1],_0x105c90=_0x537a19[_0x2be979],_0x4730d9=_0x2e8d74[_0x451926(0x17d)]??_0x2e8d74,_0x2170d6=_0x105c90['in']??_0x105c90;_0x5d48e5[_0x451926(0x199)]('C\x20'+_0x5998c7(_0x493209(_0x4730d9,_0x479f8c))+'\x20'+_0x5998c7(_0x493209(_0x2170d6,_0x479f8c))+'\x20'+_0x5998c7(_0x493209(_0x105c90,_0x479f8c)));}if(_0x3e5abe[_0x451926(0x170)]&&_0x537a19['length']>0x1){let _0x5e247e=_0x537a19[_0x537a19[_0x451926(0x18c)]-0x1],_0x845c7=_0x537a19[0x0],_0x312e93=_0x5e247e[_0x451926(0x17d)]??_0x5e247e,_0x3a120d=_0x845c7['in']??_0x845c7;_0x5d48e5[_0x451926(0x199)]('C\x20'+_0x5998c7(_0x493209(_0x312e93,_0x479f8c))+'\x20'+_0x5998c7(_0x493209(_0x3a120d,_0x479f8c))+'\x20'+_0x5998c7(_0x493209(_0x845c7,_0x479f8c))),_0x5d48e5[_0x451926(0x199)]('Z');}return _0x5d48e5[_0x451926(0x16d)]('\x20');}function _0x546872(_0x3d57d8,_0x484624){const _0x196df1=_0x209049;let _0x1ad7e1=_0x3d57d8[_0x196df1(0x165)][_0x196df1(0x18f)](_0x24d718=>_0x493209(_0x24d718,_0x484624));if(_0x1ad7e1[_0x196df1(0x18c)]===0x0)return'';if(_0x1ad7e1[_0x196df1(0x18c)]===0x1)return'M\x20'+_0x5998c7(_0x1ad7e1[0x0]);let _0x5b8189=['M\x20'+_0x5998c7(_0x1ad7e1[0x0])];for(let _0x1df3e0=0x0;_0x1df3e0<_0x1ad7e1['length']-0x1;_0x1df3e0++){let _0x50804a=_0x1ad7e1[_0x1df3e0],_0x360077=_0x1ad7e1[_0x1df3e0+0x1],_0x47aae9=_0x1ad7e1[_0x1df3e0-0x1]??_0x50804a,_0x1666bb=_0x1ad7e1[_0x1df3e0+0x2]??_0x360077,_0x26bcd3={'x':_0x50804a['x']+(_0x360077['x']-_0x47aae9['x'])/0x6,'y':_0x50804a['y']+(_0x360077['y']-_0x47aae9['y'])/0x6},_0x1e8b76={'x':_0x360077['x']-(_0x1666bb['x']-_0x50804a['x'])/0x6,'y':_0x360077['y']-(_0x1666bb['y']-_0x50804a['y'])/0x6};_0x5b8189[_0x196df1(0x199)]('C\x20'+_0x5998c7(_0x26bcd3)+'\x20'+_0x5998c7(_0x1e8b76)+'\x20'+_0x5998c7(_0x360077));}return _0x5b8189[_0x196df1(0x16d)]('\x20');}function _0x2c4770(_0x1b61c0,_0x51fa69){const _0x37f286=_0x209049;return _0x1b61c0[_0x37f286(0x1a1)]==='pen'?_0x306487(_0x1b61c0,_0x51fa69):_0x546872(_0x1b61c0,_0x51fa69);}function _0x2f6960(_0x2fbf4f,_0x9fbe22){const _0x5bc7c2=_0x209049;return _0x9fbe22!=null&&_0x9fbe22[_0x5bc7c2(0x196)]?_0x9fbe22['color']:_0x2fbf4f[_0x5bc7c2(0x1a1)]===_0x5bc7c2(0x1ba)?_0x5bc7c2(0x1a6):_0x2fbf4f['color'];}function _0x12f2e8(_0x23a390,_0x48a884){const _0x410d23=_0x209049;return(_0x48a884==null?void 0x0:_0x48a884[_0x410d23(0x192)])===void 0x0?_0x23a390['kind']==='pen'?0x2:_0x23a390[_0x410d23(0x192)]:_0x48a884['width'];}function _0x1b2b7d(_0x5ac9e6,_0x255065){const _0x26db6c=_0x209049;return(_0x255065==null?void 0x0:_0x255065[_0x26db6c(0x177)])===void 0x0?_0x5ac9e6[_0x26db6c(0x1a1)]===_0x26db6c(0x1ba)?void 0x0:_0x5ac9e6[_0x26db6c(0x177)]:_0x255065[_0x26db6c(0x177)];}function _0x1c8b1f(_0x1ecc2f,_0x3a5620){const _0x47235a=_0x209049;let _0x2d0257=_0x3884d2(_0x1ecc2f),_0x5dfac9=_0x2c4770(_0x1ecc2f,{'x':_0x2d0257['left'],'y':_0x2d0257['top']}),_0x5a2f75=_0x1ecc2f[_0x47235a(0x1a1)]===_0x47235a(0x1ba)&&_0x1ecc2f[_0x47235a(0x170)],_0x148218=_0x3a5620==null?void 0x0:_0x3a5620[_0x47235a(0x1c0)];return{'shapeType':_0xce6247['ShapeTypeEnum'][_0x47235a(0x184)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x2d0257['width'],'h':_0x2d0257[_0x47235a(0x1a0)],'fill':_0x5a2f75?_0x47235a(0x1bb):_0x47235a(0x198),'stroke':!0x0,'data':_0x5dfac9,'dataArray':_0xf2eaa2(_0x1ecc2f,{'x':_0x2d0257[_0x47235a(0x172)],'y':_0x2d0257['top']})}]},'fill':_0x5a2f75&&_0x148218?{'color':_0x148218,'fillType':_0xce6247[_0x47235a(0x1ad)][_0x47235a(0x1d6)]}:{'fillType':_0xce6247[_0x47235a(0x1ad)]['NoFill']},'stroke':{'color':_0x2f6960(_0x1ecc2f,_0x3a5620),'width':_0x12f2e8(_0x1ecc2f,_0x3a5620),'opacity':_0x1b2b7d(_0x1ecc2f,_0x3a5620),'lineStrokeType':_0xce6247[_0x47235a(0x182)][_0x47235a(0x15e)],'capType':_0xce6247[_0x47235a(0x188)][_0x47235a(0x189)],'lineJoinType':_0xce6247[_0x47235a(0x1ca)][_0x47235a(0x189)]}};}function _0x269dd9(_0x4055ef,_0x2afe63){return{'x':_0x4055ef['x']-_0x2afe63['x'],'y':_0x4055ef['y']-_0x2afe63['y']};}function _0xf2eaa2(_0x56f777,_0x11b2b8){const _0x30cfc1=_0x209049;if(_0x56f777[_0x30cfc1(0x1a1)]===_0x30cfc1(0x1ba)){let _0x57c128=_0x56f777[_0x30cfc1(0x1c9)];if(_0x57c128[_0x30cfc1(0x18c)]===0x0)return[];let _0x26a7d2=_0x269dd9(_0x57c128[0x0],_0x11b2b8),_0x9ad7d8=[{'command':'M','points':[_0x26a7d2['x'],_0x26a7d2['y']]}];for(let _0x7376fd=0x1;_0x7376fd<_0x57c128['length'];_0x7376fd++){let _0x59ec74=_0x57c128[_0x7376fd-0x1],_0x5d6ce0=_0x57c128[_0x7376fd],_0x1bf8c5=_0x269dd9(_0x59ec74[_0x30cfc1(0x17d)]??_0x59ec74,_0x11b2b8),_0x41d8a3=_0x269dd9(_0x5d6ce0['in']??_0x5d6ce0,_0x11b2b8),_0x569862=_0x269dd9(_0x5d6ce0,_0x11b2b8);_0x9ad7d8['push']({'command':'C','points':[_0x1bf8c5['x'],_0x1bf8c5['y'],_0x41d8a3['x'],_0x41d8a3['y'],_0x569862['x'],_0x569862['y']]});}if(_0x56f777[_0x30cfc1(0x170)]&&_0x57c128[_0x30cfc1(0x18c)]>0x1){let _0x4087a3=_0x57c128[_0x57c128[_0x30cfc1(0x18c)]-0x1],_0xaab7c7=_0x57c128[0x0],_0x1b9081=_0x269dd9(_0x4087a3['out']??_0x4087a3,_0x11b2b8),_0x3d1587=_0x269dd9(_0xaab7c7['in']??_0xaab7c7,_0x11b2b8),_0x5b4965=_0x269dd9(_0xaab7c7,_0x11b2b8);_0x9ad7d8['push']({'command':'C','points':[_0x1b9081['x'],_0x1b9081['y'],_0x3d1587['x'],_0x3d1587['y'],_0x5b4965['x'],_0x5b4965['y']]}),_0x9ad7d8['push']({'command':'z','points':[]});}return _0x9ad7d8;}let _0x3dbccc=_0x56f777['points']['map'](_0x3fa140=>_0x269dd9(_0x3fa140,_0x11b2b8));if(_0x3dbccc[_0x30cfc1(0x18c)]===0x0)return[];let _0x2569dd=[{'command':'M','points':[_0x3dbccc[0x0]['x'],_0x3dbccc[0x0]['y']]}];for(let _0x35bbf4=0x0;_0x35bbf4<_0x3dbccc['length']-0x1;_0x35bbf4++){let _0x1fd555=_0x3dbccc[_0x35bbf4],_0x51b190=_0x3dbccc[_0x35bbf4+0x1],_0x18235f=_0x3dbccc[_0x35bbf4-0x1]??_0x1fd555,_0x454555=_0x3dbccc[_0x35bbf4+0x2]??_0x51b190,_0x241cbb={'x':_0x1fd555['x']+(_0x51b190['x']-_0x18235f['x'])/0x6,'y':_0x1fd555['y']+(_0x51b190['y']-_0x18235f['y'])/0x6},_0x377dd9={'x':_0x51b190['x']-(_0x454555['x']-_0x1fd555['x'])/0x6,'y':_0x51b190['y']-(_0x454555['y']-_0x1fd555['y'])/0x6};_0x2569dd['push']({'command':'C','points':[_0x241cbb['x'],_0x241cbb['y'],_0x377dd9['x'],_0x377dd9['y'],_0x51b190['x'],_0x51b190['y']]});}return _0x2569dd;}function _0x508a1e(_0x3e539b){const _0x5ce089=_0x209049;let {model:_0x13f15f,sourceModel:_0x425e1a=_0x13f15f,style:_0x3c5c87}=_0x3e539b,_0x3768bd=_0x3e539b['tool']??_0x13f15f[_0x5ce089(0x1a1)],_0x3416f4=_0x3884d2(_0x13f15f),_0x138d1e=_0x13f15f[_0x5ce089(0x1a1)]===_0x5ce089(0x1ba)&&_0x3768bd!=='pen'?_0x13f15f:void 0x0;return{'transform':{..._0x3416f4,'rotation':0x0},'shapeData':_0x1c8b1f(_0x13f15f,_0x3c5c87),'ink':{'version':0x1,'tool':_0x3768bd,'sourceModel':_0x425e1a,..._0x138d1e?{'editModel':_0x138d1e}:{},'normalizedBounds':_0x3416f4}};}var _0x2dff73=_0x209049(0x16e),_0x5c1487=_0x209049(0x15d);function _0x5733e1(_0x1c14c8){'@babel/helpers - typeof';const _0x332074=_0x209049;return _0x5733e1=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x332074(0x181)?function(_0x39a57b){return typeof _0x39a57b;}:function(_0x54312d){const _0xb4ae4b=_0x332074;return _0x54312d&&typeof Symbol=='function'&&_0x54312d[_0xb4ae4b(0x16a)]===Symbol&&_0x54312d!==Symbol[_0xb4ae4b(0x1a2)]?_0xb4ae4b(0x181):typeof _0x54312d;},_0x5733e1(_0x1c14c8);}function _0x4976ac(_0x576cee,_0xc0cd5a){const _0x5b4237=_0x209049;if(_0x5733e1(_0x576cee)!=_0x5b4237(0x195)||!_0x576cee)return _0x576cee;var _0x26e75d=_0x576cee[Symbol['toPrimitive']];if(_0x26e75d!==void 0x0){var _0x3bd926=_0x26e75d[_0x5b4237(0x1ab)](_0x576cee,_0xc0cd5a||_0x5b4237(0x1cb));if(_0x5733e1(_0x3bd926)!=_0x5b4237(0x195))return _0x3bd926;throw TypeError(_0x5b4237(0x1bd));}return(_0xc0cd5a===_0x5b4237(0x166)?String:Number)(_0x576cee);}function _0x1b458f(_0x256fc7){const _0x144c74=_0x209049;var _0x4cc2b7=_0x4976ac(_0x256fc7,_0x144c74(0x166));return _0x5733e1(_0x4cc2b7)=='symbol'?_0x4cc2b7:_0x4cc2b7+'';}function _0x1b5b5a(_0x194100,_0x4639b2,_0x33ac52){const _0x183523=_0x209049;return(_0x4639b2=_0x1b458f(_0x4639b2))in _0x194100?Object[_0x183523(0x16c)](_0x194100,_0x4639b2,{'value':_0x33ac52,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x194100[_0x4639b2]=_0x33ac52,_0x194100;}let _0x4d2707=(0x0,_0x24f568[_0x209049(0x1c8)])(_0x209049(0x1c1));var _0x35ffee=class{constructor(){const _0x24843e=_0x209049;_0x1b5b5a(this,_0x24843e(0x193),[]);}['registerAdapter'](_0x436494){const _0x3a703c=_0x209049;return this[_0x3a703c(0x193)][_0x3a703c(0x199)](_0x436494),(0x0,_0x24f568[_0x3a703c(0x15f)])(()=>{const _0x4f6676=_0x3a703c;let _0x48f3aa=this[_0x4f6676(0x193)][_0x4f6676(0x19f)](_0x436494);_0x48f3aa>=0x0&&this[_0x4f6676(0x193)][_0x4f6676(0x17e)](_0x48f3aa,0x1);});}['beginInkMode'](_0x36ead1){const _0x18d6eb=_0x209049;for(let _0x52f9fb of this[_0x18d6eb(0x193)])if(_0x52f9fb[_0x18d6eb(0x1d2)](_0x36ead1))return!0x0;return!0x1;}async[_0x209049(0x1b8)](_0x45d50d){const _0x1ebb4e=_0x209049;for(let _0x35976c of this[_0x1ebb4e(0x193)])if(_0x35976c[_0x1ebb4e(0x1b8)]&&await _0x35976c[_0x1ebb4e(0x1b8)](_0x45d50d))return!0x0;return!0x1;}};let _0x14f9ab={'id':'ink.operation.start','type':_0x24f568[_0x209049(0x187)]['OPERATION'],'handler':(_0x1b1788,_0x4f3b0b)=>_0x4f3b0b?_0x1b1788[_0x209049(0x19b)](_0x4d2707)['beginInkMode'](_0x4f3b0b):!0x1},_0x5195eb={};function _0x24e825(_0xb6106,_0x5aad6f){return function(_0x36c6e6,_0x345322){_0x5aad6f(_0x36c6e6,_0x345322,_0xb6106);};}function _0x1eded6(_0x4d8b70,_0x1c9421,_0x42b420,_0x1b216d){const _0x52f9f6=_0x209049;var _0x5b5bdf=arguments[_0x52f9f6(0x18c)],_0x41026e=_0x5b5bdf<0x3?_0x1c9421:_0x1b216d===null?_0x1b216d=Object[_0x52f9f6(0x190)](_0x1c9421,_0x42b420):_0x1b216d,_0x515fe1;if(typeof Reflect==_0x52f9f6(0x195)&&typeof Reflect[_0x52f9f6(0x1b9)]==_0x52f9f6(0x161))_0x41026e=Reflect[_0x52f9f6(0x1b9)](_0x4d8b70,_0x1c9421,_0x42b420,_0x1b216d);else{for(var _0x4d4b61=_0x4d8b70['length']-0x1;_0x4d4b61>=0x0;_0x4d4b61--)(_0x515fe1=_0x4d8b70[_0x4d4b61])&&(_0x41026e=(_0x5b5bdf<0x3?_0x515fe1(_0x41026e):_0x5b5bdf>0x3?_0x515fe1(_0x1c9421,_0x42b420,_0x41026e):_0x515fe1(_0x1c9421,_0x42b420))||_0x41026e);}return _0x5b5bdf>0x3&&_0x41026e&&Object[_0x52f9f6(0x16c)](_0x1c9421,_0x42b420,_0x41026e),_0x41026e;}let _0x39a36f=class extends _0x24f568['Plugin']{constructor(_0x264127=_0x5195eb,_0x3e5817,_0x2d7c89,_0x3f3ff4){const _0x31e39d=_0x209049;super(),this[_0x31e39d(0x1a9)]=_0x264127,this[_0x31e39d(0x19c)]=_0x3e5817,this[_0x31e39d(0x180)]=_0x2d7c89,this[_0x31e39d(0x17c)]=_0x3f3ff4;let {..._0x315123}=(0x0,_0x24f568[_0x31e39d(0x18b)])({},_0x5195eb,this['_config']);this['_configService']['setConfig']('ink.config',_0x315123);}[_0x209049(0x171)](){const _0x417317=_0x209049;[[_0x4d2707,{'useClass':_0x35ffee}]][_0x417317(0x197)](_0x4e702b=>this[_0x417317(0x19c)][_0x417317(0x1ce)](_0x4e702b)),this[_0x417317(0x19e)](this['_commandService'][_0x417317(0x1cf)](_0x14f9ab));}};_0x1b5b5a(_0x39a36f,_0x209049(0x1bc),_0x209049(0x164)),_0x1b5b5a(_0x39a36f,'packageName',_0x2dff73),_0x1b5b5a(_0x39a36f,_0x209049(0x1c2),_0x5c1487),_0x1b5b5a(_0x39a36f,_0x209049(0x1a4),_0x24f568[_0x209049(0x1b6)][_0x209049(0x1be)]),_0x39a36f=_0x1eded6([(0x0,_0x24f568['DependentOn'])(_0x27d04f['UniverLicensePlugin']),_0x24e825(0x1,(0x0,_0x24f568[_0x209049(0x1c4)])(_0x24f568[_0x209049(0x1b4)])),_0x24e825(0x2,_0x24f568[_0x209049(0x1d3)]),_0x24e825(0x3,_0x24f568[_0x209049(0x19d)])],_0x39a36f),_0x2d23a4[_0x209049(0x18d)]=_0x4d2707,Object[_0x209049(0x16c)](_0x2d23a4,_0x209049(0x174),{'enumerable':!0x0,'get':function(){return _0x39a36f;}}),_0x2d23a4['buildInkCustomShapePayload']=_0x508a1e,_0x2d23a4[_0x209049(0x168)]=_0x10ce34,_0x2d23a4[_0x209049(0x162)]=_0x1dbc80,_0x2d23a4[_0x209049(0x176)]=_0x13a497,_0x2d23a4[_0x209049(0x1af)]=_0x471f5a,_0x2d23a4[_0x209049(0x1b5)]=_0x585eea,_0x2d23a4[_0x209049(0x17b)]=_0x3884d2,_0x2d23a4['getInkPenPreviewModel']=_0x124485,_0x2d23a4['insertInkPenAnchorAt']=_0x1e19bd,_0x2d23a4[_0x209049(0x1d0)]=_0x506eed,_0x2d23a4['moveInkPenAnchorPoint']=_0x24cca5,_0x2d23a4[_0x209049(0x1b2)]=_0x3ac87e;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/ink",
3
- "version": "1.0.0-rc.0",
3
+ "version": "1.0.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.0-rc.0",
62
- "@univerjs-pro/engine-shape": "1.0.0-rc.0",
63
- "@univerjs-pro/license": "1.0.0-rc.0",
64
- "@univerjs/core": "1.0.0-rc.0"
61
+ "@univerjs-pro/boards": "1.0.0",
62
+ "@univerjs-pro/engine-shape": "1.0.0",
63
+ "@univerjs-pro/license": "1.0.0",
64
+ "@univerjs/core": "1.0.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@univerjs-infra/shared": "1.0.0-rc.0",
67
+ "@univerjs-infra/shared": "1.0.0",
68
68
  "typescript": "^6.0.3",
69
- "vitest": "^4.1.11"
69
+ "vitest": "^5.0.0"
70
70
  },
71
71
  "scripts": {
72
72
  "test": "vitest run",