@univerjs-pro/bases 1.0.0-rc.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1523fc=_0x474f;(function(_0x2f4927,_0x29e1ff){const _0x42b237=_0x474f,_0x550c66=_0x2f4927();while(!![]){try{const _0x29cd73=-parseInt(_0x42b237(0x1fa))/0x1*(-parseInt(_0x42b237(0x1f1))/0x2)+-parseInt(_0x42b237(0x20b))/0x3+parseInt(_0x42b237(0x150))/0x4*(-parseInt(_0x42b237(0x208))/0x5)+parseInt(_0x42b237(0x13a))/0x6+parseInt(_0x42b237(0x7e))/0x7*(parseInt(_0x42b237(0x139))/0x8)+parseInt(_0x42b237(0x167))/0x9+-parseInt(_0x42b237(0x11a))/0xa;if(_0x29cd73===_0x29e1ff)break;else _0x550c66['push'](_0x550c66['shift']());}catch(_0x1d0954){_0x550c66['push'](_0x550c66['shift']());}}}(_0x10b0,0xda273),Object[_0x1523fc(0xa5)](exports,Symbol['toStringTag'],{'value':'Module'}));var e=Object[_0x1523fc(0x147)],t=Object[_0x1523fc(0xa5)],n=Object['getOwnPropertyDescriptor'],r=Object[_0x1523fc(0x14d)],i=Object[_0x1523fc(0x165)],a=Object[_0x1523fc(0x1c6)][_0x1523fc(0x1f2)],o=(_0x279599,_0x19823f,_0xed31a7,_0x10686d)=>{const _0x33c6fb=_0x1523fc;if(_0x19823f&&typeof _0x19823f==_0x33c6fb(0x176)||typeof _0x19823f==_0x33c6fb(0x1db)){for(var _0xb66c23=r(_0x19823f),_0x2acfa4=0x0,_0x3af6a7=_0xb66c23[_0x33c6fb(0x224)],_0x2b2236;_0x2acfa4<_0x3af6a7;_0x2acfa4++)_0x2b2236=_0xb66c23[_0x2acfa4],!a[_0x33c6fb(0x184)](_0x279599,_0x2b2236)&&_0x2b2236!==_0xed31a7&&t(_0x279599,_0x2b2236,{'get':(_0x17e9d5=>_0x19823f[_0x17e9d5])[_0x33c6fb(0xe1)](null,_0x2b2236),'enumerable':!(_0x10686d=n(_0x19823f,_0x2b2236))||_0x10686d['enumerable']});}return _0x279599;},s=(_0x32708f,_0x3540e2,_0xebe54f)=>(_0xebe54f=_0x32708f==null?{}:e(i(_0x32708f)),o(_0x3540e2||!_0x32708f||!_0x32708f[_0x1523fc(0x1ce)]?t(_0xebe54f,_0x1523fc(0x163),{'value':_0x32708f,'enumerable':!0x0}):_0xebe54f,_0x32708f));let c=require('@univerjs-pro/bases'),l=require('@univerjs/core'),u=require('@univerjs/core/facade');u=s(u);let d=require('@univerjs/protocol'),f=require('@univerjs-pro/engine-formula');var p=class{constructor(_0x42b259,_0x5a16f7,_0x19fde4){const _0x165e9c=_0x1523fc;this['_unitId']=_0x42b259,this[_0x165e9c(0x16e)]=_0x5a16f7,this[_0x165e9c(0xbd)]=_0x19fde4;}async[_0x1523fc(0x90)](_0xd8162b){const _0xee9a67=_0x1523fc;return this['_commandService'][_0xee9a67(0xe9)](c[_0xee9a67(0x10e)]['id'],{'unitId':this['_unitId'],'changes':_0xd8162b});}async[_0x1523fc(0x106)](_0x523378,_0x557fb7){const _0xb7043a=_0x1523fc;await this[_0xb7043a(0x16e)][_0xb7043a(0xe9)](c[_0xb7043a(0x152)]['id'],{'unitId':this[_0xb7043a(0xec)],'objectId':this['_unitId'],'action':_0x523378,'value':_0x557fb7});}[_0x1523fc(0xa9)](_0xc3f944){const _0x5e54a5=_0x1523fc;return(0x0,c[_0x5e54a5(0x196)])(this[_0x5e54a5(0xbd)],this[_0x5e54a5(0xec)],this[_0x5e54a5(0xec)],_0xc3f944);}async[_0x1523fc(0x1ad)](_0x112c39=!0x0){const _0x2639b3=_0x1523fc;await this[_0x2639b3(0x16e)][_0x2639b3(0xe9)](c[_0x2639b3(0x152)]['id'],{'unitId':this[_0x2639b3(0xec)],'objectId':this['_unitId'],'action':d[_0x2639b3(0xf2)][_0x2639b3(0x10b)],'value':_0x112c39});}async[_0x1523fc(0xe8)](){const _0x4d2fe8=_0x1523fc;await this[_0x4d2fe8(0x16e)]['executeCommand'](c[_0x4d2fe8(0x152)]['id'],{'unitId':this['_unitId'],'objectId':this[_0x4d2fe8(0xec)],'action':d[_0x4d2fe8(0xf2)][_0x4d2fe8(0x10b)],'value':!0x1});}['canEdit'](){const _0x5a52e8=_0x1523fc;return(0x0,c[_0x5a52e8(0x196)])(this['_permissionService'],this[_0x5a52e8(0xec)],this[_0x5a52e8(0xec)],d[_0x5a52e8(0xf2)]['Edit']);}},m=class{constructor(_0x518722,_0x119248,_0x591bd7,_0x476f6d,_0x40ff0f){const _0x366b5b=_0x1523fc;this[_0x366b5b(0xec)]=_0x518722,this[_0x366b5b(0x8a)]=_0x119248,this[_0x366b5b(0xb9)]=_0x591bd7,this[_0x366b5b(0x16e)]=_0x476f6d,this[_0x366b5b(0xbd)]=_0x40ff0f;}async[_0x1523fc(0x1ad)](_0x158af6=!0x0){const _0x54235b=_0x1523fc;await this[_0x54235b(0x16e)][_0x54235b(0xe9)](c[_0x54235b(0x152)]['id'],{'unitId':this[_0x54235b(0xec)],'objectId':this['_objectId'],'action':d[_0x54235b(0xf2)][_0x54235b(0x10b)],'value':_0x158af6});}async[_0x1523fc(0xe8)](){const _0x4ff6c4=_0x1523fc;await this[_0x4ff6c4(0x16e)]['executeCommand'](c[_0x4ff6c4(0x152)]['id'],{'unitId':this['_unitId'],'objectId':this[_0x4ff6c4(0x8a)],'action':d['UnitAction'][_0x4ff6c4(0x10b)],'value':!0x1});}[_0x1523fc(0x135)](){const _0x260cf4=_0x1523fc;return(0x0,c[_0x260cf4(0x1cb)])(this['_permissionService'],this[_0x260cf4(0xec)],[...this[_0x260cf4(0xb9)],this[_0x260cf4(0x8a)]]);}};function h(_0x15c90b,_0x22caf8){return function(_0x12a069,_0x115595){_0x22caf8(_0x12a069,_0x115595,_0x15c90b);};}function g(_0x515e6f,_0x1670e1,_0x28ed98,_0x20801e){const _0xa658e6=_0x1523fc;var _0x3d6de1=arguments['length'],_0x4f56f8=_0x3d6de1<0x3?_0x1670e1:_0x20801e===null?_0x20801e=Object[_0xa658e6(0x1c9)](_0x1670e1,_0x28ed98):_0x20801e,_0x5eab6d;if(typeof Reflect==_0xa658e6(0x176)&&typeof Reflect[_0xa658e6(0x145)]=='function')_0x4f56f8=Reflect['decorate'](_0x515e6f,_0x1670e1,_0x28ed98,_0x20801e);else{for(var _0x4411cb=_0x515e6f[_0xa658e6(0x224)]-0x1;_0x4411cb>=0x0;_0x4411cb--)(_0x5eab6d=_0x515e6f[_0x4411cb])&&(_0x4f56f8=(_0x3d6de1<0x3?_0x5eab6d(_0x4f56f8):_0x3d6de1>0x3?_0x5eab6d(_0x1670e1,_0x28ed98,_0x4f56f8):_0x5eab6d(_0x1670e1,_0x28ed98))||_0x4f56f8);}return _0x3d6de1>0x3&&_0x4f56f8&&Object[_0xa658e6(0xa5)](_0x1670e1,_0x28ed98,_0x4f56f8),_0x4f56f8;}let _=class{constructor(_0x3e66ce,_0x5b057b,_0x4b5530,_0x53e0e5,_0x4f13f2){const _0x4a83a2=_0x1523fc;this['_base']=_0x3e66ce,this['_table']=_0x5b057b,this[_0x4a83a2(0x18b)]=_0x4b5530,this[_0x4a83a2(0x16e)]=_0x53e0e5,this[_0x4a83a2(0xbd)]=_0x4f13f2;}[_0x1523fc(0x1ac)](){const _0x3e30e5=_0x1523fc;return this[_0x3e30e5(0x18b)];}[_0x1523fc(0x1e0)](){const _0x818208=_0x1523fc;let _0x210dd4=this[_0x818208(0x83)][_0x818208(0x1ac)]();return new m(this[_0x818208(0x1c8)][_0x818208(0x1ac)](),(0x0,c[_0x818208(0x218)])(_0x210dd4,this[_0x818208(0x18b)]),[(0x0,c[_0x818208(0x1b7)])(_0x210dd4)],this[_0x818208(0x16e)],this['_permissionService']);}['getField'](){const _0x184025=_0x1523fc;return this[_0x184025(0x8b)]();}[_0x1523fc(0xc8)](){const _0x1b581e=_0x1523fc;return this[_0x1b581e(0x8b)]()[_0x1b581e(0x1e3)];}['getType'](){const _0x15f0d7=_0x1523fc;return this[_0x15f0d7(0x8b)]()[_0x15f0d7(0x1df)];}[_0x1523fc(0x105)](){const _0xa0accb=_0x1523fc;return this[_0xa0accb(0x8b)]()['config'];}[_0x1523fc(0x21b)](){const _0x23e698=_0x1523fc;return this[_0x23e698(0x8b)]()[_0x23e698(0x11f)];}[_0x1523fc(0x21d)](){return this['_getField']()['description'];}['isReadonly'](){const _0x4d3da2=_0x1523fc;return!!this[_0x4d3da2(0x8b)]()[_0x4d3da2(0x20c)];}[_0x1523fc(0xfa)](_0x3e595a){const _0x3be022=_0x1523fc;return this[_0x3be022(0xb5)]({'name':_0x3e595a});}[_0x1523fc(0x12b)](_0x178040,_0x3b2ef4){return this['update']({'config':_0x178040},_0x3b2ef4);}[_0x1523fc(0x222)](_0x1066ce){const _0x3a9094=_0x1523fc;return this[_0x3a9094(0xb5)]({'defaultValue':_0x1066ce});}[_0x1523fc(0xb5)](_0x20d65a,_0x593cfb){const _0x3c5c92=_0x1523fc;let _0x2746b4=this[_0x3c5c92(0x8b)]()[_0x3c5c92(0x1df)];return(_0x20d65a[_0x3c5c92(0x1df)]??_0x2746b4)===l[_0x3c5c92(0x200)][_0x3c5c92(0x18d)]&&(Object[_0x3c5c92(0x1c6)][_0x3c5c92(0x1f2)][_0x3c5c92(0x184)](_0x20d65a,'config')||_0x20d65a['type']===l['BaseFieldType']['Formula'])&&!this[_0x3c5c92(0x15b)](_0x593cfb)?!0x1:this[_0x3c5c92(0x16e)]['syncExecuteCommand'](c[_0x3c5c92(0xcb)]['id'],{'unitId':this[_0x3c5c92(0x1c8)][_0x3c5c92(0x1ac)](),'tableId':this[_0x3c5c92(0x83)][_0x3c5c92(0x1ac)](),'fieldId':this[_0x3c5c92(0x18b)],'patch':_0x20d65a});}['changeType'](_0x3e4c12,_0x2d3033={},_0x328826){const _0x1f6108=_0x1523fc;return _0x3e4c12===l[_0x1f6108(0x200)][_0x1f6108(0x18d)]&&!this[_0x1f6108(0x15b)](_0x328826)?!0x1:this[_0x1f6108(0x16e)][_0x1f6108(0xc2)](c[_0x1f6108(0xa8)]['id'],{'unitId':this[_0x1f6108(0x1c8)][_0x1f6108(0x1ac)](),'tableId':this[_0x1f6108(0x83)][_0x1f6108(0x1ac)](),'fieldId':this['_fieldId'],'input':{'type':_0x3e4c12,'config':_0x2d3033}});}[_0x1523fc(0x12e)](){const _0x3638a8=_0x1523fc;return this['_commandService'][_0x3638a8(0xc2)](c['DeleteBaseFieldCommand']['id'],{'unitId':this[_0x3638a8(0x1c8)][_0x3638a8(0x1ac)](),'tableId':this[_0x3638a8(0x83)][_0x3638a8(0x1ac)](),'fieldId':this[_0x3638a8(0x18b)]});}[_0x1523fc(0x102)](_0x4aadd1){const _0x1d4628=_0x1523fc;return this[_0x1d4628(0x16e)][_0x1d4628(0xc2)](c['MoveBaseFieldCommand']['id'],{'unitId':this[_0x1d4628(0x1c8)][_0x1d4628(0x1ac)](),'tableId':this['_table'][_0x1d4628(0x1ac)](),'fieldId':this['_fieldId'],'target':_0x4aadd1});}[_0x1523fc(0x8b)](){const _0x5912b1=_0x1523fc;let _0x2b931a=this[_0x5912b1(0x83)][_0x5912b1(0xab)]()[_0x5912b1(0x9d)][this['_fieldId']];if(!_0x2b931a)throw Error('[FField]:\x20field\x20\x22'+this[_0x5912b1(0x18b)]+'\x22\x20does\x20not\x20exist.');return _0x2b931a;}[_0x1523fc(0x15b)](_0x38330b){const _0x10cbd1=_0x1523fc;if(!_0x38330b||!Array[_0x10cbd1(0x68)](_0x38330b[_0x10cbd1(0x117)]))return console[_0x10cbd1(0x142)](_0x10cbd1(0x189)),!0x1;if(_0x38330b['externalReferences'][_0x10cbd1(0x224)]===0x0)return!0x0;let _0x139082=this[_0x10cbd1(0x16e)][_0x10cbd1(0xc2)](f[_0x10cbd1(0x113)]['id'],{'unitId':this[_0x10cbd1(0x1c8)]['getId'](),'references':_0x38330b['externalReferences']});return _0x139082||console[_0x10cbd1(0x142)](_0x10cbd1(0x1da)),_0x139082;}};_=g([h(0x3,l[_0x1523fc(0x112)]),h(0x4,l['IPermissionService'])],_);let v=function(_0x59e69a){const _0x5b3fac=_0x1523fc;return _0x59e69a['Id']='id',_0x59e69a[_0x5b3fac(0x1fe)]=_0x5b3fac(0x1e3),_0x59e69a[_0x5b3fac(0x229)]=_0x5b3fac(0x170),_0x59e69a;}({});function y(_0x3540e3){const _0xec6686=_0x1523fc;return!!(_0x3540e3&&_0x3540e3[_0xec6686(0x116)]!==!0x0&&_0x3540e3[_0xec6686(0x1df)]!==l[_0xec6686(0x200)]['RecordId']);}function b(_0x5acdea,_0x2d6611,_0x7abe23='id'){const _0x2519e1=_0x1523fc;if(!_0x2d6611)return{};let _0x5021d2={};return Object[_0x2519e1(0xee)](_0x2d6611)[_0x2519e1(0x70)](([_0x2d8d02,_0x1d6881])=>{const _0x3d303e=_0x2519e1;let _0x39c1a4=S(_0x5acdea,_0x2d8d02,_0x7abe23);_0x5021d2[_0x39c1a4]=x(_0x5acdea[_0x3d303e(0x9d)][_0x39c1a4],_0x1d6881);}),_0x5021d2;}function x(_0x576f39,_0x25cb36){const _0x58989a=_0x1523fc;if((_0x576f39==null?void 0x0:_0x576f39[_0x58989a(0x1df)])!==l[_0x58989a(0x200)][_0x58989a(0x1ff)]||_0x25cb36==null)return _0x25cb36;if(!Array[_0x58989a(0x68)](_0x25cb36))throw TypeError(_0x58989a(0x66)+_0x576f39[_0x58989a(0x1e3)]+_0x58989a(0x198));return _0x25cb36[_0x58989a(0x217)]((_0xa0863,_0x4aba19)=>C(_0x576f39,_0xa0863,_0x4aba19));}function S(_0x45fca6,_0x443037,_0x32e16c){const _0x40c432=_0x1523fc;if(_0x32e16c==='id'||_0x32e16c===_0x40c432(0x170)&&_0x45fca6[_0x40c432(0x9d)][_0x443037])return _0x443037;let _0x3681f7=Object['values'](_0x45fca6[_0x40c432(0x9d)])['filter'](_0x2486aa=>_0x2486aa[_0x40c432(0x1e3)]===_0x443037);if(_0x3681f7[_0x40c432(0x224)]===0x1)return _0x3681f7[0x0]['id'];throw _0x3681f7[_0x40c432(0x224)]>0x1?Error(_0x40c432(0x1d0)+_0x443037):Error(_0x40c432(0x10f)+_0x443037);}function C(_0x331eec,_0x291622,_0x5119c1){const _0x2c3ffc=_0x1523fc;let _0xd67175=_0x2c3ffc(0x1d7)+_0x5119c1+_0x2c3ffc(0x16d)+_0x331eec[_0x2c3ffc(0x1e3)]+'\x22';if(!O(_0x291622))throw TypeError(_0xd67175+_0x2c3ffc(0x11c));if(_0x2c3ffc(0x1e5)in _0x291622)throw TypeError(_0xd67175+':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.');if('type'in _0x291622)throw TypeError(_0xd67175+_0x2c3ffc(0x136));let _0x162c90=T(_0x291622['id'],_0xd67175,'id'),_0x2a4f88=T(_0x291622[_0x2c3ffc(0x1e3)],_0xd67175,_0x2c3ffc(0x1e3)),_0x5ae240=T(_0x291622[_0x2c3ffc(0xf4)],_0xd67175,_0x2c3ffc(0xf4));return{'id':_0x162c90,'name':_0x2a4f88,'source':_0x5ae240,'sourceType':w(_0x291622['sourceType'],_0x5ae240,_0xd67175),...E(_0x291622,_0x2c3ffc(0x1d6),_0xd67175),...D(_0x291622,_0x2c3ffc(0xf9),_0xd67175),...D(_0x291622,_0x2c3ffc(0x101),_0xd67175),...D(_0x291622,_0x2c3ffc(0xc9),_0xd67175),...E(_0x291622,'thumbnail',_0xd67175)};}function w(_0x3dc9d0,_0x39828c,_0x1f3336){const _0x24b3e8=_0x1523fc;if(_0x3dc9d0==null)return _0x39828c[_0x24b3e8(0x18c)]('data:')?l['ImageSourceType']['BASE64']:l[_0x24b3e8(0x1bb)][_0x24b3e8(0x144)];if(_0x3dc9d0===l[_0x24b3e8(0x1bb)]['URL']||_0x3dc9d0===l['ImageSourceType']['UUID']||_0x3dc9d0===l[_0x24b3e8(0x1bb)][_0x24b3e8(0x1e1)])return _0x3dc9d0;throw TypeError(_0x1f3336+_0x24b3e8(0x17d));}function T(_0x426cc2,_0x1cc2b9,_0x3ec527){const _0x3aef1c=_0x1523fc;if(typeof _0x426cc2!=_0x3aef1c(0x14e)||!_0x426cc2[_0x3aef1c(0x14b)]())throw TypeError(_0x1cc2b9+_0x3aef1c(0x127)+_0x3ec527+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x426cc2;}function _0x10b0(){const _0x377aad=['getGroup',':\x20expected\x20an\x20object.','subtreeHeightByRecordId','Facade','defaultValue','_fireBeforeHierarchyChange','afterFieldId','[FRecord]:\x20RecordLink\x20field\x20\x22','getPrimaryField','beforeCommandExecuted','IPermissionService','fromEntries',':\x20\x22','slice','stringify','search','setConfig','_getHierarchyIndex','[FRecord]:\x20field\x20\x22','delete','Gallery','BeforeBaseTableViewCreate','symbol','resolveBaseHierarchyFieldId','setAttachments','createInstance','canEdit',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','\x22.\x20','from','8GsCDgW','5698260fhebvV','getNumRows','recordIds','BaseTableRecordCreated','SetBaseRangeValuesCommand','DuplicateBaseRecordCommand','MoveBaseHierarchyRecordCommand','_getAttachmentField','warn','duplicateTable','URL','decorate','addRecord','create','matches','BaseHierarchyInvalidReason','getAncestors','trim','push','getOwnPropertyNames','string','getUnit','4437496tZNDTY','moveField','SetBasePermissionCommand','_univerInstanceService','recordId','Failed\x20to\x20delete\x20table\x20\x22','getType','RenameBaseTableCommand','iterator','DeleteBaseTableCommand','FBaseInitialable','_writeFormulaExternalReferences','Kanban','max','DESC','find','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','addRecords','fieldSettings','default','getValues','getPrototypeOf','Invalid\x20Base\x20regex\x20filter:\x20','8060886Urxgcb','getNumColumns','BaseConditionalColorOperator','endColumn','FBase','BatchDeleteBaseRecordsCommand','\x20for\x20field\x20\x22','_commandService','invalid','auto','_initBaseAfterEvents','config','records','constructor','BaseViewType','object','CreateBaseRecordCommand','SetBaseRecordValuesCommand','SetBaseViewGroupCommand',',\x20range:\x20','tables','_range',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','BaseEventSource','description','insertTable','parseRecordLinkIds','targetTableId','params','call','childrenByParentId','getPrimaryFieldId','message','toPrimitive','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','deleteProperty','_fieldId','startsWith','Formula','ApplyBaseJson1Mutation','Clear','multiple','includes','orderKey','BaseRecordLinkRole','validateBaseTableName','getVisibleFields','getBasePermissionValue','createBase','\x22:\x20expected\x20an\x20array.','buildBaseHierarchyIndex','BaseFilterConjunction','deepClone','getView','\x20exceeds\x20range\x20size\x20','Set','copyBaseTableSnapshot','getActiveBaseHierarchyFieldIds','viewOrder','_getFieldIds','base','getHierarchyFieldId','isFinite','custom','BeforeBaseTableCreate','fieldId','every','startColumn','_projectionService','getId','setEditable','SetBaseViewSortCommand','addChild','value','_assertInBounds','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','ValidateBaseFormulaCommand','visibleCardFieldIds','getProjection','getViews','getBaseTablePermissionObjectId','getBaseCellValue','endRow','field','ImageSourceType','record','getValue','get','indexOf','BaseTableFieldCreated','BaseTableCellValueChanged','createdAt','validateBaseHierarchyRecordCreations','onCommandExecuted','conditions','prototype','Inject','_base','getOwnPropertyDescriptor','setFilter','canEditBaseTargets','\x22\x20is\x20invalid.','disposeWithMe','__esModule','tableId','Duplicate\x20Base\x20field\x20name:\x20','[FTable]:\x20table\x20\x22','addConditionalColorRule','deleteTable','[FBase]:\x20invalid\x20table\x20name\x20\x22','getRecordLinkFieldConfig','mimeType','Invalid\x20attachment\x20at\x20index\x20','fieldIds','UpdateBaseViewConditionalColorRulesCommand','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','function','has','_viewId','createUnit','type','getPermission','BASE64','IBaseProjectionService','name','limit','url','FBaseTableView','createView','getTableByName','saveUnit','_injector','Injector','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','IResourceLoaderService','getBase','[FView]:\x20view\x20\x22','_getView','10YAjaSU','hasOwnProperty','UniverInstanceType','includeRecords','getFields','BeforeBaseTableCellValueChange','recordOrder','_resourceLoaderService','number','276251ZZNUEB','BaseHierarchyErrorCode','hierarchyChanges','BaseFieldKeyEnum','Name','Attachment','BaseFieldType','FBaseTableField','BeforeBaseHierarchyChange','getBaseRecordPermissionObjectId','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','resolveBaseFieldKey','filter','BASE_RECORD_ID_FIELD_ID','5qrraZz','cancel','RecordLink','1422492lgVTxR','readonly','getRange','getBaseFormulaTableName','CreateBaseChildRecordCommand','FBaseObjectPermission','getTableById','primaryFieldName','getDataRange','[FRecord]:\x20invalid\x20RecordLink\x20value.','RenameBaseViewCommand','Add','map','getBaseFieldPermissionObjectId','Remote','tableOrder','getDefaultValue','views','getDescription','[FRecord]:\x20attachment\x20at\x20index\x20','Failed\x20to\x20add\x20records','_resolveRecordIds','BeforeBaseTableRecordCreate','setDefaultValue','addField','length','resolveBaseFieldValues','getChildren','searchBaseTable','validateRecordLinkValue','Auto','clearConditionalColorRules','getColumn','unitId','table','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','getRow','isArray','extend','getSnapshot','MoveBaseViewCommand','BatchCreateBaseRecordsCommand','BeforeBaseTableFieldCreate','validateBaseHierarchyRecordPatches','BaseSortDirection','forEach','SetBaseViewFieldOrderCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_collectDescendantIds','_getRecord','Delete','BaseTableViewCreated','setHierarchyField','fieldKey','valid','\x22\x20has\x20invalid\x20config.','getAttachments','generateRandomId','rowId','2344706OKtUWi','_baseTableId','FUniver','ensureBaseTableCellLayout','Date','_table','setValue','_getRecordLinkField','formula','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','updatedAt','hidden','_objectId','_getField','parentByRecordId','[FRecord]:\x20record\x20\x22','BaseConditionalColorRuleUpdateType','BaseConditionalColorTarget','setObjectPermissions','FBasePermission','setConditionalColorRules','setLinkedRecordIds','Grid','FEventName','Tools','test','DeleteBaseViewCommand','now','setOrderKey','getBaseHierarchyDeletePromotions','Failed\x20to\x20add\x20field\x20\x22','fields','setFieldVisible','CreateBaseTableCommand','Event','getLinkedRecordIds','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','getFieldByName','BaseTableCreated','defineProperty','rows','_initialize','ChangeBaseFieldTypeCommand','getPoint','_initBaseBeforeEvents','getTable','_baseUnitId','getDescendants','conditionalColoring','localeCompare','setValues','\x22\x20does\x20not\x20exist.','BaseHierarchyChanged','regenerateViewIds','operator','update','getActiveBase','UpdateBaseViewConfigCommand','\x20in\x20field\x20\x22','_parentObjectIds','CanceledError','Failed\x20to\x20create\x20view\x20\x22','_getTable','_permissionService','getBaseViewPermissionObjectId','viewId','reason','getBaseFacade','syncExecuteCommand','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','fireEvent','_prepareFormulaFieldReferences','_tableId','fromCollab','getName','height','Unsupported\x20Base\x20field\x20type\x20\x22','UpdateBaseFieldCommand','FBaseTable','registerEventHandler','Invalid\x20Base\x20formula.','view','BASE_TABLE_NAME_REQUIREMENTS','getFieldById',',\x20max\x20columns:\x20','getUnitId','caseSensitive','primaryFieldId','UNIVER_BASE','SetBaseViewFieldVisibleCommand','getTableId','deleteConditionalColorRule','SetBaseNameCommand','Failed\x20to\x20create\x20table\x20\x22','index','getViewById','[FBaseRange]:\x20values\x20size\x20','DeleteBaseRecordCommand','getAllUnitsForType','bind','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','beforeFieldId','CreateBaseFieldCommand','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','startRow','sort','setReadOnly','executeCommand','resolveBaseRangeHierarchyPatches','rules','_unitId','getSchema','entries','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','getViewByName','_recordId','UnitAction','Gantt','source','[FBase]:\x20table\x20\x22','BaseConditionalDateMode','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','getConditionalColorRules','size','setName','flatMap','setParent','save','offset','BaseFilterOperator','getTables','width','move','fieldOrder','UpdateBaseCellCommand','getConfig','setPoint','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','values','\x20Copy','clear','Edit','getTableFacade','getFilter','SetBasePermissionsCommand','Base\x20field\x20not\x20found:\x20','matchesBaseCondition','_getHierarchyEventContext','ICommandService','UpsertHostExternalReferencesCommand','_inject','CreateBaseViewCommand','system','externalReferences','getRecordById','FEnum','10844840guVFyO'];_0x10b0=function(){return _0x377aad;};return _0x10b0();}function E(_0x1c8250,_0x14033e,_0x4aedfb){const _0x4dd9b7=_0x1523fc;let _0x4014c9=_0x1c8250[_0x14033e];if(_0x4014c9==null)return{};if(typeof _0x4014c9!=_0x4dd9b7(0x14e)||!_0x4014c9['trim']())throw TypeError(_0x4aedfb+_0x4dd9b7(0x127)+_0x14033e+_0x4dd9b7(0x107));return{[_0x14033e]:_0x4014c9};}function D(_0x476ea1,_0x1dc377,_0x4be251){const _0x42daf0=_0x1523fc;let _0x5bdc19=_0x476ea1[_0x1dc377];if(_0x5bdc19==null)return{};if(typeof _0x5bdc19!=_0x42daf0(0x1f9)||!Number[_0x42daf0(0x1a5)](_0x5bdc19)||_0x5bdc19<0x0)throw TypeError(_0x4be251+':\x20\x22'+_0x1dc377+_0x42daf0(0x1ec));return{[_0x1dc377]:_0x5bdc19};}function O(_0x2daef6){const _0xe5ee94=_0x1523fc;return typeof _0x2daef6==_0xe5ee94(0x176)&&!!_0x2daef6&&!Array[_0xe5ee94(0x68)](_0x2daef6);}var k;let A=k=class{constructor(_0x303af8,_0x55d16b,_0x43c78f,_0x4dde0c,_0x2a9475){const _0x4c94dd=_0x1523fc;this[_0x4c94dd(0x1c8)]=_0x303af8,this[_0x4c94dd(0x83)]=_0x55d16b,this['_range']=_0x43c78f,this[_0x4c94dd(0x114)]=_0x4dde0c,this['_commandService']=_0x2a9475,this['_assertInBounds']();}['getBaseId'](){const _0x365d2e=_0x1523fc;return this['_base'][_0x365d2e(0x1ac)]();}[_0x1523fc(0xd8)](){const _0x16d93e=_0x1523fc;return this[_0x16d93e(0x83)][_0x16d93e(0x1ac)]();}[_0x1523fc(0x20d)](){const _0x58a610=_0x1523fc;return{...this[_0x58a610(0x17c)]};}[_0x1523fc(0x67)](){return this['_range']['startRow'];}[_0x1523fc(0x22b)](){const _0x35b541=_0x1523fc;return this[_0x35b541(0x17c)]['startColumn'];}['getNumRows'](){const _0x22f7b7=_0x1523fc;return this[_0x22f7b7(0x17c)][_0x22f7b7(0x1b9)]-this[_0x22f7b7(0x17c)][_0x22f7b7(0xe6)]+0x1;}[_0x1523fc(0x168)](){const _0x11509a=_0x1523fc;return this[_0x11509a(0x17c)][_0x11509a(0x16a)]-this[_0x11509a(0x17c)][_0x11509a(0x1aa)]+0x1;}[_0x1523fc(0x164)](){const _0x1ea051=_0x1523fc;let _0x5d7226=this['_getTable'](),_0x23aed0=this[_0x1ea051(0x1a2)](_0x5d7226),_0x198147=[];for(let _0x59320c=this[_0x1ea051(0x17c)]['startRow'];_0x59320c<=this['_range']['endRow'];_0x59320c++){var _0x1bc767;let _0x2b4157=(_0x1bc767=_0x5d7226[_0x1ea051(0x7d)])==null?void 0x0:_0x1bc767[_0x59320c],_0x175dcd=[];for(let _0x2bd072=this[_0x1ea051(0x17c)][_0x1ea051(0x1aa)];_0x2bd072<=this['_range'][_0x1ea051(0x16a)];_0x2bd072++){let _0x148b87=_0x23aed0[_0x2bd072];_0x175dcd[_0x1ea051(0x14c)](_0x2b4157&&_0x148b87?(0x0,c[_0x1ea051(0x1b8)])(_0x5d7226,_0x2b4157,_0x148b87):null);}_0x198147[_0x1ea051(0x14c)](_0x175dcd);}return _0x198147;}[_0x1523fc(0x1bd)](){var _0xf13524;return((_0xf13524=this['getValues']()[0x0])==null?void 0x0:_0xf13524[0x0])??null;}[_0x1523fc(0x84)](_0x402162){const _0x10eae3=_0x1523fc;return this[_0x10eae3(0xb0)]([[_0x402162]]);}[_0x1523fc(0xb0)](_0x538c03){const _0xdc69e=_0x1523fc;let _0x1bd091=this[_0xdc69e(0x13b)](),_0x53628a=this[_0xdc69e(0x168)]();if(_0x538c03[_0xdc69e(0x224)]>_0x1bd091||_0x538c03['some'](_0x277ac9=>_0x277ac9[_0xdc69e(0x224)]>_0x53628a)){var _0x366dd6;throw Error(_0xdc69e(0xde)+_0x538c03['length']+'x'+(((_0x366dd6=_0x538c03[0x0])==null?void 0x0:_0x366dd6['length'])??0x0)+_0xdc69e(0x19d)+_0x1bd091+'x'+_0x53628a+'.');}let _0x3f6ed4=this[_0xdc69e(0xbc)](),_0x26fed0=this[_0xdc69e(0x1a2)](_0x3f6ed4),_0x4f58c0=_0x538c03[_0xdc69e(0xfb)]((_0x492d38,_0x5b7760)=>_0x492d38[_0xdc69e(0x217)]((_0x5572ef,_0x238f0c)=>{const _0x3afd18=_0xdc69e;var _0x58954b;let _0x2cf8f1=this[_0x3afd18(0x17c)][_0x3afd18(0xe6)]+_0x5b7760,_0x3683a3=_0x26fed0[this[_0x3afd18(0x17c)][_0x3afd18(0x1aa)]+_0x238f0c],_0x537166=(_0x58954b=_0x3f6ed4[_0x3afd18(0x7d)])==null?void 0x0:_0x58954b[_0x2cf8f1];if(!_0x3683a3||!_0x537166)throw Error(_0x3afd18(0x87));return{'recordId':_0x537166,'fieldId':_0x3683a3,'value':_0x5572ef};}));return this[_0xdc69e(0x16e)][_0xdc69e(0xc2)](c[_0xdc69e(0x13e)]['id'],{'unitId':this[_0xdc69e(0x1c8)]['getId'](),'tableId':this[_0xdc69e(0x83)][_0xdc69e(0x1ac)](),'patches':_0x4f58c0,'source':c[_0xdc69e(0x17e)][_0xdc69e(0x11e)]});}[_0x1523fc(0x10a)](){const _0x4ff4b8=_0x1523fc;return this['setValues'](Array[_0x4ff4b8(0x138)]({'length':this['getNumRows']()},()=>Array[_0x4ff4b8(0x138)]({'length':this[_0x4ff4b8(0x168)]()},()=>null)));}[_0x1523fc(0xfe)](_0x557a65,_0x575742,_0x56d846=this[_0x1523fc(0x13b)](),_0x7137cc=this[_0x1523fc(0x168)]()){const _0x24819d=_0x1523fc;return this['_inject'][_0x24819d(0x134)](k,this['_base'],this[_0x24819d(0x83)],{'startRow':this[_0x24819d(0x17c)][_0x24819d(0xe6)]+_0x557a65,'startColumn':this[_0x24819d(0x17c)][_0x24819d(0x1aa)]+_0x575742,'endRow':this['_range'][_0x24819d(0xe6)]+_0x557a65+_0x56d846-0x1,'endColumn':this['_range'][_0x24819d(0x1aa)]+_0x575742+_0x7137cc-0x1},this[_0x24819d(0x114)]);}[_0x1523fc(0xbc)](){const _0x3accd7=_0x1523fc;let _0x3c01b7=this[_0x3accd7(0x83)][_0x3accd7(0xab)]();if(!_0x3c01b7)throw Error('[FBaseRange]:\x20table\x20does\x20not\x20exist.');return(0x0,c[_0x3accd7(0x81)])(_0x3c01b7);}[_0x1523fc(0x1b1)](){const _0x4a2138=_0x1523fc;var _0x441aea;let _0x242449=this[_0x4a2138(0xbc)](),_0x5034fa=((_0x441aea=_0x242449['recordOrder'])==null?void 0x0:_0x441aea['length'])??0x0,_0x30ca1c=this[_0x4a2138(0x1a2)](_0x242449)[_0x4a2138(0x224)];if(this[_0x4a2138(0x17c)]['startRow']<0x0||this[_0x4a2138(0x17c)][_0x4a2138(0x1aa)]<0x0||this[_0x4a2138(0x17c)][_0x4a2138(0x1b9)]<this[_0x4a2138(0x17c)][_0x4a2138(0xe6)]||this[_0x4a2138(0x17c)][_0x4a2138(0x16a)]<this['_range'][_0x4a2138(0x1aa)]||this[_0x4a2138(0x17c)]['endRow']>=Math[_0x4a2138(0x15d)](_0x5034fa,0x1)||this[_0x4a2138(0x17c)][_0x4a2138(0x16a)]>=Math[_0x4a2138(0x15d)](_0x30ca1c,0x1))throw Error(_0x4a2138(0xe5)+_0x5034fa+_0x4a2138(0xd2)+_0x30ca1c+_0x4a2138(0x17a)+JSON[_0x4a2138(0x129)](this[_0x4a2138(0x17c)])+'.');}['_getFieldIds'](_0x71b9ea){const _0x3ddcf9=_0x1523fc;return _0x71b9ea[_0x3ddcf9(0x103)][_0x3ddcf9(0x206)](_0x2c2ba8=>y(_0x71b9ea[_0x3ddcf9(0x9d)][_0x2c2ba8]));}};A=k=g([h(0x4,l[_0x1523fc(0x112)])],A);function j(_0xc5bc9b){'@babel/helpers - typeof';const _0x32cd33=_0x1523fc;return j=typeof Symbol==_0x32cd33(0x1db)&&typeof Symbol[_0x32cd33(0x158)]=='symbol'?function(_0x28d937){return typeof _0x28d937;}:function(_0x15dc2b){const _0x1152ce=_0x32cd33;return _0x15dc2b&&typeof Symbol=='function'&&_0x15dc2b[_0x1152ce(0x174)]===Symbol&&_0x15dc2b!==Symbol['prototype']?_0x1152ce(0x131):typeof _0x15dc2b;},j(_0xc5bc9b);}function M(_0x3f005b,_0x54abdd){const _0x3eff70=_0x1523fc;if(j(_0x3f005b)!=_0x3eff70(0x176)||!_0x3f005b)return _0x3f005b;var _0x224615=_0x3f005b[Symbol[_0x3eff70(0x188)]];if(_0x224615!==void 0x0){var _0x39059a=_0x224615['call'](_0x3f005b,_0x54abdd||_0x3eff70(0x163));if(j(_0x39059a)!=_0x3eff70(0x176))return _0x39059a;throw TypeError(_0x3eff70(0x72));}return(_0x54abdd===_0x3eff70(0x14e)?String:Number)(_0x3f005b);}function N(_0x553732){const _0x2d83e2=_0x1523fc;var _0xceff72=M(_0x553732,_0x2d83e2(0x14e));return j(_0xceff72)=='symbol'?_0xceff72:_0xceff72+'';}function P(_0x5621cc,_0x1e64b9,_0x1b57ac){const _0x42fe19=_0x1523fc;return(_0x1e64b9=N(_0x1e64b9))in _0x5621cc?Object[_0x42fe19(0xa5)](_0x5621cc,_0x1e64b9,{'value':_0x1b57ac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5621cc[_0x1e64b9]=_0x1b57ac,_0x5621cc;}var F;let I=F=class extends u[_0x1523fc(0x15a)]{constructor(_0x1251d1,_0x243971,_0x1d72d0,_0x3474fe,_0x6b37c6,_0x57e850){const _0xd3e08f=_0x1523fc;super(_0x3474fe),this[_0xd3e08f(0x1c8)]=_0x1251d1,this[_0xd3e08f(0x83)]=_0x243971,this[_0xd3e08f(0xf1)]=_0x1d72d0,this['_injector']=_0x3474fe,this[_0xd3e08f(0x16e)]=_0x6b37c6,this['_permissionService']=_0x57e850,P(this,_0xd3e08f(0xac),void 0x0),P(this,_0xd3e08f(0x7f),void 0x0),this[_0xd3e08f(0xac)]=_0x1251d1['getId'](),this['_baseTableId']=_0x243971[_0xd3e08f(0x1ac)]();}[_0x1523fc(0xc1)](){const _0x11df8e=_0x1523fc;return this[_0x11df8e(0x1c8)];}[_0x1523fc(0x10c)](){const _0x4727de=_0x1523fc;return this[_0x4727de(0x83)];}[_0x1523fc(0x1ac)](){const _0x5cbea3=_0x1523fc;return this[_0x5cbea3(0xf1)];}[_0x1523fc(0x1e0)](){const _0x2ef328=_0x1523fc;let _0x55d511=this[_0x2ef328(0x83)]['getId']();return new m(this[_0x2ef328(0x1c8)][_0x2ef328(0x1ac)](),(0x0,c[_0x2ef328(0x203)])(_0x55d511,this[_0x2ef328(0xf1)]),[(0x0,c[_0x2ef328(0x1b7)])(_0x55d511)],this[_0x2ef328(0x16e)],this['_permissionService']);}['getRecord'](){const _0x59e33e=_0x1523fc;return{...this[_0x59e33e(0x74)](),'values':this[_0x59e33e(0x164)]()};}[_0x1523fc(0x1bd)](_0x443c66){const _0x3546cf=_0x1523fc;return y(this[_0x3546cf(0x83)][_0x3546cf(0xab)]()[_0x3546cf(0x9d)][_0x443c66])?this[_0x3546cf(0x74)]()[_0x3546cf(0x108)][_0x443c66]??null:null;}[_0x1523fc(0x164)](){const _0x50a409=_0x1523fc;let _0x3fee24=this[_0x50a409(0x83)][_0x50a409(0xab)]();return Object[_0x50a409(0x126)](Object[_0x50a409(0xee)](this[_0x50a409(0x74)]()[_0x50a409(0x108)])['filter'](([_0x3d2de4])=>y(_0x3fee24[_0x50a409(0x9d)][_0x3d2de4])));}['setValue'](_0x2f9d95,_0x3fec83){const _0xb5896d=_0x1523fc;let _0xeda7d3=this[_0xb5896d(0x83)]['getTable']()['fields'][_0x2f9d95];return this[_0xb5896d(0x16e)]['syncExecuteCommand'](c[_0xb5896d(0x104)]['id'],{'unitId':this[_0xb5896d(0x1c8)][_0xb5896d(0x1ac)](),'tableId':this[_0xb5896d(0x83)][_0xb5896d(0x1ac)](),'recordId':this[_0xb5896d(0xf1)],'fieldId':_0x2f9d95,'value':x(_0xeda7d3,_0x3fec83),'source':c[_0xb5896d(0x17e)][_0xb5896d(0x11e)]});}[_0x1523fc(0x133)](_0x277aa7,_0x57f891){const _0x590023=_0x1523fc;return this[_0x590023(0x84)](_0x277aa7,_0x57f891[_0x590023(0x217)](_0x533126=>({..._0x533126})));}[_0x1523fc(0x7b)](_0x573f92){const _0x4ead68=_0x1523fc;this[_0x4ead68(0x141)](_0x573f92);let _0x5add6a=this['getValue'](_0x573f92);return Array['isArray'](_0x5add6a)?_0x5add6a[_0x4ead68(0x217)]((_0x3f4528,_0x1bc2de)=>R(_0x3f4528,_0x573f92,_0x1bc2de)):[];}['deleteAttachments'](_0x5c30e5,_0x41a91e){const _0x587ca0=_0x1523fc;this[_0x587ca0(0x141)](_0x5c30e5);let _0x16e5b8=new Set(_0x41a91e[_0x587ca0(0x217)](_0x3ef838=>_0x3ef838['id']));if(!_0x16e5b8[_0x587ca0(0xf9)])return!0x0;let _0x2590f1=this['getAttachments'](_0x5c30e5),_0x5e1e70=_0x2590f1['filter'](_0x313466=>!_0x16e5b8[_0x587ca0(0x1dc)](_0x313466['id']));return _0x5e1e70[_0x587ca0(0x224)]===_0x2590f1[_0x587ca0(0x224)]||this[_0x587ca0(0x133)](_0x5c30e5,_0x5e1e70);}[_0x1523fc(0xb0)](_0xd8c86a,_0x4277b8='id'){const _0x39d588=_0x1523fc;let _0x36810c=this[_0x39d588(0x83)][_0x39d588(0xab)](),_0x148936=[{'recordId':this[_0x39d588(0xf1)],'values':b(_0x36810c,_0xd8c86a,_0x4277b8)}];return this[_0x39d588(0x16e)][_0x39d588(0xc2)](c[_0x39d588(0x178)]['id'],{'unitId':this['_base'][_0x39d588(0x1ac)](),'tableId':this[_0x39d588(0x83)][_0x39d588(0x1ac)](),'patches':_0x148936,'source':c['BaseEventSource'][_0x39d588(0x11e)]});}[_0x1523fc(0x12e)](){const _0xde04e2=_0x1523fc;return this[_0xde04e2(0x16e)]['syncExecuteCommand'](c[_0xde04e2(0xdf)]['id'],{'unitId':this[_0xde04e2(0x1c8)][_0xde04e2(0x1ac)](),'tableId':this[_0xde04e2(0x83)]['getId'](),'recordId':this[_0xde04e2(0xf1)],'source':c[_0xde04e2(0x17e)]['Facade']});}['duplicate'](_0x1b067b){const _0xb2ae3d=_0x1523fc;let _0x1f508f={...this['_getRecord'](),..._0x1b067b,'id':(0x0,l[_0xb2ae3d(0x7c)])(0x6)};_0x1f508f['values']={..._0x1f508f['values'],..._0x1b067b==null?void 0x0:_0x1b067b['values']},Reflect[_0xb2ae3d(0x18a)](_0x1f508f[_0xb2ae3d(0x108)],l[_0xb2ae3d(0x207)]);let _0x4f1887=Date[_0xb2ae3d(0x99)]();if(_0x1f508f[_0xb2ae3d(0x192)]||=''+_0x4f1887,_0x1f508f['createdAt']||=_0x4f1887,_0x1f508f[_0xb2ae3d(0x88)]||=_0x4f1887,!this[_0xb2ae3d(0x16e)][_0xb2ae3d(0xc2)](c[_0xb2ae3d(0x13f)]['id'],{'unitId':this['_base'][_0xb2ae3d(0x1ac)](),'tableId':this[_0xb2ae3d(0x83)][_0xb2ae3d(0x1ac)](),'sourceRecordId':this['_recordId'],'record':_0x1f508f,'source':c[_0xb2ae3d(0x17e)]['Facade']}))throw Error(_0xb2ae3d(0xe2)+this[_0xb2ae3d(0xf1)]+'\x22.');return this[_0xb2ae3d(0x1ea)]['createInstance'](F,this[_0xb2ae3d(0x1c8)],this[_0xb2ae3d(0x83)],_0x1f508f['id'],this['_injector']);}[_0x1523fc(0x9a)](_0x27eeb9){const _0x4bca7b=_0x1523fc;return this['_commandService'][_0x4bca7b(0xc2)](c['UpdateBaseRecordOrderCommand']['id'],{'unitId':this[_0x4bca7b(0x1c8)][_0x4bca7b(0x1ac)](),'tableId':this[_0x4bca7b(0x83)]['getId'](),'recordId':this[_0x4bca7b(0xf1)],'orderKey':_0x27eeb9});}[_0x1523fc(0xa1)](_0x18ed09){const _0x15d03d=_0x1523fc;let _0x2d7bed=this[_0x15d03d(0x85)](_0x18ed09);return(0x0,c['parseRecordLinkIds'])(this[_0x15d03d(0x1bd)](_0x2d7bed['id']));}[_0x1523fc(0x93)](_0x15c248,_0x3dc117){const _0x23988e=_0x1523fc;let _0x257902=this[_0x23988e(0x85)](_0x15c248),_0x51bc2b=(0x0,c['serializeRecordLinkIds'])(_0x3dc117),_0x5c5ddb=(0x0,c[_0x23988e(0x228)])(this[_0x23988e(0x1c8)][_0x23988e(0x1ee)]()['getSnapshot'](),_0x257902,_0x51bc2b);if(!_0x5c5ddb[_0x23988e(0x79)])throw Error(_0x5c5ddb['reason']??_0x23988e(0x214));return this[_0x23988e(0x16e)][_0x23988e(0xc2)](c['UpdateBaseCellCommand']['id'],{'unitId':this[_0x23988e(0x1c8)]['getId'](),'tableId':this['_table'][_0x23988e(0x1ac)](),'recordId':this['_recordId'],'fieldId':_0x15c248,'value':_0x51bc2b,'source':c[_0x23988e(0x17e)][_0x23988e(0x11e)]});}['addLinkedRecord'](_0x2f915a,_0x4ba8ad){const _0x25398b=_0x1523fc;let _0x411cda=(0x0,c[_0x25398b(0x1d5)])(this[_0x25398b(0x85)](_0x2f915a));if(!_0x411cda)throw Error(_0x25398b(0x122)+_0x2f915a+_0x25398b(0x7a));let _0x903d5e=this[_0x25398b(0xa1)](_0x2f915a);return _0x411cda[_0x25398b(0x190)]&&_0x903d5e[_0x25398b(0x191)](_0x4ba8ad)?!0x0:this['setLinkedRecordIds'](_0x2f915a,_0x411cda[_0x25398b(0x190)]?[..._0x903d5e,_0x4ba8ad]:[_0x4ba8ad]);}['removeLinkedRecord'](_0x2dd529,_0x168956){const _0xf59df7=_0x1523fc;let _0x583976=this[_0xf59df7(0xa1)](_0x2dd529);return!_0x583976[_0xf59df7(0x191)](_0x168956)||this[_0xf59df7(0x93)](_0x2dd529,_0x583976[_0xf59df7(0x206)](_0x1e3c27=>_0x1e3c27!==_0x168956));}['getParent'](_0x57a9d2){const _0x5ea11e=_0x1523fc;let _0xb34315=this[_0x5ea11e(0x12c)](_0x57a9d2)[_0x5ea11e(0x8c)][_0x5ea11e(0x1be)](this[_0x5ea11e(0xf1)])??null;return _0xb34315?this[_0x5ea11e(0x83)]['getRecordById'](_0xb34315):null;}[_0x1523fc(0x226)](_0x523c00){const _0x3f1097=_0x1523fc;return(this[_0x3f1097(0x12c)](_0x523c00)[_0x3f1097(0x185)][_0x3f1097(0x1be)](this['_recordId'])??[])[_0x3f1097(0xfb)](_0x25da4b=>{const _0x4af7e8=_0x3f1097;let _0x18812c=this[_0x4af7e8(0x83)][_0x4af7e8(0x118)](_0x25da4b);return _0x18812c?[_0x18812c]:[];});}[_0x1523fc(0x14a)](_0x5af89d){const _0x5c22e4=_0x1523fc;let _0x7e56ad=this[_0x5c22e4(0x12c)](_0x5af89d),_0x2f3251=[],_0xcfe28=_0x7e56ad[_0x5c22e4(0x8c)][_0x5c22e4(0x1be)](this[_0x5c22e4(0xf1)])??null;for(;_0xcfe28;){let _0x563294=this[_0x5c22e4(0x83)]['getRecordById'](_0xcfe28);_0x563294&&_0x2f3251['push'](_0x563294),_0xcfe28=_0x7e56ad[_0x5c22e4(0x8c)][_0x5c22e4(0x1be)](_0xcfe28)??null;}return _0x2f3251;}[_0x1523fc(0xad)](_0x24989f){const _0x1e3f0d=_0x1523fc;let _0x4ada84=this[_0x1e3f0d(0x12c)](_0x24989f),_0x4480b0=_0x4ada84['orderedRecordIds'][_0x1e3f0d(0x1bf)](this[_0x1e3f0d(0xf1)]),_0x3da552=_0x4ada84[_0x1e3f0d(0x11d)][_0x1e3f0d(0x1dc)](this[_0x1e3f0d(0xf1)])?this['_collectDescendantIds'](_0x4ada84[_0x1e3f0d(0x185)],this[_0x1e3f0d(0xf1)]):[];return _0x4480b0<0x0?[]:_0x3da552['flatMap'](_0x2f8340=>{const _0x1bb5bc=_0x1e3f0d;let _0x1ede20=this['_table'][_0x1bb5bc(0x118)](_0x2f8340);return _0x1ede20?[_0x1ede20]:[];});}[_0x1523fc(0xfc)](_0x459a9,_0x585509,_0x1b02e2){const _0x369393=_0x1523fc;return this[_0x369393(0x16e)][_0x369393(0xc2)](c[_0x369393(0x140)]['id'],{'unitId':this['_base'][_0x369393(0x1ac)](),'tableId':this[_0x369393(0x83)][_0x369393(0x1ac)](),'fieldId':_0x459a9,'recordId':this['_recordId'],'parentRecordId':_0x585509,'orderKey':_0x1b02e2,'source':c[_0x369393(0x17e)][_0x369393(0x11e)]});}[_0x1523fc(0x1af)](_0x19fe28,_0xdf379d,_0x58fe3f='id',_0x4e8ab7){const _0x4114d1=_0x1523fc;let _0xc9234a=this[_0x4114d1(0x83)][_0x4114d1(0xab)](),_0x3882c8=Date['now'](),_0x4bdeac={..._0x4e8ab7,'id':(0x0,l['generateRandomId'])(0x6),'values':b(_0xc9234a,_0xdf379d,_0x58fe3f),'orderKey':(_0x4e8ab7==null?void 0x0:_0x4e8ab7[_0x4114d1(0x192)])||''+_0x3882c8,'createdAt':(_0x4e8ab7==null?void 0x0:_0x4e8ab7[_0x4114d1(0x1c2)])||_0x3882c8,'updatedAt':(_0x4e8ab7==null?void 0x0:_0x4e8ab7['updatedAt'])||_0x3882c8};if(!this[_0x4114d1(0x16e)][_0x4114d1(0xc2)](c[_0x4114d1(0x20f)]['id'],{'unitId':this[_0x4114d1(0x1c8)][_0x4114d1(0x1ac)](),'tableId':this[_0x4114d1(0x83)]['getId'](),'fieldId':_0x19fe28,'parentRecordId':this[_0x4114d1(0xf1)],'record':_0x4bdeac,'source':c['BaseEventSource'][_0x4114d1(0x11e)]}))throw Error(_0x4114d1(0xa2)+this[_0x4114d1(0xf1)]+'\x22.');return this['_injector'][_0x4114d1(0x134)](F,this[_0x4114d1(0x1c8)],this[_0x4114d1(0x83)],_0x4bdeac['id'],this['_injector']);}[_0x1523fc(0x12c)](_0x5da9b5){const _0x2ce1a1=_0x1523fc;return(0x0,c[_0x2ce1a1(0x199)])(this[_0x2ce1a1(0x83)]['getTable'](),_0x5da9b5);}[_0x1523fc(0x73)](_0x59d412,_0x37f6c7){let _0x436795=[],_0x5e1be7=_0x55fbff=>{const _0x45ff17=_0x474f;for(let _0x5cd31a of _0x59d412[_0x45ff17(0x1be)](_0x55fbff)??[])_0x436795['push'](_0x5cd31a),_0x5e1be7(_0x5cd31a);};return _0x5e1be7(_0x37f6c7),_0x436795;}[_0x1523fc(0x74)](){const _0x5b6f66=_0x1523fc;let _0x327748=this[_0x5b6f66(0x83)]['getTable']()[_0x5b6f66(0x173)][this[_0x5b6f66(0xf1)]];if(!_0x327748)throw Error(_0x5b6f66(0x8d)+this[_0x5b6f66(0xf1)]+_0x5b6f66(0xb1));return _0x327748;}[_0x1523fc(0x85)](_0x440768){const _0x899a72=_0x1523fc;let _0x23f53e=this[_0x899a72(0x83)][_0x899a72(0xab)]()[_0x899a72(0x9d)][_0x440768];if(!_0x23f53e||_0x23f53e[_0x899a72(0x1df)]!==l['BaseFieldType'][_0x899a72(0x20a)])throw Error(_0x899a72(0x12d)+_0x440768+_0x899a72(0xf7));return _0x23f53e;}[_0x1523fc(0x141)](_0x1f5a21){const _0x1c16bb=_0x1523fc;let _0x598420=this[_0x1c16bb(0x83)]['getTable']()['fields'][_0x1f5a21];if(!_0x598420||_0x598420[_0x1c16bb(0x1df)]!==l[_0x1c16bb(0x200)][_0x1c16bb(0x1ff)])throw Error(_0x1c16bb(0x12d)+_0x1f5a21+'\x22\x20is\x20not\x20an\x20Attachment\x20field.');return _0x598420;}};I=F=g([h(0x4,l['ICommandService']),h(0x5,l['IPermissionService'])],I);function L(_0x5bf7c8){const _0x226d7b=_0x1523fc;return!!(_0x5bf7c8&&typeof _0x5bf7c8==_0x226d7b(0x176)&&'id'in _0x5bf7c8&&typeof _0x5bf7c8['id']==_0x226d7b(0x14e)&&_0x226d7b(0x1e3)in _0x5bf7c8&&typeof _0x5bf7c8[_0x226d7b(0x1e3)]==_0x226d7b(0x14e));}function R(_0x484e3c,_0x1ac9da,_0x5e9609){const _0x4d7141=_0x1523fc;if(!L(_0x484e3c))throw Error(_0x4d7141(0x21e)+_0x5e9609+_0x4d7141(0xb8)+_0x1ac9da+_0x4d7141(0x1cc));return{..._0x484e3c};}let z=class{constructor(_0x199bae,_0x17d689,_0x15c577,_0x1e2f88,_0x4f4e2b,_0x279c2c,_0x278175){const _0x581e56=_0x1523fc;this[_0x581e56(0x1c8)]=_0x199bae,this[_0x581e56(0x83)]=_0x17d689,this['_viewId']=_0x15c577,this[_0x581e56(0x1ea)]=_0x1e2f88,this['_commandService']=_0x4f4e2b,this[_0x581e56(0xbd)]=_0x279c2c,this['_projectionService']=_0x278175;}[_0x1523fc(0x1ac)](){const _0x40285b=_0x1523fc;return this[_0x40285b(0x1dd)];}[_0x1523fc(0x1e0)](){const _0x5a25f3=_0x1523fc;let _0x3d4bb6=this[_0x5a25f3(0x83)][_0x5a25f3(0x1ac)]();return new m(this[_0x5a25f3(0x1c8)][_0x5a25f3(0x1ac)](),(0x0,c[_0x5a25f3(0xbe)])(_0x3d4bb6,this[_0x5a25f3(0x1dd)]),[(0x0,c[_0x5a25f3(0x1b7)])(_0x3d4bb6)],this['_commandService'],this[_0x5a25f3(0xbd)]);}[_0x1523fc(0x19c)](){return this['_getView']();}[_0x1523fc(0xc8)](){const _0x2bddab=_0x1523fc;return this[_0x2bddab(0x1f0)]()['name'];}[_0x1523fc(0x156)](){const _0x22e100=_0x1523fc;return this['_getView']()[_0x22e100(0x1df)];}[_0x1523fc(0xfa)](_0x34a322){const _0x14a216=_0x1523fc;return this['_commandService'][_0x14a216(0xc2)](c[_0x14a216(0x215)]['id'],{'unitId':this['_base'][_0x14a216(0x1ac)](),'tableId':this[_0x14a216(0x83)]['getId'](),'viewId':this['_viewId'],'name':_0x34a322});}['getConfig'](){const _0x54ef94=_0x1523fc;let _0x2b35d7=this[_0x54ef94(0x156)](),_0x310e1a=this[_0x54ef94(0x1f0)]()[_0x54ef94(0x172)];switch(_0x2b35d7){case l[_0x54ef94(0x175)][_0x54ef94(0x94)]:return _0x310e1a;case l['BaseViewType']['Kanban']:return _0x310e1a;case l[_0x54ef94(0x175)]['Calendar']:return _0x310e1a;case l[_0x54ef94(0x175)][_0x54ef94(0xf3)]:return _0x310e1a;case l[_0x54ef94(0x175)][_0x54ef94(0x12f)]:return _0x310e1a;default:return _0x310e1a;}}['updateConfig'](_0x1b7b07){const _0x3cad75=_0x1523fc;return this['_commandService'][_0x3cad75(0xc2)](c[_0x3cad75(0xb7)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x3cad75(0x83)][_0x3cad75(0x1ac)](),'viewId':this[_0x3cad75(0x1dd)],'patch':_0x1b7b07});}[_0x1523fc(0xf8)](){const _0x15b924=_0x1523fc;var _0x332383;return l['Tools'][_0x15b924(0x19b)](((_0x332383=this[_0x15b924(0x1f0)]()['config'][_0x15b924(0xae)])==null?void 0x0:_0x332383[_0x15b924(0xeb)])??[]);}[_0x1523fc(0x92)](_0x33085a){const _0x287cab=_0x1523fc;return this[_0x287cab(0x16e)][_0x287cab(0xc2)](c[_0x287cab(0x1d9)]['id'],{'unitId':this[_0x287cab(0x1c8)][_0x287cab(0x1ac)](),'tableId':this[_0x287cab(0x83)][_0x287cab(0x1ac)](),'viewId':this[_0x287cab(0x1dd)],'type':c[_0x287cab(0x8e)][_0x287cab(0x19e)],'rules':_0x33085a});}[_0x1523fc(0x1d2)](_0x3014b0){const _0x292a1f=_0x1523fc;return this[_0x292a1f(0x16e)][_0x292a1f(0xc2)](c['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this[_0x292a1f(0x1c8)][_0x292a1f(0x1ac)](),'tableId':this['_table'][_0x292a1f(0x1ac)](),'viewId':this[_0x292a1f(0x1dd)],'type':c[_0x292a1f(0x8e)][_0x292a1f(0x216)],'rule':_0x3014b0});}[_0x1523fc(0xd9)](_0x4b432b){const _0x1237c6=_0x1523fc;return this[_0x1237c6(0x16e)][_0x1237c6(0xc2)](c[_0x1237c6(0x1d9)]['id'],{'unitId':this[_0x1237c6(0x1c8)][_0x1237c6(0x1ac)](),'tableId':this[_0x1237c6(0x83)][_0x1237c6(0x1ac)](),'viewId':this[_0x1237c6(0x1dd)],'type':c['BaseConditionalColorRuleUpdateType'][_0x1237c6(0x75)],'ruleId':_0x4b432b});}[_0x1523fc(0x22a)](){const _0x18ff7e=_0x1523fc;return this[_0x18ff7e(0x16e)][_0x18ff7e(0xc2)](c[_0x18ff7e(0x1d9)]['id'],{'unitId':this[_0x18ff7e(0x1c8)][_0x18ff7e(0x1ac)](),'tableId':this['_table'][_0x18ff7e(0x1ac)](),'viewId':this['_viewId'],'type':c[_0x18ff7e(0x8e)][_0x18ff7e(0x18f)]});}[_0x1523fc(0x10d)](){const _0x11b27e=_0x1523fc;return this[_0x11b27e(0x1f0)]()[_0x11b27e(0x206)]??null;}[_0x1523fc(0x1ca)](_0xc2b5dd){const _0x1fb7b2=_0x1523fc;return this['_commandService'][_0x1fb7b2(0xc2)](c['SetBaseViewFilterCommand']['id'],{'unitId':this[_0x1fb7b2(0x1c8)][_0x1fb7b2(0x1ac)](),'tableId':this[_0x1fb7b2(0x83)][_0x1fb7b2(0x1ac)](),'viewId':this[_0x1fb7b2(0x1dd)],'filter':_0xc2b5dd});}['getSort'](){const _0x469a52=_0x1523fc;return this[_0x469a52(0x1f0)]()['sort']??[];}['setSort'](_0x2295f9){const _0x5110b2=_0x1523fc;return this['_commandService'][_0x5110b2(0xc2)](c[_0x5110b2(0x1ae)]['id'],{'unitId':this[_0x5110b2(0x1c8)][_0x5110b2(0x1ac)](),'tableId':this[_0x5110b2(0x83)][_0x5110b2(0x1ac)](),'viewId':this[_0x5110b2(0x1dd)],'sort':_0x2295f9});}[_0x1523fc(0x11b)](){const _0x21d640=_0x1523fc;return this[_0x21d640(0x1f0)]()['group']??[];}['setGroup'](_0x461ae3){const _0x32e3a3=_0x1523fc;return this[_0x32e3a3(0x16e)][_0x32e3a3(0xc2)](c[_0x32e3a3(0x179)]['id'],{'unitId':this[_0x32e3a3(0x1c8)]['getId'](),'tableId':this[_0x32e3a3(0x83)]['getId'](),'viewId':this[_0x32e3a3(0x1dd)],'group':_0x461ae3});}['getFieldSettings'](_0x4fdf9d){const _0x2cf612=_0x1523fc;var _0x3e2750;return y(this[_0x2cf612(0x83)][_0x2cf612(0xab)]()[_0x2cf612(0x9d)][_0x4fdf9d])?((_0x3e2750=this[_0x2cf612(0x1f0)]()['fieldSettings'])==null?void 0x0:_0x3e2750[_0x4fdf9d])??{}:{};}[_0x1523fc(0x195)](){const _0x4c6b4c=_0x1523fc;let _0xa9ca9d=this[_0x4c6b4c(0x83)][_0x4c6b4c(0xab)](),_0x3091ea=this['_getView']();return(_0x3091ea[_0x4c6b4c(0x103)]??_0xa9ca9d[_0x4c6b4c(0x103)])[_0x4c6b4c(0x206)](_0x2ee0a7=>{const _0x7fd048=_0x4c6b4c;var _0x3ae075;let _0x1fc5e9=_0xa9ca9d[_0x7fd048(0x9d)][_0x2ee0a7];return y(_0x1fc5e9)&&!((_0x3ae075=_0x3091ea[_0x7fd048(0x162)])!=null&&(_0x3ae075=_0x3ae075[_0x2ee0a7])!=null&&_0x3ae075[_0x7fd048(0x89)]);})[_0x4c6b4c(0x217)](_0x1851d6=>this['_injector'][_0x4c6b4c(0x134)](_,this[_0x4c6b4c(0x1c8)],this['_table'],_0x1851d6));}[_0x1523fc(0x9e)](_0x5d58fe,_0x5c9c4e){const _0x3d88c0=_0x1523fc;return y(this[_0x3d88c0(0x83)][_0x3d88c0(0xab)]()[_0x3d88c0(0x9d)][_0x5d58fe])?this[_0x3d88c0(0x16e)][_0x3d88c0(0xc2)](c[_0x3d88c0(0xd7)]['id'],{'unitId':this['_base'][_0x3d88c0(0x1ac)](),'tableId':this[_0x3d88c0(0x83)][_0x3d88c0(0x1ac)](),'viewId':this[_0x3d88c0(0x1dd)],'fieldId':_0x5d58fe,'visible':_0x5c9c4e}):!0x1;}['setFieldWidth'](_0x15c053,_0x326472){const _0x3b032c=_0x1523fc;return y(this['_table'][_0x3b032c(0xab)]()[_0x3b032c(0x9d)][_0x15c053])?this[_0x3b032c(0x16e)]['syncExecuteCommand'](c['SetBaseViewFieldWidthCommand']['id'],{'unitId':this[_0x3b032c(0x1c8)][_0x3b032c(0x1ac)](),'tableId':this['_table'][_0x3b032c(0x1ac)](),'viewId':this[_0x3b032c(0x1dd)],'fieldId':_0x15c053,'width':_0x326472}):!0x1;}[_0x1523fc(0x151)](_0x745f53,_0x2dfae3){const _0x3e7bf2=_0x1523fc;let _0x186307=this['_table']['getTable'](),_0x237245=_0x2dfae3[_0x3e7bf2(0xe3)]??_0x2dfae3[_0x3e7bf2(0x121)];return!y(_0x186307[_0x3e7bf2(0x9d)][_0x745f53])||!_0x237245||!y(_0x186307[_0x3e7bf2(0x9d)][_0x237245])?!0x1:this[_0x3e7bf2(0x16e)][_0x3e7bf2(0xc2)](c[_0x3e7bf2(0x71)]['id'],{'unitId':this[_0x3e7bf2(0x1c8)][_0x3e7bf2(0x1ac)](),'tableId':this[_0x3e7bf2(0x83)][_0x3e7bf2(0x1ac)](),'viewId':this[_0x3e7bf2(0x1dd)],'fieldId':_0x745f53,'target':_0x2dfae3});}['move'](_0x15ca34){const _0x3ac731=_0x1523fc;return this['_commandService'][_0x3ac731(0xc2)](c[_0x3ac731(0x6b)]['id'],{'unitId':this[_0x3ac731(0x1c8)]['getId'](),'tableId':this[_0x3ac731(0x83)][_0x3ac731(0x1ac)](),'viewId':this['_viewId'],'target':_0x15ca34});}[_0x1523fc(0x12e)](){const _0x3ce6d5=_0x1523fc;return this[_0x3ce6d5(0x16e)][_0x3ce6d5(0xc2)](c[_0x3ce6d5(0x98)]['id'],{'unitId':this[_0x3ce6d5(0x1c8)][_0x3ce6d5(0x1ac)](),'tableId':this[_0x3ce6d5(0x83)]['getId'](),'viewId':this[_0x3ce6d5(0x1dd)]});}[_0x1523fc(0x1b5)](){const _0x320da8=_0x1523fc;return this[_0x320da8(0x1ab)]['getProjection'](this[_0x320da8(0x1c8)][_0x320da8(0x1ee)]()['getSnapshot'](),this[_0x320da8(0x83)][_0x320da8(0x1ac)](),this[_0x320da8(0x1dd)]);}[_0x1523fc(0x1f0)](){const _0x43f270=_0x1523fc;let _0x4f8c98=this[_0x43f270(0x83)][_0x43f270(0xab)]()['views'][this[_0x43f270(0x1dd)]];if(!_0x4f8c98)throw Error(_0x43f270(0x1ef)+this[_0x43f270(0x1dd)]+'\x22\x20does\x20not\x20exist.');return _0x4f8c98;}};z=g([h(0x4,l[_0x1523fc(0x112)]),h(0x5,l['IPermissionService']),h(0x6,c[_0x1523fc(0x1e2)])],z);let B=class{constructor(_0x50029e,_0x193174,_0x43a234,_0x28ab5b,_0x2d5297,_0x43d891){const _0xde52ef=_0x1523fc;this[_0xde52ef(0x1c8)]=_0x50029e,this['_tableId']=_0x193174,this['_injector']=_0x43a234,this[_0xde52ef(0x16e)]=_0x28ab5b,this['_permissionService']=_0x2d5297,this[_0xde52ef(0x1ab)]=_0x43d891;}['getBase'](){const _0x260725=_0x1523fc;return this[_0x260725(0x1c8)][_0x260725(0x1ee)]();}[_0x1523fc(0xab)](){const _0x10c147=_0x1523fc;return this[_0x10c147(0xbc)]();}['getId'](){const _0x12bffe=_0x1523fc;return this[_0x12bffe(0xc6)];}[_0x1523fc(0x1e0)](){const _0x2111c2=_0x1523fc;return new m(this[_0x2111c2(0x1ee)]()[_0x2111c2(0xd3)](),(0x0,c[_0x2111c2(0x1b7)])(this['_tableId']),[],this[_0x2111c2(0x16e)],this[_0x2111c2(0xbd)]);}[_0x1523fc(0x1a4)](){const _0x1ad796=_0x1523fc;return(0x0,c[_0x1ad796(0x132)])(this[_0x1ad796(0xbc)]());}[_0x1523fc(0x77)](_0x3c6552){const _0x3a6739=_0x1523fc;return this[_0x3a6739(0x16e)][_0x3a6739(0xc2)](c['SetBaseTableHierarchyFieldCommand']['id'],{'unitId':this[_0x3a6739(0x1c8)][_0x3a6739(0x1ac)](),'tableId':this['_tableId'],'fieldId':_0x3c6552});}['getName'](){const _0x3bb094=_0x1523fc;return this[_0x3bb094(0xbc)]()[_0x3bb094(0x1e3)];}['getFormulaName'](){const _0x34897d=_0x1523fc;let _0x115bb2=this[_0x34897d(0x1c8)][_0x34897d(0x1ee)]()[_0x34897d(0x6a)]();return(0x0,c[_0x34897d(0x20e)])(this[_0x34897d(0xbc)](),_0x115bb2);}[_0x1523fc(0xfa)](_0x4c5822){const _0x1852a6=_0x1523fc;let _0x121909=(0x0,c[_0x1852a6(0x194)])(this[_0x1852a6(0x1c8)][_0x1852a6(0x1ee)]()[_0x1852a6(0x6a)](),_0x4c5822,this[_0x1852a6(0xc6)]);if(!_0x121909['valid'])throw Error(_0x1852a6(0x160)+_0x4c5822+_0x1852a6(0x137)+c[_0x1852a6(0xd0)]+'\x20'+_0x121909[_0x1852a6(0xc0)]);return this[_0x1852a6(0x16e)][_0x1852a6(0xc2)](c[_0x1852a6(0x157)]['id'],{'unitId':this['_base'][_0x1852a6(0x1ac)](),'tableId':this[_0x1852a6(0xc6)],'name':_0x4c5822});}[_0x1523fc(0x12a)](_0xb65bd,_0x5208aa){const _0x19e6ef=_0x1523fc;let _0x4b2c92=this[_0x19e6ef(0x1c8)][_0x19e6ef(0x1ee)]()['getSnapshot'](),_0x659993=this[_0x19e6ef(0xbc)]();if(_0x5208aa){let _0x44d11f=this[_0x19e6ef(0x1ab)][_0x19e6ef(0x1b5)](_0x4b2c92,this[_0x19e6ef(0xc6)],_0x5208aa),_0x210a22=_0x659993[_0x19e6ef(0x21c)][_0x5208aa],_0x11f24a=_0xb65bd[_0x19e6ef(0x1d8)]??J(_0x659993,_0x210a22,_0x44d11f),_0x4180da=_0x19e6ef(0xa6)in _0x44d11f&&Array[_0x19e6ef(0x68)](_0x44d11f[_0x19e6ef(0xa6)])?_0x44d11f[_0x19e6ef(0xa6)]:[];return(0x0,c['searchBaseTable'])({..._0xb65bd,'table':_0x659993,'fieldIds':_0x11f24a,'rows':_0x4180da});}let _0x1e9b32=(_0x659993[_0x19e6ef(0x1f7)]?_0x659993['recordOrder']['map'](_0x3c4fb5=>_0x659993[_0x19e6ef(0x173)][_0x3c4fb5]):Object[_0x19e6ef(0x108)](_0x659993[_0x19e6ef(0x173)])[_0x19e6ef(0xe7)]((_0x318e7a,_0x477835)=>_0x318e7a['orderKey']['localeCompare'](_0x477835[_0x19e6ef(0x192)])))[_0x19e6ef(0x206)](_0x21caf7=>_0x21caf7)[_0x19e6ef(0x217)](_0x1fcc86=>({'recordId':_0x1fcc86['id'],'values':_0x1fcc86[_0x19e6ef(0x108)]})),_0x3236c1=_0xb65bd[_0x19e6ef(0x1d8)]??_0x659993[_0x19e6ef(0x103)][_0x19e6ef(0x206)](_0x46d9c3=>y(_0x659993[_0x19e6ef(0x9d)][_0x46d9c3]));return(0x0,c[_0x19e6ef(0x227)])({..._0xb65bd,'table':_0x659993,'fieldIds':_0x3236c1,'rows':_0x1e9b32});}[_0x1523fc(0x186)](){const _0x2bae0f=_0x1523fc;return this[_0x2bae0f(0xbc)]()[_0x2bae0f(0xd5)];}[_0x1523fc(0x1f5)](){const _0x4c6347=_0x1523fc;let _0x5a584f=this[_0x4c6347(0xbc)]();return _0x5a584f['fieldOrder'][_0x4c6347(0x217)](_0x2dea35=>_0x5a584f['fields'][_0x2dea35])[_0x4c6347(0x206)](y)[_0x4c6347(0x217)](_0x3b1303=>this[_0x4c6347(0x1ea)][_0x4c6347(0x134)](_,this[_0x4c6347(0x1c8)],this,_0x3b1303['id']));}['getFieldById'](_0xbd60d3){const _0x4136ad=_0x1523fc;let _0x402bac=this[_0x4136ad(0xbc)]()[_0x4136ad(0x9d)][_0xbd60d3];return y(_0x402bac)?this['_injector'][_0x4136ad(0x134)](_,this[_0x4136ad(0x1c8)],this,_0x402bac['id']):null;}[_0x1523fc(0xa3)](_0x5bf3bd){const _0x45885e=_0x1523fc;let _0x346429=this[_0x45885e(0xbc)]()[_0x45885e(0x9d)],_0x1017e1=Object[_0x45885e(0x108)](_0x346429)[_0x45885e(0x15f)](_0x32785c=>y(_0x32785c)&&_0x32785c[_0x45885e(0x1e3)]===_0x5bf3bd);return _0x1017e1?this[_0x45885e(0x1ea)][_0x45885e(0x134)](_,this[_0x45885e(0x1c8)],this,_0x1017e1['id']):null;}[_0x1523fc(0x123)](){const _0x353fc6=_0x1523fc;let _0x26a06f=this[_0x353fc6(0xbc)]()[_0x353fc6(0xd5)];return this['_injector'][_0x353fc6(0x134)](_,this['_base'],this,_0x26a06f);}[_0x1523fc(0x223)](_0xd964e5,_0x28f03d,_0x565935){const _0x5a896f=_0x1523fc;var _0x3399e1,_0x5d13f3;if(!Object['values'](l['BaseFieldType'])['some'](_0x4aa85e=>_0x4aa85e===_0x28f03d))throw Error(_0x5a896f(0xca)+String(_0x28f03d)+'\x22.');if(_0x28f03d===l[_0x5a896f(0x200)][_0x5a896f(0x18d)]&&this['_prepareFormulaFieldReferences'](_0xd964e5,_0x565935),_0x28f03d===l[_0x5a896f(0x200)][_0x5a896f(0x20a)]&&(typeof(_0x565935==null||(_0x3399e1=_0x565935[_0x5a896f(0x1ba)])==null||(_0x3399e1=_0x3399e1[_0x5a896f(0x172)])==null?void 0x0:_0x3399e1[_0x5a896f(0x182)])!=_0x5a896f(0x14e)||typeof _0x565935[_0x5a896f(0x1ba)]['config'][_0x5a896f(0x190)]!='boolean'))throw Error(_0x5a896f(0xc3));let _0x5f38c2={..._0x565935==null?void 0x0:_0x565935['field'],'id':(0x0,l[_0x5a896f(0x7c)])(0x6),'name':_0xd964e5,'type':_0x28f03d,'config':(_0x565935==null||(_0x5d13f3=_0x565935[_0x5a896f(0x1ba)])==null?void 0x0:_0x5d13f3[_0x5a896f(0x172)])??{}};if(!this[_0x5a896f(0x16e)][_0x5a896f(0xc2)](c[_0x5a896f(0xe4)]['id'],{'unitId':this[_0x5a896f(0x1c8)]['getId'](),'tableId':this[_0x5a896f(0xc6)],'field':_0x5f38c2,'index':_0x565935==null?void 0x0:_0x565935[_0x5a896f(0xdc)]}))throw Error(_0x5a896f(0x9c)+_0xd964e5+'\x22');return this[_0x5a896f(0x1ea)]['createInstance'](_,this[_0x5a896f(0x1c8)],this,_0x5f38c2['id']);}[_0x1523fc(0xc5)](_0x4bafad,_0x155d8a){const _0x3b7d51=_0x1523fc;var _0x17b5e6;if(!_0x155d8a||!(_0x3b7d51(0x117)in _0x155d8a)||!Array[_0x3b7d51(0x68)](_0x155d8a[_0x3b7d51(0x117)]))throw Error(_0x3b7d51(0x204));let _0x45f93e=this[_0x3b7d51(0x16e)][_0x3b7d51(0xc2)](c[_0x3b7d51(0x1b3)]['id'],{'unitId':this[_0x3b7d51(0x1c8)][_0x3b7d51(0x1ac)](),'tableId':this['_tableId'],'formula':String(((_0x17b5e6=_0x155d8a[_0x3b7d51(0x1ba)])==null||(_0x17b5e6=_0x17b5e6[_0x3b7d51(0x172)])==null?void 0x0:_0x17b5e6[_0x3b7d51(0x86)])??'')});if(!_0x45f93e['valid'])throw Error(_0x45f93e[_0x3b7d51(0xc0)]??_0x3b7d51(0xce));if(_0x155d8a[_0x3b7d51(0x117)][_0x3b7d51(0x224)]>0x0&&!this[_0x3b7d51(0x16e)][_0x3b7d51(0xc2)](f[_0x3b7d51(0x113)]['id'],{'unitId':this[_0x3b7d51(0x1c8)][_0x3b7d51(0x1ac)](),'references':_0x155d8a[_0x3b7d51(0x117)]}))throw Error(_0x3b7d51(0x1b2)+_0x4bafad+'\x22');}['getRecords'](){const _0x3311d8=_0x1523fc;return this[_0x3311d8(0x220)]()[_0x3311d8(0x217)](_0x49dd3e=>this[_0x3311d8(0x1ea)]['createInstance'](I,this[_0x3311d8(0x1c8)],this,_0x49dd3e,this[_0x3311d8(0x1ea)]));}[_0x1523fc(0x118)](_0x33b31e){const _0x292989=_0x1523fc;return this[_0x292989(0xbc)]()[_0x292989(0x173)][_0x33b31e]?this[_0x292989(0x1ea)][_0x292989(0x134)](I,this['_base'],this,_0x33b31e,this[_0x292989(0x1ea)]):null;}['queryRecords'](_0x30e69a={}){const _0x234134=_0x1523fc;let _0x2be947=this[_0x234134(0xbc)](),_0x18a160=this[_0x234134(0x220)](_0x30e69a),_0x539bd1=Math[_0x234134(0x15d)](0x0,_0x30e69a[_0x234134(0xfe)]??0x0),_0x486c99=_0x30e69a['limit']==null?null:Math[_0x234134(0x15d)](0x0,_0x30e69a[_0x234134(0x1e4)]),_0x29ffc6=H(_0x18a160[_0x234134(0x217)](_0x581733=>_0x2be947['records'][_0x581733])[_0x234134(0x206)](_0x3a3201=>W(_0x3a3201,_0x2be947,_0x30e69a[_0x234134(0x206)])),_0x2be947,_0x30e69a[_0x234134(0xe7)]);return{'records':V(_0x29ffc6,_0x30e69a)[_0x234134(0x217)](_0x3519ee=>this[_0x234134(0x1ea)][_0x234134(0x134)](I,this['_base'],this,_0x3519ee['id'],this[_0x234134(0x1ea)])),'total':_0x29ffc6[_0x234134(0x224)],'offset':_0x539bd1,'limit':_0x486c99,'hasMore':_0x486c99!=null&&_0x539bd1+_0x486c99<_0x29ffc6['length']};}[_0x1523fc(0x146)](_0x548496,_0x5d46ac='id',_0xf73f6){const _0x54f3b2=_0x1523fc;let _0x2b7fb8=this[_0x54f3b2(0xbc)](),_0x918804=Date[_0x54f3b2(0x99)](),_0x29eabd={..._0xf73f6,'id':(0x0,l[_0x54f3b2(0x7c)])(0x6),'values':b(_0x2b7fb8,_0x548496,_0x5d46ac),'orderKey':(_0xf73f6==null?void 0x0:_0xf73f6[_0x54f3b2(0x192)])||''+_0x918804,'createdAt':(_0xf73f6==null?void 0x0:_0xf73f6[_0x54f3b2(0x1c2)])||_0x918804,'updatedAt':(_0xf73f6==null?void 0x0:_0xf73f6[_0x54f3b2(0x88)])||_0x918804};if(!this[_0x54f3b2(0x16e)][_0x54f3b2(0xc2)](c['CreateBaseRecordCommand']['id'],{'unitId':this[_0x54f3b2(0x1c8)][_0x54f3b2(0x1ac)](),'tableId':this['_tableId'],'record':_0x29eabd,'source':c['BaseEventSource'][_0x54f3b2(0x11e)]}))throw Error('Failed\x20to\x20add\x20record\x20with\x20id\x20\x22'+_0x29eabd['id']+'\x22');return this[_0x54f3b2(0x1ea)]['createInstance'](I,this[_0x54f3b2(0x1c8)],this,_0x29eabd['id'],this['_injector']);}[_0x1523fc(0x161)](_0x3d69bd){const _0x5b9f2a=_0x1523fc;if(!_0x3d69bd[_0x5b9f2a(0x224)])return[];let _0x52d8bc=this[_0x5b9f2a(0xbc)](),_0x20d249=Date['now'](),_0x1bb366=_0x3d69bd[_0x5b9f2a(0x217)]((_0x22eeb8,_0x2bccf5)=>{const _0x433e12=_0x5b9f2a;var _0x89ab4c,_0x3a0e73,_0x1a489f;return{..._0x22eeb8[_0x433e12(0x1bc)],'id':(0x0,l[_0x433e12(0x7c)])(0x6),'values':b(_0x52d8bc,_0x22eeb8['values'],_0x22eeb8[_0x433e12(0x78)]??'id'),'orderKey':((_0x89ab4c=_0x22eeb8[_0x433e12(0x1bc)])==null?void 0x0:_0x89ab4c['orderKey'])||''+(_0x20d249+_0x2bccf5),'createdAt':((_0x3a0e73=_0x22eeb8[_0x433e12(0x1bc)])==null?void 0x0:_0x3a0e73[_0x433e12(0x1c2)])||_0x20d249,'updatedAt':((_0x1a489f=_0x22eeb8[_0x433e12(0x1bc)])==null?void 0x0:_0x1a489f[_0x433e12(0x88)])||_0x20d249};});if(!this[_0x5b9f2a(0x16e)][_0x5b9f2a(0xc2)](c[_0x5b9f2a(0x6c)]['id'],{'unitId':this[_0x5b9f2a(0x1c8)][_0x5b9f2a(0x1ac)](),'tableId':this[_0x5b9f2a(0xc6)],'records':_0x1bb366,'source':c[_0x5b9f2a(0x17e)]['Facade']}))throw Error(_0x5b9f2a(0x21f));return _0x1bb366[_0x5b9f2a(0x217)](_0xe23aec=>this[_0x5b9f2a(0x1ea)]['createInstance'](I,this[_0x5b9f2a(0x1c8)],this,_0xe23aec['id'],this[_0x5b9f2a(0x1ea)]));}['deleteRecords'](_0x40b04d){const _0x1820d0=_0x1523fc;return!_0x40b04d[_0x1820d0(0x224)]||this[_0x1820d0(0x16e)]['syncExecuteCommand'](c[_0x1820d0(0x16c)]['id'],{'unitId':this[_0x1820d0(0x1c8)][_0x1820d0(0x1ac)](),'tableId':this[_0x1820d0(0xc6)],'recordIds':_0x40b04d,'source':c[_0x1820d0(0x17e)][_0x1820d0(0x11e)]});}[_0x1523fc(0x20d)](_0x15267a,_0x43b864,_0x42ee3d=0x1,_0x1545e4=0x1){const _0x56f250=_0x1523fc;return this['_injector'][_0x56f250(0x134)](A,this['_base'],this,{'startRow':_0x15267a,'endRow':_0x15267a+_0x42ee3d-0x1,'startColumn':_0x43b864,'endColumn':_0x43b864+_0x1545e4-0x1},this[_0x56f250(0x1ea)]);}[_0x1523fc(0x213)](){const _0x4836b0=_0x1523fc;var _0x59dccf;let _0x1ac697=(0x0,c[_0x4836b0(0x81)])(this[_0x4836b0(0xbc)]()),_0x4ad0c9=((_0x59dccf=_0x1ac697[_0x4836b0(0x1f7)])==null?void 0x0:_0x59dccf[_0x4836b0(0x224)])??0x0,_0x3f743a=_0x1ac697[_0x4836b0(0x103)][_0x4836b0(0x206)](_0xe72e91=>y(_0x1ac697[_0x4836b0(0x9d)][_0xe72e91]))[_0x4836b0(0x224)];return this[_0x4836b0(0x20d)](0x0,0x0,Math[_0x4836b0(0x15d)](_0x4ad0c9,0x1),Math[_0x4836b0(0x15d)](_0x3f743a,0x1));}[_0x1523fc(0x1b6)](){const _0x4cec39=_0x1523fc;let _0x124418=this[_0x4cec39(0xbc)]();return _0x124418[_0x4cec39(0x1a1)]['filter'](_0x5b08e3=>_0x124418[_0x4cec39(0x21c)][_0x5b08e3])[_0x4cec39(0x217)](_0x8a5a9e=>this[_0x4cec39(0x1ea)][_0x4cec39(0x134)](z,this[_0x4cec39(0x1c8)],this,_0x8a5a9e,this[_0x4cec39(0x1ea)]));}[_0x1523fc(0xdd)](_0x28aa17){const _0x20fca7=_0x1523fc;return this['_getTable']()['views'][_0x28aa17]?this[_0x20fca7(0x1ea)][_0x20fca7(0x134)](z,this[_0x20fca7(0x1c8)],this,_0x28aa17,this['_injector']):null;}[_0x1523fc(0xf0)](_0x32f470){const _0x28b971=_0x1523fc;let _0x17073b=this['_getTable'](),_0x589e92=Object['values'](_0x17073b[_0x28b971(0x21c)])[_0x28b971(0x15f)](_0x15c57d=>_0x15c57d[_0x28b971(0x1e3)]===_0x32f470);return _0x589e92?this[_0x28b971(0x1ea)][_0x28b971(0x134)](z,this[_0x28b971(0x1c8)],this,_0x589e92['id'],this[_0x28b971(0x1ea)]):null;}[_0x1523fc(0x1e7)](_0x299df6,_0x4c6a8d,_0x65e94b){const _0x53c156=_0x1523fc;var _0x4a8143,_0x4bc44c,_0x470b1a,_0x16831c;let _0xff932c=this[_0x53c156(0xbc)](),_0x42f7f8=[l[_0x53c156(0x207)],...((_0x65e94b==null||(_0x4a8143=_0x65e94b['view'])==null?void 0x0:_0x4a8143[_0x53c156(0x103)])??_0xff932c[_0x53c156(0x103)])['filter'](_0x454962=>y(_0xff932c[_0x53c156(0x9d)][_0x454962]))],_0x473dac={..._0x65e94b==null?void 0x0:_0x65e94b[_0x53c156(0xcf)],'id':(0x0,l[_0x53c156(0x7c)])(0x6),'name':_0x299df6,'type':_0x4c6a8d,'tableId':this[_0x53c156(0xc6)],'config':(_0x65e94b==null||(_0x4bc44c=_0x65e94b[_0x53c156(0xcf)])==null?void 0x0:_0x4bc44c[_0x53c156(0x172)])??{},'fieldOrder':_0x42f7f8,'fieldSettings':{..._0x65e94b==null||(_0x470b1a=_0x65e94b['view'])==null?void 0x0:_0x470b1a[_0x53c156(0x162)],[l['BASE_RECORD_ID_FIELD_ID']]:{..._0x65e94b==null||(_0x16831c=_0x65e94b[_0x53c156(0xcf)])==null||(_0x16831c=_0x16831c['fieldSettings'])==null?void 0x0:_0x16831c[l[_0x53c156(0x207)]],'hidden':!0x0}}};if(!this[_0x53c156(0x16e)]['syncExecuteCommand'](c[_0x53c156(0x115)]['id'],{'unitId':this[_0x53c156(0x1c8)][_0x53c156(0x1ac)](),'tableId':this[_0x53c156(0xc6)],'view':_0x473dac,'index':_0x65e94b==null?void 0x0:_0x65e94b[_0x53c156(0xdc)]}))throw Error(_0x53c156(0xbb)+_0x299df6+'\x22');return this[_0x53c156(0x1ea)][_0x53c156(0x134)](z,this[_0x53c156(0x1c8)],this,_0x473dac['id'],this[_0x53c156(0x1ea)]);}[_0x1523fc(0xed)](){const _0x27655e=_0x1523fc;let _0x1cdede=this['_getTable'](),_0x1a1d05=_0x1cdede['fieldOrder']['filter'](_0xed2c40=>y(_0x1cdede[_0x27655e(0x9d)][_0xed2c40])),_0x25c171=_0x1cdede['viewOrder'][_0x27655e(0x206)](_0x37647f=>_0x1cdede[_0x27655e(0x21c)][_0x37647f]);return{'id':_0x1cdede['id'],'name':_0x1cdede[_0x27655e(0x1e3)],'formulaName':this['getFormulaName'](),'primaryFieldId':_0x1cdede[_0x27655e(0xd5)],'fieldIds':_0x1a1d05,'viewIds':_0x25c171,'recordCount':this[_0x27655e(0x220)]()[_0x27655e(0x224)],'fields':_0x1a1d05[_0x27655e(0x217)](_0xa15dd4=>{const _0x2b17c3=_0x27655e;let _0xf3664e=_0x1cdede[_0x2b17c3(0x9d)][_0xa15dd4];return{'id':_0xf3664e['id'],'name':_0xf3664e['name'],'type':_0xf3664e[_0x2b17c3(0x1df)],'config':_0xf3664e[_0x2b17c3(0x172)],'readonly':_0xf3664e[_0x2b17c3(0x20c)],'description':_0xf3664e[_0x2b17c3(0x17f)]};}),'views':_0x25c171[_0x27655e(0x217)](_0xebed79=>{const _0x5cac36=_0x27655e;let _0x498fc2=_0x1cdede[_0x5cac36(0x21c)][_0xebed79];return{'id':_0x498fc2['id'],'name':_0x498fc2['name'],'type':_0x498fc2[_0x5cac36(0x1df)]};})};}[_0x1523fc(0xbc)](){const _0x112699=_0x1523fc;let _0x3b2046=this[_0x112699(0x1c8)][_0x112699(0x1ee)]()['getSnapshot']()[_0x112699(0x17b)][this[_0x112699(0xc6)]];if(!_0x3b2046)throw Error(_0x112699(0x1d1)+this[_0x112699(0xc6)]+_0x112699(0xb1));return _0x3b2046;}[_0x1523fc(0x220)](_0x26b06a={}){const _0x1cc7e5=_0x1523fc;let _0x165b30=this[_0x1cc7e5(0x1c8)][_0x1cc7e5(0x1ee)]()[_0x1cc7e5(0x6a)](),_0x49ed2f=this[_0x1cc7e5(0xbc)]();if(_0x26b06a[_0x1cc7e5(0xbf)]){let _0x37d2aa=this['_projectionService']['getProjection'](_0x165b30,this[_0x1cc7e5(0xc6)],_0x26b06a[_0x1cc7e5(0xbf)]);if(_0x1cc7e5(0xa6)in _0x37d2aa&&Array[_0x1cc7e5(0x68)](_0x37d2aa[_0x1cc7e5(0xa6)]))return _0x37d2aa[_0x1cc7e5(0xa6)][_0x1cc7e5(0x217)](_0x59241b=>_0x59241b[_0x1cc7e5(0x154)]);}return(_0x49ed2f['recordOrder']?_0x49ed2f[_0x1cc7e5(0x1f7)][_0x1cc7e5(0x217)](_0x25bebe=>_0x49ed2f[_0x1cc7e5(0x173)][_0x25bebe]):Object[_0x1cc7e5(0x108)](_0x49ed2f['records'])[_0x1cc7e5(0xe7)]((_0x4bad77,_0x5c2b13)=>_0x4bad77['orderKey'][_0x1cc7e5(0xaf)](_0x5c2b13[_0x1cc7e5(0x192)])))[_0x1cc7e5(0x206)](_0x3f2c6d=>_0x3f2c6d)['map'](_0x2c088f=>_0x2c088f['id']);}};B=g([h(0x3,l[_0x1523fc(0x112)]),h(0x4,l[_0x1523fc(0x125)]),h(0x5,c[_0x1523fc(0x1e2)])],B);function _0x474f(_0x20aa7f,_0x338cfc){_0x20aa7f=_0x20aa7f-0x64;const _0x10b03a=_0x10b0();let _0x474f42=_0x10b03a[_0x20aa7f];return _0x474f42;}function V(_0x3d3cff,_0xb0605c){const _0x5001ca=_0x1523fc;let _0xd9fc29=Math[_0x5001ca(0x15d)](0x0,_0xb0605c[_0x5001ca(0xfe)]??0x0);return _0xb0605c['limit']==null?_0x3d3cff[_0x5001ca(0x128)](_0xd9fc29):_0x3d3cff[_0x5001ca(0x128)](_0xd9fc29,_0xd9fc29+Math[_0x5001ca(0x15d)](0x0,_0xb0605c[_0x5001ca(0x1e4)]));}function H(_0x6889ed,_0x433c8a,_0x334897=[]){const _0x2473a3=_0x1523fc;return _0x334897[_0x2473a3(0x224)]?[..._0x6889ed][_0x2473a3(0xe7)]((_0x4b5f79,_0x5e848d)=>{const _0x136d3d=_0x2473a3;for(let _0x4212f3 of _0x334897){var _0x14594f;let _0x4ac6c8=_0x4212f3['direction']===l[_0x136d3d(0x6f)][_0x136d3d(0x15e)]?-0x1:0x1,_0x37da05=U(_0x4b5f79[_0x136d3d(0x108)][_0x4212f3[_0x136d3d(0x1a8)]],_0x5e848d[_0x136d3d(0x108)][_0x4212f3[_0x136d3d(0x1a8)]],(_0x14594f=_0x433c8a['fields'][_0x4212f3[_0x136d3d(0x1a8)]])==null?void 0x0:_0x14594f[_0x136d3d(0x1df)]);if(_0x37da05!==0x0)return _0x37da05*_0x4ac6c8;}return String(_0x4b5f79[_0x136d3d(0x192)]??_0x4b5f79['id'])['localeCompare'](String(_0x5e848d[_0x136d3d(0x192)]??_0x5e848d['id']));}):_0x6889ed;}function U(_0x3129a3,_0x4928c4,_0x4fe9f6){const _0x5133d7=_0x1523fc;return _0x3129a3==null&&_0x4928c4==null?0x0:_0x3129a3==null?-0x1:_0x4928c4==null?0x1:typeof _0x3129a3=='number'&&typeof _0x4928c4==_0x5133d7(0x1f9)?_0x3129a3-_0x4928c4:_0x4fe9f6===l['BaseFieldType'][_0x5133d7(0x82)]?Number(_0x3129a3)-Number(_0x4928c4):String(_0x3129a3)['localeCompare'](String(_0x4928c4));}function W(_0x329fa5,_0x1e7f5d,_0x2dd4f1){const _0x1c3621=_0x1523fc;var _0x59bba8;if(!_0x2dd4f1||!((_0x59bba8=_0x2dd4f1[_0x1c3621(0x1c5)])!=null&&_0x59bba8[_0x1c3621(0x224)]))return!0x0;let {conjunction:_0x154bff=l[_0x1c3621(0x19a)]['OR'],conditions:_0x211d13}=_0x2dd4f1;return _0x154bff===l[_0x1c3621(0x19a)]['AND']&&_0x211d13['length']>0x1?_0x211d13[_0x1c3621(0x1a9)](_0x2a5b4b=>G(_0x329fa5,_0x1e7f5d,_0x2a5b4b)):_0x211d13['some'](_0x2f86dd=>G(_0x329fa5,_0x1e7f5d,_0x2f86dd));}function G(_0x5223fb,_0x32ba89,_0x5838fc){const _0x2cd691=_0x1523fc;let _0x49d730=_0x5223fb[_0x2cd691(0x108)][_0x5838fc[_0x2cd691(0x1a8)]],_0x186195=_0x32ba89[_0x2cd691(0x9d)][_0x5838fc['fieldId']];if(K(_0x5838fc)){let _0x2d1623=q(_0x5838fc)[_0x2cd691(0x97)](String(_0x49d730??''));return _0x5838fc[_0x2cd691(0xb4)]===_0x2cd691(0x148)?_0x2d1623:!_0x2d1623;}return!_0x186195||(0x0,c[_0x2cd691(0x110)])(_0x49d730,_0x5838fc['operator'],_0x5838fc[_0x2cd691(0x1b0)],_0x186195);}function K(_0x2316ed){const _0x597ef4=_0x1523fc;return _0x2316ed['operator']===_0x597ef4(0x148)||_0x2316ed[_0x597ef4(0xb4)]==='notMatches';}function q(_0x99df85){const _0x404f78=_0x1523fc;let _0x219268=String(_0x99df85[_0x404f78(0x1b0)]??'');if(_0x219268[_0x404f78(0x224)]>0x200)throw Error(_0x404f78(0xef));try{return new RegExp(_0x219268,_0x99df85[_0x404f78(0xd4)]?void 0x0:'i');}catch(_0x209187){throw Error(_0x404f78(0x166)+_0x219268+'.\x20'+(_0x209187 instanceof Error?_0x209187[_0x404f78(0x187)]:String(_0x209187)));}}function J(_0x36fbc3,_0x5a1209,_0x325ada){const _0x431d6b=_0x1523fc;if(_0x325ada[_0x431d6b(0x1df)]!==_0x431d6b(0x16f)&&_0x325ada['type']!==_0x431d6b(0x1a6)){var _0x2a1c5b;if(_0x325ada[_0x431d6b(0x1df)]===l[_0x431d6b(0x175)][_0x431d6b(0x15c)]){var _0x5a936c;let _0x52efa7=[((_0x5a936c=_0x325ada[_0x431d6b(0x9d)])==null||(_0x5a936c=_0x5a936c[0x0])==null?void 0x0:_0x5a936c['id'])??_0x36fbc3['primaryFieldId'],..._0x325ada[_0x431d6b(0x1b4)]??[]];return Array[_0x431d6b(0x138)](new Set(_0x52efa7[_0x431d6b(0x206)](_0x4ed188=>!!_0x36fbc3[_0x431d6b(0x9d)][_0x4ed188])));}if((_0x2a1c5b=_0x325ada[_0x431d6b(0x9d)])!=null&&_0x2a1c5b[_0x431d6b(0x224)])return _0x325ada[_0x431d6b(0x9d)][_0x431d6b(0x217)](_0x1cf5cb=>_0x1cf5cb['id'])[_0x431d6b(0x206)](_0x1f49d1=>{const _0x1a40e5=_0x431d6b;var _0x119a7a;return!!(_0x36fbc3['fields'][_0x1f49d1]&&!(_0x5a1209!=null&&(_0x119a7a=_0x5a1209[_0x1a40e5(0x162)])!=null&&(_0x119a7a=_0x119a7a[_0x1f49d1])!=null&&_0x119a7a['hidden']));});}return _0x36fbc3[_0x431d6b(0x103)][_0x431d6b(0x206)](_0x5c8156=>{const _0x1a1edf=_0x431d6b;var _0x658440;return!!(_0x36fbc3[_0x1a1edf(0x9d)][_0x5c8156]&&!(_0x5a1209!=null&&(_0x658440=_0x5a1209[_0x1a1edf(0x162)])!=null&&(_0x658440=_0x658440[_0x5c8156])!=null&&_0x658440['hidden']));});}let Y=class extends u[_0x1523fc(0x16b)]{constructor(_0x5b55ec,_0x1ade0f,_0x38d5cd,_0x5b3b9f,_0x44673a){const _0x37302f=_0x1523fc;super(),this[_0x37302f(0x1c8)]=_0x5b55ec,this['_injector']=_0x1ade0f,this[_0x37302f(0x1f8)]=_0x38d5cd,this['_commandService']=_0x5b3b9f,this[_0x37302f(0xbd)]=_0x44673a;}[_0x1523fc(0x1ee)](){const _0xf973a2=_0x1523fc;return this[_0xf973a2(0x1c8)];}[_0x1523fc(0x1ac)](){const _0x54c41e=_0x1523fc;return this['_base'][_0x54c41e(0xd3)]();}[_0x1523fc(0x1e0)](){const _0x2b154d=_0x1523fc;return new p(this[_0x2b154d(0x1ac)](),this[_0x2b154d(0x16e)],this[_0x2b154d(0xbd)]);}[_0x1523fc(0xfd)](){const _0x3cb910=_0x1523fc;return this[_0x3cb910(0x1f8)][_0x3cb910(0x1e9)](this[_0x3cb910(0x1ac)]())??l[_0x3cb910(0x96)]['deepClone'](this[_0x3cb910(0x1c8)]['getSnapshot']());}['getName'](){const _0x356a53=_0x1523fc;return this[_0x356a53(0x1c8)]['getSnapshot']()[_0x356a53(0x1e3)];}['setName'](_0x409514){const _0x15a465=_0x1523fc;this[_0x15a465(0x16e)][_0x15a465(0xc2)](c[_0x15a465(0xda)]['id'],{'unitId':this['getId'](),'name':_0x409514});}[_0x1523fc(0x100)](){const _0x546118=_0x1523fc;let _0x2c799a=this[_0x546118(0x1c8)][_0x546118(0x6a)]();return _0x2c799a[_0x546118(0x21a)]['map'](_0x297bff=>_0x2c799a[_0x546118(0x17b)][_0x297bff])[_0x546118(0x206)](_0x3a04f1=>_0x3a04f1)[_0x546118(0x217)](_0x30df08=>this[_0x546118(0x1ea)][_0x546118(0x134)](B,this,_0x30df08['id'],this[_0x546118(0x1ea)]));}[_0x1523fc(0x211)](_0x45e098){const _0xaf30ce=_0x1523fc;let _0x552df2=this[_0xaf30ce(0x1c8)]['getSnapshot']()[_0xaf30ce(0x17b)][_0x45e098];return _0x552df2?this[_0xaf30ce(0x1ea)]['createInstance'](B,this,_0x552df2['id'],this[_0xaf30ce(0x1ea)]):null;}[_0x1523fc(0x1e8)](_0x343119){const _0x54714e=_0x1523fc;let _0x1a1138=this[_0x54714e(0x1c8)][_0x54714e(0x6a)](),_0x4ddec5=Object['values'](_0x1a1138[_0x54714e(0x17b)])['find'](_0x3674d4=>_0x3674d4[_0x54714e(0x1e3)]===_0x343119);return _0x4ddec5?this[_0x54714e(0x1ea)]['createInstance'](B,this,_0x4ddec5['id'],this[_0x54714e(0x1ea)]):null;}[_0x1523fc(0x180)](_0x3654a5,_0x4966ab){const _0x244b55=_0x1523fc;let _0x281f2f=(0x0,l['createDefaultBaseTableSnapshot'])({'id':(0x0,l[_0x244b55(0x7c)])(),'name':_0x3654a5,..._0x4966ab==null?void 0x0:_0x4966ab[_0x244b55(0x65)],'primaryFieldName':_0x4966ab==null?void 0x0:_0x4966ab[_0x244b55(0x212)]}),_0x1bde95=l[_0x244b55(0x96)]['commonExtend'](_0x281f2f,(_0x4966ab==null?void 0x0:_0x4966ab['table'])??{}),_0x74bff4=(0x0,c[_0x244b55(0x194)])(this['_base']['getSnapshot'](),_0x1bde95[_0x244b55(0x1e3)]);if(!_0x74bff4[_0x244b55(0x79)])throw Error(_0x244b55(0x1d4)+_0x1bde95[_0x244b55(0x1e3)]+'\x22.\x20'+c[_0x244b55(0xd0)]+'\x20'+_0x74bff4[_0x244b55(0xc0)]);if(!this[_0x244b55(0x16e)][_0x244b55(0xc2)](c[_0x244b55(0x9f)]['id'],{'unitId':this[_0x244b55(0x1c8)][_0x244b55(0xd3)](),'table':_0x1bde95,'index':_0x4966ab==null?void 0x0:_0x4966ab[_0x244b55(0xdc)]}))throw Error(_0x244b55(0xdb)+_0x3654a5+'\x22.');return this[_0x244b55(0x1ea)][_0x244b55(0x134)](B,this,_0x1bde95['id'],this['_injector']);}[_0x1523fc(0x1d3)](_0x2e2979){const _0xc2ccc8=_0x1523fc;let _0x5307eb=typeof _0x2e2979==_0xc2ccc8(0x14e)?_0x2e2979:_0x2e2979[_0xc2ccc8(0x1ac)]();if(!this['_commandService'][_0xc2ccc8(0xc2)](c[_0xc2ccc8(0x159)]['id'],{'unitId':this['_base'][_0xc2ccc8(0xd3)](),'tableId':_0x5307eb}))throw Error(_0xc2ccc8(0x155)+_0x5307eb+'\x22.');return!0x0;}[_0x1523fc(0x143)](_0x375341,_0x2b209d){const _0x152736=_0x1523fc;let _0x4fee5d=this[_0x152736(0x1c8)][_0x152736(0x6a)](),_0x3317ea=typeof _0x375341==_0x152736(0x14e)?_0x375341:_0x375341[_0x152736(0x1ac)](),_0x514b70=_0x4fee5d['tables'][_0x3317ea];if(!_0x514b70)throw Error(_0x152736(0xf5)+_0x3317ea+_0x152736(0xb1));let _0x15e96a=_0x4fee5d['tableOrder'][_0x152736(0x1bf)](_0x3317ea)+0x1,_0x39a840=(0x0,c[_0x152736(0x19f)])(_0x514b70,{'id':(0x0,l['generateRandomId'])(),'name':(0x0,c['createUniqueBaseTableName'])(_0x4fee5d,_0x514b70[_0x152736(0x1e3)]+_0x152736(0x109)),'includeRecords':(_0x2b209d==null?void 0x0:_0x2b209d[_0x152736(0x1f4)])??!0x1,'regenerateViewIds':(_0x2b209d==null?void 0x0:_0x2b209d[_0x152736(0xb3)])??!0x1});if(!this[_0x152736(0x16e)][_0x152736(0xc2)](c[_0x152736(0x9f)]['id'],{'unitId':this['_base'][_0x152736(0xd3)](),'table':_0x39a840,'index':_0x15e96a}))throw Error('Failed\x20to\x20duplicate\x20table\x20\x22'+_0x3317ea+'\x22.');return this[_0x152736(0x1ea)][_0x152736(0x134)](B,this,_0x39a840['id'],this[_0x152736(0x1ea)]);}['getSchema'](){const _0x212798=_0x1523fc;let _0x25a1f6=this[_0x212798(0x1c8)][_0x212798(0x6a)]();return{'id':_0x25a1f6['id'],'name':_0x25a1f6[_0x212798(0x1e3)],'tables':this[_0x212798(0x100)]()['map'](_0x47a1fa=>_0x47a1fa['getSchema']())};}};Y=g([h(0x1,(0x0,l[_0x1523fc(0x1c7)])(l[_0x1523fc(0x1eb)])),h(0x2,l[_0x1523fc(0x1ed)]),h(0x3,l['ICommandService']),h(0x4,l[_0x1523fc(0x125)])],Y);var X=class extends u['FUniver']{[_0x1523fc(0xa7)](){this['_initBaseBeforeEvents'](),this['_initBaseAfterEvents']();}[_0x1523fc(0x197)](_0x3f756e={},_0x3bdb38){const _0xaa75b4=_0x1523fc;let _0x6ad822=this['_univerInstanceService'][_0xaa75b4(0x1de)](l[_0xaa75b4(0x1f3)]['UNIVER_BASE'],_0x3f756e,_0x3bdb38);return this[_0xaa75b4(0x1ea)][_0xaa75b4(0x134)](Y,_0x6ad822);}[_0x1523fc(0xb6)](){const _0x195608=_0x1523fc;let _0x45ea49=this['_univerInstanceService']['getCurrentUnitOfType'](l[_0x195608(0x1f3)][_0x195608(0xd6)]);return _0x45ea49?this[_0x195608(0x1ea)][_0x195608(0x134)](Y,_0x45ea49):null;}['getBase'](_0x32cd19){const _0x2715ca=_0x1523fc;let _0x279e64=this[_0x2715ca(0x153)][_0x2715ca(0x14f)](_0x32cd19,l[_0x2715ca(0x1f3)][_0x2715ca(0xd6)]);return _0x279e64?this[_0x2715ca(0x1ea)][_0x2715ca(0x134)](Y,_0x279e64):null;}['getBases'](){const _0x14dabb=_0x1523fc;return this[_0x14dabb(0x153)][_0x14dabb(0xe0)](l[_0x14dabb(0x1f3)][_0x14dabb(0xd6)])[_0x14dabb(0x217)](_0x212db3=>this[_0x14dabb(0x1ea)]['createInstance'](Y,_0x212db3));}[_0x1523fc(0x171)](){const _0x7617cd=_0x1523fc;this[_0x7617cd(0x1cd)](this[_0x7617cd(0xcd)](this[_0x7617cd(0xa0)][_0x7617cd(0xb2)],()=>this[_0x7617cd(0x16e)][_0x7617cd(0x1c4)]((_0x193d7e,_0x4935f8)=>{const _0x16eee5=_0x7617cd;var _0x496e1a;if(!Z(_0x193d7e,c[_0x16eee5(0x18e)]))return;let _0x3db2cb=_0x193d7e[_0x16eee5(0x183)];if(!((_0x496e1a=_0x3db2cb[_0x16eee5(0x1fc)])!=null&&_0x496e1a[_0x16eee5(0x224)]))return;let _0x4b0668=this[_0x16eee5(0x1ee)](_0x3db2cb['unitId']),_0x49b7f5=_0x4b0668==null?void 0x0:_0x4b0668['getTableById'](_0x3db2cb[_0x16eee5(0x1fc)][0x0][_0x16eee5(0x1cf)]);if(!_0x4b0668||!_0x49b7f5)return;let _0x2c31d0={'base':_0x4b0668,'table':_0x49b7f5,'changes':_0x3db2cb[_0x16eee5(0x1fc)],'source':_0x4935f8!=null&&_0x4935f8[_0x16eee5(0xc7)]?c[_0x16eee5(0x17e)][_0x16eee5(0x219)]:_0x3db2cb[_0x16eee5(0xf4)]??c[_0x16eee5(0x17e)]['UI']};this[_0x16eee5(0xc4)](this[_0x16eee5(0xa0)]['BaseHierarchyChanged'],_0x2c31d0);}))),this['disposeWithMe'](this[_0x7617cd(0xcd)](this['Event'][_0x7617cd(0xa4)],()=>this[_0x7617cd(0x16e)][_0x7617cd(0x1c4)](_0x332e93=>{const _0x4ab109=_0x7617cd;if(_0x332e93['id']!==c[_0x4ab109(0x9f)]['id'])return;let {unitId:_0x4d8811,table:_0xed0948,index:_0x53cbed}=_0x332e93['params'],_0x6ace8=this[_0x4ab109(0x1ee)](_0x4d8811);if(!_0x6ace8)return;let _0x452f26={'base':_0x6ace8,'table':_0xed0948,'index':_0x53cbed};this[_0x4ab109(0xc4)](this['Event'][_0x4ab109(0xa4)],_0x452f26);}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x7617cd(0xa0)][_0x7617cd(0x1c0)],()=>this[_0x7617cd(0x16e)]['onCommandExecuted'](_0x3190b8=>{const _0x266fdf=_0x7617cd;if(_0x3190b8['id']!==c[_0x266fdf(0xe4)]['id'])return;let {unitId:_0x4b9a01,tableId:_0x1e0c4b,field:_0x283801,index:_0x247620,viewIndexes:_0x144407}=_0x3190b8[_0x266fdf(0x183)],_0x232390=this['getBase'](_0x4b9a01);if(!_0x232390)return;let _0x1aad89=_0x232390['getTableById'](_0x1e0c4b);if(!_0x1aad89)return;let _0xafed25={'base':_0x232390,'table':_0x1aad89,'field':_0x283801,'index':_0x247620,'viewIndexes':_0x144407};this[_0x266fdf(0xc4)](this[_0x266fdf(0xa0)][_0x266fdf(0x1c0)],_0xafed25);}))),this[_0x7617cd(0x1cd)](this[_0x7617cd(0xcd)](this[_0x7617cd(0xa0)][_0x7617cd(0x13d)],()=>this[_0x7617cd(0x16e)][_0x7617cd(0x1c4)](_0x543cc3=>{const _0x3cf995=_0x7617cd;if(_0x543cc3['id']!==c['CreateBaseRecordCommand']['id']&&_0x543cc3['id']!==c[_0x3cf995(0x6c)]['id'])return;let _0x170752=_0x543cc3[_0x3cf995(0x183)],{unitId:_0x1d8fe7,tableId:_0x28a04c}=_0x170752,_0x5d4cf1=_0x170752['records']??[_0x170752[_0x3cf995(0x1bc)]],_0x1a1641=this[_0x3cf995(0x1ee)](_0x1d8fe7);if(!_0x1a1641)return;let _0x423940=_0x1a1641[_0x3cf995(0x211)](_0x28a04c);if(!_0x423940)return;let _0x129bac={'base':_0x1a1641,'table':_0x423940,'records':_0x5d4cf1};this[_0x3cf995(0xc4)](this[_0x3cf995(0xa0)][_0x3cf995(0x13d)],_0x129bac);}))),this[_0x7617cd(0x1cd)](this[_0x7617cd(0xcd)](this[_0x7617cd(0xa0)][_0x7617cd(0x76)],()=>this[_0x7617cd(0x16e)][_0x7617cd(0x1c4)](_0x35e916=>{const _0x59b31e=_0x7617cd;if(_0x35e916['id']!==c[_0x59b31e(0x115)]['id'])return;let {unitId:_0x1eee38,tableId:_0x10a5e8,view:_0x4b249e,index:_0x44b07f}=_0x35e916[_0x59b31e(0x183)],_0x2b1533=this[_0x59b31e(0x1ee)](_0x1eee38);if(!_0x2b1533)return;let _0x317ee=_0x2b1533['getTableById'](_0x10a5e8);if(!_0x317ee)return;let _0x12e7ac={'base':_0x2b1533,'table':_0x317ee,'view':_0x4b249e,'index':_0x44b07f};this['fireEvent'](this[_0x59b31e(0xa0)][_0x59b31e(0x76)],_0x12e7ac);}))),this[_0x7617cd(0x1cd)](this[_0x7617cd(0xcd)](this[_0x7617cd(0xa0)]['BaseTableCellValueChanged'],()=>this[_0x7617cd(0x16e)][_0x7617cd(0x1c4)](_0x4ebfe4=>{const _0x5c6578=_0x7617cd;if(_0x4ebfe4['id']!==c['UpdateBaseCellCommand']['id'])return;let {unitId:_0x5aadf4,tableId:_0x2d5b70,recordId:_0x304421,fieldId:_0x1003a6,value:_0x27aae7}=_0x4ebfe4[_0x5c6578(0x183)],_0x5a9a45=this[_0x5c6578(0x1ee)](_0x5aadf4);if(!_0x5a9a45)return;let _0x313b31=_0x5a9a45[_0x5c6578(0x211)](_0x2d5b70);if(!_0x313b31)return;let _0x25d091=_0x313b31[_0x5c6578(0xd1)](_0x1003a6);if(!_0x25d091)return;let _0xee9bd=_0x313b31['getRecordById'](_0x304421);if(!_0xee9bd)return;let _0x70e1ee={'base':_0x5a9a45,'table':_0x313b31,'field':_0x25d091,'record':_0xee9bd,'value':_0x27aae7};this[_0x5c6578(0xc4)](this['Event']['BaseTableCellValueChanged'],_0x70e1ee);})));}[_0x1523fc(0xaa)](){const _0x24f8a2=_0x1523fc;this['disposeWithMe'](this[_0x24f8a2(0xcd)](this[_0x24f8a2(0xa0)][_0x24f8a2(0x202)],()=>this[_0x24f8a2(0x16e)]['beforeCommandExecuted'](_0x209556=>{const _0x3eb8cc=_0x24f8a2;if(Z(_0x209556,c['SetBaseRecordValuesCommand'])){let {unitId:_0x27abc9,tableId:_0x46be5b,patches:_0x3b50d1,source:_0x33ba1e=c[_0x3eb8cc(0x17e)]['UI']}=_0x209556[_0x3eb8cc(0x183)],_0x361a87=this[_0x3eb8cc(0x111)](_0x27abc9,_0x46be5b);if(!_0x361a87)return;this['_fireBeforeHierarchyChange'](_0x361a87['base'],_0x361a87[_0x3eb8cc(0x65)],(0x0,c['validateBaseHierarchyRecordPatches'])(_0x361a87[_0x3eb8cc(0x65)][_0x3eb8cc(0xab)](),_0x3b50d1),_0x33ba1e);return;}if(Z(_0x209556,c[_0x3eb8cc(0x13e)])){let {unitId:_0x734f18,tableId:_0x5f1010,patches:_0x286343,source:_0x4898c4=c['BaseEventSource']['UI']}=_0x209556[_0x3eb8cc(0x183)],_0x2656cd=this[_0x3eb8cc(0x111)](_0x734f18,_0x5f1010);if(!_0x2656cd)return;let _0x14e35d=_0x2656cd[_0x3eb8cc(0x65)][_0x3eb8cc(0xab)]();this[_0x3eb8cc(0x120)](_0x2656cd[_0x3eb8cc(0x1a3)],_0x2656cd[_0x3eb8cc(0x65)],(0x0,c[_0x3eb8cc(0x6e)])(_0x14e35d,(0x0,c[_0x3eb8cc(0xea)])(_0x14e35d,_0x286343)),_0x4898c4);return;}if(Z(_0x209556,c[_0x3eb8cc(0x177)])){let _0x1c915c=_0x209556[_0x3eb8cc(0x183)],_0x1ea162=this[_0x3eb8cc(0x111)](_0x1c915c[_0x3eb8cc(0x64)],_0x1c915c[_0x3eb8cc(0x1cf)]);if(!_0x1ea162)return;this[_0x3eb8cc(0x120)](_0x1ea162[_0x3eb8cc(0x1a3)],_0x1ea162[_0x3eb8cc(0x65)],(0x0,c[_0x3eb8cc(0x1c3)])(_0x1ea162[_0x3eb8cc(0x65)][_0x3eb8cc(0xab)](),[_0x1c915c[_0x3eb8cc(0x1bc)]]),_0x1c915c[_0x3eb8cc(0xf4)]??c['BaseEventSource']['UI']);return;}if(Z(_0x209556,c[_0x3eb8cc(0x6c)])){let _0x7352ae=_0x209556[_0x3eb8cc(0x183)],_0x3a3997=this[_0x3eb8cc(0x111)](_0x7352ae[_0x3eb8cc(0x64)],_0x7352ae[_0x3eb8cc(0x1cf)]);if(!_0x3a3997)return;this['_fireBeforeHierarchyChange'](_0x3a3997[_0x3eb8cc(0x1a3)],_0x3a3997[_0x3eb8cc(0x65)],(0x0,c[_0x3eb8cc(0x1c3)])(_0x3a3997[_0x3eb8cc(0x65)][_0x3eb8cc(0xab)](),_0x7352ae['records']),_0x7352ae[_0x3eb8cc(0xf4)]??c[_0x3eb8cc(0x17e)]['UI']);return;}if(Z(_0x209556,c['DuplicateBaseRecordCommand'])){let _0x22f719=_0x209556[_0x3eb8cc(0x183)],_0x5e7204=this[_0x3eb8cc(0x111)](_0x22f719[_0x3eb8cc(0x64)],_0x22f719['tableId']);if(!_0x5e7204)return;this[_0x3eb8cc(0x120)](_0x5e7204['base'],_0x5e7204[_0x3eb8cc(0x65)],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x5e7204[_0x3eb8cc(0x65)]['getTable'](),[_0x22f719[_0x3eb8cc(0x1bc)]]),_0x22f719[_0x3eb8cc(0xf4)]??c['BaseEventSource']['UI']);return;}if(Z(_0x209556,c[_0x3eb8cc(0x140)])){let _0xbbd081=_0x209556[_0x3eb8cc(0x183)],_0x42704a=this[_0x3eb8cc(0x111)](_0xbbd081['unitId'],_0xbbd081[_0x3eb8cc(0x1cf)]);if(!_0x42704a)return;let _0x533ab0=_0x42704a['table']['getTable'](),_0x242150=_0xbbd081[_0x3eb8cc(0x1a8)]??(0x0,c[_0x3eb8cc(0x132)])(_0x533ab0),_0x1b6371=(0x0,c['buildBaseHierarchyIndex'])(_0x533ab0,_0x242150)[_0x3eb8cc(0x8c)][_0x3eb8cc(0x1be)](_0xbbd081[_0x3eb8cc(0x154)])??null;this[_0x3eb8cc(0x120)](_0x42704a['base'],_0x42704a[_0x3eb8cc(0x65)],[{'tableId':_0xbbd081[_0x3eb8cc(0x1cf)],'fieldId':_0x242150,'recordId':_0xbbd081['recordId'],'oldParentRecordId':_0x1b6371,'parentRecordId':_0xbbd081['parentRecordId']}],_0xbbd081[_0x3eb8cc(0xf4)]??c[_0x3eb8cc(0x17e)]['UI']);return;}if(Z(_0x209556,c['CreateBaseChildRecordCommand'])){let _0x26abbf=_0x209556['params'],_0x459436=this[_0x3eb8cc(0x111)](_0x26abbf['unitId'],_0x26abbf['tableId']);if(!_0x459436)return;let _0x246b26=_0x26abbf[_0x3eb8cc(0x1a8)]??(0x0,c[_0x3eb8cc(0x132)])(_0x459436[_0x3eb8cc(0x65)]['getTable']());this[_0x3eb8cc(0x120)](_0x459436['base'],_0x459436['table'],[{'tableId':_0x26abbf[_0x3eb8cc(0x1cf)],'fieldId':_0x246b26,'recordId':_0x26abbf[_0x3eb8cc(0x1bc)]['id'],'oldParentRecordId':null,'parentRecordId':_0x26abbf['parentRecordId']}],_0x26abbf[_0x3eb8cc(0xf4)]??c[_0x3eb8cc(0x17e)]['UI']);return;}if(Z(_0x209556,c['DeleteBaseRecordCommand'])){let _0x590ccd=_0x209556[_0x3eb8cc(0x183)],_0x3579d1=this[_0x3eb8cc(0x111)](_0x590ccd[_0x3eb8cc(0x64)],_0x590ccd[_0x3eb8cc(0x1cf)]);if(!_0x3579d1)return;this[_0x3eb8cc(0x120)](_0x3579d1[_0x3eb8cc(0x1a3)],_0x3579d1[_0x3eb8cc(0x65)],(0x0,c[_0x3eb8cc(0x9b)])(_0x3579d1[_0x3eb8cc(0x65)][_0x3eb8cc(0xab)](),[_0x590ccd['recordId']]),_0x590ccd['source']??c[_0x3eb8cc(0x17e)]['UI']);return;}if(Z(_0x209556,c[_0x3eb8cc(0x16c)])){let _0x49b92f=_0x209556['params'],_0x3c6939=this['_getHierarchyEventContext'](_0x49b92f['unitId'],_0x49b92f[_0x3eb8cc(0x1cf)]);if(!_0x3c6939)return;this[_0x3eb8cc(0x120)](_0x3c6939[_0x3eb8cc(0x1a3)],_0x3c6939[_0x3eb8cc(0x65)],(0x0,c[_0x3eb8cc(0x9b)])(_0x3c6939['table'][_0x3eb8cc(0xab)](),_0x49b92f[_0x3eb8cc(0x13c)]),_0x49b92f[_0x3eb8cc(0xf4)]??c['BaseEventSource']['UI']);return;}if(!Z(_0x209556,c[_0x3eb8cc(0x104)]))return;let _0x1f3a92=_0x209556[_0x3eb8cc(0x183)],_0x529cca=this[_0x3eb8cc(0x111)](_0x1f3a92['unitId'],_0x1f3a92['tableId']);if(!_0x529cca)return;let _0x329f79=_0x529cca[_0x3eb8cc(0x65)][_0x3eb8cc(0xab)]();if(!(0x0,c[_0x3eb8cc(0x1a0)])(_0x329f79)[_0x3eb8cc(0x191)](_0x1f3a92[_0x3eb8cc(0x1a8)]))return;let _0x1cb749=(0x0,c['buildBaseHierarchyIndex'])(_0x329f79,_0x1f3a92[_0x3eb8cc(0x1a8)])[_0x3eb8cc(0x8c)]['get'](_0x1f3a92['recordId'])??null,_0x314d96=(0x0,c[_0x3eb8cc(0x181)])(_0x1f3a92[_0x3eb8cc(0x1b0)])[0x0]??null;_0x1cb749!==_0x314d96&&this['_fireBeforeHierarchyChange'](_0x529cca['base'],_0x529cca[_0x3eb8cc(0x65)],[{'tableId':_0x1f3a92[_0x3eb8cc(0x1cf)],'fieldId':_0x1f3a92[_0x3eb8cc(0x1a8)],'recordId':_0x1f3a92['recordId'],'oldParentRecordId':_0x1cb749,'parentRecordId':_0x314d96}],_0x1f3a92[_0x3eb8cc(0xf4)]??c[_0x3eb8cc(0x17e)]['UI']);}))),this[_0x24f8a2(0x1cd)](this[_0x24f8a2(0xcd)](this['Event']['BeforeBaseTableCreate'],()=>this[_0x24f8a2(0x16e)][_0x24f8a2(0x124)](_0x5ec0bd=>{const _0x394234=_0x24f8a2;if(_0x5ec0bd['id']!==c[_0x394234(0x9f)]['id'])return;let {unitId:_0x4daff6,table:_0x12a9a3,index:_0x3629b4}=_0x5ec0bd[_0x394234(0x183)],_0x16c974=this['getBase'](_0x4daff6);if(!_0x16c974)return;let _0x474f05={'base':_0x16c974,'table':_0x12a9a3,'index':_0x3629b4};if(this[_0x394234(0xc4)](this[_0x394234(0xa0)][_0x394234(0x1a7)],_0x474f05),_0x474f05[_0x394234(0x209)])throw new l[(_0x394234(0xba))]();}))),this[_0x24f8a2(0x1cd)](this[_0x24f8a2(0xcd)](this[_0x24f8a2(0xa0)][_0x24f8a2(0x6d)],()=>this[_0x24f8a2(0x16e)][_0x24f8a2(0x124)](_0x2085b5=>{const _0x355101=_0x24f8a2;if(_0x2085b5['id']!==c['CreateBaseFieldCommand']['id'])return;let {unitId:_0x302890,tableId:_0x4acaf1,field:_0xa1c4cd,index:_0x3832ee,viewIndexes:_0x360e72}=_0x2085b5[_0x355101(0x183)],_0xf16268=this[_0x355101(0x1ee)](_0x302890);if(!_0xf16268)return;let _0x458174=_0xf16268[_0x355101(0x211)](_0x4acaf1);if(!_0x458174)return;let _0x1efb0f={'base':_0xf16268,'table':_0x458174,'field':_0xa1c4cd,'index':_0x3832ee,'viewIndexes':_0x360e72};if(this[_0x355101(0xc4)](this[_0x355101(0xa0)][_0x355101(0x6d)],_0x1efb0f),_0x1efb0f['cancel'])throw new l['CanceledError']();}))),this['disposeWithMe'](this[_0x24f8a2(0xcd)](this['Event'][_0x24f8a2(0x221)],()=>this['_commandService'][_0x24f8a2(0x124)](_0x7221c9=>{const _0x408190=_0x24f8a2;if(_0x7221c9['id']!==c[_0x408190(0x177)]['id']&&_0x7221c9['id']!==c['BatchCreateBaseRecordsCommand']['id'])return;let _0x37e1d9=_0x7221c9['params'],{unitId:_0x69441f,tableId:_0x53f6c7}=_0x37e1d9,_0x42682a=_0x37e1d9[_0x408190(0x173)]??[_0x37e1d9[_0x408190(0x1bc)]],_0x20066c=this['getBase'](_0x69441f);if(!_0x20066c)return;let _0x41c610=_0x20066c['getTableById'](_0x53f6c7);if(!_0x41c610)return;let _0x373429={'base':_0x20066c,'table':_0x41c610,'records':_0x42682a};if(this[_0x408190(0xc4)](this[_0x408190(0xa0)][_0x408190(0x221)],_0x373429),_0x373429['cancel'])throw new l[(_0x408190(0xba))]();}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x24f8a2(0xa0)][_0x24f8a2(0x130)],()=>this[_0x24f8a2(0x16e)][_0x24f8a2(0x124)](_0x42656d=>{const _0xa82535=_0x24f8a2;if(_0x42656d['id']!==c[_0xa82535(0x115)]['id'])return;let {unitId:_0x1d9aa0,tableId:_0x292fd7,view:_0x75a873,index:_0x49bc36}=_0x42656d[_0xa82535(0x183)],_0x4dfb01=this[_0xa82535(0x1ee)](_0x1d9aa0);if(!_0x4dfb01)return;let _0x63b396=_0x4dfb01['getTableById'](_0x292fd7);if(!_0x63b396)return;let _0x12c75e={'base':_0x4dfb01,'table':_0x63b396,'view':_0x75a873,'index':_0x49bc36};if(this['fireEvent'](this['Event'][_0xa82535(0x130)],_0x12c75e),_0x12c75e[_0xa82535(0x209)])throw new l[(_0xa82535(0xba))]();}))),this[_0x24f8a2(0x1cd)](this[_0x24f8a2(0xcd)](this['Event'][_0x24f8a2(0x1f6)],()=>this[_0x24f8a2(0x16e)]['beforeCommandExecuted'](_0x98bad=>{const _0x43ba2a=_0x24f8a2;if(_0x98bad['id']!==c[_0x43ba2a(0x104)]['id'])return;let {unitId:_0x6635a6,tableId:_0x4a8063,recordId:_0x1844dc,fieldId:_0x38a747,value:_0xb4370c}=_0x98bad[_0x43ba2a(0x183)],_0x5952c5=this[_0x43ba2a(0x1ee)](_0x6635a6);if(!_0x5952c5)return;let _0x5f15a4=_0x5952c5[_0x43ba2a(0x211)](_0x4a8063);if(!_0x5f15a4)return;let _0x4cd06d=_0x5f15a4[_0x43ba2a(0xd1)](_0x38a747);if(!_0x4cd06d)return;let _0x257c7f=_0x5f15a4['getRecordById'](_0x1844dc);if(!_0x257c7f)return;let _0x38b5e4={'base':_0x5952c5,'table':_0x5f15a4,'field':_0x4cd06d,'record':_0x257c7f,'value':_0xb4370c};if(this['fireEvent'](this['Event'][_0x43ba2a(0x1f6)],_0x38b5e4),_0x38b5e4[_0x43ba2a(0x209)])throw new l[(_0x43ba2a(0xba))]();})));}[_0x1523fc(0x111)](_0x5a4516,_0x2f52c0){const _0x428167=_0x1523fc;let _0x592fd6=this[_0x428167(0x1ee)](_0x5a4516),_0x1b540b=_0x592fd6==null?void 0x0:_0x592fd6[_0x428167(0x211)](_0x2f52c0);return _0x592fd6&&_0x1b540b?{'base':_0x592fd6,'table':_0x1b540b}:null;}[_0x1523fc(0x120)](_0x2e077b,_0x1e7533,_0x27a102,_0x3d2d9b){const _0x5d575d=_0x1523fc;if(!_0x27a102[_0x5d575d(0x224)])return;let _0x54ce6f={'base':_0x2e077b,'table':_0x1e7533,'changes':_0x27a102,'source':_0x3d2d9b};if(this[_0x5d575d(0xc4)](this['Event'][_0x5d575d(0x202)],_0x54ce6f),_0x54ce6f[_0x5d575d(0x209)])throw new l[(_0x5d575d(0xba))]();}};function Z(_0x1399e1,_0x20e17e){return _0x1399e1['id']===_0x20e17e['id']&&_0x1399e1['params']!==void 0x0;}u[_0x1523fc(0x80)]['extend'](X);var Q=class extends u[_0x1523fc(0x119)]{get[_0x1523fc(0x200)](){const _0x335070=_0x1523fc;return l[_0x335070(0x200)];}get[_0x1523fc(0x19a)](){const _0x5e48de=_0x1523fc;return l[_0x5e48de(0x19a)];}get[_0x1523fc(0xff)](){const _0xd4a287=_0x1523fc;return l[_0xd4a287(0xff)];}get[_0x1523fc(0x1fd)](){return v;}get[_0x1523fc(0x175)](){const _0x479725=_0x1523fc;return l[_0x479725(0x175)];}get['BaseConditionalColorTarget'](){const _0x31098f=_0x1523fc;return l[_0x31098f(0x8f)];}get[_0x1523fc(0x169)](){const _0x36ff47=_0x1523fc;return l[_0x36ff47(0x169)];}get[_0x1523fc(0xf6)](){return l['BaseConditionalDateMode'];}get[_0x1523fc(0x6f)](){return l['BaseSortDirection'];}get[_0x1523fc(0x17e)](){const _0x22c4d1=_0x1523fc;return c[_0x22c4d1(0x17e)];}get[_0x1523fc(0x1fb)](){return c['BaseHierarchyErrorCode'];}get['BaseHierarchyInvalidReason'](){const _0x12b4bc=_0x1523fc;return l[_0x12b4bc(0x149)];}get[_0x1523fc(0x193)](){const _0x4c19ac=_0x1523fc;return l[_0x4c19ac(0x193)];}};u[_0x1523fc(0x119)][_0x1523fc(0x69)](Q);var $=class extends u[_0x1523fc(0x95)]{get[_0x1523fc(0xa4)](){const _0x104619=_0x1523fc;return _0x104619(0xa4);}get['BeforeBaseTableCreate'](){const _0x5745e6=_0x1523fc;return _0x5745e6(0x1a7);}get['BaseTableFieldCreated'](){const _0x1501f1=_0x1523fc;return _0x1501f1(0x1c0);}get[_0x1523fc(0x6d)](){const _0x54580a=_0x1523fc;return _0x54580a(0x6d);}get['BaseTableRecordCreated'](){const _0x1d7aca=_0x1523fc;return _0x1d7aca(0x13d);}get[_0x1523fc(0x221)](){const _0x355455=_0x1523fc;return _0x355455(0x221);}get[_0x1523fc(0x76)](){const _0x2029cd=_0x1523fc;return _0x2029cd(0x76);}get['BeforeBaseTableViewCreate'](){const _0x1c5cba=_0x1523fc;return _0x1c5cba(0x130);}get[_0x1523fc(0x1c1)](){return'BaseTableCellValueChanged';}get[_0x1523fc(0x1f6)](){return'BeforeBaseTableCellValueChange';}get[_0x1523fc(0xb2)](){return'BaseHierarchyChanged';}get[_0x1523fc(0x202)](){const _0x24b3c1=_0x1523fc;return _0x24b3c1(0x202);}};u[_0x1523fc(0x95)]['extend']($),exports[_0x1523fc(0x1fd)]=v,Object[_0x1523fc(0xa5)](exports,'FBase',{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0x1523fc(0x210)]=m,exports[_0x1523fc(0x91)]=p,Object[_0x1523fc(0xa5)](exports,_0x1523fc(0xcc),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x1523fc(0xa5)](exports,_0x1523fc(0x201),{'enumerable':!0x0,'get':function(){return _;}}),Object[_0x1523fc(0xa5)](exports,'FBaseTableRange',{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x1523fc(0xa5)](exports,'FBaseTableRecord',{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x1523fc(0xa5)](exports,_0x1523fc(0x1e6),{'enumerable':!0x0,'get':function(){return z;}}),exports['FBasesEventNameMixin']=$,exports[_0x1523fc(0x205)]=S,exports[_0x1523fc(0x225)]=b;
|
|
1
|
+
const _0x45bca4=_0x53ac;(function(_0x58328d,_0x1a745c){const _0xb87cfc=_0x53ac,_0x18df13=_0x58328d();while(!![]){try{const _0x1f6852=parseInt(_0xb87cfc(0x2fa))/0x1+-parseInt(_0xb87cfc(0x315))/0x2*(parseInt(_0xb87cfc(0x34d))/0x3)+-parseInt(_0xb87cfc(0x2ad))/0x4*(parseInt(_0xb87cfc(0x260))/0x5)+parseInt(_0xb87cfc(0x34e))/0x6*(parseInt(_0xb87cfc(0x31f))/0x7)+-parseInt(_0xb87cfc(0x21c))/0x8*(parseInt(_0xb87cfc(0x392))/0x9)+parseInt(_0xb87cfc(0x387))/0xa*(-parseInt(_0xb87cfc(0x38e))/0xb)+-parseInt(_0xb87cfc(0x2a6))/0xc*(-parseInt(_0xb87cfc(0x22a))/0xd);if(_0x1f6852===_0x1a745c)break;else _0x18df13['push'](_0x18df13['shift']());}catch(_0x279a7a){_0x18df13['push'](_0x18df13['shift']());}}}(_0x4e24,0x5ccd3),Object[_0x45bca4(0x2c5)](exports,Symbol[_0x45bca4(0x351)],{'value':_0x45bca4(0x247)}));var e=Object[_0x45bca4(0x1e1)],t=Object[_0x45bca4(0x2c5)],n=Object[_0x45bca4(0x1f2)],r=Object['getOwnPropertyNames'],i=Object[_0x45bca4(0x362)],a=Object[_0x45bca4(0x287)][_0x45bca4(0x311)],o=(_0x367afc,_0x31f0b7,_0x42bc5d,_0x5f2950)=>{const _0x364463=_0x45bca4;if(_0x31f0b7&&typeof _0x31f0b7=='object'||typeof _0x31f0b7==_0x364463(0x2fc)){for(var _0xa17747=r(_0x31f0b7),_0x5ada75=0x0,_0x3bf3bb=_0xa17747['length'],_0x455038;_0x5ada75<_0x3bf3bb;_0x5ada75++)_0x455038=_0xa17747[_0x5ada75],!a[_0x364463(0x316)](_0x367afc,_0x455038)&&_0x455038!==_0x42bc5d&&t(_0x367afc,_0x455038,{'get':(_0x2afda7=>_0x31f0b7[_0x2afda7])['bind'](null,_0x455038),'enumerable':!(_0x5f2950=n(_0x31f0b7,_0x455038))||_0x5f2950[_0x364463(0x209)]});}return _0x367afc;},s=(_0x1a7631,_0x5d89c8,_0x2f209f)=>(_0x2f209f=_0x1a7631==null?{}:e(i(_0x1a7631)),o(_0x5d89c8||!_0x1a7631||!_0x1a7631[_0x45bca4(0x37b)]||!a[_0x45bca4(0x316)](_0x1a7631,_0x45bca4(0x295))?t(_0x2f209f,_0x45bca4(0x295),{'value':_0x1a7631,'enumerable':!0x0}):_0x2f209f,_0x1a7631));let c=require('@univerjs-pro/bases'),l=require('@univerjs/core'),u=require('@univerjs/core/facade');u=s(u);let d=require('@univerjs/protocol'),f=require('@univerjs-pro/engine-formula');var p=class{constructor(_0x21e98c,_0x29b7a2,_0x41a75c){const _0x1709cb=_0x45bca4;this['_unitId']=_0x21e98c,this[_0x1709cb(0x33a)]=_0x29b7a2,this[_0x1709cb(0x2ae)]=_0x41a75c;}async[_0x45bca4(0x2c4)](_0x55a79f){const _0x261468=_0x45bca4;return this[_0x261468(0x33a)]['executeCommand'](c[_0x261468(0x300)]['id'],{'unitId':this[_0x261468(0x266)],'changes':_0x55a79f});}async[_0x45bca4(0x2d2)](_0x5398ff,_0x15e7a3){const _0x318287=_0x45bca4;await this['_commandService'][_0x318287(0x308)](c[_0x318287(0x277)]['id'],{'unitId':this[_0x318287(0x266)],'objectId':this[_0x318287(0x266)],'action':_0x5398ff,'value':_0x15e7a3});}[_0x45bca4(0x26a)](_0x27eb3c){const _0x4d3113=_0x45bca4;return(0x0,c[_0x4d3113(0x342)])(this[_0x4d3113(0x2ae)],this[_0x4d3113(0x266)],this[_0x4d3113(0x266)],_0x27eb3c);}async['setEditable'](_0x3e9417=!0x0){const _0x192dcc=_0x45bca4;await this[_0x192dcc(0x33a)]['executeCommand'](c[_0x192dcc(0x277)]['id'],{'unitId':this[_0x192dcc(0x266)],'objectId':this[_0x192dcc(0x266)],'action':d['UnitAction']['Edit'],'value':_0x3e9417});}async[_0x45bca4(0x38c)](){const _0x34b120=_0x45bca4;await this[_0x34b120(0x33a)][_0x34b120(0x308)](c[_0x34b120(0x277)]['id'],{'unitId':this['_unitId'],'objectId':this[_0x34b120(0x266)],'action':d['UnitAction'][_0x34b120(0x352)],'value':!0x1});}[_0x45bca4(0x2de)](){const _0x219f7d=_0x45bca4;return(0x0,c['getBasePermissionValue'])(this[_0x219f7d(0x2ae)],this[_0x219f7d(0x266)],this[_0x219f7d(0x266)],d[_0x219f7d(0x245)][_0x219f7d(0x352)]);}},m=class{constructor(_0x34a0ed,_0x1ccce2,_0x4457dd,_0x3a00d7,_0xf6fb33){const _0x9a4dea=_0x45bca4;this[_0x9a4dea(0x266)]=_0x34a0ed,this[_0x9a4dea(0x2fb)]=_0x1ccce2,this['_parentObjectIds']=_0x4457dd,this[_0x9a4dea(0x33a)]=_0x3a00d7,this[_0x9a4dea(0x2ae)]=_0xf6fb33;}async['setEditable'](_0x5d6a81=!0x0){const _0x2154d3=_0x45bca4;await this['_commandService'][_0x2154d3(0x308)](c[_0x2154d3(0x277)]['id'],{'unitId':this[_0x2154d3(0x266)],'objectId':this[_0x2154d3(0x2fb)],'action':d['UnitAction'][_0x2154d3(0x352)],'value':_0x5d6a81});}async[_0x45bca4(0x38c)](){const _0x20cacd=_0x45bca4;await this[_0x20cacd(0x33a)][_0x20cacd(0x308)](c['SetBasePermissionCommand']['id'],{'unitId':this[_0x20cacd(0x266)],'objectId':this['_objectId'],'action':d['UnitAction'][_0x20cacd(0x352)],'value':!0x1});}['canEdit'](){const _0x34999e=_0x45bca4;return(0x0,c[_0x34999e(0x241)])(this[_0x34999e(0x2ae)],this[_0x34999e(0x266)],[...this[_0x34999e(0x265)],this[_0x34999e(0x2fb)]]);}};function h(_0x2d5d3c,_0x309c){return function(_0x1027b1,_0x28ed12){_0x309c(_0x1027b1,_0x28ed12,_0x2d5d3c);};}function g(_0x3c14db,_0x1b418c,_0x19eea2,_0x5af04f){const _0x4f7e62=_0x45bca4;var _0x4b0c0f=arguments[_0x4f7e62(0x319)],_0x4fc5e0=_0x4b0c0f<0x3?_0x1b418c:_0x5af04f===null?_0x5af04f=Object[_0x4f7e62(0x1f2)](_0x1b418c,_0x19eea2):_0x5af04f,_0x209185;if(typeof Reflect==_0x4f7e62(0x329)&&typeof Reflect['decorate']==_0x4f7e62(0x2fc))_0x4fc5e0=Reflect['decorate'](_0x3c14db,_0x1b418c,_0x19eea2,_0x5af04f);else{for(var _0x5387cd=_0x3c14db['length']-0x1;_0x5387cd>=0x0;_0x5387cd--)(_0x209185=_0x3c14db[_0x5387cd])&&(_0x4fc5e0=(_0x4b0c0f<0x3?_0x209185(_0x4fc5e0):_0x4b0c0f>0x3?_0x209185(_0x1b418c,_0x19eea2,_0x4fc5e0):_0x209185(_0x1b418c,_0x19eea2))||_0x4fc5e0);}return _0x4b0c0f>0x3&&_0x4fc5e0&&Object['defineProperty'](_0x1b418c,_0x19eea2,_0x4fc5e0),_0x4fc5e0;}let _=class{constructor(_0x23723f,_0x54e5e6,_0xfbbef1,_0x241603,_0x297751){const _0x20d1ab=_0x45bca4;this[_0x20d1ab(0x1f5)]=_0x23723f,this['_table']=_0x54e5e6,this[_0x20d1ab(0x310)]=_0xfbbef1,this['_commandService']=_0x241603,this[_0x20d1ab(0x2ae)]=_0x297751;}[_0x45bca4(0x2b7)](){const _0x3fc20f=_0x45bca4;return this[_0x3fc20f(0x310)];}[_0x45bca4(0x349)](){const _0x3e9b7a=_0x45bca4;let _0x5496ef=this['_table'][_0x3e9b7a(0x2b7)]();return new m(this[_0x3e9b7a(0x1f5)][_0x3e9b7a(0x2b7)](),(0x0,c['getBaseFieldPermissionObjectId'])(_0x5496ef,this[_0x3e9b7a(0x310)]),[(0x0,c['getBaseTablePermissionObjectId'])(_0x5496ef)],this[_0x3e9b7a(0x33a)],this[_0x3e9b7a(0x2ae)]);}['getField'](){return this['_getField']();}[_0x45bca4(0x379)](){const _0x4b5395=_0x45bca4;return this[_0x4b5395(0x36e)]()['name'];}[_0x45bca4(0x244)](){const _0x70f2ff=_0x45bca4;return this['_getField']()[_0x70f2ff(0x375)];}[_0x45bca4(0x1e8)](){const _0x1ad20b=_0x45bca4;return this[_0x1ad20b(0x36e)]()['config'];}[_0x45bca4(0x309)](){return this['_getField']()['defaultValue'];}[_0x45bca4(0x30e)](){const _0x4c8156=_0x45bca4;return this[_0x4c8156(0x36e)]()['description'];}['isReadonly'](){const _0x1e35ea=_0x45bca4;return!!this['_getField']()[_0x1e35ea(0x28c)];}['setName'](_0x5cdca9){const _0x506bdc=_0x45bca4;return this[_0x506bdc(0x35d)]({'name':_0x5cdca9});}[_0x45bca4(0x318)](_0x10c199,_0x5187c4){const _0x445c51=_0x45bca4;return this[_0x445c51(0x35d)]({'config':_0x10c199},_0x5187c4);}['setDefaultValue'](_0x288b71){const _0x1b451d=_0x45bca4;return this[_0x1b451d(0x35d)]({'defaultValue':_0x288b71});}['update'](_0x43b8d9,_0x47c9e1){const _0x56e071=_0x45bca4;let _0x999abe=this[_0x56e071(0x36e)]()[_0x56e071(0x375)];return(_0x43b8d9['type']??_0x999abe)===l['BaseFieldType'][_0x56e071(0x356)]&&(Object[_0x56e071(0x287)]['hasOwnProperty'][_0x56e071(0x316)](_0x43b8d9,'config')||_0x43b8d9[_0x56e071(0x375)]===l[_0x56e071(0x321)][_0x56e071(0x356)])&&!this[_0x56e071(0x341)](_0x47c9e1)?!0x1:this[_0x56e071(0x33a)]['syncExecuteCommand'](c[_0x56e071(0x20f)]['id'],{'unitId':this[_0x56e071(0x1f5)]['getId'](),'tableId':this[_0x56e071(0x232)]['getId'](),'fieldId':this[_0x56e071(0x310)],'patch':_0x43b8d9});}['changeType'](_0x28bb44,_0x3e4b37={},_0x3110c4){const _0x5db7ea=_0x45bca4;return _0x28bb44===l[_0x5db7ea(0x321)]['Formula']&&!this[_0x5db7ea(0x341)](_0x3110c4)?!0x1:this[_0x5db7ea(0x33a)][_0x5db7ea(0x354)](c['ChangeBaseFieldTypeCommand']['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x5db7ea(0x232)][_0x5db7ea(0x2b7)](),'fieldId':this[_0x5db7ea(0x310)],'input':{'type':_0x28bb44,'config':_0x3e4b37}});}[_0x45bca4(0x36c)](){const _0x279972=_0x45bca4;return this['_commandService']['syncExecuteCommand'](c[_0x279972(0x204)]['id'],{'unitId':this[_0x279972(0x1f5)][_0x279972(0x2b7)](),'tableId':this[_0x279972(0x232)]['getId'](),'fieldId':this[_0x279972(0x310)]});}[_0x45bca4(0x32f)](_0x1b638a){const _0x4f700d=_0x45bca4;return this[_0x4f700d(0x33a)][_0x4f700d(0x354)](c[_0x4f700d(0x23a)]['id'],{'unitId':this[_0x4f700d(0x1f5)][_0x4f700d(0x2b7)](),'tableId':this[_0x4f700d(0x232)]['getId'](),'fieldId':this['_fieldId'],'target':_0x1b638a});}[_0x45bca4(0x36e)](){const _0x469b4f=_0x45bca4;let _0x5748b0=this[_0x469b4f(0x232)][_0x469b4f(0x238)]()['fields'][this[_0x469b4f(0x310)]];if(!_0x5748b0)throw Error('[FField]:\x20field\x20\x22'+this[_0x469b4f(0x310)]+'\x22\x20does\x20not\x20exist.');return _0x5748b0;}[_0x45bca4(0x341)](_0x2ee66b){const _0x36ea89=_0x45bca4;if(!_0x2ee66b||!Array[_0x36ea89(0x2a2)](_0x2ee66b['externalReferences']))return console[_0x36ea89(0x32b)](_0x36ea89(0x302)),!0x1;if(_0x2ee66b[_0x36ea89(0x253)][_0x36ea89(0x319)]===0x0)return!0x0;let _0x3103b2=this[_0x36ea89(0x33a)]['syncExecuteCommand'](f[_0x36ea89(0x37c)]['id'],{'unitId':this[_0x36ea89(0x1f5)][_0x36ea89(0x2b7)](),'references':_0x2ee66b[_0x36ea89(0x253)]});return _0x3103b2||console[_0x36ea89(0x32b)](_0x36ea89(0x317)),_0x3103b2;}};_=g([h(0x3,l[_0x45bca4(0x203)]),h(0x4,l[_0x45bca4(0x2c8)])],_);function _0x53ac(_0x2abd16,_0x10c73c){_0x2abd16=_0x2abd16-0x1e0;const _0x4e24d1=_0x4e24();let _0x53ac29=_0x4e24d1[_0x2abd16];return _0x53ac29;}let v=function(_0x4383a9){const _0x250c06=_0x45bca4;return _0x4383a9['Id']='id',_0x4383a9[_0x250c06(0x32e)]=_0x250c06(0x33c),_0x4383a9[_0x250c06(0x374)]=_0x250c06(0x2f2),_0x4383a9;}({});function y(_0x1e29c4){const _0x20dfcc=_0x45bca4;return!!(_0x1e29c4&&_0x1e29c4['system']!==!0x0&&_0x1e29c4[_0x20dfcc(0x375)]!==l[_0x20dfcc(0x321)]['RecordId']);}function b(_0x16fe86,_0x40d02f,_0x1ebbda='id'){const _0x5f407f=_0x45bca4;if(!_0x40d02f)return{};let _0x3d5399={};return Object[_0x5f407f(0x2d3)](_0x40d02f)[_0x5f407f(0x2e1)](([_0x1c351,_0x170d6d])=>{const _0x5ccd7e=_0x5f407f;let _0x15f5ce=S(_0x16fe86,_0x1c351,_0x1ebbda);_0x3d5399[_0x15f5ce]=x(_0x16fe86[_0x5ccd7e(0x29a)][_0x15f5ce],_0x170d6d);}),_0x3d5399;}function x(_0x3a8bca,_0x8c6710){const _0x2112fd=_0x45bca4;if((_0x3a8bca==null?void 0x0:_0x3a8bca[_0x2112fd(0x375)])!==l[_0x2112fd(0x321)][_0x2112fd(0x256)]||_0x8c6710==null)return _0x8c6710;if(!Array[_0x2112fd(0x2a2)](_0x8c6710))throw TypeError(_0x2112fd(0x1fd)+_0x3a8bca[_0x2112fd(0x33c)]+_0x2112fd(0x2ac));return _0x8c6710[_0x2112fd(0x372)]((_0x13f24a,_0x9924de)=>C(_0x3a8bca,_0x13f24a,_0x9924de));}function S(_0x317ef4,_0x1e9f4d,_0x409af3){const _0x2c829e=_0x45bca4;if(_0x409af3==='id'||_0x409af3==='auto'&&_0x317ef4[_0x2c829e(0x29a)][_0x1e9f4d])return _0x1e9f4d;let _0x3a0980=Object['values'](_0x317ef4[_0x2c829e(0x29a)])['filter'](_0x5e654c=>_0x5e654c[_0x2c829e(0x33c)]===_0x1e9f4d);if(_0x3a0980[_0x2c829e(0x319)]===0x1)return _0x3a0980[0x0]['id'];throw _0x3a0980['length']>0x1?Error(_0x2c829e(0x218)+_0x1e9f4d):Error(_0x2c829e(0x339)+_0x1e9f4d);}function C(_0x28ee6f,_0xcb5bd1,_0x40f7ce){const _0x5a2dd8=_0x45bca4;let _0x2c8b68=_0x5a2dd8(0x33f)+_0x40f7ce+_0x5a2dd8(0x2a9)+_0x28ee6f['name']+'\x22';if(!O(_0xcb5bd1))throw TypeError(_0x2c8b68+_0x5a2dd8(0x364));if(_0x5a2dd8(0x283)in _0xcb5bd1)throw TypeError(_0x2c8b68+':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.');if(_0x5a2dd8(0x375)in _0xcb5bd1)throw TypeError(_0x2c8b68+_0x5a2dd8(0x21f));let _0x50b103=T(_0xcb5bd1['id'],_0x2c8b68,'id'),_0x4c864a=T(_0xcb5bd1[_0x5a2dd8(0x33c)],_0x2c8b68,_0x5a2dd8(0x33c)),_0x2a8e24=T(_0xcb5bd1[_0x5a2dd8(0x2bf)],_0x2c8b68,_0x5a2dd8(0x2bf));return{'id':_0x50b103,'name':_0x4c864a,'source':_0x2a8e24,'sourceType':w(_0xcb5bd1['sourceType'],_0x2a8e24,_0x2c8b68),...E(_0xcb5bd1,_0x5a2dd8(0x377),_0x2c8b68),...D(_0xcb5bd1,_0x5a2dd8(0x2a8),_0x2c8b68),...D(_0xcb5bd1,'width',_0x2c8b68),...D(_0xcb5bd1,_0x5a2dd8(0x25e),_0x2c8b68),...E(_0xcb5bd1,_0x5a2dd8(0x289),_0x2c8b68)};}function w(_0x423000,_0x5f341e,_0xbf4dfe){const _0x9fa702=_0x45bca4;if(_0x423000==null)return _0x5f341e[_0x9fa702(0x296)](_0x9fa702(0x292))?l[_0x9fa702(0x219)][_0x9fa702(0x202)]:l['ImageSourceType']['URL'];if(_0x423000===l[_0x9fa702(0x219)][_0x9fa702(0x278)]||_0x423000===l['ImageSourceType'][_0x9fa702(0x1ee)]||_0x423000===l['ImageSourceType'][_0x9fa702(0x202)])return _0x423000;throw TypeError(_0xbf4dfe+_0x9fa702(0x386));}function T(_0x1b1e4d,_0x5a8f8f,_0x35ea0d){const _0x26f44d=_0x45bca4;if(typeof _0x1b1e4d!=_0x26f44d(0x226)||!_0x1b1e4d[_0x26f44d(0x2a7)]())throw TypeError(_0x5a8f8f+_0x26f44d(0x294)+_0x35ea0d+_0x26f44d(0x37f));return _0x1b1e4d;}function E(_0x4d8ee7,_0x25016e,_0x419220){const _0xe7df0c=_0x45bca4;let _0x2f67c8=_0x4d8ee7[_0x25016e];if(_0x2f67c8==null)return{};if(typeof _0x2f67c8!='string'||!_0x2f67c8['trim']())throw TypeError(_0x419220+_0xe7df0c(0x294)+_0x25016e+_0xe7df0c(0x2ba));return{[_0x25016e]:_0x2f67c8};}function D(_0x343210,_0x5714f7,_0x4659d0){const _0x425132=_0x45bca4;let _0xa8db98=_0x343210[_0x5714f7];if(_0xa8db98==null)return{};if(typeof _0xa8db98!=_0x425132(0x369)||!Number[_0x425132(0x276)](_0xa8db98)||_0xa8db98<0x0)throw TypeError(_0x4659d0+_0x425132(0x294)+_0x5714f7+_0x425132(0x30a));return{[_0x5714f7]:_0xa8db98};}function O(_0x3f9ffb){const _0x180247=_0x45bca4;return typeof _0x3f9ffb==_0x180247(0x329)&&!!_0x3f9ffb&&!Array['isArray'](_0x3f9ffb);}var k;let A=k=class{constructor(_0x5bdee7,_0x514a81,_0x5d4da9,_0x413d90,_0x8daf37){const _0x4deadf=_0x45bca4;this['_base']=_0x5bdee7,this[_0x4deadf(0x232)]=_0x514a81,this[_0x4deadf(0x258)]=_0x5d4da9,this[_0x4deadf(0x2d1)]=_0x413d90,this[_0x4deadf(0x33a)]=_0x8daf37,this['_assertInBounds']();}['getBaseId'](){const _0x51ab2b=_0x45bca4;return this[_0x51ab2b(0x1f5)]['getId']();}[_0x45bca4(0x205)](){const _0x4a47c0=_0x45bca4;return this[_0x4a47c0(0x232)][_0x4a47c0(0x2b7)]();}[_0x45bca4(0x305)](){const _0x22a524=_0x45bca4;return{...this[_0x22a524(0x258)]};}[_0x45bca4(0x1f3)](){const _0x2e8bc6=_0x45bca4;return this['_range'][_0x2e8bc6(0x2b1)];}['getColumn'](){const _0x587653=_0x45bca4;return this['_range'][_0x587653(0x325)];}['getNumRows'](){const _0x36a5df=_0x45bca4;return this[_0x36a5df(0x258)][_0x36a5df(0x358)]-this[_0x36a5df(0x258)][_0x36a5df(0x2b1)]+0x1;}[_0x45bca4(0x2e9)](){const _0x1896eb=_0x45bca4;return this['_range'][_0x1896eb(0x22d)]-this[_0x1896eb(0x258)][_0x1896eb(0x325)]+0x1;}['getValues'](){const _0x3c5aa4=_0x45bca4;let _0x2002c8=this[_0x3c5aa4(0x273)](),_0x23e56f=this[_0x3c5aa4(0x360)](_0x2002c8),_0x4aabf1=[];for(let _0x3f73a6=this[_0x3c5aa4(0x258)]['startRow'];_0x3f73a6<=this[_0x3c5aa4(0x258)][_0x3c5aa4(0x358)];_0x3f73a6++){var _0xdd9093;let _0x135039=(_0xdd9093=_0x2002c8['rowId'])==null?void 0x0:_0xdd9093[_0x3f73a6],_0x257343=[];for(let _0x4f2e1f=this[_0x3c5aa4(0x258)]['startColumn'];_0x4f2e1f<=this[_0x3c5aa4(0x258)][_0x3c5aa4(0x22d)];_0x4f2e1f++){let _0x3eb050=_0x23e56f[_0x4f2e1f];_0x257343[_0x3c5aa4(0x26d)](_0x135039&&_0x3eb050?(0x0,c[_0x3c5aa4(0x2ed)])(_0x2002c8,_0x135039,_0x3eb050):null);}_0x4aabf1[_0x3c5aa4(0x26d)](_0x257343);}return _0x4aabf1;}['getValue'](){const _0xc6a907=_0x45bca4;var _0x28fbb6;return((_0x28fbb6=this[_0xc6a907(0x267)]()[0x0])==null?void 0x0:_0x28fbb6[0x0])??null;}[_0x45bca4(0x371)](_0x3f0d17){const _0x40bca1=_0x45bca4;return this[_0x40bca1(0x1fc)]([[_0x3f0d17]]);}[_0x45bca4(0x1fc)](_0xb7db8){const _0x5270b7=_0x45bca4;let _0x25030c=this[_0x5270b7(0x27d)](),_0x34185a=this['getNumColumns']();if(_0xb7db8[_0x5270b7(0x319)]>_0x25030c||_0xb7db8[_0x5270b7(0x33d)](_0xed456d=>_0xed456d[_0x5270b7(0x319)]>_0x34185a)){var _0x45511b;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0xb7db8[_0x5270b7(0x319)]+'x'+(((_0x45511b=_0xb7db8[0x0])==null?void 0x0:_0x45511b[_0x5270b7(0x319)])??0x0)+_0x5270b7(0x2be)+_0x25030c+'x'+_0x34185a+'.');}let _0x38f65b=this[_0x5270b7(0x273)](),_0x28ac97=this['_getFieldIds'](_0x38f65b),_0x47166d=_0xb7db8[_0x5270b7(0x367)]((_0x20e0f5,_0x205034)=>_0x20e0f5[_0x5270b7(0x372)]((_0x2bc3cd,_0x9c16e6)=>{const _0x1c3c78=_0x5270b7;var _0x5d3a18;let _0x3f1874=this[_0x1c3c78(0x258)][_0x1c3c78(0x2b1)]+_0x205034,_0x1df821=_0x28ac97[this[_0x1c3c78(0x258)]['startColumn']+_0x9c16e6],_0x3b2ae8=(_0x5d3a18=_0x38f65b['rowId'])==null?void 0x0:_0x5d3a18[_0x3f1874];if(!_0x1df821||!_0x3b2ae8)throw Error(_0x1c3c78(0x2f1));return{'recordId':_0x3b2ae8,'fieldId':_0x1df821,'value':_0x2bc3cd};}));return this['_commandService'][_0x5270b7(0x354)](c[_0x5270b7(0x26f)]['id'],{'unitId':this[_0x5270b7(0x1f5)][_0x5270b7(0x2b7)](),'tableId':this['_table'][_0x5270b7(0x2b7)](),'patches':_0x47166d,'source':c[_0x5270b7(0x33e)][_0x5270b7(0x361)]});}[_0x45bca4(0x301)](){const _0x11e83d=_0x45bca4;return this[_0x11e83d(0x1fc)](Array[_0x11e83d(0x32d)]({'length':this[_0x11e83d(0x27d)]()},()=>Array['from']({'length':this[_0x11e83d(0x2e9)]()},()=>null)));}['offset'](_0x5da044,_0x789472,_0x34731e=this[_0x45bca4(0x27d)](),_0x138adb=this[_0x45bca4(0x2e9)]()){const _0x38cde6=_0x45bca4;return this[_0x38cde6(0x2d1)]['createInstance'](k,this['_base'],this[_0x38cde6(0x232)],{'startRow':this[_0x38cde6(0x258)]['startRow']+_0x5da044,'startColumn':this[_0x38cde6(0x258)]['startColumn']+_0x789472,'endRow':this[_0x38cde6(0x258)][_0x38cde6(0x2b1)]+_0x5da044+_0x34731e-0x1,'endColumn':this[_0x38cde6(0x258)][_0x38cde6(0x325)]+_0x789472+_0x138adb-0x1},this[_0x38cde6(0x2d1)]);}[_0x45bca4(0x273)](){const _0x33b9d2=_0x45bca4;let _0x98e459=this[_0x33b9d2(0x232)]['getTable']();if(!_0x98e459)throw Error(_0x33b9d2(0x1e7));return(0x0,c[_0x33b9d2(0x20d)])(_0x98e459);}[_0x45bca4(0x36d)](){const _0x112014=_0x45bca4;var _0x576305;let _0xf48557=this[_0x112014(0x273)](),_0x197430=((_0x576305=_0xf48557[_0x112014(0x269)])==null?void 0x0:_0x576305[_0x112014(0x319)])??0x0,_0x25af2c=this[_0x112014(0x360)](_0xf48557)[_0x112014(0x319)];if(this[_0x112014(0x258)]['startRow']<0x0||this[_0x112014(0x258)][_0x112014(0x325)]<0x0||this[_0x112014(0x258)]['endRow']<this[_0x112014(0x258)]['startRow']||this[_0x112014(0x258)]['endColumn']<this[_0x112014(0x258)]['startColumn']||this[_0x112014(0x258)][_0x112014(0x358)]>=Math[_0x112014(0x35e)](_0x197430,0x1)||this[_0x112014(0x258)][_0x112014(0x22d)]>=Math[_0x112014(0x35e)](_0x25af2c,0x1))throw Error('[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20'+_0x197430+_0x112014(0x2d4)+_0x25af2c+_0x112014(0x30b)+JSON['stringify'](this['_range'])+'.');}[_0x45bca4(0x360)](_0x30af1d){return _0x30af1d['fieldOrder']['filter'](_0x8868f0=>y(_0x30af1d['fields'][_0x8868f0]));}};A=k=g([h(0x4,l[_0x45bca4(0x203)])],A);function j(_0x4e01ba){'@babel/helpers - typeof';const _0x4060cf=_0x45bca4;return j=typeof Symbol==_0x4060cf(0x2fc)&&typeof Symbol[_0x4060cf(0x259)]=='symbol'?function(_0x5de433){return typeof _0x5de433;}:function(_0x351813){const _0xf0141a=_0x4060cf;return _0x351813&&typeof Symbol==_0xf0141a(0x2fc)&&_0x351813[_0xf0141a(0x22e)]===Symbol&&_0x351813!==Symbol[_0xf0141a(0x287)]?'symbol':typeof _0x351813;},j(_0x4e01ba);}function M(_0x5ee0af,_0x2a2de3){const _0x196299=_0x45bca4;if(j(_0x5ee0af)!=_0x196299(0x329)||!_0x5ee0af)return _0x5ee0af;var _0x4f80d8=_0x5ee0af[Symbol[_0x196299(0x2d5)]];if(_0x4f80d8!==void 0x0){var _0x35282a=_0x4f80d8['call'](_0x5ee0af,_0x2a2de3||_0x196299(0x295));if(j(_0x35282a)!=_0x196299(0x329))return _0x35282a;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2a2de3===_0x196299(0x226)?String:Number)(_0x5ee0af);}function N(_0x3c1a62){const _0x12a79c=_0x45bca4;var _0x55479b=M(_0x3c1a62,_0x12a79c(0x226));return j(_0x55479b)==_0x12a79c(0x312)?_0x55479b:_0x55479b+'';}function P(_0x10701d,_0xe215c8,_0x56785e){const _0x2a73da=_0x45bca4;return(_0xe215c8=N(_0xe215c8))in _0x10701d?Object[_0x2a73da(0x2c5)](_0x10701d,_0xe215c8,{'value':_0x56785e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x10701d[_0xe215c8]=_0x56785e,_0x10701d;}var F;let I=F=class extends u['FBaseInitialable']{constructor(_0xa5fdb3,_0x103c4d,_0x4464cd,_0x524753,_0x48771e,_0x33f504){const _0x45975f=_0x45bca4;super(_0x524753),this[_0x45975f(0x1f5)]=_0xa5fdb3,this[_0x45975f(0x232)]=_0x103c4d,this[_0x45975f(0x34a)]=_0x4464cd,this['_injector']=_0x524753,this['_commandService']=_0x48771e,this[_0x45975f(0x2ae)]=_0x33f504,P(this,'_baseUnitId',void 0x0),P(this,_0x45975f(0x2a5),void 0x0),this[_0x45975f(0x28d)]=_0xa5fdb3[_0x45975f(0x2b7)](),this[_0x45975f(0x2a5)]=_0x103c4d[_0x45975f(0x2b7)]();}['getBaseFacade'](){return this['_base'];}['getTableFacade'](){return this['_table'];}[_0x45bca4(0x2b7)](){const _0x519040=_0x45bca4;return this[_0x519040(0x34a)];}['getPermission'](){const _0x559066=_0x45bca4;let _0x30eb51=this[_0x559066(0x232)]['getId']();return new m(this['_base'][_0x559066(0x2b7)](),(0x0,c[_0x559066(0x33b)])(_0x30eb51,this[_0x559066(0x34a)]),[(0x0,c[_0x559066(0x2b9)])(_0x30eb51)],this[_0x559066(0x33a)],this[_0x559066(0x2ae)]);}[_0x45bca4(0x35b)](){const _0xd5746f=_0x45bca4;return{...this[_0xd5746f(0x22b)](),'values':this[_0xd5746f(0x267)]()};}['getValue'](_0x4c729d){const _0x407980=_0x45bca4;return y(this['_table'][_0x407980(0x238)]()[_0x407980(0x29a)][_0x4c729d])?this[_0x407980(0x22b)]()[_0x407980(0x368)][_0x4c729d]??null:null;}[_0x45bca4(0x267)](){const _0x43e538=_0x45bca4;let _0x42d2b6=this[_0x43e538(0x232)]['getTable']();return Object[_0x43e538(0x290)](Object[_0x43e538(0x2d3)](this['_getRecord']()[_0x43e538(0x368)])[_0x43e538(0x243)](([_0x4ce2f9])=>y(_0x42d2b6[_0x43e538(0x29a)][_0x4ce2f9])));}['setValue'](_0x4d092a,_0x55f3a6){const _0x10457c=_0x45bca4;let _0x5da530=this[_0x10457c(0x232)]['getTable']()['fields'][_0x4d092a];return this['_commandService'][_0x10457c(0x354)](c[_0x10457c(0x378)]['id'],{'unitId':this[_0x10457c(0x1f5)][_0x10457c(0x2b7)](),'tableId':this[_0x10457c(0x232)][_0x10457c(0x2b7)](),'recordId':this['_recordId'],'fieldId':_0x4d092a,'value':x(_0x5da530,_0x55f3a6),'source':c[_0x10457c(0x33e)][_0x10457c(0x361)]});}['setAttachments'](_0x3f7016,_0x272880){const _0x5de68a=_0x45bca4;return this['setValue'](_0x3f7016,_0x272880[_0x5de68a(0x372)](_0x37a325=>({..._0x37a325})));}['getAttachments'](_0xd414b){const _0x5c8f12=_0x45bca4;this[_0x5c8f12(0x30f)](_0xd414b);let _0x3e0151=this['getValue'](_0xd414b);return Array[_0x5c8f12(0x2a2)](_0x3e0151)?_0x3e0151['map']((_0x3a93a8,_0x564288)=>R(_0x3a93a8,_0xd414b,_0x564288)):[];}[_0x45bca4(0x298)](_0x16ca73,_0x10fffe){const _0x21b960=_0x45bca4;this['_getAttachmentField'](_0x16ca73);let _0x106b42=new Set(_0x10fffe[_0x21b960(0x372)](_0x13b48d=>_0x13b48d['id']));if(!_0x106b42['size'])return!0x0;let _0x52b6ea=this[_0x21b960(0x224)](_0x16ca73),_0x527df3=_0x52b6ea['filter'](_0x94ea4c=>!_0x106b42[_0x21b960(0x390)](_0x94ea4c['id']));return _0x527df3[_0x21b960(0x319)]===_0x52b6ea[_0x21b960(0x319)]||this[_0x21b960(0x307)](_0x16ca73,_0x527df3);}[_0x45bca4(0x1fc)](_0x5169ac,_0x122a0d='id'){const _0x3d00ab=_0x45bca4;let _0x5b0cef=this[_0x3d00ab(0x232)][_0x3d00ab(0x238)](),_0x474998=[{'recordId':this[_0x3d00ab(0x34a)],'values':b(_0x5b0cef,_0x5169ac,_0x122a0d)}];return this[_0x3d00ab(0x33a)]['syncExecuteCommand'](c[_0x3d00ab(0x2d9)]['id'],{'unitId':this[_0x3d00ab(0x1f5)][_0x3d00ab(0x2b7)](),'tableId':this[_0x3d00ab(0x232)][_0x3d00ab(0x2b7)](),'patches':_0x474998,'source':c[_0x3d00ab(0x33e)]['Facade']});}['delete'](){const _0xb3180b=_0x45bca4;return this[_0xb3180b(0x33a)][_0xb3180b(0x354)](c[_0xb3180b(0x254)]['id'],{'unitId':this[_0xb3180b(0x1f5)][_0xb3180b(0x2b7)](),'tableId':this[_0xb3180b(0x232)]['getId'](),'recordId':this[_0xb3180b(0x34a)],'source':c[_0xb3180b(0x33e)][_0xb3180b(0x361)]});}[_0x45bca4(0x350)](_0x10796c){const _0x11a27b=_0x45bca4;let _0x31d01a={...this[_0x11a27b(0x22b)](),..._0x10796c,'id':(0x0,l[_0x11a27b(0x1ff)])(0x6)};_0x31d01a[_0x11a27b(0x368)]={..._0x31d01a[_0x11a27b(0x368)],..._0x10796c==null?void 0x0:_0x10796c[_0x11a27b(0x368)]},Reflect[_0x11a27b(0x2fd)](_0x31d01a[_0x11a27b(0x368)],l[_0x11a27b(0x281)]);let _0x140702=Date[_0x11a27b(0x2c6)]();if(_0x31d01a['orderKey']||=''+_0x140702,_0x31d01a[_0x11a27b(0x221)]||=_0x140702,_0x31d01a[_0x11a27b(0x383)]||=_0x140702,!this[_0x11a27b(0x33a)][_0x11a27b(0x354)](c['DuplicateBaseRecordCommand']['id'],{'unitId':this[_0x11a27b(0x1f5)][_0x11a27b(0x2b7)](),'tableId':this[_0x11a27b(0x232)][_0x11a27b(0x2b7)](),'sourceRecordId':this['_recordId'],'record':_0x31d01a,'source':c[_0x11a27b(0x33e)][_0x11a27b(0x361)]}))throw Error('[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22'+this['_recordId']+'\x22.');return this[_0x11a27b(0x27c)][_0x11a27b(0x293)](F,this[_0x11a27b(0x1f5)],this[_0x11a27b(0x232)],_0x31d01a['id'],this[_0x11a27b(0x27c)]);}[_0x45bca4(0x2a0)](_0x520792){const _0x469810=_0x45bca4;return this[_0x469810(0x33a)][_0x469810(0x354)](c['UpdateBaseRecordOrderCommand']['id'],{'unitId':this[_0x469810(0x1f5)][_0x469810(0x2b7)](),'tableId':this['_table'][_0x469810(0x2b7)](),'recordId':this['_recordId'],'orderKey':_0x520792});}[_0x45bca4(0x24a)](_0x252831){const _0x51af9c=_0x45bca4;let _0xbd5615=this[_0x51af9c(0x370)](_0x252831),_0x7d1b47=this['getValue'](_0xbd5615['id']);return(0x0,c[_0x51af9c(0x213)])(_0x7d1b47);}[_0x45bca4(0x393)](_0x281375,_0x327312){const _0x1c60f5=_0x45bca4;let _0x228c6d=this['_getRecordLinkField'](_0x281375),_0x11c6d7=(0x0,c[_0x1c60f5(0x38d)])(_0x327312),_0x49782e=(0x0,c[_0x1c60f5(0x2ee)])(this[_0x1c60f5(0x1f5)][_0x1c60f5(0x31b)]()[_0x1c60f5(0x384)](),_0x228c6d,_0x11c6d7);if(!_0x49782e[_0x1c60f5(0x22f)])throw Error(_0x49782e[_0x1c60f5(0x1ea)]??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this[_0x1c60f5(0x33a)][_0x1c60f5(0x354)](c['UpdateBaseCellCommand']['id'],{'unitId':this['_base'][_0x1c60f5(0x2b7)](),'tableId':this[_0x1c60f5(0x232)]['getId'](),'recordId':this['_recordId'],'fieldId':_0x281375,'value':_0x11c6d7,'source':c[_0x1c60f5(0x33e)][_0x1c60f5(0x361)]});}[_0x45bca4(0x373)](_0xadb7a4,_0x26b8e2){const _0x3b83e4=_0x45bca4;let _0x4c0ec9=this[_0x3b83e4(0x370)](_0xadb7a4),_0x31c91d=(0x0,c[_0x3b83e4(0x210)])(_0x4c0ec9);if(!_0x31c91d)throw Error('[FRecord]:\x20RecordLink\x20field\x20\x22'+_0xadb7a4+_0x3b83e4(0x2f3));let _0x34a272=this['getLinkedRecordIds'](_0xadb7a4);return _0x31c91d[_0x3b83e4(0x359)]&&_0x34a272[_0x3b83e4(0x389)](_0x26b8e2)?!0x0:this[_0x3b83e4(0x393)](_0xadb7a4,_0x31c91d[_0x3b83e4(0x359)]?[..._0x34a272,_0x26b8e2]:[_0x26b8e2]);}['removeLinkedRecord'](_0x366b82,_0x317358){const _0x5b5c78=_0x45bca4;let _0x1b8b66=this[_0x5b5c78(0x24a)](_0x366b82);return!_0x1b8b66[_0x5b5c78(0x389)](_0x317358)||this[_0x5b5c78(0x393)](_0x366b82,_0x1b8b66[_0x5b5c78(0x243)](_0x1bd94e=>_0x1bd94e!==_0x317358));}['getParent'](_0xedc8c4){const _0x25f550=_0x45bca4;let _0xbe4f9b=this[_0x25f550(0x31d)](_0xedc8c4)[_0x25f550(0x2f8)]['get'](this['_recordId'])??null;return _0xbe4f9b?this['_table']['getRecordById'](_0xbe4f9b):null;}[_0x45bca4(0x22c)](_0x4eff66){const _0x46f5ca=_0x45bca4;return(this[_0x46f5ca(0x31d)](_0x4eff66)[_0x46f5ca(0x31a)][_0x46f5ca(0x211)](this['_recordId'])??[])[_0x46f5ca(0x367)](_0xca5f18=>{const _0x1ea511=_0x46f5ca;let _0x44a5a9=this[_0x1ea511(0x232)][_0x1ea511(0x1e9)](_0xca5f18);return _0x44a5a9?[_0x44a5a9]:[];});}['getAncestors'](_0x5b902d){const _0xcb172e=_0x45bca4;let _0x569952=this['_getHierarchyIndex'](_0x5b902d),_0x141299=[],_0x504d47=_0x569952[_0xcb172e(0x2f8)][_0xcb172e(0x211)](this['_recordId'])??null;for(;_0x504d47;){let _0x59d36a=this[_0xcb172e(0x232)][_0xcb172e(0x1e9)](_0x504d47);_0x59d36a&&_0x141299[_0xcb172e(0x26d)](_0x59d36a),_0x504d47=_0x569952[_0xcb172e(0x2f8)][_0xcb172e(0x211)](_0x504d47)??null;}return _0x141299;}[_0x45bca4(0x21b)](_0x44b911){const _0x56fa1a=_0x45bca4;let _0x1629e0=this['_getHierarchyIndex'](_0x44b911),_0x2a2fdb=_0x1629e0['orderedRecordIds'][_0x56fa1a(0x27f)](this[_0x56fa1a(0x34a)]),_0x3e6b6d=_0x1629e0[_0x56fa1a(0x214)]['has'](this[_0x56fa1a(0x34a)])?this[_0x56fa1a(0x2af)](_0x1629e0[_0x56fa1a(0x31a)],this[_0x56fa1a(0x34a)]):[];return _0x2a2fdb<0x0?[]:_0x3e6b6d['flatMap'](_0x48c551=>{const _0x203385=_0x56fa1a;let _0x337fea=this['_table'][_0x203385(0x1e9)](_0x48c551);return _0x337fea?[_0x337fea]:[];});}[_0x45bca4(0x272)](_0x3e4682,_0x4666b9,_0x476c0d){const _0x58f280=_0x45bca4;return this[_0x58f280(0x33a)][_0x58f280(0x354)](c['MoveBaseHierarchyRecordCommand']['id'],{'unitId':this['_base'][_0x58f280(0x2b7)](),'tableId':this['_table'][_0x58f280(0x2b7)](),'fieldId':_0x3e4682,'recordId':this['_recordId'],'parentRecordId':_0x4666b9,'orderKey':_0x476c0d,'source':c[_0x58f280(0x33e)]['Facade']});}[_0x45bca4(0x2c2)](_0xb5f6bf,_0x2cea22,_0x52d7e8='id',_0x1d599f){const _0x5edba2=_0x45bca4;let _0x5329e5=this[_0x5edba2(0x232)][_0x5edba2(0x238)](),_0xe3ab15=Date['now'](),_0x56b601={..._0x1d599f,'id':(0x0,l['generateRandomId'])(0x6),'values':b(_0x5329e5,_0x2cea22,_0x52d7e8),'orderKey':(_0x1d599f==null?void 0x0:_0x1d599f[_0x5edba2(0x27e)])||''+_0xe3ab15,'createdAt':(_0x1d599f==null?void 0x0:_0x1d599f[_0x5edba2(0x221)])||_0xe3ab15,'updatedAt':(_0x1d599f==null?void 0x0:_0x1d599f['updatedAt'])||_0xe3ab15};if(!this[_0x5edba2(0x33a)]['syncExecuteCommand'](c[_0x5edba2(0x2df)]['id'],{'unitId':this[_0x5edba2(0x1f5)]['getId'](),'tableId':this[_0x5edba2(0x232)]['getId'](),'fieldId':_0xb5f6bf,'parentRecordId':this['_recordId'],'record':_0x56b601,'source':c[_0x5edba2(0x33e)]['Facade']}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this[_0x5edba2(0x34a)]+'\x22.');return this[_0x5edba2(0x27c)][_0x5edba2(0x293)](F,this['_base'],this[_0x5edba2(0x232)],_0x56b601['id'],this[_0x5edba2(0x27c)]);}[_0x45bca4(0x31d)](_0x5dc401){const _0x2ba956=_0x45bca4;return(0x0,c['buildBaseHierarchyIndex'])(this[_0x2ba956(0x232)][_0x2ba956(0x238)](),_0x5dc401);}[_0x45bca4(0x2af)](_0x35125a,_0x2e0c1e){let _0x2cabed=[],_0x25deef=_0x4c38d3=>{const _0x53b689=_0x53ac;for(let _0x843212 of _0x35125a[_0x53b689(0x211)](_0x4c38d3)??[])_0x2cabed[_0x53b689(0x26d)](_0x843212),_0x25deef(_0x843212);};return _0x25deef(_0x2e0c1e),_0x2cabed;}[_0x45bca4(0x22b)](){const _0x51ddcf=_0x45bca4;let _0x4cac9a=this[_0x51ddcf(0x232)][_0x51ddcf(0x238)]()['records'][this[_0x51ddcf(0x34a)]];if(!_0x4cac9a)throw Error('[FRecord]:\x20record\x20\x22'+this[_0x51ddcf(0x34a)]+_0x51ddcf(0x249));return _0x4cac9a;}[_0x45bca4(0x370)](_0x342fbf){const _0x415e22=_0x45bca4;let _0x1419d8=this[_0x415e22(0x232)]['getTable']()[_0x415e22(0x29a)][_0x342fbf];if(!_0x1419d8||_0x1419d8[_0x415e22(0x375)]!==l['BaseFieldType'][_0x415e22(0x2e5)])throw Error('[FRecord]:\x20field\x20\x22'+_0x342fbf+_0x415e22(0x34c));return _0x1419d8;}['_getAttachmentField'](_0x438360){const _0x4376ff=_0x45bca4;let _0x44868f=this['_table'][_0x4376ff(0x238)]()[_0x4376ff(0x29a)][_0x438360];if(!_0x44868f||_0x44868f['type']!==l[_0x4376ff(0x321)][_0x4376ff(0x256)])throw Error('[FRecord]:\x20field\x20\x22'+_0x438360+_0x4376ff(0x246));return _0x44868f;}};I=F=g([h(0x4,l['ICommandService']),h(0x5,l['IPermissionService'])],I);function L(_0x4866fe){const _0xd044b=_0x45bca4;return!!(_0x4866fe&&typeof _0x4866fe==_0xd044b(0x329)&&'id'in _0x4866fe&&typeof _0x4866fe['id']==_0xd044b(0x226)&&_0xd044b(0x33c)in _0x4866fe&&typeof _0x4866fe[_0xd044b(0x33c)]==_0xd044b(0x226));}function R(_0x3650cc,_0x4198cf,_0x6bc532){const _0x202ca9=_0x45bca4;if(!L(_0x3650cc))throw Error(_0x202ca9(0x275)+_0x6bc532+_0x202ca9(0x2e6)+_0x4198cf+_0x202ca9(0x2ea));return{..._0x3650cc};}let z=class{constructor(_0x438d15,_0xbb766e,_0x1ae2b1,_0x3932a6,_0x55111c,_0x23112a,_0x338c5f){const _0x2471bc=_0x45bca4;this[_0x2471bc(0x1f5)]=_0x438d15,this[_0x2471bc(0x232)]=_0xbb766e,this[_0x2471bc(0x215)]=_0x1ae2b1,this[_0x2471bc(0x27c)]=_0x3932a6,this['_commandService']=_0x55111c,this[_0x2471bc(0x2ae)]=_0x23112a,this[_0x2471bc(0x262)]=_0x338c5f;}[_0x45bca4(0x2b7)](){const _0x3a21b3=_0x45bca4;return this[_0x3a21b3(0x215)];}[_0x45bca4(0x349)](){const _0x1f8aba=_0x45bca4;let _0x855d1e=this['_table'][_0x1f8aba(0x2b7)]();return new m(this[_0x1f8aba(0x1f5)][_0x1f8aba(0x2b7)](),(0x0,c['getBaseViewPermissionObjectId'])(_0x855d1e,this[_0x1f8aba(0x215)]),[(0x0,c[_0x1f8aba(0x2b9)])(_0x855d1e)],this[_0x1f8aba(0x33a)],this[_0x1f8aba(0x2ae)]);}[_0x45bca4(0x217)](){return this['_getView']();}['getName'](){const _0x22ccf7=_0x45bca4;return this['_getView']()[_0x22ccf7(0x33c)];}['getType'](){const _0x250a3d=_0x45bca4;return this[_0x250a3d(0x346)]()[_0x250a3d(0x375)];}[_0x45bca4(0x355)](_0x2a7cbb){const _0x46fd7a=_0x45bca4;return this['_commandService']['syncExecuteCommand'](c[_0x46fd7a(0x288)]['id'],{'unitId':this[_0x46fd7a(0x1f5)][_0x46fd7a(0x2b7)](),'tableId':this[_0x46fd7a(0x232)][_0x46fd7a(0x2b7)](),'viewId':this[_0x46fd7a(0x215)],'name':_0x2a7cbb});}['getConfig'](){const _0x15a555=_0x45bca4;let _0x389b80=this['getType'](),_0x6b5528=this['_getView']()[_0x15a555(0x35a)];switch(_0x389b80){case l[_0x15a555(0x2ff)][_0x15a555(0x2a1)]:return _0x6b5528;case l[_0x15a555(0x2ff)][_0x15a555(0x337)]:return _0x6b5528;case l[_0x15a555(0x2ff)][_0x15a555(0x324)]:return _0x6b5528;case l[_0x15a555(0x2ff)][_0x15a555(0x35c)]:return _0x6b5528;case l[_0x15a555(0x2ff)][_0x15a555(0x2cc)]:return _0x6b5528;default:return _0x6b5528;}}[_0x45bca4(0x2b6)](_0x25fe48){const _0x2793d4=_0x45bca4;return this[_0x2793d4(0x33a)][_0x2793d4(0x354)](c['UpdateBaseViewConfigCommand']['id'],{'unitId':this['_base'][_0x2793d4(0x2b7)](),'tableId':this['_table'][_0x2793d4(0x2b7)](),'viewId':this[_0x2793d4(0x215)],'patch':_0x25fe48});}['getConditionalColorRules'](){const _0xb8abda=_0x45bca4;var _0x21bac5;return l[_0xb8abda(0x24b)][_0xb8abda(0x326)](((_0x21bac5=this['_getView']()[_0xb8abda(0x35a)][_0xb8abda(0x313)])==null?void 0x0:_0x21bac5['rules'])??[]);}['setConditionalColorRules'](_0x1c975c){const _0x41cc54=_0x45bca4;return this[_0x41cc54(0x33a)][_0x41cc54(0x354)](c[_0x41cc54(0x2dc)]['id'],{'unitId':this[_0x41cc54(0x1f5)][_0x41cc54(0x2b7)](),'tableId':this[_0x41cc54(0x232)][_0x41cc54(0x2b7)](),'viewId':this[_0x41cc54(0x215)],'type':c[_0x41cc54(0x1ec)][_0x41cc54(0x21e)],'rules':_0x1c975c});}[_0x45bca4(0x286)](_0x17f0d0){const _0x1814c2=_0x45bca4;return this[_0x1814c2(0x33a)][_0x1814c2(0x354)](c[_0x1814c2(0x2dc)]['id'],{'unitId':this[_0x1814c2(0x1f5)][_0x1814c2(0x2b7)](),'tableId':this[_0x1814c2(0x232)][_0x1814c2(0x2b7)](),'viewId':this[_0x1814c2(0x215)],'type':c['BaseConditionalColorRuleUpdateType'][_0x1814c2(0x299)],'rule':_0x17f0d0});}[_0x45bca4(0x32a)](_0x4b776d){const _0x124766=_0x45bca4;return this[_0x124766(0x33a)][_0x124766(0x354)](c[_0x124766(0x2dc)]['id'],{'unitId':this[_0x124766(0x1f5)][_0x124766(0x2b7)](),'tableId':this['_table'][_0x124766(0x2b7)](),'viewId':this[_0x124766(0x215)],'type':c[_0x124766(0x1ec)][_0x124766(0x1eb)],'ruleId':_0x4b776d});}[_0x45bca4(0x2e7)](){const _0x58a418=_0x45bca4;return this[_0x58a418(0x33a)][_0x58a418(0x354)](c[_0x58a418(0x2dc)]['id'],{'unitId':this[_0x58a418(0x1f5)][_0x58a418(0x2b7)](),'tableId':this[_0x58a418(0x232)][_0x58a418(0x2b7)](),'viewId':this[_0x58a418(0x215)],'type':c[_0x58a418(0x1ec)]['Clear']});}[_0x45bca4(0x2a3)](){const _0x40561c=_0x45bca4;return this['_getView']()[_0x40561c(0x243)]??null;}[_0x45bca4(0x231)](_0x1a6949){const _0x4153d1=_0x45bca4;return this[_0x4153d1(0x33a)][_0x4153d1(0x354)](c['SetBaseViewFilterCommand']['id'],{'unitId':this[_0x4153d1(0x1f5)][_0x4153d1(0x2b7)](),'tableId':this['_table'][_0x4153d1(0x2b7)](),'viewId':this[_0x4153d1(0x215)],'filter':_0x1a6949});}[_0x45bca4(0x2fe)](){const _0x48ce6b=_0x45bca4;return this[_0x48ce6b(0x346)]()[_0x48ce6b(0x20b)]??[];}['setSort'](_0x49bb84){const _0x197bae=_0x45bca4;return this[_0x197bae(0x33a)][_0x197bae(0x354)](c['SetBaseViewSortCommand']['id'],{'unitId':this['_base'][_0x197bae(0x2b7)](),'tableId':this[_0x197bae(0x232)][_0x197bae(0x2b7)](),'viewId':this[_0x197bae(0x215)],'sort':_0x49bb84});}['getGroup'](){const _0x10b3e6=_0x45bca4;return this[_0x10b3e6(0x346)]()[_0x10b3e6(0x332)]??[];}[_0x45bca4(0x257)](_0x13bf79){const _0x548187=_0x45bca4;return this[_0x548187(0x33a)][_0x548187(0x354)](c[_0x548187(0x304)]['id'],{'unitId':this['_base'][_0x548187(0x2b7)](),'tableId':this[_0x548187(0x232)]['getId'](),'viewId':this[_0x548187(0x215)],'group':_0x13bf79});}['getFieldSettings'](_0x4a0e9b){const _0x1b5ada=_0x45bca4;var _0x29feea;return y(this[_0x1b5ada(0x232)][_0x1b5ada(0x238)]()[_0x1b5ada(0x29a)][_0x4a0e9b])?((_0x29feea=this['_getView']()[_0x1b5ada(0x1fa)])==null?void 0x0:_0x29feea[_0x4a0e9b])??{}:{};}['getVisibleFields'](){const _0x4d8f7f=_0x45bca4;let _0x425e67=this[_0x4d8f7f(0x232)][_0x4d8f7f(0x238)](),_0x4ef4d1=this['_getView']();return(_0x4ef4d1[_0x4d8f7f(0x271)]??_0x425e67[_0x4d8f7f(0x271)])['filter'](_0x1f5fb8=>{const _0x5ae29c=_0x4d8f7f;var _0x2b90fe;let _0x5d3fb9=_0x425e67['fields'][_0x1f5fb8];return y(_0x5d3fb9)&&!((_0x2b90fe=_0x4ef4d1[_0x5ae29c(0x1fa)])!=null&&(_0x2b90fe=_0x2b90fe[_0x1f5fb8])!=null&&_0x2b90fe['hidden']);})[_0x4d8f7f(0x372)](_0x7fb880=>this[_0x4d8f7f(0x27c)]['createInstance'](_,this[_0x4d8f7f(0x1f5)],this[_0x4d8f7f(0x232)],_0x7fb880));}[_0x45bca4(0x282)](_0x27d4b8,_0x34defc){const _0x49560d=_0x45bca4;return y(this[_0x49560d(0x232)][_0x49560d(0x238)]()[_0x49560d(0x29a)][_0x27d4b8])?this['_commandService'][_0x49560d(0x354)](c['SetBaseViewFieldVisibleCommand']['id'],{'unitId':this[_0x49560d(0x1f5)]['getId'](),'tableId':this[_0x49560d(0x232)][_0x49560d(0x2b7)](),'viewId':this['_viewId'],'fieldId':_0x27d4b8,'visible':_0x34defc}):!0x1;}[_0x45bca4(0x216)](_0xf33c5e,_0x44c25e){const _0x583f24=_0x45bca4;return y(this['_table']['getTable']()['fields'][_0xf33c5e])?this[_0x583f24(0x33a)]['syncExecuteCommand'](c[_0x583f24(0x23c)]['id'],{'unitId':this[_0x583f24(0x1f5)][_0x583f24(0x2b7)](),'tableId':this[_0x583f24(0x232)][_0x583f24(0x2b7)](),'viewId':this[_0x583f24(0x215)],'fieldId':_0xf33c5e,'width':_0x44c25e}):!0x1;}[_0x45bca4(0x1f1)](_0x2d83c5,_0x19c93a){const _0x7eaa83=_0x45bca4;let _0x2e8dc8=this[_0x7eaa83(0x232)][_0x7eaa83(0x238)](),_0x26e779=_0x19c93a[_0x7eaa83(0x353)]??_0x19c93a[_0x7eaa83(0x381)];return!y(_0x2e8dc8['fields'][_0x2d83c5])||!_0x26e779||!y(_0x2e8dc8[_0x7eaa83(0x29a)][_0x26e779])?!0x1:this[_0x7eaa83(0x33a)]['syncExecuteCommand'](c[_0x7eaa83(0x225)]['id'],{'unitId':this[_0x7eaa83(0x1f5)][_0x7eaa83(0x2b7)](),'tableId':this[_0x7eaa83(0x232)][_0x7eaa83(0x2b7)](),'viewId':this[_0x7eaa83(0x215)],'fieldId':_0x2d83c5,'target':_0x19c93a});}[_0x45bca4(0x32f)](_0x4f6b36){const _0x1a1e2c=_0x45bca4;return this[_0x1a1e2c(0x33a)][_0x1a1e2c(0x354)](c['MoveBaseViewCommand']['id'],{'unitId':this[_0x1a1e2c(0x1f5)][_0x1a1e2c(0x2b7)](),'tableId':this[_0x1a1e2c(0x232)][_0x1a1e2c(0x2b7)](),'viewId':this[_0x1a1e2c(0x215)],'target':_0x4f6b36});}[_0x45bca4(0x36c)](){const _0x3b45df=_0x45bca4;return this['_commandService']['syncExecuteCommand'](c['DeleteBaseViewCommand']['id'],{'unitId':this[_0x3b45df(0x1f5)][_0x3b45df(0x2b7)](),'tableId':this[_0x3b45df(0x232)][_0x3b45df(0x2b7)](),'viewId':this[_0x3b45df(0x215)]});}[_0x45bca4(0x2d8)](){const _0x162ed4=_0x45bca4;return this['_projectionService']['getProjection'](this[_0x162ed4(0x1f5)]['getBase']()['getSnapshot'](),this[_0x162ed4(0x232)]['getId'](),this[_0x162ed4(0x215)]);}[_0x45bca4(0x346)](){const _0x4f2dca=_0x45bca4;let _0x3de931=this[_0x4f2dca(0x232)][_0x4f2dca(0x238)]()['views'][this[_0x4f2dca(0x215)]];if(!_0x3de931)throw Error('[FView]:\x20view\x20\x22'+this['_viewId']+_0x4f2dca(0x249));return _0x3de931;}};z=g([h(0x4,l[_0x45bca4(0x203)]),h(0x5,l[_0x45bca4(0x2c8)]),h(0x6,c[_0x45bca4(0x200)])],z);let B=class{constructor(_0x20f365,_0xf4edb5,_0x2e309b,_0x132a4d,_0x50f8ab,_0x446bcb){const _0x472baa=_0x45bca4;this[_0x472baa(0x1f5)]=_0x20f365,this[_0x472baa(0x268)]=_0xf4edb5,this[_0x472baa(0x27c)]=_0x2e309b,this[_0x472baa(0x33a)]=_0x132a4d,this['_permissionService']=_0x50f8ab,this[_0x472baa(0x262)]=_0x446bcb;}[_0x45bca4(0x31b)](){const _0x3b9479=_0x45bca4;return this[_0x3b9479(0x1f5)]['getBase']();}[_0x45bca4(0x238)](){return this['_getTable']();}[_0x45bca4(0x2b7)](){return this['_tableId'];}[_0x45bca4(0x349)](){const _0x3958ef=_0x45bca4;return new m(this[_0x3958ef(0x31b)]()[_0x3958ef(0x35f)](),(0x0,c['getBaseTablePermissionObjectId'])(this['_tableId']),[],this[_0x3958ef(0x33a)],this[_0x3958ef(0x2ae)]);}[_0x45bca4(0x335)](){const _0x51ea21=_0x45bca4;return(0x0,c['resolveBaseHierarchyFieldId'])(this[_0x51ea21(0x273)]());}[_0x45bca4(0x2d6)](_0x343272){const _0x2e0257=_0x45bca4;return this[_0x2e0257(0x33a)][_0x2e0257(0x354)](c[_0x2e0257(0x2e2)]['id'],{'unitId':this[_0x2e0257(0x1f5)]['getId'](),'tableId':this[_0x2e0257(0x268)],'fieldId':_0x343272});}[_0x45bca4(0x379)](){const _0xda0d0c=_0x45bca4;return this[_0xda0d0c(0x273)]()[_0xda0d0c(0x33c)];}[_0x45bca4(0x236)](){const _0x30b5bf=_0x45bca4;let _0x15f1a2=this[_0x30b5bf(0x1f5)][_0x30b5bf(0x31b)]()[_0x30b5bf(0x384)]();return(0x0,c[_0x30b5bf(0x334)])(this[_0x30b5bf(0x273)](),_0x15f1a2);}[_0x45bca4(0x355)](_0x789b9b){const _0x31195d=_0x45bca4;let _0x4014ab=(0x0,c[_0x31195d(0x2ec)])(this[_0x31195d(0x1f5)][_0x31195d(0x31b)]()['getSnapshot'](),_0x789b9b,this[_0x31195d(0x268)]);if(!_0x4014ab[_0x31195d(0x22f)])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x789b9b+_0x31195d(0x391)+c[_0x31195d(0x264)]+'\x20'+_0x4014ab[_0x31195d(0x1ea)]);return this[_0x31195d(0x33a)][_0x31195d(0x354)](c['RenameBaseTableCommand']['id'],{'unitId':this[_0x31195d(0x1f5)][_0x31195d(0x2b7)](),'tableId':this[_0x31195d(0x268)],'name':_0x789b9b});}[_0x45bca4(0x31c)](_0x3e8558,_0x15b33c){const _0x4b2278=_0x45bca4;let _0x12f7b3=this['_base'][_0x4b2278(0x31b)]()[_0x4b2278(0x384)](),_0x550f38=this[_0x4b2278(0x273)]();if(_0x15b33c){let _0xa86720=this[_0x4b2278(0x262)][_0x4b2278(0x2d8)](_0x12f7b3,this['_tableId'],_0x15b33c),_0x3cff5c=_0x550f38[_0x4b2278(0x24e)][_0x15b33c],_0x340596=_0x3e8558[_0x4b2278(0x338)]??J(_0x550f38,_0x3cff5c,_0xa86720),_0x4f00e7=_0x4b2278(0x2e8)in _0xa86720&&Array[_0x4b2278(0x2a2)](_0xa86720['rows'])?_0xa86720[_0x4b2278(0x2e8)]:[];return(0x0,c[_0x4b2278(0x37a)])({..._0x3e8558,'table':_0x550f38,'fieldIds':_0x340596,'rows':_0x4f00e7});}let _0x3bebb7=(_0x550f38[_0x4b2278(0x269)]?_0x550f38[_0x4b2278(0x269)][_0x4b2278(0x372)](_0x183290=>_0x550f38[_0x4b2278(0x363)][_0x183290]):Object[_0x4b2278(0x368)](_0x550f38['records'])['sort']((_0x47f889,_0x23775d)=>_0x47f889['orderKey']['localeCompare'](_0x23775d['orderKey'])))[_0x4b2278(0x243)](_0x4e0cae=>_0x4e0cae)[_0x4b2278(0x372)](_0x26930e=>({'recordId':_0x26930e['id'],'values':_0x26930e[_0x4b2278(0x368)]})),_0x20d50d=_0x3e8558['fieldIds']??_0x550f38[_0x4b2278(0x271)][_0x4b2278(0x243)](_0xf56632=>y(_0x550f38['fields'][_0xf56632]));return(0x0,c[_0x4b2278(0x37a)])({..._0x3e8558,'table':_0x550f38,'fieldIds':_0x20d50d,'rows':_0x3bebb7});}[_0x45bca4(0x234)](){const _0x22ff17=_0x45bca4;return this['_getTable']()[_0x22ff17(0x23d)];}[_0x45bca4(0x1f6)](){const _0x20eb93=_0x45bca4;let _0x367a3d=this['_getTable']();return _0x367a3d['fieldOrder'][_0x20eb93(0x372)](_0xec1fa9=>_0x367a3d['fields'][_0xec1fa9])[_0x20eb93(0x243)](y)[_0x20eb93(0x372)](_0x7e2433=>this[_0x20eb93(0x27c)][_0x20eb93(0x293)](_,this[_0x20eb93(0x1f5)],this,_0x7e2433['id']));}[_0x45bca4(0x2ce)](_0x86444c){const _0x5aa371=_0x45bca4;let _0x9c0b7a=this['_getTable']()['fields'][_0x86444c];return y(_0x9c0b7a)?this['_injector'][_0x5aa371(0x293)](_,this[_0x5aa371(0x1f5)],this,_0x9c0b7a['id']):null;}[_0x45bca4(0x250)](_0x41a054){const _0x557f33=_0x45bca4;let _0x5ecaff=this[_0x557f33(0x273)]()[_0x557f33(0x29a)],_0x5bfeff=Object[_0x557f33(0x368)](_0x5ecaff)[_0x557f33(0x345)](_0x4a15c4=>y(_0x4a15c4)&&_0x4a15c4[_0x557f33(0x33c)]===_0x41a054);return _0x5bfeff?this[_0x557f33(0x27c)][_0x557f33(0x293)](_,this['_base'],this,_0x5bfeff['id']):null;}[_0x45bca4(0x2f5)](){const _0x3a8b51=_0x45bca4;let _0x40894e=this[_0x3a8b51(0x273)]()['primaryFieldId'];return this[_0x3a8b51(0x27c)][_0x3a8b51(0x293)](_,this[_0x3a8b51(0x1f5)],this,_0x40894e);}['addField'](_0x15acf1,_0x5d84a3,_0x1d5aef){const _0x4fee56=_0x45bca4;var _0x354bb2,_0x4d77dc;if(!Object['values'](l[_0x4fee56(0x321)])['some'](_0xb04341=>_0xb04341===_0x5d84a3))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x5d84a3)+'\x22.');if(_0x5d84a3===l[_0x4fee56(0x321)]['Formula']&&this[_0x4fee56(0x28e)](_0x15acf1,_0x1d5aef),_0x5d84a3===l[_0x4fee56(0x321)][_0x4fee56(0x2e5)]&&(typeof(_0x1d5aef==null||(_0x354bb2=_0x1d5aef[_0x4fee56(0x228)])==null||(_0x354bb2=_0x354bb2[_0x4fee56(0x35a)])==null?void 0x0:_0x354bb2['targetTableId'])!=_0x4fee56(0x226)||typeof _0x1d5aef[_0x4fee56(0x228)][_0x4fee56(0x35a)]['multiple']!=_0x4fee56(0x347)))throw Error(_0x4fee56(0x2cb));let _0x2516d3={..._0x1d5aef==null?void 0x0:_0x1d5aef[_0x4fee56(0x228)],'id':(0x0,l[_0x4fee56(0x1ff)])(0x6),'name':_0x15acf1,'type':_0x5d84a3,'config':(_0x1d5aef==null||(_0x4d77dc=_0x1d5aef[_0x4fee56(0x228)])==null?void 0x0:_0x4d77dc['config'])??{}};if(!this['_commandService'][_0x4fee56(0x354)](c[_0x4fee56(0x2c1)]['id'],{'unitId':this['_base'][_0x4fee56(0x2b7)](),'tableId':this[_0x4fee56(0x268)],'field':_0x2516d3,'index':_0x1d5aef==null?void 0x0:_0x1d5aef[_0x4fee56(0x252)]}))throw Error(_0x4fee56(0x261)+_0x15acf1+'\x22');return this['_injector'][_0x4fee56(0x293)](_,this['_base'],this,_0x2516d3['id']);}[_0x45bca4(0x28e)](_0x23bad5,_0x23c77c){const _0x1890de=_0x45bca4;var _0xf2d7b6;if(!_0x23c77c||!(_0x1890de(0x253)in _0x23c77c)||!Array[_0x1890de(0x2a2)](_0x23c77c[_0x1890de(0x253)]))throw Error('Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.');let _0x1fd8aa=this[_0x1890de(0x33a)][_0x1890de(0x354)](c[_0x1890de(0x284)]['id'],{'unitId':this[_0x1890de(0x1f5)][_0x1890de(0x2b7)](),'tableId':this['_tableId'],'formula':String(((_0xf2d7b6=_0x23c77c[_0x1890de(0x228)])==null||(_0xf2d7b6=_0xf2d7b6[_0x1890de(0x35a)])==null?void 0x0:_0xf2d7b6['formula'])??'')});if(!_0x1fd8aa[_0x1890de(0x22f)])throw Error(_0x1fd8aa[_0x1890de(0x1ea)]??_0x1890de(0x2db));if(_0x23c77c[_0x1890de(0x253)][_0x1890de(0x319)]>0x0&&!this[_0x1890de(0x33a)][_0x1890de(0x354)](f[_0x1890de(0x37c)]['id'],{'unitId':this['_base'][_0x1890de(0x2b7)](),'references':_0x23c77c[_0x1890de(0x253)]}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0x23bad5+'\x22');}[_0x45bca4(0x29c)](){const _0x3311f9=_0x45bca4;return this[_0x3311f9(0x1f9)]()[_0x3311f9(0x372)](_0x105b0e=>this[_0x3311f9(0x27c)][_0x3311f9(0x293)](I,this['_base'],this,_0x105b0e,this['_injector']));}[_0x45bca4(0x1e9)](_0x3d059c){const _0x2264a8=_0x45bca4;return this[_0x2264a8(0x273)]()['records'][_0x3d059c]?this['_injector']['createInstance'](I,this[_0x2264a8(0x1f5)],this,_0x3d059c,this[_0x2264a8(0x27c)]):null;}[_0x45bca4(0x274)](_0x1c7e9d={}){const _0x2efa04=_0x45bca4;let _0x1091eb=this['_getTable'](),_0x3fe995=this['_resolveRecordIds'](_0x1c7e9d),_0xeb1a7b=Math[_0x2efa04(0x35e)](0x0,_0x1c7e9d[_0x2efa04(0x320)]??0x0),_0x407060=_0x1c7e9d[_0x2efa04(0x291)]==null?null:Math[_0x2efa04(0x35e)](0x0,_0x1c7e9d['limit']),_0x31887c=H(_0x3fe995['map'](_0x3f2244=>_0x1091eb[_0x2efa04(0x363)][_0x3f2244])[_0x2efa04(0x243)](_0x4636be=>W(_0x4636be,_0x1091eb,_0x1c7e9d['filter'])),_0x1091eb,_0x1c7e9d[_0x2efa04(0x20b)]);return{'records':V(_0x31887c,_0x1c7e9d)[_0x2efa04(0x372)](_0x4e6cb6=>this['_injector']['createInstance'](I,this['_base'],this,_0x4e6cb6['id'],this[_0x2efa04(0x27c)])),'total':_0x31887c[_0x2efa04(0x319)],'offset':_0xeb1a7b,'limit':_0x407060,'hasMore':_0x407060!=null&&_0xeb1a7b+_0x407060<_0x31887c[_0x2efa04(0x319)]};}[_0x45bca4(0x380)](_0x2267af,_0x5e494c='id',_0x2243e6){const _0x2682b1=_0x45bca4;let _0x4e6be4=this[_0x2682b1(0x273)](),_0x1045fd=Date[_0x2682b1(0x2c6)](),_0x1ef5b7={..._0x2243e6,'id':(0x0,l[_0x2682b1(0x1ff)])(0x6),'values':b(_0x4e6be4,_0x2267af,_0x5e494c),'orderKey':(_0x2243e6==null?void 0x0:_0x2243e6[_0x2682b1(0x27e)])||''+_0x1045fd,'createdAt':(_0x2243e6==null?void 0x0:_0x2243e6[_0x2682b1(0x221)])||_0x1045fd,'updatedAt':(_0x2243e6==null?void 0x0:_0x2243e6[_0x2682b1(0x383)])||_0x1045fd};if(!this[_0x2682b1(0x33a)][_0x2682b1(0x354)](c[_0x2682b1(0x382)]['id'],{'unitId':this[_0x2682b1(0x1f5)][_0x2682b1(0x2b7)](),'tableId':this[_0x2682b1(0x268)],'record':_0x1ef5b7,'source':c[_0x2682b1(0x33e)][_0x2682b1(0x361)]}))throw Error(_0x2682b1(0x2d0)+_0x1ef5b7['id']+'\x22');return this[_0x2682b1(0x27c)][_0x2682b1(0x293)](I,this['_base'],this,_0x1ef5b7['id'],this[_0x2682b1(0x27c)]);}[_0x45bca4(0x34b)](_0x104a20){const _0x29a121=_0x45bca4;if(!_0x104a20['length'])return[];let _0x3e5785=this[_0x29a121(0x273)](),_0x258f94=Date[_0x29a121(0x2c6)](),_0x9158c1=_0x104a20['map']((_0x481e46,_0x1c6eba)=>{const _0x4759ec=_0x29a121;var _0x2cbb00,_0xdd155e,_0x45cc1c;return{..._0x481e46[_0x4759ec(0x263)],'id':(0x0,l[_0x4759ec(0x1ff)])(0x6),'values':b(_0x3e5785,_0x481e46['values'],_0x481e46[_0x4759ec(0x230)]??'id'),'orderKey':((_0x2cbb00=_0x481e46['record'])==null?void 0x0:_0x2cbb00['orderKey'])||''+(_0x258f94+_0x1c6eba),'createdAt':((_0xdd155e=_0x481e46[_0x4759ec(0x263)])==null?void 0x0:_0xdd155e['createdAt'])||_0x258f94,'updatedAt':((_0x45cc1c=_0x481e46[_0x4759ec(0x263)])==null?void 0x0:_0x45cc1c[_0x4759ec(0x383)])||_0x258f94};});if(!this[_0x29a121(0x33a)][_0x29a121(0x354)](c['BatchCreateBaseRecordsCommand']['id'],{'unitId':this[_0x29a121(0x1f5)][_0x29a121(0x2b7)](),'tableId':this[_0x29a121(0x268)],'records':_0x9158c1,'source':c[_0x29a121(0x33e)][_0x29a121(0x361)]}))throw Error(_0x29a121(0x1fe));return _0x9158c1['map'](_0x444487=>this[_0x29a121(0x27c)]['createInstance'](I,this[_0x29a121(0x1f5)],this,_0x444487['id'],this['_injector']));}[_0x45bca4(0x242)](_0x1c0ecd){const _0x54e512=_0x45bca4;return!_0x1c0ecd[_0x54e512(0x319)]||this['_commandService'][_0x54e512(0x354)](c['BatchDeleteBaseRecordsCommand']['id'],{'unitId':this[_0x54e512(0x1f5)][_0x54e512(0x2b7)](),'tableId':this[_0x54e512(0x268)],'recordIds':_0x1c0ecd,'source':c[_0x54e512(0x33e)]['Facade']});}['getRange'](_0x1922a7,_0x4f943b,_0x4aea4f=0x1,_0x1ecff6=0x1){const _0x17f6c4=_0x45bca4;return this[_0x17f6c4(0x27c)][_0x17f6c4(0x293)](A,this[_0x17f6c4(0x1f5)],this,{'startRow':_0x1922a7,'endRow':_0x1922a7+_0x4aea4f-0x1,'startColumn':_0x4f943b,'endColumn':_0x4f943b+_0x1ecff6-0x1},this[_0x17f6c4(0x27c)]);}[_0x45bca4(0x365)](){const _0x195bb8=_0x45bca4;var _0x3df4da;let _0x1a3f2f=(0x0,c[_0x195bb8(0x20d)])(this['_getTable']()),_0x3ad2be=((_0x3df4da=_0x1a3f2f[_0x195bb8(0x269)])==null?void 0x0:_0x3df4da['length'])??0x0,_0x34a0c2=_0x1a3f2f[_0x195bb8(0x271)][_0x195bb8(0x243)](_0x327d6c=>y(_0x1a3f2f[_0x195bb8(0x29a)][_0x327d6c]))[_0x195bb8(0x319)];return this[_0x195bb8(0x305)](0x0,0x0,Math[_0x195bb8(0x35e)](_0x3ad2be,0x1),Math[_0x195bb8(0x35e)](_0x34a0c2,0x1));}[_0x45bca4(0x25b)](){const _0x927a9e=_0x45bca4;let _0x5b48c8=this['_getTable']();return _0x5b48c8[_0x927a9e(0x331)]['filter'](_0x325c72=>_0x5b48c8['views'][_0x325c72])['map'](_0x2e3ea3=>this[_0x927a9e(0x27c)][_0x927a9e(0x293)](z,this['_base'],this,_0x2e3ea3,this[_0x927a9e(0x27c)]));}[_0x45bca4(0x28f)](_0x53a29e){const _0x1c618b=_0x45bca4;return this[_0x1c618b(0x273)]()[_0x1c618b(0x24e)][_0x53a29e]?this[_0x1c618b(0x27c)]['createInstance'](z,this['_base'],this,_0x53a29e,this[_0x1c618b(0x27c)]):null;}[_0x45bca4(0x2da)](_0xa1599a){const _0x30840b=_0x45bca4;let _0xbcb25f=this[_0x30840b(0x273)](),_0x370caf=Object[_0x30840b(0x368)](_0xbcb25f[_0x30840b(0x24e)])[_0x30840b(0x345)](_0x5865f=>_0x5865f[_0x30840b(0x33c)]===_0xa1599a);return _0x370caf?this['_injector'][_0x30840b(0x293)](z,this[_0x30840b(0x1f5)],this,_0x370caf['id'],this[_0x30840b(0x27c)]):null;}[_0x45bca4(0x1f7)](_0x9db786,_0x3ea485,_0x23d889){const _0x12d33b=_0x45bca4;var _0x16abc6,_0x4796eb,_0x29162b,_0x49ef5d;let _0x58aad5=this[_0x12d33b(0x273)](),_0x59750c=(_0x23d889==null||(_0x16abc6=_0x23d889[_0x12d33b(0x38b)])==null?void 0x0:_0x16abc6[_0x12d33b(0x271)])??_0x58aad5['fieldOrder'],_0x1f208e=[l['BASE_RECORD_ID_FIELD_ID'],..._0x59750c[_0x12d33b(0x243)](_0x25ab64=>y(_0x58aad5[_0x12d33b(0x29a)][_0x25ab64]))],_0x39dac6={..._0x23d889==null?void 0x0:_0x23d889[_0x12d33b(0x38b)],'id':(0x0,l[_0x12d33b(0x1ff)])(0x6),'name':_0x9db786,'type':_0x3ea485,'tableId':this[_0x12d33b(0x268)],'config':(_0x23d889==null||(_0x4796eb=_0x23d889[_0x12d33b(0x38b)])==null?void 0x0:_0x4796eb[_0x12d33b(0x35a)])??{},'fieldOrder':_0x1f208e,'fieldSettings':{..._0x23d889==null||(_0x29162b=_0x23d889[_0x12d33b(0x38b)])==null?void 0x0:_0x29162b['fieldSettings'],[l[_0x12d33b(0x281)]]:{..._0x23d889==null||(_0x49ef5d=_0x23d889[_0x12d33b(0x38b)])==null||(_0x49ef5d=_0x49ef5d[_0x12d33b(0x1fa)])==null?void 0x0:_0x49ef5d[l['BASE_RECORD_ID_FIELD_ID']],'hidden':!0x0}}};if(!this[_0x12d33b(0x33a)][_0x12d33b(0x354)](c[_0x12d33b(0x2bb)]['id'],{'unitId':this[_0x12d33b(0x1f5)][_0x12d33b(0x2b7)](),'tableId':this[_0x12d33b(0x268)],'view':_0x39dac6,'index':_0x23d889==null?void 0x0:_0x23d889['index']}))throw Error(_0x12d33b(0x336)+_0x9db786+'\x22');return this[_0x12d33b(0x27c)][_0x12d33b(0x293)](z,this[_0x12d33b(0x1f5)],this,_0x39dac6['id'],this['_injector']);}[_0x45bca4(0x28a)](){const _0x50363e=_0x45bca4;let _0x4daa37=this[_0x50363e(0x273)](),_0x1f253c=_0x4daa37['fieldOrder']['filter'](_0x19de7d=>y(_0x4daa37[_0x50363e(0x29a)][_0x19de7d])),_0x425a40=_0x4daa37['viewOrder'][_0x50363e(0x243)](_0x45da41=>_0x4daa37['views'][_0x45da41]);return{'id':_0x4daa37['id'],'name':_0x4daa37[_0x50363e(0x33c)],'formulaName':this[_0x50363e(0x236)](),'primaryFieldId':_0x4daa37[_0x50363e(0x23d)],'fieldIds':_0x1f253c,'viewIds':_0x425a40,'recordCount':this[_0x50363e(0x1f9)]()[_0x50363e(0x319)],'fields':_0x1f253c[_0x50363e(0x372)](_0x3087be=>{const _0x36a89a=_0x50363e;let _0x1ac55a=_0x4daa37[_0x36a89a(0x29a)][_0x3087be];return{'id':_0x1ac55a['id'],'name':_0x1ac55a[_0x36a89a(0x33c)],'type':_0x1ac55a['type'],'config':_0x1ac55a[_0x36a89a(0x35a)],'readonly':_0x1ac55a['readonly'],'description':_0x1ac55a['description']};}),'views':_0x425a40[_0x50363e(0x372)](_0x47e510=>{const _0x298b10=_0x50363e;let _0x3eb850=_0x4daa37['views'][_0x47e510];return{'id':_0x3eb850['id'],'name':_0x3eb850[_0x298b10(0x33c)],'type':_0x3eb850[_0x298b10(0x375)]};})};}[_0x45bca4(0x273)](){const _0x51bef5=_0x45bca4;let _0x3ac222=this[_0x51bef5(0x1f5)][_0x51bef5(0x31b)]()[_0x51bef5(0x384)]()[_0x51bef5(0x239)][this[_0x51bef5(0x268)]];if(!_0x3ac222)throw Error(_0x51bef5(0x27b)+this[_0x51bef5(0x268)]+_0x51bef5(0x249));return _0x3ac222;}[_0x45bca4(0x1f9)](_0x315f31={}){const _0x5e16ad=_0x45bca4;let _0xb11585=this[_0x5e16ad(0x1f5)][_0x5e16ad(0x31b)]()[_0x5e16ad(0x384)](),_0x1556e6=this[_0x5e16ad(0x273)]();if(_0x315f31[_0x5e16ad(0x29f)]){let _0x252732=this['_projectionService'][_0x5e16ad(0x2d8)](_0xb11585,this['_tableId'],_0x315f31[_0x5e16ad(0x29f)]);if('rows'in _0x252732&&Array[_0x5e16ad(0x2a2)](_0x252732['rows']))return _0x252732[_0x5e16ad(0x2e8)][_0x5e16ad(0x372)](_0x2b537f=>_0x2b537f[_0x5e16ad(0x2c9)]);}return(_0x1556e6[_0x5e16ad(0x269)]?_0x1556e6[_0x5e16ad(0x269)][_0x5e16ad(0x372)](_0x45b0cd=>_0x1556e6[_0x5e16ad(0x363)][_0x45b0cd]):Object[_0x5e16ad(0x368)](_0x1556e6[_0x5e16ad(0x363)])[_0x5e16ad(0x20b)]((_0x2d53ef,_0x257bb8)=>_0x2d53ef[_0x5e16ad(0x27e)][_0x5e16ad(0x21d)](_0x257bb8[_0x5e16ad(0x27e)])))[_0x5e16ad(0x243)](_0x66aa72=>_0x66aa72)[_0x5e16ad(0x372)](_0x339bea=>_0x339bea['id']);}};B=g([h(0x3,l[_0x45bca4(0x203)]),h(0x4,l[_0x45bca4(0x2c8)]),h(0x5,c['IBaseProjectionService'])],B);function V(_0x102c87,_0xbb38ae){const _0x51e79c=_0x45bca4;let _0x2293af=Math[_0x51e79c(0x35e)](0x0,_0xbb38ae[_0x51e79c(0x320)]??0x0);return _0xbb38ae[_0x51e79c(0x291)]==null?_0x102c87['slice'](_0x2293af):_0x102c87[_0x51e79c(0x24f)](_0x2293af,_0x2293af+Math[_0x51e79c(0x35e)](0x0,_0xbb38ae[_0x51e79c(0x291)]));}function H(_0x5341c8,_0x3a6112,_0x3cc235=[]){const _0x238d68=_0x45bca4;return _0x3cc235[_0x238d68(0x319)]?[..._0x5341c8][_0x238d68(0x20b)]((_0x364887,_0x4cdcb7)=>{const _0xd5b6=_0x238d68;for(let _0xc932e7 of _0x3cc235){var _0x5b8bc6;let _0x3e0ef7=_0xc932e7[_0xd5b6(0x30d)]===l['BaseSortDirection'][_0xd5b6(0x1f4)]?-0x1:0x1,_0x2021f8=U(_0x364887[_0xd5b6(0x368)][_0xc932e7[_0xd5b6(0x2ab)]],_0x4cdcb7[_0xd5b6(0x368)][_0xc932e7[_0xd5b6(0x2ab)]],(_0x5b8bc6=_0x3a6112['fields'][_0xc932e7[_0xd5b6(0x2ab)]])==null?void 0x0:_0x5b8bc6[_0xd5b6(0x375)]);if(_0x2021f8!==0x0)return _0x2021f8*_0x3e0ef7;}return String(_0x364887['orderKey']??_0x364887['id'])[_0xd5b6(0x21d)](String(_0x4cdcb7[_0xd5b6(0x27e)]??_0x4cdcb7['id']));}):_0x5341c8;}function U(_0x35f20b,_0x1f3f9b,_0x214f7e){const _0x3a10a5=_0x45bca4;return _0x35f20b==null&&_0x1f3f9b==null?0x0:_0x35f20b==null?-0x1:_0x1f3f9b==null?0x1:typeof _0x35f20b==_0x3a10a5(0x369)&&typeof _0x1f3f9b==_0x3a10a5(0x369)?_0x35f20b-_0x1f3f9b:_0x214f7e===l[_0x3a10a5(0x321)][_0x3a10a5(0x34f)]?Number(_0x35f20b)-Number(_0x1f3f9b):String(_0x35f20b)[_0x3a10a5(0x21d)](String(_0x1f3f9b));}function W(_0x9c9967,_0x384a96,_0x1d7b98){const _0x1aa7aa=_0x45bca4;var _0x40a2b6;if(!_0x1d7b98||!((_0x40a2b6=_0x1d7b98['conditions'])!=null&&_0x40a2b6['length']))return!0x0;let {conjunction:_0x186087=l[_0x1aa7aa(0x222)]['OR'],conditions:_0x395d31}=_0x1d7b98;return _0x186087===l[_0x1aa7aa(0x222)][_0x1aa7aa(0x1f8)]&&_0x395d31['length']>0x1?_0x395d31[_0x1aa7aa(0x2f4)](_0x55b9bc=>G(_0x9c9967,_0x384a96,_0x55b9bc)):_0x395d31[_0x1aa7aa(0x33d)](_0x508742=>G(_0x9c9967,_0x384a96,_0x508742));}function G(_0x4ad621,_0x3a4904,_0x201ef9){const _0x30d7af=_0x45bca4;let _0x5c1978=_0x4ad621['values'][_0x201ef9['fieldId']],_0x3ee5e1=_0x3a4904['fields'][_0x201ef9[_0x30d7af(0x2ab)]];if(K(_0x201ef9)){let _0x5badbd=q(_0x201ef9)[_0x30d7af(0x270)](String(_0x5c1978??''));return _0x201ef9['operator']===_0x30d7af(0x29b)?_0x5badbd:!_0x5badbd;}return!_0x3ee5e1||(0x0,c[_0x30d7af(0x24c)])(_0x5c1978,_0x201ef9[_0x30d7af(0x248)],_0x201ef9[_0x30d7af(0x348)],_0x3ee5e1);}function K(_0x1fa2d9){const _0x58116f=_0x45bca4;return _0x1fa2d9['operator']==='matches'||_0x1fa2d9[_0x58116f(0x248)]==='notMatches';}function q(_0x12b882){const _0x16455e=_0x45bca4;let _0xf5d54b=String(_0x12b882[_0x16455e(0x348)]??'');if(_0xf5d54b[_0x16455e(0x319)]>0x200)throw Error(_0x16455e(0x2a4));try{return new RegExp(_0xf5d54b,_0x12b882['caseSensitive']?void 0x0:'i');}catch(_0x2f2739){throw Error(_0x16455e(0x2eb)+_0xf5d54b+'.\x20'+(_0x2f2739 instanceof Error?_0x2f2739[_0x16455e(0x2c7)]:String(_0x2f2739)));}}function J(_0x3c2d41,_0x51d1df,_0xb790b0){const _0x526618=_0x45bca4;if(_0xb790b0[_0x526618(0x375)]!==_0x526618(0x28b)&&_0xb790b0[_0x526618(0x375)]!==_0x526618(0x330)){var _0x4a4fd1;if(_0xb790b0['type']===l[_0x526618(0x2ff)][_0x526618(0x337)]){var _0x143602;let _0x4b696e=[((_0x143602=_0xb790b0[_0x526618(0x29a)])==null||(_0x143602=_0x143602[0x0])==null?void 0x0:_0x143602['id'])??_0x3c2d41[_0x526618(0x23d)],..._0xb790b0[_0x526618(0x2c3)]??[]];return Array[_0x526618(0x32d)](new Set(_0x4b696e['filter'](_0x338e34=>!!_0x3c2d41[_0x526618(0x29a)][_0x338e34])));}if((_0x4a4fd1=_0xb790b0[_0x526618(0x29a)])!=null&&_0x4a4fd1[_0x526618(0x319)])return _0xb790b0[_0x526618(0x29a)][_0x526618(0x372)](_0x2aadb3=>_0x2aadb3['id'])[_0x526618(0x243)](_0x1626cc=>{const _0x42def8=_0x526618;var _0x412ceb;return!(!_0x3c2d41[_0x42def8(0x29a)][_0x1626cc]||_0x51d1df!=null&&(_0x412ceb=_0x51d1df['fieldSettings'])!=null&&(_0x412ceb=_0x412ceb[_0x1626cc])!=null&&_0x412ceb['hidden']);});}return _0x3c2d41[_0x526618(0x271)][_0x526618(0x243)](_0x134d36=>{const _0x64b16=_0x526618;var _0x744e83;return!(!_0x3c2d41[_0x64b16(0x29a)][_0x134d36]||_0x51d1df!=null&&(_0x744e83=_0x51d1df[_0x64b16(0x1fa)])!=null&&(_0x744e83=_0x744e83[_0x134d36])!=null&&_0x744e83[_0x64b16(0x29e)]);});}let Y=class extends u[_0x45bca4(0x20a)]{constructor(_0x3e25d1,_0x553157,_0x853de1,_0xfc90a6,_0x5e31fe){const _0x1afed0=_0x45bca4;super(),this[_0x1afed0(0x1f5)]=_0x3e25d1,this[_0x1afed0(0x27c)]=_0x553157,this[_0x1afed0(0x26e)]=_0x853de1,this[_0x1afed0(0x33a)]=_0xfc90a6,this[_0x1afed0(0x2ae)]=_0x5e31fe;}[_0x45bca4(0x31b)](){const _0x3837a6=_0x45bca4;return this[_0x3837a6(0x1f5)];}[_0x45bca4(0x2b7)](){const _0x429357=_0x45bca4;return this[_0x429357(0x1f5)][_0x429357(0x35f)]();}[_0x45bca4(0x349)](){const _0x2e74a7=_0x45bca4;return new p(this[_0x2e74a7(0x2b7)](),this['_commandService'],this[_0x2e74a7(0x2ae)]);}[_0x45bca4(0x36a)](){const _0x526a0d=_0x45bca4;return this[_0x526a0d(0x26e)][_0x526a0d(0x1e5)](this[_0x526a0d(0x2b7)]())??l['Tools'][_0x526a0d(0x326)](this[_0x526a0d(0x1f5)][_0x526a0d(0x384)]());}[_0x45bca4(0x379)](){const _0x137072=_0x45bca4;return this['_base'][_0x137072(0x384)]()[_0x137072(0x33c)];}[_0x45bca4(0x355)](_0x4c0839){const _0x399cfc=_0x45bca4;this[_0x399cfc(0x33a)]['syncExecuteCommand'](c['SetBaseNameCommand']['id'],{'unitId':this[_0x399cfc(0x2b7)](),'name':_0x4c0839});}[_0x45bca4(0x357)](){const _0x500730=_0x45bca4;let _0xd70d66=this[_0x500730(0x1f5)]['getSnapshot']();return _0xd70d66[_0x500730(0x388)][_0x500730(0x372)](_0x4fbb6c=>_0xd70d66['tables'][_0x4fbb6c])[_0x500730(0x243)](_0x3d93f3=>_0x3d93f3)[_0x500730(0x372)](_0x492878=>this[_0x500730(0x27c)][_0x500730(0x293)](B,this,_0x492878['id'],this['_injector']));}['getTableById'](_0x24e335){const _0x42e9a1=_0x45bca4;let _0x3e1d40=this['_base']['getSnapshot']()[_0x42e9a1(0x239)][_0x24e335];return _0x3e1d40?this[_0x42e9a1(0x27c)][_0x42e9a1(0x293)](B,this,_0x3e1d40['id'],this[_0x42e9a1(0x27c)]):null;}[_0x45bca4(0x208)](_0x49c482){const _0x35c7cd=_0x45bca4;let _0x1a508b=this[_0x35c7cd(0x1f5)][_0x35c7cd(0x384)](),_0x5708b6=Object[_0x35c7cd(0x368)](_0x1a508b[_0x35c7cd(0x239)])[_0x35c7cd(0x345)](_0x235f6e=>_0x235f6e[_0x35c7cd(0x33c)]===_0x49c482);return _0x5708b6?this['_injector'][_0x35c7cd(0x293)](B,this,_0x5708b6['id'],this[_0x35c7cd(0x27c)]):null;}[_0x45bca4(0x23f)](_0x4e045d,_0x49b15c){const _0x27dc57=_0x45bca4;let _0x43fc09=(0x0,l[_0x27dc57(0x21a)])({'id':(0x0,l[_0x27dc57(0x1ff)])(),'name':_0x4e045d,..._0x49b15c==null?void 0x0:_0x49b15c['table'],'primaryFieldName':_0x49b15c==null?void 0x0:_0x49b15c['primaryFieldName']}),_0x356ea4=l[_0x27dc57(0x24b)][_0x27dc57(0x1e3)](_0x43fc09,(_0x49b15c==null?void 0x0:_0x49b15c[_0x27dc57(0x2c0)])??{}),_0x2e4dcc=(0x0,c[_0x27dc57(0x2ec)])(this['_base'][_0x27dc57(0x384)](),_0x356ea4[_0x27dc57(0x33c)]);if(!_0x2e4dcc['valid'])throw Error(_0x27dc57(0x23b)+_0x356ea4[_0x27dc57(0x33c)]+'\x22.\x20'+c['BASE_TABLE_NAME_REQUIREMENTS']+'\x20'+_0x2e4dcc[_0x27dc57(0x1ea)]);if(!this[_0x27dc57(0x33a)][_0x27dc57(0x354)](c['CreateBaseTableCommand']['id'],{'unitId':this[_0x27dc57(0x1f5)]['getUnitId'](),'table':_0x356ea4,'index':_0x49b15c==null?void 0x0:_0x49b15c[_0x27dc57(0x252)]}))throw Error(_0x27dc57(0x343)+_0x4e045d+'\x22.');return this[_0x27dc57(0x27c)]['createInstance'](B,this,_0x356ea4['id'],this[_0x27dc57(0x27c)]);}['deleteTable'](_0x48ed11){const _0x1f0090=_0x45bca4;let _0x6e9903=typeof _0x48ed11==_0x1f0090(0x226)?_0x48ed11:_0x48ed11[_0x1f0090(0x2b7)]();if(!this[_0x1f0090(0x33a)][_0x1f0090(0x354)](c['DeleteBaseTableCommand']['id'],{'unitId':this[_0x1f0090(0x1f5)]['getUnitId'](),'tableId':_0x6e9903}))throw Error(_0x1f0090(0x2b2)+_0x6e9903+'\x22.');return!0x0;}['duplicateTable'](_0x2b1011,_0x32c1b3){const _0x2302f9=_0x45bca4;let _0x4fe9f1=this['_base']['getSnapshot'](),_0x1e4db1=typeof _0x2b1011==_0x2302f9(0x226)?_0x2b1011:_0x2b1011[_0x2302f9(0x2b7)](),_0x3c0856=_0x4fe9f1[_0x2302f9(0x239)][_0x1e4db1];if(!_0x3c0856)throw Error(_0x2302f9(0x251)+_0x1e4db1+_0x2302f9(0x249));let _0x15995a=_0x4fe9f1[_0x2302f9(0x388)][_0x2302f9(0x27f)](_0x1e4db1)+0x1,_0x2ba507=(0x0,l[_0x2302f9(0x1ff)])(),_0x19c238=(0x0,c[_0x2302f9(0x31e)])(_0x3c0856,{'id':_0x2ba507,'name':(0x0,c[_0x2302f9(0x233)])(_0x4fe9f1,_0x3c0856[_0x2302f9(0x33c)]+_0x2302f9(0x38a)),'includeRecords':(_0x32c1b3==null?void 0x0:_0x32c1b3[_0x2302f9(0x366)])??!0x1,'regenerateViewIds':(_0x32c1b3==null?void 0x0:_0x32c1b3[_0x2302f9(0x2e3)])??!0x1});if(!this['_commandService'][_0x2302f9(0x354)](c[_0x2302f9(0x280)]['id'],{'unitId':this[_0x2302f9(0x1f5)][_0x2302f9(0x35f)](),'table':_0x19c238,'index':_0x15995a}))throw Error(_0x2302f9(0x344)+_0x1e4db1+'\x22.');return this[_0x2302f9(0x27c)]['createInstance'](B,this,_0x19c238['id'],this[_0x2302f9(0x27c)]);}[_0x45bca4(0x28a)](){const _0x429fa0=_0x45bca4;let _0x3015be=this['_base']['getSnapshot']();return{'id':_0x3015be['id'],'name':_0x3015be[_0x429fa0(0x33c)],'tables':this[_0x429fa0(0x357)]()[_0x429fa0(0x372)](_0x4933c1=>_0x4933c1[_0x429fa0(0x28a)]())};}};Y=g([h(0x1,(0x0,l[_0x45bca4(0x2f7)])(l['Injector'])),h(0x2,l[_0x45bca4(0x2b5)]),h(0x3,l[_0x45bca4(0x203)]),h(0x4,l[_0x45bca4(0x2c8)])],Y);var X=class extends u[_0x45bca4(0x322)]{[_0x45bca4(0x255)](){const _0x459bbb=_0x45bca4;this[_0x459bbb(0x25c)](),this['_initBaseAfterEvents']();}['createBase'](_0x5443a1={},_0xb588d4){const _0x20f22e=_0x45bca4;let _0x515fe9=this[_0x20f22e(0x297)]['createUnit'](l[_0x20f22e(0x1e6)][_0x20f22e(0x207)],_0x5443a1,_0xb588d4);return this[_0x20f22e(0x27c)][_0x20f22e(0x293)](Y,_0x515fe9);}[_0x45bca4(0x23e)](){const _0x23a50d=_0x45bca4;let _0x4b7f81=this[_0x23a50d(0x297)][_0x23a50d(0x36f)](l[_0x23a50d(0x1e6)][_0x23a50d(0x207)]);return _0x4b7f81?this[_0x23a50d(0x27c)]['createInstance'](Y,_0x4b7f81):null;}[_0x45bca4(0x31b)](_0x1c37b7){const _0x455747=_0x45bca4;let _0x4d2645=this['_univerInstanceService'][_0x455747(0x36b)](_0x1c37b7,l[_0x455747(0x1e6)][_0x455747(0x207)]);return _0x4d2645?this[_0x455747(0x27c)][_0x455747(0x293)](Y,_0x4d2645):null;}[_0x45bca4(0x206)](){const _0x4b6400=_0x45bca4;return this['_univerInstanceService'][_0x4b6400(0x1e2)](l[_0x4b6400(0x1e6)][_0x4b6400(0x207)])[_0x4b6400(0x372)](_0x5cd442=>this[_0x4b6400(0x27c)][_0x4b6400(0x293)](Y,_0x5cd442));}['_initBaseAfterEvents'](){const _0x3f07c0=_0x45bca4;this[_0x3f07c0(0x1f0)](this['registerEventHandler'](this[_0x3f07c0(0x2b0)]['BaseHierarchyChanged'],()=>this[_0x3f07c0(0x33a)][_0x3f07c0(0x2cf)]((_0x1d36bc,_0x55ca7e)=>{const _0x30af46=_0x3f07c0;var _0x2f94ce;if(!Z(_0x1d36bc,c[_0x30af46(0x2aa)]))return;let _0x8e6dff=_0x1d36bc[_0x30af46(0x25d)];if(!((_0x2f94ce=_0x8e6dff[_0x30af46(0x240)])!=null&&_0x2f94ce['length']))return;let _0x1818e8=this['getBase'](_0x8e6dff['unitId']),_0xb46bbd=_0x1818e8==null?void 0x0:_0x1818e8[_0x30af46(0x2bc)](_0x8e6dff['hierarchyChanges'][0x0][_0x30af46(0x385)]);if(!_0x1818e8||!_0xb46bbd)return;let _0x2a880b={'base':_0x1818e8,'table':_0xb46bbd,'changes':_0x8e6dff[_0x30af46(0x240)],'source':_0x55ca7e!=null&&_0x55ca7e['fromCollab']?c[_0x30af46(0x33e)][_0x30af46(0x2b4)]:_0x8e6dff[_0x30af46(0x2bf)]??c[_0x30af46(0x33e)]['UI']};this['fireEvent'](this[_0x30af46(0x2b0)][_0x30af46(0x27a)],_0x2a880b);}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x3f07c0(0x229)],()=>this['_commandService'][_0x3f07c0(0x2cf)](_0x5f2bab=>{const _0x34a1f3=_0x3f07c0;if(_0x5f2bab['id']!==c[_0x34a1f3(0x280)]['id'])return;let {unitId:_0x433a6e,table:_0x1ad123,index:_0x5dd0a8}=_0x5f2bab[_0x34a1f3(0x25d)],_0x207d22=this['getBase'](_0x433a6e);if(!_0x207d22)return;let _0x476cad={'base':_0x207d22,'table':_0x1ad123,'index':_0x5dd0a8};this[_0x34a1f3(0x1ed)](this[_0x34a1f3(0x2b0)][_0x34a1f3(0x229)],_0x476cad);}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x3f07c0(0x26b)],()=>this[_0x3f07c0(0x33a)][_0x3f07c0(0x2cf)](_0x48efbf=>{const _0x409cc6=_0x3f07c0;if(_0x48efbf['id']!==c[_0x409cc6(0x2c1)]['id'])return;let {unitId:_0x23bcb8,tableId:_0x452cca,field:_0x1bf7b9,index:_0x2f9587,viewIndexes:_0x1a28a8}=_0x48efbf[_0x409cc6(0x25d)],_0x53923a=this[_0x409cc6(0x31b)](_0x23bcb8);if(!_0x53923a)return;let _0xebf7a0=_0x53923a['getTableById'](_0x452cca);if(!_0xebf7a0)return;let _0xf6cf13={'base':_0x53923a,'table':_0xebf7a0,'field':_0x1bf7b9,'index':_0x2f9587,'viewIndexes':_0x1a28a8};this['fireEvent'](this['Event'][_0x409cc6(0x26b)],_0xf6cf13);}))),this[_0x3f07c0(0x1f0)](this['registerEventHandler'](this[_0x3f07c0(0x2b0)]['BaseTableRecordCreated'],()=>this[_0x3f07c0(0x33a)]['onCommandExecuted'](_0x1e66b1=>{const _0x139393=_0x3f07c0;if(_0x1e66b1['id']!==c['CreateBaseRecordCommand']['id']&&_0x1e66b1['id']!==c[_0x139393(0x20e)]['id'])return;let _0x2eb9c9=_0x1e66b1[_0x139393(0x25d)],{unitId:_0x2bcfa8,tableId:_0x1ae3c9}=_0x2eb9c9,_0x2cd67b=_0x2eb9c9['records']??[_0x2eb9c9[_0x139393(0x263)]],_0x308da4=this[_0x139393(0x31b)](_0x2bcfa8);if(!_0x308da4)return;let _0x425bef=_0x308da4[_0x139393(0x2bc)](_0x1ae3c9);if(!_0x425bef)return;let _0x317394={'base':_0x308da4,'table':_0x425bef,'records':_0x2cd67b};this[_0x139393(0x1ed)](this[_0x139393(0x2b0)][_0x139393(0x2e4)],_0x317394);}))),this[_0x3f07c0(0x1f0)](this[_0x3f07c0(0x323)](this[_0x3f07c0(0x2b0)][_0x3f07c0(0x37d)],()=>this['_commandService'][_0x3f07c0(0x2cf)](_0xf4dece=>{const _0x4a4ad0=_0x3f07c0;if(_0xf4dece['id']!==c[_0x4a4ad0(0x2bb)]['id'])return;let {unitId:_0x26a88b,tableId:_0x5416d4,view:_0xabcadb,index:_0x5899e0}=_0xf4dece[_0x4a4ad0(0x25d)],_0x568f19=this['getBase'](_0x26a88b);if(!_0x568f19)return;let _0x10a610=_0x568f19['getTableById'](_0x5416d4);if(!_0x10a610)return;let _0x20d91f={'base':_0x568f19,'table':_0x10a610,'view':_0xabcadb,'index':_0x5899e0};this[_0x4a4ad0(0x1ed)](this[_0x4a4ad0(0x2b0)][_0x4a4ad0(0x37d)],_0x20d91f);}))),this[_0x3f07c0(0x1f0)](this[_0x3f07c0(0x323)](this['Event'][_0x3f07c0(0x2cd)],()=>this[_0x3f07c0(0x33a)]['onCommandExecuted'](_0x425db2=>{const _0x47073e=_0x3f07c0;if(_0x425db2['id']!==c[_0x47073e(0x378)]['id'])return;let {unitId:_0x5b5011,tableId:_0x4a3ce5,recordId:_0x2d829e,fieldId:_0x3fb8d5,value:_0x5b8dbd}=_0x425db2[_0x47073e(0x25d)],_0x4a5942=this[_0x47073e(0x31b)](_0x5b5011);if(!_0x4a5942)return;let _0x46224c=_0x4a5942['getTableById'](_0x4a3ce5);if(!_0x46224c)return;let _0x52b6dc=_0x46224c[_0x47073e(0x2ce)](_0x3fb8d5);if(!_0x52b6dc)return;let _0x58d7b4=_0x46224c[_0x47073e(0x1e9)](_0x2d829e);if(!_0x58d7b4)return;let _0x3e69e0={'base':_0x4a5942,'table':_0x46224c,'field':_0x52b6dc,'record':_0x58d7b4,'value':_0x5b8dbd};this[_0x47073e(0x1ed)](this[_0x47073e(0x2b0)][_0x47073e(0x2cd)],_0x3e69e0);})));}[_0x45bca4(0x25c)](){const _0x320df8=_0x45bca4;this[_0x320df8(0x1f0)](this[_0x320df8(0x323)](this[_0x320df8(0x2b0)][_0x320df8(0x1e4)],()=>this[_0x320df8(0x33a)][_0x320df8(0x1e0)](_0x40d444=>{const _0x1a1d09=_0x320df8;if(Z(_0x40d444,c['SetBaseRecordValuesCommand'])){let {unitId:_0x330e8c,tableId:_0x4b7bdd,patches:_0xb4e526,source:_0x5f44d3=c[_0x1a1d09(0x33e)]['UI']}=_0x40d444[_0x1a1d09(0x25d)],_0x17c9e2=this[_0x1a1d09(0x279)](_0x330e8c,_0x4b7bdd);if(!_0x17c9e2)return;this[_0x1a1d09(0x1ef)](_0x17c9e2[_0x1a1d09(0x327)],_0x17c9e2[_0x1a1d09(0x2c0)],(0x0,c['validateBaseHierarchyRecordPatches'])(_0x17c9e2[_0x1a1d09(0x2c0)][_0x1a1d09(0x238)](),_0xb4e526),_0x5f44d3);return;}if(Z(_0x40d444,c[_0x1a1d09(0x26f)])){let {unitId:_0x3a0c73,tableId:_0x39d44a,patches:_0x4b2382,source:_0x5b26df=c[_0x1a1d09(0x33e)]['UI']}=_0x40d444[_0x1a1d09(0x25d)],_0x36f392=this[_0x1a1d09(0x279)](_0x3a0c73,_0x39d44a);if(!_0x36f392)return;let _0x59c008=_0x36f392[_0x1a1d09(0x2c0)][_0x1a1d09(0x238)]();this[_0x1a1d09(0x1ef)](_0x36f392[_0x1a1d09(0x327)],_0x36f392[_0x1a1d09(0x2c0)],(0x0,c[_0x1a1d09(0x227)])(_0x59c008,(0x0,c[_0x1a1d09(0x237)])(_0x59c008,_0x4b2382)),_0x5b26df);return;}if(Z(_0x40d444,c['CreateBaseRecordCommand'])){let _0x5300b6=_0x40d444[_0x1a1d09(0x25d)],_0x162a4c=this['_getHierarchyEventContext'](_0x5300b6[_0x1a1d09(0x2ef)],_0x5300b6[_0x1a1d09(0x385)]);if(!_0x162a4c)return;this['_fireBeforeHierarchyChange'](_0x162a4c[_0x1a1d09(0x327)],_0x162a4c[_0x1a1d09(0x2c0)],(0x0,c[_0x1a1d09(0x333)])(_0x162a4c['table']['getTable'](),[_0x5300b6[_0x1a1d09(0x263)]]),_0x5300b6[_0x1a1d09(0x2bf)]??c[_0x1a1d09(0x33e)]['UI']);return;}if(Z(_0x40d444,c[_0x1a1d09(0x20e)])){let _0x31d92f=_0x40d444[_0x1a1d09(0x25d)],_0x4ea60d=this['_getHierarchyEventContext'](_0x31d92f['unitId'],_0x31d92f[_0x1a1d09(0x385)]);if(!_0x4ea60d)return;this[_0x1a1d09(0x1ef)](_0x4ea60d['base'],_0x4ea60d[_0x1a1d09(0x2c0)],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x4ea60d[_0x1a1d09(0x2c0)][_0x1a1d09(0x238)](),_0x31d92f[_0x1a1d09(0x363)]),_0x31d92f['source']??c[_0x1a1d09(0x33e)]['UI']);return;}if(Z(_0x40d444,c[_0x1a1d09(0x26c)])){let _0x4d3bf9=_0x40d444[_0x1a1d09(0x25d)],_0x38e86c=this[_0x1a1d09(0x279)](_0x4d3bf9['unitId'],_0x4d3bf9[_0x1a1d09(0x385)]);if(!_0x38e86c)return;this[_0x1a1d09(0x1ef)](_0x38e86c['base'],_0x38e86c['table'],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x38e86c[_0x1a1d09(0x2c0)][_0x1a1d09(0x238)](),[_0x4d3bf9['record']]),_0x4d3bf9[_0x1a1d09(0x2bf)]??c[_0x1a1d09(0x33e)]['UI']);return;}if(Z(_0x40d444,c['MoveBaseHierarchyRecordCommand'])){let _0x44d4b0=_0x40d444[_0x1a1d09(0x25d)],_0x80437f=this['_getHierarchyEventContext'](_0x44d4b0[_0x1a1d09(0x2ef)],_0x44d4b0['tableId']);if(!_0x80437f)return;let _0x448b8c=_0x80437f[_0x1a1d09(0x2c0)][_0x1a1d09(0x238)](),_0x4ebc63=_0x44d4b0['fieldId']??(0x0,c[_0x1a1d09(0x235)])(_0x448b8c),_0x17f7a9=(0x0,c[_0x1a1d09(0x285)])(_0x448b8c,_0x4ebc63)[_0x1a1d09(0x2f8)][_0x1a1d09(0x211)](_0x44d4b0['recordId'])??null;this[_0x1a1d09(0x1ef)](_0x80437f[_0x1a1d09(0x327)],_0x80437f[_0x1a1d09(0x2c0)],[{'tableId':_0x44d4b0['tableId'],'fieldId':_0x4ebc63,'recordId':_0x44d4b0[_0x1a1d09(0x2c9)],'oldParentRecordId':_0x17f7a9,'parentRecordId':_0x44d4b0[_0x1a1d09(0x1fb)]}],_0x44d4b0[_0x1a1d09(0x2bf)]??c[_0x1a1d09(0x33e)]['UI']);return;}if(Z(_0x40d444,c[_0x1a1d09(0x2df)])){let _0x41c944=_0x40d444[_0x1a1d09(0x25d)],_0x2bf9a3=this['_getHierarchyEventContext'](_0x41c944['unitId'],_0x41c944[_0x1a1d09(0x385)]);if(!_0x2bf9a3)return;let _0x24eacf=_0x41c944[_0x1a1d09(0x2ab)]??(0x0,c[_0x1a1d09(0x235)])(_0x2bf9a3['table'][_0x1a1d09(0x238)]());this[_0x1a1d09(0x1ef)](_0x2bf9a3[_0x1a1d09(0x327)],_0x2bf9a3[_0x1a1d09(0x2c0)],[{'tableId':_0x41c944[_0x1a1d09(0x385)],'fieldId':_0x24eacf,'recordId':_0x41c944[_0x1a1d09(0x263)]['id'],'oldParentRecordId':null,'parentRecordId':_0x41c944[_0x1a1d09(0x1fb)]}],_0x41c944['source']??c[_0x1a1d09(0x33e)]['UI']);return;}if(Z(_0x40d444,c[_0x1a1d09(0x254)])){let _0x4b970f=_0x40d444[_0x1a1d09(0x25d)],_0x49751f=this[_0x1a1d09(0x279)](_0x4b970f[_0x1a1d09(0x2ef)],_0x4b970f['tableId']);if(!_0x49751f)return;this[_0x1a1d09(0x1ef)](_0x49751f[_0x1a1d09(0x327)],_0x49751f[_0x1a1d09(0x2c0)],(0x0,c[_0x1a1d09(0x328)])(_0x49751f[_0x1a1d09(0x2c0)][_0x1a1d09(0x238)](),[_0x4b970f[_0x1a1d09(0x2c9)]]),_0x4b970f['source']??c['BaseEventSource']['UI']);return;}if(Z(_0x40d444,c[_0x1a1d09(0x314)])){let _0x4d274c=_0x40d444['params'],_0x40f8f3=this[_0x1a1d09(0x279)](_0x4d274c[_0x1a1d09(0x2ef)],_0x4d274c[_0x1a1d09(0x385)]);if(!_0x40f8f3)return;this[_0x1a1d09(0x1ef)](_0x40f8f3[_0x1a1d09(0x327)],_0x40f8f3['table'],(0x0,c[_0x1a1d09(0x328)])(_0x40f8f3['table']['getTable'](),_0x4d274c[_0x1a1d09(0x220)]),_0x4d274c[_0x1a1d09(0x2bf)]??c[_0x1a1d09(0x33e)]['UI']);return;}if(!Z(_0x40d444,c['UpdateBaseCellCommand']))return;let _0x4aa57b=_0x40d444['params'],_0x442b01=this[_0x1a1d09(0x279)](_0x4aa57b['unitId'],_0x4aa57b[_0x1a1d09(0x385)]);if(!_0x442b01)return;let _0x7c6bd9=_0x442b01[_0x1a1d09(0x2c0)][_0x1a1d09(0x238)]();if(!(0x0,c[_0x1a1d09(0x2f0)])(_0x7c6bd9)['includes'](_0x4aa57b[_0x1a1d09(0x2ab)]))return;let _0x6a8f3e=(0x0,c[_0x1a1d09(0x285)])(_0x7c6bd9,_0x4aa57b[_0x1a1d09(0x2ab)])['parentByRecordId'][_0x1a1d09(0x211)](_0x4aa57b[_0x1a1d09(0x2c9)])??null,_0x530eb3=(0x0,c[_0x1a1d09(0x213)])(_0x4aa57b[_0x1a1d09(0x348)])[0x0]??null;_0x6a8f3e!==_0x530eb3&&this[_0x1a1d09(0x1ef)](_0x442b01[_0x1a1d09(0x327)],_0x442b01['table'],[{'tableId':_0x4aa57b['tableId'],'fieldId':_0x4aa57b[_0x1a1d09(0x2ab)],'recordId':_0x4aa57b[_0x1a1d09(0x2c9)],'oldParentRecordId':_0x6a8f3e,'parentRecordId':_0x530eb3}],_0x4aa57b['source']??c[_0x1a1d09(0x33e)]['UI']);}))),this[_0x320df8(0x1f0)](this['registerEventHandler'](this['Event'][_0x320df8(0x29d)],()=>this[_0x320df8(0x33a)]['beforeCommandExecuted'](_0x3cb4ca=>{const _0x41e1ed=_0x320df8;if(_0x3cb4ca['id']!==c[_0x41e1ed(0x280)]['id'])return;let {unitId:_0x315935,table:_0x10e094,index:_0x4bb6fb}=_0x3cb4ca[_0x41e1ed(0x25d)],_0x312d71=this[_0x41e1ed(0x31b)](_0x315935);if(!_0x312d71)return;let _0x3783ab={'base':_0x312d71,'table':_0x10e094,'index':_0x4bb6fb};if(this['fireEvent'](this['Event'][_0x41e1ed(0x29d)],_0x3783ab),_0x3783ab[_0x41e1ed(0x2dd)])throw new l[(_0x41e1ed(0x37e))]();}))),this[_0x320df8(0x1f0)](this[_0x320df8(0x323)](this['Event'][_0x320df8(0x38f)],()=>this[_0x320df8(0x33a)][_0x320df8(0x1e0)](_0x3d2462=>{const _0xf2b4ed=_0x320df8;if(_0x3d2462['id']!==c[_0xf2b4ed(0x2c1)]['id'])return;let {unitId:_0x56b570,tableId:_0x5929db,field:_0x4a94ac,index:_0x32d299,viewIndexes:_0x9e17e9}=_0x3d2462['params'],_0x3d0aa7=this['getBase'](_0x56b570);if(!_0x3d0aa7)return;let _0x739564=_0x3d0aa7['getTableById'](_0x5929db);if(!_0x739564)return;let _0xb11c6d={'base':_0x3d0aa7,'table':_0x739564,'field':_0x4a94ac,'index':_0x32d299,'viewIndexes':_0x9e17e9};if(this[_0xf2b4ed(0x1ed)](this[_0xf2b4ed(0x2b0)]['BeforeBaseTableFieldCreate'],_0xb11c6d),_0xb11c6d[_0xf2b4ed(0x2dd)])throw new l['CanceledError']();}))),this[_0x320df8(0x1f0)](this[_0x320df8(0x323)](this[_0x320df8(0x2b0)][_0x320df8(0x223)],()=>this['_commandService'][_0x320df8(0x1e0)](_0x376d60=>{const _0x2f2a3f=_0x320df8;if(_0x376d60['id']!==c[_0x2f2a3f(0x382)]['id']&&_0x376d60['id']!==c[_0x2f2a3f(0x20e)]['id'])return;let _0x21028e=_0x376d60[_0x2f2a3f(0x25d)],{unitId:_0x509746,tableId:_0x1329d0}=_0x21028e,_0x2e7349=_0x21028e['records']??[_0x21028e[_0x2f2a3f(0x263)]],_0x518812=this['getBase'](_0x509746);if(!_0x518812)return;let _0x42aea9=_0x518812[_0x2f2a3f(0x2bc)](_0x1329d0);if(!_0x42aea9)return;let _0x3127f7={'base':_0x518812,'table':_0x42aea9,'records':_0x2e7349};if(this[_0x2f2a3f(0x1ed)](this[_0x2f2a3f(0x2b0)][_0x2f2a3f(0x223)],_0x3127f7),_0x3127f7[_0x2f2a3f(0x2dd)])throw new l['CanceledError']();}))),this[_0x320df8(0x1f0)](this['registerEventHandler'](this['Event']['BeforeBaseTableViewCreate'],()=>this['_commandService'][_0x320df8(0x1e0)](_0x19e622=>{const _0x2793dd=_0x320df8;if(_0x19e622['id']!==c[_0x2793dd(0x2bb)]['id'])return;let {unitId:_0xc7e131,tableId:_0x3d019,view:_0x24fde6,index:_0x8d96fe}=_0x19e622[_0x2793dd(0x25d)],_0x185d92=this['getBase'](_0xc7e131);if(!_0x185d92)return;let _0x272219=_0x185d92[_0x2793dd(0x2bc)](_0x3d019);if(!_0x272219)return;let _0x229087={'base':_0x185d92,'table':_0x272219,'view':_0x24fde6,'index':_0x8d96fe};if(this[_0x2793dd(0x1ed)](this[_0x2793dd(0x2b0)][_0x2793dd(0x212)],_0x229087),_0x229087[_0x2793dd(0x2dd)])throw new l[(_0x2793dd(0x37e))]();}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x320df8(0x2b0)][_0x320df8(0x25f)],()=>this[_0x320df8(0x33a)]['beforeCommandExecuted'](_0x361506=>{const _0x368c8b=_0x320df8;if(_0x361506['id']!==c[_0x368c8b(0x378)]['id'])return;let {unitId:_0x29010e,tableId:_0x4df122,recordId:_0xf367b2,fieldId:_0x1edd9a,value:_0x124f89}=_0x361506[_0x368c8b(0x25d)],_0xb4f90c=this['getBase'](_0x29010e);if(!_0xb4f90c)return;let _0x1e863f=_0xb4f90c[_0x368c8b(0x2bc)](_0x4df122);if(!_0x1e863f)return;let _0x3d64e9=_0x1e863f[_0x368c8b(0x2ce)](_0x1edd9a);if(!_0x3d64e9)return;let _0x2e4652=_0x1e863f[_0x368c8b(0x1e9)](_0xf367b2);if(!_0x2e4652)return;let _0x55c442={'base':_0xb4f90c,'table':_0x1e863f,'field':_0x3d64e9,'record':_0x2e4652,'value':_0x124f89};if(this[_0x368c8b(0x1ed)](this['Event'][_0x368c8b(0x25f)],_0x55c442),_0x55c442[_0x368c8b(0x2dd)])throw new l[(_0x368c8b(0x37e))]();})));}['_getHierarchyEventContext'](_0x25592f,_0x539d1b){let _0x3221b1=this['getBase'](_0x25592f),_0x568c16=_0x3221b1==null?void 0x0:_0x3221b1['getTableById'](_0x539d1b);return _0x3221b1&&_0x568c16?{'base':_0x3221b1,'table':_0x568c16}:null;}[_0x45bca4(0x1ef)](_0x2732fc,_0x600644,_0x16fc69,_0xdc382e){const _0x271879=_0x45bca4;if(!_0x16fc69[_0x271879(0x319)])return;let _0x3c41c2={'base':_0x2732fc,'table':_0x600644,'changes':_0x16fc69,'source':_0xdc382e};if(this[_0x271879(0x1ed)](this[_0x271879(0x2b0)][_0x271879(0x1e4)],_0x3c41c2),_0x3c41c2[_0x271879(0x2dd)])throw new l[(_0x271879(0x37e))]();}};function Z(_0x4ccc23,_0x4e8152){const _0xb747a0=_0x45bca4;return _0x4ccc23['id']===_0x4e8152['id']&&_0x4ccc23[_0xb747a0(0x25d)]!==void 0x0;}u[_0x45bca4(0x322)][_0x45bca4(0x2f6)](X);function _0x4e24(){const _0x16ca40=['getOwnPropertyDescriptor','getRow','DESC','_base','getFields','createView','AND','_resolveRecordIds','fieldSettings','parentRecordId','setValues','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','Failed\x20to\x20add\x20records','generateRandomId','IBaseProjectionService','BaseConditionalColorTarget','BASE64','ICommandService','DeleteBaseFieldCommand','getTableId','getBases','UNIVER_BASE','getTableByName','enumerable','FBase','sort','BaseFieldKeyEnum','ensureBaseTableCellLayout','BatchCreateBaseRecordsCommand','UpdateBaseFieldCommand','getRecordLinkFieldConfig','get','BeforeBaseTableViewCreate','parseRecordLinkIds','subtreeHeightByRecordId','_viewId','setFieldWidth','getView','Duplicate\x20Base\x20field\x20name:\x20','ImageSourceType','createDefaultBaseTableSnapshot','getDescendants','384GuRgfO','localeCompare','Set',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','recordIds','createdAt','BaseFilterConjunction','BeforeBaseTableRecordCreate','getAttachments','SetBaseViewFieldOrderCommand','string','validateBaseHierarchyRecordPatches','field','BaseTableCreated','286muqUUX','_getRecord','getChildren','endColumn','constructor','valid','fieldKey','setFilter','_table','createUniqueBaseTableName','getPrimaryFieldId','resolveBaseHierarchyFieldId','getFormulaName','resolveBaseRangeHierarchyPatches','getTable','tables','MoveBaseFieldCommand','[FBase]:\x20invalid\x20table\x20name\x20\x22','SetBaseViewFieldWidthCommand','primaryFieldId','getActiveBase','insertTable','hierarchyChanges','canEditBaseTargets','deleteRecords','filter','getType','UnitAction','\x22\x20is\x20not\x20an\x20Attachment\x20field.','Module','operator','\x22\x20does\x20not\x20exist.','getLinkedRecordIds','Tools','matchesBaseCondition','FBaseTableRange','views','slice','getFieldByName','[FBase]:\x20table\x20\x22','index','externalReferences','DeleteBaseRecordCommand','_initialize','Attachment','setGroup','_range','iterator','FBaseObjectPermission','getViews','_initBaseBeforeEvents','params','height','BeforeBaseTableCellValueChange','85390TJpOUp','Failed\x20to\x20add\x20field\x20\x22','_projectionService','record','BASE_TABLE_NAME_REQUIREMENTS','_parentObjectIds','_unitId','getValues','_tableId','recordOrder','getPoint','BaseTableFieldCreated','DuplicateBaseRecordCommand','push','_resourceLoaderService','SetBaseRangeValuesCommand','test','fieldOrder','setParent','_getTable','queryRecords','[FRecord]:\x20attachment\x20at\x20index\x20','isFinite','SetBasePermissionCommand','URL','_getHierarchyEventContext','BaseHierarchyChanged','[FTable]:\x20table\x20\x22','_injector','getNumRows','orderKey','indexOf','CreateBaseTableCommand','BASE_RECORD_ID_FIELD_ID','setFieldVisible','url','ValidateBaseFormulaCommand','buildBaseHierarchyIndex','addConditionalColorRule','prototype','RenameBaseViewCommand','thumbnail','getSchema','invalid','readonly','_baseUnitId','_prepareFormulaFieldReferences','getViewById','fromEntries','limit','data:','createInstance',':\x20\x22','default','startsWith','_univerInstanceService','deleteAttachments','Add','fields','matches','getRecords','BeforeBaseTableCreate','hidden','viewId','setOrderKey','Grid','isArray','getFilter','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','_baseTableId','1073616pJWtOT','trim','size','\x20for\x20field\x20\x22','ApplyBaseJson1Mutation','fieldId','\x22:\x20expected\x20an\x20array.','124dxkUAs','_permissionService','_collectDescendantIds','Event','startRow','Failed\x20to\x20delete\x20table\x20\x22','FEnum','Remote','IResourceLoaderService','updateConfig','getId','FBasesEventNameMixin','getBaseTablePermissionObjectId','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','CreateBaseViewCommand','getTableById','FBasePermission','\x20exceeds\x20range\x20size\x20','source','table','CreateBaseFieldCommand','addChild','visibleCardFieldIds','setObjectPermissions','defineProperty','now','message','IPermissionService','recordId','BaseSortDirection','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','Gallery','BaseTableCellValueChanged','getFieldById','onCommandExecuted','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','_inject','setPoint','entries',',\x20max\x20columns:\x20','toPrimitive','setHierarchyField','BaseRecordLinkRole','getProjection','SetBaseRecordValuesCommand','getViewByName','Invalid\x20Base\x20formula.','UpdateBaseViewConditionalColorRulesCommand','cancel','canEdit','CreateBaseChildRecordCommand','BaseConditionalDateMode','forEach','SetBaseTableHierarchyFieldCommand','regenerateViewIds','BaseTableRecordCreated','RecordLink','\x20in\x20field\x20\x22','clearConditionalColorRules','rows','getNumColumns','\x22\x20is\x20invalid.','Invalid\x20Base\x20regex\x20filter:\x20','validateBaseTableName','getBaseCellValue','validateRecordLinkValue','unitId','getActiveBaseHierarchyFieldIds','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','auto','\x22\x20has\x20invalid\x20config.','every','getPrimaryField','extend','Inject','parentByRecordId','resolveBaseFieldValues','278318fGhgJa','_objectId','function','deleteProperty','getSort','BaseViewType','SetBasePermissionsCommand','clear','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','BaseConditionalColorOperator','SetBaseViewGroupCommand','getRange','FBaseTableRecord','setAttachments','executeCommand','getDefaultValue','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.',',\x20range:\x20','BaseHierarchyInvalidReason','direction','getDescription','_getAttachmentField','_fieldId','hasOwnProperty','symbol','conditionalColoring','BatchDeleteBaseRecordsCommand','425974QpiXCP','call','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','setConfig','length','childrenByParentId','getBase','search','_getHierarchyIndex','copyBaseTableSnapshot','8855QOEPUI','offset','BaseFieldType','FUniver','registerEventHandler','Calendar','startColumn','deepClone','base','getBaseHierarchyDeletePromotions','object','deleteConditionalColorRule','warn','FEventName','from','Name','move','custom','viewOrder','group','validateBaseHierarchyRecordCreations','getBaseFormulaTableName','getHierarchyFieldId','Failed\x20to\x20create\x20view\x20\x22','Kanban','fieldIds','Base\x20field\x20not\x20found:\x20','_commandService','getBaseRecordPermissionObjectId','name','some','BaseEventSource','Invalid\x20attachment\x20at\x20index\x20','BaseFilterOperator','_writeFormulaExternalReferences','getBasePermissionValue','Failed\x20to\x20create\x20table\x20\x22','Failed\x20to\x20duplicate\x20table\x20\x22','find','_getView','boolean','value','getPermission','_recordId','addRecords','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','9VrVEgV','1788wOcgoS','Date','duplicate','toStringTag','Edit','beforeFieldId','syncExecuteCommand','setName','Formula','getTables','endRow','multiple','config','getRecord','Gantt','update','max','getUnitId','_getFieldIds','Facade','getPrototypeOf','records',':\x20expected\x20an\x20object.','getDataRange','includeRecords','flatMap','values','number','save','getUnit','delete','_assertInBounds','_getField','getCurrentUnitOfType','_getRecordLinkField','setValue','map','addLinkedRecord','Auto','type','resolveBaseFieldKey','mimeType','UpdateBaseCellCommand','getName','searchBaseTable','__esModule','UpsertHostExternalReferencesCommand','BaseTableViewCreated','CanceledError','\x22\x20must\x20be\x20a\x20non-empty\x20string.','addRecord','afterFieldId','CreateBaseRecordCommand','updatedAt','getSnapshot','tableId',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','1843130RlyQkp','tableOrder','includes','\x20Copy','view','setReadOnly','serializeRecordLinkIds','22ibclff','BeforeBaseTableFieldCreate','has','\x22.\x20','132462QdnJGc','setLinkedRecordIds','beforeCommandExecuted','create','getAllUnitsForType','commonExtend','BeforeBaseHierarchyChange','saveUnit','UniverInstanceType','[FBaseRange]:\x20table\x20does\x20not\x20exist.','getConfig','getRecordById','reason','Delete','BaseConditionalColorRuleUpdateType','fireEvent','UUID','_fireBeforeHierarchyChange','disposeWithMe','moveField'];_0x4e24=function(){return _0x16ca40;};return _0x4e24();}var Q=class extends u[_0x45bca4(0x2b3)]{get['BaseFieldType'](){const _0x5330cb=_0x45bca4;return l[_0x5330cb(0x321)];}get[_0x45bca4(0x222)](){const _0x2dce4a=_0x45bca4;return l[_0x2dce4a(0x222)];}get[_0x45bca4(0x340)](){return l['BaseFilterOperator'];}get[_0x45bca4(0x20c)](){return v;}get[_0x45bca4(0x2ff)](){const _0x1ff733=_0x45bca4;return l[_0x1ff733(0x2ff)];}get[_0x45bca4(0x201)](){const _0x49c83a=_0x45bca4;return l[_0x49c83a(0x201)];}get[_0x45bca4(0x303)](){const _0x11a2b7=_0x45bca4;return l[_0x11a2b7(0x303)];}get[_0x45bca4(0x2e0)](){const _0x5c9f8d=_0x45bca4;return l[_0x5c9f8d(0x2e0)];}get[_0x45bca4(0x2ca)](){return l['BaseSortDirection'];}get[_0x45bca4(0x33e)](){const _0x35f8bf=_0x45bca4;return c[_0x35f8bf(0x33e)];}get['BaseHierarchyErrorCode'](){return c['BaseHierarchyErrorCode'];}get[_0x45bca4(0x30c)](){const _0x109daf=_0x45bca4;return l[_0x109daf(0x30c)];}get['BaseRecordLinkRole'](){const _0x301558=_0x45bca4;return l[_0x301558(0x2d7)];}};u[_0x45bca4(0x2b3)][_0x45bca4(0x2f6)](Q);var $=class extends u[_0x45bca4(0x32c)]{get[_0x45bca4(0x229)](){const _0x4d014b=_0x45bca4;return _0x4d014b(0x229);}get[_0x45bca4(0x29d)](){const _0xefba79=_0x45bca4;return _0xefba79(0x29d);}get[_0x45bca4(0x26b)](){const _0x38d447=_0x45bca4;return _0x38d447(0x26b);}get[_0x45bca4(0x38f)](){const _0xfb9ec=_0x45bca4;return _0xfb9ec(0x38f);}get[_0x45bca4(0x2e4)](){const _0x420030=_0x45bca4;return _0x420030(0x2e4);}get[_0x45bca4(0x223)](){const _0x491f34=_0x45bca4;return _0x491f34(0x223);}get[_0x45bca4(0x37d)](){const _0x4ec5f5=_0x45bca4;return _0x4ec5f5(0x37d);}get[_0x45bca4(0x212)](){const _0xdfdb35=_0x45bca4;return _0xdfdb35(0x212);}get[_0x45bca4(0x2cd)](){const _0x3d7ab7=_0x45bca4;return _0x3d7ab7(0x2cd);}get[_0x45bca4(0x25f)](){const _0x23a5c4=_0x45bca4;return _0x23a5c4(0x25f);}get['BaseHierarchyChanged'](){const _0x45ee98=_0x45bca4;return _0x45ee98(0x27a);}get[_0x45bca4(0x1e4)](){const _0x1334c6=_0x45bca4;return _0x1334c6(0x1e4);}};u[_0x45bca4(0x32c)][_0x45bca4(0x2f6)]($),exports[_0x45bca4(0x20c)]=v,Object[_0x45bca4(0x2c5)](exports,_0x45bca4(0x20a),{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0x45bca4(0x25a)]=m,exports[_0x45bca4(0x2bd)]=p,Object[_0x45bca4(0x2c5)](exports,'FBaseTable',{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x45bca4(0x2c5)](exports,'FBaseTableField',{'enumerable':!0x0,'get':function(){return _;}}),Object[_0x45bca4(0x2c5)](exports,_0x45bca4(0x24d),{'enumerable':!0x0,'get':function(){return A;}}),Object['defineProperty'](exports,_0x45bca4(0x306),{'enumerable':!0x0,'get':function(){return I;}}),Object['defineProperty'](exports,'FBaseTableView',{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x45bca4(0x2b8)]=$,exports[_0x45bca4(0x376)]=S,exports[_0x45bca4(0x2f9)]=b;
|