@univerjs-pro/bases 1.3.0 → 1.4.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/cjs/worker-BDigGzY4.js +1 -0
- package/lib/cjs/worker.js +1 -0
- 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/es/worker-1CbynS32.js +1 -0
- package/lib/es/worker.js +1 -0
- 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/types/config/config.d.ts +1 -1
- package/lib/types/controllers/base-formula-optional-identifier.d.ts +1 -1
- package/lib/types/fields/field-stat.d.ts +1 -1
- package/lib/types/index.d.ts +4 -1
- package/lib/types/plugin.d.ts +1 -13
- package/lib/types/services/base-command.service.d.ts +1 -1
- package/lib/types/services/base-field-registry.service.d.ts +2 -2
- package/lib/types/services/base-permission-point.d.ts +1 -1
- package/lib/types/services/base-permission.service.d.ts +1 -1
- package/lib/types/services/base-projection.service.d.ts +2 -2
- package/lib/types/services/base-resource.service.d.ts +1 -1
- package/lib/types/services/base-view-registry.service.d.ts +2 -2
- package/lib/types/worker.d.ts +14 -0
- 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/lib/worker-1CbynS32.js +1 -0
- package/lib/worker.js +1 -0
- package/package.json +17 -12
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x672810=_0x123d;function _0x123d(_0x4e5364,_0x45425a){_0x4e5364=_0x4e5364-0x191;const _0x1a9782=_0x1a97();let _0x123d84=_0x1a9782[_0x4e5364];return _0x123d84;}(function(_0x3b2327,_0x481315){const _0x57aaef=_0x123d,_0x497318=_0x3b2327();while(!![]){try{const _0x5dacf2=-parseInt(_0x57aaef(0x1ef))/0x1+parseInt(_0x57aaef(0x280))/0x2*(parseInt(_0x57aaef(0x1fb))/0x3)+-parseInt(_0x57aaef(0x2d8))/0x4+parseInt(_0x57aaef(0x1e8))/0x5*(-parseInt(_0x57aaef(0x252))/0x6)+-parseInt(_0x57aaef(0x200))/0x7+parseInt(_0x57aaef(0x258))/0x8+parseInt(_0x57aaef(0x1b4))/0x9*(parseInt(_0x57aaef(0x1ba))/0xa);if(_0x5dacf2===_0x481315)break;else _0x497318['push'](_0x497318['shift']());}catch(_0xa8d730){_0x497318['push'](_0x497318['shift']());}}}(_0x1a97,0xd6a3b));import{ApplyBaseJson1Mutation as _0x29f6bf,BASE_TABLE_NAME_REQUIREMENTS as _0x43ed5f,BaseConditionalColorRuleUpdateType as _0x5ac52a,BaseEventSource as _0xe81c71,BaseHierarchyErrorCode as _0x4a6014,BatchCreateBaseRecordsCommand as _0x2b0a08,BatchDeleteBaseRecordsCommand as _0x49a978,ChangeBaseFieldTypeCommand as _0x4d4dc5,CreateBaseChildRecordCommand as _0x2eeb56,CreateBaseFieldCommand as _0x5004a9,CreateBaseRecordCommand as _0x431c7b,CreateBaseTableCommand as _0x3dd62e,CreateBaseViewCommand as _0x6d95a5,DeleteBaseFieldCommand as _0x2a7aef,DeleteBaseRecordCommand as _0x2461cb,DeleteBaseTableCommand as _0x20caaa,DeleteBaseViewCommand as _0x205d29,DuplicateBaseRecordCommand as _0x425683,IBaseProjectionService as _0x400a91,MoveBaseFieldCommand as _0x519d92,MoveBaseHierarchyRecordCommand as _0x123689,MoveBaseViewCommand as _0x575263,RenameBaseTableCommand as _0xfdb55c,RenameBaseViewCommand as _0x560ff3,SetBaseNameCommand as _0x3fec51,SetBasePermissionCommand as _0x38a1bb,SetBasePermissionsCommand as _0x3cc7cf,SetBaseRangeValuesCommand as _0x49690c,SetBaseRecordValuesCommand as _0x3ef9eb,SetBaseTableHierarchyFieldCommand as _0x46e1ca,SetBaseViewFieldOrderCommand as _0xf0d992,SetBaseViewFieldVisibleCommand as _0x466bff,SetBaseViewFieldWidthCommand as _0x4df4a5,SetBaseViewFilterCommand as _0x4b46c7,SetBaseViewGroupCommand as _0x3aab37,SetBaseViewSortCommand as _0x4cedde,UpdateBaseCellCommand as _0xf2eaa0,UpdateBaseFieldCommand as _0x4de297,UpdateBaseRecordOrderCommand as _0x37e551,UpdateBaseViewConditionalColorRulesCommand as _0x2c5d52,UpdateBaseViewConfigCommand as _0x27c22b,ValidateBaseFormulaCommand as _0x452386,buildBaseHierarchyIndex as _0x4f82a6,canEditBaseTargets as _0x186b03,copyBaseTableSnapshot as _0xedde2c,createUniqueBaseTableName as _0x561a70,ensureBaseTableCellLayout as _0x5adfc5,getActiveBaseHierarchyFieldIds as _0x5754ca,getBaseCellValue as _0x2e4e75,getBaseFieldPermissionObjectId as _0x5ba058,getBaseFormulaTableName as _0x565dba,getBaseHierarchyDeletePromotions as _0x569492,getBasePermissionValue as _0x26ea23,getBaseRecordPermissionObjectId as _0x5115f4,getBaseTablePermissionObjectId as _0x1f3d94,getBaseViewPermissionObjectId as _0x17cc98,getRecordLinkFieldConfig as _0x10fe9e,matchesBaseCondition as _0x42dc53,parseRecordLinkIds as _0xa22387,resolveBaseHierarchyFieldId as _0x3cd49d,resolveBaseRangeHierarchyPatches as _0x342aca,searchBaseTable as _0x3c96dc,serializeRecordLinkIds as _0xb3a4ba,validateBaseHierarchyRecordCreations as _0x47bdaf,validateBaseHierarchyRecordPatches as _0x3193de,validateBaseTableName as _0x520269,validateRecordLinkValue as _0x546b12}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x1f464c,BaseConditionalColorOperator as _0x358942,BaseConditionalColorTarget as _0x4954f2,BaseConditionalDateMode as _0xfe2896,BaseFieldType as _0x22894c,BaseFilterConjunction as _0x5b15fe,BaseFilterOperator as _0x497ab3,BaseHierarchyInvalidReason as _0x214af2,BaseRecordLinkRole as _0x4ccd60,BaseSortDirection as _0x55f975,BaseViewType as _0x345987,CanceledError as _0x2fd329,ICommandService as _0x49e372,IPermissionService as _0x59e954,IResourceLoaderService as _0x2ec0f3,ImageSourceType as _0x323aed,Inject as _0x1f83e3,Injector as _0x1d5f17,Tools as _0x2fe97f,UniverInstanceType as _0xc43c8,createDefaultBaseTableSnapshot as _0x546bf8,generateRandomId as _0xc362eb}from'@univerjs/core';import*as _0xe0f600 from'@univerjs/core/facade';import{FBaseInitialable as _0x157757,FEnum as _0x1527ae,FEventName as _0x1b8ca7,FUniver as _0x5ac03e}from'@univerjs/core/facade';import{UnitAction as _0x23b8a9}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x1c80ca}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x3d702b,_0x234ce3,_0x169471){const _0x2f048e=_0x123d;this[_0x2f048e(0x210)]=_0x3d702b,this[_0x2f048e(0x28b)]=_0x234ce3,this[_0x2f048e(0x2c1)]=_0x169471;}async['setObjectPermissions'](_0x559fbb){const _0x408693=_0x123d;return this[_0x408693(0x28b)]['executeCommand'](_0x3cc7cf['id'],{'unitId':this[_0x408693(0x210)],'changes':_0x559fbb});}async[_0x672810(0x244)](_0x28341a,_0xe413bb){const _0x578df6=_0x672810;await this[_0x578df6(0x28b)][_0x578df6(0x2f3)](_0x38a1bb['id'],{'unitId':this[_0x578df6(0x210)],'objectId':this[_0x578df6(0x210)],'action':_0x28341a,'value':_0xe413bb});}[_0x672810(0x196)](_0x1cc27d){const _0x54181b=_0x672810;return _0x26ea23(this[_0x54181b(0x2c1)],this[_0x54181b(0x210)],this[_0x54181b(0x210)],_0x1cc27d);}async[_0x672810(0x199)](_0x4a2980=!0x0){const _0x439a9f=_0x672810;await this['_commandService'][_0x439a9f(0x2f3)](_0x38a1bb['id'],{'unitId':this[_0x439a9f(0x210)],'objectId':this[_0x439a9f(0x210)],'action':_0x23b8a9[_0x439a9f(0x2cb)],'value':_0x4a2980});}async[_0x672810(0x2b8)](){const _0x3dc2bd=_0x672810;await this[_0x3dc2bd(0x28b)][_0x3dc2bd(0x2f3)](_0x38a1bb['id'],{'unitId':this['_unitId'],'objectId':this[_0x3dc2bd(0x210)],'action':_0x23b8a9[_0x3dc2bd(0x2cb)],'value':!0x1});}[_0x672810(0x230)](){const _0x5a5394=_0x672810;return _0x26ea23(this['_permissionService'],this[_0x5a5394(0x210)],this['_unitId'],_0x23b8a9[_0x5a5394(0x2cb)]);}},L=class{constructor(_0x406d52,_0x71a1b5,_0x41929,_0x5b0171,_0x1286ee){const _0x2fc385=_0x672810;this[_0x2fc385(0x210)]=_0x406d52,this[_0x2fc385(0x2b4)]=_0x71a1b5,this['_parentObjectIds']=_0x41929,this[_0x2fc385(0x28b)]=_0x5b0171,this[_0x2fc385(0x2c1)]=_0x1286ee;}async[_0x672810(0x199)](_0x5aaf41=!0x0){const _0x1cdc35=_0x672810;await this[_0x1cdc35(0x28b)][_0x1cdc35(0x2f3)](_0x38a1bb['id'],{'unitId':this[_0x1cdc35(0x210)],'objectId':this[_0x1cdc35(0x2b4)],'action':_0x23b8a9[_0x1cdc35(0x2cb)],'value':_0x5aaf41});}async['setReadOnly'](){const _0x2695e8=_0x672810;await this[_0x2695e8(0x28b)]['executeCommand'](_0x38a1bb['id'],{'unitId':this['_unitId'],'objectId':this[_0x2695e8(0x2b4)],'action':_0x23b8a9[_0x2695e8(0x2cb)],'value':!0x1});}['canEdit'](){const _0x34435e=_0x672810;return _0x186b03(this[_0x34435e(0x2c1)],this[_0x34435e(0x210)],[...this['_parentObjectIds'],this[_0x34435e(0x2b4)]]);}};function R(_0x515b4a,_0x2b2a53){return function(_0x33bc6d,_0x24c85b){_0x2b2a53(_0x33bc6d,_0x24c85b,_0x515b4a);};}function z(_0x24b531,_0x5a3b26,_0xa44384,_0x3765d0){const _0x547f57=_0x672810;var _0x2030b7=arguments['length'],_0x49b5b6=_0x2030b7<0x3?_0x5a3b26:_0x3765d0===null?_0x3765d0=Object[_0x547f57(0x27b)](_0x5a3b26,_0xa44384):_0x3765d0,_0x2dfbdc;if(typeof Reflect=='object'&&typeof Reflect[_0x547f57(0x1cc)]=='function')_0x49b5b6=Reflect['decorate'](_0x24b531,_0x5a3b26,_0xa44384,_0x3765d0);else{for(var _0x3a4f9a=_0x24b531[_0x547f57(0x233)]-0x1;_0x3a4f9a>=0x0;_0x3a4f9a--)(_0x2dfbdc=_0x24b531[_0x3a4f9a])&&(_0x49b5b6=(_0x2030b7<0x3?_0x2dfbdc(_0x49b5b6):_0x2030b7>0x3?_0x2dfbdc(_0x5a3b26,_0xa44384,_0x49b5b6):_0x2dfbdc(_0x5a3b26,_0xa44384))||_0x49b5b6);}return _0x2030b7>0x3&&_0x49b5b6&&Object[_0x547f57(0x1a6)](_0x5a3b26,_0xa44384,_0x49b5b6),_0x49b5b6;}let B=class{constructor(_0x2f15fa,_0x29cfd1,_0x82ef02,_0x5e76f2,_0x1f3b2c){const _0x67869d=_0x672810;this[_0x67869d(0x1e9)]=_0x2f15fa,this[_0x67869d(0x228)]=_0x29cfd1,this[_0x67869d(0x226)]=_0x82ef02,this[_0x67869d(0x28b)]=_0x5e76f2,this[_0x67869d(0x2c1)]=_0x1f3b2c;}[_0x672810(0x2b9)](){const _0x3394ca=_0x672810;return this[_0x3394ca(0x226)];}['getPermission'](){const _0x1bb13a=_0x672810;let _0x50a8ab=this[_0x1bb13a(0x228)]['getId']();return new L(this[_0x1bb13a(0x1e9)]['getId'](),_0x5ba058(_0x50a8ab,this[_0x1bb13a(0x226)]),[_0x1f3d94(_0x50a8ab)],this[_0x1bb13a(0x28b)],this[_0x1bb13a(0x2c1)]);}['getField'](){const _0x7f0985=_0x672810;return this[_0x7f0985(0x227)]();}['getName'](){const _0x13fbd9=_0x672810;return this[_0x13fbd9(0x227)]()['name'];}[_0x672810(0x208)](){const _0x2713dd=_0x672810;return this[_0x2713dd(0x227)]()['type'];}[_0x672810(0x1f4)](){const _0x27cd53=_0x672810;return this[_0x27cd53(0x227)]()[_0x27cd53(0x2f4)];}[_0x672810(0x1bf)](){const _0xd90b4b=_0x672810;return this[_0xd90b4b(0x227)]()[_0xd90b4b(0x1d2)];}[_0x672810(0x275)](){const _0x2173cc=_0x672810;return this[_0x2173cc(0x227)]()[_0x2173cc(0x202)];}[_0x672810(0x2f9)](){const _0xcdefdd=_0x672810;return!!this[_0xcdefdd(0x227)]()[_0xcdefdd(0x2aa)];}[_0x672810(0x2dd)](_0x4f13af){const _0x5772e2=_0x672810;return this[_0x5772e2(0x1d3)]({'name':_0x4f13af});}['setConfig'](_0x4063c0,_0x1406d4){const _0x5a8152=_0x672810;return this[_0x5a8152(0x1d3)]({'config':_0x4063c0},_0x1406d4);}[_0x672810(0x1b9)](_0xa34eef){const _0xafe0ae=_0x672810;return this[_0xafe0ae(0x1d3)]({'defaultValue':_0xa34eef});}[_0x672810(0x1d3)](_0xf2fd60,_0x28e543){const _0x5bf5ef=_0x672810;let _0x391782=this[_0x5bf5ef(0x227)]()[_0x5bf5ef(0x27e)];return(_0xf2fd60[_0x5bf5ef(0x27e)]??_0x391782)===_0x22894c['Formula']&&(Object[_0x5bf5ef(0x2d3)][_0x5bf5ef(0x1e7)][_0x5bf5ef(0x2a5)](_0xf2fd60,_0x5bf5ef(0x2f4))||_0xf2fd60['type']===_0x22894c[_0x5bf5ef(0x2d1)])&&!this[_0x5bf5ef(0x1fd)](_0x28e543)?!0x1:this[_0x5bf5ef(0x28b)][_0x5bf5ef(0x1ae)](_0x4de297['id'],{'unitId':this['_base'][_0x5bf5ef(0x2b9)](),'tableId':this[_0x5bf5ef(0x228)][_0x5bf5ef(0x2b9)](),'fieldId':this['_fieldId'],'patch':_0xf2fd60});}[_0x672810(0x2c2)](_0x3ffa59,_0x3c978a={},_0x5c3dcf){const _0x381b86=_0x672810;return _0x3ffa59===_0x22894c[_0x381b86(0x2d1)]&&!this['_writeFormulaExternalReferences'](_0x5c3dcf)?!0x1:this[_0x381b86(0x28b)]['syncExecuteCommand'](_0x4d4dc5['id'],{'unitId':this[_0x381b86(0x1e9)]['getId'](),'tableId':this[_0x381b86(0x228)][_0x381b86(0x2b9)](),'fieldId':this[_0x381b86(0x226)],'input':{'type':_0x3ffa59,'config':_0x3c978a}});}[_0x672810(0x26e)](){const _0x38cc5c=_0x672810;return this[_0x38cc5c(0x28b)][_0x38cc5c(0x1ae)](_0x2a7aef['id'],{'unitId':this[_0x38cc5c(0x1e9)][_0x38cc5c(0x2b9)](),'tableId':this[_0x38cc5c(0x228)][_0x38cc5c(0x2b9)](),'fieldId':this[_0x38cc5c(0x226)]});}[_0x672810(0x1ac)](_0x2372f4){const _0x37af9b=_0x672810;return this[_0x37af9b(0x28b)][_0x37af9b(0x1ae)](_0x519d92['id'],{'unitId':this[_0x37af9b(0x1e9)]['getId'](),'tableId':this[_0x37af9b(0x228)][_0x37af9b(0x2b9)](),'fieldId':this[_0x37af9b(0x226)],'target':_0x2372f4});}[_0x672810(0x227)](){const _0x39ab59=_0x672810;let _0x26372b=this[_0x39ab59(0x228)][_0x39ab59(0x22f)]()['fields'][this['_fieldId']];if(!_0x26372b)throw Error(_0x39ab59(0x23b)+this[_0x39ab59(0x226)]+_0x39ab59(0x24c));return _0x26372b;}[_0x672810(0x1fd)](_0x1597dc){const _0x4a37e8=_0x672810;if(!_0x1597dc||!Array[_0x4a37e8(0x248)](_0x1597dc[_0x4a37e8(0x270)]))return console[_0x4a37e8(0x267)](_0x4a37e8(0x2f8)),!0x1;if(_0x1597dc[_0x4a37e8(0x270)][_0x4a37e8(0x233)]===0x0)return!0x0;let _0x43b224=this[_0x4a37e8(0x28b)][_0x4a37e8(0x1ae)](_0x1c80ca['id'],{'unitId':this[_0x4a37e8(0x1e9)][_0x4a37e8(0x2b9)](),'references':_0x1597dc[_0x4a37e8(0x270)]});return _0x43b224||console[_0x4a37e8(0x267)](_0x4a37e8(0x222)),_0x43b224;}};B=z([R(0x3,_0x49e372),R(0x4,_0x59e954)],B);let ot=function(_0x139f69){const _0x5c9f56=_0x672810;return _0x139f69['Id']='id',_0x139f69['Name']='name',_0x139f69[_0x5c9f56(0x25a)]=_0x5c9f56(0x1b1),_0x139f69;}({});function V(_0x207ff2){const _0x1505c4=_0x672810;return!!(_0x207ff2&&_0x207ff2[_0x1505c4(0x2ed)]!==!0x0&&_0x207ff2[_0x1505c4(0x27e)]!==_0x22894c[_0x1505c4(0x29b)]);}function H(_0x459a9e,_0x37e46b,_0x3b4831='id'){const _0xb54bfd=_0x672810;if(!_0x37e46b)return{};let _0x45ceb5={};return Object[_0xb54bfd(0x25f)](_0x37e46b)[_0xb54bfd(0x2b3)](([_0x21eb43,_0x262470])=>{const _0x4f8c4b=_0xb54bfd;let _0x1227b1=ct(_0x459a9e,_0x21eb43,_0x3b4831);_0x45ceb5[_0x1227b1]=st(_0x459a9e[_0x4f8c4b(0x24d)][_0x1227b1],_0x262470);}),_0x45ceb5;}function st(_0x1d1516,_0x43ca53){const _0x551e88=_0x672810;if((_0x1d1516==null?void 0x0:_0x1d1516['type'])!==_0x22894c[_0x551e88(0x2cf)]||_0x43ca53==null)return _0x43ca53;if(!Array[_0x551e88(0x248)](_0x43ca53))throw TypeError(_0x551e88(0x1b6)+_0x1d1516['name']+_0x551e88(0x2f2));return _0x43ca53[_0x551e88(0x2c6)]((_0x5204db,_0x3c3c1f)=>lt(_0x1d1516,_0x5204db,_0x3c3c1f));}function ct(_0x439a5a,_0x1f71bf,_0x5ef09f){const _0x550615=_0x672810;if(_0x5ef09f==='id'||_0x5ef09f===_0x550615(0x1b1)&&_0x439a5a[_0x550615(0x24d)][_0x1f71bf])return _0x1f71bf;let _0x4e6cb2=Object[_0x550615(0x1cf)](_0x439a5a['fields'])['filter'](_0x256cec=>_0x256cec['name']===_0x1f71bf);if(_0x4e6cb2[_0x550615(0x233)]===0x1)return _0x4e6cb2[0x0]['id'];throw _0x4e6cb2['length']>0x1?Error(_0x550615(0x253)+_0x1f71bf):Error(_0x550615(0x214)+_0x1f71bf);}function lt(_0x263a51,_0x57f713,_0x17c1f8){const _0x4ec49d=_0x672810;let _0x3e0f4e='Invalid\x20attachment\x20at\x20index\x20'+_0x17c1f8+_0x4ec49d(0x2e2)+_0x263a51[_0x4ec49d(0x1ca)]+'\x22';if(!ft(_0x57f713))throw TypeError(_0x3e0f4e+_0x4ec49d(0x2c9));if('url'in _0x57f713)throw TypeError(_0x3e0f4e+_0x4ec49d(0x2b1));if(_0x4ec49d(0x27e)in _0x57f713)throw TypeError(_0x3e0f4e+':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.');let _0x5ae467=U(_0x57f713['id'],_0x3e0f4e,'id'),_0xd28e06=U(_0x57f713[_0x4ec49d(0x1ca)],_0x3e0f4e,_0x4ec49d(0x1ca)),_0x2e103c=U(_0x57f713[_0x4ec49d(0x2e1)],_0x3e0f4e,_0x4ec49d(0x2e1));return{'id':_0x5ae467,'name':_0xd28e06,'source':_0x2e103c,'sourceType':ut(_0x57f713[_0x4ec49d(0x294)],_0x2e103c,_0x3e0f4e),...dt(_0x57f713,_0x4ec49d(0x2b2),_0x3e0f4e),...W(_0x57f713,_0x4ec49d(0x1b2),_0x3e0f4e),...W(_0x57f713,_0x4ec49d(0x1c5),_0x3e0f4e),...W(_0x57f713,_0x4ec49d(0x2a6),_0x3e0f4e),...dt(_0x57f713,_0x4ec49d(0x2a1),_0x3e0f4e)};}function ut(_0x4e62cc,_0x3a62ca,_0x5c22cf){const _0xf1ef06=_0x672810;if(_0x4e62cc==null)return _0x3a62ca[_0xf1ef06(0x1e3)]('data:')?_0x323aed[_0xf1ef06(0x274)]:_0x323aed[_0xf1ef06(0x1ea)];if(_0x4e62cc===_0x323aed['URL']||_0x4e62cc===_0x323aed[_0xf1ef06(0x213)]||_0x4e62cc===_0x323aed['BASE64'])return _0x4e62cc;throw TypeError(_0x5c22cf+_0xf1ef06(0x1c1));}function U(_0x43f7bb,_0x1192f0,_0x4d9a8f){const _0x46f70c=_0x672810;if(typeof _0x43f7bb!=_0x46f70c(0x289)||!_0x43f7bb[_0x46f70c(0x191)]())throw TypeError(_0x1192f0+_0x46f70c(0x2d4)+_0x4d9a8f+_0x46f70c(0x1fe));return _0x43f7bb;}function dt(_0x476ec2,_0x73ac15,_0x2141df){const _0x5d74cb=_0x672810;let _0x1784d2=_0x476ec2[_0x73ac15];if(_0x1784d2==null)return{};if(typeof _0x1784d2!=_0x5d74cb(0x289)||!_0x1784d2[_0x5d74cb(0x191)]())throw TypeError(_0x2141df+_0x5d74cb(0x2d4)+_0x73ac15+_0x5d74cb(0x19f));return{[_0x73ac15]:_0x1784d2};}function W(_0x4776c4,_0x2e51df,_0x126f79){const _0x4f946c=_0x672810;let _0x237832=_0x4776c4[_0x2e51df];if(_0x237832==null)return{};if(typeof _0x237832!=_0x4f946c(0x256)||!Number[_0x4f946c(0x237)](_0x237832)||_0x237832<0x0)throw TypeError(_0x126f79+':\x20\x22'+_0x2e51df+_0x4f946c(0x288));return{[_0x2e51df]:_0x237832};}function ft(_0x50e69d){const _0x256182=_0x672810;return typeof _0x50e69d==_0x256182(0x229)&&!!_0x50e69d&&!Array['isArray'](_0x50e69d);}var G;let K=G=class{constructor(_0x293625,_0x44b18b,_0x5d1cd8,_0x4e60fd,_0x4d5212){const _0x32fde5=_0x672810;this[_0x32fde5(0x1e9)]=_0x293625,this[_0x32fde5(0x228)]=_0x44b18b,this['_range']=_0x5d1cd8,this[_0x32fde5(0x20a)]=_0x4e60fd,this[_0x32fde5(0x28b)]=_0x4d5212,this[_0x32fde5(0x1cb)]();}[_0x672810(0x279)](){const _0x1578ef=_0x672810;return this[_0x1578ef(0x1e9)][_0x1578ef(0x2b9)]();}[_0x672810(0x235)](){const _0x20748b=_0x672810;return this['_table'][_0x20748b(0x2b9)]();}[_0x672810(0x2d2)](){return{...this['_range']};}[_0x672810(0x20c)](){const _0x415354=_0x672810;return this[_0x415354(0x1a4)][_0x415354(0x20f)];}[_0x672810(0x245)](){const _0x538d45=_0x672810;return this[_0x538d45(0x1a4)][_0x538d45(0x29a)];}[_0x672810(0x1de)](){const _0x1fb267=_0x672810;return this[_0x1fb267(0x1a4)][_0x1fb267(0x1c9)]-this[_0x1fb267(0x1a4)][_0x1fb267(0x20f)]+0x1;}[_0x672810(0x298)](){const _0x7c560b=_0x672810;return this[_0x7c560b(0x1a4)][_0x7c560b(0x2ec)]-this[_0x7c560b(0x1a4)]['startColumn']+0x1;}[_0x672810(0x269)](){const _0x318886=_0x672810;let _0x2685e1=this['_getTable'](),_0xc9bdd9=this[_0x318886(0x242)](_0x2685e1),_0x5972c9=[];for(let _0x2b4f22=this[_0x318886(0x1a4)][_0x318886(0x20f)];_0x2b4f22<=this['_range'][_0x318886(0x1c9)];_0x2b4f22++){var _0x34d32e;let _0x1a6735=(_0x34d32e=_0x2685e1[_0x318886(0x2e6)])==null?void 0x0:_0x34d32e[_0x2b4f22],_0x371025=[];for(let _0x1e23f4=this[_0x318886(0x1a4)]['startColumn'];_0x1e23f4<=this[_0x318886(0x1a4)][_0x318886(0x2ec)];_0x1e23f4++){let _0x5e8dc4=_0xc9bdd9[_0x1e23f4];_0x371025[_0x318886(0x265)](_0x1a6735&&_0x5e8dc4?_0x2e4e75(_0x2685e1,_0x1a6735,_0x5e8dc4):null);}_0x5972c9[_0x318886(0x265)](_0x371025);}return _0x5972c9;}['getValue'](){const _0x5aede1=_0x672810;var _0x3c7c63;return((_0x3c7c63=this[_0x5aede1(0x269)]()[0x0])==null?void 0x0:_0x3c7c63[0x0])??null;}[_0x672810(0x19d)](_0x5cfb78){const _0x28baad=_0x672810;return this[_0x28baad(0x2af)]([[_0x5cfb78]]);}[_0x672810(0x2af)](_0x2e95af){const _0x26068f=_0x672810;let _0x117123=this[_0x26068f(0x1de)](),_0x3ead07=this['getNumColumns']();if(_0x2e95af[_0x26068f(0x233)]>_0x117123||_0x2e95af['some'](_0x589b11=>_0x589b11[_0x26068f(0x233)]>_0x3ead07)){var _0x33f63a;throw Error(_0x26068f(0x217)+_0x2e95af['length']+'x'+(((_0x33f63a=_0x2e95af[0x0])==null?void 0x0:_0x33f63a[_0x26068f(0x233)])??0x0)+'\x20exceeds\x20range\x20size\x20'+_0x117123+'x'+_0x3ead07+'.');}let _0x20c09d=this[_0x26068f(0x1b8)](),_0x487f73=this[_0x26068f(0x242)](_0x20c09d),_0x3e9d76=_0x2e95af['flatMap']((_0x3a9963,_0x5c5fcf)=>_0x3a9963['map']((_0x4e293a,_0x1e4133)=>{const _0x1caab5=_0x26068f;var _0x12d4a7;let _0x4c0202=this[_0x1caab5(0x1a4)][_0x1caab5(0x20f)]+_0x5c5fcf,_0x1234c5=_0x487f73[this[_0x1caab5(0x1a4)][_0x1caab5(0x29a)]+_0x1e4133],_0x24c4c9=(_0x12d4a7=_0x20c09d[_0x1caab5(0x2e6)])==null?void 0x0:_0x12d4a7[_0x4c0202];if(!_0x1234c5||!_0x24c4c9)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x24c4c9,'fieldId':_0x1234c5,'value':_0x4e293a};}));return this[_0x26068f(0x28b)][_0x26068f(0x1ae)](_0x49690c['id'],{'unitId':this[_0x26068f(0x1e9)]['getId'](),'tableId':this[_0x26068f(0x228)]['getId'](),'patches':_0x3e9d76,'source':_0xe81c71[_0x26068f(0x22b)]});}[_0x672810(0x2c4)](){const _0x4b80d0=_0x672810;return this[_0x4b80d0(0x2af)](Array[_0x4b80d0(0x1f7)]({'length':this[_0x4b80d0(0x1de)]()},()=>Array[_0x4b80d0(0x1f7)]({'length':this[_0x4b80d0(0x298)]()},()=>null)));}[_0x672810(0x2fc)](_0x358d27,_0x5f5649,_0x3012b5=this[_0x672810(0x1de)](),_0x964e51=this[_0x672810(0x298)]()){const _0x22c2c0=_0x672810;return this['_inject'][_0x22c2c0(0x24b)](G,this[_0x22c2c0(0x1e9)],this[_0x22c2c0(0x228)],{'startRow':this[_0x22c2c0(0x1a4)][_0x22c2c0(0x20f)]+_0x358d27,'startColumn':this[_0x22c2c0(0x1a4)][_0x22c2c0(0x29a)]+_0x5f5649,'endRow':this[_0x22c2c0(0x1a4)]['startRow']+_0x358d27+_0x3012b5-0x1,'endColumn':this['_range']['startColumn']+_0x5f5649+_0x964e51-0x1},this['_inject']);}[_0x672810(0x1b8)](){const _0x4da798=_0x672810;let _0x20bf6e=this[_0x4da798(0x228)][_0x4da798(0x22f)]();if(!_0x20bf6e)throw Error(_0x4da798(0x1ab));return _0x5adfc5(_0x20bf6e);}[_0x672810(0x1cb)](){const _0x4b57f5=_0x672810;var _0x3758ef;let _0xdda664=this[_0x4b57f5(0x1b8)](),_0x5bb1d0=((_0x3758ef=_0xdda664[_0x4b57f5(0x1a1)])==null?void 0x0:_0x3758ef[_0x4b57f5(0x233)])??0x0,_0x36c211=this[_0x4b57f5(0x242)](_0xdda664)[_0x4b57f5(0x233)];if(this['_range'][_0x4b57f5(0x20f)]<0x0||this[_0x4b57f5(0x1a4)][_0x4b57f5(0x29a)]<0x0||this['_range'][_0x4b57f5(0x1c9)]<this['_range']['startRow']||this[_0x4b57f5(0x1a4)][_0x4b57f5(0x2ec)]<this[_0x4b57f5(0x1a4)][_0x4b57f5(0x29a)]||this[_0x4b57f5(0x1a4)]['endRow']>=Math['max'](_0x5bb1d0,0x1)||this['_range'][_0x4b57f5(0x2ec)]>=Math[_0x4b57f5(0x282)](_0x36c211,0x1))throw Error('[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20'+_0x5bb1d0+_0x4b57f5(0x2f6)+_0x36c211+_0x4b57f5(0x22e)+JSON[_0x4b57f5(0x1d0)](this['_range'])+'.');}[_0x672810(0x242)](_0x4d55ad){const _0x50543f=_0x672810;return _0x4d55ad[_0x50543f(0x262)][_0x50543f(0x1c8)](_0x2421e8=>V(_0x4d55ad['fields'][_0x2421e8]));}};K=G=z([R(0x4,_0x49e372)],K);function q(_0x3434d6){'@babel/helpers - typeof';const _0x52b1a3=_0x672810;return q=typeof Symbol==_0x52b1a3(0x277)&&typeof Symbol['iterator']==_0x52b1a3(0x223)?function(_0x258c97){return typeof _0x258c97;}:function(_0x22814b){const _0x593a0f=_0x52b1a3;return _0x22814b&&typeof Symbol==_0x593a0f(0x277)&&_0x22814b[_0x593a0f(0x2c8)]===Symbol&&_0x22814b!==Symbol[_0x593a0f(0x2d3)]?'symbol':typeof _0x22814b;},q(_0x3434d6);}function pt(_0xa81de0,_0x5504a3){const _0x4c335f=_0x672810;if(q(_0xa81de0)!=_0x4c335f(0x229)||!_0xa81de0)return _0xa81de0;var _0x56b7f9=_0xa81de0[Symbol['toPrimitive']];if(_0x56b7f9!==void 0x0){var _0x4409fb=_0x56b7f9[_0x4c335f(0x2a5)](_0xa81de0,_0x5504a3||_0x4c335f(0x2a7));if(q(_0x4409fb)!=_0x4c335f(0x229))return _0x4409fb;throw TypeError(_0x4c335f(0x26d));}return(_0x5504a3===_0x4c335f(0x289)?String:Number)(_0xa81de0);}function mt(_0x1c6ab5){const _0x6924e9=_0x672810;var _0x1fb7bf=pt(_0x1c6ab5,_0x6924e9(0x289));return q(_0x1fb7bf)==_0x6924e9(0x223)?_0x1fb7bf:_0x1fb7bf+'';}function _0x1a97(){const _0x21031c=['Duplicate\x20Base\x20field\x20name:\x20','custom','cancel','number','createView','7863584zzaGMQ','getBases','Auto','[FView]:\x20view\x20\x22','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','fireEvent','getChildren','entries','Invalid\x20Base\x20regex\x20filter:\x20','valid','fieldOrder','_baseUnitId','BaseConditionalColorTarget','push','_initBaseAfterEvents','warn','BaseFieldKeyEnum','getValues','updatedAt','tableId','AND','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','delete','BaseTableCreated','externalReferences','registerEventHandler','[FTable]:\x20table\x20\x22','BaseHierarchyErrorCode','BASE64','getDescription','updateConfig','function','getProjection','getBaseId','BeforeBaseTableFieldCreate','getOwnPropertyDescriptor','hidden','orderKey','type','setConditionalColorRules','48390zziNmR','getAncestors','max','field','addLinkedRecord','\x20Copy','fieldId','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','string','subtreeHeightByRecordId','_commandService','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','addRecord','getRecord','primaryFieldName','operator','base','getSort','get','sourceType','BaseConditionalColorOperator','boolean','[FRecord]:\x20field\x20\x22','getNumColumns','getHierarchyFieldId','startColumn','RecordId','BaseConditionalDateMode','tables','notMatches','duplicateTable','_fireBeforeHierarchyChange','thumbnail','BaseFilterConjunction','deleteConditionalColorRule','getTableFacade','call','height','default','Calendar','getPrimaryFieldId','readonly','BaseTableViewCreated','getRecordById','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','insertTable','setValues','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','mimeType','forEach','_objectId','_injector','_baseTableId','_getHierarchyIndex','setReadOnly','getId','createUnit','params','limit','BaseTableFieldCreated','[FBase]:\x20table\x20\x22','_recordId','[FRecord]:\x20record\x20\x22','_permissionService','changeType','getAllUnitsForType','clear','Set','map','_prepareFormulaFieldReferences','constructor',':\x20expected\x20an\x20object.','extend','Edit','deepClone','sort','getVisibleFields','Attachment','BaseEventSource','Formula','getRange','prototype',':\x20\x22','childrenByParentId','caseSensitive','\x22.\x20','4574968UPQVKe','getDataRange','[FRecord]:\x20invalid\x20RecordLink\x20value.','index','_resolveRecordIds','setName','viewId','getBase','parentByRecordId','source','\x20for\x20field\x20\x22','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','_getAttachmentField','_getHierarchyEventContext','rowId','direction','records','_resourceLoaderService','moveField','fieldSettings','endColumn','system','setLinkedRecordIds','record','getAttachments','Date','\x22:\x20expected\x20an\x20array.','executeCommand','config','addChild',',\x20max\x20columns:\x20','BaseTableCellValueChanged','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','isReadonly','getFieldByName','BaseViewType','offset','onCommandExecuted','trim','regenerateViewIds','Delete','deleteAttachments','getRecords','getPoint','some','getCurrentUnitOfType','setEditable','queryRecords','primaryFieldId','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','setValue','[FRecord]:\x20attachment\x20at\x20index\x20','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','BaseFieldType','recordOrder','Failed\x20to\x20create\x20view\x20\x22','conditions','_range','getViewById','defineProperty','createdAt','hierarchyChanges','includes','duplicate','[FBaseRange]:\x20table\x20does\x20not\x20exist.','move','getSchema','syncExecuteCommand','getActiveBase','afterFieldId','auto','size','getGroup','81BsQTEh','setHierarchyField','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','value','_getTable','setDefaultValue','3899470ivHQMR','\x20in\x20field\x20\x22','_getView','view','createBase','getDefaultValue','getSnapshot',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','BaseSortDirection','RecordLink','[FRecord]:\x20RecordLink\x20field\x20\x22','width','_viewId','invalid','filter','endRow','name','_assertInBounds','decorate','flatMap','setFieldWidth','values','stringify','BaseTableRecordCreated','defaultValue','update','rows','_initBaseBeforeEvents','getTables','_initialize','Grid','getValue','indexOf','setSort','Event','BaseFilterOperator','getNumRows','Clear','_tableId','BeforeBaseTableCreate','deleteRecords','startsWith','\x22\x20is\x20invalid.','addRecords','rules','hasOwnProperty','3044325xteQyQ','_base','URL','multiple','Remote','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','BaseHierarchyChanged','1177153WULkMm','views','includeRecords','clearConditionalColorRules','Add','getConfig','setParent','removeLinkedRecord','from','Invalid\x20Base\x20formula.','FBase','unitId','87dWbJdS','visibleCardFieldIds','_writeFormulaExternalReferences','\x22\x20must\x20be\x20a\x20non-empty\x20string.','_getRecord','5434366dUhIrs','getDescendants','description','Failed\x20to\x20duplicate\x20table\x20\x22','fieldIds','getViewByName','getLinkedRecordIds','getTableById','getType','viewOrder','_inject','has','getRow','orderedRecordIds','_projectionService','startRow','_unitId','BeforeBaseTableRecordCreate','recordId','UUID','Base\x20field\x20not\x20found:\x20','getName','formula','[FBaseRange]:\x20values\x20size\x20','setAttachments','UNIVER_BASE','reason','getParent','setFilter','setGroup','_collectDescendantIds','_getRecordLinkField','getPermission','getUnit','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','symbol','getView','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','_fieldId','_getField','_table','object','deleteTable','Facade','BeforeBaseHierarchyChange','disposeWithMe',',\x20range:\x20','getTable','canEdit','getViews','getTableByName','length','now','getTableId','localeCompare','isFinite','beforeCommandExecuted','deleteProperty','setOrderKey','[FField]:\x20field\x20\x22','getUnitId','BeforeBaseTableCellValueChange','BeforeBaseTableViewCreate','getFieldSettings','_univerInstanceService','matches','_getFieldIds','Unsupported\x20Base\x20field\x20type\x20\x22','setPoint','getColumn','Failed\x20to\x20delete\x20table\x20\x22','getFieldById','isArray','fieldKey','find','createInstance','\x22\x20does\x20not\x20exist.','fields','\x22\x20has\x20invalid\x20config.','fromCollab','table','tableOrder','12sujVhI'];_0x1a97=function(){return _0x21031c;};return _0x1a97();}function ht(_0x4182a2,_0x5f3d9f,_0x176e73){const _0x1fcc01=_0x672810;return(_0x5f3d9f=mt(_0x5f3d9f))in _0x4182a2?Object[_0x1fcc01(0x1a6)](_0x4182a2,_0x5f3d9f,{'value':_0x176e73,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4182a2[_0x5f3d9f]=_0x176e73,_0x4182a2;}var J;let Y=J=class extends _0x157757{constructor(_0x24c5a3,_0x31199b,_0x5340ed,_0x55aef4,_0x3abb87,_0x25258f){const _0x520f8b=_0x672810;super(_0x55aef4),this[_0x520f8b(0x1e9)]=_0x24c5a3,this[_0x520f8b(0x228)]=_0x31199b,this[_0x520f8b(0x2bf)]=_0x5340ed,this[_0x520f8b(0x2b5)]=_0x55aef4,this['_commandService']=_0x3abb87,this[_0x520f8b(0x2c1)]=_0x25258f,ht(this,_0x520f8b(0x263),void 0x0),ht(this,'_baseTableId',void 0x0),this[_0x520f8b(0x263)]=_0x24c5a3[_0x520f8b(0x2b9)](),this[_0x520f8b(0x2b6)]=_0x31199b['getId']();}['getBaseFacade'](){const _0xffa661=_0x672810;return this[_0xffa661(0x1e9)];}[_0x672810(0x2a4)](){return this['_table'];}[_0x672810(0x2b9)](){const _0x3eede0=_0x672810;return this[_0x3eede0(0x2bf)];}[_0x672810(0x220)](){const _0x14f69b=_0x672810;let _0x4f298b=this[_0x14f69b(0x228)]['getId']();return new L(this[_0x14f69b(0x1e9)][_0x14f69b(0x2b9)](),_0x5115f4(_0x4f298b,this[_0x14f69b(0x2bf)]),[_0x1f3d94(_0x4f298b)],this['_commandService'],this[_0x14f69b(0x2c1)]);}[_0x672810(0x28e)](){const _0x49999c=_0x672810;return{...this[_0x49999c(0x1ff)](),'values':this[_0x49999c(0x269)]()};}[_0x672810(0x1d9)](_0x400ec1){const _0xc82ff1=_0x672810;return V(this[_0xc82ff1(0x228)][_0xc82ff1(0x22f)]()[_0xc82ff1(0x24d)][_0x400ec1])?this['_getRecord']()[_0xc82ff1(0x1cf)][_0x400ec1]??null:null;}[_0x672810(0x269)](){const _0x6ea005=_0x672810;let _0x573c0c=this[_0x6ea005(0x228)][_0x6ea005(0x22f)]();return Object['fromEntries'](Object[_0x6ea005(0x25f)](this[_0x6ea005(0x1ff)]()[_0x6ea005(0x1cf)])[_0x6ea005(0x1c8)](([_0x50c687])=>V(_0x573c0c[_0x6ea005(0x24d)][_0x50c687])));}[_0x672810(0x19d)](_0x4c4cbe,_0x244ce6){const _0xa3ffab=_0x672810;let _0x26b966=this['_table'][_0xa3ffab(0x22f)]()[_0xa3ffab(0x24d)][_0x4c4cbe];return this[_0xa3ffab(0x28b)]['syncExecuteCommand'](_0xf2eaa0['id'],{'unitId':this[_0xa3ffab(0x1e9)]['getId'](),'tableId':this[_0xa3ffab(0x228)][_0xa3ffab(0x2b9)](),'recordId':this[_0xa3ffab(0x2bf)],'fieldId':_0x4c4cbe,'value':st(_0x26b966,_0x244ce6),'source':_0xe81c71[_0xa3ffab(0x22b)]});}[_0x672810(0x218)](_0x425329,_0x3a64e0){const _0x110d74=_0x672810;return this[_0x110d74(0x19d)](_0x425329,_0x3a64e0[_0x110d74(0x2c6)](_0x3be470=>({..._0x3be470})));}[_0x672810(0x2f0)](_0x3c5cbf){const _0x540935=_0x672810;this[_0x540935(0x2e4)](_0x3c5cbf);let _0x2379ac=this[_0x540935(0x1d9)](_0x3c5cbf);return Array[_0x540935(0x248)](_0x2379ac)?_0x2379ac[_0x540935(0x2c6)]((_0x28b27c,_0x2e00a8)=>_t(_0x28b27c,_0x3c5cbf,_0x2e00a8)):[];}[_0x672810(0x194)](_0x1d2a41,_0x2e7ffd){const _0x4d414a=_0x672810;this[_0x4d414a(0x2e4)](_0x1d2a41);let _0x4b31ab=new Set(_0x2e7ffd[_0x4d414a(0x2c6)](_0x131b4e=>_0x131b4e['id']));if(!_0x4b31ab['size'])return!0x0;let _0x2f206e=this[_0x4d414a(0x2f0)](_0x1d2a41),_0x5161c8=_0x2f206e[_0x4d414a(0x1c8)](_0x4d431d=>!_0x4b31ab['has'](_0x4d431d['id']));return _0x5161c8[_0x4d414a(0x233)]===_0x2f206e[_0x4d414a(0x233)]||this[_0x4d414a(0x218)](_0x1d2a41,_0x5161c8);}[_0x672810(0x2af)](_0x4b8c10,_0x159fe7='id'){const _0xc98557=_0x672810;let _0x2aae15=this[_0xc98557(0x228)][_0xc98557(0x22f)](),_0xc291fe=[{'recordId':this[_0xc98557(0x2bf)],'values':H(_0x2aae15,_0x4b8c10,_0x159fe7)}];return this[_0xc98557(0x28b)][_0xc98557(0x1ae)](_0x3ef9eb['id'],{'unitId':this[_0xc98557(0x1e9)][_0xc98557(0x2b9)](),'tableId':this[_0xc98557(0x228)]['getId'](),'patches':_0xc291fe,'source':_0xe81c71[_0xc98557(0x22b)]});}['delete'](){const _0x28772c=_0x672810;return this[_0x28772c(0x28b)]['syncExecuteCommand'](_0x2461cb['id'],{'unitId':this[_0x28772c(0x1e9)]['getId'](),'tableId':this['_table'][_0x28772c(0x2b9)](),'recordId':this[_0x28772c(0x2bf)],'source':_0xe81c71['Facade']});}[_0x672810(0x1aa)](_0x1c8934){const _0x2c12a8=_0x672810;let _0x4af0da={...this[_0x2c12a8(0x1ff)](),..._0x1c8934,'id':_0xc362eb(0x6)};_0x4af0da[_0x2c12a8(0x1cf)]={..._0x4af0da[_0x2c12a8(0x1cf)],..._0x1c8934==null?void 0x0:_0x1c8934[_0x2c12a8(0x1cf)]},Reflect[_0x2c12a8(0x239)](_0x4af0da[_0x2c12a8(0x1cf)],_0x1f464c);let _0x38fc2b=Date[_0x2c12a8(0x234)]();if(_0x4af0da['orderKey']||=''+_0x38fc2b,_0x4af0da['createdAt']||=_0x38fc2b,_0x4af0da[_0x2c12a8(0x26a)]||=_0x38fc2b,!this[_0x2c12a8(0x28b)][_0x2c12a8(0x1ae)](_0x425683['id'],{'unitId':this[_0x2c12a8(0x1e9)][_0x2c12a8(0x2b9)](),'tableId':this[_0x2c12a8(0x228)][_0x2c12a8(0x2b9)](),'sourceRecordId':this[_0x2c12a8(0x2bf)],'record':_0x4af0da,'source':_0xe81c71['Facade']}))throw Error(_0x2c12a8(0x19c)+this[_0x2c12a8(0x2bf)]+'\x22.');return this[_0x2c12a8(0x2b5)]['createInstance'](J,this[_0x2c12a8(0x1e9)],this[_0x2c12a8(0x228)],_0x4af0da['id'],this[_0x2c12a8(0x2b5)]);}[_0x672810(0x23a)](_0x29cdff){const _0x3c240a=_0x672810;return this[_0x3c240a(0x28b)][_0x3c240a(0x1ae)](_0x37e551['id'],{'unitId':this[_0x3c240a(0x1e9)]['getId'](),'tableId':this[_0x3c240a(0x228)][_0x3c240a(0x2b9)](),'recordId':this[_0x3c240a(0x2bf)],'orderKey':_0x29cdff});}[_0x672810(0x206)](_0x37e1bf){const _0x5e7176=_0x672810;let _0x63e468=this[_0x5e7176(0x21f)](_0x37e1bf),_0x32676b=this['getValue'](_0x63e468['id']);return _0xa22387(_0x32676b);}['setLinkedRecordIds'](_0x104d7a,_0x43db18){const _0xba6143=_0x672810;let _0x4e45ce=this[_0xba6143(0x21f)](_0x104d7a),_0x3abb85=_0xb3a4ba(_0x43db18),_0x1977fa=_0x546b12(this[_0xba6143(0x1e9)][_0xba6143(0x2df)]()[_0xba6143(0x1c0)](),_0x4e45ce,_0x3abb85);if(!_0x1977fa[_0xba6143(0x261)])throw Error(_0x1977fa[_0xba6143(0x21a)]??_0xba6143(0x2da));return this['_commandService'][_0xba6143(0x1ae)](_0xf2eaa0['id'],{'unitId':this[_0xba6143(0x1e9)][_0xba6143(0x2b9)](),'tableId':this[_0xba6143(0x228)][_0xba6143(0x2b9)](),'recordId':this[_0xba6143(0x2bf)],'fieldId':_0x104d7a,'value':_0x3abb85,'source':_0xe81c71[_0xba6143(0x22b)]});}[_0x672810(0x284)](_0x4c6885,_0x27eb8f){const _0x36026a=_0x672810;let _0x1a9880=this[_0x36026a(0x21f)](_0x4c6885),_0x5a40ed=_0x10fe9e(_0x1a9880);if(!_0x5a40ed)throw Error(_0x36026a(0x1c4)+_0x4c6885+_0x36026a(0x24e));let _0x4004c5=this['getLinkedRecordIds'](_0x4c6885);return _0x5a40ed[_0x36026a(0x1eb)]&&_0x4004c5[_0x36026a(0x1a9)](_0x27eb8f)?!0x0:this[_0x36026a(0x2ee)](_0x4c6885,_0x5a40ed[_0x36026a(0x1eb)]?[..._0x4004c5,_0x27eb8f]:[_0x27eb8f]);}[_0x672810(0x1f6)](_0x14d8dd,_0x22ce4f){const _0x3dfb10=_0x672810;let _0x5cbfda=this[_0x3dfb10(0x206)](_0x14d8dd);return!_0x5cbfda[_0x3dfb10(0x1a9)](_0x22ce4f)||this[_0x3dfb10(0x2ee)](_0x14d8dd,_0x5cbfda['filter'](_0x4cc483=>_0x4cc483!==_0x22ce4f));}[_0x672810(0x21b)](_0x4d9c07){const _0x2f3dc4=_0x672810;let _0x38a514=this[_0x2f3dc4(0x2b7)](_0x4d9c07)[_0x2f3dc4(0x2e0)][_0x2f3dc4(0x293)](this[_0x2f3dc4(0x2bf)])??null;return _0x38a514?this[_0x2f3dc4(0x228)][_0x2f3dc4(0x2ac)](_0x38a514):null;}[_0x672810(0x25e)](_0x53f1a5){const _0x3816d4=_0x672810;return(this['_getHierarchyIndex'](_0x53f1a5)[_0x3816d4(0x2d5)][_0x3816d4(0x293)](this[_0x3816d4(0x2bf)])??[])[_0x3816d4(0x1cd)](_0x588ec7=>{const _0xa99845=_0x3816d4;let _0x14f2ed=this['_table'][_0xa99845(0x2ac)](_0x588ec7);return _0x14f2ed?[_0x14f2ed]:[];});}[_0x672810(0x281)](_0x46e495){const _0x46bbdf=_0x672810;let _0xc7224d=this['_getHierarchyIndex'](_0x46e495),_0x29a99f=[],_0x1367a9=_0xc7224d[_0x46bbdf(0x2e0)][_0x46bbdf(0x293)](this['_recordId'])??null;for(;_0x1367a9;){let _0x5a2ff3=this[_0x46bbdf(0x228)][_0x46bbdf(0x2ac)](_0x1367a9);_0x5a2ff3&&_0x29a99f[_0x46bbdf(0x265)](_0x5a2ff3),_0x1367a9=_0xc7224d[_0x46bbdf(0x2e0)][_0x46bbdf(0x293)](_0x1367a9)??null;}return _0x29a99f;}[_0x672810(0x201)](_0x28f2bb){const _0x4695a7=_0x672810;let _0x4c8d9c=this['_getHierarchyIndex'](_0x28f2bb),_0x501a0d=_0x4c8d9c[_0x4695a7(0x20d)][_0x4695a7(0x1da)](this[_0x4695a7(0x2bf)]),_0x2f1310=_0x4c8d9c[_0x4695a7(0x28a)][_0x4695a7(0x20b)](this[_0x4695a7(0x2bf)])?this[_0x4695a7(0x21e)](_0x4c8d9c[_0x4695a7(0x2d5)],this[_0x4695a7(0x2bf)]):[];return _0x501a0d<0x0?[]:_0x2f1310[_0x4695a7(0x1cd)](_0x3c4729=>{const _0x11abf4=_0x4695a7;let _0x1b412f=this[_0x11abf4(0x228)]['getRecordById'](_0x3c4729);return _0x1b412f?[_0x1b412f]:[];});}[_0x672810(0x1f5)](_0x16d438,_0x535005,_0x577d7c){const _0x1eb76d=_0x672810;return this[_0x1eb76d(0x28b)][_0x1eb76d(0x1ae)](_0x123689['id'],{'unitId':this[_0x1eb76d(0x1e9)][_0x1eb76d(0x2b9)](),'tableId':this['_table'][_0x1eb76d(0x2b9)](),'fieldId':_0x16d438,'recordId':this[_0x1eb76d(0x2bf)],'parentRecordId':_0x535005,'orderKey':_0x577d7c,'source':_0xe81c71[_0x1eb76d(0x22b)]});}[_0x672810(0x2f5)](_0xf1efd0,_0x20a00d,_0xb37685='id',_0x2c781a){const _0x54ca47=_0x672810;let _0x3da734=this[_0x54ca47(0x228)][_0x54ca47(0x22f)](),_0x5d0c65=Date['now'](),_0x3997d3={..._0x2c781a,'id':_0xc362eb(0x6),'values':H(_0x3da734,_0x20a00d,_0xb37685),'orderKey':(_0x2c781a==null?void 0x0:_0x2c781a[_0x54ca47(0x27d)])||''+_0x5d0c65,'createdAt':(_0x2c781a==null?void 0x0:_0x2c781a['createdAt'])||_0x5d0c65,'updatedAt':(_0x2c781a==null?void 0x0:_0x2c781a['updatedAt'])||_0x5d0c65};if(!this[_0x54ca47(0x28b)][_0x54ca47(0x1ae)](_0x2eeb56['id'],{'unitId':this[_0x54ca47(0x1e9)]['getId'](),'tableId':this[_0x54ca47(0x228)]['getId'](),'fieldId':_0xf1efd0,'parentRecordId':this[_0x54ca47(0x2bf)],'record':_0x3997d3,'source':_0xe81c71[_0x54ca47(0x22b)]}))throw Error(_0x54ca47(0x2e3)+this[_0x54ca47(0x2bf)]+'\x22.');return this[_0x54ca47(0x2b5)]['createInstance'](J,this[_0x54ca47(0x1e9)],this['_table'],_0x3997d3['id'],this[_0x54ca47(0x2b5)]);}[_0x672810(0x2b7)](_0x114b56){const _0x183b6a=_0x672810;return _0x4f82a6(this[_0x183b6a(0x228)][_0x183b6a(0x22f)](),_0x114b56);}[_0x672810(0x21e)](_0x253c1f,_0x53e06a){let _0x3ed366=[],_0x15299f=_0x154105=>{const _0xaeda70=_0x123d;for(let _0x457ca4 of _0x253c1f[_0xaeda70(0x293)](_0x154105)??[])_0x3ed366['push'](_0x457ca4),_0x15299f(_0x457ca4);};return _0x15299f(_0x53e06a),_0x3ed366;}[_0x672810(0x1ff)](){const _0x43c9e8=_0x672810;let _0x4cdc50=this[_0x43c9e8(0x228)][_0x43c9e8(0x22f)]()[_0x43c9e8(0x2e8)][this[_0x43c9e8(0x2bf)]];if(!_0x4cdc50)throw Error(_0x43c9e8(0x2c0)+this[_0x43c9e8(0x2bf)]+'\x22\x20does\x20not\x20exist.');return _0x4cdc50;}[_0x672810(0x21f)](_0x65c29){const _0x9fde09=_0x672810;let _0x108f11=this[_0x9fde09(0x228)][_0x9fde09(0x22f)]()[_0x9fde09(0x24d)][_0x65c29];if(!_0x108f11||_0x108f11[_0x9fde09(0x27e)]!==_0x22894c[_0x9fde09(0x1c3)])throw Error('[FRecord]:\x20field\x20\x22'+_0x65c29+_0x9fde09(0x2ad));return _0x108f11;}['_getAttachmentField'](_0x459e5c){const _0x416b2a=_0x672810;let _0x495757=this[_0x416b2a(0x228)][_0x416b2a(0x22f)]()[_0x416b2a(0x24d)][_0x459e5c];if(!_0x495757||_0x495757[_0x416b2a(0x27e)]!==_0x22894c[_0x416b2a(0x2cf)])throw Error(_0x416b2a(0x297)+_0x459e5c+'\x22\x20is\x20not\x20an\x20Attachment\x20field.');return _0x495757;}};Y=J=z([R(0x4,_0x49e372),R(0x5,_0x59e954)],Y);function gt(_0x324910){const _0x4dee72=_0x672810;return!!(_0x324910&&typeof _0x324910=='object'&&'id'in _0x324910&&typeof _0x324910['id']==_0x4dee72(0x289)&&_0x4dee72(0x1ca)in _0x324910&&typeof _0x324910[_0x4dee72(0x1ca)]==_0x4dee72(0x289));}function _t(_0xdd9a83,_0x41f441,_0x53c5d5){const _0x234245=_0x672810;if(!gt(_0xdd9a83))throw Error(_0x234245(0x19e)+_0x53c5d5+_0x234245(0x1bb)+_0x41f441+_0x234245(0x1e4));return{..._0xdd9a83};}let X=class{constructor(_0x42801c,_0x39a27e,_0x2176e7,_0x2f768f,_0x200431,_0x4c7f0e,_0x4bdf32){const _0x281c87=_0x672810;this[_0x281c87(0x1e9)]=_0x42801c,this[_0x281c87(0x228)]=_0x39a27e,this[_0x281c87(0x1c6)]=_0x2176e7,this[_0x281c87(0x2b5)]=_0x2f768f,this[_0x281c87(0x28b)]=_0x200431,this[_0x281c87(0x2c1)]=_0x4c7f0e,this[_0x281c87(0x20e)]=_0x4bdf32;}[_0x672810(0x2b9)](){return this['_viewId'];}['getPermission'](){const _0x510ec7=_0x672810;let _0x463af9=this[_0x510ec7(0x228)][_0x510ec7(0x2b9)]();return new L(this['_base'][_0x510ec7(0x2b9)](),_0x17cc98(_0x463af9,this[_0x510ec7(0x1c6)]),[_0x1f3d94(_0x463af9)],this[_0x510ec7(0x28b)],this[_0x510ec7(0x2c1)]);}[_0x672810(0x224)](){return this['_getView']();}[_0x672810(0x215)](){const _0x1c3b57=_0x672810;return this[_0x1c3b57(0x1bc)]()[_0x1c3b57(0x1ca)];}[_0x672810(0x208)](){const _0x559191=_0x672810;return this[_0x559191(0x1bc)]()['type'];}[_0x672810(0x2dd)](_0x4aecb8){const _0x341064=_0x672810;return this[_0x341064(0x28b)][_0x341064(0x1ae)](_0x560ff3['id'],{'unitId':this[_0x341064(0x1e9)][_0x341064(0x2b9)](),'tableId':this[_0x341064(0x228)][_0x341064(0x2b9)](),'viewId':this['_viewId'],'name':_0x4aecb8});}['getConfig'](){const _0x43a81b=_0x672810;let _0x1a0f7a=this[_0x43a81b(0x208)](),_0x3618b3=this['_getView']()[_0x43a81b(0x2f4)];switch(_0x1a0f7a){case _0x345987[_0x43a81b(0x1d8)]:return _0x3618b3;case _0x345987['Kanban']:return _0x3618b3;case _0x345987[_0x43a81b(0x2a8)]:return _0x3618b3;case _0x345987['Gantt']:return _0x3618b3;case _0x345987['Gallery']:return _0x3618b3;default:return _0x3618b3;}}[_0x672810(0x276)](_0x113ae1){const _0x674a6=_0x672810;return this[_0x674a6(0x28b)][_0x674a6(0x1ae)](_0x27c22b['id'],{'unitId':this[_0x674a6(0x1e9)][_0x674a6(0x2b9)](),'tableId':this['_table']['getId'](),'viewId':this[_0x674a6(0x1c6)],'patch':_0x113ae1});}['getConditionalColorRules'](){const _0x54b4ab=_0x672810;var _0x179301;return _0x2fe97f[_0x54b4ab(0x2cc)](((_0x179301=this['_getView']()[_0x54b4ab(0x2f4)]['conditionalColoring'])==null?void 0x0:_0x179301[_0x54b4ab(0x1e6)])??[]);}[_0x672810(0x27f)](_0x50ae8b){const _0x8e8cac=_0x672810;return this[_0x8e8cac(0x28b)][_0x8e8cac(0x1ae)](_0x2c5d52['id'],{'unitId':this['_base'][_0x8e8cac(0x2b9)](),'tableId':this[_0x8e8cac(0x228)][_0x8e8cac(0x2b9)](),'viewId':this[_0x8e8cac(0x1c6)],'type':_0x5ac52a[_0x8e8cac(0x2c5)],'rules':_0x50ae8b});}['addConditionalColorRule'](_0x95e9df){const _0xb9f59=_0x672810;return this[_0xb9f59(0x28b)]['syncExecuteCommand'](_0x2c5d52['id'],{'unitId':this[_0xb9f59(0x1e9)][_0xb9f59(0x2b9)](),'tableId':this['_table'][_0xb9f59(0x2b9)](),'viewId':this[_0xb9f59(0x1c6)],'type':_0x5ac52a[_0xb9f59(0x1f3)],'rule':_0x95e9df});}[_0x672810(0x2a3)](_0x39ab72){const _0x558b88=_0x672810;return this[_0x558b88(0x28b)]['syncExecuteCommand'](_0x2c5d52['id'],{'unitId':this[_0x558b88(0x1e9)][_0x558b88(0x2b9)](),'tableId':this[_0x558b88(0x228)]['getId'](),'viewId':this[_0x558b88(0x1c6)],'type':_0x5ac52a[_0x558b88(0x193)],'ruleId':_0x39ab72});}[_0x672810(0x1f2)](){const _0x4a067f=_0x672810;return this['_commandService'][_0x4a067f(0x1ae)](_0x2c5d52['id'],{'unitId':this[_0x4a067f(0x1e9)][_0x4a067f(0x2b9)](),'tableId':this[_0x4a067f(0x228)][_0x4a067f(0x2b9)](),'viewId':this[_0x4a067f(0x1c6)],'type':_0x5ac52a[_0x4a067f(0x1df)]});}['getFilter'](){const _0x1af989=_0x672810;return this[_0x1af989(0x1bc)]()[_0x1af989(0x1c8)]??null;}[_0x672810(0x21c)](_0x29cd55){const _0x15dfdd=_0x672810;return this[_0x15dfdd(0x28b)][_0x15dfdd(0x1ae)](_0x4b46c7['id'],{'unitId':this[_0x15dfdd(0x1e9)]['getId'](),'tableId':this['_table'][_0x15dfdd(0x2b9)](),'viewId':this[_0x15dfdd(0x1c6)],'filter':_0x29cd55});}[_0x672810(0x292)](){const _0x49e76e=_0x672810;return this[_0x49e76e(0x1bc)]()[_0x49e76e(0x2cd)]??[];}[_0x672810(0x1db)](_0x4d06e1){const _0x4bb100=_0x672810;return this[_0x4bb100(0x28b)]['syncExecuteCommand'](_0x4cedde['id'],{'unitId':this[_0x4bb100(0x1e9)][_0x4bb100(0x2b9)](),'tableId':this[_0x4bb100(0x228)][_0x4bb100(0x2b9)](),'viewId':this['_viewId'],'sort':_0x4d06e1});}[_0x672810(0x1b3)](){const _0x59a5f9=_0x672810;return this[_0x59a5f9(0x1bc)]()['group']??[];}[_0x672810(0x21d)](_0x3618aa){const _0x4e2afd=_0x672810;return this[_0x4e2afd(0x28b)][_0x4e2afd(0x1ae)](_0x3aab37['id'],{'unitId':this['_base'][_0x4e2afd(0x2b9)](),'tableId':this['_table'][_0x4e2afd(0x2b9)](),'viewId':this['_viewId'],'group':_0x3618aa});}[_0x672810(0x23f)](_0x14ba9b){const _0xfe9711=_0x672810;var _0x38ca2b;return V(this[_0xfe9711(0x228)][_0xfe9711(0x22f)]()[_0xfe9711(0x24d)][_0x14ba9b])?((_0x38ca2b=this[_0xfe9711(0x1bc)]()[_0xfe9711(0x2eb)])==null?void 0x0:_0x38ca2b[_0x14ba9b])??{}:{};}[_0x672810(0x2ce)](){const _0x1b29c8=_0x672810;let _0xb0c19b=this[_0x1b29c8(0x228)][_0x1b29c8(0x22f)](),_0x5528bd=this[_0x1b29c8(0x1bc)]();return(_0x5528bd['fieldOrder']??_0xb0c19b[_0x1b29c8(0x262)])[_0x1b29c8(0x1c8)](_0x52d888=>{const _0x4aeee1=_0x1b29c8;var _0x162cbc;let _0x5af076=_0xb0c19b['fields'][_0x52d888];return V(_0x5af076)&&!((_0x162cbc=_0x5528bd[_0x4aeee1(0x2eb)])!=null&&(_0x162cbc=_0x162cbc[_0x52d888])!=null&&_0x162cbc[_0x4aeee1(0x27c)]);})[_0x1b29c8(0x2c6)](_0x1c32f9=>this[_0x1b29c8(0x2b5)][_0x1b29c8(0x24b)](B,this[_0x1b29c8(0x1e9)],this[_0x1b29c8(0x228)],_0x1c32f9));}['setFieldVisible'](_0x5082bc,_0x5bec3e){const _0x5ec7d2=_0x672810;return V(this['_table'][_0x5ec7d2(0x22f)]()[_0x5ec7d2(0x24d)][_0x5082bc])?this['_commandService'][_0x5ec7d2(0x1ae)](_0x466bff['id'],{'unitId':this['_base'][_0x5ec7d2(0x2b9)](),'tableId':this[_0x5ec7d2(0x228)][_0x5ec7d2(0x2b9)](),'viewId':this[_0x5ec7d2(0x1c6)],'fieldId':_0x5082bc,'visible':_0x5bec3e}):!0x1;}[_0x672810(0x1ce)](_0x4a8468,_0x3d1987){const _0x3dea77=_0x672810;return V(this['_table'][_0x3dea77(0x22f)]()[_0x3dea77(0x24d)][_0x4a8468])?this[_0x3dea77(0x28b)][_0x3dea77(0x1ae)](_0x4df4a5['id'],{'unitId':this['_base'][_0x3dea77(0x2b9)](),'tableId':this[_0x3dea77(0x228)][_0x3dea77(0x2b9)](),'viewId':this['_viewId'],'fieldId':_0x4a8468,'width':_0x3d1987}):!0x1;}[_0x672810(0x2ea)](_0x2e8c9d,_0x5f3b14){const _0x81b832=_0x672810;let _0x4f7017=this['_table'][_0x81b832(0x22f)](),_0x85e333=_0x5f3b14['beforeFieldId']??_0x5f3b14[_0x81b832(0x1b0)];return!V(_0x4f7017[_0x81b832(0x24d)][_0x2e8c9d])||!_0x85e333||!V(_0x4f7017[_0x81b832(0x24d)][_0x85e333])?!0x1:this['_commandService'][_0x81b832(0x1ae)](_0xf0d992['id'],{'unitId':this[_0x81b832(0x1e9)][_0x81b832(0x2b9)](),'tableId':this[_0x81b832(0x228)]['getId'](),'viewId':this['_viewId'],'fieldId':_0x2e8c9d,'target':_0x5f3b14});}[_0x672810(0x1ac)](_0x14eb70){const _0x5d838e=_0x672810;return this['_commandService'][_0x5d838e(0x1ae)](_0x575263['id'],{'unitId':this['_base'][_0x5d838e(0x2b9)](),'tableId':this['_table'][_0x5d838e(0x2b9)](),'viewId':this['_viewId'],'target':_0x14eb70});}['delete'](){const _0x1e2872=_0x672810;return this['_commandService']['syncExecuteCommand'](_0x205d29['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x1e2872(0x228)][_0x1e2872(0x2b9)](),'viewId':this[_0x1e2872(0x1c6)]});}['getProjection'](){const _0x3b201f=_0x672810;return this['_projectionService']['getProjection'](this['_base']['getBase']()[_0x3b201f(0x1c0)](),this[_0x3b201f(0x228)][_0x3b201f(0x2b9)](),this[_0x3b201f(0x1c6)]);}['_getView'](){const _0x5e67bf=_0x672810;let _0x5c9d78=this[_0x5e67bf(0x228)][_0x5e67bf(0x22f)]()[_0x5e67bf(0x1f0)][this[_0x5e67bf(0x1c6)]];if(!_0x5c9d78)throw Error(_0x5e67bf(0x25b)+this[_0x5e67bf(0x1c6)]+_0x5e67bf(0x24c));return _0x5c9d78;}};X=z([R(0x4,_0x49e372),R(0x5,_0x59e954),R(0x6,_0x400a91)],X);let Z=class{constructor(_0x32cda1,_0x76e43c,_0x165b01,_0x5edd2b,_0x393ced,_0x1b8a94){const _0x3a8dd0=_0x672810;this['_base']=_0x32cda1,this[_0x3a8dd0(0x1e0)]=_0x76e43c,this['_injector']=_0x165b01,this[_0x3a8dd0(0x28b)]=_0x5edd2b,this[_0x3a8dd0(0x2c1)]=_0x393ced,this[_0x3a8dd0(0x20e)]=_0x1b8a94;}[_0x672810(0x2df)](){const _0x5ceb5a=_0x672810;return this['_base'][_0x5ceb5a(0x2df)]();}['getTable'](){const _0x28be11=_0x672810;return this[_0x28be11(0x1b8)]();}[_0x672810(0x2b9)](){return this['_tableId'];}[_0x672810(0x220)](){const _0x1ac8d3=_0x672810;return new L(this[_0x1ac8d3(0x2df)]()[_0x1ac8d3(0x23c)](),_0x1f3d94(this[_0x1ac8d3(0x1e0)]),[],this['_commandService'],this['_permissionService']);}[_0x672810(0x299)](){const _0x35d325=_0x672810;return _0x3cd49d(this[_0x35d325(0x1b8)]());}[_0x672810(0x1b5)](_0x26f4cf){const _0x4764a7=_0x672810;return this['_commandService'][_0x4764a7(0x1ae)](_0x46e1ca['id'],{'unitId':this[_0x4764a7(0x1e9)][_0x4764a7(0x2b9)](),'tableId':this[_0x4764a7(0x1e0)],'fieldId':_0x26f4cf});}[_0x672810(0x215)](){const _0x5c23b2=_0x672810;return this[_0x5c23b2(0x1b8)]()[_0x5c23b2(0x1ca)];}['getFormulaName'](){const _0x34bd07=_0x672810;let _0x133bdc=this[_0x34bd07(0x1e9)][_0x34bd07(0x2df)]()[_0x34bd07(0x1c0)]();return _0x565dba(this[_0x34bd07(0x1b8)](),_0x133bdc);}[_0x672810(0x2dd)](_0x5b8cab){const _0x336c99=_0x672810;let _0x5daaad=_0x520269(this[_0x336c99(0x1e9)][_0x336c99(0x2df)]()[_0x336c99(0x1c0)](),_0x5b8cab,this[_0x336c99(0x1e0)]);if(!_0x5daaad[_0x336c99(0x261)])throw Error(_0x336c99(0x25c)+_0x5b8cab+_0x336c99(0x2d7)+_0x43ed5f+'\x20'+_0x5daaad['reason']);return this[_0x336c99(0x28b)]['syncExecuteCommand'](_0xfdb55c['id'],{'unitId':this['_base'][_0x336c99(0x2b9)](),'tableId':this[_0x336c99(0x1e0)],'name':_0x5b8cab});}['search'](_0x27e3ab,_0x28b72f){const _0x4cc946=_0x672810;let _0x1575b6=this[_0x4cc946(0x1e9)][_0x4cc946(0x2df)]()[_0x4cc946(0x1c0)](),_0x2bcbb3=this[_0x4cc946(0x1b8)]();if(_0x28b72f){let _0x21f9a5=this[_0x4cc946(0x20e)][_0x4cc946(0x278)](_0x1575b6,this[_0x4cc946(0x1e0)],_0x28b72f),_0x30f925=_0x2bcbb3[_0x4cc946(0x1f0)][_0x28b72f],_0x3e1b77=_0x27e3ab[_0x4cc946(0x204)]??Tt(_0x2bcbb3,_0x30f925,_0x21f9a5),_0x2ed813='rows'in _0x21f9a5&&Array[_0x4cc946(0x248)](_0x21f9a5[_0x4cc946(0x1d4)])?_0x21f9a5[_0x4cc946(0x1d4)]:[];return _0x3c96dc({..._0x27e3ab,'table':_0x2bcbb3,'fieldIds':_0x3e1b77,'rows':_0x2ed813});}let _0x100425=(_0x2bcbb3[_0x4cc946(0x1a1)]?_0x2bcbb3['recordOrder'][_0x4cc946(0x2c6)](_0x5bed6b=>_0x2bcbb3[_0x4cc946(0x2e8)][_0x5bed6b]):Object['values'](_0x2bcbb3[_0x4cc946(0x2e8)])[_0x4cc946(0x2cd)]((_0x4caa6c,_0x31ef39)=>_0x4caa6c[_0x4cc946(0x27d)][_0x4cc946(0x236)](_0x31ef39[_0x4cc946(0x27d)])))['filter'](_0x32469e=>_0x32469e)[_0x4cc946(0x2c6)](_0x5e941e=>({'recordId':_0x5e941e['id'],'values':_0x5e941e[_0x4cc946(0x1cf)]})),_0x442a92=_0x27e3ab['fieldIds']??_0x2bcbb3[_0x4cc946(0x262)][_0x4cc946(0x1c8)](_0x299741=>V(_0x2bcbb3['fields'][_0x299741]));return _0x3c96dc({..._0x27e3ab,'table':_0x2bcbb3,'fieldIds':_0x442a92,'rows':_0x100425});}[_0x672810(0x2a9)](){const _0x54a76b=_0x672810;return this[_0x54a76b(0x1b8)]()[_0x54a76b(0x19b)];}['getFields'](){const _0x5504c7=_0x672810;let _0x2a9255=this[_0x5504c7(0x1b8)]();return _0x2a9255[_0x5504c7(0x262)][_0x5504c7(0x2c6)](_0x16314e=>_0x2a9255[_0x5504c7(0x24d)][_0x16314e])[_0x5504c7(0x1c8)](V)['map'](_0x54f047=>this[_0x5504c7(0x2b5)]['createInstance'](B,this[_0x5504c7(0x1e9)],this,_0x54f047['id']));}[_0x672810(0x247)](_0x1d0bcb){const _0x201097=_0x672810;let _0xb5db73=this[_0x201097(0x1b8)]()[_0x201097(0x24d)][_0x1d0bcb];return V(_0xb5db73)?this[_0x201097(0x2b5)]['createInstance'](B,this[_0x201097(0x1e9)],this,_0xb5db73['id']):null;}[_0x672810(0x2fa)](_0x5b36ce){const _0x10d902=_0x672810;let _0x1fdb32=this[_0x10d902(0x1b8)]()['fields'],_0x5d5fcf=Object[_0x10d902(0x1cf)](_0x1fdb32)['find'](_0x25e8fc=>V(_0x25e8fc)&&_0x25e8fc['name']===_0x5b36ce);return _0x5d5fcf?this[_0x10d902(0x2b5)][_0x10d902(0x24b)](B,this[_0x10d902(0x1e9)],this,_0x5d5fcf['id']):null;}['getPrimaryField'](){const _0x51143f=_0x672810;let _0x514460=this[_0x51143f(0x1b8)]()[_0x51143f(0x19b)];return this[_0x51143f(0x2b5)][_0x51143f(0x24b)](B,this[_0x51143f(0x1e9)],this,_0x514460);}['addField'](_0x2bfd13,_0x3a8783,_0x5eb4f9){const _0x56eeb9=_0x672810;var _0x2eac96,_0x1c94a2;if(!Object[_0x56eeb9(0x1cf)](_0x22894c)['some'](_0x18739c=>_0x18739c===_0x3a8783))throw Error(_0x56eeb9(0x243)+String(_0x3a8783)+'\x22.');if(_0x3a8783===_0x22894c[_0x56eeb9(0x2d1)]&&this[_0x56eeb9(0x2c7)](_0x2bfd13,_0x5eb4f9),_0x3a8783===_0x22894c[_0x56eeb9(0x1c3)]&&(typeof(_0x5eb4f9==null||(_0x2eac96=_0x5eb4f9[_0x56eeb9(0x283)])==null||(_0x2eac96=_0x2eac96[_0x56eeb9(0x2f4)])==null?void 0x0:_0x2eac96['targetTableId'])!='string'||typeof _0x5eb4f9['field'][_0x56eeb9(0x2f4)][_0x56eeb9(0x1eb)]!=_0x56eeb9(0x296)))throw Error(_0x56eeb9(0x225));let _0x1d1d92={..._0x5eb4f9==null?void 0x0:_0x5eb4f9[_0x56eeb9(0x283)],'id':_0xc362eb(0x6),'name':_0x2bfd13,'type':_0x3a8783,'config':(_0x5eb4f9==null||(_0x1c94a2=_0x5eb4f9[_0x56eeb9(0x283)])==null?void 0x0:_0x1c94a2[_0x56eeb9(0x2f4)])??{}};if(!this[_0x56eeb9(0x28b)]['syncExecuteCommand'](_0x5004a9['id'],{'unitId':this[_0x56eeb9(0x1e9)][_0x56eeb9(0x2b9)](),'tableId':this['_tableId'],'field':_0x1d1d92,'index':_0x5eb4f9==null?void 0x0:_0x5eb4f9[_0x56eeb9(0x2db)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x2bfd13+'\x22');return this[_0x56eeb9(0x2b5)][_0x56eeb9(0x24b)](B,this[_0x56eeb9(0x1e9)],this,_0x1d1d92['id']);}[_0x672810(0x2c7)](_0x58d171,_0x49d0b7){const _0x505c2e=_0x672810;var _0x1338d8;if(!_0x49d0b7||!(_0x505c2e(0x270)in _0x49d0b7)||!Array['isArray'](_0x49d0b7[_0x505c2e(0x270)]))throw Error(_0x505c2e(0x1ed));let _0xc3d22e=this[_0x505c2e(0x28b)][_0x505c2e(0x1ae)](_0x452386['id'],{'unitId':this[_0x505c2e(0x1e9)][_0x505c2e(0x2b9)](),'tableId':this['_tableId'],'formula':String(((_0x1338d8=_0x49d0b7['field'])==null||(_0x1338d8=_0x1338d8[_0x505c2e(0x2f4)])==null?void 0x0:_0x1338d8[_0x505c2e(0x216)])??'')});if(!_0xc3d22e[_0x505c2e(0x261)])throw Error(_0xc3d22e['reason']??_0x505c2e(0x1f8));if(_0x49d0b7[_0x505c2e(0x270)]['length']>0x0&&!this[_0x505c2e(0x28b)]['syncExecuteCommand'](_0x1c80ca['id'],{'unitId':this[_0x505c2e(0x1e9)][_0x505c2e(0x2b9)](),'references':_0x49d0b7['externalReferences']}))throw Error(_0x505c2e(0x287)+_0x58d171+'\x22');}[_0x672810(0x195)](){const _0x5377b2=_0x672810;return this[_0x5377b2(0x2dc)]()[_0x5377b2(0x2c6)](_0x1c54d7=>this[_0x5377b2(0x2b5)][_0x5377b2(0x24b)](Y,this[_0x5377b2(0x1e9)],this,_0x1c54d7,this[_0x5377b2(0x2b5)]));}['getRecordById'](_0x3bcf2f){const _0x369503=_0x672810;return this[_0x369503(0x1b8)]()[_0x369503(0x2e8)][_0x3bcf2f]?this[_0x369503(0x2b5)][_0x369503(0x24b)](Y,this[_0x369503(0x1e9)],this,_0x3bcf2f,this[_0x369503(0x2b5)]):null;}[_0x672810(0x19a)](_0x1a1a86={}){const _0x41418d=_0x672810;let _0x10eea6=this[_0x41418d(0x1b8)](),_0x112c28=this[_0x41418d(0x2dc)](_0x1a1a86),_0x3f8c6e=Math[_0x41418d(0x282)](0x0,_0x1a1a86[_0x41418d(0x2fc)]??0x0),_0x2e3056=_0x1a1a86[_0x41418d(0x2bc)]==null?null:Math[_0x41418d(0x282)](0x0,_0x1a1a86['limit']),_0x18cc44=yt(_0x112c28[_0x41418d(0x2c6)](_0x3dce5f=>_0x10eea6[_0x41418d(0x2e8)][_0x3dce5f])['filter'](_0xda3c21=>xt(_0xda3c21,_0x10eea6,_0x1a1a86[_0x41418d(0x1c8)])),_0x10eea6,_0x1a1a86[_0x41418d(0x2cd)]);return{'records':vt(_0x18cc44,_0x1a1a86)[_0x41418d(0x2c6)](_0xf30a6f=>this['_injector']['createInstance'](Y,this['_base'],this,_0xf30a6f['id'],this[_0x41418d(0x2b5)])),'total':_0x18cc44['length'],'offset':_0x3f8c6e,'limit':_0x2e3056,'hasMore':_0x2e3056!=null&&_0x3f8c6e+_0x2e3056<_0x18cc44[_0x41418d(0x233)]};}[_0x672810(0x28d)](_0xa800bf,_0x2b13a1='id',_0x4c7633){const _0x1ec39d=_0x672810;let _0x32b7c0=this[_0x1ec39d(0x1b8)](),_0x288903=Date['now'](),_0x244e38={..._0x4c7633,'id':_0xc362eb(0x6),'values':H(_0x32b7c0,_0xa800bf,_0x2b13a1),'orderKey':(_0x4c7633==null?void 0x0:_0x4c7633['orderKey'])||''+_0x288903,'createdAt':(_0x4c7633==null?void 0x0:_0x4c7633[_0x1ec39d(0x1a7)])||_0x288903,'updatedAt':(_0x4c7633==null?void 0x0:_0x4c7633[_0x1ec39d(0x26a)])||_0x288903};if(!this[_0x1ec39d(0x28b)][_0x1ec39d(0x1ae)](_0x431c7b['id'],{'unitId':this[_0x1ec39d(0x1e9)][_0x1ec39d(0x2b9)](),'tableId':this[_0x1ec39d(0x1e0)],'record':_0x244e38,'source':_0xe81c71['Facade']}))throw Error(_0x1ec39d(0x28c)+_0x244e38['id']+'\x22');return this['_injector']['createInstance'](Y,this[_0x1ec39d(0x1e9)],this,_0x244e38['id'],this[_0x1ec39d(0x2b5)]);}[_0x672810(0x1e5)](_0x29ce6a){const _0x35243f=_0x672810;if(!_0x29ce6a[_0x35243f(0x233)])return[];let _0x4e432d=this[_0x35243f(0x1b8)](),_0x4fb31e=Date[_0x35243f(0x234)](),_0x2acfc8=_0x29ce6a[_0x35243f(0x2c6)]((_0x560175,_0x506b27)=>{const _0x1206f1=_0x35243f;var _0x287286,_0x30ba19,_0x2ad585;return{..._0x560175[_0x1206f1(0x2ef)],'id':_0xc362eb(0x6),'values':H(_0x4e432d,_0x560175['values'],_0x560175[_0x1206f1(0x249)]??'id'),'orderKey':((_0x287286=_0x560175[_0x1206f1(0x2ef)])==null?void 0x0:_0x287286['orderKey'])||''+(_0x4fb31e+_0x506b27),'createdAt':((_0x30ba19=_0x560175['record'])==null?void 0x0:_0x30ba19['createdAt'])||_0x4fb31e,'updatedAt':((_0x2ad585=_0x560175[_0x1206f1(0x2ef)])==null?void 0x0:_0x2ad585[_0x1206f1(0x26a)])||_0x4fb31e};});if(!this[_0x35243f(0x28b)][_0x35243f(0x1ae)](_0x2b0a08['id'],{'unitId':this[_0x35243f(0x1e9)]['getId'](),'tableId':this[_0x35243f(0x1e0)],'records':_0x2acfc8,'source':_0xe81c71[_0x35243f(0x22b)]}))throw Error('Failed\x20to\x20add\x20records');return _0x2acfc8[_0x35243f(0x2c6)](_0x251a4c=>this[_0x35243f(0x2b5)][_0x35243f(0x24b)](Y,this[_0x35243f(0x1e9)],this,_0x251a4c['id'],this[_0x35243f(0x2b5)]));}[_0x672810(0x1e2)](_0x5c20d4){const _0xa8235e=_0x672810;return!_0x5c20d4[_0xa8235e(0x233)]||this[_0xa8235e(0x28b)][_0xa8235e(0x1ae)](_0x49a978['id'],{'unitId':this[_0xa8235e(0x1e9)]['getId'](),'tableId':this[_0xa8235e(0x1e0)],'recordIds':_0x5c20d4,'source':_0xe81c71[_0xa8235e(0x22b)]});}[_0x672810(0x2d2)](_0x3ebebd,_0x1c9e27,_0x3d37b4=0x1,_0x418459=0x1){const _0xadfda2=_0x672810;return this[_0xadfda2(0x2b5)][_0xadfda2(0x24b)](K,this[_0xadfda2(0x1e9)],this,{'startRow':_0x3ebebd,'endRow':_0x3ebebd+_0x3d37b4-0x1,'startColumn':_0x1c9e27,'endColumn':_0x1c9e27+_0x418459-0x1},this[_0xadfda2(0x2b5)]);}[_0x672810(0x2d9)](){const _0x5f1281=_0x672810;var _0x35629e;let _0x240058=_0x5adfc5(this[_0x5f1281(0x1b8)]()),_0xb329ab=((_0x35629e=_0x240058[_0x5f1281(0x1a1)])==null?void 0x0:_0x35629e['length'])??0x0,_0x355f80=_0x240058[_0x5f1281(0x262)][_0x5f1281(0x1c8)](_0x4b3ad5=>V(_0x240058[_0x5f1281(0x24d)][_0x4b3ad5]))['length'];return this[_0x5f1281(0x2d2)](0x0,0x0,Math[_0x5f1281(0x282)](_0xb329ab,0x1),Math['max'](_0x355f80,0x1));}[_0x672810(0x231)](){const _0x23bfa0=_0x672810;let _0x9518cc=this['_getTable']();return _0x9518cc[_0x23bfa0(0x209)][_0x23bfa0(0x1c8)](_0x3f4d0d=>_0x9518cc[_0x23bfa0(0x1f0)][_0x3f4d0d])[_0x23bfa0(0x2c6)](_0x3fadec=>this[_0x23bfa0(0x2b5)]['createInstance'](X,this[_0x23bfa0(0x1e9)],this,_0x3fadec,this[_0x23bfa0(0x2b5)]));}[_0x672810(0x1a5)](_0x53bf22){const _0xbe41e3=_0x672810;return this[_0xbe41e3(0x1b8)]()['views'][_0x53bf22]?this[_0xbe41e3(0x2b5)][_0xbe41e3(0x24b)](X,this[_0xbe41e3(0x1e9)],this,_0x53bf22,this['_injector']):null;}[_0x672810(0x205)](_0x8e0b09){const _0x20a50b=_0x672810;let _0x20254f=this[_0x20a50b(0x1b8)](),_0x3e52f9=Object['values'](_0x20254f[_0x20a50b(0x1f0)])['find'](_0x45e59c=>_0x45e59c[_0x20a50b(0x1ca)]===_0x8e0b09);return _0x3e52f9?this[_0x20a50b(0x2b5)][_0x20a50b(0x24b)](X,this[_0x20a50b(0x1e9)],this,_0x3e52f9['id'],this[_0x20a50b(0x2b5)]):null;}[_0x672810(0x257)](_0x512a7c,_0x1041da,_0xc492d2){const _0xab41e6=_0x672810;var _0x5a1002,_0x351f22,_0x544f08,_0x3d83ed;let _0x47da54=this[_0xab41e6(0x1b8)](),_0x4b51db=(_0xc492d2==null||(_0x5a1002=_0xc492d2['view'])==null?void 0x0:_0x5a1002[_0xab41e6(0x262)])??_0x47da54['fieldOrder'],_0x56ebbf=[_0x1f464c,..._0x4b51db[_0xab41e6(0x1c8)](_0x357305=>V(_0x47da54['fields'][_0x357305]))],_0x23cd87={..._0xc492d2==null?void 0x0:_0xc492d2['view'],'id':_0xc362eb(0x6),'name':_0x512a7c,'type':_0x1041da,'tableId':this[_0xab41e6(0x1e0)],'config':(_0xc492d2==null||(_0x351f22=_0xc492d2[_0xab41e6(0x1bd)])==null?void 0x0:_0x351f22[_0xab41e6(0x2f4)])??{},'fieldOrder':_0x56ebbf,'fieldSettings':{..._0xc492d2==null||(_0x544f08=_0xc492d2[_0xab41e6(0x1bd)])==null?void 0x0:_0x544f08[_0xab41e6(0x2eb)],[_0x1f464c]:{..._0xc492d2==null||(_0x3d83ed=_0xc492d2[_0xab41e6(0x1bd)])==null||(_0x3d83ed=_0x3d83ed[_0xab41e6(0x2eb)])==null?void 0x0:_0x3d83ed[_0x1f464c],'hidden':!0x0}}};if(!this[_0xab41e6(0x28b)]['syncExecuteCommand'](_0x6d95a5['id'],{'unitId':this[_0xab41e6(0x1e9)][_0xab41e6(0x2b9)](),'tableId':this['_tableId'],'view':_0x23cd87,'index':_0xc492d2==null?void 0x0:_0xc492d2[_0xab41e6(0x2db)]}))throw Error(_0xab41e6(0x1a2)+_0x512a7c+'\x22');return this['_injector']['createInstance'](X,this[_0xab41e6(0x1e9)],this,_0x23cd87['id'],this['_injector']);}[_0x672810(0x1ad)](){const _0x123d9e=_0x672810;let _0x1cacfe=this[_0x123d9e(0x1b8)](),_0x372a9c=_0x1cacfe[_0x123d9e(0x262)][_0x123d9e(0x1c8)](_0xc2b976=>V(_0x1cacfe[_0x123d9e(0x24d)][_0xc2b976])),_0x4ecc79=_0x1cacfe[_0x123d9e(0x209)]['filter'](_0xc15185=>_0x1cacfe['views'][_0xc15185]);return{'id':_0x1cacfe['id'],'name':_0x1cacfe[_0x123d9e(0x1ca)],'formulaName':this['getFormulaName'](),'primaryFieldId':_0x1cacfe['primaryFieldId'],'fieldIds':_0x372a9c,'viewIds':_0x4ecc79,'recordCount':this['_resolveRecordIds']()[_0x123d9e(0x233)],'fields':_0x372a9c[_0x123d9e(0x2c6)](_0x50476d=>{const _0x9a0d6f=_0x123d9e;let _0x36ea7f=_0x1cacfe[_0x9a0d6f(0x24d)][_0x50476d];return{'id':_0x36ea7f['id'],'name':_0x36ea7f[_0x9a0d6f(0x1ca)],'type':_0x36ea7f[_0x9a0d6f(0x27e)],'config':_0x36ea7f[_0x9a0d6f(0x2f4)],'readonly':_0x36ea7f[_0x9a0d6f(0x2aa)],'description':_0x36ea7f[_0x9a0d6f(0x202)]};}),'views':_0x4ecc79[_0x123d9e(0x2c6)](_0x56aee4=>{const _0x5c9606=_0x123d9e;let _0x5c8f17=_0x1cacfe['views'][_0x56aee4];return{'id':_0x5c8f17['id'],'name':_0x5c8f17[_0x5c9606(0x1ca)],'type':_0x5c8f17[_0x5c9606(0x27e)]};})};}[_0x672810(0x1b8)](){const _0x838038=_0x672810;let _0x21a998=this[_0x838038(0x1e9)][_0x838038(0x2df)]()[_0x838038(0x1c0)]()['tables'][this[_0x838038(0x1e0)]];if(!_0x21a998)throw Error(_0x838038(0x272)+this['_tableId']+_0x838038(0x24c));return _0x21a998;}[_0x672810(0x2dc)](_0x1906e3={}){const _0x27e940=_0x672810;let _0x313c80=this[_0x27e940(0x1e9)][_0x27e940(0x2df)]()[_0x27e940(0x1c0)](),_0x1d068c=this[_0x27e940(0x1b8)]();if(_0x1906e3[_0x27e940(0x2de)]){let _0x9f90c9=this['_projectionService'][_0x27e940(0x278)](_0x313c80,this[_0x27e940(0x1e0)],_0x1906e3[_0x27e940(0x2de)]);if(_0x27e940(0x1d4)in _0x9f90c9&&Array[_0x27e940(0x248)](_0x9f90c9[_0x27e940(0x1d4)]))return _0x9f90c9[_0x27e940(0x1d4)][_0x27e940(0x2c6)](_0xf72530=>_0xf72530[_0x27e940(0x212)]);}return(_0x1d068c[_0x27e940(0x1a1)]?_0x1d068c[_0x27e940(0x1a1)][_0x27e940(0x2c6)](_0x402121=>_0x1d068c[_0x27e940(0x2e8)][_0x402121]):Object[_0x27e940(0x1cf)](_0x1d068c[_0x27e940(0x2e8)])[_0x27e940(0x2cd)]((_0x40b5a5,_0x14c38a)=>_0x40b5a5['orderKey']['localeCompare'](_0x14c38a[_0x27e940(0x27d)])))[_0x27e940(0x1c8)](_0x3d2a5c=>_0x3d2a5c)['map'](_0x1231b4=>_0x1231b4['id']);}};Z=z([R(0x3,_0x49e372),R(0x4,_0x59e954),R(0x5,_0x400a91)],Z);function vt(_0x414616,_0x37b176){const _0x5d9093=_0x672810;let _0x52fd53=Math[_0x5d9093(0x282)](0x0,_0x37b176[_0x5d9093(0x2fc)]??0x0);return _0x37b176['limit']==null?_0x414616['slice'](_0x52fd53):_0x414616['slice'](_0x52fd53,_0x52fd53+Math[_0x5d9093(0x282)](0x0,_0x37b176[_0x5d9093(0x2bc)]));}function yt(_0x27f361,_0x1c6d81,_0xfb3551=[]){const _0x56fdd3=_0x672810;return _0xfb3551[_0x56fdd3(0x233)]?[..._0x27f361][_0x56fdd3(0x2cd)]((_0x3b7c91,_0x1b22b2)=>{const _0x172337=_0x56fdd3;for(let _0x49f3a4 of _0xfb3551){var _0xf884cd;let _0x12460f=_0x49f3a4[_0x172337(0x2e7)]===_0x55f975['DESC']?-0x1:0x1,_0x5ae369=bt(_0x3b7c91['values'][_0x49f3a4[_0x172337(0x286)]],_0x1b22b2[_0x172337(0x1cf)][_0x49f3a4['fieldId']],(_0xf884cd=_0x1c6d81['fields'][_0x49f3a4[_0x172337(0x286)]])==null?void 0x0:_0xf884cd[_0x172337(0x27e)]);if(_0x5ae369!==0x0)return _0x5ae369*_0x12460f;}return String(_0x3b7c91[_0x172337(0x27d)]??_0x3b7c91['id'])[_0x172337(0x236)](String(_0x1b22b2['orderKey']??_0x1b22b2['id']));}):_0x27f361;}function bt(_0x3e8349,_0x22bfa3,_0x130e90){const _0x3ab9b4=_0x672810;return _0x3e8349==null&&_0x22bfa3==null?0x0:_0x3e8349==null?-0x1:_0x22bfa3==null?0x1:typeof _0x3e8349==_0x3ab9b4(0x256)&&typeof _0x22bfa3==_0x3ab9b4(0x256)?_0x3e8349-_0x22bfa3:_0x130e90===_0x22894c[_0x3ab9b4(0x2f1)]?Number(_0x3e8349)-Number(_0x22bfa3):String(_0x3e8349)[_0x3ab9b4(0x236)](String(_0x22bfa3));}function xt(_0x2daf32,_0x36c512,_0x4b086a){const _0x5cf8e3=_0x672810;var _0x3ff9ee;if(!_0x4b086a||!((_0x3ff9ee=_0x4b086a[_0x5cf8e3(0x1a3)])!=null&&_0x3ff9ee['length']))return!0x0;let {conjunction:_0x1b00a2=_0x5b15fe['OR'],conditions:_0x15ae7a}=_0x4b086a;return _0x1b00a2===_0x5b15fe[_0x5cf8e3(0x26c)]&&_0x15ae7a[_0x5cf8e3(0x233)]>0x1?_0x15ae7a['every'](_0x1f3e90=>St(_0x2daf32,_0x36c512,_0x1f3e90)):_0x15ae7a[_0x5cf8e3(0x197)](_0x4000a1=>St(_0x2daf32,_0x36c512,_0x4000a1));}function St(_0x22f3da,_0x4f4613,_0x820ace){const _0x4ee027=_0x672810;let _0x5124b0=_0x22f3da['values'][_0x820ace[_0x4ee027(0x286)]],_0x2b8edd=_0x4f4613[_0x4ee027(0x24d)][_0x820ace[_0x4ee027(0x286)]];if(Ct(_0x820ace)){let _0x3344b7=wt(_0x820ace)['test'](String(_0x5124b0??''));return _0x820ace[_0x4ee027(0x290)]===_0x4ee027(0x241)?_0x3344b7:!_0x3344b7;}return!_0x2b8edd||_0x42dc53(_0x5124b0,_0x820ace[_0x4ee027(0x290)],_0x820ace[_0x4ee027(0x1b7)],_0x2b8edd);}function Ct(_0x10a7d9){const _0x3d4fab=_0x672810;return _0x10a7d9[_0x3d4fab(0x290)]===_0x3d4fab(0x241)||_0x10a7d9['operator']===_0x3d4fab(0x29e);}function wt(_0x4331c5){const _0x2ee761=_0x672810;let _0x59138c=String(_0x4331c5[_0x2ee761(0x1b7)]??'');if(_0x59138c[_0x2ee761(0x233)]>0x200)throw Error(_0x2ee761(0x2b0));try{return new RegExp(_0x59138c,_0x4331c5[_0x2ee761(0x2d6)]?void 0x0:'i');}catch(_0x3be528){throw Error(_0x2ee761(0x260)+_0x59138c+'.\x20'+(_0x3be528 instanceof Error?_0x3be528['message']:String(_0x3be528)));}}function Tt(_0x4732cf,_0x2c3daa,_0x50c1f3){const _0x5ad5b6=_0x672810;if(_0x50c1f3[_0x5ad5b6(0x27e)]!==_0x5ad5b6(0x1c7)&&_0x50c1f3['type']!==_0x5ad5b6(0x254)){var _0x14a5b5;if(_0x50c1f3['type']===_0x345987['Kanban']){var _0x2c910a;let _0x234d9c=[((_0x2c910a=_0x50c1f3[_0x5ad5b6(0x24d)])==null||(_0x2c910a=_0x2c910a[0x0])==null?void 0x0:_0x2c910a['id'])??_0x4732cf[_0x5ad5b6(0x19b)],..._0x50c1f3[_0x5ad5b6(0x1fc)]??[]];return Array[_0x5ad5b6(0x1f7)](new Set(_0x234d9c[_0x5ad5b6(0x1c8)](_0x1614ea=>!!_0x4732cf['fields'][_0x1614ea])));}if((_0x14a5b5=_0x50c1f3[_0x5ad5b6(0x24d)])!=null&&_0x14a5b5[_0x5ad5b6(0x233)])return _0x50c1f3[_0x5ad5b6(0x24d)][_0x5ad5b6(0x2c6)](_0x3d3dec=>_0x3d3dec['id'])[_0x5ad5b6(0x1c8)](_0x2fd64b=>{const _0x10961e=_0x5ad5b6;var _0x33e054;return!(!_0x4732cf[_0x10961e(0x24d)][_0x2fd64b]||_0x2c3daa!=null&&(_0x33e054=_0x2c3daa[_0x10961e(0x2eb)])!=null&&(_0x33e054=_0x33e054[_0x2fd64b])!=null&&_0x33e054[_0x10961e(0x27c)]);});}return _0x4732cf[_0x5ad5b6(0x262)]['filter'](_0x43bf8d=>{var _0x3f9287;return!(!_0x4732cf['fields'][_0x43bf8d]||_0x2c3daa!=null&&(_0x3f9287=_0x2c3daa['fieldSettings'])!=null&&(_0x3f9287=_0x3f9287[_0x43bf8d])!=null&&_0x3f9287['hidden']);});}let Q=class extends _0xe0f600[_0x672810(0x1f9)]{constructor(_0x965777,_0x56fcb2,_0xdacc99,_0x7ca151,_0x6a1867){const _0x5d966e=_0x672810;super(),this[_0x5d966e(0x1e9)]=_0x965777,this[_0x5d966e(0x2b5)]=_0x56fcb2,this['_resourceLoaderService']=_0xdacc99,this[_0x5d966e(0x28b)]=_0x7ca151,this['_permissionService']=_0x6a1867;}[_0x672810(0x2df)](){const _0x56ec8d=_0x672810;return this[_0x56ec8d(0x1e9)];}[_0x672810(0x2b9)](){const _0x1dad1a=_0x672810;return this[_0x1dad1a(0x1e9)]['getUnitId']();}['getPermission'](){const _0x116ee8=_0x672810;return new at(this[_0x116ee8(0x2b9)](),this[_0x116ee8(0x28b)],this[_0x116ee8(0x2c1)]);}['save'](){const _0xd5f2c4=_0x672810;return this[_0xd5f2c4(0x2e9)]['saveUnit'](this[_0xd5f2c4(0x2b9)]())??_0x2fe97f[_0xd5f2c4(0x2cc)](this[_0xd5f2c4(0x1e9)][_0xd5f2c4(0x1c0)]());}['getName'](){const _0x354553=_0x672810;return this[_0x354553(0x1e9)][_0x354553(0x1c0)]()[_0x354553(0x1ca)];}['setName'](_0x49b814){const _0x35ad02=_0x672810;this['_commandService'][_0x35ad02(0x1ae)](_0x3fec51['id'],{'unitId':this[_0x35ad02(0x2b9)](),'name':_0x49b814});}[_0x672810(0x1d6)](){const _0x957caa=_0x672810;let _0x5eb13e=this[_0x957caa(0x1e9)]['getSnapshot']();return _0x5eb13e[_0x957caa(0x251)][_0x957caa(0x2c6)](_0x41e387=>_0x5eb13e['tables'][_0x41e387])['filter'](_0x350547=>_0x350547)[_0x957caa(0x2c6)](_0x27827c=>this[_0x957caa(0x2b5)][_0x957caa(0x24b)](Z,this,_0x27827c['id'],this[_0x957caa(0x2b5)]));}[_0x672810(0x207)](_0xe6c4ff){const _0x42a923=_0x672810;let _0x200d2b=this[_0x42a923(0x1e9)]['getSnapshot']()[_0x42a923(0x29d)][_0xe6c4ff];return _0x200d2b?this[_0x42a923(0x2b5)][_0x42a923(0x24b)](Z,this,_0x200d2b['id'],this[_0x42a923(0x2b5)]):null;}[_0x672810(0x232)](_0x51e4e0){const _0xf485=_0x672810;let _0x56be10=this['_base']['getSnapshot'](),_0x4a2506=Object[_0xf485(0x1cf)](_0x56be10['tables'])[_0xf485(0x24a)](_0x27117f=>_0x27117f[_0xf485(0x1ca)]===_0x51e4e0);return _0x4a2506?this[_0xf485(0x2b5)][_0xf485(0x24b)](Z,this,_0x4a2506['id'],this['_injector']):null;}[_0x672810(0x2ae)](_0x53d906,_0x41936a){const _0x39f115=_0x672810;let _0x86e881=_0x546bf8({'id':_0xc362eb(),'name':_0x53d906,..._0x41936a==null?void 0x0:_0x41936a[_0x39f115(0x250)],'primaryFieldName':_0x41936a==null?void 0x0:_0x41936a[_0x39f115(0x28f)]}),_0x2719be=_0x2fe97f['commonExtend'](_0x86e881,(_0x41936a==null?void 0x0:_0x41936a[_0x39f115(0x250)])??{}),_0x1acbd6=_0x520269(this['_base'][_0x39f115(0x1c0)](),_0x2719be[_0x39f115(0x1ca)]);if(!_0x1acbd6[_0x39f115(0x261)])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x2719be[_0x39f115(0x1ca)]+_0x39f115(0x2d7)+_0x43ed5f+'\x20'+_0x1acbd6[_0x39f115(0x21a)]);if(!this[_0x39f115(0x28b)][_0x39f115(0x1ae)](_0x3dd62e['id'],{'unitId':this['_base'][_0x39f115(0x23c)](),'table':_0x2719be,'index':_0x41936a==null?void 0x0:_0x41936a[_0x39f115(0x2db)]}))throw Error('Failed\x20to\x20create\x20table\x20\x22'+_0x53d906+'\x22.');return this[_0x39f115(0x2b5)][_0x39f115(0x24b)](Z,this,_0x2719be['id'],this[_0x39f115(0x2b5)]);}[_0x672810(0x22a)](_0x7a7ca3){const _0x5bdabf=_0x672810;let _0x16c9fc=typeof _0x7a7ca3==_0x5bdabf(0x289)?_0x7a7ca3:_0x7a7ca3['getId']();if(!this[_0x5bdabf(0x28b)]['syncExecuteCommand'](_0x20caaa['id'],{'unitId':this[_0x5bdabf(0x1e9)][_0x5bdabf(0x23c)](),'tableId':_0x16c9fc}))throw Error(_0x5bdabf(0x246)+_0x16c9fc+'\x22.');return!0x0;}[_0x672810(0x29f)](_0x5e08fa,_0x12d6f5){const _0x5e069a=_0x672810;let _0x208e86=this[_0x5e069a(0x1e9)]['getSnapshot'](),_0x1c0162=typeof _0x5e08fa==_0x5e069a(0x289)?_0x5e08fa:_0x5e08fa[_0x5e069a(0x2b9)](),_0x59b7c7=_0x208e86[_0x5e069a(0x29d)][_0x1c0162];if(!_0x59b7c7)throw Error(_0x5e069a(0x2be)+_0x1c0162+_0x5e069a(0x24c));let _0x2b6511=_0x208e86[_0x5e069a(0x251)][_0x5e069a(0x1da)](_0x1c0162)+0x1,_0x44be8f=_0xc362eb(),_0x527909=_0xedde2c(_0x59b7c7,{'id':_0x44be8f,'name':_0x561a70(_0x208e86,_0x59b7c7[_0x5e069a(0x1ca)]+_0x5e069a(0x285)),'includeRecords':(_0x12d6f5==null?void 0x0:_0x12d6f5[_0x5e069a(0x1f1)])??!0x1,'regenerateViewIds':(_0x12d6f5==null?void 0x0:_0x12d6f5[_0x5e069a(0x192)])??!0x1});if(!this[_0x5e069a(0x28b)][_0x5e069a(0x1ae)](_0x3dd62e['id'],{'unitId':this[_0x5e069a(0x1e9)][_0x5e069a(0x23c)](),'table':_0x527909,'index':_0x2b6511}))throw Error(_0x5e069a(0x203)+_0x1c0162+'\x22.');return this['_injector'][_0x5e069a(0x24b)](Z,this,_0x527909['id'],this[_0x5e069a(0x2b5)]);}[_0x672810(0x1ad)](){const _0x2d2e29=_0x672810;let _0x218152=this['_base']['getSnapshot']();return{'id':_0x218152['id'],'name':_0x218152[_0x2d2e29(0x1ca)],'tables':this[_0x2d2e29(0x1d6)]()[_0x2d2e29(0x2c6)](_0x176893=>_0x176893[_0x2d2e29(0x1ad)]())};}};Q=z([R(0x1,_0x1f83e3(_0x1d5f17)),R(0x2,_0x2ec0f3),R(0x3,_0x49e372),R(0x4,_0x59e954)],Q);var Et=class extends _0x5ac03e{[_0x672810(0x1d7)](){const _0xd1a3b=_0x672810;this[_0xd1a3b(0x1d5)](),this[_0xd1a3b(0x266)]();}[_0x672810(0x1be)](_0x460818={},_0x2f8754){const _0x432cde=_0x672810;let _0x5c953d=this['_univerInstanceService'][_0x432cde(0x2ba)](_0xc43c8[_0x432cde(0x219)],_0x460818,_0x2f8754);return this[_0x432cde(0x2b5)]['createInstance'](Q,_0x5c953d);}[_0x672810(0x1af)](){const _0x21669f=_0x672810;let _0x3544ab=this[_0x21669f(0x240)][_0x21669f(0x198)](_0xc43c8['UNIVER_BASE']);return _0x3544ab?this[_0x21669f(0x2b5)]['createInstance'](Q,_0x3544ab):null;}[_0x672810(0x2df)](_0x3a8921){const _0x57d2bd=_0x672810;let _0x31af6a=this[_0x57d2bd(0x240)][_0x57d2bd(0x221)](_0x3a8921,_0xc43c8[_0x57d2bd(0x219)]);return _0x31af6a?this['_injector'][_0x57d2bd(0x24b)](Q,_0x31af6a):null;}[_0x672810(0x259)](){const _0x565cd1=_0x672810;return this['_univerInstanceService'][_0x565cd1(0x2c3)](_0xc43c8['UNIVER_BASE'])['map'](_0x2e9ee7=>this['_injector'][_0x565cd1(0x24b)](Q,_0x2e9ee7));}[_0x672810(0x266)](){const _0x4b5257=_0x672810;this[_0x4b5257(0x22d)](this[_0x4b5257(0x271)](this[_0x4b5257(0x1dc)]['BaseHierarchyChanged'],()=>this['_commandService']['onCommandExecuted']((_0x4692cb,_0x10d753)=>{const _0x1b2002=_0x4b5257;var _0x60cb5f;if(!$(_0x4692cb,_0x29f6bf))return;let _0x929a12=_0x4692cb[_0x1b2002(0x2bb)];if(!((_0x60cb5f=_0x929a12[_0x1b2002(0x1a8)])!=null&&_0x60cb5f[_0x1b2002(0x233)]))return;let _0x10a07c=this[_0x1b2002(0x2df)](_0x929a12[_0x1b2002(0x1fa)]),_0x1bef21=_0x10a07c==null?void 0x0:_0x10a07c[_0x1b2002(0x207)](_0x929a12[_0x1b2002(0x1a8)][0x0][_0x1b2002(0x26b)]);if(!_0x10a07c||!_0x1bef21)return;let _0x174b2c={'base':_0x10a07c,'table':_0x1bef21,'changes':_0x929a12[_0x1b2002(0x1a8)],'source':_0x10d753!=null&&_0x10d753[_0x1b2002(0x24f)]?_0xe81c71[_0x1b2002(0x1ec)]:_0x929a12['source']??_0xe81c71['UI']};this[_0x1b2002(0x25d)](this[_0x1b2002(0x1dc)][_0x1b2002(0x1ee)],_0x174b2c);}))),this[_0x4b5257(0x22d)](this['registerEventHandler'](this[_0x4b5257(0x1dc)][_0x4b5257(0x26f)],()=>this['_commandService'][_0x4b5257(0x2fd)](_0xf34535=>{const _0x58d2ad=_0x4b5257;if(_0xf34535['id']!==_0x3dd62e['id'])return;let {unitId:_0x442490,table:_0x617888,index:_0x5693e1}=_0xf34535[_0x58d2ad(0x2bb)],_0x3d1c19=this[_0x58d2ad(0x2df)](_0x442490);if(!_0x3d1c19)return;let _0x45cbf0={'base':_0x3d1c19,'table':_0x617888,'index':_0x5693e1};this[_0x58d2ad(0x25d)](this[_0x58d2ad(0x1dc)][_0x58d2ad(0x26f)],_0x45cbf0);}))),this[_0x4b5257(0x22d)](this[_0x4b5257(0x271)](this[_0x4b5257(0x1dc)]['BaseTableFieldCreated'],()=>this[_0x4b5257(0x28b)][_0x4b5257(0x2fd)](_0x5c1997=>{const _0xb8c6d8=_0x4b5257;if(_0x5c1997['id']!==_0x5004a9['id'])return;let {unitId:_0x44023d,tableId:_0x5797d0,field:_0x56a754,index:_0x36b50b,viewIndexes:_0x2c40c4}=_0x5c1997[_0xb8c6d8(0x2bb)],_0x17b80d=this[_0xb8c6d8(0x2df)](_0x44023d);if(!_0x17b80d)return;let _0x23f010=_0x17b80d[_0xb8c6d8(0x207)](_0x5797d0);if(!_0x23f010)return;let _0x4a40fa={'base':_0x17b80d,'table':_0x23f010,'field':_0x56a754,'index':_0x36b50b,'viewIndexes':_0x2c40c4};this[_0xb8c6d8(0x25d)](this[_0xb8c6d8(0x1dc)][_0xb8c6d8(0x2bd)],_0x4a40fa);}))),this[_0x4b5257(0x22d)](this[_0x4b5257(0x271)](this['Event'][_0x4b5257(0x1d1)],()=>this[_0x4b5257(0x28b)][_0x4b5257(0x2fd)](_0x56a7b8=>{const _0x46fb72=_0x4b5257;if(_0x56a7b8['id']!==_0x431c7b['id']&&_0x56a7b8['id']!==_0x2b0a08['id'])return;let _0xa24243=_0x56a7b8[_0x46fb72(0x2bb)],{unitId:_0x13eee6,tableId:_0x28a4a4}=_0xa24243,_0x34e4fe=_0xa24243[_0x46fb72(0x2e8)]??[_0xa24243[_0x46fb72(0x2ef)]],_0x5351fe=this[_0x46fb72(0x2df)](_0x13eee6);if(!_0x5351fe)return;let _0x3c805f=_0x5351fe[_0x46fb72(0x207)](_0x28a4a4);if(!_0x3c805f)return;let _0x1214e2={'base':_0x5351fe,'table':_0x3c805f,'records':_0x34e4fe};this[_0x46fb72(0x25d)](this[_0x46fb72(0x1dc)][_0x46fb72(0x1d1)],_0x1214e2);}))),this[_0x4b5257(0x22d)](this[_0x4b5257(0x271)](this[_0x4b5257(0x1dc)]['BaseTableViewCreated'],()=>this[_0x4b5257(0x28b)][_0x4b5257(0x2fd)](_0x1bb55e=>{const _0x52c667=_0x4b5257;if(_0x1bb55e['id']!==_0x6d95a5['id'])return;let {unitId:_0x279a12,tableId:_0x498653,view:_0x1c3fcb,index:_0x12f98b}=_0x1bb55e[_0x52c667(0x2bb)],_0x3b2809=this[_0x52c667(0x2df)](_0x279a12);if(!_0x3b2809)return;let _0x2fdcbe=_0x3b2809[_0x52c667(0x207)](_0x498653);if(!_0x2fdcbe)return;let _0xff5d94={'base':_0x3b2809,'table':_0x2fdcbe,'view':_0x1c3fcb,'index':_0x12f98b};this[_0x52c667(0x25d)](this['Event'][_0x52c667(0x2ab)],_0xff5d94);}))),this[_0x4b5257(0x22d)](this['registerEventHandler'](this[_0x4b5257(0x1dc)][_0x4b5257(0x2f7)],()=>this[_0x4b5257(0x28b)][_0x4b5257(0x2fd)](_0x3dff5d=>{const _0x12afdf=_0x4b5257;if(_0x3dff5d['id']!==_0xf2eaa0['id'])return;let {unitId:_0x3767b8,tableId:_0x9d2cca,recordId:_0x5a107d,fieldId:_0x44c7a1,value:_0x5dcd54}=_0x3dff5d[_0x12afdf(0x2bb)],_0x210942=this[_0x12afdf(0x2df)](_0x3767b8);if(!_0x210942)return;let _0x5c96e2=_0x210942[_0x12afdf(0x207)](_0x9d2cca);if(!_0x5c96e2)return;let _0xfc9c65=_0x5c96e2[_0x12afdf(0x247)](_0x44c7a1);if(!_0xfc9c65)return;let _0x365478=_0x5c96e2[_0x12afdf(0x2ac)](_0x5a107d);if(!_0x365478)return;let _0x446f36={'base':_0x210942,'table':_0x5c96e2,'field':_0xfc9c65,'record':_0x365478,'value':_0x5dcd54};this['fireEvent'](this[_0x12afdf(0x1dc)][_0x12afdf(0x2f7)],_0x446f36);})));}[_0x672810(0x1d5)](){const _0x3f49da=_0x672810;this[_0x3f49da(0x22d)](this[_0x3f49da(0x271)](this[_0x3f49da(0x1dc)]['BeforeBaseHierarchyChange'],()=>this[_0x3f49da(0x28b)][_0x3f49da(0x238)](_0x304aab=>{const _0x2c5fa7=_0x3f49da;if($(_0x304aab,_0x3ef9eb)){let {unitId:_0x3a1c01,tableId:_0x4d3c87,patches:_0x4c4f7e,source:_0x5a2231=_0xe81c71['UI']}=_0x304aab['params'],_0x5b3c12=this[_0x2c5fa7(0x2e5)](_0x3a1c01,_0x4d3c87);if(!_0x5b3c12)return;this[_0x2c5fa7(0x2a0)](_0x5b3c12[_0x2c5fa7(0x291)],_0x5b3c12[_0x2c5fa7(0x250)],_0x3193de(_0x5b3c12[_0x2c5fa7(0x250)][_0x2c5fa7(0x22f)](),_0x4c4f7e),_0x5a2231);return;}if($(_0x304aab,_0x49690c)){let {unitId:_0x4b476c,tableId:_0x5a3252,patches:_0x3541ab,source:_0x3f19c4=_0xe81c71['UI']}=_0x304aab[_0x2c5fa7(0x2bb)],_0x48121b=this[_0x2c5fa7(0x2e5)](_0x4b476c,_0x5a3252);if(!_0x48121b)return;let _0x56a781=_0x48121b[_0x2c5fa7(0x250)]['getTable']();this[_0x2c5fa7(0x2a0)](_0x48121b[_0x2c5fa7(0x291)],_0x48121b[_0x2c5fa7(0x250)],_0x3193de(_0x56a781,_0x342aca(_0x56a781,_0x3541ab)),_0x3f19c4);return;}if($(_0x304aab,_0x431c7b)){let _0x49c1b6=_0x304aab[_0x2c5fa7(0x2bb)],_0x26252e=this['_getHierarchyEventContext'](_0x49c1b6[_0x2c5fa7(0x1fa)],_0x49c1b6[_0x2c5fa7(0x26b)]);if(!_0x26252e)return;this['_fireBeforeHierarchyChange'](_0x26252e[_0x2c5fa7(0x291)],_0x26252e[_0x2c5fa7(0x250)],_0x47bdaf(_0x26252e[_0x2c5fa7(0x250)]['getTable'](),[_0x49c1b6[_0x2c5fa7(0x2ef)]]),_0x49c1b6[_0x2c5fa7(0x2e1)]??_0xe81c71['UI']);return;}if($(_0x304aab,_0x2b0a08)){let _0x1a235e=_0x304aab[_0x2c5fa7(0x2bb)],_0x2aaaea=this[_0x2c5fa7(0x2e5)](_0x1a235e[_0x2c5fa7(0x1fa)],_0x1a235e[_0x2c5fa7(0x26b)]);if(!_0x2aaaea)return;this['_fireBeforeHierarchyChange'](_0x2aaaea[_0x2c5fa7(0x291)],_0x2aaaea[_0x2c5fa7(0x250)],_0x47bdaf(_0x2aaaea[_0x2c5fa7(0x250)][_0x2c5fa7(0x22f)](),_0x1a235e['records']),_0x1a235e[_0x2c5fa7(0x2e1)]??_0xe81c71['UI']);return;}if($(_0x304aab,_0x425683)){let _0x5cf2a7=_0x304aab[_0x2c5fa7(0x2bb)],_0x472175=this['_getHierarchyEventContext'](_0x5cf2a7[_0x2c5fa7(0x1fa)],_0x5cf2a7['tableId']);if(!_0x472175)return;this[_0x2c5fa7(0x2a0)](_0x472175[_0x2c5fa7(0x291)],_0x472175[_0x2c5fa7(0x250)],_0x47bdaf(_0x472175[_0x2c5fa7(0x250)]['getTable'](),[_0x5cf2a7[_0x2c5fa7(0x2ef)]]),_0x5cf2a7[_0x2c5fa7(0x2e1)]??_0xe81c71['UI']);return;}if($(_0x304aab,_0x123689)){let _0x2f8b09=_0x304aab[_0x2c5fa7(0x2bb)],_0x5025ec=this[_0x2c5fa7(0x2e5)](_0x2f8b09[_0x2c5fa7(0x1fa)],_0x2f8b09[_0x2c5fa7(0x26b)]);if(!_0x5025ec)return;let _0x9d3b5=_0x5025ec[_0x2c5fa7(0x250)][_0x2c5fa7(0x22f)](),_0x2f414f=_0x2f8b09[_0x2c5fa7(0x286)]??_0x3cd49d(_0x9d3b5),_0x105e59=_0x4f82a6(_0x9d3b5,_0x2f414f)[_0x2c5fa7(0x2e0)][_0x2c5fa7(0x293)](_0x2f8b09['recordId'])??null;this[_0x2c5fa7(0x2a0)](_0x5025ec[_0x2c5fa7(0x291)],_0x5025ec['table'],[{'tableId':_0x2f8b09[_0x2c5fa7(0x26b)],'fieldId':_0x2f414f,'recordId':_0x2f8b09[_0x2c5fa7(0x212)],'oldParentRecordId':_0x105e59,'parentRecordId':_0x2f8b09['parentRecordId']}],_0x2f8b09[_0x2c5fa7(0x2e1)]??_0xe81c71['UI']);return;}if($(_0x304aab,_0x2eeb56)){let _0x4e3f8e=_0x304aab[_0x2c5fa7(0x2bb)],_0x3c6989=this['_getHierarchyEventContext'](_0x4e3f8e[_0x2c5fa7(0x1fa)],_0x4e3f8e['tableId']);if(!_0x3c6989)return;let _0x2db0a0=_0x4e3f8e['fieldId']??_0x3cd49d(_0x3c6989['table'][_0x2c5fa7(0x22f)]());this[_0x2c5fa7(0x2a0)](_0x3c6989[_0x2c5fa7(0x291)],_0x3c6989['table'],[{'tableId':_0x4e3f8e['tableId'],'fieldId':_0x2db0a0,'recordId':_0x4e3f8e[_0x2c5fa7(0x2ef)]['id'],'oldParentRecordId':null,'parentRecordId':_0x4e3f8e['parentRecordId']}],_0x4e3f8e[_0x2c5fa7(0x2e1)]??_0xe81c71['UI']);return;}if($(_0x304aab,_0x2461cb)){let _0x37be3f=_0x304aab[_0x2c5fa7(0x2bb)],_0x10f9c2=this[_0x2c5fa7(0x2e5)](_0x37be3f['unitId'],_0x37be3f[_0x2c5fa7(0x26b)]);if(!_0x10f9c2)return;this['_fireBeforeHierarchyChange'](_0x10f9c2[_0x2c5fa7(0x291)],_0x10f9c2[_0x2c5fa7(0x250)],_0x569492(_0x10f9c2[_0x2c5fa7(0x250)][_0x2c5fa7(0x22f)](),[_0x37be3f[_0x2c5fa7(0x212)]]),_0x37be3f[_0x2c5fa7(0x2e1)]??_0xe81c71['UI']);return;}if($(_0x304aab,_0x49a978)){let _0x19c2e5=_0x304aab[_0x2c5fa7(0x2bb)],_0x14095e=this[_0x2c5fa7(0x2e5)](_0x19c2e5[_0x2c5fa7(0x1fa)],_0x19c2e5[_0x2c5fa7(0x26b)]);if(!_0x14095e)return;this[_0x2c5fa7(0x2a0)](_0x14095e[_0x2c5fa7(0x291)],_0x14095e['table'],_0x569492(_0x14095e['table'][_0x2c5fa7(0x22f)](),_0x19c2e5['recordIds']),_0x19c2e5['source']??_0xe81c71['UI']);return;}if(!$(_0x304aab,_0xf2eaa0))return;let _0x458d0f=_0x304aab[_0x2c5fa7(0x2bb)],_0x1bb1a6=this[_0x2c5fa7(0x2e5)](_0x458d0f['unitId'],_0x458d0f[_0x2c5fa7(0x26b)]);if(!_0x1bb1a6)return;let _0x44cdac=_0x1bb1a6[_0x2c5fa7(0x250)][_0x2c5fa7(0x22f)]();if(!_0x5754ca(_0x44cdac)[_0x2c5fa7(0x1a9)](_0x458d0f[_0x2c5fa7(0x286)]))return;let _0x406afd=_0x4f82a6(_0x44cdac,_0x458d0f[_0x2c5fa7(0x286)])['parentByRecordId']['get'](_0x458d0f[_0x2c5fa7(0x212)])??null,_0x1677d8=_0xa22387(_0x458d0f[_0x2c5fa7(0x1b7)])[0x0]??null;_0x406afd!==_0x1677d8&&this[_0x2c5fa7(0x2a0)](_0x1bb1a6[_0x2c5fa7(0x291)],_0x1bb1a6[_0x2c5fa7(0x250)],[{'tableId':_0x458d0f['tableId'],'fieldId':_0x458d0f[_0x2c5fa7(0x286)],'recordId':_0x458d0f[_0x2c5fa7(0x212)],'oldParentRecordId':_0x406afd,'parentRecordId':_0x1677d8}],_0x458d0f[_0x2c5fa7(0x2e1)]??_0xe81c71['UI']);}))),this[_0x3f49da(0x22d)](this[_0x3f49da(0x271)](this[_0x3f49da(0x1dc)][_0x3f49da(0x1e1)],()=>this[_0x3f49da(0x28b)][_0x3f49da(0x238)](_0x7a53c1=>{const _0x5dd55a=_0x3f49da;if(_0x7a53c1['id']!==_0x3dd62e['id'])return;let {unitId:_0x177993,table:_0x5e15d2,index:_0x1b6591}=_0x7a53c1[_0x5dd55a(0x2bb)],_0x37d9b7=this['getBase'](_0x177993);if(!_0x37d9b7)return;let _0x19a4c9={'base':_0x37d9b7,'table':_0x5e15d2,'index':_0x1b6591};if(this[_0x5dd55a(0x25d)](this[_0x5dd55a(0x1dc)][_0x5dd55a(0x1e1)],_0x19a4c9),_0x19a4c9['cancel'])throw new _0x2fd329();}))),this['disposeWithMe'](this[_0x3f49da(0x271)](this[_0x3f49da(0x1dc)][_0x3f49da(0x27a)],()=>this[_0x3f49da(0x28b)][_0x3f49da(0x238)](_0x2b033e=>{const _0x512985=_0x3f49da;if(_0x2b033e['id']!==_0x5004a9['id'])return;let {unitId:_0x502e78,tableId:_0x4fcf02,field:_0x126de1,index:_0x1da11b,viewIndexes:_0x2c914c}=_0x2b033e['params'],_0x3731fb=this[_0x512985(0x2df)](_0x502e78);if(!_0x3731fb)return;let _0x35eb19=_0x3731fb['getTableById'](_0x4fcf02);if(!_0x35eb19)return;let _0x245ead={'base':_0x3731fb,'table':_0x35eb19,'field':_0x126de1,'index':_0x1da11b,'viewIndexes':_0x2c914c};if(this[_0x512985(0x25d)](this[_0x512985(0x1dc)]['BeforeBaseTableFieldCreate'],_0x245ead),_0x245ead[_0x512985(0x255)])throw new _0x2fd329();}))),this[_0x3f49da(0x22d)](this[_0x3f49da(0x271)](this[_0x3f49da(0x1dc)][_0x3f49da(0x211)],()=>this[_0x3f49da(0x28b)][_0x3f49da(0x238)](_0x1b42bd=>{const _0x390161=_0x3f49da;if(_0x1b42bd['id']!==_0x431c7b['id']&&_0x1b42bd['id']!==_0x2b0a08['id'])return;let _0xf426c8=_0x1b42bd[_0x390161(0x2bb)],{unitId:_0x511feb,tableId:_0x426e0f}=_0xf426c8,_0xd1c542=_0xf426c8['records']??[_0xf426c8[_0x390161(0x2ef)]],_0x16f70f=this[_0x390161(0x2df)](_0x511feb);if(!_0x16f70f)return;let _0xfdfffa=_0x16f70f['getTableById'](_0x426e0f);if(!_0xfdfffa)return;let _0x2e298f={'base':_0x16f70f,'table':_0xfdfffa,'records':_0xd1c542};if(this[_0x390161(0x25d)](this['Event'][_0x390161(0x211)],_0x2e298f),_0x2e298f[_0x390161(0x255)])throw new _0x2fd329();}))),this[_0x3f49da(0x22d)](this[_0x3f49da(0x271)](this['Event']['BeforeBaseTableViewCreate'],()=>this[_0x3f49da(0x28b)][_0x3f49da(0x238)](_0x4321cb=>{const _0x3cbbf3=_0x3f49da;if(_0x4321cb['id']!==_0x6d95a5['id'])return;let {unitId:_0x5d5372,tableId:_0xb1a8fc,view:_0xb1b6d8,index:_0x131f1d}=_0x4321cb[_0x3cbbf3(0x2bb)],_0x5ecd71=this[_0x3cbbf3(0x2df)](_0x5d5372);if(!_0x5ecd71)return;let _0x2e16ca=_0x5ecd71[_0x3cbbf3(0x207)](_0xb1a8fc);if(!_0x2e16ca)return;let _0x38c2d0={'base':_0x5ecd71,'table':_0x2e16ca,'view':_0xb1b6d8,'index':_0x131f1d};if(this[_0x3cbbf3(0x25d)](this[_0x3cbbf3(0x1dc)][_0x3cbbf3(0x23e)],_0x38c2d0),_0x38c2d0[_0x3cbbf3(0x255)])throw new _0x2fd329();}))),this[_0x3f49da(0x22d)](this[_0x3f49da(0x271)](this[_0x3f49da(0x1dc)][_0x3f49da(0x23d)],()=>this[_0x3f49da(0x28b)][_0x3f49da(0x238)](_0x5a57ef=>{const _0x126468=_0x3f49da;if(_0x5a57ef['id']!==_0xf2eaa0['id'])return;let {unitId:_0x84f2c0,tableId:_0x587d4c,recordId:_0x160069,fieldId:_0x5ae893,value:_0x21fffa}=_0x5a57ef[_0x126468(0x2bb)],_0x56213e=this[_0x126468(0x2df)](_0x84f2c0);if(!_0x56213e)return;let _0x4ecf39=_0x56213e[_0x126468(0x207)](_0x587d4c);if(!_0x4ecf39)return;let _0x9b7b6a=_0x4ecf39[_0x126468(0x247)](_0x5ae893);if(!_0x9b7b6a)return;let _0x1c9c8e=_0x4ecf39[_0x126468(0x2ac)](_0x160069);if(!_0x1c9c8e)return;let _0x3818e4={'base':_0x56213e,'table':_0x4ecf39,'field':_0x9b7b6a,'record':_0x1c9c8e,'value':_0x21fffa};if(this[_0x126468(0x25d)](this[_0x126468(0x1dc)]['BeforeBaseTableCellValueChange'],_0x3818e4),_0x3818e4[_0x126468(0x255)])throw new _0x2fd329();})));}[_0x672810(0x2e5)](_0x1d0729,_0xd19614){const _0xc1bda8=_0x672810;let _0x3d249d=this[_0xc1bda8(0x2df)](_0x1d0729),_0x1e8d5f=_0x3d249d==null?void 0x0:_0x3d249d[_0xc1bda8(0x207)](_0xd19614);return _0x3d249d&&_0x1e8d5f?{'base':_0x3d249d,'table':_0x1e8d5f}:null;}[_0x672810(0x2a0)](_0x406a1d,_0xb7b9b9,_0x19d788,_0x1227be){const _0x4fe18c=_0x672810;if(!_0x19d788[_0x4fe18c(0x233)])return;let _0x250d7a={'base':_0x406a1d,'table':_0xb7b9b9,'changes':_0x19d788,'source':_0x1227be};if(this[_0x4fe18c(0x25d)](this[_0x4fe18c(0x1dc)][_0x4fe18c(0x22c)],_0x250d7a),_0x250d7a[_0x4fe18c(0x255)])throw new _0x2fd329();}};function $(_0xafc42c,_0x1c167d){return _0xafc42c['id']===_0x1c167d['id']&&_0xafc42c['params']!==void 0x0;}_0x5ac03e[_0x672810(0x2ca)](Et);var Dt=class extends _0x1527ae{get[_0x672810(0x1a0)](){return _0x22894c;}get[_0x672810(0x2a2)](){return _0x5b15fe;}get[_0x672810(0x1dd)](){return _0x497ab3;}get[_0x672810(0x268)](){return ot;}get[_0x672810(0x2fb)](){return _0x345987;}get[_0x672810(0x264)](){return _0x4954f2;}get[_0x672810(0x295)](){return _0x358942;}get[_0x672810(0x29c)](){return _0xfe2896;}get[_0x672810(0x1c2)](){return _0x55f975;}get[_0x672810(0x2d0)](){return _0xe81c71;}get[_0x672810(0x273)](){return _0x4a6014;}get['BaseHierarchyInvalidReason'](){return _0x214af2;}get['BaseRecordLinkRole'](){return _0x4ccd60;}};_0x1527ae[_0x672810(0x2ca)](Dt);var Ot=class extends _0x1b8ca7{get[_0x672810(0x26f)](){const _0x5acc6e=_0x672810;return _0x5acc6e(0x26f);}get[_0x672810(0x1e1)](){const _0xebe613=_0x672810;return _0xebe613(0x1e1);}get[_0x672810(0x2bd)](){const _0x4a6dd4=_0x672810;return _0x4a6dd4(0x2bd);}get[_0x672810(0x27a)](){const _0x2db8f6=_0x672810;return _0x2db8f6(0x27a);}get['BaseTableRecordCreated'](){const _0x369ece=_0x672810;return _0x369ece(0x1d1);}get[_0x672810(0x211)](){const _0x109c0e=_0x672810;return _0x109c0e(0x211);}get[_0x672810(0x2ab)](){const _0x2bc1a5=_0x672810;return _0x2bc1a5(0x2ab);}get[_0x672810(0x23e)](){const _0x5d4ce3=_0x672810;return _0x5d4ce3(0x23e);}get[_0x672810(0x2f7)](){const _0x589775=_0x672810;return _0x589775(0x2f7);}get[_0x672810(0x23d)](){const _0x1d49c6=_0x672810;return _0x1d49c6(0x23d);}get['BaseHierarchyChanged'](){return'BaseHierarchyChanged';}get[_0x672810(0x22c)](){return'BeforeBaseHierarchyChange';}};_0x1b8ca7[_0x672810(0x2ca)](Ot);export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};
|
|
1
|
+
const _0x42cb2d=_0x4bdd;(function(_0x1076fc,_0x4b1d47){const _0x5aa408=_0x4bdd,_0x585dfb=_0x1076fc();while(!![]){try{const _0x21a686=-parseInt(_0x5aa408(0x179))/0x1+parseInt(_0x5aa408(0x280))/0x2+parseInt(_0x5aa408(0x18b))/0x3*(parseInt(_0x5aa408(0x215))/0x4)+parseInt(_0x5aa408(0x28f))/0x5+parseInt(_0x5aa408(0x1f0))/0x6*(-parseInt(_0x5aa408(0x183))/0x7)+-parseInt(_0x5aa408(0x1e7))/0x8*(-parseInt(_0x5aa408(0x184))/0x9)+-parseInt(_0x5aa408(0x267))/0xa;if(_0x21a686===_0x4b1d47)break;else _0x585dfb['push'](_0x585dfb['shift']());}catch(_0x4e3f6e){_0x585dfb['push'](_0x585dfb['shift']());}}}(_0x1281,0x676c2));import{ApplyBaseJson1Mutation as _0x178c24,BASE_TABLE_NAME_REQUIREMENTS as _0x2e61f6,BaseConditionalColorRuleUpdateType as _0x36384f,BaseEventSource as _0x220938,BaseHierarchyErrorCode as _0x1d94db,BatchCreateBaseRecordsCommand as _0x30ed55,BatchDeleteBaseRecordsCommand as _0x259e76,ChangeBaseFieldTypeCommand as _0x1d22f3,CreateBaseChildRecordCommand as _0x38016d,CreateBaseFieldCommand as _0x89725e,CreateBaseRecordCommand as _0x470e4e,CreateBaseTableCommand as _0x1d6ad3,CreateBaseViewCommand as _0x471b73,DeleteBaseFieldCommand as _0x14a5d6,DeleteBaseRecordCommand as _0x36855b,DeleteBaseTableCommand as _0x359c6b,DeleteBaseViewCommand as _0x3ddbc,DuplicateBaseRecordCommand as _0x328e28,IBaseProjectionService as _0x5da3e7,MoveBaseFieldCommand as _0x249bdd,MoveBaseHierarchyRecordCommand as _0x146970,MoveBaseViewCommand as _0x1f38e3,RenameBaseTableCommand as _0x47dfb5,RenameBaseViewCommand as _0x3f17b8,SetBaseNameCommand as _0x3cf18e,SetBasePermissionCommand as _0x28b4ab,SetBasePermissionsCommand as _0x1648f2,SetBaseRangeValuesCommand as _0x1fa9ec,SetBaseRecordValuesCommand as _0x54705e,SetBaseTableHierarchyFieldCommand as _0x71b3cc,SetBaseViewFieldOrderCommand as _0x3556fb,SetBaseViewFieldVisibleCommand as _0xc297cb,SetBaseViewFieldWidthCommand as _0x2dfde8,SetBaseViewFilterCommand as _0x95d2fe,SetBaseViewGroupCommand as _0x37eaa0,SetBaseViewSortCommand as _0x118bc9,UpdateBaseCellCommand as _0x50c883,UpdateBaseFieldCommand as _0x1ed29e,UpdateBaseRecordOrderCommand as _0x474036,UpdateBaseViewConditionalColorRulesCommand as _0x16d73a,UpdateBaseViewConfigCommand as _0x189b25,ValidateBaseFormulaCommand as _0x4ec7a3,buildBaseHierarchyIndex as _0x4aa1d4,canEditBaseTargets as _0x1c997c,copyBaseTableSnapshot as _0x4ca2a4,createUniqueBaseTableName as _0x242756,ensureBaseTableCellLayout as _0x240454,getActiveBaseHierarchyFieldIds as _0x1d243e,getBaseCellValue as _0x43d937,getBaseFieldPermissionObjectId as _0x12d38e,getBaseFormulaTableName as _0x7344c5,getBaseHierarchyDeletePromotions as _0x38e02b,getBasePermissionValue as _0x135be6,getBaseRecordPermissionObjectId as _0x48675a,getBaseTablePermissionObjectId as _0x50fcb8,getBaseViewPermissionObjectId as _0x3f6a97,getRecordLinkFieldConfig as _0x34bd1d,matchesBaseCondition as _0x17312a,parseRecordLinkIds as _0x46817c,resolveBaseHierarchyFieldId as _0x1d8e8c,resolveBaseRangeHierarchyPatches as _0x28902e,searchBaseTable as _0x4f0889,serializeRecordLinkIds as _0x12a947,validateBaseHierarchyRecordCreations as _0x3474ef,validateBaseHierarchyRecordPatches as _0x3495d4,validateBaseTableName as _0x17aac3,validateRecordLinkValue as _0x102940}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x2737b3,BaseConditionalColorOperator as _0x47fd54,BaseConditionalColorTarget as _0x3ea519,BaseConditionalDateMode as _0x756c91,BaseFieldType as _0x334db4,BaseFilterConjunction as _0x5a09a5,BaseFilterOperator as _0xf13532,BaseHierarchyInvalidReason as _0x125b1b,BaseRecordLinkRole as _0x50fcc1,BaseSortDirection as _0x42481e,BaseViewType as _0x2dedc2,CanceledError as _0x3f6a5c,ICommandService as _0x35296b,IPermissionService as _0x5ad99d,IResourceLoaderService as _0x180241,ImageSourceType as _0x3afc43,Inject as _0x18fc25,Injector as _0x7ee076,Tools as _0x537bdf,UniverInstanceType as _0xfc0289,createDefaultBaseTableSnapshot as _0x13ff92,generateRandomId as _0x4f9ee0}from'@univerjs/core';import*as _0x37c8e5 from'@univerjs/core/facade';import{FBaseInitialable as _0x3f2488,FEnum as _0x3c7e49,FEventName as _0x3e96b9,FUniver as _0x13f4e8}from'@univerjs/core/facade';import{UnitAction as _0x5323a9}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x5c4e67}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x3910b6,_0x5b70e7,_0xa0c3e1){const _0x1f0b13=_0x4bdd;this['_unitId']=_0x3910b6,this[_0x1f0b13(0x27d)]=_0x5b70e7,this['_permissionService']=_0xa0c3e1;}async[_0x42cb2d(0x2d6)](_0x59d711){const _0x6e2eeb=_0x42cb2d;return this['_commandService'][_0x6e2eeb(0x237)](_0x1648f2['id'],{'unitId':this[_0x6e2eeb(0x29b)],'changes':_0x59d711});}async[_0x42cb2d(0x2b9)](_0x589d31,_0x13fba5){const _0x614b72=_0x42cb2d;await this['_commandService'][_0x614b72(0x237)](_0x28b4ab['id'],{'unitId':this[_0x614b72(0x29b)],'objectId':this[_0x614b72(0x29b)],'action':_0x589d31,'value':_0x13fba5});}[_0x42cb2d(0x2c0)](_0x16fb9c){const _0x421e22=_0x42cb2d;return _0x135be6(this['_permissionService'],this[_0x421e22(0x29b)],this['_unitId'],_0x16fb9c);}async[_0x42cb2d(0x206)](_0x4bf1e5=!0x0){const _0x375b79=_0x42cb2d;await this[_0x375b79(0x27d)]['executeCommand'](_0x28b4ab['id'],{'unitId':this[_0x375b79(0x29b)],'objectId':this[_0x375b79(0x29b)],'action':_0x5323a9[_0x375b79(0x268)],'value':_0x4bf1e5});}async[_0x42cb2d(0x28a)](){const _0x155dff=_0x42cb2d;await this['_commandService'][_0x155dff(0x237)](_0x28b4ab['id'],{'unitId':this[_0x155dff(0x29b)],'objectId':this[_0x155dff(0x29b)],'action':_0x5323a9['Edit'],'value':!0x1});}['canEdit'](){const _0x53a307=_0x42cb2d;return _0x135be6(this[_0x53a307(0x2a5)],this['_unitId'],this[_0x53a307(0x29b)],_0x5323a9[_0x53a307(0x268)]);}},L=class{constructor(_0x57b5db,_0x13a82e,_0x63a8e1,_0x1702f8,_0x346dbb){const _0x4dea79=_0x42cb2d;this[_0x4dea79(0x29b)]=_0x57b5db,this[_0x4dea79(0x246)]=_0x13a82e,this[_0x4dea79(0x2b2)]=_0x63a8e1,this[_0x4dea79(0x27d)]=_0x1702f8,this[_0x4dea79(0x2a5)]=_0x346dbb;}async['setEditable'](_0x5d6b9f=!0x0){const _0x5881f2=_0x42cb2d;await this[_0x5881f2(0x27d)][_0x5881f2(0x237)](_0x28b4ab['id'],{'unitId':this['_unitId'],'objectId':this['_objectId'],'action':_0x5323a9[_0x5881f2(0x268)],'value':_0x5d6b9f});}async[_0x42cb2d(0x28a)](){const _0x496985=_0x42cb2d;await this[_0x496985(0x27d)][_0x496985(0x237)](_0x28b4ab['id'],{'unitId':this[_0x496985(0x29b)],'objectId':this[_0x496985(0x246)],'action':_0x5323a9[_0x496985(0x268)],'value':!0x1});}['canEdit'](){const _0xff5cf3=_0x42cb2d;return _0x1c997c(this[_0xff5cf3(0x2a5)],this['_unitId'],[...this[_0xff5cf3(0x2b2)],this['_objectId']]);}};function R(_0x13ad27,_0x2cfb21){return function(_0x2de135,_0x4ae055){_0x2cfb21(_0x2de135,_0x4ae055,_0x13ad27);};}function z(_0x82fd3e,_0x20301b,_0x57aef1,_0x1e653a){const _0x2d579f=_0x42cb2d;var _0x3aefb9=arguments[_0x2d579f(0x1b9)],_0x1703da=_0x3aefb9<0x3?_0x20301b:_0x1e653a===null?_0x1e653a=Object[_0x2d579f(0x29a)](_0x20301b,_0x57aef1):_0x1e653a,_0x5dcf95;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x2d579f(0x262))_0x1703da=Reflect[_0x2d579f(0x289)](_0x82fd3e,_0x20301b,_0x57aef1,_0x1e653a);else{for(var _0x1a7e0d=_0x82fd3e[_0x2d579f(0x1b9)]-0x1;_0x1a7e0d>=0x0;_0x1a7e0d--)(_0x5dcf95=_0x82fd3e[_0x1a7e0d])&&(_0x1703da=(_0x3aefb9<0x3?_0x5dcf95(_0x1703da):_0x3aefb9>0x3?_0x5dcf95(_0x20301b,_0x57aef1,_0x1703da):_0x5dcf95(_0x20301b,_0x57aef1))||_0x1703da);}return _0x3aefb9>0x3&&_0x1703da&&Object[_0x2d579f(0x187)](_0x20301b,_0x57aef1,_0x1703da),_0x1703da;}let B=class{constructor(_0x31e807,_0x16aed2,_0x4da8b3,_0x3d1f8e,_0x379fba){const _0x3df6af=_0x42cb2d;this['_base']=_0x31e807,this[_0x3df6af(0x1f9)]=_0x16aed2,this[_0x3df6af(0x29f)]=_0x4da8b3,this[_0x3df6af(0x27d)]=_0x3d1f8e,this[_0x3df6af(0x2a5)]=_0x379fba;}[_0x42cb2d(0x25a)](){return this['_fieldId'];}[_0x42cb2d(0x274)](){const _0x5a2ca5=_0x42cb2d;let _0x1bcd16=this[_0x5a2ca5(0x1f9)][_0x5a2ca5(0x25a)]();return new L(this[_0x5a2ca5(0x204)][_0x5a2ca5(0x25a)](),_0x12d38e(_0x1bcd16,this[_0x5a2ca5(0x29f)]),[_0x50fcb8(_0x1bcd16)],this[_0x5a2ca5(0x27d)],this[_0x5a2ca5(0x2a5)]);}['getField'](){const _0x549325=_0x42cb2d;return this[_0x549325(0x23f)]();}[_0x42cb2d(0x214)](){const _0x2b027d=_0x42cb2d;return this[_0x2b027d(0x23f)]()[_0x2b027d(0x1e8)];}[_0x42cb2d(0x1ae)](){return this['_getField']()['type'];}['getConfig'](){const _0x584239=_0x42cb2d;return this[_0x584239(0x23f)]()[_0x584239(0x22b)];}['getDefaultValue'](){const _0x174744=_0x42cb2d;return this[_0x174744(0x23f)]()['defaultValue'];}[_0x42cb2d(0x2d7)](){const _0x2e44f1=_0x42cb2d;return this[_0x2e44f1(0x23f)]()['description'];}[_0x42cb2d(0x20e)](){const _0x3ace17=_0x42cb2d;return!!this[_0x3ace17(0x23f)]()['readonly'];}[_0x42cb2d(0x174)](_0x58361e){const _0x40c0ab=_0x42cb2d;return this[_0x40c0ab(0x244)]({'name':_0x58361e});}[_0x42cb2d(0x285)](_0x3518aa,_0x4f5fea){const _0x280585=_0x42cb2d;return this[_0x280585(0x244)]({'config':_0x3518aa},_0x4f5fea);}['setDefaultValue'](_0x55d1cc){return this['update']({'defaultValue':_0x55d1cc});}['update'](_0x3cdc5a,_0x16092b){const _0x445f89=_0x42cb2d;let _0x51b644=this[_0x445f89(0x23f)]()[_0x445f89(0x235)];return(_0x3cdc5a['type']??_0x51b644)===_0x334db4[_0x445f89(0x1ca)]&&(Object['prototype'][_0x445f89(0x222)][_0x445f89(0x1bc)](_0x3cdc5a,'config')||_0x3cdc5a[_0x445f89(0x235)]===_0x334db4[_0x445f89(0x1ca)])&&!this[_0x445f89(0x27e)](_0x16092b)?!0x1:this[_0x445f89(0x27d)][_0x445f89(0x1ac)](_0x1ed29e['id'],{'unitId':this[_0x445f89(0x204)][_0x445f89(0x25a)](),'tableId':this['_table'][_0x445f89(0x25a)](),'fieldId':this[_0x445f89(0x29f)],'patch':_0x3cdc5a});}[_0x42cb2d(0x1f6)](_0x5ed279,_0x12f0bd={},_0x5717b5){const _0x5bccdc=_0x42cb2d;return _0x5ed279===_0x334db4[_0x5bccdc(0x1ca)]&&!this[_0x5bccdc(0x27e)](_0x5717b5)?!0x1:this[_0x5bccdc(0x27d)][_0x5bccdc(0x1ac)](_0x1d22f3['id'],{'unitId':this['_base'][_0x5bccdc(0x25a)](),'tableId':this[_0x5bccdc(0x1f9)]['getId'](),'fieldId':this[_0x5bccdc(0x29f)],'input':{'type':_0x5ed279,'config':_0x12f0bd}});}['delete'](){const _0x2186df=_0x42cb2d;return this['_commandService'][_0x2186df(0x1ac)](_0x14a5d6['id'],{'unitId':this['_base'][_0x2186df(0x25a)](),'tableId':this[_0x2186df(0x1f9)][_0x2186df(0x25a)](),'fieldId':this['_fieldId']});}[_0x42cb2d(0x181)](_0x141b6b){const _0x280496=_0x42cb2d;return this['_commandService']['syncExecuteCommand'](_0x249bdd['id'],{'unitId':this[_0x280496(0x204)][_0x280496(0x25a)](),'tableId':this[_0x280496(0x1f9)][_0x280496(0x25a)](),'fieldId':this[_0x280496(0x29f)],'target':_0x141b6b});}[_0x42cb2d(0x23f)](){const _0x395b99=_0x42cb2d;let _0x1d285d=this['_table'][_0x395b99(0x1d3)]()['fields'][this[_0x395b99(0x29f)]];if(!_0x1d285d)throw Error(_0x395b99(0x18c)+this[_0x395b99(0x29f)]+_0x395b99(0x209));return _0x1d285d;}[_0x42cb2d(0x27e)](_0x513168){const _0x1d1eca=_0x42cb2d;if(!_0x513168||!Array[_0x1d1eca(0x2b0)](_0x513168[_0x1d1eca(0x26d)]))return console[_0x1d1eca(0x197)](_0x1d1eca(0x2a6)),!0x1;if(_0x513168['externalReferences'][_0x1d1eca(0x1b9)]===0x0)return!0x0;let _0x2bb2dd=this[_0x1d1eca(0x27d)][_0x1d1eca(0x1ac)](_0x5c4e67['id'],{'unitId':this[_0x1d1eca(0x204)][_0x1d1eca(0x25a)](),'references':_0x513168[_0x1d1eca(0x26d)]});return _0x2bb2dd||console['warn'](_0x1d1eca(0x1b2)),_0x2bb2dd;}};B=z([R(0x3,_0x35296b),R(0x4,_0x5ad99d)],B);let ot=function(_0x503eed){const _0x301aa8=_0x42cb2d;return _0x503eed['Id']='id',_0x503eed[_0x301aa8(0x223)]=_0x301aa8(0x1e8),_0x503eed[_0x301aa8(0x27c)]=_0x301aa8(0x1c6),_0x503eed;}({});function _0x1281(){const _0x2ed703=['orderKey','getFieldById','getConditionalColorRules','_initBaseBeforeEvents','Facade','_getAttachmentField','setSort','createInstance','Invalid\x20attachment\x20at\x20index\x20','filter','field','mimeType','hidden','BaseSortDirection','getAllUnitsForType','getProjection','get','startColumn','_viewId','getId','sort','_resolveRecordIds','updatedAt','deleteTable','BaseRecordLinkRole','BaseTableCellValueChanged','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','function','parentRecordId','BaseEventSource','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','getPrimaryFieldId','7837580CfJYRI','Edit','table','_projectionService','object','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','externalReferences','getDescendants','_getView',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','tableOrder','UUID','_initialize','getPermission','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','map','Calendar','Failed\x20to\x20add\x20records','multiple','setAttachments','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','Auto','_commandService','_writeFormulaExternalReferences','startRow','1620866WqZWjy','[FBaseRange]:\x20table\x20does\x20not\x20exist.','entries','addConditionalColorRule','endRow','setConfig','Duplicate\x20Base\x20field\x20name:\x20','test','getColumn','decorate','setReadOnly','from','has','fields','UNIVER_BASE','3313420oqWaHx','views','getRecords','_tableId',',\x20max\x20columns:\x20','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','getSnapshot','every','Unsupported\x20Base\x20field\x20type\x20\x22','cancel',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','getOwnPropertyDescriptor','_unitId','fieldOrder','getParent','RecordLink','_fieldId','_getHierarchyIndex','createView','deleteConditionalColorRule','getGroup','clearConditionalColorRules','_permissionService','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','BaseHierarchyErrorCode','_initBaseAfterEvents','fieldSettings','getChildren','Gantt','getRecord','now','recordOrder','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isArray','value','_parentObjectIds','_collectDescendantIds','_baseUnitId','source','_getFieldIds','BeforeBaseTableRecordCreate','getActiveBase','setPoint','thumbnail','offset','getRange','Grid','getValues','BaseFieldKeyEnum','getPoint','rowId','[FRecord]:\x20field\x20\x22','onCommandExecuted','_getRecordLinkField','setLinkedRecordIds','BaseFilterConjunction','hierarchyChanges','prototype','fireEvent','Remote','delete','BaseTableCreated','slice','duplicate','setFilter','viewId','getDataRange','records','getViewById','[FRecord]:\x20record\x20\x22','custom','setObjectPermissions','getDescription','stringify','Kanban','setName','getPrimaryField','\x22\x20is\x20not\x20an\x20Attachment\x20field.','targetTableId','symbol','770206nMOnMA','BeforeBaseTableViewCreate','Failed\x20to\x20create\x20view\x20\x22','BaseViewType','direction','BaseHierarchyInvalidReason','[FBaseRange]:\x20values\x20size\x20','_univerInstanceService','move','width','7esYWzC','714546BmNQCm','_getRecord','\x22:\x20expected\x20an\x20array.','defineProperty','subtreeHeightByRecordId','unitId','readonly','3WzkOHy','[FField]:\x20field\x20\x22','disposeWithMe','URL','BaseTableFieldCreated','max','BeforeBaseTableCreate','recordId','string','createdAt','_baseTableId','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','warn','Clear','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','deleteRecords','includeRecords','regenerateViewIds','\x22\x20must\x20be\x20a\x20non-empty\x20string.','getAttachments','getNumColumns','Delete','BaseTableRecordCreated','addField','clear','getHierarchyFieldId',':\x20expected\x20an\x20object.','getSort','getCurrentUnitOfType','[FRecord]:\x20RecordLink\x20field\x20\x22','removeLinkedRecord','getTables','afterFieldId','syncExecuteCommand','AND','getType','tables','moveField',':\x20\x22','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','_range','_inject','\x22\x20has\x20invalid\x20config.','Invalid\x20Base\x20formula.','[FTable]:\x20table\x20\x22','view','length','registerEventHandler','Set','call','_getHierarchyEventContext','index','tableId','height','childrenByParentId','caseSensitive','addLinkedRecord','duplicateTable','BASE64','auto','default','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','commonExtend','Formula','deepClone','primaryFieldName','trim','boolean','BaseConditionalColorOperator','indexOf','getUnit','updateConfig','getTable','_getTable','insertTable','endColumn','reason','Failed\x20to\x20create\x20table\x20\x22','getNumRows','fieldKey','fieldIds','_fireBeforeHierarchyChange','push','addRecords','setFieldVisible','getUnitId','record','getFieldSettings','getRecordById','parentByRecordId','visibleCardFieldIds','[FRecord]:\x20invalid\x20RecordLink\x20value.','72VtxUAh','name','\x20exceeds\x20range\x20size\x20','Attachment','localeCompare','\x20for\x20field\x20\x22','deleteProperty','getViewByName','BaseFilterOperator','1455546eMBpzN','getFilter','\x20in\x20field\x20\x22','[FBase]:\x20invalid\x20table\x20name\x20\x22','BeforeBaseHierarchyChange','size','changeType','setConditionalColorRules','iterator','_table','[FBase]:\x20table\x20\x22','getLinkedRecordIds','Base\x20field\x20not\x20found:\x20','operator','params','matches','BaseHierarchyChanged','_injector','_prepareFormulaFieldReferences','BeforeBaseTableCellValueChange','_base','extend','setEditable','invalid','getFormulaName','\x22\x20does\x20not\x20exist.','includes','getView','primaryFieldId','recordIds','isReadonly','_assertInBounds','getTableId','getBase','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','getValue','getName','130040qWidrw',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','save','description','getRow','valid','getSchema','fieldId','base','values','setValue','find','getTableByName','hasOwnProperty','Name','getFields','setValues','number','\x22.\x20','beforeCommandExecuted','BaseTableViewCreated','BaseFieldType','config','viewOrder','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','getBaseId','_recordId','flatMap','Event','BeforeBaseTableFieldCreate','[FView]:\x20view\x20\x22','_resourceLoaderService','type','formula','executeCommand','FBase','notMatches','Gallery','setGroup','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','limit','group','_getField','rows','createUnit','getTableById','system','update','conditions','_objectId'];_0x1281=function(){return _0x2ed703;};return _0x1281();}function V(_0x26a73b){const _0xe86933=_0x42cb2d;return!!(_0x26a73b&&_0x26a73b[_0xe86933(0x243)]!==!0x0&&_0x26a73b[_0xe86933(0x235)]!==_0x334db4['RecordId']);}function H(_0x36ec40,_0x4918c3,_0x41457f='id'){const _0x1b13d2=_0x42cb2d;if(!_0x4918c3)return{};let _0x171423={};return Object[_0x1b13d2(0x282)](_0x4918c3)['forEach'](([_0x13e1d5,_0x54f0e7])=>{const _0x2e498a=_0x1b13d2;let _0x35073c=ct(_0x36ec40,_0x13e1d5,_0x41457f);_0x171423[_0x35073c]=st(_0x36ec40[_0x2e498a(0x28d)][_0x35073c],_0x54f0e7);}),_0x171423;}function st(_0x5d294b,_0x4f74bd){const _0x1234ab=_0x42cb2d;if((_0x5d294b==null?void 0x0:_0x5d294b[_0x1234ab(0x235)])!==_0x334db4[_0x1234ab(0x1ea)]||_0x4f74bd==null)return _0x4f74bd;if(!Array[_0x1234ab(0x2b0)](_0x4f74bd))throw TypeError(_0x1234ab(0x265)+_0x5d294b['name']+_0x1234ab(0x186));return _0x4f74bd[_0x1234ab(0x276)]((_0x28f947,_0x13a1b5)=>lt(_0x5d294b,_0x28f947,_0x13a1b5));}function ct(_0x2bc7bc,_0x4bff9c,_0x30126f){const _0x2f42f2=_0x42cb2d;if(_0x30126f==='id'||_0x30126f===_0x2f42f2(0x1c6)&&_0x2bc7bc[_0x2f42f2(0x28d)][_0x4bff9c])return _0x4bff9c;let _0x25147d=Object['values'](_0x2bc7bc['fields'])[_0x2f42f2(0x250)](_0x306172=>_0x306172[_0x2f42f2(0x1e8)]===_0x4bff9c);if(_0x25147d[_0x2f42f2(0x1b9)]===0x1)return _0x25147d[0x0]['id'];throw _0x25147d[_0x2f42f2(0x1b9)]>0x1?Error(_0x2f42f2(0x286)+_0x4bff9c):Error(_0x2f42f2(0x1fc)+_0x4bff9c);}function lt(_0x45c8b7,_0x631533,_0x33f90f){const _0x33b2c0=_0x42cb2d;let _0x365938=_0x33b2c0(0x24f)+_0x33f90f+_0x33b2c0(0x1ec)+_0x45c8b7[_0x33b2c0(0x1e8)]+'\x22';if(!ft(_0x631533))throw TypeError(_0x365938+_0x33b2c0(0x1a5));if('url'in _0x631533)throw TypeError(_0x365938+_0x33b2c0(0x216));if('type'in _0x631533)throw TypeError(_0x365938+_0x33b2c0(0x270));let _0x587bbf=U(_0x631533['id'],_0x365938,'id'),_0xecfbd=U(_0x631533[_0x33b2c0(0x1e8)],_0x365938,_0x33b2c0(0x1e8)),_0x387043=U(_0x631533[_0x33b2c0(0x2b5)],_0x365938,_0x33b2c0(0x2b5));return{'id':_0x587bbf,'name':_0xecfbd,'source':_0x387043,'sourceType':ut(_0x631533['sourceType'],_0x387043,_0x365938),...dt(_0x631533,_0x33b2c0(0x252),_0x365938),...W(_0x631533,_0x33b2c0(0x1f5),_0x365938),...W(_0x631533,_0x33b2c0(0x182),_0x365938),...W(_0x631533,_0x33b2c0(0x1c0),_0x365938),...dt(_0x631533,_0x33b2c0(0x2ba),_0x365938)};}function ut(_0x53a4ff,_0x38c863,_0x2b9c4a){const _0x4bd59c=_0x42cb2d;if(_0x53a4ff==null)return _0x38c863['startsWith']('data:')?_0x3afc43[_0x4bd59c(0x1c5)]:_0x3afc43[_0x4bd59c(0x18e)];if(_0x53a4ff===_0x3afc43[_0x4bd59c(0x18e)]||_0x53a4ff===_0x3afc43[_0x4bd59c(0x272)]||_0x53a4ff===_0x3afc43[_0x4bd59c(0x1c5)])return _0x53a4ff;throw TypeError(_0x2b9c4a+_0x4bd59c(0x299));}function U(_0x472949,_0x48a52f,_0x30697e){const _0x1ab262=_0x42cb2d;if(typeof _0x472949!=_0x1ab262(0x193)||!_0x472949[_0x1ab262(0x1cd)]())throw TypeError(_0x48a52f+':\x20\x22'+_0x30697e+_0x1ab262(0x19d));return _0x472949;}function dt(_0x3ca3c9,_0x2e9c43,_0x422a29){const _0x1244a2=_0x42cb2d;let _0x232bd6=_0x3ca3c9[_0x2e9c43];if(_0x232bd6==null)return{};if(typeof _0x232bd6!='string'||!_0x232bd6[_0x1244a2(0x1cd)]())throw TypeError(_0x422a29+':\x20\x22'+_0x2e9c43+_0x1244a2(0x23c));return{[_0x2e9c43]:_0x232bd6};}function W(_0x3eafce,_0x52caf9,_0x45afba){const _0x58ae4f=_0x42cb2d;let _0xba559c=_0x3eafce[_0x52caf9];if(_0xba559c==null)return{};if(typeof _0xba559c!=_0x58ae4f(0x226)||!Number['isFinite'](_0xba559c)||_0xba559c<0x0)throw TypeError(_0x45afba+_0x58ae4f(0x1b1)+_0x52caf9+_0x58ae4f(0x212));return{[_0x52caf9]:_0xba559c};}function ft(_0x28a42e){const _0x1fc442=_0x42cb2d;return typeof _0x28a42e==_0x1fc442(0x26b)&&!!_0x28a42e&&!Array[_0x1fc442(0x2b0)](_0x28a42e);}var G;let K=G=class{constructor(_0x2e717f,_0x1547af,_0x503659,_0x339bc1,_0x18ffbc){const _0xc91a58=_0x42cb2d;this[_0xc91a58(0x204)]=_0x2e717f,this[_0xc91a58(0x1f9)]=_0x1547af,this[_0xc91a58(0x1b3)]=_0x503659,this[_0xc91a58(0x1b4)]=_0x339bc1,this[_0xc91a58(0x27d)]=_0x18ffbc,this[_0xc91a58(0x20f)]();}[_0x42cb2d(0x22e)](){const _0x5b8482=_0x42cb2d;return this['_base'][_0x5b8482(0x25a)]();}[_0x42cb2d(0x210)](){const _0x4c4042=_0x42cb2d;return this[_0x4c4042(0x1f9)][_0x4c4042(0x25a)]();}[_0x42cb2d(0x2bc)](){const _0x208af5=_0x42cb2d;return{...this[_0x208af5(0x1b3)]};}[_0x42cb2d(0x219)](){const _0x4cede8=_0x42cb2d;return this[_0x4cede8(0x1b3)][_0x4cede8(0x27f)];}[_0x42cb2d(0x288)](){const _0x577828=_0x42cb2d;return this[_0x577828(0x1b3)][_0x577828(0x258)];}['getNumRows'](){const _0x2ca9d3=_0x42cb2d;return this[_0x2ca9d3(0x1b3)][_0x2ca9d3(0x284)]-this[_0x2ca9d3(0x1b3)]['startRow']+0x1;}['getNumColumns'](){const _0x3dd349=_0x42cb2d;return this['_range'][_0x3dd349(0x1d6)]-this['_range']['startColumn']+0x1;}[_0x42cb2d(0x2be)](){const _0x1fca08=_0x42cb2d;let _0x2341e8=this[_0x1fca08(0x1d4)](),_0x42bbe3=this[_0x1fca08(0x2b6)](_0x2341e8),_0x54569d=[];for(let _0x5d74ee=this[_0x1fca08(0x1b3)]['startRow'];_0x5d74ee<=this[_0x1fca08(0x1b3)]['endRow'];_0x5d74ee++){var _0x4d5205;let _0x2b8cb8=(_0x4d5205=_0x2341e8[_0x1fca08(0x2c1)])==null?void 0x0:_0x4d5205[_0x5d74ee],_0x20a338=[];for(let _0x107f5e=this[_0x1fca08(0x1b3)][_0x1fca08(0x258)];_0x107f5e<=this[_0x1fca08(0x1b3)][_0x1fca08(0x1d6)];_0x107f5e++){let _0x17a9e6=_0x42bbe3[_0x107f5e];_0x20a338[_0x1fca08(0x1dd)](_0x2b8cb8&&_0x17a9e6?_0x43d937(_0x2341e8,_0x2b8cb8,_0x17a9e6):null);}_0x54569d[_0x1fca08(0x1dd)](_0x20a338);}return _0x54569d;}['getValue'](){var _0x28e6b0;return((_0x28e6b0=this['getValues']()[0x0])==null?void 0x0:_0x28e6b0[0x0])??null;}[_0x42cb2d(0x21f)](_0x19bbb0){const _0x48d597=_0x42cb2d;return this[_0x48d597(0x225)]([[_0x19bbb0]]);}[_0x42cb2d(0x225)](_0x4d13df){const _0xa3d1f2=_0x42cb2d;let _0x3f10b5=this[_0xa3d1f2(0x1d9)](),_0x1476a5=this[_0xa3d1f2(0x19f)]();if(_0x4d13df[_0xa3d1f2(0x1b9)]>_0x3f10b5||_0x4d13df['some'](_0x4f3963=>_0x4f3963[_0xa3d1f2(0x1b9)]>_0x1476a5)){var _0x1e3ae4;throw Error(_0xa3d1f2(0x17f)+_0x4d13df['length']+'x'+(((_0x1e3ae4=_0x4d13df[0x0])==null?void 0x0:_0x1e3ae4['length'])??0x0)+_0xa3d1f2(0x1e9)+_0x3f10b5+'x'+_0x1476a5+'.');}let _0x464d3e=this[_0xa3d1f2(0x1d4)](),_0x35ba30=this['_getFieldIds'](_0x464d3e),_0x1414d9=_0x4d13df[_0xa3d1f2(0x230)]((_0x195372,_0x597d9b)=>_0x195372[_0xa3d1f2(0x276)]((_0x525f7a,_0x18cdbc)=>{const _0x43811d=_0xa3d1f2;var _0x1d1a87;let _0xf0153d=this['_range'][_0x43811d(0x27f)]+_0x597d9b,_0x1ee2de=_0x35ba30[this[_0x43811d(0x1b3)][_0x43811d(0x258)]+_0x18cdbc],_0x2bcf72=(_0x1d1a87=_0x464d3e[_0x43811d(0x2c1)])==null?void 0x0:_0x1d1a87[_0xf0153d];if(!_0x1ee2de||!_0x2bcf72)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x2bcf72,'fieldId':_0x1ee2de,'value':_0x525f7a};}));return this['_commandService'][_0xa3d1f2(0x1ac)](_0x1fa9ec['id'],{'unitId':this[_0xa3d1f2(0x204)][_0xa3d1f2(0x25a)](),'tableId':this['_table'][_0xa3d1f2(0x25a)](),'patches':_0x1414d9,'source':_0x220938[_0xa3d1f2(0x24b)]});}[_0x42cb2d(0x1a3)](){const _0x4ab3f0=_0x42cb2d;return this['setValues'](Array[_0x4ab3f0(0x28b)]({'length':this['getNumRows']()},()=>Array[_0x4ab3f0(0x28b)]({'length':this[_0x4ab3f0(0x19f)]()},()=>null)));}['offset'](_0x6ddc23,_0x4d03c1,_0x4fc2a5=this['getNumRows'](),_0x3103d=this[_0x42cb2d(0x19f)]()){const _0x1199a7=_0x42cb2d;return this['_inject']['createInstance'](G,this['_base'],this['_table'],{'startRow':this[_0x1199a7(0x1b3)][_0x1199a7(0x27f)]+_0x6ddc23,'startColumn':this[_0x1199a7(0x1b3)][_0x1199a7(0x258)]+_0x4d03c1,'endRow':this[_0x1199a7(0x1b3)]['startRow']+_0x6ddc23+_0x4fc2a5-0x1,'endColumn':this[_0x1199a7(0x1b3)][_0x1199a7(0x258)]+_0x4d03c1+_0x3103d-0x1},this['_inject']);}[_0x42cb2d(0x1d4)](){const _0x342bb1=_0x42cb2d;let _0x2bed35=this['_table'][_0x342bb1(0x1d3)]();if(!_0x2bed35)throw Error(_0x342bb1(0x281));return _0x240454(_0x2bed35);}[_0x42cb2d(0x20f)](){const _0x11ffff=_0x42cb2d;var _0x40bbc4;let _0x301c6f=this[_0x11ffff(0x1d4)](),_0x3daee7=((_0x40bbc4=_0x301c6f[_0x11ffff(0x2ae)])==null?void 0x0:_0x40bbc4[_0x11ffff(0x1b9)])??0x0,_0x363cbc=this[_0x11ffff(0x2b6)](_0x301c6f)[_0x11ffff(0x1b9)];if(this[_0x11ffff(0x1b3)]['startRow']<0x0||this['_range'][_0x11ffff(0x258)]<0x0||this['_range'][_0x11ffff(0x284)]<this[_0x11ffff(0x1b3)][_0x11ffff(0x27f)]||this['_range'][_0x11ffff(0x1d6)]<this['_range'][_0x11ffff(0x258)]||this[_0x11ffff(0x1b3)][_0x11ffff(0x284)]>=Math['max'](_0x3daee7,0x1)||this['_range'][_0x11ffff(0x1d6)]>=Math[_0x11ffff(0x190)](_0x363cbc,0x1))throw Error(_0x11ffff(0x26c)+_0x3daee7+_0x11ffff(0x293)+_0x363cbc+',\x20range:\x20'+JSON[_0x11ffff(0x172)](this[_0x11ffff(0x1b3)])+'.');}[_0x42cb2d(0x2b6)](_0x38f945){const _0x47ebd1=_0x42cb2d;return _0x38f945[_0x47ebd1(0x29c)][_0x47ebd1(0x250)](_0x535059=>V(_0x38f945[_0x47ebd1(0x28d)][_0x535059]));}};K=G=z([R(0x4,_0x35296b)],K);function q(_0x1baa2b){'@babel/helpers - typeof';const _0xdf8382=_0x42cb2d;return q=typeof Symbol==_0xdf8382(0x262)&&typeof Symbol[_0xdf8382(0x1f8)]==_0xdf8382(0x178)?function(_0x1c4e37){return typeof _0x1c4e37;}:function(_0x238500){const _0x50a878=_0xdf8382;return _0x238500&&typeof Symbol==_0x50a878(0x262)&&_0x238500['constructor']===Symbol&&_0x238500!==Symbol[_0x50a878(0x2c8)]?_0x50a878(0x178):typeof _0x238500;},q(_0x1baa2b);}function pt(_0x34d75e,_0x198ddb){const _0x41e2d9=_0x42cb2d;if(q(_0x34d75e)!=_0x41e2d9(0x26b)||!_0x34d75e)return _0x34d75e;var _0x13c8ea=_0x34d75e[Symbol['toPrimitive']];if(_0x13c8ea!==void 0x0){var _0x2224f5=_0x13c8ea[_0x41e2d9(0x1bc)](_0x34d75e,_0x198ddb||_0x41e2d9(0x1c7));if(q(_0x2224f5)!=_0x41e2d9(0x26b))return _0x2224f5;throw TypeError(_0x41e2d9(0x2af));}return(_0x198ddb===_0x41e2d9(0x193)?String:Number)(_0x34d75e);}function mt(_0x280636){const _0x4a038f=_0x42cb2d;var _0x4f3370=pt(_0x280636,_0x4a038f(0x193));return q(_0x4f3370)==_0x4a038f(0x178)?_0x4f3370:_0x4f3370+'';}function ht(_0x5c9347,_0x2361b8,_0x2807c1){const _0x526df3=_0x42cb2d;return(_0x2361b8=mt(_0x2361b8))in _0x5c9347?Object[_0x526df3(0x187)](_0x5c9347,_0x2361b8,{'value':_0x2807c1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c9347[_0x2361b8]=_0x2807c1,_0x5c9347;}var J;let Y=J=class extends _0x3f2488{constructor(_0x638bc7,_0x3637e5,_0x189404,_0x5341e7,_0x46494d,_0x43c28e){const _0x225267=_0x42cb2d;super(_0x5341e7),this[_0x225267(0x204)]=_0x638bc7,this[_0x225267(0x1f9)]=_0x3637e5,this[_0x225267(0x22f)]=_0x189404,this[_0x225267(0x201)]=_0x5341e7,this[_0x225267(0x27d)]=_0x46494d,this[_0x225267(0x2a5)]=_0x43c28e,ht(this,_0x225267(0x2b4),void 0x0),ht(this,_0x225267(0x195),void 0x0),this[_0x225267(0x2b4)]=_0x638bc7[_0x225267(0x25a)](),this['_baseTableId']=_0x3637e5['getId']();}['getBaseFacade'](){const _0x15b713=_0x42cb2d;return this[_0x15b713(0x204)];}['getTableFacade'](){const _0x2af711=_0x42cb2d;return this[_0x2af711(0x1f9)];}['getId'](){const _0x302794=_0x42cb2d;return this[_0x302794(0x22f)];}[_0x42cb2d(0x274)](){const _0x2ff90f=_0x42cb2d;let _0x3b7151=this['_table']['getId']();return new L(this[_0x2ff90f(0x204)][_0x2ff90f(0x25a)](),_0x48675a(_0x3b7151,this[_0x2ff90f(0x22f)]),[_0x50fcb8(_0x3b7151)],this[_0x2ff90f(0x27d)],this[_0x2ff90f(0x2a5)]);}[_0x42cb2d(0x2ac)](){const _0x5357b8=_0x42cb2d;return{...this[_0x5357b8(0x185)](),'values':this[_0x5357b8(0x2be)]()};}[_0x42cb2d(0x213)](_0x59fbf5){const _0x36f075=_0x42cb2d;return V(this[_0x36f075(0x1f9)][_0x36f075(0x1d3)]()[_0x36f075(0x28d)][_0x59fbf5])?this[_0x36f075(0x185)]()[_0x36f075(0x21e)][_0x59fbf5]??null:null;}[_0x42cb2d(0x2be)](){const _0x246cde=_0x42cb2d;let _0x1cdaae=this[_0x246cde(0x1f9)]['getTable']();return Object['fromEntries'](Object['entries'](this[_0x246cde(0x185)]()['values'])[_0x246cde(0x250)](([_0x56b4c4])=>V(_0x1cdaae[_0x246cde(0x28d)][_0x56b4c4])));}[_0x42cb2d(0x21f)](_0x402d69,_0x290e9f){const _0x1dc3b6=_0x42cb2d;let _0x5485b3=this[_0x1dc3b6(0x1f9)][_0x1dc3b6(0x1d3)]()[_0x1dc3b6(0x28d)][_0x402d69];return this[_0x1dc3b6(0x27d)][_0x1dc3b6(0x1ac)](_0x50c883['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x1dc3b6(0x1f9)][_0x1dc3b6(0x25a)](),'recordId':this[_0x1dc3b6(0x22f)],'fieldId':_0x402d69,'value':st(_0x5485b3,_0x290e9f),'source':_0x220938[_0x1dc3b6(0x24b)]});}[_0x42cb2d(0x27a)](_0x53d43f,_0x2c87cf){const _0x165ea0=_0x42cb2d;return this[_0x165ea0(0x21f)](_0x53d43f,_0x2c87cf[_0x165ea0(0x276)](_0x10f1d3=>({..._0x10f1d3})));}[_0x42cb2d(0x19e)](_0x67fa0b){const _0x322769=_0x42cb2d;this['_getAttachmentField'](_0x67fa0b);let _0x17f825=this['getValue'](_0x67fa0b);return Array[_0x322769(0x2b0)](_0x17f825)?_0x17f825[_0x322769(0x276)]((_0x1ce133,_0x1f0145)=>_t(_0x1ce133,_0x67fa0b,_0x1f0145)):[];}['deleteAttachments'](_0x37cfa2,_0x14162b){const _0x36d32d=_0x42cb2d;this[_0x36d32d(0x24c)](_0x37cfa2);let _0x1eb066=new Set(_0x14162b[_0x36d32d(0x276)](_0x8d8bf5=>_0x8d8bf5['id']));if(!_0x1eb066[_0x36d32d(0x1f5)])return!0x0;let _0x5ec5b4=this[_0x36d32d(0x19e)](_0x37cfa2),_0x216067=_0x5ec5b4[_0x36d32d(0x250)](_0x338db4=>!_0x1eb066['has'](_0x338db4['id']));return _0x216067[_0x36d32d(0x1b9)]===_0x5ec5b4[_0x36d32d(0x1b9)]||this[_0x36d32d(0x27a)](_0x37cfa2,_0x216067);}[_0x42cb2d(0x225)](_0xe25c0,_0x436d87='id'){const _0x4524b6=_0x42cb2d;let _0x17222a=this[_0x4524b6(0x1f9)][_0x4524b6(0x1d3)](),_0x2cfdef=[{'recordId':this['_recordId'],'values':H(_0x17222a,_0xe25c0,_0x436d87)}];return this[_0x4524b6(0x27d)][_0x4524b6(0x1ac)](_0x54705e['id'],{'unitId':this['_base'][_0x4524b6(0x25a)](),'tableId':this[_0x4524b6(0x1f9)][_0x4524b6(0x25a)](),'patches':_0x2cfdef,'source':_0x220938[_0x4524b6(0x24b)]});}[_0x42cb2d(0x2cb)](){const _0x21e14a=_0x42cb2d;return this['_commandService'][_0x21e14a(0x1ac)](_0x36855b['id'],{'unitId':this[_0x21e14a(0x204)][_0x21e14a(0x25a)](),'tableId':this[_0x21e14a(0x1f9)][_0x21e14a(0x25a)](),'recordId':this[_0x21e14a(0x22f)],'source':_0x220938[_0x21e14a(0x24b)]});}[_0x42cb2d(0x2ce)](_0x3e11e2){const _0x127d39=_0x42cb2d;let _0x559e1c={...this[_0x127d39(0x185)](),..._0x3e11e2,'id':_0x4f9ee0(0x6)};_0x559e1c[_0x127d39(0x21e)]={..._0x559e1c[_0x127d39(0x21e)],..._0x3e11e2==null?void 0x0:_0x3e11e2['values']},Reflect[_0x127d39(0x1ed)](_0x559e1c[_0x127d39(0x21e)],_0x2737b3);let _0x482fff=Date[_0x127d39(0x2ad)]();if(_0x559e1c[_0x127d39(0x247)]||=''+_0x482fff,_0x559e1c[_0x127d39(0x194)]||=_0x482fff,_0x559e1c['updatedAt']||=_0x482fff,!this['_commandService']['syncExecuteCommand'](_0x328e28['id'],{'unitId':this[_0x127d39(0x204)][_0x127d39(0x25a)](),'tableId':this[_0x127d39(0x1f9)][_0x127d39(0x25a)](),'sourceRecordId':this[_0x127d39(0x22f)],'record':_0x559e1c,'source':_0x220938['Facade']}))throw Error(_0x127d39(0x275)+this[_0x127d39(0x22f)]+'\x22.');return this['_injector']['createInstance'](J,this[_0x127d39(0x204)],this['_table'],_0x559e1c['id'],this[_0x127d39(0x201)]);}['setOrderKey'](_0x31c512){const _0x3b82d4=_0x42cb2d;return this[_0x3b82d4(0x27d)]['syncExecuteCommand'](_0x474036['id'],{'unitId':this['_base'][_0x3b82d4(0x25a)](),'tableId':this[_0x3b82d4(0x1f9)][_0x3b82d4(0x25a)](),'recordId':this[_0x3b82d4(0x22f)],'orderKey':_0x31c512});}['getLinkedRecordIds'](_0x21315f){const _0x251f97=_0x42cb2d;let _0x1d5ea7=this[_0x251f97(0x2c4)](_0x21315f),_0x195a11=this[_0x251f97(0x213)](_0x1d5ea7['id']);return _0x46817c(_0x195a11);}[_0x42cb2d(0x2c5)](_0x4c7b2a,_0x427852){const _0x201e16=_0x42cb2d;let _0x408aef=this[_0x201e16(0x2c4)](_0x4c7b2a),_0x596c0d=_0x12a947(_0x427852),_0x4aa4b3=_0x102940(this[_0x201e16(0x204)]['getBase']()[_0x201e16(0x295)](),_0x408aef,_0x596c0d);if(!_0x4aa4b3[_0x201e16(0x21a)])throw Error(_0x4aa4b3[_0x201e16(0x1d7)]??_0x201e16(0x1e6));return this[_0x201e16(0x27d)][_0x201e16(0x1ac)](_0x50c883['id'],{'unitId':this[_0x201e16(0x204)][_0x201e16(0x25a)](),'tableId':this[_0x201e16(0x1f9)][_0x201e16(0x25a)](),'recordId':this[_0x201e16(0x22f)],'fieldId':_0x4c7b2a,'value':_0x596c0d,'source':_0x220938[_0x201e16(0x24b)]});}[_0x42cb2d(0x1c3)](_0x116e89,_0x159f82){const _0x253fc2=_0x42cb2d;let _0x37d1f3=this[_0x253fc2(0x2c4)](_0x116e89),_0x624201=_0x34bd1d(_0x37d1f3);if(!_0x624201)throw Error(_0x253fc2(0x1a8)+_0x116e89+_0x253fc2(0x1b5));let _0xc417dd=this[_0x253fc2(0x1fb)](_0x116e89);return _0x624201['multiple']&&_0xc417dd['includes'](_0x159f82)?!0x0:this[_0x253fc2(0x2c5)](_0x116e89,_0x624201['multiple']?[..._0xc417dd,_0x159f82]:[_0x159f82]);}[_0x42cb2d(0x1a9)](_0x3b4237,_0x3b10bb){const _0x525b22=_0x42cb2d;let _0x4a504c=this[_0x525b22(0x1fb)](_0x3b4237);return!_0x4a504c[_0x525b22(0x20a)](_0x3b10bb)||this[_0x525b22(0x2c5)](_0x3b4237,_0x4a504c[_0x525b22(0x250)](_0x55a550=>_0x55a550!==_0x3b10bb));}[_0x42cb2d(0x29d)](_0x5863a2){const _0x2e1031=_0x42cb2d;let _0x65c01=this[_0x2e1031(0x2a0)](_0x5863a2)[_0x2e1031(0x1e4)][_0x2e1031(0x257)](this[_0x2e1031(0x22f)])??null;return _0x65c01?this[_0x2e1031(0x1f9)][_0x2e1031(0x1e3)](_0x65c01):null;}[_0x42cb2d(0x2aa)](_0x1c1caf){const _0x3b6c06=_0x42cb2d;return(this[_0x3b6c06(0x2a0)](_0x1c1caf)[_0x3b6c06(0x1c1)][_0x3b6c06(0x257)](this[_0x3b6c06(0x22f)])??[])[_0x3b6c06(0x230)](_0x4338c1=>{const _0x59d631=_0x3b6c06;let _0xf0b908=this['_table'][_0x59d631(0x1e3)](_0x4338c1);return _0xf0b908?[_0xf0b908]:[];});}['getAncestors'](_0x2f78c1){const _0x1e3e35=_0x42cb2d;let _0x49b1de=this[_0x1e3e35(0x2a0)](_0x2f78c1),_0x2c50e9=[],_0x21f751=_0x49b1de[_0x1e3e35(0x1e4)][_0x1e3e35(0x257)](this[_0x1e3e35(0x22f)])??null;for(;_0x21f751;){let _0x36b687=this[_0x1e3e35(0x1f9)]['getRecordById'](_0x21f751);_0x36b687&&_0x2c50e9['push'](_0x36b687),_0x21f751=_0x49b1de['parentByRecordId'][_0x1e3e35(0x257)](_0x21f751)??null;}return _0x2c50e9;}[_0x42cb2d(0x26e)](_0x5ac9d7){const _0x376213=_0x42cb2d;let _0x1a623c=this[_0x376213(0x2a0)](_0x5ac9d7),_0x2d9b21=_0x1a623c['orderedRecordIds'][_0x376213(0x1d0)](this[_0x376213(0x22f)]),_0x3d1c52=_0x1a623c[_0x376213(0x188)][_0x376213(0x28c)](this['_recordId'])?this[_0x376213(0x2b3)](_0x1a623c['childrenByParentId'],this[_0x376213(0x22f)]):[];return _0x2d9b21<0x0?[]:_0x3d1c52[_0x376213(0x230)](_0x4922b4=>{const _0x2bd080=_0x376213;let _0x3a5f10=this[_0x2bd080(0x1f9)][_0x2bd080(0x1e3)](_0x4922b4);return _0x3a5f10?[_0x3a5f10]:[];});}['setParent'](_0x4842cf,_0x55f66e,_0x5210fb){const _0x1ea76d=_0x42cb2d;return this['_commandService']['syncExecuteCommand'](_0x146970['id'],{'unitId':this[_0x1ea76d(0x204)]['getId'](),'tableId':this[_0x1ea76d(0x1f9)][_0x1ea76d(0x25a)](),'fieldId':_0x4842cf,'recordId':this[_0x1ea76d(0x22f)],'parentRecordId':_0x55f66e,'orderKey':_0x5210fb,'source':_0x220938['Facade']});}['addChild'](_0x581ebe,_0x1d3d57,_0xe95b8a='id',_0x325efa){const _0x3fd996=_0x42cb2d;let _0x525420=this[_0x3fd996(0x1f9)][_0x3fd996(0x1d3)](),_0x5d7986=Date[_0x3fd996(0x2ad)](),_0x28e448={..._0x325efa,'id':_0x4f9ee0(0x6),'values':H(_0x525420,_0x1d3d57,_0xe95b8a),'orderKey':(_0x325efa==null?void 0x0:_0x325efa['orderKey'])||''+_0x5d7986,'createdAt':(_0x325efa==null?void 0x0:_0x325efa[_0x3fd996(0x194)])||_0x5d7986,'updatedAt':(_0x325efa==null?void 0x0:_0x325efa['updatedAt'])||_0x5d7986};if(!this[_0x3fd996(0x27d)][_0x3fd996(0x1ac)](_0x38016d['id'],{'unitId':this[_0x3fd996(0x204)]['getId'](),'tableId':this[_0x3fd996(0x1f9)][_0x3fd996(0x25a)](),'fieldId':_0x581ebe,'parentRecordId':this['_recordId'],'record':_0x28e448,'source':_0x220938['Facade']}))throw Error(_0x3fd996(0x22d)+this[_0x3fd996(0x22f)]+'\x22.');return this[_0x3fd996(0x201)][_0x3fd996(0x24e)](J,this[_0x3fd996(0x204)],this[_0x3fd996(0x1f9)],_0x28e448['id'],this[_0x3fd996(0x201)]);}[_0x42cb2d(0x2a0)](_0x412124){const _0x2f60d7=_0x42cb2d;return _0x4aa1d4(this[_0x2f60d7(0x1f9)][_0x2f60d7(0x1d3)](),_0x412124);}[_0x42cb2d(0x2b3)](_0x5bafde,_0x636cfc){let _0x474cc1=[],_0x53cec5=_0x28a743=>{const _0x1f91a6=_0x4bdd;for(let _0x3ecba2 of _0x5bafde[_0x1f91a6(0x257)](_0x28a743)??[])_0x474cc1[_0x1f91a6(0x1dd)](_0x3ecba2),_0x53cec5(_0x3ecba2);};return _0x53cec5(_0x636cfc),_0x474cc1;}[_0x42cb2d(0x185)](){const _0x23593f=_0x42cb2d;let _0x2f6ad4=this[_0x23593f(0x1f9)]['getTable']()[_0x23593f(0x2d2)][this[_0x23593f(0x22f)]];if(!_0x2f6ad4)throw Error(_0x23593f(0x2d4)+this[_0x23593f(0x22f)]+_0x23593f(0x209));return _0x2f6ad4;}[_0x42cb2d(0x2c4)](_0xba6523){const _0x5df64c=_0x42cb2d;let _0x288581=this[_0x5df64c(0x1f9)][_0x5df64c(0x1d3)]()[_0x5df64c(0x28d)][_0xba6523];if(!_0x288581||_0x288581['type']!==_0x334db4[_0x5df64c(0x29e)])throw Error('[FRecord]:\x20field\x20\x22'+_0xba6523+_0x5df64c(0x1c8));return _0x288581;}[_0x42cb2d(0x24c)](_0x3ac7f2){const _0xd74f16=_0x42cb2d;let _0x40193a=this[_0xd74f16(0x1f9)][_0xd74f16(0x1d3)]()[_0xd74f16(0x28d)][_0x3ac7f2];if(!_0x40193a||_0x40193a[_0xd74f16(0x235)]!==_0x334db4[_0xd74f16(0x1ea)])throw Error(_0xd74f16(0x2c2)+_0x3ac7f2+_0xd74f16(0x176));return _0x40193a;}};Y=J=z([R(0x4,_0x35296b),R(0x5,_0x5ad99d)],Y);function gt(_0x4e5d4b){const _0x117234=_0x42cb2d;return!!(_0x4e5d4b&&typeof _0x4e5d4b==_0x117234(0x26b)&&'id'in _0x4e5d4b&&typeof _0x4e5d4b['id']==_0x117234(0x193)&&_0x117234(0x1e8)in _0x4e5d4b&&typeof _0x4e5d4b[_0x117234(0x1e8)]==_0x117234(0x193));}function _t(_0x3477f1,_0x4835d3,_0x2e5231){const _0x20bda8=_0x42cb2d;if(!gt(_0x3477f1))throw Error('[FRecord]:\x20attachment\x20at\x20index\x20'+_0x2e5231+_0x20bda8(0x1f2)+_0x4835d3+'\x22\x20is\x20invalid.');return{..._0x3477f1};}let X=class{constructor(_0x4a76c0,_0x4e36ec,_0xad9bf1,_0x10464e,_0x561d7a,_0x553bfc,_0x238ad1){const _0x2a66bb=_0x42cb2d;this[_0x2a66bb(0x204)]=_0x4a76c0,this[_0x2a66bb(0x1f9)]=_0x4e36ec,this[_0x2a66bb(0x259)]=_0xad9bf1,this[_0x2a66bb(0x201)]=_0x10464e,this['_commandService']=_0x561d7a,this['_permissionService']=_0x553bfc,this[_0x2a66bb(0x26a)]=_0x238ad1;}[_0x42cb2d(0x25a)](){const _0x2bf69a=_0x42cb2d;return this[_0x2bf69a(0x259)];}[_0x42cb2d(0x274)](){const _0x3856e2=_0x42cb2d;let _0x3712aa=this[_0x3856e2(0x1f9)]['getId']();return new L(this['_base'][_0x3856e2(0x25a)](),_0x3f6a97(_0x3712aa,this[_0x3856e2(0x259)]),[_0x50fcb8(_0x3712aa)],this[_0x3856e2(0x27d)],this[_0x3856e2(0x2a5)]);}[_0x42cb2d(0x20b)](){const _0x161019=_0x42cb2d;return this[_0x161019(0x26f)]();}[_0x42cb2d(0x214)](){const _0x30767e=_0x42cb2d;return this[_0x30767e(0x26f)]()[_0x30767e(0x1e8)];}['getType'](){const _0x3d2348=_0x42cb2d;return this[_0x3d2348(0x26f)]()['type'];}[_0x42cb2d(0x174)](_0x5bdf48){const _0x5c4ce6=_0x42cb2d;return this['_commandService'][_0x5c4ce6(0x1ac)](_0x3f17b8['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x5c4ce6(0x1f9)][_0x5c4ce6(0x25a)](),'viewId':this[_0x5c4ce6(0x259)],'name':_0x5bdf48});}['getConfig'](){const _0x442ce8=_0x42cb2d;let _0x3661e4=this['getType'](),_0x56b278=this[_0x442ce8(0x26f)]()['config'];switch(_0x3661e4){case _0x2dedc2[_0x442ce8(0x2bd)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x173)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x277)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x2ab)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x23a)]:return _0x56b278;default:return _0x56b278;}}[_0x42cb2d(0x1d2)](_0x2c1a9c){const _0x393e80=_0x42cb2d;return this[_0x393e80(0x27d)]['syncExecuteCommand'](_0x189b25['id'],{'unitId':this[_0x393e80(0x204)]['getId'](),'tableId':this['_table'][_0x393e80(0x25a)](),'viewId':this[_0x393e80(0x259)],'patch':_0x2c1a9c});}[_0x42cb2d(0x249)](){const _0x2f1478=_0x42cb2d;var _0x14adc2;return _0x537bdf['deepClone'](((_0x14adc2=this[_0x2f1478(0x26f)]()[_0x2f1478(0x22b)]['conditionalColoring'])==null?void 0x0:_0x14adc2['rules'])??[]);}[_0x42cb2d(0x1f7)](_0x36c100){const _0x109134=_0x42cb2d;return this[_0x109134(0x27d)][_0x109134(0x1ac)](_0x16d73a['id'],{'unitId':this[_0x109134(0x204)][_0x109134(0x25a)](),'tableId':this['_table'][_0x109134(0x25a)](),'viewId':this['_viewId'],'type':_0x36384f[_0x109134(0x1bb)],'rules':_0x36c100});}[_0x42cb2d(0x283)](_0x5145a9){const _0x6e3f27=_0x42cb2d;return this[_0x6e3f27(0x27d)][_0x6e3f27(0x1ac)](_0x16d73a['id'],{'unitId':this[_0x6e3f27(0x204)][_0x6e3f27(0x25a)](),'tableId':this[_0x6e3f27(0x1f9)][_0x6e3f27(0x25a)](),'viewId':this[_0x6e3f27(0x259)],'type':_0x36384f['Add'],'rule':_0x5145a9});}[_0x42cb2d(0x2a2)](_0x24c4c9){const _0x3a1132=_0x42cb2d;return this[_0x3a1132(0x27d)][_0x3a1132(0x1ac)](_0x16d73a['id'],{'unitId':this['_base'][_0x3a1132(0x25a)](),'tableId':this[_0x3a1132(0x1f9)]['getId'](),'viewId':this[_0x3a1132(0x259)],'type':_0x36384f[_0x3a1132(0x1a0)],'ruleId':_0x24c4c9});}[_0x42cb2d(0x2a4)](){const _0x24e85e=_0x42cb2d;return this['_commandService'][_0x24e85e(0x1ac)](_0x16d73a['id'],{'unitId':this['_base'][_0x24e85e(0x25a)](),'tableId':this[_0x24e85e(0x1f9)]['getId'](),'viewId':this[_0x24e85e(0x259)],'type':_0x36384f[_0x24e85e(0x198)]});}[_0x42cb2d(0x1f1)](){const _0x2a1c5e=_0x42cb2d;return this[_0x2a1c5e(0x26f)]()[_0x2a1c5e(0x250)]??null;}[_0x42cb2d(0x2cf)](_0x1e4990){const _0x2d9658=_0x42cb2d;return this[_0x2d9658(0x27d)][_0x2d9658(0x1ac)](_0x95d2fe['id'],{'unitId':this[_0x2d9658(0x204)][_0x2d9658(0x25a)](),'tableId':this[_0x2d9658(0x1f9)][_0x2d9658(0x25a)](),'viewId':this['_viewId'],'filter':_0x1e4990});}[_0x42cb2d(0x1a6)](){const _0x32b1dd=_0x42cb2d;return this[_0x32b1dd(0x26f)]()[_0x32b1dd(0x25b)]??[];}[_0x42cb2d(0x24d)](_0x268899){const _0x27c527=_0x42cb2d;return this[_0x27c527(0x27d)][_0x27c527(0x1ac)](_0x118bc9['id'],{'unitId':this[_0x27c527(0x204)][_0x27c527(0x25a)](),'tableId':this[_0x27c527(0x1f9)][_0x27c527(0x25a)](),'viewId':this['_viewId'],'sort':_0x268899});}[_0x42cb2d(0x2a3)](){const _0x2d71fe=_0x42cb2d;return this[_0x2d71fe(0x26f)]()[_0x2d71fe(0x23e)]??[];}[_0x42cb2d(0x23b)](_0xe009c5){const _0x9596f2=_0x42cb2d;return this[_0x9596f2(0x27d)][_0x9596f2(0x1ac)](_0x37eaa0['id'],{'unitId':this[_0x9596f2(0x204)][_0x9596f2(0x25a)](),'tableId':this[_0x9596f2(0x1f9)][_0x9596f2(0x25a)](),'viewId':this[_0x9596f2(0x259)],'group':_0xe009c5});}[_0x42cb2d(0x1e2)](_0x37deef){const _0x2ae57b=_0x42cb2d;var _0x2e0260;return V(this['_table']['getTable']()[_0x2ae57b(0x28d)][_0x37deef])?((_0x2e0260=this[_0x2ae57b(0x26f)]()['fieldSettings'])==null?void 0x0:_0x2e0260[_0x37deef])??{}:{};}['getVisibleFields'](){const _0x50ac5f=_0x42cb2d;let _0x3760e3=this[_0x50ac5f(0x1f9)][_0x50ac5f(0x1d3)](),_0xe8a7fd=this[_0x50ac5f(0x26f)]();return(_0xe8a7fd['fieldOrder']??_0x3760e3[_0x50ac5f(0x29c)])[_0x50ac5f(0x250)](_0x587338=>{const _0x101b40=_0x50ac5f;var _0x4419b5;let _0x39a2a7=_0x3760e3[_0x101b40(0x28d)][_0x587338];return V(_0x39a2a7)&&!((_0x4419b5=_0xe8a7fd[_0x101b40(0x2a9)])!=null&&(_0x4419b5=_0x4419b5[_0x587338])!=null&&_0x4419b5[_0x101b40(0x253)]);})['map'](_0x1a95e6=>this[_0x50ac5f(0x201)][_0x50ac5f(0x24e)](B,this[_0x50ac5f(0x204)],this['_table'],_0x1a95e6));}[_0x42cb2d(0x1df)](_0x6e7a36,_0x3113e2){const _0x1f2f87=_0x42cb2d;return V(this[_0x1f2f87(0x1f9)][_0x1f2f87(0x1d3)]()[_0x1f2f87(0x28d)][_0x6e7a36])?this[_0x1f2f87(0x27d)][_0x1f2f87(0x1ac)](_0xc297cb['id'],{'unitId':this[_0x1f2f87(0x204)][_0x1f2f87(0x25a)](),'tableId':this[_0x1f2f87(0x1f9)]['getId'](),'viewId':this[_0x1f2f87(0x259)],'fieldId':_0x6e7a36,'visible':_0x3113e2}):!0x1;}['setFieldWidth'](_0x5448e2,_0x39bb42){const _0x2e1628=_0x42cb2d;return V(this['_table'][_0x2e1628(0x1d3)]()[_0x2e1628(0x28d)][_0x5448e2])?this[_0x2e1628(0x27d)][_0x2e1628(0x1ac)](_0x2dfde8['id'],{'unitId':this[_0x2e1628(0x204)][_0x2e1628(0x25a)](),'tableId':this[_0x2e1628(0x1f9)][_0x2e1628(0x25a)](),'viewId':this[_0x2e1628(0x259)],'fieldId':_0x5448e2,'width':_0x39bb42}):!0x1;}[_0x42cb2d(0x1b0)](_0x37b055,_0x35644f){const _0x2889f3=_0x42cb2d;let _0x9a6a90=this[_0x2889f3(0x1f9)]['getTable'](),_0x154074=_0x35644f['beforeFieldId']??_0x35644f[_0x2889f3(0x1ab)];return!V(_0x9a6a90['fields'][_0x37b055])||!_0x154074||!V(_0x9a6a90[_0x2889f3(0x28d)][_0x154074])?!0x1:this[_0x2889f3(0x27d)][_0x2889f3(0x1ac)](_0x3556fb['id'],{'unitId':this[_0x2889f3(0x204)][_0x2889f3(0x25a)](),'tableId':this[_0x2889f3(0x1f9)]['getId'](),'viewId':this['_viewId'],'fieldId':_0x37b055,'target':_0x35644f});}[_0x42cb2d(0x181)](_0x5ca92e){const _0x1a73c9=_0x42cb2d;return this[_0x1a73c9(0x27d)]['syncExecuteCommand'](_0x1f38e3['id'],{'unitId':this[_0x1a73c9(0x204)][_0x1a73c9(0x25a)](),'tableId':this[_0x1a73c9(0x1f9)][_0x1a73c9(0x25a)](),'viewId':this[_0x1a73c9(0x259)],'target':_0x5ca92e});}[_0x42cb2d(0x2cb)](){const _0x18194f=_0x42cb2d;return this[_0x18194f(0x27d)]['syncExecuteCommand'](_0x3ddbc['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table']['getId'](),'viewId':this[_0x18194f(0x259)]});}[_0x42cb2d(0x256)](){const _0x5c8e0a=_0x42cb2d;return this[_0x5c8e0a(0x26a)]['getProjection'](this[_0x5c8e0a(0x204)][_0x5c8e0a(0x211)]()[_0x5c8e0a(0x295)](),this[_0x5c8e0a(0x1f9)][_0x5c8e0a(0x25a)](),this[_0x5c8e0a(0x259)]);}[_0x42cb2d(0x26f)](){const _0x4e9c75=_0x42cb2d;let _0x5628dc=this[_0x4e9c75(0x1f9)][_0x4e9c75(0x1d3)]()[_0x4e9c75(0x290)][this[_0x4e9c75(0x259)]];if(!_0x5628dc)throw Error(_0x4e9c75(0x233)+this['_viewId']+'\x22\x20does\x20not\x20exist.');return _0x5628dc;}};X=z([R(0x4,_0x35296b),R(0x5,_0x5ad99d),R(0x6,_0x5da3e7)],X);let Z=class{constructor(_0x80f5bb,_0x18fcd9,_0x1b7e81,_0xa5c16d,_0x185bd3,_0x22ff3e){const _0x5cac41=_0x42cb2d;this[_0x5cac41(0x204)]=_0x80f5bb,this['_tableId']=_0x18fcd9,this['_injector']=_0x1b7e81,this[_0x5cac41(0x27d)]=_0xa5c16d,this[_0x5cac41(0x2a5)]=_0x185bd3,this[_0x5cac41(0x26a)]=_0x22ff3e;}['getBase'](){const _0xb2b14c=_0x42cb2d;return this[_0xb2b14c(0x204)][_0xb2b14c(0x211)]();}['getTable'](){const _0x579cf3=_0x42cb2d;return this[_0x579cf3(0x1d4)]();}[_0x42cb2d(0x25a)](){const _0x514b96=_0x42cb2d;return this[_0x514b96(0x292)];}['getPermission'](){const _0x5db8f4=_0x42cb2d;return new L(this[_0x5db8f4(0x211)]()['getUnitId'](),_0x50fcb8(this[_0x5db8f4(0x292)]),[],this[_0x5db8f4(0x27d)],this[_0x5db8f4(0x2a5)]);}[_0x42cb2d(0x1a4)](){const _0x15811c=_0x42cb2d;return _0x1d8e8c(this[_0x15811c(0x1d4)]());}['setHierarchyField'](_0x556039){const _0x36928e=_0x42cb2d;return this[_0x36928e(0x27d)]['syncExecuteCommand'](_0x71b3cc['id'],{'unitId':this[_0x36928e(0x204)][_0x36928e(0x25a)](),'tableId':this[_0x36928e(0x292)],'fieldId':_0x556039});}[_0x42cb2d(0x214)](){const _0x733378=_0x42cb2d;return this['_getTable']()[_0x733378(0x1e8)];}[_0x42cb2d(0x208)](){const _0x3c00b6=_0x42cb2d;let _0x3c3729=this[_0x3c00b6(0x204)][_0x3c00b6(0x211)]()[_0x3c00b6(0x295)]();return _0x7344c5(this[_0x3c00b6(0x1d4)](),_0x3c3729);}[_0x42cb2d(0x174)](_0x47f832){const _0x42c379=_0x42cb2d;let _0x588570=_0x17aac3(this[_0x42c379(0x204)][_0x42c379(0x211)]()[_0x42c379(0x295)](),_0x47f832,this[_0x42c379(0x292)]);if(!_0x588570['valid'])throw Error(_0x42c379(0x261)+_0x47f832+_0x42c379(0x227)+_0x2e61f6+'\x20'+_0x588570[_0x42c379(0x1d7)]);return this[_0x42c379(0x27d)][_0x42c379(0x1ac)](_0x47dfb5['id'],{'unitId':this[_0x42c379(0x204)][_0x42c379(0x25a)](),'tableId':this['_tableId'],'name':_0x47f832});}['search'](_0x2e8ca3,_0x35b41e){const _0x32fcd7=_0x42cb2d;let _0x4e6dbb=this[_0x32fcd7(0x204)][_0x32fcd7(0x211)]()[_0x32fcd7(0x295)](),_0x12fde8=this[_0x32fcd7(0x1d4)]();if(_0x35b41e){let _0x4dd418=this['_projectionService']['getProjection'](_0x4e6dbb,this[_0x32fcd7(0x292)],_0x35b41e),_0x19958f=_0x12fde8['views'][_0x35b41e],_0x479340=_0x2e8ca3[_0x32fcd7(0x1db)]??Tt(_0x12fde8,_0x19958f,_0x4dd418),_0x291ffa=_0x32fcd7(0x240)in _0x4dd418&&Array[_0x32fcd7(0x2b0)](_0x4dd418['rows'])?_0x4dd418[_0x32fcd7(0x240)]:[];return _0x4f0889({..._0x2e8ca3,'table':_0x12fde8,'fieldIds':_0x479340,'rows':_0x291ffa});}let _0x106534=(_0x12fde8[_0x32fcd7(0x2ae)]?_0x12fde8['recordOrder'][_0x32fcd7(0x276)](_0x3cc06f=>_0x12fde8[_0x32fcd7(0x2d2)][_0x3cc06f]):Object['values'](_0x12fde8[_0x32fcd7(0x2d2)])[_0x32fcd7(0x25b)]((_0x491f26,_0x3e6f5b)=>_0x491f26[_0x32fcd7(0x247)]['localeCompare'](_0x3e6f5b[_0x32fcd7(0x247)])))[_0x32fcd7(0x250)](_0x3d4707=>_0x3d4707)[_0x32fcd7(0x276)](_0x2ae147=>({'recordId':_0x2ae147['id'],'values':_0x2ae147[_0x32fcd7(0x21e)]})),_0x9d5e7d=_0x2e8ca3['fieldIds']??_0x12fde8[_0x32fcd7(0x29c)][_0x32fcd7(0x250)](_0x565f1e=>V(_0x12fde8[_0x32fcd7(0x28d)][_0x565f1e]));return _0x4f0889({..._0x2e8ca3,'table':_0x12fde8,'fieldIds':_0x9d5e7d,'rows':_0x106534});}[_0x42cb2d(0x266)](){const _0xcd4a73=_0x42cb2d;return this['_getTable']()[_0xcd4a73(0x20c)];}[_0x42cb2d(0x224)](){const _0x445177=_0x42cb2d;let _0x407e97=this[_0x445177(0x1d4)]();return _0x407e97['fieldOrder'][_0x445177(0x276)](_0x3ea043=>_0x407e97[_0x445177(0x28d)][_0x3ea043])['filter'](V)['map'](_0x55cdb7=>this['_injector']['createInstance'](B,this[_0x445177(0x204)],this,_0x55cdb7['id']));}['getFieldById'](_0x84c8e2){const _0x40a0dc=_0x42cb2d;let _0x3c5246=this[_0x40a0dc(0x1d4)]()['fields'][_0x84c8e2];return V(_0x3c5246)?this[_0x40a0dc(0x201)][_0x40a0dc(0x24e)](B,this[_0x40a0dc(0x204)],this,_0x3c5246['id']):null;}['getFieldByName'](_0x156bb3){const _0x43fab=_0x42cb2d;let _0x3ec8bf=this[_0x43fab(0x1d4)]()[_0x43fab(0x28d)],_0x2deaf3=Object[_0x43fab(0x21e)](_0x3ec8bf)[_0x43fab(0x220)](_0x18173e=>V(_0x18173e)&&_0x18173e[_0x43fab(0x1e8)]===_0x156bb3);return _0x2deaf3?this[_0x43fab(0x201)]['createInstance'](B,this['_base'],this,_0x2deaf3['id']):null;}[_0x42cb2d(0x175)](){const _0x4e13fd=_0x42cb2d;let _0x50fbd0=this[_0x4e13fd(0x1d4)]()[_0x4e13fd(0x20c)];return this[_0x4e13fd(0x201)]['createInstance'](B,this[_0x4e13fd(0x204)],this,_0x50fbd0);}[_0x42cb2d(0x1a2)](_0x72ae9e,_0x352ea3,_0x5eef85){const _0x1ddcbc=_0x42cb2d;var _0x3f1e40,_0x30e669;if(!Object['values'](_0x334db4)['some'](_0x302688=>_0x302688===_0x352ea3))throw Error(_0x1ddcbc(0x297)+String(_0x352ea3)+'\x22.');if(_0x352ea3===_0x334db4[_0x1ddcbc(0x1ca)]&&this[_0x1ddcbc(0x202)](_0x72ae9e,_0x5eef85),_0x352ea3===_0x334db4[_0x1ddcbc(0x29e)]&&(typeof(_0x5eef85==null||(_0x3f1e40=_0x5eef85[_0x1ddcbc(0x251)])==null||(_0x3f1e40=_0x3f1e40['config'])==null?void 0x0:_0x3f1e40[_0x1ddcbc(0x177)])!=_0x1ddcbc(0x193)||typeof _0x5eef85[_0x1ddcbc(0x251)][_0x1ddcbc(0x22b)][_0x1ddcbc(0x279)]!=_0x1ddcbc(0x1ce)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x1edd51={..._0x5eef85==null?void 0x0:_0x5eef85[_0x1ddcbc(0x251)],'id':_0x4f9ee0(0x6),'name':_0x72ae9e,'type':_0x352ea3,'config':(_0x5eef85==null||(_0x30e669=_0x5eef85[_0x1ddcbc(0x251)])==null?void 0x0:_0x30e669['config'])??{}};if(!this['_commandService'][_0x1ddcbc(0x1ac)](_0x89725e['id'],{'unitId':this[_0x1ddcbc(0x204)]['getId'](),'tableId':this[_0x1ddcbc(0x292)],'field':_0x1edd51,'index':_0x5eef85==null?void 0x0:_0x5eef85[_0x1ddcbc(0x1be)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x72ae9e+'\x22');return this[_0x1ddcbc(0x201)][_0x1ddcbc(0x24e)](B,this[_0x1ddcbc(0x204)],this,_0x1edd51['id']);}[_0x42cb2d(0x202)](_0x3d410e,_0x41d5ca){const _0x36142b=_0x42cb2d;var _0x5d197a;if(!_0x41d5ca||!('externalReferences'in _0x41d5ca)||!Array[_0x36142b(0x2b0)](_0x41d5ca['externalReferences']))throw Error(_0x36142b(0x196));let _0xa61f9b=this[_0x36142b(0x27d)][_0x36142b(0x1ac)](_0x4ec7a3['id'],{'unitId':this[_0x36142b(0x204)]['getId'](),'tableId':this['_tableId'],'formula':String(((_0x5d197a=_0x41d5ca[_0x36142b(0x251)])==null||(_0x5d197a=_0x5d197a[_0x36142b(0x22b)])==null?void 0x0:_0x5d197a[_0x36142b(0x236)])??'')});if(!_0xa61f9b['valid'])throw Error(_0xa61f9b['reason']??_0x36142b(0x1b6));if(_0x41d5ca[_0x36142b(0x26d)][_0x36142b(0x1b9)]>0x0&&!this[_0x36142b(0x27d)][_0x36142b(0x1ac)](_0x5c4e67['id'],{'unitId':this[_0x36142b(0x204)]['getId'](),'references':_0x41d5ca['externalReferences']}))throw Error(_0x36142b(0x294)+_0x3d410e+'\x22');}[_0x42cb2d(0x291)](){const _0xd3e9fb=_0x42cb2d;return this['_resolveRecordIds']()[_0xd3e9fb(0x276)](_0xe40d9e=>this[_0xd3e9fb(0x201)][_0xd3e9fb(0x24e)](Y,this['_base'],this,_0xe40d9e,this[_0xd3e9fb(0x201)]));}[_0x42cb2d(0x1e3)](_0x2e91d6){const _0x179df2=_0x42cb2d;return this[_0x179df2(0x1d4)]()['records'][_0x2e91d6]?this[_0x179df2(0x201)]['createInstance'](Y,this[_0x179df2(0x204)],this,_0x2e91d6,this[_0x179df2(0x201)]):null;}['queryRecords'](_0x29717f={}){const _0x15de20=_0x42cb2d;let _0x18f59f=this[_0x15de20(0x1d4)](),_0x5722b6=this['_resolveRecordIds'](_0x29717f),_0x3d61b8=Math[_0x15de20(0x190)](0x0,_0x29717f['offset']??0x0),_0x1dbeed=_0x29717f[_0x15de20(0x23d)]==null?null:Math['max'](0x0,_0x29717f[_0x15de20(0x23d)]),_0x4a0043=yt(_0x5722b6[_0x15de20(0x276)](_0x168067=>_0x18f59f[_0x15de20(0x2d2)][_0x168067])[_0x15de20(0x250)](_0x18e299=>xt(_0x18e299,_0x18f59f,_0x29717f[_0x15de20(0x250)])),_0x18f59f,_0x29717f[_0x15de20(0x25b)]);return{'records':vt(_0x4a0043,_0x29717f)[_0x15de20(0x276)](_0x1332ec=>this[_0x15de20(0x201)]['createInstance'](Y,this[_0x15de20(0x204)],this,_0x1332ec['id'],this[_0x15de20(0x201)])),'total':_0x4a0043[_0x15de20(0x1b9)],'offset':_0x3d61b8,'limit':_0x1dbeed,'hasMore':_0x1dbeed!=null&&_0x3d61b8+_0x1dbeed<_0x4a0043['length']};}['addRecord'](_0x9980f7,_0x4f64e4='id',_0x2188ab){const _0x38113c=_0x42cb2d;let _0x5ad9f6=this[_0x38113c(0x1d4)](),_0xf304e6=Date[_0x38113c(0x2ad)](),_0x2e79ed={..._0x2188ab,'id':_0x4f9ee0(0x6),'values':H(_0x5ad9f6,_0x9980f7,_0x4f64e4),'orderKey':(_0x2188ab==null?void 0x0:_0x2188ab['orderKey'])||''+_0xf304e6,'createdAt':(_0x2188ab==null?void 0x0:_0x2188ab[_0x38113c(0x194)])||_0xf304e6,'updatedAt':(_0x2188ab==null?void 0x0:_0x2188ab[_0x38113c(0x25d)])||_0xf304e6};if(!this[_0x38113c(0x27d)]['syncExecuteCommand'](_0x470e4e['id'],{'unitId':this[_0x38113c(0x204)][_0x38113c(0x25a)](),'tableId':this[_0x38113c(0x292)],'record':_0x2e79ed,'source':_0x220938[_0x38113c(0x24b)]}))throw Error(_0x38113c(0x27b)+_0x2e79ed['id']+'\x22');return this['_injector'][_0x38113c(0x24e)](Y,this['_base'],this,_0x2e79ed['id'],this['_injector']);}[_0x42cb2d(0x1de)](_0xebe596){const _0x1874c1=_0x42cb2d;if(!_0xebe596[_0x1874c1(0x1b9)])return[];let _0x34376d=this[_0x1874c1(0x1d4)](),_0x23af18=Date[_0x1874c1(0x2ad)](),_0x2d605c=_0xebe596['map']((_0x354a81,_0x445284)=>{const _0xeb9a2b=_0x1874c1;var _0x48537c,_0x378882,_0x245301;return{..._0x354a81[_0xeb9a2b(0x1e1)],'id':_0x4f9ee0(0x6),'values':H(_0x34376d,_0x354a81['values'],_0x354a81[_0xeb9a2b(0x1da)]??'id'),'orderKey':((_0x48537c=_0x354a81[_0xeb9a2b(0x1e1)])==null?void 0x0:_0x48537c[_0xeb9a2b(0x247)])||''+(_0x23af18+_0x445284),'createdAt':((_0x378882=_0x354a81[_0xeb9a2b(0x1e1)])==null?void 0x0:_0x378882[_0xeb9a2b(0x194)])||_0x23af18,'updatedAt':((_0x245301=_0x354a81['record'])==null?void 0x0:_0x245301[_0xeb9a2b(0x25d)])||_0x23af18};});if(!this['_commandService']['syncExecuteCommand'](_0x30ed55['id'],{'unitId':this[_0x1874c1(0x204)][_0x1874c1(0x25a)](),'tableId':this[_0x1874c1(0x292)],'records':_0x2d605c,'source':_0x220938[_0x1874c1(0x24b)]}))throw Error(_0x1874c1(0x278));return _0x2d605c[_0x1874c1(0x276)](_0x1056a5=>this['_injector'][_0x1874c1(0x24e)](Y,this[_0x1874c1(0x204)],this,_0x1056a5['id'],this[_0x1874c1(0x201)]));}[_0x42cb2d(0x19a)](_0x57e139){const _0x3a0975=_0x42cb2d;return!_0x57e139[_0x3a0975(0x1b9)]||this[_0x3a0975(0x27d)][_0x3a0975(0x1ac)](_0x259e76['id'],{'unitId':this[_0x3a0975(0x204)][_0x3a0975(0x25a)](),'tableId':this['_tableId'],'recordIds':_0x57e139,'source':_0x220938[_0x3a0975(0x24b)]});}['getRange'](_0x8d8eb9,_0x2b7435,_0x3e6610=0x1,_0x41fa14=0x1){const _0x54001f=_0x42cb2d;return this['_injector'][_0x54001f(0x24e)](K,this[_0x54001f(0x204)],this,{'startRow':_0x8d8eb9,'endRow':_0x8d8eb9+_0x3e6610-0x1,'startColumn':_0x2b7435,'endColumn':_0x2b7435+_0x41fa14-0x1},this[_0x54001f(0x201)]);}[_0x42cb2d(0x2d1)](){const _0x1554aa=_0x42cb2d;var _0x2d526a;let _0x1d0e05=_0x240454(this[_0x1554aa(0x1d4)]()),_0x2e54b3=((_0x2d526a=_0x1d0e05[_0x1554aa(0x2ae)])==null?void 0x0:_0x2d526a[_0x1554aa(0x1b9)])??0x0,_0x4f6b2b=_0x1d0e05[_0x1554aa(0x29c)][_0x1554aa(0x250)](_0xfc249d=>V(_0x1d0e05[_0x1554aa(0x28d)][_0xfc249d]))[_0x1554aa(0x1b9)];return this[_0x1554aa(0x2bc)](0x0,0x0,Math['max'](_0x2e54b3,0x1),Math[_0x1554aa(0x190)](_0x4f6b2b,0x1));}['getViews'](){const _0xe46a05=_0x42cb2d;let _0x1d590a=this['_getTable']();return _0x1d590a[_0xe46a05(0x22c)][_0xe46a05(0x250)](_0x3b231a=>_0x1d590a[_0xe46a05(0x290)][_0x3b231a])[_0xe46a05(0x276)](_0x3782a4=>this[_0xe46a05(0x201)][_0xe46a05(0x24e)](X,this[_0xe46a05(0x204)],this,_0x3782a4,this[_0xe46a05(0x201)]));}[_0x42cb2d(0x2d3)](_0x5b4b18){const _0xef8d87=_0x42cb2d;return this['_getTable']()[_0xef8d87(0x290)][_0x5b4b18]?this[_0xef8d87(0x201)][_0xef8d87(0x24e)](X,this[_0xef8d87(0x204)],this,_0x5b4b18,this['_injector']):null;}[_0x42cb2d(0x1ee)](_0x541321){const _0x5bc91f=_0x42cb2d;let _0x45d392=this[_0x5bc91f(0x1d4)](),_0x559372=Object['values'](_0x45d392[_0x5bc91f(0x290)])['find'](_0x38e5cb=>_0x38e5cb[_0x5bc91f(0x1e8)]===_0x541321);return _0x559372?this[_0x5bc91f(0x201)][_0x5bc91f(0x24e)](X,this[_0x5bc91f(0x204)],this,_0x559372['id'],this['_injector']):null;}[_0x42cb2d(0x2a1)](_0x1cbe00,_0x48031d,_0x1abb2f){const _0x74a241=_0x42cb2d;var _0x334cfd,_0x4d3a06,_0x26a649,_0x52d818;let _0x3d36c9=this[_0x74a241(0x1d4)](),_0x40a17d=(_0x1abb2f==null||(_0x334cfd=_0x1abb2f['view'])==null?void 0x0:_0x334cfd[_0x74a241(0x29c)])??_0x3d36c9['fieldOrder'],_0x34e6fe=[_0x2737b3,..._0x40a17d[_0x74a241(0x250)](_0x48aec1=>V(_0x3d36c9[_0x74a241(0x28d)][_0x48aec1]))],_0x54381a={..._0x1abb2f==null?void 0x0:_0x1abb2f[_0x74a241(0x1b8)],'id':_0x4f9ee0(0x6),'name':_0x1cbe00,'type':_0x48031d,'tableId':this[_0x74a241(0x292)],'config':(_0x1abb2f==null||(_0x4d3a06=_0x1abb2f[_0x74a241(0x1b8)])==null?void 0x0:_0x4d3a06[_0x74a241(0x22b)])??{},'fieldOrder':_0x34e6fe,'fieldSettings':{..._0x1abb2f==null||(_0x26a649=_0x1abb2f[_0x74a241(0x1b8)])==null?void 0x0:_0x26a649['fieldSettings'],[_0x2737b3]:{..._0x1abb2f==null||(_0x52d818=_0x1abb2f[_0x74a241(0x1b8)])==null||(_0x52d818=_0x52d818[_0x74a241(0x2a9)])==null?void 0x0:_0x52d818[_0x2737b3],'hidden':!0x0}}};if(!this[_0x74a241(0x27d)][_0x74a241(0x1ac)](_0x471b73['id'],{'unitId':this[_0x74a241(0x204)][_0x74a241(0x25a)](),'tableId':this[_0x74a241(0x292)],'view':_0x54381a,'index':_0x1abb2f==null?void 0x0:_0x1abb2f['index']}))throw Error(_0x74a241(0x17b)+_0x1cbe00+'\x22');return this[_0x74a241(0x201)][_0x74a241(0x24e)](X,this[_0x74a241(0x204)],this,_0x54381a['id'],this['_injector']);}[_0x42cb2d(0x21b)](){const _0x4b77e6=_0x42cb2d;let _0x4f4ea0=this[_0x4b77e6(0x1d4)](),_0xeac47d=_0x4f4ea0[_0x4b77e6(0x29c)]['filter'](_0xced9f4=>V(_0x4f4ea0[_0x4b77e6(0x28d)][_0xced9f4])),_0x254fff=_0x4f4ea0[_0x4b77e6(0x22c)]['filter'](_0x1fea3a=>_0x4f4ea0[_0x4b77e6(0x290)][_0x1fea3a]);return{'id':_0x4f4ea0['id'],'name':_0x4f4ea0[_0x4b77e6(0x1e8)],'formulaName':this['getFormulaName'](),'primaryFieldId':_0x4f4ea0[_0x4b77e6(0x20c)],'fieldIds':_0xeac47d,'viewIds':_0x254fff,'recordCount':this[_0x4b77e6(0x25c)]()[_0x4b77e6(0x1b9)],'fields':_0xeac47d[_0x4b77e6(0x276)](_0x1bbee3=>{const _0x5dbea0=_0x4b77e6;let _0x5dd2c1=_0x4f4ea0[_0x5dbea0(0x28d)][_0x1bbee3];return{'id':_0x5dd2c1['id'],'name':_0x5dd2c1[_0x5dbea0(0x1e8)],'type':_0x5dd2c1['type'],'config':_0x5dd2c1['config'],'readonly':_0x5dd2c1[_0x5dbea0(0x18a)],'description':_0x5dd2c1[_0x5dbea0(0x218)]};}),'views':_0x254fff[_0x4b77e6(0x276)](_0x23ef8c=>{const _0x4006b1=_0x4b77e6;let _0x3aacda=_0x4f4ea0[_0x4006b1(0x290)][_0x23ef8c];return{'id':_0x3aacda['id'],'name':_0x3aacda['name'],'type':_0x3aacda['type']};})};}[_0x42cb2d(0x1d4)](){const _0x4feaeb=_0x42cb2d;let _0x2ae977=this[_0x4feaeb(0x204)]['getBase']()[_0x4feaeb(0x295)]()[_0x4feaeb(0x1af)][this[_0x4feaeb(0x292)]];if(!_0x2ae977)throw Error(_0x4feaeb(0x1b7)+this[_0x4feaeb(0x292)]+_0x4feaeb(0x209));return _0x2ae977;}['_resolveRecordIds'](_0x52ac23={}){const _0x25c42c=_0x42cb2d;let _0x12e0d8=this[_0x25c42c(0x204)]['getBase']()['getSnapshot'](),_0x2f82d8=this['_getTable']();if(_0x52ac23[_0x25c42c(0x2d0)]){let _0x110b71=this[_0x25c42c(0x26a)]['getProjection'](_0x12e0d8,this[_0x25c42c(0x292)],_0x52ac23[_0x25c42c(0x2d0)]);if(_0x25c42c(0x240)in _0x110b71&&Array['isArray'](_0x110b71['rows']))return _0x110b71[_0x25c42c(0x240)][_0x25c42c(0x276)](_0x2cb03d=>_0x2cb03d[_0x25c42c(0x192)]);}return(_0x2f82d8[_0x25c42c(0x2ae)]?_0x2f82d8[_0x25c42c(0x2ae)][_0x25c42c(0x276)](_0x17be18=>_0x2f82d8['records'][_0x17be18]):Object[_0x25c42c(0x21e)](_0x2f82d8[_0x25c42c(0x2d2)])[_0x25c42c(0x25b)]((_0x542cb4,_0x426351)=>_0x542cb4[_0x25c42c(0x247)][_0x25c42c(0x1eb)](_0x426351[_0x25c42c(0x247)])))[_0x25c42c(0x250)](_0x1b0e87=>_0x1b0e87)[_0x25c42c(0x276)](_0x2de2a5=>_0x2de2a5['id']);}};Z=z([R(0x3,_0x35296b),R(0x4,_0x5ad99d),R(0x5,_0x5da3e7)],Z);function vt(_0xa0c645,_0x32dd2e){const _0x53b26f=_0x42cb2d;let _0x30ecc5=Math[_0x53b26f(0x190)](0x0,_0x32dd2e[_0x53b26f(0x2bb)]??0x0);return _0x32dd2e['limit']==null?_0xa0c645['slice'](_0x30ecc5):_0xa0c645[_0x53b26f(0x2cd)](_0x30ecc5,_0x30ecc5+Math[_0x53b26f(0x190)](0x0,_0x32dd2e['limit']));}function yt(_0x1e760,_0x3b51fe,_0x51c376=[]){const _0x41e460=_0x42cb2d;return _0x51c376[_0x41e460(0x1b9)]?[..._0x1e760][_0x41e460(0x25b)]((_0x13b2ee,_0x5bccce)=>{const _0x1ca883=_0x41e460;for(let _0x33921b of _0x51c376){var _0x16a1fe;let _0x48d70d=_0x33921b[_0x1ca883(0x17d)]===_0x42481e['DESC']?-0x1:0x1,_0x4a965c=bt(_0x13b2ee[_0x1ca883(0x21e)][_0x33921b[_0x1ca883(0x21c)]],_0x5bccce[_0x1ca883(0x21e)][_0x33921b[_0x1ca883(0x21c)]],(_0x16a1fe=_0x3b51fe[_0x1ca883(0x28d)][_0x33921b[_0x1ca883(0x21c)]])==null?void 0x0:_0x16a1fe[_0x1ca883(0x235)]);if(_0x4a965c!==0x0)return _0x4a965c*_0x48d70d;}return String(_0x13b2ee['orderKey']??_0x13b2ee['id'])[_0x1ca883(0x1eb)](String(_0x5bccce['orderKey']??_0x5bccce['id']));}):_0x1e760;}function bt(_0x55742c,_0x31f125,_0x373462){const _0x34201c=_0x42cb2d;return _0x55742c==null&&_0x31f125==null?0x0:_0x55742c==null?-0x1:_0x31f125==null?0x1:typeof _0x55742c==_0x34201c(0x226)&&typeof _0x31f125=='number'?_0x55742c-_0x31f125:_0x373462===_0x334db4['Date']?Number(_0x55742c)-Number(_0x31f125):String(_0x55742c)[_0x34201c(0x1eb)](String(_0x31f125));}function xt(_0x313a63,_0x4a4741,_0x41049c){const _0x46af69=_0x42cb2d;var _0x18e264;if(!_0x41049c||!((_0x18e264=_0x41049c[_0x46af69(0x245)])!=null&&_0x18e264[_0x46af69(0x1b9)]))return!0x0;let {conjunction:_0x1cf314=_0x5a09a5['OR'],conditions:_0x2e834d}=_0x41049c;return _0x1cf314===_0x5a09a5[_0x46af69(0x1ad)]&&_0x2e834d[_0x46af69(0x1b9)]>0x1?_0x2e834d[_0x46af69(0x296)](_0x4118ca=>St(_0x313a63,_0x4a4741,_0x4118ca)):_0x2e834d['some'](_0x6f9237=>St(_0x313a63,_0x4a4741,_0x6f9237));}function St(_0xd49a1e,_0x3dfc3e,_0xd9539c){const _0x5aa5ab=_0x42cb2d;let _0x31b60f=_0xd49a1e[_0x5aa5ab(0x21e)][_0xd9539c[_0x5aa5ab(0x21c)]],_0x33e26e=_0x3dfc3e[_0x5aa5ab(0x28d)][_0xd9539c['fieldId']];if(Ct(_0xd9539c)){let _0x59c15d=wt(_0xd9539c)[_0x5aa5ab(0x287)](String(_0x31b60f??''));return _0xd9539c[_0x5aa5ab(0x1fd)]===_0x5aa5ab(0x1ff)?_0x59c15d:!_0x59c15d;}return!_0x33e26e||_0x17312a(_0x31b60f,_0xd9539c[_0x5aa5ab(0x1fd)],_0xd9539c[_0x5aa5ab(0x2b1)],_0x33e26e);}function Ct(_0x59ae7f){const _0x268577=_0x42cb2d;return _0x59ae7f[_0x268577(0x1fd)]===_0x268577(0x1ff)||_0x59ae7f['operator']===_0x268577(0x239);}function wt(_0x33ea30){const _0x3ef8a7=_0x42cb2d;let _0x5cd261=String(_0x33ea30['value']??'');if(_0x5cd261[_0x3ef8a7(0x1b9)]>0x200)throw Error(_0x3ef8a7(0x199));try{return new RegExp(_0x5cd261,_0x33ea30[_0x3ef8a7(0x1c2)]?void 0x0:'i');}catch(_0x65b6da){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x5cd261+'.\x20'+(_0x65b6da instanceof Error?_0x65b6da['message']:String(_0x65b6da)));}}function Tt(_0x14c47a,_0x2d3a8a,_0x2cef0e){const _0x3175ff=_0x42cb2d;if(_0x2cef0e[_0x3175ff(0x235)]!==_0x3175ff(0x207)&&_0x2cef0e['type']!==_0x3175ff(0x2d5)){var _0x4e6fe0;if(_0x2cef0e['type']===_0x2dedc2['Kanban']){var _0x5ca0a6;let _0x4c18cd=[((_0x5ca0a6=_0x2cef0e[_0x3175ff(0x28d)])==null||(_0x5ca0a6=_0x5ca0a6[0x0])==null?void 0x0:_0x5ca0a6['id'])??_0x14c47a[_0x3175ff(0x20c)],..._0x2cef0e[_0x3175ff(0x1e5)]??[]];return Array['from'](new Set(_0x4c18cd[_0x3175ff(0x250)](_0x4509f5=>!!_0x14c47a[_0x3175ff(0x28d)][_0x4509f5])));}if((_0x4e6fe0=_0x2cef0e[_0x3175ff(0x28d)])!=null&&_0x4e6fe0['length'])return _0x2cef0e[_0x3175ff(0x28d)][_0x3175ff(0x276)](_0x1dfc72=>_0x1dfc72['id'])[_0x3175ff(0x250)](_0x26cfaa=>{const _0x340325=_0x3175ff;var _0x50183e;return!(!_0x14c47a[_0x340325(0x28d)][_0x26cfaa]||_0x2d3a8a!=null&&(_0x50183e=_0x2d3a8a[_0x340325(0x2a9)])!=null&&(_0x50183e=_0x50183e[_0x26cfaa])!=null&&_0x50183e[_0x340325(0x253)]);});}return _0x14c47a[_0x3175ff(0x29c)][_0x3175ff(0x250)](_0x34a76c=>{const _0x28c045=_0x3175ff;var _0xd6da72;return!(!_0x14c47a[_0x28c045(0x28d)][_0x34a76c]||_0x2d3a8a!=null&&(_0xd6da72=_0x2d3a8a[_0x28c045(0x2a9)])!=null&&(_0xd6da72=_0xd6da72[_0x34a76c])!=null&&_0xd6da72[_0x28c045(0x253)]);});}let Q=class extends _0x37c8e5[_0x42cb2d(0x238)]{constructor(_0x33eb5e,_0x2f26b1,_0x25f8b7,_0xdaa545,_0x4e2e5f){const _0x56e8b5=_0x42cb2d;super(),this[_0x56e8b5(0x204)]=_0x33eb5e,this['_injector']=_0x2f26b1,this['_resourceLoaderService']=_0x25f8b7,this['_commandService']=_0xdaa545,this[_0x56e8b5(0x2a5)]=_0x4e2e5f;}['getBase'](){return this['_base'];}[_0x42cb2d(0x25a)](){return this['_base']['getUnitId']();}[_0x42cb2d(0x274)](){const _0x12e533=_0x42cb2d;return new at(this['getId'](),this[_0x12e533(0x27d)],this['_permissionService']);}[_0x42cb2d(0x217)](){const _0x434b9e=_0x42cb2d;return this[_0x434b9e(0x234)]['saveUnit'](this[_0x434b9e(0x25a)]())??_0x537bdf[_0x434b9e(0x1cb)](this[_0x434b9e(0x204)][_0x434b9e(0x295)]());}[_0x42cb2d(0x214)](){const _0x3dd91d=_0x42cb2d;return this[_0x3dd91d(0x204)][_0x3dd91d(0x295)]()[_0x3dd91d(0x1e8)];}[_0x42cb2d(0x174)](_0xfe5b06){const _0x28a099=_0x42cb2d;this[_0x28a099(0x27d)][_0x28a099(0x1ac)](_0x3cf18e['id'],{'unitId':this[_0x28a099(0x25a)](),'name':_0xfe5b06});}[_0x42cb2d(0x1aa)](){const _0x473131=_0x42cb2d;let _0x2ba8bb=this['_base']['getSnapshot']();return _0x2ba8bb[_0x473131(0x271)][_0x473131(0x276)](_0x466bc7=>_0x2ba8bb[_0x473131(0x1af)][_0x466bc7])['filter'](_0x270c8a=>_0x270c8a)[_0x473131(0x276)](_0x2520b6=>this[_0x473131(0x201)][_0x473131(0x24e)](Z,this,_0x2520b6['id'],this[_0x473131(0x201)]));}[_0x42cb2d(0x242)](_0x3c760d){const _0x1cc0d6=_0x42cb2d;let _0x4875bb=this[_0x1cc0d6(0x204)][_0x1cc0d6(0x295)]()[_0x1cc0d6(0x1af)][_0x3c760d];return _0x4875bb?this[_0x1cc0d6(0x201)][_0x1cc0d6(0x24e)](Z,this,_0x4875bb['id'],this[_0x1cc0d6(0x201)]):null;}[_0x42cb2d(0x221)](_0xba3874){const _0x4a8af3=_0x42cb2d;let _0x25aee4=this['_base']['getSnapshot'](),_0x185853=Object[_0x4a8af3(0x21e)](_0x25aee4[_0x4a8af3(0x1af)])[_0x4a8af3(0x220)](_0x18eafc=>_0x18eafc[_0x4a8af3(0x1e8)]===_0xba3874);return _0x185853?this[_0x4a8af3(0x201)][_0x4a8af3(0x24e)](Z,this,_0x185853['id'],this[_0x4a8af3(0x201)]):null;}[_0x42cb2d(0x1d5)](_0xa96d05,_0x2e27a4){const _0x24d228=_0x42cb2d;let _0xa708d5=_0x13ff92({'id':_0x4f9ee0(),'name':_0xa96d05,..._0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x269)],'primaryFieldName':_0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x1cc)]}),_0x7f6990=_0x537bdf[_0x24d228(0x1c9)](_0xa708d5,(_0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x269)])??{}),_0x1fa735=_0x17aac3(this[_0x24d228(0x204)][_0x24d228(0x295)](),_0x7f6990[_0x24d228(0x1e8)]);if(!_0x1fa735[_0x24d228(0x21a)])throw Error(_0x24d228(0x1f3)+_0x7f6990[_0x24d228(0x1e8)]+_0x24d228(0x227)+_0x2e61f6+'\x20'+_0x1fa735[_0x24d228(0x1d7)]);if(!this[_0x24d228(0x27d)][_0x24d228(0x1ac)](_0x1d6ad3['id'],{'unitId':this['_base'][_0x24d228(0x1e0)](),'table':_0x7f6990,'index':_0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x1be)]}))throw Error(_0x24d228(0x1d8)+_0xa96d05+'\x22.');return this['_injector'][_0x24d228(0x24e)](Z,this,_0x7f6990['id'],this[_0x24d228(0x201)]);}[_0x42cb2d(0x25e)](_0xf0ce38){const _0x521bae=_0x42cb2d;let _0x5b34c1=typeof _0xf0ce38==_0x521bae(0x193)?_0xf0ce38:_0xf0ce38[_0x521bae(0x25a)]();if(!this[_0x521bae(0x27d)][_0x521bae(0x1ac)](_0x359c6b['id'],{'unitId':this[_0x521bae(0x204)]['getUnitId'](),'tableId':_0x5b34c1}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x5b34c1+'\x22.');return!0x0;}[_0x42cb2d(0x1c4)](_0x225ee9,_0x31ae80){const _0x6d905d=_0x42cb2d;let _0xa6deaf=this[_0x6d905d(0x204)]['getSnapshot'](),_0x1f9bdd=typeof _0x225ee9==_0x6d905d(0x193)?_0x225ee9:_0x225ee9['getId'](),_0xe27d89=_0xa6deaf[_0x6d905d(0x1af)][_0x1f9bdd];if(!_0xe27d89)throw Error(_0x6d905d(0x1fa)+_0x1f9bdd+'\x22\x20does\x20not\x20exist.');let _0x23715e=_0xa6deaf[_0x6d905d(0x271)][_0x6d905d(0x1d0)](_0x1f9bdd)+0x1,_0x33244a=_0x4f9ee0(),_0x3650cf=_0x4ca2a4(_0xe27d89,{'id':_0x33244a,'name':_0x242756(_0xa6deaf,_0xe27d89[_0x6d905d(0x1e8)]+'\x20Copy'),'includeRecords':(_0x31ae80==null?void 0x0:_0x31ae80[_0x6d905d(0x19b)])??!0x1,'regenerateViewIds':(_0x31ae80==null?void 0x0:_0x31ae80[_0x6d905d(0x19c)])??!0x1});if(!this[_0x6d905d(0x27d)][_0x6d905d(0x1ac)](_0x1d6ad3['id'],{'unitId':this[_0x6d905d(0x204)][_0x6d905d(0x1e0)](),'table':_0x3650cf,'index':_0x23715e}))throw Error('Failed\x20to\x20duplicate\x20table\x20\x22'+_0x1f9bdd+'\x22.');return this[_0x6d905d(0x201)][_0x6d905d(0x24e)](Z,this,_0x3650cf['id'],this[_0x6d905d(0x201)]);}[_0x42cb2d(0x21b)](){const _0x1df98c=_0x42cb2d;let _0x196813=this['_base'][_0x1df98c(0x295)]();return{'id':_0x196813['id'],'name':_0x196813[_0x1df98c(0x1e8)],'tables':this['getTables']()[_0x1df98c(0x276)](_0x326cdc=>_0x326cdc[_0x1df98c(0x21b)]())};}};Q=z([R(0x1,_0x18fc25(_0x7ee076)),R(0x2,_0x180241),R(0x3,_0x35296b),R(0x4,_0x5ad99d)],Q);var Et=class extends _0x13f4e8{[_0x42cb2d(0x273)](){const _0x1d9d05=_0x42cb2d;this[_0x1d9d05(0x24a)](),this['_initBaseAfterEvents']();}['createBase'](_0xf63b95={},_0x5e588b){const _0x5a9a14=_0x42cb2d;let _0x197fbe=this[_0x5a9a14(0x180)][_0x5a9a14(0x241)](_0xfc0289['UNIVER_BASE'],_0xf63b95,_0x5e588b);return this[_0x5a9a14(0x201)][_0x5a9a14(0x24e)](Q,_0x197fbe);}[_0x42cb2d(0x2b8)](){const _0x5b2afb=_0x42cb2d;let _0x21fd5d=this[_0x5b2afb(0x180)][_0x5b2afb(0x1a7)](_0xfc0289[_0x5b2afb(0x28e)]);return _0x21fd5d?this[_0x5b2afb(0x201)]['createInstance'](Q,_0x21fd5d):null;}[_0x42cb2d(0x211)](_0x4f15cf){const _0x561793=_0x42cb2d;let _0x5efc46=this[_0x561793(0x180)][_0x561793(0x1d1)](_0x4f15cf,_0xfc0289['UNIVER_BASE']);return _0x5efc46?this[_0x561793(0x201)][_0x561793(0x24e)](Q,_0x5efc46):null;}['getBases'](){const _0x3934ab=_0x42cb2d;return this['_univerInstanceService'][_0x3934ab(0x255)](_0xfc0289[_0x3934ab(0x28e)])[_0x3934ab(0x276)](_0x251e8a=>this[_0x3934ab(0x201)][_0x3934ab(0x24e)](Q,_0x251e8a));}[_0x42cb2d(0x2a8)](){const _0x2acfcf=_0x42cb2d;this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this['Event'][_0x2acfcf(0x200)],()=>this[_0x2acfcf(0x27d)]['onCommandExecuted']((_0x1cd831,_0x1aa7d7)=>{const _0x304d64=_0x2acfcf;var _0x1f0e3d;if(!$(_0x1cd831,_0x178c24))return;let _0xefd6d5=_0x1cd831[_0x304d64(0x1fe)];if(!((_0x1f0e3d=_0xefd6d5[_0x304d64(0x2c7)])!=null&&_0x1f0e3d[_0x304d64(0x1b9)]))return;let _0x1b35fd=this['getBase'](_0xefd6d5[_0x304d64(0x189)]),_0x263da9=_0x1b35fd==null?void 0x0:_0x1b35fd['getTableById'](_0xefd6d5['hierarchyChanges'][0x0][_0x304d64(0x1bf)]);if(!_0x1b35fd||!_0x263da9)return;let _0x18ee2c={'base':_0x1b35fd,'table':_0x263da9,'changes':_0xefd6d5[_0x304d64(0x2c7)],'source':_0x1aa7d7!=null&&_0x1aa7d7['fromCollab']?_0x220938[_0x304d64(0x2ca)]:_0xefd6d5[_0x304d64(0x2b5)]??_0x220938['UI']};this[_0x304d64(0x2c9)](this[_0x304d64(0x231)][_0x304d64(0x200)],_0x18ee2c);}))),this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this[_0x2acfcf(0x231)][_0x2acfcf(0x2cc)],()=>this[_0x2acfcf(0x27d)]['onCommandExecuted'](_0xf16f56=>{const _0x4e830b=_0x2acfcf;if(_0xf16f56['id']!==_0x1d6ad3['id'])return;let {unitId:_0x36a4fd,table:_0x580e09,index:_0x545d8c}=_0xf16f56[_0x4e830b(0x1fe)],_0x3d510d=this['getBase'](_0x36a4fd);if(!_0x3d510d)return;let _0x5a35a0={'base':_0x3d510d,'table':_0x580e09,'index':_0x545d8c};this[_0x4e830b(0x2c9)](this['Event'][_0x4e830b(0x2cc)],_0x5a35a0);}))),this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this['Event'][_0x2acfcf(0x18f)],()=>this[_0x2acfcf(0x27d)]['onCommandExecuted'](_0x5b4d6f=>{const _0xc8fb08=_0x2acfcf;if(_0x5b4d6f['id']!==_0x89725e['id'])return;let {unitId:_0x525c91,tableId:_0x3111ff,field:_0x2c1dc0,index:_0x404f17,viewIndexes:_0x14a911}=_0x5b4d6f['params'],_0x55241b=this[_0xc8fb08(0x211)](_0x525c91);if(!_0x55241b)return;let _0x5ed3d8=_0x55241b[_0xc8fb08(0x242)](_0x3111ff);if(!_0x5ed3d8)return;let _0x54d901={'base':_0x55241b,'table':_0x5ed3d8,'field':_0x2c1dc0,'index':_0x404f17,'viewIndexes':_0x14a911};this[_0xc8fb08(0x2c9)](this[_0xc8fb08(0x231)][_0xc8fb08(0x18f)],_0x54d901);}))),this['disposeWithMe'](this[_0x2acfcf(0x1ba)](this['Event'][_0x2acfcf(0x1a1)],()=>this['_commandService']['onCommandExecuted'](_0x4bfe62=>{const _0x2f9889=_0x2acfcf;if(_0x4bfe62['id']!==_0x470e4e['id']&&_0x4bfe62['id']!==_0x30ed55['id'])return;let _0x1e78a6=_0x4bfe62[_0x2f9889(0x1fe)],{unitId:_0x138a87,tableId:_0x58744b}=_0x1e78a6,_0x1f4602=_0x1e78a6[_0x2f9889(0x2d2)]??[_0x1e78a6[_0x2f9889(0x1e1)]],_0x55fd4e=this['getBase'](_0x138a87);if(!_0x55fd4e)return;let _0x3f968e=_0x55fd4e[_0x2f9889(0x242)](_0x58744b);if(!_0x3f968e)return;let _0x58a808={'base':_0x55fd4e,'table':_0x3f968e,'records':_0x1f4602};this[_0x2f9889(0x2c9)](this[_0x2f9889(0x231)]['BaseTableRecordCreated'],_0x58a808);}))),this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this[_0x2acfcf(0x231)][_0x2acfcf(0x229)],()=>this[_0x2acfcf(0x27d)][_0x2acfcf(0x2c3)](_0x1abf9b=>{const _0x3de63f=_0x2acfcf;if(_0x1abf9b['id']!==_0x471b73['id'])return;let {unitId:_0xaab03e,tableId:_0x3f5b6d,view:_0x42ee54,index:_0x3f2ba9}=_0x1abf9b[_0x3de63f(0x1fe)],_0x5a69e7=this[_0x3de63f(0x211)](_0xaab03e);if(!_0x5a69e7)return;let _0x41d365=_0x5a69e7[_0x3de63f(0x242)](_0x3f5b6d);if(!_0x41d365)return;let _0x5278e1={'base':_0x5a69e7,'table':_0x41d365,'view':_0x42ee54,'index':_0x3f2ba9};this[_0x3de63f(0x2c9)](this['Event'][_0x3de63f(0x229)],_0x5278e1);}))),this['disposeWithMe'](this[_0x2acfcf(0x1ba)](this[_0x2acfcf(0x231)][_0x2acfcf(0x260)],()=>this[_0x2acfcf(0x27d)][_0x2acfcf(0x2c3)](_0x3da61f=>{const _0x2311fd=_0x2acfcf;if(_0x3da61f['id']!==_0x50c883['id'])return;let {unitId:_0x3e680a,tableId:_0x4ddd9d,recordId:_0x1c7889,fieldId:_0x22cbd1,value:_0x566046}=_0x3da61f['params'],_0x153b58=this['getBase'](_0x3e680a);if(!_0x153b58)return;let _0x578a77=_0x153b58['getTableById'](_0x4ddd9d);if(!_0x578a77)return;let _0x237de1=_0x578a77[_0x2311fd(0x248)](_0x22cbd1);if(!_0x237de1)return;let _0x437a7d=_0x578a77[_0x2311fd(0x1e3)](_0x1c7889);if(!_0x437a7d)return;let _0x4a109d={'base':_0x153b58,'table':_0x578a77,'field':_0x237de1,'record':_0x437a7d,'value':_0x566046};this['fireEvent'](this[_0x2311fd(0x231)][_0x2311fd(0x260)],_0x4a109d);})));}[_0x42cb2d(0x24a)](){const _0x101f76=_0x42cb2d;this[_0x101f76(0x18d)](this[_0x101f76(0x1ba)](this[_0x101f76(0x231)]['BeforeBaseHierarchyChange'],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x464ba1=>{const _0x5947f8=_0x101f76;if($(_0x464ba1,_0x54705e)){let {unitId:_0xb60f64,tableId:_0x5468f4,patches:_0x5d6520,source:_0xc4724b=_0x220938['UI']}=_0x464ba1[_0x5947f8(0x1fe)],_0x27c823=this['_getHierarchyEventContext'](_0xb60f64,_0x5468f4);if(!_0x27c823)return;this['_fireBeforeHierarchyChange'](_0x27c823[_0x5947f8(0x21d)],_0x27c823[_0x5947f8(0x269)],_0x3495d4(_0x27c823[_0x5947f8(0x269)][_0x5947f8(0x1d3)](),_0x5d6520),_0xc4724b);return;}if($(_0x464ba1,_0x1fa9ec)){let {unitId:_0x5174d7,tableId:_0x36d7f4,patches:_0x201145,source:_0x1fbd9b=_0x220938['UI']}=_0x464ba1[_0x5947f8(0x1fe)],_0x14b87a=this['_getHierarchyEventContext'](_0x5174d7,_0x36d7f4);if(!_0x14b87a)return;let _0x562047=_0x14b87a[_0x5947f8(0x269)][_0x5947f8(0x1d3)]();this[_0x5947f8(0x1dc)](_0x14b87a[_0x5947f8(0x21d)],_0x14b87a['table'],_0x3495d4(_0x562047,_0x28902e(_0x562047,_0x201145)),_0x1fbd9b);return;}if($(_0x464ba1,_0x470e4e)){let _0x433de8=_0x464ba1[_0x5947f8(0x1fe)],_0x2fc18b=this[_0x5947f8(0x1bd)](_0x433de8['unitId'],_0x433de8['tableId']);if(!_0x2fc18b)return;this['_fireBeforeHierarchyChange'](_0x2fc18b[_0x5947f8(0x21d)],_0x2fc18b[_0x5947f8(0x269)],_0x3474ef(_0x2fc18b['table'][_0x5947f8(0x1d3)](),[_0x433de8[_0x5947f8(0x1e1)]]),_0x433de8[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x30ed55)){let _0x108a6f=_0x464ba1['params'],_0x3cdc24=this[_0x5947f8(0x1bd)](_0x108a6f[_0x5947f8(0x189)],_0x108a6f[_0x5947f8(0x1bf)]);if(!_0x3cdc24)return;this[_0x5947f8(0x1dc)](_0x3cdc24[_0x5947f8(0x21d)],_0x3cdc24[_0x5947f8(0x269)],_0x3474ef(_0x3cdc24['table']['getTable'](),_0x108a6f[_0x5947f8(0x2d2)]),_0x108a6f[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x328e28)){let _0xf3d849=_0x464ba1['params'],_0x59a3a4=this[_0x5947f8(0x1bd)](_0xf3d849['unitId'],_0xf3d849[_0x5947f8(0x1bf)]);if(!_0x59a3a4)return;this[_0x5947f8(0x1dc)](_0x59a3a4[_0x5947f8(0x21d)],_0x59a3a4[_0x5947f8(0x269)],_0x3474ef(_0x59a3a4[_0x5947f8(0x269)][_0x5947f8(0x1d3)](),[_0xf3d849[_0x5947f8(0x1e1)]]),_0xf3d849[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x146970)){let _0x30106c=_0x464ba1[_0x5947f8(0x1fe)],_0x2eae67=this['_getHierarchyEventContext'](_0x30106c[_0x5947f8(0x189)],_0x30106c[_0x5947f8(0x1bf)]);if(!_0x2eae67)return;let _0x14de50=_0x2eae67[_0x5947f8(0x269)]['getTable'](),_0x32aebf=_0x30106c[_0x5947f8(0x21c)]??_0x1d8e8c(_0x14de50),_0x486bf6=_0x4aa1d4(_0x14de50,_0x32aebf)[_0x5947f8(0x1e4)][_0x5947f8(0x257)](_0x30106c[_0x5947f8(0x192)])??null;this[_0x5947f8(0x1dc)](_0x2eae67[_0x5947f8(0x21d)],_0x2eae67['table'],[{'tableId':_0x30106c[_0x5947f8(0x1bf)],'fieldId':_0x32aebf,'recordId':_0x30106c[_0x5947f8(0x192)],'oldParentRecordId':_0x486bf6,'parentRecordId':_0x30106c[_0x5947f8(0x263)]}],_0x30106c[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x38016d)){let _0x561caf=_0x464ba1['params'],_0x144514=this[_0x5947f8(0x1bd)](_0x561caf[_0x5947f8(0x189)],_0x561caf[_0x5947f8(0x1bf)]);if(!_0x144514)return;let _0x5f4738=_0x561caf[_0x5947f8(0x21c)]??_0x1d8e8c(_0x144514[_0x5947f8(0x269)]['getTable']());this[_0x5947f8(0x1dc)](_0x144514[_0x5947f8(0x21d)],_0x144514[_0x5947f8(0x269)],[{'tableId':_0x561caf[_0x5947f8(0x1bf)],'fieldId':_0x5f4738,'recordId':_0x561caf[_0x5947f8(0x1e1)]['id'],'oldParentRecordId':null,'parentRecordId':_0x561caf[_0x5947f8(0x263)]}],_0x561caf[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x36855b)){let _0xb66809=_0x464ba1[_0x5947f8(0x1fe)],_0x6d1287=this[_0x5947f8(0x1bd)](_0xb66809[_0x5947f8(0x189)],_0xb66809['tableId']);if(!_0x6d1287)return;this['_fireBeforeHierarchyChange'](_0x6d1287[_0x5947f8(0x21d)],_0x6d1287[_0x5947f8(0x269)],_0x38e02b(_0x6d1287[_0x5947f8(0x269)][_0x5947f8(0x1d3)](),[_0xb66809[_0x5947f8(0x192)]]),_0xb66809['source']??_0x220938['UI']);return;}if($(_0x464ba1,_0x259e76)){let _0x103c25=_0x464ba1['params'],_0x258e9c=this['_getHierarchyEventContext'](_0x103c25[_0x5947f8(0x189)],_0x103c25['tableId']);if(!_0x258e9c)return;this['_fireBeforeHierarchyChange'](_0x258e9c[_0x5947f8(0x21d)],_0x258e9c[_0x5947f8(0x269)],_0x38e02b(_0x258e9c['table'][_0x5947f8(0x1d3)](),_0x103c25[_0x5947f8(0x20d)]),_0x103c25[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if(!$(_0x464ba1,_0x50c883))return;let _0x1f1f9c=_0x464ba1[_0x5947f8(0x1fe)],_0x10bdc0=this[_0x5947f8(0x1bd)](_0x1f1f9c[_0x5947f8(0x189)],_0x1f1f9c[_0x5947f8(0x1bf)]);if(!_0x10bdc0)return;let _0x2767d1=_0x10bdc0[_0x5947f8(0x269)][_0x5947f8(0x1d3)]();if(!_0x1d243e(_0x2767d1)['includes'](_0x1f1f9c['fieldId']))return;let _0x4c03c2=_0x4aa1d4(_0x2767d1,_0x1f1f9c[_0x5947f8(0x21c)])[_0x5947f8(0x1e4)][_0x5947f8(0x257)](_0x1f1f9c[_0x5947f8(0x192)])??null,_0x1c4dd5=_0x46817c(_0x1f1f9c[_0x5947f8(0x2b1)])[0x0]??null;_0x4c03c2!==_0x1c4dd5&&this[_0x5947f8(0x1dc)](_0x10bdc0['base'],_0x10bdc0[_0x5947f8(0x269)],[{'tableId':_0x1f1f9c[_0x5947f8(0x1bf)],'fieldId':_0x1f1f9c[_0x5947f8(0x21c)],'recordId':_0x1f1f9c[_0x5947f8(0x192)],'oldParentRecordId':_0x4c03c2,'parentRecordId':_0x1c4dd5}],_0x1f1f9c[_0x5947f8(0x2b5)]??_0x220938['UI']);}))),this['disposeWithMe'](this[_0x101f76(0x1ba)](this[_0x101f76(0x231)][_0x101f76(0x191)],()=>this['_commandService']['beforeCommandExecuted'](_0x568220=>{const _0x5d2ed3=_0x101f76;if(_0x568220['id']!==_0x1d6ad3['id'])return;let {unitId:_0x470e46,table:_0x3dea97,index:_0x2e80a7}=_0x568220['params'],_0x148d5b=this[_0x5d2ed3(0x211)](_0x470e46);if(!_0x148d5b)return;let _0x357b77={'base':_0x148d5b,'table':_0x3dea97,'index':_0x2e80a7};if(this[_0x5d2ed3(0x2c9)](this[_0x5d2ed3(0x231)][_0x5d2ed3(0x191)],_0x357b77),_0x357b77[_0x5d2ed3(0x298)])throw new _0x3f6a5c();}))),this[_0x101f76(0x18d)](this['registerEventHandler'](this[_0x101f76(0x231)][_0x101f76(0x232)],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x424dfc=>{const _0x550c67=_0x101f76;if(_0x424dfc['id']!==_0x89725e['id'])return;let {unitId:_0x126094,tableId:_0x5e0407,field:_0x502c58,index:_0x5760f7,viewIndexes:_0x469202}=_0x424dfc[_0x550c67(0x1fe)],_0x553ac2=this['getBase'](_0x126094);if(!_0x553ac2)return;let _0x1e6977=_0x553ac2['getTableById'](_0x5e0407);if(!_0x1e6977)return;let _0x2bba81={'base':_0x553ac2,'table':_0x1e6977,'field':_0x502c58,'index':_0x5760f7,'viewIndexes':_0x469202};if(this[_0x550c67(0x2c9)](this[_0x550c67(0x231)][_0x550c67(0x232)],_0x2bba81),_0x2bba81[_0x550c67(0x298)])throw new _0x3f6a5c();}))),this[_0x101f76(0x18d)](this['registerEventHandler'](this['Event']['BeforeBaseTableRecordCreate'],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x1cdee7=>{const _0x100094=_0x101f76;if(_0x1cdee7['id']!==_0x470e4e['id']&&_0x1cdee7['id']!==_0x30ed55['id'])return;let _0xeaf0e5=_0x1cdee7[_0x100094(0x1fe)],{unitId:_0xcd5528,tableId:_0x585ae5}=_0xeaf0e5,_0x2d123a=_0xeaf0e5[_0x100094(0x2d2)]??[_0xeaf0e5['record']],_0x630c57=this['getBase'](_0xcd5528);if(!_0x630c57)return;let _0x28b341=_0x630c57[_0x100094(0x242)](_0x585ae5);if(!_0x28b341)return;let _0x3df609={'base':_0x630c57,'table':_0x28b341,'records':_0x2d123a};if(this['fireEvent'](this[_0x100094(0x231)][_0x100094(0x2b7)],_0x3df609),_0x3df609[_0x100094(0x298)])throw new _0x3f6a5c();}))),this[_0x101f76(0x18d)](this[_0x101f76(0x1ba)](this[_0x101f76(0x231)][_0x101f76(0x17a)],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x695f19=>{const _0x5c4ac4=_0x101f76;if(_0x695f19['id']!==_0x471b73['id'])return;let {unitId:_0x615171,tableId:_0x4ed7f1,view:_0x31d990,index:_0x14a6dc}=_0x695f19[_0x5c4ac4(0x1fe)],_0x4f56d0=this[_0x5c4ac4(0x211)](_0x615171);if(!_0x4f56d0)return;let _0x2eb5a3=_0x4f56d0[_0x5c4ac4(0x242)](_0x4ed7f1);if(!_0x2eb5a3)return;let _0xd918da={'base':_0x4f56d0,'table':_0x2eb5a3,'view':_0x31d990,'index':_0x14a6dc};if(this[_0x5c4ac4(0x2c9)](this[_0x5c4ac4(0x231)][_0x5c4ac4(0x17a)],_0xd918da),_0xd918da[_0x5c4ac4(0x298)])throw new _0x3f6a5c();}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x101f76(0x203)],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x486471=>{const _0xad703b=_0x101f76;if(_0x486471['id']!==_0x50c883['id'])return;let {unitId:_0x577c79,tableId:_0x365855,recordId:_0xebce0a,fieldId:_0x322e7f,value:_0x23772a}=_0x486471['params'],_0x25cb8a=this[_0xad703b(0x211)](_0x577c79);if(!_0x25cb8a)return;let _0x313f7f=_0x25cb8a[_0xad703b(0x242)](_0x365855);if(!_0x313f7f)return;let _0xd61592=_0x313f7f[_0xad703b(0x248)](_0x322e7f);if(!_0xd61592)return;let _0x50c5c9=_0x313f7f[_0xad703b(0x1e3)](_0xebce0a);if(!_0x50c5c9)return;let _0x25eb26={'base':_0x25cb8a,'table':_0x313f7f,'field':_0xd61592,'record':_0x50c5c9,'value':_0x23772a};if(this[_0xad703b(0x2c9)](this[_0xad703b(0x231)][_0xad703b(0x203)],_0x25eb26),_0x25eb26[_0xad703b(0x298)])throw new _0x3f6a5c();})));}[_0x42cb2d(0x1bd)](_0xeb111b,_0x56d918){const _0x590c73=_0x42cb2d;let _0x1fb593=this[_0x590c73(0x211)](_0xeb111b),_0x34348f=_0x1fb593==null?void 0x0:_0x1fb593['getTableById'](_0x56d918);return _0x1fb593&&_0x34348f?{'base':_0x1fb593,'table':_0x34348f}:null;}[_0x42cb2d(0x1dc)](_0x3cc8b9,_0x2e8ec3,_0x5a5146,_0x4a1d06){const _0x2a3c90=_0x42cb2d;if(!_0x5a5146[_0x2a3c90(0x1b9)])return;let _0x4fc0d8={'base':_0x3cc8b9,'table':_0x2e8ec3,'changes':_0x5a5146,'source':_0x4a1d06};if(this[_0x2a3c90(0x2c9)](this[_0x2a3c90(0x231)][_0x2a3c90(0x1f4)],_0x4fc0d8),_0x4fc0d8[_0x2a3c90(0x298)])throw new _0x3f6a5c();}};function $(_0x285b17,_0x676047){const _0x3b9146=_0x42cb2d;return _0x285b17['id']===_0x676047['id']&&_0x285b17[_0x3b9146(0x1fe)]!==void 0x0;}_0x13f4e8[_0x42cb2d(0x205)](Et);var Dt=class extends _0x3c7e49{get[_0x42cb2d(0x22a)](){return _0x334db4;}get[_0x42cb2d(0x2c6)](){return _0x5a09a5;}get[_0x42cb2d(0x1ef)](){return _0xf13532;}get[_0x42cb2d(0x2bf)](){return ot;}get[_0x42cb2d(0x17c)](){return _0x2dedc2;}get['BaseConditionalColorTarget'](){return _0x3ea519;}get[_0x42cb2d(0x1cf)](){return _0x47fd54;}get['BaseConditionalDateMode'](){return _0x756c91;}get[_0x42cb2d(0x254)](){return _0x42481e;}get[_0x42cb2d(0x264)](){return _0x220938;}get[_0x42cb2d(0x2a7)](){return _0x1d94db;}get[_0x42cb2d(0x17e)](){return _0x125b1b;}get[_0x42cb2d(0x25f)](){return _0x50fcc1;}};_0x3c7e49[_0x42cb2d(0x205)](Dt);function _0x4bdd(_0x8ee41c,_0x109b4a){_0x8ee41c=_0x8ee41c-0x172;const _0x1281bb=_0x1281();let _0x4bdd15=_0x1281bb[_0x8ee41c];return _0x4bdd15;}var Ot=class extends _0x3e96b9{get['BaseTableCreated'](){const _0x597a0b=_0x42cb2d;return _0x597a0b(0x2cc);}get[_0x42cb2d(0x191)](){const _0x30bb05=_0x42cb2d;return _0x30bb05(0x191);}get['BaseTableFieldCreated'](){const _0x2d67a7=_0x42cb2d;return _0x2d67a7(0x18f);}get[_0x42cb2d(0x232)](){const _0x3f50f4=_0x42cb2d;return _0x3f50f4(0x232);}get['BaseTableRecordCreated'](){return'BaseTableRecordCreated';}get[_0x42cb2d(0x2b7)](){const _0x44c9a6=_0x42cb2d;return _0x44c9a6(0x2b7);}get[_0x42cb2d(0x229)](){const _0x25733f=_0x42cb2d;return _0x25733f(0x229);}get[_0x42cb2d(0x17a)](){const _0x117adc=_0x42cb2d;return _0x117adc(0x17a);}get['BaseTableCellValueChanged'](){const _0x31aa5a=_0x42cb2d;return _0x31aa5a(0x260);}get[_0x42cb2d(0x203)](){return'BeforeBaseTableCellValueChange';}get[_0x42cb2d(0x200)](){const _0x27c6a9=_0x42cb2d;return _0x27c6a9(0x200);}get[_0x42cb2d(0x1f4)](){const _0x538c39=_0x42cb2d;return _0x538c39(0x1f4);}};_0x3e96b9['extend'](Ot);export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};
|