@univerjs-pro/ink 1.4.0 → 1.5.1

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 CHANGED
@@ -8,9 +8,9 @@
8
8
 
9
9
  ## Package Overview
10
10
 
11
- | Package | UMD global | CSS | Locales | Facade entry |
12
- | --- | --- | :---: | :---: | :---: |
13
- | `@univerjs-pro/ink` | `UniverProInk` | No | No | No |
11
+ | Package | UMD global | CSS | Locales | Facade entry | Worker entry |
12
+ | --- | --- | :---: | :---: | :---: | :---: |
13
+ | `@univerjs-pro/ink` | `UniverProInk` | No | No | No | No |
14
14
 
15
15
  ## Installation
16
16
 
@@ -20,29 +20,22 @@ pnpm add @univerjs-pro/ink
20
20
  npm install @univerjs-pro/ink
21
21
  ```
22
22
 
23
- Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
24
-
25
23
  ## Usage
26
24
 
25
+ Start with the [integration setup](https://docs.univer.ai/) for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
26
+
27
27
  ```ts
28
28
  import { UniverInkPlugin } from '@univerjs-pro/ink';
29
29
 
30
30
  univer.registerPlugin(UniverInkPlugin);
31
31
  ```
32
32
 
33
- ## Board integration
34
-
35
- Board ink APIs belong to `@univerjs-pro/boards/facade`. Replace imports of the removed
36
- `@univerjs-pro/ink/facade` entry with `@univerjs-pro/boards/facade`, including imports of
37
- `IBoardInkFacadeInsertOptions`, `BoardInkTool`, `BoardInkPointType`, and `BoardInkHandleKind`.
38
- `FBoard.insertInk()`, `getInks()`, and the `univerAPI.Enum.BoardInk*` values keep their behavior.
39
- Ink geometry and model types remain in this package. Stored ink data does not need migration.
40
-
41
33
  ## Integration Notes
42
34
 
43
- - Keep this package on the same version as the other `@univerjs/*` and `@univerjs-pro/*` packages in your application.
35
+ - Use `@univerjs-pro/boards/facade` for Board ink APIs.
44
36
 
45
37
  ## Resources
46
38
 
47
- - [Documentation](https://docs.univer.ai/guides/pro)
39
+ - [Documentation](https://docs.univer.ai)
48
40
  - [NPM package](https://npmjs.com/package/@univerjs-pro/ink)
41
+ - [GitHub repository](https://github.com/dream-num/univer-pro)
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x16813e=_0x1a16;(function(_0x33496e,_0x28b912){const _0x360a2b=_0x1a16,_0x3b9235=_0x33496e();while(!![]){try{const _0x42442c=-parseInt(_0x360a2b(0x10e))/0x1+-parseInt(_0x360a2b(0xba))/0x2*(-parseInt(_0x360a2b(0x121))/0x3)+-parseInt(_0x360a2b(0xe3))/0x4*(-parseInt(_0x360a2b(0x125))/0x5)+-parseInt(_0x360a2b(0xcf))/0x6*(parseInt(_0x360a2b(0xc8))/0x7)+-parseInt(_0x360a2b(0xd9))/0x8*(parseInt(_0x360a2b(0x104))/0x9)+-parseInt(_0x360a2b(0xdb))/0xa*(-parseInt(_0x360a2b(0xf0))/0xb)+parseInt(_0x360a2b(0xf6))/0xc*(parseInt(_0x360a2b(0xb9))/0xd);if(_0x42442c===_0x28b912)break;else _0x3b9235['push'](_0x3b9235['shift']());}catch(_0x2f01fc){_0x3b9235['push'](_0x3b9235['shift']());}}}(_0x5b1a,0x1ad96),Object[_0x16813e(0xd4)](exports,Symbol['toStringTag'],{'value':_0x16813e(0x10a)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x591b00){return{'x':_0x591b00['x'],'y':_0x591b00['y']};}function a(_0x1fb2ab){const _0x2747b2=_0x16813e;return{..._0x1fb2ab,'in':_0x1fb2ab['in']?i(_0x1fb2ab['in']):void 0x0,'out':_0x1fb2ab[_0x2747b2(0x11b)]?i(_0x1fb2ab[_0x2747b2(0x11b)]):void 0x0};}function _0x1a16(_0x145f5a,_0x38427b){_0x145f5a=_0x145f5a-0xb5;const _0x5b1a8f=_0x5b1a();let _0x1a16d7=_0x5b1a8f[_0x145f5a];return _0x1a16d7;}function o(_0xe5a0b5){return{'kind':'pen','closed':_0xe5a0b5['closed'],'anchors':_0xe5a0b5['anchors']['map'](a)};}function s(_0x3ac03f,_0x2db9ae,_0x280867){return{'x':_0x3ac03f['x']+(_0x2db9ae['x']-_0x3ac03f['x'])*_0x280867,'y':_0x3ac03f['y']+(_0x2db9ae['y']-_0x3ac03f['y'])*_0x280867};}function c(_0x58b2a1,_0x5e0241){const _0x56eec1=_0x16813e;return Math[_0x56eec1(0x110)](_0x58b2a1['x']-_0x5e0241['x'],_0x58b2a1['y']-_0x5e0241['y']);}function l(_0x1a1d8c){const _0x5b2da7=_0x16813e;let _0x44ada0=Math[_0x5b2da7(0x110)](_0x1a1d8c['x'],_0x1a1d8c['y']);return _0x44ada0<r?{'x':0x1,'y':0x0}:{'x':_0x1a1d8c['x']/_0x44ada0,'y':_0x1a1d8c['y']/_0x44ada0};}function u(_0x27df0a,_0xbddce9,_0x44d9ac=c(_0x27df0a,_0xbddce9)){let _0x573783=l({'x':_0x27df0a['x']-_0xbddce9['x'],'y':_0x27df0a['y']-_0xbddce9['y']});return{'x':_0x27df0a['x']+_0x573783['x']*_0x44d9ac,'y':_0x27df0a['y']+_0x573783['y']*_0x44d9ac};}function _0x5b1a(){const _0x5df054=['ICommandService','iterator','anchor','insertInkPenAnchorAt','top','add','out','norm','function','end','findClosestInkPenSegment','sqrt','2973DWKVuF','ShapeLineJoinEnum','right','min','10KexOKV','get','closed','symbol','startIndex','setInkPenAnchorPointType','ShapeLineCapEnum','UNIVER_INK_PLUGIN','deleteInkPenAnchor','forEach','17888xynogk','58skbiYW','_configService','getInkPenPreviewModel','getInkModelBounds','UNIVER_UNKNOWN','color','Injector','corner','OPERATION','length','free','filter','registerCommand','createIdentifier','28buAHNJ','Round','pluginName','symmetric','start','max','segmentIndex','93786gEVWCu','fillColor','_injector','SolidFill','buildInkCustomShapePayload','defineProperty','packageName','createId','UniverInkPlugin','type','269792wXIMbY','tolerance','164950BddPXS','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','beginInkMode','SolidLine','string','ink.config','kind','pointType','124468ljREzF','abs','registerAdapter','anchors','point','toPrimitive','ink-centerline-','createCustomShape','anchorId','distance','constructor','left','DependentOn','132QjrraS','call','moveInkPenAnchorPoint','find','disposeWithMe','CommandType','2208SkzPer','map','toDisposable','points','width','join','decorate','#f54a45','push','NoFill','_adapters','_config','version','object','54DrWwwS','ratio','slice','pen','getOwnPropertyDescriptor','UniverLicensePlugin','Module','ShapeFillEnum','@univerjs-pro/ink','setConfig','167255rPDiDS','opacity','hypot','IConfigService','_commandService','merge','smooth'];_0x5b1a=function(){return _0x5df054;};return _0x5b1a();}function d(_0x2fa1c4,_0x29f811){const _0x4ef150=_0x16813e;let {anchors:_0x5ecf56}=_0x2fa1c4;return _0x5ecf56['length']<0x2||_0x29f811<0x0?null:_0x29f811<_0x5ecf56[_0x4ef150(0xc3)]-0x1?{'startIndex':_0x29f811,'endIndex':_0x29f811+0x1,'start':_0x5ecf56[_0x29f811],'end':_0x5ecf56[_0x29f811+0x1]}:_0x2fa1c4['closed']&&_0x29f811===_0x5ecf56['length']-0x1?{'startIndex':_0x5ecf56['length']-0x1,'endIndex':0x0,'start':_0x5ecf56[_0x5ecf56[_0x4ef150(0xc3)]-0x1],'end':_0x5ecf56[0x0]}:null;}function f(_0x2c506f,_0x2432bd){const _0x333cad=_0x16813e;let _0x351c10=d(_0x2c506f,_0x2432bd);return _0x351c10?[_0x351c10[_0x333cad(0xcc)],_0x351c10['start'][_0x333cad(0x11b)]??_0x351c10['start'],_0x351c10[_0x333cad(0x11e)]['in']??_0x351c10[_0x333cad(0x11e)],_0x351c10[_0x333cad(0x11e)]]:null;}function ee(_0x2a7b3d,_0xd9aec4){return _0xd9aec4==='anchor'?_0x2a7b3d:_0x2a7b3d[_0xd9aec4]??null;}function p(_0x59af8f,_0x889c08,_0x234835){const _0x5c4500=_0x16813e;return _0x234835==='anchor'||_0x59af8f[_0x5c4500(0x127)]?!0x0:_0x234835==='in'?_0x889c08>0x0:_0x889c08<_0x59af8f['anchors'][_0x5c4500(0xc3)]-0x1;}function m(_0x315ccf,_0x3b49da){let [_0x201402,_0x5047bd,_0x5716c3,_0x16eb37]=_0x315ccf,_0x27bc49=s(_0x201402,_0x5047bd,_0x3b49da),_0x3b13e4=s(_0x5047bd,_0x5716c3,_0x3b49da),_0x5210bd=s(_0x5716c3,_0x16eb37,_0x3b49da);return s(s(_0x27bc49,_0x3b13e4,_0x3b49da),s(_0x3b13e4,_0x5210bd,_0x3b49da),_0x3b49da);}function h(_0x237c82,_0x218412){let [_0x35e742,_0x279fab,_0x3b5b8c,_0xa2c9fb]=_0x237c82,_0x3473e2=s(_0x35e742,_0x279fab,_0x218412),_0x4b77a4=s(_0x279fab,_0x3b5b8c,_0x218412),_0x5d3912=s(_0x3b5b8c,_0xa2c9fb,_0x218412),_0x2c385a=s(_0x3473e2,_0x4b77a4,_0x218412),_0x4acf80=s(_0x4b77a4,_0x5d3912,_0x218412),_0x2ddcfc=s(_0x2c385a,_0x4acf80,_0x218412);return{'left':[_0x35e742,_0x3473e2,_0x2c385a,_0x2ddcfc],'right':[_0x2ddcfc,_0x4acf80,_0x5d3912,_0xa2c9fb]};}function g(_0x3c455a,_0x58071d,_0x420fa1){const _0x4937dd=_0x16813e;let _0x3cdbb8=_0x420fa1['x']-_0x58071d['x'],_0x3f23f6=_0x420fa1['y']-_0x58071d['y'],_0x351a9c=_0x3cdbb8*_0x3cdbb8+_0x3f23f6*_0x3f23f6,_0x1d4361=_0x351a9c<=r?0x0:Math[_0x4937dd(0xcd)](0x0,Math[_0x4937dd(0x124)](0x1,((_0x3c455a['x']-_0x58071d['x'])*_0x3cdbb8+(_0x3c455a['y']-_0x58071d['y'])*_0x3f23f6)/_0x351a9c)),_0x39061b={'x':_0x58071d['x']+_0x3cdbb8*_0x1d4361,'y':_0x58071d['y']+_0x3f23f6*_0x1d4361};return{'point':_0x39061b,'ratio':_0x1d4361,'distance':c(_0x3c455a,_0x39061b)};}function te(_0x60c893,_0x2e76d4,_0x1b6e1d){return g(_0x60c893,_0x2e76d4,_0x1b6e1d)['distance']**0x2;}function _(_0x478706,_0xac117d){const _0x119f78=_0x16813e;if(_0x478706[_0x119f78(0xc3)]<=0x2)return _0x478706[_0x119f78(0xf7)](i);let _0x1cf065=0x0,_0x1e9761=0x0,_0x26877e=_0x478706[0x0],_0x119711=_0x478706[_0x478706[_0x119f78(0xc3)]-0x1],_0x41a378=_0xac117d*_0xac117d;for(let _0x9eb4ff=0x1;_0x9eb4ff<_0x478706[_0x119f78(0xc3)]-0x1;_0x9eb4ff++){let _0x3ca65f=te(_0x478706[_0x9eb4ff],_0x26877e,_0x119711);_0x3ca65f>_0x1cf065&&(_0x1cf065=_0x3ca65f,_0x1e9761=_0x9eb4ff);}if(_0x1cf065<=_0x41a378)return[i(_0x26877e),i(_0x119711)];let _0xa347e6=_(_0x478706[_0x119f78(0x106)](0x0,_0x1e9761+0x1),_0xac117d),_0x5c66f4=_(_0x478706[_0x119f78(0x106)](_0x1e9761),_0xac117d);return[..._0xa347e6[_0x119f78(0x106)](0x0,-0x1),..._0x5c66f4];}function ne(_0x5d2216,_0x262367){let _0x17d91c=_0x5d2216[_0x262367],_0x32ff4e=_0x5d2216[_0x262367+0x1],_0x2a5692=_0x5d2216[_0x262367-0x1]??_0x17d91c;return{'x':_0x17d91c['x']+(_0x32ff4e['x']-_0x2a5692['x'])/0x6,'y':_0x17d91c['y']+(_0x32ff4e['y']-_0x2a5692['y'])/0x6};}function v(_0x227ddd,_0x8b8e6d){let _0x18b7e2=_0x227ddd[_0x8b8e6d],_0x26fa4d=_0x227ddd[_0x8b8e6d-0x1],_0x2128cf=_0x227ddd[_0x8b8e6d+0x1]??_0x18b7e2;return{'x':_0x18b7e2['x']-(_0x2128cf['x']-_0x26fa4d['x'])/0x6,'y':_0x18b7e2['y']-(_0x2128cf['y']-_0x26fa4d['y'])/0x6};}function y(_0x57bea0,_0x51bde4){const _0x5c6624=_0x16813e;let _0x45236b=_0x57bea0[_0x5c6624(0xe6)][_0x51bde4],_0x32c9ed=_0x57bea0[_0x5c6624(0xe6)][_0x51bde4-0x1]??(_0x57bea0[_0x5c6624(0x127)]?_0x57bea0[_0x5c6624(0xe6)][_0x57bea0[_0x5c6624(0xe6)][_0x5c6624(0xc3)]-0x1]:null),_0x283970=_0x57bea0[_0x5c6624(0xe6)][_0x51bde4+0x1]??(_0x57bea0[_0x5c6624(0x127)]?_0x57bea0[_0x5c6624(0xe6)][0x0]:null),_0x49e744=_0x32c9ed&&_0x283970?l({'x':_0x283970['x']-_0x32c9ed['x'],'y':_0x283970['y']-_0x32c9ed['y']}):_0x283970?l({'x':_0x283970['x']-_0x45236b['x'],'y':_0x283970['y']-_0x45236b['y']}):_0x32c9ed?l({'x':_0x45236b['x']-_0x32c9ed['x'],'y':_0x45236b['y']-_0x32c9ed['y']}):{'x':0x1,'y':0x0},_0x2754c1=_0x32c9ed&&_0x283970?Math[_0x5c6624(0xcd)](0x32,c(_0x32c9ed,_0x283970)/0x4):0x32;return{'in':{'x':_0x45236b['x']-_0x49e744['x']*_0x2754c1,'y':_0x45236b['y']-_0x49e744['y']*_0x2754c1},'out':{'x':_0x45236b['x']+_0x49e744['x']*_0x2754c1,'y':_0x45236b['y']+_0x49e744['y']*_0x2754c1}};}function b(_0x415e03,_0x23d6ea){const _0x23ca05=_0x16813e;let _0xe0092c=_0x415e03[_0x23d6ea],_0x462f6d=_0x23d6ea==='in'?_0x23ca05(0x11b):'in',_0x2fb193=_0x415e03[_0x462f6d];_0xe0092c&&(_0x415e03[_0x23ca05(0xe2)]==='symmetric'?_0x415e03[_0x462f6d]=u(_0x415e03,_0xe0092c):_0x415e03[_0x23ca05(0xe2)]===_0x23ca05(0x114)&&(_0x415e03[_0x462f6d]=u(_0x415e03,_0xe0092c,_0x2fb193?c(_0x415e03,_0x2fb193):c(_0x415e03,_0xe0092c))));}function x(_0x1de1c5,_0x3ec202){const _0x5d33e2=_0x16813e;let _0x51c47a=o(_0x1de1c5);return!_0x3ec202||_0x51c47a[_0x5d33e2(0x127)]||_0x51c47a[_0x5d33e2(0xe6)][_0x5d33e2(0xc3)]===0x0||_0x51c47a[_0x5d33e2(0xe6)][_0x5d33e2(0xfe)]({'id':'__ink-preview-anchor__','x':_0x3ec202['x'],'y':_0x3ec202['y'],'pointType':_0x5d33e2(0xc1)}),_0x51c47a;}function re(_0xe61436,_0xfa96e2={}){const _0x427078=_0x16813e;let _0x2a8e58=Math[_0x427078(0xcd)](0x0,_0xfa96e2[_0x427078(0xda)]??Math[_0x427078(0xcd)](0x4,_0xe61436[_0x427078(0xfa)]*0.35)),_0x580e0d=_0xfa96e2[_0x427078(0xd6)]??(_0x1ddc2e=>_0x427078(0xe9)+_0x1ddc2e),_0x1b8cae=_(_0xe61436['points'],_0x2a8e58),_0xdc4645=_0x1b8cae[_0x427078(0xf7)]((_0x1f42d5,_0x43516c)=>({'id':_0x580e0d(_0x43516c),'x':_0x1f42d5['x'],'y':_0x1f42d5['y'],'pointType':_0x427078(0xc4)}));for(let _0x2cb33e=0x0;_0x2cb33e<_0xdc4645[_0x427078(0xc3)]-0x1;_0x2cb33e++)_0xdc4645[_0x2cb33e][_0x427078(0x11b)]=ne(_0x1b8cae,_0x2cb33e),_0xdc4645[_0x2cb33e+0x1]['in']=v(_0x1b8cae,_0x2cb33e+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0xdc4645};}function ie(_0x2760aa,_0x39267e,_0x342d33){const _0x289064=_0x16813e;let _0x328185=null,_0x303cdf=[_0x289064(0x117),'in',_0x289064(0x11b)];return _0x2760aa['anchors']['forEach']((_0x134d67,_0x4b1070)=>{const _0x68f62d=_0x289064;_0x303cdf[_0x68f62d(0xb8)](_0x1731e4=>{const _0x28d94a=_0x68f62d;if(!p(_0x2760aa,_0x4b1070,_0x1731e4))return;let _0x20d61f=ee(_0x134d67,_0x1731e4);if(!_0x20d61f)return;let _0xf6c966=c(_0x39267e,_0x20d61f);_0xf6c966>_0x342d33||_0x328185&&_0xf6c966>=_0x328185[_0x28d94a(0xec)]||(_0x328185={'handle':{'kind':_0x1731e4,'anchorId':_0x134d67['id']},'point':i(_0x20d61f),'distance':_0xf6c966});});}),_0x328185;}function S(_0xa59f6c,_0x25534c,_0x324558){const _0x24561d=_0x16813e;let _0x299d94=null,_0xdec7e8=_0xa59f6c[_0x24561d(0x127)]?_0xa59f6c[_0x24561d(0xe6)][_0x24561d(0xc3)]:Math['max'](0x0,_0xa59f6c[_0x24561d(0xe6)][_0x24561d(0xc3)]-0x1);for(let _0x20c652=0x0;_0x20c652<_0xdec7e8;_0x20c652++){let _0x52944a=f(_0xa59f6c,_0x20c652);if(!_0x52944a)continue;let _0x8748c4=m(_0x52944a,0x0);for(let _0x2a8bfd=0x1;_0x2a8bfd<=0x20;_0x2a8bfd++){let _0x33a61b=m(_0x52944a,_0x2a8bfd/0x20),_0x1c81ad=g(_0x25534c,_0x8748c4,_0x33a61b),_0x449692=(_0x2a8bfd-0x1+_0x1c81ad[_0x24561d(0x105)])/0x20;(!_0x299d94||_0x1c81ad[_0x24561d(0xec)]<_0x299d94[_0x24561d(0xec)])&&(_0x299d94={'segmentIndex':_0x20c652,'t':_0x449692,'point':_0x1c81ad[_0x24561d(0xe7)],'distance':_0x1c81ad[_0x24561d(0xec)]}),_0x8748c4=_0x33a61b;}}return _0x299d94&&_0x299d94[_0x24561d(0xec)]<=_0x324558?_0x299d94:null;}function C(_0x2721a9,_0x551253,_0xb15fa3){const _0x12205d=_0x16813e;let _0x1193bc=o(_0x2721a9),_0x150c98=d(_0x1193bc,_0x551253[_0x12205d(0xce)]),_0x1b7cf1=f(_0x1193bc,_0x551253[_0x12205d(0xce)]);if(!_0x150c98||!_0x1b7cf1)return _0x1193bc;let _0x379963=h(_0x1b7cf1,Math[_0x12205d(0xcd)](0x0,Math['min'](0x1,_0x551253['t']))),_0x262dee={'id':_0xb15fa3(),'x':_0x379963['left'][0x3]['x'],'y':_0x379963[_0x12205d(0xee)][0x3]['y'],'in':i(_0x379963[_0x12205d(0xee)][0x2]),'out':i(_0x379963[_0x12205d(0x123)][0x1]),'pointType':_0x12205d(0xc4)};return _0x1193bc[_0x12205d(0xe6)][_0x150c98[_0x12205d(0x129)]]['out']=i(_0x379963[_0x12205d(0xee)][0x1]),_0x1193bc[_0x12205d(0xe6)][_0x150c98['endIndex']]['in']=i(_0x379963['right'][0x2]),_0x1193bc[_0x12205d(0xe6)]['splice'](_0x150c98[_0x12205d(0x129)]+0x1,0x0,_0x262dee),_0x1193bc;}function w(_0x357bf6,_0x3719e6){const _0x34d9a0=_0x16813e;let _0x3ba304=o(_0x357bf6);return _0x3ba304[_0x34d9a0(0xe6)]=_0x3ba304[_0x34d9a0(0xe6)][_0x34d9a0(0xc5)](_0x3be87b=>_0x3be87b['id']!==_0x3719e6),_0x3ba304[_0x34d9a0(0x127)]&&_0x3ba304[_0x34d9a0(0xe6)][_0x34d9a0(0xc3)]<0x3&&(_0x3ba304[_0x34d9a0(0x127)]=!0x1),_0x3ba304;}function T(_0x5cd61b,_0x106a67,_0x1930e0){const _0x530462=_0x16813e;let _0x51e0a7=o(_0x5cd61b),_0x19334a=_0x51e0a7['anchors']['findIndex'](_0x4e9cfe=>_0x4e9cfe['id']===_0x106a67),_0x336e83=_0x51e0a7['anchors'][_0x19334a];if(!_0x336e83)return _0x51e0a7;if(_0x336e83['pointType']=_0x1930e0,_0x1930e0===_0x530462(0xc1))return delete _0x336e83['in'],delete _0x336e83[_0x530462(0x11b)],_0x51e0a7;let _0x9951ec=y(_0x51e0a7,_0x19334a);if(_0x336e83['in']=_0x336e83['in']?i(_0x336e83['in']):_0x9951ec['in'],_0x336e83['out']=_0x336e83[_0x530462(0x11b)]?i(_0x336e83[_0x530462(0x11b)]):_0x9951ec[_0x530462(0x11b)],_0x1930e0==='symmetric'){let _0x1a3588=Math['max'](c(_0x336e83,_0x336e83['in']),c(_0x336e83,_0x336e83['out']),0x32),_0x302683=l({'x':_0x336e83[_0x530462(0x11b)]['x']-_0x336e83['x'],'y':_0x336e83[_0x530462(0x11b)]['y']-_0x336e83['y']});_0x336e83[_0x530462(0x11b)]={'x':_0x336e83['x']+_0x302683['x']*_0x1a3588,'y':_0x336e83['y']+_0x302683['y']*_0x1a3588},_0x336e83['in']={'x':_0x336e83['x']-_0x302683['x']*_0x1a3588,'y':_0x336e83['y']-_0x302683['y']*_0x1a3588};}else _0x1930e0===_0x530462(0x114)&&b(_0x336e83,_0x530462(0x11b));return _0x51e0a7;}function E(_0x1a245f,_0x319f45){const _0x33256d=_0x16813e;let _0x4fb016=_0x1a245f[_0x33256d(0xe6)]['find'](_0x3715cd=>_0x3715cd['id']===_0x319f45),_0x2b85d6=(_0x4fb016==null?void 0x0:_0x4fb016[_0x33256d(0xe2)])??_0x33256d(0xc1);return T(_0x1a245f,_0x319f45,_0x2b85d6===_0x33256d(0xc1)?_0x33256d(0x114):_0x2b85d6==='smooth'?_0x33256d(0xcb):_0x2b85d6===_0x33256d(0xcb)?_0x33256d(0xc4):_0x33256d(0xc1));}function ae(_0x403f49,_0x3f3d68,_0x5f5c20){const _0x47ed9e=_0x16813e;let _0x12457b=o(_0x403f49),_0x34858b=_0x12457b[_0x47ed9e(0xe6)][_0x47ed9e(0xf3)](_0x11197a=>_0x11197a['id']===_0x3f3d68[_0x47ed9e(0xeb)]);if(!_0x34858b)return _0x12457b;if(_0x3f3d68[_0x47ed9e(0xe1)]==='anchor'){let _0x4eb74f={'x':_0x5f5c20['x']-_0x34858b['x'],'y':_0x5f5c20['y']-_0x34858b['y']};return _0x34858b['x']=_0x5f5c20['x'],_0x34858b['y']=_0x5f5c20['y'],_0x34858b['in']&&={'x':_0x34858b['in']['x']+_0x4eb74f['x'],'y':_0x34858b['in']['y']+_0x4eb74f['y']},_0x34858b[_0x47ed9e(0x11b)]&&={'x':_0x34858b[_0x47ed9e(0x11b)]['x']+_0x4eb74f['x'],'y':_0x34858b[_0x47ed9e(0x11b)]['y']+_0x4eb74f['y']},_0x12457b;}return _0x34858b[_0x3f3d68[_0x47ed9e(0xe1)]]=i(_0x5f5c20),_0x34858b['pointType']===_0x47ed9e(0xc1)&&(_0x34858b[_0x47ed9e(0xe2)]='free'),b(_0x34858b,_0x3f3d68['kind']),_0x12457b;}const D=1e-9;function O(_0x1515e6){let _0x4cab55=Math['round'](_0x1515e6*0x2710)/0x2710;return Object['is'](_0x4cab55,-0x0)?'0':String(_0x4cab55);}function k(_0x5d8d20){return O(_0x5d8d20['x'])+'\x20'+O(_0x5d8d20['y']);}function A(_0x57e951,_0xb10b11){return{'x':_0x57e951['x']-_0xb10b11['x'],'y':_0x57e951['y']-_0xb10b11['y']};}function j(_0x4b2587,_0x25d97d,_0x41c19b,_0x32f311,_0x2fb330){let _0x315b5c=0x1-_0x2fb330;return{'x':_0x315b5c*_0x315b5c*_0x315b5c*_0x4b2587['x']+0x3*_0x315b5c*_0x315b5c*_0x2fb330*_0x25d97d['x']+0x3*_0x315b5c*_0x2fb330*_0x2fb330*_0x41c19b['x']+_0x2fb330*_0x2fb330*_0x2fb330*_0x32f311['x'],'y':_0x315b5c*_0x315b5c*_0x315b5c*_0x4b2587['y']+0x3*_0x315b5c*_0x315b5c*_0x2fb330*_0x25d97d['y']+0x3*_0x315b5c*_0x2fb330*_0x2fb330*_0x41c19b['y']+_0x2fb330*_0x2fb330*_0x2fb330*_0x32f311['y']};}function M(_0x5287fb,_0x322a4d,_0xb703fe,_0x5e10fc){const _0x42ca14=_0x16813e;let _0x1228e9=-_0x5287fb+0x3*_0x322a4d-0x3*_0xb703fe+_0x5e10fc,_0x5a63fb=0x3*_0x5287fb-0x6*_0x322a4d+0x3*_0xb703fe,_0x129099=-0x3*_0x5287fb+0x3*_0x322a4d,_0x3f7234=[];if(Math['abs'](_0x1228e9)<D){if(Math[_0x42ca14(0xe4)](_0x5a63fb)<D)return _0x3f7234;let _0x31dd17=-_0x129099/(0x2*_0x5a63fb);return _0x31dd17>0x0&&_0x31dd17<0x1&&_0x3f7234[_0x42ca14(0xfe)](_0x31dd17),_0x3f7234;}let _0x201d46=_0x5a63fb*_0x5a63fb-0x3*_0x1228e9*_0x129099;if(_0x201d46<0x0)return _0x3f7234;let _0x6749c2=Math[_0x42ca14(0x120)](Math['max'](0x0,_0x201d46)),_0x3b9a11=(-_0x5a63fb+_0x6749c2)/(0x3*_0x1228e9),_0x25a842=(-_0x5a63fb-_0x6749c2)/(0x3*_0x1228e9);return _0x3b9a11>0x0&&_0x3b9a11<0x1&&_0x3f7234[_0x42ca14(0xfe)](_0x3b9a11),_0x25a842>0x0&&_0x25a842<0x1&&Math[_0x42ca14(0xe4)](_0x25a842-_0x3b9a11)>D&&_0x3f7234[_0x42ca14(0xfe)](_0x25a842),_0x3f7234;}function N(_0x33dbb8,_0x5065da,_0x4613e0,_0x598df8,_0x425029){const _0x46fa5e=_0x16813e;_0x33dbb8[_0x46fa5e(0xfe)](_0x5065da,_0x425029),new Set([...M(_0x5065da['x'],_0x4613e0['x'],_0x598df8['x'],_0x425029['x']),...M(_0x5065da['y'],_0x4613e0['y'],_0x598df8['y'],_0x425029['y'])])[_0x46fa5e(0xb8)](_0x5ce5b7=>{const _0x1daf63=_0x46fa5e;_0x33dbb8[_0x1daf63(0xfe)](j(_0x5065da,_0x4613e0,_0x598df8,_0x425029,_0x5ce5b7));});}function P(_0x3b542e){const _0xcc0eff=_0x16813e;let _0x2c78fe=_0x3b542e[_0xcc0eff(0xe6)];if(_0x2c78fe[_0xcc0eff(0xc3)]<=0x1)return _0x2c78fe;let _0x2e2bdc=[];for(let _0x50c1bc=0x1;_0x50c1bc<_0x2c78fe[_0xcc0eff(0xc3)];_0x50c1bc++){let _0x3df5f1=_0x2c78fe[_0x50c1bc-0x1],_0x43aaab=_0x2c78fe[_0x50c1bc];N(_0x2e2bdc,_0x3df5f1,_0x3df5f1['out']??_0x3df5f1,_0x43aaab['in']??_0x43aaab,_0x43aaab);}if(_0x3b542e['closed']&&_0x2c78fe['length']>0x1){let _0x32f656=_0x2c78fe[_0x2c78fe[_0xcc0eff(0xc3)]-0x1],_0x51775d=_0x2c78fe[0x0];N(_0x2e2bdc,_0x32f656,_0x32f656[_0xcc0eff(0x11b)]??_0x32f656,_0x51775d['in']??_0x51775d,_0x51775d);}return _0x2e2bdc;}function F(_0x340369){const _0x5c2a20=_0x16813e;let _0x3e8c50=_0x340369[_0x5c2a20(0xf9)];if(_0x3e8c50[_0x5c2a20(0xc3)]<=0x1)return _0x3e8c50;let _0x452128=[];for(let _0x3f6ac0=0x0;_0x3f6ac0<_0x3e8c50['length']-0x1;_0x3f6ac0++){let _0xf20416=_0x3e8c50[_0x3f6ac0],_0x207c41=_0x3e8c50[_0x3f6ac0+0x1],_0x3a4e34=_0x3e8c50[_0x3f6ac0-0x1]??_0xf20416,_0x53dc86=_0x3e8c50[_0x3f6ac0+0x2]??_0x207c41;N(_0x452128,_0xf20416,{'x':_0xf20416['x']+(_0x207c41['x']-_0x3a4e34['x'])/0x6,'y':_0xf20416['y']+(_0x207c41['y']-_0x3a4e34['y'])/0x6},{'x':_0x207c41['x']-(_0x53dc86['x']-_0xf20416['x'])/0x6,'y':_0x207c41['y']-(_0x53dc86['y']-_0xf20416['y'])/0x6},_0x207c41);}return _0x452128;}function I(_0x348d77){const _0x1174cc=_0x16813e;return _0x348d77[_0x1174cc(0xe1)]===_0x1174cc(0x107)?P(_0x348d77):F(_0x348d77);}function L(_0x5f5719){let _0x29f630=Math['round'](_0x5f5719*0x2710)/0x2710;return Object['is'](_0x29f630,-0x0)?0x0:_0x29f630;}function R(_0x25d85d){const _0x53836b=_0x16813e;let _0x71a079=I(_0x25d85d);if(_0x71a079[_0x53836b(0xc3)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0xafa0e7=Math['min'](..._0x71a079[_0x53836b(0xf7)](_0x66b9e3=>_0x66b9e3['x'])),_0x3974fd=Math['min'](..._0x71a079['map'](_0x410863=>_0x410863['y'])),_0x40a192=Math[_0x53836b(0xcd)](..._0x71a079[_0x53836b(0xf7)](_0x20973e=>_0x20973e['x'])),_0xe74a64=Math[_0x53836b(0xcd)](..._0x71a079['map'](_0x346a62=>_0x346a62['y']));return{'left':L(_0xafa0e7),'top':L(_0x3974fd),'width':L(Math[_0x53836b(0xcd)](0x1,_0x40a192-_0xafa0e7)),'height':L(Math[_0x53836b(0xcd)](0x1,_0xe74a64-_0x3974fd))};}function z(_0x5c1448,_0xce1069){const _0x26e5fe=_0x16813e;let _0x221b16=_0x5c1448[_0x26e5fe(0xe6)];if(_0x221b16[_0x26e5fe(0xc3)]===0x0)return'';let _0x2cafc5=['M\x20'+k(A(_0x221b16[0x0],_0xce1069))];for(let _0x54dd70=0x1;_0x54dd70<_0x221b16[_0x26e5fe(0xc3)];_0x54dd70++){let _0x524fa0=_0x221b16[_0x54dd70-0x1],_0x23bc3a=_0x221b16[_0x54dd70],_0x21648c=_0x524fa0[_0x26e5fe(0x11b)]??_0x524fa0,_0x392f93=_0x23bc3a['in']??_0x23bc3a;_0x2cafc5[_0x26e5fe(0xfe)]('C\x20'+k(A(_0x21648c,_0xce1069))+'\x20'+k(A(_0x392f93,_0xce1069))+'\x20'+k(A(_0x23bc3a,_0xce1069)));}if(_0x5c1448[_0x26e5fe(0x127)]&&_0x221b16[_0x26e5fe(0xc3)]>0x1){let _0x467b90=_0x221b16[_0x221b16[_0x26e5fe(0xc3)]-0x1],_0x50111c=_0x221b16[0x0],_0xdc9fa5=_0x467b90[_0x26e5fe(0x11b)]??_0x467b90,_0x5ec888=_0x50111c['in']??_0x50111c;_0x2cafc5['push']('C\x20'+k(A(_0xdc9fa5,_0xce1069))+'\x20'+k(A(_0x5ec888,_0xce1069))+'\x20'+k(A(_0x50111c,_0xce1069))),_0x2cafc5['push']('Z');}return _0x2cafc5[_0x26e5fe(0xfb)]('\x20');}function B(_0x38aa14,_0x336292){const _0x5aec5f=_0x16813e;let _0x1ec8b7=_0x38aa14[_0x5aec5f(0xf9)]['map'](_0x2b2b9e=>A(_0x2b2b9e,_0x336292));if(_0x1ec8b7[_0x5aec5f(0xc3)]===0x0)return'';if(_0x1ec8b7[_0x5aec5f(0xc3)]===0x1)return'M\x20'+k(_0x1ec8b7[0x0]);let _0x5ecd5c=['M\x20'+k(_0x1ec8b7[0x0])];for(let _0x904374=0x0;_0x904374<_0x1ec8b7[_0x5aec5f(0xc3)]-0x1;_0x904374++){let _0x393a86=_0x1ec8b7[_0x904374],_0x12777a=_0x1ec8b7[_0x904374+0x1],_0x568cee=_0x1ec8b7[_0x904374-0x1]??_0x393a86,_0x4f885e=_0x1ec8b7[_0x904374+0x2]??_0x12777a,_0x4f6805={'x':_0x393a86['x']+(_0x12777a['x']-_0x568cee['x'])/0x6,'y':_0x393a86['y']+(_0x12777a['y']-_0x568cee['y'])/0x6},_0x1ed336={'x':_0x12777a['x']-(_0x4f885e['x']-_0x393a86['x'])/0x6,'y':_0x12777a['y']-(_0x4f885e['y']-_0x393a86['y'])/0x6};_0x5ecd5c[_0x5aec5f(0xfe)]('C\x20'+k(_0x4f6805)+'\x20'+k(_0x1ed336)+'\x20'+k(_0x12777a));}return _0x5ecd5c[_0x5aec5f(0xfb)]('\x20');}function V(_0x1d84cd,_0x394c94){const _0x4fb3f6=_0x16813e;return _0x1d84cd['kind']===_0x4fb3f6(0x107)?z(_0x1d84cd,_0x394c94):B(_0x1d84cd,_0x394c94);}function H(_0x81e72c,_0xce589c){const _0x238d53=_0x16813e;return _0xce589c!=null&&_0xce589c[_0x238d53(0xbf)]?_0xce589c[_0x238d53(0xbf)]:_0x81e72c[_0x238d53(0xe1)]===_0x238d53(0x107)?_0x238d53(0xfd):_0x81e72c['color'];}function U(_0x351aa7,_0x3fcf10){const _0x2093bb=_0x16813e;return(_0x3fcf10==null?void 0x0:_0x3fcf10['width'])===void 0x0?_0x351aa7['kind']===_0x2093bb(0x107)?0x2:_0x351aa7['width']:_0x3fcf10[_0x2093bb(0xfa)];}function W(_0x2055af,_0x37ee20){const _0x28c442=_0x16813e;return(_0x37ee20==null?void 0x0:_0x37ee20[_0x28c442(0x10f)])===void 0x0?_0x2055af[_0x28c442(0xe1)]==='pen'?void 0x0:_0x2055af[_0x28c442(0x10f)]:_0x37ee20[_0x28c442(0x10f)];}function oe(_0x3e9e19,_0x2d57cb){const _0x101f24=_0x16813e;let _0x4ae32b=R(_0x3e9e19),_0x492497=V(_0x3e9e19,{'x':_0x4ae32b[_0x101f24(0xee)],'y':_0x4ae32b[_0x101f24(0x119)]}),_0x3a17e3=_0x3e9e19[_0x101f24(0xe1)]===_0x101f24(0x107)&&_0x3e9e19[_0x101f24(0x127)],_0x2e3329=_0x2d57cb==null?void 0x0:_0x2d57cb[_0x101f24(0xd0)];return{'shapeType':e['ShapeTypeEnum']['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x4ae32b[_0x101f24(0xfa)],'h':_0x4ae32b['height'],'fill':_0x3a17e3?_0x101f24(0x11c):'none','stroke':!0x0,'data':_0x492497,'dataArray':K(_0x3e9e19,{'x':_0x4ae32b[_0x101f24(0xee)],'y':_0x4ae32b[_0x101f24(0x119)]})}]},'fill':_0x3a17e3&&_0x2e3329?{'color':_0x2e3329,'fillType':e[_0x101f24(0x10b)][_0x101f24(0xd2)]}:{'fillType':e['ShapeFillEnum'][_0x101f24(0xff)]},'stroke':{'color':H(_0x3e9e19,_0x2d57cb),'width':U(_0x3e9e19,_0x2d57cb),'opacity':W(_0x3e9e19,_0x2d57cb),'lineStrokeType':e['ShapeLineTypeEnum'][_0x101f24(0xde)],'capType':e[_0x101f24(0xb5)][_0x101f24(0xc9)],'lineJoinType':e[_0x101f24(0x122)][_0x101f24(0xc9)]}};}function G(_0x5deea5,_0x261251){return{'x':_0x5deea5['x']-_0x261251['x'],'y':_0x5deea5['y']-_0x261251['y']};}function K(_0x330c56,_0x72782a){const _0x1d6a6a=_0x16813e;if(_0x330c56[_0x1d6a6a(0xe1)]===_0x1d6a6a(0x107)){let _0x1e2db5=_0x330c56['anchors'];if(_0x1e2db5[_0x1d6a6a(0xc3)]===0x0)return[];let _0x536d94=G(_0x1e2db5[0x0],_0x72782a),_0xfbb7a7=[{'command':'M','points':[_0x536d94['x'],_0x536d94['y']]}];for(let _0x1e3ab5=0x1;_0x1e3ab5<_0x1e2db5[_0x1d6a6a(0xc3)];_0x1e3ab5++){let _0x1c103c=_0x1e2db5[_0x1e3ab5-0x1],_0x297f5b=_0x1e2db5[_0x1e3ab5],_0x31c529=G(_0x1c103c[_0x1d6a6a(0x11b)]??_0x1c103c,_0x72782a),_0x4f774a=G(_0x297f5b['in']??_0x297f5b,_0x72782a),_0x28df6e=G(_0x297f5b,_0x72782a);_0xfbb7a7[_0x1d6a6a(0xfe)]({'command':'C','points':[_0x31c529['x'],_0x31c529['y'],_0x4f774a['x'],_0x4f774a['y'],_0x28df6e['x'],_0x28df6e['y']]});}if(_0x330c56['closed']&&_0x1e2db5[_0x1d6a6a(0xc3)]>0x1){let _0x23e138=_0x1e2db5[_0x1e2db5[_0x1d6a6a(0xc3)]-0x1],_0x5194e1=_0x1e2db5[0x0],_0x4fc3e3=G(_0x23e138[_0x1d6a6a(0x11b)]??_0x23e138,_0x72782a),_0x28811b=G(_0x5194e1['in']??_0x5194e1,_0x72782a),_0x37912b=G(_0x5194e1,_0x72782a);_0xfbb7a7['push']({'command':'C','points':[_0x4fc3e3['x'],_0x4fc3e3['y'],_0x28811b['x'],_0x28811b['y'],_0x37912b['x'],_0x37912b['y']]}),_0xfbb7a7[_0x1d6a6a(0xfe)]({'command':'z','points':[]});}return _0xfbb7a7;}let _0x398175=_0x330c56[_0x1d6a6a(0xf9)][_0x1d6a6a(0xf7)](_0x24bbb2=>G(_0x24bbb2,_0x72782a));if(_0x398175[_0x1d6a6a(0xc3)]===0x0)return[];let _0x16e585=[{'command':'M','points':[_0x398175[0x0]['x'],_0x398175[0x0]['y']]}];for(let _0x82db92=0x0;_0x82db92<_0x398175['length']-0x1;_0x82db92++){let _0x5d5f4f=_0x398175[_0x82db92],_0x881d8e=_0x398175[_0x82db92+0x1],_0x42e464=_0x398175[_0x82db92-0x1]??_0x5d5f4f,_0x51bad9=_0x398175[_0x82db92+0x2]??_0x881d8e,_0x3cc672={'x':_0x5d5f4f['x']+(_0x881d8e['x']-_0x42e464['x'])/0x6,'y':_0x5d5f4f['y']+(_0x881d8e['y']-_0x42e464['y'])/0x6},_0x2197a8={'x':_0x881d8e['x']-(_0x51bad9['x']-_0x5d5f4f['x'])/0x6,'y':_0x881d8e['y']-(_0x51bad9['y']-_0x5d5f4f['y'])/0x6};_0x16e585['push']({'command':'C','points':[_0x3cc672['x'],_0x3cc672['y'],_0x2197a8['x'],_0x2197a8['y'],_0x881d8e['x'],_0x881d8e['y']]});}return _0x16e585;}function q(_0x2d5e86){const _0x3842d5=_0x16813e;let {model:_0x341ed2,sourceModel:_0x295fe5=_0x341ed2,style:_0x6eed2c}=_0x2d5e86,_0x269ffd=_0x2d5e86['tool']??_0x341ed2[_0x3842d5(0xe1)],_0x707648=R(_0x341ed2),_0x1af621=_0x341ed2[_0x3842d5(0xe1)]===_0x3842d5(0x107)&&_0x269ffd!==_0x3842d5(0x107)?_0x341ed2:void 0x0;return{'transform':{..._0x707648,'rotation':0x0},'shapeData':oe(_0x341ed2,_0x6eed2c),'ink':{'version':0x1,'tool':_0x269ffd,'sourceModel':_0x295fe5,..._0x1af621?{'editModel':_0x1af621}:{},'normalizedBounds':_0x707648}};}var se=_0x16813e(0x10c),ce='1.4.0';function J(_0x395f9c){'@babel/helpers - typeof';const _0x539051=_0x16813e;return J=typeof Symbol==_0x539051(0x11d)&&typeof Symbol[_0x539051(0x116)]==_0x539051(0x128)?function(_0x30e742){return typeof _0x30e742;}:function(_0x5dea40){const _0x451d=_0x539051;return _0x5dea40&&typeof Symbol==_0x451d(0x11d)&&_0x5dea40[_0x451d(0xed)]===Symbol&&_0x5dea40!==Symbol['prototype']?_0x451d(0x128):typeof _0x5dea40;},J(_0x395f9c);}function le(_0x3ddd9c,_0x1addf9){const _0x1406d2=_0x16813e;if(J(_0x3ddd9c)!='object'||!_0x3ddd9c)return _0x3ddd9c;var _0x13cf09=_0x3ddd9c[Symbol[_0x1406d2(0xe8)]];if(_0x13cf09!==void 0x0){var _0xac29d3=_0x13cf09[_0x1406d2(0xf1)](_0x3ddd9c,_0x1addf9||'default');if(J(_0xac29d3)!=_0x1406d2(0x103))return _0xac29d3;throw TypeError(_0x1406d2(0xdc));}return(_0x1addf9===_0x1406d2(0xdf)?String:Number)(_0x3ddd9c);}function ue(_0x4da987){const _0x446675=_0x16813e;var _0x5c2cbd=le(_0x4da987,_0x446675(0xdf));return J(_0x5c2cbd)==_0x446675(0x128)?_0x5c2cbd:_0x5c2cbd+'';}function Y(_0x364732,_0x1132e0,_0x1c9b80){const _0xffd2f4=_0x16813e;return(_0x1132e0=ue(_0x1132e0))in _0x364732?Object[_0xffd2f4(0xd4)](_0x364732,_0x1132e0,{'value':_0x1c9b80,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x364732[_0x1132e0]=_0x1c9b80,_0x364732;}const X=(0x0,n[_0x16813e(0xc7)])('ink.host-adapter.service');var de=class{constructor(){const _0x8094f5=_0x16813e;Y(this,_0x8094f5(0x100),[]);}[_0x16813e(0xe5)](_0x25e946){const _0x13b62c=_0x16813e;return this[_0x13b62c(0x100)][_0x13b62c(0xfe)](_0x25e946),(0x0,n[_0x13b62c(0xf8)])(()=>{const _0x48e09b=_0x13b62c;let _0x3558c4=this[_0x48e09b(0x100)]['indexOf'](_0x25e946);_0x3558c4>=0x0&&this[_0x48e09b(0x100)]['splice'](_0x3558c4,0x1);});}[_0x16813e(0xdd)](_0x42fc73){const _0x14c22d=_0x16813e;for(let _0xf8a34b of this[_0x14c22d(0x100)])if(_0xf8a34b[_0x14c22d(0xdd)](_0x42fc73))return!0x0;return!0x1;}async[_0x16813e(0xea)](_0x19e72a){const _0x126a2d=_0x16813e;for(let _0x12cdb6 of this[_0x126a2d(0x100)])if(_0x12cdb6['createCustomShape']&&await _0x12cdb6['createCustomShape'](_0x19e72a))return!0x0;return!0x1;}};const fe={'id':'ink.operation.start','type':n[_0x16813e(0xf5)][_0x16813e(0xc2)],'handler':(_0x3742c7,_0x5b6f45)=>_0x5b6f45?_0x3742c7[_0x16813e(0x126)](X)['beginInkMode'](_0x5b6f45):!0x1},Z={};function Q(_0x40b08b,_0x23e594){return function(_0x79cc8f,_0x259e10){_0x23e594(_0x79cc8f,_0x259e10,_0x40b08b);};}function pe(_0xb43a4,_0x544cec,_0x2b7c3d,_0x3acd0d){const _0x4ea041=_0x16813e;var _0x402a33=arguments[_0x4ea041(0xc3)],_0x1e668c=_0x402a33<0x3?_0x544cec:_0x3acd0d===null?_0x3acd0d=Object[_0x4ea041(0x108)](_0x544cec,_0x2b7c3d):_0x3acd0d,_0x4ea512;if(typeof Reflect==_0x4ea041(0x103)&&typeof Reflect[_0x4ea041(0xfc)]==_0x4ea041(0x11d))_0x1e668c=Reflect[_0x4ea041(0xfc)](_0xb43a4,_0x544cec,_0x2b7c3d,_0x3acd0d);else{for(var _0x8b8a1d=_0xb43a4['length']-0x1;_0x8b8a1d>=0x0;_0x8b8a1d--)(_0x4ea512=_0xb43a4[_0x8b8a1d])&&(_0x1e668c=(_0x402a33<0x3?_0x4ea512(_0x1e668c):_0x402a33>0x3?_0x4ea512(_0x544cec,_0x2b7c3d,_0x1e668c):_0x4ea512(_0x544cec,_0x2b7c3d))||_0x1e668c);}return _0x402a33>0x3&&_0x1e668c&&Object[_0x4ea041(0xd4)](_0x544cec,_0x2b7c3d,_0x1e668c),_0x1e668c;}let $=class extends n['Plugin']{constructor(_0x22835f=Z,_0x2443f8,_0xce818b,_0x303ef7){const _0x264190=_0x16813e;super(),this['_config']=_0x22835f,this[_0x264190(0xd1)]=_0x2443f8,this[_0x264190(0x112)]=_0xce818b,this[_0x264190(0xbb)]=_0x303ef7;let {..._0xfe436c}=(0x0,n[_0x264190(0x113)])({},Z,this[_0x264190(0x101)]);this[_0x264190(0xbb)][_0x264190(0x10d)](_0x264190(0xe0),_0xfe436c);}['onStarting'](){const _0x4826dd=_0x16813e;[[X,{'useClass':de}]][_0x4826dd(0xb8)](_0x45a568=>this['_injector'][_0x4826dd(0x11a)](_0x45a568)),this[_0x4826dd(0xf4)](this['_commandService'][_0x4826dd(0xc6)](fe));}};Y($,_0x16813e(0xca),_0x16813e(0xb6)),Y($,_0x16813e(0xd5),se),Y($,_0x16813e(0x102),ce),Y($,_0x16813e(0xd8),n['UniverInstanceType'][_0x16813e(0xbe)]),$=pe([(0x0,n[_0x16813e(0xef)])(t[_0x16813e(0x109)]),Q(0x1,(0x0,n['Inject'])(n[_0x16813e(0xc0)])),Q(0x2,n[_0x16813e(0x115)]),Q(0x3,n[_0x16813e(0x111)])],$),exports['IInkHostAdapterService']=X,Object[_0x16813e(0xd4)](exports,_0x16813e(0xd7),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x16813e(0xd3)]=q,exports['convertBrushModelToPenModel']=re,exports['cycleInkPenAnchorPointType']=E,exports[_0x16813e(0xb7)]=w,exports['findClosestInkPenHandle']=ie,exports[_0x16813e(0x11f)]=S,exports[_0x16813e(0xbd)]=R,exports[_0x16813e(0xbc)]=x,exports[_0x16813e(0x118)]=C,exports['isInkPenHandleVisible']=p,exports[_0x16813e(0xf2)]=ae,exports[_0x16813e(0x12a)]=T;
1
+ const _0x4bf3b2=_0x4fd4;(function(_0x2932e9,_0x558b94){const _0xae5b2a=_0x4fd4,_0x22e8d5=_0x2932e9();while(!![]){try{const _0x5f1844=parseInt(_0xae5b2a(0x10b))/0x1+parseInt(_0xae5b2a(0x146))/0x2+parseInt(_0xae5b2a(0x16d))/0x3*(-parseInt(_0xae5b2a(0x17a))/0x4)+parseInt(_0xae5b2a(0x122))/0x5+-parseInt(_0xae5b2a(0x125))/0x6+parseInt(_0xae5b2a(0x142))/0x7*(-parseInt(_0xae5b2a(0x188))/0x8)+-parseInt(_0xae5b2a(0x10a))/0x9;if(_0x5f1844===_0x558b94)break;else _0x22e8d5['push'](_0x22e8d5['shift']());}catch(_0x2515dc){_0x22e8d5['push'](_0x22e8d5['shift']());}}}(_0x5199,0x23ede),Object[_0x4bf3b2(0x159)](exports,Symbol[_0x4bf3b2(0x137)],{'value':_0x4bf3b2(0x161)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x4be364){return{'x':_0x4be364['x'],'y':_0x4be364['y']};}function a(_0x66497b){const _0x1d4102=_0x4bf3b2;return{..._0x66497b,'in':_0x66497b['in']?i(_0x66497b['in']):void 0x0,'out':_0x66497b[_0x1d4102(0x117)]?i(_0x66497b[_0x1d4102(0x117)]):void 0x0};}function o(_0x2e86b6){const _0x1e058f=_0x4bf3b2;return{'kind':_0x1e058f(0x130),'closed':_0x2e86b6[_0x1e058f(0x180)],'anchors':_0x2e86b6['anchors'][_0x1e058f(0x11f)](a)};}function s(_0x5bf69f,_0x4ef026,_0x347563){return{'x':_0x5bf69f['x']+(_0x4ef026['x']-_0x5bf69f['x'])*_0x347563,'y':_0x5bf69f['y']+(_0x4ef026['y']-_0x5bf69f['y'])*_0x347563};}function c(_0x5853fa,_0xdbe632){return Math['hypot'](_0x5853fa['x']-_0xdbe632['x'],_0x5853fa['y']-_0xdbe632['y']);}function l(_0x1ebb96){const _0x154a28=_0x4bf3b2;let _0x2a36bd=Math[_0x154a28(0x16e)](_0x1ebb96['x'],_0x1ebb96['y']);return _0x2a36bd<r?{'x':0x1,'y':0x0}:{'x':_0x1ebb96['x']/_0x2a36bd,'y':_0x1ebb96['y']/_0x2a36bd};}function u(_0x3667d6,_0x323160,_0x796538=c(_0x3667d6,_0x323160)){let _0x184bd2=l({'x':_0x3667d6['x']-_0x323160['x'],'y':_0x3667d6['y']-_0x323160['y']});return{'x':_0x3667d6['x']+_0x184bd2['x']*_0x796538,'y':_0x3667d6['y']+_0x184bd2['y']*_0x796538};}function d(_0x23002a,_0x3432ed){const _0x54243b=_0x4bf3b2;let {anchors:_0x14d2d5}=_0x23002a;return _0x14d2d5['length']<0x2||_0x3432ed<0x0?null:_0x3432ed<_0x14d2d5[_0x54243b(0x121)]-0x1?{'startIndex':_0x3432ed,'endIndex':_0x3432ed+0x1,'start':_0x14d2d5[_0x3432ed],'end':_0x14d2d5[_0x3432ed+0x1]}:_0x23002a[_0x54243b(0x180)]&&_0x3432ed===_0x14d2d5[_0x54243b(0x121)]-0x1?{'startIndex':_0x14d2d5[_0x54243b(0x121)]-0x1,'endIndex':0x0,'start':_0x14d2d5[_0x14d2d5[_0x54243b(0x121)]-0x1],'end':_0x14d2d5[0x0]}:null;}function f(_0x1ea986,_0x21f338){const _0x2117b9=_0x4bf3b2;let _0x4df70d=d(_0x1ea986,_0x21f338);return _0x4df70d?[_0x4df70d[_0x2117b9(0x183)],_0x4df70d[_0x2117b9(0x183)][_0x2117b9(0x117)]??_0x4df70d[_0x2117b9(0x183)],_0x4df70d['end']['in']??_0x4df70d[_0x2117b9(0x149)],_0x4df70d[_0x2117b9(0x149)]]:null;}function ee(_0x16a1cd,_0x39d692){return _0x39d692==='anchor'?_0x16a1cd:_0x16a1cd[_0x39d692]??null;}function p(_0xfdc0c2,_0x3c8a43,_0x455ee6){const _0x54b4c8=_0x4bf3b2;return _0x455ee6===_0x54b4c8(0x110)||_0xfdc0c2[_0x54b4c8(0x180)]?!0x0:_0x455ee6==='in'?_0x3c8a43>0x0:_0x3c8a43<_0xfdc0c2[_0x54b4c8(0x113)][_0x54b4c8(0x121)]-0x1;}function m(_0x21ee48,_0x2d431b){let [_0x2d2a9c,_0xff7d0f,_0x1aae05,_0x25283a]=_0x21ee48,_0x344dca=s(_0x2d2a9c,_0xff7d0f,_0x2d431b),_0x471182=s(_0xff7d0f,_0x1aae05,_0x2d431b),_0x14e89f=s(_0x1aae05,_0x25283a,_0x2d431b);return s(s(_0x344dca,_0x471182,_0x2d431b),s(_0x471182,_0x14e89f,_0x2d431b),_0x2d431b);}function h(_0x2b5dbf,_0x1e1b8d){let [_0x7e6854,_0x48c306,_0x548518,_0x4ea400]=_0x2b5dbf,_0x89e16b=s(_0x7e6854,_0x48c306,_0x1e1b8d),_0x23b97d=s(_0x48c306,_0x548518,_0x1e1b8d),_0x5d0485=s(_0x548518,_0x4ea400,_0x1e1b8d),_0x5398f2=s(_0x89e16b,_0x23b97d,_0x1e1b8d),_0x1177a=s(_0x23b97d,_0x5d0485,_0x1e1b8d),_0x502b4a=s(_0x5398f2,_0x1177a,_0x1e1b8d);return{'left':[_0x7e6854,_0x89e16b,_0x5398f2,_0x502b4a],'right':[_0x502b4a,_0x1177a,_0x5d0485,_0x4ea400]};}function g(_0xf3ad09,_0x3536ba,_0x2d1915){const _0x4f932a=_0x4bf3b2;let _0x4023a5=_0x2d1915['x']-_0x3536ba['x'],_0x192e84=_0x2d1915['y']-_0x3536ba['y'],_0x104486=_0x4023a5*_0x4023a5+_0x192e84*_0x192e84,_0x4c0936=_0x104486<=r?0x0:Math[_0x4f932a(0x13b)](0x0,Math[_0x4f932a(0x17c)](0x1,((_0xf3ad09['x']-_0x3536ba['x'])*_0x4023a5+(_0xf3ad09['y']-_0x3536ba['y'])*_0x192e84)/_0x104486)),_0x8b727b={'x':_0x3536ba['x']+_0x4023a5*_0x4c0936,'y':_0x3536ba['y']+_0x192e84*_0x4c0936};return{'point':_0x8b727b,'ratio':_0x4c0936,'distance':c(_0xf3ad09,_0x8b727b)};}function te(_0x58cd9d,_0x2b8136,_0x544319){const _0x3c6ad2=_0x4bf3b2;return g(_0x58cd9d,_0x2b8136,_0x544319)[_0x3c6ad2(0x147)]**0x2;}function _(_0x3fe69c,_0x4e2310){const _0x11c059=_0x4bf3b2;if(_0x3fe69c[_0x11c059(0x121)]<=0x2)return _0x3fe69c[_0x11c059(0x11f)](i);let _0x169f65=0x0,_0x4964f5=0x0,_0x45af6f=_0x3fe69c[0x0],_0x3fc06d=_0x3fe69c[_0x3fe69c['length']-0x1],_0x316585=_0x4e2310*_0x4e2310;for(let _0x41ee10=0x1;_0x41ee10<_0x3fe69c[_0x11c059(0x121)]-0x1;_0x41ee10++){let _0x351ec4=te(_0x3fe69c[_0x41ee10],_0x45af6f,_0x3fc06d);_0x351ec4>_0x169f65&&(_0x169f65=_0x351ec4,_0x4964f5=_0x41ee10);}if(_0x169f65<=_0x316585)return[i(_0x45af6f),i(_0x3fc06d)];let _0x628c8f=_(_0x3fe69c[_0x11c059(0x131)](0x0,_0x4964f5+0x1),_0x4e2310),_0x572775=_(_0x3fe69c['slice'](_0x4964f5),_0x4e2310);return[..._0x628c8f[_0x11c059(0x131)](0x0,-0x1),..._0x572775];}function ne(_0x49f235,_0x1b276f){let _0x3f6b11=_0x49f235[_0x1b276f],_0x5e17c5=_0x49f235[_0x1b276f+0x1],_0x45f378=_0x49f235[_0x1b276f-0x1]??_0x3f6b11;return{'x':_0x3f6b11['x']+(_0x5e17c5['x']-_0x45f378['x'])/0x6,'y':_0x3f6b11['y']+(_0x5e17c5['y']-_0x45f378['y'])/0x6};}function v(_0x3735de,_0x80b489){let _0x49ae55=_0x3735de[_0x80b489],_0x59dfed=_0x3735de[_0x80b489-0x1],_0x540015=_0x3735de[_0x80b489+0x1]??_0x49ae55;return{'x':_0x49ae55['x']-(_0x540015['x']-_0x59dfed['x'])/0x6,'y':_0x49ae55['y']-(_0x540015['y']-_0x59dfed['y'])/0x6};}function y(_0x6a1ef8,_0x5181b3){const _0x4cf90d=_0x4bf3b2;let _0x308181=_0x6a1ef8[_0x4cf90d(0x113)][_0x5181b3],_0x5f9eba=_0x6a1ef8['anchors'][_0x5181b3-0x1]??(_0x6a1ef8[_0x4cf90d(0x180)]?_0x6a1ef8[_0x4cf90d(0x113)][_0x6a1ef8[_0x4cf90d(0x113)][_0x4cf90d(0x121)]-0x1]:null),_0x13da0c=_0x6a1ef8[_0x4cf90d(0x113)][_0x5181b3+0x1]??(_0x6a1ef8['closed']?_0x6a1ef8[_0x4cf90d(0x113)][0x0]:null),_0x59cf9d=_0x5f9eba&&_0x13da0c?l({'x':_0x13da0c['x']-_0x5f9eba['x'],'y':_0x13da0c['y']-_0x5f9eba['y']}):_0x13da0c?l({'x':_0x13da0c['x']-_0x308181['x'],'y':_0x13da0c['y']-_0x308181['y']}):_0x5f9eba?l({'x':_0x308181['x']-_0x5f9eba['x'],'y':_0x308181['y']-_0x5f9eba['y']}):{'x':0x1,'y':0x0},_0x260779=_0x5f9eba&&_0x13da0c?Math[_0x4cf90d(0x13b)](0x32,c(_0x5f9eba,_0x13da0c)/0x4):0x32;return{'in':{'x':_0x308181['x']-_0x59cf9d['x']*_0x260779,'y':_0x308181['y']-_0x59cf9d['y']*_0x260779},'out':{'x':_0x308181['x']+_0x59cf9d['x']*_0x260779,'y':_0x308181['y']+_0x59cf9d['y']*_0x260779}};}function b(_0x3f2766,_0x4a3dca){const _0x3743c7=_0x4bf3b2;let _0x28e887=_0x3f2766[_0x4a3dca],_0x2afcbf=_0x4a3dca==='in'?_0x3743c7(0x117):'in',_0x47945a=_0x3f2766[_0x2afcbf];_0x28e887&&(_0x3f2766[_0x3743c7(0x16a)]==='symmetric'?_0x3f2766[_0x2afcbf]=u(_0x3f2766,_0x28e887):_0x3f2766[_0x3743c7(0x16a)]===_0x3743c7(0x15b)&&(_0x3f2766[_0x2afcbf]=u(_0x3f2766,_0x28e887,_0x47945a?c(_0x3f2766,_0x47945a):c(_0x3f2766,_0x28e887))));}function x(_0x145556,_0x2e6ae8){const _0x10a1d6=_0x4bf3b2;let _0x3c6ba1=o(_0x145556);return!_0x2e6ae8||_0x3c6ba1[_0x10a1d6(0x180)]||_0x3c6ba1[_0x10a1d6(0x113)][_0x10a1d6(0x121)]===0x0||_0x3c6ba1[_0x10a1d6(0x113)][_0x10a1d6(0x171)]({'id':'__ink-preview-anchor__','x':_0x2e6ae8['x'],'y':_0x2e6ae8['y'],'pointType':_0x10a1d6(0x135)}),_0x3c6ba1;}function re(_0x389f93,_0x121f1b={}){const _0x1f2d9a=_0x4bf3b2;let _0x14ba47=Math[_0x1f2d9a(0x13b)](0x0,_0x121f1b[_0x1f2d9a(0x15a)]??Math[_0x1f2d9a(0x13b)](0x4,_0x389f93['width']*0.35)),_0x3ad34b=_0x121f1b[_0x1f2d9a(0x145)]??(_0x177f96=>_0x1f2d9a(0x128)+_0x177f96),_0x452bc1=_(_0x389f93[_0x1f2d9a(0x15f)],_0x14ba47),_0x3a2ab9=_0x452bc1[_0x1f2d9a(0x11f)]((_0x2a2279,_0x49de73)=>({'id':_0x3ad34b(_0x49de73),'x':_0x2a2279['x'],'y':_0x2a2279['y'],'pointType':'free'}));for(let _0x46530a=0x0;_0x46530a<_0x3a2ab9[_0x1f2d9a(0x121)]-0x1;_0x46530a++)_0x3a2ab9[_0x46530a]['out']=ne(_0x452bc1,_0x46530a),_0x3a2ab9[_0x46530a+0x1]['in']=v(_0x452bc1,_0x46530a+0x1);return{'kind':_0x1f2d9a(0x130),'closed':!0x1,'anchors':_0x3a2ab9};}function ie(_0x48bd0b,_0x46a91f,_0x2c55db){const _0x3e5cbe=_0x4bf3b2;let _0x5c0ece=null,_0x20e067=[_0x3e5cbe(0x110),'in',_0x3e5cbe(0x117)];return _0x48bd0b[_0x3e5cbe(0x113)][_0x3e5cbe(0x132)]((_0x3b972a,_0x183ef7)=>{const _0x4abdd2=_0x3e5cbe;_0x20e067[_0x4abdd2(0x132)](_0x2dded0=>{if(!p(_0x48bd0b,_0x183ef7,_0x2dded0))return;let _0x38a863=ee(_0x3b972a,_0x2dded0);if(!_0x38a863)return;let _0x4c713d=c(_0x46a91f,_0x38a863);_0x4c713d>_0x2c55db||_0x5c0ece&&_0x4c713d>=_0x5c0ece['distance']||(_0x5c0ece={'handle':{'kind':_0x2dded0,'anchorId':_0x3b972a['id']},'point':i(_0x38a863),'distance':_0x4c713d});});}),_0x5c0ece;}function S(_0x8f5cd2,_0xa8eb6f,_0x4ab8ec){const _0x3083bc=_0x4bf3b2;let _0x108f7a=null,_0x583d40=_0x8f5cd2[_0x3083bc(0x180)]?_0x8f5cd2[_0x3083bc(0x113)][_0x3083bc(0x121)]:Math[_0x3083bc(0x13b)](0x0,_0x8f5cd2[_0x3083bc(0x113)]['length']-0x1);for(let _0x4faac0=0x0;_0x4faac0<_0x583d40;_0x4faac0++){let _0x5ddd6a=f(_0x8f5cd2,_0x4faac0);if(!_0x5ddd6a)continue;let _0x59d5f2=m(_0x5ddd6a,0x0);for(let _0x5f0da9=0x1;_0x5f0da9<=0x20;_0x5f0da9++){let _0x5e50e2=m(_0x5ddd6a,_0x5f0da9/0x20),_0x47f420=g(_0xa8eb6f,_0x59d5f2,_0x5e50e2),_0x1b4b1a=(_0x5f0da9-0x1+_0x47f420[_0x3083bc(0x17b)])/0x20;(!_0x108f7a||_0x47f420[_0x3083bc(0x147)]<_0x108f7a['distance'])&&(_0x108f7a={'segmentIndex':_0x4faac0,'t':_0x1b4b1a,'point':_0x47f420[_0x3083bc(0x12e)],'distance':_0x47f420[_0x3083bc(0x147)]}),_0x59d5f2=_0x5e50e2;}}return _0x108f7a&&_0x108f7a['distance']<=_0x4ab8ec?_0x108f7a:null;}function C(_0xcca1ae,_0x2e5cc1,_0x25197c){const _0x27d188=_0x4bf3b2;let _0x46c9ae=o(_0xcca1ae),_0x278f1d=d(_0x46c9ae,_0x2e5cc1[_0x27d188(0x11a)]),_0x2df253=f(_0x46c9ae,_0x2e5cc1[_0x27d188(0x11a)]);if(!_0x278f1d||!_0x2df253)return _0x46c9ae;let _0x50dda6=h(_0x2df253,Math[_0x27d188(0x13b)](0x0,Math[_0x27d188(0x17c)](0x1,_0x2e5cc1['t']))),_0x27bafb={'id':_0x25197c(),'x':_0x50dda6['left'][0x3]['x'],'y':_0x50dda6['left'][0x3]['y'],'in':i(_0x50dda6[_0x27d188(0x164)][0x2]),'out':i(_0x50dda6[_0x27d188(0x13a)][0x1]),'pointType':_0x27d188(0x17d)};return _0x46c9ae[_0x27d188(0x113)][_0x278f1d[_0x27d188(0x14f)]][_0x27d188(0x117)]=i(_0x50dda6[_0x27d188(0x164)][0x1]),_0x46c9ae[_0x27d188(0x113)][_0x278f1d['endIndex']]['in']=i(_0x50dda6[_0x27d188(0x13a)][0x2]),_0x46c9ae[_0x27d188(0x113)][_0x27d188(0x12c)](_0x278f1d[_0x27d188(0x14f)]+0x1,0x0,_0x27bafb),_0x46c9ae;}function w(_0x51b534,_0x23705f){const _0x3208b7=_0x4bf3b2;let _0x2f719e=o(_0x51b534);return _0x2f719e[_0x3208b7(0x113)]=_0x2f719e[_0x3208b7(0x113)]['filter'](_0x5da46b=>_0x5da46b['id']!==_0x23705f),_0x2f719e[_0x3208b7(0x180)]&&_0x2f719e['anchors'][_0x3208b7(0x121)]<0x3&&(_0x2f719e['closed']=!0x1),_0x2f719e;}function T(_0x20ebe6,_0x136ad9,_0x1068e1){const _0x4dc783=_0x4bf3b2;let _0xefcba4=o(_0x20ebe6),_0x476eaf=_0xefcba4['anchors'][_0x4dc783(0x14b)](_0x21117f=>_0x21117f['id']===_0x136ad9),_0x34e8b2=_0xefcba4[_0x4dc783(0x113)][_0x476eaf];if(!_0x34e8b2)return _0xefcba4;if(_0x34e8b2[_0x4dc783(0x16a)]=_0x1068e1,_0x1068e1==='corner')return delete _0x34e8b2['in'],delete _0x34e8b2['out'],_0xefcba4;let _0x547fda=y(_0xefcba4,_0x476eaf);if(_0x34e8b2['in']=_0x34e8b2['in']?i(_0x34e8b2['in']):_0x547fda['in'],_0x34e8b2['out']=_0x34e8b2[_0x4dc783(0x117)]?i(_0x34e8b2[_0x4dc783(0x117)]):_0x547fda[_0x4dc783(0x117)],_0x1068e1===_0x4dc783(0x127)){let _0x443198=Math[_0x4dc783(0x13b)](c(_0x34e8b2,_0x34e8b2['in']),c(_0x34e8b2,_0x34e8b2[_0x4dc783(0x117)]),0x32),_0x33219e=l({'x':_0x34e8b2[_0x4dc783(0x117)]['x']-_0x34e8b2['x'],'y':_0x34e8b2[_0x4dc783(0x117)]['y']-_0x34e8b2['y']});_0x34e8b2['out']={'x':_0x34e8b2['x']+_0x33219e['x']*_0x443198,'y':_0x34e8b2['y']+_0x33219e['y']*_0x443198},_0x34e8b2['in']={'x':_0x34e8b2['x']-_0x33219e['x']*_0x443198,'y':_0x34e8b2['y']-_0x33219e['y']*_0x443198};}else _0x1068e1===_0x4dc783(0x15b)&&b(_0x34e8b2,_0x4dc783(0x117));return _0xefcba4;}function E(_0x2ddd9e,_0x393141){const _0x153ee5=_0x4bf3b2;let _0x2a563e=_0x2ddd9e[_0x153ee5(0x113)][_0x153ee5(0x140)](_0x2090dc=>_0x2090dc['id']===_0x393141),_0x4c4925=(_0x2a563e==null?void 0x0:_0x2a563e[_0x153ee5(0x16a)])??_0x153ee5(0x135);return T(_0x2ddd9e,_0x393141,_0x4c4925===_0x153ee5(0x135)?_0x153ee5(0x15b):_0x4c4925===_0x153ee5(0x15b)?'symmetric':_0x4c4925===_0x153ee5(0x127)?_0x153ee5(0x17d):_0x153ee5(0x135));}function ae(_0x58a195,_0x51532f,_0x46177a){const _0x441e56=_0x4bf3b2;let _0x448b71=o(_0x58a195),_0x43f2ed=_0x448b71['anchors'][_0x441e56(0x140)](_0x31646f=>_0x31646f['id']===_0x51532f[_0x441e56(0x15c)]);if(!_0x43f2ed)return _0x448b71;if(_0x51532f[_0x441e56(0x126)]===_0x441e56(0x110)){let _0x6e0423={'x':_0x46177a['x']-_0x43f2ed['x'],'y':_0x46177a['y']-_0x43f2ed['y']};return _0x43f2ed['x']=_0x46177a['x'],_0x43f2ed['y']=_0x46177a['y'],_0x43f2ed['in']&&={'x':_0x43f2ed['in']['x']+_0x6e0423['x'],'y':_0x43f2ed['in']['y']+_0x6e0423['y']},_0x43f2ed['out']&&={'x':_0x43f2ed[_0x441e56(0x117)]['x']+_0x6e0423['x'],'y':_0x43f2ed[_0x441e56(0x117)]['y']+_0x6e0423['y']},_0x448b71;}return _0x43f2ed[_0x51532f[_0x441e56(0x126)]]=i(_0x46177a),_0x43f2ed[_0x441e56(0x16a)]===_0x441e56(0x135)&&(_0x43f2ed['pointType']='free'),b(_0x43f2ed,_0x51532f[_0x441e56(0x126)]),_0x448b71;}const D=1e-9;function O(_0x5d880b){const _0x4d5a9c=_0x4bf3b2;let _0x33978d=Math[_0x4d5a9c(0x13d)](_0x5d880b*0x2710)/0x2710;return Object['is'](_0x33978d,-0x0)?'0':String(_0x33978d);}function k(_0x28e7e6){return O(_0x28e7e6['x'])+'\x20'+O(_0x28e7e6['y']);}function A(_0x2262f6,_0x2d38c8){return{'x':_0x2262f6['x']-_0x2d38c8['x'],'y':_0x2262f6['y']-_0x2d38c8['y']};}function j(_0x7b6f93,_0x4957c1,_0x15b88c,_0x102016,_0x3d1044){let _0x2ccd77=0x1-_0x3d1044;return{'x':_0x2ccd77*_0x2ccd77*_0x2ccd77*_0x7b6f93['x']+0x3*_0x2ccd77*_0x2ccd77*_0x3d1044*_0x4957c1['x']+0x3*_0x2ccd77*_0x3d1044*_0x3d1044*_0x15b88c['x']+_0x3d1044*_0x3d1044*_0x3d1044*_0x102016['x'],'y':_0x2ccd77*_0x2ccd77*_0x2ccd77*_0x7b6f93['y']+0x3*_0x2ccd77*_0x2ccd77*_0x3d1044*_0x4957c1['y']+0x3*_0x2ccd77*_0x3d1044*_0x3d1044*_0x15b88c['y']+_0x3d1044*_0x3d1044*_0x3d1044*_0x102016['y']};}function M(_0x10df48,_0x4e48a7,_0x53e82d,_0x24b0b7){const _0x1d7059=_0x4bf3b2;let _0x3f1f97=-_0x10df48+0x3*_0x4e48a7-0x3*_0x53e82d+_0x24b0b7,_0x21f377=0x3*_0x10df48-0x6*_0x4e48a7+0x3*_0x53e82d,_0x29b4d1=-0x3*_0x10df48+0x3*_0x4e48a7,_0x371346=[];if(Math[_0x1d7059(0x120)](_0x3f1f97)<D){if(Math[_0x1d7059(0x120)](_0x21f377)<D)return _0x371346;let _0x28a464=-_0x29b4d1/(0x2*_0x21f377);return _0x28a464>0x0&&_0x28a464<0x1&&_0x371346[_0x1d7059(0x171)](_0x28a464),_0x371346;}let _0x112ae6=_0x21f377*_0x21f377-0x3*_0x3f1f97*_0x29b4d1;if(_0x112ae6<0x0)return _0x371346;let _0xe0f0c5=Math[_0x1d7059(0x167)](Math[_0x1d7059(0x13b)](0x0,_0x112ae6)),_0x1324c5=(-_0x21f377+_0xe0f0c5)/(0x3*_0x3f1f97),_0x2d6180=(-_0x21f377-_0xe0f0c5)/(0x3*_0x3f1f97);return _0x1324c5>0x0&&_0x1324c5<0x1&&_0x371346['push'](_0x1324c5),_0x2d6180>0x0&&_0x2d6180<0x1&&Math[_0x1d7059(0x120)](_0x2d6180-_0x1324c5)>D&&_0x371346['push'](_0x2d6180),_0x371346;}function N(_0x47bbb8,_0x74bb55,_0x4a0d37,_0x2b4d3f,_0x46993f){const _0x7b0f71=_0x4bf3b2;_0x47bbb8['push'](_0x74bb55,_0x46993f),new Set([...M(_0x74bb55['x'],_0x4a0d37['x'],_0x2b4d3f['x'],_0x46993f['x']),...M(_0x74bb55['y'],_0x4a0d37['y'],_0x2b4d3f['y'],_0x46993f['y'])])[_0x7b0f71(0x132)](_0xea1cb8=>{_0x47bbb8['push'](j(_0x74bb55,_0x4a0d37,_0x2b4d3f,_0x46993f,_0xea1cb8));});}function P(_0x5d2a77){const _0x3a899e=_0x4bf3b2;let _0x1da045=_0x5d2a77[_0x3a899e(0x113)];if(_0x1da045[_0x3a899e(0x121)]<=0x1)return _0x1da045;let _0x5072ea=[];for(let _0x37da90=0x1;_0x37da90<_0x1da045[_0x3a899e(0x121)];_0x37da90++){let _0xdb6592=_0x1da045[_0x37da90-0x1],_0x189c2b=_0x1da045[_0x37da90];N(_0x5072ea,_0xdb6592,_0xdb6592[_0x3a899e(0x117)]??_0xdb6592,_0x189c2b['in']??_0x189c2b,_0x189c2b);}if(_0x5d2a77[_0x3a899e(0x180)]&&_0x1da045[_0x3a899e(0x121)]>0x1){let _0x1339aa=_0x1da045[_0x1da045[_0x3a899e(0x121)]-0x1],_0x20a4ab=_0x1da045[0x0];N(_0x5072ea,_0x1339aa,_0x1339aa[_0x3a899e(0x117)]??_0x1339aa,_0x20a4ab['in']??_0x20a4ab,_0x20a4ab);}return _0x5072ea;}function F(_0x2484d8){const _0x31a6d0=_0x4bf3b2;let _0xa3eb97=_0x2484d8[_0x31a6d0(0x15f)];if(_0xa3eb97['length']<=0x1)return _0xa3eb97;let _0x17c80a=[];for(let _0x37653a=0x0;_0x37653a<_0xa3eb97[_0x31a6d0(0x121)]-0x1;_0x37653a++){let _0x10e5db=_0xa3eb97[_0x37653a],_0x5235cd=_0xa3eb97[_0x37653a+0x1],_0x26d405=_0xa3eb97[_0x37653a-0x1]??_0x10e5db,_0x315f6c=_0xa3eb97[_0x37653a+0x2]??_0x5235cd;N(_0x17c80a,_0x10e5db,{'x':_0x10e5db['x']+(_0x5235cd['x']-_0x26d405['x'])/0x6,'y':_0x10e5db['y']+(_0x5235cd['y']-_0x26d405['y'])/0x6},{'x':_0x5235cd['x']-(_0x315f6c['x']-_0x10e5db['x'])/0x6,'y':_0x5235cd['y']-(_0x315f6c['y']-_0x10e5db['y'])/0x6},_0x5235cd);}return _0x17c80a;}function I(_0x231e7f){const _0x191afd=_0x4bf3b2;return _0x231e7f[_0x191afd(0x126)]===_0x191afd(0x130)?P(_0x231e7f):F(_0x231e7f);}function L(_0x23f418){const _0x4b3549=_0x4bf3b2;let _0x3d928e=Math[_0x4b3549(0x13d)](_0x23f418*0x2710)/0x2710;return Object['is'](_0x3d928e,-0x0)?0x0:_0x3d928e;}function R(_0x34cbb7){const _0x252869=_0x4bf3b2;let _0x17a257=I(_0x34cbb7);if(_0x17a257[_0x252869(0x121)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0xdbd7c0=Math['min'](..._0x17a257['map'](_0x23ccae=>_0x23ccae['x'])),_0x7b567b=Math[_0x252869(0x17c)](..._0x17a257[_0x252869(0x11f)](_0x418eb7=>_0x418eb7['y'])),_0x33ac9a=Math['max'](..._0x17a257['map'](_0x19dc17=>_0x19dc17['x'])),_0x45202f=Math[_0x252869(0x13b)](..._0x17a257[_0x252869(0x11f)](_0x41f39b=>_0x41f39b['y']));return{'left':L(_0xdbd7c0),'top':L(_0x7b567b),'width':L(Math['max'](0x1,_0x33ac9a-_0xdbd7c0)),'height':L(Math[_0x252869(0x13b)](0x1,_0x45202f-_0x7b567b))};}function _0x5199(){const _0x20e163=['setConfig','UNIVER_UNKNOWN','264252fjehTh','kind','symmetric','ink-centerline-','ICommandService','_commandService','opacity','splice','decorate','point','getInkPenPreviewModel','pen','slice','forEach','getInkModelBounds','pluginName','corner','ShapeLineCapEnum','toStringTag','findClosestInkPenHandle','cycleInkPenAnchorPointType','right','max','disposeWithMe','round','buildInkCustomShapePayload','prototype','find','ShapeTypeEnum','21tIyZsN','Injector','_adapters','createId','2202iDJkca','distance','#f54a45','end','Rect','findIndex','registerAdapter','_injector','tool','startIndex','IConfigService','DependentOn','fillColor','object','insertInkPenAnchorAt','UNIVER_INK_PLUGIN','version','Round','ShapeLineTypeEnum','defineProperty','tolerance','smooth','anchorId','Inject','toPrimitive','points','ShapeLineJoinEnum','Module','ink.operation.start','UniverInstanceType','left','iterator','top','sqrt','UniverInkPlugin','constructor','pointType','UniverLicensePlugin','ShapeFillEnum','24hHbYfJ','hypot','CommandType','color','push','moveInkPenAnchorPoint','createIdentifier','_configService','string','norm','type','indexOf','1.5.1','3128znsdHr','ratio','min','free','function','get','closed','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getOwnPropertyDescriptor','start','SolidFill','ink.host-adapter.service','OPERATION','toDisposable','292544LhZNoc','104067qLzhbz','137409ASyhAb','width','merge','Plugin','packageName','anchor','beginInkMode','call','anchors','@univerjs-pro/ink','registerCommand','height','out','symbol','setInkPenAnchorPointType','segmentIndex','createCustomShape','IInkHostAdapterService','join','isInkPenHandleVisible','map','abs','length','901105qEFtOs'];_0x5199=function(){return _0x20e163;};return _0x5199();}function z(_0x40f402,_0x2881fb){const _0x5e8b9b=_0x4bf3b2;let _0x5c2d8a=_0x40f402[_0x5e8b9b(0x113)];if(_0x5c2d8a[_0x5e8b9b(0x121)]===0x0)return'';let _0x467cc5=['M\x20'+k(A(_0x5c2d8a[0x0],_0x2881fb))];for(let _0x222055=0x1;_0x222055<_0x5c2d8a['length'];_0x222055++){let _0x2e8a58=_0x5c2d8a[_0x222055-0x1],_0x5ba59f=_0x5c2d8a[_0x222055],_0x512d95=_0x2e8a58[_0x5e8b9b(0x117)]??_0x2e8a58,_0x8d7710=_0x5ba59f['in']??_0x5ba59f;_0x467cc5[_0x5e8b9b(0x171)]('C\x20'+k(A(_0x512d95,_0x2881fb))+'\x20'+k(A(_0x8d7710,_0x2881fb))+'\x20'+k(A(_0x5ba59f,_0x2881fb)));}if(_0x40f402[_0x5e8b9b(0x180)]&&_0x5c2d8a[_0x5e8b9b(0x121)]>0x1){let _0x45bd11=_0x5c2d8a[_0x5c2d8a[_0x5e8b9b(0x121)]-0x1],_0x3b39ec=_0x5c2d8a[0x0],_0x109ed3=_0x45bd11[_0x5e8b9b(0x117)]??_0x45bd11,_0x35f028=_0x3b39ec['in']??_0x3b39ec;_0x467cc5[_0x5e8b9b(0x171)]('C\x20'+k(A(_0x109ed3,_0x2881fb))+'\x20'+k(A(_0x35f028,_0x2881fb))+'\x20'+k(A(_0x3b39ec,_0x2881fb))),_0x467cc5['push']('Z');}return _0x467cc5[_0x5e8b9b(0x11d)]('\x20');}function B(_0x903639,_0x4e7f19){const _0x3f00ab=_0x4bf3b2;let _0x2275cb=_0x903639[_0x3f00ab(0x15f)][_0x3f00ab(0x11f)](_0x495010=>A(_0x495010,_0x4e7f19));if(_0x2275cb[_0x3f00ab(0x121)]===0x0)return'';if(_0x2275cb[_0x3f00ab(0x121)]===0x1)return'M\x20'+k(_0x2275cb[0x0]);let _0x38ce2c=['M\x20'+k(_0x2275cb[0x0])];for(let _0x2339d4=0x0;_0x2339d4<_0x2275cb[_0x3f00ab(0x121)]-0x1;_0x2339d4++){let _0x2e0c81=_0x2275cb[_0x2339d4],_0x2ce102=_0x2275cb[_0x2339d4+0x1],_0x350d64=_0x2275cb[_0x2339d4-0x1]??_0x2e0c81,_0x6b387b=_0x2275cb[_0x2339d4+0x2]??_0x2ce102,_0x5ebd85={'x':_0x2e0c81['x']+(_0x2ce102['x']-_0x350d64['x'])/0x6,'y':_0x2e0c81['y']+(_0x2ce102['y']-_0x350d64['y'])/0x6},_0x10371a={'x':_0x2ce102['x']-(_0x6b387b['x']-_0x2e0c81['x'])/0x6,'y':_0x2ce102['y']-(_0x6b387b['y']-_0x2e0c81['y'])/0x6};_0x38ce2c[_0x3f00ab(0x171)]('C\x20'+k(_0x5ebd85)+'\x20'+k(_0x10371a)+'\x20'+k(_0x2ce102));}return _0x38ce2c[_0x3f00ab(0x11d)]('\x20');}function V(_0x32a986,_0x245eda){return _0x32a986['kind']==='pen'?z(_0x32a986,_0x245eda):B(_0x32a986,_0x245eda);}function H(_0x24c528,_0x3c60a7){const _0x64f07d=_0x4bf3b2;return _0x3c60a7!=null&&_0x3c60a7['color']?_0x3c60a7[_0x64f07d(0x170)]:_0x24c528[_0x64f07d(0x126)]===_0x64f07d(0x130)?_0x64f07d(0x148):_0x24c528[_0x64f07d(0x170)];}function U(_0xe9115b,_0xa647f2){const _0x3c9073=_0x4bf3b2;return(_0xa647f2==null?void 0x0:_0xa647f2[_0x3c9073(0x10c)])===void 0x0?_0xe9115b[_0x3c9073(0x126)]===_0x3c9073(0x130)?0x2:_0xe9115b[_0x3c9073(0x10c)]:_0xa647f2[_0x3c9073(0x10c)];}function W(_0x596ad2,_0x22d6b1){const _0x1f8c5b=_0x4bf3b2;return(_0x22d6b1==null?void 0x0:_0x22d6b1[_0x1f8c5b(0x12b)])===void 0x0?_0x596ad2[_0x1f8c5b(0x126)]===_0x1f8c5b(0x130)?void 0x0:_0x596ad2[_0x1f8c5b(0x12b)]:_0x22d6b1[_0x1f8c5b(0x12b)];}function oe(_0x1a09f7,_0x1cff57){const _0xcbf50a=_0x4bf3b2;let _0x1552d2=R(_0x1a09f7),_0x15bd36=V(_0x1a09f7,{'x':_0x1552d2['left'],'y':_0x1552d2[_0xcbf50a(0x166)]}),_0x12a150=_0x1a09f7[_0xcbf50a(0x126)]==='pen'&&_0x1a09f7[_0xcbf50a(0x180)],_0x223481=_0x1cff57==null?void 0x0:_0x1cff57[_0xcbf50a(0x152)];return{'shapeType':e[_0xcbf50a(0x141)][_0xcbf50a(0x14a)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1552d2[_0xcbf50a(0x10c)],'h':_0x1552d2[_0xcbf50a(0x116)],'fill':_0x12a150?_0xcbf50a(0x176):'none','stroke':!0x0,'data':_0x15bd36,'dataArray':K(_0x1a09f7,{'x':_0x1552d2[_0xcbf50a(0x164)],'y':_0x1552d2[_0xcbf50a(0x166)]})}]},'fill':_0x12a150&&_0x223481?{'color':_0x223481,'fillType':e[_0xcbf50a(0x16c)][_0xcbf50a(0x184)]}:{'fillType':e['ShapeFillEnum']['NoFill']},'stroke':{'color':H(_0x1a09f7,_0x1cff57),'width':U(_0x1a09f7,_0x1cff57),'opacity':W(_0x1a09f7,_0x1cff57),'lineStrokeType':e[_0xcbf50a(0x158)]['SolidLine'],'capType':e[_0xcbf50a(0x136)][_0xcbf50a(0x157)],'lineJoinType':e[_0xcbf50a(0x160)][_0xcbf50a(0x157)]}};}function G(_0x2a97c1,_0xf2627f){return{'x':_0x2a97c1['x']-_0xf2627f['x'],'y':_0x2a97c1['y']-_0xf2627f['y']};}function K(_0xbc6094,_0x4c6013){const _0x57ef73=_0x4bf3b2;if(_0xbc6094[_0x57ef73(0x126)]===_0x57ef73(0x130)){let _0x502e40=_0xbc6094['anchors'];if(_0x502e40[_0x57ef73(0x121)]===0x0)return[];let _0x2a7485=G(_0x502e40[0x0],_0x4c6013),_0x5defc2=[{'command':'M','points':[_0x2a7485['x'],_0x2a7485['y']]}];for(let _0x14584f=0x1;_0x14584f<_0x502e40[_0x57ef73(0x121)];_0x14584f++){let _0x411cc2=_0x502e40[_0x14584f-0x1],_0x1f10f7=_0x502e40[_0x14584f],_0x330033=G(_0x411cc2['out']??_0x411cc2,_0x4c6013),_0x1bade5=G(_0x1f10f7['in']??_0x1f10f7,_0x4c6013),_0x4a86b2=G(_0x1f10f7,_0x4c6013);_0x5defc2[_0x57ef73(0x171)]({'command':'C','points':[_0x330033['x'],_0x330033['y'],_0x1bade5['x'],_0x1bade5['y'],_0x4a86b2['x'],_0x4a86b2['y']]});}if(_0xbc6094[_0x57ef73(0x180)]&&_0x502e40['length']>0x1){let _0x1ad571=_0x502e40[_0x502e40[_0x57ef73(0x121)]-0x1],_0x1cb9c5=_0x502e40[0x0],_0x5829a2=G(_0x1ad571[_0x57ef73(0x117)]??_0x1ad571,_0x4c6013),_0x5e4192=G(_0x1cb9c5['in']??_0x1cb9c5,_0x4c6013),_0x2225fa=G(_0x1cb9c5,_0x4c6013);_0x5defc2[_0x57ef73(0x171)]({'command':'C','points':[_0x5829a2['x'],_0x5829a2['y'],_0x5e4192['x'],_0x5e4192['y'],_0x2225fa['x'],_0x2225fa['y']]}),_0x5defc2[_0x57ef73(0x171)]({'command':'z','points':[]});}return _0x5defc2;}let _0x16d306=_0xbc6094[_0x57ef73(0x15f)]['map'](_0x2bc3dc=>G(_0x2bc3dc,_0x4c6013));if(_0x16d306[_0x57ef73(0x121)]===0x0)return[];let _0xaac3e6=[{'command':'M','points':[_0x16d306[0x0]['x'],_0x16d306[0x0]['y']]}];for(let _0x38e64c=0x0;_0x38e64c<_0x16d306['length']-0x1;_0x38e64c++){let _0x2a9bc8=_0x16d306[_0x38e64c],_0x13b816=_0x16d306[_0x38e64c+0x1],_0x24fc7a=_0x16d306[_0x38e64c-0x1]??_0x2a9bc8,_0x7c7997=_0x16d306[_0x38e64c+0x2]??_0x13b816,_0x34a273={'x':_0x2a9bc8['x']+(_0x13b816['x']-_0x24fc7a['x'])/0x6,'y':_0x2a9bc8['y']+(_0x13b816['y']-_0x24fc7a['y'])/0x6},_0x403f74={'x':_0x13b816['x']-(_0x7c7997['x']-_0x2a9bc8['x'])/0x6,'y':_0x13b816['y']-(_0x7c7997['y']-_0x2a9bc8['y'])/0x6};_0xaac3e6[_0x57ef73(0x171)]({'command':'C','points':[_0x34a273['x'],_0x34a273['y'],_0x403f74['x'],_0x403f74['y'],_0x13b816['x'],_0x13b816['y']]});}return _0xaac3e6;}function q(_0x55e691){const _0x55fc07=_0x4bf3b2;let {model:_0x2a9ca5,sourceModel:_0x7bf0b1=_0x2a9ca5,style:_0x51649e}=_0x55e691,_0x45e495=_0x55e691[_0x55fc07(0x14e)]??_0x2a9ca5['kind'],_0xb9b05b=R(_0x2a9ca5),_0x73142d=_0x2a9ca5[_0x55fc07(0x126)]===_0x55fc07(0x130)&&_0x45e495!==_0x55fc07(0x130)?_0x2a9ca5:void 0x0;return{'transform':{..._0xb9b05b,'rotation':0x0},'shapeData':oe(_0x2a9ca5,_0x51649e),'ink':{'version':0x1,'tool':_0x45e495,'sourceModel':_0x7bf0b1,..._0x73142d?{'editModel':_0x73142d}:{},'normalizedBounds':_0xb9b05b}};}var se=_0x4bf3b2(0x114),ce=_0x4bf3b2(0x179);function J(_0x2697cd){'@babel/helpers - typeof';const _0x209231=_0x4bf3b2;return J=typeof Symbol==_0x209231(0x17e)&&typeof Symbol[_0x209231(0x165)]==_0x209231(0x118)?function(_0x16d5db){return typeof _0x16d5db;}:function(_0x8fece9){const _0x28197b=_0x209231;return _0x8fece9&&typeof Symbol==_0x28197b(0x17e)&&_0x8fece9[_0x28197b(0x169)]===Symbol&&_0x8fece9!==Symbol[_0x28197b(0x13f)]?_0x28197b(0x118):typeof _0x8fece9;},J(_0x2697cd);}function le(_0x12f39e,_0xe1ba1e){const _0x215d6e=_0x4bf3b2;if(J(_0x12f39e)!='object'||!_0x12f39e)return _0x12f39e;var _0x414699;if(typeof Symbol<'u'&&(_0x414699=_0x12f39e[Symbol[_0x215d6e(0x15e)]])!==void 0x0){var _0x46d68c=_0x414699[_0x215d6e(0x112)](_0x12f39e,_0xe1ba1e||'default');if(J(_0x46d68c)!=_0x215d6e(0x153))return _0x46d68c;throw TypeError(_0x215d6e(0x181));}return(_0xe1ba1e===_0x215d6e(0x175)?String:Number)(_0x12f39e);}function ue(_0x18b1c0){const _0xfa3104=_0x4bf3b2;var _0x7fecfc=le(_0x18b1c0,_0xfa3104(0x175));return J(_0x7fecfc)==_0xfa3104(0x118)?_0x7fecfc:_0x7fecfc+'';}function Y(_0x3014c6,_0x387344,_0x562a3c){const _0x4d61bc=_0x4bf3b2;return(_0x387344=ue(_0x387344))in _0x3014c6?Object[_0x4d61bc(0x159)](_0x3014c6,_0x387344,{'value':_0x562a3c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3014c6[_0x387344]=_0x562a3c,_0x3014c6;}const X=(0x0,n[_0x4bf3b2(0x173)])(_0x4bf3b2(0x185));var de=class{constructor(){const _0x45be97=_0x4bf3b2;Y(this,_0x45be97(0x144),[]);}[_0x4bf3b2(0x14c)](_0x52e6eb){const _0x2f6cb7=_0x4bf3b2;return this[_0x2f6cb7(0x144)]['push'](_0x52e6eb),(0x0,n[_0x2f6cb7(0x187)])(()=>{const _0x2cb357=_0x2f6cb7;let _0x367161=this[_0x2cb357(0x144)][_0x2cb357(0x178)](_0x52e6eb);_0x367161>=0x0&&this[_0x2cb357(0x144)][_0x2cb357(0x12c)](_0x367161,0x1);});}[_0x4bf3b2(0x111)](_0x561cbe){const _0x304ce0=_0x4bf3b2;for(let _0xc93b8f of this[_0x304ce0(0x144)])if(_0xc93b8f[_0x304ce0(0x111)](_0x561cbe))return!0x0;return!0x1;}async[_0x4bf3b2(0x11b)](_0x12d305){const _0x516dee=_0x4bf3b2;for(let _0x17f0de of this[_0x516dee(0x144)])if(_0x17f0de[_0x516dee(0x11b)]&&await _0x17f0de[_0x516dee(0x11b)](_0x12d305))return!0x0;return!0x1;}};const fe={'id':_0x4bf3b2(0x162),'type':n[_0x4bf3b2(0x16f)][_0x4bf3b2(0x186)],'handler':(_0x22af2c,_0x5e93e9)=>_0x5e93e9?_0x22af2c[_0x4bf3b2(0x17f)](X)['beginInkMode'](_0x5e93e9):!0x1},Z={};function _0x4fd4(_0x3f1f32,_0x45014e){_0x3f1f32=_0x3f1f32-0x10a;const _0x5199b6=_0x5199();let _0x4fd464=_0x5199b6[_0x3f1f32];return _0x4fd464;}function Q(_0x45fcec,_0x26f47c){return function(_0x3decc2,_0xf6c69f){_0x26f47c(_0x3decc2,_0xf6c69f,_0x45fcec);};}function pe(_0x2c929f,_0x231cc0,_0x23e08f,_0x5a138b){const _0x3be1fd=_0x4bf3b2;var _0x4cc6e2=arguments['length'],_0x385401=_0x4cc6e2<0x3?_0x231cc0:_0x5a138b===null?_0x5a138b=Object[_0x3be1fd(0x182)](_0x231cc0,_0x23e08f):_0x5a138b,_0x177a11;if(typeof Reflect==_0x3be1fd(0x153)&&typeof Reflect[_0x3be1fd(0x12d)]=='function')_0x385401=Reflect['decorate'](_0x2c929f,_0x231cc0,_0x23e08f,_0x5a138b);else{for(var _0x463c73=_0x2c929f[_0x3be1fd(0x121)]-0x1;_0x463c73>=0x0;_0x463c73--)(_0x177a11=_0x2c929f[_0x463c73])&&(_0x385401=(_0x4cc6e2<0x3?_0x177a11(_0x385401):_0x4cc6e2>0x3?_0x177a11(_0x231cc0,_0x23e08f,_0x385401):_0x177a11(_0x231cc0,_0x23e08f))||_0x385401);}return _0x4cc6e2>0x3&&_0x385401&&Object['defineProperty'](_0x231cc0,_0x23e08f,_0x385401),_0x385401;}let $=class extends n[_0x4bf3b2(0x10e)]{constructor(_0x2320e3=Z,_0x8b2f09,_0x2eed3d,_0x428f56){const _0x23d290=_0x4bf3b2;super(),this['_config']=_0x2320e3,this['_injector']=_0x8b2f09,this[_0x23d290(0x12a)]=_0x2eed3d,this[_0x23d290(0x174)]=_0x428f56;let {..._0x55dc15}=(0x0,n[_0x23d290(0x10d)])({},Z,this['_config']);this[_0x23d290(0x174)][_0x23d290(0x123)]('ink.config',_0x55dc15);}['onStarting'](){const _0x397e01=_0x4bf3b2;[[X,{'useClass':de}]][_0x397e01(0x132)](_0x389003=>this[_0x397e01(0x14d)]['add'](_0x389003)),this[_0x397e01(0x13c)](this[_0x397e01(0x12a)][_0x397e01(0x115)](fe));}};Y($,_0x4bf3b2(0x134),_0x4bf3b2(0x155)),Y($,_0x4bf3b2(0x10f),se),Y($,_0x4bf3b2(0x156),ce),Y($,_0x4bf3b2(0x177),n[_0x4bf3b2(0x163)][_0x4bf3b2(0x124)]),$=pe([(0x0,n[_0x4bf3b2(0x151)])(t[_0x4bf3b2(0x16b)]),Q(0x1,(0x0,n[_0x4bf3b2(0x15d)])(n[_0x4bf3b2(0x143)])),Q(0x2,n[_0x4bf3b2(0x129)]),Q(0x3,n[_0x4bf3b2(0x150)])],$),exports[_0x4bf3b2(0x11c)]=X,Object[_0x4bf3b2(0x159)](exports,_0x4bf3b2(0x168),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4bf3b2(0x13e)]=q,exports['convertBrushModelToPenModel']=re,exports[_0x4bf3b2(0x139)]=E,exports['deleteInkPenAnchor']=w,exports[_0x4bf3b2(0x138)]=ie,exports['findClosestInkPenSegment']=S,exports[_0x4bf3b2(0x133)]=R,exports[_0x4bf3b2(0x12f)]=x,exports[_0x4bf3b2(0x154)]=C,exports[_0x4bf3b2(0x11e)]=p,exports[_0x4bf3b2(0x172)]=ae,exports[_0x4bf3b2(0x119)]=T;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3d1ae1=_0x548c;(function(_0x4595cb,_0x5ceb08){const _0x8d041b=_0x548c,_0x3b0bc8=_0x4595cb();while(!![]){try{const _0x1eae38=parseInt(_0x8d041b(0x196))/0x1*(-parseInt(_0x8d041b(0x182))/0x2)+parseInt(_0x8d041b(0x187))/0x3+parseInt(_0x8d041b(0x148))/0x4*(parseInt(_0x8d041b(0x147))/0x5)+-parseInt(_0x8d041b(0x141))/0x6+parseInt(_0x8d041b(0x16b))/0x7+parseInt(_0x8d041b(0x192))/0x8*(parseInt(_0x8d041b(0x191))/0x9)+parseInt(_0x8d041b(0x13e))/0xa*(-parseInt(_0x8d041b(0x18b))/0xb);if(_0x1eae38===_0x5ceb08)break;else _0x3b0bc8['push'](_0x3b0bc8['shift']());}catch(_0x3d36b2){_0x3b0bc8['push'](_0x3b0bc8['shift']());}}}(_0x175f,0x715ca));import{ShapeFillEnum as _0x24531d,ShapeLineCapEnum as _0x1690c1,ShapeLineJoinEnum as _0x163cc1,ShapeLineTypeEnum as _0x49787e,ShapeTypeEnum as _0x83d0f6}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x513a1d}from'@univerjs-pro/license';import{CommandType as _0x32101d,DependentOn as _0x5642da,ICommandService as _0x11df14,IConfigService as _0x19d84c,Inject as _0x58e287,Injector as _0x1c4dea,Plugin as _0x3492da,UniverInstanceType as _0x40e146,createIdentifier as _0x4732b8,merge as _0x559a23,toDisposable as _0x1b55f3}from'@univerjs/core';const g=0.0001;function _(_0x8da05d){return{'x':_0x8da05d['x'],'y':_0x8da05d['y']};}function v(_0x1d0d05){const _0x5393b1=_0x548c;return{..._0x1d0d05,'in':_0x1d0d05['in']?_(_0x1d0d05['in']):void 0x0,'out':_0x1d0d05['out']?_(_0x1d0d05[_0x5393b1(0x18d)]):void 0x0};}function y(_0x493c0a){const _0x21e58f=_0x548c;return{'kind':_0x21e58f(0x172),'closed':_0x493c0a[_0x21e58f(0x146)],'anchors':_0x493c0a[_0x21e58f(0x17f)]['map'](v)};}function b(_0x368b0c,_0x5f2eee,_0x554830){return{'x':_0x368b0c['x']+(_0x5f2eee['x']-_0x368b0c['x'])*_0x554830,'y':_0x368b0c['y']+(_0x5f2eee['y']-_0x368b0c['y'])*_0x554830};}function x(_0x226ffa,_0x2a915b){const _0x38b493=_0x548c;return Math[_0x38b493(0x178)](_0x226ffa['x']-_0x2a915b['x'],_0x226ffa['y']-_0x2a915b['y']);}function S(_0x4909d0){const _0x44a78d=_0x548c;let _0x3ec52c=Math[_0x44a78d(0x178)](_0x4909d0['x'],_0x4909d0['y']);return _0x3ec52c<g?{'x':0x1,'y':0x0}:{'x':_0x4909d0['x']/_0x3ec52c,'y':_0x4909d0['y']/_0x3ec52c};}function C(_0x5e6801,_0x2090c3,_0x28f75f=x(_0x5e6801,_0x2090c3)){let _0xbd8e8=S({'x':_0x5e6801['x']-_0x2090c3['x'],'y':_0x5e6801['y']-_0x2090c3['y']});return{'x':_0x5e6801['x']+_0xbd8e8['x']*_0x28f75f,'y':_0x5e6801['y']+_0xbd8e8['y']*_0x28f75f};}function w(_0x2b0719,_0x26f686){const _0x1150dc=_0x548c;let {anchors:_0x38801a}=_0x2b0719;return _0x38801a[_0x1150dc(0x165)]<0x2||_0x26f686<0x0?null:_0x26f686<_0x38801a['length']-0x1?{'startIndex':_0x26f686,'endIndex':_0x26f686+0x1,'start':_0x38801a[_0x26f686],'end':_0x38801a[_0x26f686+0x1]}:_0x2b0719['closed']&&_0x26f686===_0x38801a['length']-0x1?{'startIndex':_0x38801a[_0x1150dc(0x165)]-0x1,'endIndex':0x0,'start':_0x38801a[_0x38801a[_0x1150dc(0x165)]-0x1],'end':_0x38801a[0x0]}:null;}function T(_0x32ce7e,_0x312723){const _0x4aed7c=_0x548c;let _0x33975a=w(_0x32ce7e,_0x312723);return _0x33975a?[_0x33975a[_0x4aed7c(0x185)],_0x33975a[_0x4aed7c(0x185)]['out']??_0x33975a[_0x4aed7c(0x185)],_0x33975a[_0x4aed7c(0x186)]['in']??_0x33975a[_0x4aed7c(0x186)],_0x33975a[_0x4aed7c(0x186)]]:null;}function te(_0x250f32,_0x1d5e16){const _0x34e2a7=_0x548c;return _0x1d5e16===_0x34e2a7(0x195)?_0x250f32:_0x250f32[_0x1d5e16]??null;}function E(_0x417def,_0x56c3e1,_0x1b68bd){const _0x5b2735=_0x548c;return _0x1b68bd===_0x5b2735(0x195)||_0x417def[_0x5b2735(0x146)]?!0x0:_0x1b68bd==='in'?_0x56c3e1>0x0:_0x56c3e1<_0x417def[_0x5b2735(0x17f)][_0x5b2735(0x165)]-0x1;}function D(_0x5e49e2,_0x1ce22d){let [_0x120582,_0x6e9768,_0x2ec6d6,_0x85aeef]=_0x5e49e2,_0x134cfe=b(_0x120582,_0x6e9768,_0x1ce22d),_0x32b9dd=b(_0x6e9768,_0x2ec6d6,_0x1ce22d),_0x49ae71=b(_0x2ec6d6,_0x85aeef,_0x1ce22d);return b(b(_0x134cfe,_0x32b9dd,_0x1ce22d),b(_0x32b9dd,_0x49ae71,_0x1ce22d),_0x1ce22d);}function ne(_0x54093a,_0x2e9e54){let [_0x23f675,_0x2b04c7,_0x2f3e70,_0x888c]=_0x54093a,_0x12de6d=b(_0x23f675,_0x2b04c7,_0x2e9e54),_0x339c01=b(_0x2b04c7,_0x2f3e70,_0x2e9e54),_0x2e16b1=b(_0x2f3e70,_0x888c,_0x2e9e54),_0x37d758=b(_0x12de6d,_0x339c01,_0x2e9e54),_0x3289be=b(_0x339c01,_0x2e16b1,_0x2e9e54),_0x21f299=b(_0x37d758,_0x3289be,_0x2e9e54);return{'left':[_0x23f675,_0x12de6d,_0x37d758,_0x21f299],'right':[_0x21f299,_0x3289be,_0x2e16b1,_0x888c]};}function O(_0x32c775,_0x31fa01,_0x3a2385){const _0x49462d=_0x548c;let _0x5ecf04=_0x3a2385['x']-_0x31fa01['x'],_0x50e01f=_0x3a2385['y']-_0x31fa01['y'],_0x1a6823=_0x5ecf04*_0x5ecf04+_0x50e01f*_0x50e01f,_0x175b4a=_0x1a6823<=g?0x0:Math[_0x49462d(0x157)](0x0,Math['min'](0x1,((_0x32c775['x']-_0x31fa01['x'])*_0x5ecf04+(_0x32c775['y']-_0x31fa01['y'])*_0x50e01f)/_0x1a6823)),_0x247b7d={'x':_0x31fa01['x']+_0x5ecf04*_0x175b4a,'y':_0x31fa01['y']+_0x50e01f*_0x175b4a};return{'point':_0x247b7d,'ratio':_0x175b4a,'distance':x(_0x32c775,_0x247b7d)};}function re(_0x4f9b6f,_0x5b5742,_0xe7b1ee){return O(_0x4f9b6f,_0x5b5742,_0xe7b1ee)['distance']**0x2;}function k(_0x1a1e9a,_0x3a19ad){const _0x347887=_0x548c;if(_0x1a1e9a[_0x347887(0x165)]<=0x2)return _0x1a1e9a[_0x347887(0x149)](_);let _0x3dcf5d=0x0,_0xaec2c6=0x0,_0x2795b8=_0x1a1e9a[0x0],_0xbd0f54=_0x1a1e9a[_0x1a1e9a[_0x347887(0x165)]-0x1],_0x1ec325=_0x3a19ad*_0x3a19ad;for(let _0x2d56a7=0x1;_0x2d56a7<_0x1a1e9a['length']-0x1;_0x2d56a7++){let _0x32917f=re(_0x1a1e9a[_0x2d56a7],_0x2795b8,_0xbd0f54);_0x32917f>_0x3dcf5d&&(_0x3dcf5d=_0x32917f,_0xaec2c6=_0x2d56a7);}if(_0x3dcf5d<=_0x1ec325)return[_(_0x2795b8),_(_0xbd0f54)];let _0x22b84a=k(_0x1a1e9a[_0x347887(0x175)](0x0,_0xaec2c6+0x1),_0x3a19ad),_0x3656be=k(_0x1a1e9a[_0x347887(0x175)](_0xaec2c6),_0x3a19ad);return[..._0x22b84a[_0x347887(0x175)](0x0,-0x1),..._0x3656be];}function ie(_0x4577a9,_0x3d8702){let _0x2fbc7e=_0x4577a9[_0x3d8702],_0x532d3b=_0x4577a9[_0x3d8702+0x1],_0x2164da=_0x4577a9[_0x3d8702-0x1]??_0x2fbc7e;return{'x':_0x2fbc7e['x']+(_0x532d3b['x']-_0x2164da['x'])/0x6,'y':_0x2fbc7e['y']+(_0x532d3b['y']-_0x2164da['y'])/0x6};}function A(_0x1a7729,_0xacdd3e){let _0x181b61=_0x1a7729[_0xacdd3e],_0x21c90d=_0x1a7729[_0xacdd3e-0x1],_0x4d03c2=_0x1a7729[_0xacdd3e+0x1]??_0x181b61;return{'x':_0x181b61['x']-(_0x4d03c2['x']-_0x21c90d['x'])/0x6,'y':_0x181b61['y']-(_0x4d03c2['y']-_0x21c90d['y'])/0x6};}function j(_0x3e5c27,_0x52ec0d){const _0x3af150=_0x548c;let _0x70f7c3=_0x3e5c27[_0x3af150(0x17f)][_0x52ec0d],_0x8bb52=_0x3e5c27[_0x3af150(0x17f)][_0x52ec0d-0x1]??(_0x3e5c27[_0x3af150(0x146)]?_0x3e5c27[_0x3af150(0x17f)][_0x3e5c27[_0x3af150(0x17f)]['length']-0x1]:null),_0x4e0a47=_0x3e5c27[_0x3af150(0x17f)][_0x52ec0d+0x1]??(_0x3e5c27[_0x3af150(0x146)]?_0x3e5c27['anchors'][0x0]:null),_0x595882=_0x8bb52&&_0x4e0a47?S({'x':_0x4e0a47['x']-_0x8bb52['x'],'y':_0x4e0a47['y']-_0x8bb52['y']}):_0x4e0a47?S({'x':_0x4e0a47['x']-_0x70f7c3['x'],'y':_0x4e0a47['y']-_0x70f7c3['y']}):_0x8bb52?S({'x':_0x70f7c3['x']-_0x8bb52['x'],'y':_0x70f7c3['y']-_0x8bb52['y']}):{'x':0x1,'y':0x0},_0x2a59ae=_0x8bb52&&_0x4e0a47?Math[_0x3af150(0x157)](0x32,x(_0x8bb52,_0x4e0a47)/0x4):0x32;return{'in':{'x':_0x70f7c3['x']-_0x595882['x']*_0x2a59ae,'y':_0x70f7c3['y']-_0x595882['y']*_0x2a59ae},'out':{'x':_0x70f7c3['x']+_0x595882['x']*_0x2a59ae,'y':_0x70f7c3['y']+_0x595882['y']*_0x2a59ae}};}function M(_0x1f61e4,_0x21f8b8){const _0x116f4b=_0x548c;let _0x517cc0=_0x1f61e4[_0x21f8b8],_0x13a71b=_0x21f8b8==='in'?_0x116f4b(0x18d):'in',_0x18be6d=_0x1f61e4[_0x13a71b];_0x517cc0&&(_0x1f61e4[_0x116f4b(0x13b)]===_0x116f4b(0x142)?_0x1f61e4[_0x13a71b]=C(_0x1f61e4,_0x517cc0):_0x1f61e4['pointType']===_0x116f4b(0x15e)&&(_0x1f61e4[_0x13a71b]=C(_0x1f61e4,_0x517cc0,_0x18be6d?x(_0x1f61e4,_0x18be6d):x(_0x1f61e4,_0x517cc0))));}function ae(_0x283629,_0x12a543){const _0x103812=_0x548c;let _0x293d86=y(_0x283629);return!_0x12a543||_0x293d86['closed']||_0x293d86[_0x103812(0x17f)]['length']===0x0||_0x293d86[_0x103812(0x17f)][_0x103812(0x18e)]({'id':_0x103812(0x151),'x':_0x12a543['x'],'y':_0x12a543['y'],'pointType':_0x103812(0x145)}),_0x293d86;}function oe(_0xc3fff6,_0x3f0fe3={}){const _0x3a4925=_0x548c;let _0x247b24=Math[_0x3a4925(0x157)](0x0,_0x3f0fe3[_0x3a4925(0x14f)]??Math[_0x3a4925(0x157)](0x4,_0xc3fff6[_0x3a4925(0x16a)]*0.35)),_0x3adc5d=_0x3f0fe3[_0x3a4925(0x160)]??(_0x5ecf0a=>_0x3a4925(0x190)+_0x5ecf0a),_0x4a7f62=k(_0xc3fff6['points'],_0x247b24),_0x306b17=_0x4a7f62[_0x3a4925(0x149)]((_0x45fe32,_0x392568)=>({'id':_0x3adc5d(_0x392568),'x':_0x45fe32['x'],'y':_0x45fe32['y'],'pointType':_0x3a4925(0x188)}));for(let _0x336e5e=0x0;_0x336e5e<_0x306b17[_0x3a4925(0x165)]-0x1;_0x336e5e++)_0x306b17[_0x336e5e][_0x3a4925(0x18d)]=ie(_0x4a7f62,_0x336e5e),_0x306b17[_0x336e5e+0x1]['in']=A(_0x4a7f62,_0x336e5e+0x1);return{'kind':_0x3a4925(0x172),'closed':!0x1,'anchors':_0x306b17};}function se(_0x246781,_0x1aeabc,_0x25c766){const _0xaa052a=_0x548c;let _0x3e9c9b=null,_0x2e9442=[_0xaa052a(0x195),'in','out'];return _0x246781[_0xaa052a(0x17f)][_0xaa052a(0x168)]((_0x3a7216,_0x5d13e5)=>{const _0x15c0f2=_0xaa052a;_0x2e9442[_0x15c0f2(0x168)](_0x1b1acb=>{if(!E(_0x246781,_0x5d13e5,_0x1b1acb))return;let _0x514467=te(_0x3a7216,_0x1b1acb);if(!_0x514467)return;let _0x4a76e5=x(_0x1aeabc,_0x514467);_0x4a76e5>_0x25c766||_0x3e9c9b&&_0x4a76e5>=_0x3e9c9b['distance']||(_0x3e9c9b={'handle':{'kind':_0x1b1acb,'anchorId':_0x3a7216['id']},'point':_(_0x514467),'distance':_0x4a76e5});});}),_0x3e9c9b;}function ce(_0x223c24,_0x229e83,_0x43d975){const _0x2e3e9e=_0x548c;let _0x17cf67=null,_0x1757e3=_0x223c24['closed']?_0x223c24[_0x2e3e9e(0x17f)][_0x2e3e9e(0x165)]:Math[_0x2e3e9e(0x157)](0x0,_0x223c24[_0x2e3e9e(0x17f)]['length']-0x1);for(let _0x3b7a3f=0x0;_0x3b7a3f<_0x1757e3;_0x3b7a3f++){let _0x8b55a3=T(_0x223c24,_0x3b7a3f);if(!_0x8b55a3)continue;let _0x3708d8=D(_0x8b55a3,0x0);for(let _0x33ce26=0x1;_0x33ce26<=0x20;_0x33ce26++){let _0x1dcf86=D(_0x8b55a3,_0x33ce26/0x20),_0x4c1e34=O(_0x229e83,_0x3708d8,_0x1dcf86),_0x28da0d=(_0x33ce26-0x1+_0x4c1e34[_0x2e3e9e(0x18a)])/0x20;(!_0x17cf67||_0x4c1e34['distance']<_0x17cf67[_0x2e3e9e(0x197)])&&(_0x17cf67={'segmentIndex':_0x3b7a3f,'t':_0x28da0d,'point':_0x4c1e34['point'],'distance':_0x4c1e34[_0x2e3e9e(0x197)]}),_0x3708d8=_0x1dcf86;}}return _0x17cf67&&_0x17cf67[_0x2e3e9e(0x197)]<=_0x43d975?_0x17cf67:null;}function le(_0x2771d7,_0x3d3bdc,_0x4cc051){const _0x4c7e51=_0x548c;let _0x3198f6=y(_0x2771d7),_0x23e912=w(_0x3198f6,_0x3d3bdc[_0x4c7e51(0x194)]),_0x43e6d7=T(_0x3198f6,_0x3d3bdc[_0x4c7e51(0x194)]);if(!_0x23e912||!_0x43e6d7)return _0x3198f6;let _0x560d49=ne(_0x43e6d7,Math[_0x4c7e51(0x157)](0x0,Math[_0x4c7e51(0x17a)](0x1,_0x3d3bdc['t']))),_0x5e83cd={'id':_0x4cc051(),'x':_0x560d49[_0x4c7e51(0x15f)][0x3]['x'],'y':_0x560d49[_0x4c7e51(0x15f)][0x3]['y'],'in':_(_0x560d49[_0x4c7e51(0x15f)][0x2]),'out':_(_0x560d49[_0x4c7e51(0x16c)][0x1]),'pointType':_0x4c7e51(0x188)};return _0x3198f6[_0x4c7e51(0x17f)][_0x23e912[_0x4c7e51(0x143)]][_0x4c7e51(0x18d)]=_(_0x560d49[_0x4c7e51(0x15f)][0x1]),_0x3198f6[_0x4c7e51(0x17f)][_0x23e912[_0x4c7e51(0x153)]]['in']=_(_0x560d49[_0x4c7e51(0x16c)][0x2]),_0x3198f6[_0x4c7e51(0x17f)]['splice'](_0x23e912[_0x4c7e51(0x143)]+0x1,0x0,_0x5e83cd),_0x3198f6;}function ue(_0x53f3cb,_0x5950f8){const _0xa58fa0=_0x548c;let _0x3bafca=y(_0x53f3cb);return _0x3bafca[_0xa58fa0(0x17f)]=_0x3bafca[_0xa58fa0(0x17f)]['filter'](_0x5d6072=>_0x5d6072['id']!==_0x5950f8),_0x3bafca[_0xa58fa0(0x146)]&&_0x3bafca[_0xa58fa0(0x17f)]['length']<0x3&&(_0x3bafca[_0xa58fa0(0x146)]=!0x1),_0x3bafca;}function N(_0xd82cb3,_0x30cea1,_0x19a8cb){const _0x1f78ec=_0x548c;let _0x25ab49=y(_0xd82cb3),_0x4a842f=_0x25ab49[_0x1f78ec(0x17f)][_0x1f78ec(0x167)](_0x3a276f=>_0x3a276f['id']===_0x30cea1),_0x342618=_0x25ab49[_0x1f78ec(0x17f)][_0x4a842f];if(!_0x342618)return _0x25ab49;if(_0x342618[_0x1f78ec(0x13b)]=_0x19a8cb,_0x19a8cb===_0x1f78ec(0x145))return delete _0x342618['in'],delete _0x342618[_0x1f78ec(0x18d)],_0x25ab49;let _0x76bc40=j(_0x25ab49,_0x4a842f);if(_0x342618['in']=_0x342618['in']?_(_0x342618['in']):_0x76bc40['in'],_0x342618[_0x1f78ec(0x18d)]=_0x342618[_0x1f78ec(0x18d)]?_(_0x342618['out']):_0x76bc40[_0x1f78ec(0x18d)],_0x19a8cb==='symmetric'){let _0x162ddb=Math['max'](x(_0x342618,_0x342618['in']),x(_0x342618,_0x342618[_0x1f78ec(0x18d)]),0x32),_0x22a0d9=S({'x':_0x342618[_0x1f78ec(0x18d)]['x']-_0x342618['x'],'y':_0x342618[_0x1f78ec(0x18d)]['y']-_0x342618['y']});_0x342618[_0x1f78ec(0x18d)]={'x':_0x342618['x']+_0x22a0d9['x']*_0x162ddb,'y':_0x342618['y']+_0x22a0d9['y']*_0x162ddb},_0x342618['in']={'x':_0x342618['x']-_0x22a0d9['x']*_0x162ddb,'y':_0x342618['y']-_0x22a0d9['y']*_0x162ddb};}else _0x19a8cb===_0x1f78ec(0x15e)&&M(_0x342618,'out');return _0x25ab49;}function P(_0x5e9f65,_0x3cfb5c){const _0x20a8ed=_0x548c;let _0x501687=_0x5e9f65[_0x20a8ed(0x17f)][_0x20a8ed(0x166)](_0x3d78e3=>_0x3d78e3['id']===_0x3cfb5c),_0x32f724=(_0x501687==null?void 0x0:_0x501687[_0x20a8ed(0x13b)])??_0x20a8ed(0x145);return N(_0x5e9f65,_0x3cfb5c,_0x32f724===_0x20a8ed(0x145)?_0x20a8ed(0x15e):_0x32f724===_0x20a8ed(0x15e)?_0x20a8ed(0x142):_0x32f724===_0x20a8ed(0x142)?'free':'corner');}function F(_0x251de9,_0x57868a,_0x530db9){const _0x5296f1=_0x548c;let _0x38059b=y(_0x251de9),_0x331f95=_0x38059b[_0x5296f1(0x17f)]['find'](_0x1670a8=>_0x1670a8['id']===_0x57868a[_0x5296f1(0x16f)]);if(!_0x331f95)return _0x38059b;if(_0x57868a[_0x5296f1(0x177)]===_0x5296f1(0x195)){let _0x1dd4f6={'x':_0x530db9['x']-_0x331f95['x'],'y':_0x530db9['y']-_0x331f95['y']};return _0x331f95['x']=_0x530db9['x'],_0x331f95['y']=_0x530db9['y'],_0x331f95['in']&&={'x':_0x331f95['in']['x']+_0x1dd4f6['x'],'y':_0x331f95['in']['y']+_0x1dd4f6['y']},_0x331f95[_0x5296f1(0x18d)]&&={'x':_0x331f95[_0x5296f1(0x18d)]['x']+_0x1dd4f6['x'],'y':_0x331f95['out']['y']+_0x1dd4f6['y']},_0x38059b;}return _0x331f95[_0x57868a[_0x5296f1(0x177)]]=_(_0x530db9),_0x331f95[_0x5296f1(0x13b)]==='corner'&&(_0x331f95[_0x5296f1(0x13b)]='free'),M(_0x331f95,_0x57868a[_0x5296f1(0x177)]),_0x38059b;}const I=1e-9;function _0x548c(_0x463389,_0x3c97e9){_0x463389=_0x463389-0x139;const _0x175f2e=_0x175f();let _0x548c52=_0x175f2e[_0x463389];return _0x548c52;}function _0x175f(){const _0xcb906e=['1865rTHrNa','distance','string','decorate','toPrimitive','beginInkMode','pointType','onStarting','abs','1886360hiTzRL','fillColor','tool','2496546TYmiXy','symmetric','startIndex','symbol','corner','closed','278470sLxwXY','12fSYZiO','map','norm','registerCommand','_adapters','sqrt','function','tolerance','defineProperty','__ink-preview-anchor__','_config','endIndex','createCustomShape','object','splice','max','NoFill','#f54a45','join','ink.host-adapter.service','iterator','call','smooth','left','createId','registerAdapter','UNIVER_INK_PLUGIN','prototype','top','length','find','findIndex','forEach','setConfig','width','5959569COYMVB','right','Round','packageName','anchorId','ink.config','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pen','SolidLine','_injector','slice','points','kind','hypot','disposeWithMe','min','pluginName','none','add','opacity','anchors','height','round','994Pjtwmd','@univerjs-pro/ink','color','start','end','2553741QZQMIW','free','getOwnPropertyDescriptor','ratio','33cXJBjf','_configService','out','push','get','ink-centerline-','342FLcMXg','106008SuWSkL','constructor','segmentIndex','anchor'];_0x175f=function(){return _0xcb906e;};return _0x175f();}function L(_0x3912cf){const _0x462100=_0x548c;let _0x24cbbb=Math[_0x462100(0x181)](_0x3912cf*0x2710)/0x2710;return Object['is'](_0x24cbbb,-0x0)?'0':String(_0x24cbbb);}function R(_0x79b424){return L(_0x79b424['x'])+'\x20'+L(_0x79b424['y']);}function z(_0x448a17,_0x1df2fc){return{'x':_0x448a17['x']-_0x1df2fc['x'],'y':_0x448a17['y']-_0x1df2fc['y']};}function B(_0x59f00b,_0x40eb63,_0x366ac0,_0x463f32,_0x5ee7a3){let _0x1137e9=0x1-_0x5ee7a3;return{'x':_0x1137e9*_0x1137e9*_0x1137e9*_0x59f00b['x']+0x3*_0x1137e9*_0x1137e9*_0x5ee7a3*_0x40eb63['x']+0x3*_0x1137e9*_0x5ee7a3*_0x5ee7a3*_0x366ac0['x']+_0x5ee7a3*_0x5ee7a3*_0x5ee7a3*_0x463f32['x'],'y':_0x1137e9*_0x1137e9*_0x1137e9*_0x59f00b['y']+0x3*_0x1137e9*_0x1137e9*_0x5ee7a3*_0x40eb63['y']+0x3*_0x1137e9*_0x5ee7a3*_0x5ee7a3*_0x366ac0['y']+_0x5ee7a3*_0x5ee7a3*_0x5ee7a3*_0x463f32['y']};}function V(_0x55ecb5,_0x1b0abf,_0x4a3076,_0x21632e){const _0x53b32f=_0x548c;let _0x40da36=-_0x55ecb5+0x3*_0x1b0abf-0x3*_0x4a3076+_0x21632e,_0x3c137d=0x3*_0x55ecb5-0x6*_0x1b0abf+0x3*_0x4a3076,_0x5d1ba2=-0x3*_0x55ecb5+0x3*_0x1b0abf,_0x258063=[];if(Math['abs'](_0x40da36)<I){if(Math[_0x53b32f(0x13d)](_0x3c137d)<I)return _0x258063;let _0x7c9215=-_0x5d1ba2/(0x2*_0x3c137d);return _0x7c9215>0x0&&_0x7c9215<0x1&&_0x258063[_0x53b32f(0x18e)](_0x7c9215),_0x258063;}let _0x33755f=_0x3c137d*_0x3c137d-0x3*_0x40da36*_0x5d1ba2;if(_0x33755f<0x0)return _0x258063;let _0x338337=Math[_0x53b32f(0x14d)](Math[_0x53b32f(0x157)](0x0,_0x33755f)),_0x254ad8=(-_0x3c137d+_0x338337)/(0x3*_0x40da36),_0x2c3f47=(-_0x3c137d-_0x338337)/(0x3*_0x40da36);return _0x254ad8>0x0&&_0x254ad8<0x1&&_0x258063['push'](_0x254ad8),_0x2c3f47>0x0&&_0x2c3f47<0x1&&Math[_0x53b32f(0x13d)](_0x2c3f47-_0x254ad8)>I&&_0x258063[_0x53b32f(0x18e)](_0x2c3f47),_0x258063;}function H(_0x2107e3,_0x3f09f4,_0x53149f,_0x41a2c8,_0x138f12){const _0x1c1244=_0x548c;_0x2107e3[_0x1c1244(0x18e)](_0x3f09f4,_0x138f12),new Set([...V(_0x3f09f4['x'],_0x53149f['x'],_0x41a2c8['x'],_0x138f12['x']),...V(_0x3f09f4['y'],_0x53149f['y'],_0x41a2c8['y'],_0x138f12['y'])])[_0x1c1244(0x168)](_0x435656=>{const _0x131b96=_0x1c1244;_0x2107e3[_0x131b96(0x18e)](B(_0x3f09f4,_0x53149f,_0x41a2c8,_0x138f12,_0x435656));});}function U(_0xa9c14){const _0x310e72=_0x548c;let _0x4433c5=_0xa9c14[_0x310e72(0x17f)];if(_0x4433c5[_0x310e72(0x165)]<=0x1)return _0x4433c5;let _0x57be9e=[];for(let _0x505498=0x1;_0x505498<_0x4433c5['length'];_0x505498++){let _0x5bcb82=_0x4433c5[_0x505498-0x1],_0x54a81a=_0x4433c5[_0x505498];H(_0x57be9e,_0x5bcb82,_0x5bcb82[_0x310e72(0x18d)]??_0x5bcb82,_0x54a81a['in']??_0x54a81a,_0x54a81a);}if(_0xa9c14[_0x310e72(0x146)]&&_0x4433c5[_0x310e72(0x165)]>0x1){let _0x4299e3=_0x4433c5[_0x4433c5[_0x310e72(0x165)]-0x1],_0x429468=_0x4433c5[0x0];H(_0x57be9e,_0x4299e3,_0x4299e3[_0x310e72(0x18d)]??_0x4299e3,_0x429468['in']??_0x429468,_0x429468);}return _0x57be9e;}function de(_0x12f00f){const _0x278160=_0x548c;let _0x14a5f9=_0x12f00f[_0x278160(0x176)];if(_0x14a5f9[_0x278160(0x165)]<=0x1)return _0x14a5f9;let _0x1a19ea=[];for(let _0x4cf4ca=0x0;_0x4cf4ca<_0x14a5f9['length']-0x1;_0x4cf4ca++){let _0x1e1991=_0x14a5f9[_0x4cf4ca],_0x2a7663=_0x14a5f9[_0x4cf4ca+0x1],_0x10eca0=_0x14a5f9[_0x4cf4ca-0x1]??_0x1e1991,_0x2182da=_0x14a5f9[_0x4cf4ca+0x2]??_0x2a7663;H(_0x1a19ea,_0x1e1991,{'x':_0x1e1991['x']+(_0x2a7663['x']-_0x10eca0['x'])/0x6,'y':_0x1e1991['y']+(_0x2a7663['y']-_0x10eca0['y'])/0x6},{'x':_0x2a7663['x']-(_0x2182da['x']-_0x1e1991['x'])/0x6,'y':_0x2a7663['y']-(_0x2182da['y']-_0x1e1991['y'])/0x6},_0x2a7663);}return _0x1a19ea;}function fe(_0x312951){const _0x12f37d=_0x548c;return _0x312951[_0x12f37d(0x177)]===_0x12f37d(0x172)?U(_0x312951):de(_0x312951);}function W(_0x269ab9){const _0x19db01=_0x548c;let _0x3f6f12=Math[_0x19db01(0x181)](_0x269ab9*0x2710)/0x2710;return Object['is'](_0x3f6f12,-0x0)?0x0:_0x3f6f12;}function G(_0x4cc0f5){const _0x1ffae0=_0x548c;let _0x2c35bd=fe(_0x4cc0f5);if(_0x2c35bd[_0x1ffae0(0x165)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x42336a=Math[_0x1ffae0(0x17a)](..._0x2c35bd['map'](_0x46f2c4=>_0x46f2c4['x'])),_0x37f97d=Math[_0x1ffae0(0x17a)](..._0x2c35bd[_0x1ffae0(0x149)](_0x404e7a=>_0x404e7a['y'])),_0x418846=Math[_0x1ffae0(0x157)](..._0x2c35bd[_0x1ffae0(0x149)](_0x132e24=>_0x132e24['x'])),_0x49881c=Math[_0x1ffae0(0x157)](..._0x2c35bd[_0x1ffae0(0x149)](_0x271961=>_0x271961['y']));return{'left':W(_0x42336a),'top':W(_0x37f97d),'width':W(Math[_0x1ffae0(0x157)](0x1,_0x418846-_0x42336a)),'height':W(Math[_0x1ffae0(0x157)](0x1,_0x49881c-_0x37f97d))};}function pe(_0x4d83ad,_0x16e7ed){const _0x4feee1=_0x548c;let _0x27ba28=_0x4d83ad['anchors'];if(_0x27ba28['length']===0x0)return'';let _0x3aade1=['M\x20'+R(z(_0x27ba28[0x0],_0x16e7ed))];for(let _0x13f5d3=0x1;_0x13f5d3<_0x27ba28[_0x4feee1(0x165)];_0x13f5d3++){let _0x47f92d=_0x27ba28[_0x13f5d3-0x1],_0x4e2cbc=_0x27ba28[_0x13f5d3],_0x304b6a=_0x47f92d['out']??_0x47f92d,_0x27457a=_0x4e2cbc['in']??_0x4e2cbc;_0x3aade1['push']('C\x20'+R(z(_0x304b6a,_0x16e7ed))+'\x20'+R(z(_0x27457a,_0x16e7ed))+'\x20'+R(z(_0x4e2cbc,_0x16e7ed)));}if(_0x4d83ad[_0x4feee1(0x146)]&&_0x27ba28['length']>0x1){let _0x59a6b5=_0x27ba28[_0x27ba28[_0x4feee1(0x165)]-0x1],_0x208fbb=_0x27ba28[0x0],_0x1c842b=_0x59a6b5[_0x4feee1(0x18d)]??_0x59a6b5,_0x2207ef=_0x208fbb['in']??_0x208fbb;_0x3aade1[_0x4feee1(0x18e)]('C\x20'+R(z(_0x1c842b,_0x16e7ed))+'\x20'+R(z(_0x2207ef,_0x16e7ed))+'\x20'+R(z(_0x208fbb,_0x16e7ed))),_0x3aade1[_0x4feee1(0x18e)]('Z');}return _0x3aade1[_0x4feee1(0x15a)]('\x20');}function me(_0x670f0d,_0x21a73d){const _0x123db2=_0x548c;let _0xbe8f80=_0x670f0d[_0x123db2(0x176)]['map'](_0x185d26=>z(_0x185d26,_0x21a73d));if(_0xbe8f80['length']===0x0)return'';if(_0xbe8f80[_0x123db2(0x165)]===0x1)return'M\x20'+R(_0xbe8f80[0x0]);let _0x471afa=['M\x20'+R(_0xbe8f80[0x0])];for(let _0x512db5=0x0;_0x512db5<_0xbe8f80[_0x123db2(0x165)]-0x1;_0x512db5++){let _0x4ea6a5=_0xbe8f80[_0x512db5],_0x5c215d=_0xbe8f80[_0x512db5+0x1],_0x273b73=_0xbe8f80[_0x512db5-0x1]??_0x4ea6a5,_0x42116e=_0xbe8f80[_0x512db5+0x2]??_0x5c215d,_0x56d354={'x':_0x4ea6a5['x']+(_0x5c215d['x']-_0x273b73['x'])/0x6,'y':_0x4ea6a5['y']+(_0x5c215d['y']-_0x273b73['y'])/0x6},_0x408e2e={'x':_0x5c215d['x']-(_0x42116e['x']-_0x4ea6a5['x'])/0x6,'y':_0x5c215d['y']-(_0x42116e['y']-_0x4ea6a5['y'])/0x6};_0x471afa[_0x123db2(0x18e)]('C\x20'+R(_0x56d354)+'\x20'+R(_0x408e2e)+'\x20'+R(_0x5c215d));}return _0x471afa[_0x123db2(0x15a)]('\x20');}function he(_0x5997b6,_0x25a7f0){const _0x572710=_0x548c;return _0x5997b6[_0x572710(0x177)]===_0x572710(0x172)?pe(_0x5997b6,_0x25a7f0):me(_0x5997b6,_0x25a7f0);}function ge(_0x1683c5,_0x4c7dd2){const _0x3cb34b=_0x548c;return _0x4c7dd2!=null&&_0x4c7dd2['color']?_0x4c7dd2[_0x3cb34b(0x184)]:_0x1683c5[_0x3cb34b(0x177)]===_0x3cb34b(0x172)?_0x3cb34b(0x159):_0x1683c5[_0x3cb34b(0x184)];}function _e(_0x4da993,_0x51933c){const _0x5b8700=_0x548c;return(_0x51933c==null?void 0x0:_0x51933c[_0x5b8700(0x16a)])===void 0x0?_0x4da993['kind']==='pen'?0x2:_0x4da993[_0x5b8700(0x16a)]:_0x51933c[_0x5b8700(0x16a)];}function ve(_0x13be21,_0x461fdb){const _0x236d36=_0x548c;return(_0x461fdb==null?void 0x0:_0x461fdb[_0x236d36(0x17e)])===void 0x0?_0x13be21['kind']===_0x236d36(0x172)?void 0x0:_0x13be21['opacity']:_0x461fdb['opacity'];}function ye(_0x2f58d3,_0x1f0707){const _0x5907c9=_0x548c;let _0x46e547=G(_0x2f58d3),_0x5e01e0=he(_0x2f58d3,{'x':_0x46e547[_0x5907c9(0x15f)],'y':_0x46e547[_0x5907c9(0x164)]}),_0x56d186=_0x2f58d3[_0x5907c9(0x177)]===_0x5907c9(0x172)&&_0x2f58d3[_0x5907c9(0x146)],_0x7b75f1=_0x1f0707==null?void 0x0:_0x1f0707[_0x5907c9(0x13f)];return{'shapeType':_0x83d0f6['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x46e547['width'],'h':_0x46e547[_0x5907c9(0x180)],'fill':_0x56d186?_0x5907c9(0x14a):_0x5907c9(0x17c),'stroke':!0x0,'data':_0x5e01e0,'dataArray':be(_0x2f58d3,{'x':_0x46e547['left'],'y':_0x46e547[_0x5907c9(0x164)]})}]},'fill':_0x56d186&&_0x7b75f1?{'color':_0x7b75f1,'fillType':_0x24531d['SolidFill']}:{'fillType':_0x24531d[_0x5907c9(0x158)]},'stroke':{'color':ge(_0x2f58d3,_0x1f0707),'width':_e(_0x2f58d3,_0x1f0707),'opacity':ve(_0x2f58d3,_0x1f0707),'lineStrokeType':_0x49787e[_0x5907c9(0x173)],'capType':_0x1690c1[_0x5907c9(0x16d)],'lineJoinType':_0x163cc1[_0x5907c9(0x16d)]}};}function K(_0xf19315,_0x49c5f9){return{'x':_0xf19315['x']-_0x49c5f9['x'],'y':_0xf19315['y']-_0x49c5f9['y']};}function be(_0x48bea4,_0x4d03fd){const _0x389b73=_0x548c;if(_0x48bea4['kind']===_0x389b73(0x172)){let _0x3b6b85=_0x48bea4['anchors'];if(_0x3b6b85[_0x389b73(0x165)]===0x0)return[];let _0x1d1927=K(_0x3b6b85[0x0],_0x4d03fd),_0x3dff4c=[{'command':'M','points':[_0x1d1927['x'],_0x1d1927['y']]}];for(let _0x3c76b9=0x1;_0x3c76b9<_0x3b6b85[_0x389b73(0x165)];_0x3c76b9++){let _0x50c103=_0x3b6b85[_0x3c76b9-0x1],_0x31f445=_0x3b6b85[_0x3c76b9],_0x324dd6=K(_0x50c103[_0x389b73(0x18d)]??_0x50c103,_0x4d03fd),_0x433463=K(_0x31f445['in']??_0x31f445,_0x4d03fd),_0x2e2f85=K(_0x31f445,_0x4d03fd);_0x3dff4c['push']({'command':'C','points':[_0x324dd6['x'],_0x324dd6['y'],_0x433463['x'],_0x433463['y'],_0x2e2f85['x'],_0x2e2f85['y']]});}if(_0x48bea4[_0x389b73(0x146)]&&_0x3b6b85[_0x389b73(0x165)]>0x1){let _0x430726=_0x3b6b85[_0x3b6b85['length']-0x1],_0x4b41eb=_0x3b6b85[0x0],_0x558645=K(_0x430726[_0x389b73(0x18d)]??_0x430726,_0x4d03fd),_0x5471ba=K(_0x4b41eb['in']??_0x4b41eb,_0x4d03fd),_0x1cbf33=K(_0x4b41eb,_0x4d03fd);_0x3dff4c[_0x389b73(0x18e)]({'command':'C','points':[_0x558645['x'],_0x558645['y'],_0x5471ba['x'],_0x5471ba['y'],_0x1cbf33['x'],_0x1cbf33['y']]}),_0x3dff4c['push']({'command':'z','points':[]});}return _0x3dff4c;}let _0x3f44b5=_0x48bea4[_0x389b73(0x176)][_0x389b73(0x149)](_0x35ad4c=>K(_0x35ad4c,_0x4d03fd));if(_0x3f44b5[_0x389b73(0x165)]===0x0)return[];let _0x848fac=[{'command':'M','points':[_0x3f44b5[0x0]['x'],_0x3f44b5[0x0]['y']]}];for(let _0x4814fa=0x0;_0x4814fa<_0x3f44b5[_0x389b73(0x165)]-0x1;_0x4814fa++){let _0x310dfd=_0x3f44b5[_0x4814fa],_0x4c840b=_0x3f44b5[_0x4814fa+0x1],_0x2741f6=_0x3f44b5[_0x4814fa-0x1]??_0x310dfd,_0x10c315=_0x3f44b5[_0x4814fa+0x2]??_0x4c840b,_0x53e7d8={'x':_0x310dfd['x']+(_0x4c840b['x']-_0x2741f6['x'])/0x6,'y':_0x310dfd['y']+(_0x4c840b['y']-_0x2741f6['y'])/0x6},_0x4c6d22={'x':_0x4c840b['x']-(_0x10c315['x']-_0x310dfd['x'])/0x6,'y':_0x4c840b['y']-(_0x10c315['y']-_0x310dfd['y'])/0x6};_0x848fac[_0x389b73(0x18e)]({'command':'C','points':[_0x53e7d8['x'],_0x53e7d8['y'],_0x4c6d22['x'],_0x4c6d22['y'],_0x4c840b['x'],_0x4c840b['y']]});}return _0x848fac;}function xe(_0x4ade05){const _0x2ff8eb=_0x548c;let {model:_0x568a23,sourceModel:_0x336a2c=_0x568a23,style:_0x4764d4}=_0x4ade05,_0x4760a2=_0x4ade05[_0x2ff8eb(0x140)]??_0x568a23[_0x2ff8eb(0x177)],_0x3581da=G(_0x568a23),_0x17c4f0=_0x568a23[_0x2ff8eb(0x177)]===_0x2ff8eb(0x172)&&_0x4760a2!=='pen'?_0x568a23:void 0x0;return{'transform':{..._0x3581da,'rotation':0x0},'shapeData':ye(_0x568a23,_0x4764d4),'ink':{'version':0x1,'tool':_0x4760a2,'sourceModel':_0x336a2c,..._0x17c4f0?{'editModel':_0x17c4f0}:{},'normalizedBounds':_0x3581da}};}var Se=_0x3d1ae1(0x183),Ce='1.4.0';function q(_0x57ab12){'@babel/helpers - typeof';const _0x423abd=_0x3d1ae1;return q=typeof Symbol==_0x423abd(0x14e)&&typeof Symbol[_0x423abd(0x15c)]==_0x423abd(0x144)?function(_0x299f59){return typeof _0x299f59;}:function(_0x1537fa){const _0x1ae886=_0x423abd;return _0x1537fa&&typeof Symbol==_0x1ae886(0x14e)&&_0x1537fa[_0x1ae886(0x193)]===Symbol&&_0x1537fa!==Symbol[_0x1ae886(0x163)]?_0x1ae886(0x144):typeof _0x1537fa;},q(_0x57ab12);}function we(_0x50fe8b,_0x2e6e2a){const _0xb6ca98=_0x3d1ae1;if(q(_0x50fe8b)!=_0xb6ca98(0x155)||!_0x50fe8b)return _0x50fe8b;var _0x17c1ea=_0x50fe8b[Symbol[_0xb6ca98(0x139)]];if(_0x17c1ea!==void 0x0){var _0x191c8e=_0x17c1ea[_0xb6ca98(0x15d)](_0x50fe8b,_0x2e6e2a||'default');if(q(_0x191c8e)!='object')return _0x191c8e;throw TypeError(_0xb6ca98(0x171));}return(_0x2e6e2a===_0xb6ca98(0x198)?String:Number)(_0x50fe8b);}function J(_0x1b8baa){const _0x4d794c=_0x3d1ae1;var _0xae8e05=we(_0x1b8baa,_0x4d794c(0x198));return q(_0xae8e05)==_0x4d794c(0x144)?_0xae8e05:_0xae8e05+'';}function Y(_0x552527,_0x4dc04f,_0x6109f0){const _0x5720f1=_0x3d1ae1;return(_0x4dc04f=J(_0x4dc04f))in _0x552527?Object[_0x5720f1(0x150)](_0x552527,_0x4dc04f,{'value':_0x6109f0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x552527[_0x4dc04f]=_0x6109f0,_0x552527;}const X=_0x4732b8(_0x3d1ae1(0x15b));var Te=class{constructor(){const _0x1ed765=_0x3d1ae1;Y(this,_0x1ed765(0x14c),[]);}[_0x3d1ae1(0x161)](_0xe547e7){const _0x599698=_0x3d1ae1;return this[_0x599698(0x14c)][_0x599698(0x18e)](_0xe547e7),_0x1b55f3(()=>{const _0x192d7a=_0x599698;let _0x39183b=this[_0x192d7a(0x14c)]['indexOf'](_0xe547e7);_0x39183b>=0x0&&this[_0x192d7a(0x14c)][_0x192d7a(0x156)](_0x39183b,0x1);});}[_0x3d1ae1(0x13a)](_0x731f26){const _0x419f53=_0x3d1ae1;for(let _0x3e174d of this[_0x419f53(0x14c)])if(_0x3e174d[_0x419f53(0x13a)](_0x731f26))return!0x0;return!0x1;}async[_0x3d1ae1(0x154)](_0x1c1d4f){const _0x34c7c2=_0x3d1ae1;for(let _0x546e7a of this['_adapters'])if(_0x546e7a['createCustomShape']&&await _0x546e7a[_0x34c7c2(0x154)](_0x1c1d4f))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x32101d['OPERATION'],'handler':(_0x629601,_0x49dee0)=>_0x49dee0?_0x629601[_0x3d1ae1(0x18f)](X)['beginInkMode'](_0x49dee0):!0x1},Z={};function Q(_0x7b9356,_0x2bf4ba){return function(_0x30262e,_0x11867e){_0x2bf4ba(_0x30262e,_0x11867e,_0x7b9356);};}function De(_0x209f45,_0x3173b9,_0x20ef9c,_0x82089f){const _0x52423d=_0x3d1ae1;var _0x2739a9=arguments[_0x52423d(0x165)],_0x56079f=_0x2739a9<0x3?_0x3173b9:_0x82089f===null?_0x82089f=Object[_0x52423d(0x189)](_0x3173b9,_0x20ef9c):_0x82089f,_0x4ad719;if(typeof Reflect==_0x52423d(0x155)&&typeof Reflect[_0x52423d(0x199)]==_0x52423d(0x14e))_0x56079f=Reflect[_0x52423d(0x199)](_0x209f45,_0x3173b9,_0x20ef9c,_0x82089f);else{for(var _0x59e956=_0x209f45[_0x52423d(0x165)]-0x1;_0x59e956>=0x0;_0x59e956--)(_0x4ad719=_0x209f45[_0x59e956])&&(_0x56079f=(_0x2739a9<0x3?_0x4ad719(_0x56079f):_0x2739a9>0x3?_0x4ad719(_0x3173b9,_0x20ef9c,_0x56079f):_0x4ad719(_0x3173b9,_0x20ef9c))||_0x56079f);}return _0x2739a9>0x3&&_0x56079f&&Object['defineProperty'](_0x3173b9,_0x20ef9c,_0x56079f),_0x56079f;}let $=class extends _0x3492da{constructor(_0x5d442c=Z,_0xc5c1df,_0x31a399,_0x334337){const _0x3cf64f=_0x3d1ae1;super(),this[_0x3cf64f(0x152)]=_0x5d442c,this['_injector']=_0xc5c1df,this['_commandService']=_0x31a399,this['_configService']=_0x334337;let {..._0x5bbe85}=_0x559a23({},Z,this[_0x3cf64f(0x152)]);this[_0x3cf64f(0x18c)][_0x3cf64f(0x169)](_0x3cf64f(0x170),_0x5bbe85);}[_0x3d1ae1(0x13c)](){const _0x512490=_0x3d1ae1;[[X,{'useClass':Te}]][_0x512490(0x168)](_0x12cf66=>this[_0x512490(0x174)][_0x512490(0x17d)](_0x12cf66)),this[_0x512490(0x179)](this['_commandService'][_0x512490(0x14b)](Ee));}};Y($,_0x3d1ae1(0x17b),_0x3d1ae1(0x162)),Y($,_0x3d1ae1(0x16e),Se),Y($,'version',Ce),Y($,'type',_0x40e146['UNIVER_UNKNOWN']),$=De([_0x5642da(_0x513a1d),Q(0x1,_0x58e287(_0x1c4dea)),Q(0x2,_0x11df14),Q(0x3,_0x19d84c)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
1
+ const _0x234bb6=_0x2604;(function(_0x49148a,_0x2f325b){const _0x40c754=_0x2604,_0x2ac5de=_0x49148a();while(!![]){try{const _0x47c6eb=parseInt(_0x40c754(0x117))/0x1*(-parseInt(_0x40c754(0x110))/0x2)+parseInt(_0x40c754(0xdb))/0x3+-parseInt(_0x40c754(0x11a))/0x4*(parseInt(_0x40c754(0xee))/0x5)+parseInt(_0x40c754(0x11c))/0x6*(-parseInt(_0x40c754(0x122))/0x7)+parseInt(_0x40c754(0xf3))/0x8+parseInt(_0x40c754(0xc1))/0x9*(parseInt(_0x40c754(0x121))/0xa)+parseInt(_0x40c754(0x10e))/0xb;if(_0x47c6eb===_0x2f325b)break;else _0x2ac5de['push'](_0x2ac5de['shift']());}catch(_0x2d66a4){_0x2ac5de['push'](_0x2ac5de['shift']());}}}(_0x1afd,0x2d1c9));import{ShapeFillEnum as _0x137e22,ShapeLineCapEnum as _0x5f227b,ShapeLineJoinEnum as _0x2cfe25,ShapeLineTypeEnum as _0x3708a3,ShapeTypeEnum as _0x1d5fb3}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x38211f}from'@univerjs-pro/license';import{CommandType as _0x4b603e,DependentOn as _0x226505,ICommandService as _0x171415,IConfigService as _0x5b3d,Inject as _0x1739b1,Injector as _0x4929fc,Plugin as _0x2b18e8,UniverInstanceType as _0x1ecdfc,createIdentifier as _0x4bf0fa,merge as _0x10d687,toDisposable as _0x27c43d}from'@univerjs/core';const g=0.0001;function _(_0x525f4e){return{'x':_0x525f4e['x'],'y':_0x525f4e['y']};}function v(_0x1109a3){const _0x457304=_0x2604;return{..._0x1109a3,'in':_0x1109a3['in']?_(_0x1109a3['in']):void 0x0,'out':_0x1109a3[_0x457304(0xf7)]?_(_0x1109a3[_0x457304(0xf7)]):void 0x0};}function y(_0x1f207c){const _0x3ae541=_0x2604;return{'kind':_0x3ae541(0x11e),'closed':_0x1f207c[_0x3ae541(0x103)],'anchors':_0x1f207c[_0x3ae541(0xf4)]['map'](v)};}function _0x2604(_0x57b2bf,_0x4c8aa5){_0x57b2bf=_0x57b2bf-0xc1;const _0x1afd36=_0x1afd();let _0x260416=_0x1afd36[_0x57b2bf];return _0x260416;}function b(_0x41702f,_0x188f3a,_0x54c659){return{'x':_0x41702f['x']+(_0x188f3a['x']-_0x41702f['x'])*_0x54c659,'y':_0x41702f['y']+(_0x188f3a['y']-_0x41702f['y'])*_0x54c659};}function x(_0x4580a4,_0x2a5c51){const _0x52d796=_0x2604;return Math[_0x52d796(0xcc)](_0x4580a4['x']-_0x2a5c51['x'],_0x4580a4['y']-_0x2a5c51['y']);}function S(_0x36bd59){const _0x22293e=_0x2604;let _0x23b431=Math[_0x22293e(0xcc)](_0x36bd59['x'],_0x36bd59['y']);return _0x23b431<g?{'x':0x1,'y':0x0}:{'x':_0x36bd59['x']/_0x23b431,'y':_0x36bd59['y']/_0x23b431};}function C(_0x9ca61c,_0x59c831,_0x21a884=x(_0x9ca61c,_0x59c831)){let _0x39c546=S({'x':_0x9ca61c['x']-_0x59c831['x'],'y':_0x9ca61c['y']-_0x59c831['y']});return{'x':_0x9ca61c['x']+_0x39c546['x']*_0x21a884,'y':_0x9ca61c['y']+_0x39c546['y']*_0x21a884};}function w(_0x5cb72a,_0x14885f){const _0x41769b=_0x2604;let {anchors:_0x4986bd}=_0x5cb72a;return _0x4986bd[_0x41769b(0x104)]<0x2||_0x14885f<0x0?null:_0x14885f<_0x4986bd[_0x41769b(0x104)]-0x1?{'startIndex':_0x14885f,'endIndex':_0x14885f+0x1,'start':_0x4986bd[_0x14885f],'end':_0x4986bd[_0x14885f+0x1]}:_0x5cb72a[_0x41769b(0x103)]&&_0x14885f===_0x4986bd[_0x41769b(0x104)]-0x1?{'startIndex':_0x4986bd[_0x41769b(0x104)]-0x1,'endIndex':0x0,'start':_0x4986bd[_0x4986bd[_0x41769b(0x104)]-0x1],'end':_0x4986bd[0x0]}:null;}function T(_0x29421c,_0x3f86b2){const _0xe366c9=_0x2604;let _0x5eaedf=w(_0x29421c,_0x3f86b2);return _0x5eaedf?[_0x5eaedf[_0xe366c9(0xd6)],_0x5eaedf[_0xe366c9(0xd6)][_0xe366c9(0xf7)]??_0x5eaedf[_0xe366c9(0xd6)],_0x5eaedf['end']['in']??_0x5eaedf[_0xe366c9(0xf6)],_0x5eaedf['end']]:null;}function te(_0x577129,_0x49e7a7){const _0x570288=_0x2604;return _0x49e7a7===_0x570288(0x11d)?_0x577129:_0x577129[_0x49e7a7]??null;}function E(_0x5d3d32,_0x8abad0,_0x554155){const _0xd96fe9=_0x2604;return _0x554155===_0xd96fe9(0x11d)||_0x5d3d32[_0xd96fe9(0x103)]?!0x0:_0x554155==='in'?_0x8abad0>0x0:_0x8abad0<_0x5d3d32[_0xd96fe9(0xf4)][_0xd96fe9(0x104)]-0x1;}function D(_0x22ca6d,_0x73cf9a){let [_0x1619d5,_0x27da3c,_0x23da44,_0x47134b]=_0x22ca6d,_0x20927b=b(_0x1619d5,_0x27da3c,_0x73cf9a),_0x340f1f=b(_0x27da3c,_0x23da44,_0x73cf9a),_0x347853=b(_0x23da44,_0x47134b,_0x73cf9a);return b(b(_0x20927b,_0x340f1f,_0x73cf9a),b(_0x340f1f,_0x347853,_0x73cf9a),_0x73cf9a);}function ne(_0x3b52fd,_0x429cb1){let [_0x304796,_0x4d1202,_0x308725,_0x51ba1e]=_0x3b52fd,_0x33d6db=b(_0x304796,_0x4d1202,_0x429cb1),_0xfdc897=b(_0x4d1202,_0x308725,_0x429cb1),_0x10b1c8=b(_0x308725,_0x51ba1e,_0x429cb1),_0x355781=b(_0x33d6db,_0xfdc897,_0x429cb1),_0x613f89=b(_0xfdc897,_0x10b1c8,_0x429cb1),_0x32e7b2=b(_0x355781,_0x613f89,_0x429cb1);return{'left':[_0x304796,_0x33d6db,_0x355781,_0x32e7b2],'right':[_0x32e7b2,_0x613f89,_0x10b1c8,_0x51ba1e]};}function O(_0x548ee3,_0x490217,_0x236aed){const _0x56c17b=_0x2604;let _0x2a2569=_0x236aed['x']-_0x490217['x'],_0x1e9f2e=_0x236aed['y']-_0x490217['y'],_0x59b498=_0x2a2569*_0x2a2569+_0x1e9f2e*_0x1e9f2e,_0x2c5c4e=_0x59b498<=g?0x0:Math['max'](0x0,Math[_0x56c17b(0xca)](0x1,((_0x548ee3['x']-_0x490217['x'])*_0x2a2569+(_0x548ee3['y']-_0x490217['y'])*_0x1e9f2e)/_0x59b498)),_0x9c73dc={'x':_0x490217['x']+_0x2a2569*_0x2c5c4e,'y':_0x490217['y']+_0x1e9f2e*_0x2c5c4e};return{'point':_0x9c73dc,'ratio':_0x2c5c4e,'distance':x(_0x548ee3,_0x9c73dc)};}function re(_0x2e80d6,_0x2c4355,_0x599742){return O(_0x2e80d6,_0x2c4355,_0x599742)['distance']**0x2;}function k(_0x5bd837,_0x16fe3b){const _0x350e5b=_0x2604;if(_0x5bd837[_0x350e5b(0x104)]<=0x2)return _0x5bd837[_0x350e5b(0xef)](_);let _0x11af2b=0x0,_0x4cb94d=0x0,_0x5ac12e=_0x5bd837[0x0],_0x17cc1b=_0x5bd837[_0x5bd837[_0x350e5b(0x104)]-0x1],_0x29d3c7=_0x16fe3b*_0x16fe3b;for(let _0x6d1f26=0x1;_0x6d1f26<_0x5bd837[_0x350e5b(0x104)]-0x1;_0x6d1f26++){let _0x11fe76=re(_0x5bd837[_0x6d1f26],_0x5ac12e,_0x17cc1b);_0x11fe76>_0x11af2b&&(_0x11af2b=_0x11fe76,_0x4cb94d=_0x6d1f26);}if(_0x11af2b<=_0x29d3c7)return[_(_0x5ac12e),_(_0x17cc1b)];let _0x31c2ae=k(_0x5bd837[_0x350e5b(0xe2)](0x0,_0x4cb94d+0x1),_0x16fe3b),_0x3d579f=k(_0x5bd837['slice'](_0x4cb94d),_0x16fe3b);return[..._0x31c2ae[_0x350e5b(0xe2)](0x0,-0x1),..._0x3d579f];}function ie(_0x5b6391,_0x2b2fb3){let _0x42d273=_0x5b6391[_0x2b2fb3],_0xd4c348=_0x5b6391[_0x2b2fb3+0x1],_0x142fb2=_0x5b6391[_0x2b2fb3-0x1]??_0x42d273;return{'x':_0x42d273['x']+(_0xd4c348['x']-_0x142fb2['x'])/0x6,'y':_0x42d273['y']+(_0xd4c348['y']-_0x142fb2['y'])/0x6};}function A(_0x4e0f42,_0x53d31c){let _0x5d4764=_0x4e0f42[_0x53d31c],_0x16246d=_0x4e0f42[_0x53d31c-0x1],_0xad5ca9=_0x4e0f42[_0x53d31c+0x1]??_0x5d4764;return{'x':_0x5d4764['x']-(_0xad5ca9['x']-_0x16246d['x'])/0x6,'y':_0x5d4764['y']-(_0xad5ca9['y']-_0x16246d['y'])/0x6};}function j(_0x47698e,_0x4ea418){const _0x591ebd=_0x2604;let _0x4dae16=_0x47698e[_0x591ebd(0xf4)][_0x4ea418],_0x1727e1=_0x47698e[_0x591ebd(0xf4)][_0x4ea418-0x1]??(_0x47698e['closed']?_0x47698e[_0x591ebd(0xf4)][_0x47698e[_0x591ebd(0xf4)][_0x591ebd(0x104)]-0x1]:null),_0x3e5949=_0x47698e[_0x591ebd(0xf4)][_0x4ea418+0x1]??(_0x47698e[_0x591ebd(0x103)]?_0x47698e[_0x591ebd(0xf4)][0x0]:null),_0x3e8a37=_0x1727e1&&_0x3e5949?S({'x':_0x3e5949['x']-_0x1727e1['x'],'y':_0x3e5949['y']-_0x1727e1['y']}):_0x3e5949?S({'x':_0x3e5949['x']-_0x4dae16['x'],'y':_0x3e5949['y']-_0x4dae16['y']}):_0x1727e1?S({'x':_0x4dae16['x']-_0x1727e1['x'],'y':_0x4dae16['y']-_0x1727e1['y']}):{'x':0x1,'y':0x0},_0x129fb4=_0x1727e1&&_0x3e5949?Math[_0x591ebd(0x107)](0x32,x(_0x1727e1,_0x3e5949)/0x4):0x32;return{'in':{'x':_0x4dae16['x']-_0x3e8a37['x']*_0x129fb4,'y':_0x4dae16['y']-_0x3e8a37['y']*_0x129fb4},'out':{'x':_0x4dae16['x']+_0x3e8a37['x']*_0x129fb4,'y':_0x4dae16['y']+_0x3e8a37['y']*_0x129fb4}};}function M(_0x3e3acc,_0x296c75){const _0x9a195b=_0x2604;let _0x33adc6=_0x3e3acc[_0x296c75],_0x5ca41b=_0x296c75==='in'?_0x9a195b(0xf7):'in',_0x3490fb=_0x3e3acc[_0x5ca41b];_0x33adc6&&(_0x3e3acc[_0x9a195b(0x123)]===_0x9a195b(0xce)?_0x3e3acc[_0x5ca41b]=C(_0x3e3acc,_0x33adc6):_0x3e3acc[_0x9a195b(0x123)]===_0x9a195b(0x115)&&(_0x3e3acc[_0x5ca41b]=C(_0x3e3acc,_0x33adc6,_0x3490fb?x(_0x3e3acc,_0x3490fb):x(_0x3e3acc,_0x33adc6))));}function ae(_0x16ea0d,_0x25cf35){const _0x2bc410=_0x2604;let _0x1dbff4=y(_0x16ea0d);return!_0x25cf35||_0x1dbff4[_0x2bc410(0x103)]||_0x1dbff4['anchors']['length']===0x0||_0x1dbff4['anchors'][_0x2bc410(0xcd)]({'id':'__ink-preview-anchor__','x':_0x25cf35['x'],'y':_0x25cf35['y'],'pointType':_0x2bc410(0x10d)}),_0x1dbff4;}function oe(_0x3b1d1c,_0x502343={}){const _0x47e55c=_0x2604;let _0x4d1436=Math[_0x47e55c(0x107)](0x0,_0x502343[_0x47e55c(0xc6)]??Math['max'](0x4,_0x3b1d1c[_0x47e55c(0xc7)]*0.35)),_0x24867d=_0x502343[_0x47e55c(0xe7)]??(_0x25d4d8=>_0x47e55c(0x10c)+_0x25d4d8),_0x4e3286=k(_0x3b1d1c[_0x47e55c(0xd3)],_0x4d1436),_0x2b4009=_0x4e3286[_0x47e55c(0xef)]((_0x57b0e6,_0x54df07)=>({'id':_0x24867d(_0x54df07),'x':_0x57b0e6['x'],'y':_0x57b0e6['y'],'pointType':_0x47e55c(0xed)}));for(let _0x3f0acc=0x0;_0x3f0acc<_0x2b4009[_0x47e55c(0x104)]-0x1;_0x3f0acc++)_0x2b4009[_0x3f0acc]['out']=ie(_0x4e3286,_0x3f0acc),_0x2b4009[_0x3f0acc+0x1]['in']=A(_0x4e3286,_0x3f0acc+0x1);return{'kind':_0x47e55c(0x11e),'closed':!0x1,'anchors':_0x2b4009};}function se(_0x2b1fd2,_0x407e41,_0x3be41c){const _0x2ee319=_0x2604;let _0x2ae37b=null,_0xcf3d66=[_0x2ee319(0x11d),'in','out'];return _0x2b1fd2[_0x2ee319(0xf4)]['forEach']((_0xe8e6ad,_0x4f4725)=>{const _0x405af2=_0x2ee319;_0xcf3d66[_0x405af2(0xfe)](_0xc2571c=>{const _0x57c64e=_0x405af2;if(!E(_0x2b1fd2,_0x4f4725,_0xc2571c))return;let _0x473b98=te(_0xe8e6ad,_0xc2571c);if(!_0x473b98)return;let _0x33b659=x(_0x407e41,_0x473b98);_0x33b659>_0x3be41c||_0x2ae37b&&_0x33b659>=_0x2ae37b[_0x57c64e(0xe6)]||(_0x2ae37b={'handle':{'kind':_0xc2571c,'anchorId':_0xe8e6ad['id']},'point':_(_0x473b98),'distance':_0x33b659});});}),_0x2ae37b;}function ce(_0x1d44e3,_0xbefba3,_0x176643){const _0x196cf1=_0x2604;let _0x290515=null,_0x3328cd=_0x1d44e3[_0x196cf1(0x103)]?_0x1d44e3[_0x196cf1(0xf4)][_0x196cf1(0x104)]:Math[_0x196cf1(0x107)](0x0,_0x1d44e3[_0x196cf1(0xf4)][_0x196cf1(0x104)]-0x1);for(let _0x214c41=0x0;_0x214c41<_0x3328cd;_0x214c41++){let _0x4685a4=T(_0x1d44e3,_0x214c41);if(!_0x4685a4)continue;let _0x108521=D(_0x4685a4,0x0);for(let _0x167951=0x1;_0x167951<=0x20;_0x167951++){let _0x48f261=D(_0x4685a4,_0x167951/0x20),_0x5a15d8=O(_0xbefba3,_0x108521,_0x48f261),_0x4b120c=(_0x167951-0x1+_0x5a15d8[_0x196cf1(0xde)])/0x20;(!_0x290515||_0x5a15d8[_0x196cf1(0xe6)]<_0x290515[_0x196cf1(0xe6)])&&(_0x290515={'segmentIndex':_0x214c41,'t':_0x4b120c,'point':_0x5a15d8[_0x196cf1(0x106)],'distance':_0x5a15d8['distance']}),_0x108521=_0x48f261;}}return _0x290515&&_0x290515[_0x196cf1(0xe6)]<=_0x176643?_0x290515:null;}function le(_0x51fa3f,_0x47c6d9,_0x200146){const _0x5e437c=_0x2604;let _0xe70aca=y(_0x51fa3f),_0x39117b=w(_0xe70aca,_0x47c6d9[_0x5e437c(0xd2)]),_0x15fa67=T(_0xe70aca,_0x47c6d9[_0x5e437c(0xd2)]);if(!_0x39117b||!_0x15fa67)return _0xe70aca;let _0x5b1f1a=ne(_0x15fa67,Math[_0x5e437c(0x107)](0x0,Math[_0x5e437c(0xca)](0x1,_0x47c6d9['t']))),_0x514c96={'id':_0x200146(),'x':_0x5b1f1a['left'][0x3]['x'],'y':_0x5b1f1a['left'][0x3]['y'],'in':_(_0x5b1f1a[_0x5e437c(0xfa)][0x2]),'out':_(_0x5b1f1a['right'][0x1]),'pointType':_0x5e437c(0xed)};return _0xe70aca[_0x5e437c(0xf4)][_0x39117b[_0x5e437c(0xf0)]][_0x5e437c(0xf7)]=_(_0x5b1f1a['left'][0x1]),_0xe70aca['anchors'][_0x39117b[_0x5e437c(0xc9)]]['in']=_(_0x5b1f1a['right'][0x2]),_0xe70aca[_0x5e437c(0xf4)][_0x5e437c(0xe9)](_0x39117b[_0x5e437c(0xf0)]+0x1,0x0,_0x514c96),_0xe70aca;}function ue(_0x27f066,_0x1334f0){const _0x342a26=_0x2604;let _0x530943=y(_0x27f066);return _0x530943[_0x342a26(0xf4)]=_0x530943[_0x342a26(0xf4)][_0x342a26(0x119)](_0x58a581=>_0x58a581['id']!==_0x1334f0),_0x530943[_0x342a26(0x103)]&&_0x530943[_0x342a26(0xf4)]['length']<0x3&&(_0x530943['closed']=!0x1),_0x530943;}function N(_0x245444,_0x20098b,_0x349297){const _0x5bc0a4=_0x2604;let _0xa62d74=y(_0x245444),_0xc442be=_0xa62d74[_0x5bc0a4(0xf4)][_0x5bc0a4(0xe5)](_0xbb47f9=>_0xbb47f9['id']===_0x20098b),_0x1f92b1=_0xa62d74['anchors'][_0xc442be];if(!_0x1f92b1)return _0xa62d74;if(_0x1f92b1[_0x5bc0a4(0x123)]=_0x349297,_0x349297===_0x5bc0a4(0x10d))return delete _0x1f92b1['in'],delete _0x1f92b1[_0x5bc0a4(0xf7)],_0xa62d74;let _0x39c4d5=j(_0xa62d74,_0xc442be);if(_0x1f92b1['in']=_0x1f92b1['in']?_(_0x1f92b1['in']):_0x39c4d5['in'],_0x1f92b1[_0x5bc0a4(0xf7)]=_0x1f92b1[_0x5bc0a4(0xf7)]?_(_0x1f92b1['out']):_0x39c4d5[_0x5bc0a4(0xf7)],_0x349297===_0x5bc0a4(0xce)){let _0x5110ec=Math[_0x5bc0a4(0x107)](x(_0x1f92b1,_0x1f92b1['in']),x(_0x1f92b1,_0x1f92b1[_0x5bc0a4(0xf7)]),0x32),_0x4b528d=S({'x':_0x1f92b1[_0x5bc0a4(0xf7)]['x']-_0x1f92b1['x'],'y':_0x1f92b1['out']['y']-_0x1f92b1['y']});_0x1f92b1[_0x5bc0a4(0xf7)]={'x':_0x1f92b1['x']+_0x4b528d['x']*_0x5110ec,'y':_0x1f92b1['y']+_0x4b528d['y']*_0x5110ec},_0x1f92b1['in']={'x':_0x1f92b1['x']-_0x4b528d['x']*_0x5110ec,'y':_0x1f92b1['y']-_0x4b528d['y']*_0x5110ec};}else _0x349297===_0x5bc0a4(0x115)&&M(_0x1f92b1,_0x5bc0a4(0xf7));return _0xa62d74;}function P(_0x704eb8,_0xa832ea){const _0x4941db=_0x2604;let _0x298d1e=_0x704eb8[_0x4941db(0xf4)][_0x4941db(0xcb)](_0xe6477a=>_0xe6477a['id']===_0xa832ea),_0x369881=(_0x298d1e==null?void 0x0:_0x298d1e[_0x4941db(0x123)])??_0x4941db(0x10d);return N(_0x704eb8,_0xa832ea,_0x369881===_0x4941db(0x10d)?'smooth':_0x369881===_0x4941db(0x115)?_0x4941db(0xce):_0x369881===_0x4941db(0xce)?_0x4941db(0xed):_0x4941db(0x10d));}function F(_0x4d10a9,_0x230ce9,_0x251b4e){const _0x353282=_0x2604;let _0x2f4db7=y(_0x4d10a9),_0x2d7965=_0x2f4db7[_0x353282(0xf4)][_0x353282(0xcb)](_0x3587ac=>_0x3587ac['id']===_0x230ce9[_0x353282(0x11f)]);if(!_0x2d7965)return _0x2f4db7;if(_0x230ce9[_0x353282(0xff)]==='anchor'){let _0x4827f7={'x':_0x251b4e['x']-_0x2d7965['x'],'y':_0x251b4e['y']-_0x2d7965['y']};return _0x2d7965['x']=_0x251b4e['x'],_0x2d7965['y']=_0x251b4e['y'],_0x2d7965['in']&&={'x':_0x2d7965['in']['x']+_0x4827f7['x'],'y':_0x2d7965['in']['y']+_0x4827f7['y']},_0x2d7965[_0x353282(0xf7)]&&={'x':_0x2d7965[_0x353282(0xf7)]['x']+_0x4827f7['x'],'y':_0x2d7965[_0x353282(0xf7)]['y']+_0x4827f7['y']},_0x2f4db7;}return _0x2d7965[_0x230ce9['kind']]=_(_0x251b4e),_0x2d7965[_0x353282(0x123)]===_0x353282(0x10d)&&(_0x2d7965['pointType']=_0x353282(0xed)),M(_0x2d7965,_0x230ce9[_0x353282(0xff)]),_0x2f4db7;}const I=1e-9;function L(_0x47aa74){const _0x317dc7=_0x2604;let _0x54aa9c=Math[_0x317dc7(0xd4)](_0x47aa74*0x2710)/0x2710;return Object['is'](_0x54aa9c,-0x0)?'0':String(_0x54aa9c);}function R(_0x41fe3c){return L(_0x41fe3c['x'])+'\x20'+L(_0x41fe3c['y']);}function z(_0x4f2ad1,_0x367cae){return{'x':_0x4f2ad1['x']-_0x367cae['x'],'y':_0x4f2ad1['y']-_0x367cae['y']};}function B(_0x3f2024,_0x184c3d,_0x2a114e,_0x94ed91,_0x2c50c7){let _0x35d9c1=0x1-_0x2c50c7;return{'x':_0x35d9c1*_0x35d9c1*_0x35d9c1*_0x3f2024['x']+0x3*_0x35d9c1*_0x35d9c1*_0x2c50c7*_0x184c3d['x']+0x3*_0x35d9c1*_0x2c50c7*_0x2c50c7*_0x2a114e['x']+_0x2c50c7*_0x2c50c7*_0x2c50c7*_0x94ed91['x'],'y':_0x35d9c1*_0x35d9c1*_0x35d9c1*_0x3f2024['y']+0x3*_0x35d9c1*_0x35d9c1*_0x2c50c7*_0x184c3d['y']+0x3*_0x35d9c1*_0x2c50c7*_0x2c50c7*_0x2a114e['y']+_0x2c50c7*_0x2c50c7*_0x2c50c7*_0x94ed91['y']};}function V(_0x1355e8,_0x1273bd,_0x3a3022,_0x3d4008){const _0x16b020=_0x2604;let _0x2809ce=-_0x1355e8+0x3*_0x1273bd-0x3*_0x3a3022+_0x3d4008,_0x14ba67=0x3*_0x1355e8-0x6*_0x1273bd+0x3*_0x3a3022,_0x5bc3a6=-0x3*_0x1355e8+0x3*_0x1273bd,_0x5a60c1=[];if(Math[_0x16b020(0xda)](_0x2809ce)<I){if(Math[_0x16b020(0xda)](_0x14ba67)<I)return _0x5a60c1;let _0x924a37=-_0x5bc3a6/(0x2*_0x14ba67);return _0x924a37>0x0&&_0x924a37<0x1&&_0x5a60c1[_0x16b020(0xcd)](_0x924a37),_0x5a60c1;}let _0x28ddf0=_0x14ba67*_0x14ba67-0x3*_0x2809ce*_0x5bc3a6;if(_0x28ddf0<0x0)return _0x5a60c1;let _0x96609d=Math[_0x16b020(0x102)](Math['max'](0x0,_0x28ddf0)),_0x1d8ded=(-_0x14ba67+_0x96609d)/(0x3*_0x2809ce),_0x185308=(-_0x14ba67-_0x96609d)/(0x3*_0x2809ce);return _0x1d8ded>0x0&&_0x1d8ded<0x1&&_0x5a60c1['push'](_0x1d8ded),_0x185308>0x0&&_0x185308<0x1&&Math[_0x16b020(0xda)](_0x185308-_0x1d8ded)>I&&_0x5a60c1[_0x16b020(0xcd)](_0x185308),_0x5a60c1;}function H(_0x5502f7,_0x1cfd3b,_0x2f9517,_0xe51dc0,_0x431ffa){const _0x270833=_0x2604;_0x5502f7['push'](_0x1cfd3b,_0x431ffa),new Set([...V(_0x1cfd3b['x'],_0x2f9517['x'],_0xe51dc0['x'],_0x431ffa['x']),...V(_0x1cfd3b['y'],_0x2f9517['y'],_0xe51dc0['y'],_0x431ffa['y'])])[_0x270833(0xfe)](_0x2740de=>{const _0x59a6be=_0x270833;_0x5502f7[_0x59a6be(0xcd)](B(_0x1cfd3b,_0x2f9517,_0xe51dc0,_0x431ffa,_0x2740de));});}function U(_0x508157){const _0x56cc8a=_0x2604;let _0x269ae1=_0x508157[_0x56cc8a(0xf4)];if(_0x269ae1[_0x56cc8a(0x104)]<=0x1)return _0x269ae1;let _0x33790a=[];for(let _0x49d4d3=0x1;_0x49d4d3<_0x269ae1[_0x56cc8a(0x104)];_0x49d4d3++){let _0x35af72=_0x269ae1[_0x49d4d3-0x1],_0x5d4103=_0x269ae1[_0x49d4d3];H(_0x33790a,_0x35af72,_0x35af72[_0x56cc8a(0xf7)]??_0x35af72,_0x5d4103['in']??_0x5d4103,_0x5d4103);}if(_0x508157['closed']&&_0x269ae1[_0x56cc8a(0x104)]>0x1){let _0x1918c6=_0x269ae1[_0x269ae1['length']-0x1],_0x36deb9=_0x269ae1[0x0];H(_0x33790a,_0x1918c6,_0x1918c6[_0x56cc8a(0xf7)]??_0x1918c6,_0x36deb9['in']??_0x36deb9,_0x36deb9);}return _0x33790a;}function de(_0x340d17){const _0x82b26f=_0x2604;let _0x3c5633=_0x340d17[_0x82b26f(0xd3)];if(_0x3c5633[_0x82b26f(0x104)]<=0x1)return _0x3c5633;let _0x29495d=[];for(let _0x2d2cdb=0x0;_0x2d2cdb<_0x3c5633[_0x82b26f(0x104)]-0x1;_0x2d2cdb++){let _0x28c67f=_0x3c5633[_0x2d2cdb],_0x2ad8c1=_0x3c5633[_0x2d2cdb+0x1],_0x33c8f0=_0x3c5633[_0x2d2cdb-0x1]??_0x28c67f,_0x16c595=_0x3c5633[_0x2d2cdb+0x2]??_0x2ad8c1;H(_0x29495d,_0x28c67f,{'x':_0x28c67f['x']+(_0x2ad8c1['x']-_0x33c8f0['x'])/0x6,'y':_0x28c67f['y']+(_0x2ad8c1['y']-_0x33c8f0['y'])/0x6},{'x':_0x2ad8c1['x']-(_0x16c595['x']-_0x28c67f['x'])/0x6,'y':_0x2ad8c1['y']-(_0x16c595['y']-_0x28c67f['y'])/0x6},_0x2ad8c1);}return _0x29495d;}function fe(_0x56dac0){const _0x1f6eed=_0x2604;return _0x56dac0['kind']===_0x1f6eed(0x11e)?U(_0x56dac0):de(_0x56dac0);}function W(_0x2df196){const _0x1c6f1c=_0x2604;let _0x1215a6=Math[_0x1c6f1c(0xd4)](_0x2df196*0x2710)/0x2710;return Object['is'](_0x1215a6,-0x0)?0x0:_0x1215a6;}function G(_0x20f74d){const _0x12859f=_0x2604;let _0x135bc4=fe(_0x20f74d);if(_0x135bc4['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x49ab27=Math[_0x12859f(0xca)](..._0x135bc4[_0x12859f(0xef)](_0x29dc6e=>_0x29dc6e['x'])),_0x2c7c18=Math[_0x12859f(0xca)](..._0x135bc4[_0x12859f(0xef)](_0x37b274=>_0x37b274['y'])),_0x7562a6=Math[_0x12859f(0x107)](..._0x135bc4[_0x12859f(0xef)](_0x11326f=>_0x11326f['x'])),_0x17f25d=Math['max'](..._0x135bc4[_0x12859f(0xef)](_0x1211c4=>_0x1211c4['y']));return{'left':W(_0x49ab27),'top':W(_0x2c7c18),'width':W(Math[_0x12859f(0x107)](0x1,_0x7562a6-_0x49ab27)),'height':W(Math[_0x12859f(0x107)](0x1,_0x17f25d-_0x2c7c18))};}function pe(_0x1a8913,_0xad4bed){const _0x574d1f=_0x2604;let _0x35aa86=_0x1a8913[_0x574d1f(0xf4)];if(_0x35aa86[_0x574d1f(0x104)]===0x0)return'';let _0x4845af=['M\x20'+R(z(_0x35aa86[0x0],_0xad4bed))];for(let _0x3d80a7=0x1;_0x3d80a7<_0x35aa86[_0x574d1f(0x104)];_0x3d80a7++){let _0x48a955=_0x35aa86[_0x3d80a7-0x1],_0x36c3bd=_0x35aa86[_0x3d80a7],_0x3128f2=_0x48a955[_0x574d1f(0xf7)]??_0x48a955,_0x342b80=_0x36c3bd['in']??_0x36c3bd;_0x4845af['push']('C\x20'+R(z(_0x3128f2,_0xad4bed))+'\x20'+R(z(_0x342b80,_0xad4bed))+'\x20'+R(z(_0x36c3bd,_0xad4bed)));}if(_0x1a8913[_0x574d1f(0x103)]&&_0x35aa86[_0x574d1f(0x104)]>0x1){let _0x5aa808=_0x35aa86[_0x35aa86['length']-0x1],_0x1c55c4=_0x35aa86[0x0],_0x58a660=_0x5aa808[_0x574d1f(0xf7)]??_0x5aa808,_0x2702ea=_0x1c55c4['in']??_0x1c55c4;_0x4845af[_0x574d1f(0xcd)]('C\x20'+R(z(_0x58a660,_0xad4bed))+'\x20'+R(z(_0x2702ea,_0xad4bed))+'\x20'+R(z(_0x1c55c4,_0xad4bed))),_0x4845af['push']('Z');}return _0x4845af[_0x574d1f(0x126)]('\x20');}function me(_0x31679b,_0x469162){const _0x299cf2=_0x2604;let _0xf9d47a=_0x31679b[_0x299cf2(0xd3)]['map'](_0xf1c938=>z(_0xf1c938,_0x469162));if(_0xf9d47a[_0x299cf2(0x104)]===0x0)return'';if(_0xf9d47a['length']===0x1)return'M\x20'+R(_0xf9d47a[0x0]);let _0xb5262=['M\x20'+R(_0xf9d47a[0x0])];for(let _0x1639e5=0x0;_0x1639e5<_0xf9d47a[_0x299cf2(0x104)]-0x1;_0x1639e5++){let _0x3acce3=_0xf9d47a[_0x1639e5],_0x5e97e6=_0xf9d47a[_0x1639e5+0x1],_0x360716=_0xf9d47a[_0x1639e5-0x1]??_0x3acce3,_0x346343=_0xf9d47a[_0x1639e5+0x2]??_0x5e97e6,_0x2aafd2={'x':_0x3acce3['x']+(_0x5e97e6['x']-_0x360716['x'])/0x6,'y':_0x3acce3['y']+(_0x5e97e6['y']-_0x360716['y'])/0x6},_0x2f1ed0={'x':_0x5e97e6['x']-(_0x346343['x']-_0x3acce3['x'])/0x6,'y':_0x5e97e6['y']-(_0x346343['y']-_0x3acce3['y'])/0x6};_0xb5262['push']('C\x20'+R(_0x2aafd2)+'\x20'+R(_0x2f1ed0)+'\x20'+R(_0x5e97e6));}return _0xb5262[_0x299cf2(0x126)]('\x20');}function he(_0x3b658f,_0x14b254){const _0x37021a=_0x2604;return _0x3b658f[_0x37021a(0xff)]===_0x37021a(0x11e)?pe(_0x3b658f,_0x14b254):me(_0x3b658f,_0x14b254);}function ge(_0x1278e3,_0x1219a5){const _0x31abdd=_0x2604;return _0x1219a5!=null&&_0x1219a5[_0x31abdd(0xd7)]?_0x1219a5[_0x31abdd(0xd7)]:_0x1278e3[_0x31abdd(0xff)]==='pen'?_0x31abdd(0x116):_0x1278e3[_0x31abdd(0xd7)];}function _e(_0x2b6f64,_0x498e2f){const _0x1005d7=_0x2604;return(_0x498e2f==null?void 0x0:_0x498e2f[_0x1005d7(0xc7)])===void 0x0?_0x2b6f64[_0x1005d7(0xff)]===_0x1005d7(0x11e)?0x2:_0x2b6f64[_0x1005d7(0xc7)]:_0x498e2f[_0x1005d7(0xc7)];}function _0x1afd(){const _0x33f102=['push','symmetric','object','_config','Rect','segmentIndex','points','round','get','start','color','UNIVER_INK_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','abs','585765ftYvqS','indexOf','NoFill','ratio','UNIVER_UNKNOWN','packageName','createCustomShape','slice','registerAdapter','@univerjs-pro/ink','findIndex','distance','createId','ink.config','splice','fillColor','disposeWithMe','none','free','5paeHLX','map','startIndex','_configService','symbol','1391408lidmku','anchors','version','end','out','string','height','left','call','top','iterator','forEach','kind','ink.operation.start','default','sqrt','closed','length','registerCommand','point','max','function','pluginName','prototype','opacity','ink-centerline-','corner','838871BAbtjo','setConfig','1308wwNISC','tool','decorate','Round','OPERATION','smooth','#f54a45','262LNEeQG','_commandService','filter','147640ChZlGX','beginInkMode','20478gQhdFV','anchor','pen','anchorId','onStarting','10QLFdPI','112rcpJkz','pointType','_injector','constructor','join','19809DKbKnE','defineProperty','ink.host-adapter.service','_adapters','SolidFill','tolerance','width','toPrimitive','endIndex','min','find','hypot'];_0x1afd=function(){return _0x33f102;};return _0x1afd();}function ve(_0x4a54d7,_0x2bbbb3){const _0x423650=_0x2604;return(_0x2bbbb3==null?void 0x0:_0x2bbbb3[_0x423650(0x10b)])===void 0x0?_0x4a54d7[_0x423650(0xff)]===_0x423650(0x11e)?void 0x0:_0x4a54d7[_0x423650(0x10b)]:_0x2bbbb3[_0x423650(0x10b)];}function ye(_0x42096b,_0x8672bc){const _0x359a1c=_0x2604;let _0x3f54be=G(_0x42096b),_0x1f7c7e=he(_0x42096b,{'x':_0x3f54be['left'],'y':_0x3f54be[_0x359a1c(0xfc)]}),_0x56aea4=_0x42096b[_0x359a1c(0xff)]==='pen'&&_0x42096b[_0x359a1c(0x103)],_0x584fbc=_0x8672bc==null?void 0x0:_0x8672bc[_0x359a1c(0xea)];return{'shapeType':_0x1d5fb3[_0x359a1c(0xd1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3f54be['width'],'h':_0x3f54be[_0x359a1c(0xf9)],'fill':_0x56aea4?'norm':_0x359a1c(0xec),'stroke':!0x0,'data':_0x1f7c7e,'dataArray':be(_0x42096b,{'x':_0x3f54be[_0x359a1c(0xfa)],'y':_0x3f54be[_0x359a1c(0xfc)]})}]},'fill':_0x56aea4&&_0x584fbc?{'color':_0x584fbc,'fillType':_0x137e22[_0x359a1c(0xc5)]}:{'fillType':_0x137e22[_0x359a1c(0xdd)]},'stroke':{'color':ge(_0x42096b,_0x8672bc),'width':_e(_0x42096b,_0x8672bc),'opacity':ve(_0x42096b,_0x8672bc),'lineStrokeType':_0x3708a3['SolidLine'],'capType':_0x5f227b[_0x359a1c(0x113)],'lineJoinType':_0x2cfe25['Round']}};}function K(_0x139f6d,_0x5ec5d1){return{'x':_0x139f6d['x']-_0x5ec5d1['x'],'y':_0x139f6d['y']-_0x5ec5d1['y']};}function be(_0x3c11fd,_0x38f439){const _0x4852e9=_0x2604;if(_0x3c11fd['kind']===_0x4852e9(0x11e)){let _0x277e85=_0x3c11fd['anchors'];if(_0x277e85[_0x4852e9(0x104)]===0x0)return[];let _0x47d7e4=K(_0x277e85[0x0],_0x38f439),_0x54d54a=[{'command':'M','points':[_0x47d7e4['x'],_0x47d7e4['y']]}];for(let _0x50ad5e=0x1;_0x50ad5e<_0x277e85['length'];_0x50ad5e++){let _0x37fc89=_0x277e85[_0x50ad5e-0x1],_0x5332cf=_0x277e85[_0x50ad5e],_0x336197=K(_0x37fc89['out']??_0x37fc89,_0x38f439),_0x13a5da=K(_0x5332cf['in']??_0x5332cf,_0x38f439),_0xf3bbdc=K(_0x5332cf,_0x38f439);_0x54d54a['push']({'command':'C','points':[_0x336197['x'],_0x336197['y'],_0x13a5da['x'],_0x13a5da['y'],_0xf3bbdc['x'],_0xf3bbdc['y']]});}if(_0x3c11fd['closed']&&_0x277e85[_0x4852e9(0x104)]>0x1){let _0x333a4b=_0x277e85[_0x277e85[_0x4852e9(0x104)]-0x1],_0x4ac925=_0x277e85[0x0],_0x8e20c7=K(_0x333a4b[_0x4852e9(0xf7)]??_0x333a4b,_0x38f439),_0xfa0070=K(_0x4ac925['in']??_0x4ac925,_0x38f439),_0x30b60a=K(_0x4ac925,_0x38f439);_0x54d54a[_0x4852e9(0xcd)]({'command':'C','points':[_0x8e20c7['x'],_0x8e20c7['y'],_0xfa0070['x'],_0xfa0070['y'],_0x30b60a['x'],_0x30b60a['y']]}),_0x54d54a[_0x4852e9(0xcd)]({'command':'z','points':[]});}return _0x54d54a;}let _0x3d7c97=_0x3c11fd[_0x4852e9(0xd3)]['map'](_0x57561e=>K(_0x57561e,_0x38f439));if(_0x3d7c97[_0x4852e9(0x104)]===0x0)return[];let _0x5a3f9d=[{'command':'M','points':[_0x3d7c97[0x0]['x'],_0x3d7c97[0x0]['y']]}];for(let _0x5ecf7e=0x0;_0x5ecf7e<_0x3d7c97[_0x4852e9(0x104)]-0x1;_0x5ecf7e++){let _0x1e2106=_0x3d7c97[_0x5ecf7e],_0x46c93f=_0x3d7c97[_0x5ecf7e+0x1],_0x3a6f3c=_0x3d7c97[_0x5ecf7e-0x1]??_0x1e2106,_0x272ac6=_0x3d7c97[_0x5ecf7e+0x2]??_0x46c93f,_0x4b1d20={'x':_0x1e2106['x']+(_0x46c93f['x']-_0x3a6f3c['x'])/0x6,'y':_0x1e2106['y']+(_0x46c93f['y']-_0x3a6f3c['y'])/0x6},_0x3658e4={'x':_0x46c93f['x']-(_0x272ac6['x']-_0x1e2106['x'])/0x6,'y':_0x46c93f['y']-(_0x272ac6['y']-_0x1e2106['y'])/0x6};_0x5a3f9d[_0x4852e9(0xcd)]({'command':'C','points':[_0x4b1d20['x'],_0x4b1d20['y'],_0x3658e4['x'],_0x3658e4['y'],_0x46c93f['x'],_0x46c93f['y']]});}return _0x5a3f9d;}function xe(_0x320b0d){const _0x26d092=_0x2604;let {model:_0x2e6d25,sourceModel:_0x1764cb=_0x2e6d25,style:_0x59d69f}=_0x320b0d,_0x5dfce7=_0x320b0d[_0x26d092(0x111)]??_0x2e6d25[_0x26d092(0xff)],_0x48ce05=G(_0x2e6d25),_0x1637fd=_0x2e6d25[_0x26d092(0xff)]===_0x26d092(0x11e)&&_0x5dfce7!==_0x26d092(0x11e)?_0x2e6d25:void 0x0;return{'transform':{..._0x48ce05,'rotation':0x0},'shapeData':ye(_0x2e6d25,_0x59d69f),'ink':{'version':0x1,'tool':_0x5dfce7,'sourceModel':_0x1764cb,..._0x1637fd?{'editModel':_0x1637fd}:{},'normalizedBounds':_0x48ce05}};}var Se=_0x234bb6(0xe4),Ce='1.5.1';function q(_0x38aebd){'@babel/helpers - typeof';const _0x4919af=_0x234bb6;return q=typeof Symbol==_0x4919af(0x108)&&typeof Symbol[_0x4919af(0xfd)]==_0x4919af(0xf2)?function(_0x337300){return typeof _0x337300;}:function(_0x594d95){const _0xefb553=_0x4919af;return _0x594d95&&typeof Symbol==_0xefb553(0x108)&&_0x594d95[_0xefb553(0x125)]===Symbol&&_0x594d95!==Symbol[_0xefb553(0x10a)]?'symbol':typeof _0x594d95;},q(_0x38aebd);}function we(_0x44e13f,_0x58dae6){const _0x52ae95=_0x234bb6;if(q(_0x44e13f)!=_0x52ae95(0xcf)||!_0x44e13f)return _0x44e13f;var _0x544ce6;if(typeof Symbol<'u'&&(_0x544ce6=_0x44e13f[Symbol[_0x52ae95(0xc8)]])!==void 0x0){var _0x2fa087=_0x544ce6[_0x52ae95(0xfb)](_0x44e13f,_0x58dae6||_0x52ae95(0x101));if(q(_0x2fa087)!=_0x52ae95(0xcf))return _0x2fa087;throw TypeError(_0x52ae95(0xd9));}return(_0x58dae6===_0x52ae95(0xf8)?String:Number)(_0x44e13f);}function J(_0xfc3a0d){const _0x34885c=_0x234bb6;var _0x123a48=we(_0xfc3a0d,_0x34885c(0xf8));return q(_0x123a48)=='symbol'?_0x123a48:_0x123a48+'';}function Y(_0x5aad29,_0x3d6dcd,_0x4e2992){return(_0x3d6dcd=J(_0x3d6dcd))in _0x5aad29?Object['defineProperty'](_0x5aad29,_0x3d6dcd,{'value':_0x4e2992,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5aad29[_0x3d6dcd]=_0x4e2992,_0x5aad29;}const X=_0x4bf0fa(_0x234bb6(0xc3));var Te=class{constructor(){const _0x1b7b46=_0x234bb6;Y(this,_0x1b7b46(0xc4),[]);}[_0x234bb6(0xe3)](_0x1cd359){const _0x1f0c2e=_0x234bb6;return this[_0x1f0c2e(0xc4)][_0x1f0c2e(0xcd)](_0x1cd359),_0x27c43d(()=>{const _0x3604de=_0x1f0c2e;let _0x3a0cb8=this[_0x3604de(0xc4)][_0x3604de(0xdc)](_0x1cd359);_0x3a0cb8>=0x0&&this[_0x3604de(0xc4)][_0x3604de(0xe9)](_0x3a0cb8,0x1);});}['beginInkMode'](_0x283ee2){const _0x4a55da=_0x234bb6;for(let _0x3f4f83 of this[_0x4a55da(0xc4)])if(_0x3f4f83[_0x4a55da(0x11b)](_0x283ee2))return!0x0;return!0x1;}async['createCustomShape'](_0xd8bc5d){const _0x250368=_0x234bb6;for(let _0x499a57 of this[_0x250368(0xc4)])if(_0x499a57[_0x250368(0xe1)]&&await _0x499a57['createCustomShape'](_0xd8bc5d))return!0x0;return!0x1;}};const Ee={'id':_0x234bb6(0x100),'type':_0x4b603e[_0x234bb6(0x114)],'handler':(_0x294483,_0x1e725b)=>_0x1e725b?_0x294483[_0x234bb6(0xd5)](X)['beginInkMode'](_0x1e725b):!0x1},Z={};function Q(_0x359797,_0x4c122f){return function(_0xe281b2,_0x279592){_0x4c122f(_0xe281b2,_0x279592,_0x359797);};}function De(_0x18b1b9,_0x5b7305,_0xfeb96b,_0x9e204a){const _0x20e880=_0x234bb6;var _0x3b96ce=arguments[_0x20e880(0x104)],_0x136da2=_0x3b96ce<0x3?_0x5b7305:_0x9e204a===null?_0x9e204a=Object['getOwnPropertyDescriptor'](_0x5b7305,_0xfeb96b):_0x9e204a,_0x296465;if(typeof Reflect==_0x20e880(0xcf)&&typeof Reflect[_0x20e880(0x112)]==_0x20e880(0x108))_0x136da2=Reflect['decorate'](_0x18b1b9,_0x5b7305,_0xfeb96b,_0x9e204a);else{for(var _0x81e108=_0x18b1b9['length']-0x1;_0x81e108>=0x0;_0x81e108--)(_0x296465=_0x18b1b9[_0x81e108])&&(_0x136da2=(_0x3b96ce<0x3?_0x296465(_0x136da2):_0x3b96ce>0x3?_0x296465(_0x5b7305,_0xfeb96b,_0x136da2):_0x296465(_0x5b7305,_0xfeb96b))||_0x136da2);}return _0x3b96ce>0x3&&_0x136da2&&Object[_0x20e880(0xc2)](_0x5b7305,_0xfeb96b,_0x136da2),_0x136da2;}let $=class extends _0x2b18e8{constructor(_0x1c465a=Z,_0x547521,_0x1cc2fd,_0x3382db){const _0x3cc01b=_0x234bb6;super(),this['_config']=_0x1c465a,this[_0x3cc01b(0x124)]=_0x547521,this[_0x3cc01b(0x118)]=_0x1cc2fd,this[_0x3cc01b(0xf1)]=_0x3382db;let {..._0x1a89ac}=_0x10d687({},Z,this[_0x3cc01b(0xd0)]);this[_0x3cc01b(0xf1)][_0x3cc01b(0x10f)](_0x3cc01b(0xe8),_0x1a89ac);}[_0x234bb6(0x120)](){const _0x9e652b=_0x234bb6;[[X,{'useClass':Te}]]['forEach'](_0x4859ca=>this[_0x9e652b(0x124)]['add'](_0x4859ca)),this[_0x9e652b(0xeb)](this['_commandService'][_0x9e652b(0x105)](Ee));}};Y($,_0x234bb6(0x109),_0x234bb6(0xd8)),Y($,_0x234bb6(0xe0),Se),Y($,_0x234bb6(0xf5),Ce),Y($,'type',_0x1ecdfc[_0x234bb6(0xdf)]),$=De([_0x226505(_0x38211f),Q(0x1,_0x1739b1(_0x4929fc)),Q(0x2,_0x171415),Q(0x3,_0x5b3d)],$);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/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3d1ae1=_0x548c;(function(_0x4595cb,_0x5ceb08){const _0x8d041b=_0x548c,_0x3b0bc8=_0x4595cb();while(!![]){try{const _0x1eae38=parseInt(_0x8d041b(0x196))/0x1*(-parseInt(_0x8d041b(0x182))/0x2)+parseInt(_0x8d041b(0x187))/0x3+parseInt(_0x8d041b(0x148))/0x4*(parseInt(_0x8d041b(0x147))/0x5)+-parseInt(_0x8d041b(0x141))/0x6+parseInt(_0x8d041b(0x16b))/0x7+parseInt(_0x8d041b(0x192))/0x8*(parseInt(_0x8d041b(0x191))/0x9)+parseInt(_0x8d041b(0x13e))/0xa*(-parseInt(_0x8d041b(0x18b))/0xb);if(_0x1eae38===_0x5ceb08)break;else _0x3b0bc8['push'](_0x3b0bc8['shift']());}catch(_0x3d36b2){_0x3b0bc8['push'](_0x3b0bc8['shift']());}}}(_0x175f,0x715ca));import{ShapeFillEnum as _0x24531d,ShapeLineCapEnum as _0x1690c1,ShapeLineJoinEnum as _0x163cc1,ShapeLineTypeEnum as _0x49787e,ShapeTypeEnum as _0x83d0f6}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x513a1d}from'@univerjs-pro/license';import{CommandType as _0x32101d,DependentOn as _0x5642da,ICommandService as _0x11df14,IConfigService as _0x19d84c,Inject as _0x58e287,Injector as _0x1c4dea,Plugin as _0x3492da,UniverInstanceType as _0x40e146,createIdentifier as _0x4732b8,merge as _0x559a23,toDisposable as _0x1b55f3}from'@univerjs/core';const g=0.0001;function _(_0x8da05d){return{'x':_0x8da05d['x'],'y':_0x8da05d['y']};}function v(_0x1d0d05){const _0x5393b1=_0x548c;return{..._0x1d0d05,'in':_0x1d0d05['in']?_(_0x1d0d05['in']):void 0x0,'out':_0x1d0d05['out']?_(_0x1d0d05[_0x5393b1(0x18d)]):void 0x0};}function y(_0x493c0a){const _0x21e58f=_0x548c;return{'kind':_0x21e58f(0x172),'closed':_0x493c0a[_0x21e58f(0x146)],'anchors':_0x493c0a[_0x21e58f(0x17f)]['map'](v)};}function b(_0x368b0c,_0x5f2eee,_0x554830){return{'x':_0x368b0c['x']+(_0x5f2eee['x']-_0x368b0c['x'])*_0x554830,'y':_0x368b0c['y']+(_0x5f2eee['y']-_0x368b0c['y'])*_0x554830};}function x(_0x226ffa,_0x2a915b){const _0x38b493=_0x548c;return Math[_0x38b493(0x178)](_0x226ffa['x']-_0x2a915b['x'],_0x226ffa['y']-_0x2a915b['y']);}function S(_0x4909d0){const _0x44a78d=_0x548c;let _0x3ec52c=Math[_0x44a78d(0x178)](_0x4909d0['x'],_0x4909d0['y']);return _0x3ec52c<g?{'x':0x1,'y':0x0}:{'x':_0x4909d0['x']/_0x3ec52c,'y':_0x4909d0['y']/_0x3ec52c};}function C(_0x5e6801,_0x2090c3,_0x28f75f=x(_0x5e6801,_0x2090c3)){let _0xbd8e8=S({'x':_0x5e6801['x']-_0x2090c3['x'],'y':_0x5e6801['y']-_0x2090c3['y']});return{'x':_0x5e6801['x']+_0xbd8e8['x']*_0x28f75f,'y':_0x5e6801['y']+_0xbd8e8['y']*_0x28f75f};}function w(_0x2b0719,_0x26f686){const _0x1150dc=_0x548c;let {anchors:_0x38801a}=_0x2b0719;return _0x38801a[_0x1150dc(0x165)]<0x2||_0x26f686<0x0?null:_0x26f686<_0x38801a['length']-0x1?{'startIndex':_0x26f686,'endIndex':_0x26f686+0x1,'start':_0x38801a[_0x26f686],'end':_0x38801a[_0x26f686+0x1]}:_0x2b0719['closed']&&_0x26f686===_0x38801a['length']-0x1?{'startIndex':_0x38801a[_0x1150dc(0x165)]-0x1,'endIndex':0x0,'start':_0x38801a[_0x38801a[_0x1150dc(0x165)]-0x1],'end':_0x38801a[0x0]}:null;}function T(_0x32ce7e,_0x312723){const _0x4aed7c=_0x548c;let _0x33975a=w(_0x32ce7e,_0x312723);return _0x33975a?[_0x33975a[_0x4aed7c(0x185)],_0x33975a[_0x4aed7c(0x185)]['out']??_0x33975a[_0x4aed7c(0x185)],_0x33975a[_0x4aed7c(0x186)]['in']??_0x33975a[_0x4aed7c(0x186)],_0x33975a[_0x4aed7c(0x186)]]:null;}function te(_0x250f32,_0x1d5e16){const _0x34e2a7=_0x548c;return _0x1d5e16===_0x34e2a7(0x195)?_0x250f32:_0x250f32[_0x1d5e16]??null;}function E(_0x417def,_0x56c3e1,_0x1b68bd){const _0x5b2735=_0x548c;return _0x1b68bd===_0x5b2735(0x195)||_0x417def[_0x5b2735(0x146)]?!0x0:_0x1b68bd==='in'?_0x56c3e1>0x0:_0x56c3e1<_0x417def[_0x5b2735(0x17f)][_0x5b2735(0x165)]-0x1;}function D(_0x5e49e2,_0x1ce22d){let [_0x120582,_0x6e9768,_0x2ec6d6,_0x85aeef]=_0x5e49e2,_0x134cfe=b(_0x120582,_0x6e9768,_0x1ce22d),_0x32b9dd=b(_0x6e9768,_0x2ec6d6,_0x1ce22d),_0x49ae71=b(_0x2ec6d6,_0x85aeef,_0x1ce22d);return b(b(_0x134cfe,_0x32b9dd,_0x1ce22d),b(_0x32b9dd,_0x49ae71,_0x1ce22d),_0x1ce22d);}function ne(_0x54093a,_0x2e9e54){let [_0x23f675,_0x2b04c7,_0x2f3e70,_0x888c]=_0x54093a,_0x12de6d=b(_0x23f675,_0x2b04c7,_0x2e9e54),_0x339c01=b(_0x2b04c7,_0x2f3e70,_0x2e9e54),_0x2e16b1=b(_0x2f3e70,_0x888c,_0x2e9e54),_0x37d758=b(_0x12de6d,_0x339c01,_0x2e9e54),_0x3289be=b(_0x339c01,_0x2e16b1,_0x2e9e54),_0x21f299=b(_0x37d758,_0x3289be,_0x2e9e54);return{'left':[_0x23f675,_0x12de6d,_0x37d758,_0x21f299],'right':[_0x21f299,_0x3289be,_0x2e16b1,_0x888c]};}function O(_0x32c775,_0x31fa01,_0x3a2385){const _0x49462d=_0x548c;let _0x5ecf04=_0x3a2385['x']-_0x31fa01['x'],_0x50e01f=_0x3a2385['y']-_0x31fa01['y'],_0x1a6823=_0x5ecf04*_0x5ecf04+_0x50e01f*_0x50e01f,_0x175b4a=_0x1a6823<=g?0x0:Math[_0x49462d(0x157)](0x0,Math['min'](0x1,((_0x32c775['x']-_0x31fa01['x'])*_0x5ecf04+(_0x32c775['y']-_0x31fa01['y'])*_0x50e01f)/_0x1a6823)),_0x247b7d={'x':_0x31fa01['x']+_0x5ecf04*_0x175b4a,'y':_0x31fa01['y']+_0x50e01f*_0x175b4a};return{'point':_0x247b7d,'ratio':_0x175b4a,'distance':x(_0x32c775,_0x247b7d)};}function re(_0x4f9b6f,_0x5b5742,_0xe7b1ee){return O(_0x4f9b6f,_0x5b5742,_0xe7b1ee)['distance']**0x2;}function k(_0x1a1e9a,_0x3a19ad){const _0x347887=_0x548c;if(_0x1a1e9a[_0x347887(0x165)]<=0x2)return _0x1a1e9a[_0x347887(0x149)](_);let _0x3dcf5d=0x0,_0xaec2c6=0x0,_0x2795b8=_0x1a1e9a[0x0],_0xbd0f54=_0x1a1e9a[_0x1a1e9a[_0x347887(0x165)]-0x1],_0x1ec325=_0x3a19ad*_0x3a19ad;for(let _0x2d56a7=0x1;_0x2d56a7<_0x1a1e9a['length']-0x1;_0x2d56a7++){let _0x32917f=re(_0x1a1e9a[_0x2d56a7],_0x2795b8,_0xbd0f54);_0x32917f>_0x3dcf5d&&(_0x3dcf5d=_0x32917f,_0xaec2c6=_0x2d56a7);}if(_0x3dcf5d<=_0x1ec325)return[_(_0x2795b8),_(_0xbd0f54)];let _0x22b84a=k(_0x1a1e9a[_0x347887(0x175)](0x0,_0xaec2c6+0x1),_0x3a19ad),_0x3656be=k(_0x1a1e9a[_0x347887(0x175)](_0xaec2c6),_0x3a19ad);return[..._0x22b84a[_0x347887(0x175)](0x0,-0x1),..._0x3656be];}function ie(_0x4577a9,_0x3d8702){let _0x2fbc7e=_0x4577a9[_0x3d8702],_0x532d3b=_0x4577a9[_0x3d8702+0x1],_0x2164da=_0x4577a9[_0x3d8702-0x1]??_0x2fbc7e;return{'x':_0x2fbc7e['x']+(_0x532d3b['x']-_0x2164da['x'])/0x6,'y':_0x2fbc7e['y']+(_0x532d3b['y']-_0x2164da['y'])/0x6};}function A(_0x1a7729,_0xacdd3e){let _0x181b61=_0x1a7729[_0xacdd3e],_0x21c90d=_0x1a7729[_0xacdd3e-0x1],_0x4d03c2=_0x1a7729[_0xacdd3e+0x1]??_0x181b61;return{'x':_0x181b61['x']-(_0x4d03c2['x']-_0x21c90d['x'])/0x6,'y':_0x181b61['y']-(_0x4d03c2['y']-_0x21c90d['y'])/0x6};}function j(_0x3e5c27,_0x52ec0d){const _0x3af150=_0x548c;let _0x70f7c3=_0x3e5c27[_0x3af150(0x17f)][_0x52ec0d],_0x8bb52=_0x3e5c27[_0x3af150(0x17f)][_0x52ec0d-0x1]??(_0x3e5c27[_0x3af150(0x146)]?_0x3e5c27[_0x3af150(0x17f)][_0x3e5c27[_0x3af150(0x17f)]['length']-0x1]:null),_0x4e0a47=_0x3e5c27[_0x3af150(0x17f)][_0x52ec0d+0x1]??(_0x3e5c27[_0x3af150(0x146)]?_0x3e5c27['anchors'][0x0]:null),_0x595882=_0x8bb52&&_0x4e0a47?S({'x':_0x4e0a47['x']-_0x8bb52['x'],'y':_0x4e0a47['y']-_0x8bb52['y']}):_0x4e0a47?S({'x':_0x4e0a47['x']-_0x70f7c3['x'],'y':_0x4e0a47['y']-_0x70f7c3['y']}):_0x8bb52?S({'x':_0x70f7c3['x']-_0x8bb52['x'],'y':_0x70f7c3['y']-_0x8bb52['y']}):{'x':0x1,'y':0x0},_0x2a59ae=_0x8bb52&&_0x4e0a47?Math[_0x3af150(0x157)](0x32,x(_0x8bb52,_0x4e0a47)/0x4):0x32;return{'in':{'x':_0x70f7c3['x']-_0x595882['x']*_0x2a59ae,'y':_0x70f7c3['y']-_0x595882['y']*_0x2a59ae},'out':{'x':_0x70f7c3['x']+_0x595882['x']*_0x2a59ae,'y':_0x70f7c3['y']+_0x595882['y']*_0x2a59ae}};}function M(_0x1f61e4,_0x21f8b8){const _0x116f4b=_0x548c;let _0x517cc0=_0x1f61e4[_0x21f8b8],_0x13a71b=_0x21f8b8==='in'?_0x116f4b(0x18d):'in',_0x18be6d=_0x1f61e4[_0x13a71b];_0x517cc0&&(_0x1f61e4[_0x116f4b(0x13b)]===_0x116f4b(0x142)?_0x1f61e4[_0x13a71b]=C(_0x1f61e4,_0x517cc0):_0x1f61e4['pointType']===_0x116f4b(0x15e)&&(_0x1f61e4[_0x13a71b]=C(_0x1f61e4,_0x517cc0,_0x18be6d?x(_0x1f61e4,_0x18be6d):x(_0x1f61e4,_0x517cc0))));}function ae(_0x283629,_0x12a543){const _0x103812=_0x548c;let _0x293d86=y(_0x283629);return!_0x12a543||_0x293d86['closed']||_0x293d86[_0x103812(0x17f)]['length']===0x0||_0x293d86[_0x103812(0x17f)][_0x103812(0x18e)]({'id':_0x103812(0x151),'x':_0x12a543['x'],'y':_0x12a543['y'],'pointType':_0x103812(0x145)}),_0x293d86;}function oe(_0xc3fff6,_0x3f0fe3={}){const _0x3a4925=_0x548c;let _0x247b24=Math[_0x3a4925(0x157)](0x0,_0x3f0fe3[_0x3a4925(0x14f)]??Math[_0x3a4925(0x157)](0x4,_0xc3fff6[_0x3a4925(0x16a)]*0.35)),_0x3adc5d=_0x3f0fe3[_0x3a4925(0x160)]??(_0x5ecf0a=>_0x3a4925(0x190)+_0x5ecf0a),_0x4a7f62=k(_0xc3fff6['points'],_0x247b24),_0x306b17=_0x4a7f62[_0x3a4925(0x149)]((_0x45fe32,_0x392568)=>({'id':_0x3adc5d(_0x392568),'x':_0x45fe32['x'],'y':_0x45fe32['y'],'pointType':_0x3a4925(0x188)}));for(let _0x336e5e=0x0;_0x336e5e<_0x306b17[_0x3a4925(0x165)]-0x1;_0x336e5e++)_0x306b17[_0x336e5e][_0x3a4925(0x18d)]=ie(_0x4a7f62,_0x336e5e),_0x306b17[_0x336e5e+0x1]['in']=A(_0x4a7f62,_0x336e5e+0x1);return{'kind':_0x3a4925(0x172),'closed':!0x1,'anchors':_0x306b17};}function se(_0x246781,_0x1aeabc,_0x25c766){const _0xaa052a=_0x548c;let _0x3e9c9b=null,_0x2e9442=[_0xaa052a(0x195),'in','out'];return _0x246781[_0xaa052a(0x17f)][_0xaa052a(0x168)]((_0x3a7216,_0x5d13e5)=>{const _0x15c0f2=_0xaa052a;_0x2e9442[_0x15c0f2(0x168)](_0x1b1acb=>{if(!E(_0x246781,_0x5d13e5,_0x1b1acb))return;let _0x514467=te(_0x3a7216,_0x1b1acb);if(!_0x514467)return;let _0x4a76e5=x(_0x1aeabc,_0x514467);_0x4a76e5>_0x25c766||_0x3e9c9b&&_0x4a76e5>=_0x3e9c9b['distance']||(_0x3e9c9b={'handle':{'kind':_0x1b1acb,'anchorId':_0x3a7216['id']},'point':_(_0x514467),'distance':_0x4a76e5});});}),_0x3e9c9b;}function ce(_0x223c24,_0x229e83,_0x43d975){const _0x2e3e9e=_0x548c;let _0x17cf67=null,_0x1757e3=_0x223c24['closed']?_0x223c24[_0x2e3e9e(0x17f)][_0x2e3e9e(0x165)]:Math[_0x2e3e9e(0x157)](0x0,_0x223c24[_0x2e3e9e(0x17f)]['length']-0x1);for(let _0x3b7a3f=0x0;_0x3b7a3f<_0x1757e3;_0x3b7a3f++){let _0x8b55a3=T(_0x223c24,_0x3b7a3f);if(!_0x8b55a3)continue;let _0x3708d8=D(_0x8b55a3,0x0);for(let _0x33ce26=0x1;_0x33ce26<=0x20;_0x33ce26++){let _0x1dcf86=D(_0x8b55a3,_0x33ce26/0x20),_0x4c1e34=O(_0x229e83,_0x3708d8,_0x1dcf86),_0x28da0d=(_0x33ce26-0x1+_0x4c1e34[_0x2e3e9e(0x18a)])/0x20;(!_0x17cf67||_0x4c1e34['distance']<_0x17cf67[_0x2e3e9e(0x197)])&&(_0x17cf67={'segmentIndex':_0x3b7a3f,'t':_0x28da0d,'point':_0x4c1e34['point'],'distance':_0x4c1e34[_0x2e3e9e(0x197)]}),_0x3708d8=_0x1dcf86;}}return _0x17cf67&&_0x17cf67[_0x2e3e9e(0x197)]<=_0x43d975?_0x17cf67:null;}function le(_0x2771d7,_0x3d3bdc,_0x4cc051){const _0x4c7e51=_0x548c;let _0x3198f6=y(_0x2771d7),_0x23e912=w(_0x3198f6,_0x3d3bdc[_0x4c7e51(0x194)]),_0x43e6d7=T(_0x3198f6,_0x3d3bdc[_0x4c7e51(0x194)]);if(!_0x23e912||!_0x43e6d7)return _0x3198f6;let _0x560d49=ne(_0x43e6d7,Math[_0x4c7e51(0x157)](0x0,Math[_0x4c7e51(0x17a)](0x1,_0x3d3bdc['t']))),_0x5e83cd={'id':_0x4cc051(),'x':_0x560d49[_0x4c7e51(0x15f)][0x3]['x'],'y':_0x560d49[_0x4c7e51(0x15f)][0x3]['y'],'in':_(_0x560d49[_0x4c7e51(0x15f)][0x2]),'out':_(_0x560d49[_0x4c7e51(0x16c)][0x1]),'pointType':_0x4c7e51(0x188)};return _0x3198f6[_0x4c7e51(0x17f)][_0x23e912[_0x4c7e51(0x143)]][_0x4c7e51(0x18d)]=_(_0x560d49[_0x4c7e51(0x15f)][0x1]),_0x3198f6[_0x4c7e51(0x17f)][_0x23e912[_0x4c7e51(0x153)]]['in']=_(_0x560d49[_0x4c7e51(0x16c)][0x2]),_0x3198f6[_0x4c7e51(0x17f)]['splice'](_0x23e912[_0x4c7e51(0x143)]+0x1,0x0,_0x5e83cd),_0x3198f6;}function ue(_0x53f3cb,_0x5950f8){const _0xa58fa0=_0x548c;let _0x3bafca=y(_0x53f3cb);return _0x3bafca[_0xa58fa0(0x17f)]=_0x3bafca[_0xa58fa0(0x17f)]['filter'](_0x5d6072=>_0x5d6072['id']!==_0x5950f8),_0x3bafca[_0xa58fa0(0x146)]&&_0x3bafca[_0xa58fa0(0x17f)]['length']<0x3&&(_0x3bafca[_0xa58fa0(0x146)]=!0x1),_0x3bafca;}function N(_0xd82cb3,_0x30cea1,_0x19a8cb){const _0x1f78ec=_0x548c;let _0x25ab49=y(_0xd82cb3),_0x4a842f=_0x25ab49[_0x1f78ec(0x17f)][_0x1f78ec(0x167)](_0x3a276f=>_0x3a276f['id']===_0x30cea1),_0x342618=_0x25ab49[_0x1f78ec(0x17f)][_0x4a842f];if(!_0x342618)return _0x25ab49;if(_0x342618[_0x1f78ec(0x13b)]=_0x19a8cb,_0x19a8cb===_0x1f78ec(0x145))return delete _0x342618['in'],delete _0x342618[_0x1f78ec(0x18d)],_0x25ab49;let _0x76bc40=j(_0x25ab49,_0x4a842f);if(_0x342618['in']=_0x342618['in']?_(_0x342618['in']):_0x76bc40['in'],_0x342618[_0x1f78ec(0x18d)]=_0x342618[_0x1f78ec(0x18d)]?_(_0x342618['out']):_0x76bc40[_0x1f78ec(0x18d)],_0x19a8cb==='symmetric'){let _0x162ddb=Math['max'](x(_0x342618,_0x342618['in']),x(_0x342618,_0x342618[_0x1f78ec(0x18d)]),0x32),_0x22a0d9=S({'x':_0x342618[_0x1f78ec(0x18d)]['x']-_0x342618['x'],'y':_0x342618[_0x1f78ec(0x18d)]['y']-_0x342618['y']});_0x342618[_0x1f78ec(0x18d)]={'x':_0x342618['x']+_0x22a0d9['x']*_0x162ddb,'y':_0x342618['y']+_0x22a0d9['y']*_0x162ddb},_0x342618['in']={'x':_0x342618['x']-_0x22a0d9['x']*_0x162ddb,'y':_0x342618['y']-_0x22a0d9['y']*_0x162ddb};}else _0x19a8cb===_0x1f78ec(0x15e)&&M(_0x342618,'out');return _0x25ab49;}function P(_0x5e9f65,_0x3cfb5c){const _0x20a8ed=_0x548c;let _0x501687=_0x5e9f65[_0x20a8ed(0x17f)][_0x20a8ed(0x166)](_0x3d78e3=>_0x3d78e3['id']===_0x3cfb5c),_0x32f724=(_0x501687==null?void 0x0:_0x501687[_0x20a8ed(0x13b)])??_0x20a8ed(0x145);return N(_0x5e9f65,_0x3cfb5c,_0x32f724===_0x20a8ed(0x145)?_0x20a8ed(0x15e):_0x32f724===_0x20a8ed(0x15e)?_0x20a8ed(0x142):_0x32f724===_0x20a8ed(0x142)?'free':'corner');}function F(_0x251de9,_0x57868a,_0x530db9){const _0x5296f1=_0x548c;let _0x38059b=y(_0x251de9),_0x331f95=_0x38059b[_0x5296f1(0x17f)]['find'](_0x1670a8=>_0x1670a8['id']===_0x57868a[_0x5296f1(0x16f)]);if(!_0x331f95)return _0x38059b;if(_0x57868a[_0x5296f1(0x177)]===_0x5296f1(0x195)){let _0x1dd4f6={'x':_0x530db9['x']-_0x331f95['x'],'y':_0x530db9['y']-_0x331f95['y']};return _0x331f95['x']=_0x530db9['x'],_0x331f95['y']=_0x530db9['y'],_0x331f95['in']&&={'x':_0x331f95['in']['x']+_0x1dd4f6['x'],'y':_0x331f95['in']['y']+_0x1dd4f6['y']},_0x331f95[_0x5296f1(0x18d)]&&={'x':_0x331f95[_0x5296f1(0x18d)]['x']+_0x1dd4f6['x'],'y':_0x331f95['out']['y']+_0x1dd4f6['y']},_0x38059b;}return _0x331f95[_0x57868a[_0x5296f1(0x177)]]=_(_0x530db9),_0x331f95[_0x5296f1(0x13b)]==='corner'&&(_0x331f95[_0x5296f1(0x13b)]='free'),M(_0x331f95,_0x57868a[_0x5296f1(0x177)]),_0x38059b;}const I=1e-9;function _0x548c(_0x463389,_0x3c97e9){_0x463389=_0x463389-0x139;const _0x175f2e=_0x175f();let _0x548c52=_0x175f2e[_0x463389];return _0x548c52;}function _0x175f(){const _0xcb906e=['1865rTHrNa','distance','string','decorate','toPrimitive','beginInkMode','pointType','onStarting','abs','1886360hiTzRL','fillColor','tool','2496546TYmiXy','symmetric','startIndex','symbol','corner','closed','278470sLxwXY','12fSYZiO','map','norm','registerCommand','_adapters','sqrt','function','tolerance','defineProperty','__ink-preview-anchor__','_config','endIndex','createCustomShape','object','splice','max','NoFill','#f54a45','join','ink.host-adapter.service','iterator','call','smooth','left','createId','registerAdapter','UNIVER_INK_PLUGIN','prototype','top','length','find','findIndex','forEach','setConfig','width','5959569COYMVB','right','Round','packageName','anchorId','ink.config','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pen','SolidLine','_injector','slice','points','kind','hypot','disposeWithMe','min','pluginName','none','add','opacity','anchors','height','round','994Pjtwmd','@univerjs-pro/ink','color','start','end','2553741QZQMIW','free','getOwnPropertyDescriptor','ratio','33cXJBjf','_configService','out','push','get','ink-centerline-','342FLcMXg','106008SuWSkL','constructor','segmentIndex','anchor'];_0x175f=function(){return _0xcb906e;};return _0x175f();}function L(_0x3912cf){const _0x462100=_0x548c;let _0x24cbbb=Math[_0x462100(0x181)](_0x3912cf*0x2710)/0x2710;return Object['is'](_0x24cbbb,-0x0)?'0':String(_0x24cbbb);}function R(_0x79b424){return L(_0x79b424['x'])+'\x20'+L(_0x79b424['y']);}function z(_0x448a17,_0x1df2fc){return{'x':_0x448a17['x']-_0x1df2fc['x'],'y':_0x448a17['y']-_0x1df2fc['y']};}function B(_0x59f00b,_0x40eb63,_0x366ac0,_0x463f32,_0x5ee7a3){let _0x1137e9=0x1-_0x5ee7a3;return{'x':_0x1137e9*_0x1137e9*_0x1137e9*_0x59f00b['x']+0x3*_0x1137e9*_0x1137e9*_0x5ee7a3*_0x40eb63['x']+0x3*_0x1137e9*_0x5ee7a3*_0x5ee7a3*_0x366ac0['x']+_0x5ee7a3*_0x5ee7a3*_0x5ee7a3*_0x463f32['x'],'y':_0x1137e9*_0x1137e9*_0x1137e9*_0x59f00b['y']+0x3*_0x1137e9*_0x1137e9*_0x5ee7a3*_0x40eb63['y']+0x3*_0x1137e9*_0x5ee7a3*_0x5ee7a3*_0x366ac0['y']+_0x5ee7a3*_0x5ee7a3*_0x5ee7a3*_0x463f32['y']};}function V(_0x55ecb5,_0x1b0abf,_0x4a3076,_0x21632e){const _0x53b32f=_0x548c;let _0x40da36=-_0x55ecb5+0x3*_0x1b0abf-0x3*_0x4a3076+_0x21632e,_0x3c137d=0x3*_0x55ecb5-0x6*_0x1b0abf+0x3*_0x4a3076,_0x5d1ba2=-0x3*_0x55ecb5+0x3*_0x1b0abf,_0x258063=[];if(Math['abs'](_0x40da36)<I){if(Math[_0x53b32f(0x13d)](_0x3c137d)<I)return _0x258063;let _0x7c9215=-_0x5d1ba2/(0x2*_0x3c137d);return _0x7c9215>0x0&&_0x7c9215<0x1&&_0x258063[_0x53b32f(0x18e)](_0x7c9215),_0x258063;}let _0x33755f=_0x3c137d*_0x3c137d-0x3*_0x40da36*_0x5d1ba2;if(_0x33755f<0x0)return _0x258063;let _0x338337=Math[_0x53b32f(0x14d)](Math[_0x53b32f(0x157)](0x0,_0x33755f)),_0x254ad8=(-_0x3c137d+_0x338337)/(0x3*_0x40da36),_0x2c3f47=(-_0x3c137d-_0x338337)/(0x3*_0x40da36);return _0x254ad8>0x0&&_0x254ad8<0x1&&_0x258063['push'](_0x254ad8),_0x2c3f47>0x0&&_0x2c3f47<0x1&&Math[_0x53b32f(0x13d)](_0x2c3f47-_0x254ad8)>I&&_0x258063[_0x53b32f(0x18e)](_0x2c3f47),_0x258063;}function H(_0x2107e3,_0x3f09f4,_0x53149f,_0x41a2c8,_0x138f12){const _0x1c1244=_0x548c;_0x2107e3[_0x1c1244(0x18e)](_0x3f09f4,_0x138f12),new Set([...V(_0x3f09f4['x'],_0x53149f['x'],_0x41a2c8['x'],_0x138f12['x']),...V(_0x3f09f4['y'],_0x53149f['y'],_0x41a2c8['y'],_0x138f12['y'])])[_0x1c1244(0x168)](_0x435656=>{const _0x131b96=_0x1c1244;_0x2107e3[_0x131b96(0x18e)](B(_0x3f09f4,_0x53149f,_0x41a2c8,_0x138f12,_0x435656));});}function U(_0xa9c14){const _0x310e72=_0x548c;let _0x4433c5=_0xa9c14[_0x310e72(0x17f)];if(_0x4433c5[_0x310e72(0x165)]<=0x1)return _0x4433c5;let _0x57be9e=[];for(let _0x505498=0x1;_0x505498<_0x4433c5['length'];_0x505498++){let _0x5bcb82=_0x4433c5[_0x505498-0x1],_0x54a81a=_0x4433c5[_0x505498];H(_0x57be9e,_0x5bcb82,_0x5bcb82[_0x310e72(0x18d)]??_0x5bcb82,_0x54a81a['in']??_0x54a81a,_0x54a81a);}if(_0xa9c14[_0x310e72(0x146)]&&_0x4433c5[_0x310e72(0x165)]>0x1){let _0x4299e3=_0x4433c5[_0x4433c5[_0x310e72(0x165)]-0x1],_0x429468=_0x4433c5[0x0];H(_0x57be9e,_0x4299e3,_0x4299e3[_0x310e72(0x18d)]??_0x4299e3,_0x429468['in']??_0x429468,_0x429468);}return _0x57be9e;}function de(_0x12f00f){const _0x278160=_0x548c;let _0x14a5f9=_0x12f00f[_0x278160(0x176)];if(_0x14a5f9[_0x278160(0x165)]<=0x1)return _0x14a5f9;let _0x1a19ea=[];for(let _0x4cf4ca=0x0;_0x4cf4ca<_0x14a5f9['length']-0x1;_0x4cf4ca++){let _0x1e1991=_0x14a5f9[_0x4cf4ca],_0x2a7663=_0x14a5f9[_0x4cf4ca+0x1],_0x10eca0=_0x14a5f9[_0x4cf4ca-0x1]??_0x1e1991,_0x2182da=_0x14a5f9[_0x4cf4ca+0x2]??_0x2a7663;H(_0x1a19ea,_0x1e1991,{'x':_0x1e1991['x']+(_0x2a7663['x']-_0x10eca0['x'])/0x6,'y':_0x1e1991['y']+(_0x2a7663['y']-_0x10eca0['y'])/0x6},{'x':_0x2a7663['x']-(_0x2182da['x']-_0x1e1991['x'])/0x6,'y':_0x2a7663['y']-(_0x2182da['y']-_0x1e1991['y'])/0x6},_0x2a7663);}return _0x1a19ea;}function fe(_0x312951){const _0x12f37d=_0x548c;return _0x312951[_0x12f37d(0x177)]===_0x12f37d(0x172)?U(_0x312951):de(_0x312951);}function W(_0x269ab9){const _0x19db01=_0x548c;let _0x3f6f12=Math[_0x19db01(0x181)](_0x269ab9*0x2710)/0x2710;return Object['is'](_0x3f6f12,-0x0)?0x0:_0x3f6f12;}function G(_0x4cc0f5){const _0x1ffae0=_0x548c;let _0x2c35bd=fe(_0x4cc0f5);if(_0x2c35bd[_0x1ffae0(0x165)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x42336a=Math[_0x1ffae0(0x17a)](..._0x2c35bd['map'](_0x46f2c4=>_0x46f2c4['x'])),_0x37f97d=Math[_0x1ffae0(0x17a)](..._0x2c35bd[_0x1ffae0(0x149)](_0x404e7a=>_0x404e7a['y'])),_0x418846=Math[_0x1ffae0(0x157)](..._0x2c35bd[_0x1ffae0(0x149)](_0x132e24=>_0x132e24['x'])),_0x49881c=Math[_0x1ffae0(0x157)](..._0x2c35bd[_0x1ffae0(0x149)](_0x271961=>_0x271961['y']));return{'left':W(_0x42336a),'top':W(_0x37f97d),'width':W(Math[_0x1ffae0(0x157)](0x1,_0x418846-_0x42336a)),'height':W(Math[_0x1ffae0(0x157)](0x1,_0x49881c-_0x37f97d))};}function pe(_0x4d83ad,_0x16e7ed){const _0x4feee1=_0x548c;let _0x27ba28=_0x4d83ad['anchors'];if(_0x27ba28['length']===0x0)return'';let _0x3aade1=['M\x20'+R(z(_0x27ba28[0x0],_0x16e7ed))];for(let _0x13f5d3=0x1;_0x13f5d3<_0x27ba28[_0x4feee1(0x165)];_0x13f5d3++){let _0x47f92d=_0x27ba28[_0x13f5d3-0x1],_0x4e2cbc=_0x27ba28[_0x13f5d3],_0x304b6a=_0x47f92d['out']??_0x47f92d,_0x27457a=_0x4e2cbc['in']??_0x4e2cbc;_0x3aade1['push']('C\x20'+R(z(_0x304b6a,_0x16e7ed))+'\x20'+R(z(_0x27457a,_0x16e7ed))+'\x20'+R(z(_0x4e2cbc,_0x16e7ed)));}if(_0x4d83ad[_0x4feee1(0x146)]&&_0x27ba28['length']>0x1){let _0x59a6b5=_0x27ba28[_0x27ba28[_0x4feee1(0x165)]-0x1],_0x208fbb=_0x27ba28[0x0],_0x1c842b=_0x59a6b5[_0x4feee1(0x18d)]??_0x59a6b5,_0x2207ef=_0x208fbb['in']??_0x208fbb;_0x3aade1[_0x4feee1(0x18e)]('C\x20'+R(z(_0x1c842b,_0x16e7ed))+'\x20'+R(z(_0x2207ef,_0x16e7ed))+'\x20'+R(z(_0x208fbb,_0x16e7ed))),_0x3aade1[_0x4feee1(0x18e)]('Z');}return _0x3aade1[_0x4feee1(0x15a)]('\x20');}function me(_0x670f0d,_0x21a73d){const _0x123db2=_0x548c;let _0xbe8f80=_0x670f0d[_0x123db2(0x176)]['map'](_0x185d26=>z(_0x185d26,_0x21a73d));if(_0xbe8f80['length']===0x0)return'';if(_0xbe8f80[_0x123db2(0x165)]===0x1)return'M\x20'+R(_0xbe8f80[0x0]);let _0x471afa=['M\x20'+R(_0xbe8f80[0x0])];for(let _0x512db5=0x0;_0x512db5<_0xbe8f80[_0x123db2(0x165)]-0x1;_0x512db5++){let _0x4ea6a5=_0xbe8f80[_0x512db5],_0x5c215d=_0xbe8f80[_0x512db5+0x1],_0x273b73=_0xbe8f80[_0x512db5-0x1]??_0x4ea6a5,_0x42116e=_0xbe8f80[_0x512db5+0x2]??_0x5c215d,_0x56d354={'x':_0x4ea6a5['x']+(_0x5c215d['x']-_0x273b73['x'])/0x6,'y':_0x4ea6a5['y']+(_0x5c215d['y']-_0x273b73['y'])/0x6},_0x408e2e={'x':_0x5c215d['x']-(_0x42116e['x']-_0x4ea6a5['x'])/0x6,'y':_0x5c215d['y']-(_0x42116e['y']-_0x4ea6a5['y'])/0x6};_0x471afa[_0x123db2(0x18e)]('C\x20'+R(_0x56d354)+'\x20'+R(_0x408e2e)+'\x20'+R(_0x5c215d));}return _0x471afa[_0x123db2(0x15a)]('\x20');}function he(_0x5997b6,_0x25a7f0){const _0x572710=_0x548c;return _0x5997b6[_0x572710(0x177)]===_0x572710(0x172)?pe(_0x5997b6,_0x25a7f0):me(_0x5997b6,_0x25a7f0);}function ge(_0x1683c5,_0x4c7dd2){const _0x3cb34b=_0x548c;return _0x4c7dd2!=null&&_0x4c7dd2['color']?_0x4c7dd2[_0x3cb34b(0x184)]:_0x1683c5[_0x3cb34b(0x177)]===_0x3cb34b(0x172)?_0x3cb34b(0x159):_0x1683c5[_0x3cb34b(0x184)];}function _e(_0x4da993,_0x51933c){const _0x5b8700=_0x548c;return(_0x51933c==null?void 0x0:_0x51933c[_0x5b8700(0x16a)])===void 0x0?_0x4da993['kind']==='pen'?0x2:_0x4da993[_0x5b8700(0x16a)]:_0x51933c[_0x5b8700(0x16a)];}function ve(_0x13be21,_0x461fdb){const _0x236d36=_0x548c;return(_0x461fdb==null?void 0x0:_0x461fdb[_0x236d36(0x17e)])===void 0x0?_0x13be21['kind']===_0x236d36(0x172)?void 0x0:_0x13be21['opacity']:_0x461fdb['opacity'];}function ye(_0x2f58d3,_0x1f0707){const _0x5907c9=_0x548c;let _0x46e547=G(_0x2f58d3),_0x5e01e0=he(_0x2f58d3,{'x':_0x46e547[_0x5907c9(0x15f)],'y':_0x46e547[_0x5907c9(0x164)]}),_0x56d186=_0x2f58d3[_0x5907c9(0x177)]===_0x5907c9(0x172)&&_0x2f58d3[_0x5907c9(0x146)],_0x7b75f1=_0x1f0707==null?void 0x0:_0x1f0707[_0x5907c9(0x13f)];return{'shapeType':_0x83d0f6['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x46e547['width'],'h':_0x46e547[_0x5907c9(0x180)],'fill':_0x56d186?_0x5907c9(0x14a):_0x5907c9(0x17c),'stroke':!0x0,'data':_0x5e01e0,'dataArray':be(_0x2f58d3,{'x':_0x46e547['left'],'y':_0x46e547[_0x5907c9(0x164)]})}]},'fill':_0x56d186&&_0x7b75f1?{'color':_0x7b75f1,'fillType':_0x24531d['SolidFill']}:{'fillType':_0x24531d[_0x5907c9(0x158)]},'stroke':{'color':ge(_0x2f58d3,_0x1f0707),'width':_e(_0x2f58d3,_0x1f0707),'opacity':ve(_0x2f58d3,_0x1f0707),'lineStrokeType':_0x49787e[_0x5907c9(0x173)],'capType':_0x1690c1[_0x5907c9(0x16d)],'lineJoinType':_0x163cc1[_0x5907c9(0x16d)]}};}function K(_0xf19315,_0x49c5f9){return{'x':_0xf19315['x']-_0x49c5f9['x'],'y':_0xf19315['y']-_0x49c5f9['y']};}function be(_0x48bea4,_0x4d03fd){const _0x389b73=_0x548c;if(_0x48bea4['kind']===_0x389b73(0x172)){let _0x3b6b85=_0x48bea4['anchors'];if(_0x3b6b85[_0x389b73(0x165)]===0x0)return[];let _0x1d1927=K(_0x3b6b85[0x0],_0x4d03fd),_0x3dff4c=[{'command':'M','points':[_0x1d1927['x'],_0x1d1927['y']]}];for(let _0x3c76b9=0x1;_0x3c76b9<_0x3b6b85[_0x389b73(0x165)];_0x3c76b9++){let _0x50c103=_0x3b6b85[_0x3c76b9-0x1],_0x31f445=_0x3b6b85[_0x3c76b9],_0x324dd6=K(_0x50c103[_0x389b73(0x18d)]??_0x50c103,_0x4d03fd),_0x433463=K(_0x31f445['in']??_0x31f445,_0x4d03fd),_0x2e2f85=K(_0x31f445,_0x4d03fd);_0x3dff4c['push']({'command':'C','points':[_0x324dd6['x'],_0x324dd6['y'],_0x433463['x'],_0x433463['y'],_0x2e2f85['x'],_0x2e2f85['y']]});}if(_0x48bea4[_0x389b73(0x146)]&&_0x3b6b85[_0x389b73(0x165)]>0x1){let _0x430726=_0x3b6b85[_0x3b6b85['length']-0x1],_0x4b41eb=_0x3b6b85[0x0],_0x558645=K(_0x430726[_0x389b73(0x18d)]??_0x430726,_0x4d03fd),_0x5471ba=K(_0x4b41eb['in']??_0x4b41eb,_0x4d03fd),_0x1cbf33=K(_0x4b41eb,_0x4d03fd);_0x3dff4c[_0x389b73(0x18e)]({'command':'C','points':[_0x558645['x'],_0x558645['y'],_0x5471ba['x'],_0x5471ba['y'],_0x1cbf33['x'],_0x1cbf33['y']]}),_0x3dff4c['push']({'command':'z','points':[]});}return _0x3dff4c;}let _0x3f44b5=_0x48bea4[_0x389b73(0x176)][_0x389b73(0x149)](_0x35ad4c=>K(_0x35ad4c,_0x4d03fd));if(_0x3f44b5[_0x389b73(0x165)]===0x0)return[];let _0x848fac=[{'command':'M','points':[_0x3f44b5[0x0]['x'],_0x3f44b5[0x0]['y']]}];for(let _0x4814fa=0x0;_0x4814fa<_0x3f44b5[_0x389b73(0x165)]-0x1;_0x4814fa++){let _0x310dfd=_0x3f44b5[_0x4814fa],_0x4c840b=_0x3f44b5[_0x4814fa+0x1],_0x2741f6=_0x3f44b5[_0x4814fa-0x1]??_0x310dfd,_0x10c315=_0x3f44b5[_0x4814fa+0x2]??_0x4c840b,_0x53e7d8={'x':_0x310dfd['x']+(_0x4c840b['x']-_0x2741f6['x'])/0x6,'y':_0x310dfd['y']+(_0x4c840b['y']-_0x2741f6['y'])/0x6},_0x4c6d22={'x':_0x4c840b['x']-(_0x10c315['x']-_0x310dfd['x'])/0x6,'y':_0x4c840b['y']-(_0x10c315['y']-_0x310dfd['y'])/0x6};_0x848fac[_0x389b73(0x18e)]({'command':'C','points':[_0x53e7d8['x'],_0x53e7d8['y'],_0x4c6d22['x'],_0x4c6d22['y'],_0x4c840b['x'],_0x4c840b['y']]});}return _0x848fac;}function xe(_0x4ade05){const _0x2ff8eb=_0x548c;let {model:_0x568a23,sourceModel:_0x336a2c=_0x568a23,style:_0x4764d4}=_0x4ade05,_0x4760a2=_0x4ade05[_0x2ff8eb(0x140)]??_0x568a23[_0x2ff8eb(0x177)],_0x3581da=G(_0x568a23),_0x17c4f0=_0x568a23[_0x2ff8eb(0x177)]===_0x2ff8eb(0x172)&&_0x4760a2!=='pen'?_0x568a23:void 0x0;return{'transform':{..._0x3581da,'rotation':0x0},'shapeData':ye(_0x568a23,_0x4764d4),'ink':{'version':0x1,'tool':_0x4760a2,'sourceModel':_0x336a2c,..._0x17c4f0?{'editModel':_0x17c4f0}:{},'normalizedBounds':_0x3581da}};}var Se=_0x3d1ae1(0x183),Ce='1.4.0';function q(_0x57ab12){'@babel/helpers - typeof';const _0x423abd=_0x3d1ae1;return q=typeof Symbol==_0x423abd(0x14e)&&typeof Symbol[_0x423abd(0x15c)]==_0x423abd(0x144)?function(_0x299f59){return typeof _0x299f59;}:function(_0x1537fa){const _0x1ae886=_0x423abd;return _0x1537fa&&typeof Symbol==_0x1ae886(0x14e)&&_0x1537fa[_0x1ae886(0x193)]===Symbol&&_0x1537fa!==Symbol[_0x1ae886(0x163)]?_0x1ae886(0x144):typeof _0x1537fa;},q(_0x57ab12);}function we(_0x50fe8b,_0x2e6e2a){const _0xb6ca98=_0x3d1ae1;if(q(_0x50fe8b)!=_0xb6ca98(0x155)||!_0x50fe8b)return _0x50fe8b;var _0x17c1ea=_0x50fe8b[Symbol[_0xb6ca98(0x139)]];if(_0x17c1ea!==void 0x0){var _0x191c8e=_0x17c1ea[_0xb6ca98(0x15d)](_0x50fe8b,_0x2e6e2a||'default');if(q(_0x191c8e)!='object')return _0x191c8e;throw TypeError(_0xb6ca98(0x171));}return(_0x2e6e2a===_0xb6ca98(0x198)?String:Number)(_0x50fe8b);}function J(_0x1b8baa){const _0x4d794c=_0x3d1ae1;var _0xae8e05=we(_0x1b8baa,_0x4d794c(0x198));return q(_0xae8e05)==_0x4d794c(0x144)?_0xae8e05:_0xae8e05+'';}function Y(_0x552527,_0x4dc04f,_0x6109f0){const _0x5720f1=_0x3d1ae1;return(_0x4dc04f=J(_0x4dc04f))in _0x552527?Object[_0x5720f1(0x150)](_0x552527,_0x4dc04f,{'value':_0x6109f0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x552527[_0x4dc04f]=_0x6109f0,_0x552527;}const X=_0x4732b8(_0x3d1ae1(0x15b));var Te=class{constructor(){const _0x1ed765=_0x3d1ae1;Y(this,_0x1ed765(0x14c),[]);}[_0x3d1ae1(0x161)](_0xe547e7){const _0x599698=_0x3d1ae1;return this[_0x599698(0x14c)][_0x599698(0x18e)](_0xe547e7),_0x1b55f3(()=>{const _0x192d7a=_0x599698;let _0x39183b=this[_0x192d7a(0x14c)]['indexOf'](_0xe547e7);_0x39183b>=0x0&&this[_0x192d7a(0x14c)][_0x192d7a(0x156)](_0x39183b,0x1);});}[_0x3d1ae1(0x13a)](_0x731f26){const _0x419f53=_0x3d1ae1;for(let _0x3e174d of this[_0x419f53(0x14c)])if(_0x3e174d[_0x419f53(0x13a)](_0x731f26))return!0x0;return!0x1;}async[_0x3d1ae1(0x154)](_0x1c1d4f){const _0x34c7c2=_0x3d1ae1;for(let _0x546e7a of this['_adapters'])if(_0x546e7a['createCustomShape']&&await _0x546e7a[_0x34c7c2(0x154)](_0x1c1d4f))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x32101d['OPERATION'],'handler':(_0x629601,_0x49dee0)=>_0x49dee0?_0x629601[_0x3d1ae1(0x18f)](X)['beginInkMode'](_0x49dee0):!0x1},Z={};function Q(_0x7b9356,_0x2bf4ba){return function(_0x30262e,_0x11867e){_0x2bf4ba(_0x30262e,_0x11867e,_0x7b9356);};}function De(_0x209f45,_0x3173b9,_0x20ef9c,_0x82089f){const _0x52423d=_0x3d1ae1;var _0x2739a9=arguments[_0x52423d(0x165)],_0x56079f=_0x2739a9<0x3?_0x3173b9:_0x82089f===null?_0x82089f=Object[_0x52423d(0x189)](_0x3173b9,_0x20ef9c):_0x82089f,_0x4ad719;if(typeof Reflect==_0x52423d(0x155)&&typeof Reflect[_0x52423d(0x199)]==_0x52423d(0x14e))_0x56079f=Reflect[_0x52423d(0x199)](_0x209f45,_0x3173b9,_0x20ef9c,_0x82089f);else{for(var _0x59e956=_0x209f45[_0x52423d(0x165)]-0x1;_0x59e956>=0x0;_0x59e956--)(_0x4ad719=_0x209f45[_0x59e956])&&(_0x56079f=(_0x2739a9<0x3?_0x4ad719(_0x56079f):_0x2739a9>0x3?_0x4ad719(_0x3173b9,_0x20ef9c,_0x56079f):_0x4ad719(_0x3173b9,_0x20ef9c))||_0x56079f);}return _0x2739a9>0x3&&_0x56079f&&Object['defineProperty'](_0x3173b9,_0x20ef9c,_0x56079f),_0x56079f;}let $=class extends _0x3492da{constructor(_0x5d442c=Z,_0xc5c1df,_0x31a399,_0x334337){const _0x3cf64f=_0x3d1ae1;super(),this[_0x3cf64f(0x152)]=_0x5d442c,this['_injector']=_0xc5c1df,this['_commandService']=_0x31a399,this['_configService']=_0x334337;let {..._0x5bbe85}=_0x559a23({},Z,this[_0x3cf64f(0x152)]);this[_0x3cf64f(0x18c)][_0x3cf64f(0x169)](_0x3cf64f(0x170),_0x5bbe85);}[_0x3d1ae1(0x13c)](){const _0x512490=_0x3d1ae1;[[X,{'useClass':Te}]][_0x512490(0x168)](_0x12cf66=>this[_0x512490(0x174)][_0x512490(0x17d)](_0x12cf66)),this[_0x512490(0x179)](this['_commandService'][_0x512490(0x14b)](Ee));}};Y($,_0x3d1ae1(0x17b),_0x3d1ae1(0x162)),Y($,_0x3d1ae1(0x16e),Se),Y($,'version',Ce),Y($,'type',_0x40e146['UNIVER_UNKNOWN']),$=De([_0x5642da(_0x513a1d),Q(0x1,_0x58e287(_0x1c4dea)),Q(0x2,_0x11df14),Q(0x3,_0x19d84c)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
1
+ const _0x234bb6=_0x2604;(function(_0x49148a,_0x2f325b){const _0x40c754=_0x2604,_0x2ac5de=_0x49148a();while(!![]){try{const _0x47c6eb=parseInt(_0x40c754(0x117))/0x1*(-parseInt(_0x40c754(0x110))/0x2)+parseInt(_0x40c754(0xdb))/0x3+-parseInt(_0x40c754(0x11a))/0x4*(parseInt(_0x40c754(0xee))/0x5)+parseInt(_0x40c754(0x11c))/0x6*(-parseInt(_0x40c754(0x122))/0x7)+parseInt(_0x40c754(0xf3))/0x8+parseInt(_0x40c754(0xc1))/0x9*(parseInt(_0x40c754(0x121))/0xa)+parseInt(_0x40c754(0x10e))/0xb;if(_0x47c6eb===_0x2f325b)break;else _0x2ac5de['push'](_0x2ac5de['shift']());}catch(_0x2d66a4){_0x2ac5de['push'](_0x2ac5de['shift']());}}}(_0x1afd,0x2d1c9));import{ShapeFillEnum as _0x137e22,ShapeLineCapEnum as _0x5f227b,ShapeLineJoinEnum as _0x2cfe25,ShapeLineTypeEnum as _0x3708a3,ShapeTypeEnum as _0x1d5fb3}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x38211f}from'@univerjs-pro/license';import{CommandType as _0x4b603e,DependentOn as _0x226505,ICommandService as _0x171415,IConfigService as _0x5b3d,Inject as _0x1739b1,Injector as _0x4929fc,Plugin as _0x2b18e8,UniverInstanceType as _0x1ecdfc,createIdentifier as _0x4bf0fa,merge as _0x10d687,toDisposable as _0x27c43d}from'@univerjs/core';const g=0.0001;function _(_0x525f4e){return{'x':_0x525f4e['x'],'y':_0x525f4e['y']};}function v(_0x1109a3){const _0x457304=_0x2604;return{..._0x1109a3,'in':_0x1109a3['in']?_(_0x1109a3['in']):void 0x0,'out':_0x1109a3[_0x457304(0xf7)]?_(_0x1109a3[_0x457304(0xf7)]):void 0x0};}function y(_0x1f207c){const _0x3ae541=_0x2604;return{'kind':_0x3ae541(0x11e),'closed':_0x1f207c[_0x3ae541(0x103)],'anchors':_0x1f207c[_0x3ae541(0xf4)]['map'](v)};}function _0x2604(_0x57b2bf,_0x4c8aa5){_0x57b2bf=_0x57b2bf-0xc1;const _0x1afd36=_0x1afd();let _0x260416=_0x1afd36[_0x57b2bf];return _0x260416;}function b(_0x41702f,_0x188f3a,_0x54c659){return{'x':_0x41702f['x']+(_0x188f3a['x']-_0x41702f['x'])*_0x54c659,'y':_0x41702f['y']+(_0x188f3a['y']-_0x41702f['y'])*_0x54c659};}function x(_0x4580a4,_0x2a5c51){const _0x52d796=_0x2604;return Math[_0x52d796(0xcc)](_0x4580a4['x']-_0x2a5c51['x'],_0x4580a4['y']-_0x2a5c51['y']);}function S(_0x36bd59){const _0x22293e=_0x2604;let _0x23b431=Math[_0x22293e(0xcc)](_0x36bd59['x'],_0x36bd59['y']);return _0x23b431<g?{'x':0x1,'y':0x0}:{'x':_0x36bd59['x']/_0x23b431,'y':_0x36bd59['y']/_0x23b431};}function C(_0x9ca61c,_0x59c831,_0x21a884=x(_0x9ca61c,_0x59c831)){let _0x39c546=S({'x':_0x9ca61c['x']-_0x59c831['x'],'y':_0x9ca61c['y']-_0x59c831['y']});return{'x':_0x9ca61c['x']+_0x39c546['x']*_0x21a884,'y':_0x9ca61c['y']+_0x39c546['y']*_0x21a884};}function w(_0x5cb72a,_0x14885f){const _0x41769b=_0x2604;let {anchors:_0x4986bd}=_0x5cb72a;return _0x4986bd[_0x41769b(0x104)]<0x2||_0x14885f<0x0?null:_0x14885f<_0x4986bd[_0x41769b(0x104)]-0x1?{'startIndex':_0x14885f,'endIndex':_0x14885f+0x1,'start':_0x4986bd[_0x14885f],'end':_0x4986bd[_0x14885f+0x1]}:_0x5cb72a[_0x41769b(0x103)]&&_0x14885f===_0x4986bd[_0x41769b(0x104)]-0x1?{'startIndex':_0x4986bd[_0x41769b(0x104)]-0x1,'endIndex':0x0,'start':_0x4986bd[_0x4986bd[_0x41769b(0x104)]-0x1],'end':_0x4986bd[0x0]}:null;}function T(_0x29421c,_0x3f86b2){const _0xe366c9=_0x2604;let _0x5eaedf=w(_0x29421c,_0x3f86b2);return _0x5eaedf?[_0x5eaedf[_0xe366c9(0xd6)],_0x5eaedf[_0xe366c9(0xd6)][_0xe366c9(0xf7)]??_0x5eaedf[_0xe366c9(0xd6)],_0x5eaedf['end']['in']??_0x5eaedf[_0xe366c9(0xf6)],_0x5eaedf['end']]:null;}function te(_0x577129,_0x49e7a7){const _0x570288=_0x2604;return _0x49e7a7===_0x570288(0x11d)?_0x577129:_0x577129[_0x49e7a7]??null;}function E(_0x5d3d32,_0x8abad0,_0x554155){const _0xd96fe9=_0x2604;return _0x554155===_0xd96fe9(0x11d)||_0x5d3d32[_0xd96fe9(0x103)]?!0x0:_0x554155==='in'?_0x8abad0>0x0:_0x8abad0<_0x5d3d32[_0xd96fe9(0xf4)][_0xd96fe9(0x104)]-0x1;}function D(_0x22ca6d,_0x73cf9a){let [_0x1619d5,_0x27da3c,_0x23da44,_0x47134b]=_0x22ca6d,_0x20927b=b(_0x1619d5,_0x27da3c,_0x73cf9a),_0x340f1f=b(_0x27da3c,_0x23da44,_0x73cf9a),_0x347853=b(_0x23da44,_0x47134b,_0x73cf9a);return b(b(_0x20927b,_0x340f1f,_0x73cf9a),b(_0x340f1f,_0x347853,_0x73cf9a),_0x73cf9a);}function ne(_0x3b52fd,_0x429cb1){let [_0x304796,_0x4d1202,_0x308725,_0x51ba1e]=_0x3b52fd,_0x33d6db=b(_0x304796,_0x4d1202,_0x429cb1),_0xfdc897=b(_0x4d1202,_0x308725,_0x429cb1),_0x10b1c8=b(_0x308725,_0x51ba1e,_0x429cb1),_0x355781=b(_0x33d6db,_0xfdc897,_0x429cb1),_0x613f89=b(_0xfdc897,_0x10b1c8,_0x429cb1),_0x32e7b2=b(_0x355781,_0x613f89,_0x429cb1);return{'left':[_0x304796,_0x33d6db,_0x355781,_0x32e7b2],'right':[_0x32e7b2,_0x613f89,_0x10b1c8,_0x51ba1e]};}function O(_0x548ee3,_0x490217,_0x236aed){const _0x56c17b=_0x2604;let _0x2a2569=_0x236aed['x']-_0x490217['x'],_0x1e9f2e=_0x236aed['y']-_0x490217['y'],_0x59b498=_0x2a2569*_0x2a2569+_0x1e9f2e*_0x1e9f2e,_0x2c5c4e=_0x59b498<=g?0x0:Math['max'](0x0,Math[_0x56c17b(0xca)](0x1,((_0x548ee3['x']-_0x490217['x'])*_0x2a2569+(_0x548ee3['y']-_0x490217['y'])*_0x1e9f2e)/_0x59b498)),_0x9c73dc={'x':_0x490217['x']+_0x2a2569*_0x2c5c4e,'y':_0x490217['y']+_0x1e9f2e*_0x2c5c4e};return{'point':_0x9c73dc,'ratio':_0x2c5c4e,'distance':x(_0x548ee3,_0x9c73dc)};}function re(_0x2e80d6,_0x2c4355,_0x599742){return O(_0x2e80d6,_0x2c4355,_0x599742)['distance']**0x2;}function k(_0x5bd837,_0x16fe3b){const _0x350e5b=_0x2604;if(_0x5bd837[_0x350e5b(0x104)]<=0x2)return _0x5bd837[_0x350e5b(0xef)](_);let _0x11af2b=0x0,_0x4cb94d=0x0,_0x5ac12e=_0x5bd837[0x0],_0x17cc1b=_0x5bd837[_0x5bd837[_0x350e5b(0x104)]-0x1],_0x29d3c7=_0x16fe3b*_0x16fe3b;for(let _0x6d1f26=0x1;_0x6d1f26<_0x5bd837[_0x350e5b(0x104)]-0x1;_0x6d1f26++){let _0x11fe76=re(_0x5bd837[_0x6d1f26],_0x5ac12e,_0x17cc1b);_0x11fe76>_0x11af2b&&(_0x11af2b=_0x11fe76,_0x4cb94d=_0x6d1f26);}if(_0x11af2b<=_0x29d3c7)return[_(_0x5ac12e),_(_0x17cc1b)];let _0x31c2ae=k(_0x5bd837[_0x350e5b(0xe2)](0x0,_0x4cb94d+0x1),_0x16fe3b),_0x3d579f=k(_0x5bd837['slice'](_0x4cb94d),_0x16fe3b);return[..._0x31c2ae[_0x350e5b(0xe2)](0x0,-0x1),..._0x3d579f];}function ie(_0x5b6391,_0x2b2fb3){let _0x42d273=_0x5b6391[_0x2b2fb3],_0xd4c348=_0x5b6391[_0x2b2fb3+0x1],_0x142fb2=_0x5b6391[_0x2b2fb3-0x1]??_0x42d273;return{'x':_0x42d273['x']+(_0xd4c348['x']-_0x142fb2['x'])/0x6,'y':_0x42d273['y']+(_0xd4c348['y']-_0x142fb2['y'])/0x6};}function A(_0x4e0f42,_0x53d31c){let _0x5d4764=_0x4e0f42[_0x53d31c],_0x16246d=_0x4e0f42[_0x53d31c-0x1],_0xad5ca9=_0x4e0f42[_0x53d31c+0x1]??_0x5d4764;return{'x':_0x5d4764['x']-(_0xad5ca9['x']-_0x16246d['x'])/0x6,'y':_0x5d4764['y']-(_0xad5ca9['y']-_0x16246d['y'])/0x6};}function j(_0x47698e,_0x4ea418){const _0x591ebd=_0x2604;let _0x4dae16=_0x47698e[_0x591ebd(0xf4)][_0x4ea418],_0x1727e1=_0x47698e[_0x591ebd(0xf4)][_0x4ea418-0x1]??(_0x47698e['closed']?_0x47698e[_0x591ebd(0xf4)][_0x47698e[_0x591ebd(0xf4)][_0x591ebd(0x104)]-0x1]:null),_0x3e5949=_0x47698e[_0x591ebd(0xf4)][_0x4ea418+0x1]??(_0x47698e[_0x591ebd(0x103)]?_0x47698e[_0x591ebd(0xf4)][0x0]:null),_0x3e8a37=_0x1727e1&&_0x3e5949?S({'x':_0x3e5949['x']-_0x1727e1['x'],'y':_0x3e5949['y']-_0x1727e1['y']}):_0x3e5949?S({'x':_0x3e5949['x']-_0x4dae16['x'],'y':_0x3e5949['y']-_0x4dae16['y']}):_0x1727e1?S({'x':_0x4dae16['x']-_0x1727e1['x'],'y':_0x4dae16['y']-_0x1727e1['y']}):{'x':0x1,'y':0x0},_0x129fb4=_0x1727e1&&_0x3e5949?Math[_0x591ebd(0x107)](0x32,x(_0x1727e1,_0x3e5949)/0x4):0x32;return{'in':{'x':_0x4dae16['x']-_0x3e8a37['x']*_0x129fb4,'y':_0x4dae16['y']-_0x3e8a37['y']*_0x129fb4},'out':{'x':_0x4dae16['x']+_0x3e8a37['x']*_0x129fb4,'y':_0x4dae16['y']+_0x3e8a37['y']*_0x129fb4}};}function M(_0x3e3acc,_0x296c75){const _0x9a195b=_0x2604;let _0x33adc6=_0x3e3acc[_0x296c75],_0x5ca41b=_0x296c75==='in'?_0x9a195b(0xf7):'in',_0x3490fb=_0x3e3acc[_0x5ca41b];_0x33adc6&&(_0x3e3acc[_0x9a195b(0x123)]===_0x9a195b(0xce)?_0x3e3acc[_0x5ca41b]=C(_0x3e3acc,_0x33adc6):_0x3e3acc[_0x9a195b(0x123)]===_0x9a195b(0x115)&&(_0x3e3acc[_0x5ca41b]=C(_0x3e3acc,_0x33adc6,_0x3490fb?x(_0x3e3acc,_0x3490fb):x(_0x3e3acc,_0x33adc6))));}function ae(_0x16ea0d,_0x25cf35){const _0x2bc410=_0x2604;let _0x1dbff4=y(_0x16ea0d);return!_0x25cf35||_0x1dbff4[_0x2bc410(0x103)]||_0x1dbff4['anchors']['length']===0x0||_0x1dbff4['anchors'][_0x2bc410(0xcd)]({'id':'__ink-preview-anchor__','x':_0x25cf35['x'],'y':_0x25cf35['y'],'pointType':_0x2bc410(0x10d)}),_0x1dbff4;}function oe(_0x3b1d1c,_0x502343={}){const _0x47e55c=_0x2604;let _0x4d1436=Math[_0x47e55c(0x107)](0x0,_0x502343[_0x47e55c(0xc6)]??Math['max'](0x4,_0x3b1d1c[_0x47e55c(0xc7)]*0.35)),_0x24867d=_0x502343[_0x47e55c(0xe7)]??(_0x25d4d8=>_0x47e55c(0x10c)+_0x25d4d8),_0x4e3286=k(_0x3b1d1c[_0x47e55c(0xd3)],_0x4d1436),_0x2b4009=_0x4e3286[_0x47e55c(0xef)]((_0x57b0e6,_0x54df07)=>({'id':_0x24867d(_0x54df07),'x':_0x57b0e6['x'],'y':_0x57b0e6['y'],'pointType':_0x47e55c(0xed)}));for(let _0x3f0acc=0x0;_0x3f0acc<_0x2b4009[_0x47e55c(0x104)]-0x1;_0x3f0acc++)_0x2b4009[_0x3f0acc]['out']=ie(_0x4e3286,_0x3f0acc),_0x2b4009[_0x3f0acc+0x1]['in']=A(_0x4e3286,_0x3f0acc+0x1);return{'kind':_0x47e55c(0x11e),'closed':!0x1,'anchors':_0x2b4009};}function se(_0x2b1fd2,_0x407e41,_0x3be41c){const _0x2ee319=_0x2604;let _0x2ae37b=null,_0xcf3d66=[_0x2ee319(0x11d),'in','out'];return _0x2b1fd2[_0x2ee319(0xf4)]['forEach']((_0xe8e6ad,_0x4f4725)=>{const _0x405af2=_0x2ee319;_0xcf3d66[_0x405af2(0xfe)](_0xc2571c=>{const _0x57c64e=_0x405af2;if(!E(_0x2b1fd2,_0x4f4725,_0xc2571c))return;let _0x473b98=te(_0xe8e6ad,_0xc2571c);if(!_0x473b98)return;let _0x33b659=x(_0x407e41,_0x473b98);_0x33b659>_0x3be41c||_0x2ae37b&&_0x33b659>=_0x2ae37b[_0x57c64e(0xe6)]||(_0x2ae37b={'handle':{'kind':_0xc2571c,'anchorId':_0xe8e6ad['id']},'point':_(_0x473b98),'distance':_0x33b659});});}),_0x2ae37b;}function ce(_0x1d44e3,_0xbefba3,_0x176643){const _0x196cf1=_0x2604;let _0x290515=null,_0x3328cd=_0x1d44e3[_0x196cf1(0x103)]?_0x1d44e3[_0x196cf1(0xf4)][_0x196cf1(0x104)]:Math[_0x196cf1(0x107)](0x0,_0x1d44e3[_0x196cf1(0xf4)][_0x196cf1(0x104)]-0x1);for(let _0x214c41=0x0;_0x214c41<_0x3328cd;_0x214c41++){let _0x4685a4=T(_0x1d44e3,_0x214c41);if(!_0x4685a4)continue;let _0x108521=D(_0x4685a4,0x0);for(let _0x167951=0x1;_0x167951<=0x20;_0x167951++){let _0x48f261=D(_0x4685a4,_0x167951/0x20),_0x5a15d8=O(_0xbefba3,_0x108521,_0x48f261),_0x4b120c=(_0x167951-0x1+_0x5a15d8[_0x196cf1(0xde)])/0x20;(!_0x290515||_0x5a15d8[_0x196cf1(0xe6)]<_0x290515[_0x196cf1(0xe6)])&&(_0x290515={'segmentIndex':_0x214c41,'t':_0x4b120c,'point':_0x5a15d8[_0x196cf1(0x106)],'distance':_0x5a15d8['distance']}),_0x108521=_0x48f261;}}return _0x290515&&_0x290515[_0x196cf1(0xe6)]<=_0x176643?_0x290515:null;}function le(_0x51fa3f,_0x47c6d9,_0x200146){const _0x5e437c=_0x2604;let _0xe70aca=y(_0x51fa3f),_0x39117b=w(_0xe70aca,_0x47c6d9[_0x5e437c(0xd2)]),_0x15fa67=T(_0xe70aca,_0x47c6d9[_0x5e437c(0xd2)]);if(!_0x39117b||!_0x15fa67)return _0xe70aca;let _0x5b1f1a=ne(_0x15fa67,Math[_0x5e437c(0x107)](0x0,Math[_0x5e437c(0xca)](0x1,_0x47c6d9['t']))),_0x514c96={'id':_0x200146(),'x':_0x5b1f1a['left'][0x3]['x'],'y':_0x5b1f1a['left'][0x3]['y'],'in':_(_0x5b1f1a[_0x5e437c(0xfa)][0x2]),'out':_(_0x5b1f1a['right'][0x1]),'pointType':_0x5e437c(0xed)};return _0xe70aca[_0x5e437c(0xf4)][_0x39117b[_0x5e437c(0xf0)]][_0x5e437c(0xf7)]=_(_0x5b1f1a['left'][0x1]),_0xe70aca['anchors'][_0x39117b[_0x5e437c(0xc9)]]['in']=_(_0x5b1f1a['right'][0x2]),_0xe70aca[_0x5e437c(0xf4)][_0x5e437c(0xe9)](_0x39117b[_0x5e437c(0xf0)]+0x1,0x0,_0x514c96),_0xe70aca;}function ue(_0x27f066,_0x1334f0){const _0x342a26=_0x2604;let _0x530943=y(_0x27f066);return _0x530943[_0x342a26(0xf4)]=_0x530943[_0x342a26(0xf4)][_0x342a26(0x119)](_0x58a581=>_0x58a581['id']!==_0x1334f0),_0x530943[_0x342a26(0x103)]&&_0x530943[_0x342a26(0xf4)]['length']<0x3&&(_0x530943['closed']=!0x1),_0x530943;}function N(_0x245444,_0x20098b,_0x349297){const _0x5bc0a4=_0x2604;let _0xa62d74=y(_0x245444),_0xc442be=_0xa62d74[_0x5bc0a4(0xf4)][_0x5bc0a4(0xe5)](_0xbb47f9=>_0xbb47f9['id']===_0x20098b),_0x1f92b1=_0xa62d74['anchors'][_0xc442be];if(!_0x1f92b1)return _0xa62d74;if(_0x1f92b1[_0x5bc0a4(0x123)]=_0x349297,_0x349297===_0x5bc0a4(0x10d))return delete _0x1f92b1['in'],delete _0x1f92b1[_0x5bc0a4(0xf7)],_0xa62d74;let _0x39c4d5=j(_0xa62d74,_0xc442be);if(_0x1f92b1['in']=_0x1f92b1['in']?_(_0x1f92b1['in']):_0x39c4d5['in'],_0x1f92b1[_0x5bc0a4(0xf7)]=_0x1f92b1[_0x5bc0a4(0xf7)]?_(_0x1f92b1['out']):_0x39c4d5[_0x5bc0a4(0xf7)],_0x349297===_0x5bc0a4(0xce)){let _0x5110ec=Math[_0x5bc0a4(0x107)](x(_0x1f92b1,_0x1f92b1['in']),x(_0x1f92b1,_0x1f92b1[_0x5bc0a4(0xf7)]),0x32),_0x4b528d=S({'x':_0x1f92b1[_0x5bc0a4(0xf7)]['x']-_0x1f92b1['x'],'y':_0x1f92b1['out']['y']-_0x1f92b1['y']});_0x1f92b1[_0x5bc0a4(0xf7)]={'x':_0x1f92b1['x']+_0x4b528d['x']*_0x5110ec,'y':_0x1f92b1['y']+_0x4b528d['y']*_0x5110ec},_0x1f92b1['in']={'x':_0x1f92b1['x']-_0x4b528d['x']*_0x5110ec,'y':_0x1f92b1['y']-_0x4b528d['y']*_0x5110ec};}else _0x349297===_0x5bc0a4(0x115)&&M(_0x1f92b1,_0x5bc0a4(0xf7));return _0xa62d74;}function P(_0x704eb8,_0xa832ea){const _0x4941db=_0x2604;let _0x298d1e=_0x704eb8[_0x4941db(0xf4)][_0x4941db(0xcb)](_0xe6477a=>_0xe6477a['id']===_0xa832ea),_0x369881=(_0x298d1e==null?void 0x0:_0x298d1e[_0x4941db(0x123)])??_0x4941db(0x10d);return N(_0x704eb8,_0xa832ea,_0x369881===_0x4941db(0x10d)?'smooth':_0x369881===_0x4941db(0x115)?_0x4941db(0xce):_0x369881===_0x4941db(0xce)?_0x4941db(0xed):_0x4941db(0x10d));}function F(_0x4d10a9,_0x230ce9,_0x251b4e){const _0x353282=_0x2604;let _0x2f4db7=y(_0x4d10a9),_0x2d7965=_0x2f4db7[_0x353282(0xf4)][_0x353282(0xcb)](_0x3587ac=>_0x3587ac['id']===_0x230ce9[_0x353282(0x11f)]);if(!_0x2d7965)return _0x2f4db7;if(_0x230ce9[_0x353282(0xff)]==='anchor'){let _0x4827f7={'x':_0x251b4e['x']-_0x2d7965['x'],'y':_0x251b4e['y']-_0x2d7965['y']};return _0x2d7965['x']=_0x251b4e['x'],_0x2d7965['y']=_0x251b4e['y'],_0x2d7965['in']&&={'x':_0x2d7965['in']['x']+_0x4827f7['x'],'y':_0x2d7965['in']['y']+_0x4827f7['y']},_0x2d7965[_0x353282(0xf7)]&&={'x':_0x2d7965[_0x353282(0xf7)]['x']+_0x4827f7['x'],'y':_0x2d7965[_0x353282(0xf7)]['y']+_0x4827f7['y']},_0x2f4db7;}return _0x2d7965[_0x230ce9['kind']]=_(_0x251b4e),_0x2d7965[_0x353282(0x123)]===_0x353282(0x10d)&&(_0x2d7965['pointType']=_0x353282(0xed)),M(_0x2d7965,_0x230ce9[_0x353282(0xff)]),_0x2f4db7;}const I=1e-9;function L(_0x47aa74){const _0x317dc7=_0x2604;let _0x54aa9c=Math[_0x317dc7(0xd4)](_0x47aa74*0x2710)/0x2710;return Object['is'](_0x54aa9c,-0x0)?'0':String(_0x54aa9c);}function R(_0x41fe3c){return L(_0x41fe3c['x'])+'\x20'+L(_0x41fe3c['y']);}function z(_0x4f2ad1,_0x367cae){return{'x':_0x4f2ad1['x']-_0x367cae['x'],'y':_0x4f2ad1['y']-_0x367cae['y']};}function B(_0x3f2024,_0x184c3d,_0x2a114e,_0x94ed91,_0x2c50c7){let _0x35d9c1=0x1-_0x2c50c7;return{'x':_0x35d9c1*_0x35d9c1*_0x35d9c1*_0x3f2024['x']+0x3*_0x35d9c1*_0x35d9c1*_0x2c50c7*_0x184c3d['x']+0x3*_0x35d9c1*_0x2c50c7*_0x2c50c7*_0x2a114e['x']+_0x2c50c7*_0x2c50c7*_0x2c50c7*_0x94ed91['x'],'y':_0x35d9c1*_0x35d9c1*_0x35d9c1*_0x3f2024['y']+0x3*_0x35d9c1*_0x35d9c1*_0x2c50c7*_0x184c3d['y']+0x3*_0x35d9c1*_0x2c50c7*_0x2c50c7*_0x2a114e['y']+_0x2c50c7*_0x2c50c7*_0x2c50c7*_0x94ed91['y']};}function V(_0x1355e8,_0x1273bd,_0x3a3022,_0x3d4008){const _0x16b020=_0x2604;let _0x2809ce=-_0x1355e8+0x3*_0x1273bd-0x3*_0x3a3022+_0x3d4008,_0x14ba67=0x3*_0x1355e8-0x6*_0x1273bd+0x3*_0x3a3022,_0x5bc3a6=-0x3*_0x1355e8+0x3*_0x1273bd,_0x5a60c1=[];if(Math[_0x16b020(0xda)](_0x2809ce)<I){if(Math[_0x16b020(0xda)](_0x14ba67)<I)return _0x5a60c1;let _0x924a37=-_0x5bc3a6/(0x2*_0x14ba67);return _0x924a37>0x0&&_0x924a37<0x1&&_0x5a60c1[_0x16b020(0xcd)](_0x924a37),_0x5a60c1;}let _0x28ddf0=_0x14ba67*_0x14ba67-0x3*_0x2809ce*_0x5bc3a6;if(_0x28ddf0<0x0)return _0x5a60c1;let _0x96609d=Math[_0x16b020(0x102)](Math['max'](0x0,_0x28ddf0)),_0x1d8ded=(-_0x14ba67+_0x96609d)/(0x3*_0x2809ce),_0x185308=(-_0x14ba67-_0x96609d)/(0x3*_0x2809ce);return _0x1d8ded>0x0&&_0x1d8ded<0x1&&_0x5a60c1['push'](_0x1d8ded),_0x185308>0x0&&_0x185308<0x1&&Math[_0x16b020(0xda)](_0x185308-_0x1d8ded)>I&&_0x5a60c1[_0x16b020(0xcd)](_0x185308),_0x5a60c1;}function H(_0x5502f7,_0x1cfd3b,_0x2f9517,_0xe51dc0,_0x431ffa){const _0x270833=_0x2604;_0x5502f7['push'](_0x1cfd3b,_0x431ffa),new Set([...V(_0x1cfd3b['x'],_0x2f9517['x'],_0xe51dc0['x'],_0x431ffa['x']),...V(_0x1cfd3b['y'],_0x2f9517['y'],_0xe51dc0['y'],_0x431ffa['y'])])[_0x270833(0xfe)](_0x2740de=>{const _0x59a6be=_0x270833;_0x5502f7[_0x59a6be(0xcd)](B(_0x1cfd3b,_0x2f9517,_0xe51dc0,_0x431ffa,_0x2740de));});}function U(_0x508157){const _0x56cc8a=_0x2604;let _0x269ae1=_0x508157[_0x56cc8a(0xf4)];if(_0x269ae1[_0x56cc8a(0x104)]<=0x1)return _0x269ae1;let _0x33790a=[];for(let _0x49d4d3=0x1;_0x49d4d3<_0x269ae1[_0x56cc8a(0x104)];_0x49d4d3++){let _0x35af72=_0x269ae1[_0x49d4d3-0x1],_0x5d4103=_0x269ae1[_0x49d4d3];H(_0x33790a,_0x35af72,_0x35af72[_0x56cc8a(0xf7)]??_0x35af72,_0x5d4103['in']??_0x5d4103,_0x5d4103);}if(_0x508157['closed']&&_0x269ae1[_0x56cc8a(0x104)]>0x1){let _0x1918c6=_0x269ae1[_0x269ae1['length']-0x1],_0x36deb9=_0x269ae1[0x0];H(_0x33790a,_0x1918c6,_0x1918c6[_0x56cc8a(0xf7)]??_0x1918c6,_0x36deb9['in']??_0x36deb9,_0x36deb9);}return _0x33790a;}function de(_0x340d17){const _0x82b26f=_0x2604;let _0x3c5633=_0x340d17[_0x82b26f(0xd3)];if(_0x3c5633[_0x82b26f(0x104)]<=0x1)return _0x3c5633;let _0x29495d=[];for(let _0x2d2cdb=0x0;_0x2d2cdb<_0x3c5633[_0x82b26f(0x104)]-0x1;_0x2d2cdb++){let _0x28c67f=_0x3c5633[_0x2d2cdb],_0x2ad8c1=_0x3c5633[_0x2d2cdb+0x1],_0x33c8f0=_0x3c5633[_0x2d2cdb-0x1]??_0x28c67f,_0x16c595=_0x3c5633[_0x2d2cdb+0x2]??_0x2ad8c1;H(_0x29495d,_0x28c67f,{'x':_0x28c67f['x']+(_0x2ad8c1['x']-_0x33c8f0['x'])/0x6,'y':_0x28c67f['y']+(_0x2ad8c1['y']-_0x33c8f0['y'])/0x6},{'x':_0x2ad8c1['x']-(_0x16c595['x']-_0x28c67f['x'])/0x6,'y':_0x2ad8c1['y']-(_0x16c595['y']-_0x28c67f['y'])/0x6},_0x2ad8c1);}return _0x29495d;}function fe(_0x56dac0){const _0x1f6eed=_0x2604;return _0x56dac0['kind']===_0x1f6eed(0x11e)?U(_0x56dac0):de(_0x56dac0);}function W(_0x2df196){const _0x1c6f1c=_0x2604;let _0x1215a6=Math[_0x1c6f1c(0xd4)](_0x2df196*0x2710)/0x2710;return Object['is'](_0x1215a6,-0x0)?0x0:_0x1215a6;}function G(_0x20f74d){const _0x12859f=_0x2604;let _0x135bc4=fe(_0x20f74d);if(_0x135bc4['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x49ab27=Math[_0x12859f(0xca)](..._0x135bc4[_0x12859f(0xef)](_0x29dc6e=>_0x29dc6e['x'])),_0x2c7c18=Math[_0x12859f(0xca)](..._0x135bc4[_0x12859f(0xef)](_0x37b274=>_0x37b274['y'])),_0x7562a6=Math[_0x12859f(0x107)](..._0x135bc4[_0x12859f(0xef)](_0x11326f=>_0x11326f['x'])),_0x17f25d=Math['max'](..._0x135bc4[_0x12859f(0xef)](_0x1211c4=>_0x1211c4['y']));return{'left':W(_0x49ab27),'top':W(_0x2c7c18),'width':W(Math[_0x12859f(0x107)](0x1,_0x7562a6-_0x49ab27)),'height':W(Math[_0x12859f(0x107)](0x1,_0x17f25d-_0x2c7c18))};}function pe(_0x1a8913,_0xad4bed){const _0x574d1f=_0x2604;let _0x35aa86=_0x1a8913[_0x574d1f(0xf4)];if(_0x35aa86[_0x574d1f(0x104)]===0x0)return'';let _0x4845af=['M\x20'+R(z(_0x35aa86[0x0],_0xad4bed))];for(let _0x3d80a7=0x1;_0x3d80a7<_0x35aa86[_0x574d1f(0x104)];_0x3d80a7++){let _0x48a955=_0x35aa86[_0x3d80a7-0x1],_0x36c3bd=_0x35aa86[_0x3d80a7],_0x3128f2=_0x48a955[_0x574d1f(0xf7)]??_0x48a955,_0x342b80=_0x36c3bd['in']??_0x36c3bd;_0x4845af['push']('C\x20'+R(z(_0x3128f2,_0xad4bed))+'\x20'+R(z(_0x342b80,_0xad4bed))+'\x20'+R(z(_0x36c3bd,_0xad4bed)));}if(_0x1a8913[_0x574d1f(0x103)]&&_0x35aa86[_0x574d1f(0x104)]>0x1){let _0x5aa808=_0x35aa86[_0x35aa86['length']-0x1],_0x1c55c4=_0x35aa86[0x0],_0x58a660=_0x5aa808[_0x574d1f(0xf7)]??_0x5aa808,_0x2702ea=_0x1c55c4['in']??_0x1c55c4;_0x4845af[_0x574d1f(0xcd)]('C\x20'+R(z(_0x58a660,_0xad4bed))+'\x20'+R(z(_0x2702ea,_0xad4bed))+'\x20'+R(z(_0x1c55c4,_0xad4bed))),_0x4845af['push']('Z');}return _0x4845af[_0x574d1f(0x126)]('\x20');}function me(_0x31679b,_0x469162){const _0x299cf2=_0x2604;let _0xf9d47a=_0x31679b[_0x299cf2(0xd3)]['map'](_0xf1c938=>z(_0xf1c938,_0x469162));if(_0xf9d47a[_0x299cf2(0x104)]===0x0)return'';if(_0xf9d47a['length']===0x1)return'M\x20'+R(_0xf9d47a[0x0]);let _0xb5262=['M\x20'+R(_0xf9d47a[0x0])];for(let _0x1639e5=0x0;_0x1639e5<_0xf9d47a[_0x299cf2(0x104)]-0x1;_0x1639e5++){let _0x3acce3=_0xf9d47a[_0x1639e5],_0x5e97e6=_0xf9d47a[_0x1639e5+0x1],_0x360716=_0xf9d47a[_0x1639e5-0x1]??_0x3acce3,_0x346343=_0xf9d47a[_0x1639e5+0x2]??_0x5e97e6,_0x2aafd2={'x':_0x3acce3['x']+(_0x5e97e6['x']-_0x360716['x'])/0x6,'y':_0x3acce3['y']+(_0x5e97e6['y']-_0x360716['y'])/0x6},_0x2f1ed0={'x':_0x5e97e6['x']-(_0x346343['x']-_0x3acce3['x'])/0x6,'y':_0x5e97e6['y']-(_0x346343['y']-_0x3acce3['y'])/0x6};_0xb5262['push']('C\x20'+R(_0x2aafd2)+'\x20'+R(_0x2f1ed0)+'\x20'+R(_0x5e97e6));}return _0xb5262[_0x299cf2(0x126)]('\x20');}function he(_0x3b658f,_0x14b254){const _0x37021a=_0x2604;return _0x3b658f[_0x37021a(0xff)]===_0x37021a(0x11e)?pe(_0x3b658f,_0x14b254):me(_0x3b658f,_0x14b254);}function ge(_0x1278e3,_0x1219a5){const _0x31abdd=_0x2604;return _0x1219a5!=null&&_0x1219a5[_0x31abdd(0xd7)]?_0x1219a5[_0x31abdd(0xd7)]:_0x1278e3[_0x31abdd(0xff)]==='pen'?_0x31abdd(0x116):_0x1278e3[_0x31abdd(0xd7)];}function _e(_0x2b6f64,_0x498e2f){const _0x1005d7=_0x2604;return(_0x498e2f==null?void 0x0:_0x498e2f[_0x1005d7(0xc7)])===void 0x0?_0x2b6f64[_0x1005d7(0xff)]===_0x1005d7(0x11e)?0x2:_0x2b6f64[_0x1005d7(0xc7)]:_0x498e2f[_0x1005d7(0xc7)];}function _0x1afd(){const _0x33f102=['push','symmetric','object','_config','Rect','segmentIndex','points','round','get','start','color','UNIVER_INK_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','abs','585765ftYvqS','indexOf','NoFill','ratio','UNIVER_UNKNOWN','packageName','createCustomShape','slice','registerAdapter','@univerjs-pro/ink','findIndex','distance','createId','ink.config','splice','fillColor','disposeWithMe','none','free','5paeHLX','map','startIndex','_configService','symbol','1391408lidmku','anchors','version','end','out','string','height','left','call','top','iterator','forEach','kind','ink.operation.start','default','sqrt','closed','length','registerCommand','point','max','function','pluginName','prototype','opacity','ink-centerline-','corner','838871BAbtjo','setConfig','1308wwNISC','tool','decorate','Round','OPERATION','smooth','#f54a45','262LNEeQG','_commandService','filter','147640ChZlGX','beginInkMode','20478gQhdFV','anchor','pen','anchorId','onStarting','10QLFdPI','112rcpJkz','pointType','_injector','constructor','join','19809DKbKnE','defineProperty','ink.host-adapter.service','_adapters','SolidFill','tolerance','width','toPrimitive','endIndex','min','find','hypot'];_0x1afd=function(){return _0x33f102;};return _0x1afd();}function ve(_0x4a54d7,_0x2bbbb3){const _0x423650=_0x2604;return(_0x2bbbb3==null?void 0x0:_0x2bbbb3[_0x423650(0x10b)])===void 0x0?_0x4a54d7[_0x423650(0xff)]===_0x423650(0x11e)?void 0x0:_0x4a54d7[_0x423650(0x10b)]:_0x2bbbb3[_0x423650(0x10b)];}function ye(_0x42096b,_0x8672bc){const _0x359a1c=_0x2604;let _0x3f54be=G(_0x42096b),_0x1f7c7e=he(_0x42096b,{'x':_0x3f54be['left'],'y':_0x3f54be[_0x359a1c(0xfc)]}),_0x56aea4=_0x42096b[_0x359a1c(0xff)]==='pen'&&_0x42096b[_0x359a1c(0x103)],_0x584fbc=_0x8672bc==null?void 0x0:_0x8672bc[_0x359a1c(0xea)];return{'shapeType':_0x1d5fb3[_0x359a1c(0xd1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3f54be['width'],'h':_0x3f54be[_0x359a1c(0xf9)],'fill':_0x56aea4?'norm':_0x359a1c(0xec),'stroke':!0x0,'data':_0x1f7c7e,'dataArray':be(_0x42096b,{'x':_0x3f54be[_0x359a1c(0xfa)],'y':_0x3f54be[_0x359a1c(0xfc)]})}]},'fill':_0x56aea4&&_0x584fbc?{'color':_0x584fbc,'fillType':_0x137e22[_0x359a1c(0xc5)]}:{'fillType':_0x137e22[_0x359a1c(0xdd)]},'stroke':{'color':ge(_0x42096b,_0x8672bc),'width':_e(_0x42096b,_0x8672bc),'opacity':ve(_0x42096b,_0x8672bc),'lineStrokeType':_0x3708a3['SolidLine'],'capType':_0x5f227b[_0x359a1c(0x113)],'lineJoinType':_0x2cfe25['Round']}};}function K(_0x139f6d,_0x5ec5d1){return{'x':_0x139f6d['x']-_0x5ec5d1['x'],'y':_0x139f6d['y']-_0x5ec5d1['y']};}function be(_0x3c11fd,_0x38f439){const _0x4852e9=_0x2604;if(_0x3c11fd['kind']===_0x4852e9(0x11e)){let _0x277e85=_0x3c11fd['anchors'];if(_0x277e85[_0x4852e9(0x104)]===0x0)return[];let _0x47d7e4=K(_0x277e85[0x0],_0x38f439),_0x54d54a=[{'command':'M','points':[_0x47d7e4['x'],_0x47d7e4['y']]}];for(let _0x50ad5e=0x1;_0x50ad5e<_0x277e85['length'];_0x50ad5e++){let _0x37fc89=_0x277e85[_0x50ad5e-0x1],_0x5332cf=_0x277e85[_0x50ad5e],_0x336197=K(_0x37fc89['out']??_0x37fc89,_0x38f439),_0x13a5da=K(_0x5332cf['in']??_0x5332cf,_0x38f439),_0xf3bbdc=K(_0x5332cf,_0x38f439);_0x54d54a['push']({'command':'C','points':[_0x336197['x'],_0x336197['y'],_0x13a5da['x'],_0x13a5da['y'],_0xf3bbdc['x'],_0xf3bbdc['y']]});}if(_0x3c11fd['closed']&&_0x277e85[_0x4852e9(0x104)]>0x1){let _0x333a4b=_0x277e85[_0x277e85[_0x4852e9(0x104)]-0x1],_0x4ac925=_0x277e85[0x0],_0x8e20c7=K(_0x333a4b[_0x4852e9(0xf7)]??_0x333a4b,_0x38f439),_0xfa0070=K(_0x4ac925['in']??_0x4ac925,_0x38f439),_0x30b60a=K(_0x4ac925,_0x38f439);_0x54d54a[_0x4852e9(0xcd)]({'command':'C','points':[_0x8e20c7['x'],_0x8e20c7['y'],_0xfa0070['x'],_0xfa0070['y'],_0x30b60a['x'],_0x30b60a['y']]}),_0x54d54a[_0x4852e9(0xcd)]({'command':'z','points':[]});}return _0x54d54a;}let _0x3d7c97=_0x3c11fd[_0x4852e9(0xd3)]['map'](_0x57561e=>K(_0x57561e,_0x38f439));if(_0x3d7c97[_0x4852e9(0x104)]===0x0)return[];let _0x5a3f9d=[{'command':'M','points':[_0x3d7c97[0x0]['x'],_0x3d7c97[0x0]['y']]}];for(let _0x5ecf7e=0x0;_0x5ecf7e<_0x3d7c97[_0x4852e9(0x104)]-0x1;_0x5ecf7e++){let _0x1e2106=_0x3d7c97[_0x5ecf7e],_0x46c93f=_0x3d7c97[_0x5ecf7e+0x1],_0x3a6f3c=_0x3d7c97[_0x5ecf7e-0x1]??_0x1e2106,_0x272ac6=_0x3d7c97[_0x5ecf7e+0x2]??_0x46c93f,_0x4b1d20={'x':_0x1e2106['x']+(_0x46c93f['x']-_0x3a6f3c['x'])/0x6,'y':_0x1e2106['y']+(_0x46c93f['y']-_0x3a6f3c['y'])/0x6},_0x3658e4={'x':_0x46c93f['x']-(_0x272ac6['x']-_0x1e2106['x'])/0x6,'y':_0x46c93f['y']-(_0x272ac6['y']-_0x1e2106['y'])/0x6};_0x5a3f9d[_0x4852e9(0xcd)]({'command':'C','points':[_0x4b1d20['x'],_0x4b1d20['y'],_0x3658e4['x'],_0x3658e4['y'],_0x46c93f['x'],_0x46c93f['y']]});}return _0x5a3f9d;}function xe(_0x320b0d){const _0x26d092=_0x2604;let {model:_0x2e6d25,sourceModel:_0x1764cb=_0x2e6d25,style:_0x59d69f}=_0x320b0d,_0x5dfce7=_0x320b0d[_0x26d092(0x111)]??_0x2e6d25[_0x26d092(0xff)],_0x48ce05=G(_0x2e6d25),_0x1637fd=_0x2e6d25[_0x26d092(0xff)]===_0x26d092(0x11e)&&_0x5dfce7!==_0x26d092(0x11e)?_0x2e6d25:void 0x0;return{'transform':{..._0x48ce05,'rotation':0x0},'shapeData':ye(_0x2e6d25,_0x59d69f),'ink':{'version':0x1,'tool':_0x5dfce7,'sourceModel':_0x1764cb,..._0x1637fd?{'editModel':_0x1637fd}:{},'normalizedBounds':_0x48ce05}};}var Se=_0x234bb6(0xe4),Ce='1.5.1';function q(_0x38aebd){'@babel/helpers - typeof';const _0x4919af=_0x234bb6;return q=typeof Symbol==_0x4919af(0x108)&&typeof Symbol[_0x4919af(0xfd)]==_0x4919af(0xf2)?function(_0x337300){return typeof _0x337300;}:function(_0x594d95){const _0xefb553=_0x4919af;return _0x594d95&&typeof Symbol==_0xefb553(0x108)&&_0x594d95[_0xefb553(0x125)]===Symbol&&_0x594d95!==Symbol[_0xefb553(0x10a)]?'symbol':typeof _0x594d95;},q(_0x38aebd);}function we(_0x44e13f,_0x58dae6){const _0x52ae95=_0x234bb6;if(q(_0x44e13f)!=_0x52ae95(0xcf)||!_0x44e13f)return _0x44e13f;var _0x544ce6;if(typeof Symbol<'u'&&(_0x544ce6=_0x44e13f[Symbol[_0x52ae95(0xc8)]])!==void 0x0){var _0x2fa087=_0x544ce6[_0x52ae95(0xfb)](_0x44e13f,_0x58dae6||_0x52ae95(0x101));if(q(_0x2fa087)!=_0x52ae95(0xcf))return _0x2fa087;throw TypeError(_0x52ae95(0xd9));}return(_0x58dae6===_0x52ae95(0xf8)?String:Number)(_0x44e13f);}function J(_0xfc3a0d){const _0x34885c=_0x234bb6;var _0x123a48=we(_0xfc3a0d,_0x34885c(0xf8));return q(_0x123a48)=='symbol'?_0x123a48:_0x123a48+'';}function Y(_0x5aad29,_0x3d6dcd,_0x4e2992){return(_0x3d6dcd=J(_0x3d6dcd))in _0x5aad29?Object['defineProperty'](_0x5aad29,_0x3d6dcd,{'value':_0x4e2992,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5aad29[_0x3d6dcd]=_0x4e2992,_0x5aad29;}const X=_0x4bf0fa(_0x234bb6(0xc3));var Te=class{constructor(){const _0x1b7b46=_0x234bb6;Y(this,_0x1b7b46(0xc4),[]);}[_0x234bb6(0xe3)](_0x1cd359){const _0x1f0c2e=_0x234bb6;return this[_0x1f0c2e(0xc4)][_0x1f0c2e(0xcd)](_0x1cd359),_0x27c43d(()=>{const _0x3604de=_0x1f0c2e;let _0x3a0cb8=this[_0x3604de(0xc4)][_0x3604de(0xdc)](_0x1cd359);_0x3a0cb8>=0x0&&this[_0x3604de(0xc4)][_0x3604de(0xe9)](_0x3a0cb8,0x1);});}['beginInkMode'](_0x283ee2){const _0x4a55da=_0x234bb6;for(let _0x3f4f83 of this[_0x4a55da(0xc4)])if(_0x3f4f83[_0x4a55da(0x11b)](_0x283ee2))return!0x0;return!0x1;}async['createCustomShape'](_0xd8bc5d){const _0x250368=_0x234bb6;for(let _0x499a57 of this[_0x250368(0xc4)])if(_0x499a57[_0x250368(0xe1)]&&await _0x499a57['createCustomShape'](_0xd8bc5d))return!0x0;return!0x1;}};const Ee={'id':_0x234bb6(0x100),'type':_0x4b603e[_0x234bb6(0x114)],'handler':(_0x294483,_0x1e725b)=>_0x1e725b?_0x294483[_0x234bb6(0xd5)](X)['beginInkMode'](_0x1e725b):!0x1},Z={};function Q(_0x359797,_0x4c122f){return function(_0xe281b2,_0x279592){_0x4c122f(_0xe281b2,_0x279592,_0x359797);};}function De(_0x18b1b9,_0x5b7305,_0xfeb96b,_0x9e204a){const _0x20e880=_0x234bb6;var _0x3b96ce=arguments[_0x20e880(0x104)],_0x136da2=_0x3b96ce<0x3?_0x5b7305:_0x9e204a===null?_0x9e204a=Object['getOwnPropertyDescriptor'](_0x5b7305,_0xfeb96b):_0x9e204a,_0x296465;if(typeof Reflect==_0x20e880(0xcf)&&typeof Reflect[_0x20e880(0x112)]==_0x20e880(0x108))_0x136da2=Reflect['decorate'](_0x18b1b9,_0x5b7305,_0xfeb96b,_0x9e204a);else{for(var _0x81e108=_0x18b1b9['length']-0x1;_0x81e108>=0x0;_0x81e108--)(_0x296465=_0x18b1b9[_0x81e108])&&(_0x136da2=(_0x3b96ce<0x3?_0x296465(_0x136da2):_0x3b96ce>0x3?_0x296465(_0x5b7305,_0xfeb96b,_0x136da2):_0x296465(_0x5b7305,_0xfeb96b))||_0x136da2);}return _0x3b96ce>0x3&&_0x136da2&&Object[_0x20e880(0xc2)](_0x5b7305,_0xfeb96b,_0x136da2),_0x136da2;}let $=class extends _0x2b18e8{constructor(_0x1c465a=Z,_0x547521,_0x1cc2fd,_0x3382db){const _0x3cc01b=_0x234bb6;super(),this['_config']=_0x1c465a,this[_0x3cc01b(0x124)]=_0x547521,this[_0x3cc01b(0x118)]=_0x1cc2fd,this[_0x3cc01b(0xf1)]=_0x3382db;let {..._0x1a89ac}=_0x10d687({},Z,this[_0x3cc01b(0xd0)]);this[_0x3cc01b(0xf1)][_0x3cc01b(0x10f)](_0x3cc01b(0xe8),_0x1a89ac);}[_0x234bb6(0x120)](){const _0x9e652b=_0x234bb6;[[X,{'useClass':Te}]]['forEach'](_0x4859ca=>this[_0x9e652b(0x124)]['add'](_0x4859ca)),this[_0x9e652b(0xeb)](this['_commandService'][_0x9e652b(0x105)](Ee));}};Y($,_0x234bb6(0x109),_0x234bb6(0xd8)),Y($,_0x234bb6(0xe0),Se),Y($,_0x234bb6(0xf5),Ce),Y($,'type',_0x1ecdfc[_0x234bb6(0xdf)]),$=De([_0x226505(_0x38211f),Q(0x1,_0x1739b1(_0x4929fc)),Q(0x2,_0x171415),Q(0x3,_0x5b3d)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1afe(_0x305add,_0x24b220){_0x305add=_0x305add-0x77;const _0x464665=_0x4646();let _0x1afe86=_0x464665[_0x305add];return _0x1afe86;}function _0x4646(){const _0x383adb=['findIndex','tolerance','ShapeLineCapEnum','isInkPenHandleVisible','_configService','ink.config','@univerjs-pro/license','Plugin','IInkHostAdapterService','start','ShapeLineTypeEnum','left','SolidFill','UniverLicensePlugin','amd','height','segmentIndex','registerCommand','_config','version','tool','type','end','string','function','distance','findClosestInkPenSegment','out','call','free','fillColor','pen','forEach','UniverProEngineShape','merge','round','defineProperty','_injector','_adapters','createCustomShape','corner','1.4.0','@univerjs-pro/ink','sqrt','endIndex','object','ratio','336660GjrmFk','ICommandService','SolidLine','setConfig','#f54a45','symbol','11835632vhHyKl','point','Injector','points','color','anchor','_commandService','75849sWObeC','ink.operation.start','width','join','get','1593890EpBqLA','UniverInstanceType','abs','slice','ShapeFillEnum','max','splice','getInkPenPreviewModel','DependentOn','hypot','deleteInkPenAnchor','UniverProLicense','add','closed','@univerjs-pro/engine-shape','NoFill','registerAdapter','32rrSvat','6206088IqLWql','Round','5172108FWpjJY','min','beginInkMode','Inject','indexOf','decorate','buildInkCustomShapePayload','length','anchors','UNIVER_INK_PLUGIN','createIdentifier','convertBrushModelToPenModel','@univerjs/core','__ink-preview-anchor__','push','CommandType','right','insertInkPenAnchorAt','UNIVER_UNKNOWN','anchorId','Rect','map','symmetric','onStarting','constructor','ink.host-adapter.service','startIndex','exports','packageName','pointType','kind','getOwnPropertyDescriptor','UniverProInk','opacity','481292JzHTXP','norm','smooth','findClosestInkPenHandle'];_0x4646=function(){return _0x383adb;};return _0x4646();}(function(_0x3d2061,_0x3815a){const _0x558617=_0x1afe,_0x4e52b8=_0x3d2061();while(!![]){try{const _0xa53bb3=parseInt(_0x558617(0xbd))/0x1+-parseInt(_0x558617(0x87))/0x2+-parseInt(_0x558617(0x82))/0x3+parseInt(_0x558617(0x98))/0x4*(parseInt(_0x558617(0xf0))/0x5)+parseInt(_0x558617(0x9b))/0x6+parseInt(_0x558617(0x99))/0x7+-parseInt(_0x558617(0x7b))/0x8;if(_0xa53bb3===_0x3815a)break;else _0x4e52b8['push'](_0x4e52b8['shift']());}catch(_0x551a5b){_0x4e52b8['push'](_0x4e52b8['shift']());}}}(_0x4646,0x71fb4),function(_0x231ba8,_0x51680a){const _0x152776=_0x1afe;typeof exports==_0x152776(0xee)&&typeof module<'u'?_0x51680a(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x152776(0xd9)&&define[_0x152776(0xcf)]?define([_0x152776(0xb6),_0x152776(0x95),_0x152776(0xc7),_0x152776(0xa7)],_0x51680a):(_0x231ba8=typeof globalThis<'u'?globalThis:_0x231ba8||self,_0x51680a(_0x231ba8[_0x152776(0xbb)]={},_0x231ba8[_0x152776(0xe2)],_0x231ba8[_0x152776(0x92)],_0x231ba8['UniverCore']));}(this,function(_0xbab771,_0x3a7054,_0x43a626,_0x172d39){const _0x14041a=_0x1afe;Object['defineProperty'](_0xbab771,Symbol['toStringTag'],{'value':'Module'});let _0x3cd3d9=0.0001;function _0x1daa24(_0x47d203){return{'x':_0x47d203['x'],'y':_0x47d203['y']};}function _0x4fa49a(_0x3f903d){const _0x35a4cf=_0x1afe;return{..._0x3f903d,'in':_0x3f903d['in']?_0x1daa24(_0x3f903d['in']):void 0x0,'out':_0x3f903d[_0x35a4cf(0xdc)]?_0x1daa24(_0x3f903d[_0x35a4cf(0xdc)]):void 0x0};}function _0x4020ef(_0x24622e){const _0x145dae=_0x1afe;return{'kind':_0x145dae(0xe0),'closed':_0x24622e[_0x145dae(0x94)],'anchors':_0x24622e['anchors'][_0x145dae(0xb0)](_0x4fa49a)};}function _0x2fd73e(_0x53f20e,_0x278b0f,_0x391a51){return{'x':_0x53f20e['x']+(_0x278b0f['x']-_0x53f20e['x'])*_0x391a51,'y':_0x53f20e['y']+(_0x278b0f['y']-_0x53f20e['y'])*_0x391a51};}function _0x487572(_0x4a58e4,_0x1a9619){const _0x372f11=_0x1afe;return Math[_0x372f11(0x90)](_0x4a58e4['x']-_0x1a9619['x'],_0x4a58e4['y']-_0x1a9619['y']);}function _0x3cc237(_0x1595ed){let _0x794a31=Math['hypot'](_0x1595ed['x'],_0x1595ed['y']);return _0x794a31<_0x3cd3d9?{'x':0x1,'y':0x0}:{'x':_0x1595ed['x']/_0x794a31,'y':_0x1595ed['y']/_0x794a31};}function _0x142c6e(_0x2e44d3,_0x45744d,_0x5c9598=_0x487572(_0x2e44d3,_0x45744d)){let _0x3ab5dc=_0x3cc237({'x':_0x2e44d3['x']-_0x45744d['x'],'y':_0x2e44d3['y']-_0x45744d['y']});return{'x':_0x2e44d3['x']+_0x3ab5dc['x']*_0x5c9598,'y':_0x2e44d3['y']+_0x3ab5dc['y']*_0x5c9598};}function _0x2c23ce(_0x98c1c4,_0x4a9c7d){const _0x2ea0bd=_0x1afe;let {anchors:_0x120e8d}=_0x98c1c4;return _0x120e8d[_0x2ea0bd(0xa2)]<0x2||_0x4a9c7d<0x0?null:_0x4a9c7d<_0x120e8d[_0x2ea0bd(0xa2)]-0x1?{'startIndex':_0x4a9c7d,'endIndex':_0x4a9c7d+0x1,'start':_0x120e8d[_0x4a9c7d],'end':_0x120e8d[_0x4a9c7d+0x1]}:_0x98c1c4['closed']&&_0x4a9c7d===_0x120e8d['length']-0x1?{'startIndex':_0x120e8d['length']-0x1,'endIndex':0x0,'start':_0x120e8d[_0x120e8d['length']-0x1],'end':_0x120e8d[0x0]}:null;}function _0xc97e19(_0x3612ac,_0x933a73){const _0x37bcd4=_0x1afe;let _0xf781a3=_0x2c23ce(_0x3612ac,_0x933a73);return _0xf781a3?[_0xf781a3[_0x37bcd4(0xca)],_0xf781a3[_0x37bcd4(0xca)][_0x37bcd4(0xdc)]??_0xf781a3[_0x37bcd4(0xca)],_0xf781a3[_0x37bcd4(0xd7)]['in']??_0xf781a3['end'],_0xf781a3[_0x37bcd4(0xd7)]]:null;}function _0x461d80(_0x241223,_0x145b08){const _0x6ce3b3=_0x1afe;return _0x145b08===_0x6ce3b3(0x80)?_0x241223:_0x241223[_0x145b08]??null;}function _0x126ade(_0xcc6fc,_0x4d4b40,_0x16e589){const _0x708d49=_0x1afe;return _0x16e589===_0x708d49(0x80)||_0xcc6fc['closed']?!0x0:_0x16e589==='in'?_0x4d4b40>0x0:_0x4d4b40<_0xcc6fc['anchors'][_0x708d49(0xa2)]-0x1;}function _0x2dc259(_0x408c45,_0x14f9d8){let [_0xa9d527,_0x4b7558,_0x460ce1,_0x8fbc08]=_0x408c45,_0x5cdce=_0x2fd73e(_0xa9d527,_0x4b7558,_0x14f9d8),_0x16eb27=_0x2fd73e(_0x4b7558,_0x460ce1,_0x14f9d8),_0x16bb42=_0x2fd73e(_0x460ce1,_0x8fbc08,_0x14f9d8);return _0x2fd73e(_0x2fd73e(_0x5cdce,_0x16eb27,_0x14f9d8),_0x2fd73e(_0x16eb27,_0x16bb42,_0x14f9d8),_0x14f9d8);}function _0x3b062b(_0x243c87,_0x55e707){let [_0xaf298b,_0x585af0,_0x18a137,_0x512e21]=_0x243c87,_0x226bc8=_0x2fd73e(_0xaf298b,_0x585af0,_0x55e707),_0x1de4e0=_0x2fd73e(_0x585af0,_0x18a137,_0x55e707),_0x266719=_0x2fd73e(_0x18a137,_0x512e21,_0x55e707),_0x2239e8=_0x2fd73e(_0x226bc8,_0x1de4e0,_0x55e707),_0x554aa8=_0x2fd73e(_0x1de4e0,_0x266719,_0x55e707),_0x106b62=_0x2fd73e(_0x2239e8,_0x554aa8,_0x55e707);return{'left':[_0xaf298b,_0x226bc8,_0x2239e8,_0x106b62],'right':[_0x106b62,_0x554aa8,_0x266719,_0x512e21]};}function _0x59655b(_0x18ac20,_0x3b8dbd,_0x463b65){const _0x297ac6=_0x1afe;let _0xc70fa5=_0x463b65['x']-_0x3b8dbd['x'],_0x5015d5=_0x463b65['y']-_0x3b8dbd['y'],_0x88bf57=_0xc70fa5*_0xc70fa5+_0x5015d5*_0x5015d5,_0x3b95fa=_0x88bf57<=_0x3cd3d9?0x0:Math[_0x297ac6(0x8c)](0x0,Math['min'](0x1,((_0x18ac20['x']-_0x3b8dbd['x'])*_0xc70fa5+(_0x18ac20['y']-_0x3b8dbd['y'])*_0x5015d5)/_0x88bf57)),_0x859db7={'x':_0x3b8dbd['x']+_0xc70fa5*_0x3b95fa,'y':_0x3b8dbd['y']+_0x5015d5*_0x3b95fa};return{'point':_0x859db7,'ratio':_0x3b95fa,'distance':_0x487572(_0x18ac20,_0x859db7)};}function _0xe481e7(_0x5b0564,_0x49e28e,_0x21883f){return _0x59655b(_0x5b0564,_0x49e28e,_0x21883f)['distance']**0x2;}function _0x498a56(_0x5b62d5,_0x3d4644){const _0x24530e=_0x1afe;if(_0x5b62d5[_0x24530e(0xa2)]<=0x2)return _0x5b62d5[_0x24530e(0xb0)](_0x1daa24);let _0x11151d=0x0,_0x990c43=0x0,_0x52eac8=_0x5b62d5[0x0],_0x1df9d6=_0x5b62d5[_0x5b62d5['length']-0x1],_0x287829=_0x3d4644*_0x3d4644;for(let _0x175bb5=0x1;_0x175bb5<_0x5b62d5[_0x24530e(0xa2)]-0x1;_0x175bb5++){let _0x3c38cf=_0xe481e7(_0x5b62d5[_0x175bb5],_0x52eac8,_0x1df9d6);_0x3c38cf>_0x11151d&&(_0x11151d=_0x3c38cf,_0x990c43=_0x175bb5);}if(_0x11151d<=_0x287829)return[_0x1daa24(_0x52eac8),_0x1daa24(_0x1df9d6)];let _0x2536a7=_0x498a56(_0x5b62d5[_0x24530e(0x8a)](0x0,_0x990c43+0x1),_0x3d4644),_0x59795f=_0x498a56(_0x5b62d5['slice'](_0x990c43),_0x3d4644);return[..._0x2536a7[_0x24530e(0x8a)](0x0,-0x1),..._0x59795f];}function _0x245fae(_0x28ded0,_0x16a256){let _0x7c049a=_0x28ded0[_0x16a256],_0x3f2500=_0x28ded0[_0x16a256+0x1],_0xc641bb=_0x28ded0[_0x16a256-0x1]??_0x7c049a;return{'x':_0x7c049a['x']+(_0x3f2500['x']-_0xc641bb['x'])/0x6,'y':_0x7c049a['y']+(_0x3f2500['y']-_0xc641bb['y'])/0x6};}function _0x1fdc33(_0x3a1ff3,_0x1f5b2d){let _0x2af998=_0x3a1ff3[_0x1f5b2d],_0x52f0b2=_0x3a1ff3[_0x1f5b2d-0x1],_0x22cdc6=_0x3a1ff3[_0x1f5b2d+0x1]??_0x2af998;return{'x':_0x2af998['x']-(_0x22cdc6['x']-_0x52f0b2['x'])/0x6,'y':_0x2af998['y']-(_0x22cdc6['y']-_0x52f0b2['y'])/0x6};}function _0x107701(_0x1c07c4,_0x12bd43){const _0x84e080=_0x1afe;let _0x1612f1=_0x1c07c4[_0x84e080(0xa3)][_0x12bd43],_0x10431a=_0x1c07c4[_0x84e080(0xa3)][_0x12bd43-0x1]??(_0x1c07c4['closed']?_0x1c07c4[_0x84e080(0xa3)][_0x1c07c4[_0x84e080(0xa3)][_0x84e080(0xa2)]-0x1]:null),_0x521620=_0x1c07c4[_0x84e080(0xa3)][_0x12bd43+0x1]??(_0x1c07c4['closed']?_0x1c07c4[_0x84e080(0xa3)][0x0]:null),_0x266cf8=_0x10431a&&_0x521620?_0x3cc237({'x':_0x521620['x']-_0x10431a['x'],'y':_0x521620['y']-_0x10431a['y']}):_0x521620?_0x3cc237({'x':_0x521620['x']-_0x1612f1['x'],'y':_0x521620['y']-_0x1612f1['y']}):_0x10431a?_0x3cc237({'x':_0x1612f1['x']-_0x10431a['x'],'y':_0x1612f1['y']-_0x10431a['y']}):{'x':0x1,'y':0x0},_0x5f3739=_0x10431a&&_0x521620?Math[_0x84e080(0x8c)](0x32,_0x487572(_0x10431a,_0x521620)/0x4):0x32;return{'in':{'x':_0x1612f1['x']-_0x266cf8['x']*_0x5f3739,'y':_0x1612f1['y']-_0x266cf8['y']*_0x5f3739},'out':{'x':_0x1612f1['x']+_0x266cf8['x']*_0x5f3739,'y':_0x1612f1['y']+_0x266cf8['y']*_0x5f3739}};}function _0x3dc35b(_0x42f71a,_0x41f643){const _0x466ccf=_0x1afe;let _0x3c303c=_0x42f71a[_0x41f643],_0x28ef34=_0x41f643==='in'?_0x466ccf(0xdc):'in',_0x23577b=_0x42f71a[_0x28ef34];_0x3c303c&&(_0x42f71a[_0x466ccf(0xb8)]===_0x466ccf(0xb1)?_0x42f71a[_0x28ef34]=_0x142c6e(_0x42f71a,_0x3c303c):_0x42f71a[_0x466ccf(0xb8)]===_0x466ccf(0xbf)&&(_0x42f71a[_0x28ef34]=_0x142c6e(_0x42f71a,_0x3c303c,_0x23577b?_0x487572(_0x42f71a,_0x23577b):_0x487572(_0x42f71a,_0x3c303c))));}function _0x230015(_0x53339e,_0xdd2bef){const _0x28cfdf=_0x1afe;let _0x4b027a=_0x4020ef(_0x53339e);return!_0xdd2bef||_0x4b027a[_0x28cfdf(0x94)]||_0x4b027a['anchors'][_0x28cfdf(0xa2)]===0x0||_0x4b027a[_0x28cfdf(0xa3)][_0x28cfdf(0xa9)]({'id':_0x28cfdf(0xa8),'x':_0xdd2bef['x'],'y':_0xdd2bef['y'],'pointType':_0x28cfdf(0xe9)}),_0x4b027a;}function _0x4806bb(_0x2b8b2f,_0x5684c0={}){const _0x42fb80=_0x1afe;let _0x26e2a2=Math[_0x42fb80(0x8c)](0x0,_0x5684c0[_0x42fb80(0xc2)]??Math['max'](0x4,_0x2b8b2f[_0x42fb80(0x84)]*0.35)),_0x56b320=_0x5684c0['createId']??(_0x2a1917=>'ink-centerline-'+_0x2a1917),_0x3d9f1a=_0x498a56(_0x2b8b2f[_0x42fb80(0x7e)],_0x26e2a2),_0x468f61=_0x3d9f1a[_0x42fb80(0xb0)]((_0x2d247d,_0x57242f)=>({'id':_0x56b320(_0x57242f),'x':_0x2d247d['x'],'y':_0x2d247d['y'],'pointType':_0x42fb80(0xde)}));for(let _0x8d3ab0=0x0;_0x8d3ab0<_0x468f61['length']-0x1;_0x8d3ab0++)_0x468f61[_0x8d3ab0]['out']=_0x245fae(_0x3d9f1a,_0x8d3ab0),_0x468f61[_0x8d3ab0+0x1]['in']=_0x1fdc33(_0x3d9f1a,_0x8d3ab0+0x1);return{'kind':_0x42fb80(0xe0),'closed':!0x1,'anchors':_0x468f61};}function _0x5c8e53(_0x44d31b,_0x2a05d2,_0x599cd6){const _0x4f717e=_0x1afe;let _0x2179a6=null,_0x36b7a2=[_0x4f717e(0x80),'in',_0x4f717e(0xdc)];return _0x44d31b[_0x4f717e(0xa3)]['forEach']((_0x4ae95d,_0x1e0cde)=>{_0x36b7a2['forEach'](_0x38f3b1=>{const _0x25e81c=_0x1afe;if(!_0x126ade(_0x44d31b,_0x1e0cde,_0x38f3b1))return;let _0x301372=_0x461d80(_0x4ae95d,_0x38f3b1);if(!_0x301372)return;let _0x1928a0=_0x487572(_0x2a05d2,_0x301372);_0x1928a0>_0x599cd6||_0x2179a6&&_0x1928a0>=_0x2179a6[_0x25e81c(0xda)]||(_0x2179a6={'handle':{'kind':_0x38f3b1,'anchorId':_0x4ae95d['id']},'point':_0x1daa24(_0x301372),'distance':_0x1928a0});});}),_0x2179a6;}function _0x92859f(_0x1e5e10,_0x134acf,_0x30a6b9){const _0x43df1f=_0x1afe;let _0x4b87f4=null,_0x3e11de=_0x1e5e10[_0x43df1f(0x94)]?_0x1e5e10[_0x43df1f(0xa3)][_0x43df1f(0xa2)]:Math['max'](0x0,_0x1e5e10[_0x43df1f(0xa3)][_0x43df1f(0xa2)]-0x1);for(let _0x273d3e=0x0;_0x273d3e<_0x3e11de;_0x273d3e++){let _0x20a47b=_0xc97e19(_0x1e5e10,_0x273d3e);if(!_0x20a47b)continue;let _0x21652f=_0x2dc259(_0x20a47b,0x0);for(let _0x4e70e8=0x1;_0x4e70e8<=0x20;_0x4e70e8++){let _0x4cbac6=_0x2dc259(_0x20a47b,_0x4e70e8/0x20),_0xf3c0f9=_0x59655b(_0x134acf,_0x21652f,_0x4cbac6),_0x5f4af0=(_0x4e70e8-0x1+_0xf3c0f9[_0x43df1f(0xef)])/0x20;(!_0x4b87f4||_0xf3c0f9['distance']<_0x4b87f4[_0x43df1f(0xda)])&&(_0x4b87f4={'segmentIndex':_0x273d3e,'t':_0x5f4af0,'point':_0xf3c0f9[_0x43df1f(0x7c)],'distance':_0xf3c0f9[_0x43df1f(0xda)]}),_0x21652f=_0x4cbac6;}}return _0x4b87f4&&_0x4b87f4[_0x43df1f(0xda)]<=_0x30a6b9?_0x4b87f4:null;}function _0x24b56a(_0x525f89,_0x414043,_0x5b064c){const _0x35189b=_0x1afe;let _0x5ca83a=_0x4020ef(_0x525f89),_0x4d8ac5=_0x2c23ce(_0x5ca83a,_0x414043[_0x35189b(0xd1)]),_0x3e9830=_0xc97e19(_0x5ca83a,_0x414043['segmentIndex']);if(!_0x4d8ac5||!_0x3e9830)return _0x5ca83a;let _0xaec346=_0x3b062b(_0x3e9830,Math[_0x35189b(0x8c)](0x0,Math['min'](0x1,_0x414043['t']))),_0x69f74a={'id':_0x5b064c(),'x':_0xaec346[_0x35189b(0xcc)][0x3]['x'],'y':_0xaec346['left'][0x3]['y'],'in':_0x1daa24(_0xaec346['left'][0x2]),'out':_0x1daa24(_0xaec346['right'][0x1]),'pointType':_0x35189b(0xde)};return _0x5ca83a[_0x35189b(0xa3)][_0x4d8ac5[_0x35189b(0xb5)]]['out']=_0x1daa24(_0xaec346[_0x35189b(0xcc)][0x1]),_0x5ca83a[_0x35189b(0xa3)][_0x4d8ac5[_0x35189b(0xed)]]['in']=_0x1daa24(_0xaec346[_0x35189b(0xab)][0x2]),_0x5ca83a[_0x35189b(0xa3)][_0x35189b(0x8d)](_0x4d8ac5[_0x35189b(0xb5)]+0x1,0x0,_0x69f74a),_0x5ca83a;}function _0x3cdb1d(_0x245fc2,_0x31d4b8){const _0x1ba13e=_0x1afe;let _0x23a61e=_0x4020ef(_0x245fc2);return _0x23a61e[_0x1ba13e(0xa3)]=_0x23a61e[_0x1ba13e(0xa3)]['filter'](_0x1a5da0=>_0x1a5da0['id']!==_0x31d4b8),_0x23a61e[_0x1ba13e(0x94)]&&_0x23a61e[_0x1ba13e(0xa3)][_0x1ba13e(0xa2)]<0x3&&(_0x23a61e['closed']=!0x1),_0x23a61e;}function _0x3a1013(_0x4affa5,_0x3a6e38,_0x298533){const _0x623b35=_0x1afe;let _0x64ce90=_0x4020ef(_0x4affa5),_0xbf44a=_0x64ce90[_0x623b35(0xa3)][_0x623b35(0xc1)](_0x597231=>_0x597231['id']===_0x3a6e38),_0x48e99e=_0x64ce90[_0x623b35(0xa3)][_0xbf44a];if(!_0x48e99e)return _0x64ce90;if(_0x48e99e[_0x623b35(0xb8)]=_0x298533,_0x298533===_0x623b35(0xe9))return delete _0x48e99e['in'],delete _0x48e99e[_0x623b35(0xdc)],_0x64ce90;let _0xd55462=_0x107701(_0x64ce90,_0xbf44a);if(_0x48e99e['in']=_0x48e99e['in']?_0x1daa24(_0x48e99e['in']):_0xd55462['in'],_0x48e99e[_0x623b35(0xdc)]=_0x48e99e[_0x623b35(0xdc)]?_0x1daa24(_0x48e99e[_0x623b35(0xdc)]):_0xd55462[_0x623b35(0xdc)],_0x298533===_0x623b35(0xb1)){let _0x167df6=Math[_0x623b35(0x8c)](_0x487572(_0x48e99e,_0x48e99e['in']),_0x487572(_0x48e99e,_0x48e99e[_0x623b35(0xdc)]),0x32),_0x1532dc=_0x3cc237({'x':_0x48e99e[_0x623b35(0xdc)]['x']-_0x48e99e['x'],'y':_0x48e99e[_0x623b35(0xdc)]['y']-_0x48e99e['y']});_0x48e99e[_0x623b35(0xdc)]={'x':_0x48e99e['x']+_0x1532dc['x']*_0x167df6,'y':_0x48e99e['y']+_0x1532dc['y']*_0x167df6},_0x48e99e['in']={'x':_0x48e99e['x']-_0x1532dc['x']*_0x167df6,'y':_0x48e99e['y']-_0x1532dc['y']*_0x167df6};}else _0x298533===_0x623b35(0xbf)&&_0x3dc35b(_0x48e99e,_0x623b35(0xdc));return _0x64ce90;}function _0xe895ee(_0x7c3b9b,_0x595582){const _0x3a9683=_0x1afe;let _0x391e63=_0x7c3b9b[_0x3a9683(0xa3)]['find'](_0x180413=>_0x180413['id']===_0x595582),_0x3489eb=(_0x391e63==null?void 0x0:_0x391e63['pointType'])??_0x3a9683(0xe9);return _0x3a1013(_0x7c3b9b,_0x595582,_0x3489eb===_0x3a9683(0xe9)?_0x3a9683(0xbf):_0x3489eb===_0x3a9683(0xbf)?_0x3a9683(0xb1):_0x3489eb===_0x3a9683(0xb1)?_0x3a9683(0xde):_0x3a9683(0xe9));}function _0x4244d5(_0x144ed4,_0x40af84,_0x4836f8){const _0x51c97f=_0x1afe;let _0x5e919f=_0x4020ef(_0x144ed4),_0x2bab50=_0x5e919f[_0x51c97f(0xa3)]['find'](_0x457aaa=>_0x457aaa['id']===_0x40af84[_0x51c97f(0xae)]);if(!_0x2bab50)return _0x5e919f;if(_0x40af84[_0x51c97f(0xb9)]==='anchor'){let _0x47c033={'x':_0x4836f8['x']-_0x2bab50['x'],'y':_0x4836f8['y']-_0x2bab50['y']};return _0x2bab50['x']=_0x4836f8['x'],_0x2bab50['y']=_0x4836f8['y'],_0x2bab50['in']&&={'x':_0x2bab50['in']['x']+_0x47c033['x'],'y':_0x2bab50['in']['y']+_0x47c033['y']},_0x2bab50['out']&&={'x':_0x2bab50[_0x51c97f(0xdc)]['x']+_0x47c033['x'],'y':_0x2bab50[_0x51c97f(0xdc)]['y']+_0x47c033['y']},_0x5e919f;}return _0x2bab50[_0x40af84[_0x51c97f(0xb9)]]=_0x1daa24(_0x4836f8),_0x2bab50[_0x51c97f(0xb8)]==='corner'&&(_0x2bab50[_0x51c97f(0xb8)]=_0x51c97f(0xde)),_0x3dc35b(_0x2bab50,_0x40af84[_0x51c97f(0xb9)]),_0x5e919f;}let _0x805975=1e-9;function _0x559088(_0x29b8da){const _0x322506=_0x1afe;let _0x3e65a4=Math[_0x322506(0xe4)](_0x29b8da*0x2710)/0x2710;return Object['is'](_0x3e65a4,-0x0)?'0':String(_0x3e65a4);}function _0x597e76(_0x4fb502){return _0x559088(_0x4fb502['x'])+'\x20'+_0x559088(_0x4fb502['y']);}function _0x2591be(_0x4e034c,_0x967689){return{'x':_0x4e034c['x']-_0x967689['x'],'y':_0x4e034c['y']-_0x967689['y']};}function _0x4551a1(_0x23db19,_0x1bef3d,_0xc63ce9,_0x2b560e,_0x5c0c23){let _0x5e2ef4=0x1-_0x5c0c23;return{'x':_0x5e2ef4*_0x5e2ef4*_0x5e2ef4*_0x23db19['x']+0x3*_0x5e2ef4*_0x5e2ef4*_0x5c0c23*_0x1bef3d['x']+0x3*_0x5e2ef4*_0x5c0c23*_0x5c0c23*_0xc63ce9['x']+_0x5c0c23*_0x5c0c23*_0x5c0c23*_0x2b560e['x'],'y':_0x5e2ef4*_0x5e2ef4*_0x5e2ef4*_0x23db19['y']+0x3*_0x5e2ef4*_0x5e2ef4*_0x5c0c23*_0x1bef3d['y']+0x3*_0x5e2ef4*_0x5c0c23*_0x5c0c23*_0xc63ce9['y']+_0x5c0c23*_0x5c0c23*_0x5c0c23*_0x2b560e['y']};}function _0x368095(_0x14323c,_0x2d086a,_0x48a70a,_0x14ac04){const _0x146433=_0x1afe;let _0x24720f=-_0x14323c+0x3*_0x2d086a-0x3*_0x48a70a+_0x14ac04,_0x55f709=0x3*_0x14323c-0x6*_0x2d086a+0x3*_0x48a70a,_0x55d86e=-0x3*_0x14323c+0x3*_0x2d086a,_0x3a6a62=[];if(Math[_0x146433(0x89)](_0x24720f)<_0x805975){if(Math[_0x146433(0x89)](_0x55f709)<_0x805975)return _0x3a6a62;let _0xc89b83=-_0x55d86e/(0x2*_0x55f709);return _0xc89b83>0x0&&_0xc89b83<0x1&&_0x3a6a62[_0x146433(0xa9)](_0xc89b83),_0x3a6a62;}let _0x2b535a=_0x55f709*_0x55f709-0x3*_0x24720f*_0x55d86e;if(_0x2b535a<0x0)return _0x3a6a62;let _0x53b70d=Math[_0x146433(0xec)](Math[_0x146433(0x8c)](0x0,_0x2b535a)),_0x5d0da3=(-_0x55f709+_0x53b70d)/(0x3*_0x24720f),_0x39e4ef=(-_0x55f709-_0x53b70d)/(0x3*_0x24720f);return _0x5d0da3>0x0&&_0x5d0da3<0x1&&_0x3a6a62[_0x146433(0xa9)](_0x5d0da3),_0x39e4ef>0x0&&_0x39e4ef<0x1&&Math[_0x146433(0x89)](_0x39e4ef-_0x5d0da3)>_0x805975&&_0x3a6a62['push'](_0x39e4ef),_0x3a6a62;}function _0x634920(_0x1f686b,_0x5c9ec4,_0x2d486c,_0x13ad4b,_0x466dad){const _0xaf96f9=_0x1afe;_0x1f686b[_0xaf96f9(0xa9)](_0x5c9ec4,_0x466dad),new Set([..._0x368095(_0x5c9ec4['x'],_0x2d486c['x'],_0x13ad4b['x'],_0x466dad['x']),..._0x368095(_0x5c9ec4['y'],_0x2d486c['y'],_0x13ad4b['y'],_0x466dad['y'])])[_0xaf96f9(0xe1)](_0x2581ae=>{const _0x48488e=_0xaf96f9;_0x1f686b[_0x48488e(0xa9)](_0x4551a1(_0x5c9ec4,_0x2d486c,_0x13ad4b,_0x466dad,_0x2581ae));});}function _0x3a3e30(_0x4157f6){const _0xbf80e3=_0x1afe;let _0x318f60=_0x4157f6[_0xbf80e3(0xa3)];if(_0x318f60[_0xbf80e3(0xa2)]<=0x1)return _0x318f60;let _0xe53c35=[];for(let _0x2cc005=0x1;_0x2cc005<_0x318f60[_0xbf80e3(0xa2)];_0x2cc005++){let _0x23375e=_0x318f60[_0x2cc005-0x1],_0x7ecd3f=_0x318f60[_0x2cc005];_0x634920(_0xe53c35,_0x23375e,_0x23375e[_0xbf80e3(0xdc)]??_0x23375e,_0x7ecd3f['in']??_0x7ecd3f,_0x7ecd3f);}if(_0x4157f6[_0xbf80e3(0x94)]&&_0x318f60[_0xbf80e3(0xa2)]>0x1){let _0x3f025e=_0x318f60[_0x318f60[_0xbf80e3(0xa2)]-0x1],_0x4401b4=_0x318f60[0x0];_0x634920(_0xe53c35,_0x3f025e,_0x3f025e[_0xbf80e3(0xdc)]??_0x3f025e,_0x4401b4['in']??_0x4401b4,_0x4401b4);}return _0xe53c35;}function _0x21a0bc(_0x27f65a){const _0x2d7c5c=_0x1afe;let _0x165c42=_0x27f65a[_0x2d7c5c(0x7e)];if(_0x165c42['length']<=0x1)return _0x165c42;let _0x34f660=[];for(let _0x181713=0x0;_0x181713<_0x165c42[_0x2d7c5c(0xa2)]-0x1;_0x181713++){let _0x529453=_0x165c42[_0x181713],_0x34b31a=_0x165c42[_0x181713+0x1],_0x174261=_0x165c42[_0x181713-0x1]??_0x529453,_0x34075c=_0x165c42[_0x181713+0x2]??_0x34b31a;_0x634920(_0x34f660,_0x529453,{'x':_0x529453['x']+(_0x34b31a['x']-_0x174261['x'])/0x6,'y':_0x529453['y']+(_0x34b31a['y']-_0x174261['y'])/0x6},{'x':_0x34b31a['x']-(_0x34075c['x']-_0x529453['x'])/0x6,'y':_0x34b31a['y']-(_0x34075c['y']-_0x529453['y'])/0x6},_0x34b31a);}return _0x34f660;}function _0x2c642d(_0x56c810){const _0x4a628e=_0x1afe;return _0x56c810[_0x4a628e(0xb9)]===_0x4a628e(0xe0)?_0x3a3e30(_0x56c810):_0x21a0bc(_0x56c810);}function _0x43e93d(_0x68a187){const _0x371e88=_0x1afe;let _0x402a02=Math[_0x371e88(0xe4)](_0x68a187*0x2710)/0x2710;return Object['is'](_0x402a02,-0x0)?0x0:_0x402a02;}function _0x14db12(_0x442767){const _0x45296d=_0x1afe;let _0xf222a9=_0x2c642d(_0x442767);if(_0xf222a9['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3c0615=Math[_0x45296d(0x9c)](..._0xf222a9['map'](_0x42a592=>_0x42a592['x'])),_0x41d22f=Math[_0x45296d(0x9c)](..._0xf222a9[_0x45296d(0xb0)](_0x2ed606=>_0x2ed606['y'])),_0x28bd9a=Math[_0x45296d(0x8c)](..._0xf222a9[_0x45296d(0xb0)](_0x5b9c36=>_0x5b9c36['x'])),_0x568ddc=Math[_0x45296d(0x8c)](..._0xf222a9[_0x45296d(0xb0)](_0x582369=>_0x582369['y']));return{'left':_0x43e93d(_0x3c0615),'top':_0x43e93d(_0x41d22f),'width':_0x43e93d(Math['max'](0x1,_0x28bd9a-_0x3c0615)),'height':_0x43e93d(Math[_0x45296d(0x8c)](0x1,_0x568ddc-_0x41d22f))};}function _0x464fbf(_0xb644cd,_0x189e6d){const _0x55a04f=_0x1afe;let _0x552417=_0xb644cd[_0x55a04f(0xa3)];if(_0x552417[_0x55a04f(0xa2)]===0x0)return'';let _0x584ff6=['M\x20'+_0x597e76(_0x2591be(_0x552417[0x0],_0x189e6d))];for(let _0x5e67d4=0x1;_0x5e67d4<_0x552417[_0x55a04f(0xa2)];_0x5e67d4++){let _0x4ae187=_0x552417[_0x5e67d4-0x1],_0x21b880=_0x552417[_0x5e67d4],_0x5cae52=_0x4ae187['out']??_0x4ae187,_0x5b9298=_0x21b880['in']??_0x21b880;_0x584ff6['push']('C\x20'+_0x597e76(_0x2591be(_0x5cae52,_0x189e6d))+'\x20'+_0x597e76(_0x2591be(_0x5b9298,_0x189e6d))+'\x20'+_0x597e76(_0x2591be(_0x21b880,_0x189e6d)));}if(_0xb644cd['closed']&&_0x552417[_0x55a04f(0xa2)]>0x1){let _0x211cc1=_0x552417[_0x552417[_0x55a04f(0xa2)]-0x1],_0x8388ba=_0x552417[0x0],_0x4700dd=_0x211cc1[_0x55a04f(0xdc)]??_0x211cc1,_0x2b9a56=_0x8388ba['in']??_0x8388ba;_0x584ff6[_0x55a04f(0xa9)]('C\x20'+_0x597e76(_0x2591be(_0x4700dd,_0x189e6d))+'\x20'+_0x597e76(_0x2591be(_0x2b9a56,_0x189e6d))+'\x20'+_0x597e76(_0x2591be(_0x8388ba,_0x189e6d))),_0x584ff6['push']('Z');}return _0x584ff6[_0x55a04f(0x85)]('\x20');}function _0x1bd98c(_0x5e0e59,_0x5cb0ce){const _0x5f1142=_0x1afe;let _0x4d7e60=_0x5e0e59[_0x5f1142(0x7e)][_0x5f1142(0xb0)](_0x328ce9=>_0x2591be(_0x328ce9,_0x5cb0ce));if(_0x4d7e60[_0x5f1142(0xa2)]===0x0)return'';if(_0x4d7e60['length']===0x1)return'M\x20'+_0x597e76(_0x4d7e60[0x0]);let _0x39aa6c=['M\x20'+_0x597e76(_0x4d7e60[0x0])];for(let _0xbaa0b2=0x0;_0xbaa0b2<_0x4d7e60['length']-0x1;_0xbaa0b2++){let _0x3e13d0=_0x4d7e60[_0xbaa0b2],_0x4fc7e2=_0x4d7e60[_0xbaa0b2+0x1],_0x327b7a=_0x4d7e60[_0xbaa0b2-0x1]??_0x3e13d0,_0xbb8068=_0x4d7e60[_0xbaa0b2+0x2]??_0x4fc7e2,_0x453eb2={'x':_0x3e13d0['x']+(_0x4fc7e2['x']-_0x327b7a['x'])/0x6,'y':_0x3e13d0['y']+(_0x4fc7e2['y']-_0x327b7a['y'])/0x6},_0x4ebbe3={'x':_0x4fc7e2['x']-(_0xbb8068['x']-_0x3e13d0['x'])/0x6,'y':_0x4fc7e2['y']-(_0xbb8068['y']-_0x3e13d0['y'])/0x6};_0x39aa6c[_0x5f1142(0xa9)]('C\x20'+_0x597e76(_0x453eb2)+'\x20'+_0x597e76(_0x4ebbe3)+'\x20'+_0x597e76(_0x4fc7e2));}return _0x39aa6c[_0x5f1142(0x85)]('\x20');}function _0x292ab2(_0x460c06,_0x891f9c){const _0x44dcfa=_0x1afe;return _0x460c06['kind']===_0x44dcfa(0xe0)?_0x464fbf(_0x460c06,_0x891f9c):_0x1bd98c(_0x460c06,_0x891f9c);}function _0x2252e1(_0x3dbf27,_0x4d44dc){const _0x1f4d2d=_0x1afe;return _0x4d44dc!=null&&_0x4d44dc['color']?_0x4d44dc[_0x1f4d2d(0x7f)]:_0x3dbf27[_0x1f4d2d(0xb9)]===_0x1f4d2d(0xe0)?_0x1f4d2d(0x79):_0x3dbf27[_0x1f4d2d(0x7f)];}function _0x18b189(_0x40d6ba,_0x45b0c2){const _0x1ab45a=_0x1afe;return(_0x45b0c2==null?void 0x0:_0x45b0c2[_0x1ab45a(0x84)])===void 0x0?_0x40d6ba[_0x1ab45a(0xb9)]===_0x1ab45a(0xe0)?0x2:_0x40d6ba[_0x1ab45a(0x84)]:_0x45b0c2['width'];}function _0x413ba8(_0x589ecd,_0x2e512b){const _0x2f5d34=_0x1afe;return(_0x2e512b==null?void 0x0:_0x2e512b[_0x2f5d34(0xbc)])===void 0x0?_0x589ecd[_0x2f5d34(0xb9)]===_0x2f5d34(0xe0)?void 0x0:_0x589ecd[_0x2f5d34(0xbc)]:_0x2e512b[_0x2f5d34(0xbc)];}function _0x336bd6(_0x46cca1,_0x5a571c){const _0x2e3dee=_0x1afe;let _0x59c3ef=_0x14db12(_0x46cca1),_0x427f00=_0x292ab2(_0x46cca1,{'x':_0x59c3ef[_0x2e3dee(0xcc)],'y':_0x59c3ef['top']}),_0x4ed83f=_0x46cca1['kind']==='pen'&&_0x46cca1[_0x2e3dee(0x94)],_0x48aa33=_0x5a571c==null?void 0x0:_0x5a571c[_0x2e3dee(0xdf)];return{'shapeType':_0x3a7054['ShapeTypeEnum'][_0x2e3dee(0xaf)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x59c3ef['width'],'h':_0x59c3ef[_0x2e3dee(0xd0)],'fill':_0x4ed83f?_0x2e3dee(0xbe):'none','stroke':!0x0,'data':_0x427f00,'dataArray':_0x1f584d(_0x46cca1,{'x':_0x59c3ef[_0x2e3dee(0xcc)],'y':_0x59c3ef['top']})}]},'fill':_0x4ed83f&&_0x48aa33?{'color':_0x48aa33,'fillType':_0x3a7054['ShapeFillEnum'][_0x2e3dee(0xcd)]}:{'fillType':_0x3a7054[_0x2e3dee(0x8b)][_0x2e3dee(0x96)]},'stroke':{'color':_0x2252e1(_0x46cca1,_0x5a571c),'width':_0x18b189(_0x46cca1,_0x5a571c),'opacity':_0x413ba8(_0x46cca1,_0x5a571c),'lineStrokeType':_0x3a7054[_0x2e3dee(0xcb)][_0x2e3dee(0x77)],'capType':_0x3a7054[_0x2e3dee(0xc3)][_0x2e3dee(0x9a)],'lineJoinType':_0x3a7054['ShapeLineJoinEnum'][_0x2e3dee(0x9a)]}};}function _0xc13b2b(_0x2315d9,_0x1ff32d){return{'x':_0x2315d9['x']-_0x1ff32d['x'],'y':_0x2315d9['y']-_0x1ff32d['y']};}function _0x1f584d(_0xa57d03,_0x23aa3c){const _0x48a1cf=_0x1afe;if(_0xa57d03[_0x48a1cf(0xb9)]==='pen'){let _0x455fc3=_0xa57d03[_0x48a1cf(0xa3)];if(_0x455fc3[_0x48a1cf(0xa2)]===0x0)return[];let _0x2a2733=_0xc13b2b(_0x455fc3[0x0],_0x23aa3c),_0x1c2b62=[{'command':'M','points':[_0x2a2733['x'],_0x2a2733['y']]}];for(let _0x11f538=0x1;_0x11f538<_0x455fc3[_0x48a1cf(0xa2)];_0x11f538++){let _0x4dc057=_0x455fc3[_0x11f538-0x1],_0x200b4b=_0x455fc3[_0x11f538],_0x424655=_0xc13b2b(_0x4dc057[_0x48a1cf(0xdc)]??_0x4dc057,_0x23aa3c),_0x3a0ced=_0xc13b2b(_0x200b4b['in']??_0x200b4b,_0x23aa3c),_0x587877=_0xc13b2b(_0x200b4b,_0x23aa3c);_0x1c2b62['push']({'command':'C','points':[_0x424655['x'],_0x424655['y'],_0x3a0ced['x'],_0x3a0ced['y'],_0x587877['x'],_0x587877['y']]});}if(_0xa57d03[_0x48a1cf(0x94)]&&_0x455fc3[_0x48a1cf(0xa2)]>0x1){let _0x498f63=_0x455fc3[_0x455fc3[_0x48a1cf(0xa2)]-0x1],_0x463338=_0x455fc3[0x0],_0x74c57f=_0xc13b2b(_0x498f63[_0x48a1cf(0xdc)]??_0x498f63,_0x23aa3c),_0x5a0603=_0xc13b2b(_0x463338['in']??_0x463338,_0x23aa3c),_0x708054=_0xc13b2b(_0x463338,_0x23aa3c);_0x1c2b62[_0x48a1cf(0xa9)]({'command':'C','points':[_0x74c57f['x'],_0x74c57f['y'],_0x5a0603['x'],_0x5a0603['y'],_0x708054['x'],_0x708054['y']]}),_0x1c2b62['push']({'command':'z','points':[]});}return _0x1c2b62;}let _0x370874=_0xa57d03[_0x48a1cf(0x7e)][_0x48a1cf(0xb0)](_0x31d828=>_0xc13b2b(_0x31d828,_0x23aa3c));if(_0x370874['length']===0x0)return[];let _0x5cd835=[{'command':'M','points':[_0x370874[0x0]['x'],_0x370874[0x0]['y']]}];for(let _0x2e7a70=0x0;_0x2e7a70<_0x370874[_0x48a1cf(0xa2)]-0x1;_0x2e7a70++){let _0x191e91=_0x370874[_0x2e7a70],_0xb59ead=_0x370874[_0x2e7a70+0x1],_0x414ab9=_0x370874[_0x2e7a70-0x1]??_0x191e91,_0x3420dc=_0x370874[_0x2e7a70+0x2]??_0xb59ead,_0x500477={'x':_0x191e91['x']+(_0xb59ead['x']-_0x414ab9['x'])/0x6,'y':_0x191e91['y']+(_0xb59ead['y']-_0x414ab9['y'])/0x6},_0x3090ff={'x':_0xb59ead['x']-(_0x3420dc['x']-_0x191e91['x'])/0x6,'y':_0xb59ead['y']-(_0x3420dc['y']-_0x191e91['y'])/0x6};_0x5cd835[_0x48a1cf(0xa9)]({'command':'C','points':[_0x500477['x'],_0x500477['y'],_0x3090ff['x'],_0x3090ff['y'],_0xb59ead['x'],_0xb59ead['y']]});}return _0x5cd835;}function _0x48df54(_0xf1d7d3){const _0x5843bb=_0x1afe;let {model:_0x5e98c0,sourceModel:_0x258158=_0x5e98c0,style:_0x173304}=_0xf1d7d3,_0x3c8d9f=_0xf1d7d3[_0x5843bb(0xd5)]??_0x5e98c0[_0x5843bb(0xb9)],_0x350fc9=_0x14db12(_0x5e98c0),_0x879e7=_0x5e98c0[_0x5843bb(0xb9)]===_0x5843bb(0xe0)&&_0x3c8d9f!=='pen'?_0x5e98c0:void 0x0;return{'transform':{..._0x350fc9,'rotation':0x0},'shapeData':_0x336bd6(_0x5e98c0,_0x173304),'ink':{'version':0x1,'tool':_0x3c8d9f,'sourceModel':_0x258158,..._0x879e7?{'editModel':_0x879e7}:{},'normalizedBounds':_0x350fc9}};}var _0x54e376=_0x14041a(0xeb),_0x35170c=_0x14041a(0xea);function _0x38736b(_0x2668cb){'@babel/helpers - typeof';const _0x25cbbd=_0x14041a;return _0x38736b=typeof Symbol==_0x25cbbd(0xd9)&&typeof Symbol['iterator']==_0x25cbbd(0x7a)?function(_0x3d4f0d){return typeof _0x3d4f0d;}:function(_0x54128f){const _0x1d2858=_0x25cbbd;return _0x54128f&&typeof Symbol=='function'&&_0x54128f[_0x1d2858(0xb3)]===Symbol&&_0x54128f!==Symbol['prototype']?_0x1d2858(0x7a):typeof _0x54128f;},_0x38736b(_0x2668cb);}function _0x19d047(_0x58f9c7,_0x22d20f){const _0x18dd01=_0x14041a;if(_0x38736b(_0x58f9c7)!='object'||!_0x58f9c7)return _0x58f9c7;var _0xe14b2f=_0x58f9c7[Symbol['toPrimitive']];if(_0xe14b2f!==void 0x0){var _0x2a5831=_0xe14b2f[_0x18dd01(0xdd)](_0x58f9c7,_0x22d20f||'default');if(_0x38736b(_0x2a5831)!=_0x18dd01(0xee))return _0x2a5831;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x22d20f===_0x18dd01(0xd8)?String:Number)(_0x58f9c7);}function _0x4107ac(_0x20132f){const _0x3fca83=_0x14041a;var _0x2fc6a1=_0x19d047(_0x20132f,_0x3fca83(0xd8));return _0x38736b(_0x2fc6a1)==_0x3fca83(0x7a)?_0x2fc6a1:_0x2fc6a1+'';}function _0x244fd5(_0x44e1bc,_0x39ede5,_0xcabd1c){const _0x9e1ce1=_0x14041a;return(_0x39ede5=_0x4107ac(_0x39ede5))in _0x44e1bc?Object[_0x9e1ce1(0xe5)](_0x44e1bc,_0x39ede5,{'value':_0xcabd1c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x44e1bc[_0x39ede5]=_0xcabd1c,_0x44e1bc;}let _0x2c08d6=(0x0,_0x172d39[_0x14041a(0xa5)])(_0x14041a(0xb4));var _0x4133ea=class{constructor(){_0x244fd5(this,'_adapters',[]);}[_0x14041a(0x97)](_0x499d9c){const _0x4d2f1c=_0x14041a;return this[_0x4d2f1c(0xe7)]['push'](_0x499d9c),(0x0,_0x172d39['toDisposable'])(()=>{const _0x7913f8=_0x4d2f1c;let _0x2480bf=this[_0x7913f8(0xe7)][_0x7913f8(0x9f)](_0x499d9c);_0x2480bf>=0x0&&this[_0x7913f8(0xe7)][_0x7913f8(0x8d)](_0x2480bf,0x1);});}[_0x14041a(0x9d)](_0x4d743e){const _0x5b2404=_0x14041a;for(let _0x1b881b of this[_0x5b2404(0xe7)])if(_0x1b881b[_0x5b2404(0x9d)](_0x4d743e))return!0x0;return!0x1;}async[_0x14041a(0xe8)](_0x361a52){const _0x5ae310=_0x14041a;for(let _0x53b4c1 of this['_adapters'])if(_0x53b4c1[_0x5ae310(0xe8)]&&await _0x53b4c1[_0x5ae310(0xe8)](_0x361a52))return!0x0;return!0x1;}};let _0x29c529={'id':_0x14041a(0x83),'type':_0x172d39[_0x14041a(0xaa)]['OPERATION'],'handler':(_0x1c5903,_0x207a6a)=>_0x207a6a?_0x1c5903[_0x14041a(0x86)](_0x2c08d6)[_0x14041a(0x9d)](_0x207a6a):!0x1},_0x39b1d5={};function _0xace210(_0x2090e8,_0x28ba2a){return function(_0x3a2e9d,_0x779f98){_0x28ba2a(_0x3a2e9d,_0x779f98,_0x2090e8);};}function _0x27f7e0(_0x59d07c,_0x5c7a64,_0x5818a0,_0x14615c){const _0x500d21=_0x14041a;var _0x5a7c9f=arguments['length'],_0x5e396d=_0x5a7c9f<0x3?_0x5c7a64:_0x14615c===null?_0x14615c=Object[_0x500d21(0xba)](_0x5c7a64,_0x5818a0):_0x14615c,_0x10c0e2;if(typeof Reflect==_0x500d21(0xee)&&typeof Reflect[_0x500d21(0xa0)]==_0x500d21(0xd9))_0x5e396d=Reflect[_0x500d21(0xa0)](_0x59d07c,_0x5c7a64,_0x5818a0,_0x14615c);else{for(var _0x561590=_0x59d07c['length']-0x1;_0x561590>=0x0;_0x561590--)(_0x10c0e2=_0x59d07c[_0x561590])&&(_0x5e396d=(_0x5a7c9f<0x3?_0x10c0e2(_0x5e396d):_0x5a7c9f>0x3?_0x10c0e2(_0x5c7a64,_0x5818a0,_0x5e396d):_0x10c0e2(_0x5c7a64,_0x5818a0))||_0x5e396d);}return _0x5a7c9f>0x3&&_0x5e396d&&Object[_0x500d21(0xe5)](_0x5c7a64,_0x5818a0,_0x5e396d),_0x5e396d;}let _0x4ca079=class extends _0x172d39[_0x14041a(0xc8)]{constructor(_0x238d66=_0x39b1d5,_0x43132a,_0x4644e3,_0xc3e0e2){const _0x5a6f2e=_0x14041a;super(),this[_0x5a6f2e(0xd3)]=_0x238d66,this[_0x5a6f2e(0xe6)]=_0x43132a,this[_0x5a6f2e(0x81)]=_0x4644e3,this[_0x5a6f2e(0xc5)]=_0xc3e0e2;let {..._0x4c029e}=(0x0,_0x172d39[_0x5a6f2e(0xe3)])({},_0x39b1d5,this[_0x5a6f2e(0xd3)]);this[_0x5a6f2e(0xc5)][_0x5a6f2e(0x78)](_0x5a6f2e(0xc6),_0x4c029e);}[_0x14041a(0xb2)](){const _0x49e505=_0x14041a;[[_0x2c08d6,{'useClass':_0x4133ea}]][_0x49e505(0xe1)](_0x33aabf=>this[_0x49e505(0xe6)][_0x49e505(0x93)](_0x33aabf)),this['disposeWithMe'](this[_0x49e505(0x81)][_0x49e505(0xd2)](_0x29c529));}};_0x244fd5(_0x4ca079,'pluginName',_0x14041a(0xa4)),_0x244fd5(_0x4ca079,_0x14041a(0xb7),_0x54e376),_0x244fd5(_0x4ca079,_0x14041a(0xd4),_0x35170c),_0x244fd5(_0x4ca079,_0x14041a(0xd6),_0x172d39[_0x14041a(0x88)][_0x14041a(0xad)]),_0x4ca079=_0x27f7e0([(0x0,_0x172d39[_0x14041a(0x8f)])(_0x43a626[_0x14041a(0xce)]),_0xace210(0x1,(0x0,_0x172d39[_0x14041a(0x9e)])(_0x172d39[_0x14041a(0x7d)])),_0xace210(0x2,_0x172d39[_0x14041a(0xf1)]),_0xace210(0x3,_0x172d39['IConfigService'])],_0x4ca079),_0xbab771[_0x14041a(0xc9)]=_0x2c08d6,Object[_0x14041a(0xe5)](_0xbab771,'UniverInkPlugin',{'enumerable':!0x0,'get':function(){return _0x4ca079;}}),_0xbab771[_0x14041a(0xa1)]=_0x48df54,_0xbab771[_0x14041a(0xa6)]=_0x4806bb,_0xbab771['cycleInkPenAnchorPointType']=_0xe895ee,_0xbab771[_0x14041a(0x91)]=_0x3cdb1d,_0xbab771[_0x14041a(0xc0)]=_0x5c8e53,_0xbab771[_0x14041a(0xdb)]=_0x92859f,_0xbab771['getInkModelBounds']=_0x14db12,_0xbab771[_0x14041a(0x8e)]=_0x230015,_0xbab771[_0x14041a(0xac)]=_0x24b56a,_0xbab771[_0x14041a(0xc4)]=_0x126ade,_0xbab771['moveInkPenAnchorPoint']=_0x4244d5,_0xbab771['setInkPenAnchorPointType']=_0x3a1013;}));
1
+ function _0x2710(_0x2ee22a,_0x1b023b){_0x2ee22a=_0x2ee22a-0x126;const _0x13df92=_0x13df();let _0x2710e4=_0x13df92[_0x2ee22a];return _0x2710e4;}function _0x13df(){const _0xe3251a=['string','anchor','abs','prototype','amd','closed','onStarting','registerCommand','125UURFti','add','ShapeFillEnum','@univerjs-pro/license','beginInkMode','14FWrKho','415152IADhfz','length','fillColor','exports','corner','NoFill','35284BBGwbx','findIndex','kind','packageName','anchors','UNIVER_UNKNOWN','tool','max','12093348TVBDvg','495700BDdlWo','getOwnPropertyDescriptor','UniverInkPlugin','indexOf','left','deleteInkPenAnchor','isInkPenHandleVisible','16862ryFYhc','version','_commandService','free','startIndex','type','#f54a45','CommandType','cycleInkPenAnchorPointType','Injector','DependentOn','_config','toPrimitive','ink.host-adapter.service','symbol','Plugin','ShapeLineTypeEnum','11jEyirq','setConfig','merge','defineProperty','color','ShapeLineJoinEnum','@univerjs-pro/ink','opacity','1.5.1','iterator','point','158076SmbOso','8LSeOhj','insertInkPenAnchorAt','tolerance','SolidLine','pen','distance','symmetric','Module','map','getInkPenPreviewModel','slice','_injector','filter','UniverProInk','setInkPenAnchorPointType','_adapters','createId','createCustomShape','object','anchorId','height','default','SolidFill','out','min','function','ink.config','16VEZWBp','moveInkPenAnchorPoint','@univerjs-pro/engine-shape','right','points','start','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ink-centerline-','Round','width','pluginName','top','constructor','round','smooth','getInkModelBounds','join','decorate','hypot','pointType','forEach','splice','3142593zKimuZ','push','ratio','toDisposable','find','end','toStringTag','ShapeTypeEnum','_configService','call','OPERATION','get','Inject','segmentIndex','@univerjs/core','norm'];_0x13df=function(){return _0xe3251a;};return _0x13df();}(function(_0x151f49,_0x39e2d2){const _0x9d26bf=_0x2710,_0x1f67b1=_0x151f49();while(!![]){try{const _0x3379f2=parseInt(_0x9d26bf(0x137))/0x1*(-parseInt(_0x9d26bf(0x181))/0x2)+-parseInt(_0x9d26bf(0x16b))/0x3+-parseInt(_0x9d26bf(0x171))/0x4*(parseInt(_0x9d26bf(0x165))/0x5)+-parseInt(_0x9d26bf(0x19d))/0x6*(-parseInt(_0x9d26bf(0x16a))/0x7)+parseInt(_0x9d26bf(0x19e))/0x8*(-parseInt(_0x9d26bf(0x14d))/0x9)+parseInt(_0x9d26bf(0x17a))/0xa+-parseInt(_0x9d26bf(0x192))/0xb*(-parseInt(_0x9d26bf(0x179))/0xc);if(_0x3379f2===_0x39e2d2)break;else _0x1f67b1['push'](_0x1f67b1['shift']());}catch(_0x32cbf8){_0x1f67b1['push'](_0x1f67b1['shift']());}}}(_0x13df,0x41333),function(_0x2455d3,_0x292683){const _0x5998b1=_0x2710;typeof exports==_0x5998b1(0x12e)&&typeof module<'u'?_0x292683(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x5998b1(0x135)&&define[_0x5998b1(0x161)]?define([_0x5998b1(0x16e),_0x5998b1(0x139),_0x5998b1(0x168),_0x5998b1(0x15b)],_0x292683):(_0x2455d3=typeof globalThis<'u'?globalThis:_0x2455d3||self,_0x292683(_0x2455d3[_0x5998b1(0x129)]={},_0x2455d3['UniverProEngineShape'],_0x2455d3['UniverProLicense'],_0x2455d3['UniverCore']));}(this,function(_0x4b0a5c,_0x131b78,_0x3f32bd,_0xc81ef9){const _0x3f6646=_0x2710;Object[_0x3f6646(0x195)](_0x4b0a5c,Symbol[_0x3f6646(0x153)],{'value':_0x3f6646(0x1a5)});let _0x297569=0.0001;function _0x1c0be7(_0x338092){return{'x':_0x338092['x'],'y':_0x338092['y']};}function _0x4994b9(_0x5027da){const _0x36c6eb=_0x3f6646;return{..._0x5027da,'in':_0x5027da['in']?_0x1c0be7(_0x5027da['in']):void 0x0,'out':_0x5027da[_0x36c6eb(0x133)]?_0x1c0be7(_0x5027da[_0x36c6eb(0x133)]):void 0x0};}function _0x120c30(_0x1b2f35){const _0x520a3c=_0x3f6646;return{'kind':'pen','closed':_0x1b2f35[_0x520a3c(0x162)],'anchors':_0x1b2f35[_0x520a3c(0x175)][_0x520a3c(0x1a6)](_0x4994b9)};}function _0xdf29f3(_0x37f794,_0x1d59ba,_0x1778ed){return{'x':_0x37f794['x']+(_0x1d59ba['x']-_0x37f794['x'])*_0x1778ed,'y':_0x37f794['y']+(_0x1d59ba['y']-_0x37f794['y'])*_0x1778ed};}function _0x14f908(_0x27956c,_0x45a315){const _0x55b7fe=_0x3f6646;return Math[_0x55b7fe(0x149)](_0x27956c['x']-_0x45a315['x'],_0x27956c['y']-_0x45a315['y']);}function _0x5993da(_0x481e86){const _0x4c6758=_0x3f6646;let _0xb80e54=Math[_0x4c6758(0x149)](_0x481e86['x'],_0x481e86['y']);return _0xb80e54<_0x297569?{'x':0x1,'y':0x0}:{'x':_0x481e86['x']/_0xb80e54,'y':_0x481e86['y']/_0xb80e54};}function _0x1315c5(_0x5c7018,_0x451c2a,_0x5bfd77=_0x14f908(_0x5c7018,_0x451c2a)){let _0x268af2=_0x5993da({'x':_0x5c7018['x']-_0x451c2a['x'],'y':_0x5c7018['y']-_0x451c2a['y']});return{'x':_0x5c7018['x']+_0x268af2['x']*_0x5bfd77,'y':_0x5c7018['y']+_0x268af2['y']*_0x5bfd77};}function _0x3a4758(_0x88d590,_0x139411){const _0x3c26d4=_0x3f6646;let {anchors:_0x16a0c9}=_0x88d590;return _0x16a0c9['length']<0x2||_0x139411<0x0?null:_0x139411<_0x16a0c9['length']-0x1?{'startIndex':_0x139411,'endIndex':_0x139411+0x1,'start':_0x16a0c9[_0x139411],'end':_0x16a0c9[_0x139411+0x1]}:_0x88d590[_0x3c26d4(0x162)]&&_0x139411===_0x16a0c9[_0x3c26d4(0x16c)]-0x1?{'startIndex':_0x16a0c9[_0x3c26d4(0x16c)]-0x1,'endIndex':0x0,'start':_0x16a0c9[_0x16a0c9[_0x3c26d4(0x16c)]-0x1],'end':_0x16a0c9[0x0]}:null;}function _0x53c423(_0x29a84c,_0xd556dd){const _0x2b8a0c=_0x3f6646;let _0x169675=_0x3a4758(_0x29a84c,_0xd556dd);return _0x169675?[_0x169675[_0x2b8a0c(0x13c)],_0x169675['start'][_0x2b8a0c(0x133)]??_0x169675['start'],_0x169675[_0x2b8a0c(0x152)]['in']??_0x169675[_0x2b8a0c(0x152)],_0x169675[_0x2b8a0c(0x152)]]:null;}function _0x2cc0c8(_0x524b29,_0x3b1add){const _0x4f933e=_0x3f6646;return _0x3b1add===_0x4f933e(0x15e)?_0x524b29:_0x524b29[_0x3b1add]??null;}function _0x26d0a2(_0x509df7,_0x59a43d,_0x14df01){const _0x52af44=_0x3f6646;return _0x14df01===_0x52af44(0x15e)||_0x509df7['closed']?!0x0:_0x14df01==='in'?_0x59a43d>0x0:_0x59a43d<_0x509df7[_0x52af44(0x175)][_0x52af44(0x16c)]-0x1;}function _0x285d94(_0x3f270f,_0x382a75){let [_0xb9e1b7,_0x47cff6,_0x3490d8,_0x5c8417]=_0x3f270f,_0x384e69=_0xdf29f3(_0xb9e1b7,_0x47cff6,_0x382a75),_0x31a07b=_0xdf29f3(_0x47cff6,_0x3490d8,_0x382a75),_0x2cb47e=_0xdf29f3(_0x3490d8,_0x5c8417,_0x382a75);return _0xdf29f3(_0xdf29f3(_0x384e69,_0x31a07b,_0x382a75),_0xdf29f3(_0x31a07b,_0x2cb47e,_0x382a75),_0x382a75);}function _0xfea6d9(_0x473212,_0x2266e7){let [_0x5a9a0e,_0x4fe548,_0x143bc6,_0x5a5990]=_0x473212,_0xe87f41=_0xdf29f3(_0x5a9a0e,_0x4fe548,_0x2266e7),_0x5ef80f=_0xdf29f3(_0x4fe548,_0x143bc6,_0x2266e7),_0x4b808a=_0xdf29f3(_0x143bc6,_0x5a5990,_0x2266e7),_0x2662f9=_0xdf29f3(_0xe87f41,_0x5ef80f,_0x2266e7),_0x31b104=_0xdf29f3(_0x5ef80f,_0x4b808a,_0x2266e7),_0x13b519=_0xdf29f3(_0x2662f9,_0x31b104,_0x2266e7);return{'left':[_0x5a9a0e,_0xe87f41,_0x2662f9,_0x13b519],'right':[_0x13b519,_0x31b104,_0x4b808a,_0x5a5990]};}function _0x569c6b(_0x1019c2,_0x52ee30,_0x51353f){const _0x37a769=_0x3f6646;let _0x15b876=_0x51353f['x']-_0x52ee30['x'],_0x355c3e=_0x51353f['y']-_0x52ee30['y'],_0x3bc75d=_0x15b876*_0x15b876+_0x355c3e*_0x355c3e,_0x18d630=_0x3bc75d<=_0x297569?0x0:Math[_0x37a769(0x178)](0x0,Math[_0x37a769(0x134)](0x1,((_0x1019c2['x']-_0x52ee30['x'])*_0x15b876+(_0x1019c2['y']-_0x52ee30['y'])*_0x355c3e)/_0x3bc75d)),_0x4c5afd={'x':_0x52ee30['x']+_0x15b876*_0x18d630,'y':_0x52ee30['y']+_0x355c3e*_0x18d630};return{'point':_0x4c5afd,'ratio':_0x18d630,'distance':_0x14f908(_0x1019c2,_0x4c5afd)};}function _0x4be094(_0x13fb95,_0x97bcc2,_0x27a674){const _0x41e3fb=_0x3f6646;return _0x569c6b(_0x13fb95,_0x97bcc2,_0x27a674)[_0x41e3fb(0x1a3)]**0x2;}function _0x22af89(_0x5b15b1,_0x458df2){const _0x49e612=_0x3f6646;if(_0x5b15b1[_0x49e612(0x16c)]<=0x2)return _0x5b15b1[_0x49e612(0x1a6)](_0x1c0be7);let _0x23db87=0x0,_0x111772=0x0,_0x474029=_0x5b15b1[0x0],_0x1d3b87=_0x5b15b1[_0x5b15b1['length']-0x1],_0x37c865=_0x458df2*_0x458df2;for(let _0x9c7a9=0x1;_0x9c7a9<_0x5b15b1[_0x49e612(0x16c)]-0x1;_0x9c7a9++){let _0x17c091=_0x4be094(_0x5b15b1[_0x9c7a9],_0x474029,_0x1d3b87);_0x17c091>_0x23db87&&(_0x23db87=_0x17c091,_0x111772=_0x9c7a9);}if(_0x23db87<=_0x37c865)return[_0x1c0be7(_0x474029),_0x1c0be7(_0x1d3b87)];let _0x5695d8=_0x22af89(_0x5b15b1[_0x49e612(0x126)](0x0,_0x111772+0x1),_0x458df2),_0x1e435f=_0x22af89(_0x5b15b1[_0x49e612(0x126)](_0x111772),_0x458df2);return[..._0x5695d8['slice'](0x0,-0x1),..._0x1e435f];}function _0x52f2ae(_0x5ded31,_0x55e653){let _0x927331=_0x5ded31[_0x55e653],_0x3cc30e=_0x5ded31[_0x55e653+0x1],_0x49fa77=_0x5ded31[_0x55e653-0x1]??_0x927331;return{'x':_0x927331['x']+(_0x3cc30e['x']-_0x49fa77['x'])/0x6,'y':_0x927331['y']+(_0x3cc30e['y']-_0x49fa77['y'])/0x6};}function _0x5e6a38(_0x3f614a,_0x420bd6){let _0x40925e=_0x3f614a[_0x420bd6],_0x23ae97=_0x3f614a[_0x420bd6-0x1],_0x463f43=_0x3f614a[_0x420bd6+0x1]??_0x40925e;return{'x':_0x40925e['x']-(_0x463f43['x']-_0x23ae97['x'])/0x6,'y':_0x40925e['y']-(_0x463f43['y']-_0x23ae97['y'])/0x6};}function _0x26028d(_0x3a877b,_0x42697c){const _0x11a179=_0x3f6646;let _0x171084=_0x3a877b[_0x11a179(0x175)][_0x42697c],_0x2d5031=_0x3a877b[_0x11a179(0x175)][_0x42697c-0x1]??(_0x3a877b[_0x11a179(0x162)]?_0x3a877b[_0x11a179(0x175)][_0x3a877b['anchors'][_0x11a179(0x16c)]-0x1]:null),_0x505671=_0x3a877b[_0x11a179(0x175)][_0x42697c+0x1]??(_0x3a877b[_0x11a179(0x162)]?_0x3a877b['anchors'][0x0]:null),_0x3ad3f7=_0x2d5031&&_0x505671?_0x5993da({'x':_0x505671['x']-_0x2d5031['x'],'y':_0x505671['y']-_0x2d5031['y']}):_0x505671?_0x5993da({'x':_0x505671['x']-_0x171084['x'],'y':_0x505671['y']-_0x171084['y']}):_0x2d5031?_0x5993da({'x':_0x171084['x']-_0x2d5031['x'],'y':_0x171084['y']-_0x2d5031['y']}):{'x':0x1,'y':0x0},_0x258b5c=_0x2d5031&&_0x505671?Math[_0x11a179(0x178)](0x32,_0x14f908(_0x2d5031,_0x505671)/0x4):0x32;return{'in':{'x':_0x171084['x']-_0x3ad3f7['x']*_0x258b5c,'y':_0x171084['y']-_0x3ad3f7['y']*_0x258b5c},'out':{'x':_0x171084['x']+_0x3ad3f7['x']*_0x258b5c,'y':_0x171084['y']+_0x3ad3f7['y']*_0x258b5c}};}function _0x7aecda(_0x411c4e,_0x5639b5){const _0x23514f=_0x3f6646;let _0x2a01c9=_0x411c4e[_0x5639b5],_0xf1e7d7=_0x5639b5==='in'?_0x23514f(0x133):'in',_0x7a02d2=_0x411c4e[_0xf1e7d7];_0x2a01c9&&(_0x411c4e[_0x23514f(0x14a)]==='symmetric'?_0x411c4e[_0xf1e7d7]=_0x1315c5(_0x411c4e,_0x2a01c9):_0x411c4e[_0x23514f(0x14a)]===_0x23514f(0x145)&&(_0x411c4e[_0xf1e7d7]=_0x1315c5(_0x411c4e,_0x2a01c9,_0x7a02d2?_0x14f908(_0x411c4e,_0x7a02d2):_0x14f908(_0x411c4e,_0x2a01c9))));}function _0x3d185e(_0x2f9591,_0x13981d){const _0x51b9c7=_0x3f6646;let _0x5ae47d=_0x120c30(_0x2f9591);return!_0x13981d||_0x5ae47d[_0x51b9c7(0x162)]||_0x5ae47d['anchors'][_0x51b9c7(0x16c)]===0x0||_0x5ae47d[_0x51b9c7(0x175)]['push']({'id':'__ink-preview-anchor__','x':_0x13981d['x'],'y':_0x13981d['y'],'pointType':'corner'}),_0x5ae47d;}function _0x195dfc(_0x138426,_0x46b3f9={}){const _0x454ccf=_0x3f6646;let _0x4dbce7=Math['max'](0x0,_0x46b3f9[_0x454ccf(0x1a0)]??Math['max'](0x4,_0x138426[_0x454ccf(0x140)]*0.35)),_0x505c83=_0x46b3f9[_0x454ccf(0x12c)]??(_0x4772f9=>_0x454ccf(0x13e)+_0x4772f9),_0x3b1e45=_0x22af89(_0x138426[_0x454ccf(0x13b)],_0x4dbce7),_0x50968c=_0x3b1e45['map']((_0x490ed4,_0x11ccc3)=>({'id':_0x505c83(_0x11ccc3),'x':_0x490ed4['x'],'y':_0x490ed4['y'],'pointType':'free'}));for(let _0x150e02=0x0;_0x150e02<_0x50968c[_0x454ccf(0x16c)]-0x1;_0x150e02++)_0x50968c[_0x150e02]['out']=_0x52f2ae(_0x3b1e45,_0x150e02),_0x50968c[_0x150e02+0x1]['in']=_0x5e6a38(_0x3b1e45,_0x150e02+0x1);return{'kind':_0x454ccf(0x1a2),'closed':!0x1,'anchors':_0x50968c};}function _0x358924(_0x342dad,_0x572898,_0x58c3e2){const _0xdcc2d4=_0x3f6646;let _0x329be9=null,_0x3725b7=[_0xdcc2d4(0x15e),'in',_0xdcc2d4(0x133)];return _0x342dad[_0xdcc2d4(0x175)]['forEach']((_0x35abca,_0x4c540d)=>{const _0x8f057=_0xdcc2d4;_0x3725b7[_0x8f057(0x14b)](_0x2a22b7=>{const _0x276e71=_0x8f057;if(!_0x26d0a2(_0x342dad,_0x4c540d,_0x2a22b7))return;let _0x8c2f77=_0x2cc0c8(_0x35abca,_0x2a22b7);if(!_0x8c2f77)return;let _0x980f5b=_0x14f908(_0x572898,_0x8c2f77);_0x980f5b>_0x58c3e2||_0x329be9&&_0x980f5b>=_0x329be9[_0x276e71(0x1a3)]||(_0x329be9={'handle':{'kind':_0x2a22b7,'anchorId':_0x35abca['id']},'point':_0x1c0be7(_0x8c2f77),'distance':_0x980f5b});});}),_0x329be9;}function _0x190a81(_0xe453c1,_0x2cc384,_0x293438){const _0x18dc99=_0x3f6646;let _0x73435d=null,_0x269748=_0xe453c1[_0x18dc99(0x162)]?_0xe453c1[_0x18dc99(0x175)][_0x18dc99(0x16c)]:Math[_0x18dc99(0x178)](0x0,_0xe453c1[_0x18dc99(0x175)]['length']-0x1);for(let _0x15fe4e=0x0;_0x15fe4e<_0x269748;_0x15fe4e++){let _0x36c99d=_0x53c423(_0xe453c1,_0x15fe4e);if(!_0x36c99d)continue;let _0x26b465=_0x285d94(_0x36c99d,0x0);for(let _0x5e9e57=0x1;_0x5e9e57<=0x20;_0x5e9e57++){let _0xe414ac=_0x285d94(_0x36c99d,_0x5e9e57/0x20),_0x48a5a7=_0x569c6b(_0x2cc384,_0x26b465,_0xe414ac),_0x15a079=(_0x5e9e57-0x1+_0x48a5a7[_0x18dc99(0x14f)])/0x20;(!_0x73435d||_0x48a5a7[_0x18dc99(0x1a3)]<_0x73435d['distance'])&&(_0x73435d={'segmentIndex':_0x15fe4e,'t':_0x15a079,'point':_0x48a5a7[_0x18dc99(0x19c)],'distance':_0x48a5a7['distance']}),_0x26b465=_0xe414ac;}}return _0x73435d&&_0x73435d[_0x18dc99(0x1a3)]<=_0x293438?_0x73435d:null;}function _0x4ea821(_0x2bd739,_0x10750c,_0x226780){const _0x6eb24f=_0x3f6646;let _0x5176a1=_0x120c30(_0x2bd739),_0x47c003=_0x3a4758(_0x5176a1,_0x10750c[_0x6eb24f(0x15a)]),_0x47e215=_0x53c423(_0x5176a1,_0x10750c[_0x6eb24f(0x15a)]);if(!_0x47c003||!_0x47e215)return _0x5176a1;let _0xa2779d=_0xfea6d9(_0x47e215,Math['max'](0x0,Math['min'](0x1,_0x10750c['t']))),_0x3117f4={'id':_0x226780(),'x':_0xa2779d['left'][0x3]['x'],'y':_0xa2779d[_0x6eb24f(0x17e)][0x3]['y'],'in':_0x1c0be7(_0xa2779d[_0x6eb24f(0x17e)][0x2]),'out':_0x1c0be7(_0xa2779d[_0x6eb24f(0x13a)][0x1]),'pointType':_0x6eb24f(0x184)};return _0x5176a1[_0x6eb24f(0x175)][_0x47c003[_0x6eb24f(0x185)]][_0x6eb24f(0x133)]=_0x1c0be7(_0xa2779d['left'][0x1]),_0x5176a1[_0x6eb24f(0x175)][_0x47c003['endIndex']]['in']=_0x1c0be7(_0xa2779d[_0x6eb24f(0x13a)][0x2]),_0x5176a1[_0x6eb24f(0x175)][_0x6eb24f(0x14c)](_0x47c003[_0x6eb24f(0x185)]+0x1,0x0,_0x3117f4),_0x5176a1;}function _0x5b243d(_0x543070,_0x36c518){const _0x4811c2=_0x3f6646;let _0x12d8cf=_0x120c30(_0x543070);return _0x12d8cf[_0x4811c2(0x175)]=_0x12d8cf['anchors'][_0x4811c2(0x128)](_0x3e9b41=>_0x3e9b41['id']!==_0x36c518),_0x12d8cf[_0x4811c2(0x162)]&&_0x12d8cf[_0x4811c2(0x175)]['length']<0x3&&(_0x12d8cf[_0x4811c2(0x162)]=!0x1),_0x12d8cf;}function _0x3468a2(_0x5eceac,_0x57b7ec,_0x9a1845){const _0x310844=_0x3f6646;let _0x273949=_0x120c30(_0x5eceac),_0x6c293b=_0x273949['anchors'][_0x310844(0x172)](_0x96333=>_0x96333['id']===_0x57b7ec),_0x168913=_0x273949['anchors'][_0x6c293b];if(!_0x168913)return _0x273949;if(_0x168913[_0x310844(0x14a)]=_0x9a1845,_0x9a1845===_0x310844(0x16f))return delete _0x168913['in'],delete _0x168913[_0x310844(0x133)],_0x273949;let _0x46ee0a=_0x26028d(_0x273949,_0x6c293b);if(_0x168913['in']=_0x168913['in']?_0x1c0be7(_0x168913['in']):_0x46ee0a['in'],_0x168913[_0x310844(0x133)]=_0x168913[_0x310844(0x133)]?_0x1c0be7(_0x168913['out']):_0x46ee0a[_0x310844(0x133)],_0x9a1845===_0x310844(0x1a4)){let _0x1fc343=Math[_0x310844(0x178)](_0x14f908(_0x168913,_0x168913['in']),_0x14f908(_0x168913,_0x168913[_0x310844(0x133)]),0x32),_0x32d368=_0x5993da({'x':_0x168913[_0x310844(0x133)]['x']-_0x168913['x'],'y':_0x168913['out']['y']-_0x168913['y']});_0x168913['out']={'x':_0x168913['x']+_0x32d368['x']*_0x1fc343,'y':_0x168913['y']+_0x32d368['y']*_0x1fc343},_0x168913['in']={'x':_0x168913['x']-_0x32d368['x']*_0x1fc343,'y':_0x168913['y']-_0x32d368['y']*_0x1fc343};}else _0x9a1845===_0x310844(0x145)&&_0x7aecda(_0x168913,'out');return _0x273949;}function _0x460ab3(_0x3a34a7,_0x9299bc){const _0x821e87=_0x3f6646;let _0x27d51d=_0x3a34a7[_0x821e87(0x175)][_0x821e87(0x151)](_0x4f5c5b=>_0x4f5c5b['id']===_0x9299bc),_0x6727eb=(_0x27d51d==null?void 0x0:_0x27d51d['pointType'])??'corner';return _0x3468a2(_0x3a34a7,_0x9299bc,_0x6727eb===_0x821e87(0x16f)?'smooth':_0x6727eb===_0x821e87(0x145)?'symmetric':_0x6727eb===_0x821e87(0x1a4)?_0x821e87(0x184):_0x821e87(0x16f));}function _0x170bb0(_0x4b6b30,_0x501a61,_0x5095a8){const _0x572a95=_0x3f6646;let _0x2965c7=_0x120c30(_0x4b6b30),_0x3de846=_0x2965c7[_0x572a95(0x175)][_0x572a95(0x151)](_0x1e0e88=>_0x1e0e88['id']===_0x501a61[_0x572a95(0x12f)]);if(!_0x3de846)return _0x2965c7;if(_0x501a61[_0x572a95(0x173)]===_0x572a95(0x15e)){let _0x21dad5={'x':_0x5095a8['x']-_0x3de846['x'],'y':_0x5095a8['y']-_0x3de846['y']};return _0x3de846['x']=_0x5095a8['x'],_0x3de846['y']=_0x5095a8['y'],_0x3de846['in']&&={'x':_0x3de846['in']['x']+_0x21dad5['x'],'y':_0x3de846['in']['y']+_0x21dad5['y']},_0x3de846['out']&&={'x':_0x3de846['out']['x']+_0x21dad5['x'],'y':_0x3de846['out']['y']+_0x21dad5['y']},_0x2965c7;}return _0x3de846[_0x501a61[_0x572a95(0x173)]]=_0x1c0be7(_0x5095a8),_0x3de846[_0x572a95(0x14a)]===_0x572a95(0x16f)&&(_0x3de846[_0x572a95(0x14a)]=_0x572a95(0x184)),_0x7aecda(_0x3de846,_0x501a61[_0x572a95(0x173)]),_0x2965c7;}let _0xca6f4d=1e-9;function _0x572832(_0x53e82){const _0x394917=_0x3f6646;let _0x37d21a=Math[_0x394917(0x144)](_0x53e82*0x2710)/0x2710;return Object['is'](_0x37d21a,-0x0)?'0':String(_0x37d21a);}function _0x216a06(_0x367f10){return _0x572832(_0x367f10['x'])+'\x20'+_0x572832(_0x367f10['y']);}function _0x2d06a5(_0x52f333,_0x144f8c){return{'x':_0x52f333['x']-_0x144f8c['x'],'y':_0x52f333['y']-_0x144f8c['y']};}function _0x574985(_0x502a22,_0x58a517,_0x6895b2,_0x38e585,_0x14872e){let _0xaf7b29=0x1-_0x14872e;return{'x':_0xaf7b29*_0xaf7b29*_0xaf7b29*_0x502a22['x']+0x3*_0xaf7b29*_0xaf7b29*_0x14872e*_0x58a517['x']+0x3*_0xaf7b29*_0x14872e*_0x14872e*_0x6895b2['x']+_0x14872e*_0x14872e*_0x14872e*_0x38e585['x'],'y':_0xaf7b29*_0xaf7b29*_0xaf7b29*_0x502a22['y']+0x3*_0xaf7b29*_0xaf7b29*_0x14872e*_0x58a517['y']+0x3*_0xaf7b29*_0x14872e*_0x14872e*_0x6895b2['y']+_0x14872e*_0x14872e*_0x14872e*_0x38e585['y']};}function _0x4371ca(_0x233632,_0xd82609,_0x45ab99,_0x29d78b){const _0x2f4eec=_0x3f6646;let _0x489500=-_0x233632+0x3*_0xd82609-0x3*_0x45ab99+_0x29d78b,_0x27e67a=0x3*_0x233632-0x6*_0xd82609+0x3*_0x45ab99,_0x37d9ff=-0x3*_0x233632+0x3*_0xd82609,_0x4aaefb=[];if(Math['abs'](_0x489500)<_0xca6f4d){if(Math[_0x2f4eec(0x15f)](_0x27e67a)<_0xca6f4d)return _0x4aaefb;let _0xe9eb1c=-_0x37d9ff/(0x2*_0x27e67a);return _0xe9eb1c>0x0&&_0xe9eb1c<0x1&&_0x4aaefb[_0x2f4eec(0x14e)](_0xe9eb1c),_0x4aaefb;}let _0x177e76=_0x27e67a*_0x27e67a-0x3*_0x489500*_0x37d9ff;if(_0x177e76<0x0)return _0x4aaefb;let _0x301c10=Math['sqrt'](Math[_0x2f4eec(0x178)](0x0,_0x177e76)),_0x403e34=(-_0x27e67a+_0x301c10)/(0x3*_0x489500),_0x464b1d=(-_0x27e67a-_0x301c10)/(0x3*_0x489500);return _0x403e34>0x0&&_0x403e34<0x1&&_0x4aaefb[_0x2f4eec(0x14e)](_0x403e34),_0x464b1d>0x0&&_0x464b1d<0x1&&Math[_0x2f4eec(0x15f)](_0x464b1d-_0x403e34)>_0xca6f4d&&_0x4aaefb[_0x2f4eec(0x14e)](_0x464b1d),_0x4aaefb;}function _0x3d50b3(_0x50aa9a,_0x238df5,_0x5131af,_0x1cf3f2,_0x33eb4b){_0x50aa9a['push'](_0x238df5,_0x33eb4b),new Set([..._0x4371ca(_0x238df5['x'],_0x5131af['x'],_0x1cf3f2['x'],_0x33eb4b['x']),..._0x4371ca(_0x238df5['y'],_0x5131af['y'],_0x1cf3f2['y'],_0x33eb4b['y'])])['forEach'](_0x2b557e=>{const _0x5e61f7=_0x2710;_0x50aa9a[_0x5e61f7(0x14e)](_0x574985(_0x238df5,_0x5131af,_0x1cf3f2,_0x33eb4b,_0x2b557e));});}function _0x68b172(_0x121b73){const _0x49a029=_0x3f6646;let _0x40d33f=_0x121b73['anchors'];if(_0x40d33f[_0x49a029(0x16c)]<=0x1)return _0x40d33f;let _0x1ca37d=[];for(let _0x1cdd02=0x1;_0x1cdd02<_0x40d33f[_0x49a029(0x16c)];_0x1cdd02++){let _0x27d08c=_0x40d33f[_0x1cdd02-0x1],_0x103d0c=_0x40d33f[_0x1cdd02];_0x3d50b3(_0x1ca37d,_0x27d08c,_0x27d08c[_0x49a029(0x133)]??_0x27d08c,_0x103d0c['in']??_0x103d0c,_0x103d0c);}if(_0x121b73[_0x49a029(0x162)]&&_0x40d33f[_0x49a029(0x16c)]>0x1){let _0x2b8b46=_0x40d33f[_0x40d33f[_0x49a029(0x16c)]-0x1],_0x23b0c6=_0x40d33f[0x0];_0x3d50b3(_0x1ca37d,_0x2b8b46,_0x2b8b46[_0x49a029(0x133)]??_0x2b8b46,_0x23b0c6['in']??_0x23b0c6,_0x23b0c6);}return _0x1ca37d;}function _0x699f5d(_0x2d226d){const _0x185b77=_0x3f6646;let _0x1c9006=_0x2d226d[_0x185b77(0x13b)];if(_0x1c9006[_0x185b77(0x16c)]<=0x1)return _0x1c9006;let _0x5b23b6=[];for(let _0x4ab759=0x0;_0x4ab759<_0x1c9006[_0x185b77(0x16c)]-0x1;_0x4ab759++){let _0x3c3814=_0x1c9006[_0x4ab759],_0x1fa2a8=_0x1c9006[_0x4ab759+0x1],_0x5c7b4b=_0x1c9006[_0x4ab759-0x1]??_0x3c3814,_0x5e5223=_0x1c9006[_0x4ab759+0x2]??_0x1fa2a8;_0x3d50b3(_0x5b23b6,_0x3c3814,{'x':_0x3c3814['x']+(_0x1fa2a8['x']-_0x5c7b4b['x'])/0x6,'y':_0x3c3814['y']+(_0x1fa2a8['y']-_0x5c7b4b['y'])/0x6},{'x':_0x1fa2a8['x']-(_0x5e5223['x']-_0x3c3814['x'])/0x6,'y':_0x1fa2a8['y']-(_0x5e5223['y']-_0x3c3814['y'])/0x6},_0x1fa2a8);}return _0x5b23b6;}function _0x58097a(_0x4a3747){const _0x493a26=_0x3f6646;return _0x4a3747[_0x493a26(0x173)]===_0x493a26(0x1a2)?_0x68b172(_0x4a3747):_0x699f5d(_0x4a3747);}function _0x350dce(_0x3e3489){const _0x91a77b=_0x3f6646;let _0x55ac3c=Math[_0x91a77b(0x144)](_0x3e3489*0x2710)/0x2710;return Object['is'](_0x55ac3c,-0x0)?0x0:_0x55ac3c;}function _0x4f0b5c(_0x5dcfc3){const _0x216771=_0x3f6646;let _0x4545c0=_0x58097a(_0x5dcfc3);if(_0x4545c0[_0x216771(0x16c)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x25f40a=Math[_0x216771(0x134)](..._0x4545c0[_0x216771(0x1a6)](_0x267973=>_0x267973['x'])),_0x388b65=Math[_0x216771(0x134)](..._0x4545c0[_0x216771(0x1a6)](_0x22a148=>_0x22a148['y'])),_0x45f2c3=Math[_0x216771(0x178)](..._0x4545c0[_0x216771(0x1a6)](_0x86e770=>_0x86e770['x'])),_0x3663e9=Math[_0x216771(0x178)](..._0x4545c0['map'](_0x375bdb=>_0x375bdb['y']));return{'left':_0x350dce(_0x25f40a),'top':_0x350dce(_0x388b65),'width':_0x350dce(Math['max'](0x1,_0x45f2c3-_0x25f40a)),'height':_0x350dce(Math[_0x216771(0x178)](0x1,_0x3663e9-_0x388b65))};}function _0x597869(_0xf9c563,_0x1f63a0){const _0x510d3e=_0x3f6646;let _0x3fa3aa=_0xf9c563[_0x510d3e(0x175)];if(_0x3fa3aa['length']===0x0)return'';let _0x8c5734=['M\x20'+_0x216a06(_0x2d06a5(_0x3fa3aa[0x0],_0x1f63a0))];for(let _0x48ae04=0x1;_0x48ae04<_0x3fa3aa[_0x510d3e(0x16c)];_0x48ae04++){let _0x265a37=_0x3fa3aa[_0x48ae04-0x1],_0x212ccd=_0x3fa3aa[_0x48ae04],_0x4e3c7d=_0x265a37[_0x510d3e(0x133)]??_0x265a37,_0x26c5d8=_0x212ccd['in']??_0x212ccd;_0x8c5734[_0x510d3e(0x14e)]('C\x20'+_0x216a06(_0x2d06a5(_0x4e3c7d,_0x1f63a0))+'\x20'+_0x216a06(_0x2d06a5(_0x26c5d8,_0x1f63a0))+'\x20'+_0x216a06(_0x2d06a5(_0x212ccd,_0x1f63a0)));}if(_0xf9c563[_0x510d3e(0x162)]&&_0x3fa3aa[_0x510d3e(0x16c)]>0x1){let _0x458831=_0x3fa3aa[_0x3fa3aa[_0x510d3e(0x16c)]-0x1],_0x501523=_0x3fa3aa[0x0],_0x4c8944=_0x458831[_0x510d3e(0x133)]??_0x458831,_0x27ce34=_0x501523['in']??_0x501523;_0x8c5734[_0x510d3e(0x14e)]('C\x20'+_0x216a06(_0x2d06a5(_0x4c8944,_0x1f63a0))+'\x20'+_0x216a06(_0x2d06a5(_0x27ce34,_0x1f63a0))+'\x20'+_0x216a06(_0x2d06a5(_0x501523,_0x1f63a0))),_0x8c5734[_0x510d3e(0x14e)]('Z');}return _0x8c5734[_0x510d3e(0x147)]('\x20');}function _0x7e8dc4(_0x1898f8,_0x1e9d38){const _0x1f083c=_0x3f6646;let _0x4fd87a=_0x1898f8[_0x1f083c(0x13b)][_0x1f083c(0x1a6)](_0x53799c=>_0x2d06a5(_0x53799c,_0x1e9d38));if(_0x4fd87a[_0x1f083c(0x16c)]===0x0)return'';if(_0x4fd87a[_0x1f083c(0x16c)]===0x1)return'M\x20'+_0x216a06(_0x4fd87a[0x0]);let _0x2e8ff2=['M\x20'+_0x216a06(_0x4fd87a[0x0])];for(let _0x16af56=0x0;_0x16af56<_0x4fd87a[_0x1f083c(0x16c)]-0x1;_0x16af56++){let _0xaaccb5=_0x4fd87a[_0x16af56],_0x2dc47a=_0x4fd87a[_0x16af56+0x1],_0x1cc506=_0x4fd87a[_0x16af56-0x1]??_0xaaccb5,_0x3a2f8b=_0x4fd87a[_0x16af56+0x2]??_0x2dc47a,_0xb13968={'x':_0xaaccb5['x']+(_0x2dc47a['x']-_0x1cc506['x'])/0x6,'y':_0xaaccb5['y']+(_0x2dc47a['y']-_0x1cc506['y'])/0x6},_0x5f19be={'x':_0x2dc47a['x']-(_0x3a2f8b['x']-_0xaaccb5['x'])/0x6,'y':_0x2dc47a['y']-(_0x3a2f8b['y']-_0xaaccb5['y'])/0x6};_0x2e8ff2[_0x1f083c(0x14e)]('C\x20'+_0x216a06(_0xb13968)+'\x20'+_0x216a06(_0x5f19be)+'\x20'+_0x216a06(_0x2dc47a));}return _0x2e8ff2['join']('\x20');}function _0x54ad0c(_0x1d4a0d,_0x36f10c){const _0x58f717=_0x3f6646;return _0x1d4a0d['kind']===_0x58f717(0x1a2)?_0x597869(_0x1d4a0d,_0x36f10c):_0x7e8dc4(_0x1d4a0d,_0x36f10c);}function _0x3ec460(_0x92b5d2,_0x19b293){const _0x47343a=_0x3f6646;return _0x19b293!=null&&_0x19b293[_0x47343a(0x196)]?_0x19b293['color']:_0x92b5d2[_0x47343a(0x173)]===_0x47343a(0x1a2)?_0x47343a(0x187):_0x92b5d2[_0x47343a(0x196)];}function _0x54c328(_0x513cd3,_0x62b677){const _0x43506d=_0x3f6646;return(_0x62b677==null?void 0x0:_0x62b677[_0x43506d(0x140)])===void 0x0?_0x513cd3[_0x43506d(0x173)]==='pen'?0x2:_0x513cd3[_0x43506d(0x140)]:_0x62b677[_0x43506d(0x140)];}function _0x134a76(_0x52970d,_0x2b3e15){const _0xac7b77=_0x3f6646;return(_0x2b3e15==null?void 0x0:_0x2b3e15[_0xac7b77(0x199)])===void 0x0?_0x52970d[_0xac7b77(0x173)]===_0xac7b77(0x1a2)?void 0x0:_0x52970d[_0xac7b77(0x199)]:_0x2b3e15[_0xac7b77(0x199)];}function _0x18d5c3(_0x96d429,_0x3d9c42){const _0x50fb58=_0x3f6646;let _0x1538cd=_0x4f0b5c(_0x96d429),_0x44c85d=_0x54ad0c(_0x96d429,{'x':_0x1538cd[_0x50fb58(0x17e)],'y':_0x1538cd['top']}),_0x5dd3e6=_0x96d429[_0x50fb58(0x173)]===_0x50fb58(0x1a2)&&_0x96d429[_0x50fb58(0x162)],_0x10da19=_0x3d9c42==null?void 0x0:_0x3d9c42[_0x50fb58(0x16d)];return{'shapeType':_0x131b78[_0x50fb58(0x154)]['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1538cd[_0x50fb58(0x140)],'h':_0x1538cd[_0x50fb58(0x130)],'fill':_0x5dd3e6?_0x50fb58(0x15c):'none','stroke':!0x0,'data':_0x44c85d,'dataArray':_0x3c7103(_0x96d429,{'x':_0x1538cd[_0x50fb58(0x17e)],'y':_0x1538cd[_0x50fb58(0x142)]})}]},'fill':_0x5dd3e6&&_0x10da19?{'color':_0x10da19,'fillType':_0x131b78[_0x50fb58(0x167)][_0x50fb58(0x132)]}:{'fillType':_0x131b78[_0x50fb58(0x167)][_0x50fb58(0x170)]},'stroke':{'color':_0x3ec460(_0x96d429,_0x3d9c42),'width':_0x54c328(_0x96d429,_0x3d9c42),'opacity':_0x134a76(_0x96d429,_0x3d9c42),'lineStrokeType':_0x131b78[_0x50fb58(0x191)][_0x50fb58(0x1a1)],'capType':_0x131b78['ShapeLineCapEnum'][_0x50fb58(0x13f)],'lineJoinType':_0x131b78[_0x50fb58(0x197)][_0x50fb58(0x13f)]}};}function _0x22c54e(_0x24c6f3,_0x63f119){return{'x':_0x24c6f3['x']-_0x63f119['x'],'y':_0x24c6f3['y']-_0x63f119['y']};}function _0x3c7103(_0x3d8f3a,_0x5ea16c){const _0x3ef408=_0x3f6646;if(_0x3d8f3a['kind']===_0x3ef408(0x1a2)){let _0xaec8e5=_0x3d8f3a[_0x3ef408(0x175)];if(_0xaec8e5['length']===0x0)return[];let _0x5892ad=_0x22c54e(_0xaec8e5[0x0],_0x5ea16c),_0x1597d3=[{'command':'M','points':[_0x5892ad['x'],_0x5892ad['y']]}];for(let _0x45f907=0x1;_0x45f907<_0xaec8e5[_0x3ef408(0x16c)];_0x45f907++){let _0xcf5c59=_0xaec8e5[_0x45f907-0x1],_0x1b67d1=_0xaec8e5[_0x45f907],_0x5bab76=_0x22c54e(_0xcf5c59[_0x3ef408(0x133)]??_0xcf5c59,_0x5ea16c),_0x3c97f9=_0x22c54e(_0x1b67d1['in']??_0x1b67d1,_0x5ea16c),_0x206d04=_0x22c54e(_0x1b67d1,_0x5ea16c);_0x1597d3['push']({'command':'C','points':[_0x5bab76['x'],_0x5bab76['y'],_0x3c97f9['x'],_0x3c97f9['y'],_0x206d04['x'],_0x206d04['y']]});}if(_0x3d8f3a['closed']&&_0xaec8e5[_0x3ef408(0x16c)]>0x1){let _0x254ca1=_0xaec8e5[_0xaec8e5[_0x3ef408(0x16c)]-0x1],_0x494ab1=_0xaec8e5[0x0],_0x4a4c61=_0x22c54e(_0x254ca1[_0x3ef408(0x133)]??_0x254ca1,_0x5ea16c),_0x44754b=_0x22c54e(_0x494ab1['in']??_0x494ab1,_0x5ea16c),_0x54290b=_0x22c54e(_0x494ab1,_0x5ea16c);_0x1597d3['push']({'command':'C','points':[_0x4a4c61['x'],_0x4a4c61['y'],_0x44754b['x'],_0x44754b['y'],_0x54290b['x'],_0x54290b['y']]}),_0x1597d3[_0x3ef408(0x14e)]({'command':'z','points':[]});}return _0x1597d3;}let _0x3c9f7f=_0x3d8f3a[_0x3ef408(0x13b)][_0x3ef408(0x1a6)](_0x2b2e1c=>_0x22c54e(_0x2b2e1c,_0x5ea16c));if(_0x3c9f7f[_0x3ef408(0x16c)]===0x0)return[];let _0x28c59f=[{'command':'M','points':[_0x3c9f7f[0x0]['x'],_0x3c9f7f[0x0]['y']]}];for(let _0x145282=0x0;_0x145282<_0x3c9f7f[_0x3ef408(0x16c)]-0x1;_0x145282++){let _0x1f8e6e=_0x3c9f7f[_0x145282],_0x23bc94=_0x3c9f7f[_0x145282+0x1],_0x25740b=_0x3c9f7f[_0x145282-0x1]??_0x1f8e6e,_0x44f7d7=_0x3c9f7f[_0x145282+0x2]??_0x23bc94,_0x5b29c3={'x':_0x1f8e6e['x']+(_0x23bc94['x']-_0x25740b['x'])/0x6,'y':_0x1f8e6e['y']+(_0x23bc94['y']-_0x25740b['y'])/0x6},_0x447d93={'x':_0x23bc94['x']-(_0x44f7d7['x']-_0x1f8e6e['x'])/0x6,'y':_0x23bc94['y']-(_0x44f7d7['y']-_0x1f8e6e['y'])/0x6};_0x28c59f[_0x3ef408(0x14e)]({'command':'C','points':[_0x5b29c3['x'],_0x5b29c3['y'],_0x447d93['x'],_0x447d93['y'],_0x23bc94['x'],_0x23bc94['y']]});}return _0x28c59f;}function _0x2b4c8b(_0xa53122){const _0x56a8e2=_0x3f6646;let {model:_0x2af798,sourceModel:_0x5928e3=_0x2af798,style:_0x5f51fa}=_0xa53122,_0x24c03f=_0xa53122[_0x56a8e2(0x177)]??_0x2af798[_0x56a8e2(0x173)],_0xe45a94=_0x4f0b5c(_0x2af798),_0x5ae38f=_0x2af798['kind']===_0x56a8e2(0x1a2)&&_0x24c03f!==_0x56a8e2(0x1a2)?_0x2af798:void 0x0;return{'transform':{..._0xe45a94,'rotation':0x0},'shapeData':_0x18d5c3(_0x2af798,_0x5f51fa),'ink':{'version':0x1,'tool':_0x24c03f,'sourceModel':_0x5928e3,..._0x5ae38f?{'editModel':_0x5ae38f}:{},'normalizedBounds':_0xe45a94}};}var _0x39f565=_0x3f6646(0x198),_0x46fc71=_0x3f6646(0x19a);function _0xeb65c5(_0x522726){'@babel/helpers - typeof';const _0xf78b59=_0x3f6646;return _0xeb65c5=typeof Symbol==_0xf78b59(0x135)&&typeof Symbol[_0xf78b59(0x19b)]==_0xf78b59(0x18f)?function(_0x29d58c){return typeof _0x29d58c;}:function(_0x4ba4f6){const _0x492c47=_0xf78b59;return _0x4ba4f6&&typeof Symbol==_0x492c47(0x135)&&_0x4ba4f6[_0x492c47(0x143)]===Symbol&&_0x4ba4f6!==Symbol[_0x492c47(0x160)]?_0x492c47(0x18f):typeof _0x4ba4f6;},_0xeb65c5(_0x522726);}function _0x27db08(_0x51ad54,_0x543de6){const _0x226ea8=_0x3f6646;if(_0xeb65c5(_0x51ad54)!=_0x226ea8(0x12e)||!_0x51ad54)return _0x51ad54;var _0x57917f;if(typeof Symbol<'u'&&(_0x57917f=_0x51ad54[Symbol[_0x226ea8(0x18d)]])!==void 0x0){var _0x3db7e2=_0x57917f[_0x226ea8(0x156)](_0x51ad54,_0x543de6||_0x226ea8(0x131));if(_0xeb65c5(_0x3db7e2)!='object')return _0x3db7e2;throw TypeError(_0x226ea8(0x13d));}return(_0x543de6==='string'?String:Number)(_0x51ad54);}function _0x4c4904(_0x1fa402){const _0x3dac69=_0x3f6646;var _0x3b94ed=_0x27db08(_0x1fa402,_0x3dac69(0x15d));return _0xeb65c5(_0x3b94ed)==_0x3dac69(0x18f)?_0x3b94ed:_0x3b94ed+'';}function _0x3d2a20(_0x191e16,_0x42818e,_0x4d7250){const _0x88565e=_0x3f6646;return(_0x42818e=_0x4c4904(_0x42818e))in _0x191e16?Object[_0x88565e(0x195)](_0x191e16,_0x42818e,{'value':_0x4d7250,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x191e16[_0x42818e]=_0x4d7250,_0x191e16;}let _0x41ed8f=(0x0,_0xc81ef9['createIdentifier'])(_0x3f6646(0x18e));var _0x391c4f=class{constructor(){const _0xe2f868=_0x3f6646;_0x3d2a20(this,_0xe2f868(0x12b),[]);}['registerAdapter'](_0x3e9822){const _0x17341a=_0x3f6646;return this[_0x17341a(0x12b)][_0x17341a(0x14e)](_0x3e9822),(0x0,_0xc81ef9[_0x17341a(0x150)])(()=>{const _0x3f8b13=_0x17341a;let _0x46b95d=this[_0x3f8b13(0x12b)][_0x3f8b13(0x17d)](_0x3e9822);_0x46b95d>=0x0&&this[_0x3f8b13(0x12b)]['splice'](_0x46b95d,0x1);});}[_0x3f6646(0x169)](_0xdbb589){const _0x438492=_0x3f6646;for(let _0x3c099c of this[_0x438492(0x12b)])if(_0x3c099c['beginInkMode'](_0xdbb589))return!0x0;return!0x1;}async[_0x3f6646(0x12d)](_0x44ce46){const _0xc9ec2d=_0x3f6646;for(let _0x37c9ae of this[_0xc9ec2d(0x12b)])if(_0x37c9ae[_0xc9ec2d(0x12d)]&&await _0x37c9ae['createCustomShape'](_0x44ce46))return!0x0;return!0x1;}};let _0x5e6e56={'id':'ink.operation.start','type':_0xc81ef9[_0x3f6646(0x188)][_0x3f6646(0x157)],'handler':(_0x281181,_0x56a8c5)=>_0x56a8c5?_0x281181[_0x3f6646(0x158)](_0x41ed8f)[_0x3f6646(0x169)](_0x56a8c5):!0x1},_0x383fb6={};function _0x139b7b(_0x447709,_0x2409e7){return function(_0x39157d,_0x5a7ef0){_0x2409e7(_0x39157d,_0x5a7ef0,_0x447709);};}function _0x1915c6(_0xacd43a,_0x2dab9b,_0x3c8148,_0x531845){const _0x4b977b=_0x3f6646;var _0x37c0ff=arguments[_0x4b977b(0x16c)],_0x2dcdb1=_0x37c0ff<0x3?_0x2dab9b:_0x531845===null?_0x531845=Object[_0x4b977b(0x17b)](_0x2dab9b,_0x3c8148):_0x531845,_0x170409;if(typeof Reflect==_0x4b977b(0x12e)&&typeof Reflect[_0x4b977b(0x148)]==_0x4b977b(0x135))_0x2dcdb1=Reflect[_0x4b977b(0x148)](_0xacd43a,_0x2dab9b,_0x3c8148,_0x531845);else{for(var _0x51fd0b=_0xacd43a[_0x4b977b(0x16c)]-0x1;_0x51fd0b>=0x0;_0x51fd0b--)(_0x170409=_0xacd43a[_0x51fd0b])&&(_0x2dcdb1=(_0x37c0ff<0x3?_0x170409(_0x2dcdb1):_0x37c0ff>0x3?_0x170409(_0x2dab9b,_0x3c8148,_0x2dcdb1):_0x170409(_0x2dab9b,_0x3c8148))||_0x2dcdb1);}return _0x37c0ff>0x3&&_0x2dcdb1&&Object[_0x4b977b(0x195)](_0x2dab9b,_0x3c8148,_0x2dcdb1),_0x2dcdb1;}let _0x445e1d=class extends _0xc81ef9[_0x3f6646(0x190)]{constructor(_0x4e9b25=_0x383fb6,_0x3fac39,_0x47c8f0,_0x13d6e4){const _0x528531=_0x3f6646;super(),this[_0x528531(0x18c)]=_0x4e9b25,this['_injector']=_0x3fac39,this[_0x528531(0x183)]=_0x47c8f0,this[_0x528531(0x155)]=_0x13d6e4;let {..._0x3b6686}=(0x0,_0xc81ef9[_0x528531(0x194)])({},_0x383fb6,this['_config']);this[_0x528531(0x155)][_0x528531(0x193)](_0x528531(0x136),_0x3b6686);}[_0x3f6646(0x163)](){const _0x4cd76b=_0x3f6646;[[_0x41ed8f,{'useClass':_0x391c4f}]]['forEach'](_0x23ca6f=>this[_0x4cd76b(0x127)][_0x4cd76b(0x166)](_0x23ca6f)),this['disposeWithMe'](this[_0x4cd76b(0x183)][_0x4cd76b(0x164)](_0x5e6e56));}};_0x3d2a20(_0x445e1d,_0x3f6646(0x141),'UNIVER_INK_PLUGIN'),_0x3d2a20(_0x445e1d,_0x3f6646(0x174),_0x39f565),_0x3d2a20(_0x445e1d,_0x3f6646(0x182),_0x46fc71),_0x3d2a20(_0x445e1d,_0x3f6646(0x186),_0xc81ef9['UniverInstanceType'][_0x3f6646(0x176)]),_0x445e1d=_0x1915c6([(0x0,_0xc81ef9[_0x3f6646(0x18b)])(_0x3f32bd['UniverLicensePlugin']),_0x139b7b(0x1,(0x0,_0xc81ef9[_0x3f6646(0x159)])(_0xc81ef9[_0x3f6646(0x18a)])),_0x139b7b(0x2,_0xc81ef9['ICommandService']),_0x139b7b(0x3,_0xc81ef9['IConfigService'])],_0x445e1d),_0x4b0a5c['IInkHostAdapterService']=_0x41ed8f,Object['defineProperty'](_0x4b0a5c,_0x3f6646(0x17c),{'enumerable':!0x0,'get':function(){return _0x445e1d;}}),_0x4b0a5c['buildInkCustomShapePayload']=_0x2b4c8b,_0x4b0a5c['convertBrushModelToPenModel']=_0x195dfc,_0x4b0a5c[_0x3f6646(0x189)]=_0x460ab3,_0x4b0a5c[_0x3f6646(0x17f)]=_0x5b243d,_0x4b0a5c['findClosestInkPenHandle']=_0x358924,_0x4b0a5c['findClosestInkPenSegment']=_0x190a81,_0x4b0a5c[_0x3f6646(0x146)]=_0x4f0b5c,_0x4b0a5c[_0x3f6646(0x1a7)]=_0x3d185e,_0x4b0a5c[_0x3f6646(0x19f)]=_0x4ea821,_0x4b0a5c[_0x3f6646(0x180)]=_0x26d0a2,_0x4b0a5c[_0x3f6646(0x138)]=_0x170bb0,_0x4b0a5c[_0x3f6646(0x12a)]=_0x3468a2;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/ink",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "private": false,
5
5
  "description": "Reusable ink model and geometry integration for Univer.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -48,14 +48,14 @@
48
48
  "lib"
49
49
  ],
50
50
  "dependencies": {
51
- "@univerjs-pro/engine-shape": "1.4.0",
52
- "@univerjs-pro/license": "1.4.0",
53
- "@univerjs/core": "1.4.0"
51
+ "@univerjs-pro/engine-shape": "1.5.1",
52
+ "@univerjs-pro/license": "1.5.1",
53
+ "@univerjs/core": "1.5.1"
54
54
  },
55
55
  "devDependencies": {
56
- "@univerjs-infra/shared": "1.4.0",
57
- "tsrs": "0.20.1-ts7.1.0-beta",
58
- "vitest": "^5.0.5"
56
+ "@univerjs-infra/shared": "1.5.1",
57
+ "tsrs": "0.23.0-ts7.1.0-beta",
58
+ "vitest": "^5.1.0"
59
59
  },
60
60
  "scripts": {
61
61
  "test": "vitest run",