@univerjs-pro/bases 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +21 -9
  2. package/lib/cjs/config-BHbUCCo4.js +1 -0
  3. package/lib/cjs/facade.js +1 -1
  4. package/lib/cjs/index.js +1 -1
  5. package/lib/cjs/locale/ar-SA.js +1 -1
  6. package/lib/cjs/locale/ca-ES.js +1 -1
  7. package/lib/cjs/locale/de-DE.js +1 -1
  8. package/lib/cjs/locale/en-US.js +1 -1
  9. package/lib/cjs/locale/es-ES.js +1 -1
  10. package/lib/cjs/locale/fa-IR.js +1 -1
  11. package/lib/cjs/locale/fr-FR.js +1 -1
  12. package/lib/cjs/locale/id-ID.js +1 -1
  13. package/lib/cjs/locale/it-IT.js +1 -1
  14. package/lib/cjs/locale/ja-JP.js +1 -1
  15. package/lib/cjs/locale/ko-KR.js +1 -1
  16. package/lib/cjs/locale/pl-PL.js +1 -1
  17. package/lib/cjs/locale/pt-BR.js +1 -1
  18. package/lib/cjs/locale/ru-RU.js +1 -1
  19. package/lib/cjs/locale/sk-SK.js +1 -1
  20. package/lib/cjs/locale/vi-VN.js +1 -1
  21. package/lib/cjs/locale/zh-CN.js +1 -1
  22. package/lib/cjs/locale/zh-HK.js +1 -1
  23. package/lib/cjs/locale/zh-TW.js +1 -1
  24. package/lib/cjs/worker.js +1 -1
  25. package/lib/config-C9tN8Oda.js +1 -0
  26. package/lib/es/config-C9tN8Oda.js +1 -0
  27. package/lib/es/facade.js +1 -1
  28. package/lib/es/index.js +1 -1
  29. package/lib/es/locale/ar-SA.js +1 -1
  30. package/lib/es/locale/ca-ES.js +1 -1
  31. package/lib/es/locale/de-DE.js +1 -1
  32. package/lib/es/locale/en-US.js +1 -1
  33. package/lib/es/locale/es-ES.js +1 -1
  34. package/lib/es/locale/fa-IR.js +1 -1
  35. package/lib/es/locale/fr-FR.js +1 -1
  36. package/lib/es/locale/id-ID.js +1 -1
  37. package/lib/es/locale/it-IT.js +1 -1
  38. package/lib/es/locale/ja-JP.js +1 -1
  39. package/lib/es/locale/ko-KR.js +1 -1
  40. package/lib/es/locale/pl-PL.js +1 -1
  41. package/lib/es/locale/pt-BR.js +1 -1
  42. package/lib/es/locale/ru-RU.js +1 -1
  43. package/lib/es/locale/sk-SK.js +1 -1
  44. package/lib/es/locale/vi-VN.js +1 -1
  45. package/lib/es/locale/zh-CN.js +1 -1
  46. package/lib/es/locale/zh-HK.js +1 -1
  47. package/lib/es/locale/zh-TW.js +1 -1
  48. package/lib/es/worker.js +1 -1
  49. package/lib/facade.js +1 -1
  50. package/lib/index.js +1 -1
  51. package/lib/locale/ar-SA.js +1 -1
  52. package/lib/locale/ca-ES.js +1 -1
  53. package/lib/locale/de-DE.js +1 -1
  54. package/lib/locale/en-US.js +1 -1
  55. package/lib/locale/es-ES.js +1 -1
  56. package/lib/locale/fa-IR.js +1 -1
  57. package/lib/locale/fr-FR.js +1 -1
  58. package/lib/locale/id-ID.js +1 -1
  59. package/lib/locale/it-IT.js +1 -1
  60. package/lib/locale/ja-JP.js +1 -1
  61. package/lib/locale/ko-KR.js +1 -1
  62. package/lib/locale/pl-PL.js +1 -1
  63. package/lib/locale/pt-BR.js +1 -1
  64. package/lib/locale/ru-RU.js +1 -1
  65. package/lib/locale/sk-SK.js +1 -1
  66. package/lib/locale/vi-VN.js +1 -1
  67. package/lib/locale/zh-CN.js +1 -1
  68. package/lib/locale/zh-HK.js +1 -1
  69. package/lib/locale/zh-TW.js +1 -1
  70. package/lib/types/facade/f-range.d.ts +16 -2
  71. package/lib/types/facade/f-record.d.ts +14 -0
  72. package/lib/types/facade/f-table.d.ts +3 -0
  73. package/lib/types/index.d.ts +0 -3
  74. package/lib/umd/facade.js +1 -1
  75. package/lib/umd/index.js +1 -1
  76. package/lib/umd/locale/ar-SA.js +1 -1
  77. package/lib/umd/locale/ca-ES.js +1 -1
  78. package/lib/umd/locale/de-DE.js +1 -1
  79. package/lib/umd/locale/en-US.js +1 -1
  80. package/lib/umd/locale/es-ES.js +1 -1
  81. package/lib/umd/locale/fa-IR.js +1 -1
  82. package/lib/umd/locale/fr-FR.js +1 -1
  83. package/lib/umd/locale/id-ID.js +1 -1
  84. package/lib/umd/locale/it-IT.js +1 -1
  85. package/lib/umd/locale/ja-JP.js +1 -1
  86. package/lib/umd/locale/ko-KR.js +1 -1
  87. package/lib/umd/locale/pl-PL.js +1 -1
  88. package/lib/umd/locale/pt-BR.js +1 -1
  89. package/lib/umd/locale/ru-RU.js +1 -1
  90. package/lib/umd/locale/sk-SK.js +1 -1
  91. package/lib/umd/locale/vi-VN.js +1 -1
  92. package/lib/umd/locale/zh-CN.js +1 -1
  93. package/lib/umd/locale/zh-HK.js +1 -1
  94. package/lib/umd/locale/zh-TW.js +1 -1
  95. package/lib/worker.js +1 -1
  96. package/package.json +10 -10
  97. package/lib/cjs/worker-BDigGzY4.js +0 -1
  98. package/lib/es/worker-1CbynS32.js +0 -1
  99. package/lib/worker-1CbynS32.js +0 -1
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x42cb2d=_0x4bdd;(function(_0x1076fc,_0x4b1d47){const _0x5aa408=_0x4bdd,_0x585dfb=_0x1076fc();while(!![]){try{const _0x21a686=-parseInt(_0x5aa408(0x179))/0x1+parseInt(_0x5aa408(0x280))/0x2+parseInt(_0x5aa408(0x18b))/0x3*(parseInt(_0x5aa408(0x215))/0x4)+parseInt(_0x5aa408(0x28f))/0x5+parseInt(_0x5aa408(0x1f0))/0x6*(-parseInt(_0x5aa408(0x183))/0x7)+-parseInt(_0x5aa408(0x1e7))/0x8*(-parseInt(_0x5aa408(0x184))/0x9)+-parseInt(_0x5aa408(0x267))/0xa;if(_0x21a686===_0x4b1d47)break;else _0x585dfb['push'](_0x585dfb['shift']());}catch(_0x4e3f6e){_0x585dfb['push'](_0x585dfb['shift']());}}}(_0x1281,0x676c2));import{ApplyBaseJson1Mutation as _0x178c24,BASE_TABLE_NAME_REQUIREMENTS as _0x2e61f6,BaseConditionalColorRuleUpdateType as _0x36384f,BaseEventSource as _0x220938,BaseHierarchyErrorCode as _0x1d94db,BatchCreateBaseRecordsCommand as _0x30ed55,BatchDeleteBaseRecordsCommand as _0x259e76,ChangeBaseFieldTypeCommand as _0x1d22f3,CreateBaseChildRecordCommand as _0x38016d,CreateBaseFieldCommand as _0x89725e,CreateBaseRecordCommand as _0x470e4e,CreateBaseTableCommand as _0x1d6ad3,CreateBaseViewCommand as _0x471b73,DeleteBaseFieldCommand as _0x14a5d6,DeleteBaseRecordCommand as _0x36855b,DeleteBaseTableCommand as _0x359c6b,DeleteBaseViewCommand as _0x3ddbc,DuplicateBaseRecordCommand as _0x328e28,IBaseProjectionService as _0x5da3e7,MoveBaseFieldCommand as _0x249bdd,MoveBaseHierarchyRecordCommand as _0x146970,MoveBaseViewCommand as _0x1f38e3,RenameBaseTableCommand as _0x47dfb5,RenameBaseViewCommand as _0x3f17b8,SetBaseNameCommand as _0x3cf18e,SetBasePermissionCommand as _0x28b4ab,SetBasePermissionsCommand as _0x1648f2,SetBaseRangeValuesCommand as _0x1fa9ec,SetBaseRecordValuesCommand as _0x54705e,SetBaseTableHierarchyFieldCommand as _0x71b3cc,SetBaseViewFieldOrderCommand as _0x3556fb,SetBaseViewFieldVisibleCommand as _0xc297cb,SetBaseViewFieldWidthCommand as _0x2dfde8,SetBaseViewFilterCommand as _0x95d2fe,SetBaseViewGroupCommand as _0x37eaa0,SetBaseViewSortCommand as _0x118bc9,UpdateBaseCellCommand as _0x50c883,UpdateBaseFieldCommand as _0x1ed29e,UpdateBaseRecordOrderCommand as _0x474036,UpdateBaseViewConditionalColorRulesCommand as _0x16d73a,UpdateBaseViewConfigCommand as _0x189b25,ValidateBaseFormulaCommand as _0x4ec7a3,buildBaseHierarchyIndex as _0x4aa1d4,canEditBaseTargets as _0x1c997c,copyBaseTableSnapshot as _0x4ca2a4,createUniqueBaseTableName as _0x242756,ensureBaseTableCellLayout as _0x240454,getActiveBaseHierarchyFieldIds as _0x1d243e,getBaseCellValue as _0x43d937,getBaseFieldPermissionObjectId as _0x12d38e,getBaseFormulaTableName as _0x7344c5,getBaseHierarchyDeletePromotions as _0x38e02b,getBasePermissionValue as _0x135be6,getBaseRecordPermissionObjectId as _0x48675a,getBaseTablePermissionObjectId as _0x50fcb8,getBaseViewPermissionObjectId as _0x3f6a97,getRecordLinkFieldConfig as _0x34bd1d,matchesBaseCondition as _0x17312a,parseRecordLinkIds as _0x46817c,resolveBaseHierarchyFieldId as _0x1d8e8c,resolveBaseRangeHierarchyPatches as _0x28902e,searchBaseTable as _0x4f0889,serializeRecordLinkIds as _0x12a947,validateBaseHierarchyRecordCreations as _0x3474ef,validateBaseHierarchyRecordPatches as _0x3495d4,validateBaseTableName as _0x17aac3,validateRecordLinkValue as _0x102940}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x2737b3,BaseConditionalColorOperator as _0x47fd54,BaseConditionalColorTarget as _0x3ea519,BaseConditionalDateMode as _0x756c91,BaseFieldType as _0x334db4,BaseFilterConjunction as _0x5a09a5,BaseFilterOperator as _0xf13532,BaseHierarchyInvalidReason as _0x125b1b,BaseRecordLinkRole as _0x50fcc1,BaseSortDirection as _0x42481e,BaseViewType as _0x2dedc2,CanceledError as _0x3f6a5c,ICommandService as _0x35296b,IPermissionService as _0x5ad99d,IResourceLoaderService as _0x180241,ImageSourceType as _0x3afc43,Inject as _0x18fc25,Injector as _0x7ee076,Tools as _0x537bdf,UniverInstanceType as _0xfc0289,createDefaultBaseTableSnapshot as _0x13ff92,generateRandomId as _0x4f9ee0}from'@univerjs/core';import*as _0x37c8e5 from'@univerjs/core/facade';import{FBaseInitialable as _0x3f2488,FEnum as _0x3c7e49,FEventName as _0x3e96b9,FUniver as _0x13f4e8}from'@univerjs/core/facade';import{UnitAction as _0x5323a9}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x5c4e67}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x3910b6,_0x5b70e7,_0xa0c3e1){const _0x1f0b13=_0x4bdd;this['_unitId']=_0x3910b6,this[_0x1f0b13(0x27d)]=_0x5b70e7,this['_permissionService']=_0xa0c3e1;}async[_0x42cb2d(0x2d6)](_0x59d711){const _0x6e2eeb=_0x42cb2d;return this['_commandService'][_0x6e2eeb(0x237)](_0x1648f2['id'],{'unitId':this[_0x6e2eeb(0x29b)],'changes':_0x59d711});}async[_0x42cb2d(0x2b9)](_0x589d31,_0x13fba5){const _0x614b72=_0x42cb2d;await this['_commandService'][_0x614b72(0x237)](_0x28b4ab['id'],{'unitId':this[_0x614b72(0x29b)],'objectId':this[_0x614b72(0x29b)],'action':_0x589d31,'value':_0x13fba5});}[_0x42cb2d(0x2c0)](_0x16fb9c){const _0x421e22=_0x42cb2d;return _0x135be6(this['_permissionService'],this[_0x421e22(0x29b)],this['_unitId'],_0x16fb9c);}async[_0x42cb2d(0x206)](_0x4bf1e5=!0x0){const _0x375b79=_0x42cb2d;await this[_0x375b79(0x27d)]['executeCommand'](_0x28b4ab['id'],{'unitId':this[_0x375b79(0x29b)],'objectId':this[_0x375b79(0x29b)],'action':_0x5323a9[_0x375b79(0x268)],'value':_0x4bf1e5});}async[_0x42cb2d(0x28a)](){const _0x155dff=_0x42cb2d;await this['_commandService'][_0x155dff(0x237)](_0x28b4ab['id'],{'unitId':this[_0x155dff(0x29b)],'objectId':this[_0x155dff(0x29b)],'action':_0x5323a9['Edit'],'value':!0x1});}['canEdit'](){const _0x53a307=_0x42cb2d;return _0x135be6(this[_0x53a307(0x2a5)],this['_unitId'],this[_0x53a307(0x29b)],_0x5323a9[_0x53a307(0x268)]);}},L=class{constructor(_0x57b5db,_0x13a82e,_0x63a8e1,_0x1702f8,_0x346dbb){const _0x4dea79=_0x42cb2d;this[_0x4dea79(0x29b)]=_0x57b5db,this[_0x4dea79(0x246)]=_0x13a82e,this[_0x4dea79(0x2b2)]=_0x63a8e1,this[_0x4dea79(0x27d)]=_0x1702f8,this[_0x4dea79(0x2a5)]=_0x346dbb;}async['setEditable'](_0x5d6b9f=!0x0){const _0x5881f2=_0x42cb2d;await this[_0x5881f2(0x27d)][_0x5881f2(0x237)](_0x28b4ab['id'],{'unitId':this['_unitId'],'objectId':this['_objectId'],'action':_0x5323a9[_0x5881f2(0x268)],'value':_0x5d6b9f});}async[_0x42cb2d(0x28a)](){const _0x496985=_0x42cb2d;await this[_0x496985(0x27d)][_0x496985(0x237)](_0x28b4ab['id'],{'unitId':this[_0x496985(0x29b)],'objectId':this[_0x496985(0x246)],'action':_0x5323a9[_0x496985(0x268)],'value':!0x1});}['canEdit'](){const _0xff5cf3=_0x42cb2d;return _0x1c997c(this[_0xff5cf3(0x2a5)],this['_unitId'],[...this[_0xff5cf3(0x2b2)],this['_objectId']]);}};function R(_0x13ad27,_0x2cfb21){return function(_0x2de135,_0x4ae055){_0x2cfb21(_0x2de135,_0x4ae055,_0x13ad27);};}function z(_0x82fd3e,_0x20301b,_0x57aef1,_0x1e653a){const _0x2d579f=_0x42cb2d;var _0x3aefb9=arguments[_0x2d579f(0x1b9)],_0x1703da=_0x3aefb9<0x3?_0x20301b:_0x1e653a===null?_0x1e653a=Object[_0x2d579f(0x29a)](_0x20301b,_0x57aef1):_0x1e653a,_0x5dcf95;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x2d579f(0x262))_0x1703da=Reflect[_0x2d579f(0x289)](_0x82fd3e,_0x20301b,_0x57aef1,_0x1e653a);else{for(var _0x1a7e0d=_0x82fd3e[_0x2d579f(0x1b9)]-0x1;_0x1a7e0d>=0x0;_0x1a7e0d--)(_0x5dcf95=_0x82fd3e[_0x1a7e0d])&&(_0x1703da=(_0x3aefb9<0x3?_0x5dcf95(_0x1703da):_0x3aefb9>0x3?_0x5dcf95(_0x20301b,_0x57aef1,_0x1703da):_0x5dcf95(_0x20301b,_0x57aef1))||_0x1703da);}return _0x3aefb9>0x3&&_0x1703da&&Object[_0x2d579f(0x187)](_0x20301b,_0x57aef1,_0x1703da),_0x1703da;}let B=class{constructor(_0x31e807,_0x16aed2,_0x4da8b3,_0x3d1f8e,_0x379fba){const _0x3df6af=_0x42cb2d;this['_base']=_0x31e807,this[_0x3df6af(0x1f9)]=_0x16aed2,this[_0x3df6af(0x29f)]=_0x4da8b3,this[_0x3df6af(0x27d)]=_0x3d1f8e,this[_0x3df6af(0x2a5)]=_0x379fba;}[_0x42cb2d(0x25a)](){return this['_fieldId'];}[_0x42cb2d(0x274)](){const _0x5a2ca5=_0x42cb2d;let _0x1bcd16=this[_0x5a2ca5(0x1f9)][_0x5a2ca5(0x25a)]();return new L(this[_0x5a2ca5(0x204)][_0x5a2ca5(0x25a)](),_0x12d38e(_0x1bcd16,this[_0x5a2ca5(0x29f)]),[_0x50fcb8(_0x1bcd16)],this[_0x5a2ca5(0x27d)],this[_0x5a2ca5(0x2a5)]);}['getField'](){const _0x549325=_0x42cb2d;return this[_0x549325(0x23f)]();}[_0x42cb2d(0x214)](){const _0x2b027d=_0x42cb2d;return this[_0x2b027d(0x23f)]()[_0x2b027d(0x1e8)];}[_0x42cb2d(0x1ae)](){return this['_getField']()['type'];}['getConfig'](){const _0x584239=_0x42cb2d;return this[_0x584239(0x23f)]()[_0x584239(0x22b)];}['getDefaultValue'](){const _0x174744=_0x42cb2d;return this[_0x174744(0x23f)]()['defaultValue'];}[_0x42cb2d(0x2d7)](){const _0x2e44f1=_0x42cb2d;return this[_0x2e44f1(0x23f)]()['description'];}[_0x42cb2d(0x20e)](){const _0x3ace17=_0x42cb2d;return!!this[_0x3ace17(0x23f)]()['readonly'];}[_0x42cb2d(0x174)](_0x58361e){const _0x40c0ab=_0x42cb2d;return this[_0x40c0ab(0x244)]({'name':_0x58361e});}[_0x42cb2d(0x285)](_0x3518aa,_0x4f5fea){const _0x280585=_0x42cb2d;return this[_0x280585(0x244)]({'config':_0x3518aa},_0x4f5fea);}['setDefaultValue'](_0x55d1cc){return this['update']({'defaultValue':_0x55d1cc});}['update'](_0x3cdc5a,_0x16092b){const _0x445f89=_0x42cb2d;let _0x51b644=this[_0x445f89(0x23f)]()[_0x445f89(0x235)];return(_0x3cdc5a['type']??_0x51b644)===_0x334db4[_0x445f89(0x1ca)]&&(Object['prototype'][_0x445f89(0x222)][_0x445f89(0x1bc)](_0x3cdc5a,'config')||_0x3cdc5a[_0x445f89(0x235)]===_0x334db4[_0x445f89(0x1ca)])&&!this[_0x445f89(0x27e)](_0x16092b)?!0x1:this[_0x445f89(0x27d)][_0x445f89(0x1ac)](_0x1ed29e['id'],{'unitId':this[_0x445f89(0x204)][_0x445f89(0x25a)](),'tableId':this['_table'][_0x445f89(0x25a)](),'fieldId':this[_0x445f89(0x29f)],'patch':_0x3cdc5a});}[_0x42cb2d(0x1f6)](_0x5ed279,_0x12f0bd={},_0x5717b5){const _0x5bccdc=_0x42cb2d;return _0x5ed279===_0x334db4[_0x5bccdc(0x1ca)]&&!this[_0x5bccdc(0x27e)](_0x5717b5)?!0x1:this[_0x5bccdc(0x27d)][_0x5bccdc(0x1ac)](_0x1d22f3['id'],{'unitId':this['_base'][_0x5bccdc(0x25a)](),'tableId':this[_0x5bccdc(0x1f9)]['getId'](),'fieldId':this[_0x5bccdc(0x29f)],'input':{'type':_0x5ed279,'config':_0x12f0bd}});}['delete'](){const _0x2186df=_0x42cb2d;return this['_commandService'][_0x2186df(0x1ac)](_0x14a5d6['id'],{'unitId':this['_base'][_0x2186df(0x25a)](),'tableId':this[_0x2186df(0x1f9)][_0x2186df(0x25a)](),'fieldId':this['_fieldId']});}[_0x42cb2d(0x181)](_0x141b6b){const _0x280496=_0x42cb2d;return this['_commandService']['syncExecuteCommand'](_0x249bdd['id'],{'unitId':this[_0x280496(0x204)][_0x280496(0x25a)](),'tableId':this[_0x280496(0x1f9)][_0x280496(0x25a)](),'fieldId':this[_0x280496(0x29f)],'target':_0x141b6b});}[_0x42cb2d(0x23f)](){const _0x395b99=_0x42cb2d;let _0x1d285d=this['_table'][_0x395b99(0x1d3)]()['fields'][this[_0x395b99(0x29f)]];if(!_0x1d285d)throw Error(_0x395b99(0x18c)+this[_0x395b99(0x29f)]+_0x395b99(0x209));return _0x1d285d;}[_0x42cb2d(0x27e)](_0x513168){const _0x1d1eca=_0x42cb2d;if(!_0x513168||!Array[_0x1d1eca(0x2b0)](_0x513168[_0x1d1eca(0x26d)]))return console[_0x1d1eca(0x197)](_0x1d1eca(0x2a6)),!0x1;if(_0x513168['externalReferences'][_0x1d1eca(0x1b9)]===0x0)return!0x0;let _0x2bb2dd=this[_0x1d1eca(0x27d)][_0x1d1eca(0x1ac)](_0x5c4e67['id'],{'unitId':this[_0x1d1eca(0x204)][_0x1d1eca(0x25a)](),'references':_0x513168[_0x1d1eca(0x26d)]});return _0x2bb2dd||console['warn'](_0x1d1eca(0x1b2)),_0x2bb2dd;}};B=z([R(0x3,_0x35296b),R(0x4,_0x5ad99d)],B);let ot=function(_0x503eed){const _0x301aa8=_0x42cb2d;return _0x503eed['Id']='id',_0x503eed[_0x301aa8(0x223)]=_0x301aa8(0x1e8),_0x503eed[_0x301aa8(0x27c)]=_0x301aa8(0x1c6),_0x503eed;}({});function _0x1281(){const _0x2ed703=['orderKey','getFieldById','getConditionalColorRules','_initBaseBeforeEvents','Facade','_getAttachmentField','setSort','createInstance','Invalid\x20attachment\x20at\x20index\x20','filter','field','mimeType','hidden','BaseSortDirection','getAllUnitsForType','getProjection','get','startColumn','_viewId','getId','sort','_resolveRecordIds','updatedAt','deleteTable','BaseRecordLinkRole','BaseTableCellValueChanged','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','function','parentRecordId','BaseEventSource','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','getPrimaryFieldId','7837580CfJYRI','Edit','table','_projectionService','object','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','externalReferences','getDescendants','_getView',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','tableOrder','UUID','_initialize','getPermission','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','map','Calendar','Failed\x20to\x20add\x20records','multiple','setAttachments','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','Auto','_commandService','_writeFormulaExternalReferences','startRow','1620866WqZWjy','[FBaseRange]:\x20table\x20does\x20not\x20exist.','entries','addConditionalColorRule','endRow','setConfig','Duplicate\x20Base\x20field\x20name:\x20','test','getColumn','decorate','setReadOnly','from','has','fields','UNIVER_BASE','3313420oqWaHx','views','getRecords','_tableId',',\x20max\x20columns:\x20','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','getSnapshot','every','Unsupported\x20Base\x20field\x20type\x20\x22','cancel',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','getOwnPropertyDescriptor','_unitId','fieldOrder','getParent','RecordLink','_fieldId','_getHierarchyIndex','createView','deleteConditionalColorRule','getGroup','clearConditionalColorRules','_permissionService','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','BaseHierarchyErrorCode','_initBaseAfterEvents','fieldSettings','getChildren','Gantt','getRecord','now','recordOrder','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isArray','value','_parentObjectIds','_collectDescendantIds','_baseUnitId','source','_getFieldIds','BeforeBaseTableRecordCreate','getActiveBase','setPoint','thumbnail','offset','getRange','Grid','getValues','BaseFieldKeyEnum','getPoint','rowId','[FRecord]:\x20field\x20\x22','onCommandExecuted','_getRecordLinkField','setLinkedRecordIds','BaseFilterConjunction','hierarchyChanges','prototype','fireEvent','Remote','delete','BaseTableCreated','slice','duplicate','setFilter','viewId','getDataRange','records','getViewById','[FRecord]:\x20record\x20\x22','custom','setObjectPermissions','getDescription','stringify','Kanban','setName','getPrimaryField','\x22\x20is\x20not\x20an\x20Attachment\x20field.','targetTableId','symbol','770206nMOnMA','BeforeBaseTableViewCreate','Failed\x20to\x20create\x20view\x20\x22','BaseViewType','direction','BaseHierarchyInvalidReason','[FBaseRange]:\x20values\x20size\x20','_univerInstanceService','move','width','7esYWzC','714546BmNQCm','_getRecord','\x22:\x20expected\x20an\x20array.','defineProperty','subtreeHeightByRecordId','unitId','readonly','3WzkOHy','[FField]:\x20field\x20\x22','disposeWithMe','URL','BaseTableFieldCreated','max','BeforeBaseTableCreate','recordId','string','createdAt','_baseTableId','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','warn','Clear','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','deleteRecords','includeRecords','regenerateViewIds','\x22\x20must\x20be\x20a\x20non-empty\x20string.','getAttachments','getNumColumns','Delete','BaseTableRecordCreated','addField','clear','getHierarchyFieldId',':\x20expected\x20an\x20object.','getSort','getCurrentUnitOfType','[FRecord]:\x20RecordLink\x20field\x20\x22','removeLinkedRecord','getTables','afterFieldId','syncExecuteCommand','AND','getType','tables','moveField',':\x20\x22','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','_range','_inject','\x22\x20has\x20invalid\x20config.','Invalid\x20Base\x20formula.','[FTable]:\x20table\x20\x22','view','length','registerEventHandler','Set','call','_getHierarchyEventContext','index','tableId','height','childrenByParentId','caseSensitive','addLinkedRecord','duplicateTable','BASE64','auto','default','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','commonExtend','Formula','deepClone','primaryFieldName','trim','boolean','BaseConditionalColorOperator','indexOf','getUnit','updateConfig','getTable','_getTable','insertTable','endColumn','reason','Failed\x20to\x20create\x20table\x20\x22','getNumRows','fieldKey','fieldIds','_fireBeforeHierarchyChange','push','addRecords','setFieldVisible','getUnitId','record','getFieldSettings','getRecordById','parentByRecordId','visibleCardFieldIds','[FRecord]:\x20invalid\x20RecordLink\x20value.','72VtxUAh','name','\x20exceeds\x20range\x20size\x20','Attachment','localeCompare','\x20for\x20field\x20\x22','deleteProperty','getViewByName','BaseFilterOperator','1455546eMBpzN','getFilter','\x20in\x20field\x20\x22','[FBase]:\x20invalid\x20table\x20name\x20\x22','BeforeBaseHierarchyChange','size','changeType','setConditionalColorRules','iterator','_table','[FBase]:\x20table\x20\x22','getLinkedRecordIds','Base\x20field\x20not\x20found:\x20','operator','params','matches','BaseHierarchyChanged','_injector','_prepareFormulaFieldReferences','BeforeBaseTableCellValueChange','_base','extend','setEditable','invalid','getFormulaName','\x22\x20does\x20not\x20exist.','includes','getView','primaryFieldId','recordIds','isReadonly','_assertInBounds','getTableId','getBase','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','getValue','getName','130040qWidrw',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','save','description','getRow','valid','getSchema','fieldId','base','values','setValue','find','getTableByName','hasOwnProperty','Name','getFields','setValues','number','\x22.\x20','beforeCommandExecuted','BaseTableViewCreated','BaseFieldType','config','viewOrder','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','getBaseId','_recordId','flatMap','Event','BeforeBaseTableFieldCreate','[FView]:\x20view\x20\x22','_resourceLoaderService','type','formula','executeCommand','FBase','notMatches','Gallery','setGroup','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','limit','group','_getField','rows','createUnit','getTableById','system','update','conditions','_objectId'];_0x1281=function(){return _0x2ed703;};return _0x1281();}function V(_0x26a73b){const _0xe86933=_0x42cb2d;return!!(_0x26a73b&&_0x26a73b[_0xe86933(0x243)]!==!0x0&&_0x26a73b[_0xe86933(0x235)]!==_0x334db4['RecordId']);}function H(_0x36ec40,_0x4918c3,_0x41457f='id'){const _0x1b13d2=_0x42cb2d;if(!_0x4918c3)return{};let _0x171423={};return Object[_0x1b13d2(0x282)](_0x4918c3)['forEach'](([_0x13e1d5,_0x54f0e7])=>{const _0x2e498a=_0x1b13d2;let _0x35073c=ct(_0x36ec40,_0x13e1d5,_0x41457f);_0x171423[_0x35073c]=st(_0x36ec40[_0x2e498a(0x28d)][_0x35073c],_0x54f0e7);}),_0x171423;}function st(_0x5d294b,_0x4f74bd){const _0x1234ab=_0x42cb2d;if((_0x5d294b==null?void 0x0:_0x5d294b[_0x1234ab(0x235)])!==_0x334db4[_0x1234ab(0x1ea)]||_0x4f74bd==null)return _0x4f74bd;if(!Array[_0x1234ab(0x2b0)](_0x4f74bd))throw TypeError(_0x1234ab(0x265)+_0x5d294b['name']+_0x1234ab(0x186));return _0x4f74bd[_0x1234ab(0x276)]((_0x28f947,_0x13a1b5)=>lt(_0x5d294b,_0x28f947,_0x13a1b5));}function ct(_0x2bc7bc,_0x4bff9c,_0x30126f){const _0x2f42f2=_0x42cb2d;if(_0x30126f==='id'||_0x30126f===_0x2f42f2(0x1c6)&&_0x2bc7bc[_0x2f42f2(0x28d)][_0x4bff9c])return _0x4bff9c;let _0x25147d=Object['values'](_0x2bc7bc['fields'])[_0x2f42f2(0x250)](_0x306172=>_0x306172[_0x2f42f2(0x1e8)]===_0x4bff9c);if(_0x25147d[_0x2f42f2(0x1b9)]===0x1)return _0x25147d[0x0]['id'];throw _0x25147d[_0x2f42f2(0x1b9)]>0x1?Error(_0x2f42f2(0x286)+_0x4bff9c):Error(_0x2f42f2(0x1fc)+_0x4bff9c);}function lt(_0x45c8b7,_0x631533,_0x33f90f){const _0x33b2c0=_0x42cb2d;let _0x365938=_0x33b2c0(0x24f)+_0x33f90f+_0x33b2c0(0x1ec)+_0x45c8b7[_0x33b2c0(0x1e8)]+'\x22';if(!ft(_0x631533))throw TypeError(_0x365938+_0x33b2c0(0x1a5));if('url'in _0x631533)throw TypeError(_0x365938+_0x33b2c0(0x216));if('type'in _0x631533)throw TypeError(_0x365938+_0x33b2c0(0x270));let _0x587bbf=U(_0x631533['id'],_0x365938,'id'),_0xecfbd=U(_0x631533[_0x33b2c0(0x1e8)],_0x365938,_0x33b2c0(0x1e8)),_0x387043=U(_0x631533[_0x33b2c0(0x2b5)],_0x365938,_0x33b2c0(0x2b5));return{'id':_0x587bbf,'name':_0xecfbd,'source':_0x387043,'sourceType':ut(_0x631533['sourceType'],_0x387043,_0x365938),...dt(_0x631533,_0x33b2c0(0x252),_0x365938),...W(_0x631533,_0x33b2c0(0x1f5),_0x365938),...W(_0x631533,_0x33b2c0(0x182),_0x365938),...W(_0x631533,_0x33b2c0(0x1c0),_0x365938),...dt(_0x631533,_0x33b2c0(0x2ba),_0x365938)};}function ut(_0x53a4ff,_0x38c863,_0x2b9c4a){const _0x4bd59c=_0x42cb2d;if(_0x53a4ff==null)return _0x38c863['startsWith']('data:')?_0x3afc43[_0x4bd59c(0x1c5)]:_0x3afc43[_0x4bd59c(0x18e)];if(_0x53a4ff===_0x3afc43[_0x4bd59c(0x18e)]||_0x53a4ff===_0x3afc43[_0x4bd59c(0x272)]||_0x53a4ff===_0x3afc43[_0x4bd59c(0x1c5)])return _0x53a4ff;throw TypeError(_0x2b9c4a+_0x4bd59c(0x299));}function U(_0x472949,_0x48a52f,_0x30697e){const _0x1ab262=_0x42cb2d;if(typeof _0x472949!=_0x1ab262(0x193)||!_0x472949[_0x1ab262(0x1cd)]())throw TypeError(_0x48a52f+':\x20\x22'+_0x30697e+_0x1ab262(0x19d));return _0x472949;}function dt(_0x3ca3c9,_0x2e9c43,_0x422a29){const _0x1244a2=_0x42cb2d;let _0x232bd6=_0x3ca3c9[_0x2e9c43];if(_0x232bd6==null)return{};if(typeof _0x232bd6!='string'||!_0x232bd6[_0x1244a2(0x1cd)]())throw TypeError(_0x422a29+':\x20\x22'+_0x2e9c43+_0x1244a2(0x23c));return{[_0x2e9c43]:_0x232bd6};}function W(_0x3eafce,_0x52caf9,_0x45afba){const _0x58ae4f=_0x42cb2d;let _0xba559c=_0x3eafce[_0x52caf9];if(_0xba559c==null)return{};if(typeof _0xba559c!=_0x58ae4f(0x226)||!Number['isFinite'](_0xba559c)||_0xba559c<0x0)throw TypeError(_0x45afba+_0x58ae4f(0x1b1)+_0x52caf9+_0x58ae4f(0x212));return{[_0x52caf9]:_0xba559c};}function ft(_0x28a42e){const _0x1fc442=_0x42cb2d;return typeof _0x28a42e==_0x1fc442(0x26b)&&!!_0x28a42e&&!Array[_0x1fc442(0x2b0)](_0x28a42e);}var G;let K=G=class{constructor(_0x2e717f,_0x1547af,_0x503659,_0x339bc1,_0x18ffbc){const _0xc91a58=_0x42cb2d;this[_0xc91a58(0x204)]=_0x2e717f,this[_0xc91a58(0x1f9)]=_0x1547af,this[_0xc91a58(0x1b3)]=_0x503659,this[_0xc91a58(0x1b4)]=_0x339bc1,this[_0xc91a58(0x27d)]=_0x18ffbc,this[_0xc91a58(0x20f)]();}[_0x42cb2d(0x22e)](){const _0x5b8482=_0x42cb2d;return this['_base'][_0x5b8482(0x25a)]();}[_0x42cb2d(0x210)](){const _0x4c4042=_0x42cb2d;return this[_0x4c4042(0x1f9)][_0x4c4042(0x25a)]();}[_0x42cb2d(0x2bc)](){const _0x208af5=_0x42cb2d;return{...this[_0x208af5(0x1b3)]};}[_0x42cb2d(0x219)](){const _0x4cede8=_0x42cb2d;return this[_0x4cede8(0x1b3)][_0x4cede8(0x27f)];}[_0x42cb2d(0x288)](){const _0x577828=_0x42cb2d;return this[_0x577828(0x1b3)][_0x577828(0x258)];}['getNumRows'](){const _0x2ca9d3=_0x42cb2d;return this[_0x2ca9d3(0x1b3)][_0x2ca9d3(0x284)]-this[_0x2ca9d3(0x1b3)]['startRow']+0x1;}['getNumColumns'](){const _0x3dd349=_0x42cb2d;return this['_range'][_0x3dd349(0x1d6)]-this['_range']['startColumn']+0x1;}[_0x42cb2d(0x2be)](){const _0x1fca08=_0x42cb2d;let _0x2341e8=this[_0x1fca08(0x1d4)](),_0x42bbe3=this[_0x1fca08(0x2b6)](_0x2341e8),_0x54569d=[];for(let _0x5d74ee=this[_0x1fca08(0x1b3)]['startRow'];_0x5d74ee<=this[_0x1fca08(0x1b3)]['endRow'];_0x5d74ee++){var _0x4d5205;let _0x2b8cb8=(_0x4d5205=_0x2341e8[_0x1fca08(0x2c1)])==null?void 0x0:_0x4d5205[_0x5d74ee],_0x20a338=[];for(let _0x107f5e=this[_0x1fca08(0x1b3)][_0x1fca08(0x258)];_0x107f5e<=this[_0x1fca08(0x1b3)][_0x1fca08(0x1d6)];_0x107f5e++){let _0x17a9e6=_0x42bbe3[_0x107f5e];_0x20a338[_0x1fca08(0x1dd)](_0x2b8cb8&&_0x17a9e6?_0x43d937(_0x2341e8,_0x2b8cb8,_0x17a9e6):null);}_0x54569d[_0x1fca08(0x1dd)](_0x20a338);}return _0x54569d;}['getValue'](){var _0x28e6b0;return((_0x28e6b0=this['getValues']()[0x0])==null?void 0x0:_0x28e6b0[0x0])??null;}[_0x42cb2d(0x21f)](_0x19bbb0){const _0x48d597=_0x42cb2d;return this[_0x48d597(0x225)]([[_0x19bbb0]]);}[_0x42cb2d(0x225)](_0x4d13df){const _0xa3d1f2=_0x42cb2d;let _0x3f10b5=this[_0xa3d1f2(0x1d9)](),_0x1476a5=this[_0xa3d1f2(0x19f)]();if(_0x4d13df[_0xa3d1f2(0x1b9)]>_0x3f10b5||_0x4d13df['some'](_0x4f3963=>_0x4f3963[_0xa3d1f2(0x1b9)]>_0x1476a5)){var _0x1e3ae4;throw Error(_0xa3d1f2(0x17f)+_0x4d13df['length']+'x'+(((_0x1e3ae4=_0x4d13df[0x0])==null?void 0x0:_0x1e3ae4['length'])??0x0)+_0xa3d1f2(0x1e9)+_0x3f10b5+'x'+_0x1476a5+'.');}let _0x464d3e=this[_0xa3d1f2(0x1d4)](),_0x35ba30=this['_getFieldIds'](_0x464d3e),_0x1414d9=_0x4d13df[_0xa3d1f2(0x230)]((_0x195372,_0x597d9b)=>_0x195372[_0xa3d1f2(0x276)]((_0x525f7a,_0x18cdbc)=>{const _0x43811d=_0xa3d1f2;var _0x1d1a87;let _0xf0153d=this['_range'][_0x43811d(0x27f)]+_0x597d9b,_0x1ee2de=_0x35ba30[this[_0x43811d(0x1b3)][_0x43811d(0x258)]+_0x18cdbc],_0x2bcf72=(_0x1d1a87=_0x464d3e[_0x43811d(0x2c1)])==null?void 0x0:_0x1d1a87[_0xf0153d];if(!_0x1ee2de||!_0x2bcf72)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x2bcf72,'fieldId':_0x1ee2de,'value':_0x525f7a};}));return this['_commandService'][_0xa3d1f2(0x1ac)](_0x1fa9ec['id'],{'unitId':this[_0xa3d1f2(0x204)][_0xa3d1f2(0x25a)](),'tableId':this['_table'][_0xa3d1f2(0x25a)](),'patches':_0x1414d9,'source':_0x220938[_0xa3d1f2(0x24b)]});}[_0x42cb2d(0x1a3)](){const _0x4ab3f0=_0x42cb2d;return this['setValues'](Array[_0x4ab3f0(0x28b)]({'length':this['getNumRows']()},()=>Array[_0x4ab3f0(0x28b)]({'length':this[_0x4ab3f0(0x19f)]()},()=>null)));}['offset'](_0x6ddc23,_0x4d03c1,_0x4fc2a5=this['getNumRows'](),_0x3103d=this[_0x42cb2d(0x19f)]()){const _0x1199a7=_0x42cb2d;return this['_inject']['createInstance'](G,this['_base'],this['_table'],{'startRow':this[_0x1199a7(0x1b3)][_0x1199a7(0x27f)]+_0x6ddc23,'startColumn':this[_0x1199a7(0x1b3)][_0x1199a7(0x258)]+_0x4d03c1,'endRow':this[_0x1199a7(0x1b3)]['startRow']+_0x6ddc23+_0x4fc2a5-0x1,'endColumn':this[_0x1199a7(0x1b3)][_0x1199a7(0x258)]+_0x4d03c1+_0x3103d-0x1},this['_inject']);}[_0x42cb2d(0x1d4)](){const _0x342bb1=_0x42cb2d;let _0x2bed35=this['_table'][_0x342bb1(0x1d3)]();if(!_0x2bed35)throw Error(_0x342bb1(0x281));return _0x240454(_0x2bed35);}[_0x42cb2d(0x20f)](){const _0x11ffff=_0x42cb2d;var _0x40bbc4;let _0x301c6f=this[_0x11ffff(0x1d4)](),_0x3daee7=((_0x40bbc4=_0x301c6f[_0x11ffff(0x2ae)])==null?void 0x0:_0x40bbc4[_0x11ffff(0x1b9)])??0x0,_0x363cbc=this[_0x11ffff(0x2b6)](_0x301c6f)[_0x11ffff(0x1b9)];if(this[_0x11ffff(0x1b3)]['startRow']<0x0||this['_range'][_0x11ffff(0x258)]<0x0||this['_range'][_0x11ffff(0x284)]<this[_0x11ffff(0x1b3)][_0x11ffff(0x27f)]||this['_range'][_0x11ffff(0x1d6)]<this['_range'][_0x11ffff(0x258)]||this[_0x11ffff(0x1b3)][_0x11ffff(0x284)]>=Math['max'](_0x3daee7,0x1)||this['_range'][_0x11ffff(0x1d6)]>=Math[_0x11ffff(0x190)](_0x363cbc,0x1))throw Error(_0x11ffff(0x26c)+_0x3daee7+_0x11ffff(0x293)+_0x363cbc+',\x20range:\x20'+JSON[_0x11ffff(0x172)](this[_0x11ffff(0x1b3)])+'.');}[_0x42cb2d(0x2b6)](_0x38f945){const _0x47ebd1=_0x42cb2d;return _0x38f945[_0x47ebd1(0x29c)][_0x47ebd1(0x250)](_0x535059=>V(_0x38f945[_0x47ebd1(0x28d)][_0x535059]));}};K=G=z([R(0x4,_0x35296b)],K);function q(_0x1baa2b){'@babel/helpers - typeof';const _0xdf8382=_0x42cb2d;return q=typeof Symbol==_0xdf8382(0x262)&&typeof Symbol[_0xdf8382(0x1f8)]==_0xdf8382(0x178)?function(_0x1c4e37){return typeof _0x1c4e37;}:function(_0x238500){const _0x50a878=_0xdf8382;return _0x238500&&typeof Symbol==_0x50a878(0x262)&&_0x238500['constructor']===Symbol&&_0x238500!==Symbol[_0x50a878(0x2c8)]?_0x50a878(0x178):typeof _0x238500;},q(_0x1baa2b);}function pt(_0x34d75e,_0x198ddb){const _0x41e2d9=_0x42cb2d;if(q(_0x34d75e)!=_0x41e2d9(0x26b)||!_0x34d75e)return _0x34d75e;var _0x13c8ea=_0x34d75e[Symbol['toPrimitive']];if(_0x13c8ea!==void 0x0){var _0x2224f5=_0x13c8ea[_0x41e2d9(0x1bc)](_0x34d75e,_0x198ddb||_0x41e2d9(0x1c7));if(q(_0x2224f5)!=_0x41e2d9(0x26b))return _0x2224f5;throw TypeError(_0x41e2d9(0x2af));}return(_0x198ddb===_0x41e2d9(0x193)?String:Number)(_0x34d75e);}function mt(_0x280636){const _0x4a038f=_0x42cb2d;var _0x4f3370=pt(_0x280636,_0x4a038f(0x193));return q(_0x4f3370)==_0x4a038f(0x178)?_0x4f3370:_0x4f3370+'';}function ht(_0x5c9347,_0x2361b8,_0x2807c1){const _0x526df3=_0x42cb2d;return(_0x2361b8=mt(_0x2361b8))in _0x5c9347?Object[_0x526df3(0x187)](_0x5c9347,_0x2361b8,{'value':_0x2807c1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c9347[_0x2361b8]=_0x2807c1,_0x5c9347;}var J;let Y=J=class extends _0x3f2488{constructor(_0x638bc7,_0x3637e5,_0x189404,_0x5341e7,_0x46494d,_0x43c28e){const _0x225267=_0x42cb2d;super(_0x5341e7),this[_0x225267(0x204)]=_0x638bc7,this[_0x225267(0x1f9)]=_0x3637e5,this[_0x225267(0x22f)]=_0x189404,this[_0x225267(0x201)]=_0x5341e7,this[_0x225267(0x27d)]=_0x46494d,this[_0x225267(0x2a5)]=_0x43c28e,ht(this,_0x225267(0x2b4),void 0x0),ht(this,_0x225267(0x195),void 0x0),this[_0x225267(0x2b4)]=_0x638bc7[_0x225267(0x25a)](),this['_baseTableId']=_0x3637e5['getId']();}['getBaseFacade'](){const _0x15b713=_0x42cb2d;return this[_0x15b713(0x204)];}['getTableFacade'](){const _0x2af711=_0x42cb2d;return this[_0x2af711(0x1f9)];}['getId'](){const _0x302794=_0x42cb2d;return this[_0x302794(0x22f)];}[_0x42cb2d(0x274)](){const _0x2ff90f=_0x42cb2d;let _0x3b7151=this['_table']['getId']();return new L(this[_0x2ff90f(0x204)][_0x2ff90f(0x25a)](),_0x48675a(_0x3b7151,this[_0x2ff90f(0x22f)]),[_0x50fcb8(_0x3b7151)],this[_0x2ff90f(0x27d)],this[_0x2ff90f(0x2a5)]);}[_0x42cb2d(0x2ac)](){const _0x5357b8=_0x42cb2d;return{...this[_0x5357b8(0x185)](),'values':this[_0x5357b8(0x2be)]()};}[_0x42cb2d(0x213)](_0x59fbf5){const _0x36f075=_0x42cb2d;return V(this[_0x36f075(0x1f9)][_0x36f075(0x1d3)]()[_0x36f075(0x28d)][_0x59fbf5])?this[_0x36f075(0x185)]()[_0x36f075(0x21e)][_0x59fbf5]??null:null;}[_0x42cb2d(0x2be)](){const _0x246cde=_0x42cb2d;let _0x1cdaae=this[_0x246cde(0x1f9)]['getTable']();return Object['fromEntries'](Object['entries'](this[_0x246cde(0x185)]()['values'])[_0x246cde(0x250)](([_0x56b4c4])=>V(_0x1cdaae[_0x246cde(0x28d)][_0x56b4c4])));}[_0x42cb2d(0x21f)](_0x402d69,_0x290e9f){const _0x1dc3b6=_0x42cb2d;let _0x5485b3=this[_0x1dc3b6(0x1f9)][_0x1dc3b6(0x1d3)]()[_0x1dc3b6(0x28d)][_0x402d69];return this[_0x1dc3b6(0x27d)][_0x1dc3b6(0x1ac)](_0x50c883['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x1dc3b6(0x1f9)][_0x1dc3b6(0x25a)](),'recordId':this[_0x1dc3b6(0x22f)],'fieldId':_0x402d69,'value':st(_0x5485b3,_0x290e9f),'source':_0x220938[_0x1dc3b6(0x24b)]});}[_0x42cb2d(0x27a)](_0x53d43f,_0x2c87cf){const _0x165ea0=_0x42cb2d;return this[_0x165ea0(0x21f)](_0x53d43f,_0x2c87cf[_0x165ea0(0x276)](_0x10f1d3=>({..._0x10f1d3})));}[_0x42cb2d(0x19e)](_0x67fa0b){const _0x322769=_0x42cb2d;this['_getAttachmentField'](_0x67fa0b);let _0x17f825=this['getValue'](_0x67fa0b);return Array[_0x322769(0x2b0)](_0x17f825)?_0x17f825[_0x322769(0x276)]((_0x1ce133,_0x1f0145)=>_t(_0x1ce133,_0x67fa0b,_0x1f0145)):[];}['deleteAttachments'](_0x37cfa2,_0x14162b){const _0x36d32d=_0x42cb2d;this[_0x36d32d(0x24c)](_0x37cfa2);let _0x1eb066=new Set(_0x14162b[_0x36d32d(0x276)](_0x8d8bf5=>_0x8d8bf5['id']));if(!_0x1eb066[_0x36d32d(0x1f5)])return!0x0;let _0x5ec5b4=this[_0x36d32d(0x19e)](_0x37cfa2),_0x216067=_0x5ec5b4[_0x36d32d(0x250)](_0x338db4=>!_0x1eb066['has'](_0x338db4['id']));return _0x216067[_0x36d32d(0x1b9)]===_0x5ec5b4[_0x36d32d(0x1b9)]||this[_0x36d32d(0x27a)](_0x37cfa2,_0x216067);}[_0x42cb2d(0x225)](_0xe25c0,_0x436d87='id'){const _0x4524b6=_0x42cb2d;let _0x17222a=this[_0x4524b6(0x1f9)][_0x4524b6(0x1d3)](),_0x2cfdef=[{'recordId':this['_recordId'],'values':H(_0x17222a,_0xe25c0,_0x436d87)}];return this[_0x4524b6(0x27d)][_0x4524b6(0x1ac)](_0x54705e['id'],{'unitId':this['_base'][_0x4524b6(0x25a)](),'tableId':this[_0x4524b6(0x1f9)][_0x4524b6(0x25a)](),'patches':_0x2cfdef,'source':_0x220938[_0x4524b6(0x24b)]});}[_0x42cb2d(0x2cb)](){const _0x21e14a=_0x42cb2d;return this['_commandService'][_0x21e14a(0x1ac)](_0x36855b['id'],{'unitId':this[_0x21e14a(0x204)][_0x21e14a(0x25a)](),'tableId':this[_0x21e14a(0x1f9)][_0x21e14a(0x25a)](),'recordId':this[_0x21e14a(0x22f)],'source':_0x220938[_0x21e14a(0x24b)]});}[_0x42cb2d(0x2ce)](_0x3e11e2){const _0x127d39=_0x42cb2d;let _0x559e1c={...this[_0x127d39(0x185)](),..._0x3e11e2,'id':_0x4f9ee0(0x6)};_0x559e1c[_0x127d39(0x21e)]={..._0x559e1c[_0x127d39(0x21e)],..._0x3e11e2==null?void 0x0:_0x3e11e2['values']},Reflect[_0x127d39(0x1ed)](_0x559e1c[_0x127d39(0x21e)],_0x2737b3);let _0x482fff=Date[_0x127d39(0x2ad)]();if(_0x559e1c[_0x127d39(0x247)]||=''+_0x482fff,_0x559e1c[_0x127d39(0x194)]||=_0x482fff,_0x559e1c['updatedAt']||=_0x482fff,!this['_commandService']['syncExecuteCommand'](_0x328e28['id'],{'unitId':this[_0x127d39(0x204)][_0x127d39(0x25a)](),'tableId':this[_0x127d39(0x1f9)][_0x127d39(0x25a)](),'sourceRecordId':this[_0x127d39(0x22f)],'record':_0x559e1c,'source':_0x220938['Facade']}))throw Error(_0x127d39(0x275)+this[_0x127d39(0x22f)]+'\x22.');return this['_injector']['createInstance'](J,this[_0x127d39(0x204)],this['_table'],_0x559e1c['id'],this[_0x127d39(0x201)]);}['setOrderKey'](_0x31c512){const _0x3b82d4=_0x42cb2d;return this[_0x3b82d4(0x27d)]['syncExecuteCommand'](_0x474036['id'],{'unitId':this['_base'][_0x3b82d4(0x25a)](),'tableId':this[_0x3b82d4(0x1f9)][_0x3b82d4(0x25a)](),'recordId':this[_0x3b82d4(0x22f)],'orderKey':_0x31c512});}['getLinkedRecordIds'](_0x21315f){const _0x251f97=_0x42cb2d;let _0x1d5ea7=this[_0x251f97(0x2c4)](_0x21315f),_0x195a11=this[_0x251f97(0x213)](_0x1d5ea7['id']);return _0x46817c(_0x195a11);}[_0x42cb2d(0x2c5)](_0x4c7b2a,_0x427852){const _0x201e16=_0x42cb2d;let _0x408aef=this[_0x201e16(0x2c4)](_0x4c7b2a),_0x596c0d=_0x12a947(_0x427852),_0x4aa4b3=_0x102940(this[_0x201e16(0x204)]['getBase']()[_0x201e16(0x295)](),_0x408aef,_0x596c0d);if(!_0x4aa4b3[_0x201e16(0x21a)])throw Error(_0x4aa4b3[_0x201e16(0x1d7)]??_0x201e16(0x1e6));return this[_0x201e16(0x27d)][_0x201e16(0x1ac)](_0x50c883['id'],{'unitId':this[_0x201e16(0x204)][_0x201e16(0x25a)](),'tableId':this[_0x201e16(0x1f9)][_0x201e16(0x25a)](),'recordId':this[_0x201e16(0x22f)],'fieldId':_0x4c7b2a,'value':_0x596c0d,'source':_0x220938[_0x201e16(0x24b)]});}[_0x42cb2d(0x1c3)](_0x116e89,_0x159f82){const _0x253fc2=_0x42cb2d;let _0x37d1f3=this[_0x253fc2(0x2c4)](_0x116e89),_0x624201=_0x34bd1d(_0x37d1f3);if(!_0x624201)throw Error(_0x253fc2(0x1a8)+_0x116e89+_0x253fc2(0x1b5));let _0xc417dd=this[_0x253fc2(0x1fb)](_0x116e89);return _0x624201['multiple']&&_0xc417dd['includes'](_0x159f82)?!0x0:this[_0x253fc2(0x2c5)](_0x116e89,_0x624201['multiple']?[..._0xc417dd,_0x159f82]:[_0x159f82]);}[_0x42cb2d(0x1a9)](_0x3b4237,_0x3b10bb){const _0x525b22=_0x42cb2d;let _0x4a504c=this[_0x525b22(0x1fb)](_0x3b4237);return!_0x4a504c[_0x525b22(0x20a)](_0x3b10bb)||this[_0x525b22(0x2c5)](_0x3b4237,_0x4a504c[_0x525b22(0x250)](_0x55a550=>_0x55a550!==_0x3b10bb));}[_0x42cb2d(0x29d)](_0x5863a2){const _0x2e1031=_0x42cb2d;let _0x65c01=this[_0x2e1031(0x2a0)](_0x5863a2)[_0x2e1031(0x1e4)][_0x2e1031(0x257)](this[_0x2e1031(0x22f)])??null;return _0x65c01?this[_0x2e1031(0x1f9)][_0x2e1031(0x1e3)](_0x65c01):null;}[_0x42cb2d(0x2aa)](_0x1c1caf){const _0x3b6c06=_0x42cb2d;return(this[_0x3b6c06(0x2a0)](_0x1c1caf)[_0x3b6c06(0x1c1)][_0x3b6c06(0x257)](this[_0x3b6c06(0x22f)])??[])[_0x3b6c06(0x230)](_0x4338c1=>{const _0x59d631=_0x3b6c06;let _0xf0b908=this['_table'][_0x59d631(0x1e3)](_0x4338c1);return _0xf0b908?[_0xf0b908]:[];});}['getAncestors'](_0x2f78c1){const _0x1e3e35=_0x42cb2d;let _0x49b1de=this[_0x1e3e35(0x2a0)](_0x2f78c1),_0x2c50e9=[],_0x21f751=_0x49b1de[_0x1e3e35(0x1e4)][_0x1e3e35(0x257)](this[_0x1e3e35(0x22f)])??null;for(;_0x21f751;){let _0x36b687=this[_0x1e3e35(0x1f9)]['getRecordById'](_0x21f751);_0x36b687&&_0x2c50e9['push'](_0x36b687),_0x21f751=_0x49b1de['parentByRecordId'][_0x1e3e35(0x257)](_0x21f751)??null;}return _0x2c50e9;}[_0x42cb2d(0x26e)](_0x5ac9d7){const _0x376213=_0x42cb2d;let _0x1a623c=this[_0x376213(0x2a0)](_0x5ac9d7),_0x2d9b21=_0x1a623c['orderedRecordIds'][_0x376213(0x1d0)](this[_0x376213(0x22f)]),_0x3d1c52=_0x1a623c[_0x376213(0x188)][_0x376213(0x28c)](this['_recordId'])?this[_0x376213(0x2b3)](_0x1a623c['childrenByParentId'],this[_0x376213(0x22f)]):[];return _0x2d9b21<0x0?[]:_0x3d1c52[_0x376213(0x230)](_0x4922b4=>{const _0x2bd080=_0x376213;let _0x3a5f10=this[_0x2bd080(0x1f9)][_0x2bd080(0x1e3)](_0x4922b4);return _0x3a5f10?[_0x3a5f10]:[];});}['setParent'](_0x4842cf,_0x55f66e,_0x5210fb){const _0x1ea76d=_0x42cb2d;return this['_commandService']['syncExecuteCommand'](_0x146970['id'],{'unitId':this[_0x1ea76d(0x204)]['getId'](),'tableId':this[_0x1ea76d(0x1f9)][_0x1ea76d(0x25a)](),'fieldId':_0x4842cf,'recordId':this[_0x1ea76d(0x22f)],'parentRecordId':_0x55f66e,'orderKey':_0x5210fb,'source':_0x220938['Facade']});}['addChild'](_0x581ebe,_0x1d3d57,_0xe95b8a='id',_0x325efa){const _0x3fd996=_0x42cb2d;let _0x525420=this[_0x3fd996(0x1f9)][_0x3fd996(0x1d3)](),_0x5d7986=Date[_0x3fd996(0x2ad)](),_0x28e448={..._0x325efa,'id':_0x4f9ee0(0x6),'values':H(_0x525420,_0x1d3d57,_0xe95b8a),'orderKey':(_0x325efa==null?void 0x0:_0x325efa['orderKey'])||''+_0x5d7986,'createdAt':(_0x325efa==null?void 0x0:_0x325efa[_0x3fd996(0x194)])||_0x5d7986,'updatedAt':(_0x325efa==null?void 0x0:_0x325efa['updatedAt'])||_0x5d7986};if(!this[_0x3fd996(0x27d)][_0x3fd996(0x1ac)](_0x38016d['id'],{'unitId':this[_0x3fd996(0x204)]['getId'](),'tableId':this[_0x3fd996(0x1f9)][_0x3fd996(0x25a)](),'fieldId':_0x581ebe,'parentRecordId':this['_recordId'],'record':_0x28e448,'source':_0x220938['Facade']}))throw Error(_0x3fd996(0x22d)+this[_0x3fd996(0x22f)]+'\x22.');return this[_0x3fd996(0x201)][_0x3fd996(0x24e)](J,this[_0x3fd996(0x204)],this[_0x3fd996(0x1f9)],_0x28e448['id'],this[_0x3fd996(0x201)]);}[_0x42cb2d(0x2a0)](_0x412124){const _0x2f60d7=_0x42cb2d;return _0x4aa1d4(this[_0x2f60d7(0x1f9)][_0x2f60d7(0x1d3)](),_0x412124);}[_0x42cb2d(0x2b3)](_0x5bafde,_0x636cfc){let _0x474cc1=[],_0x53cec5=_0x28a743=>{const _0x1f91a6=_0x4bdd;for(let _0x3ecba2 of _0x5bafde[_0x1f91a6(0x257)](_0x28a743)??[])_0x474cc1[_0x1f91a6(0x1dd)](_0x3ecba2),_0x53cec5(_0x3ecba2);};return _0x53cec5(_0x636cfc),_0x474cc1;}[_0x42cb2d(0x185)](){const _0x23593f=_0x42cb2d;let _0x2f6ad4=this[_0x23593f(0x1f9)]['getTable']()[_0x23593f(0x2d2)][this[_0x23593f(0x22f)]];if(!_0x2f6ad4)throw Error(_0x23593f(0x2d4)+this[_0x23593f(0x22f)]+_0x23593f(0x209));return _0x2f6ad4;}[_0x42cb2d(0x2c4)](_0xba6523){const _0x5df64c=_0x42cb2d;let _0x288581=this[_0x5df64c(0x1f9)][_0x5df64c(0x1d3)]()[_0x5df64c(0x28d)][_0xba6523];if(!_0x288581||_0x288581['type']!==_0x334db4[_0x5df64c(0x29e)])throw Error('[FRecord]:\x20field\x20\x22'+_0xba6523+_0x5df64c(0x1c8));return _0x288581;}[_0x42cb2d(0x24c)](_0x3ac7f2){const _0xd74f16=_0x42cb2d;let _0x40193a=this[_0xd74f16(0x1f9)][_0xd74f16(0x1d3)]()[_0xd74f16(0x28d)][_0x3ac7f2];if(!_0x40193a||_0x40193a[_0xd74f16(0x235)]!==_0x334db4[_0xd74f16(0x1ea)])throw Error(_0xd74f16(0x2c2)+_0x3ac7f2+_0xd74f16(0x176));return _0x40193a;}};Y=J=z([R(0x4,_0x35296b),R(0x5,_0x5ad99d)],Y);function gt(_0x4e5d4b){const _0x117234=_0x42cb2d;return!!(_0x4e5d4b&&typeof _0x4e5d4b==_0x117234(0x26b)&&'id'in _0x4e5d4b&&typeof _0x4e5d4b['id']==_0x117234(0x193)&&_0x117234(0x1e8)in _0x4e5d4b&&typeof _0x4e5d4b[_0x117234(0x1e8)]==_0x117234(0x193));}function _t(_0x3477f1,_0x4835d3,_0x2e5231){const _0x20bda8=_0x42cb2d;if(!gt(_0x3477f1))throw Error('[FRecord]:\x20attachment\x20at\x20index\x20'+_0x2e5231+_0x20bda8(0x1f2)+_0x4835d3+'\x22\x20is\x20invalid.');return{..._0x3477f1};}let X=class{constructor(_0x4a76c0,_0x4e36ec,_0xad9bf1,_0x10464e,_0x561d7a,_0x553bfc,_0x238ad1){const _0x2a66bb=_0x42cb2d;this[_0x2a66bb(0x204)]=_0x4a76c0,this[_0x2a66bb(0x1f9)]=_0x4e36ec,this[_0x2a66bb(0x259)]=_0xad9bf1,this[_0x2a66bb(0x201)]=_0x10464e,this['_commandService']=_0x561d7a,this['_permissionService']=_0x553bfc,this[_0x2a66bb(0x26a)]=_0x238ad1;}[_0x42cb2d(0x25a)](){const _0x2bf69a=_0x42cb2d;return this[_0x2bf69a(0x259)];}[_0x42cb2d(0x274)](){const _0x3856e2=_0x42cb2d;let _0x3712aa=this[_0x3856e2(0x1f9)]['getId']();return new L(this['_base'][_0x3856e2(0x25a)](),_0x3f6a97(_0x3712aa,this[_0x3856e2(0x259)]),[_0x50fcb8(_0x3712aa)],this[_0x3856e2(0x27d)],this[_0x3856e2(0x2a5)]);}[_0x42cb2d(0x20b)](){const _0x161019=_0x42cb2d;return this[_0x161019(0x26f)]();}[_0x42cb2d(0x214)](){const _0x30767e=_0x42cb2d;return this[_0x30767e(0x26f)]()[_0x30767e(0x1e8)];}['getType'](){const _0x3d2348=_0x42cb2d;return this[_0x3d2348(0x26f)]()['type'];}[_0x42cb2d(0x174)](_0x5bdf48){const _0x5c4ce6=_0x42cb2d;return this['_commandService'][_0x5c4ce6(0x1ac)](_0x3f17b8['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x5c4ce6(0x1f9)][_0x5c4ce6(0x25a)](),'viewId':this[_0x5c4ce6(0x259)],'name':_0x5bdf48});}['getConfig'](){const _0x442ce8=_0x42cb2d;let _0x3661e4=this['getType'](),_0x56b278=this[_0x442ce8(0x26f)]()['config'];switch(_0x3661e4){case _0x2dedc2[_0x442ce8(0x2bd)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x173)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x277)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x2ab)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x23a)]:return _0x56b278;default:return _0x56b278;}}[_0x42cb2d(0x1d2)](_0x2c1a9c){const _0x393e80=_0x42cb2d;return this[_0x393e80(0x27d)]['syncExecuteCommand'](_0x189b25['id'],{'unitId':this[_0x393e80(0x204)]['getId'](),'tableId':this['_table'][_0x393e80(0x25a)](),'viewId':this[_0x393e80(0x259)],'patch':_0x2c1a9c});}[_0x42cb2d(0x249)](){const _0x2f1478=_0x42cb2d;var _0x14adc2;return _0x537bdf['deepClone'](((_0x14adc2=this[_0x2f1478(0x26f)]()[_0x2f1478(0x22b)]['conditionalColoring'])==null?void 0x0:_0x14adc2['rules'])??[]);}[_0x42cb2d(0x1f7)](_0x36c100){const _0x109134=_0x42cb2d;return this[_0x109134(0x27d)][_0x109134(0x1ac)](_0x16d73a['id'],{'unitId':this[_0x109134(0x204)][_0x109134(0x25a)](),'tableId':this['_table'][_0x109134(0x25a)](),'viewId':this['_viewId'],'type':_0x36384f[_0x109134(0x1bb)],'rules':_0x36c100});}[_0x42cb2d(0x283)](_0x5145a9){const _0x6e3f27=_0x42cb2d;return this[_0x6e3f27(0x27d)][_0x6e3f27(0x1ac)](_0x16d73a['id'],{'unitId':this[_0x6e3f27(0x204)][_0x6e3f27(0x25a)](),'tableId':this[_0x6e3f27(0x1f9)][_0x6e3f27(0x25a)](),'viewId':this[_0x6e3f27(0x259)],'type':_0x36384f['Add'],'rule':_0x5145a9});}[_0x42cb2d(0x2a2)](_0x24c4c9){const _0x3a1132=_0x42cb2d;return this[_0x3a1132(0x27d)][_0x3a1132(0x1ac)](_0x16d73a['id'],{'unitId':this['_base'][_0x3a1132(0x25a)](),'tableId':this[_0x3a1132(0x1f9)]['getId'](),'viewId':this[_0x3a1132(0x259)],'type':_0x36384f[_0x3a1132(0x1a0)],'ruleId':_0x24c4c9});}[_0x42cb2d(0x2a4)](){const _0x24e85e=_0x42cb2d;return this['_commandService'][_0x24e85e(0x1ac)](_0x16d73a['id'],{'unitId':this['_base'][_0x24e85e(0x25a)](),'tableId':this[_0x24e85e(0x1f9)]['getId'](),'viewId':this[_0x24e85e(0x259)],'type':_0x36384f[_0x24e85e(0x198)]});}[_0x42cb2d(0x1f1)](){const _0x2a1c5e=_0x42cb2d;return this[_0x2a1c5e(0x26f)]()[_0x2a1c5e(0x250)]??null;}[_0x42cb2d(0x2cf)](_0x1e4990){const _0x2d9658=_0x42cb2d;return this[_0x2d9658(0x27d)][_0x2d9658(0x1ac)](_0x95d2fe['id'],{'unitId':this[_0x2d9658(0x204)][_0x2d9658(0x25a)](),'tableId':this[_0x2d9658(0x1f9)][_0x2d9658(0x25a)](),'viewId':this['_viewId'],'filter':_0x1e4990});}[_0x42cb2d(0x1a6)](){const _0x32b1dd=_0x42cb2d;return this[_0x32b1dd(0x26f)]()[_0x32b1dd(0x25b)]??[];}[_0x42cb2d(0x24d)](_0x268899){const _0x27c527=_0x42cb2d;return this[_0x27c527(0x27d)][_0x27c527(0x1ac)](_0x118bc9['id'],{'unitId':this[_0x27c527(0x204)][_0x27c527(0x25a)](),'tableId':this[_0x27c527(0x1f9)][_0x27c527(0x25a)](),'viewId':this['_viewId'],'sort':_0x268899});}[_0x42cb2d(0x2a3)](){const _0x2d71fe=_0x42cb2d;return this[_0x2d71fe(0x26f)]()[_0x2d71fe(0x23e)]??[];}[_0x42cb2d(0x23b)](_0xe009c5){const _0x9596f2=_0x42cb2d;return this[_0x9596f2(0x27d)][_0x9596f2(0x1ac)](_0x37eaa0['id'],{'unitId':this[_0x9596f2(0x204)][_0x9596f2(0x25a)](),'tableId':this[_0x9596f2(0x1f9)][_0x9596f2(0x25a)](),'viewId':this[_0x9596f2(0x259)],'group':_0xe009c5});}[_0x42cb2d(0x1e2)](_0x37deef){const _0x2ae57b=_0x42cb2d;var _0x2e0260;return V(this['_table']['getTable']()[_0x2ae57b(0x28d)][_0x37deef])?((_0x2e0260=this[_0x2ae57b(0x26f)]()['fieldSettings'])==null?void 0x0:_0x2e0260[_0x37deef])??{}:{};}['getVisibleFields'](){const _0x50ac5f=_0x42cb2d;let _0x3760e3=this[_0x50ac5f(0x1f9)][_0x50ac5f(0x1d3)](),_0xe8a7fd=this[_0x50ac5f(0x26f)]();return(_0xe8a7fd['fieldOrder']??_0x3760e3[_0x50ac5f(0x29c)])[_0x50ac5f(0x250)](_0x587338=>{const _0x101b40=_0x50ac5f;var _0x4419b5;let _0x39a2a7=_0x3760e3[_0x101b40(0x28d)][_0x587338];return V(_0x39a2a7)&&!((_0x4419b5=_0xe8a7fd[_0x101b40(0x2a9)])!=null&&(_0x4419b5=_0x4419b5[_0x587338])!=null&&_0x4419b5[_0x101b40(0x253)]);})['map'](_0x1a95e6=>this[_0x50ac5f(0x201)][_0x50ac5f(0x24e)](B,this[_0x50ac5f(0x204)],this['_table'],_0x1a95e6));}[_0x42cb2d(0x1df)](_0x6e7a36,_0x3113e2){const _0x1f2f87=_0x42cb2d;return V(this[_0x1f2f87(0x1f9)][_0x1f2f87(0x1d3)]()[_0x1f2f87(0x28d)][_0x6e7a36])?this[_0x1f2f87(0x27d)][_0x1f2f87(0x1ac)](_0xc297cb['id'],{'unitId':this[_0x1f2f87(0x204)][_0x1f2f87(0x25a)](),'tableId':this[_0x1f2f87(0x1f9)]['getId'](),'viewId':this[_0x1f2f87(0x259)],'fieldId':_0x6e7a36,'visible':_0x3113e2}):!0x1;}['setFieldWidth'](_0x5448e2,_0x39bb42){const _0x2e1628=_0x42cb2d;return V(this['_table'][_0x2e1628(0x1d3)]()[_0x2e1628(0x28d)][_0x5448e2])?this[_0x2e1628(0x27d)][_0x2e1628(0x1ac)](_0x2dfde8['id'],{'unitId':this[_0x2e1628(0x204)][_0x2e1628(0x25a)](),'tableId':this[_0x2e1628(0x1f9)][_0x2e1628(0x25a)](),'viewId':this[_0x2e1628(0x259)],'fieldId':_0x5448e2,'width':_0x39bb42}):!0x1;}[_0x42cb2d(0x1b0)](_0x37b055,_0x35644f){const _0x2889f3=_0x42cb2d;let _0x9a6a90=this[_0x2889f3(0x1f9)]['getTable'](),_0x154074=_0x35644f['beforeFieldId']??_0x35644f[_0x2889f3(0x1ab)];return!V(_0x9a6a90['fields'][_0x37b055])||!_0x154074||!V(_0x9a6a90[_0x2889f3(0x28d)][_0x154074])?!0x1:this[_0x2889f3(0x27d)][_0x2889f3(0x1ac)](_0x3556fb['id'],{'unitId':this[_0x2889f3(0x204)][_0x2889f3(0x25a)](),'tableId':this[_0x2889f3(0x1f9)]['getId'](),'viewId':this['_viewId'],'fieldId':_0x37b055,'target':_0x35644f});}[_0x42cb2d(0x181)](_0x5ca92e){const _0x1a73c9=_0x42cb2d;return this[_0x1a73c9(0x27d)]['syncExecuteCommand'](_0x1f38e3['id'],{'unitId':this[_0x1a73c9(0x204)][_0x1a73c9(0x25a)](),'tableId':this[_0x1a73c9(0x1f9)][_0x1a73c9(0x25a)](),'viewId':this[_0x1a73c9(0x259)],'target':_0x5ca92e});}[_0x42cb2d(0x2cb)](){const _0x18194f=_0x42cb2d;return this[_0x18194f(0x27d)]['syncExecuteCommand'](_0x3ddbc['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table']['getId'](),'viewId':this[_0x18194f(0x259)]});}[_0x42cb2d(0x256)](){const _0x5c8e0a=_0x42cb2d;return this[_0x5c8e0a(0x26a)]['getProjection'](this[_0x5c8e0a(0x204)][_0x5c8e0a(0x211)]()[_0x5c8e0a(0x295)](),this[_0x5c8e0a(0x1f9)][_0x5c8e0a(0x25a)](),this[_0x5c8e0a(0x259)]);}[_0x42cb2d(0x26f)](){const _0x4e9c75=_0x42cb2d;let _0x5628dc=this[_0x4e9c75(0x1f9)][_0x4e9c75(0x1d3)]()[_0x4e9c75(0x290)][this[_0x4e9c75(0x259)]];if(!_0x5628dc)throw Error(_0x4e9c75(0x233)+this['_viewId']+'\x22\x20does\x20not\x20exist.');return _0x5628dc;}};X=z([R(0x4,_0x35296b),R(0x5,_0x5ad99d),R(0x6,_0x5da3e7)],X);let Z=class{constructor(_0x80f5bb,_0x18fcd9,_0x1b7e81,_0xa5c16d,_0x185bd3,_0x22ff3e){const _0x5cac41=_0x42cb2d;this[_0x5cac41(0x204)]=_0x80f5bb,this['_tableId']=_0x18fcd9,this['_injector']=_0x1b7e81,this[_0x5cac41(0x27d)]=_0xa5c16d,this[_0x5cac41(0x2a5)]=_0x185bd3,this[_0x5cac41(0x26a)]=_0x22ff3e;}['getBase'](){const _0xb2b14c=_0x42cb2d;return this[_0xb2b14c(0x204)][_0xb2b14c(0x211)]();}['getTable'](){const _0x579cf3=_0x42cb2d;return this[_0x579cf3(0x1d4)]();}[_0x42cb2d(0x25a)](){const _0x514b96=_0x42cb2d;return this[_0x514b96(0x292)];}['getPermission'](){const _0x5db8f4=_0x42cb2d;return new L(this[_0x5db8f4(0x211)]()['getUnitId'](),_0x50fcb8(this[_0x5db8f4(0x292)]),[],this[_0x5db8f4(0x27d)],this[_0x5db8f4(0x2a5)]);}[_0x42cb2d(0x1a4)](){const _0x15811c=_0x42cb2d;return _0x1d8e8c(this[_0x15811c(0x1d4)]());}['setHierarchyField'](_0x556039){const _0x36928e=_0x42cb2d;return this[_0x36928e(0x27d)]['syncExecuteCommand'](_0x71b3cc['id'],{'unitId':this[_0x36928e(0x204)][_0x36928e(0x25a)](),'tableId':this[_0x36928e(0x292)],'fieldId':_0x556039});}[_0x42cb2d(0x214)](){const _0x733378=_0x42cb2d;return this['_getTable']()[_0x733378(0x1e8)];}[_0x42cb2d(0x208)](){const _0x3c00b6=_0x42cb2d;let _0x3c3729=this[_0x3c00b6(0x204)][_0x3c00b6(0x211)]()[_0x3c00b6(0x295)]();return _0x7344c5(this[_0x3c00b6(0x1d4)](),_0x3c3729);}[_0x42cb2d(0x174)](_0x47f832){const _0x42c379=_0x42cb2d;let _0x588570=_0x17aac3(this[_0x42c379(0x204)][_0x42c379(0x211)]()[_0x42c379(0x295)](),_0x47f832,this[_0x42c379(0x292)]);if(!_0x588570['valid'])throw Error(_0x42c379(0x261)+_0x47f832+_0x42c379(0x227)+_0x2e61f6+'\x20'+_0x588570[_0x42c379(0x1d7)]);return this[_0x42c379(0x27d)][_0x42c379(0x1ac)](_0x47dfb5['id'],{'unitId':this[_0x42c379(0x204)][_0x42c379(0x25a)](),'tableId':this['_tableId'],'name':_0x47f832});}['search'](_0x2e8ca3,_0x35b41e){const _0x32fcd7=_0x42cb2d;let _0x4e6dbb=this[_0x32fcd7(0x204)][_0x32fcd7(0x211)]()[_0x32fcd7(0x295)](),_0x12fde8=this[_0x32fcd7(0x1d4)]();if(_0x35b41e){let _0x4dd418=this['_projectionService']['getProjection'](_0x4e6dbb,this[_0x32fcd7(0x292)],_0x35b41e),_0x19958f=_0x12fde8['views'][_0x35b41e],_0x479340=_0x2e8ca3[_0x32fcd7(0x1db)]??Tt(_0x12fde8,_0x19958f,_0x4dd418),_0x291ffa=_0x32fcd7(0x240)in _0x4dd418&&Array[_0x32fcd7(0x2b0)](_0x4dd418['rows'])?_0x4dd418[_0x32fcd7(0x240)]:[];return _0x4f0889({..._0x2e8ca3,'table':_0x12fde8,'fieldIds':_0x479340,'rows':_0x291ffa});}let _0x106534=(_0x12fde8[_0x32fcd7(0x2ae)]?_0x12fde8['recordOrder'][_0x32fcd7(0x276)](_0x3cc06f=>_0x12fde8[_0x32fcd7(0x2d2)][_0x3cc06f]):Object['values'](_0x12fde8[_0x32fcd7(0x2d2)])[_0x32fcd7(0x25b)]((_0x491f26,_0x3e6f5b)=>_0x491f26[_0x32fcd7(0x247)]['localeCompare'](_0x3e6f5b[_0x32fcd7(0x247)])))[_0x32fcd7(0x250)](_0x3d4707=>_0x3d4707)[_0x32fcd7(0x276)](_0x2ae147=>({'recordId':_0x2ae147['id'],'values':_0x2ae147[_0x32fcd7(0x21e)]})),_0x9d5e7d=_0x2e8ca3['fieldIds']??_0x12fde8[_0x32fcd7(0x29c)][_0x32fcd7(0x250)](_0x565f1e=>V(_0x12fde8[_0x32fcd7(0x28d)][_0x565f1e]));return _0x4f0889({..._0x2e8ca3,'table':_0x12fde8,'fieldIds':_0x9d5e7d,'rows':_0x106534});}[_0x42cb2d(0x266)](){const _0xcd4a73=_0x42cb2d;return this['_getTable']()[_0xcd4a73(0x20c)];}[_0x42cb2d(0x224)](){const _0x445177=_0x42cb2d;let _0x407e97=this[_0x445177(0x1d4)]();return _0x407e97['fieldOrder'][_0x445177(0x276)](_0x3ea043=>_0x407e97[_0x445177(0x28d)][_0x3ea043])['filter'](V)['map'](_0x55cdb7=>this['_injector']['createInstance'](B,this[_0x445177(0x204)],this,_0x55cdb7['id']));}['getFieldById'](_0x84c8e2){const _0x40a0dc=_0x42cb2d;let _0x3c5246=this[_0x40a0dc(0x1d4)]()['fields'][_0x84c8e2];return V(_0x3c5246)?this[_0x40a0dc(0x201)][_0x40a0dc(0x24e)](B,this[_0x40a0dc(0x204)],this,_0x3c5246['id']):null;}['getFieldByName'](_0x156bb3){const _0x43fab=_0x42cb2d;let _0x3ec8bf=this[_0x43fab(0x1d4)]()[_0x43fab(0x28d)],_0x2deaf3=Object[_0x43fab(0x21e)](_0x3ec8bf)[_0x43fab(0x220)](_0x18173e=>V(_0x18173e)&&_0x18173e[_0x43fab(0x1e8)]===_0x156bb3);return _0x2deaf3?this[_0x43fab(0x201)]['createInstance'](B,this['_base'],this,_0x2deaf3['id']):null;}[_0x42cb2d(0x175)](){const _0x4e13fd=_0x42cb2d;let _0x50fbd0=this[_0x4e13fd(0x1d4)]()[_0x4e13fd(0x20c)];return this[_0x4e13fd(0x201)]['createInstance'](B,this[_0x4e13fd(0x204)],this,_0x50fbd0);}[_0x42cb2d(0x1a2)](_0x72ae9e,_0x352ea3,_0x5eef85){const _0x1ddcbc=_0x42cb2d;var _0x3f1e40,_0x30e669;if(!Object['values'](_0x334db4)['some'](_0x302688=>_0x302688===_0x352ea3))throw Error(_0x1ddcbc(0x297)+String(_0x352ea3)+'\x22.');if(_0x352ea3===_0x334db4[_0x1ddcbc(0x1ca)]&&this[_0x1ddcbc(0x202)](_0x72ae9e,_0x5eef85),_0x352ea3===_0x334db4[_0x1ddcbc(0x29e)]&&(typeof(_0x5eef85==null||(_0x3f1e40=_0x5eef85[_0x1ddcbc(0x251)])==null||(_0x3f1e40=_0x3f1e40['config'])==null?void 0x0:_0x3f1e40[_0x1ddcbc(0x177)])!=_0x1ddcbc(0x193)||typeof _0x5eef85[_0x1ddcbc(0x251)][_0x1ddcbc(0x22b)][_0x1ddcbc(0x279)]!=_0x1ddcbc(0x1ce)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x1edd51={..._0x5eef85==null?void 0x0:_0x5eef85[_0x1ddcbc(0x251)],'id':_0x4f9ee0(0x6),'name':_0x72ae9e,'type':_0x352ea3,'config':(_0x5eef85==null||(_0x30e669=_0x5eef85[_0x1ddcbc(0x251)])==null?void 0x0:_0x30e669['config'])??{}};if(!this['_commandService'][_0x1ddcbc(0x1ac)](_0x89725e['id'],{'unitId':this[_0x1ddcbc(0x204)]['getId'](),'tableId':this[_0x1ddcbc(0x292)],'field':_0x1edd51,'index':_0x5eef85==null?void 0x0:_0x5eef85[_0x1ddcbc(0x1be)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x72ae9e+'\x22');return this[_0x1ddcbc(0x201)][_0x1ddcbc(0x24e)](B,this[_0x1ddcbc(0x204)],this,_0x1edd51['id']);}[_0x42cb2d(0x202)](_0x3d410e,_0x41d5ca){const _0x36142b=_0x42cb2d;var _0x5d197a;if(!_0x41d5ca||!('externalReferences'in _0x41d5ca)||!Array[_0x36142b(0x2b0)](_0x41d5ca['externalReferences']))throw Error(_0x36142b(0x196));let _0xa61f9b=this[_0x36142b(0x27d)][_0x36142b(0x1ac)](_0x4ec7a3['id'],{'unitId':this[_0x36142b(0x204)]['getId'](),'tableId':this['_tableId'],'formula':String(((_0x5d197a=_0x41d5ca[_0x36142b(0x251)])==null||(_0x5d197a=_0x5d197a[_0x36142b(0x22b)])==null?void 0x0:_0x5d197a[_0x36142b(0x236)])??'')});if(!_0xa61f9b['valid'])throw Error(_0xa61f9b['reason']??_0x36142b(0x1b6));if(_0x41d5ca[_0x36142b(0x26d)][_0x36142b(0x1b9)]>0x0&&!this[_0x36142b(0x27d)][_0x36142b(0x1ac)](_0x5c4e67['id'],{'unitId':this[_0x36142b(0x204)]['getId'](),'references':_0x41d5ca['externalReferences']}))throw Error(_0x36142b(0x294)+_0x3d410e+'\x22');}[_0x42cb2d(0x291)](){const _0xd3e9fb=_0x42cb2d;return this['_resolveRecordIds']()[_0xd3e9fb(0x276)](_0xe40d9e=>this[_0xd3e9fb(0x201)][_0xd3e9fb(0x24e)](Y,this['_base'],this,_0xe40d9e,this[_0xd3e9fb(0x201)]));}[_0x42cb2d(0x1e3)](_0x2e91d6){const _0x179df2=_0x42cb2d;return this[_0x179df2(0x1d4)]()['records'][_0x2e91d6]?this[_0x179df2(0x201)]['createInstance'](Y,this[_0x179df2(0x204)],this,_0x2e91d6,this[_0x179df2(0x201)]):null;}['queryRecords'](_0x29717f={}){const _0x15de20=_0x42cb2d;let _0x18f59f=this[_0x15de20(0x1d4)](),_0x5722b6=this['_resolveRecordIds'](_0x29717f),_0x3d61b8=Math[_0x15de20(0x190)](0x0,_0x29717f['offset']??0x0),_0x1dbeed=_0x29717f[_0x15de20(0x23d)]==null?null:Math['max'](0x0,_0x29717f[_0x15de20(0x23d)]),_0x4a0043=yt(_0x5722b6[_0x15de20(0x276)](_0x168067=>_0x18f59f[_0x15de20(0x2d2)][_0x168067])[_0x15de20(0x250)](_0x18e299=>xt(_0x18e299,_0x18f59f,_0x29717f[_0x15de20(0x250)])),_0x18f59f,_0x29717f[_0x15de20(0x25b)]);return{'records':vt(_0x4a0043,_0x29717f)[_0x15de20(0x276)](_0x1332ec=>this[_0x15de20(0x201)]['createInstance'](Y,this[_0x15de20(0x204)],this,_0x1332ec['id'],this[_0x15de20(0x201)])),'total':_0x4a0043[_0x15de20(0x1b9)],'offset':_0x3d61b8,'limit':_0x1dbeed,'hasMore':_0x1dbeed!=null&&_0x3d61b8+_0x1dbeed<_0x4a0043['length']};}['addRecord'](_0x9980f7,_0x4f64e4='id',_0x2188ab){const _0x38113c=_0x42cb2d;let _0x5ad9f6=this[_0x38113c(0x1d4)](),_0xf304e6=Date[_0x38113c(0x2ad)](),_0x2e79ed={..._0x2188ab,'id':_0x4f9ee0(0x6),'values':H(_0x5ad9f6,_0x9980f7,_0x4f64e4),'orderKey':(_0x2188ab==null?void 0x0:_0x2188ab['orderKey'])||''+_0xf304e6,'createdAt':(_0x2188ab==null?void 0x0:_0x2188ab[_0x38113c(0x194)])||_0xf304e6,'updatedAt':(_0x2188ab==null?void 0x0:_0x2188ab[_0x38113c(0x25d)])||_0xf304e6};if(!this[_0x38113c(0x27d)]['syncExecuteCommand'](_0x470e4e['id'],{'unitId':this[_0x38113c(0x204)][_0x38113c(0x25a)](),'tableId':this[_0x38113c(0x292)],'record':_0x2e79ed,'source':_0x220938[_0x38113c(0x24b)]}))throw Error(_0x38113c(0x27b)+_0x2e79ed['id']+'\x22');return this['_injector'][_0x38113c(0x24e)](Y,this['_base'],this,_0x2e79ed['id'],this['_injector']);}[_0x42cb2d(0x1de)](_0xebe596){const _0x1874c1=_0x42cb2d;if(!_0xebe596[_0x1874c1(0x1b9)])return[];let _0x34376d=this[_0x1874c1(0x1d4)](),_0x23af18=Date[_0x1874c1(0x2ad)](),_0x2d605c=_0xebe596['map']((_0x354a81,_0x445284)=>{const _0xeb9a2b=_0x1874c1;var _0x48537c,_0x378882,_0x245301;return{..._0x354a81[_0xeb9a2b(0x1e1)],'id':_0x4f9ee0(0x6),'values':H(_0x34376d,_0x354a81['values'],_0x354a81[_0xeb9a2b(0x1da)]??'id'),'orderKey':((_0x48537c=_0x354a81[_0xeb9a2b(0x1e1)])==null?void 0x0:_0x48537c[_0xeb9a2b(0x247)])||''+(_0x23af18+_0x445284),'createdAt':((_0x378882=_0x354a81[_0xeb9a2b(0x1e1)])==null?void 0x0:_0x378882[_0xeb9a2b(0x194)])||_0x23af18,'updatedAt':((_0x245301=_0x354a81['record'])==null?void 0x0:_0x245301[_0xeb9a2b(0x25d)])||_0x23af18};});if(!this['_commandService']['syncExecuteCommand'](_0x30ed55['id'],{'unitId':this[_0x1874c1(0x204)][_0x1874c1(0x25a)](),'tableId':this[_0x1874c1(0x292)],'records':_0x2d605c,'source':_0x220938[_0x1874c1(0x24b)]}))throw Error(_0x1874c1(0x278));return _0x2d605c[_0x1874c1(0x276)](_0x1056a5=>this['_injector'][_0x1874c1(0x24e)](Y,this[_0x1874c1(0x204)],this,_0x1056a5['id'],this[_0x1874c1(0x201)]));}[_0x42cb2d(0x19a)](_0x57e139){const _0x3a0975=_0x42cb2d;return!_0x57e139[_0x3a0975(0x1b9)]||this[_0x3a0975(0x27d)][_0x3a0975(0x1ac)](_0x259e76['id'],{'unitId':this[_0x3a0975(0x204)][_0x3a0975(0x25a)](),'tableId':this['_tableId'],'recordIds':_0x57e139,'source':_0x220938[_0x3a0975(0x24b)]});}['getRange'](_0x8d8eb9,_0x2b7435,_0x3e6610=0x1,_0x41fa14=0x1){const _0x54001f=_0x42cb2d;return this['_injector'][_0x54001f(0x24e)](K,this[_0x54001f(0x204)],this,{'startRow':_0x8d8eb9,'endRow':_0x8d8eb9+_0x3e6610-0x1,'startColumn':_0x2b7435,'endColumn':_0x2b7435+_0x41fa14-0x1},this[_0x54001f(0x201)]);}[_0x42cb2d(0x2d1)](){const _0x1554aa=_0x42cb2d;var _0x2d526a;let _0x1d0e05=_0x240454(this[_0x1554aa(0x1d4)]()),_0x2e54b3=((_0x2d526a=_0x1d0e05[_0x1554aa(0x2ae)])==null?void 0x0:_0x2d526a[_0x1554aa(0x1b9)])??0x0,_0x4f6b2b=_0x1d0e05[_0x1554aa(0x29c)][_0x1554aa(0x250)](_0xfc249d=>V(_0x1d0e05[_0x1554aa(0x28d)][_0xfc249d]))[_0x1554aa(0x1b9)];return this[_0x1554aa(0x2bc)](0x0,0x0,Math['max'](_0x2e54b3,0x1),Math[_0x1554aa(0x190)](_0x4f6b2b,0x1));}['getViews'](){const _0xe46a05=_0x42cb2d;let _0x1d590a=this['_getTable']();return _0x1d590a[_0xe46a05(0x22c)][_0xe46a05(0x250)](_0x3b231a=>_0x1d590a[_0xe46a05(0x290)][_0x3b231a])[_0xe46a05(0x276)](_0x3782a4=>this[_0xe46a05(0x201)][_0xe46a05(0x24e)](X,this[_0xe46a05(0x204)],this,_0x3782a4,this[_0xe46a05(0x201)]));}[_0x42cb2d(0x2d3)](_0x5b4b18){const _0xef8d87=_0x42cb2d;return this['_getTable']()[_0xef8d87(0x290)][_0x5b4b18]?this[_0xef8d87(0x201)][_0xef8d87(0x24e)](X,this[_0xef8d87(0x204)],this,_0x5b4b18,this['_injector']):null;}[_0x42cb2d(0x1ee)](_0x541321){const _0x5bc91f=_0x42cb2d;let _0x45d392=this[_0x5bc91f(0x1d4)](),_0x559372=Object['values'](_0x45d392[_0x5bc91f(0x290)])['find'](_0x38e5cb=>_0x38e5cb[_0x5bc91f(0x1e8)]===_0x541321);return _0x559372?this[_0x5bc91f(0x201)][_0x5bc91f(0x24e)](X,this[_0x5bc91f(0x204)],this,_0x559372['id'],this['_injector']):null;}[_0x42cb2d(0x2a1)](_0x1cbe00,_0x48031d,_0x1abb2f){const _0x74a241=_0x42cb2d;var _0x334cfd,_0x4d3a06,_0x26a649,_0x52d818;let _0x3d36c9=this[_0x74a241(0x1d4)](),_0x40a17d=(_0x1abb2f==null||(_0x334cfd=_0x1abb2f['view'])==null?void 0x0:_0x334cfd[_0x74a241(0x29c)])??_0x3d36c9['fieldOrder'],_0x34e6fe=[_0x2737b3,..._0x40a17d[_0x74a241(0x250)](_0x48aec1=>V(_0x3d36c9[_0x74a241(0x28d)][_0x48aec1]))],_0x54381a={..._0x1abb2f==null?void 0x0:_0x1abb2f[_0x74a241(0x1b8)],'id':_0x4f9ee0(0x6),'name':_0x1cbe00,'type':_0x48031d,'tableId':this[_0x74a241(0x292)],'config':(_0x1abb2f==null||(_0x4d3a06=_0x1abb2f[_0x74a241(0x1b8)])==null?void 0x0:_0x4d3a06[_0x74a241(0x22b)])??{},'fieldOrder':_0x34e6fe,'fieldSettings':{..._0x1abb2f==null||(_0x26a649=_0x1abb2f[_0x74a241(0x1b8)])==null?void 0x0:_0x26a649['fieldSettings'],[_0x2737b3]:{..._0x1abb2f==null||(_0x52d818=_0x1abb2f[_0x74a241(0x1b8)])==null||(_0x52d818=_0x52d818[_0x74a241(0x2a9)])==null?void 0x0:_0x52d818[_0x2737b3],'hidden':!0x0}}};if(!this[_0x74a241(0x27d)][_0x74a241(0x1ac)](_0x471b73['id'],{'unitId':this[_0x74a241(0x204)][_0x74a241(0x25a)](),'tableId':this[_0x74a241(0x292)],'view':_0x54381a,'index':_0x1abb2f==null?void 0x0:_0x1abb2f['index']}))throw Error(_0x74a241(0x17b)+_0x1cbe00+'\x22');return this[_0x74a241(0x201)][_0x74a241(0x24e)](X,this[_0x74a241(0x204)],this,_0x54381a['id'],this['_injector']);}[_0x42cb2d(0x21b)](){const _0x4b77e6=_0x42cb2d;let _0x4f4ea0=this[_0x4b77e6(0x1d4)](),_0xeac47d=_0x4f4ea0[_0x4b77e6(0x29c)]['filter'](_0xced9f4=>V(_0x4f4ea0[_0x4b77e6(0x28d)][_0xced9f4])),_0x254fff=_0x4f4ea0[_0x4b77e6(0x22c)]['filter'](_0x1fea3a=>_0x4f4ea0[_0x4b77e6(0x290)][_0x1fea3a]);return{'id':_0x4f4ea0['id'],'name':_0x4f4ea0[_0x4b77e6(0x1e8)],'formulaName':this['getFormulaName'](),'primaryFieldId':_0x4f4ea0[_0x4b77e6(0x20c)],'fieldIds':_0xeac47d,'viewIds':_0x254fff,'recordCount':this[_0x4b77e6(0x25c)]()[_0x4b77e6(0x1b9)],'fields':_0xeac47d[_0x4b77e6(0x276)](_0x1bbee3=>{const _0x5dbea0=_0x4b77e6;let _0x5dd2c1=_0x4f4ea0[_0x5dbea0(0x28d)][_0x1bbee3];return{'id':_0x5dd2c1['id'],'name':_0x5dd2c1[_0x5dbea0(0x1e8)],'type':_0x5dd2c1['type'],'config':_0x5dd2c1['config'],'readonly':_0x5dd2c1[_0x5dbea0(0x18a)],'description':_0x5dd2c1[_0x5dbea0(0x218)]};}),'views':_0x254fff[_0x4b77e6(0x276)](_0x23ef8c=>{const _0x4006b1=_0x4b77e6;let _0x3aacda=_0x4f4ea0[_0x4006b1(0x290)][_0x23ef8c];return{'id':_0x3aacda['id'],'name':_0x3aacda['name'],'type':_0x3aacda['type']};})};}[_0x42cb2d(0x1d4)](){const _0x4feaeb=_0x42cb2d;let _0x2ae977=this[_0x4feaeb(0x204)]['getBase']()[_0x4feaeb(0x295)]()[_0x4feaeb(0x1af)][this[_0x4feaeb(0x292)]];if(!_0x2ae977)throw Error(_0x4feaeb(0x1b7)+this[_0x4feaeb(0x292)]+_0x4feaeb(0x209));return _0x2ae977;}['_resolveRecordIds'](_0x52ac23={}){const _0x25c42c=_0x42cb2d;let _0x12e0d8=this[_0x25c42c(0x204)]['getBase']()['getSnapshot'](),_0x2f82d8=this['_getTable']();if(_0x52ac23[_0x25c42c(0x2d0)]){let _0x110b71=this[_0x25c42c(0x26a)]['getProjection'](_0x12e0d8,this[_0x25c42c(0x292)],_0x52ac23[_0x25c42c(0x2d0)]);if(_0x25c42c(0x240)in _0x110b71&&Array['isArray'](_0x110b71['rows']))return _0x110b71[_0x25c42c(0x240)][_0x25c42c(0x276)](_0x2cb03d=>_0x2cb03d[_0x25c42c(0x192)]);}return(_0x2f82d8[_0x25c42c(0x2ae)]?_0x2f82d8[_0x25c42c(0x2ae)][_0x25c42c(0x276)](_0x17be18=>_0x2f82d8['records'][_0x17be18]):Object[_0x25c42c(0x21e)](_0x2f82d8[_0x25c42c(0x2d2)])[_0x25c42c(0x25b)]((_0x542cb4,_0x426351)=>_0x542cb4[_0x25c42c(0x247)][_0x25c42c(0x1eb)](_0x426351[_0x25c42c(0x247)])))[_0x25c42c(0x250)](_0x1b0e87=>_0x1b0e87)[_0x25c42c(0x276)](_0x2de2a5=>_0x2de2a5['id']);}};Z=z([R(0x3,_0x35296b),R(0x4,_0x5ad99d),R(0x5,_0x5da3e7)],Z);function vt(_0xa0c645,_0x32dd2e){const _0x53b26f=_0x42cb2d;let _0x30ecc5=Math[_0x53b26f(0x190)](0x0,_0x32dd2e[_0x53b26f(0x2bb)]??0x0);return _0x32dd2e['limit']==null?_0xa0c645['slice'](_0x30ecc5):_0xa0c645[_0x53b26f(0x2cd)](_0x30ecc5,_0x30ecc5+Math[_0x53b26f(0x190)](0x0,_0x32dd2e['limit']));}function yt(_0x1e760,_0x3b51fe,_0x51c376=[]){const _0x41e460=_0x42cb2d;return _0x51c376[_0x41e460(0x1b9)]?[..._0x1e760][_0x41e460(0x25b)]((_0x13b2ee,_0x5bccce)=>{const _0x1ca883=_0x41e460;for(let _0x33921b of _0x51c376){var _0x16a1fe;let _0x48d70d=_0x33921b[_0x1ca883(0x17d)]===_0x42481e['DESC']?-0x1:0x1,_0x4a965c=bt(_0x13b2ee[_0x1ca883(0x21e)][_0x33921b[_0x1ca883(0x21c)]],_0x5bccce[_0x1ca883(0x21e)][_0x33921b[_0x1ca883(0x21c)]],(_0x16a1fe=_0x3b51fe[_0x1ca883(0x28d)][_0x33921b[_0x1ca883(0x21c)]])==null?void 0x0:_0x16a1fe[_0x1ca883(0x235)]);if(_0x4a965c!==0x0)return _0x4a965c*_0x48d70d;}return String(_0x13b2ee['orderKey']??_0x13b2ee['id'])[_0x1ca883(0x1eb)](String(_0x5bccce['orderKey']??_0x5bccce['id']));}):_0x1e760;}function bt(_0x55742c,_0x31f125,_0x373462){const _0x34201c=_0x42cb2d;return _0x55742c==null&&_0x31f125==null?0x0:_0x55742c==null?-0x1:_0x31f125==null?0x1:typeof _0x55742c==_0x34201c(0x226)&&typeof _0x31f125=='number'?_0x55742c-_0x31f125:_0x373462===_0x334db4['Date']?Number(_0x55742c)-Number(_0x31f125):String(_0x55742c)[_0x34201c(0x1eb)](String(_0x31f125));}function xt(_0x313a63,_0x4a4741,_0x41049c){const _0x46af69=_0x42cb2d;var _0x18e264;if(!_0x41049c||!((_0x18e264=_0x41049c[_0x46af69(0x245)])!=null&&_0x18e264[_0x46af69(0x1b9)]))return!0x0;let {conjunction:_0x1cf314=_0x5a09a5['OR'],conditions:_0x2e834d}=_0x41049c;return _0x1cf314===_0x5a09a5[_0x46af69(0x1ad)]&&_0x2e834d[_0x46af69(0x1b9)]>0x1?_0x2e834d[_0x46af69(0x296)](_0x4118ca=>St(_0x313a63,_0x4a4741,_0x4118ca)):_0x2e834d['some'](_0x6f9237=>St(_0x313a63,_0x4a4741,_0x6f9237));}function St(_0xd49a1e,_0x3dfc3e,_0xd9539c){const _0x5aa5ab=_0x42cb2d;let _0x31b60f=_0xd49a1e[_0x5aa5ab(0x21e)][_0xd9539c[_0x5aa5ab(0x21c)]],_0x33e26e=_0x3dfc3e[_0x5aa5ab(0x28d)][_0xd9539c['fieldId']];if(Ct(_0xd9539c)){let _0x59c15d=wt(_0xd9539c)[_0x5aa5ab(0x287)](String(_0x31b60f??''));return _0xd9539c[_0x5aa5ab(0x1fd)]===_0x5aa5ab(0x1ff)?_0x59c15d:!_0x59c15d;}return!_0x33e26e||_0x17312a(_0x31b60f,_0xd9539c[_0x5aa5ab(0x1fd)],_0xd9539c[_0x5aa5ab(0x2b1)],_0x33e26e);}function Ct(_0x59ae7f){const _0x268577=_0x42cb2d;return _0x59ae7f[_0x268577(0x1fd)]===_0x268577(0x1ff)||_0x59ae7f['operator']===_0x268577(0x239);}function wt(_0x33ea30){const _0x3ef8a7=_0x42cb2d;let _0x5cd261=String(_0x33ea30['value']??'');if(_0x5cd261[_0x3ef8a7(0x1b9)]>0x200)throw Error(_0x3ef8a7(0x199));try{return new RegExp(_0x5cd261,_0x33ea30[_0x3ef8a7(0x1c2)]?void 0x0:'i');}catch(_0x65b6da){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x5cd261+'.\x20'+(_0x65b6da instanceof Error?_0x65b6da['message']:String(_0x65b6da)));}}function Tt(_0x14c47a,_0x2d3a8a,_0x2cef0e){const _0x3175ff=_0x42cb2d;if(_0x2cef0e[_0x3175ff(0x235)]!==_0x3175ff(0x207)&&_0x2cef0e['type']!==_0x3175ff(0x2d5)){var _0x4e6fe0;if(_0x2cef0e['type']===_0x2dedc2['Kanban']){var _0x5ca0a6;let _0x4c18cd=[((_0x5ca0a6=_0x2cef0e[_0x3175ff(0x28d)])==null||(_0x5ca0a6=_0x5ca0a6[0x0])==null?void 0x0:_0x5ca0a6['id'])??_0x14c47a[_0x3175ff(0x20c)],..._0x2cef0e[_0x3175ff(0x1e5)]??[]];return Array['from'](new Set(_0x4c18cd[_0x3175ff(0x250)](_0x4509f5=>!!_0x14c47a[_0x3175ff(0x28d)][_0x4509f5])));}if((_0x4e6fe0=_0x2cef0e[_0x3175ff(0x28d)])!=null&&_0x4e6fe0['length'])return _0x2cef0e[_0x3175ff(0x28d)][_0x3175ff(0x276)](_0x1dfc72=>_0x1dfc72['id'])[_0x3175ff(0x250)](_0x26cfaa=>{const _0x340325=_0x3175ff;var _0x50183e;return!(!_0x14c47a[_0x340325(0x28d)][_0x26cfaa]||_0x2d3a8a!=null&&(_0x50183e=_0x2d3a8a[_0x340325(0x2a9)])!=null&&(_0x50183e=_0x50183e[_0x26cfaa])!=null&&_0x50183e[_0x340325(0x253)]);});}return _0x14c47a[_0x3175ff(0x29c)][_0x3175ff(0x250)](_0x34a76c=>{const _0x28c045=_0x3175ff;var _0xd6da72;return!(!_0x14c47a[_0x28c045(0x28d)][_0x34a76c]||_0x2d3a8a!=null&&(_0xd6da72=_0x2d3a8a[_0x28c045(0x2a9)])!=null&&(_0xd6da72=_0xd6da72[_0x34a76c])!=null&&_0xd6da72[_0x28c045(0x253)]);});}let Q=class extends _0x37c8e5[_0x42cb2d(0x238)]{constructor(_0x33eb5e,_0x2f26b1,_0x25f8b7,_0xdaa545,_0x4e2e5f){const _0x56e8b5=_0x42cb2d;super(),this[_0x56e8b5(0x204)]=_0x33eb5e,this['_injector']=_0x2f26b1,this['_resourceLoaderService']=_0x25f8b7,this['_commandService']=_0xdaa545,this[_0x56e8b5(0x2a5)]=_0x4e2e5f;}['getBase'](){return this['_base'];}[_0x42cb2d(0x25a)](){return this['_base']['getUnitId']();}[_0x42cb2d(0x274)](){const _0x12e533=_0x42cb2d;return new at(this['getId'](),this[_0x12e533(0x27d)],this['_permissionService']);}[_0x42cb2d(0x217)](){const _0x434b9e=_0x42cb2d;return this[_0x434b9e(0x234)]['saveUnit'](this[_0x434b9e(0x25a)]())??_0x537bdf[_0x434b9e(0x1cb)](this[_0x434b9e(0x204)][_0x434b9e(0x295)]());}[_0x42cb2d(0x214)](){const _0x3dd91d=_0x42cb2d;return this[_0x3dd91d(0x204)][_0x3dd91d(0x295)]()[_0x3dd91d(0x1e8)];}[_0x42cb2d(0x174)](_0xfe5b06){const _0x28a099=_0x42cb2d;this[_0x28a099(0x27d)][_0x28a099(0x1ac)](_0x3cf18e['id'],{'unitId':this[_0x28a099(0x25a)](),'name':_0xfe5b06});}[_0x42cb2d(0x1aa)](){const _0x473131=_0x42cb2d;let _0x2ba8bb=this['_base']['getSnapshot']();return _0x2ba8bb[_0x473131(0x271)][_0x473131(0x276)](_0x466bc7=>_0x2ba8bb[_0x473131(0x1af)][_0x466bc7])['filter'](_0x270c8a=>_0x270c8a)[_0x473131(0x276)](_0x2520b6=>this[_0x473131(0x201)][_0x473131(0x24e)](Z,this,_0x2520b6['id'],this[_0x473131(0x201)]));}[_0x42cb2d(0x242)](_0x3c760d){const _0x1cc0d6=_0x42cb2d;let _0x4875bb=this[_0x1cc0d6(0x204)][_0x1cc0d6(0x295)]()[_0x1cc0d6(0x1af)][_0x3c760d];return _0x4875bb?this[_0x1cc0d6(0x201)][_0x1cc0d6(0x24e)](Z,this,_0x4875bb['id'],this[_0x1cc0d6(0x201)]):null;}[_0x42cb2d(0x221)](_0xba3874){const _0x4a8af3=_0x42cb2d;let _0x25aee4=this['_base']['getSnapshot'](),_0x185853=Object[_0x4a8af3(0x21e)](_0x25aee4[_0x4a8af3(0x1af)])[_0x4a8af3(0x220)](_0x18eafc=>_0x18eafc[_0x4a8af3(0x1e8)]===_0xba3874);return _0x185853?this[_0x4a8af3(0x201)][_0x4a8af3(0x24e)](Z,this,_0x185853['id'],this[_0x4a8af3(0x201)]):null;}[_0x42cb2d(0x1d5)](_0xa96d05,_0x2e27a4){const _0x24d228=_0x42cb2d;let _0xa708d5=_0x13ff92({'id':_0x4f9ee0(),'name':_0xa96d05,..._0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x269)],'primaryFieldName':_0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x1cc)]}),_0x7f6990=_0x537bdf[_0x24d228(0x1c9)](_0xa708d5,(_0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x269)])??{}),_0x1fa735=_0x17aac3(this[_0x24d228(0x204)][_0x24d228(0x295)](),_0x7f6990[_0x24d228(0x1e8)]);if(!_0x1fa735[_0x24d228(0x21a)])throw Error(_0x24d228(0x1f3)+_0x7f6990[_0x24d228(0x1e8)]+_0x24d228(0x227)+_0x2e61f6+'\x20'+_0x1fa735[_0x24d228(0x1d7)]);if(!this[_0x24d228(0x27d)][_0x24d228(0x1ac)](_0x1d6ad3['id'],{'unitId':this['_base'][_0x24d228(0x1e0)](),'table':_0x7f6990,'index':_0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x1be)]}))throw Error(_0x24d228(0x1d8)+_0xa96d05+'\x22.');return this['_injector'][_0x24d228(0x24e)](Z,this,_0x7f6990['id'],this[_0x24d228(0x201)]);}[_0x42cb2d(0x25e)](_0xf0ce38){const _0x521bae=_0x42cb2d;let _0x5b34c1=typeof _0xf0ce38==_0x521bae(0x193)?_0xf0ce38:_0xf0ce38[_0x521bae(0x25a)]();if(!this[_0x521bae(0x27d)][_0x521bae(0x1ac)](_0x359c6b['id'],{'unitId':this[_0x521bae(0x204)]['getUnitId'](),'tableId':_0x5b34c1}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x5b34c1+'\x22.');return!0x0;}[_0x42cb2d(0x1c4)](_0x225ee9,_0x31ae80){const _0x6d905d=_0x42cb2d;let _0xa6deaf=this[_0x6d905d(0x204)]['getSnapshot'](),_0x1f9bdd=typeof _0x225ee9==_0x6d905d(0x193)?_0x225ee9:_0x225ee9['getId'](),_0xe27d89=_0xa6deaf[_0x6d905d(0x1af)][_0x1f9bdd];if(!_0xe27d89)throw Error(_0x6d905d(0x1fa)+_0x1f9bdd+'\x22\x20does\x20not\x20exist.');let _0x23715e=_0xa6deaf[_0x6d905d(0x271)][_0x6d905d(0x1d0)](_0x1f9bdd)+0x1,_0x33244a=_0x4f9ee0(),_0x3650cf=_0x4ca2a4(_0xe27d89,{'id':_0x33244a,'name':_0x242756(_0xa6deaf,_0xe27d89[_0x6d905d(0x1e8)]+'\x20Copy'),'includeRecords':(_0x31ae80==null?void 0x0:_0x31ae80[_0x6d905d(0x19b)])??!0x1,'regenerateViewIds':(_0x31ae80==null?void 0x0:_0x31ae80[_0x6d905d(0x19c)])??!0x1});if(!this[_0x6d905d(0x27d)][_0x6d905d(0x1ac)](_0x1d6ad3['id'],{'unitId':this[_0x6d905d(0x204)][_0x6d905d(0x1e0)](),'table':_0x3650cf,'index':_0x23715e}))throw Error('Failed\x20to\x20duplicate\x20table\x20\x22'+_0x1f9bdd+'\x22.');return this[_0x6d905d(0x201)][_0x6d905d(0x24e)](Z,this,_0x3650cf['id'],this[_0x6d905d(0x201)]);}[_0x42cb2d(0x21b)](){const _0x1df98c=_0x42cb2d;let _0x196813=this['_base'][_0x1df98c(0x295)]();return{'id':_0x196813['id'],'name':_0x196813[_0x1df98c(0x1e8)],'tables':this['getTables']()[_0x1df98c(0x276)](_0x326cdc=>_0x326cdc[_0x1df98c(0x21b)]())};}};Q=z([R(0x1,_0x18fc25(_0x7ee076)),R(0x2,_0x180241),R(0x3,_0x35296b),R(0x4,_0x5ad99d)],Q);var Et=class extends _0x13f4e8{[_0x42cb2d(0x273)](){const _0x1d9d05=_0x42cb2d;this[_0x1d9d05(0x24a)](),this['_initBaseAfterEvents']();}['createBase'](_0xf63b95={},_0x5e588b){const _0x5a9a14=_0x42cb2d;let _0x197fbe=this[_0x5a9a14(0x180)][_0x5a9a14(0x241)](_0xfc0289['UNIVER_BASE'],_0xf63b95,_0x5e588b);return this[_0x5a9a14(0x201)][_0x5a9a14(0x24e)](Q,_0x197fbe);}[_0x42cb2d(0x2b8)](){const _0x5b2afb=_0x42cb2d;let _0x21fd5d=this[_0x5b2afb(0x180)][_0x5b2afb(0x1a7)](_0xfc0289[_0x5b2afb(0x28e)]);return _0x21fd5d?this[_0x5b2afb(0x201)]['createInstance'](Q,_0x21fd5d):null;}[_0x42cb2d(0x211)](_0x4f15cf){const _0x561793=_0x42cb2d;let _0x5efc46=this[_0x561793(0x180)][_0x561793(0x1d1)](_0x4f15cf,_0xfc0289['UNIVER_BASE']);return _0x5efc46?this[_0x561793(0x201)][_0x561793(0x24e)](Q,_0x5efc46):null;}['getBases'](){const _0x3934ab=_0x42cb2d;return this['_univerInstanceService'][_0x3934ab(0x255)](_0xfc0289[_0x3934ab(0x28e)])[_0x3934ab(0x276)](_0x251e8a=>this[_0x3934ab(0x201)][_0x3934ab(0x24e)](Q,_0x251e8a));}[_0x42cb2d(0x2a8)](){const _0x2acfcf=_0x42cb2d;this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this['Event'][_0x2acfcf(0x200)],()=>this[_0x2acfcf(0x27d)]['onCommandExecuted']((_0x1cd831,_0x1aa7d7)=>{const _0x304d64=_0x2acfcf;var _0x1f0e3d;if(!$(_0x1cd831,_0x178c24))return;let _0xefd6d5=_0x1cd831[_0x304d64(0x1fe)];if(!((_0x1f0e3d=_0xefd6d5[_0x304d64(0x2c7)])!=null&&_0x1f0e3d[_0x304d64(0x1b9)]))return;let _0x1b35fd=this['getBase'](_0xefd6d5[_0x304d64(0x189)]),_0x263da9=_0x1b35fd==null?void 0x0:_0x1b35fd['getTableById'](_0xefd6d5['hierarchyChanges'][0x0][_0x304d64(0x1bf)]);if(!_0x1b35fd||!_0x263da9)return;let _0x18ee2c={'base':_0x1b35fd,'table':_0x263da9,'changes':_0xefd6d5[_0x304d64(0x2c7)],'source':_0x1aa7d7!=null&&_0x1aa7d7['fromCollab']?_0x220938[_0x304d64(0x2ca)]:_0xefd6d5[_0x304d64(0x2b5)]??_0x220938['UI']};this[_0x304d64(0x2c9)](this[_0x304d64(0x231)][_0x304d64(0x200)],_0x18ee2c);}))),this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this[_0x2acfcf(0x231)][_0x2acfcf(0x2cc)],()=>this[_0x2acfcf(0x27d)]['onCommandExecuted'](_0xf16f56=>{const _0x4e830b=_0x2acfcf;if(_0xf16f56['id']!==_0x1d6ad3['id'])return;let {unitId:_0x36a4fd,table:_0x580e09,index:_0x545d8c}=_0xf16f56[_0x4e830b(0x1fe)],_0x3d510d=this['getBase'](_0x36a4fd);if(!_0x3d510d)return;let _0x5a35a0={'base':_0x3d510d,'table':_0x580e09,'index':_0x545d8c};this[_0x4e830b(0x2c9)](this['Event'][_0x4e830b(0x2cc)],_0x5a35a0);}))),this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this['Event'][_0x2acfcf(0x18f)],()=>this[_0x2acfcf(0x27d)]['onCommandExecuted'](_0x5b4d6f=>{const _0xc8fb08=_0x2acfcf;if(_0x5b4d6f['id']!==_0x89725e['id'])return;let {unitId:_0x525c91,tableId:_0x3111ff,field:_0x2c1dc0,index:_0x404f17,viewIndexes:_0x14a911}=_0x5b4d6f['params'],_0x55241b=this[_0xc8fb08(0x211)](_0x525c91);if(!_0x55241b)return;let _0x5ed3d8=_0x55241b[_0xc8fb08(0x242)](_0x3111ff);if(!_0x5ed3d8)return;let _0x54d901={'base':_0x55241b,'table':_0x5ed3d8,'field':_0x2c1dc0,'index':_0x404f17,'viewIndexes':_0x14a911};this[_0xc8fb08(0x2c9)](this[_0xc8fb08(0x231)][_0xc8fb08(0x18f)],_0x54d901);}))),this['disposeWithMe'](this[_0x2acfcf(0x1ba)](this['Event'][_0x2acfcf(0x1a1)],()=>this['_commandService']['onCommandExecuted'](_0x4bfe62=>{const _0x2f9889=_0x2acfcf;if(_0x4bfe62['id']!==_0x470e4e['id']&&_0x4bfe62['id']!==_0x30ed55['id'])return;let _0x1e78a6=_0x4bfe62[_0x2f9889(0x1fe)],{unitId:_0x138a87,tableId:_0x58744b}=_0x1e78a6,_0x1f4602=_0x1e78a6[_0x2f9889(0x2d2)]??[_0x1e78a6[_0x2f9889(0x1e1)]],_0x55fd4e=this['getBase'](_0x138a87);if(!_0x55fd4e)return;let _0x3f968e=_0x55fd4e[_0x2f9889(0x242)](_0x58744b);if(!_0x3f968e)return;let _0x58a808={'base':_0x55fd4e,'table':_0x3f968e,'records':_0x1f4602};this[_0x2f9889(0x2c9)](this[_0x2f9889(0x231)]['BaseTableRecordCreated'],_0x58a808);}))),this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this[_0x2acfcf(0x231)][_0x2acfcf(0x229)],()=>this[_0x2acfcf(0x27d)][_0x2acfcf(0x2c3)](_0x1abf9b=>{const _0x3de63f=_0x2acfcf;if(_0x1abf9b['id']!==_0x471b73['id'])return;let {unitId:_0xaab03e,tableId:_0x3f5b6d,view:_0x42ee54,index:_0x3f2ba9}=_0x1abf9b[_0x3de63f(0x1fe)],_0x5a69e7=this[_0x3de63f(0x211)](_0xaab03e);if(!_0x5a69e7)return;let _0x41d365=_0x5a69e7[_0x3de63f(0x242)](_0x3f5b6d);if(!_0x41d365)return;let _0x5278e1={'base':_0x5a69e7,'table':_0x41d365,'view':_0x42ee54,'index':_0x3f2ba9};this[_0x3de63f(0x2c9)](this['Event'][_0x3de63f(0x229)],_0x5278e1);}))),this['disposeWithMe'](this[_0x2acfcf(0x1ba)](this[_0x2acfcf(0x231)][_0x2acfcf(0x260)],()=>this[_0x2acfcf(0x27d)][_0x2acfcf(0x2c3)](_0x3da61f=>{const _0x2311fd=_0x2acfcf;if(_0x3da61f['id']!==_0x50c883['id'])return;let {unitId:_0x3e680a,tableId:_0x4ddd9d,recordId:_0x1c7889,fieldId:_0x22cbd1,value:_0x566046}=_0x3da61f['params'],_0x153b58=this['getBase'](_0x3e680a);if(!_0x153b58)return;let _0x578a77=_0x153b58['getTableById'](_0x4ddd9d);if(!_0x578a77)return;let _0x237de1=_0x578a77[_0x2311fd(0x248)](_0x22cbd1);if(!_0x237de1)return;let _0x437a7d=_0x578a77[_0x2311fd(0x1e3)](_0x1c7889);if(!_0x437a7d)return;let _0x4a109d={'base':_0x153b58,'table':_0x578a77,'field':_0x237de1,'record':_0x437a7d,'value':_0x566046};this['fireEvent'](this[_0x2311fd(0x231)][_0x2311fd(0x260)],_0x4a109d);})));}[_0x42cb2d(0x24a)](){const _0x101f76=_0x42cb2d;this[_0x101f76(0x18d)](this[_0x101f76(0x1ba)](this[_0x101f76(0x231)]['BeforeBaseHierarchyChange'],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x464ba1=>{const _0x5947f8=_0x101f76;if($(_0x464ba1,_0x54705e)){let {unitId:_0xb60f64,tableId:_0x5468f4,patches:_0x5d6520,source:_0xc4724b=_0x220938['UI']}=_0x464ba1[_0x5947f8(0x1fe)],_0x27c823=this['_getHierarchyEventContext'](_0xb60f64,_0x5468f4);if(!_0x27c823)return;this['_fireBeforeHierarchyChange'](_0x27c823[_0x5947f8(0x21d)],_0x27c823[_0x5947f8(0x269)],_0x3495d4(_0x27c823[_0x5947f8(0x269)][_0x5947f8(0x1d3)](),_0x5d6520),_0xc4724b);return;}if($(_0x464ba1,_0x1fa9ec)){let {unitId:_0x5174d7,tableId:_0x36d7f4,patches:_0x201145,source:_0x1fbd9b=_0x220938['UI']}=_0x464ba1[_0x5947f8(0x1fe)],_0x14b87a=this['_getHierarchyEventContext'](_0x5174d7,_0x36d7f4);if(!_0x14b87a)return;let _0x562047=_0x14b87a[_0x5947f8(0x269)][_0x5947f8(0x1d3)]();this[_0x5947f8(0x1dc)](_0x14b87a[_0x5947f8(0x21d)],_0x14b87a['table'],_0x3495d4(_0x562047,_0x28902e(_0x562047,_0x201145)),_0x1fbd9b);return;}if($(_0x464ba1,_0x470e4e)){let _0x433de8=_0x464ba1[_0x5947f8(0x1fe)],_0x2fc18b=this[_0x5947f8(0x1bd)](_0x433de8['unitId'],_0x433de8['tableId']);if(!_0x2fc18b)return;this['_fireBeforeHierarchyChange'](_0x2fc18b[_0x5947f8(0x21d)],_0x2fc18b[_0x5947f8(0x269)],_0x3474ef(_0x2fc18b['table'][_0x5947f8(0x1d3)](),[_0x433de8[_0x5947f8(0x1e1)]]),_0x433de8[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x30ed55)){let _0x108a6f=_0x464ba1['params'],_0x3cdc24=this[_0x5947f8(0x1bd)](_0x108a6f[_0x5947f8(0x189)],_0x108a6f[_0x5947f8(0x1bf)]);if(!_0x3cdc24)return;this[_0x5947f8(0x1dc)](_0x3cdc24[_0x5947f8(0x21d)],_0x3cdc24[_0x5947f8(0x269)],_0x3474ef(_0x3cdc24['table']['getTable'](),_0x108a6f[_0x5947f8(0x2d2)]),_0x108a6f[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x328e28)){let _0xf3d849=_0x464ba1['params'],_0x59a3a4=this[_0x5947f8(0x1bd)](_0xf3d849['unitId'],_0xf3d849[_0x5947f8(0x1bf)]);if(!_0x59a3a4)return;this[_0x5947f8(0x1dc)](_0x59a3a4[_0x5947f8(0x21d)],_0x59a3a4[_0x5947f8(0x269)],_0x3474ef(_0x59a3a4[_0x5947f8(0x269)][_0x5947f8(0x1d3)](),[_0xf3d849[_0x5947f8(0x1e1)]]),_0xf3d849[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x146970)){let _0x30106c=_0x464ba1[_0x5947f8(0x1fe)],_0x2eae67=this['_getHierarchyEventContext'](_0x30106c[_0x5947f8(0x189)],_0x30106c[_0x5947f8(0x1bf)]);if(!_0x2eae67)return;let _0x14de50=_0x2eae67[_0x5947f8(0x269)]['getTable'](),_0x32aebf=_0x30106c[_0x5947f8(0x21c)]??_0x1d8e8c(_0x14de50),_0x486bf6=_0x4aa1d4(_0x14de50,_0x32aebf)[_0x5947f8(0x1e4)][_0x5947f8(0x257)](_0x30106c[_0x5947f8(0x192)])??null;this[_0x5947f8(0x1dc)](_0x2eae67[_0x5947f8(0x21d)],_0x2eae67['table'],[{'tableId':_0x30106c[_0x5947f8(0x1bf)],'fieldId':_0x32aebf,'recordId':_0x30106c[_0x5947f8(0x192)],'oldParentRecordId':_0x486bf6,'parentRecordId':_0x30106c[_0x5947f8(0x263)]}],_0x30106c[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x38016d)){let _0x561caf=_0x464ba1['params'],_0x144514=this[_0x5947f8(0x1bd)](_0x561caf[_0x5947f8(0x189)],_0x561caf[_0x5947f8(0x1bf)]);if(!_0x144514)return;let _0x5f4738=_0x561caf[_0x5947f8(0x21c)]??_0x1d8e8c(_0x144514[_0x5947f8(0x269)]['getTable']());this[_0x5947f8(0x1dc)](_0x144514[_0x5947f8(0x21d)],_0x144514[_0x5947f8(0x269)],[{'tableId':_0x561caf[_0x5947f8(0x1bf)],'fieldId':_0x5f4738,'recordId':_0x561caf[_0x5947f8(0x1e1)]['id'],'oldParentRecordId':null,'parentRecordId':_0x561caf[_0x5947f8(0x263)]}],_0x561caf[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x36855b)){let _0xb66809=_0x464ba1[_0x5947f8(0x1fe)],_0x6d1287=this[_0x5947f8(0x1bd)](_0xb66809[_0x5947f8(0x189)],_0xb66809['tableId']);if(!_0x6d1287)return;this['_fireBeforeHierarchyChange'](_0x6d1287[_0x5947f8(0x21d)],_0x6d1287[_0x5947f8(0x269)],_0x38e02b(_0x6d1287[_0x5947f8(0x269)][_0x5947f8(0x1d3)](),[_0xb66809[_0x5947f8(0x192)]]),_0xb66809['source']??_0x220938['UI']);return;}if($(_0x464ba1,_0x259e76)){let _0x103c25=_0x464ba1['params'],_0x258e9c=this['_getHierarchyEventContext'](_0x103c25[_0x5947f8(0x189)],_0x103c25['tableId']);if(!_0x258e9c)return;this['_fireBeforeHierarchyChange'](_0x258e9c[_0x5947f8(0x21d)],_0x258e9c[_0x5947f8(0x269)],_0x38e02b(_0x258e9c['table'][_0x5947f8(0x1d3)](),_0x103c25[_0x5947f8(0x20d)]),_0x103c25[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if(!$(_0x464ba1,_0x50c883))return;let _0x1f1f9c=_0x464ba1[_0x5947f8(0x1fe)],_0x10bdc0=this[_0x5947f8(0x1bd)](_0x1f1f9c[_0x5947f8(0x189)],_0x1f1f9c[_0x5947f8(0x1bf)]);if(!_0x10bdc0)return;let _0x2767d1=_0x10bdc0[_0x5947f8(0x269)][_0x5947f8(0x1d3)]();if(!_0x1d243e(_0x2767d1)['includes'](_0x1f1f9c['fieldId']))return;let _0x4c03c2=_0x4aa1d4(_0x2767d1,_0x1f1f9c[_0x5947f8(0x21c)])[_0x5947f8(0x1e4)][_0x5947f8(0x257)](_0x1f1f9c[_0x5947f8(0x192)])??null,_0x1c4dd5=_0x46817c(_0x1f1f9c[_0x5947f8(0x2b1)])[0x0]??null;_0x4c03c2!==_0x1c4dd5&&this[_0x5947f8(0x1dc)](_0x10bdc0['base'],_0x10bdc0[_0x5947f8(0x269)],[{'tableId':_0x1f1f9c[_0x5947f8(0x1bf)],'fieldId':_0x1f1f9c[_0x5947f8(0x21c)],'recordId':_0x1f1f9c[_0x5947f8(0x192)],'oldParentRecordId':_0x4c03c2,'parentRecordId':_0x1c4dd5}],_0x1f1f9c[_0x5947f8(0x2b5)]??_0x220938['UI']);}))),this['disposeWithMe'](this[_0x101f76(0x1ba)](this[_0x101f76(0x231)][_0x101f76(0x191)],()=>this['_commandService']['beforeCommandExecuted'](_0x568220=>{const _0x5d2ed3=_0x101f76;if(_0x568220['id']!==_0x1d6ad3['id'])return;let {unitId:_0x470e46,table:_0x3dea97,index:_0x2e80a7}=_0x568220['params'],_0x148d5b=this[_0x5d2ed3(0x211)](_0x470e46);if(!_0x148d5b)return;let _0x357b77={'base':_0x148d5b,'table':_0x3dea97,'index':_0x2e80a7};if(this[_0x5d2ed3(0x2c9)](this[_0x5d2ed3(0x231)][_0x5d2ed3(0x191)],_0x357b77),_0x357b77[_0x5d2ed3(0x298)])throw new _0x3f6a5c();}))),this[_0x101f76(0x18d)](this['registerEventHandler'](this[_0x101f76(0x231)][_0x101f76(0x232)],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x424dfc=>{const _0x550c67=_0x101f76;if(_0x424dfc['id']!==_0x89725e['id'])return;let {unitId:_0x126094,tableId:_0x5e0407,field:_0x502c58,index:_0x5760f7,viewIndexes:_0x469202}=_0x424dfc[_0x550c67(0x1fe)],_0x553ac2=this['getBase'](_0x126094);if(!_0x553ac2)return;let _0x1e6977=_0x553ac2['getTableById'](_0x5e0407);if(!_0x1e6977)return;let _0x2bba81={'base':_0x553ac2,'table':_0x1e6977,'field':_0x502c58,'index':_0x5760f7,'viewIndexes':_0x469202};if(this[_0x550c67(0x2c9)](this[_0x550c67(0x231)][_0x550c67(0x232)],_0x2bba81),_0x2bba81[_0x550c67(0x298)])throw new _0x3f6a5c();}))),this[_0x101f76(0x18d)](this['registerEventHandler'](this['Event']['BeforeBaseTableRecordCreate'],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x1cdee7=>{const _0x100094=_0x101f76;if(_0x1cdee7['id']!==_0x470e4e['id']&&_0x1cdee7['id']!==_0x30ed55['id'])return;let _0xeaf0e5=_0x1cdee7[_0x100094(0x1fe)],{unitId:_0xcd5528,tableId:_0x585ae5}=_0xeaf0e5,_0x2d123a=_0xeaf0e5[_0x100094(0x2d2)]??[_0xeaf0e5['record']],_0x630c57=this['getBase'](_0xcd5528);if(!_0x630c57)return;let _0x28b341=_0x630c57[_0x100094(0x242)](_0x585ae5);if(!_0x28b341)return;let _0x3df609={'base':_0x630c57,'table':_0x28b341,'records':_0x2d123a};if(this['fireEvent'](this[_0x100094(0x231)][_0x100094(0x2b7)],_0x3df609),_0x3df609[_0x100094(0x298)])throw new _0x3f6a5c();}))),this[_0x101f76(0x18d)](this[_0x101f76(0x1ba)](this[_0x101f76(0x231)][_0x101f76(0x17a)],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x695f19=>{const _0x5c4ac4=_0x101f76;if(_0x695f19['id']!==_0x471b73['id'])return;let {unitId:_0x615171,tableId:_0x4ed7f1,view:_0x31d990,index:_0x14a6dc}=_0x695f19[_0x5c4ac4(0x1fe)],_0x4f56d0=this[_0x5c4ac4(0x211)](_0x615171);if(!_0x4f56d0)return;let _0x2eb5a3=_0x4f56d0[_0x5c4ac4(0x242)](_0x4ed7f1);if(!_0x2eb5a3)return;let _0xd918da={'base':_0x4f56d0,'table':_0x2eb5a3,'view':_0x31d990,'index':_0x14a6dc};if(this[_0x5c4ac4(0x2c9)](this[_0x5c4ac4(0x231)][_0x5c4ac4(0x17a)],_0xd918da),_0xd918da[_0x5c4ac4(0x298)])throw new _0x3f6a5c();}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x101f76(0x203)],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x486471=>{const _0xad703b=_0x101f76;if(_0x486471['id']!==_0x50c883['id'])return;let {unitId:_0x577c79,tableId:_0x365855,recordId:_0xebce0a,fieldId:_0x322e7f,value:_0x23772a}=_0x486471['params'],_0x25cb8a=this[_0xad703b(0x211)](_0x577c79);if(!_0x25cb8a)return;let _0x313f7f=_0x25cb8a[_0xad703b(0x242)](_0x365855);if(!_0x313f7f)return;let _0xd61592=_0x313f7f[_0xad703b(0x248)](_0x322e7f);if(!_0xd61592)return;let _0x50c5c9=_0x313f7f[_0xad703b(0x1e3)](_0xebce0a);if(!_0x50c5c9)return;let _0x25eb26={'base':_0x25cb8a,'table':_0x313f7f,'field':_0xd61592,'record':_0x50c5c9,'value':_0x23772a};if(this[_0xad703b(0x2c9)](this[_0xad703b(0x231)][_0xad703b(0x203)],_0x25eb26),_0x25eb26[_0xad703b(0x298)])throw new _0x3f6a5c();})));}[_0x42cb2d(0x1bd)](_0xeb111b,_0x56d918){const _0x590c73=_0x42cb2d;let _0x1fb593=this[_0x590c73(0x211)](_0xeb111b),_0x34348f=_0x1fb593==null?void 0x0:_0x1fb593['getTableById'](_0x56d918);return _0x1fb593&&_0x34348f?{'base':_0x1fb593,'table':_0x34348f}:null;}[_0x42cb2d(0x1dc)](_0x3cc8b9,_0x2e8ec3,_0x5a5146,_0x4a1d06){const _0x2a3c90=_0x42cb2d;if(!_0x5a5146[_0x2a3c90(0x1b9)])return;let _0x4fc0d8={'base':_0x3cc8b9,'table':_0x2e8ec3,'changes':_0x5a5146,'source':_0x4a1d06};if(this[_0x2a3c90(0x2c9)](this[_0x2a3c90(0x231)][_0x2a3c90(0x1f4)],_0x4fc0d8),_0x4fc0d8[_0x2a3c90(0x298)])throw new _0x3f6a5c();}};function $(_0x285b17,_0x676047){const _0x3b9146=_0x42cb2d;return _0x285b17['id']===_0x676047['id']&&_0x285b17[_0x3b9146(0x1fe)]!==void 0x0;}_0x13f4e8[_0x42cb2d(0x205)](Et);var Dt=class extends _0x3c7e49{get[_0x42cb2d(0x22a)](){return _0x334db4;}get[_0x42cb2d(0x2c6)](){return _0x5a09a5;}get[_0x42cb2d(0x1ef)](){return _0xf13532;}get[_0x42cb2d(0x2bf)](){return ot;}get[_0x42cb2d(0x17c)](){return _0x2dedc2;}get['BaseConditionalColorTarget'](){return _0x3ea519;}get[_0x42cb2d(0x1cf)](){return _0x47fd54;}get['BaseConditionalDateMode'](){return _0x756c91;}get[_0x42cb2d(0x254)](){return _0x42481e;}get[_0x42cb2d(0x264)](){return _0x220938;}get[_0x42cb2d(0x2a7)](){return _0x1d94db;}get[_0x42cb2d(0x17e)](){return _0x125b1b;}get[_0x42cb2d(0x25f)](){return _0x50fcc1;}};_0x3c7e49[_0x42cb2d(0x205)](Dt);function _0x4bdd(_0x8ee41c,_0x109b4a){_0x8ee41c=_0x8ee41c-0x172;const _0x1281bb=_0x1281();let _0x4bdd15=_0x1281bb[_0x8ee41c];return _0x4bdd15;}var Ot=class extends _0x3e96b9{get['BaseTableCreated'](){const _0x597a0b=_0x42cb2d;return _0x597a0b(0x2cc);}get[_0x42cb2d(0x191)](){const _0x30bb05=_0x42cb2d;return _0x30bb05(0x191);}get['BaseTableFieldCreated'](){const _0x2d67a7=_0x42cb2d;return _0x2d67a7(0x18f);}get[_0x42cb2d(0x232)](){const _0x3f50f4=_0x42cb2d;return _0x3f50f4(0x232);}get['BaseTableRecordCreated'](){return'BaseTableRecordCreated';}get[_0x42cb2d(0x2b7)](){const _0x44c9a6=_0x42cb2d;return _0x44c9a6(0x2b7);}get[_0x42cb2d(0x229)](){const _0x25733f=_0x42cb2d;return _0x25733f(0x229);}get[_0x42cb2d(0x17a)](){const _0x117adc=_0x42cb2d;return _0x117adc(0x17a);}get['BaseTableCellValueChanged'](){const _0x31aa5a=_0x42cb2d;return _0x31aa5a(0x260);}get[_0x42cb2d(0x203)](){return'BeforeBaseTableCellValueChange';}get[_0x42cb2d(0x200)](){const _0x27c6a9=_0x42cb2d;return _0x27c6a9(0x200);}get[_0x42cb2d(0x1f4)](){const _0x538c39=_0x42cb2d;return _0x538c39(0x1f4);}};_0x3e96b9['extend'](Ot);export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};
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};