@univerjs-pro/ink 1.0.0-alpha.7 → 1.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x5a63(){const _0x103641=['BoardInkHandleKind','sourceModel','225lzKTiM','tool','laneId','BoardElementType','highlighter','kind','FBoard','buildInkCustomShapePayload','15rGZxbC','custom','11FAiAim','Module','107304gkmdWi','182qeuDKx','type','trim','width','defineProperty','getInks','667701xCqROL','smooth','brush','isArray','shapeData','BoardInkPointType','opacity','model','transform','357fRCspP','BoardInkTool','add','43819jMCXbS','808704ZRItIJ','FEnum','anchors','14iwvhfd','has','length','insertInk','object','335532GnnHBx','every','2793070mUNlgJ','generateRandomId','pressure','pen','version','filter','free','points','Tools','out','isFinite','47298edhEOY','deepClone','Shape','extend','findElements','symmetric','_addElement'];_0x5a63=function(){return _0x103641;};return _0x5a63();}const _0x26ddc2=_0x1372;(function(_0x35b2cd,_0x211889){const _0x2883d5=_0x1372,_0x54dbc5=_0x35b2cd();while(!![]){try{const _0x425f67=parseInt(_0x2883d5(0x18d))/0x1*(-parseInt(_0x2883d5(0x191))/0x2)+parseInt(_0x2883d5(0x181))/0x3+parseInt(_0x2883d5(0x196))/0x4*(parseInt(_0x2883d5(0x1b4))/0x5)+-parseInt(_0x2883d5(0x1a3))/0x6*(-parseInt(_0x2883d5(0x18a))/0x7)+parseInt(_0x2883d5(0x17a))/0x8*(parseInt(_0x2883d5(0x1ac))/0x9)+parseInt(_0x2883d5(0x198))/0xa*(parseInt(_0x2883d5(0x1b6))/0xb)+-parseInt(_0x2883d5(0x18e))/0xc*(parseInt(_0x2883d5(0x17b))/0xd);if(_0x425f67===_0x211889)break;else _0x54dbc5['push'](_0x54dbc5['shift']());}catch(_0x116826){_0x54dbc5['push'](_0x54dbc5['shift']());}}}(_0x5a63,0x3ac14),Object[_0x26ddc2(0x17f)](exports,Symbol['toStringTag'],{'value':_0x26ddc2(0x1b7)}));let e=require('@univerjs-pro/boards'),t=require('@univerjs-pro/boards/facade'),n=require('@univerjs-pro/ink'),r=require('@univerjs/core'),i=require('@univerjs/core/facade');var a=class extends t[_0x26ddc2(0x1b2)]{[_0x26ddc2(0x194)](_0x334fcb){const _0x4a41e7=_0x26ddc2;let _0x326534=o(_0x334fcb);return _0x326534&&this[_0x4a41e7(0x1a9)](_0x326534,{'insertIndex':_0x334fcb['insertIndex']})?_0x326534:null;}[_0x26ddc2(0x180)](){const _0x430647=_0x26ddc2;return this[_0x430647(0x1a7)]({'elementType':e['BoardElementType'][_0x430647(0x1a5)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x430647(0x19d)](f);}};function _0x1372(_0x4e10ee,_0xb00257){_0x4e10ee=_0x4e10ee-0x17a;const _0x5a637c=_0x5a63();let _0x1372c7=_0x5a637c[_0x4e10ee];return _0x1372c7;}function o(_0x119438,_0x22a030){const _0x326280=_0x26ddc2;var _0x26178a,_0x5e8e8a,_0x13b9e1;if(!c(_0x119438['model'])||_0x119438[_0x326280(0x1ab)]!==void 0x0&&!c(_0x119438[_0x326280(0x1ab)])||!l(_0x119438['style']))return null;let _0x119831=(_0x26178a=_0x119438['parentId'])==null?_0x22a030==null?void 0x0:_0x22a030['parentId']:_0x26178a,_0x5095ac=r[_0x326280(0x1a0)][_0x326280(0x1a4)](_0x119438[_0x326280(0x188)]),_0x227d5e=(0x0,n[_0x326280(0x1b3)])({'model':_0x5095ac,'style':_0x119438['style'],'tool':_0x119438[_0x326280(0x1ad)],'sourceModel':_0x119438[_0x326280(0x1ab)]?r[_0x326280(0x1a0)]['deepClone'](_0x119438[_0x326280(0x1ab)]):_0x5095ac}),_0x4a7e1a=u(_0x22a030==null?void 0x0:_0x22a030[_0x326280(0x1b5)]);return{'id':(_0x5e8e8a=(_0x13b9e1=_0x22a030==null?void 0x0:_0x22a030['id'])==null?_0x119438['id']:_0x13b9e1)==null?(0x0,r[_0x326280(0x199)])(0x6):_0x5e8e8a,'type':e[_0x326280(0x1af)][_0x326280(0x1a5)],'transform':_0x227d5e[_0x326280(0x189)],'shapeData':_0x227d5e[_0x326280(0x185)],'parentId':_0x119831==null?void 0x0:_0x119831,'laneId':_0x119438['laneId']===void 0x0?_0x22a030==null?void 0x0:_0x22a030[_0x326280(0x1ae)]:_0x119438[_0x326280(0x1ae)],'custom':{..._0x4a7e1a,'ink':_0x227d5e['ink']}};}function s(_0x1a72e5){return Number['isFinite'](_0x1a72e5['x'])&&Number['isFinite'](_0x1a72e5['y']);}function c(_0x3f4ea8){const _0x32d470=_0x26ddc2;if(_0x3f4ea8[_0x32d470(0x1b1)]===_0x32d470(0x19b)){let _0x334bd9=new Set();return _0x3f4ea8[_0x32d470(0x190)][_0x32d470(0x193)]>=(_0x3f4ea8['closed']?0x3:0x2)&&_0x3f4ea8[_0x32d470(0x190)][_0x32d470(0x197)](_0xf026f1=>{const _0x369371=_0x32d470;let _0xa1f8ad=_0xf026f1['id'][_0x369371(0x17d)]()['length']>0x0&&!_0x334bd9[_0x369371(0x192)](_0xf026f1['id'])&&s(_0xf026f1)&&(!_0xf026f1['in']||s(_0xf026f1['in']))&&(!_0xf026f1[_0x369371(0x1a1)]||s(_0xf026f1[_0x369371(0x1a1)]));return _0x334bd9[_0x369371(0x18c)](_0xf026f1['id']),_0xa1f8ad;});}return _0x3f4ea8[_0x32d470(0x19f)][_0x32d470(0x193)]>=0x2&&_0x3f4ea8['points']['every'](_0x53886b=>s(_0x53886b)&&Number[_0x32d470(0x1a2)](_0x53886b['t'])&&(_0x53886b['pressure']===void 0x0||Number['isFinite'](_0x53886b[_0x32d470(0x19a)])))&&Number[_0x32d470(0x1a2)](_0x3f4ea8[_0x32d470(0x17e)])&&_0x3f4ea8['width']>0x0&&Number['isFinite'](_0x3f4ea8['opacity'])&&_0x3f4ea8[_0x32d470(0x187)]>=0x0&&_0x3f4ea8[_0x32d470(0x187)]<=0x1;}function l(_0x2ff941){const _0x3e3779=_0x26ddc2;return _0x2ff941===void 0x0||(_0x2ff941[_0x3e3779(0x17e)]===void 0x0||Number[_0x3e3779(0x1a2)](_0x2ff941['width'])&&_0x2ff941[_0x3e3779(0x17e)]>0x0)&&(_0x2ff941[_0x3e3779(0x187)]===void 0x0||Number[_0x3e3779(0x1a2)](_0x2ff941[_0x3e3779(0x187)])&&_0x2ff941['opacity']>=0x0&&_0x2ff941[_0x3e3779(0x187)]<=0x1);}function u(_0x1fed8e){const _0x5f6c=_0x26ddc2;return _0x1fed8e&&typeof _0x1fed8e==_0x5f6c(0x195)&&!Array[_0x5f6c(0x184)](_0x1fed8e)?_0x1fed8e:{};}function d(_0x56570b){const _0x284820=_0x26ddc2;let _0x5934eb=u(_0x56570b[_0x284820(0x1b5)])['ink'];if(!_0x5934eb||typeof _0x5934eb!='object'||Array[_0x284820(0x184)](_0x5934eb))return null;let _0x9bff69=_0x5934eb;return _0x9bff69[_0x284820(0x19c)]===0x1&&_0x9bff69[_0x284820(0x1ab)]&&typeof _0x9bff69[_0x284820(0x1ab)]==_0x284820(0x195)?_0x9bff69:null;}function f(_0x197d20){const _0x5577a7=_0x26ddc2;return _0x197d20[_0x5577a7(0x17c)]===e['BoardElementType'][_0x5577a7(0x1a5)]&&!!d(_0x197d20);}t['FBoard'][_0x26ddc2(0x1a6)](a);const p={'Pen':_0x26ddc2(0x19b),'Brush':_0x26ddc2(0x183),'Highlighter':_0x26ddc2(0x1b0)},m={'Corner':'corner','Smooth':_0x26ddc2(0x182),'Symmetric':_0x26ddc2(0x1a8),'Free':_0x26ddc2(0x19e)},h={'Anchor':'anchor','In':'in','Out':_0x26ddc2(0x1a1)};var g=class extends i[_0x26ddc2(0x18f)]{get['BoardInkTool'](){return p;}get[_0x26ddc2(0x186)](){return m;}get[_0x26ddc2(0x1aa)](){return h;}};i['FEnum']['extend'](g),exports[_0x26ddc2(0x1aa)]=h,exports[_0x26ddc2(0x186)]=m,exports[_0x26ddc2(0x18b)]=p;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x59a874=_0x193f;(function(_0x4f5db1,_0xe390d2){const _0x1b0e9f=_0x193f,_0x26299b=_0x4f5db1();while(!![]){try{const _0x47024a=parseInt(_0x1b0e9f(0x1b3))/0x1+-parseInt(_0x1b0e9f(0x183))/0x2+parseInt(_0x1b0e9f(0x172))/0x3*(-parseInt(_0x1b0e9f(0x180))/0x4)+-parseInt(_0x1b0e9f(0x1a4))/0x5+-parseInt(_0x1b0e9f(0x187))/0x6+-parseInt(_0x1b0e9f(0x1b0))/0x7*(-parseInt(_0x1b0e9f(0x1c1))/0x8)+-parseInt(_0x1b0e9f(0x1ca))/0x9*(-parseInt(_0x1b0e9f(0x1d2))/0xa);if(_0x47024a===_0xe390d2)break;else _0x26299b['push'](_0x26299b['shift']());}catch(_0x22d8eb){_0x26299b['push'](_0x26299b['shift']());}}}(_0x46e4,0x93b6b),Object[_0x59a874(0x164)](exports,Symbol['toStringTag'],{'value':_0x59a874(0x175)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x889d19){return{'x':_0x889d19['x'],'y':_0x889d19['y']};}function a(_0x341a6b){const _0x178b85=_0x59a874;return{..._0x341a6b,'in':_0x341a6b['in']?i(_0x341a6b['in']):void 0x0,'out':_0x341a6b['out']?i(_0x341a6b[_0x178b85(0x1b6)]):void 0x0};}function o(_0x5000c0){const _0x3d6090=_0x59a874;return{'kind':_0x3d6090(0x174),'closed':_0x5000c0[_0x3d6090(0x16d)],'anchors':_0x5000c0[_0x3d6090(0x188)][_0x3d6090(0x17a)](a)};}function s(_0x316b4e,_0x43d3e3,_0x1f47d6){return{'x':_0x316b4e['x']+(_0x43d3e3['x']-_0x316b4e['x'])*_0x1f47d6,'y':_0x316b4e['y']+(_0x43d3e3['y']-_0x316b4e['y'])*_0x1f47d6};}function c(_0x59c9da,_0x2dbbea){const _0x157487=_0x59a874;return Math[_0x157487(0x16b)](_0x59c9da['x']-_0x2dbbea['x'],_0x59c9da['y']-_0x2dbbea['y']);}function l(_0x98f842){const _0xfc3492=_0x59a874;let _0x453f6d=Math[_0xfc3492(0x16b)](_0x98f842['x'],_0x98f842['y']);return _0x453f6d<r?{'x':0x1,'y':0x0}:{'x':_0x98f842['x']/_0x453f6d,'y':_0x98f842['y']/_0x453f6d};}function u(_0x33d0da,_0x4f0d94,_0x7a2900=c(_0x33d0da,_0x4f0d94)){let _0x495a8f=l({'x':_0x33d0da['x']-_0x4f0d94['x'],'y':_0x33d0da['y']-_0x4f0d94['y']});return{'x':_0x33d0da['x']+_0x495a8f['x']*_0x7a2900,'y':_0x33d0da['y']+_0x495a8f['y']*_0x7a2900};}function d(_0xff1417,_0xb65cad){const _0x3bda45=_0x59a874;let {anchors:_0x47a94f}=_0xff1417;return _0x47a94f[_0x3bda45(0x198)]<0x2||_0xb65cad<0x0?null:_0xb65cad<_0x47a94f['length']-0x1?{'startIndex':_0xb65cad,'endIndex':_0xb65cad+0x1,'start':_0x47a94f[_0xb65cad],'end':_0x47a94f[_0xb65cad+0x1]}:_0xff1417[_0x3bda45(0x16d)]&&_0xb65cad===_0x47a94f[_0x3bda45(0x198)]-0x1?{'startIndex':_0x47a94f[_0x3bda45(0x198)]-0x1,'endIndex':0x0,'start':_0x47a94f[_0x47a94f[_0x3bda45(0x198)]-0x1],'end':_0x47a94f[0x0]}:null;}function f(_0x510ded,_0x3c366c){const _0xfaeb6a=_0x59a874;var _0x3dca57,_0x833402;let _0x2c9a57=d(_0x510ded,_0x3c366c);return _0x2c9a57?[_0x2c9a57[_0xfaeb6a(0x191)],(_0x3dca57=_0x2c9a57['start'][_0xfaeb6a(0x1b6)])==null?_0x2c9a57[_0xfaeb6a(0x191)]:_0x3dca57,(_0x833402=_0x2c9a57[_0xfaeb6a(0x19f)]['in'])==null?_0x2c9a57[_0xfaeb6a(0x19f)]:_0x833402,_0x2c9a57[_0xfaeb6a(0x19f)]]:null;}function ee(_0x197be2,_0x1eeba9){var _0x5173fe;return _0x1eeba9==='anchor'?_0x197be2:(_0x5173fe=_0x197be2[_0x1eeba9])==null?null:_0x5173fe;}function p(_0x51c8cb,_0x312194,_0x20594f){const _0x3b1c14=_0x59a874;return _0x20594f===_0x3b1c14(0x1ce)||_0x51c8cb[_0x3b1c14(0x16d)]?!0x0:_0x20594f==='in'?_0x312194>0x0:_0x312194<_0x51c8cb[_0x3b1c14(0x188)]['length']-0x1;}function m(_0x11ee17,_0x339cbb){let [_0x592f48,_0x24cf3d,_0x5f4aef,_0x4a1aca]=_0x11ee17,_0x4b502e=s(_0x592f48,_0x24cf3d,_0x339cbb),_0x320de1=s(_0x24cf3d,_0x5f4aef,_0x339cbb),_0x1cd89f=s(_0x5f4aef,_0x4a1aca,_0x339cbb);return s(s(_0x4b502e,_0x320de1,_0x339cbb),s(_0x320de1,_0x1cd89f,_0x339cbb),_0x339cbb);}function h(_0x3f6fc6,_0x386e33){let [_0xc2e0ef,_0x339aca,_0x413512,_0x15ada4]=_0x3f6fc6,_0x42040d=s(_0xc2e0ef,_0x339aca,_0x386e33),_0x35f973=s(_0x339aca,_0x413512,_0x386e33),_0x46990a=s(_0x413512,_0x15ada4,_0x386e33),_0x3ff375=s(_0x42040d,_0x35f973,_0x386e33),_0x2574c5=s(_0x35f973,_0x46990a,_0x386e33),_0x413e99=s(_0x3ff375,_0x2574c5,_0x386e33);return{'left':[_0xc2e0ef,_0x42040d,_0x3ff375,_0x413e99],'right':[_0x413e99,_0x2574c5,_0x46990a,_0x15ada4]};}function g(_0x1f1879,_0x4dc181,_0x4ab63c){const _0x59caeb=_0x59a874;let _0x3aa640=_0x4ab63c['x']-_0x4dc181['x'],_0x120940=_0x4ab63c['y']-_0x4dc181['y'],_0x7d19e9=_0x3aa640*_0x3aa640+_0x120940*_0x120940,_0x3636f1=_0x7d19e9<=r?0x0:Math[_0x59caeb(0x189)](0x0,Math[_0x59caeb(0x1ba)](0x1,((_0x1f1879['x']-_0x4dc181['x'])*_0x3aa640+(_0x1f1879['y']-_0x4dc181['y'])*_0x120940)/_0x7d19e9)),_0x38eb45={'x':_0x4dc181['x']+_0x3aa640*_0x3636f1,'y':_0x4dc181['y']+_0x120940*_0x3636f1};return{'point':_0x38eb45,'ratio':_0x3636f1,'distance':c(_0x1f1879,_0x38eb45)};}function te(_0x915348,_0x55fb5a,_0xa7aae2){return g(_0x915348,_0x55fb5a,_0xa7aae2)['distance']**0x2;}function _(_0x133000,_0x5c3e5b){const _0x269b6e=_0x59a874;if(_0x133000[_0x269b6e(0x198)]<=0x2)return _0x133000[_0x269b6e(0x17a)](i);let _0x46a117=0x0,_0x26b48e=0x0,_0x4e9847=_0x133000[0x0],_0x1f4cca=_0x133000[_0x133000[_0x269b6e(0x198)]-0x1],_0x3729bf=_0x5c3e5b*_0x5c3e5b;for(let _0x109e6e=0x1;_0x109e6e<_0x133000[_0x269b6e(0x198)]-0x1;_0x109e6e++){let _0x1bb6a9=te(_0x133000[_0x109e6e],_0x4e9847,_0x1f4cca);_0x1bb6a9>_0x46a117&&(_0x46a117=_0x1bb6a9,_0x26b48e=_0x109e6e);}if(_0x46a117<=_0x3729bf)return[i(_0x4e9847),i(_0x1f4cca)];let _0x15b063=_(_0x133000[_0x269b6e(0x1c6)](0x0,_0x26b48e+0x1),_0x5c3e5b),_0x21ee26=_(_0x133000[_0x269b6e(0x1c6)](_0x26b48e),_0x5c3e5b);return[..._0x15b063[_0x269b6e(0x1c6)](0x0,-0x1),..._0x21ee26];}function ne(_0x55d7ea,_0x4654ee){var _0x37372e;let _0x24ba50=_0x55d7ea[_0x4654ee],_0x30d351=_0x55d7ea[_0x4654ee+0x1],_0x261e69=(_0x37372e=_0x55d7ea[_0x4654ee-0x1])==null?_0x24ba50:_0x37372e;return{'x':_0x24ba50['x']+(_0x30d351['x']-_0x261e69['x'])/0x6,'y':_0x24ba50['y']+(_0x30d351['y']-_0x261e69['y'])/0x6};}function v(_0x4687b0,_0x50a46b){var _0x594b80;let _0x2cb43e=_0x4687b0[_0x50a46b],_0x3abbf6=_0x4687b0[_0x50a46b-0x1],_0x31d175=(_0x594b80=_0x4687b0[_0x50a46b+0x1])==null?_0x2cb43e:_0x594b80;return{'x':_0x2cb43e['x']-(_0x31d175['x']-_0x3abbf6['x'])/0x6,'y':_0x2cb43e['y']-(_0x31d175['y']-_0x3abbf6['y'])/0x6};}function y(_0x3620f8,_0x161f82){const _0x396b42=_0x59a874;var _0x48601c,_0x201de4;let _0x860045=_0x3620f8[_0x396b42(0x188)][_0x161f82],_0x40633b=(_0x48601c=_0x3620f8['anchors'][_0x161f82-0x1])==null?_0x3620f8['closed']?_0x3620f8[_0x396b42(0x188)][_0x3620f8[_0x396b42(0x188)][_0x396b42(0x198)]-0x1]:null:_0x48601c,_0x255ee8=(_0x201de4=_0x3620f8[_0x396b42(0x188)][_0x161f82+0x1])==null?_0x3620f8[_0x396b42(0x16d)]?_0x3620f8[_0x396b42(0x188)][0x0]:null:_0x201de4,_0x34bdbd=_0x40633b&&_0x255ee8?l({'x':_0x255ee8['x']-_0x40633b['x'],'y':_0x255ee8['y']-_0x40633b['y']}):_0x255ee8?l({'x':_0x255ee8['x']-_0x860045['x'],'y':_0x255ee8['y']-_0x860045['y']}):_0x40633b?l({'x':_0x860045['x']-_0x40633b['x'],'y':_0x860045['y']-_0x40633b['y']}):{'x':0x1,'y':0x0},_0x2dd9c2=_0x40633b&&_0x255ee8?Math['max'](0x32,c(_0x40633b,_0x255ee8)/0x4):0x32;return{'in':{'x':_0x860045['x']-_0x34bdbd['x']*_0x2dd9c2,'y':_0x860045['y']-_0x34bdbd['y']*_0x2dd9c2},'out':{'x':_0x860045['x']+_0x34bdbd['x']*_0x2dd9c2,'y':_0x860045['y']+_0x34bdbd['y']*_0x2dd9c2}};}function b(_0x3aaa89,_0x563bd9){const _0x3d191a=_0x59a874;let _0x2f2d34=_0x3aaa89[_0x563bd9],_0x5b93dc=_0x563bd9==='in'?_0x3d191a(0x1b6):'in',_0x108c7d=_0x3aaa89[_0x5b93dc];if(_0x2f2d34){if(_0x3aaa89[_0x3d191a(0x18c)]===_0x3d191a(0x1a0)){_0x3aaa89[_0x5b93dc]=u(_0x3aaa89,_0x2f2d34);return;}_0x3aaa89[_0x3d191a(0x18c)]==='smooth'&&(_0x3aaa89[_0x5b93dc]=u(_0x3aaa89,_0x2f2d34,_0x108c7d?c(_0x3aaa89,_0x108c7d):c(_0x3aaa89,_0x2f2d34)));}}function x(_0x268fdf,_0x9e347d){const _0x3251fe=_0x59a874;let _0x22d0a1=o(_0x268fdf);return!_0x9e347d||_0x22d0a1[_0x3251fe(0x16d)]||_0x22d0a1[_0x3251fe(0x188)][_0x3251fe(0x198)]===0x0||_0x22d0a1[_0x3251fe(0x188)][_0x3251fe(0x16f)]({'id':_0x3251fe(0x170),'x':_0x9e347d['x'],'y':_0x9e347d['y'],'pointType':_0x3251fe(0x186)}),_0x22d0a1;}function re(_0x10665c,_0x58c883={}){const _0x17cb56=_0x59a874;var _0x176d7d,_0x5023e6;let _0x58874e=Math[_0x17cb56(0x189)](0x0,(_0x176d7d=_0x58c883[_0x17cb56(0x1bf)])==null?Math[_0x17cb56(0x189)](0x4,_0x10665c['width']*0.35):_0x176d7d),_0x55f162=(_0x5023e6=_0x58c883[_0x17cb56(0x1c0)])==null?_0x339ed3=>_0x17cb56(0x1a6)+_0x339ed3:_0x5023e6,_0x97c22a=_(_0x10665c[_0x17cb56(0x195)],_0x58874e),_0x598bf7=_0x97c22a[_0x17cb56(0x17a)]((_0x28ad76,_0x344a11)=>({'id':_0x55f162(_0x344a11),'x':_0x28ad76['x'],'y':_0x28ad76['y'],'pointType':_0x17cb56(0x1b8)}));for(let _0x2a93d8=0x0;_0x2a93d8<_0x598bf7['length']-0x1;_0x2a93d8++)_0x598bf7[_0x2a93d8][_0x17cb56(0x1b6)]=ne(_0x97c22a,_0x2a93d8),_0x598bf7[_0x2a93d8+0x1]['in']=v(_0x97c22a,_0x2a93d8+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x598bf7};}function _0x46e4(){const _0x2264a6=['object','ShapeFillEnum','string','slice','default','SolidFill','1.0.0-alpha.7','218394owSsJX','startIndex','moveInkPenAnchorPoint','ShapeTypeEnum','anchor','tool','Round','kind','890MyIxJW','toPrimitive','color','defineProperty','registerCommand','decorate','_configService','_adapters','onStarting','forEach','hypot','splice','closed','UNIVER_UNKNOWN','push','__ink-preview-anchor__','distance','6jcPjiI','setInkPenAnchorPointType','pen','Module','ICommandService','norm','createCustomShape','find','map','ink.host-adapter.service','OPERATION','findIndex','left','call','1957724XEbgeB','IInkHostAdapterService','getInkPenPreviewModel','633222BsKZwn','insertInkPenAnchorAt','filter','corner','3534630efFeeE','anchors','max','symbol','ink.operation.start','pointType','UNIVER_INK_PLUGIN','_commandService','indexOf','findClosestInkPenHandle','start','ShapeLineCapEnum','constructor','ShapeLineJoinEnum','points','abs','merge','length','prototype','getOwnPropertyDescriptor','findClosestInkPenSegment','top','Inject','opacity','end','symmetric','SolidLine','endIndex','width','5674260pwamPG','UniverInkPlugin','ink-centerline-','segmentIndex','UniverLicensePlugin','iterator','join','point','NoFill','ShapeLineTypeEnum','Plugin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','134715FMrbTo','registerAdapter','get','714236sfrVbj','smooth','toDisposable','out','_config','free','convertBrushModelToPenModel','min','function','beginInkMode','height','anchorId','tolerance','createId','312slTZjO','round'];_0x46e4=function(){return _0x2264a6;};return _0x46e4();}function ie(_0x22a915,_0x1bde6e,_0x16771b){const _0x986a14=_0x59a874;let _0x282b75=null,_0x254c21=[_0x986a14(0x1ce),'in',_0x986a14(0x1b6)];return _0x22a915[_0x986a14(0x188)][_0x986a14(0x16a)]((_0x329961,_0x6ee73e)=>{const _0x16a46a=_0x986a14;_0x254c21[_0x16a46a(0x16a)](_0x1c6f71=>{const _0x151cec=_0x16a46a;if(!p(_0x22a915,_0x6ee73e,_0x1c6f71))return;let _0x5efdc4=ee(_0x329961,_0x1c6f71);if(!_0x5efdc4)return;let _0x2cbed0=c(_0x1bde6e,_0x5efdc4);_0x2cbed0>_0x16771b||_0x282b75&&_0x2cbed0>=_0x282b75[_0x151cec(0x171)]||(_0x282b75={'handle':{'kind':_0x1c6f71,'anchorId':_0x329961['id']},'point':i(_0x5efdc4),'distance':_0x2cbed0});});}),_0x282b75;}function S(_0x54c289,_0x195ef8,_0x412d1a){const _0x4dd555=_0x59a874;let _0x31a1e7=null,_0x14a205=_0x54c289[_0x4dd555(0x16d)]?_0x54c289['anchors'][_0x4dd555(0x198)]:Math[_0x4dd555(0x189)](0x0,_0x54c289['anchors'][_0x4dd555(0x198)]-0x1);for(let _0x314cac=0x0;_0x314cac<_0x14a205;_0x314cac++){let _0x32b367=f(_0x54c289,_0x314cac);if(!_0x32b367)continue;let _0x1e58b6=m(_0x32b367,0x0);for(let _0x2bf85a=0x1;_0x2bf85a<=0x20;_0x2bf85a++){let _0x59cba2=m(_0x32b367,_0x2bf85a/0x20),_0x5cd7c3=g(_0x195ef8,_0x1e58b6,_0x59cba2),_0x5014f6=(_0x2bf85a-0x1+_0x5cd7c3['ratio'])/0x20;(!_0x31a1e7||_0x5cd7c3['distance']<_0x31a1e7[_0x4dd555(0x171)])&&(_0x31a1e7={'segmentIndex':_0x314cac,'t':_0x5014f6,'point':_0x5cd7c3[_0x4dd555(0x1ab)],'distance':_0x5cd7c3[_0x4dd555(0x171)]}),_0x1e58b6=_0x59cba2;}}return _0x31a1e7&&_0x31a1e7[_0x4dd555(0x171)]<=_0x412d1a?_0x31a1e7:null;}function C(_0x2fbeec,_0x905720,_0x476442){const _0x48f8ed=_0x59a874;let _0x4c2634=o(_0x2fbeec),_0x45f38c=d(_0x4c2634,_0x905720[_0x48f8ed(0x1a7)]),_0x2d1d69=f(_0x4c2634,_0x905720['segmentIndex']);if(!_0x45f38c||!_0x2d1d69)return _0x4c2634;let _0x3b1fe0=h(_0x2d1d69,Math[_0x48f8ed(0x189)](0x0,Math[_0x48f8ed(0x1ba)](0x1,_0x905720['t']))),_0x51c556={'id':_0x476442(),'x':_0x3b1fe0[_0x48f8ed(0x17e)][0x3]['x'],'y':_0x3b1fe0['left'][0x3]['y'],'in':i(_0x3b1fe0[_0x48f8ed(0x17e)][0x2]),'out':i(_0x3b1fe0['right'][0x1]),'pointType':_0x48f8ed(0x1b8)};return _0x4c2634[_0x48f8ed(0x188)][_0x45f38c[_0x48f8ed(0x1cb)]][_0x48f8ed(0x1b6)]=i(_0x3b1fe0[_0x48f8ed(0x17e)][0x1]),_0x4c2634[_0x48f8ed(0x188)][_0x45f38c[_0x48f8ed(0x1a2)]]['in']=i(_0x3b1fe0['right'][0x2]),_0x4c2634[_0x48f8ed(0x188)][_0x48f8ed(0x16c)](_0x45f38c[_0x48f8ed(0x1cb)]+0x1,0x0,_0x51c556),_0x4c2634;}function w(_0x76a63,_0x21404f){const _0x434c65=_0x59a874;let _0x5b1855=o(_0x76a63);return _0x5b1855['anchors']=_0x5b1855[_0x434c65(0x188)][_0x434c65(0x185)](_0x144581=>_0x144581['id']!==_0x21404f),_0x5b1855[_0x434c65(0x16d)]&&_0x5b1855['anchors']['length']<0x3&&(_0x5b1855[_0x434c65(0x16d)]=!0x1),_0x5b1855;}function T(_0x53e92e,_0x11dbf9,_0x5f2118){const _0x290d06=_0x59a874;let _0x2a2f06=o(_0x53e92e),_0x41956e=_0x2a2f06['anchors'][_0x290d06(0x17d)](_0xbc6de0=>_0xbc6de0['id']===_0x11dbf9),_0x491e54=_0x2a2f06[_0x290d06(0x188)][_0x41956e];if(!_0x491e54)return _0x2a2f06;if(_0x491e54[_0x290d06(0x18c)]=_0x5f2118,_0x5f2118===_0x290d06(0x186))return delete _0x491e54['in'],delete _0x491e54[_0x290d06(0x1b6)],_0x2a2f06;let _0x422cb8=y(_0x2a2f06,_0x41956e);if(_0x491e54['in']=_0x491e54['in']?i(_0x491e54['in']):_0x422cb8['in'],_0x491e54[_0x290d06(0x1b6)]=_0x491e54[_0x290d06(0x1b6)]?i(_0x491e54[_0x290d06(0x1b6)]):_0x422cb8['out'],_0x5f2118===_0x290d06(0x1a0)){let _0x378685=Math['max'](c(_0x491e54,_0x491e54['in']),c(_0x491e54,_0x491e54[_0x290d06(0x1b6)]),0x32),_0x3f894d=l({'x':_0x491e54[_0x290d06(0x1b6)]['x']-_0x491e54['x'],'y':_0x491e54[_0x290d06(0x1b6)]['y']-_0x491e54['y']});_0x491e54['out']={'x':_0x491e54['x']+_0x3f894d['x']*_0x378685,'y':_0x491e54['y']+_0x3f894d['y']*_0x378685},_0x491e54['in']={'x':_0x491e54['x']-_0x3f894d['x']*_0x378685,'y':_0x491e54['y']-_0x3f894d['y']*_0x378685};}else _0x5f2118===_0x290d06(0x1b4)&&b(_0x491e54,_0x290d06(0x1b6));return _0x2a2f06;}function E(_0x30da42,_0x4baa68){const _0x5abf48=_0x59a874;var _0x33c9c6;let _0xb9e319=_0x30da42[_0x5abf48(0x188)]['find'](_0x479f0b=>_0x479f0b['id']===_0x4baa68),_0x4d66db=(_0x33c9c6=_0xb9e319==null?void 0x0:_0xb9e319[_0x5abf48(0x18c)])==null?_0x5abf48(0x186):_0x33c9c6;return T(_0x30da42,_0x4baa68,_0x4d66db===_0x5abf48(0x186)?'smooth':_0x4d66db===_0x5abf48(0x1b4)?_0x5abf48(0x1a0):_0x4d66db===_0x5abf48(0x1a0)?_0x5abf48(0x1b8):_0x5abf48(0x186));}function ae(_0x42cc6f,_0x2752de,_0x54d36a){const _0x293a74=_0x59a874;let _0x5386d8=o(_0x42cc6f),_0x28e324=_0x5386d8[_0x293a74(0x188)][_0x293a74(0x179)](_0x263245=>_0x263245['id']===_0x2752de[_0x293a74(0x1be)]);if(!_0x28e324)return _0x5386d8;if(_0x2752de[_0x293a74(0x1d1)]===_0x293a74(0x1ce)){let _0x510ce6={'x':_0x54d36a['x']-_0x28e324['x'],'y':_0x54d36a['y']-_0x28e324['y']};return _0x28e324['x']=_0x54d36a['x'],_0x28e324['y']=_0x54d36a['y'],_0x28e324['in']&&(_0x28e324['in']={'x':_0x28e324['in']['x']+_0x510ce6['x'],'y':_0x28e324['in']['y']+_0x510ce6['y']}),_0x28e324[_0x293a74(0x1b6)]&&(_0x28e324[_0x293a74(0x1b6)]={'x':_0x28e324[_0x293a74(0x1b6)]['x']+_0x510ce6['x'],'y':_0x28e324['out']['y']+_0x510ce6['y']}),_0x5386d8;}return _0x28e324[_0x2752de[_0x293a74(0x1d1)]]=i(_0x54d36a),_0x28e324[_0x293a74(0x18c)]===_0x293a74(0x186)&&(_0x28e324[_0x293a74(0x18c)]=_0x293a74(0x1b8)),b(_0x28e324,_0x2752de[_0x293a74(0x1d1)]),_0x5386d8;}const D=1e-9;function O(_0x324304){let _0x21794f=Math['round'](_0x324304*0x2710)/0x2710;return Object['is'](_0x21794f,-0x0)?'0':String(_0x21794f);}function k(_0x552dd0){return O(_0x552dd0['x'])+'\x20'+O(_0x552dd0['y']);}function A(_0x17744b,_0x10bc27){return{'x':_0x17744b['x']-_0x10bc27['x'],'y':_0x17744b['y']-_0x10bc27['y']};}function j(_0xc82808,_0x442dc9,_0x18d5f4,_0x246b9a,_0x5ae311){let _0x3988c4=0x1-_0x5ae311;return{'x':_0x3988c4*_0x3988c4*_0x3988c4*_0xc82808['x']+0x3*_0x3988c4*_0x3988c4*_0x5ae311*_0x442dc9['x']+0x3*_0x3988c4*_0x5ae311*_0x5ae311*_0x18d5f4['x']+_0x5ae311*_0x5ae311*_0x5ae311*_0x246b9a['x'],'y':_0x3988c4*_0x3988c4*_0x3988c4*_0xc82808['y']+0x3*_0x3988c4*_0x3988c4*_0x5ae311*_0x442dc9['y']+0x3*_0x3988c4*_0x5ae311*_0x5ae311*_0x18d5f4['y']+_0x5ae311*_0x5ae311*_0x5ae311*_0x246b9a['y']};}function M(_0x3471a8,_0xac42d6,_0x86b447,_0x3ec75e){const _0x86734e=_0x59a874;let _0x5ec3ec=-_0x3471a8+0x3*_0xac42d6-0x3*_0x86b447+_0x3ec75e,_0x250b1e=0x3*_0x3471a8-0x6*_0xac42d6+0x3*_0x86b447,_0x5791c6=-0x3*_0x3471a8+0x3*_0xac42d6,_0x4a4dc8=[];if(Math[_0x86734e(0x196)](_0x5ec3ec)<D){if(Math[_0x86734e(0x196)](_0x250b1e)<D)return _0x4a4dc8;let _0x5d5d3d=-_0x5791c6/(0x2*_0x250b1e);return _0x5d5d3d>0x0&&_0x5d5d3d<0x1&&_0x4a4dc8[_0x86734e(0x16f)](_0x5d5d3d),_0x4a4dc8;}let _0x7fcefa=_0x250b1e*_0x250b1e-0x3*_0x5ec3ec*_0x5791c6;if(_0x7fcefa<0x0)return _0x4a4dc8;let _0x43b592=Math['sqrt'](Math[_0x86734e(0x189)](0x0,_0x7fcefa)),_0x41429b=(-_0x250b1e+_0x43b592)/(0x3*_0x5ec3ec),_0xfa4eb=(-_0x250b1e-_0x43b592)/(0x3*_0x5ec3ec);return _0x41429b>0x0&&_0x41429b<0x1&&_0x4a4dc8[_0x86734e(0x16f)](_0x41429b),_0xfa4eb>0x0&&_0xfa4eb<0x1&&Math['abs'](_0xfa4eb-_0x41429b)>D&&_0x4a4dc8[_0x86734e(0x16f)](_0xfa4eb),_0x4a4dc8;}function _0x193f(_0x3ebf7d,_0x1ac285){_0x3ebf7d=_0x3ebf7d-0x164;const _0x46e4d7=_0x46e4();let _0x193f53=_0x46e4d7[_0x3ebf7d];return _0x193f53;}function N(_0x247b4c,_0x210e26,_0x4131cd,_0x16f064,_0x273101){const _0x4ea912=_0x59a874;_0x247b4c[_0x4ea912(0x16f)](_0x210e26,_0x273101),new Set([...M(_0x210e26['x'],_0x4131cd['x'],_0x16f064['x'],_0x273101['x']),...M(_0x210e26['y'],_0x4131cd['y'],_0x16f064['y'],_0x273101['y'])])[_0x4ea912(0x16a)](_0x5a4789=>{const _0x3b0c82=_0x4ea912;_0x247b4c[_0x3b0c82(0x16f)](j(_0x210e26,_0x4131cd,_0x16f064,_0x273101,_0x5a4789));});}function P(_0x232c84){const _0x32b65b=_0x59a874;let _0x4dab35=_0x232c84['anchors'];if(_0x4dab35[_0x32b65b(0x198)]<=0x1)return _0x4dab35;let _0x33dbda=[];for(let _0x4332e5=0x1;_0x4332e5<_0x4dab35[_0x32b65b(0x198)];_0x4332e5++){var _0x1e11f5,_0x545da6;let _0x487ca9=_0x4dab35[_0x4332e5-0x1],_0x4e698b=_0x4dab35[_0x4332e5];N(_0x33dbda,_0x487ca9,(_0x1e11f5=_0x487ca9[_0x32b65b(0x1b6)])==null?_0x487ca9:_0x1e11f5,(_0x545da6=_0x4e698b['in'])==null?_0x4e698b:_0x545da6,_0x4e698b);}if(_0x232c84[_0x32b65b(0x16d)]&&_0x4dab35[_0x32b65b(0x198)]>0x1){var _0x350283,_0x56a24d;let _0x2d4fa1=_0x4dab35[_0x4dab35['length']-0x1],_0x20bcfd=_0x4dab35[0x0];N(_0x33dbda,_0x2d4fa1,(_0x350283=_0x2d4fa1['out'])==null?_0x2d4fa1:_0x350283,(_0x56a24d=_0x20bcfd['in'])==null?_0x20bcfd:_0x56a24d,_0x20bcfd);}return _0x33dbda;}function F(_0x101e52){const _0x1801c2=_0x59a874;let _0x49cdfa=_0x101e52['points'];if(_0x49cdfa[_0x1801c2(0x198)]<=0x1)return _0x49cdfa;let _0x5e994d=[];for(let _0xc4915=0x0;_0xc4915<_0x49cdfa[_0x1801c2(0x198)]-0x1;_0xc4915++){var _0x243d15,_0x50d2ee;let _0x47a63c=_0x49cdfa[_0xc4915],_0x4ba4f9=_0x49cdfa[_0xc4915+0x1],_0x1b3ed6=(_0x243d15=_0x49cdfa[_0xc4915-0x1])==null?_0x47a63c:_0x243d15,_0x54e02a=(_0x50d2ee=_0x49cdfa[_0xc4915+0x2])==null?_0x4ba4f9:_0x50d2ee;N(_0x5e994d,_0x47a63c,{'x':_0x47a63c['x']+(_0x4ba4f9['x']-_0x1b3ed6['x'])/0x6,'y':_0x47a63c['y']+(_0x4ba4f9['y']-_0x1b3ed6['y'])/0x6},{'x':_0x4ba4f9['x']-(_0x54e02a['x']-_0x47a63c['x'])/0x6,'y':_0x4ba4f9['y']-(_0x54e02a['y']-_0x47a63c['y'])/0x6},_0x4ba4f9);}return _0x5e994d;}function I(_0x4624a6){const _0x47ec15=_0x59a874;return _0x4624a6['kind']===_0x47ec15(0x174)?P(_0x4624a6):F(_0x4624a6);}function L(_0x3199b2){const _0x10ad4b=_0x59a874;let _0x3896f0=Math[_0x10ad4b(0x1c2)](_0x3199b2*0x2710)/0x2710;return Object['is'](_0x3896f0,-0x0)?0x0:_0x3896f0;}function R(_0xcdb471){const _0x1cd628=_0x59a874;let _0x331b55=I(_0xcdb471);if(_0x331b55[_0x1cd628(0x198)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x52033c=Math[_0x1cd628(0x1ba)](..._0x331b55[_0x1cd628(0x17a)](_0x1827fc=>_0x1827fc['x'])),_0x191aaa=Math[_0x1cd628(0x1ba)](..._0x331b55[_0x1cd628(0x17a)](_0x392c76=>_0x392c76['y'])),_0x35c185=Math[_0x1cd628(0x189)](..._0x331b55['map'](_0x22dd89=>_0x22dd89['x'])),_0x4bb1b8=Math['max'](..._0x331b55[_0x1cd628(0x17a)](_0xce9fb8=>_0xce9fb8['y']));return{'left':L(_0x52033c),'top':L(_0x191aaa),'width':L(Math['max'](0x1,_0x35c185-_0x52033c)),'height':L(Math['max'](0x1,_0x4bb1b8-_0x191aaa))};}function z(_0x1aa911,_0x423ff9){const _0x5a3064=_0x59a874;let _0xdf214d=_0x1aa911[_0x5a3064(0x188)];if(_0xdf214d[_0x5a3064(0x198)]===0x0)return'';let _0x3740be=['M\x20'+k(A(_0xdf214d[0x0],_0x423ff9))];for(let _0x42f1ef=0x1;_0x42f1ef<_0xdf214d['length'];_0x42f1ef++){var _0x515d6c,_0x89b90a;let _0x46e432=_0xdf214d[_0x42f1ef-0x1],_0x4dc879=_0xdf214d[_0x42f1ef],_0xa60d53=(_0x515d6c=_0x46e432['out'])==null?_0x46e432:_0x515d6c,_0x18254c=(_0x89b90a=_0x4dc879['in'])==null?_0x4dc879:_0x89b90a;_0x3740be[_0x5a3064(0x16f)]('C\x20'+k(A(_0xa60d53,_0x423ff9))+'\x20'+k(A(_0x18254c,_0x423ff9))+'\x20'+k(A(_0x4dc879,_0x423ff9)));}if(_0x1aa911[_0x5a3064(0x16d)]&&_0xdf214d['length']>0x1){var _0x2cc17c,_0x46cfa4;let _0x19e3a4=_0xdf214d[_0xdf214d[_0x5a3064(0x198)]-0x1],_0x578512=_0xdf214d[0x0],_0x3b4ec5=(_0x2cc17c=_0x19e3a4[_0x5a3064(0x1b6)])==null?_0x19e3a4:_0x2cc17c,_0x2d563f=(_0x46cfa4=_0x578512['in'])==null?_0x578512:_0x46cfa4;_0x3740be[_0x5a3064(0x16f)]('C\x20'+k(A(_0x3b4ec5,_0x423ff9))+'\x20'+k(A(_0x2d563f,_0x423ff9))+'\x20'+k(A(_0x578512,_0x423ff9))),_0x3740be[_0x5a3064(0x16f)]('Z');}return _0x3740be[_0x5a3064(0x1aa)]('\x20');}function B(_0x4b8155,_0x12dc0c){const _0x2c47c8=_0x59a874;let _0x33d710=_0x4b8155[_0x2c47c8(0x195)][_0x2c47c8(0x17a)](_0x47b1e8=>A(_0x47b1e8,_0x12dc0c));if(_0x33d710[_0x2c47c8(0x198)]===0x0)return'';if(_0x33d710[_0x2c47c8(0x198)]===0x1)return'M\x20'+k(_0x33d710[0x0]);let _0x27f9dd=['M\x20'+k(_0x33d710[0x0])];for(let _0xa83e7=0x0;_0xa83e7<_0x33d710[_0x2c47c8(0x198)]-0x1;_0xa83e7++){var _0x510a7e,_0x58030c;let _0x3f5626=_0x33d710[_0xa83e7],_0xc7a88f=_0x33d710[_0xa83e7+0x1],_0x37b81a=(_0x510a7e=_0x33d710[_0xa83e7-0x1])==null?_0x3f5626:_0x510a7e,_0x24375b=(_0x58030c=_0x33d710[_0xa83e7+0x2])==null?_0xc7a88f:_0x58030c,_0x3c8f25={'x':_0x3f5626['x']+(_0xc7a88f['x']-_0x37b81a['x'])/0x6,'y':_0x3f5626['y']+(_0xc7a88f['y']-_0x37b81a['y'])/0x6},_0x445210={'x':_0xc7a88f['x']-(_0x24375b['x']-_0x3f5626['x'])/0x6,'y':_0xc7a88f['y']-(_0x24375b['y']-_0x3f5626['y'])/0x6};_0x27f9dd[_0x2c47c8(0x16f)]('C\x20'+k(_0x3c8f25)+'\x20'+k(_0x445210)+'\x20'+k(_0xc7a88f));}return _0x27f9dd[_0x2c47c8(0x1aa)]('\x20');}function V(_0x50c6be,_0x1d861c){const _0x45a0fa=_0x59a874;return _0x50c6be['kind']===_0x45a0fa(0x174)?z(_0x50c6be,_0x1d861c):B(_0x50c6be,_0x1d861c);}function H(_0x5def3e,_0x404f26){const _0x10d8f5=_0x59a874;return _0x404f26!=null&&_0x404f26['color']?_0x404f26[_0x10d8f5(0x1d4)]:_0x5def3e[_0x10d8f5(0x1d1)]===_0x10d8f5(0x174)?'#f54a45':_0x5def3e['color'];}function U(_0x1da639,_0x590b6b){const _0x52e7d3=_0x59a874;return(_0x590b6b==null?void 0x0:_0x590b6b[_0x52e7d3(0x1a3)])===void 0x0?_0x1da639['kind']===_0x52e7d3(0x174)?0x2:_0x1da639[_0x52e7d3(0x1a3)]:_0x590b6b['width'];}function W(_0x41b064,_0x56d7d2){const _0x3d5c8d=_0x59a874;return(_0x56d7d2==null?void 0x0:_0x56d7d2[_0x3d5c8d(0x19e)])===void 0x0?_0x41b064[_0x3d5c8d(0x1d1)]===_0x3d5c8d(0x174)?void 0x0:_0x41b064[_0x3d5c8d(0x19e)]:_0x56d7d2[_0x3d5c8d(0x19e)];}function oe(_0x4dbf90,_0x393109){const _0x123f0a=_0x59a874;let _0x304ba7=R(_0x4dbf90),_0x4b02e3=V(_0x4dbf90,{'x':_0x304ba7[_0x123f0a(0x17e)],'y':_0x304ba7[_0x123f0a(0x19c)]}),_0x3364ab=_0x4dbf90['kind']===_0x123f0a(0x174)&&_0x4dbf90['closed'],_0x312a27=_0x393109==null?void 0x0:_0x393109['fillColor'];return{'shapeType':e[_0x123f0a(0x1cd)]['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x304ba7[_0x123f0a(0x1a3)],'h':_0x304ba7[_0x123f0a(0x1bd)],'fill':_0x3364ab?_0x123f0a(0x177):'none','stroke':!0x0,'data':_0x4b02e3,'dataArray':K(_0x4dbf90,{'x':_0x304ba7['left'],'y':_0x304ba7['top']})}]},'fill':_0x3364ab&&_0x312a27?{'color':_0x312a27,'fillType':e[_0x123f0a(0x1c4)][_0x123f0a(0x1c8)]}:{'fillType':e[_0x123f0a(0x1c4)][_0x123f0a(0x1ac)]},'stroke':{'color':H(_0x4dbf90,_0x393109),'width':U(_0x4dbf90,_0x393109),'opacity':W(_0x4dbf90,_0x393109),'lineStrokeType':e[_0x123f0a(0x1ad)][_0x123f0a(0x1a1)],'capType':e[_0x123f0a(0x192)]['Round'],'lineJoinType':e[_0x123f0a(0x194)][_0x123f0a(0x1d0)]}};}function G(_0x3753ac,_0x3c55e5){return{'x':_0x3753ac['x']-_0x3c55e5['x'],'y':_0x3753ac['y']-_0x3c55e5['y']};}function K(_0x3dbfbc,_0x5efb73){const _0x2eeb65=_0x59a874;if(_0x3dbfbc['kind']===_0x2eeb65(0x174)){let _0x4696b3=_0x3dbfbc[_0x2eeb65(0x188)];if(_0x4696b3[_0x2eeb65(0x198)]===0x0)return[];let _0x275e6f=G(_0x4696b3[0x0],_0x5efb73),_0x4a23b5=[{'command':'M','points':[_0x275e6f['x'],_0x275e6f['y']]}];for(let _0x1f2b67=0x1;_0x1f2b67<_0x4696b3[_0x2eeb65(0x198)];_0x1f2b67++){var _0x5ae7a3,_0x4f22c8;let _0x286f5a=_0x4696b3[_0x1f2b67-0x1],_0x133ba9=_0x4696b3[_0x1f2b67],_0xf6dbec=G((_0x5ae7a3=_0x286f5a[_0x2eeb65(0x1b6)])==null?_0x286f5a:_0x5ae7a3,_0x5efb73),_0xc3c58d=G((_0x4f22c8=_0x133ba9['in'])==null?_0x133ba9:_0x4f22c8,_0x5efb73),_0x12df3f=G(_0x133ba9,_0x5efb73);_0x4a23b5[_0x2eeb65(0x16f)]({'command':'C','points':[_0xf6dbec['x'],_0xf6dbec['y'],_0xc3c58d['x'],_0xc3c58d['y'],_0x12df3f['x'],_0x12df3f['y']]});}if(_0x3dbfbc['closed']&&_0x4696b3[_0x2eeb65(0x198)]>0x1){var _0x4ba7a4,_0x552c68;let _0x4a2042=_0x4696b3[_0x4696b3[_0x2eeb65(0x198)]-0x1],_0x1604f9=_0x4696b3[0x0],_0x2f200f=G((_0x4ba7a4=_0x4a2042[_0x2eeb65(0x1b6)])==null?_0x4a2042:_0x4ba7a4,_0x5efb73),_0x4936ba=G((_0x552c68=_0x1604f9['in'])==null?_0x1604f9:_0x552c68,_0x5efb73),_0x5d0950=G(_0x1604f9,_0x5efb73);_0x4a23b5[_0x2eeb65(0x16f)]({'command':'C','points':[_0x2f200f['x'],_0x2f200f['y'],_0x4936ba['x'],_0x4936ba['y'],_0x5d0950['x'],_0x5d0950['y']]}),_0x4a23b5['push']({'command':'z','points':[]});}return _0x4a23b5;}let _0x36bb2c=_0x3dbfbc[_0x2eeb65(0x195)][_0x2eeb65(0x17a)](_0x2187fd=>G(_0x2187fd,_0x5efb73));if(_0x36bb2c[_0x2eeb65(0x198)]===0x0)return[];let _0x3831a0=[{'command':'M','points':[_0x36bb2c[0x0]['x'],_0x36bb2c[0x0]['y']]}];for(let _0x125054=0x0;_0x125054<_0x36bb2c[_0x2eeb65(0x198)]-0x1;_0x125054++){var _0x579628,_0x297d08;let _0x349b8a=_0x36bb2c[_0x125054],_0x32b98f=_0x36bb2c[_0x125054+0x1],_0x383cf=(_0x579628=_0x36bb2c[_0x125054-0x1])==null?_0x349b8a:_0x579628,_0x55fd9d=(_0x297d08=_0x36bb2c[_0x125054+0x2])==null?_0x32b98f:_0x297d08,_0x24f6ce={'x':_0x349b8a['x']+(_0x32b98f['x']-_0x383cf['x'])/0x6,'y':_0x349b8a['y']+(_0x32b98f['y']-_0x383cf['y'])/0x6},_0x174934={'x':_0x32b98f['x']-(_0x55fd9d['x']-_0x349b8a['x'])/0x6,'y':_0x32b98f['y']-(_0x55fd9d['y']-_0x349b8a['y'])/0x6};_0x3831a0[_0x2eeb65(0x16f)]({'command':'C','points':[_0x24f6ce['x'],_0x24f6ce['y'],_0x174934['x'],_0x174934['y'],_0x32b98f['x'],_0x32b98f['y']]});}return _0x3831a0;}function q(_0x2e2607){const _0x332927=_0x59a874;var _0x3a991b;let {model:_0x585b92,sourceModel:_0x394c97=_0x585b92,style:_0x4e836f}=_0x2e2607,_0x5b28ea=(_0x3a991b=_0x2e2607[_0x332927(0x1cf)])==null?_0x585b92[_0x332927(0x1d1)]:_0x3a991b,_0x497af0=R(_0x585b92),_0x36ea49=_0x585b92[_0x332927(0x1d1)]===_0x332927(0x174)&&_0x5b28ea!==_0x332927(0x174)?_0x585b92:void 0x0;return{'transform':{..._0x497af0,'rotation':0x0},'shapeData':oe(_0x585b92,_0x4e836f),'ink':{'version':0x1,'tool':_0x5b28ea,'sourceModel':_0x394c97,..._0x36ea49?{'editModel':_0x36ea49}:{},'normalizedBounds':_0x497af0}};}var se='@univerjs-pro/ink',ce=_0x59a874(0x1c9);function J(_0x47d8ce){'@babel/helpers - typeof';const _0x9e2b24=_0x59a874;return J=typeof Symbol==_0x9e2b24(0x1bb)&&typeof Symbol[_0x9e2b24(0x1a9)]==_0x9e2b24(0x18a)?function(_0xd7719e){return typeof _0xd7719e;}:function(_0x4e556d){const _0x41fbcc=_0x9e2b24;return _0x4e556d&&typeof Symbol==_0x41fbcc(0x1bb)&&_0x4e556d[_0x41fbcc(0x193)]===Symbol&&_0x4e556d!==Symbol[_0x41fbcc(0x199)]?_0x41fbcc(0x18a):typeof _0x4e556d;},J(_0x47d8ce);}function le(_0x5379e5,_0x3922af){const _0x2524d4=_0x59a874;if(J(_0x5379e5)!=_0x2524d4(0x1c3)||!_0x5379e5)return _0x5379e5;var _0x358c71=_0x5379e5[Symbol[_0x2524d4(0x1d3)]];if(_0x358c71!==void 0x0){var _0x5e2be2=_0x358c71[_0x2524d4(0x17f)](_0x5379e5,_0x3922af||_0x2524d4(0x1c7));if(J(_0x5e2be2)!='object')return _0x5e2be2;throw TypeError(_0x2524d4(0x1af));}return(_0x3922af===_0x2524d4(0x1c5)?String:Number)(_0x5379e5);}function ue(_0x8fe591){const _0x40c5f1=_0x59a874;var _0x56bcd2=le(_0x8fe591,'string');return J(_0x56bcd2)==_0x40c5f1(0x18a)?_0x56bcd2:_0x56bcd2+'';}function Y(_0x4f6de3,_0x1ecd0e,_0x259194){const _0x25a693=_0x59a874;return(_0x1ecd0e=ue(_0x1ecd0e))in _0x4f6de3?Object[_0x25a693(0x164)](_0x4f6de3,_0x1ecd0e,{'value':_0x259194,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f6de3[_0x1ecd0e]=_0x259194,_0x4f6de3;}const X=(0x0,n['createIdentifier'])(_0x59a874(0x17b));var de=class{constructor(){const _0x209e2d=_0x59a874;Y(this,_0x209e2d(0x168),[]);}[_0x59a874(0x1b1)](_0x429d63){const _0x42cdb1=_0x59a874;return this['_adapters'][_0x42cdb1(0x16f)](_0x429d63),(0x0,n[_0x42cdb1(0x1b5)])(()=>{const _0x3c1f41=_0x42cdb1;let _0x246aa9=this['_adapters'][_0x3c1f41(0x18f)](_0x429d63);_0x246aa9>=0x0&&this[_0x3c1f41(0x168)][_0x3c1f41(0x16c)](_0x246aa9,0x1);});}[_0x59a874(0x1bc)](_0x3b4436){const _0x2862ef=_0x59a874;for(let _0x52fd30 of this[_0x2862ef(0x168)])if(_0x52fd30[_0x2862ef(0x1bc)](_0x3b4436))return!0x0;return!0x1;}async[_0x59a874(0x178)](_0x51ef30){const _0x5d9456=_0x59a874;for(let _0x32885e of this[_0x5d9456(0x168)])if(_0x32885e['createCustomShape']&&await _0x32885e['createCustomShape'](_0x51ef30))return!0x0;return!0x1;}};const fe={'id':_0x59a874(0x18b),'type':n['CommandType'][_0x59a874(0x17c)],'handler':(_0x36dca0,_0x4e31bf)=>_0x4e31bf?_0x36dca0[_0x59a874(0x1b2)](X)[_0x59a874(0x1bc)](_0x4e31bf):!0x1},Z={};function Q(_0x3398c8,_0x9737bb){return function(_0xee0fac,_0x584548){_0x9737bb(_0xee0fac,_0x584548,_0x3398c8);};}function pe(_0x58c361,_0x444650,_0x20aa73,_0x3ce9a4){const _0x4d18bd=_0x59a874;var _0x2d75b5=arguments[_0x4d18bd(0x198)],_0xad1e94=_0x2d75b5<0x3?_0x444650:_0x3ce9a4===null?_0x3ce9a4=Object[_0x4d18bd(0x19a)](_0x444650,_0x20aa73):_0x3ce9a4,_0x2621cd;if(typeof Reflect==_0x4d18bd(0x1c3)&&typeof Reflect[_0x4d18bd(0x166)]==_0x4d18bd(0x1bb))_0xad1e94=Reflect['decorate'](_0x58c361,_0x444650,_0x20aa73,_0x3ce9a4);else{for(var _0x3bad82=_0x58c361[_0x4d18bd(0x198)]-0x1;_0x3bad82>=0x0;_0x3bad82--)(_0x2621cd=_0x58c361[_0x3bad82])&&(_0xad1e94=(_0x2d75b5<0x3?_0x2621cd(_0xad1e94):_0x2d75b5>0x3?_0x2621cd(_0x444650,_0x20aa73,_0xad1e94):_0x2621cd(_0x444650,_0x20aa73))||_0xad1e94);}return _0x2d75b5>0x3&&_0xad1e94&&Object['defineProperty'](_0x444650,_0x20aa73,_0xad1e94),_0xad1e94;}let $=class extends n[_0x59a874(0x1ae)]{constructor(_0x160ea9=Z,_0x39e4c1,_0x14f4f9,_0x1bf9f2){const _0x2560b=_0x59a874;super(),this['_config']=_0x160ea9,this['_injector']=_0x39e4c1,this['_commandService']=_0x14f4f9,this[_0x2560b(0x167)]=_0x1bf9f2;let {..._0x5b9baf}=(0x0,n[_0x2560b(0x197)])({},Z,this[_0x2560b(0x1b7)]);this['_configService']['setConfig']('ink.config',_0x5b9baf);}[_0x59a874(0x169)](){const _0x111633=_0x59a874;[[X,{'useClass':de}]]['forEach'](_0xa0c0e3=>this['_injector']['add'](_0xa0c0e3)),this['disposeWithMe'](this[_0x111633(0x18e)][_0x111633(0x165)](fe));}};Y($,'pluginName',_0x59a874(0x18d)),Y($,'packageName',se),Y($,'version',ce),Y($,'type',n['UniverInstanceType'][_0x59a874(0x16e)]),$=pe([(0x0,n['DependentOn'])(t[_0x59a874(0x1a8)]),Q(0x1,(0x0,n[_0x59a874(0x19d)])(n['Injector'])),Q(0x2,n[_0x59a874(0x176)]),Q(0x3,n['IConfigService'])],$),exports[_0x59a874(0x181)]=X,Object['defineProperty'](exports,_0x59a874(0x1a5),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildInkCustomShapePayload']=q,exports[_0x59a874(0x1b9)]=re,exports['cycleInkPenAnchorPointType']=E,exports['deleteInkPenAnchor']=w,exports[_0x59a874(0x190)]=ie,exports[_0x59a874(0x19b)]=S,exports['getInkModelBounds']=R,exports[_0x59a874(0x182)]=x,exports[_0x59a874(0x184)]=C,exports['isInkPenHandleVisible']=p,exports[_0x59a874(0x1cc)]=ae,exports[_0x59a874(0x173)]=T;
|
|
1
|
+
const _0x2732bb=_0x448f;(function(_0x4bd00f,_0x8b6670){const _0x21b520=_0x448f,_0x5a0033=_0x4bd00f();while(!![]){try{const _0x2ba724=-parseInt(_0x21b520(0xff))/0x1+parseInt(_0x21b520(0x11e))/0x2*(parseInt(_0x21b520(0xd2))/0x3)+-parseInt(_0x21b520(0xf7))/0x4*(parseInt(_0x21b520(0xe0))/0x5)+-parseInt(_0x21b520(0xf3))/0x6*(parseInt(_0x21b520(0xe7))/0x7)+parseInt(_0x21b520(0xc0))/0x8+parseInt(_0x21b520(0xcf))/0x9+-parseInt(_0x21b520(0xdd))/0xa*(-parseInt(_0x21b520(0xe5))/0xb);if(_0x2ba724===_0x8b6670)break;else _0x5a0033['push'](_0x5a0033['shift']());}catch(_0x14e7eb){_0x5a0033['push'](_0x5a0033['shift']());}}}(_0x27a3,0x7d0ac),Object[_0x2732bb(0xb4)](exports,Symbol[_0x2732bb(0x104)],{'value':_0x2732bb(0xfb)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');function _0x448f(_0x43efaa,_0x1a1f08){_0x43efaa=_0x43efaa-0xab;const _0x27a3f6=_0x27a3();let _0x448ffd=_0x27a3f6[_0x43efaa];return _0x448ffd;}const r=0.0001;function i(_0x2903f5){return{'x':_0x2903f5['x'],'y':_0x2903f5['y']};}function a(_0x1efc46){const _0x89f36c=_0x2732bb;return{..._0x1efc46,'in':_0x1efc46['in']?i(_0x1efc46['in']):void 0x0,'out':_0x1efc46[_0x89f36c(0xea)]?i(_0x1efc46[_0x89f36c(0xea)]):void 0x0};}function o(_0x2ad64c){const _0x42594e=_0x2732bb;return{'kind':'pen','closed':_0x2ad64c[_0x42594e(0xec)],'anchors':_0x2ad64c[_0x42594e(0xf8)]['map'](a)};}function s(_0x5c3e4d,_0x358794,_0x220455){return{'x':_0x5c3e4d['x']+(_0x358794['x']-_0x5c3e4d['x'])*_0x220455,'y':_0x5c3e4d['y']+(_0x358794['y']-_0x5c3e4d['y'])*_0x220455};}function c(_0x546868,_0x512ba8){const _0x2ebe1b=_0x2732bb;return Math[_0x2ebe1b(0xc9)](_0x546868['x']-_0x512ba8['x'],_0x546868['y']-_0x512ba8['y']);}function l(_0x2dfeb1){const _0x3c91f4=_0x2732bb;let _0x12711f=Math[_0x3c91f4(0xc9)](_0x2dfeb1['x'],_0x2dfeb1['y']);return _0x12711f<r?{'x':0x1,'y':0x0}:{'x':_0x2dfeb1['x']/_0x12711f,'y':_0x2dfeb1['y']/_0x12711f};}function u(_0x2cc408,_0x5a6a3f,_0x38fab7=c(_0x2cc408,_0x5a6a3f)){let _0x67923=l({'x':_0x2cc408['x']-_0x5a6a3f['x'],'y':_0x2cc408['y']-_0x5a6a3f['y']});return{'x':_0x2cc408['x']+_0x67923['x']*_0x38fab7,'y':_0x2cc408['y']+_0x67923['y']*_0x38fab7};}function d(_0x2018e0,_0x53cd8e){const _0x4b306c=_0x2732bb;let {anchors:_0x35265e}=_0x2018e0;return _0x35265e[_0x4b306c(0xf2)]<0x2||_0x53cd8e<0x0?null:_0x53cd8e<_0x35265e[_0x4b306c(0xf2)]-0x1?{'startIndex':_0x53cd8e,'endIndex':_0x53cd8e+0x1,'start':_0x35265e[_0x53cd8e],'end':_0x35265e[_0x53cd8e+0x1]}:_0x2018e0[_0x4b306c(0xec)]&&_0x53cd8e===_0x35265e[_0x4b306c(0xf2)]-0x1?{'startIndex':_0x35265e['length']-0x1,'endIndex':0x0,'start':_0x35265e[_0x35265e['length']-0x1],'end':_0x35265e[0x0]}:null;}function f(_0x3a8a68,_0x1a096a){const _0x11cb3c=_0x2732bb;var _0x2bd9a1,_0x575e2f;let _0x185a7c=d(_0x3a8a68,_0x1a096a);return _0x185a7c?[_0x185a7c[_0x11cb3c(0xf6)],(_0x2bd9a1=_0x185a7c[_0x11cb3c(0xf6)][_0x11cb3c(0xea)])==null?_0x185a7c[_0x11cb3c(0xf6)]:_0x2bd9a1,(_0x575e2f=_0x185a7c[_0x11cb3c(0x10c)]['in'])==null?_0x185a7c[_0x11cb3c(0x10c)]:_0x575e2f,_0x185a7c[_0x11cb3c(0x10c)]]:null;}function ee(_0x1a1a9f,_0x2761eb){const _0x365903=_0x2732bb;var _0x4e3dd6;return _0x2761eb===_0x365903(0x116)?_0x1a1a9f:(_0x4e3dd6=_0x1a1a9f[_0x2761eb])==null?null:_0x4e3dd6;}function p(_0x4382df,_0x4d8e36,_0xc12d0a){const _0xcf02a6=_0x2732bb;return _0xc12d0a===_0xcf02a6(0x116)||_0x4382df[_0xcf02a6(0xec)]?!0x0:_0xc12d0a==='in'?_0x4d8e36>0x0:_0x4d8e36<_0x4382df[_0xcf02a6(0xf8)]['length']-0x1;}function m(_0x52279a,_0x5a77d7){let [_0x1a7e49,_0x1ae159,_0x3f5f9a,_0x246dc8]=_0x52279a,_0x577942=s(_0x1a7e49,_0x1ae159,_0x5a77d7),_0x5bcc43=s(_0x1ae159,_0x3f5f9a,_0x5a77d7),_0x24971c=s(_0x3f5f9a,_0x246dc8,_0x5a77d7);return s(s(_0x577942,_0x5bcc43,_0x5a77d7),s(_0x5bcc43,_0x24971c,_0x5a77d7),_0x5a77d7);}function h(_0x4763cb,_0x2bbbec){let [_0x4d62ef,_0x2145b7,_0x4cb40a,_0x5de05e]=_0x4763cb,_0x48052c=s(_0x4d62ef,_0x2145b7,_0x2bbbec),_0x3dc4f1=s(_0x2145b7,_0x4cb40a,_0x2bbbec),_0x49f884=s(_0x4cb40a,_0x5de05e,_0x2bbbec),_0x722e85=s(_0x48052c,_0x3dc4f1,_0x2bbbec),_0x4fc181=s(_0x3dc4f1,_0x49f884,_0x2bbbec),_0x49d669=s(_0x722e85,_0x4fc181,_0x2bbbec);return{'left':[_0x4d62ef,_0x48052c,_0x722e85,_0x49d669],'right':[_0x49d669,_0x4fc181,_0x49f884,_0x5de05e]};}function g(_0x19dbaf,_0x50c324,_0x438825){const _0x26100a=_0x2732bb;let _0x465a8e=_0x438825['x']-_0x50c324['x'],_0xa52680=_0x438825['y']-_0x50c324['y'],_0x37dea8=_0x465a8e*_0x465a8e+_0xa52680*_0xa52680,_0x87e998=_0x37dea8<=r?0x0:Math['max'](0x0,Math[_0x26100a(0xd4)](0x1,((_0x19dbaf['x']-_0x50c324['x'])*_0x465a8e+(_0x19dbaf['y']-_0x50c324['y'])*_0xa52680)/_0x37dea8)),_0x454bd7={'x':_0x50c324['x']+_0x465a8e*_0x87e998,'y':_0x50c324['y']+_0xa52680*_0x87e998};return{'point':_0x454bd7,'ratio':_0x87e998,'distance':c(_0x19dbaf,_0x454bd7)};}function te(_0xa54227,_0x102376,_0x3dd939){return g(_0xa54227,_0x102376,_0x3dd939)['distance']**0x2;}function _0x27a3(){const _0x46c89e=['toDisposable','start','553764oqFWYa','anchors','toPrimitive','opacity','Module','getInkModelBounds','fillColor','abs','926293PetWwS','endIndex','ShapeFillEnum','prototype','getInkPenPreviewModel','toStringTag','IConfigService','left','DependentOn','beginInkMode','ratio','round','max','end','sqrt','anchorId','UniverInstanceType','symmetric','_commandService','pointType','Plugin','convertBrushModelToPenModel','indexOf','anchor','add','SolidFill','constructor','ShapeLineTypeEnum','ShapeLineCapEnum','tool','points','338HUPGom','findIndex','onStarting','symbol','type','top','findClosestInkPenHandle','height','insertInkPenAnchorAt','iterator','none','_configService','string','free','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','findClosestInkPenSegment','forEach','smooth','tolerance','ICommandService','slice','join','cycleInkPenAnchorPointType','defineProperty','#f54a45','UniverInkPlugin','setInkPenAnchorPointType','_injector','Rect','deleteInkPenAnchor','NoFill','call','UNIVER_UNKNOWN','isInkPenHandleVisible','filter','5240664HBYpQB','find','createIdentifier','merge','__ink-preview-anchor__','_config','ShapeLineJoinEnum','segmentIndex','ShapeTypeEnum','hypot','ink-centerline-','registerCommand','push','getOwnPropertyDescriptor','_adapters','5800941faxiKW','createId','pluginName','4749xjqnJo','distance','min','startIndex','SolidLine','right','UniverLicensePlugin','ink.host-adapter.service','decorate','Round','UNIVER_INK_PLUGIN','4890400sLVEEo','pen','width','15pMZWZI','color','createCustomShape','object','point','11gtPWzF','OPERATION','7MTlKPY','corner','@univerjs-pro/ink','out','kind','closed','map','moveInkPenAnchorPoint','1.0.0-alpha.8','packageName','Inject','length','1214466BGxcPL','function'];_0x27a3=function(){return _0x46c89e;};return _0x27a3();}function _(_0x5c06de,_0x3c0848){const _0x9b15fc=_0x2732bb;if(_0x5c06de[_0x9b15fc(0xf2)]<=0x2)return _0x5c06de[_0x9b15fc(0xed)](i);let _0x9f5e16=0x0,_0x542912=0x0,_0x3b15ce=_0x5c06de[0x0],_0x422226=_0x5c06de[_0x5c06de[_0x9b15fc(0xf2)]-0x1],_0xf7a8a9=_0x3c0848*_0x3c0848;for(let _0x39d663=0x1;_0x39d663<_0x5c06de[_0x9b15fc(0xf2)]-0x1;_0x39d663++){let _0x16abbc=te(_0x5c06de[_0x39d663],_0x3b15ce,_0x422226);_0x16abbc>_0x9f5e16&&(_0x9f5e16=_0x16abbc,_0x542912=_0x39d663);}if(_0x9f5e16<=_0xf7a8a9)return[i(_0x3b15ce),i(_0x422226)];let _0x57cfff=_(_0x5c06de['slice'](0x0,_0x542912+0x1),_0x3c0848),_0x1507cb=_(_0x5c06de[_0x9b15fc(0xb1)](_0x542912),_0x3c0848);return[..._0x57cfff['slice'](0x0,-0x1),..._0x1507cb];}function ne(_0x260bc9,_0x12cb59){var _0x228a5c;let _0x1e9b4d=_0x260bc9[_0x12cb59],_0x2e2ff7=_0x260bc9[_0x12cb59+0x1],_0x1f8adc=(_0x228a5c=_0x260bc9[_0x12cb59-0x1])==null?_0x1e9b4d:_0x228a5c;return{'x':_0x1e9b4d['x']+(_0x2e2ff7['x']-_0x1f8adc['x'])/0x6,'y':_0x1e9b4d['y']+(_0x2e2ff7['y']-_0x1f8adc['y'])/0x6};}function v(_0x292c17,_0x21a9e3){var _0x5953dc;let _0x7bef9e=_0x292c17[_0x21a9e3],_0x11ca9f=_0x292c17[_0x21a9e3-0x1],_0x4b596b=(_0x5953dc=_0x292c17[_0x21a9e3+0x1])==null?_0x7bef9e:_0x5953dc;return{'x':_0x7bef9e['x']-(_0x4b596b['x']-_0x11ca9f['x'])/0x6,'y':_0x7bef9e['y']-(_0x4b596b['y']-_0x11ca9f['y'])/0x6};}function y(_0x1a5a7f,_0xde221c){const _0x35bdf1=_0x2732bb;var _0x2f52e2,_0x46b6e7;let _0x1b3b5e=_0x1a5a7f[_0x35bdf1(0xf8)][_0xde221c],_0x351395=(_0x2f52e2=_0x1a5a7f['anchors'][_0xde221c-0x1])==null?_0x1a5a7f[_0x35bdf1(0xec)]?_0x1a5a7f['anchors'][_0x1a5a7f[_0x35bdf1(0xf8)][_0x35bdf1(0xf2)]-0x1]:null:_0x2f52e2,_0x30b05e=(_0x46b6e7=_0x1a5a7f['anchors'][_0xde221c+0x1])==null?_0x1a5a7f[_0x35bdf1(0xec)]?_0x1a5a7f[_0x35bdf1(0xf8)][0x0]:null:_0x46b6e7,_0x1811d8=_0x351395&&_0x30b05e?l({'x':_0x30b05e['x']-_0x351395['x'],'y':_0x30b05e['y']-_0x351395['y']}):_0x30b05e?l({'x':_0x30b05e['x']-_0x1b3b5e['x'],'y':_0x30b05e['y']-_0x1b3b5e['y']}):_0x351395?l({'x':_0x1b3b5e['x']-_0x351395['x'],'y':_0x1b3b5e['y']-_0x351395['y']}):{'x':0x1,'y':0x0},_0x47a79a=_0x351395&&_0x30b05e?Math[_0x35bdf1(0x10b)](0x32,c(_0x351395,_0x30b05e)/0x4):0x32;return{'in':{'x':_0x1b3b5e['x']-_0x1811d8['x']*_0x47a79a,'y':_0x1b3b5e['y']-_0x1811d8['y']*_0x47a79a},'out':{'x':_0x1b3b5e['x']+_0x1811d8['x']*_0x47a79a,'y':_0x1b3b5e['y']+_0x1811d8['y']*_0x47a79a}};}function b(_0x32e3eb,_0x446f72){const _0x30079=_0x2732bb;let _0x127038=_0x32e3eb[_0x446f72],_0x1dce74=_0x446f72==='in'?_0x30079(0xea):'in',_0xc7561=_0x32e3eb[_0x1dce74];if(_0x127038){if(_0x32e3eb[_0x30079(0x112)]===_0x30079(0x110)){_0x32e3eb[_0x1dce74]=u(_0x32e3eb,_0x127038);return;}_0x32e3eb[_0x30079(0x112)]===_0x30079(0xae)&&(_0x32e3eb[_0x1dce74]=u(_0x32e3eb,_0x127038,_0xc7561?c(_0x32e3eb,_0xc7561):c(_0x32e3eb,_0x127038)));}}function x(_0x2b62fe,_0x123516){const _0x1e4230=_0x2732bb;let _0x10a0bd=o(_0x2b62fe);return!_0x123516||_0x10a0bd[_0x1e4230(0xec)]||_0x10a0bd[_0x1e4230(0xf8)][_0x1e4230(0xf2)]===0x0||_0x10a0bd[_0x1e4230(0xf8)][_0x1e4230(0xcc)]({'id':_0x1e4230(0xc4),'x':_0x123516['x'],'y':_0x123516['y'],'pointType':_0x1e4230(0xe8)}),_0x10a0bd;}function re(_0x2284d2,_0xf67bd5={}){const _0x41412f=_0x2732bb;var _0x3a69b2,_0x293d4e;let _0x560052=Math[_0x41412f(0x10b)](0x0,(_0x3a69b2=_0xf67bd5[_0x41412f(0xaf)])==null?Math[_0x41412f(0x10b)](0x4,_0x2284d2['width']*0.35):_0x3a69b2),_0x3f565d=(_0x293d4e=_0xf67bd5[_0x41412f(0xd0)])==null?_0x229b01=>_0x41412f(0xca)+_0x229b01:_0x293d4e,_0x24d487=_(_0x2284d2[_0x41412f(0x11d)],_0x560052),_0x294e88=_0x24d487[_0x41412f(0xed)]((_0x5b9d75,_0x5ad04e)=>({'id':_0x3f565d(_0x5ad04e),'x':_0x5b9d75['x'],'y':_0x5b9d75['y'],'pointType':'free'}));for(let _0x4f890c=0x0;_0x4f890c<_0x294e88[_0x41412f(0xf2)]-0x1;_0x4f890c++)_0x294e88[_0x4f890c]['out']=ne(_0x24d487,_0x4f890c),_0x294e88[_0x4f890c+0x1]['in']=v(_0x24d487,_0x4f890c+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x294e88};}function ie(_0x3a6b82,_0x448e7c,_0x21459b){const _0x5f571d=_0x2732bb;let _0x32c880=null,_0x54eb78=[_0x5f571d(0x116),'in',_0x5f571d(0xea)];return _0x3a6b82[_0x5f571d(0xf8)][_0x5f571d(0xad)]((_0x33453a,_0x1f4f81)=>{_0x54eb78['forEach'](_0x597ae4=>{const _0x5e6eed=_0x448f;if(!p(_0x3a6b82,_0x1f4f81,_0x597ae4))return;let _0x4e5d4d=ee(_0x33453a,_0x597ae4);if(!_0x4e5d4d)return;let _0x649f7d=c(_0x448e7c,_0x4e5d4d);_0x649f7d>_0x21459b||_0x32c880&&_0x649f7d>=_0x32c880[_0x5e6eed(0xd3)]||(_0x32c880={'handle':{'kind':_0x597ae4,'anchorId':_0x33453a['id']},'point':i(_0x4e5d4d),'distance':_0x649f7d});});}),_0x32c880;}function S(_0x4d2e42,_0xaada4a,_0x2edbb0){const _0x48b928=_0x2732bb;let _0x4ad91c=null,_0x131af9=_0x4d2e42[_0x48b928(0xec)]?_0x4d2e42[_0x48b928(0xf8)][_0x48b928(0xf2)]:Math[_0x48b928(0x10b)](0x0,_0x4d2e42[_0x48b928(0xf8)]['length']-0x1);for(let _0x174552=0x0;_0x174552<_0x131af9;_0x174552++){let _0x2ff8dd=f(_0x4d2e42,_0x174552);if(!_0x2ff8dd)continue;let _0x51ca3b=m(_0x2ff8dd,0x0);for(let _0x296ed8=0x1;_0x296ed8<=0x20;_0x296ed8++){let _0x2b90e4=m(_0x2ff8dd,_0x296ed8/0x20),_0x4bbbd3=g(_0xaada4a,_0x51ca3b,_0x2b90e4),_0x122314=(_0x296ed8-0x1+_0x4bbbd3[_0x48b928(0x109)])/0x20;(!_0x4ad91c||_0x4bbbd3[_0x48b928(0xd3)]<_0x4ad91c[_0x48b928(0xd3)])&&(_0x4ad91c={'segmentIndex':_0x174552,'t':_0x122314,'point':_0x4bbbd3[_0x48b928(0xe4)],'distance':_0x4bbbd3[_0x48b928(0xd3)]}),_0x51ca3b=_0x2b90e4;}}return _0x4ad91c&&_0x4ad91c[_0x48b928(0xd3)]<=_0x2edbb0?_0x4ad91c:null;}function C(_0xd5d888,_0xf7b7d,_0xd596cf){const _0x490c5f=_0x2732bb;let _0x42ac3a=o(_0xd5d888),_0xc796f4=d(_0x42ac3a,_0xf7b7d[_0x490c5f(0xc7)]),_0x440943=f(_0x42ac3a,_0xf7b7d['segmentIndex']);if(!_0xc796f4||!_0x440943)return _0x42ac3a;let _0x2ae678=h(_0x440943,Math['max'](0x0,Math['min'](0x1,_0xf7b7d['t']))),_0x38d43c={'id':_0xd596cf(),'x':_0x2ae678[_0x490c5f(0x106)][0x3]['x'],'y':_0x2ae678['left'][0x3]['y'],'in':i(_0x2ae678[_0x490c5f(0x106)][0x2]),'out':i(_0x2ae678[_0x490c5f(0xd7)][0x1]),'pointType':'free'};return _0x42ac3a[_0x490c5f(0xf8)][_0xc796f4['startIndex']][_0x490c5f(0xea)]=i(_0x2ae678[_0x490c5f(0x106)][0x1]),_0x42ac3a[_0x490c5f(0xf8)][_0xc796f4[_0x490c5f(0x100)]]['in']=i(_0x2ae678[_0x490c5f(0xd7)][0x2]),_0x42ac3a[_0x490c5f(0xf8)]['splice'](_0xc796f4[_0x490c5f(0xd5)]+0x1,0x0,_0x38d43c),_0x42ac3a;}function w(_0x1afb6b,_0x22a3e3){const _0x5f5d88=_0x2732bb;let _0x2d863c=o(_0x1afb6b);return _0x2d863c[_0x5f5d88(0xf8)]=_0x2d863c[_0x5f5d88(0xf8)][_0x5f5d88(0xbf)](_0x206210=>_0x206210['id']!==_0x22a3e3),_0x2d863c[_0x5f5d88(0xec)]&&_0x2d863c[_0x5f5d88(0xf8)][_0x5f5d88(0xf2)]<0x3&&(_0x2d863c['closed']=!0x1),_0x2d863c;}function T(_0x1b0c99,_0x32785c,_0x41b76a){const _0x40609b=_0x2732bb;let _0x270732=o(_0x1b0c99),_0x22274f=_0x270732[_0x40609b(0xf8)][_0x40609b(0x11f)](_0x3179d2=>_0x3179d2['id']===_0x32785c),_0x15bb8f=_0x270732[_0x40609b(0xf8)][_0x22274f];if(!_0x15bb8f)return _0x270732;if(_0x15bb8f[_0x40609b(0x112)]=_0x41b76a,_0x41b76a===_0x40609b(0xe8))return delete _0x15bb8f['in'],delete _0x15bb8f[_0x40609b(0xea)],_0x270732;let _0x54e1a2=y(_0x270732,_0x22274f);if(_0x15bb8f['in']=_0x15bb8f['in']?i(_0x15bb8f['in']):_0x54e1a2['in'],_0x15bb8f['out']=_0x15bb8f['out']?i(_0x15bb8f[_0x40609b(0xea)]):_0x54e1a2[_0x40609b(0xea)],_0x41b76a===_0x40609b(0x110)){let _0x45a674=Math['max'](c(_0x15bb8f,_0x15bb8f['in']),c(_0x15bb8f,_0x15bb8f[_0x40609b(0xea)]),0x32),_0x1e39e6=l({'x':_0x15bb8f[_0x40609b(0xea)]['x']-_0x15bb8f['x'],'y':_0x15bb8f['out']['y']-_0x15bb8f['y']});_0x15bb8f['out']={'x':_0x15bb8f['x']+_0x1e39e6['x']*_0x45a674,'y':_0x15bb8f['y']+_0x1e39e6['y']*_0x45a674},_0x15bb8f['in']={'x':_0x15bb8f['x']-_0x1e39e6['x']*_0x45a674,'y':_0x15bb8f['y']-_0x1e39e6['y']*_0x45a674};}else _0x41b76a===_0x40609b(0xae)&&b(_0x15bb8f,_0x40609b(0xea));return _0x270732;}function E(_0x37acc7,_0x496527){const _0x1ff955=_0x2732bb;var _0x19d5d3;let _0x75422e=_0x37acc7[_0x1ff955(0xf8)][_0x1ff955(0xc1)](_0xf85aa3=>_0xf85aa3['id']===_0x496527),_0x15ba8b=(_0x19d5d3=_0x75422e==null?void 0x0:_0x75422e[_0x1ff955(0x112)])==null?_0x1ff955(0xe8):_0x19d5d3;return T(_0x37acc7,_0x496527,_0x15ba8b===_0x1ff955(0xe8)?_0x1ff955(0xae):_0x15ba8b===_0x1ff955(0xae)?_0x1ff955(0x110):_0x15ba8b==='symmetric'?_0x1ff955(0x12b):'corner');}function ae(_0x4deec9,_0x1f1420,_0x464e74){const _0x4bdea1=_0x2732bb;let _0x5d5748=o(_0x4deec9),_0x40a830=_0x5d5748['anchors']['find'](_0x269784=>_0x269784['id']===_0x1f1420[_0x4bdea1(0x10e)]);if(!_0x40a830)return _0x5d5748;if(_0x1f1420[_0x4bdea1(0xeb)]===_0x4bdea1(0x116)){let _0x54a8dd={'x':_0x464e74['x']-_0x40a830['x'],'y':_0x464e74['y']-_0x40a830['y']};return _0x40a830['x']=_0x464e74['x'],_0x40a830['y']=_0x464e74['y'],_0x40a830['in']&&(_0x40a830['in']={'x':_0x40a830['in']['x']+_0x54a8dd['x'],'y':_0x40a830['in']['y']+_0x54a8dd['y']}),_0x40a830['out']&&(_0x40a830[_0x4bdea1(0xea)]={'x':_0x40a830[_0x4bdea1(0xea)]['x']+_0x54a8dd['x'],'y':_0x40a830[_0x4bdea1(0xea)]['y']+_0x54a8dd['y']}),_0x5d5748;}return _0x40a830[_0x1f1420[_0x4bdea1(0xeb)]]=i(_0x464e74),_0x40a830[_0x4bdea1(0x112)]===_0x4bdea1(0xe8)&&(_0x40a830[_0x4bdea1(0x112)]=_0x4bdea1(0x12b)),b(_0x40a830,_0x1f1420[_0x4bdea1(0xeb)]),_0x5d5748;}const D=1e-9;function O(_0x5cbe5){const _0x15b045=_0x2732bb;let _0x32ab49=Math[_0x15b045(0x10a)](_0x5cbe5*0x2710)/0x2710;return Object['is'](_0x32ab49,-0x0)?'0':String(_0x32ab49);}function k(_0x63e37){return O(_0x63e37['x'])+'\x20'+O(_0x63e37['y']);}function A(_0x2c17fe,_0x11b375){return{'x':_0x2c17fe['x']-_0x11b375['x'],'y':_0x2c17fe['y']-_0x11b375['y']};}function j(_0x4845b1,_0x2f5e50,_0x3df24f,_0x2f2d96,_0x38b911){let _0x2fa58f=0x1-_0x38b911;return{'x':_0x2fa58f*_0x2fa58f*_0x2fa58f*_0x4845b1['x']+0x3*_0x2fa58f*_0x2fa58f*_0x38b911*_0x2f5e50['x']+0x3*_0x2fa58f*_0x38b911*_0x38b911*_0x3df24f['x']+_0x38b911*_0x38b911*_0x38b911*_0x2f2d96['x'],'y':_0x2fa58f*_0x2fa58f*_0x2fa58f*_0x4845b1['y']+0x3*_0x2fa58f*_0x2fa58f*_0x38b911*_0x2f5e50['y']+0x3*_0x2fa58f*_0x38b911*_0x38b911*_0x3df24f['y']+_0x38b911*_0x38b911*_0x38b911*_0x2f2d96['y']};}function M(_0x4706fd,_0x7a6bbb,_0x222877,_0x490723){const _0x4aa109=_0x2732bb;let _0x320cb4=-_0x4706fd+0x3*_0x7a6bbb-0x3*_0x222877+_0x490723,_0x36a87e=0x3*_0x4706fd-0x6*_0x7a6bbb+0x3*_0x222877,_0xdd65b3=-0x3*_0x4706fd+0x3*_0x7a6bbb,_0xd15833=[];if(Math[_0x4aa109(0xfe)](_0x320cb4)<D){if(Math['abs'](_0x36a87e)<D)return _0xd15833;let _0x39883c=-_0xdd65b3/(0x2*_0x36a87e);return _0x39883c>0x0&&_0x39883c<0x1&&_0xd15833[_0x4aa109(0xcc)](_0x39883c),_0xd15833;}let _0x53dff4=_0x36a87e*_0x36a87e-0x3*_0x320cb4*_0xdd65b3;if(_0x53dff4<0x0)return _0xd15833;let _0x536c17=Math[_0x4aa109(0x10d)](Math['max'](0x0,_0x53dff4)),_0x4b9a60=(-_0x36a87e+_0x536c17)/(0x3*_0x320cb4),_0x778106=(-_0x36a87e-_0x536c17)/(0x3*_0x320cb4);return _0x4b9a60>0x0&&_0x4b9a60<0x1&&_0xd15833[_0x4aa109(0xcc)](_0x4b9a60),_0x778106>0x0&&_0x778106<0x1&&Math['abs'](_0x778106-_0x4b9a60)>D&&_0xd15833['push'](_0x778106),_0xd15833;}function N(_0x10ab48,_0x48f7e0,_0x10ec11,_0x5db807,_0xcab5d3){const _0x8c8873=_0x2732bb;_0x10ab48['push'](_0x48f7e0,_0xcab5d3),new Set([...M(_0x48f7e0['x'],_0x10ec11['x'],_0x5db807['x'],_0xcab5d3['x']),...M(_0x48f7e0['y'],_0x10ec11['y'],_0x5db807['y'],_0xcab5d3['y'])])[_0x8c8873(0xad)](_0x10400e=>{const _0x12752d=_0x8c8873;_0x10ab48[_0x12752d(0xcc)](j(_0x48f7e0,_0x10ec11,_0x5db807,_0xcab5d3,_0x10400e));});}function P(_0xaa612){const _0x590c69=_0x2732bb;let _0x29c487=_0xaa612[_0x590c69(0xf8)];if(_0x29c487['length']<=0x1)return _0x29c487;let _0x4a7057=[];for(let _0x44d75d=0x1;_0x44d75d<_0x29c487[_0x590c69(0xf2)];_0x44d75d++){var _0x1ec320,_0x1d185e;let _0x10ceee=_0x29c487[_0x44d75d-0x1],_0x819f7b=_0x29c487[_0x44d75d];N(_0x4a7057,_0x10ceee,(_0x1ec320=_0x10ceee[_0x590c69(0xea)])==null?_0x10ceee:_0x1ec320,(_0x1d185e=_0x819f7b['in'])==null?_0x819f7b:_0x1d185e,_0x819f7b);}if(_0xaa612[_0x590c69(0xec)]&&_0x29c487['length']>0x1){var _0x55b867,_0x5b62f8;let _0x2e938f=_0x29c487[_0x29c487[_0x590c69(0xf2)]-0x1],_0x5adeb8=_0x29c487[0x0];N(_0x4a7057,_0x2e938f,(_0x55b867=_0x2e938f['out'])==null?_0x2e938f:_0x55b867,(_0x5b62f8=_0x5adeb8['in'])==null?_0x5adeb8:_0x5b62f8,_0x5adeb8);}return _0x4a7057;}function F(_0x172ce2){const _0x322e9a=_0x2732bb;let _0x17edee=_0x172ce2['points'];if(_0x17edee[_0x322e9a(0xf2)]<=0x1)return _0x17edee;let _0x218073=[];for(let _0x12e9d9=0x0;_0x12e9d9<_0x17edee['length']-0x1;_0x12e9d9++){var _0x36dd4c,_0x2cd075;let _0x26479e=_0x17edee[_0x12e9d9],_0x1a4762=_0x17edee[_0x12e9d9+0x1],_0xc9a53a=(_0x36dd4c=_0x17edee[_0x12e9d9-0x1])==null?_0x26479e:_0x36dd4c,_0x272bee=(_0x2cd075=_0x17edee[_0x12e9d9+0x2])==null?_0x1a4762:_0x2cd075;N(_0x218073,_0x26479e,{'x':_0x26479e['x']+(_0x1a4762['x']-_0xc9a53a['x'])/0x6,'y':_0x26479e['y']+(_0x1a4762['y']-_0xc9a53a['y'])/0x6},{'x':_0x1a4762['x']-(_0x272bee['x']-_0x26479e['x'])/0x6,'y':_0x1a4762['y']-(_0x272bee['y']-_0x26479e['y'])/0x6},_0x1a4762);}return _0x218073;}function I(_0x5500c9){return _0x5500c9['kind']==='pen'?P(_0x5500c9):F(_0x5500c9);}function L(_0x31a2ce){const _0x220ce3=_0x2732bb;let _0x742727=Math[_0x220ce3(0x10a)](_0x31a2ce*0x2710)/0x2710;return Object['is'](_0x742727,-0x0)?0x0:_0x742727;}function R(_0x500c3a){const _0x4950ce=_0x2732bb;let _0x15cd3a=I(_0x500c3a);if(_0x15cd3a[_0x4950ce(0xf2)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3fc2d2=Math[_0x4950ce(0xd4)](..._0x15cd3a['map'](_0x5132fd=>_0x5132fd['x'])),_0x58baed=Math[_0x4950ce(0xd4)](..._0x15cd3a['map'](_0x538210=>_0x538210['y'])),_0x5404e8=Math['max'](..._0x15cd3a[_0x4950ce(0xed)](_0x29d85c=>_0x29d85c['x'])),_0xf6151d=Math[_0x4950ce(0x10b)](..._0x15cd3a[_0x4950ce(0xed)](_0x3d0571=>_0x3d0571['y']));return{'left':L(_0x3fc2d2),'top':L(_0x58baed),'width':L(Math[_0x4950ce(0x10b)](0x1,_0x5404e8-_0x3fc2d2)),'height':L(Math[_0x4950ce(0x10b)](0x1,_0xf6151d-_0x58baed))};}function z(_0x32ba27,_0x3e9d8b){const _0x50ad44=_0x2732bb;let _0x55997e=_0x32ba27[_0x50ad44(0xf8)];if(_0x55997e[_0x50ad44(0xf2)]===0x0)return'';let _0x463a88=['M\x20'+k(A(_0x55997e[0x0],_0x3e9d8b))];for(let _0x1d3cc5=0x1;_0x1d3cc5<_0x55997e[_0x50ad44(0xf2)];_0x1d3cc5++){var _0x487795,_0x5a0ad6;let _0x510e59=_0x55997e[_0x1d3cc5-0x1],_0xd709e0=_0x55997e[_0x1d3cc5],_0x2def19=(_0x487795=_0x510e59[_0x50ad44(0xea)])==null?_0x510e59:_0x487795,_0x1c1964=(_0x5a0ad6=_0xd709e0['in'])==null?_0xd709e0:_0x5a0ad6;_0x463a88[_0x50ad44(0xcc)]('C\x20'+k(A(_0x2def19,_0x3e9d8b))+'\x20'+k(A(_0x1c1964,_0x3e9d8b))+'\x20'+k(A(_0xd709e0,_0x3e9d8b)));}if(_0x32ba27['closed']&&_0x55997e[_0x50ad44(0xf2)]>0x1){var _0x44a3e2,_0x489a28;let _0x2f4f62=_0x55997e[_0x55997e[_0x50ad44(0xf2)]-0x1],_0x3c4b29=_0x55997e[0x0],_0x4cb82e=(_0x44a3e2=_0x2f4f62[_0x50ad44(0xea)])==null?_0x2f4f62:_0x44a3e2,_0x5d5f1e=(_0x489a28=_0x3c4b29['in'])==null?_0x3c4b29:_0x489a28;_0x463a88[_0x50ad44(0xcc)]('C\x20'+k(A(_0x4cb82e,_0x3e9d8b))+'\x20'+k(A(_0x5d5f1e,_0x3e9d8b))+'\x20'+k(A(_0x3c4b29,_0x3e9d8b))),_0x463a88[_0x50ad44(0xcc)]('Z');}return _0x463a88[_0x50ad44(0xb2)]('\x20');}function B(_0xdd309d,_0x39c897){const _0x44a7e1=_0x2732bb;let _0x40c0e2=_0xdd309d[_0x44a7e1(0x11d)]['map'](_0x387940=>A(_0x387940,_0x39c897));if(_0x40c0e2[_0x44a7e1(0xf2)]===0x0)return'';if(_0x40c0e2[_0x44a7e1(0xf2)]===0x1)return'M\x20'+k(_0x40c0e2[0x0]);let _0x3eb57e=['M\x20'+k(_0x40c0e2[0x0])];for(let _0x55f624=0x0;_0x55f624<_0x40c0e2[_0x44a7e1(0xf2)]-0x1;_0x55f624++){var _0x24ea42,_0x193eca;let _0xfc7454=_0x40c0e2[_0x55f624],_0xbfc8ad=_0x40c0e2[_0x55f624+0x1],_0x575beb=(_0x24ea42=_0x40c0e2[_0x55f624-0x1])==null?_0xfc7454:_0x24ea42,_0x2bcc25=(_0x193eca=_0x40c0e2[_0x55f624+0x2])==null?_0xbfc8ad:_0x193eca,_0x235b08={'x':_0xfc7454['x']+(_0xbfc8ad['x']-_0x575beb['x'])/0x6,'y':_0xfc7454['y']+(_0xbfc8ad['y']-_0x575beb['y'])/0x6},_0x11d721={'x':_0xbfc8ad['x']-(_0x2bcc25['x']-_0xfc7454['x'])/0x6,'y':_0xbfc8ad['y']-(_0x2bcc25['y']-_0xfc7454['y'])/0x6};_0x3eb57e['push']('C\x20'+k(_0x235b08)+'\x20'+k(_0x11d721)+'\x20'+k(_0xbfc8ad));}return _0x3eb57e['join']('\x20');}function V(_0x25b4d4,_0x30baba){const _0x1b8eb7=_0x2732bb;return _0x25b4d4[_0x1b8eb7(0xeb)]==='pen'?z(_0x25b4d4,_0x30baba):B(_0x25b4d4,_0x30baba);}function H(_0x508db6,_0x1881b2){const _0x784c=_0x2732bb;return _0x1881b2!=null&&_0x1881b2[_0x784c(0xe1)]?_0x1881b2['color']:_0x508db6['kind']==='pen'?_0x784c(0xb5):_0x508db6[_0x784c(0xe1)];}function U(_0x4a32ef,_0x3df8f5){const _0x521297=_0x2732bb;return(_0x3df8f5==null?void 0x0:_0x3df8f5[_0x521297(0xdf)])===void 0x0?_0x4a32ef[_0x521297(0xeb)]===_0x521297(0xde)?0x2:_0x4a32ef[_0x521297(0xdf)]:_0x3df8f5[_0x521297(0xdf)];}function W(_0x24637c,_0x42d9b3){const _0xdf98a2=_0x2732bb;return(_0x42d9b3==null?void 0x0:_0x42d9b3[_0xdf98a2(0xfa)])===void 0x0?_0x24637c[_0xdf98a2(0xeb)]===_0xdf98a2(0xde)?void 0x0:_0x24637c[_0xdf98a2(0xfa)]:_0x42d9b3[_0xdf98a2(0xfa)];}function oe(_0x155329,_0x170931){const _0x1d3e40=_0x2732bb;let _0x5053f3=R(_0x155329),_0x17ba29=V(_0x155329,{'x':_0x5053f3['left'],'y':_0x5053f3[_0x1d3e40(0x123)]}),_0x1ec01e=_0x155329[_0x1d3e40(0xeb)]===_0x1d3e40(0xde)&&_0x155329[_0x1d3e40(0xec)],_0x25fd90=_0x170931==null?void 0x0:_0x170931[_0x1d3e40(0xfd)];return{'shapeType':e[_0x1d3e40(0xc8)][_0x1d3e40(0xb9)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x5053f3[_0x1d3e40(0xdf)],'h':_0x5053f3[_0x1d3e40(0x125)],'fill':_0x1ec01e?'norm':_0x1d3e40(0x128),'stroke':!0x0,'data':_0x17ba29,'dataArray':K(_0x155329,{'x':_0x5053f3[_0x1d3e40(0x106)],'y':_0x5053f3['top']})}]},'fill':_0x1ec01e&&_0x25fd90?{'color':_0x25fd90,'fillType':e[_0x1d3e40(0x101)][_0x1d3e40(0x118)]}:{'fillType':e['ShapeFillEnum'][_0x1d3e40(0xbb)]},'stroke':{'color':H(_0x155329,_0x170931),'width':U(_0x155329,_0x170931),'opacity':W(_0x155329,_0x170931),'lineStrokeType':e[_0x1d3e40(0x11a)][_0x1d3e40(0xd6)],'capType':e[_0x1d3e40(0x11b)][_0x1d3e40(0xdb)],'lineJoinType':e[_0x1d3e40(0xc6)]['Round']}};}function G(_0x3cf0fa,_0x49c752){return{'x':_0x3cf0fa['x']-_0x49c752['x'],'y':_0x3cf0fa['y']-_0x49c752['y']};}function K(_0x2a987c,_0x189303){const _0x2a0240=_0x2732bb;if(_0x2a987c[_0x2a0240(0xeb)]===_0x2a0240(0xde)){let _0x25f04f=_0x2a987c['anchors'];if(_0x25f04f[_0x2a0240(0xf2)]===0x0)return[];let _0x5e55b1=G(_0x25f04f[0x0],_0x189303),_0x294b08=[{'command':'M','points':[_0x5e55b1['x'],_0x5e55b1['y']]}];for(let _0x2f3fb=0x1;_0x2f3fb<_0x25f04f['length'];_0x2f3fb++){var _0x12eeaa,_0x3418ff;let _0x1e773a=_0x25f04f[_0x2f3fb-0x1],_0x4108c4=_0x25f04f[_0x2f3fb],_0x1dbcf1=G((_0x12eeaa=_0x1e773a[_0x2a0240(0xea)])==null?_0x1e773a:_0x12eeaa,_0x189303),_0x1efd27=G((_0x3418ff=_0x4108c4['in'])==null?_0x4108c4:_0x3418ff,_0x189303),_0x1a71cb=G(_0x4108c4,_0x189303);_0x294b08[_0x2a0240(0xcc)]({'command':'C','points':[_0x1dbcf1['x'],_0x1dbcf1['y'],_0x1efd27['x'],_0x1efd27['y'],_0x1a71cb['x'],_0x1a71cb['y']]});}if(_0x2a987c[_0x2a0240(0xec)]&&_0x25f04f[_0x2a0240(0xf2)]>0x1){var _0x5d92b6,_0x142199;let _0x1b85b8=_0x25f04f[_0x25f04f[_0x2a0240(0xf2)]-0x1],_0x2e7502=_0x25f04f[0x0],_0x1aea4d=G((_0x5d92b6=_0x1b85b8[_0x2a0240(0xea)])==null?_0x1b85b8:_0x5d92b6,_0x189303),_0x490ac5=G((_0x142199=_0x2e7502['in'])==null?_0x2e7502:_0x142199,_0x189303),_0x3e3e02=G(_0x2e7502,_0x189303);_0x294b08[_0x2a0240(0xcc)]({'command':'C','points':[_0x1aea4d['x'],_0x1aea4d['y'],_0x490ac5['x'],_0x490ac5['y'],_0x3e3e02['x'],_0x3e3e02['y']]}),_0x294b08[_0x2a0240(0xcc)]({'command':'z','points':[]});}return _0x294b08;}let _0x2399a0=_0x2a987c[_0x2a0240(0x11d)][_0x2a0240(0xed)](_0x322d65=>G(_0x322d65,_0x189303));if(_0x2399a0[_0x2a0240(0xf2)]===0x0)return[];let _0x2c7e4d=[{'command':'M','points':[_0x2399a0[0x0]['x'],_0x2399a0[0x0]['y']]}];for(let _0x4b27ab=0x0;_0x4b27ab<_0x2399a0[_0x2a0240(0xf2)]-0x1;_0x4b27ab++){var _0x26479f,_0x19c629;let _0xf33576=_0x2399a0[_0x4b27ab],_0x542105=_0x2399a0[_0x4b27ab+0x1],_0x301b59=(_0x26479f=_0x2399a0[_0x4b27ab-0x1])==null?_0xf33576:_0x26479f,_0x4b1f14=(_0x19c629=_0x2399a0[_0x4b27ab+0x2])==null?_0x542105:_0x19c629,_0x4a47f0={'x':_0xf33576['x']+(_0x542105['x']-_0x301b59['x'])/0x6,'y':_0xf33576['y']+(_0x542105['y']-_0x301b59['y'])/0x6},_0x415619={'x':_0x542105['x']-(_0x4b1f14['x']-_0xf33576['x'])/0x6,'y':_0x542105['y']-(_0x4b1f14['y']-_0xf33576['y'])/0x6};_0x2c7e4d[_0x2a0240(0xcc)]({'command':'C','points':[_0x4a47f0['x'],_0x4a47f0['y'],_0x415619['x'],_0x415619['y'],_0x542105['x'],_0x542105['y']]});}return _0x2c7e4d;}function q(_0x376127){const _0x1bff30=_0x2732bb;var _0x4236bb;let {model:_0x5dab74,sourceModel:_0x3ea851=_0x5dab74,style:_0x4756f1}=_0x376127,_0x2337ad=(_0x4236bb=_0x376127[_0x1bff30(0x11c)])==null?_0x5dab74[_0x1bff30(0xeb)]:_0x4236bb,_0x1bb97c=R(_0x5dab74),_0x3b6773=_0x5dab74[_0x1bff30(0xeb)]==='pen'&&_0x2337ad!==_0x1bff30(0xde)?_0x5dab74:void 0x0;return{'transform':{..._0x1bb97c,'rotation':0x0},'shapeData':oe(_0x5dab74,_0x4756f1),'ink':{'version':0x1,'tool':_0x2337ad,'sourceModel':_0x3ea851,..._0x3b6773?{'editModel':_0x3b6773}:{},'normalizedBounds':_0x1bb97c}};}var se=_0x2732bb(0xe9),ce=_0x2732bb(0xef);function J(_0x5b5a46){'@babel/helpers - typeof';const _0x747929=_0x2732bb;return J=typeof Symbol==_0x747929(0xf4)&&typeof Symbol[_0x747929(0x127)]==_0x747929(0x121)?function(_0x48994a){return typeof _0x48994a;}:function(_0x22849d){const _0x299983=_0x747929;return _0x22849d&&typeof Symbol=='function'&&_0x22849d[_0x299983(0x119)]===Symbol&&_0x22849d!==Symbol[_0x299983(0x102)]?_0x299983(0x121):typeof _0x22849d;},J(_0x5b5a46);}function le(_0x59e342,_0x43190d){const _0x37a77c=_0x2732bb;if(J(_0x59e342)!='object'||!_0x59e342)return _0x59e342;var _0x2b3bb4=_0x59e342[Symbol[_0x37a77c(0xf9)]];if(_0x2b3bb4!==void 0x0){var _0x30f8a1=_0x2b3bb4[_0x37a77c(0xbc)](_0x59e342,_0x43190d||'default');if(J(_0x30f8a1)!=_0x37a77c(0xe3))return _0x30f8a1;throw TypeError(_0x37a77c(0xab));}return(_0x43190d==='string'?String:Number)(_0x59e342);}function ue(_0x5b9ab1){const _0x4941c3=_0x2732bb;var _0x5c6551=le(_0x5b9ab1,_0x4941c3(0x12a));return J(_0x5c6551)==_0x4941c3(0x121)?_0x5c6551:_0x5c6551+'';}function Y(_0x255dce,_0x526532,_0x4e9d2e){const _0x246997=_0x2732bb;return(_0x526532=ue(_0x526532))in _0x255dce?Object[_0x246997(0xb4)](_0x255dce,_0x526532,{'value':_0x4e9d2e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x255dce[_0x526532]=_0x4e9d2e,_0x255dce;}const X=(0x0,n[_0x2732bb(0xc2)])(_0x2732bb(0xd9));var de=class{constructor(){const _0x9f0918=_0x2732bb;Y(this,_0x9f0918(0xce),[]);}['registerAdapter'](_0x2e1ba5){const _0x5e10ac=_0x2732bb;return this['_adapters']['push'](_0x2e1ba5),(0x0,n[_0x5e10ac(0xf5)])(()=>{const _0x523829=_0x5e10ac;let _0x2d6eb8=this[_0x523829(0xce)][_0x523829(0x115)](_0x2e1ba5);_0x2d6eb8>=0x0&&this[_0x523829(0xce)]['splice'](_0x2d6eb8,0x1);});}[_0x2732bb(0x108)](_0x1d0154){const _0x197553=_0x2732bb;for(let _0x31f061 of this[_0x197553(0xce)])if(_0x31f061[_0x197553(0x108)](_0x1d0154))return!0x0;return!0x1;}async[_0x2732bb(0xe2)](_0x4c60ea){const _0x153f22=_0x2732bb;for(let _0x389507 of this[_0x153f22(0xce)])if(_0x389507[_0x153f22(0xe2)]&&await _0x389507[_0x153f22(0xe2)](_0x4c60ea))return!0x0;return!0x1;}};const fe={'id':'ink.operation.start','type':n['CommandType'][_0x2732bb(0xe6)],'handler':(_0x166d21,_0xf85345)=>_0xf85345?_0x166d21['get'](X)[_0x2732bb(0x108)](_0xf85345):!0x1},Z={};function Q(_0x38a892,_0x2a5200){return function(_0x34f59f,_0x5c9c4c){_0x2a5200(_0x34f59f,_0x5c9c4c,_0x38a892);};}function pe(_0x2b8452,_0x47bc25,_0x38bba8,_0x2da57d){const _0x29d7c9=_0x2732bb;var _0x20ae9f=arguments['length'],_0x5c2fc6=_0x20ae9f<0x3?_0x47bc25:_0x2da57d===null?_0x2da57d=Object[_0x29d7c9(0xcd)](_0x47bc25,_0x38bba8):_0x2da57d,_0x1c847f;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x29d7c9(0xf4))_0x5c2fc6=Reflect[_0x29d7c9(0xda)](_0x2b8452,_0x47bc25,_0x38bba8,_0x2da57d);else{for(var _0x19661d=_0x2b8452[_0x29d7c9(0xf2)]-0x1;_0x19661d>=0x0;_0x19661d--)(_0x1c847f=_0x2b8452[_0x19661d])&&(_0x5c2fc6=(_0x20ae9f<0x3?_0x1c847f(_0x5c2fc6):_0x20ae9f>0x3?_0x1c847f(_0x47bc25,_0x38bba8,_0x5c2fc6):_0x1c847f(_0x47bc25,_0x38bba8))||_0x5c2fc6);}return _0x20ae9f>0x3&&_0x5c2fc6&&Object[_0x29d7c9(0xb4)](_0x47bc25,_0x38bba8,_0x5c2fc6),_0x5c2fc6;}let $=class extends n[_0x2732bb(0x113)]{constructor(_0x189ad9=Z,_0xfa0c94,_0x4e22b4,_0x33eeaa){const _0x58a548=_0x2732bb;super(),this[_0x58a548(0xc5)]=_0x189ad9,this['_injector']=_0xfa0c94,this[_0x58a548(0x111)]=_0x4e22b4,this[_0x58a548(0x129)]=_0x33eeaa;let {..._0x4b4b61}=(0x0,n[_0x58a548(0xc3)])({},Z,this[_0x58a548(0xc5)]);this[_0x58a548(0x129)]['setConfig']('ink.config',_0x4b4b61);}[_0x2732bb(0x120)](){const _0x301420=_0x2732bb;[[X,{'useClass':de}]][_0x301420(0xad)](_0x573790=>this[_0x301420(0xb8)][_0x301420(0x117)](_0x573790)),this['disposeWithMe'](this[_0x301420(0x111)][_0x301420(0xcb)](fe));}};Y($,_0x2732bb(0xd1),_0x2732bb(0xdc)),Y($,_0x2732bb(0xf0),se),Y($,'version',ce),Y($,_0x2732bb(0x122),n[_0x2732bb(0x10f)][_0x2732bb(0xbd)]),$=pe([(0x0,n[_0x2732bb(0x107)])(t[_0x2732bb(0xd8)]),Q(0x1,(0x0,n[_0x2732bb(0xf1)])(n['Injector'])),Q(0x2,n[_0x2732bb(0xb0)]),Q(0x3,n[_0x2732bb(0x105)])],$),exports['IInkHostAdapterService']=X,Object['defineProperty'](exports,_0x2732bb(0xb6),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildInkCustomShapePayload']=q,exports[_0x2732bb(0x114)]=re,exports[_0x2732bb(0xb3)]=E,exports[_0x2732bb(0xba)]=w,exports[_0x2732bb(0x124)]=ie,exports[_0x2732bb(0xac)]=S,exports[_0x2732bb(0xfc)]=R,exports[_0x2732bb(0x103)]=x,exports[_0x2732bb(0x126)]=C,exports[_0x2732bb(0xbe)]=p,exports[_0x2732bb(0xee)]=ae,exports[_0x2732bb(0xb7)]=T;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4fb31f=_0x1633;(function(_0x1191aa,_0x567b74){const _0x131282=_0x1633,_0x4cccc5=_0x1191aa();while(!![]){try{const _0xd48bd7=-parseInt(_0x131282(0x93))/0x1+-parseInt(_0x131282(0x8a))/0x2+-parseInt(_0x131282(0x8e))/0x3*(-parseInt(_0x131282(0x89))/0x4)+-parseInt(_0x131282(0xa2))/0x5*(-parseInt(_0x131282(0x7b))/0x6)+-parseInt(_0x131282(0x90))/0x7+parseInt(_0x131282(0x7e))/0x8+parseInt(_0x131282(0x7d))/0x9*(parseInt(_0x131282(0x80))/0xa);if(_0xd48bd7===_0x567b74)break;else _0x4cccc5['push'](_0x4cccc5['shift']());}catch(_0x203585){_0x4cccc5['push'](_0x4cccc5['shift']());}}}(_0x3758,0xa7ec3));import{BoardElementType as _0x1d6b95}from'@univerjs-pro/boards';import{FBoard as _0x24c860}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x1c1047}from'@univerjs-pro/ink';import{Tools as _0x4ab5cd,generateRandomId as _0x1e053f}from'@univerjs/core';import{FEnum as _0x5988e6}from'@univerjs/core/facade';var o=class extends _0x24c860{['insertInk'](_0x5d270e){const _0x380c30=_0x1633;let _0x5a8b4b=s(_0x5d270e);return _0x5a8b4b&&this['_addElement'](_0x5a8b4b,{'insertIndex':_0x5d270e[_0x380c30(0x98)]})?_0x5a8b4b:null;}[_0x4fb31f(0x9d)](){const _0x56f729=_0x4fb31f;return this[_0x56f729(0x85)]({'elementType':_0x1d6b95['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x56f729(0x8d)](p);}};function s(_0x2c8fa3,_0x232deb){const _0x34b70c=_0x4fb31f;var _0x5b485c,_0x4dc54d,_0x500bea;if(!l(_0x2c8fa3[_0x34b70c(0x88)])||_0x2c8fa3[_0x34b70c(0xa1)]!==void 0x0&&!l(_0x2c8fa3[_0x34b70c(0xa1)])||!u(_0x2c8fa3[_0x34b70c(0x84)]))return null;let _0x42d7cb=(_0x5b485c=_0x2c8fa3[_0x34b70c(0x83)])==null?_0x232deb==null?void 0x0:_0x232deb['parentId']:_0x5b485c,_0xf268f8=_0x4ab5cd[_0x34b70c(0x87)](_0x2c8fa3[_0x34b70c(0x88)]),_0x2bac15=_0x1c1047({'model':_0xf268f8,'style':_0x2c8fa3[_0x34b70c(0x84)],'tool':_0x2c8fa3[_0x34b70c(0x8b)],'sourceModel':_0x2c8fa3['sourceModel']?_0x4ab5cd['deepClone'](_0x2c8fa3['sourceModel']):_0xf268f8}),_0x426410=d(_0x232deb==null?void 0x0:_0x232deb['custom']);return{'id':(_0x4dc54d=(_0x500bea=_0x232deb==null?void 0x0:_0x232deb['id'])==null?_0x2c8fa3['id']:_0x500bea)==null?_0x1e053f(0x6):_0x4dc54d,'type':_0x1d6b95[_0x34b70c(0x92)],'transform':_0x2bac15['transform'],'shapeData':_0x2bac15[_0x34b70c(0x8f)],'parentId':_0x42d7cb==null?void 0x0:_0x42d7cb,'laneId':_0x2c8fa3[_0x34b70c(0x74)]===void 0x0?_0x232deb==null?void 0x0:_0x232deb[_0x34b70c(0x74)]:_0x2c8fa3['laneId'],'custom':{..._0x426410,'ink':_0x2bac15['ink']}};}function c(_0x2c57ba){const _0x507149=_0x4fb31f;return Number['isFinite'](_0x2c57ba['x'])&&Number[_0x507149(0x75)](_0x2c57ba['y']);}function l(_0xfd61d0){const _0x468cb0=_0x4fb31f;if(_0xfd61d0[_0x468cb0(0x76)]===_0x468cb0(0x78)){let _0x56a345=new Set();return _0xfd61d0['anchors']['length']>=(_0xfd61d0['closed']?0x3:0x2)&&_0xfd61d0['anchors'][_0x468cb0(0x86)](_0x46d48b=>{const _0x38b880=_0x468cb0;let _0x96546=_0x46d48b['id'][_0x38b880(0x94)]()[_0x38b880(0x97)]>0x0&&!_0x56a345['has'](_0x46d48b['id'])&&c(_0x46d48b)&&(!_0x46d48b['in']||c(_0x46d48b['in']))&&(!_0x46d48b[_0x38b880(0x95)]||c(_0x46d48b[_0x38b880(0x95)]));return _0x56a345['add'](_0x46d48b['id']),_0x96546;});}return _0xfd61d0[_0x468cb0(0x96)][_0x468cb0(0x97)]>=0x2&&_0xfd61d0[_0x468cb0(0x96)]['every'](_0x2ad9d9=>c(_0x2ad9d9)&&Number[_0x468cb0(0x75)](_0x2ad9d9['t'])&&(_0x2ad9d9[_0x468cb0(0x91)]===void 0x0||Number['isFinite'](_0x2ad9d9[_0x468cb0(0x91)])))&&Number[_0x468cb0(0x75)](_0xfd61d0[_0x468cb0(0x99)])&&_0xfd61d0[_0x468cb0(0x99)]>0x0&&Number[_0x468cb0(0x75)](_0xfd61d0['opacity'])&&_0xfd61d0[_0x468cb0(0x82)]>=0x0&&_0xfd61d0[_0x468cb0(0x82)]<=0x1;}function u(_0x392c34){const _0x46625b=_0x4fb31f;return _0x392c34===void 0x0||(_0x392c34[_0x46625b(0x99)]===void 0x0||Number['isFinite'](_0x392c34[_0x46625b(0x99)])&&_0x392c34[_0x46625b(0x99)]>0x0)&&(_0x392c34[_0x46625b(0x82)]===void 0x0||Number[_0x46625b(0x75)](_0x392c34[_0x46625b(0x82)])&&_0x392c34[_0x46625b(0x82)]>=0x0&&_0x392c34[_0x46625b(0x82)]<=0x1);}function _0x3758(){const _0x515457=['laneId','isFinite','kind','custom','pen','anchor','BoardInkHandleKind','1379640emdEck','version','2920653sHrNqh','3543184txqcMc','smooth','40EdXIWA','brush','opacity','parentId','style','findElements','every','deepClone','model','2290876OHEjNs','1688078jEoZAq','tool','BoardInkPointType','filter','3BimyEA','shapeData','7163660fzfhQU','pressure','Shape','908155sbqRRh','trim','out','points','length','insertIndex','width','highlighter','symmetric','corner','getInks','type','object','extend','sourceModel','25klYnms'];_0x3758=function(){return _0x515457;};return _0x3758();}function _0x1633(_0xf6bbdf,_0x24be70){_0xf6bbdf=_0xf6bbdf-0x74;const _0x3758ac=_0x3758();let _0x163322=_0x3758ac[_0xf6bbdf];return _0x163322;}function d(_0x205d6d){const _0x215838=_0x4fb31f;return _0x205d6d&&typeof _0x205d6d==_0x215838(0x9f)&&!Array['isArray'](_0x205d6d)?_0x205d6d:{};}function f(_0x519392){const _0x4b3491=_0x4fb31f;let _0x52a7bf=d(_0x519392[_0x4b3491(0x77)])['ink'];if(!_0x52a7bf||typeof _0x52a7bf!=_0x4b3491(0x9f)||Array['isArray'](_0x52a7bf))return null;let _0x440921=_0x52a7bf;return _0x440921[_0x4b3491(0x7c)]===0x1&&_0x440921[_0x4b3491(0xa1)]&&typeof _0x440921[_0x4b3491(0xa1)]==_0x4b3491(0x9f)?_0x440921:null;}function p(_0x4d560e){const _0x242859=_0x4fb31f;return _0x4d560e[_0x242859(0x9e)]===_0x1d6b95['Shape']&&!!f(_0x4d560e);}_0x24c860[_0x4fb31f(0xa0)](o);const m={'Pen':_0x4fb31f(0x78),'Brush':_0x4fb31f(0x81),'Highlighter':_0x4fb31f(0x9a)},h={'Corner':_0x4fb31f(0x9c),'Smooth':_0x4fb31f(0x7f),'Symmetric':_0x4fb31f(0x9b),'Free':'free'},g={'Anchor':_0x4fb31f(0x79),'In':'in','Out':_0x4fb31f(0x95)};var _=class extends _0x5988e6{get['BoardInkTool'](){return m;}get[_0x4fb31f(0x8c)](){return h;}get[_0x4fb31f(0x7a)](){return g;}};_0x5988e6['extend'](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xd9ea97=_0x5d75;(function(_0x583a21,_0x3dd7e7){const _0x56c90b=_0x5d75,_0x37ba04=_0x583a21();while(!![]){try{const _0x47bcfa=-parseInt(_0x56c90b(0x173))/0x1+-parseInt(_0x56c90b(0x140))/0x2+parseInt(_0x56c90b(0x14f))/0x3+-parseInt(_0x56c90b(0x13d))/0x4+parseInt(_0x56c90b(0x16b))/0x5+-parseInt(_0x56c90b(0x187))/0x6*(-parseInt(_0x56c90b(0x15e))/0x7)+parseInt(_0x56c90b(0x18e))/0x8;if(_0x47bcfa===_0x3dd7e7)break;else _0x37ba04['push'](_0x37ba04['shift']());}catch(_0xaae5ca){_0x37ba04['push'](_0x37ba04['shift']());}}}(_0x1f0e,0xd2e2d));import{ShapeFillEnum as _0x157d04,ShapeLineCapEnum as _0x363052,ShapeLineJoinEnum as _0x56486c,ShapeLineTypeEnum as _0x41a350,ShapeTypeEnum as _0x2fc13d}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x42d00b}from'@univerjs-pro/license';import{CommandType as _0x3450b2,DependentOn as _0xbc0f6e,ICommandService as _0x16de20,IConfigService as _0x3c718d,Inject as _0x4e3a63,Injector as _0x5500c4,Plugin as _0x205aab,UniverInstanceType as _0x42f687,createIdentifier as _0x1ab48e,merge as _0x1239fb,toDisposable as _0x29412f}from'@univerjs/core';const g=0.0001;function _(_0x1c4784){return{'x':_0x1c4784['x'],'y':_0x1c4784['y']};}function v(_0x2a107c){const _0x2cd110=_0x5d75;return{..._0x2a107c,'in':_0x2a107c['in']?_(_0x2a107c['in']):void 0x0,'out':_0x2a107c['out']?_(_0x2a107c[_0x2cd110(0x139)]):void 0x0};}function y(_0x5c7ca3){const _0x3ce2bc=_0x5d75;return{'kind':_0x3ce2bc(0x195),'closed':_0x5c7ca3[_0x3ce2bc(0x177)],'anchors':_0x5c7ca3[_0x3ce2bc(0x143)][_0x3ce2bc(0x13c)](v)};}function b(_0x421435,_0x3ecbc4,_0x13d740){return{'x':_0x421435['x']+(_0x3ecbc4['x']-_0x421435['x'])*_0x13d740,'y':_0x421435['y']+(_0x3ecbc4['y']-_0x421435['y'])*_0x13d740};}function x(_0x3ed006,_0x2248cc){const _0x303571=_0x5d75;return Math[_0x303571(0x179)](_0x3ed006['x']-_0x2248cc['x'],_0x3ed006['y']-_0x2248cc['y']);}function S(_0x43b2af){let _0x4ce1e7=Math['hypot'](_0x43b2af['x'],_0x43b2af['y']);return _0x4ce1e7<g?{'x':0x1,'y':0x0}:{'x':_0x43b2af['x']/_0x4ce1e7,'y':_0x43b2af['y']/_0x4ce1e7};}function C(_0x1b10ba,_0x4d4b62,_0x57b104=x(_0x1b10ba,_0x4d4b62)){let _0x29f3c0=S({'x':_0x1b10ba['x']-_0x4d4b62['x'],'y':_0x1b10ba['y']-_0x4d4b62['y']});return{'x':_0x1b10ba['x']+_0x29f3c0['x']*_0x57b104,'y':_0x1b10ba['y']+_0x29f3c0['y']*_0x57b104};}function w(_0x4fa05c,_0x4d9b3c){const _0x168da6=_0x5d75;let {anchors:_0x16ed3e}=_0x4fa05c;return _0x16ed3e[_0x168da6(0x15b)]<0x2||_0x4d9b3c<0x0?null:_0x4d9b3c<_0x16ed3e['length']-0x1?{'startIndex':_0x4d9b3c,'endIndex':_0x4d9b3c+0x1,'start':_0x16ed3e[_0x4d9b3c],'end':_0x16ed3e[_0x4d9b3c+0x1]}:_0x4fa05c[_0x168da6(0x177)]&&_0x4d9b3c===_0x16ed3e['length']-0x1?{'startIndex':_0x16ed3e[_0x168da6(0x15b)]-0x1,'endIndex':0x0,'start':_0x16ed3e[_0x16ed3e[_0x168da6(0x15b)]-0x1],'end':_0x16ed3e[0x0]}:null;}function T(_0x252e88,_0x516bc5){const _0x1124c8=_0x5d75;var _0xe8f2fe,_0x23763c;let _0x876388=w(_0x252e88,_0x516bc5);return _0x876388?[_0x876388['start'],(_0xe8f2fe=_0x876388[_0x1124c8(0x181)][_0x1124c8(0x139)])==null?_0x876388[_0x1124c8(0x181)]:_0xe8f2fe,(_0x23763c=_0x876388[_0x1124c8(0x169)]['in'])==null?_0x876388[_0x1124c8(0x169)]:_0x23763c,_0x876388[_0x1124c8(0x169)]]:null;}function te(_0x137d6a,_0x28c135){var _0x4001aa;return _0x28c135==='anchor'?_0x137d6a:(_0x4001aa=_0x137d6a[_0x28c135])==null?null:_0x4001aa;}function E(_0x1c5905,_0x107d8e,_0x1ccfbc){const _0x112356=_0x5d75;return _0x1ccfbc===_0x112356(0x163)||_0x1c5905[_0x112356(0x177)]?!0x0:_0x1ccfbc==='in'?_0x107d8e>0x0:_0x107d8e<_0x1c5905['anchors'][_0x112356(0x15b)]-0x1;}function D(_0x30166d,_0x59ad48){let [_0xff4e02,_0x486f37,_0x25b23f,_0x1c2b6f]=_0x30166d,_0x5a6c14=b(_0xff4e02,_0x486f37,_0x59ad48),_0x2e6c74=b(_0x486f37,_0x25b23f,_0x59ad48),_0x165d33=b(_0x25b23f,_0x1c2b6f,_0x59ad48);return b(b(_0x5a6c14,_0x2e6c74,_0x59ad48),b(_0x2e6c74,_0x165d33,_0x59ad48),_0x59ad48);}function ne(_0x1b6283,_0x135d30){let [_0x561704,_0x90133e,_0x41c9d4,_0x428715]=_0x1b6283,_0x5092ca=b(_0x561704,_0x90133e,_0x135d30),_0x37b48c=b(_0x90133e,_0x41c9d4,_0x135d30),_0x2b4dc5=b(_0x41c9d4,_0x428715,_0x135d30),_0x5a3e1e=b(_0x5092ca,_0x37b48c,_0x135d30),_0x3b1b03=b(_0x37b48c,_0x2b4dc5,_0x135d30),_0x478d72=b(_0x5a3e1e,_0x3b1b03,_0x135d30);return{'left':[_0x561704,_0x5092ca,_0x5a3e1e,_0x478d72],'right':[_0x478d72,_0x3b1b03,_0x2b4dc5,_0x428715]};}function O(_0x250740,_0xc0a51b,_0x345ecb){const _0x4aff10=_0x5d75;let _0x580f77=_0x345ecb['x']-_0xc0a51b['x'],_0x2d4d1b=_0x345ecb['y']-_0xc0a51b['y'],_0x2f93e5=_0x580f77*_0x580f77+_0x2d4d1b*_0x2d4d1b,_0x5a4687=_0x2f93e5<=g?0x0:Math[_0x4aff10(0x14a)](0x0,Math['min'](0x1,((_0x250740['x']-_0xc0a51b['x'])*_0x580f77+(_0x250740['y']-_0xc0a51b['y'])*_0x2d4d1b)/_0x2f93e5)),_0x5045d2={'x':_0xc0a51b['x']+_0x580f77*_0x5a4687,'y':_0xc0a51b['y']+_0x2d4d1b*_0x5a4687};return{'point':_0x5045d2,'ratio':_0x5a4687,'distance':x(_0x250740,_0x5045d2)};}function re(_0x316cf3,_0x2c511a,_0x16ea29){return O(_0x316cf3,_0x2c511a,_0x16ea29)['distance']**0x2;}function k(_0x41db0d,_0x5c6cd1){const _0x5cb9ec=_0x5d75;if(_0x41db0d[_0x5cb9ec(0x15b)]<=0x2)return _0x41db0d[_0x5cb9ec(0x13c)](_);let _0x527150=0x0,_0x1f759b=0x0,_0xa900a5=_0x41db0d[0x0],_0x5da654=_0x41db0d[_0x41db0d[_0x5cb9ec(0x15b)]-0x1],_0x49d039=_0x5c6cd1*_0x5c6cd1;for(let _0x4ee1c2=0x1;_0x4ee1c2<_0x41db0d[_0x5cb9ec(0x15b)]-0x1;_0x4ee1c2++){let _0x29b206=re(_0x41db0d[_0x4ee1c2],_0xa900a5,_0x5da654);_0x29b206>_0x527150&&(_0x527150=_0x29b206,_0x1f759b=_0x4ee1c2);}if(_0x527150<=_0x49d039)return[_(_0xa900a5),_(_0x5da654)];let _0x29d723=k(_0x41db0d[_0x5cb9ec(0x168)](0x0,_0x1f759b+0x1),_0x5c6cd1),_0x287549=k(_0x41db0d[_0x5cb9ec(0x168)](_0x1f759b),_0x5c6cd1);return[..._0x29d723['slice'](0x0,-0x1),..._0x287549];}function ie(_0x3ebe1e,_0x168b14){var _0x1fd1fb;let _0x55f4a4=_0x3ebe1e[_0x168b14],_0x11235c=_0x3ebe1e[_0x168b14+0x1],_0x177792=(_0x1fd1fb=_0x3ebe1e[_0x168b14-0x1])==null?_0x55f4a4:_0x1fd1fb;return{'x':_0x55f4a4['x']+(_0x11235c['x']-_0x177792['x'])/0x6,'y':_0x55f4a4['y']+(_0x11235c['y']-_0x177792['y'])/0x6};}function A(_0x40ed69,_0x105113){var _0x36c000;let _0x1bee18=_0x40ed69[_0x105113],_0x13e58e=_0x40ed69[_0x105113-0x1],_0x5d1cf4=(_0x36c000=_0x40ed69[_0x105113+0x1])==null?_0x1bee18:_0x36c000;return{'x':_0x1bee18['x']-(_0x5d1cf4['x']-_0x13e58e['x'])/0x6,'y':_0x1bee18['y']-(_0x5d1cf4['y']-_0x13e58e['y'])/0x6};}function j(_0x5a8e8d,_0x34b014){const _0x325343=_0x5d75;var _0x54c804,_0x319837;let _0x173d6c=_0x5a8e8d[_0x325343(0x143)][_0x34b014],_0x1ce829=(_0x54c804=_0x5a8e8d['anchors'][_0x34b014-0x1])==null?_0x5a8e8d[_0x325343(0x177)]?_0x5a8e8d[_0x325343(0x143)][_0x5a8e8d['anchors'][_0x325343(0x15b)]-0x1]:null:_0x54c804,_0x21c725=(_0x319837=_0x5a8e8d['anchors'][_0x34b014+0x1])==null?_0x5a8e8d[_0x325343(0x177)]?_0x5a8e8d[_0x325343(0x143)][0x0]:null:_0x319837,_0x3b9465=_0x1ce829&&_0x21c725?S({'x':_0x21c725['x']-_0x1ce829['x'],'y':_0x21c725['y']-_0x1ce829['y']}):_0x21c725?S({'x':_0x21c725['x']-_0x173d6c['x'],'y':_0x21c725['y']-_0x173d6c['y']}):_0x1ce829?S({'x':_0x173d6c['x']-_0x1ce829['x'],'y':_0x173d6c['y']-_0x1ce829['y']}):{'x':0x1,'y':0x0},_0x1bb118=_0x1ce829&&_0x21c725?Math[_0x325343(0x14a)](0x32,x(_0x1ce829,_0x21c725)/0x4):0x32;return{'in':{'x':_0x173d6c['x']-_0x3b9465['x']*_0x1bb118,'y':_0x173d6c['y']-_0x3b9465['y']*_0x1bb118},'out':{'x':_0x173d6c['x']+_0x3b9465['x']*_0x1bb118,'y':_0x173d6c['y']+_0x3b9465['y']*_0x1bb118}};}function M(_0x331f34,_0x225f45){const _0x1635fa=_0x5d75;let _0x5c5948=_0x331f34[_0x225f45],_0x34a908=_0x225f45==='in'?_0x1635fa(0x139):'in',_0x1d5124=_0x331f34[_0x34a908];if(_0x5c5948){if(_0x331f34['pointType']==='symmetric'){_0x331f34[_0x34a908]=C(_0x331f34,_0x5c5948);return;}_0x331f34[_0x1635fa(0x155)]===_0x1635fa(0x146)&&(_0x331f34[_0x34a908]=C(_0x331f34,_0x5c5948,_0x1d5124?x(_0x331f34,_0x1d5124):x(_0x331f34,_0x5c5948)));}}function ae(_0x32764f,_0x140103){const _0x501204=_0x5d75;let _0x4d5d43=y(_0x32764f);return!_0x140103||_0x4d5d43['closed']||_0x4d5d43[_0x501204(0x143)][_0x501204(0x15b)]===0x0||_0x4d5d43[_0x501204(0x143)][_0x501204(0x18d)]({'id':_0x501204(0x144),'x':_0x140103['x'],'y':_0x140103['y'],'pointType':_0x501204(0x188)}),_0x4d5d43;}function oe(_0x95db77,_0x335c81={}){const _0x3ff665=_0x5d75;var _0x455e4b,_0x4a9cd2;let _0x42e572=Math[_0x3ff665(0x14a)](0x0,(_0x455e4b=_0x335c81[_0x3ff665(0x178)])==null?Math['max'](0x4,_0x95db77['width']*0.35):_0x455e4b),_0x5c818d=(_0x4a9cd2=_0x335c81[_0x3ff665(0x194)])==null?_0x298564=>_0x3ff665(0x152)+_0x298564:_0x4a9cd2,_0x519604=k(_0x95db77['points'],_0x42e572),_0x4b6ddc=_0x519604[_0x3ff665(0x13c)]((_0x40e9b8,_0x42a616)=>({'id':_0x5c818d(_0x42a616),'x':_0x40e9b8['x'],'y':_0x40e9b8['y'],'pointType':_0x3ff665(0x13b)}));for(let _0x265a12=0x0;_0x265a12<_0x4b6ddc[_0x3ff665(0x15b)]-0x1;_0x265a12++)_0x4b6ddc[_0x265a12][_0x3ff665(0x139)]=ie(_0x519604,_0x265a12),_0x4b6ddc[_0x265a12+0x1]['in']=A(_0x519604,_0x265a12+0x1);return{'kind':_0x3ff665(0x195),'closed':!0x1,'anchors':_0x4b6ddc};}function se(_0x208dd5,_0x5e25e0,_0x2962f8){const _0x5cda09=_0x5d75;let _0x38bab0=null,_0x16fa07=[_0x5cda09(0x163),'in',_0x5cda09(0x139)];return _0x208dd5[_0x5cda09(0x143)]['forEach']((_0x8f85da,_0x3ef198)=>{const _0x1731ad=_0x5cda09;_0x16fa07[_0x1731ad(0x193)](_0x405653=>{const _0x4c7e97=_0x1731ad;if(!E(_0x208dd5,_0x3ef198,_0x405653))return;let _0xb85dac=te(_0x8f85da,_0x405653);if(!_0xb85dac)return;let _0x3d87c9=x(_0x5e25e0,_0xb85dac);_0x3d87c9>_0x2962f8||_0x38bab0&&_0x3d87c9>=_0x38bab0[_0x4c7e97(0x17d)]||(_0x38bab0={'handle':{'kind':_0x405653,'anchorId':_0x8f85da['id']},'point':_(_0xb85dac),'distance':_0x3d87c9});});}),_0x38bab0;}function ce(_0x4655b2,_0x265026,_0x1c40a5){const _0x41aee7=_0x5d75;let _0x4973e7=null,_0x2466ba=_0x4655b2['closed']?_0x4655b2[_0x41aee7(0x143)][_0x41aee7(0x15b)]:Math[_0x41aee7(0x14a)](0x0,_0x4655b2[_0x41aee7(0x143)][_0x41aee7(0x15b)]-0x1);for(let _0x31f18d=0x0;_0x31f18d<_0x2466ba;_0x31f18d++){let _0x51465b=T(_0x4655b2,_0x31f18d);if(!_0x51465b)continue;let _0x3e8297=D(_0x51465b,0x0);for(let _0x16aaad=0x1;_0x16aaad<=0x20;_0x16aaad++){let _0x43e783=D(_0x51465b,_0x16aaad/0x20),_0x117a70=O(_0x265026,_0x3e8297,_0x43e783),_0x552101=(_0x16aaad-0x1+_0x117a70[_0x41aee7(0x16e)])/0x20;(!_0x4973e7||_0x117a70['distance']<_0x4973e7[_0x41aee7(0x17d)])&&(_0x4973e7={'segmentIndex':_0x31f18d,'t':_0x552101,'point':_0x117a70['point'],'distance':_0x117a70['distance']}),_0x3e8297=_0x43e783;}}return _0x4973e7&&_0x4973e7[_0x41aee7(0x17d)]<=_0x1c40a5?_0x4973e7:null;}function le(_0x1b6e6c,_0x1718f5,_0x31090c){const _0x3d0d01=_0x5d75;let _0xa81a9b=y(_0x1b6e6c),_0x1dce41=w(_0xa81a9b,_0x1718f5[_0x3d0d01(0x174)]),_0x2870c8=T(_0xa81a9b,_0x1718f5[_0x3d0d01(0x174)]);if(!_0x1dce41||!_0x2870c8)return _0xa81a9b;let _0x59758a=ne(_0x2870c8,Math['max'](0x0,Math[_0x3d0d01(0x18b)](0x1,_0x1718f5['t']))),_0x337435={'id':_0x31090c(),'x':_0x59758a['left'][0x3]['x'],'y':_0x59758a[_0x3d0d01(0x175)][0x3]['y'],'in':_(_0x59758a[_0x3d0d01(0x175)][0x2]),'out':_(_0x59758a[_0x3d0d01(0x182)][0x1]),'pointType':_0x3d0d01(0x13b)};return _0xa81a9b['anchors'][_0x1dce41[_0x3d0d01(0x15a)]][_0x3d0d01(0x139)]=_(_0x59758a[_0x3d0d01(0x175)][0x1]),_0xa81a9b[_0x3d0d01(0x143)][_0x1dce41[_0x3d0d01(0x189)]]['in']=_(_0x59758a[_0x3d0d01(0x182)][0x2]),_0xa81a9b['anchors'][_0x3d0d01(0x16c)](_0x1dce41[_0x3d0d01(0x15a)]+0x1,0x0,_0x337435),_0xa81a9b;}function ue(_0x1d9e10,_0x3e5793){const _0x287dcd=_0x5d75;let _0x4e4cf8=y(_0x1d9e10);return _0x4e4cf8['anchors']=_0x4e4cf8[_0x287dcd(0x143)][_0x287dcd(0x164)](_0x457dfe=>_0x457dfe['id']!==_0x3e5793),_0x4e4cf8['closed']&&_0x4e4cf8[_0x287dcd(0x143)]['length']<0x3&&(_0x4e4cf8['closed']=!0x1),_0x4e4cf8;}function N(_0x3d3393,_0x3a4f81,_0x181438){const _0x2db96c=_0x5d75;let _0x2fe297=y(_0x3d3393),_0x1999b5=_0x2fe297[_0x2db96c(0x143)][_0x2db96c(0x150)](_0x3a3f41=>_0x3a3f41['id']===_0x3a4f81),_0x2055e7=_0x2fe297['anchors'][_0x1999b5];if(!_0x2055e7)return _0x2fe297;if(_0x2055e7['pointType']=_0x181438,_0x181438===_0x2db96c(0x188))return delete _0x2055e7['in'],delete _0x2055e7[_0x2db96c(0x139)],_0x2fe297;let _0x3c9431=j(_0x2fe297,_0x1999b5);if(_0x2055e7['in']=_0x2055e7['in']?_(_0x2055e7['in']):_0x3c9431['in'],_0x2055e7[_0x2db96c(0x139)]=_0x2055e7['out']?_(_0x2055e7[_0x2db96c(0x139)]):_0x3c9431[_0x2db96c(0x139)],_0x181438===_0x2db96c(0x13f)){let _0x16372e=Math['max'](x(_0x2055e7,_0x2055e7['in']),x(_0x2055e7,_0x2055e7['out']),0x32),_0xf3593c=S({'x':_0x2055e7[_0x2db96c(0x139)]['x']-_0x2055e7['x'],'y':_0x2055e7['out']['y']-_0x2055e7['y']});_0x2055e7[_0x2db96c(0x139)]={'x':_0x2055e7['x']+_0xf3593c['x']*_0x16372e,'y':_0x2055e7['y']+_0xf3593c['y']*_0x16372e},_0x2055e7['in']={'x':_0x2055e7['x']-_0xf3593c['x']*_0x16372e,'y':_0x2055e7['y']-_0xf3593c['y']*_0x16372e};}else _0x181438===_0x2db96c(0x146)&&M(_0x2055e7,_0x2db96c(0x139));return _0x2fe297;}function P(_0x8faea0,_0x4d05f0){const _0x587d9c=_0x5d75;var _0x474a43;let _0x68e57f=_0x8faea0[_0x587d9c(0x143)][_0x587d9c(0x154)](_0x33bfe9=>_0x33bfe9['id']===_0x4d05f0),_0x19db64=(_0x474a43=_0x68e57f==null?void 0x0:_0x68e57f[_0x587d9c(0x155)])==null?_0x587d9c(0x188):_0x474a43;return N(_0x8faea0,_0x4d05f0,_0x19db64===_0x587d9c(0x188)?_0x587d9c(0x146):_0x19db64===_0x587d9c(0x146)?'symmetric':_0x19db64===_0x587d9c(0x13f)?_0x587d9c(0x13b):_0x587d9c(0x188));}function F(_0x3530c9,_0x3e48d2,_0x2043a9){const _0x4a851f=_0x5d75;let _0x232366=y(_0x3530c9),_0x5e5d14=_0x232366['anchors'][_0x4a851f(0x154)](_0x34c602=>_0x34c602['id']===_0x3e48d2['anchorId']);if(!_0x5e5d14)return _0x232366;if(_0x3e48d2[_0x4a851f(0x172)]===_0x4a851f(0x163)){let _0x831642={'x':_0x2043a9['x']-_0x5e5d14['x'],'y':_0x2043a9['y']-_0x5e5d14['y']};return _0x5e5d14['x']=_0x2043a9['x'],_0x5e5d14['y']=_0x2043a9['y'],_0x5e5d14['in']&&(_0x5e5d14['in']={'x':_0x5e5d14['in']['x']+_0x831642['x'],'y':_0x5e5d14['in']['y']+_0x831642['y']}),_0x5e5d14[_0x4a851f(0x139)]&&(_0x5e5d14[_0x4a851f(0x139)]={'x':_0x5e5d14[_0x4a851f(0x139)]['x']+_0x831642['x'],'y':_0x5e5d14[_0x4a851f(0x139)]['y']+_0x831642['y']}),_0x232366;}return _0x5e5d14[_0x3e48d2['kind']]=_(_0x2043a9),_0x5e5d14[_0x4a851f(0x155)]==='corner'&&(_0x5e5d14['pointType']=_0x4a851f(0x13b)),M(_0x5e5d14,_0x3e48d2[_0x4a851f(0x172)]),_0x232366;}const I=1e-9;function L(_0x2563c6){const _0x12a095=_0x5d75;let _0x407f4f=Math[_0x12a095(0x16d)](_0x2563c6*0x2710)/0x2710;return Object['is'](_0x407f4f,-0x0)?'0':String(_0x407f4f);}function R(_0x6b4dcc){return L(_0x6b4dcc['x'])+'\x20'+L(_0x6b4dcc['y']);}function z(_0x1e0f2c,_0x2de331){return{'x':_0x1e0f2c['x']-_0x2de331['x'],'y':_0x1e0f2c['y']-_0x2de331['y']};}function B(_0xacfda9,_0x2e249b,_0x98a8a6,_0x3ace9c,_0x2d3f80){let _0x157773=0x1-_0x2d3f80;return{'x':_0x157773*_0x157773*_0x157773*_0xacfda9['x']+0x3*_0x157773*_0x157773*_0x2d3f80*_0x2e249b['x']+0x3*_0x157773*_0x2d3f80*_0x2d3f80*_0x98a8a6['x']+_0x2d3f80*_0x2d3f80*_0x2d3f80*_0x3ace9c['x'],'y':_0x157773*_0x157773*_0x157773*_0xacfda9['y']+0x3*_0x157773*_0x157773*_0x2d3f80*_0x2e249b['y']+0x3*_0x157773*_0x2d3f80*_0x2d3f80*_0x98a8a6['y']+_0x2d3f80*_0x2d3f80*_0x2d3f80*_0x3ace9c['y']};}function V(_0x4f5ce8,_0xba8f6f,_0x5cc759,_0x43106a){const _0x1c5686=_0x5d75;let _0x2c581c=-_0x4f5ce8+0x3*_0xba8f6f-0x3*_0x5cc759+_0x43106a,_0xa4545c=0x3*_0x4f5ce8-0x6*_0xba8f6f+0x3*_0x5cc759,_0x2d2f6d=-0x3*_0x4f5ce8+0x3*_0xba8f6f,_0x2df6c3=[];if(Math[_0x1c5686(0x171)](_0x2c581c)<I){if(Math[_0x1c5686(0x171)](_0xa4545c)<I)return _0x2df6c3;let _0x5d7fd2=-_0x2d2f6d/(0x2*_0xa4545c);return _0x5d7fd2>0x0&&_0x5d7fd2<0x1&&_0x2df6c3[_0x1c5686(0x18d)](_0x5d7fd2),_0x2df6c3;}let _0x2173b7=_0xa4545c*_0xa4545c-0x3*_0x2c581c*_0x2d2f6d;if(_0x2173b7<0x0)return _0x2df6c3;let _0x16cc2e=Math[_0x1c5686(0x186)](Math[_0x1c5686(0x14a)](0x0,_0x2173b7)),_0x3f270f=(-_0xa4545c+_0x16cc2e)/(0x3*_0x2c581c),_0x3c4d7c=(-_0xa4545c-_0x16cc2e)/(0x3*_0x2c581c);return _0x3f270f>0x0&&_0x3f270f<0x1&&_0x2df6c3['push'](_0x3f270f),_0x3c4d7c>0x0&&_0x3c4d7c<0x1&&Math[_0x1c5686(0x171)](_0x3c4d7c-_0x3f270f)>I&&_0x2df6c3['push'](_0x3c4d7c),_0x2df6c3;}function H(_0x363c5d,_0x468aa2,_0x37313d,_0x2b50a2,_0xc68336){const _0x4618cf=_0x5d75;_0x363c5d[_0x4618cf(0x18d)](_0x468aa2,_0xc68336),new Set([...V(_0x468aa2['x'],_0x37313d['x'],_0x2b50a2['x'],_0xc68336['x']),...V(_0x468aa2['y'],_0x37313d['y'],_0x2b50a2['y'],_0xc68336['y'])])[_0x4618cf(0x193)](_0x3f830d=>{const _0x12bb73=_0x4618cf;_0x363c5d[_0x12bb73(0x18d)](B(_0x468aa2,_0x37313d,_0x2b50a2,_0xc68336,_0x3f830d));});}function U(_0x442e04){const _0xbe0606=_0x5d75;let _0x350ec2=_0x442e04[_0xbe0606(0x143)];if(_0x350ec2[_0xbe0606(0x15b)]<=0x1)return _0x350ec2;let _0x2aed2d=[];for(let _0x396f42=0x1;_0x396f42<_0x350ec2[_0xbe0606(0x15b)];_0x396f42++){var _0x5e79a9,_0x2f4f9b;let _0x5ebdf1=_0x350ec2[_0x396f42-0x1],_0xe9b299=_0x350ec2[_0x396f42];H(_0x2aed2d,_0x5ebdf1,(_0x5e79a9=_0x5ebdf1['out'])==null?_0x5ebdf1:_0x5e79a9,(_0x2f4f9b=_0xe9b299['in'])==null?_0xe9b299:_0x2f4f9b,_0xe9b299);}if(_0x442e04[_0xbe0606(0x177)]&&_0x350ec2[_0xbe0606(0x15b)]>0x1){var _0x3a2839,_0x32de18;let _0x3b4a69=_0x350ec2[_0x350ec2[_0xbe0606(0x15b)]-0x1],_0x2d8f81=_0x350ec2[0x0];H(_0x2aed2d,_0x3b4a69,(_0x3a2839=_0x3b4a69[_0xbe0606(0x139)])==null?_0x3b4a69:_0x3a2839,(_0x32de18=_0x2d8f81['in'])==null?_0x2d8f81:_0x32de18,_0x2d8f81);}return _0x2aed2d;}function de(_0x4a97cb){const _0x2b4158=_0x5d75;let _0x4e941c=_0x4a97cb['points'];if(_0x4e941c[_0x2b4158(0x15b)]<=0x1)return _0x4e941c;let _0x57784e=[];for(let _0x576090=0x0;_0x576090<_0x4e941c[_0x2b4158(0x15b)]-0x1;_0x576090++){var _0xf30f9c,_0x4b5c5e;let _0x275902=_0x4e941c[_0x576090],_0x40e952=_0x4e941c[_0x576090+0x1],_0x248644=(_0xf30f9c=_0x4e941c[_0x576090-0x1])==null?_0x275902:_0xf30f9c,_0x434f63=(_0x4b5c5e=_0x4e941c[_0x576090+0x2])==null?_0x40e952:_0x4b5c5e;H(_0x57784e,_0x275902,{'x':_0x275902['x']+(_0x40e952['x']-_0x248644['x'])/0x6,'y':_0x275902['y']+(_0x40e952['y']-_0x248644['y'])/0x6},{'x':_0x40e952['x']-(_0x434f63['x']-_0x275902['x'])/0x6,'y':_0x40e952['y']-(_0x434f63['y']-_0x275902['y'])/0x6},_0x40e952);}return _0x57784e;}function fe(_0x9511fb){const _0x4ae3e7=_0x5d75;return _0x9511fb[_0x4ae3e7(0x172)]===_0x4ae3e7(0x195)?U(_0x9511fb):de(_0x9511fb);}function _0x1f0e(){const _0x3ccca4=['out','height','free','map','5280012gcHgel','width','symmetric','1307234iubbVe','string','Rect','anchors','__ink-preview-anchor__','top','smooth','OPERATION','none','_configService','max','onStarting','ink.host-adapter.service','add','_config','2383332VilSed','findIndex','_injector','ink-centerline-','ink.config','find','pointType','createCustomShape','default','color','fillColor','startIndex','length','pluginName','function','6405xMnsxe','disposeWithMe','1.0.0-alpha.7','version','norm','anchor','filter','toPrimitive','SolidLine','join','slice','end','beginInkMode','7111505pjiuRz','splice','round','ratio','points','getOwnPropertyDescriptor','abs','kind','315613ByEvnX','segmentIndex','left','call','closed','tolerance','hypot','registerAdapter','NoFill','opacity','distance','prototype','setConfig','type','start','right','indexOf','UNIVER_UNKNOWN','decorate','sqrt','4890NshZEP','corner','endIndex','get','min','object','push','1524416ZDxBmg','constructor','_adapters','#f54a45','symbol','forEach','createId','pen','packageName','defineProperty','tool','_commandService'];_0x1f0e=function(){return _0x3ccca4;};return _0x1f0e();}function W(_0x4abd06){let _0x31810a=Math['round'](_0x4abd06*0x2710)/0x2710;return Object['is'](_0x31810a,-0x0)?0x0:_0x31810a;}function G(_0x3aefeb){const _0x6e0444=_0x5d75;let _0xcf3dd2=fe(_0x3aefeb);if(_0xcf3dd2[_0x6e0444(0x15b)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x54267d=Math[_0x6e0444(0x18b)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x45fa62=>_0x45fa62['x'])),_0x4166b5=Math[_0x6e0444(0x18b)](..._0xcf3dd2['map'](_0x33a011=>_0x33a011['y'])),_0x233859=Math[_0x6e0444(0x14a)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x29c37e=>_0x29c37e['x'])),_0x132a2a=Math[_0x6e0444(0x14a)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x4e5cbd=>_0x4e5cbd['y']));return{'left':W(_0x54267d),'top':W(_0x4166b5),'width':W(Math['max'](0x1,_0x233859-_0x54267d)),'height':W(Math['max'](0x1,_0x132a2a-_0x4166b5))};}function pe(_0x334233,_0x3d41e9){const _0x3dfa26=_0x5d75;let _0x2648ae=_0x334233[_0x3dfa26(0x143)];if(_0x2648ae[_0x3dfa26(0x15b)]===0x0)return'';let _0x598b18=['M\x20'+R(z(_0x2648ae[0x0],_0x3d41e9))];for(let _0x4bce92=0x1;_0x4bce92<_0x2648ae[_0x3dfa26(0x15b)];_0x4bce92++){var _0x56bf23,_0x2d1a27;let _0x3b9355=_0x2648ae[_0x4bce92-0x1],_0x5b049c=_0x2648ae[_0x4bce92],_0x1f109d=(_0x56bf23=_0x3b9355[_0x3dfa26(0x139)])==null?_0x3b9355:_0x56bf23,_0x40e6d3=(_0x2d1a27=_0x5b049c['in'])==null?_0x5b049c:_0x2d1a27;_0x598b18['push']('C\x20'+R(z(_0x1f109d,_0x3d41e9))+'\x20'+R(z(_0x40e6d3,_0x3d41e9))+'\x20'+R(z(_0x5b049c,_0x3d41e9)));}if(_0x334233[_0x3dfa26(0x177)]&&_0x2648ae[_0x3dfa26(0x15b)]>0x1){var _0x561711,_0x1457c5;let _0x258a7c=_0x2648ae[_0x2648ae[_0x3dfa26(0x15b)]-0x1],_0x216813=_0x2648ae[0x0],_0xe8667c=(_0x561711=_0x258a7c['out'])==null?_0x258a7c:_0x561711,_0x37a844=(_0x1457c5=_0x216813['in'])==null?_0x216813:_0x1457c5;_0x598b18['push']('C\x20'+R(z(_0xe8667c,_0x3d41e9))+'\x20'+R(z(_0x37a844,_0x3d41e9))+'\x20'+R(z(_0x216813,_0x3d41e9))),_0x598b18[_0x3dfa26(0x18d)]('Z');}return _0x598b18[_0x3dfa26(0x167)]('\x20');}function me(_0x5b09e9,_0x4f66d2){const _0x33c9b4=_0x5d75;let _0x1db0de=_0x5b09e9[_0x33c9b4(0x16f)][_0x33c9b4(0x13c)](_0x43b973=>z(_0x43b973,_0x4f66d2));if(_0x1db0de['length']===0x0)return'';if(_0x1db0de[_0x33c9b4(0x15b)]===0x1)return'M\x20'+R(_0x1db0de[0x0]);let _0x3624b6=['M\x20'+R(_0x1db0de[0x0])];for(let _0x792733=0x0;_0x792733<_0x1db0de[_0x33c9b4(0x15b)]-0x1;_0x792733++){var _0x507bf8,_0x594f92;let _0x5885df=_0x1db0de[_0x792733],_0x25455a=_0x1db0de[_0x792733+0x1],_0x48cbfa=(_0x507bf8=_0x1db0de[_0x792733-0x1])==null?_0x5885df:_0x507bf8,_0x3c13b7=(_0x594f92=_0x1db0de[_0x792733+0x2])==null?_0x25455a:_0x594f92,_0x1e02f3={'x':_0x5885df['x']+(_0x25455a['x']-_0x48cbfa['x'])/0x6,'y':_0x5885df['y']+(_0x25455a['y']-_0x48cbfa['y'])/0x6},_0x45d4ba={'x':_0x25455a['x']-(_0x3c13b7['x']-_0x5885df['x'])/0x6,'y':_0x25455a['y']-(_0x3c13b7['y']-_0x5885df['y'])/0x6};_0x3624b6[_0x33c9b4(0x18d)]('C\x20'+R(_0x1e02f3)+'\x20'+R(_0x45d4ba)+'\x20'+R(_0x25455a));}return _0x3624b6[_0x33c9b4(0x167)]('\x20');}function he(_0x141417,_0x520a99){const _0x16b282=_0x5d75;return _0x141417[_0x16b282(0x172)]===_0x16b282(0x195)?pe(_0x141417,_0x520a99):me(_0x141417,_0x520a99);}function ge(_0x1a6011,_0x3afb42){const _0x3f7058=_0x5d75;return _0x3afb42!=null&&_0x3afb42[_0x3f7058(0x158)]?_0x3afb42[_0x3f7058(0x158)]:_0x1a6011['kind']===_0x3f7058(0x195)?_0x3f7058(0x191):_0x1a6011[_0x3f7058(0x158)];}function _e(_0x366021,_0x28ed85){const _0x695865=_0x5d75;return(_0x28ed85==null?void 0x0:_0x28ed85[_0x695865(0x13e)])===void 0x0?_0x366021[_0x695865(0x172)]===_0x695865(0x195)?0x2:_0x366021[_0x695865(0x13e)]:_0x28ed85[_0x695865(0x13e)];}function ve(_0x2b8123,_0x4340cf){const _0x4bc57d=_0x5d75;return(_0x4340cf==null?void 0x0:_0x4340cf[_0x4bc57d(0x17c)])===void 0x0?_0x2b8123[_0x4bc57d(0x172)]===_0x4bc57d(0x195)?void 0x0:_0x2b8123[_0x4bc57d(0x17c)]:_0x4340cf['opacity'];}function _0x5d75(_0x1bc714,_0x4d42ab){_0x1bc714=_0x1bc714-0x136;const _0x1f0e4c=_0x1f0e();let _0x5d75b0=_0x1f0e4c[_0x1bc714];return _0x5d75b0;}function ye(_0x7bb899,_0x2db820){const _0x470b01=_0x5d75;let _0x1e3437=G(_0x7bb899),_0x12d0b4=he(_0x7bb899,{'x':_0x1e3437['left'],'y':_0x1e3437[_0x470b01(0x145)]}),_0x15a7a1=_0x7bb899[_0x470b01(0x172)]===_0x470b01(0x195)&&_0x7bb899[_0x470b01(0x177)],_0xbd4d92=_0x2db820==null?void 0x0:_0x2db820[_0x470b01(0x159)];return{'shapeType':_0x2fc13d[_0x470b01(0x142)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1e3437[_0x470b01(0x13e)],'h':_0x1e3437[_0x470b01(0x13a)],'fill':_0x15a7a1?_0x470b01(0x162):_0x470b01(0x148),'stroke':!0x0,'data':_0x12d0b4,'dataArray':be(_0x7bb899,{'x':_0x1e3437[_0x470b01(0x175)],'y':_0x1e3437['top']})}]},'fill':_0x15a7a1&&_0xbd4d92?{'color':_0xbd4d92,'fillType':_0x157d04['SolidFill']}:{'fillType':_0x157d04[_0x470b01(0x17b)]},'stroke':{'color':ge(_0x7bb899,_0x2db820),'width':_e(_0x7bb899,_0x2db820),'opacity':ve(_0x7bb899,_0x2db820),'lineStrokeType':_0x41a350[_0x470b01(0x166)],'capType':_0x363052['Round'],'lineJoinType':_0x56486c['Round']}};}function K(_0x766837,_0x43fad4){return{'x':_0x766837['x']-_0x43fad4['x'],'y':_0x766837['y']-_0x43fad4['y']};}function be(_0x143aee,_0x4d1d82){const _0x22ba30=_0x5d75;if(_0x143aee[_0x22ba30(0x172)]===_0x22ba30(0x195)){let _0x179f00=_0x143aee[_0x22ba30(0x143)];if(_0x179f00[_0x22ba30(0x15b)]===0x0)return[];let _0x4fb16b=K(_0x179f00[0x0],_0x4d1d82),_0x23f539=[{'command':'M','points':[_0x4fb16b['x'],_0x4fb16b['y']]}];for(let _0x12c749=0x1;_0x12c749<_0x179f00[_0x22ba30(0x15b)];_0x12c749++){var _0x2bb2f3,_0xef5a00;let _0x23fd86=_0x179f00[_0x12c749-0x1],_0x54c1b6=_0x179f00[_0x12c749],_0x296aa1=K((_0x2bb2f3=_0x23fd86[_0x22ba30(0x139)])==null?_0x23fd86:_0x2bb2f3,_0x4d1d82),_0x2242ed=K((_0xef5a00=_0x54c1b6['in'])==null?_0x54c1b6:_0xef5a00,_0x4d1d82),_0x23db98=K(_0x54c1b6,_0x4d1d82);_0x23f539['push']({'command':'C','points':[_0x296aa1['x'],_0x296aa1['y'],_0x2242ed['x'],_0x2242ed['y'],_0x23db98['x'],_0x23db98['y']]});}if(_0x143aee[_0x22ba30(0x177)]&&_0x179f00['length']>0x1){var _0x2656b6,_0x4b44e1;let _0x29f6bd=_0x179f00[_0x179f00[_0x22ba30(0x15b)]-0x1],_0x1168d2=_0x179f00[0x0],_0x3af9f5=K((_0x2656b6=_0x29f6bd[_0x22ba30(0x139)])==null?_0x29f6bd:_0x2656b6,_0x4d1d82),_0x120745=K((_0x4b44e1=_0x1168d2['in'])==null?_0x1168d2:_0x4b44e1,_0x4d1d82),_0x1587f4=K(_0x1168d2,_0x4d1d82);_0x23f539[_0x22ba30(0x18d)]({'command':'C','points':[_0x3af9f5['x'],_0x3af9f5['y'],_0x120745['x'],_0x120745['y'],_0x1587f4['x'],_0x1587f4['y']]}),_0x23f539[_0x22ba30(0x18d)]({'command':'z','points':[]});}return _0x23f539;}let _0x314f03=_0x143aee['points'][_0x22ba30(0x13c)](_0x5d6b03=>K(_0x5d6b03,_0x4d1d82));if(_0x314f03[_0x22ba30(0x15b)]===0x0)return[];let _0x5528aa=[{'command':'M','points':[_0x314f03[0x0]['x'],_0x314f03[0x0]['y']]}];for(let _0x4db741=0x0;_0x4db741<_0x314f03[_0x22ba30(0x15b)]-0x1;_0x4db741++){var _0x1cce6c,_0x3668f2;let _0x29cc40=_0x314f03[_0x4db741],_0x37cdc5=_0x314f03[_0x4db741+0x1],_0x35d8db=(_0x1cce6c=_0x314f03[_0x4db741-0x1])==null?_0x29cc40:_0x1cce6c,_0x58235c=(_0x3668f2=_0x314f03[_0x4db741+0x2])==null?_0x37cdc5:_0x3668f2,_0x332416={'x':_0x29cc40['x']+(_0x37cdc5['x']-_0x35d8db['x'])/0x6,'y':_0x29cc40['y']+(_0x37cdc5['y']-_0x35d8db['y'])/0x6},_0x1ac2ed={'x':_0x37cdc5['x']-(_0x58235c['x']-_0x29cc40['x'])/0x6,'y':_0x37cdc5['y']-(_0x58235c['y']-_0x29cc40['y'])/0x6};_0x5528aa[_0x22ba30(0x18d)]({'command':'C','points':[_0x332416['x'],_0x332416['y'],_0x1ac2ed['x'],_0x1ac2ed['y'],_0x37cdc5['x'],_0x37cdc5['y']]});}return _0x5528aa;}function xe(_0x588b9a){const _0x8e653=_0x5d75;var _0x1f1de2;let {model:_0x1ea07a,sourceModel:_0xecba1=_0x1ea07a,style:_0x3770c8}=_0x588b9a,_0x2078d1=(_0x1f1de2=_0x588b9a[_0x8e653(0x137)])==null?_0x1ea07a[_0x8e653(0x172)]:_0x1f1de2,_0xc349b6=G(_0x1ea07a),_0x4335c9=_0x1ea07a['kind']===_0x8e653(0x195)&&_0x2078d1!==_0x8e653(0x195)?_0x1ea07a:void 0x0;return{'transform':{..._0xc349b6,'rotation':0x0},'shapeData':ye(_0x1ea07a,_0x3770c8),'ink':{'version':0x1,'tool':_0x2078d1,'sourceModel':_0xecba1,..._0x4335c9?{'editModel':_0x4335c9}:{},'normalizedBounds':_0xc349b6}};}var Se='@univerjs-pro/ink',Ce=_0xd9ea97(0x160);function q(_0xf0db8e){'@babel/helpers - typeof';const _0x5d8d4e=_0xd9ea97;return q=typeof Symbol==_0x5d8d4e(0x15d)&&typeof Symbol['iterator']==_0x5d8d4e(0x192)?function(_0x24b45b){return typeof _0x24b45b;}:function(_0x26e7cd){const _0xbf86d7=_0x5d8d4e;return _0x26e7cd&&typeof Symbol==_0xbf86d7(0x15d)&&_0x26e7cd[_0xbf86d7(0x18f)]===Symbol&&_0x26e7cd!==Symbol[_0xbf86d7(0x17e)]?_0xbf86d7(0x192):typeof _0x26e7cd;},q(_0xf0db8e);}function we(_0x371f38,_0x5a98fe){const _0x118f7f=_0xd9ea97;if(q(_0x371f38)!=_0x118f7f(0x18c)||!_0x371f38)return _0x371f38;var _0x5cef0e=_0x371f38[Symbol[_0x118f7f(0x165)]];if(_0x5cef0e!==void 0x0){var _0x4c12fa=_0x5cef0e[_0x118f7f(0x176)](_0x371f38,_0x5a98fe||_0x118f7f(0x157));if(q(_0x4c12fa)!='object')return _0x4c12fa;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5a98fe===_0x118f7f(0x141)?String:Number)(_0x371f38);}function J(_0x207d73){const _0x1e708a=_0xd9ea97;var _0x51aab3=we(_0x207d73,_0x1e708a(0x141));return q(_0x51aab3)==_0x1e708a(0x192)?_0x51aab3:_0x51aab3+'';}function Y(_0x519233,_0x36e28c,_0x4da7f7){const _0x56af46=_0xd9ea97;return(_0x36e28c=J(_0x36e28c))in _0x519233?Object[_0x56af46(0x136)](_0x519233,_0x36e28c,{'value':_0x4da7f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x519233[_0x36e28c]=_0x4da7f7,_0x519233;}const X=_0x1ab48e(_0xd9ea97(0x14c));var Te=class{constructor(){const _0x3e1613=_0xd9ea97;Y(this,_0x3e1613(0x190),[]);}[_0xd9ea97(0x17a)](_0x28cc61){const _0x152a73=_0xd9ea97;return this[_0x152a73(0x190)][_0x152a73(0x18d)](_0x28cc61),_0x29412f(()=>{const _0x565455=_0x152a73;let _0xaa94e7=this[_0x565455(0x190)][_0x565455(0x183)](_0x28cc61);_0xaa94e7>=0x0&&this['_adapters'][_0x565455(0x16c)](_0xaa94e7,0x1);});}['beginInkMode'](_0x4f93b2){const _0x322df5=_0xd9ea97;for(let _0x47f994 of this[_0x322df5(0x190)])if(_0x47f994[_0x322df5(0x16a)](_0x4f93b2))return!0x0;return!0x1;}async[_0xd9ea97(0x156)](_0x4cfe8e){const _0xa467ed=_0xd9ea97;for(let _0x4a6b52 of this[_0xa467ed(0x190)])if(_0x4a6b52['createCustomShape']&&await _0x4a6b52['createCustomShape'](_0x4cfe8e))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x3450b2[_0xd9ea97(0x147)],'handler':(_0x1273c6,_0x1aed1d)=>_0x1aed1d?_0x1273c6[_0xd9ea97(0x18a)](X)[_0xd9ea97(0x16a)](_0x1aed1d):!0x1},Z={};function Q(_0x55af48,_0x31d419){return function(_0x43e9e7,_0x483b20){_0x31d419(_0x43e9e7,_0x483b20,_0x55af48);};}function De(_0x263be4,_0x433ad3,_0x2f01f1,_0x4819fb){const _0x1e66c2=_0xd9ea97;var _0x351722=arguments[_0x1e66c2(0x15b)],_0x269040=_0x351722<0x3?_0x433ad3:_0x4819fb===null?_0x4819fb=Object[_0x1e66c2(0x170)](_0x433ad3,_0x2f01f1):_0x4819fb,_0x543774;if(typeof Reflect=='object'&&typeof Reflect[_0x1e66c2(0x185)]=='function')_0x269040=Reflect[_0x1e66c2(0x185)](_0x263be4,_0x433ad3,_0x2f01f1,_0x4819fb);else{for(var _0x500a5b=_0x263be4['length']-0x1;_0x500a5b>=0x0;_0x500a5b--)(_0x543774=_0x263be4[_0x500a5b])&&(_0x269040=(_0x351722<0x3?_0x543774(_0x269040):_0x351722>0x3?_0x543774(_0x433ad3,_0x2f01f1,_0x269040):_0x543774(_0x433ad3,_0x2f01f1))||_0x269040);}return _0x351722>0x3&&_0x269040&&Object['defineProperty'](_0x433ad3,_0x2f01f1,_0x269040),_0x269040;}let $=class extends _0x205aab{constructor(_0x38ea78=Z,_0x794021,_0x6333bb,_0xe202d0){const _0xeafa4d=_0xd9ea97;super(),this[_0xeafa4d(0x14e)]=_0x38ea78,this['_injector']=_0x794021,this[_0xeafa4d(0x138)]=_0x6333bb,this[_0xeafa4d(0x149)]=_0xe202d0;let {..._0x581cc3}=_0x1239fb({},Z,this['_config']);this[_0xeafa4d(0x149)][_0xeafa4d(0x17f)](_0xeafa4d(0x153),_0x581cc3);}[_0xd9ea97(0x14b)](){const _0x191e72=_0xd9ea97;[[X,{'useClass':Te}]]['forEach'](_0x5cd6c4=>this[_0x191e72(0x151)][_0x191e72(0x14d)](_0x5cd6c4)),this[_0x191e72(0x15f)](this['_commandService']['registerCommand'](Ee));}};Y($,_0xd9ea97(0x15c),'UNIVER_INK_PLUGIN'),Y($,_0xd9ea97(0x196),Se),Y($,_0xd9ea97(0x161),Ce),Y($,_0xd9ea97(0x180),_0x42f687[_0xd9ea97(0x184)]),$=De([_0xbc0f6e(_0x42d00b),Q(0x1,_0x4e3a63(_0x5500c4)),Q(0x2,_0x16de20),Q(0x3,_0x3c718d)],$);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 _0x3265aa=_0xc58c;(function(_0x22c69e,_0x5e28ce){const _0x234c60=_0xc58c,_0xde3f3f=_0x22c69e();while(!![]){try{const _0x575d13=-parseInt(_0x234c60(0x145))/0x1*(parseInt(_0x234c60(0x164))/0x2)+-parseInt(_0x234c60(0x187))/0x3*(-parseInt(_0x234c60(0x17d))/0x4)+-parseInt(_0x234c60(0x142))/0x5*(-parseInt(_0x234c60(0x184))/0x6)+-parseInt(_0x234c60(0x17b))/0x7*(parseInt(_0x234c60(0x179))/0x8)+parseInt(_0x234c60(0x163))/0x9+parseInt(_0x234c60(0x156))/0xa+-parseInt(_0x234c60(0x12d))/0xb;if(_0x575d13===_0x5e28ce)break;else _0xde3f3f['push'](_0xde3f3f['shift']());}catch(_0x4cb105){_0xde3f3f['push'](_0xde3f3f['shift']());}}}(_0x74aa,0xc0adb));import{ShapeFillEnum as _0x41b33d,ShapeLineCapEnum as _0x4f2531,ShapeLineJoinEnum as _0x477814,ShapeLineTypeEnum as _0x1d6f28,ShapeTypeEnum as _0x2890c7}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x361d04}from'@univerjs-pro/license';import{CommandType as _0x26993d,DependentOn as _0x523a19,ICommandService as _0x22c5ef,IConfigService as _0x413199,Inject as _0x1ef38a,Injector as _0x4101f2,Plugin as _0x2d049f,UniverInstanceType as _0x4da895,createIdentifier as _0x17208f,merge as _0x5dbb94,toDisposable as _0x47bed1}from'@univerjs/core';const g=0.0001;function _(_0x44aff3){return{'x':_0x44aff3['x'],'y':_0x44aff3['y']};}function v(_0x182059){const _0x4810b0=_0xc58c;return{..._0x182059,'in':_0x182059['in']?_(_0x182059['in']):void 0x0,'out':_0x182059['out']?_(_0x182059[_0x4810b0(0x136)]):void 0x0};}function y(_0x31b2bb){const _0x292471=_0xc58c;return{'kind':_0x292471(0x157),'closed':_0x31b2bb[_0x292471(0x17e)],'anchors':_0x31b2bb[_0x292471(0x14b)][_0x292471(0x180)](v)};}function b(_0x20ed78,_0x3500aa,_0x4b5432){return{'x':_0x20ed78['x']+(_0x3500aa['x']-_0x20ed78['x'])*_0x4b5432,'y':_0x20ed78['y']+(_0x3500aa['y']-_0x20ed78['y'])*_0x4b5432};}function x(_0x1757cc,_0x13552a){const _0x4e136d=_0xc58c;return Math[_0x4e136d(0x18d)](_0x1757cc['x']-_0x13552a['x'],_0x1757cc['y']-_0x13552a['y']);}function S(_0x3e6cd4){const _0x4cdba2=_0xc58c;let _0x3741f1=Math[_0x4cdba2(0x18d)](_0x3e6cd4['x'],_0x3e6cd4['y']);return _0x3741f1<g?{'x':0x1,'y':0x0}:{'x':_0x3e6cd4['x']/_0x3741f1,'y':_0x3e6cd4['y']/_0x3741f1};}function C(_0x2215bb,_0x4d7f52,_0xfd74a2=x(_0x2215bb,_0x4d7f52)){let _0x57911f=S({'x':_0x2215bb['x']-_0x4d7f52['x'],'y':_0x2215bb['y']-_0x4d7f52['y']});return{'x':_0x2215bb['x']+_0x57911f['x']*_0xfd74a2,'y':_0x2215bb['y']+_0x57911f['y']*_0xfd74a2};}function w(_0x468f21,_0x563560){const _0x505b94=_0xc58c;let {anchors:_0x216174}=_0x468f21;return _0x216174[_0x505b94(0x14e)]<0x2||_0x563560<0x0?null:_0x563560<_0x216174[_0x505b94(0x14e)]-0x1?{'startIndex':_0x563560,'endIndex':_0x563560+0x1,'start':_0x216174[_0x563560],'end':_0x216174[_0x563560+0x1]}:_0x468f21[_0x505b94(0x17e)]&&_0x563560===_0x216174['length']-0x1?{'startIndex':_0x216174[_0x505b94(0x14e)]-0x1,'endIndex':0x0,'start':_0x216174[_0x216174[_0x505b94(0x14e)]-0x1],'end':_0x216174[0x0]}:null;}function T(_0x3234da,_0x2fcb07){const _0x2126dc=_0xc58c;var _0x3d7b6f,_0x38d07d;let _0xd1e1a7=w(_0x3234da,_0x2fcb07);return _0xd1e1a7?[_0xd1e1a7[_0x2126dc(0x146)],(_0x3d7b6f=_0xd1e1a7[_0x2126dc(0x146)][_0x2126dc(0x136)])==null?_0xd1e1a7['start']:_0x3d7b6f,(_0x38d07d=_0xd1e1a7[_0x2126dc(0x15a)]['in'])==null?_0xd1e1a7[_0x2126dc(0x15a)]:_0x38d07d,_0xd1e1a7[_0x2126dc(0x15a)]]:null;}function te(_0x2f1f07,_0xb410e9){var _0x55413a;return _0xb410e9==='anchor'?_0x2f1f07:(_0x55413a=_0x2f1f07[_0xb410e9])==null?null:_0x55413a;}function E(_0x3223f2,_0x1f8aa7,_0x36f4bf){const _0x413f1b=_0xc58c;return _0x36f4bf==='anchor'||_0x3223f2[_0x413f1b(0x17e)]?!0x0:_0x36f4bf==='in'?_0x1f8aa7>0x0:_0x1f8aa7<_0x3223f2[_0x413f1b(0x14b)]['length']-0x1;}function D(_0x5116da,_0x462156){let [_0x3c53a1,_0x681790,_0x53e0e3,_0x29f776]=_0x5116da,_0x32d226=b(_0x3c53a1,_0x681790,_0x462156),_0x4f2512=b(_0x681790,_0x53e0e3,_0x462156),_0x4f69bc=b(_0x53e0e3,_0x29f776,_0x462156);return b(b(_0x32d226,_0x4f2512,_0x462156),b(_0x4f2512,_0x4f69bc,_0x462156),_0x462156);}function ne(_0x2fb6b4,_0x548287){let [_0x2fa8b2,_0x439f4b,_0xf7bfcc,_0x4e0aaa]=_0x2fb6b4,_0x2ea939=b(_0x2fa8b2,_0x439f4b,_0x548287),_0x5edc6c=b(_0x439f4b,_0xf7bfcc,_0x548287),_0x50d147=b(_0xf7bfcc,_0x4e0aaa,_0x548287),_0x48e445=b(_0x2ea939,_0x5edc6c,_0x548287),_0x49a066=b(_0x5edc6c,_0x50d147,_0x548287),_0x15a4d3=b(_0x48e445,_0x49a066,_0x548287);return{'left':[_0x2fa8b2,_0x2ea939,_0x48e445,_0x15a4d3],'right':[_0x15a4d3,_0x49a066,_0x50d147,_0x4e0aaa]};}function O(_0x4f5f0b,_0x4a9516,_0x2a734c){const _0x55929e=_0xc58c;let _0x1e3b2c=_0x2a734c['x']-_0x4a9516['x'],_0xbd0138=_0x2a734c['y']-_0x4a9516['y'],_0x49485b=_0x1e3b2c*_0x1e3b2c+_0xbd0138*_0xbd0138,_0x6b474=_0x49485b<=g?0x0:Math['max'](0x0,Math[_0x55929e(0x18b)](0x1,((_0x4f5f0b['x']-_0x4a9516['x'])*_0x1e3b2c+(_0x4f5f0b['y']-_0x4a9516['y'])*_0xbd0138)/_0x49485b)),_0x12da08={'x':_0x4a9516['x']+_0x1e3b2c*_0x6b474,'y':_0x4a9516['y']+_0xbd0138*_0x6b474};return{'point':_0x12da08,'ratio':_0x6b474,'distance':x(_0x4f5f0b,_0x12da08)};}function re(_0x4e4bf7,_0x5435d3,_0x5680f8){return O(_0x4e4bf7,_0x5435d3,_0x5680f8)['distance']**0x2;}function k(_0x2b210b,_0x35b770){const _0x50b657=_0xc58c;if(_0x2b210b[_0x50b657(0x14e)]<=0x2)return _0x2b210b[_0x50b657(0x180)](_);let _0x5f1e8a=0x0,_0x2e97df=0x0,_0x5a76ae=_0x2b210b[0x0],_0x432329=_0x2b210b[_0x2b210b['length']-0x1],_0x940e29=_0x35b770*_0x35b770;for(let _0x534880=0x1;_0x534880<_0x2b210b[_0x50b657(0x14e)]-0x1;_0x534880++){let _0x207f99=re(_0x2b210b[_0x534880],_0x5a76ae,_0x432329);_0x207f99>_0x5f1e8a&&(_0x5f1e8a=_0x207f99,_0x2e97df=_0x534880);}if(_0x5f1e8a<=_0x940e29)return[_(_0x5a76ae),_(_0x432329)];let _0x16c631=k(_0x2b210b['slice'](0x0,_0x2e97df+0x1),_0x35b770),_0x2ce94b=k(_0x2b210b[_0x50b657(0x141)](_0x2e97df),_0x35b770);return[..._0x16c631['slice'](0x0,-0x1),..._0x2ce94b];}function ie(_0x3ce019,_0x44b146){var _0x4d13d8;let _0x45c534=_0x3ce019[_0x44b146],_0x321d63=_0x3ce019[_0x44b146+0x1],_0x3decd0=(_0x4d13d8=_0x3ce019[_0x44b146-0x1])==null?_0x45c534:_0x4d13d8;return{'x':_0x45c534['x']+(_0x321d63['x']-_0x3decd0['x'])/0x6,'y':_0x45c534['y']+(_0x321d63['y']-_0x3decd0['y'])/0x6};}function A(_0x3f2e9b,_0x46e4af){var _0x46887e;let _0x157669=_0x3f2e9b[_0x46e4af],_0x1db499=_0x3f2e9b[_0x46e4af-0x1],_0x3a6982=(_0x46887e=_0x3f2e9b[_0x46e4af+0x1])==null?_0x157669:_0x46887e;return{'x':_0x157669['x']-(_0x3a6982['x']-_0x1db499['x'])/0x6,'y':_0x157669['y']-(_0x3a6982['y']-_0x1db499['y'])/0x6};}function j(_0x138388,_0x143529){const _0x5e7465=_0xc58c;var _0x59eaab,_0x1052d2;let _0x1f166c=_0x138388[_0x5e7465(0x14b)][_0x143529],_0x266d83=(_0x59eaab=_0x138388[_0x5e7465(0x14b)][_0x143529-0x1])==null?_0x138388['closed']?_0x138388[_0x5e7465(0x14b)][_0x138388['anchors'][_0x5e7465(0x14e)]-0x1]:null:_0x59eaab,_0x55b966=(_0x1052d2=_0x138388[_0x5e7465(0x14b)][_0x143529+0x1])==null?_0x138388[_0x5e7465(0x17e)]?_0x138388[_0x5e7465(0x14b)][0x0]:null:_0x1052d2,_0x51ef38=_0x266d83&&_0x55b966?S({'x':_0x55b966['x']-_0x266d83['x'],'y':_0x55b966['y']-_0x266d83['y']}):_0x55b966?S({'x':_0x55b966['x']-_0x1f166c['x'],'y':_0x55b966['y']-_0x1f166c['y']}):_0x266d83?S({'x':_0x1f166c['x']-_0x266d83['x'],'y':_0x1f166c['y']-_0x266d83['y']}):{'x':0x1,'y':0x0},_0x42ad11=_0x266d83&&_0x55b966?Math[_0x5e7465(0x186)](0x32,x(_0x266d83,_0x55b966)/0x4):0x32;return{'in':{'x':_0x1f166c['x']-_0x51ef38['x']*_0x42ad11,'y':_0x1f166c['y']-_0x51ef38['y']*_0x42ad11},'out':{'x':_0x1f166c['x']+_0x51ef38['x']*_0x42ad11,'y':_0x1f166c['y']+_0x51ef38['y']*_0x42ad11}};}function _0x74aa(){const _0x10aef8=['_commandService','Round','pointType','UNIVER_INK_PLUGIN','registerAdapter','push','SolidLine','find','startIndex','function','disposeWithMe','UNIVER_UNKNOWN','height','kind','abs','ratio','smooth','width','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2584cFhafH','createId','8281ZTLGcb','sqrt','3980vDUTBh','closed','constructor','map','OPERATION','color','_configService','132XCFHVP','createCustomShape','max','2199OjhHMH','registerCommand','anchor','_injector','min','free','hypot','30253102JrUnNk','fillColor','ink-centerline-','segmentIndex','beginInkMode','join','ink.config','distance','packageName','out','get','default','decorate','point','#f54a45','round','symbol','right','anchorId','left','slice','311825gULgan','_adapters','norm','1sCJBPj','start','tool','iterator','opacity','toPrimitive','anchors','__ink-preview-anchor__','ink.operation.start','length','setConfig','tolerance','1.0.0-alpha.8','string','add','@univerjs-pro/ink','symmetric','11834450iTcoya','pen','forEach','points','end','top','getOwnPropertyDescriptor','object','corner','version','call','defineProperty','pluginName','14175810zQsfQN','1876596IbRxVI','splice'];_0x74aa=function(){return _0x10aef8;};return _0x74aa();}function M(_0x4c28b9,_0x1ebab0){const _0x122522=_0xc58c;let _0x37fb75=_0x4c28b9[_0x1ebab0],_0x5df398=_0x1ebab0==='in'?_0x122522(0x136):'in',_0x27bc57=_0x4c28b9[_0x5df398];if(_0x37fb75){if(_0x4c28b9[_0x122522(0x168)]===_0x122522(0x155)){_0x4c28b9[_0x5df398]=C(_0x4c28b9,_0x37fb75);return;}_0x4c28b9[_0x122522(0x168)]===_0x122522(0x176)&&(_0x4c28b9[_0x5df398]=C(_0x4c28b9,_0x37fb75,_0x27bc57?x(_0x4c28b9,_0x27bc57):x(_0x4c28b9,_0x37fb75)));}}function ae(_0x17260a,_0x2528f1){const _0x4a98cb=_0xc58c;let _0x118586=y(_0x17260a);return!_0x2528f1||_0x118586[_0x4a98cb(0x17e)]||_0x118586[_0x4a98cb(0x14b)][_0x4a98cb(0x14e)]===0x0||_0x118586[_0x4a98cb(0x14b)][_0x4a98cb(0x16b)]({'id':_0x4a98cb(0x14c),'x':_0x2528f1['x'],'y':_0x2528f1['y'],'pointType':_0x4a98cb(0x15e)}),_0x118586;}function oe(_0x316cfb,_0x60548f={}){const _0x39c1a1=_0xc58c;var _0x4cee48,_0x3a3034;let _0xd72610=Math['max'](0x0,(_0x4cee48=_0x60548f[_0x39c1a1(0x150)])==null?Math[_0x39c1a1(0x186)](0x4,_0x316cfb[_0x39c1a1(0x177)]*0.35):_0x4cee48),_0x35332a=(_0x3a3034=_0x60548f[_0x39c1a1(0x17a)])==null?_0x4d6d45=>_0x39c1a1(0x12f)+_0x4d6d45:_0x3a3034,_0x31b6f2=k(_0x316cfb[_0x39c1a1(0x159)],_0xd72610),_0x4f026f=_0x31b6f2['map']((_0x1bae72,_0x55f8c5)=>({'id':_0x35332a(_0x55f8c5),'x':_0x1bae72['x'],'y':_0x1bae72['y'],'pointType':'free'}));for(let _0xcd46f3=0x0;_0xcd46f3<_0x4f026f[_0x39c1a1(0x14e)]-0x1;_0xcd46f3++)_0x4f026f[_0xcd46f3][_0x39c1a1(0x136)]=ie(_0x31b6f2,_0xcd46f3),_0x4f026f[_0xcd46f3+0x1]['in']=A(_0x31b6f2,_0xcd46f3+0x1);return{'kind':_0x39c1a1(0x157),'closed':!0x1,'anchors':_0x4f026f};}function se(_0x5e0ef8,_0x1f4627,_0x1329c8){const _0x3eeeff=_0xc58c;let _0x5e88ca=null,_0x13391b=[_0x3eeeff(0x189),'in',_0x3eeeff(0x136)];return _0x5e0ef8['anchors'][_0x3eeeff(0x158)]((_0x5db0d2,_0x52462f)=>{_0x13391b['forEach'](_0x38e48d=>{const _0x1ba6d0=_0xc58c;if(!E(_0x5e0ef8,_0x52462f,_0x38e48d))return;let _0xfe324d=te(_0x5db0d2,_0x38e48d);if(!_0xfe324d)return;let _0x52fba5=x(_0x1f4627,_0xfe324d);_0x52fba5>_0x1329c8||_0x5e88ca&&_0x52fba5>=_0x5e88ca[_0x1ba6d0(0x134)]||(_0x5e88ca={'handle':{'kind':_0x38e48d,'anchorId':_0x5db0d2['id']},'point':_(_0xfe324d),'distance':_0x52fba5});});}),_0x5e88ca;}function ce(_0x4cf40b,_0x3d7f7d,_0x50b4bc){const _0x161bd4=_0xc58c;let _0x2112dd=null,_0x35deb7=_0x4cf40b[_0x161bd4(0x17e)]?_0x4cf40b[_0x161bd4(0x14b)][_0x161bd4(0x14e)]:Math[_0x161bd4(0x186)](0x0,_0x4cf40b['anchors'][_0x161bd4(0x14e)]-0x1);for(let _0x1985a4=0x0;_0x1985a4<_0x35deb7;_0x1985a4++){let _0x3b48c8=T(_0x4cf40b,_0x1985a4);if(!_0x3b48c8)continue;let _0x334b52=D(_0x3b48c8,0x0);for(let _0x5217b7=0x1;_0x5217b7<=0x20;_0x5217b7++){let _0x34591b=D(_0x3b48c8,_0x5217b7/0x20),_0x1bd843=O(_0x3d7f7d,_0x334b52,_0x34591b),_0x547dc9=(_0x5217b7-0x1+_0x1bd843[_0x161bd4(0x175)])/0x20;(!_0x2112dd||_0x1bd843[_0x161bd4(0x134)]<_0x2112dd[_0x161bd4(0x134)])&&(_0x2112dd={'segmentIndex':_0x1985a4,'t':_0x547dc9,'point':_0x1bd843[_0x161bd4(0x13a)],'distance':_0x1bd843[_0x161bd4(0x134)]}),_0x334b52=_0x34591b;}}return _0x2112dd&&_0x2112dd['distance']<=_0x50b4bc?_0x2112dd:null;}function le(_0x211127,_0x288c52,_0x380185){const _0x38b28f=_0xc58c;let _0x4993ad=y(_0x211127),_0x940ab=w(_0x4993ad,_0x288c52[_0x38b28f(0x130)]),_0x2cf1a9=T(_0x4993ad,_0x288c52[_0x38b28f(0x130)]);if(!_0x940ab||!_0x2cf1a9)return _0x4993ad;let _0x3eacee=ne(_0x2cf1a9,Math[_0x38b28f(0x186)](0x0,Math[_0x38b28f(0x18b)](0x1,_0x288c52['t']))),_0x2e631b={'id':_0x380185(),'x':_0x3eacee[_0x38b28f(0x140)][0x3]['x'],'y':_0x3eacee[_0x38b28f(0x140)][0x3]['y'],'in':_(_0x3eacee[_0x38b28f(0x140)][0x2]),'out':_(_0x3eacee[_0x38b28f(0x13e)][0x1]),'pointType':_0x38b28f(0x18c)};return _0x4993ad[_0x38b28f(0x14b)][_0x940ab[_0x38b28f(0x16e)]][_0x38b28f(0x136)]=_(_0x3eacee[_0x38b28f(0x140)][0x1]),_0x4993ad[_0x38b28f(0x14b)][_0x940ab['endIndex']]['in']=_(_0x3eacee[_0x38b28f(0x13e)][0x2]),_0x4993ad[_0x38b28f(0x14b)][_0x38b28f(0x165)](_0x940ab[_0x38b28f(0x16e)]+0x1,0x0,_0x2e631b),_0x4993ad;}function ue(_0x375b85,_0x19ffae){const _0x3f8ef5=_0xc58c;let _0x48e670=y(_0x375b85);return _0x48e670[_0x3f8ef5(0x14b)]=_0x48e670[_0x3f8ef5(0x14b)]['filter'](_0x520a12=>_0x520a12['id']!==_0x19ffae),_0x48e670[_0x3f8ef5(0x17e)]&&_0x48e670[_0x3f8ef5(0x14b)][_0x3f8ef5(0x14e)]<0x3&&(_0x48e670['closed']=!0x1),_0x48e670;}function N(_0x5e0b36,_0x52fc57,_0x18de7b){const _0x3e0d91=_0xc58c;let _0x6aefad=y(_0x5e0b36),_0x4757af=_0x6aefad[_0x3e0d91(0x14b)]['findIndex'](_0x409e16=>_0x409e16['id']===_0x52fc57),_0x4ab263=_0x6aefad[_0x3e0d91(0x14b)][_0x4757af];if(!_0x4ab263)return _0x6aefad;if(_0x4ab263['pointType']=_0x18de7b,_0x18de7b===_0x3e0d91(0x15e))return delete _0x4ab263['in'],delete _0x4ab263[_0x3e0d91(0x136)],_0x6aefad;let _0x17e44c=j(_0x6aefad,_0x4757af);if(_0x4ab263['in']=_0x4ab263['in']?_(_0x4ab263['in']):_0x17e44c['in'],_0x4ab263[_0x3e0d91(0x136)]=_0x4ab263[_0x3e0d91(0x136)]?_(_0x4ab263[_0x3e0d91(0x136)]):_0x17e44c['out'],_0x18de7b===_0x3e0d91(0x155)){let _0x263efa=Math['max'](x(_0x4ab263,_0x4ab263['in']),x(_0x4ab263,_0x4ab263['out']),0x32),_0x409e7b=S({'x':_0x4ab263[_0x3e0d91(0x136)]['x']-_0x4ab263['x'],'y':_0x4ab263[_0x3e0d91(0x136)]['y']-_0x4ab263['y']});_0x4ab263[_0x3e0d91(0x136)]={'x':_0x4ab263['x']+_0x409e7b['x']*_0x263efa,'y':_0x4ab263['y']+_0x409e7b['y']*_0x263efa},_0x4ab263['in']={'x':_0x4ab263['x']-_0x409e7b['x']*_0x263efa,'y':_0x4ab263['y']-_0x409e7b['y']*_0x263efa};}else _0x18de7b===_0x3e0d91(0x176)&&M(_0x4ab263,_0x3e0d91(0x136));return _0x6aefad;}function P(_0x31727b,_0x54b6cb){const _0x165c3f=_0xc58c;var _0x33033f;let _0x290fab=_0x31727b[_0x165c3f(0x14b)][_0x165c3f(0x16d)](_0x4d50d7=>_0x4d50d7['id']===_0x54b6cb),_0x313e32=(_0x33033f=_0x290fab==null?void 0x0:_0x290fab[_0x165c3f(0x168)])==null?_0x165c3f(0x15e):_0x33033f;return N(_0x31727b,_0x54b6cb,_0x313e32==='corner'?_0x165c3f(0x176):_0x313e32==='smooth'?_0x165c3f(0x155):_0x313e32==='symmetric'?_0x165c3f(0x18c):_0x165c3f(0x15e));}function F(_0x121f16,_0x52a303,_0x41cdf6){const _0x442693=_0xc58c;let _0x1e4562=y(_0x121f16),_0x28b743=_0x1e4562[_0x442693(0x14b)][_0x442693(0x16d)](_0x122925=>_0x122925['id']===_0x52a303[_0x442693(0x13f)]);if(!_0x28b743)return _0x1e4562;if(_0x52a303[_0x442693(0x173)]==='anchor'){let _0x344e90={'x':_0x41cdf6['x']-_0x28b743['x'],'y':_0x41cdf6['y']-_0x28b743['y']};return _0x28b743['x']=_0x41cdf6['x'],_0x28b743['y']=_0x41cdf6['y'],_0x28b743['in']&&(_0x28b743['in']={'x':_0x28b743['in']['x']+_0x344e90['x'],'y':_0x28b743['in']['y']+_0x344e90['y']}),_0x28b743[_0x442693(0x136)]&&(_0x28b743[_0x442693(0x136)]={'x':_0x28b743[_0x442693(0x136)]['x']+_0x344e90['x'],'y':_0x28b743[_0x442693(0x136)]['y']+_0x344e90['y']}),_0x1e4562;}return _0x28b743[_0x52a303['kind']]=_(_0x41cdf6),_0x28b743[_0x442693(0x168)]===_0x442693(0x15e)&&(_0x28b743[_0x442693(0x168)]='free'),M(_0x28b743,_0x52a303[_0x442693(0x173)]),_0x1e4562;}const I=1e-9;function L(_0x4dccd8){let _0x3529ea=Math['round'](_0x4dccd8*0x2710)/0x2710;return Object['is'](_0x3529ea,-0x0)?'0':String(_0x3529ea);}function R(_0x16af44){return L(_0x16af44['x'])+'\x20'+L(_0x16af44['y']);}function z(_0x15c7fc,_0x2eccd0){return{'x':_0x15c7fc['x']-_0x2eccd0['x'],'y':_0x15c7fc['y']-_0x2eccd0['y']};}function B(_0x1d2ed9,_0x42747b,_0x4eea84,_0x25d6f6,_0x6590c5){let _0x621540=0x1-_0x6590c5;return{'x':_0x621540*_0x621540*_0x621540*_0x1d2ed9['x']+0x3*_0x621540*_0x621540*_0x6590c5*_0x42747b['x']+0x3*_0x621540*_0x6590c5*_0x6590c5*_0x4eea84['x']+_0x6590c5*_0x6590c5*_0x6590c5*_0x25d6f6['x'],'y':_0x621540*_0x621540*_0x621540*_0x1d2ed9['y']+0x3*_0x621540*_0x621540*_0x6590c5*_0x42747b['y']+0x3*_0x621540*_0x6590c5*_0x6590c5*_0x4eea84['y']+_0x6590c5*_0x6590c5*_0x6590c5*_0x25d6f6['y']};}function V(_0x4dba68,_0x5d2d39,_0x3fe31,_0x147ce2){const _0x454859=_0xc58c;let _0x5a0b4c=-_0x4dba68+0x3*_0x5d2d39-0x3*_0x3fe31+_0x147ce2,_0x11ece5=0x3*_0x4dba68-0x6*_0x5d2d39+0x3*_0x3fe31,_0x53f88f=-0x3*_0x4dba68+0x3*_0x5d2d39,_0x45a9df=[];if(Math[_0x454859(0x174)](_0x5a0b4c)<I){if(Math[_0x454859(0x174)](_0x11ece5)<I)return _0x45a9df;let _0x2534f3=-_0x53f88f/(0x2*_0x11ece5);return _0x2534f3>0x0&&_0x2534f3<0x1&&_0x45a9df['push'](_0x2534f3),_0x45a9df;}let _0x372ab6=_0x11ece5*_0x11ece5-0x3*_0x5a0b4c*_0x53f88f;if(_0x372ab6<0x0)return _0x45a9df;let _0x6d7590=Math[_0x454859(0x17c)](Math['max'](0x0,_0x372ab6)),_0x1c3c27=(-_0x11ece5+_0x6d7590)/(0x3*_0x5a0b4c),_0x1a9298=(-_0x11ece5-_0x6d7590)/(0x3*_0x5a0b4c);return _0x1c3c27>0x0&&_0x1c3c27<0x1&&_0x45a9df['push'](_0x1c3c27),_0x1a9298>0x0&&_0x1a9298<0x1&&Math[_0x454859(0x174)](_0x1a9298-_0x1c3c27)>I&&_0x45a9df[_0x454859(0x16b)](_0x1a9298),_0x45a9df;}function _0xc58c(_0x41e90d,_0x1043a7){_0x41e90d=_0x41e90d-0x12d;const _0x74aaf2=_0x74aa();let _0xc58c62=_0x74aaf2[_0x41e90d];return _0xc58c62;}function H(_0x5935d3,_0x53f6fa,_0x355587,_0x48d2ea,_0x398387){const _0x66d754=_0xc58c;_0x5935d3[_0x66d754(0x16b)](_0x53f6fa,_0x398387),new Set([...V(_0x53f6fa['x'],_0x355587['x'],_0x48d2ea['x'],_0x398387['x']),...V(_0x53f6fa['y'],_0x355587['y'],_0x48d2ea['y'],_0x398387['y'])])[_0x66d754(0x158)](_0x105d4a=>{const _0x37d0c2=_0x66d754;_0x5935d3[_0x37d0c2(0x16b)](B(_0x53f6fa,_0x355587,_0x48d2ea,_0x398387,_0x105d4a));});}function U(_0x2c6357){const _0x12cde8=_0xc58c;let _0x534a04=_0x2c6357[_0x12cde8(0x14b)];if(_0x534a04[_0x12cde8(0x14e)]<=0x1)return _0x534a04;let _0x17054e=[];for(let _0x5d5640=0x1;_0x5d5640<_0x534a04['length'];_0x5d5640++){var _0x1f8cfa,_0x48391e;let _0x3ca47d=_0x534a04[_0x5d5640-0x1],_0x4a61db=_0x534a04[_0x5d5640];H(_0x17054e,_0x3ca47d,(_0x1f8cfa=_0x3ca47d['out'])==null?_0x3ca47d:_0x1f8cfa,(_0x48391e=_0x4a61db['in'])==null?_0x4a61db:_0x48391e,_0x4a61db);}if(_0x2c6357['closed']&&_0x534a04[_0x12cde8(0x14e)]>0x1){var _0x2dc982,_0x4f726d;let _0x1513fe=_0x534a04[_0x534a04[_0x12cde8(0x14e)]-0x1],_0x458fb5=_0x534a04[0x0];H(_0x17054e,_0x1513fe,(_0x2dc982=_0x1513fe[_0x12cde8(0x136)])==null?_0x1513fe:_0x2dc982,(_0x4f726d=_0x458fb5['in'])==null?_0x458fb5:_0x4f726d,_0x458fb5);}return _0x17054e;}function de(_0x3d585f){const _0x1f5c51=_0xc58c;let _0x4de0a7=_0x3d585f[_0x1f5c51(0x159)];if(_0x4de0a7[_0x1f5c51(0x14e)]<=0x1)return _0x4de0a7;let _0x4eef24=[];for(let _0x4807d0=0x0;_0x4807d0<_0x4de0a7[_0x1f5c51(0x14e)]-0x1;_0x4807d0++){var _0x470852,_0x363ff8;let _0x34bf1f=_0x4de0a7[_0x4807d0],_0x5753cb=_0x4de0a7[_0x4807d0+0x1],_0x29d63a=(_0x470852=_0x4de0a7[_0x4807d0-0x1])==null?_0x34bf1f:_0x470852,_0x5da5ec=(_0x363ff8=_0x4de0a7[_0x4807d0+0x2])==null?_0x5753cb:_0x363ff8;H(_0x4eef24,_0x34bf1f,{'x':_0x34bf1f['x']+(_0x5753cb['x']-_0x29d63a['x'])/0x6,'y':_0x34bf1f['y']+(_0x5753cb['y']-_0x29d63a['y'])/0x6},{'x':_0x5753cb['x']-(_0x5da5ec['x']-_0x34bf1f['x'])/0x6,'y':_0x5753cb['y']-(_0x5da5ec['y']-_0x34bf1f['y'])/0x6},_0x5753cb);}return _0x4eef24;}function fe(_0x29a319){const _0x44d2e5=_0xc58c;return _0x29a319[_0x44d2e5(0x173)]===_0x44d2e5(0x157)?U(_0x29a319):de(_0x29a319);}function W(_0x44e055){const _0x4e2f13=_0xc58c;let _0x23a694=Math[_0x4e2f13(0x13c)](_0x44e055*0x2710)/0x2710;return Object['is'](_0x23a694,-0x0)?0x0:_0x23a694;}function G(_0x232735){const _0x18aac0=_0xc58c;let _0x3ab732=fe(_0x232735);if(_0x3ab732[_0x18aac0(0x14e)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x1b5f4b=Math[_0x18aac0(0x18b)](..._0x3ab732[_0x18aac0(0x180)](_0xf0d56d=>_0xf0d56d['x'])),_0x1c3534=Math[_0x18aac0(0x18b)](..._0x3ab732[_0x18aac0(0x180)](_0x2688d3=>_0x2688d3['y'])),_0x373614=Math[_0x18aac0(0x186)](..._0x3ab732['map'](_0x356e74=>_0x356e74['x'])),_0x15e6fc=Math[_0x18aac0(0x186)](..._0x3ab732[_0x18aac0(0x180)](_0x3cdf71=>_0x3cdf71['y']));return{'left':W(_0x1b5f4b),'top':W(_0x1c3534),'width':W(Math[_0x18aac0(0x186)](0x1,_0x373614-_0x1b5f4b)),'height':W(Math[_0x18aac0(0x186)](0x1,_0x15e6fc-_0x1c3534))};}function pe(_0x3cc005,_0x537c2b){const _0x218f68=_0xc58c;let _0x51208c=_0x3cc005[_0x218f68(0x14b)];if(_0x51208c['length']===0x0)return'';let _0x9f2a9=['M\x20'+R(z(_0x51208c[0x0],_0x537c2b))];for(let _0x1b40d7=0x1;_0x1b40d7<_0x51208c[_0x218f68(0x14e)];_0x1b40d7++){var _0x1397c7,_0x45f063;let _0x24ee9e=_0x51208c[_0x1b40d7-0x1],_0x9e013e=_0x51208c[_0x1b40d7],_0x21f76e=(_0x1397c7=_0x24ee9e['out'])==null?_0x24ee9e:_0x1397c7,_0x59cf44=(_0x45f063=_0x9e013e['in'])==null?_0x9e013e:_0x45f063;_0x9f2a9[_0x218f68(0x16b)]('C\x20'+R(z(_0x21f76e,_0x537c2b))+'\x20'+R(z(_0x59cf44,_0x537c2b))+'\x20'+R(z(_0x9e013e,_0x537c2b)));}if(_0x3cc005['closed']&&_0x51208c['length']>0x1){var _0x335207,_0x271a81;let _0x2fef1e=_0x51208c[_0x51208c['length']-0x1],_0x3422e3=_0x51208c[0x0],_0x4db695=(_0x335207=_0x2fef1e[_0x218f68(0x136)])==null?_0x2fef1e:_0x335207,_0x11784b=(_0x271a81=_0x3422e3['in'])==null?_0x3422e3:_0x271a81;_0x9f2a9[_0x218f68(0x16b)]('C\x20'+R(z(_0x4db695,_0x537c2b))+'\x20'+R(z(_0x11784b,_0x537c2b))+'\x20'+R(z(_0x3422e3,_0x537c2b))),_0x9f2a9[_0x218f68(0x16b)]('Z');}return _0x9f2a9[_0x218f68(0x132)]('\x20');}function me(_0x10bf5d,_0x62a0c0){const _0xf234ae=_0xc58c;let _0x798c1e=_0x10bf5d['points'][_0xf234ae(0x180)](_0x2ae5cc=>z(_0x2ae5cc,_0x62a0c0));if(_0x798c1e['length']===0x0)return'';if(_0x798c1e[_0xf234ae(0x14e)]===0x1)return'M\x20'+R(_0x798c1e[0x0]);let _0x27cac0=['M\x20'+R(_0x798c1e[0x0])];for(let _0x431142=0x0;_0x431142<_0x798c1e[_0xf234ae(0x14e)]-0x1;_0x431142++){var _0x283a2b,_0x38b0f0;let _0x32a746=_0x798c1e[_0x431142],_0x44c319=_0x798c1e[_0x431142+0x1],_0x9eb338=(_0x283a2b=_0x798c1e[_0x431142-0x1])==null?_0x32a746:_0x283a2b,_0x447754=(_0x38b0f0=_0x798c1e[_0x431142+0x2])==null?_0x44c319:_0x38b0f0,_0x1a7d5c={'x':_0x32a746['x']+(_0x44c319['x']-_0x9eb338['x'])/0x6,'y':_0x32a746['y']+(_0x44c319['y']-_0x9eb338['y'])/0x6},_0x5917f4={'x':_0x44c319['x']-(_0x447754['x']-_0x32a746['x'])/0x6,'y':_0x44c319['y']-(_0x447754['y']-_0x32a746['y'])/0x6};_0x27cac0[_0xf234ae(0x16b)]('C\x20'+R(_0x1a7d5c)+'\x20'+R(_0x5917f4)+'\x20'+R(_0x44c319));}return _0x27cac0['join']('\x20');}function he(_0x1d4649,_0x4ef855){const _0x35defd=_0xc58c;return _0x1d4649[_0x35defd(0x173)]==='pen'?pe(_0x1d4649,_0x4ef855):me(_0x1d4649,_0x4ef855);}function ge(_0xc272c6,_0x2f17e4){const _0x110c81=_0xc58c;return _0x2f17e4!=null&&_0x2f17e4[_0x110c81(0x182)]?_0x2f17e4[_0x110c81(0x182)]:_0xc272c6[_0x110c81(0x173)]===_0x110c81(0x157)?_0x110c81(0x13b):_0xc272c6['color'];}function _e(_0xe14770,_0x52da6e){const _0x960a65=_0xc58c;return(_0x52da6e==null?void 0x0:_0x52da6e['width'])===void 0x0?_0xe14770[_0x960a65(0x173)]===_0x960a65(0x157)?0x2:_0xe14770[_0x960a65(0x177)]:_0x52da6e[_0x960a65(0x177)];}function ve(_0x74adda,_0x3c1333){const _0x1a5333=_0xc58c;return(_0x3c1333==null?void 0x0:_0x3c1333['opacity'])===void 0x0?_0x74adda[_0x1a5333(0x173)]===_0x1a5333(0x157)?void 0x0:_0x74adda[_0x1a5333(0x149)]:_0x3c1333['opacity'];}function ye(_0x209983,_0x275e03){const _0x109b09=_0xc58c;let _0x170c7e=G(_0x209983),_0x45685a=he(_0x209983,{'x':_0x170c7e[_0x109b09(0x140)],'y':_0x170c7e[_0x109b09(0x15b)]}),_0x42f680=_0x209983[_0x109b09(0x173)]===_0x109b09(0x157)&&_0x209983[_0x109b09(0x17e)],_0x1f3dff=_0x275e03==null?void 0x0:_0x275e03[_0x109b09(0x12e)];return{'shapeType':_0x2890c7['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x170c7e[_0x109b09(0x177)],'h':_0x170c7e[_0x109b09(0x172)],'fill':_0x42f680?_0x109b09(0x144):'none','stroke':!0x0,'data':_0x45685a,'dataArray':be(_0x209983,{'x':_0x170c7e[_0x109b09(0x140)],'y':_0x170c7e[_0x109b09(0x15b)]})}]},'fill':_0x42f680&&_0x1f3dff?{'color':_0x1f3dff,'fillType':_0x41b33d['SolidFill']}:{'fillType':_0x41b33d['NoFill']},'stroke':{'color':ge(_0x209983,_0x275e03),'width':_e(_0x209983,_0x275e03),'opacity':ve(_0x209983,_0x275e03),'lineStrokeType':_0x1d6f28[_0x109b09(0x16c)],'capType':_0x4f2531['Round'],'lineJoinType':_0x477814[_0x109b09(0x167)]}};}function K(_0x48d899,_0x4eebc1){return{'x':_0x48d899['x']-_0x4eebc1['x'],'y':_0x48d899['y']-_0x4eebc1['y']};}function be(_0x5e2ea4,_0x4667bb){const _0x250f07=_0xc58c;if(_0x5e2ea4[_0x250f07(0x173)]==='pen'){let _0x4d3939=_0x5e2ea4[_0x250f07(0x14b)];if(_0x4d3939[_0x250f07(0x14e)]===0x0)return[];let _0x397964=K(_0x4d3939[0x0],_0x4667bb),_0x598f2c=[{'command':'M','points':[_0x397964['x'],_0x397964['y']]}];for(let _0x5e14c6=0x1;_0x5e14c6<_0x4d3939['length'];_0x5e14c6++){var _0x247d33,_0x588bbf;let _0x591f53=_0x4d3939[_0x5e14c6-0x1],_0x5e1ab9=_0x4d3939[_0x5e14c6],_0x34e972=K((_0x247d33=_0x591f53[_0x250f07(0x136)])==null?_0x591f53:_0x247d33,_0x4667bb),_0x218ab5=K((_0x588bbf=_0x5e1ab9['in'])==null?_0x5e1ab9:_0x588bbf,_0x4667bb),_0x6c4527=K(_0x5e1ab9,_0x4667bb);_0x598f2c[_0x250f07(0x16b)]({'command':'C','points':[_0x34e972['x'],_0x34e972['y'],_0x218ab5['x'],_0x218ab5['y'],_0x6c4527['x'],_0x6c4527['y']]});}if(_0x5e2ea4[_0x250f07(0x17e)]&&_0x4d3939[_0x250f07(0x14e)]>0x1){var _0x46804d,_0x16e2ae;let _0x223380=_0x4d3939[_0x4d3939[_0x250f07(0x14e)]-0x1],_0x2ae56f=_0x4d3939[0x0],_0x2f815a=K((_0x46804d=_0x223380[_0x250f07(0x136)])==null?_0x223380:_0x46804d,_0x4667bb),_0x5232ea=K((_0x16e2ae=_0x2ae56f['in'])==null?_0x2ae56f:_0x16e2ae,_0x4667bb),_0x41abd5=K(_0x2ae56f,_0x4667bb);_0x598f2c[_0x250f07(0x16b)]({'command':'C','points':[_0x2f815a['x'],_0x2f815a['y'],_0x5232ea['x'],_0x5232ea['y'],_0x41abd5['x'],_0x41abd5['y']]}),_0x598f2c['push']({'command':'z','points':[]});}return _0x598f2c;}let _0x50aeeb=_0x5e2ea4['points'][_0x250f07(0x180)](_0x49d034=>K(_0x49d034,_0x4667bb));if(_0x50aeeb[_0x250f07(0x14e)]===0x0)return[];let _0x58bfa5=[{'command':'M','points':[_0x50aeeb[0x0]['x'],_0x50aeeb[0x0]['y']]}];for(let _0x1d078b=0x0;_0x1d078b<_0x50aeeb['length']-0x1;_0x1d078b++){var _0x35a91a,_0x3c561a;let _0x49ccca=_0x50aeeb[_0x1d078b],_0x168e9f=_0x50aeeb[_0x1d078b+0x1],_0x3221ff=(_0x35a91a=_0x50aeeb[_0x1d078b-0x1])==null?_0x49ccca:_0x35a91a,_0x561cd1=(_0x3c561a=_0x50aeeb[_0x1d078b+0x2])==null?_0x168e9f:_0x3c561a,_0x10de3d={'x':_0x49ccca['x']+(_0x168e9f['x']-_0x3221ff['x'])/0x6,'y':_0x49ccca['y']+(_0x168e9f['y']-_0x3221ff['y'])/0x6},_0x52816e={'x':_0x168e9f['x']-(_0x561cd1['x']-_0x49ccca['x'])/0x6,'y':_0x168e9f['y']-(_0x561cd1['y']-_0x49ccca['y'])/0x6};_0x58bfa5[_0x250f07(0x16b)]({'command':'C','points':[_0x10de3d['x'],_0x10de3d['y'],_0x52816e['x'],_0x52816e['y'],_0x168e9f['x'],_0x168e9f['y']]});}return _0x58bfa5;}function xe(_0x10c636){const _0x517bd3=_0xc58c;var _0x165a54;let {model:_0x58a44f,sourceModel:_0x3c809a=_0x58a44f,style:_0x4d880f}=_0x10c636,_0x5e11dd=(_0x165a54=_0x10c636[_0x517bd3(0x147)])==null?_0x58a44f[_0x517bd3(0x173)]:_0x165a54,_0xbe90de=G(_0x58a44f),_0x25d647=_0x58a44f['kind']===_0x517bd3(0x157)&&_0x5e11dd!=='pen'?_0x58a44f:void 0x0;return{'transform':{..._0xbe90de,'rotation':0x0},'shapeData':ye(_0x58a44f,_0x4d880f),'ink':{'version':0x1,'tool':_0x5e11dd,'sourceModel':_0x3c809a,..._0x25d647?{'editModel':_0x25d647}:{},'normalizedBounds':_0xbe90de}};}var Se=_0x3265aa(0x154),Ce=_0x3265aa(0x151);function q(_0x5e8d18){'@babel/helpers - typeof';const _0x473489=_0x3265aa;return q=typeof Symbol=='function'&&typeof Symbol[_0x473489(0x148)]=='symbol'?function(_0x5baf79){return typeof _0x5baf79;}:function(_0xf44627){const _0x2218ac=_0x473489;return _0xf44627&&typeof Symbol==_0x2218ac(0x16f)&&_0xf44627[_0x2218ac(0x17f)]===Symbol&&_0xf44627!==Symbol['prototype']?_0x2218ac(0x13d):typeof _0xf44627;},q(_0x5e8d18);}function we(_0x3e3f63,_0x2103e0){const _0x518974=_0x3265aa;if(q(_0x3e3f63)!=_0x518974(0x15d)||!_0x3e3f63)return _0x3e3f63;var _0x6f6e3d=_0x3e3f63[Symbol[_0x518974(0x14a)]];if(_0x6f6e3d!==void 0x0){var _0x21bd8b=_0x6f6e3d[_0x518974(0x160)](_0x3e3f63,_0x2103e0||_0x518974(0x138));if(q(_0x21bd8b)!=_0x518974(0x15d))return _0x21bd8b;throw TypeError(_0x518974(0x178));}return(_0x2103e0===_0x518974(0x152)?String:Number)(_0x3e3f63);}function J(_0x3c90e2){var _0x2004de=we(_0x3c90e2,'string');return q(_0x2004de)=='symbol'?_0x2004de:_0x2004de+'';}function Y(_0x3678ec,_0x48d004,_0x4b775f){const _0x14b688=_0x3265aa;return(_0x48d004=J(_0x48d004))in _0x3678ec?Object[_0x14b688(0x161)](_0x3678ec,_0x48d004,{'value':_0x4b775f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3678ec[_0x48d004]=_0x4b775f,_0x3678ec;}const X=_0x17208f('ink.host-adapter.service');var Te=class{constructor(){const _0x2bfe7d=_0x3265aa;Y(this,_0x2bfe7d(0x143),[]);}[_0x3265aa(0x16a)](_0x4d9cec){const _0x3d275f=_0x3265aa;return this[_0x3d275f(0x143)][_0x3d275f(0x16b)](_0x4d9cec),_0x47bed1(()=>{const _0x36e725=_0x3d275f;let _0x4a1ad1=this[_0x36e725(0x143)]['indexOf'](_0x4d9cec);_0x4a1ad1>=0x0&&this[_0x36e725(0x143)][_0x36e725(0x165)](_0x4a1ad1,0x1);});}['beginInkMode'](_0x3836a9){const _0x522f3a=_0x3265aa;for(let _0x7d843 of this[_0x522f3a(0x143)])if(_0x7d843['beginInkMode'](_0x3836a9))return!0x0;return!0x1;}async[_0x3265aa(0x185)](_0x149d9b){const _0x3495a1=_0x3265aa;for(let _0x4d9b4c of this['_adapters'])if(_0x4d9b4c[_0x3495a1(0x185)]&&await _0x4d9b4c[_0x3495a1(0x185)](_0x149d9b))return!0x0;return!0x1;}};const Ee={'id':_0x3265aa(0x14d),'type':_0x26993d[_0x3265aa(0x181)],'handler':(_0x394c13,_0x3401b3)=>_0x3401b3?_0x394c13[_0x3265aa(0x137)](X)[_0x3265aa(0x131)](_0x3401b3):!0x1},Z={};function Q(_0x2b83c6,_0x379774){return function(_0x6dbac4,_0x5a1928){_0x379774(_0x6dbac4,_0x5a1928,_0x2b83c6);};}function De(_0x7d02a9,_0x2792fd,_0xf9c941,_0x43ea04){const _0x35ba43=_0x3265aa;var _0x7610ec=arguments['length'],_0x30b671=_0x7610ec<0x3?_0x2792fd:_0x43ea04===null?_0x43ea04=Object[_0x35ba43(0x15c)](_0x2792fd,_0xf9c941):_0x43ea04,_0x385ad7;if(typeof Reflect==_0x35ba43(0x15d)&&typeof Reflect[_0x35ba43(0x139)]=='function')_0x30b671=Reflect[_0x35ba43(0x139)](_0x7d02a9,_0x2792fd,_0xf9c941,_0x43ea04);else{for(var _0x8d3f90=_0x7d02a9[_0x35ba43(0x14e)]-0x1;_0x8d3f90>=0x0;_0x8d3f90--)(_0x385ad7=_0x7d02a9[_0x8d3f90])&&(_0x30b671=(_0x7610ec<0x3?_0x385ad7(_0x30b671):_0x7610ec>0x3?_0x385ad7(_0x2792fd,_0xf9c941,_0x30b671):_0x385ad7(_0x2792fd,_0xf9c941))||_0x30b671);}return _0x7610ec>0x3&&_0x30b671&&Object[_0x35ba43(0x161)](_0x2792fd,_0xf9c941,_0x30b671),_0x30b671;}let $=class extends _0x2d049f{constructor(_0x1c4ce1=Z,_0x57ae30,_0x58bd46,_0x5764f6){const _0x5b9aa0=_0x3265aa;super(),this['_config']=_0x1c4ce1,this[_0x5b9aa0(0x18a)]=_0x57ae30,this[_0x5b9aa0(0x166)]=_0x58bd46,this[_0x5b9aa0(0x183)]=_0x5764f6;let {..._0xff97fa}=_0x5dbb94({},Z,this['_config']);this['_configService'][_0x5b9aa0(0x14f)](_0x5b9aa0(0x133),_0xff97fa);}['onStarting'](){const _0x3c0b8e=_0x3265aa;[[X,{'useClass':Te}]][_0x3c0b8e(0x158)](_0x5ba4fe=>this[_0x3c0b8e(0x18a)][_0x3c0b8e(0x153)](_0x5ba4fe)),this[_0x3c0b8e(0x170)](this['_commandService'][_0x3c0b8e(0x188)](Ee));}};Y($,_0x3265aa(0x162),_0x3265aa(0x169)),Y($,_0x3265aa(0x135),Se),Y($,_0x3265aa(0x15f),Ce),Y($,'type',_0x4da895[_0x3265aa(0x171)]),$=De([_0x523a19(_0x361d04),Q(0x1,_0x1ef38a(_0x4101f2)),Q(0x2,_0x22c5ef),Q(0x3,_0x413199)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4fb31f=_0x1633;(function(_0x1191aa,_0x567b74){const _0x131282=_0x1633,_0x4cccc5=_0x1191aa();while(!![]){try{const _0xd48bd7=-parseInt(_0x131282(0x93))/0x1+-parseInt(_0x131282(0x8a))/0x2+-parseInt(_0x131282(0x8e))/0x3*(-parseInt(_0x131282(0x89))/0x4)+-parseInt(_0x131282(0xa2))/0x5*(-parseInt(_0x131282(0x7b))/0x6)+-parseInt(_0x131282(0x90))/0x7+parseInt(_0x131282(0x7e))/0x8+parseInt(_0x131282(0x7d))/0x9*(parseInt(_0x131282(0x80))/0xa);if(_0xd48bd7===_0x567b74)break;else _0x4cccc5['push'](_0x4cccc5['shift']());}catch(_0x203585){_0x4cccc5['push'](_0x4cccc5['shift']());}}}(_0x3758,0xa7ec3));import{BoardElementType as _0x1d6b95}from'@univerjs-pro/boards';import{FBoard as _0x24c860}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x1c1047}from'@univerjs-pro/ink';import{Tools as _0x4ab5cd,generateRandomId as _0x1e053f}from'@univerjs/core';import{FEnum as _0x5988e6}from'@univerjs/core/facade';var o=class extends _0x24c860{['insertInk'](_0x5d270e){const _0x380c30=_0x1633;let _0x5a8b4b=s(_0x5d270e);return _0x5a8b4b&&this['_addElement'](_0x5a8b4b,{'insertIndex':_0x5d270e[_0x380c30(0x98)]})?_0x5a8b4b:null;}[_0x4fb31f(0x9d)](){const _0x56f729=_0x4fb31f;return this[_0x56f729(0x85)]({'elementType':_0x1d6b95['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x56f729(0x8d)](p);}};function s(_0x2c8fa3,_0x232deb){const _0x34b70c=_0x4fb31f;var _0x5b485c,_0x4dc54d,_0x500bea;if(!l(_0x2c8fa3[_0x34b70c(0x88)])||_0x2c8fa3[_0x34b70c(0xa1)]!==void 0x0&&!l(_0x2c8fa3[_0x34b70c(0xa1)])||!u(_0x2c8fa3[_0x34b70c(0x84)]))return null;let _0x42d7cb=(_0x5b485c=_0x2c8fa3[_0x34b70c(0x83)])==null?_0x232deb==null?void 0x0:_0x232deb['parentId']:_0x5b485c,_0xf268f8=_0x4ab5cd[_0x34b70c(0x87)](_0x2c8fa3[_0x34b70c(0x88)]),_0x2bac15=_0x1c1047({'model':_0xf268f8,'style':_0x2c8fa3[_0x34b70c(0x84)],'tool':_0x2c8fa3[_0x34b70c(0x8b)],'sourceModel':_0x2c8fa3['sourceModel']?_0x4ab5cd['deepClone'](_0x2c8fa3['sourceModel']):_0xf268f8}),_0x426410=d(_0x232deb==null?void 0x0:_0x232deb['custom']);return{'id':(_0x4dc54d=(_0x500bea=_0x232deb==null?void 0x0:_0x232deb['id'])==null?_0x2c8fa3['id']:_0x500bea)==null?_0x1e053f(0x6):_0x4dc54d,'type':_0x1d6b95[_0x34b70c(0x92)],'transform':_0x2bac15['transform'],'shapeData':_0x2bac15[_0x34b70c(0x8f)],'parentId':_0x42d7cb==null?void 0x0:_0x42d7cb,'laneId':_0x2c8fa3[_0x34b70c(0x74)]===void 0x0?_0x232deb==null?void 0x0:_0x232deb[_0x34b70c(0x74)]:_0x2c8fa3['laneId'],'custom':{..._0x426410,'ink':_0x2bac15['ink']}};}function c(_0x2c57ba){const _0x507149=_0x4fb31f;return Number['isFinite'](_0x2c57ba['x'])&&Number[_0x507149(0x75)](_0x2c57ba['y']);}function l(_0xfd61d0){const _0x468cb0=_0x4fb31f;if(_0xfd61d0[_0x468cb0(0x76)]===_0x468cb0(0x78)){let _0x56a345=new Set();return _0xfd61d0['anchors']['length']>=(_0xfd61d0['closed']?0x3:0x2)&&_0xfd61d0['anchors'][_0x468cb0(0x86)](_0x46d48b=>{const _0x38b880=_0x468cb0;let _0x96546=_0x46d48b['id'][_0x38b880(0x94)]()[_0x38b880(0x97)]>0x0&&!_0x56a345['has'](_0x46d48b['id'])&&c(_0x46d48b)&&(!_0x46d48b['in']||c(_0x46d48b['in']))&&(!_0x46d48b[_0x38b880(0x95)]||c(_0x46d48b[_0x38b880(0x95)]));return _0x56a345['add'](_0x46d48b['id']),_0x96546;});}return _0xfd61d0[_0x468cb0(0x96)][_0x468cb0(0x97)]>=0x2&&_0xfd61d0[_0x468cb0(0x96)]['every'](_0x2ad9d9=>c(_0x2ad9d9)&&Number[_0x468cb0(0x75)](_0x2ad9d9['t'])&&(_0x2ad9d9[_0x468cb0(0x91)]===void 0x0||Number['isFinite'](_0x2ad9d9[_0x468cb0(0x91)])))&&Number[_0x468cb0(0x75)](_0xfd61d0[_0x468cb0(0x99)])&&_0xfd61d0[_0x468cb0(0x99)]>0x0&&Number[_0x468cb0(0x75)](_0xfd61d0['opacity'])&&_0xfd61d0[_0x468cb0(0x82)]>=0x0&&_0xfd61d0[_0x468cb0(0x82)]<=0x1;}function u(_0x392c34){const _0x46625b=_0x4fb31f;return _0x392c34===void 0x0||(_0x392c34[_0x46625b(0x99)]===void 0x0||Number['isFinite'](_0x392c34[_0x46625b(0x99)])&&_0x392c34[_0x46625b(0x99)]>0x0)&&(_0x392c34[_0x46625b(0x82)]===void 0x0||Number[_0x46625b(0x75)](_0x392c34[_0x46625b(0x82)])&&_0x392c34[_0x46625b(0x82)]>=0x0&&_0x392c34[_0x46625b(0x82)]<=0x1);}function _0x3758(){const _0x515457=['laneId','isFinite','kind','custom','pen','anchor','BoardInkHandleKind','1379640emdEck','version','2920653sHrNqh','3543184txqcMc','smooth','40EdXIWA','brush','opacity','parentId','style','findElements','every','deepClone','model','2290876OHEjNs','1688078jEoZAq','tool','BoardInkPointType','filter','3BimyEA','shapeData','7163660fzfhQU','pressure','Shape','908155sbqRRh','trim','out','points','length','insertIndex','width','highlighter','symmetric','corner','getInks','type','object','extend','sourceModel','25klYnms'];_0x3758=function(){return _0x515457;};return _0x3758();}function _0x1633(_0xf6bbdf,_0x24be70){_0xf6bbdf=_0xf6bbdf-0x74;const _0x3758ac=_0x3758();let _0x163322=_0x3758ac[_0xf6bbdf];return _0x163322;}function d(_0x205d6d){const _0x215838=_0x4fb31f;return _0x205d6d&&typeof _0x205d6d==_0x215838(0x9f)&&!Array['isArray'](_0x205d6d)?_0x205d6d:{};}function f(_0x519392){const _0x4b3491=_0x4fb31f;let _0x52a7bf=d(_0x519392[_0x4b3491(0x77)])['ink'];if(!_0x52a7bf||typeof _0x52a7bf!=_0x4b3491(0x9f)||Array['isArray'](_0x52a7bf))return null;let _0x440921=_0x52a7bf;return _0x440921[_0x4b3491(0x7c)]===0x1&&_0x440921[_0x4b3491(0xa1)]&&typeof _0x440921[_0x4b3491(0xa1)]==_0x4b3491(0x9f)?_0x440921:null;}function p(_0x4d560e){const _0x242859=_0x4fb31f;return _0x4d560e[_0x242859(0x9e)]===_0x1d6b95['Shape']&&!!f(_0x4d560e);}_0x24c860[_0x4fb31f(0xa0)](o);const m={'Pen':_0x4fb31f(0x78),'Brush':_0x4fb31f(0x81),'Highlighter':_0x4fb31f(0x9a)},h={'Corner':_0x4fb31f(0x9c),'Smooth':_0x4fb31f(0x7f),'Symmetric':_0x4fb31f(0x9b),'Free':'free'},g={'Anchor':_0x4fb31f(0x79),'In':'in','Out':_0x4fb31f(0x95)};var _=class extends _0x5988e6{get['BoardInkTool'](){return m;}get[_0x4fb31f(0x8c)](){return h;}get[_0x4fb31f(0x7a)](){return g;}};_0x5988e6['extend'](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xd9ea97=_0x5d75;(function(_0x583a21,_0x3dd7e7){const _0x56c90b=_0x5d75,_0x37ba04=_0x583a21();while(!![]){try{const _0x47bcfa=-parseInt(_0x56c90b(0x173))/0x1+-parseInt(_0x56c90b(0x140))/0x2+parseInt(_0x56c90b(0x14f))/0x3+-parseInt(_0x56c90b(0x13d))/0x4+parseInt(_0x56c90b(0x16b))/0x5+-parseInt(_0x56c90b(0x187))/0x6*(-parseInt(_0x56c90b(0x15e))/0x7)+parseInt(_0x56c90b(0x18e))/0x8;if(_0x47bcfa===_0x3dd7e7)break;else _0x37ba04['push'](_0x37ba04['shift']());}catch(_0xaae5ca){_0x37ba04['push'](_0x37ba04['shift']());}}}(_0x1f0e,0xd2e2d));import{ShapeFillEnum as _0x157d04,ShapeLineCapEnum as _0x363052,ShapeLineJoinEnum as _0x56486c,ShapeLineTypeEnum as _0x41a350,ShapeTypeEnum as _0x2fc13d}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x42d00b}from'@univerjs-pro/license';import{CommandType as _0x3450b2,DependentOn as _0xbc0f6e,ICommandService as _0x16de20,IConfigService as _0x3c718d,Inject as _0x4e3a63,Injector as _0x5500c4,Plugin as _0x205aab,UniverInstanceType as _0x42f687,createIdentifier as _0x1ab48e,merge as _0x1239fb,toDisposable as _0x29412f}from'@univerjs/core';const g=0.0001;function _(_0x1c4784){return{'x':_0x1c4784['x'],'y':_0x1c4784['y']};}function v(_0x2a107c){const _0x2cd110=_0x5d75;return{..._0x2a107c,'in':_0x2a107c['in']?_(_0x2a107c['in']):void 0x0,'out':_0x2a107c['out']?_(_0x2a107c[_0x2cd110(0x139)]):void 0x0};}function y(_0x5c7ca3){const _0x3ce2bc=_0x5d75;return{'kind':_0x3ce2bc(0x195),'closed':_0x5c7ca3[_0x3ce2bc(0x177)],'anchors':_0x5c7ca3[_0x3ce2bc(0x143)][_0x3ce2bc(0x13c)](v)};}function b(_0x421435,_0x3ecbc4,_0x13d740){return{'x':_0x421435['x']+(_0x3ecbc4['x']-_0x421435['x'])*_0x13d740,'y':_0x421435['y']+(_0x3ecbc4['y']-_0x421435['y'])*_0x13d740};}function x(_0x3ed006,_0x2248cc){const _0x303571=_0x5d75;return Math[_0x303571(0x179)](_0x3ed006['x']-_0x2248cc['x'],_0x3ed006['y']-_0x2248cc['y']);}function S(_0x43b2af){let _0x4ce1e7=Math['hypot'](_0x43b2af['x'],_0x43b2af['y']);return _0x4ce1e7<g?{'x':0x1,'y':0x0}:{'x':_0x43b2af['x']/_0x4ce1e7,'y':_0x43b2af['y']/_0x4ce1e7};}function C(_0x1b10ba,_0x4d4b62,_0x57b104=x(_0x1b10ba,_0x4d4b62)){let _0x29f3c0=S({'x':_0x1b10ba['x']-_0x4d4b62['x'],'y':_0x1b10ba['y']-_0x4d4b62['y']});return{'x':_0x1b10ba['x']+_0x29f3c0['x']*_0x57b104,'y':_0x1b10ba['y']+_0x29f3c0['y']*_0x57b104};}function w(_0x4fa05c,_0x4d9b3c){const _0x168da6=_0x5d75;let {anchors:_0x16ed3e}=_0x4fa05c;return _0x16ed3e[_0x168da6(0x15b)]<0x2||_0x4d9b3c<0x0?null:_0x4d9b3c<_0x16ed3e['length']-0x1?{'startIndex':_0x4d9b3c,'endIndex':_0x4d9b3c+0x1,'start':_0x16ed3e[_0x4d9b3c],'end':_0x16ed3e[_0x4d9b3c+0x1]}:_0x4fa05c[_0x168da6(0x177)]&&_0x4d9b3c===_0x16ed3e['length']-0x1?{'startIndex':_0x16ed3e[_0x168da6(0x15b)]-0x1,'endIndex':0x0,'start':_0x16ed3e[_0x16ed3e[_0x168da6(0x15b)]-0x1],'end':_0x16ed3e[0x0]}:null;}function T(_0x252e88,_0x516bc5){const _0x1124c8=_0x5d75;var _0xe8f2fe,_0x23763c;let _0x876388=w(_0x252e88,_0x516bc5);return _0x876388?[_0x876388['start'],(_0xe8f2fe=_0x876388[_0x1124c8(0x181)][_0x1124c8(0x139)])==null?_0x876388[_0x1124c8(0x181)]:_0xe8f2fe,(_0x23763c=_0x876388[_0x1124c8(0x169)]['in'])==null?_0x876388[_0x1124c8(0x169)]:_0x23763c,_0x876388[_0x1124c8(0x169)]]:null;}function te(_0x137d6a,_0x28c135){var _0x4001aa;return _0x28c135==='anchor'?_0x137d6a:(_0x4001aa=_0x137d6a[_0x28c135])==null?null:_0x4001aa;}function E(_0x1c5905,_0x107d8e,_0x1ccfbc){const _0x112356=_0x5d75;return _0x1ccfbc===_0x112356(0x163)||_0x1c5905[_0x112356(0x177)]?!0x0:_0x1ccfbc==='in'?_0x107d8e>0x0:_0x107d8e<_0x1c5905['anchors'][_0x112356(0x15b)]-0x1;}function D(_0x30166d,_0x59ad48){let [_0xff4e02,_0x486f37,_0x25b23f,_0x1c2b6f]=_0x30166d,_0x5a6c14=b(_0xff4e02,_0x486f37,_0x59ad48),_0x2e6c74=b(_0x486f37,_0x25b23f,_0x59ad48),_0x165d33=b(_0x25b23f,_0x1c2b6f,_0x59ad48);return b(b(_0x5a6c14,_0x2e6c74,_0x59ad48),b(_0x2e6c74,_0x165d33,_0x59ad48),_0x59ad48);}function ne(_0x1b6283,_0x135d30){let [_0x561704,_0x90133e,_0x41c9d4,_0x428715]=_0x1b6283,_0x5092ca=b(_0x561704,_0x90133e,_0x135d30),_0x37b48c=b(_0x90133e,_0x41c9d4,_0x135d30),_0x2b4dc5=b(_0x41c9d4,_0x428715,_0x135d30),_0x5a3e1e=b(_0x5092ca,_0x37b48c,_0x135d30),_0x3b1b03=b(_0x37b48c,_0x2b4dc5,_0x135d30),_0x478d72=b(_0x5a3e1e,_0x3b1b03,_0x135d30);return{'left':[_0x561704,_0x5092ca,_0x5a3e1e,_0x478d72],'right':[_0x478d72,_0x3b1b03,_0x2b4dc5,_0x428715]};}function O(_0x250740,_0xc0a51b,_0x345ecb){const _0x4aff10=_0x5d75;let _0x580f77=_0x345ecb['x']-_0xc0a51b['x'],_0x2d4d1b=_0x345ecb['y']-_0xc0a51b['y'],_0x2f93e5=_0x580f77*_0x580f77+_0x2d4d1b*_0x2d4d1b,_0x5a4687=_0x2f93e5<=g?0x0:Math[_0x4aff10(0x14a)](0x0,Math['min'](0x1,((_0x250740['x']-_0xc0a51b['x'])*_0x580f77+(_0x250740['y']-_0xc0a51b['y'])*_0x2d4d1b)/_0x2f93e5)),_0x5045d2={'x':_0xc0a51b['x']+_0x580f77*_0x5a4687,'y':_0xc0a51b['y']+_0x2d4d1b*_0x5a4687};return{'point':_0x5045d2,'ratio':_0x5a4687,'distance':x(_0x250740,_0x5045d2)};}function re(_0x316cf3,_0x2c511a,_0x16ea29){return O(_0x316cf3,_0x2c511a,_0x16ea29)['distance']**0x2;}function k(_0x41db0d,_0x5c6cd1){const _0x5cb9ec=_0x5d75;if(_0x41db0d[_0x5cb9ec(0x15b)]<=0x2)return _0x41db0d[_0x5cb9ec(0x13c)](_);let _0x527150=0x0,_0x1f759b=0x0,_0xa900a5=_0x41db0d[0x0],_0x5da654=_0x41db0d[_0x41db0d[_0x5cb9ec(0x15b)]-0x1],_0x49d039=_0x5c6cd1*_0x5c6cd1;for(let _0x4ee1c2=0x1;_0x4ee1c2<_0x41db0d[_0x5cb9ec(0x15b)]-0x1;_0x4ee1c2++){let _0x29b206=re(_0x41db0d[_0x4ee1c2],_0xa900a5,_0x5da654);_0x29b206>_0x527150&&(_0x527150=_0x29b206,_0x1f759b=_0x4ee1c2);}if(_0x527150<=_0x49d039)return[_(_0xa900a5),_(_0x5da654)];let _0x29d723=k(_0x41db0d[_0x5cb9ec(0x168)](0x0,_0x1f759b+0x1),_0x5c6cd1),_0x287549=k(_0x41db0d[_0x5cb9ec(0x168)](_0x1f759b),_0x5c6cd1);return[..._0x29d723['slice'](0x0,-0x1),..._0x287549];}function ie(_0x3ebe1e,_0x168b14){var _0x1fd1fb;let _0x55f4a4=_0x3ebe1e[_0x168b14],_0x11235c=_0x3ebe1e[_0x168b14+0x1],_0x177792=(_0x1fd1fb=_0x3ebe1e[_0x168b14-0x1])==null?_0x55f4a4:_0x1fd1fb;return{'x':_0x55f4a4['x']+(_0x11235c['x']-_0x177792['x'])/0x6,'y':_0x55f4a4['y']+(_0x11235c['y']-_0x177792['y'])/0x6};}function A(_0x40ed69,_0x105113){var _0x36c000;let _0x1bee18=_0x40ed69[_0x105113],_0x13e58e=_0x40ed69[_0x105113-0x1],_0x5d1cf4=(_0x36c000=_0x40ed69[_0x105113+0x1])==null?_0x1bee18:_0x36c000;return{'x':_0x1bee18['x']-(_0x5d1cf4['x']-_0x13e58e['x'])/0x6,'y':_0x1bee18['y']-(_0x5d1cf4['y']-_0x13e58e['y'])/0x6};}function j(_0x5a8e8d,_0x34b014){const _0x325343=_0x5d75;var _0x54c804,_0x319837;let _0x173d6c=_0x5a8e8d[_0x325343(0x143)][_0x34b014],_0x1ce829=(_0x54c804=_0x5a8e8d['anchors'][_0x34b014-0x1])==null?_0x5a8e8d[_0x325343(0x177)]?_0x5a8e8d[_0x325343(0x143)][_0x5a8e8d['anchors'][_0x325343(0x15b)]-0x1]:null:_0x54c804,_0x21c725=(_0x319837=_0x5a8e8d['anchors'][_0x34b014+0x1])==null?_0x5a8e8d[_0x325343(0x177)]?_0x5a8e8d[_0x325343(0x143)][0x0]:null:_0x319837,_0x3b9465=_0x1ce829&&_0x21c725?S({'x':_0x21c725['x']-_0x1ce829['x'],'y':_0x21c725['y']-_0x1ce829['y']}):_0x21c725?S({'x':_0x21c725['x']-_0x173d6c['x'],'y':_0x21c725['y']-_0x173d6c['y']}):_0x1ce829?S({'x':_0x173d6c['x']-_0x1ce829['x'],'y':_0x173d6c['y']-_0x1ce829['y']}):{'x':0x1,'y':0x0},_0x1bb118=_0x1ce829&&_0x21c725?Math[_0x325343(0x14a)](0x32,x(_0x1ce829,_0x21c725)/0x4):0x32;return{'in':{'x':_0x173d6c['x']-_0x3b9465['x']*_0x1bb118,'y':_0x173d6c['y']-_0x3b9465['y']*_0x1bb118},'out':{'x':_0x173d6c['x']+_0x3b9465['x']*_0x1bb118,'y':_0x173d6c['y']+_0x3b9465['y']*_0x1bb118}};}function M(_0x331f34,_0x225f45){const _0x1635fa=_0x5d75;let _0x5c5948=_0x331f34[_0x225f45],_0x34a908=_0x225f45==='in'?_0x1635fa(0x139):'in',_0x1d5124=_0x331f34[_0x34a908];if(_0x5c5948){if(_0x331f34['pointType']==='symmetric'){_0x331f34[_0x34a908]=C(_0x331f34,_0x5c5948);return;}_0x331f34[_0x1635fa(0x155)]===_0x1635fa(0x146)&&(_0x331f34[_0x34a908]=C(_0x331f34,_0x5c5948,_0x1d5124?x(_0x331f34,_0x1d5124):x(_0x331f34,_0x5c5948)));}}function ae(_0x32764f,_0x140103){const _0x501204=_0x5d75;let _0x4d5d43=y(_0x32764f);return!_0x140103||_0x4d5d43['closed']||_0x4d5d43[_0x501204(0x143)][_0x501204(0x15b)]===0x0||_0x4d5d43[_0x501204(0x143)][_0x501204(0x18d)]({'id':_0x501204(0x144),'x':_0x140103['x'],'y':_0x140103['y'],'pointType':_0x501204(0x188)}),_0x4d5d43;}function oe(_0x95db77,_0x335c81={}){const _0x3ff665=_0x5d75;var _0x455e4b,_0x4a9cd2;let _0x42e572=Math[_0x3ff665(0x14a)](0x0,(_0x455e4b=_0x335c81[_0x3ff665(0x178)])==null?Math['max'](0x4,_0x95db77['width']*0.35):_0x455e4b),_0x5c818d=(_0x4a9cd2=_0x335c81[_0x3ff665(0x194)])==null?_0x298564=>_0x3ff665(0x152)+_0x298564:_0x4a9cd2,_0x519604=k(_0x95db77['points'],_0x42e572),_0x4b6ddc=_0x519604[_0x3ff665(0x13c)]((_0x40e9b8,_0x42a616)=>({'id':_0x5c818d(_0x42a616),'x':_0x40e9b8['x'],'y':_0x40e9b8['y'],'pointType':_0x3ff665(0x13b)}));for(let _0x265a12=0x0;_0x265a12<_0x4b6ddc[_0x3ff665(0x15b)]-0x1;_0x265a12++)_0x4b6ddc[_0x265a12][_0x3ff665(0x139)]=ie(_0x519604,_0x265a12),_0x4b6ddc[_0x265a12+0x1]['in']=A(_0x519604,_0x265a12+0x1);return{'kind':_0x3ff665(0x195),'closed':!0x1,'anchors':_0x4b6ddc};}function se(_0x208dd5,_0x5e25e0,_0x2962f8){const _0x5cda09=_0x5d75;let _0x38bab0=null,_0x16fa07=[_0x5cda09(0x163),'in',_0x5cda09(0x139)];return _0x208dd5[_0x5cda09(0x143)]['forEach']((_0x8f85da,_0x3ef198)=>{const _0x1731ad=_0x5cda09;_0x16fa07[_0x1731ad(0x193)](_0x405653=>{const _0x4c7e97=_0x1731ad;if(!E(_0x208dd5,_0x3ef198,_0x405653))return;let _0xb85dac=te(_0x8f85da,_0x405653);if(!_0xb85dac)return;let _0x3d87c9=x(_0x5e25e0,_0xb85dac);_0x3d87c9>_0x2962f8||_0x38bab0&&_0x3d87c9>=_0x38bab0[_0x4c7e97(0x17d)]||(_0x38bab0={'handle':{'kind':_0x405653,'anchorId':_0x8f85da['id']},'point':_(_0xb85dac),'distance':_0x3d87c9});});}),_0x38bab0;}function ce(_0x4655b2,_0x265026,_0x1c40a5){const _0x41aee7=_0x5d75;let _0x4973e7=null,_0x2466ba=_0x4655b2['closed']?_0x4655b2[_0x41aee7(0x143)][_0x41aee7(0x15b)]:Math[_0x41aee7(0x14a)](0x0,_0x4655b2[_0x41aee7(0x143)][_0x41aee7(0x15b)]-0x1);for(let _0x31f18d=0x0;_0x31f18d<_0x2466ba;_0x31f18d++){let _0x51465b=T(_0x4655b2,_0x31f18d);if(!_0x51465b)continue;let _0x3e8297=D(_0x51465b,0x0);for(let _0x16aaad=0x1;_0x16aaad<=0x20;_0x16aaad++){let _0x43e783=D(_0x51465b,_0x16aaad/0x20),_0x117a70=O(_0x265026,_0x3e8297,_0x43e783),_0x552101=(_0x16aaad-0x1+_0x117a70[_0x41aee7(0x16e)])/0x20;(!_0x4973e7||_0x117a70['distance']<_0x4973e7[_0x41aee7(0x17d)])&&(_0x4973e7={'segmentIndex':_0x31f18d,'t':_0x552101,'point':_0x117a70['point'],'distance':_0x117a70['distance']}),_0x3e8297=_0x43e783;}}return _0x4973e7&&_0x4973e7[_0x41aee7(0x17d)]<=_0x1c40a5?_0x4973e7:null;}function le(_0x1b6e6c,_0x1718f5,_0x31090c){const _0x3d0d01=_0x5d75;let _0xa81a9b=y(_0x1b6e6c),_0x1dce41=w(_0xa81a9b,_0x1718f5[_0x3d0d01(0x174)]),_0x2870c8=T(_0xa81a9b,_0x1718f5[_0x3d0d01(0x174)]);if(!_0x1dce41||!_0x2870c8)return _0xa81a9b;let _0x59758a=ne(_0x2870c8,Math['max'](0x0,Math[_0x3d0d01(0x18b)](0x1,_0x1718f5['t']))),_0x337435={'id':_0x31090c(),'x':_0x59758a['left'][0x3]['x'],'y':_0x59758a[_0x3d0d01(0x175)][0x3]['y'],'in':_(_0x59758a[_0x3d0d01(0x175)][0x2]),'out':_(_0x59758a[_0x3d0d01(0x182)][0x1]),'pointType':_0x3d0d01(0x13b)};return _0xa81a9b['anchors'][_0x1dce41[_0x3d0d01(0x15a)]][_0x3d0d01(0x139)]=_(_0x59758a[_0x3d0d01(0x175)][0x1]),_0xa81a9b[_0x3d0d01(0x143)][_0x1dce41[_0x3d0d01(0x189)]]['in']=_(_0x59758a[_0x3d0d01(0x182)][0x2]),_0xa81a9b['anchors'][_0x3d0d01(0x16c)](_0x1dce41[_0x3d0d01(0x15a)]+0x1,0x0,_0x337435),_0xa81a9b;}function ue(_0x1d9e10,_0x3e5793){const _0x287dcd=_0x5d75;let _0x4e4cf8=y(_0x1d9e10);return _0x4e4cf8['anchors']=_0x4e4cf8[_0x287dcd(0x143)][_0x287dcd(0x164)](_0x457dfe=>_0x457dfe['id']!==_0x3e5793),_0x4e4cf8['closed']&&_0x4e4cf8[_0x287dcd(0x143)]['length']<0x3&&(_0x4e4cf8['closed']=!0x1),_0x4e4cf8;}function N(_0x3d3393,_0x3a4f81,_0x181438){const _0x2db96c=_0x5d75;let _0x2fe297=y(_0x3d3393),_0x1999b5=_0x2fe297[_0x2db96c(0x143)][_0x2db96c(0x150)](_0x3a3f41=>_0x3a3f41['id']===_0x3a4f81),_0x2055e7=_0x2fe297['anchors'][_0x1999b5];if(!_0x2055e7)return _0x2fe297;if(_0x2055e7['pointType']=_0x181438,_0x181438===_0x2db96c(0x188))return delete _0x2055e7['in'],delete _0x2055e7[_0x2db96c(0x139)],_0x2fe297;let _0x3c9431=j(_0x2fe297,_0x1999b5);if(_0x2055e7['in']=_0x2055e7['in']?_(_0x2055e7['in']):_0x3c9431['in'],_0x2055e7[_0x2db96c(0x139)]=_0x2055e7['out']?_(_0x2055e7[_0x2db96c(0x139)]):_0x3c9431[_0x2db96c(0x139)],_0x181438===_0x2db96c(0x13f)){let _0x16372e=Math['max'](x(_0x2055e7,_0x2055e7['in']),x(_0x2055e7,_0x2055e7['out']),0x32),_0xf3593c=S({'x':_0x2055e7[_0x2db96c(0x139)]['x']-_0x2055e7['x'],'y':_0x2055e7['out']['y']-_0x2055e7['y']});_0x2055e7[_0x2db96c(0x139)]={'x':_0x2055e7['x']+_0xf3593c['x']*_0x16372e,'y':_0x2055e7['y']+_0xf3593c['y']*_0x16372e},_0x2055e7['in']={'x':_0x2055e7['x']-_0xf3593c['x']*_0x16372e,'y':_0x2055e7['y']-_0xf3593c['y']*_0x16372e};}else _0x181438===_0x2db96c(0x146)&&M(_0x2055e7,_0x2db96c(0x139));return _0x2fe297;}function P(_0x8faea0,_0x4d05f0){const _0x587d9c=_0x5d75;var _0x474a43;let _0x68e57f=_0x8faea0[_0x587d9c(0x143)][_0x587d9c(0x154)](_0x33bfe9=>_0x33bfe9['id']===_0x4d05f0),_0x19db64=(_0x474a43=_0x68e57f==null?void 0x0:_0x68e57f[_0x587d9c(0x155)])==null?_0x587d9c(0x188):_0x474a43;return N(_0x8faea0,_0x4d05f0,_0x19db64===_0x587d9c(0x188)?_0x587d9c(0x146):_0x19db64===_0x587d9c(0x146)?'symmetric':_0x19db64===_0x587d9c(0x13f)?_0x587d9c(0x13b):_0x587d9c(0x188));}function F(_0x3530c9,_0x3e48d2,_0x2043a9){const _0x4a851f=_0x5d75;let _0x232366=y(_0x3530c9),_0x5e5d14=_0x232366['anchors'][_0x4a851f(0x154)](_0x34c602=>_0x34c602['id']===_0x3e48d2['anchorId']);if(!_0x5e5d14)return _0x232366;if(_0x3e48d2[_0x4a851f(0x172)]===_0x4a851f(0x163)){let _0x831642={'x':_0x2043a9['x']-_0x5e5d14['x'],'y':_0x2043a9['y']-_0x5e5d14['y']};return _0x5e5d14['x']=_0x2043a9['x'],_0x5e5d14['y']=_0x2043a9['y'],_0x5e5d14['in']&&(_0x5e5d14['in']={'x':_0x5e5d14['in']['x']+_0x831642['x'],'y':_0x5e5d14['in']['y']+_0x831642['y']}),_0x5e5d14[_0x4a851f(0x139)]&&(_0x5e5d14[_0x4a851f(0x139)]={'x':_0x5e5d14[_0x4a851f(0x139)]['x']+_0x831642['x'],'y':_0x5e5d14[_0x4a851f(0x139)]['y']+_0x831642['y']}),_0x232366;}return _0x5e5d14[_0x3e48d2['kind']]=_(_0x2043a9),_0x5e5d14[_0x4a851f(0x155)]==='corner'&&(_0x5e5d14['pointType']=_0x4a851f(0x13b)),M(_0x5e5d14,_0x3e48d2[_0x4a851f(0x172)]),_0x232366;}const I=1e-9;function L(_0x2563c6){const _0x12a095=_0x5d75;let _0x407f4f=Math[_0x12a095(0x16d)](_0x2563c6*0x2710)/0x2710;return Object['is'](_0x407f4f,-0x0)?'0':String(_0x407f4f);}function R(_0x6b4dcc){return L(_0x6b4dcc['x'])+'\x20'+L(_0x6b4dcc['y']);}function z(_0x1e0f2c,_0x2de331){return{'x':_0x1e0f2c['x']-_0x2de331['x'],'y':_0x1e0f2c['y']-_0x2de331['y']};}function B(_0xacfda9,_0x2e249b,_0x98a8a6,_0x3ace9c,_0x2d3f80){let _0x157773=0x1-_0x2d3f80;return{'x':_0x157773*_0x157773*_0x157773*_0xacfda9['x']+0x3*_0x157773*_0x157773*_0x2d3f80*_0x2e249b['x']+0x3*_0x157773*_0x2d3f80*_0x2d3f80*_0x98a8a6['x']+_0x2d3f80*_0x2d3f80*_0x2d3f80*_0x3ace9c['x'],'y':_0x157773*_0x157773*_0x157773*_0xacfda9['y']+0x3*_0x157773*_0x157773*_0x2d3f80*_0x2e249b['y']+0x3*_0x157773*_0x2d3f80*_0x2d3f80*_0x98a8a6['y']+_0x2d3f80*_0x2d3f80*_0x2d3f80*_0x3ace9c['y']};}function V(_0x4f5ce8,_0xba8f6f,_0x5cc759,_0x43106a){const _0x1c5686=_0x5d75;let _0x2c581c=-_0x4f5ce8+0x3*_0xba8f6f-0x3*_0x5cc759+_0x43106a,_0xa4545c=0x3*_0x4f5ce8-0x6*_0xba8f6f+0x3*_0x5cc759,_0x2d2f6d=-0x3*_0x4f5ce8+0x3*_0xba8f6f,_0x2df6c3=[];if(Math[_0x1c5686(0x171)](_0x2c581c)<I){if(Math[_0x1c5686(0x171)](_0xa4545c)<I)return _0x2df6c3;let _0x5d7fd2=-_0x2d2f6d/(0x2*_0xa4545c);return _0x5d7fd2>0x0&&_0x5d7fd2<0x1&&_0x2df6c3[_0x1c5686(0x18d)](_0x5d7fd2),_0x2df6c3;}let _0x2173b7=_0xa4545c*_0xa4545c-0x3*_0x2c581c*_0x2d2f6d;if(_0x2173b7<0x0)return _0x2df6c3;let _0x16cc2e=Math[_0x1c5686(0x186)](Math[_0x1c5686(0x14a)](0x0,_0x2173b7)),_0x3f270f=(-_0xa4545c+_0x16cc2e)/(0x3*_0x2c581c),_0x3c4d7c=(-_0xa4545c-_0x16cc2e)/(0x3*_0x2c581c);return _0x3f270f>0x0&&_0x3f270f<0x1&&_0x2df6c3['push'](_0x3f270f),_0x3c4d7c>0x0&&_0x3c4d7c<0x1&&Math[_0x1c5686(0x171)](_0x3c4d7c-_0x3f270f)>I&&_0x2df6c3['push'](_0x3c4d7c),_0x2df6c3;}function H(_0x363c5d,_0x468aa2,_0x37313d,_0x2b50a2,_0xc68336){const _0x4618cf=_0x5d75;_0x363c5d[_0x4618cf(0x18d)](_0x468aa2,_0xc68336),new Set([...V(_0x468aa2['x'],_0x37313d['x'],_0x2b50a2['x'],_0xc68336['x']),...V(_0x468aa2['y'],_0x37313d['y'],_0x2b50a2['y'],_0xc68336['y'])])[_0x4618cf(0x193)](_0x3f830d=>{const _0x12bb73=_0x4618cf;_0x363c5d[_0x12bb73(0x18d)](B(_0x468aa2,_0x37313d,_0x2b50a2,_0xc68336,_0x3f830d));});}function U(_0x442e04){const _0xbe0606=_0x5d75;let _0x350ec2=_0x442e04[_0xbe0606(0x143)];if(_0x350ec2[_0xbe0606(0x15b)]<=0x1)return _0x350ec2;let _0x2aed2d=[];for(let _0x396f42=0x1;_0x396f42<_0x350ec2[_0xbe0606(0x15b)];_0x396f42++){var _0x5e79a9,_0x2f4f9b;let _0x5ebdf1=_0x350ec2[_0x396f42-0x1],_0xe9b299=_0x350ec2[_0x396f42];H(_0x2aed2d,_0x5ebdf1,(_0x5e79a9=_0x5ebdf1['out'])==null?_0x5ebdf1:_0x5e79a9,(_0x2f4f9b=_0xe9b299['in'])==null?_0xe9b299:_0x2f4f9b,_0xe9b299);}if(_0x442e04[_0xbe0606(0x177)]&&_0x350ec2[_0xbe0606(0x15b)]>0x1){var _0x3a2839,_0x32de18;let _0x3b4a69=_0x350ec2[_0x350ec2[_0xbe0606(0x15b)]-0x1],_0x2d8f81=_0x350ec2[0x0];H(_0x2aed2d,_0x3b4a69,(_0x3a2839=_0x3b4a69[_0xbe0606(0x139)])==null?_0x3b4a69:_0x3a2839,(_0x32de18=_0x2d8f81['in'])==null?_0x2d8f81:_0x32de18,_0x2d8f81);}return _0x2aed2d;}function de(_0x4a97cb){const _0x2b4158=_0x5d75;let _0x4e941c=_0x4a97cb['points'];if(_0x4e941c[_0x2b4158(0x15b)]<=0x1)return _0x4e941c;let _0x57784e=[];for(let _0x576090=0x0;_0x576090<_0x4e941c[_0x2b4158(0x15b)]-0x1;_0x576090++){var _0xf30f9c,_0x4b5c5e;let _0x275902=_0x4e941c[_0x576090],_0x40e952=_0x4e941c[_0x576090+0x1],_0x248644=(_0xf30f9c=_0x4e941c[_0x576090-0x1])==null?_0x275902:_0xf30f9c,_0x434f63=(_0x4b5c5e=_0x4e941c[_0x576090+0x2])==null?_0x40e952:_0x4b5c5e;H(_0x57784e,_0x275902,{'x':_0x275902['x']+(_0x40e952['x']-_0x248644['x'])/0x6,'y':_0x275902['y']+(_0x40e952['y']-_0x248644['y'])/0x6},{'x':_0x40e952['x']-(_0x434f63['x']-_0x275902['x'])/0x6,'y':_0x40e952['y']-(_0x434f63['y']-_0x275902['y'])/0x6},_0x40e952);}return _0x57784e;}function fe(_0x9511fb){const _0x4ae3e7=_0x5d75;return _0x9511fb[_0x4ae3e7(0x172)]===_0x4ae3e7(0x195)?U(_0x9511fb):de(_0x9511fb);}function _0x1f0e(){const _0x3ccca4=['out','height','free','map','5280012gcHgel','width','symmetric','1307234iubbVe','string','Rect','anchors','__ink-preview-anchor__','top','smooth','OPERATION','none','_configService','max','onStarting','ink.host-adapter.service','add','_config','2383332VilSed','findIndex','_injector','ink-centerline-','ink.config','find','pointType','createCustomShape','default','color','fillColor','startIndex','length','pluginName','function','6405xMnsxe','disposeWithMe','1.0.0-alpha.7','version','norm','anchor','filter','toPrimitive','SolidLine','join','slice','end','beginInkMode','7111505pjiuRz','splice','round','ratio','points','getOwnPropertyDescriptor','abs','kind','315613ByEvnX','segmentIndex','left','call','closed','tolerance','hypot','registerAdapter','NoFill','opacity','distance','prototype','setConfig','type','start','right','indexOf','UNIVER_UNKNOWN','decorate','sqrt','4890NshZEP','corner','endIndex','get','min','object','push','1524416ZDxBmg','constructor','_adapters','#f54a45','symbol','forEach','createId','pen','packageName','defineProperty','tool','_commandService'];_0x1f0e=function(){return _0x3ccca4;};return _0x1f0e();}function W(_0x4abd06){let _0x31810a=Math['round'](_0x4abd06*0x2710)/0x2710;return Object['is'](_0x31810a,-0x0)?0x0:_0x31810a;}function G(_0x3aefeb){const _0x6e0444=_0x5d75;let _0xcf3dd2=fe(_0x3aefeb);if(_0xcf3dd2[_0x6e0444(0x15b)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x54267d=Math[_0x6e0444(0x18b)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x45fa62=>_0x45fa62['x'])),_0x4166b5=Math[_0x6e0444(0x18b)](..._0xcf3dd2['map'](_0x33a011=>_0x33a011['y'])),_0x233859=Math[_0x6e0444(0x14a)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x29c37e=>_0x29c37e['x'])),_0x132a2a=Math[_0x6e0444(0x14a)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x4e5cbd=>_0x4e5cbd['y']));return{'left':W(_0x54267d),'top':W(_0x4166b5),'width':W(Math['max'](0x1,_0x233859-_0x54267d)),'height':W(Math['max'](0x1,_0x132a2a-_0x4166b5))};}function pe(_0x334233,_0x3d41e9){const _0x3dfa26=_0x5d75;let _0x2648ae=_0x334233[_0x3dfa26(0x143)];if(_0x2648ae[_0x3dfa26(0x15b)]===0x0)return'';let _0x598b18=['M\x20'+R(z(_0x2648ae[0x0],_0x3d41e9))];for(let _0x4bce92=0x1;_0x4bce92<_0x2648ae[_0x3dfa26(0x15b)];_0x4bce92++){var _0x56bf23,_0x2d1a27;let _0x3b9355=_0x2648ae[_0x4bce92-0x1],_0x5b049c=_0x2648ae[_0x4bce92],_0x1f109d=(_0x56bf23=_0x3b9355[_0x3dfa26(0x139)])==null?_0x3b9355:_0x56bf23,_0x40e6d3=(_0x2d1a27=_0x5b049c['in'])==null?_0x5b049c:_0x2d1a27;_0x598b18['push']('C\x20'+R(z(_0x1f109d,_0x3d41e9))+'\x20'+R(z(_0x40e6d3,_0x3d41e9))+'\x20'+R(z(_0x5b049c,_0x3d41e9)));}if(_0x334233[_0x3dfa26(0x177)]&&_0x2648ae[_0x3dfa26(0x15b)]>0x1){var _0x561711,_0x1457c5;let _0x258a7c=_0x2648ae[_0x2648ae[_0x3dfa26(0x15b)]-0x1],_0x216813=_0x2648ae[0x0],_0xe8667c=(_0x561711=_0x258a7c['out'])==null?_0x258a7c:_0x561711,_0x37a844=(_0x1457c5=_0x216813['in'])==null?_0x216813:_0x1457c5;_0x598b18['push']('C\x20'+R(z(_0xe8667c,_0x3d41e9))+'\x20'+R(z(_0x37a844,_0x3d41e9))+'\x20'+R(z(_0x216813,_0x3d41e9))),_0x598b18[_0x3dfa26(0x18d)]('Z');}return _0x598b18[_0x3dfa26(0x167)]('\x20');}function me(_0x5b09e9,_0x4f66d2){const _0x33c9b4=_0x5d75;let _0x1db0de=_0x5b09e9[_0x33c9b4(0x16f)][_0x33c9b4(0x13c)](_0x43b973=>z(_0x43b973,_0x4f66d2));if(_0x1db0de['length']===0x0)return'';if(_0x1db0de[_0x33c9b4(0x15b)]===0x1)return'M\x20'+R(_0x1db0de[0x0]);let _0x3624b6=['M\x20'+R(_0x1db0de[0x0])];for(let _0x792733=0x0;_0x792733<_0x1db0de[_0x33c9b4(0x15b)]-0x1;_0x792733++){var _0x507bf8,_0x594f92;let _0x5885df=_0x1db0de[_0x792733],_0x25455a=_0x1db0de[_0x792733+0x1],_0x48cbfa=(_0x507bf8=_0x1db0de[_0x792733-0x1])==null?_0x5885df:_0x507bf8,_0x3c13b7=(_0x594f92=_0x1db0de[_0x792733+0x2])==null?_0x25455a:_0x594f92,_0x1e02f3={'x':_0x5885df['x']+(_0x25455a['x']-_0x48cbfa['x'])/0x6,'y':_0x5885df['y']+(_0x25455a['y']-_0x48cbfa['y'])/0x6},_0x45d4ba={'x':_0x25455a['x']-(_0x3c13b7['x']-_0x5885df['x'])/0x6,'y':_0x25455a['y']-(_0x3c13b7['y']-_0x5885df['y'])/0x6};_0x3624b6[_0x33c9b4(0x18d)]('C\x20'+R(_0x1e02f3)+'\x20'+R(_0x45d4ba)+'\x20'+R(_0x25455a));}return _0x3624b6[_0x33c9b4(0x167)]('\x20');}function he(_0x141417,_0x520a99){const _0x16b282=_0x5d75;return _0x141417[_0x16b282(0x172)]===_0x16b282(0x195)?pe(_0x141417,_0x520a99):me(_0x141417,_0x520a99);}function ge(_0x1a6011,_0x3afb42){const _0x3f7058=_0x5d75;return _0x3afb42!=null&&_0x3afb42[_0x3f7058(0x158)]?_0x3afb42[_0x3f7058(0x158)]:_0x1a6011['kind']===_0x3f7058(0x195)?_0x3f7058(0x191):_0x1a6011[_0x3f7058(0x158)];}function _e(_0x366021,_0x28ed85){const _0x695865=_0x5d75;return(_0x28ed85==null?void 0x0:_0x28ed85[_0x695865(0x13e)])===void 0x0?_0x366021[_0x695865(0x172)]===_0x695865(0x195)?0x2:_0x366021[_0x695865(0x13e)]:_0x28ed85[_0x695865(0x13e)];}function ve(_0x2b8123,_0x4340cf){const _0x4bc57d=_0x5d75;return(_0x4340cf==null?void 0x0:_0x4340cf[_0x4bc57d(0x17c)])===void 0x0?_0x2b8123[_0x4bc57d(0x172)]===_0x4bc57d(0x195)?void 0x0:_0x2b8123[_0x4bc57d(0x17c)]:_0x4340cf['opacity'];}function _0x5d75(_0x1bc714,_0x4d42ab){_0x1bc714=_0x1bc714-0x136;const _0x1f0e4c=_0x1f0e();let _0x5d75b0=_0x1f0e4c[_0x1bc714];return _0x5d75b0;}function ye(_0x7bb899,_0x2db820){const _0x470b01=_0x5d75;let _0x1e3437=G(_0x7bb899),_0x12d0b4=he(_0x7bb899,{'x':_0x1e3437['left'],'y':_0x1e3437[_0x470b01(0x145)]}),_0x15a7a1=_0x7bb899[_0x470b01(0x172)]===_0x470b01(0x195)&&_0x7bb899[_0x470b01(0x177)],_0xbd4d92=_0x2db820==null?void 0x0:_0x2db820[_0x470b01(0x159)];return{'shapeType':_0x2fc13d[_0x470b01(0x142)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1e3437[_0x470b01(0x13e)],'h':_0x1e3437[_0x470b01(0x13a)],'fill':_0x15a7a1?_0x470b01(0x162):_0x470b01(0x148),'stroke':!0x0,'data':_0x12d0b4,'dataArray':be(_0x7bb899,{'x':_0x1e3437[_0x470b01(0x175)],'y':_0x1e3437['top']})}]},'fill':_0x15a7a1&&_0xbd4d92?{'color':_0xbd4d92,'fillType':_0x157d04['SolidFill']}:{'fillType':_0x157d04[_0x470b01(0x17b)]},'stroke':{'color':ge(_0x7bb899,_0x2db820),'width':_e(_0x7bb899,_0x2db820),'opacity':ve(_0x7bb899,_0x2db820),'lineStrokeType':_0x41a350[_0x470b01(0x166)],'capType':_0x363052['Round'],'lineJoinType':_0x56486c['Round']}};}function K(_0x766837,_0x43fad4){return{'x':_0x766837['x']-_0x43fad4['x'],'y':_0x766837['y']-_0x43fad4['y']};}function be(_0x143aee,_0x4d1d82){const _0x22ba30=_0x5d75;if(_0x143aee[_0x22ba30(0x172)]===_0x22ba30(0x195)){let _0x179f00=_0x143aee[_0x22ba30(0x143)];if(_0x179f00[_0x22ba30(0x15b)]===0x0)return[];let _0x4fb16b=K(_0x179f00[0x0],_0x4d1d82),_0x23f539=[{'command':'M','points':[_0x4fb16b['x'],_0x4fb16b['y']]}];for(let _0x12c749=0x1;_0x12c749<_0x179f00[_0x22ba30(0x15b)];_0x12c749++){var _0x2bb2f3,_0xef5a00;let _0x23fd86=_0x179f00[_0x12c749-0x1],_0x54c1b6=_0x179f00[_0x12c749],_0x296aa1=K((_0x2bb2f3=_0x23fd86[_0x22ba30(0x139)])==null?_0x23fd86:_0x2bb2f3,_0x4d1d82),_0x2242ed=K((_0xef5a00=_0x54c1b6['in'])==null?_0x54c1b6:_0xef5a00,_0x4d1d82),_0x23db98=K(_0x54c1b6,_0x4d1d82);_0x23f539['push']({'command':'C','points':[_0x296aa1['x'],_0x296aa1['y'],_0x2242ed['x'],_0x2242ed['y'],_0x23db98['x'],_0x23db98['y']]});}if(_0x143aee[_0x22ba30(0x177)]&&_0x179f00['length']>0x1){var _0x2656b6,_0x4b44e1;let _0x29f6bd=_0x179f00[_0x179f00[_0x22ba30(0x15b)]-0x1],_0x1168d2=_0x179f00[0x0],_0x3af9f5=K((_0x2656b6=_0x29f6bd[_0x22ba30(0x139)])==null?_0x29f6bd:_0x2656b6,_0x4d1d82),_0x120745=K((_0x4b44e1=_0x1168d2['in'])==null?_0x1168d2:_0x4b44e1,_0x4d1d82),_0x1587f4=K(_0x1168d2,_0x4d1d82);_0x23f539[_0x22ba30(0x18d)]({'command':'C','points':[_0x3af9f5['x'],_0x3af9f5['y'],_0x120745['x'],_0x120745['y'],_0x1587f4['x'],_0x1587f4['y']]}),_0x23f539[_0x22ba30(0x18d)]({'command':'z','points':[]});}return _0x23f539;}let _0x314f03=_0x143aee['points'][_0x22ba30(0x13c)](_0x5d6b03=>K(_0x5d6b03,_0x4d1d82));if(_0x314f03[_0x22ba30(0x15b)]===0x0)return[];let _0x5528aa=[{'command':'M','points':[_0x314f03[0x0]['x'],_0x314f03[0x0]['y']]}];for(let _0x4db741=0x0;_0x4db741<_0x314f03[_0x22ba30(0x15b)]-0x1;_0x4db741++){var _0x1cce6c,_0x3668f2;let _0x29cc40=_0x314f03[_0x4db741],_0x37cdc5=_0x314f03[_0x4db741+0x1],_0x35d8db=(_0x1cce6c=_0x314f03[_0x4db741-0x1])==null?_0x29cc40:_0x1cce6c,_0x58235c=(_0x3668f2=_0x314f03[_0x4db741+0x2])==null?_0x37cdc5:_0x3668f2,_0x332416={'x':_0x29cc40['x']+(_0x37cdc5['x']-_0x35d8db['x'])/0x6,'y':_0x29cc40['y']+(_0x37cdc5['y']-_0x35d8db['y'])/0x6},_0x1ac2ed={'x':_0x37cdc5['x']-(_0x58235c['x']-_0x29cc40['x'])/0x6,'y':_0x37cdc5['y']-(_0x58235c['y']-_0x29cc40['y'])/0x6};_0x5528aa[_0x22ba30(0x18d)]({'command':'C','points':[_0x332416['x'],_0x332416['y'],_0x1ac2ed['x'],_0x1ac2ed['y'],_0x37cdc5['x'],_0x37cdc5['y']]});}return _0x5528aa;}function xe(_0x588b9a){const _0x8e653=_0x5d75;var _0x1f1de2;let {model:_0x1ea07a,sourceModel:_0xecba1=_0x1ea07a,style:_0x3770c8}=_0x588b9a,_0x2078d1=(_0x1f1de2=_0x588b9a[_0x8e653(0x137)])==null?_0x1ea07a[_0x8e653(0x172)]:_0x1f1de2,_0xc349b6=G(_0x1ea07a),_0x4335c9=_0x1ea07a['kind']===_0x8e653(0x195)&&_0x2078d1!==_0x8e653(0x195)?_0x1ea07a:void 0x0;return{'transform':{..._0xc349b6,'rotation':0x0},'shapeData':ye(_0x1ea07a,_0x3770c8),'ink':{'version':0x1,'tool':_0x2078d1,'sourceModel':_0xecba1,..._0x4335c9?{'editModel':_0x4335c9}:{},'normalizedBounds':_0xc349b6}};}var Se='@univerjs-pro/ink',Ce=_0xd9ea97(0x160);function q(_0xf0db8e){'@babel/helpers - typeof';const _0x5d8d4e=_0xd9ea97;return q=typeof Symbol==_0x5d8d4e(0x15d)&&typeof Symbol['iterator']==_0x5d8d4e(0x192)?function(_0x24b45b){return typeof _0x24b45b;}:function(_0x26e7cd){const _0xbf86d7=_0x5d8d4e;return _0x26e7cd&&typeof Symbol==_0xbf86d7(0x15d)&&_0x26e7cd[_0xbf86d7(0x18f)]===Symbol&&_0x26e7cd!==Symbol[_0xbf86d7(0x17e)]?_0xbf86d7(0x192):typeof _0x26e7cd;},q(_0xf0db8e);}function we(_0x371f38,_0x5a98fe){const _0x118f7f=_0xd9ea97;if(q(_0x371f38)!=_0x118f7f(0x18c)||!_0x371f38)return _0x371f38;var _0x5cef0e=_0x371f38[Symbol[_0x118f7f(0x165)]];if(_0x5cef0e!==void 0x0){var _0x4c12fa=_0x5cef0e[_0x118f7f(0x176)](_0x371f38,_0x5a98fe||_0x118f7f(0x157));if(q(_0x4c12fa)!='object')return _0x4c12fa;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5a98fe===_0x118f7f(0x141)?String:Number)(_0x371f38);}function J(_0x207d73){const _0x1e708a=_0xd9ea97;var _0x51aab3=we(_0x207d73,_0x1e708a(0x141));return q(_0x51aab3)==_0x1e708a(0x192)?_0x51aab3:_0x51aab3+'';}function Y(_0x519233,_0x36e28c,_0x4da7f7){const _0x56af46=_0xd9ea97;return(_0x36e28c=J(_0x36e28c))in _0x519233?Object[_0x56af46(0x136)](_0x519233,_0x36e28c,{'value':_0x4da7f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x519233[_0x36e28c]=_0x4da7f7,_0x519233;}const X=_0x1ab48e(_0xd9ea97(0x14c));var Te=class{constructor(){const _0x3e1613=_0xd9ea97;Y(this,_0x3e1613(0x190),[]);}[_0xd9ea97(0x17a)](_0x28cc61){const _0x152a73=_0xd9ea97;return this[_0x152a73(0x190)][_0x152a73(0x18d)](_0x28cc61),_0x29412f(()=>{const _0x565455=_0x152a73;let _0xaa94e7=this[_0x565455(0x190)][_0x565455(0x183)](_0x28cc61);_0xaa94e7>=0x0&&this['_adapters'][_0x565455(0x16c)](_0xaa94e7,0x1);});}['beginInkMode'](_0x4f93b2){const _0x322df5=_0xd9ea97;for(let _0x47f994 of this[_0x322df5(0x190)])if(_0x47f994[_0x322df5(0x16a)](_0x4f93b2))return!0x0;return!0x1;}async[_0xd9ea97(0x156)](_0x4cfe8e){const _0xa467ed=_0xd9ea97;for(let _0x4a6b52 of this[_0xa467ed(0x190)])if(_0x4a6b52['createCustomShape']&&await _0x4a6b52['createCustomShape'](_0x4cfe8e))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x3450b2[_0xd9ea97(0x147)],'handler':(_0x1273c6,_0x1aed1d)=>_0x1aed1d?_0x1273c6[_0xd9ea97(0x18a)](X)[_0xd9ea97(0x16a)](_0x1aed1d):!0x1},Z={};function Q(_0x55af48,_0x31d419){return function(_0x43e9e7,_0x483b20){_0x31d419(_0x43e9e7,_0x483b20,_0x55af48);};}function De(_0x263be4,_0x433ad3,_0x2f01f1,_0x4819fb){const _0x1e66c2=_0xd9ea97;var _0x351722=arguments[_0x1e66c2(0x15b)],_0x269040=_0x351722<0x3?_0x433ad3:_0x4819fb===null?_0x4819fb=Object[_0x1e66c2(0x170)](_0x433ad3,_0x2f01f1):_0x4819fb,_0x543774;if(typeof Reflect=='object'&&typeof Reflect[_0x1e66c2(0x185)]=='function')_0x269040=Reflect[_0x1e66c2(0x185)](_0x263be4,_0x433ad3,_0x2f01f1,_0x4819fb);else{for(var _0x500a5b=_0x263be4['length']-0x1;_0x500a5b>=0x0;_0x500a5b--)(_0x543774=_0x263be4[_0x500a5b])&&(_0x269040=(_0x351722<0x3?_0x543774(_0x269040):_0x351722>0x3?_0x543774(_0x433ad3,_0x2f01f1,_0x269040):_0x543774(_0x433ad3,_0x2f01f1))||_0x269040);}return _0x351722>0x3&&_0x269040&&Object['defineProperty'](_0x433ad3,_0x2f01f1,_0x269040),_0x269040;}let $=class extends _0x205aab{constructor(_0x38ea78=Z,_0x794021,_0x6333bb,_0xe202d0){const _0xeafa4d=_0xd9ea97;super(),this[_0xeafa4d(0x14e)]=_0x38ea78,this['_injector']=_0x794021,this[_0xeafa4d(0x138)]=_0x6333bb,this[_0xeafa4d(0x149)]=_0xe202d0;let {..._0x581cc3}=_0x1239fb({},Z,this['_config']);this[_0xeafa4d(0x149)][_0xeafa4d(0x17f)](_0xeafa4d(0x153),_0x581cc3);}[_0xd9ea97(0x14b)](){const _0x191e72=_0xd9ea97;[[X,{'useClass':Te}]]['forEach'](_0x5cd6c4=>this[_0x191e72(0x151)][_0x191e72(0x14d)](_0x5cd6c4)),this[_0x191e72(0x15f)](this['_commandService']['registerCommand'](Ee));}};Y($,_0xd9ea97(0x15c),'UNIVER_INK_PLUGIN'),Y($,_0xd9ea97(0x196),Se),Y($,_0xd9ea97(0x161),Ce),Y($,_0xd9ea97(0x180),_0x42f687[_0xd9ea97(0x184)]),$=De([_0xbc0f6e(_0x42d00b),Q(0x1,_0x4e3a63(_0x5500c4)),Q(0x2,_0x16de20),Q(0x3,_0x3c718d)],$);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 _0x3265aa=_0xc58c;(function(_0x22c69e,_0x5e28ce){const _0x234c60=_0xc58c,_0xde3f3f=_0x22c69e();while(!![]){try{const _0x575d13=-parseInt(_0x234c60(0x145))/0x1*(parseInt(_0x234c60(0x164))/0x2)+-parseInt(_0x234c60(0x187))/0x3*(-parseInt(_0x234c60(0x17d))/0x4)+-parseInt(_0x234c60(0x142))/0x5*(-parseInt(_0x234c60(0x184))/0x6)+-parseInt(_0x234c60(0x17b))/0x7*(parseInt(_0x234c60(0x179))/0x8)+parseInt(_0x234c60(0x163))/0x9+parseInt(_0x234c60(0x156))/0xa+-parseInt(_0x234c60(0x12d))/0xb;if(_0x575d13===_0x5e28ce)break;else _0xde3f3f['push'](_0xde3f3f['shift']());}catch(_0x4cb105){_0xde3f3f['push'](_0xde3f3f['shift']());}}}(_0x74aa,0xc0adb));import{ShapeFillEnum as _0x41b33d,ShapeLineCapEnum as _0x4f2531,ShapeLineJoinEnum as _0x477814,ShapeLineTypeEnum as _0x1d6f28,ShapeTypeEnum as _0x2890c7}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x361d04}from'@univerjs-pro/license';import{CommandType as _0x26993d,DependentOn as _0x523a19,ICommandService as _0x22c5ef,IConfigService as _0x413199,Inject as _0x1ef38a,Injector as _0x4101f2,Plugin as _0x2d049f,UniverInstanceType as _0x4da895,createIdentifier as _0x17208f,merge as _0x5dbb94,toDisposable as _0x47bed1}from'@univerjs/core';const g=0.0001;function _(_0x44aff3){return{'x':_0x44aff3['x'],'y':_0x44aff3['y']};}function v(_0x182059){const _0x4810b0=_0xc58c;return{..._0x182059,'in':_0x182059['in']?_(_0x182059['in']):void 0x0,'out':_0x182059['out']?_(_0x182059[_0x4810b0(0x136)]):void 0x0};}function y(_0x31b2bb){const _0x292471=_0xc58c;return{'kind':_0x292471(0x157),'closed':_0x31b2bb[_0x292471(0x17e)],'anchors':_0x31b2bb[_0x292471(0x14b)][_0x292471(0x180)](v)};}function b(_0x20ed78,_0x3500aa,_0x4b5432){return{'x':_0x20ed78['x']+(_0x3500aa['x']-_0x20ed78['x'])*_0x4b5432,'y':_0x20ed78['y']+(_0x3500aa['y']-_0x20ed78['y'])*_0x4b5432};}function x(_0x1757cc,_0x13552a){const _0x4e136d=_0xc58c;return Math[_0x4e136d(0x18d)](_0x1757cc['x']-_0x13552a['x'],_0x1757cc['y']-_0x13552a['y']);}function S(_0x3e6cd4){const _0x4cdba2=_0xc58c;let _0x3741f1=Math[_0x4cdba2(0x18d)](_0x3e6cd4['x'],_0x3e6cd4['y']);return _0x3741f1<g?{'x':0x1,'y':0x0}:{'x':_0x3e6cd4['x']/_0x3741f1,'y':_0x3e6cd4['y']/_0x3741f1};}function C(_0x2215bb,_0x4d7f52,_0xfd74a2=x(_0x2215bb,_0x4d7f52)){let _0x57911f=S({'x':_0x2215bb['x']-_0x4d7f52['x'],'y':_0x2215bb['y']-_0x4d7f52['y']});return{'x':_0x2215bb['x']+_0x57911f['x']*_0xfd74a2,'y':_0x2215bb['y']+_0x57911f['y']*_0xfd74a2};}function w(_0x468f21,_0x563560){const _0x505b94=_0xc58c;let {anchors:_0x216174}=_0x468f21;return _0x216174[_0x505b94(0x14e)]<0x2||_0x563560<0x0?null:_0x563560<_0x216174[_0x505b94(0x14e)]-0x1?{'startIndex':_0x563560,'endIndex':_0x563560+0x1,'start':_0x216174[_0x563560],'end':_0x216174[_0x563560+0x1]}:_0x468f21[_0x505b94(0x17e)]&&_0x563560===_0x216174['length']-0x1?{'startIndex':_0x216174[_0x505b94(0x14e)]-0x1,'endIndex':0x0,'start':_0x216174[_0x216174[_0x505b94(0x14e)]-0x1],'end':_0x216174[0x0]}:null;}function T(_0x3234da,_0x2fcb07){const _0x2126dc=_0xc58c;var _0x3d7b6f,_0x38d07d;let _0xd1e1a7=w(_0x3234da,_0x2fcb07);return _0xd1e1a7?[_0xd1e1a7[_0x2126dc(0x146)],(_0x3d7b6f=_0xd1e1a7[_0x2126dc(0x146)][_0x2126dc(0x136)])==null?_0xd1e1a7['start']:_0x3d7b6f,(_0x38d07d=_0xd1e1a7[_0x2126dc(0x15a)]['in'])==null?_0xd1e1a7[_0x2126dc(0x15a)]:_0x38d07d,_0xd1e1a7[_0x2126dc(0x15a)]]:null;}function te(_0x2f1f07,_0xb410e9){var _0x55413a;return _0xb410e9==='anchor'?_0x2f1f07:(_0x55413a=_0x2f1f07[_0xb410e9])==null?null:_0x55413a;}function E(_0x3223f2,_0x1f8aa7,_0x36f4bf){const _0x413f1b=_0xc58c;return _0x36f4bf==='anchor'||_0x3223f2[_0x413f1b(0x17e)]?!0x0:_0x36f4bf==='in'?_0x1f8aa7>0x0:_0x1f8aa7<_0x3223f2[_0x413f1b(0x14b)]['length']-0x1;}function D(_0x5116da,_0x462156){let [_0x3c53a1,_0x681790,_0x53e0e3,_0x29f776]=_0x5116da,_0x32d226=b(_0x3c53a1,_0x681790,_0x462156),_0x4f2512=b(_0x681790,_0x53e0e3,_0x462156),_0x4f69bc=b(_0x53e0e3,_0x29f776,_0x462156);return b(b(_0x32d226,_0x4f2512,_0x462156),b(_0x4f2512,_0x4f69bc,_0x462156),_0x462156);}function ne(_0x2fb6b4,_0x548287){let [_0x2fa8b2,_0x439f4b,_0xf7bfcc,_0x4e0aaa]=_0x2fb6b4,_0x2ea939=b(_0x2fa8b2,_0x439f4b,_0x548287),_0x5edc6c=b(_0x439f4b,_0xf7bfcc,_0x548287),_0x50d147=b(_0xf7bfcc,_0x4e0aaa,_0x548287),_0x48e445=b(_0x2ea939,_0x5edc6c,_0x548287),_0x49a066=b(_0x5edc6c,_0x50d147,_0x548287),_0x15a4d3=b(_0x48e445,_0x49a066,_0x548287);return{'left':[_0x2fa8b2,_0x2ea939,_0x48e445,_0x15a4d3],'right':[_0x15a4d3,_0x49a066,_0x50d147,_0x4e0aaa]};}function O(_0x4f5f0b,_0x4a9516,_0x2a734c){const _0x55929e=_0xc58c;let _0x1e3b2c=_0x2a734c['x']-_0x4a9516['x'],_0xbd0138=_0x2a734c['y']-_0x4a9516['y'],_0x49485b=_0x1e3b2c*_0x1e3b2c+_0xbd0138*_0xbd0138,_0x6b474=_0x49485b<=g?0x0:Math['max'](0x0,Math[_0x55929e(0x18b)](0x1,((_0x4f5f0b['x']-_0x4a9516['x'])*_0x1e3b2c+(_0x4f5f0b['y']-_0x4a9516['y'])*_0xbd0138)/_0x49485b)),_0x12da08={'x':_0x4a9516['x']+_0x1e3b2c*_0x6b474,'y':_0x4a9516['y']+_0xbd0138*_0x6b474};return{'point':_0x12da08,'ratio':_0x6b474,'distance':x(_0x4f5f0b,_0x12da08)};}function re(_0x4e4bf7,_0x5435d3,_0x5680f8){return O(_0x4e4bf7,_0x5435d3,_0x5680f8)['distance']**0x2;}function k(_0x2b210b,_0x35b770){const _0x50b657=_0xc58c;if(_0x2b210b[_0x50b657(0x14e)]<=0x2)return _0x2b210b[_0x50b657(0x180)](_);let _0x5f1e8a=0x0,_0x2e97df=0x0,_0x5a76ae=_0x2b210b[0x0],_0x432329=_0x2b210b[_0x2b210b['length']-0x1],_0x940e29=_0x35b770*_0x35b770;for(let _0x534880=0x1;_0x534880<_0x2b210b[_0x50b657(0x14e)]-0x1;_0x534880++){let _0x207f99=re(_0x2b210b[_0x534880],_0x5a76ae,_0x432329);_0x207f99>_0x5f1e8a&&(_0x5f1e8a=_0x207f99,_0x2e97df=_0x534880);}if(_0x5f1e8a<=_0x940e29)return[_(_0x5a76ae),_(_0x432329)];let _0x16c631=k(_0x2b210b['slice'](0x0,_0x2e97df+0x1),_0x35b770),_0x2ce94b=k(_0x2b210b[_0x50b657(0x141)](_0x2e97df),_0x35b770);return[..._0x16c631['slice'](0x0,-0x1),..._0x2ce94b];}function ie(_0x3ce019,_0x44b146){var _0x4d13d8;let _0x45c534=_0x3ce019[_0x44b146],_0x321d63=_0x3ce019[_0x44b146+0x1],_0x3decd0=(_0x4d13d8=_0x3ce019[_0x44b146-0x1])==null?_0x45c534:_0x4d13d8;return{'x':_0x45c534['x']+(_0x321d63['x']-_0x3decd0['x'])/0x6,'y':_0x45c534['y']+(_0x321d63['y']-_0x3decd0['y'])/0x6};}function A(_0x3f2e9b,_0x46e4af){var _0x46887e;let _0x157669=_0x3f2e9b[_0x46e4af],_0x1db499=_0x3f2e9b[_0x46e4af-0x1],_0x3a6982=(_0x46887e=_0x3f2e9b[_0x46e4af+0x1])==null?_0x157669:_0x46887e;return{'x':_0x157669['x']-(_0x3a6982['x']-_0x1db499['x'])/0x6,'y':_0x157669['y']-(_0x3a6982['y']-_0x1db499['y'])/0x6};}function j(_0x138388,_0x143529){const _0x5e7465=_0xc58c;var _0x59eaab,_0x1052d2;let _0x1f166c=_0x138388[_0x5e7465(0x14b)][_0x143529],_0x266d83=(_0x59eaab=_0x138388[_0x5e7465(0x14b)][_0x143529-0x1])==null?_0x138388['closed']?_0x138388[_0x5e7465(0x14b)][_0x138388['anchors'][_0x5e7465(0x14e)]-0x1]:null:_0x59eaab,_0x55b966=(_0x1052d2=_0x138388[_0x5e7465(0x14b)][_0x143529+0x1])==null?_0x138388[_0x5e7465(0x17e)]?_0x138388[_0x5e7465(0x14b)][0x0]:null:_0x1052d2,_0x51ef38=_0x266d83&&_0x55b966?S({'x':_0x55b966['x']-_0x266d83['x'],'y':_0x55b966['y']-_0x266d83['y']}):_0x55b966?S({'x':_0x55b966['x']-_0x1f166c['x'],'y':_0x55b966['y']-_0x1f166c['y']}):_0x266d83?S({'x':_0x1f166c['x']-_0x266d83['x'],'y':_0x1f166c['y']-_0x266d83['y']}):{'x':0x1,'y':0x0},_0x42ad11=_0x266d83&&_0x55b966?Math[_0x5e7465(0x186)](0x32,x(_0x266d83,_0x55b966)/0x4):0x32;return{'in':{'x':_0x1f166c['x']-_0x51ef38['x']*_0x42ad11,'y':_0x1f166c['y']-_0x51ef38['y']*_0x42ad11},'out':{'x':_0x1f166c['x']+_0x51ef38['x']*_0x42ad11,'y':_0x1f166c['y']+_0x51ef38['y']*_0x42ad11}};}function _0x74aa(){const _0x10aef8=['_commandService','Round','pointType','UNIVER_INK_PLUGIN','registerAdapter','push','SolidLine','find','startIndex','function','disposeWithMe','UNIVER_UNKNOWN','height','kind','abs','ratio','smooth','width','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2584cFhafH','createId','8281ZTLGcb','sqrt','3980vDUTBh','closed','constructor','map','OPERATION','color','_configService','132XCFHVP','createCustomShape','max','2199OjhHMH','registerCommand','anchor','_injector','min','free','hypot','30253102JrUnNk','fillColor','ink-centerline-','segmentIndex','beginInkMode','join','ink.config','distance','packageName','out','get','default','decorate','point','#f54a45','round','symbol','right','anchorId','left','slice','311825gULgan','_adapters','norm','1sCJBPj','start','tool','iterator','opacity','toPrimitive','anchors','__ink-preview-anchor__','ink.operation.start','length','setConfig','tolerance','1.0.0-alpha.8','string','add','@univerjs-pro/ink','symmetric','11834450iTcoya','pen','forEach','points','end','top','getOwnPropertyDescriptor','object','corner','version','call','defineProperty','pluginName','14175810zQsfQN','1876596IbRxVI','splice'];_0x74aa=function(){return _0x10aef8;};return _0x74aa();}function M(_0x4c28b9,_0x1ebab0){const _0x122522=_0xc58c;let _0x37fb75=_0x4c28b9[_0x1ebab0],_0x5df398=_0x1ebab0==='in'?_0x122522(0x136):'in',_0x27bc57=_0x4c28b9[_0x5df398];if(_0x37fb75){if(_0x4c28b9[_0x122522(0x168)]===_0x122522(0x155)){_0x4c28b9[_0x5df398]=C(_0x4c28b9,_0x37fb75);return;}_0x4c28b9[_0x122522(0x168)]===_0x122522(0x176)&&(_0x4c28b9[_0x5df398]=C(_0x4c28b9,_0x37fb75,_0x27bc57?x(_0x4c28b9,_0x27bc57):x(_0x4c28b9,_0x37fb75)));}}function ae(_0x17260a,_0x2528f1){const _0x4a98cb=_0xc58c;let _0x118586=y(_0x17260a);return!_0x2528f1||_0x118586[_0x4a98cb(0x17e)]||_0x118586[_0x4a98cb(0x14b)][_0x4a98cb(0x14e)]===0x0||_0x118586[_0x4a98cb(0x14b)][_0x4a98cb(0x16b)]({'id':_0x4a98cb(0x14c),'x':_0x2528f1['x'],'y':_0x2528f1['y'],'pointType':_0x4a98cb(0x15e)}),_0x118586;}function oe(_0x316cfb,_0x60548f={}){const _0x39c1a1=_0xc58c;var _0x4cee48,_0x3a3034;let _0xd72610=Math['max'](0x0,(_0x4cee48=_0x60548f[_0x39c1a1(0x150)])==null?Math[_0x39c1a1(0x186)](0x4,_0x316cfb[_0x39c1a1(0x177)]*0.35):_0x4cee48),_0x35332a=(_0x3a3034=_0x60548f[_0x39c1a1(0x17a)])==null?_0x4d6d45=>_0x39c1a1(0x12f)+_0x4d6d45:_0x3a3034,_0x31b6f2=k(_0x316cfb[_0x39c1a1(0x159)],_0xd72610),_0x4f026f=_0x31b6f2['map']((_0x1bae72,_0x55f8c5)=>({'id':_0x35332a(_0x55f8c5),'x':_0x1bae72['x'],'y':_0x1bae72['y'],'pointType':'free'}));for(let _0xcd46f3=0x0;_0xcd46f3<_0x4f026f[_0x39c1a1(0x14e)]-0x1;_0xcd46f3++)_0x4f026f[_0xcd46f3][_0x39c1a1(0x136)]=ie(_0x31b6f2,_0xcd46f3),_0x4f026f[_0xcd46f3+0x1]['in']=A(_0x31b6f2,_0xcd46f3+0x1);return{'kind':_0x39c1a1(0x157),'closed':!0x1,'anchors':_0x4f026f};}function se(_0x5e0ef8,_0x1f4627,_0x1329c8){const _0x3eeeff=_0xc58c;let _0x5e88ca=null,_0x13391b=[_0x3eeeff(0x189),'in',_0x3eeeff(0x136)];return _0x5e0ef8['anchors'][_0x3eeeff(0x158)]((_0x5db0d2,_0x52462f)=>{_0x13391b['forEach'](_0x38e48d=>{const _0x1ba6d0=_0xc58c;if(!E(_0x5e0ef8,_0x52462f,_0x38e48d))return;let _0xfe324d=te(_0x5db0d2,_0x38e48d);if(!_0xfe324d)return;let _0x52fba5=x(_0x1f4627,_0xfe324d);_0x52fba5>_0x1329c8||_0x5e88ca&&_0x52fba5>=_0x5e88ca[_0x1ba6d0(0x134)]||(_0x5e88ca={'handle':{'kind':_0x38e48d,'anchorId':_0x5db0d2['id']},'point':_(_0xfe324d),'distance':_0x52fba5});});}),_0x5e88ca;}function ce(_0x4cf40b,_0x3d7f7d,_0x50b4bc){const _0x161bd4=_0xc58c;let _0x2112dd=null,_0x35deb7=_0x4cf40b[_0x161bd4(0x17e)]?_0x4cf40b[_0x161bd4(0x14b)][_0x161bd4(0x14e)]:Math[_0x161bd4(0x186)](0x0,_0x4cf40b['anchors'][_0x161bd4(0x14e)]-0x1);for(let _0x1985a4=0x0;_0x1985a4<_0x35deb7;_0x1985a4++){let _0x3b48c8=T(_0x4cf40b,_0x1985a4);if(!_0x3b48c8)continue;let _0x334b52=D(_0x3b48c8,0x0);for(let _0x5217b7=0x1;_0x5217b7<=0x20;_0x5217b7++){let _0x34591b=D(_0x3b48c8,_0x5217b7/0x20),_0x1bd843=O(_0x3d7f7d,_0x334b52,_0x34591b),_0x547dc9=(_0x5217b7-0x1+_0x1bd843[_0x161bd4(0x175)])/0x20;(!_0x2112dd||_0x1bd843[_0x161bd4(0x134)]<_0x2112dd[_0x161bd4(0x134)])&&(_0x2112dd={'segmentIndex':_0x1985a4,'t':_0x547dc9,'point':_0x1bd843[_0x161bd4(0x13a)],'distance':_0x1bd843[_0x161bd4(0x134)]}),_0x334b52=_0x34591b;}}return _0x2112dd&&_0x2112dd['distance']<=_0x50b4bc?_0x2112dd:null;}function le(_0x211127,_0x288c52,_0x380185){const _0x38b28f=_0xc58c;let _0x4993ad=y(_0x211127),_0x940ab=w(_0x4993ad,_0x288c52[_0x38b28f(0x130)]),_0x2cf1a9=T(_0x4993ad,_0x288c52[_0x38b28f(0x130)]);if(!_0x940ab||!_0x2cf1a9)return _0x4993ad;let _0x3eacee=ne(_0x2cf1a9,Math[_0x38b28f(0x186)](0x0,Math[_0x38b28f(0x18b)](0x1,_0x288c52['t']))),_0x2e631b={'id':_0x380185(),'x':_0x3eacee[_0x38b28f(0x140)][0x3]['x'],'y':_0x3eacee[_0x38b28f(0x140)][0x3]['y'],'in':_(_0x3eacee[_0x38b28f(0x140)][0x2]),'out':_(_0x3eacee[_0x38b28f(0x13e)][0x1]),'pointType':_0x38b28f(0x18c)};return _0x4993ad[_0x38b28f(0x14b)][_0x940ab[_0x38b28f(0x16e)]][_0x38b28f(0x136)]=_(_0x3eacee[_0x38b28f(0x140)][0x1]),_0x4993ad[_0x38b28f(0x14b)][_0x940ab['endIndex']]['in']=_(_0x3eacee[_0x38b28f(0x13e)][0x2]),_0x4993ad[_0x38b28f(0x14b)][_0x38b28f(0x165)](_0x940ab[_0x38b28f(0x16e)]+0x1,0x0,_0x2e631b),_0x4993ad;}function ue(_0x375b85,_0x19ffae){const _0x3f8ef5=_0xc58c;let _0x48e670=y(_0x375b85);return _0x48e670[_0x3f8ef5(0x14b)]=_0x48e670[_0x3f8ef5(0x14b)]['filter'](_0x520a12=>_0x520a12['id']!==_0x19ffae),_0x48e670[_0x3f8ef5(0x17e)]&&_0x48e670[_0x3f8ef5(0x14b)][_0x3f8ef5(0x14e)]<0x3&&(_0x48e670['closed']=!0x1),_0x48e670;}function N(_0x5e0b36,_0x52fc57,_0x18de7b){const _0x3e0d91=_0xc58c;let _0x6aefad=y(_0x5e0b36),_0x4757af=_0x6aefad[_0x3e0d91(0x14b)]['findIndex'](_0x409e16=>_0x409e16['id']===_0x52fc57),_0x4ab263=_0x6aefad[_0x3e0d91(0x14b)][_0x4757af];if(!_0x4ab263)return _0x6aefad;if(_0x4ab263['pointType']=_0x18de7b,_0x18de7b===_0x3e0d91(0x15e))return delete _0x4ab263['in'],delete _0x4ab263[_0x3e0d91(0x136)],_0x6aefad;let _0x17e44c=j(_0x6aefad,_0x4757af);if(_0x4ab263['in']=_0x4ab263['in']?_(_0x4ab263['in']):_0x17e44c['in'],_0x4ab263[_0x3e0d91(0x136)]=_0x4ab263[_0x3e0d91(0x136)]?_(_0x4ab263[_0x3e0d91(0x136)]):_0x17e44c['out'],_0x18de7b===_0x3e0d91(0x155)){let _0x263efa=Math['max'](x(_0x4ab263,_0x4ab263['in']),x(_0x4ab263,_0x4ab263['out']),0x32),_0x409e7b=S({'x':_0x4ab263[_0x3e0d91(0x136)]['x']-_0x4ab263['x'],'y':_0x4ab263[_0x3e0d91(0x136)]['y']-_0x4ab263['y']});_0x4ab263[_0x3e0d91(0x136)]={'x':_0x4ab263['x']+_0x409e7b['x']*_0x263efa,'y':_0x4ab263['y']+_0x409e7b['y']*_0x263efa},_0x4ab263['in']={'x':_0x4ab263['x']-_0x409e7b['x']*_0x263efa,'y':_0x4ab263['y']-_0x409e7b['y']*_0x263efa};}else _0x18de7b===_0x3e0d91(0x176)&&M(_0x4ab263,_0x3e0d91(0x136));return _0x6aefad;}function P(_0x31727b,_0x54b6cb){const _0x165c3f=_0xc58c;var _0x33033f;let _0x290fab=_0x31727b[_0x165c3f(0x14b)][_0x165c3f(0x16d)](_0x4d50d7=>_0x4d50d7['id']===_0x54b6cb),_0x313e32=(_0x33033f=_0x290fab==null?void 0x0:_0x290fab[_0x165c3f(0x168)])==null?_0x165c3f(0x15e):_0x33033f;return N(_0x31727b,_0x54b6cb,_0x313e32==='corner'?_0x165c3f(0x176):_0x313e32==='smooth'?_0x165c3f(0x155):_0x313e32==='symmetric'?_0x165c3f(0x18c):_0x165c3f(0x15e));}function F(_0x121f16,_0x52a303,_0x41cdf6){const _0x442693=_0xc58c;let _0x1e4562=y(_0x121f16),_0x28b743=_0x1e4562[_0x442693(0x14b)][_0x442693(0x16d)](_0x122925=>_0x122925['id']===_0x52a303[_0x442693(0x13f)]);if(!_0x28b743)return _0x1e4562;if(_0x52a303[_0x442693(0x173)]==='anchor'){let _0x344e90={'x':_0x41cdf6['x']-_0x28b743['x'],'y':_0x41cdf6['y']-_0x28b743['y']};return _0x28b743['x']=_0x41cdf6['x'],_0x28b743['y']=_0x41cdf6['y'],_0x28b743['in']&&(_0x28b743['in']={'x':_0x28b743['in']['x']+_0x344e90['x'],'y':_0x28b743['in']['y']+_0x344e90['y']}),_0x28b743[_0x442693(0x136)]&&(_0x28b743[_0x442693(0x136)]={'x':_0x28b743[_0x442693(0x136)]['x']+_0x344e90['x'],'y':_0x28b743[_0x442693(0x136)]['y']+_0x344e90['y']}),_0x1e4562;}return _0x28b743[_0x52a303['kind']]=_(_0x41cdf6),_0x28b743[_0x442693(0x168)]===_0x442693(0x15e)&&(_0x28b743[_0x442693(0x168)]='free'),M(_0x28b743,_0x52a303[_0x442693(0x173)]),_0x1e4562;}const I=1e-9;function L(_0x4dccd8){let _0x3529ea=Math['round'](_0x4dccd8*0x2710)/0x2710;return Object['is'](_0x3529ea,-0x0)?'0':String(_0x3529ea);}function R(_0x16af44){return L(_0x16af44['x'])+'\x20'+L(_0x16af44['y']);}function z(_0x15c7fc,_0x2eccd0){return{'x':_0x15c7fc['x']-_0x2eccd0['x'],'y':_0x15c7fc['y']-_0x2eccd0['y']};}function B(_0x1d2ed9,_0x42747b,_0x4eea84,_0x25d6f6,_0x6590c5){let _0x621540=0x1-_0x6590c5;return{'x':_0x621540*_0x621540*_0x621540*_0x1d2ed9['x']+0x3*_0x621540*_0x621540*_0x6590c5*_0x42747b['x']+0x3*_0x621540*_0x6590c5*_0x6590c5*_0x4eea84['x']+_0x6590c5*_0x6590c5*_0x6590c5*_0x25d6f6['x'],'y':_0x621540*_0x621540*_0x621540*_0x1d2ed9['y']+0x3*_0x621540*_0x621540*_0x6590c5*_0x42747b['y']+0x3*_0x621540*_0x6590c5*_0x6590c5*_0x4eea84['y']+_0x6590c5*_0x6590c5*_0x6590c5*_0x25d6f6['y']};}function V(_0x4dba68,_0x5d2d39,_0x3fe31,_0x147ce2){const _0x454859=_0xc58c;let _0x5a0b4c=-_0x4dba68+0x3*_0x5d2d39-0x3*_0x3fe31+_0x147ce2,_0x11ece5=0x3*_0x4dba68-0x6*_0x5d2d39+0x3*_0x3fe31,_0x53f88f=-0x3*_0x4dba68+0x3*_0x5d2d39,_0x45a9df=[];if(Math[_0x454859(0x174)](_0x5a0b4c)<I){if(Math[_0x454859(0x174)](_0x11ece5)<I)return _0x45a9df;let _0x2534f3=-_0x53f88f/(0x2*_0x11ece5);return _0x2534f3>0x0&&_0x2534f3<0x1&&_0x45a9df['push'](_0x2534f3),_0x45a9df;}let _0x372ab6=_0x11ece5*_0x11ece5-0x3*_0x5a0b4c*_0x53f88f;if(_0x372ab6<0x0)return _0x45a9df;let _0x6d7590=Math[_0x454859(0x17c)](Math['max'](0x0,_0x372ab6)),_0x1c3c27=(-_0x11ece5+_0x6d7590)/(0x3*_0x5a0b4c),_0x1a9298=(-_0x11ece5-_0x6d7590)/(0x3*_0x5a0b4c);return _0x1c3c27>0x0&&_0x1c3c27<0x1&&_0x45a9df['push'](_0x1c3c27),_0x1a9298>0x0&&_0x1a9298<0x1&&Math[_0x454859(0x174)](_0x1a9298-_0x1c3c27)>I&&_0x45a9df[_0x454859(0x16b)](_0x1a9298),_0x45a9df;}function _0xc58c(_0x41e90d,_0x1043a7){_0x41e90d=_0x41e90d-0x12d;const _0x74aaf2=_0x74aa();let _0xc58c62=_0x74aaf2[_0x41e90d];return _0xc58c62;}function H(_0x5935d3,_0x53f6fa,_0x355587,_0x48d2ea,_0x398387){const _0x66d754=_0xc58c;_0x5935d3[_0x66d754(0x16b)](_0x53f6fa,_0x398387),new Set([...V(_0x53f6fa['x'],_0x355587['x'],_0x48d2ea['x'],_0x398387['x']),...V(_0x53f6fa['y'],_0x355587['y'],_0x48d2ea['y'],_0x398387['y'])])[_0x66d754(0x158)](_0x105d4a=>{const _0x37d0c2=_0x66d754;_0x5935d3[_0x37d0c2(0x16b)](B(_0x53f6fa,_0x355587,_0x48d2ea,_0x398387,_0x105d4a));});}function U(_0x2c6357){const _0x12cde8=_0xc58c;let _0x534a04=_0x2c6357[_0x12cde8(0x14b)];if(_0x534a04[_0x12cde8(0x14e)]<=0x1)return _0x534a04;let _0x17054e=[];for(let _0x5d5640=0x1;_0x5d5640<_0x534a04['length'];_0x5d5640++){var _0x1f8cfa,_0x48391e;let _0x3ca47d=_0x534a04[_0x5d5640-0x1],_0x4a61db=_0x534a04[_0x5d5640];H(_0x17054e,_0x3ca47d,(_0x1f8cfa=_0x3ca47d['out'])==null?_0x3ca47d:_0x1f8cfa,(_0x48391e=_0x4a61db['in'])==null?_0x4a61db:_0x48391e,_0x4a61db);}if(_0x2c6357['closed']&&_0x534a04[_0x12cde8(0x14e)]>0x1){var _0x2dc982,_0x4f726d;let _0x1513fe=_0x534a04[_0x534a04[_0x12cde8(0x14e)]-0x1],_0x458fb5=_0x534a04[0x0];H(_0x17054e,_0x1513fe,(_0x2dc982=_0x1513fe[_0x12cde8(0x136)])==null?_0x1513fe:_0x2dc982,(_0x4f726d=_0x458fb5['in'])==null?_0x458fb5:_0x4f726d,_0x458fb5);}return _0x17054e;}function de(_0x3d585f){const _0x1f5c51=_0xc58c;let _0x4de0a7=_0x3d585f[_0x1f5c51(0x159)];if(_0x4de0a7[_0x1f5c51(0x14e)]<=0x1)return _0x4de0a7;let _0x4eef24=[];for(let _0x4807d0=0x0;_0x4807d0<_0x4de0a7[_0x1f5c51(0x14e)]-0x1;_0x4807d0++){var _0x470852,_0x363ff8;let _0x34bf1f=_0x4de0a7[_0x4807d0],_0x5753cb=_0x4de0a7[_0x4807d0+0x1],_0x29d63a=(_0x470852=_0x4de0a7[_0x4807d0-0x1])==null?_0x34bf1f:_0x470852,_0x5da5ec=(_0x363ff8=_0x4de0a7[_0x4807d0+0x2])==null?_0x5753cb:_0x363ff8;H(_0x4eef24,_0x34bf1f,{'x':_0x34bf1f['x']+(_0x5753cb['x']-_0x29d63a['x'])/0x6,'y':_0x34bf1f['y']+(_0x5753cb['y']-_0x29d63a['y'])/0x6},{'x':_0x5753cb['x']-(_0x5da5ec['x']-_0x34bf1f['x'])/0x6,'y':_0x5753cb['y']-(_0x5da5ec['y']-_0x34bf1f['y'])/0x6},_0x5753cb);}return _0x4eef24;}function fe(_0x29a319){const _0x44d2e5=_0xc58c;return _0x29a319[_0x44d2e5(0x173)]===_0x44d2e5(0x157)?U(_0x29a319):de(_0x29a319);}function W(_0x44e055){const _0x4e2f13=_0xc58c;let _0x23a694=Math[_0x4e2f13(0x13c)](_0x44e055*0x2710)/0x2710;return Object['is'](_0x23a694,-0x0)?0x0:_0x23a694;}function G(_0x232735){const _0x18aac0=_0xc58c;let _0x3ab732=fe(_0x232735);if(_0x3ab732[_0x18aac0(0x14e)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x1b5f4b=Math[_0x18aac0(0x18b)](..._0x3ab732[_0x18aac0(0x180)](_0xf0d56d=>_0xf0d56d['x'])),_0x1c3534=Math[_0x18aac0(0x18b)](..._0x3ab732[_0x18aac0(0x180)](_0x2688d3=>_0x2688d3['y'])),_0x373614=Math[_0x18aac0(0x186)](..._0x3ab732['map'](_0x356e74=>_0x356e74['x'])),_0x15e6fc=Math[_0x18aac0(0x186)](..._0x3ab732[_0x18aac0(0x180)](_0x3cdf71=>_0x3cdf71['y']));return{'left':W(_0x1b5f4b),'top':W(_0x1c3534),'width':W(Math[_0x18aac0(0x186)](0x1,_0x373614-_0x1b5f4b)),'height':W(Math[_0x18aac0(0x186)](0x1,_0x15e6fc-_0x1c3534))};}function pe(_0x3cc005,_0x537c2b){const _0x218f68=_0xc58c;let _0x51208c=_0x3cc005[_0x218f68(0x14b)];if(_0x51208c['length']===0x0)return'';let _0x9f2a9=['M\x20'+R(z(_0x51208c[0x0],_0x537c2b))];for(let _0x1b40d7=0x1;_0x1b40d7<_0x51208c[_0x218f68(0x14e)];_0x1b40d7++){var _0x1397c7,_0x45f063;let _0x24ee9e=_0x51208c[_0x1b40d7-0x1],_0x9e013e=_0x51208c[_0x1b40d7],_0x21f76e=(_0x1397c7=_0x24ee9e['out'])==null?_0x24ee9e:_0x1397c7,_0x59cf44=(_0x45f063=_0x9e013e['in'])==null?_0x9e013e:_0x45f063;_0x9f2a9[_0x218f68(0x16b)]('C\x20'+R(z(_0x21f76e,_0x537c2b))+'\x20'+R(z(_0x59cf44,_0x537c2b))+'\x20'+R(z(_0x9e013e,_0x537c2b)));}if(_0x3cc005['closed']&&_0x51208c['length']>0x1){var _0x335207,_0x271a81;let _0x2fef1e=_0x51208c[_0x51208c['length']-0x1],_0x3422e3=_0x51208c[0x0],_0x4db695=(_0x335207=_0x2fef1e[_0x218f68(0x136)])==null?_0x2fef1e:_0x335207,_0x11784b=(_0x271a81=_0x3422e3['in'])==null?_0x3422e3:_0x271a81;_0x9f2a9[_0x218f68(0x16b)]('C\x20'+R(z(_0x4db695,_0x537c2b))+'\x20'+R(z(_0x11784b,_0x537c2b))+'\x20'+R(z(_0x3422e3,_0x537c2b))),_0x9f2a9[_0x218f68(0x16b)]('Z');}return _0x9f2a9[_0x218f68(0x132)]('\x20');}function me(_0x10bf5d,_0x62a0c0){const _0xf234ae=_0xc58c;let _0x798c1e=_0x10bf5d['points'][_0xf234ae(0x180)](_0x2ae5cc=>z(_0x2ae5cc,_0x62a0c0));if(_0x798c1e['length']===0x0)return'';if(_0x798c1e[_0xf234ae(0x14e)]===0x1)return'M\x20'+R(_0x798c1e[0x0]);let _0x27cac0=['M\x20'+R(_0x798c1e[0x0])];for(let _0x431142=0x0;_0x431142<_0x798c1e[_0xf234ae(0x14e)]-0x1;_0x431142++){var _0x283a2b,_0x38b0f0;let _0x32a746=_0x798c1e[_0x431142],_0x44c319=_0x798c1e[_0x431142+0x1],_0x9eb338=(_0x283a2b=_0x798c1e[_0x431142-0x1])==null?_0x32a746:_0x283a2b,_0x447754=(_0x38b0f0=_0x798c1e[_0x431142+0x2])==null?_0x44c319:_0x38b0f0,_0x1a7d5c={'x':_0x32a746['x']+(_0x44c319['x']-_0x9eb338['x'])/0x6,'y':_0x32a746['y']+(_0x44c319['y']-_0x9eb338['y'])/0x6},_0x5917f4={'x':_0x44c319['x']-(_0x447754['x']-_0x32a746['x'])/0x6,'y':_0x44c319['y']-(_0x447754['y']-_0x32a746['y'])/0x6};_0x27cac0[_0xf234ae(0x16b)]('C\x20'+R(_0x1a7d5c)+'\x20'+R(_0x5917f4)+'\x20'+R(_0x44c319));}return _0x27cac0['join']('\x20');}function he(_0x1d4649,_0x4ef855){const _0x35defd=_0xc58c;return _0x1d4649[_0x35defd(0x173)]==='pen'?pe(_0x1d4649,_0x4ef855):me(_0x1d4649,_0x4ef855);}function ge(_0xc272c6,_0x2f17e4){const _0x110c81=_0xc58c;return _0x2f17e4!=null&&_0x2f17e4[_0x110c81(0x182)]?_0x2f17e4[_0x110c81(0x182)]:_0xc272c6[_0x110c81(0x173)]===_0x110c81(0x157)?_0x110c81(0x13b):_0xc272c6['color'];}function _e(_0xe14770,_0x52da6e){const _0x960a65=_0xc58c;return(_0x52da6e==null?void 0x0:_0x52da6e['width'])===void 0x0?_0xe14770[_0x960a65(0x173)]===_0x960a65(0x157)?0x2:_0xe14770[_0x960a65(0x177)]:_0x52da6e[_0x960a65(0x177)];}function ve(_0x74adda,_0x3c1333){const _0x1a5333=_0xc58c;return(_0x3c1333==null?void 0x0:_0x3c1333['opacity'])===void 0x0?_0x74adda[_0x1a5333(0x173)]===_0x1a5333(0x157)?void 0x0:_0x74adda[_0x1a5333(0x149)]:_0x3c1333['opacity'];}function ye(_0x209983,_0x275e03){const _0x109b09=_0xc58c;let _0x170c7e=G(_0x209983),_0x45685a=he(_0x209983,{'x':_0x170c7e[_0x109b09(0x140)],'y':_0x170c7e[_0x109b09(0x15b)]}),_0x42f680=_0x209983[_0x109b09(0x173)]===_0x109b09(0x157)&&_0x209983[_0x109b09(0x17e)],_0x1f3dff=_0x275e03==null?void 0x0:_0x275e03[_0x109b09(0x12e)];return{'shapeType':_0x2890c7['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x170c7e[_0x109b09(0x177)],'h':_0x170c7e[_0x109b09(0x172)],'fill':_0x42f680?_0x109b09(0x144):'none','stroke':!0x0,'data':_0x45685a,'dataArray':be(_0x209983,{'x':_0x170c7e[_0x109b09(0x140)],'y':_0x170c7e[_0x109b09(0x15b)]})}]},'fill':_0x42f680&&_0x1f3dff?{'color':_0x1f3dff,'fillType':_0x41b33d['SolidFill']}:{'fillType':_0x41b33d['NoFill']},'stroke':{'color':ge(_0x209983,_0x275e03),'width':_e(_0x209983,_0x275e03),'opacity':ve(_0x209983,_0x275e03),'lineStrokeType':_0x1d6f28[_0x109b09(0x16c)],'capType':_0x4f2531['Round'],'lineJoinType':_0x477814[_0x109b09(0x167)]}};}function K(_0x48d899,_0x4eebc1){return{'x':_0x48d899['x']-_0x4eebc1['x'],'y':_0x48d899['y']-_0x4eebc1['y']};}function be(_0x5e2ea4,_0x4667bb){const _0x250f07=_0xc58c;if(_0x5e2ea4[_0x250f07(0x173)]==='pen'){let _0x4d3939=_0x5e2ea4[_0x250f07(0x14b)];if(_0x4d3939[_0x250f07(0x14e)]===0x0)return[];let _0x397964=K(_0x4d3939[0x0],_0x4667bb),_0x598f2c=[{'command':'M','points':[_0x397964['x'],_0x397964['y']]}];for(let _0x5e14c6=0x1;_0x5e14c6<_0x4d3939['length'];_0x5e14c6++){var _0x247d33,_0x588bbf;let _0x591f53=_0x4d3939[_0x5e14c6-0x1],_0x5e1ab9=_0x4d3939[_0x5e14c6],_0x34e972=K((_0x247d33=_0x591f53[_0x250f07(0x136)])==null?_0x591f53:_0x247d33,_0x4667bb),_0x218ab5=K((_0x588bbf=_0x5e1ab9['in'])==null?_0x5e1ab9:_0x588bbf,_0x4667bb),_0x6c4527=K(_0x5e1ab9,_0x4667bb);_0x598f2c[_0x250f07(0x16b)]({'command':'C','points':[_0x34e972['x'],_0x34e972['y'],_0x218ab5['x'],_0x218ab5['y'],_0x6c4527['x'],_0x6c4527['y']]});}if(_0x5e2ea4[_0x250f07(0x17e)]&&_0x4d3939[_0x250f07(0x14e)]>0x1){var _0x46804d,_0x16e2ae;let _0x223380=_0x4d3939[_0x4d3939[_0x250f07(0x14e)]-0x1],_0x2ae56f=_0x4d3939[0x0],_0x2f815a=K((_0x46804d=_0x223380[_0x250f07(0x136)])==null?_0x223380:_0x46804d,_0x4667bb),_0x5232ea=K((_0x16e2ae=_0x2ae56f['in'])==null?_0x2ae56f:_0x16e2ae,_0x4667bb),_0x41abd5=K(_0x2ae56f,_0x4667bb);_0x598f2c[_0x250f07(0x16b)]({'command':'C','points':[_0x2f815a['x'],_0x2f815a['y'],_0x5232ea['x'],_0x5232ea['y'],_0x41abd5['x'],_0x41abd5['y']]}),_0x598f2c['push']({'command':'z','points':[]});}return _0x598f2c;}let _0x50aeeb=_0x5e2ea4['points'][_0x250f07(0x180)](_0x49d034=>K(_0x49d034,_0x4667bb));if(_0x50aeeb[_0x250f07(0x14e)]===0x0)return[];let _0x58bfa5=[{'command':'M','points':[_0x50aeeb[0x0]['x'],_0x50aeeb[0x0]['y']]}];for(let _0x1d078b=0x0;_0x1d078b<_0x50aeeb['length']-0x1;_0x1d078b++){var _0x35a91a,_0x3c561a;let _0x49ccca=_0x50aeeb[_0x1d078b],_0x168e9f=_0x50aeeb[_0x1d078b+0x1],_0x3221ff=(_0x35a91a=_0x50aeeb[_0x1d078b-0x1])==null?_0x49ccca:_0x35a91a,_0x561cd1=(_0x3c561a=_0x50aeeb[_0x1d078b+0x2])==null?_0x168e9f:_0x3c561a,_0x10de3d={'x':_0x49ccca['x']+(_0x168e9f['x']-_0x3221ff['x'])/0x6,'y':_0x49ccca['y']+(_0x168e9f['y']-_0x3221ff['y'])/0x6},_0x52816e={'x':_0x168e9f['x']-(_0x561cd1['x']-_0x49ccca['x'])/0x6,'y':_0x168e9f['y']-(_0x561cd1['y']-_0x49ccca['y'])/0x6};_0x58bfa5[_0x250f07(0x16b)]({'command':'C','points':[_0x10de3d['x'],_0x10de3d['y'],_0x52816e['x'],_0x52816e['y'],_0x168e9f['x'],_0x168e9f['y']]});}return _0x58bfa5;}function xe(_0x10c636){const _0x517bd3=_0xc58c;var _0x165a54;let {model:_0x58a44f,sourceModel:_0x3c809a=_0x58a44f,style:_0x4d880f}=_0x10c636,_0x5e11dd=(_0x165a54=_0x10c636[_0x517bd3(0x147)])==null?_0x58a44f[_0x517bd3(0x173)]:_0x165a54,_0xbe90de=G(_0x58a44f),_0x25d647=_0x58a44f['kind']===_0x517bd3(0x157)&&_0x5e11dd!=='pen'?_0x58a44f:void 0x0;return{'transform':{..._0xbe90de,'rotation':0x0},'shapeData':ye(_0x58a44f,_0x4d880f),'ink':{'version':0x1,'tool':_0x5e11dd,'sourceModel':_0x3c809a,..._0x25d647?{'editModel':_0x25d647}:{},'normalizedBounds':_0xbe90de}};}var Se=_0x3265aa(0x154),Ce=_0x3265aa(0x151);function q(_0x5e8d18){'@babel/helpers - typeof';const _0x473489=_0x3265aa;return q=typeof Symbol=='function'&&typeof Symbol[_0x473489(0x148)]=='symbol'?function(_0x5baf79){return typeof _0x5baf79;}:function(_0xf44627){const _0x2218ac=_0x473489;return _0xf44627&&typeof Symbol==_0x2218ac(0x16f)&&_0xf44627[_0x2218ac(0x17f)]===Symbol&&_0xf44627!==Symbol['prototype']?_0x2218ac(0x13d):typeof _0xf44627;},q(_0x5e8d18);}function we(_0x3e3f63,_0x2103e0){const _0x518974=_0x3265aa;if(q(_0x3e3f63)!=_0x518974(0x15d)||!_0x3e3f63)return _0x3e3f63;var _0x6f6e3d=_0x3e3f63[Symbol[_0x518974(0x14a)]];if(_0x6f6e3d!==void 0x0){var _0x21bd8b=_0x6f6e3d[_0x518974(0x160)](_0x3e3f63,_0x2103e0||_0x518974(0x138));if(q(_0x21bd8b)!=_0x518974(0x15d))return _0x21bd8b;throw TypeError(_0x518974(0x178));}return(_0x2103e0===_0x518974(0x152)?String:Number)(_0x3e3f63);}function J(_0x3c90e2){var _0x2004de=we(_0x3c90e2,'string');return q(_0x2004de)=='symbol'?_0x2004de:_0x2004de+'';}function Y(_0x3678ec,_0x48d004,_0x4b775f){const _0x14b688=_0x3265aa;return(_0x48d004=J(_0x48d004))in _0x3678ec?Object[_0x14b688(0x161)](_0x3678ec,_0x48d004,{'value':_0x4b775f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3678ec[_0x48d004]=_0x4b775f,_0x3678ec;}const X=_0x17208f('ink.host-adapter.service');var Te=class{constructor(){const _0x2bfe7d=_0x3265aa;Y(this,_0x2bfe7d(0x143),[]);}[_0x3265aa(0x16a)](_0x4d9cec){const _0x3d275f=_0x3265aa;return this[_0x3d275f(0x143)][_0x3d275f(0x16b)](_0x4d9cec),_0x47bed1(()=>{const _0x36e725=_0x3d275f;let _0x4a1ad1=this[_0x36e725(0x143)]['indexOf'](_0x4d9cec);_0x4a1ad1>=0x0&&this[_0x36e725(0x143)][_0x36e725(0x165)](_0x4a1ad1,0x1);});}['beginInkMode'](_0x3836a9){const _0x522f3a=_0x3265aa;for(let _0x7d843 of this[_0x522f3a(0x143)])if(_0x7d843['beginInkMode'](_0x3836a9))return!0x0;return!0x1;}async[_0x3265aa(0x185)](_0x149d9b){const _0x3495a1=_0x3265aa;for(let _0x4d9b4c of this['_adapters'])if(_0x4d9b4c[_0x3495a1(0x185)]&&await _0x4d9b4c[_0x3495a1(0x185)](_0x149d9b))return!0x0;return!0x1;}};const Ee={'id':_0x3265aa(0x14d),'type':_0x26993d[_0x3265aa(0x181)],'handler':(_0x394c13,_0x3401b3)=>_0x3401b3?_0x394c13[_0x3265aa(0x137)](X)[_0x3265aa(0x131)](_0x3401b3):!0x1},Z={};function Q(_0x2b83c6,_0x379774){return function(_0x6dbac4,_0x5a1928){_0x379774(_0x6dbac4,_0x5a1928,_0x2b83c6);};}function De(_0x7d02a9,_0x2792fd,_0xf9c941,_0x43ea04){const _0x35ba43=_0x3265aa;var _0x7610ec=arguments['length'],_0x30b671=_0x7610ec<0x3?_0x2792fd:_0x43ea04===null?_0x43ea04=Object[_0x35ba43(0x15c)](_0x2792fd,_0xf9c941):_0x43ea04,_0x385ad7;if(typeof Reflect==_0x35ba43(0x15d)&&typeof Reflect[_0x35ba43(0x139)]=='function')_0x30b671=Reflect[_0x35ba43(0x139)](_0x7d02a9,_0x2792fd,_0xf9c941,_0x43ea04);else{for(var _0x8d3f90=_0x7d02a9[_0x35ba43(0x14e)]-0x1;_0x8d3f90>=0x0;_0x8d3f90--)(_0x385ad7=_0x7d02a9[_0x8d3f90])&&(_0x30b671=(_0x7610ec<0x3?_0x385ad7(_0x30b671):_0x7610ec>0x3?_0x385ad7(_0x2792fd,_0xf9c941,_0x30b671):_0x385ad7(_0x2792fd,_0xf9c941))||_0x30b671);}return _0x7610ec>0x3&&_0x30b671&&Object[_0x35ba43(0x161)](_0x2792fd,_0xf9c941,_0x30b671),_0x30b671;}let $=class extends _0x2d049f{constructor(_0x1c4ce1=Z,_0x57ae30,_0x58bd46,_0x5764f6){const _0x5b9aa0=_0x3265aa;super(),this['_config']=_0x1c4ce1,this[_0x5b9aa0(0x18a)]=_0x57ae30,this[_0x5b9aa0(0x166)]=_0x58bd46,this[_0x5b9aa0(0x183)]=_0x5764f6;let {..._0xff97fa}=_0x5dbb94({},Z,this['_config']);this['_configService'][_0x5b9aa0(0x14f)](_0x5b9aa0(0x133),_0xff97fa);}['onStarting'](){const _0x3c0b8e=_0x3265aa;[[X,{'useClass':Te}]][_0x3c0b8e(0x158)](_0x5ba4fe=>this[_0x3c0b8e(0x18a)][_0x3c0b8e(0x153)](_0x5ba4fe)),this[_0x3c0b8e(0x170)](this['_commandService'][_0x3c0b8e(0x188)](Ee));}};Y($,_0x3265aa(0x162),_0x3265aa(0x169)),Y($,_0x3265aa(0x135),Se),Y($,_0x3265aa(0x15f),Ce),Y($,'type',_0x4da895[_0x3265aa(0x171)]),$=De([_0x523a19(_0x361d04),Q(0x1,_0x1ef38a(_0x4101f2)),Q(0x2,_0x22c5ef),Q(0x3,_0x413199)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3f11(){const _0x5331f8=['opacity','UniverProBoards','BoardInkPointType','@univerjs-pro/boards','@univerjs/core','parentId','transform','highlighter','type','every','trim','6079581xlcooU','sourceModel','filter','Module','@univerjs-pro/boards/facade','UniverProBoardsFacade','UniverProInk','pen','isFinite','extend','shapeData','insertInk','1419232nIcnvB','16956KndMkw','closed','10SRplJo','BoardElementType','UniverCoreFacade','anchor','object','tool','style','FEnum','has','106599RgFxdI','Shape','deepClone','@univerjs/core/facade','24hUYplY','255378JKXpxi','BoardInkTool','model','width','434882dWJXex','out','generateRandomId','custom','length','function','531387ksIVIp','FBoard','Tools','anchors','isArray','laneId','ink','pressure','BoardInkHandleKind','UniverProInkFacade','getInks','corner'];_0x3f11=function(){return _0x5331f8;};return _0x3f11();}function _0x5ef5(_0xec3cc1,_0x5af3f0){_0xec3cc1=_0xec3cc1-0x11a;const _0x3f11dd=_0x3f11();let _0x5ef580=_0x3f11dd[_0xec3cc1];return _0x5ef580;}(function(_0xa387d7,_0x589b4b){const _0x536d1d=_0x5ef5,_0x3bfc92=_0xa387d7();while(!![]){try{const _0x181948=-parseInt(_0x536d1d(0x152))/0x1+-parseInt(_0x536d1d(0x148))/0x2+-parseInt(_0x536d1d(0x143))/0x3+parseInt(_0x536d1d(0x137))/0x4+-parseInt(_0x536d1d(0x13a))/0x5*(parseInt(_0x536d1d(0x138))/0x6)+parseInt(_0x536d1d(0x14c))/0x7*(parseInt(_0x536d1d(0x147))/0x8)+parseInt(_0x536d1d(0x12b))/0x9;if(_0x181948===_0x589b4b)break;else _0x3bfc92['push'](_0x3bfc92['shift']());}catch(_0x163972){_0x3bfc92['push'](_0x3bfc92['shift']());}}}(_0x3f11,0x7e152),function(_0x1378da,_0x23939c){const _0x2875be=_0x5ef5;typeof exports==_0x2875be(0x13e)&&typeof module<'u'?_0x23939c(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x2875be(0x151)&&define['amd']?define(['exports',_0x2875be(0x123),_0x2875be(0x12f),'@univerjs-pro/ink',_0x2875be(0x124),_0x2875be(0x146)],_0x23939c):(_0x1378da=typeof globalThis<'u'?globalThis:_0x1378da||self,_0x23939c(_0x1378da[_0x2875be(0x11d)]={},_0x1378da[_0x2875be(0x121)],_0x1378da[_0x2875be(0x130)],_0x1378da[_0x2875be(0x131)],_0x1378da['UniverCore'],_0x1378da[_0x2875be(0x13c)]));}(this,function(_0x3c32fe,_0x3f6f60,_0x580689,_0x42172e,_0x23d259,_0x19250a){const _0x598bd2=_0x5ef5;Object['defineProperty'](_0x3c32fe,Symbol['toStringTag'],{'value':_0x598bd2(0x12e)});var _0x3fcfb7=class extends _0x580689[_0x598bd2(0x153)]{[_0x598bd2(0x136)](_0x4b7e6e){let _0xbd591c=_0x6ad96e(_0x4b7e6e);return _0xbd591c&&this['_addElement'](_0xbd591c,{'insertIndex':_0x4b7e6e['insertIndex']})?_0xbd591c:null;}[_0x598bd2(0x11e)](){const _0x5e442f=_0x598bd2;return this['findElements']({'elementType':_0x3f6f60[_0x5e442f(0x13b)][_0x5e442f(0x144)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x5e442f(0x12d)](_0x2957d3);}};function _0x6ad96e(_0x116e1b,_0xfef5d0){const _0xa42001=_0x598bd2;var _0x38e012,_0x1411ea,_0xcba474;if(!_0x2bff30(_0x116e1b[_0xa42001(0x14a)])||_0x116e1b['sourceModel']!==void 0x0&&!_0x2bff30(_0x116e1b[_0xa42001(0x12c)])||!_0x4c7b27(_0x116e1b[_0xa42001(0x140)]))return null;let _0x51a68a=(_0x38e012=_0x116e1b[_0xa42001(0x125)])==null?_0xfef5d0==null?void 0x0:_0xfef5d0['parentId']:_0x38e012,_0x363416=_0x23d259[_0xa42001(0x154)][_0xa42001(0x145)](_0x116e1b[_0xa42001(0x14a)]),_0x17033d=(0x0,_0x42172e['buildInkCustomShapePayload'])({'model':_0x363416,'style':_0x116e1b[_0xa42001(0x140)],'tool':_0x116e1b[_0xa42001(0x13f)],'sourceModel':_0x116e1b[_0xa42001(0x12c)]?_0x23d259['Tools'][_0xa42001(0x145)](_0x116e1b[_0xa42001(0x12c)]):_0x363416}),_0x2e427c=_0x2f2504(_0xfef5d0==null?void 0x0:_0xfef5d0[_0xa42001(0x14f)]);return{'id':(_0x1411ea=(_0xcba474=_0xfef5d0==null?void 0x0:_0xfef5d0['id'])==null?_0x116e1b['id']:_0xcba474)==null?(0x0,_0x23d259[_0xa42001(0x14e)])(0x6):_0x1411ea,'type':_0x3f6f60[_0xa42001(0x13b)][_0xa42001(0x144)],'transform':_0x17033d[_0xa42001(0x126)],'shapeData':_0x17033d[_0xa42001(0x135)],'parentId':_0x51a68a==null?void 0x0:_0x51a68a,'laneId':_0x116e1b[_0xa42001(0x157)]===void 0x0?_0xfef5d0==null?void 0x0:_0xfef5d0[_0xa42001(0x157)]:_0x116e1b[_0xa42001(0x157)],'custom':{..._0x2e427c,'ink':_0x17033d[_0xa42001(0x11a)]}};}function _0x3d58c9(_0x3131ff){const _0x5683c9=_0x598bd2;return Number[_0x5683c9(0x133)](_0x3131ff['x'])&&Number[_0x5683c9(0x133)](_0x3131ff['y']);}function _0x2bff30(_0x61b1c){const _0x4e9541=_0x598bd2;if(_0x61b1c['kind']===_0x4e9541(0x132)){let _0x537095=new Set();return _0x61b1c[_0x4e9541(0x155)][_0x4e9541(0x150)]>=(_0x61b1c[_0x4e9541(0x139)]?0x3:0x2)&&_0x61b1c[_0x4e9541(0x155)][_0x4e9541(0x129)](_0x56a642=>{const _0x5f6726=_0x4e9541;let _0x2dd090=_0x56a642['id'][_0x5f6726(0x12a)]()['length']>0x0&&!_0x537095[_0x5f6726(0x142)](_0x56a642['id'])&&_0x3d58c9(_0x56a642)&&(!_0x56a642['in']||_0x3d58c9(_0x56a642['in']))&&(!_0x56a642[_0x5f6726(0x14d)]||_0x3d58c9(_0x56a642['out']));return _0x537095['add'](_0x56a642['id']),_0x2dd090;});}return _0x61b1c['points'][_0x4e9541(0x150)]>=0x2&&_0x61b1c['points'][_0x4e9541(0x129)](_0x550ff8=>_0x3d58c9(_0x550ff8)&&Number['isFinite'](_0x550ff8['t'])&&(_0x550ff8[_0x4e9541(0x11b)]===void 0x0||Number[_0x4e9541(0x133)](_0x550ff8[_0x4e9541(0x11b)])))&&Number['isFinite'](_0x61b1c[_0x4e9541(0x14b)])&&_0x61b1c['width']>0x0&&Number[_0x4e9541(0x133)](_0x61b1c['opacity'])&&_0x61b1c[_0x4e9541(0x120)]>=0x0&&_0x61b1c[_0x4e9541(0x120)]<=0x1;}function _0x4c7b27(_0x3c78a3){const _0x24df0e=_0x598bd2;return _0x3c78a3===void 0x0||(_0x3c78a3[_0x24df0e(0x14b)]===void 0x0||Number[_0x24df0e(0x133)](_0x3c78a3[_0x24df0e(0x14b)])&&_0x3c78a3['width']>0x0)&&(_0x3c78a3[_0x24df0e(0x120)]===void 0x0||Number[_0x24df0e(0x133)](_0x3c78a3[_0x24df0e(0x120)])&&_0x3c78a3['opacity']>=0x0&&_0x3c78a3[_0x24df0e(0x120)]<=0x1);}function _0x2f2504(_0x5408c6){const _0x3d001f=_0x598bd2;return _0x5408c6&&typeof _0x5408c6=='object'&&!Array[_0x3d001f(0x156)](_0x5408c6)?_0x5408c6:{};}function _0x2918b9(_0x1d48b2){const _0x21676e=_0x598bd2;let _0x14c81c=_0x2f2504(_0x1d48b2[_0x21676e(0x14f)])[_0x21676e(0x11a)];if(!_0x14c81c||typeof _0x14c81c!=_0x21676e(0x13e)||Array[_0x21676e(0x156)](_0x14c81c))return null;let _0x2010a2=_0x14c81c;return _0x2010a2['version']===0x1&&_0x2010a2[_0x21676e(0x12c)]&&typeof _0x2010a2['sourceModel']==_0x21676e(0x13e)?_0x2010a2:null;}function _0x2957d3(_0x439f81){const _0x372984=_0x598bd2;return _0x439f81[_0x372984(0x128)]===_0x3f6f60[_0x372984(0x13b)][_0x372984(0x144)]&&!!_0x2918b9(_0x439f81);}_0x580689[_0x598bd2(0x153)][_0x598bd2(0x134)](_0x3fcfb7);let _0x4ef056={'Pen':'pen','Brush':'brush','Highlighter':_0x598bd2(0x127)},_0x51ddbc={'Corner':_0x598bd2(0x11f),'Smooth':'smooth','Symmetric':'symmetric','Free':'free'},_0x5ace99={'Anchor':_0x598bd2(0x13d),'In':'in','Out':_0x598bd2(0x14d)};var _0x153adc=class extends _0x19250a[_0x598bd2(0x141)]{get[_0x598bd2(0x149)](){return _0x4ef056;}get[_0x598bd2(0x122)](){return _0x51ddbc;}get[_0x598bd2(0x11c)](){return _0x5ace99;}};_0x19250a[_0x598bd2(0x141)][_0x598bd2(0x134)](_0x153adc),_0x3c32fe['BoardInkHandleKind']=_0x5ace99,_0x3c32fe[_0x598bd2(0x122)]=_0x51ddbc,_0x3c32fe[_0x598bd2(0x149)]=_0x4ef056;}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x333a8d,_0x3774ad){const _0x5c7150=_0x3a25,_0x211721=_0x333a8d();while(!![]){try{const _0x5bae21=parseInt(_0x5c7150(0x1ab))/0x1*(-parseInt(_0x5c7150(0x1a3))/0x2)+-parseInt(_0x5c7150(0x1f0))/0x3+parseInt(_0x5c7150(0x1b9))/0x4+-parseInt(_0x5c7150(0x200))/0x5*(parseInt(_0x5c7150(0x1c8))/0x6)+-parseInt(_0x5c7150(0x20b))/0x7+-parseInt(_0x5c7150(0x1d9))/0x8*(-parseInt(_0x5c7150(0x1b8))/0x9)+parseInt(_0x5c7150(0x1df))/0xa;if(_0x5bae21===_0x3774ad)break;else _0x211721['push'](_0x211721['shift']());}catch(_0x544444){_0x211721['push'](_0x211721['shift']());}}}(_0x5601,0xda0be),function(_0x27e1e0,_0x3ee756){const _0x10d8fb=_0x3a25;typeof exports==_0x10d8fb(0x1bf)&&typeof module<'u'?_0x3ee756(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x10d8fb(0x1d3)&&define[_0x10d8fb(0x204)]?define(['exports',_0x10d8fb(0x1f6),_0x10d8fb(0x1d7),_0x10d8fb(0x1f2)],_0x3ee756):(_0x27e1e0=typeof globalThis<'u'?globalThis:_0x27e1e0||self,_0x3ee756(_0x27e1e0['UniverProInk']={},_0x27e1e0[_0x10d8fb(0x1a2)],_0x27e1e0[_0x10d8fb(0x1e4)],_0x27e1e0[_0x10d8fb(0x1a5)]));}(this,function(_0x1e5548,_0x5d0e63,_0x5a5096,_0x3c5076){const _0x3e2d3d=_0x3a25;Object[_0x3e2d3d(0x1c9)](_0x1e5548,Symbol[_0x3e2d3d(0x1ce)],{'value':_0x3e2d3d(0x1c2)});let _0x750d33=0.0001;function _0x4faa80(_0x3579a9){return{'x':_0x3579a9['x'],'y':_0x3579a9['y']};}function _0x27923b(_0x9a3af3){const _0x309c3e=_0x3e2d3d;return{..._0x9a3af3,'in':_0x9a3af3['in']?_0x4faa80(_0x9a3af3['in']):void 0x0,'out':_0x9a3af3[_0x309c3e(0x1e3)]?_0x4faa80(_0x9a3af3[_0x309c3e(0x1e3)]):void 0x0};}function _0x45f530(_0x1ff9d8){const _0x14a99f=_0x3e2d3d;return{'kind':'pen','closed':_0x1ff9d8[_0x14a99f(0x21a)],'anchors':_0x1ff9d8[_0x14a99f(0x219)][_0x14a99f(0x1d6)](_0x27923b)};}function _0x20aa2d(_0x304374,_0x2849fb,_0x4e009e){return{'x':_0x304374['x']+(_0x2849fb['x']-_0x304374['x'])*_0x4e009e,'y':_0x304374['y']+(_0x2849fb['y']-_0x304374['y'])*_0x4e009e};}function _0x4c79dd(_0x1f2bd6,_0x442af4){const _0x260107=_0x3e2d3d;return Math[_0x260107(0x1e7)](_0x1f2bd6['x']-_0x442af4['x'],_0x1f2bd6['y']-_0x442af4['y']);}function _0x2d266b(_0x404356){const _0x54e0c7=_0x3e2d3d;let _0xeef88c=Math[_0x54e0c7(0x1e7)](_0x404356['x'],_0x404356['y']);return _0xeef88c<_0x750d33?{'x':0x1,'y':0x0}:{'x':_0x404356['x']/_0xeef88c,'y':_0x404356['y']/_0xeef88c};}function _0x5ea08e(_0x1ffbf5,_0x26a936,_0x114724=_0x4c79dd(_0x1ffbf5,_0x26a936)){let _0x5e407e=_0x2d266b({'x':_0x1ffbf5['x']-_0x26a936['x'],'y':_0x1ffbf5['y']-_0x26a936['y']});return{'x':_0x1ffbf5['x']+_0x5e407e['x']*_0x114724,'y':_0x1ffbf5['y']+_0x5e407e['y']*_0x114724};}function _0x95c95c(_0x1057fb,_0x25ccad){const _0x1b4ea8=_0x3e2d3d;let {anchors:_0x29adc7}=_0x1057fb;return _0x29adc7[_0x1b4ea8(0x1a0)]<0x2||_0x25ccad<0x0?null:_0x25ccad<_0x29adc7['length']-0x1?{'startIndex':_0x25ccad,'endIndex':_0x25ccad+0x1,'start':_0x29adc7[_0x25ccad],'end':_0x29adc7[_0x25ccad+0x1]}:_0x1057fb['closed']&&_0x25ccad===_0x29adc7['length']-0x1?{'startIndex':_0x29adc7[_0x1b4ea8(0x1a0)]-0x1,'endIndex':0x0,'start':_0x29adc7[_0x29adc7[_0x1b4ea8(0x1a0)]-0x1],'end':_0x29adc7[0x0]}:null;}function _0x37e941(_0x10f53e,_0x18d588){const _0x2b488c=_0x3e2d3d;var _0x4cd7c6,_0x4f9292;let _0x53b94c=_0x95c95c(_0x10f53e,_0x18d588);return _0x53b94c?[_0x53b94c[_0x2b488c(0x1a1)],(_0x4cd7c6=_0x53b94c['start'][_0x2b488c(0x1e3)])==null?_0x53b94c[_0x2b488c(0x1a1)]:_0x4cd7c6,(_0x4f9292=_0x53b94c['end']['in'])==null?_0x53b94c[_0x2b488c(0x1c3)]:_0x4f9292,_0x53b94c['end']]:null;}function _0x1b4f30(_0x53248f,_0x4b3577){const _0xd8b5cc=_0x3e2d3d;var _0x4f961f;return _0x4b3577===_0xd8b5cc(0x1b3)?_0x53248f:(_0x4f961f=_0x53248f[_0x4b3577])==null?null:_0x4f961f;}function _0x3dd58e(_0x290827,_0x81112f,_0x1aae3f){const _0x306a71=_0x3e2d3d;return _0x1aae3f==='anchor'||_0x290827[_0x306a71(0x21a)]?!0x0:_0x1aae3f==='in'?_0x81112f>0x0:_0x81112f<_0x290827[_0x306a71(0x219)][_0x306a71(0x1a0)]-0x1;}function _0x4ab5a6(_0x5393dc,_0x4f9617){let [_0x4d3fbc,_0x116adc,_0x20d219,_0x14e458]=_0x5393dc,_0x3d7031=_0x20aa2d(_0x4d3fbc,_0x116adc,_0x4f9617),_0x4b6221=_0x20aa2d(_0x116adc,_0x20d219,_0x4f9617),_0x54745d=_0x20aa2d(_0x20d219,_0x14e458,_0x4f9617);return _0x20aa2d(_0x20aa2d(_0x3d7031,_0x4b6221,_0x4f9617),_0x20aa2d(_0x4b6221,_0x54745d,_0x4f9617),_0x4f9617);}function _0x445693(_0x3e4c5d,_0x66df80){let [_0x45373c,_0x3f824a,_0x403ca6,_0x55e853]=_0x3e4c5d,_0x3213dd=_0x20aa2d(_0x45373c,_0x3f824a,_0x66df80),_0xea7d32=_0x20aa2d(_0x3f824a,_0x403ca6,_0x66df80),_0x13be45=_0x20aa2d(_0x403ca6,_0x55e853,_0x66df80),_0x190701=_0x20aa2d(_0x3213dd,_0xea7d32,_0x66df80),_0x75057e=_0x20aa2d(_0xea7d32,_0x13be45,_0x66df80),_0x10db2e=_0x20aa2d(_0x190701,_0x75057e,_0x66df80);return{'left':[_0x45373c,_0x3213dd,_0x190701,_0x10db2e],'right':[_0x10db2e,_0x75057e,_0x13be45,_0x55e853]};}function _0x38956b(_0x360a2b,_0x18e35c,_0x93c675){const _0x173269=_0x3e2d3d;let _0x2a6931=_0x93c675['x']-_0x18e35c['x'],_0x29a125=_0x93c675['y']-_0x18e35c['y'],_0x58ca46=_0x2a6931*_0x2a6931+_0x29a125*_0x29a125,_0x2f6d0c=_0x58ca46<=_0x750d33?0x0:Math[_0x173269(0x206)](0x0,Math[_0x173269(0x1bb)](0x1,((_0x360a2b['x']-_0x18e35c['x'])*_0x2a6931+(_0x360a2b['y']-_0x18e35c['y'])*_0x29a125)/_0x58ca46)),_0x4ae6fe={'x':_0x18e35c['x']+_0x2a6931*_0x2f6d0c,'y':_0x18e35c['y']+_0x29a125*_0x2f6d0c};return{'point':_0x4ae6fe,'ratio':_0x2f6d0c,'distance':_0x4c79dd(_0x360a2b,_0x4ae6fe)};}function _0x2fa1e9(_0x5cd0ac,_0x12c22f,_0xef9a14){const _0x37b629=_0x3e2d3d;return _0x38956b(_0x5cd0ac,_0x12c22f,_0xef9a14)[_0x37b629(0x216)]**0x2;}function _0x5d41a5(_0x6573aa,_0x4e0aea){const _0x400939=_0x3e2d3d;if(_0x6573aa[_0x400939(0x1a0)]<=0x2)return _0x6573aa[_0x400939(0x1d6)](_0x4faa80);let _0x4b7b6b=0x0,_0x444b7a=0x0,_0x3c4a2d=_0x6573aa[0x0],_0x37a8b9=_0x6573aa[_0x6573aa[_0x400939(0x1a0)]-0x1],_0x3bf940=_0x4e0aea*_0x4e0aea;for(let _0x4e1ac0=0x1;_0x4e1ac0<_0x6573aa['length']-0x1;_0x4e1ac0++){let _0x57c66d=_0x2fa1e9(_0x6573aa[_0x4e1ac0],_0x3c4a2d,_0x37a8b9);_0x57c66d>_0x4b7b6b&&(_0x4b7b6b=_0x57c66d,_0x444b7a=_0x4e1ac0);}if(_0x4b7b6b<=_0x3bf940)return[_0x4faa80(_0x3c4a2d),_0x4faa80(_0x37a8b9)];let _0x14eccd=_0x5d41a5(_0x6573aa['slice'](0x0,_0x444b7a+0x1),_0x4e0aea),_0x342be8=_0x5d41a5(_0x6573aa['slice'](_0x444b7a),_0x4e0aea);return[..._0x14eccd[_0x400939(0x1a8)](0x0,-0x1),..._0x342be8];}function _0x45abf2(_0x4b0415,_0x316567){var _0x48c856;let _0x5e7e96=_0x4b0415[_0x316567],_0x5434e4=_0x4b0415[_0x316567+0x1],_0x513edc=(_0x48c856=_0x4b0415[_0x316567-0x1])==null?_0x5e7e96:_0x48c856;return{'x':_0x5e7e96['x']+(_0x5434e4['x']-_0x513edc['x'])/0x6,'y':_0x5e7e96['y']+(_0x5434e4['y']-_0x513edc['y'])/0x6};}function _0x596826(_0x550b2f,_0x23c7ba){var _0x1129e9;let _0xfcfa86=_0x550b2f[_0x23c7ba],_0x5c0bf7=_0x550b2f[_0x23c7ba-0x1],_0x2f2bb5=(_0x1129e9=_0x550b2f[_0x23c7ba+0x1])==null?_0xfcfa86:_0x1129e9;return{'x':_0xfcfa86['x']-(_0x2f2bb5['x']-_0x5c0bf7['x'])/0x6,'y':_0xfcfa86['y']-(_0x2f2bb5['y']-_0x5c0bf7['y'])/0x6};}function _0x2a0f36(_0x1c08bb,_0x2cb990){const _0x31a791=_0x3e2d3d;var _0x17106a,_0x4f160e;let _0x148206=_0x1c08bb[_0x31a791(0x219)][_0x2cb990],_0x12cdb2=(_0x17106a=_0x1c08bb['anchors'][_0x2cb990-0x1])==null?_0x1c08bb[_0x31a791(0x21a)]?_0x1c08bb[_0x31a791(0x219)][_0x1c08bb[_0x31a791(0x219)][_0x31a791(0x1a0)]-0x1]:null:_0x17106a,_0x3139a1=(_0x4f160e=_0x1c08bb['anchors'][_0x2cb990+0x1])==null?_0x1c08bb[_0x31a791(0x21a)]?_0x1c08bb[_0x31a791(0x219)][0x0]:null:_0x4f160e,_0x3f2825=_0x12cdb2&&_0x3139a1?_0x2d266b({'x':_0x3139a1['x']-_0x12cdb2['x'],'y':_0x3139a1['y']-_0x12cdb2['y']}):_0x3139a1?_0x2d266b({'x':_0x3139a1['x']-_0x148206['x'],'y':_0x3139a1['y']-_0x148206['y']}):_0x12cdb2?_0x2d266b({'x':_0x148206['x']-_0x12cdb2['x'],'y':_0x148206['y']-_0x12cdb2['y']}):{'x':0x1,'y':0x0},_0x287a9b=_0x12cdb2&&_0x3139a1?Math[_0x31a791(0x206)](0x32,_0x4c79dd(_0x12cdb2,_0x3139a1)/0x4):0x32;return{'in':{'x':_0x148206['x']-_0x3f2825['x']*_0x287a9b,'y':_0x148206['y']-_0x3f2825['y']*_0x287a9b},'out':{'x':_0x148206['x']+_0x3f2825['x']*_0x287a9b,'y':_0x148206['y']+_0x3f2825['y']*_0x287a9b}};}function _0x538446(_0x1041ff,_0x21a2ee){const _0x1959df=_0x3e2d3d;let _0x4d6619=_0x1041ff[_0x21a2ee],_0x2224e2=_0x21a2ee==='in'?_0x1959df(0x1e3):'in',_0x36cffd=_0x1041ff[_0x2224e2];if(_0x4d6619){if(_0x1041ff[_0x1959df(0x1e8)]===_0x1959df(0x1ff)){_0x1041ff[_0x2224e2]=_0x5ea08e(_0x1041ff,_0x4d6619);return;}_0x1041ff[_0x1959df(0x1e8)]===_0x1959df(0x1c7)&&(_0x1041ff[_0x2224e2]=_0x5ea08e(_0x1041ff,_0x4d6619,_0x36cffd?_0x4c79dd(_0x1041ff,_0x36cffd):_0x4c79dd(_0x1041ff,_0x4d6619)));}}function _0x1255d5(_0x1c4e69,_0x46232f){const _0x5ce0dc=_0x3e2d3d;let _0x4c0747=_0x45f530(_0x1c4e69);return!_0x46232f||_0x4c0747[_0x5ce0dc(0x21a)]||_0x4c0747[_0x5ce0dc(0x219)][_0x5ce0dc(0x1a0)]===0x0||_0x4c0747['anchors'][_0x5ce0dc(0x1d2)]({'id':_0x5ce0dc(0x1f1),'x':_0x46232f['x'],'y':_0x46232f['y'],'pointType':'corner'}),_0x4c0747;}function _0x1dd37a(_0x4f7e50,_0x22da49={}){const _0x1166da=_0x3e2d3d;var _0x2329a,_0x412256;let _0x555143=Math['max'](0x0,(_0x2329a=_0x22da49['tolerance'])==null?Math[_0x1166da(0x206)](0x4,_0x4f7e50[_0x1166da(0x1ac)]*0.35):_0x2329a),_0xcbe75f=(_0x412256=_0x22da49[_0x1166da(0x1ba)])==null?_0x22d273=>_0x1166da(0x1af)+_0x22d273:_0x412256,_0x13d2ab=_0x5d41a5(_0x4f7e50[_0x1166da(0x1cc)],_0x555143),_0x27cd59=_0x13d2ab[_0x1166da(0x1d6)]((_0x59de22,_0xbb756)=>({'id':_0xcbe75f(_0xbb756),'x':_0x59de22['x'],'y':_0x59de22['y'],'pointType':_0x1166da(0x1d0)}));for(let _0x599319=0x0;_0x599319<_0x27cd59[_0x1166da(0x1a0)]-0x1;_0x599319++)_0x27cd59[_0x599319]['out']=_0x45abf2(_0x13d2ab,_0x599319),_0x27cd59[_0x599319+0x1]['in']=_0x596826(_0x13d2ab,_0x599319+0x1);return{'kind':_0x1166da(0x1c0),'closed':!0x1,'anchors':_0x27cd59};}function _0x9d965(_0x259eb7,_0x47f957,_0x4a7dff){const _0x24c94e=_0x3e2d3d;let _0x431f84=null,_0x37cd15=[_0x24c94e(0x1b3),'in',_0x24c94e(0x1e3)];return _0x259eb7[_0x24c94e(0x219)][_0x24c94e(0x1e5)]((_0x32fa6b,_0x1026f6)=>{_0x37cd15['forEach'](_0x4107cd=>{const _0x5e6727=_0x3a25;if(!_0x3dd58e(_0x259eb7,_0x1026f6,_0x4107cd))return;let _0x4fa852=_0x1b4f30(_0x32fa6b,_0x4107cd);if(!_0x4fa852)return;let _0x2defb8=_0x4c79dd(_0x47f957,_0x4fa852);_0x2defb8>_0x4a7dff||_0x431f84&&_0x2defb8>=_0x431f84[_0x5e6727(0x216)]||(_0x431f84={'handle':{'kind':_0x4107cd,'anchorId':_0x32fa6b['id']},'point':_0x4faa80(_0x4fa852),'distance':_0x2defb8});});}),_0x431f84;}function _0x1b364a(_0x579564,_0x40f881,_0x1643e8){const _0x37e6c0=_0x3e2d3d;let _0x154fe0=null,_0x4dbea4=_0x579564['closed']?_0x579564[_0x37e6c0(0x219)][_0x37e6c0(0x1a0)]:Math[_0x37e6c0(0x206)](0x0,_0x579564[_0x37e6c0(0x219)]['length']-0x1);for(let _0x32c3af=0x0;_0x32c3af<_0x4dbea4;_0x32c3af++){let _0x224909=_0x37e941(_0x579564,_0x32c3af);if(!_0x224909)continue;let _0x4edb29=_0x4ab5a6(_0x224909,0x0);for(let _0xaff366=0x1;_0xaff366<=0x20;_0xaff366++){let _0x2597f1=_0x4ab5a6(_0x224909,_0xaff366/0x20),_0x2b0e4b=_0x38956b(_0x40f881,_0x4edb29,_0x2597f1),_0x48f6e9=(_0xaff366-0x1+_0x2b0e4b[_0x37e6c0(0x1fa)])/0x20;(!_0x154fe0||_0x2b0e4b[_0x37e6c0(0x216)]<_0x154fe0['distance'])&&(_0x154fe0={'segmentIndex':_0x32c3af,'t':_0x48f6e9,'point':_0x2b0e4b[_0x37e6c0(0x1cd)],'distance':_0x2b0e4b[_0x37e6c0(0x216)]}),_0x4edb29=_0x2597f1;}}return _0x154fe0&&_0x154fe0[_0x37e6c0(0x216)]<=_0x1643e8?_0x154fe0:null;}function _0x29f2ef(_0x310685,_0x30bc9c,_0x2cda7c){const _0x298eb3=_0x3e2d3d;let _0x3dcb36=_0x45f530(_0x310685),_0x188832=_0x95c95c(_0x3dcb36,_0x30bc9c[_0x298eb3(0x1a7)]),_0x8da484=_0x37e941(_0x3dcb36,_0x30bc9c['segmentIndex']);if(!_0x188832||!_0x8da484)return _0x3dcb36;let _0x547497=_0x445693(_0x8da484,Math[_0x298eb3(0x206)](0x0,Math['min'](0x1,_0x30bc9c['t']))),_0x3094d3={'id':_0x2cda7c(),'x':_0x547497[_0x298eb3(0x20a)][0x3]['x'],'y':_0x547497[_0x298eb3(0x20a)][0x3]['y'],'in':_0x4faa80(_0x547497[_0x298eb3(0x20a)][0x2]),'out':_0x4faa80(_0x547497[_0x298eb3(0x1b2)][0x1]),'pointType':'free'};return _0x3dcb36[_0x298eb3(0x219)][_0x188832[_0x298eb3(0x1c1)]][_0x298eb3(0x1e3)]=_0x4faa80(_0x547497[_0x298eb3(0x20a)][0x1]),_0x3dcb36[_0x298eb3(0x219)][_0x188832[_0x298eb3(0x1f5)]]['in']=_0x4faa80(_0x547497[_0x298eb3(0x1b2)][0x2]),_0x3dcb36['anchors'][_0x298eb3(0x1fe)](_0x188832['startIndex']+0x1,0x0,_0x3094d3),_0x3dcb36;}function _0x243a10(_0x2d7eb9,_0x2dc6a3){const _0x1c7458=_0x3e2d3d;let _0x43f8ab=_0x45f530(_0x2d7eb9);return _0x43f8ab[_0x1c7458(0x219)]=_0x43f8ab[_0x1c7458(0x219)]['filter'](_0x247d33=>_0x247d33['id']!==_0x2dc6a3),_0x43f8ab[_0x1c7458(0x21a)]&&_0x43f8ab[_0x1c7458(0x219)][_0x1c7458(0x1a0)]<0x3&&(_0x43f8ab[_0x1c7458(0x21a)]=!0x1),_0x43f8ab;}function _0x4bb597(_0x5c5b64,_0x274024,_0x59b45a){const _0x838d74=_0x3e2d3d;let _0x1b1ecc=_0x45f530(_0x5c5b64),_0x28c07c=_0x1b1ecc[_0x838d74(0x219)][_0x838d74(0x1ed)](_0x5931db=>_0x5931db['id']===_0x274024),_0x179c6d=_0x1b1ecc['anchors'][_0x28c07c];if(!_0x179c6d)return _0x1b1ecc;if(_0x179c6d['pointType']=_0x59b45a,_0x59b45a===_0x838d74(0x1cf))return delete _0x179c6d['in'],delete _0x179c6d[_0x838d74(0x1e3)],_0x1b1ecc;let _0x52ede4=_0x2a0f36(_0x1b1ecc,_0x28c07c);if(_0x179c6d['in']=_0x179c6d['in']?_0x4faa80(_0x179c6d['in']):_0x52ede4['in'],_0x179c6d[_0x838d74(0x1e3)]=_0x179c6d['out']?_0x4faa80(_0x179c6d[_0x838d74(0x1e3)]):_0x52ede4[_0x838d74(0x1e3)],_0x59b45a==='symmetric'){let _0x16a3ba=Math[_0x838d74(0x206)](_0x4c79dd(_0x179c6d,_0x179c6d['in']),_0x4c79dd(_0x179c6d,_0x179c6d[_0x838d74(0x1e3)]),0x32),_0x44fedb=_0x2d266b({'x':_0x179c6d[_0x838d74(0x1e3)]['x']-_0x179c6d['x'],'y':_0x179c6d['out']['y']-_0x179c6d['y']});_0x179c6d[_0x838d74(0x1e3)]={'x':_0x179c6d['x']+_0x44fedb['x']*_0x16a3ba,'y':_0x179c6d['y']+_0x44fedb['y']*_0x16a3ba},_0x179c6d['in']={'x':_0x179c6d['x']-_0x44fedb['x']*_0x16a3ba,'y':_0x179c6d['y']-_0x44fedb['y']*_0x16a3ba};}else _0x59b45a===_0x838d74(0x1c7)&&_0x538446(_0x179c6d,'out');return _0x1b1ecc;}function _0x4e4a28(_0x298c14,_0x1cb35c){const _0x2f209a=_0x3e2d3d;var _0x46e667;let _0x3b571e=_0x298c14['anchors'][_0x2f209a(0x211)](_0x33816f=>_0x33816f['id']===_0x1cb35c),_0x3269a9=(_0x46e667=_0x3b571e==null?void 0x0:_0x3b571e[_0x2f209a(0x1e8)])==null?_0x2f209a(0x1cf):_0x46e667;return _0x4bb597(_0x298c14,_0x1cb35c,_0x3269a9===_0x2f209a(0x1cf)?'smooth':_0x3269a9===_0x2f209a(0x1c7)?_0x2f209a(0x1ff):_0x3269a9===_0x2f209a(0x1ff)?_0x2f209a(0x1d0):_0x2f209a(0x1cf));}function _0x1f11e4(_0x3eb447,_0x4b52a3,_0x39d3b4){const _0x28393e=_0x3e2d3d;let _0x2f8d30=_0x45f530(_0x3eb447),_0x5473bc=_0x2f8d30['anchors'][_0x28393e(0x211)](_0x51edfe=>_0x51edfe['id']===_0x4b52a3[_0x28393e(0x1ef)]);if(!_0x5473bc)return _0x2f8d30;if(_0x4b52a3[_0x28393e(0x21d)]===_0x28393e(0x1b3)){let _0x2f9930={'x':_0x39d3b4['x']-_0x5473bc['x'],'y':_0x39d3b4['y']-_0x5473bc['y']};return _0x5473bc['x']=_0x39d3b4['x'],_0x5473bc['y']=_0x39d3b4['y'],_0x5473bc['in']&&(_0x5473bc['in']={'x':_0x5473bc['in']['x']+_0x2f9930['x'],'y':_0x5473bc['in']['y']+_0x2f9930['y']}),_0x5473bc[_0x28393e(0x1e3)]&&(_0x5473bc[_0x28393e(0x1e3)]={'x':_0x5473bc[_0x28393e(0x1e3)]['x']+_0x2f9930['x'],'y':_0x5473bc[_0x28393e(0x1e3)]['y']+_0x2f9930['y']}),_0x2f8d30;}return _0x5473bc[_0x4b52a3[_0x28393e(0x21d)]]=_0x4faa80(_0x39d3b4),_0x5473bc[_0x28393e(0x1e8)]===_0x28393e(0x1cf)&&(_0x5473bc[_0x28393e(0x1e8)]=_0x28393e(0x1d0)),_0x538446(_0x5473bc,_0x4b52a3[_0x28393e(0x21d)]),_0x2f8d30;}let _0x4de1bb=1e-9;function _0x429f4e(_0x540c2b){const _0x2d5555=_0x3e2d3d;let _0x155c26=Math[_0x2d5555(0x1ec)](_0x540c2b*0x2710)/0x2710;return Object['is'](_0x155c26,-0x0)?'0':String(_0x155c26);}function _0x2201d8(_0x414637){return _0x429f4e(_0x414637['x'])+'\x20'+_0x429f4e(_0x414637['y']);}function _0x5189ee(_0x16560d,_0x32a447){return{'x':_0x16560d['x']-_0x32a447['x'],'y':_0x16560d['y']-_0x32a447['y']};}function _0x23e84a(_0x40b807,_0x11e935,_0x537853,_0x3787d9,_0x505b9b){let _0xdb0355=0x1-_0x505b9b;return{'x':_0xdb0355*_0xdb0355*_0xdb0355*_0x40b807['x']+0x3*_0xdb0355*_0xdb0355*_0x505b9b*_0x11e935['x']+0x3*_0xdb0355*_0x505b9b*_0x505b9b*_0x537853['x']+_0x505b9b*_0x505b9b*_0x505b9b*_0x3787d9['x'],'y':_0xdb0355*_0xdb0355*_0xdb0355*_0x40b807['y']+0x3*_0xdb0355*_0xdb0355*_0x505b9b*_0x11e935['y']+0x3*_0xdb0355*_0x505b9b*_0x505b9b*_0x537853['y']+_0x505b9b*_0x505b9b*_0x505b9b*_0x3787d9['y']};}function _0x28155a(_0x5dd945,_0x2dc2d1,_0x3476e5,_0x2d297a){const _0x387d2c=_0x3e2d3d;let _0x635044=-_0x5dd945+0x3*_0x2dc2d1-0x3*_0x3476e5+_0x2d297a,_0x1b9749=0x3*_0x5dd945-0x6*_0x2dc2d1+0x3*_0x3476e5,_0x3e7f41=-0x3*_0x5dd945+0x3*_0x2dc2d1,_0x4f5d99=[];if(Math['abs'](_0x635044)<_0x4de1bb){if(Math['abs'](_0x1b9749)<_0x4de1bb)return _0x4f5d99;let _0x3f4855=-_0x3e7f41/(0x2*_0x1b9749);return _0x3f4855>0x0&&_0x3f4855<0x1&&_0x4f5d99[_0x387d2c(0x1d2)](_0x3f4855),_0x4f5d99;}let _0x3db204=_0x1b9749*_0x1b9749-0x3*_0x635044*_0x3e7f41;if(_0x3db204<0x0)return _0x4f5d99;let _0x1c5b80=Math[_0x387d2c(0x1bc)](Math[_0x387d2c(0x206)](0x0,_0x3db204)),_0x47938c=(-_0x1b9749+_0x1c5b80)/(0x3*_0x635044),_0x5dd727=(-_0x1b9749-_0x1c5b80)/(0x3*_0x635044);return _0x47938c>0x0&&_0x47938c<0x1&&_0x4f5d99[_0x387d2c(0x1d2)](_0x47938c),_0x5dd727>0x0&&_0x5dd727<0x1&&Math[_0x387d2c(0x1c6)](_0x5dd727-_0x47938c)>_0x4de1bb&&_0x4f5d99[_0x387d2c(0x1d2)](_0x5dd727),_0x4f5d99;}function _0x452c10(_0x5b0df5,_0x34ab3a,_0x1a1b1e,_0x57063c,_0x2b1b12){const _0xc1e072=_0x3e2d3d;_0x5b0df5[_0xc1e072(0x1d2)](_0x34ab3a,_0x2b1b12),new Set([..._0x28155a(_0x34ab3a['x'],_0x1a1b1e['x'],_0x57063c['x'],_0x2b1b12['x']),..._0x28155a(_0x34ab3a['y'],_0x1a1b1e['y'],_0x57063c['y'],_0x2b1b12['y'])])['forEach'](_0x5bec93=>{const _0x373e78=_0xc1e072;_0x5b0df5[_0x373e78(0x1d2)](_0x23e84a(_0x34ab3a,_0x1a1b1e,_0x57063c,_0x2b1b12,_0x5bec93));});}function _0x241a41(_0x193e47){const _0x2a7683=_0x3e2d3d;let _0x2544f8=_0x193e47['anchors'];if(_0x2544f8['length']<=0x1)return _0x2544f8;let _0x219c16=[];for(let _0x15f519=0x1;_0x15f519<_0x2544f8[_0x2a7683(0x1a0)];_0x15f519++){var _0x3c9086,_0x41594a;let _0x2fc3e5=_0x2544f8[_0x15f519-0x1],_0x4b4ad7=_0x2544f8[_0x15f519];_0x452c10(_0x219c16,_0x2fc3e5,(_0x3c9086=_0x2fc3e5['out'])==null?_0x2fc3e5:_0x3c9086,(_0x41594a=_0x4b4ad7['in'])==null?_0x4b4ad7:_0x41594a,_0x4b4ad7);}if(_0x193e47[_0x2a7683(0x21a)]&&_0x2544f8[_0x2a7683(0x1a0)]>0x1){var _0x30eb94,_0x480c4c;let _0x27cc4a=_0x2544f8[_0x2544f8[_0x2a7683(0x1a0)]-0x1],_0x15099d=_0x2544f8[0x0];_0x452c10(_0x219c16,_0x27cc4a,(_0x30eb94=_0x27cc4a['out'])==null?_0x27cc4a:_0x30eb94,(_0x480c4c=_0x15099d['in'])==null?_0x15099d:_0x480c4c,_0x15099d);}return _0x219c16;}function _0x18e165(_0x2c130d){const _0x5e88fd=_0x3e2d3d;let _0x5ed27d=_0x2c130d[_0x5e88fd(0x1cc)];if(_0x5ed27d[_0x5e88fd(0x1a0)]<=0x1)return _0x5ed27d;let _0x592bf8=[];for(let _0x9384ac=0x0;_0x9384ac<_0x5ed27d[_0x5e88fd(0x1a0)]-0x1;_0x9384ac++){var _0xca0bd1,_0x55a850;let _0x4c7dce=_0x5ed27d[_0x9384ac],_0x308ff6=_0x5ed27d[_0x9384ac+0x1],_0x3519f1=(_0xca0bd1=_0x5ed27d[_0x9384ac-0x1])==null?_0x4c7dce:_0xca0bd1,_0x4a93bd=(_0x55a850=_0x5ed27d[_0x9384ac+0x2])==null?_0x308ff6:_0x55a850;_0x452c10(_0x592bf8,_0x4c7dce,{'x':_0x4c7dce['x']+(_0x308ff6['x']-_0x3519f1['x'])/0x6,'y':_0x4c7dce['y']+(_0x308ff6['y']-_0x3519f1['y'])/0x6},{'x':_0x308ff6['x']-(_0x4a93bd['x']-_0x4c7dce['x'])/0x6,'y':_0x308ff6['y']-(_0x4a93bd['y']-_0x4c7dce['y'])/0x6},_0x308ff6);}return _0x592bf8;}function _0xd80d1f(_0x2cb1f2){const _0x50e1e8=_0x3e2d3d;return _0x2cb1f2[_0x50e1e8(0x21d)]===_0x50e1e8(0x1c0)?_0x241a41(_0x2cb1f2):_0x18e165(_0x2cb1f2);}function _0x28c626(_0x398a60){const _0x27499b=_0x3e2d3d;let _0x49e360=Math[_0x27499b(0x1ec)](_0x398a60*0x2710)/0x2710;return Object['is'](_0x49e360,-0x0)?0x0:_0x49e360;}function _0x6a552(_0x54ccfb){const _0x5e1232=_0x3e2d3d;let _0x6aa795=_0xd80d1f(_0x54ccfb);if(_0x6aa795[_0x5e1232(0x1a0)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0xe5ccfe=Math[_0x5e1232(0x1bb)](..._0x6aa795[_0x5e1232(0x1d6)](_0x576e3c=>_0x576e3c['x'])),_0x12401c=Math[_0x5e1232(0x1bb)](..._0x6aa795['map'](_0x59d429=>_0x59d429['y'])),_0x4ade20=Math['max'](..._0x6aa795[_0x5e1232(0x1d6)](_0x4ba525=>_0x4ba525['x'])),_0x565c32=Math['max'](..._0x6aa795[_0x5e1232(0x1d6)](_0x12b025=>_0x12b025['y']));return{'left':_0x28c626(_0xe5ccfe),'top':_0x28c626(_0x12401c),'width':_0x28c626(Math[_0x5e1232(0x206)](0x1,_0x4ade20-_0xe5ccfe)),'height':_0x28c626(Math[_0x5e1232(0x206)](0x1,_0x565c32-_0x12401c))};}function _0x29ad79(_0x42788e,_0x36d182){const _0x3742f0=_0x3e2d3d;let _0x443b9d=_0x42788e[_0x3742f0(0x219)];if(_0x443b9d[_0x3742f0(0x1a0)]===0x0)return'';let _0x2a5b8d=['M\x20'+_0x2201d8(_0x5189ee(_0x443b9d[0x0],_0x36d182))];for(let _0x5dbb67=0x1;_0x5dbb67<_0x443b9d[_0x3742f0(0x1a0)];_0x5dbb67++){var _0x42f78d,_0x5d4571;let _0x3a8c47=_0x443b9d[_0x5dbb67-0x1],_0x5f370d=_0x443b9d[_0x5dbb67],_0x596521=(_0x42f78d=_0x3a8c47['out'])==null?_0x3a8c47:_0x42f78d,_0xf83837=(_0x5d4571=_0x5f370d['in'])==null?_0x5f370d:_0x5d4571;_0x2a5b8d[_0x3742f0(0x1d2)]('C\x20'+_0x2201d8(_0x5189ee(_0x596521,_0x36d182))+'\x20'+_0x2201d8(_0x5189ee(_0xf83837,_0x36d182))+'\x20'+_0x2201d8(_0x5189ee(_0x5f370d,_0x36d182)));}if(_0x42788e[_0x3742f0(0x21a)]&&_0x443b9d[_0x3742f0(0x1a0)]>0x1){var _0x138c0e,_0x1539c8;let _0xc6ebed=_0x443b9d[_0x443b9d[_0x3742f0(0x1a0)]-0x1],_0xa1da4e=_0x443b9d[0x0],_0x256543=(_0x138c0e=_0xc6ebed[_0x3742f0(0x1e3)])==null?_0xc6ebed:_0x138c0e,_0x270196=(_0x1539c8=_0xa1da4e['in'])==null?_0xa1da4e:_0x1539c8;_0x2a5b8d[_0x3742f0(0x1d2)]('C\x20'+_0x2201d8(_0x5189ee(_0x256543,_0x36d182))+'\x20'+_0x2201d8(_0x5189ee(_0x270196,_0x36d182))+'\x20'+_0x2201d8(_0x5189ee(_0xa1da4e,_0x36d182))),_0x2a5b8d[_0x3742f0(0x1d2)]('Z');}return _0x2a5b8d[_0x3742f0(0x1ea)]('\x20');}function _0x32b2f1(_0x5d6304,_0x12c0ab){const _0x413cb8=_0x3e2d3d;let _0x5ce2dd=_0x5d6304[_0x413cb8(0x1cc)]['map'](_0x50ee60=>_0x5189ee(_0x50ee60,_0x12c0ab));if(_0x5ce2dd[_0x413cb8(0x1a0)]===0x0)return'';if(_0x5ce2dd[_0x413cb8(0x1a0)]===0x1)return'M\x20'+_0x2201d8(_0x5ce2dd[0x0]);let _0x6f473d=['M\x20'+_0x2201d8(_0x5ce2dd[0x0])];for(let _0x559b6f=0x0;_0x559b6f<_0x5ce2dd['length']-0x1;_0x559b6f++){var _0x5c8946,_0x4c6301;let _0x3298a2=_0x5ce2dd[_0x559b6f],_0x4ad527=_0x5ce2dd[_0x559b6f+0x1],_0x5b8684=(_0x5c8946=_0x5ce2dd[_0x559b6f-0x1])==null?_0x3298a2:_0x5c8946,_0x9e91ca=(_0x4c6301=_0x5ce2dd[_0x559b6f+0x2])==null?_0x4ad527:_0x4c6301,_0x59e7d9={'x':_0x3298a2['x']+(_0x4ad527['x']-_0x5b8684['x'])/0x6,'y':_0x3298a2['y']+(_0x4ad527['y']-_0x5b8684['y'])/0x6},_0x378794={'x':_0x4ad527['x']-(_0x9e91ca['x']-_0x3298a2['x'])/0x6,'y':_0x4ad527['y']-(_0x9e91ca['y']-_0x3298a2['y'])/0x6};_0x6f473d[_0x413cb8(0x1d2)]('C\x20'+_0x2201d8(_0x59e7d9)+'\x20'+_0x2201d8(_0x378794)+'\x20'+_0x2201d8(_0x4ad527));}return _0x6f473d[_0x413cb8(0x1ea)]('\x20');}function _0x28f44c(_0x31751f,_0x5247f0){return _0x31751f['kind']==='pen'?_0x29ad79(_0x31751f,_0x5247f0):_0x32b2f1(_0x31751f,_0x5247f0);}function _0x2a3fad(_0xe512bc,_0x407734){const _0x4ee38d=_0x3e2d3d;return _0x407734!=null&&_0x407734['color']?_0x407734['color']:_0xe512bc[_0x4ee38d(0x21d)]===_0x4ee38d(0x1c0)?_0x4ee38d(0x1bd):_0xe512bc[_0x4ee38d(0x1f8)];}function _0x3d3526(_0x4c455c,_0x52136f){const _0xf27174=_0x3e2d3d;return(_0x52136f==null?void 0x0:_0x52136f[_0xf27174(0x1ac)])===void 0x0?_0x4c455c[_0xf27174(0x21d)]===_0xf27174(0x1c0)?0x2:_0x4c455c[_0xf27174(0x1ac)]:_0x52136f['width'];}function _0x1d9af3(_0x125172,_0x2bb674){const _0x13b305=_0x3e2d3d;return(_0x2bb674==null?void 0x0:_0x2bb674['opacity'])===void 0x0?_0x125172[_0x13b305(0x21d)]===_0x13b305(0x1c0)?void 0x0:_0x125172['opacity']:_0x2bb674[_0x13b305(0x1b0)];}function _0xab0b95(_0x43d299,_0x256737){const _0x58ca11=_0x3e2d3d;let _0x27561a=_0x6a552(_0x43d299),_0xec0930=_0x28f44c(_0x43d299,{'x':_0x27561a[_0x58ca11(0x20a)],'y':_0x27561a[_0x58ca11(0x207)]}),_0x39135b=_0x43d299[_0x58ca11(0x21d)]==='pen'&&_0x43d299[_0x58ca11(0x21a)],_0x314a03=_0x256737==null?void 0x0:_0x256737[_0x58ca11(0x217)];return{'shapeType':_0x5d0e63[_0x58ca11(0x1f4)]['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x27561a[_0x58ca11(0x1ac)],'h':_0x27561a[_0x58ca11(0x1b4)],'fill':_0x39135b?_0x58ca11(0x1f9):_0x58ca11(0x1da),'stroke':!0x0,'data':_0xec0930,'dataArray':_0x1fe57d(_0x43d299,{'x':_0x27561a['left'],'y':_0x27561a[_0x58ca11(0x207)]})}]},'fill':_0x39135b&&_0x314a03?{'color':_0x314a03,'fillType':_0x5d0e63[_0x58ca11(0x1b1)][_0x58ca11(0x20d)]}:{'fillType':_0x5d0e63['ShapeFillEnum'][_0x58ca11(0x215)]},'stroke':{'color':_0x2a3fad(_0x43d299,_0x256737),'width':_0x3d3526(_0x43d299,_0x256737),'opacity':_0x1d9af3(_0x43d299,_0x256737),'lineStrokeType':_0x5d0e63['ShapeLineTypeEnum'][_0x58ca11(0x203)],'capType':_0x5d0e63[_0x58ca11(0x1fb)][_0x58ca11(0x201)],'lineJoinType':_0x5d0e63['ShapeLineJoinEnum'][_0x58ca11(0x201)]}};}function _0xe8730e(_0xc93258,_0x274938){return{'x':_0xc93258['x']-_0x274938['x'],'y':_0xc93258['y']-_0x274938['y']};}function _0x1fe57d(_0x1a33f5,_0x4c7e5b){const _0x14cd67=_0x3e2d3d;if(_0x1a33f5[_0x14cd67(0x21d)]==='pen'){let _0x38d662=_0x1a33f5[_0x14cd67(0x219)];if(_0x38d662['length']===0x0)return[];let _0x455753=_0xe8730e(_0x38d662[0x0],_0x4c7e5b),_0x365c73=[{'command':'M','points':[_0x455753['x'],_0x455753['y']]}];for(let _0x17ed81=0x1;_0x17ed81<_0x38d662[_0x14cd67(0x1a0)];_0x17ed81++){var _0x546f13,_0x461f39;let _0x4e95c8=_0x38d662[_0x17ed81-0x1],_0x54bed9=_0x38d662[_0x17ed81],_0x2f1bef=_0xe8730e((_0x546f13=_0x4e95c8[_0x14cd67(0x1e3)])==null?_0x4e95c8:_0x546f13,_0x4c7e5b),_0x461fc7=_0xe8730e((_0x461f39=_0x54bed9['in'])==null?_0x54bed9:_0x461f39,_0x4c7e5b),_0x13295b=_0xe8730e(_0x54bed9,_0x4c7e5b);_0x365c73[_0x14cd67(0x1d2)]({'command':'C','points':[_0x2f1bef['x'],_0x2f1bef['y'],_0x461fc7['x'],_0x461fc7['y'],_0x13295b['x'],_0x13295b['y']]});}if(_0x1a33f5[_0x14cd67(0x21a)]&&_0x38d662['length']>0x1){var _0x31827b,_0x444ab1;let _0x235fff=_0x38d662[_0x38d662['length']-0x1],_0x1105a5=_0x38d662[0x0],_0x170195=_0xe8730e((_0x31827b=_0x235fff[_0x14cd67(0x1e3)])==null?_0x235fff:_0x31827b,_0x4c7e5b),_0x1f68eb=_0xe8730e((_0x444ab1=_0x1105a5['in'])==null?_0x1105a5:_0x444ab1,_0x4c7e5b),_0x21faed=_0xe8730e(_0x1105a5,_0x4c7e5b);_0x365c73[_0x14cd67(0x1d2)]({'command':'C','points':[_0x170195['x'],_0x170195['y'],_0x1f68eb['x'],_0x1f68eb['y'],_0x21faed['x'],_0x21faed['y']]}),_0x365c73['push']({'command':'z','points':[]});}return _0x365c73;}let _0x3c7e08=_0x1a33f5['points'][_0x14cd67(0x1d6)](_0x5deadc=>_0xe8730e(_0x5deadc,_0x4c7e5b));if(_0x3c7e08['length']===0x0)return[];let _0x12aee1=[{'command':'M','points':[_0x3c7e08[0x0]['x'],_0x3c7e08[0x0]['y']]}];for(let _0x1b1cda=0x0;_0x1b1cda<_0x3c7e08[_0x14cd67(0x1a0)]-0x1;_0x1b1cda++){var _0x25059e,_0x394aa8;let _0x21d77a=_0x3c7e08[_0x1b1cda],_0x1b3218=_0x3c7e08[_0x1b1cda+0x1],_0x1c549f=(_0x25059e=_0x3c7e08[_0x1b1cda-0x1])==null?_0x21d77a:_0x25059e,_0x4020fb=(_0x394aa8=_0x3c7e08[_0x1b1cda+0x2])==null?_0x1b3218:_0x394aa8,_0x2b6f22={'x':_0x21d77a['x']+(_0x1b3218['x']-_0x1c549f['x'])/0x6,'y':_0x21d77a['y']+(_0x1b3218['y']-_0x1c549f['y'])/0x6},_0x540faa={'x':_0x1b3218['x']-(_0x4020fb['x']-_0x21d77a['x'])/0x6,'y':_0x1b3218['y']-(_0x4020fb['y']-_0x21d77a['y'])/0x6};_0x12aee1[_0x14cd67(0x1d2)]({'command':'C','points':[_0x2b6f22['x'],_0x2b6f22['y'],_0x540faa['x'],_0x540faa['y'],_0x1b3218['x'],_0x1b3218['y']]});}return _0x12aee1;}function _0x124243(_0x2befcb){const _0xf0516f=_0x3e2d3d;var _0x28a0c5;let {model:_0x452b1d,sourceModel:_0x35a2aa=_0x452b1d,style:_0x4a1646}=_0x2befcb,_0x438637=(_0x28a0c5=_0x2befcb[_0xf0516f(0x1eb)])==null?_0x452b1d['kind']:_0x28a0c5,_0x57abe0=_0x6a552(_0x452b1d),_0xb5ff79=_0x452b1d['kind']===_0xf0516f(0x1c0)&&_0x438637!=='pen'?_0x452b1d:void 0x0;return{'transform':{..._0x57abe0,'rotation':0x0},'shapeData':_0xab0b95(_0x452b1d,_0x4a1646),'ink':{'version':0x1,'tool':_0x438637,'sourceModel':_0x35a2aa,..._0xb5ff79?{'editModel':_0xb5ff79}:{},'normalizedBounds':_0x57abe0}};}var _0x4c00b0=_0x3e2d3d(0x20f),_0x1f09d8=_0x3e2d3d(0x1e0);function _0x404e25(_0x1341e5){'@babel/helpers - typeof';const _0x389909=_0x3e2d3d;return _0x404e25=typeof Symbol==_0x389909(0x1d3)&&typeof Symbol['iterator']==_0x389909(0x214)?function(_0x33278b){return typeof _0x33278b;}:function(_0x6c24a9){const _0x51ebe2=_0x389909;return _0x6c24a9&&typeof Symbol==_0x51ebe2(0x1d3)&&_0x6c24a9[_0x51ebe2(0x1aa)]===Symbol&&_0x6c24a9!==Symbol[_0x51ebe2(0x1b6)]?_0x51ebe2(0x214):typeof _0x6c24a9;},_0x404e25(_0x1341e5);}function _0x4b75d1(_0x3137f4,_0x4c457e){const _0xc962be=_0x3e2d3d;if(_0x404e25(_0x3137f4)!=_0xc962be(0x1bf)||!_0x3137f4)return _0x3137f4;var _0x9241bb=_0x3137f4[Symbol[_0xc962be(0x21c)]];if(_0x9241bb!==void 0x0){var _0x149106=_0x9241bb['call'](_0x3137f4,_0x4c457e||_0xc962be(0x21e));if(_0x404e25(_0x149106)!=_0xc962be(0x1bf))return _0x149106;throw TypeError(_0xc962be(0x1dc));}return(_0x4c457e==='string'?String:Number)(_0x3137f4);}function _0x1d2c18(_0x5788d9){const _0x559284=_0x3e2d3d;var _0x150dc6=_0x4b75d1(_0x5788d9,'string');return _0x404e25(_0x150dc6)==_0x559284(0x214)?_0x150dc6:_0x150dc6+'';}function _0x5d299a(_0x4ebf7b,_0xe59687,_0x378e28){const _0x442c71=_0x3e2d3d;return(_0xe59687=_0x1d2c18(_0xe59687))in _0x4ebf7b?Object[_0x442c71(0x1c9)](_0x4ebf7b,_0xe59687,{'value':_0x378e28,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ebf7b[_0xe59687]=_0x378e28,_0x4ebf7b;}let _0x248220=(0x0,_0x3c5076[_0x3e2d3d(0x1cb)])(_0x3e2d3d(0x1a6));var _0x5a8206=class{constructor(){const _0x573234=_0x3e2d3d;_0x5d299a(this,_0x573234(0x20c),[]);}[_0x3e2d3d(0x1de)](_0x41ff62){const _0x906695=_0x3e2d3d;return this[_0x906695(0x20c)][_0x906695(0x1d2)](_0x41ff62),(0x0,_0x3c5076[_0x906695(0x1a9)])(()=>{const _0x5a5773=_0x906695;let _0x2ad084=this[_0x5a5773(0x20c)][_0x5a5773(0x1a4)](_0x41ff62);_0x2ad084>=0x0&&this[_0x5a5773(0x20c)][_0x5a5773(0x1fe)](_0x2ad084,0x1);});}[_0x3e2d3d(0x1ae)](_0x4e394c){const _0x38bf7=_0x3e2d3d;for(let _0x19b68a of this[_0x38bf7(0x20c)])if(_0x19b68a['beginInkMode'](_0x4e394c))return!0x0;return!0x1;}async[_0x3e2d3d(0x210)](_0x141645){const _0x5ef37c=_0x3e2d3d;for(let _0x4d94f6 of this[_0x5ef37c(0x20c)])if(_0x4d94f6[_0x5ef37c(0x210)]&&await _0x4d94f6[_0x5ef37c(0x210)](_0x141645))return!0x0;return!0x1;}};let _0x5a802a={'id':_0x3e2d3d(0x1e6),'type':_0x3c5076[_0x3e2d3d(0x1ad)]['OPERATION'],'handler':(_0x4c8a57,_0x99f52f)=>_0x99f52f?_0x4c8a57[_0x3e2d3d(0x1b7)](_0x248220)[_0x3e2d3d(0x1ae)](_0x99f52f):!0x1},_0x1e9ceb={};function _0x5680b7(_0xa3aed8,_0x124210){return function(_0x5a5dc0,_0x394d80){_0x124210(_0x5a5dc0,_0x394d80,_0xa3aed8);};}function _0x72a505(_0x52615b,_0x2215ed,_0x577992,_0x546693){const _0x27758a=_0x3e2d3d;var _0x226938=arguments[_0x27758a(0x1a0)],_0x2db658=_0x226938<0x3?_0x2215ed:_0x546693===null?_0x546693=Object['getOwnPropertyDescriptor'](_0x2215ed,_0x577992):_0x546693,_0x31b16f;if(typeof Reflect==_0x27758a(0x1bf)&&typeof Reflect['decorate']==_0x27758a(0x1d3))_0x2db658=Reflect[_0x27758a(0x218)](_0x52615b,_0x2215ed,_0x577992,_0x546693);else{for(var _0x3444bd=_0x52615b[_0x27758a(0x1a0)]-0x1;_0x3444bd>=0x0;_0x3444bd--)(_0x31b16f=_0x52615b[_0x3444bd])&&(_0x2db658=(_0x226938<0x3?_0x31b16f(_0x2db658):_0x226938>0x3?_0x31b16f(_0x2215ed,_0x577992,_0x2db658):_0x31b16f(_0x2215ed,_0x577992))||_0x2db658);}return _0x226938>0x3&&_0x2db658&&Object[_0x27758a(0x1c9)](_0x2215ed,_0x577992,_0x2db658),_0x2db658;}let _0x3a54e7=class extends _0x3c5076[_0x3e2d3d(0x205)]{constructor(_0x2ecb44=_0x1e9ceb,_0x1810d8,_0x180204,_0x39d4ff){const _0x5aef00=_0x3e2d3d;super(),this[_0x5aef00(0x1b5)]=_0x2ecb44,this[_0x5aef00(0x19e)]=_0x1810d8,this[_0x5aef00(0x21b)]=_0x180204,this[_0x5aef00(0x1fc)]=_0x39d4ff;let {..._0x3fe1ca}=(0x0,_0x3c5076[_0x5aef00(0x1ca)])({},_0x1e9ceb,this[_0x5aef00(0x1b5)]);this[_0x5aef00(0x1fc)][_0x5aef00(0x1e1)]('ink.config',_0x3fe1ca);}['onStarting'](){const _0x18d484=_0x3e2d3d;[[_0x248220,{'useClass':_0x5a8206}]][_0x18d484(0x1e5)](_0x23947a=>this[_0x18d484(0x19e)][_0x18d484(0x202)](_0x23947a)),this['disposeWithMe'](this[_0x18d484(0x21b)][_0x18d484(0x1d8)](_0x5a802a));}};_0x5d299a(_0x3a54e7,'pluginName',_0x3e2d3d(0x1db)),_0x5d299a(_0x3a54e7,_0x3e2d3d(0x1ee),_0x4c00b0),_0x5d299a(_0x3a54e7,'version',_0x1f09d8),_0x5d299a(_0x3a54e7,_0x3e2d3d(0x1fd),_0x3c5076[_0x3e2d3d(0x213)]['UNIVER_UNKNOWN']),_0x3a54e7=_0x72a505([(0x0,_0x3c5076[_0x3e2d3d(0x1be)])(_0x5a5096[_0x3e2d3d(0x1f3)]),_0x5680b7(0x1,(0x0,_0x3c5076[_0x3e2d3d(0x1dd)])(_0x3c5076[_0x3e2d3d(0x209)])),_0x5680b7(0x2,_0x3c5076[_0x3e2d3d(0x1d5)]),_0x5680b7(0x3,_0x3c5076[_0x3e2d3d(0x1e9)])],_0x3a54e7),_0x1e5548[_0x3e2d3d(0x1c4)]=_0x248220,Object[_0x3e2d3d(0x1c9)](_0x1e5548,'UniverInkPlugin',{'enumerable':!0x0,'get':function(){return _0x3a54e7;}}),_0x1e5548[_0x3e2d3d(0x1f7)]=_0x124243,_0x1e5548['convertBrushModelToPenModel']=_0x1dd37a,_0x1e5548['cycleInkPenAnchorPointType']=_0x4e4a28,_0x1e5548[_0x3e2d3d(0x1d1)]=_0x243a10,_0x1e5548[_0x3e2d3d(0x212)]=_0x9d965,_0x1e5548[_0x3e2d3d(0x208)]=_0x1b364a,_0x1e5548[_0x3e2d3d(0x20e)]=_0x6a552,_0x1e5548[_0x3e2d3d(0x1e2)]=_0x1255d5,_0x1e5548['insertInkPenAnchorAt']=_0x29f2ef,_0x1e5548[_0x3e2d3d(0x1d4)]=_0x3dd58e,_0x1e5548[_0x3e2d3d(0x19f)]=_0x1f11e4,_0x1e5548[_0x3e2d3d(0x1c5)]=_0x4bb597;}));function _0x3a25(_0x43493d,_0x47b4ce){_0x43493d=_0x43493d-0x19e;const _0x560183=_0x5601();let _0x3a25d1=_0x560183[_0x43493d];return _0x3a25d1;}function _0x5601(){const _0x2e1285=['__ink-preview-anchor__','@univerjs/core','UniverLicensePlugin','ShapeTypeEnum','endIndex','@univerjs-pro/engine-shape','buildInkCustomShapePayload','color','norm','ratio','ShapeLineCapEnum','_configService','type','splice','symmetric','20xbcgzL','Round','add','SolidLine','amd','Plugin','max','top','findClosestInkPenSegment','Injector','left','1076677XoaYDi','_adapters','SolidFill','getInkModelBounds','@univerjs-pro/ink','createCustomShape','find','findClosestInkPenHandle','UniverInstanceType','symbol','NoFill','distance','fillColor','decorate','anchors','closed','_commandService','toPrimitive','kind','default','_injector','moveInkPenAnchorPoint','length','start','UniverProEngineShape','241622fKprLn','indexOf','UniverCore','ink.host-adapter.service','segmentIndex','slice','toDisposable','constructor','11WtirBI','width','CommandType','beginInkMode','ink-centerline-','opacity','ShapeFillEnum','right','anchor','height','_config','prototype','get','405LlmurC','3777936CQqcCW','createId','min','sqrt','#f54a45','DependentOn','object','pen','startIndex','Module','end','IInkHostAdapterService','setInkPenAnchorPointType','abs','smooth','1093332wmStSy','defineProperty','merge','createIdentifier','points','point','toStringTag','corner','free','deleteInkPenAnchor','push','function','isInkPenHandleVisible','ICommandService','map','@univerjs-pro/license','registerCommand','166688vlWeXe','none','UNIVER_INK_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Inject','registerAdapter','13533350rPXVuX','1.0.0-alpha.7','setConfig','getInkPenPreviewModel','out','UniverProLicense','forEach','ink.operation.start','hypot','pointType','IConfigService','join','tool','round','findIndex','packageName','anchorId','392103BQkMDS'];_0x5601=function(){return _0x2e1285;};return _0x5601();}
|
|
1
|
+
function _0x5241(_0x168490,_0x329403){_0x168490=_0x168490-0x1db;const _0x4e1c38=_0x4e1c();let _0x5241ce=_0x4e1c38[_0x168490];return _0x5241ce;}(function(_0x159554,_0x127ef8){const _0x5bd495=_0x5241,_0x4a192=_0x159554();while(!![]){try{const _0x32bddd=parseInt(_0x5bd495(0x210))/0x1*(parseInt(_0x5bd495(0x21d))/0x2)+parseInt(_0x5bd495(0x1eb))/0x3*(parseInt(_0x5bd495(0x1ee))/0x4)+parseInt(_0x5bd495(0x245))/0x5+parseInt(_0x5bd495(0x202))/0x6*(-parseInt(_0x5bd495(0x228))/0x7)+parseInt(_0x5bd495(0x236))/0x8+-parseInt(_0x5bd495(0x1df))/0x9*(parseInt(_0x5bd495(0x215))/0xa)+-parseInt(_0x5bd495(0x201))/0xb;if(_0x32bddd===_0x127ef8)break;else _0x4a192['push'](_0x4a192['shift']());}catch(_0x56536b){_0x4a192['push'](_0x4a192['shift']());}}}(_0x4e1c,0x512e3),function(_0x5158dd,_0x181939){const _0x7434af=_0x5241;typeof exports==_0x7434af(0x1ff)&&typeof module<'u'?_0x181939(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x7434af(0x1e6)&&define[_0x7434af(0x24e)]?define([_0x7434af(0x1ea),_0x7434af(0x20a),_0x7434af(0x254),_0x7434af(0x24d)],_0x181939):(_0x5158dd=typeof globalThis<'u'?globalThis:_0x5158dd||self,_0x181939(_0x5158dd[_0x7434af(0x24f)]={},_0x5158dd[_0x7434af(0x237)],_0x5158dd[_0x7434af(0x249)],_0x5158dd[_0x7434af(0x225)]));}(this,function(_0x18fc87,_0x547db6,_0xe1cdb9,_0x20b30c){const _0x3a7915=_0x5241;Object[_0x3a7915(0x1e0)](_0x18fc87,Symbol[_0x3a7915(0x1f1)],{'value':_0x3a7915(0x219)});let _0xbeda67=0.0001;function _0x27f664(_0x57a13a){return{'x':_0x57a13a['x'],'y':_0x57a13a['y']};}function _0x42983c(_0x50c4b2){const _0xfef5e0=_0x3a7915;return{..._0x50c4b2,'in':_0x50c4b2['in']?_0x27f664(_0x50c4b2['in']):void 0x0,'out':_0x50c4b2['out']?_0x27f664(_0x50c4b2[_0xfef5e0(0x24c)]):void 0x0};}function _0x4ca0a1(_0x4879f5){const _0x5c4553=_0x3a7915;return{'kind':_0x5c4553(0x24a),'closed':_0x4879f5['closed'],'anchors':_0x4879f5[_0x5c4553(0x23a)][_0x5c4553(0x200)](_0x42983c)};}function _0x49a5a9(_0x467b31,_0x4ebc05,_0x17e446){return{'x':_0x467b31['x']+(_0x4ebc05['x']-_0x467b31['x'])*_0x17e446,'y':_0x467b31['y']+(_0x4ebc05['y']-_0x467b31['y'])*_0x17e446};}function _0x2fb3b8(_0x31ff8d,_0x48594d){const _0x54e8fd=_0x3a7915;return Math[_0x54e8fd(0x1f4)](_0x31ff8d['x']-_0x48594d['x'],_0x31ff8d['y']-_0x48594d['y']);}function _0x3d4675(_0x40bd84){const _0x317395=_0x3a7915;let _0x5388bd=Math[_0x317395(0x1f4)](_0x40bd84['x'],_0x40bd84['y']);return _0x5388bd<_0xbeda67?{'x':0x1,'y':0x0}:{'x':_0x40bd84['x']/_0x5388bd,'y':_0x40bd84['y']/_0x5388bd};}function _0x461e78(_0x402a85,_0x398e30,_0x24b97b=_0x2fb3b8(_0x402a85,_0x398e30)){let _0x48141b=_0x3d4675({'x':_0x402a85['x']-_0x398e30['x'],'y':_0x402a85['y']-_0x398e30['y']});return{'x':_0x402a85['x']+_0x48141b['x']*_0x24b97b,'y':_0x402a85['y']+_0x48141b['y']*_0x24b97b};}function _0x432118(_0x213342,_0x23564b){const _0x3f36ed=_0x3a7915;let {anchors:_0x48a0d7}=_0x213342;return _0x48a0d7[_0x3f36ed(0x21a)]<0x2||_0x23564b<0x0?null:_0x23564b<_0x48a0d7[_0x3f36ed(0x21a)]-0x1?{'startIndex':_0x23564b,'endIndex':_0x23564b+0x1,'start':_0x48a0d7[_0x23564b],'end':_0x48a0d7[_0x23564b+0x1]}:_0x213342[_0x3f36ed(0x1e4)]&&_0x23564b===_0x48a0d7[_0x3f36ed(0x21a)]-0x1?{'startIndex':_0x48a0d7[_0x3f36ed(0x21a)]-0x1,'endIndex':0x0,'start':_0x48a0d7[_0x48a0d7[_0x3f36ed(0x21a)]-0x1],'end':_0x48a0d7[0x0]}:null;}function _0x5c339f(_0x34b19d,_0x118d09){const _0x4862ed=_0x3a7915;var _0x52d621,_0x473996;let _0xa730ce=_0x432118(_0x34b19d,_0x118d09);return _0xa730ce?[_0xa730ce[_0x4862ed(0x22b)],(_0x52d621=_0xa730ce[_0x4862ed(0x22b)][_0x4862ed(0x24c)])==null?_0xa730ce[_0x4862ed(0x22b)]:_0x52d621,(_0x473996=_0xa730ce[_0x4862ed(0x21e)]['in'])==null?_0xa730ce[_0x4862ed(0x21e)]:_0x473996,_0xa730ce[_0x4862ed(0x21e)]]:null;}function _0x46e29(_0x30eb02,_0x2d9697){const _0x1ec867=_0x3a7915;var _0x2e3695;return _0x2d9697===_0x1ec867(0x248)?_0x30eb02:(_0x2e3695=_0x30eb02[_0x2d9697])==null?null:_0x2e3695;}function _0x284139(_0x26bb87,_0x24cf13,_0x5a575a){const _0x1f9198=_0x3a7915;return _0x5a575a===_0x1f9198(0x248)||_0x26bb87[_0x1f9198(0x1e4)]?!0x0:_0x5a575a==='in'?_0x24cf13>0x0:_0x24cf13<_0x26bb87[_0x1f9198(0x23a)][_0x1f9198(0x21a)]-0x1;}function _0x2ce3a4(_0x25cbc0,_0x30b0d6){let [_0x432b6f,_0x1e9ba4,_0x505946,_0x58901a]=_0x25cbc0,_0x56fab9=_0x49a5a9(_0x432b6f,_0x1e9ba4,_0x30b0d6),_0x103fc7=_0x49a5a9(_0x1e9ba4,_0x505946,_0x30b0d6),_0x362d66=_0x49a5a9(_0x505946,_0x58901a,_0x30b0d6);return _0x49a5a9(_0x49a5a9(_0x56fab9,_0x103fc7,_0x30b0d6),_0x49a5a9(_0x103fc7,_0x362d66,_0x30b0d6),_0x30b0d6);}function _0x87d2c1(_0x57088c,_0x3dd27c){let [_0x2d43d7,_0x26d91c,_0xa3c189,_0x5e3b6c]=_0x57088c,_0x2cbdd3=_0x49a5a9(_0x2d43d7,_0x26d91c,_0x3dd27c),_0x1d81fe=_0x49a5a9(_0x26d91c,_0xa3c189,_0x3dd27c),_0x507788=_0x49a5a9(_0xa3c189,_0x5e3b6c,_0x3dd27c),_0x30988f=_0x49a5a9(_0x2cbdd3,_0x1d81fe,_0x3dd27c),_0x115b35=_0x49a5a9(_0x1d81fe,_0x507788,_0x3dd27c),_0x2203ba=_0x49a5a9(_0x30988f,_0x115b35,_0x3dd27c);return{'left':[_0x2d43d7,_0x2cbdd3,_0x30988f,_0x2203ba],'right':[_0x2203ba,_0x115b35,_0x507788,_0x5e3b6c]};}function _0x2ae10d(_0x4e9ca7,_0x1fb06e,_0x4a4aa3){const _0x2e3ae2=_0x3a7915;let _0x81d6b=_0x4a4aa3['x']-_0x1fb06e['x'],_0x335b3c=_0x4a4aa3['y']-_0x1fb06e['y'],_0x5e6447=_0x81d6b*_0x81d6b+_0x335b3c*_0x335b3c,_0x384b93=_0x5e6447<=_0xbeda67?0x0:Math[_0x2e3ae2(0x1e3)](0x0,Math[_0x2e3ae2(0x1f3)](0x1,((_0x4e9ca7['x']-_0x1fb06e['x'])*_0x81d6b+(_0x4e9ca7['y']-_0x1fb06e['y'])*_0x335b3c)/_0x5e6447)),_0x5ae694={'x':_0x1fb06e['x']+_0x81d6b*_0x384b93,'y':_0x1fb06e['y']+_0x335b3c*_0x384b93};return{'point':_0x5ae694,'ratio':_0x384b93,'distance':_0x2fb3b8(_0x4e9ca7,_0x5ae694)};}function _0xc2638e(_0x2735d4,_0x59a76f,_0x2b249e){return _0x2ae10d(_0x2735d4,_0x59a76f,_0x2b249e)['distance']**0x2;}function _0x2e140e(_0x74f74a,_0x600d19){const _0x2464bc=_0x3a7915;if(_0x74f74a['length']<=0x2)return _0x74f74a['map'](_0x27f664);let _0x4d30d5=0x0,_0x332868=0x0,_0x559c23=_0x74f74a[0x0],_0x5aa9cb=_0x74f74a[_0x74f74a[_0x2464bc(0x21a)]-0x1],_0x3ca757=_0x600d19*_0x600d19;for(let _0x3ce696=0x1;_0x3ce696<_0x74f74a[_0x2464bc(0x21a)]-0x1;_0x3ce696++){let _0xf39411=_0xc2638e(_0x74f74a[_0x3ce696],_0x559c23,_0x5aa9cb);_0xf39411>_0x4d30d5&&(_0x4d30d5=_0xf39411,_0x332868=_0x3ce696);}if(_0x4d30d5<=_0x3ca757)return[_0x27f664(_0x559c23),_0x27f664(_0x5aa9cb)];let _0x3268ea=_0x2e140e(_0x74f74a[_0x2464bc(0x243)](0x0,_0x332868+0x1),_0x600d19),_0x5093ba=_0x2e140e(_0x74f74a['slice'](_0x332868),_0x600d19);return[..._0x3268ea[_0x2464bc(0x243)](0x0,-0x1),..._0x5093ba];}function _0xf46a05(_0x3fa29d,_0x2b662c){var _0x22b828;let _0x5b54f4=_0x3fa29d[_0x2b662c],_0x223091=_0x3fa29d[_0x2b662c+0x1],_0x31e523=(_0x22b828=_0x3fa29d[_0x2b662c-0x1])==null?_0x5b54f4:_0x22b828;return{'x':_0x5b54f4['x']+(_0x223091['x']-_0x31e523['x'])/0x6,'y':_0x5b54f4['y']+(_0x223091['y']-_0x31e523['y'])/0x6};}function _0x11179e(_0x15fec9,_0x369013){var _0x3342c7;let _0x1401d0=_0x15fec9[_0x369013],_0x2bff3d=_0x15fec9[_0x369013-0x1],_0x540a2b=(_0x3342c7=_0x15fec9[_0x369013+0x1])==null?_0x1401d0:_0x3342c7;return{'x':_0x1401d0['x']-(_0x540a2b['x']-_0x2bff3d['x'])/0x6,'y':_0x1401d0['y']-(_0x540a2b['y']-_0x2bff3d['y'])/0x6};}function _0x17daec(_0x508ca1,_0x3f84fd){const _0x16c573=_0x3a7915;var _0x4e7940,_0xc03c8c;let _0x42b706=_0x508ca1['anchors'][_0x3f84fd],_0x4cebbd=(_0x4e7940=_0x508ca1[_0x16c573(0x23a)][_0x3f84fd-0x1])==null?_0x508ca1[_0x16c573(0x1e4)]?_0x508ca1[_0x16c573(0x23a)][_0x508ca1['anchors'][_0x16c573(0x21a)]-0x1]:null:_0x4e7940,_0x50ebe8=(_0xc03c8c=_0x508ca1['anchors'][_0x3f84fd+0x1])==null?_0x508ca1[_0x16c573(0x1e4)]?_0x508ca1[_0x16c573(0x23a)][0x0]:null:_0xc03c8c,_0x55b816=_0x4cebbd&&_0x50ebe8?_0x3d4675({'x':_0x50ebe8['x']-_0x4cebbd['x'],'y':_0x50ebe8['y']-_0x4cebbd['y']}):_0x50ebe8?_0x3d4675({'x':_0x50ebe8['x']-_0x42b706['x'],'y':_0x50ebe8['y']-_0x42b706['y']}):_0x4cebbd?_0x3d4675({'x':_0x42b706['x']-_0x4cebbd['x'],'y':_0x42b706['y']-_0x4cebbd['y']}):{'x':0x1,'y':0x0},_0x1652e2=_0x4cebbd&&_0x50ebe8?Math['max'](0x32,_0x2fb3b8(_0x4cebbd,_0x50ebe8)/0x4):0x32;return{'in':{'x':_0x42b706['x']-_0x55b816['x']*_0x1652e2,'y':_0x42b706['y']-_0x55b816['y']*_0x1652e2},'out':{'x':_0x42b706['x']+_0x55b816['x']*_0x1652e2,'y':_0x42b706['y']+_0x55b816['y']*_0x1652e2}};}function _0x3fdb9c(_0x29f3b9,_0x320cbe){const _0x586767=_0x3a7915;let _0x2b60a7=_0x29f3b9[_0x320cbe],_0x525f1a=_0x320cbe==='in'?_0x586767(0x24c):'in',_0x264405=_0x29f3b9[_0x525f1a];if(_0x2b60a7){if(_0x29f3b9[_0x586767(0x240)]===_0x586767(0x20d)){_0x29f3b9[_0x525f1a]=_0x461e78(_0x29f3b9,_0x2b60a7);return;}_0x29f3b9[_0x586767(0x240)]===_0x586767(0x23e)&&(_0x29f3b9[_0x525f1a]=_0x461e78(_0x29f3b9,_0x2b60a7,_0x264405?_0x2fb3b8(_0x29f3b9,_0x264405):_0x2fb3b8(_0x29f3b9,_0x2b60a7)));}}function _0x5c1437(_0x1edd11,_0x3b155c){const _0x4f52f1=_0x3a7915;let _0x5ec4e4=_0x4ca0a1(_0x1edd11);return!_0x3b155c||_0x5ec4e4[_0x4f52f1(0x1e4)]||_0x5ec4e4['anchors'][_0x4f52f1(0x21a)]===0x0||_0x5ec4e4[_0x4f52f1(0x23a)][_0x4f52f1(0x21b)]({'id':'__ink-preview-anchor__','x':_0x3b155c['x'],'y':_0x3b155c['y'],'pointType':'corner'}),_0x5ec4e4;}function _0x476273(_0x404afc,_0x48780d={}){const _0x451413=_0x3a7915;var _0x277a18,_0x4ff40b;let _0x3e3b2d=Math['max'](0x0,(_0x277a18=_0x48780d['tolerance'])==null?Math[_0x451413(0x1e3)](0x4,_0x404afc[_0x451413(0x244)]*0.35):_0x277a18),_0x594e03=(_0x4ff40b=_0x48780d[_0x451413(0x1f0)])==null?_0x5aa93c=>_0x451413(0x1e5)+_0x5aa93c:_0x4ff40b,_0x32bbbc=_0x2e140e(_0x404afc[_0x451413(0x1dc)],_0x3e3b2d),_0x1a6ba0=_0x32bbbc[_0x451413(0x200)]((_0x74add3,_0x205ca4)=>({'id':_0x594e03(_0x205ca4),'x':_0x74add3['x'],'y':_0x74add3['y'],'pointType':_0x451413(0x217)}));for(let _0x2db73e=0x0;_0x2db73e<_0x1a6ba0[_0x451413(0x21a)]-0x1;_0x2db73e++)_0x1a6ba0[_0x2db73e][_0x451413(0x24c)]=_0xf46a05(_0x32bbbc,_0x2db73e),_0x1a6ba0[_0x2db73e+0x1]['in']=_0x11179e(_0x32bbbc,_0x2db73e+0x1);return{'kind':_0x451413(0x24a),'closed':!0x1,'anchors':_0x1a6ba0};}function _0xe25858(_0x2397b,_0x1836e3,_0x1ffeb6){const _0x184ff6=_0x3a7915;let _0xf82b67=null,_0x5baf8f=[_0x184ff6(0x248),'in','out'];return _0x2397b[_0x184ff6(0x23a)][_0x184ff6(0x218)]((_0x135d35,_0x323e00)=>{const _0x26157f=_0x184ff6;_0x5baf8f[_0x26157f(0x218)](_0xa3bd95=>{const _0xdca23e=_0x26157f;if(!_0x284139(_0x2397b,_0x323e00,_0xa3bd95))return;let _0x27b791=_0x46e29(_0x135d35,_0xa3bd95);if(!_0x27b791)return;let _0x2d0202=_0x2fb3b8(_0x1836e3,_0x27b791);_0x2d0202>_0x1ffeb6||_0xf82b67&&_0x2d0202>=_0xf82b67[_0xdca23e(0x213)]||(_0xf82b67={'handle':{'kind':_0xa3bd95,'anchorId':_0x135d35['id']},'point':_0x27f664(_0x27b791),'distance':_0x2d0202});});}),_0xf82b67;}function _0x2db93d(_0x192015,_0x598490,_0x6b8a43){const _0x3c8430=_0x3a7915;let _0xb000a5=null,_0x52c92d=_0x192015['closed']?_0x192015[_0x3c8430(0x23a)][_0x3c8430(0x21a)]:Math[_0x3c8430(0x1e3)](0x0,_0x192015[_0x3c8430(0x23a)][_0x3c8430(0x21a)]-0x1);for(let _0x2e3525=0x0;_0x2e3525<_0x52c92d;_0x2e3525++){let _0x5774c7=_0x5c339f(_0x192015,_0x2e3525);if(!_0x5774c7)continue;let _0x1e8479=_0x2ce3a4(_0x5774c7,0x0);for(let _0x36aebd=0x1;_0x36aebd<=0x20;_0x36aebd++){let _0x34365d=_0x2ce3a4(_0x5774c7,_0x36aebd/0x20),_0x1ce2c2=_0x2ae10d(_0x598490,_0x1e8479,_0x34365d),_0x2be9a5=(_0x36aebd-0x1+_0x1ce2c2[_0x3c8430(0x1ef)])/0x20;(!_0xb000a5||_0x1ce2c2['distance']<_0xb000a5['distance'])&&(_0xb000a5={'segmentIndex':_0x2e3525,'t':_0x2be9a5,'point':_0x1ce2c2[_0x3c8430(0x20f)],'distance':_0x1ce2c2['distance']}),_0x1e8479=_0x34365d;}}return _0xb000a5&&_0xb000a5[_0x3c8430(0x213)]<=_0x6b8a43?_0xb000a5:null;}function _0x415f70(_0x27d5f5,_0x29c64f,_0x17a257){const _0x422d15=_0x3a7915;let _0x161036=_0x4ca0a1(_0x27d5f5),_0xd99e59=_0x432118(_0x161036,_0x29c64f[_0x422d15(0x232)]),_0x532060=_0x5c339f(_0x161036,_0x29c64f[_0x422d15(0x232)]);if(!_0xd99e59||!_0x532060)return _0x161036;let _0x28a8d4=_0x87d2c1(_0x532060,Math[_0x422d15(0x1e3)](0x0,Math[_0x422d15(0x1f3)](0x1,_0x29c64f['t']))),_0x57a6d7={'id':_0x17a257(),'x':_0x28a8d4[_0x422d15(0x22a)][0x3]['x'],'y':_0x28a8d4[_0x422d15(0x22a)][0x3]['y'],'in':_0x27f664(_0x28a8d4[_0x422d15(0x22a)][0x2]),'out':_0x27f664(_0x28a8d4[_0x422d15(0x1db)][0x1]),'pointType':_0x422d15(0x217)};return _0x161036[_0x422d15(0x23a)][_0xd99e59[_0x422d15(0x23f)]][_0x422d15(0x24c)]=_0x27f664(_0x28a8d4[_0x422d15(0x22a)][0x1]),_0x161036[_0x422d15(0x23a)][_0xd99e59[_0x422d15(0x224)]]['in']=_0x27f664(_0x28a8d4[_0x422d15(0x1db)][0x2]),_0x161036[_0x422d15(0x23a)][_0x422d15(0x253)](_0xd99e59['startIndex']+0x1,0x0,_0x57a6d7),_0x161036;}function _0x1e231b(_0x5d4802,_0x2c4d4c){const _0x4a94f9=_0x3a7915;let _0x14e68b=_0x4ca0a1(_0x5d4802);return _0x14e68b[_0x4a94f9(0x23a)]=_0x14e68b[_0x4a94f9(0x23a)][_0x4a94f9(0x1fa)](_0x3cec1e=>_0x3cec1e['id']!==_0x2c4d4c),_0x14e68b[_0x4a94f9(0x1e4)]&&_0x14e68b[_0x4a94f9(0x23a)][_0x4a94f9(0x21a)]<0x3&&(_0x14e68b[_0x4a94f9(0x1e4)]=!0x1),_0x14e68b;}function _0x4b7478(_0x46afa9,_0x1c5845,_0x24b5f5){const _0x5e11d3=_0x3a7915;let _0x195116=_0x4ca0a1(_0x46afa9),_0x11ca4a=_0x195116[_0x5e11d3(0x23a)][_0x5e11d3(0x1fe)](_0x68b0a9=>_0x68b0a9['id']===_0x1c5845),_0x341ceb=_0x195116['anchors'][_0x11ca4a];if(!_0x341ceb)return _0x195116;if(_0x341ceb[_0x5e11d3(0x240)]=_0x24b5f5,_0x24b5f5===_0x5e11d3(0x206))return delete _0x341ceb['in'],delete _0x341ceb[_0x5e11d3(0x24c)],_0x195116;let _0x157fd5=_0x17daec(_0x195116,_0x11ca4a);if(_0x341ceb['in']=_0x341ceb['in']?_0x27f664(_0x341ceb['in']):_0x157fd5['in'],_0x341ceb[_0x5e11d3(0x24c)]=_0x341ceb['out']?_0x27f664(_0x341ceb['out']):_0x157fd5['out'],_0x24b5f5===_0x5e11d3(0x20d)){let _0x32be95=Math[_0x5e11d3(0x1e3)](_0x2fb3b8(_0x341ceb,_0x341ceb['in']),_0x2fb3b8(_0x341ceb,_0x341ceb[_0x5e11d3(0x24c)]),0x32),_0x51694f=_0x3d4675({'x':_0x341ceb['out']['x']-_0x341ceb['x'],'y':_0x341ceb['out']['y']-_0x341ceb['y']});_0x341ceb[_0x5e11d3(0x24c)]={'x':_0x341ceb['x']+_0x51694f['x']*_0x32be95,'y':_0x341ceb['y']+_0x51694f['y']*_0x32be95},_0x341ceb['in']={'x':_0x341ceb['x']-_0x51694f['x']*_0x32be95,'y':_0x341ceb['y']-_0x51694f['y']*_0x32be95};}else _0x24b5f5===_0x5e11d3(0x23e)&&_0x3fdb9c(_0x341ceb,_0x5e11d3(0x24c));return _0x195116;}function _0x55122e(_0x965d9e,_0x3fdd4e){const _0x1259fd=_0x3a7915;var _0x2e91be;let _0x3b316d=_0x965d9e[_0x1259fd(0x23a)][_0x1259fd(0x221)](_0x2f4800=>_0x2f4800['id']===_0x3fdd4e),_0x101437=(_0x2e91be=_0x3b316d==null?void 0x0:_0x3b316d[_0x1259fd(0x240)])==null?_0x1259fd(0x206):_0x2e91be;return _0x4b7478(_0x965d9e,_0x3fdd4e,_0x101437===_0x1259fd(0x206)?'smooth':_0x101437===_0x1259fd(0x23e)?_0x1259fd(0x20d):_0x101437===_0x1259fd(0x20d)?_0x1259fd(0x217):'corner');}function _0x4c7cd8(_0x17293a,_0xd97051,_0x2cb3ad){const _0x1ab5a1=_0x3a7915;let _0x589894=_0x4ca0a1(_0x17293a),_0x5275c2=_0x589894[_0x1ab5a1(0x23a)][_0x1ab5a1(0x221)](_0x236238=>_0x236238['id']===_0xd97051[_0x1ab5a1(0x207)]);if(!_0x5275c2)return _0x589894;if(_0xd97051[_0x1ab5a1(0x21c)]===_0x1ab5a1(0x248)){let _0xa673eb={'x':_0x2cb3ad['x']-_0x5275c2['x'],'y':_0x2cb3ad['y']-_0x5275c2['y']};return _0x5275c2['x']=_0x2cb3ad['x'],_0x5275c2['y']=_0x2cb3ad['y'],_0x5275c2['in']&&(_0x5275c2['in']={'x':_0x5275c2['in']['x']+_0xa673eb['x'],'y':_0x5275c2['in']['y']+_0xa673eb['y']}),_0x5275c2[_0x1ab5a1(0x24c)]&&(_0x5275c2[_0x1ab5a1(0x24c)]={'x':_0x5275c2[_0x1ab5a1(0x24c)]['x']+_0xa673eb['x'],'y':_0x5275c2['out']['y']+_0xa673eb['y']}),_0x589894;}return _0x5275c2[_0xd97051['kind']]=_0x27f664(_0x2cb3ad),_0x5275c2[_0x1ab5a1(0x240)]===_0x1ab5a1(0x206)&&(_0x5275c2[_0x1ab5a1(0x240)]=_0x1ab5a1(0x217)),_0x3fdb9c(_0x5275c2,_0xd97051[_0x1ab5a1(0x21c)]),_0x589894;}let _0x4c267e=1e-9;function _0x215fcb(_0x1ea1de){const _0x4c2513=_0x3a7915;let _0xb41f97=Math[_0x4c2513(0x1e1)](_0x1ea1de*0x2710)/0x2710;return Object['is'](_0xb41f97,-0x0)?'0':String(_0xb41f97);}function _0x51a515(_0x2efad7){return _0x215fcb(_0x2efad7['x'])+'\x20'+_0x215fcb(_0x2efad7['y']);}function _0x500ded(_0x13cd58,_0x13a181){return{'x':_0x13cd58['x']-_0x13a181['x'],'y':_0x13cd58['y']-_0x13a181['y']};}function _0xbb8386(_0x5137c2,_0x1353ac,_0x8a61f1,_0x49ddec,_0xe79619){let _0x559611=0x1-_0xe79619;return{'x':_0x559611*_0x559611*_0x559611*_0x5137c2['x']+0x3*_0x559611*_0x559611*_0xe79619*_0x1353ac['x']+0x3*_0x559611*_0xe79619*_0xe79619*_0x8a61f1['x']+_0xe79619*_0xe79619*_0xe79619*_0x49ddec['x'],'y':_0x559611*_0x559611*_0x559611*_0x5137c2['y']+0x3*_0x559611*_0x559611*_0xe79619*_0x1353ac['y']+0x3*_0x559611*_0xe79619*_0xe79619*_0x8a61f1['y']+_0xe79619*_0xe79619*_0xe79619*_0x49ddec['y']};}function _0x1651b3(_0x504fe0,_0x34e789,_0x31a535,_0x521de1){const _0x27c822=_0x3a7915;let _0x2ea571=-_0x504fe0+0x3*_0x34e789-0x3*_0x31a535+_0x521de1,_0x30685c=0x3*_0x504fe0-0x6*_0x34e789+0x3*_0x31a535,_0x7cf8b=-0x3*_0x504fe0+0x3*_0x34e789,_0x1a1556=[];if(Math[_0x27c822(0x216)](_0x2ea571)<_0x4c267e){if(Math[_0x27c822(0x216)](_0x30685c)<_0x4c267e)return _0x1a1556;let _0x1377f9=-_0x7cf8b/(0x2*_0x30685c);return _0x1377f9>0x0&&_0x1377f9<0x1&&_0x1a1556[_0x27c822(0x21b)](_0x1377f9),_0x1a1556;}let _0x2b378e=_0x30685c*_0x30685c-0x3*_0x2ea571*_0x7cf8b;if(_0x2b378e<0x0)return _0x1a1556;let _0x3de31a=Math[_0x27c822(0x1f8)](Math['max'](0x0,_0x2b378e)),_0xa09565=(-_0x30685c+_0x3de31a)/(0x3*_0x2ea571),_0x36597d=(-_0x30685c-_0x3de31a)/(0x3*_0x2ea571);return _0xa09565>0x0&&_0xa09565<0x1&&_0x1a1556['push'](_0xa09565),_0x36597d>0x0&&_0x36597d<0x1&&Math[_0x27c822(0x216)](_0x36597d-_0xa09565)>_0x4c267e&&_0x1a1556['push'](_0x36597d),_0x1a1556;}function _0x1fec81(_0x137100,_0x10028f,_0x4b640d,_0x4fd5e8,_0x2575d4){const _0x327bca=_0x3a7915;_0x137100[_0x327bca(0x21b)](_0x10028f,_0x2575d4),new Set([..._0x1651b3(_0x10028f['x'],_0x4b640d['x'],_0x4fd5e8['x'],_0x2575d4['x']),..._0x1651b3(_0x10028f['y'],_0x4b640d['y'],_0x4fd5e8['y'],_0x2575d4['y'])])[_0x327bca(0x218)](_0x535efb=>{_0x137100['push'](_0xbb8386(_0x10028f,_0x4b640d,_0x4fd5e8,_0x2575d4,_0x535efb));});}function _0x43f071(_0x19d9a3){const _0x1330f7=_0x3a7915;let _0x427b1e=_0x19d9a3['anchors'];if(_0x427b1e[_0x1330f7(0x21a)]<=0x1)return _0x427b1e;let _0x3b2166=[];for(let _0x310045=0x1;_0x310045<_0x427b1e['length'];_0x310045++){var _0x59288e,_0x31c952;let _0x464746=_0x427b1e[_0x310045-0x1],_0xc11ccb=_0x427b1e[_0x310045];_0x1fec81(_0x3b2166,_0x464746,(_0x59288e=_0x464746[_0x1330f7(0x24c)])==null?_0x464746:_0x59288e,(_0x31c952=_0xc11ccb['in'])==null?_0xc11ccb:_0x31c952,_0xc11ccb);}if(_0x19d9a3[_0x1330f7(0x1e4)]&&_0x427b1e[_0x1330f7(0x21a)]>0x1){var _0x2f004c,_0x519b8f;let _0x1c4229=_0x427b1e[_0x427b1e[_0x1330f7(0x21a)]-0x1],_0x54c16c=_0x427b1e[0x0];_0x1fec81(_0x3b2166,_0x1c4229,(_0x2f004c=_0x1c4229[_0x1330f7(0x24c)])==null?_0x1c4229:_0x2f004c,(_0x519b8f=_0x54c16c['in'])==null?_0x54c16c:_0x519b8f,_0x54c16c);}return _0x3b2166;}function _0x4fdccd(_0x4a6a1b){const _0x3e58d2=_0x3a7915;let _0x3606c1=_0x4a6a1b[_0x3e58d2(0x1dc)];if(_0x3606c1[_0x3e58d2(0x21a)]<=0x1)return _0x3606c1;let _0x37360a=[];for(let _0x145489=0x0;_0x145489<_0x3606c1[_0x3e58d2(0x21a)]-0x1;_0x145489++){var _0x1254ba,_0x5d6045;let _0x1d4d6f=_0x3606c1[_0x145489],_0x268677=_0x3606c1[_0x145489+0x1],_0x2036fe=(_0x1254ba=_0x3606c1[_0x145489-0x1])==null?_0x1d4d6f:_0x1254ba,_0x5c90b0=(_0x5d6045=_0x3606c1[_0x145489+0x2])==null?_0x268677:_0x5d6045;_0x1fec81(_0x37360a,_0x1d4d6f,{'x':_0x1d4d6f['x']+(_0x268677['x']-_0x2036fe['x'])/0x6,'y':_0x1d4d6f['y']+(_0x268677['y']-_0x2036fe['y'])/0x6},{'x':_0x268677['x']-(_0x5c90b0['x']-_0x1d4d6f['x'])/0x6,'y':_0x268677['y']-(_0x5c90b0['y']-_0x1d4d6f['y'])/0x6},_0x268677);}return _0x37360a;}function _0x23abde(_0x13b393){const _0x543c6f=_0x3a7915;return _0x13b393[_0x543c6f(0x21c)]===_0x543c6f(0x24a)?_0x43f071(_0x13b393):_0x4fdccd(_0x13b393);}function _0x2f5df1(_0x4dedb5){const _0x14dacb=_0x3a7915;let _0x51ce92=Math[_0x14dacb(0x1e1)](_0x4dedb5*0x2710)/0x2710;return Object['is'](_0x51ce92,-0x0)?0x0:_0x51ce92;}function _0x3ba17e(_0x439238){const _0x5c388c=_0x3a7915;let _0x5617e7=_0x23abde(_0x439238);if(_0x5617e7[_0x5c388c(0x21a)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x5050bf=Math['min'](..._0x5617e7[_0x5c388c(0x200)](_0x159e81=>_0x159e81['x'])),_0x1f9432=Math[_0x5c388c(0x1f3)](..._0x5617e7['map'](_0x37a9a1=>_0x37a9a1['y'])),_0x4807af=Math[_0x5c388c(0x1e3)](..._0x5617e7['map'](_0x5e3dad=>_0x5e3dad['x'])),_0x5db824=Math['max'](..._0x5617e7['map'](_0x563344=>_0x563344['y']));return{'left':_0x2f5df1(_0x5050bf),'top':_0x2f5df1(_0x1f9432),'width':_0x2f5df1(Math[_0x5c388c(0x1e3)](0x1,_0x4807af-_0x5050bf)),'height':_0x2f5df1(Math[_0x5c388c(0x1e3)](0x1,_0x5db824-_0x1f9432))};}function _0x355e57(_0x845021,_0xa33543){const _0x32375e=_0x3a7915;let _0x59d928=_0x845021[_0x32375e(0x23a)];if(_0x59d928[_0x32375e(0x21a)]===0x0)return'';let _0x3123b5=['M\x20'+_0x51a515(_0x500ded(_0x59d928[0x0],_0xa33543))];for(let _0x59a1ac=0x1;_0x59a1ac<_0x59d928['length'];_0x59a1ac++){var _0x4229fb,_0x2dfd17;let _0x38989f=_0x59d928[_0x59a1ac-0x1],_0x47cf55=_0x59d928[_0x59a1ac],_0x50c084=(_0x4229fb=_0x38989f['out'])==null?_0x38989f:_0x4229fb,_0x226cc2=(_0x2dfd17=_0x47cf55['in'])==null?_0x47cf55:_0x2dfd17;_0x3123b5[_0x32375e(0x21b)]('C\x20'+_0x51a515(_0x500ded(_0x50c084,_0xa33543))+'\x20'+_0x51a515(_0x500ded(_0x226cc2,_0xa33543))+'\x20'+_0x51a515(_0x500ded(_0x47cf55,_0xa33543)));}if(_0x845021[_0x32375e(0x1e4)]&&_0x59d928['length']>0x1){var _0x27f256,_0x2abfb4;let _0x35ee2a=_0x59d928[_0x59d928['length']-0x1],_0x1e3439=_0x59d928[0x0],_0x59b567=(_0x27f256=_0x35ee2a[_0x32375e(0x24c)])==null?_0x35ee2a:_0x27f256,_0x5340e3=(_0x2abfb4=_0x1e3439['in'])==null?_0x1e3439:_0x2abfb4;_0x3123b5['push']('C\x20'+_0x51a515(_0x500ded(_0x59b567,_0xa33543))+'\x20'+_0x51a515(_0x500ded(_0x5340e3,_0xa33543))+'\x20'+_0x51a515(_0x500ded(_0x1e3439,_0xa33543))),_0x3123b5[_0x32375e(0x21b)]('Z');}return _0x3123b5[_0x32375e(0x239)]('\x20');}function _0x3b078d(_0x24dc14,_0x3dcced){const _0x50ad99=_0x3a7915;let _0x7387c5=_0x24dc14[_0x50ad99(0x1dc)][_0x50ad99(0x200)](_0x5c899c=>_0x500ded(_0x5c899c,_0x3dcced));if(_0x7387c5['length']===0x0)return'';if(_0x7387c5['length']===0x1)return'M\x20'+_0x51a515(_0x7387c5[0x0]);let _0x2450c4=['M\x20'+_0x51a515(_0x7387c5[0x0])];for(let _0x46686b=0x0;_0x46686b<_0x7387c5[_0x50ad99(0x21a)]-0x1;_0x46686b++){var _0x513db7,_0xdf65eb;let _0x39bcc7=_0x7387c5[_0x46686b],_0x2c14c4=_0x7387c5[_0x46686b+0x1],_0x376b00=(_0x513db7=_0x7387c5[_0x46686b-0x1])==null?_0x39bcc7:_0x513db7,_0x1ea2c0=(_0xdf65eb=_0x7387c5[_0x46686b+0x2])==null?_0x2c14c4:_0xdf65eb,_0x546098={'x':_0x39bcc7['x']+(_0x2c14c4['x']-_0x376b00['x'])/0x6,'y':_0x39bcc7['y']+(_0x2c14c4['y']-_0x376b00['y'])/0x6},_0x4f58a4={'x':_0x2c14c4['x']-(_0x1ea2c0['x']-_0x39bcc7['x'])/0x6,'y':_0x2c14c4['y']-(_0x1ea2c0['y']-_0x39bcc7['y'])/0x6};_0x2450c4[_0x50ad99(0x21b)]('C\x20'+_0x51a515(_0x546098)+'\x20'+_0x51a515(_0x4f58a4)+'\x20'+_0x51a515(_0x2c14c4));}return _0x2450c4['join']('\x20');}function _0x30670a(_0x4361c2,_0x3c3269){const _0x1bc5a9=_0x3a7915;return _0x4361c2[_0x1bc5a9(0x21c)]===_0x1bc5a9(0x24a)?_0x355e57(_0x4361c2,_0x3c3269):_0x3b078d(_0x4361c2,_0x3c3269);}function _0x6fe63c(_0x38bb8f,_0x1a046c){const _0x2e944e=_0x3a7915;return _0x1a046c!=null&&_0x1a046c['color']?_0x1a046c[_0x2e944e(0x234)]:_0x38bb8f[_0x2e944e(0x21c)]===_0x2e944e(0x24a)?_0x2e944e(0x214):_0x38bb8f['color'];}function _0x372445(_0x549c80,_0x3f81c9){const _0x345b04=_0x3a7915;return(_0x3f81c9==null?void 0x0:_0x3f81c9[_0x345b04(0x244)])===void 0x0?_0x549c80['kind']==='pen'?0x2:_0x549c80['width']:_0x3f81c9[_0x345b04(0x244)];}function _0x37b8a5(_0x54f2d4,_0x5944b0){const _0x4c1ed9=_0x3a7915;return(_0x5944b0==null?void 0x0:_0x5944b0[_0x4c1ed9(0x1dd)])===void 0x0?_0x54f2d4[_0x4c1ed9(0x21c)]===_0x4c1ed9(0x24a)?void 0x0:_0x54f2d4[_0x4c1ed9(0x1dd)]:_0x5944b0['opacity'];}function _0x43a1fb(_0xdf76cc,_0x52c1ae){const _0x562303=_0x3a7915;let _0x2f7f80=_0x3ba17e(_0xdf76cc),_0x55efd0=_0x30670a(_0xdf76cc,{'x':_0x2f7f80[_0x562303(0x22a)],'y':_0x2f7f80['top']}),_0x11aa93=_0xdf76cc[_0x562303(0x21c)]===_0x562303(0x24a)&&_0xdf76cc[_0x562303(0x1e4)],_0x1787df=_0x52c1ae==null?void 0x0:_0x52c1ae[_0x562303(0x203)];return{'shapeType':_0x547db6[_0x562303(0x1f5)][_0x562303(0x1e9)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x2f7f80[_0x562303(0x244)],'h':_0x2f7f80[_0x562303(0x242)],'fill':_0x11aa93?_0x562303(0x250):_0x562303(0x241),'stroke':!0x0,'data':_0x55efd0,'dataArray':_0xf7c4d1(_0xdf76cc,{'x':_0x2f7f80[_0x562303(0x22a)],'y':_0x2f7f80[_0x562303(0x204)]})}]},'fill':_0x11aa93&&_0x1787df?{'color':_0x1787df,'fillType':_0x547db6[_0x562303(0x23c)][_0x562303(0x1de)]}:{'fillType':_0x547db6[_0x562303(0x23c)][_0x562303(0x235)]},'stroke':{'color':_0x6fe63c(_0xdf76cc,_0x52c1ae),'width':_0x372445(_0xdf76cc,_0x52c1ae),'opacity':_0x37b8a5(_0xdf76cc,_0x52c1ae),'lineStrokeType':_0x547db6[_0x562303(0x231)]['SolidLine'],'capType':_0x547db6[_0x562303(0x1ed)][_0x562303(0x223)],'lineJoinType':_0x547db6[_0x562303(0x22e)][_0x562303(0x223)]}};}function _0x1c2fab(_0x4ed657,_0x7f4ef0){return{'x':_0x4ed657['x']-_0x7f4ef0['x'],'y':_0x4ed657['y']-_0x7f4ef0['y']};}function _0xf7c4d1(_0x3861ea,_0x2d06b3){const _0x3500b6=_0x3a7915;if(_0x3861ea[_0x3500b6(0x21c)]===_0x3500b6(0x24a)){let _0x3b54bb=_0x3861ea['anchors'];if(_0x3b54bb[_0x3500b6(0x21a)]===0x0)return[];let _0x1795e1=_0x1c2fab(_0x3b54bb[0x0],_0x2d06b3),_0x4dd6a1=[{'command':'M','points':[_0x1795e1['x'],_0x1795e1['y']]}];for(let _0x400f76=0x1;_0x400f76<_0x3b54bb[_0x3500b6(0x21a)];_0x400f76++){var _0x268f52,_0x20808a;let _0x537297=_0x3b54bb[_0x400f76-0x1],_0x408769=_0x3b54bb[_0x400f76],_0x29d715=_0x1c2fab((_0x268f52=_0x537297[_0x3500b6(0x24c)])==null?_0x537297:_0x268f52,_0x2d06b3),_0x534c5b=_0x1c2fab((_0x20808a=_0x408769['in'])==null?_0x408769:_0x20808a,_0x2d06b3),_0x5e7710=_0x1c2fab(_0x408769,_0x2d06b3);_0x4dd6a1[_0x3500b6(0x21b)]({'command':'C','points':[_0x29d715['x'],_0x29d715['y'],_0x534c5b['x'],_0x534c5b['y'],_0x5e7710['x'],_0x5e7710['y']]});}if(_0x3861ea[_0x3500b6(0x1e4)]&&_0x3b54bb[_0x3500b6(0x21a)]>0x1){var _0x1635a5,_0x258ef5;let _0x1da14b=_0x3b54bb[_0x3b54bb[_0x3500b6(0x21a)]-0x1],_0x5c5199=_0x3b54bb[0x0],_0x5a537e=_0x1c2fab((_0x1635a5=_0x1da14b[_0x3500b6(0x24c)])==null?_0x1da14b:_0x1635a5,_0x2d06b3),_0x2a5f28=_0x1c2fab((_0x258ef5=_0x5c5199['in'])==null?_0x5c5199:_0x258ef5,_0x2d06b3),_0x43c1b1=_0x1c2fab(_0x5c5199,_0x2d06b3);_0x4dd6a1[_0x3500b6(0x21b)]({'command':'C','points':[_0x5a537e['x'],_0x5a537e['y'],_0x2a5f28['x'],_0x2a5f28['y'],_0x43c1b1['x'],_0x43c1b1['y']]}),_0x4dd6a1[_0x3500b6(0x21b)]({'command':'z','points':[]});}return _0x4dd6a1;}let _0x3062c0=_0x3861ea['points'][_0x3500b6(0x200)](_0x113923=>_0x1c2fab(_0x113923,_0x2d06b3));if(_0x3062c0[_0x3500b6(0x21a)]===0x0)return[];let _0x590cb3=[{'command':'M','points':[_0x3062c0[0x0]['x'],_0x3062c0[0x0]['y']]}];for(let _0x61f9a3=0x0;_0x61f9a3<_0x3062c0[_0x3500b6(0x21a)]-0x1;_0x61f9a3++){var _0x84c340,_0x38075d;let _0x47245d=_0x3062c0[_0x61f9a3],_0x68c4e6=_0x3062c0[_0x61f9a3+0x1],_0x496746=(_0x84c340=_0x3062c0[_0x61f9a3-0x1])==null?_0x47245d:_0x84c340,_0x5e9f13=(_0x38075d=_0x3062c0[_0x61f9a3+0x2])==null?_0x68c4e6:_0x38075d,_0x317183={'x':_0x47245d['x']+(_0x68c4e6['x']-_0x496746['x'])/0x6,'y':_0x47245d['y']+(_0x68c4e6['y']-_0x496746['y'])/0x6},_0x1f4da9={'x':_0x68c4e6['x']-(_0x5e9f13['x']-_0x47245d['x'])/0x6,'y':_0x68c4e6['y']-(_0x5e9f13['y']-_0x47245d['y'])/0x6};_0x590cb3[_0x3500b6(0x21b)]({'command':'C','points':[_0x317183['x'],_0x317183['y'],_0x1f4da9['x'],_0x1f4da9['y'],_0x68c4e6['x'],_0x68c4e6['y']]});}return _0x590cb3;}function _0x55c491(_0x5ae462){const _0x2c5e96=_0x3a7915;var _0x4dc91b;let {model:_0x3d3dde,sourceModel:_0x475a65=_0x3d3dde,style:_0x5f28c4}=_0x5ae462,_0x4a5d26=(_0x4dc91b=_0x5ae462[_0x2c5e96(0x211)])==null?_0x3d3dde[_0x2c5e96(0x21c)]:_0x4dc91b,_0x20a257=_0x3ba17e(_0x3d3dde),_0x5dc8fc=_0x3d3dde[_0x2c5e96(0x21c)]==='pen'&&_0x4a5d26!==_0x2c5e96(0x24a)?_0x3d3dde:void 0x0;return{'transform':{..._0x20a257,'rotation':0x0},'shapeData':_0x43a1fb(_0x3d3dde,_0x5f28c4),'ink':{'version':0x1,'tool':_0x4a5d26,'sourceModel':_0x475a65,..._0x5dc8fc?{'editModel':_0x5dc8fc}:{},'normalizedBounds':_0x20a257}};}var _0x5bc782='@univerjs-pro/ink',_0x5539cf=_0x3a7915(0x208);function _0x3a1679(_0x54a2b8){'@babel/helpers - typeof';const _0x1f5f1d=_0x3a7915;return _0x3a1679=typeof Symbol==_0x1f5f1d(0x1e6)&&typeof Symbol[_0x1f5f1d(0x1f7)]=='symbol'?function(_0x46c7d8){return typeof _0x46c7d8;}:function(_0x1952a2){const _0xb0ec3c=_0x1f5f1d;return _0x1952a2&&typeof Symbol=='function'&&_0x1952a2[_0xb0ec3c(0x251)]===Symbol&&_0x1952a2!==Symbol[_0xb0ec3c(0x220)]?_0xb0ec3c(0x1ec):typeof _0x1952a2;},_0x3a1679(_0x54a2b8);}function _0x499b7e(_0x28adda,_0x497fdf){const _0x571420=_0x3a7915;if(_0x3a1679(_0x28adda)!='object'||!_0x28adda)return _0x28adda;var _0x3d8128=_0x28adda[Symbol[_0x571420(0x229)]];if(_0x3d8128!==void 0x0){var _0xb63c77=_0x3d8128['call'](_0x28adda,_0x497fdf||'default');if(_0x3a1679(_0xb63c77)!='object')return _0xb63c77;throw TypeError(_0x571420(0x1e2));}return(_0x497fdf===_0x571420(0x22c)?String:Number)(_0x28adda);}function _0x5a64ce(_0x1d7ea6){var _0x1078a9=_0x499b7e(_0x1d7ea6,'string');return _0x3a1679(_0x1078a9)=='symbol'?_0x1078a9:_0x1078a9+'';}function _0x2b031b(_0x86b29a,_0x2002f9,_0x44b823){const _0x5702c6=_0x3a7915;return(_0x2002f9=_0x5a64ce(_0x2002f9))in _0x86b29a?Object[_0x5702c6(0x1e0)](_0x86b29a,_0x2002f9,{'value':_0x44b823,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x86b29a[_0x2002f9]=_0x44b823,_0x86b29a;}let _0x28fe64=(0x0,_0x20b30c[_0x3a7915(0x212)])('ink.host-adapter.service');var _0x11cfa7=class{constructor(){const _0x5ea169=_0x3a7915;_0x2b031b(this,_0x5ea169(0x20e),[]);}[_0x3a7915(0x238)](_0x220b8c){const _0x56f312=_0x3a7915;return this[_0x56f312(0x20e)][_0x56f312(0x21b)](_0x220b8c),(0x0,_0x20b30c[_0x56f312(0x226)])(()=>{const _0x2d5058=_0x56f312;let _0x44845a=this[_0x2d5058(0x20e)]['indexOf'](_0x220b8c);_0x44845a>=0x0&&this[_0x2d5058(0x20e)][_0x2d5058(0x253)](_0x44845a,0x1);});}[_0x3a7915(0x21f)](_0x182419){const _0x56049a=_0x3a7915;for(let _0x558d63 of this['_adapters'])if(_0x558d63[_0x56049a(0x21f)](_0x182419))return!0x0;return!0x1;}async[_0x3a7915(0x246)](_0x3d2a05){const _0x5a2d8e=_0x3a7915;for(let _0x2b987e of this[_0x5a2d8e(0x20e)])if(_0x2b987e[_0x5a2d8e(0x246)]&&await _0x2b987e[_0x5a2d8e(0x246)](_0x3d2a05))return!0x0;return!0x1;}};let _0x5bd414={'id':_0x3a7915(0x205),'type':_0x20b30c['CommandType']['OPERATION'],'handler':(_0x107fa5,_0x3d17b7)=>_0x3d17b7?_0x107fa5['get'](_0x28fe64)[_0x3a7915(0x21f)](_0x3d17b7):!0x1},_0x345eda={};function _0x254380(_0x4d6b5c,_0x389544){return function(_0x3685c3,_0x4649a6){_0x389544(_0x3685c3,_0x4649a6,_0x4d6b5c);};}function _0x133656(_0x52f84a,_0x397859,_0x1c9da6,_0x3ffdaa){const _0x48e75d=_0x3a7915;var _0x20ea2d=arguments[_0x48e75d(0x21a)],_0x130e04=_0x20ea2d<0x3?_0x397859:_0x3ffdaa===null?_0x3ffdaa=Object[_0x48e75d(0x20c)](_0x397859,_0x1c9da6):_0x3ffdaa,_0x72c549;if(typeof Reflect==_0x48e75d(0x1ff)&&typeof Reflect[_0x48e75d(0x20b)]==_0x48e75d(0x1e6))_0x130e04=Reflect['decorate'](_0x52f84a,_0x397859,_0x1c9da6,_0x3ffdaa);else{for(var _0x3905c6=_0x52f84a[_0x48e75d(0x21a)]-0x1;_0x3905c6>=0x0;_0x3905c6--)(_0x72c549=_0x52f84a[_0x3905c6])&&(_0x130e04=(_0x20ea2d<0x3?_0x72c549(_0x130e04):_0x20ea2d>0x3?_0x72c549(_0x397859,_0x1c9da6,_0x130e04):_0x72c549(_0x397859,_0x1c9da6))||_0x130e04);}return _0x20ea2d>0x3&&_0x130e04&&Object['defineProperty'](_0x397859,_0x1c9da6,_0x130e04),_0x130e04;}let _0x2de361=class extends _0x20b30c['Plugin']{constructor(_0x1ecb5e=_0x345eda,_0x44dc6d,_0xdeaec,_0x139976){const _0x3469c6=_0x3a7915;super(),this[_0x3469c6(0x247)]=_0x1ecb5e,this[_0x3469c6(0x1f6)]=_0x44dc6d,this[_0x3469c6(0x1fb)]=_0xdeaec,this[_0x3469c6(0x209)]=_0x139976;let {..._0x73c294}=(0x0,_0x20b30c['merge'])({},_0x345eda,this[_0x3469c6(0x247)]);this[_0x3469c6(0x209)]['setConfig'](_0x3469c6(0x1e7),_0x73c294);}[_0x3a7915(0x227)](){const _0x3743d3=_0x3a7915;[[_0x28fe64,{'useClass':_0x11cfa7}]][_0x3743d3(0x218)](_0x6bbb55=>this[_0x3743d3(0x1f6)][_0x3743d3(0x252)](_0x6bbb55)),this[_0x3743d3(0x23d)](this[_0x3743d3(0x1fb)]['registerCommand'](_0x5bd414));}};_0x2b031b(_0x2de361,'pluginName','UNIVER_INK_PLUGIN'),_0x2b031b(_0x2de361,_0x3a7915(0x23b),_0x5bc782),_0x2b031b(_0x2de361,'version',_0x5539cf),_0x2b031b(_0x2de361,'type',_0x20b30c['UniverInstanceType']['UNIVER_UNKNOWN']),_0x2de361=_0x133656([(0x0,_0x20b30c[_0x3a7915(0x230)])(_0xe1cdb9[_0x3a7915(0x255)]),_0x254380(0x1,(0x0,_0x20b30c['Inject'])(_0x20b30c[_0x3a7915(0x1fc)])),_0x254380(0x2,_0x20b30c[_0x3a7915(0x222)]),_0x254380(0x3,_0x20b30c[_0x3a7915(0x24b)])],_0x2de361),_0x18fc87['IInkHostAdapterService']=_0x28fe64,Object[_0x3a7915(0x1e0)](_0x18fc87,_0x3a7915(0x1f9),{'enumerable':!0x0,'get':function(){return _0x2de361;}}),_0x18fc87['buildInkCustomShapePayload']=_0x55c491,_0x18fc87[_0x3a7915(0x1e8)]=_0x476273,_0x18fc87[_0x3a7915(0x22d)]=_0x55122e,_0x18fc87['deleteInkPenAnchor']=_0x1e231b,_0x18fc87['findClosestInkPenHandle']=_0xe25858,_0x18fc87['findClosestInkPenSegment']=_0x2db93d,_0x18fc87[_0x3a7915(0x22f)]=_0x3ba17e,_0x18fc87['getInkPenPreviewModel']=_0x5c1437,_0x18fc87[_0x3a7915(0x1fd)]=_0x415f70,_0x18fc87['isInkPenHandleVisible']=_0x284139,_0x18fc87[_0x3a7915(0x1f2)]=_0x4c7cd8,_0x18fc87[_0x3a7915(0x233)]=_0x4b7478;}));function _0x4e1c(){const _0x27a41b=['add','splice','@univerjs-pro/license','UniverLicensePlugin','right','points','opacity','SolidFill','9uFkbfB','defineProperty','round','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','max','closed','ink-centerline-','function','ink.config','convertBrushModelToPenModel','Rect','exports','559167DJYDaJ','symbol','ShapeLineCapEnum','8fiNGNg','ratio','createId','toStringTag','moveInkPenAnchorPoint','min','hypot','ShapeTypeEnum','_injector','iterator','sqrt','UniverInkPlugin','filter','_commandService','Injector','insertInkPenAnchorAt','findIndex','object','map','258940jsYcJW','6CvEhqB','fillColor','top','ink.operation.start','corner','anchorId','1.0.0-alpha.8','_configService','@univerjs-pro/engine-shape','decorate','getOwnPropertyDescriptor','symmetric','_adapters','point','19BFBJHX','tool','createIdentifier','distance','#f54a45','6009180TGkcVA','abs','free','forEach','Module','length','push','kind','4078qjHCWq','end','beginInkMode','prototype','find','ICommandService','Round','endIndex','UniverCore','toDisposable','onStarting','207067YmmTpu','toPrimitive','left','start','string','cycleInkPenAnchorPointType','ShapeLineJoinEnum','getInkModelBounds','DependentOn','ShapeLineTypeEnum','segmentIndex','setInkPenAnchorPointType','color','NoFill','1471544Wgmpqd','UniverProEngineShape','registerAdapter','join','anchors','packageName','ShapeFillEnum','disposeWithMe','smooth','startIndex','pointType','none','height','slice','width','1955460zvnKJM','createCustomShape','_config','anchor','UniverProLicense','pen','IConfigService','out','@univerjs/core','amd','UniverProInk','norm','constructor'];_0x4e1c=function(){return _0x27a41b;};return _0x4e1c();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/ink",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Reusable ink model and geometry integration for Univer.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -58,15 +58,15 @@
|
|
|
58
58
|
"lib"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@univerjs-pro/boards": "1.0.0-alpha.
|
|
62
|
-
"@univerjs-pro/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs
|
|
61
|
+
"@univerjs-pro/boards": "1.0.0-alpha.8",
|
|
62
|
+
"@univerjs-pro/engine-shape": "1.0.0-alpha.8",
|
|
63
|
+
"@univerjs-pro/license": "1.0.0-alpha.8",
|
|
64
|
+
"@univerjs/core": "1.0.0-alpha.8"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"typescript": "^6.0.3",
|
|
68
68
|
"vitest": "^4.1.10",
|
|
69
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
69
|
+
"@univerjs-infra/shared": "1.0.0-alpha.8"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"test": "vitest run",
|