@univerjs-pro/ink 1.0.0-alpha.3

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/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # @univerjs-pro/ink
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@univerjs-pro/ink?style=flat-square)](https://npmjs.com/package/@univerjs-pro/ink)
4
+ [![license](https://img.shields.io/npm/l/@univerjs-pro/ink?style=flat-square)](https://npmjs.com/package/@univerjs-pro/ink)
5
+ [![downloads](https://img.shields.io/npm/dm/@univerjs-pro/ink?style=flat-square)](https://npmjs.com/package/@univerjs-pro/ink)
6
+
7
+ `@univerjs-pro/ink` is part of Univer Pro. Reusable ink model and geometry integration for Univer.
8
+
9
+ ## Package Overview
10
+
11
+ | Package | UMD global | CSS | Locales | Facade entry |
12
+ | --- | --- | :---: | :---: | :---: |
13
+ | `@univerjs-pro/ink` | `UniverProInk` | No | No | No |
14
+
15
+ ## Installation
16
+
17
+ ```sh
18
+ pnpm add @univerjs-pro/ink
19
+ # or
20
+ npm install @univerjs-pro/ink
21
+ ```
22
+
23
+ Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
24
+
25
+ ## Usage
26
+
27
+ ```ts
28
+ import { UniverInkPlugin } from '@univerjs-pro/ink';
29
+
30
+ univer.registerPlugin(UniverInkPlugin);
31
+ ```
32
+
33
+ ## Integration Notes
34
+
35
+ - Keep this package on the same version as the other `@univerjs/*` and `@univerjs-pro/*` packages in your application.
36
+
37
+ ## Resources
38
+
39
+ - [Documentation](https://docs.univer.ai/guides/pro)
40
+ - [NPM package](https://npmjs.com/package/@univerjs-pro/ink)
@@ -0,0 +1 @@
1
+ const _0x492546=_0x254d;(function(_0x17087e,_0x1ab369){const _0x1083bc=_0x254d,_0x174350=_0x17087e();while(!![]){try{const _0x21bc32=-parseInt(_0x1083bc(0x7c))/0x1*(-parseInt(_0x1083bc(0x99))/0x2)+parseInt(_0x1083bc(0x81))/0x3*(parseInt(_0x1083bc(0x8f))/0x4)+-parseInt(_0x1083bc(0x9c))/0x5*(parseInt(_0x1083bc(0x73))/0x6)+parseInt(_0x1083bc(0xa1))/0x7*(-parseInt(_0x1083bc(0x98))/0x8)+parseInt(_0x1083bc(0x7a))/0x9+parseInt(_0x1083bc(0x7f))/0xa+parseInt(_0x1083bc(0x70))/0xb;if(_0x21bc32===_0x1ab369)break;else _0x174350['push'](_0x174350['shift']());}catch(_0x1166e8){_0x174350['push'](_0x174350['shift']());}}}(_0x11b7,0x82548),Object[_0x492546(0xaa)](exports,Symbol[_0x492546(0xa6)],{'value':_0x492546(0x96)}));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[_0x492546(0x80)]{[_0x492546(0x7b)](_0x692625){const _0x4546c2=_0x492546;let _0x50948d=o(_0x692625);return _0x50948d&&this[_0x4546c2(0x77)](_0x50948d,{'insertIndex':_0x692625[_0x4546c2(0xab)]})?_0x50948d:null;}['getInks'](){const _0x5b277b=_0x492546;return this['findElements']({'elementType':e[_0x5b277b(0x92)]['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x5b277b(0x91)](f);}};function _0x254d(_0x151135,_0x5a163f){_0x151135=_0x151135-0x70;const _0x11b7fe=_0x11b7();let _0x254d4b=_0x11b7fe[_0x151135];return _0x254d4b;}function o(_0x1ef229,_0x3a1197){const _0x5c1978=_0x492546;var _0x390744,_0x32aca4,_0x5318a7;if(!c(_0x1ef229['model'])||_0x1ef229[_0x5c1978(0xa5)]!==void 0x0&&!c(_0x1ef229[_0x5c1978(0xa5)])||!l(_0x1ef229[_0x5c1978(0x87)]))return null;let _0x3074dc=(_0x390744=_0x1ef229[_0x5c1978(0x7e)])==null?_0x3a1197==null?void 0x0:_0x3a1197[_0x5c1978(0x7e)]:_0x390744,_0x30feb1=r['Tools'][_0x5c1978(0xa8)](_0x1ef229[_0x5c1978(0x93)]),_0x325eac=(0x0,n[_0x5c1978(0x9a)])({'model':_0x30feb1,'style':_0x1ef229[_0x5c1978(0x87)],'tool':_0x1ef229[_0x5c1978(0x74)],'sourceModel':_0x1ef229[_0x5c1978(0xa5)]?r[_0x5c1978(0xa7)][_0x5c1978(0xa8)](_0x1ef229['sourceModel']):_0x30feb1}),_0x4690dd=u(_0x3a1197==null?void 0x0:_0x3a1197[_0x5c1978(0x9f)]);return{'id':(_0x32aca4=(_0x5318a7=_0x3a1197==null?void 0x0:_0x3a1197['id'])==null?_0x1ef229['id']:_0x5318a7)==null?(0x0,r[_0x5c1978(0xac)])(0x6):_0x32aca4,'type':e[_0x5c1978(0x92)]['Shape'],'transform':_0x325eac[_0x5c1978(0x72)],'shapeData':_0x325eac[_0x5c1978(0x94)],'parentId':_0x3074dc==null?void 0x0:_0x3074dc,'laneId':_0x1ef229[_0x5c1978(0x9b)]===void 0x0?_0x3a1197==null?void 0x0:_0x3a1197[_0x5c1978(0x9b)]:_0x1ef229['laneId'],'custom':{..._0x4690dd,'ink':_0x325eac['ink']}};}function s(_0x2e3157){const _0x342b41=_0x492546;return Number[_0x342b41(0x8d)](_0x2e3157['x'])&&Number[_0x342b41(0x8d)](_0x2e3157['y']);}function c(_0x225eb5){const _0x1d649f=_0x492546;if(_0x225eb5[_0x1d649f(0x85)]===_0x1d649f(0x82)){let _0x1dc007=new Set();return _0x225eb5[_0x1d649f(0x9d)]['length']>=(_0x225eb5['closed']?0x3:0x2)&&_0x225eb5['anchors'][_0x1d649f(0x7d)](_0x484827=>{const _0x12cee9=_0x1d649f;let _0x80ec29=_0x484827['id'][_0x12cee9(0x90)]()[_0x12cee9(0xa2)]>0x0&&!_0x1dc007['has'](_0x484827['id'])&&s(_0x484827)&&(!_0x484827['in']||s(_0x484827['in']))&&(!_0x484827['out']||s(_0x484827['out']));return _0x1dc007[_0x12cee9(0x89)](_0x484827['id']),_0x80ec29;});}return _0x225eb5[_0x1d649f(0xa3)]['length']>=0x2&&_0x225eb5[_0x1d649f(0xa3)][_0x1d649f(0x7d)](_0x12c308=>s(_0x12c308)&&Number[_0x1d649f(0x8d)](_0x12c308['t'])&&(_0x12c308[_0x1d649f(0x88)]===void 0x0||Number[_0x1d649f(0x8d)](_0x12c308[_0x1d649f(0x88)])))&&Number[_0x1d649f(0x8d)](_0x225eb5[_0x1d649f(0x8c)])&&_0x225eb5['width']>0x0&&Number[_0x1d649f(0x8d)](_0x225eb5[_0x1d649f(0x76)])&&_0x225eb5[_0x1d649f(0x76)]>=0x0&&_0x225eb5[_0x1d649f(0x76)]<=0x1;}function l(_0x22c65b){const _0x45f81b=_0x492546;return _0x22c65b===void 0x0||(_0x22c65b[_0x45f81b(0x8c)]===void 0x0||Number[_0x45f81b(0x8d)](_0x22c65b['width'])&&_0x22c65b['width']>0x0)&&(_0x22c65b[_0x45f81b(0x76)]===void 0x0||Number[_0x45f81b(0x8d)](_0x22c65b['opacity'])&&_0x22c65b['opacity']>=0x0&&_0x22c65b[_0x45f81b(0x76)]<=0x1);}function u(_0x282458){const _0x834d41=_0x492546;return _0x282458&&typeof _0x282458==_0x834d41(0xa4)&&!Array[_0x834d41(0x95)](_0x282458)?_0x282458:{};}function d(_0x38dfb2){const _0x559860=_0x492546;let _0x2a9496=u(_0x38dfb2['custom'])['ink'];if(!_0x2a9496||typeof _0x2a9496!=_0x559860(0xa4)||Array[_0x559860(0x95)](_0x2a9496))return null;let _0x949ca9=_0x2a9496;return _0x949ca9[_0x559860(0x79)]===0x1&&_0x949ca9[_0x559860(0xa5)]&&typeof _0x949ca9[_0x559860(0xa5)]=='object'?_0x949ca9:null;}function f(_0x58ea03){const _0x554e3b=_0x492546;return _0x58ea03['type']===e[_0x554e3b(0x92)][_0x554e3b(0x8b)]&&!!d(_0x58ea03);}t[_0x492546(0x80)][_0x492546(0x97)](a);function _0x11b7(){const _0x40d1fd=['toStringTag','Tools','deepClone','out','defineProperty','insertIndex','generateRandomId','519222CTYgOZ','free','transform','67044tSwYVh','tool','BoardInkHandleKind','opacity','addElement','BoardInkPointType','version','6261120yYaRTz','insertInk','999587yTZhWC','every','parentId','447480eTKeFH','FBoard','63QxSUbd','pen','brush','anchor','kind','BoardInkTool','style','pressure','add','highlighter','Shape','width','isFinite','smooth','28504XPYSKi','trim','filter','BoardElementType','model','shapeData','isArray','Module','extend','216kSmtzu','2TAojTm','buildInkCustomShapePayload','laneId','165HZysjp','anchors','symmetric','custom','corner','268149flKagd','length','points','object','sourceModel'];_0x11b7=function(){return _0x40d1fd;};return _0x11b7();}const p={'Pen':_0x492546(0x82),'Brush':_0x492546(0x83),'Highlighter':_0x492546(0x8a)},m={'Corner':_0x492546(0xa0),'Smooth':_0x492546(0x8e),'Symmetric':_0x492546(0x9e),'Free':_0x492546(0x71)},h={'Anchor':_0x492546(0x84),'In':'in','Out':_0x492546(0xa9)};var g=class extends i['FEnum']{get[_0x492546(0x86)](){return p;}get[_0x492546(0x78)](){return m;}get['BoardInkHandleKind'](){return h;}};i['FEnum'][_0x492546(0x97)](g),exports[_0x492546(0x75)]=h,exports[_0x492546(0x78)]=m,exports[_0x492546(0x86)]=p;
@@ -0,0 +1 @@
1
+ const _0x28f2e6=_0x5a6d;(function(_0x1106e2,_0x2d27ce){const _0x210409=_0x5a6d,_0xa89cd9=_0x1106e2();while(!![]){try{const _0x436c47=-parseInt(_0x210409(0x182))/0x1*(parseInt(_0x210409(0x123))/0x2)+parseInt(_0x210409(0x172))/0x3+-parseInt(_0x210409(0x18a))/0x4+parseInt(_0x210409(0x13b))/0x5+parseInt(_0x210409(0x156))/0x6*(parseInt(_0x210409(0x184))/0x7)+-parseInt(_0x210409(0x14b))/0x8*(-parseInt(_0x210409(0x177))/0x9)+-parseInt(_0x210409(0x149))/0xa*(parseInt(_0x210409(0x15c))/0xb);if(_0x436c47===_0x2d27ce)break;else _0xa89cd9['push'](_0xa89cd9['shift']());}catch(_0x530623){_0xa89cd9['push'](_0xa89cd9['shift']());}}}(_0x3435,0xcfe1a),Object[_0x28f2e6(0x140)](exports,Symbol['toStringTag'],{'value':_0x28f2e6(0x189)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0xfaa202){return{'x':_0xfaa202['x'],'y':_0xfaa202['y']};}function a(_0x396394){const _0x3dcb64=_0x28f2e6;return{..._0x396394,'in':_0x396394['in']?i(_0x396394['in']):void 0x0,'out':_0x396394[_0x3dcb64(0x14c)]?i(_0x396394['out']):void 0x0};}function o(_0x323d3d){const _0x520943=_0x28f2e6;return{'kind':_0x520943(0x125),'closed':_0x323d3d['closed'],'anchors':_0x323d3d[_0x520943(0x120)]['map'](a)};}function s(_0x317bf5,_0x1d07a8,_0x4a0440){return{'x':_0x317bf5['x']+(_0x1d07a8['x']-_0x317bf5['x'])*_0x4a0440,'y':_0x317bf5['y']+(_0x1d07a8['y']-_0x317bf5['y'])*_0x4a0440};}function c(_0x25a799,_0x50ad6e){const _0x585dac=_0x28f2e6;return Math[_0x585dac(0x16d)](_0x25a799['x']-_0x50ad6e['x'],_0x25a799['y']-_0x50ad6e['y']);}function l(_0x406a4a){const _0x50839e=_0x28f2e6;let _0x14eaf1=Math[_0x50839e(0x16d)](_0x406a4a['x'],_0x406a4a['y']);return _0x14eaf1<r?{'x':0x1,'y':0x0}:{'x':_0x406a4a['x']/_0x14eaf1,'y':_0x406a4a['y']/_0x14eaf1};}function u(_0x4f61c7,_0x207931,_0x338c50=c(_0x4f61c7,_0x207931)){let _0x698253=l({'x':_0x4f61c7['x']-_0x207931['x'],'y':_0x4f61c7['y']-_0x207931['y']});return{'x':_0x4f61c7['x']+_0x698253['x']*_0x338c50,'y':_0x4f61c7['y']+_0x698253['y']*_0x338c50};}function d(_0x16f3c4,_0x18160a){const _0x1fc87d=_0x28f2e6;let {anchors:_0x57cc89}=_0x16f3c4;return _0x57cc89[_0x1fc87d(0x13d)]<0x2||_0x18160a<0x0?null:_0x18160a<_0x57cc89['length']-0x1?{'startIndex':_0x18160a,'endIndex':_0x18160a+0x1,'start':_0x57cc89[_0x18160a],'end':_0x57cc89[_0x18160a+0x1]}:_0x16f3c4[_0x1fc87d(0x175)]&&_0x18160a===_0x57cc89[_0x1fc87d(0x13d)]-0x1?{'startIndex':_0x57cc89[_0x1fc87d(0x13d)]-0x1,'endIndex':0x0,'start':_0x57cc89[_0x57cc89['length']-0x1],'end':_0x57cc89[0x0]}:null;}function f(_0x3d3407,_0x49ae61){const _0x36b98a=_0x28f2e6;var _0x5b0999,_0x1a1bf7;let _0x47d9d3=d(_0x3d3407,_0x49ae61);return _0x47d9d3?[_0x47d9d3['start'],(_0x5b0999=_0x47d9d3[_0x36b98a(0x13c)][_0x36b98a(0x14c)])==null?_0x47d9d3[_0x36b98a(0x13c)]:_0x5b0999,(_0x1a1bf7=_0x47d9d3['end']['in'])==null?_0x47d9d3['end']:_0x1a1bf7,_0x47d9d3[_0x36b98a(0x15b)]]:null;}function ee(_0xeeb525,_0x27a30f){const _0x59addf=_0x28f2e6;var _0x15cbd0;return _0x27a30f===_0x59addf(0x142)?_0xeeb525:(_0x15cbd0=_0xeeb525[_0x27a30f])==null?null:_0x15cbd0;}function p(_0xf3d110,_0x292eb2,_0x3b9c8a){const _0x767940=_0x28f2e6;return _0x3b9c8a===_0x767940(0x142)||_0xf3d110[_0x767940(0x175)]?!0x0:_0x3b9c8a==='in'?_0x292eb2>0x0:_0x292eb2<_0xf3d110[_0x767940(0x120)][_0x767940(0x13d)]-0x1;}function m(_0x9265a,_0x579566){let [_0x350215,_0x5601a0,_0x3ed547,_0x54f007]=_0x9265a,_0x15eb2f=s(_0x350215,_0x5601a0,_0x579566),_0x3c99fb=s(_0x5601a0,_0x3ed547,_0x579566),_0x29fbc7=s(_0x3ed547,_0x54f007,_0x579566);return s(s(_0x15eb2f,_0x3c99fb,_0x579566),s(_0x3c99fb,_0x29fbc7,_0x579566),_0x579566);}function h(_0x140f7a,_0x3a0cb1){let [_0x538b26,_0x76bcd6,_0x337f20,_0x4024f4]=_0x140f7a,_0x526da0=s(_0x538b26,_0x76bcd6,_0x3a0cb1),_0xe0df78=s(_0x76bcd6,_0x337f20,_0x3a0cb1),_0x8889e5=s(_0x337f20,_0x4024f4,_0x3a0cb1),_0x47181f=s(_0x526da0,_0xe0df78,_0x3a0cb1),_0x432896=s(_0xe0df78,_0x8889e5,_0x3a0cb1),_0x3e70a0=s(_0x47181f,_0x432896,_0x3a0cb1);return{'left':[_0x538b26,_0x526da0,_0x47181f,_0x3e70a0],'right':[_0x3e70a0,_0x432896,_0x8889e5,_0x4024f4]};}function g(_0x359cf1,_0x1b835d,_0x2d69dd){const _0x5adcaf=_0x28f2e6;let _0x18dc3d=_0x2d69dd['x']-_0x1b835d['x'],_0x5eabd8=_0x2d69dd['y']-_0x1b835d['y'],_0x5aa504=_0x18dc3d*_0x18dc3d+_0x5eabd8*_0x5eabd8,_0xe33a31=_0x5aa504<=r?0x0:Math[_0x5adcaf(0x11f)](0x0,Math[_0x5adcaf(0x17e)](0x1,((_0x359cf1['x']-_0x1b835d['x'])*_0x18dc3d+(_0x359cf1['y']-_0x1b835d['y'])*_0x5eabd8)/_0x5aa504)),_0x213246={'x':_0x1b835d['x']+_0x18dc3d*_0xe33a31,'y':_0x1b835d['y']+_0x5eabd8*_0xe33a31};return{'point':_0x213246,'ratio':_0xe33a31,'distance':c(_0x359cf1,_0x213246)};}function te(_0x48e7c6,_0x8d89b5,_0x3489ae){return g(_0x48e7c6,_0x8d89b5,_0x3489ae)['distance']**0x2;}function _(_0x254d36,_0x12299b){const _0x44b29a=_0x28f2e6;if(_0x254d36['length']<=0x2)return _0x254d36[_0x44b29a(0x124)](i);let _0x2c5ec3=0x0,_0x2a48a5=0x0,_0x55dca4=_0x254d36[0x0],_0x3ffcb8=_0x254d36[_0x254d36['length']-0x1],_0x10bbb7=_0x12299b*_0x12299b;for(let _0x420157=0x1;_0x420157<_0x254d36[_0x44b29a(0x13d)]-0x1;_0x420157++){let _0x3663bb=te(_0x254d36[_0x420157],_0x55dca4,_0x3ffcb8);_0x3663bb>_0x2c5ec3&&(_0x2c5ec3=_0x3663bb,_0x2a48a5=_0x420157);}if(_0x2c5ec3<=_0x10bbb7)return[i(_0x55dca4),i(_0x3ffcb8)];let _0x520702=_(_0x254d36[_0x44b29a(0x128)](0x0,_0x2a48a5+0x1),_0x12299b),_0x1c27d8=_(_0x254d36['slice'](_0x2a48a5),_0x12299b);return[..._0x520702['slice'](0x0,-0x1),..._0x1c27d8];}function ne(_0x223d9d,_0x469f50){var _0x5bd169;let _0x2236f3=_0x223d9d[_0x469f50],_0x301c6e=_0x223d9d[_0x469f50+0x1],_0x42f7c3=(_0x5bd169=_0x223d9d[_0x469f50-0x1])==null?_0x2236f3:_0x5bd169;return{'x':_0x2236f3['x']+(_0x301c6e['x']-_0x42f7c3['x'])/0x6,'y':_0x2236f3['y']+(_0x301c6e['y']-_0x42f7c3['y'])/0x6};}function v(_0x3afde8,_0x3b2456){var _0x530785;let _0x5192c1=_0x3afde8[_0x3b2456],_0x182c3e=_0x3afde8[_0x3b2456-0x1],_0x1416d6=(_0x530785=_0x3afde8[_0x3b2456+0x1])==null?_0x5192c1:_0x530785;return{'x':_0x5192c1['x']-(_0x1416d6['x']-_0x182c3e['x'])/0x6,'y':_0x5192c1['y']-(_0x1416d6['y']-_0x182c3e['y'])/0x6};}function y(_0x2755a7,_0x521856){const _0x1cefce=_0x28f2e6;var _0x35b2a1,_0x20cd8c;let _0x1ba479=_0x2755a7[_0x1cefce(0x120)][_0x521856],_0xbc1ea9=(_0x35b2a1=_0x2755a7['anchors'][_0x521856-0x1])==null?_0x2755a7[_0x1cefce(0x175)]?_0x2755a7['anchors'][_0x2755a7[_0x1cefce(0x120)][_0x1cefce(0x13d)]-0x1]:null:_0x35b2a1,_0x1f1e61=(_0x20cd8c=_0x2755a7[_0x1cefce(0x120)][_0x521856+0x1])==null?_0x2755a7['closed']?_0x2755a7[_0x1cefce(0x120)][0x0]:null:_0x20cd8c,_0x571be7=_0xbc1ea9&&_0x1f1e61?l({'x':_0x1f1e61['x']-_0xbc1ea9['x'],'y':_0x1f1e61['y']-_0xbc1ea9['y']}):_0x1f1e61?l({'x':_0x1f1e61['x']-_0x1ba479['x'],'y':_0x1f1e61['y']-_0x1ba479['y']}):_0xbc1ea9?l({'x':_0x1ba479['x']-_0xbc1ea9['x'],'y':_0x1ba479['y']-_0xbc1ea9['y']}):{'x':0x1,'y':0x0},_0x37694d=_0xbc1ea9&&_0x1f1e61?Math[_0x1cefce(0x11f)](0x32,c(_0xbc1ea9,_0x1f1e61)/0x4):0x32;return{'in':{'x':_0x1ba479['x']-_0x571be7['x']*_0x37694d,'y':_0x1ba479['y']-_0x571be7['y']*_0x37694d},'out':{'x':_0x1ba479['x']+_0x571be7['x']*_0x37694d,'y':_0x1ba479['y']+_0x571be7['y']*_0x37694d}};}function b(_0x24d1ab,_0x586209){const _0x3d344f=_0x28f2e6;let _0x2b10c4=_0x24d1ab[_0x586209],_0x1454d6=_0x586209==='in'?_0x3d344f(0x14c):'in',_0x136a73=_0x24d1ab[_0x1454d6];if(_0x2b10c4){if(_0x24d1ab[_0x3d344f(0x173)]===_0x3d344f(0x11c)){_0x24d1ab[_0x1454d6]=u(_0x24d1ab,_0x2b10c4);return;}_0x24d1ab['pointType']===_0x3d344f(0x176)&&(_0x24d1ab[_0x1454d6]=u(_0x24d1ab,_0x2b10c4,_0x136a73?c(_0x24d1ab,_0x136a73):c(_0x24d1ab,_0x2b10c4)));}}function x(_0x337027,_0x197318){const _0x5b2723=_0x28f2e6;let _0x15990a=o(_0x337027);return!_0x197318||_0x15990a['closed']||_0x15990a[_0x5b2723(0x120)]['length']===0x0||_0x15990a['anchors']['push']({'id':_0x5b2723(0x130),'x':_0x197318['x'],'y':_0x197318['y'],'pointType':'corner'}),_0x15990a;}function re(_0x3cd86d,_0x59e1d3={}){const _0x38f886=_0x28f2e6;var _0x2159cb,_0x16dfc4;let _0x1a1249=Math[_0x38f886(0x11f)](0x0,(_0x2159cb=_0x59e1d3['tolerance'])==null?Math[_0x38f886(0x11f)](0x4,_0x3cd86d[_0x38f886(0x15a)]*0.35):_0x2159cb),_0x598e69=(_0x16dfc4=_0x59e1d3[_0x38f886(0x16b)])==null?_0x1290a0=>_0x38f886(0x126)+_0x1290a0:_0x16dfc4,_0x33dd3b=_(_0x3cd86d['points'],_0x1a1249),_0x422e85=_0x33dd3b[_0x38f886(0x124)]((_0x1a4800,_0x151ca2)=>({'id':_0x598e69(_0x151ca2),'x':_0x1a4800['x'],'y':_0x1a4800['y'],'pointType':_0x38f886(0x165)}));for(let _0x413e64=0x0;_0x413e64<_0x422e85[_0x38f886(0x13d)]-0x1;_0x413e64++)_0x422e85[_0x413e64][_0x38f886(0x14c)]=ne(_0x33dd3b,_0x413e64),_0x422e85[_0x413e64+0x1]['in']=v(_0x33dd3b,_0x413e64+0x1);return{'kind':_0x38f886(0x125),'closed':!0x1,'anchors':_0x422e85};}function ie(_0x511dd0,_0x21a2c2,_0x5afc66){const _0x569ad2=_0x28f2e6;let _0x1c3cf7=null,_0xedca3f=['anchor','in',_0x569ad2(0x14c)];return _0x511dd0[_0x569ad2(0x120)]['forEach']((_0x5007c8,_0x43c253)=>{const _0x3d9765=_0x569ad2;_0xedca3f[_0x3d9765(0x13f)](_0x12d156=>{const _0xf680d0=_0x3d9765;if(!p(_0x511dd0,_0x43c253,_0x12d156))return;let _0x3b5824=ee(_0x5007c8,_0x12d156);if(!_0x3b5824)return;let _0x33cd30=c(_0x21a2c2,_0x3b5824);_0x33cd30>_0x5afc66||_0x1c3cf7&&_0x33cd30>=_0x1c3cf7[_0xf680d0(0x15e)]||(_0x1c3cf7={'handle':{'kind':_0x12d156,'anchorId':_0x5007c8['id']},'point':i(_0x3b5824),'distance':_0x33cd30});});}),_0x1c3cf7;}function S(_0x586f07,_0x505ca0,_0x232ea3){const _0x41207a=_0x28f2e6;let _0x2820f3=null,_0x6e0633=_0x586f07['closed']?_0x586f07['anchors']['length']:Math['max'](0x0,_0x586f07[_0x41207a(0x120)][_0x41207a(0x13d)]-0x1);for(let _0x493cfe=0x0;_0x493cfe<_0x6e0633;_0x493cfe++){let _0x283417=f(_0x586f07,_0x493cfe);if(!_0x283417)continue;let _0xde8f4c=m(_0x283417,0x0);for(let _0x38c205=0x1;_0x38c205<=0x20;_0x38c205++){let _0x17a71f=m(_0x283417,_0x38c205/0x20),_0x29d3b0=g(_0x505ca0,_0xde8f4c,_0x17a71f),_0xf14d45=(_0x38c205-0x1+_0x29d3b0[_0x41207a(0x11d)])/0x20;(!_0x2820f3||_0x29d3b0[_0x41207a(0x15e)]<_0x2820f3[_0x41207a(0x15e)])&&(_0x2820f3={'segmentIndex':_0x493cfe,'t':_0xf14d45,'point':_0x29d3b0[_0x41207a(0x160)],'distance':_0x29d3b0[_0x41207a(0x15e)]}),_0xde8f4c=_0x17a71f;}}return _0x2820f3&&_0x2820f3['distance']<=_0x232ea3?_0x2820f3:null;}function C(_0x581852,_0x2be1f9,_0x3d1d34){const _0x2e031b=_0x28f2e6;let _0x205a48=o(_0x581852),_0x4cbe30=d(_0x205a48,_0x2be1f9[_0x2e031b(0x122)]),_0x586a9c=f(_0x205a48,_0x2be1f9[_0x2e031b(0x122)]);if(!_0x4cbe30||!_0x586a9c)return _0x205a48;let _0x478387=h(_0x586a9c,Math[_0x2e031b(0x11f)](0x0,Math[_0x2e031b(0x17e)](0x1,_0x2be1f9['t']))),_0x4e076a={'id':_0x3d1d34(),'x':_0x478387[_0x2e031b(0x18f)][0x3]['x'],'y':_0x478387[_0x2e031b(0x18f)][0x3]['y'],'in':i(_0x478387['left'][0x2]),'out':i(_0x478387[_0x2e031b(0x133)][0x1]),'pointType':_0x2e031b(0x165)};return _0x205a48['anchors'][_0x4cbe30['startIndex']][_0x2e031b(0x14c)]=i(_0x478387[_0x2e031b(0x18f)][0x1]),_0x205a48[_0x2e031b(0x120)][_0x4cbe30['endIndex']]['in']=i(_0x478387[_0x2e031b(0x133)][0x2]),_0x205a48[_0x2e031b(0x120)][_0x2e031b(0x188)](_0x4cbe30['startIndex']+0x1,0x0,_0x4e076a),_0x205a48;}function w(_0x563078,_0x59a8a6){const _0x4dffd3=_0x28f2e6;let _0x8b3b35=o(_0x563078);return _0x8b3b35[_0x4dffd3(0x120)]=_0x8b3b35[_0x4dffd3(0x120)][_0x4dffd3(0x162)](_0x26f3a4=>_0x26f3a4['id']!==_0x59a8a6),_0x8b3b35[_0x4dffd3(0x175)]&&_0x8b3b35[_0x4dffd3(0x120)][_0x4dffd3(0x13d)]<0x3&&(_0x8b3b35['closed']=!0x1),_0x8b3b35;}function T(_0x1366f3,_0x5b43cd,_0x1b5a8f){const _0x2d8cc2=_0x28f2e6;let _0x43eb7e=o(_0x1366f3),_0x2da571=_0x43eb7e[_0x2d8cc2(0x120)][_0x2d8cc2(0x152)](_0x58920a=>_0x58920a['id']===_0x5b43cd),_0x583f67=_0x43eb7e[_0x2d8cc2(0x120)][_0x2da571];if(!_0x583f67)return _0x43eb7e;if(_0x583f67[_0x2d8cc2(0x173)]=_0x1b5a8f,_0x1b5a8f===_0x2d8cc2(0x167))return delete _0x583f67['in'],delete _0x583f67[_0x2d8cc2(0x14c)],_0x43eb7e;let _0x3cafde=y(_0x43eb7e,_0x2da571);if(_0x583f67['in']=_0x583f67['in']?i(_0x583f67['in']):_0x3cafde['in'],_0x583f67[_0x2d8cc2(0x14c)]=_0x583f67[_0x2d8cc2(0x14c)]?i(_0x583f67[_0x2d8cc2(0x14c)]):_0x3cafde[_0x2d8cc2(0x14c)],_0x1b5a8f===_0x2d8cc2(0x11c)){let _0x198c37=Math[_0x2d8cc2(0x11f)](c(_0x583f67,_0x583f67['in']),c(_0x583f67,_0x583f67[_0x2d8cc2(0x14c)]),0x32),_0x3525d1=l({'x':_0x583f67[_0x2d8cc2(0x14c)]['x']-_0x583f67['x'],'y':_0x583f67[_0x2d8cc2(0x14c)]['y']-_0x583f67['y']});_0x583f67[_0x2d8cc2(0x14c)]={'x':_0x583f67['x']+_0x3525d1['x']*_0x198c37,'y':_0x583f67['y']+_0x3525d1['y']*_0x198c37},_0x583f67['in']={'x':_0x583f67['x']-_0x3525d1['x']*_0x198c37,'y':_0x583f67['y']-_0x3525d1['y']*_0x198c37};}else _0x1b5a8f===_0x2d8cc2(0x176)&&b(_0x583f67,_0x2d8cc2(0x14c));return _0x43eb7e;}function E(_0x23636d,_0x1ca4dd){const _0x1d9f8c=_0x28f2e6;var _0x1253f0;let _0x52af83=_0x23636d[_0x1d9f8c(0x120)][_0x1d9f8c(0x14f)](_0x11b916=>_0x11b916['id']===_0x1ca4dd),_0x1a49f7=(_0x1253f0=_0x52af83==null?void 0x0:_0x52af83[_0x1d9f8c(0x173)])==null?_0x1d9f8c(0x167):_0x1253f0;return T(_0x23636d,_0x1ca4dd,_0x1a49f7===_0x1d9f8c(0x167)?_0x1d9f8c(0x176):_0x1a49f7===_0x1d9f8c(0x176)?_0x1d9f8c(0x11c):_0x1a49f7===_0x1d9f8c(0x11c)?'free':'corner');}function ae(_0x3a74b0,_0xfc09d5,_0xf2efde){const _0x1e4bc3=_0x28f2e6;let _0x57fe67=o(_0x3a74b0),_0x1c9ede=_0x57fe67['anchors'][_0x1e4bc3(0x14f)](_0x42792b=>_0x42792b['id']===_0xfc09d5['anchorId']);if(!_0x1c9ede)return _0x57fe67;if(_0xfc09d5[_0x1e4bc3(0x161)]===_0x1e4bc3(0x142)){let _0x2992cb={'x':_0xf2efde['x']-_0x1c9ede['x'],'y':_0xf2efde['y']-_0x1c9ede['y']};return _0x1c9ede['x']=_0xf2efde['x'],_0x1c9ede['y']=_0xf2efde['y'],_0x1c9ede['in']&&(_0x1c9ede['in']={'x':_0x1c9ede['in']['x']+_0x2992cb['x'],'y':_0x1c9ede['in']['y']+_0x2992cb['y']}),_0x1c9ede[_0x1e4bc3(0x14c)]&&(_0x1c9ede[_0x1e4bc3(0x14c)]={'x':_0x1c9ede[_0x1e4bc3(0x14c)]['x']+_0x2992cb['x'],'y':_0x1c9ede[_0x1e4bc3(0x14c)]['y']+_0x2992cb['y']}),_0x57fe67;}return _0x1c9ede[_0xfc09d5[_0x1e4bc3(0x161)]]=i(_0xf2efde),_0x1c9ede[_0x1e4bc3(0x173)]===_0x1e4bc3(0x167)&&(_0x1c9ede[_0x1e4bc3(0x173)]='free'),b(_0x1c9ede,_0xfc09d5[_0x1e4bc3(0x161)]),_0x57fe67;}const D=1e-9;function O(_0x487d6a){const _0x2104c6=_0x28f2e6;let _0x3d0776=Math[_0x2104c6(0x12f)](_0x487d6a*0x2710)/0x2710;return Object['is'](_0x3d0776,-0x0)?'0':String(_0x3d0776);}function k(_0x32edb8){return O(_0x32edb8['x'])+'\x20'+O(_0x32edb8['y']);}function A(_0x18f933,_0x2db511){return{'x':_0x18f933['x']-_0x2db511['x'],'y':_0x18f933['y']-_0x2db511['y']};}function j(_0x2eda36,_0x25fe2f,_0x587e8b,_0x548030,_0x1ff2f0){let _0x4e19f5=0x1-_0x1ff2f0;return{'x':_0x4e19f5*_0x4e19f5*_0x4e19f5*_0x2eda36['x']+0x3*_0x4e19f5*_0x4e19f5*_0x1ff2f0*_0x25fe2f['x']+0x3*_0x4e19f5*_0x1ff2f0*_0x1ff2f0*_0x587e8b['x']+_0x1ff2f0*_0x1ff2f0*_0x1ff2f0*_0x548030['x'],'y':_0x4e19f5*_0x4e19f5*_0x4e19f5*_0x2eda36['y']+0x3*_0x4e19f5*_0x4e19f5*_0x1ff2f0*_0x25fe2f['y']+0x3*_0x4e19f5*_0x1ff2f0*_0x1ff2f0*_0x587e8b['y']+_0x1ff2f0*_0x1ff2f0*_0x1ff2f0*_0x548030['y']};}function M(_0x4f841d,_0x201ea4,_0x5d2702,_0xa5695f){const _0xff6a8a=_0x28f2e6;let _0x5154a5=-_0x4f841d+0x3*_0x201ea4-0x3*_0x5d2702+_0xa5695f,_0x11c94f=0x3*_0x4f841d-0x6*_0x201ea4+0x3*_0x5d2702,_0x35d424=-0x3*_0x4f841d+0x3*_0x201ea4,_0x551568=[];if(Math[_0xff6a8a(0x150)](_0x5154a5)<D){if(Math[_0xff6a8a(0x150)](_0x11c94f)<D)return _0x551568;let _0x4d71e9=-_0x35d424/(0x2*_0x11c94f);return _0x4d71e9>0x0&&_0x4d71e9<0x1&&_0x551568[_0xff6a8a(0x17c)](_0x4d71e9),_0x551568;}let _0x27f12e=_0x11c94f*_0x11c94f-0x3*_0x5154a5*_0x35d424;if(_0x27f12e<0x0)return _0x551568;let _0x1acaea=Math[_0xff6a8a(0x166)](Math[_0xff6a8a(0x11f)](0x0,_0x27f12e)),_0xde1a4=(-_0x11c94f+_0x1acaea)/(0x3*_0x5154a5),_0x372063=(-_0x11c94f-_0x1acaea)/(0x3*_0x5154a5);return _0xde1a4>0x0&&_0xde1a4<0x1&&_0x551568[_0xff6a8a(0x17c)](_0xde1a4),_0x372063>0x0&&_0x372063<0x1&&Math['abs'](_0x372063-_0xde1a4)>D&&_0x551568[_0xff6a8a(0x17c)](_0x372063),_0x551568;}function N(_0x582fb1,_0x3e552e,_0x444934,_0x54431d,_0x1bad32){const _0xaad78=_0x28f2e6;_0x582fb1[_0xaad78(0x17c)](_0x3e552e,_0x1bad32),new Set([...M(_0x3e552e['x'],_0x444934['x'],_0x54431d['x'],_0x1bad32['x']),...M(_0x3e552e['y'],_0x444934['y'],_0x54431d['y'],_0x1bad32['y'])])[_0xaad78(0x13f)](_0x20b712=>{const _0x5f4b95=_0xaad78;_0x582fb1[_0x5f4b95(0x17c)](j(_0x3e552e,_0x444934,_0x54431d,_0x1bad32,_0x20b712));});}function P(_0x526cbd){const _0x12d634=_0x28f2e6;let _0x4f58e4=_0x526cbd[_0x12d634(0x120)];if(_0x4f58e4[_0x12d634(0x13d)]<=0x1)return _0x4f58e4;let _0x3ad36c=[];for(let _0x1b5959=0x1;_0x1b5959<_0x4f58e4['length'];_0x1b5959++){var _0x395de4,_0x1b9844;let _0x2e3167=_0x4f58e4[_0x1b5959-0x1],_0x3be3d8=_0x4f58e4[_0x1b5959];N(_0x3ad36c,_0x2e3167,(_0x395de4=_0x2e3167[_0x12d634(0x14c)])==null?_0x2e3167:_0x395de4,(_0x1b9844=_0x3be3d8['in'])==null?_0x3be3d8:_0x1b9844,_0x3be3d8);}if(_0x526cbd[_0x12d634(0x175)]&&_0x4f58e4[_0x12d634(0x13d)]>0x1){var _0x673c82,_0x4fa268;let _0x3b4b44=_0x4f58e4[_0x4f58e4[_0x12d634(0x13d)]-0x1],_0x4fe938=_0x4f58e4[0x0];N(_0x3ad36c,_0x3b4b44,(_0x673c82=_0x3b4b44['out'])==null?_0x3b4b44:_0x673c82,(_0x4fa268=_0x4fe938['in'])==null?_0x4fe938:_0x4fa268,_0x4fe938);}return _0x3ad36c;}function F(_0x101451){const _0x44620c=_0x28f2e6;let _0x46501c=_0x101451[_0x44620c(0x134)];if(_0x46501c[_0x44620c(0x13d)]<=0x1)return _0x46501c;let _0x176ef7=[];for(let _0x4ea4bc=0x0;_0x4ea4bc<_0x46501c[_0x44620c(0x13d)]-0x1;_0x4ea4bc++){var _0x408ceb,_0x13c62e;let _0x35a27c=_0x46501c[_0x4ea4bc],_0x4fc978=_0x46501c[_0x4ea4bc+0x1],_0x2ae719=(_0x408ceb=_0x46501c[_0x4ea4bc-0x1])==null?_0x35a27c:_0x408ceb,_0x3be9c3=(_0x13c62e=_0x46501c[_0x4ea4bc+0x2])==null?_0x4fc978:_0x13c62e;N(_0x176ef7,_0x35a27c,{'x':_0x35a27c['x']+(_0x4fc978['x']-_0x2ae719['x'])/0x6,'y':_0x35a27c['y']+(_0x4fc978['y']-_0x2ae719['y'])/0x6},{'x':_0x4fc978['x']-(_0x3be9c3['x']-_0x35a27c['x'])/0x6,'y':_0x4fc978['y']-(_0x3be9c3['y']-_0x35a27c['y'])/0x6},_0x4fc978);}return _0x176ef7;}function I(_0x1ff45d){const _0x52d876=_0x28f2e6;return _0x1ff45d['kind']===_0x52d876(0x125)?P(_0x1ff45d):F(_0x1ff45d);}function L(_0x33f6dc){const _0x347758=_0x28f2e6;let _0x99b7c8=Math[_0x347758(0x12f)](_0x33f6dc*0x2710)/0x2710;return Object['is'](_0x99b7c8,-0x0)?0x0:_0x99b7c8;}function R(_0x1a6d25){const _0x5cacf5=_0x28f2e6;let _0x457dd6=I(_0x1a6d25);if(_0x457dd6[_0x5cacf5(0x13d)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x17cfc5=Math[_0x5cacf5(0x17e)](..._0x457dd6[_0x5cacf5(0x124)](_0xcd7a93=>_0xcd7a93['x'])),_0x21ea2d=Math[_0x5cacf5(0x17e)](..._0x457dd6[_0x5cacf5(0x124)](_0x565cfa=>_0x565cfa['y'])),_0x5150e0=Math[_0x5cacf5(0x11f)](..._0x457dd6[_0x5cacf5(0x124)](_0xc70b5b=>_0xc70b5b['x'])),_0x54c1bd=Math['max'](..._0x457dd6[_0x5cacf5(0x124)](_0x1ea5bb=>_0x1ea5bb['y']));return{'left':L(_0x17cfc5),'top':L(_0x21ea2d),'width':L(Math['max'](0x1,_0x5150e0-_0x17cfc5)),'height':L(Math[_0x5cacf5(0x11f)](0x1,_0x54c1bd-_0x21ea2d))};}function z(_0x254fc6,_0xf682bd){const _0x2c9168=_0x28f2e6;let _0xf35892=_0x254fc6[_0x2c9168(0x120)];if(_0xf35892[_0x2c9168(0x13d)]===0x0)return'';let _0x3da625=['M\x20'+k(A(_0xf35892[0x0],_0xf682bd))];for(let _0x940b4b=0x1;_0x940b4b<_0xf35892[_0x2c9168(0x13d)];_0x940b4b++){var _0x1d0608,_0x5143b8;let _0x59167b=_0xf35892[_0x940b4b-0x1],_0x43d49e=_0xf35892[_0x940b4b],_0x3e98b7=(_0x1d0608=_0x59167b[_0x2c9168(0x14c)])==null?_0x59167b:_0x1d0608,_0x5b05db=(_0x5143b8=_0x43d49e['in'])==null?_0x43d49e:_0x5143b8;_0x3da625[_0x2c9168(0x17c)]('C\x20'+k(A(_0x3e98b7,_0xf682bd))+'\x20'+k(A(_0x5b05db,_0xf682bd))+'\x20'+k(A(_0x43d49e,_0xf682bd)));}if(_0x254fc6['closed']&&_0xf35892[_0x2c9168(0x13d)]>0x1){var _0x3b7302,_0xe3f4c7;let _0x537248=_0xf35892[_0xf35892[_0x2c9168(0x13d)]-0x1],_0xb3a7fd=_0xf35892[0x0],_0x3670f9=(_0x3b7302=_0x537248['out'])==null?_0x537248:_0x3b7302,_0x4b91aa=(_0xe3f4c7=_0xb3a7fd['in'])==null?_0xb3a7fd:_0xe3f4c7;_0x3da625[_0x2c9168(0x17c)]('C\x20'+k(A(_0x3670f9,_0xf682bd))+'\x20'+k(A(_0x4b91aa,_0xf682bd))+'\x20'+k(A(_0xb3a7fd,_0xf682bd))),_0x3da625[_0x2c9168(0x17c)]('Z');}return _0x3da625[_0x2c9168(0x13a)]('\x20');}function B(_0x2f2e77,_0x23ce8b){const _0x16ab2=_0x28f2e6;let _0x1a2065=_0x2f2e77[_0x16ab2(0x134)][_0x16ab2(0x124)](_0x27bf9c=>A(_0x27bf9c,_0x23ce8b));if(_0x1a2065[_0x16ab2(0x13d)]===0x0)return'';if(_0x1a2065[_0x16ab2(0x13d)]===0x1)return'M\x20'+k(_0x1a2065[0x0]);let _0x1a69f1=['M\x20'+k(_0x1a2065[0x0])];for(let _0x311128=0x0;_0x311128<_0x1a2065[_0x16ab2(0x13d)]-0x1;_0x311128++){var _0x1fd6d2,_0x2bbb55;let _0x18847c=_0x1a2065[_0x311128],_0x1d072f=_0x1a2065[_0x311128+0x1],_0x4e0390=(_0x1fd6d2=_0x1a2065[_0x311128-0x1])==null?_0x18847c:_0x1fd6d2,_0x3aa98b=(_0x2bbb55=_0x1a2065[_0x311128+0x2])==null?_0x1d072f:_0x2bbb55,_0x5b23e8={'x':_0x18847c['x']+(_0x1d072f['x']-_0x4e0390['x'])/0x6,'y':_0x18847c['y']+(_0x1d072f['y']-_0x4e0390['y'])/0x6},_0x51f1c3={'x':_0x1d072f['x']-(_0x3aa98b['x']-_0x18847c['x'])/0x6,'y':_0x1d072f['y']-(_0x3aa98b['y']-_0x18847c['y'])/0x6};_0x1a69f1[_0x16ab2(0x17c)]('C\x20'+k(_0x5b23e8)+'\x20'+k(_0x51f1c3)+'\x20'+k(_0x1d072f));}return _0x1a69f1['join']('\x20');}function V(_0x429378,_0x254b6c){const _0x3faa67=_0x28f2e6;return _0x429378['kind']===_0x3faa67(0x125)?z(_0x429378,_0x254b6c):B(_0x429378,_0x254b6c);}function H(_0x218145,_0x1354e5){const _0x1d357b=_0x28f2e6;return _0x1354e5!=null&&_0x1354e5[_0x1d357b(0x138)]?_0x1354e5['color']:_0x218145[_0x1d357b(0x161)]===_0x1d357b(0x125)?'#f54a45':_0x218145['color'];}function U(_0x4a1249,_0x50a38d){const _0x483155=_0x28f2e6;return(_0x50a38d==null?void 0x0:_0x50a38d[_0x483155(0x15a)])===void 0x0?_0x4a1249[_0x483155(0x161)]==='pen'?0x2:_0x4a1249['width']:_0x50a38d['width'];}function W(_0x16d168,_0x3cd737){const _0x175ddb=_0x28f2e6;return(_0x3cd737==null?void 0x0:_0x3cd737['opacity'])===void 0x0?_0x16d168[_0x175ddb(0x161)]===_0x175ddb(0x125)?void 0x0:_0x16d168[_0x175ddb(0x17a)]:_0x3cd737[_0x175ddb(0x17a)];}function oe(_0x47a787,_0x1d9619){const _0x594527=_0x28f2e6;let _0x3ed312=R(_0x47a787),_0x2d3789=V(_0x47a787,{'x':_0x3ed312[_0x594527(0x18f)],'y':_0x3ed312[_0x594527(0x129)]}),_0x1191e6=_0x47a787[_0x594527(0x161)]===_0x594527(0x125)&&_0x47a787[_0x594527(0x175)],_0x440870=_0x1d9619==null?void 0x0:_0x1d9619[_0x594527(0x17b)];return{'shapeType':e[_0x594527(0x178)]['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3ed312['width'],'h':_0x3ed312[_0x594527(0x146)],'fill':_0x1191e6?'norm':_0x594527(0x16e),'stroke':!0x0,'data':_0x2d3789,'dataArray':K(_0x47a787,{'x':_0x3ed312[_0x594527(0x18f)],'y':_0x3ed312['top']})}]},'fill':_0x1191e6&&_0x440870?{'color':_0x440870,'fillType':e[_0x594527(0x131)]['SolidFill']}:{'fillType':e[_0x594527(0x131)][_0x594527(0x170)]},'stroke':{'color':H(_0x47a787,_0x1d9619),'width':U(_0x47a787,_0x1d9619),'opacity':W(_0x47a787,_0x1d9619),'lineStrokeType':e[_0x594527(0x11e)][_0x594527(0x191)],'capType':e[_0x594527(0x12b)][_0x594527(0x144)],'lineJoinType':e[_0x594527(0x141)][_0x594527(0x144)]}};}function G(_0x5d6bf8,_0x4ce41a){return{'x':_0x5d6bf8['x']-_0x4ce41a['x'],'y':_0x5d6bf8['y']-_0x4ce41a['y']};}function K(_0x38c7be,_0x4c514f){const _0x2fc907=_0x28f2e6;if(_0x38c7be[_0x2fc907(0x161)]===_0x2fc907(0x125)){let _0x440428=_0x38c7be[_0x2fc907(0x120)];if(_0x440428[_0x2fc907(0x13d)]===0x0)return[];let _0x234cf7=G(_0x440428[0x0],_0x4c514f),_0xe521b2=[{'command':'M','points':[_0x234cf7['x'],_0x234cf7['y']]}];for(let _0x29fc6f=0x1;_0x29fc6f<_0x440428[_0x2fc907(0x13d)];_0x29fc6f++){var _0x31c544,_0x25c7d2;let _0x6779=_0x440428[_0x29fc6f-0x1],_0x927de4=_0x440428[_0x29fc6f],_0xdb0d1f=G((_0x31c544=_0x6779[_0x2fc907(0x14c)])==null?_0x6779:_0x31c544,_0x4c514f),_0x550d42=G((_0x25c7d2=_0x927de4['in'])==null?_0x927de4:_0x25c7d2,_0x4c514f),_0x240988=G(_0x927de4,_0x4c514f);_0xe521b2['push']({'command':'C','points':[_0xdb0d1f['x'],_0xdb0d1f['y'],_0x550d42['x'],_0x550d42['y'],_0x240988['x'],_0x240988['y']]});}if(_0x38c7be[_0x2fc907(0x175)]&&_0x440428[_0x2fc907(0x13d)]>0x1){var _0x230d50,_0x15e103;let _0x2fa204=_0x440428[_0x440428[_0x2fc907(0x13d)]-0x1],_0x5335c4=_0x440428[0x0],_0x46f5a5=G((_0x230d50=_0x2fa204[_0x2fc907(0x14c)])==null?_0x2fa204:_0x230d50,_0x4c514f),_0x20b032=G((_0x15e103=_0x5335c4['in'])==null?_0x5335c4:_0x15e103,_0x4c514f),_0x55d225=G(_0x5335c4,_0x4c514f);_0xe521b2[_0x2fc907(0x17c)]({'command':'C','points':[_0x46f5a5['x'],_0x46f5a5['y'],_0x20b032['x'],_0x20b032['y'],_0x55d225['x'],_0x55d225['y']]}),_0xe521b2[_0x2fc907(0x17c)]({'command':'z','points':[]});}return _0xe521b2;}let _0x5d2eb2=_0x38c7be[_0x2fc907(0x134)][_0x2fc907(0x124)](_0xc98c47=>G(_0xc98c47,_0x4c514f));if(_0x5d2eb2[_0x2fc907(0x13d)]===0x0)return[];let _0x59095e=[{'command':'M','points':[_0x5d2eb2[0x0]['x'],_0x5d2eb2[0x0]['y']]}];for(let _0x5507cd=0x0;_0x5507cd<_0x5d2eb2[_0x2fc907(0x13d)]-0x1;_0x5507cd++){var _0x1e2db7,_0x4dedbd;let _0xa08b52=_0x5d2eb2[_0x5507cd],_0xef8728=_0x5d2eb2[_0x5507cd+0x1],_0x1a7e98=(_0x1e2db7=_0x5d2eb2[_0x5507cd-0x1])==null?_0xa08b52:_0x1e2db7,_0x57d526=(_0x4dedbd=_0x5d2eb2[_0x5507cd+0x2])==null?_0xef8728:_0x4dedbd,_0x3328bb={'x':_0xa08b52['x']+(_0xef8728['x']-_0x1a7e98['x'])/0x6,'y':_0xa08b52['y']+(_0xef8728['y']-_0x1a7e98['y'])/0x6},_0x3e6d64={'x':_0xef8728['x']-(_0x57d526['x']-_0xa08b52['x'])/0x6,'y':_0xef8728['y']-(_0x57d526['y']-_0xa08b52['y'])/0x6};_0x59095e['push']({'command':'C','points':[_0x3328bb['x'],_0x3328bb['y'],_0x3e6d64['x'],_0x3e6d64['y'],_0xef8728['x'],_0xef8728['y']]});}return _0x59095e;}function q(_0x30f6a1){const _0x28423e=_0x28f2e6;var _0x49434f;let {model:_0x6ac922,sourceModel:_0x4610b7=_0x6ac922,style:_0xf6a578}=_0x30f6a1,_0xcee791=(_0x49434f=_0x30f6a1['tool'])==null?_0x6ac922[_0x28423e(0x161)]:_0x49434f,_0xc4ee1f=R(_0x6ac922),_0x4176f4=_0x6ac922['kind']==='pen'&&_0xcee791!==_0x28423e(0x125)?_0x6ac922:void 0x0;return{'transform':{..._0xc4ee1f,'rotation':0x0},'shapeData':oe(_0x6ac922,_0xf6a578),'ink':{'version':0x1,'tool':_0xcee791,'sourceModel':_0x4610b7,..._0x4176f4?{'editModel':_0x4176f4}:{},'normalizedBounds':_0xc4ee1f}};}function _0x5a6d(_0x309911,_0x4d1e57){_0x309911=_0x309911-0x11c;const _0x3435ad=_0x3435();let _0x5a6dd1=_0x3435ad[_0x309911];return _0x5a6dd1;}var se=_0x28f2e6(0x181),ce=_0x28f2e6(0x135);function J(_0x2b8d29){'@babel/helpers - typeof';const _0x2e0788=_0x28f2e6;return J=typeof Symbol==_0x2e0788(0x183)&&typeof Symbol['iterator']==_0x2e0788(0x16a)?function(_0x31165e){return typeof _0x31165e;}:function(_0xb7dc5b){const _0x26e273=_0x2e0788;return _0xb7dc5b&&typeof Symbol=='function'&&_0xb7dc5b[_0x26e273(0x18e)]===Symbol&&_0xb7dc5b!==Symbol['prototype']?_0x26e273(0x16a):typeof _0xb7dc5b;},J(_0x2b8d29);}function le(_0xecfb44,_0x23216d){const _0x3aea2b=_0x28f2e6;if(J(_0xecfb44)!=_0x3aea2b(0x180)||!_0xecfb44)return _0xecfb44;var _0x335faa=_0xecfb44[Symbol[_0x3aea2b(0x179)]];if(_0x335faa!==void 0x0){var _0x2ae351=_0x335faa[_0x3aea2b(0x145)](_0xecfb44,_0x23216d||_0x3aea2b(0x18d));if(J(_0x2ae351)!=_0x3aea2b(0x180))return _0x2ae351;throw TypeError(_0x3aea2b(0x121));}return(_0x23216d===_0x3aea2b(0x16f)?String:Number)(_0xecfb44);}function ue(_0x1bc441){const _0x2ce22d=_0x28f2e6;var _0x54cb20=le(_0x1bc441,_0x2ce22d(0x16f));return J(_0x54cb20)==_0x2ce22d(0x16a)?_0x54cb20:_0x54cb20+'';}function Y(_0x150c1c,_0x393de3,_0xe601e5){const _0x582229=_0x28f2e6;return(_0x393de3=ue(_0x393de3))in _0x150c1c?Object[_0x582229(0x140)](_0x150c1c,_0x393de3,{'value':_0xe601e5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x150c1c[_0x393de3]=_0xe601e5,_0x150c1c;}const X=(0x0,n[_0x28f2e6(0x190)])(_0x28f2e6(0x174));var de=class{constructor(){const _0x16f0bb=_0x28f2e6;Y(this,_0x16f0bb(0x132),[]);}[_0x28f2e6(0x169)](_0x3733de){const _0x32c56b=_0x28f2e6;return this[_0x32c56b(0x132)][_0x32c56b(0x17c)](_0x3733de),(0x0,n[_0x32c56b(0x127)])(()=>{const _0x3f18f2=_0x32c56b;let _0xde21c4=this[_0x3f18f2(0x132)][_0x3f18f2(0x155)](_0x3733de);_0xde21c4>=0x0&&this[_0x3f18f2(0x132)][_0x3f18f2(0x188)](_0xde21c4,0x1);});}[_0x28f2e6(0x12a)](_0x145d9f){const _0x255775=_0x28f2e6;for(let _0x919fcc of this[_0x255775(0x132)])if(_0x919fcc[_0x255775(0x12a)](_0x145d9f))return!0x0;return!0x1;}async[_0x28f2e6(0x185)](_0x57ecb5){const _0x409a40=_0x28f2e6;for(let _0x404147 of this[_0x409a40(0x132)])if(_0x404147[_0x409a40(0x185)]&&await _0x404147[_0x409a40(0x185)](_0x57ecb5))return!0x0;return!0x1;}};const fe={'id':_0x28f2e6(0x16c),'type':n[_0x28f2e6(0x136)][_0x28f2e6(0x171)],'handler':(_0x33edd2,_0x24a3f1)=>_0x24a3f1?_0x33edd2[_0x28f2e6(0x14a)](X)[_0x28f2e6(0x12a)](_0x24a3f1):!0x1},Z={};function Q(_0x206479,_0x365fdb){return function(_0x32da02,_0x31703c){_0x365fdb(_0x32da02,_0x31703c,_0x206479);};}function pe(_0x49baf5,_0x24600c,_0x3e9d84,_0x258754){const _0x2ad11e=_0x28f2e6;var _0xa93a4d=arguments['length'],_0x293c3f=_0xa93a4d<0x3?_0x24600c:_0x258754===null?_0x258754=Object[_0x2ad11e(0x157)](_0x24600c,_0x3e9d84):_0x258754,_0x5f3b17;if(typeof Reflect==_0x2ad11e(0x180)&&typeof Reflect[_0x2ad11e(0x163)]==_0x2ad11e(0x183))_0x293c3f=Reflect['decorate'](_0x49baf5,_0x24600c,_0x3e9d84,_0x258754);else{for(var _0x287c3e=_0x49baf5[_0x2ad11e(0x13d)]-0x1;_0x287c3e>=0x0;_0x287c3e--)(_0x5f3b17=_0x49baf5[_0x287c3e])&&(_0x293c3f=(_0xa93a4d<0x3?_0x5f3b17(_0x293c3f):_0xa93a4d>0x3?_0x5f3b17(_0x24600c,_0x3e9d84,_0x293c3f):_0x5f3b17(_0x24600c,_0x3e9d84))||_0x293c3f);}return _0xa93a4d>0x3&&_0x293c3f&&Object[_0x2ad11e(0x140)](_0x24600c,_0x3e9d84,_0x293c3f),_0x293c3f;}let $=class extends n['Plugin']{constructor(_0x28978d=Z,_0x441c47,_0x372fe4,_0x5794a1){const _0x31b31f=_0x28f2e6;super(),this[_0x31b31f(0x147)]=_0x28978d,this[_0x31b31f(0x153)]=_0x441c47,this[_0x31b31f(0x164)]=_0x372fe4,this['_configService']=_0x5794a1;let {..._0x3243af}=(0x0,n['merge'])({},Z,this['_config']);this[_0x31b31f(0x187)]['setConfig'](_0x31b31f(0x159),_0x3243af);}[_0x28f2e6(0x14d)](){const _0x4f907d=_0x28f2e6;[[X,{'useClass':de}]][_0x4f907d(0x13f)](_0x327c0b=>this['_injector'][_0x4f907d(0x158)](_0x327c0b)),this[_0x4f907d(0x17d)](this['_commandService'][_0x4f907d(0x13e)](fe));}};function _0x3435(){const _0x509c98=['min','DependentOn','object','@univerjs-pro/ink','2gPHlQG','function','6542466YHgWyV','createCustomShape','getInkModelBounds','_configService','splice','Module','6469008ImJzvX','UniverInstanceType','UniverLicensePlugin','default','constructor','left','createIdentifier','SolidLine','moveInkPenAnchorPoint','symmetric','ratio','ShapeLineTypeEnum','max','anchors','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','segmentIndex','715298QTCluZ','map','pen','ink-centerline-','toDisposable','slice','top','beginInkMode','ShapeLineCapEnum','setInkPenAnchorPointType','insertInkPenAnchorAt','IInkHostAdapterService','round','__ink-preview-anchor__','ShapeFillEnum','_adapters','right','points','1.0.0-alpha.3','CommandType','deleteInkPenAnchor','color','convertBrushModelToPenModel','join','5059890rBLjAp','start','length','registerCommand','forEach','defineProperty','ShapeLineJoinEnum','anchor','findClosestInkPenSegment','Round','call','height','_config','ICommandService','10lpQLFS','get','12413208dPXtmD','out','onStarting','buildInkCustomShapePayload','find','abs','cycleInkPenAnchorPointType','findIndex','_injector','UniverInkPlugin','indexOf','6aiibfu','getOwnPropertyDescriptor','add','ink.config','width','end','9151483fdlnnD','type','distance','Inject','point','kind','filter','decorate','_commandService','free','sqrt','corner','UNIVER_INK_PLUGIN','registerAdapter','symbol','createId','ink.operation.start','hypot','none','string','NoFill','OPERATION','1553154SZhLHH','pointType','ink.host-adapter.service','closed','smooth','9tLIjCo','ShapeTypeEnum','toPrimitive','opacity','fillColor','push','disposeWithMe'];_0x3435=function(){return _0x509c98;};return _0x3435();}Y($,'pluginName',_0x28f2e6(0x168)),Y($,'packageName',se),Y($,'version',ce),Y($,_0x28f2e6(0x15d),n[_0x28f2e6(0x18b)]['UNIVER_UNKNOWN']),$=pe([(0x0,n[_0x28f2e6(0x17f)])(t[_0x28f2e6(0x18c)]),Q(0x1,(0x0,n[_0x28f2e6(0x15f)])(n['Injector'])),Q(0x2,n[_0x28f2e6(0x148)]),Q(0x3,n['IConfigService'])],$),exports[_0x28f2e6(0x12e)]=X,Object[_0x28f2e6(0x140)](exports,_0x28f2e6(0x154),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x28f2e6(0x14e)]=q,exports[_0x28f2e6(0x139)]=re,exports[_0x28f2e6(0x151)]=E,exports[_0x28f2e6(0x137)]=w,exports['findClosestInkPenHandle']=ie,exports[_0x28f2e6(0x143)]=S,exports[_0x28f2e6(0x186)]=R,exports['getInkPenPreviewModel']=x,exports[_0x28f2e6(0x12d)]=C,exports['isInkPenHandleVisible']=p,exports[_0x28f2e6(0x192)]=ae,exports[_0x28f2e6(0x12c)]=T;
@@ -0,0 +1 @@
1
+ const _0x257e0d=_0x1688;(function(_0x3fc294,_0x1faa95){const _0x45bc5b=_0x1688,_0x395d08=_0x3fc294();while(!![]){try{const _0x3127f2=parseInt(_0x45bc5b(0xc5))/0x1+parseInt(_0x45bc5b(0xc2))/0x2+-parseInt(_0x45bc5b(0xb4))/0x3*(-parseInt(_0x45bc5b(0xcb))/0x4)+parseInt(_0x45bc5b(0xd0))/0x5+-parseInt(_0x45bc5b(0xc3))/0x6*(-parseInt(_0x45bc5b(0xb9))/0x7)+-parseInt(_0x45bc5b(0xcc))/0x8*(parseInt(_0x45bc5b(0xae))/0x9)+-parseInt(_0x45bc5b(0xbf))/0xa;if(_0x3127f2===_0x1faa95)break;else _0x395d08['push'](_0x395d08['shift']());}catch(_0x2b1853){_0x395d08['push'](_0x395d08['shift']());}}}(_0x38f1,0x25621));import{BoardElementType as _0x3f0688}from'@univerjs-pro/boards';import{FBoard as _0xb2b525}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x37940b}from'@univerjs-pro/ink';import{Tools as _0x205ef1,generateRandomId as _0x209f76}from'@univerjs/core';import{FEnum as _0x37284d}from'@univerjs/core/facade';function _0x1688(_0x5aa9e5,_0x926090){_0x5aa9e5=_0x5aa9e5-0xae;const _0x38f137=_0x38f1();let _0x1688f6=_0x38f137[_0x5aa9e5];return _0x1688f6;}var o=class extends _0xb2b525{[_0x257e0d(0xb1)](_0x4362c0){const _0x5dae82=_0x257e0d;let _0x40ea66=s(_0x4362c0);return _0x40ea66&&this[_0x5dae82(0xbe)](_0x40ea66,{'insertIndex':_0x4362c0[_0x5dae82(0xce)]})?_0x40ea66:null;}[_0x257e0d(0xdf)](){const _0x2b134f=_0x257e0d;return this[_0x2b134f(0xdb)]({'elementType':_0x3f0688['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x2b134f(0xbc)](p);}};function s(_0x420802,_0x3b571f){const _0x4d238b=_0x257e0d;var _0x213d2e,_0x291aa2,_0x5c2827;if(!l(_0x420802['model'])||_0x420802['sourceModel']!==void 0x0&&!l(_0x420802[_0x4d238b(0xd5)])||!u(_0x420802[_0x4d238b(0xcf)]))return null;let _0x379c45=(_0x213d2e=_0x420802['parentId'])==null?_0x3b571f==null?void 0x0:_0x3b571f[_0x4d238b(0xc0)]:_0x213d2e,_0x1a3383=_0x205ef1[_0x4d238b(0xbd)](_0x420802['model']),_0x228db3=_0x37940b({'model':_0x1a3383,'style':_0x420802[_0x4d238b(0xcf)],'tool':_0x420802[_0x4d238b(0xc1)],'sourceModel':_0x420802['sourceModel']?_0x205ef1[_0x4d238b(0xbd)](_0x420802[_0x4d238b(0xd5)]):_0x1a3383}),_0x1d481a=d(_0x3b571f==null?void 0x0:_0x3b571f[_0x4d238b(0xda)]);return{'id':(_0x291aa2=(_0x5c2827=_0x3b571f==null?void 0x0:_0x3b571f['id'])==null?_0x420802['id']:_0x5c2827)==null?_0x209f76(0x6):_0x291aa2,'type':_0x3f0688[_0x4d238b(0xd1)],'transform':_0x228db3[_0x4d238b(0xcd)],'shapeData':_0x228db3[_0x4d238b(0xd3)],'parentId':_0x379c45==null?void 0x0:_0x379c45,'laneId':_0x420802[_0x4d238b(0xc6)]===void 0x0?_0x3b571f==null?void 0x0:_0x3b571f[_0x4d238b(0xc6)]:_0x420802['laneId'],'custom':{..._0x1d481a,'ink':_0x228db3['ink']}};}function c(_0x42c4ed){const _0x53c5d9=_0x257e0d;return Number[_0x53c5d9(0xb8)](_0x42c4ed['x'])&&Number[_0x53c5d9(0xb8)](_0x42c4ed['y']);}function l(_0x258652){const _0x27c9f6=_0x257e0d;if(_0x258652[_0x27c9f6(0xb7)]===_0x27c9f6(0xde)){let _0x3c806f=new Set();return _0x258652[_0x27c9f6(0xc4)]['length']>=(_0x258652[_0x27c9f6(0xd9)]?0x3:0x2)&&_0x258652[_0x27c9f6(0xc4)]['every'](_0x9d44c7=>{const _0x49de48=_0x27c9f6;let _0x4fa536=_0x9d44c7['id'][_0x49de48(0xb6)]()['length']>0x0&&!_0x3c806f[_0x49de48(0xd2)](_0x9d44c7['id'])&&c(_0x9d44c7)&&(!_0x9d44c7['in']||c(_0x9d44c7['in']))&&(!_0x9d44c7[_0x49de48(0xd6)]||c(_0x9d44c7[_0x49de48(0xd6)]));return _0x3c806f['add'](_0x9d44c7['id']),_0x4fa536;});}return _0x258652[_0x27c9f6(0xb0)][_0x27c9f6(0xb3)]>=0x2&&_0x258652['points']['every'](_0x2a51ab=>c(_0x2a51ab)&&Number[_0x27c9f6(0xb8)](_0x2a51ab['t'])&&(_0x2a51ab[_0x27c9f6(0xaf)]===void 0x0||Number['isFinite'](_0x2a51ab[_0x27c9f6(0xaf)])))&&Number[_0x27c9f6(0xb8)](_0x258652[_0x27c9f6(0xdd)])&&_0x258652[_0x27c9f6(0xdd)]>0x0&&Number[_0x27c9f6(0xb8)](_0x258652[_0x27c9f6(0xc7)])&&_0x258652[_0x27c9f6(0xc7)]>=0x0&&_0x258652[_0x27c9f6(0xc7)]<=0x1;}function u(_0x592d93){const _0x4d2610=_0x257e0d;return _0x592d93===void 0x0||(_0x592d93[_0x4d2610(0xdd)]===void 0x0||Number['isFinite'](_0x592d93[_0x4d2610(0xdd)])&&_0x592d93['width']>0x0)&&(_0x592d93[_0x4d2610(0xc7)]===void 0x0||Number[_0x4d2610(0xb8)](_0x592d93[_0x4d2610(0xc7)])&&_0x592d93[_0x4d2610(0xc7)]>=0x0&&_0x592d93['opacity']<=0x1);}function d(_0x1d34de){const _0x19728e=_0x257e0d;return _0x1d34de&&typeof _0x1d34de==_0x19728e(0xc8)&&!Array['isArray'](_0x1d34de)?_0x1d34de:{};}function f(_0x410fea){const _0x367447=_0x257e0d;let _0x17a38f=d(_0x410fea['custom'])[_0x367447(0xca)];if(!_0x17a38f||typeof _0x17a38f!=_0x367447(0xc8)||Array[_0x367447(0xd4)](_0x17a38f))return null;let _0x14fe27=_0x17a38f;return _0x14fe27['version']===0x1&&_0x14fe27[_0x367447(0xd5)]&&typeof _0x14fe27[_0x367447(0xd5)]==_0x367447(0xc8)?_0x14fe27:null;}function p(_0x5c6756){const _0x8eb91a=_0x257e0d;return _0x5c6756['type']===_0x3f0688[_0x8eb91a(0xd1)]&&!!f(_0x5c6756);}_0xb2b525[_0x257e0d(0xbb)](o);function _0x38f1(){const _0x5f0f71=['highlighter','BoardInkTool','closed','custom','findElements','BoardInkPointType','width','pen','getInks','3411hANDko','pressure','points','insertInk','smooth','length','754557ICansQ','BoardInkHandleKind','trim','kind','isFinite','60410IBxIkT','brush','extend','filter','deepClone','addElement','6934760ftxREG','parentId','tool','534734jxzAgI','150daLWBZ','anchors','305294Hftqnf','laneId','opacity','object','anchor','ink','4igXLtC','5216xRHHxo','transform','insertIndex','style','268875iKFkOc','Shape','has','shapeData','isArray','sourceModel','out'];_0x38f1=function(){return _0x5f0f71;};return _0x38f1();}const m={'Pen':_0x257e0d(0xde),'Brush':_0x257e0d(0xba),'Highlighter':_0x257e0d(0xd7)},h={'Corner':'corner','Smooth':_0x257e0d(0xb2),'Symmetric':'symmetric','Free':'free'},g={'Anchor':_0x257e0d(0xc9),'In':'in','Out':'out'};var _=class extends _0x37284d{get[_0x257e0d(0xd8)](){return m;}get[_0x257e0d(0xdc)](){return h;}get[_0x257e0d(0xb5)](){return g;}};_0x37284d[_0x257e0d(0xbb)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
@@ -0,0 +1 @@
1
+ const _0x42e332=_0x1ced;(function(_0x3f38e3,_0x58f8f1){const _0x5d7c50=_0x1ced,_0x189e84=_0x3f38e3();while(!![]){try{const _0x5f42dc=parseInt(_0x5d7c50(0x87))/0x1+-parseInt(_0x5d7c50(0x86))/0x2*(-parseInt(_0x5d7c50(0xd2))/0x3)+-parseInt(_0x5d7c50(0x8f))/0x4*(-parseInt(_0x5d7c50(0x9e))/0x5)+-parseInt(_0x5d7c50(0xc4))/0x6*(parseInt(_0x5d7c50(0x88))/0x7)+-parseInt(_0x5d7c50(0xd3))/0x8+-parseInt(_0x5d7c50(0x81))/0x9+parseInt(_0x5d7c50(0xc2))/0xa;if(_0x5f42dc===_0x58f8f1)break;else _0x189e84['push'](_0x189e84['shift']());}catch(_0x297107){_0x189e84['push'](_0x189e84['shift']());}}}(_0x2777,0x568c3));import{ShapeFillEnum as _0x40b030,ShapeLineCapEnum as _0x30b81e,ShapeLineJoinEnum as _0xe471ab,ShapeLineTypeEnum as _0x568653,ShapeTypeEnum as _0x5c7e2e}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x3f4697}from'@univerjs-pro/license';import{CommandType as _0x2e7563,DependentOn as _0x95406c,ICommandService as _0x1a1bff,IConfigService as _0x2f7050,Inject as _0x9103c7,Injector as _0x17a253,Plugin as _0x2449e5,UniverInstanceType as _0x5370d0,createIdentifier as _0x5690be,merge as _0x11b2d3,toDisposable as _0x4bf3a7}from'@univerjs/core';const g=0.0001;function _(_0x4161f6){return{'x':_0x4161f6['x'],'y':_0x4161f6['y']};}function v(_0x21882c){const _0x12ed7a=_0x1ced;return{..._0x21882c,'in':_0x21882c['in']?_(_0x21882c['in']):void 0x0,'out':_0x21882c[_0x12ed7a(0xb2)]?_(_0x21882c[_0x12ed7a(0xb2)]):void 0x0};}function y(_0x518e53){const _0x880c8f=_0x1ced;return{'kind':'pen','closed':_0x518e53[_0x880c8f(0xcf)],'anchors':_0x518e53[_0x880c8f(0xba)][_0x880c8f(0xce)](v)};}function b(_0x57a4e7,_0x9e8b21,_0x4c773e){return{'x':_0x57a4e7['x']+(_0x9e8b21['x']-_0x57a4e7['x'])*_0x4c773e,'y':_0x57a4e7['y']+(_0x9e8b21['y']-_0x57a4e7['y'])*_0x4c773e};}function x(_0x356032,_0x3d776f){const _0xdcb542=_0x1ced;return Math[_0xdcb542(0x90)](_0x356032['x']-_0x3d776f['x'],_0x356032['y']-_0x3d776f['y']);}function S(_0x12229c){const _0x4024df=_0x1ced;let _0x4e9a68=Math[_0x4024df(0x90)](_0x12229c['x'],_0x12229c['y']);return _0x4e9a68<g?{'x':0x1,'y':0x0}:{'x':_0x12229c['x']/_0x4e9a68,'y':_0x12229c['y']/_0x4e9a68};}function C(_0x1c1a7f,_0x2fb0f7,_0xbf11ab=x(_0x1c1a7f,_0x2fb0f7)){let _0x42126f=S({'x':_0x1c1a7f['x']-_0x2fb0f7['x'],'y':_0x1c1a7f['y']-_0x2fb0f7['y']});return{'x':_0x1c1a7f['x']+_0x42126f['x']*_0xbf11ab,'y':_0x1c1a7f['y']+_0x42126f['y']*_0xbf11ab};}function w(_0x2af16b,_0x2c8365){const _0x7bf8c=_0x1ced;let {anchors:_0x35a9cd}=_0x2af16b;return _0x35a9cd[_0x7bf8c(0xa4)]<0x2||_0x2c8365<0x0?null:_0x2c8365<_0x35a9cd[_0x7bf8c(0xa4)]-0x1?{'startIndex':_0x2c8365,'endIndex':_0x2c8365+0x1,'start':_0x35a9cd[_0x2c8365],'end':_0x35a9cd[_0x2c8365+0x1]}:_0x2af16b[_0x7bf8c(0xcf)]&&_0x2c8365===_0x35a9cd[_0x7bf8c(0xa4)]-0x1?{'startIndex':_0x35a9cd[_0x7bf8c(0xa4)]-0x1,'endIndex':0x0,'start':_0x35a9cd[_0x35a9cd[_0x7bf8c(0xa4)]-0x1],'end':_0x35a9cd[0x0]}:null;}function T(_0x1acb3a,_0x457712){const _0x3bd77f=_0x1ced;var _0x57761f,_0x2e4ec7;let _0x33a487=w(_0x1acb3a,_0x457712);return _0x33a487?[_0x33a487['start'],(_0x57761f=_0x33a487[_0x3bd77f(0xb0)][_0x3bd77f(0xb2)])==null?_0x33a487['start']:_0x57761f,(_0x2e4ec7=_0x33a487[_0x3bd77f(0x98)]['in'])==null?_0x33a487['end']:_0x2e4ec7,_0x33a487['end']]:null;}function te(_0x33e2cb,_0x2ec6c9){const _0x456d92=_0x1ced;var _0x520bd6;return _0x2ec6c9===_0x456d92(0x8e)?_0x33e2cb:(_0x520bd6=_0x33e2cb[_0x2ec6c9])==null?null:_0x520bd6;}function E(_0x51bd63,_0x40881,_0xaf0059){const _0x18414c=_0x1ced;return _0xaf0059==='anchor'||_0x51bd63[_0x18414c(0xcf)]?!0x0:_0xaf0059==='in'?_0x40881>0x0:_0x40881<_0x51bd63['anchors']['length']-0x1;}function D(_0x4cfb16,_0x338484){let [_0x336e2e,_0xc68eb8,_0x313e70,_0x2f0c4f]=_0x4cfb16,_0x103791=b(_0x336e2e,_0xc68eb8,_0x338484),_0x14a37e=b(_0xc68eb8,_0x313e70,_0x338484),_0x49d1d=b(_0x313e70,_0x2f0c4f,_0x338484);return b(b(_0x103791,_0x14a37e,_0x338484),b(_0x14a37e,_0x49d1d,_0x338484),_0x338484);}function ne(_0x105ff2,_0x4a17c3){let [_0x3d9b2d,_0x1a5c0c,_0x56625,_0x51cc05]=_0x105ff2,_0x4f1316=b(_0x3d9b2d,_0x1a5c0c,_0x4a17c3),_0x5c15bc=b(_0x1a5c0c,_0x56625,_0x4a17c3),_0x5e182d=b(_0x56625,_0x51cc05,_0x4a17c3),_0x5339d7=b(_0x4f1316,_0x5c15bc,_0x4a17c3),_0x9ca61e=b(_0x5c15bc,_0x5e182d,_0x4a17c3),_0x377b1a=b(_0x5339d7,_0x9ca61e,_0x4a17c3);return{'left':[_0x3d9b2d,_0x4f1316,_0x5339d7,_0x377b1a],'right':[_0x377b1a,_0x9ca61e,_0x5e182d,_0x51cc05]};}function O(_0x14b959,_0x43e838,_0x33de5e){const _0x3b5921=_0x1ced;let _0x32a47c=_0x33de5e['x']-_0x43e838['x'],_0x14f6d4=_0x33de5e['y']-_0x43e838['y'],_0x1e7c8e=_0x32a47c*_0x32a47c+_0x14f6d4*_0x14f6d4,_0x44ac47=_0x1e7c8e<=g?0x0:Math[_0x3b5921(0x97)](0x0,Math[_0x3b5921(0xb4)](0x1,((_0x14b959['x']-_0x43e838['x'])*_0x32a47c+(_0x14b959['y']-_0x43e838['y'])*_0x14f6d4)/_0x1e7c8e)),_0x19c706={'x':_0x43e838['x']+_0x32a47c*_0x44ac47,'y':_0x43e838['y']+_0x14f6d4*_0x44ac47};return{'point':_0x19c706,'ratio':_0x44ac47,'distance':x(_0x14b959,_0x19c706)};}function re(_0x5b71bf,_0x3c434e,_0x12f2eb){const _0x117646=_0x1ced;return O(_0x5b71bf,_0x3c434e,_0x12f2eb)[_0x117646(0xbc)]**0x2;}function k(_0x21b199,_0x7b4489){const _0x315c47=_0x1ced;if(_0x21b199['length']<=0x2)return _0x21b199[_0x315c47(0xce)](_);let _0xf884ca=0x0,_0x2debc0=0x0,_0x3b204b=_0x21b199[0x0],_0x58d7c5=_0x21b199[_0x21b199[_0x315c47(0xa4)]-0x1],_0x1d41e4=_0x7b4489*_0x7b4489;for(let _0x5020f0=0x1;_0x5020f0<_0x21b199[_0x315c47(0xa4)]-0x1;_0x5020f0++){let _0x3015ef=re(_0x21b199[_0x5020f0],_0x3b204b,_0x58d7c5);_0x3015ef>_0xf884ca&&(_0xf884ca=_0x3015ef,_0x2debc0=_0x5020f0);}if(_0xf884ca<=_0x1d41e4)return[_(_0x3b204b),_(_0x58d7c5)];let _0x431cb7=k(_0x21b199[_0x315c47(0xb5)](0x0,_0x2debc0+0x1),_0x7b4489),_0xf9b1e1=k(_0x21b199[_0x315c47(0xb5)](_0x2debc0),_0x7b4489);return[..._0x431cb7[_0x315c47(0xb5)](0x0,-0x1),..._0xf9b1e1];}function ie(_0x40bda8,_0xfc6272){var _0x772e3b;let _0x41ed39=_0x40bda8[_0xfc6272],_0x47b1be=_0x40bda8[_0xfc6272+0x1],_0x3d271f=(_0x772e3b=_0x40bda8[_0xfc6272-0x1])==null?_0x41ed39:_0x772e3b;return{'x':_0x41ed39['x']+(_0x47b1be['x']-_0x3d271f['x'])/0x6,'y':_0x41ed39['y']+(_0x47b1be['y']-_0x3d271f['y'])/0x6};}function A(_0x6281e1,_0x12a128){var _0x1c6508;let _0x318159=_0x6281e1[_0x12a128],_0x30fbaf=_0x6281e1[_0x12a128-0x1],_0x27d478=(_0x1c6508=_0x6281e1[_0x12a128+0x1])==null?_0x318159:_0x1c6508;return{'x':_0x318159['x']-(_0x27d478['x']-_0x30fbaf['x'])/0x6,'y':_0x318159['y']-(_0x27d478['y']-_0x30fbaf['y'])/0x6};}function j(_0x5ce29b,_0xbe5225){const _0x558889=_0x1ced;var _0x46dc7e,_0xe86033;let _0x697284=_0x5ce29b[_0x558889(0xba)][_0xbe5225],_0x317408=(_0x46dc7e=_0x5ce29b['anchors'][_0xbe5225-0x1])==null?_0x5ce29b[_0x558889(0xcf)]?_0x5ce29b[_0x558889(0xba)][_0x5ce29b['anchors'][_0x558889(0xa4)]-0x1]:null:_0x46dc7e,_0x3f02f9=(_0xe86033=_0x5ce29b[_0x558889(0xba)][_0xbe5225+0x1])==null?_0x5ce29b[_0x558889(0xcf)]?_0x5ce29b[_0x558889(0xba)][0x0]:null:_0xe86033,_0x48b183=_0x317408&&_0x3f02f9?S({'x':_0x3f02f9['x']-_0x317408['x'],'y':_0x3f02f9['y']-_0x317408['y']}):_0x3f02f9?S({'x':_0x3f02f9['x']-_0x697284['x'],'y':_0x3f02f9['y']-_0x697284['y']}):_0x317408?S({'x':_0x697284['x']-_0x317408['x'],'y':_0x697284['y']-_0x317408['y']}):{'x':0x1,'y':0x0},_0x172a0f=_0x317408&&_0x3f02f9?Math[_0x558889(0x97)](0x32,x(_0x317408,_0x3f02f9)/0x4):0x32;return{'in':{'x':_0x697284['x']-_0x48b183['x']*_0x172a0f,'y':_0x697284['y']-_0x48b183['y']*_0x172a0f},'out':{'x':_0x697284['x']+_0x48b183['x']*_0x172a0f,'y':_0x697284['y']+_0x48b183['y']*_0x172a0f}};}function M(_0x4e1b38,_0x34cb21){const _0x408a36=_0x1ced;let _0x226bbb=_0x4e1b38[_0x34cb21],_0x283f60=_0x34cb21==='in'?_0x408a36(0xb2):'in',_0x1ff740=_0x4e1b38[_0x283f60];if(_0x226bbb){if(_0x4e1b38[_0x408a36(0xa0)]===_0x408a36(0x9c)){_0x4e1b38[_0x283f60]=C(_0x4e1b38,_0x226bbb);return;}_0x4e1b38[_0x408a36(0xa0)]===_0x408a36(0xbd)&&(_0x4e1b38[_0x283f60]=C(_0x4e1b38,_0x226bbb,_0x1ff740?x(_0x4e1b38,_0x1ff740):x(_0x4e1b38,_0x226bbb)));}}function ae(_0x34655e,_0x40d757){const _0x1a1ee3=_0x1ced;let _0x459359=y(_0x34655e);return!_0x40d757||_0x459359[_0x1a1ee3(0xcf)]||_0x459359[_0x1a1ee3(0xba)]['length']===0x0||_0x459359['anchors'][_0x1a1ee3(0xb9)]({'id':'__ink-preview-anchor__','x':_0x40d757['x'],'y':_0x40d757['y'],'pointType':_0x1a1ee3(0x84)}),_0x459359;}function oe(_0x2814d1,_0x2d384f={}){const _0x2518a3=_0x1ced;var _0x15a93c,_0x3060d1;let _0x34d83d=Math[_0x2518a3(0x97)](0x0,(_0x15a93c=_0x2d384f[_0x2518a3(0xc8)])==null?Math[_0x2518a3(0x97)](0x4,_0x2814d1['width']*0.35):_0x15a93c),_0x1ea899=(_0x3060d1=_0x2d384f[_0x2518a3(0x91)])==null?_0x3193ae=>'ink-centerline-'+_0x3193ae:_0x3060d1,_0x1837b9=k(_0x2814d1[_0x2518a3(0x8c)],_0x34d83d),_0x3c8f17=_0x1837b9[_0x2518a3(0xce)]((_0x2880ea,_0x532513)=>({'id':_0x1ea899(_0x532513),'x':_0x2880ea['x'],'y':_0x2880ea['y'],'pointType':_0x2518a3(0xca)}));for(let _0x51b97f=0x0;_0x51b97f<_0x3c8f17['length']-0x1;_0x51b97f++)_0x3c8f17[_0x51b97f][_0x2518a3(0xb2)]=ie(_0x1837b9,_0x51b97f),_0x3c8f17[_0x51b97f+0x1]['in']=A(_0x1837b9,_0x51b97f+0x1);return{'kind':_0x2518a3(0xa3),'closed':!0x1,'anchors':_0x3c8f17};}function se(_0x2a8a7b,_0x4002cb,_0x3b42c0){const _0x16f8af=_0x1ced;let _0x215cfa=null,_0x1afb9c=['anchor','in',_0x16f8af(0xb2)];return _0x2a8a7b[_0x16f8af(0xba)][_0x16f8af(0x93)]((_0x156be8,_0x4e9e8a)=>{const _0x22f5fc=_0x16f8af;_0x1afb9c[_0x22f5fc(0x93)](_0x55f42f=>{const _0x1473eb=_0x22f5fc;if(!E(_0x2a8a7b,_0x4e9e8a,_0x55f42f))return;let _0x42ad36=te(_0x156be8,_0x55f42f);if(!_0x42ad36)return;let _0xe6e78c=x(_0x4002cb,_0x42ad36);_0xe6e78c>_0x3b42c0||_0x215cfa&&_0xe6e78c>=_0x215cfa[_0x1473eb(0xbc)]||(_0x215cfa={'handle':{'kind':_0x55f42f,'anchorId':_0x156be8['id']},'point':_(_0x42ad36),'distance':_0xe6e78c});});}),_0x215cfa;}function ce(_0x3be065,_0x59c988,_0x558a88){const _0x289744=_0x1ced;let _0x2547b2=null,_0x5cfc46=_0x3be065[_0x289744(0xcf)]?_0x3be065['anchors'][_0x289744(0xa4)]:Math[_0x289744(0x97)](0x0,_0x3be065[_0x289744(0xba)]['length']-0x1);for(let _0x975040=0x0;_0x975040<_0x5cfc46;_0x975040++){let _0x388294=T(_0x3be065,_0x975040);if(!_0x388294)continue;let _0x43ed62=D(_0x388294,0x0);for(let _0x124a9f=0x1;_0x124a9f<=0x20;_0x124a9f++){let _0x15511f=D(_0x388294,_0x124a9f/0x20),_0x57ab7f=O(_0x59c988,_0x43ed62,_0x15511f),_0x574b3b=(_0x124a9f-0x1+_0x57ab7f[_0x289744(0x8b)])/0x20;(!_0x2547b2||_0x57ab7f[_0x289744(0xbc)]<_0x2547b2[_0x289744(0xbc)])&&(_0x2547b2={'segmentIndex':_0x975040,'t':_0x574b3b,'point':_0x57ab7f[_0x289744(0xad)],'distance':_0x57ab7f[_0x289744(0xbc)]}),_0x43ed62=_0x15511f;}}return _0x2547b2&&_0x2547b2['distance']<=_0x558a88?_0x2547b2:null;}function le(_0x5440c2,_0xc748f7,_0x7bb2c1){const _0x262447=_0x1ced;let _0x11bf9b=y(_0x5440c2),_0x4ecbf5=w(_0x11bf9b,_0xc748f7[_0x262447(0xb3)]),_0x52148a=T(_0x11bf9b,_0xc748f7[_0x262447(0xb3)]);if(!_0x4ecbf5||!_0x52148a)return _0x11bf9b;let _0xe1d68f=ne(_0x52148a,Math[_0x262447(0x97)](0x0,Math[_0x262447(0xb4)](0x1,_0xc748f7['t']))),_0x2fa6d4={'id':_0x7bb2c1(),'x':_0xe1d68f[_0x262447(0x96)][0x3]['x'],'y':_0xe1d68f[_0x262447(0x96)][0x3]['y'],'in':_(_0xe1d68f['left'][0x2]),'out':_(_0xe1d68f[_0x262447(0xaf)][0x1]),'pointType':'free'};return _0x11bf9b['anchors'][_0x4ecbf5['startIndex']][_0x262447(0xb2)]=_(_0xe1d68f[_0x262447(0x96)][0x1]),_0x11bf9b[_0x262447(0xba)][_0x4ecbf5[_0x262447(0xab)]]['in']=_(_0xe1d68f[_0x262447(0xaf)][0x2]),_0x11bf9b[_0x262447(0xba)]['splice'](_0x4ecbf5[_0x262447(0x85)]+0x1,0x0,_0x2fa6d4),_0x11bf9b;}function ue(_0x9d179f,_0x392227){const _0x3691b4=_0x1ced;let _0x3f62d5=y(_0x9d179f);return _0x3f62d5[_0x3691b4(0xba)]=_0x3f62d5[_0x3691b4(0xba)][_0x3691b4(0xbb)](_0xb7b7d0=>_0xb7b7d0['id']!==_0x392227),_0x3f62d5[_0x3691b4(0xcf)]&&_0x3f62d5[_0x3691b4(0xba)][_0x3691b4(0xa4)]<0x3&&(_0x3f62d5[_0x3691b4(0xcf)]=!0x1),_0x3f62d5;}function N(_0x464440,_0x482438,_0x1d85e7){const _0x4c092a=_0x1ced;let _0x31b66b=y(_0x464440),_0x28e6dd=_0x31b66b[_0x4c092a(0xba)]['findIndex'](_0x449879=>_0x449879['id']===_0x482438),_0x44edd1=_0x31b66b[_0x4c092a(0xba)][_0x28e6dd];if(!_0x44edd1)return _0x31b66b;if(_0x44edd1[_0x4c092a(0xa0)]=_0x1d85e7,_0x1d85e7==='corner')return delete _0x44edd1['in'],delete _0x44edd1[_0x4c092a(0xb2)],_0x31b66b;let _0x75b9f9=j(_0x31b66b,_0x28e6dd);if(_0x44edd1['in']=_0x44edd1['in']?_(_0x44edd1['in']):_0x75b9f9['in'],_0x44edd1['out']=_0x44edd1[_0x4c092a(0xb2)]?_(_0x44edd1[_0x4c092a(0xb2)]):_0x75b9f9['out'],_0x1d85e7===_0x4c092a(0x9c)){let _0x9832cb=Math['max'](x(_0x44edd1,_0x44edd1['in']),x(_0x44edd1,_0x44edd1[_0x4c092a(0xb2)]),0x32),_0x16448b=S({'x':_0x44edd1[_0x4c092a(0xb2)]['x']-_0x44edd1['x'],'y':_0x44edd1['out']['y']-_0x44edd1['y']});_0x44edd1[_0x4c092a(0xb2)]={'x':_0x44edd1['x']+_0x16448b['x']*_0x9832cb,'y':_0x44edd1['y']+_0x16448b['y']*_0x9832cb},_0x44edd1['in']={'x':_0x44edd1['x']-_0x16448b['x']*_0x9832cb,'y':_0x44edd1['y']-_0x16448b['y']*_0x9832cb};}else _0x1d85e7===_0x4c092a(0xbd)&&M(_0x44edd1,'out');return _0x31b66b;}function P(_0x47a09d,_0x11f87a){const _0x341b03=_0x1ced;var _0x339851;let _0x1b0c07=_0x47a09d[_0x341b03(0xba)][_0x341b03(0xac)](_0x52cf4e=>_0x52cf4e['id']===_0x11f87a),_0x2e9d51=(_0x339851=_0x1b0c07==null?void 0x0:_0x1b0c07[_0x341b03(0xa0)])==null?'corner':_0x339851;return N(_0x47a09d,_0x11f87a,_0x2e9d51===_0x341b03(0x84)?_0x341b03(0xbd):_0x2e9d51===_0x341b03(0xbd)?_0x341b03(0x9c):_0x2e9d51==='symmetric'?'free':_0x341b03(0x84));}function F(_0x33c0a5,_0x412924,_0x2b38ae){const _0x118317=_0x1ced;let _0x1b0a2a=y(_0x33c0a5),_0x5a88f4=_0x1b0a2a[_0x118317(0xba)][_0x118317(0xac)](_0x449592=>_0x449592['id']===_0x412924[_0x118317(0x80)]);if(!_0x5a88f4)return _0x1b0a2a;if(_0x412924['kind']==='anchor'){let _0x13318b={'x':_0x2b38ae['x']-_0x5a88f4['x'],'y':_0x2b38ae['y']-_0x5a88f4['y']};return _0x5a88f4['x']=_0x2b38ae['x'],_0x5a88f4['y']=_0x2b38ae['y'],_0x5a88f4['in']&&(_0x5a88f4['in']={'x':_0x5a88f4['in']['x']+_0x13318b['x'],'y':_0x5a88f4['in']['y']+_0x13318b['y']}),_0x5a88f4[_0x118317(0xb2)]&&(_0x5a88f4[_0x118317(0xb2)]={'x':_0x5a88f4['out']['x']+_0x13318b['x'],'y':_0x5a88f4[_0x118317(0xb2)]['y']+_0x13318b['y']}),_0x1b0a2a;}return _0x5a88f4[_0x412924[_0x118317(0xb6)]]=_(_0x2b38ae),_0x5a88f4['pointType']==='corner'&&(_0x5a88f4[_0x118317(0xa0)]='free'),M(_0x5a88f4,_0x412924['kind']),_0x1b0a2a;}const I=1e-9;function L(_0x1e1e75){const _0x3ec61f=_0x1ced;let _0x31d057=Math[_0x3ec61f(0xcb)](_0x1e1e75*0x2710)/0x2710;return Object['is'](_0x31d057,-0x0)?'0':String(_0x31d057);}function R(_0x3ea43b){return L(_0x3ea43b['x'])+'\x20'+L(_0x3ea43b['y']);}function z(_0x56890a,_0x54bee3){return{'x':_0x56890a['x']-_0x54bee3['x'],'y':_0x56890a['y']-_0x54bee3['y']};}function B(_0x48ac06,_0x4822b1,_0xcdd611,_0x43b70e,_0x196050){let _0x25d080=0x1-_0x196050;return{'x':_0x25d080*_0x25d080*_0x25d080*_0x48ac06['x']+0x3*_0x25d080*_0x25d080*_0x196050*_0x4822b1['x']+0x3*_0x25d080*_0x196050*_0x196050*_0xcdd611['x']+_0x196050*_0x196050*_0x196050*_0x43b70e['x'],'y':_0x25d080*_0x25d080*_0x25d080*_0x48ac06['y']+0x3*_0x25d080*_0x25d080*_0x196050*_0x4822b1['y']+0x3*_0x25d080*_0x196050*_0x196050*_0xcdd611['y']+_0x196050*_0x196050*_0x196050*_0x43b70e['y']};}function V(_0x4f13f8,_0x15beb2,_0xbba490,_0x50f385){const _0x2014a4=_0x1ced;let _0x4cf8be=-_0x4f13f8+0x3*_0x15beb2-0x3*_0xbba490+_0x50f385,_0x59b2cc=0x3*_0x4f13f8-0x6*_0x15beb2+0x3*_0xbba490,_0x4ed9b4=-0x3*_0x4f13f8+0x3*_0x15beb2,_0x5dbb64=[];if(Math[_0x2014a4(0xc5)](_0x4cf8be)<I){if(Math[_0x2014a4(0xc5)](_0x59b2cc)<I)return _0x5dbb64;let _0x26d757=-_0x4ed9b4/(0x2*_0x59b2cc);return _0x26d757>0x0&&_0x26d757<0x1&&_0x5dbb64[_0x2014a4(0xb9)](_0x26d757),_0x5dbb64;}let _0x32ad76=_0x59b2cc*_0x59b2cc-0x3*_0x4cf8be*_0x4ed9b4;if(_0x32ad76<0x0)return _0x5dbb64;let _0x2766bb=Math['sqrt'](Math['max'](0x0,_0x32ad76)),_0x1a43e6=(-_0x59b2cc+_0x2766bb)/(0x3*_0x4cf8be),_0x139125=(-_0x59b2cc-_0x2766bb)/(0x3*_0x4cf8be);return _0x1a43e6>0x0&&_0x1a43e6<0x1&&_0x5dbb64['push'](_0x1a43e6),_0x139125>0x0&&_0x139125<0x1&&Math[_0x2014a4(0xc5)](_0x139125-_0x1a43e6)>I&&_0x5dbb64[_0x2014a4(0xb9)](_0x139125),_0x5dbb64;}function H(_0x10b4f3,_0x2d32fa,_0x1af334,_0x28dcbd,_0x399f6a){const _0x2c7645=_0x1ced;_0x10b4f3[_0x2c7645(0xb9)](_0x2d32fa,_0x399f6a),new Set([...V(_0x2d32fa['x'],_0x1af334['x'],_0x28dcbd['x'],_0x399f6a['x']),...V(_0x2d32fa['y'],_0x1af334['y'],_0x28dcbd['y'],_0x399f6a['y'])])[_0x2c7645(0x93)](_0x169838=>{const _0x4655de=_0x2c7645;_0x10b4f3[_0x4655de(0xb9)](B(_0x2d32fa,_0x1af334,_0x28dcbd,_0x399f6a,_0x169838));});}function U(_0x23e05c){const _0x270118=_0x1ced;let _0x3d2633=_0x23e05c['anchors'];if(_0x3d2633[_0x270118(0xa4)]<=0x1)return _0x3d2633;let _0x772e2e=[];for(let _0x27e527=0x1;_0x27e527<_0x3d2633[_0x270118(0xa4)];_0x27e527++){var _0x49c512,_0x1ebcbe;let _0x38535b=_0x3d2633[_0x27e527-0x1],_0x5217f4=_0x3d2633[_0x27e527];H(_0x772e2e,_0x38535b,(_0x49c512=_0x38535b[_0x270118(0xb2)])==null?_0x38535b:_0x49c512,(_0x1ebcbe=_0x5217f4['in'])==null?_0x5217f4:_0x1ebcbe,_0x5217f4);}if(_0x23e05c['closed']&&_0x3d2633['length']>0x1){var _0x483e6a,_0x370c54;let _0x1faf34=_0x3d2633[_0x3d2633[_0x270118(0xa4)]-0x1],_0x11996f=_0x3d2633[0x0];H(_0x772e2e,_0x1faf34,(_0x483e6a=_0x1faf34['out'])==null?_0x1faf34:_0x483e6a,(_0x370c54=_0x11996f['in'])==null?_0x11996f:_0x370c54,_0x11996f);}return _0x772e2e;}function de(_0x331f22){const _0x4d7116=_0x1ced;let _0x4fcec8=_0x331f22[_0x4d7116(0x8c)];if(_0x4fcec8[_0x4d7116(0xa4)]<=0x1)return _0x4fcec8;let _0xa8fd62=[];for(let _0x56f665=0x0;_0x56f665<_0x4fcec8[_0x4d7116(0xa4)]-0x1;_0x56f665++){var _0x136593,_0x483929;let _0x4cd45a=_0x4fcec8[_0x56f665],_0x123505=_0x4fcec8[_0x56f665+0x1],_0x385e25=(_0x136593=_0x4fcec8[_0x56f665-0x1])==null?_0x4cd45a:_0x136593,_0x55433e=(_0x483929=_0x4fcec8[_0x56f665+0x2])==null?_0x123505:_0x483929;H(_0xa8fd62,_0x4cd45a,{'x':_0x4cd45a['x']+(_0x123505['x']-_0x385e25['x'])/0x6,'y':_0x4cd45a['y']+(_0x123505['y']-_0x385e25['y'])/0x6},{'x':_0x123505['x']-(_0x55433e['x']-_0x4cd45a['x'])/0x6,'y':_0x123505['y']-(_0x55433e['y']-_0x4cd45a['y'])/0x6},_0x123505);}return _0xa8fd62;}function fe(_0x471446){const _0x4f4d52=_0x1ced;return _0x471446[_0x4f4d52(0xb6)]===_0x4f4d52(0xa3)?U(_0x471446):de(_0x471446);}function W(_0x5792e9){const _0x1ac618=_0x1ced;let _0x54ec18=Math[_0x1ac618(0xcb)](_0x5792e9*0x2710)/0x2710;return Object['is'](_0x54ec18,-0x0)?0x0:_0x54ec18;}function G(_0x1e599e){const _0x37d1b0=_0x1ced;let _0x5a42fc=fe(_0x1e599e);if(_0x5a42fc['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4b033e=Math['min'](..._0x5a42fc['map'](_0x485f6d=>_0x485f6d['x'])),_0xf0a1d7=Math[_0x37d1b0(0xb4)](..._0x5a42fc[_0x37d1b0(0xce)](_0x26e40c=>_0x26e40c['y'])),_0x22d349=Math[_0x37d1b0(0x97)](..._0x5a42fc['map'](_0xee1676=>_0xee1676['x'])),_0x4867bf=Math[_0x37d1b0(0x97)](..._0x5a42fc[_0x37d1b0(0xce)](_0x2eedb0=>_0x2eedb0['y']));return{'left':W(_0x4b033e),'top':W(_0xf0a1d7),'width':W(Math[_0x37d1b0(0x97)](0x1,_0x22d349-_0x4b033e)),'height':W(Math[_0x37d1b0(0x97)](0x1,_0x4867bf-_0xf0a1d7))};}function pe(_0x1de73a,_0x45385c){const _0x4622b9=_0x1ced;let _0x27081c=_0x1de73a[_0x4622b9(0xba)];if(_0x27081c[_0x4622b9(0xa4)]===0x0)return'';let _0x30180a=['M\x20'+R(z(_0x27081c[0x0],_0x45385c))];for(let _0x66d405=0x1;_0x66d405<_0x27081c['length'];_0x66d405++){var _0x3f9c33,_0x3f83f7;let _0x267910=_0x27081c[_0x66d405-0x1],_0xf6cf96=_0x27081c[_0x66d405],_0x23ed5e=(_0x3f9c33=_0x267910[_0x4622b9(0xb2)])==null?_0x267910:_0x3f9c33,_0x44f074=(_0x3f83f7=_0xf6cf96['in'])==null?_0xf6cf96:_0x3f83f7;_0x30180a['push']('C\x20'+R(z(_0x23ed5e,_0x45385c))+'\x20'+R(z(_0x44f074,_0x45385c))+'\x20'+R(z(_0xf6cf96,_0x45385c)));}if(_0x1de73a[_0x4622b9(0xcf)]&&_0x27081c['length']>0x1){var _0x2e84ae,_0x2ad46c;let _0x5c57ac=_0x27081c[_0x27081c['length']-0x1],_0x3357b9=_0x27081c[0x0],_0x32fd94=(_0x2e84ae=_0x5c57ac[_0x4622b9(0xb2)])==null?_0x5c57ac:_0x2e84ae,_0xeecd64=(_0x2ad46c=_0x3357b9['in'])==null?_0x3357b9:_0x2ad46c;_0x30180a['push']('C\x20'+R(z(_0x32fd94,_0x45385c))+'\x20'+R(z(_0xeecd64,_0x45385c))+'\x20'+R(z(_0x3357b9,_0x45385c))),_0x30180a[_0x4622b9(0xb9)]('Z');}return _0x30180a['join']('\x20');}function me(_0x107b6c,_0x269de9){const _0x383ffa=_0x1ced;let _0x51982a=_0x107b6c['points'][_0x383ffa(0xce)](_0xf3d220=>z(_0xf3d220,_0x269de9));if(_0x51982a['length']===0x0)return'';if(_0x51982a['length']===0x1)return'M\x20'+R(_0x51982a[0x0]);let _0x5d03c8=['M\x20'+R(_0x51982a[0x0])];for(let _0x4f459b=0x0;_0x4f459b<_0x51982a[_0x383ffa(0xa4)]-0x1;_0x4f459b++){var _0x3c997a,_0x2d8de1;let _0x428bda=_0x51982a[_0x4f459b],_0xa7f938=_0x51982a[_0x4f459b+0x1],_0x24d403=(_0x3c997a=_0x51982a[_0x4f459b-0x1])==null?_0x428bda:_0x3c997a,_0x31c2bd=(_0x2d8de1=_0x51982a[_0x4f459b+0x2])==null?_0xa7f938:_0x2d8de1,_0x5a52dc={'x':_0x428bda['x']+(_0xa7f938['x']-_0x24d403['x'])/0x6,'y':_0x428bda['y']+(_0xa7f938['y']-_0x24d403['y'])/0x6},_0x4f3231={'x':_0xa7f938['x']-(_0x31c2bd['x']-_0x428bda['x'])/0x6,'y':_0xa7f938['y']-(_0x31c2bd['y']-_0x428bda['y'])/0x6};_0x5d03c8[_0x383ffa(0xb9)]('C\x20'+R(_0x5a52dc)+'\x20'+R(_0x4f3231)+'\x20'+R(_0xa7f938));}return _0x5d03c8['join']('\x20');}function he(_0x3408ac,_0xbbc8c1){const _0x254423=_0x1ced;return _0x3408ac[_0x254423(0xb6)]===_0x254423(0xa3)?pe(_0x3408ac,_0xbbc8c1):me(_0x3408ac,_0xbbc8c1);}function ge(_0x10a586,_0x310e98){const _0x2bb3b1=_0x1ced;return _0x310e98!=null&&_0x310e98['color']?_0x310e98['color']:_0x10a586[_0x2bb3b1(0xb6)]===_0x2bb3b1(0xa3)?_0x2bb3b1(0xc3):_0x10a586['color'];}function _e(_0x4d0a9b,_0x103690){const _0x4ceb3d=_0x1ced;return(_0x103690==null?void 0x0:_0x103690[_0x4ceb3d(0xcd)])===void 0x0?_0x4d0a9b[_0x4ceb3d(0xb6)]===_0x4ceb3d(0xa3)?0x2:_0x4d0a9b[_0x4ceb3d(0xcd)]:_0x103690[_0x4ceb3d(0xcd)];}function ve(_0x119005,_0xa33e6){const _0x3a9293=_0x1ced;return(_0xa33e6==null?void 0x0:_0xa33e6[_0x3a9293(0xb7)])===void 0x0?_0x119005['kind']===_0x3a9293(0xa3)?void 0x0:_0x119005[_0x3a9293(0xb7)]:_0xa33e6[_0x3a9293(0xb7)];}function _0x1ced(_0x27b8a0,_0x1db9ea){_0x27b8a0=_0x27b8a0-0x7e;const _0x2777cd=_0x2777();let _0x1ced70=_0x2777cd[_0x27b8a0];return _0x1ced70;}function ye(_0x397c77,_0x4f0103){const _0x2d5305=_0x1ced;let _0x58cd5c=G(_0x397c77),_0x334e32=he(_0x397c77,{'x':_0x58cd5c['left'],'y':_0x58cd5c[_0x2d5305(0xa6)]}),_0x1868c0=_0x397c77[_0x2d5305(0xb6)]==='pen'&&_0x397c77[_0x2d5305(0xcf)],_0x20e82b=_0x4f0103==null?void 0x0:_0x4f0103[_0x2d5305(0xa8)];return{'shapeType':_0x5c7e2e['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x58cd5c[_0x2d5305(0xcd)],'h':_0x58cd5c['height'],'fill':_0x1868c0?'norm':_0x2d5305(0xbe),'stroke':!0x0,'data':_0x334e32,'dataArray':be(_0x397c77,{'x':_0x58cd5c[_0x2d5305(0x96)],'y':_0x58cd5c[_0x2d5305(0xa6)]})}]},'fill':_0x1868c0&&_0x20e82b?{'color':_0x20e82b,'fillType':_0x40b030[_0x2d5305(0xc1)]}:{'fillType':_0x40b030['NoFill']},'stroke':{'color':ge(_0x397c77,_0x4f0103),'width':_e(_0x397c77,_0x4f0103),'opacity':ve(_0x397c77,_0x4f0103),'lineStrokeType':_0x568653['SolidLine'],'capType':_0x30b81e[_0x2d5305(0x83)],'lineJoinType':_0xe471ab[_0x2d5305(0x83)]}};}function K(_0x233197,_0x3ab8ef){return{'x':_0x233197['x']-_0x3ab8ef['x'],'y':_0x233197['y']-_0x3ab8ef['y']};}function be(_0xfaace9,_0x24ba2f){const _0x41fb44=_0x1ced;if(_0xfaace9['kind']===_0x41fb44(0xa3)){let _0x46f291=_0xfaace9[_0x41fb44(0xba)];if(_0x46f291[_0x41fb44(0xa4)]===0x0)return[];let _0x9d20e0=K(_0x46f291[0x0],_0x24ba2f),_0x1d6722=[{'command':'M','points':[_0x9d20e0['x'],_0x9d20e0['y']]}];for(let _0x255512=0x1;_0x255512<_0x46f291[_0x41fb44(0xa4)];_0x255512++){var _0x14b3ba,_0x58ad77;let _0x47449b=_0x46f291[_0x255512-0x1],_0x35f8c3=_0x46f291[_0x255512],_0x56c7a4=K((_0x14b3ba=_0x47449b[_0x41fb44(0xb2)])==null?_0x47449b:_0x14b3ba,_0x24ba2f),_0x5a6f5b=K((_0x58ad77=_0x35f8c3['in'])==null?_0x35f8c3:_0x58ad77,_0x24ba2f),_0x1fdcf5=K(_0x35f8c3,_0x24ba2f);_0x1d6722['push']({'command':'C','points':[_0x56c7a4['x'],_0x56c7a4['y'],_0x5a6f5b['x'],_0x5a6f5b['y'],_0x1fdcf5['x'],_0x1fdcf5['y']]});}if(_0xfaace9['closed']&&_0x46f291['length']>0x1){var _0x9dd2de,_0x81ac45;let _0x4fc166=_0x46f291[_0x46f291['length']-0x1],_0x3895c1=_0x46f291[0x0],_0x5f245e=K((_0x9dd2de=_0x4fc166[_0x41fb44(0xb2)])==null?_0x4fc166:_0x9dd2de,_0x24ba2f),_0x2a3f18=K((_0x81ac45=_0x3895c1['in'])==null?_0x3895c1:_0x81ac45,_0x24ba2f),_0x43a1c4=K(_0x3895c1,_0x24ba2f);_0x1d6722['push']({'command':'C','points':[_0x5f245e['x'],_0x5f245e['y'],_0x2a3f18['x'],_0x2a3f18['y'],_0x43a1c4['x'],_0x43a1c4['y']]}),_0x1d6722['push']({'command':'z','points':[]});}return _0x1d6722;}let _0x489f9c=_0xfaace9[_0x41fb44(0x8c)][_0x41fb44(0xce)](_0x41695b=>K(_0x41695b,_0x24ba2f));if(_0x489f9c[_0x41fb44(0xa4)]===0x0)return[];let _0x209968=[{'command':'M','points':[_0x489f9c[0x0]['x'],_0x489f9c[0x0]['y']]}];for(let _0x4dcb3f=0x0;_0x4dcb3f<_0x489f9c[_0x41fb44(0xa4)]-0x1;_0x4dcb3f++){var _0x2896d1,_0x361277;let _0x303ecf=_0x489f9c[_0x4dcb3f],_0x14ce62=_0x489f9c[_0x4dcb3f+0x1],_0x46023f=(_0x2896d1=_0x489f9c[_0x4dcb3f-0x1])==null?_0x303ecf:_0x2896d1,_0x220656=(_0x361277=_0x489f9c[_0x4dcb3f+0x2])==null?_0x14ce62:_0x361277,_0x5a3508={'x':_0x303ecf['x']+(_0x14ce62['x']-_0x46023f['x'])/0x6,'y':_0x303ecf['y']+(_0x14ce62['y']-_0x46023f['y'])/0x6},_0xf0ae73={'x':_0x14ce62['x']-(_0x220656['x']-_0x303ecf['x'])/0x6,'y':_0x14ce62['y']-(_0x220656['y']-_0x303ecf['y'])/0x6};_0x209968[_0x41fb44(0xb9)]({'command':'C','points':[_0x5a3508['x'],_0x5a3508['y'],_0xf0ae73['x'],_0xf0ae73['y'],_0x14ce62['x'],_0x14ce62['y']]});}return _0x209968;}function xe(_0x5ced35){const _0x2426a1=_0x1ced;var _0x524876;let {model:_0x855814,sourceModel:_0x4749c0=_0x855814,style:_0x27b2fc}=_0x5ced35,_0x39e8b7=(_0x524876=_0x5ced35[_0x2426a1(0x9f)])==null?_0x855814[_0x2426a1(0xb6)]:_0x524876,_0x84bffb=G(_0x855814),_0x1e77fb=_0x855814[_0x2426a1(0xb6)]===_0x2426a1(0xa3)&&_0x39e8b7!==_0x2426a1(0xa3)?_0x855814:void 0x0;return{'transform':{..._0x84bffb,'rotation':0x0},'shapeData':ye(_0x855814,_0x27b2fc),'ink':{'version':0x1,'tool':_0x39e8b7,'sourceModel':_0x4749c0,..._0x1e77fb?{'editModel':_0x1e77fb}:{},'normalizedBounds':_0x84bffb}};}var Se=_0x42e332(0x82),Ce=_0x42e332(0xaa);function q(_0x28796d){'@babel/helpers - typeof';const _0x1f2c62=_0x42e332;return q=typeof Symbol=='function'&&typeof Symbol[_0x1f2c62(0x7f)]=='symbol'?function(_0x52ce1e){return typeof _0x52ce1e;}:function(_0x216535){const _0x2f168e=_0x1f2c62;return _0x216535&&typeof Symbol==_0x2f168e(0x89)&&_0x216535['constructor']===Symbol&&_0x216535!==Symbol[_0x2f168e(0x7e)]?_0x2f168e(0x9a):typeof _0x216535;},q(_0x28796d);}function we(_0xb004fc,_0x3eef88){const _0x5a6bc1=_0x42e332;if(q(_0xb004fc)!='object'||!_0xb004fc)return _0xb004fc;var _0x36b9e6=_0xb004fc[Symbol[_0x5a6bc1(0x9b)]];if(_0x36b9e6!==void 0x0){var _0x31d247=_0x36b9e6[_0x5a6bc1(0xbf)](_0xb004fc,_0x3eef88||_0x5a6bc1(0xae));if(q(_0x31d247)!=_0x5a6bc1(0xd4))return _0x31d247;throw TypeError(_0x5a6bc1(0xd1));}return(_0x3eef88===_0x5a6bc1(0xc7)?String:Number)(_0xb004fc);}function J(_0x8e1c40){const _0x30d9e3=_0x42e332;var _0x1ac07a=we(_0x8e1c40,_0x30d9e3(0xc7));return q(_0x1ac07a)==_0x30d9e3(0x9a)?_0x1ac07a:_0x1ac07a+'';}function Y(_0xc367ae,_0x2ca74d,_0x35f757){const _0x302533=_0x42e332;return(_0x2ca74d=J(_0x2ca74d))in _0xc367ae?Object[_0x302533(0xd6)](_0xc367ae,_0x2ca74d,{'value':_0x35f757,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc367ae[_0x2ca74d]=_0x35f757,_0xc367ae;}const X=_0x5690be(_0x42e332(0x94));var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x42e332(0xc0)](_0xba8cd2){const _0x4526b1=_0x42e332;return this[_0x4526b1(0xa9)][_0x4526b1(0xb9)](_0xba8cd2),_0x4bf3a7(()=>{const _0x277cd0=_0x4526b1;let _0x5984ef=this[_0x277cd0(0xa9)][_0x277cd0(0xc6)](_0xba8cd2);_0x5984ef>=0x0&&this[_0x277cd0(0xa9)][_0x277cd0(0xc9)](_0x5984ef,0x1);});}[_0x42e332(0x95)](_0x7aed7f){const _0x23f1fa=_0x42e332;for(let _0x4b7762 of this[_0x23f1fa(0xa9)])if(_0x4b7762['beginInkMode'](_0x7aed7f))return!0x0;return!0x1;}async['createCustomShape'](_0x3243ec){const _0x1c076d=_0x42e332;for(let _0x4dde3a of this['_adapters'])if(_0x4dde3a['createCustomShape']&&await _0x4dde3a[_0x1c076d(0x8d)](_0x3243ec))return!0x0;return!0x1;}};const Ee={'id':_0x42e332(0xa1),'type':_0x2e7563['OPERATION'],'handler':(_0x2e11ec,_0x535a1b)=>_0x535a1b?_0x2e11ec[_0x42e332(0xa7)](X)['beginInkMode'](_0x535a1b):!0x1},Z={};function Q(_0x3b51e6,_0x3f9417){return function(_0x47485a,_0x1e63cd){_0x3f9417(_0x47485a,_0x1e63cd,_0x3b51e6);};}function De(_0x71168f,_0x113e07,_0x3328e1,_0x351eae){const _0x5d9d54=_0x42e332;var _0x5cc20d=arguments[_0x5d9d54(0xa4)],_0x12dfa3=_0x5cc20d<0x3?_0x113e07:_0x351eae===null?_0x351eae=Object['getOwnPropertyDescriptor'](_0x113e07,_0x3328e1):_0x351eae,_0x131fb8;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x12dfa3=Reflect['decorate'](_0x71168f,_0x113e07,_0x3328e1,_0x351eae);else{for(var _0x14568c=_0x71168f[_0x5d9d54(0xa4)]-0x1;_0x14568c>=0x0;_0x14568c--)(_0x131fb8=_0x71168f[_0x14568c])&&(_0x12dfa3=(_0x5cc20d<0x3?_0x131fb8(_0x12dfa3):_0x5cc20d>0x3?_0x131fb8(_0x113e07,_0x3328e1,_0x12dfa3):_0x131fb8(_0x113e07,_0x3328e1))||_0x12dfa3);}return _0x5cc20d>0x3&&_0x12dfa3&&Object[_0x5d9d54(0xd6)](_0x113e07,_0x3328e1,_0x12dfa3),_0x12dfa3;}let $=class extends _0x2449e5{constructor(_0x5e4e5b=Z,_0x58dfe1,_0x292053,_0x233c6f){const _0x4488c7=_0x42e332;super(),this[_0x4488c7(0x8a)]=_0x5e4e5b,this[_0x4488c7(0xcc)]=_0x58dfe1,this[_0x4488c7(0x9d)]=_0x292053,this[_0x4488c7(0xb8)]=_0x233c6f;let {..._0x880bb5}=_0x11b2d3({},Z,this[_0x4488c7(0x8a)]);this[_0x4488c7(0xb8)][_0x4488c7(0x99)]('ink.config',_0x880bb5);}[_0x42e332(0xa5)](){const _0x324fa2=_0x42e332;[[X,{'useClass':Te}]][_0x324fa2(0x93)](_0x4aa28b=>this['_injector']['add'](_0x4aa28b)),this['disposeWithMe'](this['_commandService']['registerCommand'](Ee));}};function _0x2777(){const _0x51428f=['get','fillColor','_adapters','1.0.0-alpha.3','endIndex','find','point','default','right','start','UNIVER_UNKNOWN','out','segmentIndex','min','slice','kind','opacity','_configService','push','anchors','filter','distance','smooth','none','call','registerAdapter','SolidFill','8858160rRYSbJ','#f54a45','6726GelLiu','abs','indexOf','string','tolerance','splice','free','round','_injector','width','map','closed','type','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','294lhEVpr','5515120Wczaes','object','version','defineProperty','prototype','iterator','anchorId','2485926oJqkTs','@univerjs-pro/ink','Round','corner','startIndex','7038CIDGAb','386063RWKxik','2177dGkTIG','function','_config','ratio','points','createCustomShape','anchor','69324FRdEaM','hypot','createId','pluginName','forEach','ink.host-adapter.service','beginInkMode','left','max','end','setConfig','symbol','toPrimitive','symmetric','_commandService','15zJioUu','tool','pointType','ink.operation.start','UNIVER_INK_PLUGIN','pen','length','onStarting','top'];_0x2777=function(){return _0x51428f;};return _0x2777();}Y($,_0x42e332(0x92),_0x42e332(0xa2)),Y($,'packageName',Se),Y($,_0x42e332(0xd5),Ce),Y($,_0x42e332(0xd0),_0x5370d0[_0x42e332(0xb1)]),$=De([_0x95406c(_0x3f4697),Q(0x1,_0x9103c7(_0x17a253)),Q(0x2,_0x1a1bff),Q(0x3,_0x2f7050)],$);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 ADDED
@@ -0,0 +1 @@
1
+ const _0x257e0d=_0x1688;(function(_0x3fc294,_0x1faa95){const _0x45bc5b=_0x1688,_0x395d08=_0x3fc294();while(!![]){try{const _0x3127f2=parseInt(_0x45bc5b(0xc5))/0x1+parseInt(_0x45bc5b(0xc2))/0x2+-parseInt(_0x45bc5b(0xb4))/0x3*(-parseInt(_0x45bc5b(0xcb))/0x4)+parseInt(_0x45bc5b(0xd0))/0x5+-parseInt(_0x45bc5b(0xc3))/0x6*(-parseInt(_0x45bc5b(0xb9))/0x7)+-parseInt(_0x45bc5b(0xcc))/0x8*(parseInt(_0x45bc5b(0xae))/0x9)+-parseInt(_0x45bc5b(0xbf))/0xa;if(_0x3127f2===_0x1faa95)break;else _0x395d08['push'](_0x395d08['shift']());}catch(_0x2b1853){_0x395d08['push'](_0x395d08['shift']());}}}(_0x38f1,0x25621));import{BoardElementType as _0x3f0688}from'@univerjs-pro/boards';import{FBoard as _0xb2b525}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x37940b}from'@univerjs-pro/ink';import{Tools as _0x205ef1,generateRandomId as _0x209f76}from'@univerjs/core';import{FEnum as _0x37284d}from'@univerjs/core/facade';function _0x1688(_0x5aa9e5,_0x926090){_0x5aa9e5=_0x5aa9e5-0xae;const _0x38f137=_0x38f1();let _0x1688f6=_0x38f137[_0x5aa9e5];return _0x1688f6;}var o=class extends _0xb2b525{[_0x257e0d(0xb1)](_0x4362c0){const _0x5dae82=_0x257e0d;let _0x40ea66=s(_0x4362c0);return _0x40ea66&&this[_0x5dae82(0xbe)](_0x40ea66,{'insertIndex':_0x4362c0[_0x5dae82(0xce)]})?_0x40ea66:null;}[_0x257e0d(0xdf)](){const _0x2b134f=_0x257e0d;return this[_0x2b134f(0xdb)]({'elementType':_0x3f0688['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x2b134f(0xbc)](p);}};function s(_0x420802,_0x3b571f){const _0x4d238b=_0x257e0d;var _0x213d2e,_0x291aa2,_0x5c2827;if(!l(_0x420802['model'])||_0x420802['sourceModel']!==void 0x0&&!l(_0x420802[_0x4d238b(0xd5)])||!u(_0x420802[_0x4d238b(0xcf)]))return null;let _0x379c45=(_0x213d2e=_0x420802['parentId'])==null?_0x3b571f==null?void 0x0:_0x3b571f[_0x4d238b(0xc0)]:_0x213d2e,_0x1a3383=_0x205ef1[_0x4d238b(0xbd)](_0x420802['model']),_0x228db3=_0x37940b({'model':_0x1a3383,'style':_0x420802[_0x4d238b(0xcf)],'tool':_0x420802[_0x4d238b(0xc1)],'sourceModel':_0x420802['sourceModel']?_0x205ef1[_0x4d238b(0xbd)](_0x420802[_0x4d238b(0xd5)]):_0x1a3383}),_0x1d481a=d(_0x3b571f==null?void 0x0:_0x3b571f[_0x4d238b(0xda)]);return{'id':(_0x291aa2=(_0x5c2827=_0x3b571f==null?void 0x0:_0x3b571f['id'])==null?_0x420802['id']:_0x5c2827)==null?_0x209f76(0x6):_0x291aa2,'type':_0x3f0688[_0x4d238b(0xd1)],'transform':_0x228db3[_0x4d238b(0xcd)],'shapeData':_0x228db3[_0x4d238b(0xd3)],'parentId':_0x379c45==null?void 0x0:_0x379c45,'laneId':_0x420802[_0x4d238b(0xc6)]===void 0x0?_0x3b571f==null?void 0x0:_0x3b571f[_0x4d238b(0xc6)]:_0x420802['laneId'],'custom':{..._0x1d481a,'ink':_0x228db3['ink']}};}function c(_0x42c4ed){const _0x53c5d9=_0x257e0d;return Number[_0x53c5d9(0xb8)](_0x42c4ed['x'])&&Number[_0x53c5d9(0xb8)](_0x42c4ed['y']);}function l(_0x258652){const _0x27c9f6=_0x257e0d;if(_0x258652[_0x27c9f6(0xb7)]===_0x27c9f6(0xde)){let _0x3c806f=new Set();return _0x258652[_0x27c9f6(0xc4)]['length']>=(_0x258652[_0x27c9f6(0xd9)]?0x3:0x2)&&_0x258652[_0x27c9f6(0xc4)]['every'](_0x9d44c7=>{const _0x49de48=_0x27c9f6;let _0x4fa536=_0x9d44c7['id'][_0x49de48(0xb6)]()['length']>0x0&&!_0x3c806f[_0x49de48(0xd2)](_0x9d44c7['id'])&&c(_0x9d44c7)&&(!_0x9d44c7['in']||c(_0x9d44c7['in']))&&(!_0x9d44c7[_0x49de48(0xd6)]||c(_0x9d44c7[_0x49de48(0xd6)]));return _0x3c806f['add'](_0x9d44c7['id']),_0x4fa536;});}return _0x258652[_0x27c9f6(0xb0)][_0x27c9f6(0xb3)]>=0x2&&_0x258652['points']['every'](_0x2a51ab=>c(_0x2a51ab)&&Number[_0x27c9f6(0xb8)](_0x2a51ab['t'])&&(_0x2a51ab[_0x27c9f6(0xaf)]===void 0x0||Number['isFinite'](_0x2a51ab[_0x27c9f6(0xaf)])))&&Number[_0x27c9f6(0xb8)](_0x258652[_0x27c9f6(0xdd)])&&_0x258652[_0x27c9f6(0xdd)]>0x0&&Number[_0x27c9f6(0xb8)](_0x258652[_0x27c9f6(0xc7)])&&_0x258652[_0x27c9f6(0xc7)]>=0x0&&_0x258652[_0x27c9f6(0xc7)]<=0x1;}function u(_0x592d93){const _0x4d2610=_0x257e0d;return _0x592d93===void 0x0||(_0x592d93[_0x4d2610(0xdd)]===void 0x0||Number['isFinite'](_0x592d93[_0x4d2610(0xdd)])&&_0x592d93['width']>0x0)&&(_0x592d93[_0x4d2610(0xc7)]===void 0x0||Number[_0x4d2610(0xb8)](_0x592d93[_0x4d2610(0xc7)])&&_0x592d93[_0x4d2610(0xc7)]>=0x0&&_0x592d93['opacity']<=0x1);}function d(_0x1d34de){const _0x19728e=_0x257e0d;return _0x1d34de&&typeof _0x1d34de==_0x19728e(0xc8)&&!Array['isArray'](_0x1d34de)?_0x1d34de:{};}function f(_0x410fea){const _0x367447=_0x257e0d;let _0x17a38f=d(_0x410fea['custom'])[_0x367447(0xca)];if(!_0x17a38f||typeof _0x17a38f!=_0x367447(0xc8)||Array[_0x367447(0xd4)](_0x17a38f))return null;let _0x14fe27=_0x17a38f;return _0x14fe27['version']===0x1&&_0x14fe27[_0x367447(0xd5)]&&typeof _0x14fe27[_0x367447(0xd5)]==_0x367447(0xc8)?_0x14fe27:null;}function p(_0x5c6756){const _0x8eb91a=_0x257e0d;return _0x5c6756['type']===_0x3f0688[_0x8eb91a(0xd1)]&&!!f(_0x5c6756);}_0xb2b525[_0x257e0d(0xbb)](o);function _0x38f1(){const _0x5f0f71=['highlighter','BoardInkTool','closed','custom','findElements','BoardInkPointType','width','pen','getInks','3411hANDko','pressure','points','insertInk','smooth','length','754557ICansQ','BoardInkHandleKind','trim','kind','isFinite','60410IBxIkT','brush','extend','filter','deepClone','addElement','6934760ftxREG','parentId','tool','534734jxzAgI','150daLWBZ','anchors','305294Hftqnf','laneId','opacity','object','anchor','ink','4igXLtC','5216xRHHxo','transform','insertIndex','style','268875iKFkOc','Shape','has','shapeData','isArray','sourceModel','out'];_0x38f1=function(){return _0x5f0f71;};return _0x38f1();}const m={'Pen':_0x257e0d(0xde),'Brush':_0x257e0d(0xba),'Highlighter':_0x257e0d(0xd7)},h={'Corner':'corner','Smooth':_0x257e0d(0xb2),'Symmetric':'symmetric','Free':'free'},g={'Anchor':_0x257e0d(0xc9),'In':'in','Out':'out'};var _=class extends _0x37284d{get[_0x257e0d(0xd8)](){return m;}get[_0x257e0d(0xdc)](){return h;}get[_0x257e0d(0xb5)](){return g;}};_0x37284d[_0x257e0d(0xbb)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
package/lib/index.js ADDED
@@ -0,0 +1 @@
1
+ const _0x42e332=_0x1ced;(function(_0x3f38e3,_0x58f8f1){const _0x5d7c50=_0x1ced,_0x189e84=_0x3f38e3();while(!![]){try{const _0x5f42dc=parseInt(_0x5d7c50(0x87))/0x1+-parseInt(_0x5d7c50(0x86))/0x2*(-parseInt(_0x5d7c50(0xd2))/0x3)+-parseInt(_0x5d7c50(0x8f))/0x4*(-parseInt(_0x5d7c50(0x9e))/0x5)+-parseInt(_0x5d7c50(0xc4))/0x6*(parseInt(_0x5d7c50(0x88))/0x7)+-parseInt(_0x5d7c50(0xd3))/0x8+-parseInt(_0x5d7c50(0x81))/0x9+parseInt(_0x5d7c50(0xc2))/0xa;if(_0x5f42dc===_0x58f8f1)break;else _0x189e84['push'](_0x189e84['shift']());}catch(_0x297107){_0x189e84['push'](_0x189e84['shift']());}}}(_0x2777,0x568c3));import{ShapeFillEnum as _0x40b030,ShapeLineCapEnum as _0x30b81e,ShapeLineJoinEnum as _0xe471ab,ShapeLineTypeEnum as _0x568653,ShapeTypeEnum as _0x5c7e2e}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x3f4697}from'@univerjs-pro/license';import{CommandType as _0x2e7563,DependentOn as _0x95406c,ICommandService as _0x1a1bff,IConfigService as _0x2f7050,Inject as _0x9103c7,Injector as _0x17a253,Plugin as _0x2449e5,UniverInstanceType as _0x5370d0,createIdentifier as _0x5690be,merge as _0x11b2d3,toDisposable as _0x4bf3a7}from'@univerjs/core';const g=0.0001;function _(_0x4161f6){return{'x':_0x4161f6['x'],'y':_0x4161f6['y']};}function v(_0x21882c){const _0x12ed7a=_0x1ced;return{..._0x21882c,'in':_0x21882c['in']?_(_0x21882c['in']):void 0x0,'out':_0x21882c[_0x12ed7a(0xb2)]?_(_0x21882c[_0x12ed7a(0xb2)]):void 0x0};}function y(_0x518e53){const _0x880c8f=_0x1ced;return{'kind':'pen','closed':_0x518e53[_0x880c8f(0xcf)],'anchors':_0x518e53[_0x880c8f(0xba)][_0x880c8f(0xce)](v)};}function b(_0x57a4e7,_0x9e8b21,_0x4c773e){return{'x':_0x57a4e7['x']+(_0x9e8b21['x']-_0x57a4e7['x'])*_0x4c773e,'y':_0x57a4e7['y']+(_0x9e8b21['y']-_0x57a4e7['y'])*_0x4c773e};}function x(_0x356032,_0x3d776f){const _0xdcb542=_0x1ced;return Math[_0xdcb542(0x90)](_0x356032['x']-_0x3d776f['x'],_0x356032['y']-_0x3d776f['y']);}function S(_0x12229c){const _0x4024df=_0x1ced;let _0x4e9a68=Math[_0x4024df(0x90)](_0x12229c['x'],_0x12229c['y']);return _0x4e9a68<g?{'x':0x1,'y':0x0}:{'x':_0x12229c['x']/_0x4e9a68,'y':_0x12229c['y']/_0x4e9a68};}function C(_0x1c1a7f,_0x2fb0f7,_0xbf11ab=x(_0x1c1a7f,_0x2fb0f7)){let _0x42126f=S({'x':_0x1c1a7f['x']-_0x2fb0f7['x'],'y':_0x1c1a7f['y']-_0x2fb0f7['y']});return{'x':_0x1c1a7f['x']+_0x42126f['x']*_0xbf11ab,'y':_0x1c1a7f['y']+_0x42126f['y']*_0xbf11ab};}function w(_0x2af16b,_0x2c8365){const _0x7bf8c=_0x1ced;let {anchors:_0x35a9cd}=_0x2af16b;return _0x35a9cd[_0x7bf8c(0xa4)]<0x2||_0x2c8365<0x0?null:_0x2c8365<_0x35a9cd[_0x7bf8c(0xa4)]-0x1?{'startIndex':_0x2c8365,'endIndex':_0x2c8365+0x1,'start':_0x35a9cd[_0x2c8365],'end':_0x35a9cd[_0x2c8365+0x1]}:_0x2af16b[_0x7bf8c(0xcf)]&&_0x2c8365===_0x35a9cd[_0x7bf8c(0xa4)]-0x1?{'startIndex':_0x35a9cd[_0x7bf8c(0xa4)]-0x1,'endIndex':0x0,'start':_0x35a9cd[_0x35a9cd[_0x7bf8c(0xa4)]-0x1],'end':_0x35a9cd[0x0]}:null;}function T(_0x1acb3a,_0x457712){const _0x3bd77f=_0x1ced;var _0x57761f,_0x2e4ec7;let _0x33a487=w(_0x1acb3a,_0x457712);return _0x33a487?[_0x33a487['start'],(_0x57761f=_0x33a487[_0x3bd77f(0xb0)][_0x3bd77f(0xb2)])==null?_0x33a487['start']:_0x57761f,(_0x2e4ec7=_0x33a487[_0x3bd77f(0x98)]['in'])==null?_0x33a487['end']:_0x2e4ec7,_0x33a487['end']]:null;}function te(_0x33e2cb,_0x2ec6c9){const _0x456d92=_0x1ced;var _0x520bd6;return _0x2ec6c9===_0x456d92(0x8e)?_0x33e2cb:(_0x520bd6=_0x33e2cb[_0x2ec6c9])==null?null:_0x520bd6;}function E(_0x51bd63,_0x40881,_0xaf0059){const _0x18414c=_0x1ced;return _0xaf0059==='anchor'||_0x51bd63[_0x18414c(0xcf)]?!0x0:_0xaf0059==='in'?_0x40881>0x0:_0x40881<_0x51bd63['anchors']['length']-0x1;}function D(_0x4cfb16,_0x338484){let [_0x336e2e,_0xc68eb8,_0x313e70,_0x2f0c4f]=_0x4cfb16,_0x103791=b(_0x336e2e,_0xc68eb8,_0x338484),_0x14a37e=b(_0xc68eb8,_0x313e70,_0x338484),_0x49d1d=b(_0x313e70,_0x2f0c4f,_0x338484);return b(b(_0x103791,_0x14a37e,_0x338484),b(_0x14a37e,_0x49d1d,_0x338484),_0x338484);}function ne(_0x105ff2,_0x4a17c3){let [_0x3d9b2d,_0x1a5c0c,_0x56625,_0x51cc05]=_0x105ff2,_0x4f1316=b(_0x3d9b2d,_0x1a5c0c,_0x4a17c3),_0x5c15bc=b(_0x1a5c0c,_0x56625,_0x4a17c3),_0x5e182d=b(_0x56625,_0x51cc05,_0x4a17c3),_0x5339d7=b(_0x4f1316,_0x5c15bc,_0x4a17c3),_0x9ca61e=b(_0x5c15bc,_0x5e182d,_0x4a17c3),_0x377b1a=b(_0x5339d7,_0x9ca61e,_0x4a17c3);return{'left':[_0x3d9b2d,_0x4f1316,_0x5339d7,_0x377b1a],'right':[_0x377b1a,_0x9ca61e,_0x5e182d,_0x51cc05]};}function O(_0x14b959,_0x43e838,_0x33de5e){const _0x3b5921=_0x1ced;let _0x32a47c=_0x33de5e['x']-_0x43e838['x'],_0x14f6d4=_0x33de5e['y']-_0x43e838['y'],_0x1e7c8e=_0x32a47c*_0x32a47c+_0x14f6d4*_0x14f6d4,_0x44ac47=_0x1e7c8e<=g?0x0:Math[_0x3b5921(0x97)](0x0,Math[_0x3b5921(0xb4)](0x1,((_0x14b959['x']-_0x43e838['x'])*_0x32a47c+(_0x14b959['y']-_0x43e838['y'])*_0x14f6d4)/_0x1e7c8e)),_0x19c706={'x':_0x43e838['x']+_0x32a47c*_0x44ac47,'y':_0x43e838['y']+_0x14f6d4*_0x44ac47};return{'point':_0x19c706,'ratio':_0x44ac47,'distance':x(_0x14b959,_0x19c706)};}function re(_0x5b71bf,_0x3c434e,_0x12f2eb){const _0x117646=_0x1ced;return O(_0x5b71bf,_0x3c434e,_0x12f2eb)[_0x117646(0xbc)]**0x2;}function k(_0x21b199,_0x7b4489){const _0x315c47=_0x1ced;if(_0x21b199['length']<=0x2)return _0x21b199[_0x315c47(0xce)](_);let _0xf884ca=0x0,_0x2debc0=0x0,_0x3b204b=_0x21b199[0x0],_0x58d7c5=_0x21b199[_0x21b199[_0x315c47(0xa4)]-0x1],_0x1d41e4=_0x7b4489*_0x7b4489;for(let _0x5020f0=0x1;_0x5020f0<_0x21b199[_0x315c47(0xa4)]-0x1;_0x5020f0++){let _0x3015ef=re(_0x21b199[_0x5020f0],_0x3b204b,_0x58d7c5);_0x3015ef>_0xf884ca&&(_0xf884ca=_0x3015ef,_0x2debc0=_0x5020f0);}if(_0xf884ca<=_0x1d41e4)return[_(_0x3b204b),_(_0x58d7c5)];let _0x431cb7=k(_0x21b199[_0x315c47(0xb5)](0x0,_0x2debc0+0x1),_0x7b4489),_0xf9b1e1=k(_0x21b199[_0x315c47(0xb5)](_0x2debc0),_0x7b4489);return[..._0x431cb7[_0x315c47(0xb5)](0x0,-0x1),..._0xf9b1e1];}function ie(_0x40bda8,_0xfc6272){var _0x772e3b;let _0x41ed39=_0x40bda8[_0xfc6272],_0x47b1be=_0x40bda8[_0xfc6272+0x1],_0x3d271f=(_0x772e3b=_0x40bda8[_0xfc6272-0x1])==null?_0x41ed39:_0x772e3b;return{'x':_0x41ed39['x']+(_0x47b1be['x']-_0x3d271f['x'])/0x6,'y':_0x41ed39['y']+(_0x47b1be['y']-_0x3d271f['y'])/0x6};}function A(_0x6281e1,_0x12a128){var _0x1c6508;let _0x318159=_0x6281e1[_0x12a128],_0x30fbaf=_0x6281e1[_0x12a128-0x1],_0x27d478=(_0x1c6508=_0x6281e1[_0x12a128+0x1])==null?_0x318159:_0x1c6508;return{'x':_0x318159['x']-(_0x27d478['x']-_0x30fbaf['x'])/0x6,'y':_0x318159['y']-(_0x27d478['y']-_0x30fbaf['y'])/0x6};}function j(_0x5ce29b,_0xbe5225){const _0x558889=_0x1ced;var _0x46dc7e,_0xe86033;let _0x697284=_0x5ce29b[_0x558889(0xba)][_0xbe5225],_0x317408=(_0x46dc7e=_0x5ce29b['anchors'][_0xbe5225-0x1])==null?_0x5ce29b[_0x558889(0xcf)]?_0x5ce29b[_0x558889(0xba)][_0x5ce29b['anchors'][_0x558889(0xa4)]-0x1]:null:_0x46dc7e,_0x3f02f9=(_0xe86033=_0x5ce29b[_0x558889(0xba)][_0xbe5225+0x1])==null?_0x5ce29b[_0x558889(0xcf)]?_0x5ce29b[_0x558889(0xba)][0x0]:null:_0xe86033,_0x48b183=_0x317408&&_0x3f02f9?S({'x':_0x3f02f9['x']-_0x317408['x'],'y':_0x3f02f9['y']-_0x317408['y']}):_0x3f02f9?S({'x':_0x3f02f9['x']-_0x697284['x'],'y':_0x3f02f9['y']-_0x697284['y']}):_0x317408?S({'x':_0x697284['x']-_0x317408['x'],'y':_0x697284['y']-_0x317408['y']}):{'x':0x1,'y':0x0},_0x172a0f=_0x317408&&_0x3f02f9?Math[_0x558889(0x97)](0x32,x(_0x317408,_0x3f02f9)/0x4):0x32;return{'in':{'x':_0x697284['x']-_0x48b183['x']*_0x172a0f,'y':_0x697284['y']-_0x48b183['y']*_0x172a0f},'out':{'x':_0x697284['x']+_0x48b183['x']*_0x172a0f,'y':_0x697284['y']+_0x48b183['y']*_0x172a0f}};}function M(_0x4e1b38,_0x34cb21){const _0x408a36=_0x1ced;let _0x226bbb=_0x4e1b38[_0x34cb21],_0x283f60=_0x34cb21==='in'?_0x408a36(0xb2):'in',_0x1ff740=_0x4e1b38[_0x283f60];if(_0x226bbb){if(_0x4e1b38[_0x408a36(0xa0)]===_0x408a36(0x9c)){_0x4e1b38[_0x283f60]=C(_0x4e1b38,_0x226bbb);return;}_0x4e1b38[_0x408a36(0xa0)]===_0x408a36(0xbd)&&(_0x4e1b38[_0x283f60]=C(_0x4e1b38,_0x226bbb,_0x1ff740?x(_0x4e1b38,_0x1ff740):x(_0x4e1b38,_0x226bbb)));}}function ae(_0x34655e,_0x40d757){const _0x1a1ee3=_0x1ced;let _0x459359=y(_0x34655e);return!_0x40d757||_0x459359[_0x1a1ee3(0xcf)]||_0x459359[_0x1a1ee3(0xba)]['length']===0x0||_0x459359['anchors'][_0x1a1ee3(0xb9)]({'id':'__ink-preview-anchor__','x':_0x40d757['x'],'y':_0x40d757['y'],'pointType':_0x1a1ee3(0x84)}),_0x459359;}function oe(_0x2814d1,_0x2d384f={}){const _0x2518a3=_0x1ced;var _0x15a93c,_0x3060d1;let _0x34d83d=Math[_0x2518a3(0x97)](0x0,(_0x15a93c=_0x2d384f[_0x2518a3(0xc8)])==null?Math[_0x2518a3(0x97)](0x4,_0x2814d1['width']*0.35):_0x15a93c),_0x1ea899=(_0x3060d1=_0x2d384f[_0x2518a3(0x91)])==null?_0x3193ae=>'ink-centerline-'+_0x3193ae:_0x3060d1,_0x1837b9=k(_0x2814d1[_0x2518a3(0x8c)],_0x34d83d),_0x3c8f17=_0x1837b9[_0x2518a3(0xce)]((_0x2880ea,_0x532513)=>({'id':_0x1ea899(_0x532513),'x':_0x2880ea['x'],'y':_0x2880ea['y'],'pointType':_0x2518a3(0xca)}));for(let _0x51b97f=0x0;_0x51b97f<_0x3c8f17['length']-0x1;_0x51b97f++)_0x3c8f17[_0x51b97f][_0x2518a3(0xb2)]=ie(_0x1837b9,_0x51b97f),_0x3c8f17[_0x51b97f+0x1]['in']=A(_0x1837b9,_0x51b97f+0x1);return{'kind':_0x2518a3(0xa3),'closed':!0x1,'anchors':_0x3c8f17};}function se(_0x2a8a7b,_0x4002cb,_0x3b42c0){const _0x16f8af=_0x1ced;let _0x215cfa=null,_0x1afb9c=['anchor','in',_0x16f8af(0xb2)];return _0x2a8a7b[_0x16f8af(0xba)][_0x16f8af(0x93)]((_0x156be8,_0x4e9e8a)=>{const _0x22f5fc=_0x16f8af;_0x1afb9c[_0x22f5fc(0x93)](_0x55f42f=>{const _0x1473eb=_0x22f5fc;if(!E(_0x2a8a7b,_0x4e9e8a,_0x55f42f))return;let _0x42ad36=te(_0x156be8,_0x55f42f);if(!_0x42ad36)return;let _0xe6e78c=x(_0x4002cb,_0x42ad36);_0xe6e78c>_0x3b42c0||_0x215cfa&&_0xe6e78c>=_0x215cfa[_0x1473eb(0xbc)]||(_0x215cfa={'handle':{'kind':_0x55f42f,'anchorId':_0x156be8['id']},'point':_(_0x42ad36),'distance':_0xe6e78c});});}),_0x215cfa;}function ce(_0x3be065,_0x59c988,_0x558a88){const _0x289744=_0x1ced;let _0x2547b2=null,_0x5cfc46=_0x3be065[_0x289744(0xcf)]?_0x3be065['anchors'][_0x289744(0xa4)]:Math[_0x289744(0x97)](0x0,_0x3be065[_0x289744(0xba)]['length']-0x1);for(let _0x975040=0x0;_0x975040<_0x5cfc46;_0x975040++){let _0x388294=T(_0x3be065,_0x975040);if(!_0x388294)continue;let _0x43ed62=D(_0x388294,0x0);for(let _0x124a9f=0x1;_0x124a9f<=0x20;_0x124a9f++){let _0x15511f=D(_0x388294,_0x124a9f/0x20),_0x57ab7f=O(_0x59c988,_0x43ed62,_0x15511f),_0x574b3b=(_0x124a9f-0x1+_0x57ab7f[_0x289744(0x8b)])/0x20;(!_0x2547b2||_0x57ab7f[_0x289744(0xbc)]<_0x2547b2[_0x289744(0xbc)])&&(_0x2547b2={'segmentIndex':_0x975040,'t':_0x574b3b,'point':_0x57ab7f[_0x289744(0xad)],'distance':_0x57ab7f[_0x289744(0xbc)]}),_0x43ed62=_0x15511f;}}return _0x2547b2&&_0x2547b2['distance']<=_0x558a88?_0x2547b2:null;}function le(_0x5440c2,_0xc748f7,_0x7bb2c1){const _0x262447=_0x1ced;let _0x11bf9b=y(_0x5440c2),_0x4ecbf5=w(_0x11bf9b,_0xc748f7[_0x262447(0xb3)]),_0x52148a=T(_0x11bf9b,_0xc748f7[_0x262447(0xb3)]);if(!_0x4ecbf5||!_0x52148a)return _0x11bf9b;let _0xe1d68f=ne(_0x52148a,Math[_0x262447(0x97)](0x0,Math[_0x262447(0xb4)](0x1,_0xc748f7['t']))),_0x2fa6d4={'id':_0x7bb2c1(),'x':_0xe1d68f[_0x262447(0x96)][0x3]['x'],'y':_0xe1d68f[_0x262447(0x96)][0x3]['y'],'in':_(_0xe1d68f['left'][0x2]),'out':_(_0xe1d68f[_0x262447(0xaf)][0x1]),'pointType':'free'};return _0x11bf9b['anchors'][_0x4ecbf5['startIndex']][_0x262447(0xb2)]=_(_0xe1d68f[_0x262447(0x96)][0x1]),_0x11bf9b[_0x262447(0xba)][_0x4ecbf5[_0x262447(0xab)]]['in']=_(_0xe1d68f[_0x262447(0xaf)][0x2]),_0x11bf9b[_0x262447(0xba)]['splice'](_0x4ecbf5[_0x262447(0x85)]+0x1,0x0,_0x2fa6d4),_0x11bf9b;}function ue(_0x9d179f,_0x392227){const _0x3691b4=_0x1ced;let _0x3f62d5=y(_0x9d179f);return _0x3f62d5[_0x3691b4(0xba)]=_0x3f62d5[_0x3691b4(0xba)][_0x3691b4(0xbb)](_0xb7b7d0=>_0xb7b7d0['id']!==_0x392227),_0x3f62d5[_0x3691b4(0xcf)]&&_0x3f62d5[_0x3691b4(0xba)][_0x3691b4(0xa4)]<0x3&&(_0x3f62d5[_0x3691b4(0xcf)]=!0x1),_0x3f62d5;}function N(_0x464440,_0x482438,_0x1d85e7){const _0x4c092a=_0x1ced;let _0x31b66b=y(_0x464440),_0x28e6dd=_0x31b66b[_0x4c092a(0xba)]['findIndex'](_0x449879=>_0x449879['id']===_0x482438),_0x44edd1=_0x31b66b[_0x4c092a(0xba)][_0x28e6dd];if(!_0x44edd1)return _0x31b66b;if(_0x44edd1[_0x4c092a(0xa0)]=_0x1d85e7,_0x1d85e7==='corner')return delete _0x44edd1['in'],delete _0x44edd1[_0x4c092a(0xb2)],_0x31b66b;let _0x75b9f9=j(_0x31b66b,_0x28e6dd);if(_0x44edd1['in']=_0x44edd1['in']?_(_0x44edd1['in']):_0x75b9f9['in'],_0x44edd1['out']=_0x44edd1[_0x4c092a(0xb2)]?_(_0x44edd1[_0x4c092a(0xb2)]):_0x75b9f9['out'],_0x1d85e7===_0x4c092a(0x9c)){let _0x9832cb=Math['max'](x(_0x44edd1,_0x44edd1['in']),x(_0x44edd1,_0x44edd1[_0x4c092a(0xb2)]),0x32),_0x16448b=S({'x':_0x44edd1[_0x4c092a(0xb2)]['x']-_0x44edd1['x'],'y':_0x44edd1['out']['y']-_0x44edd1['y']});_0x44edd1[_0x4c092a(0xb2)]={'x':_0x44edd1['x']+_0x16448b['x']*_0x9832cb,'y':_0x44edd1['y']+_0x16448b['y']*_0x9832cb},_0x44edd1['in']={'x':_0x44edd1['x']-_0x16448b['x']*_0x9832cb,'y':_0x44edd1['y']-_0x16448b['y']*_0x9832cb};}else _0x1d85e7===_0x4c092a(0xbd)&&M(_0x44edd1,'out');return _0x31b66b;}function P(_0x47a09d,_0x11f87a){const _0x341b03=_0x1ced;var _0x339851;let _0x1b0c07=_0x47a09d[_0x341b03(0xba)][_0x341b03(0xac)](_0x52cf4e=>_0x52cf4e['id']===_0x11f87a),_0x2e9d51=(_0x339851=_0x1b0c07==null?void 0x0:_0x1b0c07[_0x341b03(0xa0)])==null?'corner':_0x339851;return N(_0x47a09d,_0x11f87a,_0x2e9d51===_0x341b03(0x84)?_0x341b03(0xbd):_0x2e9d51===_0x341b03(0xbd)?_0x341b03(0x9c):_0x2e9d51==='symmetric'?'free':_0x341b03(0x84));}function F(_0x33c0a5,_0x412924,_0x2b38ae){const _0x118317=_0x1ced;let _0x1b0a2a=y(_0x33c0a5),_0x5a88f4=_0x1b0a2a[_0x118317(0xba)][_0x118317(0xac)](_0x449592=>_0x449592['id']===_0x412924[_0x118317(0x80)]);if(!_0x5a88f4)return _0x1b0a2a;if(_0x412924['kind']==='anchor'){let _0x13318b={'x':_0x2b38ae['x']-_0x5a88f4['x'],'y':_0x2b38ae['y']-_0x5a88f4['y']};return _0x5a88f4['x']=_0x2b38ae['x'],_0x5a88f4['y']=_0x2b38ae['y'],_0x5a88f4['in']&&(_0x5a88f4['in']={'x':_0x5a88f4['in']['x']+_0x13318b['x'],'y':_0x5a88f4['in']['y']+_0x13318b['y']}),_0x5a88f4[_0x118317(0xb2)]&&(_0x5a88f4[_0x118317(0xb2)]={'x':_0x5a88f4['out']['x']+_0x13318b['x'],'y':_0x5a88f4[_0x118317(0xb2)]['y']+_0x13318b['y']}),_0x1b0a2a;}return _0x5a88f4[_0x412924[_0x118317(0xb6)]]=_(_0x2b38ae),_0x5a88f4['pointType']==='corner'&&(_0x5a88f4[_0x118317(0xa0)]='free'),M(_0x5a88f4,_0x412924['kind']),_0x1b0a2a;}const I=1e-9;function L(_0x1e1e75){const _0x3ec61f=_0x1ced;let _0x31d057=Math[_0x3ec61f(0xcb)](_0x1e1e75*0x2710)/0x2710;return Object['is'](_0x31d057,-0x0)?'0':String(_0x31d057);}function R(_0x3ea43b){return L(_0x3ea43b['x'])+'\x20'+L(_0x3ea43b['y']);}function z(_0x56890a,_0x54bee3){return{'x':_0x56890a['x']-_0x54bee3['x'],'y':_0x56890a['y']-_0x54bee3['y']};}function B(_0x48ac06,_0x4822b1,_0xcdd611,_0x43b70e,_0x196050){let _0x25d080=0x1-_0x196050;return{'x':_0x25d080*_0x25d080*_0x25d080*_0x48ac06['x']+0x3*_0x25d080*_0x25d080*_0x196050*_0x4822b1['x']+0x3*_0x25d080*_0x196050*_0x196050*_0xcdd611['x']+_0x196050*_0x196050*_0x196050*_0x43b70e['x'],'y':_0x25d080*_0x25d080*_0x25d080*_0x48ac06['y']+0x3*_0x25d080*_0x25d080*_0x196050*_0x4822b1['y']+0x3*_0x25d080*_0x196050*_0x196050*_0xcdd611['y']+_0x196050*_0x196050*_0x196050*_0x43b70e['y']};}function V(_0x4f13f8,_0x15beb2,_0xbba490,_0x50f385){const _0x2014a4=_0x1ced;let _0x4cf8be=-_0x4f13f8+0x3*_0x15beb2-0x3*_0xbba490+_0x50f385,_0x59b2cc=0x3*_0x4f13f8-0x6*_0x15beb2+0x3*_0xbba490,_0x4ed9b4=-0x3*_0x4f13f8+0x3*_0x15beb2,_0x5dbb64=[];if(Math[_0x2014a4(0xc5)](_0x4cf8be)<I){if(Math[_0x2014a4(0xc5)](_0x59b2cc)<I)return _0x5dbb64;let _0x26d757=-_0x4ed9b4/(0x2*_0x59b2cc);return _0x26d757>0x0&&_0x26d757<0x1&&_0x5dbb64[_0x2014a4(0xb9)](_0x26d757),_0x5dbb64;}let _0x32ad76=_0x59b2cc*_0x59b2cc-0x3*_0x4cf8be*_0x4ed9b4;if(_0x32ad76<0x0)return _0x5dbb64;let _0x2766bb=Math['sqrt'](Math['max'](0x0,_0x32ad76)),_0x1a43e6=(-_0x59b2cc+_0x2766bb)/(0x3*_0x4cf8be),_0x139125=(-_0x59b2cc-_0x2766bb)/(0x3*_0x4cf8be);return _0x1a43e6>0x0&&_0x1a43e6<0x1&&_0x5dbb64['push'](_0x1a43e6),_0x139125>0x0&&_0x139125<0x1&&Math[_0x2014a4(0xc5)](_0x139125-_0x1a43e6)>I&&_0x5dbb64[_0x2014a4(0xb9)](_0x139125),_0x5dbb64;}function H(_0x10b4f3,_0x2d32fa,_0x1af334,_0x28dcbd,_0x399f6a){const _0x2c7645=_0x1ced;_0x10b4f3[_0x2c7645(0xb9)](_0x2d32fa,_0x399f6a),new Set([...V(_0x2d32fa['x'],_0x1af334['x'],_0x28dcbd['x'],_0x399f6a['x']),...V(_0x2d32fa['y'],_0x1af334['y'],_0x28dcbd['y'],_0x399f6a['y'])])[_0x2c7645(0x93)](_0x169838=>{const _0x4655de=_0x2c7645;_0x10b4f3[_0x4655de(0xb9)](B(_0x2d32fa,_0x1af334,_0x28dcbd,_0x399f6a,_0x169838));});}function U(_0x23e05c){const _0x270118=_0x1ced;let _0x3d2633=_0x23e05c['anchors'];if(_0x3d2633[_0x270118(0xa4)]<=0x1)return _0x3d2633;let _0x772e2e=[];for(let _0x27e527=0x1;_0x27e527<_0x3d2633[_0x270118(0xa4)];_0x27e527++){var _0x49c512,_0x1ebcbe;let _0x38535b=_0x3d2633[_0x27e527-0x1],_0x5217f4=_0x3d2633[_0x27e527];H(_0x772e2e,_0x38535b,(_0x49c512=_0x38535b[_0x270118(0xb2)])==null?_0x38535b:_0x49c512,(_0x1ebcbe=_0x5217f4['in'])==null?_0x5217f4:_0x1ebcbe,_0x5217f4);}if(_0x23e05c['closed']&&_0x3d2633['length']>0x1){var _0x483e6a,_0x370c54;let _0x1faf34=_0x3d2633[_0x3d2633[_0x270118(0xa4)]-0x1],_0x11996f=_0x3d2633[0x0];H(_0x772e2e,_0x1faf34,(_0x483e6a=_0x1faf34['out'])==null?_0x1faf34:_0x483e6a,(_0x370c54=_0x11996f['in'])==null?_0x11996f:_0x370c54,_0x11996f);}return _0x772e2e;}function de(_0x331f22){const _0x4d7116=_0x1ced;let _0x4fcec8=_0x331f22[_0x4d7116(0x8c)];if(_0x4fcec8[_0x4d7116(0xa4)]<=0x1)return _0x4fcec8;let _0xa8fd62=[];for(let _0x56f665=0x0;_0x56f665<_0x4fcec8[_0x4d7116(0xa4)]-0x1;_0x56f665++){var _0x136593,_0x483929;let _0x4cd45a=_0x4fcec8[_0x56f665],_0x123505=_0x4fcec8[_0x56f665+0x1],_0x385e25=(_0x136593=_0x4fcec8[_0x56f665-0x1])==null?_0x4cd45a:_0x136593,_0x55433e=(_0x483929=_0x4fcec8[_0x56f665+0x2])==null?_0x123505:_0x483929;H(_0xa8fd62,_0x4cd45a,{'x':_0x4cd45a['x']+(_0x123505['x']-_0x385e25['x'])/0x6,'y':_0x4cd45a['y']+(_0x123505['y']-_0x385e25['y'])/0x6},{'x':_0x123505['x']-(_0x55433e['x']-_0x4cd45a['x'])/0x6,'y':_0x123505['y']-(_0x55433e['y']-_0x4cd45a['y'])/0x6},_0x123505);}return _0xa8fd62;}function fe(_0x471446){const _0x4f4d52=_0x1ced;return _0x471446[_0x4f4d52(0xb6)]===_0x4f4d52(0xa3)?U(_0x471446):de(_0x471446);}function W(_0x5792e9){const _0x1ac618=_0x1ced;let _0x54ec18=Math[_0x1ac618(0xcb)](_0x5792e9*0x2710)/0x2710;return Object['is'](_0x54ec18,-0x0)?0x0:_0x54ec18;}function G(_0x1e599e){const _0x37d1b0=_0x1ced;let _0x5a42fc=fe(_0x1e599e);if(_0x5a42fc['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4b033e=Math['min'](..._0x5a42fc['map'](_0x485f6d=>_0x485f6d['x'])),_0xf0a1d7=Math[_0x37d1b0(0xb4)](..._0x5a42fc[_0x37d1b0(0xce)](_0x26e40c=>_0x26e40c['y'])),_0x22d349=Math[_0x37d1b0(0x97)](..._0x5a42fc['map'](_0xee1676=>_0xee1676['x'])),_0x4867bf=Math[_0x37d1b0(0x97)](..._0x5a42fc[_0x37d1b0(0xce)](_0x2eedb0=>_0x2eedb0['y']));return{'left':W(_0x4b033e),'top':W(_0xf0a1d7),'width':W(Math[_0x37d1b0(0x97)](0x1,_0x22d349-_0x4b033e)),'height':W(Math[_0x37d1b0(0x97)](0x1,_0x4867bf-_0xf0a1d7))};}function pe(_0x1de73a,_0x45385c){const _0x4622b9=_0x1ced;let _0x27081c=_0x1de73a[_0x4622b9(0xba)];if(_0x27081c[_0x4622b9(0xa4)]===0x0)return'';let _0x30180a=['M\x20'+R(z(_0x27081c[0x0],_0x45385c))];for(let _0x66d405=0x1;_0x66d405<_0x27081c['length'];_0x66d405++){var _0x3f9c33,_0x3f83f7;let _0x267910=_0x27081c[_0x66d405-0x1],_0xf6cf96=_0x27081c[_0x66d405],_0x23ed5e=(_0x3f9c33=_0x267910[_0x4622b9(0xb2)])==null?_0x267910:_0x3f9c33,_0x44f074=(_0x3f83f7=_0xf6cf96['in'])==null?_0xf6cf96:_0x3f83f7;_0x30180a['push']('C\x20'+R(z(_0x23ed5e,_0x45385c))+'\x20'+R(z(_0x44f074,_0x45385c))+'\x20'+R(z(_0xf6cf96,_0x45385c)));}if(_0x1de73a[_0x4622b9(0xcf)]&&_0x27081c['length']>0x1){var _0x2e84ae,_0x2ad46c;let _0x5c57ac=_0x27081c[_0x27081c['length']-0x1],_0x3357b9=_0x27081c[0x0],_0x32fd94=(_0x2e84ae=_0x5c57ac[_0x4622b9(0xb2)])==null?_0x5c57ac:_0x2e84ae,_0xeecd64=(_0x2ad46c=_0x3357b9['in'])==null?_0x3357b9:_0x2ad46c;_0x30180a['push']('C\x20'+R(z(_0x32fd94,_0x45385c))+'\x20'+R(z(_0xeecd64,_0x45385c))+'\x20'+R(z(_0x3357b9,_0x45385c))),_0x30180a[_0x4622b9(0xb9)]('Z');}return _0x30180a['join']('\x20');}function me(_0x107b6c,_0x269de9){const _0x383ffa=_0x1ced;let _0x51982a=_0x107b6c['points'][_0x383ffa(0xce)](_0xf3d220=>z(_0xf3d220,_0x269de9));if(_0x51982a['length']===0x0)return'';if(_0x51982a['length']===0x1)return'M\x20'+R(_0x51982a[0x0]);let _0x5d03c8=['M\x20'+R(_0x51982a[0x0])];for(let _0x4f459b=0x0;_0x4f459b<_0x51982a[_0x383ffa(0xa4)]-0x1;_0x4f459b++){var _0x3c997a,_0x2d8de1;let _0x428bda=_0x51982a[_0x4f459b],_0xa7f938=_0x51982a[_0x4f459b+0x1],_0x24d403=(_0x3c997a=_0x51982a[_0x4f459b-0x1])==null?_0x428bda:_0x3c997a,_0x31c2bd=(_0x2d8de1=_0x51982a[_0x4f459b+0x2])==null?_0xa7f938:_0x2d8de1,_0x5a52dc={'x':_0x428bda['x']+(_0xa7f938['x']-_0x24d403['x'])/0x6,'y':_0x428bda['y']+(_0xa7f938['y']-_0x24d403['y'])/0x6},_0x4f3231={'x':_0xa7f938['x']-(_0x31c2bd['x']-_0x428bda['x'])/0x6,'y':_0xa7f938['y']-(_0x31c2bd['y']-_0x428bda['y'])/0x6};_0x5d03c8[_0x383ffa(0xb9)]('C\x20'+R(_0x5a52dc)+'\x20'+R(_0x4f3231)+'\x20'+R(_0xa7f938));}return _0x5d03c8['join']('\x20');}function he(_0x3408ac,_0xbbc8c1){const _0x254423=_0x1ced;return _0x3408ac[_0x254423(0xb6)]===_0x254423(0xa3)?pe(_0x3408ac,_0xbbc8c1):me(_0x3408ac,_0xbbc8c1);}function ge(_0x10a586,_0x310e98){const _0x2bb3b1=_0x1ced;return _0x310e98!=null&&_0x310e98['color']?_0x310e98['color']:_0x10a586[_0x2bb3b1(0xb6)]===_0x2bb3b1(0xa3)?_0x2bb3b1(0xc3):_0x10a586['color'];}function _e(_0x4d0a9b,_0x103690){const _0x4ceb3d=_0x1ced;return(_0x103690==null?void 0x0:_0x103690[_0x4ceb3d(0xcd)])===void 0x0?_0x4d0a9b[_0x4ceb3d(0xb6)]===_0x4ceb3d(0xa3)?0x2:_0x4d0a9b[_0x4ceb3d(0xcd)]:_0x103690[_0x4ceb3d(0xcd)];}function ve(_0x119005,_0xa33e6){const _0x3a9293=_0x1ced;return(_0xa33e6==null?void 0x0:_0xa33e6[_0x3a9293(0xb7)])===void 0x0?_0x119005['kind']===_0x3a9293(0xa3)?void 0x0:_0x119005[_0x3a9293(0xb7)]:_0xa33e6[_0x3a9293(0xb7)];}function _0x1ced(_0x27b8a0,_0x1db9ea){_0x27b8a0=_0x27b8a0-0x7e;const _0x2777cd=_0x2777();let _0x1ced70=_0x2777cd[_0x27b8a0];return _0x1ced70;}function ye(_0x397c77,_0x4f0103){const _0x2d5305=_0x1ced;let _0x58cd5c=G(_0x397c77),_0x334e32=he(_0x397c77,{'x':_0x58cd5c['left'],'y':_0x58cd5c[_0x2d5305(0xa6)]}),_0x1868c0=_0x397c77[_0x2d5305(0xb6)]==='pen'&&_0x397c77[_0x2d5305(0xcf)],_0x20e82b=_0x4f0103==null?void 0x0:_0x4f0103[_0x2d5305(0xa8)];return{'shapeType':_0x5c7e2e['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x58cd5c[_0x2d5305(0xcd)],'h':_0x58cd5c['height'],'fill':_0x1868c0?'norm':_0x2d5305(0xbe),'stroke':!0x0,'data':_0x334e32,'dataArray':be(_0x397c77,{'x':_0x58cd5c[_0x2d5305(0x96)],'y':_0x58cd5c[_0x2d5305(0xa6)]})}]},'fill':_0x1868c0&&_0x20e82b?{'color':_0x20e82b,'fillType':_0x40b030[_0x2d5305(0xc1)]}:{'fillType':_0x40b030['NoFill']},'stroke':{'color':ge(_0x397c77,_0x4f0103),'width':_e(_0x397c77,_0x4f0103),'opacity':ve(_0x397c77,_0x4f0103),'lineStrokeType':_0x568653['SolidLine'],'capType':_0x30b81e[_0x2d5305(0x83)],'lineJoinType':_0xe471ab[_0x2d5305(0x83)]}};}function K(_0x233197,_0x3ab8ef){return{'x':_0x233197['x']-_0x3ab8ef['x'],'y':_0x233197['y']-_0x3ab8ef['y']};}function be(_0xfaace9,_0x24ba2f){const _0x41fb44=_0x1ced;if(_0xfaace9['kind']===_0x41fb44(0xa3)){let _0x46f291=_0xfaace9[_0x41fb44(0xba)];if(_0x46f291[_0x41fb44(0xa4)]===0x0)return[];let _0x9d20e0=K(_0x46f291[0x0],_0x24ba2f),_0x1d6722=[{'command':'M','points':[_0x9d20e0['x'],_0x9d20e0['y']]}];for(let _0x255512=0x1;_0x255512<_0x46f291[_0x41fb44(0xa4)];_0x255512++){var _0x14b3ba,_0x58ad77;let _0x47449b=_0x46f291[_0x255512-0x1],_0x35f8c3=_0x46f291[_0x255512],_0x56c7a4=K((_0x14b3ba=_0x47449b[_0x41fb44(0xb2)])==null?_0x47449b:_0x14b3ba,_0x24ba2f),_0x5a6f5b=K((_0x58ad77=_0x35f8c3['in'])==null?_0x35f8c3:_0x58ad77,_0x24ba2f),_0x1fdcf5=K(_0x35f8c3,_0x24ba2f);_0x1d6722['push']({'command':'C','points':[_0x56c7a4['x'],_0x56c7a4['y'],_0x5a6f5b['x'],_0x5a6f5b['y'],_0x1fdcf5['x'],_0x1fdcf5['y']]});}if(_0xfaace9['closed']&&_0x46f291['length']>0x1){var _0x9dd2de,_0x81ac45;let _0x4fc166=_0x46f291[_0x46f291['length']-0x1],_0x3895c1=_0x46f291[0x0],_0x5f245e=K((_0x9dd2de=_0x4fc166[_0x41fb44(0xb2)])==null?_0x4fc166:_0x9dd2de,_0x24ba2f),_0x2a3f18=K((_0x81ac45=_0x3895c1['in'])==null?_0x3895c1:_0x81ac45,_0x24ba2f),_0x43a1c4=K(_0x3895c1,_0x24ba2f);_0x1d6722['push']({'command':'C','points':[_0x5f245e['x'],_0x5f245e['y'],_0x2a3f18['x'],_0x2a3f18['y'],_0x43a1c4['x'],_0x43a1c4['y']]}),_0x1d6722['push']({'command':'z','points':[]});}return _0x1d6722;}let _0x489f9c=_0xfaace9[_0x41fb44(0x8c)][_0x41fb44(0xce)](_0x41695b=>K(_0x41695b,_0x24ba2f));if(_0x489f9c[_0x41fb44(0xa4)]===0x0)return[];let _0x209968=[{'command':'M','points':[_0x489f9c[0x0]['x'],_0x489f9c[0x0]['y']]}];for(let _0x4dcb3f=0x0;_0x4dcb3f<_0x489f9c[_0x41fb44(0xa4)]-0x1;_0x4dcb3f++){var _0x2896d1,_0x361277;let _0x303ecf=_0x489f9c[_0x4dcb3f],_0x14ce62=_0x489f9c[_0x4dcb3f+0x1],_0x46023f=(_0x2896d1=_0x489f9c[_0x4dcb3f-0x1])==null?_0x303ecf:_0x2896d1,_0x220656=(_0x361277=_0x489f9c[_0x4dcb3f+0x2])==null?_0x14ce62:_0x361277,_0x5a3508={'x':_0x303ecf['x']+(_0x14ce62['x']-_0x46023f['x'])/0x6,'y':_0x303ecf['y']+(_0x14ce62['y']-_0x46023f['y'])/0x6},_0xf0ae73={'x':_0x14ce62['x']-(_0x220656['x']-_0x303ecf['x'])/0x6,'y':_0x14ce62['y']-(_0x220656['y']-_0x303ecf['y'])/0x6};_0x209968[_0x41fb44(0xb9)]({'command':'C','points':[_0x5a3508['x'],_0x5a3508['y'],_0xf0ae73['x'],_0xf0ae73['y'],_0x14ce62['x'],_0x14ce62['y']]});}return _0x209968;}function xe(_0x5ced35){const _0x2426a1=_0x1ced;var _0x524876;let {model:_0x855814,sourceModel:_0x4749c0=_0x855814,style:_0x27b2fc}=_0x5ced35,_0x39e8b7=(_0x524876=_0x5ced35[_0x2426a1(0x9f)])==null?_0x855814[_0x2426a1(0xb6)]:_0x524876,_0x84bffb=G(_0x855814),_0x1e77fb=_0x855814[_0x2426a1(0xb6)]===_0x2426a1(0xa3)&&_0x39e8b7!==_0x2426a1(0xa3)?_0x855814:void 0x0;return{'transform':{..._0x84bffb,'rotation':0x0},'shapeData':ye(_0x855814,_0x27b2fc),'ink':{'version':0x1,'tool':_0x39e8b7,'sourceModel':_0x4749c0,..._0x1e77fb?{'editModel':_0x1e77fb}:{},'normalizedBounds':_0x84bffb}};}var Se=_0x42e332(0x82),Ce=_0x42e332(0xaa);function q(_0x28796d){'@babel/helpers - typeof';const _0x1f2c62=_0x42e332;return q=typeof Symbol=='function'&&typeof Symbol[_0x1f2c62(0x7f)]=='symbol'?function(_0x52ce1e){return typeof _0x52ce1e;}:function(_0x216535){const _0x2f168e=_0x1f2c62;return _0x216535&&typeof Symbol==_0x2f168e(0x89)&&_0x216535['constructor']===Symbol&&_0x216535!==Symbol[_0x2f168e(0x7e)]?_0x2f168e(0x9a):typeof _0x216535;},q(_0x28796d);}function we(_0xb004fc,_0x3eef88){const _0x5a6bc1=_0x42e332;if(q(_0xb004fc)!='object'||!_0xb004fc)return _0xb004fc;var _0x36b9e6=_0xb004fc[Symbol[_0x5a6bc1(0x9b)]];if(_0x36b9e6!==void 0x0){var _0x31d247=_0x36b9e6[_0x5a6bc1(0xbf)](_0xb004fc,_0x3eef88||_0x5a6bc1(0xae));if(q(_0x31d247)!=_0x5a6bc1(0xd4))return _0x31d247;throw TypeError(_0x5a6bc1(0xd1));}return(_0x3eef88===_0x5a6bc1(0xc7)?String:Number)(_0xb004fc);}function J(_0x8e1c40){const _0x30d9e3=_0x42e332;var _0x1ac07a=we(_0x8e1c40,_0x30d9e3(0xc7));return q(_0x1ac07a)==_0x30d9e3(0x9a)?_0x1ac07a:_0x1ac07a+'';}function Y(_0xc367ae,_0x2ca74d,_0x35f757){const _0x302533=_0x42e332;return(_0x2ca74d=J(_0x2ca74d))in _0xc367ae?Object[_0x302533(0xd6)](_0xc367ae,_0x2ca74d,{'value':_0x35f757,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc367ae[_0x2ca74d]=_0x35f757,_0xc367ae;}const X=_0x5690be(_0x42e332(0x94));var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x42e332(0xc0)](_0xba8cd2){const _0x4526b1=_0x42e332;return this[_0x4526b1(0xa9)][_0x4526b1(0xb9)](_0xba8cd2),_0x4bf3a7(()=>{const _0x277cd0=_0x4526b1;let _0x5984ef=this[_0x277cd0(0xa9)][_0x277cd0(0xc6)](_0xba8cd2);_0x5984ef>=0x0&&this[_0x277cd0(0xa9)][_0x277cd0(0xc9)](_0x5984ef,0x1);});}[_0x42e332(0x95)](_0x7aed7f){const _0x23f1fa=_0x42e332;for(let _0x4b7762 of this[_0x23f1fa(0xa9)])if(_0x4b7762['beginInkMode'](_0x7aed7f))return!0x0;return!0x1;}async['createCustomShape'](_0x3243ec){const _0x1c076d=_0x42e332;for(let _0x4dde3a of this['_adapters'])if(_0x4dde3a['createCustomShape']&&await _0x4dde3a[_0x1c076d(0x8d)](_0x3243ec))return!0x0;return!0x1;}};const Ee={'id':_0x42e332(0xa1),'type':_0x2e7563['OPERATION'],'handler':(_0x2e11ec,_0x535a1b)=>_0x535a1b?_0x2e11ec[_0x42e332(0xa7)](X)['beginInkMode'](_0x535a1b):!0x1},Z={};function Q(_0x3b51e6,_0x3f9417){return function(_0x47485a,_0x1e63cd){_0x3f9417(_0x47485a,_0x1e63cd,_0x3b51e6);};}function De(_0x71168f,_0x113e07,_0x3328e1,_0x351eae){const _0x5d9d54=_0x42e332;var _0x5cc20d=arguments[_0x5d9d54(0xa4)],_0x12dfa3=_0x5cc20d<0x3?_0x113e07:_0x351eae===null?_0x351eae=Object['getOwnPropertyDescriptor'](_0x113e07,_0x3328e1):_0x351eae,_0x131fb8;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x12dfa3=Reflect['decorate'](_0x71168f,_0x113e07,_0x3328e1,_0x351eae);else{for(var _0x14568c=_0x71168f[_0x5d9d54(0xa4)]-0x1;_0x14568c>=0x0;_0x14568c--)(_0x131fb8=_0x71168f[_0x14568c])&&(_0x12dfa3=(_0x5cc20d<0x3?_0x131fb8(_0x12dfa3):_0x5cc20d>0x3?_0x131fb8(_0x113e07,_0x3328e1,_0x12dfa3):_0x131fb8(_0x113e07,_0x3328e1))||_0x12dfa3);}return _0x5cc20d>0x3&&_0x12dfa3&&Object[_0x5d9d54(0xd6)](_0x113e07,_0x3328e1,_0x12dfa3),_0x12dfa3;}let $=class extends _0x2449e5{constructor(_0x5e4e5b=Z,_0x58dfe1,_0x292053,_0x233c6f){const _0x4488c7=_0x42e332;super(),this[_0x4488c7(0x8a)]=_0x5e4e5b,this[_0x4488c7(0xcc)]=_0x58dfe1,this[_0x4488c7(0x9d)]=_0x292053,this[_0x4488c7(0xb8)]=_0x233c6f;let {..._0x880bb5}=_0x11b2d3({},Z,this[_0x4488c7(0x8a)]);this[_0x4488c7(0xb8)][_0x4488c7(0x99)]('ink.config',_0x880bb5);}[_0x42e332(0xa5)](){const _0x324fa2=_0x42e332;[[X,{'useClass':Te}]][_0x324fa2(0x93)](_0x4aa28b=>this['_injector']['add'](_0x4aa28b)),this['disposeWithMe'](this['_commandService']['registerCommand'](Ee));}};function _0x2777(){const _0x51428f=['get','fillColor','_adapters','1.0.0-alpha.3','endIndex','find','point','default','right','start','UNIVER_UNKNOWN','out','segmentIndex','min','slice','kind','opacity','_configService','push','anchors','filter','distance','smooth','none','call','registerAdapter','SolidFill','8858160rRYSbJ','#f54a45','6726GelLiu','abs','indexOf','string','tolerance','splice','free','round','_injector','width','map','closed','type','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','294lhEVpr','5515120Wczaes','object','version','defineProperty','prototype','iterator','anchorId','2485926oJqkTs','@univerjs-pro/ink','Round','corner','startIndex','7038CIDGAb','386063RWKxik','2177dGkTIG','function','_config','ratio','points','createCustomShape','anchor','69324FRdEaM','hypot','createId','pluginName','forEach','ink.host-adapter.service','beginInkMode','left','max','end','setConfig','symbol','toPrimitive','symmetric','_commandService','15zJioUu','tool','pointType','ink.operation.start','UNIVER_INK_PLUGIN','pen','length','onStarting','top'];_0x2777=function(){return _0x51428f;};return _0x2777();}Y($,_0x42e332(0x92),_0x42e332(0xa2)),Y($,'packageName',Se),Y($,_0x42e332(0xd5),Ce),Y($,_0x42e332(0xd0),_0x5370d0[_0x42e332(0xb1)]),$=De([_0x95406c(_0x3f4697),Q(0x1,_0x9103c7(_0x17a253)),Q(0x2,_0x1a1bff),Q(0x3,_0x2f7050)],$);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};
@@ -0,0 +1,3 @@
1
+ import type { IOperation } from '@univerjs/core';
2
+ import type { IBeginInkModeParams } from '../services/ink-host-adapter.service';
3
+ export declare const StartInkOperation: IOperation<IBeginInkModeParams>;
@@ -0,0 +1,5 @@
1
+ export declare const INK_PLUGIN_CONFIG_KEY = "ink.config";
2
+ export declare const configSymbol: unique symbol;
3
+ export interface IUniverInkConfig {
4
+ }
5
+ export declare const defaultPluginConfig: IUniverInkConfig;
@@ -0,0 +1,83 @@
1
+ import type { IBoardShapeElement } from '@univerjs-pro/boards';
2
+ import type { IBoardFacadeAddElementOptions } from '@univerjs-pro/boards/facade';
3
+ import type { IInkSourceModel, IInkStyle, InkToolType } from '@univerjs-pro/ink';
4
+ /**
5
+ * Options for inserting a persistent Ink path into a Board.
6
+ *
7
+ * Ink coordinates are Board coordinates. The generated element bounds come from the supplied path model; callers do not
8
+ * need to calculate `left`, `top`, `width`, or `height` separately.
9
+ *
10
+ */
11
+ export interface IBoardInkFacadeInsertOptions extends IBoardFacadeAddElementOptions {
12
+ /** Ink geometry in Board coordinates. */
13
+ model: IInkSourceModel;
14
+ /** Optional visual style. Model defaults are used when omitted. */
15
+ style?: IInkStyle;
16
+ /**
17
+ * Stored Ink tool. Use `univerAPI.Enum.BoardInkTool`; defaults to `model.kind`.
18
+ */
19
+ tool?: Exclude<InkToolType, 'eraser'>;
20
+ /**
21
+ * Optional original model retained for editing after a converted path is rendered.
22
+ *
23
+ * Most callers should omit this. It is useful when rendering one model while retaining another as the editable source.
24
+ */
25
+ sourceModel?: IInkSourceModel;
26
+ /** Optional element id. A random id is generated when omitted. */
27
+ id?: string;
28
+ /** Optional parent container id for low-level integrations. */
29
+ parentId?: string;
30
+ /** Optional target swimlane lane id. */
31
+ laneId?: string;
32
+ }
33
+ /**
34
+ * Ink APIs mixed into `FBoard` by importing `@univerjs-pro/ink/facade`.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const board = univerAPI.getActiveBoard();
39
+ * if (!board) throw new Error('No active board');
40
+ * console.log(board.getInks().length);
41
+ * ```
42
+ */
43
+ export interface IFBoardInkMixin {
44
+ /**
45
+ * Inserts one persistent Ink element through the normal Board command path.
46
+ *
47
+ * @param options Ink model, style, element id, and optional container placement.
48
+ * @returns The inserted Board shape element, or `null` when validation or insertion fails.
49
+ * @example
50
+ * ```ts
51
+ * const board = univerAPI.getActiveBoard();
52
+ * if (!board) throw new Error('No active board');
53
+ * const ink = board.insertInk({
54
+ * tool: univerAPI.Enum.BoardInkTool.Brush,
55
+ * model: {
56
+ * kind: 'brush',
57
+ * points: [{ x: 80, y: 80, t: 0 }, { x: 160, y: 120, t: 1 }, { x: 240, y: 90, t: 2 }],
58
+ * color: '#2563eb',
59
+ * width: 4,
60
+ * opacity: 1,
61
+ * },
62
+ * });
63
+ * if (!ink) throw new Error('Cannot insert ink');
64
+ * ```
65
+ */
66
+ insertInk(options: IBoardInkFacadeInsertOptions): IBoardShapeElement | null;
67
+ /**
68
+ * Lists persistent Ink elements in Board z-order, including hidden or locked Ink.
69
+ *
70
+ * @returns Ink shape elements in Board z-order.
71
+ * @example
72
+ * ```ts
73
+ * const board = univerAPI.getActiveBoard();
74
+ * if (!board) throw new Error('No active board');
75
+ * console.log(board.getInks().length);
76
+ * ```
77
+ */
78
+ getInks(): IBoardShapeElement[];
79
+ }
80
+ declare module '@univerjs-pro/boards/facade' {
81
+ interface FBoard extends IFBoardInkMixin {
82
+ }
83
+ }
@@ -0,0 +1,75 @@
1
+ /** Ink tools that create persistent Board ink elements. */
2
+ export declare const BoardInkTool: {
3
+ /** Editable Bezier pen path. */
4
+ readonly Pen: "pen";
5
+ /** Freehand brush stroke. */
6
+ readonly Brush: "brush";
7
+ /** Translucent highlighter stroke. */
8
+ readonly Highlighter: "highlighter";
9
+ };
10
+ /** Pen anchor behaviors accepted by Board Ink editing APIs. */
11
+ export declare const BoardInkPointType: {
12
+ /** Corner anchor with independently controlled incoming and outgoing segments. */
13
+ readonly Corner: "corner";
14
+ /** Smooth anchor that keeps both handles collinear while preserving their lengths. */
15
+ readonly Smooth: "smooth";
16
+ /** Symmetric anchor that keeps both handles collinear and equally long. */
17
+ readonly Symmetric: "symmetric";
18
+ /** Free anchor whose handles can be moved independently. */
19
+ readonly Free: "free";
20
+ };
21
+ /** Editable pen points accepted by `moveInkAnchorPoint()`. */
22
+ export declare const BoardInkHandleKind: {
23
+ /** Move the anchor itself and translate both handles with it. */
24
+ readonly Anchor: "anchor";
25
+ /** Move the incoming Bezier handle. */
26
+ readonly In: "in";
27
+ /** Move the outgoing Bezier handle. */
28
+ readonly Out: "out";
29
+ };
30
+ /**
31
+ * Ink enum constants exposed through `univerAPI.Enum`.
32
+ *
33
+ * Import `@univerjs-pro/ink/facade` before using this surface.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const tool = univerAPI.Enum.BoardInkTool.Pen;
38
+ * console.log(tool);
39
+ * ```
40
+ */
41
+ export interface IFBoardInkEnumMixin {
42
+ /**
43
+ * Persistent ink tools accepted by `insertInk()`.
44
+ *
45
+ * Eraser is intentionally absent because it is an interaction mode rather than a stored ink element.
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * console.log(univerAPI.Enum.BoardInkTool.Brush);
50
+ * ```
51
+ */
52
+ BoardInkTool: typeof BoardInkTool;
53
+ /**
54
+ * Pen anchor behaviors accepted by `setInkAnchorPointType()` and pen source models.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * console.log(univerAPI.Enum.BoardInkPointType.Corner);
59
+ * ```
60
+ */
61
+ BoardInkPointType: typeof BoardInkPointType;
62
+ /**
63
+ * Pen anchor and handle targets accepted by `moveInkAnchorPoint()`.
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * console.log(univerAPI.Enum.BoardInkHandleKind.Anchor);
68
+ * ```
69
+ */
70
+ BoardInkHandleKind: typeof BoardInkHandleKind;
71
+ }
72
+ declare module '@univerjs/core/facade' {
73
+ interface FEnum extends IFBoardInkEnumMixin {
74
+ }
75
+ }
@@ -0,0 +1,5 @@
1
+ import './f-board-ink';
2
+ import './f-enum';
3
+ export type { IBoardInkFacadeInsertOptions, IFBoardInkMixin } from './f-board-ink';
4
+ export { BoardInkHandleKind, BoardInkPointType, BoardInkTool } from './f-enum';
5
+ export type { IFBoardInkEnumMixin } from './f-enum';
@@ -0,0 +1,8 @@
1
+ export { convertBrushModelToPenModel, cycleInkPenAnchorPointType, deleteInkPenAnchor, findClosestInkPenHandle, findClosestInkPenSegment, getInkPenPreviewModel, insertInkPenAnchorAt, isInkPenHandleVisible, moveInkPenAnchorPoint, setInkPenAnchorPointType, } from './ink-edit';
2
+ export type { IInkPenHandleRef, IInkPenPathHit, InkPenHandleKind, InkPenPointType, } from './ink-edit';
3
+ export { getInkModelBounds } from './ink-path';
4
+ export { buildInkCustomShapePayload } from './ink-shape';
5
+ export type { IInkAnchorPoint, IInkBrushModel, IInkBrushSamplePoint, IInkPenModel, IInkPoint, IInkRect, IInkSourceModel, IInkStyle, InkToolType, } from './ink-types';
6
+ export { UniverInkPlugin } from './plugin';
7
+ export { IInkHostAdapterService } from './services/ink-host-adapter.service';
8
+ export type { IBeginInkModeParams, ICreateInkCustomShapeParams, IInkHostAdapter, } from './services/ink-host-adapter.service';
@@ -0,0 +1,31 @@
1
+ import type { IInkAnchorPoint, IInkBrushModel, IInkPenModel, IInkPoint } from './ink-types';
2
+ export type InkPenPointType = IInkAnchorPoint['pointType'];
3
+ export type InkPenHandleKind = 'anchor' | 'in' | 'out';
4
+ export interface IInkPenHandleRef {
5
+ kind: InkPenHandleKind;
6
+ anchorId: string;
7
+ }
8
+ export interface IInkPenPathHit {
9
+ segmentIndex: number;
10
+ t: number;
11
+ point: IInkPoint;
12
+ distance: number;
13
+ }
14
+ export interface IInkPenHandleHit {
15
+ handle: IInkPenHandleRef;
16
+ point: IInkPoint;
17
+ distance: number;
18
+ }
19
+ export declare function isInkPenHandleVisible(model: IInkPenModel, anchorIndex: number, kind: InkPenHandleKind): boolean;
20
+ export declare function getInkPenPreviewModel(model: IInkPenModel, point: IInkPoint | null): IInkPenModel;
21
+ export declare function convertBrushModelToPenModel(model: IInkBrushModel, options?: {
22
+ tolerance?: number;
23
+ createId?: (index: number) => string;
24
+ }): IInkPenModel;
25
+ export declare function findClosestInkPenHandle(model: IInkPenModel, point: IInkPoint, tolerance: number): IInkPenHandleHit | null;
26
+ export declare function findClosestInkPenSegment(model: IInkPenModel, point: IInkPoint, tolerance: number): IInkPenPathHit | null;
27
+ export declare function insertInkPenAnchorAt(model: IInkPenModel, hit: Pick<IInkPenPathHit, 'segmentIndex' | 't'>, createId: () => string): IInkPenModel;
28
+ export declare function deleteInkPenAnchor(model: IInkPenModel, anchorId: string): IInkPenModel;
29
+ export declare function setInkPenAnchorPointType(model: IInkPenModel, anchorId: string, pointType: InkPenPointType): IInkPenModel;
30
+ export declare function cycleInkPenAnchorPointType(model: IInkPenModel, anchorId: string): IInkPenModel;
31
+ export declare function moveInkPenAnchorPoint(model: IInkPenModel, handleRef: IInkPenHandleRef, point: IInkPoint): IInkPenModel;
@@ -0,0 +1,14 @@
1
+ import type { IInkPoint, IInkSourceModel } from './ink-types';
2
+ export declare function getInkModelBounds(model: IInkSourceModel): {
3
+ left: number;
4
+ top: number;
5
+ width: number;
6
+ height: number;
7
+ };
8
+ export declare function buildPenSvgPath(model: Extract<IInkSourceModel, {
9
+ kind: 'pen';
10
+ }>, offset: IInkPoint): string;
11
+ export declare function buildBrushSvgPath(model: Extract<IInkSourceModel, {
12
+ kind: 'brush' | 'highlighter';
13
+ }>, offset: IInkPoint): string;
14
+ export declare function buildInkSvgPath(model: IInkSourceModel, offset: IInkPoint): string;
@@ -0,0 +1,8 @@
1
+ import type { IInkCustomShapePayload, IInkSourceModel, IInkStyle, InkToolType } from './ink-types';
2
+ export interface IBuildInkCustomShapePayloadParams {
3
+ model: IInkSourceModel;
4
+ style?: IInkStyle;
5
+ tool?: Exclude<InkToolType, 'eraser'>;
6
+ sourceModel?: IInkSourceModel;
7
+ }
8
+ export declare function buildInkCustomShapePayload(params: IBuildInkCustomShapePayloadParams): IInkCustomShapePayload;
@@ -0,0 +1,54 @@
1
+ import type { IShapeData } from '@univerjs-pro/engine-shape';
2
+ export type InkToolType = 'pen' | 'brush' | 'highlighter' | 'eraser';
3
+ export interface IInkPoint {
4
+ x: number;
5
+ y: number;
6
+ }
7
+ export interface IInkAnchorPoint extends IInkPoint {
8
+ id: string;
9
+ in?: IInkPoint;
10
+ out?: IInkPoint;
11
+ pointType: 'corner' | 'smooth' | 'symmetric' | 'free';
12
+ }
13
+ export interface IInkPenModel {
14
+ kind: 'pen';
15
+ closed: boolean;
16
+ anchors: IInkAnchorPoint[];
17
+ }
18
+ export interface IInkBrushSamplePoint extends IInkPoint {
19
+ pressure?: number;
20
+ t: number;
21
+ }
22
+ export interface IInkBrushModel {
23
+ kind: 'brush' | 'highlighter';
24
+ points: IInkBrushSamplePoint[];
25
+ color: string;
26
+ width: number;
27
+ opacity: number;
28
+ }
29
+ export type IInkSourceModel = IInkPenModel | IInkBrushModel;
30
+ export interface IInkStyle {
31
+ color?: string;
32
+ width?: number;
33
+ opacity?: number;
34
+ fillColor?: string;
35
+ }
36
+ export interface IInkRect {
37
+ left: number;
38
+ top: number;
39
+ width: number;
40
+ height: number;
41
+ }
42
+ export interface IInkCustomShapePayload {
43
+ transform: IInkRect & {
44
+ rotation: number;
45
+ };
46
+ shapeData: IShapeData;
47
+ ink: {
48
+ version: 1;
49
+ tool: Exclude<InkToolType, 'eraser'>;
50
+ sourceModel: IInkSourceModel;
51
+ editModel?: IInkPenModel;
52
+ normalizedBounds: IInkRect;
53
+ };
54
+ }
@@ -0,0 +1,15 @@
1
+ import type { IUniverInkConfig } from './config/config';
2
+ import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
+ export declare const INK_PLUGIN_NAME = "UNIVER_INK_PLUGIN";
4
+ export declare class UniverInkPlugin extends Plugin {
5
+ private readonly _config;
6
+ protected readonly _injector: Injector;
7
+ private readonly _commandService;
8
+ private readonly _configService;
9
+ static pluginName: string;
10
+ static packageName: string;
11
+ static version: string;
12
+ static type: UniverInstanceType;
13
+ constructor(_config: Partial<IUniverInkConfig> | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
14
+ onStarting(): void;
15
+ }
@@ -0,0 +1,28 @@
1
+ import type { IDisposable } from '@univerjs/core';
2
+ import type { IInkCustomShapePayload, InkToolType } from '../ink-types';
3
+ export interface IBeginInkModeParams {
4
+ unitId: string;
5
+ subUnitId: string;
6
+ tool?: Exclude<InkToolType, 'eraser'> | InkToolType;
7
+ }
8
+ export interface ICreateInkCustomShapeParams {
9
+ unitId: string;
10
+ subUnitId: string;
11
+ payload: IInkCustomShapePayload;
12
+ }
13
+ export interface IInkHostAdapter {
14
+ beginInkMode(params: IBeginInkModeParams): boolean;
15
+ createCustomShape?: (params: ICreateInkCustomShapeParams) => boolean | Promise<boolean>;
16
+ }
17
+ export interface IInkHostAdapterService {
18
+ registerAdapter(adapter: IInkHostAdapter): IDisposable;
19
+ beginInkMode(params: IBeginInkModeParams): boolean;
20
+ createCustomShape(params: ICreateInkCustomShapeParams): Promise<boolean>;
21
+ }
22
+ export declare const IInkHostAdapterService: import("@wendellhu/redi").IdentifierDecorator<IInkHostAdapterService>;
23
+ export declare class InkHostAdapterService implements IInkHostAdapterService {
24
+ private readonly _adapters;
25
+ registerAdapter(adapter: IInkHostAdapter): IDisposable;
26
+ beginInkMode(params: IBeginInkModeParams): boolean;
27
+ createCustomShape(params: ICreateInkCustomShapeParams): Promise<boolean>;
28
+ }
@@ -0,0 +1 @@
1
+ function _0x2754(_0x5347af,_0x417eec){_0x5347af=_0x5347af-0x74;const _0x13d82a=_0x13d8();let _0x275423=_0x13d82a[_0x5347af];return _0x275423;}(function(_0x3f20cb,_0x40cf76){const _0x58be91=_0x2754,_0x515676=_0x3f20cb();while(!![]){try{const _0x3d6c11=-parseInt(_0x58be91(0x84))/0x1+parseInt(_0x58be91(0x79))/0x2+parseInt(_0x58be91(0xaf))/0x3+parseInt(_0x58be91(0xb5))/0x4+parseInt(_0x58be91(0x77))/0x5+-parseInt(_0x58be91(0x8a))/0x6+-parseInt(_0x58be91(0x7e))/0x7;if(_0x3d6c11===_0x40cf76)break;else _0x515676['push'](_0x515676['shift']());}catch(_0x807978){_0x515676['push'](_0x515676['shift']());}}}(_0x13d8,0x2ba1f),function(_0x4ae7ad,_0x38c5ad){const _0xa2bd1d=_0x2754;typeof exports==_0xa2bd1d(0xa9)&&typeof module<'u'?_0x38c5ad(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0xa2bd1d(0x75)&&define['amd']?define([_0xa2bd1d(0x8c),_0xa2bd1d(0x81),'@univerjs-pro/boards/facade',_0xa2bd1d(0x91),_0xa2bd1d(0x96),_0xa2bd1d(0xb3)],_0x38c5ad):(_0x4ae7ad=typeof globalThis<'u'?globalThis:_0x4ae7ad||self,_0x38c5ad(_0x4ae7ad[_0xa2bd1d(0xa3)]={},_0x4ae7ad[_0xa2bd1d(0x76)],_0x4ae7ad['UniverProBoardsFacade'],_0x4ae7ad[_0xa2bd1d(0x83)],_0x4ae7ad[_0xa2bd1d(0xb0)],_0x4ae7ad[_0xa2bd1d(0x94)]));}(this,function(_0x5a02e4,_0x4e0841,_0x35aa16,_0x2faf2e,_0x18d290,_0x47735a){const _0x309572=_0x2754;Object[_0x309572(0x86)](_0x5a02e4,Symbol[_0x309572(0xb6)],{'value':_0x309572(0x8b)});var _0x514479=class extends _0x35aa16[_0x309572(0xa7)]{[_0x309572(0xa6)](_0x4eb5d4){const _0x462eda=_0x309572;let _0x499921=_0x4f568a(_0x4eb5d4);return _0x499921&&this[_0x462eda(0x80)](_0x499921,{'insertIndex':_0x4eb5d4['insertIndex']})?_0x499921:null;}[_0x309572(0x9e)](){const _0x511a74=_0x309572;return this[_0x511a74(0x74)]({'elementType':_0x4e0841['BoardElementType'][_0x511a74(0xa8)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x511a74(0x88)](_0xdd29c7);}};function _0x4f568a(_0x476a47,_0x42646b){const _0x3b43a4=_0x309572;var _0x3622b9,_0x188a74,_0x5972ee;if(!_0x4814e4(_0x476a47[_0x3b43a4(0x7d)])||_0x476a47[_0x3b43a4(0xb2)]!==void 0x0&&!_0x4814e4(_0x476a47[_0x3b43a4(0xb2)])||!_0x5165b3(_0x476a47[_0x3b43a4(0x90)]))return null;let _0x1c0f56=(_0x3622b9=_0x476a47[_0x3b43a4(0x89)])==null?_0x42646b==null?void 0x0:_0x42646b[_0x3b43a4(0x89)]:_0x3622b9,_0x53107e=_0x18d290['Tools'][_0x3b43a4(0x85)](_0x476a47[_0x3b43a4(0x7d)]),_0x3b5f31=(0x0,_0x2faf2e[_0x3b43a4(0xa0)])({'model':_0x53107e,'style':_0x476a47[_0x3b43a4(0x90)],'tool':_0x476a47[_0x3b43a4(0x8d)],'sourceModel':_0x476a47[_0x3b43a4(0xb2)]?_0x18d290[_0x3b43a4(0xa4)][_0x3b43a4(0x85)](_0x476a47[_0x3b43a4(0xb2)]):_0x53107e}),_0xa037ad=_0x457d9d(_0x42646b==null?void 0x0:_0x42646b[_0x3b43a4(0x7c)]);return{'id':(_0x188a74=(_0x5972ee=_0x42646b==null?void 0x0:_0x42646b['id'])==null?_0x476a47['id']:_0x5972ee)==null?(0x0,_0x18d290[_0x3b43a4(0x82)])(0x6):_0x188a74,'type':_0x4e0841[_0x3b43a4(0x95)]['Shape'],'transform':_0x3b5f31['transform'],'shapeData':_0x3b5f31['shapeData'],'parentId':_0x1c0f56==null?void 0x0:_0x1c0f56,'laneId':_0x476a47[_0x3b43a4(0x9c)]===void 0x0?_0x42646b==null?void 0x0:_0x42646b['laneId']:_0x476a47[_0x3b43a4(0x9c)],'custom':{..._0xa037ad,'ink':_0x3b5f31['ink']}};}function _0x29a6c5(_0xfcb9eb){const _0x1ffaed=_0x309572;return Number['isFinite'](_0xfcb9eb['x'])&&Number[_0x1ffaed(0x9b)](_0xfcb9eb['y']);}function _0x4814e4(_0x29a82a){const _0x534403=_0x309572;if(_0x29a82a[_0x534403(0xb4)]===_0x534403(0xb1)){let _0x4ab7a9=new Set();return _0x29a82a[_0x534403(0xad)][_0x534403(0xa5)]>=(_0x29a82a['closed']?0x3:0x2)&&_0x29a82a[_0x534403(0xad)]['every'](_0x5500b0=>{const _0x30d1b8=_0x534403;let _0x49a99e=_0x5500b0['id'][_0x30d1b8(0x93)]()['length']>0x0&&!_0x4ab7a9[_0x30d1b8(0x7f)](_0x5500b0['id'])&&_0x29a6c5(_0x5500b0)&&(!_0x5500b0['in']||_0x29a6c5(_0x5500b0['in']))&&(!_0x5500b0['out']||_0x29a6c5(_0x5500b0[_0x30d1b8(0xac)]));return _0x4ab7a9[_0x30d1b8(0x92)](_0x5500b0['id']),_0x49a99e;});}return _0x29a82a[_0x534403(0x7b)][_0x534403(0xa5)]>=0x2&&_0x29a82a[_0x534403(0x7b)][_0x534403(0x87)](_0x2f4a22=>_0x29a6c5(_0x2f4a22)&&Number[_0x534403(0x9b)](_0x2f4a22['t'])&&(_0x2f4a22[_0x534403(0xae)]===void 0x0||Number[_0x534403(0x9b)](_0x2f4a22[_0x534403(0xae)])))&&Number['isFinite'](_0x29a82a['width'])&&_0x29a82a[_0x534403(0x7a)]>0x0&&Number['isFinite'](_0x29a82a['opacity'])&&_0x29a82a['opacity']>=0x0&&_0x29a82a['opacity']<=0x1;}function _0x5165b3(_0x36f38a){const _0x330762=_0x309572;return _0x36f38a===void 0x0||(_0x36f38a[_0x330762(0x7a)]===void 0x0||Number[_0x330762(0x9b)](_0x36f38a[_0x330762(0x7a)])&&_0x36f38a['width']>0x0)&&(_0x36f38a['opacity']===void 0x0||Number['isFinite'](_0x36f38a[_0x330762(0xa1)])&&_0x36f38a[_0x330762(0xa1)]>=0x0&&_0x36f38a[_0x330762(0xa1)]<=0x1);}function _0x457d9d(_0x5eebaa){const _0x130fcc=_0x309572;return _0x5eebaa&&typeof _0x5eebaa==_0x130fcc(0xa9)&&!Array[_0x130fcc(0x8e)](_0x5eebaa)?_0x5eebaa:{};}function _0x5d433b(_0x3cedb6){const _0xb5e5eb=_0x309572;let _0x1d834d=_0x457d9d(_0x3cedb6[_0xb5e5eb(0x7c)])['ink'];if(!_0x1d834d||typeof _0x1d834d!=_0xb5e5eb(0xa9)||Array[_0xb5e5eb(0x8e)](_0x1d834d))return null;let _0x2839cc=_0x1d834d;return _0x2839cc[_0xb5e5eb(0x9f)]===0x1&&_0x2839cc[_0xb5e5eb(0xb2)]&&typeof _0x2839cc[_0xb5e5eb(0xb2)]==_0xb5e5eb(0xa9)?_0x2839cc:null;}function _0xdd29c7(_0x6f4750){const _0x5a77f6=_0x309572;return _0x6f4750['type']===_0x4e0841[_0x5a77f6(0x95)]['Shape']&&!!_0x5d433b(_0x6f4750);}_0x35aa16['FBoard'][_0x309572(0xab)](_0x514479);let _0x217624={'Pen':'pen','Brush':'brush','Highlighter':_0x309572(0xaa)},_0x39573c={'Corner':_0x309572(0x78),'Smooth':_0x309572(0x99),'Symmetric':_0x309572(0x97),'Free':_0x309572(0xa2)},_0x47495f={'Anchor':_0x309572(0x9d),'In':'in','Out':_0x309572(0xac)};var _0x4b1037=class extends _0x47735a[_0x309572(0x98)]{get[_0x309572(0x8f)](){return _0x217624;}get['BoardInkPointType'](){return _0x39573c;}get['BoardInkHandleKind'](){return _0x47495f;}};_0x47735a[_0x309572(0x98)]['extend'](_0x4b1037),_0x5a02e4['BoardInkHandleKind']=_0x47495f,_0x5a02e4[_0x309572(0x9a)]=_0x39573c,_0x5a02e4[_0x309572(0x8f)]=_0x217624;}));function _0x13d8(){const _0x3c0232=['extend','out','anchors','pressure','930090tKFHFx','UniverCore','pen','sourceModel','@univerjs/core/facade','kind','512560RyPtZP','toStringTag','findElements','function','UniverProBoards','573130uxfdTL','corner','236380AVUlZP','width','points','custom','model','711739OHgHUd','has','addElement','@univerjs-pro/boards','generateRandomId','UniverProInk','118985jDZXcy','deepClone','defineProperty','every','filter','parentId','1629630uScABg','Module','exports','tool','isArray','BoardInkTool','style','@univerjs-pro/ink','add','trim','UniverCoreFacade','BoardElementType','@univerjs/core','symmetric','FEnum','smooth','BoardInkPointType','isFinite','laneId','anchor','getInks','version','buildInkCustomShapePayload','opacity','free','UniverProInkFacade','Tools','length','insertInk','FBoard','Shape','object','highlighter'];_0x13d8=function(){return _0x3c0232;};return _0x13d8();}
@@ -0,0 +1 @@
1
+ (function(_0x51d9f1,_0x3fbb8c){const _0x1926ec=_0x166a,_0x4a4083=_0x51d9f1();while(!![]){try{const _0x2048cc=parseInt(_0x1926ec(0xc0))/0x1*(-parseInt(_0x1926ec(0xcd))/0x2)+parseInt(_0x1926ec(0x101))/0x3*(parseInt(_0x1926ec(0x95))/0x4)+-parseInt(_0x1926ec(0x10d))/0x5+-parseInt(_0x1926ec(0x9d))/0x6*(-parseInt(_0x1926ec(0x9c))/0x7)+parseInt(_0x1926ec(0xc1))/0x8*(-parseInt(_0x1926ec(0xe1))/0x9)+parseInt(_0x1926ec(0xe8))/0xa*(-parseInt(_0x1926ec(0xb4))/0xb)+parseInt(_0x1926ec(0x9f))/0xc;if(_0x2048cc===_0x3fbb8c)break;else _0x4a4083['push'](_0x4a4083['shift']());}catch(_0x713d03){_0x4a4083['push'](_0x4a4083['shift']());}}}(_0x2571,0xb3884),function(_0x461e24,_0x4c50ef){const _0x56f6f6=_0x166a;typeof exports=='object'&&typeof module<'u'?_0x4c50ef(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x56f6f6(0xfd)&&define['amd']?define([_0x56f6f6(0x108),_0x56f6f6(0xf7),_0x56f6f6(0xa6),_0x56f6f6(0xb6)],_0x4c50ef):(_0x461e24=typeof globalThis<'u'?globalThis:_0x461e24||self,_0x4c50ef(_0x461e24[_0x56f6f6(0xbe)]={},_0x461e24['UniverProEngineShape'],_0x461e24[_0x56f6f6(0xa2)],_0x461e24[_0x56f6f6(0xdd)]));}(this,function(_0x22c953,_0x4f478d,_0x45dfe3,_0x28570e){const _0x36d067=_0x166a;Object[_0x36d067(0x96)](_0x22c953,Symbol[_0x36d067(0xcf)],{'value':_0x36d067(0x112)});let _0x1e9577=0.0001;function _0x2796a9(_0x80fdec){return{'x':_0x80fdec['x'],'y':_0x80fdec['y']};}function _0x46966a(_0x2f48f2){const _0xa2b2f6=_0x36d067;return{..._0x2f48f2,'in':_0x2f48f2['in']?_0x2796a9(_0x2f48f2['in']):void 0x0,'out':_0x2f48f2[_0xa2b2f6(0xac)]?_0x2796a9(_0x2f48f2[_0xa2b2f6(0xac)]):void 0x0};}function _0x4c640b(_0x1e5426){const _0x46bd00=_0x36d067;return{'kind':_0x46bd00(0xfc),'closed':_0x1e5426[_0x46bd00(0xb9)],'anchors':_0x1e5426['anchors']['map'](_0x46966a)};}function _0x57f3e6(_0x31f57e,_0x2f4d52,_0x14e1a5){return{'x':_0x31f57e['x']+(_0x2f4d52['x']-_0x31f57e['x'])*_0x14e1a5,'y':_0x31f57e['y']+(_0x2f4d52['y']-_0x31f57e['y'])*_0x14e1a5};}function _0x371a3c(_0x476bce,_0x2df00a){const _0x32068a=_0x36d067;return Math[_0x32068a(0xb1)](_0x476bce['x']-_0x2df00a['x'],_0x476bce['y']-_0x2df00a['y']);}function _0x480f51(_0x21d051){const _0x1efc6c=_0x36d067;let _0x3dfe77=Math[_0x1efc6c(0xb1)](_0x21d051['x'],_0x21d051['y']);return _0x3dfe77<_0x1e9577?{'x':0x1,'y':0x0}:{'x':_0x21d051['x']/_0x3dfe77,'y':_0x21d051['y']/_0x3dfe77};}function _0x2cbb59(_0x4264ca,_0x3992a5,_0x5d39a4=_0x371a3c(_0x4264ca,_0x3992a5)){let _0x31e666=_0x480f51({'x':_0x4264ca['x']-_0x3992a5['x'],'y':_0x4264ca['y']-_0x3992a5['y']});return{'x':_0x4264ca['x']+_0x31e666['x']*_0x5d39a4,'y':_0x4264ca['y']+_0x31e666['y']*_0x5d39a4};}function _0x44d1ac(_0x36d0b1,_0x138ecc){const _0x537493=_0x36d067;let {anchors:_0x57391a}=_0x36d0b1;return _0x57391a[_0x537493(0xd6)]<0x2||_0x138ecc<0x0?null:_0x138ecc<_0x57391a[_0x537493(0xd6)]-0x1?{'startIndex':_0x138ecc,'endIndex':_0x138ecc+0x1,'start':_0x57391a[_0x138ecc],'end':_0x57391a[_0x138ecc+0x1]}:_0x36d0b1[_0x537493(0xb9)]&&_0x138ecc===_0x57391a[_0x537493(0xd6)]-0x1?{'startIndex':_0x57391a[_0x537493(0xd6)]-0x1,'endIndex':0x0,'start':_0x57391a[_0x57391a[_0x537493(0xd6)]-0x1],'end':_0x57391a[0x0]}:null;}function _0x10d03f(_0x2bdac2,_0x5da539){const _0x245a6c=_0x36d067;var _0x1368d8,_0x1b9e27;let _0x4ed4da=_0x44d1ac(_0x2bdac2,_0x5da539);return _0x4ed4da?[_0x4ed4da[_0x245a6c(0xc2)],(_0x1368d8=_0x4ed4da[_0x245a6c(0xc2)][_0x245a6c(0xac)])==null?_0x4ed4da['start']:_0x1368d8,(_0x1b9e27=_0x4ed4da[_0x245a6c(0xa9)]['in'])==null?_0x4ed4da[_0x245a6c(0xa9)]:_0x1b9e27,_0x4ed4da[_0x245a6c(0xa9)]]:null;}function _0x519201(_0x475143,_0x59b4c5){const _0x1fc4a8=_0x36d067;var _0x4c5f93;return _0x59b4c5===_0x1fc4a8(0x110)?_0x475143:(_0x4c5f93=_0x475143[_0x59b4c5])==null?null:_0x4c5f93;}function _0x5928d2(_0x15ec35,_0x260800,_0x44e3f2){const _0x32a74d=_0x36d067;return _0x44e3f2===_0x32a74d(0x110)||_0x15ec35[_0x32a74d(0xb9)]?!0x0:_0x44e3f2==='in'?_0x260800>0x0:_0x260800<_0x15ec35[_0x32a74d(0xe6)][_0x32a74d(0xd6)]-0x1;}function _0x366cd4(_0x39ff6a,_0x2a9d30){let [_0x2c70cb,_0x16cf4e,_0x4900d5,_0x453303]=_0x39ff6a,_0x16dc53=_0x57f3e6(_0x2c70cb,_0x16cf4e,_0x2a9d30),_0x3527cc=_0x57f3e6(_0x16cf4e,_0x4900d5,_0x2a9d30),_0x256d3b=_0x57f3e6(_0x4900d5,_0x453303,_0x2a9d30);return _0x57f3e6(_0x57f3e6(_0x16dc53,_0x3527cc,_0x2a9d30),_0x57f3e6(_0x3527cc,_0x256d3b,_0x2a9d30),_0x2a9d30);}function _0x38f30c(_0x1edf19,_0x17a6c9){let [_0x4c014a,_0x6c949f,_0x5e1af9,_0x1d1304]=_0x1edf19,_0x1f5e4b=_0x57f3e6(_0x4c014a,_0x6c949f,_0x17a6c9),_0xee8f02=_0x57f3e6(_0x6c949f,_0x5e1af9,_0x17a6c9),_0x138fa9=_0x57f3e6(_0x5e1af9,_0x1d1304,_0x17a6c9),_0x1311c3=_0x57f3e6(_0x1f5e4b,_0xee8f02,_0x17a6c9),_0x4de211=_0x57f3e6(_0xee8f02,_0x138fa9,_0x17a6c9),_0x410d09=_0x57f3e6(_0x1311c3,_0x4de211,_0x17a6c9);return{'left':[_0x4c014a,_0x1f5e4b,_0x1311c3,_0x410d09],'right':[_0x410d09,_0x4de211,_0x138fa9,_0x1d1304]};}function _0x15b74b(_0x296dc9,_0x58d817,_0x11ac70){const _0x43759d=_0x36d067;let _0x5d66eb=_0x11ac70['x']-_0x58d817['x'],_0x20621c=_0x11ac70['y']-_0x58d817['y'],_0x5ca50f=_0x5d66eb*_0x5d66eb+_0x20621c*_0x20621c,_0x4d5035=_0x5ca50f<=_0x1e9577?0x0:Math[_0x43759d(0xbd)](0x0,Math[_0x43759d(0xb2)](0x1,((_0x296dc9['x']-_0x58d817['x'])*_0x5d66eb+(_0x296dc9['y']-_0x58d817['y'])*_0x20621c)/_0x5ca50f)),_0x37be5a={'x':_0x58d817['x']+_0x5d66eb*_0x4d5035,'y':_0x58d817['y']+_0x20621c*_0x4d5035};return{'point':_0x37be5a,'ratio':_0x4d5035,'distance':_0x371a3c(_0x296dc9,_0x37be5a)};}function _0x5c0edb(_0x470934,_0x1c8da4,_0x33333f){const _0x219400=_0x36d067;return _0x15b74b(_0x470934,_0x1c8da4,_0x33333f)[_0x219400(0xea)]**0x2;}function _0x109c50(_0x3af525,_0x3d318a){const _0x361d02=_0x36d067;if(_0x3af525['length']<=0x2)return _0x3af525[_0x361d02(0xd4)](_0x2796a9);let _0x54bfc1=0x0,_0x303057=0x0,_0x5d47cb=_0x3af525[0x0],_0x3ad313=_0x3af525[_0x3af525['length']-0x1],_0x508bd7=_0x3d318a*_0x3d318a;for(let _0x3e1898=0x1;_0x3e1898<_0x3af525[_0x361d02(0xd6)]-0x1;_0x3e1898++){let _0x2d7a0d=_0x5c0edb(_0x3af525[_0x3e1898],_0x5d47cb,_0x3ad313);_0x2d7a0d>_0x54bfc1&&(_0x54bfc1=_0x2d7a0d,_0x303057=_0x3e1898);}if(_0x54bfc1<=_0x508bd7)return[_0x2796a9(_0x5d47cb),_0x2796a9(_0x3ad313)];let _0x5b54ce=_0x109c50(_0x3af525[_0x361d02(0x105)](0x0,_0x303057+0x1),_0x3d318a),_0x4440a2=_0x109c50(_0x3af525[_0x361d02(0x105)](_0x303057),_0x3d318a);return[..._0x5b54ce['slice'](0x0,-0x1),..._0x4440a2];}function _0x15c3f9(_0x202238,_0x4988bc){var _0x2d4e51;let _0x5c92de=_0x202238[_0x4988bc],_0x61b4bd=_0x202238[_0x4988bc+0x1],_0x433ed9=(_0x2d4e51=_0x202238[_0x4988bc-0x1])==null?_0x5c92de:_0x2d4e51;return{'x':_0x5c92de['x']+(_0x61b4bd['x']-_0x433ed9['x'])/0x6,'y':_0x5c92de['y']+(_0x61b4bd['y']-_0x433ed9['y'])/0x6};}function _0x4d3a8c(_0x508bb4,_0x18c37c){var _0x16bdbd;let _0x496f69=_0x508bb4[_0x18c37c],_0x23ac07=_0x508bb4[_0x18c37c-0x1],_0x2a06ab=(_0x16bdbd=_0x508bb4[_0x18c37c+0x1])==null?_0x496f69:_0x16bdbd;return{'x':_0x496f69['x']-(_0x2a06ab['x']-_0x23ac07['x'])/0x6,'y':_0x496f69['y']-(_0x2a06ab['y']-_0x23ac07['y'])/0x6};}function _0x4c1f63(_0x58b165,_0xbc611){const _0x2184b8=_0x36d067;var _0x24e42d,_0x48364b;let _0x4ce057=_0x58b165[_0x2184b8(0xe6)][_0xbc611],_0x454ad5=(_0x24e42d=_0x58b165[_0x2184b8(0xe6)][_0xbc611-0x1])==null?_0x58b165['closed']?_0x58b165[_0x2184b8(0xe6)][_0x58b165[_0x2184b8(0xe6)][_0x2184b8(0xd6)]-0x1]:null:_0x24e42d,_0x52ad7c=(_0x48364b=_0x58b165[_0x2184b8(0xe6)][_0xbc611+0x1])==null?_0x58b165['closed']?_0x58b165[_0x2184b8(0xe6)][0x0]:null:_0x48364b,_0x34f1f3=_0x454ad5&&_0x52ad7c?_0x480f51({'x':_0x52ad7c['x']-_0x454ad5['x'],'y':_0x52ad7c['y']-_0x454ad5['y']}):_0x52ad7c?_0x480f51({'x':_0x52ad7c['x']-_0x4ce057['x'],'y':_0x52ad7c['y']-_0x4ce057['y']}):_0x454ad5?_0x480f51({'x':_0x4ce057['x']-_0x454ad5['x'],'y':_0x4ce057['y']-_0x454ad5['y']}):{'x':0x1,'y':0x0},_0x403aca=_0x454ad5&&_0x52ad7c?Math[_0x2184b8(0xbd)](0x32,_0x371a3c(_0x454ad5,_0x52ad7c)/0x4):0x32;return{'in':{'x':_0x4ce057['x']-_0x34f1f3['x']*_0x403aca,'y':_0x4ce057['y']-_0x34f1f3['y']*_0x403aca},'out':{'x':_0x4ce057['x']+_0x34f1f3['x']*_0x403aca,'y':_0x4ce057['y']+_0x34f1f3['y']*_0x403aca}};}function _0x2cd22f(_0x1c60c0,_0x452d99){const _0x3387d2=_0x36d067;let _0x395869=_0x1c60c0[_0x452d99],_0xb96ed1=_0x452d99==='in'?_0x3387d2(0xac):'in',_0x1ac115=_0x1c60c0[_0xb96ed1];if(_0x395869){if(_0x1c60c0['pointType']===_0x3387d2(0xe5)){_0x1c60c0[_0xb96ed1]=_0x2cbb59(_0x1c60c0,_0x395869);return;}_0x1c60c0[_0x3387d2(0xd8)]==='smooth'&&(_0x1c60c0[_0xb96ed1]=_0x2cbb59(_0x1c60c0,_0x395869,_0x1ac115?_0x371a3c(_0x1c60c0,_0x1ac115):_0x371a3c(_0x1c60c0,_0x395869)));}}function _0x217661(_0x9df340,_0x443b48){const _0x2a2e76=_0x36d067;let _0x1b10cb=_0x4c640b(_0x9df340);return!_0x443b48||_0x1b10cb['closed']||_0x1b10cb['anchors'][_0x2a2e76(0xd6)]===0x0||_0x1b10cb[_0x2a2e76(0xe6)][_0x2a2e76(0xf1)]({'id':_0x2a2e76(0xa5),'x':_0x443b48['x'],'y':_0x443b48['y'],'pointType':_0x2a2e76(0xcb)}),_0x1b10cb;}function _0x43992a(_0x31062d,_0x5685d6={}){const _0x314d06=_0x36d067;var _0x49f3b2,_0x35267f;let _0x1f8180=Math[_0x314d06(0xbd)](0x0,(_0x49f3b2=_0x5685d6[_0x314d06(0x9b)])==null?Math[_0x314d06(0xbd)](0x4,_0x31062d[_0x314d06(0xe4)]*0.35):_0x49f3b2),_0x5dc14d=(_0x35267f=_0x5685d6[_0x314d06(0xee)])==null?_0x35a929=>'ink-centerline-'+_0x35a929:_0x35267f,_0x463a48=_0x109c50(_0x31062d[_0x314d06(0xd2)],_0x1f8180),_0x2b240a=_0x463a48['map']((_0x116788,_0x217415)=>({'id':_0x5dc14d(_0x217415),'x':_0x116788['x'],'y':_0x116788['y'],'pointType':_0x314d06(0xaa)}));for(let _0x2616a0=0x0;_0x2616a0<_0x2b240a[_0x314d06(0xd6)]-0x1;_0x2616a0++)_0x2b240a[_0x2616a0][_0x314d06(0xac)]=_0x15c3f9(_0x463a48,_0x2616a0),_0x2b240a[_0x2616a0+0x1]['in']=_0x4d3a8c(_0x463a48,_0x2616a0+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x2b240a};}function _0x17775e(_0x3047bf,_0x4dacc4,_0x5cd721){const _0x137abb=_0x36d067;let _0x26f16c=null,_0x42d8ea=['anchor','in',_0x137abb(0xac)];return _0x3047bf[_0x137abb(0xe6)][_0x137abb(0x107)]((_0x5aac17,_0x4f8336)=>{const _0x275592=_0x137abb;_0x42d8ea[_0x275592(0x107)](_0x23d815=>{const _0x25f2e3=_0x275592;if(!_0x5928d2(_0x3047bf,_0x4f8336,_0x23d815))return;let _0x2a7c13=_0x519201(_0x5aac17,_0x23d815);if(!_0x2a7c13)return;let _0x19658a=_0x371a3c(_0x4dacc4,_0x2a7c13);_0x19658a>_0x5cd721||_0x26f16c&&_0x19658a>=_0x26f16c[_0x25f2e3(0xea)]||(_0x26f16c={'handle':{'kind':_0x23d815,'anchorId':_0x5aac17['id']},'point':_0x2796a9(_0x2a7c13),'distance':_0x19658a});});}),_0x26f16c;}function _0x23735a(_0x8d872d,_0x5e6252,_0x14d110){const _0x547562=_0x36d067;let _0x51d2d6=null,_0x328ad3=_0x8d872d[_0x547562(0xb9)]?_0x8d872d[_0x547562(0xe6)][_0x547562(0xd6)]:Math[_0x547562(0xbd)](0x0,_0x8d872d[_0x547562(0xe6)][_0x547562(0xd6)]-0x1);for(let _0x233a13=0x0;_0x233a13<_0x328ad3;_0x233a13++){let _0x444db7=_0x10d03f(_0x8d872d,_0x233a13);if(!_0x444db7)continue;let _0x266a65=_0x366cd4(_0x444db7,0x0);for(let _0x3bf185=0x1;_0x3bf185<=0x20;_0x3bf185++){let _0x346129=_0x366cd4(_0x444db7,_0x3bf185/0x20),_0x3479d5=_0x15b74b(_0x5e6252,_0x266a65,_0x346129),_0x63adcf=(_0x3bf185-0x1+_0x3479d5['ratio'])/0x20;(!_0x51d2d6||_0x3479d5[_0x547562(0xea)]<_0x51d2d6['distance'])&&(_0x51d2d6={'segmentIndex':_0x233a13,'t':_0x63adcf,'point':_0x3479d5[_0x547562(0xad)],'distance':_0x3479d5[_0x547562(0xea)]}),_0x266a65=_0x346129;}}return _0x51d2d6&&_0x51d2d6[_0x547562(0xea)]<=_0x14d110?_0x51d2d6:null;}function _0x25fc55(_0x4de25,_0xa0a3da,_0x2f4241){const _0x6f6cbb=_0x36d067;let _0x38af19=_0x4c640b(_0x4de25),_0x169814=_0x44d1ac(_0x38af19,_0xa0a3da['segmentIndex']),_0x432621=_0x10d03f(_0x38af19,_0xa0a3da[_0x6f6cbb(0xfa)]);if(!_0x169814||!_0x432621)return _0x38af19;let _0x29bb36=_0x38f30c(_0x432621,Math[_0x6f6cbb(0xbd)](0x0,Math[_0x6f6cbb(0xb2)](0x1,_0xa0a3da['t']))),_0x49c64c={'id':_0x2f4241(),'x':_0x29bb36[_0x6f6cbb(0xeb)][0x3]['x'],'y':_0x29bb36[_0x6f6cbb(0xeb)][0x3]['y'],'in':_0x2796a9(_0x29bb36[_0x6f6cbb(0xeb)][0x2]),'out':_0x2796a9(_0x29bb36[_0x6f6cbb(0xc9)][0x1]),'pointType':'free'};return _0x38af19[_0x6f6cbb(0xe6)][_0x169814[_0x6f6cbb(0xd5)]][_0x6f6cbb(0xac)]=_0x2796a9(_0x29bb36[_0x6f6cbb(0xeb)][0x1]),_0x38af19['anchors'][_0x169814['endIndex']]['in']=_0x2796a9(_0x29bb36[_0x6f6cbb(0xc9)][0x2]),_0x38af19[_0x6f6cbb(0xe6)][_0x6f6cbb(0xa4)](_0x169814['startIndex']+0x1,0x0,_0x49c64c),_0x38af19;}function _0x24528e(_0x593cfc,_0x3b4c57){const _0x4f45c1=_0x36d067;let _0x128242=_0x4c640b(_0x593cfc);return _0x128242[_0x4f45c1(0xe6)]=_0x128242[_0x4f45c1(0xe6)][_0x4f45c1(0xc5)](_0x539c53=>_0x539c53['id']!==_0x3b4c57),_0x128242[_0x4f45c1(0xb9)]&&_0x128242[_0x4f45c1(0xe6)][_0x4f45c1(0xd6)]<0x3&&(_0x128242[_0x4f45c1(0xb9)]=!0x1),_0x128242;}function _0x662da5(_0xba9424,_0x1fd3cd,_0x13664f){const _0x12acfd=_0x36d067;let _0x5952e9=_0x4c640b(_0xba9424),_0x40e320=_0x5952e9[_0x12acfd(0xe6)][_0x12acfd(0xd7)](_0x54aa9b=>_0x54aa9b['id']===_0x1fd3cd),_0x280d5d=_0x5952e9[_0x12acfd(0xe6)][_0x40e320];if(!_0x280d5d)return _0x5952e9;if(_0x280d5d[_0x12acfd(0xd8)]=_0x13664f,_0x13664f===_0x12acfd(0xcb))return delete _0x280d5d['in'],delete _0x280d5d['out'],_0x5952e9;let _0x4ab0f9=_0x4c1f63(_0x5952e9,_0x40e320);if(_0x280d5d['in']=_0x280d5d['in']?_0x2796a9(_0x280d5d['in']):_0x4ab0f9['in'],_0x280d5d['out']=_0x280d5d[_0x12acfd(0xac)]?_0x2796a9(_0x280d5d[_0x12acfd(0xac)]):_0x4ab0f9[_0x12acfd(0xac)],_0x13664f===_0x12acfd(0xe5)){let _0x24c5f3=Math[_0x12acfd(0xbd)](_0x371a3c(_0x280d5d,_0x280d5d['in']),_0x371a3c(_0x280d5d,_0x280d5d[_0x12acfd(0xac)]),0x32),_0x316bd9=_0x480f51({'x':_0x280d5d[_0x12acfd(0xac)]['x']-_0x280d5d['x'],'y':_0x280d5d['out']['y']-_0x280d5d['y']});_0x280d5d[_0x12acfd(0xac)]={'x':_0x280d5d['x']+_0x316bd9['x']*_0x24c5f3,'y':_0x280d5d['y']+_0x316bd9['y']*_0x24c5f3},_0x280d5d['in']={'x':_0x280d5d['x']-_0x316bd9['x']*_0x24c5f3,'y':_0x280d5d['y']-_0x316bd9['y']*_0x24c5f3};}else _0x13664f===_0x12acfd(0xe2)&&_0x2cd22f(_0x280d5d,'out');return _0x5952e9;}function _0x38a269(_0x5a4269,_0x227839){const _0x1dee17=_0x36d067;var _0x51750f;let _0x30d21d=_0x5a4269['anchors'][_0x1dee17(0xda)](_0x39bdde=>_0x39bdde['id']===_0x227839),_0x255ae8=(_0x51750f=_0x30d21d==null?void 0x0:_0x30d21d[_0x1dee17(0xd8)])==null?_0x1dee17(0xcb):_0x51750f;return _0x662da5(_0x5a4269,_0x227839,_0x255ae8===_0x1dee17(0xcb)?_0x1dee17(0xe2):_0x255ae8===_0x1dee17(0xe2)?_0x1dee17(0xe5):_0x255ae8==='symmetric'?'free':'corner');}function _0x24fa03(_0x4a1d17,_0x5c9633,_0x34587d){const _0x1105f1=_0x36d067;let _0xfd6a61=_0x4c640b(_0x4a1d17),_0x2b88ec=_0xfd6a61['anchors'][_0x1105f1(0xda)](_0x1e08ab=>_0x1e08ab['id']===_0x5c9633['anchorId']);if(!_0x2b88ec)return _0xfd6a61;if(_0x5c9633[_0x1105f1(0x98)]==='anchor'){let _0x2da507={'x':_0x34587d['x']-_0x2b88ec['x'],'y':_0x34587d['y']-_0x2b88ec['y']};return _0x2b88ec['x']=_0x34587d['x'],_0x2b88ec['y']=_0x34587d['y'],_0x2b88ec['in']&&(_0x2b88ec['in']={'x':_0x2b88ec['in']['x']+_0x2da507['x'],'y':_0x2b88ec['in']['y']+_0x2da507['y']}),_0x2b88ec[_0x1105f1(0xac)]&&(_0x2b88ec[_0x1105f1(0xac)]={'x':_0x2b88ec[_0x1105f1(0xac)]['x']+_0x2da507['x'],'y':_0x2b88ec[_0x1105f1(0xac)]['y']+_0x2da507['y']}),_0xfd6a61;}return _0x2b88ec[_0x5c9633[_0x1105f1(0x98)]]=_0x2796a9(_0x34587d),_0x2b88ec[_0x1105f1(0xd8)]===_0x1105f1(0xcb)&&(_0x2b88ec[_0x1105f1(0xd8)]='free'),_0x2cd22f(_0x2b88ec,_0x5c9633['kind']),_0xfd6a61;}let _0x37e0c8=1e-9;function _0x187444(_0x3f6104){let _0x5f4824=Math['round'](_0x3f6104*0x2710)/0x2710;return Object['is'](_0x5f4824,-0x0)?'0':String(_0x5f4824);}function _0x4dbe5b(_0x56ea02){return _0x187444(_0x56ea02['x'])+'\x20'+_0x187444(_0x56ea02['y']);}function _0x3d2214(_0x1d8fe4,_0x814b85){return{'x':_0x1d8fe4['x']-_0x814b85['x'],'y':_0x1d8fe4['y']-_0x814b85['y']};}function _0x34cbe4(_0x119a70,_0x2dd445,_0x18aeec,_0x2277a1,_0x11225e){let _0x4d34cc=0x1-_0x11225e;return{'x':_0x4d34cc*_0x4d34cc*_0x4d34cc*_0x119a70['x']+0x3*_0x4d34cc*_0x4d34cc*_0x11225e*_0x2dd445['x']+0x3*_0x4d34cc*_0x11225e*_0x11225e*_0x18aeec['x']+_0x11225e*_0x11225e*_0x11225e*_0x2277a1['x'],'y':_0x4d34cc*_0x4d34cc*_0x4d34cc*_0x119a70['y']+0x3*_0x4d34cc*_0x4d34cc*_0x11225e*_0x2dd445['y']+0x3*_0x4d34cc*_0x11225e*_0x11225e*_0x18aeec['y']+_0x11225e*_0x11225e*_0x11225e*_0x2277a1['y']};}function _0x2ad68c(_0x165c1f,_0x31b69e,_0x2f2fcb,_0x54263c){const _0x66168c=_0x36d067;let _0x2cc608=-_0x165c1f+0x3*_0x31b69e-0x3*_0x2f2fcb+_0x54263c,_0x547b24=0x3*_0x165c1f-0x6*_0x31b69e+0x3*_0x2f2fcb,_0x2a42ed=-0x3*_0x165c1f+0x3*_0x31b69e,_0x68dc6e=[];if(Math[_0x66168c(0xef)](_0x2cc608)<_0x37e0c8){if(Math[_0x66168c(0xef)](_0x547b24)<_0x37e0c8)return _0x68dc6e;let _0xa227e=-_0x2a42ed/(0x2*_0x547b24);return _0xa227e>0x0&&_0xa227e<0x1&&_0x68dc6e['push'](_0xa227e),_0x68dc6e;}let _0x5ebe84=_0x547b24*_0x547b24-0x3*_0x2cc608*_0x2a42ed;if(_0x5ebe84<0x0)return _0x68dc6e;let _0xa44d18=Math[_0x66168c(0xce)](Math[_0x66168c(0xbd)](0x0,_0x5ebe84)),_0x433b28=(-_0x547b24+_0xa44d18)/(0x3*_0x2cc608),_0x575d7e=(-_0x547b24-_0xa44d18)/(0x3*_0x2cc608);return _0x433b28>0x0&&_0x433b28<0x1&&_0x68dc6e[_0x66168c(0xf1)](_0x433b28),_0x575d7e>0x0&&_0x575d7e<0x1&&Math['abs'](_0x575d7e-_0x433b28)>_0x37e0c8&&_0x68dc6e[_0x66168c(0xf1)](_0x575d7e),_0x68dc6e;}function _0x2e9a35(_0x20caad,_0x36dfc4,_0x192a97,_0x3bcf6c,_0x72e48a){const _0x1ededa=_0x36d067;_0x20caad[_0x1ededa(0xf1)](_0x36dfc4,_0x72e48a),new Set([..._0x2ad68c(_0x36dfc4['x'],_0x192a97['x'],_0x3bcf6c['x'],_0x72e48a['x']),..._0x2ad68c(_0x36dfc4['y'],_0x192a97['y'],_0x3bcf6c['y'],_0x72e48a['y'])])[_0x1ededa(0x107)](_0x4df3f1=>{const _0x2b88c5=_0x1ededa;_0x20caad[_0x2b88c5(0xf1)](_0x34cbe4(_0x36dfc4,_0x192a97,_0x3bcf6c,_0x72e48a,_0x4df3f1));});}function _0x367db9(_0x338a22){const _0x457c90=_0x36d067;let _0x51cc88=_0x338a22[_0x457c90(0xe6)];if(_0x51cc88['length']<=0x1)return _0x51cc88;let _0x199631=[];for(let _0x202c3c=0x1;_0x202c3c<_0x51cc88[_0x457c90(0xd6)];_0x202c3c++){var _0x301f8e,_0x549dbf;let _0x37e257=_0x51cc88[_0x202c3c-0x1],_0x52405e=_0x51cc88[_0x202c3c];_0x2e9a35(_0x199631,_0x37e257,(_0x301f8e=_0x37e257['out'])==null?_0x37e257:_0x301f8e,(_0x549dbf=_0x52405e['in'])==null?_0x52405e:_0x549dbf,_0x52405e);}if(_0x338a22['closed']&&_0x51cc88['length']>0x1){var _0x45d46d,_0x3b6f37;let _0x966453=_0x51cc88[_0x51cc88[_0x457c90(0xd6)]-0x1],_0x334429=_0x51cc88[0x0];_0x2e9a35(_0x199631,_0x966453,(_0x45d46d=_0x966453[_0x457c90(0xac)])==null?_0x966453:_0x45d46d,(_0x3b6f37=_0x334429['in'])==null?_0x334429:_0x3b6f37,_0x334429);}return _0x199631;}function _0x5b5e3e(_0x463f0d){const _0x3153bb=_0x36d067;let _0x377eb1=_0x463f0d['points'];if(_0x377eb1[_0x3153bb(0xd6)]<=0x1)return _0x377eb1;let _0x1c43d4=[];for(let _0x21af5f=0x0;_0x21af5f<_0x377eb1[_0x3153bb(0xd6)]-0x1;_0x21af5f++){var _0x520e5f,_0x39282d;let _0xa57467=_0x377eb1[_0x21af5f],_0x31760f=_0x377eb1[_0x21af5f+0x1],_0x4b121e=(_0x520e5f=_0x377eb1[_0x21af5f-0x1])==null?_0xa57467:_0x520e5f,_0xc728d=(_0x39282d=_0x377eb1[_0x21af5f+0x2])==null?_0x31760f:_0x39282d;_0x2e9a35(_0x1c43d4,_0xa57467,{'x':_0xa57467['x']+(_0x31760f['x']-_0x4b121e['x'])/0x6,'y':_0xa57467['y']+(_0x31760f['y']-_0x4b121e['y'])/0x6},{'x':_0x31760f['x']-(_0xc728d['x']-_0xa57467['x'])/0x6,'y':_0x31760f['y']-(_0xc728d['y']-_0xa57467['y'])/0x6},_0x31760f);}return _0x1c43d4;}function _0x5f082d(_0x2565da){const _0x5b4a4e=_0x36d067;return _0x2565da[_0x5b4a4e(0x98)]===_0x5b4a4e(0xfc)?_0x367db9(_0x2565da):_0x5b5e3e(_0x2565da);}function _0xf0e5d4(_0xfd6a57){let _0x4fee26=Math['round'](_0xfd6a57*0x2710)/0x2710;return Object['is'](_0x4fee26,-0x0)?0x0:_0x4fee26;}function _0x26a374(_0x411999){const _0x10a0ff=_0x36d067;let _0x9bb6ce=_0x5f082d(_0x411999);if(_0x9bb6ce[_0x10a0ff(0xd6)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3ed346=Math[_0x10a0ff(0xb2)](..._0x9bb6ce[_0x10a0ff(0xd4)](_0x3c409c=>_0x3c409c['x'])),_0x3427e9=Math[_0x10a0ff(0xb2)](..._0x9bb6ce['map'](_0x42f63d=>_0x42f63d['y'])),_0x4a5775=Math[_0x10a0ff(0xbd)](..._0x9bb6ce[_0x10a0ff(0xd4)](_0x179c28=>_0x179c28['x'])),_0x58b338=Math[_0x10a0ff(0xbd)](..._0x9bb6ce[_0x10a0ff(0xd4)](_0x4f9c2c=>_0x4f9c2c['y']));return{'left':_0xf0e5d4(_0x3ed346),'top':_0xf0e5d4(_0x3427e9),'width':_0xf0e5d4(Math['max'](0x1,_0x4a5775-_0x3ed346)),'height':_0xf0e5d4(Math[_0x10a0ff(0xbd)](0x1,_0x58b338-_0x3427e9))};}function _0x2f5446(_0x326dcb,_0x3023a0){const _0x19747e=_0x36d067;let _0x458302=_0x326dcb[_0x19747e(0xe6)];if(_0x458302[_0x19747e(0xd6)]===0x0)return'';let _0x5be1ed=['M\x20'+_0x4dbe5b(_0x3d2214(_0x458302[0x0],_0x3023a0))];for(let _0x5720fd=0x1;_0x5720fd<_0x458302[_0x19747e(0xd6)];_0x5720fd++){var _0x450c68,_0x20d863;let _0x13f990=_0x458302[_0x5720fd-0x1],_0xb62513=_0x458302[_0x5720fd],_0x4e6c5f=(_0x450c68=_0x13f990[_0x19747e(0xac)])==null?_0x13f990:_0x450c68,_0x3a7088=(_0x20d863=_0xb62513['in'])==null?_0xb62513:_0x20d863;_0x5be1ed[_0x19747e(0xf1)]('C\x20'+_0x4dbe5b(_0x3d2214(_0x4e6c5f,_0x3023a0))+'\x20'+_0x4dbe5b(_0x3d2214(_0x3a7088,_0x3023a0))+'\x20'+_0x4dbe5b(_0x3d2214(_0xb62513,_0x3023a0)));}if(_0x326dcb['closed']&&_0x458302[_0x19747e(0xd6)]>0x1){var _0x32c18c,_0x1e243f;let _0x2774b6=_0x458302[_0x458302['length']-0x1],_0x5e8213=_0x458302[0x0],_0x226af1=(_0x32c18c=_0x2774b6[_0x19747e(0xac)])==null?_0x2774b6:_0x32c18c,_0x9b07e4=(_0x1e243f=_0x5e8213['in'])==null?_0x5e8213:_0x1e243f;_0x5be1ed[_0x19747e(0xf1)]('C\x20'+_0x4dbe5b(_0x3d2214(_0x226af1,_0x3023a0))+'\x20'+_0x4dbe5b(_0x3d2214(_0x9b07e4,_0x3023a0))+'\x20'+_0x4dbe5b(_0x3d2214(_0x5e8213,_0x3023a0))),_0x5be1ed[_0x19747e(0xf1)]('Z');}return _0x5be1ed[_0x19747e(0x10a)]('\x20');}function _0x279ffd(_0x2c086e,_0x3d8153){const _0x27fd77=_0x36d067;let _0x557f29=_0x2c086e[_0x27fd77(0xd2)]['map'](_0x190dae=>_0x3d2214(_0x190dae,_0x3d8153));if(_0x557f29['length']===0x0)return'';if(_0x557f29[_0x27fd77(0xd6)]===0x1)return'M\x20'+_0x4dbe5b(_0x557f29[0x0]);let _0x314ee9=['M\x20'+_0x4dbe5b(_0x557f29[0x0])];for(let _0x1e3217=0x0;_0x1e3217<_0x557f29[_0x27fd77(0xd6)]-0x1;_0x1e3217++){var _0x4d7d9a,_0x1017d9;let _0x3b2768=_0x557f29[_0x1e3217],_0x310e1a=_0x557f29[_0x1e3217+0x1],_0x3718ef=(_0x4d7d9a=_0x557f29[_0x1e3217-0x1])==null?_0x3b2768:_0x4d7d9a,_0x47c881=(_0x1017d9=_0x557f29[_0x1e3217+0x2])==null?_0x310e1a:_0x1017d9,_0xc1bad5={'x':_0x3b2768['x']+(_0x310e1a['x']-_0x3718ef['x'])/0x6,'y':_0x3b2768['y']+(_0x310e1a['y']-_0x3718ef['y'])/0x6},_0xd2ab6c={'x':_0x310e1a['x']-(_0x47c881['x']-_0x3b2768['x'])/0x6,'y':_0x310e1a['y']-(_0x47c881['y']-_0x3b2768['y'])/0x6};_0x314ee9[_0x27fd77(0xf1)]('C\x20'+_0x4dbe5b(_0xc1bad5)+'\x20'+_0x4dbe5b(_0xd2ab6c)+'\x20'+_0x4dbe5b(_0x310e1a));}return _0x314ee9['join']('\x20');}function _0x5d96a5(_0x150b8d,_0x16764e){const _0x5c5085=_0x36d067;return _0x150b8d[_0x5c5085(0x98)]===_0x5c5085(0xfc)?_0x2f5446(_0x150b8d,_0x16764e):_0x279ffd(_0x150b8d,_0x16764e);}function _0x27858(_0x102ddf,_0x9e1e73){const _0x562fcb=_0x36d067;return _0x9e1e73!=null&&_0x9e1e73[_0x562fcb(0x103)]?_0x9e1e73[_0x562fcb(0x103)]:_0x102ddf['kind']===_0x562fcb(0xfc)?'#f54a45':_0x102ddf[_0x562fcb(0x103)];}function _0x1fb11e(_0x291cee,_0x284e3f){const _0x20de0c=_0x36d067;return(_0x284e3f==null?void 0x0:_0x284e3f[_0x20de0c(0xe4)])===void 0x0?_0x291cee['kind']===_0x20de0c(0xfc)?0x2:_0x291cee['width']:_0x284e3f[_0x20de0c(0xe4)];}function _0x2c9fca(_0x47afc5,_0x44f038){const _0x1613f7=_0x36d067;return(_0x44f038==null?void 0x0:_0x44f038[_0x1613f7(0xfe)])===void 0x0?_0x47afc5[_0x1613f7(0x98)]===_0x1613f7(0xfc)?void 0x0:_0x47afc5[_0x1613f7(0xfe)]:_0x44f038['opacity'];}function _0x58f533(_0x215002,_0x414bcf){const _0x189905=_0x36d067;let _0x4fcffa=_0x26a374(_0x215002),_0x52824f=_0x5d96a5(_0x215002,{'x':_0x4fcffa[_0x189905(0xeb)],'y':_0x4fcffa['top']}),_0x150141=_0x215002['kind']===_0x189905(0xfc)&&_0x215002[_0x189905(0xb9)],_0x46fe23=_0x414bcf==null?void 0x0:_0x414bcf['fillColor'];return{'shapeType':_0x4f478d[_0x189905(0x10c)][_0x189905(0x10f)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x4fcffa['width'],'h':_0x4fcffa[_0x189905(0xb7)],'fill':_0x150141?_0x189905(0x113):_0x189905(0xf8),'stroke':!0x0,'data':_0x52824f,'dataArray':_0x5e7cde(_0x215002,{'x':_0x4fcffa[_0x189905(0xeb)],'y':_0x4fcffa[_0x189905(0xf3)]})}]},'fill':_0x150141&&_0x46fe23?{'color':_0x46fe23,'fillType':_0x4f478d[_0x189905(0xba)]['SolidFill']}:{'fillType':_0x4f478d[_0x189905(0xba)][_0x189905(0xaf)]},'stroke':{'color':_0x27858(_0x215002,_0x414bcf),'width':_0x1fb11e(_0x215002,_0x414bcf),'opacity':_0x2c9fca(_0x215002,_0x414bcf),'lineStrokeType':_0x4f478d['ShapeLineTypeEnum'][_0x189905(0xd0)],'capType':_0x4f478d[_0x189905(0x104)]['Round'],'lineJoinType':_0x4f478d['ShapeLineJoinEnum'][_0x189905(0xb0)]}};}function _0x3590cd(_0x13627a,_0x86faeb){return{'x':_0x13627a['x']-_0x86faeb['x'],'y':_0x13627a['y']-_0x86faeb['y']};}function _0x5e7cde(_0x7e3b03,_0x3e6eb9){const _0xcdc0a0=_0x36d067;if(_0x7e3b03[_0xcdc0a0(0x98)]===_0xcdc0a0(0xfc)){let _0x2876bd=_0x7e3b03[_0xcdc0a0(0xe6)];if(_0x2876bd[_0xcdc0a0(0xd6)]===0x0)return[];let _0x9f0e50=_0x3590cd(_0x2876bd[0x0],_0x3e6eb9),_0xeed105=[{'command':'M','points':[_0x9f0e50['x'],_0x9f0e50['y']]}];for(let _0x2e68f6=0x1;_0x2e68f6<_0x2876bd[_0xcdc0a0(0xd6)];_0x2e68f6++){var _0x25c99a,_0xd27b60;let _0x484e10=_0x2876bd[_0x2e68f6-0x1],_0x3adaf5=_0x2876bd[_0x2e68f6],_0x39eacf=_0x3590cd((_0x25c99a=_0x484e10[_0xcdc0a0(0xac)])==null?_0x484e10:_0x25c99a,_0x3e6eb9),_0x275b9a=_0x3590cd((_0xd27b60=_0x3adaf5['in'])==null?_0x3adaf5:_0xd27b60,_0x3e6eb9),_0x4d057c=_0x3590cd(_0x3adaf5,_0x3e6eb9);_0xeed105['push']({'command':'C','points':[_0x39eacf['x'],_0x39eacf['y'],_0x275b9a['x'],_0x275b9a['y'],_0x4d057c['x'],_0x4d057c['y']]});}if(_0x7e3b03[_0xcdc0a0(0xb9)]&&_0x2876bd[_0xcdc0a0(0xd6)]>0x1){var _0x233831,_0xb3e0e5;let _0x1b22c1=_0x2876bd[_0x2876bd['length']-0x1],_0x2501b6=_0x2876bd[0x0],_0x21c8db=_0x3590cd((_0x233831=_0x1b22c1[_0xcdc0a0(0xac)])==null?_0x1b22c1:_0x233831,_0x3e6eb9),_0x5b7f91=_0x3590cd((_0xb3e0e5=_0x2501b6['in'])==null?_0x2501b6:_0xb3e0e5,_0x3e6eb9),_0x54a3b8=_0x3590cd(_0x2501b6,_0x3e6eb9);_0xeed105[_0xcdc0a0(0xf1)]({'command':'C','points':[_0x21c8db['x'],_0x21c8db['y'],_0x5b7f91['x'],_0x5b7f91['y'],_0x54a3b8['x'],_0x54a3b8['y']]}),_0xeed105['push']({'command':'z','points':[]});}return _0xeed105;}let _0x2a8571=_0x7e3b03['points'][_0xcdc0a0(0xd4)](_0x3f0844=>_0x3590cd(_0x3f0844,_0x3e6eb9));if(_0x2a8571[_0xcdc0a0(0xd6)]===0x0)return[];let _0x518ec7=[{'command':'M','points':[_0x2a8571[0x0]['x'],_0x2a8571[0x0]['y']]}];for(let _0x4026b4=0x0;_0x4026b4<_0x2a8571[_0xcdc0a0(0xd6)]-0x1;_0x4026b4++){var _0x368d79,_0x5ddec1;let _0x2c47df=_0x2a8571[_0x4026b4],_0x5ab290=_0x2a8571[_0x4026b4+0x1],_0x3a41a3=(_0x368d79=_0x2a8571[_0x4026b4-0x1])==null?_0x2c47df:_0x368d79,_0x494b52=(_0x5ddec1=_0x2a8571[_0x4026b4+0x2])==null?_0x5ab290:_0x5ddec1,_0x61e714={'x':_0x2c47df['x']+(_0x5ab290['x']-_0x3a41a3['x'])/0x6,'y':_0x2c47df['y']+(_0x5ab290['y']-_0x3a41a3['y'])/0x6},_0x3a3d39={'x':_0x5ab290['x']-(_0x494b52['x']-_0x2c47df['x'])/0x6,'y':_0x5ab290['y']-(_0x494b52['y']-_0x2c47df['y'])/0x6};_0x518ec7[_0xcdc0a0(0xf1)]({'command':'C','points':[_0x61e714['x'],_0x61e714['y'],_0x3a3d39['x'],_0x3a3d39['y'],_0x5ab290['x'],_0x5ab290['y']]});}return _0x518ec7;}function _0x5a1cff(_0x5b1ec0){const _0x270004=_0x36d067;var _0x2f7dc7;let {model:_0x47540f,sourceModel:_0x4c1ba9=_0x47540f,style:_0x3f51e1}=_0x5b1ec0,_0x1bd7e8=(_0x2f7dc7=_0x5b1ec0[_0x270004(0xc4)])==null?_0x47540f[_0x270004(0x98)]:_0x2f7dc7,_0x3777b7=_0x26a374(_0x47540f),_0x1acef8=_0x47540f['kind']===_0x270004(0xfc)&&_0x1bd7e8!==_0x270004(0xfc)?_0x47540f:void 0x0;return{'transform':{..._0x3777b7,'rotation':0x0},'shapeData':_0x58f533(_0x47540f,_0x3f51e1),'ink':{'version':0x1,'tool':_0x1bd7e8,'sourceModel':_0x4c1ba9,..._0x1acef8?{'editModel':_0x1acef8}:{},'normalizedBounds':_0x3777b7}};}var _0x2ea373='@univerjs-pro/ink',_0x3b03e8=_0x36d067(0x100);function _0x59ff21(_0x4c93e9){'@babel/helpers - typeof';const _0x479d93=_0x36d067;return _0x59ff21=typeof Symbol=='function'&&typeof Symbol[_0x479d93(0xf5)]==_0x479d93(0xc8)?function(_0x32b485){return typeof _0x32b485;}:function(_0x1f595){const _0x38f1e5=_0x479d93;return _0x1f595&&typeof Symbol==_0x38f1e5(0xfd)&&_0x1f595['constructor']===Symbol&&_0x1f595!==Symbol[_0x38f1e5(0x9e)]?_0x38f1e5(0xc8):typeof _0x1f595;},_0x59ff21(_0x4c93e9);}function _0x188484(_0x317991,_0x73a8f1){const _0x76f5a5=_0x36d067;if(_0x59ff21(_0x317991)!=_0x76f5a5(0x109)||!_0x317991)return _0x317991;var _0x30e7e2=_0x317991[Symbol[_0x76f5a5(0xa7)]];if(_0x30e7e2!==void 0x0){var _0x42064c=_0x30e7e2['call'](_0x317991,_0x73a8f1||'default');if(_0x59ff21(_0x42064c)!=_0x76f5a5(0x109))return _0x42064c;throw TypeError(_0x76f5a5(0xdf));}return(_0x73a8f1===_0x76f5a5(0xcc)?String:Number)(_0x317991);}function _0x2c93fb(_0xa95b1d){const _0x20635c=_0x36d067;var _0x2b0e74=_0x188484(_0xa95b1d,'string');return _0x59ff21(_0x2b0e74)==_0x20635c(0xc8)?_0x2b0e74:_0x2b0e74+'';}function _0x46a5f5(_0x2ea90a,_0x59a46e,_0x599139){const _0x223947=_0x36d067;return(_0x59a46e=_0x2c93fb(_0x59a46e))in _0x2ea90a?Object[_0x223947(0x96)](_0x2ea90a,_0x59a46e,{'value':_0x599139,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2ea90a[_0x59a46e]=_0x599139,_0x2ea90a;}let _0x508c4e=(0x0,_0x28570e[_0x36d067(0x97)])(_0x36d067(0xf6));var _0x101fbc=class{constructor(){const _0x2db88f=_0x36d067;_0x46a5f5(this,_0x2db88f(0xfb),[]);}[_0x36d067(0xf9)](_0x552118){const _0x1feb24=_0x36d067;return this['_adapters'][_0x1feb24(0xf1)](_0x552118),(0x0,_0x28570e[_0x1feb24(0xb3)])(()=>{const _0x51711c=_0x1feb24;let _0x349330=this[_0x51711c(0xfb)][_0x51711c(0xdc)](_0x552118);_0x349330>=0x0&&this['_adapters'][_0x51711c(0xa4)](_0x349330,0x1);});}[_0x36d067(0xf0)](_0x119602){const _0x24263f=_0x36d067;for(let _0x42b6c2 of this[_0x24263f(0xfb)])if(_0x42b6c2[_0x24263f(0xf0)](_0x119602))return!0x0;return!0x1;}async['createCustomShape'](_0x17bbea){const _0x187348=_0x36d067;for(let _0x43e178 of this[_0x187348(0xfb)])if(_0x43e178[_0x187348(0xff)]&&await _0x43e178[_0x187348(0xff)](_0x17bbea))return!0x0;return!0x1;}};let _0x58d01f={'id':_0x36d067(0xde),'type':_0x28570e[_0x36d067(0x94)][_0x36d067(0x10b)],'handler':(_0x3c2c84,_0x1ae080)=>_0x1ae080?_0x3c2c84['get'](_0x508c4e)[_0x36d067(0xf0)](_0x1ae080):!0x1},_0x35b647={};function _0x47ed42(_0x35ad82,_0x586963){return function(_0x307fdd,_0x5880cd){_0x586963(_0x307fdd,_0x5880cd,_0x35ad82);};}function _0x483555(_0x3d5168,_0x4a831d,_0x85f95c,_0x1d5f6f){const _0x368fcd=_0x36d067;var _0x2805cb=arguments[_0x368fcd(0xd6)],_0x21487f=_0x2805cb<0x3?_0x4a831d:_0x1d5f6f===null?_0x1d5f6f=Object[_0x368fcd(0x115)](_0x4a831d,_0x85f95c):_0x1d5f6f,_0x1be3fc;if(typeof Reflect==_0x368fcd(0x109)&&typeof Reflect[_0x368fcd(0xb5)]==_0x368fcd(0xfd))_0x21487f=Reflect[_0x368fcd(0xb5)](_0x3d5168,_0x4a831d,_0x85f95c,_0x1d5f6f);else{for(var _0x1625a7=_0x3d5168[_0x368fcd(0xd6)]-0x1;_0x1625a7>=0x0;_0x1625a7--)(_0x1be3fc=_0x3d5168[_0x1625a7])&&(_0x21487f=(_0x2805cb<0x3?_0x1be3fc(_0x21487f):_0x2805cb>0x3?_0x1be3fc(_0x4a831d,_0x85f95c,_0x21487f):_0x1be3fc(_0x4a831d,_0x85f95c))||_0x21487f);}return _0x2805cb>0x3&&_0x21487f&&Object[_0x368fcd(0x96)](_0x4a831d,_0x85f95c,_0x21487f),_0x21487f;}let _0x2fac47=class extends _0x28570e[_0x36d067(0xc6)]{constructor(_0x5ab2be=_0x35b647,_0x12e211,_0x47cf19,_0x3728a6){const _0x49c221=_0x36d067;super(),this[_0x49c221(0xe3)]=_0x5ab2be,this[_0x49c221(0xae)]=_0x12e211,this[_0x49c221(0xf2)]=_0x47cf19,this[_0x49c221(0x9a)]=_0x3728a6;let {..._0x57a9c4}=(0x0,_0x28570e['merge'])({},_0x35b647,this[_0x49c221(0xe3)]);this['_configService'][_0x49c221(0x10e)](_0x49c221(0xbf),_0x57a9c4);}[_0x36d067(0xed)](){const _0xd47dee=_0x36d067;[[_0x508c4e,{'useClass':_0x101fbc}]][_0xd47dee(0x107)](_0x253b18=>this[_0xd47dee(0xae)]['add'](_0x253b18)),this[_0xd47dee(0xab)](this['_commandService'][_0xd47dee(0xca)](_0x58d01f));}};_0x46a5f5(_0x2fac47,_0x36d067(0x102),'UNIVER_INK_PLUGIN'),_0x46a5f5(_0x2fac47,_0x36d067(0xd9),_0x2ea373),_0x46a5f5(_0x2fac47,_0x36d067(0xe9),_0x3b03e8),_0x46a5f5(_0x2fac47,_0x36d067(0xbc),_0x28570e['UniverInstanceType'][_0x36d067(0xb8)]),_0x2fac47=_0x483555([(0x0,_0x28570e[_0x36d067(0xdb)])(_0x45dfe3[_0x36d067(0xd1)]),_0x47ed42(0x1,(0x0,_0x28570e[_0x36d067(0xc7)])(_0x28570e[_0x36d067(0xe7)])),_0x47ed42(0x2,_0x28570e[_0x36d067(0x114)]),_0x47ed42(0x3,_0x28570e[_0x36d067(0xa3)])],_0x2fac47),_0x22c953[_0x36d067(0xa1)]=_0x508c4e,Object['defineProperty'](_0x22c953,_0x36d067(0xbb),{'enumerable':!0x0,'get':function(){return _0x2fac47;}}),_0x22c953[_0x36d067(0x99)]=_0x5a1cff,_0x22c953[_0x36d067(0x111)]=_0x43992a,_0x22c953[_0x36d067(0x106)]=_0x38a269,_0x22c953['deleteInkPenAnchor']=_0x24528e,_0x22c953[_0x36d067(0xa8)]=_0x17775e,_0x22c953[_0x36d067(0xf4)]=_0x23735a,_0x22c953['getInkModelBounds']=_0x26a374,_0x22c953[_0x36d067(0xec)]=_0x217661,_0x22c953[_0x36d067(0xc3)]=_0x25fc55,_0x22c953[_0x36d067(0xe0)]=_0x5928d2,_0x22c953[_0x36d067(0xd3)]=_0x24fa03,_0x22c953[_0x36d067(0xa0)]=_0x662da5;}));function _0x166a(_0x204ab5,_0x484dcc){_0x204ab5=_0x204ab5-0x94;const _0x2571db=_0x2571();let _0x166ae4=_0x2571db[_0x204ab5];return _0x166ae4;}function _0x2571(){const _0x151da7=['_commandService','top','findClosestInkPenSegment','iterator','ink.host-adapter.service','@univerjs-pro/engine-shape','none','registerAdapter','segmentIndex','_adapters','pen','function','opacity','createCustomShape','1.0.0-alpha.3','2175wSwemK','pluginName','color','ShapeLineCapEnum','slice','cycleInkPenAnchorPointType','forEach','exports','object','join','OPERATION','ShapeTypeEnum','5405265buwpws','setConfig','Rect','anchor','convertBrushModelToPenModel','Module','norm','ICommandService','getOwnPropertyDescriptor','CommandType','2796vIgsqz','defineProperty','createIdentifier','kind','buildInkCustomShapePayload','_configService','tolerance','14UvEETz','2171712HSFjBx','prototype','31020828qJuuHM','setInkPenAnchorPointType','IInkHostAdapterService','UniverProLicense','IConfigService','splice','__ink-preview-anchor__','@univerjs-pro/license','toPrimitive','findClosestInkPenHandle','end','free','disposeWithMe','out','point','_injector','NoFill','Round','hypot','min','toDisposable','1903gOlnCU','decorate','@univerjs/core','height','UNIVER_UNKNOWN','closed','ShapeFillEnum','UniverInkPlugin','type','max','UniverProInk','ink.config','655458Wrmipu','8FPHKIy','start','insertInkPenAnchorAt','tool','filter','Plugin','Inject','symbol','right','registerCommand','corner','string','4XIoaQG','sqrt','toStringTag','SolidLine','UniverLicensePlugin','points','moveInkPenAnchorPoint','map','startIndex','length','findIndex','pointType','packageName','find','DependentOn','indexOf','UniverCore','ink.operation.start','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isInkPenHandleVisible','5359626lFeyid','smooth','_config','width','symmetric','anchors','Injector','5370bSyPXV','version','distance','left','getInkPenPreviewModel','onStarting','createId','abs','beginInkMode','push'];_0x2571=function(){return _0x151da7;};return _0x2571();}
package/package.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "@univerjs-pro/ink",
3
+ "version": "1.0.0-alpha.3",
4
+ "private": false,
5
+ "description": "Reusable ink model and geometry integration for Univer.",
6
+ "author": "DreamNum Co., Ltd. <developer@univer.ai>",
7
+ "funding": {
8
+ "type": "opencollective",
9
+ "url": "https://opencollective.com/univer"
10
+ },
11
+ "homepage": "https://univer.ai",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/dream-num/univer"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/dream-num/univer/issues"
18
+ },
19
+ "keywords": [
20
+ "univer",
21
+ "univer-pro",
22
+ "ink",
23
+ "pen",
24
+ "brush"
25
+ ],
26
+ "exports": {
27
+ ".": {
28
+ "import": "./lib/es/index.js",
29
+ "require": "./lib/cjs/index.js",
30
+ "types": "./lib/types/index.d.ts"
31
+ },
32
+ "./*": {
33
+ "import": "./lib/es/*",
34
+ "require": "./lib/cjs/*",
35
+ "types": "./lib/types/index.d.ts"
36
+ },
37
+ "./facade": {
38
+ "import": "./lib/es/facade.js",
39
+ "require": "./lib/cjs/facade.js",
40
+ "types": "./lib/types/facade/index.d.ts"
41
+ },
42
+ "./lib/facade": {
43
+ "import": "./lib/es/facade.js",
44
+ "require": "./lib/cjs/facade.js",
45
+ "types": "./lib/types/facade/index.d.ts"
46
+ },
47
+ "./lib/*": "./lib/*"
48
+ },
49
+ "main": "./lib/es/index.js",
50
+ "types": "./lib/types/index.d.ts",
51
+ "publishConfig": {
52
+ "access": "public"
53
+ },
54
+ "directories": {
55
+ "lib": "lib"
56
+ },
57
+ "files": [
58
+ "lib"
59
+ ],
60
+ "dependencies": {
61
+ "@univerjs-pro/boards": "1.0.0-alpha.3",
62
+ "@univerjs-pro/engine-shape": "1.0.0-alpha.3",
63
+ "@univerjs-pro/license": "1.0.0-alpha.3",
64
+ "@univerjs/core": "1.0.0-alpha.3"
65
+ },
66
+ "devDependencies": {
67
+ "typescript": "^6.0.3",
68
+ "vitest": "^4.1.10",
69
+ "@univerjs-infra/shared": "1.0.0-alpha.3"
70
+ },
71
+ "scripts": {
72
+ "test": "vitest run",
73
+ "test:watch": "vitest",
74
+ "coverage": "vitest run --coverage",
75
+ "typecheck": "tsc --noEmit",
76
+ "build:bundle": "univer-cli build",
77
+ "build:types": "tsc -p tsconfig.node.json",
78
+ "build": "pnpm run build:bundle && pnpm run build:types"
79
+ },
80
+ "module": "./lib/es/index.js"
81
+ }