@univerjs-pro/bases 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/lib/cjs/config-BHbUCCo4.js +1 -0
  2. package/lib/cjs/facade.js +1 -1
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/locale/ar-SA.js +1 -1
  5. package/lib/cjs/locale/ca-ES.js +1 -1
  6. package/lib/cjs/locale/de-DE.js +1 -1
  7. package/lib/cjs/locale/en-US.js +1 -1
  8. package/lib/cjs/locale/es-ES.js +1 -1
  9. package/lib/cjs/locale/fa-IR.js +1 -1
  10. package/lib/cjs/locale/fr-FR.js +1 -1
  11. package/lib/cjs/locale/id-ID.js +1 -1
  12. package/lib/cjs/locale/it-IT.js +1 -1
  13. package/lib/cjs/locale/ja-JP.js +1 -1
  14. package/lib/cjs/locale/ko-KR.js +1 -1
  15. package/lib/cjs/locale/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/vi-VN.js +1 -1
  20. package/lib/cjs/locale/zh-CN.js +1 -1
  21. package/lib/cjs/locale/zh-HK.js +1 -1
  22. package/lib/cjs/locale/zh-TW.js +1 -1
  23. package/lib/cjs/worker.js +1 -1
  24. package/lib/config-C9tN8Oda.js +1 -0
  25. package/lib/es/config-C9tN8Oda.js +1 -0
  26. package/lib/es/facade.js +1 -1
  27. package/lib/es/index.js +1 -1
  28. package/lib/es/locale/ar-SA.js +1 -1
  29. package/lib/es/locale/ca-ES.js +1 -1
  30. package/lib/es/locale/de-DE.js +1 -1
  31. package/lib/es/locale/en-US.js +1 -1
  32. package/lib/es/locale/es-ES.js +1 -1
  33. package/lib/es/locale/fa-IR.js +1 -1
  34. package/lib/es/locale/fr-FR.js +1 -1
  35. package/lib/es/locale/id-ID.js +1 -1
  36. package/lib/es/locale/it-IT.js +1 -1
  37. package/lib/es/locale/ja-JP.js +1 -1
  38. package/lib/es/locale/ko-KR.js +1 -1
  39. package/lib/es/locale/pl-PL.js +1 -1
  40. package/lib/es/locale/pt-BR.js +1 -1
  41. package/lib/es/locale/ru-RU.js +1 -1
  42. package/lib/es/locale/sk-SK.js +1 -1
  43. package/lib/es/locale/vi-VN.js +1 -1
  44. package/lib/es/locale/zh-CN.js +1 -1
  45. package/lib/es/locale/zh-HK.js +1 -1
  46. package/lib/es/locale/zh-TW.js +1 -1
  47. package/lib/es/worker.js +1 -1
  48. package/lib/facade.js +1 -1
  49. package/lib/index.js +1 -1
  50. package/lib/locale/ar-SA.js +1 -1
  51. package/lib/locale/ca-ES.js +1 -1
  52. package/lib/locale/de-DE.js +1 -1
  53. package/lib/locale/en-US.js +1 -1
  54. package/lib/locale/es-ES.js +1 -1
  55. package/lib/locale/fa-IR.js +1 -1
  56. package/lib/locale/fr-FR.js +1 -1
  57. package/lib/locale/id-ID.js +1 -1
  58. package/lib/locale/it-IT.js +1 -1
  59. package/lib/locale/ja-JP.js +1 -1
  60. package/lib/locale/ko-KR.js +1 -1
  61. package/lib/locale/pl-PL.js +1 -1
  62. package/lib/locale/pt-BR.js +1 -1
  63. package/lib/locale/ru-RU.js +1 -1
  64. package/lib/locale/sk-SK.js +1 -1
  65. package/lib/locale/vi-VN.js +1 -1
  66. package/lib/locale/zh-CN.js +1 -1
  67. package/lib/locale/zh-HK.js +1 -1
  68. package/lib/locale/zh-TW.js +1 -1
  69. package/lib/umd/facade.js +1 -1
  70. package/lib/umd/index.js +1 -1
  71. package/lib/umd/locale/ar-SA.js +1 -1
  72. package/lib/umd/locale/ca-ES.js +1 -1
  73. package/lib/umd/locale/de-DE.js +1 -1
  74. package/lib/umd/locale/en-US.js +1 -1
  75. package/lib/umd/locale/es-ES.js +1 -1
  76. package/lib/umd/locale/fa-IR.js +1 -1
  77. package/lib/umd/locale/fr-FR.js +1 -1
  78. package/lib/umd/locale/id-ID.js +1 -1
  79. package/lib/umd/locale/it-IT.js +1 -1
  80. package/lib/umd/locale/ja-JP.js +1 -1
  81. package/lib/umd/locale/ko-KR.js +1 -1
  82. package/lib/umd/locale/pl-PL.js +1 -1
  83. package/lib/umd/locale/pt-BR.js +1 -1
  84. package/lib/umd/locale/ru-RU.js +1 -1
  85. package/lib/umd/locale/sk-SK.js +1 -1
  86. package/lib/umd/locale/vi-VN.js +1 -1
  87. package/lib/umd/locale/zh-CN.js +1 -1
  88. package/lib/umd/locale/zh-HK.js +1 -1
  89. package/lib/umd/locale/zh-TW.js +1 -1
  90. package/lib/worker.js +1 -1
  91. package/package.json +8 -8
  92. package/lib/cjs/config-CTOS-Fzg.js +0 -1
  93. package/lib/config-DDy_jw9I.js +0 -1
  94. package/lib/es/config-DDy_jw9I.js +0 -1
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x6a5b69=_0x1896;(function(_0x2280e7,_0x4c926c){const _0x540a49=_0x1896,_0x29315f=_0x2280e7();while(!![]){try{const _0x40d40b=parseInt(_0x540a49(0x1e8))/0x1*(-parseInt(_0x540a49(0x230))/0x2)+parseInt(_0x540a49(0x2c8))/0x3*(parseInt(_0x540a49(0x23a))/0x4)+parseInt(_0x540a49(0x19c))/0x5*(-parseInt(_0x540a49(0x20f))/0x6)+-parseInt(_0x540a49(0x1de))/0x7*(parseInt(_0x540a49(0x2b5))/0x8)+-parseInt(_0x540a49(0x25f))/0x9*(-parseInt(_0x540a49(0x17e))/0xa)+parseInt(_0x540a49(0x1b6))/0xb+parseInt(_0x540a49(0x18c))/0xc*(-parseInt(_0x540a49(0x1d2))/0xd);if(_0x40d40b===_0x4c926c)break;else _0x29315f['push'](_0x29315f['shift']());}catch(_0x346ff3){_0x29315f['push'](_0x29315f['shift']());}}}(_0x37f6,0xdf3d9));import{ApplyBaseJson1Mutation as _0x4664de,BASE_TABLE_NAME_REQUIREMENTS as _0x5963f1,BaseConditionalColorRuleUpdateType as _0x21d239,BaseEventSource as _0x43f637,BaseHierarchyErrorCode as _0x53ea69,BatchCreateBaseRecordsCommand as _0x28e204,BatchDeleteBaseRecordsCommand as _0x16f69d,ChangeBaseFieldTypeCommand as _0x1af08b,CreateBaseChildRecordCommand as _0x4cd8a9,CreateBaseFieldCommand as _0x2ecef1,CreateBaseRecordCommand as _0x817aeb,CreateBaseTableCommand as _0x118e4c,CreateBaseViewCommand as _0x4efbdd,DeleteBaseFieldCommand as _0x3ceb79,DeleteBaseRecordCommand as _0x392c6f,DeleteBaseTableCommand as _0x480168,DeleteBaseViewCommand as _0x1c08cd,DuplicateBaseRecordCommand as _0x499a45,IBaseProjectionService as _0x483014,MoveBaseFieldCommand as _0x1e2afa,MoveBaseHierarchyRecordCommand as _0x448699,MoveBaseViewCommand as _0x1008cd,RenameBaseTableCommand as _0x264dca,RenameBaseViewCommand as _0x11dffb,SetBaseNameCommand as _0x280ebb,SetBasePermissionCommand as _0x59d07a,SetBasePermissionsCommand as _0x6f707f,SetBaseRangeValuesCommand as _0x50c929,SetBaseRecordValuesCommand as _0x2cebcc,SetBaseTableHierarchyFieldCommand as _0x2bda89,SetBaseViewFieldOrderCommand as _0x26a020,SetBaseViewFieldVisibleCommand as _0x5ce8b2,SetBaseViewFieldWidthCommand as _0x4154ed,SetBaseViewFilterCommand as _0x1e5f36,SetBaseViewGroupCommand as _0x545b5d,SetBaseViewSortCommand as _0x15d9fe,UpdateBaseCellCommand as _0x3a32fc,UpdateBaseFieldCommand as _0x7b3c97,UpdateBaseRecordOrderCommand as _0x43adcc,UpdateBaseViewConditionalColorRulesCommand as _0x49c748,UpdateBaseViewConfigCommand as _0x403e74,ValidateBaseFormulaCommand as _0x43f42c,buildBaseHierarchyIndex as _0x5b61b7,canEditBaseTargets as _0x10bbe0,copyBaseTableSnapshot as _0x16e20,createUniqueBaseTableName as _0x279ff1,ensureBaseTableCellLayout as _0xff35e2,getActiveBaseHierarchyFieldIds as _0x327c28,getBaseCellValue as _0x4e5b69,getBaseFieldPermissionObjectId as _0x219de7,getBaseFormulaTableName as _0x193fc0,getBaseHierarchyDeletePromotions as _0x57d1f1,getBasePermissionValue as _0x2f3e96,getBaseRecordPermissionObjectId as _0x1b9662,getBaseTablePermissionObjectId as _0x2d8a33,getBaseViewPermissionObjectId as _0x33ee0c,getRecordLinkFieldConfig as _0x3dfa8b,matchesBaseCondition as _0x17c967,parseRecordLinkIds as _0x2b8d32,resolveBaseHierarchyFieldId as _0x38a87b,resolveBaseRangeHierarchyPatches as _0x1b3dee,searchBaseTable as _0x729fff,serializeRecordLinkIds as _0xe4f0db,validateBaseHierarchyRecordCreations as _0x6f896b,validateBaseHierarchyRecordPatches as _0x22441f,validateBaseTableName as _0x4fd34e,validateRecordLinkValue as _0x46f65b}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x8c29d8,BaseConditionalColorOperator as _0x3f8d13,BaseConditionalColorTarget as _0x44652a,BaseConditionalDateMode as _0x206636,BaseFieldType as _0x1dcf64,BaseFilterConjunction as _0x4157c8,BaseFilterOperator as _0x394202,BaseHierarchyInvalidReason as _0x549f37,BaseRecordLinkRole as _0x546818,BaseSortDirection as _0x35c88d,BaseViewType as _0x144585,CanceledError as _0x35b56f,ICommandService as _0x1047ac,IPermissionService as _0x9f57f5,IResourceLoaderService as _0x595187,ImageSourceType as _0x586c40,Inject as _0x547f59,Injector as _0x3c554c,Tools as _0x2517f7,UniverInstanceType as _0x523a99,createDefaultBaseTableSnapshot as _0xe17d11,generateRandomId as _0x49e131}from'@univerjs/core';import*as _0x4e29a4 from'@univerjs/core/facade';import{FBaseInitialable as _0x2df259,FEnum as _0x21148e,FEventName as _0xf4815a,FUniver as _0x61ceef}from'@univerjs/core/facade';import{UnitAction as _0x1513c7}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x2057d2}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x22f62b,_0x4a728a,_0x31ca89){const _0x2216e7=_0x1896;this[_0x2216e7(0x23e)]=_0x22f62b,this[_0x2216e7(0x1ec)]=_0x4a728a,this[_0x2216e7(0x2a0)]=_0x31ca89;}async[_0x6a5b69(0x1b2)](_0x2a423b){const _0x57392e=_0x6a5b69;return this[_0x57392e(0x1ec)]['executeCommand'](_0x6f707f['id'],{'unitId':this[_0x57392e(0x23e)],'changes':_0x2a423b});}async[_0x6a5b69(0x2a9)](_0x5a394f,_0x115f8b){const _0x27cd7b=_0x6a5b69;await this[_0x27cd7b(0x1ec)][_0x27cd7b(0x2cc)](_0x59d07a['id'],{'unitId':this[_0x27cd7b(0x23e)],'objectId':this[_0x27cd7b(0x23e)],'action':_0x5a394f,'value':_0x115f8b});}['getPoint'](_0x26a0a9){return _0x2f3e96(this['_permissionService'],this['_unitId'],this['_unitId'],_0x26a0a9);}async['setEditable'](_0x1a9cee=!0x0){const _0x153c48=_0x6a5b69;await this[_0x153c48(0x1ec)]['executeCommand'](_0x59d07a['id'],{'unitId':this['_unitId'],'objectId':this['_unitId'],'action':_0x1513c7['Edit'],'value':_0x1a9cee});}async[_0x6a5b69(0x25b)](){const _0x53a7d9=_0x6a5b69;await this[_0x53a7d9(0x1ec)][_0x53a7d9(0x2cc)](_0x59d07a['id'],{'unitId':this[_0x53a7d9(0x23e)],'objectId':this['_unitId'],'action':_0x1513c7['Edit'],'value':!0x1});}[_0x6a5b69(0x1f6)](){const _0x94a6ea=_0x6a5b69;return _0x2f3e96(this[_0x94a6ea(0x2a0)],this[_0x94a6ea(0x23e)],this[_0x94a6ea(0x23e)],_0x1513c7[_0x94a6ea(0x1a6)]);}},L=class{constructor(_0xe27e24,_0x891c6e,_0x5ebe2c,_0x46818c,_0x2f45c6){const _0x11f554=_0x6a5b69;this['_unitId']=_0xe27e24,this[_0x11f554(0x299)]=_0x891c6e,this['_parentObjectIds']=_0x5ebe2c,this['_commandService']=_0x46818c,this[_0x11f554(0x2a0)]=_0x2f45c6;}async[_0x6a5b69(0x177)](_0x37a54d=!0x0){const _0x33257d=_0x6a5b69;await this[_0x33257d(0x1ec)][_0x33257d(0x2cc)](_0x59d07a['id'],{'unitId':this[_0x33257d(0x23e)],'objectId':this[_0x33257d(0x299)],'action':_0x1513c7['Edit'],'value':_0x37a54d});}async[_0x6a5b69(0x25b)](){const _0x5d24ca=_0x6a5b69;await this[_0x5d24ca(0x1ec)][_0x5d24ca(0x2cc)](_0x59d07a['id'],{'unitId':this[_0x5d24ca(0x23e)],'objectId':this[_0x5d24ca(0x299)],'action':_0x1513c7[_0x5d24ca(0x1a6)],'value':!0x1});}[_0x6a5b69(0x1f6)](){const _0x312bca=_0x6a5b69;return _0x10bbe0(this['_permissionService'],this['_unitId'],[...this[_0x312bca(0x259)],this['_objectId']]);}};function R(_0x525d2c,_0x98e06d){return function(_0x2ece84,_0x150306){_0x98e06d(_0x2ece84,_0x150306,_0x525d2c);};}function z(_0x9d82d1,_0x119853,_0x37d23d,_0x34e991){const _0x46e928=_0x6a5b69;var _0x21f56b=arguments[_0x46e928(0x273)],_0x1c78e8=_0x21f56b<0x3?_0x119853:_0x34e991===null?_0x34e991=Object[_0x46e928(0x171)](_0x119853,_0x37d23d):_0x34e991,_0xafbc3b;if(typeof Reflect==_0x46e928(0x1d4)&&typeof Reflect[_0x46e928(0x1cd)]==_0x46e928(0x1a4))_0x1c78e8=Reflect[_0x46e928(0x1cd)](_0x9d82d1,_0x119853,_0x37d23d,_0x34e991);else{for(var _0x57b5a1=_0x9d82d1['length']-0x1;_0x57b5a1>=0x0;_0x57b5a1--)(_0xafbc3b=_0x9d82d1[_0x57b5a1])&&(_0x1c78e8=(_0x21f56b<0x3?_0xafbc3b(_0x1c78e8):_0x21f56b>0x3?_0xafbc3b(_0x119853,_0x37d23d,_0x1c78e8):_0xafbc3b(_0x119853,_0x37d23d))||_0x1c78e8);}return _0x21f56b>0x3&&_0x1c78e8&&Object[_0x46e928(0x267)](_0x119853,_0x37d23d,_0x1c78e8),_0x1c78e8;}let B=class{constructor(_0x621103,_0x5f19f9,_0x19c8ba,_0x4f8b66,_0x2d1ba5){const _0x29240b=_0x6a5b69;this[_0x29240b(0x178)]=_0x621103,this[_0x29240b(0x257)]=_0x5f19f9,this['_fieldId']=_0x19c8ba,this[_0x29240b(0x1ec)]=_0x4f8b66,this[_0x29240b(0x2a0)]=_0x2d1ba5;}[_0x6a5b69(0x271)](){return this['_fieldId'];}[_0x6a5b69(0x167)](){const _0xdb37c5=_0x6a5b69;let _0x4c007d=this[_0xdb37c5(0x257)]['getId']();return new L(this[_0xdb37c5(0x178)][_0xdb37c5(0x271)](),_0x219de7(_0x4c007d,this['_fieldId']),[_0x2d8a33(_0x4c007d)],this[_0xdb37c5(0x1ec)],this['_permissionService']);}[_0x6a5b69(0x204)](){const _0x2ee26a=_0x6a5b69;return this[_0x2ee26a(0x233)]();}[_0x6a5b69(0x2bf)](){const _0x2325f8=_0x6a5b69;return this['_getField']()[_0x2325f8(0x258)];}[_0x6a5b69(0x287)](){const _0x52c3e6=_0x6a5b69;return this['_getField']()[_0x52c3e6(0x18d)];}[_0x6a5b69(0x262)](){const _0x4560ea=_0x6a5b69;return this[_0x4560ea(0x233)]()[_0x4560ea(0x2bb)];}[_0x6a5b69(0x202)](){const _0x14f5d4=_0x6a5b69;return this[_0x14f5d4(0x233)]()[_0x14f5d4(0x1b0)];}['getDescription'](){const _0x59deb0=_0x6a5b69;return this[_0x59deb0(0x233)]()['description'];}[_0x6a5b69(0x2a8)](){const _0x301de6=_0x6a5b69;return!!this[_0x301de6(0x233)]()[_0x301de6(0x1a5)];}[_0x6a5b69(0x16c)](_0x57e183){const _0x5cf7f5=_0x6a5b69;return this[_0x5cf7f5(0x2be)]({'name':_0x57e183});}[_0x6a5b69(0x1e1)](_0x595400,_0x4159fc){const _0x494b56=_0x6a5b69;return this[_0x494b56(0x2be)]({'config':_0x595400},_0x4159fc);}[_0x6a5b69(0x28f)](_0x5aa543){const _0x69d747=_0x6a5b69;return this[_0x69d747(0x2be)]({'defaultValue':_0x5aa543});}['update'](_0xab7651,_0x504df5){const _0x57f949=_0x6a5b69;let _0x233124=this[_0x57f949(0x233)]()[_0x57f949(0x18d)];return(_0xab7651[_0x57f949(0x18d)]??_0x233124)===_0x1dcf64['Formula']&&(Object[_0x57f949(0x174)][_0x57f949(0x280)][_0x57f949(0x20a)](_0xab7651,_0x57f949(0x2bb))||_0xab7651[_0x57f949(0x18d)]===_0x1dcf64[_0x57f949(0x269)])&&!this[_0x57f949(0x1ef)](_0x504df5)?!0x1:this['_commandService'][_0x57f949(0x1d5)](_0x7b3c97['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x57f949(0x257)][_0x57f949(0x271)](),'fieldId':this[_0x57f949(0x21b)],'patch':_0xab7651});}[_0x6a5b69(0x236)](_0x362258,_0x4b20e6={},_0x1fcc2d){const _0x413e93=_0x6a5b69;return _0x362258===_0x1dcf64[_0x413e93(0x269)]&&!this['_writeFormulaExternalReferences'](_0x1fcc2d)?!0x1:this[_0x413e93(0x1ec)]['syncExecuteCommand'](_0x1af08b['id'],{'unitId':this['_base'][_0x413e93(0x271)](),'tableId':this[_0x413e93(0x257)]['getId'](),'fieldId':this[_0x413e93(0x21b)],'input':{'type':_0x362258,'config':_0x4b20e6}});}[_0x6a5b69(0x1f2)](){const _0x2b3daa=_0x6a5b69;return this[_0x2b3daa(0x1ec)][_0x2b3daa(0x1d5)](_0x3ceb79['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x2b3daa(0x257)][_0x2b3daa(0x271)](),'fieldId':this[_0x2b3daa(0x21b)]});}['move'](_0x372a48){const _0x926c35=_0x6a5b69;return this[_0x926c35(0x1ec)]['syncExecuteCommand'](_0x1e2afa['id'],{'unitId':this[_0x926c35(0x178)][_0x926c35(0x271)](),'tableId':this['_table']['getId'](),'fieldId':this[_0x926c35(0x21b)],'target':_0x372a48});}['_getField'](){const _0x2f345a=_0x6a5b69;let _0x2b211b=this['_table'][_0x2f345a(0x28e)]()[_0x2f345a(0x243)][this[_0x2f345a(0x21b)]];if(!_0x2b211b)throw Error(_0x2f345a(0x28d)+this[_0x2f345a(0x21b)]+_0x2f345a(0x2ca));return _0x2b211b;}['_writeFormulaExternalReferences'](_0x3f8fb5){const _0x410927=_0x6a5b69;if(!_0x3f8fb5||!Array['isArray'](_0x3f8fb5[_0x410927(0x198)]))return console['warn'](_0x410927(0x1d3)),!0x1;if(_0x3f8fb5['externalReferences'][_0x410927(0x273)]===0x0)return!0x0;let _0x59a6cf=this['_commandService'][_0x410927(0x1d5)](_0x2057d2['id'],{'unitId':this[_0x410927(0x178)][_0x410927(0x271)](),'references':_0x3f8fb5['externalReferences']});return _0x59a6cf||console[_0x410927(0x1f8)](_0x410927(0x24e)),_0x59a6cf;}};B=z([R(0x3,_0x1047ac),R(0x4,_0x9f57f5)],B);let ot=function(_0xd64cf){const _0x377efe=_0x6a5b69;return _0xd64cf['Id']='id',_0xd64cf[_0x377efe(0x27a)]=_0x377efe(0x258),_0xd64cf[_0x377efe(0x263)]=_0x377efe(0x28c),_0xd64cf;}({});function V(_0x66ddd3){const _0x122c39=_0x6a5b69;return!!(_0x66ddd3&&_0x66ddd3[_0x122c39(0x209)]!==!0x0&&_0x66ddd3['type']!==_0x1dcf64[_0x122c39(0x16f)]);}function H(_0x5683ce,_0x4ec3c7,_0x129e7c='id'){const _0x205291=_0x6a5b69;if(!_0x4ec3c7)return{};let _0x21ae9a={};return Object[_0x205291(0x1ae)](_0x4ec3c7)['forEach'](([_0x217a9f,_0x21e401])=>{const _0x4b9bc0=_0x205291;let _0x353f93=ct(_0x5683ce,_0x217a9f,_0x129e7c);_0x21ae9a[_0x353f93]=st(_0x5683ce[_0x4b9bc0(0x243)][_0x353f93],_0x21e401);}),_0x21ae9a;}function st(_0x359761,_0x178423){const _0x1f332c=_0x6a5b69;if((_0x359761==null?void 0x0:_0x359761['type'])!==_0x1dcf64['Attachment']||_0x178423==null)return _0x178423;if(!Array['isArray'](_0x178423))throw TypeError(_0x1f332c(0x1be)+_0x359761[_0x1f332c(0x258)]+'\x22:\x20expected\x20an\x20array.');return _0x178423['map']((_0x44de86,_0x480eff)=>lt(_0x359761,_0x44de86,_0x480eff));}function ct(_0x2879b7,_0x59d8b9,_0x3e6b59){const _0x178b74=_0x6a5b69;if(_0x3e6b59==='id'||_0x3e6b59===_0x178b74(0x28c)&&_0x2879b7[_0x178b74(0x243)][_0x59d8b9])return _0x59d8b9;let _0x29f759=Object[_0x178b74(0x2b6)](_0x2879b7[_0x178b74(0x243)])[_0x178b74(0x253)](_0x36aa39=>_0x36aa39['name']===_0x59d8b9);if(_0x29f759[_0x178b74(0x273)]===0x1)return _0x29f759[0x0]['id'];throw _0x29f759['length']>0x1?Error(_0x178b74(0x219)+_0x59d8b9):Error(_0x178b74(0x2b9)+_0x59d8b9);}function lt(_0x519046,_0x1996b,_0x5f01f6){const _0x1c0821=_0x6a5b69;let _0x470d0b='Invalid\x20attachment\x20at\x20index\x20'+_0x5f01f6+_0x1c0821(0x16d)+_0x519046[_0x1c0821(0x258)]+'\x22';if(!ft(_0x1996b))throw TypeError(_0x470d0b+_0x1c0821(0x1c6));if(_0x1c0821(0x241)in _0x1996b)throw TypeError(_0x470d0b+_0x1c0821(0x1aa));if(_0x1c0821(0x18d)in _0x1996b)throw TypeError(_0x470d0b+':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.');let _0x96bf05=U(_0x1996b['id'],_0x470d0b,'id'),_0x2866ad=U(_0x1996b[_0x1c0821(0x258)],_0x470d0b,_0x1c0821(0x258)),_0xf2dea3=U(_0x1996b['source'],_0x470d0b,_0x1c0821(0x2bd));return{'id':_0x96bf05,'name':_0x2866ad,'source':_0xf2dea3,'sourceType':ut(_0x1996b[_0x1c0821(0x1b4)],_0xf2dea3,_0x470d0b),...dt(_0x1996b,_0x1c0821(0x24c),_0x470d0b),...W(_0x1996b,_0x1c0821(0x176),_0x470d0b),...W(_0x1996b,_0x1c0821(0x1bc),_0x470d0b),...W(_0x1996b,_0x1c0821(0x275),_0x470d0b),...dt(_0x1996b,_0x1c0821(0x29e),_0x470d0b)};}function ut(_0x484d32,_0x2b2a66,_0x1cb330){const _0x417e35=_0x6a5b69;if(_0x484d32==null)return _0x2b2a66['startsWith']('data:')?_0x586c40[_0x417e35(0x288)]:_0x586c40[_0x417e35(0x1ff)];if(_0x484d32===_0x586c40['URL']||_0x484d32===_0x586c40[_0x417e35(0x2b4)]||_0x484d32===_0x586c40[_0x417e35(0x288)])return _0x484d32;throw TypeError(_0x1cb330+_0x417e35(0x294));}function U(_0x184104,_0x57f863,_0x1c4aaf){const _0xaa9944=_0x6a5b69;if(typeof _0x184104!='string'||!_0x184104[_0xaa9944(0x193)]())throw TypeError(_0x57f863+':\x20\x22'+_0x1c4aaf+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x184104;}function dt(_0x5e2376,_0x40bfa9,_0x53ccfb){const _0x259e72=_0x6a5b69;let _0x4cf7a1=_0x5e2376[_0x40bfa9];if(_0x4cf7a1==null)return{};if(typeof _0x4cf7a1!=_0x259e72(0x295)||!_0x4cf7a1['trim']())throw TypeError(_0x53ccfb+':\x20\x22'+_0x40bfa9+'\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.');return{[_0x40bfa9]:_0x4cf7a1};}function W(_0x1dfb95,_0x620a2d,_0x2cf9d1){const _0x33765a=_0x6a5b69;let _0x36f97d=_0x1dfb95[_0x620a2d];if(_0x36f97d==null)return{};if(typeof _0x36f97d!='number'||!Number[_0x33765a(0x1c5)](_0x36f97d)||_0x36f97d<0x0)throw TypeError(_0x2cf9d1+_0x33765a(0x292)+_0x620a2d+'\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.');return{[_0x620a2d]:_0x36f97d};}function ft(_0x3b00bc){const _0x44e98d=_0x6a5b69;return typeof _0x3b00bc==_0x44e98d(0x1d4)&&!!_0x3b00bc&&!Array[_0x44e98d(0x285)](_0x3b00bc);}var G;let K=G=class{constructor(_0x84c89,_0x53cb11,_0x290eba,_0x286955,_0x128ac1){const _0x3e3b3e=_0x6a5b69;this[_0x3e3b3e(0x178)]=_0x84c89,this[_0x3e3b3e(0x257)]=_0x53cb11,this[_0x3e3b3e(0x1c2)]=_0x290eba,this[_0x3e3b3e(0x251)]=_0x286955,this[_0x3e3b3e(0x1ec)]=_0x128ac1,this[_0x3e3b3e(0x2c9)]();}[_0x6a5b69(0x289)](){const _0x456a79=_0x6a5b69;return this[_0x456a79(0x178)][_0x456a79(0x271)]();}[_0x6a5b69(0x180)](){const _0x820706=_0x6a5b69;return this[_0x820706(0x257)][_0x820706(0x271)]();}['getRange'](){const _0x5f3495=_0x6a5b69;return{...this[_0x5f3495(0x1c2)]};}[_0x6a5b69(0x266)](){const _0x501284=_0x6a5b69;return this[_0x501284(0x1c2)][_0x501284(0x22e)];}[_0x6a5b69(0x1e9)](){const _0x2ff242=_0x6a5b69;return this[_0x2ff242(0x1c2)][_0x2ff242(0x1d9)];}[_0x6a5b69(0x1b9)](){const _0x432d4b=_0x6a5b69;return this[_0x432d4b(0x1c2)][_0x432d4b(0x2c0)]-this['_range'][_0x432d4b(0x22e)]+0x1;}['getNumColumns'](){const _0x4440ff=_0x6a5b69;return this[_0x4440ff(0x1c2)][_0x4440ff(0x281)]-this['_range'][_0x4440ff(0x1d9)]+0x1;}[_0x6a5b69(0x17c)](){const _0x518532=_0x6a5b69;let _0x12fe27=this[_0x518532(0x2a4)](),_0x1eb0ae=this['_getFieldIds'](_0x12fe27),_0x2238ff=[];for(let _0x5ebeb9=this[_0x518532(0x1c2)][_0x518532(0x22e)];_0x5ebeb9<=this[_0x518532(0x1c2)]['endRow'];_0x5ebeb9++){var _0x517fa0;let _0x293e3d=(_0x517fa0=_0x12fe27[_0x518532(0x216)])==null?void 0x0:_0x517fa0[_0x5ebeb9],_0x365a5c=[];for(let _0x4012b9=this[_0x518532(0x1c2)][_0x518532(0x1d9)];_0x4012b9<=this[_0x518532(0x1c2)][_0x518532(0x281)];_0x4012b9++){let _0xe1a3c5=_0x1eb0ae[_0x4012b9];_0x365a5c[_0x518532(0x255)](_0x293e3d&&_0xe1a3c5?_0x4e5b69(_0x12fe27,_0x293e3d,_0xe1a3c5):null);}_0x2238ff[_0x518532(0x255)](_0x365a5c);}return _0x2238ff;}[_0x6a5b69(0x1bf)](){var _0x59971a;return((_0x59971a=this['getValues']()[0x0])==null?void 0x0:_0x59971a[0x0])??null;}[_0x6a5b69(0x213)](_0x559161){const _0x20a0b6=_0x6a5b69;return this[_0x20a0b6(0x20e)]([[_0x559161]]);}[_0x6a5b69(0x20e)](_0x4a21a2){const _0x56f57d=_0x6a5b69;let _0x5b0ef1=this[_0x56f57d(0x1b9)](),_0x8db5ef=this[_0x56f57d(0x26f)]();if(_0x4a21a2['length']>_0x5b0ef1||_0x4a21a2[_0x56f57d(0x274)](_0x7de2f2=>_0x7de2f2[_0x56f57d(0x273)]>_0x8db5ef)){var _0x761b26;throw Error(_0x56f57d(0x250)+_0x4a21a2[_0x56f57d(0x273)]+'x'+(((_0x761b26=_0x4a21a2[0x0])==null?void 0x0:_0x761b26[_0x56f57d(0x273)])??0x0)+_0x56f57d(0x1a3)+_0x5b0ef1+'x'+_0x8db5ef+'.');}let _0x3376ca=this[_0x56f57d(0x2a4)](),_0x292c9c=this[_0x56f57d(0x26b)](_0x3376ca),_0x5ca9e1=_0x4a21a2[_0x56f57d(0x184)]((_0x2e865a,_0x4a5fac)=>_0x2e865a[_0x56f57d(0x2ba)]((_0x2784a4,_0x1c738e)=>{const _0x1391ae=_0x56f57d;var _0x2cb9b3;let _0x5d8d5b=this[_0x1391ae(0x1c2)][_0x1391ae(0x22e)]+_0x4a5fac,_0x5e25fd=_0x292c9c[this['_range'][_0x1391ae(0x1d9)]+_0x1c738e],_0x30f453=(_0x2cb9b3=_0x3376ca['rowId'])==null?void 0x0:_0x2cb9b3[_0x5d8d5b];if(!_0x5e25fd||!_0x30f453)throw Error(_0x1391ae(0x272));return{'recordId':_0x30f453,'fieldId':_0x5e25fd,'value':_0x2784a4};}));return this[_0x56f57d(0x1ec)][_0x56f57d(0x1d5)](_0x50c929['id'],{'unitId':this[_0x56f57d(0x178)]['getId'](),'tableId':this[_0x56f57d(0x257)]['getId'](),'patches':_0x5ca9e1,'source':_0x43f637['Facade']});}[_0x6a5b69(0x2ab)](){const _0x25e5e2=_0x6a5b69;return this[_0x25e5e2(0x20e)](Array[_0x25e5e2(0x19f)]({'length':this['getNumRows']()},()=>Array[_0x25e5e2(0x19f)]({'length':this[_0x25e5e2(0x26f)]()},()=>null)));}[_0x6a5b69(0x26d)](_0x377bce,_0x52a991,_0x43ca58=this[_0x6a5b69(0x1b9)](),_0x4e2fe7=this[_0x6a5b69(0x26f)]()){const _0x479fef=_0x6a5b69;return this[_0x479fef(0x251)][_0x479fef(0x1d7)](G,this['_base'],this[_0x479fef(0x257)],{'startRow':this[_0x479fef(0x1c2)]['startRow']+_0x377bce,'startColumn':this[_0x479fef(0x1c2)]['startColumn']+_0x52a991,'endRow':this[_0x479fef(0x1c2)][_0x479fef(0x22e)]+_0x377bce+_0x43ca58-0x1,'endColumn':this[_0x479fef(0x1c2)][_0x479fef(0x1d9)]+_0x52a991+_0x4e2fe7-0x1},this[_0x479fef(0x251)]);}[_0x6a5b69(0x2a4)](){const _0x32dcb9=_0x6a5b69;let _0x40619c=this['_table'][_0x32dcb9(0x28e)]();if(!_0x40619c)throw Error(_0x32dcb9(0x2bc));return _0xff35e2(_0x40619c);}[_0x6a5b69(0x2c9)](){const _0x573bc3=_0x6a5b69;var _0x3449bc;let _0x43337c=this[_0x573bc3(0x2a4)](),_0x27abe6=((_0x3449bc=_0x43337c[_0x573bc3(0x2ae)])==null?void 0x0:_0x3449bc[_0x573bc3(0x273)])??0x0,_0xd2ca0d=this['_getFieldIds'](_0x43337c)[_0x573bc3(0x273)];if(this['_range'][_0x573bc3(0x22e)]<0x0||this[_0x573bc3(0x1c2)][_0x573bc3(0x1d9)]<0x0||this[_0x573bc3(0x1c2)][_0x573bc3(0x2c0)]<this[_0x573bc3(0x1c2)][_0x573bc3(0x22e)]||this['_range'][_0x573bc3(0x281)]<this[_0x573bc3(0x1c2)][_0x573bc3(0x1d9)]||this[_0x573bc3(0x1c2)][_0x573bc3(0x2c0)]>=Math[_0x573bc3(0x239)](_0x27abe6,0x1)||this[_0x573bc3(0x1c2)][_0x573bc3(0x281)]>=Math[_0x573bc3(0x239)](_0xd2ca0d,0x1))throw Error(_0x573bc3(0x2c1)+_0x27abe6+_0x573bc3(0x1ea)+_0xd2ca0d+_0x573bc3(0x1c0)+JSON[_0x573bc3(0x19b)](this['_range'])+'.');}[_0x6a5b69(0x26b)](_0x5bb8bf){const _0x43b55b=_0x6a5b69;return _0x5bb8bf[_0x43b55b(0x16b)][_0x43b55b(0x253)](_0x290b74=>V(_0x5bb8bf[_0x43b55b(0x243)][_0x290b74]));}};function _0x37f6(){const _0x237f64=['registerEventHandler','Calendar','addChild','multiple','BaseConditionalColorOperator','startRow','addRecords','678puZJvO','BaseConditionalDateMode','Event','_getField','duplicate','_initBaseBeforeEvents','changeType','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','custom','max','1076GYUmDR','getTableById','localeCompare','_prepareFormulaFieldReferences','_unitId','setLinkedRecordIds','getProjection','url','deleteAttachments','fields','addRecord','BeforeBaseTableFieldCreate','BaseTableRecordCreated','BeforeBaseHierarchyChange','BaseFieldKeyEnum','getBase','move','getChildren','mimeType','[FRecord]:\x20field\x20\x22','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','find','[FBaseRange]:\x20values\x20size\x20','_inject','Failed\x20to\x20duplicate\x20table\x20\x22','filter','viewOrder','push','_univerInstanceService','_table','name','_parentObjectIds','Set','setReadOnly','saveUnit','Kanban','createBase','9ZeZiHC','getPrimaryField','getActiveBase','getConfig','Auto','_getRecord','_fireBeforeHierarchyChange','getRow','defineProperty','iterator','Formula','fromCollab','_getFieldIds','now','offset','fieldId','getNumColumns','deleteProperty','getId','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','length','some','height','BeforeBaseTableRecordCreate','createdAt','setOrderKey','toPrimitive','Name','unitId','reason','fieldKey','getViews','getParent','hasOwnProperty','endColumn','Grid','BeforeBaseTableCreate','getFieldByName','isArray','_collectDescendantIds','getType','BASE64','getBaseId','BaseFieldType','removeLinkedRecord','auto','[FField]:\x20field\x20\x22','getTable','setDefaultValue','includes','afterFieldId',':\x20\x22','hierarchyChanges',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','string','record','addConditionalColorRule','_projectionService','_objectId','createUnit','Facade','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','FBase','thumbnail','tables','_permissionService','BaseTableCellValueChanged','BaseHierarchyInvalidReason','search','_getTable','Failed\x20to\x20create\x20table\x20\x22','indexOf','field','isReadonly','setPoint','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','clear','every','description','recordOrder','addField','number','getRecords','getRange','getAllUnitsForType','UUID','1576tyiPhS','values','invalid','getDescendants','Base\x20field\x20not\x20found:\x20','map','config','[FBaseRange]:\x20table\x20does\x20not\x20exist.','source','update','getName','endRow','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','visibleCardFieldIds','updatedAt','BaseTableViewCreated','params','BeforeBaseTableViewCreate','[FRecord]:\x20RecordLink\x20field\x20\x22','6186QjgGxG','_assertInBounds','\x22\x20does\x20not\x20exist.','beforeCommandExecuted','executeCommand','\x22\x20is\x20not\x20an\x20Attachment\x20field.','getUnitId','DESC','deepClone','get','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getPermission','getAncestors','slice','_getHierarchyIndex','fieldOrder','setName','\x20for\x20field\x20\x22','Remote','RecordId','_getHierarchyEventContext','getOwnPropertyDescriptor','sort','duplicateTable','prototype','_viewId','size','setEditable','_base','orderKey','Gantt','hidden','getValues','primaryFieldId','8355890waHNdT','_initBaseAfterEvents','getTableId','valid','setParent','parentByRecordId','flatMap','getRecordById','symbol','\x20Copy','value','getVisibleFields','limit','getGroup','12SElqqj','type','getTableByName','disposeWithMe','tableId','base','parentRecordId','trim','BaseHierarchyErrorCode','_initialize','getSnapshot','constructor','externalReferences','formula','setAttachments','stringify','205zDGPvm','getConditionalColorRules','_getView','from','BaseFilterConjunction','_injector','beforeFieldId','\x20exceeds\x20range\x20size\x20','function','readonly','Edit','clearConditionalColorRules','save','fieldSettings',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','views','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','[FRecord]:\x20invalid\x20RecordLink\x20value.','entries','cancel','defaultValue','targetTableId','setObjectPermissions','_baseTableId','sourceType','fromEntries','17339388WCWpLF','Failed\x20to\x20add\x20field\x20\x22','updateConfig','getNumRows','getRecord','Failed\x20to\x20delete\x20table\x20\x22','width','_resolveRecordIds','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','getValue',',\x20range:\x20','message','_range','_recordId','UNIVER_BASE','isFinite',':\x20expected\x20an\x20object.','_getRecordLinkField','records','recordId','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','regenerateViewIds','setHierarchyField','decorate','getView','getFormulaName','getPrimaryFieldId','BaseRecordLinkRole','2717702SWLpLy','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','object','syncExecuteCommand','index','createInstance','addLinkedRecord','startColumn','getTables','matches','includeRecords','caseSensitive','16884KhkFrp','tableOrder','getBaseFacade','setConfig','getSchema','_baseUnitId','fireEvent','moveField','BaseHierarchyChanged','BaseTableCreated','887aEAiiF','getColumn',',\x20max\x20columns:\x20','viewId','_commandService','getLinkedRecordIds','notMatches','_writeFormulaExternalReferences','queryRecords','_getAttachmentField','delete','commonExtend','rows','BeforeBaseTableCellValueChange','canEdit','getSort','warn','extend','view','Attachment','BaseTableFieldCreated','fieldIds','direction','URL','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','createView','getDefaultValue','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','getField','Add','primaryFieldName','_tableId','Invalid\x20Base\x20formula.','system','call','AND','default','getFieldById','setValues','156186SBSiOy','deleteRecords','getFilter','onCommandExecuted','setValue','recordIds','\x22\x20is\x20invalid.','rowId','insertTable','BaseConditionalColorTarget','Duplicate\x20Base\x20field\x20name:\x20','table','_fieldId','operator','Clear','\x22\x20has\x20invalid\x20config.','getHierarchyFieldId','_resourceLoaderService','\x20in\x20field\x20\x22','RecordLink','Failed\x20to\x20add\x20records','rules','getViewById','getTableFacade','getBases','group'];_0x37f6=function(){return _0x237f64;};return _0x37f6();}K=G=z([R(0x4,_0x1047ac)],K);function q(_0x2ed6e5){'@babel/helpers - typeof';const _0x3b29dc=_0x6a5b69;return q=typeof Symbol=='function'&&typeof Symbol[_0x3b29dc(0x268)]==_0x3b29dc(0x186)?function(_0x18af31){return typeof _0x18af31;}:function(_0x325fd4){const _0x380975=_0x3b29dc;return _0x325fd4&&typeof Symbol==_0x380975(0x1a4)&&_0x325fd4[_0x380975(0x197)]===Symbol&&_0x325fd4!==Symbol[_0x380975(0x174)]?_0x380975(0x186):typeof _0x325fd4;},q(_0x2ed6e5);}function pt(_0x763dfb,_0x405e0e){const _0x575819=_0x6a5b69;if(q(_0x763dfb)!='object'||!_0x763dfb)return _0x763dfb;var _0x28dbc5;if(typeof Symbol<'u'&&(_0x28dbc5=_0x763dfb[Symbol[_0x575819(0x279)]])!==void 0x0){var _0x4115b2=_0x28dbc5[_0x575819(0x20a)](_0x763dfb,_0x405e0e||_0x575819(0x20c));if(q(_0x4115b2)!=_0x575819(0x1d4))return _0x4115b2;throw TypeError(_0x575819(0x166));}return(_0x405e0e==='string'?String:Number)(_0x763dfb);}function mt(_0x5b98bb){const _0x3de768=_0x6a5b69;var _0x14d7c8=pt(_0x5b98bb,'string');return q(_0x14d7c8)==_0x3de768(0x186)?_0x14d7c8:_0x14d7c8+'';}function ht(_0x41d290,_0x1d1020,_0x2eed16){const _0x2de82b=_0x6a5b69;return(_0x1d1020=mt(_0x1d1020))in _0x41d290?Object[_0x2de82b(0x267)](_0x41d290,_0x1d1020,{'value':_0x2eed16,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41d290[_0x1d1020]=_0x2eed16,_0x41d290;}var J;let Y=J=class extends _0x2df259{constructor(_0x3427b2,_0x35d967,_0x47a4ba,_0x240af6,_0x1d7041,_0x170758){const _0x4051f5=_0x6a5b69;super(_0x240af6),this['_base']=_0x3427b2,this[_0x4051f5(0x257)]=_0x35d967,this[_0x4051f5(0x1c3)]=_0x47a4ba,this[_0x4051f5(0x1a1)]=_0x240af6,this[_0x4051f5(0x1ec)]=_0x1d7041,this[_0x4051f5(0x2a0)]=_0x170758,ht(this,_0x4051f5(0x1e3),void 0x0),ht(this,_0x4051f5(0x1b3),void 0x0),this['_baseUnitId']=_0x3427b2['getId'](),this['_baseTableId']=_0x35d967['getId']();}[_0x6a5b69(0x1e0)](){const _0x561c68=_0x6a5b69;return this[_0x561c68(0x178)];}[_0x6a5b69(0x226)](){const _0x17c123=_0x6a5b69;return this[_0x17c123(0x257)];}[_0x6a5b69(0x271)](){const _0x4c4b38=_0x6a5b69;return this[_0x4c4b38(0x1c3)];}[_0x6a5b69(0x167)](){const _0x4815fa=_0x6a5b69;let _0x250fdd=this[_0x4815fa(0x257)][_0x4815fa(0x271)]();return new L(this[_0x4815fa(0x178)][_0x4815fa(0x271)](),_0x1b9662(_0x250fdd,this[_0x4815fa(0x1c3)]),[_0x2d8a33(_0x250fdd)],this[_0x4815fa(0x1ec)],this[_0x4815fa(0x2a0)]);}[_0x6a5b69(0x1ba)](){const _0x5f5dd4=_0x6a5b69;return{...this[_0x5f5dd4(0x264)](),'values':this[_0x5f5dd4(0x17c)]()};}[_0x6a5b69(0x1bf)](_0x2f548d){const _0x196cdf=_0x6a5b69;return V(this[_0x196cdf(0x257)][_0x196cdf(0x28e)]()[_0x196cdf(0x243)][_0x2f548d])?this[_0x196cdf(0x264)]()['values'][_0x2f548d]??null:null;}[_0x6a5b69(0x17c)](){const _0x601fa3=_0x6a5b69;let _0x5e6fc6=this[_0x601fa3(0x257)][_0x601fa3(0x28e)]();return Object[_0x601fa3(0x1b5)](Object[_0x601fa3(0x1ae)](this[_0x601fa3(0x264)]()[_0x601fa3(0x2b6)])[_0x601fa3(0x253)](([_0x52d052])=>V(_0x5e6fc6[_0x601fa3(0x243)][_0x52d052])));}[_0x6a5b69(0x213)](_0x20422c,_0x48cb86){const _0x3613cf=_0x6a5b69;let _0x1b128f=this[_0x3613cf(0x257)]['getTable']()['fields'][_0x20422c];return this[_0x3613cf(0x1ec)][_0x3613cf(0x1d5)](_0x3a32fc['id'],{'unitId':this[_0x3613cf(0x178)][_0x3613cf(0x271)](),'tableId':this[_0x3613cf(0x257)]['getId'](),'recordId':this[_0x3613cf(0x1c3)],'fieldId':_0x20422c,'value':st(_0x1b128f,_0x48cb86),'source':_0x43f637['Facade']});}[_0x6a5b69(0x19a)](_0x458f7a,_0x586bf3){const _0x164dd8=_0x6a5b69;return this[_0x164dd8(0x213)](_0x458f7a,_0x586bf3[_0x164dd8(0x2ba)](_0x3c9fff=>({..._0x3c9fff})));}['getAttachments'](_0x43dac3){const _0xf0e2cd=_0x6a5b69;this[_0xf0e2cd(0x1f1)](_0x43dac3);let _0x2874c5=this[_0xf0e2cd(0x1bf)](_0x43dac3);return Array[_0xf0e2cd(0x285)](_0x2874c5)?_0x2874c5[_0xf0e2cd(0x2ba)]((_0x153e8c,_0x51763c)=>_t(_0x153e8c,_0x43dac3,_0x51763c)):[];}[_0x6a5b69(0x242)](_0x3c4ab2,_0x4a6025){const _0x29eebc=_0x6a5b69;this[_0x29eebc(0x1f1)](_0x3c4ab2);let _0x41ca72=new Set(_0x4a6025[_0x29eebc(0x2ba)](_0x2c6e56=>_0x2c6e56['id']));if(!_0x41ca72['size'])return!0x0;let _0x24520c=this['getAttachments'](_0x3c4ab2),_0x278f25=_0x24520c['filter'](_0x833bb6=>!_0x41ca72['has'](_0x833bb6['id']));return _0x278f25[_0x29eebc(0x273)]===_0x24520c[_0x29eebc(0x273)]||this['setAttachments'](_0x3c4ab2,_0x278f25);}[_0x6a5b69(0x20e)](_0x449992,_0x3ddce2='id'){const _0x23f1e4=_0x6a5b69;let _0x4f85e8=this[_0x23f1e4(0x257)][_0x23f1e4(0x28e)](),_0x4d9ffa=[{'recordId':this[_0x23f1e4(0x1c3)],'values':H(_0x4f85e8,_0x449992,_0x3ddce2)}];return this['_commandService'][_0x23f1e4(0x1d5)](_0x2cebcc['id'],{'unitId':this[_0x23f1e4(0x178)][_0x23f1e4(0x271)](),'tableId':this[_0x23f1e4(0x257)]['getId'](),'patches':_0x4d9ffa,'source':_0x43f637['Facade']});}[_0x6a5b69(0x1f2)](){const _0x27b54c=_0x6a5b69;return this[_0x27b54c(0x1ec)][_0x27b54c(0x1d5)](_0x392c6f['id'],{'unitId':this[_0x27b54c(0x178)][_0x27b54c(0x271)](),'tableId':this[_0x27b54c(0x257)][_0x27b54c(0x271)](),'recordId':this[_0x27b54c(0x1c3)],'source':_0x43f637[_0x27b54c(0x29b)]});}[_0x6a5b69(0x234)](_0x387c0e){const _0x27da57=_0x6a5b69;let _0x57935c={...this['_getRecord'](),..._0x387c0e,'id':_0x49e131(0x6)};_0x57935c[_0x27da57(0x2b6)]={..._0x57935c[_0x27da57(0x2b6)],..._0x387c0e==null?void 0x0:_0x387c0e[_0x27da57(0x2b6)]},Reflect[_0x27da57(0x270)](_0x57935c[_0x27da57(0x2b6)],_0x8c29d8);let _0x137665=Date[_0x27da57(0x26c)]();if(_0x57935c[_0x27da57(0x179)]||=''+_0x137665,_0x57935c['createdAt']||=_0x137665,_0x57935c[_0x27da57(0x2c3)]||=_0x137665,!this[_0x27da57(0x1ec)]['syncExecuteCommand'](_0x499a45['id'],{'unitId':this[_0x27da57(0x178)][_0x27da57(0x271)](),'tableId':this['_table'][_0x27da57(0x271)](),'sourceRecordId':this[_0x27da57(0x1c3)],'record':_0x57935c,'source':_0x43f637[_0x27da57(0x29b)]}))throw Error(_0x27da57(0x200)+this['_recordId']+'\x22.');return this[_0x27da57(0x1a1)][_0x27da57(0x1d7)](J,this[_0x27da57(0x178)],this[_0x27da57(0x257)],_0x57935c['id'],this[_0x27da57(0x1a1)]);}[_0x6a5b69(0x278)](_0x2fd123){const _0x508e0b=_0x6a5b69;return this[_0x508e0b(0x1ec)][_0x508e0b(0x1d5)](_0x43adcc['id'],{'unitId':this[_0x508e0b(0x178)][_0x508e0b(0x271)](),'tableId':this[_0x508e0b(0x257)][_0x508e0b(0x271)](),'recordId':this['_recordId'],'orderKey':_0x2fd123});}[_0x6a5b69(0x1ed)](_0x1209a3){const _0x24dbb9=_0x6a5b69;let _0x12b5e6=this[_0x24dbb9(0x1c7)](_0x1209a3),_0xd63ecd=this[_0x24dbb9(0x1bf)](_0x12b5e6['id']);return _0x2b8d32(_0xd63ecd);}[_0x6a5b69(0x23f)](_0x264874,_0x39f6af){const _0xa72bf7=_0x6a5b69;let _0xf78d7d=this[_0xa72bf7(0x1c7)](_0x264874),_0x587b54=_0xe4f0db(_0x39f6af),_0xa528ad=_0x46f65b(this[_0xa72bf7(0x178)][_0xa72bf7(0x249)]()[_0xa72bf7(0x196)](),_0xf78d7d,_0x587b54);if(!_0xa528ad[_0xa72bf7(0x181)])throw Error(_0xa528ad['reason']??_0xa72bf7(0x1ad));return this[_0xa72bf7(0x1ec)][_0xa72bf7(0x1d5)](_0x3a32fc['id'],{'unitId':this['_base'][_0xa72bf7(0x271)](),'tableId':this[_0xa72bf7(0x257)][_0xa72bf7(0x271)](),'recordId':this[_0xa72bf7(0x1c3)],'fieldId':_0x264874,'value':_0x587b54,'source':_0x43f637[_0xa72bf7(0x29b)]});}[_0x6a5b69(0x1d8)](_0x478a36,_0x2fad54){const _0x41e89c=_0x6a5b69;let _0x45b19b=this['_getRecordLinkField'](_0x478a36),_0x427080=_0x3dfa8b(_0x45b19b);if(!_0x427080)throw Error(_0x41e89c(0x2c7)+_0x478a36+_0x41e89c(0x21e));let _0x19ef6b=this['getLinkedRecordIds'](_0x478a36);return _0x427080[_0x41e89c(0x22c)]&&_0x19ef6b['includes'](_0x2fad54)?!0x0:this[_0x41e89c(0x23f)](_0x478a36,_0x427080[_0x41e89c(0x22c)]?[..._0x19ef6b,_0x2fad54]:[_0x2fad54]);}[_0x6a5b69(0x28b)](_0x41f451,_0x17f0e5){const _0x1296b5=_0x6a5b69;let _0x5cef2a=this[_0x1296b5(0x1ed)](_0x41f451);return!_0x5cef2a[_0x1296b5(0x290)](_0x17f0e5)||this[_0x1296b5(0x23f)](_0x41f451,_0x5cef2a['filter'](_0xfe920c=>_0xfe920c!==_0x17f0e5));}[_0x6a5b69(0x27f)](_0x35b2b8){const _0x4e73d9=_0x6a5b69;let _0x51ad38=this[_0x4e73d9(0x16a)](_0x35b2b8)[_0x4e73d9(0x183)][_0x4e73d9(0x2d1)](this[_0x4e73d9(0x1c3)])??null;return _0x51ad38?this['_table'][_0x4e73d9(0x185)](_0x51ad38):null;}[_0x6a5b69(0x24b)](_0x3bfbd2){const _0x13c217=_0x6a5b69;return(this['_getHierarchyIndex'](_0x3bfbd2)['childrenByParentId'][_0x13c217(0x2d1)](this[_0x13c217(0x1c3)])??[])[_0x13c217(0x184)](_0x465441=>{const _0x4a5ce9=_0x13c217;let _0x29dac8=this[_0x4a5ce9(0x257)]['getRecordById'](_0x465441);return _0x29dac8?[_0x29dac8]:[];});}[_0x6a5b69(0x168)](_0x5ca1fd){const _0x4d5fae=_0x6a5b69;let _0x116d65=this['_getHierarchyIndex'](_0x5ca1fd),_0x5bbd76=[],_0x26d854=_0x116d65[_0x4d5fae(0x183)][_0x4d5fae(0x2d1)](this[_0x4d5fae(0x1c3)])??null;for(;_0x26d854;){let _0x103b8e=this['_table'][_0x4d5fae(0x185)](_0x26d854);_0x103b8e&&_0x5bbd76[_0x4d5fae(0x255)](_0x103b8e),_0x26d854=_0x116d65[_0x4d5fae(0x183)][_0x4d5fae(0x2d1)](_0x26d854)??null;}return _0x5bbd76;}[_0x6a5b69(0x2b8)](_0x175469){const _0x1da4d6=_0x6a5b69;let _0x469caa=this[_0x1da4d6(0x16a)](_0x175469),_0x337a70=_0x469caa['orderedRecordIds'][_0x1da4d6(0x2a6)](this[_0x1da4d6(0x1c3)]),_0x487569=_0x469caa['subtreeHeightByRecordId']['has'](this[_0x1da4d6(0x1c3)])?this[_0x1da4d6(0x286)](_0x469caa['childrenByParentId'],this[_0x1da4d6(0x1c3)]):[];return _0x337a70<0x0?[]:_0x487569[_0x1da4d6(0x184)](_0x145b1e=>{const _0x5573d7=_0x1da4d6;let _0x53095e=this[_0x5573d7(0x257)][_0x5573d7(0x185)](_0x145b1e);return _0x53095e?[_0x53095e]:[];});}[_0x6a5b69(0x182)](_0x436a53,_0x113466,_0x1c1cf8){const _0x48902d=_0x6a5b69;return this[_0x48902d(0x1ec)][_0x48902d(0x1d5)](_0x448699['id'],{'unitId':this['_base'][_0x48902d(0x271)](),'tableId':this[_0x48902d(0x257)][_0x48902d(0x271)](),'fieldId':_0x436a53,'recordId':this[_0x48902d(0x1c3)],'parentRecordId':_0x113466,'orderKey':_0x1c1cf8,'source':_0x43f637[_0x48902d(0x29b)]});}[_0x6a5b69(0x22b)](_0xe7b44d,_0x5d29ea,_0xc85a3a='id',_0x36cf32){const _0x327f87=_0x6a5b69;let _0xc2796d=this[_0x327f87(0x257)][_0x327f87(0x28e)](),_0x9b5f86=Date['now'](),_0x3b3e1b={..._0x36cf32,'id':_0x49e131(0x6),'values':H(_0xc2796d,_0x5d29ea,_0xc85a3a),'orderKey':(_0x36cf32==null?void 0x0:_0x36cf32[_0x327f87(0x179)])||''+_0x9b5f86,'createdAt':(_0x36cf32==null?void 0x0:_0x36cf32['createdAt'])||_0x9b5f86,'updatedAt':(_0x36cf32==null?void 0x0:_0x36cf32[_0x327f87(0x2c3)])||_0x9b5f86};if(!this['_commandService']['syncExecuteCommand'](_0x4cd8a9['id'],{'unitId':this[_0x327f87(0x178)][_0x327f87(0x271)](),'tableId':this[_0x327f87(0x257)]['getId'](),'fieldId':_0xe7b44d,'parentRecordId':this['_recordId'],'record':_0x3b3e1b,'source':_0x43f637[_0x327f87(0x29b)]}))throw Error(_0x327f87(0x2aa)+this[_0x327f87(0x1c3)]+'\x22.');return this['_injector'][_0x327f87(0x1d7)](J,this[_0x327f87(0x178)],this[_0x327f87(0x257)],_0x3b3e1b['id'],this[_0x327f87(0x1a1)]);}[_0x6a5b69(0x16a)](_0x602245){const _0x24ddea=_0x6a5b69;return _0x5b61b7(this[_0x24ddea(0x257)][_0x24ddea(0x28e)](),_0x602245);}['_collectDescendantIds'](_0x2cf201,_0xe4e01f){let _0xde5b5a=[],_0x213266=_0x16b3f4=>{for(let _0x50ff3b of _0x2cf201['get'](_0x16b3f4)??[])_0xde5b5a['push'](_0x50ff3b),_0x213266(_0x50ff3b);};return _0x213266(_0xe4e01f),_0xde5b5a;}['_getRecord'](){const _0x4b2edb=_0x6a5b69;let _0x565fe6=this['_table'][_0x4b2edb(0x28e)]()[_0x4b2edb(0x1c8)][this[_0x4b2edb(0x1c3)]];if(!_0x565fe6)throw Error('[FRecord]:\x20record\x20\x22'+this['_recordId']+_0x4b2edb(0x2ca));return _0x565fe6;}['_getRecordLinkField'](_0x59a3aa){const _0x46b3a0=_0x6a5b69;let _0x54fd3d=this['_table']['getTable']()[_0x46b3a0(0x243)][_0x59a3aa];if(!_0x54fd3d||_0x54fd3d[_0x46b3a0(0x18d)]!==_0x1dcf64['RecordLink'])throw Error(_0x46b3a0(0x24d)+_0x59a3aa+_0x46b3a0(0x203));return _0x54fd3d;}[_0x6a5b69(0x1f1)](_0x42b6f0){const _0x4114d3=_0x6a5b69;let _0xb7f50a=this['_table'][_0x4114d3(0x28e)]()['fields'][_0x42b6f0];if(!_0xb7f50a||_0xb7f50a[_0x4114d3(0x18d)]!==_0x1dcf64[_0x4114d3(0x1fb)])throw Error(_0x4114d3(0x24d)+_0x42b6f0+_0x4114d3(0x2cd));return _0xb7f50a;}};Y=J=z([R(0x4,_0x1047ac),R(0x5,_0x9f57f5)],Y);function gt(_0x35d22b){const _0x5375cb=_0x6a5b69;return!!(_0x35d22b&&typeof _0x35d22b==_0x5375cb(0x1d4)&&'id'in _0x35d22b&&typeof _0x35d22b['id']==_0x5375cb(0x295)&&_0x5375cb(0x258)in _0x35d22b&&typeof _0x35d22b[_0x5375cb(0x258)]==_0x5375cb(0x295));}function _t(_0x47a3e2,_0x41e968,_0x4f3b79){const _0x98826a=_0x6a5b69;if(!gt(_0x47a3e2))throw Error('[FRecord]:\x20attachment\x20at\x20index\x20'+_0x4f3b79+_0x98826a(0x221)+_0x41e968+_0x98826a(0x215));return{..._0x47a3e2};}let X=class{constructor(_0x2771c8,_0x54a339,_0x257a48,_0x554c0f,_0x3929bf,_0x83c7ad,_0x51be4b){const _0x13fe6d=_0x6a5b69;this['_base']=_0x2771c8,this['_table']=_0x54a339,this[_0x13fe6d(0x175)]=_0x257a48,this[_0x13fe6d(0x1a1)]=_0x554c0f,this[_0x13fe6d(0x1ec)]=_0x3929bf,this[_0x13fe6d(0x2a0)]=_0x83c7ad,this[_0x13fe6d(0x298)]=_0x51be4b;}[_0x6a5b69(0x271)](){const _0x39fee6=_0x6a5b69;return this[_0x39fee6(0x175)];}[_0x6a5b69(0x167)](){const _0x1f5f4d=_0x6a5b69;let _0x4191ee=this['_table'][_0x1f5f4d(0x271)]();return new L(this[_0x1f5f4d(0x178)]['getId'](),_0x33ee0c(_0x4191ee,this[_0x1f5f4d(0x175)]),[_0x2d8a33(_0x4191ee)],this[_0x1f5f4d(0x1ec)],this['_permissionService']);}[_0x6a5b69(0x1ce)](){const _0x5cf64e=_0x6a5b69;return this[_0x5cf64e(0x19e)]();}[_0x6a5b69(0x2bf)](){const _0x3dc00e=_0x6a5b69;return this[_0x3dc00e(0x19e)]()[_0x3dc00e(0x258)];}[_0x6a5b69(0x287)](){const _0x2fddb7=_0x6a5b69;return this[_0x2fddb7(0x19e)]()['type'];}[_0x6a5b69(0x16c)](_0xa71436){const _0x529181=_0x6a5b69;return this[_0x529181(0x1ec)][_0x529181(0x1d5)](_0x11dffb['id'],{'unitId':this[_0x529181(0x178)]['getId'](),'tableId':this[_0x529181(0x257)][_0x529181(0x271)](),'viewId':this['_viewId'],'name':_0xa71436});}[_0x6a5b69(0x262)](){const _0x1031b0=_0x6a5b69;let _0x3db8e0=this[_0x1031b0(0x287)](),_0x572cab=this[_0x1031b0(0x19e)]()[_0x1031b0(0x2bb)];switch(_0x3db8e0){case _0x144585[_0x1031b0(0x282)]:return _0x572cab;case _0x144585[_0x1031b0(0x25d)]:return _0x572cab;case _0x144585[_0x1031b0(0x22a)]:return _0x572cab;case _0x144585[_0x1031b0(0x17a)]:return _0x572cab;case _0x144585['Gallery']:return _0x572cab;default:return _0x572cab;}}[_0x6a5b69(0x1b8)](_0x400b2f){const _0x4bda9e=_0x6a5b69;return this[_0x4bda9e(0x1ec)]['syncExecuteCommand'](_0x403e74['id'],{'unitId':this[_0x4bda9e(0x178)]['getId'](),'tableId':this['_table']['getId'](),'viewId':this[_0x4bda9e(0x175)],'patch':_0x400b2f});}[_0x6a5b69(0x19d)](){const _0x5d1ae3=_0x6a5b69;var _0x574c90;return _0x2517f7[_0x5d1ae3(0x2d0)](((_0x574c90=this[_0x5d1ae3(0x19e)]()[_0x5d1ae3(0x2bb)]['conditionalColoring'])==null?void 0x0:_0x574c90[_0x5d1ae3(0x224)])??[]);}['setConditionalColorRules'](_0x585102){const _0x2cc9bb=_0x6a5b69;return this[_0x2cc9bb(0x1ec)][_0x2cc9bb(0x1d5)](_0x49c748['id'],{'unitId':this['_base'][_0x2cc9bb(0x271)](),'tableId':this[_0x2cc9bb(0x257)][_0x2cc9bb(0x271)](),'viewId':this[_0x2cc9bb(0x175)],'type':_0x21d239[_0x2cc9bb(0x25a)],'rules':_0x585102});}[_0x6a5b69(0x297)](_0x375f0d){const _0x40a500=_0x6a5b69;return this[_0x40a500(0x1ec)][_0x40a500(0x1d5)](_0x49c748['id'],{'unitId':this[_0x40a500(0x178)][_0x40a500(0x271)](),'tableId':this[_0x40a500(0x257)][_0x40a500(0x271)](),'viewId':this[_0x40a500(0x175)],'type':_0x21d239[_0x40a500(0x205)],'rule':_0x375f0d});}['deleteConditionalColorRule'](_0x39c2cf){const _0x35963d=_0x6a5b69;return this['_commandService'][_0x35963d(0x1d5)](_0x49c748['id'],{'unitId':this['_base'][_0x35963d(0x271)](),'tableId':this[_0x35963d(0x257)]['getId'](),'viewId':this[_0x35963d(0x175)],'type':_0x21d239['Delete'],'ruleId':_0x39c2cf});}[_0x6a5b69(0x1a7)](){const _0x51a631=_0x6a5b69;return this['_commandService'][_0x51a631(0x1d5)](_0x49c748['id'],{'unitId':this[_0x51a631(0x178)][_0x51a631(0x271)](),'tableId':this['_table'][_0x51a631(0x271)](),'viewId':this[_0x51a631(0x175)],'type':_0x21d239[_0x51a631(0x21d)]});}[_0x6a5b69(0x211)](){const _0x481262=_0x6a5b69;return this['_getView']()[_0x481262(0x253)]??null;}['setFilter'](_0x17a16a){const _0x2e392f=_0x6a5b69;return this[_0x2e392f(0x1ec)][_0x2e392f(0x1d5)](_0x1e5f36['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x2e392f(0x257)][_0x2e392f(0x271)](),'viewId':this[_0x2e392f(0x175)],'filter':_0x17a16a});}[_0x6a5b69(0x1f7)](){const _0x22922b=_0x6a5b69;return this[_0x22922b(0x19e)]()['sort']??[];}['setSort'](_0x10d711){const _0xc9e24e=_0x6a5b69;return this[_0xc9e24e(0x1ec)][_0xc9e24e(0x1d5)](_0x15d9fe['id'],{'unitId':this['_base'][_0xc9e24e(0x271)](),'tableId':this[_0xc9e24e(0x257)][_0xc9e24e(0x271)](),'viewId':this[_0xc9e24e(0x175)],'sort':_0x10d711});}[_0x6a5b69(0x18b)](){const _0x291996=_0x6a5b69;return this[_0x291996(0x19e)]()[_0x291996(0x228)]??[];}['setGroup'](_0x4ad48f){const _0x4043dc=_0x6a5b69;return this[_0x4043dc(0x1ec)]['syncExecuteCommand'](_0x545b5d['id'],{'unitId':this['_base'][_0x4043dc(0x271)](),'tableId':this[_0x4043dc(0x257)][_0x4043dc(0x271)](),'viewId':this['_viewId'],'group':_0x4ad48f});}['getFieldSettings'](_0x3acbec){const _0x269a80=_0x6a5b69;var _0x55b2ed;return V(this['_table']['getTable']()[_0x269a80(0x243)][_0x3acbec])?((_0x55b2ed=this['_getView']()['fieldSettings'])==null?void 0x0:_0x55b2ed[_0x3acbec])??{}:{};}[_0x6a5b69(0x189)](){const _0x37ea42=_0x6a5b69;let _0x77490c=this['_table'][_0x37ea42(0x28e)](),_0x496556=this[_0x37ea42(0x19e)]();return(_0x496556[_0x37ea42(0x16b)]??_0x77490c[_0x37ea42(0x16b)])[_0x37ea42(0x253)](_0x2b6f08=>{const _0x1d5143=_0x37ea42;var _0x566310;let _0x5183fb=_0x77490c['fields'][_0x2b6f08];return V(_0x5183fb)&&!((_0x566310=_0x496556[_0x1d5143(0x1a9)])!=null&&(_0x566310=_0x566310[_0x2b6f08])!=null&&_0x566310[_0x1d5143(0x17b)]);})[_0x37ea42(0x2ba)](_0x4a668=>this[_0x37ea42(0x1a1)][_0x37ea42(0x1d7)](B,this[_0x37ea42(0x178)],this[_0x37ea42(0x257)],_0x4a668));}['setFieldVisible'](_0x13bf2b,_0x3ae687){const _0x4dd281=_0x6a5b69;return V(this[_0x4dd281(0x257)]['getTable']()[_0x4dd281(0x243)][_0x13bf2b])?this[_0x4dd281(0x1ec)][_0x4dd281(0x1d5)](_0x5ce8b2['id'],{'unitId':this[_0x4dd281(0x178)][_0x4dd281(0x271)](),'tableId':this[_0x4dd281(0x257)][_0x4dd281(0x271)](),'viewId':this[_0x4dd281(0x175)],'fieldId':_0x13bf2b,'visible':_0x3ae687}):!0x1;}['setFieldWidth'](_0x4c4043,_0x7a853a){const _0x5268d2=_0x6a5b69;return V(this[_0x5268d2(0x257)][_0x5268d2(0x28e)]()['fields'][_0x4c4043])?this['_commandService']['syncExecuteCommand'](_0x4154ed['id'],{'unitId':this[_0x5268d2(0x178)][_0x5268d2(0x271)](),'tableId':this[_0x5268d2(0x257)][_0x5268d2(0x271)](),'viewId':this['_viewId'],'fieldId':_0x4c4043,'width':_0x7a853a}):!0x1;}[_0x6a5b69(0x1e5)](_0x5404e4,_0x1ec99b){const _0x22e9cf=_0x6a5b69;let _0x165143=this[_0x22e9cf(0x257)]['getTable'](),_0x5a7e9f=_0x1ec99b[_0x22e9cf(0x1a2)]??_0x1ec99b[_0x22e9cf(0x291)];return!V(_0x165143['fields'][_0x5404e4])||!_0x5a7e9f||!V(_0x165143['fields'][_0x5a7e9f])?!0x1:this[_0x22e9cf(0x1ec)][_0x22e9cf(0x1d5)](_0x26a020['id'],{'unitId':this[_0x22e9cf(0x178)][_0x22e9cf(0x271)](),'tableId':this[_0x22e9cf(0x257)]['getId'](),'viewId':this[_0x22e9cf(0x175)],'fieldId':_0x5404e4,'target':_0x1ec99b});}[_0x6a5b69(0x24a)](_0x20ed89){const _0x45daab=_0x6a5b69;return this['_commandService'][_0x45daab(0x1d5)](_0x1008cd['id'],{'unitId':this[_0x45daab(0x178)]['getId'](),'tableId':this[_0x45daab(0x257)]['getId'](),'viewId':this[_0x45daab(0x175)],'target':_0x20ed89});}['delete'](){const _0x115dac=_0x6a5b69;return this[_0x115dac(0x1ec)][_0x115dac(0x1d5)](_0x1c08cd['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x115dac(0x257)]['getId'](),'viewId':this[_0x115dac(0x175)]});}[_0x6a5b69(0x240)](){const _0x3a3e21=_0x6a5b69;return this['_projectionService'][_0x3a3e21(0x240)](this['_base']['getBase']()[_0x3a3e21(0x196)](),this['_table'][_0x3a3e21(0x271)](),this[_0x3a3e21(0x175)]);}[_0x6a5b69(0x19e)](){const _0x122e35=_0x6a5b69;let _0x20432a=this[_0x122e35(0x257)][_0x122e35(0x28e)]()[_0x122e35(0x1ab)][this[_0x122e35(0x175)]];if(!_0x20432a)throw Error('[FView]:\x20view\x20\x22'+this[_0x122e35(0x175)]+'\x22\x20does\x20not\x20exist.');return _0x20432a;}};X=z([R(0x4,_0x1047ac),R(0x5,_0x9f57f5),R(0x6,_0x483014)],X);let Z=class{constructor(_0x48c00a,_0x3c0f82,_0x1f59e0,_0x584657,_0x258a0f,_0x2d169a){const _0x4534a3=_0x6a5b69;this[_0x4534a3(0x178)]=_0x48c00a,this[_0x4534a3(0x207)]=_0x3c0f82,this[_0x4534a3(0x1a1)]=_0x1f59e0,this[_0x4534a3(0x1ec)]=_0x584657,this['_permissionService']=_0x258a0f,this[_0x4534a3(0x298)]=_0x2d169a;}[_0x6a5b69(0x249)](){const _0x5ccd85=_0x6a5b69;return this[_0x5ccd85(0x178)]['getBase']();}[_0x6a5b69(0x28e)](){const _0x370607=_0x6a5b69;return this[_0x370607(0x2a4)]();}['getId'](){const _0x5bbfb1=_0x6a5b69;return this[_0x5bbfb1(0x207)];}[_0x6a5b69(0x167)](){const _0x12d8f1=_0x6a5b69;return new L(this[_0x12d8f1(0x249)]()['getUnitId'](),_0x2d8a33(this[_0x12d8f1(0x207)]),[],this[_0x12d8f1(0x1ec)],this[_0x12d8f1(0x2a0)]);}[_0x6a5b69(0x21f)](){const _0x78898e=_0x6a5b69;return _0x38a87b(this[_0x78898e(0x2a4)]());}[_0x6a5b69(0x1cc)](_0x1c1c60){const _0x95b25d=_0x6a5b69;return this['_commandService']['syncExecuteCommand'](_0x2bda89['id'],{'unitId':this[_0x95b25d(0x178)][_0x95b25d(0x271)](),'tableId':this['_tableId'],'fieldId':_0x1c1c60});}[_0x6a5b69(0x2bf)](){const _0x1cfe13=_0x6a5b69;return this[_0x1cfe13(0x2a4)]()[_0x1cfe13(0x258)];}[_0x6a5b69(0x1cf)](){const _0xc8dab6=_0x6a5b69;let _0xf7c46f=this['_base'][_0xc8dab6(0x249)]()[_0xc8dab6(0x196)]();return _0x193fc0(this['_getTable'](),_0xf7c46f);}[_0x6a5b69(0x16c)](_0x40db57){const _0x4060a8=_0x6a5b69;let _0x4b4ec6=_0x4fd34e(this['_base'][_0x4060a8(0x249)]()['getSnapshot'](),_0x40db57,this[_0x4060a8(0x207)]);if(!_0x4b4ec6[_0x4060a8(0x181)])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x40db57+'\x22.\x20'+_0x5963f1+'\x20'+_0x4b4ec6['reason']);return this[_0x4060a8(0x1ec)]['syncExecuteCommand'](_0x264dca['id'],{'unitId':this[_0x4060a8(0x178)][_0x4060a8(0x271)](),'tableId':this[_0x4060a8(0x207)],'name':_0x40db57});}[_0x6a5b69(0x2a3)](_0x4563a,_0x14517c){const _0x30ec75=_0x6a5b69;let _0x54be8a=this['_base'][_0x30ec75(0x249)]()[_0x30ec75(0x196)](),_0x50a328=this[_0x30ec75(0x2a4)]();if(_0x14517c){let _0x494ebb=this[_0x30ec75(0x298)][_0x30ec75(0x240)](_0x54be8a,this[_0x30ec75(0x207)],_0x14517c),_0x255ce7=_0x50a328[_0x30ec75(0x1ab)][_0x14517c],_0x562693=_0x4563a[_0x30ec75(0x1fd)]??Tt(_0x50a328,_0x255ce7,_0x494ebb),_0x5b571f=_0x30ec75(0x1f4)in _0x494ebb&&Array[_0x30ec75(0x285)](_0x494ebb[_0x30ec75(0x1f4)])?_0x494ebb['rows']:[];return _0x729fff({..._0x4563a,'table':_0x50a328,'fieldIds':_0x562693,'rows':_0x5b571f});}let _0x3dcf2f=(_0x50a328['recordOrder']?_0x50a328['recordOrder'][_0x30ec75(0x2ba)](_0x1b7dba=>_0x50a328[_0x30ec75(0x1c8)][_0x1b7dba]):Object['values'](_0x50a328['records'])['sort']((_0x4c40ef,_0x3ccbeb)=>_0x4c40ef[_0x30ec75(0x179)][_0x30ec75(0x23c)](_0x3ccbeb['orderKey'])))[_0x30ec75(0x253)](_0x172fca=>_0x172fca)['map'](_0x368495=>({'recordId':_0x368495['id'],'values':_0x368495[_0x30ec75(0x2b6)]})),_0x5258ac=_0x4563a['fieldIds']??_0x50a328[_0x30ec75(0x16b)][_0x30ec75(0x253)](_0x974228=>V(_0x50a328[_0x30ec75(0x243)][_0x974228]));return _0x729fff({..._0x4563a,'table':_0x50a328,'fieldIds':_0x5258ac,'rows':_0x3dcf2f});}[_0x6a5b69(0x1d0)](){const _0x50d9ae=_0x6a5b69;return this[_0x50d9ae(0x2a4)]()[_0x50d9ae(0x17d)];}['getFields'](){const _0x4608af=_0x6a5b69;let _0x5524ae=this[_0x4608af(0x2a4)]();return _0x5524ae[_0x4608af(0x16b)]['map'](_0x212a40=>_0x5524ae[_0x4608af(0x243)][_0x212a40])[_0x4608af(0x253)](V)[_0x4608af(0x2ba)](_0x182529=>this['_injector'][_0x4608af(0x1d7)](B,this[_0x4608af(0x178)],this,_0x182529['id']));}['getFieldById'](_0x2661ef){const _0x5b18d1=_0x6a5b69;let _0x61b9b=this[_0x5b18d1(0x2a4)]()[_0x5b18d1(0x243)][_0x2661ef];return V(_0x61b9b)?this['_injector'][_0x5b18d1(0x1d7)](B,this['_base'],this,_0x61b9b['id']):null;}[_0x6a5b69(0x284)](_0x5253cf){const _0x4aee2e=_0x6a5b69;let _0x23b73c=this[_0x4aee2e(0x2a4)]()[_0x4aee2e(0x243)],_0x364f47=Object[_0x4aee2e(0x2b6)](_0x23b73c)['find'](_0x5aea6d=>V(_0x5aea6d)&&_0x5aea6d[_0x4aee2e(0x258)]===_0x5253cf);return _0x364f47?this[_0x4aee2e(0x1a1)][_0x4aee2e(0x1d7)](B,this[_0x4aee2e(0x178)],this,_0x364f47['id']):null;}[_0x6a5b69(0x260)](){const _0xa628cf=_0x6a5b69;let _0x285d2e=this[_0xa628cf(0x2a4)]()['primaryFieldId'];return this[_0xa628cf(0x1a1)]['createInstance'](B,this[_0xa628cf(0x178)],this,_0x285d2e);}[_0x6a5b69(0x2af)](_0xb70d9e,_0x50c72c,_0x443aab){const _0x4b8e6d=_0x6a5b69;var _0x34358d,_0x1fb241;if(!Object['values'](_0x1dcf64)[_0x4b8e6d(0x274)](_0x18413d=>_0x18413d===_0x50c72c))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x50c72c)+'\x22.');if(_0x50c72c===_0x1dcf64['Formula']&&this[_0x4b8e6d(0x23d)](_0xb70d9e,_0x443aab),_0x50c72c===_0x1dcf64[_0x4b8e6d(0x222)]&&(typeof(_0x443aab==null||(_0x34358d=_0x443aab[_0x4b8e6d(0x2a7)])==null||(_0x34358d=_0x34358d['config'])==null?void 0x0:_0x34358d[_0x4b8e6d(0x1b1)])!=_0x4b8e6d(0x295)||typeof _0x443aab[_0x4b8e6d(0x2a7)]['config'][_0x4b8e6d(0x22c)]!='boolean'))throw Error(_0x4b8e6d(0x1ac));let _0x16692b={..._0x443aab==null?void 0x0:_0x443aab['field'],'id':_0x49e131(0x6),'name':_0xb70d9e,'type':_0x50c72c,'config':(_0x443aab==null||(_0x1fb241=_0x443aab['field'])==null?void 0x0:_0x1fb241[_0x4b8e6d(0x2bb)])??{}};if(!this[_0x4b8e6d(0x1ec)][_0x4b8e6d(0x1d5)](_0x2ecef1['id'],{'unitId':this[_0x4b8e6d(0x178)][_0x4b8e6d(0x271)](),'tableId':this[_0x4b8e6d(0x207)],'field':_0x16692b,'index':_0x443aab==null?void 0x0:_0x443aab[_0x4b8e6d(0x1d6)]}))throw Error(_0x4b8e6d(0x1b7)+_0xb70d9e+'\x22');return this[_0x4b8e6d(0x1a1)][_0x4b8e6d(0x1d7)](B,this[_0x4b8e6d(0x178)],this,_0x16692b['id']);}['_prepareFormulaFieldReferences'](_0x31af3a,_0x1cf677){const _0x2d9d5d=_0x6a5b69;var _0x23e74e;if(!_0x1cf677||!(_0x2d9d5d(0x198)in _0x1cf677)||!Array['isArray'](_0x1cf677[_0x2d9d5d(0x198)]))throw Error(_0x2d9d5d(0x1ca));let _0x4098d7=this[_0x2d9d5d(0x1ec)][_0x2d9d5d(0x1d5)](_0x43f42c['id'],{'unitId':this['_base'][_0x2d9d5d(0x271)](),'tableId':this[_0x2d9d5d(0x207)],'formula':String(((_0x23e74e=_0x1cf677[_0x2d9d5d(0x2a7)])==null||(_0x23e74e=_0x23e74e[_0x2d9d5d(0x2bb)])==null?void 0x0:_0x23e74e[_0x2d9d5d(0x199)])??'')});if(!_0x4098d7[_0x2d9d5d(0x181)])throw Error(_0x4098d7[_0x2d9d5d(0x27c)]??_0x2d9d5d(0x208));if(_0x1cf677['externalReferences'][_0x2d9d5d(0x273)]>0x0&&!this[_0x2d9d5d(0x1ec)]['syncExecuteCommand'](_0x2057d2['id'],{'unitId':this[_0x2d9d5d(0x178)][_0x2d9d5d(0x271)](),'references':_0x1cf677[_0x2d9d5d(0x198)]}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0x31af3a+'\x22');}[_0x6a5b69(0x2b1)](){const _0x2546d9=_0x6a5b69;return this[_0x2546d9(0x1bd)]()[_0x2546d9(0x2ba)](_0x51df7c=>this[_0x2546d9(0x1a1)][_0x2546d9(0x1d7)](Y,this[_0x2546d9(0x178)],this,_0x51df7c,this[_0x2546d9(0x1a1)]));}[_0x6a5b69(0x185)](_0x1c3f0d){const _0x38d644=_0x6a5b69;return this[_0x38d644(0x2a4)]()[_0x38d644(0x1c8)][_0x1c3f0d]?this[_0x38d644(0x1a1)]['createInstance'](Y,this[_0x38d644(0x178)],this,_0x1c3f0d,this[_0x38d644(0x1a1)]):null;}[_0x6a5b69(0x1f0)](_0x450cc9={}){const _0x3731c9=_0x6a5b69;let _0x45a87e=this[_0x3731c9(0x2a4)](),_0x1f38dc=this[_0x3731c9(0x1bd)](_0x450cc9),_0x358504=Math[_0x3731c9(0x239)](0x0,_0x450cc9['offset']??0x0),_0x3f4fd1=_0x450cc9['limit']==null?null:Math[_0x3731c9(0x239)](0x0,_0x450cc9['limit']),_0x16e273=yt(_0x1f38dc['map'](_0x56e712=>_0x45a87e['records'][_0x56e712])[_0x3731c9(0x253)](_0x1f6ec7=>xt(_0x1f6ec7,_0x45a87e,_0x450cc9['filter'])),_0x45a87e,_0x450cc9['sort']);return{'records':vt(_0x16e273,_0x450cc9)[_0x3731c9(0x2ba)](_0x46b1a3=>this[_0x3731c9(0x1a1)][_0x3731c9(0x1d7)](Y,this[_0x3731c9(0x178)],this,_0x46b1a3['id'],this['_injector'])),'total':_0x16e273[_0x3731c9(0x273)],'offset':_0x358504,'limit':_0x3f4fd1,'hasMore':_0x3f4fd1!=null&&_0x358504+_0x3f4fd1<_0x16e273['length']};}[_0x6a5b69(0x244)](_0x46ef85,_0x1b8829='id',_0x420636){const _0xe08b7b=_0x6a5b69;let _0x14fc9a=this['_getTable'](),_0xeb8e38=Date[_0xe08b7b(0x26c)](),_0x59e723={..._0x420636,'id':_0x49e131(0x6),'values':H(_0x14fc9a,_0x46ef85,_0x1b8829),'orderKey':(_0x420636==null?void 0x0:_0x420636[_0xe08b7b(0x179)])||''+_0xeb8e38,'createdAt':(_0x420636==null?void 0x0:_0x420636[_0xe08b7b(0x277)])||_0xeb8e38,'updatedAt':(_0x420636==null?void 0x0:_0x420636[_0xe08b7b(0x2c3)])||_0xeb8e38};if(!this[_0xe08b7b(0x1ec)][_0xe08b7b(0x1d5)](_0x817aeb['id'],{'unitId':this['_base'][_0xe08b7b(0x271)](),'tableId':this[_0xe08b7b(0x207)],'record':_0x59e723,'source':_0x43f637['Facade']}))throw Error(_0xe08b7b(0x29c)+_0x59e723['id']+'\x22');return this[_0xe08b7b(0x1a1)]['createInstance'](Y,this[_0xe08b7b(0x178)],this,_0x59e723['id'],this[_0xe08b7b(0x1a1)]);}[_0x6a5b69(0x22f)](_0x325134){const _0xc19a73=_0x6a5b69;if(!_0x325134['length'])return[];let _0x313b63=this[_0xc19a73(0x2a4)](),_0x444929=Date[_0xc19a73(0x26c)](),_0x39948e=_0x325134['map']((_0x6c1ca0,_0x3f749f)=>{const _0xead5b3=_0xc19a73;var _0x3fdd16,_0x5475ca,_0x13439c;return{..._0x6c1ca0[_0xead5b3(0x296)],'id':_0x49e131(0x6),'values':H(_0x313b63,_0x6c1ca0[_0xead5b3(0x2b6)],_0x6c1ca0[_0xead5b3(0x27d)]??'id'),'orderKey':((_0x3fdd16=_0x6c1ca0[_0xead5b3(0x296)])==null?void 0x0:_0x3fdd16[_0xead5b3(0x179)])||''+(_0x444929+_0x3f749f),'createdAt':((_0x5475ca=_0x6c1ca0[_0xead5b3(0x296)])==null?void 0x0:_0x5475ca[_0xead5b3(0x277)])||_0x444929,'updatedAt':((_0x13439c=_0x6c1ca0[_0xead5b3(0x296)])==null?void 0x0:_0x13439c['updatedAt'])||_0x444929};});if(!this[_0xc19a73(0x1ec)][_0xc19a73(0x1d5)](_0x28e204['id'],{'unitId':this[_0xc19a73(0x178)][_0xc19a73(0x271)](),'tableId':this[_0xc19a73(0x207)],'records':_0x39948e,'source':_0x43f637[_0xc19a73(0x29b)]}))throw Error(_0xc19a73(0x223));return _0x39948e[_0xc19a73(0x2ba)](_0x1fa199=>this[_0xc19a73(0x1a1)][_0xc19a73(0x1d7)](Y,this['_base'],this,_0x1fa199['id'],this['_injector']));}[_0x6a5b69(0x210)](_0x2b268c){const _0x5b5763=_0x6a5b69;return!_0x2b268c[_0x5b5763(0x273)]||this[_0x5b5763(0x1ec)][_0x5b5763(0x1d5)](_0x16f69d['id'],{'unitId':this[_0x5b5763(0x178)]['getId'](),'tableId':this[_0x5b5763(0x207)],'recordIds':_0x2b268c,'source':_0x43f637[_0x5b5763(0x29b)]});}[_0x6a5b69(0x2b2)](_0x5c1ff2,_0x243836,_0x2f5ec7=0x1,_0xf25938=0x1){const _0x260268=_0x6a5b69;return this[_0x260268(0x1a1)][_0x260268(0x1d7)](K,this[_0x260268(0x178)],this,{'startRow':_0x5c1ff2,'endRow':_0x5c1ff2+_0x2f5ec7-0x1,'startColumn':_0x243836,'endColumn':_0x243836+_0xf25938-0x1},this['_injector']);}['getDataRange'](){const _0x28dea8=_0x6a5b69;var _0x2c8468;let _0x57d1c1=_0xff35e2(this[_0x28dea8(0x2a4)]()),_0x381e53=((_0x2c8468=_0x57d1c1[_0x28dea8(0x2ae)])==null?void 0x0:_0x2c8468[_0x28dea8(0x273)])??0x0,_0x3cc814=_0x57d1c1[_0x28dea8(0x16b)][_0x28dea8(0x253)](_0x4c15ec=>V(_0x57d1c1[_0x28dea8(0x243)][_0x4c15ec]))[_0x28dea8(0x273)];return this[_0x28dea8(0x2b2)](0x0,0x0,Math[_0x28dea8(0x239)](_0x381e53,0x1),Math[_0x28dea8(0x239)](_0x3cc814,0x1));}[_0x6a5b69(0x27e)](){const _0x45c101=_0x6a5b69;let _0x369501=this[_0x45c101(0x2a4)]();return _0x369501[_0x45c101(0x254)][_0x45c101(0x253)](_0x20110e=>_0x369501['views'][_0x20110e])[_0x45c101(0x2ba)](_0x2bd080=>this[_0x45c101(0x1a1)][_0x45c101(0x1d7)](X,this[_0x45c101(0x178)],this,_0x2bd080,this[_0x45c101(0x1a1)]));}[_0x6a5b69(0x225)](_0x80f590){const _0x813168=_0x6a5b69;return this[_0x813168(0x2a4)]()[_0x813168(0x1ab)][_0x80f590]?this[_0x813168(0x1a1)][_0x813168(0x1d7)](X,this[_0x813168(0x178)],this,_0x80f590,this[_0x813168(0x1a1)]):null;}['getViewByName'](_0x147e09){const _0x179acc=_0x6a5b69;let _0x442609=this[_0x179acc(0x2a4)](),_0x20a86c=Object[_0x179acc(0x2b6)](_0x442609['views'])[_0x179acc(0x24f)](_0x3cd39c=>_0x3cd39c[_0x179acc(0x258)]===_0x147e09);return _0x20a86c?this[_0x179acc(0x1a1)][_0x179acc(0x1d7)](X,this[_0x179acc(0x178)],this,_0x20a86c['id'],this[_0x179acc(0x1a1)]):null;}[_0x6a5b69(0x201)](_0xc28bbb,_0x257b67,_0x39f4b3){const _0x24e25c=_0x6a5b69;var _0x258eac,_0x21f82e,_0x29b98e,_0x40ea7c;let _0x51bcbf=this['_getTable'](),_0x349226=(_0x39f4b3==null||(_0x258eac=_0x39f4b3[_0x24e25c(0x1fa)])==null?void 0x0:_0x258eac[_0x24e25c(0x16b)])??_0x51bcbf['fieldOrder'],_0x5cabef=[_0x8c29d8,..._0x349226[_0x24e25c(0x253)](_0x530e40=>V(_0x51bcbf[_0x24e25c(0x243)][_0x530e40]))],_0x518238={..._0x39f4b3==null?void 0x0:_0x39f4b3[_0x24e25c(0x1fa)],'id':_0x49e131(0x6),'name':_0xc28bbb,'type':_0x257b67,'tableId':this[_0x24e25c(0x207)],'config':(_0x39f4b3==null||(_0x21f82e=_0x39f4b3['view'])==null?void 0x0:_0x21f82e['config'])??{},'fieldOrder':_0x5cabef,'fieldSettings':{..._0x39f4b3==null||(_0x29b98e=_0x39f4b3[_0x24e25c(0x1fa)])==null?void 0x0:_0x29b98e[_0x24e25c(0x1a9)],[_0x8c29d8]:{..._0x39f4b3==null||(_0x40ea7c=_0x39f4b3[_0x24e25c(0x1fa)])==null||(_0x40ea7c=_0x40ea7c['fieldSettings'])==null?void 0x0:_0x40ea7c[_0x8c29d8],'hidden':!0x0}}};if(!this[_0x24e25c(0x1ec)][_0x24e25c(0x1d5)](_0x4efbdd['id'],{'unitId':this[_0x24e25c(0x178)][_0x24e25c(0x271)](),'tableId':this[_0x24e25c(0x207)],'view':_0x518238,'index':_0x39f4b3==null?void 0x0:_0x39f4b3['index']}))throw Error('Failed\x20to\x20create\x20view\x20\x22'+_0xc28bbb+'\x22');return this[_0x24e25c(0x1a1)][_0x24e25c(0x1d7)](X,this[_0x24e25c(0x178)],this,_0x518238['id'],this[_0x24e25c(0x1a1)]);}[_0x6a5b69(0x1e2)](){const _0x5c2df4=_0x6a5b69;let _0x17986d=this['_getTable'](),_0x524d9c=_0x17986d[_0x5c2df4(0x16b)]['filter'](_0x2d1182=>V(_0x17986d['fields'][_0x2d1182])),_0x336889=_0x17986d[_0x5c2df4(0x254)][_0x5c2df4(0x253)](_0x34d4dc=>_0x17986d[_0x5c2df4(0x1ab)][_0x34d4dc]);return{'id':_0x17986d['id'],'name':_0x17986d[_0x5c2df4(0x258)],'formulaName':this['getFormulaName'](),'primaryFieldId':_0x17986d[_0x5c2df4(0x17d)],'fieldIds':_0x524d9c,'viewIds':_0x336889,'recordCount':this[_0x5c2df4(0x1bd)]()[_0x5c2df4(0x273)],'fields':_0x524d9c['map'](_0x3d0fee=>{const _0xd9f799=_0x5c2df4;let _0x48f16b=_0x17986d[_0xd9f799(0x243)][_0x3d0fee];return{'id':_0x48f16b['id'],'name':_0x48f16b[_0xd9f799(0x258)],'type':_0x48f16b[_0xd9f799(0x18d)],'config':_0x48f16b['config'],'readonly':_0x48f16b['readonly'],'description':_0x48f16b[_0xd9f799(0x2ad)]};}),'views':_0x336889['map'](_0x4889e1=>{const _0x49a2d4=_0x5c2df4;let _0x34f375=_0x17986d['views'][_0x4889e1];return{'id':_0x34f375['id'],'name':_0x34f375[_0x49a2d4(0x258)],'type':_0x34f375[_0x49a2d4(0x18d)]};})};}[_0x6a5b69(0x2a4)](){const _0x4547c8=_0x6a5b69;let _0xce9a9d=this['_base'][_0x4547c8(0x249)]()[_0x4547c8(0x196)]()[_0x4547c8(0x29f)][this['_tableId']];if(!_0xce9a9d)throw Error('[FTable]:\x20table\x20\x22'+this[_0x4547c8(0x207)]+_0x4547c8(0x2ca));return _0xce9a9d;}[_0x6a5b69(0x1bd)](_0x4d2067={}){const _0x2ef795=_0x6a5b69;let _0xfd318d=this[_0x2ef795(0x178)]['getBase']()['getSnapshot'](),_0x5c2a18=this['_getTable']();if(_0x4d2067[_0x2ef795(0x1eb)]){let _0x39ab9a=this['_projectionService']['getProjection'](_0xfd318d,this[_0x2ef795(0x207)],_0x4d2067[_0x2ef795(0x1eb)]);if(_0x2ef795(0x1f4)in _0x39ab9a&&Array[_0x2ef795(0x285)](_0x39ab9a[_0x2ef795(0x1f4)]))return _0x39ab9a[_0x2ef795(0x1f4)][_0x2ef795(0x2ba)](_0x4b34e8=>_0x4b34e8['recordId']);}return(_0x5c2a18[_0x2ef795(0x2ae)]?_0x5c2a18[_0x2ef795(0x2ae)][_0x2ef795(0x2ba)](_0x3ba9b9=>_0x5c2a18[_0x2ef795(0x1c8)][_0x3ba9b9]):Object[_0x2ef795(0x2b6)](_0x5c2a18[_0x2ef795(0x1c8)])[_0x2ef795(0x172)]((_0x8a3983,_0x1d9eec)=>_0x8a3983['orderKey']['localeCompare'](_0x1d9eec[_0x2ef795(0x179)])))[_0x2ef795(0x253)](_0x7701b1=>_0x7701b1)[_0x2ef795(0x2ba)](_0x295a5c=>_0x295a5c['id']);}};Z=z([R(0x3,_0x1047ac),R(0x4,_0x9f57f5),R(0x5,_0x483014)],Z);function vt(_0x1f799b,_0x1b737f){const _0x4fa6d1=_0x6a5b69;let _0x147693=Math['max'](0x0,_0x1b737f[_0x4fa6d1(0x26d)]??0x0);return _0x1b737f[_0x4fa6d1(0x18a)]==null?_0x1f799b[_0x4fa6d1(0x169)](_0x147693):_0x1f799b['slice'](_0x147693,_0x147693+Math[_0x4fa6d1(0x239)](0x0,_0x1b737f[_0x4fa6d1(0x18a)]));}function yt(_0x9e9385,_0x286b20,_0x3e62ff=[]){const _0x4081de=_0x6a5b69;return _0x3e62ff[_0x4081de(0x273)]?[..._0x9e9385][_0x4081de(0x172)]((_0x9820be,_0xeeeb73)=>{const _0x46edce=_0x4081de;for(let _0x31aa5a of _0x3e62ff){var _0x28f55e;let _0xcca78d=_0x31aa5a[_0x46edce(0x1fe)]===_0x35c88d[_0x46edce(0x2cf)]?-0x1:0x1,_0x36d10d=bt(_0x9820be[_0x46edce(0x2b6)][_0x31aa5a['fieldId']],_0xeeeb73[_0x46edce(0x2b6)][_0x31aa5a[_0x46edce(0x26e)]],(_0x28f55e=_0x286b20[_0x46edce(0x243)][_0x31aa5a[_0x46edce(0x26e)]])==null?void 0x0:_0x28f55e[_0x46edce(0x18d)]);if(_0x36d10d!==0x0)return _0x36d10d*_0xcca78d;}return String(_0x9820be['orderKey']??_0x9820be['id'])['localeCompare'](String(_0xeeeb73['orderKey']??_0xeeeb73['id']));}):_0x9e9385;}function bt(_0x42858d,_0x463aa6,_0x2378cf){const _0x1a971d=_0x6a5b69;return _0x42858d==null&&_0x463aa6==null?0x0:_0x42858d==null?-0x1:_0x463aa6==null?0x1:typeof _0x42858d=='number'&&typeof _0x463aa6==_0x1a971d(0x2b0)?_0x42858d-_0x463aa6:_0x2378cf===_0x1dcf64['Date']?Number(_0x42858d)-Number(_0x463aa6):String(_0x42858d)['localeCompare'](String(_0x463aa6));}function xt(_0xa4a236,_0x4ee4a6,_0x133dcd){const _0x5679a3=_0x6a5b69;var _0x34edbb;if(!_0x133dcd||!((_0x34edbb=_0x133dcd['conditions'])!=null&&_0x34edbb[_0x5679a3(0x273)]))return!0x0;let {conjunction:_0x1596e0=_0x4157c8['OR'],conditions:_0x150eb1}=_0x133dcd;return _0x1596e0===_0x4157c8[_0x5679a3(0x20b)]&&_0x150eb1['length']>0x1?_0x150eb1[_0x5679a3(0x2ac)](_0x111d25=>St(_0xa4a236,_0x4ee4a6,_0x111d25)):_0x150eb1[_0x5679a3(0x274)](_0x18a5d4=>St(_0xa4a236,_0x4ee4a6,_0x18a5d4));}function St(_0x2acc32,_0x191c74,_0x3de5a6){const _0xdd1dec=_0x6a5b69;let _0x4401f7=_0x2acc32['values'][_0x3de5a6[_0xdd1dec(0x26e)]],_0x5915d1=_0x191c74[_0xdd1dec(0x243)][_0x3de5a6[_0xdd1dec(0x26e)]];if(Ct(_0x3de5a6)){let _0x24473b=wt(_0x3de5a6)['test'](String(_0x4401f7??''));return _0x3de5a6['operator']===_0xdd1dec(0x1db)?_0x24473b:!_0x24473b;}return!_0x5915d1||_0x17c967(_0x4401f7,_0x3de5a6['operator'],_0x3de5a6[_0xdd1dec(0x188)],_0x5915d1);}function Ct(_0x3f4d5a){const _0x26c8b2=_0x6a5b69;return _0x3f4d5a[_0x26c8b2(0x21c)]===_0x26c8b2(0x1db)||_0x3f4d5a[_0x26c8b2(0x21c)]===_0x26c8b2(0x1ee);}function wt(_0x3509e2){const _0x16d5c3=_0x6a5b69;let _0x1f1091=String(_0x3509e2[_0x16d5c3(0x188)]??'');if(_0x1f1091[_0x16d5c3(0x273)]>0x200)throw Error(_0x16d5c3(0x237));try{return new RegExp(_0x1f1091,_0x3509e2[_0x16d5c3(0x1dd)]?void 0x0:'i');}catch(_0x301424){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x1f1091+'.\x20'+(_0x301424 instanceof Error?_0x301424[_0x16d5c3(0x1c1)]:String(_0x301424)));}}function Tt(_0x51af85,_0x31aa8c,_0x2f33c6){const _0x5ae49a=_0x6a5b69;if(_0x2f33c6[_0x5ae49a(0x18d)]!==_0x5ae49a(0x2b7)&&_0x2f33c6[_0x5ae49a(0x18d)]!==_0x5ae49a(0x238)){var _0x56cc36;if(_0x2f33c6[_0x5ae49a(0x18d)]===_0x144585[_0x5ae49a(0x25d)]){var _0x32d503;let _0x16467e=[((_0x32d503=_0x2f33c6[_0x5ae49a(0x243)])==null||(_0x32d503=_0x32d503[0x0])==null?void 0x0:_0x32d503['id'])??_0x51af85[_0x5ae49a(0x17d)],..._0x2f33c6[_0x5ae49a(0x2c2)]??[]];return Array[_0x5ae49a(0x19f)](new Set(_0x16467e[_0x5ae49a(0x253)](_0x21bb3f=>!!_0x51af85['fields'][_0x21bb3f])));}if((_0x56cc36=_0x2f33c6[_0x5ae49a(0x243)])!=null&&_0x56cc36['length'])return _0x2f33c6['fields']['map'](_0x31e0b1=>_0x31e0b1['id'])[_0x5ae49a(0x253)](_0x8204ac=>{const _0x772b0a=_0x5ae49a;var _0x44966b;return!(!_0x51af85['fields'][_0x8204ac]||_0x31aa8c!=null&&(_0x44966b=_0x31aa8c[_0x772b0a(0x1a9)])!=null&&(_0x44966b=_0x44966b[_0x8204ac])!=null&&_0x44966b['hidden']);});}return _0x51af85[_0x5ae49a(0x16b)][_0x5ae49a(0x253)](_0x3db99d=>{const _0x40bdc8=_0x5ae49a;var _0x19952c;return!(!_0x51af85[_0x40bdc8(0x243)][_0x3db99d]||_0x31aa8c!=null&&(_0x19952c=_0x31aa8c['fieldSettings'])!=null&&(_0x19952c=_0x19952c[_0x3db99d])!=null&&_0x19952c['hidden']);});}let Q=class extends _0x4e29a4[_0x6a5b69(0x29d)]{constructor(_0x3543d1,_0xb0932d,_0x3ae81a,_0xc6574f,_0x27aef6){const _0x240b6b=_0x6a5b69;super(),this['_base']=_0x3543d1,this[_0x240b6b(0x1a1)]=_0xb0932d,this[_0x240b6b(0x220)]=_0x3ae81a,this['_commandService']=_0xc6574f,this['_permissionService']=_0x27aef6;}['getBase'](){const _0x50e60d=_0x6a5b69;return this[_0x50e60d(0x178)];}[_0x6a5b69(0x271)](){const _0xde98b6=_0x6a5b69;return this[_0xde98b6(0x178)]['getUnitId']();}['getPermission'](){const _0x344ce8=_0x6a5b69;return new at(this[_0x344ce8(0x271)](),this[_0x344ce8(0x1ec)],this[_0x344ce8(0x2a0)]);}[_0x6a5b69(0x1a8)](){const _0x1a188d=_0x6a5b69;return this[_0x1a188d(0x220)][_0x1a188d(0x25c)](this[_0x1a188d(0x271)]())??_0x2517f7[_0x1a188d(0x2d0)](this['_base'][_0x1a188d(0x196)]());}[_0x6a5b69(0x2bf)](){const _0x1861dd=_0x6a5b69;return this[_0x1861dd(0x178)][_0x1861dd(0x196)]()[_0x1861dd(0x258)];}[_0x6a5b69(0x16c)](_0x27786c){const _0x1d90a3=_0x6a5b69;this['_commandService'][_0x1d90a3(0x1d5)](_0x280ebb['id'],{'unitId':this[_0x1d90a3(0x271)](),'name':_0x27786c});}[_0x6a5b69(0x1da)](){const _0x3c63cc=_0x6a5b69;let _0x115c85=this[_0x3c63cc(0x178)][_0x3c63cc(0x196)]();return _0x115c85[_0x3c63cc(0x1df)][_0x3c63cc(0x2ba)](_0x1bf062=>_0x115c85[_0x3c63cc(0x29f)][_0x1bf062])[_0x3c63cc(0x253)](_0x90c365=>_0x90c365)[_0x3c63cc(0x2ba)](_0x9d3e10=>this[_0x3c63cc(0x1a1)]['createInstance'](Z,this,_0x9d3e10['id'],this[_0x3c63cc(0x1a1)]));}[_0x6a5b69(0x23b)](_0x2693be){const _0xd20f04=_0x6a5b69;let _0xfdfbdd=this['_base'][_0xd20f04(0x196)]()[_0xd20f04(0x29f)][_0x2693be];return _0xfdfbdd?this['_injector'][_0xd20f04(0x1d7)](Z,this,_0xfdfbdd['id'],this[_0xd20f04(0x1a1)]):null;}[_0x6a5b69(0x18e)](_0x10726d){const _0x8b147=_0x6a5b69;let _0x254ea4=this['_base'][_0x8b147(0x196)](),_0x4b7ed1=Object[_0x8b147(0x2b6)](_0x254ea4[_0x8b147(0x29f)])[_0x8b147(0x24f)](_0x3eaaff=>_0x3eaaff['name']===_0x10726d);return _0x4b7ed1?this[_0x8b147(0x1a1)]['createInstance'](Z,this,_0x4b7ed1['id'],this[_0x8b147(0x1a1)]):null;}[_0x6a5b69(0x217)](_0x31728c,_0x26cb96){const _0x3d79c1=_0x6a5b69;let _0x5b9d27=_0xe17d11({'id':_0x49e131(),'name':_0x31728c,..._0x26cb96==null?void 0x0:_0x26cb96[_0x3d79c1(0x21a)],'primaryFieldName':_0x26cb96==null?void 0x0:_0x26cb96[_0x3d79c1(0x206)]}),_0x47ae03=_0x2517f7[_0x3d79c1(0x1f3)](_0x5b9d27,(_0x26cb96==null?void 0x0:_0x26cb96[_0x3d79c1(0x21a)])??{}),_0x46b0d3=_0x4fd34e(this[_0x3d79c1(0x178)][_0x3d79c1(0x196)](),_0x47ae03[_0x3d79c1(0x258)]);if(!_0x46b0d3['valid'])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x47ae03[_0x3d79c1(0x258)]+'\x22.\x20'+_0x5963f1+'\x20'+_0x46b0d3['reason']);if(!this[_0x3d79c1(0x1ec)][_0x3d79c1(0x1d5)](_0x118e4c['id'],{'unitId':this['_base'][_0x3d79c1(0x2ce)](),'table':_0x47ae03,'index':_0x26cb96==null?void 0x0:_0x26cb96['index']}))throw Error(_0x3d79c1(0x2a5)+_0x31728c+'\x22.');return this[_0x3d79c1(0x1a1)]['createInstance'](Z,this,_0x47ae03['id'],this[_0x3d79c1(0x1a1)]);}['deleteTable'](_0x297b76){const _0xb8aed=_0x6a5b69;let _0x4eada2=typeof _0x297b76==_0xb8aed(0x295)?_0x297b76:_0x297b76[_0xb8aed(0x271)]();if(!this[_0xb8aed(0x1ec)][_0xb8aed(0x1d5)](_0x480168['id'],{'unitId':this[_0xb8aed(0x178)][_0xb8aed(0x2ce)](),'tableId':_0x4eada2}))throw Error(_0xb8aed(0x1bb)+_0x4eada2+'\x22.');return!0x0;}[_0x6a5b69(0x173)](_0xf63470,_0x168ad1){const _0x34093d=_0x6a5b69;let _0x3f71c6=this[_0x34093d(0x178)][_0x34093d(0x196)](),_0x59ff83=typeof _0xf63470=='string'?_0xf63470:_0xf63470[_0x34093d(0x271)](),_0x295279=_0x3f71c6[_0x34093d(0x29f)][_0x59ff83];if(!_0x295279)throw Error('[FBase]:\x20table\x20\x22'+_0x59ff83+_0x34093d(0x2ca));let _0x3fa56e=_0x3f71c6[_0x34093d(0x1df)][_0x34093d(0x2a6)](_0x59ff83)+0x1,_0x2f4792=_0x49e131(),_0x3519e2=_0x16e20(_0x295279,{'id':_0x2f4792,'name':_0x279ff1(_0x3f71c6,_0x295279[_0x34093d(0x258)]+_0x34093d(0x187)),'includeRecords':(_0x168ad1==null?void 0x0:_0x168ad1[_0x34093d(0x1dc)])??!0x1,'regenerateViewIds':(_0x168ad1==null?void 0x0:_0x168ad1[_0x34093d(0x1cb)])??!0x1});if(!this[_0x34093d(0x1ec)][_0x34093d(0x1d5)](_0x118e4c['id'],{'unitId':this['_base']['getUnitId'](),'table':_0x3519e2,'index':_0x3fa56e}))throw Error(_0x34093d(0x252)+_0x59ff83+'\x22.');return this['_injector']['createInstance'](Z,this,_0x3519e2['id'],this[_0x34093d(0x1a1)]);}[_0x6a5b69(0x1e2)](){const _0x5072d4=_0x6a5b69;let _0x49f5a3=this[_0x5072d4(0x178)][_0x5072d4(0x196)]();return{'id':_0x49f5a3['id'],'name':_0x49f5a3[_0x5072d4(0x258)],'tables':this['getTables']()[_0x5072d4(0x2ba)](_0x53fdf0=>_0x53fdf0[_0x5072d4(0x1e2)]())};}};Q=z([R(0x1,_0x547f59(_0x3c554c)),R(0x2,_0x595187),R(0x3,_0x1047ac),R(0x4,_0x9f57f5)],Q);var Et=class extends _0x61ceef{[_0x6a5b69(0x195)](){const _0x5941ce=_0x6a5b69;this[_0x5941ce(0x235)](),this[_0x5941ce(0x17f)]();}[_0x6a5b69(0x25e)](_0x10d865={},_0xb53601){const _0x5480d7=_0x6a5b69;let _0x4291ec=this[_0x5480d7(0x256)][_0x5480d7(0x29a)](_0x523a99['UNIVER_BASE'],_0x10d865,_0xb53601);return this[_0x5480d7(0x1a1)][_0x5480d7(0x1d7)](Q,_0x4291ec);}[_0x6a5b69(0x261)](){const _0xfee1c9=_0x6a5b69;let _0x44fc27=this['_univerInstanceService']['getCurrentUnitOfType'](_0x523a99['UNIVER_BASE']);return _0x44fc27?this['_injector'][_0xfee1c9(0x1d7)](Q,_0x44fc27):null;}['getBase'](_0x279d64){const _0x42fb2e=_0x6a5b69;let _0x5f2e7e=this['_univerInstanceService']['getUnit'](_0x279d64,_0x523a99[_0x42fb2e(0x1c4)]);return _0x5f2e7e?this[_0x42fb2e(0x1a1)][_0x42fb2e(0x1d7)](Q,_0x5f2e7e):null;}[_0x6a5b69(0x227)](){const _0xcf611f=_0x6a5b69;return this[_0xcf611f(0x256)][_0xcf611f(0x2b3)](_0x523a99['UNIVER_BASE'])[_0xcf611f(0x2ba)](_0x19dbb1=>this[_0xcf611f(0x1a1)][_0xcf611f(0x1d7)](Q,_0x19dbb1));}['_initBaseAfterEvents'](){const _0x595f0d=_0x6a5b69;this[_0x595f0d(0x18f)](this[_0x595f0d(0x229)](this['Event'][_0x595f0d(0x1e6)],()=>this[_0x595f0d(0x1ec)]['onCommandExecuted']((_0x45077a,_0x5e6ed1)=>{const _0xccd6a5=_0x595f0d;var _0x2bd0d4;if(!$(_0x45077a,_0x4664de))return;let _0xfbdb13=_0x45077a[_0xccd6a5(0x2c5)];if(!((_0x2bd0d4=_0xfbdb13[_0xccd6a5(0x293)])!=null&&_0x2bd0d4[_0xccd6a5(0x273)]))return;let _0x2b6ecb=this[_0xccd6a5(0x249)](_0xfbdb13['unitId']),_0x311ea5=_0x2b6ecb==null?void 0x0:_0x2b6ecb[_0xccd6a5(0x23b)](_0xfbdb13[_0xccd6a5(0x293)][0x0]['tableId']);if(!_0x2b6ecb||!_0x311ea5)return;let _0x3bfb54={'base':_0x2b6ecb,'table':_0x311ea5,'changes':_0xfbdb13[_0xccd6a5(0x293)],'source':_0x5e6ed1!=null&&_0x5e6ed1[_0xccd6a5(0x26a)]?_0x43f637[_0xccd6a5(0x16e)]:_0xfbdb13['source']??_0x43f637['UI']};this['fireEvent'](this[_0xccd6a5(0x232)][_0xccd6a5(0x1e6)],_0x3bfb54);}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x595f0d(0x232)][_0x595f0d(0x1e7)],()=>this[_0x595f0d(0x1ec)][_0x595f0d(0x212)](_0x24400a=>{const _0x555026=_0x595f0d;if(_0x24400a['id']!==_0x118e4c['id'])return;let {unitId:_0x3c973b,table:_0x33745f,index:_0x1f9ec9}=_0x24400a[_0x555026(0x2c5)],_0x4a723a=this['getBase'](_0x3c973b);if(!_0x4a723a)return;let _0x1c46ea={'base':_0x4a723a,'table':_0x33745f,'index':_0x1f9ec9};this[_0x555026(0x1e4)](this[_0x555026(0x232)][_0x555026(0x1e7)],_0x1c46ea);}))),this['disposeWithMe'](this[_0x595f0d(0x229)](this[_0x595f0d(0x232)]['BaseTableFieldCreated'],()=>this['_commandService'][_0x595f0d(0x212)](_0x36c77a=>{const _0x5353d9=_0x595f0d;if(_0x36c77a['id']!==_0x2ecef1['id'])return;let {unitId:_0x199608,tableId:_0x58c2ef,field:_0x53bd08,index:_0x19e960,viewIndexes:_0x26c12c}=_0x36c77a[_0x5353d9(0x2c5)],_0x2ce16a=this[_0x5353d9(0x249)](_0x199608);if(!_0x2ce16a)return;let _0x1e3115=_0x2ce16a[_0x5353d9(0x23b)](_0x58c2ef);if(!_0x1e3115)return;let _0xee3a87={'base':_0x2ce16a,'table':_0x1e3115,'field':_0x53bd08,'index':_0x19e960,'viewIndexes':_0x26c12c};this['fireEvent'](this[_0x5353d9(0x232)]['BaseTableFieldCreated'],_0xee3a87);}))),this[_0x595f0d(0x18f)](this[_0x595f0d(0x229)](this[_0x595f0d(0x232)][_0x595f0d(0x246)],()=>this[_0x595f0d(0x1ec)][_0x595f0d(0x212)](_0x3df761=>{const _0x5adc43=_0x595f0d;if(_0x3df761['id']!==_0x817aeb['id']&&_0x3df761['id']!==_0x28e204['id'])return;let _0x393ba4=_0x3df761[_0x5adc43(0x2c5)],{unitId:_0x3c6a86,tableId:_0x5a3c43}=_0x393ba4,_0x2676b2=_0x393ba4['records']??[_0x393ba4['record']],_0x3ed4ac=this['getBase'](_0x3c6a86);if(!_0x3ed4ac)return;let _0x6d6d97=_0x3ed4ac[_0x5adc43(0x23b)](_0x5a3c43);if(!_0x6d6d97)return;let _0x388b54={'base':_0x3ed4ac,'table':_0x6d6d97,'records':_0x2676b2};this[_0x5adc43(0x1e4)](this[_0x5adc43(0x232)][_0x5adc43(0x246)],_0x388b54);}))),this[_0x595f0d(0x18f)](this[_0x595f0d(0x229)](this[_0x595f0d(0x232)][_0x595f0d(0x2c4)],()=>this[_0x595f0d(0x1ec)][_0x595f0d(0x212)](_0x26df91=>{const _0x1c2804=_0x595f0d;if(_0x26df91['id']!==_0x4efbdd['id'])return;let {unitId:_0x23cdc7,tableId:_0x276f75,view:_0x51682b,index:_0x1fc36b}=_0x26df91[_0x1c2804(0x2c5)],_0x47a67e=this['getBase'](_0x23cdc7);if(!_0x47a67e)return;let _0x2b5db7=_0x47a67e[_0x1c2804(0x23b)](_0x276f75);if(!_0x2b5db7)return;let _0x807920={'base':_0x47a67e,'table':_0x2b5db7,'view':_0x51682b,'index':_0x1fc36b};this['fireEvent'](this[_0x1c2804(0x232)][_0x1c2804(0x2c4)],_0x807920);}))),this[_0x595f0d(0x18f)](this['registerEventHandler'](this[_0x595f0d(0x232)][_0x595f0d(0x2a1)],()=>this[_0x595f0d(0x1ec)][_0x595f0d(0x212)](_0x5c6d39=>{const _0x13be0d=_0x595f0d;if(_0x5c6d39['id']!==_0x3a32fc['id'])return;let {unitId:_0x12eb8b,tableId:_0x18b6e7,recordId:_0x2c5943,fieldId:_0x55dd53,value:_0x228ff1}=_0x5c6d39[_0x13be0d(0x2c5)],_0x57d854=this['getBase'](_0x12eb8b);if(!_0x57d854)return;let _0x181de8=_0x57d854[_0x13be0d(0x23b)](_0x18b6e7);if(!_0x181de8)return;let _0x208d04=_0x181de8[_0x13be0d(0x20d)](_0x55dd53);if(!_0x208d04)return;let _0x548e14=_0x181de8[_0x13be0d(0x185)](_0x2c5943);if(!_0x548e14)return;let _0x21c647={'base':_0x57d854,'table':_0x181de8,'field':_0x208d04,'record':_0x548e14,'value':_0x228ff1};this['fireEvent'](this[_0x13be0d(0x232)][_0x13be0d(0x2a1)],_0x21c647);})));}[_0x6a5b69(0x235)](){const _0x4148ec=_0x6a5b69;this['disposeWithMe'](this['registerEventHandler'](this[_0x4148ec(0x232)][_0x4148ec(0x247)],()=>this['_commandService'][_0x4148ec(0x2cb)](_0x3aa81e=>{const _0x20ae73=_0x4148ec;if($(_0x3aa81e,_0x2cebcc)){let {unitId:_0x33f60e,tableId:_0x534d39,patches:_0x18ec4e,source:_0x28c039=_0x43f637['UI']}=_0x3aa81e[_0x20ae73(0x2c5)],_0x280a7f=this['_getHierarchyEventContext'](_0x33f60e,_0x534d39);if(!_0x280a7f)return;this[_0x20ae73(0x265)](_0x280a7f[_0x20ae73(0x191)],_0x280a7f['table'],_0x22441f(_0x280a7f[_0x20ae73(0x21a)][_0x20ae73(0x28e)](),_0x18ec4e),_0x28c039);return;}if($(_0x3aa81e,_0x50c929)){let {unitId:_0x4dc3ab,tableId:_0x10d61d,patches:_0x2f8c79,source:_0x4f3610=_0x43f637['UI']}=_0x3aa81e[_0x20ae73(0x2c5)],_0x438d81=this['_getHierarchyEventContext'](_0x4dc3ab,_0x10d61d);if(!_0x438d81)return;let _0x29a56e=_0x438d81['table']['getTable']();this['_fireBeforeHierarchyChange'](_0x438d81['base'],_0x438d81[_0x20ae73(0x21a)],_0x22441f(_0x29a56e,_0x1b3dee(_0x29a56e,_0x2f8c79)),_0x4f3610);return;}if($(_0x3aa81e,_0x817aeb)){let _0x3b152f=_0x3aa81e['params'],_0x9bde1c=this[_0x20ae73(0x170)](_0x3b152f[_0x20ae73(0x27b)],_0x3b152f['tableId']);if(!_0x9bde1c)return;this[_0x20ae73(0x265)](_0x9bde1c[_0x20ae73(0x191)],_0x9bde1c[_0x20ae73(0x21a)],_0x6f896b(_0x9bde1c['table']['getTable'](),[_0x3b152f[_0x20ae73(0x296)]]),_0x3b152f['source']??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x28e204)){let _0x14b70d=_0x3aa81e[_0x20ae73(0x2c5)],_0x426c58=this[_0x20ae73(0x170)](_0x14b70d[_0x20ae73(0x27b)],_0x14b70d[_0x20ae73(0x190)]);if(!_0x426c58)return;this['_fireBeforeHierarchyChange'](_0x426c58[_0x20ae73(0x191)],_0x426c58[_0x20ae73(0x21a)],_0x6f896b(_0x426c58[_0x20ae73(0x21a)]['getTable'](),_0x14b70d[_0x20ae73(0x1c8)]),_0x14b70d[_0x20ae73(0x2bd)]??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x499a45)){let _0xa97c3a=_0x3aa81e['params'],_0x4fc8af=this[_0x20ae73(0x170)](_0xa97c3a[_0x20ae73(0x27b)],_0xa97c3a[_0x20ae73(0x190)]);if(!_0x4fc8af)return;this[_0x20ae73(0x265)](_0x4fc8af['base'],_0x4fc8af[_0x20ae73(0x21a)],_0x6f896b(_0x4fc8af[_0x20ae73(0x21a)][_0x20ae73(0x28e)](),[_0xa97c3a['record']]),_0xa97c3a[_0x20ae73(0x2bd)]??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x448699)){let _0x52435b=_0x3aa81e[_0x20ae73(0x2c5)],_0xe9b4d=this[_0x20ae73(0x170)](_0x52435b[_0x20ae73(0x27b)],_0x52435b['tableId']);if(!_0xe9b4d)return;let _0x4d9518=_0xe9b4d['table'][_0x20ae73(0x28e)](),_0x15b1c4=_0x52435b['fieldId']??_0x38a87b(_0x4d9518),_0x28d0a0=_0x5b61b7(_0x4d9518,_0x15b1c4)[_0x20ae73(0x183)]['get'](_0x52435b[_0x20ae73(0x1c9)])??null;this[_0x20ae73(0x265)](_0xe9b4d[_0x20ae73(0x191)],_0xe9b4d[_0x20ae73(0x21a)],[{'tableId':_0x52435b[_0x20ae73(0x190)],'fieldId':_0x15b1c4,'recordId':_0x52435b[_0x20ae73(0x1c9)],'oldParentRecordId':_0x28d0a0,'parentRecordId':_0x52435b[_0x20ae73(0x192)]}],_0x52435b[_0x20ae73(0x2bd)]??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x4cd8a9)){let _0x2bbfc6=_0x3aa81e[_0x20ae73(0x2c5)],_0x57dc1a=this[_0x20ae73(0x170)](_0x2bbfc6['unitId'],_0x2bbfc6[_0x20ae73(0x190)]);if(!_0x57dc1a)return;let _0xa8d04a=_0x2bbfc6['fieldId']??_0x38a87b(_0x57dc1a[_0x20ae73(0x21a)][_0x20ae73(0x28e)]());this[_0x20ae73(0x265)](_0x57dc1a[_0x20ae73(0x191)],_0x57dc1a[_0x20ae73(0x21a)],[{'tableId':_0x2bbfc6[_0x20ae73(0x190)],'fieldId':_0xa8d04a,'recordId':_0x2bbfc6[_0x20ae73(0x296)]['id'],'oldParentRecordId':null,'parentRecordId':_0x2bbfc6['parentRecordId']}],_0x2bbfc6['source']??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x392c6f)){let _0x379272=_0x3aa81e[_0x20ae73(0x2c5)],_0x4fda42=this['_getHierarchyEventContext'](_0x379272['unitId'],_0x379272[_0x20ae73(0x190)]);if(!_0x4fda42)return;this[_0x20ae73(0x265)](_0x4fda42[_0x20ae73(0x191)],_0x4fda42['table'],_0x57d1f1(_0x4fda42[_0x20ae73(0x21a)][_0x20ae73(0x28e)](),[_0x379272[_0x20ae73(0x1c9)]]),_0x379272[_0x20ae73(0x2bd)]??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x16f69d)){let _0x3130f3=_0x3aa81e[_0x20ae73(0x2c5)],_0x261d66=this[_0x20ae73(0x170)](_0x3130f3[_0x20ae73(0x27b)],_0x3130f3[_0x20ae73(0x190)]);if(!_0x261d66)return;this[_0x20ae73(0x265)](_0x261d66[_0x20ae73(0x191)],_0x261d66[_0x20ae73(0x21a)],_0x57d1f1(_0x261d66[_0x20ae73(0x21a)][_0x20ae73(0x28e)](),_0x3130f3[_0x20ae73(0x214)]),_0x3130f3[_0x20ae73(0x2bd)]??_0x43f637['UI']);return;}if(!$(_0x3aa81e,_0x3a32fc))return;let _0x3955bb=_0x3aa81e[_0x20ae73(0x2c5)],_0x3bc653=this[_0x20ae73(0x170)](_0x3955bb[_0x20ae73(0x27b)],_0x3955bb['tableId']);if(!_0x3bc653)return;let _0x2e996a=_0x3bc653[_0x20ae73(0x21a)]['getTable']();if(!_0x327c28(_0x2e996a)[_0x20ae73(0x290)](_0x3955bb[_0x20ae73(0x26e)]))return;let _0x3050ff=_0x5b61b7(_0x2e996a,_0x3955bb[_0x20ae73(0x26e)])[_0x20ae73(0x183)][_0x20ae73(0x2d1)](_0x3955bb['recordId'])??null,_0x38c706=_0x2b8d32(_0x3955bb[_0x20ae73(0x188)])[0x0]??null;_0x3050ff!==_0x38c706&&this[_0x20ae73(0x265)](_0x3bc653[_0x20ae73(0x191)],_0x3bc653[_0x20ae73(0x21a)],[{'tableId':_0x3955bb['tableId'],'fieldId':_0x3955bb['fieldId'],'recordId':_0x3955bb[_0x20ae73(0x1c9)],'oldParentRecordId':_0x3050ff,'parentRecordId':_0x38c706}],_0x3955bb[_0x20ae73(0x2bd)]??_0x43f637['UI']);}))),this[_0x4148ec(0x18f)](this[_0x4148ec(0x229)](this[_0x4148ec(0x232)][_0x4148ec(0x283)],()=>this['_commandService'][_0x4148ec(0x2cb)](_0x2acf56=>{const _0xd79b92=_0x4148ec;if(_0x2acf56['id']!==_0x118e4c['id'])return;let {unitId:_0x10c270,table:_0xe7ec27,index:_0x10d909}=_0x2acf56['params'],_0x26e354=this[_0xd79b92(0x249)](_0x10c270);if(!_0x26e354)return;let _0xf448d8={'base':_0x26e354,'table':_0xe7ec27,'index':_0x10d909};if(this[_0xd79b92(0x1e4)](this[_0xd79b92(0x232)]['BeforeBaseTableCreate'],_0xf448d8),_0xf448d8[_0xd79b92(0x1af)])throw new _0x35b56f();}))),this[_0x4148ec(0x18f)](this[_0x4148ec(0x229)](this[_0x4148ec(0x232)][_0x4148ec(0x245)],()=>this['_commandService']['beforeCommandExecuted'](_0x44ba5c=>{const _0x5f18a7=_0x4148ec;if(_0x44ba5c['id']!==_0x2ecef1['id'])return;let {unitId:_0x46e66b,tableId:_0x9cbc72,field:_0x2ab4b9,index:_0x45dc84,viewIndexes:_0x1e0057}=_0x44ba5c[_0x5f18a7(0x2c5)],_0x5c92f4=this[_0x5f18a7(0x249)](_0x46e66b);if(!_0x5c92f4)return;let _0x528d17=_0x5c92f4['getTableById'](_0x9cbc72);if(!_0x528d17)return;let _0x4f70d7={'base':_0x5c92f4,'table':_0x528d17,'field':_0x2ab4b9,'index':_0x45dc84,'viewIndexes':_0x1e0057};if(this[_0x5f18a7(0x1e4)](this[_0x5f18a7(0x232)][_0x5f18a7(0x245)],_0x4f70d7),_0x4f70d7['cancel'])throw new _0x35b56f();}))),this[_0x4148ec(0x18f)](this[_0x4148ec(0x229)](this['Event'][_0x4148ec(0x276)],()=>this[_0x4148ec(0x1ec)][_0x4148ec(0x2cb)](_0xde26c=>{const _0x3cdd47=_0x4148ec;if(_0xde26c['id']!==_0x817aeb['id']&&_0xde26c['id']!==_0x28e204['id'])return;let _0x1bfe03=_0xde26c[_0x3cdd47(0x2c5)],{unitId:_0x12c8bb,tableId:_0xb945d2}=_0x1bfe03,_0x59584d=_0x1bfe03[_0x3cdd47(0x1c8)]??[_0x1bfe03[_0x3cdd47(0x296)]],_0x2d1ed1=this[_0x3cdd47(0x249)](_0x12c8bb);if(!_0x2d1ed1)return;let _0x35e88f=_0x2d1ed1[_0x3cdd47(0x23b)](_0xb945d2);if(!_0x35e88f)return;let _0x476399={'base':_0x2d1ed1,'table':_0x35e88f,'records':_0x59584d};if(this[_0x3cdd47(0x1e4)](this['Event'][_0x3cdd47(0x276)],_0x476399),_0x476399[_0x3cdd47(0x1af)])throw new _0x35b56f();}))),this['disposeWithMe'](this[_0x4148ec(0x229)](this[_0x4148ec(0x232)][_0x4148ec(0x2c6)],()=>this[_0x4148ec(0x1ec)]['beforeCommandExecuted'](_0x2e64d6=>{const _0x41afb5=_0x4148ec;if(_0x2e64d6['id']!==_0x4efbdd['id'])return;let {unitId:_0x10aae0,tableId:_0x11e419,view:_0x1b906b,index:_0x529a18}=_0x2e64d6[_0x41afb5(0x2c5)],_0x4dfcf6=this[_0x41afb5(0x249)](_0x10aae0);if(!_0x4dfcf6)return;let _0x5be43b=_0x4dfcf6[_0x41afb5(0x23b)](_0x11e419);if(!_0x5be43b)return;let _0x349b4d={'base':_0x4dfcf6,'table':_0x5be43b,'view':_0x1b906b,'index':_0x529a18};if(this[_0x41afb5(0x1e4)](this[_0x41afb5(0x232)][_0x41afb5(0x2c6)],_0x349b4d),_0x349b4d[_0x41afb5(0x1af)])throw new _0x35b56f();}))),this[_0x4148ec(0x18f)](this[_0x4148ec(0x229)](this['Event']['BeforeBaseTableCellValueChange'],()=>this[_0x4148ec(0x1ec)][_0x4148ec(0x2cb)](_0x4fd84a=>{const _0x55782a=_0x4148ec;if(_0x4fd84a['id']!==_0x3a32fc['id'])return;let {unitId:_0x1f119f,tableId:_0x222fef,recordId:_0x14aec8,fieldId:_0x328bc3,value:_0x4c6b2a}=_0x4fd84a[_0x55782a(0x2c5)],_0x1aaf40=this[_0x55782a(0x249)](_0x1f119f);if(!_0x1aaf40)return;let _0x5038fd=_0x1aaf40['getTableById'](_0x222fef);if(!_0x5038fd)return;let _0x16040e=_0x5038fd['getFieldById'](_0x328bc3);if(!_0x16040e)return;let _0x25a38b=_0x5038fd[_0x55782a(0x185)](_0x14aec8);if(!_0x25a38b)return;let _0x1d8e14={'base':_0x1aaf40,'table':_0x5038fd,'field':_0x16040e,'record':_0x25a38b,'value':_0x4c6b2a};if(this[_0x55782a(0x1e4)](this[_0x55782a(0x232)][_0x55782a(0x1f5)],_0x1d8e14),_0x1d8e14['cancel'])throw new _0x35b56f();})));}[_0x6a5b69(0x170)](_0x26290c,_0x2b7b23){const _0x23694f=_0x6a5b69;let _0x2757bb=this['getBase'](_0x26290c),_0x1e6019=_0x2757bb==null?void 0x0:_0x2757bb[_0x23694f(0x23b)](_0x2b7b23);return _0x2757bb&&_0x1e6019?{'base':_0x2757bb,'table':_0x1e6019}:null;}[_0x6a5b69(0x265)](_0x4d503f,_0x510759,_0x2725cb,_0x2469e3){const _0x24f333=_0x6a5b69;if(!_0x2725cb[_0x24f333(0x273)])return;let _0xc429b6={'base':_0x4d503f,'table':_0x510759,'changes':_0x2725cb,'source':_0x2469e3};if(this[_0x24f333(0x1e4)](this[_0x24f333(0x232)][_0x24f333(0x247)],_0xc429b6),_0xc429b6['cancel'])throw new _0x35b56f();}};function $(_0x415add,_0x539a67){const _0x93853b=_0x6a5b69;return _0x415add['id']===_0x539a67['id']&&_0x415add[_0x93853b(0x2c5)]!==void 0x0;}_0x61ceef[_0x6a5b69(0x1f9)](Et);var Dt=class extends _0x21148e{get[_0x6a5b69(0x28a)](){return _0x1dcf64;}get[_0x6a5b69(0x1a0)](){return _0x4157c8;}get['BaseFilterOperator'](){return _0x394202;}get[_0x6a5b69(0x248)](){return ot;}get['BaseViewType'](){return _0x144585;}get[_0x6a5b69(0x218)](){return _0x44652a;}get[_0x6a5b69(0x22d)](){return _0x3f8d13;}get[_0x6a5b69(0x231)](){return _0x206636;}get['BaseSortDirection'](){return _0x35c88d;}get['BaseEventSource'](){return _0x43f637;}get[_0x6a5b69(0x194)](){return _0x53ea69;}get[_0x6a5b69(0x2a2)](){return _0x549f37;}get[_0x6a5b69(0x1d1)](){return _0x546818;}};_0x21148e[_0x6a5b69(0x1f9)](Dt);var Ot=class extends _0xf4815a{get['BaseTableCreated'](){const _0x4e4800=_0x6a5b69;return _0x4e4800(0x1e7);}get[_0x6a5b69(0x283)](){const _0x3820bf=_0x6a5b69;return _0x3820bf(0x283);}get[_0x6a5b69(0x1fc)](){return'BaseTableFieldCreated';}get[_0x6a5b69(0x245)](){const _0x1acf45=_0x6a5b69;return _0x1acf45(0x245);}get[_0x6a5b69(0x246)](){const _0x175575=_0x6a5b69;return _0x175575(0x246);}get[_0x6a5b69(0x276)](){const _0x51f543=_0x6a5b69;return _0x51f543(0x276);}get[_0x6a5b69(0x2c4)](){const _0x841e19=_0x6a5b69;return _0x841e19(0x2c4);}get[_0x6a5b69(0x2c6)](){const _0x35d1c1=_0x6a5b69;return _0x35d1c1(0x2c6);}get[_0x6a5b69(0x2a1)](){const _0x4cafb6=_0x6a5b69;return _0x4cafb6(0x2a1);}get['BeforeBaseTableCellValueChange'](){const _0x3b1310=_0x6a5b69;return _0x3b1310(0x1f5);}get[_0x6a5b69(0x1e6)](){return'BaseHierarchyChanged';}get['BeforeBaseHierarchyChange'](){const _0x500a9e=_0x6a5b69;return _0x500a9e(0x247);}};_0xf4815a['extend'](Ot);function _0x1896(_0x2d5065,_0x504d52){_0x2d5065=_0x2d5065-0x166;const _0x37f6c3=_0x37f6();let _0x189625=_0x37f6c3[_0x2d5065];return _0x189625;}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 _0xa82a90=_0x6787;(function(_0x136c85,_0x4bdbb7){const _0x10ea92=_0x6787,_0x2b6de8=_0x136c85();while(!![]){try{const _0x5b444d=-parseInt(_0x10ea92(0x218))/0x1+-parseInt(_0x10ea92(0x1e9))/0x2+-parseInt(_0x10ea92(0x1c7))/0x3*(-parseInt(_0x10ea92(0x104))/0x4)+-parseInt(_0x10ea92(0x12f))/0x5+parseInt(_0x10ea92(0x1b7))/0x6*(-parseInt(_0x10ea92(0x1ad))/0x7)+-parseInt(_0x10ea92(0x16f))/0x8*(parseInt(_0x10ea92(0xf5))/0x9)+parseInt(_0x10ea92(0x1ef))/0xa*(parseInt(_0x10ea92(0x120))/0xb);if(_0x5b444d===_0x4bdbb7)break;else _0x2b6de8['push'](_0x2b6de8['shift']());}catch(_0x5cf84a){_0x2b6de8['push'](_0x2b6de8['shift']());}}}(_0x1211,0x18b35));import{ApplyBaseJson1Mutation as _0x468b24,BASE_TABLE_NAME_REQUIREMENTS as _0x4860a7,BaseConditionalColorRuleUpdateType as _0x42becf,BaseEventSource as _0x28f784,BaseHierarchyErrorCode as _0x478f6a,BatchCreateBaseRecordsCommand as _0x3621b0,BatchDeleteBaseRecordsCommand as _0xc321e2,ChangeBaseFieldTypeCommand as _0x5f0f71,CreateBaseChildRecordCommand as _0x2ebda1,CreateBaseFieldCommand as _0x12434b,CreateBaseRecordCommand as _0x46b942,CreateBaseTableCommand as _0x51f087,CreateBaseViewCommand as _0x26c58a,DeleteBaseFieldCommand as _0x1b57dc,DeleteBaseRecordCommand as _0x4bc901,DeleteBaseTableCommand as _0x56b5ff,DeleteBaseViewCommand as _0x597774,DuplicateBaseRecordCommand as _0xb34da3,IBaseProjectionService as _0x122330,MoveBaseFieldCommand as _0x267e58,MoveBaseHierarchyRecordCommand as _0x506b33,MoveBaseViewCommand as _0x225e14,RenameBaseTableCommand as _0x4fb09a,RenameBaseViewCommand as _0x563eba,SetBaseNameCommand as _0x20863c,SetBasePermissionCommand as _0xe2151d,SetBasePermissionsCommand as _0x50e0bb,SetBaseRangeValuesCommand as _0x48c562,SetBaseRecordValuesCommand as _0xe6c5d7,SetBaseTableHierarchyFieldCommand as _0x441237,SetBaseViewFieldOrderCommand as _0x5112a6,SetBaseViewFieldVisibleCommand as _0xd4ceb9,SetBaseViewFieldWidthCommand as _0x231743,SetBaseViewFilterCommand as _0x272d16,SetBaseViewGroupCommand as _0x34053f,SetBaseViewSortCommand as _0x3f0de6,UpdateBaseCellCommand as _0x13154a,UpdateBaseFieldCommand as _0x427c52,UpdateBaseRecordOrderCommand as _0x2b9e59,UpdateBaseViewConditionalColorRulesCommand as _0x11d15b,UpdateBaseViewConfigCommand as _0x4f78a0,ValidateBaseFormulaCommand as _0x43ba15,buildBaseHierarchyIndex as _0x1c9c0c,canEditBaseTargets as _0x1e6f18,copyBaseTableSnapshot as _0x2d9602,createUniqueBaseTableName as _0x3324e5,ensureBaseTableCellLayout as _0x2bd74f,getActiveBaseHierarchyFieldIds as _0x2576f4,getBaseCellValue as _0x49e036,getBaseFieldPermissionObjectId as _0x834444,getBaseFormulaTableName as _0x4fc8af,getBaseHierarchyDeletePromotions as _0x1a3bb4,getBasePermissionValue as _0x53920f,getBaseRecordPermissionObjectId as _0x45ccf4,getBaseTablePermissionObjectId as _0x2ba937,getBaseViewPermissionObjectId as _0x1a325f,getRecordLinkFieldConfig as _0x417656,matchesBaseCondition as _0x22cf16,parseRecordLinkIds as _0x277ee5,resolveBaseHierarchyFieldId as _0x273f61,resolveBaseRangeHierarchyPatches as _0x3240f0,searchBaseTable as _0x56cf71,serializeRecordLinkIds as _0xa134f9,validateBaseHierarchyRecordCreations as _0x506d92,validateBaseHierarchyRecordPatches as _0x513eca,validateBaseTableName as _0x21dd01,validateRecordLinkValue as _0x13d452}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x2297f6,BaseConditionalColorOperator as _0x5a5143,BaseConditionalColorTarget as _0x3afeed,BaseConditionalDateMode as _0x1038ed,BaseFieldType as _0x130508,BaseFilterConjunction as _0x150572,BaseFilterOperator as _0x31d69a,BaseHierarchyInvalidReason as _0x1e2568,BaseRecordLinkRole as _0x25e3fb,BaseSortDirection as _0xca6318,BaseViewType as _0x80f07f,CanceledError as _0xc1a95d,ICommandService as _0x1d508f,IPermissionService as _0x574fc3,IResourceLoaderService as _0x1e7781,ImageSourceType as _0x57a6a5,Inject as _0x380356,Injector as _0x26cf4b,Tools as _0x3a42ae,UniverInstanceType as _0x4b17b4,createDefaultBaseTableSnapshot as _0x46ae84,generateRandomId as _0x32f1bd}from'@univerjs/core';import*as _0x23839b from'@univerjs/core/facade';import{FBaseInitialable as _0x29a84f,FEnum as _0x30b9c1,FEventName as _0x9a302c,FUniver as _0x371b32}from'@univerjs/core/facade';import{UnitAction as _0x3fa0e4}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x3033ec}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x1cf82b,_0x3c441b,_0x280a2d){const _0x15333e=_0x6787;this[_0x15333e(0x153)]=_0x1cf82b,this[_0x15333e(0x191)]=_0x3c441b,this[_0x15333e(0x1c2)]=_0x280a2d;}async['setObjectPermissions'](_0x3ca200){const _0x4976be=_0x6787;return this[_0x4976be(0x191)]['executeCommand'](_0x50e0bb['id'],{'unitId':this[_0x4976be(0x153)],'changes':_0x3ca200});}async[_0xa82a90(0x134)](_0x5c6d45,_0x10ea26){const _0x58b7a8=_0xa82a90;await this[_0x58b7a8(0x191)][_0x58b7a8(0x189)](_0xe2151d['id'],{'unitId':this['_unitId'],'objectId':this[_0x58b7a8(0x153)],'action':_0x5c6d45,'value':_0x10ea26});}[_0xa82a90(0x188)](_0x9ff1d8){const _0x493d66=_0xa82a90;return _0x53920f(this[_0x493d66(0x1c2)],this[_0x493d66(0x153)],this['_unitId'],_0x9ff1d8);}async[_0xa82a90(0xf8)](_0x46bce6=!0x0){const _0x3cc78a=_0xa82a90;await this[_0x3cc78a(0x191)][_0x3cc78a(0x189)](_0xe2151d['id'],{'unitId':this[_0x3cc78a(0x153)],'objectId':this[_0x3cc78a(0x153)],'action':_0x3fa0e4[_0x3cc78a(0x203)],'value':_0x46bce6});}async['setReadOnly'](){const _0x53f4d0=_0xa82a90;await this[_0x53f4d0(0x191)][_0x53f4d0(0x189)](_0xe2151d['id'],{'unitId':this['_unitId'],'objectId':this[_0x53f4d0(0x153)],'action':_0x3fa0e4[_0x53f4d0(0x203)],'value':!0x1});}[_0xa82a90(0x171)](){const _0x5b328d=_0xa82a90;return _0x53920f(this['_permissionService'],this[_0x5b328d(0x153)],this[_0x5b328d(0x153)],_0x3fa0e4[_0x5b328d(0x203)]);}},L=class{constructor(_0x2f3e1f,_0x203a79,_0x5995ec,_0x4af81f,_0xd6087c){const _0x1c734e=_0xa82a90;this['_unitId']=_0x2f3e1f,this[_0x1c734e(0xfa)]=_0x203a79,this[_0x1c734e(0x166)]=_0x5995ec,this[_0x1c734e(0x191)]=_0x4af81f,this[_0x1c734e(0x1c2)]=_0xd6087c;}async[_0xa82a90(0xf8)](_0x4a5d3b=!0x0){const _0x431904=_0xa82a90;await this[_0x431904(0x191)]['executeCommand'](_0xe2151d['id'],{'unitId':this[_0x431904(0x153)],'objectId':this[_0x431904(0xfa)],'action':_0x3fa0e4['Edit'],'value':_0x4a5d3b});}async['setReadOnly'](){const _0x59d80a=_0xa82a90;await this[_0x59d80a(0x191)][_0x59d80a(0x189)](_0xe2151d['id'],{'unitId':this[_0x59d80a(0x153)],'objectId':this[_0x59d80a(0xfa)],'action':_0x3fa0e4[_0x59d80a(0x203)],'value':!0x1});}[_0xa82a90(0x171)](){const _0x363181=_0xa82a90;return _0x1e6f18(this[_0x363181(0x1c2)],this[_0x363181(0x153)],[...this[_0x363181(0x166)],this[_0x363181(0xfa)]]);}};function R(_0x5006ff,_0x258699){return function(_0x12f373,_0x17e246){_0x258699(_0x12f373,_0x17e246,_0x5006ff);};}function z(_0x101134,_0x396b0e,_0x55cf1e,_0x5185b3){const _0x17c391=_0xa82a90;var _0x54e90d=arguments[_0x17c391(0x216)],_0x580c10=_0x54e90d<0x3?_0x396b0e:_0x5185b3===null?_0x5185b3=Object['getOwnPropertyDescriptor'](_0x396b0e,_0x55cf1e):_0x5185b3,_0x42de25;if(typeof Reflect==_0x17c391(0x207)&&typeof Reflect[_0x17c391(0x161)]=='function')_0x580c10=Reflect[_0x17c391(0x161)](_0x101134,_0x396b0e,_0x55cf1e,_0x5185b3);else{for(var _0x3a2a56=_0x101134[_0x17c391(0x216)]-0x1;_0x3a2a56>=0x0;_0x3a2a56--)(_0x42de25=_0x101134[_0x3a2a56])&&(_0x580c10=(_0x54e90d<0x3?_0x42de25(_0x580c10):_0x54e90d>0x3?_0x42de25(_0x396b0e,_0x55cf1e,_0x580c10):_0x42de25(_0x396b0e,_0x55cf1e))||_0x580c10);}return _0x54e90d>0x3&&_0x580c10&&Object[_0x17c391(0x16e)](_0x396b0e,_0x55cf1e,_0x580c10),_0x580c10;}let B=class{constructor(_0x2f376a,_0x2a291e,_0x47bfb6,_0x32dd82,_0x46b1f3){const _0xc13aa9=_0xa82a90;this['_base']=_0x2f376a,this[_0xc13aa9(0x1a1)]=_0x2a291e,this[_0xc13aa9(0x15c)]=_0x47bfb6,this[_0xc13aa9(0x191)]=_0x32dd82,this[_0xc13aa9(0x1c2)]=_0x46b1f3;}['getId'](){const _0x4a6f79=_0xa82a90;return this[_0x4a6f79(0x15c)];}['getPermission'](){const _0x23c809=_0xa82a90;let _0xf6de34=this[_0x23c809(0x1a1)]['getId']();return new L(this[_0x23c809(0x130)][_0x23c809(0x1eb)](),_0x834444(_0xf6de34,this['_fieldId']),[_0x2ba937(_0xf6de34)],this[_0x23c809(0x191)],this[_0x23c809(0x1c2)]);}[_0xa82a90(0x1a0)](){const _0x4abaa3=_0xa82a90;return this[_0x4abaa3(0x1bd)]();}[_0xa82a90(0x1a3)](){const _0x5641e2=_0xa82a90;return this[_0x5641e2(0x1bd)]()[_0x5641e2(0xf6)];}[_0xa82a90(0xeb)](){const _0x48c084=_0xa82a90;return this[_0x48c084(0x1bd)]()['type'];}[_0xa82a90(0x170)](){const _0x3fb1b4=_0xa82a90;return this['_getField']()[_0x3fb1b4(0x19e)];}[_0xa82a90(0x10f)](){const _0x3bd0e2=_0xa82a90;return this['_getField']()[_0x3bd0e2(0x1a9)];}[_0xa82a90(0x142)](){const _0x5caf7c=_0xa82a90;return this[_0x5caf7c(0x1bd)]()[_0x5caf7c(0x1e6)];}[_0xa82a90(0x182)](){const _0x4490f0=_0xa82a90;return!!this[_0x4490f0(0x1bd)]()['readonly'];}['setName'](_0x39d9ae){const _0x1e45c1=_0xa82a90;return this[_0x1e45c1(0x102)]({'name':_0x39d9ae});}['setConfig'](_0x4b6151,_0x17dd72){const _0x47f864=_0xa82a90;return this[_0x47f864(0x102)]({'config':_0x4b6151},_0x17dd72);}[_0xa82a90(0x1f7)](_0x59f829){const _0x11baaf=_0xa82a90;return this[_0x11baaf(0x102)]({'defaultValue':_0x59f829});}[_0xa82a90(0x102)](_0x3df3b9,_0x3f2957){const _0x181d13=_0xa82a90;let _0x5439c5=this[_0x181d13(0x1bd)]()['type'];return(_0x3df3b9[_0x181d13(0x1e5)]??_0x5439c5)===_0x130508[_0x181d13(0x21e)]&&(Object['prototype']['hasOwnProperty']['call'](_0x3df3b9,_0x181d13(0x19e))||_0x3df3b9[_0x181d13(0x1e5)]===_0x130508[_0x181d13(0x21e)])&&!this[_0x181d13(0x190)](_0x3f2957)?!0x1:this[_0x181d13(0x191)][_0x181d13(0x116)](_0x427c52['id'],{'unitId':this['_base'][_0x181d13(0x1eb)](),'tableId':this[_0x181d13(0x1a1)]['getId'](),'fieldId':this['_fieldId'],'patch':_0x3df3b9});}[_0xa82a90(0x112)](_0x1be78e,_0x3e97c9={},_0x15d2cf){const _0x11aa98=_0xa82a90;return _0x1be78e===_0x130508[_0x11aa98(0x21e)]&&!this[_0x11aa98(0x190)](_0x15d2cf)?!0x1:this[_0x11aa98(0x191)]['syncExecuteCommand'](_0x5f0f71['id'],{'unitId':this[_0x11aa98(0x130)][_0x11aa98(0x1eb)](),'tableId':this[_0x11aa98(0x1a1)]['getId'](),'fieldId':this[_0x11aa98(0x15c)],'input':{'type':_0x1be78e,'config':_0x3e97c9}});}[_0xa82a90(0x118)](){const _0x20b224=_0xa82a90;return this[_0x20b224(0x191)][_0x20b224(0x116)](_0x1b57dc['id'],{'unitId':this[_0x20b224(0x130)]['getId'](),'tableId':this[_0x20b224(0x1a1)][_0x20b224(0x1eb)](),'fieldId':this[_0x20b224(0x15c)]});}[_0xa82a90(0x1ac)](_0x24b881){const _0x1911e3=_0xa82a90;return this['_commandService'][_0x1911e3(0x116)](_0x267e58['id'],{'unitId':this[_0x1911e3(0x130)][_0x1911e3(0x1eb)](),'tableId':this[_0x1911e3(0x1a1)][_0x1911e3(0x1eb)](),'fieldId':this[_0x1911e3(0x15c)],'target':_0x24b881});}[_0xa82a90(0x1bd)](){const _0x566427=_0xa82a90;let _0x597df5=this[_0x566427(0x1a1)][_0x566427(0x196)]()[_0x566427(0x20a)][this[_0x566427(0x15c)]];if(!_0x597df5)throw Error('[FField]:\x20field\x20\x22'+this[_0x566427(0x15c)]+_0x566427(0xe1));return _0x597df5;}['_writeFormulaExternalReferences'](_0x163294){const _0x3669b0=_0xa82a90;if(!_0x163294||!Array['isArray'](_0x163294[_0x3669b0(0x1db)]))return console[_0x3669b0(0x200)]('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0x163294[_0x3669b0(0x1db)][_0x3669b0(0x216)]===0x0)return!0x0;let _0x22bb74=this['_commandService'][_0x3669b0(0x116)](_0x3033ec['id'],{'unitId':this['_base'][_0x3669b0(0x1eb)](),'references':_0x163294[_0x3669b0(0x1db)]});return _0x22bb74||console[_0x3669b0(0x200)](_0x3669b0(0x1b3)),_0x22bb74;}};B=z([R(0x3,_0x1d508f),R(0x4,_0x574fc3)],B);let ot=function(_0x50bed9){const _0x6a1d77=_0xa82a90;return _0x50bed9['Id']='id',_0x50bed9[_0x6a1d77(0xde)]='name',_0x50bed9[_0x6a1d77(0x1f8)]=_0x6a1d77(0x1d1),_0x50bed9;}({});function V(_0x16142c){const _0x19faa1=_0xa82a90;return!!(_0x16142c&&_0x16142c[_0x19faa1(0x18d)]!==!0x0&&_0x16142c['type']!==_0x130508[_0x19faa1(0x1a2)]);}function H(_0x13e491,_0x3df6a8,_0x4e1c92='id'){const _0x42f8e8=_0xa82a90;if(!_0x3df6a8)return{};let _0x513b33={};return Object['entries'](_0x3df6a8)[_0x42f8e8(0x230)](([_0x1ae7e0,_0x48c83a])=>{let _0x29ef3a=ct(_0x13e491,_0x1ae7e0,_0x4e1c92);_0x513b33[_0x29ef3a]=st(_0x13e491['fields'][_0x29ef3a],_0x48c83a);}),_0x513b33;}function st(_0x87975c,_0x42587c){const _0x412922=_0xa82a90;if((_0x87975c==null?void 0x0:_0x87975c['type'])!==_0x130508[_0x412922(0x1b2)]||_0x42587c==null)return _0x42587c;if(!Array['isArray'](_0x42587c))throw TypeError('Invalid\x20attachment\x20value\x20for\x20field\x20\x22'+_0x87975c[_0x412922(0xf6)]+_0x412922(0x22e));return _0x42587c[_0x412922(0x20b)]((_0x1981e4,_0x467f34)=>lt(_0x87975c,_0x1981e4,_0x467f34));}function ct(_0x6bb9e0,_0x44198c,_0x193e20){const _0x115f21=_0xa82a90;if(_0x193e20==='id'||_0x193e20===_0x115f21(0x1d1)&&_0x6bb9e0[_0x115f21(0x20a)][_0x44198c])return _0x44198c;let _0x2fc62a=Object[_0x115f21(0x19d)](_0x6bb9e0[_0x115f21(0x20a)])[_0x115f21(0xe7)](_0x3e08ee=>_0x3e08ee[_0x115f21(0xf6)]===_0x44198c);if(_0x2fc62a[_0x115f21(0x216)]===0x1)return _0x2fc62a[0x0]['id'];throw _0x2fc62a['length']>0x1?Error(_0x115f21(0x156)+_0x44198c):Error('Base\x20field\x20not\x20found:\x20'+_0x44198c);}function lt(_0x5191ff,_0x38c790,_0x503a06){const _0x11899e=_0xa82a90;let _0x87cf72='Invalid\x20attachment\x20at\x20index\x20'+_0x503a06+_0x11899e(0x1c4)+_0x5191ff['name']+'\x22';if(!ft(_0x38c790))throw TypeError(_0x87cf72+':\x20expected\x20an\x20object.');if('url'in _0x38c790)throw TypeError(_0x87cf72+_0x11899e(0x1f5));if(_0x11899e(0x1e5)in _0x38c790)throw TypeError(_0x87cf72+_0x11899e(0x197));let _0x4297a8=U(_0x38c790['id'],_0x87cf72,'id'),_0x3f9b2e=U(_0x38c790[_0x11899e(0xf6)],_0x87cf72,'name'),_0x4244ce=U(_0x38c790[_0x11899e(0x1bb)],_0x87cf72,_0x11899e(0x1bb));return{'id':_0x4297a8,'name':_0x3f9b2e,'source':_0x4244ce,'sourceType':ut(_0x38c790[_0x11899e(0x19f)],_0x4244ce,_0x87cf72),...dt(_0x38c790,_0x11899e(0x1ff),_0x87cf72),...W(_0x38c790,'size',_0x87cf72),...W(_0x38c790,_0x11899e(0x1d5),_0x87cf72),...W(_0x38c790,_0x11899e(0xd9),_0x87cf72),...dt(_0x38c790,_0x11899e(0x213),_0x87cf72)};}function ut(_0x46d929,_0x4b7964,_0x2bf7a9){const _0x65c971=_0xa82a90;if(_0x46d929==null)return _0x4b7964[_0x65c971(0xf3)](_0x65c971(0xe0))?_0x57a6a5['BASE64']:_0x57a6a5[_0x65c971(0x103)];if(_0x46d929===_0x57a6a5[_0x65c971(0x103)]||_0x46d929===_0x57a6a5[_0x65c971(0xee)]||_0x46d929===_0x57a6a5[_0x65c971(0x1e8)])return _0x46d929;throw TypeError(_0x2bf7a9+':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.');}function U(_0x5eb249,_0x563a6b,_0x3c4203){const _0x51b09d=_0xa82a90;if(typeof _0x5eb249!=_0x51b09d(0xf1)||!_0x5eb249[_0x51b09d(0x217)]())throw TypeError(_0x563a6b+_0x51b09d(0xff)+_0x3c4203+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x5eb249;}function dt(_0x1f27b7,_0x2896db,_0x67219){const _0x5ad6dc=_0xa82a90;let _0x24798c=_0x1f27b7[_0x2896db];if(_0x24798c==null)return{};if(typeof _0x24798c!=_0x5ad6dc(0xf1)||!_0x24798c['trim']())throw TypeError(_0x67219+_0x5ad6dc(0xff)+_0x2896db+_0x5ad6dc(0x12d));return{[_0x2896db]:_0x24798c};}function W(_0x24a06c,_0xad7d5c,_0x555ea0){const _0x23e1e1=_0xa82a90;let _0x36a373=_0x24a06c[_0xad7d5c];if(_0x36a373==null)return{};if(typeof _0x36a373!='number'||!Number[_0x23e1e1(0x1f2)](_0x36a373)||_0x36a373<0x0)throw TypeError(_0x555ea0+_0x23e1e1(0xff)+_0xad7d5c+_0x23e1e1(0x144));return{[_0xad7d5c]:_0x36a373};}function _0x1211(){const _0x5458b0=['record','setEditable','Failed\x20to\x20delete\x20table\x20\x22','_objectId','getTableByName','BeforeBaseTableViewCreate','endRow','some',':\x20\x22','addRecord','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','update','URL','4fpMrWo','[FView]:\x20view\x20\x22','saveUnit','getPrimaryFieldId','getViewByName','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','FBase','getProjection','fieldSettings','getValues','[FTable]:\x20table\x20\x22','getDefaultValue','createdAt','slice','changeType','BaseEventSource','iterator','fireEvent','syncExecuteCommand','tables','delete','_initBaseAfterEvents','Failed\x20to\x20duplicate\x20table\x20\x22','\x20exceeds\x20range\x20size\x20','\x22.\x20','afterFieldId','caseSensitive','onCommandExecuted','25267CCAKsq','_viewId','Grid','getRecord','\x22\x20is\x20not\x20an\x20Attachment\x20field.','BaseConditionalDateMode','recordIds','every','getFieldSettings','addRecords','BaseFieldType','Set','unitId','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','createUnit','902565JCcjqd','_base','primaryFieldName','getPermission','extend','setPoint','field','_inject','_getTable','getSnapshot','endColumn','setValues','_initBaseBeforeEvents','BaseFieldKeyEnum','now','valid','flatMap','RecordLink','updateConfig','getDescription','getBases','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','addChild','orderedRecordIds','AND','symbol','boolean','setFieldWidth','deepClone','Event','getRecords','indexOf','_getFieldIds','subtreeHeightByRecordId','primaryFieldId','getTableById','_unitId','value','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','Duplicate\x20Base\x20field\x20name:\x20','BeforeBaseTableRecordCreate','getParent','_getRecord','BeforeBaseHierarchyChange','setValue','_fieldId','fieldOrder','_baseTableId','setParent','entries','decorate','\x20Copy','insertTable','_getRecordLinkField','Kanban','_parentObjectIds','rules','registerEventHandler','getView','[FRecord]:\x20record\x20\x22','params','isArray','BaseHierarchyChanged','defineProperty','1373416yeiPpL','getConfig','canEdit','updatedAt','BaseFilterConjunction','getUnitId','Remote','Facade','[FBaseRange]:\x20values\x20size\x20','includes','_getAttachmentField','getFields','sort','startRow','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','getViews','clearConditionalColorRules','getDataRange','getTables','isReadonly','BeforeBaseTableCellValueChange','test','addField','Failed\x20to\x20create\x20table\x20\x22','BaseTableFieldCreated','getPoint','executeCommand','BaseTableCreated','readonly','viewOrder','system','BaseSortDirection','getDescendants','_writeFormulaExternalReferences','_commandService','duplicate','hidden','createInstance','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','getTable',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','BaseTableCellValueChanged','_tableId','orderKey','_resolveRecordIds','_collectDescendantIds','values','config','sourceType','getField','_table','RecordId','getName','fieldId','_univerInstanceService','[FRecord]:\x20field\x20\x22','getActiveBase','BeforeBaseTableCreate','defaultValue','size','Gallery','move','22757gYpOfe','custom','getValue','_fireBeforeHierarchyChange','getFormulaName','Attachment','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','getAttachments','commonExtend','default','252WAPbIe','rowId','getHierarchyFieldId','group','source','getNumColumns','_getField','tableOrder','parentByRecordId','max','[FRecord]:\x20invalid\x20RecordLink\x20value.','_permissionService','setAttachments','\x20for\x20field\x20\x22','push','UNIVER_BASE','464241ZnwvTJ','number','getVisibleFields','viewId','offset','setHierarchyField','getSchema','BaseTableViewCreated','views','table','auto','_assertInBounds','createBase','operator','width','BeforeBaseTableFieldCreate','reason','fromCollab','getFieldByName','getLinkedRecordIds','externalReferences','getFilter','BaseHierarchyErrorCode','startColumn','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','disposeWithMe','getTableFacade','records','fieldIds','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','type','description','Date','BASE64','55748mnVaky','save','getId','_prepareFormulaFieldReferences','localeCompare','tableId','2140DfFSeQ','addLinkedRecord','getBase','isFinite','constructor','Unsupported\x20Base\x20field\x20type\x20\x22',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','\x22\x20is\x20invalid.','setDefaultValue','Auto','index','conditions','Failed\x20to\x20create\x20view\x20\x22','clear','recordId','_getHierarchyIndex','mimeType','warn','BaseConditionalColorOperator','addConditionalColorRule','Edit','multiple','getAncestors','_getHierarchyEventContext','object','beforeCommandExecuted','conditionalColoring','fields','map','getChildren','rows','deleteConditionalColorRule','getPrimaryField','direction','recordOrder','_recordId','thumbnail','[FBaseRange]:\x20table\x20does\x20not\x20exist.','queryRecords','length','trim','28526lgeeBR','toPrimitive','createView','_projectionService','view','Invalid\x20Base\x20regex\x20filter:\x20','Formula','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','matches','setFilter','from','has','includeRecords','getColumn','_getView','[FBase]:\x20invalid\x20table\x20name\x20\x22','setName','fromEntries','setLinkedRecordIds','BaseViewType','BaseTableRecordCreated','getViewById','\x22:\x20expected\x20an\x20array.','Clear','forEach','hierarchyChanges','get','message','base','getFieldById','getSort','_injector','cancel','_range','visibleCardFieldIds','BaseConditionalColorTarget','duplicateTable','height','moveField','\x22\x20has\x20invalid\x20config.','setSort','call','Name','search','data:','\x22\x20does\x20not\x20exist.','_baseUnitId','getRange','getRecordById','parentRecordId','getNumRows','filter','Failed\x20to\x20add\x20records','getConditionalColorRules','[FBase]:\x20table\x20\x22','getType','limit','find','UUID','getGroup','setConditionalColorRules','string','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','startsWith','BaseHierarchyInvalidReason','9uzCrWx','name'];_0x1211=function(){return _0x5458b0;};return _0x1211();}function ft(_0x55624e){const _0xc9b6e3=_0xa82a90;return typeof _0x55624e==_0xc9b6e3(0x207)&&!!_0x55624e&&!Array[_0xc9b6e3(0x16c)](_0x55624e);}var G;let K=G=class{constructor(_0x408d48,_0x55ce13,_0xe523b,_0x344c65,_0x429aef){const _0x1f9ac4=_0xa82a90;this[_0x1f9ac4(0x130)]=_0x408d48,this[_0x1f9ac4(0x1a1)]=_0x55ce13,this[_0x1f9ac4(0xd5)]=_0xe523b,this[_0x1f9ac4(0x136)]=_0x344c65,this['_commandService']=_0x429aef,this[_0x1f9ac4(0x1d2)]();}['getBaseId'](){const _0x54fce9=_0xa82a90;return this[_0x54fce9(0x130)][_0x54fce9(0x1eb)]();}['getTableId'](){const _0x3e71f6=_0xa82a90;return this[_0x3e71f6(0x1a1)][_0x3e71f6(0x1eb)]();}[_0xa82a90(0xe3)](){const _0x22b57c=_0xa82a90;return{...this[_0x22b57c(0xd5)]};}['getRow'](){const _0x4e9b17=_0xa82a90;return this['_range'][_0x4e9b17(0x17c)];}[_0xa82a90(0x225)](){const _0x283247=_0xa82a90;return this['_range'][_0x283247(0x1de)];}[_0xa82a90(0xe6)](){const _0x11277a=_0xa82a90;return this[_0x11277a(0xd5)][_0x11277a(0xfd)]-this[_0x11277a(0xd5)]['startRow']+0x1;}['getNumColumns'](){const _0x13a051=_0xa82a90;return this[_0x13a051(0xd5)][_0x13a051(0x139)]-this[_0x13a051(0xd5)]['startColumn']+0x1;}['getValues'](){const _0x3c6dca=_0xa82a90;let _0x4723c2=this['_getTable'](),_0x2ce57e=this['_getFieldIds'](_0x4723c2),_0x252f82=[];for(let _0x4dc7e0=this[_0x3c6dca(0xd5)]['startRow'];_0x4dc7e0<=this['_range'][_0x3c6dca(0xfd)];_0x4dc7e0++){var _0x5eb741;let _0x44f544=(_0x5eb741=_0x4723c2['rowId'])==null?void 0x0:_0x5eb741[_0x4dc7e0],_0xe8ff07=[];for(let _0x24072a=this['_range'][_0x3c6dca(0x1de)];_0x24072a<=this[_0x3c6dca(0xd5)]['endColumn'];_0x24072a++){let _0x1938f1=_0x2ce57e[_0x24072a];_0xe8ff07[_0x3c6dca(0x1c5)](_0x44f544&&_0x1938f1?_0x49e036(_0x4723c2,_0x44f544,_0x1938f1):null);}_0x252f82[_0x3c6dca(0x1c5)](_0xe8ff07);}return _0x252f82;}[_0xa82a90(0x1af)](){const _0x21aaa7=_0xa82a90;var _0x599634;return((_0x599634=this[_0x21aaa7(0x10d)]()[0x0])==null?void 0x0:_0x599634[0x0])??null;}[_0xa82a90(0x15b)](_0x4e10d3){const _0x16c121=_0xa82a90;return this[_0x16c121(0x13a)]([[_0x4e10d3]]);}[_0xa82a90(0x13a)](_0x1d925d){const _0x19a215=_0xa82a90;let _0x4677d5=this[_0x19a215(0xe6)](),_0xd193e5=this['getNumColumns']();if(_0x1d925d['length']>_0x4677d5||_0x1d925d[_0x19a215(0xfe)](_0x474ac8=>_0x474ac8[_0x19a215(0x216)]>_0xd193e5)){var _0x25f79b;throw Error(_0x19a215(0x177)+_0x1d925d[_0x19a215(0x216)]+'x'+(((_0x25f79b=_0x1d925d[0x0])==null?void 0x0:_0x25f79b[_0x19a215(0x216)])??0x0)+_0x19a215(0x11b)+_0x4677d5+'x'+_0xd193e5+'.');}let _0x271bb3=this[_0x19a215(0x137)](),_0x6f19f2=this[_0x19a215(0x14f)](_0x271bb3),_0x1cdd39=_0x1d925d[_0x19a215(0x13f)]((_0x4844bd,_0x24c212)=>_0x4844bd[_0x19a215(0x20b)]((_0x130788,_0x5833f7)=>{const _0x2ae579=_0x19a215;var _0xd1e84e;let _0x577eb5=this[_0x2ae579(0xd5)][_0x2ae579(0x17c)]+_0x24c212,_0x3ceaf5=_0x6f19f2[this[_0x2ae579(0xd5)][_0x2ae579(0x1de)]+_0x5833f7],_0x1c2e7f=(_0xd1e84e=_0x271bb3[_0x2ae579(0x1b8)])==null?void 0x0:_0xd1e84e[_0x577eb5];if(!_0x3ceaf5||!_0x1c2e7f)throw Error(_0x2ae579(0x101));return{'recordId':_0x1c2e7f,'fieldId':_0x3ceaf5,'value':_0x130788};}));return this[_0x19a215(0x191)][_0x19a215(0x116)](_0x48c562['id'],{'unitId':this[_0x19a215(0x130)][_0x19a215(0x1eb)](),'tableId':this[_0x19a215(0x1a1)][_0x19a215(0x1eb)](),'patches':_0x1cdd39,'source':_0x28f784['Facade']});}[_0xa82a90(0x1fc)](){const _0x17ffad=_0xa82a90;return this[_0x17ffad(0x13a)](Array[_0x17ffad(0x222)]({'length':this[_0x17ffad(0xe6)]()},()=>Array[_0x17ffad(0x222)]({'length':this['getNumColumns']()},()=>null)));}[_0xa82a90(0x1cb)](_0x14baa0,_0x3ad22e,_0x3160ef=this['getNumRows'](),_0x2da084=this[_0xa82a90(0x1bc)]()){const _0x1df4f7=_0xa82a90;return this['_inject'][_0x1df4f7(0x194)](G,this['_base'],this[_0x1df4f7(0x1a1)],{'startRow':this[_0x1df4f7(0xd5)]['startRow']+_0x14baa0,'startColumn':this[_0x1df4f7(0xd5)][_0x1df4f7(0x1de)]+_0x3ad22e,'endRow':this[_0x1df4f7(0xd5)][_0x1df4f7(0x17c)]+_0x14baa0+_0x3160ef-0x1,'endColumn':this['_range']['startColumn']+_0x3ad22e+_0x2da084-0x1},this[_0x1df4f7(0x136)]);}['_getTable'](){const _0x6cb489=_0xa82a90;let _0x933cce=this[_0x6cb489(0x1a1)][_0x6cb489(0x196)]();if(!_0x933cce)throw Error(_0x6cb489(0x214));return _0x2bd74f(_0x933cce);}[_0xa82a90(0x1d2)](){const _0x285b0b=_0xa82a90;var _0x423f05;let _0x41566f=this[_0x285b0b(0x137)](),_0xac6782=((_0x423f05=_0x41566f['recordOrder'])==null?void 0x0:_0x423f05['length'])??0x0,_0x44b7d0=this[_0x285b0b(0x14f)](_0x41566f)[_0x285b0b(0x216)];if(this[_0x285b0b(0xd5)][_0x285b0b(0x17c)]<0x0||this[_0x285b0b(0xd5)][_0x285b0b(0x1de)]<0x0||this[_0x285b0b(0xd5)]['endRow']<this['_range']['startRow']||this[_0x285b0b(0xd5)]['endColumn']<this[_0x285b0b(0xd5)][_0x285b0b(0x1de)]||this['_range'][_0x285b0b(0xfd)]>=Math[_0x285b0b(0x1c0)](_0xac6782,0x1)||this[_0x285b0b(0xd5)][_0x285b0b(0x139)]>=Math[_0x285b0b(0x1c0)](_0x44b7d0,0x1))throw Error(_0x285b0b(0xf2)+_0xac6782+',\x20max\x20columns:\x20'+_0x44b7d0+',\x20range:\x20'+JSON['stringify'](this[_0x285b0b(0xd5)])+'.');}[_0xa82a90(0x14f)](_0x43029f){const _0x46cfdb=_0xa82a90;return _0x43029f[_0x46cfdb(0x15d)][_0x46cfdb(0xe7)](_0x30b1a9=>V(_0x43029f[_0x46cfdb(0x20a)][_0x30b1a9]));}};K=G=z([R(0x4,_0x1d508f)],K);function q(_0x1b8ac9){'@babel/helpers - typeof';const _0x23b5d3=_0xa82a90;return q=typeof Symbol=='function'&&typeof Symbol[_0x23b5d3(0x114)]==_0x23b5d3(0x148)?function(_0x277407){return typeof _0x277407;}:function(_0x1fb0ac){const _0x3d3f31=_0x23b5d3;return _0x1fb0ac&&typeof Symbol=='function'&&_0x1fb0ac[_0x3d3f31(0x1f3)]===Symbol&&_0x1fb0ac!==Symbol['prototype']?_0x3d3f31(0x148):typeof _0x1fb0ac;},q(_0x1b8ac9);}function pt(_0x27fa09,_0x3b92e7){const _0x126728=_0xa82a90;if(q(_0x27fa09)!=_0x126728(0x207)||!_0x27fa09)return _0x27fa09;var _0x27d9d2;if(typeof Symbol<'u'&&(_0x27d9d2=_0x27fa09[Symbol[_0x126728(0x219)]])!==void 0x0){var _0x35b950=_0x27d9d2[_0x126728(0xdd)](_0x27fa09,_0x3b92e7||_0x126728(0x1b6));if(q(_0x35b950)!=_0x126728(0x207))return _0x35b950;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3b92e7==='string'?String:Number)(_0x27fa09);}function mt(_0x5bef3d){const _0xe37a87=_0xa82a90;var _0x2152b6=pt(_0x5bef3d,_0xe37a87(0xf1));return q(_0x2152b6)==_0xe37a87(0x148)?_0x2152b6:_0x2152b6+'';}function ht(_0x28e6b1,_0x59264f,_0x5384bf){const _0x1551ed=_0xa82a90;return(_0x59264f=mt(_0x59264f))in _0x28e6b1?Object[_0x1551ed(0x16e)](_0x28e6b1,_0x59264f,{'value':_0x5384bf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x28e6b1[_0x59264f]=_0x5384bf,_0x28e6b1;}var J;let Y=J=class extends _0x29a84f{constructor(_0x5679ac,_0x19cc15,_0x18f013,_0x5a5398,_0x1cb160,_0xdbdf8d){const _0x2d7986=_0xa82a90;super(_0x5a5398),this[_0x2d7986(0x130)]=_0x5679ac,this[_0x2d7986(0x1a1)]=_0x19cc15,this[_0x2d7986(0x212)]=_0x18f013,this[_0x2d7986(0xd3)]=_0x5a5398,this[_0x2d7986(0x191)]=_0x1cb160,this['_permissionService']=_0xdbdf8d,ht(this,'_baseUnitId',void 0x0),ht(this,_0x2d7986(0x15e),void 0x0),this[_0x2d7986(0xe2)]=_0x5679ac['getId'](),this[_0x2d7986(0x15e)]=_0x19cc15[_0x2d7986(0x1eb)]();}['getBaseFacade'](){return this['_base'];}[_0xa82a90(0x1e1)](){const _0x49c790=_0xa82a90;return this[_0x49c790(0x1a1)];}[_0xa82a90(0x1eb)](){return this['_recordId'];}[_0xa82a90(0x132)](){const _0x86b9e8=_0xa82a90;let _0x565244=this[_0x86b9e8(0x1a1)][_0x86b9e8(0x1eb)]();return new L(this[_0x86b9e8(0x130)][_0x86b9e8(0x1eb)](),_0x45ccf4(_0x565244,this[_0x86b9e8(0x212)]),[_0x2ba937(_0x565244)],this[_0x86b9e8(0x191)],this[_0x86b9e8(0x1c2)]);}[_0xa82a90(0x123)](){const _0xd802cb=_0xa82a90;return{...this[_0xd802cb(0x159)](),'values':this[_0xd802cb(0x10d)]()};}[_0xa82a90(0x1af)](_0x14b146){const _0x3327aa=_0xa82a90;return V(this['_table'][_0x3327aa(0x196)]()[_0x3327aa(0x20a)][_0x14b146])?this[_0x3327aa(0x159)]()[_0x3327aa(0x19d)][_0x14b146]??null:null;}[_0xa82a90(0x10d)](){const _0x4862eb=_0xa82a90;let _0x1f5d0a=this[_0x4862eb(0x1a1)]['getTable']();return Object[_0x4862eb(0x229)](Object[_0x4862eb(0x160)](this[_0x4862eb(0x159)]()[_0x4862eb(0x19d)])[_0x4862eb(0xe7)](([_0x229294])=>V(_0x1f5d0a[_0x4862eb(0x20a)][_0x229294])));}[_0xa82a90(0x15b)](_0x283190,_0xe680ed){const _0x25a85b=_0xa82a90;let _0x5eff4f=this[_0x25a85b(0x1a1)][_0x25a85b(0x196)]()[_0x25a85b(0x20a)][_0x283190];return this[_0x25a85b(0x191)]['syncExecuteCommand'](_0x13154a['id'],{'unitId':this[_0x25a85b(0x130)][_0x25a85b(0x1eb)](),'tableId':this[_0x25a85b(0x1a1)][_0x25a85b(0x1eb)](),'recordId':this[_0x25a85b(0x212)],'fieldId':_0x283190,'value':st(_0x5eff4f,_0xe680ed),'source':_0x28f784[_0x25a85b(0x176)]});}[_0xa82a90(0x1c3)](_0x175d9f,_0x322f1a){const _0x4480c3=_0xa82a90;return this[_0x4480c3(0x15b)](_0x175d9f,_0x322f1a[_0x4480c3(0x20b)](_0x4b9ada=>({..._0x4b9ada})));}[_0xa82a90(0x1b4)](_0x389d74){const _0x7a4749=_0xa82a90;this[_0x7a4749(0x179)](_0x389d74);let _0x479829=this['getValue'](_0x389d74);return Array[_0x7a4749(0x16c)](_0x479829)?_0x479829[_0x7a4749(0x20b)]((_0xa9d8a6,_0x1f7800)=>_t(_0xa9d8a6,_0x389d74,_0x1f7800)):[];}['deleteAttachments'](_0x4fb840,_0x180a89){const _0x3a4b73=_0xa82a90;this[_0x3a4b73(0x179)](_0x4fb840);let _0x9e628a=new Set(_0x180a89[_0x3a4b73(0x20b)](_0xf70dfe=>_0xf70dfe['id']));if(!_0x9e628a[_0x3a4b73(0x1aa)])return!0x0;let _0x2e1c1d=this[_0x3a4b73(0x1b4)](_0x4fb840),_0x1504dc=_0x2e1c1d[_0x3a4b73(0xe7)](_0x328368=>!_0x9e628a[_0x3a4b73(0x223)](_0x328368['id']));return _0x1504dc[_0x3a4b73(0x216)]===_0x2e1c1d[_0x3a4b73(0x216)]||this[_0x3a4b73(0x1c3)](_0x4fb840,_0x1504dc);}['setValues'](_0x31d825,_0x19af7e='id'){const _0x99750a=_0xa82a90;let _0x594ae6=this[_0x99750a(0x1a1)][_0x99750a(0x196)](),_0xe238fe=[{'recordId':this['_recordId'],'values':H(_0x594ae6,_0x31d825,_0x19af7e)}];return this['_commandService'][_0x99750a(0x116)](_0xe6c5d7['id'],{'unitId':this['_base'][_0x99750a(0x1eb)](),'tableId':this[_0x99750a(0x1a1)][_0x99750a(0x1eb)](),'patches':_0xe238fe,'source':_0x28f784[_0x99750a(0x176)]});}[_0xa82a90(0x118)](){const _0x1ec006=_0xa82a90;return this['_commandService'][_0x1ec006(0x116)](_0x4bc901['id'],{'unitId':this[_0x1ec006(0x130)]['getId'](),'tableId':this[_0x1ec006(0x1a1)][_0x1ec006(0x1eb)](),'recordId':this[_0x1ec006(0x212)],'source':_0x28f784['Facade']});}[_0xa82a90(0x192)](_0x3bf9d9){const _0x47bed9=_0xa82a90;let _0x3fe967={...this[_0x47bed9(0x159)](),..._0x3bf9d9,'id':_0x32f1bd(0x6)};_0x3fe967['values']={..._0x3fe967[_0x47bed9(0x19d)],..._0x3bf9d9==null?void 0x0:_0x3bf9d9[_0x47bed9(0x19d)]},Reflect['deleteProperty'](_0x3fe967['values'],_0x2297f6);let _0x24b9af=Date[_0x47bed9(0x13d)]();if(_0x3fe967[_0x47bed9(0x19a)]||=''+_0x24b9af,_0x3fe967[_0x47bed9(0x110)]||=_0x24b9af,_0x3fe967[_0x47bed9(0x172)]||=_0x24b9af,!this['_commandService'][_0x47bed9(0x116)](_0xb34da3['id'],{'unitId':this['_base'][_0x47bed9(0x1eb)](),'tableId':this['_table'][_0x47bed9(0x1eb)](),'sourceRecordId':this['_recordId'],'record':_0x3fe967,'source':_0x28f784[_0x47bed9(0x176)]}))throw Error(_0x47bed9(0x155)+this[_0x47bed9(0x212)]+'\x22.');return this[_0x47bed9(0xd3)][_0x47bed9(0x194)](J,this[_0x47bed9(0x130)],this[_0x47bed9(0x1a1)],_0x3fe967['id'],this[_0x47bed9(0xd3)]);}['setOrderKey'](_0x26594){const _0x41527a=_0xa82a90;return this[_0x41527a(0x191)]['syncExecuteCommand'](_0x2b9e59['id'],{'unitId':this['_base'][_0x41527a(0x1eb)](),'tableId':this['_table'][_0x41527a(0x1eb)](),'recordId':this[_0x41527a(0x212)],'orderKey':_0x26594});}['getLinkedRecordIds'](_0xe2ca85){const _0x34d29d=_0xa82a90;let _0x17e9a0=this[_0x34d29d(0x164)](_0xe2ca85),_0x2107a6=this[_0x34d29d(0x1af)](_0x17e9a0['id']);return _0x277ee5(_0x2107a6);}[_0xa82a90(0x22a)](_0x4189cf,_0x5513f2){const _0x31c1b2=_0xa82a90;let _0x5df5f3=this[_0x31c1b2(0x164)](_0x4189cf),_0x5a7869=_0xa134f9(_0x5513f2),_0x5a4581=_0x13d452(this[_0x31c1b2(0x130)][_0x31c1b2(0x1f1)]()[_0x31c1b2(0x138)](),_0x5df5f3,_0x5a7869);if(!_0x5a4581[_0x31c1b2(0x13e)])throw Error(_0x5a4581[_0x31c1b2(0x1d7)]??_0x31c1b2(0x1c1));return this[_0x31c1b2(0x191)]['syncExecuteCommand'](_0x13154a['id'],{'unitId':this[_0x31c1b2(0x130)]['getId'](),'tableId':this[_0x31c1b2(0x1a1)][_0x31c1b2(0x1eb)](),'recordId':this[_0x31c1b2(0x212)],'fieldId':_0x4189cf,'value':_0x5a7869,'source':_0x28f784[_0x31c1b2(0x176)]});}[_0xa82a90(0x1f0)](_0x596e61,_0x11369a){const _0x1a9558=_0xa82a90;let _0x40752c=this[_0x1a9558(0x164)](_0x596e61),_0x3c8149=_0x417656(_0x40752c);if(!_0x3c8149)throw Error('[FRecord]:\x20RecordLink\x20field\x20\x22'+_0x596e61+_0x1a9558(0xdb));let _0x2a03dc=this[_0x1a9558(0x1da)](_0x596e61);return _0x3c8149[_0x1a9558(0x204)]&&_0x2a03dc[_0x1a9558(0x178)](_0x11369a)?!0x0:this['setLinkedRecordIds'](_0x596e61,_0x3c8149[_0x1a9558(0x204)]?[..._0x2a03dc,_0x11369a]:[_0x11369a]);}['removeLinkedRecord'](_0x2a8c75,_0xeda723){const _0x26ce8b=_0xa82a90;let _0x31ea8c=this[_0x26ce8b(0x1da)](_0x2a8c75);return!_0x31ea8c['includes'](_0xeda723)||this[_0x26ce8b(0x22a)](_0x2a8c75,_0x31ea8c[_0x26ce8b(0xe7)](_0x4d100c=>_0x4d100c!==_0xeda723));}[_0xa82a90(0x158)](_0x1fb430){const _0x2d4b0f=_0xa82a90;let _0x54a276=this[_0x2d4b0f(0x1fe)](_0x1fb430)[_0x2d4b0f(0x1bf)][_0x2d4b0f(0x232)](this['_recordId'])??null;return _0x54a276?this[_0x2d4b0f(0x1a1)][_0x2d4b0f(0xe4)](_0x54a276):null;}[_0xa82a90(0x20c)](_0x76ca5a){const _0x49e740=_0xa82a90;return(this[_0x49e740(0x1fe)](_0x76ca5a)['childrenByParentId'][_0x49e740(0x232)](this[_0x49e740(0x212)])??[])[_0x49e740(0x13f)](_0x54c737=>{const _0x1252e3=_0x49e740;let _0x2fe914=this[_0x1252e3(0x1a1)][_0x1252e3(0xe4)](_0x54c737);return _0x2fe914?[_0x2fe914]:[];});}[_0xa82a90(0x205)](_0x437286){const _0x16df56=_0xa82a90;let _0x37db8c=this[_0x16df56(0x1fe)](_0x437286),_0x212b2a=[],_0x3462e8=_0x37db8c[_0x16df56(0x1bf)][_0x16df56(0x232)](this[_0x16df56(0x212)])??null;for(;_0x3462e8;){let _0x21c005=this[_0x16df56(0x1a1)][_0x16df56(0xe4)](_0x3462e8);_0x21c005&&_0x212b2a[_0x16df56(0x1c5)](_0x21c005),_0x3462e8=_0x37db8c[_0x16df56(0x1bf)][_0x16df56(0x232)](_0x3462e8)??null;}return _0x212b2a;}[_0xa82a90(0x18f)](_0x294dd6){const _0x20e403=_0xa82a90;let _0x3bb17e=this[_0x20e403(0x1fe)](_0x294dd6),_0x141595=_0x3bb17e[_0x20e403(0x146)][_0x20e403(0x14e)](this[_0x20e403(0x212)]),_0x1830bb=_0x3bb17e[_0x20e403(0x150)]['has'](this[_0x20e403(0x212)])?this[_0x20e403(0x19c)](_0x3bb17e['childrenByParentId'],this[_0x20e403(0x212)]):[];return _0x141595<0x0?[]:_0x1830bb[_0x20e403(0x13f)](_0x233f75=>{let _0xac480a=this['_table']['getRecordById'](_0x233f75);return _0xac480a?[_0xac480a]:[];});}[_0xa82a90(0x15f)](_0xc2bdff,_0x257efe,_0x35763e){const _0x44c434=_0xa82a90;return this[_0x44c434(0x191)][_0x44c434(0x116)](_0x506b33['id'],{'unitId':this[_0x44c434(0x130)]['getId'](),'tableId':this[_0x44c434(0x1a1)][_0x44c434(0x1eb)](),'fieldId':_0xc2bdff,'recordId':this[_0x44c434(0x212)],'parentRecordId':_0x257efe,'orderKey':_0x35763e,'source':_0x28f784['Facade']});}[_0xa82a90(0x145)](_0x2dc164,_0x2350f5,_0x303ce3='id',_0x590ab6){const _0x5a8c13=_0xa82a90;let _0x13266d=this[_0x5a8c13(0x1a1)][_0x5a8c13(0x196)](),_0x1d4d6b=Date[_0x5a8c13(0x13d)](),_0xdd0bf3={..._0x590ab6,'id':_0x32f1bd(0x6),'values':H(_0x13266d,_0x2350f5,_0x303ce3),'orderKey':(_0x590ab6==null?void 0x0:_0x590ab6['orderKey'])||''+_0x1d4d6b,'createdAt':(_0x590ab6==null?void 0x0:_0x590ab6['createdAt'])||_0x1d4d6b,'updatedAt':(_0x590ab6==null?void 0x0:_0x590ab6[_0x5a8c13(0x172)])||_0x1d4d6b};if(!this['_commandService'][_0x5a8c13(0x116)](_0x2ebda1['id'],{'unitId':this[_0x5a8c13(0x130)][_0x5a8c13(0x1eb)](),'tableId':this[_0x5a8c13(0x1a1)][_0x5a8c13(0x1eb)](),'fieldId':_0x2dc164,'parentRecordId':this[_0x5a8c13(0x212)],'record':_0xdd0bf3,'source':_0x28f784['Facade']}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this[_0x5a8c13(0x212)]+'\x22.');return this[_0x5a8c13(0xd3)][_0x5a8c13(0x194)](J,this[_0x5a8c13(0x130)],this[_0x5a8c13(0x1a1)],_0xdd0bf3['id'],this[_0x5a8c13(0xd3)]);}[_0xa82a90(0x1fe)](_0x3eb284){const _0x5b230c=_0xa82a90;return _0x1c9c0c(this[_0x5b230c(0x1a1)]['getTable'](),_0x3eb284);}[_0xa82a90(0x19c)](_0xeab7ad,_0x17603c){let _0x4471b1=[],_0x1df4aa=_0x4d6777=>{const _0xc4b974=_0x6787;for(let _0x4b47ac of _0xeab7ad['get'](_0x4d6777)??[])_0x4471b1[_0xc4b974(0x1c5)](_0x4b47ac),_0x1df4aa(_0x4b47ac);};return _0x1df4aa(_0x17603c),_0x4471b1;}[_0xa82a90(0x159)](){const _0x36e882=_0xa82a90;let _0x53f7ad=this[_0x36e882(0x1a1)][_0x36e882(0x196)]()['records'][this[_0x36e882(0x212)]];if(!_0x53f7ad)throw Error(_0x36e882(0x16a)+this[_0x36e882(0x212)]+_0x36e882(0xe1));return _0x53f7ad;}[_0xa82a90(0x164)](_0x312566){const _0x5b1f4d=_0xa82a90;let _0x5c8076=this['_table'][_0x5b1f4d(0x196)]()[_0x5b1f4d(0x20a)][_0x312566];if(!_0x5c8076||_0x5c8076[_0x5b1f4d(0x1e5)]!==_0x130508[_0x5b1f4d(0x140)])throw Error(_0x5b1f4d(0x1a6)+_0x312566+'\x22\x20is\x20not\x20a\x20RecordLink\x20field.');return _0x5c8076;}[_0xa82a90(0x179)](_0x3f20a8){const _0x311ec7=_0xa82a90;let _0x2ea295=this['_table'][_0x311ec7(0x196)]()[_0x311ec7(0x20a)][_0x3f20a8];if(!_0x2ea295||_0x2ea295[_0x311ec7(0x1e5)]!==_0x130508[_0x311ec7(0x1b2)])throw Error(_0x311ec7(0x1a6)+_0x3f20a8+_0x311ec7(0x124));return _0x2ea295;}};Y=J=z([R(0x4,_0x1d508f),R(0x5,_0x574fc3)],Y);function gt(_0x23f5fd){const _0x469174=_0xa82a90;return!!(_0x23f5fd&&typeof _0x23f5fd==_0x469174(0x207)&&'id'in _0x23f5fd&&typeof _0x23f5fd['id']==_0x469174(0xf1)&&_0x469174(0xf6)in _0x23f5fd&&typeof _0x23f5fd[_0x469174(0xf6)]=='string');}function _t(_0x1e4e00,_0x992189,_0x11891d){const _0x4d1155=_0xa82a90;if(!gt(_0x1e4e00))throw Error('[FRecord]:\x20attachment\x20at\x20index\x20'+_0x11891d+'\x20in\x20field\x20\x22'+_0x992189+_0x4d1155(0x1f6));return{..._0x1e4e00};}let X=class{constructor(_0x5b8238,_0x5193ae,_0x562bda,_0x410462,_0x5de536,_0x5bd227,_0x263196){const _0x5e010c=_0xa82a90;this[_0x5e010c(0x130)]=_0x5b8238,this[_0x5e010c(0x1a1)]=_0x5193ae,this['_viewId']=_0x562bda,this[_0x5e010c(0xd3)]=_0x410462,this[_0x5e010c(0x191)]=_0x5de536,this['_permissionService']=_0x5bd227,this[_0x5e010c(0x21b)]=_0x263196;}[_0xa82a90(0x1eb)](){const _0x214a9d=_0xa82a90;return this[_0x214a9d(0x121)];}[_0xa82a90(0x132)](){const _0x4dd79d=_0xa82a90;let _0x1c50eb=this[_0x4dd79d(0x1a1)]['getId']();return new L(this[_0x4dd79d(0x130)][_0x4dd79d(0x1eb)](),_0x1a325f(_0x1c50eb,this[_0x4dd79d(0x121)]),[_0x2ba937(_0x1c50eb)],this[_0x4dd79d(0x191)],this[_0x4dd79d(0x1c2)]);}[_0xa82a90(0x169)](){const _0x184a87=_0xa82a90;return this[_0x184a87(0x226)]();}[_0xa82a90(0x1a3)](){const _0x155da9=_0xa82a90;return this[_0x155da9(0x226)]()[_0x155da9(0xf6)];}[_0xa82a90(0xeb)](){const _0x1046d3=_0xa82a90;return this[_0x1046d3(0x226)]()['type'];}[_0xa82a90(0x228)](_0x41a6d9){const _0x351381=_0xa82a90;return this[_0x351381(0x191)]['syncExecuteCommand'](_0x563eba['id'],{'unitId':this[_0x351381(0x130)]['getId'](),'tableId':this[_0x351381(0x1a1)][_0x351381(0x1eb)](),'viewId':this[_0x351381(0x121)],'name':_0x41a6d9});}[_0xa82a90(0x170)](){const _0x52c1eb=_0xa82a90;let _0x423624=this[_0x52c1eb(0xeb)](),_0x871b7a=this[_0x52c1eb(0x226)]()['config'];switch(_0x423624){case _0x80f07f[_0x52c1eb(0x122)]:return _0x871b7a;case _0x80f07f[_0x52c1eb(0x165)]:return _0x871b7a;case _0x80f07f['Calendar']:return _0x871b7a;case _0x80f07f['Gantt']:return _0x871b7a;case _0x80f07f[_0x52c1eb(0x1ab)]:return _0x871b7a;default:return _0x871b7a;}}[_0xa82a90(0x141)](_0x5a9943){const _0xf0556a=_0xa82a90;return this['_commandService'][_0xf0556a(0x116)](_0x4f78a0['id'],{'unitId':this[_0xf0556a(0x130)][_0xf0556a(0x1eb)](),'tableId':this[_0xf0556a(0x1a1)][_0xf0556a(0x1eb)](),'viewId':this[_0xf0556a(0x121)],'patch':_0x5a9943});}[_0xa82a90(0xe9)](){const _0x1a27ae=_0xa82a90;var _0x40d413;return _0x3a42ae[_0x1a27ae(0x14b)](((_0x40d413=this[_0x1a27ae(0x226)]()['config'][_0x1a27ae(0x209)])==null?void 0x0:_0x40d413[_0x1a27ae(0x167)])??[]);}[_0xa82a90(0xf0)](_0x5a8e96){const _0x4053c0=_0xa82a90;return this[_0x4053c0(0x191)][_0x4053c0(0x116)](_0x11d15b['id'],{'unitId':this[_0x4053c0(0x130)][_0x4053c0(0x1eb)](),'tableId':this[_0x4053c0(0x1a1)][_0x4053c0(0x1eb)](),'viewId':this[_0x4053c0(0x121)],'type':_0x42becf[_0x4053c0(0x12b)],'rules':_0x5a8e96});}[_0xa82a90(0x202)](_0x1b679b){const _0x41e230=_0xa82a90;return this[_0x41e230(0x191)][_0x41e230(0x116)](_0x11d15b['id'],{'unitId':this[_0x41e230(0x130)]['getId'](),'tableId':this[_0x41e230(0x1a1)][_0x41e230(0x1eb)](),'viewId':this[_0x41e230(0x121)],'type':_0x42becf['Add'],'rule':_0x1b679b});}[_0xa82a90(0x20e)](_0x1b508c){const _0x284808=_0xa82a90;return this[_0x284808(0x191)]['syncExecuteCommand'](_0x11d15b['id'],{'unitId':this[_0x284808(0x130)][_0x284808(0x1eb)](),'tableId':this[_0x284808(0x1a1)][_0x284808(0x1eb)](),'viewId':this[_0x284808(0x121)],'type':_0x42becf['Delete'],'ruleId':_0x1b508c});}[_0xa82a90(0x17f)](){const _0x46ef47=_0xa82a90;return this[_0x46ef47(0x191)][_0x46ef47(0x116)](_0x11d15b['id'],{'unitId':this[_0x46ef47(0x130)][_0x46ef47(0x1eb)](),'tableId':this[_0x46ef47(0x1a1)]['getId'](),'viewId':this[_0x46ef47(0x121)],'type':_0x42becf[_0x46ef47(0x22f)]});}[_0xa82a90(0x1dc)](){const _0x541da7=_0xa82a90;return this[_0x541da7(0x226)]()[_0x541da7(0xe7)]??null;}[_0xa82a90(0x221)](_0x438b25){const _0xaec043=_0xa82a90;return this[_0xaec043(0x191)]['syncExecuteCommand'](_0x272d16['id'],{'unitId':this[_0xaec043(0x130)][_0xaec043(0x1eb)](),'tableId':this[_0xaec043(0x1a1)][_0xaec043(0x1eb)](),'viewId':this[_0xaec043(0x121)],'filter':_0x438b25});}[_0xa82a90(0xd2)](){const _0x277904=_0xa82a90;return this[_0x277904(0x226)]()[_0x277904(0x17b)]??[];}[_0xa82a90(0xdc)](_0x11ace8){const _0x14c0a4=_0xa82a90;return this[_0x14c0a4(0x191)][_0x14c0a4(0x116)](_0x3f0de6['id'],{'unitId':this['_base'][_0x14c0a4(0x1eb)](),'tableId':this[_0x14c0a4(0x1a1)][_0x14c0a4(0x1eb)](),'viewId':this['_viewId'],'sort':_0x11ace8});}[_0xa82a90(0xef)](){const _0x4903cd=_0xa82a90;return this[_0x4903cd(0x226)]()[_0x4903cd(0x1ba)]??[];}['setGroup'](_0x131e42){const _0x40ae53=_0xa82a90;return this[_0x40ae53(0x191)][_0x40ae53(0x116)](_0x34053f['id'],{'unitId':this[_0x40ae53(0x130)][_0x40ae53(0x1eb)](),'tableId':this[_0x40ae53(0x1a1)][_0x40ae53(0x1eb)](),'viewId':this[_0x40ae53(0x121)],'group':_0x131e42});}[_0xa82a90(0x128)](_0x4241c8){const _0x27f52b=_0xa82a90;var _0x2ae1ab;return V(this[_0x27f52b(0x1a1)][_0x27f52b(0x196)]()[_0x27f52b(0x20a)][_0x4241c8])?((_0x2ae1ab=this[_0x27f52b(0x226)]()[_0x27f52b(0x10c)])==null?void 0x0:_0x2ae1ab[_0x4241c8])??{}:{};}[_0xa82a90(0x1c9)](){const _0x3fd65f=_0xa82a90;let _0x352e03=this[_0x3fd65f(0x1a1)]['getTable'](),_0x10a11e=this[_0x3fd65f(0x226)]();return(_0x10a11e['fieldOrder']??_0x352e03[_0x3fd65f(0x15d)])['filter'](_0x558378=>{const _0x14639c=_0x3fd65f;var _0x5c295e;let _0x5e86fc=_0x352e03[_0x14639c(0x20a)][_0x558378];return V(_0x5e86fc)&&!((_0x5c295e=_0x10a11e['fieldSettings'])!=null&&(_0x5c295e=_0x5c295e[_0x558378])!=null&&_0x5c295e[_0x14639c(0x193)]);})[_0x3fd65f(0x20b)](_0x1b23ac=>this[_0x3fd65f(0xd3)][_0x3fd65f(0x194)](B,this[_0x3fd65f(0x130)],this[_0x3fd65f(0x1a1)],_0x1b23ac));}['setFieldVisible'](_0x4ae08b,_0x26685b){const _0x727901=_0xa82a90;return V(this[_0x727901(0x1a1)][_0x727901(0x196)]()['fields'][_0x4ae08b])?this[_0x727901(0x191)][_0x727901(0x116)](_0xd4ceb9['id'],{'unitId':this[_0x727901(0x130)][_0x727901(0x1eb)](),'tableId':this[_0x727901(0x1a1)]['getId'](),'viewId':this[_0x727901(0x121)],'fieldId':_0x4ae08b,'visible':_0x26685b}):!0x1;}[_0xa82a90(0x14a)](_0x3a8fd2,_0x59d596){const _0x1be79a=_0xa82a90;return V(this['_table'][_0x1be79a(0x196)]()[_0x1be79a(0x20a)][_0x3a8fd2])?this['_commandService'][_0x1be79a(0x116)](_0x231743['id'],{'unitId':this[_0x1be79a(0x130)]['getId'](),'tableId':this['_table'][_0x1be79a(0x1eb)](),'viewId':this['_viewId'],'fieldId':_0x3a8fd2,'width':_0x59d596}):!0x1;}[_0xa82a90(0xda)](_0xe3a29f,_0x833d65){const _0x4fed69=_0xa82a90;let _0x33d82a=this[_0x4fed69(0x1a1)][_0x4fed69(0x196)](),_0x52aab4=_0x833d65['beforeFieldId']??_0x833d65[_0x4fed69(0x11d)];return!V(_0x33d82a['fields'][_0xe3a29f])||!_0x52aab4||!V(_0x33d82a[_0x4fed69(0x20a)][_0x52aab4])?!0x1:this[_0x4fed69(0x191)]['syncExecuteCommand'](_0x5112a6['id'],{'unitId':this[_0x4fed69(0x130)][_0x4fed69(0x1eb)](),'tableId':this[_0x4fed69(0x1a1)]['getId'](),'viewId':this[_0x4fed69(0x121)],'fieldId':_0xe3a29f,'target':_0x833d65});}['move'](_0xa69c1f){const _0x391db3=_0xa82a90;return this[_0x391db3(0x191)][_0x391db3(0x116)](_0x225e14['id'],{'unitId':this[_0x391db3(0x130)][_0x391db3(0x1eb)](),'tableId':this[_0x391db3(0x1a1)][_0x391db3(0x1eb)](),'viewId':this['_viewId'],'target':_0xa69c1f});}[_0xa82a90(0x118)](){const _0x2592e6=_0xa82a90;return this[_0x2592e6(0x191)]['syncExecuteCommand'](_0x597774['id'],{'unitId':this[_0x2592e6(0x130)][_0x2592e6(0x1eb)](),'tableId':this['_table'][_0x2592e6(0x1eb)](),'viewId':this[_0x2592e6(0x121)]});}[_0xa82a90(0x10b)](){const _0x188af8=_0xa82a90;return this['_projectionService'][_0x188af8(0x10b)](this['_base'][_0x188af8(0x1f1)]()['getSnapshot'](),this[_0x188af8(0x1a1)][_0x188af8(0x1eb)](),this['_viewId']);}[_0xa82a90(0x226)](){const _0x48a0d2=_0xa82a90;let _0x1c7662=this[_0x48a0d2(0x1a1)][_0x48a0d2(0x196)]()['views'][this[_0x48a0d2(0x121)]];if(!_0x1c7662)throw Error(_0x48a0d2(0x105)+this['_viewId']+_0x48a0d2(0xe1));return _0x1c7662;}};X=z([R(0x4,_0x1d508f),R(0x5,_0x574fc3),R(0x6,_0x122330)],X);let Z=class{constructor(_0x5d6591,_0x518558,_0x25af11,_0xde0552,_0x2be6b3,_0x5395ff){const _0xf18310=_0xa82a90;this[_0xf18310(0x130)]=_0x5d6591,this[_0xf18310(0x199)]=_0x518558,this[_0xf18310(0xd3)]=_0x25af11,this[_0xf18310(0x191)]=_0xde0552,this[_0xf18310(0x1c2)]=_0x2be6b3,this['_projectionService']=_0x5395ff;}[_0xa82a90(0x1f1)](){const _0x55c867=_0xa82a90;return this['_base'][_0x55c867(0x1f1)]();}['getTable'](){const _0x2d68d4=_0xa82a90;return this[_0x2d68d4(0x137)]();}[_0xa82a90(0x1eb)](){return this['_tableId'];}[_0xa82a90(0x132)](){const _0x23771e=_0xa82a90;return new L(this['getBase']()[_0x23771e(0x174)](),_0x2ba937(this['_tableId']),[],this[_0x23771e(0x191)],this[_0x23771e(0x1c2)]);}[_0xa82a90(0x1b9)](){return _0x273f61(this['_getTable']());}[_0xa82a90(0x1cc)](_0x34f82b){const _0x313c06=_0xa82a90;return this[_0x313c06(0x191)][_0x313c06(0x116)](_0x441237['id'],{'unitId':this['_base'][_0x313c06(0x1eb)](),'tableId':this[_0x313c06(0x199)],'fieldId':_0x34f82b});}[_0xa82a90(0x1a3)](){const _0x4aa2e8=_0xa82a90;return this[_0x4aa2e8(0x137)]()['name'];}[_0xa82a90(0x1b1)](){const _0x462287=_0xa82a90;let _0x151374=this[_0x462287(0x130)][_0x462287(0x1f1)]()[_0x462287(0x138)]();return _0x4fc8af(this[_0x462287(0x137)](),_0x151374);}[_0xa82a90(0x228)](_0x363622){const _0x3027fc=_0xa82a90;let _0x29fa1c=_0x21dd01(this[_0x3027fc(0x130)][_0x3027fc(0x1f1)]()[_0x3027fc(0x138)](),_0x363622,this[_0x3027fc(0x199)]);if(!_0x29fa1c[_0x3027fc(0x13e)])throw Error(_0x3027fc(0x21f)+_0x363622+_0x3027fc(0x11c)+_0x4860a7+'\x20'+_0x29fa1c['reason']);return this[_0x3027fc(0x191)][_0x3027fc(0x116)](_0x4fb09a['id'],{'unitId':this[_0x3027fc(0x130)]['getId'](),'tableId':this['_tableId'],'name':_0x363622});}[_0xa82a90(0xdf)](_0x45d291,_0x968f95){const _0x35701b=_0xa82a90;let _0xd25a76=this['_base'][_0x35701b(0x1f1)]()[_0x35701b(0x138)](),_0x332611=this[_0x35701b(0x137)]();if(_0x968f95){let _0x312d9d=this['_projectionService'][_0x35701b(0x10b)](_0xd25a76,this[_0x35701b(0x199)],_0x968f95),_0x33ede4=_0x332611[_0x35701b(0x1cf)][_0x968f95],_0x3175e6=_0x45d291[_0x35701b(0x1e3)]??Tt(_0x332611,_0x33ede4,_0x312d9d),_0x18b660=_0x35701b(0x20d)in _0x312d9d&&Array['isArray'](_0x312d9d[_0x35701b(0x20d)])?_0x312d9d[_0x35701b(0x20d)]:[];return _0x56cf71({..._0x45d291,'table':_0x332611,'fieldIds':_0x3175e6,'rows':_0x18b660});}let _0x2d1711=(_0x332611['recordOrder']?_0x332611[_0x35701b(0x211)]['map'](_0x3c6ea5=>_0x332611['records'][_0x3c6ea5]):Object[_0x35701b(0x19d)](_0x332611['records'])[_0x35701b(0x17b)]((_0x3c31fe,_0x35edce)=>_0x3c31fe[_0x35701b(0x19a)][_0x35701b(0x1ed)](_0x35edce[_0x35701b(0x19a)])))[_0x35701b(0xe7)](_0x1b5976=>_0x1b5976)['map'](_0x2306d5=>({'recordId':_0x2306d5['id'],'values':_0x2306d5[_0x35701b(0x19d)]})),_0x23a6d8=_0x45d291['fieldIds']??_0x332611[_0x35701b(0x15d)][_0x35701b(0xe7)](_0x27d20e=>V(_0x332611[_0x35701b(0x20a)][_0x27d20e]));return _0x56cf71({..._0x45d291,'table':_0x332611,'fieldIds':_0x23a6d8,'rows':_0x2d1711});}[_0xa82a90(0x107)](){const _0x161057=_0xa82a90;return this[_0x161057(0x137)]()[_0x161057(0x151)];}[_0xa82a90(0x17a)](){const _0x59a757=_0xa82a90;let _0x4be4f3=this['_getTable']();return _0x4be4f3[_0x59a757(0x15d)][_0x59a757(0x20b)](_0x453cf8=>_0x4be4f3['fields'][_0x453cf8])[_0x59a757(0xe7)](V)['map'](_0x2d100b=>this[_0x59a757(0xd3)][_0x59a757(0x194)](B,this['_base'],this,_0x2d100b['id']));}[_0xa82a90(0xd1)](_0x1a6f13){const _0x4ae20c=_0xa82a90;let _0x2dca4f=this[_0x4ae20c(0x137)]()['fields'][_0x1a6f13];return V(_0x2dca4f)?this[_0x4ae20c(0xd3)]['createInstance'](B,this[_0x4ae20c(0x130)],this,_0x2dca4f['id']):null;}[_0xa82a90(0x1d9)](_0x1cf479){const _0x121b3e=_0xa82a90;let _0x58f8d4=this[_0x121b3e(0x137)]()[_0x121b3e(0x20a)],_0x215728=Object[_0x121b3e(0x19d)](_0x58f8d4)['find'](_0x456f3b=>V(_0x456f3b)&&_0x456f3b[_0x121b3e(0xf6)]===_0x1cf479);return _0x215728?this[_0x121b3e(0xd3)][_0x121b3e(0x194)](B,this[_0x121b3e(0x130)],this,_0x215728['id']):null;}[_0xa82a90(0x20f)](){const _0x40e14d=_0xa82a90;let _0x2fadfc=this['_getTable']()[_0x40e14d(0x151)];return this['_injector'][_0x40e14d(0x194)](B,this['_base'],this,_0x2fadfc);}[_0xa82a90(0x185)](_0x2900ed,_0x18dc34,_0x130849){const _0x464262=_0xa82a90;var _0x455ee5,_0x102f16;if(!Object[_0x464262(0x19d)](_0x130508)[_0x464262(0xfe)](_0x3c0c67=>_0x3c0c67===_0x18dc34))throw Error(_0x464262(0x1f4)+String(_0x18dc34)+'\x22.');if(_0x18dc34===_0x130508[_0x464262(0x21e)]&&this[_0x464262(0x1ec)](_0x2900ed,_0x130849),_0x18dc34===_0x130508[_0x464262(0x140)]&&(typeof(_0x130849==null||(_0x455ee5=_0x130849[_0x464262(0x135)])==null||(_0x455ee5=_0x455ee5['config'])==null?void 0x0:_0x455ee5['targetTableId'])!=_0x464262(0xf1)||typeof _0x130849[_0x464262(0x135)][_0x464262(0x19e)][_0x464262(0x204)]!=_0x464262(0x149)))throw Error(_0x464262(0x109));let _0x14e1e3={..._0x130849==null?void 0x0:_0x130849[_0x464262(0x135)],'id':_0x32f1bd(0x6),'name':_0x2900ed,'type':_0x18dc34,'config':(_0x130849==null||(_0x102f16=_0x130849[_0x464262(0x135)])==null?void 0x0:_0x102f16[_0x464262(0x19e)])??{}};if(!this[_0x464262(0x191)][_0x464262(0x116)](_0x12434b['id'],{'unitId':this[_0x464262(0x130)][_0x464262(0x1eb)](),'tableId':this[_0x464262(0x199)],'field':_0x14e1e3,'index':_0x130849==null?void 0x0:_0x130849[_0x464262(0x1f9)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x2900ed+'\x22');return this['_injector']['createInstance'](B,this['_base'],this,_0x14e1e3['id']);}[_0xa82a90(0x1ec)](_0x440766,_0x2db037){const _0x1af949=_0xa82a90;var _0x10cac1;if(!_0x2db037||!(_0x1af949(0x1db)in _0x2db037)||!Array[_0x1af949(0x16c)](_0x2db037[_0x1af949(0x1db)]))throw Error(_0x1af949(0x1df));let _0x18175e=this['_commandService'][_0x1af949(0x116)](_0x43ba15['id'],{'unitId':this[_0x1af949(0x130)]['getId'](),'tableId':this[_0x1af949(0x199)],'formula':String(((_0x10cac1=_0x2db037[_0x1af949(0x135)])==null||(_0x10cac1=_0x10cac1[_0x1af949(0x19e)])==null?void 0x0:_0x10cac1['formula'])??'')});if(!_0x18175e[_0x1af949(0x13e)])throw Error(_0x18175e[_0x1af949(0x1d7)]??'Invalid\x20Base\x20formula.');if(_0x2db037[_0x1af949(0x1db)][_0x1af949(0x216)]>0x0&&!this[_0x1af949(0x191)][_0x1af949(0x116)](_0x3033ec['id'],{'unitId':this['_base'][_0x1af949(0x1eb)](),'references':_0x2db037[_0x1af949(0x1db)]}))throw Error(_0x1af949(0x195)+_0x440766+'\x22');}[_0xa82a90(0x14d)](){const _0x24d285=_0xa82a90;return this[_0x24d285(0x19b)]()[_0x24d285(0x20b)](_0x3a31af=>this[_0x24d285(0xd3)][_0x24d285(0x194)](Y,this[_0x24d285(0x130)],this,_0x3a31af,this[_0x24d285(0xd3)]));}[_0xa82a90(0xe4)](_0x215b13){const _0x14e858=_0xa82a90;return this['_getTable']()[_0x14e858(0x1e2)][_0x215b13]?this[_0x14e858(0xd3)][_0x14e858(0x194)](Y,this['_base'],this,_0x215b13,this[_0x14e858(0xd3)]):null;}[_0xa82a90(0x215)](_0x5ae4b2={}){const _0x4f4e69=_0xa82a90;let _0x3cc154=this['_getTable'](),_0x38b1d6=this['_resolveRecordIds'](_0x5ae4b2),_0x37fa0d=Math[_0x4f4e69(0x1c0)](0x0,_0x5ae4b2[_0x4f4e69(0x1cb)]??0x0),_0x1b22c0=_0x5ae4b2[_0x4f4e69(0xec)]==null?null:Math[_0x4f4e69(0x1c0)](0x0,_0x5ae4b2['limit']),_0xb4752b=yt(_0x38b1d6['map'](_0x3a3e93=>_0x3cc154[_0x4f4e69(0x1e2)][_0x3a3e93])[_0x4f4e69(0xe7)](_0x28732b=>xt(_0x28732b,_0x3cc154,_0x5ae4b2[_0x4f4e69(0xe7)])),_0x3cc154,_0x5ae4b2[_0x4f4e69(0x17b)]);return{'records':vt(_0xb4752b,_0x5ae4b2)['map'](_0x16aa03=>this[_0x4f4e69(0xd3)]['createInstance'](Y,this[_0x4f4e69(0x130)],this,_0x16aa03['id'],this[_0x4f4e69(0xd3)])),'total':_0xb4752b['length'],'offset':_0x37fa0d,'limit':_0x1b22c0,'hasMore':_0x1b22c0!=null&&_0x37fa0d+_0x1b22c0<_0xb4752b[_0x4f4e69(0x216)]};}[_0xa82a90(0x100)](_0x22fe53,_0x2bd45f='id',_0xcd590d){const _0x37fed7=_0xa82a90;let _0x2cc105=this[_0x37fed7(0x137)](),_0x27c372=Date[_0x37fed7(0x13d)](),_0x277890={..._0xcd590d,'id':_0x32f1bd(0x6),'values':H(_0x2cc105,_0x22fe53,_0x2bd45f),'orderKey':(_0xcd590d==null?void 0x0:_0xcd590d[_0x37fed7(0x19a)])||''+_0x27c372,'createdAt':(_0xcd590d==null?void 0x0:_0xcd590d[_0x37fed7(0x110)])||_0x27c372,'updatedAt':(_0xcd590d==null?void 0x0:_0xcd590d[_0x37fed7(0x172)])||_0x27c372};if(!this[_0x37fed7(0x191)][_0x37fed7(0x116)](_0x46b942['id'],{'unitId':this[_0x37fed7(0x130)][_0x37fed7(0x1eb)](),'tableId':this[_0x37fed7(0x199)],'record':_0x277890,'source':_0x28f784[_0x37fed7(0x176)]}))throw Error(_0x37fed7(0x1e4)+_0x277890['id']+'\x22');return this[_0x37fed7(0xd3)][_0x37fed7(0x194)](Y,this[_0x37fed7(0x130)],this,_0x277890['id'],this['_injector']);}[_0xa82a90(0x129)](_0xe55216){const _0x59676c=_0xa82a90;if(!_0xe55216[_0x59676c(0x216)])return[];let _0x20e218=this['_getTable'](),_0x4b13e1=Date[_0x59676c(0x13d)](),_0x513497=_0xe55216['map']((_0x2d1145,_0x158bc6)=>{const _0x3d7dc0=_0x59676c;var _0x9536e,_0x35a59f,_0x478883;return{..._0x2d1145[_0x3d7dc0(0xf7)],'id':_0x32f1bd(0x6),'values':H(_0x20e218,_0x2d1145[_0x3d7dc0(0x19d)],_0x2d1145['fieldKey']??'id'),'orderKey':((_0x9536e=_0x2d1145[_0x3d7dc0(0xf7)])==null?void 0x0:_0x9536e[_0x3d7dc0(0x19a)])||''+(_0x4b13e1+_0x158bc6),'createdAt':((_0x35a59f=_0x2d1145[_0x3d7dc0(0xf7)])==null?void 0x0:_0x35a59f['createdAt'])||_0x4b13e1,'updatedAt':((_0x478883=_0x2d1145[_0x3d7dc0(0xf7)])==null?void 0x0:_0x478883[_0x3d7dc0(0x172)])||_0x4b13e1};});if(!this[_0x59676c(0x191)]['syncExecuteCommand'](_0x3621b0['id'],{'unitId':this[_0x59676c(0x130)][_0x59676c(0x1eb)](),'tableId':this[_0x59676c(0x199)],'records':_0x513497,'source':_0x28f784[_0x59676c(0x176)]}))throw Error(_0x59676c(0xe8));return _0x513497['map'](_0x528ff1=>this['_injector'][_0x59676c(0x194)](Y,this['_base'],this,_0x528ff1['id'],this[_0x59676c(0xd3)]));}['deleteRecords'](_0xc791d8){const _0x265eb7=_0xa82a90;return!_0xc791d8['length']||this[_0x265eb7(0x191)][_0x265eb7(0x116)](_0xc321e2['id'],{'unitId':this['_base'][_0x265eb7(0x1eb)](),'tableId':this[_0x265eb7(0x199)],'recordIds':_0xc791d8,'source':_0x28f784[_0x265eb7(0x176)]});}[_0xa82a90(0xe3)](_0x421d9d,_0x4f8921,_0x4fa15e=0x1,_0x38a594=0x1){const _0x13dea0=_0xa82a90;return this['_injector']['createInstance'](K,this[_0x13dea0(0x130)],this,{'startRow':_0x421d9d,'endRow':_0x421d9d+_0x4fa15e-0x1,'startColumn':_0x4f8921,'endColumn':_0x4f8921+_0x38a594-0x1},this['_injector']);}[_0xa82a90(0x180)](){const _0x340c92=_0xa82a90;var _0x3ade38;let _0x3722c6=_0x2bd74f(this[_0x340c92(0x137)]()),_0x467665=((_0x3ade38=_0x3722c6[_0x340c92(0x211)])==null?void 0x0:_0x3ade38[_0x340c92(0x216)])??0x0,_0x3724dd=_0x3722c6[_0x340c92(0x15d)][_0x340c92(0xe7)](_0xd18c65=>V(_0x3722c6['fields'][_0xd18c65]))['length'];return this[_0x340c92(0xe3)](0x0,0x0,Math[_0x340c92(0x1c0)](_0x467665,0x1),Math[_0x340c92(0x1c0)](_0x3724dd,0x1));}[_0xa82a90(0x17e)](){const _0x2d7a42=_0xa82a90;let _0x14874e=this[_0x2d7a42(0x137)]();return _0x14874e['viewOrder'][_0x2d7a42(0xe7)](_0xe2fa2=>_0x14874e['views'][_0xe2fa2])[_0x2d7a42(0x20b)](_0x1751e7=>this['_injector'][_0x2d7a42(0x194)](X,this[_0x2d7a42(0x130)],this,_0x1751e7,this[_0x2d7a42(0xd3)]));}[_0xa82a90(0x22d)](_0x617aa2){const _0x48a02c=_0xa82a90;return this['_getTable']()[_0x48a02c(0x1cf)][_0x617aa2]?this[_0x48a02c(0xd3)][_0x48a02c(0x194)](X,this[_0x48a02c(0x130)],this,_0x617aa2,this[_0x48a02c(0xd3)]):null;}[_0xa82a90(0x108)](_0x4be2dd){const _0x42cf76=_0xa82a90;let _0x5883f0=this[_0x42cf76(0x137)](),_0x2a6b82=Object[_0x42cf76(0x19d)](_0x5883f0[_0x42cf76(0x1cf)])[_0x42cf76(0xed)](_0x291ca5=>_0x291ca5['name']===_0x4be2dd);return _0x2a6b82?this[_0x42cf76(0xd3)][_0x42cf76(0x194)](X,this[_0x42cf76(0x130)],this,_0x2a6b82['id'],this[_0x42cf76(0xd3)]):null;}[_0xa82a90(0x21a)](_0x1926ab,_0x39bea5,_0x4f831c){const _0x1d40c5=_0xa82a90;var _0x317e49,_0xb6d56f,_0x4f7af3,_0x46d5c2;let _0x2b21b9=this[_0x1d40c5(0x137)](),_0x686df1=(_0x4f831c==null||(_0x317e49=_0x4f831c[_0x1d40c5(0x21c)])==null?void 0x0:_0x317e49[_0x1d40c5(0x15d)])??_0x2b21b9['fieldOrder'],_0x2f9b90=[_0x2297f6,..._0x686df1[_0x1d40c5(0xe7)](_0x427c48=>V(_0x2b21b9[_0x1d40c5(0x20a)][_0x427c48]))],_0x1f35ba={..._0x4f831c==null?void 0x0:_0x4f831c[_0x1d40c5(0x21c)],'id':_0x32f1bd(0x6),'name':_0x1926ab,'type':_0x39bea5,'tableId':this['_tableId'],'config':(_0x4f831c==null||(_0xb6d56f=_0x4f831c['view'])==null?void 0x0:_0xb6d56f[_0x1d40c5(0x19e)])??{},'fieldOrder':_0x2f9b90,'fieldSettings':{..._0x4f831c==null||(_0x4f7af3=_0x4f831c[_0x1d40c5(0x21c)])==null?void 0x0:_0x4f7af3[_0x1d40c5(0x10c)],[_0x2297f6]:{..._0x4f831c==null||(_0x46d5c2=_0x4f831c[_0x1d40c5(0x21c)])==null||(_0x46d5c2=_0x46d5c2[_0x1d40c5(0x10c)])==null?void 0x0:_0x46d5c2[_0x2297f6],'hidden':!0x0}}};if(!this['_commandService'][_0x1d40c5(0x116)](_0x26c58a['id'],{'unitId':this[_0x1d40c5(0x130)][_0x1d40c5(0x1eb)](),'tableId':this[_0x1d40c5(0x199)],'view':_0x1f35ba,'index':_0x4f831c==null?void 0x0:_0x4f831c[_0x1d40c5(0x1f9)]}))throw Error(_0x1d40c5(0x1fb)+_0x1926ab+'\x22');return this[_0x1d40c5(0xd3)][_0x1d40c5(0x194)](X,this[_0x1d40c5(0x130)],this,_0x1f35ba['id'],this[_0x1d40c5(0xd3)]);}['getSchema'](){const _0x2e645e=_0xa82a90;let _0xd7f2b2=this[_0x2e645e(0x137)](),_0x4ed7ef=_0xd7f2b2[_0x2e645e(0x15d)][_0x2e645e(0xe7)](_0xf6e058=>V(_0xd7f2b2[_0x2e645e(0x20a)][_0xf6e058])),_0x3ece5a=_0xd7f2b2[_0x2e645e(0x18c)][_0x2e645e(0xe7)](_0xcf4bbc=>_0xd7f2b2['views'][_0xcf4bbc]);return{'id':_0xd7f2b2['id'],'name':_0xd7f2b2['name'],'formulaName':this[_0x2e645e(0x1b1)](),'primaryFieldId':_0xd7f2b2['primaryFieldId'],'fieldIds':_0x4ed7ef,'viewIds':_0x3ece5a,'recordCount':this[_0x2e645e(0x19b)]()['length'],'fields':_0x4ed7ef[_0x2e645e(0x20b)](_0x1e5109=>{const _0x1453a4=_0x2e645e;let _0x3315d0=_0xd7f2b2[_0x1453a4(0x20a)][_0x1e5109];return{'id':_0x3315d0['id'],'name':_0x3315d0[_0x1453a4(0xf6)],'type':_0x3315d0[_0x1453a4(0x1e5)],'config':_0x3315d0[_0x1453a4(0x19e)],'readonly':_0x3315d0[_0x1453a4(0x18b)],'description':_0x3315d0[_0x1453a4(0x1e6)]};}),'views':_0x3ece5a[_0x2e645e(0x20b)](_0x578275=>{const _0x4bb0db=_0x2e645e;let _0xa13226=_0xd7f2b2[_0x4bb0db(0x1cf)][_0x578275];return{'id':_0xa13226['id'],'name':_0xa13226[_0x4bb0db(0xf6)],'type':_0xa13226[_0x4bb0db(0x1e5)]};})};}[_0xa82a90(0x137)](){const _0x5d6aa5=_0xa82a90;let _0x37d08d=this[_0x5d6aa5(0x130)][_0x5d6aa5(0x1f1)]()['getSnapshot']()['tables'][this[_0x5d6aa5(0x199)]];if(!_0x37d08d)throw Error(_0x5d6aa5(0x10e)+this[_0x5d6aa5(0x199)]+_0x5d6aa5(0xe1));return _0x37d08d;}[_0xa82a90(0x19b)](_0x503586={}){const _0x134b49=_0xa82a90;let _0x1d880b=this[_0x134b49(0x130)]['getBase']()[_0x134b49(0x138)](),_0x1bc0eb=this[_0x134b49(0x137)]();if(_0x503586[_0x134b49(0x1ca)]){let _0x2b877a=this['_projectionService'][_0x134b49(0x10b)](_0x1d880b,this[_0x134b49(0x199)],_0x503586['viewId']);if(_0x134b49(0x20d)in _0x2b877a&&Array['isArray'](_0x2b877a[_0x134b49(0x20d)]))return _0x2b877a[_0x134b49(0x20d)][_0x134b49(0x20b)](_0x31a800=>_0x31a800['recordId']);}return(_0x1bc0eb['recordOrder']?_0x1bc0eb[_0x134b49(0x211)][_0x134b49(0x20b)](_0x2276e2=>_0x1bc0eb['records'][_0x2276e2]):Object[_0x134b49(0x19d)](_0x1bc0eb['records'])['sort']((_0x266734,_0xd2ff81)=>_0x266734[_0x134b49(0x19a)][_0x134b49(0x1ed)](_0xd2ff81[_0x134b49(0x19a)])))[_0x134b49(0xe7)](_0x4900e7=>_0x4900e7)['map'](_0x4b5d2a=>_0x4b5d2a['id']);}};Z=z([R(0x3,_0x1d508f),R(0x4,_0x574fc3),R(0x5,_0x122330)],Z);function vt(_0x309e3a,_0x3cb47c){const _0x363b15=_0xa82a90;let _0x5c8edf=Math[_0x363b15(0x1c0)](0x0,_0x3cb47c[_0x363b15(0x1cb)]??0x0);return _0x3cb47c['limit']==null?_0x309e3a['slice'](_0x5c8edf):_0x309e3a[_0x363b15(0x111)](_0x5c8edf,_0x5c8edf+Math[_0x363b15(0x1c0)](0x0,_0x3cb47c[_0x363b15(0xec)]));}function yt(_0xa963e7,_0x40f04b,_0xdb4695=[]){const _0x40064e=_0xa82a90;return _0xdb4695[_0x40064e(0x216)]?[..._0xa963e7][_0x40064e(0x17b)]((_0x2a6869,_0x4fc1c7)=>{const _0x20417b=_0x40064e;for(let _0x184649 of _0xdb4695){var _0x3527a2;let _0x43d0db=_0x184649[_0x20417b(0x210)]===_0xca6318['DESC']?-0x1:0x1,_0x26d1e0=bt(_0x2a6869[_0x20417b(0x19d)][_0x184649[_0x20417b(0x1a4)]],_0x4fc1c7['values'][_0x184649[_0x20417b(0x1a4)]],(_0x3527a2=_0x40f04b['fields'][_0x184649[_0x20417b(0x1a4)]])==null?void 0x0:_0x3527a2['type']);if(_0x26d1e0!==0x0)return _0x26d1e0*_0x43d0db;}return String(_0x2a6869[_0x20417b(0x19a)]??_0x2a6869['id'])['localeCompare'](String(_0x4fc1c7['orderKey']??_0x4fc1c7['id']));}):_0xa963e7;}function bt(_0x2ef863,_0x19e04f,_0x4bc13f){const _0x18d960=_0xa82a90;return _0x2ef863==null&&_0x19e04f==null?0x0:_0x2ef863==null?-0x1:_0x19e04f==null?0x1:typeof _0x2ef863==_0x18d960(0x1c8)&&typeof _0x19e04f==_0x18d960(0x1c8)?_0x2ef863-_0x19e04f:_0x4bc13f===_0x130508[_0x18d960(0x1e7)]?Number(_0x2ef863)-Number(_0x19e04f):String(_0x2ef863)[_0x18d960(0x1ed)](String(_0x19e04f));}function xt(_0x1b1505,_0x12f54c,_0x3015ce){const _0x5d8167=_0xa82a90;var _0xe9931f;if(!_0x3015ce||!((_0xe9931f=_0x3015ce[_0x5d8167(0x1fa)])!=null&&_0xe9931f[_0x5d8167(0x216)]))return!0x0;let {conjunction:_0x9a6edf=_0x150572['OR'],conditions:_0x5a2503}=_0x3015ce;return _0x9a6edf===_0x150572[_0x5d8167(0x147)]&&_0x5a2503[_0x5d8167(0x216)]>0x1?_0x5a2503[_0x5d8167(0x127)](_0x12ddf1=>St(_0x1b1505,_0x12f54c,_0x12ddf1)):_0x5a2503['some'](_0x988b77=>St(_0x1b1505,_0x12f54c,_0x988b77));}function St(_0x152dca,_0x5358fc,_0x38b911){const _0x1b55b4=_0xa82a90;let _0x3aa7fa=_0x152dca['values'][_0x38b911[_0x1b55b4(0x1a4)]],_0x102aed=_0x5358fc[_0x1b55b4(0x20a)][_0x38b911[_0x1b55b4(0x1a4)]];if(Ct(_0x38b911)){let _0x3857ba=wt(_0x38b911)[_0x1b55b4(0x184)](String(_0x3aa7fa??''));return _0x38b911['operator']===_0x1b55b4(0x220)?_0x3857ba:!_0x3857ba;}return!_0x102aed||_0x22cf16(_0x3aa7fa,_0x38b911[_0x1b55b4(0x1d4)],_0x38b911['value'],_0x102aed);}function Ct(_0x189d21){const _0x2441be=_0xa82a90;return _0x189d21[_0x2441be(0x1d4)]===_0x2441be(0x220)||_0x189d21[_0x2441be(0x1d4)]==='notMatches';}function wt(_0x819aee){const _0x5e7974=_0xa82a90;let _0x181ab7=String(_0x819aee['value']??'');if(_0x181ab7[_0x5e7974(0x216)]>0x200)throw Error(_0x5e7974(0x17d));try{return new RegExp(_0x181ab7,_0x819aee[_0x5e7974(0x11e)]?void 0x0:'i');}catch(_0x440216){throw Error(_0x5e7974(0x21d)+_0x181ab7+'.\x20'+(_0x440216 instanceof Error?_0x440216[_0x5e7974(0x233)]:String(_0x440216)));}}function Tt(_0x24f6d6,_0x3abe4e,_0x41f07f){const _0x2ad68a=_0xa82a90;if(_0x41f07f['type']!=='invalid'&&_0x41f07f[_0x2ad68a(0x1e5)]!==_0x2ad68a(0x1ae)){var _0x20ade1;if(_0x41f07f[_0x2ad68a(0x1e5)]===_0x80f07f[_0x2ad68a(0x165)]){var _0x3a57e5;let _0x56f956=[((_0x3a57e5=_0x41f07f[_0x2ad68a(0x20a)])==null||(_0x3a57e5=_0x3a57e5[0x0])==null?void 0x0:_0x3a57e5['id'])??_0x24f6d6[_0x2ad68a(0x151)],..._0x41f07f[_0x2ad68a(0xd6)]??[]];return Array['from'](new Set(_0x56f956['filter'](_0x362755=>!!_0x24f6d6['fields'][_0x362755])));}if((_0x20ade1=_0x41f07f[_0x2ad68a(0x20a)])!=null&&_0x20ade1[_0x2ad68a(0x216)])return _0x41f07f['fields'][_0x2ad68a(0x20b)](_0x23b5aa=>_0x23b5aa['id'])[_0x2ad68a(0xe7)](_0x5e974f=>{const _0x33059f=_0x2ad68a;var _0x58e42d;return!(!_0x24f6d6[_0x33059f(0x20a)][_0x5e974f]||_0x3abe4e!=null&&(_0x58e42d=_0x3abe4e['fieldSettings'])!=null&&(_0x58e42d=_0x58e42d[_0x5e974f])!=null&&_0x58e42d[_0x33059f(0x193)]);});}return _0x24f6d6[_0x2ad68a(0x15d)]['filter'](_0x570375=>{const _0x1b53ce=_0x2ad68a;var _0x31885d;return!(!_0x24f6d6[_0x1b53ce(0x20a)][_0x570375]||_0x3abe4e!=null&&(_0x31885d=_0x3abe4e['fieldSettings'])!=null&&(_0x31885d=_0x31885d[_0x570375])!=null&&_0x31885d['hidden']);});}let Q=class extends _0x23839b[_0xa82a90(0x10a)]{constructor(_0x1dce1e,_0x285e4b,_0x3e26a6,_0x30f7d4,_0x42a871){const _0x4a9016=_0xa82a90;super(),this['_base']=_0x1dce1e,this[_0x4a9016(0xd3)]=_0x285e4b,this['_resourceLoaderService']=_0x3e26a6,this[_0x4a9016(0x191)]=_0x30f7d4,this[_0x4a9016(0x1c2)]=_0x42a871;}[_0xa82a90(0x1f1)](){const _0x5b9d30=_0xa82a90;return this[_0x5b9d30(0x130)];}[_0xa82a90(0x1eb)](){const _0x55dfa3=_0xa82a90;return this[_0x55dfa3(0x130)][_0x55dfa3(0x174)]();}[_0xa82a90(0x132)](){const _0x4ffab3=_0xa82a90;return new at(this[_0x4ffab3(0x1eb)](),this[_0x4ffab3(0x191)],this[_0x4ffab3(0x1c2)]);}[_0xa82a90(0x1ea)](){const _0x163726=_0xa82a90;return this['_resourceLoaderService'][_0x163726(0x106)](this[_0x163726(0x1eb)]())??_0x3a42ae['deepClone'](this[_0x163726(0x130)][_0x163726(0x138)]());}[_0xa82a90(0x1a3)](){const _0x4820b3=_0xa82a90;return this['_base'][_0x4820b3(0x138)]()['name'];}[_0xa82a90(0x228)](_0x4c6769){const _0x4cceac=_0xa82a90;this['_commandService']['syncExecuteCommand'](_0x20863c['id'],{'unitId':this[_0x4cceac(0x1eb)](),'name':_0x4c6769});}[_0xa82a90(0x181)](){const _0x9b59de=_0xa82a90;let _0x4aacf0=this[_0x9b59de(0x130)]['getSnapshot']();return _0x4aacf0[_0x9b59de(0x1be)][_0x9b59de(0x20b)](_0xd28b81=>_0x4aacf0['tables'][_0xd28b81])[_0x9b59de(0xe7)](_0x147183=>_0x147183)['map'](_0x69c5bb=>this[_0x9b59de(0xd3)][_0x9b59de(0x194)](Z,this,_0x69c5bb['id'],this[_0x9b59de(0xd3)]));}['getTableById'](_0x186a38){const _0x57c0b2=_0xa82a90;let _0x2a6584=this['_base'][_0x57c0b2(0x138)]()[_0x57c0b2(0x117)][_0x186a38];return _0x2a6584?this[_0x57c0b2(0xd3)]['createInstance'](Z,this,_0x2a6584['id'],this[_0x57c0b2(0xd3)]):null;}[_0xa82a90(0xfb)](_0x4cf571){const _0x5c5af6=_0xa82a90;let _0x1a6cdf=this['_base'][_0x5c5af6(0x138)](),_0x5bf48d=Object[_0x5c5af6(0x19d)](_0x1a6cdf[_0x5c5af6(0x117)])[_0x5c5af6(0xed)](_0x3d9171=>_0x3d9171['name']===_0x4cf571);return _0x5bf48d?this[_0x5c5af6(0xd3)][_0x5c5af6(0x194)](Z,this,_0x5bf48d['id'],this['_injector']):null;}[_0xa82a90(0x163)](_0x183611,_0x5d9ee1){const _0x591326=_0xa82a90;let _0x664312=_0x46ae84({'id':_0x32f1bd(),'name':_0x183611,..._0x5d9ee1==null?void 0x0:_0x5d9ee1['table'],'primaryFieldName':_0x5d9ee1==null?void 0x0:_0x5d9ee1[_0x591326(0x131)]}),_0x1809da=_0x3a42ae[_0x591326(0x1b5)](_0x664312,(_0x5d9ee1==null?void 0x0:_0x5d9ee1[_0x591326(0x1d0)])??{}),_0x537fec=_0x21dd01(this[_0x591326(0x130)][_0x591326(0x138)](),_0x1809da[_0x591326(0xf6)]);if(!_0x537fec[_0x591326(0x13e)])throw Error(_0x591326(0x227)+_0x1809da['name']+_0x591326(0x11c)+_0x4860a7+'\x20'+_0x537fec[_0x591326(0x1d7)]);if(!this['_commandService']['syncExecuteCommand'](_0x51f087['id'],{'unitId':this[_0x591326(0x130)][_0x591326(0x174)](),'table':_0x1809da,'index':_0x5d9ee1==null?void 0x0:_0x5d9ee1[_0x591326(0x1f9)]}))throw Error(_0x591326(0x186)+_0x183611+'\x22.');return this[_0x591326(0xd3)][_0x591326(0x194)](Z,this,_0x1809da['id'],this[_0x591326(0xd3)]);}['deleteTable'](_0x4cb4fe){const _0x2b2d74=_0xa82a90;let _0x51a84b=typeof _0x4cb4fe==_0x2b2d74(0xf1)?_0x4cb4fe:_0x4cb4fe[_0x2b2d74(0x1eb)]();if(!this[_0x2b2d74(0x191)][_0x2b2d74(0x116)](_0x56b5ff['id'],{'unitId':this[_0x2b2d74(0x130)][_0x2b2d74(0x174)](),'tableId':_0x51a84b}))throw Error(_0x2b2d74(0xf9)+_0x51a84b+'\x22.');return!0x0;}[_0xa82a90(0xd8)](_0x5267ca,_0x1c65af){const _0x278ad6=_0xa82a90;let _0x3940b7=this[_0x278ad6(0x130)][_0x278ad6(0x138)](),_0xbab6d8=typeof _0x5267ca==_0x278ad6(0xf1)?_0x5267ca:_0x5267ca[_0x278ad6(0x1eb)](),_0x10470c=_0x3940b7[_0x278ad6(0x117)][_0xbab6d8];if(!_0x10470c)throw Error(_0x278ad6(0xea)+_0xbab6d8+_0x278ad6(0xe1));let _0x2bd5dd=_0x3940b7['tableOrder'][_0x278ad6(0x14e)](_0xbab6d8)+0x1,_0x51e8a0=_0x32f1bd(),_0x5e8e92=_0x2d9602(_0x10470c,{'id':_0x51e8a0,'name':_0x3324e5(_0x3940b7,_0x10470c[_0x278ad6(0xf6)]+_0x278ad6(0x162)),'includeRecords':(_0x1c65af==null?void 0x0:_0x1c65af[_0x278ad6(0x224)])??!0x1,'regenerateViewIds':(_0x1c65af==null?void 0x0:_0x1c65af['regenerateViewIds'])??!0x1});if(!this[_0x278ad6(0x191)][_0x278ad6(0x116)](_0x51f087['id'],{'unitId':this[_0x278ad6(0x130)][_0x278ad6(0x174)](),'table':_0x5e8e92,'index':_0x2bd5dd}))throw Error(_0x278ad6(0x11a)+_0xbab6d8+'\x22.');return this[_0x278ad6(0xd3)][_0x278ad6(0x194)](Z,this,_0x5e8e92['id'],this['_injector']);}[_0xa82a90(0x1cd)](){const _0x4864ff=_0xa82a90;let _0x335e82=this[_0x4864ff(0x130)]['getSnapshot']();return{'id':_0x335e82['id'],'name':_0x335e82[_0x4864ff(0xf6)],'tables':this[_0x4864ff(0x181)]()[_0x4864ff(0x20b)](_0x57462f=>_0x57462f[_0x4864ff(0x1cd)]())};}};Q=z([R(0x1,_0x380356(_0x26cf4b)),R(0x2,_0x1e7781),R(0x3,_0x1d508f),R(0x4,_0x574fc3)],Q);var Et=class extends _0x371b32{['_initialize'](){const _0x2c4e2d=_0xa82a90;this[_0x2c4e2d(0x13b)](),this[_0x2c4e2d(0x119)]();}[_0xa82a90(0x1d3)](_0x225373={},_0x17e6ec){const _0x2d89b0=_0xa82a90;let _0x16400d=this['_univerInstanceService'][_0x2d89b0(0x12e)](_0x4b17b4[_0x2d89b0(0x1c6)],_0x225373,_0x17e6ec);return this[_0x2d89b0(0xd3)][_0x2d89b0(0x194)](Q,_0x16400d);}[_0xa82a90(0x1a7)](){const _0x19b834=_0xa82a90;let _0x621f0a=this[_0x19b834(0x1a5)]['getCurrentUnitOfType'](_0x4b17b4['UNIVER_BASE']);return _0x621f0a?this[_0x19b834(0xd3)]['createInstance'](Q,_0x621f0a):null;}[_0xa82a90(0x1f1)](_0x3d5fc1){const _0x5d4c03=_0xa82a90;let _0x898ac=this[_0x5d4c03(0x1a5)]['getUnit'](_0x3d5fc1,_0x4b17b4[_0x5d4c03(0x1c6)]);return _0x898ac?this[_0x5d4c03(0xd3)][_0x5d4c03(0x194)](Q,_0x898ac):null;}[_0xa82a90(0x143)](){const _0x346d7e=_0xa82a90;return this[_0x346d7e(0x1a5)]['getAllUnitsForType'](_0x4b17b4[_0x346d7e(0x1c6)])['map'](_0x3d06a2=>this[_0x346d7e(0xd3)][_0x346d7e(0x194)](Q,_0x3d06a2));}[_0xa82a90(0x119)](){const _0x40f43e=_0xa82a90;this[_0x40f43e(0x1e0)](this[_0x40f43e(0x168)](this[_0x40f43e(0x14c)][_0x40f43e(0x16d)],()=>this[_0x40f43e(0x191)][_0x40f43e(0x11f)]((_0x16467d,_0x1436f8)=>{const _0x3ccd6c=_0x40f43e;var _0x3524d5;if(!$(_0x16467d,_0x468b24))return;let _0xcc4328=_0x16467d[_0x3ccd6c(0x16b)];if(!((_0x3524d5=_0xcc4328['hierarchyChanges'])!=null&&_0x3524d5['length']))return;let _0xb5fb53=this[_0x3ccd6c(0x1f1)](_0xcc4328[_0x3ccd6c(0x12c)]),_0x617c60=_0xb5fb53==null?void 0x0:_0xb5fb53[_0x3ccd6c(0x152)](_0xcc4328[_0x3ccd6c(0x231)][0x0][_0x3ccd6c(0x1ee)]);if(!_0xb5fb53||!_0x617c60)return;let _0x3da120={'base':_0xb5fb53,'table':_0x617c60,'changes':_0xcc4328[_0x3ccd6c(0x231)],'source':_0x1436f8!=null&&_0x1436f8[_0x3ccd6c(0x1d8)]?_0x28f784[_0x3ccd6c(0x175)]:_0xcc4328['source']??_0x28f784['UI']};this[_0x3ccd6c(0x115)](this[_0x3ccd6c(0x14c)][_0x3ccd6c(0x16d)],_0x3da120);}))),this['disposeWithMe'](this[_0x40f43e(0x168)](this[_0x40f43e(0x14c)][_0x40f43e(0x18a)],()=>this[_0x40f43e(0x191)][_0x40f43e(0x11f)](_0x210bc3=>{const _0x18e184=_0x40f43e;if(_0x210bc3['id']!==_0x51f087['id'])return;let {unitId:_0x2a1e2c,table:_0x31427c,index:_0x213fa2}=_0x210bc3[_0x18e184(0x16b)],_0x4f87f9=this[_0x18e184(0x1f1)](_0x2a1e2c);if(!_0x4f87f9)return;let _0x5750d9={'base':_0x4f87f9,'table':_0x31427c,'index':_0x213fa2};this['fireEvent'](this['Event']['BaseTableCreated'],_0x5750d9);}))),this[_0x40f43e(0x1e0)](this[_0x40f43e(0x168)](this[_0x40f43e(0x14c)]['BaseTableFieldCreated'],()=>this[_0x40f43e(0x191)][_0x40f43e(0x11f)](_0x5e0990=>{const _0x408e13=_0x40f43e;if(_0x5e0990['id']!==_0x12434b['id'])return;let {unitId:_0x3b7161,tableId:_0x22a8b9,field:_0x46d259,index:_0x201a88,viewIndexes:_0x2691a8}=_0x5e0990[_0x408e13(0x16b)],_0x5ae1be=this['getBase'](_0x3b7161);if(!_0x5ae1be)return;let _0x3954ab=_0x5ae1be[_0x408e13(0x152)](_0x22a8b9);if(!_0x3954ab)return;let _0xc0837a={'base':_0x5ae1be,'table':_0x3954ab,'field':_0x46d259,'index':_0x201a88,'viewIndexes':_0x2691a8};this[_0x408e13(0x115)](this['Event'][_0x408e13(0x187)],_0xc0837a);}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x40f43e(0x14c)][_0x40f43e(0x22c)],()=>this[_0x40f43e(0x191)][_0x40f43e(0x11f)](_0xa92ee3=>{const _0x5da138=_0x40f43e;if(_0xa92ee3['id']!==_0x46b942['id']&&_0xa92ee3['id']!==_0x3621b0['id'])return;let _0x371658=_0xa92ee3['params'],{unitId:_0x2d3660,tableId:_0x2932bd}=_0x371658,_0x498bf7=_0x371658[_0x5da138(0x1e2)]??[_0x371658[_0x5da138(0xf7)]],_0x3279ef=this[_0x5da138(0x1f1)](_0x2d3660);if(!_0x3279ef)return;let _0x14fb60=_0x3279ef[_0x5da138(0x152)](_0x2932bd);if(!_0x14fb60)return;let _0x40ed95={'base':_0x3279ef,'table':_0x14fb60,'records':_0x498bf7};this[_0x5da138(0x115)](this[_0x5da138(0x14c)][_0x5da138(0x22c)],_0x40ed95);}))),this[_0x40f43e(0x1e0)](this[_0x40f43e(0x168)](this[_0x40f43e(0x14c)][_0x40f43e(0x1ce)],()=>this[_0x40f43e(0x191)][_0x40f43e(0x11f)](_0x31f070=>{const _0x5efacb=_0x40f43e;if(_0x31f070['id']!==_0x26c58a['id'])return;let {unitId:_0x4cf262,tableId:_0x8d4095,view:_0x3d4fb2,index:_0x549e67}=_0x31f070['params'],_0x47d5f0=this[_0x5efacb(0x1f1)](_0x4cf262);if(!_0x47d5f0)return;let _0x5ad3eb=_0x47d5f0[_0x5efacb(0x152)](_0x8d4095);if(!_0x5ad3eb)return;let _0x245caf={'base':_0x47d5f0,'table':_0x5ad3eb,'view':_0x3d4fb2,'index':_0x549e67};this[_0x5efacb(0x115)](this[_0x5efacb(0x14c)]['BaseTableViewCreated'],_0x245caf);}))),this[_0x40f43e(0x1e0)](this[_0x40f43e(0x168)](this['Event'][_0x40f43e(0x198)],()=>this['_commandService'][_0x40f43e(0x11f)](_0x47f2a9=>{const _0x4104ca=_0x40f43e;if(_0x47f2a9['id']!==_0x13154a['id'])return;let {unitId:_0x448ba2,tableId:_0x418fd4,recordId:_0x2a61cd,fieldId:_0x4fac67,value:_0x5ee57f}=_0x47f2a9['params'],_0x287b6a=this['getBase'](_0x448ba2);if(!_0x287b6a)return;let _0x404f37=_0x287b6a[_0x4104ca(0x152)](_0x418fd4);if(!_0x404f37)return;let _0x536d2d=_0x404f37[_0x4104ca(0xd1)](_0x4fac67);if(!_0x536d2d)return;let _0x1b6c95=_0x404f37[_0x4104ca(0xe4)](_0x2a61cd);if(!_0x1b6c95)return;let _0x1ccb22={'base':_0x287b6a,'table':_0x404f37,'field':_0x536d2d,'record':_0x1b6c95,'value':_0x5ee57f};this[_0x4104ca(0x115)](this[_0x4104ca(0x14c)]['BaseTableCellValueChanged'],_0x1ccb22);})));}['_initBaseBeforeEvents'](){const _0x1c76d6=_0xa82a90;this[_0x1c76d6(0x1e0)](this['registerEventHandler'](this[_0x1c76d6(0x14c)][_0x1c76d6(0x15a)],()=>this[_0x1c76d6(0x191)]['beforeCommandExecuted'](_0x261b00=>{const _0x32684c=_0x1c76d6;if($(_0x261b00,_0xe6c5d7)){let {unitId:_0x431b93,tableId:_0x53a17e,patches:_0x3c34fc,source:_0x26d742=_0x28f784['UI']}=_0x261b00[_0x32684c(0x16b)],_0x58a529=this[_0x32684c(0x206)](_0x431b93,_0x53a17e);if(!_0x58a529)return;this[_0x32684c(0x1b0)](_0x58a529[_0x32684c(0xd0)],_0x58a529[_0x32684c(0x1d0)],_0x513eca(_0x58a529[_0x32684c(0x1d0)]['getTable'](),_0x3c34fc),_0x26d742);return;}if($(_0x261b00,_0x48c562)){let {unitId:_0x5e86fd,tableId:_0x2c1ba3,patches:_0x1f6ea3,source:_0x53369b=_0x28f784['UI']}=_0x261b00[_0x32684c(0x16b)],_0x40c334=this['_getHierarchyEventContext'](_0x5e86fd,_0x2c1ba3);if(!_0x40c334)return;let _0x14b4d4=_0x40c334[_0x32684c(0x1d0)][_0x32684c(0x196)]();this[_0x32684c(0x1b0)](_0x40c334[_0x32684c(0xd0)],_0x40c334[_0x32684c(0x1d0)],_0x513eca(_0x14b4d4,_0x3240f0(_0x14b4d4,_0x1f6ea3)),_0x53369b);return;}if($(_0x261b00,_0x46b942)){let _0x1cf913=_0x261b00['params'],_0x549b21=this['_getHierarchyEventContext'](_0x1cf913[_0x32684c(0x12c)],_0x1cf913[_0x32684c(0x1ee)]);if(!_0x549b21)return;this['_fireBeforeHierarchyChange'](_0x549b21[_0x32684c(0xd0)],_0x549b21['table'],_0x506d92(_0x549b21[_0x32684c(0x1d0)][_0x32684c(0x196)](),[_0x1cf913[_0x32684c(0xf7)]]),_0x1cf913[_0x32684c(0x1bb)]??_0x28f784['UI']);return;}if($(_0x261b00,_0x3621b0)){let _0x5e0b69=_0x261b00[_0x32684c(0x16b)],_0x121629=this[_0x32684c(0x206)](_0x5e0b69['unitId'],_0x5e0b69[_0x32684c(0x1ee)]);if(!_0x121629)return;this[_0x32684c(0x1b0)](_0x121629[_0x32684c(0xd0)],_0x121629[_0x32684c(0x1d0)],_0x506d92(_0x121629['table'][_0x32684c(0x196)](),_0x5e0b69[_0x32684c(0x1e2)]),_0x5e0b69[_0x32684c(0x1bb)]??_0x28f784['UI']);return;}if($(_0x261b00,_0xb34da3)){let _0x1001e3=_0x261b00[_0x32684c(0x16b)],_0x3e1743=this['_getHierarchyEventContext'](_0x1001e3[_0x32684c(0x12c)],_0x1001e3[_0x32684c(0x1ee)]);if(!_0x3e1743)return;this[_0x32684c(0x1b0)](_0x3e1743['base'],_0x3e1743['table'],_0x506d92(_0x3e1743[_0x32684c(0x1d0)]['getTable'](),[_0x1001e3[_0x32684c(0xf7)]]),_0x1001e3[_0x32684c(0x1bb)]??_0x28f784['UI']);return;}if($(_0x261b00,_0x506b33)){let _0x4e76f2=_0x261b00['params'],_0x42b3fb=this['_getHierarchyEventContext'](_0x4e76f2[_0x32684c(0x12c)],_0x4e76f2[_0x32684c(0x1ee)]);if(!_0x42b3fb)return;let _0x2f26ac=_0x42b3fb[_0x32684c(0x1d0)][_0x32684c(0x196)](),_0x13a29b=_0x4e76f2[_0x32684c(0x1a4)]??_0x273f61(_0x2f26ac),_0x4505d3=_0x1c9c0c(_0x2f26ac,_0x13a29b)[_0x32684c(0x1bf)][_0x32684c(0x232)](_0x4e76f2['recordId'])??null;this[_0x32684c(0x1b0)](_0x42b3fb[_0x32684c(0xd0)],_0x42b3fb[_0x32684c(0x1d0)],[{'tableId':_0x4e76f2[_0x32684c(0x1ee)],'fieldId':_0x13a29b,'recordId':_0x4e76f2[_0x32684c(0x1fd)],'oldParentRecordId':_0x4505d3,'parentRecordId':_0x4e76f2[_0x32684c(0xe5)]}],_0x4e76f2[_0x32684c(0x1bb)]??_0x28f784['UI']);return;}if($(_0x261b00,_0x2ebda1)){let _0xfe34a2=_0x261b00['params'],_0x258c9a=this['_getHierarchyEventContext'](_0xfe34a2[_0x32684c(0x12c)],_0xfe34a2[_0x32684c(0x1ee)]);if(!_0x258c9a)return;let _0x1606f0=_0xfe34a2[_0x32684c(0x1a4)]??_0x273f61(_0x258c9a[_0x32684c(0x1d0)][_0x32684c(0x196)]());this[_0x32684c(0x1b0)](_0x258c9a['base'],_0x258c9a[_0x32684c(0x1d0)],[{'tableId':_0xfe34a2['tableId'],'fieldId':_0x1606f0,'recordId':_0xfe34a2['record']['id'],'oldParentRecordId':null,'parentRecordId':_0xfe34a2[_0x32684c(0xe5)]}],_0xfe34a2[_0x32684c(0x1bb)]??_0x28f784['UI']);return;}if($(_0x261b00,_0x4bc901)){let _0x5a44fd=_0x261b00[_0x32684c(0x16b)],_0x4333e7=this['_getHierarchyEventContext'](_0x5a44fd[_0x32684c(0x12c)],_0x5a44fd['tableId']);if(!_0x4333e7)return;this[_0x32684c(0x1b0)](_0x4333e7[_0x32684c(0xd0)],_0x4333e7[_0x32684c(0x1d0)],_0x1a3bb4(_0x4333e7[_0x32684c(0x1d0)][_0x32684c(0x196)](),[_0x5a44fd[_0x32684c(0x1fd)]]),_0x5a44fd[_0x32684c(0x1bb)]??_0x28f784['UI']);return;}if($(_0x261b00,_0xc321e2)){let _0x4f8ab2=_0x261b00[_0x32684c(0x16b)],_0x287ddd=this[_0x32684c(0x206)](_0x4f8ab2['unitId'],_0x4f8ab2[_0x32684c(0x1ee)]);if(!_0x287ddd)return;this[_0x32684c(0x1b0)](_0x287ddd[_0x32684c(0xd0)],_0x287ddd[_0x32684c(0x1d0)],_0x1a3bb4(_0x287ddd[_0x32684c(0x1d0)]['getTable'](),_0x4f8ab2[_0x32684c(0x126)]),_0x4f8ab2['source']??_0x28f784['UI']);return;}if(!$(_0x261b00,_0x13154a))return;let _0x262fcd=_0x261b00[_0x32684c(0x16b)],_0x4febff=this[_0x32684c(0x206)](_0x262fcd['unitId'],_0x262fcd[_0x32684c(0x1ee)]);if(!_0x4febff)return;let _0x4317c7=_0x4febff[_0x32684c(0x1d0)]['getTable']();if(!_0x2576f4(_0x4317c7)[_0x32684c(0x178)](_0x262fcd[_0x32684c(0x1a4)]))return;let _0x32765f=_0x1c9c0c(_0x4317c7,_0x262fcd[_0x32684c(0x1a4)])[_0x32684c(0x1bf)][_0x32684c(0x232)](_0x262fcd['recordId'])??null,_0x6663d9=_0x277ee5(_0x262fcd[_0x32684c(0x154)])[0x0]??null;_0x32765f!==_0x6663d9&&this[_0x32684c(0x1b0)](_0x4febff[_0x32684c(0xd0)],_0x4febff[_0x32684c(0x1d0)],[{'tableId':_0x262fcd[_0x32684c(0x1ee)],'fieldId':_0x262fcd[_0x32684c(0x1a4)],'recordId':_0x262fcd[_0x32684c(0x1fd)],'oldParentRecordId':_0x32765f,'parentRecordId':_0x6663d9}],_0x262fcd['source']??_0x28f784['UI']);}))),this['disposeWithMe'](this[_0x1c76d6(0x168)](this[_0x1c76d6(0x14c)][_0x1c76d6(0x1a8)],()=>this[_0x1c76d6(0x191)][_0x1c76d6(0x208)](_0x369558=>{const _0x44bb01=_0x1c76d6;if(_0x369558['id']!==_0x51f087['id'])return;let {unitId:_0x2c3d3b,table:_0x1cf148,index:_0x3a45a7}=_0x369558[_0x44bb01(0x16b)],_0xbb9956=this[_0x44bb01(0x1f1)](_0x2c3d3b);if(!_0xbb9956)return;let _0x2e596e={'base':_0xbb9956,'table':_0x1cf148,'index':_0x3a45a7};if(this['fireEvent'](this[_0x44bb01(0x14c)][_0x44bb01(0x1a8)],_0x2e596e),_0x2e596e[_0x44bb01(0xd4)])throw new _0xc1a95d();}))),this[_0x1c76d6(0x1e0)](this[_0x1c76d6(0x168)](this[_0x1c76d6(0x14c)][_0x1c76d6(0x1d6)],()=>this[_0x1c76d6(0x191)]['beforeCommandExecuted'](_0x355479=>{const _0x2a3128=_0x1c76d6;if(_0x355479['id']!==_0x12434b['id'])return;let {unitId:_0x3efef6,tableId:_0x297b91,field:_0x3c91f5,index:_0x57ca70,viewIndexes:_0x216239}=_0x355479['params'],_0x42066d=this[_0x2a3128(0x1f1)](_0x3efef6);if(!_0x42066d)return;let _0x7135c1=_0x42066d['getTableById'](_0x297b91);if(!_0x7135c1)return;let _0x22cccf={'base':_0x42066d,'table':_0x7135c1,'field':_0x3c91f5,'index':_0x57ca70,'viewIndexes':_0x216239};if(this[_0x2a3128(0x115)](this[_0x2a3128(0x14c)][_0x2a3128(0x1d6)],_0x22cccf),_0x22cccf[_0x2a3128(0xd4)])throw new _0xc1a95d();}))),this[_0x1c76d6(0x1e0)](this[_0x1c76d6(0x168)](this['Event'][_0x1c76d6(0x157)],()=>this['_commandService']['beforeCommandExecuted'](_0x44d3c6=>{const _0x21359c=_0x1c76d6;if(_0x44d3c6['id']!==_0x46b942['id']&&_0x44d3c6['id']!==_0x3621b0['id'])return;let _0x58cb1d=_0x44d3c6[_0x21359c(0x16b)],{unitId:_0x3c7e4b,tableId:_0x5cb636}=_0x58cb1d,_0x51027c=_0x58cb1d['records']??[_0x58cb1d[_0x21359c(0xf7)]],_0x27d9cb=this[_0x21359c(0x1f1)](_0x3c7e4b);if(!_0x27d9cb)return;let _0x6d3fcb=_0x27d9cb[_0x21359c(0x152)](_0x5cb636);if(!_0x6d3fcb)return;let _0x25bca5={'base':_0x27d9cb,'table':_0x6d3fcb,'records':_0x51027c};if(this[_0x21359c(0x115)](this[_0x21359c(0x14c)]['BeforeBaseTableRecordCreate'],_0x25bca5),_0x25bca5['cancel'])throw new _0xc1a95d();}))),this[_0x1c76d6(0x1e0)](this['registerEventHandler'](this[_0x1c76d6(0x14c)][_0x1c76d6(0xfc)],()=>this['_commandService'][_0x1c76d6(0x208)](_0x34d8d1=>{const _0x48bfc3=_0x1c76d6;if(_0x34d8d1['id']!==_0x26c58a['id'])return;let {unitId:_0x85fdfe,tableId:_0x44e6c6,view:_0x33edbc,index:_0x20ec46}=_0x34d8d1[_0x48bfc3(0x16b)],_0x31a079=this['getBase'](_0x85fdfe);if(!_0x31a079)return;let _0x2d8e86=_0x31a079[_0x48bfc3(0x152)](_0x44e6c6);if(!_0x2d8e86)return;let _0x43e45f={'base':_0x31a079,'table':_0x2d8e86,'view':_0x33edbc,'index':_0x20ec46};if(this[_0x48bfc3(0x115)](this[_0x48bfc3(0x14c)][_0x48bfc3(0xfc)],_0x43e45f),_0x43e45f[_0x48bfc3(0xd4)])throw new _0xc1a95d();}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x1c76d6(0x14c)][_0x1c76d6(0x183)],()=>this[_0x1c76d6(0x191)]['beforeCommandExecuted'](_0x3a0f02=>{const _0x4e058b=_0x1c76d6;if(_0x3a0f02['id']!==_0x13154a['id'])return;let {unitId:_0x985c59,tableId:_0x49be12,recordId:_0x3c9e55,fieldId:_0x38644b,value:_0x55d52c}=_0x3a0f02[_0x4e058b(0x16b)],_0x352bc9=this['getBase'](_0x985c59);if(!_0x352bc9)return;let _0x3728f1=_0x352bc9[_0x4e058b(0x152)](_0x49be12);if(!_0x3728f1)return;let _0x395752=_0x3728f1[_0x4e058b(0xd1)](_0x38644b);if(!_0x395752)return;let _0x1a3513=_0x3728f1['getRecordById'](_0x3c9e55);if(!_0x1a3513)return;let _0x28dc09={'base':_0x352bc9,'table':_0x3728f1,'field':_0x395752,'record':_0x1a3513,'value':_0x55d52c};if(this[_0x4e058b(0x115)](this[_0x4e058b(0x14c)][_0x4e058b(0x183)],_0x28dc09),_0x28dc09['cancel'])throw new _0xc1a95d();})));}[_0xa82a90(0x206)](_0x5c3a2d,_0x3e74ab){const _0x2d7c13=_0xa82a90;let _0x15f3e0=this[_0x2d7c13(0x1f1)](_0x5c3a2d),_0x568591=_0x15f3e0==null?void 0x0:_0x15f3e0['getTableById'](_0x3e74ab);return _0x15f3e0&&_0x568591?{'base':_0x15f3e0,'table':_0x568591}:null;}[_0xa82a90(0x1b0)](_0x8f31ef,_0x51a444,_0x1de272,_0x5d3664){const _0x357a0d=_0xa82a90;if(!_0x1de272[_0x357a0d(0x216)])return;let _0x4290e7={'base':_0x8f31ef,'table':_0x51a444,'changes':_0x1de272,'source':_0x5d3664};if(this[_0x357a0d(0x115)](this[_0x357a0d(0x14c)][_0x357a0d(0x15a)],_0x4290e7),_0x4290e7[_0x357a0d(0xd4)])throw new _0xc1a95d();}};function $(_0x9b7904,_0x1b3aed){const _0x3a2067=_0xa82a90;return _0x9b7904['id']===_0x1b3aed['id']&&_0x9b7904[_0x3a2067(0x16b)]!==void 0x0;}_0x371b32[_0xa82a90(0x133)](Et);var Dt=class extends _0x30b9c1{get[_0xa82a90(0x12a)](){return _0x130508;}get[_0xa82a90(0x173)](){return _0x150572;}get['BaseFilterOperator'](){return _0x31d69a;}get[_0xa82a90(0x13c)](){return ot;}get[_0xa82a90(0x22b)](){return _0x80f07f;}get[_0xa82a90(0xd7)](){return _0x3afeed;}get[_0xa82a90(0x201)](){return _0x5a5143;}get[_0xa82a90(0x125)](){return _0x1038ed;}get[_0xa82a90(0x18e)](){return _0xca6318;}get[_0xa82a90(0x113)](){return _0x28f784;}get[_0xa82a90(0x1dd)](){return _0x478f6a;}get[_0xa82a90(0xf4)](){return _0x1e2568;}get['BaseRecordLinkRole'](){return _0x25e3fb;}};_0x30b9c1[_0xa82a90(0x133)](Dt);var Ot=class extends _0x9a302c{get['BaseTableCreated'](){const _0x547ea0=_0xa82a90;return _0x547ea0(0x18a);}get[_0xa82a90(0x1a8)](){const _0xacc856=_0xa82a90;return _0xacc856(0x1a8);}get['BaseTableFieldCreated'](){const _0x7d64d3=_0xa82a90;return _0x7d64d3(0x187);}get['BeforeBaseTableFieldCreate'](){const _0x2bf3da=_0xa82a90;return _0x2bf3da(0x1d6);}get[_0xa82a90(0x22c)](){return'BaseTableRecordCreated';}get[_0xa82a90(0x157)](){const _0x2a3e1d=_0xa82a90;return _0x2a3e1d(0x157);}get[_0xa82a90(0x1ce)](){const _0x5c89f2=_0xa82a90;return _0x5c89f2(0x1ce);}get[_0xa82a90(0xfc)](){return'BeforeBaseTableViewCreate';}get[_0xa82a90(0x198)](){const _0x53aa55=_0xa82a90;return _0x53aa55(0x198);}get[_0xa82a90(0x183)](){const _0x4c615e=_0xa82a90;return _0x4c615e(0x183);}get['BaseHierarchyChanged'](){const _0x5f26a0=_0xa82a90;return _0x5f26a0(0x16d);}get[_0xa82a90(0x15a)](){return'BeforeBaseHierarchyChange';}};function _0x6787(_0x2a55eb,_0x882b45){_0x2a55eb=_0x2a55eb-0xd0;const _0x121186=_0x1211();let _0x67871=_0x121186[_0x2a55eb];return _0x67871;}_0x9a302c[_0xa82a90(0x133)](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};